(self.wpRiseJsonp=self.wpRiseJsonp||[]).push([["learn_main_js-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349:Ze=>{Ze.exports=function(xe){xe||(xe={});var __t,__p="";with(xe)__p+=`<style>
  :root {
    --color-theme-contrast-complementary-rgb: `+((__t=colorThemeContrastComplementaryRGB)==null?"":__t)+`;
    --color-theme-contrast-complementary: `+((__t=colorThemeContrastComplementary)==null?"":__t)+`;
    --color-theme-contrast-rgb: `+((__t=colorThemeContrastRGB)==null?"":__t)+`;
    --color-theme-contrast: `+((__t=colorThemeContrast)==null?"":__t)+`;
    --color-theme-rgb: `+((__t=colorThemeRGB)==null?"":__t)+`;
    --color-theme-tint: `+((__t=colorThemeTint)==null?"":__t)+`;
    --color-theme-transparent: `+((__t=colorThemeTransparent)==null?"":__t)+`;
    --color-theme: `+((__t=colorTheme)==null?"":__t)+`;
    --font-family-body: `+((__t=bodyTypeface)==null?"":__t)+`;
    --font-family-head: `+((__t=headingTypeface)==null?"":__t)+`;
    --font-family-ui: `+((__t=uiTypeface)==null?"":__t)+`;

    --mon-theme-font-body: var(--font-family-body);
    --mon-theme-font-heading: var(--font-family-head);
  }

  .brand--ui, .brand--ui * {
    font-family: var(--font-family-ui) !important;
  }

  .brand--beforeHead:before {
    font-family: var(--font-family-ui) !important;
  }

  .brand--afterHead:after {
    font-family: var(--font-family-ui) !important;
  }

  .brand--background {
    background-color: var(--color-theme) !important;
  }

  .brand--background-all * {
    background-color: var(--color-theme) !important;
  }

  .brand--border {
    border-color: var(--color-theme) !important;

    @media (forced-colors: active) {
      border-color: transparent !important;
    }
  }

  .brand--color {
    color: var(--color-theme) !important;
  }

  .brand--color-all * {
    color: var(--color-theme) !important;
  }

  .brand--shadow {
    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
  }

  .brand--shadow-all * {
    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
  }

  .brand--fill {
    fill: var(--color-theme) !important;
  }

  .brand--stroke {
    stroke: var(--color-theme) !important;
  }

  .brand--beforeBackground:before {
    background-color: var(--color-theme) !important;
  }

  .brand--beforeBorder:before {
    border-color: var(--color-theme) !important;
  }

  .brand--beforeColor:before {
    color: var(--color-theme) !important;
  }

  .brand--afterBackground:after {
    background-color: var(--color-theme) !important;
  }

  .brand--afterBorder:after {
    border-color: var(--color-theme) !important;
  }

  .brand--afterColor:after {
    color: var(--color-theme) !important;
  }

  /* should be applied to containers where links
     need to appear in brand color */
  .brand--linkColor a {
    color: var(--color-theme) !important;
    fill: var(--color-theme) !important;
  }

  /* should be applied to containers where links
     need to change to brand color on hover */
  .brand--linkColorHover a:hover {
    color: var(--color-theme) !important;
    fill: var(--color-theme) !important;
  }

  /* should be applied to any single element that
     needs to change color on hover */
  .brand--hoverColor:hover {
    color: var(--color-theme) !important;
  }

  .button.brand--background:hover { opacity: .65 !important; }

  .brandHover:hover {
    fill: var(--color-theme) !important;
  }


  @media (min-width: 47.9375em) { /* 768px */
    .brand--min768--background {
      background-color: var(--color-theme) !important;
    }

    .brand--min768--border {
      border-color: var(--color-theme) !important;
    }

    .brand--min768--color {
      color: var(--color-theme) !important;
    }
  }

  @media (max-width: 47.9375em) { /* 768px */
    .brand--max768--background {
      background-color: var(--color-theme) !important;
    }

    .brand--max768--border {
      border-color: var(--color-theme) !important;
    }

    .brand--max768--color {
      color: var(--color-theme) !important;
    }
  }
</style>
`;return __p}},77335:(Ze,xe,i)=>{"use strict";i.d(xe,{cF:()=>Cs,LK:()=>Oe,LM:()=>Zs,TJ:()=>yr,Ay:()=>Kn,EL:()=>mo,HC:()=>br,V7:()=>Mo});var D=i(46885),U=i(82298),z=i.n(U),re=i(27905),V=i.n(re),se=i(38576),ne=i.n(se),ee=i(34198),ue=i.n(ee),n=i(91794),ce=i.n(n),pe=i(34379),Le=i.n(pe),le=i(56401),ge=i.n(le),Be=i(28507),$=i.n(Be),H=i(15241),F=i.n(H),w=i(72168),W=i.n(w),K=i(4322),ae=i.n(K),Te=i(53970),te=i.n(Te),me=i(77778),ve=i.n(me),m=i(7827),ie=i.n(m),je=i(78324),ke=i.n(je),X=i(17247),Ie=i.n(X),Re=i(84136),gt=i.n(Re),ft=i(98511),bt=i.n(ft),kt=i(91301),xt=i.n(kt),Gt=i(97886),Xe=i.n(Gt),ds=i(86484),Je=i.n(ds),ut=i(36523),de=i(35965),it=i(58931),Et=i(34984),rt=i(88747);const Kt=(Bt=[],$t)=>$t?.partnerContentId?Bt.concat($t.partnerContentId):Bt,Fe=(Bt,$t)=>$t?.items?.reduce(Kt,Bt)??Bt,M=(Bt,$t)=>$t?.items?.reduce(Fe,Bt)??Bt,ze=({course:Bt,lessons:$t})=>{const js=$t?.reduce(M,[])||[],po=Bt?.partnerContentId||null,Se=po?[po]:[],rr=new Set([...js,...Se]);return Array.from(rr)};var ht=i(33897),ye=i(17862),Ss=i(94379),fs=i(95172);const Oe="rise/course/LOAD_COURSE",Ds="rise/course/UPDATE_COMPLETED_AT",Zs="rise/course/UPDATE_COURSE_PREVIEW",Cs="rise/course/APPLY_CHANGESET",Gn=Xe()(ue()(ge(),ie()(["settings","revealAnswers"])),ve()($()(["settings","revealAnswers"]),ye.x8)),os=Je()(fs.vm,fs.Ww),uo=ue()(Gn,os),nr=ve()(F()("lessons"),W()(uo)),_s=Bt=>ue()(ae()(Bt),te()("lessonsOnly"),bt()(Ie()("type","section")))(Bt.lessons),$e=gt()(ge(),"theme"),Pt=ue()(rt.MJ,rt.uK),Ot=ce()($e,Pt,rt.MJ),xs=ue()(ht.Kj,Ot),ho=(Bt,$t)=>{let js=(0,D.TJ)(["course"],$t,Bt).result;return js=V()("lessons",(0,D.TJ)(["lessons"],$t,js.lessons).result,js),js},Us=(Bt,{completedAt:$t,course:js,favoritedAt:po,riseComCurrentUser:Se,riseComCourseId:rr,riseComEnrollmentType:Es,riseComLearningPathId:Wa})=>ke()(nr,_s,ae()(z(),{completedAt:$t,favoritedAt:po,riseComCourseId:rr,riseComEnrollmentType:Es,riseComCurrentUser:Se,riseComLearningPathId:Wa}),xs)(js),or=xt()(V()("favoritedAt",new Date)),vt=xt()(V()("favoritedAt",null)),Os=xt()(ne()("completedAt",()=>new Date().toISOString())),Kn=(0,ut.handle)({},{[it._q]:or,[it.ut]:vt,[Oe]:Us,[Ds]:Os,[Zs]:(Bt,{course:$t})=>$t,[Cs]:ho}),Ut=Bt=>$t=>{const{statusCode:js}=$t;js===404&&Bt((0,Ss.cX)(!0))},Mt=Bt=>$t=>$t([(0,ut.action)(Et.O,Bt),(0,Ss.$d)(!0)]),Lr=Bt=>Le()(Bt)?(0,Ss.$d)(!0):(0,de.qO)(Bt).map(Mt),Po=Bt=>$t=>{const{course:js}=$t,po=ze({course:js,lessons:js.lessons});Bt([(0,ut.action)(Oe,$t),(0,Ss.LW)(!0),Lr(po)])},mo=Bt=>$t=>(0,de.hd)(void 0,Bt).then(Po($t)).catch(Ut($t)),br=(0,ut.action)(Oe),Mo=(0,ut.action)(Zs),Va=(0,ut.action)(Ds),yr=(0,ut.action)(Cs)},76135:(Ze,xe,i)=>{"use strict";i.d(xe,{Kl:()=>z,Om:()=>V,RA:()=>ge,Sw:()=>ce,V9:()=>Le,Zp:()=>ee,bf:()=>re,eQ:()=>n,i$:()=>Be,re:()=>le,sq:()=>ne,ss:()=>pe,w8:()=>se,y1:()=>ue});var D=i(36523);const U=$=>`rise/course/${$}`,z=U("BLOCKS_LESSON_COMPLETE"),re=U("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),V=U("BLOCKS_LESSON_RESET"),se=U("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),ne=U("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),ee=U("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),ue=U("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),n=(0,D.action)(z),ce=(0,D.action)(re),pe=(0,D.action)(V),Le=(0,D.action)(se),le=(0,D.action)(ne),ge=(0,D.action)(ee),Be=(0,D.action)(ue)},31896:(Ze,xe,i)=>{"use strict";i.d(xe,{$Z:()=>ee,Ew:()=>V,GL:()=>re,UZ:()=>se,_Y:()=>n,jS:()=>ue,tc:()=>ne});var D=i(96192),U=i(67644),z=i(67757);function re(w,W){const K=w.lessons[W];if(!(0,D.rV)(K))return w;const ae={...pe(K),id:W},Te=(0,D.b5)({courseProgress:w,lessonId:W,updatedLessonProgress:ae});return(0,D.bo)({lessonId:W,prevCourseProgress:w,nextCourseProgress:Te})}function V(w,W){const{lessonId:K,blockId:ae,itemId:Te}=W,te=w.lessons[K];if(!(0,D.rV)(te))return w;const me=te.items[ae],ve=le({blockProgress:me,itemId:Te}),m=Be({lessonProgress:te,blockId:ae,updatedBlockProgress:ve}),ie=(0,U.hh)(m),je=(0,D.b5)({courseProgress:w,lessonId:K,updatedLessonProgress:ie});return(0,D.bo)({lessonId:K,prevCourseProgress:w,nextCourseProgress:je})}function se(w,W){const K=w.lessons[W];if(!(0,D.rV)(K))return w;const ae=$(K),Te=(0,D.b5)({courseProgress:w,lessonId:W,updatedLessonProgress:ae});return(0,D.bo)({lessonId:W,prevCourseProgress:w,nextCourseProgress:Te})}function ne(w,{blockId:W,lessonId:K}){const ae=w.lessons[K];if(!(0,D.rV)(ae))return w;const Te=H(ae.items[W]),te=Be({lessonProgress:ae,blockId:W,updatedBlockProgress:Te}),me=(0,D.b5)({courseProgress:w,lessonId:K,updatedLessonProgress:te});return(0,D.bo)({lessonId:K,prevCourseProgress:w,nextCourseProgress:me})}function ee(w,W){const{lessonId:K,blockId:ae,items:Te}=W,te=w.lessons[K];if(!(0,D.rV)(te))return w;const me=Le({blockId:ae,lessonProgress:te,items:Te}),ve=(0,D.b5)({courseProgress:w,lessonId:K,updatedLessonProgress:me});return(0,D.bo)({lessonId:K,prevCourseProgress:w,nextCourseProgress:ve})}function ue(w,W){const{lessonId:K,blockId:ae,itemId:Te,playheadPercentage:te}=W,me=w.lessons[K],ve=me?.items?.[ae];if(!(0,D.rV)(me)||!ve||!("items"in ve)||!ve.items||!ve.items[Te])return w;const ie={...ve.items[Te],audioVideoPlayhead:te},je={...ve,items:{...ve.items,[Te]:ie}},ke=Be({lessonProgress:me,blockId:ae,updatedBlockProgress:je}),X=(0,D.b5)({courseProgress:w,lessonId:K,updatedLessonProgress:ke});return(0,D.bo)({lessonId:K,prevCourseProgress:w,nextCourseProgress:X})}function n(w,W){const{lessonId:K,blockId:ae,itemId:Te,isCorrect:te}=W,me=w.lessons[K];if(!(0,D.rV)(me))return w;const ve=F({itemId:Te,isCorrect:te,blockProgress:me.items[ae]}),m=(0,U.hh)(Be({lessonProgress:me,blockId:ae,updatedBlockProgress:ve})),ie=(0,D.b5)({courseProgress:w,lessonId:K,updatedLessonProgress:m});return(0,D.bo)({lessonId:K,prevCourseProgress:w,nextCourseProgress:ie})}const ce=w=>Object.values(w).length>0&&Object.values(w).every(W=>W.isComplete),pe=w=>{const W=(0,z.s0)(w.items,(K,ae)=>{const Te=(0,z.s0)(ae.items??{},(te,me)=>[te,{...me,isComplete:!0,id:me.id,index:me.index}]);return[K,{...ae,items:Te,isComplete:!0}]});return{...w,isComplete:!0,items:W,percentComplete:100}},Le=({blockId:w,items:W,lessonProgress:K})=>{const ae=K.items?.[w]??{items:{}},Te=new Set(W.map(ie=>String(ie.id))),te=(0,z.s0)(ae.items??{},(ie,je)=>{const ke=Te.has(ie);return[ie,{...je,isComplete:je.isComplete||ke,id:je.id,index:je.index}]}),ve=Object.keys(te).length===0||ce(te),m={...ae,id:w,items:te,...ve&&{isComplete:!0}};return ge(Be({lessonProgress:K,blockId:w,updatedBlockProgress:m}))},le=({blockProgress:w,itemId:W})=>{if(!w.items)return w;const K=w.items[W];return{...w,items:{...w.items,[W]:{...K,retryAttemptCount:(K?.retryAttemptCount??0)+1}}}},ge=w=>{const W=(0,U.hh)(w);return W.percentComplete===100?{...W,isComplete:!0}:W},Be=({blockId:w,lessonProgress:W,updatedBlockProgress:K})=>({...W,items:{...W.items,[w]:K}}),$=w=>{const W=(0,z.s0)(w.items,(K,ae)=>{const Te=(0,z.s0)(ae.items??{},(te,me)=>[te,(0,z.QD)(me,["isComplete","isCorrect","isViewed"])]);return[K,{id:ae.id,index:ae.index,items:Te}]});return{...(0,z.QD)(w,["isComplete","percentComplete"]),items:W}},H=w=>({...(0,z.QD)(w,["percentViewed","correctlyAnswered"]),id:w.id,index:w.index,items:(0,z.s0)(w.items??{},(W,K)=>[W,(0,z.QD)(K,["isViewed","isCorrect"])]),retryAttempts:(w.retryAttempts??0)+1}),F=({isCorrect:w,itemId:W,blockProgress:K})=>{if(!K.items)return K;const ae=K.items[W],Te={...ae,isComplete:w,isViewed:w,...ae?.isCorrect===void 0&&{isCorrect:w}},te={...K.items,[W]:Te},me=Object.values(te).filter(ke=>ke.isCorrect).length,ve={...K,items:te,correctlyAnswered:me,...!w&&{lastIncorrectCardId:W}},m=(0,U.f5)(ve),ie=(0,U.QI)(m),je=ie.percentComplete===100;return{...ie,...je&&{isComplete:!0}}}},96192:(Ze,xe,i)=>{"use strict";i.d(xe,{Zn:()=>U,b5:()=>re,bo:()=>V,rV:()=>z});var D=i(35965);const U=ce=>!!ce&&ce.type==="quiz",z=ce=>!!ce&&ce.type==="blocks",re=({courseProgress:ce,lessonId:pe,updatedLessonProgress:Le})=>({...ce,lessons:{...ce.lessons,[pe]:Le}});function V({lessonId:ce,nextCourseProgress:pe,prevCourseProgress:Le}){const le=pe.lessons[ce];if((0,D.C2)(le),se({lessonId:ce,courseProgress:pe}),ne({lessonId:ce,prevCourseProgress:Le,nextCourseProgress:pe})){const ge={...pe,percentComplete:ue(pe)};return n({courseProgress:ge,lessonProgress:le}),ge.percentComplete!=null&&(0,D.O9)(ge.percentComplete),ge}return pe}function se({courseProgress:ce,lessonId:pe}){const Le=ce.lessons?.[pe];if(Le?.percentComplete===100){const le=ee(Le);le&&(0,D.aM)(le)}}function ne({lessonId:ce,nextCourseProgress:pe,prevCourseProgress:Le}){const le=pe.lessons?.[ce];if(!le)return!1;const ge=Le.lessons?.[ce]?.percentComplete===100,Be=le.percentComplete===100,$=ge!==Be,H=pe.currentLesson!=null&&U(pe.lessons[pe.currentLesson])&&pe.lessons[pe.currentLesson]?.percentComplete===100;return $||H}function ee(ce){const{id:pe}=ce;if(!pe)throw new Error("Cannot create lesson payload: lesson.id is missing");if(U(ce)){const{passed:Le,score:le,passingScore:ge=0}=ce;return{id:pe,...Le!==void 0&&{passed:Le},...le!==void 0&&{score:le},passingScore:ge}}return{id:pe}}function ue(ce){const{lessons:pe={}}=ce,Le=Object.keys(pe).length;if(Le===0)return 0;const le=Object.values(pe).filter(ge=>ge.isComplete).length;return Math.round(le/Le*100)}function n({courseProgress:ce,lessonProgress:pe}){if(!ce||!pe)return;const Le=ee(pe);Le&&(0,D.vb)(ce,Le)}},62013:(Ze,xe,i)=>{"use strict";i.d(xe,{A:()=>Le,B:()=>ce});var D=i(36523),U=i(35965),z=i(76135),re=i(31896),V=i(6408),se=i(79335),ne=i(67644);const ee=K=>`rise/course/${K}`,ue=ee("BOOKMARK_LESSON"),n=ee("LOAD_COURSE"),ce=(0,D.action)(ue),pe={lessons:{},percentComplete:0},Le=(0,D.handle)(pe,{[z.Kl]:re.GL,[z.bf]:re.Ew,[z.Om]:re.UZ,[z.w8]:re.tc,[z.sq]:re.$Z,[z.Zp]:re.jS,[z.y1]:re._Y,[V.z_]:se.Qv,[V.Eg]:se.Ki,[V.be]:se.ZL,[V.jZ]:se.Jx,[V.Ck]:se.pl,[V.fV]:se.Ux,[V.jo]:se.NZ,[V.V8]:se.uR,[V.Z8]:se.XW,[V.Dh]:se.yi,[V.ug]:se.bu,[ue]:ge,[n]:le});function le(K,ae){const Te=ae.course?.lessons??[],te=(0,U.y4)(H(Te));return typeof te=="object"&&te!==null?{...K,...te}:K}function ge(K,ae){return(0,U.Fc)(ae),{...K,currentLesson:ae}}const Be=({index:K,lessonId:ae,settings:Te,type:te})=>te==="quiz"?{id:ae,index:K,type:te,items:{},passingScore:Number(Te?.passingScore??0)}:{id:ae,index:K,type:"blocks",items:{}};function $(K){return K.type==="quiz"&&"settings"in K}function H(K){return{lessons:K.reduce((Te,te,me)=>$(te)?F({index:me,items:te.items,lessonId:te.id,lessonProgress:Te,settings:te.settings,type:te.type}):te.type==="blocks"?F({index:me,items:te.items,lessonId:te.id,lessonProgress:Te,type:te.type}):Te,{})}}function F(K){const{lessonId:ae,index:Te,items:te,lessonProgress:me={},settings:ve,type:m}=K,ie=Be({lessonId:ae,index:Te,settings:ve,type:m});if(te.length===0)return{...me,[ae]:ie};const je=m==="quiz"?W(te):w(te);return{...me,[ae]:{...ie,items:je}}}function w(K){return K.reduce((ae,Te,te)=>{const me=Te.id,ve=Te.items??[],m=(0,ne.BC)(ve);return ae[me]={id:me,index:te,items:m},ae},{})}function W(K){return K.reduce((ae,Te,te)=>(ae[Te.id]={id:Te.id,index:te},ae),{})}},6408:(Ze,xe,i)=>{"use strict";i.d(xe,{Ck:()=>ne,Dh:()=>Le,Eg:()=>ce,FU:()=>$,NC:()=>K,Nj:()=>F,QI:()=>ge,RW:()=>Te,V8:()=>n,YC:()=>Be,Yu:()=>H,Z8:()=>pe,be:()=>V,fV:()=>ee,hy:()=>W,jZ:()=>se,jo:()=>ue,kK:()=>ae,mg:()=>w,ug:()=>le,x6:()=>te,z_:()=>z});var D=i(36523);const U=me=>`rise/course/${me}`,z=U("QUIZ_LESSON_ADVANCE_STEP"),re=U("QUIZ_LESSON_CLEAR_ANSWER_MATCH"),V=U("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),se=U("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),ne=U("QUIZ_LESSON_RESTART"),ee=U("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),ue=U("QUIZ_LESSON_SET_ANSWER_MATCHES"),n=U("QUIZ_LESSON_SET_ANSWER_TEXT"),ce=U("QUIZ_LESSON_ADVANCE_TO_END"),pe=U("QUIZ_LESSON_SET_TIME_REMAINING"),Le=U("QUIZ_LESSON_SUBMIT_ANSWER"),le=U("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),ge=(0,D.action)(z),Be=(0,D.action)(ce),$=(0,D.action)(ne),H=(0,D.action)(ee),F=(0,D.action)(n),w=(0,D.action)(le),W=(0,D.action)(pe),K=(0,D.action)(ue),ae=(0,D.action)(Le),Te=(0,D.action)(V),te=(0,D.action)(se)},79335:(Ze,xe,i)=>{"use strict";i.d(xe,{Jx:()=>ne,Ki:()=>V,NZ:()=>ce,Qv:()=>re,Ux:()=>n,XW:()=>pe,ZL:()=>se,bu:()=>le,oO:()=>Be,pl:()=>ue,uR:()=>ee,yi:()=>Le});var D=i(96192),U=i(67757),z=i(35965);function re($,H){const F=$.lessons[H];if(!(0,D.Zn)(F))return $;const w=F.activeIndex??0,W={...F,activeIndex:w+1},K=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:W});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:K})}function V($,H){const F=$.lessons[H];if(!(0,D.Zn)(F))return $;const w=Object.keys(F?.items)?.length,W={...F,activeIndex:w+1},K=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:W});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:K})}function se($,{lessonId:H,itemId:F}){const w=$.lessons[H];if(!(0,D.Zn)(w))return $;const W=w.items[F];if(!W)return $;const K={...W,selectedIndices:[]},ae=ge({lessonProgress:w,itemId:F,updatedQuizItemProgress:K}),Te=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:ae});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:Te})}function ne($,{lessonId:H,lessonProgress:F}){return{...$,lessons:{...$.lessons,[H]:F}}}function ee($,{lessonId:H,itemId:F,text:w}){const W=$.lessons[H];if(!(0,D.Zn)(W))return $;const K=W.items[F];if(!K)return $;const ae=typeof w=="string"&&w.trim()===""?(0,U.QD)(K,["text"]):{...K,text:w},Te=ge({lessonProgress:W,itemId:F,updatedQuizItemProgress:ae}),te=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:Te});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:te})}function ue($,H){const F=$.lessons[H];if(!(0,D.Zn)(F))return $;const w=(0,U.s0)(F.items,(Te,te)=>{const me={id:te.id,index:te.index};return[Te,me]}),K={...(0,U.QD)(F,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...F.passed!==!1&&{passed:F.passed},...F.isComplete!==!1&&{isComplete:F.isComplete},retryAttempts:(F.retryAttempts??0)+1,items:w},ae=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:K});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:ae})}function n($,{lessonId:H,itemId:F,selectedIndex:w}){const W=$.lessons[H];if(!(0,D.Zn)(W))return $;const K=W.items[F];if(!K)return $;const ae={...K,selectedIndex:w},Te=ge({lessonProgress:W,itemId:F,updatedQuizItemProgress:ae}),te=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:Te});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:te})}function ce($,{lessonId:H,itemId:F,matches:w}){const W=$.lessons[H];if(!(0,D.Zn)(W))return $;const K=W.items[F];if(!K)return $;const ae={...K,matches:w},Te=ge({lessonProgress:W,itemId:F,updatedQuizItemProgress:ae}),te=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:Te});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:te})}function pe($,{lessonId:H,timeRemaining:F}){const w=$.lessons[H];if(!(0,D.Zn)(w))return $;const W={...w,timeRemaining:F},K=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:W});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:K})}function Le($,{lessonId:H,itemId:F,isCorrect:w,finalRetryAttempt:W,passToContinue:K}){const ae=$.lessons[H];if(!(0,D.Zn)(ae))return $;const Te=ae.passingScore??0,te=ae.items[F];if(!te)return $;const me={...te,isCorrect:w,isComplete:!0},ve={...ae.items,[F]:me},m=Object.keys(ve).length,ie=Object.values(ve).filter(Re=>Re.isCorrect).length,je=Math.round(ie/m*100),ke=Math.round(Object.values(ve).filter(Re=>Re.isComplete).length/m*100);let X={...ae,items:ve,score:je,percentComplete:ke};if(ke===100){const Re=je>=Te,gt=K?Re:!0;(0,z.X_)(Re,je,H,W),X={...X,passed:Re,isComplete:gt,reportResults:!0}}const Ie=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:X});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:Ie})}function le($,{lessonId:H,itemId:F,selectedIndex:w}){const W=$.lessons[H];if(!(0,D.Zn)(W))return $;const K=W.items[F];if(!K)return $;const ae=K.selectedIndices??[],te=w!==void 0&&ae.includes(w)?ae.filter(ke=>ke!==w):w!==void 0?[...ae,w]:ae,{selectedIndices:me,...ve}=K,m=te.length>0?{...ve,selectedIndices:te}:{...ve},ie=ge({lessonProgress:W,itemId:F,updatedQuizItemProgress:m}),je=(0,D.b5)({courseProgress:$,lessonId:H,updatedLessonProgress:ie});return(0,D.bo)({lessonId:H,prevCourseProgress:$,nextCourseProgress:je})}function ge({itemId:$,lessonProgress:H,updatedQuizItemProgress:F}){return{...H,items:{...H.items,[$]:F}}}function Be($,H){const{id:F,passed:w,passingScore:W,score:K,retryAttempts:ae}=H,Te=[w,ae,K];if(!(Te.length===3&&Te.every(ke=>ke!=null)))return $;const me=$.lessons?.[F]?.items??{},ve=Object.keys(me).length+1,m=$.lessons?.[F];if(!m)return $;const ie={...m,isComplete:!0,activeIndex:ve,reportResults:!0,passed:w,passingScore:W,percentComplete:100,retryAttempts:ae,score:K};return{...$,lessons:{...$.lessons,[F]:ie}}}},86145:(Ze,xe,i)=>{"use strict";i.d(xe,{Ay:()=>n,Wp:()=>ee});var D=i(36523),U=i(77335),z=i(46885);const re="rise/l10n/TOGGLE_LOCALE_SELECTOR",V={},se=(ce,{l10n:pe})=>({...ce,...pe}),ne=(ce,pe)=>(0,z.TJ)(["l10n"],pe,ce).result,ee=(0,D.action)(re),ue=(ce,pe)=>{const Le=pe?ce.locales?.map(({locale:le})=>le):void 0;return{...ce,localeSelectorOptions:Le}},n=(0,D.handle)(V,{[U.LK]:se,[U.LM]:se,[U.cF]:ne,[re]:ue})},2316:(Ze,xe,i)=>{"use strict";i.d(xe,{Ay:()=>$,D2:()=>K,NM:()=>Te,Se:()=>F,gA:()=>W,ts:()=>w,u:()=>ae});var D=i(27905),U=i.n(D),z=i(36523);const re="rise/search/RESET_SEARCH",V="rise/search/SET_SEARCH_ACTIVE",se="rise/search/SET_SEARCH_ACTIVE_LESSONS",ne="rise/search/SET_SEARCH_TRANSLATIONS",ee="rise/search/SET_SEARCH_LESSONS",ue="rise/search/SET_SEARCH_TERM",n={active:!1,activeLessons:[],translations:{},lessons:[],term:null},ce=(te,me)=>me?U()("active",te.active,n):te,pe=(te,me)=>U()("active",me,te),Le=(te,me)=>U()("activeLessons",me,te),le=(te,me)=>U()("translations",me,te),ge=(te,me)=>U()("lessons",me,te),Be=(te,me)=>U()("term",me,te),$=(0,z.handle)(n,{[re]:ce,[V]:pe,[se]:Le,[ne]:le,[ee]:ge,[ue]:Be}),H=te=>(0,z.action)(te),F=H(re),w=H(V),W=H(se),K=H(ne),ae=H(ee),Te=H(ue)},18391:(Ze,xe,i)=>{"use strict";i.d(xe,{Kq:()=>it,Ng:()=>Et,iE:()=>rt,JD:()=>Kt,M_:()=>Fe,wA:()=>M,d4:()=>ze});var D=i(61708),U=i(77335),z=i(4322),re=i.n(z),V=i(36523);const se=(ht,{labelSet:ye})=>re()(ht,ye),ne=(0,V.handle)({},{[U.LK]:se});var ee=i(62013),ue=i(63006),n=i(94983),ce=i(13662),pe=i(86145),Le=i(16829),le=i(55328),ge=i.n(le),Be=i(45949),$=i.n(Be),H=i(78107),F=i.n(H),w=i(17247),W=i.n(w),K=i(41558),ae=i.n(K),Te=i(70405),te=i.n(Te),me=i(34984);const ve=(ht,ye)=>{const Ss=F()(W()("id",ye.id),ht.content),fs=Ss===-1?ge()(ye):te()(Ss,ye);return $()({content:fs},ht)},m=(ht,ye)=>ae()(ve,ht,ye),ie={[me.O]:m},je=(0,V.handle)({content:[]},ie);var ke=i(2316),X=i(88523),Ie=i(29249),Re=i(94379),gt=i(72181);const ft={isMobileExpanded:!1,transcript:null},bt=(ht,ye)=>({...ht,transcript:ye}),kt=()=>({isMobileExpanded:!1,transcript:null}),xt=(ht,ye)=>ht.transcript?{...ht,transcript:ye}:ht,Gt={[gt.l6]:bt,[gt.ju]:kt,[gt.Y8]:xt},Xe=(0,V.handle)(ft,Gt);var ds=i(5683),Je=i(83416);const ut=Je.BI?{learningPathUpNext:Le.A}:{},de=(0,D.HY)({course:U.Ay,courseLabels:ne,courseProgress:ee.A,features:ue.A,fonts:n.A,global:ce.Ay,l10n:pe.Ay,partnerContent:je,search:ke.Ay,sessionPreferences:X.Ay,slidesUI:Ie.Ay,status:Re.Ay,transcriptPanel:Xe,ui:ds.Ay,...ut}),{Provider:it,connect:Et,connectBase:rt,dispatch:Kt,store:Fe,useDispatch:M,useSelector:ze}=(0,D.Nv)(de)},35965:(Ze,xe,i)=>{"use strict";i.d(xe,{Fc:()=>si,hd:()=>Or,Rc:()=>m0,qO:()=>Wl,O9:()=>tt,X_:()=>_t,jr:()=>O,_$:()=>ti,JK:()=>Ql,GJ:()=>Rr,y4:()=>Gl,As:()=>Co,Hm:()=>ko,oO:()=>Zl,Wk:()=>yc,og:()=>Dr,GS:()=>Ic,xr:()=>Mr,IV:()=>la,bb:()=>h0,o1:()=>Nc,vb:()=>De,aM:()=>ni,C2:()=>Pr,xS:()=>jc,no:()=>$l,m5:()=>u0});var D=i(49345),U=i(10789),z=i.n(U),re=i(34198),V=i.n(re),se=i(45949),ne=i.n(se),ee=i(86654),ue=i.n(ee),n=i(44336),ce=i.n(n),pe=i(67711),Le=i.n(pe),le=i(91794),ge=i.n(le),Be=i(72168),$=i.n(Be),H=i(51926),F=i.n(H),w=i(33744),W=i.n(w),K=i(67331),ae=i.n(K),Te=i(84929),te=i.n(Te),me=i(17247),ve=i.n(me),m=i(77170),ie=i.n(m);const je=Q=>V()(D.QZ,Q),ke=Q=>ne()({[Q]:D.QZ}),X=({startTime:Q,stopTime:be})=>be-Q,Ie=Q=>{switch(Q.type){case"FILL_IN_THE_BLANK":return ds(Q);case"MATCHING":return ze(Q);default:return bt(Q)}},Re=Q=>{switch(Q.type){case"FILL_IN_THE_BLANK":return ds(Q);case"MATCHING":return ze(Q);case"MULTIPLE_CHOICE":return ut(Q);case"MULTIPLE_RESPONSE":return it(Q);default:return ut(Q)}},gt=({isUnfinished:Q,item:be,itemProgress:Ct})=>{switch(be.type){case"FILL_IN_THE_BLANK":return Je(Q)(Ct);case"MATCHING":return ht(be,Q)(Ct);case"MULTIPLE_CHOICE":return de(be,Q)(Ct);case"MULTIPLE_RESPONSE":return Et(be,Q)(Ct);default:return de(be,Q)(Ct)}},ft=Q=>[Q],bt=V()($()(ke("title")),te()("answers")),kt=je(te()("id")),xt=je(te()("title")),Gt=Q=>be=>ue()(ve()("id",be),bt(Q)),Xe=Q=>Le()(W())(bt(Q)),ds=V()(ae()("title"),bt),Je=Q=>ge()(z()(Q),z()(""),je(te()("text"))),ut=Q=>V()(Gt(Q),te()("correct"))(Q),de=(Q,be)=>ge()(z()(be),z()([]),V()(ft,Xe(Q),te()("selectedIndex"))),it=Q=>V()(ce(),$()(Gt(Q)),te()("corrects"))(Q),Et=(Q,be)=>ge()(z()(be),z()([]),V()(ce(),$()(Xe(Q)),te()("selectedIndices"))),rt=({sourceId:Q,sourceTitle:be,targetId:Ct,targetTitle:Xt})=>({source:{id:`source_${Q}`,title:be},target:{id:`target_${Ct}`,title:Xt}}),Kt=je(te()("matchTitle")),Fe=Q=>{const be=kt(Q);return rt({sourceId:be,sourceTitle:xt(Q),targetId:be,targetTitle:Kt(Q)})},M=Q=>(be,Ct)=>{const Xt=bt(Q),Ys=Xt.find(wo=>wo.id===Ct),un=Xt.find(wo=>wo.id===be);return rt({sourceId:kt(Ys),sourceTitle:xt(Ys),targetId:kt(un),targetTitle:Kt(un)})},ze=V()($()(Fe),bt),ht=(Q,be)=>ge()(z()(be),z()([]),V()(ie(),F()(M(Q)),te()("matches")));var ye=i(47474),Ss=i.n(ye),fs=i(88457),Oe=i(16832),Ds=i(31896),Zs=i(79335),Cs=i(83416),Gn=i(64103),os=i(86484),uo=i.n(os);const nr=Q=>Q!==void 0,$e=uo()(nr,V()(JSON.parse,Gn.Base64.decode)),Ot=(Q,be)=>window.courseData?Q(window.courseData):window.course?{course:Q(window.course),media:[]}:be;var xs=i(312),ho=i.n(xs),Us=i(7827),or=i.n(Us),vt=i(41820);const Kn=`${(0,Cs._$)("RBC_URI")}/api/partner_content`,Ut=null,Mt=ho()(`${Kn}/`),Po={transformRequest:[(Q,be)=>(be.Authorization=`Bearer ${(0,vt.gf)()}`,Q)],headers:{"Content-Type":"application/json"}},mo=()=>request({...Po,url:Ut}).toPromise().then(path(["data","types"])),br=Q=>request({...Po,url:Mt(Q)}).toPromise().then(path(["data","content"])),Mo=Q=>(0,vt.Em)({method:"POST",url:Kn,data:JSON.stringify({ids:Q}),...Po}).map(or()(["data","content"]));var Va=i(71006),yr=i.n(Va),Bt=i(78324),$t=i.n(Bt);const js=(0,Cs._$)("SERVICE_ENV")==="prod"?"com":"zone",Se=$t()(JSON.stringify,yr()(new RegExp(`https://images.riseusercontent.${js}/`,"g"),`${(0,Cs._$)("IMAGES_URI")}/`),yr()(new RegExp(`https://riseusercontent.${js}/`,"g"),`${(0,Cs._$)("CDN_USER_CONTENT_URI")}/`),yr()(new RegExp(`https://video.rise.${js}/`,"g"),`https://video.riseusercontent.${js}/`),JSON.parse);var rr=i(52988),Es=i.n(rr),Wa=i(27905),fo=i.n(Wa),cc=i(72970),Bl=i.n(cc),_l=i(8466),Qt=i.n(_l),Ul=i(55414),qe=i.n(Ul),Hl=i(34379),Ts=i.n(Hl),Fl=i(56401),As=i.n(Fl),Ks=i(58488),Zt=i.n(Ks),lc=i(64104),Yt=i.n(lc),dc=i(15241),Do=i.n(dc),uc=i(4322),us=i.n(uc),hc=i(61319),gs=i.n(hc),ar=i(37953),jt=i.n(ar),mc=i(34552),Ye=i.n(mc),pc=i(82738),Ls=i.n(pc),Ir=i(97886),Pe=i.n(Ir);const Nr=Q=>!!Q,Ue={[Oe.En]:["activeIndex",qe()],[Oe.Ay]:["audioVideoPlayhead",Number],[Oe.l7]:["isComplete",Nr],[Oe.Ko]:["correctlyAnswered",qe()],[Oe.WY]:["percentComplete",qe()],[Oe.sZ]:["retryAttempts",qe()],[Oe.jw]:["score",qe()],[Oe.eZ]:["currentTime",qe()],[Oe.Ze]:["percentViewed",qe()],[Oe.mj]:["reportResults",qe()],[Oe.p3]:["passed",qe()],[Oe.ft]:["passingScore",qe()],[Oe.pd]:["questionsDrawn",qe()],[Oe.ce]:["questionList",$()($()(qe()))],[Oe.M$]:["timeRemaining",Number]},Ga=Q=>(be,Ct)=>fo()([Qt()(Ue[Ct])],Yt()(Ue[Ct])(be),Q),ea=Q=>(be,Ct)=>{let Xt=Yt()(na[Ct])(be);return Ct===Oe.fd&&(Xt=Xt(te()("items",Q))),{[Qt()(na[Ct])]:Xt}},ta=Q=>be=>{const Ct=Q?.[be.index];return Pe()(()=>As()(Ct),()=>V()(us()(be),gs(),ie(),F()(ea(be)))(Ct))(be)},ir=Q=>$()(ta(Q)),Ka=V()(gs(),ie(),F()(ea(null))),fc=Q=>be=>{const Ct=te()(Oe.fd,Q),Xt=te()("items",be);return V()(uo()(()=>Es()([Bl()(Oe.ce),ve()(Oe.pd,!0),()=>!As()(Ct)])(Q),Ys=>{const un=$()(Ka,Ct);return fo()("originalItemProgress",un,Ys)}),us()(be),Pe()(()=>Ts()(Ct),Ls()(Do()("items"),ir(Ct)(Xt))),gs(),ie(),F()(Ga(be)))(jt()(Zt()(Ue),Q))};function sa(Q,be){const Ct=te()("lessons",be),Xt=Ys=>{const un=te()(Ys.index,Ct);return Pe()(()=>As()(un),fc(un))(Ys)};return Pe()(()=>Ts()(Ct),V()(fo()("percentComplete",Ye()(0,Oe.WY,be)),ne()({lessons:$()(Xt)})))(Q)}const na={[Oe.Ay]:["audioVideoPlayhead",Number],[Oe.Ko]:["correctlyAnswered",qe()],[Oe.l7]:["isComplete",Nr],[Oe.w5]:["isCorrect",Nr],[Oe.Wj]:["isViewed",Nr],[Oe.fd]:["items",ir],[Oe.BW]:["percentViewed",qe()],[Oe.qX]:["matches",qe()],[Oe.sZ]:["retryAttemptCount",Number],[Oe.Pz]:["selectedIndex",qe()],[Oe.Ig]:["selectedIndices",qe()],[Oe.S$]:["text",qe()]};var $a=i(53625),Mn=i.n($a),gc=i(53970),At=i.n(gc),vc=i(98511),Qa=i.n(vc);const oa={activeIndex:[Oe.En,qe()],audioVideoPlayhead:[Oe.Ay,Number],correctlyAnswered:[Oe.Ko,qe()],currentTime:[Oe.eZ,qe()],isComplete:[Oe.l7,Number],passingScore:[Oe.ft,qe()],percentComplete:[Oe.WY,qe()],percentViewed:[Oe.Ze,qe()],retryAttempts:[Oe.sZ,qe()],score:[Oe.jw,qe()],questionsDrawn:[Oe.pd,qe()],questionList:[Oe.ce,$()($()(qe()))],reportResults:[Oe.mj,qe()],passed:[Oe.p3,qe()],timeRemaining:[Oe.M$,Number]},Cc=(Q,be)=>({[Qt()(aa[be])]:Yt()(aa[be])(Q)}),xc=Q=>V()(Pe()(Ts(),At()(te()("index",Q))),gs(),ie(),F()(Cc))(Qa()(Ts(),jt()(Zt()(aa),Q))),ra=V()(gs(),ie(),$()(xc)),Ec=(Q,be)=>({[Qt()(oa[be])]:Yt()(oa[be])(Q)});function Za(Q){const be=te()("items",Q),Ct=te()("index",Q),Xt=Pe()(Mn()(As(),Ts()),ra)(be);return V()(At()(Ct),Pe()(()=>Mn()(As(),Ts())(Xt),fo()(Oe.fd,Xt)),gs(),ie(),F()(Ec))(jt()(Zt()(oa),Q))}const Ya=V()(At()(Oe.WY),Ye()(0,"percentComplete")),aa={audioVideoPlayhead:[Oe.Ay,Number],correctlyAnswered:[Oe.Ko,qe()],isComplete:[Oe.l7,Number],isCorrect:[Oe.w5,Number],isViewed:[Oe.Wj,Number],items:[Oe.fd,ra],matches:[Oe.qX,qe()],percentViewed:[Oe.BW,qe()],retryAttemptCount:[Oe.sZ,Number],selectedIndex:[Oe.Pz,qe()],selectedIndices:[Oe.Ig,$()(Number)],text:[Oe.S$,qe()]},go=Q=>(window.env||{})[Q],ia=Q=>`${go("CDN_USER_CONTENT_URI")}/${Q}`,Xa=()=>!!window.shareId,jr=()=>!!window.contentId,Tc=()=>!!window.snapshotId,Sc=()=>!!window.instantLinkPublicId,Ja=()=>!!window.shareId&&!!window.hasPassword,Ar=jr()&&!Cs.BI?Se:Q=>Q,bc={fetch:()=>{if(lr.isExport||window.courseData||window.course)return Ot($e,{});{const Q=()=>window.shareId?`${go("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:jr()?`${go("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:Tc()?`${go("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${go("RISE_RUNTIME_URI")}/boot/${window.courseId}`;return(0,fs.Em)({method:"GET",url:Q(),json:!0,withCredentials:!0,timeout:3e4}).then(fs.lZ).then(be=>typeof be=="object"?be:$e(be)).then(Ar)}},fetchPartnerContent:Q=>lr.isExport||window.partnerContent?Ss().of(window.partnerContent.content):Mo(Q),getEnv:go,isInstantLink:Sc,isPasswordProtected:Ja,isShare:Xa,isSnapshotPreview:Tc,resolvePath:ia,verifySharePassword:Q=>(0,fs.Em)({method:"POST",url:`${go("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:Q},json:!0}).then(be=>be.body)},qa=(Q,{id:be,type:Ct,...Xt})=>Ct==="quiz"?(0,Zs.oO)(Q,{id:be,...Xt}):(0,Ds.GL)(Q,be),cr=(Q,be)=>Q+((be||{})[Oe.l7]||0),ei=(Q,be)=>(Ct,{id:Xt,type:Ys,...un})=>be.lessons[Xt]?{...Ct,...Q(qa(be,{id:Xt,type:Ys,...un}).lessons[Xt])}:Ct;function ca(Q,be,Ct){const Xt=be.reduce(ei(Q,Ct),{}),Ys=Object.keys(Ct.lessons||{}).length,un=Object.values(Xt).reduce(cr,0),wo=Math.round(un/Ys*100);return{lessons:Xt,p:wo}}window.Rise=Object.assign(window.Rise||{},{completeLessons:ca,decodeCourseProgress:sa,encodeCourseProgress:Ya,encodeLessonProgress:Za});const lr={...bc,...window.Runtime??{}},et=lr,ti=Q=>window.env?.[Q],Rr=Q=>et.getMasteryScore!=null?et.getMasteryScore(Q):Q.passingScore,la=Q=>{if(et.onCreateHistory!=null)return et.onCreateHistory(Q)},Or=(Q={},be)=>et.fetch!=null?Promise.resolve(et.fetch(be)):Promise.resolve(Q),Wl=(Q=[])=>{if(et.fetchPartnerContent!=null)return et.fetchPartnerContent(Q)},si=Q=>{if(et.bookmark!=null)return et.bookmark(Q)},Gl=Q=>et.getProgress!=null?et.getProgress(Q):Q,ni=Q=>et.setLessonComplete!=null?et.setLessonComplete(Q):Q,Pr=Q=>et.setLessonProgress!=null?et.setLessonProgress(Q):Q,De=(Q,be)=>et.setCourseProgress!=null?et.setCourseProgress(Q,be):Q,Ve=(Q,be)=>Runtime.setQuizItems!=null?Runtime.setQuizItems(Q,be):be,Tt=Q=>Runtime.getScores!=null?Runtime.getScores(Q):Q,ks=(Q,be)=>Runtime.setScore!=null?Runtime.setScore(Q,be):be,tt=Q=>{if(et.finish!=null)return et.finish(Q)},_t=(Q,be,Ct,Xt)=>{et.finishQuiz!=null&&et.finishQuiz(Q,be,Ct,Xt)},O=(Q,be,Ct,Xt)=>{et.finishStoryline!=null&&et.finishStoryline(Q,be,Ct,Xt)},da=(Q,be)=>Runtime.incQuizAttempts!=null?Runtime.incQuizAttempts(Q,be):be+1,ua=(Q,be)=>Runtime.getQuizAttempts!=null?Runtime.getQuizAttempts(Q,be):be,Kl=(Q,be)=>Runtime.getCurrentTime!=null?Runtime.getCurrentTime(Q,be):be,vo=(Q,be)=>Runtime.setCurrentTime!=null?Runtime.setCurrentTime(Q,be):be,Co=()=>et.isComplete!=null?et.isComplete():null,ko=()=>et.isExport!=null?et.isExport():!1;function yc(){if(et.isExport!=null){const Q=window.partnerContent?.content;return et.isExport()&&!!Q}return!1}const Ic=()=>et.isShare!=null?et.isShare():!1,Mr=()=>et.isSnapshotPreview!=null?et.isSnapshotPreview():!1,Dr=()=>et.isPasswordProtected!=null?et.isPasswordProtected():!1,Nc=Q=>{const be=Q||"";return et.resolvePath!=null?be.startsWith("http")||be.startsWith("data:")||be.startsWith("//")?be:et.resolvePath(be):be.startsWith("data:")||be.startsWith("http")||be.startsWith("//")?be:`/${be}`},u0=Q=>et.verifySharePassword!=null?et.verifySharePassword(Q):Promise.resolve({isValid:!0}),h0=Q=>{if(et.reportAnswer!=null){const{id:be,isCorrect:Ct,isUnfinished:Xt=!1,item:Ys,itemProgress:un,duration:wo,retryAttempts:Ac,title:p0}=Q,{id:f0,title:oi,type:Rc}=Ys;return et.reportAnswer({id:be,type:Rc,isCorrect:Ct,itemId:f0,questionTitle:(0,D.QZ)(oi),quizTitle:(0,D.QZ)(p0),retryAttempts:Ac,answers:Ie(Ys),correctResponse:Re(Ys),response:gt({isUnfinished:Xt,item:Ys,itemProgress:un}),isUnfinished:Xt,latency:X(wo)})}return!1},$l=Q=>{if(et.startLesson!=null)return et.startLesson(Q)},m0=()=>{if(et.fetchAvailableLocales!=null)return et.fetchAvailableLocales()},Ql=()=>{if(et.getLocale!=null)return et.getLocale()},jc=Q=>{if(et.setLocale!=null)return et.setLocale(Q)},Zl=()=>et.isInstantLink!=null?et.isInstantLink():!1},72181:(Ze,xe,i)=>{"use strict";i.d(xe,{Y8:()=>se,ju:()=>V,l6:()=>re});var D=i(312),U=i.n(D);const z=U()("rise/transcriptPanel/"),re=z("OPEN_TRANSCRIPT_PANEL"),V=z("CLOSE_TRANSCRIPT_PANEL"),se=z("UPDATE_TRANSCRIPT_PANEL"),ne=z("TOGGLE_MOBILE_LAYOUT")},98228:(Ze,xe,i)=>{"use strict";i.d(xe,{W:()=>V});var D=i(59288),U=i.n(D),z=i(26058),re=i(47418);function V(){const se=(0,z.W6)();return(0,D.useMemo)(()=>({...se,push:(ne,ee)=>se.push((0,re.B)(ne,se.location),ee),replace:(ne,ee)=>se.replace((0,re.B)(ne,se.location),ee)}),[se])}},82719:(Ze,xe,i)=>{"use strict";i.d(xe,{Dh:()=>re,HH:()=>ce,S:()=>n,UR:()=>V,_Y:()=>ge,cP:()=>H,fF:()=>Le,i7:()=>ne,pP:()=>$,xp:()=>z});var D=i(46885),U=i(45274);const z=(F,w,W)=>(0,U.uW)(F)?W?.[w]?.[F.l10nId]:void 0,re=(F,w,W,K)=>{if(!(0,U.uW)(F))return F;if(!K)return;const ae=z(F,w,K);if(ae!==void 0)return ae;const Te=z(F,W,K);if(Te!==void 0)return Te;const te=le(F,K);return te.length>0?te[0].value:void 0},V=(F,w,W,K)=>!w||!W||!K?F:(0,D.v9)(F).reduce((ae,{l10nId:Te,path:te})=>{const me=re({l10nId:Te},w,W,K),ve=(0,D.re)(te,me,ae);return ve.type==="accepted"?ve.result:ae},F),se=(F,w,W)=>V(F,w,ce(W),Le(W)),ne=(F,w,W)=>re(F,w,ce(W),Le(W)),ee=(F,w,W)=>z(F,w,Le(W));function ue(F,w){return w?.find(W=>W.locale===F)}function n(F){return F?.l10n?.locales}function ce(F){return F?.l10n?.defaultLocale}function pe(F,w){return F!==ce(w)}function Le(F){return F?.l10n?.translations}function le(F,w){return(0,U.uW)(F)?Object.keys(w)?.map(W=>{const K=z(F,W,w);if(K)return{locale:W,value:K}}).filter(Boolean)??[]:[]}const ge=(F,w)=>le(F,Le(w));function Be(F){return F.l10n?.translationUpdates?.updateCount??0}const $=F=>(0,U.uW)(F)?F.l10nId:void 0;function H(F){return F?.l10n?.localeSelectorOptions}},37322:(Ze,xe,i)=>{"use strict";i.d(xe,{DB:()=>te,H5:()=>Te,ME:()=>w,bX:()=>me,dE:()=>W,ny:()=>ae,xm:()=>F});var D=i(72970),U=i.n(D),z=i(35884),re=i.n(z),V=i(83416);const se=(0,V._$)("CDN_USER_CONTENT_URI"),ne=(0,V._$)("CDN_URI"),ee=U()("useCrushedKey"),ue=(0,V._$)("IMAGES_URI"),n=re()(/-stock[-_]image.jpg/),ce=(0,V._$)("RBC_IMAGES_URI"),pe=(0,V._$)("ASSETS_URI"),Le=re()(new RegExp(`^${se}/review`)),le=(0,V._$)("CDN_US_URI"),ge=ve=>{const{crushedKey:m,key:ie,useCrushedKey:je,src:ke}=ve;return ee(ve)?je&&m?(0,V.o1)(m):(0,V.o1)(ie):(0,V.o1)(ke)},Be=ve=>`${se}/${ve}`,$=ve=>!ve||!ve.key?"":`${ce}/b:fff,f:jpg,s:cover,w:550,h:296/${ve.key}`,H=ve=>{if(!ve||!ve.key)return"";const{crushedKey:m,key:ie,useCrushedKey:je}=ve;return ee(ve)&&je?m?`${ue}/f:jpg,b:fff,s:cover,w:340/${m}`:"":`${ue}/f:jpg,b:fff,s:cover,w:340/${ie}`},F=ve=>{if(!ve||!ve.key)return"";const{crushedKey:m,key:ie,useCrushedKey:je}=ve;return ue?ee(ve)&&je&&m?`${ue}/f:png,a:retain,s:cover,t:true,w:340/${m}`:`${ue}/f:png,a:retain,s:cover,t:true,w:340/${ie}`:ge(ve)},w=ve=>{if(!ve||!ve.key)return"";const{crushedKey:m,key:ie,useCrushedKey:je}=ve;return ue?n(ie)?`${ue}/f:jpg,a:retain,b:fff,w:1680,q:65/${ie}`:ee(ve)?je&&m?`${se}/${m}`:`${se}/${ie}`:Le(ve.src)?ve.src:`${ue}/f:jpg|png,a:retain,b:fff/${ie}`:ge(ve)},W=(ve,m="src")=>{const{key:ie,src:je,thumbnail:ke,thumbnailKey:X}=ve,Ie=se?`${se}/${ie}`:ge({key:ie,src:je}),Re=se?`${se}/${X}`:ge({key:X,src:ke});return m==="src"?Ie:Re},K=ve=>{if(!ve||!ve.key)return"";const{crushedKey:m,key:ie,useCrushedKey:je}=ve;return ee(ve)&&je&&m?`${ue}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${m}`:`${ue}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${ie}`},ae=({height:ve,imageKey:m,width:ie})=>{if(ce){const je=encodeURIComponent(m);return`${ce}/b:fff,f:jpg,s:cover,w:${ie},h:${ve}/${je}`}return(0,V.o1)(`partnerContent/${m}`)},Te=()=>{const ve=pe||ue,m="NBIC_logo_light_bulb.png";return ve?`${ve}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${m}`:(0,V.o1)(`partnerContent/${m}`)},te=()=>{const ve="NBIC_logo_blue.svg";return ne?`${ne}/assets/rise/assets/partner-content/${ve}`:(0,V.o1)(`partnerContent/${ve}`)},me=ve=>{const{key:m,src:ie}=ve;return le?`${le}/${m}`:ge({key:m,src:ie})}},20441:(Ze,xe,i)=>{"use strict";i.d(xe,{Em:()=>n,Vu:()=>ee,on:()=>ue,uI:()=>ce,wD:()=>pe,xQ:()=>ge});var D=i(44223),U=i(4322),z=i.n(U),re=i(83416),V=i(52439);const se=re.BI?window.env:z()(window.env,{ACCESS_COOKIE_NAME:(0,V.W5)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),ne=(0,D.A)(se),ee=ne.closeSession,ue=ne.on,n=ne.request,ce=ne.refreshSession,pe=ne.resetSession,Le=ne.resumeSession,le=ne.startSession,ge=ne.getAuthorizationUrl,Be=ne.fetch},52706:(Ze,xe,i)=>{"use strict";i.d(xe,{lL:()=>ae,t9:()=>Kt,XC:()=>xt,xD:()=>Et,cP:()=>ve,Wn:()=>m,W8:()=>ke,WA:()=>ft});var D=i(9988),U=i(92348),z=i.n(U),re=i(34198),V=i.n(re),se=i(92629),ne=i.n(se),ee=i(40966),ue=i.n(ee),n=i(62116),ce=i.n(n),pe=i(37600),Le=i.n(pe),le=i(86484),ge=i.n(le),Be=i(5181),$=i(42770),H=i(13850),F=i(9041),w=i(76672);$.A.register(H.A),$.A.register(F.A);const W="#ff631e";function K(Fe){if(Fe==null)return null;try{return(0,w.to)((0,w.qg)(Fe),"srgb")}catch{return null}}const ae=z()({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),Te=[[32,ae.NEAR_BLACK],[64,ae.DARK],[128,ae.MED],[256,ae.LIGHT]],te=4.5,me=Fe=>{const M=K(Fe);if(M==null)return 0;const[ze,ht,ye]=M.coords.map(fs=>fs*255);return .2126*ze+.7152*ht+.0722*ye},ve=Fe=>Fe?1-me(Fe)/255>.4:!1,m=Fe=>Fe?1-me(Fe)/255>.25:!1,ie=Fe=>{if(!Fe)return null;const M=parseInt(Fe.substr(1),16);return Number.isNaN(M)?null:M.toString(16).padStart(6,"0").padStart(7,"#")},je=(Fe,M)=>{const ze=ie(M);return!ze||ze.length!==7?Fe:ze},ke=ne()((Fe,M)=>{const ze=(0,D.A)(M).slice(0,3),ht=Fe>=0?ze.map(ye=>(1-Fe)*ye+Fe*255):ze.map(ye=>(1+Fe)*ye);return Re(ht)}),X=/[0-9.]+/gi;function Ie(Fe=""){const[M="0",ze="0",ht="0",ye="1"]=Fe.match(X)||[];return[parseInt(M,10),parseInt(ze,10),parseInt(ht,10),parseFloat(ye)]}const Re=(Fe=[])=>"#"+Fe.slice(0,3).map(M=>Math.min(255,Math.max(0,Math.round(M))).toString(16).padStart(2,"0")).join(""),gt=Fe=>Re(Ie(Fe)),ft=ke(.9),bt=ke(-.5),kt=ke(-.2),xt=Fe=>{const M=me(Fe);return Te.find(([ht])=>ht>M)?.[1]},Gt=Fe=>Fe.toString(16).padStart(6,"0").padStart(7,"#"),Xe=ge()(ce()(Number),V()(Le(),Gt)),ds=V()(Xe,ue()(W));function Je(Fe,M){if(Fe==="none"||!Fe||!M)return{};const ze=ut(Fe,M),ht=`${ze.toFixed(2)}:1`;let ye=!1,Ss=!1,fs=!1,Oe=!1,Ds=!1;return ze>=7?(ye=!0,Ss=!0,fs=!0,Oe=!0,Ds=!0):ze>=4.5?(ye=!0,fs=!0,Ds=!0):ze>=3&&(fs=!0,Ds=!0),{ratio:ht,bodyTextAA:ye,bodyTextAAA:Ss,largeTextAA:fs,largeTextAAA:Oe,graphicalUiComponentsAA:Ds}}function ut(Fe,M){return(0,w.v2)(K(Fe),K(M),"WCAG21")}function de(Fe){const[M,ze,ht]=hexToRgba(Fe).slice(0,3).map(it);return .2126*M+.7152*ze+.0722*ht}function it(Fe){const M=Fe/255;return M<=.04045?M/12.92:((M+.055)/1.055)**2.4}const Et=Fe=>Je("#fff",Fe)["bodyTextAA"]?Be.Em.LIGHT:Be.Em.DARK,rt=(Fe,M)=>Fe===TEXT_COLOR.DARK||Fe===TEXT_COLOR.AUTO&&Et(M)===TEXT_COLOR.DARK,Kt={[ae.NEAR_BLACK]:ke(.1),[ae.DARK]:ke(-.4),[ae.MED]:ke(-.2),[ae.LIGHT]:ke(.3)}},63545:(Ze,xe,i)=>{"use strict";i.d(xe,{C_:()=>X,S6:()=>ke,by:()=>te,o4:()=>me,xA:()=>se,y4:()=>Te,yG:()=>re});var D=i(92348),U=i.n(D),z=i(83416);const re={validEmail:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,validIframe:/^<iframe(.*)?\ssrc="(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?"(.*)?><\/iframe>$/,validUrl:/^(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/},V={heading:"Lato",body:"Merriweather",ui:"Lato"},se={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},ne={ADMIN:"Admin",AUTHOR:"Author",OWNER:"Owner"},ee={EDITOR:1,MANAGER:2,OWNER:3},ue={[ee.EDITOR]:"Author",[ee.MANAGER]:"Admin",[ee.OWNER]:"Owner"},n=Object.values(ee).map(Ie=>({id:Ie,title:ue[Ie]})),ce=({name:Ie,isOnePage:Re})=>{const gt={Admin:Re?"Microlearning manager":"Manager",Author:Re?"Microlearning editor":"Editor",Owner:Re?"Microlearning owner":"Owner"},ft={Admin:Re?"Microlearning manager":"Course manager",Author:Re?"Microlearning collaborator":"Course collaborator",Owner:Re?"Microlearning owner":"Course owner"};return is360?gt[Ie]:ft[Ie]},pe="content",Le="questionBanks",le="teamMedia",ge=9,Be=13,$=27,H=32,F=38,w=40,K=864e5*3,ae=100,Te="onePage",te=U()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),me={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},ve=Object.values(me),m={PORTRAIT:"portrait",LANDSCAPE:"landscape"},ie={READY:"ready",UPLOADING:"uploading",PROCESSING:"processing",FAILED:"failed",ERROR:"error"},je=null,ke={DARK:"#000",LIGHT:"#fff"},X={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}}},67644:(Ze,xe,i)=>{"use strict";i.d(xe,{BC:()=>D,QI:()=>z,f5:()=>re,hh:()=>U});const D=ee=>ee.reduce((ue,n,ce)=>("id"in n&&(ue[n.id]={id:n.id,index:ce}),ue),{}),U=ee=>({...ee,percentComplete:se({items:ee.items,key:"isComplete"})}),z=ee=>({...ee,percentComplete:se({items:ee.items,key:"isComplete"})}),re=ee=>({...ee,percentViewed:se({items:ee.items,key:"isViewed"})});function V({itemId:ee,isCorrect:ue,progress:n}){const ce={...n,items:{...n.items,[ee]:{...n.items?.[ee],id:ee,index:n.items?.[ee]?.index??0,isComplete:ue,isViewed:ue,...n.items?.[ee].isCorrect===void 0?{isCorrect:ue}:{}}}};ce.items[ee]?.isCorrect===!1&&(ce.lastIncorrectCardId=ee);const pe=ne(ce),Le=pe.percentComplete!==100?z(pe):pe,le=re(Le);return le.percentComplete===100?{...le,isComplete:!0}:le}function se({items:ee,key:ue}){const n=ee??{},ce=Object.keys(n).length,pe=Object.values(n).filter(Le=>Le?.[ue]).length;return ce===0?0:Math.round(pe/ce*100)}function ne(ee){const n=Object.values(ee.items||{}).filter(ce=>ce.isCorrect===!0).length;return{...ee,correctlyAnswered:n}}},23366:(Ze,xe,i)=>{"use strict";i.d(xe,{Ve:()=>ge,lQ:()=>$,rq:()=>Le});var D=i(34198),U=i.n(D),z=i(63036),re=i.n(z),V=i(30041),se=i.n(V),ne=i(64104),ee=i.n(ne),ue=i(78324),n=i.n(ue),ce=i(77406),pe=i.n(ce);function Le(...H){return U()(...se()(1,H))(ee()(H))}const le=(H,F)=>cond(F)(H);function ge(H,...F){return n()(...F)(H)}function Be(H,...F){return pipeP(...F)(H)}const $=()=>{}},47418:(Ze,xe,i)=>{"use strict";i.d(xe,{B:()=>re});var D=i(72147);const U=["fromDashboard","locale"];function z(V,se){const ne=typeof V=="function"?V(se):V;return typeof ne=="string"?(0,D.Rr)(ne):ne}function re(V,se){const ne=z(V,se),ee=new URLSearchParams(se.search),ue=new URLSearchParams(ne.search);for(const n of U){const ce=ee.get(n);ce&&!ue.has(n)?ue.set(n,ce):ue.has(n)&&!ue.get(n)&&ue.delete(n)}return{...ne,search:ue.toString()}}},88457:(Ze,xe,i)=>{"use strict";i.d(xe,{Em:()=>te,lZ:()=>ve});var D=i(45872),U=i.n(D),z=i(883),re=i.n(z),V=i(47067),se=i.n(V),ne=i(69322),ee=i.n(ne),ue=i(40966),n=i.n(ue),ce=i(25578),pe=i.n(ce),Le=i(37600),le=i.n(Le),ge=i(52439),Be=i(20441),$=i(48004);const H=(Ie,Re)=>(...gt)=>{try{return Ie(...gt)}catch(ft){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(ft),$.L.addError(ft),Re(ft)}};function F(Ie,Re){const gt=Re.split("=");return U()(gt[0].trim(),gt[1].trim(),Ie)}const w=re()(ee()(F,{}),pe()(/; */));function W(Ie,Re){const gt=Re.indexOf(":"),ft=Re.substr(0,gt).trim().toLowerCase(),bt=Re.substr(gt+1).trim();return ft&&(Ie[ft]=Ie[ft]?Ie[ft]+", "+bt:bt),Ie}function K(Ie){return Ie?Ie.split(`
`).reduce(W,{}):{}}function ae(Ie){return Math.floor(Ie.loaded/Ie.total*100)}function Te(Ie){const Re=[];for(const gt in Ie){if(!Array.isArray(Ie[gt])){Re.push(encodeURIComponent(gt)+"="+encodeURIComponent(Ie[gt]));continue}for(const ft of Ie[gt])Re.push(Te(ft))}return Re.join("&")}function te(Ie){let Re,gt=!1;const ft=new Promise(function bt(kt,xt){const Gt=Ie.signal;if(Gt?.aborted){xt(new DOMException("Aborted","AbortError"));return}const Xe=Oe=>{throw xt(Oe),Oe},ds=()=>{Re.abort(),xt(new DOMException("Aborted","AbortError"))},Je=Ie.data;let ut=H(Ie.deserialize??se(),Xe);const de=Ie.headers??{},it=Ie.json??!1,Et=Ie.jwt??!1,rt=Ie.token??null,Kt=Ie.method??"GET",Fe=Ie.onUploadProgress;let M=H(Ie.serialize??se(),Xe),ze=Ie.url;const ht=Ie.withCredentials??!1,ye=Ie.file,Ss=Ie.timeout??3e3;Re=new XMLHttpRequest;const fs=setTimeout(()=>{Re.abort(),xt({error:"request timed out"})},Ss);if(it&&(ut=H(JSON.parse,xt),M=H(JSON.stringify,xt),de["Content-Type"]="application/json"),Kt==="GET"&&Je&&(ze+="?"+Te(Je)),Et){const Oe=rt||(0,ge.rS)();de.Authorization="Bearer "+Oe}Gt?.addEventListener("abort",ds),Re.withCredentials=ht,Re.addEventListener("abort",xt),Re.addEventListener("error",xt),Re.addEventListener("load",function(){Re.status>=400?[401,403].includes(Re.status)?gt?xt({error:"Unable to resume session"}):(0,Be.wD)().then(()=>{bt(kt,xt),gt=!0}).catch(Oe=>{$.L.addError(Oe),xt({error:"Unable to resume session"})}):xt(ut(Re.response)):(kt({body:Re.status===204?void 0:ut(Re.response),headers:K(Re.getAllResponseHeaders()),status:Re.status}),Gt?.removeEventListener("abort",ds)),clearTimeout(fs)}),Re.upload&&typeof Fe=="function"&&Re.upload.addEventListener("progress",Fe),Re.open(Kt,ze);for(const Oe in de)Re.setRequestHeader(Oe,de[Oe]);Kt!=="GET"&&Je?Re.send(M(Je)):ye?Re.send(ye):Re.send()});return ft.abort=(...bt)=>Re.abort(...bt),ft}const me=re()(le(),n()(""));function ve(Ie){return Ie.status===200||Ie.status===201?Ie.body:Promise.reject(Ie.body)}const m=(Ie,Re=!0)=>Re?`${Ie}s`:Ie;var ie=(Ie=>(Ie[Ie.KB=1024]="KB",Ie[Ie.MB=1048576]="MB",Ie[Ie.GB=1073741824]="GB",Ie[Ie.TB=1099511627776]="TB",Ie))(ie||{});const je={KB:(Ie=1)=>1024*Ie,MB:(Ie=1)=>1048576*Ie,GB:(Ie=1)=>1073741824*Ie,TB:(Ie=1)=>1099511627776*Ie},ke={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},X=(Ie,Re="short")=>{const ft=Object.keys(ie).reverse().find(Gt=>Ie>=ie[Gt]);if(!ft)return`${Ie} ${m("byte",Ie>1)}`;const bt=Ie/ie[ft],kt=bt%1===0?bt.toFixed(0):bt.toFixed(2),xt=Re==="long"?m(ke[ft].long,bt>1):ke[ft].short;return`${kt} ${xt}`}},77541:(Ze,xe,i)=>{"use strict";i.d(xe,{I6:()=>te,LI:()=>Xe,Ll:()=>Te,Vx:()=>me,Zd:()=>ae,dM:()=>Gt,sg:()=>ke});var D=i(10789),U=i.n(D),z=i(34198),re=i.n(z),V=i(45005),se=i.n(V),ne=i(2353),ee=i.n(ne),ue=i(91794),n=i.n(ue),ce=i(64104),pe=i.n(ce),Le=i(74221),le=i.n(Le),ge=i(78324),Be=i.n(ge),$=i(34552),H=i.n($),F=i(25578),w=i.n(F),W=i(45274);const K=re()(se()(".svg"),H()("","originalUrl")),ae=n()(K,U()({width:"500rem"}),U()({})),Te=Je=>{if(Je){const ut=Je.trim();if(ut!==""&&ut!=='""')return Je}return""},te=Je=>Te(Je)||void 0,me=Je=>Je?"img":void 0,ve=Je=>Be()(H()("","originalUrl"),w()("."),pe(),ee()(Je)),m=ve("svg"),ie=ve("gif"),je=/\.svg$/i,ke=Je=>je.test(Je),X={process:"center",timeline:"left"},Ie=Je=>X[Je]||"left",Re=(Je,ut)=>{const de=le()(Je,ut);return de.media.image.key===ut.media.image.key&&Object.assign(de.media.image,{crushedKey:ut.media.image.key,useCrushedKey:!0}),de},gt=({src:Je,alpha:ut})=>({alpha:ut,media:{image:{key:ft(Je),src:Je}}}),ft=Je=>typeof Je!="string"?"":Je.startsWith("http")?new URL(Je).pathname.slice(1):Je,bt=({coverImageAlpha:Je,coverImage:ut})=>({alpha:Je,src:ut}),kt=({lessonHeaderImageAlpha:Je,lessonHeaderImage:ut})=>({alpha:Je,src:ut}),xt=(Je,ut)=>(de,it)=>{const Et=de[ut];if(de?.theme){const rt=it?it(Et?.media):Et?.media;if((0,W.uW)(rt))return Et;const Kt={...Et,media:{...rt}},Fe=gt(Je(de.theme));return Re(Kt,Fe)}else return Et},Gt=xt(bt,"coverImage"),Xe=xt(kt,"lessonHeaderImage"),ds=async Je=>{const ut=new Image;return ut.src=Je,await ut.decode(),ut}},67757:(Ze,xe,i)=>{"use strict";i.d(xe,{QD:()=>Be,UA:()=>ee,s0:()=>$});var D=i(92536),U=i.n(D);const z=H=>!!H&&Object.prototype.toString.call(H)==="[object Object]",re=Array.isArray,V=H=>F=>{for(const w in F)if(H(F[w]))return w;return null},se=(H,F)=>Object.fromEntries(Object.entries(F).map(H)),ne=(H,F)=>Object.values(F).map(w=>w[H]),ee=H=>Object.keys(H).length,ue=(H,F,w)=>{const W={};for(const K in w)W[H(K)]=F(w[K]);return W},n=H=>H.map(le),ce=H=>H.map(ge),pe=H=>ue(camelCase,le,H),Le=H=>ue(snakeCase,ge,H),le=H=>z(H)?pe(H):re(H)?n(H):H,ge=H=>z(H)?Le(H):re(H)?ce(H):H,Be=(H,F)=>{const w=new Set(F),W={};for(const K in H)w.has(K)||(W[K]=H[K]);return W},$=(H,F)=>Object.fromEntries(Object.entries(H).map(([w,W])=>F(w,W)))},61708:(Ze,xe,i)=>{"use strict";i.d(xe,{HY:()=>U.HY,Nv:()=>ge,Ls:()=>w,GF:()=>ae,y4:()=>W,LY:()=>K});var D=i(31976),U=i(18398),z=i(54162),re=i(33733),V=i(83416);const se=me=>me!=null&&typeof me=="object"&&"map"in me&&typeof me.map=="function",ne=me=>me!=null&&typeof me=="object"&&"run"in me&&typeof me.run=="function",ee=me=>me!=null&&typeof me=="object"&&"then"in me&&typeof me.then=="function",ue=me=>me!=null&&typeof me=="object"&&"fork"in me&&typeof me.fork=="function",n=me=>me!=null&&typeof me=="function";function ce(){return({dispatch:me,getState:ve})=>m=>ie=>{if(n(ie))return ie(me,ve);if(ee(ie))return ie.then(me);if(ue(ie)){ie.fork(me,me);return}return ne(ie)?me(ie.run()):se(ie)?ie.map(me):m(ie)}}function pe(){return[ce()]}var Le=i(59288);const le=U.Zz;function ge(me,ve){const m=(0,U.y$)(me,ve,le((0,U.Tw)(...pe()))),ie=Be(),je=$(),ke=H(),X=F();return{Provider:z.Kq,connect:ie,connectBase:je,dispatch:m.dispatch,store:m,useDispatch:ke,useSelector:X}}function Be(){return function(ve,m,ie,je){return function(ke){return(0,z.Ng)(ve,m,ie,je)((0,re.BN)(ke))}}}function $(){return function(ve,m,ie,je){return function(ke){return(0,z.Ng)(ve,m,ie,je)(ke)}}}function H(){return z.wA}function F(){return function(ve,m=z.bN){const ie=Le.useContext(re.q2),je=Le.useContext(re.R6),ke=Le.useRef(void 0),X=(0,D.S)(),Ie=(0,z.d4)(ve,m),Re=!X&&ie&&je?.startsWith?.("exit");return Re||(ke.current=Ie),Re&&ke.current!==void 0?ke.current:Ie}}const w=Be(),W=H(),K=F(),ae=F;var Te=i(36523);const te=()=>sideEffect(()=>location.href="/")},42006:(Ze,xe,i)=>{"use strict";i.d(xe,{V:()=>D});const D=({locales:U,course:z,locale:re})=>!!(U?.find(ne=>ne.locale===re)?.rightToLeft||z?.features?.["rise-rtl"]&&z?.experiments?.rtl)},83416:(Ze,xe,i)=>{"use strict";i.d(xe,{As:()=>$,BI:()=>ue,Hm:()=>H,NS:()=>Be,PJ:()=>ge,Wk:()=>F,_$:()=>ee,ih:()=>w,mZ:()=>pe,o1:()=>le});var D=i(67711),U=i.n(D),z=i(7827),re=i.n(z),V=i(84929),se=i.n(V);const{Runtime:ne}=window,ee=U()(se())(window.env||{}),ue=!1,n=null,ce=W=>ne&&ne[W],pe="Rise 360";function Le(W){return ee("CDN_USER_CONTENT_URI")+"/"+W}const le=W=>{const K=W||"",ae=ce("resolvePath")?ne.resolvePath.bind(ne):Le;return K.startsWith("http")||K.startsWith("data:")||K.startsWith("//")?K:ae(K)},ge=W=>ce("resolveFontPath")?ne.resolveFontPath(W):`${W.default?ee("CDN_URI"):ee("CDN_USER_CONTENT_URI")}/${W.key}`,Be=()=>{ce("exit")&&ne.exit()},$=()=>ce("isComplete")?ne.isComplete():null,H=()=>ce("isExport")?ne.isExport():!1;function F(){if(ce("isExport")){const W=re()(["partnerContent","content"],window);return ne.isExport()&&W}return!1}const w=()=>{if(ce("sendTouch"))return ne.sendTouch()}},5181:(Ze,xe,i)=>{"use strict";i.d(xe,{xj:()=>w,rE:()=>xt,Dw:()=>ae,HC:()=>K,qu:()=>Gt,LE:()=>je,WQ:()=>H,BL:()=>X,Zs:()=>ne,S$:()=>ee,Ht:()=>ce,zV:()=>pe,B4:()=>ge,HU:()=>ue,_g:()=>n,df:()=>ds,KJ:()=>Be,qH:()=>$,OX:()=>W,AY:()=>ke,Py:()=>me,b$:()=>ve,qB:()=>m,kY:()=>te,br:()=>Te,jq:()=>Xe,Y2:()=>ie,RE:()=>bt,Em:()=>kt,V7:()=>se});var D=i(92348),U=i.n(D),z=i(67331),re=i.n(z);function V(rt){return U()(rt)}const se={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},ne="#ff631e",ee=30,ue=50,n=.6,ce="right",pe="rounded",Le=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],le="#ffffff",ge=re()("color",Le),Be="#000",$="#fff",H=600,F="Rise",w=V({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),W=V({LARGE:null,MEDIUM:null,SMALL:null}),K=V({STEPPED:null,CONTINOUS:null}),ae=U()({NUMBERS:null,DOTS:null,NONE:null}),Te=V({COMPACT:null,OVERLAY:null,SIDEBAR:null}),te=U()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),me=U()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),ve={FREE:"free",RESTRICTED:"restricted"},m=U()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),ie=U()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),je=V({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),ke=V({FULL:null,FLOATING:null,FLOATING_FULL:null}),X=V({ACCENT:null,CENTERED:null,CENTERED_ACCENT_TINT:null,CENTERED_OVERLAY:null,CENTERED_IMAGE:null,IMAGE:null,LEFT:null,LEFT_OVERLAY:null,SPLIT_LEFT:null,SPLIT_LEFT_IMAGE:null,SPLIT_RIGHT:null,SPLIT_RIGHT_IMAGE:null,TWO_THIRDS_LEFT_IMAGE:null,TWO_THIRDS_RIGHT_IMAGE:null,WHITE:null}),Ie={default:[{text:"Centered",type:X.CENTERED},{text:"Centered overlay",type:X.CENTERED_OVERLAY},{text:"Left",type:X.LEFT},{text:"Left overlay",type:X.LEFT_OVERLAY},{text:"Split left image",type:X.SPLIT_LEFT_IMAGE},{text:"Split right image",type:X.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:X.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:X.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:X.CENTERED},{text:"Centered overlay",type:X.CENTERED_OVERLAY},{text:"Left",type:X.LEFT},{text:"Left overlay",type:X.LEFT_OVERLAY},{text:"Split left image",type:X.SPLIT_LEFT_IMAGE},{text:"Split right image",type:X.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:X.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:X.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:X.CENTERED},{text:"Centered overlay",type:X.CENTERED_OVERLAY},{text:"Left",type:X.LEFT},{text:"Left overlay",type:X.LEFT_OVERLAY},{text:"Split left",type:X.SPLIT_LEFT},{text:"Split right",type:X.SPLIT_RIGHT},{text:"Split left image",type:X.SPLIT_LEFT_IMAGE},{text:"Split right image",type:X.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:X.CENTERED},{text:"Centered overlay",type:X.CENTERED_OVERLAY},{text:"Centered image",type:X.CENTERED_IMAGE},{text:"Centered accent tint",type:X.CENTERED_ACCENT_TINT},{text:"Split left image",type:X.SPLIT_LEFT_IMAGE},{text:"Split right image",type:X.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:X.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:X.TWO_THIRDS_RIGHT_IMAGE}]},Re=null,gt=null,ft=[{text:"Image",type:X.IMAGE},{text:"Accent",type:X.ACCENT},{text:"White",type:X.WHITE}],bt={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},kt=V({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),xt=V({ROUNDED:null,SQUARED:null}),Gt=U()({ROUNDED:null,SQUARED:null}),Xe=U()({FLOATING:null,FULL:null}),ds=U()({ACCENT:null,DARK:null,LIGHT:null}),Je=U()({ACCENT:null,DARK:null,LIGHT:null}),ut=null,de=null,it=null,Et=[{value:kt.AUTO,label:"Auto"},{value:kt.DARK,label:"Dark"},{value:kt.LIGHT,label:"Light"}]},33897:(Ze,xe,i)=>{"use strict";i.d(xe,{Kj:()=>ne});var D=i(83416),U=i(92348),z=i.n(U);const re=null,V=z()({ACTIVE:null,PREVIEW:null}),se=({themeId:ee,themeCoverImage:ue,coverImageDefault:n})=>ee==="classic"&&isNonEmptyString(n)?n:ue,ne=ee=>({...ee,theme:{...ee?.theme,hideLessonHeaders:ee?.theme?.hideLessonHeaders??!1}})},63006:(Ze,xe,i)=>{"use strict";i.d(xe,{A:()=>z,G:()=>re});var D=i(36523);const U="rise/features/SET_FEATURE_FLAGS",z=(0,D.handle)({},{[U]:(V,se)=>se}),re=(0,D.action)(U)},94983:(Ze,xe,i)=>{"use strict";i.d(xe,{A:()=>ne,r:()=>ee});var D=i(77335),U=i(36523),z=i(4663),re=i(94379);const V=(ue,{fonts:n})=>[...ue,...n],se=(ue,{fonts:n})=>n,ne=(0,U.handle)([],{[D.LK]:V,[D.LM]:se}),ee=ue=>n=>{(0,z.U)(ue,()=>{n((0,re.m7)(!0))})}},13662:(Ze,xe,i)=>{"use strict";i.d(xe,{Ay:()=>n,zE:()=>ce});var D=i(312),U=i.n(D),z=i(4322),re=i.n(z),V=i(36523);const se={isPreview:window.viewType==="preview",externalLinksModalVisible:!1},ee=U()("rise/globals/")("SHOW_EXTERNAL_LINKS_MODAL"),ue=(pe,Le)=>re()(pe,{externalLinksModalVisible:Le}),n=(0,V.handle)(se,{[ee]:ue}),ce=(0,V.action)(ee)},16829:(Ze,xe,i)=>{"use strict";i.d(xe,{A:()=>Gt,R:()=>Xe});var D=i(47474),U=i.n(D),z=i(10789),re=i.n(z),V=i(46687),se=i.n(V),ne=i(27905),ee=i.n(ne),ue=i(23444),n=i.n(ue),ce=i(312),pe=i.n(ce),Le=i(67711),le=i.n(Le),ge=i(72970),Be=i.n(ge),$=i(80721),H=i.n($),F=i(78324),w=i.n(F),W=i(84929),K=i.n(W),ae=i(86484),Te=i.n(ae),te=i(36523),me=i(63064),ve=i.n(me),m=i(68971),ie=i.n(m);const ke=ve()(2,ds=>ie()((0,te.error)(ds),(0,te.action)(ds)));var X=i(61140);const Ie=pe()("rise/learningPathUpNext/"),Re=Ie("FETCH_LP_UP_NEXT"),gt=Ie("FETCH_LP_UP_NEXT_PENDING"),ft={nextCourse:{},learningPathComplete:!1,isPending:!1,isSuccess:!1},bt=n()(Be()("id")),kt=le()(se()({nextCourse:Te()(bt,re()({})),learningPathComplete:bt,lpHasFailedQuiz:K()("lpHasFailedQuiz"),isPending:!1,isSuccess:!0})),xt=ee()("isPending",!0),Gt=(0,te.handle)(ft,{[Re]:(0,te.onSuccess)(kt),[gt]:xt}),Xe=H()([(0,te.action)(gt),w()(U().fromPromise(X.RR),ke(Re))])},34984:(Ze,xe,i)=>{"use strict";i.d(xe,{O:()=>re});var D=i(312),U=i.n(D);const re=U()("rise/partnerContent/")("SET_ALL_PARTNER_CONTENT")},58931:(Ze,xe,i)=>{"use strict";i.d(xe,{_q:()=>V,nF:()=>ee,pp:()=>n,ut:()=>se});var D=i(312),U=i.n(D),z=i(36523);const re=U()("rise/rise-com/"),V=re("FAVORITE_ADDED"),se=re("FAVORITE_REMOVED"),ne=()=>sideEffect(riseComAddFavorite),ee=()=>(0,z.action)(V,void 0),ue=()=>sideEffect(riseComRemoveFavorite),n=()=>(0,z.action)(se,void 0)},88523:(Ze,xe,i)=>{"use strict";i.d(xe,{Ay:()=>ge,pb:()=>Be,xi:()=>$});var D=i(312),U=i.n(D),z=i(10789),re=i.n(z),V=i(4322),se=i.n(V),ne=i(36523);const ee=U()("rise/sessionPreferences/"),ue=ee("LOAD_SESSION_PREFERENCES"),n=ee("SET_PREFERS_KEYBOARD_NAVIGATION"),ce=ee("SET_STARTING_COURSE_LESSON_SELECTED"),pe={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},Le=(F,w)=>se()(F,{prefersKeyboardNavigation:w}),le=(F,w)=>se()(F,{startedCourseWithLessonSelected:w}),ge=(0,ne.handle)(pe,{[ue]:se(),[n]:Le,[ce]:le}),Be=re()((0,ne.action)(ue,null)),$=(0,ne.action)(n),H=(0,ne.action)(ce)},29249:(Ze,xe,i)=>{"use strict";i.d(xe,{Ay:()=>n,ty:()=>pe,zP:()=>ce});var D=i(27905),U=i.n(D),z=i(67711),re=i.n(z),V=i(19509),se=i(36523);const ne="rise/slidesUI/SET_SLIDE_DIRECTION",ee="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",ue={slideDirection:V.f.UP,exitingSlideOffset:0},n=(0,se.handle)(ue,{[ne]:re()(U()("slideDirection")),[ee]:re()(U()("exitingSlideOffset"))}),ce=(0,se.action)(ne),pe=(0,se.action)(ee)},94379:(Ze,xe,i)=>{"use strict";i.d(xe,{$2:()=>le,$d:()=>Be,Ay:()=>n,LW:()=>pe,cX:()=>ge,m7:()=>ce,zq:()=>Le});var D=i(312),U=i.n(D),z=i(4322),re=i.n(z),V=i(36523);const ne=U()("rise/status/")("SET_LOADED"),ee=($,H)=>re()($,H),ue={connection:"connected",courseLoaded:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},n=(0,V.handle)(ue,{[ne]:ee}),ce=($=!1)=>(0,V.action)(ne,{fontsLoaded:$}),pe=($=!1)=>(0,V.action)(ne,{courseLoaded:$}),Le=($="connected")=>(0,V.action)(ne,{connection:$}),le=($=!1)=>(0,V.action)(ne,{coverLoaded:$}),ge=($=!1)=>(0,V.action)(ne,{notFound:$}),Be=($=!1)=>(0,V.action)(ne,{partnerContentLoaded:$})},5683:(Ze,xe,i)=>{"use strict";i.d(xe,{Ay:()=>pe,fc:()=>Le,sf:()=>le});var D=i(36523),U=i(27905),z=i.n(U),re=i(312),V=i.n(re),se=i(67711),ne=i.n(se);const ee=V()("rise/ui/"),ue=ee("SET_LESSON_NAV_NEXT_BUTTON_UI"),n=ee("SET_SKIP_TO_NAV_BUTTON_UI"),ce={lessonNavNextButton:null,skipToNavButton:null},pe=(0,D.handle)(ce,{[ue]:ne()(z()("lessonNavNextButton")),[n]:ne()(z()("skipToNavButton"))}),Le=(0,D.action)(ue),le=(0,D.action)(n)},23628:(Ze,xe,i)=>{"use strict";var D={};i.r(D),i.d(D,{CoverDescription:()=>g9,CoverDetailsContentHeading:()=>R8,CoverDueDate:()=>v9,CoverHeader:()=>W9,CoverLayout:()=>$9,LessonHeader:()=>n8,LessonNavFinish:()=>i8,LessonNavNext:()=>l8,LessonNavPrevious:()=>p8,LessonProgressGraphic:()=>T8,NavCompactHeaderCounter:()=>O8,NavCompactHeaderProgress:()=>P8,NavCompactOutline:()=>M8,OverviewListItem:()=>D8,OverviewListSectionTitle:()=>k8,Progress:()=>A8});var U={};i.r(U),i.d(U,{AlignLeft:()=>_8,ArrowDown:()=>z0,ArrowLeft:()=>w8,ArrowRight:()=>B8,ArrowUp:()=>W2,Category:()=>WC,ChevronDown:()=>U8,ChevronUp:()=>H8,Favorite:()=>x0,LessonsComplete:()=>od,LessonsRequirement:()=>u2,QuestionBox:()=>F8,QuizFailed:()=>Q2,QuizPassed:()=>od,QuizRequirement:()=>v0,Search:()=>V8,ToggleDown:()=>W8,Touch:()=>G8,VideoCamera:()=>K8,X:()=>$8});var z={};i.r(z),i.d(z,{components:()=>D,icons:()=>U});var re={};i.r(re),i.d(re,{CoverCourseInfo:()=>k7,CoverDetailsSection:()=>U7,CoverHeader:()=>J7,CoverLayout:()=>ex,LessonHeader:()=>ox,LessonProgressGraphic:()=>dx,NavSidebarHeader:()=>ux,OverviewListItemLinkContent:()=>_x,Progress:()=>Ux});var V={};i.r(V),i.d(V,{ArrowDown:()=>lp,ArrowLeft:()=>zx,ArrowRight:()=>Fx,ArrowUp:()=>lp,ChevronDown:()=>dp,ChevronUp:()=>dp,Favorite:()=>x0,LessonsComplete:()=>up,LessonsRequirement:()=>hp,QuizFailed:()=>Wx,QuizPassed:()=>up,QuizRequirement:()=>hp,Search:()=>Vx,ToggleDown:()=>Gx,X:()=>Kx});var se={};i.r(se),i.d(se,{components:()=>re,icons:()=>V});var ne={};i.r(ne),i.d(ne,{CoverDescription:()=>Zx,CoverDetails:()=>Xx,CoverGraphic:()=>Gc,CoverHeader:()=>aE,CoverLayout:()=>cE,CoverProgress:()=>TE,CoverSVG:()=>Ca,LessonHeader:()=>yE,LessonProgressGraphic:()=>RE,NavSidebarHeaderProgress:()=>PE});var ee={};i.r(ee),i.d(ee,{AlignLeft:()=>UE,ArrowDown:()=>DE,ArrowLeft:()=>kE,ArrowRight:()=>wE,ArrowUp:()=>_E,ChevronDown:()=>Lp,ChevronUp:()=>HE,Favorite:()=>x0,LessonsComplete:()=>od,LessonsRequirement:()=>u2,QuestionBox:()=>FE,QuizFailed:()=>Q2,QuizPassed:()=>od,QuizRequirement:()=>v0,Search:()=>zE,ToggleDown:()=>Lp,Touch:()=>VE,VideoCamera:()=>WE,X:()=>GE});var ue={};i.r(ue),i.d(ue,{components:()=>ne,icons:()=>ee});var n=i(50635),ce=i(12243),pe=i(22651),Le=i(33657),le=i(47993),ge=i(69582),Be=i(57770),$=i(55238),H=i(99638),F=i(51563),w=i(22302),W=i(74968),K=i(32838),ae=i(25620),Te=i(13848),te=i(93665),me=i(15075),ve=i(54944),m=i(59288),ie=i.n(m),je=i(87459),ke=i(26058),X=i(18391),Ie=i(72147),Re=i(52439);const gt="_course_token",ft=new URLSearchParams(window.location.hash.substr(1)),bt=ft.get(gt);bt&&(ft.delete(gt),window.history.replaceState(null,null,`#${ft.toString()}`));const kt=t=>{const{data:{method:e,id:s,jsonrpc:o}}=t;if(o==="2.0"&&e==="getBearerToken"){const r=bt||(0,Re.rS)();navigator.serviceWorker.ready.then(a=>{a.active.postMessage({id:s,jsonrpc:"2.0",method:e,result:{token:r}})})}};navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",kt);const xt=(0,m.createContext)({});function Gt(t,{type:e,message:s}){switch(e){case"polite":return{...t,politeMessage1:t.alternatePolite?s:"",politeMessage2:t.alternatePolite?"":s,alternatePolite:!t.alternatePolite};case"assertive":return{...t,assertiveMessage1:t.alternatePolite?s:"",assertiveMessage2:t.alternatePolite?"":s,alternateAssertive:!t.alternateAssertive};case"clear":default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function Xe({ariaLive:t,message:e}){return(0,n.jsx)("div",{className:"visually-hidden-always",role:"log","aria-live":t,"aria-atomic":"true","aria-relevant":"additions text",children:e})}function ds({children:t}){const[{politeMessage1:e,politeMessage2:s,assertiveMessage1:o,assertiveMessage2:r},a]=(0,m.useReducer)(Gt,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),c=(0,m.useMemo)(()=>({announcePolite:d=>{a({type:"polite",message:d})},announceAssertive:d=>{a({type:"assertive",message:d})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,n.jsxs)(xt.Provider,{value:c,children:[(0,n.jsx)(Xe,{id:"polite-announcer1",ariaLive:"polite",message:e}),(0,n.jsx)(Xe,{id:"polite-announcer2",ariaLive:"polite",message:s}),(0,n.jsx)(Xe,{id:"assertive-announcer1",ariaLive:"assertive",message:o}),(0,n.jsx)(Xe,{id:"assertive-announcer2",ariaLive:"assertive",message:r}),t]})}function Je(){return(0,m.useContext)(xt)}function ut(t){const e=forwardRef((s,o)=>{const r=Je();return jsx(t,{...s,...r,ref:o})});return e.displayName=`withAriaLive(${t.displayName||t.name})`,e}var de=i(35965),it=i(86659),Et=i(42183),rt=i.n(Et),Kt=i(52107),Fe=i(96716),M=i.n(Fe),ze=i(28239),ht=i(61140),ye=i(83416);const Ss=`${(0,ye._$)("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,fs=`${(0,ye._$)("CDN_URI")}/assets/rise/assets/error_x.svg`,Oe=`${(0,ye._$)("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,Ds="downloading",Zs="error",Cs="ok",Gn="contained",os=({type:t})=>{const[e]=(0,m.useState)(()=>rt()("certdownload-")),[s,o]=(0,m.useState)(Cs),r=(0,Kt.A)(s),a=(0,m.useRef)(),c=(0,ze.useLabelsMap)(),d=`${e}-live`,l=M()("certificateDownload",{certificateDownloadContained:t===Gn}),u=(0,m.useCallback)(()=>{o(Ds)},[]);return(0,m.useEffect)(()=>(s===Ds&&r!==Ds&&(0,ht.gj)().then(()=>{o(Cs)}).catch(h=>{(0,it.FZ)(h)?o(Cs):o(Zs)}),()=>{(0,ht.G7)()}),[r,s]),(0,m.useEffect)(()=>{a.current&&(s===Zs&&r!==Zs||s===Cs&&(r===Zs||r===Ds))&&a.current.focus()},[r,s]),(0,n.jsxs)("div",{className:l,children:[(0,n.jsxs)("div",{"aria-live":"polite",id:d,role:"status",children:[s===Ds&&(0,n.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,n.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:Oe,width:"15"}),c?.certificateDownloadInProgress||"Downloading..."]}),s===Zs&&(0,n.jsxs)("span",{className:"certificateDownload__error",children:[(0,n.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:fs,width:"15"}),(0,n.jsx)("span",{className:"visually-hidden",children:c?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(s===Cs||s===Zs)&&(0,n.jsxs)("button",{"aria-controls":d,className:"certificateDownload__btn",onClick:u,ref:a,type:"button",children:[s===Cs&&t===Gn&&(0,n.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:Ss,width:"15"}),s===Cs?c?.certificateDownload||"Download certificate":c?.certificateRetryDownload||"Retry download"]})]})},uo=()=>(0,n.jsx)(os,{type:Gn}),nr=(0,m.memo)(os);var _s=i(45274),$e=i(63545),Pt=i(82719),Ot=i(49501),xs=i(38286);const ho=()=>(0,Ot.Mz)(e=>e,(e,s)=>s,(e,s,o)=>(0,Pt.HH)(o),(e,s,o)=>(0,Pt.fF)(o),Pt.Dh);function Us(t){const{currentLocale:e}=(0,xs.nY)(),s=(0,m.useMemo)(ho,[]);return(0,X.d4)(o=>s(t,e,o))}const or=(0,Ot.Mz)(t=>t,(t,e)=>(0,Pt.fF)(e),(t,e)=>e?.[t]);function vt(){const{currentLocale:t}=(0,xs.nY)();return(0,X.d4)(e=>or(t,e))}const Os=(0,Ot.Mz)(t=>t.course?.title,Pt.HH,Pt.fF,(t,e,s)=>(0,Pt.xp)(t,e,s)??t);function Kn(){return(0,X.d4)(Os)}function Ut(t){return t?.course}function Mt(){return(0,X.d4)(t=>Ut(t))}function Lr(t){return Ut(t).navigationMode}function Po(t){return Ut(t).navigationStyle}function mo(t){return Ut(t).trackingQuizId}function br(t,e){const s=Ut(e);return(0,Pt.i7)(s.title,t,e)}function Mo(){const t=Mt();return Us(t.title)}function Va(t){return Ut(t)?.type}function yr(){return(0,X.d4)(t=>Va(t))}function Bt(t){return Ut(t)?.type===$e.y4}function $t(t){const e=Ut(t);return(0,_s.HX)(e)}function js(){return useSelector(t=>$t(t))}var po=i(34198),Se=i.n(po),rr=i(75800),Es=i.n(rr),Wa=i(90538),fo=i.n(Wa),cc=i(99390),Bl=i.n(cc),_l=i(86654),Qt=i.n(_l),Ul=i(83799),qe=i.n(Ul),Hl=i(78107),Ts=i.n(Hl),Fl=i(8466),As=i.n(Fl),Ks=i(1202),Zt=i.n(Ks),lc=i(34379),Yt=i.n(lc),dc=i(64104),Do=i.n(dc),uc=i(24024),us=i.n(uc),hc=i(16971),gs=i.n(hc),ar=i(7827),jt=i.n(ar),mc=i(74674),Ye=i.n(mc),pc=i(37953),Ls=i.n(pc),Ir=i(84929),Pe=i.n(Ir),Nr=i(17247),Ue=i.n(Nr),Ga=i(7699),ea=i.n(Ga),ta=i(29255),ir=i.n(ta),Ka=i(24262),fc=i.n(Ka);const sa=Pe()("lessons"),na=fc()(t=>!!t,["settings","passToContinue"]),$a=t=>Se()(gs(),e=>jt()([e,"passed"],t),Pe()("id")),Mn=({course:t,courseProgress:e})=>Se()(As(),Qt()($a(sa(e))),Qt()(na),sa)(t)||{},gc=({courseProgress:t,lesson:e,restrictingQuiz:s})=>{const o=Pe()("id",e),r=d=>jt()([d,"index"],sa(t)),a=r(o);return Se()(ir()(a),r,Pe()("id"))(s)?s:{}};var At=i(61556);const vc=Se()(gs(),Yt()),Qa=Se()(Qt()(At.GG),Pe()("lessonsOnly")),oa=({course:t,courseProgress:e})=>qe()(Cc(e))(t.lessonsOnly),Cc=t=>e=>gs()(jt()(["lessons",e.id,"isComplete"],t)),xc=({lesson:t,currentLesson:e})=>t&&Ue()("id",t.id,e),ra=({course:t,lesson:e})=>Ue()("id",e.id,As()(Pe()("lessonsOnly",t))),Ec=({course:t,lesson:e})=>Ue()("id",e.id,Do()(Pe()("lessonsOnly",t))),Za=Se()(gs(),Ue()("type","section")),Ya=({lesson:t,courseProgress:e})=>Ye()(!1,["lessons",t.id,"isComplete"],e),aa=({course:t,courseProgress:e,lesson:s,restrictingQuiz:o})=>{const r=gc({courseProgress:e,lesson:s,restrictingQuiz:o}),a=(0,At.bQ)(t),c=a||vc(r),d=oa({course:t,courseProgress:e}),l=Za(s)&&gs()(Ya({lesson:s,courseProgress:e}));return{isRestricted:c&&l&&gs()(xc({lesson:s,currentLesson:d})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:d}},go=({labels:t,restrictions:e})=>{const{lessonRestricted:s,quizRequirePassingScore:o}=t,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:c}=e,d=c&&Bl()("id",a,c);return!r||r&&d?a.title?o.replace("quiz",`"${a.title}"`):o:s},ia=Es()(t=>Ts()(ea()(Ls()(["id"],t||{})))),Xa=({course:t,lesson:e})=>Se()(Zt(),ia(e),Qa)(t),jr=({course:t,lesson:e})=>!Ec({course:t,lesson:e})&&t.lessonsOnly[Zt()(ia(e,t.lessonsOnly))],Tc=({course:t,lesson:e})=>!ra({course:t,lesson:e})&&t.lessonsOnly[dec(ia(e,t.lessonsOnly))],Sc=Se()(us(),Qa),Ja=t=>typeof t=="object"&&Object.keys(t).length>0,Ar=t=>t===void 0||t===!1,Lc=t=>Ar(t?.isComplete),zl=t=>t.find(([e,s])=>Lc(s)),Vl=t=>{const e=Object.entries(t),[s]=zl(e)||[];return s},bc=t=>Ja(t)?Vl(t):void 0,qa=(t,e,s)=>{if(!s)return{outOfAttempts:!1,quizPassed:!0};const o=jt()(["lessons",s],t),r=Ye()(-1,["settings","retryCount"],e),a=Ye()(0,["retryAttempts"],o),c=jt()(["passed"],o);return{outOfAttempts:jt()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:c}};function cr(t){return t.courseProgress}function ei(t){return t.courseProgress?.currentLesson??""}function ca(t){return t.courseProgress?.percentComplete??0}const lr=(0,Ot.Mz)(mo,Ut,(t,{lessons:e})=>Array.isArray(e)?e.find(({id:s,type:o})=>o==="quiz"&&s===t):null),et=(0,Ot.Mz)(cr,lr,(t,e)=>e?qa(t,e,e.id):null);function ti(t){const e=cr(t);return(0,de.Wk)()?e.percentComplete===100:!!(0,de.As)()}function Rr(t){return t.courseProgress?.lessons}function la(t,e){return Rr(e)?.[t]}function Or(){return useSelector(cr)}function Wl(){return(0,X.d4)(ei)}function si(){return(0,X.d4)(ca)}function Gl(){return(0,X.d4)(lr)}function ni(){return(0,X.d4)(et)??{outOfAttempts:!1,quizPassed:!1}}function Pr(){return(0,X.d4)(ti)}function De(t){return(0,X.d4)(e=>la(t,e))}var Ve=i(67331),Tt=i.n(Ve),ks=i(34552),tt=i.n(ks),_t=i(95172),O=i(5181);const da=t=>t>9999?1:t,ua=({current:t,restart:e,restartValue:s})=>{const o=Number(s),r=da(Number.isInteger(o)&&o>0?o:1),a=e?r:t+1;return da(a)},Kl=(t,e)=>{if(e.family==="divider"&&e.variant==="numbered divider"){const s=e.settings??{},o=ua({current:t.currentNumber,restart:s.restartNumbering,restartValue:s.restartNumberingValue});return{map:{...t.map,[e.id]:o},currentNumber:o}}return t};function vo(){return(0,Ot.Mz)(t=>t,(t,e)=>Zl(e),(t,e)=>Pe()(t,e))}function Co(t){const e=(0,m.useMemo)(()=>vo(),[]);return(0,X.d4)(s=>e(t,s))}function ko(t){const e=Co(t);return Us(e?.title)}function yc(){const t=vo();return(0,Ot.Mz)(t,e=>(0,_t.Mz)(e))}function Ic(){return(0,Ot.Mz)(ei,be,(t,e)=>tt()(-1,t,e))}function Mr(){const t=Nc();return(0,Ot.Mz)(e=>e,(e,s)=>t(s),(e,s)=>Lr(s),(e,s)=>p0(s),(e,s)=>f0(s),(e,s)=>Rr(s),(e,s,o,r,a,c)=>{const d=c[e],l=c[s];if(e!==s&&!d?.isComplete&&d?.index>l?.index){const u=c[r?.id]?.index??1/0,h=o==="restricted"?l?.index??1/0:c[a?.id]?.index??1/0;if(d?.index>Math.min(u,h))return h<u?o==="restricted"?{type:_t.XQ.ORDER}:{type:_t.XQ.KNOWLEDGE_CHECK}:{type:_t.XQ.QUIZ,data:r.title}}return null})}function Dr(t){const e=(0,m.useMemo)(()=>Mr(),[]);return(0,X.d4)(s=>e(t,s))}function Nc(){return(0,Ot.Mz)(Rr,t=>bc(t))}function u0(){const t=Nc();return(0,Ot.Mz)(e=>e,(e,s)=>t(s),(e,s)=>Zl(s),(e,s)=>(0,Pt.HH)(s),(e,s)=>(0,Pt.fF)(s),(e,s,o,r,a)=>(0,Pt.UR)(o[s],e,r,a))}function h0(){const t=vo();return(0,Ot.Mz)(t,la,(e,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&(!r||(0,_t.gL)(e)&&!a)})}function $l(t){const e=(0,m.useMemo)(()=>h0(),[]);return(0,X.d4)(s=>e(t,s))}function m0(){const t=vo();return(0,Ot.Mz)(t,la,(e,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&r&&(!(0,_t.gL)(e)||a)})}function Ql(t){const e=(0,m.useMemo)(()=>m0(),[]);return(0,X.d4)(s=>e(t,s))}const jc=(0,Ot.Mz)(Ut,t=>tt()([],"lessons",t)),Zl=(0,Ot.Mz)(jc,t=>t.reduce((e,s)=>(s?.id&&(e[s.id]=s),e),{})),Q=(0,Ot.Mz)(Ut,t=>tt()([],"lessonsOnly",t)),be=(0,Ot.Mz)(Q,t=>t.reduce((e,s,o)=>(e[s.id]=o+1,e),{})),Ct=(0,Ot.Mz)(Q,t=>Tt()("id",t)),Xt=(0,Ot.Mz)(Q,t=>As()(t)),Ys=({type:t,settings:e})=>t!=="quiz"||e.asLesson||e.asLesson===void 0,un=(0,Ot.Mz)(Q,Qt()(Ys)),wo=(0,Ot.Mz)(un,us()),Ac=(0,Ot.Mz)(jc,t=>t.reduce((e,s)=>{const o=e[e.length-1];return(0,_t.Mz)(s)||o==null?e.push([s.id]):o.push(s.id),e},[])),p0=(0,Ot.Mz)(Q,Rr,(t,e)=>t.find(s=>(0,_t.gL)(s)&&(0,_t.dg)(s)&&!e[s.id]?.isComplete)),f0=(0,Ot.Mz)(Q,Rr,(t,e)=>t.find(s=>!(0,_t.gL)(s)&&(0,_t.Sg)(s)&&!e[s.id]?.isComplete));function oi(t){const e=(0,m.useMemo)(yc,[]);return(0,X.d4)(s=>e(t[0],s))}function Rc(t){const e=(0,m.useMemo)(()=>vo(),[]),s=(0,m.useMemo)(()=>Mr(),[]);return(0,X.d4)(o=>{const r=Ut(o),a=e(t,o),c=la(t,o),l=s(t,o)?.type!=null;return r?.navigationMode!==O.b$.RESTRICTED&&r?.markComplete&&!l&&a?.type!==_t.d9.QUIZ&&!(ye.BI&&c?.percentComplete===100)})}const g0=(t,e)=>e.findIndex(s=>s.id===t);function n2(){return(0,Ot.Mz)(t=>t,(t,e)=>Q(e),(t,e)=>{if(t==="progress-summary")return Do()(e);const s=g0(t,e),o=fo()(s);return e[o]})}function o2(){return(0,Ot.Mz)(t=>t,(t,e)=>Q(e),(t,e)=>{const s=g0(t,e),o=Zt()(s);return e[o]})}function r2(t){return(0,Ot.Mz)(t,(e,s)=>un(s),(e,s)=>g0(e?.id,s)+1)}function jC(){return r2(o2())}function AC(){return r2(n2())}function a2(){return(0,X.d4)(t=>Ac(t))}function RC(){const t=Nc();return(0,Ot.Mz)(ti,t,mo,(e,s,o)=>{const r=!!s,a=o!=null;return e||!r&&!a})}function OC(){const t=(0,m.useMemo)(()=>RC(),[]);return(0,X.d4)(e=>t(e))}const PC=t=>t?.items?.reduce(Kl,{map:{},currentNumber:0})?.map||{},MC=t=>{const e=(0,m.useMemo)(()=>vo(),[]),s=(0,X.d4)(o=>e(t,o));return(0,m.useMemo)(()=>PC(s),[s])},DC=({blockId:t,lessonId:e})=>MC(e)?.[t];function is(t){return(0,n.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...t})}const Kse=t=>{const{children:e,className:s,color:o,size:r}=t;return jsx("span",{className:`${s||""} ${r}`,style:o?{color:o}:{},children:e})},$se=t=>jsx(Icon,{...t,viewBox:"0 0 8 8",children:jsx("polygon",{points:"8,3 5,3 5,0 3,0 3,3 0,3 0,5 3,5 3,8 5,8 5,5 8,5 "})}),Qse=null,kC=t=>(0,n.jsx)(is,{viewBox:"0 0 10 10",...t,children:(0,n.jsxs)("g",{fillRule:"evenodd",children:[(0,n.jsx)("path",{d:"M0 4.107h10v2H0z"}),(0,n.jsx)("path",{d:"M4 0h2v10H4z"})]})}),Yse=({width:t="18",height:e="18",className:s})=>jsx("svg",{"aria-hidden":"true",viewBox:"0 0 18 18",width:t,height:e,className:classNames("i i-alert",s),focusable:"false",children:jsx("g",{stroke:"#DE1D1D",strokeWidth:"1.5",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),Xse=null;function wC(t){return(0,n.jsxs)(is,{viewBox:"0 0 16 12",...t,children:[(0,n.jsx)("path",{d:"M8.4148147,12 L1.05185184,12 C0.471229623,12 0,11.552 0,11 C0,10.448 0.471229623,10 1.05185184,10 L8.4148147,10 C8.99543692,10 9.46666654,10.448 9.46666654,11 C9.46666654,11.552 8.99543692,12 8.4148147,12"}),(0,n.jsx)("path",{d:"M12.2500002,2 L0.816666683,2 C0.365866674,2 0,1.552 0,1 C0,0.448 0.365866674,0 0.816666683,0 L12.2500002,0 C12.7008002,0 13.0666669,0.448 13.0666669,1 C13.0666669,1.552 12.7008002,2 12.2500002,2"}),(0,n.jsx)("path",{d:"M15,7 L1,7 C0.448,7 0,6.552 0,6 C0,5.448 0.448,5 1,5 L15,5 C15.552,5 16,5.448 16,6 C16,6.552 15.552,7 15,7"})]})}const Jse=({width:t="20",height:e="20"})=>jsxs("svg",{"aria-hidden":"true",width:t,height:e,viewBox:"0 0 20 20",fill:"none",focusable:"false",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 8.33332C1.6665 7.87309 2.0396 7.49999 2.49984 7.49999H14.1665C14.6267 7.49999 14.9998 7.87309 14.9998 8.33332C14.9998 8.79356 14.6267 9.16666 14.1665 9.16666H2.49984C2.0396 9.16666 1.6665 8.79356 1.6665 8.33332Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 4.99999C1.6665 4.53975 2.0396 4.16666 2.49984 4.16666H17.4998C17.9601 4.16666 18.3332 4.53975 18.3332 4.99999C18.3332 5.46023 17.9601 5.83332 17.4998 5.83332H2.49984C2.0396 5.83332 1.6665 5.46023 1.6665 4.99999Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 11.6667C1.6665 11.2064 2.0396 10.8333 2.49984 10.8333H17.4998C17.9601 10.8333 18.3332 11.2064 18.3332 11.6667C18.3332 12.1269 17.9601 12.5 17.4998 12.5H2.49984C2.0396 12.5 1.6665 12.1269 1.6665 11.6667Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 15C1.6665 14.5398 2.0396 14.1667 2.49984 14.1667H14.1665C14.6267 14.1667 14.9998 14.5398 14.9998 15C14.9998 15.4602 14.6267 15.8333 14.1665 15.8333H2.49984C2.0396 15.8333 1.6665 15.4602 1.6665 15Z",fill:"currentColor"})]}),qse=null,ene=({width:t="15",height:e="15",className:s})=>jsx("svg",{"aria-hidden":"true",viewBox:"0 0 15 15",width:t,height:e,className:classNames("i i-all-blocks",s),focusable:"false",children:jsx("path",{fillRule:"evenodd",d:"M.25.5h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2z"})}),tne=null,sne=t=>jsx(Icon,{...t,viewBox:"0 0 15 15",children:jsx("path",{d:"M5.444.215H1.07c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.09c0-.525-.35-.875-.875-.875M13.32.215H8.943c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.09c0-.525-.35-.875-.875-.875M5.444 8.09H1.07c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V8.965c0-.525-.35-.875-.875-.875M13.32 8.09H8.943c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V8.965c0-.525-.35-.875-.875-.875"})}),nne=null,one=({width:t="24",height:e="16",leftMovement:s="0",className:o})=>jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 16",width:t,height:e,style:{marginLeft:s},className:classNames("i i-alt",o),focusable:"false",children:[jsx("path",{d:"M10.066 11.5H8.887a.545.545 0 0 1-.326-.092.476.476 0 0 1-.178-.236l-.387-1.144H5.503l-.387 1.143a.507.507 0 0 1-.175.228.505.505 0 0 1-.32.101H3.433l2.538-6.556h1.557l2.538 6.556zM5.854 8.993h1.791l-.603-1.795-.137-.403a10.24 10.24 0 0 1-.155-.502 8.943 8.943 0 0 1-.293.914l-.603 1.786zm6.962 1.292h2.43V11.5h-3.951V4.944h1.52v5.341zM20.7 4.944v1.205h-1.845V11.5h-1.52V6.15H15.49V4.942h5.211z"}),jsx("path",{fillRule:"nonzero",d:"M1.5 1.994v12.012a.5.5 0 0 0 .505.494h19.99a.5.5 0 0 0 .505-.494V1.994a.5.5 0 0 0-.505-.494H2.005a.5.5 0 0 0-.505.494zm-1.5 0A2 2 0 0 1 2.005 0h19.99A2 2 0 0 1 24 1.994v12.012A2 2 0 0 1 21.995 16H2.005A2 2 0 0 1 0 14.006V1.994z"})]}),rne=null,BC=({className:t,width:e="20",height:s="20",focusable:o="false"})=>(0,n.jsxs)("svg",{className:t,width:e,height:s,viewBox:"0 0 20 20",fill:"none",focusable:o,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0002 3.33334C10.4604 3.33334 10.8335 3.70644 10.8335 4.16668V15.8333C10.8335 16.2936 10.4604 16.6667 10.0002 16.6667C9.53992 16.6667 9.16683 16.2936 9.16683 15.8333V4.16668C9.16683 3.70644 9.53992 3.33334 10.0002 3.33334Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.57757 9.41075C3.90301 9.08532 4.43065 9.08532 4.75609 9.41075L10.0002 14.6548L15.2442 9.41075C15.5697 9.08532 16.0973 9.08532 16.4228 9.41075C16.7482 9.73619 16.7482 10.2638 16.4228 10.5893L10.5894 16.4226C10.264 16.748 9.73634 16.748 9.41091 16.4226L3.57757 10.5893C3.25214 10.2638 3.25214 9.73619 3.57757 9.41075Z",fill:"currentColor"})]}),ine=({title:t="Export",desc:e="An arrow bending itself to the right",width:s="16",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 13",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M15.8,6L8.9,0.2C8.4-0.2,7.8,0.1,7.8,0.6v2.7C2.6,3.6,0,6.2,0,12.4c0,0.6,0.8,0.9,1.2,0.4 c1.7-2.2,3.2-3,6.6-3.1v2.7c0,0.5,0.7,0.8,1.1,0.5L15.8,7C16.1,6.7,16.1,6.3,15.8,6z M1.4,10.6c0.4-4.4,2.7-6,7-6 c0.4,0,0.6-0.3,0.6-0.6V2l5.3,4.5L9.1,11V9c0-0.3-0.3-0.6-0.6-0.6C5,8.4,3.1,9,1.4,10.6z"})]}),cne=null;function _C(t){return(0,n.jsx)(is,{viewBox:"0 0 384 512",...t,children:(0,n.jsx)("path",{fill:"currentColor",d:"M377.4 296.6l-168 176C204.8 477.3 198.6 480 192 480s-12.84-2.688-17.38-7.438l-168-176C-2.5 286.1-2.156 271.8 7.438 262.6c9.5-9.156 24.75-8.812 33.94 .8125L168 396.1V56.02c0-13.25 10.75-24.01 23.1-24.01S216 42.77 216 56.02v340.1l126.6-132.7c9.156-9.625 24.41-9.969 33.94-.8125C386.2 271.8 386.5 286.1 377.4 296.6z"})})}function UC(t){return(0,n.jsxs)(is,{viewBox:"0 0 22 22",...t,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0002 0.332031C11.7365 0.332031 12.3335 0.928985 12.3335 1.66536L12.3335 20.332C12.3335 21.0684 11.7365 21.6654 11.0002 21.6654C10.2638 21.6654 9.66683 21.0684 9.66683 20.332L9.66683 1.66536C9.66683 0.928985 10.2638 0.332031 11.0002 0.332031Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.72402 10.0559C1.24472 9.53519 2.08894 9.53519 2.60964 10.0559L11.0002 18.4464L19.3907 10.0559C19.9114 9.53519 20.7556 9.53519 21.2763 10.0559C21.797 10.5766 21.797 11.4208 21.2763 11.9415L11.943 21.2748C11.4223 21.7955 10.5781 21.7955 10.0574 21.2748L0.72402 11.9415C0.203321 11.4208 0.203321 10.5766 0.72402 10.0559Z",fill:"currentColor"})]})}const HC=({title:t="Export",desc:e="An arrow pointing right",width:s="16",height:o="8",className:r,focusable:a="false",decorative:c})=>(0,n.jsxs)("svg",{viewBox:"0 0 16 8",width:s,height:o,className:M()("i",r),focusable:a,"aria-hidden":c?"true":"false",children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{fill:"#444",fillRule:"evenodd",d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1"})]});function FC(t){return(0,n.jsx)(is,{viewBox:"0 0 384 512",...t,children:(0,n.jsx)("path",{fill:"currentColor",d:"M6.625 215.5l168-176C179.2 34.7 185.4 32.02 192 32.02s12.84 2.688 17.38 7.438l168 176c9.125 9.594 8.781 24.78-.8125 33.94c-9.5 9.156-24.75 8.812-33.94-.8125L216 115.9V456c0 13.25-10.75 23.1-23.1 23.1S168 469.3 168 456V115.9l-126.6 132.7C32.22 258.2 16.97 258.5 7.438 249.4C-2.156 240.2-2.5 225 6.625 215.5z"})})}function zC(t){return(0,n.jsxs)(is,{viewBox:"0 0 22 22",...t,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0007 0.332031C11.737 0.332031 12.334 0.928985 12.334 1.66536L12.334 20.332C12.334 21.0684 11.737 21.6654 11.0007 21.6654C10.2643 21.6654 9.66732 21.0684 9.66732 20.332L9.66732 1.66536C9.66732 0.928985 10.2643 0.332031 11.0007 0.332031Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0578 0.722556C10.5785 0.201856 11.4228 0.201856 11.9435 0.722556L21.2768 10.0559C21.7975 10.5766 21.7975 11.4208 21.2768 11.9415C20.7561 12.4622 19.9119 12.4622 19.3912 11.9415L11.0007 3.55098L2.61013 11.9415C2.08943 12.4622 1.24521 12.4622 0.724509 11.9415C0.20381 11.4208 0.20381 10.5766 0.724509 10.0559L10.0578 0.722556Z",fill:"currentColor"})]})}const VC=t=>(0,n.jsx)(is,{viewBox:"0 0 10 12",...t,children:(0,n.jsx)("path",{d:"M7.09677 6.92617C8.14516 6.28188 8.79032 5.07383 8.79032 3.78523C8.79032 1.69128 7.09677 0 5 0C2.90323 0 1.20968 1.69128 1.20968 3.78523C1.20968 5.07383 1.85484 6.20134 2.90323 6.92617C1.20968 7.73154 0 9.42282 0 11.4362C0 11.7584 0.241936 12 0.564516 12C0.887097 12 1.12903 11.7584 1.12903 11.4362C1.12903 9.34228 2.90323 7.57047 5 7.57047C7.09677 7.57047 8.87097 9.34228 8.87097 11.4362C8.87097 11.7584 9.1129 12 9.43548 12C9.75806 12 10 11.7584 10 11.4362C9.91935 9.42282 8.79032 7.73154 7.09677 6.92617ZM5 1.12752C6.45161 1.12752 7.66129 2.33557 7.66129 3.78523C7.66129 5.2349 6.45161 6.44295 5 6.44295C3.54839 6.44295 2.33871 5.2349 2.33871 3.78523C2.33871 2.33557 3.46774 1.12752 5 1.12752Z"})}),une=({title:t="Background Image",desc:e="Background Image",width:s="18",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 18 18",width:s,height:o,className:classNames("i i-background-image",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{children:[" ",jsx("path",{d:"M7.5,7.5c1.2,0,2.2-1,2.2-2.2c0-1.2-1-2.2-2.2-2.2s-2.2,1-2.2,2.2C5.4,6.6,6.4,7.5,7.5,7.5z M7.5,4.6 c0.4,0,0.8,0.3,0.8,0.8c0,0.4-0.3,0.8-0.8,0.8S6.8,5.8,6.8,5.4C6.8,4.9,7.1,4.6,7.5,4.6z"})," ",jsx("path",{d:"M17,0.3H1C0.6,0.3,0.3,0.6,0.3,1v16c0,0.4,0.3,0.7,0.7,0.7h16c0.4,0,0.7-0.3,0.7-0.7V1 C17.7,0.6,17.4,0.3,17,0.3z M16.3,16.3H1.7V1.7h14.6V16.3z"})," ",jsx("path",{d:"M3.2,14.8h11.6c0.3,0,0.5-0.1,0.6-0.4c0.1-0.2,0.1-0.5,0-0.7l-3.6-5.8c-0.1-0.2-0.3-0.3-0.6-0.3 c-0.2,0-0.4,0.1-0.6,0.3l-2.4,3L6.6,9.2C6.4,9.1,6.2,9,6,9c-0.2,0-0.4,0.1-0.5,0.3l-2.9,4.4c-0.1,0.2-0.2,0.5,0,0.7 C2.7,14.6,2.9,14.8,3.2,14.8z M6.2,10.8l1.6,1.6c0.1,0.1,0.3,0.2,0.5,0.2c0.2,0,0.4-0.1,0.5-0.3l2.3-2.9l2.4,3.9H4.5L6.2,10.8z"})," "]})]}),hne=null,mne=({title:t="Bank",desc:e="A building with four columns",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 16",width:s,height:o,className:classNames("i i-bank",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.625 7.98905V13.2473H5.375V7.98905H7.125V13.2473H8.875V7.98905H10.625V13.2473H12.375V7.98905H14.125V13.2473H15V15H1V13.2473H1.875V7.98905H3.625ZM7.65 1.06573C7.9125 0.978091 8.0875 0.978091 8.35 1.06573L14.475 3.69484C14.825 3.78247 15 4.13302 15 4.48357V6.23631C15 6.76213 14.65 7.11268 14.125 7.11268H1.875C1.35 7.11268 1 6.76213 1 6.23631V4.48357C1 4.13302 1.175 3.78247 1.525 3.69484L7.65 1.06573ZM8 3.6072C7.475 3.6072 7.125 3.95775 7.125 4.48357C7.125 5.00939 7.475 5.35994 8 5.35994C8.525 5.35994 8.875 5.00939 8.875 4.48357C8.875 3.95775 8.525 3.6072 8 3.6072Z"})]}),pne=null;function fne(t){return jsxs(Icon,{viewBox:"0 0 14 14",fill:"none",...t,children:[jsx("rect",{x:"0.75",y:"0.75",width:"8.3",height:"8.3",stroke:"currentColor",strokeWidth:"1.5"}),jsx("rect",{x:"4.9502",y:"4.9502",width:"8.3",height:"8.3",rx:"1.35",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})]})}function gne(t){return jsxs(Icon,{viewBox:"0 0 14 15",...t,children:[jsx("path",{d:"M1 13.25C0.585786 13.25 0.25 13.5858 0.25 14C0.25 14.4142 0.585786 14.75 1 14.75V13.25ZM13.1333 14.75C13.5475 14.75 13.8833 14.4142 13.8833 14C13.8833 13.5858 13.5475 13.25 13.1333 13.25V14.75ZM1 14.75H13.1333V13.25H1V14.75Z"}),jsx("path",{d:"M1 0.25C0.585786 0.25 0.25 0.585786 0.25 1C0.25 1.41421 0.585786 1.75 1 1.75V0.25ZM13.1333 1.75C13.5475 1.75 13.8833 1.41421 13.8833 1C13.8833 0.585786 13.5475 0.25 13.1333 0.25V1.75ZM1 1.75H13.1333V0.25H1V1.75Z"}),jsx("path",{d:"M6.31641 11.2266C6.31641 11.6408 6.65219 11.9766 7.06641 11.9766C7.48062 11.9766 7.81641 11.6408 7.81641 11.2266L6.31641 11.2266ZM7.81641 5.3334C7.81641 4.91918 7.48062 4.5834 7.06641 4.5834C6.65219 4.5834 6.31641 4.91918 6.31641 5.3334L7.81641 5.3334ZM7.81641 11.2266L7.81641 5.3334L6.31641 5.3334L6.31641 11.2266L7.81641 11.2266Z"}),jsx("path",{d:"M5.09404 4.86491C4.83528 5.18836 4.88772 5.66033 5.21117 5.91908C5.53461 6.17784 6.00658 6.1254 6.26534 5.80195L5.09404 4.86491ZM7.06635 3.6001L7.65201 3.13158C7.50968 2.95366 7.29419 2.8501 7.06635 2.8501C6.83852 2.8501 6.62303 2.95366 6.4807 3.13158L7.06635 3.6001ZM7.86737 5.80195C8.12613 6.1254 8.5981 6.17784 8.92154 5.91908C9.24499 5.66033 9.29743 5.18836 9.03867 4.86491L7.86737 5.80195ZM6.26534 5.80195L7.65201 4.06862L6.4807 3.13158L5.09404 4.86491L6.26534 5.80195ZM6.4807 4.06862L7.86737 5.80195L9.03867 4.86491L7.65201 3.13158L6.4807 4.06862Z"}),jsx("path",{d:"M9.03878 10.6551C9.29753 10.3317 9.24509 9.85969 8.92165 9.60094C8.5982 9.34218 8.12623 9.39462 7.86747 9.71807L9.03878 10.6551ZM7.06646 11.9199L6.48081 12.3884C6.62314 12.5664 6.83862 12.6699 7.06646 12.6699C7.2943 12.6699 7.50978 12.5664 7.65211 12.3884L7.06646 11.9199ZM6.26544 9.71807C6.00669 9.39462 5.53472 9.34218 5.21127 9.60094C4.88782 9.85969 4.83538 10.3317 5.09414 10.6551L6.26544 9.71807ZM7.86747 9.71807L6.48081 11.4514L7.65211 12.3884L9.03878 10.6551L7.86747 9.71807ZM7.65211 11.4514L6.26544 9.71807L5.09414 10.6551L6.48081 12.3884L7.65211 11.4514Z"})]})}const vne=({title:t="All Authors",desc:e="A circle with the outline of the head and shoulders of two people inside",width:s="30",height:o="30",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 30 30",width:s,height:o,className:classNames("i i-blockTemplateAllAuthors",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("circle",{fill:"#E9E9E9",cx:"14.963",cy:"14.963",r:"14.963"}),jsx("path",{fill:"#8894A3",d:"M17.482 17.661a3.75 3.75 0 1 1 4.037 0 4.25 4.25 0 0 1 2.231 3.741.75.75 0 1 1-1.5 0 2.75 2.75 0 1 0-5.5 0 .75.75 0 1 1-1.5 0 4.25 4.25 0 0 1 2.232-3.741zm-8.915-3.947a3.75 3.75 0 1 1 3.866 0A4.25 4.25 0 0 1 14.75 17.5a.75.75 0 1 1-1.5 0 2.75 2.75 0 0 0-5.5 0 .75.75 0 1 1-1.5 0 4.25 4.25 0 0 1 2.317-3.786zm1.933-.964a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5zm9 4a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5z"})]}),Cne=null,xne=({title:t="Check Mark",desc:e="A circle with a check mark inside",width:s="112",height:o="112",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 112 112",width:s,height:o,className:classNames("i i-blockTemplateCheckMark",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("defs",{children:jsxs("filter",{id:"a",width:"186.1%",height:"186.1%",x:"-43.1%",y:"-40.3%",filterUnits:"objectBoundingBox",children:[jsx("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),jsxs("feMerge",{children:[jsx("feMergeNode",{in:"shadowMatrixOuter1"}),jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),jsxs("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[jsx("path",{className:"outer",fillRule:"nonzero",d:"M36 65.096c16.07 0 29.096-13.027 29.096-29.096C65.096 19.93 52.069 6.904 36 6.904 19.93 6.904 6.904 19.931 6.904 36c0 16.07 13.027 29.096 29.096 29.096zM36 72C16.118 72 0 55.882 0 36S16.118 0 36 0s36 16.118 36 36-16.118 36-36 36z"}),jsx("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),jsx("path",{className:"check",fillRule:"nonzero",d:"M30.054 35.993a1.791 1.791 0 0 0-2.53 0 1.783 1.783 0 0 0 0 2.524l5.972 5.96a1.791 1.791 0 0 0 2.53 0l10.45-10.43a1.783 1.783 0 0 0 0-2.524 1.791 1.791 0 0 0-2.53 0l-9.185 9.167-4.707-4.697z"})]})]}),Ene=null,Tne=({title:t="Folder Outline",desc:e="Outline of a folder",width:s="42",height:o="42",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 42 42",width:s,height:o,className:classNames("i i-blockTemplateFolder",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[jsx("path",{d:"M34.043 6.971a.87.87 0 0 0-.87-.87h-17.53l.7.354-3.756-5.101a.87.87 0 0 0-.7-.354H1.87a.87.87 0 0 0-.87.87v34.434C1 38.894 3.067 41 5.626 41a.87.87 0 1 0 0-1.74c-1.59 0-2.887-1.32-2.887-2.956V1.87l-.87.87h10.018l-.7-.355 3.756 5.102a.87.87 0 0 0 .7.354h17.53l-.869-.87v7.652a.87.87 0 1 0 1.74 0V6.971z"}),jsx("path",{d:"M9.116 36.348a2.906 2.906 0 0 1-2.899 2.913V41h30.145A4.645 4.645 0 0 0 41 36.348V14.913a.87.87 0 0 0-.87-.87H9.986a.87.87 0 0 0-.87.87v21.435zm.87-20.565H40.13l-.87-.87v21.435a2.906 2.906 0 0 1-2.898 2.913H6.217c-1.159 0-1.159 1.739 0 1.739a4.645 4.645 0 0 0 4.638-4.652V14.913l-.87.87z"})]})]}),Sne=null,WC=({width:t="17",height:e="15",title:s="Book",desc:o="Book",focusable:r="false",className:a})=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:"0 0 17 15",focusable:r,className:a,children:[(0,n.jsx)("title",{children:s}),(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M8.407 14.529a.68.68 0 0 1-.374 0L.506 12.553A.679.679 0 0 1 0 11.897V.679C0 .234.42-.09.851.023L8.22 1.957 15.589.023a.679.679 0 0 1 .851.656v11.218a.679.679 0 0 1-.506.656L8.407 14.53zM7.541 3.182L1.357 1.56v9.814l6.184 1.623V3.182zm1.358 0v9.814l6.184-1.623V1.56L8.899 3.182z"})]}),bne=({title:t="Building",desc:e="Building with windows",width:s="18",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 18 18",className:classNames("icon",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M10.6666 5.66797H11.5C11.721 5.66797 11.9329 5.58017 12.0892 5.42389C12.2455 5.26761 12.3333 5.05565 12.3333 4.83464C12.3333 4.61362 12.2455 4.40166 12.0892 4.24538C11.9329 4.0891 11.721 4.0013 11.5 4.0013H10.6666C10.4456 4.0013 10.2337 4.0891 10.0774 4.24538C9.92109 4.40166 9.83329 4.61362 9.83329 4.83464C9.83329 5.05565 9.92109 5.26761 10.0774 5.42389C10.2337 5.58017 10.4456 5.66797 10.6666 5.66797ZM10.6666 9.0013H11.5C11.721 9.0013 11.9329 8.9135 12.0892 8.75723C12.2455 8.60094 12.3333 8.38898 12.3333 8.16797C12.3333 7.94696 12.2455 7.73499 12.0892 7.57871C11.9329 7.42243 11.721 7.33464 11.5 7.33464H10.6666C10.4456 7.33464 10.2337 7.42243 10.0774 7.57871C9.92109 7.73499 9.83329 7.94696 9.83329 8.16797C9.83329 8.38898 9.92109 8.60094 10.0774 8.75723C10.2337 8.9135 10.4456 9.0013 10.6666 9.0013ZM6.49996 5.66797H7.33329C7.55431 5.66797 7.76627 5.58017 7.92255 5.42389C8.07883 5.26761 8.16663 5.05565 8.16663 4.83464C8.16663 4.61362 8.07883 4.40166 7.92255 4.24538C7.76627 4.0891 7.55431 4.0013 7.33329 4.0013H6.49996C6.27895 4.0013 6.06698 4.0891 5.9107 4.24538C5.75442 4.40166 5.66663 4.61362 5.66663 4.83464C5.66663 5.05565 5.75442 5.26761 5.9107 5.42389C6.06698 5.58017 6.27895 5.66797 6.49996 5.66797ZM6.49996 9.0013H7.33329C7.55431 9.0013 7.76627 8.9135 7.92255 8.75723C8.07883 8.60094 8.16663 8.38898 8.16663 8.16797C8.16663 7.94696 8.07883 7.73499 7.92255 7.57871C7.76627 7.42243 7.55431 7.33464 7.33329 7.33464H6.49996C6.27895 7.33464 6.06698 7.42243 5.9107 7.57871C5.75442 7.73499 5.66663 7.94696 5.66663 8.16797C5.66663 8.38898 5.75442 8.60094 5.9107 8.75723C6.06698 8.9135 6.27895 9.0013 6.49996 9.0013ZM16.5 15.668H15.6666V1.5013C15.6666 1.28029 15.5788 1.06833 15.4225 0.912046C15.2663 0.755766 15.0543 0.667969 14.8333 0.667969H3.16663C2.94561 0.667969 2.73365 0.755766 2.57737 0.912046C2.42109 1.06833 2.33329 1.28029 2.33329 1.5013V15.668H1.49996C1.27895 15.668 1.06698 15.7558 0.910704 15.912C0.754423 16.0683 0.666626 16.2803 0.666626 16.5013C0.666626 16.7223 0.754423 16.9343 0.910704 17.0906C1.06698 17.2468 1.27895 17.3346 1.49996 17.3346H16.5C16.721 17.3346 16.9329 17.2468 17.0892 17.0906C17.2455 16.9343 17.3333 16.7223 17.3333 16.5013C17.3333 16.2803 17.2455 16.0683 17.0892 15.912C16.9329 15.7558 16.721 15.668 16.5 15.668ZM9.83329 15.668H8.16663V12.3346H9.83329V15.668ZM14 15.668H11.5V11.5013C11.5 11.2803 11.4122 11.0683 11.2559 10.912C11.0996 10.7558 10.8876 10.668 10.6666 10.668H7.33329C7.11228 10.668 6.90032 10.7558 6.74404 10.912C6.58776 11.0683 6.49996 11.2803 6.49996 11.5013V15.668H3.99996V2.33464H14V15.668Z"})]}),yne=null,Ine=({title:t="Captions",desc:e="Two capital letter C inside a square",width:s="24",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 24 16",width:s,height:o,className:classNames("i i-captions",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[jsx("rect",{width:"18.25",height:"13.25",x:"1.447",y:"1.402",stroke:"#000",strokeWidth:"1.75",rx:"1"}),jsxs("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[jsx("tspan",{x:"4.222",y:"11.5",children:"C"})," ",jsx("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),Nne=null,jne=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="15",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm4-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"})]}),Ane=null,Rne=({title:t="Character",desc:e="Character",width:s="13",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 13 16",width:s,height:o,className:classNames("i i-character",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M9.2,8.8c1.3-0.8,2.1-2.3,2.1-3.9c0-2.6-2.1-4.7-4.7-4.7C4,0.2,1.9,2.3,1.9,4.9c0,1.6,0.8,3,2.1,3.9 c-2.1,1-3.6,3.1-3.6,5.6c0,0.4,0.3,0.7,0.7,0.7s0.7-0.3,0.7-0.7c0-2.6,2.2-4.8,4.8-4.8s4.8,2.2,4.8,4.8c0,0.4,0.3,0.7,0.7,0.7 s0.7-0.3,0.7-0.7C12.7,11.9,11.3,9.8,9.2,8.8z M6.6,1.6c1.8,0,3.3,1.5,3.3,3.3S8.4,8.2,6.6,8.2S3.3,6.7,3.3,4.9S4.7,1.6,6.6,1.6z"})]}),One=null;function i2(t){return(0,n.jsx)(is,{viewBox:"0 0 11 8",...t,children:(0,n.jsx)("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"})})}const Pne=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="21",role:a="img",title:c,width:d="21"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:cx("i i-checkMarkFilled",s),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{d:"M10.074 20.959c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10zM7.077 10.523a.65.65 0 1 0-.919.919l2.546 2.545a.65.65 0 0 0 .919 0l4.454-4.454a.65.65 0 1 0-.919-.92L9.163 12.61l-2.086-2.086z"})]}),Mne=null;function Dne(t){return jsx(Icon,{viewBox:"0 0 7 5",...t,children:jsx("path",{d:"M3.104 3.896a.5.5 0 0 0 .707 0l2.543-2.542a.5.5 0 0 0-.708-.708L3.473 2.851 1.353.73a.5.5 0 1 0-.707.707l2.458 2.458Z"})})}const kne=({width:t="16",height:e="16",className:s,focusable:o="false"})=>jsx("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",width:t,height:e,className:classNames("i i-chevronLeft",s),focusable:o,children:jsx("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),wne=null,GC=t=>(0,n.jsx)(is,{viewBox:"0 0 6 10",...t,children:(0,n.jsx)("path",{fillRule:"nonzero",d:"M5.707 1.707A1 1 0 0 0 4.293.293l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414-1.414L2.414 5l3.293-3.293z"})}),c2=({className:t})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"5",cy:"5",r:"5"})}),Une=({title:t="Clock",desc:e="Image of a clock with two hands",width:s="14",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 14 13",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{children:[jsx("path",{d:"M7 11.375C5.70829 11.371 4.47061 10.8562 3.55722 9.94277C2.64384 9.02939 2.12896 7.79171 2.125 6.5C2.12896 5.20829 2.64384 3.97061 3.55722 3.05722C4.47061 2.14384 5.70829 1.62896 7 1.625C8.29171 1.62896 9.52939 2.14384 10.4428 3.05722C11.3562 3.97061 11.871 5.20829 11.875 6.5C11.871 7.79171 11.3562 9.02939 10.4428 9.94277C9.52939 10.8562 8.29171 11.371 7 11.375ZM7 0C3.425 0 0.5 2.925 0.5 6.5C0.5 10.075 3.425 13 7 13C10.575 13 13.5 10.075 13.5 6.5C13.5 2.925 10.575 0 7 0Z"}),jsx("path",{d:"M7.81299 3.25H6.18799V7.313H10.25V5.688H7.81199L7.81299 3.25Z"})]})]}),Hne=null,KC=({className:t})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",foocusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z"})});function zne(t){return jsxs(Icon,{viewBox:"0 0 16 16",...t,children:[jsx("path",{d:"M5 7C4.44772 7 4 7.44772 4 8C4 8.55228 4.44772 9 5 9L12.5858 9L10.2929 11.2929C9.90237 11.6834 9.90237 12.3166 10.2929 12.7071C10.6834 13.0976 11.3166 13.0976 11.7071 12.7071L15.7071 8.70711C16.0976 8.31658 16.0976 7.68342 15.7071 7.29289L11.7071 3.29289C11.3166 2.90237 10.6834 2.90237 10.2929 3.29289C9.90237 3.68342 9.90237 4.31658 10.2929 4.70711L12.5858 7L5 7Z"}),jsx("path",{d:"M1.19249e-08 15C5.33895e-09 15.5523 0.447716 16 1 16C1.55228 16 2 15.5523 2 15L2 1C2 0.447716 1.55228 1.85108e-08 1 1.19249e-08C0.447716 5.33896e-09 1.85459e-07 0.447716 1.78873e-07 1L1.19249e-08 15Z"})]})}const Vne=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="18",role:a="img",title:c,width:d="18"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),jsx("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),jsx("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),Wne=null,Gne=({title:t="Continue Block",desc:e="Continue Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 17",width:s,height:o,className:classNames("i i-continue-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M9.25 11.5h3l-4 5-4-5h3v-7h2v7zm6-9h-14a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2zm-10 4v2h-4a1 1 0 0 1 0-2h4zm10 0a1 1 0 0 1 0 2h-4v-2h4z"})]}),Kne=null,$ne=({title:t="Convert",desc:e="Convert to block",width:s="14",height:o="12",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 14 12",width:s,height:o,className:classNames("i i-convert",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M9.625 5.143V2.57L14 6 9.625 9.429V6.857H.875A.867.867 0 0 1 0 6c0-.473.392-.857.875-.857h8.75zM7 1.714H.875A.867.867 0 0 1 0 .857C0 .384.392 0 .875 0H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 1.714zM7 12H.875A.867.867 0 0 1 0 11.143c0-.473.392-.857.875-.857H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 12z"})]}),Qne=null;function Zne(t){return jsxs(Icon,{...t,viewBox:"0 0 16 16",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.33341 6.6665C6.96522 6.6665 6.66675 6.96498 6.66675 7.33317V13.3332C6.66675 13.7014 6.96522 13.9998 7.33341 13.9998H13.3334C13.7016 13.9998 14.0001 13.7014 14.0001 13.3332V7.33317C14.0001 6.96498 13.7016 6.6665 13.3334 6.6665H7.33341ZM5.33341 7.33317C5.33341 6.2286 6.22884 5.33317 7.33341 5.33317H13.3334C14.438 5.33317 15.3334 6.2286 15.3334 7.33317V13.3332C15.3334 14.4377 14.438 15.3332 13.3334 15.3332H7.33341C6.22884 15.3332 5.33341 14.4377 5.33341 13.3332V7.33317Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66675 1.99984C2.48994 1.99984 2.32037 2.07008 2.19534 2.1951C2.07032 2.32012 2.00008 2.48969 2.00008 2.6665V8.6665C2.00008 8.84331 2.07032 9.01288 2.19534 9.13791C2.32037 9.26293 2.48994 9.33317 2.66675 9.33317H3.33341C3.7016 9.33317 4.00008 9.63165 4.00008 9.99984C4.00008 10.368 3.7016 10.6665 3.33341 10.6665H2.66675C2.13631 10.6665 1.62761 10.4558 1.25253 10.0807C0.877462 9.70564 0.666748 9.19694 0.666748 8.6665V2.6665C0.666748 2.13607 0.877462 1.62736 1.25253 1.25229C1.62761 0.877217 2.13632 0.666504 2.66675 0.666504H8.66675C9.19718 0.666504 9.70589 0.877218 10.081 1.25229C10.456 1.62736 10.6667 2.13607 10.6667 2.6665V3.33317C10.6667 3.70136 10.3683 3.99984 10.0001 3.99984C9.63189 3.99984 9.33341 3.70136 9.33341 3.33317V2.6665C9.33341 2.48969 9.26318 2.32012 9.13815 2.1951C9.01313 2.07007 8.84356 1.99984 8.66675 1.99984H2.66675Z"})]})}const Yne=({title:t="Copy",desc:e="A document stacked on top of another one",width:s="15",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 18",width:s,height:o,className:classNames("i i-stack",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M14.7,4.1C14.7,4.1,14.7,4.1,14.7,4.1c0-0.1-0.1-0.2-0.1-0.2c0,0,0,0,0,0L11,0.4c0,0-0.1,0-0.1-0.1 c0,0-0.1,0-0.1-0.1c-0.1,0-0.2,0-0.2,0H3.5c-0.3,0-0.6,0.3-0.6,0.6v3h-2c-0.3,0-0.6,0.3-0.6,0.6v12.6c0,0.3,0.3,0.6,0.6,0.6h10.6 c0.3,0,0.6-0.3,0.6-0.6v-3h2c0.3,0,0.6-0.3,0.6-0.6V4.3C14.7,4.2,14.7,4.2,14.7,4.1z M11.2,2.4l1.4,1.3h-1.4V2.4z M9.9,7.3H8.6V6 L9.9,7.3z M7.9,8.6h2.9v7.9H1.5V5.1h5.8v2.8C7.3,8.3,7.6,8.6,7.9,8.6z M12.1,7.9c0-0.1,0-0.2,0-0.2c0,0,0,0,0,0 c0-0.1-0.1-0.1-0.1-0.2c0,0,0,0,0,0L8.4,4c0,0-0.1,0-0.1-0.1c0,0-0.1,0-0.1-0.1c-0.1,0-0.2,0-0.2,0H4.1V1.5H10v2.8 C10,4.7,10.2,5,10.6,5h2.9v7.9h-1.4V7.9z"})]}),Xne=null,Jne=({title:t="Copy lesson",desc:e="Copy lesson",width:s="15",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 15",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M14 14H7.364V7.364H14V14zM1 7.636V1h6.636v5.364h-.772c-.277 0-.5.223-.5.5v.772H1zm13.5-1.272a.5.5 0 0 1 .5.5V14.5a.5.5 0 0 1-.5.5H6.864a.5.5 0 0 1-.5-.5V8.636H.5a.5.5 0 0 1-.5-.5V.5A.5.5 0 0 1 .5 0h7.636a.5.5 0 0 1 .5.5v5.864H14.5zm0-3.819a.5.5 0 0 1 .5.5v1.91a.5.5 0 1 1-1 0v-1.41h-2.748l1.056 1.056a.5.5 0 0 1-.707.707L9.692 3.4a.505.505 0 0 1-.147-.354.505.505 0 0 1 .147-.354L11.601.782a.5.5 0 0 1 .707.707l-1.056 1.056H14.5zm-9.084 9.219a.505.505 0 0 1 .039.19.506.506 0 0 1-.147.354l-1.909 1.91a.502.502 0 0 1-.707 0 .5.5 0 0 1 0-.707l1.056-1.056H.5a.5.5 0 0 1-.5-.5v-1.91a.5.5 0 1 1 1 0v1.41h2.748l-1.056-1.056a.5.5 0 0 1 .707-.707L5.308 11.6a.493.493 0 0 1 .108.163z"})]}),qne=null,eoe=({title:t="Corner up-right",desc:e="An arrow moving up & to the right",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5286 2.19526C9.78895 1.93491 10.2111 1.93491 10.4714 2.19526L13.8047 5.5286C14.0651 5.78894 14.0651 6.21106 13.8047 6.4714L10.4714 9.80474C10.2111 10.0651 9.78895 10.0651 9.5286 9.80474C9.26825 9.54439 9.26825 9.12228 9.5286 8.86193L12.3905 6L9.5286 3.13807C9.26825 2.87772 9.26825 2.45561 9.5286 2.19526Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.33333 6.66667C4.8029 6.66667 4.29419 6.87738 3.91912 7.25245C3.54405 7.62753 3.33333 8.13623 3.33333 8.66667V13.3333C3.33333 13.7015 3.03486 14 2.66667 14C2.29848 14 2 13.7015 2 13.3333V8.66667C2 7.78261 2.35119 6.93477 2.97631 6.30964C3.60143 5.68452 4.44928 5.33333 5.33333 5.33333H13.3333C13.7015 5.33333 14 5.63181 14 6C14 6.36819 13.7015 6.66667 13.3333 6.66667H5.33333Z",fill:"currentColor"})]}),toe=null,soe=t=>{const{className:e,desc:s="Crop",focusable:o="false",height:r="19",title:a="Crop",width:c="19"}=t,d={className:classNames("i i-crop",e),focusable:o,height:r,viewBox:`0 0 ${c} ${r}`,width:c};return jsxs("svg",{...d,children:[jsx("title",{children:a}),jsx("desc",{children:s}),jsx("path",{fillRule:"evenodd",d:"M15 13h3.003c.55 0 .997.444.997 1 0 .552-.453 1-.997 1H15v3.003c0 .55-.444.997-1 .997-.552 0-1-.453-1-.997V15H4.996A.995.995 0 0 1 4 14.004V6H.997A.996.996 0 0 1 0 5c0-.552.453-1 .997-1H4V.997C4 .447 4.444 0 5 0c.552 0 1 .453 1 .997V4h8.004c.55 0 .996.445.996.996V13zm-9 0h7V6H6v7z"})]})},noe=null,ooe=({"aria-hidden":t,"aria-label":e="Dash mark",className:s,desc:o,height:r="3",role:a="img",title:c,width:d="7"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:classNames("i i-dashMark",s),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("rect",{width:"7",height:"3"})]}),roe=null,aoe=({width:t="20",height:e="20",focusable:s="false"})=>jsxs("svg",{width:t,height:e,viewBox:"0 0 20 20",fill:"none",focusable:s,xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.449 2.03415C16.2057 1.24516 17.4414 1.16956 18.2886 1.86043C19.161 2.57182 19.3163 3.84495 18.6406 4.74523L11.7164 13.9708C10.7635 15.2403 8.94583 15.4621 7.71568 14.4589C6.45117 13.4278 6.3355 11.537 7.46489 10.3594L15.449 2.03415ZM17.2353 3.15207C17.0613 3.01013 16.8074 3.02566 16.6519 3.18776L8.66778 11.513C8.21204 11.9882 8.25871 12.7512 8.76899 13.1673C9.26539 13.5721 9.9989 13.4826 10.3834 12.9703L17.3077 3.74476C17.4465 3.5598 17.4146 3.29823 17.2353 3.15207Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.24929 18.535C4.49357 18.9784 2.44605 18.6701 0.604997 17.6473C0.305936 17.4811 0.138803 17.1491 0.183513 16.8099C0.228225 16.4707 0.475696 16.1933 0.807595 16.1104C1.91332 15.8339 2.71474 14.9884 3.65265 13.9988C3.73743 13.9094 3.82332 13.8188 3.91065 13.7273C4.39823 13.2165 4.95363 12.6632 5.59452 12.3031C6.27583 11.9204 7.06497 11.7491 7.96604 12.0065L7.50816 13.6091C7.10117 13.4928 6.76904 13.555 6.4108 13.7562C6.01216 13.9802 5.60974 14.3611 5.11619 14.8782C5.02687 14.9717 4.93462 15.0701 4.83919 15.1719C4.33778 15.7067 3.74851 16.3352 3.03433 16.8502C4.03071 17.1168 5.00421 17.1304 5.84113 16.919C7.10848 16.5989 8.06772 15.7708 8.42833 14.4559L10.0356 14.8967C9.49766 16.8584 8.02754 18.0858 6.24929 18.535Z",fill:"currentColor"})]}),ioe=null,$C=({title:t="DestinationArrow",desc:e="DestinationArrow",width:s="13",height:o="10",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 13 10",width:s,height:o,className:M()("i i-destinationArrow",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M0 5c0 .345.264.625.59.625h10.393L7.855 8.933a.65.65 0 0 0 0 .884.573.573 0 0 0 .418.183.573.573 0 0 0 .418-.183l4.136-4.374a.66.66 0 0 0 0-.885L8.691.183a.568.568 0 0 0-.836 0 .65.65 0 0 0 0 .884l3.128 3.308H.591C.264 4.375 0 4.655 0 5"})]}),loe=({title:t="Dialogue Slide",desc:e="Dialogue Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 16",width:s,height:o,className:classNames("i i-dialogue-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M14 11h-3c-.3 0-.5.1-.7.3L8 13.6l-2.3-2.3c-.2-.2-.4-.3-.7-.3H2V2h12v9zm1-11H1C.4 0 0 .4 0 1v11c0 .6.4 1 1 1h3.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H15c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z"})]}),doe=null,uoe=({title:t="Disk",desc:e="An old floppy disk",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.33337 2.66659C3.15656 2.66659 2.98699 2.73682 2.86197 2.86185C2.73695 2.98687 2.66671 3.15644 2.66671 3.33325V12.6666C2.66671 12.8434 2.73695 13.013 2.86197 13.138C2.98699 13.263 3.15656 13.3333 3.33337 13.3333H12.6667C12.8435 13.3333 13.0131 13.263 13.1381 13.138C13.2631 13.013 13.3334 12.8434 13.3334 12.6666V5.6094L10.3906 2.66659H3.33337ZM1.91916 1.91904C2.29423 1.54397 2.80294 1.33325 3.33337 1.33325H10.6667C10.8435 1.33325 11.0131 1.40349 11.1381 1.52851L14.4714 4.86185C14.5965 4.98687 14.6667 5.15644 14.6667 5.33325V12.6666C14.6667 13.197 14.456 13.7057 14.0809 14.0808C13.7058 14.4559 13.1971 14.6666 12.6667 14.6666H3.33337C2.80294 14.6666 2.29423 14.4559 1.91916 14.0808C1.54409 13.7057 1.33337 13.197 1.33337 12.6666V3.33325C1.33337 2.80282 1.54409 2.29411 1.91916 1.91904Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.00004 8.66659C4.00004 8.2984 4.29852 7.99992 4.66671 7.99992H11.3334C11.7016 7.99992 12 8.2984 12 8.66659V13.9999C12 14.3681 11.7016 14.6666 11.3334 14.6666C10.9652 14.6666 10.6667 14.3681 10.6667 13.9999V9.33325H5.33337V13.9999C5.33337 14.3681 5.0349 14.6666 4.66671 14.6666C4.29852 14.6666 4.00004 14.3681 4.00004 13.9999V8.66659Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.66671 1.33325C5.0349 1.33325 5.33337 1.63173 5.33337 1.99992V4.66659H10C10.3682 4.66659 10.6667 4.96506 10.6667 5.33325C10.6667 5.70144 10.3682 5.99992 10 5.99992H4.66671C4.29852 5.99992 4.00004 5.70144 4.00004 5.33325V1.99992C4.00004 1.63173 4.29852 1.33325 4.66671 1.33325Z",fill:"currentColor"})]}),hoe=null;class moe extends null{render(){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1","aria-hidden":this.props.decorative,"aria-label":this.props.title,role:this.props.role,className:this.props.className,focusable:"false",height:this.props.height,viewBox:this.props.viewBox,width:this.props.width,children:this.props.children})}}const poe=null,foe=({width:t=20,height:e=20,...s})=>jsx(SVGIcon,{height:e,width:t,...s,viewBox:"0 0 20 20",children:jsx("path",{fillRule:"evenodd",d:"M10 0c5.523 0 10 4.477 10 10s-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0zm2.634 7.679l-3.506 3.505-2.054-2.055a.7.7 0 00-.99.99l2.55 2.55a.7.7 0 00.99 0l4-4a.7.7 0 00-.99-.99z"})}),goe=null,voe=({width:t="20",height:e="20",focusable:s="false"})=>jsxs("svg",{width:t,height:e,viewBox:"0 0 20 20",fill:"none",focusable:s,xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33333 10C8.33333 9.07954 9.07952 8.33334 10 8.33334C10.9205 8.33334 11.6667 9.07954 11.6667 10C11.6667 10.9205 10.9205 11.6667 10 11.6667C9.07952 11.6667 8.33333 10.9205 8.33333 10Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1667 10C14.1667 9.07954 14.9129 8.33335 15.8333 8.33335C16.7538 8.33335 17.5 9.07954 17.5 10C17.5 10.9205 16.7538 11.6667 15.8333 11.6667C14.9129 11.6667 14.1667 10.9205 14.1667 10Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 10C2.5 9.07954 3.24619 8.33334 4.16667 8.33334C5.08714 8.33334 5.83333 9.07954 5.83333 10C5.83333 10.9205 5.08714 11.6667 4.16667 11.6667C3.24619 11.6667 2.5 10.9205 2.5 10Z",fill:"currentColor"})]}),Coe=null,xoe=({title:t="Vertical Dots",desc:e="Vertical Dots",width:s="4",height:o="24",className:r=null,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 4 24",width:s,height:o,className:classNames("i i-dotsVertical",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M2 24a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0-10a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM2 4a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"})]}),Eoe=null,QC=({title:t="Download",desc:e="Arrow down with horizontal line beneath it",width:s="16",height:o="19",className:r,focusable:a="false"},c)=>(0,n.jsxs)("svg",{viewBox:"0 0 16 19",width:s,height:o,className:M()("i i-download",r),focusable:a,ref:c,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("rect",{y:"17",width:"16",height:"2",rx:"1"}),(0,n.jsx)("path",{d:"M4.464 8.293A1 1 0 1 0 3.05 9.707l4.24 4.24c.4.4 1.028.392 1.42 0l4.24-4.24a1 1 0 1 0-1.414-1.414L8 4.757 4.464 8.293zm0 0L8 4.757l3.536 3.536L8 11.828 4.464 8.293z"}),(0,n.jsx)("path",{d:"M7 0h2v12H7z"})]}),ZC=(0,m.forwardRef)(QC),Toe=({title:t="Download Circle",desc:e="Arrow down with horizontal line beneath it wrapped up in a circle",width:s="51",height:o="51",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 51 51",width:s,height:o,className:classNames("i i-downloadCircle",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("g",{stroke:"none",fill:"none",children:jsx("g",{transform:"translate(-695, -227)",fill:"#000",children:jsx("path",{d:"M721,255.395113 L726.834932,249.560181 C727.225456,249.169656 727.858621,249.169656 728.249146,249.560181 C728.63967,249.950705 728.63967,250.58387 728.249146,250.974394 L720.824726,258.398814 C720.796316,258.436777 720.764856,258.473181 720.730347,258.507691 C720.339822,258.898215 719.706657,258.898215 719.316133,258.507691 L711.799485,250.991042 C711.408961,250.600518 711.408961,249.967353 711.799485,249.576829 C712.190009,249.186304 712.823174,249.186304 713.213699,249.576829 L719,255.36313 L719,240.783936 C719,240.231651 719.447715,239.783936 720,239.783936 C720.552285,239.783936 721,240.231651 721,240.783936 L721,255.395113 Z M720.059082,277.569336 C706.251963,277.569336 695.059082,266.376455 695.059082,252.569336 C695.059082,238.762217 706.251963,227.569336 720.059082,227.569336 C733.866201,227.569336 745.059082,238.762217 745.059082,252.569336 C745.059082,266.376455 733.866201,277.569336 720.059082,277.569336 Z M720.059082,275.569336 C732.761631,275.569336 743.059082,265.271885 743.059082,252.569336 C743.059082,239.866787 732.761631,229.569336 720.059082,229.569336 C707.356533,229.569336 697.059082,239.866787 697.059082,252.569336 C697.059082,265.271885 707.356533,275.569336 720.059082,275.569336 Z M712,264 C711.447715,264 711,263.552285 711,263 C711,262.447715 711.447715,262 712,262 L728,262 C728.552285,262 729,262.447715 729,263 C729,263.552285 728.552285,264 728,264 L712,264 Z"})})})]}),Soe=null;function Loe(t){return jsxs(Icon,{viewBox:"0 0 13 13",...t,children:[jsx("path",{d:"M7.08297 7.92452V1.49952C7.08297 1.34476 7.02149 1.19635 6.91207 1.08692C6.80264 0.977491 6.65422 0.916016 6.49947 0.916016C6.34472 0.916016 6.1963 0.977491 6.08687 1.08692C5.97745 1.19635 5.91597 1.34476 5.91597 1.49952V7.92452L4.57997 6.58652C4.47057 6.47711 4.32219 6.41565 4.16747 6.41565C4.01275 6.41565 3.86437 6.47711 3.75497 6.58652C3.64557 6.69592 3.58411 6.8443 3.58411 6.99902C3.58411 7.15373 3.64557 7.30211 3.75497 7.41152L6.08797 9.74552C6.19771 9.85428 6.34596 9.91529 6.50047 9.91529C6.65497 9.91529 6.80323 9.85428 6.91297 9.74552L9.24597 7.41152C9.34926 7.30115 9.40564 7.15499 9.40323 7.00385C9.40082 6.85271 9.3398 6.70842 9.23304 6.60141C9.12629 6.49439 8.98215 6.43303 8.83102 6.43025C8.67989 6.42747 8.53358 6.4835 8.42297 6.58652L7.08197 7.92452H7.08297Z"}),jsx("path",{d:"M11.4 11.4824H1.60002V4.68242H3.00002C3.15915 4.68242 3.31177 4.61921 3.42429 4.50669C3.53681 4.39416 3.60002 4.24155 3.60002 4.08242C3.60002 3.92329 3.53681 3.77068 3.42429 3.65816C3.31177 3.54564 3.15915 3.48242 3.00002 3.48242H1.00002C0.840895 3.48242 0.688282 3.54564 0.57576 3.65816C0.463239 3.77068 0.400024 3.92329 0.400024 4.08242V12.0824C0.400024 12.2416 0.463239 12.3942 0.57576 12.5067C0.688282 12.6192 0.840895 12.6824 1.00002 12.6824H12C12.1592 12.6824 12.3118 12.6192 12.4243 12.5067C12.5368 12.3942 12.6 12.2416 12.6 12.0824V4.08242C12.6 3.92329 12.5368 3.77068 12.4243 3.65816C12.3118 3.54564 12.1592 3.48242 12 3.48242H10C9.92123 3.48242 9.84321 3.49794 9.77041 3.52809C9.69762 3.55825 9.63148 3.60244 9.57576 3.65816C9.52005 3.71387 9.47585 3.78002 9.4457 3.85281C9.41554 3.92561 9.40002 4.00363 9.40002 4.08242C9.40002 4.16122 9.41554 4.23924 9.4457 4.31203C9.47585 4.38483 9.52005 4.45097 9.57576 4.50669C9.63148 4.5624 9.69762 4.6066 9.77041 4.63675C9.84321 4.6669 9.92123 4.68242 10 4.68242H11.4V11.4824Z"})]})}const boe=({title:t="Draw",desc:e="Arrow down with horizontal line beneath it",width:s="15",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 15",width:s,height:o,className:classNames("i i-drawFromQuestionBank",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M8.15625 10.9688C7.96875 11.1562 7.78125 11.25 7.5 11.25C7.21875 11.25 7.03125 11.1562 6.84375 10.9688L1.5 5.625L2.8125 4.3125L6.5625 8.0625V0H8.4375V8.0625L12.1875 4.3125L13.5 5.625L8.15625 10.9688Z"}),jsx("path",{d:"M1.875 10.3125V13.125H13.125V10.3125H15V14.0625C15 14.625 14.625 15 14.0625 15H0.9375C0.375 15 0 14.625 0 14.0625V10.3125H1.875Z"})]}),yoe=null,Ioe=t=>jsxs(Icon,{height:"16",width:"4",viewBox:"0 0 16 4",...t,children:[jsx("path",{d:"M8,0 C9.105,0 10,0.895 10,2 C10,3.105 9.105,4 8,4 C6.895,4 6,3.105 6,2 C6,0.895 6.895,0 8,0"}),jsx("path",{d:"M2,0 C3.105,0 4,0.895 4,2 C4,3.105 3.105,4 2,4 C0.895,4 0,3.105 0,2 C0,0.895 0.895,0 2,0"}),jsx("path",{d:"M14,0 C15.105,0 16,0.895 16,2 C16,3.105 15.105,4 14,4 C12.895,4 12,3.105 12,2 C12,0.895 12.895,0 14,0"})]}),Noe=null,joe=({title:t="More",desc:e="Three dots next to one another",width:s="16",height:o="4",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 4",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M8,0 C9.105,0 10,0.895 10,2 C10,3.105 9.105,4 8,4 C6.895,4 6,3.105 6,2 C6,0.895 6.895,0 8,0"}),jsx("path",{d:"M2,0 C3.105,0 4,0.895 4,2 C4,3.105 3.105,4 2,4 C0.895,4 0,3.105 0,2 C0,0.895 0.895,0 2,0"}),jsx("path",{d:"M14,0 C15.105,0 16,0.895 16,2 C16,3.105 15.105,4 14,4 C12.895,4 12,3.105 12,2 C12,0.895 12.895,0 14,0"})]}),Aoe=null,Roe=({title:t="Draggable",desc:e="Three dots stacked on top of one another",width:s="4",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 4 14",width:s,height:o,className:classNames("i i-ellipsis--vert",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{transform:"translate(.158 .445)",children:[jsx("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),jsx("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),jsx("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),Ooe=null,Poe=({title:t="Embed",desc:e="Embed icon",width:s="16",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 15",width:s,height:o,className:classNames("i i-embed",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M13.2 11.263l-1.4-1.4 2.3-2.3-2.3-2.3 1.4-1.4 3 3c.4.4.4 1 0 1.4l-3 3M3.8 11.263l-3-3c-.4-.4-.4-1 0-1.4l3-3 1.4 1.4-2.3 2.3 2.3 2.3-1.4 1.4M6.5 14.563c-.1 0-.2 0-.3-.1-.5-.2-.8-.7-.6-1.3l4-12c.2-.5.7-.8 1.3-.6.5.2.8.7.6 1.3l-4 12c-.2.4-.6.7-1 .7"})]}),Moe=null,Doe=({title:t="Empty folder",desc:e="Empty folder",width:s="46",height:o="46",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 46 46",width:s,height:o,className:classNames("i i-emptyFolder",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M38 6.867a1 1 0 0 0-1-1H16.84l.805.407-4.32-5.867A1 1 0 0 0 12.52 0H1a1 1 0 0 0-1 1v39.6C0 43.578 2.377 46 5.32 46a1 1 0 0 0 0-2C3.49 44 2 42.482 2 40.6V1L1 2h11.52l-.805-.407 4.32 5.867a1 1 0 0 0 .805.407H37l-1-1v8.8a1 1 0 0 0 2 0v-8.8z"}),jsx("path",{d:"M9.333 40.65A3.341 3.341 0 0 1 6 44v2h34.667C43.613 46 46 43.604 46 40.65V16a1 1 0 0 0-1-1H10.333a1 1 0 0 0-1 1v24.65zm1-23.65H45l-1-1v24.65A3.341 3.341 0 0 1 40.667 44H6c-1.333 0-1.333 2 0 2 2.947 0 5.333-2.396 5.333-5.35V16l-1 1z"})]}),koe=null,woe=({title:t="End Slide",desc:e="End Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 14",width:s,height:o,className:classNames("i i-end-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M6,0.6L4.6,2l4,4H0v2h8.6l-4,4L6,13.4l5.7-5.7c0.4-0.4,0.4-1,0-1.4L6,0.6"}),jsx("rect",{fillRule:"evenodd",x:"14",width:"2",height:"14"})]}),Boe=null,_oe=({title:t="Envelope",desc:e="Envelope",width:s="17",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 14",width:s,height:o,className:classNames("i i-envelope",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fillRule:"nonzero",children:[jsx("path",{d:"M8.5 7.316L1.341.634a.5.5 0 0 0-.682.732l7.5 7a.5.5 0 0 0 .682 0l7.5-7a.5.5 0 1 0-.682-.732L8.5 7.316z"}),jsx("path",{d:"M1.5 1.5v11h14v-11h-14zM1 .5h15a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H1a.5.5 0 0 1-.5-.5V1A.5.5 0 0 1 1 .5z"})]})]}),Uoe=null,Hoe=({title:t="Error",desc:e="An x with a circle",width:s="50",height:o="50",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 50 50",width:s,height:o,className:classNames("i i-error",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M25 50C11.193 50 0 38.807 0 25S11.193 0 25 0s25 11.193 25 25-11.193 25-25 25zm0-2c12.703 0 23-10.297 23-23S37.703 2 25 2 2 12.297 2 25s10.297 23 23 23z"}),jsx("path",{d:"M31.679 18.321a1.036 1.036 0 0 0-1.5 0L24.5 24l-5.679-5.679a1.036 1.036 0 0 0-1.5 0 1.036 1.036 0 0 0 0 1.5L23 25.5l-5.679 5.679a1.036 1.036 0 0 0 0 1.5c.215.214.429.321.75.321.322 0 .536-.107.75-.321L24.5 27l5.679 5.679c.214.214.535.321.75.321.214 0 .535-.107.75-.321a1.036 1.036 0 0 0 0-1.5L26 25.5l5.679-5.679a1.036 1.036 0 0 0 0-1.5"})]}),Foe=null,zoe=({title:t="Error Alert",desc:e="A red circle with a white exclamation point in the middle",width:s="18",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 18 18",className:classNames("i i-errorAlert",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("circle",{cx:"9",cy:"9",r:"9"}),jsx("path",{d:"M9.897 4v4.004c0 .425-.021.841-.063 1.25-.042.408-.098.84-.168 1.298H8.497c-.07-.457-.126-.89-.168-1.298a12.206 12.206 0 0 1-.063-1.25V4h1.631zM8 13.17c0-.145.027-.282.08-.413a.987.987 0 0 1 .225-.336 1.103 1.103 0 0 1 .759-.308 1.06 1.06 0 0 1 .749.308 1.06 1.06 0 0 1 .308.749 1.07 1.07 0 0 1-.308.749 1.077 1.077 0 0 1-.749.301 1.095 1.095 0 0 1-.76-.301.995.995 0 0 1-.223-.333A1.069 1.069 0 0 1 8 13.17z"})]}),Voe=null,l2=({"aria-hidden":t,"aria-label":e="X mark",className:s,desc:o,height:r="10",overrideStyle:a=!1,role:c="img",title:d,width:l="10"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:M()(s,{"i i-exMark":!a}),focusable:"false",height:r,role:c,viewBox:"0 0 10 10",width:l,xmlns:"http://www.w3.org/2000/svg",children:[d&&(0,n.jsx)("title",{children:d}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{d:"M5,4.17,9.17,0,10,.83,5.83,5,10,9.17,9.17,10,5,5.83.83,10,0,9.17,4.17,5,0,.83.83,0Z"})]}),Goe=({title:t="Export",desc:e="Export",width:s="12",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 12 15",width:s,height:o,className:classNames("i i-export",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),jsx("rect",{x:"1",y:"12",width:"10",height:"2"})]}),Koe=null,d2=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fillRule:"evenodd",fill:"#DFE1E2"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fillRule:"evenodd",fill:"#C7CACC"}),(0,n.jsx)("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"})]}),YC=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fillRule:"evenodd",fill:"#C3CEED"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M14.8355 26.9904C14.8355 27.5698 14.7346 28.1051 14.533 28.5964C14.335 29.0841 14.0545 29.5076 13.6915 29.8669C13.3285 30.2226 12.8903 30.5013 12.377 30.7029C11.8673 30.9009 11.3008 30.9999 10.6775 30.9999H7.56445V22.9864H10.6775C11.3008 22.9864 11.8673 23.0873 12.377 23.2889C12.8903 23.4906 13.3285 23.7693 13.6915 24.1249C14.0545 24.4806 14.335 24.9041 14.533 25.3954C14.7346 25.8831 14.8355 26.4148 14.8355 26.9904ZM12.9325 26.9904C12.9325 26.5944 12.8811 26.2369 12.7785 25.9179C12.6758 25.5989 12.5273 25.3294 12.333 25.1094C12.1423 24.8858 11.9076 24.7153 11.629 24.5979C11.3503 24.4769 11.0331 24.4164 10.6775 24.4164H9.43445V29.5699H10.6775C11.0331 29.5699 11.3503 29.5113 11.629 29.3939C11.9076 29.2729 12.1423 29.1024 12.333 28.8824C12.5273 28.6588 12.6758 28.3874 12.7785 28.0684C12.8811 27.7494 12.9325 27.3901 12.9325 26.9904Z",fill:"#0C3092"}),(0,n.jsx)("path",{d:"M24.6375 26.9904C24.6375 27.5698 24.5367 28.1088 24.335 28.6074C24.137 29.1061 23.8565 29.5406 23.4935 29.9109C23.1305 30.2776 22.6923 30.5654 22.179 30.7744C21.6693 30.9834 21.1028 31.0879 20.4795 31.0879C19.8562 31.0879 19.2878 30.9834 18.7745 30.7744C18.2612 30.5654 17.8212 30.2776 17.4545 29.9109C17.0915 29.5406 16.8092 29.1061 16.6075 28.6074C16.4095 28.1088 16.3105 27.5698 16.3105 26.9904C16.3105 26.4111 16.4095 25.8721 16.6075 25.3734C16.8092 24.8748 17.0915 24.4421 17.4545 24.0754C17.8212 23.7088 18.2612 23.4209 18.7745 23.2119C19.2878 23.0029 19.8562 22.8984 20.4795 22.8984C21.1028 22.8984 21.6693 23.0048 22.179 23.2174C22.6923 23.4264 23.1305 23.7143 23.4935 24.0809C23.8565 24.4476 24.137 24.8803 24.335 25.3789C24.5367 25.8776 24.6375 26.4148 24.6375 26.9904ZM22.7345 26.9904C22.7345 26.5944 22.6832 26.2388 22.5805 25.9234C22.4779 25.6044 22.3293 25.3349 22.135 25.1149C21.9443 24.8949 21.7097 24.7263 21.431 24.6089C21.1523 24.4916 20.8352 24.4329 20.4795 24.4329C20.1202 24.4329 19.7993 24.4916 19.517 24.6089C19.2383 24.7263 19.0018 24.8949 18.8075 25.1149C18.6168 25.3349 18.4702 25.6044 18.3675 25.9234C18.2648 26.2388 18.2135 26.5944 18.2135 26.9904C18.2135 27.3901 18.2648 27.7494 18.3675 28.0684C18.4702 28.3838 18.6168 28.6514 18.8075 28.8714C19.0018 29.0914 19.2383 29.2601 19.517 29.3774C19.7993 29.4911 20.1202 29.5479 20.4795 29.5479C20.8352 29.5479 21.1523 29.4911 21.431 29.3774C21.7097 29.2601 21.9443 29.0914 22.135 28.8714C22.3293 28.6514 22.4779 28.3838 22.5805 28.0684C22.6832 27.7494 22.7345 27.3901 22.7345 26.9904Z",fill:"#0C3092"}),(0,n.jsx)("path",{d:"M31.9109 28.9264C31.9549 28.9264 31.9989 28.9356 32.0429 28.9539C32.0869 28.9686 32.129 28.9961 32.1694 29.0364L32.9064 29.8119C32.5837 30.2336 32.1785 30.5526 31.6909 30.7689C31.2069 30.9816 30.633 31.0879 29.9694 31.0879C29.3607 31.0879 28.8144 30.9853 28.3304 30.7799C27.85 30.5709 27.4412 30.2849 27.1039 29.9219C26.7702 29.5553 26.5135 29.1226 26.3339 28.6239C26.1542 28.1216 26.0644 27.5771 26.0644 26.9904C26.0644 26.3928 26.167 25.8446 26.3724 25.3459C26.5777 24.8436 26.8637 24.4109 27.2304 24.0479C27.6007 23.6849 28.0425 23.4026 28.5559 23.2009C29.0692 22.9993 29.6357 22.8984 30.2554 22.8984C30.556 22.8984 30.8384 22.9259 31.1024 22.9809C31.37 23.0323 31.6194 23.1056 31.8504 23.2009C32.0814 23.2926 32.294 23.4044 32.4884 23.5364C32.6827 23.6648 32.855 23.8078 33.0054 23.9654L32.3784 24.8069C32.338 24.8583 32.2904 24.9059 32.2354 24.9499C32.1804 24.9903 32.1034 25.0104 32.0044 25.0104C31.9384 25.0104 31.876 24.9958 31.8174 24.9664C31.7587 24.9371 31.6964 24.9023 31.6304 24.8619C31.5644 24.8179 31.491 24.7721 31.4104 24.7244C31.3334 24.6731 31.2399 24.6273 31.1299 24.5869C31.0235 24.5429 30.897 24.5063 30.7504 24.4769C30.6074 24.4476 30.4387 24.4329 30.2444 24.4329C29.907 24.4329 29.599 24.4934 29.3204 24.6144C29.0417 24.7318 28.8015 24.9023 28.5999 25.1259C28.4019 25.3459 28.246 25.6136 28.1324 25.9289C28.0224 26.2443 27.9674 26.5981 27.9674 26.9904C27.9674 27.4011 28.0224 27.7659 28.1324 28.0849C28.246 28.4039 28.3982 28.6734 28.5889 28.8934C28.7832 29.1098 29.0087 29.2748 29.2654 29.3884C29.522 29.5021 29.797 29.5589 30.0904 29.5589C30.259 29.5589 30.413 29.5516 30.5524 29.5369C30.6917 29.5186 30.82 29.4893 30.9374 29.4489C31.0584 29.4086 31.172 29.3573 31.2784 29.2949C31.3884 29.2289 31.4984 29.1483 31.6084 29.0529C31.6524 29.0163 31.7 28.9869 31.7514 28.9649C31.8027 28.9393 31.8559 28.9264 31.9109 28.9264Z",fill:"#0C3092"})]}),Zoe=({title:t="No File",desc:e="Paper icon with one corner bent inwards",width:s="40",height:o="50",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 40 50",width:s,height:o,className:classNames("i i-fileNone",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),jsx("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"})]}),Yoe=null,XC=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#F5D0CE",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M10.8678 28.3213V30.9998H9.00879V22.9863H11.8358C12.4005 22.9863 12.8845 23.0542 13.2878 23.1898C13.6948 23.3218 14.0285 23.5052 14.2888 23.7398C14.5528 23.9745 14.7471 24.2513 14.8718 24.5703C14.9965 24.8893 15.0588 25.234 15.0588 25.6043C15.0588 26.004 14.9946 26.3707 14.8663 26.7043C14.738 27.038 14.5418 27.324 14.2778 27.5623C14.0138 27.8007 13.6783 27.9877 13.2713 28.1233C12.868 28.2553 12.3895 28.3213 11.8358 28.3213H10.8678ZM10.8678 26.9188H11.8358C12.3198 26.9188 12.6681 26.8033 12.8808 26.5723C13.0935 26.3413 13.1998 26.0187 13.1998 25.6043C13.1998 25.421 13.1723 25.2542 13.1173 25.1038C13.0623 24.9535 12.978 24.8252 12.8643 24.7188C12.7543 24.6088 12.6131 24.5245 12.4408 24.4658C12.2721 24.4072 12.0705 24.3778 11.8358 24.3778H10.8678V26.9188Z",fill:"#771D18"}),(0,n.jsx)("path",{d:"M24.2944 26.9903C24.2944 27.5697 24.1936 28.105 23.9919 28.5963C23.7939 29.084 23.5134 29.5075 23.1504 29.8668C22.7874 30.2225 22.3493 30.5012 21.8359 30.7028C21.3263 30.9008 20.7598 30.9998 20.1364 30.9998H17.0234V22.9863H20.1364C20.7598 22.9863 21.3263 23.0872 21.8359 23.2888C22.3493 23.4905 22.7874 23.7692 23.1504 24.1248C23.5134 24.4805 23.7939 24.904 23.9919 25.3953C24.1936 25.883 24.2944 26.4147 24.2944 26.9903ZM22.3914 26.9903C22.3914 26.5943 22.3401 26.2368 22.2374 25.9178C22.1348 25.5988 21.9863 25.3293 21.7919 25.1093C21.6013 24.8857 21.3666 24.7152 21.0879 24.5978C20.8093 24.4768 20.4921 24.4163 20.1364 24.4163H18.8934V29.5698H20.1364C20.4921 29.5698 20.8093 29.5112 21.0879 29.3938C21.3666 29.2728 21.6013 29.1023 21.7919 28.8823C21.9863 28.6587 22.1348 28.3873 22.2374 28.0683C22.3401 27.7493 22.3914 27.39 22.3914 26.9903Z",fill:"#771D18"}),(0,n.jsx)("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"})]}),JC=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#FBDACC",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.2115 28.3213V30.9998H9.35254V22.9863H12.1795C12.7442 22.9863 13.2282 23.0542 13.6315 23.1898C14.0385 23.3218 14.3722 23.5052 14.6325 23.7398C14.8965 23.9745 15.0909 24.2513 15.2155 24.5703C15.3402 24.8893 15.4025 25.234 15.4025 25.6043C15.4025 26.004 15.3384 26.3707 15.21 26.7043C15.0817 27.038 14.8855 27.324 14.6215 27.5623C14.3575 27.8007 14.022 27.9877 13.615 28.1233C13.2117 28.2553 12.7332 28.3213 12.1795 28.3213H11.2115ZM11.2115 26.9188H12.1795C12.6635 26.9188 13.0119 26.8033 13.2245 26.5723C13.4372 26.3413 13.5435 26.0187 13.5435 25.6043C13.5435 25.421 13.516 25.2542 13.461 25.1038C13.406 24.9535 13.3217 24.8252 13.208 24.7188C13.098 24.6088 12.9569 24.5245 12.7845 24.4658C12.6159 24.4072 12.4142 24.3778 12.1795 24.3778H11.2115V26.9188Z",fill:"#7C2B0E"}),(0,n.jsx)("path",{d:"M19.2262 28.3213V30.9998H17.3672V22.9863H20.1942C20.7589 22.9863 21.2429 23.0542 21.6462 23.1898C22.0532 23.3218 22.3869 23.5052 22.6472 23.7398C22.9112 23.9745 23.1055 24.2513 23.2302 24.5703C23.3549 24.8893 23.4172 25.234 23.4172 25.6043C23.4172 26.004 23.353 26.3707 23.2247 26.7043C23.0964 27.038 22.9002 27.324 22.6362 27.5623C22.3722 27.8007 22.0367 27.9877 21.6297 28.1233C21.2264 28.2553 20.7479 28.3213 20.1942 28.3213H19.2262ZM19.2262 26.9188H20.1942C20.6782 26.9188 21.0265 26.8033 21.2392 26.5723C21.4519 26.3413 21.5582 26.0187 21.5582 25.6043C21.5582 25.421 21.5307 25.2542 21.4757 25.1038C21.4207 24.9535 21.3364 24.8252 21.2227 24.7188C21.1127 24.6088 20.9715 24.5245 20.7992 24.4658C20.6305 24.4072 20.4289 24.3778 20.1942 24.3778H19.2262V26.9188Z",fill:"#7C2B0E"}),(0,n.jsx)("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"})]}),qC=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.6738 28.0355V31H9.81476V22.9865H12.4218C13.0011 22.9865 13.4943 23.047 13.9013 23.168C14.3119 23.2853 14.6456 23.4503 14.9023 23.663C15.1626 23.8757 15.3514 24.1268 15.4688 24.4165C15.5861 24.7062 15.6448 25.0215 15.6448 25.3625C15.6448 25.6228 15.6099 25.8685 15.5403 26.0995C15.4706 26.3305 15.3661 26.545 15.2268 26.743C15.0911 26.9373 14.9224 27.1115 14.7208 27.2655C14.5228 27.4195 14.2936 27.546 14.0333 27.645C14.1579 27.7073 14.2734 27.7843 14.3798 27.876C14.4898 27.9677 14.5851 28.0795 14.6658 28.2115L16.3708 31H14.6878C14.3761 31 14.1524 30.8827 14.0168 30.648L12.6858 28.3215C12.6271 28.2188 12.5574 28.1455 12.4768 28.1015C12.3998 28.0575 12.2898 28.0355 12.1468 28.0355H11.6738ZM11.6738 26.754H12.4218C12.6748 26.754 12.8893 26.7228 13.0653 26.6605C13.2449 26.5945 13.3916 26.5047 13.5053 26.391C13.6189 26.2773 13.7014 26.1453 13.7528 25.995C13.8041 25.841 13.8298 25.676 13.8298 25.5C13.8298 25.148 13.7143 24.873 13.4833 24.675C13.2559 24.477 12.9021 24.378 12.4218 24.378H11.6738V26.754Z",fill:"#144E6C"}),(0,n.jsx)("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),(0,n.jsx)("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"})]}),e4=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#D1E5D1",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.8861 26.8804L9.40564 22.9864H11.2646C11.3856 22.9864 11.4736 23.0029 11.5286 23.0359C11.5873 23.0653 11.6386 23.1166 11.6826 23.1899L13.2776 25.8904C13.296 25.8428 13.3161 25.7969 13.3381 25.7529C13.3638 25.7089 13.3913 25.6631 13.4206 25.6154L14.8176 23.2174C14.9093 23.0634 15.034 22.9864 15.1916 22.9864H16.9736L14.4601 26.7979L17.0286 30.9999H15.1696C15.0486 30.9999 14.9496 30.9706 14.8726 30.9119C14.7993 30.8533 14.7406 30.7836 14.6966 30.7029L13.0906 27.8979C13.0613 27.9786 13.0283 28.0483 12.9916 28.1069L11.4956 30.7029C11.4516 30.7799 11.393 30.8496 11.3196 30.9119C11.2463 30.9706 11.1546 30.9999 11.0446 30.9999H9.30664L11.8861 26.8804Z",fill:"#265026"}),(0,n.jsx)("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),(0,n.jsx)("path",{d:"M29.9128 24.6144C29.8578 24.7024 29.7991 24.7684 29.7368 24.8124C29.6781 24.8564 29.6011 24.8784 29.5058 24.8784C29.4215 24.8784 29.3298 24.8528 29.2308 24.8014C29.1355 24.7464 29.0255 24.6859 28.9008 24.6199C28.7798 24.5539 28.6405 24.4953 28.4828 24.4439C28.3251 24.3889 28.1455 24.3614 27.9438 24.3614C27.5955 24.3614 27.3351 24.4366 27.1628 24.5869C26.9941 24.7336 26.9098 24.9334 26.9098 25.1864C26.9098 25.3478 26.9611 25.4816 27.0638 25.5879C27.1665 25.6943 27.3003 25.7859 27.4653 25.8629C27.634 25.9399 27.8246 26.0114 28.0373 26.0774C28.2536 26.1398 28.4736 26.2113 28.6973 26.2919C28.921 26.3689 29.1391 26.4606 29.3518 26.5669C29.5681 26.6733 29.7588 26.8089 29.9238 26.9739C30.0925 27.1389 30.2281 27.3406 30.3308 27.5789C30.4335 27.8136 30.4848 28.0978 30.4848 28.4314C30.4848 28.8018 30.4206 29.1483 30.2923 29.4709C30.164 29.7936 29.977 30.0759 29.7313 30.3179C29.4893 30.5563 29.1886 30.7451 28.8293 30.8844C28.4736 31.0201 28.0685 31.0879 27.6138 31.0879C27.3645 31.0879 27.1096 31.0623 26.8493 31.0109C26.5926 30.9596 26.3433 30.8881 26.1013 30.7964C25.8593 30.7011 25.632 30.5893 25.4193 30.4609C25.2066 30.3326 25.0215 30.1896 24.8638 30.0319L25.4138 29.1629C25.4541 29.0969 25.511 29.0438 25.5843 29.0034C25.6576 28.9631 25.7365 28.9429 25.8208 28.9429C25.9308 28.9429 26.0408 28.9778 26.1508 29.0474C26.2645 29.1171 26.391 29.1941 26.5303 29.2784C26.6733 29.3628 26.8365 29.4398 27.0198 29.5094C27.2031 29.5791 27.4195 29.6139 27.6688 29.6139C28.0061 29.6139 28.2683 29.5406 28.4553 29.3939C28.6423 29.2436 28.7358 29.0071 28.7358 28.6844C28.7358 28.4974 28.6845 28.3453 28.5818 28.2279C28.4791 28.1106 28.3435 28.0134 28.1748 27.9364C28.0098 27.8594 27.821 27.7916 27.6083 27.7329C27.3956 27.6743 27.1775 27.6101 26.9538 27.5404C26.7301 27.4671 26.512 27.3791 26.2993 27.2764C26.0866 27.1701 25.896 27.0326 25.7273 26.8639C25.5623 26.6916 25.4285 26.4789 25.3258 26.2259C25.2231 25.9693 25.1718 25.6539 25.1718 25.2799C25.1718 24.9793 25.2323 24.6859 25.3533 24.3999C25.4743 24.1139 25.6521 23.8591 25.8868 23.6354C26.1215 23.4118 26.4093 23.2339 26.7503 23.1019C27.0913 22.9663 27.4818 22.8984 27.9218 22.8984C28.1675 22.8984 28.4058 22.9186 28.6368 22.9589C28.8715 22.9956 29.0933 23.0524 29.3023 23.1294C29.5113 23.2028 29.7056 23.2926 29.8853 23.3989C30.0686 23.5016 30.2318 23.6189 30.3748 23.7509L29.9128 24.6144Z",fill:"#265026"})]}),t4=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="50",role:a="img",title:c="",width:d="40"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fillRule:"evenodd",fill:"#CFEAF8"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fillRule:"evenodd",fill:"#ABDBF3"}),(0,n.jsx)("path",{d:"M16.8968 22.9863V23.6573C16.8968 23.7527 16.8802 23.8462 16.8472 23.9378C16.8179 24.0295 16.7757 24.1157 16.7207 24.1963L12.9587 29.5698H16.7758V30.9998H10.5938V30.2848C10.5938 30.2005 10.6084 30.118 10.6377 30.0373C10.6671 29.953 10.7074 29.876 10.7587 29.8063L14.5317 24.4163H10.9017V22.9863H16.8968Z",fill:"#124F6E"}),(0,n.jsx)("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),(0,n.jsx)("path",{d:"M25.1301 28.3213V30.9998H23.2711V22.9863H26.0981C26.6627 22.9863 27.1467 23.0542 27.5501 23.1898C27.9571 23.3218 28.2907 23.5052 28.5511 23.7398C28.8151 23.9745 29.0094 24.2513 29.1341 24.5703C29.2587 24.8893 29.3211 25.234 29.3211 25.6043C29.3211 26.004 29.2569 26.3707 29.1286 26.7043C29.0002 27.038 28.8041 27.324 28.5401 27.5623C28.2761 27.8007 27.9406 27.9877 27.5336 28.1233C27.1302 28.2553 26.6517 28.3213 26.0981 28.3213H25.1301ZM25.1301 26.9188H26.0981C26.5821 26.9188 26.9304 26.8033 27.1431 26.5723C27.3557 26.3413 27.4621 26.0187 27.4621 25.6043C27.4621 25.421 27.4346 25.2542 27.3796 25.1038C27.3246 24.9535 27.2402 24.8252 27.1266 24.7188C27.0166 24.6088 26.8754 24.5245 26.7031 24.4658C26.5344 24.4072 26.3327 24.3778 26.0981 24.3778H25.1301V26.9188Z",fill:"#124F6E"})]}),sre=({title:t="More",desc:e="Filled caret pointing right",width:s="7",height:o="5",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 5 7",width:s,height:o,className:classNames("i i-filledChevronRight",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("g",{children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 3.625L1 1v5.25z"})})]}),nre=null,v0=({title:t="Fill in the Blank",desc:e="Pencil writing on a surface",width:s="15",height:o="15",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 15 15",width:s,height:o,className:M()("i i-fillInTheBlank",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M2.488 8.246l5.25-5.25 1.4 1.4-5.25 5.25h-1.4v-1.4zm-.875 3.15h2.625a.794.794 0 0 0 .613-.262l6.125-6.125a.846.846 0 0 0 0-1.225L8.35 1.159a.846.846 0 0 0-1.225 0L1 7.284a.794.794 0 0 0-.263.612v2.625c0 .525.35.875.875.875zM.739 13.146h14v1.75h-14z"})]}),rre=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="16",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.793 2.793L9 0h7v7l-2.793-2.793-2.5 2.5a.997.997 0 0 1-1.414 0 1 1 0 0 1 0-1.414l2.5-2.5zm-5.086 6.5a1 1 0 0 1 0 1.414l-2.5 2.5L7 16H0V9l2.793 2.793 2.5-2.5a1 1 0 0 1 1.414 0zm-2.5-6.5l2.5 2.5a1 1 0 1 1-1.414 1.414l-2.5-2.5L0 7V0h7L4.207 2.793zm5.086 6.5a1 1 0 0 1 1.414 0l2.5 2.5L16 9v7H9l2.793-2.793-2.5-2.5a1 1 0 0 1 0-1.414z"})]}),are=null,ire=({title:t="Flashcard Block",desc:e="Flashcard Block",width:s="16",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 15",width:s,height:o,className:classNames("i i-flashcard-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M2.759 1.9v3.2h3.2V1.9h-3.2zm5-.186v3.572c0 .925-.689 1.614-1.614 1.614H2.573C1.648 6.9.96 6.211.96 5.286V1.714C.959.79 1.648.1 2.573.1h3.572c.925 0 1.614.689 1.614 1.614zm8 0v3.572c0 .925-.689 1.614-1.614 1.614h-3.572c-.925 0-1.614-.689-1.614-1.614V1.714C8.959.79 9.648.1 10.573.1h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V1.9h-3.2zm-3 7.814v3.572c0 .925-.689 1.614-1.614 1.614H2.573c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2zm13-.186v3.572c0 .925-.689 1.614-1.614 1.614h-3.572c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2z"})]}),cre=null,C0=t=>(0,n.jsx)(is,{viewBox:"0 0 15 15",...t,children:(0,n.jsx)("path",{d:"M13.32 2.84H7.543L5.182.477a.794.794 0 0 0-.613-.262h-3.5c-.525 0-.875.35-.875.875v12.25c0 .525.35.875.875.875h12.25c.525 0 .875-.35.875-.875V3.715c0-.525-.35-.875-.875-.875"})});function dre(t){return jsxs(Icon,{...t,viewBox:"0 0 16 14",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66675 1.66683C2.48994 1.66683 2.32037 1.73707 2.19534 1.86209C2.07032 1.98712 2.00008 2.15668 2.00008 2.3335V11.6668C2.00008 11.8436 2.07032 12.0132 2.19534 12.1382C2.32037 12.2633 2.48994 12.3335 2.66675 12.3335H13.3334C13.5102 12.3335 13.6798 12.2633 13.8048 12.1382C13.9298 12.0132 14.0001 11.8436 14.0001 11.6668V4.3335C14.0001 4.15669 13.9298 3.98712 13.8048 3.86209C13.6798 3.73707 13.5102 3.66683 13.3334 3.66683H7.33341C7.11051 3.66683 6.90236 3.55543 6.77871 3.36996L5.64329 1.66683H2.66675ZM1.25253 0.919282C1.62761 0.54421 2.13632 0.333496 2.66675 0.333496H6.00008C6.22298 0.333496 6.43114 0.444897 6.55478 0.630363L7.6902 2.3335H13.3334C13.8638 2.3335 14.3726 2.54421 14.7476 2.91928C15.1227 3.29436 15.3334 3.80306 15.3334 4.3335V11.6668C15.3334 12.1973 15.1227 12.706 14.7476 13.081C14.3726 13.4561 13.8638 13.6668 13.3334 13.6668H2.66675C2.13631 13.6668 1.62761 13.4561 1.25253 13.081C0.877462 12.706 0.666748 12.1973 0.666748 11.6668V2.3335C0.666748 1.80306 0.877462 1.29436 1.25253 0.919282Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.52868 5.86209C7.78903 5.60174 8.21114 5.60174 8.47149 5.86209L10.4715 7.86209C10.7318 8.12244 10.7318 8.54455 10.4715 8.8049L8.47149 10.8049C8.21114 11.0653 7.78903 11.0653 7.52868 10.8049C7.26833 10.5446 7.26833 10.1224 7.52868 9.86209L8.39061 9.00016H6.00008C5.63189 9.00016 5.33341 8.70169 5.33341 8.3335C5.33341 7.96531 5.63189 7.66683 6.00008 7.66683H8.39061L7.52868 6.8049C7.26833 6.54455 7.26833 6.12244 7.52868 5.86209Z"})]})}const ure=({title:t="Folder Empty",desc:e="Folder outline empty",width:s="47",height:o="47",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 47 47",width:s,height:o,className:classNames("i i-folder--empty",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M38.254 7.148a1 1 0 0 0-1-1h-20.16l.805.407L13.58.688a1 1 0 0 0-.805-.407H1.254a1 1 0 0 0-1 1v39.6c0 2.979 2.377 5.4 5.32 5.4a1 1 0 0 0 0-2c-1.83 0-3.32-1.518-3.32-3.4v-39.6l-1 1h11.52l-.805-.407 4.32 5.867a1 1 0 0 0 .805.407h20.16l-1-1v8.8a1 1 0 0 0 2 0v-8.8z"}),jsx("path",{d:"M9.587 40.931a3.341 3.341 0 0 1-3.333 3.35v2H40.92c2.946 0 5.333-2.396 5.333-5.35v-24.65a1 1 0 0 0-1-1H10.587a1 1 0 0 0-1 1v24.65zm1-23.65h34.667l-1-1v24.65a3.341 3.341 0 0 1-3.333 3.35H6.254c-1.333 0-1.333 2 0 2 2.946 0 5.333-2.396 5.333-5.35v-24.65l-1 1z"})]}),hre=null,mre=({title:t="Folder Outline",desc:e="Outline of a folder",width:s="24",height:o="24",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 24 24",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M1 22l1 1V1L1 2h8l-.8-.4 3 4a1 1 0 0 0 .8.4h11l-1-1v18l1-1H1zm23 1V5a1 1 0 0 0-1-1H12l.8.4-3-4A1 1 0 0 0 9 0H1a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1z"})]}),pre=null,fre=({title:t="FolderSort",desc:e="Sort by Folders",width:s="13",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 13 13",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M12.188 13H.812C.326 13 0 12.675 0 12.187V.813C0 .325.325 0 .813 0h3.25c.243 0 .406.081.568.244l2.194 2.194h5.362c.488 0 .813.325.813.812v8.938c0 .487-.325.812-.813.812zM1.624 11.375h9.75V4.062H6.5a.738.738 0 0 1-.569-.243L3.737 1.625H1.625v9.75z"})]}),gre=null,vre=({title:t="Font",desc:e="A capital letter T with a second smaller capital T to the right",width:s="35",height:o="27",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 35 27",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2",d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z"})]}),Cre=null,xre=({title:t="Globe",desc:e="Globe",width:s="19",height:o="19",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 19 19",width:s,height:o,className:classNames("i i-globe",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M4.15769524,2.53322956 C4.63932973,2.88925044 5.03751114,3.34570647 5.40823525,3.96794145 C5.97414413,4.9157758 6.2516787,6.02609669 5.85626753,6.53734418 C5.64559032,6.80976807 5.27863332,7.04870264 4.59906802,7.38563956 C4.56195429,7.40404101 4.15115876,7.60501904 4.03281374,7.66469732 C3.06174656,8.15438101 2.62134185,8.5274042 2.62134185,9.19106658 C2.62134185,9.77848965 2.8670776,10.143914 3.69349999,11.0983957 C3.85142869,11.2807965 3.93671699,11.3811115 4.02505637,11.4900973 C4.12367053,11.6117594 4.20483266,11.7193674 4.2727145,11.8194858 C4.84834436,12.6694609 4.77200745,13.5511843 4.25729859,14.4129385 C4.08170647,14.7071739 3.78410363,14.9865768 3.41763909,15.2061757 C3.18076922,15.3481168 3.10381426,15.6552038 3.24575536,15.8920737 C3.38769646,16.1289435 3.69478343,16.2058985 3.9316533,16.0639574 C4.43162122,15.7643583 4.84942841,15.3721022 5.11591553,14.9255562 C5.81181883,13.7604362 5.92325351,12.4733188 5.10055468,11.2585219 C5.01488991,11.1321754 4.91717026,11.0026148 4.80190816,10.8604139 C4.70476725,10.7405694 4.61420364,10.6340496 4.44950069,10.4438249 C3.8226144,9.71979864 3.62134185,9.42049386 3.62134185,9.19106658 C3.62134185,9.07419172 3.86073966,8.87142156 4.48307754,8.5575929 C4.59496976,8.50116859 5.00134771,8.30235182 5.0432777,8.28156242 C5.85532835,7.87893761 6.3137176,7.5804693 6.6473012,7.14911679 C7.39446447,6.18307089 7.03367102,4.7396597 6.26707989,3.45570549 C5.83153882,2.72467927 5.34597397,2.16805107 4.75211889,1.7290775 C4.53005843,1.56493195 4.21697659,1.61188125 4.05283104,1.83394171 C3.88868548,2.05600217 3.93563479,2.36908401 4.15769524,2.53322956 Z"}),jsx("path",{d:"M15.9274178,3.45664974 C14.6004878,4.09276486 12.3393613,4.73270135 11.6937611,4.77915598 C11.4666512,4.79547134 11.3771847,4.73864556 11.195027,4.45853539 C11.1462928,4.38359511 10.7504054,3.6936084 10.5821373,3.43784093 C10.425644,3.19997107 10.339693,3.09688541 9.86359475,2.55040589 C9.70948554,2.37351482 9.60949422,2.25531188 9.51628801,2.13775915 C9.23271994,1.78011986 9.09921141,1.52300849 9.09921141,1.3648231 C9.09921141,1.11278527 9.12320107,0.930636255 9.17751114,0.762560883 C9.26241817,0.499795956 9.11823586,0.217952144 8.85547094,0.13304511 C8.59270601,0.0481380761 8.3108622,0.192320386 8.22595516,0.455085313 C8.13655583,0.731752726 8.09921141,1.01530196 8.09921141,1.3648231 C8.09921141,1.81446338 8.31831307,2.23641042 8.73270833,2.75905045 C8.83776299,2.89154659 8.94612936,3.01964994 9.1096035,3.20729035 C9.54512458,3.70719422 9.62671667,3.80505198 9.74672026,3.98745744 C9.89309496,4.20994697 10.287216,4.8968552 10.3567012,5.00370495 C10.720175,5.56263107 11.1290049,5.82230465 11.7654734,5.77658134 C12.5422215,5.72068987 14.924201,5.04654998 16.3597007,4.35838776 C16.6087088,4.23901613 16.7137999,3.94038536 16.5944283,3.69137728 C16.4750566,3.4423692 16.1764259,3.3372781 15.9274178,3.45664974 Z"}),jsx("path",{d:"M1.2734375,9.19106658 C1.2734375,13.669272 4.9039277,17.2997622 9.38213315,17.2997622 C13.8603386,17.2997622 17.4908288,13.669272 17.4908288,9.19106658 C17.4908288,4.71286112 13.8603386,1.08237092 9.38213315,1.08237092 C4.9039277,1.08237092 1.2734375,4.71286112 1.2734375,9.19106658 Z M0.2734375,9.19106658 C0.2734375,4.16057638 4.35164295,0.0823709239 9.38213315,0.0823709239 C14.4126234,0.0823709239 18.4908288,4.16057638 18.4908288,9.19106658 C18.4908288,14.2215568 14.4126234,18.2997622 9.38213315,18.2997622 C4.35164295,18.2997622 0.2734375,14.2215568 0.2734375,9.19106658 Z"}),jsx("path",{d:"M14.3715535,9.90496445 C14.3581129,8.89264785 13.3796403,8.05032745 12.1323766,8.05032745 C10.8411631,8.05032745 9.78378353,8.92591333 9.88993195,9.84067954 C10.0017837,10.8072936 10.0001199,11.5480355 9.92990326,12.5726092 C9.83834235,13.9086299 9.86171907,14.0058198 10.353835,14.2067901 C11.6057772,14.7177493 14.3993835,11.94782 14.3715535,9.90496445 Z M15.371463,9.89151561 C15.4079605,12.5706026 11.9935373,15.9560871 9.97586392,15.1326075 C8.92147211,14.7020151 8.81263479,14.2495182 8.93224338,12.504237 C8.99863249,11.5355135 9.00016994,10.8510127 8.89657883,9.95578626 C8.7121825,8.36669535 10.3018615,7.05032745 12.1323766,7.05032745 C13.8988751,7.05032745 15.35033,8.2998158 15.371463,9.89151561 Z"})]}),Ere=null,Tre=t=>jsxs(Icon,{...t,viewBox:"0 0 16 16",children:[jsx("path",{d:"M6,0 L1,0 C0.4,0 0,0.4 0,1 L0,6 C0,6.6 0.4,7 1,7 L6,7 C6.6,7 7,6.6 7,6 L7,1 C7,0.4 6.6,0 6,0"}),jsx("path",{d:"M15,0 L10,0 C9.4,0 9,0.4 9,1 L9,6 C9,6.6 9.4,7 10,7 L15,7 C15.6,7 16,6.6 16,6 L16,1 C16,0.4 15.6,0 15,0"}),jsx("path",{d:"M15,9 L10,9 C9.4,9 9,9.4 9,10 L9,15 C9,15.6 9.4,16 10,16 L15,16 C15.6,16 16,15.6 16,15 L16,10 C16,9.4 15.6,9 15,9"}),jsx("path",{d:"M6,9 L1,9 C0.4,9 0,9.4 0,10 L0,15 C0,15.6 0.4,16 1,16 L6,16 C6.6,16 7,15.6 7,15 L7,10 C7,9.4 6.6,9 6,9"})]}),Sre=null,Lre=({title:t="Group",desc:e="Silhouettes of two people",width:s="18",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 18 17",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M4.5 8.25C3.50544 8.25 2.55161 7.85491 1.84835 7.15165C1.14509 6.44839 0.75 5.49456 0.75 4.5C0.75 3.50544 1.14509 2.55161 1.84835 1.84835C2.55161 1.14509 3.50544 0.75 4.5 0.75C5.49456 0.75 6.44839 1.14509 7.15165 1.84835C7.85491 2.55161 8.25 3.50544 8.25 4.5C8.25 5.49456 7.85491 6.44839 7.15165 7.15165C6.44839 7.85491 5.49456 8.25 4.5 8.25ZM4.5 6.75C5.09674 6.75 5.66903 6.51295 6.09099 6.09099C6.51295 5.66903 6.75 5.09674 6.75 4.5C6.75 3.90326 6.51295 3.33097 6.09099 2.90901C5.66903 2.48705 5.09674 2.25 4.5 2.25C3.90326 2.25 3.33097 2.48705 2.90901 2.90901C2.48705 3.33097 2.25 3.90326 2.25 4.5C2.25 5.09674 2.48705 5.66903 2.90901 6.09099C3.33097 6.51295 3.90326 6.75 4.5 6.75ZM13.5 12.25C12.5054 12.25 11.5516 11.8549 10.8483 11.1517C10.1451 10.4484 9.75 9.49456 9.75 8.5C9.75 7.50544 10.1451 6.55161 10.8483 5.84835C11.5516 5.14509 12.5054 4.75 13.5 4.75C14.4946 4.75 15.4484 5.14509 16.1517 5.84835C16.8549 6.55161 17.25 7.50544 17.25 8.5C17.25 9.49456 16.8549 10.4484 16.1517 11.1517C15.4484 11.8549 14.4946 12.25 13.5 12.25ZM13.5 10.75C14.0967 10.75 14.669 10.5129 15.091 10.091C15.5129 9.66903 15.75 9.09674 15.75 8.5C15.75 7.90326 15.5129 7.33097 15.091 6.90901C14.669 6.48705 14.0967 6.25 13.5 6.25C12.9033 6.25 12.331 6.48705 11.909 6.90901C11.4871 7.33097 11.25 7.90326 11.25 8.5C11.25 9.09674 11.4871 9.66903 11.909 10.091C12.331 10.5129 12.9033 10.75 13.5 10.75Z",fill:"black"}),jsx("path",{d:"M8.75 11.5C8.75 11.6989 8.67098 11.8897 8.53033 12.0303C8.38968 12.171 8.19891 12.25 8 12.25C7.80109 12.25 7.61032 12.171 7.46967 12.0303C7.32902 11.8897 7.25 11.6989 7.25 11.5C7.25 10.7707 6.96027 10.0712 6.44454 9.55546C5.92882 9.03973 5.22935 8.75 4.5 8.75C3.77065 8.75 3.07118 9.03973 2.55546 9.55546C2.03973 10.0712 1.75 10.7707 1.75 11.5C1.75 11.5985 1.7306 11.696 1.69291 11.787C1.65522 11.878 1.59997 11.9607 1.53033 12.0303C1.46069 12.1 1.37801 12.1552 1.28701 12.1929C1.19602 12.2306 1.09849 12.25 1 12.25C0.901509 12.25 0.803982 12.2306 0.712987 12.1929C0.621993 12.1552 0.539314 12.1 0.46967 12.0303C0.400026 11.9607 0.344781 11.878 0.30709 11.787C0.269399 11.696 0.25 11.5985 0.25 11.5C0.25 10.9419 0.359929 10.3892 0.573512 9.8736C0.787094 9.35796 1.10015 8.88944 1.4948 8.4948C1.88945 8.10015 2.35796 7.78709 2.8736 7.57351C3.38923 7.35993 3.94188 7.25 4.5 7.25C5.05812 7.25 5.61077 7.35993 6.1264 7.57351C6.64204 7.78709 7.11055 8.10015 7.5052 8.4948C7.89985 8.88944 8.21291 9.35796 8.42649 9.8736C8.64007 10.3892 8.75 10.9419 8.75 11.5ZM17.75 15.402C17.75 15.6009 17.671 15.7917 17.5303 15.9323C17.3897 16.073 17.1989 16.152 17 16.152C16.8011 16.152 16.6103 16.073 16.4697 15.9323C16.329 15.7917 16.25 15.6009 16.25 15.402C16.25 14.6727 15.9603 13.9732 15.4445 13.4575C14.9288 12.9417 14.2293 12.652 13.5 12.652C12.7707 12.652 12.0712 12.9417 11.5555 13.4575C11.0397 13.9732 10.75 14.6727 10.75 15.402C10.75 15.6009 10.671 15.7917 10.5303 15.9323C10.3897 16.073 10.1989 16.152 10 16.152C9.80109 16.152 9.61032 16.073 9.46967 15.9323C9.32902 15.7917 9.25 15.6009 9.25 15.402C9.25 14.2748 9.69777 13.1938 10.4948 12.3968C11.2918 11.5998 12.3728 11.152 13.5 11.152C14.6272 11.152 15.7082 11.5998 16.5052 12.3968C17.3022 13.1938 17.75 14.2748 17.75 15.402Z",fill:"black"})]}),bre=null;function s4(t){return(0,n.jsx)(is,{viewBox:"0 0 20 14",...t,children:(0,n.jsx)("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const x0=({className:t,decorative:e=!0,desc:s="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:c="Heart",width:d="16"})=>(0,n.jsxs)("svg",{"aria-hidden":e,viewBox:"0 0 16 16",width:d,height:r,className:M()(`i i-heart${a?"Filled":"Outline"}`,t),focusable:o,children:[(0,n.jsx)("title",{children:c}),(0,n.jsx)("desc",{children:s}),(0,n.jsx)("path",{d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"})]}),Ire=({title:t="Hidden",desc:e="Eye crossed out",width:s="16",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 14",width:s,height:o,className:classNames("i i-hidden",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M15.9,6.3c-0.1-0.1-1-1.8-2.7-3.3l1.3-1.3c0.4-0.4,0.4-1,0-1.4s-1-0.4-1.4,0l-1.6,1.6c-1-0.6-2.2-1-3.6-1 c-4.8,0-7.7,5.3-7.9,5.5C0,6.6,0,7,0.1,7.3c0.1,0.1,1,1.8,2.7,3.3l-1,1c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3S3,13.2,3.2,13 l1.2-1.2c1,0.6,2.2,1,3.6,1h0c4.7,0,7.7-5.3,7.9-5.5C16,7,16,6.6,15.9,6.3z M2.2,6.8c0.8-1.2,3-4,5.8-4c0.7,0,1.4,0.2,2.1,0.5 L8.5,4.9C8.4,4.8,8.2,4.8,8,4.8c-1.1,0-1.9,0.9-2,2c0,0.2,0,0.4,0.1,0.5L4.2,9.2C3.3,8.3,2.6,7.4,2.2,6.8z M8,10.8 c-0.7,0-1.4-0.2-2.1-0.5l1.6-1.6c0.2,0,0.3,0.1,0.5,0.1c0,0,0.1,0,0.1,0c1.1,0,2-0.9,2-2c0-0.2,0-0.3-0.1-0.5l1.8-1.8 c1,0.8,1.7,1.8,2,2.4C13,8,10.8,10.8,8,10.8z"})]}),Nre=null,jre=({title:t="Image Block",desc:e="Image Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 17",width:s,height:o,className:classNames("i i-image-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M15.992.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm4.1 8.3l-2.1 2.1-1.4-1.4 3.3-3.3 3 2 3.1-3.1 1.4 1.4-4.3 4.3-3-2zm.9-6.3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})]}),Are=null,Rre=({title:t="Labeled Graphic Block",desc:e="Labeled Graphic Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 17",width:s,height:o,className:classNames("i i-labeled-graphic-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M13.753 16.5h-12a1 1 0 0 1-1-1v-12a1 1 0 0 1 1-1h7v2h-6v10h10v-6h2v7a1 1 0 0 1-1 1zm0-16a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"})]}),Ore=null,Pre=({title:t="Label Set",desc:e="Label Set",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 18 18",width:s,height:o,className:classNames("i i-labelSet",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M17.63,9.76,8.24.37A.59.59,0,0,0,7.83.2h-7A.59.59,0,0,0,.2.78v7a.59.59,0,0,0,.17.42l9.39,9.39a.59.59,0,0,0,.83,0l7-7A.59.59,0,0,0,17.63,9.76ZM1.37,7.58V1.37H7.58l8.8,8.8-6.21,6.21Z"}),jsx("path",{d:"M5.48,3.33A2.15,2.15,0,1,0,7.63,5.48,2.15,2.15,0,0,0,5.48,3.33Zm0,3.13a1,1,0,1,1,1-1A1,1,0,0,1,5.48,6.46Z"})]}),Mre=null;function Dre(t){return jsxs(Icon,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...t,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.57031 1 L1 3.85715 L6.57031 6.71431 L12.1406 3.85715 L6.57031 1 Z",strokeWidth:"1.37143",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeWidth:"1.37143",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeWidth:"1.37143",strokeLinecap:"round",strokeLinejoin:"round"})]})}const kre=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="15",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm1-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"})]}),wre=null,Bre=({title:t="Lesson",desc:e="Lesson Icon",width:s="23",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 23 17",width:s,height:o,className:classNames("i i-lesson",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M1.898 16.692a1 1 0 0 1 0-2h11.428a1 1 0 0 1 0 2H1.898zm0-7.083a1 1 0 0 1 0-2h19.286a1 1 0 0 1 0 2H1.898zm0-7.084a1 1 0 0 1 0-2h15a1 1 0 1 1 0 2h-15z"})]}),_re=null,Ure=t=>jsxs(Icon,{...t,viewBox:"0 0 16 16",children:[jsx("path",{d:"M0 1C0 0.447715 0.447715 0 1 0H15C15.5523 0 16 0.447715 16 1V2.5C16 3.05228 15.5523 3.5 15 3.5H1C0.447715 3.5 0 3.05228 0 2.5V1Z"}),jsx("path",{d:"M0 13.6667C0 13.0223 0.447715 12.5 1 12.5H15C15.5523 12.5 16 13.0223 16 13.6667V14.8333C16 15.4777 15.5523 16 15 16H1C0.447715 16 0 15.4777 0 14.8333V13.6667Z"}),jsx("path",{d:"M0 7.25C0 6.69772 0.447715 6.25 1 6.25H15C15.5523 6.25 16 6.69772 16 7.25V8.75C16 9.30228 15.5523 9.75 15 9.75H1C0.447715 9.75 0 9.30228 0 8.75V7.25Z"})]}),Hre=null,Fre=({title:t="List Block",desc:e="List Block",width:s="16",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 13",width:s,height:o,className:classNames("i i-list-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M1.495 10.252a1.25 1.25 0 1 1 0 2.502 1.25 1.25 0 0 1 0-2.502zm0-4.975a1.25 1.25 0 1 1 0 2.502 1.25 1.25 0 0 1 0-2.502zm0-5.031a1.25 1.25 0 1 1 0 2.501 1.25 1.25 0 0 1 0-2.501zm4 .257h10v2h-10v-2zm0 5h10v2h-10v-2zm0 5h10v2h-10v-2z"})]}),zre=null,Vre=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r,role:a="img",title:c,width:d})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 23C24 24.5064 23.1673 25.8183 21.9371 26.5005C21.9782 26.6602 22 26.8275 22 27V30C22 31.1046 21.1046 32 20 32C18.8954 32 18 31.1046 18 30V27C18 26.8275 18.0218 26.6602 18.0629 26.5005C16.8327 25.8183 16 24.5064 16 23C16 20.7909 17.7909 19 20 19C22.2091 19 24 20.7909 24 23ZM20 25C21.1046 25 22 24.1046 22 23C22 21.8954 21.1046 21 20 21C18.8954 21 18 21.8954 18 23C18 24.1046 18.8954 25 20 25Z",fill:"#000"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 10V13C8.68629 13 6 15.6863 6 19V32C6 35.3137 8.68629 38 12 38H28C31.3137 38 34 35.3137 34 32V19C34 15.6863 31.3137 13 28 13V10C28 5.58172 24.4183 2 20 2C15.5817 2 12 5.58172 12 10ZM20 4C16.6863 4 14 6.68629 14 10V13H26V10C26 6.68629 23.3137 4 20 4ZM8 19C8 16.7909 9.79086 15 12 15H28C30.2091 15 32 16.7909 32 19V32C32 34.2091 30.2091 36 28 36H12C9.79086 36 8 34.2091 8 32V19Z",fill:"#000"})]}),Wre=null;function n4(t){return(0,n.jsx)(is,{viewBox:"0 0 20 22",...t,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 9V6C4 4.4087 4.63214 2.88258 5.75736 1.75736C6.88258 0.632141 8.4087 0 10 0C11.5913 0 13.1174 0.632141 14.2426 1.75736C15.3679 2.88258 16 4.4087 16 6V9H17C18.6569 9 20 10.3431 20 12V19C20 20.6569 18.6569 22 17 22H3C1.34315 22 0 20.6569 0 19V12C0 10.3431 1.34315 9 3 9H4ZM7.17157 3.17157C7.92172 2.42143 8.93913 2 10 2C11.0609 2 12.0783 2.42143 12.8284 3.17157C13.5786 3.92172 14 4.93913 14 6V9H6V6C6 4.93913 6.42143 3.92172 7.17157 3.17157Z"})})}const Gre=({title:t="Mail",desc:e="Mail",width:s="14",height:o="12",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 14 12",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M1.692.958a.55.55 0 0 0-.74.814l5.74 5.217c.209.19.53.19.74 0l5.738-5.217a.55.55 0 1 0-.74-.814l-5.369 4.88L1.692.959z"}),jsx("path",{d:"M1.872 10.206H12.25V1.915H1.872v8.291zM1.322.815H12.8a.55.55 0 0 1 .55.55v9.391a.55.55 0 0 1-.55.55H1.322a.55.55 0 0 1-.55-.55V1.365a.55.55 0 0 1 .55-.55z"})]}),Kre=null,o4=({title:t="Matching",desc:e="Two rows of stacked squares",width:s="15",height:o="15",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 15 15",width:s,height:o,className:M()("i i-matching",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M4.814 4.975H2.19V2.35h2.625v2.625zM5.69.6H1.314C.79.6.44.95.44 1.475V5.85c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V1.475C6.564.95 6.214.6 5.69.6zM12.69 4.975h-2.626V2.35h2.625v2.625zM13.563.6H9.19c-.525 0-.875.35-.875.875V5.85c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.475c0-.525-.35-.875-.875-.875zM4.814 12.85H2.19v-2.625h2.625v2.625zm.875-4.375H1.314c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875zM12.69 12.85h-2.626v-2.625h2.625v2.625zm.874-4.375H9.19c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875z"})]}),Qre=()=>jsxs("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M30 2.5C28.0109 2.5 26.1032 3.29018 24.6967 4.6967C23.2902 6.10322 22.5 8.01088 22.5 10V30C22.5 31.9891 23.2902 33.8968 24.6967 35.3033C26.1032 36.7098 28.0109 37.5 30 37.5C31.9891 37.5 33.8968 36.7098 35.3033 35.3033C36.7098 33.8968 37.5 31.9891 37.5 30V10C37.5 8.01088 36.7098 6.10322 35.3033 4.6967C33.8968 3.29018 31.9891 2.5 30 2.5V2.5Z",stroke:"#C9C9CA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M47.5 25V30C47.5 34.6413 45.6563 39.0925 42.3744 42.3744C39.0925 45.6563 34.6413 47.5 30 47.5C25.3587 47.5 20.9075 45.6563 17.6256 42.3744C14.3437 39.0925 12.5 34.6413 12.5 30V25",stroke:"#C9C9CA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M30 47.5V57.5",stroke:"#C9C9CA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{d:"M20 57.5H40",stroke:"#C9C9CA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]}),Zre=null,Yre=({title:t="Move to Folder",desc:e="Folder with an arrow",width:s="15",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 15",width:s,height:o,className:classNames("i i-move",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M1.295 13.223l.584.583V.973l-.584.583h4.667l-.467-.233 1.75 2.333c.11.147.283.234.467.234h6.417l-.584-.584v10.5l.584-.583H1.295zm13.417.583v-10.5a.583.583 0 0 0-.583-.583H7.712l.467.233L6.429.623A.583.583 0 0 0 5.962.39H1.295a.583.583 0 0 0-.583.583v12.833c0 .322.261.584.583.584H14.13a.583.583 0 0 0 .583-.584z"}),jsx("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),jsx("path",{d:"M10.216 8.969v-.825l-2.333 2.333a.583.583 0 0 0 .825.825L11.04 8.97a.583.583 0 0 0 0-.825L8.708 5.81a.583.583 0 0 0-.825.824l2.333 2.334z"})]}),Xre=null,r4=({title:t="Multiple Choice",desc:e="Stacked circles to the left of stacked lines",width:s="16",height:o="16",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 16 16",width:s,height:o,className:M()("i i-multipleChoice",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-2A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"}),(0,n.jsx)("circle",{cx:"7.904",cy:"7.904",r:"1.904"})]}),a4=({title:t="Multiple Response",desc:e="A box with a checkmark in it",width:s="16",height:o="16",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 16 16",width:s,height:o,className:M()("i i-multipleResponse",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M15.142.332c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-1 14v-12h-12v12h12zm-7.978-3.308l-2-2-.707-.708L4.87 6.902l.707.707 1.3 1.3 3.317-3.33.707-.708 1.414 1.414-.707.707-4.03 4.032-.708.707-.707-.707z"})]}),eae=({"aria-hidden":t,title:e="New Folder",desc:s="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:c="false"})=>jsxs("svg",{"aria-hidden":t,viewBox:"0 0 14 14",width:o,height:r,className:classNames("i i-newFolder",a),focusable:c,children:[e&&jsx("title",{children:e}),jsx("desc",{children:s}),jsx("path",{d:"M13.125 2.625c.525 0 .875.35.875.875v9.625c0 .525-.35.875-.875.875H.875C.35 14 0 13.65 0 13.125V.875C0 .35.35 0 .875 0h3.5c.263 0 .438.087.612.262L7.35 2.625h5.775zM10 7H8V5H6v2H4v2h2v2h2V9h2V7z"})]}),tae=null,sae=({title:t="New Slide",desc:e="New Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 16",width:s,height:o,className:classNames("i i-new-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z"}),jsx("path",{fillRule:"evenodd",d:"M14,14H2V2h12V14z M15,0H1C0.4,0,0,0.4,0,1v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1V1C15.9,0.4,15.5,0,15,0z"})]}),nae=null,oae=({title:t="Next Slide",desc:e="Next Slide",width:s="16",height:o="13.4",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 13.4",width:s,height:o,className:classNames("i i-next-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0"})]}),rae=null,i4=({title:t="Not Allowed",desc:e="A circle with a slanted line through it",width:s="12",height:o="12",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 12 12",width:s,height:o,className:M()("i i-notAllowed",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{fill:"#FFF",fillRule:"evenodd",d:"M6 10.5c-.975 0-1.875-.3-2.625-.825l6.3-6.3c.525.75.825 1.65.825 2.625 0 2.475-2.025 4.5-4.5 4.5m0-9c.975 0 1.875.3 2.625.825l-6.3 6.3A4.546 4.546 0 0 1 1.5 6c0-2.475 2.025-4.5 4.5-4.5M6 0C2.7 0 0 2.7 0 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6"})]}),iae=({className:t})=>jsxs("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.26256 1.09594C1.59075 0.767748 2.03587 0.583374 2.5 0.583374H6.58333C6.73804 0.583374 6.88642 0.644832 6.99581 0.754228L11.0791 4.83756C11.1885 4.94696 11.25 5.09533 11.25 5.25004V11.6667C11.25 12.1308 11.0656 12.576 10.7374 12.9041C10.4092 13.2323 9.96413 13.4167 9.5 13.4167H2.5C2.03587 13.4167 1.59075 13.2323 1.26256 12.9041C0.934374 12.576 0.75 12.1308 0.75 11.6667V2.33337C0.75 1.86925 0.934374 1.42413 1.26256 1.09594ZM2.5 1.75004C2.34529 1.75004 2.19692 1.8115 2.08752 1.92089C1.97812 2.03029 1.91667 2.17866 1.91667 2.33337V11.6667C1.91667 11.8214 1.97812 11.9698 2.08752 12.0792C2.19692 12.1886 2.34529 12.25 2.5 12.25H9.5C9.65471 12.25 9.80308 12.1886 9.91248 12.0792C10.0219 11.9698 10.0833 11.8214 10.0833 11.6667V5.49166L6.34171 1.75004H2.5Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.58333 0.583374C6.9055 0.583374 7.16667 0.844541 7.16667 1.16671V4.66671H10.6667C10.9888 4.66671 11.25 4.92787 11.25 5.25004C11.25 5.57221 10.9888 5.83337 10.6667 5.83337H6.58333C6.26117 5.83337 6 5.57221 6 5.25004V1.16671C6 0.844541 6.26117 0.583374 6.58333 0.583374Z"})]}),cae=null,lae=({title:t="Hide",desc:e="Shape of an eye with a stroke through it",width:s="20",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 20 16",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M3.23,12.35 L3.94,11.64 C2.73771334,10.6447807 1.76251115,9.40361431 1.08,8 C2.47,5 5.96,2 9.99,2 C11.0161024,2.00843654 12.0323067,2.20151536 12.99,2.57 L13.76,1.8 C12.5726697,1.28490674 11.2941824,1.01288817 10,1 C5.61,1 1.52,4.28 0,8 C0.716531693,9.68559192 1.82365735,11.1766125 3.23,12.35 L3.23,12.35 Z"}),jsx("path",{d:"M16.77,3.65 L16.06,4.36 C17.2622867,5.35521926 18.2374889,6.59638569 18.92,8 C17.53,11 14.04,14 10.01,14 C8.9838976,13.9915635 7.96769327,13.7984846 7.01,13.43 L6.24,14.2 C7.43352094,14.717712 8.71907199,14.9897863 10.02,15 C14.41,15 18.5,11.72 20.02,8 C19.297748,6.3123309 18.1836278,4.82112397 16.77,3.65 L16.77,3.65 Z"}),jsx("rect",{transform:"translate(9.992148, 7.999769) rotate(-45.000000) translate(-9.992148, -7.999769) ",x:"-0.61285173",y:"7.29476926",width:"21.21",height:"1.41"})]}),dae=null,uae=t=>jsxs(Icon,{viewBox:"0 0 16 16",...t,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.33351 13.3333C7.33351 12.9651 7.63199 12.6667 8.00018 12.6667H14.0002C14.3684 12.6667 14.6668 12.9651 14.6668 13.3333C14.6668 13.7015 14.3684 14 14.0002 14H8.00018C7.63199 14 7.33351 13.7015 7.33351 13.3333Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0002 2.58579C11.8019 2.58579 11.6118 2.66455 11.4716 2.80474L3.26882 11.0075L2.91642 12.4171L4.32601 12.0647L12.5288 3.86193C12.5982 3.79251 12.6533 3.7101 12.6908 3.61941C12.7284 3.52871 12.7477 3.4315 12.7477 3.33333C12.7477 3.23516 12.7284 3.13796 12.6908 3.04726C12.6533 2.95656 12.5982 2.87415 12.5288 2.80474C12.4594 2.73532 12.3769 2.68026 12.2863 2.64269C12.1956 2.60512 12.0983 2.58579 12.0002 2.58579ZM10.5288 1.86193C10.919 1.47169 11.4483 1.25245 12.0002 1.25245C12.2734 1.25245 12.544 1.30628 12.7965 1.41085C13.049 1.51542 13.2784 1.6687 13.4716 1.86193C13.6648 2.05516 13.8181 2.28455 13.9227 2.53701C14.0272 2.78948 14.0811 3.06007 14.0811 3.33333C14.0811 3.6066 14.0272 3.87719 13.9227 4.12965C13.8181 4.38212 13.6648 4.61151 13.4716 4.80474L5.13825 13.1381C5.05281 13.2235 4.94576 13.2841 4.82853 13.3134L2.16187 13.9801C1.93468 14.0369 1.69436 13.9703 1.52877 13.8047C1.36319 13.6392 1.29662 13.3988 1.35342 13.1716L2.02008 10.505C2.04939 10.3878 2.11 10.2807 2.19544 10.1953L10.5288 1.86193Z"})]}),hae=null,mae=({title:t="Edit",desc:e="Pencil",width:s="11",height:o="11",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 10 10",width:s,height:o,className:classNames("i i-pencil",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M8.19.19a.6.6,0,0,0-.87,0L0,7.5V10H2.5L9.81,2.69a.6.6,0,0,0,0-.87Z"})]}),pae=null,fae=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="16",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.668 2.11458C12.5079 2.11458 12.3494 2.14611 12.2015 2.20737C12.0536 2.26863 11.9192 2.35842 11.8061 2.47161L2.93124 11.3464L2.2848 13.7167L4.6551 13.0703L13.5299 4.19546C13.6431 4.08227 13.7329 3.9479 13.7941 3.80001C13.8554 3.65212 13.8869 3.49361 13.8869 3.33353C13.8869 3.17346 13.8554 3.01495 13.7941 2.86706C13.7329 2.71917 13.6431 2.5848 13.5299 2.47161C13.4167 2.35842 13.2823 2.26863 13.1345 2.20737C12.9866 2.14611 12.8281 2.11458 12.668 2.11458ZM11.6913 0.975531C12.0009 0.847267 12.3328 0.78125 12.668 0.78125C13.0032 0.78125 13.335 0.847267 13.6447 0.975531C13.9544 1.1038 14.2357 1.2918 14.4727 1.5288C14.7097 1.7658 14.8977 2.04716 15.026 2.35682C15.1543 2.66648 15.2203 2.99837 15.2203 3.33353C15.2203 3.6687 15.1543 4.00059 15.026 4.31025C14.8977 4.61991 14.7097 4.90127 14.4727 5.13827L5.47272 14.1383C5.39069 14.2203 5.28866 14.2795 5.17673 14.31L1.51006 15.31C1.27925 15.373 1.03241 15.3074 0.863246 15.1383C0.69408 14.9691 0.628527 14.7223 0.691475 14.4915L1.69148 10.8248C1.722 10.7129 1.78121 10.6108 1.86325 10.5288L10.8632 1.5288C11.1002 1.2918 11.3816 1.1038 11.6913 0.975531Z",fill:"currentColor"})]}),gae=null,vae=({title:t="Person",desc:e="Person outline",width:s="16",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{width:s,height:o,viewBox:"0 0 16 18",className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M1.72039 11.8884C2.50179 11.107 3.5616 10.668 4.66667 10.668H11.3333C12.4384 10.668 13.4982 11.107 14.2796 11.8884C15.061 12.6698 15.5 13.7296 15.5 14.8346V16.5013C15.5 16.9615 15.1269 17.3346 14.6667 17.3346C14.2064 17.3346 13.8333 16.9615 13.8333 16.5013V14.8346C13.8333 14.1716 13.5699 13.5357 13.1011 13.0669C12.6323 12.598 11.9964 12.3346 11.3333 12.3346H4.66667C4.00363 12.3346 3.36774 12.598 2.8989 13.0669C2.43006 13.5357 2.16667 14.1716 2.16667 14.8346V16.5013C2.16667 16.9615 1.79357 17.3346 1.33333 17.3346C0.873096 17.3346 0.5 16.9615 0.5 16.5013V14.8346C0.5 13.7296 0.938987 12.6698 1.72039 11.8884Z"}),jsx("path",{d:"M8 2.33464C6.61929 2.33464 5.5 3.45392 5.5 4.83464C5.5 6.21535 6.61929 7.33464 8 7.33464C9.38071 7.33464 10.5 6.21535 10.5 4.83464C10.5 3.45392 9.38071 2.33464 8 2.33464ZM3.83333 4.83464C3.83333 2.53345 5.69881 0.667969 8 0.667969C10.3012 0.667969 12.1667 2.53345 12.1667 4.83464C12.1667 7.13582 10.3012 9.0013 8 9.0013C5.69881 9.0013 3.83333 7.13582 3.83333 4.83464Z"})]}),Cae=null;class E0 extends m.Component{constructor(...e){super(...e),this.maskId=`person-unknown-mask-${rt()()}`,this.pathId=`person-unknown-path-${rt()()}`}render(){const{title:e="Person Unknown",desc:s,width:o="38",height:r="38",className:a,decorative:c,focusable:d="false"}=this.props;return(0,n.jsxs)("svg",{"aria-hidden":c,viewBox:"0 0 38 38",width:o,height:r,className:M()("i i-person-unknown",a),focusable:d,children:[e&&(0,n.jsx)("title",{children:e}),s&&(0,n.jsx)("desc",{children:s}),(0,n.jsx)("defs",{children:(0,n.jsx)("circle",{id:this.pathId,cx:"19",cy:"19",r:"19"})}),(0,n.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,n.jsx)("mask",{id:this.maskId,fill:"#fff",children:(0,n.jsx)("use",{href:`#${this.pathId}`})}),(0,n.jsx)("use",{fill:"#D8D8D8",href:`#${this.pathId}`}),(0,n.jsx)("path",{d:"M15.1239928,24 C12.6645753,22.6352711 11,20.0120267 11,17 C11,12.581722 14.581722,9 19,9 C23.418278,9 27,12.581722 27,17 C27,20.0120267 25.3354247,22.6352711 22.8760072,24 L23,24 C27.4182847,24 31,27.5817153 31,32 L31,43 C31,43.5522847 30.5522847,44 30,44 L8,44 C7.44771525,44 7,43.5522847 7,43 L7,32 C7,27.5817153 10.5817153,24 15,24 L15.1239928,24 Z",fill:"#ADAEAF",fillRule:"nonzero",mask:`url(#${this.maskId})`})]})]})}}const u2=({title:t="Pick One",desc:e="Pick One",width:s="16",height:o="14",className:r,focusable:a="false","aria-hidden":c})=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 16 14",className:M()("i i-pickOne",r),focusable:a,"aria-hidden":c,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsxs)("g",{fillRule:"evenodd",children:[(0,n.jsx)("path",{fillRule:"nonzero",d:"M5.039 10.865A1.284 1.284 0 1 1 3.754 9.58v-1.6a2.884 2.884 0 1 0-.001 5.768 2.884 2.884 0 0 0 0-5.768v1.6c.71 0 1.286.575 1.286 1.285zM5.039 3.851a1.284 1.284 0 1 1-1.285-1.285v-1.6a2.884 2.884 0 1 0-.001 5.769 2.884 2.884 0 0 0 0-5.769v1.6c.71 0 1.286.575 1.286 1.285z"}),(0,n.jsx)("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})]})]}),Eae=({title:t="Play",desc:e="Triangle facing right that will play the media",width:s="16",height:o="22",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 22",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("desc",{children:e}),jsx("title",{children:t}),jsx("g",{transform:"translate(-124 -107)",children:jsx("path",{d:"M139.493031,116.612695 L126.142419,107.267267 C125.207876,106.599736 124.006321,107.267267 124.006321,108.335316 L124.006321,127.026172 C124.006321,128.094221 125.207876,128.761751 126.142419,128.094221 L139.493031,118.748793 C140.160561,118.214768 140.160561,117.146719 139.493031,116.612695"})})]}),Tae=null,Sae=({title:t="Process Block",desc:e="Process Block",width:s="29",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 29 17",width:s,height:o,className:classNames("i i-process-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M21.22 16.5h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1zm-13-2h12v-12h-12v12zm2-10h7v2h-7v-2zm0 3h8v2h-8v-2zm0 3h6v2h-6v-2zm14.413-3.293a1 1 0 0 1 1.415-1.414l2.121 2.121a1 1 0 0 1 0 1.414l-2.121 2.122a1 1 0 0 1-1.415-1.414l1.415-1.415-1.415-1.414zM2.4 8.621l1.415 1.415A1 1 0 0 1 2.4 11.45L.28 9.328a1 1 0 0 1 0-1.414L2.4 5.793a1 1 0 0 1 1.415 1.414L2.4 8.621z"})]}),Lae=null;function c4(t){return(0,n.jsxs)(is,{viewBox:"0 0 16 16",...t,children:[(0,n.jsx)("path",{d:"M14,14 L2,14 L2,2 L14,2 L14,14 Z M15,0 L1,0 C0.4,0 0,0.4 0,1 L0,15 C0,15.6 0.4,16 1,16 L15,16 C15.6,16 16,15.6 16,15 L16,1 C16,0.4 15.6,0 15,0 L15,0 Z"}),(0,n.jsx)("path",{d:"M7.9997,11 C8.5517,11 8.9997,11.448 8.9997,12 C8.9997,12.552 8.5517,13 7.9997,13 C7.4477,13 6.9997,12.552 6.9997,12 C6.9997,11.448 7.4477,11 7.9997,11"}),(0,n.jsx)("path",{d:"M7.0997,5.5 C7.2997,5.2 7.5997,5 7.9997,5 C8.5997,5 8.9997,5.4 8.9997,6 C8.9997,6.3 8.8997,6.4 8.3997,6.7 C7.7997,7.1 6.9997,7.7 6.9997,9 L6.9997,10 L8.9997,10 L8.9997,9 C8.9997,8.8 8.9997,8.7 9.4997,8.4 C10.0997,8 10.9997,7.4 10.9997,6 C10.9997,4.3 9.6997,3 7.9997,3 C6.8997,3 5.8997,3.6 5.3997,4.5 L4.8997,5.4 L6.5997,6.4 L7.0997,5.5 Z"})]})}const bae=({title:t="Quiz",desc:e="Quiz Icon",width:s="25",height:o="25",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 25 25",width:s,height:o,className:classNames("i i-quiz",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M1.078.609h22a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-22a1 1 0 0 1-1-1v-22a1 1 0 0 1 1-1zm1 2v20h20v-20h-20zm11 11.157a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1c1.048 0 2-.952 2-2 0-1.047-.952-2-2-2-.715 0-1.521.58-1.905 1.348a1 1 0 1 1-1.79-.895c.703-1.404 2.164-2.453 3.695-2.453 2.152 0 4 1.848 4 4 0 1.81-1.305 3.403-3 3.866v.134zm-2 3.843a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1z"})]}),yae=null,Iae=t=>jsx(Icon,{...t,viewBox:"0 0 10 13",children:jsx("path",{d:"M2.81 5.188H8.5V12a.75.75 0 1 0 1.5 0V4.437a.75.75 0 0 0-.75-.75H2.81L4.969 1.53A.75.75 0 0 0 3.908.47L.47 3.907a.75.75 0 0 0 0 1.06l3.437 3.438a.75.75 0 0 0 1.06-1.06L2.812 5.188z"})}),Nae=null;function h2(t){return(0,n.jsxs)(is,{viewBox:"0 0 15 14",...t,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.666669 1.00005C1.03486 1.00005 1.33334 1.29853 1.33334 1.66672V5.00005H4.66667C5.03486 5.00005 5.33334 5.29853 5.33334 5.66672C5.33334 6.0349 5.03486 6.33338 4.66667 6.33338H0.666669C0.298479 6.33338 2.01494e-06 6.0349 2.01494e-06 5.66672V1.66672C2.01494e-06 1.29853 0.298479 1.00005 0.666669 1.00005Z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.07024 0.404628C8.50152 0.203255 9.95947 0.472493 11.2244 1.17177C12.4894 1.87106 13.4928 2.9625 14.0835 4.28165C14.6742 5.60081 14.8202 7.07621 14.4995 8.48555C14.1788 9.89489 13.4088 11.1618 12.3054 12.0955C11.202 13.0291 9.82511 13.5789 8.38212 13.6619C6.93913 13.745 5.50824 13.3568 4.30504 12.5559C3.10184 11.755 2.19151 10.5848 1.71122 9.22158C1.58887 8.87431 1.7712 8.49361 2.11847 8.37127C2.46574 8.24892 2.84644 8.43125 2.96879 8.77852C3.35302 9.86911 4.08128 10.8053 5.04384 11.446C6.0064 12.0867 7.15112 12.3972 8.30551 12.3308C9.4599 12.2644 10.5614 11.8245 11.4441 11.0776C12.3268 10.3307 12.9429 9.31717 13.1994 8.18969C13.456 7.06222 13.3392 5.8819 12.8666 4.82658C12.3941 3.77125 11.5913 2.8981 10.5794 2.33867C9.56739 1.77925 8.40102 1.56386 7.256 1.72496C6.11098 1.88606 5.04933 2.41492 4.23101 3.23185C4.22625 3.2366 4.22142 3.24128 4.21652 3.24588L1.12319 6.15255C0.854867 6.40468 0.432961 6.39155 0.180833 6.12323C-0.0712944 5.85491 -0.0581685 5.43301 0.210151 5.18088L3.29633 2.28094C4.31823 1.26392 5.64238 0.60552 7.07024 0.404628Z"})]})}function l4(t){return(0,n.jsx)(is,{viewBox:"0 0 28 28",...t,children:(0,n.jsx)("path",{d:"M0.602462 14.9446C-0.0244077 15.1759 -0.0720487 15.7437 0.0596979 16.4712C1.24525 23.0177 7.00549 28 13.9288 28C22.0136 28 28.5288 21.1924 27.9661 13.0292C27.4922 6.10378 21.8359 0.475002 14.8765 0.0329519C10.0788 -0.291229 5.72563 1.80126 2.97148 5.21978L1.63888 4.12944C1.07616 3.68748 0.217442 4.07044 0.217442 4.8072V9.84668C0.217442 10.4067 0.720862 10.8192 1.25405 10.7012L1.49079 10.6422L2.61619 10.4064L3.09007 10.318L6.22894 9.64027C6.93974 9.49288 7.17671 8.57935 6.58425 8.10777L4.98518 6.84067C7.32461 3.95266 11.0858 2.21377 15.2022 2.65593C20.4735 3.21591 24.738 7.45959 25.3303 12.7052C26.0709 19.5717 20.681 25.4068 13.9287 25.4068C8.30488 25.4068 3.62815 21.3639 2.64243 16.0542C2.51095 15.346 2.19718 14.5886 1.49075 14.7383L0.602462 14.9446Z",fill:"currentColor"})})}const jae=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="15",role:a="img",title:c,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm7-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"})]}),Aae=null;function d4(t){return(0,n.jsx)(is,{viewBox:"0 0 23 17",...t,children:(0,n.jsx)("path",{d:"M19.347 8.275l1.88 1.714a.727.727 0 0 0 .98-1.074l-3.225-2.941a.727.727 0 0 0-1.027.047l-2.94 3.224a.727.727 0 0 0 1.075.98l1.802-1.976a6.545 6.545 0 0 1-11.56 4.288.727.727 0 1 0-1.114.935 8 8 0 0 0 14.129-5.197zm-16.039.162l-1.79-1.633a.727.727 0 1 0-.98 1.074l3.223 2.94c.297.272.757.25 1.028-.046l2.94-3.224a.727.727 0 0 0-1.075-.98L4.768 8.636a6.545 6.545 0 0 1 11.555-4.482.727.727 0 1 0 1.114-.936A8 8 0 0 0 3.308 8.437z",fillRule:"nonzero"})})}const Rae=({width:t="16",height:e="16",className:s})=>jsx("svg",{"aria-hidden":"true",viewBox:"0 0 15.6 14.7",width:t,height:e,className:classNames("i i-search",s),focusable:"false",fill:"currentColor",children:jsx("path",{d:"M15.2,12.8l-2.9-2.9c0.5-1,0.9-2,0.9-3.2c0-3.6-2.9-6.5-6.5-6.5c-3.6,0-6.5,2.9-6.5,6.5s2.9,6.5,6.5,6.5c1.7,0,3.2-0.6,4.4-1.7l2.8,2.8c0.4,0.4,1,0.4,1.4,0C15.6,13.8,15.6,13.2,15.2,12.8z M6.7,11.2c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S9.1,11.2,6.7,11.2z"})}),Oae=null,Pae=t=>jsx(Icon,{...t,viewBox:"0 0 15 15",children:jsx("path",{d:"M13.32 2.844c.524 0 .874.35.874.875v9.625c0 .525-.35.875-.875.875H1.07c-.525 0-.875-.35-.875-.875V1.094c0-.525.35-.875.875-.875h3.5c.263 0 .438.087.613.262l2.362 2.363h5.775zM7.173 5.312c-.874 0-1.589.715-1.589 1.59v.396c0 .874.715 1.589 1.589 1.589s1.589-.715 1.589-1.589v-.397c0-.874-.715-1.589-1.59-1.589zm1.589 3.734a2.218 2.218 0 0 1-1.59.635 2.218 2.218 0 0 1-1.588-.635c-.715.238-1.191.754-1.191 1.43v1.191h5.56v-1.191c0-.676-.477-1.192-1.191-1.43z"})}),Mae=null,Dae=({title:t="Share Folder",desc:e="Share folder",width:s="14",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 14 14",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M2.74509 3.33986C2.74509 1.50367 4.24876 0 6.08495 0C7.92114 0 9.42481 1.50367 9.42481 3.33986V4.25489C9.42481 6.09108 7.92114 7.59475 6.08495 7.59475C4.24876 7.59475 2.74509 6.09108 2.74509 4.25489V3.33986ZM6.08495 1.18954C4.90154 1.18954 3.93463 2.15645 3.93463 3.33986V4.25489C3.93463 5.4383 4.90154 6.40521 6.08495 6.40521C7.26836 6.40521 8.23527 5.4383 8.23527 4.25489V3.33986C8.23527 2.15645 7.26836 1.18954 6.08495 1.18954Z"}),jsx("path",{d:"M0 13.4052C0 11.02 1.86968 9.1503 4.25489 9.1503H6.67972V10.3398H4.25489C2.92848 10.3398 1.79889 11.1591 1.38898 12.3889L1.24847 12.8104H6.67972V14H0V13.4052Z"}),jsx("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),kae=null,m2=t=>(0,n.jsx)(is,{viewBox:"0 0 16 16",...t,children:(0,n.jsx)("path",{d:"M14.1259 3.625C14.65 3.625 15 3.975 15 4.5V14.125C15 14.65 14.65 15 14.1249 15H1.87506C1.35003 15 1 14.65 1 14.125V1.875C1 1.35 1.35003 1 1.87506 1H5.37531C5.63833 1 5.81334 1.087 5.98836 1.262L8.35052 3.625H14.1259ZM7.9785 6.093C7.10444 6.093 6.38938 6.808 6.38938 7.683V8.079C6.38938 8.953 7.10444 9.668 7.9785 9.668C8.85256 9.668 9.56761 8.953 9.56761 8.079V7.682C9.56761 6.808 8.85256 6.093 7.9775 6.093H7.9785ZM9.56761 9.827C9.35786 10.0329 9.10928 10.1951 8.8363 10.3041C8.56332 10.4131 8.2714 10.4668 7.9775 10.462C7.68393 10.4665 7.39239 10.4127 7.11977 10.3037C6.84716 10.1947 6.5989 10.0327 6.38938 9.827C5.67433 10.065 5.1983 10.581 5.1983 11.257V12.448H10.7587V11.257C10.7587 10.581 10.2817 10.065 9.56761 9.827Z"})}),Bae=({title:t="Sortable",desc:e="Three horizontal lines stacked on top of each other",width:s="22",height:o="7",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 22 7",width:s,height:o,className:classNames("i i-sortable",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("rect",{x:"0",y:"0",width:"100%",height:"1",strokeWidth:"1"}),jsx("rect",{x:"0",y:"3",width:"100%",height:"1",strokeWidth:"1"}),jsx("rect",{x:"0",y:"6",width:"100%",height:"1",strokeWidth:"1"})]}),_ae=null,Uae=({title:t="Sorting Block",desc:e="Sorting Block",width:s="22",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 22 15",width:s,height:o,className:classNames("i i-sorting-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"nonzero",d:"M2.056 9.736v3.4h6.4v-3.4h-6.4zm-.8-1.8h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm11 0h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm.8 5.2h6.4v-3.4h-6.4v3.4zM6.772.064h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm.8 1.8v3.4h6.4v-3.4h-6.4z"})]}),Hae=null,Fae=({title:t="Spinner",desc:e="Hollow circle fading from transparent to gray",width:s="21",height:o="20",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 21 20",width:s,height:o,className:classNames("i i-spinner",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("defs",{children:jsxs("radialGradient",{id:"spinner-radial-gradient",cx:"89.364%",cy:"24.157%",r:"45.607%",fx:"89.364%",fy:"24.157%",gradientTransform:"rotate(69.991 .842 .205) scale(1 .69785)",children:[jsx("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),jsx("stop",{offset:"100%",stopColor:"#979797"})]})}),jsx("path",{fill:"url(#spinner-radial-gradient)",fillRule:"nonzero",d:"M74.5 3c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10a9.957 9.957 0 0 0-1.477-5.233 1 1 0 0 0-1.703 1.048A8 8 0 1 1 74.5 5a1 1 0 0 0 0-2z",transform:"rotate(-159 42.222 17.43)"})]}),zae=null,Vae=({title:t="SquareIcon",desc:e="Outline of a square",width:s="30",height:o="30",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 30 30",width:s,height:o,className:classNames("i i-square-outline",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"none",fillRule:"evenodd",children:[jsx("rect",{className:"overlay",width:"28",height:"28",x:"1",y:"2",fill:"none",fillRule:"evenodd",strokeWidth:"2",rx:"2",transform:"translate(0 -1)"}),jsx("rect",{width:"28",height:"28",x:"1",y:"2",fill:"none",fillRule:"evenodd",stroke:"#FFF",strokeOpacity:"0.63",strokeWidth:"2",rx:"2",transform:"translate(0 -1)"})]})]}),Wae=null,T0="overlay",Gae=({title:t="Stack",desc:e="Three horizontal bars stacked",width:s="30",height:o="30",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 30 30",width:s,height:o,className:classNames("i i-stack",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"none",fillRule:"evenodd",children:[jsx("rect",{className:T0,width:"30",height:"8.824",rx:"1"}),jsx("rect",{className:T0,width:"30",height:"8.824",y:"10.588",rx:"1"}),jsx("rect",{className:T0,width:"30",height:"8.824",y:"21.176",rx:"1"}),jsx("rect",{width:"30",height:"8.824",fill:"#FFF",fillOpacity:"0.63",rx:"1"}),jsx("rect",{width:"30",height:"8.824",y:"10.588",fill:"#FFF",fillOpacity:"0.4",rx:"1"})]})]}),Kae=null;function $ae(t){return jsx(Icon,{viewBox:"0 0 16 16",...t,children:jsx("path",{d:"M12.586 7H1C0.734784 7 0.48043 7.10535 0.292893 7.29289C0.105357 7.48042 0 7.73478 0 8C0 8.26521 0.105357 8.51957 0.292893 8.7071C0.48043 8.89464 0.734784 9 1 9H12.586L9.293 12.293C9.11084 12.4816 9.01005 12.7342 9.01233 12.9964C9.0146 13.2586 9.11977 13.5094 9.30518 13.6948C9.49059 13.8802 9.7414 13.9854 10.0036 13.9877C10.2658 13.9899 10.5184 13.8892 10.707 13.707L15.707 8.707C15.8945 8.51947 15.9998 8.26516 15.9998 8C15.9998 7.73483 15.8945 7.48052 15.707 7.293L10.707 2.293C10.5184 2.11084 10.2658 2.01004 10.0036 2.01232C9.7414 2.0146 9.49059 2.11977 9.30518 2.30518C9.11977 2.49058 9.0146 2.7414 9.01233 3.00359C9.01005 3.26579 9.11084 3.51839 9.293 3.707L12.586 7Z"})})}var y=i(61779),A=i.n(y);const u4=({title:t="Success",desc:e="Checkmark with a circle",width:s="51",height:o="51",className:r=null,focusable:a="false"})=>(0,n.jsxs)("svg",{viewBox:"0 0 51 51",width:s,height:o,className:M()("i",r),focusable:a,children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("desc",{children:e}),(0,n.jsx)("path",{d:"M25.06 50.57c-13.808 0-25-11.194-25-25 0-13.808 11.192-25 25-25 13.806 0 25 11.192 25 25 0 13.806-11.194 25-25 25zm0-2c12.702 0 23-10.298 23-23 0-12.703-10.298-23-23-23-12.703 0-23 10.297-23 23 0 12.702 10.297 23 23 23z"}),(0,n.jsx)("path",{d:"M17.659 25.622a1 1 0 0 0-1.318 1.505l6.2 5.425a1 1 0 0 0 1.367-.047l10.763-10.8a1 1 0 1 0-1.416-1.41L23.153 30.428l-5.494-4.807z"})]});u4.propTypes={title:A().string,desc:A().string,width:A().string,height:A().string,className:A().string,focusable:A().oneOf(["true","false"])};const Qae=null,Zae=({title:t="Text Block",desc:e="Text Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 17",width:s,height:o,className:classNames("i i-text-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M15.747.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm2 1h8v3h-1l-1-1h-1v6l1 1v1h-4v-1l1-1v-6h-1l-1 1h-1v-3z"})]}),Yae=null,Xae=({title:t="Text Slide",desc:e="Text Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 14",width:s,height:o,className:classNames("i i-text-slide",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fillRule:"evenodd",children:[jsx("path",{d:"M2 12h12V2H2v10zM16 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"}),jsx("path",{d:"M4 8h8v2H4z"})]})]}),Jae=null,qae=({title:t="TitleSort",desc:e="Letters A and Z next to a downard arrow",width:s="17",height:o="11",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 11",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M4.679 7.311l.755-.755a.8.8 0 0 1 1.132 1.131L4.444 9.808a.8.8 0 0 1-1.131 0L1.192 7.687a.8.8 0 1 1 1.131-1.131l.756.755V1.5a.8.8 0 1 1 1.6 0v5.811zM9.842 6C9.377 6 9 5.552 9 5s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842zM9.842 2C9.377 2 9 1.552 9 1s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842zM9.842 10C9.377 10 9 9.552 9 9s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842z"})]}),eie=null;function h4(t){return(0,n.jsxs)(is,{viewBox:"0 0 15 16",...t,children:[(0,n.jsx)("path",{d:"M8.69169169,1.65459164 C7.42998802,0.732912554 5.79691384,0.425404591 4.21164279,0.810071145 C2.01180284,1.34426767 0.429519485,3.32166778 0.449238273,5.51223961 C0.454317355,6.09008425 0.560978072,6.64511922 0.766531499,7.16185651 C0.884545458,7.45866364 1.19914976,7.66620336 1.53138146,7.66620336 C1.60756769,7.66620336 1.72289272,7.66620336 1.80027403,7.62903206 C2.21496611,7.48682371 2.41812939,7.05879065 2.26276924,6.65638325 C2.09725092,6.18836289 2.02345485,5.8315748 2.02345485,5.49928598 C2.02345485,4.55873965 2.44860388,3.66071502 3.19044858,3.03527987 C3.94334777,2.40027029 4.91763516,2.10993997 5.93524413,2.21694824 C6.90415367,2.31888769 7.79388929,2.81901053 8.37648985,3.58890684 C8.96058425,4.36077436 9.17300938,5.31962473 8.9590904,6.21962057 C8.94235931,6.29002074 8.92204298,6.35957612 8.89754388,6.42913149 C8.84436291,6.5969655 8.8709534,6.79042518 8.97074242,6.9599488 C9.07979329,7.14524206 9.26204269,7.2823816 9.47088259,7.33616734 C9.67285078,7.38770027 9.89573284,7.36517221 10.0812687,7.27308878 C10.2742738,7.17762614 10.4108115,7.01936655 10.4654863,6.83041248 C10.6062067,6.40012662 10.6773139,5.94111748 10.6773139,5.4666203 C10.6773139,3.96597018 9.95369412,2.57655233 8.69169169,1.65459164"}),(0,n.jsx)("path",{d:"M12.4033641,9.43002363 L7.46962051,8.60458861 L7.42312479,5.65704834 C7.42257778,4.87028142 6.91659487,4.17992696 6.16391111,3.93838024 C5.57177436,3.74839098 4.94490256,3.83320301 4.44493675,4.1709044 C3.94633846,4.50757465 3.64849231,5.04841246 3.64849231,5.61734909 L3.64849231,12.0692503 L3.27543248,11.4577787 C3.01177436,11.0154157 2.60233846,10.7096799 2.12288547,10.5967691 C1.65355214,10.4859205 1.14620171,10.5673813 0.72637265,10.8220752 C0.0398769231,11.2721719 -0.184396581,12.1996907 0.158577778,13.1957809 C0.165415385,13.210217 0.18237265,13.2532675 0.209176068,13.3208077 C0.319671795,13.5979291 0.578406838,14.2475532 0.952013675,15.0616455 L0.999603419,15.1523867 C1.20227009,15.608928 1.48534701,15.7290569 1.72739829,15.7290569 C1.84445812,15.7290569 1.95139829,15.7009581 2.03563761,15.6692503 C2.21204786,15.6022256 2.33922735,15.4880258 2.40322735,15.3387669 C2.47816752,15.1637293 2.46285128,14.9407433 2.36356923,14.7319356 C2.32992821,14.653826 1.5422359,12.8165757 1.50968889,12.7477465 C1.36828718,12.295072 1.41396239,11.9890784 1.49437265,11.9455124 C1.58845812,11.9011729 1.69403077,11.8869946 1.7730735,11.9009151 C1.9133812,11.9449968 1.98832137,12.0042879 2.05697094,12.1321504 L3.53963761,14.292666 C3.71905641,14.5633426 4.15146667,14.7654479 4.59946667,14.6061353 C4.93888547,14.4857487 5.12568889,14.2596692 5.12568889,13.9699162 L5.12568889,5.69416971 C5.12568889,5.5072739 5.23317607,5.33739205 5.39317607,5.27114071 C5.54469744,5.20927175 5.70797949,5.21984103 5.84117607,5.3018174 C5.97546667,5.38456713 6.05560342,5.52196778 6.05560342,5.66916434 L6.05560342,9.09129108 C6.05560342,9.4367261 6.34715897,9.7540623 6.69232137,9.78396563 L6.6942359,9.78396563 L12.1632274,10.6988528 C12.7868171,10.8042879 13.2397402,11.3141912 13.2397402,11.9112266 L13.2397402,15.0784017 C13.2397402,15.434406 13.5457915,15.72287 13.9235009,15.72287 C14.3009368,15.72287 14.6072615,15.434406 14.6072615,15.0784017 L14.6072615,11.9112266 C14.6072615,10.6893147 13.6809026,9.64579162 12.4033641,9.43002363"})]})}const tie=({title:t="Remove",desc:e="Trash can",width:s="10",height:o="13",className:r=null,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 10 13",width:s,height:o,className:classNames("i i-trash",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M9.28713712,12.0991694 C9.28713712,12.4960933 8.96564674,12.814808 8.57149855,12.814808 L1.42899128,12.814808 C1.03500637,12.814808 0.714169089,12.4960933 0.714169089,12.0991694 L0.714169089,4.9568254 L9.28713712,4.9568254 L9.28713712,12.0991694 L9.28713712,12.0991694 Z M10,3.33274903 L0,3.33274903 L0,2.62053925 C0,2.22508485 0.319367795,1.90571706 0.714169089,1.90571706 L2.85830911,1.90571706 L2.85830911,1.19220107 C2.85830911,0.798052883 3.17702381,0.4765625 3.5724782,0.4765625 L6.42948111,0.4765625 C6.82346602,0.4765625 7.1436502,0.798052883 7.1436502,1.19220107 L7.1436502,1.90571706 L9.28713712,1.90571706 C9.68046893,1.90571706 10,2.22524813 10,2.62053925 L10,3.33274903 L10,3.33274903 Z"})]}),sie=null,nie=({title:t="Trash Folder",desc:e="Solid trash can",width:s="16",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 17",width:s,height:o,className:classNames("i i-trashFolder",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M2.57 7.175v7.5a1.88 1.88 0 0 0 1.874 1.875h7.5a1.88 1.88 0 0 0 1.875-1.875v-7.5H2.57zM11.944 3.773V1.898c0-.562-.375-.937-.937-.937H5.382c-.563 0-.938.375-.938.937v1.875H.694v1.875h15V3.773h-3.75z"})]}),oie=null,rie=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="16",role:a="img",title:c,width:d="14"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.332031 4.00033C0.332031 3.63214 0.630508 3.33366 0.998698 3.33366H12.9987C13.3669 3.33366 13.6654 3.63214 13.6654 4.00033C13.6654 4.36852 13.3669 4.66699 12.9987 4.66699H0.998698C0.630508 4.66699 0.332031 4.36852 0.332031 4.00033Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66536 2.00033C5.48855 2.00033 5.31898 2.07056 5.19396 2.19559C5.06894 2.32061 4.9987 2.49018 4.9987 2.66699V3.33366H8.9987V2.66699C8.9987 2.49018 8.92846 2.32061 8.80344 2.19559C8.67841 2.07056 8.50884 2.00033 8.33203 2.00033H5.66536ZM10.332 3.33366V2.66699C10.332 2.13656 10.1213 1.62785 9.74624 1.25278C9.37117 0.877706 8.86246 0.666992 8.33203 0.666992H5.66536C5.13493 0.666992 4.62622 0.877706 4.25115 1.25278C3.87608 1.62785 3.66536 2.13656 3.66536 2.66699V3.33366H2.33203C1.96384 3.33366 1.66536 3.63214 1.66536 4.00033V13.3337C1.66536 13.8641 1.87608 14.3728 2.25115 14.7479C2.62622 15.1229 3.13493 15.3337 3.66536 15.3337H10.332C10.8625 15.3337 11.3712 15.1229 11.7462 14.7479C12.1213 14.3728 12.332 13.8641 12.332 13.3337V4.00033C12.332 3.63214 12.0336 3.33366 11.6654 3.33366H10.332ZM2.9987 4.66699V13.3337C2.9987 13.5105 3.06894 13.68 3.19396 13.8051C3.31898 13.9301 3.48855 14.0003 3.66536 14.0003H10.332C10.5088 14.0003 10.6784 13.9301 10.8034 13.8051C10.9285 13.68 10.9987 13.5105 10.9987 13.3337V4.66699H2.9987Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66536 6.66699C6.03355 6.66699 6.33203 6.96547 6.33203 7.33366V11.3337C6.33203 11.7018 6.03355 12.0003 5.66536 12.0003C5.29717 12.0003 4.9987 11.7018 4.9987 11.3337V7.33366C4.9987 6.96547 5.29717 6.66699 5.66536 6.66699Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33203 6.66699C8.70022 6.66699 8.9987 6.96547 8.9987 7.33366V11.3337C8.9987 11.7018 8.70022 12.0003 8.33203 12.0003C7.96384 12.0003 7.66536 11.7018 7.66536 11.3337V7.33366C7.66536 6.96547 7.96384 6.66699 8.33203 6.66699Z",fill:"currentColor"})]}),aie=null,iie=({title:t="Remove",desc:e="Trash can",width:s="13.3",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 13.3 16",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M1.2,4.9c0,0,0-1.2,0-1.2c0,0,10.9,0,10.9,0c0,0,0,1.2,0,1.2 M10.9,14.8 c0,0-8.5,0-8.5,0c0,0,0-8.6,0-8.6h8.5C10.9,6.2,10.9,14.8,10.9,14.8 M4.8,1.2c0,0,3.6,0,3.6,0c0,0,0,1.2,0,1.2h0H4.8 C4.8,2.5,4.8,1.2,4.8,1.2 M12.1,2.5H9.7V1.2C9.7,0.5,9.2,0,8.5,0H4.8C4.2,0,3.6,0.6,3.6,1.2v1.2H1.2C0.5,2.5,0,3,0,3.7v1.2 c0,0.7,0.5,1.2,1.2,1.2h0v8.6c0,0.7,0.5,1.2,1.2,1.2h8.5c0.7,0,1.2-0.6,1.2-1.2V6.2h0c0.7,0,1.2-0.6,1.2-1.2V3.7 C13.3,3,12.8,2.5,12.1,2.5"})]}),cie=null,lie=({title:t="Upload",desc:e="Upload icon",width:s="15",height:o="15",className:r="",focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 15 15",width:s,height:o,className:classNames("i",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("polygon",{points:"6.52941176 3.52941176 6.52941176 9.70588235 8.29411765 9.70588235 8.29411765 3.52941176 10.4117647 3.52941176 7.41176471 0 4.41176471 3.52941176"}),jsx("path",{d:"M14.0625,14.1176471 L0.9375,14.1176471 C0.375,14.1176471 0,13.7647059 0,13.2352941 L0,5.29411765 C0,4.76470588 0.375,4.41176471 0.9375,4.41176471 L3.75,4.41176471 L3.75,6.17647059 L1.875,6.17647059 L1.875,12.3529412 L13.125,12.3529412 L13.125,6.17647059 L11.25,6.17647059 L11.25,4.41176471 L14.0625,4.41176471 C14.625,4.41176471 15,4.76470588 15,5.29411765 L15,13.2352941 C15,13.7647059 14.625,14.1176471 14.0625,14.1176471"})]}),die=null,uie=({"aria-hidden":t,"aria-label":e,className:s,desc:o,height:r="14",role:a="img",title:c,width:d="14"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:d,xmlns:"http://www.w3.org/2000/svg",children:[c&&jsx("title",{children:c}),o&&jsx("desc",{children:o}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.00065 8.33301C1.36884 8.33301 1.66732 8.63148 1.66732 8.99967V11.6663C1.66732 11.8432 1.73756 12.0127 1.86258 12.1377C1.9876 12.2628 2.15717 12.333 2.33398 12.333H11.6673C11.8441 12.333 12.0137 12.2628 12.1387 12.1377C12.2637 12.0127 12.334 11.8432 12.334 11.6663V8.99967C12.334 8.63148 12.6325 8.33301 13.0007 8.33301C13.3688 8.33301 13.6673 8.63148 13.6673 8.99967V11.6663C13.6673 12.1968 13.4566 12.7055 13.0815 13.0806C12.7065 13.4556 12.1978 13.6663 11.6673 13.6663H2.33398C1.80355 13.6663 1.29484 13.4556 0.919771 13.0806C0.544698 12.7055 0.333984 12.1968 0.333984 11.6663V8.99967C0.333984 8.63148 0.632461 8.33301 1.00065 8.33301Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.52925 0.52827C6.7896 0.26792 7.21171 0.26792 7.47206 0.52827L10.8054 3.8616C11.0657 4.12195 11.0657 4.54406 10.8054 4.80441C10.545 5.06476 10.1229 5.06476 9.86258 4.80441L7.00065 1.94248L4.13872 4.80441C3.87837 5.06476 3.45626 5.06476 3.19591 4.80441C2.93556 4.54406 2.93556 4.12195 3.19591 3.8616L6.52925 0.52827Z",fill:"currentColor"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.00065 0.333008C7.36884 0.333008 7.66732 0.631485 7.66732 0.999674V8.99967C7.66732 9.36786 7.36884 9.66634 7.00065 9.66634C6.63246 9.66634 6.33398 9.36786 6.33398 8.99967V0.999674C6.33398 0.631485 6.63246 0.333008 7.00065 0.333008Z",fill:"currentColor"})]}),hie=null,mie=({title:t="UploadXml",desc:e="UploadXml",width:s="18",height:o="21",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 18 21",width:s,height:o,className:classNames("i i-uploadXml",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M15.88,1.2H1.6A.59.59,0,0,0,1,1.79V19.21a.59.59,0,0,0,.59.59H15.88a.59.59,0,0,0,.59-.59V1.79A.59.59,0,0,0,15.88,1.2Zm-.59,1.19V18.61H2.19V2.39Z"}),jsx("path",{d:"M5.14,10.13a.59.59,0,0,0,.84,0L8.13,8v6.48a.59.59,0,0,0,1.19,0V8l2.15,2.15a.59.59,0,0,0,.84-.84L9.14,6.12a.6.6,0,0,0-.84,0L5.14,9.29A.59.59,0,0,0,5.14,10.13Z"})]}),pie=null,fie=({title:t="Video Block",desc:e="Video Block",width:s="17",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 17 13",width:s,height:o,className:classNames("i i-video-block",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{fillRule:"evenodd",d:"M10.49 12.5h-9c-.6 0-1-.4-1-1v-10c0-.6.4-1 1-1h9c.6 0 1 .4 1 1V3l3.6-1.5c.7-.2 1.4.3 1.4 1v8c0 .7-.7 1.2-1.4.9l-3.6-1.4v1.5c0 .6-.4 1-1 1zm-8-2h7v-2c0-.7.7-1.2 1.4-.9l3.6 1.5v-5l-3.6 1.5c-.7.1-1.4-.4-1.4-1.1v-2h-7v8z"})]}),gie=null;function m4(t){return(0,n.jsx)(is,{viewBox:"0 0 16 12",...t,children:(0,n.jsx)("g",{transform:"translate(-1 -2)",children:(0,n.jsx)("path",{d:"M11,14 L2,14 C1.4,14 1,13.6 1,13 L1,3 C1,2.4 1.4,2 2,2 L11,2 C11.6,2 12,2.4 12,3 L12,4.5 L15.6,3 C16.3,2.8 17,3.3 17,4 L17,12 C17,12.7 16.3,13.2 15.6,12.9 L12,11.5 L12,13 C12,13.6 11.6,14 11,14 L11,14 L11,14 Z M3,12 L10,12 L10,10 C10,9.3 10.7,8.8 11.4,9.1 L15,10.6 L15,5.6 L11.4,7.1 C10.7,7.2 10,6.7 10,6 L10,4 L3,4 L3,12 L3,12 L3,12 Z"})})})}function vie(t){return jsxs(Icon,{...t,viewBox:"0 0 14 10",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6836 1.56433C13.8779 1.66431 14 1.8645 14 2.08301V7.91634C14 8.13485 13.8779 8.33504 13.6836 8.43502C13.4893 8.53501 13.2554 8.51802 13.0776 8.39102L8.99428 5.47435C8.84098 5.36485 8.75 5.18806 8.75 4.99967C8.75 4.81129 8.84098 4.63449 8.99428 4.525L13.0776 1.60833C13.2554 1.48132 13.4893 1.46434 13.6836 1.56433ZM10.3369 4.99967L12.8333 6.78281V3.21653L10.3369 4.99967Z"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 1.49967C1.42783 1.49967 1.16667 1.76084 1.16667 2.08301V7.91634C1.16667 8.23851 1.42783 8.49967 1.75 8.49967H8.16667C8.48883 8.49967 8.75 8.23851 8.75 7.91634V2.08301C8.75 1.76084 8.48883 1.49967 8.16667 1.49967H1.75ZM0 2.08301C0 1.11651 0.783502 0.333008 1.75 0.333008H8.16667C9.13317 0.333008 9.91667 1.11651 9.91667 2.08301V7.91634C9.91667 8.88284 9.13317 9.66634 8.16667 9.66634H1.75C0.783502 9.66634 0 8.88284 0 7.91634V2.08301Z"})]})}const Cie=({title:t="Visible",desc:e="Eye",width:s="16",height:o="12",className:r,focusable:a="false"})=>jsxs("svg",{viewBox:"0 0 16 12",width:s,height:o,className:classNames("i i-visible",r),focusable:a,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{children:[jsx("path",{d:"M8 2c2.84 0 5.036 2.835 5.818 4-.784 1.166-2.98 4-5.818 4-2.84 0-5.038-2.838-5.819-4.001C2.958 4.835 5.146 2 8.001 2m0 10c4.706 0 7.743-5.284 7.87-5.508a1 1 0 0 0 .001-.98C15.746 5.287 12.732 0 8 0 3.245 0 .251 5.289.126 5.514a.998.998 0 0 0 .002.975C.254 6.713 3.27 12 8 12"}),jsx("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),xie=null,p4=({"aria-hidden":t,"aria-label":e,className:s,desc:o="",height:r="20",role:a="img",title:c="",style:d,width:l="20"})=>(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:M()("i i-xMarkFilled",s),focusable:"false",height:r,role:a,style:d,viewBox:"0 0 20 20",width:l,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,n.jsx)("title",{children:c}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{d:"M10 9.08L6.904 5.986a.65.65 0 1 0-.92.92L9.082 10l-3.096 3.096a.65.65 0 0 0 .92.92L10 10.918l3.096 3.096a.65.65 0 0 0 .92-.92L10.918 10l3.096-3.096a.65.65 0 1 0-.92-.92L10 9.082zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"})]});var f4=i(40966),S0=i.n(f4),g4=i(65992),ha=i.n(g4),v4=i(78324),St=i.n(v4),C4=i(24308),x4=i.n(C4),E4=i(46832),ma=i.n(E4);const T4=St()(S0()({}),x4()(["first_name","last_name"]),ha()(" "),ma()),S4=({className:t,decorative:e,size:s,...o})=>{const r=jt()(["avatars","medium"],o),a=e?"":T4(o)||"Unknown User";return r?(0,n.jsx)("img",{alt:a,className:t||"user-avatar",src:r,style:{height:s,width:s}}):(0,n.jsx)(E0,{decorative:e,height:s,title:a,width:s})};var L4=i(8046);const q=(0,L4.setup)({el:"__",mod:"--",modValue:"-"}),b4=`${(0,de._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,Yl=q("cover");function y4(){const{certificateDownload:t,riseComCurrentUser:e}=Mt(),s=(0,ze.useLabelsMap)(),o=OC(),a=ni()?.quizPassed??!0;return!(o&&a&&!(0,de.Wk)())||window.viewType==="preview"?null:(0,n.jsxs)("div",{className:Yl("completed-info"),children:[(0,n.jsxs)("div",{className:Yl("completed-info-avatar"),children:[(0,n.jsx)(S4,{...e,decorative:!0}),(0,n.jsx)("img",{className:Yl("completed-info-trophy"),src:b4,alt:""})]}),(0,n.jsxs)("div",{className:Yl("completed-info-label"),children:[(0,n.jsx)("span",{"aria-hidden":"true",children:s?.coverCompleted||"Completed"}),(0,n.jsx)("span",{className:"visually-hidden",children:s?.a11yCoverCourseCompleted||"Course Completed"})]}),t&&(0,n.jsx)(nr,{})]})}var I4=i(19216),$n=i.n(I4);const L0=t=>{if(!t)return"";const e=$n()(t),s=$n()(),o=$n()(s).add(24,"hours");return e.isBefore(s)?"Overdue":e.isBefore(o)?`Due in ${s.to(e,!0)}`:`Due ${e.format("MMM D")}`},p2=t=>$n()(t).isSameOrBefore($n()().add(3,"d"),"days");function b0(t){return function({Default:s,className:o,...r}){const a=`brand--${t}`,c=o?`${o} ${a}`:a;return(0,n.jsx)(s,{...r,className:c})}}const Sie=b0("background"),Lie=b0("head"),ri=b0("ui"),y0=t=>t==="<p><br></p>"?"":t;var I0=i(46885);const N0="data-change-path",j0="data-l10n-id",f2=(t,e)=>{if(t)return e?["l10n","translations",e,t.getAttribute(j0)]:JSON.parse(t.getAttribute(N0))};let dr;const N4=()=>{const t=ai();t&&t.classList.add("selected")},Xl=()=>{ai()&&dr&&Oc(dr)},j4=(t,e)=>s=>{const o=document.elementsFromPoint(s.clientX,s.clientY),r=e?o.find(a=>a.getAttribute(j0)):o.find(a=>a.getAttribute(N0));r!=null&&(t&&dr!==r&&(dr=r,t(f2(r,e))),Oc(r))},A4=(t,e)=>s=>{s.stopPropagation(),s.preventDefault();const o=document.elementsFromPoint(s.clientX,s.clientY),r=e?o.find(a=>a.getAttribute(j0)):o.find(a=>a.getAttribute(N0));if(r){Oc(r),v2();const a=f2(r,e);a&&(t(a),N4())}},A0=()=>document.getElementById("target-container"),ai=()=>document.getElementById("target-highlight"),g2=()=>{if(A0())return;const e=document.createElement("div");e.classList.add("target-container"),e.id="target-container",document.body.appendChild(e);const s=document.createElement("div");s.classList.add("target-highlight"),s.id="target-highlight",e.appendChild(s)},v2=()=>{const t=ai();t&&t.classList.add("selected")},R4=({top:t,left:e,width:s,height:o})=>{const r=document.querySelector("[data-page=true]")?.getBoundingClientRect().width??window.innerWidth-20;return s<r&&(t=t-10,o=o+2*10,e=e-20,s=s+2*20),{top:t,left:e,width:s,height:o}},Oc=t=>{const{top:e,left:s,width:o,height:r}=R4(t.getBoundingClientRect()),a=ai();a&&(t!==dr&&a.classList.contains("selected")&&a.classList.remove("selected"),a.classList.add("active"),Object.assign(a.style,{top:`${e}px`,left:`${s}px`,width:`${o}px`,height:`${r}px`}),dr=t)},O4=()=>{window.removeEventListener("scroll",Xl,{capture:!0}),Jl()},Jl=()=>{ai()?.classList?.remove("active"),ai()?.classList?.remove("selected")};let ii,ql;const P4=({locale:t})=>({isActive:e},s)=>{const o=!!A0();if(e){if(ii)return ii;g2();const r=j4(s,t);let a;return ii=new Promise((c,d)=>{a=A4(c,t),ql=d,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",Jl,!0),window.addEventListener("scroll",Xl,!0)}).finally(()=>{ii=null,ql=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",Jl,!0),window.removeEventListener("scroll",Xl,!0)}),ii}else Jl(),A0()?.remove(),dr=null;return o&&ql!=null&&ql(new Error("cancelled")),Promise.resolve()},M4=t=>{let e=t.findIndex(s=>s==="items");return e===-1?t:t.slice(0,e+2)},C2=t=>{const e=(0,I0.Ce)(t);return e.type==="translation"||e.type==="caption"&&e.l10nId?document.querySelector(`[data-l10n-id='${e.l10nId}']`)??document.querySelector(`[data-l10n-id*='${e.l10nId}']`):document.querySelector(`[data-change-path='${JSON.stringify(M4(t))}']`)},D4=t=>{g2(),window.addEventListener("scroll",Xl,{capture:!0}),document.body.classList.add("target-mode");const e=C2(t);e&&Oc(e)},k4=t=>{if(!ii)return;const e=C2(t);e&&(dr!==e&&(dr=e),Oc(e),v2(),e.scrollIntoView({behavior:"smooth",block:"center"}))},w4=t=>["course",t],x2=(t,e)=>["lessons",{id:t},e],B4=(t,e)=>[...x2(t,"items"),{id:e}],ci=t=>JSON.stringify(w4(t)),E2=(t,e)=>JSON.stringify(x2(t,e)),_4=(t,e)=>JSON.stringify(B4(t,e)),bn={STATUS:"targetMode:status",TOGGLE:"targetMode:toggle",FOCUS:"targetMode:focus",CLEAR:"targetMode:clear",SELECTED:"targetMode:selected",HOVERED:"targetMode:hovered",TRANSLATION_HOVERED:"targetMode:translationHovered",TRANSLATION_HOVER_CLEAR:"targetMode:translationHoverClear"},Pc=(t,e)=>{const s={};for(let o=0;o<t.length;o++){const r=t[o];if(typeof r=="object"&&r.id){const a=t[o-1],c=a==="items"?e.shift():a.replace(/s$/,"");s[`${c??"item"}Id`]=r.id}}return s};var Me=i(86415),It=i(84728);function R0(t,e){const s=(0,m.useMemo)(()=>matchMedia(`(${t}: ${e*.0625}em)`),[t,e]),[o,r]=(0,m.useState)(s.matches);return(0,m.useEffect)(()=>{const a=s.addEventListener??s.addListener,c=s.removeEventListener??s.removeListener;return a.call(s,"change",d),()=>c.call(s,"change",d);function d(){r(s.matches)}},[s]),o}const U4="matches";function T2(t,e,s,o="withPxToEmMedia"){return r=>{function a(c){const d=R0(t,e);return(0,n.jsx)(r,{...c,[s??U4]:d})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function Xs(t){return R0("max-width",t-1)}function bie(t){return R0("min-width",t)}function O0(t,e,s){return T2("max-width",t-1,e,s)}function H4(t,e,s){return T2("min-width",t,e,s)}const F4=Xs.bind(null,1200),yie=Xs.bind(null,992),z4=Xs.bind(null,768),P0=Xs.bind(null,480),M0=q("cover");function V4(t,e,s){return t===1?e:s}function W4(){const t=(0,Me.v1)(),e=(0,Me.vU)(),s=V4(t,e?.coverLesson||"Lesson",e?.coverLessons||"Lessons");return(0,n.jsxs)("li",{className:M0("num-lessons"),role:"listitem",children:[(0,n.jsx)("span",{className:M0("num-lessons-value"),children:t}),"\xA0",(0,n.jsx)("span",{className:M0("num-lessons-units"),children:s})]})}const G4=36e5,D0=q("cover");function K4(t){return Math.round(10*t)/10}function S2(t,e,s){return t===1?e:s}function $4(){const{showTimeToComplete:t,timeToComplete:e}=(0,Me.DX)(),s=(0,Me.vU)();if(!t)return null;const o=e>=G4,r=o?K4($n().duration(e).asHours()):$n().duration(e).asMinutes(),a=o?S2(r,s?.coverHour||"Hour",s?.coverHours||"Hours"):S2(r,s?.coverMinute||"Minute",s?.coverMinutes||"Minutes");return(0,n.jsxs)("li",{className:D0("time-to-complete"),role:"listitem",children:[(0,n.jsx)("span",{className:D0("time-to-complete-value"),children:r}),"\xA0",(0,n.jsx)("span",{className:D0("time-to-complete-units"),children:a})]})}const k0=q("cover");function w0(){const t=(0,Me.vU)();return ye.BI?(0,n.jsxs)("section",{className:k0("course-length-section"),children:[(0,n.jsx)("h2",{className:k0("course-length-title"),children:t?.a11yCoverCourseLength||"Course Length"}),(0,n.jsxs)("ul",{className:k0("course-length-list"),role:"list",children:[(0,n.jsx)(W4,{}),(0,n.jsx)($4,{})]})]}):null}const Q4=q("cover"),Z4="MMMM D, YYYY";function L2({format:t=Z4}){const{publishedAt:e}=(0,Me.DX)(),s=(0,Me.vU)(),o=Q4("details-content-published-at");if(!e)return null;const r=$n()(e);return r.isValid()?(0,n.jsxs)("div",{className:o,children:[s?.coverPublished||"Published"," ",r.format(t)]}):null}var Y4=i(91382),ed=i.n(Y4);const b2=ed()(async()=>(await i.e("math").then(i.bind(i,70643))).browserAdaptor(),{promise:!0}),y2=ed()(async()=>{const t=await i.e("math").then(i.t.bind(i,79901,23));return new t.SVG({fontCache:"local"})},{promise:!0}),I2=ed()(async()=>{const[t,e,{RegisterHTMLHandler:s},{TeX:o},{AllPackages:r},{mathjax:a}]=await Promise.all([b2(),y2(),i.e("math").then(i.bind(i,20906)),i.e("math").then(i.t.bind(i,3847,23)),i.e("math").then(i.bind(i,7398)),i.e("math").then(i.bind(i,19036))]);s(t);const c=new o({packages:r});return a.document(document,{InputJax:c,OutputJax:e})},{promise:!0}),X4=ed()(async t=>{const e=new CSSStyleSheet;t.adoptedStyleSheets.push(e);const[s,o]=await Promise.all([y2(),I2()]),r=s.styleSheet(o);r instanceof HTMLStyleElement&&await e.replace(r.innerText)},{promise:!0});class J4 extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=X4(this.ownerDocument)}get longDescription(){return this.getAttribute("long-description")??null}set longDescription(e){e==null?this.removeAttribute("long-description"):this.setAttribute("long-description",e)}get shortDescription(){return this.getAttribute("short-description")??null}set shortDescription(e){e==null?this.removeAttribute("short-description"):this.setAttribute("short-description",e)}get tex(){return this.getAttribute("tex")??""}set tex(e){this.setAttribute("tex",e)}disconnectedCallback(){this._renderController?.abort()}attributeChangedCallback(e){e==="tex"?this._renderTex():this._renderAria()}async _renderTex(){this._renderController?.abort();const e=this._renderController=new AbortController,[s,o]=await Promise.all([I2(),b2(),this._ready]);if(e.signal.aborted)return;const{tex:r}=this,a=r.includes("begin{")?r:String.raw`\begin{align*}${r}\end{align*}`,c=s.convert(a),d=o.firstChild(c),l=document.evaluate("//@data-mjx-error",d,null,XPathResult.STRING_TYPE).stringValue;if(l.length>0){let u=l;if(l===String.raw`Missing \begin{align*} or extra \end{align*}`){const h=s.convert(r),p=o.firstChild(h);u=document.evaluate("//@data-mjx-error",p,null,XPathResult.STRING_TYPE).stringValue??"An error occured"}this.dispatchEvent(new q4("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:u}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(d);await this._renderAria()}async _renderAria(){if(await this._ready,this._renderController?.signal.aborted||this.firstElementChild==null)return;const e=[this.shortDescription,this.longDescription].filter(s=>s?.length>0).join(`

`);this.firstElementChild.ariaLabel=e.trim().length===0?null:e}}customElements.define("rise-math",J4);class q4 extends CustomEvent{}var Hs=i(61708),e9=i(46687),li=i.n(e9);const t9=document.implementation.createHTMLDocument();function N2(t){if(t==null)return{value:t};let e;return typeof t=="string"?(e=t9.createElement("div"),e.innerHTML=t):e=t,e.firstElementChild instanceof HTMLElement&&e.firstElementChild.dataset.editorId!=null?{editorId:e.firstElementChild.dataset.editorId,value:typeof t=="string"?e.firstElementChild.innerHTML:e.firstElementChild}:{value:t}}var xo=i(49345);const j2=(t="")=>t.split(".").slice(-2).join("."),A2=Se()(j2,ye._$),di=t=>{if(!t||s9(t))return!1;t.slice(0,2)==="//"&&(t=`https:${t}`);try{const{hostname:e}=new URL(t),s=j2(e);return s!==A2("ARTICULATE_DOMAIN")&&s!==A2("RISE_DOMAIN")}catch{return!1}},s9=t=>t?t.slice(0,7)==="mailto:":!1,n9=t=>t.includes("rise.articulate")&&t.includes("/author/details/");var ct=i(52706);const o9=({allowTabNavigation:t=!0,className:e="",externalLinksDisabled:s,id:o,ref:r,showExternalLinksModal:a,tagName:c="div",value:d})=>{const l=(0,Me.vU)(),u=(0,m.useCallback)(f=>{const g=f.target.closest(".fr-view a");g&&g.hasAttribute("data-external")&&a()},[a]),h=(0,It.QQ)(d),p=(0,m.useMemo)(()=>{const f=(0,xo.aj)(h),g=Array.prototype.concat(h9,m9,i9,a9,s?c9:[],t?d9:l9,u9(l?.a11yNoticeLinkNewTab));return r9(g,f)},[t,s,l,h]);return(0,n.jsx)("div",{"aria-hidden":t?void 0:!0,"data-l10n-id":(0,Pt.pP)(d),className:`${e} brand--linkColor`,onClickCapture:s?u:void 0,id:o,ref:r,children:(0,m.createElement)(c,{className:"fr-view rise-tiptap",dangerouslySetInnerHTML:(0,m.useMemo)(()=>({__html:p}),[p])})})};function r9(t,e){const s=document.createElement("div");s.innerHTML=e;for(const o of t)o(s);return s.innerHTML}function a9(t){for(const e of t.querySelectorAll("a")){e.setAttribute("target","_blank");const s=new Set((e.getAttribute("rel")??"").split(/\s+/));s.delete("opener"),s.add("noopener"),s.add("noreferrer"),e.setAttribute("rel",Array.from(s).join(" "))}}function i9(t){for(const e of t.querySelectorAll("table"))if(!e.parentElement.classList.contains("rise-table-wrap")){const s=document.createElement("div");s.className="rise-table-wrap",e.parentNode.replaceChild(s,e),s.appendChild(e)}}function c9(t){for(const e of t.querySelectorAll("a"))di(e.href)&&(e.removeAttribute("href"),e.removeAttribute("rel"),e.removeAttribute("target"),e.setAttribute("data-external",""),e.setAttribute("role","button"))}function l9(t){for(const e of t.querySelectorAll("a"))e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}function d9(t){for(const e of t.querySelectorAll("a"))e.removeAttribute("aria-hidden"),e.hasAttribute("data-external")?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}function u9(t="(opens in a new tab)"){return e=>{for(const s of e.querySelectorAll('a[target="_blank"]')){const o=document.createElement("span");o.className="visually-hidden-always",o.textContent=t,s.appendChild(o)}}}function h9(t){return N2(t).value}function m9(t){for(const e of t.querySelectorAll("rise-math")){const{shortDescription:s,longDescription:o}=e,r=e.querySelector('[slot="short-description"]'),a=e.querySelector('[slot="long-description"]');s==null&&r!=null&&(e.shortDescription=r.textContent),o==null&&a!=null&&(e.longDescription=a.textContent)}return t}const p9=li()({externalLinksDisabled:jt()(["course","externalLinksDisabled"]),courseColors:t=>{const{course:e}=t,{colorAccent:s}=e?.theme||{},o=(0,ct.WA)(s);return[...e?.theme?.colors||O.B4,s,o]}}),f9={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})},Nt=(0,Hs.Ls)(p9,f9)(o9),R2=q("cover");function g9(){const t=(0,Me.DX)(),e=F4(),s=(0,It.QQ)(t.description);if(!s)return null;const o=ci("description"),r=(0,_s.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:R2("details-content-section"),children:[e?(0,n.jsx)(w0,{}):(0,n.jsx)(L2,{}),(0,n.jsx)(Nt,{className:R2("details-content-description"),value:y0(s)},"text")]})})}function v9({Default:t,...e}){const{dueAt:s}=e,r=s&&p2(s)?"brand--background":"brand--color";return(0,n.jsx)(t,{...e,className:r})}var O2=i(9017),P2=i(47418);function Qn(t){const{to:e,children:s}=t,o=(0,ke.zy)(),r=(0,m.useMemo)(()=>(0,P2.B)(e,o),[o,e]);return(0,n.jsx)(O2.N_,{...t,to:r,children:s})}const C9=({children:t,disabled:e,onClick:s,to:o,...r},a)=>e?(0,n.jsx)("a",{"aria-disabled":"true",ref:a,role:"link",...r,children:t}):(0,n.jsx)(Qn,{onClick:s,ref:a,to:o,...r,children:t}),x9=(0,m.forwardRef)(C9),B0=(0,m.createContext)({});B0.displayName="LocalesContext";function E9({i18n:t,children:e}){const s=(0,m.useMemo)(()=>({i18n:t}),[t]);return(0,n.jsx)(B0.Provider,{value:s,children:e})}function T9(){return(0,m.useContext)(B0)}var Mc=i(77335);const S9=q("locale-switcher");function M2(){const t=(0,Hs.y4)(),{i18n:e}=T9(),{locale:s}=(0,Me.DX)(),o=(0,m.useCallback)(r=>{const a=r.target.value;t((0,Mc.EL)(a))},[t]);return e?.available==null||e.available.length<=1?null:(0,n.jsx)("select",{className:S9(),onChange:o,defaultValue:s,children:e.available.map(r=>(0,n.jsx)("option",{children:r},r))})}const D2=q("cover"),fn=Dt("CoverAction",()=>{const{trackingQuizId:t}=(0,Me.DX)(),e=window.viewType==="preview",s=(0,Me._z)(),o=(0,Me.MT)(),r=(0,Me.Sd)(),a=s?.id,c=(0,ye.Wk)()?r===100:(0,ye.As)(),d=o!=null,l=d?o:a,u=!e&&ye.BI&&(c||!d&&!t),{courseCTALabel:h}=(0,Me.cN)({isCourseComplete:c,percentCourseComplete:r}),p=M()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":u});return h?(0,n.jsxs)("div",{className:D2("header-content-action-wrapper"),children:[(0,n.jsx)(x9,{className:p,to:(0,_t.p1)(l),children:(0,n.jsx)("span",{className:D2("header-content-action-link-text"),children:h})}),(0,n.jsx)(M2,{})]}):(0,n.jsx)(M2,{})});var L9=i(312),ot=i.n(L9),rs=i(37322);const Dc=ot()("partner-content-course-author__"),b9=({partnerContentAuthors:t,darkText:e,isImage:s,learn:o,lesson:r,isOnePage:a,selectedContentId:c})=>{const d=qe()(Ue()("id",c),t),l=jt()(["data","authors"],d),h=(r?l:t).filter(C=>C.name),p=M()(Dc("author-container"),{[Dc("author-container-padding-top")]:e}),f=M()({[Dc("gray-text")]:!o&&!a}),g=M()(Dc("author-image")),v=C=>`url(${(0,rs.ny)({width:"76",height:"76",imageKey:C.image})})`;return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,n.jsx)("ol",{className:p,role:"list",children:h.map(C=>(0,n.jsxs)("li",{className:Dc("author"),role:"listitem",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:g,disabled:s,style:{backgroundImage:v(C)}}),(0,n.jsx)("span",{className:f,children:C.name})]},C.name))})]})},ui=q("cover"),y9=()=>{const t=(0,Me.UG)();if(t==null)return null;const{avatar:e,authorName:s,title:o}=t;return(0,n.jsxs)("div",{className:ui("author-with-title"),children:[(0,n.jsx)(k2,{avatar:e}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:ui("author-name"),children:s}),(0,n.jsx)("div",{className:ui("author-title"),children:o})]})]})},k2=({avatar:t})=>{const e=ui("header-content-authors-avatar");return t?(0,n.jsx)("div",{className:e,style:{backgroundImage:`url(${(0,ye.o1)(t)})`}}):(0,n.jsx)("div",{className:e,children:(0,n.jsx)(E0,{decorative:!0})})},Bo=Dt("CoverAuthors",({className:t})=>{const{color:e,partnerContentId:s,selectedAuthorId:o,theme:r,themeId:a}=(0,Me.DX)(),{accentContrast:c,coverPageType:d}=r??{},{authorName:l,avatar:u}=(0,Me.UG)()??{},h=(0,Me.vU)(),p=(0,Me.hM)(),f=!!s&&!!p,v=Xs(768)&&(0,At.yL)(a,d),C=d===O.BL.LEFT_OVERLAY||d===O.BL.CENTERED_OVERLAY||v;if(o==="none")return null;const E=l||"Unknown User",L=ui("header-content-authors").mix(t),x=ui("header-content-authors-name");return f?(0,n.jsx)("div",{className:L,children:(0,n.jsx)(b9,{accentContrast:c,color:e,isImage:C,learn:!0,partnerContentAuthors:p})}):(0,n.jsxs)("div",{className:L,children:[(0,n.jsx)(k2,{avatar:u,isImage:C}),(0,n.jsxs)("div",{className:x,children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:h?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:E})]})]})}),I9=q("cover"),Zn=Dt("CoverContentNoImage",({children:t})=>{const e=I9("header-content");return(0,n.jsx)("div",{className:e,children:t})});var gn=i(77541);const pa=t=>{const e=(0,Me.DX)(),s=(0,It.gY)();return N9(e,t,s)},N9=(t,e,s)=>{const{media:o,alpha:r}=e==="coverImage"?(0,gn.dM)(t,s):(0,gn.LI)(t,s),a="image"in o?(0,gn.I6)(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:(0,gn.Vx)(a)}},j9=q("cover"),_0=()=>{const t=(0,Me.dT)(),{alpha:e,ariaLabel:s,media:o,role:r}=pa("coverImage"),a=j9("header-image"),c=(0,At.b9)({alpha:e,color:t,media:o});return(0,n.jsx)("div",{className:a,style:c,"aria-label":s,role:r})},A9=q("cover"),U0=({children:t})=>{const e=(0,Me.dT)(),s=`overlay-${e.toLowerCase()}`,o=A9("header-content",{[s]:!!e});return(0,n.jsxs)("div",{className:o,children:[t,(0,n.jsx)(_0,{})]})},R9=q("cover"),kc=({hasOverlay:t=!1})=>{const{alpha:e,ariaLabel:s,media:o,role:r}=pa("coverImage"),a=(0,At.b9)({alpha:e,hasOverlay:t,media:o}),c=R9("header-graphic",{"dot-com":ye.BI});return(0,n.jsx)("div",{className:c,style:a,"aria-label":s,role:r})},O9=q("cover");function vn({children:t}){const e=!!(0,Me.Bd)(),s=O9("header-content-info",{rbc:e,"rise-com":ye.BI});return(0,n.jsx)("div",{className:s,children:t})}var P9=i(59288);function M9(t,e){const s=(0,gn.sg)(t.src),o=t.width&&t.height&&!s,r=o?"async":void 0,a=o?"lazy":void 0,c=o?t.width:void 0,d=o?t.height:void 0;return(0,n.jsx)("img",{...t,decoding:r,height:d,loading:a,ref:e,width:c})}const w2=P9.forwardRef(M9),D9={ImageEagerOrLazy:w2},B2=Object.assign((0,m.createContext)(D9),{displayName:"BundleContext"});function k9({children:t,...e}){return(0,n.jsx)(B2.Provider,{value:e,children:t})}function w9(){return null}function hi(t){function e(s,o){const a=(0,m.useContext)(B2)[t]??w9;return(0,n.jsx)(a,{ref:o,...s})}return e.displayName=`BundleComponent(${t})`,(0,m.forwardRef)(e)}const tn=hi("CoverProgress"),B9=q("cover"),Cn=Dt("CoverTitle",()=>{const t=(0,Me.DX)(),e=(0,It.QQ)(t.title),s=B9("header-content-title"),o=ci("title"),r=(0,_s.uW)(t.title)?{"data-l10n-id":t.title.l10nId}:{"data-change-path":o};return(0,n.jsx)("h1",{...r,className:s,tabIndex:-1,children:e})}),_9={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function _2(){const{coverPageType:t}=(0,Me.DX)();return z4()?_9[t]??t:t}const U9=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U0,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})})}),H9=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})})}),F9=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(kc,{}),(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})})]}),z9=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)(kc,{})]});function V9(){switch(_2()){default:case O.BL.LEFT_OVERLAY:case O.BL.CENTERED_OVERLAY:return(0,n.jsx)(U9,{});case O.BL.LEFT:case O.BL.CENTERED:return(0,n.jsx)(H9,{});case O.BL.SPLIT_LEFT_IMAGE:case O.BL.TWO_THIRDS_LEFT_IMAGE:return(0,n.jsx)(z9,{});case O.BL.SPLIT_RIGHT_IMAGE:case O.BL.TWO_THIRDS_RIGHT_IMAGE:return(0,n.jsx)(F9,{})}}function W9(){return(0,n.jsx)("header",{className:"cover__header",children:(0,n.jsx)(V9,{})})}var G9=i(1063),wc=i.n(G9);const K9=q("cover");function $9({children:t}){const e=_2(),s=(0,m.useMemo)(()=>wc()(e),[e]),o=K9({layout:s});return(0,n.jsx)("div",{id:"cover",className:o,children:t})}var Q9=i(56401),wt=i.n(Q9),Yn=i(33530),Z9=i(71006),td=i.n(Z9);const kr=({id:t="portal",childType:e="other",attributes:s}={})=>{const o=document.querySelector('dialog[open][aria-modal="true"]');let r,a;if(o!=null&&e!=="dialog"?(t=`${t}-dialog`,r=o.querySelector(`#${t}`),a=o):(r=document.querySelector(`#${t}`),a=document.body),r==null&&(r=document.createElement("div"),r.setAttribute("id",t),a.appendChild(r)),s)for(const[c,d]of Object.entries(s))r.setAttribute(c,d);return r};var U2=i(59288);class Y9 extends U2.Component{static propTypes={id:A().any.isRequired,lessonProgress:A().object.isRequired,type:A().string.isRequired,items:A().array};refProgressWrap=U2.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=kr()}componentDidMount(){this.timeoutScroll=setTimeout(()=>{document.getElementById("page-wrap")?.addEventListener("scroll",this.onScroll)},10)}componentWillUnmount(){clearTimeout(this.timeoutScroll),document.getElementById("page-wrap")?.removeEventListener("scroll",this.onScroll)}onScroll=()=>{const e=document.getElementsByClassName("page-wrap")[0],s=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const c=r.getBoundingClientRect().top+o,d=s>c;this.state.isSticky!==d&&this.setState({isSticky:d})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:s}=this.props,o=tt()(-1,"activeIndex",s),r=us()(e);return o===-1?0:Zt()(o)===r?100:td()("%","",jt()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:s}=this.props,o=tt()(0,"activeIndex",s),r=us()(e);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return tt()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return tt()(0,"percentComplete",e)}}render(){const{type:e,items:s}=this.props,{isSticky:o}=this.state,r=M()("progress-wrap",{}),a=M()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),c=M()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),d=this.progressValue(),l=e==="timeline"&&s&&s.map(h=>{const p=M()("progress__marker",{"progress__marker--active brand--background":parseInt(d)>=parseInt(h.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:p,style:{left:h.linePosition}},h.id)}),u=(0,n.jsx)("div",{className:r,children:(0,n.jsx)("div",{className:c,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${d}% * var(--dir-x)),0px,0px)`}}),l]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[u,(0,Yn.createPortal)((0,n.jsx)("div",{className:a,children:u}),this.portal)]})}}const H0=q("lesson-header"),_o=Dt("LessonHeaderAuthor",({avatar:t,authorName:e,className:s=""})=>{const o=(0,Me.vU)();return(0,n.jsxs)("div",{className:`lesson-header__author ${s}`,children:[(0,n.jsx)("img",{className:"lesson-header__author-img",src:(0,ye.o1)(t),alt:""}),(0,n.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,n.jsx)("span",{className:"lesson-header__author-name",children:e})]})}),Bc=({showPartnerContent:t=!1})=>(0,n.jsx)("div",{className:H0("author",{"partner-content":t})}),Uo=()=>(0,n.jsx)("div",{className:"lesson-header__counter"}),Ho=({lessonName:t,lessonPreposition:e,totalLessons:s,lessonNumber:o,showPartnerContent:r})=>{const{lmsOptions:a}=(0,Me.DX)();return(0,n.jsx)("div",{className:H0("counter",{"partner-content":r}),children:(0,n.jsx)("div",{className:H0("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${t} ${o} ${e} ${s}`})})},fa=({description:t})=>(0,n.jsx)(Nt,{className:"lesson-header__description",value:t}),X9=({children:t})=>(0,n.jsx)("div",{className:"lesson-header__grouped-row",children:t}),J9=({ariaLabel:t,imgRole:e,children:s,sectionStyles:o,topWrapClassName:r})=>(0,n.jsxs)("header",{className:"page__header",children:[(0,n.jsx)("div",{className:"page__header-limit",children:(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)("div",{className:"lesson-header",children:(0,n.jsx)("div",{className:r,children:s})})})})})}),(0,n.jsx)("div",{className:"page__header-bg","aria-label":t,role:e,style:o})]}),Fo=({title:t,id:e})=>{const s=E2(e,"title");return(0,n.jsx)("h1",{className:"lesson-header__title","data-change-path":s,tabIndex:-1,children:(0,n.jsx)(Nt,{value:t})})},q9=t=>{const{authorName:e,avatar:s,color:o,description:r,labels:a,lessonHeaderStyle:c,lessonId:d,lessonNumber:l,partnerContentAuthors:u,showAuthor:h,showLessonCount:p,title:f,totalLessons:g}=t,{lessonName:v,lessonPreposition:C}=a,E=S=>`url(${(0,rs.ny)({width:"76",height:"76",imageKey:S.image})})`,L=c===O.xj.TINT?{color:o}:null,x=s&&e&&h&&!u;return(0,n.jsxs)("div",{className:"lesson-header",children:[(0,n.jsxs)("div",{className:"lesson-header__top-wrap",style:L,children:[(0,n.jsx)(Fo,{title:f,id:d}),u&&(0,n.jsx)("div",{className:"lesson-header__partner-content",children:u.map(S=>(0,n.jsxs)("div",{className:"lesson-header__partner-content-author",children:[(0,n.jsx)("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:E(S)}}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:a?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:S.name})]})]},S.name))}),(0,n.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[x?(0,n.jsx)(_o,{avatar:s,authorName:e}):(0,n.jsx)(Bc,{}),p?(0,n.jsx)(Ho,{lessonName:v,lessonNumber:l,lessonPreposition:C,totalLessons:g}):(0,n.jsx)(Uo,{})]})]}),r&&(0,n.jsx)(fa,{description:r})]})};class wie extends ie().Component{static propTypes={authorName:A().string,avatar:A().string,description:A().string,showLessonCount:A().bool,steps:A().number,title:A().string.isRequired,type:A().string.isRequired};render(){const{children:e}=this.props;return(0,n.jsx)("section",{className:"page__header",children:(0,n.jsxs)("div",{className:"page__header-limit",children:[(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)(q9,{...this.props})})})}),ie().Children.map(e,s=>s&&s.type!==Y9?null:s)]})})}}const wr=q("lesson-header"),H2=t=>`url(${(0,rs.ny)({width:"76",height:"76",imageKey:t?.image})})`,F0=({partnerContentAuthors:t})=>{const e=t.map(o=>o.name).join(", "),s=t.length===1;return(0,n.jsxs)("div",{className:wr("partner-content",{mobile:!0}),children:[(0,n.jsx)("div",{className:wr("partner-content-author",{single:s}),children:t.map(o=>(0,n.jsx)("div",{className:wr("partner-content-author-img",{single:s}),style:{backgroundImage:H2(o)}},o.name))}),(0,n.jsx)("span",{"aria-hidden":"true",className:wr("author-name"),children:e})]})},mi=({partnerContentAuthors:t})=>{const e=(0,Me.vU)();return(0,n.jsx)("div",{className:wr("partner-content"),children:t.map(s=>(0,n.jsxs)("div",{className:wr("partner-content-author"),children:[(0,n.jsx)("div",{className:wr("partner-content-author-img"),style:{backgroundImage:H2(s)}}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{className:"visually-hidden",children:[e?.a11yAuthorPrefix," ",s.name]}),(0,n.jsx)("span",{"aria-hidden":"true",className:wr("author-name"),tag:"span",children:s.name})]})]},s.name))})},pi=q("lesson-header"),e8=({authorName:t,avatar:e,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:h,lessonId:p})=>{const f=!wt()(c)&&d,g=e&&t&&d&&!f,v=g||f||l,C=l&&(g||f);return(0,n.jsxs)("div",{className:pi("content"),children:[v&&(0,n.jsxs)("div",{className:pi("info-row"),children:[g?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(Bc,{}),f&&(0,n.jsx)(mi,{partnerContentAuthors:c}),C&&(0,n.jsx)("span",{"aria-hidden":"true",className:pi("info-row--divider"),children:"|"}),l?(0,n.jsx)(Ho,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Uo,{})]}),(0,n.jsxs)("div",{className:pi("title-wrapper",{"no-info":!v}),children:[(0,n.jsx)(Fo,{title:u,id:p}),s&&(0,n.jsx)(fa,{description:s})]})]})},t8=({authorName:t,avatar:e,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:h,lessonId:p})=>{const f=!wt()(c),g=(0,m.useMemo)(()=>e&&t&&d&&!f,[e,t,d,f]);return(0,n.jsxs)("div",{className:pi("content"),children:[l?(0,n.jsx)(Ho,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Uo,{}),g&&(0,n.jsx)(_o,{avatar:e,authorName:t}),d&&f&&(0,n.jsx)(F0,{partnerContentAuthors:c}),(0,n.jsx)(Fo,{title:u,id:p}),s&&(0,n.jsx)(fa,{description:s})]})},s8=({authorName:t,avatar:e,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:h,lessonId:p})=>{const f=!wt()(c),g=(0,m.useMemo)(()=>e&&t&&d&&!f,[e,t,d,f]);return(0,n.jsxs)("div",{className:pi("content"),children:[l?(0,n.jsx)(Ho,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Uo,{}),(0,n.jsx)(Fo,{title:u,id:p}),g?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(Bc,{showPartnerContent:f}),d&&f&&(0,n.jsx)(mi,{partnerContentAuthors:c}),s&&(0,n.jsx)(fa,{description:s})]})},n8=t=>{const e=P0();return t.lessonHeaderSize===O.OX.SMALL&&!e?(0,n.jsx)(e8,{...t}):e?(0,n.jsx)(t8,{...t}):(0,n.jsx)(s8,{...t})},fi=t=>t===O.AY.FLOATING||t===O.AY.FLOATING_FULL;function ga(){const t=(0,Hs.LY)(({course:{buttonNavigationStyle:s}})=>s);return Xs(480)&&t===O.AY.FLOATING?O.AY.FLOATING_FULL:t}const o8=({className:t},e)=>(0,n.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 15",height:"15",width:"16",ref:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M2.34315 7.34315L8 13L13.6569 7.34315",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{x:"7",y:"1",width:"2",height:"12",rx:"0.999999",fill:"currentColor"})]}),z0=(0,m.forwardRef)(o8),r8=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",ref:e,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 13.6569L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),F2=(0,m.forwardRef)(r8),gi=hi("LessonNav"),z2=q("lesson-nav");function a8({allowTooltip:t,courseFinishLabel:e,onFocus:s,nextLesson:o,restrictionData:r,restrictionType:a},c){const d=o?.id,l=ga(),u=fi(l),h=u?z0:F2;return(0,n.jsxs)(gi,{allowTooltip:t,direction:"next",finish:!0,isFloating:u,navLessonId:d,onFocus:s,ref:c,restrictionData:r,restrictionType:a,children:[(0,n.jsx)("span",{className:z2("link-text").mix("brand--ui"),children:e}),(0,n.jsx)(h,{className:z2("link-icon")})]})}const i8=(0,m.forwardRef)(a8),V2=q("lesson-nav");function c8({allowTooltip:t,lessonNameLabel:e,nextLesson:s,nextLessonNumber:o,onFocus:r,restrictionData:a,restrictionType:c},d){const l=s?.id,u=ga(),h=fi(u),f=(0,At.GG)(s)&&l,g=(0,It.QQ)(s?.title)||"",v=h?z0:F2,C=f?`${e} ${o} - `:"",E=h&&f?`${e} ${o}`:`${C}${g}`;return(0,n.jsxs)(gi,{allowTooltip:t,direction:"next",isFloating:h,navLessonId:l,onFocus:r,ref:d,restrictionData:a,restrictionType:c,children:[(0,n.jsx)("span",{className:V2("link-text").mix("brand--ui"),children:E}),(0,n.jsx)(v,{className:V2("link-icon")})]})}const l8=(0,m.forwardRef)(c8),d8=({className:t},e)=>(0,n.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"15",role:"img",ref:e,viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M13.6569 7.65685L8 2L2.34315 7.65686",rule:"stroke",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{fill:"currentColor",x:"9",y:"14",width:"2",height:"12",rx:"0.999999",transform:"rotate(180 9 14)"})]}),W2=(0,m.forwardRef)(d8),u8=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",ref:e,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 2.34315L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),h8=(0,m.forwardRef)(u8),sd=q("lesson-nav"),m8=({allowTooltip:t,className:e,courseHomeLabel:s,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:c},d)=>{const l=a?.id,u=ga(),h=fi(u),f=(0,At.GG)(a)&&l,g=(0,It.QQ)(a?.title)||s,v=h?W2:h8,C=f?`${o} ${c} - ${g}`:g,E=f&&h?`${o} ${c}`:C;return(0,n.jsx)(gi,{allowTooltip:t,className:e,direction:"previous",isFloating:h,navLessonId:l,onFocus:r,ref:d,children:h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:sd("link-text").mix("brand--ui"),children:E}),(0,n.jsx)(v,{className:sd("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v,{className:sd("link-icon")}),(0,n.jsx)("span",{className:sd("link-text").mix("brand--ui"),children:E})]})})},p8=(0,m.forwardRef)(m8);var as=i(91159),bs=i(82684),G2=i(15045);function f8({className:t,cx:e,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:c,strokeWidth:d,value:l=0}){const u=(0,m.useRef)(null),h=`mask-${(0,G2.A)()}`,p=(100-l)/100*(2*a);return(0,bs.A)("transitionend",r,u.current),(0,n.jsxs)("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[(0,n.jsx)("defs",{children:(0,n.jsx)("mask",{id:h,children:(0,n.jsx)("rect",{x:"0",y:l===0?100:p,width:2.3*a,height:2.3*a,fill:"white"})})}),(0,n.jsx)("circle",{className:t,cx:e,cy:s,fill:"none",r:a,ref:u,mask:`url(#${h})`,strokeLinecap:c,strokeWidth:d})]})}const V0=f8;function g8({className:t,cx:e,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:c,strokeWidth:d,transform:l,value:u=0}){const h=(0,m.useRef)(null),p=Math.PI*(Number(o)-Number(d)),f=p*(100-u)/100;return(0,bs.A)("transitionend",r,h.current),(0,n.jsx)("circle",{className:t,cx:e,cy:s,fill:"transparent",r:a,ref:h,strokeDasharray:p,strokeDashoffset:f,strokeLinecap:c,strokeWidth:d,transform:l})}const K2=g8,{COMPACT:v8,COVER:C8,OVERLAY:x8,SIDEBAR:E8}=$e.by,_c=q("progress-circle");function T8({"aria-hidden":t,"aria-label":e,isCurrent:s,isFailed:o,isPassed:r,scope:a,value:c}){const[d,l]=(0,m.useState)(c===100),u=(0,as.A)(c),{theme:{progressIndicatorStyle:h=O.Y2.THEME_DEFAULT}}=(0,Me.DX)(),p=a===C8,f=a===x8,g=h===O.Y2.THEME_DEFAULT,v=h===O.Y2.CIRCULAR_FILL,C=h===O.Y2.INCOMPLETE_COMPLETE,E=_c({compact:a===v8,cover:p,current:s,sidebar:a===E8,overlay:f}),L=_c("track",{"circular-fill":!f&&v,"incomplete-complete":p&&C}),x=_c("runner",{"circular-fill":v,done:d,failed:o,passed:r,unstarted:c===0}),S=_c("pass",{done:d,visible:r}),b=_c("fail",{done:d,visible:o}),N=(0,m.useMemo)(()=>v||c===100?c:0,[v,c]);return(0,m.useEffect)(()=>{if(c!==100&&u===100)l(!1);else if(c===100&&!d&&!C){const I=setTimeout(()=>l(!0),300);return clearTimeout.bind(null,I)}else c===100&&!d&&C&&l(!0)},[d,C,u,c]),(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:E,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:L,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),g?(0,n.jsx)(K2,{className:x,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:c}):(0,n.jsx)(V0,{className:x,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,strokeLinecap:"round",value:N}),(0,n.jsx)("path",{className:S,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className:b,clipRule:"evenodd",d:"M9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303Z",fillRule:"evenodd"})]})}const nd=(0,m.createContext)(null);nd.displayName="CourseNavContext";function S8(t){const{children:e,isCourseNavOpen:s}=t;return(0,n.jsx)(nd.Provider,{value:{isCourseNavOpen:s},children:e})}const Uie=nd.Consumer;function L8(){return(0,m.useContext)(nd)}function b8(t){function e(s){const o=L8();return(0,n.jsx)(t,{...s,...o})}return Object.assign(e,{displayName:`withCourseNavContext(${t.displayName||t.name})`})}const W0=960;function Uc(){return Xs(W0)}const Hie=O0(W0,"isMobile","Mobile");function y8(){const t=(0,Me.DX)(),e=Uc(),s=(0,Me.SQ)();return(0,At.L3)({course:t,isMobile:e,search:s})}function I8(t){function e(s){const o=y8();return(0,n.jsx)(t,{...s,sidebarAvailable:o})}return e.displayName=`withNavSidebarAvailable(${t.displayName||t.name})`,e}function N8(){const t=(0,Me.DX)(),e=Uc();return(0,At.IO)({course:t,isMobile:e})}var $2=i(59288);class j8 extends $2.Component{static propTypes={id:A().any.isRequired,lessonProgress:A().object.isRequired,navigationType:A().string,type:A().string.isRequired,items:A().array};refProgressWrap=$2.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=kr()}componentDidMount(){this.timeoutScroll=setTimeout(()=>{document.getElementById("page-wrap")?.addEventListener("scroll",this.onScroll)},10)}componentWillUnmount(){clearTimeout(this.timeoutScroll),document.getElementById("page-wrap")?.removeEventListener("scroll",this.onScroll)}onScroll=()=>{const e=document.getElementsByClassName("page-wrap")[0],s=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const c=r.getBoundingClientRect().top+o,d=s>c&&s>0;this.state.isSticky!==d&&this.setState({isSticky:d})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:s}=this.props,o=tt()(-1,"activeIndex",s),r=us()(e);return o===-1?0:Zt()(o)===r?100:td()("%","",jt()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:s}=this.props,o=tt()(0,"activeIndex",s),r=us()(e);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return tt()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return tt()(0,"percentComplete",e)}}render(){const{type:e,items:s,sidebarAvailable:o}=this.props,{isSticky:r}=this.state,a=M()("progress-wrap",{}),c=this.props.isCourseNavOpen,d=this.props.isCourseNavOpen&&this.props.isMobile,l=M()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":r&&!d,"lesson--open":c&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&d&&!this.isLessonPreview()}),u=M()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),h=this.progressValue(),p=e==="timeline"&&s&&s.map(g=>{const v=M()("progress__marker",{"progress__marker--active brand--background":parseInt(h)>=parseInt(g.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:v,style:{left:g.linePosition}},g.id)}),f=(0,n.jsx)("div",{className:a,children:(0,n.jsx)("div",{className:u,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${h}% * var(--dir-x)),0px,0px)`}}),p]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[f,(0,Yn.createPortal)((0,n.jsx)("div",{className:l,"aria-hidden":"true",children:f}),this.portal)]})}}const A8=Se()(I8,b8,O0(480,"isMobile"))(j8),R8=ri,O8=ri,P8=ri,M8=ri,D8=ri,k8=ri;function $s({children:t,className:e,height:s,width:o,viewBox:r}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t})}function w8(t){return(0,n.jsxs)($s,{viewBox:"0 0 24 24",...t,children:[(0,n.jsx)("path",{d:"M1 10.9609L10 19.9609",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M1 11.9609L10 2.96094",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M2 11.5H23",stroke:"currentColor",strokeWidth:"1.5"})]})}const B8=({className:t})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 8",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"8",children:(0,n.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1"})});function _8(t){return(0,n.jsx)($s,{height:"12",width:"18",viewBox:"0 0 18 12",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.666992 1.00002C0.666992 0.539783 1.04009 0.166687 1.50033 0.166687H14.0003C14.4606 0.166687 14.8337 0.539783 14.8337 1.00002C14.8337 1.46026 14.4606 1.83335 14.0003 1.83335H1.50033C1.04009 1.83335 0.666992 1.46026 0.666992 1.00002ZM0.666992 6.00002C0.666992 5.53978 1.04009 5.16669 1.50033 5.16669H16.5003C16.9606 5.16669 17.3337 5.53978 17.3337 6.00002C17.3337 6.46026 16.9606 6.83335 16.5003 6.83335H1.50033C1.04009 6.83335 0.666992 6.46026 0.666992 6.00002ZM0.666992 11C0.666992 10.5398 1.04009 10.1667 1.50033 10.1667H10.667C11.1272 10.1667 11.5003 10.5398 11.5003 11C11.5003 11.4603 11.1272 11.8334 10.667 11.8334H1.50033C1.04009 11.8334 0.666992 11.4603 0.666992 11Z",fill:"currentColor",fillRule:"evenodd"})})}function U8(t){return(0,n.jsx)($s,{height:"6",width:"10",viewBox:"0 0 10 6",...t,children:(0,n.jsx)("path",{d:"M9 1L5 5L1 1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function H8(t){return(0,n.jsx)($s,{height:"6",width:"10",viewBox:"0 0 10 6",...t,children:(0,n.jsx)("path",{d:"M1 5L5 1L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function F8(t){return(0,n.jsxs)($s,{height:"21",width:"20",viewBox:"0 0 20 21",...t,children:[(0,n.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}var z8=i(95017),Ps=i.n(z8);function Q2(t){return(0,n.jsx)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"1 1 18 18",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99998 0.833336C4.93737 0.833336 0.833313 4.93739 0.833313 10C0.833313 15.0626 4.93737 19.1667 9.99998 19.1667C15.0626 19.1667 19.1666 15.0626 19.1666 10C19.1666 4.93739 15.0626 0.833336 9.99998 0.833336ZM13.0892 6.91075C13.4147 7.23618 13.4147 7.76382 13.0892 8.08926L11.1785 10L13.0892 11.9107C13.4147 12.2362 13.4147 12.7638 13.0892 13.0893C12.7638 13.4147 12.2362 13.4147 11.9107 13.0893L9.99998 11.1785L8.08923 13.0893C7.7638 13.4147 7.23616 13.4147 6.91072 13.0893C6.58529 12.7638 6.58529 12.2362 6.91072 11.9107L8.82147 10L6.91072 8.08926C6.58529 7.76382 6.58529 7.23618 6.91072 6.91075C7.23616 6.58531 7.7638 6.58531 8.08923 6.91075L9.99998 8.82149L11.9107 6.91075C12.2362 6.58531 12.7638 6.58531 13.0892 6.91075Z",fill:"black"})})}function od(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"0 0 18 18",children:[(0,n.jsx)("circle",{cx:"9",cy:"9",r:"9",fill:"#74BF44"}),(0,n.jsx)("path",{d:"M6.43994 9.12061L8.43994 11.1206L11.9399 7.62061",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function V8(t){return(0,n.jsx)($s,{height:"12",width:"12",viewBox:"0 0 12 12",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M5.325 9.01843C3.225 9.01843 1.5 7.37868 1.5 5.29172C1.5 3.20476 3.225 1.49048 5.325 1.49048C7.425 1.49048 9.15 3.20476 9.15 5.29172C9.15 7.37868 7.425 9.01843 5.325 9.01843ZM9.525 8.42236C10.2 7.52795 10.575 6.48447 10.575 5.29193C10.575 2.38509 8.25 0 5.325 0C2.4 0 0 2.38509 0 5.29193C0 8.19876 2.4 10.5839 5.325 10.5839C6.525 10.5839 7.65 10.2112 8.475 9.54037L10.725 11.7764C10.875 11.9255 11.1 12 11.25 12C11.4 12 11.625 11.9255 11.775 11.7764C12.075 11.4783 12.075 11.0311 11.775 10.7329L9.525 8.42236Z",fill:"currentColor",fillRule:"evenodd"})})}function W8(t){return(0,n.jsx)($s,{height:"5",width:"10",viewBox:"0 0 10 5",...t,children:(0,n.jsx)("path",{d:"M5.56569 4.75592L8.76601 1.42259C9.27003 0.897618 8.91306 0 8.20027 0L1.79963 0C1.08683 0 0.729863 0.897618 1.23389 1.42259L4.43421 4.75592C4.74666 5.08136 5.25324 5.08136 5.56569 4.75592Z",fill:"currentColor"})})}function G8(t){return(0,n.jsxs)($s,{height:"18",width:"18",viewBox:"0 0 18 18",...t,children:[(0,n.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function K8(t){return(0,n.jsxs)($s,{height:"14",width:"20",viewBox:"0 0 20 14",...t,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function $8(t){return(0,n.jsx)($s,{height:"10",width:"10",viewBox:"0 0 10 10",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z",fill:"currentColor",fillRule:"evenodd"})})}const Q8=q("cover"),rd=Dt("CoverDetailsSection",({children:t,type:e})=>(0,n.jsx)("section",{className:Q8("details-content-section",{type:e}),children:t}));var Z8=i(72168),ws=i.n(Z8),Y8=i(4322),mt=i.n(Y8),X8=i(10789),We=i.n(X8),J8=i(27905),st=i.n(J8),q8=i(72970),ur=i.n(q8),e7=i(97886),vi=i.n(e7),t7=i(86484),sn=i.n(t7),s7=i(47474),Ci=i.n(s7),n7=i(54996),o7=i.n(n7),r7=i(45015),a7=i.n(r7),i7=i(68971),Z2=i.n(i7),c7=i(18779),l7=i.n(c7),d7=i(67711),Eo=i.n(d7),u7=i(91794),Fs=i.n(u7),h7=i(53970),Br=i.n(h7),m7=i(63064),Hc=i.n(m7),he=i(36523),Ft=i(23366),p7=i(41820);class nn{static get isChrome(){return!window||!window.navigator?!1:/Chrome/.test(window.navigator.userAgent)&&/Google Inc/.test(window.navigator.vendor)}static get isSafari(){return!window||!window.navigator?!1:/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor)&&!/CriOS/.test(window.navigator.userAgent)}static get isIphoneSafari(){if(!window||!window.navigator)return!1;const e=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,s=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),o=/CriOS/.test(window.navigator.userAgent);return e&&s&&!o}static get isSafari9(){if(!window||!window.navigator)return!1;const e=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),s=/version\/9./i.test(window.navigator.userAgent);return e&&s}static get isIe11(){return!!(window&&Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject)}static get isEdge(){return!window||!window.navigator?!1:/Edge/.test(window.navigator.userAgent)}static get isMobile(){return!window||!window.navigator?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static get isLocalFilesystem(){return!window||!window.navigator?!1:/file:/.test(window.location.protocol)}static get isFirefox(){return window?.navigator?.userAgent.includes("Firefox")??!1}}const f7=Eo()(ot()),Y2=t=>e=>`${t}/${e.id}`,g7=(t,e)=>li()({data:(0,he.action)(e),method:"POST",url:(0,Ft.rq)(f7(`/${e}`),Pe()("url"),t),...Ls()(["headers","withCredentials"],t)}),v7=t=>(e,s)=>o7()(e,Y2(s),G0(t,s)),C7=t=>St()(Ye()({},["response","data"]),vi()(Pe()("type"),(0,he.error)(t))),x7=(t,e)=>s=>t.postRequest?t.postRequest(e,s):s,X2=t=>e=>s=>o=>(0,Ft.Ve)(o,g7(e,s),t,Z2()(C7(s),sn()(ur()("data"),Pe()("data"))),l7()(Fs()(Pe()("error"),Ci().Rejected,Ci().of)),x7(e,{type:s,payload:o})),E7=({url:t,method:e,data:s,headers:o})=>{if(nn.isFirefox){const r=new Blob([JSON.stringify(s)],{type:"application/json"}),a=window.navigator.sendBeacon(t,r);return Promise.resolve({type:s.type,payload:{...s.payload,queued:a}})}return fetch(t,{method:e,credentials:"include",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(s),keepalive:!0}).then(r=>r.json()).then(Br()("data"))},T7=Ci().fromPromise(E7),G0=Hc()(3,X2(p7.Em)),S7=Hc()(3,X2(T7)),L7=t=>(e,s)=>a7()(e,Y2(s),G0(t,s)),b7=t=>({debounce:v7(t),send:G0(t),fetchWithKeepAlive:S7(t),throttle:L7(t)}),y7=`${(0,ye._$)("RISE_RUNTIME_URI")}/ducks`,I7=b7({headers:()=>({"x-rise-authoring-client":"4845cf0500e72e7f08ee9de0807ef4086b2fd3e8"}),postRequest:(t,e)=>e,url:y7,withCredentials:!0});var N7=i(41260),xi=i.n(N7);const j7=xi()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:(0,Re.Xl)(),userRole:(0,Re.O0)(),subId:(0,Re.EO)(),subPlan:(0,Re.QJ)(),subStatus:(0,Re.l6)()}}),A7=ot()("rise/track/")("TRACK"),J2=St()(vi()(ur()("userId"),st()("userId",(0,Re.kn)())),sn()(We()(ye.BI),j7),I7.send(A7)),xn=ot()("partner-content-book-info__"),R7=t=>{const{authors:e,backgroundColor:s,bookImage:o,bookTitle:r,buyLink:a,block:c,publishedAt:d,track:l,trackingInfo:u}=t,h=e.filter(j=>!Yt()(j.name)),p=ws()(j=>j.name,h),f=p.length>1?ha()(" & ",p):p[0],g=f.slice(-1)==="s"?"":"s",v=(0,ct.cP)(s),C=M()({[xn("book-image-block")]:c&&!v},{[xn("book-image-block")&&xn("dark-theme-book-image")]:c&&v},{[xn("book-image-course")]:!c}),E=xn(c?"flex-block":"flex-course"),L=xn(c?"image-container-block":"image-container-course"),x=M()(xn("small-text"),{[xn("dark-theme")]:v}),S=M()(xn("black-text"),{[xn("dark-theme")]:v}),b=M()(xn("button"),{[xn("dark-theme-button")]:v}),N=(0,rs.ny)({height:"210",width:"140",imageKey:o}),I=(0,m.useCallback)(()=>{ye.BI&&d&&l({event:"Click Tracked",payload:mt()(u,{type:"Buy Link"})})},[d,l,u]);return(0,n.jsxs)("section",{className:E,children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:L,children:o?(0,n.jsx)("img",{src:N,alt:"",className:C}):(0,n.jsx)("div",{className:C})}),(0,n.jsxs)("div",{className:xn("text-container"),children:[(0,n.jsxs)("p",{className:x,children:["From ",f,"'",g]}),(0,n.jsx)("p",{className:S,children:r}),(0,n.jsx)("a",{className:b,href:a,onClick:I,target:"_blank",rel:"noopener noreferrer",children:"Buy the book"})]})]})},O7={track:J2},q2=(0,Hs.Ls)(null,O7)(R7),Xn=ot()("partner-content-partner-info__"),P7=({backgroundColor:t,block:e,link:s,publishedAt:o,track:r,trackingInfo:a})=>{const c=e?(0,rs.H5)():(0,rs.DB)(),d=Xn(e?"nbic-logo-light-bulb":"nbic-logo"),l=Xn(e?"block-logo-container":"logo-container"),u=(0,ct.cP)(t),h=M()(Xn("small-text"),{[Xn("dark-theme")]:u}),p=M()(Xn("black-text"),{[Xn("dark-theme")]:u}),f=M()(Xn("button"),{[Xn("dark-theme-button")]:u}),g=(0,m.useCallback)(()=>{ye.BI&&o&&r({event:"Click Tracked",payload:mt()(a,{type:"Partner Link"})})},[o,r,a]);return(0,n.jsxs)("section",{className:Xn("flex"),children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:l,children:(0,n.jsx)("img",{src:c,alt:"",className:d})}),(0,n.jsxs)("div",{className:Xn("text-container"),children:[(0,n.jsx)("p",{className:h,children:"In partnership with"}),(0,n.jsx)("p",{className:p,children:"Next Big Idea Club"}),(0,n.jsx)("a",{className:f,href:s,onClick:g,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},M7={track:J2},ep=(0,Hs.Ls)(null,M7)(P7),Ei=ot()("partner-content-author-card__"),tp=t=>{const{courseId:e,partnerContent:s,publishedAt:o,tenantId:r}=t,{data:a,type:c}=s,{authors:d,bookImage:l,bookTitle:u,buyLink:h,internalId:p,nbicLink:f}=a,g=d.filter(x=>x.name),v={courseId:e,partnerContentId:s.id,partnerContentInternalId:p,tenantId:r,contentSubtype:c},C=M()(Ei("flex"),Ei("author-container")),E=x=>(0,rs.ny)({width:"122",height:"122",imageKey:x}),L=(x,S)=>(0,n.jsx)("div",{"aria-hidden":"true",className:Ei("image-container"),children:x?(0,n.jsx)("img",{src:E(x),alt:S,className:Ei("author-image")}):(0,n.jsx)("div",{className:Ei("author-image")})});return(0,n.jsxs)("ol",{className:"partner-content-author-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),g.map(x=>(0,n.jsxs)("li",{className:C,children:[L(x.image,x.name),(0,n.jsx)("p",{className:Ei("author-name-text"),children:x.name})]},x.name))]})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(q2,{authors:d,bookImage:l,bookTitle:u,buyLink:h,publishedAt:o,trackingInfo:v})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(ep,{link:f,publishedAt:o,trackingInfo:v})})]})},D7=q("cover");function k7(t){const{courseId:e,coursePartnerContent:s,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:c}=t;if(!r)return null;const d=D7("details-content-aside",{logo:o});return(0,n.jsx)("div",{className:d,children:(0,n.jsx)(rd,{type:"partner-content",children:(0,n.jsx)(tp,{courseId:e,partnerContent:s,publishedAt:a,tenantId:c})})})}const w7=q("cover"),B7=Dt("CoverDetailsContentHeading",({className:t="",type:e,...s})=>{const o=Ps()(["Default"],s);return(0,n.jsx)("header",{...o,className:w7("details-content-heading",{type:e}).mix(t)})}),_7=q("cover");function U7({children:t,title:e,type:s}){const o=(0,Me.DX)(),{description:r,media:a,partnerContentId:c}=o,d=!!c,l=Ye()(void 0,["image","key"],a),u=!wt()(l),p=s==="outline"?r?!u&&!d?"outline-no-logo":d&&!u?"outline-has-partner-content":d&&u?"outline-has-pc-and-logo":"outline":"outline-no-description":s;return(0,n.jsxs)("section",{className:_7("details-content-section",{type:p}),children:[(0,n.jsx)(B7,{type:s,children:(0,n.jsx)("h2",{children:e})}),t]})}const H7=q("cover"),Fc=()=>(0,n.jsxs)("svg",{"aria-hidden":"true",className:H7("header-star"),width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",rule:"stroke",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M9 0V18",strokeWidth:"0.75",strokeMiterlimit:"10"}),(0,n.jsx)("path",{d:"M18 9H0",strokeWidth:"0.75",strokeMiterlimit:"10"}),(0,n.jsx)("path",{d:"M15.3 15.3002L2.69995 2.7002",strokeWidth:"0.75",strokeMiterlimit:"10"}),(0,n.jsx)("path",{d:"M2.69995 15.3002L15.3 2.7002",strokeWidth:"0.75",strokeMiterlimit:"10"})]}),F7=Xs.bind(null,480),z7=Xs.bind(null,768),Xie=Xs.bind(null,992),V7={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function sp(){const{coverPageType:t}=(0,Me.DX)();return z7()?V7[t]??t:t}const W7=q("cover"),G7=()=>null,K7=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U0,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})}),$7=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})}),Q7=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(kc,{}),(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})]}),Z7=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)(kc,{})]}),Y7=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(Fc,{}),(0,n.jsx)(Bo,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,n.jsx)(kc,{})})]});function X7(){switch(sp()){default:case"CENTERED_IMAGE":return(0,n.jsx)(Y7,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,n.jsx)($7,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,n.jsx)(Z7,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,n.jsx)(Q7,{});case"CENTERED_OVERLAY":return(0,n.jsx)(K7,{})}}function J7(){return(0,n.jsxs)("header",{className:W7("header",{meta:!1}),children:[(0,n.jsx)(X7,{hasMetaData:!1}),(0,n.jsx)(ie().Suspense,{children:(0,n.jsx)(G7,{})})]})}const q7=q("cover");function ex({children:t}){const e=sp(),s=(0,m.useMemo)(()=>wc()(e),[e]),o=q7(null,{layout:s});return(0,n.jsx)("div",{id:"cover",className:o,children:t})}const K0=q("lesson-header"),tx=({authorName:t,avatar:e,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:h})=>{const p=!wt()(a)&&c,f=e&&t&&c&&!p,g=f||p||d,v=d&&(f||p);return(0,n.jsxs)("div",{className:K0("content"),children:[g&&(0,n.jsxs)("div",{className:K0("info-row"),children:[f?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(Bc,{}),p&&(0,n.jsx)(mi,{partnerContentAuthors:a}),v&&(0,n.jsx)("span",{"aria-hidden":"true",className:K0("info-row--divider"),children:"|"}),d?(0,n.jsx)(Ho,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:u}):(0,n.jsx)(Uo,{})]}),(0,n.jsx)("div",{children:(0,n.jsx)(Fo,{title:l,id:h})})]})},sx=({authorName:t,avatar:e,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:h})=>{const p=!wt()(a),f=(0,m.useMemo)(()=>e&&t&&c&&!p,[e,t,c,p]);return(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)(Ho,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:u}):(0,n.jsx)(Uo,{}),f&&(0,n.jsx)(_o,{avatar:e,authorName:t}),c&&p&&(0,n.jsx)(F0,{partnerContentAuthors:a}),(0,n.jsx)(Fo,{title:l,id:h})]})},nx=({authorName:t,avatar:e,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:c,showLessonCount:d,title:l,totalLessons:u,lessonId:h})=>{const p=!wt()(a),f=(0,m.useMemo)(()=>e&&t&&c&&!p,[e,t,c,p]);return(0,n.jsxs)(n.Fragment,{children:[f?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(Bc,{}),c&&p&&(0,n.jsx)(mi,{partnerContentAuthors:a}),(0,n.jsx)(Fo,{title:l,id:h}),d?(0,n.jsx)(Ho,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:u}):(0,n.jsx)(Uo,{})]})};function ox(t){const e=F7();return t.lessonHeaderSize===O.OX.SMALL&&!e?(0,n.jsx)(tx,{...t}):e?(0,n.jsx)(sx,{...t}):(0,n.jsx)(nx,{...t})}const{COMPACT:rx,COVER:ax,OVERLAY:ix,SIDEBAR:lx}=$e.by,Ti=q("progress-circle");function dx({"aria-hidden":t,"aria-label":e,isFailed:s,isPassed:o,scope:r,value:a}){const[c,d]=(0,m.useState)(a===100),l=(0,as.A)(a),{theme:{progressIndicatorStyle:u=O.Y2.THEME_DEFAULT}}=(0,Me.DX)(),h=r===ax,p=r===ix,f=u===O.Y2.THEME_DEFAULT,g=u===O.Y2.CIRCULAR_FILL,v=u===O.Y2.INCOMPLETE_COMPLETE,C=Ti("default",{failed:s,passed:o}),E=Ti({compact:r===rx,cover:h,overlay:p,sidebar:r===lx}),L=Ti("track",{"circular-fill":!p&&g,"incomplete-complete":h&&v}),x=Ti("fill",{"circular-fill":g,done:c,failed:s,passed:o,unstarted:a===0}),S=Ti("pass",{done:c,visible:o}),b=Ti("fail",{done:c,visible:s}),N=(0,m.useMemo)(()=>g||a===100?a:0,[g,a]);return(0,m.useEffect)(()=>{if(a!==100&&l===100)d(!1);else if(a===100&&!c&&!v){const I=setTimeout(()=>d(!0),300);return clearTimeout.bind(null,I)}else a===100&&!c&&v&&d(!0)},[c,v,l,a]),(0,n.jsx)(n.Fragment,{children:f?(0,n.jsx)("svg",{"aria-hidden":t,"aria-label":e,className:C,focusable:"false",viewBox:"0 0 7 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"3.5",cy:"3.5",r:"2.5"})}):(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:E,fill:"none",focusable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:L,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,n.jsx)(V0,{className:x,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,strokeLinecap:"round",value:N}),(0,n.jsx)("path",{className:S,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className:b,clipRule:"evenodd",d:"M9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303Z",fillRule:"evenodd"})]})})}function ux({Default:t,...e}){return(0,n.jsx)(t,{...e,hasOverlay:!1})}var hx=i(10894),zc=i.n(hx),mx=i(50107),ad=i.n(mx);const Jie=ad()(t=>t.preventDefault()),$0=t=>e=>(t(e),e.preventDefault()),Si=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},To=t=>e=>{t(e),e.preventDefault(),Si(e)};function id(t,e){const s=[];if(t){let o=t.parentElement;for(;o&&(e?.limit==null||s.length<e.limit);){if(o===document.body){s.push(window);break}const r=window.getComputedStyle(o);(r.overflowX==="auto"||r.overflowX==="scroll"||r.overflowY==="auto"||r.overflowY==="scroll")&&s.push(o),o=o.parentElement}}return s}function px(t){return id(t,{limit:1})[0]}function np(t,e){(0,m.useLayoutEffect)(()=>{let s=t.current;const o=id(s);for(const r of o)r?.addEventListener("scroll",e);return()=>{for(const r of o)r?.removeEventListener("scroll",e)}},[e,t])}var zo=i(39843),fx=i(63036),Rs=i.n(fx),gx=i(45005),on=i.n(gx),vx=i(92629),hr=i.n(vx),Cx=i(53625),Jn=i.n(Cx);const xx={keys:["End"],keyCode:zo.KEY_END},Ex={keys:["Enter"],keyCode:zo.KEY_RETURN},Tx={keys:["Home"],keyCode:zo.KEY_HOME},Sx={keys:["Tab"],keyCode:zo.KEY_TAB},Lx={keys:[" "],keyCode:zo.KEY_SPACE},bx={keys:["Escape","Esc"],keyCode:zo.KEY_ESCAPE},yx={keys:["ArrowUp"],keyCode:zo.KEY_UP},Ix={keys:["ArrowDown"],keyCode:zo.KEY_DOWN},Nx={keys:["ArrowLeft"],keyCode:zo.KEY_LEFT},jx={keys:["ArrowRight"],keyCode:zo.KEY_RIGHT},Vo=({keyCode:t,keys:e})=>s=>s.keyCode?s.keyCode===t:on()(s.key,e),Ax=t=>t.altKey||t.ctrlKey||t.metaKey,Rx=Vo(xx),va=Vo(Ex),Ox=Vo(Tx),cd=Vo(Sx),ld=Vo(Lx),yn=Vo(bx),Li=Vo(yx),bi=Vo(Ix),_r=Vo(Nx),Ur=Vo(jx),qie=Jn()(bi,Ur),Hr=Jn()(ld,va),ece=Jn()(cd,va),dd=Jn()(Ur,Li),ud=Jn()(_r,bi),op=Jn()(Li,bi),tce=Jn()(Li,_r),rp=sn()(Hr),ap=25,Px=hr()((t,e)=>{t.scrollTop!==0&&(e.preventDefault(),t.scrollTop-=ap)}),Mx=hr()((t,e,s)=>{e&&(s.preventDefault(),t.scrollTop+=ap)}),Dx=(t,e)=>s=>{const o=Mx(t,e),r=Px(t);Rs()([[bi,o],[Li,r]])(s)},hd=q("lesson-progress"),{COMPACT:Q0,COVER:Vc,OVERLAY:Z0,SIDEBAR:Wc}=$e.by;function kx({canComplete:t,color:e,hasRestriction:s,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:c,isFailed:d,isLegacy:l,isPassed:u,isTooltipVisible:h,navigationStyle:p,onHideTooltip:f,onMarkComplete:g,onMarkReset:v,onShowTooltip:C,percentComplete:E,progressGraphic:L,scope:x,labels:S}){const b=(0,m.useRef)(),N=(0,m.useRef)(),I=(0,m.useRef)(),j=(0,m.useRef)(),{theme:{progressIndicatorStyle:R=O.Y2.THEME_DEFAULT}}=(0,Me.DX)(),P=R===O.Y2.THEME_DEFAULT,B=hd({compact:x===Q0,cover:x===Vc&&!l,"legacy-cover":x===Vc&&l,inactive:s,overlay:x===Z0,sidebar:x===Wc&&!l,"legacy-sidebar":x===Wc&&l,"theme-default":P}),_=hd("graphic",{compact:x===Q0,cover:x===Vc&&!l,"legacy-cover":x===Vc&&l,overlay:x===Z0,sidebar:x===Wc&&!l,"legacy-sidebar":x===Wc&&l}),k=hd("tooltip",{legacy:l}).toString(),J=(0,m.useCallback)(()=>{o?v?.():g?.()},[o,g,v]),Z=(0,m.useCallback)(oe=>{zc()(f)&&yn(oe)&&h&&f()},[f,h]),G=(0,m.useCallback)(()=>{clearTimeout(I.current),!s&&zc()(C)&&(N.current=setTimeout(C,600))},[s,C]),Y=(0,m.useCallback)(()=>{clearTimeout(N.current),zc()(f)&&(I.current=setTimeout(f,150))},[f]),Ee=(0,m.useCallback)(()=>{setTimeout(()=>{if(h){const oe=b.current.getBoundingClientRect(),we=j.current.offsetParent.getBoundingClientRect(),{height:Ae,width:_e}=oe,Qe=oe.left-we.left,pt=oe.top-we.top;Object.assign(j.current.style,{transform:`translate(${Qe}px, ${pt}px)`,width:`${_e}px`,height:`${Ae}px`})}},0)},[h]);if((0,m.useLayoutEffect)(()=>Ee(),[Ee]),(0,bs.A)("resize",Ee,window),(0,bs.A)("keydown",Z,document),np(b,Y),t){const oe=ye.BI&&E===100,we=wx({labels:S,percentComplete:E,canReset:!oe}),Ae=!c||oe,_e=hd("action",{disabled:Ae});return(0,n.jsx)("span",{className:B,children:(0,n.jsx)("button",{"aria-label":we,className:_e,disabled:Ae,onBlur:f,onClick:J,onFocus:C,type:"button",children:(0,n.jsxs)("span",{className:_,onMouseEnter:G,onMouseLeave:Y,ref:b,children:[(0,n.jsx)(L,{"aria-hidden":"true",color:e,isDark:a,isCurrent:r,isFailed:d,isPassed:u,navigationStyle:p,scope:x,value:E}),c&&!s&&(0,n.jsx)(ip,{className:k,dark:a,ref:j,scope:x,visible:h,children:we})]})})})}const fe=Bx({labels:S,isFailed:d,percentComplete:E});return(0,n.jsx)("span",{className:B,children:(0,n.jsxs)("span",{className:_,onMouseEnter:G,onMouseLeave:Y,ref:b,children:[(0,n.jsx)(L,{"aria-label":fe,color:e,isDark:a,isCurrent:r,isFailed:d,isPassed:u,navigationStyle:p,scope:x,value:E}),c&&!s&&(0,n.jsx)(ip,{className:k,dark:a,ref:j,scope:x,visible:h,children:fe})]})})}const ip=(0,m.forwardRef)((t,e)=>{const{children:s,className:o,dark:r,scope:a,visible:c}=t,d=(0,m.useMemo)(()=>q(o),[o]),l=d({compact:a===Q0,cover:a===Vc,overlay:a===Z0,sidebar:a===Wc,visible:c}),u=d("inner",{dark:r,light:!r}),h=(0,n.jsx)("div",{"aria-hidden":"true",onClick:Si,ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:l,children:(0,n.jsx)("div",{className:u,children:s})})})});return(0,Yn.createPortal)(h,kr())});function wx({labels:t,canReset:e,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:c,progressPieClickToReset:d}=t;return o&&e?`${r}. ${d}`:s===100&&!e?r:s===0?`${a}. ${c}`:`${s}% ${r}. ${c}`}function Bx({labels:t,isFailed:e,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:c}=t;return e?c:o?r:s===0?a:`${s}% ${r}`}const cp=ie().memo(kx);function _x({color:t,hasRestriction:e,isComplete:s,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:c,lessonTitle:d,navigationStyle:l,onHideTooltip:u,onShowTooltip:h,percentComplete:p,progressGraphic:f,scope:g,labels:v}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"overview-list-item__progress",children:(0,n.jsx)(cp,{canComplete:!1,color:t,hasRestriction:e,isComplete:s,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:c,navigationStyle:l,onHideTooltip:u,onShowTooltip:h,percentComplete:p,progressGraphic:f,scope:g,labels:v})}),(0,n.jsx)("span",{className:"overview-list-item__title",children:d})]})}const Ux=()=>null,Hx=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",ref:e,viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M3.33177 4.1487L6.48034 1.00013M9.6289 4.14869L6.48034 1.00013M6.48034 1.00013L6.47966 11.9601"})}),lp=(0,m.forwardRef)(Hx);function Fx(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),viewBox:"0 3 16 10",fill:"none",children:[(0,n.jsx)("path",{d:"M1.51472 7.99993H14.4853",stroke:"currentColor",strokeWidth:"0.75",strokeMiterlimit:"10"}),(0,n.jsx)("path",{d:"M9.50008 12.4994L14.5004 7.99932L9.50008 3.99973",stroke:"currentColor",strokeWidth:"0.75",strokeMiterlimit:"10"})]})}function zx(t){return(0,n.jsx)(is,{viewBox:"0 0 25 16",...Ps()(["Default"],t),children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.10699 7.7986L0.778547 7.50301L1.1236 7.22701L10.013 0.116623L10.4815 0.702312L2.42567 7.14593H24.4443V7.89593H2.3363L10.4981 15.2413L9.9964 15.7988L1.10699 7.7986Z",fill:"currentColor"})})}function dp(t){return(0,n.jsx)($s,{width:"14",height:"8",viewBox:"0 0 14 8",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M13 1L7 7L1 1",stroke:"currentColor"})})}function up(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M5 7.71429L7.54545 10L11.5 5.5",stroke:"white"})]})}function hp(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("path",{d:"M8.00085 5.20305L5.14081 8.06339C5.14079 8.06341 5.14077 8.06343 5.14075 8.06345C5.00146 8.20273 4.92319 8.39163 4.92314 8.58861V8.5887V9.93926C4.92314 10.1851 5.12244 10.3844 5.36829 10.3844H6.71884H6.71894C6.91593 10.3844 7.10484 10.3061 7.24413 10.1668C7.24414 10.1668 7.24415 10.1667 7.24416 10.1667L10.104 7.30664C10.104 7.30657 10.1041 7.3065 10.1042 7.30643L10.1042 7.30638C10.1043 7.30631 10.1044 7.30622 10.1044 7.30615L10.9465 6.46442C11.03 6.38095 11.0769 6.26773 11.0769 6.14966C11.0769 6.0316 11.03 5.91836 10.9466 5.83487L9.47304 4.36105C9.29924 4.18722 9.01746 4.18716 8.84359 4.36091L8.00111 5.20279C8.0011 5.2028 8.0011 5.2028 8.0011 5.2028L8.00085 5.20305Z",stroke:"white",strokeWidth:"0.890284",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"8",cy:"7.5293",r:"7",stroke:"white"})]})}function Vx({className:t}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"6",cy:"6",r:"5"}),(0,n.jsx)("path",{d:"M9.5 9.5L14 14"})]})}function Wx(t){return(0,n.jsxs)(is,{...Ps()(["Default"],t),fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M10 6L6 10",stroke:"white"}),(0,n.jsx)("path",{d:"M6 6L10 10",stroke:"white"})]})}function Gx({className:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",viewBox:"0 0 10 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M1 1.40002L5 5.40002L9 1.40002",strokeWidth:"1.6"})})}function Kx(t){return(0,n.jsxs)(is,{viewBox:"0 0 12 12",...Ps()(["Default"],t),children:[(0,n.jsx)("path",{d:"M10.7425 0.742189L11.4496 1.4493L1.55012 11.3488L0.843012 10.6417L10.7425 0.742189Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M11.1571 10.6417L10.45 11.3488L0.550537 1.44929L1.25764 0.742188L11.1571 10.6417Z",fill:"currentColor"})]})}const $x=Xs.bind(null,1200),Qx=Xs.bind(null,768),Y0=Xs.bind(null,480),mp=q("cover");function Zx(){const t=(0,Me.DX)(),e=$x(),s=(0,It.QQ)(t.description);if(!s)return null;const o=ci("description"),r=(0,_s.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:mp("details-content-section"),children:[e&&(0,n.jsx)(w0,{}),(0,n.jsx)(Nt,{className:mp("details-content-description"),value:y0(s)},"text")]})})}const Yx={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function X0(){const{coverPageType:t}=(0,Me.DX)();return Qx()?Yx[t]??t:t}function Xx({Default:t,...e}){const s=X0(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(s);return(0,n.jsx)(t,{...e,reverseColumns:o})}const pp=q("cover");function Gc({accentColor:t,hasOverlay:e=!1,isShape:s=!1}){const{alpha:o,ariaLabel:r,media:a,role:c}=pa("coverImage"),d=s?{backgroundColor:t}:(0,At.b9)({alpha:o,hasOverlay:e,media:a});return(0,n.jsx)("div",{className:pp("header-graphic-container"),children:(0,n.jsx)("div",{className:pp("header-graphic"),style:d,"aria-label":r,role:c})})}const fp=t=>(0,n.jsx)(md,{...t,children:(0,n.jsx)("clipPath",{id:"cover-page-clip-path",clipPathUnits:"objectBoundingBox",children:(0,n.jsx)("path",{d:"M0.319,0.998 L1,0.899 V0 H0 V0.899 L0.192,0.98 C0.234,0.998,0.277,1,0.319,0.998"})})}),gp=t=>(0,n.jsx)(md,{...t,children:(0,n.jsx)("clipPath",{id:"cover-page-clip-path",clipPathUnits:"objectBoundingBox",children:(0,n.jsx)("path",{d:"M0.661,0.963 L1,0.804 V0 H0 V0.804 L0.339,0.963 C0.445,1,0.555,1,0.661,0.963"})})}),vp=t=>(0,n.jsx)(md,{...t,children:(0,n.jsx)("clipPath",{id:"cover-page-clip-path",clipPathUnits:"objectBoundingBox",children:(0,n.jsx)("path",{d:"M0.481,0.991 L0.908,0.825 C0.99,0.793,1,0.694,0.982,0.616 L0.68,0.075 C0.636,-0.003,0.534,-0.023,0.465,0.033 L0.055,0.364 C-0.007,0.414,-0.017,0.505,0.031,0.568 L0.316,0.944 C0.355,0.995,0.422,1,0.481,0.991"})})}),Cp=t=>(0,n.jsx)(md,{...t,children:(0,n.jsx)("clipPath",{id:"cover-page-clip-path",clipPathUnits:"objectBoundingBox",children:(0,n.jsx)("path",{d:"M0.519,0.991 L0.093,0.825 C0.01,0.793,-0.025,0.694,0.019,0.616 L0.321,0.075 C0.364,-0.003,0.466,-0.023,0.536,0.033 L0.946,0.364 C1,0.414,1,0.505,0.97,0.568 L0.685,0.944 C0.646,0.995,0.579,1,0.519,0.991"})})}),Jx={LEFT_OVERLAY:fp,LEFT:fp,CENTERED:gp,CENTERED_OVERLAY:gp,SPLIT_LEFT:vp,SPLIT_LEFT_IMAGE:vp,SPLIT_RIGHT:Cp,SPLIT_RIGHT_IMAGE:Cp},md=({children:t,className:e="svgPath",height:s,width:o,viewBox:r})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t}),Ca=({className:t,coverPageType:e})=>tt()(We()(null),e,Jx)({className:t}),xp=q("cover"),yi=()=>(0,n.jsxs)("div",{className:xp("author-published-wrap"),children:[(0,n.jsx)(Bo,{}),(0,n.jsx)(L2,{})]}),qx=({coverPageType:t})=>{const e=Y0();return(0,n.jsxs)(U0,{children:[(0,n.jsx)(Ca,{coverPageType:t}),(0,n.jsxs)(vn,{children:[!e&&(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),e&&(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})]})},eE=({coverPageType:t})=>{const e=Y0();return(0,n.jsxs)(Zn,{children:[(0,n.jsx)(Ca,{coverPageType:t}),(0,n.jsxs)(vn,{children:[!e&&(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),e&&(0,n.jsx)(tn,{}),(0,n.jsx)(fn,{})]})]})},tE=({coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ca,{coverPageType:t}),(0,n.jsx)(Gc,{}),(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})]}),sE=({accentColor:t,coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)(Ca,{coverPageType:e}),(0,n.jsx)(Gc,{accentColor:t,isShape:!0})]}),nE=({coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})}),(0,n.jsx)(Ca,{coverPageType:t}),(0,n.jsx)(Gc,{})]}),oE=({accentColor:t,coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ca,{coverPageType:e}),(0,n.jsx)(Gc,{accentColor:t,isShape:!0}),(0,n.jsx)(Zn,{children:(0,n.jsxs)(vn,{children:[(0,n.jsx)(tn,{}),(0,n.jsx)(yi,{}),(0,n.jsx)(Cn,{}),(0,n.jsx)(fn,{})]})})]});function rE(t){const e=X0(),s={...t,coverPageType:e};switch(e){default:case O.BL.LEFT_OVERLAY:case O.BL.CENTERED_OVERLAY:return(0,n.jsx)(qx,{...s});case O.BL.LEFT:case O.BL.CENTERED:return(0,n.jsx)(eE,{...s});case O.BL.SPLIT_LEFT:return(0,n.jsx)(sE,{...s});case O.BL.SPLIT_LEFT_IMAGE:return(0,n.jsx)(nE,{...s});case O.BL.SPLIT_RIGHT:return(0,n.jsx)(oE,{...s});case O.BL.SPLIT_RIGHT_IMAGE:return(0,n.jsx)(tE,{...s})}}function aE(t){const{partnerContentId:e}=(0,Me.DX)(),s=(0,Me.Bd)(),r=!!(!!e&&s||ye.BI);return(0,n.jsx)("header",{className:xp("header",{"with-info":r}),children:(0,n.jsx)(rE,{...t})})}const iE=q("cover");function cE({children:t}){const e=X0(),s=(0,m.useMemo)(()=>wc()(e),[e]),o=iE(null,{layout:s});return(0,n.jsx)("div",{id:"cover",className:o,children:t})}const lE=zs("AlignLeft"),pd=zs("ArrowDown"),sce=zs("ArrowLeft"),Ep=zs("ArrowRight"),Tp=zs("ArrowUp"),dE=zs("Category"),uE=zs("ChevronDown"),hE=zs("ChevronUp"),nce=zs("Favorite"),mE=zs("LessonsComplete"),pE=zs("LessonsRequirement"),fE=zs("QuestionBox"),gE=zs("QuizFailed"),vE=zs("QuizPassed"),CE=zs("QuizRequirement"),Kc=zs("Search"),Sp=zs("ToggleDown"),xE=zs("Touch"),EE=zs("VideoCamera"),fd=zs("X"),mr=q("cover");function TE({nextLesson:t,percentComplete:e}){const s=Y0(),r=(0,Me.Wz)()?`%${e}`:`${e}%`;return e===0||!ye.BI?null:(0,n.jsxs)("div",{className:mr("progress"),children:[s&&(0,n.jsxs)("div",{className:mr("progress-text"),children:[e,"% Complete"]}),(0,n.jsx)("div",{className:mr("progress-outer"),children:(0,n.jsx)("div",{className:mr("progress-inner"),style:{width:`${e}%`}})}),(0,n.jsxs)("div",{className:mr("progress-text-wrap"),children:[!s&&(0,n.jsxs)("div",{className:mr("progress-text"),children:[r," Complete"]}),t&&(0,n.jsxs)("div",{className:mr("progress-next-lesson"),children:[(0,n.jsx)(Ep,{className:mr("progress-next-lesson-icon").toString(),decorative:!0}),(0,n.jsx)("span",{"aria-hidden":"true",className:mr("progress-next-lesson-text"),children:t.title}),(0,n.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})]})}const gd=q("lesson-header"),J0=()=>(0,n.jsx)("div",{className:gd("author--hidden")}),SE=({authorName:t,avatar:e,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:u,totalLessons:h,lessonId:p})=>{const f=!wt()(c)&&d,g=e&&t&&d&&!f,v=g||f||l,C=l&&(g||f);return(0,n.jsxs)("div",{className:gd("content"),children:[v&&(0,n.jsxs)("div",{className:gd("info-row"),children:[g?(0,n.jsx)(_o,{avatar:e,authorName:t}):(0,n.jsx)(J0,{}),f&&(0,n.jsx)(mi,{partnerContentAuthors:c}),C&&(0,n.jsx)("span",{"aria-hidden":"true",className:gd("info-row--divider"),children:"|"}),l?(0,n.jsx)(Ho,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Uo,{})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(Fo,{title:u,id:p}),s&&(0,n.jsx)(fa,{description:s})]})]})},LE=t=>{const{authorName:e,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:c,partnerContentAuthors:d,showAuthor:l,showLessonCount:u,title:h,totalLessons:p,lessonId:f}=t,g=!wt()(d),v=(0,m.useMemo)(()=>s&&e&&l&&!g,[s,e,l,g]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Fo,{title:h,id:f}),(0,n.jsxs)(X9,{children:[v?(0,n.jsx)(_o,{avatar:s,authorName:e}):(0,n.jsx)(J0,{showPartnerContent:g}),l&&g&&(0,n.jsx)(mi,{partnerContentAuthors:d}),u?(0,n.jsx)(Ho,{lessonName:r,lessonNumber:a,lessonPreposition:c,showPartnerContent:g,totalLessons:p}):(0,n.jsx)(Uo,{})]}),o&&(0,n.jsx)(fa,{description:o})]})},bE=t=>{const{authorName:e,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:c,partnerContentAuthors:d,showAuthor:l,showLessonCount:u,title:h,totalLessons:p,lessonId:f}=t,g=!wt()(d),v=(0,m.useMemo)(()=>s&&e&&l&&!g,[s,e,l,g]);return(0,n.jsxs)(n.Fragment,{children:[u?(0,n.jsx)(Ho,{lessonName:r,lessonNumber:a,lessonPreposition:c,totalLessons:p}):(0,n.jsx)(Uo,{}),v?(0,n.jsx)(_o,{avatar:s,authorName:e}):(0,n.jsx)(J0,{}),l&&g&&(0,n.jsx)(F0,{partnerContentAuthors:d}),(0,n.jsx)(Fo,{title:h,id:f}),o&&(0,n.jsx)(fa,{description:o})]})};function yE(t){const e=P0();return t.lessonHeaderSize===O.OX.SMALL&&!e?(0,n.jsx)(SE,{...t}):e?(0,n.jsx)(bE,{...t}):(0,n.jsx)(LE,{...t})}const{COMPACT:IE,COVER:NE,OVERLAY:jE,SIDEBAR:AE}=$e.by,$c=q("progress-circle");function RE({"aria-hidden":t,"aria-label":e,isFailed:s,isPassed:o,scope:r,value:a}){const[c,d]=(0,m.useState)(a===100),l=(0,as.A)(a),{theme:{progressIndicatorStyle:u=O.Y2.THEME_DEFAULT}}=(0,Me.DX)(),h=r===NE,p=r===jE,f=u===O.Y2.THEME_DEFAULT,g=u===O.Y2.CIRCULAR_FILL,v=u===O.Y2.INCOMPLETE_COMPLETE,C=$c({compact:r===IE,cover:h,sidebar:r===AE,overlay:p}),E=$c("track",{"circular-fill":!p&&g,"incomplete-complete":h&&v}),L=$c("runner",{"circular-fill":g,done:c,failed:s,passed:o,unstarted:a===0}),x=$c("pass",{done:c,visible:o}),S=$c("fail",{done:c,visible:s}),b=(0,m.useMemo)(()=>g||a===100?a:0,[g,a]);(0,m.useEffect)(()=>{if(a!==100&&l===100)d(!1);else if(a===100&&!c&&!v){const I=setTimeout(()=>d(!0),300);return clearTimeout.bind(null,I)}else a===100&&!c&&v&&d(!0)},[c,v,l,a]);const N=(0,m.useCallback)(()=>{a===100&&d(!0)},[a]);return(0,n.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:C,fill:"none",focusable:"false",role:"img",viewBox:"0 0 15 15",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:E,cx:"7.5",cy:"7.5",fill:"transparent",r:"6.5",strokeWidth:"2",transform:"rotate(-89.9 7.5 7.5)"}),f?(0,n.jsx)(K2,{className:L,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:N,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,n.jsx)(V0,{className:L,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:N,r:6.5,strokeWidth:2,strokeLinecap:"round",value:b}),(0,n.jsx)("path",{className:x,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className:S,clipRule:"evenodd",d:"M7.5 8.56157L8.84426 9.90564L9.90503 8.84473L8.56078 7.50066L9.90543 6.15582L8.84452 5.09504L7.49986 6.43988L6.15452 5.09473L5.09375 6.15564L6.43909 7.5008L5.09452 8.84555L6.15543 9.90632L7.5 8.56157Z",fillRule:"evenodd"})]})}const vd=({"aria-hidden":t,"aria-label":e,progress:s=0,runnerClass:o,trackClass:r})=>(0,n.jsx)("div",{"aria-hidden":t,"aria-label":e,className:r,role:"img",children:(0,n.jsx)("div",{className:o,style:{width:`${s}%`}})}),OE=q("nav-sidebar-header");function PE(t){const{classProgressRunner:e,classProgressText:s,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:c}=t;return(0,n.jsxs)("div",{className:OE("progress"),children:[(0,n.jsx)("div",{className:s,children:c}),(0,n.jsx)(vd,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o})]})}const ME=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",role:"img",ref:e,viewBox:"0 0 17 17",height:"17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.029 16.2343L8.7361 16.9414L9.44321 16.2343L16.707 8.97048L15.2928 7.55627L9.73903 13.11L9.73903 1.99985L7.73903 1.99985L7.73904 13.1159L2.17939 7.55627L0.765176 8.97048L8.029 16.2343Z"})}),DE=(0,m.forwardRef)(ME);function kE(t){return(0,n.jsx)(is,{...t,viewBox:"0 0 16 8",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15,3H3.4l1.3-1.3c0.4-0.4,0.4-1,0-1.4C4.5,0.1,4.3,0,4,0S3.5,0.1,3.3,0.3l-3,3c-0.4,0.4-0.4,1,0,1.4l3,3c0.4,0.4,1,0.4,1.4,0c0.4-0.4,0.4-1,0-1.4L3.4,5H15c0.6,0,1-0.4,1-1S15.6,3,15,3",fill:"currentColor"})})}function wE(t){return(0,n.jsx)(is,{...Ps()(["Default"],t),viewBox:"0 0 16 8",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 5H12.6L11.3 6.3C10.9 6.7 10.9 7.3 11.3 7.7C11.5 7.9 11.7 8 12 8C12.3 8 12.5 7.9 12.7 7.7L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3C10.9 0.7 10.9 1.3 11.3 1.7L12.6 3H1C0.4 3 0 3.4 0 4C0 4.6 0.4 5 1 5",fill:"currentColor"})})}const BE=({className:t},e)=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",ref:e,version:"1.1",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.971 0.7657L8.2639 0.0585938L7.55679 0.765701L0.292969 8.02952L1.70718 9.44374L7.26096 3.88995L7.26097 15.0002H9.26097L9.26096 3.88409L14.8206 9.44373L16.2348 8.02952L8.971 0.7657Z"})}),_E=(0,m.forwardRef)(BE);function UE(t){return(0,n.jsx)($s,{height:"12",width:"16",viewBox:"0 0 16 12",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M9.6665 2H0.666504V0H9.6665V2ZM12.6665 6H0.666504V4H12.6665V6ZM0.666504 10H7.6665V8H0.666504V10Z",fill:"currentColor",fillRule:"evenodd"})})}function Lp(t){return(0,n.jsx)($s,{height:"8",width:"12",viewBox:"0 0 12 8",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M6.00008 7.91406L11.7072 2.20696L10.293 0.792742L6.00007 5.08564L1.70718 0.792742L0.292969 2.20696L6.00008 7.91406Z",fill:"currentColor",fillRule:"evenodd"})})}function HE(t){return(0,n.jsx)($s,{height:"8",width:"12",viewBox:"0 0 12 8",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M5.99992 0.0859375L0.292818 5.79304L1.70703 7.20726L5.99993 2.91436L10.2928 7.20726L11.707 5.79304L5.99992 0.0859375Z",fill:"currentColor",fillRule:"evenodd"})})}function FE(t){return(0,n.jsxs)($s,{height:"21",width:"20",viewBox:"0 0 20 21",...t,children:[(0,n.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}function zE(t){return(0,n.jsx)($s,{height:"15",width:"16",viewBox:"0 0 16 15",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 6.51982C2 4.02359 4.02359 2 6.51982 2C9.01605 2 11.0396 4.02359 11.0396 6.51982C11.0396 9.01605 9.01605 11.0396 6.51982 11.0396C4.02359 11.0396 2 9.01605 2 6.51982ZM6.51982 0C2.91902 0 0 2.91902 0 6.51982C0 10.1206 2.91902 13.0396 6.51982 13.0396C8.06462 13.0396 9.48394 12.5024 10.6011 11.6045L13.9964 14.9998L15.4106 13.5856L11.9518 10.1268C12.6391 9.09384 13.0396 7.8536 13.0396 6.51982C13.0396 2.91902 10.1206 0 6.51982 0Z",fill:"currentColor",fillRule:"evenodd"})})}function VE(t){return(0,n.jsxs)($s,{height:"18",width:"18",viewBox:"0 0 18 18",...t,children:[(0,n.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function WE(t){return(0,n.jsxs)($s,{height:"14",width:"20",viewBox:"0 0 20 14",...t,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function GE(t){return(0,n.jsx)($s,{height:"14",width:"14",viewBox:"0 0 14 14",...t,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M13.4646 2.46462L11.8484 0.848376L7.00023 5.69652L2.15186 0.848143L0.535612 2.46439L5.38399 7.31276L0.534668 12.1621L2.15091 13.7783L7.00023 8.92901L11.8493 13.7781L13.4656 12.1619L8.61648 7.31276L13.4646 2.46462Z",fill:"currentColor",fillRule:"evenodd"})})}const bp=z,KE={classic:z,default:z,imaginative:se,organic:ue},yp=Object.assign((0,m.createContext)(bp),{displayName:"ThemeContext"});function $E(){return(0,m.useContext)(yp)}function QE({themeId:t,...e}){return(0,n.jsx)(yp.Provider,{...e,value:KE[t]??bp})}function ZE(t){return(0,n.jsx)(n.Fragment,{children:t.children})}function YE(){return null}function Ip(t,e,s){function o(r,a){const d=$E()?.[t]?.[e]??s;return(0,n.jsx)(d,{ref:a,...r,Default:s})}return o.displayName=`ThemeComponent(${e})`,(0,m.forwardRef)(o)}function Dt(t,e=ZE){return Ip("components",t,e)}function zs(t){return Ip("icons",t,YE)}const XE=q("cover");function JE({className:t="",dueAt:e}){const s=Pr(),o=ni(),r=o==null||o.quizPassed||o.outOfAttempts,a=p2(e),c=XE("due-date",{urgent:a}).mix(t);return!e||s&&r?null:(0,n.jsx)("div",{className:c,tag:"div",children:L0(e)})}const qE=Dt("CoverDueDate",JE);function eT(t){const{dueAt:e}=Ut(t);return{dueAt:e}}const tT=(0,X.Ng)(eT)(qE),xa=q("cover"),sT=Dt("CoverProgress",({nextLesson:t,percentComplete:e})=>{const o=(0,Me.Wz)()?`%${e}`:`${e}%`;return e===0||window.isPublicShare||!ye.BI?null:(0,n.jsxs)("div",{className:xa("progress"),children:[(0,n.jsxs)("div",{className:xa("progress-text"),children:[o," Complete"]}),(0,n.jsx)("div",{className:xa("progress-outer"),children:(0,n.jsx)("div",{className:xa("progress-inner"),style:{width:`${e}%`}})}),t&&(0,n.jsxs)("div",{className:xa("progress-next-lesson"),children:[(0,n.jsx)(Ep,{className:xa("progress-next-lesson-icon").toString(),decorative:"true"}),(0,n.jsx)("span",{"aria-hidden":"true",className:xa("progress-next-lesson-text"),children:t.title}),(0,n.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})}),nT=()=>{const t=u0();return(e,{currentLocale:s})=>{const o=t(s,e),r=ca(e);return{nextLesson:o,percentComplete:r}}},oT=Se()(xs.wZ,(0,X.Ng)(nT))(sT),{useLabelsMap:rT}=i(28239),Np=({failed:t,complete:e})=>{const s=rT();return(0,n.jsxs)("span",{className:"visually-hidden-always",children:[t?s?.a11yCoverRequirementFailed||"Requirement failed":e?s?.a11yCoverRequirementComplete||"Requirement complete":s?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},So=q("cover");function aT(){const t=(0,Me.DX)(),e=(0,ze.useLabelsMap)(),{trackingCompletionPercentage:s,trackingQuizId:o}=t;return s==null&&!o?null:(0,n.jsxs)("section",{className:So("requirements-section"),children:[(0,n.jsx)("h2",{className:So("requirements-title"),children:e?.coverCourseRequirements||"Course Requirements"}),(0,n.jsxs)("ul",{className:So("requirements-list"),children:[(0,n.jsx)(iT,{}),(0,n.jsx)(lT,{})]})]})}function iT(){const{trackingCompletionPercentage:t}=(0,Me.DX)(),e=(0,Me.v1)(),s=si(),o=(0,ze.useLabelsMap)(),r=Math.ceil(t/100*e),a=r===e;if(t==null||r==null)return null;const c=s>=t,d=c?mE:pE;return(0,n.jsxs)("li",{className:So("lesson-requirement"),role:"listitem",children:[(0,n.jsx)(d,{className:So("lesson-requirement-icon",{complete:c}).toString(),"aria-hidden":"true"}),(0,n.jsxs)("span",{className:So("lesson-requirement-text"),children:[(0,n.jsx)(Np,{complete:c}),a?o?.coverCompleteAllLessons||"Complete all lessons in this course":[o?.coverCompleteLessonsName||"Complete",r,o?.coverCompleteLessonsPreposition||"of",e,o?.coverCompleteLessonsInCourse||"lessons in this course"].join(" ")]})]})}const cT={passed:vE,failed:gE,requirement:CE};function lT(){const t=(0,ze.useLabelsMap)(),e=Gl(),s=ni(),o=Us(e?.title),r=e?.settings?.passingScore;if(!o||!s)return null;const{outOfAttempts:a,quizPassed:c}=s,d=!c&&a;let l="requirement";c?l="passed":d&&(l="failed");const u=cT[l];return(0,n.jsxs)("li",{className:So("quiz-requirement"),role:"listitem",children:[(0,n.jsx)(u,{className:So("quiz-requirement-icon",{type:l}).toString(),"aria-hidden":"true"}),(0,n.jsxs)("span",{className:So("quiz-requirement-text"),children:[(0,n.jsx)(Np,{failed:d,complete:c}),o,r!=null&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:So("quiz-requirement-seperator"),children:"\xA0|\xA0"}),t?.coverQuizScoreOf||"Score of"," ",r,t?.coverQuizPercentOrHigher||"% or higher"]}),d&&(0,n.jsx)("div",{className:So("quiz-requirement-no-attempts"),children:t?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}function dT(t){const{to:e,children:s}=t,o=(0,ke.zy)(),r=(0,m.useMemo)(()=>(0,P2.B)(e,o),[o,e]);return(0,n.jsx)(O2.k2,{...t,to:r,children:s})}var Qc=i(5683);const jp="focus-lesson-content",lce="preview-nav-to-first-lesson",dce="preview-nav-to-cover-page",ms="preview-nav-to-lesson-item",uce="preview-scroll-to-nav-prev",hce="preview-scroll-to-header",q0="preview-clear-state",Cd="preview-show-nav-prev",xd="preview-show-nav-next",Ap="preview-nav-open",Rp="preview-nav-close",Op="event-lesson-transition-start",Pp="event-lesson-transition-end",Mp="event-lesson-nav-prev-visible",e1="event-lesson-nav-prev-hidden",Dp="event-lesson-nav-next-visible",t1="event-lesson-nav-next-hidden",s1=new WeakMap,kp=new ResizeObserver(t=>{for(const e of t)s1.get(e.target)?.(e)});function Ed(t,e){(0,m.useEffect)(()=>{if(t)return s1.set(t,e),()=>s1.delete(t)},[t,e]),(0,m.useEffect)(()=>{if(t)return kp.observe(t),()=>kp.unobserve(t)},[t])}function uT(){const t=(0,X.wA)(),[e,s]=(0,m.useState)(null),o=(0,ze.useLabelsMap)(),r=(0,m.useCallback)(a=>{t((0,Qc.sf)({offsetHeight:a.target.offsetHeight}))},[t]);return(0,m.useLayoutEffect)(()=>{if(e)return t((0,Qc.sf)({offsetHeight:e.offsetHeight})),()=>t((0,Qc.sf)(null))},[t,e]),Ed(e,r),(0,n.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:wp,ref:s,type:"button",children:(0,n.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,n.jsx)("span",{"aria-hidden":"true",children:(0,n.jsx)(BC,{className:"btn-skip-to-lesson__icon"})})]})})}function mce(t){document.addEventListener(EVENT_FOCUS_LESSON_CONTENT,t)}function pce(t){document.removeEventListener(EVENT_FOCUS_LESSON_CONTENT,t)}function hT(t){(0,bs.A)(jp,t,document)}function wp(){document.dispatchEvent(new CustomEvent(jp))}const n1=(0,m.createContext)(!1);function Td({children:t,inert:e}){const s=o1();return(0,n.jsx)(n1.Provider,{value:s||e,children:t})}const fce=n1.Consumer;function o1(){return(0,m.useContext)(n1)}function mT(t){return t?.sessionPreferences}function Bp(){return(0,X.d4)(t=>mT(t))}const pT=(0,m.forwardRef)((t,e)=>{const{children:s,className:o="lesson-link-item-tooltip",dark:r,visible:a}=t,c=(0,m.useMemo)(()=>q(o),[o]),d=(0,n.jsx)("div",{"aria-hidden":"true",ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:c({visible:a}),children:(0,n.jsx)("div",{className:c("inner",{dark:r,light:!r}),children:s})})})});return(0,Yn.createPortal)(d,document.getElementById("portal"))});function _p(t){const{children:e,className:s,dark:o,restriction:r,tooltipClassName:a,style:c}=t,{prefersKeyboardNavigation:d}=Bp(),l=(0,m.useRef)(),u=(0,m.useRef)(),h=(0,m.useRef)(),p=(0,ze.useLabelsMap)(),f=o1(),[g,v]=(0,m.useState)(!1),C=(0,m.useCallback)(()=>v(!0),[]),E=(0,m.useCallback)(()=>v(!1),[]),L=(0,m.useCallback)(()=>{setTimeout(C,0)},[C]),x=(0,m.useCallback)(()=>{d&&E()},[E,d]),S=(0,m.useCallback)(R=>{yn(R)&&g&&(R.stopPropagation(),E())},[E,g]),b=(0,m.useCallback)(()=>{document.activeElement===l.current&&(clearTimeout(h.current),C())},[C]),N=(0,m.useCallback)(()=>{h.current=setTimeout(E,150)},[E]),I=(0,m.useCallback)(()=>{if(g){const R=l.current.getBoundingClientRect(),P=u.current.offsetParent.getBoundingClientRect(),{height:B,width:_}=R,k=R.left-P.left,J=R.top-P.top;Object.assign(u.current.style,{transform:`translate(${k}px, ${J}px)`,width:`${_}px`,height:`${B}px`})}},[g]);(0,m.useEffect)(()=>{f&&v(!1)},[f]),(0,m.useLayoutEffect)(()=>I(),[I]),(0,bs.A)("resize",I,window),(0,bs.A)("keydown",S,document),np(l,E);let j;return r?.type===_t.XQ.QUIZ?j=`${p.quizRequirePassingScore}: "${r.data}"`:r?.type===_t.XQ.ORDER?j=p.lessonRestricted:r?.type===_t.XQ.KNOWLEDGE_CHECK&&(j=p.knowledgeCheckCorrectAnswerRequiredNav),(0,n.jsxs)("div",{"aria-disabled":!0,className:s,onBlur:x,onFocus:L,onMouseEnter:b,onMouseLeave:N,ref:l,role:"link",tabIndex:f?-1:0,style:c,children:[e,(0,n.jsx)("div",{className:"visually-hidden-always",children:p?.a11yRestrictedNav}),(0,n.jsx)("div",{className:"visually-hidden-always",children:j}),(0,n.jsx)(pT,{className:a,dark:o,ref:u,visible:g,children:j})]})}function fT(t){const{b:e,children:s,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:c,onClick:d=Function.prototype,onFocus:l,onHideProgressTooltip:u,onNavigate:h=Function.prototype,onShowProgressTooltip:p,restriction:f,showProgressDelay:g,style:v}=t,C=o1(),{theme:{progressIndicatorStyle:E=O.Y2.THEME_DEFAULT}}=(0,Me.DX)(),L=E===O.Y2.THEME_DEFAULT,x=(0,m.useCallback)(_=>{d(_),r?(_.preventDefault(),wp()):h(c)},[c,r,d,h]),[S,b]=(0,m.useState)(!1),N=(0,m.useCallback)(_=>{!S&&a&&(g!=null?setTimeout(p,g):p()),l?.(_)},[S,l,g,p,a]),I=(0,m.useCallback)(_=>{a&&yn(_)&&u()},[u,a]),j=(0,m.useCallback)(()=>{a&&b(!0)},[a]),R=(0,m.useCallback)(()=>{a&&b(!1)},[a]),P=f?.type!=null,B=e("link",{active:r,restricted:P,"theme-default":L}).toString();return P?(0,n.jsx)(_p,{...t,className:B,style:v}):(0,n.jsx)(dT,{"aria-current":"page",className:B.toString(),"data-link":"lesson-link-item",onBlur:a?u:void 0,onClick:x,"data-direction":o,onFocus:N,onKeyDown:I,onMouseDown:j,onMouseUp:R,style:v,tabIndex:C?-1:void 0,to:(0,_t.p1)(c),children:s})}function Zc(t){const{className:e="lesson-link-item",isCurrentLesson:s,last:o,lessonId:r,style:a}=t,c=(0,m.useMemo)(()=>q(e),[e]),d=Dr(r),l=d?.type!=null,{isComplete:u=!1}=De(r)??{},h=c({active:s,complete:u,last:o,restricted:l});return(0,n.jsx)("div",{className:h,children:(0,n.jsx)(fT,{...t,b:c,isCurrentLesson:s,restriction:d,style:a})})}const gT=q("lesson-nav"),vT=t=>{const{children:e,finish:s,lessonId:o,onFocus:r}=t;if(o)return(0,n.jsx)(Zc,{className:"lesson-nav-link",onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",...t});const a=s?"/lessons/progress-summary":"/";return(0,n.jsx)("span",{className:"lesson-nav-link",children:(0,n.jsx)(Qn,{className:"lesson-nav-link__link","data-direction":t["data-direction"],onFocus:r,to:a,children:e})})},CT=({buttonScheme:t,accentContrast:e,children:s,className:o,direction:r,finish:a,navLessonId:c,onFocus:d,restrictionType:l},u)=>{const h=l!=null,p=ga(),g={className:gT(null,{[r]:!0,accent:t===O.LE.ACCENT,dark:t===O.LE.DARK,floating:p===O.AY.FLOATING,"floating-full":p===O.AY.FLOATING_FULL,finish:a,full:p===O.AY.FULL,light:t===O.LE.LIGHT,restricted:h,tint:t===O.LE.TINT}).mix(o),[`data-${r}-lesson`]:!0};return(0,n.jsx)("div",{ref:u,...g,children:(0,n.jsx)(vT,{accentContrast:e,"data-direction":r,lessonId:c,onFocus:d,finish:a,children:s})})};function xT(t,e){const{currentLocale:s}=e,o=Ut(t),r=(0,ze.selectLabelsMap)(s,t);return{buttonScheme:o.buttonScheme,accentContrast:o.theme?.accentContrast,labelLessonRestricted:r.lessonRestricted,labelQuizRequirePassingScore:r.quizRequirePassingScore}}const ET=Se()(xs.wZ,(0,X.Ng)(xT,null,null,{forwardRef:!0}),m.forwardRef)(CT),TT={CoverCompletedInformation:y4,CoverDueDate:tT,CoverProgress:oT,CoverRequirements:aT,ImageEagerOrLazy:w2,LessonNav:ET};function ST({children:t}){return(0,n.jsx)(k9,{...TT,children:t})}var LT=i(71129),bT=i(63006);const Up={"rise-course-navigation":!0},yT={"ai-assistant-settings":!0,"ai-assistant-summaries":!0,"ai-assistant-quizzes":!0,"ai-assistant-blocks":!0,"ai-text-to-video":!1,"ai-assistant-images":!0,"ai-assistant-magic-block-import":!0,"ai-assistant-writing":!0,"ai-assistant-enable":!0,"rise-com-360-upsell":!0},r1=(0,m.createContext)(Up);r1.displayName="FeatureFlagsContext";const{Provider:IT}=r1;function NT({children:t,value:e}){const s=(0,m.useMemo)(()=>({...yT,...e,...Up}),[e]);return(0,n.jsx)(IT,{value:s,children:t})}function Sd(){return(0,m.useContext)(r1)}function Ea(t){return Sd()[t]}function vce(t){function e(s){const o=Sd();return jsx(t,{...s,flags:o})}return e.displayName=`withFeatureFlags(${t.displayName||t.name})`,e}function Ld(t,e){return function(s){const o=r=>{const a=Ea(t),c={...r,[e]:a};return(0,n.jsx)(s,{...c})};return o.displayName=`withFeatureFlag(${s.displayName||s.name})`,o}}const Hp=({children:t})=>(0,n.jsx)(n.Fragment,{children:t});Hp.displayName="On";const Fp=({children:t})=>(0,n.jsx)(n.Fragment,{children:t});Fp.displayName="Off";const Ii=({children:t,featureFlags:e})=>{const s=Sd(),o=(0,m.useMemo)(()=>{const c=[].concat(e??[]);return c.length&&c.every(d=>s[d])},[e,s]),{on:r=null,off:a=null}=(0,m.useMemo)(()=>{const c={};return ie().Children.forEach(t,d=>{switch(d.type.displayName){case Ii.On.displayName:c.on=d;break;case Ii.Off.displayName:c.off=d;break;default:c.on=t}}),c},[t]);return o?r:a};Ii.On=Hp,Ii.Off=Fp;const jT={};function AT({children:t}){const e=(0,X.wA)(),s=Sd();return(0,LT.A)(()=>{e((0,bT.G)(s))},[s]),t}function RT({children:t}){const s=Mt()?.features??jT;return(0,n.jsx)(NT,{value:s,children:(0,n.jsx)(AT,{children:t})})}var OT=i(33169),a1=i(41481);const PT=t=>ye.BI?t??"":t?`${t} | ${ye.mZ}`:ye.mZ,Yc=t=>(0,ye.Hm)()?t:PT(t);var MT=i(59288);function Ta({children:t,title:e}){const s=Yc((0,Me.d_)()),o=e??s;return MT.useEffect(()=>{document.title=o},[o]),(0,n.jsx)(n.Fragment,{children:t})}var DT=i(42432),kT=i.n(DT),wT=i(98395),BT=i(88747);const i1=Object.assign((0,m.createContext)(void 0),{displayName:"BlockContext"});function c1({block:t,children:e}){const[s,o]=(0,m.useState)(t);return(0,m.useEffect)(()=>o(r=>t||r),[t]),(0,n.jsx)(i1.Provider,{value:s,children:(0,n.jsx)(Wp,{...s?.settings,children:e})})}const xce=i1.Consumer;function Dn(){return(0,m.useContext)(i1)}function bd(t){return function(s){const o=Dn();return(0,n.jsx)(t,{...s,block:o})}}var _T=i(92348),UT=i.n(_T),HT=i(78483),Wo=i.n(HT),FT=i(98511),Sa=i.n(FT),zT=i(77412);const zp=2,Lo=UT()({WHITE:null,TRANSPARENT:null}),VT={backgroundColor:"",backgroundType:O.xj.LIGHT,cardMode:Lo.WHITE,customBackgroundColorContrast:O.Em.AUTO,entranceAnimation:!0,markerColorContrast:O.Em.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:O.Em.AUTO},WT={knowledge:["knowledge"],knowledgeCheck:["draw from question bank","fillin","matching","multiple choice","multiple response"],flashcard:["flashcard","stack"],interactive:["accordion","tabs"],"interactive-fullscreen":["sorting","timeline","process"],multimedia:["attachment","embed"],quote:["carousel"]};function GT(t,e){return WT[t]?.includes?.(e)??!1}const KT={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function $T(t,e){const s=KT[t]?.[e];return s==null?{}:{backgroundColor:s,backgroundType:O.xj.COLOR}}const QT={360:["storyline"],knowledge:["knowledge"],knowledgeCheck:["multiple choice","multiple response","fillin","matching"],flashcard:["flashcard"],impact:["note"],interactive:["accordion","tabs"],"interactive-fullscreen":["scenario","sorting","timeline"],multimedia:["attachment","code"],quote:["background","carousel"],text:["code"]};function Ece(t,e){return QT[t]?.includes(e)??!1?.1:.5}function ZT(t){switch(t.backgroundType){case O.xj.COLOR:return t.backgroundColor;case O.xj.ACCENT:return t.courseColor;case O.xj.TINT:return(0,ct.WA)(t.courseColor);case O.xj.LIGHT:return"#ffffff";case O.xj.GRAY:return"#fafafa";case O.xj.DARK:return"#303030";case O.xj.BLACK:return"#000000"}}const YT={multimedia:{embed(t){return{cardMode:t.showBorder===!1?Lo.TRANSPARENT:Lo.WHITE}}}};function XT(t,e,s){return JT(t,e,s)}function JT(t,e,s){const o=$T(t,e);(s.v==null||s.v<zp)&&(s=qT(s),s.backgroundColor?.toLowerCase()==="#ffffff"&&Object.keys(o).length===0&&(s=Wo()("backgroundColor",s)));const r=YT[t]?.[e]?.(s),a=s.backgroundColor&&s.backgroundType==null?{backgroundType:O.xj.COLOR}:{};return[{accentColor:null},VT,o,r,s,a,{v:zp}].reduce((l,u)=>u==null?l:{...l,...Sa()(zT.A,u)})}function qT(t){return{...t,backgroundType:null,cardMode:null,v:1}}const eS={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"]};function Tce(t,e){return!eS[t]?.includes(e)}const tS={};function Sce(t,e){return!tS[t]?.includes(e)}function sS(t){return t===IMAGE_OVERLAY_COLOR_TYPES.LIGHT?CONTRAST_COLORS.LIGHT:CONTRAST_COLORS.DARK}function nS(t,e){if(e===TEXT_COLOR.AUTO){const s=getColorRange(t),o=blockCardColorTransformers[s](t);return getTextColorFromBackground(o)===TEXT_COLOR.DARK?CONTRAST_COLORS.DARK:CONTRAST_COLORS.LIGHT}else return e===TEXT_COLOR.LIGHT?CONTRAST_COLORS.LIGHT:CONTRAST_COLORS.DARK}function Lce(t,e,s,o,r){const a=t?.backgroundType;return t?.cardMode===Lo.TRANSPARENT?a===BACKGROUND_TYPES.IMAGE?sS(e?.overlayColor):o&&a!==BACKGROUND_TYPES.ACCENT?r:nS(s,t?.customBackgroundColorContrast):o?r:CONTRAST_COLORS.DARK}const oS={interactive:["accordion","tabs"],"interactive-fullscreen":["labeledgraphic","process","timeline"],list:["numbered","bulleted","checkboxes"]};function bce(t,e){return oS[t]?.includes(e)??!1}var Vp=i(59288);const l1=Object.assign((0,m.createContext)({}),{displayName:"BlockSettingsContext"});function rn(){return(0,m.useContext)(l1)}const rS="settings";function yd(t){return e=>{const s=Vp.forwardRef((o,r)=>{const a=rn(),c={...o,[t??rS]:a};return(0,n.jsx)(e,{...c,ref:r})});return s.displayName=`withBlockSettings(${e.displayName||e.name})`,s}}function qn(){const t=rn();return t==null?null:ZT(t)}const aS="backgroundColor";function iS(t){return e=>{const s=Vp.forwardRef((o,r)=>{const a=qn(),c={...o,[t??aS]:a};return(0,n.jsx)(e,{ref:r,...c})});return s.displayName=`withBackgroundColor(${e.displayName||e.name})`,s}}function Wp({children:t,...e}){const s=Dn(),o=rn(),r=(0,Me.kJ)(),a=(0,m.useMemo)(()=>{const c=s==null?e:XT(s.family,s.variant,e);return{courseColor:r,...o,...c}},[s,e,r,o]);return(0,n.jsx)(l1.Provider,{value:a,children:t})}const yce=l1.Consumer;var Gp=i(58931),cS=i(42006),lS=i(4663),dS=i(39351),kn=i.n(dS),uS=i(23444),La=i.n(uS);const Kp=13,Xc=0,ba=1,Ni=2,hS=Xc|ba|Ni,Jc=4,Id=8,Nd=16,d1=(t,e)=>t&e?t&hS:Xc,jd=t=>e=>{e.keyCode===Kp&&t()},mS=We()(),pS=La()(wt()),fS=La()(Yt()),$p=kn()(pS,fS),Ice=Jn()(wt(),Yt());var Qp=i(94379);const Zp=t=>()=>document.querySelector(t),Nce=t=>{const e=t.value.length;t.focus(),t.setSelectionRange(e,e)},jce=t=>{const e=path(["current","editor"],t);if(!e)return null;const s=e.value.length;return e.focus(),e.setSelectionRange(s,s),t};function Yp(t){return Array.prototype.slice.call(t)}function u1(t,e){const s=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(e==="start")return s.top>=0;if(e==="center"){if(s.height>o)return s.top<=0&&s.bottom>=o;const a=o/2,c=s.top+s.height/2,d=o*.25;return Math.abs(a-c)<d}return e==="end"?s.bottom<=o:s.top>=0&&s.left>=0&&s.bottom<=o&&s.right<=r}function Xp({anchor:t,popover:e,positionX:s}){if(!t||!e)return null;const o=t.getBoundingClientRect(),a=window.getComputedStyle(t).direction==="rtl",c=window.getComputedStyle(e),d=parseFloat(c.marginTop),l=e.offsetWidth,u=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},h=o.top+o.height+e.offsetHeight+d>u.height?o.top-(d*2+e.offsetHeight):o.top+o.height;let p;if(s==="center"){const f=o.left+o.width/2;p=a?u.width-f-l/2:f-l/2}else s==="right"?p=a?u.width-o.left-l:o.right-l:p=Math.min(a?u.width-o.right:o.left,u.width-l);return{left:p,top:h}}const Ace="menu",Rce="menuitem",ji="group",gS="tablist",vS="tabpanel",CS="tab",Oce="radiogroup",Pce="radio",xS=({element:t,isHidden:e})=>{t&&t.setAttribute("aria-hidden",e?"true":"false")},qc=({caption:t,editable:e,id:s,isOverlayType:o,getL10nValue:r})=>{const a=!!(!o&&!e&&r(t));return{figcaptionId:a?`figcaption-${s}`:void 0,isFigure:a,role:a?"figure":void 0,tagName:a?"figure":"div"}};var h1=i(88523);const Jp=":focus{outline: none}",ES=":focus:not(:focus-visible){outline: none}",qp="focus-ring-style",m1=()=>document.getElementById(qp)||TS(),TS=()=>{const t=document.createElement("style");return t.id=qp,document.head.appendChild(t),t},el=0,Ad=-1,SS=()=>{const t=m1();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=Jp},0),(0,X.JD)((0,h1.xi)(!1))}),window.addEventListener("keydown",e3)},e3=t=>{const e=t.target,s=m1();(cd(t)||Hr(t)&&!e.classList.contains("ignore-prefers"))&&(s.innerHTML="",(0,X.JD)((0,h1.xi)(!0)))},t3=({focusVisible:t}={})=>m1().innerHTML=t?ES:Jp,Fr=t=>t?el:Ad,Rd=(t,e)=>{const s=t||{},o=e!==el;s.tabIndex=e,xS({element:t,isHidden:o})},p1=({element:t,selector:e,tabIndex:s})=>{Yp(t.querySelectorAll(e)).forEach(r=>{Rd(r,s)})},LS=(t,e,s)=>(Fs()(t,As(),Do())(e).focus(s),e),bS=(t=>(e,s)=>{const o=e.querySelectorAll('[tabindex = "0"]');return o.length?(LS(We()(t),o,s),!0):!1})(!0),s3=({list:t,index:e})=>{e>=0&&e<us()(t)&&t[e].focus()},yS=({list:t,currentIndex:e})=>{const s=Zt()(e||0),o=s<us()(t)?s:0;return s3({list:t,index:o}),o},IS=({list:t,currentIndex:e})=>{const s=fo()(e||us()(t));return s3({list:t,index:s}),s};function NS(){const t=Ea("big-head-mode");return M()({bigHeadMode:t})}function jS(t){function e(s,o){const r=NS();return(0,n.jsx)(t,{...s,ref:o,easterEggClassNames:r})}return Object.assign((0,m.forwardRef)(e),{displayName:`withEasterEggClassNames(${t.displayName||t.name})`})}var Ai=i(9988),AS=i(45949),Jt=i.n(AS),RS=i(35884),f1=i.n(RS),OS=i(30349),PS=i.n(OS);const MS=vi()(f1()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),We()("#FFF")),DS=Jt()({color:MS}),kS=({accentContrast:t,bodyTypeface:e,color:s,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const c=(0,m.useMemo)(()=>{const u=!(0,ct.Wn)(s),h=(0,ct.xD)(s),p=t===O.Em.DARK||t===O.Em.AUTO&&h===O.Em.DARK;return!r&&(t&&p||!t&&u)?[$e.S6.DARK,$e.S6.LIGHT]:[$e.S6.LIGHT,$e.S6.DARK]},[t,s,r]),[d,l]=c;return(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:PS()({bodyTypeface:e,colorThemeRGB:(0,Ai.A)(s)?.slice(0,3),colorTheme:s,colorThemeContrast:d,colorThemeContrastComplementary:l,colorThemeContrastComplementaryRGB:(0,Ai.A)(l)?.slice(0,3),colorThemeContrastRGB:(0,Ai.A)(d)?.slice(0,3),colorThemeTint:(0,ct.WA)(s),colorThemeTransparent:s+"1A",headingTypeface:o,uiTypeface:a})}})},g1=Se()(kS,DS);g1.displayName="Branding",g1.propTypes={bodyTypeface:A().string,color:A().string.isRequired,headingTypeface:A().string,uiTypeface:A().string};const wS=(0,m.memo)(g1);var BS=i(59288);const n3="riseUnsupportedBrowser",_S={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},US=t=>new RegExp(_S[t],"i").test(window.navigator.userAgent);class o3 extends BS.Component{render(){return US(this.props.env)&&!window.sessionStorage.getItem(n3)?this.renderUnsupported():this.props.children}renderUnsupported(){return(0,n.jsxs)("div",{children:[this.props.children,(0,n.jsx)("div",{className:"browser-support",children:(0,n.jsxs)("div",{className:"browser-support__inner",children:[(0,n.jsx)("p",{className:"browser-support__text browser-support__text--full",children:"You\u2019re using an unsupported browser. For better results, use a modern browser.\xA0"}),(0,n.jsx)("p",{className:"browser-support__text browser-support__text--mobile",children:"Unsupported browser"}),(0,n.jsxs)("a",{href:"https://articulate.com/support/article/System-Requirements-for-Rise",rel:"noopener noreferrer",target:"_blank",className:"browser-support__link",children:[(0,n.jsx)("span",{children:"Learn more"}),(0,n.jsx)("i",{className:"icon icon-chevron-right"})]}),(0,n.jsx)("div",{className:"browser-support__dismiss",onClick:this.handleDismiss.bind(this),children:(0,n.jsx)("span",{className:"browser-support__dismiss-icon",children:"\xD7"})})]})})]})}handleDismiss(){window.sessionStorage.setItem(n3,"true"),this.forceUpdate()}}o3.propTypes={env:A().string.isRequired};var ys=i(33733);const HS=t=>M()("button",{[t.className]:!wt()(t.className),"button--default":t.mode===void 0,"button--extraPadding":t.extraPadding,"button--sidebar brand--ui":t.sidebar,"button--header":t.header,"button--header-done":t.headerDone,"button--outline":t.outline,"button--outline button--outline-transparent":t.outlineTransparent,"button--condensed":t.condensed,"button--inverted":t.inverted,"button--logo":t.logo,"button--inline":t.mode==="inline","button--next":t.next,"button--disabled":t.disabled,"button--controls":t.controls,"button--controls-enhanced":t.controlsEnhanced,"brand--ui":t.accent,"brand--background brand--border":t.branded}),FS=({icon:t})=>t?(0,n.jsx)("i",{className:`button__icon icon-${t}`}):null,zS=({onlyIcon:t,children:e})=>ie().Children.map(e,s=>t&&s.type===void 0?null:s),Od=({accent:t,ariaControls:e,ariaExpanded:s,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:c,className:d,children:l,condensed:u,controls:h,controlsEnhanced:p,disabled:f,el:g,extraPadding:v,header:C,headerDone:E,icon:L,inverted:x,mode:S,next:b,onClick:N=Function.prototype,onlyIcon:I,onMouseDown:j=Function.prototype,outline:R,outlineTransparent:P,sidebar:B,tabIndex:_,type:k,...J})=>{const Z=g||"button";return Z==="button"&&!k&&(k="button"),(0,n.jsxs)(Z,{"aria-controls":e,"aria-expanded":s,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:HS({accent:t,branded:c,className:d,condensed:u,controls:h,controlsEnhanced:p,disabled:f,extraPadding:v,header:C,headerDone:E,inverted:x,mode:S,next:b,outline:R,outlineTransparent:P,sidebar:B}),disabled:f,onClick:N,onMouseDown:j,tabIndex:_,type:k,...J,children:[(0,n.jsx)(FS,{icon:L}),zS({onlyIcon:I,children:l})]})};var VS=i(33744),r3=i.n(VS);const WS=["[href]",'[tabindex]:not([tabindex=""])',"audio[controls]","button:not([disabled])","details:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","summary:not([disabled])","textarea:not([disabled])","video[controls]"].map(t=>`${t}:not([tabindex="-1"]):not([hidden]):not([aria-hidden="true"])`).join(", "),Pd=(t,e=!1)=>s=>{const o=v1(s);if(o.length===0)return;const r=t>=o.length&&e?0:t;return r3()(r,o)},v1=t=>t?Array.from(t.querySelectorAll(WS)).filter(e=>window.getComputedStyle(e).display!=="none"):[],a3=t=>{const e=v1(t);return e.length===0?0:e.findIndex(s=>s==document.activeElement)},i3=Pd(0),c3=Pd(-1),GS=(t,e=!1)=>Pd(a3(t)+1,e)(t),KS=t=>Pd(a3(t)-1)(t),C1=t=>i3(t)?.focus?.(),kce=t=>c3(t)?.focus?.(),wce=(t,e=!1)=>GS(t,e)?.focus?.(),Bce=t=>KS(t)?.focus?.();function $S(){const t=(0,m.useRef)(null);function e(s){const o=i3(t.current),r=c3(t.current);cd(s)&&(s.shiftKey?document.activeElement===o&&(r.focus(),s.preventDefault()):document.activeElement===r&&(o.focus(),s.preventDefault()))}return(0,m.useEffect)(()=>{const s=t?.current;return s?.addEventListener("keydown",e),()=>{s?.removeEventListener("keydown",e)}},[]),t}var QS=i(60670),ZS=i(48270),YS=i(7037),XS=i(33998),JS=i(91244),qS=i(61666),eL=i(80869),tL=i(5861),sL=i(3236),nL=i(85496),oL=i(21234),rL=i(10124),aL=i(54134),iL=i(47763),cL=i(77255),lL=i(40773),dL=i(70161),uL=i(65228),hL=i(49416),mL=i(81291),pL=i(23741),fL=i(63817),gL=i(69540),vL=i(40370),CL=i(33285),xL=i(73442),EL=i(12703),TL=i(47456),SL=i(20084),LL=i(81699),bL=i(29437),yL=i(23707),IL=i(542),NL=i(32130),jL=i(87269),l3=i(14178),AL=i(37676),RL=i(51023),OL=i(25312),PL=i(53330),ML=i(26671),DL=i(1344),kL=i(14961),wL=i(18938),BL=i(73333),_L=i(32748),UL=i(44582),HL=i(98992),FL=i(39260),zL=i(97877),VL=i(90193),WL=i(26454),GL=i(6101),KL=i(38826),$L=i(31334),QL=i(80050),ZL=i(38734),YL=i(44240),XL=i(65111),JL=i(67026),qL=i(69571),eb=i(75722),tb=i(28094),sb=i(95300),nb=i(26463),ob=i(15901),rb=i(32507),ab=i(99932),ib=i(83246),cb=i(978),lb=i(94495),db=i(42741),ub=i(80627),hb=i(84219),mb=i(90652),pb=i(31352),fb=i(76657),gb=i(54943),vb=i(92518),Cb=i(79697),xb=i(78522),Eb=i(79470),Tb=i(21276),Sb=i(35943),Lb=i(6417),bb=i(44199),yb=i(53430),Ib=i(78670),Nb=i(41339),jb=i(11245),Ab=i(39176),Rb=i(15868),Ob=i(95665),Pb=i(26788),Mb=i(83035),Db=i(97333),kb=i(86711),wb=i(39936),Bb=i(15859),_b=i(52726),Ub=i(11825),Hb=i(99811),Fb=i(52898),zb=i(38289),Vb=i(34660),Wb=i(37592),Gb=i(94846),Kb=i(25385),$b=i(24069),Qb=i(9572),Zb=i(67537),Yb=i(96581),Xb=i(27281),Jb=i(90472),qb=i(15646),ey=i(48240),ty=i(39270),sy=i(12137),ny=i(96304),oy=i(15702),ry=i(59246),ay=i(32590),iy=i(63356),cy=i(45199),ly=i(70677),dy=i(50694),uy=i(66087),hy=i(76679),my=i(6139),py=i(46680),fy=i(61563),gy=i(95651),vy=i(46138),Cy=i(18457),xy=i(66233),d3=i(27780),Ey=i(96738),Ty=i(60023),Sy=i(6517),Ly=i(75557),by=i(52193),yy=i(61927),Iy=i(44962),Ny=i(73404),jy=i(53208),Ay=i(36609),Ry=i(21576),Oy=i(81437),Py=i(99440),My=i(53352),Dy=i(20551),ky=i(84893),wy=i(9677),By=i(89865),_y=i(43459),Uy=i(74248),Hy=i(58100),Fy=i(77653),zy=i(58834),Vy=i(19154),Wy=i(54804),Gy=i(47167),Ky=i(44282),$y=i(67559),Qy=i(47421);const Zy={prefix:"fab",iconName:"rise-com",icon:[512,512,[],"e001","M248 3.34C111 3.34 0 114 0 252c0 137 111 248 248 248 137 0 248-111 248-248-.457-137-112-248-248-248zm0 421c-75.4 0-139-48-163-116l326 0c-23.8 67.7-88.2 116-163 116z"]},Yy={prefix:"fab",iconName:"reach",icon:[182,182,[],"e001",["M181.97 99.3826C136.326 99.3826 99.3497 136.325 99.3497 181.926H35.1699C35.1699 100.912 100.881 35.2632 181.97 35.2632V99.3826Z","M41.5029 82.9278C64.4243 82.9278 83.0058 64.3638 83.0058 41.4639C83.0058 18.564 64.4243 0 41.5029 0C18.5815 0 0 18.564 0 41.4639C0 64.3638 18.5815 82.9278 41.5029 82.9278Z"]]},Xy={prefix:"fab",iconName:"audio-plus",icon:[20,20,[],"e001","M1.5 8.75C1.5 8.34375 1.8125 8 2.25 8C2.65625 8 3 8.34375 3 8.75V10C3 12.2188 4.78125 14 7 14C7.71875 14 8.40625 13.8125 9 13.4688C9 13.5 9 13.5 9 13.5C9 14.0625 9.0625 14.5625 9.21875 15.0625C8.75 15.25 8.25 15.4062 7.75 15.4688V16.5H9.25C9.65625 16.5 10 16.8438 10 17.25C10 17.6875 9.65625 18 9.25 18H7H4.75C4.3125 18 4 17.6875 4 17.25C4 16.8438 4.3125 16.5 4.75 16.5H6.25V15.4688C3.5625 15.0938 1.5 12.8125 1.5 10V8.75ZM4 5C4 3.34375 5.34375 2 7 2C8.65625 2 10 3.34375 10 5V10C10 10.125 9.96875 10.25 9.96875 10.375C9.625 10.875 9.34375 11.4375 9.1875 12.0625C8.625 12.6562 7.84375 13 7 13C5.34375 13 4 11.6562 4 10V5ZM5.5 5V10C5.5 10.8438 6.15625 11.5 7 11.5C7.8125 11.5 8.5 10.8438 8.5 10V5C8.5 4.1875 7.8125 3.5 7 3.5C6.15625 3.5 5.5 4.1875 5.5 5ZM10 13.5C10 11.0312 12 9 14.5 9C16.9688 9 19 11.0312 19 13.5C19 16 16.9688 18 14.5 18C12 18 10 16 10 13.5ZM11 8.75C11 8.34375 11.3125 8 11.75 8C12.0312 8 12.2812 8.1875 12.4062 8.40625C11.875 8.625 11.4062 8.90625 11 9.28125V8.75ZM12 13.5C12 13.7812 12.2188 14 12.5 14H14V15.5C14 15.7812 14.2188 16 14.5 16C14.75 16 15 15.7812 15 15.5V14H16.5C16.75 14 17 13.7812 17 13.5C17 13.25 16.75 13 16.5 13H15V11.5C15 11.25 14.75 11 14.5 11C14.2188 11 14 11.25 14 11.5V13H12.5C12.2188 13 12 13.25 12 13.5Z"]},Jy={"alert-circle-solid":l3.GE,"alert-circle":Lb.lE,"alert-diamond":Bb.xG,"arrow-down-from-line":qL.xZ,"arrow-down-to-bracket":eb.a_,"arrow-down-to-line":tb.yH,"arrow-down":JL.B0,"arrow-left":sb.Ce,"arrow-right-from-line":ob.Pe,"arrow-right":nb.dm,"arrow-rotate-left-light":cL.V3,"arrow-rotate-left":rb.V3,"arrow-up-from-bracket":ib.MN,"arrow-up-from-line":cb.s8,"arrow-up-right-from-square":lb.faArrowUpRightFromSquare,"arrow-up":ab.IN,"arrows-two-from-center":ZS.A1,"arrows-two-to-center":YS.hL,"badge-check":EL.Zs,"bar-chart":db.X8,bars:TL.ck,"block-selector":QL.iH,"book-open":hb.Re,"book-sparkles":mb.E4,book:ub.LB,"browser-light":JS.c9,browser:pb.c9,building:XS.UR,"cards-blank":fb.Xm,"caret-down":LL.xB,"caret-right":bL.fU,"chart-column":xL.q9,"check-regular":YL.e6,check:SL.e6,"chevron-down-solid":yL.Jt,"chevron-down":gb.Jt,"chevron-left-light":qS.Wz,"chevron-left-solid":NL.Wz,"chevron-left":vb.Wz,"chevron-right-light":eL.Xk,"chevron-right-solid":jL.Xk,"chevron-right":Cb.Xk,"chevron-up-solid":IL.w2,"chevron-up":xb.w2,"circle-arrow-right":RL.Ni,"circle-arrow-up":AL.yi,"circle-check-regular":Tb.QR,"circle-check-solid":OL.QR,"circle-check":lL.QR,"circle-dot":Sb.pp,"circle-half-stroke":bb.B2,"circle-info":yb.faCircleInfo,"circle-plus-duotone":dL.q_,"circle-plus-regular":Ib.q_,"circle-plus":PL.q_,"circle-small-solid":ML.ZP,"circle-small":Nb.ZP,"circle-solid":l3.GE,"circle-x":DL.Ub,"circle-xmark":jb.bn,"circle-xmark-solid":kL.bn,"circle-xmark-duotone":uL.bn,circle:Eb.GE,"clock-rotate-left":Ab.Yj,clone:Ob.$3,close:Pb.yY,"closed-captioning":Rb.UM,"code-fork-duotone":hL.zt,"code-fork-regular":Mb.zt,code:$y.jT,comment:Db.DN,copy:kb.jP,crop:wb.K1,"edit-regular":_b.MT,"ellipsis-regular":Ub.Dw,"ellipsis-vertical-regular":Hb.nx,envelope:Fb.y_,"external-link":zb.vM,"eye-slash":sL.k6,eye:tL.pS,"file-audio":Wb.qe,"file-duotone":mL.A4,"file-export-light":oL.o1,"file-export":Gb.o1,"file-import":Kb.$M,"file-lines":$b.bL,"file-pdf-light":nL.O_,"file-pdf":Qb.O_,file:Vb.A4,"folder-image":Zb.JK,"folder-open":pL.Uj,gear:Yb.BH,globe:Xb.Bw,"graduation-cap":Jb.eS,"grid-2":qb.Qy,"grid-solid":wL.Qy,"grip-dots-vertical":ey.IM,"hand-pointer":ty.A8,"image-landscape":ny.oC,"image-portrait":oy.E4,image:sy.jb,"info-circle":ry.iW,"layers-solid":KL.qI,"link-simple-slash":cy.r2,"link-simple":iy.wi,"link-slash":ly.TH,link:ay.CQ,list:dy.IT,"location-dot":aL.gK,"lock-keyhole-light":rL.Yp,lock:BL.DW,"magnifying-glass-plus":hy.bM,"magnifying-glass":uy.$U,megaphone:$L.OR,"message-quote":my.ps,"minus-solid":_L.EZ,minus:py.EZ,paintbrush:fL.ue,palette:fy.fy,paste:gy.R9,pause:vy.G1,"pause-solid":UL.G1,"pen-line":Cy.pg,"pen-to-square":xy.faPenToSquare,"pencil-duotone":gL.zL,"pencil-regular":XL.zL,"pencil-thin":Qy.zL,pencil:iL.zL,"play-regular":d3.ij,"play-solid":HL.ij,play:d3.ij,"plus-regular":Ey.QL,plus:Ty.TS,"quote-left":Sy.$7,"rectangle-history-circle-plus":by.Hu,"rectangle-regular":Ly.vt,"rectangle-vertical-history":yy.Lt,rocket:Iy.KM,"ruler-horizontal":Ny.Si,"ruler-triangle":jy.cb,"sliders-simple":FL.AD,"sparkles-solid":zL.p7,sparkles:Ay.p7,"spinner-third":Ry.sq,"square-arrow-down":Py.Y1,"square-arrow-right":My.mT,"square-arrow-up-right":Dy.fL,"square-check-solid":VL.Dn,"square-check":ky.Dn,"square-duo":vL.Nf,"square-info":wy.Lg,"square-plus":By.Vd,square:Oy.Nf,"stopwatch-regular":_y.nw,table:Uy.w9,tag:Hy._2,text:Fy.jw,"trash-can":Vy.sj,trash:zy.yL,"user-group":WL.US,"users-regular":Wy.gd,users:CL.gd,video:Gy.n2,"wand-magic-sparkles":Ky.Ys,"waveform-lines":ZL.Wx,xmark:GL.Jy},qy={"audio-plus":Xy,reach:Yy,"rise-com":Zy};function Lt({"aria-label":t,className:e,classNameIcon:s,color:o,name:r,rotation:a,spin:c,style:d,styleIcon:l}){return(0,n.jsx)("span",{className:e,style:{color:o,...d},children:(0,n.jsx)(QS.g,{"aria-label":t,className:s,icon:Jy[r],rotation:a,spin:c,style:l})})}function _ce({className:t,classNameIcon:e,color:s,name:o,style:r,styleIcon:a}){return jsx("span",{className:t,style:{color:s,...r},children:jsx(FontAwesomeIcon,{className:e,icon:qy[o],style:a})})}const In=q("modal"),x1=ie().forwardRef((t,e)=>{const{children:s,className:o,darkOverlay:r,disableBackgroundScroll:a,disableCloseOnOverlayClick:c,focusFirstInput:d=!0,footer:l,forceToTop:u=!1,heading:h,hideCloseButton:p=!1,hideHeader:f=!1,useTopLayer:g=!0,onCancel:v,onClose:C=Ft.lQ,onClickBack:E,onOverlayClick:L=C,scroll:x=!1,subHeading:S,subText:b,width:N}=t,I=$S(),j=(0,m.useRef)(void 0);(0,m.useEffect)(()=>{const _=k=>{yn(k)&&(k.preventDefault(),k.stopPropagation(),v?.(k),C?.())};return document.addEventListener("keydown",_,!0),()=>{document.removeEventListener("keydown",_,!0)}},[v,C]),(0,m.useEffect)(()=>{const _=I.current;return g?_?.showModal():_?.show(),()=>{_?.close()}},[I,g]),(0,m.useEffect)(()=>{if(d&&I.current){const _=v1(I.current).find(J=>J.tagName==="INPUT"||J.tagName==="TEXTAREA"),k=_||j?.current;k?.focus(),k instanceof HTMLTextAreaElement&&k.setSelectionRange(k.value.length,k.value.length)}},[d,I]),(0,m.useEffect)(()=>(a&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{a&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[a,I]);const R=In({"force-to-top":u}).mix(o),P=In("content",{"with-footer":!!l,"force-scroll":!!x}),B=In("overlay",{dark:!!r});return(0,n.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:R.toString(),onClose:C,ref:_=>{I.current=_,e&&(e.current=_)},role:"dialog",children:[(0,n.jsx)("div",{id:"modal-portal"}),(0,n.jsx)("div",{className:B,onClick:c?void 0:L}),(0,n.jsxs)("div",{className:In("dialog"),style:N?{width:N}:{},children:[(!f||!p)&&(0,n.jsxs)("div",{className:In("heading-wrapper"),children:[(0,n.jsxs)("div",{className:In("heading-flexbox"),children:[!f&&(0,n.jsxs)("div",{className:In("header"),children:[E&&(0,n.jsx)("button",{"aria-label":"back to previous page",className:In("back-button"),onClick:E,type:"button",children:(0,n.jsx)(Lt,{name:"arrow-left",styleIcon:{paddingRight:"1rem",height:"2rem"}})}),(0,n.jsxs)("h1",{id:"modal-heading",className:In("heading"),children:[h,(0,n.jsx)("span",{className:In("subheading"),children:S})]})]}),!p&&(0,n.jsx)("button",{"aria-label":"close dialog",className:In("close"),onClick:C,ref:j,type:"button",children:(0,n.jsx)(Lt,{className:"icon",name:"close"})})]}),b?(0,n.jsx)("h2",{className:In("subtitle"),children:b}):[]]}),(0,n.jsx)("div",{className:P,children:s}),l&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:In("footer-shadow")}),(0,n.jsx)("div",{className:In("footer"),children:l})]})]})]})});var eI=i(13662);function tI(t){return t.global}function sI(t){return tI(t)?.externalLinksModalVisible}const nI=()=>{const t=(0,X.d4)(sI),e=(0,X.wA)(),s=(0,m.useCallback)(()=>e((0,eI.zE)(!1)),[e]);return(0,n.jsx)(ys.F,{children:t&&(0,n.jsx)(ys.B1,{classNames:"modal",timeout:400,children:(0,n.jsx)(x1,{hideCloseButton:!0,hideHeader:!0,onClose:s,width:440,children:(0,n.jsxs)("div",{className:"base-modal__content base-modal__content--centered",children:[(0,n.jsx)("p",{children:"External links are disabled in trial accounts."}),(0,n.jsx)("div",{className:"base-modal__btns",children:(0,n.jsx)(Od,{inverted:!0,onClick:s,children:"OKAY"})})]})})})})};var u3=i(59288);class oI extends u3.Component{componentWillEnter(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}componentDidEnter(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}componentWillExit(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}componentDidExit(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}render(){const{childProps:e,component:s}=this.props,o=Wo()("component",this.props);return(0,n.jsx)(ke.qh,{...o,render:({match:r})=>{const a=mt()(e,{match:r,ref:c=>this.child=c});return u3.createElement(s,a)}})}}const ya=oI;var E1=i(59288);class rI extends E1.Component{componentWillEnter(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}componentDidEnter(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}componentWillExit(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}componentDidExit(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}render(){const{children:e}=this.props,s=Wo()("children",this.props);return(0,n.jsx)(ke.dO,{...s,children:e&&E1.Children.map(e,o=>o!==null&&E1.cloneElement(o,{ref:r=>this.child=r}))})}}const h3=rI;var Md=i(59288);class T1 extends Md.Component{nodeRef=Md.createRef();constructor(e){super(e),this.handleTransition=this.handleTransition.bind(this),this.onEnter=this.onEnter.bind(this),this.onEntered=this.onEntered.bind(this),this.onExit=this.onExit.bind(this),this.onExited=this.onExited.bind(this)}handleTransition(e){const s=this.transitionState;s==="entering"?this.onEnter(e):s==="exiting"&&this.onExit(e)}onEnter(e){const s=this.nodeRef.current;s&&s.componentWillEnter?s.componentWillEnter(e):e()}onEntered(){const e=this.nodeRef.current;e&&e.componentDidEnter&&e.componentDidEnter()}onExit(e){const s=this.nodeRef.current;s&&s.componentWillExit?s.componentWillExit(e):e()}onExited(){const e=this.nodeRef.current;e&&e.componentDidExit&&e.componentDidExit()}render(){const{children:e}=this.props;return(0,n.jsx)(ys.eB,{addEndListener:this.handleTransition,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,nodeRef:this.nodeRef,...this.props,children:s=>(this.transitionState=s,e&&Md.cloneElement(Md.Children.only(e),{ref:this.nodeRef}))})}}const Ri=q("cover");function aI(){const{categories:t}=(0,Me.DX)();return!Array.isArray(t)||t.length===0?null:(0,n.jsxs)("section",{className:Ri("categories-section"),children:[(0,n.jsx)("h2",{className:Ri("categories-title"),children:"Topics"}),(0,n.jsx)("ul",{className:Ri("categories-list"),role:"list",children:t.map(e=>(0,n.jsxs)("li",{className:Ri("categories-item"),role:"listitem",children:[(0,n.jsx)(dE,{className:Ri("categories-icon")}),(0,n.jsx)("span",{className:Ri("categories-item-wrap"),children:e})]},e))})]})}const iI=hi("CoverCompletedInformation"),cI=hi("CoverDueDate"),lI=hi("CoverRequirements"),dI=q("cover"),uI=t=>{const{courseId:e,coursePartnerContent:s,hasPartnerContent:o,publishedAt:r,tenantId:a}=t;return o?(0,n.jsx)(rd,{type:"partner-content",children:(0,n.jsx)(tp,{courseId:e,partnerContent:s,publishedAt:r,tenantId:a})}):null},hI=Dt("CoverCourseInfo",t=>{const{courseId:e,coursePartnerContent:s,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:c}=t,d=dI("details-content-aside",{logo:o});return(0,n.jsxs)("div",{className:d,children:[ye.BI&&(0,n.jsx)(w0,{}),(0,n.jsx)(uI,{courseId:e,coursePartnerContent:s,hasPartnerContent:r,publishedAt:a,tenantId:c}),ye.BI&&!r&&(0,n.jsx)(y9,{}),ye.BI&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(lI,{}),(0,n.jsx)(cI,{}),(0,n.jsx)(iI,{}),(0,n.jsx)(aI,{})]})]})}),mI=q("cover"),pI=Dt("CoverDescription",()=>{const t=(0,Me.DX)(),{navigation:e}=t,s=(0,It.QQ)(t.description),o=e?"description":"description-no-outline";if(!s)return null;const r=ci("description"),a=(0,_s.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":r};return(0,n.jsx)("div",{...a,children:(0,n.jsx)(rd,{type:o,children:(0,n.jsx)(Nt,{className:mI("details-content-description"),value:y0(s)},"text")})})}),m3=q("cover"),fI=({className:t=m3("details-logo"),imageClassName:e=m3("details-logo-image")})=>{const s=(0,Me.DX)()??{},o=(0,It.QQ)(s.media)?.image??{},{height:r,key:a,width:c,scalar:d=$e.C_.SMALL.value}=o,l={width:c*d,height:r*d};if(!a)return null;const u=(0,rs.ME)(o);return(0,n.jsx)("div",{className:t,children:(0,n.jsx)("img",{className:e,src:u,width:l.width,height:l.height,alt:""})})},gI=(t,e)=>{const s=jt()(["lessons",e],t),o=Ye()(0,["percentComplete"],s),r=jt()(["passed"],s);return{isComplete:jt()(["isComplete"],s),percentComplete:o,passedQuiz:r}};var Oi=i(98228),vI=i(2353),ps=i.n(vI),CI=i(3638),hn=i.n(CI);class Gce extends ie().Component{static propTypes={fill:A().string,height:A().number,type:A().string,width:A().number};static get defaultProps(){return{fill:"#000",height:56,type:"bullet",width:56}}render(){const{type:e,fill:s,width:o,height:r}=this.props,c={className:M()("lesson-icon",`lesson-icon--${e}`),height:r,viewBox:`0 0 ${o} ${r}`,width:o},g=Rs()([[ps()("embed"),We()("M15.266 48a7.275 7.275 0 0 1-5.146-12.426l6.35-6.352a7.274 7.274 0 0 1 8.364-1.382l-.607 1.232a5.9 5.9 0 0 0-6.784 1.12l-6.35 6.352a5.9 5.9 0 0 0 8.35 8.35l6.35-6.35a5.942 5.942 0 0 0 1.22-6.578l1.254-.558a7.323 7.323 0 0 1-1.5 8.107l-6.35 6.352A7.257 7.257 0 0 1 15.267 48zm19.1-19.1a7.264 7.264 0 0 1-3.216-.75l.607-1.232a5.9 5.9 0 0 0 6.784-1.12l6.353-6.352a5.9 5.9 0 0 0-8.35-8.35l-6.35 6.352a5.94 5.94 0 0 0-1.22 6.577l-1.255.56a7.322 7.322 0 0 1 1.5-8.108l6.35-6.352a7.278 7.278 0 0 1 10.298 10.288l-6.35 6.35a7.273 7.273 0 0 1-5.148 2.137zm-15.183 8.875l-.97-.975L36.8 18.213l.97.97z")],[ps()("map"),We()("M28.5 48l-.51-.72C27.458 46.53 15 28.837 15 21.57a13.5 13.5 0 1 1 27 0c0 7.266-12.46 24.958-12.99 25.707zm0-38.74a12.3 12.3 0 0 0-12.25 12.31c0 6.07 9.87 20.785 12.25 24.243 2.378-3.458 12.248-18.173 12.248-24.243A12.3 12.3 0 0 0 28.5 9.26zm0 18.257a5.862 5.862 0 1 1 5.83-5.862 5.853 5.853 0 0 1-5.83 5.86zm0-10.464a4.6 4.6 0 1 0 4.58 4.6 4.6 4.6 0 0 0-4.58-4.6z")],[ps()("process"),We()("M28.5 47.21a19.663 19.663 0 0 1-11.19-3.473l.784-1.1A18.364 18.364 0 0 0 34.37 44.9a17.84 17.84 0 0 0 12.263-16.85 17.505 17.505 0 0 0-.982-5.77l-.02-.057 1.296-.435.018.053A18.835 18.835 0 0 1 48 28.05a19.187 19.187 0 0 1-13.186 18.124A19.776 19.776 0 0 1 28.5 47.21zM10.065 34.28l.647-.215-.653.2A18.836 18.836 0 0 1 9 28.048 19.186 19.186 0 0 1 22.186 9.926a19.752 19.752 0 0 1 17.478 2.418l-.782 1.1A18.363 18.363 0 0 0 22.63 11.2a17.84 17.84 0 0 0-12.263 16.848 17.5 17.5 0 0 0 .982 5.77l-.638.246zM19.85 50l-3.6-7.62 8.483-1.062.167 1.332-6.627.83 2.816 5.954zm12.4-35.482l-.127-1.337 6.652-.612-2.612-6.042L37.423 6l3.343 7.733z")],[ps()("sorting"),We()("M25.86 48H8V30.23h17.86V48zM9.445 46.56h14.967V31.67H9.445v14.89zM25.86 25.77H8V8h17.86v17.77zM9.445 24.33h14.967V9.44H9.445v14.89zM48 48H30.134V30.23H48V48zm-16.42-1.44h14.97V31.67H31.58v14.89zM48 25.77H30.134V8H48v17.77zm-16.42-1.44h14.97V9.44H31.58v14.89z")],[ps()("timeline"),We()("M12.075 32a3.5 3.5 0 1 1 3.4-3.5 3.457 3.457 0 0 1-3.4 3.5zm0-5.63a2.13 2.13 0 1 0 2.07 2.13 2.1 2.1 0 0 0-2.07-2.13zM28.5 32a3.5 3.5 0 1 1 3.4-3.5 3.457 3.457 0 0 1-3.4 3.5zm0-5.63a2.13 2.13 0 1 0 2.07 2.13 2.1 2.1 0 0 0-2.07-2.13zM44.924 32a3.5 3.5 0 1 1 3.4-3.5 3.457 3.457 0 0 1-3.4 3.5zm0-5.63a2.13 2.13 0 1 0 2.07 2.13 2.1 2.1 0 0 0-2.07-2.13zM9.34 29.187H0v-1.372h9.34v1.372zm47.66 0h-9.34v-1.372H57v1.372zm-14.957 0H31.236v-1.372h10.808v1.372zm-16.614 0H14.954v-1.372H25.43v1.372z")],[ps()("video"),We()("M1.592 16.973H0V8h8.885v1.613H1.592v7.36zm54.4 0H54.4v-7.36h-7.29V8H56v8.968zM56 48h-8.89v-1.613h7.29v-7.36H56V48zM8.885 48H0v-8.973h1.592v7.36h7.293V48z")],[hn(),We()("M24 28a4 4 0 1 0 8 0 4 4 0 1 0-8 0")]]);return(0,n.jsx)("svg",{...c,children:(0,n.jsx)("path",{fill:s,d:g(e)})})}}function xI({icon:t,...e}){switch(t){case $e.xA.ARTICLE:return(0,n.jsx)(wC,{...e});case $e.xA.INTERACTION:return(0,n.jsx)(h4,{...e});case $e.xA.QUIZ:return(0,n.jsx)(c4,{...e});case $e.xA.VIDEO:return(0,n.jsx)(m4,{...e});default:return(0,n.jsx)("i",{className:"icon icon-Master-02"})}}var tl=i(94267);function Go(){return(0,ke.W5)("/lessons/:currentLessonId")?.params?.currentLessonId}var pr=i(76135);const EI=Dt("LessonProgressGraphic");function Dd({canComplete:t,id:e,isDark:s,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:c,scope:d}){const{color:l,navigationStyle:u}=Mt(),h=De(e),p=Go(),f=$l(e),g=Ql(e),v=Dr(e),C=(0,ze.useLabelsMap)(),E=v?.type!=null,L=h?.isComplete,x=e===p,S=h?.percentComplete??0,b=(0,m.useCallback)(()=>{(0,X.JD)((0,pr.eQ)(e))},[e]),N=(0,m.useCallback)(()=>{(0,X.JD)((0,pr.ss)(e))},[e]);return(0,n.jsx)(cp,{canComplete:t,color:l,hasRestriction:E,isComplete:L,isCurrentLesson:x,isDark:s,isEnabled:o,isFailed:f,isPassed:g,isTooltipVisible:r,navigationStyle:u,onHideTooltip:a,onMarkComplete:b,onMarkReset:N,onShowTooltip:c,percentComplete:S,progressGraphic:EI,scope:d,labels:C})}const TI=q("overview-list-item");function SI({className:t,id:e,last:s}){const o=(0,Oi.W)(),r=Go(),{color:a,isLegacyCourse:c,navigationStyle:d,theme:l}=Mt(),{accentContrast:u}=l,{icon:h,title:p}=Co(e)??{},f=Us(p),g=De(e),v=$l(e),C=Ql(e),E=Dr(e),L=(0,ze.useLabelsMap)(),x=(0,_s.uW)(p)?{"data-l10n-id":p.l10nId}:{"data-change-path":E2(e,"title")},S=g?.isComplete,b=g?.percentComplete??0,N=E?.type!=null,[I,j]=(0,m.useState)(!1),R=(0,m.useCallback)(()=>j(!0),[]),P=(0,m.useCallback)(()=>j(!1),[]),B=M()("overview-list__li",{"overview-list__li--last":s}),_=M()(t,"overview-list-item"),k=(0,m.useCallback)(J=>{const{currentTarget:{hash:Z}}=J;J.preventDefault(),tl.Ay.Events.scrollEvent.register("end",()=>{o.push(Z.slice(1)),tl.Ay.Events.scrollEvent.remove("end")}),tl.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,n.jsx)("li",{...x,className:B,role:"listitem",children:(0,n.jsx)(Zc,{className:_,isTooltipEnabled:!0,lessonId:e,onBlur:P,onClick:k,onHideProgressTooltip:P,onShowProgressTooltip:R,tooltipClassName:"overview-list-item-tooltip",showProgressDelay:25,children:(0,n.jsx)(yI,{color:a,accentContrast:u,hasRestriction:N,isComplete:S,isCurrentLesson:e===r,isFailed:v,isLegacyCourse:c,isPassed:C,isTooltipVisible:I,lessonId:e,lessonIcon:h,lessonTitle:f,navigationStyle:d,onHideTooltip:P,onShowTooltip:R,percentComplete:b,progressGraphic:LI,scope:$e.by.COVER,labels:L})})})}const LI=Dt("LessonProgressGraphic");function bI({isTooltipVisible:t,lessonIcon:e,lessonId:s,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:c}){const d=TI("progress-circle");return(0,n.jsxs)("div",{className:d,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,n.jsx)(xI,{icon:e})}),(0,n.jsx)("span",{className:"overview-list-item__title",children:o}),(0,n.jsx)(Dd,{canComplete:!1,id:s,isDark:!1,isEnabled:!0,isTooltipVisible:t,onHideTooltip:r,onShowTooltip:a,scope:c})]})}const yI=Dt("OverviewListItemLinkContent",bI),II=({value:t,fallback:e})=>{const s=(0,It.QQ)(t),o=(0,Pt.pP)(t);return e?(0,n.jsx)("span",{"data-l10n-id":o,children:s||e}):(0,n.jsx)("span",{"data-l10n-id":o,children:s})};function NI({value:t,children:e}){const s=(0,It.QQ)(t);return e(s)}const wn=II,jI=q("overview-list"),AI=t=>t.reduce((e,s)=>(s.type==="section"?e.push([s]):e[e.length-1]?e[e.length-1].push(s):e.push([s]),e),[]),RI=Dt("OverviewListSectionTitle",({className:t="",...e})=>{const s=Ps()(["Default"],e);return(0,n.jsx)("h2",{...s,className:`${t} overview-list__section-title`})}),OI=({courseProgress:t,lessons:e})=>{const s=(0,ze.useLabelsMap)(),o=AI(e);return(0,n.jsx)("nav",{"aria-label":s?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[c={},...d]=r,{title:l,type:u}=c,h=u==="section",p=h?d:r,f=jI("list",{sectionless:!h});return(0,n.jsxs)("section",{children:[h&&l&&(0,n.jsx)(RI,{children:(0,n.jsx)(wn,{value:l})}),(0,n.jsx)("ol",{className:f,role:"list",children:p.map((g,v)=>{const{passedQuiz:C}=gI(t,g.id);return(0,n.jsx)(SI,{id:g.id,last:p.length>1&&v===p.length-1,passedQuiz:C},g.id)})})]},a)})})};function PI(t){const e=Ut(t),s=cr(t),o=jc(t),r=Mn({course:e,courseProgress:s});return{course:e,courseProgress:s,lessons:o,restrictingQuiz:r}}const MI=(0,m.memo)((0,X.Ng)(PI)(OI));function DI(t){return t?.partnerContent?.content??{}}function S1(){return(0,X.d4)(t=>DI(t))}const kI=t=>Object.values($e.C_).find(e=>e.value==t);function wI(t){return(0,m.useMemo)(()=>kI(t)??$e.C_.SMALL,[t])?.label.toLowerCase()}const Pi=q("cover"),BI=Dt("CoverDetails",({reverseColumns:t})=>{const e=Xs(1200),{description:s,id:o,media:r,navigation:a,partnerContentId:c,publishedAt:d,selectedAuthorId:l,tenantId:u}=Mt(),h=S1(),p=qe()(Ue()("id",l),h),f=!!c&&p,g=Us(r)?.image,v=!Yt()(g),C=!s||!a,E=!s&&!a,L=!!(f||ye.BI),x=Pi("details",{"rise-com":ye.BI,"rise-com-authoring":ye.BI&&!d}),S=Pi("details-content-wrap",{columns:L,logo:v}),b=Pi("details-content",{"no-description-or-outline":C}),N=Pi("details-logo",{centered:E,"no-description-or-outline":C,"has-partner-content":!!c}),I=L&&(0,n.jsx)(hI,{courseId:o,coursePartnerContent:p,hasLogo:v,hasPartnerContent:f,publishedAt:d,tenantId:u}),j=wI(g?.scalar),R=Pi("details-logo-image",{[j]:!0}),P=Pi("details-description-outline");return(0,n.jsx)("section",{className:x,children:(0,n.jsxs)("div",{className:S,children:[!e&&t&&I,(0,n.jsxs)("div",{className:b,children:[(0,n.jsx)(fI,{className:N,imageClassName:R}),(0,n.jsxs)("div",{className:P,children:[s&&(0,n.jsx)(pI,{}),e&&I,a&&(0,n.jsx)(rd,{type:"outline",children:(0,n.jsx)(MI,{})})]})]}),!e&&!t&&I]})})}),_I=Dt("CoverHeader"),UI=Dt("CoverLayout");var Ia=i(13082),HI=i(16832),sl=i(86145);const FI=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),kd=t=>{try{return FI.of(t)}catch(e){return console.warn(`Language ${t} invalid`,e),t}},Mi=q("locale-selector"),L1=()=>{const t=(0,ke.zy)(),e=(0,Me.DX)(),s=(0,It.bs)(),o=Us(e.title),{currentLocale:r,setCurrentLocale:a}=(0,xs.nY)(),c=(0,Me.vU)(),[d,l]=(0,m.useState)(!1),u=(s?.length||0)>1,h=(0,m.useCallback)(g=>{(0,de.xS)(g),a(g)},[a]);(0,m.useEffect)(()=>{if(!s||d)return;if(s.length===1){h(s[0]),l(!0);return}const g=(0,de.y4)(void 0),v=(0,de.JK)()??"";if(v!==""){h(v),l(!0);return}g?.[HI.WY]==null&&v===""||(0,X.JD)((0,sl.Wp)(!1));const E=(navigator.language??"en-US").toLowerCase(),L=s.find(x=>x.toLowerCase()===E);h(L?E:s[0]),l(!0)},[s,t,h,d]);const p=g=>{g.preventDefault();const v=g.target.value;h(v)},f=()=>{(0,X.JD)((0,sl.Wp)(!1))};return!s||!u?null:(0,n.jsx)(ys.B1,{classNames:"modal",timeout:400,children:(0,n.jsx)(x1,{disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:()=>(0,X.JD)((0,sl.Wp)(!1)),useTopLayer:!1,className:Mi("modal"),children:(0,n.jsxs)("div",{className:Mi("container"),children:[(0,n.jsx)("div",{className:Mi("heading"),children:c.l10nChooseLanguage}),(0,n.jsx)("div",{className:Mi("course-title"),children:o}),(0,n.jsx)("div",{className:Mi("selector"),children:(0,n.jsx)("select",{onChange:p,value:r,children:s.map(g=>(0,n.jsx)("option",{value:g,children:kd(g)},g))})}),(0,n.jsx)("div",{className:Mi("footer"),children:(0,n.jsx)(Ia.ZH,{onClick:f,size:"xl",children:c.l10nChooseLanguageContinue})})]})})})},zI=q("cover-container");function VI({labels:t,isEntering:e,isExiting:s}){const o=t?.overviewPageTitleSuffix,r=Mo();return(0,n.jsxs)(Ta,{title:Yc(`${r} - ${o}`),children:[(0,n.jsx)("main",{children:(0,n.jsx)("div",{className:zI({entering:e,exiting:s}),children:(0,n.jsxs)(UI,{children:[(0,n.jsx)(_I,{}),(0,n.jsx)(BI,{})]})})}),(0,n.jsx)(L1,{})]})}class p3 extends m.Component{state={isEntering:!1,isExiting:!1};componentDidMount(){this.props.didNavigate&&document.querySelector("h1")?.focus({preventScroll:!0})}componentDidEnter(){this.setState({isEntering:!1})}componentWillEnter(e){this.setState({isEntering:!0},()=>{this.willEnterTimeout=setTimeout(e,O.WQ)})}componentWillExit(e){this.setState({isExiting:!0},()=>{this.willExitTimeout=setTimeout(e,O.WQ)})}componentWillUnmount(){clearTimeout(this.willEnterTimeout),clearTimeout(this.willExitTimeout)}render(){return(0,n.jsx)(VI,{...this.props,...this.state})}}var f3=i(62013),WI=i(19656),b1=i.n(WI),GI=i(41558),Nn=i.n(GI);const KI=t=>{let e="";const s=(o,r)=>{if(r.type==="section")return e=r.id,r.children=[],ot()(o,[r]);if(e){r.sectionId=e;const a=Ts()(Ue()("id",e))(o);return o[a].children=ot()(o[a].children,[r]),o}return ot()(o,[r])};return Nn()(s,[],t)},$I=(t,e)=>{const s=Se()(qe()(Ue()("id",e)),Pe()("children")),o=Se()(qe()(s),Qt()(Ue()("type","section")),KI)(t);return o?[o.id]:[]},QI=t=>Ts()(Ue()("id",t)),ZI=kn()(Ue()("family","continue"),Ue()("variant","continue")),g3=Se()(b1()(ZI),tt()([],"items"));var v3=i(96476);function YI(t){switch(t){case"a":return 46.5;default:return 7.6}}function XI(t){switch(t){case"d":return 2;default:return 3.2}}function JI(t){switch(t){case"a":return 30;case"c":case"d":return 92;case"note":default:return 76}}function C3(t){switch(t){case"b":return 95;case"background":return 52;default:return 76}}function x3(t){switch(t){case"a":case"b":case"carousel":default:return 6.4;case"c":return 18.6;case"d":return 8;case"background":return 6}}function qI(t){switch(t){case"dark":case"light":default:return .3}}function Yce(t){switch(t){case 3:return"three";case 4:return"four";case 2:default:return"two"}}function eN(t){switch(t){case"light":return"#fff";case"dark":default:return"#000"}}function Xce(t){switch(t){case"a":case"b":default:return[6.4,9.6,16];case"c":return[10,14.8,18.6];case"d":return[8,12,16];case"background":return[6,9.6,16];case"carousel":return[6.4,10,16]}}function Jce(t){switch(t){case"b":return[52,76,95];default:return[52,76,92]}}function qce(t){switch(t){case"a":return[30,76,92];default:return[52,76,92]}}function ele(t){switch(t){case"d":return[2,4.8,5.6];default:return[3.2,4.8,5.6]}}function tle(t){switch(t){case"a":return[46.5,78,120];default:return[7.6,20,32]}}function tN(t){switch(t){case 3:return"sm";case 10:return"lg";case 6:default:return"med"}}function E3(t,e){switch(e){case 6:case 6.4:case 8:default:return"sm";case 9.6:case 12:case 14.8:return"med";case 16:case 18.6:return"lg";case 10:return t==="c"?"sm":"med"}}function sN(t){switch(t){case 52:return"sm";case 76:return"med";case 92:default:return"lg"}}function T3(t){switch(t){case 52:return"sm";case 76:return"med";case 92:case 95:default:return"lg"}}function S3(t){switch(t){case 4:return"med";case 6:return"lg";case 2:default:return"sm"}}function y1(t){switch(t){case 52:return"sm";case 92:return"lg";case 76:default:return"med"}}function nN(t){switch(t){case 30:case 52:return"sm";case 92:return"lg";case 76:default:return"med"}}function oN(t){switch(t){case 4.8:return"med";case 5.6:return"lg";case 2:case 3.2:default:return"sm"}}function rN(t){switch(t){case 20:case 78:return"med";case 32:case 120:return"lg";case 7.6:case 46.5:default:return"sm"}}function aN(t){switch(t){case 1:return"sm";case 3:return"lg";case 1.5:default:return"med"}}function iN(t){switch(t){case 3.2:return"med";case 5.6:return"lg";case .8:default:return"sm"}}const Ms=({value:t,className:e,allowTabNavigation:s=!0,tagName:o,id:r})=>{const{value:a}=N2((0,It.QQ)(t));return a?(0,n.jsx)(Nt,{className:e,value:t,allowTabNavigation:s,tagName:o,id:r}):null},cN=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),I1=(t,e)=>cN.test(e)?e:t;var N1=i(41021);function wd(){const t=Dn(),e=t?.background,o=t?.settings?.backgroundType,r=(0,It.QQ)(e?.media)?.image;return o===O.xj.IMAGE?r:null}function lN(){const t=wd();return(0,gn.I6)(t?.alt)}function dN(){const t=wd();if(!t)return null;const{alpha:e,overlayColor:s=O.df.DARK}=t,o=(0,rs.ME)(t),r=s===O.df.LIGHT?O.qH:O.KJ;return(0,N1.A)({alpha:e,color:r,url:o})}function jn(t){const{contrast:e=O.Em.AUTO,backgroundColor:s="#fff"}=t,o=I1("#fff",s),r=(0,ct.xD)(o);return e===O.Em.DARK||e===O.Em.AUTO&&r===O.Em.DARK?$e.S6.DARK:$e.S6.LIGHT}function uN(){const t=Dn(),e=t?.family,s=t?.variant,r=rn()?.cardMode;return GT(e,s)&&r?.toLowerCase()}function hN(){const t=qn(),e=t?(0,ct.XC)(t):ct.lL.LIGHT;return wc()(e.toLowerCase())}function mN(){return rn()?.backgroundType?.toLowerCase()}function pN(){const t=(0,Me.DX)(),e=t?.theme?.accentContrast,s=rn(),o=qn(),r=Dn(),a=r?.family,c=r?.variant,{accentColor:d,backgroundType:l,customBackgroundColorContrast:u}=s,h=(0,ct.cP)(o)?O.Em.LIGHT:O.Em.DARK,p=!u&&(a==="image"||a==="chart"||c==="sorting"),f=u??O.Em.DARK,g=p?h:f,v=l===O.xj.ACCENT||l===O.xj.COLOR,C=d||t?.theme?.colorAccent,E=l===O.xj.ACCENT?C:o,L=l===O.xj.ACCENT?e:g,x=jn({backgroundColor:E,contrast:L});return v&&x==$e.S6.LIGHT}function fN(){const{backgroundColor:t,customBackgroundColorContrast:e}=rn(),s=Dn(),o=(0,ct.cP)(t)?O.Em.LIGHT:O.Em.DARK,r=!e&&(s?.family==="image"||s?.family==="chart"||s?.variant==="sorting"),a=e??O.Em.DARK;return jn({backgroundColor:t,contrast:r?o:a})}function gN(){const t=wd(),e=!!t,s=t?.overlayColor;return e&&s===O.df.LIGHT}function vN(){const t=Dn(),e=t?.settings?.backgroundType,s=!t?.settings?.customBackgroundColorContrast;return e===null||s}function CN(t,e){const{className:s="",tag:o="div",style:r={},...a}=t,{backgroundColor:c}=rn(),d=fN(),l=d===$e.S6.DARK?$e.S6.LIGHT:$e.S6.DARK;return c!==""&&Object.assign(r,{"--color-background-contrast":d,"--color-background-contrast-complementary":l,"--color-background-contrast-rgb":(0,Ai.A)(d)?.slice(0,3)}),(0,n.jsx)(o,{...a,className:s,ref:e,style:r})}const L3=(0,m.forwardRef)(CN),j1=t=>`${t}rem`;function xN(){const t=rn(),e=j1(t?.paddingBottom),s=j1(t?.paddingTop);return{paddingBottom:e,paddingTop:s}}function nle(){const t=useBlockSettings();return j1(t?.width)}const EN=Ps()(["settings"]),b3=q("block-wrapper"),TN=q("bg"),SN=(t,e)=>{const{children:s,className:o,defaultBackgroundColor:r="",style:a,tag:c,type:d,...l}=t,u=Dn(),{paddingBottom:h,paddingTop:p}=xN(),f=hN(),g=uN(),v=mN(),C=pN(),E=gN(),L=dN(),x=lN(),S=I1(r,qn()),b=S||"transparent",N=u?.className,I={...a,...L,"--color-background":S,boxShadow:`0px 1px 0px ${b} `,paddingBottom:h,paddingTop:p},j=M()(o,{"bg--legacy-background":vN(),[`block-${d}`]:!!d}),R=TN({card:g,range:f,type:v,"overlay-light":E,"contrast-light":C}),P=N?b3({}).mix(R).mix(N):b3({}).mix(R),B=[j,P.toString()].join(" ");return(0,n.jsxs)(L3,{...EN(l),className:B,ref:e,style:I,tag:c,children:[(0,n.jsx)("span",{"aria-label":x,role:(0,gn.Vx)(x)}),s]})},qt=(0,m.forwardRef)(SN),An=hi("ImageEagerOrLazy");var LN=i(2216),ole=i(29308);function y3(t){return(0,n.jsx)(LN.A,{IconUnzoom:yN,IconZoom:bN,...t})}const bN=()=>(0,n.jsx)(Lt,{name:"arrows-two-from-center"}),yN=()=>(0,n.jsx)(Lt,{name:"arrows-two-to-center"}),I3=q("block-text");function IN({children:t,item:e,labels:s}){const o="media"in e?e.media:void 0,r=(0,It.QQ)(o)?.image,a=(0,rs.ME)(r),c=(0,gn.Ll)(r?.alt??""),l=Dn()?.settings,u=l?.images,h=l?.zoomOnClick,p=(0,m.useRef)(void 0);let f=(0,n.jsx)(An,{alt:c,ref:p,src:a,"data-l10n-id":(0,Pt.pP)(o)});return h&&(f=(0,n.jsx)(y3,{a11yNameButtonUnzoom:s?.a11yUnzoomImage,a11yNameButtonZoom:s?.a11yZoomImage,children:f})),(0,n.jsxs)("div",{className:I3("col"),children:[u&&r&&(0,n.jsx)("div",{className:I3("image"),children:f}),t]})}var NN=i(31316),A1=i.n(NN),jN=i(97086),R1=i(64653);const AN=q("portal-tooltip"),an={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},RN=(t,e,s)=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=window.visualViewport;let c=s;(c===an.ABOVE||c===an.BELOW)&&(o.bottom-r.height<0&&(c=an.BELOW),r.height+o.top>a.height&&(c=an.ABOVE)),(c===an.LEFT||c===an.RIGHT)&&(r.left<0&&(c=an.RIGHT),r.width+o.left>a.width&&(c=an.LEFT));const d={left:0,right:0,top:0,bottom:0};c===an.ABOVE&&(d.top=o.top-r.height-25),c===an.BELOW&&(d.top=o.top+o.height),c===an.RIGHT&&(d.left=o.left+o.width+70),c===an.LEFT&&(d.left=o.left-r.width-25),(c===an.LEFT||c===an.RIGHT)&&(d.top=o.top-o.height/2),(c===an.ABOVE||c===an.BELOW)&&(d.left=o.left+o.width/2);const l=o.left+o.width/2,u=r.width/2+l>a.width,h=r.width/2>l;u?e.classList.add("portal-tooltip__tooltip--offset-right"):h&&e.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(d).map(p=>d[p]===0?e.style.removeProperty(p):e.style.setProperty(p,`${d[p]}px`)),e.classList.add(`portal-tooltip__tooltip--${c.toLowerCase()}`)};function ON({children:t,className:e,direction:s=an.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:c}){const[d,l]=(0,m.useState)(!1),[u]=(0,m.useState)(!1),h=(0,m.useRef)(null),p=(0,m.useRef)(null),[f,g]=(0,jN.A)(()=>t),v=(0,m.useCallback)(()=>l(!0),[l]),C=(0,m.useCallback)(()=>l(!1),[l]);return(0,m.useEffect)(()=>(document.addEventListener("scroll",v),document.addEventListener("scrollend",C),()=>{document.removeEventListener("scroll",v),document.removeEventListener("scrollend",C)})),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:h,children:f}),a&&(g||u||o)&&!d&&(0,n.jsx)(ys.B1,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,n.jsx)(PN,{buttonRef:h,className:e,direction:s,elementFocused:o,hovering:g,message:a,portalRef:p,style:c})})]})}function PN({buttonRef:t,className:e,direction:s,elementFocused:o,hovering:r,message:a,portalRef:c,style:d}){const l=(0,m.useCallback)(()=>RN(t.current,c.current,s),[t,s,c]),u=(0,m.useCallback)(()=>{c.current&&l()},[c,l]),h=()=>{!r&&!o&&c.current&&(c.current.style=null)};return(0,R1.A)(u),(0,Yn.createPortal)((0,n.jsx)("div",{"aria-hidden":!r||!o,className:AN("tooltip").mix(e).toString(),onTransitionEnd:h,ref:c,style:d,children:a}),document.getElementById("portal"))}const nl=ON;var es=i(59288);const ol=es.createContext(null);function MN({children:t,className:e,isDisabled:s,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:c,portalArgs:d,positionX:l="left",value:u}){const[h,p]=es.useState(null),f=(0,as.A)(h),[g,v]=es.useState(!1),C=(0,as.A)(g),[E,L]=es.useState(null),x=es.useRef(void 0),S=es.useRef(void 0),b=es.useRef(void 0),I=`select-${es.useId()}`,j=`${I}-content`,R=h?.id,P=es.useCallback(G=>{const Y=G.currentTarget;N3(Y)||(v(!1),p(Y),c(Y.getAttribute("data-value")),G.stopPropagation())},[c]),B=es.useCallback(G=>{p(G)},[]),_=es.useCallback(()=>{v(G=>!G)},[]),k=es.useCallback(()=>{const{left:G,top:Y}=Xp({anchor:S.current,popover:b.current,positionX:l}),oe=window.getComputedStyle(S.current).direction==="rtl"?-G:G;L({transform:`translate3d(${oe}px, ${Y}px, 0)`,visibility:"visible",width:`${S.current?.offsetWidth}px`})},[l]),J=es.useCallback(G=>{const Y=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),Ee=Y.length,fe=Y.findIndex(Ae=>Ae.getAttribute("data-select-item")==="current");let oe,we=fe+1;for(let Ae=0;Ae<Ee;Ae++){we>=Ee&&(we=0);const _e=Y[Ae];if(_e!=null&&!N3(_e)&&BN(_e,G)){oe=Ae;break}else we=Ee-1}oe&&(p(Y[oe]),Y[oe]?.scrollIntoView({block:"center"}))},[]),Z=es.useCallback(G=>{const Y=G.key;if(G.ctrlKey||G.metaKey)return;let Ee=!1;const fe=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),oe=fe.findIndex(we=>we.getAttribute("data-select-item")==="current");if(g)if(Y.length===1&&Y!==" "&&!G.altKey&&!G.ctrlKey&&!G.metaKey)J(Y);else switch(Y){case" ":case"Enter":v(!1),fe[oe]!=null&&c(fe[oe].getAttribute("data-value")),Ee=!0;break;case"Esc":case"Escape":v(!1),p(fe.find(we=>we.getAttribute("aria-selected")==="true")),Ee=!0;break;case"ArrowUp":G.altKey?(v(!1),fe[oe]!=null&&c(fe[oe].getAttribute("data-value")??"")):oe>0&&(p(fe[oe-1]),fe[oe-1].scrollIntoView({block:"center"})),Ee=!0;break;case"ArrowDown":oe<fe.length-1&&(p(fe[oe+1]),fe[oe+1].scrollIntoView({block:"center"})),Ee=!0;break;case"Home":p(fe[0]),fe[0]?.scrollIntoView({block:"center"}),Ee=!0;break;case"End":p(fe[fe.length-1]),fe[fe.length-1]?.scrollIntoView({block:"center"}),Ee=!0;break;case"PageUp":p(fe[0]),fe[0]?.scrollIntoView({block:"center"}),Ee=!0;break;case"PageDown":p(fe[fe.length-1]),fe[fe.length-1]?.scrollIntoView({block:"center"}),Ee=!0;break;case"Tab":v(!1),fe[oe]!=null&&c(fe[oe].getAttribute("data-value"));break}else if(Y.length===1&&Y!==" "&&!G.altKey&&!G.ctrlKey&&!G.metaKey)v(!0),J(Y);else switch(Y){case" ":case"Enter":v(!0),Ee=!0;break;case"ArrowUp":v(!0),p(fe[0]),Ee=!0;break;case"ArrowDown":v(!0),Ee=!0;break;case"Home":v(!0),p(fe[0]),Ee=!0;break;case"End":v(!0),p(fe[fe.length-1]),Ee=!0;break}Ee&&(G.stopPropagation(),G.preventDefault())},[J,g,c]);return es.useEffect(()=>{const G=b.current?.querySelector('[data-select-item][aria-selected="true"]');p(G)},[]),es.useEffect(()=>{const G=b.current?.querySelector(`[data-select-item][data-value="${u}"]`);p(G)},[u]),es.useEffect(()=>{const G=Y=>{g&&x.current!=null&&b.current!=null&&!x.current.contains(Y.target)&&!b.current.contains(Y.target)&&v(!1)};return g?document.addEventListener("click",G):document.removeEventListener("click",G),()=>{document.removeEventListener("click",G)}},[g]),es.useEffect(()=>(g?window.addEventListener("resize",k):window.removeEventListener("resize",k),()=>{window.removeEventListener("resize",k)}),[k,g]),es.useEffect(()=>{const G=id(x.current);for(const Y of G)g?Y?.addEventListener("scroll",k,{passive:!0}):Y?.removeEventListener("scroll",k);return()=>{for(const Y of G)Y?.removeEventListener("scroll",k)}},[k,g]),es.useEffect(()=>{g?k():L(null)},[k,g]),es.useEffect(()=>{g&&f!=null&&f!==h&&r?.({value:h.getAttribute("data-value")})},[g,f,h,r]),es.useEffect(()=>{if(C&&!g)o?.();else if(!C&&g&&(a?.(),x.current)){const G=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:x.current}});x.current.dispatchEvent(G)}},[C,g,o,a]),es.useEffect(()=>{const G=Y=>{Y.detail.target!==x.current&&v(!1)};return document.addEventListener("comboboxopen",G),()=>{document.removeEventListener("comboboxopen",G)}},[]),(0,n.jsx)(ol.Provider,{value:{activeEl:h,htmlIdActiveDescendant:R,htmlIdBase:I,htmlIdContent:j,isExpanded:g,onItemClick:P,onItemHover:B,onTriggerClick:_,onTriggerKeyDown:Z,portalArgs:d,refContent:b,refTrigger:S,selectedValue:u,styleContent:E},children:(0,n.jsx)("div",{"aria-owns":j,className:e,inert:s?!0:void 0,ref:x,children:t})})}function DN({children:t,className:e,labelledBy:s,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:c,isExpanded:d,onTriggerClick:l,onTriggerKeyDown:u,refTrigger:h}=es.useContext(ol),p=!!o,f=o??"button";return(0,n.jsxs)(f,{"aria-activedescendant":a,"aria-controls":c,"aria-expanded":d,"aria-haspopup":"listbox","aria-labelledby":s,className:e,"data-select-trigger":p?void 0:"",onClick:l,onKeyDown:u,ref:h,role:"combobox",type:"button",...r,children:[(0,n.jsx)("span",{"data-select-trigger-text":"",children:t}),(0,n.jsx)("span",{"data-select-trigger-icon":"",children:d?(0,n.jsx)(Lt,{name:"chevron-up"}):(0,n.jsx)(Lt,{name:"chevron-down"})})]})}function kN({children:t,className:e,labelledBy:s,style:o={}}){const{htmlIdContent:r,isExpanded:a,portalArgs:c,refContent:d,styleContent:l}=es.useContext(ol);return Yn.createPortal((0,n.jsx)("div",{"aria-labelledby":s,className:e,"data-select-content":"",hidden:a?void 0:!0,id:r,ref:d,role:"listbox",style:{...l,...o},children:t}),kr(c))}function rle({children:t,className:e,labelText:s}){const{htmlIdBase:o}=es.useContext(ol),r=es.useId(),a=`${o}-group-label-${r}`;return jsxs("div",{"aria-labelledby":a,className:e,"data-select-group":"",role:"group",children:[jsx("div",{"data-select-group-label":"",id:a,role:"presentation",children:s}),t]})}function wN({children:t,className:e,labelledBy:s,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:c,onItemClick:d,onItemHover:l,selectedValue:u}=es.useContext(ol),h=es.useRef(void 0),p=es.useId(),f=h.current===a,g=r===u,v=`${c}-option-${p}`,C=es.useCallback(()=>{l(h.current)},[l]);return(0,n.jsxs)("div",{"aria-disabled":o,"aria-labelledby":s,"aria-selected":g,className:e,"data-select-item":f?"current":"","data-value":r,id:v,onClick:o?void 0:d,onMouseEnter:C,ref:h,role:"option",children:[t,g&&(0,n.jsx)("span",{"data-select-item-selected":"",children:(0,n.jsx)(Lt,{name:"check"})})]})}function ale({children:t}){return jsx("span",{"data-select-item-icon":"",children:t})}function ile({className:t}){return jsx("hr",{className:t,"data-select-separator":""})}function N3(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function BN(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const _N=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(t=>({value:t,label:`${t}x`})),O1=q("playback-speed-menu"),j3=({onFocus:t,onBlur:e,onMouseEnter:s,onMouseLeave:o,onChange:r,speed:a,triggerClassName:c=""})=>{const d=(0,G2.A)();return(0,n.jsxs)(MN,{className:O1(),onSelect:l=>r(parseFloat(l)),value:String(a),portalArgs:{id:"portal",childType:"dialog"},children:[(0,n.jsxs)(DN,{className:[O1("trigger"),c].join(" "),labelledBy:d,as:Ia.ZH,variant:"tertiary",shape:"square",size:"sm",onBlur:e,onFocus:t,onMouseEnter:s,onMouseLeave:o,children:[a,"x"]}),(0,n.jsx)(kN,{className:O1("content"),labelledBy:d,children:_N.map((l,u)=>(0,n.jsx)(wN,{value:String(l.value??""),children:l.label},u))})]})};var P1=i(72181);const UN=(0,he.action)(P1.l6),HN=(0,he.action)(P1.ju),rl=(0,he.action)(P1.Y8);var FN=i(60213),A3=i(36563),zN=i(21784);const VN=(0,A3._w)([FN.z]);function WN(){return"* "}const GN=new zN.K6({bulletList(t,e){t.renderList(e," ",WN)},orderedList(t,e){const s=e.attrs.order??1,o=String(s+e.childCount-1).length,r=t.repeat(" ",o+2);t.renderList(e,r,a=>{const c=String(s+a);return t.repeat(" ",o-c.length)+c+". "})},listItem(t,e){t.renderContent(e)},text(t,e){t.text(e.text)},math(t,e){typeof e.attrs.tex=="string"&&t.text(e.attrs.tex)}},{},{strict:!1});function fr(t){if(t==null)return t;const e=(0,A3.ui)(t,VN);return GN.serialize(e,{tightLists:!0})}const R3=(t,e,s)=>{if(t.variant==="audio"||t.family==="gallery"&&t.variant==="centered")return KN(t,e,s);if(t.variant==="flashcard"||t.variant==="stack")return $N(t,e,s);if(t.family==="image")return QN(t,e,s);if(t.variant==="accordion"||t.variant==="labeledgraphic"||t.variant==="process"||t.variant==="tabs"||t.variant==="timeline")return ZN(t,e,s);if(t.family==="list")return YN(t,e,s);if(t.family==="text")return JN(t,e,s);if(t.family==="impact")return qN(t,e,s)},KN=(t,e,{getL10nValue:s})=>fr(s(e.caption)),$N=(t,e,{getL10nValue:s,side:o="front"})=>{const r=e[o];return r.type==="description"?fr(s(r.description)):void 0},QN=(t,e,{getL10nValue:s})=>{const o=t.variant==="text aside";return Bd([o&&"paragraph"in e&&fr(s(e.paragraph)),fr(s(e.caption))])},ZN=(t,e,{getL10nValue:s})=>{const o=t.variant==="timeline"&&"date"in e&&s(e.date),r=s(e.title),a=fr(s(e.description));return Bd([o,r,a])},YN=(t,e,{getL10nValue:s})=>{if(Array.isArray(t.items)){const o=String(t.items.length).length,r=t.variant==="numbered";return Bd(t.items.map((a,c)=>(r?`${String(a.number||c+1)}. `.padStart(o+2," "):"* ")+fr(s(a.paragraph))))}},XN={"two column":2,"three column":3,"four column":4},JN=(t,e,{getL10nValue:s})=>{const o=t.variant?.includes("heading"),r=!["heading","subheading"].includes(t?.variant),a=XN[t?.variant]??1;return Bd(t.items.slice(0,a).flatMap(c=>[o&&"heading"in c&&fr(s(c.heading)),r&&"paragraph"in c&&fr(s(c.paragraph))]))};function Bd(t){return t.filter(Boolean).join(`

`)}const qN=(t,e,{getL10nValue:s})=>t.items.reduce((o,r)=>"paragraph"in r?o+(o.length>0?`
`:"")+fr(s(r.paragraph)):o,""),O3=(0,m.createContext)(void 0);function ej({aiEnabled:t=!1,aiWriterContext:e,children:s,lessonId:o,mode:r,showAssetLibraryDialog:a,hideAssetLibraryDialog:c,openTranscript:d,removeMediaRecordType:l,removeItemMedia:u,uploadAudio:h}){const p=(0,It.gY)(),f=(0,Hs.y4)(),g=({item:x})=>{if(!x)return;const S="media"in x?p(x.media)?.audio?.transcript:void 0;return f(UN(S))},v=(x,S,b)=>{const{id:N,media:I}=S;b||(b=`items:${x}/items:${S?.id}`),(0,_s.uW)(I)?f(l({l10n:I,type:"audio"})):f(u({itemId:N,lessonId:o,refs:b,type:"audio"}))},C=(x,S,b,N,I)=>{const j=(0,_s.uW)(I)?I:void 0;h({file:x,opts:{lessonId:o,refs:N,l10n:j,transcript:S,aiAudioSettings:b}})},E=(x,S,b)=>{c&&c(),C(x.detail.files[0],x.detail.transcription,x.detail.aiAudioSettings,S,b)},L=(x,S,b,N)=>{b||(b=`items:${x.id}/items:${S?.id}`);const I=x.variant==="flashcard"?R3(x,x.items?.find(R=>R.id===S.id),{getL10nValue:p,side:N}):R3(x,S,{getL10nValue:p,side:N}),j=p(S.media);a&&f(a({onInsertAudio:R=>E(R,b,S.media),initialSelectedTab:"ai-audio",initialAudioText:I,aiWriterContext:e,uploadTypes:["audio"],tabs:{"ai-audio":t,"record-audio":!0,"upload-audio":!0},initialData:{"ai-audio":j?.audio?.aiAudioSettings?{...j.audio.aiAudioSettings,audioUrl:j.audio.key?(0,ye.o1)(j.audio.key):void 0}:void 0}}))};return(0,n.jsx)(O3.Provider,{value:{lessonId:o,uploadAudio:h,mode:r,openTranscript:d||g,showAssetLibraryDialog:a,hideAssetLibraryDialog:c,handleOpenMediaModal:L,handleDelete:v},children:s})}function _d(){const t=(0,m.useContext)(O3);return t||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,lessonId:"",uploadAudio:null})}function P3(t){return function(s){const o=_d();return(0,n.jsx)(t,{...s,...o})}}const Ud={container:"audio-player__actions",button:"audio-player__actions--button"},tj=({inert:t,playbackSpeed:e,transcript:s,onPlaybackChange:o,onDelete:r,onTranscriptClick:a})=>{const{mode:c}=_d(),[d,l]=(0,m.useState)(!1),[u,h]=(0,m.useState)(!1),[p,f]=(0,m.useState)(!1),g=(0,m.useCallback)(()=>l(!0),[]),v=(0,m.useCallback)(()=>l(!1),[]),C=(0,m.useCallback)(()=>h(!0),[]),E=(0,m.useCallback)(()=>h(!1),[]),L=(0,m.useCallback)(()=>f(!0),[]),x=(0,m.useCallback)(()=>f(!1),[]);return(0,n.jsxs)("div",{className:Ud.container,inert:t,children:[(0,n.jsx)(nl,{elementFocused:d,message:"Play speed",children:(0,n.jsx)(j3,{onChange:o,speed:e,triggerClassName:Ud.button,onFocus:g,onBlur:v})}),r&&(0,n.jsx)(nl,{elementFocused:u,message:"Remove audio",children:(0,n.jsx)(Ia.ZH,{icon:(0,n.jsx)(Lt,{name:"trash"}),className:Ud.button,layout:"icon",size:"sm",type:"button",variant:"tertiary",onClick:r,onMouseOver:C,onMouseOut:E,onFocus:C,onBlur:E})}),(c==="edit"||s)&&(0,n.jsx)(nl,{elementFocused:p,message:`${c==="edit"?"Edit":"View"} transcript`,style:{whiteSpace:"nowrap"},children:(0,n.jsx)(Ia.ZH,{icon:(0,n.jsx)(Lt,{name:"file-audio"}),className:Ud.button,onClick:a,onMouseOver:L,onMouseOut:x,onFocus:L,onBlur:x,layout:"icon",size:"sm",type:"button",variant:"tertiary"})})]})};var sj=i(20571);const M3="change";class nj extends sj.EventEmitter{_isMuted;_isPlaying;_playerId;constructor(e){super(),this.setMaxListeners(e)}get isPlaying(){return this._isPlaying}set isPlaying(e){this._isPlaying=e,this.emit("change")}set playerId(e){this._playerId=e}get playerId(){return this._playerId}pause(){this.isPlaying=!1}get isMuted(){return this._isMuted}set isMuted(e){this._isMuted=e,this.emit("change")}mute(){this.isMuted=!1}addChangeListener(e){this.on(M3,e)}removeChangeListener(e){this.removeListener(M3,e)}}const at=new nj(1/0),D3=q("audio-player-icon"),Na=({x:t,width:e,height:s,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:c,pulseY:d,delay:l="0s"})=>(0,n.jsx)("rect",{className:D3("bar"),x:t,width:e,height:s,y:o,rx:1,style:{"--base-height":`${s/10}rem`,"--base-y":`${o/10}rem`,"--pulse-base-height":r&&`${r/10}rem`,"--pulse-base-y":a&&`${a/10}rem`,"--pulse-height":`${c/10}rem`,"--pulse-y":`${d/10}rem`,"--delay":l}}),oj=({animating:t})=>(0,n.jsx)("span",{className:D3({animating:t}),children:(0,n.jsxs)("svg",{viewBox:"0 0 20 16",width:"20",height:"16",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,n.jsx)(Na,{x:0,width:2,height:2,y:7,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,delay:"0s"}),(0,n.jsx)(Na,{x:3,width:2,height:4,y:6,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,delay:"0.1s"}),(0,n.jsx)(Na,{x:6,width:2,height:10,y:3,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,delay:"0.2s"}),(0,n.jsx)(Na,{x:9,width:2,height:16,y:0,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,delay:"0.3s"}),(0,n.jsx)(Na,{x:12,width:2,height:8,y:4,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,delay:"0.4s"}),(0,n.jsx)(Na,{x:15,width:2,height:11,y:2.5,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,delay:"0.5s"}),(0,n.jsx)(Na,{x:18,width:2,height:2,y:7,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,delay:"0.6s"})]})});var M1=i(91333),ts=i(59288);const Hd=ts.createContext(null);function rj({children:t,isDisabled:e,onClose:s,onOpen:o,onSelect:r,positionX:a="left"}){const[c,d]=ts.useState(!1),l=(0,as.A)(c),[u,h]=ts.useState(null),p=ts.useRef(void 0),f=ts.useRef(void 0),g=ts.useRef(void 0),E=`${`menu-${ts.useId()}`}-content`,L=ts.useCallback(({direction:Z,predFn:G=()=>!0})=>{if(!g.current)return;const Y=Array.from(g.current.querySelectorAll('[role="menuitem"]')),Ee=Y.length,fe=Y.findIndex(_e=>_e===document.activeElement);let oe,we,Ae;switch(Z){case"start":oe=0,we=1;break;case"end":oe=Ee-1,we=-1;break;case"backwards":oe=fe-1,we=-1;break;case"forwards":oe=fe+1,we=1;break;default:oe=fe+1,we=1}for(let _e=0;_e<=Ee;_e++){oe>=Ee?oe=0:oe<0&&(oe=Ee-1);const Qe=Y[oe];if(Qe!=null&&cj(Qe)&&G(Qe)){Ae=Qe;break}else oe=oe+we}Ae&&Ae.focus()},[]),x=ts.useCallback(()=>{L({direction:"start"})},[L]),S=ts.useCallback(()=>{L({direction:"end"})},[L]),b=ts.useCallback(()=>{L({direction:"backwards"})},[L]),N=ts.useCallback(()=>{L({direction:"forwards"})},[L]),I=ts.useCallback(Z=>{L({direction:"forwards",predFn:G=>lj(G,Z)})},[L]),j=ts.useCallback(()=>{c?d(!1):(d(!0),setTimeout(N,25))},[N,c]),R=ts.useCallback(()=>{f.current?.focus(),d(!1)},[]),P=ts.useCallback(()=>{d(!0),setTimeout(N,25)},[N]),B=ts.useCallback(()=>{d(!0),setTimeout(b,25)},[b]),_=ts.useCallback(()=>{const{left:Z,top:G}=Xp({anchor:f.current,popover:g.current,positionX:a});h({transform:`translate3d(${Z}px, ${G}px, 0)`,visibility:"visible"})},[a]),k=ts.useCallback(Z=>{const G=Z.currentTarget;k3(G)||(r?.(G.getAttribute("data-name")),R())},[R,r]),J=ts.useCallback(Z=>{const G=Z.key;if(Z.altKey||Z.ctrlKey||Z.metaKey)return;let Y=!1;if(Z.shiftKey)G==="Tab"?b():G.trim()!==""&&I(G),Y=!0;else switch(G){case" ":case"Enter":k(Z),Y=!0;break;case"Esc":case"Escape":R(),Y=!0;break;case"ArrowUp":b(),Y=!0;break;case"Tab":case"ArrowDown":N(),Y=!0;break;case"Home":case"PageUp":x(),Y=!0;break;case"End":case"PageDown":S(),Y=!0;break;default:I(G);break}Y&&(Z.stopPropagation(),Z.preventDefault())},[R,k,I,x,S,N,b]);return ts.useEffect(()=>{const Z=G=>{c&&p.current!=null&&g.current!=null&&!p.current.contains(G.target)&&!g.current.contains(G.target)&&d(!1)};return c?document.addEventListener("click",Z):document.removeEventListener("click",Z),()=>{document.removeEventListener("click",Z)}},[c]),ts.useEffect(()=>(c?window.addEventListener("resize",_):window.removeEventListener("resize",_),()=>{window.removeEventListener("resize",_)}),[_,c]),ts.useEffect(()=>{const Z=id(p.current);for(const G of Z)c?G?.addEventListener("scroll",_,{passive:!0}):G?.removeEventListener("scroll",_);return()=>{for(const G of Z)G?.removeEventListener("scroll",_)}},[_,c]),ts.useEffect(()=>{c?_():h(null)},[_,c]),ts.useEffect(()=>{if(l&&!c)s?.();else if(!l&&c&&(o?.(),p.current)){const Z=new CustomEvent("menuopen",{bubbles:!0,detail:{target:p.current}});p.current.dispatchEvent(Z)}},[l,c,s,o]),ts.useEffect(()=>{const Z=G=>{G.detail.target!==p.current&&d(!1)};return document.addEventListener("menuopen",Z),()=>{document.removeEventListener("menuopen",Z)}},[]),(0,n.jsx)(Hd.Provider,{value:{htmlIdContent:E,isExpanded:c,onCloseFocusTrigger:R,onExpandFocusMenuItemNext:P,onExpandFocusMenuItemPrevious:B,onFocusMenuItemByPrefix:I,onFocusMenuItemFirst:x,onFocusMenuItemLast:S,onFocusMenuItemNext:N,onFocusMenuItemPrevious:b,onItemClick:k,onItemKeyDown:J,onTriggerClick:j,refContent:g,refTrigger:f,styleContent:u},children:(0,n.jsx)("div",{"aria-owns":E,inert:e?!0:void 0,ref:p,children:t})})}function aj({children:t,label:e,labelledBy:s,...o}){const{htmlIdContent:r,isExpanded:a,onTriggerClick:c,onCloseFocusTrigger:d,onExpandFocusMenuItemNext:l,onExpandFocusMenuItemPrevious:u,refTrigger:h}=ts.useContext(Hd),p=ts.useCallback(f=>{let g=!1;switch(f.key){case" ":case"Enter":case"ArrowDown":case"Down":l(),g=!0;break;case"Esc":case"Escape":d(),g=!0;break;case"Up":case"ArrowUp":u(),g=!0;break;default:break}g&&(f.stopPropagation(),f.preventDefault())},[d,l,u]);return(0,n.jsx)("button",{...o,"aria-controls":r,"aria-expanded":a,"aria-haspopup":"menu","aria-label":e,"aria-labelledby":s,"data-menu-trigger":"",onClick:c,onKeyDown:p,ref:h,type:"button",children:t})}function ij({children:t,className:e}){const{htmlIdContent:s,isExpanded:o,refContent:r,styleContent:a}=ts.useContext(Hd);return o?Yn.createPortal((0,n.jsx)("div",{className:e,"data-menu-content":"",hidden:o?void 0:!0,id:s,ref:r,role:"menu",style:a,children:t}),kr()):null}function D1({children:t,className:e,isDisabled:s,name:o}){const{onItemClick:r,onItemKeyDown:a}=ts.useContext(Hd),c=ts.useCallback(d=>{d.currentTarget?.focus()},[]);return(0,n.jsx)("button",{"aria-disabled":s,className:e,"data-menu-item":"","data-name":o,onClick:s?void 0:r,onKeyDown:a,onMouseOver:c,role:"menuitem",tabIndex:s?-1:void 0,type:"button",children:t})}function hle({children:t}){return jsx("span",{"data-menu-item-icon":"",children:t})}function mle({className:t}){return jsx("hr",{className:t,"data-menu-separator":""})}function k3(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function cj(t){return t!=null&&t.tagName==="BUTTON"&&!k3(t)}function lj(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const Fd=q("audio-player-actions-condensed"),Di=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript"}),k1={container:"audio-player__actions",button:"audio-player__actions--button",options:"audio-player__actions--options"},dj=({inert:t,playbackSpeed:e,transcript:s,onPlaybackChange:o,onTranscriptClick:r,item:a,side:c,refs:d})=>{const{mode:l,handleOpenMediaModal:u,handleDelete:h}=_d(),p=Dn(),[f,g]=(0,m.useState)(!1),[v,C]=(0,m.useState)(!1),E=(0,m.useCallback)(()=>g(!0),[]),L=(0,m.useCallback)(()=>g(!1),[]),x=(0,m.useCallback)(()=>C(!0),[]),S=(0,m.useCallback)(()=>C(!1),[]);function b(N){switch(N){case Di.DeleteAudio:h(p.id,a,d);break;case Di.EditTranscript:r();break;case Di.EditAudio:u(p,a,d,c);break}}return(0,n.jsxs)("div",{className:k1.container,inert:t,children:[(0,n.jsx)(nl,{elementFocused:f,message:"Play speed",children:(0,n.jsx)(j3,{onChange:o,speed:e,triggerClassName:k1.button,onFocus:E,onBlur:L})}),u||h||s?(0,n.jsx)(nl,{elementFocused:v,message:"Options",children:(0,n.jsxs)(rj,{onSelect:b,positionX:"left",children:[(0,n.jsxs)(aj,{className:k1.options,onFocus:x,onBlur:S,onMouseEnter:x,onMouseLeave:S,children:[(0,n.jsx)(M1.gS,{icon:"fa-regular fa-ellipsis",size:16}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Options"})]}),(0,n.jsxs)(ij,{className:Fd("content"),children:[u?(0,n.jsx)(D1,{name:Di.EditAudio,className:Fd("menu-item"),children:"Edit audio"}):null,l==="edit"||s?(0,n.jsxs)(D1,{name:Di.EditTranscript,className:Fd("menu-item"),children:[l==="edit"?"Edit":"View"," transcript"]}):null,h&&p.variant!=="audio"?(0,n.jsx)(D1,{name:Di.DeleteAudio,className:Fd("menu-item"),children:"Remove audio"}):null]})]})}):null]})},Bn=q("audio-player"),zd=({currentTime:t,duration:e})=>Math.round(t/e*100)||0,w3=t=>{if(!t)return{hours:0,minutes:0,seconds:0};const e=Math.floor(t/3600),s=Math.floor(t%3600/60),o=t%60;return{hours:e,minutes:s,seconds:o}},B3=t=>{const{minutes:e,seconds:s}=w3(t);let o="";return e>0&&(o+=`${new Intl.NumberFormat(void 0,{style:"unit",unit:"minute",unitDisplay:"long"}).format(e)} `),o+=new Intl.NumberFormat(void 0,{style:"unit",unit:"second",unitDisplay:"long"}).format(Math.round(s)),o},uj=t=>{const{hours:e,minutes:s,seconds:o}=w3(t);function r(d,l,u){return(new Array(u+1).join(l)+d).slice(-u)}const a=r(s,"0",2),c=r(o,"0",2);return e>0?`${e}:${a}:${c}`:`${s}:${c}`};class Ko extends ie().Component{audio;play;trackerbar;trackerhandle;onDelete;constructor(e){super(e),this.state={playheadPositionSaveThrottle:0,playbackSpeed:1,playerExpanded:!0,shouldLoadPlayheadPosition:!0},this.handleChange=this.handleChange.bind(this),this.handleClickInsideAudioPlayer=this.handleClickInsideAudioPlayer.bind(this),this.onPlayClick=this.onPlayClick.bind(this),this.onTogglePlayer=this.onTogglePlayer.bind(this)}static defaultProps={allowTabNavigation:!0,mediaSrc:null,transcript:null,onEnd:()=>{},onLoad:()=>{},onPause:()=>{},onPlay:()=>{},onSeek:()=>{},shouldPause:!1};static getElementOffset(e){const s=document.documentElement,o=e.getBoundingClientRect(),r=o.top+window.pageYOffset-s.clientTop,a=o.left+window.pageXOffset-s.clientLeft;return{top:r,left:a}}static timeMs(e){return Math.round(e*1e3)}mouseSeek(e){const{currentTarget:s,nativeEvent:o}=e,r=this.audio;let a=0;typeof TouchEvent<"u"&&o instanceof TouchEvent?a=o.touches[0].pageX:a=e.pageX;const c=Ko.getElementOffset(s);let d=a-c.left;const l=s.offsetWidth,u=r.duration;d>l?d=l:d<1&&(d=1),!(isNaN(d/l*u)||l===0)&&(r.currentTime=d/l*u,this.props.onSeek(Ko.timeMs(r.currentTime)))}keySeek(e){this.setState({isSeeking:!0},()=>{const s=this.audio,o=s.duration;s.currentTime=e<0?Math.max(s.currentTime+e,0):Math.min(s.currentTime+e,o),this.props.onSeek(Ko.timeMs(s.currentTime)),this.onSeekEnd()})}componentDidMount(){at.addChangeListener(this.handleChange)}componentDidUpdate(e,s){const r=this.props.activeIndex!=null&&this.props.itemIndex!=null&&e.activeIndex!==this.props.activeIndex&&this.props.activeIndex!==this.props.itemIndex;(at.isPlaying&&!e.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),at.pause()),s.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:e}=this.props;at.pause(),at.removeChangeListener(this.handleChange),e&&e(zd(this.audio))}handleClickInsideAudioPlayer=e=>{e.stopPropagation(),e.preventDefault()};handleChange(){const{dispatch:e,transcript:s}=this.props;at.playerId===this.props.id&&(at.isPlaying?(this.audio.play(),s&&e(rl(s))):this.audio&&this.audio.pause(),this.audio&&(this.audio.muted=at.isMuted),this.forceUpdate())}render(){const{allowTabNavigation:e,id:s,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:c,mode:d,onDelete:l,onTranscriptClick:u,transcript:h,item:p,side:f,refs:g}=this.props,v=at.isPlaying&&at.playerId===s,{currentTime:C,playerExpanded:E}=this.state,L=this?.audio?.duration??0,x=Math.round(L-C),S=uj(x),b=B3(x),N=B3(C),I=e?0:-1,j=!o,{a11yGroupAudioPlayer:R,a11yMediaPlay:P,a11yMediaPause:B,a11yMediaSeek:_}=a??{},k=Bn({overlay:r,collapsed:r&&!E,expanded:!r||E});return(0,n.jsx)("div",{className:Bn("container"),onClick:this.handleClickInsideAudioPlayer,children:(0,n.jsxs)("div",{id:s,className:k,children:[j&&(0,n.jsx)("button",{"aria-label":r?`${this.state.playerExpanded?"Collapse":"Expand"} audio player`:void 0,disabled:!r,className:Bn("waveform-icon",{disabled:!r}),onClick:this.onTogglePlayer,type:"button",children:(0,n.jsx)(oj,{animating:v})}),(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":R,className:Bn("housing"),onKeyDown:this.onKeyDown.bind(this),role:ji,tabIndex:I,inert:!this.state.playerExpanded,children:[(0,n.jsx)("button",{"aria-label":v?B:P,className:Bn("play"),onClick:this.onPlayClick,ref:J=>{this.play=J},tabIndex:I,type:"button",children:v?(0,n.jsx)(Lt,{className:Bn("play-icon"),name:"pause-solid"}):(0,n.jsx)(Lt,{className:Bn("play-icon"),name:"play-solid"})}),(0,n.jsxs)("div",{className:Bn("tracker"),onMouseDown:this.onMouseSeekStart.bind(this),onTouchStart:this.onMouseSeekStart.bind(this),onMouseUp:this.onSeekEnd.bind(this),onTouchEnd:this.onSeekEnd.bind(this),onMouseMove:this.onSeek.bind(this),onTouchMove:this.onSeek.bind(this),children:[(0,n.jsx)("div",{ref:J=>{this.trackerbar=J},className:Bn("tracker-bar")}),(0,n.jsx)("div",{className:Bn("tracker-handle"),"aria-label":_,"aria-live":"polite","aria-valuemax":L,"aria-valuemin":0,"aria-valuenow":C,"aria-valuetext":N,ref:J=>{this.trackerhandle=J},role:"slider",tabIndex:I,children:(0,n.jsx)(Lt,{className:Bn("tracker-handle-icon"),name:"circle-solid"})})]}),(0,n.jsx)("div",{className:Bn("timer"),role:"timer","aria-label":b,children:S})]}),(0,n.jsx)("audio",{ref:J=>{this.audio=J},"data-testid":"audio-player-element",className:Bn("audio-element"),onTimeUpdate:this.onTimeUpdate.bind(this),onLoadedMetadata:this.onLoadedMetadata.bind(this),onEnded:this.onEnded.bind(this),src:(0,ye.o1)(`${c}`)},"audio-"+s),(0,n.jsx)(Ii,{featureFlags:["rise-audio-release"],children:(0,n.jsx)(Ii.On,{children:d==="readonly"||o?(0,n.jsx)(tj,{inert:!this.state.playerExpanded,playbackSpeed:this.state.playbackSpeed,transcript:h,onPlaybackChange:J=>{this.setState({playbackSpeed:J})},onDelete:l,onTranscriptClick:u}):(0,n.jsx)(dj,{inert:!this.state.playerExpanded,playbackSpeed:this.state.playbackSpeed,transcript:h,onPlaybackChange:J=>{this.setState({playbackSpeed:J})},onTranscriptClick:u,item:p,side:f,refs:g})})})]},`player-${s}`)})}onKeyDown(e){const o=To(this.onPlayClick),r=To(()=>this.keySeek(5)),a=To(()=>this.keySeek(-5)),c=p=>p.target===this.play,d=p=>p.target===this.trackerhandle,l=Rs()([[Hr,o],[dd,Si],[ud,Si]]),u=Rs()([[Hr,Si],[dd,r],[ud,a]]),h=Rs()([[Hr,o],[dd,r],[ud,a]]);Rs()([[c,l],[d,u],[hn(),h]])(e)}onPlayClick(e){e.stopPropagation(),e.preventDefault();const{audioVideoPlayhead:s,id:o,onPause:r,onPlay:a,recordMediaPlayheadPosition:c}=this.props,{currentTime:d,duration:l}=this.audio;at.isPlaying&&at.playerId!==o&&(at.isPlaying=!1),at.playerId=o,at.isPlaying=!at.isPlaying,at.isPlaying?(a(Ko.timeMs(d)),s&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=l*s/100||0)):(r(Ko.timeMs(d)),c&&c(zd(this.audio))),this.setState({shouldLoadPlayheadPosition:!1})}onMouseSeekStart(e){this.setState({isSeeking:!0}),this.mouseSeek(e)}onSeekEnd(){const{id:e,onPlay:s,recordMediaPlayheadPosition:o}=this.props,{currentTime:r}=this.audio;this.setState({isSeeking:!1}),at.isPlaying&&at.playerId!==e&&(at.isPlaying=!1),at.playerId=e,s(Ko.timeMs(r)),o&&o(zd(this.audio))}onSeek(e){this.state.isSeeking&&this.mouseSeek(e)}onLoadedMetadata(e){const s=e.target;this.setState({currentTime:s.currentTime});const{onLoad:o}=this.props;o()}onEnded(e){const s=e.target;this.audio.currentTime=0,this.setState({currentTime:s.currentTime}),at.isPlaying=!1,this.props.onEnd(Ko.timeMs(s.currentTime)),this.forceUpdate()}onTimeUpdate(e){const s=e.target,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=s,c=Math.floor(r);(0,ye.ih)();const d=r/a*100;this.trackerbar.style.width=d+"%",this.trackerhandle.style.left=d+"%",this.setState({currentTime:r}),c%5===0&&this.state.playheadPositionSaveThrottle!==c&&o&&(o(zd(s)),this.setState({playheadPositionSaveThrottle:c}))}onTogglePlayer(e){const{playerExpanded:s}=this.state;this.setState({playerExpanded:!s}),e.preventDefault(),e.stopPropagation()}currentTime(){return Ko.timeMs(this.audio.currentTime)}}const hj=(0,Hs.Ls)()(Ko);var mj=i(20817),pj=i.n(mj),fj=i(80029),gj=i.n(fj),_3=i(67757);const gr=Ue()("status"),vj=gj()(gr("uploading"),gr("processing")),fle=gr("canceled"),w1=gr("complete"),U3=gr("cropping"),H3=gr("crushing"),F3=gr("uploading"),z3=gr("processing"),V3=gr("errored"),W3=pj()([U3,H3,V3,z3,F3]),Cj=Se()(_3.UA,Qt()(vj));function gle(t){return Math.round(t.loaded*100/t.total)}const vle=Jn()(jt()(["file","name"]),Ye()("",["opts","filename"])),Cle=kn()(_3.UA,Cj),Vd=t=>M()("upload-progress__wrapper",t),G3=(0,m.createContext)(null);function K3(){return(0,m.useContext)(G3)}const xle=G3.Provider;function xj(t){function e(s){const o=K3();return o?(0,n.jsx)(t,{...s,getUpload:o.getUpload,handleUploadDismiss:o.handleUploadDismiss}):(0,n.jsx)(t,{...s})}return e.displayName=`withUploadStatusContext(${t.displayName||t.name})`,e}const Wd=({onClick:t,text:e})=>(0,n.jsxs)(Ia.ZH,{type:"button",variant:"tertiary",size:"sm",onClick:t,children:[e,(0,n.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),B1=20,al=B1/2,_1=al-2,$3=+(2*Math.PI*_1).toFixed(3),Ej=t=>$3*(100-t)/100;function Q3({classes:t,percent:e}){return(0,n.jsxs)("svg",{className:M()("upload-progress__pie",t),width:`${B1}px`,height:`${B1}px`,focusable:"false",children:[(0,n.jsx)("circle",{className:"upload-progress__border",cx:al,cy:al,r:_1}),(0,n.jsx)("circle",{className:"upload-progress__progress",cx:al,cy:al,r:_1,strokeDasharray:$3,strokeDashoffset:Ej(e)})]})}const Tj=({text:t})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(Q3,{percent:70,classes:"upload-progress__pie--processing"}),(0,n.jsx)("div",{className:"upload-progress__text",children:t})]}),Sj=({percentage:t,text:e="Uploading\u2026"})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(Q3,{percent:t}),(0,n.jsx)("div",{className:"upload-progress__text",children:e})]}),U1=({classes:t,jobId:e,onCancel:s,text:o})=>(0,n.jsxs)("div",{className:Vd(t),children:[(0,n.jsx)(Tj,{text:o}),e&&(0,n.jsx)(Wd,{onClick:s,text:"Cancel"})]}),Lj=({classes:t,onCancel:e,percentage:s,text:o})=>(0,n.jsxs)("div",{className:Vd(t),children:[(0,n.jsx)(Sj,{percentage:s,text:o}),(0,n.jsx)(Wd,{onClick:e,text:"Cancel"})]}),bj=({message:t="Error"})=>(0,n.jsxs)("div",{className:"upload-error",children:[(0,n.jsx)(M1.gS,{icon:"fa-regular fa-circle-exclamation"}),(0,n.jsx)("div",{className:"upload-error__text",children:t})]}),yj=({classes:t,message:e,onClick:s})=>(0,n.jsxs)("div",{className:Vd(t),children:[(0,n.jsx)(bj,{message:e}),(0,n.jsx)(Wd,{onClick:s,text:"Dismiss"})]}),Ij=({message:t="Success"})=>(0,n.jsxs)("div",{className:"upload-success",children:[(0,n.jsx)(M1.gS,{icon:"fa-regular fa-check"}),(0,n.jsx)("div",{className:"upload-success__text",children:t})]}),Nj=({classes:t,message:e,onClick:s})=>(0,n.jsxs)("div",{className:Vd(t),children:[(0,n.jsx)(Ij,{message:e}),s?(0,n.jsx)(Wd,{onClick:s,text:"Dismiss"}):null]}),jj=t=>{const{classes:e,data:s={},errorMessage:o,jobId:r,progress:a,onCancelUpload:c,onCancelProcess:d,onErrorDismiss:l,onSuccessDismiss:u,successMessage:h,uploadType:p}=t;return V3(t)?(0,n.jsx)(yj,{classes:e,message:o||s?.message,onClick:l}):F3(t)?(0,n.jsx)(Lj,{classes:e,onCancel:c,percentage:a,text:`Uploading ${p}\u2026`}):z3(t)?(0,n.jsx)(U1,{classes:e,jobId:r,onCancel:d,text:`Processing ${p}\u2026`}):H3(t)?(0,n.jsx)(U1,{classes:e,onCancel:d,text:`Uploading ${p}\u2026`}):U3(t)?(0,n.jsx)(U1,{classes:e,onCancel:d,text:"Cropping image\u2026"}):w1(t)&&h?(0,n.jsx)(Nj,{classes:e,message:h,onClick:u}):(0,n.jsx)("div",{})},H1=q("audio-player"),Aj=H1("upload-state");function F1({uploadId:t,onAIUploadFinish:e,...s}){const o=K3(),{mode:r}=_d();let a=null;o&&t&&(a=o.getUpload(t));const c=(0,m.useMemo)(()=>a&&a.mediaType==="audio"&&(W3(a)||w1(a)&&!s.mediaSrc),[a,s.mediaSrc]),d=(0,as.A)(c);if((0,m.useEffect)(()=>{!c&&d&&e?.()},[c,d,e]),c){const{jobId:l,status:u,progress:h,data:p}=a,f=v=>()=>o?.handleUploadDismiss(v,a),g=H1({overlay:s.isOverlayAudio,static:s.isOverlayAudio});return(0,n.jsx)("div",{className:H1("container"),children:(0,n.jsx)("div",{className:g,children:(0,n.jsx)(jj,{classes:Aj,errorMessage:p?.message,status:u,progress:h,jobId:l,onCancelUpload:f("upload"),onCancelProcess:f("process"),onErrorDismiss:f("error"),uploadType:"audio",successMessage:"Processing\u2026"})})})}return(0,n.jsx)(hj,{...s,mode:r})}var Rj=i(96865),Oj=i.n(Rj),Pj=i(29209),Z3=i.n(Pj);const ki=ie().memo(({align:t,alt:e,allowTabNavigation:s=!0,disableZoom:o,height:r,l10nId:a,labels:c,maxHeight:d=380,onLoad:l,shouldFillWidth:u,src:h,width:p})=>{const f=(0,gn.Ll)(e),g=s&&!o,v=M()("img-img",{"img-img--left":t==="left","img-img--right":t==="right","img-img--center":!t||t==="center","img-img--fill":u});let C;p>0&&r>0&&r>d?(p=Math.round(p*d/r),r=d):d&&(!p||!r)&&(C={maxHeight:d});let E=(0,n.jsx)(An,{alt:f,"data-l10n-id":a,className:v,height:r,onLoad:l,src:h,style:C,width:p});return g&&(E=(0,n.jsx)(y3,{a11yNameButtonUnzoom:c?.a11yUnzoomImage,a11yNameButtonZoom:c?.a11yZoomImage,children:E})),(0,n.jsx)("div",{className:"img",children:E})});var ja=i(91817),Y3=i(90960),Mj=i(91980),Dj=i.n(Mj),kj=i(13184),wj=i.n(kj),Bj=i(883),Aa=i.n(Bj),_j=i(47374),il=i.n(_j),Uj=i(1004),Hj=i.n(Uj),Fj=i(36865),zj=i.n(Fj),Vj=i(88659),Wj=i.n(Vj),Gj=i(25578),z1=i.n(Gj),Kj=i(73461),$j=i.n(Kj);const Qj=(t,e)=>s=>t(s)?e(s):!0,Zj=Hj()(ps(),["http","https"]),Yj=Aa()(As(),z1()(":")),Xj=Aa()(il()(zj()(Dj()),Zj),wj()),Jj=Aa()(Wj()($j()("//"),Xj),Yj),qj=t=>vi()(Qj(t,Jj),We()("")),Ile=Es()(t=>Aa()(qj(t),ja.htmlDecode,Y3.J)),eA=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,tA=t=>typeof t=="string"&&t.replace(eA,""),Ra=Aa()(tA,Y3.J);var sA=i(44336),cl=i.n(sA),nA=i(61319),V1=i.n(nA);const oA=[{title:"Course Overview",labels:[{name:"courseStart",text:"START COURSE"},{name:"courseResume",text:"RESUME COURSE"}]},{title:"Global",labels:[{name:"courseHome",text:"Home"},{name:"lessonComplete",text:"80% COMPLETE"},{name:"lessonName",text:"Lesson 4 of 7"},{name:"lessonRestricted",text:"Lessons must be completed in order"},{name:"courseSkipToLesson",text:"SKIP TO LESSON"},{name:"search",text:"search"},{name:"results",text:"20 results"},{name:"result",text:"1 result"},{name:"noResults",text:'No results for "abc"'}].concat(ye.BI?[{name:"courseFinish",text:"Finish"}]:[])},{title:"Quiz & Knowledge Check",labels:[{name:"quizStart",text:"START QUIZ"},{name:"quizAcceptableResponses",text:"Acceptable responses"},{name:"quizQuestion",text:"Question"},{name:"quizAnswerPlaceholder",text:"Type your answer here"},{name:"quizSubmit",text:"SUBMIT"},{name:"quizRequireAnswer",text:"Please answer the question to continue"},{name:"quizNext",text:"NEXT"},{name:"quizRestart",text:"RESTART"},{name:"quizIncorrect",text:"Incorrect"},{name:"quizCorrect",text:"Correct"},{name:"quizResults",text:"Quiz Results"},{name:"quizScore",text:"Your score 90%"},{name:"quizPassing",text:"PASSING 80%"},{name:"quizTakeAgain",text:"TAKE AGAIN"},{name:"quizRequirePassingScore",text:"Must pass quiz before continuing"},{name:"quizContinue",text:"Continue"}]},{title:"Process",labels:[{name:"processStepName",text:"Step 3 of 6"},{name:"processNextStep",text:"NEXT STEP"},{name:"processLessonName",text:"Lesson 5 Complete"},{name:"processStart",text:"START"},{name:"processStartAgain",text:"START AGAIN"},{name:"processSwipe",text:"Swipe to continue"}]},{title:"Sorting",labels:[{name:"sortingCardsCorrect",text:"6/8 Cards Correct"},{name:"sortingReplay",text:"REPLAY"}]},{title:"Embeds",labels:[{name:"embedViewOn",text:"VIEW ON YOUTUBE"},{name:"embedReadMore",text:"Read more"}]},{title:"Flashcards",labels:[{name:"blocksClickToFlip",text:"Click cards to flip"},{name:"blocksPreposition",text:"1 of 3"}]},{title:"Scenario",labels:[{name:"scenarioTryAgain",text:"TRY AGAIN"},{name:"scenarioContinue",text:"CONTINUE"},{name:"scenarioComplete",text:"Scenario Complete"},{name:"scenarioStartOver",text:"START OVER"}]},{title:"Exit Course (LMS)",labels:[{name:"courseExit",text:"EXIT COURSE"},{name:"salutation",text:"\u{1F44B} Bye!"},{name:"exitMessage",text:"You may now leave this page."}]}],rA=t=>{let e={};return e[t.name]=t.text,e},aA=St()(ws()(Pe()("labels")),cl(),ws()(rA),V1())(oA);var jle=i(30772),iA=i(70117),W1=i.n(iA);const{validIframe:X3,validUrl:J3}=$e.yG,q3=st()("type","embed"),cA=W1()("type","embedType"),lA=td()(/http:/i,"https:"),dA=t=>({embedType:"iframe",originalUrl:t,src:t}),ef=t=>ll(t.embed),ll=t=>t?.embedType||t?.type,Ale=t=>cond([[test(X3),compose(q3,dA,lA)],[test(J3),composeP(q3,cA,t)]]),Rle=Jn()(Se()(f1()(X3),xo.R9),f1()(J3)),Ole="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var Gd=i(59288);const tf=t=>{const e=(0,ye._$)("CDN_USER_CONTENT_URI"),s=new RegExp((0,ye._$)("CDN_URI"),"g");return(0,ye.Hm)()?t:s.test(t)?`${e}${new URL(t).pathname}${new URL(t).search}`:t},uA=t=>{const e=new window.URL("https:"+t);return e.searchParams.set("src",e.searchParams.get("src")+"&disable-auto-focus=true"),e.toString().replace("https:","")},hA=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,mA=t=>hA.test(t),pA=/^\/\//,fA=t=>t?.replace(pA,"https://"),gA=Se()(fA,sn()(mA,uA),sn()(Boolean,ye.o1),Ra),vA=t=>{const{paddingBottom:e,ref:s,value:o}=t;return(0,n.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:Gd.useMemo(()=>({__html:o}),[o]),ref:s,style:{paddingBottom:e}})};class CA extends Gd.Component{player;refIframeContainer=Gd.createRef();refIframePlayer=Gd.createRef();state={duration:0,isReady:!1};static get defaultProps(){const{embedReadMore:e}=aA;return{allowTabNavigation:!0,labels:{embedReadMore:e,embedViewOn:"View on"},shouldPause:!1,showMetaData:!0}}componentDidUpdate(e){!e.shouldPause&&this.props.shouldPause&&at.isPlaying&&(this.player?.pause(),at.isPlaying=!1)}componentWillUnmount(){ll(this.props.data)==="video"&&this.teardownPlayer()}handlePlayerReady=()=>{this.player&&(this.player.on("play",this.handlePlayerPlay),this.player.on("timeupdate",this.handlePlayerUpdate),this.setState({isReady:!0}),at.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:e}=this.props;at.isPlaying&&at.playerId!==e&&(at.isPlaying=!1),at.playerId=e,at.isPlaying=!0};handlePlayerUpdate=e=>{this.props.progressChanged?.({done:e.seconds/e.duration*100})};handlePlayerChange=()=>{const{id:e}=this.props;at.playerId===e&&(at.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(Oj()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{at.isPlaying=!1,at.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=e=>{const s=o=>this.player.supports("method",o);return Z3()(s)(e)};togglePlay=()=>{this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",()=>{this.player.getPaused(e=>{e?this.player.play():this.player.pause()})})};keySeek=e=>{this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",()=>{this.player.getCurrentTime(s=>{this.player.setCurrentTime(s+e)})})};changeVolume=e=>{this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(s=>{this.player.setVolume(s+e)})};onKeyDown=e=>{const r=To(this.togglePlay),a=To(()=>this.keySeek(5)),c=To(()=>this.keySeek(-5)),d=To(()=>this.changeVolume(10)),l=To(()=>this.changeVolume(-10));Rs()([[ld,r],[Ur,a],[_r,c],[Li,d],[bi,l]])(e)};renderProvider=()=>{const{allowTabNavigation:e,externalLinksDisabled:s,showExternalLinksModal:o,showMetaData:r,data:a}=this.props,{providerUrl:c,provider:d,favicon:l}=a;if(!(r&&c))return null;const u=Ra(c),h=s&&di(u),p=h?"":void 0,f=h?o:void 0,g=h?void 0:u,v=h?void 0:"noopener noreferrer",C=h?"button":void 0,E=h?void 0:"_blank";return(0,n.jsx)("h2",{className:"embed__provider",children:(0,n.jsxs)("a",{className:"brand--hoverColor","data-external":p,href:g,onClick:f,rel:v,role:C,tabIndex:e?0:-1,target:E,children:[(0,n.jsx)(An,{alt:l?d:"",className:"embed__providerIcon",src:l}),(0,n.jsx)("span",{className:"embed__providerName",children:d})]})})};renderMetaData=()=>{const{allowTabNavigation:e,data:s,externalLinksDisabled:o,labels:r,showExternalLinksModal:a,showMetaData:c}=this.props,{src:d,title:l,description:u,provider:h}=s,{embedReadMore:p,embedViewOn:f}=r,g=ll(s);if(!c&&g!=="link")return null;const v=Ra(d),C=o&&di(v),E={"data-external":C?"":void 0,href:C?void 0:v,onClick:C?a:void 0,rel:C?void 0:"noopener noreferrer",role:C?"button":void 0,tabIndex:e?0:-1,target:C?void 0:"_blank"};return(0,n.jsxs)("div",{className:"embed__meta__content",children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...E,children:(0,n.jsx)(Nt,{value:l})})}),(0,n.jsx)(Nt,{className:"embed__description",value:u}),(0,n.jsxs)("a",{className:"embed__readMore brand--hoverColor",...E,children:[g==="link"?`${p} ${h}`:`${f} ${h}`,(0,n.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:e,data:s,externalLinksDisabled:o,isLesson:r,labels:a,showExternalLinksModal:c,showMetaData:d}=this.props,{useRelativePath:l}=s??{},{description:u,originalUrl:h,src:p,thumbnail:f,title:g}=s,{embedLinkGroup:v,embedPlayerGroup:C,embedReadMore:E}=a,L=ll(s);if(L==="iframe"){const x=document.createElement("div");x.innerHTML=(0,xo.R9)(p);const S=x.firstChild,b=S&&S.tagName&&S.tagName.toLowerCase()==="iframe";let N=100,I=32;if(n9(window.location.href)&&l)return(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"embed__relativeUrl--iframe",children:"Embedded iframe with a relative url"}),(0,n.jsx)("p",{className:"embed__relativeUrl--title",children:g}),(0,n.jsx)("p",{className:"embed__relativeUrl--url",children:h})]});if(b){const k=S.width.match(/%/),J=parseInt(S.width);S.src=Ra(S.src),N=k?700*(J/100):J||16,I=parseInt(S.height)}const j=I/N,R=b?`${j*100}%`:"3rem";if(S.src.includes("typeform")){const k=new window.URL(S.src);k.searchParams.append("disable-auto-focus","true"),S.src=k.toString()}if(S.src.includes("forms.office.com")){const k=new window.URL(S.src);k.searchParams.append("embed","true"),S.src=k.toString()}const _=b?S.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":C,className:"embed",role:ji,children:[l&&(0,n.jsx)("div",{className:"embed__title embed--iframe__title",children:g}),(0,n.jsx)(vA,{paddingBottom:R,ref:this.refIframeContainer,value:_})]})}else if(r){const x=l?p:Ra(p),S=o&&di(x),b=S?"":void 0,N=S?c:void 0,I=S?void 0:x,j=S?void 0:"noopener noreferrer",R=S?"button":void 0,P=S?void 0:"_blank";if(l){const B={"data-external":S?"":void 0,href:x,onClick:S?c:void 0,rel:S?void 0:"noopener noreferrer",role:S?"button":void 0,tabIndex:e?0:-1,target:S?void 0:"_blank"};return(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":a?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:ji,children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...B,children:(0,n.jsx)(Nt,{value:g})})}),["link","photo"].includes(L)?(0,n.jsxs)("a",{className:"embed__relativeUrl--url","data-external":b,href:I,onClick:N,rel:j,role:R,tabIndex:e?0:-1,target:P,children:[x,L==="photo"?(0,n.jsx)("div",{className:"embed__relativeUrl--image",children:(0,n.jsx)(An,{alt:f?g:"",className:"embed__img",src:x})}):null]}):this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:L})]})}return(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":a?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:ji,children:[this.renderProvider(),["link","photo"].includes(L)?(0,n.jsx)("a",{"data-external":b,href:I,onClick:N,rel:j,role:R,tabIndex:e?0:-1,target:P,children:(0,n.jsx)(An,{alt:f?g:"",className:"embed__img",src:tf(f)})}):this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:L}),this.renderMetaData()]})}else if(L==="link"){const x=l?p:Ra(p),S=l||o&&di(x),b=S?"":void 0,N=S?c:void 0,I=S?void 0:x,j=S?void 0:"noopener noreferrer",R=S?"button":void 0,P=S?void 0:"_blank";return(0,n.jsxs)("div",{"aria-hidden":!e,"aria-label":v,className:"embed embed--link brand--linkColor",role:ji,children:[(0,n.jsx)(Nt,{className:"embed__title",value:g}),(0,n.jsx)(Nt,{className:"embed__description",value:u}),(0,n.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":b,href:I,onClick:N,rel:j,role:R,target:P,children:E})]})}else return(0,n.jsxs)("div",{className:"embed embed--media",children:[d?(0,n.jsx)(Nt,{"aria-hidden":!e,className:"embed__title",value:g}):null,this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:L})]})}renderEmbedIframe=e=>{const{allowTabNavigation:s,labels:o,src:r,thumbnail:a,title:c,type:d}=e,{useRelativePath:l}=this.props.data??{};if(d==="photo")return(0,n.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,n.jsx)(ki,{src:tf(a),labels:o,allowTabNavigation:s})});{const u=nn.isIe11||nn.isEdge,h=M()("embed__media-wrap",{"embed__media-wrap--ms_browser":u});return(0,n.jsxs)("figure",{"aria-hidden":!s,"aria-label":o?.embedPlayerGroup,className:h,onKeyDown:this.onKeyDown,ref:this.refIframeContainer,tabIndex:s?0:-1,children:[(0,n.jsx)("meta",{name:"referrer",content:"origin"}),(0,n.jsx)("iframe",{inert:s?void 0:!0,ref:this.refIframePlayer,className:"embed__media",src:l?r:gA(r),frameBorder:"0",scrolling:l?"yes":"no",onLoad:this.setupPlayer,allowFullScreen:!0,title:c})]})}}}const xA=li()({externalLinksDisabled:jt()(["course","externalLinksDisabled"])}),EA={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})},G1=(0,Hs.Ls)(xA,EA)(CA);var TA=i(57094),SA=i.n(TA),LA=i(7656),sf=i(94050);const bA=sf.default.getComponent("SeekBar");class yA extends bA{seekDisabled=!1;maxTime=0;constructor(e){super(e,[])}disableSeek(){this.seekDisabled=!0}setMaxTime(e){this.maxTime=e}handleMouseMove(e){if(!this.seekDisabled)return super.handleMouseMove(e);const s=this.player();let o=this.calculateDistance(e)*s.duration();o>this.maxTime?(this.trigger("showRestrictSeekTooltip",!0),o=this.maxTime):this.trigger("showRestrictSeekTooltip",!1),o===s.duration()&&(o=o-.1),s.currentTime(o)}}sf.default.registerComponent("SeekBar",yA);var IA=i(16500),NA=i(22973),jA=i(65664),AA=i(76700),RA=i(7211),OA=i(80647),PA=i(48034),MA=i(18058),DA=i(70485),kA=i(51327),wA=i(57269),BA=i(85961),_A=i(19022),UA=i(60158),HA=i(99301),FA=i(34441);const zA={ar:IA,cs:NA,de:jA,en:AA,es:RA,fr:OA,it:PA,ja:MA,nl:DA,pl:kA,sk:wA,tr:BA,"pt-BR":_A,"pt-PT":UA,"zh-CN":HA,"zh-TW":FA},VA=-5,K1="seek-tooltip--hidden",WA=()=>{const t=document.createElement("div");return t.classList.add("seek-tooltip"),t.classList.add(K1),t},Kd=t=>Math.round(t.currentTime()/t.duration()*100)||0;class GA extends ie().Component{maxTime;seeking;wasPaused;restrictingSeek;seekTimeout;playbackRatesChanged;videoPaused;videoPlay;videoPlaying;videoSeeking;videoSeeked;videoUpdate;container;seekDiv;progressBarElement;video;constructor(e){super(e),this.state={isReady:!1,shouldLoadPlayheadPosition:!1,playbackStarted:!1,playheadPositionSaveThrottle:0,showRestrictSeekTooltip:!1},this.showRestrictSeekTooltip=this.showRestrictSeekTooltip.bind(this),this.updateSeekTooltip=this.updateSeekTooltip.bind(this),this.getMaxTime=this.getMaxTime.bind(this),this.onMediaStoreChange=this.onMediaStoreChange.bind(this),this.renderCaptionTrack=this.renderCaptionTrack.bind(this)}static get defaultProps(){return{autoplay:!1,allowTabNavigation:!0,currentTime:0,labels:{},onFullScreenChange:()=>{},onLoad:()=>{},percentComplete:0,progressChanged:()=>{},shouldPause:!1}}updateContentFocusability(){const{allowTabNavigation:e}=this.props;Yp(this.container.getElementsByTagName("button")).forEach(o=>{Rd(o,Fr(e))}),p1({element:this.container,selector:".vjs-progress-holder",tabIndex:Fr(e)}),p1({element:this.container,selector:".vjs-volume-bar",tabIndex:Fr(e)}),p1({element:this.container,selector:".vjs-volume-menu-button",tabIndex:Fr(e)})}componentDidUpdate(e){this.updateContentFocusability(),!e.shouldPause&&this.props.shouldPause&&at&&(this.video.player.pause(),at.isPlaying=!1)}setMaxTime(e){this.maxTime=e,this.video.player.controlBar.progressControl.seekBar.setMaxTime(e)}componentDidMount(){const{player:e}=this.video,{audioVideoPlayhead:s,canRestrictSeek:o,currentTime:r,id:a,onFullScreenChange:c,onLoad:d,percentComplete:l,progressChanged:u,recordMediaPlayheadPosition:h,type:p}=this.props;if(this.setState({shouldLoadPlayheadPosition:!0}),this.wasPaused=!1,this.seeking=!1,this.setMaxTime(r),this.updateContentFocusability(),o){const{seekBar:f}=this.video.player.controlBar.progressControl;f.disableSeek(),f.on("showRestrictSeekTooltip",(g,v)=>this.showRestrictSeekTooltip(v)),this.configureSeekDiv()}e.ready(()=>{e.el_?.removeAttribute("role"),e.el_?.removeAttribute("aria-label"),e.getChild("BigPlayButton").controlTextEl_?.removeAttribute("aria-live"),e.getChild("controlBar").getChild("PlaybackRateMenuButton").childNameIndex_.PlaybackRateMenuButton.controlTextEl_.innerText=`Playback Rate ${e.playbackRate()}x`,e.getChild("controlBar").getChild("PlaybackRateMenuButton").removeAttribute("aria-describedby"),e.getChild("controlBar").getChild("PlaybackRateMenuButton").labelEl_.setAttribute("aria-hidden",!0),e.getChild("controlBar")?.getChild("volumePanel")?.getChild("volumeControl")?.getChild("volumeBar")?.el_?.removeAttribute("aria-live"),l&&l<100&&p!=="customVideo"&&(e.play(),e.currentTime(r),e.pause()),e.on("timeupdate",this.videoUpdate=()=>{(0,ye.ih)();const f=e.currentTime(),g=e.duration(),v=e.paused(),C=Math.floor(f),E=g*s/100||0;v&&!this.wasPaused&&f>this.maxTime&&this.setMaxTime(f),o&&this.updateSeekTooltip();const L=e.ended()&&!this.seeking,x=!v&&!this.seeking;if(!o||L||x){f>this.maxTime&&this.setMaxTime(f);let b=f/g*100;L&&(b=100),u&&u({currentTime:f,percentComplete:b}),C%5===0&&this.state.playheadPositionSaveThrottle!==C&&h&&(h(Kd(e)),this.setState({playheadPositionSaveThrottle:C}))}else o&&!this.restrictingSeek&&f>this.maxTime&&E<this.maxTime&&(this.restrictingSeek=!0,v||e.pause(),e.currentTime(this.maxTime));this.wasPaused=v}),this.setState({isReady:!0}),d()}),e.on("play",this.videoPlay=()=>{this.seeking=!1,this.showRestrictSeekTooltip(!1)}),e.on("playing",this.videoPlaying=()=>{at.isPlaying&&at.playerId!==a&&(at.isPlaying=!1),at.playerId=a,at.isPlaying=!0,this.state.playbackStarted===!1&&this.setState({playbackStarted:!0}),s&&this.state.shouldLoadPlayheadPosition&&e.currentTime(e.duration()*s/100||0),this.setState({shouldLoadPlayheadPosition:!1})}),e.on("pause",this.videoPaused=()=>{at.playerId===a&&(at.isPlaying=!1),h&&h(Kd(e))}),e.on("seeking",this.videoSeeking=()=>{this.seeking=!0}),e.on("seeked",this.videoSeeked=()=>{this.restrictingSeek=!1,this.seekTimeout&&clearTimeout(this.seekTimeout),h&&h(Kd(e)),this.seekTimeout=setTimeout(()=>{this.seeking=!1},1e3)}),e.on("fullscreenchange",c),e.on("keyup",e3),e.on("contextmenu",f=>{f.preventDefault()}),e.on("ratechange",this.playbackRatesChanged=()=>{e.controlBar.playbackRateMenuButton.childNameIndex_.PlaybackRateMenuButton.controlTextEl_.innerText=`Playback Rate ${e.playbackRate()}x`}),at.addChangeListener(this.onMediaStoreChange)}componentWillUnmount(){const{onFullScreenChange:e,recordMediaPlayheadPosition:s}=this.props,{player:o}=this.video;s&&s(Kd(o)),at.isPlaying=!1,at.removeChangeListener(this.onMediaStoreChange),o.off("timeupdate",this.videoUpdate),o.off("play",this.videoPlay),o.off("playing",this.videoPlaying),o.off("pause",this.videoPaused),o.off("seeking",this.videoSeeking),o.off("seeked",this.videoSeeked),o.off("fullscreenchange",e),o.off("ratechange",this.playbackRatesChanged),o.dispose()}render(){const{allowTabNavigation:e,labels:{a11yGroupVideoPlayer:s}}=this.props,{isReady:o,showRestrictSeekTooltip:r,playbackStarted:a}=this.state,c=M()("video-a11y video-wrapper",{"video-wrapper--visible":o,"video-wrapper--restrict-seek":r,"video-playback-started":a});return(0,n.jsx)("div",{"aria-hidden":!e,"aria-label":s,className:"figure-container",onKeyDown:this.onKeyDown.bind(this),ref:d=>{this.container=d},role:"region",children:(0,n.jsx)("div",{className:c,children:this.renderPlayer()})})}renderCaptionTrack(e){const{code:s,id:o,key:r,name:a,url:c}=e,d=c||(0,ye.o1)(r),l=QA(this.props.locale??"en"),u=a||l.of(s);return(0,n.jsx)("track",{kind:"captions",label:u,src:d,srcLang:s},o)}renderPlayer(){const{autoplay:e,canAdjustPlaybackSpeed:s,captionUID:o,captions:r,id:a,subtitle:c,type:d}=this.props,l=d==="customVideo",h=l?(b=>new URL(b).pathname.slice(1))(this.props.src):this.props.src,p=l?this.props.poster:(0,ye.o1)(this.props.poster),f=l?this.props.src:(0,ye.o1)(this.props.src),g=l?"application/x-mpegURL":void 0,v=s?[.25,.5,.75,1,1.25,1.5,1.75,2]:void 0,C=nn.isLocalFilesystem?{}:{crossOrigin:"anonymous"},E={autoplay:e,controlBar:{children:{playToggle:!0,progressControl:!0,remainingTimeDisplay:!0,playbackRateMenuButton:!0,captionsButton:!0,pictureInPictureToggle:!0,fullscreenToggle:!0,volumePanel:{inline:!0}}},controls:!0,languages:zA,playbackRates:v,preload:"none",textTrackSettings:!1};document.pictureInPictureEnabled||delete E.controlBar.children.pictureInPictureToggle;const L={key:`${a}-${h}-${o}`,options:E,poster:p,ref:b=>{this.video=b},...C},x=(0,n.jsx)("track",{kind:"captions",label:"English",src:l?c:(0,ye.o1)(c),srcLang:"en"}),S=`${f}?v=1`;return(0,n.jsxs)(LA.A,{...L,children:[(0,n.jsx)("source",{src:S,type:g}),!r&&c&&x,r&&r.map(this.renderCaptionTrack)]})}onKeyDown(e){if($A(e))return;const s=5,o=To(this.togglePlay.bind(this)),r=this.toggleFullScreen.bind(this),a=To(()=>this.keySeek(s)),c=To(()=>this.keySeek(-s));Rs()([[ld,o],[va,r],[dd,a],[ud,c]])(e)}togglePlay(){const{player:e}=this.video;e.userActive(!0),e.paused()?e.play():e.pause()}toggleFullScreen(){if(nn.isIe11)return;const{player:e}=this.video;e.isFullscreen()?e.exitFullscreen():e.requestFullscreen()}changeVolume(e){const{player:s}=this.video,o=s.volume();s.userActive(!0),s.volume(o+e)}keySeek(e){const{player:s}=this.video,{canRestrictSeek:o}=this.props;s.userActive(!0);const r=s.currentTime(),a=s.duration();s.paused()&&!r&&!a&&s.play();let d=r+e;o&&(d>this.maxTime?(d=this.maxTime,this.showRestrictSeekTooltip(!0)):this.showRestrictSeekTooltip(!1));const l=e<0?Math.max(d,0):Math.min(d,a);l!==r&&s.currentTime(l)}configureSeekDiv(){const{player:e}=this.video,s=e.controlBar,o=s.el();this.progressBarElement=s.progressControl.seekBar.playProgressBar.el(),this.seekDiv=WA(),o.appendChild(this.seekDiv),(0,je.createRoot)(this.seekDiv).render((0,n.jsx)(i4,{}))}showRestrictSeekTooltip(e){const{canRestrictSeek:s}=this.props;!s||!this.seekDiv||e!==this.state.showRestrictSeekTooltip&&(e?this.seekDiv.classList.remove(K1):this.seekDiv.classList.add(K1),this.setState({showRestrictSeekTooltip:e}))}updateSeekTooltip(){const{player:e}=this.video,s=this.progressBarElement.getBoundingClientRect(),o=e.el().getBoundingClientRect(),r=this.seekDiv.getBoundingClientRect().width,a=s.left-o.left,c=r/2,d=a+s.width-c;this.seekDiv.style.left=`${d}px`,this.seekDiv.style.top=`${VA}px`}getMaxTime(){return this.maxTime}onMediaStoreChange(){if(!this.video)return;const{id:e}=this.props,{player:s}=this.video;at.playerId===e&&(at.isPlaying?s.play():s.pause())}}function KA(t){const e=s=>{const o=(0,Me.DX)();return(0,n.jsx)(t,{...s,locale:o?.locale})};return e.displayName=`withLocale(${t.displayName??t.name})`,e}const $1=KA(GA),$A=t=>{const e=t.target.className,s=op(t)&&e.includes("vjs-volume-bar");return Hr(t)&&(e.includes("vjs-control")||e.includes("vjs-big-play-button"))||s},QA=SA()(t=>new Intl.DisplayNames([t],{type:"language",fallback:"code"}));var nf=i(59288);function cs(t){const e=nf.forwardRef((s,o)=>{const r=(0,It.gY)();return(0,n.jsx)(t,{...s,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookup(${t.displayName||t.name})`,e}function of(t){const e=nf.forwardRef((s,o)=>{const r=(0,It.gY)(),a=(0,It.NB)();return(0,n.jsx)(t,{...s,getL10nValue:r,getL10nRecursive:a,ref:o})});return e.displayName=`withLocalizedLookupRecursive(${t.displayName||t.name})`,e}var ZA=i(38576),bo=i.n(ZA),YA=i(11437),rf=i.n(YA);const XA=t=>({...t,courseId:t.courseId||jt()(["course","id"],t)}),JA=t=>({...t,lessonId:t.lessonId||jt()(["lesson","id"],t)}),qA=({id:t,courseId:e,lessonId:s,refs:o})=>t||(o&&s?`${s}-${o}`:s||e),Q1=Se()(qA,JA,XA),Mle=St()(vi()(Pe()("id"),bo()("id",Q1)),Jn()(rf()(Pe(),[Pe()("id"),Pe()("uploads")]),Ls()(["id"])),bo()("isUploading",Ue()("status","uploading")));var eR=i(59288);const Z1=t=>!!(t&&("key"in t&&t.key||"src"in t&&t.src)),$d=t=>Z1(t)&&!t.isProcessing&&!t.error,tR=(t,e)=>e?.mediaType==="audio"?!!t&&(Z1(t)||W3(e)||w1(e)&&!Z1(t)):$d(t),sR=t=>sn()(We()(!!t),A1()(`-${t}`));class nR extends eR.Component{constructor(e){super(e),this.onTranscriptClick=this.onTranscriptClick.bind(this)}static get defaultProps(){return{defaultAlign:"left",media:{},index:"1",hasPadding:!0,opts:{},allowTabNavigation:!0,lessonNumber:1,getL10nValue:()=>{}}}onTranscriptClick(){const{block:e,openTranscript:s,refs:o}=this.props,r=e.items?.length===1?e.items[0]:void 0,a=this.props.item??r;if(e&&a&&s)return s({blockId:e.id,item:a,refs:o})}renderAudio(e,s){const{activeIndex:o,allowTabNavigation:r,index:a,isOverlayAudio:c,item:d,itemIndex:l,labels:u,lessonNumber:h,pauseOnLoad:p,shouldPause:f,refs:g,side:v}=this.props,C=`audio-${h}-${a}`;return(0,n.jsx)(F1,{activeIndex:o,allowTabNavigation:r,id:C,item:d,itemIndex:l,isOverlayAudio:c,labels:u,mediaSrc:e.key,refs:g,side:v,onTranscriptClick:this.onTranscriptClick,shouldPause:e.pause||p||f,transcript:e.transcript,uploadId:s},C)}renderImage(e){const{allowTabNavigation:s,defaultAlign:o,imageMaxHeight:r,index:a,labels:c,onLoad:d,opts:l}=this.props,u=e?.align??o,h=e?.dimensions,p=`image-${a}`,{disableZoom:f}=l;return(0,n.jsx)(ki,{align:u,allowTabNavigation:s,alt:e.alt,disableZoom:f,height:h?.height||h?.originalHeight,labels:c,maxHeight:r,onLoad:d,shouldFillWidth:e.fillWidth,src:(0,rs.ME)(e),width:h?.width||h?.originalWidth},p)}renderVideo(e){const{allowTabNavigation:s,blockId:o,lessonNumber:r,index:a,labels:c,onFullScreenChange:d,enableVideoPlaybackSpeed:l,pauseOnLoad:u,shouldPause:h}=this.props,p=sR(o)(`video-${r}-${a}`);return(0,n.jsx)($1,{allowTabNavigation:s,captionUID:e.captionUID,captions:e.captions,id:p,labels:c,onFullScreenChange:d,poster:e.poster,shouldPause:e.pause||u||h,src:e.key,canAdjustPlaybackSpeed:l},p)}renderEmbed(e){const{allowTabNavigation:s,embedClass:o,labels:r,opts:a,shouldPause:c}=this.props,{fullEmbed:d,showMetaData:l=!0}=a,u=`embed-${this.props.index}`;return(0,n.jsx)("div",{className:o,children:(0,n.jsx)(G1,{labels:r,isLesson:d,id:u,showMetaData:l,data:e,allowTabNavigation:s,shouldPause:e.pause||c},u)})}render(){const{blockId:e,hasPadding:s,item:o,lessonId:r,refs:a=`items:${e??""}/items:${o&&"id"in o?o.id:""}`,renderMediaType:c}=this.props,d=this.props.media,l=M()({"media-group":s}),{audio:u,embed:h,image:p,video:f}=this.props.getL10nValue(d)??{},g=Q1({lessonId:r,refs:a}),v=this.props.getUpload?this.props.getUpload(g):null;return(0,n.jsxs)("div",{className:l,"data-l10n-id":(0,Pt.pP)(d),children:[(!c||c==="audio")&&tR(u,v)&&this.renderAudio(u,g),(!c||c==="image")&&$d(p)&&this.renderImage(p),(!c||c==="video")&&$d(f)&&this.renderVideo(f),(!c||c==="embed")&&$d(h)&&this.renderEmbed(h)]})}}const En=(0,Hs.Ls)()(xj(bd(P3(cs(nR)))));var oR=i(59288);const $o=q("block-text"),rR=class extends oR.Component{renderHeadingDelegate;renderTextDelegate;constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this),this.renderHeadingDelegate=this.renderHeading.bind(this)}static get defaultProps(){return{columns:1,heading:"",items:[],type:"onecol",getL10nValue:()=>{}}}getHeadingComponent=()=>{const{heading:t}=this.props;return t?t==="heading"?"h2":"h3":"div"};renderHeading(t){const e="heading"in t?t.heading:null;return(0,n.jsx)(Nt,{value:e})}renderText(t){const{labels:e,takingSnapshot:s,variant:o}=this.props,r=o?.includes("column"),a="paragraph"in t?t.paragraph:void 0;return r||s?(0,n.jsx)(IN,{item:t,labels:e,children:(0,n.jsx)(Ms,{value:a||""})}):(0,n.jsx)(Ms,{className:$o("col"),value:a||""})}render(){const{blockId:t,columns:e,defaultBackgroundColor:s,heading:o,isLearner:r,items:a,labels:c,lessonId:d,media:l,settings:u,type:h,variant:p,renderText:f=this.renderTextDelegate,renderHeading:g=this.renderHeadingDelegate,getL10nValue:v}=this.props,C=v(l),E=Object.keys(C?.audio??{}).length>0,{entranceAnimation:L,cellPadding:x=1.5,tableWidth:S=76,textPadding:b=.8,textWidth:N=76}=u,I=p==="table",j=e===1,R=e>1,P=I?S:N,B=!I&&j,_=I,k=aN(x),J=iN(b),Z=y1(P),G=$o({[h]:!B&&!_||R,[`${h}-custom-width`]:!R,[`${h}-custom-width-table-${Z}`]:_,[`${h}-custom-width-text-${Z}`]:B,[`heading-custom-text-padding-${J}`]:B,[`${h}-custom-cell-padding-${k}`]:_,"no-animation":!L}),Y=e>2?$o("container-wide"):$o("container",{authoring:!r}),Ee=this.getHeadingComponent();return(0,n.jsx)(qt,{className:G.toString(),defaultBackgroundColor:s,children:(0,n.jsxs)("div",{className:Y,"data-block-id":t,"data-block-text":"",children:[(0,n.jsx)("div",{className:$o("row"),children:o!==""?a.slice(0,1).map((fe,oe)=>(0,n.jsx)("div",{className:$o("col"),children:(0,n.jsx)("div",{className:$o("heading"),children:(0,n.jsx)(Ee,{children:g(fe)})})},"id"in fe?fe.id:oe)):null}),(0,n.jsx)("div",{className:$o("row"),children:h!=="heading"?a.slice(0,e).map((fe,oe)=>(0,n.jsx)(m.Fragment,{children:f(fe)},"id"in fe?fe.id:oe)):null}),E&&(0,n.jsx)("div",{className:$o("row",{media:!0}),children:(0,n.jsx)("div",{className:$o("col",{media:!0}),children:(0,n.jsx)(En,{blockId:t,hasPadding:!1,index:t,labels:c,lessonId:d,item:{id:t,media:l},media:l,refs:`items:${t}`})})})]})})}},zr=cs(rR),aR=zr,iR=t=>(0,n.jsx)(zr,{type:"twocol",columns:2,...t}),cR=t=>(0,n.jsx)(zr,{type:"threecol",columns:3,...t}),lR=t=>(0,n.jsx)(zr,{type:"fourcol",columns:4,...t}),dR=t=>(0,n.jsx)(zr,{type:"heading",heading:"heading",...t}),uR=t=>(0,n.jsx)(zr,{type:"heading",heading:"subheading",...t}),hR=t=>(0,n.jsx)(zr,{heading:"heading",...t}),mR=t=>(0,n.jsx)(zr,{heading:"subheading",...t});var pR=i(31433),Vr=i.n(pR);class fR extends ie().Component{static defaultProps={animateOnce:!1,delay:0,duration:1,keepStructure:!1,initiallyVisible:!1,offset:150,siblingDelay:0};animating;callbackTimeout;delayedAnimationTimeout;listener;node;scrollableParent;serverSide;visibility={aboveViewport:!1,belowViewport:!1,inViewport:!1,onScreen:!1};constructor(e){super(e),this.serverSide=typeof window>"u",this.listener=Vr()(this.handleScroll.bind(this),50),this.state={canAnimate:!0,classes:"animated",style:{animationDuration:`${this.props.duration}s`,opacity:this.props.initiallyVisible?1:0}}}getElementTop(e){let s=0;for(;e&&e.offsetTop!==void 0&&e.clientTop!==void 0;)s+=e.offsetTop+e.clientTop,e=e.offsetParent;return s}getScrollPos(){return this.scrollableParent instanceof Window&&this.scrollableParent.pageYOffset!==void 0?this.scrollableParent.pageYOffset:this.scrollableParent.scrollTop}getScrollableParentHeight(){return this.scrollableParent instanceof Window&&this.scrollableParent.innerHeight!==void 0?this.scrollableParent.innerHeight:this.scrollableParent.clientHeight}getViewportTop(){return this.getScrollPos()+this.props.offset}getViewportBottom(){return this.getScrollPos()+this.getScrollableParentHeight()-this.props.offset}isInViewport(e){return e>=this.getViewportTop()&&e<=this.getViewportBottom()}isAboveViewport(e){return e<this.getViewportTop()}isBelowViewport(e){return e>this.getViewportBottom()}inViewport(e,s){return this.isInViewport(e)||this.isInViewport(s)||this.isAboveViewport(e)&&this.isBelowViewport(s)}onScreen(e,s){return!this.isAboveScreen(s)&&!this.isBelowScreen(e)}isAboveScreen(e){return e<this.getScrollPos()}isBelowScreen(e){return e>this.getScrollPos()+this.getScrollableParentHeight()}getVisibility(){const e=this.getElementTop(this.node)-this.getElementTop(this.scrollableParent),s=e+this.node.clientHeight,o=this.inViewport(e,s);return{aboveViewport:this.isAboveViewport(e),belowViewport:this.isBelowViewport(e),inViewport:o,onScreen:this.onScreen(e,s)}}componentDidMount(){if(!this.serverSide){const e=this.props.scrollableParentSelector;this.scrollableParent=e?document.querySelector(e):window,this.scrollableParent&&this.scrollableParent.addEventListener?this.scrollableParent.addEventListener("scroll",this.listener):console.warn(`Cannot find element by locator: ${this.props.scrollableParentSelector}`),setTimeout(()=>{this.handleScroll()},0)}}componentWillUnmount(){clearTimeout(this.delayedAnimationTimeout),clearTimeout(this.callbackTimeout),this.listener.cancel(),window&&window.removeEventListener&&window.removeEventListener("scroll",this.listener)}visibilityHasChanged(e,s){return e.inViewport!==s.inViewport||e.onScreen!==s.onScreen}captureRef(e){e&&(this.node=e instanceof HTMLElement?e:e.animateRef)}animate(e,s){const{children:o,duration:r,siblingDelay:a}=this.props;this.delayedAnimationTimeout=setTimeout(()=>{this.animating=!0,this.setState({classes:`animated ${e}`,style:{animationDuration:`${this.props.duration}s`}});let c=r;if(a>0){let d=0;ie().Children.forEach(o,l=>{l&&(d+=ie().Children.count(l.props.children))}),d>0&&(c=r+a*d)}this.callbackTimeout=setTimeout(s,c*1e3)},this.props.delay)}animateIn(e){this.animate(this.props.animateIn,()=>{this.props.animateOnce?this.setState({canAnimate:!1,classes:"",style:{}}):(this.setState({style:{animationDuration:`${this.props.duration}s`,opacity:1}}),this.animating=!1);const s=this.getVisibility();e&&e(s)})}animateOut(e){this.animate(this.props.animateOut,()=>{this.setState({classes:"animated",style:{animationDuration:`${this.props.duration}s`,opacity:0}});const s=this.getVisibility();s.inViewport&&this.props.animateIn?this.animateIn(this.props.afterAnimatedIn):this.animating=!1,e&&e(s)})}shouldNotAnimate(e){return this.props.animateIn&&this.props.animateOut?!e.onScreen:this.props.animateIn?!e.onScreen&&!e.aboveViewport:!e.onScreen&&!e.belowViewport}shouldAnimateIn(e){return this.props.animateIn?this.props.animateOut?e.inViewport:e.inViewport||e.aboveViewport:!1}shouldAnimateOut(e){return this.props.animateOut&&e.onScreen&&this.state.style.opacity===1?this.props.animateIn?e.inViewport:e.inViewport||e.belowViewport:!1}handleScroll(){if(!this.animating&&this.node!=null){const e=this.getVisibility();this.visibilityHasChanged(this.visibility,e)&&(clearTimeout(this.delayedAnimationTimeout),this.shouldNotAnimate(e)?this.setState({classes:"animated",style:{animationDuration:`${this.props.duration}s`,opacity:this.props.initiallyVisible?1:0}}):this.shouldAnimateIn(e)?this.animateIn(this.props.afterAnimatedIn):this.shouldAnimateOut(e)&&this.animateOut(this.props.afterAnimatedOut),this.visibility=e)}}renderChild(e,s,o=0){const{canAnimate:r}=this.state,{initiallyVisible:a,keepStructure:c,siblingDelay:d}=this.props,l=d*o,u=Object.assign({},this.props.style,this.state.style,r&&{animationDelay:`${l}s`,animationFillMode:"forwards"});return(0,n.jsx)(gR,{classes:s,initiallyVisible:a,keepStructure:c,style:u,children:e},o)}renderChildren(e,s){const{children:o,siblingDelay:r}=this.props,a=Array.isArray(s)?s:o;return r&&Array.isArray(a)?[...Array(a.length).keys()].map(c=>this.renderChild(a[c],e,c)):this.renderChild(a,e)}renderWrapped(e){return(0,n.jsx)("div",{ref:s=>{this.node=s},children:this.renderChildren(e)})}renderStructure(e){const{children:s}=this.props;return ie().Children.count(s)===1?ie().Children.map(s,o=>ie().cloneElement(o,{ref:this.captureRef.bind(this)},this.renderChildren(e,o.props.children))):this.renderWrapped(e)}render(){const e=this.props.className?`${this.props.className} ${this.state.classes}`:this.state.classes;return this.props.keepStructure?this.renderStructure(e):this.renderWrapped(e)}}class gR extends ie().Component{static defaultProps={keepStructure:!1};state={hasAnimated:!1};ref;componentDidMount(){this.ref?.addEventListener?.("animationend",this.handleAnimationEnd)}componentWillUnmount(){this.ref?.removeEventListener?.("animationend",this.handleAnimationEnd)}componentDidUpdate(e){e.style.opacity!==this.props.style.opacity&&this.props.style.opacity===0&&this.setState({hasAnimated:!1})}captureRef(e){e&&(this.ref=e instanceof HTMLElement?e:e.animateRef)}handleAnimationEnd=()=>{this.ref&&this.setState({hasAnimated:!0})};renderStructure({style:e}){const{children:s,classes:o}=this.props;return ie().Children.map(s,a=>ie().cloneElement(a,{className:o,style:e,ref:this.captureRef.bind(this)}))}renderWrapped({style:e}){const{children:s,classes:o}=this.props;return(0,n.jsx)("div",{className:o,style:e,ref:r=>{this.ref=r},children:s})}render(){const{initiallyVisible:e,keepStructure:s}=this.props,{hasAnimated:o}=this.state,r=this.props.style,a=r.animationDelay!==void 0&&!e?0:r.opacity,c=Object.assign({},r,{opacity:o?1:a});return s?this.renderStructure({style:c}):this.renderWrapped({style:c})}}const vR=matchMedia("(prefers-reduced-motion: reduce)");function Js(){return vR.matches}const CR=t=>{const{afterAnimatedIn:e,animateBlockEntrance:s,animateIn:o,animateOnce:r,children:a,className:c,duration:d,keepStructure:l,initiallyVisible:u,isLearner:h,offset:p,siblingDelay:f}=t;return h&&s&&!Js()?(0,n.jsx)(fR,{afterAnimatedIn:e,animateIn:o,animateOnce:r??!0,className:c,duration:d??.75,initiallyVisible:u,keepStructure:l,offset:p??200,scrollableParentSelector:"#page-wrap",siblingDelay:f??0,children:a}):Array.isArray(a)?(0,n.jsx)("div",{children:a}):a},zt=(0,Me.Uj)(CR);var af=i(59288);const xR=af.lazy(async()=>{const[t,e]=await Promise.all([i.e("ace").then(i.t.bind(i,72066,23)),i.e("ace").then(i.bind(i,49249)),i.e("ace").then(i.t.bind(i,22813,23)),i.e("ace").then(i.t.bind(i,93020,23)),i.e("ace").then(i.t.bind(i,40864,23)),i.e("ace").then(i.t.bind(i,10695,23)),i.e("ace").then(i.t.bind(i,40864,23)),i.e("ace").then(i.t.bind(i,1883,23)),i.e("ace").then(i.t.bind(i,64580,23)),i.e("ace").then(i.t.bind(i,84557,23)),i.e("ace").then(i.t.bind(i,77443,23)),i.e("ace").then(i.t.bind(i,35761,23)),i.e("ace").then(i.t.bind(i,23977,23)),i.e("ace").then(i.t.bind(i,1672,23)),i.e("ace").then(i.t.bind(i,19356,23)),i.e("ace").then(i.t.bind(i,94443,23)),i.e("ace").then(i.t.bind(i,88191,23)),i.e("ace").then(i.t.bind(i,84390,23)),i.e("ace").then(i.t.bind(i,74445,23)),i.e("ace").then(i.t.bind(i,95402,23)),i.e("ace").then(i.t.bind(i,5361,23)),i.e("ace").then(i.t.bind(i,36240,23))]);return{default:e.default}});class ER extends af.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:e}){return(0,n.jsx)(Ms,{className:"block-text__code-caption",value:e||""})}render(){const{animateBlockEntrance:e,defaultBackgroundColor:s="",getL10nValue:o,isLearner:r,items:a,labels:c,settings:d,renderCaption:l=this.renderCaptionDelegate}=this.props,{entranceAnimation:u,language:h,paddingBottom:p,paddingTop:f,snippetBackgroundColor:g,snippetColorContrast:v,theme:C,useAdvancedEditor:E,wrapWords:L}=d,x=M()("block-text block-text--code",{"block-text--padding-top":Number(f)===2,"block-text--padding-bottom":Number(p)===2,"block-text--no-animation":!u}),S={backgroundColor:g},b=g==="#fafafa"||wt()(g),N=v??O.Em.DARK;if(!b){const I=jn({backgroundColor:g,contrast:N});Object.assign(S,{"--color-snippet-contrast":I})}return(0,n.jsx)(qt,{className:x,defaultBackgroundColor:s,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,children:(0,n.jsx)("div",{className:"block-text__container",children:a.slice(0,1).map(I=>{const j=qc({...I,getL10nValue:o});return(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{"aria-label":c?.a11yBlockCode,className:"block-text__col",role:ji,children:(0,n.jsxs)("figure",{"aria-labelledby":j.figcaptionId,className:"block-text__figure",role:"figure",children:[(0,n.jsx)(NI,{value:I.code,children:R=>E?(0,n.jsx)(m.Suspense,{fallback:null,children:(0,n.jsx)(xR,{editorProps:{$blockScrolling:!0},maxLines:25,mode:h,name:String(I.id),setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:C,readOnly:!0,width:"100%",wrapEnabled:L,value:(0,ja.htmlDecode)((0,xo.aj)(R))})}):(0,n.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:(0,xo.aj)(R)},dir:"ltr",style:S})}),I.caption&&(0,n.jsx)("figcaption",{id:j.figcaptionId,children:l(I)})]})})},I.id)})})})})}}const cf=cs(ER);function TR(t,e){const s=rn(),{cardMode:o,className:r="",children:a,disabled:c=!1,tag:d="div",overrideBackground:l=!1,style:u={},...h}=t,{backgroundType:p,cardMode:f,customBackgroundColorContrast:g}=s,C=(0,Me.DX)()?.theme,E=o??f,L=qn()??"#ffffff",x=E===Lo.WHITE,S=p===O.xj.COLOR,b=p===O.xj.ACCENT,N=C?.accentContrast,I=p===O.xj.ACCENT||p===O.xj.COLOR,j=N===O.Em.AUTO&&b||g===O.Em.AUTO&&S,R=p===O.xj.COLOR?g:N,P=[r,"block-card"];if(x)P.push("bg--range-light","block-card--white");else if(c){P.push("block-card--disabled");const B=jn({backgroundColor:L,contrast:R});j&&(u["--color-text"]=B,u["--color-text-opposite"]=B===$e.S6.DARK?$e.S6.LIGHT:$e.S6.DARK)}else{P.push("block-card--transparent");const B=(0,ct.XC)(L),_=ct.t9[B](L);switch(p){case O.xj.LIGHT:case O.xj.GRAY:P.push("bg--range-light");break;case O.xj.IMAGE:P.push("bg--range-dark");break;case O.xj.DARK:case O.xj.BLACK:P.push("bg--range-dark"),u["--color-background-rgb"]=(0,Ai.A)(_)?.slice(0,3);break;default:{const k=jn({backgroundColor:_,contrast:R});I&&k==$e.S6.LIGHT&&P.push("block-card--contrast-light");const J=(0,ct.XC)(_);P.push(`bg--range-${wc()(J.toLowerCase())}`);const Z=l?L:_;u["--color-background"]=Z,u["--color-background-rgb"]=(0,Ai.A)(Z)?.slice(0,3);break}}}return(0,n.jsx)(d,{...h,className:P.join(" "),ref:e,style:u,children:a})}const Rn=(0,m.forwardRef)(TR);var lf=i(59288);const eo=q("block-statement");class SR extends lf.Component{renderTextDelegate;constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}static get defaultProps(){return{items:[],type:"a",getL10nValue:()=>{}}}getEntranceAnimationType(){const{type:e}=this.props;switch(e){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}getEntranceAnimationDuration(){const{type:e}=this.props;switch(e){case"a":return 1;case"b":case"c":case"d":return .75;case"note":return .5}}renderText({blockId:e,getL10nValue:s,type:o,labels:r,lessonId:a,media:c},{paragraph:d}){const u=o==="note"?jR:lf.Fragment,h=!!(c&&s(c)?.audio);return(0,n.jsx)(u,{children:(0,n.jsxs)("div",{className:eo("quote"),children:[(0,n.jsx)(Ms,{value:d}),h&&(0,n.jsx)("div",{className:eo("audio-container"),children:(0,n.jsx)(En,{blockId:e,hasPadding:!1,index:e,labels:r,lessonId:a,media:c,item:{media:c,id:e},refs:`items:${e}`})})]})})}render(){const{animateBlockEntrance:e,isLearner:s,items:o,renderText:r=this.renderTextDelegate,settings:a,type:c}=this.props,{entranceAnimation:d,divider:l=!0,dividerPadding:u=XI(c),dividerSize:h=YI(c),noteIcon:p=!0,noteSize:f="sm",statementWidth:g=JI(c)}=a,v=nN(g),C=oN(u),E=rN(h),L=f,x=c==="a"||c==="b"||c==="d",S=c==="note",b=eo({[c]:!0,[`${c}-custom-width-${v}`]:!0,[`${c}-divider-off`]:x&&!l,[`${c}-divider-padding-${C}`]:x&&l,[`${c}-divider-size-${E}`]:x&&l,[`note-size-${L}`]:S,[`note-size-${L}-no-icon`]:S&&!p,"no-animation":!d});return(0,n.jsx)(qt,{className:b.toString(),children:(0,n.jsx)("div",{className:eo("wrap"),children:(0,n.jsx)("div",{className:eo("container"),children:(0,n.jsx)("div",{className:eo("row"),children:o.slice(0,1).map(N=>(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),isLearner:s,children:(0,n.jsxs)("div",{className:eo("col"),children:[(0,n.jsx)("div",{className:eo("divider-top-container"),children:(0,n.jsx)("div",{className:eo("divider-top")})}),r(this.props,N),(0,n.jsx)("div",{className:eo("divider-bottom")})]})},N.id))})})})})}}const dl=cs(SR),LR=dl,bR=t=>(0,n.jsx)(dl,{type:"b",...t}),yR=t=>(0,n.jsx)(dl,{type:"c",...t}),IR=t=>(0,n.jsx)(dl,{type:"d",...t}),NR=t=>(0,n.jsx)(dl,{type:"note",...t}),jR=({children:t})=>{const{accentColor:e,backgroundType:s,cardMode:o,courseColor:r,customBackgroundColorContrast:a,noteIcon:c=!0}=rn(),{theme:d}=(0,Me.DX)(),l=qn(),u=s===O.xj.COLOR,h=s===O.xj.ACCENT,p=d?.accentContrast,f=s===O.xj.DARK||s===O.xj.BLACK,v=u||h||f?Lo.TRANSPARENT:o,C=p===O.Em.AUTO&&h||a===O.Em.AUTO&&u,E={},L=(0,m.useMemo)(()=>{if(s!==O.xj.IMAGE&&l==null)return"#000000b3";switch(s){case O.xj.IMAGE:return"";case O.xj.LIGHT:case O.xj.GRAY:return(0,ct.W8)(.9,e??r);case O.xj.DARK:return"#494949";case O.xj.BLACK:return"#333333";default:switch((0,ct.XC)(l)){case ct.lL.LIGHT:return(0,ct.W8)(.3,l);case ct.lL.MED:return(0,ct.W8)(-.2,l);case ct.lL.DARK:case ct.lL.NEAR_BLACK:return(0,ct.W8)(-.4,l)}}},[e,s,l,r]),x=s===O.xj.COLOR?a:p,S=jn({backgroundColor:L,contrast:x});E["--color-background"]=L,C&&(E["--color-text"]=S);const b=eo("note-icon",{off:!c});return(0,n.jsxs)(Rn,{cardMode:v,className:eo("note-card"),style:E,children:[(0,n.jsx)("div",{className:b,children:(0,n.jsx)(Lt,{name:"circle-info"})}),t]})};var qs=i(59288);function df({ariaLabel:t,children:e,className:s="carousel-controls-item-btn",isActive:o,onClick:r,onKeyDown:a}){return(0,n.jsx)("li",{className:"carousel-controls-item",role:"listitem",children:(0,n.jsx)("button",{"aria-current":o,"aria-label":t,className:s,onClick:r,onKeyDown:a,tabIndex:o?0:-1,type:"button",children:e})})}function Qd({children:t,iconNameLeft:e="chevron-left-light",iconNameRight:s="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:c="Carousel",labelSlideControls:d="Slide controls",labelSlideControlsGoToNext:l="Go to next slide",labelSlideControlsGoToPrevious:u="Go to previous slide",labelSlideControlsGoToSlide:h="Go to slide",labelSlidePreposition:p="of",labelSlideRoleDesc:f="Slide",onChange:g,ref:v,renderSlideIndicator:C,shouldMouseEmulateTouch:E=!1,shouldUseCounter:L=!1,shouldUseGoToSlide:x=!0}){const[S,b]=qs.useState(0),N=(0,as.A)(S)??0,I=qs.useRef(void 0),j=qs.useRef(void 0),R=qs.useRef(!1),P=qs.useRef(!1),B=qs.useRef(void 0),_=qs.useRef(void 0),k=qs.Children.count(t),J=(0,as.A)(k),Z=qs.useMemo(()=>Array.from({length:k}),[k]),G=k>1;qs.useImperativeHandle(v,()=>({navigateToSlide:(Ae,_e=!0)=>{b(Ae);const Qe=I.current?.children?.[Ae]?.firstElementChild;_e&&Qe?.focus()}}),[b]);const Y=qs.useCallback(({activeIndex:Ae,dir:_e})=>{const Qe=o?Ae-1>=0?Ae-1:k-1:Math.max(0,Ae-1),pt=o?Ae+1<=k-1?Ae+1:0:Math.min(k-1,Ae+1);return _e==="left"?r?pt:Qe:r?Qe:pt},[o,r,k]),Ee=qs.useCallback(()=>{b(Ae=>Y(r?{activeIndex:Ae,dir:"right"}:{activeIndex:Ae,dir:"left"}))},[Y,r]),fe=qs.useCallback(()=>{b(Ae=>Y(r?{activeIndex:Ae,dir:"left"}:{activeIndex:Ae,dir:"right"}))},[Y,r]),oe=qs.useCallback(Ae=>{let _e=!1,Qe=S;switch(Ae.key){case"ArrowLeft":_e=!0,Qe=Y({activeIndex:S,dir:"left"});break;case"ArrowRight":_e=!0,Qe=Y({activeIndex:S,dir:"right"});break;case"Home":_e=!0,Qe=0;break;case"End":_e=!0,Qe=k-1;break}if(_e&&(Ae.stopPropagation(),Ae.preventDefault()),S!==Qe){const pt=I.current?.children?.[Qe]?.firstChild;pt?.focus(),pt?.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),b(Qe)}},[S,Y,k]);qs.useEffect(()=>{N!==S&&g?.(S)},[S,g,N]),qs.useEffect(()=>{k<J&&S>k-1&&b(k-1)},[S,J,k]),qs.useEffect(()=>{const Ae=Ne=>{Ne.target.tagName==="IMG"&&Ne.preventDefault(),B.current=Ne.screenX},_e=Ne=>{const Ke=window.visualViewport?.scale??1,He=window.getSelection().toString()!=="";if(!P.current&&Ke<=1.01&&!He&&B.current!=null){_.current=Ne.screenX;const dt=_.current-B.current;Math.abs(dt)>50&&(window.getSelection().empty(),R.current=!0,B.current=void 0,_.current=void 0,dt<0?b(Ht=>Y({activeIndex:Ht,dir:"right"})):b(Ht=>Y({activeIndex:Ht,dir:"left"})))}},Qe=Ne=>{R.current&&Ne.stopPropagation(),R.current=!1,P.current=!1,B.current=void 0,_.current=void 0},pt=Ne=>{if(Ne.touches.length>1){P.current=!0;return}Ne.changedTouches.length===1&&Ne.changedTouches[0]&&(B.current=Ne.changedTouches[0].screenX)},ls=Ne=>{const Ke=window.visualViewport?.scale??1,He=window.getSelection().toString()!=="";if(!P.current&&Ke<=1.01&&!He&&B.current!=null&&Ne.changedTouches[0]){_.current=Ne.changedTouches[0].screenX;const dt=_.current-B.current;Math.abs(dt)>50&&(R.current=!0,B.current=void 0,_.current=void 0,dt<0?b(Ht=>Y({activeIndex:Ht,dir:"right"})):b(Ht=>Y({activeIndex:Ht,dir:"left"})))}},nt=()=>{R.current=!1,P.current=!1,B.current=void 0,_.current=void 0},Ce=j.current;return E&&(Ce?.addEventListener("mousedown",Ae,{capture:!0}),Ce?.addEventListener("mousemove",_e,{capture:!0}),Ce?.addEventListener("click",Qe,{capture:!0})),Ce?.addEventListener("touchstart",pt,{passive:!0}),Ce?.addEventListener("touchmove",ls,{passive:!0}),Ce?.addEventListener("touchend",nt,{passive:!0}),Ce?.addEventListener("touchcancel",nt,{passive:!0}),()=>{E&&(Ce?.removeEventListener("mousedown",Ae),Ce?.removeEventListener("mousemove",_e),Ce?.removeEventListener("mouseup",nt)),Ce?.removeEventListener("touchstart",pt),Ce?.removeEventListener("touchmove",ls),Ce?.removeEventListener("touchend",nt),Ce?.removeEventListener("touchcancel",nt)}},[Y,E,k]);const we=Ae=>()=>{I.current?.children?.[Ae]?.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),b(Ae)};return(0,n.jsxs)("div",{"aria-label":a,"aria-roledescription":c,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":S},children:[G&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{"aria-label":d,className:"carousel-controls",role:"group",children:[x&&(0,n.jsx)("ul",{className:"carousel-controls-items",ref:I,role:"list",children:Z.map((Ae,_e)=>{const Qe=S===_e,pt=we(_e);return C?C({index:_e,isActive:Qe,onClick:pt,onKeyDown:oe}):(0,n.jsx)(df,{ariaLabel:h+" "+(_e+1),isActive:Qe,onClick:pt,onKeyDown:oe,children:(0,n.jsx)(Lt,{className:"carousel-controls-item-btn-icon",name:Qe?"circle":"circle-solid"})},_e)})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:S===0,"aria-label":u,className:"carousel-controls-prev",onClick:!o&&S===0?void 0:Ee,type:"button",children:(0,n.jsx)(Lt,{className:"carousel-controls-prev-icon",name:r?s:e})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:S===k-1,"aria-label":l,className:"carousel-controls-next",onClick:!o&&S===k-1?void 0:fe,type:"button",children:(0,n.jsx)(Lt,{className:"carousel-controls-next-icon",name:r?e:s})}),L&&(0,n.jsxs)("div",{className:"carousel-controls-counter",children:[(0,n.jsx)("div",{className:"carousel-controls-counter-text",children:`${S+1} ${p} ${k}`}),(0,n.jsx)("div",{className:"carousel-controls-counter-line",children:(0,n.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((S+1)/k).toFixed(2))*100}%`}})})]})]})}),(0,n.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:j,children:qs.Children.map(t,(Ae,_e)=>(0,n.jsx)("div",{"aria-label":`${_e+1} ${p} ${k}`,"aria-roledescription":f,className:"carousel-slide",hidden:S!==_e,inert:S!==_e,role:"group",children:Ae}))})]})}var ul=i(59288);const AR="div",uf=ul.createContext(void 0);function RR({children:t,element:e,...s},o){const[r,a]=ul.useState();return(0,n.jsx)(uf.Provider,{value:r,children:ul.createElement(e??AR,{...s,ref:o},t,(0,n.jsx)("div",{ref:a}))})}const Zd=ul.forwardRef(RR);function Dle(){return ul.useContext(uf)}function Yd(t){const e=s=>{const o=(0,Me.Wz)();return(0,n.jsx)(t,{...s,isRTL:o})};return e.displayName=`withRTL(${t.displayName||t.name})`,e}const Xd=({blockId:t,carouselRef:e,children:s,items:o})=>{const r=(0,m.useRef)(null),a=e??r;return(0,m.useEffect)(()=>{const c=d=>{const{path:l}=d.detail,{blockId:u,cardId:h}=Pc(l,["block","card"]);if(u===t){const p=o.findIndex(f=>f.id===h);p>=0&&a.current?.navigateToSlide?.(p,!1)}};return window.addEventListener(ms,c),()=>{window.removeEventListener(ms,c)}},[o,t,a]),(0,n.jsx)(n.Fragment,{children:s({carouselRef:e})})},Vt=q("block-quote"),hl=({avatar:t,alt:e,l10nId:s,showAvatar:o})=>(0,n.jsx)(An,{alt:(0,gn.Ll)(e),className:Vt("avatar",{hidden:!o}),"data-l10n-id":s,src:t}),OR=({alt:t,animateBlockEntrance:e,avatar:s,children:o,l10nId:r,isAuthorBlank:a=!1,isLearner:c,showAvatar:d,type:l})=>{const u=Vt("col",{"no-avatar":!s}),h=s?(0,n.jsx)("div",{className:Vt("image"),children:(0,n.jsx)("div",{className:Vt("avatar-wrap"),children:l==="c"?(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeInLeftSmall",isLearner:c,children:(0,n.jsx)(hl,{avatar:s,alt:t,l10nId:r,showAvatar:d})}):(0,n.jsx)(hl,{avatar:s,alt:t,l10nId:r,showAvatar:d})})}):null;return(0,n.jsx)("div",{className:Vt("container"),children:(0,n.jsx)("div",{className:Vt("row"),children:(0,n.jsxs)("div",{className:u,children:[(0,n.jsx)("div",{className:Vt("divider-top")}),(0,n.jsxs)("div",{className:Vt("figure",{"no-author":a,"no-avatar":!a&&!d}),children:[h,o]}),(0,n.jsx)("div",{className:Vt("divider-bottom")})]})})})},PR=({avatar:t,children:e,alt:s,l10nId:o,showAvatar:r})=>(0,n.jsx)("div",{className:Vt("figure"),children:(0,n.jsx)("div",{className:Vt("container"),children:(0,n.jsxs)("div",{className:Vt("row"),children:[(0,n.jsx)("div",{className:Vt("col"),children:t&&r?(0,n.jsx)(hl,{avatar:t,alt:s,l10nId:o,showAvatar:r}):null}),(0,n.jsx)("div",{className:Vt("col"),children:e})]})})}),MR=({background:t,avatar:e,children:s,alt:o,l10nId:r,showAvatar:a})=>(0,n.jsx)("div",{className:Vt("background"),style:{backgroundImage:t??""},children:(0,n.jsx)("div",{className:Vt("container"),children:(0,n.jsx)("div",{className:Vt("row"),children:(0,n.jsx)("div",{className:Vt("col"),children:(0,n.jsxs)("div",{className:Vt("figure"),children:[e&&a?(0,n.jsx)(hl,{avatar:e,alt:o,l10nId:r,showAvatar:a}):null,s]})})})})});class DR extends ie().Component{renderTextDelegate;renderCaptionDelegate;constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{editable:!1,items:[],type:"a",getL10nValue:()=>{}}}getQuoteEntranceAnimationType(){const{type:e}=this.props;switch(e){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}getBackgroundImageUrl(e,s){const o=e?.alpha??qI(s),r=(0,rs.ME)(e),a=eN(s);return(0,N1.A)({alpha:o,color:a,url:r})?.backgroundImage}renderText(e,{paragraph:s}){const o=s||"",r=Vt("text",{blank:o===""}).toString();return(0,n.jsx)(Ms,{className:r,value:o})}renderCaption(e,{name:s}){const o=Vt("caption",{blank:s===""}).toString();return(0,n.jsx)(Ms,{className:o,value:s})}render(){const{animateBlockEntrance:e,getL10nValue:s,isLearner:o,items:r,settings:a,type:c,renderText:d=this.renderTextDelegate,renderCaption:l=this.renderCaptionDelegate}=this.props,u=92,{avatarSize:h=x3(c),divider:p=!0,dividerSize:f=u,entranceAnimation:g,quoteAlignment:v="left",quoteIcon:C=!0,quotesInline:E,quotePadding:L=2,quoteWidth:x=C3(c)}=a,[S]=r,{avatar:b,background:N}=S,I=s(b?.media)?.image,j=(0,rs.xm)(I),R=I?.alt,P=(0,Pt.pP)(b.media),B=s(N?.media)?.image,_=B?.overlayColor,k=this.getBackgroundImageUrl(B,_),J=a?.avatar??j!=="",Z=j&&j!=="",G=c==="background",Y=G&&_==="light",Ee=T3(x),fe=S3(L),oe=E3(c,h),we=sN(f),Ae=c==="a",_e=c==="c"||G,Qe=c!=="b"&&!G,pt=S?.name==="",ls=S?.paragraph==="",nt=Vt(null,{[c]:!0,[`${c}-custom-width-${Ee}`]:!0,[`${c}-divider-off`]:Ae&&!p,[`${c}-divider-size-${we}`]:Ae&&p,[`${c}-quote-padding-${fe}`]:!0,[`${c}-align-${v}`]:G,[`${c}-${Ee}-no-avatar`]:!j||!J,[`${c}-avatar-size-${oe}`]:J&&Z,[`${c}-quote-icon-off`]:_e&&!C,[`${c}-legacy-quote-mark`]:Qe&&!E,[`${c}-overlay-legacy`]:!_,[`${c}-overlay-light`]:Y,"no-animation":!g}).toString(),Ce=(0,n.jsx)("div",{className:Vt("wrap",{blank:pt||ls}),children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:this.getQuoteEntranceAnimationType(),isLearner:o,siblingDelay:.15,children:(0,n.jsxs)("figure",{children:[(0,n.jsx)("blockquote",{children:d(this.props,S)}),(0,n.jsx)("figcaption",{children:l(this.props,S)})]})})});let Ne;switch(c){case"d":Ne=(0,n.jsx)(PR,{type:c,avatar:j,alt:R,l10nId:P,showAvatar:J,children:Ce});break;case"background":Ne=(0,n.jsx)(MR,{type:c,avatar:j,alt:R,background:k,l10nId:P,showAvatar:J,children:Ce});break;default:Ne=(0,n.jsx)(OR,{type:c,animateBlockEntrance:e,avatar:j,alt:R,l10nId:P,isAuthorBlank:pt,isLearner:o,showAvatar:J,children:Ce})}return(0,n.jsx)(qt,{className:nt,children:Ne})}}const ml=cs(DR),kR=t=>(0,n.jsx)(ml,{...t}),wR=t=>(0,n.jsx)(ml,{type:"b",...t}),BR=t=>(0,n.jsx)(ml,{type:"c",...t}),_R=t=>(0,n.jsx)(ml,{type:"d",...t}),UR=t=>(0,n.jsx)(ml,{type:"background",...t});class HR extends ie().Component{static get defaultProps(){return{type:"carousel",items:[],onStep:Function.prototype,getL10nValue:()=>{}}}handleChangeCarousel=e=>{this.props.onStep?.(this.props.items[e])};renderText=(e,{paragraph:s})=>{const o=s||"",r=Vt("text",{blank:s===""}).toString();return(0,n.jsx)(Ms,{className:r,value:o})};renderCaption=(e,{name:s})=>{const o=Vt("caption",{blank:s===""}).toString();return(0,n.jsx)(Ms,{className:o,value:s})};render(){const{blockId:e,animateBlockEntrance:s,editable:o,getL10nValue:r,isRTL:a,isLearner:c,isLessonBlocksList:d=!1,items:l,labels:u,previewType:h,settings:p,renderText:f=this.renderText,renderCaption:g=this.renderCaption,type:v}=this.props,{avatar:C=!0,avatarSize:E=x3(v),entranceAnimation:L,quotesInline:x,quotePadding:S=2,quoteWidth:b=C3(v),showBorder:N=!0}=p,j=v!=="b"&&!(v==="background"),R=T3(b),P=S3(S),B=E3(v,E),_=h==="mobile-portrait"||h==="mobile-landscape",k=Vt({[v]:!0,[`${v}-custom-width-${R}`]:!0,[`${v}-quote-padding-${P}`]:!0,[`${v}-${R}-no-avatar`]:!C,[`${v}-avatar-size-${B}`]:C,[`${v}-legacy-quote-mark`]:!d&&j&&!x,"no-animation":!L,"hide-border":!N,editable:o}).toString(),J=l.map(Z=>{const G=r(Z?.avatar?.media)?.image,Y=G?.alt,Ee=(0,rs.xm)(G),fe=C??Ee!=="",oe="l10nId"in Z.avatar.media?Z.avatar.media.l10nId:void 0;return(0,n.jsx)("div",{className:Vt("slide"),children:(0,n.jsxs)("figure",{className:Vt("figure"),children:[Ee&&C?(0,n.jsx)(hl,{avatar:Ee,alt:Y,l10nId:oe,showAvatar:fe}):null,(0,n.jsxs)(zt,{animateBlockEntrance:s,animateIn:"fadeInUp",siblingDelay:.25,isLearner:c,children:[(0,n.jsx)("blockquote",{children:f(this.props,Z)}),(0,n.jsx)("figcaption",{children:g(this.props,Z)})]})]})},Z.id)});return(0,n.jsx)("div",{className:Vt("slider-container"),children:(0,n.jsx)(qt,{className:k,children:(0,n.jsx)(Zd,{className:Vt("wrap"),children:(0,n.jsx)("div",{className:Vt("container"),children:(0,n.jsx)("div",{className:Vt("col"),children:(0,n.jsx)(Rn,{className:Vt("box"),children:(0,n.jsx)(Xd,{blockId:e,items:l,children:({carouselRef:Z})=>(0,n.jsx)(Qd,{ref:Z,isRTL:a,labelCarousel:u?.a11yBlockQuoteCarousel,labelCarouselRoleDesc:u?.a11yBlockQuoteCarouselRoleDescription,labelSlideControls:u?.a11yBlockQuoteCarouselSlideControls,labelSlideControlsGoToNext:u?.a11yBlockQuoteCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:u?.a11yBlockQuoteCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:u?.a11yBlockQuoteCarouselSlideControlsGoToSlide,labelSlidePreposition:u?.a11yBlockQuoteCarouselSlidePreposition,labelSlideRoleDesc:u?.a11yBlockQuoteCarouselSlideRoleDescription,onChange:this.handleChangeCarousel,shouldMouseEmulateTouch:_,children:J})})})})})})})})}}const FR=Yd(cs(HR));function wi(t,e,s,o,r){const c=e==="bottom"&&s||!o&&e!=="top"?"bottom":"top",d={renderOrder:["text"],isOverlayAudio:!1};if(!t)return d;const l=!!t.audio,u=!!t.image,h=!!t.video,p=!!t.embed,f=u||h,g=()=>{const E=u?"image":"video",L={top:l?["audio","text",E]:["text",E],bottom:l?["text","audio",E]:["text",E],legacyTop:l?["audio",E,"text"]:[E,"text"],legacyBottom:l?[E,"text","audio"]:[E,"text"]};return o&&r==="timeline"&&!e?L.top:o&&r!=="timeline"?c==="bottom"?L.legacyBottom:L.legacyTop:c==="bottom"?L.bottom:L.top},v=()=>{const E={top:l?["audio","text","embed"]:["text","embed"],bottom:l?["text","embed","audio"]:["text","embed"],legacyTop:l?["audio","embed","text"]:["embed","text"],legacyBottom:l?["embed","text","audio"]:["embed","text"]};return o&&r==="timeline"&&!e?E.legacyTop:o&&r!=="timeline"?c==="bottom"?E.legacyBottom:E.legacyTop:c==="bottom"?E.bottom:E.top},C=()=>c==="bottom"?["text","audio"]:["audio","text"];return l&&!f&&!p?{...d,renderOrder:C()}:f&&!l&&!p?{...d,renderOrder:g()}:p&&!l&&!f?{...d,renderOrder:v()}:l&&f&&!p?r==="labeled-graphic"||c==="top"||r==="process"?{...d,renderOrder:g(),audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video}}:{...d,renderOrder:t.video?["text","video","audio"]:["text","overlay"],audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video},isOverlayAudio:!t.video}:l&&p&&!f?{...d,renderOrder:v(),audioOnlyMedia:{audio:t.audio},embedOnlyMedia:{embed:t.embed}}:d}var hf=i(59288);const to=q("block-list"),zR=class extends hf.Component{static get defaultProps(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered"}}nextNumber(t){const{items:e}=this.props,o=e.length>0?e[t].number:null;let r;return!isNaN(o)&&o!==""&&(r=parseInt(o,10)+1),(r<1||r>99)&&(r=null),r}render(){const{animateBlockEntrance:t,blockId:e,defaultBackgroundColor:s,editable:o,hasAudioExpansionFlag:r,hasBlockIncrementalUpdatesFlag:a,isLearner:c,items:d,labels:l,lessonId:u,media:h,onStep:p,settings:f,type:g}=this.props,{audioPosition:v,bulletPadding:C,entranceAnimation:E,listWidth:L}=f,x=wi(h,v,r),S=tN(C),b=y1(L),N=to({[g]:!0,[`${g}-custom-width-${b}`]:!0,[`${g}-bullet-padding-${S}`]:!0,"no-animation":!E}),I=g==="numbered"?"ol":"ul";return(0,n.jsx)(qt,{className:N.toString(),defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:to("container"),children:(0,n.jsx)("div",{className:to("row"),children:(0,n.jsx)(Zd,{className:to("col"),children:(0,n.jsx)(zt,{animateBlockEntrance:t,animateIn:"fadeInRight",className:to("animated-item").toString(),isLearner:c,keepStructure:!0,siblingDelay:.25,children:(0,n.jsx)("div",{className:"blocks-list__container",children:x.renderOrder.map((j,R)=>{if(j==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(I,{className:to("list"),role:"list",children:d.map((P,B)=>{const _={key:P.id,index:B,lessonId:u,blockId:e,type:g,hasBlockIncrementalUpdatesFlag:a,editable:o,nextNumber:this.nextNumber.bind(this),onStep:p,...P};return this.props.renderItem?this.props.renderItem(_):(0,n.jsx)(VR,{..._})})})},`text-${R}`);if(j==="audio")return(0,n.jsx)("div",{className:M()("block-list__media",{"audio-on-top":x.renderOrder[0]==="audio","audio-on-bottom":x.renderOrder[0]!=="audio"}),children:(0,n.jsx)(En,{blockId:e,hasPadding:!1,index:e,labels:l,lessonId:u,media:h,item:{media:h},refs:`items:${e}`})},`${j}-${R}`)})})})})})})})}};class VR extends hf.Component{renderTextDelegate;animateRef;static get defaultProps(){return{className:""}}constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}renderText(e){return(0,n.jsx)(Ms,{...e})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:e,id:s,index:o,number:r,paragraph:a,editable:c,className:d,renderText:l=this.renderTextDelegate,style:u}=this.props,h={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:c,id:s,value:a};return(0,n.jsxs)("li",{className:M()("block-list__item",`block-list__item--${e}`,d),ref:p=>{this.animateRef=p},role:"listitem",style:u,children:[e==="numbered"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:to("number"),children:r||o+1}),l(h)]}),e==="bulleted"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,n.jsx)(Lt,{className:to("bullet"),name:"circle-solid"}),l(h)]}),e==="checkboxes"&&(0,n.jsxs)("label",{className:to("option"),children:[(0,n.jsx)("input",{type:"checkbox",className:to("checkbox-input"),onChange:this.handleChangeCheckbox}),(0,n.jsx)("div",{className:to("checkbox"),children:(0,n.jsx)(Lt,{className:to("checkbox__icon"),name:"check"})}),l(h)]})]})}}const Y1=Ld("rise-audio-release","hasAudioExpansionFlag")(t=>(0,n.jsx)(zR,{...t})),WR=Y1,GR=t=>(0,n.jsx)(Y1,{type:"checkboxes",...t}),KR=t=>(0,n.jsx)(Y1,{type:"bulleted",...t});var X1=i(59288);class $R extends X1.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{type:"hero",editable:!1,getL10nValue:()=>{},lessonId:"",blockId:"",items:[]}}renderCaption(e,s){return(0,n.jsx)(Ms,{className:"block-image__caption",value:s})}render(){const{aiMagicIcon:e,aiOverlay:s,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:c,getL10nValue:d,isLastBlock:l,isLearner:u,items:h,type:p,labels:f,lessonId:g,settings:v,renderCaption:C=this.renderCaptionDelegate}=this.props,{entranceAnimation:E,zoomOnClick:L}=v,x=M()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!E}),S=h[0],{id:b,caption:N}=S,{image:I,audio:j}=d(S.media),R=I?.alt,P=(0,rs.ME)(I),B=I?.dimensions,_=B?.width||B?.originalWidth,k=B?.height||B?.originalHeight,J=qc({caption:N,editable:c,id:b,getL10nValue:d}),Z=l?50:300,G=!u&&!P,Y=_&&k?_/k:void 0,Ee=M()("block-image__image",{"block-image__image--audio-overlay":!!j});return(0,n.jsx)(qt,{className:x,defaultBackgroundColor:a,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(zt,{animateBlockEntrance:o,animateIn:"fadeIn",isLearner:u,offset:Z,children:(0,n.jsxs)(J.tagName,{"aria-labelledby":J.figcaptionId,className:"block-image__figure",role:J.role,children:[(0,n.jsxs)("div",{className:Ee,children:[G?(0,n.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:Y},children:[(0,n.jsx)("div",{children:e}),(0,n.jsx)("div",{className:"block-image__waiting-text",children:"Waiting for image\u2026"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ki,{alt:R,l10nId:(0,Pt.pP)(S.media),disableZoom:!L,height:k,labels:f,maxHeight:p==="full"?380:900,src:P,width:_}),j&&(0,n.jsx)(En,{blockId:r,index:`${r}-${b}-0`,isOverlayAudio:!0,item:S,labels:f,lessonId:g,media:S.media,renderMediaType:"audio"})]}),s&&(0,n.jsx)("div",{className:"block-image__ai-overlay",children:s})]}),(c||N)&&(0,n.jsx)("figcaption",{id:J.figcaptionId,children:C(b,N)})]})})})})})})}}const QR=cs($R),ZR=(t,e,s,o)=>e?o:(0,n.jsx)(zt,{animateBlockEntrance:t,animateIn:"fadeIn",isLearner:s,duration:1,children:o});class YR extends X1.Component{renderCaptionDelegate;renderParagraphDelegate;constructor(e){super(e),this.renderParagraphDelegate=this.renderParagraph.bind(this),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{blockId:"",getL10nValue:()=>{},editable:!1,items:[],lessonId:"",type:"text-aside"}}renderParagraph(e,s){return(0,n.jsx)(Ms,{className:"block-image__text",value:s})}renderCaption(e,s){return(0,n.jsx)(Ms,{className:"block-image__caption",value:s})}renderImage(e,s,o,r){const{blockId:a,editable:c,lessonId:d,renderCaption:l=this.renderCaptionDelegate,getL10nValue:u}=this.props,{image:h,audio:p}=u(o.media),f=h?.alt,g=(0,rs.ME)(h),v=h?.dimensions,C=v?.width||v?.originalWidth,E=v?.height||v?.originalHeight,L=qc({caption:s,editable:c,id:e,getL10nValue:u}),{animateBlockEntrance:x,isLearner:S,labels:b,settings:{zoomOnClick:N}}=this.props,I=M()("block-image__image",{"block-image__image--audio-overlay":!!p});return(0,n.jsx)(zt,{animateBlockEntrance:x,animateIn:r==="right"?"fadeInRight":"fadeInLeft",isLearner:S,children:(0,n.jsxs)(L.tagName,{"aria-labelledby":L.figcaptionId,className:"block-image__figure",role:L.role,children:[(0,n.jsxs)("div",{className:I,children:[(0,n.jsx)(ki,{alt:f,disableZoom:!N,height:E,l10nId:(0,Pt.pP)(o?.media),labels:b,maxHeight:900,src:g,width:C}),p&&(0,n.jsx)(En,{blockId:a,index:`${a}-${e}-0`,isOverlayAudio:!0,item:o,labels:b,lessonId:d,media:o.media,renderMediaType:"audio"})]}),(c||s)&&(0,n.jsx)("figcaption",{id:L.figcaptionId,children:l(e,s)})]})})}render(){const{defaultBackgroundColor:e,items:s,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:c,imagePosition:d,imageSize:l}=r,u=d==="right",h=M()(`block-image block-image--${a}`,{"block-image--small":l==="small","block-image--large":l==="large","block-image--reverse":u,"block-image--no-animation":!c}),p=s[0],{id:f,caption:g}=p,v="paragraph"in p?p.paragraph:void 0;return(0,n.jsx)(qt,{className:h,defaultBackgroundColor:e,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsxs)("div",{className:"block-image__row",children:[(0,n.jsx)("div",{className:"block-image__col",children:u?o(f,v):this.renderImage(f,g,p,"left")}),(0,n.jsx)("div",{className:"block-image__col",children:u?this.renderImage(f,g,p,"right"):o(f,v)})]})})})}}const XR=cs(YR);class JR extends X1.Component{renderCaptionDelegate;renderOverlayDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.renderOverlayDelegate=this.renderOverlay.bind(this)}static get defaultProps(){return{blockId:"",editable:!1,getL10nValue:()=>{},items:[],lessonId:"",type:"full"}}renderCaption(e,s){return(0,n.jsx)(Ms,{className:"block-image__caption",value:s})}renderOverlay(e,s){return(0,n.jsx)(Ms,{className:"block-image__paragraph",value:s})}renderOverlayCaption(e,s){const{animateBlockEntrance:o,isLearner:r,renderOverlay:a=this.renderOverlayDelegate}=this.props;return(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(zt,{animateBlockEntrance:o,animateIn:"fadeInUp",isLearner:r,duration:1,children:a(e,s)})})})})}render(){const{animateBlockEntrance:e,blockId:s,defaultBackgroundColor:o,editable:r,getL10nValue:a,isLearner:c,items:d,labels:l,lessonId:u,settings:h,type:p,renderCaption:f=this.renderCaptionDelegate}=this.props,{entranceAnimation:g,opacity:v,opacityColor:C}=h,E=I1(h?.backgroundColor,o),L=M()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!g,"block-image--dark":(0,ct.cP)(E)}),x={opacity:v||.6,backgroundColor:C||"transparent"},S=d[0],{id:b,caption:N}=S,{image:I,audio:j}=a(S.media),R=I?.key,P=(0,rs.ME)(I),B=I?.dimensions,_=B?.width||B?.originalWidth,k=B?.height||B?.originalHeight,J=(0,gn.Ll)(I?.alt),Z=p==="overlay",G=qc({caption:N,editable:r,id:b,isOverlayType:Z,getL10nValue:a});return(0,n.jsxs)(qt,{"aria-labelledby":G.figcaptionId,className:L,defaultBackgroundColor:o,role:G.role,tag:G.tagName,children:[ZR(e,Z,c,(0,n.jsxs)("div",{className:"block-image__figure",children:[R&&(0,n.jsxs)("div",{className:"block-image__image","data-l10n-id":(0,Pt.pP)(S?.media),style:{backgroundImage:`url('${P}')`},children:[(0,n.jsx)(An,{alt:J,height:k,src:P,width:_}),(0,n.jsx)("div",{className:"block-image__overlay",style:x}),j&&(0,n.jsx)(En,{blockId:s,index:`${s}-${b}-0`,isOverlayAudio:!0,item:S,labels:l,lessonId:u,media:S.media,renderMediaType:"audio"})]}),Z?this.renderOverlayCaption(b,N):null]})),!Z&&(r||N)&&(0,n.jsx)("figcaption",{className:"block-image__container",id:G.figcaptionId,children:f(b,N)})]})}}const mf=cs(JR),qR=t=>(0,n.jsx)(mf,{type:"overlay",...t});var eO=i(59288);function pf(t){class e extends eO.Component{static displayName=`withGalleryCaption(${t.displayName||t.name})`;renderCaptionDelegate;constructor(o){super(o),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption(o,r,a=!0){return(0,n.jsx)(Ms,{className:"block-gallery__caption",value:r,allowTabNavigation:a})}render(){const{renderCaption:o=this.renderCaptionDelegate}=this.props;return(0,n.jsx)(t,{...this.props,renderCaption:o})}}return e}var Jd=i(59288);const ff=q("block-gallery-carousel");function tO({blockId:t,animateBlockEntrance:e,defaultBackgroundColor:s,editable:o,isLearner:r,labels:a,lessonId:c,items:d,onStep:l,previewType:u,renderCaption:h,settings:p}){d||=[];const[f,g]=Jd.useState(0),v=Jd.useCallback(x=>{g(x),l?.(d[x])},[d,l]),C=u===$e.o4.MOBILE_PORTRAIT||u===$e.o4.MOBILE_LANDSCAPE,E=ff({noAnimation:!p?.entranceAnimation||Js()}).toString(),L=(0,Me.Wz)();return(0,n.jsx)(qt,{className:E,defaultBackgroundColor:s,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",offset:200,isLearner:r,children:(0,n.jsx)(Zd,{className:ff("container").toString(),children:(0,n.jsx)(Xd,{blockId:t,items:d,children:({carouselRef:x})=>(0,n.jsx)(Qd,{ref:x,isRTL:L,labelCarousel:a?.a11yBlockImageCarousel,labelCarouselRoleDesc:a?.a11yBlockImageCarouselRoleDescription,labelSlideControls:a?.a11yBlockImageCarouselSlideControls,labelSlideControlsGoToNext:a?.a11yBlockImageCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:a?.a11yBlockImageCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:a?.a11yBlockImageCarouselSlideControlsGoToSlide,labelSlidePreposition:a?.a11yBlockImageCarouselSlidePreposition,labelSlideRoleDesc:a?.a11yBlockImageCarouselSlideRoleDescription,onChange:v,shouldMouseEmulateTouch:C,children:d.map((S,b)=>(0,n.jsx)(nO,{activeIndex:f,blockId:t,editable:o,index:b,item:S,labels:a,lessonId:c,renderCaption:h,settings:p},S.id))})})})})})}const sO=pf(tO),J1=q("block-gallery-carousel-item");function nO({activeIndex:t,blockId:e,editable:s,index:o,item:r,labels:a,lessonId:c,renderCaption:d,settings:l}){const[u,h]=Jd.useState(!1),{image:p,audio:f}=(0,It.QQ)(r.media),g=p?.dimensions,v=Jd.useCallback(()=>{h(!0)},[]);return(0,n.jsxs)("figure",{className:J1(),children:[s&&!u&&(0,n.jsx)("div",{className:J1("loading"),children:"Loading image..."}),(0,n.jsxs)("div",{className:J1("image-container",{"audio-overlay":!!f}),children:[(0,n.jsx)(ki,{alt:p?.alt,disableZoom:!l?.zoomOnClick,height:g?.height||g?.originalHeight,l10nId:(0,Pt.pP)(r?.media),labels:a,maxHeight:900,onLoad:v,src:(0,rs.ME)(p),width:g?.width||g?.originalWidth}),f&&(0,n.jsx)(En,{blockId:e,index:`${e}-${r.id}-${o}`,isOverlayAudio:!0,labels:a,lessonId:c,media:r.media,item:r,renderMediaType:"audio",shouldPause:t!==o})]}),(s||r.caption)&&u&&(0,n.jsx)("figcaption",{children:d(r.id,r.caption)})]})}const oO=({alt:t,disableZoom:e,height:s,l10nId:o,labels:r,src:a,width:c})=>(0,n.jsx)("div",{className:"block-gallery__image",children:(0,n.jsx)(ki,{alt:t,l10nId:o,disableZoom:e,height:s,labels:r,maxHeight:900,src:a,width:c})}),rO=t=>{switch(t){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function aO(t){return(0,n.jsx)(sO,{...t})}class iO extends ie().Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:e,defaultBackgroundColor:s,editable:o,getL10nValue:r,isLearner:a,items:c,labels:d,renderCaption:l,settings:u,width:h}=this.props,{entranceAnimation:p,zoomOnClick:f}=u,g=M()(`block-gallery block-gallery--${rO(h)}`,{"block-gallery--no-animation":!p||Js()});return(0,n.jsx)(qt,{className:g,defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:"block-gallery__container",children:(0,n.jsx)("div",{className:"block-gallery__row",children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",className:"block-gallery__col",isLearner:a,siblingDelay:.25,children:c.map(v=>{const{id:C}=v,E=v.caption,L=r(v.media)?.image,x=L?.alt,S=L?.key,b=L?.dimensions,N=b?.width||b?.originalWidth,I=b?.height||b?.originalHeight,j=(0,rs.ME)(L),R=qc({caption:E,editable:o,id:C,getL10nValue:this.props.getL10nValue});return(0,n.jsx)("div",{className:!e||Js()?"block-gallery__col":"",children:(0,n.jsxs)(R.tagName,{"aria-labelledby":R.figcaptionId,className:"block-gallery__figure",role:R.role,children:[S&&(0,n.jsx)(oO,{alt:x,disableZoom:!f,height:I,l10nId:(0,Pt.pP)(v?.media),labels:d,src:j,width:N}),(o||E)&&(0,n.jsx)("figcaption",{id:R.figcaptionId,children:l(C,E)})]})},C)})})})})})}}const q1=pf(cs(iO)),eh=q("block-divider"),th=({isLearner:t,labels:{numberedDividerGroup:e},number:s,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,c=r==="numbered",l=eh({authoring:!t,spacing:r==="spacing",numbered:c,"no-animation":!a}).toString(),u=c?(0,n.jsxs)("div",{className:eh("wrap__number"),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:e}),s]}):null;return(0,n.jsx)(qt,{className:l,children:(0,n.jsx)("div",{className:eh("wrap",{authoring:!t&&!c}),children:u})})},cO=th,lO=t=>(0,n.jsx)(th,{type:"numbered",...t}),dO=t=>(0,n.jsx)(th,{type:"spacing",...t});var uO=i(16169),Bi=i.n(uO),hO=i(42551),mO=i.n(hO),pO=i(51926),Wr=i.n(pO),fO=i(13916),sh=i.n(fO),gO=i(19453),qd=i.n(gO),eu=i(59288);const vO=30,gf=yd("blockSettings");class CO extends eu.Component{static defaultProps={items:[],editable:!1,lessonId:"",blockId:"",onStep:()=>{},blockSettings:{}};render(){const{animateBlockEntrance:e,blockId:s,editable:o,isLearner:r,items:a,labels:c,lessonId:d,onStep:l,settings:u,enableVideoPlaybackSpeed:h}=this.props,{entranceAnimation:p,accordionBehavior:f="keepOpen"}=u,g=M()("blocks-accordion",{"blocks-accordion--no-animation":!p});return(0,n.jsx)(qt,{className:g,"data-block-id":s,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,duration:.75,children:(0,n.jsx)("div",{className:"blocks-accordion__container",children:(0,n.jsx)("div",{className:"blocks-accordion__row",children:(0,n.jsx)("div",{className:"blocks-accordion__col",children:(0,n.jsx)(yO,{keepOpen:f==="keepOpen",lessonId:d,blockId:s,items:a,editable:o,settings:u,onStep:l,enableVideoPlaybackSpeed:h,labels:c})})})})})})}}const xO={isOpen:!1,isActive:!1},EO=t=>(e,{id:s})=>Object.assign({},e,{[s]:t[s]||xO}),vf=(t,e)=>e.reduce(EO(t),{}),TO=(t,e)=>(s,o)=>{const r=t==o,a=r?!s.isOpen:s.isOpen,c=r&&!s.isOpen;return{isOpen:e?a:c,isActive:r}},SO=t=>(e,s)=>{const o=s==t;return{isOpen:o,isActive:o}},LO=t=>(e,s)=>({isOpen:s==t,isActive:e.isActive});class bO extends eu.Component{static defaultProps={items:[],editable:!1,lessonId:"",blockId:"",keepOpen:!1,onStep:()=>{},blockSettings:{}};constructor(e){super(e);const{items:s}=this.props;this.state={itemStatusMap:vf({},s)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(ms,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(ms,this.handleNavtoTab)}handleNavtoTab(e){const s=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;if(s===this.props.blockId){const r=this.props.items.findIndex(({id:h})=>h===o),{items:a,onStep:c}=this.props,{itemStatusMap:d}=this.state,l=a[r].id,u=SO(l);this.setState({itemStatusMap:Wr()(u,d)}),open&&c(a[r])}}UNSAFE_componentWillReceiveProps(e){const s=e.items,o=us()(s)!==us()(this.props.items);!e.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference():o&&this.rebuildItemStatusMap(s)}updateMapForOneAtATimePreference(){const{itemStatusMap:e}=this.state,{items:s}=this.props,o=mO()(a=>e[a.id].isOpen,s);if(!o)return;const r=LO(o.id);this.setState({itemStatusMap:Wr()(r,e)})}rebuildItemStatusMap(e){const s=this.state.itemStatusMap;this.setState({itemStatusMap:vf(s,e)})}handleItemClick(e){const{items:s,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,c=s[e].id,d=TO(c,o);this.setState({itemStatusMap:Wr()(d,a)}),open&&r(s[e])}render(){const{items:e,settings:s,editable:o,labels:r,lessonId:a,blockId:c,enableVideoPlaybackSpeed:d}=this.props,{itemStatusMap:l}=this.state,{zoomOnClick:u}=s,h=Object.values(l)?.find(p=>p.isOpen)?"open":"closed";return(0,n.jsx)("div",{className:"blocks-accordion__wrapper","data-accordion-status":h,children:e.map((p,f)=>(0,n.jsx)(jO,{blockId:c,disableZoom:!u,editable:o,focused:l[p.id].isActive,index:f,item:{...p,enableVideoPlaybackSpeed:d},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,f),open:l[p.id].isOpen},p.id))})}}const yO=gf(bO);class IO extends eu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(e){super(e),this.id=qd()(),this.toggle=this.toggle.bind(this),this.renderDescription=this.renderDescription.bind(this),this.renderTitle=this.renderTitle.bind(this)}componentDidUpdate(e){if(!this.props.open)return;const s=this.content;if(s&&(s.classList.add("blocks-accordion__content--visible"),!e.open&&this.props.open)){const o=s.parentElement,r=o?.getBoundingClientRect()?.top,a=r>0&&r<window.innerHeight,c=Js()?"instant":"smooth";a||o.scrollIntoView({behavior:c,block:"start"})}}toggle(e){const{blockId:s,index:o}=this.props,r=at.playerId;open&&r&&r.includes(s.toString())&&r.endsWith(o.toString())&&at.pause(),this.props.onClick(),e.preventDefault()}renderTitle(e){const{title:s}=this.props.item;return(0,n.jsx)(Nt,{id:e,className:"blocks-accordion__title",value:s})}renderDescription(){const{description:e=""}=this.props.item;return(0,n.jsx)(Ms,{className:"blocks-accordion__description",value:e||""})}render(){const{blockId:e,blockSettings:s,editable:o,disableZoom:r,getL10nValue:a,hasAudioExpansionFlag:c,index:d,item:l,focused:u,labels:h,lessonId:p,open:f,renderDescription:g=this.renderDescription,renderTitle:v=this.renderTitle}=this.props,{settings:C={},enableVideoPlaybackSpeed:E}=l,L=a(l.media)??{},x=wi(L,s.audioPosition,c),S=Object.assign({},C,{disableZoom:r,fullEmbed:!0}),b=s?.backgroundType===O.xj.ACCENT||s?.backgroundType===O.xj.IMAGE,N=M()("blocks-accordion__item",{"blocks-accordion__item--closed":!f}),I=M()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":f&&u&&!b}),j=M()("blocks-accordion__content",{"blocks-accordion__content--will-enter":f,"brand--border":f&&u&&!b}),R=`title-${this.id}`,P=`panel-${this.id}`,B=s?.headingLevel,_=B?`h${B}`:"h2";let k=(0,n.jsxs)("button",{"aria-controls":P,"aria-expanded":f,className:I,onClick:this.toggle,onKeyDown:!o&&rp(this.toggle)||null,type:"button",children:[v(R),(0,n.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,n.jsx)(Lt,{className:"blocks-accordion__toggler",name:f?"minus":"plus"})})]});return o&&(k=(0,n.jsxs)("div",{className:I,children:[v(R),(0,n.jsx)("button",{"aria-label":f?"Close":"Open","aria-controls":P,"aria-expanded":f,className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,n.jsx)(Lt,{className:"blocks-accordion__toggler",name:f?"minus":"plus"})})]})),(0,n.jsxs)(Rn,{className:N,tag:"section",children:[(0,n.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,n.jsx)(_,{children:k})}),(0,n.jsx)("section",{"aria-labelledby":R,className:j,id:P,ref:J=>{this.content=J},children:x.renderOrder.map((J,Z)=>{if(J==="text")return g();const G={blockId:e,hasPadding:!1,imageMaxHeight:1e3,item:l,labels:h,lessonId:p,enableVideoPlaybackSpeed:E,opts:S},Y=Cf(L),Ee=Y==="image-with-audio",fe=Ee?"left":"center",we={audio:{media:x.audioOnlyMedia||L,isOverlayAudio:!1,index:`${e}-${d}-audio`,className:"blocks-accordion__audio"},image:{media:x.imageOnlyMedia||L,isOverlayAudio:!1,index:`${e}-${d}-image`,className:M()(`blocks-accordion__${Y}`,{[`blocks-accordion__${Y}--${fe}`]:Ee})},video:{media:x.videoOnlyMedia||L,isOverlayAudio:!1,index:`${e}-${d}-video`,className:M()(`blocks-accordion__${Y}`,{[`blocks-accordion__${Y}--${fe}`]:Ee})},embed:{media:x.embedOnlyMedia||L,isOverlayAudio:!1,index:`${e}-${d}-embed`,className:M()(`blocks-accordion__${Y}`,{[`blocks-accordion__${Y}--${fe}`]:Ee})},overlay:{media:L,isOverlayAudio:!0,index:`${e}-${d}-overlay`,className:M()(`blocks-accordion__${Y}`,{[`blocks-accordion__${Y}--${fe}`]:Ee})}}[J];if(!we)return null;const{className:Ae,..._e}=we;return(0,n.jsx)("div",{className:M()(Ae,{"audio-on-top":this.props.blockSettings.audioPosition==="top"||!c}),children:(0,n.jsx)("div",{className:"blocks-accordion__figure",children:(0,n.jsx)(En,{...G,..._e})})},`${J}-${Z}`)})})]})}}const NO=t=>(0,n.jsx)(IO,{...t}),jO=gf(Ld("rise-audio-release","hasAudioExpansionFlag")(cs(NO))),Cf=t=>{const{image:e,embed:s,video:o,audio:r}=t;return e&&!r?"image":s&&!r?"embed":o?"video":r&&!e&&!s?"audio":e&&r?"image-with-audio":r&&s?"audio-and-embed":"image"};class AO extends eu.Component{static get defaultProps(){return{items:[],activeIndex:0,getL10nValue:()=>{},lessonId:"",blockId:"",blockSettings:{},onStep:Function.prototype}}tabs;id;tabResize;tabScroll;arrowNextEl;arrowPrevEl;container;tabControls;tabsHeaderEl;constructor(e){super(e),this.renderDescription=this.renderDescription.bind(this);const s=this.props.activeIndex;this.state={activeIndex:s,activeTouch:!1,activeMouse:!1},this.tabs=[],this.id=qd()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=Vr()(this.handleControls.bind(this),100)),window.addEventListener(ms,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=Vr()(this.handleControls.bind(this),50))}handleNavtoTab(e){const s=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&(this.tabsHeaderEl.scrollIntoView({behavior:"smooth",block:"start"}),this.setState({activeIndex:this.props.items.findIndex(({id:r})=>r===o)},()=>{u1(this.tabsHeaderEl,"start")||this.tabsHeaderEl.scrollIntoView({behavior:"instant",block:"start"})}))}componentDidUpdate(){this.handleControls()}componentWillUnmount(){this.tabsHeaderEl?.removeEventListener("scroll",this.tabScroll),window.removeEventListener("resize",this.tabResize),window.removeEventListener(ms,this.handleNavtoTab)}setActive(e){this.setState({activeIndex:e});const{blockId:s}=this.props,o=at.playerId;this.state.activeIndex!=e&&o&&o.includes(s.toString())&&at.pause(),this.props.onStep(this.props.items[e])}handleControls(){const{isRTL:e}=this.props;this.tabsHeaderEl.offsetWidth===this.tabsHeaderEl.scrollWidth?(this.arrowPrevEl.classList.add("hidden"),this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("start"),this.tabControls.classList.add("end")):(this.tabsHeaderEl.scrollLeft===0?(this.arrowPrevEl.classList.add("hidden"),this.tabControls.classList.add("start")):(this.arrowPrevEl.classList.remove("hidden"),this.tabControls.classList.remove("start")),this.tabsHeaderEl.scrollLeft===(this.tabsHeaderEl.scrollWidth-this.tabsHeaderEl.offsetWidth)*(e?-1:1)?(this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("end")):(this.arrowNextEl.classList.remove("hidden"),this.tabControls.classList.remove("end")))}handleMouseEnter(){this.state.activeTouch||this.setState({activeMouse:!0})}handleMouseLeave(){this.setState({activeMouse:!1})}handleTouchStart(){this.setState({activeTouch:!0})}scrollTabs(e){const{isRTL:s}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,c=(e==="next"?s?sh():Bi():s?Bi():sh())(r,o*.8);this.tabsHeaderEl.scrollTo({left:c,behavior:"smooth"})}arrowPrevInset(e){const s=this.arrowPrevEl.getBoundingClientRect(),o=s.right-e,r=s.left-e;return o+r}focusTab(e){e.currentTarget?.scrollIntoView({behavior:"smooth",block:"nearest"})}handleTabKeyDown(e,s){const{isRTL:o}=this.props;let r=!1,a;_r(s)?(r=!0,a=o?e+1>this.tabs.length-1?0:e+1:e-1>=0?e-1:this.tabs.length-1):Ur(s)&&(r=!0,a=o?e-1>=0?e-1:this.tabs.length-1:e+1>this.tabs.length-1?0:e+1),r&&s.preventDefault(),a!=null&&(this.tabs[a]?.focus(),this.setActive(a))}renderHeader(e,s){const{activeIndex:o,activeTouch:r,activeMouse:a}=this.state,c=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,d=M()("blocks-tabs__header-wrap",{touch:r,mouse:a&&c});return(0,n.jsxs)("div",{className:d,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onTouchStart:this.handleTouchStart.bind(this),children:[(0,n.jsx)("div",{className:"blocks-tabs__header",ref:l=>{this.tabsHeaderEl=l},role:gS,children:e.map(({title:l},u)=>{const h=e.length===1||u===o,p=e.length>1&&u+1===o,f=e.length>1&&u-1===o,g=M()("blocks-tabs__header-item",{"brand--color":h&&!s,"blocks-tabs__header-item--active":h,"blocks-tabs__header-item--before-active":p,"blocks-tabs__header-item--after-active":f}),v=`tab-${this.id}-${u}`,C=`tabpanel-${this.id}-${u}`;return(0,n.jsx)("button",{"aria-controls":C,"aria-selected":h,className:g,id:v,onClick:this.setActive.bind(this,u),onKeyDown:this.handleTabKeyDown.bind(this,u),onFocus:this.focusTab.bind(this),ref:E=>{this.tabs[u]=E},role:CS,tabIndex:h?void 0:-1,type:"button",children:(0,n.jsx)(Nt,{value:l})},v)})}),(0,n.jsxs)("div",{className:"blocks-tabs__controls",ref:l=>{this.tabControls=l},children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",ref:l=>{this.arrowPrevEl=l},onClick:this.scrollTabs.bind(this,"previous"),children:(0,n.jsx)(Lt,{className:"blocks-tabs__arrow-icon",name:"chevron-right-solid"})}),(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",ref:l=>{this.arrowNextEl=l},onClick:this.scrollTabs.bind(this,"next"),children:(0,n.jsx)(Lt,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:e}){return(0,n.jsx)(Ms,{className:"blocks-tabs__description",value:e})}renderItem(e,s,o){const{blockId:r,getL10nValue:a,hasAudioExpansionFlag:c,labels:d,lessonId:l,renderDescription:u=this.renderDescription}=this.props,{activeIndex:h}=this.state,p=h===s,{settings:f={},enableVideoPlaybackSpeed:g}=e,v=a(e.media)??{},C=wi(v,this.props.settings.audioPosition,c,!1),E=M()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":p}),L=Object.assign({},f,{disableZoom:o,fullEmbed:!0}),x=`tabpanel-${this.id}-${s}`,S=`tab-${this.id}-${s}`,b=Cf(v),N=b==="image-with-audio",I=b==="audio-and-embed",j=N?v?.image?.align:"left",R=I?"embed-border":void 0;return(0,n.jsx)("div",{"aria-labelledby":S,className:E,id:x,role:vS,tabIndex:p?0:void 0,children:C.renderOrder.map((P,B)=>{if(P==="text")return(0,n.jsx)("div",{className:"blocks-tabs__description",children:u(e)},`text-${B}`);const _={blockId:r,embedClass:R,hasPadding:!1,imageMaxHeight:1e3,item:e,labels:d,lessonId:l,enableVideoPlaybackSpeed:g,opts:L},J={audio:{media:C.audioOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-audio`,className:"blocks-tabs__audio"},image:{media:C.imageOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-image`,className:M()(`blocks-tabs__${b}`,{[`blocks-tabs__${b}--${j}`]:N})},video:{media:C.videoOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-video`,className:M()(`blocks-tabs__${b}`,{[`blocks-tabs__${b}--${j}`]:N})},embed:{media:C.embedOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-embed`,className:M()(`blocks-tabs__${b}`,{[`blocks-tabs__${b}--${j}`]:N})},overlay:{media:v,isOverlayAudio:!0,index:`${r}-${s}-overlay`,className:M()(`blocks-tabs__${b}`,{[`blocks-tabs__${b}--${j}`]:N})}}[P];if(!J)return null;const{className:Z,...G}=J;return(0,n.jsx)("div",{className:M()(Z,{"audio-on-top":this.props.settings.audioPosition==="top"||!c}),children:(0,n.jsx)("div",{className:"blocks-tabs__figure",children:(0,n.jsx)(En,{..._,...G})})},`${P}-${B}`)})},x)}render(){const{animateBlockEntrance:e,isLearner:s,items:o,settings:r,enableVideoPlaybackSpeed:a}=this.props,{backgroundType:c,cardMode:d,entranceAnimation:l,zoomOnClick:u}=r,h=M()("blocks-tabs",{"blocks-tabs--no-animation":!l}),p=o.length>0?o.slice(0,vO):[],f=d===Lo.TRANSPARENT&&(c===O.xj.ACCENT||c===O.xj.IMAGE),g=M()("blocks-tabs__container",{"blocks-tabs--single":p.length===1});return(0,n.jsx)(qt,{className:h,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,offset:350,children:(0,n.jsx)("div",{className:g,children:(0,n.jsx)("div",{className:"blocks-tabs__row",children:(0,n.jsx)("div",{className:"blocks-tabs__col",children:(0,n.jsx)("div",{className:"blocks-tabs__wrapper",ref:v=>{this.container=v},children:(0,n.jsxs)(Rn,{children:[this.renderHeader(p,f),(0,n.jsx)("div",{className:"blocks-tabs__content",children:p.map((v,C)=>this.renderItem({...v,enableVideoPlaybackSpeed:a},C,!u))})]})})})})})})})}}const RO=t=>(0,n.jsx)(AO,{...t}),OO=Yd(cs(Ld("rise-audio-release","hasAudioExpansionFlag")(RO))),PO=Ye()(null,["payload","result"]),MO=t=>t.thumbnail,DO=t=>t.meta?.version,xf=t=>t.src??null,kO=t=>t.processing,wO=jt()(["payload","result","completion"]),BO=Ye()(!1,["payload","result","score"]),_O=hr()((t,e)=>{if(!e)return!1;const{majorLimit:s,minorLimit:o}=t,[r,a]=e.split("."),c=parseInt(r)===s&&Number(a)>=o;return Number(r)>s||c}),UO={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},HO=t=>{const e=As()(t.split("-"));return UO[e]},FO=_O({majorLimit:3,minorLimit:13}),zO=(t,e,s)=>{const o=e&&HO(s);return o?`${t}${o}`:`${t}?rise=true`};var VO=i(59288);class WO extends VO.Component{constructor(e){super(e),this.state={fullscreen:!1,reopenMenu:!1},this.iframe=null,this.canFullscreen=this.canFullscreen.bind(this),this.handleCourseUpdate=this.handleCourseUpdate.bind(this),this.handleFullscreenEnter=this.handleFullscreenEnter.bind(this),this.handleFullscreenExit=this.handleFullscreenExit.bind(this),this.handleMessages=this.handleMessages.bind(this),this.renderItem=this.renderItem.bind(this)}iframe;static get defaultProps(){return{getL10nValue:()=>{},isLesson:!1,onStep:Function.prototype,hasManySlBlocks:Function.prototype,previewType:""}}UNSAFE_componentWillMount(){window.addEventListener("message",this.handleMessages)}componentWillUnmount(){window.removeEventListener("message",this.handleMessages)}componentDidMount(){const{getL10nValue:e,items:s,onStep:o}=this.props,r=As()(s),a=e(r?.media)?.storyline??{},c=DO(a);FO(c)||o(r)}canFullscreen(e){const{blockId:s,hasManySlBlocks:o}=this.props,{windowName:r}=e;return s===r||!o()}handleMessages(e){const{data:s}=e,{type:o}=s,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[o];r&&r(s)}handleCourseUpdate(e){const{items:s,onStep:o,blockId:r}=this.props,a=As()(s),{windowName:c}=e;if(r===c&&wO(e)){const{score:d,success:l}=PO(e);if(BO(e)){const u=d.scaled*100;(0,de.jr)(r,l,!0,u)}else(0,de.jr)(r,!0,!1);o(a)}}handleFullscreenEnter(e){const{menuOpen:s,handleStorylineFullscreen:o}=this.props;this.canFullscreen(e)&&(s&&o(!0),this.setState({fullscreen:!0,reopenMenu:s}))}handleFullscreenExit(e){const{handleStorylineFullscreen:s}=this.props,{reopenMenu:o}=this.state;this.canFullscreen(e)&&(o&&s(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}render(){const{animateBlockEntrance:e,getL10nValue:s,isLesson:o,isLearner:r,isOnlyBlockInStep:a,items:c,labels:{a11yBlockStoryline:d},settings:l,takingSnapshot:u}=this.props,h=As()(c),p=s(h?.media)?.storyline??{},{mediaWidth:f="0"}=l,g=a?{}:{display:o&&!xf(p)?"none":"block"},v=M()("blocks-storyline__wrapper",{"blocks-storyline__wrapper--small":f==="0","blocks-storyline__wrapper--medium":f==="1","blocks-storyline__wrapper--full":f==="2","blocks-storyline__wrapper--snapshot":u});return(0,n.jsx)(qt,{className:"blocks-storyline",style:g,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,children:(0,n.jsx)("div",{"aria-label":d,className:v,role:"group",children:u?this.renderThumbnail(p):this.renderStorylineBlock(p)})})})}renderStorylineBlock(e){return kO(e)?this.renderProcessing():xf(e)?this.renderItem(e):this.renderEmpty()}renderThumbnail(e){const s=MO(e),o=`${(0,ye._$)("CDN_USER_CONTENT_URI")}/${s}`;return(0,n.jsx)("img",{alt:"Thumbnail",src:o})}renderEmpty(){const{renderEmpty:e}=this.props;return typeof e=="function"?e():null}renderItem(e){const{fullscreen:s}=this.state,{blockId:o,isLesson:r,previewType:a}=this.props,{src:c,meta:d,title:l}=e,{player:u}=d,h=zO(c,r,a),f={paddingBottom:`${u.height/u.width*100}%`},g=M()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":s});return(0,n.jsx)("div",{className:"blocks-storyline__item",style:f,children:(0,n.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",ref:v=>{this.iframe=v},name:o.toString(),className:g,src:(0,ye.o1)(h),title:l})})}renderProcessing(){const{renderProcessing:e}=this.props;return typeof e=="function"?e():null}}const GO=cs(WO);var KO=i(67371),tu=i.n(KO),wle=i(56552),$O=i(23117),QO=i.n($O),ZO=i(37600),Oa=i.n(ZO);function su(t,e,s="..."){const o=t?t.toString():"";return o.length>e?o.substr(0,e-1)+s:o}const Ble=t=>when(e=>length(e)>t,slice(0,t)),YO=null,XO=t=>YO.test(t),JO=t=>t>=0,qO=t=>t<=100,_le=t=>t==="",Ule=t=>XO(t)&&qO(t)&&JO(t),Hle=t=>String(Number(t)),Ef=Se()(ha()(""),tu()(QO(),0)),Fle=Se()(ha()(" "),ws()(Ef),z1()(" ")),Tf=Se()(ha()(" "),z1()(/(?=[A-Z]|^)/)),zle=Se()(Ef,Oa(),Tf),Vle=Se()(Oa(),Tf),Wle=(t,e)=>s=>su(s,t,e);var eP=i(59288);const nu=q("blocks-button"),_i=O.Ht,Sf=O.zV,tP=({description:t})=>(0,n.jsx)(Nt,{className:nu("description"),value:t}),sP=({color:t,destination:e,editBlock:s,handleNavigate:o,isEditable:r,label:a,type:c})=>{const d=(0,Me.d_)(),l=(0,Me.DX)()?.externalLinksDisabled,u=(0,Me.DX)()?.theme,h=(0,Me.kJ)(),{mode:p}=(0,ke.g)(),f=(0,Hs.y4)(),g=rn(),v=(0,Me.vU)(),C=(0,ja.htmlDecode)((0,xo.QZ)((0,It.QQ)(a))),E=su(C,18),L=c==="email",x=c==="exit-course",S=c==="lesson",b=c==="relative-url",N=nu("button"),I=!t||t===""||t===h,j=t??h,R={},P=(0,Me.Ge)(h),B=I&&u?.accentContrast===O.Em.AUTO?O.Em.AUTO:P,_=g?.buttonColorContrast??B,k=jn({backgroundColor:j,contrast:_});Object.assign(R,{...!I&&{"--color-button-bg":j},...!I&&{"--color-button-text":k},...!I&&{"--color-button-border":"transparent"}});const J=l&&di(e),Z=(0,m.useCallback)(()=>{f({payload:!0,type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL"})},[f]),G=(0,m.useCallback)(()=>{if(r)s();else{if(J)return Z();if(x)return(0,ye.NS)()}},[s,J,r,x,Z]),Y=(0,m.useCallback)(()=>{o(e)},[e,o]);if(r||J||x)return(0,n.jsx)("button",{className:N,onClick:G,onKeyDown:rp(G),style:R,tabIndex:el,type:"button","aria-label":C,children:E});if(S){const Ee=p?`/${p}`:"",fe=`/lessons/${e}${Ee}`,oe=e===""?"#":fe;return(0,n.jsx)(Qn,{className:N,onClick:Y,style:R,to:oe,"aria-label":C,children:E})}else{const Ee=b?e:Ra(e),fe=L?`mailto:${e}?subject=${d}`:Ee,oe=nn.isIphoneSafari?"_top":"_self",we=L?oe:"_blank",Ae=we==="_blank",_e=Ae?"noopener noreferrer":void 0,Qe=v?.a11yNoticeLinkNewTab||"(opens in a new tab)",pt=Ae?`${C} ${Qe}`:C;return(0,n.jsx)("a",{className:N,href:fe,rel:_e,style:R,tabIndex:el,target:we,"aria-label":pt,children:E})}},Lf=t=>{const{animateBlockEntrance:e,editable:s,editBlock:o=()=>{},handleNavigate:r,isLearner:a,items:c=[],renderDescription:d=tP,settings:l}=t,{buttonColor:u,buttonStack:h,entranceAnimation:p,paddingBottom:f=3,paddingTop:g=3}=l,v=nu(null,{"no-animation":!p,center:_i==="center",left:_i==="left",right:_i==="right",rounded:Sf==="rounded"}),C={paddingTop:`${Number(g)*10}px`,paddingBottom:`${Number(f)*10}px`},E=(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:a,offset:100,children:c?.map(({id:L,description:x,...S})=>(0,n.jsxs)("section",{className:nu("container"),children:[d({id:L,description:x}),(0,n.jsx)(sP,{...S,color:u,editBlock:o,handleNavigate:r,isEditable:s})]},L))??null});return h?(0,n.jsx)("div",{style:C,children:E}):(0,n.jsx)(qt,{className:v.toString(),style:C,children:E})},nP=Lf;class oP extends eP.Component{renderButtonDelegate;constructor(e){super(e),this.renderButtonDelegate=this.renderButton.bind(this)}static get defaultProps(){return{items:[],lessonId:"",blockId:"",editBlock:()=>{}}}renderButton(e,s){const{blockId:o,editable:r,editBlock:a,handleNavigate:c,isLearner:d,lessonId:l}=this.props;return(0,n.jsx)(Lf,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,isLearner:d,items:[e],lessonId:l,settings:s,type:"right",handleNavigate:c})}render(){const{animateBlockEntrance:e,isLearner:s,items:o,settings:r,renderButton:a=this.renderButtonDelegate}=this.props,{paddingTop:c,paddingBottom:d,entranceAnimation:l}=r,u=M()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!l,"blocks-button--center":_i==="center","blocks-button--left":_i==="left","blocks-button--right":_i==="right","blocks-button--rounded":Sf==="rounded"}),h={paddingTop:`${Number(c)*10}px`,paddingBottom:`${Number(d)*10}px`},p={buttonColor:r.buttonColor||this.props.color,buttonStyle:r.buttonStyle,buttonStack:!0};return(0,n.jsx)(qt,{className:u,style:h,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,children:o.map(f=>(0,n.jsx)(m.Fragment,{children:a(f,p)},f.id))})})}}var rP=i(5803),aP=i.n(rP);const iP=ot()("partner-content-block-card__"),cP=t=>{const{backgroundColor:e,blockId:s,courseId:o,partnerContent:r,publishedAt:a,tenantId:c}=t,{data:d,type:l}=r,{authors:u,bookImage:h,bookTitle:p,buyLink:f,internalId:g,nbicLink:v}=d,C={blockId:s,courseId:o,partnerContentId:g,tenantId:c,contentSubtype:l};return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"More Info"}),(0,n.jsxs)("ol",{className:"partner-content-block-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(q2,{authors:u,backgroundColor:e,block:!0,bookImage:h,bookTitle:p,buyLink:f,publishedAt:a,trackingInfo:C})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)("div",{className:iP("divider")})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(ep,{backgroundColor:e,block:!0,link:v,publishedAt:a,trackingInfo:C})})]})]})};var ou=i(59288);const ru=q("block-audio"),Ui=q("block-video"),nh=q("block-embed"),_n=q("block-attachment");class lP extends ou.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.onLoad=this.onLoad.bind(this),this.state={loaded:!1}}static get defaultProps(){return{audioVideoPlayhead:0,blockId:"",getL10nValue:()=>{},editable:!1,items:[],lessonId:"",onStep:()=>{},recordMediaPlayheadPosition:()=>{}}}renderCaption({caption:e}){const{loaded:s}=this.state,o=ru("caption",{hidden:!s}).toString();return(0,n.jsx)(Ms,{className:o,value:e})}onLoad(){this.setState({loaded:!0})}renderItem(e){const{blockId:s,getL10nValue:o,labels:r,lessonId:a,loadMedia:c,progress:d,recordMediaPlayheadPosition:l,renderCaption:u=this.renderCaptionDelegate}=this.props,h=o(e.media)??{},{id:p}=e,f=h?.tmp?.audio?.key||h?.audio?.key,g=h?.tmp?.audio?.transcript||h?.audio?.transcript,v=`${a}-${s}-${p}`,C=Ye()(0,["items",s,"items",p,"audioVideoPlayhead"],d),E=Q1({lessonId:a,refs:`items:${s}/items:${p}`});return(0,n.jsxs)("div",{className:ru("item"),children:[c&&(0,n.jsx)(F1,{audioVideoPlayhead:C,id:v,item:e,refs:`items:${s}/items:${p}`,labels:r,mediaSrc:f,onEnd:this.handleOnEnd.bind(this,p),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,e),onAIUploadFinish:this.props.onAIUploadFinish,recordMediaPlayheadPosition:l,transcript:g,uploadId:E},v),u(e)]},p)}handleOnEnd(e){this.props.onStep({id:e})}onTranscriptClick(e){const{blockId:s}=this.props;return this.props.openTranscript?.({blockId:s,item:e})}render(){const{animateBlockEntrance:e,isLastBlock:s,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:c}=a,d=ru({"no-animation":!c}).toString(),l=r.length>0?r.slice(0,1):[],u=s?50:300;return(0,n.jsx)(qt,{className:d,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:o,offset:u,children:(0,n.jsx)("div",{className:ru("wrapper"),children:l.map(h=>this.renderItem(h))})})})}}const dP=P3(cs(lP));class uP extends ou.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.onVideoLoad=this.onVideoLoad.bind(this),this.state={loaded:!1}}static get defaultProps(){return{audioVideoPlayhead:0,items:[],editable:!1,lessonId:"",blockId:"",onStep:()=>{},partnerContent:[],getL10nValue:()=>{}}}onVideoLoad(){this.setState({loaded:!0})}renderVideo(e){const{blockId:s,editable:o,enableVideoPlaybackSpeed:r,labels:a,progress:c,recordMediaPlayheadPosition:d,settings:l,takingSnapshot:u,type:h}=this.props,{captions:p,captionUID:f,id:g,key:v,keyId:C,poster:E,subtitle:L}=e,x=v||e.src,S=Ye()(0,["items",s,"items",g,"audioVideoPlayhead"],c),b=(0,n.jsx)("div",{children:(0,n.jsx)(An,{alt:"Video Poster",className:Ui("poster"),src:E})}),N=(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:Ui("placeholder")})}),I=(0,n.jsx)("div",{children:(0,n.jsx)($1,{audioVideoPlayhead:S,canAdjustPlaybackSpeed:r,canRestrictSeek:l.forwardSeekRestricted&&!o&&!c?.isComplete,captionUID:f,captions:p,id:C,labels:a,onLoad:this.onVideoLoad,poster:E,progressChanged:this.handleProgressChanged.bind(this,g),recordMediaPlayheadPosition:d,src:x,subtitle:L,type:v?"video":h},C)});return u?b:x?I:N}renderCaption({caption:e}){const{loaded:s}=this.state,o=Ui("caption",{visible:s}).toString();return(0,n.jsx)(Ms,{className:o,value:e})}renderItem(e){const{courseId:s,currentLocale:o,lessonId:r,blockId:a,loadMedia:c,partnerContent:d,publishedAt:l,settings:u,tenantId:h,renderCaption:p=this.renderCaptionDelegate,getL10nValue:f}=this.props,{loaded:g}=this.state,{backgroundColor:v,mediaWidth:C="1"}=u,{id:E,media:L}=e,x="partnerContentId"in e?e.partnerContentId:void 0,S=f(L)??{},{customVideo:b={},tmp:N={},video:I={}}=S,j=ur()("poster",I)?I:mt()(I,b),R=ur()("poster",N.video||{})&&N.video,{captionUID:P,captions:B,key:_,poster:k,src:J,subtitle:Z}=(0,ye.Hm)()?j:R||j,G=`${r}-${a}-${E}-${o}`,Y={captionUID:P,captions:B,id:E,key:_,keyId:G,partnerContentId:x,poster:k,src:J,subtitle:Z},Ee=qe()(Ue()("id",x),d)||{},fe=Ee&&!Yt()(Ee),oe=Ui("item",{small:C==="0",medium:C==="1",full:C==="2"});return(0,n.jsxs)("div",{className:oe,children:[(0,n.jsxs)("figure",{"data-l10n-id":L?.l10nId,children:[c&&this.renderVideo(Y),g&&(0,n.jsx)("figcaption",{className:Ui("wrapper"),children:p(e)})]}),fe&&(0,n.jsx)(cP,{backgroundColor:v,blockId:a,courseId:s,partnerContent:Ee,publishedAt:l,tenantId:h})]},E)}handleProgressChanged(e,{percentComplete:s}){s>=100&&this.props.onStep({id:e})}render(){const{animateBlockEntrance:e,isLearner:s,items:o,settings:r}=this.props,{entranceAnimation:a}=r,c=Ui({"no-animation":!a}).toString(),d=o.length>0?o.slice(0,1):[];return(0,n.jsx)(qt,{className:c,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,offset:250,children:d.map(l=>this.renderItem(l))})})}}const bf=(0,xs.wZ)(cs(uP));class hP extends ou.Component{static get defaultProps(){return{items:[],editable:!1,lessonId:"",blockId:"",settings:{}}}renderItem(e,s){const{id:o,settings:r={}}=e,a=this.props.getL10nValue(e.media)??{},c="embed"in a?a.embed:void 0,{loadMedia:d,labels:l,settings:u}=this.props,{showMetaData:h}=r,{cardMode:p,showBorder:f=!0}=u,g=nh("item",{border:f}).toString();return(0,n.jsx)(Rn,{className:g,disabled:!f&&p==Lo.TRANSPARENT,tag:"section",children:d&&(0,n.jsx)(G1,{id:`${s}-${o}`,labels:l,isLesson:!0,data:c,showMetaData:h})},o)}render(){const{animateBlockEntrance:e,blockId:s,getL10nValue:o,isLearner:r,items:a,settings:c}=this.props,{entranceAnimation:d,mediaWidth:l="0"}=c,u=o(a?.[0]?.media);if(!u)return null;const h=ef(u)!=="link",p=nh({"no-animation":!d}).toString(),f=nh("wrapper",{medium:h&&l==="1",full:h&&l==="2"}),g=a.length>0?a.slice(0,1):[];return(0,n.jsx)(qt,{className:p,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,offset:300,children:(0,n.jsx)("div",{className:f,children:g.map(v=>this.renderItem(v,s))})})})}}const mP=cs(yd()(hP));class pP extends ou.Component{get attachment(){const e=this.props.items[0].media;return this.props.getL10nValue(e)?.attachment??{}}render(){const{animateBlockEntrance:e,isLearner:s}=this.props;return(0,n.jsx)(qt,{children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,children:(0,n.jsx)("div",{className:"block-text--onecol",children:(0,n.jsx)("div",{className:"block-text__container",children:(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{className:"block-text__col",children:this.renderAttachment(this.attachment)})})})})})})}renderAttachment(e){return e.key?this.renderDownload(e):this.renderNoFile()}renderDownload({key:e,mimeType:s,originalUrl:o,size:r}){const{blockId:a,externalLinksDisabled:c,showExternalLinksModal:d}=this.props,l=(0,ye.o1)(e),u=c?"":void 0,h=c?d:void 0,p=c?void 0:l,f=c?void 0:"noopener noreferrer",g=c?"button":void 0,v=c?void 0:"_blank",C=_n({}).mix("brandHover").toString(),E=_n("info");return(0,n.jsxs)(Rn,{"aria-labelledby":`attachment-name-${a} attachment-icon-${a}`,className:C,"data-external":u,download:o,href:p,onClick:h,rel:f,role:g,tag:"a",target:v,children:[(0,n.jsxs)("div",{className:_n("main"),children:[(0,n.jsx)("div",{className:_n("icon"),id:`attachment-icon-${a}`,children:this.fileIcon(s)}),(0,n.jsxs)("div",{className:E,children:[(0,n.jsx)(Nt,{className:_n("title").toString(),id:`attachment-name-${a}`,value:o}),(0,n.jsx)("div",{className:_n("size").toString(),children:aP()(r,{round:1})})]})]}),(0,n.jsx)("div",{className:_n("rest"),children:(0,n.jsx)(ZC,{className:"brandHover__target--fill"})})]})}renderNoFile(){const e=_n({none:!0}).toString(),s=_n("info");return(0,n.jsx)(Rn,{className:e,children:(0,n.jsxs)("div",{className:_n("main"),children:[(0,n.jsx)("div",{className:_n("icon"),children:(0,n.jsx)(d2,{"aria-label":"File"})}),(0,n.jsxs)("div",{className:s,children:[(0,n.jsx)("div",{className:_n("title").toString(),children:"File Attachment Block"}),(0,n.jsx)("div",{className:_n("size").toString(),children:"No file added"})]})]})})}fileIcon(e){const{labels:s}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,c=/powerpoint|presentation/,d=/rtf|richtext/,l=/zip/;return o.test(e)?(0,n.jsx)(e4,{"aria-label":s?.a11yExcelIcon}):r.test(e)?(0,n.jsx)(XC,{"aria-label":s?.a11yPDFIcon}):a.test(e)?(0,n.jsx)(YC,{"aria-label":s?.a11yWordIcon}):c.test(e)?(0,n.jsx)(JC,{"aria-label":s?.a11yPPTIcon}):d.test(e)?(0,n.jsx)(qC,{"aria-label":s?.a11yRTFIcon}):l.test(e)?(0,n.jsx)(t4,{"aria-label":s?.a11yZipIcon}):(0,n.jsx)(d2,{"aria-label":s?.a11yFileIcon})}}const fP=li()({externalLinksDisabled:jt()(["course","externalLinksDisabled"])}),gP={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})};function vP(t){const e=(0,Hs.Ls)(fP,gP)(t),s=yd()(e);return cs(s)}const CP=vP(pP),xP=q("continue-btn"),oh=({bgColor:t="brand",href:e,onClick:s,text:o})=>{const r=xP({gray:t==="gray",black:t==="black"}).mix("brand--ui");return e?(0,n.jsx)(Qn,{className:r,"data-continue-btn":"",onClick:s,to:e,children:(0,n.jsx)(wn,{value:o})}):(0,n.jsx)("button",{className:r,"data-continue-btn":"",onClick:s,type:"button",children:(0,n.jsx)(Nt,{value:o})})},yf=({bgType:t,text:e,iconType:s="locked"})=>{const o=M()("continue-hint",{"continue-hint--bg-transparent":t==="transparent"});return(0,n.jsxs)("div",{className:o,"data-continue-btn":"",children:[s==="locked"&&(0,n.jsx)(Lt,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,n.jsx)("div",{className:"continue-hint__content",children:(0,n.jsx)(wn,{value:e})})]})};function EP({animateBlockEntrance:t,canContinue:e=!1,isComplete:s,isLearner:o,isOnlyBlockInStep:r,items:a=[],labels:c,onStep:d=()=>{},skipContinue:l=!1}){const u=(0,m.useRef)(void 0),h=(0,as.A)(s),{announcePolite:p}=Je(),f=a[0],{buttonColor:g,id:v,title:C,type:E}=f,L=!E||e||r&&s,x=!s||r,S=(0,m.useCallback)(()=>{d({id:v}),setTimeout(()=>{const b=u.current;b&&(b.setAttribute("aria-live","off"),b.setAttribute("role","status"),b.setAttribute("tabindex","-1"),b.innerHTML=c?.a11yStatusContinued,b.focus())},0)},[v,c,d]);return(0,m.useEffect)(()=>{!h&&s&&p?.(c?.a11yStatusAdditionalContent)},[p,s,c,h]),(0,n.jsxs)(n.Fragment,{children:[(x||l)&&(0,n.jsx)(qt,{children:(0,n.jsx)(zt,{animateBlockEntrance:t,animateIn:"fadeIn",isLearner:o,offset:25,children:(0,n.jsx)("div",{className:"block-text--onecol",children:(0,n.jsx)("div",{className:"block-text__container",children:(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsxs)("div",{className:"block-text__col",children:[L&&(0,n.jsx)(oh,{bgColor:g,onClick:S,text:C}),!L&&(0,n.jsx)(yf,{text:f.completeHint})]})})})})})}),(0,n.jsx)("div",{className:"abs-center-x visually-hidden-always","data-continue-sr":"",ref:u})]})}var If=i(92536),TP=i(94054),au=i.n(TP);const SP=q("flashcard");class LP extends m.PureComponent{static defaultProps={allowTabNavigation:!0,backType:"description",forceFlipped:!1,frontType:"description",getL10nValue:()=>{},onFlip:Function.prototype,onStep:Function.prototype,settingShowHint:!0};state={areSidesReady:!0,flipped:!1,hasFlippedOnce:!1,isMounted:!1};cardRef=(0,m.createRef)();render(){const{cardRef:e,handleFlip:s,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:c,backDescription:d,backMedia:l,backType:u,block:h,forceFlipped:p,frontDescription:f,frontMedia:g,frontType:v,id:C,index:E,isHidden:L,labels:x,lessonId:S,prefersKeyboardNavigation:b,settingShowHint:N,size:I,type:j,wrapElement:R,wrapRole:P},state:{areSidesReady:B,flipped:_,isMounted:k}}=this,J=p||_,Z=SP({large:I==="large",small:I==="small",flipped:J,stack:j==="stack"});return(0,n.jsxs)(R,{"aria-hidden":!c,className:Z,onClick:s,onTouchEnd:r,role:P,ref:e,children:[(0,n.jsx)(Rn,{activeIndex:a,allowTabNavigation:c,blockId:h?.id,blockType:j,description:f,media:g,itemId:C,index:E,isActiveSide:!J,isAriaHidden:J&&k&&B,isFlipped:J,isHidden:L,labels:x,lessonId:S,onFlip:s,onReady:o,prefersKeyboardNavigation:b,settingShowHint:N,side:"front",size:I,type:v,tag:jf}),(0,n.jsx)(Rn,{activeIndex:a,allowTabNavigation:c,blockId:h?.id,blockType:j,description:d,media:l,itemId:C,index:E,isActiveSide:J,isAriaHidden:!J&&k&&B,isFlipped:J,isHidden:L,labels:x,lessonId:S,onFlip:s,onReady:o,prefersKeyboardNavigation:b,settingShowHint:N,side:"back",size:I,type:u,tag:yP})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(ms,this.handleNavEvent)}componentDidUpdate(e,s){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:c}}=this;!s.hasFlippedOnce&&c&&a({id:r}),e.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener(ms,this.handleNavEvent)}handleNavEvent=e=>{const{path:s}=e.detail,{cardId:o}=Pc(s,["block","card"]);if(o===this.props.id){let r=!1;s.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!u1(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=e=>{const{block:s,dispatch:o,getL10nValue:r,index:a}=this.props,c=window.getSelection(),d=c.toString()&&this.cardRef.current?.contains(c.anchorNode);if(e.detail>1&&c.empty(),e&&e.target.closest("a")||d)return;const l=!this.state.flipped;this.setState({areSidesReady:!1,flipped:l,hasFlippedOnce:!0});const u=l?"back":"front",h=s.items?.[a]?.[u]?.media,f=r(h)?.audio?.transcript;f&&o(rl(f)),this.props.onFlip?.(this.props.index,l)};handleTouchEnd=e=>{e.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const Nf=(0,Hs.Ls)()(bd(cs(LP))),Hi=q("flashcard-side"),iu=q("flashcard-side-flip");class Pa extends m.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:Pa.descriptionActionTypes.INITIAL,isAtLongOverflowBottom:!1,isLong:!1,isLongOverflow:!1,isTooltipVisible:!1,scrollbarWidthOffset:void 0};id;constructor(e){super(e),this.handleMouseEnterAudio=this.handleMouseEnterAudio.bind(this),this.handleMouseLeaveAudio=this.handleMouseLeaveAudio.bind(this),this.id=(0,If.uniqueId)("flashcard-side")}state=Pa.initialState;longBottomObserver=void 0;readyTimeout=void 0;refDescription=(0,m.createRef)();refDescriptionBottom=(0,m.createRef)();refSide=(0,m.createRef)();refBtnTimeoutMouseLeave=(0,m.createRef)();checkDescriptionSizeDebounced;handleMouseEnterAudio=()=>{const{itemId:e,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="0.6")};handleMouseLeaveAudio=()=>{const{itemId:e,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="1")};render(){const{props:{activeIndex:e,allowTabNavigation:s,block:o,className:r,description:a,getL10nValue:c,hasAudioExpansion:d,index:l,itemId:u,media:h,isActiveSide:p,isAriaHidden:f,isFlipped:g,labels:v,lessonId:C,onFlip:E,prefersKeyboardNavigation:L,settingShowHint:x,side:S,size:b,style:N,type:I},refDescription:j,refDescriptionBottom:R,refSide:P,state:{isAtLongOverflowBottom:B,isLong:_,isLongOverflow:k,isTooltipVisible:J,scrollbarWidthOffset:Z}}=this,G=S==="front",Y=S==="back",Ee=b==="small",fe=b==="large",oe=I==="description",we=I==="fullimage",Ae=I==="image",_e=G?v?.a11yBlockFlashcardFront:v?.a11yBlockFlashcardBack,Qe=`items:${o?.id}/items:${u}/${G?"front":"back"}`,pt=Hi({back:Y,flipped:g,front:G,fullimage:we}).mix(r),{image:ls,audio:nt}=c(h)??{},Ce=Hi("content",{small:Ee,large:fe,front:G,fullimage:we,image:Ae,"long-overflow":k,"long-overflow-bottom":B,"has-audio":!!nt}),Ne=iu({"audio-expansion":d}),Ke=iu("btn",{"visually-hidden":!x,"prefers-keyboard":L,round:!!d}),He=iu("icon"),dt=iu("tooltip",{visible:J}),lt=Hi("img",{small:Ee,large:fe,centered:Ae,full:we}),Ht=Hi("description",{"has-audio":!!nt,long:_&&!k,"long-overflow":k,short:!_,large:fe}),Wt=Hi("description-bottom"),vs=Z==null?void 0:{right:Z},en=ls?.alt??`Image ${l+1}`,Pn=(0,rs.ME)(ls),Bs=`${this.id}-click-to-flip-text`,Sn=`${this.id}-image`,lo=`${this.id}-description`;return(0,n.jsxs)("div",{"aria-label":_e,className:pt,inert:f,ref:P,tabIndex:-1,style:N,role:"group",children:[(0,n.jsxs)("div",{className:Ce,children:[(0,n.jsxs)("div",{className:Ne,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:vs,children:[(0,n.jsx)("button",{"aria-labelledby":`${Bs} ${lo} ${Sn}`,className:Ke,id:`${u}-${l}-${S}-flip-btn`,onBlur:this.handleBtnBlur,onClick:E,onFocus:this.handleBtnFocus,tabIndex:s&&p?0:-1,type:"button",children:(0,n.jsx)(d4,{className:He})}),(0,n.jsx)("div",{"aria-hidden":"true",className:dt,id:Bs,onClick:Si,children:v?.blocksClickToFlip})]}),(we||Ae)&&(0,n.jsx)(IP,{alt:en,className:lt,imageId:Sn,l10nId:(0,Pt.pP)(h),url:Pn}),oe&&(0,n.jsxs)("div",{className:Ht,ref:j,tabIndex:p&&k?0:void 0,children:[(0,n.jsx)(Nt,{allowTabNavigation:s&&!f,id:lo,value:a}),k&&(0,n.jsx)("div",{className:Wt,ref:R})]})]}),nt&&(0,n.jsx)("div",{className:Hi("audio-player",{text:oe,image:Ae}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,n.jsx)(En,{activeIndex:e,blockId:o.id,index:`${u}-${l}-${S}`,isOverlayAudio:we,labels:v,lessonId:C,media:h,renderMediaType:"audio",item:{id:u,media:h},itemIndex:l,refs:Qe,side:S,shouldPause:!p})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=au()(this.checkDescriptionSize,250),window.addEventListener("resize",this.checkDescriptionSizeDebounced),document.addEventListener("keydown",this.handleDocumentKeyDown)}componentWillUnmount(){clearTimeout(this.readyTimeout),this.cleanupLongBottomObserver(),window.removeEventListener("resize",this.checkDescriptionSizeDebounced),document.removeEventListener("keydown",this.handleDocumentKeyDown)}componentDidUpdate(e,s){const{props:{allowTabNavigation:o,blockType:r,isFlipped:a,isActiveSide:c,isHidden:d,onReady:l,type:u}}=this;e.isHidden&&!d&&this.checkDescriptionSize(this.props),e.isFlipped!==a&&(c&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{l()},700)):clearTimeout(this.readyTimeout)),u==="description"&&this.handleUpdatesDescription(e,s),r==="stack"&&c&&!e.allowTabNavigation&&o&&this.refSide.current?.focus?.()}handleBtnBlur=()=>{this.setState({isTooltipVisible:!1})};handleBtnFocus=()=>{this.setState({isTooltipVisible:!0})};handleBtnMouseEnter=()=>{clearTimeout(this.refBtnTimeoutMouseLeave.current),this.setState({isTooltipVisible:!0})};handleBtnMouseLeave=()=>{this.refBtnTimeoutMouseLeave.current=setTimeout(()=>{this.setState({isTooltipVisible:!1})},150)};handleDocumentKeyDown=e=>{yn(e)&&this.state.isTooltipVisible&&this.setState({isTooltipVisible:!1})};handleUpdatesDescription=(e,s)=>{const{props:{isFlipped:o,isActiveSide:r},state:{isLongOverflow:a}}=this;e.isFlipped!==o&&r&&this.scrollDescriptionToTop(),this.handleUpdatesDescriptionSize(e,s),!s.isLongOverflow&&a?(this.setLongBottomObserver(),this.setScrollbarWidth()):s.isLongOverflow&&!a&&this.cleanupLongBottomObserver()};handleUpdatesDescriptionSize=(e,s)=>{const{INSERTING:o,DELETING:r}=Pa.descriptionActionTypes,{props:{description:a,size:c,type:d,getL10nValue:l},state:{descriptionAction:u,isLong:h,isLongOverflow:p}}=this,f=l(a)?.length||0,g=l(e.description)?.length||0;u!==o&&f>g?this.setState({descriptionAction:o}):u!==r&&f<g?this.setState({descriptionAction:r}):(u!==s.descriptionAction||h!==s.isLong||p!==s.isLongOverflow||c!==e.size||d!==e.type||f!==g)&&this.checkDescriptionSize(e)};checkDescriptionSize=e=>{const{DELETING:s}=Pa.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:c,isLongOverflow:d}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?c&&!d?this.setState({isLongOverflow:!0}):!c&&!d&&this.setState({isLong:!0}):(a===s||o!==e.size)&&this.setState(Pa.initialState)};scrollDescriptionToTop=()=>{const e=this.refDescription.current;this.state.isLong&&e&&(e.scrollTop=0)};setLongBottomObserver=()=>{const e=this.refDescriptionBottom.current;if(e&&this.longBottomObserver==null){const s=o=>{const r=o?.[0]?.isIntersecting??!1;this.setState({isAtLongOverflowBottom:!r})};this.longBottomObserver=new IntersectionObserver(s,{threshold:[0,1]}),this.longBottomObserver.observe(e)}};cleanupLongBottomObserver=()=>{this.longBottomObserver?.disconnect?.(),this.longBottomObserver=void 0};setScrollbarWidth=()=>{const e=this.refDescription.current;if(e){const s=e.offsetWidth-e.clientWidth;s>0&&this.setState({scrollbarWidthOffset:s})}}}const bP=Ld("rise-audio-release","hasAudioExpansion")(t=>(0,n.jsx)(Pa,{...t})),jf=(0,Hs.Ls)()(bd(cs(t=>(0,n.jsx)(bP,{...t})))),yP=t=>{const{backgroundType:e,cardMode:s,customBackgroundColorContrast:o}=rn(),r=(0,Me.DX)()?.theme,a=wd(),d=e===O.xj.IMAGE&&a?.overlayColor===O.df.LIGHT,l=qn(),u=r?.accentContrast,h=u===O.Em.AUTO,p=(0,m.useMemo)(()=>{let g="#fafafa";if(s===Lo.TRANSPARENT)switch(e){case O.xj.DARK:g="#525252";break;case O.xj.BLACK:g="#1a1a1a";break;case O.xj.IMAGE:d?g="rgba(0, 0, 0, 0.7)":g="rgba(255, 255, 255, 0.7)";break;case O.xj.ACCENT:case O.xj.COLOR:case O.xj.TINT:{let E=0;switch((0,ct.XC)(l)){case ct.lL.LIGHT:E=.5;break;case ct.lL.MED:E=-.35;break;case ct.lL.DARK:E=-.65;break;case ct.lL.NEAR_BLACK:E=.1;break}g=(0,ct.W8)(E,l)}}const v={"--color-background":g},C=e===O.xj.COLOR?o:u;if((e===O.xj.ACCENT||e===O.xj.COLOR)&&s===Lo.TRANSPARENT&&h){const E=jn({backgroundColor:g,contrast:C});v["--color-text"]=E}return v},[l,e,s,o,h,d,u]),f={...t,style:p};return(0,n.jsx)(jf,{...f})},IP=({alt:t,className:e,imageId:s,l10nId:o,url:r})=>{const a=(0,gn.Ll)(t);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(An,{alt:a,className:e,"data-l10n-id":o,id:s,src:r}),!a&&(0,n.jsx)("span",{className:"visually-hidden-always",children:"No image alternative text"})]})};class NP extends m.Component{static defaultProps={editable:!1,items:[],onStep:()=>{},stack:!1,isRTL:!1};state={activeIndex:0,flipStateMap:{},prefersKeyboardNavigation:!0};render(){const{blockId:e,animateBlockEntrance:s,isHidden:o,isLearner:r,items:a,labels:c,lessonId:d,onStep:l,previewType:u,isRTL:h,settings:p,stack:f}=this.props,{activeIndex:g}=this.state,{prefersKeyboardNavigation:v}=this.state,{entranceAnimation:C,showHint:E}=p,L=M()("block-flashcards",{"block-flashcard--column":!f,"block-flashcard--stack":f,"block-flashcards--no-animation":!C}),x=a.length>2?"small":"large",S=u===$e.o4.MOBILE_PORTRAIT||u===$e.o4.MOBILE_LANDSCAPE;return(0,n.jsx)(qt,{className:L,children:f?(0,n.jsx)(zt,{animateBlockEntrance:s,animateIn:"fadeIn",isLearner:r,offset:400,children:(0,n.jsx)("div",{className:"block-flashcard-carousel",children:(0,n.jsx)(Xd,{blockId:e,items:a,children:({carouselRef:b})=>(0,n.jsx)(Qd,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:h,labelCarousel:c?.a11yBlockFlashcardStack,labelCarouselRoleDesc:c?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:c?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:c?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:c?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:c?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlidePreposition:c?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:c?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),shouldMouseEmulateTouch:S,shouldUseGoToSlide:!1,shouldUseCounter:!0,ref:b,children:a.map((N,I)=>(0,n.jsx)(Nf,{activeIndex:g,backDescription:N?.back?.description,backMedia:N?.back?.media,backType:N?.back?.type,frontDescription:N?.front?.description,frontMedia:N?.front?.media,frontType:N?.front?.type,id:N?.id,index:I,labels:c,lessonId:d,onFlip:this.handleFlip.bind(this),onStep:l,prefersKeyboardNavigation:v,settingShowHint:E,size:"large",type:"stack",wrapElement:"div"},N?.id))})})})}):(0,n.jsx)(zt,{animateBlockEntrance:s,animateIn:"fadeIn",className:"block-flashcards__animation",isLearner:r,siblingDelay:.25,children:(0,n.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:a.map((b,N)=>(0,n.jsx)(Nf,{activeIndex:g,backDescription:b?.back?.description,backMedia:b?.back?.media,backType:b?.back?.type,blockId:e,frontDescription:b?.front?.description,frontMedia:b?.front?.media,frontType:b?.front?.type,id:b?.id,index:N,isHidden:o,labels:c,lessonId:d,onStep:l,prefersKeyboardNavigation:v,settingShowHint:E,size:x,type:"grid",wrapElement:"li",wrapRole:"listitem"},b?.id))})})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("mousedown",this.handleMouseDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mousedown",this.handleMouseDown)}handleKeyDown=e=>{!this.state.prefersKeyboardNavigation&&!Ax(e)&&this.setState({prefersKeyboardNavigation:!0})};handleMouseDown=()=>{this.state.prefersKeyboardNavigation&&this.setState({prefersKeyboardNavigation:!0})};handleFlip(e,s){this.setState(o=>({flipStateMap:{...o.flipStateMap,[e]:s}}))}handleCarouselChange(e){const{block:s,dispatch:o,getL10nValue:r}=this.props,{flipStateMap:a}=this.state,c=a[e]?"back":"front",d=s.items?.[e]?.[c]?.media,u=r(d)?.audio?.transcript;u&&o(rl(u)),this.setState({activeIndex:e})}}const Af=(0,Hs.Ls)()(Yd(cs(bd(NP))));var jP=i(55328),Qo=i.n(jP),AP=i(43358),rh=i.n(AP);const Rf=({canProceed:t,isReduceMotion:e,onNext:s,onSubmit:o,quizNext:r,quizSubmit:a,allowNext:c=!1})=>{const d=t?!0:void 0,l=t?void 0:o,u=t?-1:void 0,h=t?void 0:!0,p=t?s:void 0,f=t?void 0:-1,g=(0,m.useRef)(void 0),v=(0,as.A)(t);(0,m.useEffect)(()=>{c&&!v&&t&&setTimeout(()=>{g.current?.focus?.({preventScroll:e})},0)},[c,t,e,v]);const C=M()("quiz-card__actions",{"quiz-card__actions--proceed":t}),E=M()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-always":!t});return(0,n.jsxs)("div",{className:C,children:[(0,n.jsx)("div",{className:"quiz-card__submit brand--ui",children:(0,n.jsx)("button",{"aria-disabled":d,"aria-hidden":d,className:"quiz-card__button",onClick:l,tabIndex:u,type:"button",children:a})}),(0,n.jsx)("br",{role:"presentation",className:"visually-hidden-always"}),c&&(0,n.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,n.jsx)("button",{"aria-disabled":h,"aria-hidden":h,className:E,onClick:p,ref:g,tabIndex:f,type:"button",children:r})})]})},RP=({children:t,isActive:e,isComplete:s,isTimedQuiz:o,style:r})=>(0,n.jsx)("div",{inert:e?void 0:!0,"aria-hidden":e?void 0:!0,className:OP({isActive:e,isComplete:s,isTimedQuiz:o}),style:r,children:(0,n.jsx)("div",{className:"quiz-card__container",children:(0,n.jsx)("div",{className:"quiz-card__row",children:(0,n.jsx)("div",{className:"quiz-card__main",children:t})})})}),OP=({isActive:t,isComplete:e,isTimedQuiz:s})=>M()("quiz-card",{"quiz-card--active":t,"quiz-card--done":e,"quiz-card--timed":s}),Of=RP;var Gr=i(20387),yt=i(17862);const{FILL_IN_THE_BLANK:Pf,MATCHING:PP,MULTIPLE_CHOICE:MP,MULTIPLE_RESPONSE:DP}=yt.Ay;function kP({answers:t},e){return t.map(s=>e(s?.title)).filter(Boolean).join(", ")}function wP({answers:t,correct:e},s){const o=e!=null?(0,Gr.propEq)("id",e):(0,Gr.propEq)("correct",!0);return s(t.find(o)?.title)}function BP({answers:t,selection:e},s){return s(t?.[e]?.title)}function Mf(t,e,s){return e.filter(t).reduce((o,r,a)=>{const c=s(r?.title)??"";return a===0?c:o+", "+c},"")}function _P({corrects:t,answers:e},s){return Mf(r=>Array.isArray(t)?t.includes?.(r.id):r.correct,e,s)}function UP({answers:t,selection:e},s){return Mf((r,a)=>e.includes(a),t,s)}function HP({answers:t,getL10nValue:e,selection:s,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:c}){const d=(0,Gr.invertObj)(s);return t.map((l,u)=>{const h=e(l?.title)??"",p=e(l?.matchTitle)??"",f=d?.[u],g=e(t?.[f]?.title)??"";return c===yt.iV.INCORRECT?a+p+". "+r+": "+g+".":a+p+". "+o+": "+h+". "+r+": "+g+"."}).join(" ")}function ah({correctAnswer:t,selectedAnswer:e,correctLabel:s,userLabel:o,revealAnswers:r}){return!t||!e||r===yt.iV.NONE?"":r===yt.iV.INCORRECT?o+": "+(0,xo.QZ)(e)+".":s+": "+(0,xo.QZ)(t)+". "+o+": "+(0,xo.QZ)(e)+"."}function FP({item:t,labels:e}){return t.type===Pf?e?.quizAcceptableResponses:e?.a11yCorrectLive}function zP({getL10nValue:t,isComplete:e,item:s,selection:o,labels:r,revealAnswers:a}){if(!s||!e)return null;const c=s?.answers??[],d=s?.correct,l=s?.corrects,u=FP({item:s,labels:r}),h=r?.a11yAnswerLive;switch(s.type){case PP:return HP({getL10nValue:t,answers:c,selection:o,correctLabel:u,userLabel:h,revealAnswers:a});case Pf:return ah({correctAnswer:kP({answers:c},t),selectedAnswer:o,correctLabel:u,userLabel:h,revealAnswers:a});case MP:return ah({correctAnswer:wP({answers:c,correct:d},t),selectedAnswer:BP({answers:c,selection:o},t),correctLabel:u,userLabel:h,revealAnswers:a});case DP:return ah({correctAnswer:_P({corrects:l,answers:c},t),selectedAnswer:UP({answers:c,selection:o},t),correctLabel:u,userLabel:h,revealAnswers:a})}return null}const Df=({canProceed:t,feedbackRef:e,feedbackValue:s,isActive:o,isComplete:r,isCorrect:a,item:c,labels:d,quizCorrect:l,quizIncorrect:u,revealAnswers:h,selection:p})=>{const{announcePolite:f,clearAnnouncements:g}=Je(),v=(0,as.A)(t),C=(0,It.gY)(),L=!!(0,It.QQ)(s),x=a?l:u,S=(0,m.useCallback)(()=>{const I=zP({getL10nValue:C,isComplete:r,item:c,labels:d,revealAnswers:h,selection:p}),j=s?(0,xo.QZ)(C(s)):"",R=x+". "+I+" "+j;let P;return R&&(P=setTimeout(()=>{f(R)},250)),()=>{clearTimeout(P)}},[f,s,C,r,c,d,x,h,p]);(0,m.useLayoutEffect)(()=>{!v&&t&&h!==yt.iV.NONE&&S()},[t,v,S,h]),(0,m.useEffect)(()=>g,[g]);const b=M()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":L}),N=M()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct":a});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:b,"aria-hidden":o?void 0:!0,ref:e,children:(0,n.jsx)("div",{className:"quiz-card__main--feedback",children:(0,n.jsxs)("div",{"aria-label":d?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,n.jsx)("div",{className:N,children:(0,n.jsx)("i",{"aria-hidden":"true",className:a?"icon icon-Master-05":"icon icon-Master-06"})}),(0,n.jsx)("div",{className:"quiz-card__feedback-label",children:x}),(0,n.jsx)("div",{children:(0,n.jsx)(Nt,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:s})})]})})})})},VP=({children:t,hasNoBorder:e,type:s})=>(0,n.jsx)("div",{className:WP({hasNoBorder:e,type:s}),children:t}),WP=({hasNoBorder:t,type:e})=>M()("quiz-card__interactive",{"quiz-card__interactive--no-border":t,"quiz-card__interactive--fill":e==="FILL_IN_THE_BLANK"}),kf=VP;var GP=i(87839),KP=i.n(GP),$P=i(37022),QP=i.n($P),ZP=i(59565),YP=i.n(ZP),XP=i(65828),JP=i.n(XP);const qP=Es()((t,e)=>Aa()(YP()(null),JP()(t,e)));var eM=i(45013),wf=i.n(eM),tM=i(77061),sM=i.n(tM),nM=i(24799),Bf=i.n(nM),oM=i(86697),rM=i.n(oM),aM=i(9325),_f=i.n(aM),iM=i(89657),cM=i.n(iM);const ih=_f()(Bf()),Xle=sn()(Bf(),()=>({})),Ma=_f()(sM()),ch=A1()(wf()(Ma),wf()(rM())),Jle=cM()(ch),qle=t=>t.toLowerCase(),lM=({allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:s,index:o,labels:r,media:a,settings:c})=>(0,n.jsx)("div",{className:"quiz-card__media",children:(0,n.jsx)(En,{allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:s,index:o,labels:r,media:a,opts:c})}),dM=Aa()(QP()(["tmp"]),Ye()({},["media"])),uM=KP()(dM,ch),hM=A1()(uM,ch),Uf=qP(hM,lM),mM=(t,e)=>{const s=Js(),o=(0,Kt.A)(e);(0,m.useEffect)(()=>{!o&&e&&t&&zc()(t.focus)&&t.focus({preventScroll:s})},[e,s,o,t])},sde=hr()((t,e,s)=>s>=t&&s<e),Hf=t=>t<10?`0${t}`:String(t),pM=t=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(t),Ff=t=>t.reduce((e,s)=>isNaN(s)||s==null?e:e+s,0),fM=({isActive:t,labels:e,num:s,quizQuestion:o,total:r})=>{const a=(0,m.useRef)();return mM(a.current,t),(0,n.jsx)("div",{className:"quiz-card__number",children:(0,n.jsxs)("h1",{"aria-label":`${e?.quizQuestion} ${s} ${e?.lessonPreposition} ${r}`,className:"quiz-card__number-title",ref:a,tabIndex:-1,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"quiz-card__step-label",children:o}),(0,n.jsx)("span",{"aria-hidden":"true",className:"quiz-card__counter brand--color brand--ui",children:`${Hf(s)}/${Hf(r)}`})]})})},gM=({allowTabNavigation:t,id:e,value:s})=>(0,n.jsx)(Nt,{allowTabNavigation:t,className:"quiz-card__title",id:e,value:s}),cu={ANY:"ANY",CORRECT_INCORRECT:"CORRECT_INCORRECT",CHOICE:"CHOICE"},zf={label:"Any Response",prop:"feedback"},vM={label:"By Choice",prop:"choice"},CM={correctProp:"feedbackCorrect",incorrectProp:"feedbackIncorrect",label:"Correct / Incorrect",type:"CORRECT_INCORRECT"},rde=Rs()([[ps()(cu.ANY),We()(zf)],[ps()(cu.CHOICE),We()(vM)],[ps()(cu.CORRECT_INCORRECT),We()(CM)],[hn(),We()(zf)]]),Vf=cu,xM=({allowTabNavigation:t,correctAnswerColor:e,correctAnswerColorContrast:s,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:c,isCorrect:d,labels:l,onEnterToSubmit:u=Function.prototype,onChange:h=Function.prototype,options:p,questionHtmlId:f,quizAcceptableResponses:g,quizAnswerPlaceholder:v,revealAnswers:C,value:E})=>{const L=(0,m.useRef)(void 0),[x]=(0,m.useState)(()=>rt()("fitb-")),S=(0,It.gY)(),b=EM({options:p,getL10nValue:S}),N=`${x}-feedback`,I=`${x}-acceptable`,j=`${x}-input`,R=c?`${N} ${I}`:o||void 0,P=c?void 0:v,B=t?0:Ad,_=C===yt.iV.ALL||C===yt.iV.INCORRECT,k=C===yt.iV.ALL||d&&C===yt.iV.INCORRECT,J=d?e:r,G=e&&r&&{"--fa-primary-color":jn({backgroundColor:J,contrast:d?s:a}),"--fa-secondary-color":J},Y=r&&{backgroundColor:jn({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},Ee=M()("quiz-fill__icon",{"quiz-fill__icon--visible":c}),fe=M()("quiz-fill__options",{"quiz-fill__options--visible":c}),oe=(0,m.useCallback)(Qe=>{h(Qe.currentTarget.value)},[h]),we=(0,m.useCallback)(Qe=>{va(Qe)&&u(Qe)},[u]),Ae=c?void 0:oe,_e=c?void 0:we;return(0,n.jsxs)("div",{className:"quiz-fill",children:[(0,n.jsxs)("div",{className:"quiz-fill__container",children:[(0,n.jsx)("input",{"aria-invalid":o?!0:void 0,"aria-labelledby":f,"aria-describedby":R,"aria-hidden":!t,"aria-readonly":c,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:j,onChange:Ae,onKeyDown:_e,placeholder:P,readOnly:c,ref:L,tabIndex:B,type:"text",value:E}),_&&(0,n.jsxs)("div",{className:Ee,id:N,children:[d&&(0,n.jsx)(Lt,{"aria-label":l?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...G}}),!d&&(0,n.jsx)(p4,{"aria-label":l?.quizIncorrect,style:Y})]})]}),k&&c&&(0,n.jsx)("div",{className:fe,id:I,children:(0,n.jsx)(Nt,{value:`${g}: ${b}`})})]})},EM=({options:t,getL10nValue:e})=>t.map(o=>ma()(e(o.title)??"")).join(", "),Wf=xM;function TM({correctAnswerColor:t,correctAnswerColorContrast:e}){const s=(0,Me.vU)(),o=jn({backgroundColor:t,contrast:e}),r=t?{"--fa-primary-color":o,"--fa-secondary-color":t}:void 0;return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(Lt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--correct",name:"circle-check",style:r}),(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:s?.quizCorrect})})]})}var Fi=i(59288);function SM({correctAnswerValue:t,incorrectAnswerColor:e,incorrectAnswerColorContrast:s,shouldRevealCorrectAnswer:o}){const[r,a]=Fi.useState(!0),[c,d]=Fi.useState(!1),l=Fi.useRef(null),h=`matching-text-${Fi.useId()}`,p=(0,Me.vU)(),f=(0,as.A)(t),g=Fi.useCallback(()=>{a(b=>!b)},[]);Fi.useLayoutEffect(()=>{if(f!==t){const b=l.current;b!=null&&b.scrollWidth>b.clientWidth&&d(!0)}},[f,t]);const v=jn({backgroundColor:e,contrast:s}),C=e?{"--fa-primary-color":v,"--fa-secondary-color":e}:void 0,E=M()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),L=M()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),x=M()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),S=M()("matching-results-item-feedback-text-extra-text",{"matching-results-item-feedback-text-extra-text--collapsed":r});return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(Lt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:C}),!o&&(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:p?.quizIncorrect})}),o&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{className:E,children:[(0,n.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[p?.quizIncorrect,"."]}),c&&(0,n.jsx)("button",{"aria-controls":h,"aria-label":r?p?.a11yMatchingItemShowMore:p?.a11yMatchingItemShowLess,"aria-expanded":!r,className:"matching-results-item-feedback-text-btn",onClick:g,type:"button",children:(0,n.jsx)(Lt,{className:L,name:"caret-down",style:C})}),(0,n.jsx)("span",{className:x,children:(0,n.jsxs)("span",{className:S,id:h,ref:l,children:[p?.quizCorrect,": ",(0,n.jsx)(wn,{value:t})]})})]})})]})}function LM({col1Id:t,col1Value:e,col2Id:s,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:c,height:d,incorrectAnswerColor:l,incorrectAnswerColorContrast:u,revealAnswers:h}){const p=t===s,f=h!=="incorrect",g=h!=="none";return(0,n.jsxs)("li",{className:"matching-results-item",role:"listitem",children:[(0,n.jsxs)("div",{className:"matching-results-item-pieces",children:[(0,n.jsxs)("div",{className:"matching-results-item-piece",style:d?{height:d}:void 0,children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(wn,{value:e})})})]}),(0,n.jsxs)("div",{className:"matching-results-item-piece",children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(wn,{value:o})})})]})]}),g&&p&&(0,n.jsx)(TM,{correctAnswerColor:r,correctAnswerColorContrast:a}),g&&!p&&(0,n.jsx)(SM,{correctAnswerValue:c,incorrectAnswerColor:l,incorrectAnswerColorContrast:u,shouldRevealCorrectAnswer:f})]})}function bM({answers:t,columnBehavior:e,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:c,revealAnswers:d,rows:l}){return(0,n.jsx)("div",{className:"matching-results",children:(0,n.jsx)("ul",{className:"matching-results-list",role:"list",children:l.map((u,h)=>{const[p,f]=u,g=e==="freezeFirst"?t.find(v=>v.id===p.id)?.matchTitle:t.find(v=>v.id===f.id)?.title;return(0,n.jsx)(LM,{col1Id:p.id,col1Value:p.value,col2Id:f.id,col2Value:f.value,correctAnswerColor:s,correctAnswerColorContrast:o,correctAnswerValue:g,height:c,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:d},h)})})})}var yM=i(63310),lh=i.n(yM);lh().dynamicDrop(!0),lh().pointerMoveTolerance(8);const Zo=lh();var zi=i(59288);function IM(t,{onStart:e,onMove:s,onEnd:o,isEnabled:r=!0}){const a=zi.useRef({x:0,y:0}),c=zi.useRef({x:0,y:0}),d=zi.useRef(!1),l=zi.useRef(null),u=zi.useRef(void 0);zi.useEffect(()=>{const h=t.current;if(!h||!r||d.current)return;l.current=px(h);function p(){const f=l.current;return f instanceof Window?{x:window.scrollX,y:window.scrollY}:{x:f.scrollLeft,y:f.scrollTop}}return u.current=()=>{const f=p(),g=f.x-c.current.x,v=f.y-c.current.y;(g!==0||v!==0)&&(a.current.x+=g,a.current.y+=v,t.current&&(t.current.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})),c.current=f)},Zo(h).draggable({inertia:!1,autoScroll:{container:l.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},c.current=p(),l.current?.addEventListener("scroll",u.current,{passive:!0}),e?.()},move:f=>{a.current.x+=f.dx,a.current.y+=f.dy,h.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})},end:()=>{a.current={x:0,y:0},h.style.transform="",l.current?.removeEventListener("scroll",u.current),setTimeout(()=>{o?.()},0)}}}),d.current=!0,()=>{Zo(h).unset(),l.current?.removeEventListener("scroll",u.current),d.current=!1}},[t,e,s,o,r])}var Gf=i(59288);function NM(t,{isEnabled:e=!0,onDrop:s,onEnter:o,onLeave:r,overlap:a=.015}){const c=Gf.useRef(!1);Gf.useEffect(()=>{const d=t.current;if(!(!d||!e||c.current))return Zo(d).dropzone({overlap:a,listeners:{drop:()=>{s?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),c.current=!0,()=>{Zo(d).unset(),c.current=!1}},[t,s,o,r,e,a])}var so=i(59288);const Kf=so.memo(function({col:e,height:s,id:o,index:r,isActive:a,isFrozen:c,isMatched:d,isMoved:l,onClick:u,onDragEnd:h,onDragStart:p,onDrop:f,onDropZoneEnter:g,onDropZoneLeave:v,onKeyDown:C,value:E,valueOtherColumnActive:L,valueOtherColumnMatch:x}){const[S,b]=so.useState(!1),N=so.useRef(null),I=so.useRef(null),j=(0,Me.vU)(),R=so.useCallback(()=>{u({col:e,id:o,value:E})},[e,o,u,E]),P=so.useCallback(()=>{b(!0),p({col:e,id:o,value:E})},[e,o,p,E]),B=so.useCallback(()=>{h(),b(!1)},[h]),_=so.useCallback(()=>{f({col:e,id:o,value:E})},[e,o,f,E]),k=so.useCallback(()=>{g({col:e,id:o,value:E})},[e,o,g,E]),J=so.useCallback(()=>{v()},[v]),Z=so.useCallback(oe=>{C(oe,{col:e,index:r})},[e,r,C]);so.useEffect(()=>{e===1&&r===0||I.current?.setAttribute("tabindex","-1")},[]),IM(N,{isEnabled:!c,onStart:P,onEnd:B}),NM(N,{isEnabled:c,onDrop:_,onEnter:k,onLeave:J});const G=M()("matching-interaction-piece",{"matching-interaction-piece--matched":d,"matching-interaction-piece--moved":l}),Y=x==null?null:(0,n.jsxs)(n.Fragment,{children:[j?.a11yMatchingItemMatchedWith," ",(0,n.jsx)(wn,{value:x})]}),Ee=L==null?(0,n.jsx)(n.Fragment,{children:j?.a11yMatchingItemSelectableItem}):(0,n.jsxs)(n.Fragment,{children:[j?.a11yMatchingItemMatchWith," ",(0,n.jsx)(wn,{value:L})]}),fe=M()("matching-interaction-item",{draggable:!c,"draggable--dragging":!c&&S,droppable:c});return(0,n.jsx)("li",{className:fe,ref:N,role:"listitem",children:(0,n.jsxs)("button",{"aria-pressed":a||d?!0:void 0,className:G,"data-state":a?"active":void 0,onClick:S?void 0:R,onKeyDown:Z,ref:I,style:s?{height:s}:void 0,type:"button",children:[c?(0,n.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,n.jsx)(Lt,{className:"matching-interaction-piece-decoration",name:"grip-dots-vertical"}),e===2?(0,n.jsx)("span",{className:"matching-interaction-piece-jigsaw"}):null,(0,n.jsx)("span",{className:"matching-interaction-piece-content",children:(0,n.jsx)("span",{"data-matching-interaction-piece-content-inline":"",children:(0,n.jsx)(wn,{value:E})})}),(0,n.jsx)("span",{className:"visually-hidden-always",children:Y}),(0,n.jsx)("span",{className:"visually-hidden-always",children:Ee})]},o)})});var ss=i(59288);function jM({answers:t,columnBehavior:e,isActive:s,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:c,onChangeRows:d,prefersKeyboardNavigation:l}){const u=(0,as.A)(s),h=(0,as.A)(e),p=(0,as.A)(t),f=(0,as.A)(r),g=(0,Me.vU)(),[v,C]=ss.useState(void 0),[E,L]=ss.useState(void 0),[x,S]=ss.useState(void 0),[b,N]=ss.useState(!1),I=ss.useRef(null),j=ss.useRef(null),R=ss.useRef(null),P=ss.useRef(void 0),B=ss.useRef(void 0),[_,k]=ss.useState(()=>lu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),[J,Z]=ss.useState(()=>lu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})),G=ss.useMemo(()=>t.map(Ne=>({col:1,id:Ne.id,value:Ne.title})).toSorted((Ne,Ke)=>{const He=_.get(Ne.id)??1/0,dt=_.get(Ke.id)??1/0;return He-dt}),[t,_]),Y=ss.useMemo(()=>t.map(Ne=>({col:2,id:Ne.id,value:Ne.matchTitle})).toSorted((Ne,Ke)=>{const He=J.get(Ne.id)??1/0,dt=J.get(Ke.id)??1/0;return He-dt}),[t,J]),Ee=ss.useCallback(()=>{for(const Ce of I.current?.querySelectorAll('button:not([tabindex="-1"])')??[])Ce.setAttribute("tabindex","-1")},[]),fe=ss.useCallback(Ce=>{const Ne=Array.from(_),Ke=Array.from(J);if(e==="freezeSecond"){const He=new Array(Ke.length),dt=Ne.map(Wt=>Wt[0]).filter(Wt=>!(Wt in Ce));for(const[Wt,vs]of Object.entries(Ce)){const en=J.get(vs);He[en]=[Wt,en]}for(let Wt=0;Wt<He.length;Wt++)if(He[Wt]==null){const vs=dt.shift();He[Wt]=[vs,Wt]}const lt=new Map(He),Ht=$f(_,lt);Ht.length>0&&L(Ht),k(lt)}else{const He=new Array(Ne.length),dt=new Set(Object.values(Ce)),lt=Ke.map(vs=>vs[0]).filter(vs=>!dt.has(vs));for(const[vs,en]of Object.entries(Ce)){const Pn=_.get(vs);He[Pn]=[en,Pn]}for(let vs=0;vs<He.length;vs++)if(He[vs]==null){const en=lt.shift();He[vs]=[en,vs]}const Ht=new Map(He),Wt=$f(J,Ht);Wt.length>0&&S(Wt),Z(Ht)}},[e,_,J]),oe=ss.useCallback(Ce=>{P.current=Ce},[]),we=ss.useCallback(()=>{B.current==null&&(P.current=void 0)},[]),Ae=ss.useCallback(Ce=>{B.current=Ce},[]),_e=ss.useCallback(()=>{B.current=void 0},[]),Qe=ss.useCallback(Ce=>{if(P.current!=null){const Ke=structuredClone(r),He=Ce.col===1?Ce.id:P.current.id,dt=Ce.col===1?P.current.id:Ce.id;if(He in r&&delete Ke[He],Object.values(Ke).includes(dt)){for(const lt in Ke)if(Ke[lt]===dt){delete Ke[lt];break}}Ke[He]=dt,P.current=void 0,B.current=void 0,a(Ke)}},[r,a]),pt=ss.useCallback(Ce=>{const Ne=structuredClone(r);let Ke=!1,He=!1,dt=v;if(Ce.col===1&&Ce.id in r)delete Ne[Ce.id],Ke=!0,dt=null;else if(Ce.col===2&&Object.values(Ne).includes(Ce.id)){for(const lt in Ne)if(Ne[lt]===Ce.id){delete Ne[lt],Ke=!0,dt=null;break}}else v==null&&(dt={col:Ce.col,id:Ce.id,value:Ce.value},He=!0);if(v!=null)if(v.col===Ce.col)v.id===Ce.id?dt=null:dt={col:Ce.col,id:Ce.id,value:Ce.value};else{const lt=Ce.col===1?Ce.id:v.id,Ht=Ce.col===1?v.id:Ce.id;lt in r&&delete Ne[lt],Ne[lt]=Ht,Ke=!0,He=!0,dt=null}if(Ke&&a(Ne),v!==dt&&C(dt),He){const Ht=(Ce.col===1?R:j).current?.querySelector('button:not([aria-pressed="true"])');Ht&&(Ee(),Ht.removeAttribute("tabindex"),Ht.focus({preventScroll:!l}))}},[l,v,r,a,Ee]),ls=ss.useCallback((Ce,{col:Ne,index:Ke})=>{const He=Ce.currentTarget;let dt=!1,lt=null;switch(Ce.key){case"ArrowUp":dt=!0,lt=He.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":dt=!0,lt=He.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":dt=!0,lt=Ne===1?R.current?.children[Ke]?.firstElementChild:void 0;break;case"ArrowLeft":dt=!0,lt=Ne===2?j.current?.children[Ke]?.firstElementChild:void 0;break;case"Home":dt=!0,lt=He.closest("ul").firstElementChild.firstElementChild;break;case"End":dt=!0,lt=He.closest("ul").lastElementChild.firstElementChild;break}dt&&(Ce.preventDefault(),Ce.stopPropagation()),lt&&(Ee(),lt.removeAttribute("tabindex"),lt.focus())},[Ee]);ss.useEffect(()=>{r!==f&&Object.keys(r).length>0&&fe(r)},[fe,r,f]),ss.useEffect(()=>{const Ce=({shouldFocus:He})=>{const dt=v.col===1?j:R;Ee();const lt=dt.current.querySelector('button[data-state="active"]');lt?.removeAttribute("tabindex"),He&&lt?.focus(),C(null)},Ne=He=>{I.current?.contains(He.target)||Ce({shouldFocus:!1})},Ke=He=>{yn(He)&&v!=null&&Ce({shouldFocus:!0})};return v==null?(document.removeEventListener("mousedown",Ne),document.removeEventListener("keydown",Ke)):(document.addEventListener("mousedown",Ne),document.addEventListener("keydown",Ke)),()=>{document.removeEventListener("mousedown",Ne),document.removeEventListener("keydown",Ke)}},[v,Ee]);const nt=ss.useCallback(()=>{const Ce=Array.from(I.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]"));if(Ce.length===0)return;const Ne=Ce[0].closest("button");let Ke=0,He;if(Ne){const lt=window.getComputedStyle(Ne),Ht=parseFloat(lt.paddingBlockStart)+parseFloat(lt.paddingBlockEnd),Wt=parseFloat(lt.borderTopWidth)+parseFloat(lt.borderBottomWidth);Ke=Ht+Wt,He=parseFloat(lt.minHeight)}const dt=Ce.reduce((lt,Ht)=>Math.max(lt,Ht.scrollHeight+Ke),0);He&&He>=dt?c(void 0):c(dt)},[c]);return ss.useEffect(()=>{(!u&&s||p!==t)&&nt()},[u,s,t,p,nt]),ss.useEffect(()=>{const Ce=I.current?.closest(".quiz-card");let Ne;return Ce!=null&&(Ne=new ResizeObserver(()=>{nt()}),Ne.observe(Ce)),()=>{Ce!=null&&Ne!=null&&Ne.unobserve(Ce)}},[nt]),ss.useEffect(()=>{let Ce,Ne;return E&&(Ce=setTimeout(()=>{L(void 0)},1e3)),x&&(Ne=setTimeout(()=>{S(void 0)},1e3)),()=>{clearTimeout(Ce),clearTimeout(Ne)}},[E,x]),ss.useEffect(()=>{b&&h!==e&&(a({}),fe({}),C(void 0),k(lu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),Z(lu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})))},[b,e,h,t,a,fe]),ss.useEffect(()=>{if(G.length<=0)return;const Ce=G.map((Ne,Ke)=>[Ne,Y[Ke]]);d(Ce)},[G,Y,d]),ss.useEffect(()=>{N(!0)},[]),(0,n.jsxs)("div",{className:"matching-interaction",ref:I,children:[(0,n.jsx)("ul",{"aria-label":g?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1",ref:j,role:"list",children:G.map((Ce,Ne)=>{const Ke=Ce.id in r;return(0,n.jsx)(Kf,{col:1,height:o,id:Ce.id,index:Ne,isActive:v?.col===1&&v?.id===Ce.id,isFrozen:e==="freezeFirst",isMatched:Ke,isMoved:E?.map(He=>He.id).includes(Ce.id),onClick:pt,onDragStart:oe,onDragEnd:we,onDrop:Qe,onDropZoneEnter:Ae,onDropZoneLeave:_e,onKeyDown:ls,value:Ce.value,valueOtherColumnActive:v?.col===2?v?.value:void 0,valueOtherColumnMatch:Ke?Y[Ne]?.value:void 0},Ce.id)})}),(0,n.jsx)("ul",{"aria-label":g?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2",ref:R,role:"list",children:Y.map((Ce,Ne)=>{const Ke=Ce.id in r;return(0,n.jsx)(Kf,{col:2,height:o,id:Ce.id,index:Ne,isActive:v?.col===2&&v?.id===Ce.id,isFrozen:e==="freezeSecond",isMatched:Object.values(r).includes(Ce.id),isMoved:x?.map(He=>He.id).includes(Ce.id),onClick:pt,onDragStart:oe,onDragEnd:we,onDrop:Qe,onDropZoneEnter:Ae,onDropZoneLeave:_e,onKeyDown:ls,value:Ce.value,valueOtherColumnActive:v?.col===1?v?.value:void 0,valueOtherColumnMatch:Ke?G[Ne]?.value:void 0},Ce.id)})})]})}const lu=({answers:t,columnBehavior:e,columnBehaviorToShuffle:s})=>{let o=t.map(r=>r.id);return e===s&&(o=(0,If.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function $f(t,e){const s=[];for(const[o,r]of t){const a=e.get(o);a!==r&&s.push({id:o,from:r,to:a})}return s}var du=i(59288);function Qf({columnBehavior:t="freezeSecond",...e}){const[s,o]=du.useState([]),[r,a]=du.useState(void 0),c=du.useCallback(l=>{o(l)},[]),d=du.useCallback(l=>{a(l)},[]);return e.isComplete?(0,n.jsx)(bM,{...e,columnBehavior:t,itemHeight:r,rows:s}):(0,n.jsx)(jM,{...e,columnBehavior:t,itemHeight:r,onChangeItemHeight:d,onChangeRows:c})}const AM=({allowTabNavigation:t,color:e,correctId:s,errorMessageId:o,isComplete:r,isCorrect:a,isReduceMotion:c,labels:d,onChange:l,onEnterToSubmit:u,options:h=[],questionHtmlId:p,renderOptionText:f,revealAnswers:g,selectedIndex:v})=>(0,n.jsx)(Zd,{"aria-invalid":o?!0:void 0,"aria-labelledby":[p,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:h.map((C,E,L)=>(0,n.jsx)(RM,{allowTabNavigation:t,color:e,id:C.id,index:E,isComplete:r,isCorrect:a,isCorrectOption:s===C.id,isFirst:E===0,isFresh:v===-1||v===null||v===void 0,isLast:E===L.length-1,isReduceMotion:c,isSelected:v===E,labels:d,onChange:l,onEnterToSubmit:u,questionHtmlId:p,renderOptionText:f,revealAnswers:g,title:C.title},C.id))}),RM=({allowTabNavigation:t,color:e,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:c,isFresh:d,isSelected:l,isReduceMotion:u,labels:h,onChange:p,onEnterToSubmit:f,questionHtmlId:g,renderOptionText:v,revealAnswers:C,title:E})=>{const[L]=(0,m.useState)(()=>rt()("qmc-")),x=(0,m.useRef)(void 0),S=(0,Kt.A)(l),b=!!r,N=t&&(l||d&&o===0)?0:Ad,I=C===yt.iV.ALL,j=C==yt.iV.INCORRECT,R=I||j&&a,P=I||j&&a||j&&!a&&l,B=r&&c&&R,_=r&&!c&&P,k=B||_,J=k?`${L}-result`:void 0,Z=M()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":B,"is-incorrect":_,"is-selected":l}),G=M()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":l&&!r}),Y=M()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":B}),Ee=M()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":_}),fe=M()("quiz-multiple-choice-option__border"),oe=(0,m.useCallback)(_e=>{va(_e)&&f(_e)},[f]),we=(0,m.useCallback)(()=>{p({selectedIndex:o})},[o,p]),Ae=r?void 0:oe;return(0,m.useEffect)(()=>{t&&!S&&l&&x.current&&x.current.focus({preventScroll:u})},[t,l,u,S]),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{"aria-describedby":J,className:Z,ref:x,children:[(0,n.jsx)("input",{type:"radio",name:g,onKeyDown:Ae,tabIndex:N,disabled:b,className:"quiz-multiple-choice-option__input",onChange:r?void 0:we}),(0,n.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:e},children:[(0,n.jsx)(c2,{className:G}),(0,n.jsx)(i2,{className:Y}),(0,n.jsx)(l2,{"aria-hidden":"true",className:Ee,overrideStyle:!0})]}),(0,n.jsx)("div",{className:fe}),(0,n.jsx)("div",{className:"quiz-multiple-choice-option__text",children:v({optionId:s,title:E})})]}),k&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:J,children:[l&&c&&h?.a11yQuizReviewCorrectlySelected,l&&!c&&h?.a11yQuizReviewIncorrectlySelected,!l&&c&&h?.a11yQuizReviewIncorrectlyUnselected,!l&&!c&&h?.a11yQuizReviewCorrectlyUnselected]})]})},Zf=AM,OM=({allowTabNavigation:t,correctIds:e=[],errorMessageId:s,isComplete:o,isCorrect:r,labels:a,onChange:c,onEnterToSubmit:d,options:l=[],questionHtmlId:u,renderOptionText:h,revealAnswers:p,selectedIndices:f=[]})=>(0,n.jsx)("div",{"aria-labelledby":[u,s].filter(Boolean).join(" "),"aria-required":"true",role:"group",children:(0,n.jsx)("ul",{children:l.map((g,v)=>(0,n.jsx)(PM,{allowTabNavigation:t,errorMessageId:s,id:g.id,index:v,isComplete:o,isCorrect:r,isCorrectOption:on()(g.id,e),isSelected:on()(v,f),labels:a,onChange:c,onEnterToSubmit:d,renderOptionText:h,revealAnswers:p,title:g.title},g.id))})}),PM=({allowTabNavigation:t,errorMessageId:e,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:c,isSelected:d,labels:l,onChange:u,onEnterToSubmit:h,renderOptionText:p,revealAnswers:f,title:g})=>{const[v]=(0,m.useState)(()=>rt()("qmr-")),C=r&&f===yt.iV.ALL,E=C?`${v}-result`:void 0,L=!!r,x=t?0:Ad,S=f===yt.iV.ALL,b=f==yt.iV.INCORRECT,N=S||b&&a||b&&!a&&d,I=M()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":d,"quiz-multiple-response-option--correct":r&&c&&N,"quiz-multiple-response-option--incorrect":r&&!c&&N}),j=M()("quiz-multiple-response-option__border"),R=(0,m.useCallback)(_=>{va(_)&&h(_)},[h]),P=(0,m.useCallback)(()=>{u({optionIndex:o})},[o,u]),B=r?void 0:R;return(0,n.jsxs)("li",{children:[(0,n.jsxs)("label",{className:I,"aria-describedby":E,children:[(0,n.jsx)("input",{"aria-describedby":e||void 0,"aria-invalid":e?!0:void 0,type:"checkbox",onKeyDown:B,tabIndex:x,disabled:L,className:"quiz-multiple-response-option__input",onChange:r?void 0:P}),(0,n.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,n.jsx)(i2,{className:"quiz-multiple-response-option__check"}),(0,n.jsx)(l2,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",overrideStyle:!0,height:"8",width:"8"})]}),(0,n.jsx)("div",{className:j}),(0,n.jsx)("div",{className:"quiz-multiple-response-option__text",children:p({optionId:s,title:g})})]}),C&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:E,children:[d&&c&&l?.a11yQuizReviewCorrectlyChecked,d&&!c&&l?.a11yQuizReviewIncorrectlyChecked,!d&&c&&l?.a11yQuizReviewIncorrectlyUnchecked,!d&&!c&&l?.a11yQuizReviewCorrectlyUnchecked]})]})},Yf=OM;var MM=i(1034),pl=i.n(MM),DM=i(55414),Un=i.n(DM),kM=i(58488),dh=i.n(kM),wM=i(77504),Yo=i.n(wM);const Xf=pl()(Un()),BM=Qt()(Ue()("correct",!0)),_M=Se()(sn()(ps()(-1),We()(0)),Ts()(Ue()("correct",!0))),ade=t=>compose(contains(t),uu),UM=({answers:t,fillInValue:e,isCaseSensitive:s,getL10nValue:o})=>{const r=s?ma():Se()(ma(),Oa()),a=t.map(c=>r(o(c.title)??""));return on()(r(e),a)},HM=({answers:t,selectedIndices:e})=>ps()(Yo()(Xf,e),Se()(Yo()(Xf),ws()(Se()(Eo()(Ts())(t),Ue()("id"))),uu)(t)),FM=t=>({MATCHING:Un(),FILL_IN_THE_BLANK:uh,MULTIPLE_CHOICE:Un(),MULTIPLE_RESPONSE:Un()})[t],uu=Se()(Tt()("id"),BM),zM=Se()(As(),uu),uh=Qt()(Ue()("correct",!0)),VM=Se()(Pe()("id"),As()),ide=Se()(us(),dh()),cde={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,n.jsx)(r4,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,n.jsx)(a4,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,n.jsx)(v0,{})},MATCHING:{label:"Matching",icon:(0,n.jsx)(o4,{})}};var lde=i(52988),WM=i(84136),hh=i.n(WM),GM=i(77170),yo=i.n(GM),KM=i(97223),$M=i.n(KM),QM=i(82501),Jf=i.n(QM),ZM=i(18448),hu=i.n(ZM),YM=i(40132),XM=i.n(YM),JM=i(66919),qM=i.n(JM),eD=i(84761),tD=i.n(eD),sD=i(34700),nD=i.n(sD),oD=i(39010),qf=i.n(oD),rD=i(54569),aD=i.n(rD),iD=i(79975),cD=i.n(iD),lD=i(62599),mh=i.n(lD),dD=i(13219),ph=i.n(dD),uD=i(59441),e6=i.n(uD),hD=i(30041),mD=i.n(hD),dde=i(77406);const pD=(...t)=>Se()(...mD()(1,t))(Do()(t)),ude=(t,e)=>cond(e)(t),fh=(t,...e)=>St()(...e)(t),hde=(t,...e)=>pipeP(...e)(t),t6=t=>e=>{const{folders:s}=t,{id:o}=e,r=filter(propEq("parentId",o),s),a=map(t6(t),r);return[e,...flatten(a)]},fD=t=>(e,{id:s})=>pipeWith(t,filter(propEq("folderId",s)),concat(e)),gh=e6()(Se()(Oa(),Pe()("title"))),s6=t=>e=>{const s=qe()(Ue()("id",e),t),o=fh(t,cD()(Fs()(Ue()("parentId",e),St()(Pe()("id"),s6(t)),We()([]))),gh);return st()("subfolders",o,s)},gD=({folders:t,ids:e})=>pD(gh,ws()(s6(t)),e),vD=t=>(e,s)=>t[s.parentId]?e:Qo()(s,e),CD=t=>{const e=mh()(Pe()("id"),t||[]);return Nn()(vD(e),[],t)},xD=St()(CD,Tt()(["id"])),ED=St()(t=>({folders:t,ids:xD(t)}),gD),n6=(t,e,s=[])=>{const o=qe()(Ue()("id",t),e),{parentId:r}=o||{},a=o?[o,...s]:s;return r?n6(r,e,a):a},mde=({category:t,folders:e,...s})=>pipe(t6({folders:e}),o=>({folders:o,[t]:reduce(fD(s[t]),[],o)})),vh="owner",o6="manager",Ch="editor",r6="viewer",TD="shared",a6=[r6,Ch,o6,vh],mu=({effectiveRole:t,requiredRole:e})=>{const s=ph()(t,a6),o=ph()(e,a6);return s>=o},SD=t=>{const{allowViewer:e,effectiveRole:s,id:o,type:r}=t;return wt()(o)||!(r===TD)||mu({effectiveRole:s,requiredRole:e?r6:Ch})};var LD=i(62116),i6=i.n(LD),bD=i(22423),Hn=i.n(bD);const yD=Rs()([[i6()(String),Un()],[wt(),We()(void 0)],[ur()("displayName"),Pe()("displayName")],[ur()("name"),Pe()("name")],[hn(),We()("Component")]]),ID=Ps()(["enableClickOutside","hideScroll","onClickOutside","preventDefault","stopPropagation"]);class xh extends m.Component{static defaultProps={onClickOutside:Function.prototype,preventDefault:!0,stopPropagation:!0};constructor(...e){super(...e),this.onBodyMouseDownDelegate=this.onBodyMouseDown.bind(this),this.onBodyClickDelegate=this.onBodyClick.bind(this),this.containerRef=ie().createRef(),this.addDomEvents()}componentWillUnmount(){this.removeDomEvents()}onBodyClick(e){const{onClickOutside:s,preventDefault:o,stopPropagation:r}=this.props,{target:a}=e;this.shouldClickOutside(a)&&(o&&e.preventDefault(),r&&e.stopPropagation(),s(e)),this.cancel=!1}onBodyMouseDown(e){this.cancel=!this.shouldClickOutside(e.target)}render(){const{Child:e,props:s}=this;return(0,n.jsx)(e,{...ID(s),ref:this.containerRef})}setupDomEvents(e){const s=e?"addEventListener":"removeEventListener";document.body[s]("click",this.onBodyClickDelegate,!0),document.body[s]("mousedown",this.onBodyMouseDownDelegate,!0)}shouldClickOutside(e){const{enableClickOutside:s}=this.props,o=this.containerRef.current;return s&&!this.cancel&&o!==null&&o!==e&&!o.contains(e)}}xh.propTypes={enableClickOutside:A().bool,onClickOutside:A().func.isRequired,preventDefault:A().bool,stopPropagation:A().bool};const{prototype:Eh}=xh;Object.assign(Eh,{addDomEvents:Hn()(Eh.setupDomEvents,[!0]),removeDomEvents:Hn()(Eh.setupDomEvents,[!1])});const Th=t=>class extends xh{static get displayName(){return`ClickableOutside(${yD(t)})`}get Child(){return t}},ND=Th("div"),pde=Th("span"),fde=Th("form"),Kr=q("bc-dropdown"),pu=new Map,c6=t=>t==null?0:t.offsetLeft+c6(t.offsetParent),jD=()=>{for(const t of pu.values())t()},l6=Vr()(jD,250);window.addEventListener("resize",l6),window.addEventListener("orientationchange",l6);class fl extends m.Component{static defaultProps={align:"center"};constructor(...e){super(...e),this.posRef=ie().createRef(),this.update(this.props)}componentDidUpdate(e){this.update(this.props,e)}componentWillUnmount(){pu.delete(this)}fitOnScreen(){const{props:{fit:e},posRef:{current:s}}=this;if(e&&s!=null){Object.assign(s.style,{left:"",right:""});const r=c6(s)+s.offsetWidth-window.innerWidth+20,[a,c]=r>0?["auto","0"]:["",""];Object.assign(s.style,{left:a,right:c})}}render(){const{active:e,align:s,children:o,className:r,onClose:a,role:c="menu",slideIn:d,...l}=this.props,u=Kr("pos",{inactive:!e,active:e,left:s!=="right",right:s==="right"}),h=Kr({inactive:!e,active:e,alignLeft:s==="left",alignCenter:s==="center",alignRight:s==="right",slideIn:d,inPlace:!d});return(0,n.jsx)("div",{className:r||Kr("wrap"),children:(0,n.jsx)("div",{ref:this.posRef,className:u,children:(0,n.jsx)(ND,{"aria-hidden":!e,className:h,enableClickOutside:e,onClickOutside:a,role:c,...Ps()(["fit"],l),children:o})})})}update({fit:e},{fit:s}={}){e&&!s?pu.set(this,this.fitOnScreen.bind(this)):!e&&s&&pu.delete(this)}}Object.assign(fl.prototype,{componentDidMount:fl.prototype.fitOnScreen,componentDidUpdate:fl.prototype.fitOnScreen}),fl.propTypes={active:A().bool,align:A().string,children:A().node,className:A().string,fit:A().bool,onClose:A().func,role:A().string,slideIn:A().bool};const AD=t=>(0,n.jsx)("div",{className:"dropdownItem",role:"menuitem",...t}),RD=q("breadcrumb"),d6=()=>(0,n.jsx)("span",{className:RD("caret"),children:(0,n.jsx)(GC,{})}),u6=({onClick:t,option:e})=>{const{title:s}=e,o=(0,m.useCallback)(()=>t(e),[t,e]),r={className:Kr("item"),onClick:o};return(0,n.jsx)(AD,{...r,children:(0,n.jsx)("span",{className:Kr("label"),children:s})})};u6.propTypes={onClick:A().func.isRequired,option:A().shape({title:A().string.isRequired})};const OD=u6,h6=(0,m.forwardRef)((t,e)=>{const[s,o]=(0,m.useState)(!1),{onClick:r,options:a}=t,c=(0,m.useCallback)(()=>o(!1),[o]),d=(0,m.useCallback)(()=>o(!0),[o]),l=(0,m.useCallback)(Se()(c,r),[r,c]),u=Kr("caret",{active:s}),h={active:s,align:"left",className:Kr("wrap").toString(),onClose:c};return(0,n.jsxs)("li",{className:"breadcrumb",ref:e,role:"listitem",children:[(0,n.jsxs)("button",{type:"button",className:Kr("trigger"),onClick:d,children:[(0,n.jsx)(C0,{}),(0,n.jsx)("span",{className:u})]}),(0,n.jsx)(fl,{...h,children:a.map((p,f)=>(0,n.jsx)(OD,{onClick:l,option:p},`${f}-${p.title}`))}),(0,n.jsx)(d6,{})]})});h6.propTypes={onClick:A().func.isRequired,options:A().arrayOf(A().object).isRequired};const PD=h6,m6=({menu:t,...e})=>(0,n.jsx)(t,{...Ls()(["category","depth","id","isDeleted","type","effectiveRole"],e)});m6.propTypes={menu:A().elementType.isRequired};const MD=m6,p6=q("breadcrumb"),f6=t=>{const{active:e,allowViewer:s=!1,effectiveRole:o,id:r,label:a,onClick:c,showCaret:d,showMenu:l,type:u}=t,h=wt()(r),p=SD({allowViewer:s,effectiveRole:o,id:r,type:u}),f=(0,m.useCallback)(E=>{p&&c(E)},[p,c]),g=(0,m.useCallback)(E=>{E.keyCode===Kp&&f(E)},[f]),C={className:p6({active:e,root:(h||r==="deleted")&&e,disabled:!p}),onClick:f,onKeyPress:g,role:"listitem","aria-current":e?"page":null};return(0,n.jsxs)("li",{...C,children:[(0,n.jsx)("span",{className:p6("label"),children:a}),l&&e&&(0,n.jsx)(MD,{...t}),d&&!e&&(0,n.jsx)(d6,{})]})};f6.propTypes={active:A().bool,allowViewer:A().bool,category:A().string,effectiveRole:A().string,id:A().any,label:A().string.isRequired,menu:A().elementType,onClick:A().func.isRequired,showCaret:A().bool,showMenu:A().bool,type:A().string};const DD=({allowViewer:t,folder:e,index:s,breadcrumbs:o,category:r,menu:a,onClick:c})=>{const{id:d,deleted:l,effectiveRole:u,title:h,type:p}=e,f=o.length,g=(0,m.useCallback)(()=>c(e),[e,c]);return(0,n.jsx)(f6,{active:s===f-1,allowViewer:t,category:r,depth:s,effectiveRole:u,id:d,isDeleted:l,label:h,onClick:g,menu:a,showMenu:f>1,showCaret:f>1,type:p},s)},g6=16,kD=54,v6=Jf()(hu()),C6=t=>{const e=(0,m.useRef)(null),s=(0,m.useRef)(null),o=aD()(),{active:r,className:a,folders:c,root:d}=t,l=BD(r,c,d),u={...t,active:r,breadcrumbs:l,dropdownRef:s,wrapperRef:e};return(0,m.useEffect)(WD(o),[]),(0,m.useLayoutEffect)(FD(u)),(0,n.jsxs)("ol",{className:M()("breadcrumbs",a),ref:e,"aria-label":"Breadcrumb",role:"list",children:[(0,n.jsx)(UD,{...u}),l.map((h,p)=>(0,n.jsx)(DD,{folder:h,index:p,...u},p))]})},wD=t=>({breadcrumbs:e,resume:s},{offsetWidth:o})=>St()(Nn()(Bi(),0),Bi()(o),Bi()(g6),Fs()(XM()(t),We()({breadcrumbs:[...e,o],resume:s}),We()({breadcrumbs:e,resume:!1})))(e),BD=(t,e,s)=>!t||t==="deleted"?[s]:[s,...n6(t,e)],_D=(t,e)=>fh(e,nD(),tD()(Ue()("resume",!0),wD(t),{breadcrumbs:[],resume:!0}),Pe()("breadcrumbs"),Fs()(Yt(),We()([e.length-1]),St()(us(),sh()(e.length),Eo()(qM())(e.length)))),UD=({breadcrumbs:t,dropdownRef:e,onClick:s})=>(0,n.jsx)(PD,{onClick:s,options:t,ref:e}),HD=t=>{const{wrapperRef:e}=t,s=e.current.children;for(let o=0;o<s.length;o++)s[o].removeAttribute("style")},FD=t=>()=>{HD(t);const{dropdownRef:e,wrapperRef:s}=t,o=e.current,r=s.current,a=qf()(r.children),c=o.children[1].children[0].children[0].children,d=r.offsetWidth-kD-g6,l=_D(d,a),u=a.length>l.length;o.style.display=u?"inline-flex":"none",v6(zD(l),a),v6(VD(l),c)},zD=t=>(e,s)=>{e.style.display=t.includes(s)?"inline-flex":"none"},VD=t=>(e,s)=>{e.style.display=t.includes(s)?"none":"block"},WD=t=>()=>(window.addEventListener("resize",t),()=>window.removeEventListener("resize",t));C6.propTypes={active:A().any,category:A().string,folders:A().arrayOf(A().object).isRequired,menu:A().elementType,onClick:A().func.isRequired,root:A().object.isRequired};const Cde=(0,m.memo)(C6);var GD=i(93502),KD=i.n(GD),$D=i(89685),QD=i.n($D);const x6=q("folder-tree"),E6=({isOpen:t,onFolderToggle:e})=>{const s=x6("folder","caret",{open:t}),o={className:x6("folder","caretWrap").toString(),onClick:e,onKeyPress:jd(e),role:"button"};return(0,n.jsx)("div",{...o,children:(0,n.jsx)("div",{className:s})})};E6.propTypes={isOpen:A().bool,onFolderToggle:A().func};const T6=E6,S6=q("folder-tree"),L6=({active:t,category:e,itemId:s,menu:o,setMenuActive:r,type:a})=>{const c=(0,m.useMemo)(()=>t===s,[t,s]),d=S6("folderOptions",{active:c}),l=(0,m.useCallback)(()=>r(!1),[r]),u=(0,m.useCallback)(()=>r(!0),[r]);return(0,n.jsx)("div",{className:d,children:(0,n.jsx)(o,{category:e,className:S6("folderMenu").toString(),id:s,onClose:l,onOpen:u,type:a})})},b6=q("folder-tree"),y6=t=>{const{active:e,activeClassName:s,children:o,className:r,forceHover:a,hasItems:c,itemId:d,itemType:l,onClick:u,onDrop:h,onKeyPress:p,paddingLeft:f}=t,[g,v]=(0,m.useState)(!1),C=!!h&&l==="folder",E=(0,m.useMemo)(()=>e===d,[e,d]),L=()=>v(!0),x=I=>{v(!1),h?.(I)},S=I=>{I.preventDefault()},b=()=>v(!1),N=M()(r,b6("folder",{active:E,forceHover:a,hideCaret:!c,dndEnabled:C}).toString(),{[s]:E});return(0,n.jsxs)("div",{className:N,onClick:u,onKeyPress:p,role:"button",style:{paddingLeft:f},tabIndex:"0",onDragEnter:L,children:[C&&g&&(0,n.jsx)("div",{className:b6("folder","drop-mask"),onDragOver:S,onDrop:x,onDragLeave:b}),o]})},Sh=q("folder-tree"),ZD=t=>{const{disableRootMenu:e,folders:s,isOpen:o,menu:r,onDrop:a,onFolderClick:c,onFolderToggle:d,root:l}=t,[u,h]=(0,m.useState)(!1),{id:p,title:f,icon:g}=l,v=(0,m.useCallback)(()=>c(l),[c,l]),C=(0,m.useCallback)(jd(v),[v]),E=(0,m.useCallback)(a?.(p),[a,p]),L=Ls()(["active","activeClassName","className"],t),x=Ls()(["active","activeClassName","category","className","menu","type"],t);return(0,n.jsxs)(y6,{...L,forceHover:u,hasItems:!Yt()(s),itemId:p,itemType:"folder",onClick:v,onDrop:E,onKeyPress:C,children:[(0,n.jsx)(T6,{isOpen:o,onFolderToggle:d}),g&&(0,n.jsx)("div",{className:Sh("folderIcon"),children:g}),(0,n.jsx)("div",{className:Sh("folderNameWrap"),children:(0,n.jsx)("div",{className:Sh("folderName"),children:f})}),!e&&r&&(0,n.jsx)(L6,{...x,itemId:p,setMenuActive:h})]})},Sde=40,I6=(t,e=!0)=>Se()(sn()(We()(e),Sa()(Ue()("deleted",!0))),Qt()(Ue()("folderId",t))),N6=(t,e,s)=>o=>{Se()(s,rh()([t]))(e),o.stopPropagation()},j6=(t,e,s)=>o=>{Se()(s,Qo()(t))(e),o.stopPropagation()},YD=t=>({editor:mu({effectiveRole:t,requiredRole:Ch}),manager:mu({effectiveRole:t,requiredRole:o6}),owner:mu({effectiveRole:t,requiredRole:vh})}),Lde=(t,e,s)=>{const{authorId:o}=t,r=o===s,a=d=>r||d,c=Lh(e);return pipe(omit(["canChangePermissions","canMoveTo"]),evolve({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(c)},Lh=t=>{const{effectiveRole:e,type:s}=t||[],o=s!==vl?vh:e,{editor:r,manager:a,owner:c}=YD(o);return{canChangePermissions:a,canCreate:r,canDelete:c,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:c}},XD=21,fu=q("folder-tree"),bh=t=>{const{id:e,index:s=0,itemIcon:o,item:r,items:a,itemType:c,menu:d,onDrop:l,onFolderClick:u,onItemClick:h,openFolders:p,setOpenFolders:f,showItems:g}=t,{id:v,title:C,subfolders:E,type:L}=r,[x,S]=(0,m.useState)(!1),[b,N]=(0,m.useState)(p.includes(v));(0,m.useEffect)(()=>{N(p.includes(v))},[v,p]);const I=(0,m.useCallback)(N6(v,p,f),[v,p,f]),j=(0,m.useCallback)(j6(v,p,f),[v,p,f]),R=(0,m.useCallback)(()=>c==="folder"?u(r):h(r),[r,u,h,c]),P=(0,m.useCallback)(Lh(r).canCreate?l?.(r.id):null,[r,l]),B=g?I6(v)(a):[],_=(0,m.useMemo)(()=>`${(s+2)*XD}px`,[s]),k=(0,m.useMemo)(()=>b?I:j,[b,I,j]),J=fu("folderWrap",{open:b}),Z=$p(E)||$p(B),G=(0,m.useCallback)(jd(R),[jd,R]),Y=L==="team"?m2:C0,Ee=Ls()(["active","activeClassName","className"],t),fe=Ls()(["active","activeClassName","category","className","menu","type"],t),oe=Ls()(["active","activeClassName","category","className","disableRootMenu","folders","id","items","itemIcon","menu","onDrop","onFolderClick","onItemClick","openFolders","root","setOpenFolders","showItems","type"],t);return(0,n.jsxs)("div",{id:`${e}-qbf-${v}`,className:J,children:[(0,n.jsxs)(y6,{...Ee,forceHover:x,hasItems:Z,itemId:v,itemType:c,onClick:R,onKeyPress:G,paddingLeft:_,onDrop:P,children:[(0,n.jsx)(T6,{isOpen:b,onFolderToggle:k}),(0,n.jsx)("div",{className:fu("folderIcon").toString(),children:c==="folder"?(0,n.jsx)(Y,{}):(0,n.jsx)(o,{})}),(0,n.jsx)("div",{className:fu("folderNameWrap").toString(),children:(0,n.jsx)("div",{className:fu("folderName").toString(),children:C})}),d&&(0,n.jsx)(L6,{...fe,itemId:v,setMenuActive:S})]}),E&&E.map(we=>(0,n.jsx)(bh,{...oe,item:we,index:s+1,itemType:"folder"},we.id)),B&&B.map(we=>(0,n.jsx)(bh,{...oe,item:we,index:s+1,itemType:"item"},we.id))]},v)},A6=bh,JD=q("folder-tree"),qD=t=>{const e=fh(t,Tt()("id"));return Qt()(s=>s.folderId===null||!on()(s.folderId,e))},ek=t=>{const{folders:e,id:s,items:o,openFolders:r,root:a,setOpenFolders:c,showItems:d}=t,l=(0,m.useMemo)(()=>ED(e),[e]),u=(0,m.useMemo)(()=>qD(e)(o),[e,o]),[h,p]=(0,m.useState)(r.includes("root")),f=d?I6(s)(o):[];(0,m.useEffect)(()=>{p(r.includes("root"))},[r]);const g=(0,m.useCallback)(N6("root",[],c),[s,r,c]),v=(0,m.useCallback)(j6("root",r,c),[f,s,r,c]),C=JD("folderWrap",{open:h}),E=Ls()(["active","activeClassName","category","className","disableRootMenu","folders","id","items","itemIcon","menu","onDrop","onFolderClick","onItemClick","openFolders","root","setOpenFolders","showItems","type"],t);return(0,n.jsxs)("div",{id:`${s}-qbf-root`,className:C,children:[a&&(0,n.jsx)(ZD,{onFolderToggle:h?g:v,isOpen:h,...E}),l.map(L=>(0,n.jsx)(A6,{...E,item:L,itemType:"folder"},L.id)),d&&u&&u.map(L=>(0,n.jsx)(A6,{...E,item:L,itemType:"item"},L.id))]})},tk=(0,m.memo)(ek),sk=A().shape({id:A().string.isRequired,folderId:A().string,title:A().string}),nk=A().shape({id:A().string.isRequired,parentId:A().string,title:A().string,type:A().oneOf(["team","personal"])}),ok=A().shape({id:A().string,title:A().string.isRequired,icon:A().node}),rk={active:A().any,activeType:A().oneOf(["team","personal"]),activeClassName:A().string,category:A().string,className:A().string,disableRootMenu:A().bool,folders:A().arrayOf(nk).isRequired,id:A().string.isRequired,initialFolders:A().arrayOf(A().string),items:A().arrayOf(sk),itemIcon:A().elementType,menu:A().elementType,onDrop:A().func,onFolderClick:A().func.isRequired,onItemClick:A().func,openToActive:A().bool,reportOpenFolders:A().func,root:ok,showItems:A().bool,type:A().oneOf(["team","personal"]),viewingTree:A().bool},ak=q("folder-tree"),R6=(t,e,s=[])=>{if(t==null||t==="personal"||t==="team"||t==="deleted")return s;if(!e||e.length===0)return[];const o=qe()(Ue()("id",t),e);return o===void 0?[]:R6(o.parentId,e,[o,...s])},ik=t=>Qt()(e=>e==="root"||t.includes(e)),ck=t=>{const{active:e,activeClassName:s,activeType:o,category:r,className:a,disableRootMenu:c,folders:d,id:l,initialFolders:u=["root"],itemIcon:h,items:p=[],menu:f,onDrop:g,onFolderClick:v,onItemClick:C,openToActive:E=!1,reportOpenFolders:L=()=>{},root:x,root:{deleted:S},showItems:b=!1,type:N,viewingTree:I=!0}=t,j={activeClassName:s,category:r,className:a,disableRootMenu:c,folders:d,id:l,items:p,itemIcon:h,menu:f,onDrop:g,onFolderClick:v,onItemClick:C,root:x,showItems:b,type:N},[R,P]=(0,m.useState)(I?u:[]),B=N===o?e:!1,_=(0,m.useMemo)(()=>B,[B]),[k,J]=(0,m.useState)(!1);(0,m.useEffect)(()=>{L(S?"deleted":N,R)},[S,R,L,N]);const Z=E?R6(_,d):[];return(0,m.useEffect)(()=>{J(!1)},[_]),(0,m.useEffect)(()=>{E&&!k&&(Se()(P,ik(Tt()("id",d)),QD(),sn()(G=>G.length>0,Qo()("root")),cl(),Eo()(Qo())(R),KD(),Tt()("id"))(Z),J(!0))},[E,k,R,Z,d,P]),(0,n.jsx)("div",{className:ak("wrap"),children:(0,n.jsx)(tk,{...j,active:_,openFolders:R,setOpenFolders:P})})};ck.propTypes=rk;const bde=null,O6=({buttonText:t,onNewClick:e})=>(0,n.jsx)("div",{className:"folder",children:(0,n.jsxs)("button",{className:"folder__button",type:"button",onClick:e,children:[(0,n.jsx)("div",{className:M()("folderIcon","addIcon"),children:(0,n.jsx)(kC,{height:12,width:12})}),(0,n.jsx)("span",{className:"label",children:(0,n.jsx)("div",{children:t})})]})});O6.propTypes={buttonText:A().string.isRequired,onNewClick:A().func.isRequired};const lk=O6,yh=q("folder"),P6=({onClick:t,folder:e,onDrop:s})=>{const[o,r]=(0,m.useState)(!1),a=!!s,{title:c}=e,d=(0,m.useCallback)(()=>{t(e)},[e,t]),l=()=>r(!0),u=f=>f.preventDefault(),h=f=>{r(!1),s?.(f)},p=()=>r(!1);return(0,n.jsxs)("div",{className:yh(),onDragEnter:a?l:()=>{},children:[a&&o&&(0,n.jsx)("div",{className:yh("drop-mask"),onDragOver:u,onDrop:h,onDragLeave:p}),(0,n.jsxs)("button",{type:"button",className:yh("button",{"drag-over":o}),onClick:d,children:[(0,n.jsx)("div",{className:"folderIcon",children:e.type==="shared"?(0,n.jsx)(m2,{height:21,width:21}):(0,n.jsx)(C0,{height:21,width:21})}),(0,n.jsx)("span",{className:"label",children:(0,n.jsx)("div",{children:c})})]})]})};P6.propTypes={className:A().string,folder:A().object.isRequired,onClick:A().func.isRequired};const dk=P6,Ih=q("folder-list"),uk=t=>{const{buttonText:e,label:s,showButton:o,onClick:r,onNewClick:a,onDrop:c}=t,d=gh(t.folders);return(0,n.jsxs)("div",{className:Ih("wrap"),children:[(0,n.jsx)("span",{className:Ih("wrap","label"),children:s}),(0,n.jsxs)("div",{className:Ih("wrap","list"),children:[d.map((l,u)=>(0,n.jsx)(dk,{onClick:r,folder:l,onDrop:Lh(l).canCreate?c?.(l.id):null},`${u}-${l.id}`)),o&&(0,n.jsx)(lk,{buttonText:e,onNewClick:a})]})]})};uk.propTypes={buttonText:A().string,folders:A().arrayOf(A().object),label:A().string.isRequired,onClick:A().func.isRequired,onNewClick:A().func,showButton:A().bool};const yde=null;var hk=i(82298),Vi=i.n(hk),mk=i(75488),Nh=i.n(mk),pk=i(80721),jh=i.n(pk),fk=i(87186),M6=i.n(fk);const Io=q("table"),Ah=[ba,Ni],gu=Pe()("sortable"),Rh=kn()(gu,Ue()("sortDirection",ba)),Oh=kn()(gu,Ue()("sortDirection",Ni)),Ph=kn()(gu,Se()(Pe()("hover"),M6()(1))),gk=Rs()([[Rh,We()("ascending")],[Oh,We()("descending")],[hn(),We()("none")]]),vk=St()(ph()(Vi(),Ah),Fs()(ps()(Ah.length-1),We()(0),Zt()),Pe()(Vi(),Ah)),Ck=Ps()(["onSort","sortable","sortDirection","sortKey","className"]),xk=t=>(0,n.jsx)("table",{className:"table",...t});class Ek extends m.Component{constructor(...e){super(...e),this.onMouseOverDelegate=this.onMouseOver.bind(this),this.onMouseOutDelegate=this.onMouseOut.bind(this),this.renderChildDelegate=this.renderChild.bind(this),this.state={hoverIndex:-1}}onMouseOver({currentTarget:{children:e},target:s}){const o=a=>a===s||a.contains(s),r=Ts()(o,e);this.setState({hoverIndex:r})}onMouseOut(){this.setState({hoverIndex:-1})}render(){const{children:e,enableHover:s,...o}=this.props,r=s?this.onMouseOutDelegate:void 0,a=s?this.onMouseOverDelegate:void 0,c={...o,onMouseOut:r,onMouseOver:a};return(0,n.jsx)("tbody",{...c,children:m.Children.map(e,this.renderChildDelegate)})}renderChild(e,s){return(0,m.cloneElement)(e,{hover:s===this.state.hoverIndex})}}const gl=t=>(0,n.jsx)("td",{className:M()(Io("cell").toString(),Io("td").toString(),t.className),...Ps()(["className"],t)});class $r extends m.Component{static defaultProps={sortable:!1,sortDirection:Xc,onSort:Function.prototype};constructor(...e){super(...e),this.state={hover:!1},this.onClickDelegate=this.onClick.bind(this),this.onMouseEnterDelegate=this.onMouseEnter.bind(this),this.onMouseLeaveDelegate=this.onMouseLeave.bind(this)}componentDidUpdate({sortDirection:e}){const{sortDirection:s}=this.props,{hover:o}=this.state,r=o&&s===e;this.state.hover!==r&&this.setState({hover:r})}onClick(){const{sortKey:e,sortDirection:s,onSort:o}=this.props,r=vk(s),a=r===Xc?Xc:e|r;o(a)}onMouse(e){this.setState({hover:e})}render(){const{sortable:e,className:s}=this.props,o=M()(s,Io("cell").toString(),Io("thcol",{ascHover:kn()(Ph,Rh)(this.props),descHover:kn()(Ph,Oh)(this.props),hover:Ph(this.props),asc:Rh(this.props),desc:Oh(this.props),sortable:gu(this.props)}).toString());return(0,n.jsx)("th",{"aria-sort":gk(this.props),className:o,onClick:e?this.onClickDelegate:void 0,onMouseEnter:e?this.onMouseEnterDelegate:void 0,onMouseLeave:e?this.onMouseLeaveDelegate:void 0,role:"columnheader",scope:"col",tabIndex:e?"0":void 0,...Ck(this.props)})}}Object.assign($r.prototype,{onMouseEnter:Hn()($r.prototype.onMouse,[!0]),onMouseLeave:Hn()($r.prototype.onMouse,[!1])});const Tk=t=>(0,n.jsx)("thead",{...t}),D6=t=>(0,n.jsx)("tr",{...t}),Mh=q("question-bank-list"),Sk=Ye()("",["links","micro"]),k6=({profile:t,updateCol:e})=>{if(!t)return(0,n.jsx)("span",{children:"Loading..."});const s=`${t.firstName} ${t.lastName}`,o=Sk(t);return(0,n.jsxs)("div",{className:Mh("avatar"),children:[e&&(0,n.jsx)("span",{children:"Updated by:\xA0"}),(0,n.jsx)("span",{className:Mh("avatar","icon"),style:{backgroundImage:`url(${o})`}}),(0,n.jsx)("span",{className:Mh("avatar","name"),children:s})]})},w6=(t,e)=>e[t],Xo=q("question-bank-list"),Lk=t=>{const{active:e,displayOwnerColumn:s,getCountLabel:o,index:r,locks:a={},menu:c,onClick:d,profiles:l,row:u,tooltipFn:h,type:p}=t,{authorId:f,deleted:g,id:v,lastEditedBy:C,questions:E,title:L,updatedAt:x}=u,S=w6(f,l),b=w6(C,l),N=(0,m.useCallback)(()=>d(u),[d,u]),I=ur()(v,a),j=Io("tr",{active:e===v,deleted:g}),R=bk(x);return(0,n.jsxs)(D6,{className:j,onClick:g?null:N,children:[(0,n.jsx)(gl,{children:(0,n.jsxs)("div",{className:Xo("title"),children:[(0,n.jsx)("span",{className:Xo("titleText"),children:L}),I&&(0,n.jsx)(yk,{})]})}),(0,n.jsx)(gl,{className:Xo("colQuestions").toString(),children:o(E.length)}),s&&(0,n.jsx)(gl,{className:Xo("colOwner").toString(),children:(0,n.jsx)(k6,{profile:S})}),(0,n.jsx)(gl,{className:Xo("colUpdated").toString(),children:b&&p==="team"?h(R,(0,n.jsx)(k6,{profile:b,updateCol:!0})):R}),(0,n.jsx)(gl,{className:Xo("menuTd").toString(),children:c&&(0,n.jsx)(Ik,{isLocked:I,...t,...u})})]},r)},bk=t=>$n()(t).format("M/D/YY @ h:mma"),yk=()=>(0,n.jsxs)("div",{className:Xo("editing"),"data-testid":"editing",children:[(0,n.jsx)("span",{className:Xo("editingIcon"),children:(0,n.jsx)(VC,{})}),"Editing"]}),Ik=({deleted:t,effectiveRole:e,id:s,isLocked:o,menu:r,row:a,setActive:c,type:d})=>{const l=(0,m.useCallback)(()=>c(null),[c]),u=(0,m.useCallback)(()=>c(s),[s,c]);return(0,n.jsx)("div",{className:Xo("menuWrap"),children:(0,n.jsx)(r,{authorId:a.authorId,category:"questionBanks",className:M()(Xo("menu").toString(),Io("menu").toString()),effectiveRole:e,id:s,isDeleted:t,isLocked:o,onClose:l,onOpen:u,type:d,scrollableAreaSelector:".question-banks"})})},Nk=Lk,jk=t=>{const{columns:{title:e},sort:s,setSort:o}=t,r={className:Io("th").toString(),onSort:o,sortDirection:d1(s,Jc),sortKey:Jc,sortable:!0};return(0,n.jsx)($r,{...r,children:e})},Ak=ot()("queston-bank-list__"),Rk=t=>{const{columns:{owner:e},sort:s,setSort:o}=t,a={className:M()(Io("th").toString(),Ak("colOwner")),onSort:o,sortDirection:d1(s,Nd),sortKey:Nd,sortable:!0};return(0,n.jsx)($r,{...a,children:e})},Ok=q("question-bank-list"),Pk=t=>{const{columns:{lastUpdated:e},sort:s,setSort:o}=t,a={className:M()(Io("th").toString(),Ok("colUpdated").toString()),onSort:o,sortDirection:d1(s,Id),sortKey:Id,sortable:!0};return(0,n.jsx)($r,{...a,children:e})},Wi=q("question-bank-list"),Mk=t=>{const[e,s]=(0,m.useState)(null),[o,r]=(0,m.useState)(Jc|ba),{columns:{questions:a},displayOwnerColumn:c,label:d,profiles:l}=t,u=Dk(t.questionBanks,l,o);return(0,n.jsxs)("div",{className:Wi(),children:[(0,n.jsx)("div",{className:Wi("label"),children:d}),(0,n.jsxs)(xk,{children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{}),(0,n.jsx)("col",{className:Wi("colQuestions")}),c&&(0,n.jsx)("col",{className:Wi("colOwner")}),(0,n.jsx)("col",{className:Wi("colUpdated")}),(0,n.jsx)("col",{className:Wi("colMenu")})]}),(0,n.jsx)(Tk,{className:Io("thead").toString(),children:(0,n.jsxs)(D6,{children:[(0,n.jsx)(jk,{sort:o,setSort:r,...t}),(0,n.jsx)($r,{className:Io("th").toString(),children:a}),c&&(0,n.jsx)(Rk,{sort:o,setSort:r,...t}),(0,n.jsx)(Pk,{sort:o,setSort:r,...t}),(0,n.jsx)($r,{})]})}),(0,n.jsx)(Ek,{children:u.map((h,p)=>(0,n.jsx)(Nk,{index:p,row:h,active:e,setActive:s,...t},`${p}-${h.id}`))})]})]})},B6=t=>St()(Pe()("authorId"),Pe()(Vi(),t),jh()([Pe()("firstName"),Pe()("lastName")]),ha()(" ")),Dk=(t,e,s)=>{switch(s){case Jc|ba:return Yo()(pl()(Se()(Oa(),Pe()("title"))),t);case Jc|Ni:return Yo()(Nh()(Se()(Oa(),Pe()("title"))),t);case Id|ba:return Yo()(pl()(Pe()("updatedAt")),t);case Id|Ni:return Yo()(Nh()(Pe()("updatedAt")),t);case Nd|ba:return Yo()(pl()(B6(e)),t);case Nd|Ni:return Yo()(Nh()(B6(e)),t);default:return t}};Mk.propTypes={columns:A().object.isRequired,getCountLabel:A().func.isRequired,hasDropdownMenu:A().bool,label:A().string.isRequired,menuCallback:A().elementType,onClick:A().func.isRequired,questionBanks:A().arrayOf(A().object)};const Rde=null,kk={[yt.Ay.FILL_IN_THE_BLANK]:"fillin",[yt.Ay.MATCHING]:"matching",[yt.Ay.MULTIPLE_CHOICE]:"multiple choice",[yt.Ay.MULTIPLE_RESPONSE]:"multiple response"},Da="personal",vl="team",Ode=500,kde=[{id:null,deleted:!1,type:Da},{id:null,deleted:!1,type:vl},{id:"deleted",deleted:!0,type:Da}],_6=({drawCount:t,questions:e,drawnQuestions:s=[]})=>{if(s.length===t)return null;const o=r=>r[Math.floor(Math.random()*r.length)];return Se()(bo()("index",r=>Ts()(Ue()("id",r.id),e)),o,Sa()(hh()(Eo()(on())(s),"id")))(e)},wk=t=>e=>e.type===Da||hasSufficientRole({effectiveRole:e.effectiveRole,requiredRole:t}),Bk=({folders:t,requiredRole:e,teamAccount:s})=>pipeWith(t,values,flatten,filter(o=>wk(e)&&(s||o.type===Da))),wde=({questionBanks:{folders:t,questionBanks:e},requiredRole:s=FOLDER_ROLE_VIEWER,teamAccount:o,term:r})=>{if(r&&isEmpty(trim(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+escapeRegExp(r)+")","i"),c=Bk({folders:t,requiredRole:s,teamAccount:o}),d=pluck("id",c),l=filter(h=>h.title.match(a)&&!h.deleted,c),u=filter(h=>(isNil(h.folderId)||contains(h.folderId,d))&&h.title.match(a)&&!h.deleted,e);return{folders:l,questionBanks:u}},U6=(t,e,s=!1)=>pipeWith(e,ifElse(always(!isNil(t)),prop(t),pipe(values,flatten)),reject(propEq("deleted",!s))),_k=(t,e,s,o=!1)=>{const r=t===vl,a=t===Da,c=pipeWith(U6(vl,s),pluck("id")),d=l=>!isNil(l.folderId)&&contains(l.folderId,c);return pipeWith(e,filter(cond([[always(o),l=>l.deleted],[always(r),l=>!l.deleted&&d(l)],[always(a),l=>!l.deleted&&!d(l)],[always(isNil(t)),l=>!l.deleted],[T,identity]])))},Uk=({type:t})=>t===Da,H6=({effectiveRole:t})=>hasSufficientRole({effectiveRole:t,requiredRole:FOLDER_ROLE_EDITOR}),Hk=(t,e)=>({id:s})=>s?compose(any(identity),map(allPass([propEq("folderId",s),propEq("authorId",t)])))(e):!1,Fk=(t,e,s,o)=>pipeWith(U6(e,t),filter(anyPass([Uk,H6,Hk(o,s)]))),zk=(t,e)=>s=>{if(isNil(s.folderId))return!0;const o=find(propEq("id",s.folderId),t);if(!o)return!1;const r=H6(o),a=s.authorId===e;return r||a},Vk=(t,e,s,o,r)=>pipeWith(_k(t,e,s),filter(zk(o,r))),Bde=(t,e,s,o)=>{const r=Fk(t,s,e,o),a=Vk(s,e,t,r,o);return{folders:r,questionBanks:a}},{FILL_IN_THE_BLANK:ka,MATCHING:Cl,MULTIPLE_CHOICE:xl,MULTIPLE_RESPONSE:El}=yt.Ay,{ANY:Wk,CHOICE:Gk,CORRECT_INCORRECT:Kk}=Vf,$k={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},Qk=Ye()(null,[0,"type"]),Dh=Js();class F6 extends ie().Component{static get defaultProps(){return{items:[],lessonId:"",blockId:"",onStep:Function.prototype}}retakeAnimationStageOne;retakeAnimationStageTwo;takeAgainRef;block;wrapper;id;constructor(e){super(e),this.state={errorIncomplete:!1,selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillInValue:"",matches:{},questionHtmlId:`q-${qd()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.takeAgainRef=(0,m.createRef)(),this.getSelection=this.getSelection.bind(this),this.handleFillIn=this.handleFillIn.bind(this),this.handleChoiceSelect=this.handleChoiceSelect.bind(this),this.handleMultipleResponseChange=this.handleMultipleResponseChange.bind(this),this.handleRetake=this.handleRetake.bind(this),this.renderQuestionTitle=this.renderQuestionTitle.bind(this),this.renderMultipleResponseOptionText=this.renderMultipleResponseOptionText.bind(this),this.renderMultipleChoiceOptionText=this.renderMultipleChoiceOptionText.bind(this),this.previewOnly__forceShowFeedback=this.previewOnly__forceShowFeedback.bind(this),this.previewOnly__clearOverrides=this.previewOnly__clearOverrides.bind(this),window.addEventListener(ms,this.previewOnly__forceShowFeedback),window.addEventListener(q0,this.previewOnly__clearOverrides),this.id=rt()("kc-")}componentDidUpdate(e,s){s.answered&&!this.state.answered?this.getType()!==ka&&C1(this.wrapper):!s.answered&&this.state.answered&&setTimeout(()=>{this.takeAgainRef.current?.focus?.()},0)}componentWillUnmount(){this.retakeAnimationStageOne&&(clearTimeout(this.retakeAnimationStageOne),this.retakeAnimationStageOne=null),this.retakeAnimationStageTwo&&(clearTimeout(this.retakeAnimationStageTwo),this.retakeAnimationStageTwo=null),window.removeEventListener(ms,this.previewOnly__forceShowFeedback),window.removeEventListener(q0,this.previewOnly__clearOverrides)}previewOnly__forceShowFeedback(e){const{itemId:s,path:o}=e.detail,{getL10nValue:r}=this.props;if(s!==this.props.blockId)return;const a=o.at(-1);if(typeof a=="string"&&a.startsWith?.("feedback")){const c=a==="feedbackCorrect",d=o.indexOf("answers"),l=o[d+1],u=d>-1&&typeof l!="string"?l.id:null,h={forceShowFeedback:!0,forceShowFeedbackCorrect:c,forceShowFeedbackMessage:""};if(u&&"answers"in this.props.items[0]){const p=this.props.items[0].answers.find(({id:g})=>g===u),f="feedback"in p?p?.feedback:void 0;h.forceShowFeedbackCorrect=p?.correct??!1,h.forceShowFeedbackMessage=r(f)}this.setState(h)}}previewOnly__clearOverrides(){this.setState({forceShowFeedback:!1,forceShowFeedbackCorrect:!1})}getSelection({item:e}){switch(e.type){case ka:return this.state.fillInValue;case Cl:return this.state.matches;case El:return this.state.selectedIndices;case xl:default:return this.state.selectedAnswer}}handleMatchesChange=e=>{this.setState({errorIncomplete:!1,matches:e})};handleMultipleResponseChange({optionIndex:e}){const{selectedIndices:s}=this.state,o=s.includes(e)?rh()([e]):Qo()(e);this.setState({errorIncomplete:!1,selectedIndices:o(s)})}handleChoiceSelect({selectedIndex:e}){const{answered:s}=this.state;s||this.setState({errorIncomplete:!1,selectedAnswer:e,chosen:!0})}onSubmit(e,s,o,r,a){if(!s){switch(this.setState({errorIncomplete:!0}),r.type){case ka:this.wrapper?.querySelector("input")?.focus();break;case El:case xl:this.wrapper?.querySelector("input")?.focus();break;case Cl:default:break}return}a?.preventDefault(),this.setState({answered:!0,retake:!1}),o&&this.props.onStep({id:e})}handleFillIn(e){this.setState({errorIncomplete:!1,fillInValue:e})}handleRetake(e){const{blockId:s,lessonId:o,settings:r}=this.props,{id:a}=e;this.setState({retake:!0}),this.retakeAnimationStageOne=setTimeout(()=>{this.setState({answered:!1,chosen:!1,matches:{}},()=>{this.retakeAnimationStageOne=null})},400),this.retakeAnimationStageTwo=setTimeout(()=>{this.setState({fillInValue:"",selectedAnswer:null,selectedIndices:[]},()=>{!Dh&&this.getType()===ka&&C1(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&(0,X.JD)((0,pr.Sw)({blockId:s,itemId:a,lessonId:o}))},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}renderQuestionTitle({title:e}){return(0,n.jsx)(Ms,{className:"quiz-card__title",value:e,id:this.state.questionHtmlId})}renderQuestion(e){const{answered:s,errorIncomplete:o,retake:r,selectedAnswer:a}=this.state,{blockId:c,enableVideoPlaybackSpeed:d,labels:l,progress:u,renderQuestionTitle:h=this.renderQuestionTitle,settings:p}=this.props,{quizCorrect:f,quizIncorrect:g,quizRequireAnswer:v,quizSubmit:C,quizTakeAgain:E}=l,{id:L,type:x}=e,S=e.type!=="DRAW_FROM_QUESTION_BANK"?e.settings:{},b="media"in e?e.media:void 0,N=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:e}),I=this.getCanSubmit({item:e}),j=p?.requireCorrectAnswer?N:!0,R=this.onSubmit.bind(this,L,I,j,e),P=this.getFeedback({item:e,isCorrect:N,selectedAnswer:a}),B=this.getSelection({item:e}),{columnBehavior:_,correctAnswerColor:k,correctAnswerColorContrast:J,incorrectAnswerColor:Z,incorrectAnswerColorContrast:G}=p,Y=N?k:Z,Ee=l.knowledgeCheckCorrectAnswerRequiredBlock,fe=l.knowledgeCheckRetriesAttemptsRemaining,oe=l.knowledgeCheckMaxRetriesReached,we=Ye()(0,["items",c,"items",L,"retryAttemptCount"],u),Ae=p?.retryCount!==0&&(p?.retryCount==null||p?.retryCount===-1||we<p?.retryCount),_e=p?.retryCount!=null||p?.retryCount===-1?p?.retryCount-we:-1,Qe=!N,pt={"--color-feedback-icon":Y,"--color-matching-feedback-bubble-bg":Z,"--color-multiple-choice-complete-border":Z,"--color-multiple-choice-correct-border":k,"--color-multiple-response-correct-border":k,"--color-multiple-response-incorrect-border":Z,"--color-multiple-response-option-check":s?k:void 0,"--color-quiz-option-check":k,"--color-x-fill":Z},nt=p?.revealCorrectAnswers==null||p?.revealCorrectAnswers?yt.iV.ALL:yt.iV.INCORRECT,Ce=M()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":s,"block-knowledge__retake-container--active-attempts-left":s&&!r&&_e>0}),Ne=M()("block-knowledge__retake",{"block-knowledge__retake--active":s&&!r&&Ae}),Ke=M()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":s&&!r&&Ae&&_e>0}),He=M()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":s&&!r&&!Ae});return(0,n.jsxs)(Of,{isActive:!0,style:pt,children:[p?.requireCorrectAnswer&&(s&&!N||!s)&&(0,n.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,n.jsx)(Lt,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),Ee]}),h(e),(0,n.jsx)(Uf,{blockId:c,enableVideoPlaybackSpeed:d,labels:l,media:b,settings:S}),(0,n.jsx)(kf,{type:x,children:this.renderType({columnBehavior:_,correctAnswerColor:k,correctAnswerColorContrast:J,incorrectAnswerColor:Z,incorrectAnswerColorContrast:G,isCorrect:N,item:e,onSubmit:R})}),(0,n.jsx)("div",{className:"quiz-card__validations",children:o&&(0,n.jsxs)("div",{children:[(0,n.jsx)(Lt,{className:"quiz-card__validation-icon",name:"alert-circle"}),(0,n.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:v})]})}),(0,n.jsx)(Rf,{isReduceMotion:Dh,canProceed:s,canSubmit:I,onSubmit:R,quizSubmit:C}),(0,n.jsx)(Df,{canProceed:this.state.forceShowFeedback||s,isActive:s,isComplete:s,isCorrect:N,item:e,feedbackValue:P,labels:l,quizCorrect:f,quizIncorrect:g,revealAnswers:nt,selection:B}),(0,n.jsxs)("div",{"aria-hidden":!s,className:Ce,children:[Qe&&(0,n.jsxs)(n.Fragment,{children:[Ae?(0,n.jsx)(Ia.ZH,{className:Ne,icon:(0,n.jsx)(Lt,{name:"arrow-rotate-left"}),onClick:this.handleRetake.bind(this,e),ref:this.takeAgainRef,size:"md",tabIndex:s?void 0:-1,text:E,variant:"secondary"}):null,_e>0&&(0,n.jsxs)("div",{className:Ke,children:[fe," ",_e]})]}),!Ae&&!N&&(0,n.jsx)("div",{className:He,children:oe})]})]},L)}getIsCorrect({item:e}){const{fillInValue:s,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:c}=e,d="answers"in e?e.answers:void 0,l="isCaseSensitive"in e?e.isCaseSensitive:!1;switch(c){case ka:return UM({answers:uh(d),fillInValue:s,isCaseSensitive:l,getL10nValue:this.props.getL10nValue});case Cl:return Object.entries(o).every(([u,h])=>u===h);case El:return HM({answers:d,selectedIndices:a});case xl:default:return r===_M(d)}}getType(){const{items:e}=this.props;return Qk(e)}getCanSubmit({item:e}){const s="answers"in e?e.answers:void 0,{answered:o,fillInValue:r,matches:a,selectedAnswer:c,selectedIndices:d}=this.state;switch(e.type){case ka:return gs()(Yt()(r))&&gs()(o);case Cl:return Object.keys(a).length===s.length;case El:return gs()(Yt()(d))&&gs()(o);case xl:default:return gs()(wt()(c))&&gs()(o)}}getFeedback({item:e,isCorrect:s,selectedAnswer:o}){const r="feedback"in e?e.feedback:void 0,a="feedbackCorrect"in e?e.feedbackCorrect:void 0,c="feedbackIncorrect"in e?e.feedbackIncorrect:void 0,d="feedbackType"in e?e.feedbackType:void 0,l="answers"in e?e.answers:void 0;if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;switch(d){case Gk:return Ye()("",[o,"feedback"],l);case Kk:return this.state.forceShowFeedbackCorrect??s?a:c;case Wk:default:return r}}getTypeLabel(){const{labels:e}=this.props,s=this.getType(),o=$k[s];return o?e?.[o]:e?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(e,{title:s}){return(0,n.jsx)(Ms,{className:"cursorAuto",value:s})}renderMultipleChoiceOptionText(e,{title:s}){return(0,n.jsx)(Ms,{className:"quiz-multiple-choice-option__label cursorAuto",value:s})}renderType({columnBehavior:e,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:c,item:d,onSubmit:l}){const{isHidden:u,labels:h,prefersKeyboardNavigation:p,renderMultipleResponseOptionText:f=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:g=this.renderMultipleChoiceOptionText,settings:v}=this.props,{answered:C,fillInValue:E,matches:L,selectedAnswer:x,selectedIndices:S,questionHtmlId:b}=this.state,{type:N}=d,I="answers"in d?d.answers:[],{quizAcceptableResponses:j,quizAnswerPlaceholder:R}=h,B=v?.revealCorrectAnswers==null||v?.revealCorrectAnswers?yt.iV.ALL:yt.iV.INCORRECT,_=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(N){case ka:return(0,n.jsx)(Wf,{allowTabNavigation:!0,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:_,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:C,isCorrect:c,labels:h,onChange:this.handleFillIn,onEnterToSubmit:l,options:uh(I),revealAnswers:B,questionHtmlId:b,quizAcceptableResponses:j,quizAnswerPlaceholder:R,value:E});case Cl:return(0,n.jsx)(Qf,{answers:FM(N)(I),columnBehavior:e,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!u,isComplete:C,matches:L,onChange:this.handleMatchesChange,prefersKeyboardNavigation:p,revealAnswers:B});case El:return(0,n.jsx)(Yf,{allowTabNavigation:!0,correctIds:uu(I),errorMessageId:_,isComplete:C,isCorrect:c,labels:h,onChange:this.handleMultipleResponseChange,onEnterToSubmit:l,options:I,questionHtmlId:b,renderOptionText:f.bind(this,d),revealAnswers:B,selectedIndices:S});case xl:default:return(0,n.jsx)(Zf,{allowTabNavigation:!0,correctId:zM(I)||VM(I),errorMessageId:_,isComplete:C,isCorrect:c,isReduceMotion:Dh,labels:h,onChange:this.handleChoiceSelect,onEnterToSubmit:l,options:I,questionHtmlId:b,renderOptionText:g.bind(this,d),revealAnswers:B,selectedIndex:x})}}render(){const{animateBlockEntrance:e,isLearner:s,items:o,settings:r,variant:a}=this.props,{answered:c,retake:d}=this.state,{entranceAnimation:l,knowledgeCheckWidth:u=76}=r,h=y1(u),p=M()("block-knowledge",{"block-knowledge--no-animation":!l,"block-knowledge--answered":c,"block-knowledge--retake":d}),f=M()("block-knowledge__wrapper",`block-knowledge__wrapper--${a}`,{[`block-knowledge__container--custom-width-${h}`]:!0}),g=Array.isArray(o)&&o.length>0?o.slice(0,1):[];return(0,n.jsx)(qt,{className:p,style:this.getStyle(),ref:v=>{this.block=v},children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,children:(0,n.jsx)("div",{className:"block-knowledge__container",children:(0,n.jsx)("div",{className:"block-knowledge__row",children:(0,n.jsx)("div",{className:`block-knowledge__col--custom-width-${h}`,children:(0,n.jsx)(Rn,{"aria-label":this.getTypeLabel(),className:f,ref:v=>{this.wrapper=v},children:g.map(v=>this.renderQuestion(v))})})})})})})}getStyle(){const{backgroundColor:e,settings:s}=this.props;if(s?.cardMode===Lo.TRANSPARENT)switch(s?.backgroundType){case O.xj.ACCENT:case O.xj.COLOR:case O.xj.TINT:switch((0,ct.XC)(e)){case ct.lL.LIGHT:return{"--color-background-choice-hover":(0,ct.W8)(.5,e),"--color-background-feedback-frame":(0,ct.W8)(.5,e)};case ct.lL.MED:return{"--color-background-choice-hover":(0,ct.W8)(-.3,e),"--color-background-feedback-frame":(0,ct.W8)(-.3,e)};case ct.lL.DARK:return{"--color-background-choice-hover":(0,ct.W8)(-.6,e),"--color-background-feedback-frame":(0,ct.W8)(-.6,e)};case ct.lL.NEAR_BLACK:return{"--color-background-choice-hover":(0,ct.W8)(.15,e),"--color-background-feedback-frame":(0,ct.W8)(.15,e)}}}return null}}const Zk=t=>{const{blockId:e,items:[s]}=t,{drawCount:o,questions:r}=s,[a,c]=(0,m.useState)(()=>r?.length?_6({drawCount:o,questions:r,drawnQuestions:[]}):null);(0,m.useEffect)(()=>{if(!r)return;const l=u=>{const{path:h}=u.detail;if(h[h.indexOf("items")+1]?.id!==e)return;const f=h[h.lastIndexOf("questions")+1]?.id;if(f===a?.id)return;const g=r.find(({id:v})=>v===f);g&&c(g)};return window.addEventListener(ms,l),()=>window.removeEventListener(ms,l)},[e,a,r]);const d=(0,m.useMemo)(()=>a?{variant:kk[a.type],items:[a]}:{},[a]);return a?(0,n.jsx)(F6,{...t,...d}):(0,n.jsx)("div",{})},Yk=t=>t.variant==="draw from question bank",Gi=t=>{const e=qn()??"",s=rn(),o=(0,It.gY)(),r={...t,backgroundColor:e,getL10nValue:o,blockSettings:s};return Yk(r)?(0,n.jsx)(Zk,{...r}):(0,n.jsx)(F6,{...r})};var Xk=i(24905),Jk=i.n(Xk);class qk extends ie().Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(e){super(e),this.state={hasOverflow:!1},this.refWrap=(0,m.createRef)(),this.refBubbleTitle=(0,m.createRef)(),this.renderOverflowMask=this.renderOverflowMask.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleNextClick=this.handleNextClick.bind(this),this.handlePreviousClick=this.handlePreviousClick.bind(this),this.portal=kr()}static defaultProps={allowNav:!0,onClose:()=>{},onNextClick:()=>{},onPreviousClick:()=>{}};componentWillUnmount(){document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.contentRef.removeEventListener("scroll",this.scrollRef)}UNSAFE_componentWillReceiveProps(e){e.isActive&&setTimeout(this.renderOverflowMask,100)}componentDidUpdate(e){if(!e.isActive&&this.props.isActive){setTimeout(()=>{document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleDocumentKeyDown)},0),this.contentRef.scrollTop=0,this.refBubbleTitle.current?.focus?.();const o=this.props.getL10nValue(this.props.media)?.audio?.transcript;o&&this.props.dispatch(rl(o))}else e.isActive&&!this.props.isActive&&(document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.state.hasOverflow&&this.contentRef.removeEventListener("scroll",this.scrollRef))}render(){const{accentColor:e,allowNav:s,description:o,htmlId:r,isActive:a,media:c,title:d,x:l,y:u}=this.props,h=M()("bubble",{"bubble--active":a}),p=sw({x:l,y:u}),f=nw({hasOverflow:this.state.hasOverflow,x:l,y:u}),g={borderBottomColor:e},v=`${r}-title`,C=()=>{if(!c)return(0,n.jsx)(Nt,{allowTabNavigation:a,className:"bubble__description",value:o});const L=this.props.getL10nValue(c)??{},x=wi(L,this.props.audioPosition,this.props.hasAudioExpansionFlag,!0,"labeled-graphic"),S={blockId:this.props.blockId,hasPadding:!1,imageMaxHeight:1e3,item:this.props.item,labels:this.props.labels,lessonId:this.props.lessonId,enableVideoPlaybackSpeed:this.props.enableVideoPlaybackSpeed,opts:this.props.mediaOpts,shouldPause:!a},b={audio:{media:x.audioOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:x.imageOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:x.videoOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:x.embedOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:L,isOverlayAudio:!0,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-overlay`}};return(0,n.jsx)(n.Fragment,{children:x.renderOrder.map((N,I)=>{if(N==="text")return(0,n.jsx)(Nt,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${I}`);const j=b[N];return!j||N==="embed"&&!a?null:(0,n.jsx)("div",{className:"bubble__media",children:(0,n.jsx)("div",{className:"bubble__figure",children:(0,n.jsx)("div",{className:M()({"labeled-graphic-bubble-media-container--audio-bottom":N==="audio"&&this.props.audioPosition==="bottom"}),children:(0,n.jsx)(En,{...S,...j})})})},`${N}-${I}`)})})},E=(0,n.jsx)("div",{ref:this.refWrap,className:h,style:p,children:(0,n.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":v,"aria-modal":"false",className:f,id:r,onKeyDown:this.handleKeyDown,style:g,children:[(0,n.jsx)("h2",{className:"bubble__title",id:v,tabIndex:-1,ref:this.refBubbleTitle,children:(0,n.jsx)(wn,{value:d})}),(0,n.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,n.jsx)(KC,{className:"bubble__close-icon"})}),(0,n.jsx)("div",{className:"bubble__content",ref:L=>{this.contentRef=L},children:C()}),s&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,Yn.createPortal)((0,n.jsx)(L3,{children:E}),this.portal):E}renderControls(){const{accentColor:e,labels:s}=this.props,o={"--color-lg-accent":e};return(0,n.jsxs)("div",{className:"bubble__controls",style:o,children:[(0,n.jsx)("button",{"aria-label":s?.a11yCarouselPrevious,className:"bubble__prev",onClick:this.handlePreviousClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-left"})}),(0,n.jsx)("button",{"aria-label":s?.a11yCarouselNext,className:"bubble__next",onClick:this.handleNextClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-right"})})]})}renderOverflowMask(){if(!this.contentRef)return;const e=this.contentRef,s=e.offsetHeight;e.scrollHeight>s?(e.addEventListener("scroll",this.scrollRef=Vr()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(e.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}handleDocumentClick=e=>{const s=Array.from(document.querySelectorAll("dialog[open]"))?.reduce((o,r)=>r.contains(e.target)||o,!1);!this.props.isActive||s||this.props.onClose({shouldFocusMarker:!1})};handleDocumentKeyDown=e=>{yn(e)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(e){const{allowNav:s,onNextClick:o,onPreviousClick:r}=this.props,a=Dx(this.contentRef,this.state.hasOverflow),c=Jk()(We()(s));Rs()([[c(_r),r],[c(Ur),o],[op,a]])(e)}handleCloseClick=()=>{this.props.onClose()};handleNextClick(e){this.props.onNextClick(e)}handlePreviousClick(e){this.props.onPreviousClick(e)}handleScroll(){const e=this.contentRef,s=e.scrollTop,o=e.scrollHeight,r=e.offsetHeight;s>=o-r-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}}const ew=cs(qk),tw=(0,Hs.Ls)()(ew),sw=({x:t,y:e})=>{const s={top:"initial",bottom:"initial",left:"0",right:"0"};return t>50?s.right=100-t+"%":s.left=t+"%",e>50?s.bottom=100-e+"%":s.top=e+"%",s},nw=({hasOverflow:t,x:e,y:s})=>{const o=e<50;let r="top";return s>33&&(r=s>66?"bottom":"middle"),M()("bubble__body","bg--range-light",{"bubble__body--has-overflow":t,"bubble__body--left":o,"bubble__body--right":!o,"bubble__body--top":r==="top","bubble__body--middle":r==="middle","bubble__body--bottom":r==="bottom"})},z6=({children:t,className:e,contentFocused:s=!1,...o})=>{const r=M()("authoring-tooltip",{[e]:e},{"content-focused":s});return(0,n.jsx)("div",{className:r,...o,children:t})},V6=({children:t,className:e="",side:s,...o})=>{const r=M()("authoring-tooltip__content",`authoring-tooltip__content--${s}`,{[e]:e});return(0,n.jsx)("span",{...o,className:r,children:t})},Ude=({children:t,className:e,content:s,direction:o="right",portalId:r="portal"})=>{const[a,c]=useState(!1),d=useRef(void 0),l=useRef(void 0),u=useCallback(()=>{s&&c(!0)},[c,s]),h=useCallback(()=>{c(!1)},[c]),p=useCallback(()=>{setTimeout(()=>{if(a){const f=l.current.getBoundingClientRect(),g=d.current.offsetParent.getBoundingClientRect(),{height:v,width:C}=f,E=f.left-g.left,L=f.top-g.top;Object.assign(d.current.style,{transform:`translate(${E}px, ${L}px)`,width:`${C}px`,height:`${v}px`})}},0)},[a]);return useLayoutEffect(()=>p(),[p]),useEvent("resize",p,window),jsxs("span",{className:e,ref:l,onMouseOver:u,onFocus:u,onMouseOut:h,onBlur:h,onWheel:h,children:[t,s&&jsx(W6,{direction:o,portalId:r,ref:d,visible:a,children:s})]})},W6=(0,m.forwardRef)((t,e)=>{const{children:s,direction:o,portalId:r,visible:a}=t,c=q("portal-tooltip"),[d,l]=(0,m.useState)();(0,m.useEffect)(()=>{l(document.getElementById(r))},[r,l]);const u=(0,n.jsx)("div",{"aria-hidden":"true",ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{className:c("target"),style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:c({visible:a}).mix(o),children:(0,n.jsx)("div",{className:c("inner"),children:s})})})});return d?(0,Yn.createPortal)(u,d):(0,n.jsx)(n.Fragment,{})});W6.displayName="PortalTooltipContent";var ow=i(59288);const rw=t=>new URL(t).pathname.slice(1)+new URL(t).search;class aw extends ow.Component{imageEl;constructor(e){super(e),this.state={style:{}}}render(){const{canvasClassNames:e,children:s,editable:o,editingDisabled:r,getL10nValue:a,imageLoaded:c,media:d,onCreateMarker:l,onShowAltDialog:u}=this.props,{style:h}=this.state,p=a(d)?.image??{},{alt:f,dimensions:g,key:v,src:C}=p,E=!!p.alt,L=(0,gn.Ll)(f),x=(0,gn.Zd)(p),S=M()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":o&&!r,"labeled-graphic-canvas__figure--editing-disabled":o&&r}),b=v?(0,rs.ME)(p):(0,rs.ME)({key:rw(C),...p}),N=M()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":(0,gn.sg)(b)}),I=(0,n.jsx)(An,{alt:L,className:N,"data-l10n-id":(0,Pt.pP)(d),height:g?.height||g?.originalHeight,onClick:l,onLoad:()=>this.setState({style:x}),ref:j=>{this.imageEl=j},src:b,style:h,width:g?.width||g?.originalWidth});return(0,n.jsx)("div",{className:e||"labeled-graphic-canvas",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,n.jsxs)("figure",{className:S,children:[E&&o?(0,n.jsxs)(z6,{className:"item-media__tooltip",children:[(0,n.jsx)("button",{onClick:u,className:"labeled-graphic-canvas__alt-tag",type:"button",children:"ALT"}),(0,n.jsx)(V6,{side:"top",children:"Edit alt text"})]}):[],c&&I,(0,n.jsx)("ol",{role:"list",children:s})]})})})})}}const iw=cs(aw),cw={"01":"a11yLabeledGraphicIconPlus","02":"a11yLabeledGraphicIconDot","03":"a11yLabeledGraphicIconInformation","04":"a11yLabeledGraphicIconQuestion","05":"a11yLabeledGraphicIconCheck","06":"a11yLabeledGraphicIconX","07":"a11yLabeledGraphicIconHeart","08":"a11yLabeledGraphicIconPin","09":"a11yLabeledGraphicIconArrowLeft",10:"a11yLabeledGraphicIconArrowRight",11:"a11yLabeledGraphicIconArrowUp",12:"a11yLabeledGraphicIconArrowDown",13:"a11yLabeledGraphicIconArrowUpLeft",14:"a11yLabeledGraphicIconArrowUpRight",15:"a11yLabeledGraphicIconArrowDownLeft",16:"a11yLabeledGraphicIconArrowDownRight",17:"1",18:"2",19:"3",20:"4",21:"5",22:"6",23:"7",24:"8",25:"9",26:"0"},lw=(t,e)=>{const s=cw[e];return s?.startsWith("a11y")?t?.[s]||"":s||""};var dw=i(59288);const G6=q("labeled-graphic-marker");class uw extends dw.Component{marker;onMouseMove;onMouseLeave;constructor(e){super(e),this.state={dragging:!1,hovering:!1,isComplete:!1,isDragged:!1,offsetX:0,offsetY:0,wasDragged:!1},this.onClick=this.onClick.bind(this)}parentCanvasElement(){return this.marker.parentElement.parentElement.parentElement}componentDidMount(){const e=this.parentCanvasElement();e.addEventListener("mousemove",this.onMouseMove=s=>{this.onItemDrag(s)}),e.addEventListener("mouseleave",this.onMouseLeave=s=>{this.onItemRelease(s)})}componentWillUnmount(){const e=this.parentCanvasElement();e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseleave",this.onMouseLeave)}UNSAFE_componentWillReceiveProps(e){const{isSelected:s,useLocalStateForCompletion:o}=e;s&&o&&!this.state.isComplete&&this.setState({isComplete:!0})}buildMarkerLabel=({icon:e,label:s,title:o,viewed:r})=>{const{labels:a}=this.props;return[].concat(s||[]).concat(o||[]).concat(e||[]).concat(r?a?.a11yLabeledGraphicViewed:a?.a11yLabeledGraphicUnviewed).join(", ")};render(){const{accentColor:e,ariaControls:s,icon:o,isActive:r,isComplete:a,isLessonBlocksList:c,isSelected:d,isVisible:l,labels:u,markerColor:h,markerColorContrast:p,onFocus:f,styles:g,useLocalStateForCompletion:v}=this.props,C=this.props.getL10nValue(this.props.title),E=lw(u,o),L=v?this.state.isComplete:a,x=!!h,S=(0,ct.cP)(h)?O.Em.LIGHT:O.Em.DARK,N=jn({backgroundColor:h,contrast:p??S}),I=x?h:"#ffffff",j=x?N:e,R=this.buildMarkerLabel({icon:E,label:u&&u.a11yLabeledGraphicButtonMarker||"",title:C,viewed:L}),P=G6({active:d,dragged:this.state.isDragged,visible:l,complete:L}),B={...g,"--color-lg-accent":I,"--color-lg-font":j},_=G6("pin",{selected:d,disabled:c});return(0,n.jsx)("button",{"aria-expanded":r,"aria-label":R,"aria-controls":s,className:P,onClick:this.onClick,onContextMenu:this.onItemRelease.bind(this),onFocus:f,onMouseDown:this.onItemGrab.bind(this),onMouseEnter:this.onHover.bind(this),onMouseLeave:this.onLeave.bind(this),onMouseUp:this.onItemRelease.bind(this),ref:k=>{this.marker=k},style:B,type:"button",children:(0,n.jsx)("span",{className:_,children:(0,n.jsx)("i",{className:`icon icon-Master-${o}`})})})}focus(){this.marker&&this.marker.focus&&this.marker.focus()}onHover(){this.state.wasDragged&&this.props.onHover(),this.setState({hovering:!0})}onLeave(){this.props.onLeave(),this.setState({hovering:!1})}onClick(){const{editable:e,itemId:s,onClick:o,parentId:r}=this.props,a="labeledGraphicMarkerClick",c={detail:{itemId:s,parentId:r}},d=new CustomEvent(a,c);document.dispatchEvent(d),e||o()}onItemGrab(e){const{editable:s}=this.props;if(!s)return;const o=this.marker.getBoundingClientRect(),r=o.left-e.clientX+this.marker.offsetWidth/2,a=o.top-e.clientY+this.marker.offsetHeight/2;this.setState({posX:e.clientX,posY:e.clientY,offsetX:r,offsetY:a,isDragged:!0})}onItemDrag(e){if(this.state.isDragged){const s=e.clientX-this.state.posX,o=e.clientY-this.state.posY;this.marker.style.transform=`translate3d(${s}px, ${o}px, 0)`}}onItemRelease(e){const{editable:s}=this.props,o={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===e.clientX&&this.state.posY===e.clientY?this.props.onClick():s&&e.currentTarget instanceof HTMLElement&&e.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(e,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(o.offsetX=0,o.offsetY=0),this.setState(o)}}const hw=cs(uw);class mw extends ie().Component{static get defaultProps(){return{animateBlockEntrance:!1,editable:!0,getL10nValue:e=>e,markerDelay:0,onClose:Function.prototype,onCreateMarker:Function.prototype,onItemClear:Function.prototype,onItemHint:Function.prototype,onItemSelected:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype,onSetMarkerPosition:Function.prototype,showBubbles:!0}}markerRefs;timeout;entranceDoneTimeout;canvas;constructor(e){super(e);const{isLearner:s}=e;this.afterAnimatedIn=this.afterAnimatedIn.bind(this),this.createMarker=this.createMarker.bind(this),this.onBubbleClose=this.onBubbleClose.bind(this),this.onMarkerFocus=this.onMarkerFocus.bind(this),this.markerRefs={},this.state={showMarkers:!s||Js()}}componentDidMount(){const{isBlock:e,isLearner:s,isPreview:o,markerDelay:r}=this.props;s&&!e&&(this.timeout=setTimeout(()=>this.setState({showMarkers:!0}),o?0:r))}componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.entranceDoneTimeout)}render(){const{accentColor:e,animateBlockEntrance:s,blockId:o,color:r,canvasClassNames:a,disableCreateMarker:c,editable:d,getL10nValue:l,hasAudioExpansionFlag:u,imageLoaded:h=!0,isBlock:p,isLastBlock:f,isLearner:g,isLessonBlocksList:v,isPreview:C,items:E,labels:L,lessonId:x,media:S,onItemClear:b,onItemHint:N,onItemSelected:I,onNextClick:j,onPreviousClick:R,onShowAltDialog:P,parentId:B,progress:_,selected:k,settings:J={},showBubbles:Z,enableVideoPlaybackSpeed:G}=this.props,{markerColor:Y,markerColorContrast:Ee}=J,{showMarkers:fe}=this.state,we=Y||(e||r),Ae=M()("map-item",{"map-item--animated":!d}),_e=s?"fadeIn":"none",Qe=s?1:0,pt=E.length>1,ls=f?50:300;return(0,n.jsx)(m.Fragment,{children:(0,n.jsx)(zt,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!C,animateIn:_e,duration:C?0:Qe,initiallyVisible:!s,isLearner:g,offset:ls,children:(0,n.jsx)(iw,{canvasClassNames:a,editable:d,editingDisabled:c,imageLoaded:h,media:S,onCreateMarker:this.createMarker,onShowAltDialog:P,ref:nt=>{this.canvas=nt},children:E.map((nt,Ce)=>{const{description:Ne,id:Ke,icon:He,media:dt,title:lt}=nt,Ht=l(nt.x),Wt=l(nt.y),vs={top:Wt+"%",left:Ht+"%"},en=jt()(["items",Ke,"isComplete"],_),Pn=k===Ke,Bs=`bubble-${o}-${Ke}`;return(0,n.jsxs)("li",{className:Ae,role:"listitem",children:[(0,n.jsx)(hw,{accentColor:we,ariaControls:Bs,editable:d,icon:He,isActive:k===Ke,isComplete:en,isLessonBlocksList:v,isSelected:Pn,isVisible:fe,itemId:Ke,labels:L,markerColor:Y,markerColorContrast:Ee,onClick:()=>{I(Ke)},onFocus:this.onMarkerFocus(Ke),onHover:()=>{N()},onLeave:()=>{b()},onSetPosition:this.onSetPosition.bind(this,nt),parentId:B,ref:Sn=>{this.markerRefs[Ke]=Sn},styles:vs,title:lt,useLocalStateForCompletion:p},Ke),!d&&Z&&(0,n.jsx)(tw,{accentColor:we,allowNav:pt,audioPosition:J.audioPosition,blockId:o,description:Ne,hasAudioExpansionFlag:u,htmlId:Bs,isActive:Pn,labels:L,media:dt,item:nt,index:Ce,lessonId:x,enableVideoPlaybackSpeed:G,mediaOpts:{disableZoom:!J.zoomOnClick},onClose:this.onBubbleClose(Ke),onNextClick:()=>{j(Ce)},onPreviousClick:()=>{R(Ce)},title:lt,x:Number(Ht),y:Number(Wt)},Bs)]},Ke)})})})})}createMarker(e){const{disableCreateMarker:s,editable:o,isBlock:r,onCreateMarker:a}=this.props;if(!o||s)return;const{x:c,y:d}=this.findItemCoordinates({e}),{id:l,items:u}=this.props.lesson,h=r?u[0].items.length:u.length,f={description:"",hasMedia:!1,icon:"01",id:qd()(),isActive:!1,title:"",x:String(c),y:String(d)};a({index:h,lessonId:l,items:u,payload:f})}onBubbleClose(e){const{onClose:s}=this.props;return(o={shouldFocusMarker:!0})=>{const r=this.markerRefs[e];o.shouldFocusMarker&&r?.focus?.(),s()}}onMarkerFocus(e){return()=>{const{onClose:s,selected:o}=this.props;o&&o!==e&&s()}}onSetPosition(e,s,o,r){if(!this.props.editable)return;const{lesson:a,onSetMarkerPosition:c}=this.props,{id:d,items:l}=a,{x:u,y:h}=this.findItemCoordinates({e:s,offsetX:o,offsetY:r}),p={x:String(u),y:String(h)};(0,_s.uW)(e.x)&&(0,_s.uW)(e.y)?(this.props.updateL10n({l10n:e.x,value:p.x}),this.props.updateL10n({l10n:e.y,value:p.y})):c({itemId:e.id,lessonId:d,items:l,payload:p})}findItemCoordinates({e,offsetX:s=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,c=this.findItemCoordinate({clientPos:e.clientX,clientOffset:s,rectSubtractor:r.left,rectDivisor:r.width,validOffsetAmount:a}),d=this.findItemCoordinate({clientPos:e.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:c,y:d}}findItemCoordinate({clientPos:e,clientOffset:s,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const c=a/r*100,d=100-c;let l=(e+s-o)/r*100;return l>d?l=d:l<c&&(l=c),l}afterAnimatedIn(){const{isBlock:e}=this.props;e&&this.setState({showMarkers:!0})}}const pw=cs(mw);var fw=i(59288);const K6="page-wrap--noscroll";class gw extends fw.Component{static get defaultProps(){return{onItemSelected:Function.prototype,onStep:Function.prototype,getL10nValue:()=>{}}}constructor(e){super(e),this.state={imageLoaded:!1},this.closeOpenedBubble=this.closeOpenedBubble.bind(this),this.handleMarkerClick=this.handleMarkerClick.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onItemSelected=this.onItemSelected.bind(this),this.onNextClick=this.onNextClick.bind(this),this.onPreviousClick=this.onPreviousClick.bind(this),this.setImageLoaded=this.setImageLoaded.bind(this)}componentDidMount(){this.loadImage(),this.props.readOnly||document.addEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.addEventListener(ms,this.handleNavEvent)}handleNavEvent(e){const s=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&this.state.selectedItemId!==o&&this.onItemSelected(o)}componentWillUnmount(){this.props.readOnly||document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.removeEventListener(ms,this.handleNavEvent)}render(){const{imageLoaded:e}=this.state,{hasAudioExpansionFlag:s,isLessonBlocksList:o,isPreview:r,items:a,labels:c,parentId:d,settings:l={}}=this.props,{mediaWidth:u="2"}=l,h=r?a[0].id:this.state.selectedItemId,p=M()("view-labeled-graphic",{"view-labeled-graphic--small":u==="0","view-labeled-graphic--medium":u==="1","view-labeled-graphic--full":u==="2"});return(0,n.jsx)("div",{"aria-label":c?.a11yLabeledGraphicBlock,className:p,role:"group",children:(0,n.jsx)(pw,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,hasAudioExpansionFlag:s,isLessonBlocksList:o,imageLoaded:e,labels:c,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:d,selected:h})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const{image:e}=this.props.getL10nValue(this.props.media),{key:s,src:o}=e,r=setTimeout(this.setImageLoaded,1e3),a=new Image,c=s?(0,rs.ME)(e):o;a.src=c,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return M()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(e){const{blockId:s,items:o}=this.props,r=Pe()("id",o[Zt()(e)]||o[0]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onPreviousClick(e){const{blockId:s,items:o}=this.props,r=Pe()("id",o[fo()(e)]||o[fo()(us()(o))]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onItemSelected(e){const{editBlock:s,items:o,onItemSelected:r,onStep:a}=this.props,{selectedItemId:c}=this.state;s&&window.matchMedia("(max-width: 768px)").matches||(c===e?this.closeOpenedBubble():(this.openBubble(e),Se()(a,qe()(d=>d.id===e))(o)),r(e))}handleMarkerClick(e){const{itemId:s,parentId:o}=e.detail,{selectedItemId:r}=this.state;(o!==this.props.parentId||r!==s)&&this.closeOpenedBubble()}openBubble(e){const{blockId:s}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const r=document.querySelector(".page-wrap");r&&r.classList.add(K6)}this.setState({selectedItemId:e}),document.getElementById(`bubble-${s}-${e}`).show()}closeOpenedBubble(){const{blockId:e}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const o=document.querySelector(".page-wrap");o&&o.classList.remove(K6)}document.getElementById(`bubble-${e}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const $6=cs(gw),vw=t=>{const{blockId:e,progress:s,isLessonBlocksList:o=!1}=t,r=jt()(["items",e],s),a=Ea("rise-audio-release");return(0,n.jsx)(qt,{className:"block-labeled-graphic",children:(0,n.jsx)($6,{...t,editable:!1,hasAudioExpansionFlag:!!a,isBlock:!0,isLessonBlocksList:o,parentId:e,progress:r})})},kh=q("block-process-card"),Q6=({icon:t,isOverlayAudio:e=!1,onClick:s,text:o,variant:r})=>{const a=`${r}-btn`;return(0,n.jsxs)("button",{type:"button",className:kh(a,{"audio-overlay":e}),onClick:s,children:[(0,n.jsx)("span",{className:kh(`${a}-text`),children:o}),(0,n.jsx)(Lt,{classNameIcon:kh(`${a}-icon`),name:t})]})},Cw=q("block-process-card"),xw=({activeIndex:t,enableVideoPlaybackSpeed:e,id:s,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:c,labels:d,lessonId:l,media:u,onMediaLoad:h,settingZoomOnClick:p})=>{const f=Ea("rise-audio-release"),{image:g,video:v}=u??{},C=a?g?.align??"center":"center",E=Cw("media",{legacy:!f&&!v,"audio-overlay":a,[`audio-overlay-${C}`]:a,"intro-step":r});return(0,n.jsx)("div",{className:E,children:(0,n.jsx)(En,{activeIndex:t,blockId:s,defaultAlign:"center",enableVideoPlaybackSpeed:e,hasPadding:!1,index:`${s}-${o}`,itemIndex:o,isOverlayAudio:f&&a,item:c,labels:d,lessonId:l,media:u,onLoad:h,opts:{disableZoom:!p},pauseOnLoad:!0})})};var wh=i(59288);const Qr=q("block-process-card"),Ew=({text:t})=>{const e=wh.useRef(null),{isInView:s}=Tw({ref:e,threshold:.75});return(0,n.jsxs)("div",{ref:e,className:Qr("swipe-badge",{animate:s}),children:[(0,n.jsx)("span",{className:Qr("swipe-badge-text"),children:t}),(0,n.jsx)(Lt,{className:Qr("swipe-badge-icon"),name:"chevron-right-solid"})]})};function Tw({ref:t,rootMargin:e="0px",threshold:s=.1}){const[o,r]=wh.useState(!1);return wh.useEffect(()=>{if(!t.current||o)return;const a=new IntersectionObserver(([c])=>{c.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:e,threshold:s});return a.observe(t.current),()=>a.disconnect()},[o,t,e,s]),{isInView:o}}const Sw=({activeIndex:t,className:e,description:s,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:c,item:d,labels:l,lessonId:u,media:h,onClickRestart:p,onClickStart:f,settingAudioPosition:g,settingHeadingLevel:v=2,settingShowStepLabel:C=!0,settingStepLabel:E,settingZoomOnClick:L,showSwipeBadge:x,style:S,title:b,totalSteps:N,type:I})=>{const j=`h${v}`,R=I==="intro",P=I==="summary",B=I==="step",_=r?c:c+1,k=(0,It.QQ)(E)||l.processStepName,J=Ea("rise-audio-release"),Z=(0,It.QQ)(Array.isArray(h)?{}:h),G=wi(Z,g,J,!0,"process"),Y=()=>{if(!h)return null;const Ee={activeIndex:t,enableVideoPlaybackSpeed:o,id:a,index:c,isIntroStep:R,labels:l,lessonId:u,media:h,onMediaLoad:()=>{},settingZoomOnClick:L,item:d},fe={audio:{media:G.audioOnlyMedia||Z,isOverlayAudio:!1},image:{media:G.imageOnlyMedia||Z,isOverlayAudio:!1},video:{media:G.videoOnlyMedia||Z},embed:{media:G.embedOnlyMedia||Z,isOverlayAudio:!1},overlay:{media:Z,isOverlayAudio:!1}};return G.renderOrder.map((oe,we)=>{if(oe==="text")return(0,n.jsx)(Nt,{className:Qr("description"),value:s},`text-${we}`);const Ae=fe[oe];return Ae?(0,n.jsx)(xw,{...Ee,...Ae},`${oe}-${we}`):null})};return(0,n.jsxs)("div",{className:Qr(null,{[I]:!0}).mix(e),style:S,children:[B&&C&&(0,n.jsx)("div",{className:Qr("number"),children:`${k} ${_}`}),(0,n.jsx)("div",{className:Qr("title"),children:(0,n.jsx)(j,{children:(0,n.jsx)(Nt,{value:b})})}),Y(),!h&&(0,n.jsx)(Nt,{className:Qr("description"),value:s}),R&&N>1&&(0,n.jsx)(Q6,{icon:"chevron-right-solid",isOverlayAudio:G.isOverlayAudio,onClick:f,text:l.processStart,variant:"start"}),P&&N>1&&(0,n.jsx)(Q6,{icon:"arrow-rotate-left",isOverlayAudio:G.isOverlayAudio,onClick:p,text:l.processStartAgain,variant:"restart"}),x&&B&&(0,n.jsx)(Ew,{text:l.processSwipe})]})};var Jo=i(59288);const Lw=q("block-process-carousel"),Z6=t=>t?.type==="intro",Bh=t=>t?.type==="summary",_h=t=>t?.type==="step",Y6=t=>t?.isHidden,bw=({animateBlockEntrance:t,enableVideoPlaybackSpeed:e,id:s,isLearner:o,items:r,labels:a,lessonId:c,onStep:d,previewType:l,processRef:u,settings:{audioPosition:h,headingLevel:p,stepLabel:f,showStepLabel:g,zoomOnClick:v}})=>{const C=Xs(480),E=(0,Me.Wz)(),L=(0,It.gY)(),x=(0,Hs.y4)(),S=Jo.useRef(null),[b,N]=Jo.useState(0),[I,j]=Jo.useState(!1),R=Jo.useMemo(()=>l===$e.o4.MOBILE_PORTRAIT||l===$e.o4.MOBILE_LANDSCAPE,[l]),P=Jo.useMemo(()=>{const oe=r.filter(Qe=>!Y6(Qe)),we=oe.find(Z6),Ae=oe.find(Bh),_e=oe.filter(_h);return[we,..._e,Ae].filter(Boolean)},[r]),B=Jo.useMemo(()=>P.findIndex((oe,we)=>_h(oe)&&(_h(P[we+1])||Bh(P[we+1]))),[P]),_=Z6(P[0]),k=Bh(P[P.length-1]),J=!!l;Jo.useEffect(()=>{d&&(r.forEach(oe=>Y6(oe)&&d(oe)),P.length>0&&d(P[0]))},[]);const Z=Jo.useCallback(()=>{S.current?.navigateToSlide?.(0)},[]),G=Jo.useCallback(()=>{S.current?.navigateToSlide?.(1)},[]),Y=Jo.useCallback(oe=>{N(oe),u.current?.scrollIntoView({behavior:"smooth",block:"start"}),oe!==B&&!I&&j(!0),d?.(P[oe]);const Ae=L(P[oe]?.media);Ae?.audio?.transcript&&x(rl(Ae.audio.transcript))},[P,x,B,L,I,d,u]),Ee=({index:oe,isActive:we,onClick:Ae,onKeyDown:_e})=>{const Qe=_&&oe===0,pt=k&&oe===P.length-1,ls=_?oe:oe+1;let nt,Ce;Qe?(nt=a?.a11yBlockProcessSlideControlsIntroduction,Ce=(0,n.jsx)(Lt,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):pt?(nt=a?.a11yBlockProcessSlideControlsSummary,Ce=(0,n.jsx)(Lt,{name:"check-regular"})):(nt=ls.toString(),Ce=ls.toString());const Ne=`${a?.a11yBlockProcessSlideControlsGoToSlide} ${nt}`;return(0,n.jsx)(df,{"aria-label":Ne,ariaLabel:Ne,className:"carousel-controls-item-btn",isActive:we,onClick:Ae,onKeyDown:_e,children:Ce},oe)},fe={animateBlockEntrance:J,animateIn:t?"fadeIn":"none",duration:J&&t?1:0,initiallyVisible:!t,isLearner:o,offset:100};return(0,n.jsx)(zt,{...fe,children:(0,n.jsx)("div",{className:Lw(),children:(0,n.jsx)(Xd,{blockId:s,carouselRef:S,items:P,children:()=>(0,n.jsx)(Qd,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:E,labelCarousel:a?.a11yBlockProcessCarousel,labelCarouselRoleDesc:a?.a11yBlockProcessRoleDescription,labelSlideControls:a?.a11yBlockProcessSlideControls,labelSlideControlsGoToNext:a?.a11yBlockProcessSlideControlsGoToNext,labelSlideControlsGoToPrevious:a?.a11yBlockProcessSlideControlsGoToPrevious,labelSlideControlsGoToSlide:a?.a11yBlockProcessSlideControlsGoToSlide,labelSlidePreposition:a?.a11yBlockProcessSlidePreposition,labelSlideRoleDesc:a?.a11yBlockProcessSlideRoleDescription,onChange:Y,ref:S,renderSlideIndicator:Ee,shouldMouseEmulateTouch:R,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:P.map((oe,we)=>(0,n.jsx)(Rn,{activeIndex:b,description:oe.description,enableVideoPlaybackSpeed:e,hasIntro:_,id:s,index:we,isHidden:oe.isHidden,item:oe,labels:a,lessonId:c,media:oe.media,onClickRestart:Z,onClickStart:G,settingAudioPosition:h,settingHeadingLevel:p,settingShowStepLabel:g,settingStepLabel:f,settingZoomOnClick:v,showSwipeBadge:C&&!I&&we===B,tag:Sw,title:oe.title,totalSteps:P.length,type:oe.type},oe.id))})})})})};var yw=i(59288);const Iw=t=>{const{blockId:e,settings:s}=t,{paddingBottom:o,paddingTop:r}=s,a=yw.useRef(null),c={paddingBottom:`${Number(o)*10}px`,paddingTop:`${Number(r)*10}px`};return(0,n.jsx)(qt,{className:"block-process",ref:a,style:c,children:(0,n.jsx)(bw,{id:e,processRef:a,...t})})};var Nw=i(7906),Rt=i.n(Nw),jw=i(18714),Aw=i.n(jw),Rw=i(8849),Ow=i.n(Rw),Pw=i(8826),Mw=i.n(Pw);const Dw=La()(wt()),kw=t=>{const e=X6(t)[0],{feedback:s}=e||{},o=St()(Ls()(["action","emotion","goTo","nextSlide"]),Rt()({description:s,type:"dialogue"}));return e?[e,o(e)]:[o(t)]},X6=t=>[t.responses[t.response]],ww=t=>{const e=hh()(Dw,"response"),s=Ue()("hasFeedback",!0),o=a=>Se()(Mw()(t),a);return Rs()([[s,o(kw)],[e,o(X6)],[hn(),Ow()]])(t)},Bw=(t,e)=>{if(!e)return;const{scene:s,slide:o}=e,r=Ts()(Ue()("id",s),t),a=tt()([],"slides",t[r]),c=Ts()(Ue()("id",o),a);return{scene:r,slide:c}},J6=hr()(Bw);var _w=i(40731),Uh=i.n(_w);const Uw=St()(Pe()("filters"),Qt()(Ue()("name","rise_emotion")),La()(Yt())),Hw=St()(Pe()("filters"),qe()(Ue()("name","rise_emotion")),Pe()("value")),q6=t=>new URL(t).pathname.slice(1),Fw=t=>St()(st()("key",q6(t.src)),st()("thumbnailKey",q6(t.thumbnail)))(t),zw=St()(Pe()("poses"),Qt()(Uw),ws()(t=>[Hw(t),t]),Uh(),Wr()(Fw));var qo=i(59288);const Hh=t=>t===-1?null:t,e5=t=>Fs()(wt(),Un(),t),vu=La()(Yt()),t5=La()(wt()),Ki=kn()(t5,vu),s5=Jf()(Nn()),n5=ye.BI?e5(rs.dE):e5(rs.bX),Fh=t=>As()(t);class Vw extends qo.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=qo.createRef();responseItemRef=qo.createRef();scenarioRef=qo.createRef();blockContentRef=qo.createRef();endRef=qo.createRef();textRef=qo.createRef();refs=qo.createRef();dynamicRefs=qo.createRef();shouldFocus=!1;constructor(e){super(e);const s={activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:{}};this.refs.current={},this.state=e.initialState||s,this.fetchCharacters=this.fetchCharacters.bind(this),this.fetchCharacterPose=this.fetchCharacterPose.bind(this),this.getCharacterPose=this.getCharacterPose.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onClick=this.onClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onInit=this.onInit.bind(this),this.onResize=this.onResize.bind(this),this.onResponseClick=this.onResponseClick.bind(this),this.onTryAgainClick=this.onTryAgainClick.bind(this),this.renderBackground=this.renderBackground.bind(this),this.renderButton=this.renderButton.bind(this),this.renderDetails=this.renderDetails.bind(this),this.renderDialogues=this.renderDialogues.bind(this),this.renderEnd=this.renderEnd.bind(this),this.renderPose=this.renderPose.bind(this),this.renderResponse=this.renderResponse.bind(this),this.renderText=this.renderText.bind(this),this.resetSlide=this.resetSlide.bind(this),this.resetSlides=this.resetSlides.bind(this),this.setNextSlide=this.setNextSlide.bind(this),this.dynamicRefs.current={}}componentDidMount(){const{initialState:e,items:s}=this.props,o=Se()(ur()("poses"),tt()({},"character"),Fh);Ki(s)&&!o(s)&&this.fetchCharacters(),e||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(ms,this.handleNavEvent)}handleNavEvent(e){const{path:s}=e.detail,{blockId:o,sceneId:r,slideId:a,responseId:c}=Pc(s,["block","scene"]),d=s.at(-1)==="feedback";if(o!==this.props.blockId)return;const l=Hh(this.props.items.findIndex(p=>p.id===r)),u=l!==null?Hh(this.props.items[l].slides.findIndex(p=>p.id===a)):null,h=u!==null?Hh(this.props.items[l].slides[u].responses.findIndex(p=>p.id===c)):null;this.setState({activeScene:l??0,activeSlide:u??0},()=>{l!==null&&u!==null&&this.setState({slides:{...this.state.slides,[`${l}.${u}`]:{...this.state.slides[`${l}.${u}`],hasFeedback:d,response:h}}})})}componentDidUpdate(){const{items:e,onStep:s}=this.props,{activeScene:o,activeSlide:r}=this.state,a=Ye()([],[o,"slides"],e),c=Ye()(null,[r,"goTo"],a),d=Ye()(null,[r,"type"],a);if(s&&(c==="end"&&d==="text"||!c&&!d)&&hu()(s,e),this.shouldFocus){this.shouldFocus=!1;const p=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');p?p.focus():C1(this.scenarioRef.current)}}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener(ms,this.handleNavEvent)}fetchCharacterPose(e,s){const{items:o}=this.props,{character:r,slides:a}=o[e],c=a[s],d=`${e}.${s}`,l=[d,"response"],u=[d,"hasFeedback"],h=Ye()(null,l,this.state.slides),p=Ye()(!1,u,this.state.slides),f=tt()("neutral","emotion",c),g=Fs()(We()(p),Ye()(f,["responses",h,"emotion"]),We()(f)),v=St()(Ye()(r?.poses?.neutral,["poses",g(c)]),n5);return{name:r.name,pose:v(r)}}fetchCharacters(){const{getCharacter:e,items:s,onItemUpdate:o}=this.props,r=Ls()(["id","name","poses","src"]),a=d=>l=>o({itemId:d,payload:{character:l}}),c=({character:d,id:l})=>Ki(d)&&e(d.id).then(u=>st()("poses",zw(u),u)).then(r).then(a(l));s.map(c)}getCharacterPose(){const{items:e}=this.props,{activeScene:s,activeSlide:o,prevScene:r,prevSlide:a}=this.state,c=Ye()([],[s,"slides"],e),d=Ye()(!0,[o,"hasCharacter"],c);return t5(r)&&gs()(d)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(s,o)}onClick(e,s){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:c}=this.state,{slides:d}=o[a],l=tt()(null,"type",d[c])==="dialogue",u=a===o.length-1,h=c===d.length-1,p={activeSlide:c+1},f={activeScene:a+1,activeSlide:0},g={activeSlide:null},v={activeScene:0,activeSlide:0},C=St()(J6(o),({scene:b,slide:N})=>({activeScene:b,activeSlide:N})),E=Rs()([[We()(h&&u),We()(g)],[We()(h&&!u),We()(f)],[hn(),We()(p)]]),L=Fs()(We()(l),We()(g),We()(v)),x=Rs()([[ps()("slide"),Hn()(C,[s])],[ps()("next"),E],[ps()("end"),L]]),S=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,c),0),this.setState({prevScene:a,prevSlide:c}),this.setState(x(e),S),e==="end"&&this.resetSlides(),e==="end"&&r&&hu()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}onResponseClick(e){const{activeScene:s,activeSlide:o,slides:r}=this.state,a=`${s}.${o}`,c=st()("response",e),d=st()("hasFeedback",!0),l=Jt()({[`${a}`]:c}),u=Jt()({[`${a}`]:d}),h=Se()(u,l);this.setState({slides:l(r)},()=>{this.shouldFocus=!0,this.setState({slides:h(r)})})}onTryAgainClick(){const{activeScene:e,activeSlide:s,slides:o}=this.state,r=`${e}.${s}`,a=Rt()({hasFeedback:null,response:null}),c=Jt()({[`${r}`]:a});this.setState({slides:c(o)})}render(){const{blockId:e,getL10nValue:s,isPDF:o,items:r,labels:a}=this.props,{activeScene:c,activeSlide:d,initiated:l}=this.state,{slides:u}=r[c]||{},h=u&&u[d],p=Se()(vu,tt()({},"character"),Fh),f=Se()(ur()("poses"),tt()({},"character"),Fh),g=Se()(yo(),Ye()({},["character","poses"])),v=Se()(cl(),yo(),ws()(g)),C=M()("scenario-block",{"scenario-block--initiated":l,"scenario-block--mobile":nn.isMobile,"scenario-block--loading":p(r)&&!f(r)}),E=`scenario-live-${e}`,L={"aria-label":a?.a11yGroupScenario,"aria-describedby":E,className:C,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:null},x=(0,rs.ME)(s(r?.[0].background?.media)?.image),S=Rs()([[wt(),this.renderEnd],[Ue()("type","dialogue"),this.renderDialogues],[Ue()("type","text"),this.renderText],[hn(),We()(null)]]),b=h&&h.type==="text"&&!h.hasCharacter,N=M()("scenario-block__character",{"scenario-block__character--hidden":b}),I=`${c}.${d}`,j=this.state.slides[I],R=j?.hasFeedback?h?.responses?.[j?.response]?.alt:h?.alt,P=s(R);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{...L,"data-l10n-id":(0,Pt.pP)(R),children:[(0,n.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:E,children:P}),(0,n.jsx)("div",{className:"scenario-block__spinner"}),(0,n.jsx)("div",{className:"scenario-block__background-wrapper",children:Ki(r)&&r.map(this.renderBackground)}),(0,n.jsx)(An,{alt:"",onLoad:this.onInit,src:x}),(0,n.jsxs)("div",{className:"scenario-block__inner",children:[(0,n.jsx)("div",{className:N,children:f(r)&&v(r).map(this.renderPose)}),(0,n.jsx)(ys.F,{children:Ki(r)&&S(h)})]})]}),o&&h&&this.renderDetails(h)]})}renderBackground(e,s){const{activeScene:o}=this.state,{id:r}=e,a=this.props.getL10nValue(e?.background?.media)?.image,c=M()("scenario-block__background",{"scenario-block__background--active":o===s});return(0,n.jsx)(An,{alt:"",className:c,src:(0,rs.ME)(a)},r)}renderButton(e){const{labels:s}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=s,{goTo:a,nextSlide:c}=e,d="action"in e?e.action:void 0,l={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},u=d==="tryAgain"?(0,n.jsxs)("span",{children:[r," ",(0,n.jsx)("i",{className:"icon icon-reload"})]}):(0,n.jsx)("span",{children:o}),p={className:"scenario-block__dialogue__button",key:"button",onClick:d==="tryAgain"?Se()(this.onFocus,this.onTryAgainClick):Se()(this.onFocus,Hn()(this.onClick,[a,c]))};return(0,n.jsx)(ys.F,{children:(0,n.jsx)(ys.B1,{...l,children:(0,n.jsx)("button",{...p,type:"button",children:u})})})}renderDetails(e){const{items:s}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:c}=e,d=(p,f)=>(0,n.jsxs)("span",{children:[p," ",(0,n.jsx)($C,{})," ",f]},p),l=St()(J6(s),({scene:p,slide:f})=>`Scene ${p+1} Slide ${f+1}`),u=(p,{goTo:f,nextSlide:g})=>Rs()([[ps()("next"),Hn()(d,[p,"Next Slide"])],[ps()("end"),Hn()(d,[p,"End of Scenario"])],[hn(),Hn()(d,[p,l(g||{})])]])(f),h=c==="text"?u("Continue",e):a.map((p,f)=>u(f,p));return(0,n.jsxs)("div",{className:"scenario-block__pdf-details",children:[(0,n.jsxs)("h3",{children:["Scene ",o+1," Slide ",r+1]}),h]})}renderDialogue(e,s,o){const{description:r,id:a}=s,c="type"in s?s.type:void 0,{count:d,firstKey:l,hasFeedback:u}=e,h=o===0?a:o,p=o===1?l:o-1,f=o===0&&d===1,g=o===d,v=c==="dialogue"&&(f||g),C=this.dynamicRefs.current[`dialogue-${h}`],E=g&&this.dynamicRefs.current[`dialogue-${p}`],L=C&&C.offsetHeight,x=g&&E&&E.offsetHeight,S=u?30:0,b=window.innerWidth<480?20:30,N=b*2+60+x-S,I=b+60-S,j=Aw()(L+S-60),R=qo.createRef(),P=M()("scenario-block__dialogue",{"scenario-block__dialogue--response":wt()(c),"scenario-block__dialogue--done":o<d-1}),B=Rs()([[We()(f),We()(null)],[ps()(d),We()({top:`${N}px`})],[ps()(d-1),We()({top:`${I}px`})],[ps()(d-2),We()({top:`${j}px`})],[hn(),We()({top:`-${L+30}px`})]]),_={className:P,ref:Z=>{this.dynamicRefs.current[`dialogue-${h}`]=Z},style:B(o)},k={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:R,key:o,timeout:{enter:400,exit:400}},J=(0,n.jsx)("div",{className:"scenario-block__dialogue__bubble","data-scenario-focus":v?"":void 0,tabIndex:v?-1:void 0,children:(0,n.jsx)(Nt,{value:r})});return(0,n.jsx)(ys.B1,{...k,children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{..._,children:Ki(r)&&J})})})}renderDialogues(e){const{activeScene:s,activeSlide:o,slides:r}=this.state,{id:a,responses:c}=e,d=`${s}.${o}`,l=r[d]||{},h=Se()(cl(),ww,mt()(l))(e),{hasFeedback:p,response:f}=l,{feedback:g}=c[f]||{},v=wt()(f)&&vu(c),C=p?h.length-1:h.length,E=(C===1&&Yt()(c)||C===2&&vu(c))&&p,L={count:C,firstKey:Ye()(null,[0,"id"],h),hasFeedback:p&&Ki(g)},x={classNames:"scenario-block__content-",key:a,nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},S=(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom__inner",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__responses",children:(0,n.jsx)(ys.F,{component:"ol",role:"list",children:c.map(this.renderResponse)})})})});return(0,n.jsx)(ys.B1,{...x,children:(0,n.jsx)("div",{className:"scenario-block__dialogues scenario-block__content",children:(0,n.jsxs)("div",{className:"scenario-block__dialogues__inner",children:[(0,n.jsx)("div",{className:"scenario-block__dialogues__top",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__top__inner",children:(0,n.jsx)(ys.F,{children:h.map(this.renderDialogue.bind(this,L))})})}),v&&S,E&&this.renderButton(h[C-1])]})})})}renderEnd(){const{labels:e}=this.props,{scenarioComplete:s,scenarioStartOver:o}=e,r=Se()(this.onFocus,Hn()(this.onClick,["end",null])),a=M()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),c={classNames:"scenario-block__content-",key:"end",nodeRef:this.endRef,timeout:{enter:0,exit:400}};return(0,n.jsx)(ys.B1,{...c,children:(0,n.jsx)("div",{className:a,children:(0,n.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[(0,n.jsx)("div",{className:"scenario-block__text__title",children:(0,n.jsx)("h2",{children:s})}),(0,n.jsxs)("button",{className:"scenario-block__text__end",onClick:r,type:"button",children:[(0,n.jsx)("span",{children:o}),(0,n.jsx)("i",{className:"icon icon-reload"})]})]})},"end")})}renderPose(e,s){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=e,c=n5(e),d=kn()(Ue()("name","style")),l=d(Ue()("value","left_aligned")),u=d(Ue()("value","right_aligned")),h=M()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===c,"scenario-block__character__inner--right":qe()(u,r),"scenario-block__character__inner--left":qe()(l,r)});return(0,n.jsx)("div",{className:h,"data-pose-id":a,children:(0,n.jsx)(An,{alt:"",src:c})},`pose-${s}-${a}`)}renderResponse({description:e},s){const{isPDF:o}=this.props,r=o?Gw:Se()(this.onFocus,Hn()(this.onResponseClick,[s])),a=M()(["scenario-block__response",`scenario-block__response--${s}`]),c=M()("scenario-block__response-item",`scenario-block__response-item--${s}`),d={appear:!0,classNames:"scenario-block__response-item-",key:s,nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},l=(0,n.jsx)("button",{className:a,onClick:r,type:"button",children:(0,n.jsxs)("div",{className:"scenario-block__response__inner",children:[(0,n.jsx)("div",{className:"scenario-block__response__number",children:s+1}),(0,n.jsx)(Nt,{value:e})]})});return(0,n.jsx)(ys.B1,{...d,children:(0,n.jsx)("li",{className:c,role:"listitem",children:l})})}renderText(e){const{description:s,goTo:o,hasCharacter:r,id:a,nextSlide:c}=e,d=this.props.getL10nValue(e.title),{labels:l,settings:u}=this.props,{scenarioContinue:h,scenarioStartOver:p}=l,f=!s&&(d||"").length<22,g=M()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":f}),v={classNames:"scenario-block__content-",key:a,nodeRef:this.textRef,timeout:{enter:0,exit:400}},C=u?.headingLevel,E=C?`h${C}`:"h2",L=(0,n.jsx)("div",{className:"scenario-block__text__title","data-l10n-id":(0,Pt.pP)(e.title),children:(0,n.jsx)(E,{children:d})}),x=(0,n.jsx)("div",{className:"scenario-block__text__description",children:(0,n.jsx)(Nt,{value:s})}),S=Se()(this.onFocus,Hn()(this.onClick,[o,c])),b=(0,n.jsx)("button",{className:"scenario-block__text__continue",onClick:S,type:"button",children:(0,n.jsx)("span",{children:h})}),N=(0,n.jsxs)("button",{className:"scenario-block__text__end",onClick:S,type:"button",children:[(0,n.jsx)("span",{children:p}),(0,n.jsx)("i",{className:"icon icon-reload"})]});return(0,n.jsx)(ys.B1,{...v,children:(0,n.jsx)("div",{className:g,children:(0,n.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[d&&L,s&&x,o==="end"?N:b]})},a)})}resetSlide(e,s){const{slides:o}=this.state,r=`${e}.${s}`,a={hasFeedback:!1,response:null};this.setState({slides:st()(r,a,o)})}resetSlides(){const{items:e}=this.props,s=r=>(a,c,d)=>st()(`${r}.${d}`,{hasFeedback:!1,response:null},a),o=(r,a,c)=>St()(Pe()("slides"),s5(s(c),{}),Rt()(r))(a);this.setState({slides:s5(o,{},e)})}setNextSlide(){const{items:e}=this.props,{activeScene:s,activeSlide:o,slides:r}=this.state,{slides:a}=e[s],{responses:c=[],type:d}=a[o]||{},l=`${s}.${o}`,u=st()("hasFeedback",!0),h=Jt()({[l]:u});d==="dialogue"&&Yt()(c)&&(this.shouldFocus=!0,this.setState({slides:h(r)}))}shouldComponentUpdate(e,s){return e.items!==this.props.items||e.settings!==this.props.settings||s.activeScene!==this.state.activeScene||s.activeSlide!==this.state.activeSlide||s.initiated!==this.state.initiated||s.resizes!==this.state.resizes||s.slides!==this.state.slides||e.labels!==this.props.labels}}const Ww=t=>{const e=(0,It.gY)();return(0,n.jsx)(Vw,{...t,getL10nValue:e})};function Gw(){}var Kw=i(59288);class $w extends Kw.Component{render(){const{animateBlockEntrance:e,isLearner:s,previewType:o}=this.props,r=!wt()(o),d={animateBlockEntrance:r,animateIn:e?"fadeIn":"none",duration:r&&e?1:0,initiallyVisible:!e,isLearner:s,offset:300};return(0,n.jsx)(qt,{className:"block-scenario",children:(0,n.jsx)(zt,{...d,children:(0,n.jsx)(Ww,{...this.props})})})}}var Qw=i(92824),Cu=i.n(Qw);function Zw(t){t&&(t.addEventListener("touchstart",Zr,!0),t.addEventListener("touchmove",Zr,!0),t.addEventListener("touchcancel",Zr,!0),t.addEventListener("touchend",Zr,!0))}function Yw(t){t&&(t.removeEventListener("touchstart",Zr,!0),t.removeEventListener("touchmove",Zr,!0),t.removeEventListener("touchcancel",Zr,!0),t.removeEventListener("touchend",Zr,!0))}function Zr(t){t?.stopPropagation?.()}var Xw=i(59288);const $i=q("playing-card");class Jw extends Xw.Component{titleRef;card;onDragStartRef;onDragMoveRef;onDragEndRef;checkTitleSizeDebounced;resetTimeout;constructor(e){super(e),this.state={isMoving:!1,failed:!1,position:{x:0,y:0},reset:!0,isTooTall:!1,lastHighestOverflowScreenSize:0},this.titleRef=(0,m.createRef)()}componentDidMount(){setTimeout(()=>{this.setState({reset:!1})},300),Zw(this.card),Zo(this.card).draggable({inertia:!0,autoScroll:!1,modifiers:[Zo.modifiers.snap({targets:[(e,s)=>({x:e,y:s})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}).on("dragstart",this.onDragStartRef=this.onStartSortAttempt.bind(this)).on("dragmove",this.onDragMoveRef=this.onDragMove.bind(this)).on("dragend",this.onDragEndRef=this.onEndSortAttempt.bind(this)),this.checkTitleSize(),this.checkTitleSizeDebounced=au()(this.checkTitleSize,250),window.addEventListener("resize",this.checkTitleSizeDebounced.bind(this))}checkTitleSize(){const{titleRef:e,state:{lastHighestOverflowScreenSize:s}}=this,{innerWidth:o}=window,r=e.current&&e.current?.scrollHeight>e.current?.clientHeight,a=o<s;r&&o>s&&this.setState({lastHighestOverflowScreenSize:o}),this.setState({isTooTall:r||a})}componentWillUnmount(){clearTimeout(this.resetTimeout),Yw(this.card),Zo(this.card).off("dragstart",this.onDragStartRef).off("dragmove",this.onDragMoveRef).off("dragend",this.onDragEndRef),window.removeEventListener("resize",this.checkTitleSizeDebounced)}componentDidUpdate(e,s){s.isMoving&&!this.state.isMoving&&(this.setState({failed:!0}),this.resetTimeout=setTimeout(()=>{this.setState({position:{x:0,y:0},failed:!1}),delete this.resetTimeout},300)),e.id!==this.props.id&&this.checkTitleSize()}cardStyle(){const{position:{x:e,y:s}}=this.state,o=`translate3d(${e}px, ${s}px, 0)`;return{WebkitTransform:o,transform:o}}render(){const{isMoving:e,isTooTall:s,failed:o,reset:r}=this.state,{blockSettings:a,id:c,isDeckTopCard:d,title:l}=this.props,u=a?.backgroundType===O.xj.ACCENT||a?.backgroundType===O.xj.IMAGE,{titleRef:h}=this,p=$i("title",{"is-max-length":s}),f=$i({draggable:!0,moving:e,fail:o,reset:r}),g=u?$i("content"):$i("content").mix("brand--border");return(0,n.jsx)("div",{"aria-hidden":!d,className:f,id:c.toString(),ref:v=>{this.card=v},style:this.cardStyle(),onMouseDown:v=>{v.preventDefault()},children:(0,n.jsxs)(Rn,{className:g,children:[(0,n.jsx)(Nt,{ref:h,className:p,value:l}),(0,n.jsx)("div",{className:$i("handle")}),(0,n.jsx)("div",{className:$i("status"),children:(0,n.jsx)("i",{className:"icon icon-check"})})]})},`card-${c}`)}onStartSortAttempt(){this.setState({isMoving:!0,failed:!1})}onDragMove({dx:e,dy:s}){const{position:o}=this.state,r=o.x+e,a=o.y+s;this.setState({position:{x:r,y:a}})}onEndSortAttempt(){this.setState({isMoving:!1})}}const o5=yd("blockSettings")(Jw),xu=q("restart-button"),zh=({allowTabNavigation:t=!0,onClick:e,onFocus:s=Ft.lQ,text:o})=>{const r=xu({}).mix("button");return(0,n.jsx)("button",{"aria-hidden":!t,className:r,onClick:e,onFocus:s,tabIndex:Fr(t),type:"button",children:(0,n.jsxs)("div",{className:xu("content"),children:[(0,n.jsx)("span",{className:xu("text").mix("brand--ui"),children:o}),(0,n.jsx)("i",{"aria-hidden":"true",className:xu("icon").mix("icon").mix("icon-reload")})]})})};var qw=i(59288);const eB=t=>M()("deck",{"deck--complete":Ue()("percentViewed",100,t)}),tB=({progress:t,count:e})=>`${tt()(0,"correctlyAnswered",t)}/${e}`,sB=({item:t,progress:e})=>String(e.lastIncorrectCardId)===String(t.id),nB=Ue()("percentViewed",100);class oB extends qw.Component{static defaultProps={onReplay:Function.prototype};cardRefs;constructor(e){super(e),this.cardRefs=[]}startKeyDrop(){const e=As()(this.cardRefs);e&&e.onStartSortAttempt()}endKeyDrop(){const e=As()(this.cardRefs);e&&e.onEndSortAttempt()}render(){const{count:e,items:s,labels:o,id:r,progress:a,onReplay:c}=this.props,d=nB(a);return(0,n.jsxs)("div",{className:eB(a),children:[(0,n.jsx)("div",{className:"deck__spacer"}),(0,n.jsxs)("div",{"aria-hidden":!d,className:"deck__cardholder",children:[(0,n.jsxs)("div",{className:"deck__title brand--ui",children:[tB({progress:a,count:e})," ",o.sortingCardsCorrect]}),(0,n.jsx)(zh,{allowTabNavigation:d,onClick:Hn()(c,[r]),text:o.sortingReplay})]}),(0,n.jsx)("div",{className:"deck__content",children:s.map((l,u)=>(0,n.jsx)(o5,{id:l.id,isDeckTopCard:this.cardRefs[u]===As()(this.cardRefs),isIncorrect:sB({item:l,progress:a}),ref:h=>{this.cardRefs[u]=h},title:l.title},l.id))})]})}}var rB=i(59288);class aB extends rB.Component{static get defaultProps(){return{onCardDrop:Function.prototype}}titleRef;pileContent;pile;checkTitleSizeDebounced;successTimer;focusOutlineTimer;constructor(e){super(e),this.state={isSuccess:!1,showFocusOutline:!0,isTooTall:!1,lastHighestOverflowScreenSize:0},this.handleDragEnter=this.handleDragEnter.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleMouseDrop=this.handleMouseDrop.bind(this),this.handleKeyboardDrop=this.handleKeyboardDrop.bind(this),this.titleRef=(0,m.createRef)()}focus(){this.pileContent.focus()}componentDidMount(){Zo(this.pile).dropzone({overlap:"pointer"}).on("dragenter",this.handleDragEnter).on("dragleave",this.handleDragLeave).on("drop",this.handleMouseDrop),this.checkTitleSize(),this.checkTitleSizeDebounced=au()(this.checkTitleSize,250),window.addEventListener("resize",this.checkTitleSizeDebounced.bind(this))}componentWillUnmount(){Zo(this.pile).off("dragenter",this.handleDragEnter).off("dragleave",this.handleDragLeave).off("drop",this.handleMouseDrop),clearTimeout(this.successTimer),clearTimeout(this.focusOutlineTimer),window.removeEventListener("resize",this.checkTitleSizeDebounced)}onKeyDown(e){const{onNavigateToNext:s,onNavigateToPrevious:o}=this.props,r=$0(this.handleKeyboardDrop),a=$0(o),c=$0(s);Rs()([[Hr,r],[_r,a],[Ur,c]])(e)}onKeyUp(e){Hr(e)&&this.props.onKeyDropEnd()}handleDragEnter(e){const s=Zo.getElementRect(e.target),o={x:s.left+s.width/2,y:s.top+s.height/2};e.draggable.draggable({snap:{targets:[o]}})}handleDragLeave(e){e.draggable.draggable({snap:{targets:[(s,o)=>({x:s,y:o})]}})}handleMouseDrop(e){e.draggable.draggable({snap:{targets:[(s,o)=>({x:s,y:o})]}}),this.handleDrop()}handleKeyboardDrop(){const{deckTopCard:e,onKeyDropStart:s}=this.props;e&&(s(),this.handleDrop())}handleDrop(){const{lessonId:e,id:s,deckTopCard:o,onCardDrop:r}=this.props,a=o.id.toString(),c=o.pileId===s;r({id:e,itemId:a,isCorrect:c}),c&&(this.setState({activeCard:o,isSuccess:!0,showFocusOutline:!1}),this.successTimer=setTimeout(function(){this.setState({activeCard:null,isSuccess:!1})}.bind(this),1500),this.focusOutlineTimer=setTimeout(function(){this.setState({showFocusOutline:!0})}.bind(this),1300))}checkTitleSize(){const{titleRef:e,state:{lastHighestOverflowScreenSize:s}}=this,{innerWidth:o}=window,r=e&&e.current?.scrollHeight>e.current?.offsetParent?.clientHeight,a=o<s;r&&o>s&&this.setState({lastHighestOverflowScreenSize:o}),this.setState({isTooTall:r||a})}render(){const{title:e}=this.props,{activeCard:s,isSuccess:o,isTooTall:r,showFocusOutline:a}=this.state,{titleRef:c}=this,d=M()("pile",{"drop-success":o}),l=M()("pile__content",{"drop-animating":!a}),u=M()("pile__title",{"pile__title--is-max-length":r});return(0,n.jsx)("div",{className:d,ref:h=>{this.pile=h},children:(0,n.jsx)("div",{className:"pile__wrapwrap",children:(0,n.jsxs)(Rn,{className:"pile__wrap",overrideBackground:!0,children:[(0,n.jsx)("div",{className:"pile__message",children:(0,n.jsx)(Nt,{ref:c,className:u,value:e})}),(0,n.jsx)("div",{className:l,onKeyDown:this.onKeyDown.bind(this),onKeyUp:this.onKeyUp.bind(this),ref:h=>{this.pileContent=h},tabIndex:el,children:s&&(0,n.jsx)(o5,{id:s.id,title:s.title})}),(0,n.jsx)("div",{className:"pile__background"})]})})})}}const iB=aB;var cB=i(59288);const lB=t=>e=>gs()(Ye()(!1,["items",e.id,"isViewed"],t)),dB=({items:t,progress:e})=>Qt()(lB(e),t);class r5 extends cB.Component{pileRefs;deck;constructor(e){super(e),this.state={items:Cu()(e.items)},this.pileRefs=[],this.handleReviewNav=this.handleReviewNav.bind(this)}componentDidMount(){window.addEventListener(ms,this.handleReviewNav)}componentWillUnmount(){window.removeEventListener(ms,this.handleReviewNav)}handleReviewNav(e){const{id:s}=this.props,{blockId:o,cardId:r}=Pc(e.detail.path,["block","card"]);s!==o||!r||this.setState({items:[this.state.items.find(a=>a.id===r),...this.state.items.filter(a=>a.id!==r)]})}UNSAFE_componentWillReceiveProps(e){const s=Pe()("retryAttempts",this.props.progress),o=Pe()("retryAttempts",e.progress);if(s!==o)this.setState({items:Cu()(e.items)});else{const r=e.items.filter(d=>!this.state.items.find(Ue()("id",d.id))),c=this.state.items.filter(d=>e.items.find(Ue()("id",d.id))).map(d=>{const l=e.items.find(u=>u.id===d.id);return{...d,...l}}).concat(r);this.setState({items:c})}}render(){const{items:e}=this.state,{id:s,labels:o,progress:r,onCardDrop:a,onReplay:c,piles:d}=this.props,{sortingLandmark:l}=o,u=dB({items:e,progress:r});return(0,n.jsxs)("div",{"aria-label":l,className:M()("sorting"),role:"group",children:[(0,n.jsx)("div",{className:"sorting__row",children:(0,n.jsx)(oB,{count:e.length,id:s,items:u,labels:o,onReplay:c,progress:r,ref:h=>{this.deck=h}})}),(0,n.jsx)("div",{className:"sorting__row",children:d.map((h,p)=>(0,n.jsx)(iB,{deckTopCard:u&&u[0],id:h.id,lessonId:s,onCardDrop:a,onNavigateToNext:()=>yS({list:this.pileRefs,currentIndex:p}),onNavigateToPrevious:()=>IS({list:this.pileRefs,currentIndex:p}),ref:f=>{this.pileRefs[p]=f},title:h.title,onKeyDropStart:()=>{this.deck.startKeyDrop()},onKeyDropEnd:()=>{this.deck.endKeyDrop()}},h.id))})]})}}const uB=({blockId:t,lessonId:e})=>({itemId:s,isCorrect:o})=>(0,X.JD)((0,pr.i$)({itemId:s,lessonId:e,blockId:t,isCorrect:o})),hB=({blockId:t,lessonId:e})=>()=>(0,X.JD)((0,pr.V9)({lessonId:e,blockId:t})),mB=t=>{const{animateBlockEntrance:e,blockId:s,items:o,labels:r,piles:a,progress:c}=t,d=t.onCardDrop||uB,l=t.onReplay||hB;return(0,n.jsx)(qt,{type:"sorting-activity",children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:!0,children:(0,n.jsx)(r5,{id:s,items:o,labels:r,onCardDrop:d(t),onReplay:l(t),piles:a,progress:Ye()({},["items",s],c)})})})};var a5=i(28079);class pB extends m.Component{static defaultProps={scope:"error-boundary"};constructor(e){super(e),this.state={hasError:!1,prevScope:e.scope}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}static getDerivedStateFromProps(e,s){return s.prevScope!==e.scope?{hasError:!1,error:void 0,prevScope:e.scope}:s}componentDidCatch(e){a5.L.addError(e,{scope:this.props.scope},"source")}render(){const{hasError:e,error:s}=this.state,{FallbackComponent:o}=this.props;return e||s?(0,n.jsx)(o,{}):this.props.children}}const fB=pB,gB=(0,m.lazy)(()=>i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)));function vB(t){const e={};return t.backgroundType==="IMAGE"&&(e["--color-background"]="var(--arc-color-neutral-200, #e6e6e6)"),e.maxWidth=(t.contentWidth??9999)+"rem",e.minWidth="0",e.margin="0 auto",e}function CB({blockumentId:t,manifest:e}){let s=920,o=600;try{const r=e.blockuments?.[t];if(r){const a=e.items?.[r.children[0]?.id];if(a){const c=a.states[a.initialState];if(c){const d=c.width.value,l=c.height.value;typeof d=="number"&&typeof l=="number"&&(s=d,o=l)}}}}catch{}return(0,n.jsx)("svg",{width:s,height:o,className:"block-mondrian__fallback","aria-hidden":"true"})}function xB({blockumentId:t,animateBlockEntrance:e=!0,isLearner:s=!1,offset:o,settings:r}){const a=LB(),c=(0,Me.SQ)();return(0,n.jsx)(qt,{children:(0,n.jsx)(fB,{FallbackComponent:SB,children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:s,offset:o,children:(0,n.jsx)("div",{style:vB(r),children:(0,n.jsx)(m.Suspense,{fallback:(0,n.jsx)(CB,{blockumentId:t,manifest:a}),children:(0,n.jsx)(gB,{blockumentId:t,manifest:a,searchTerm:c.term})})})})})})}const EB=(0,m.memo)(xB,TB);function TB(t,e){return t.blockumentId===e.blockumentId&&t.settings.backgroundType===e.settings.backgroundType&&t.settings.contentWidth===e.settings.contentWidth}function SB(){return null}function LB(){return(0,Me.DX)().mondrian}var i5=i(67750),Vs=i(59288);const bB=q("block-html"),Vh=new Map;window.addEventListener("message",t=>{if(t.origin!==window.origin)return;const e=Vh.get(t.source);e!=null&&c5(t,e)});function c5(t,e){const s=l5(i5.parse(t.data));for(const o of s)switch(o.type){case"notification":e[o.method]?.(o.params);break;default:throw new Error(`Unsupported RPC type "${o.type}"`)}}function*l5(t){if(Array.isArray(t))for(const e of t)yield*l5(e);else yield t}function d5(t,e,s){return Vs.useEffect(()=>{if(t!=null)return Vh.set(t.contentWindow,e),()=>void Vh.delete(t.contentWindow)},[t,e]),Vs.useCallback(r=>{t?.contentWindow.postMessage(r,s)},[t,s])}const Gde=(t,e,s)=>d5(t,s,window.origin),yB=(t,e,s)=>d5(t,s,"*"),IB=(t,e,s)=>{const[o,r]=Vs.useState(()=>new BroadcastChannel(e));return Vs.useEffect(()=>()=>o.close(),[o]),Vs.useEffect(()=>{o.name!==e&&r(new BroadcastChannel(e))},[o,e]),Vs.useEffect(()=>{const c=new AbortController;return o.addEventListener("message",d=>c5(d,s),{signal:c.signal}),()=>c.abort()},[o,s]),Vs.useCallback(c=>{o.postMessage(c)},[o])},NB=nn.isLocalFilesystem?yB:IB;function jB(t){return typeof t=="number"?`${t/10}rem`:"-1px"}const AB={0:"small",1:"medium",2:"full"};function RB(t){const[e]=t.items,s=e.srcdoc,o=e.media?.sandbox?.src==null?void 0:`${e.media.sandbox.src}/index.html`,r=t.settings?.autoResize===!0,a=t.settings?.width??"0",[c,d]=Vs.useState("-1px");Vs.useEffect(()=>{r||d(jB(t.settings?.height))},[r,t.settings?.height]);const[l,u]=Vs.useState(null),[h,p]=Vs.useState(!1),[f,g]=Vs.useState(!1),[v]=Vs.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),C=`lib/sandbox/sandbox.html#channel=${encodeURIComponent(v)}`,E=Vs.useCallback(({message:j})=>{console.error("Sandbox Error",j)},[]),L=Vs.useCallback(()=>{p(!0)},[]),x=Vs.useCallback(()=>{g(h)},[h]),S=Vs.useCallback(({height:j})=>{r&&d(`${j}px`)},[r]),b=Vs.useMemo(()=>({onerror:E,onload:x,onready:L,onresize:S}),[E,L,x,S]),N=NB(l,v,b),I=Vs.useCallback((j,R)=>{if(l==null&&!h)throw new Error("Attempted to send message to sandbox before it is ready");const P=i5.format.notification(j,R);N(P)},[h,l,N]);return Vs.useEffect(()=>{h&&I("onupdate",{autoResize:r,src:o,srcDoc:s})},[r,h,I,o,s]),(0,n.jsx)(qt,{children:(0,n.jsx)("iframe",{className:bB({"auto-resize":r,loaded:f,width:AB[a]}),ref:u,scrolling:r?"no":void 0,sandbox:"allow-popups allow-same-origin allow-scripts",src:C,style:{"--block-html-height":c}},v)})}const Yr=q("timeline-card"),OB=t=>{const{blockId:e,disableZoom:s,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:c,lessonId:d,lessonNumber:l,mediaType:u,audioPosition:h}=t,{settings:p}=a,f=(0,It.QQ)(a.media)??{},g=Ea("rise-audio-release"),v=u==="audio"&&f.audio,C=u==="embed"&&f.embed,E=u==="image"&&f.image,L=u==="video"&&f.video;if(!v&&!C&&!E&&!L&&!(u==="image-with-audio"&&r))return;const S=f.embed?ll(f.embed):void 0,b=!!f.image,N=!!f.audio,I=b?f.image.align:"center",j=Yr("media",{audio:N&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${I}`]:r&&!!I,"audio-on-bottom":N&&!r&&h==="bottom",linkEmbed:S==="link",videoEmbed:S==="video",visual:!r&&b||!wt()(f.video)}),R=p||{};return(0,n.jsx)("div",{className:j,children:(0,n.jsx)(En,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:g&&r,item:a,labels:c,lessonId:d,opts:{disableZoom:s,...R},media:f,pauseOnLoad:!0,lessonNumber:l,renderMediaType:r?void 0:u})})},u5=t=>{const{headingLevel:e,innerRef:s,item:o,isActive:r,loadMedia:a,audioPosition:c,onFocus:d}=t,{id:l}=o,u=Yr({active:r}),h=!!o.date,p=!!o.title,f=e||2,g=`h${f}`,v=`h${f+1}`,C=Ea("rise-audio-release"),E=(0,It.QQ)(o.media)??{},L=wi(E,c,C,!0,"timeline"),x=()=>{if(!E||!a)return null;const S={audio:{item:{...o,media:L.audioOnlyMedia||E},mediaType:"audio"},image:{item:{...o,media:L.imageOnlyMedia||E},mediaType:"image"},video:{item:{...o,media:L.videoOnlyMedia||E},mediaType:"video"},embed:{item:{...o,media:L.embedOnlyMedia||E},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,n.jsx)(n.Fragment,{children:L.renderOrder.map((b,N)=>{if(b==="text")return(0,n.jsx)(Nt,{className:Yr("description"),value:o.description},`text-${N}`);const I=S[b];return I?(0,m.createElement)(OB,{...t,...I,key:`${b}-${N}`}):null})})};return(0,n.jsx)("div",{className:u,"data-id":l,ref:s,children:(0,n.jsx)(Rn,{className:Yr("body"),onFocus:d,children:(0,n.jsx)("div",{className:Yr("main-wrap"),children:(0,n.jsxs)("div",{className:Yr("main"),children:[h&&(0,n.jsx)("div",{className:Yr("date"),children:(0,n.jsx)(g,{children:(0,n.jsx)(wn,{value:o.date})})}),p&&(0,n.jsx)("div",{className:Yr("title"),children:(0,n.jsx)(v,{children:(0,n.jsx)(wn,{value:o.title})})}),x()]})})})})};var Eu=i(7664);const Qi=(0,y.shape)({a11yAnswerLive:y.string,a11yAuthorPrefix:y.string,a11yBlockChartBar:y.string,a11yBlockChartLine:y.string,a11yBlockChartPie:y.string,a11yBlockCode:y.string,a11yBlockEmbed:y.string,a11yBlockFlashcardBack:y.string,a11yBlockFlashcardFront:y.string,a11yBlockFlashcardGrid:y.string,a11yBlockFlashcardStack:y.string,a11yBlockFlashcardStackRoleDescription:y.string,a11yBlockFlashcardStackSlideControls:y.string,a11yBlockFlashcardStackSlideControlsGoToNext:y.string,a11yBlockFlashcardStackSlideControlsGoToPrevious:y.string,a11yBlockFlashcardStackSlideControlsGoToSlide:y.string,a11yBlockFlashcardStackSlidePreposition:y.string,a11yBlockFlashcardStackSlideRoleDescription:y.string,a11yBlockKnowledgeCheck:y.string,a11yBlockKnowledgeCheckFIB:y.string,a11yBlockKnowledgeCheckM:y.string,a11yBlockKnowledgeCheckMC:y.string,a11yBlockKnowledgeCheckMR:y.string,a11yBlockProcessCarousel:y.string,a11yBlockProcessRoleDescription:y.string,a11yBlockProcessSlideControls:y.string,a11yBlockProcessSlideControlsGoToNext:y.string,a11yBlockProcessSlideControlsGoToPrevious:y.string,a11yBlockProcessSlideControlsGoToSlide:y.string,a11yBlockProcessSlideControlsIntroduction:y.string,a11yBlockProcessSlideControlsSummary:y.string,a11yBlockProcessSlidePreposition:y.string,a11yBlockProcessSlideRoleDescription:y.string,a11yBlockQuoteCarousel:y.string,a11yBlockQuoteCarouselRoleDescription:y.string,a11yBlockQuoteCarouselSlideControls:y.string,a11yBlockQuoteCarouselSlideControlsGoToNext:y.string,a11yBlockQuoteCarouselSlideControlsGoToPrevious:y.string,a11yBlockQuoteCarouselSlideControlsGoToSlide:y.string,a11yBlockQuoteCarouselSlidePreposition:y.string,a11yBlockQuoteCarouselSlideRoleDescription:y.string,a11yBlockStoryline:y.string,a11yBlockTimeline:y.string,a11yCarouselNext:y.string,a11yCarouselPrevious:y.string,a11yCertificateDownloadFailed:y.string,a11yCorrectLive:y.string,a11yCoverCourseCompleted:y.string,a11yCoverCourseLength:y.string,a11yCoverRequirementComplete:y.string,a11yCoverRequirementFailed:y.string,a11yCoverRequirementIncomplete:y.string,a11yExcelIcon:y.string,a11yFileIcon:y.string,a11yGroupAudioPlayer:y.string,a11yGroupScenario:y.string,a11yGroupVideoPlayer:y.string,a11yLabeledGraphicBlock:y.string,a11yLabeledGraphicButtonMarker:y.string,a11yLabeledGraphicIconPlus:y.string,a11yLabeledGraphicIconDot:y.string,a11yLabeledGraphicIconInformation:y.string,a11yLabeledGraphicIconQuestion:y.string,a11yLabeledGraphicIconCheck:y.string,a11yLabeledGraphicIconX:y.string,a11yLabeledGraphicIconHeart:y.string,a11yLabeledGraphicIconPin:y.string,a11yLabeledGraphicIconArrowLeft:y.string,a11yLabeledGraphicIconArrowRight:y.string,a11yLabeledGraphicIconArrowUp:y.string,a11yLabeledGraphicIconArrowDown:y.string,a11yLabeledGraphicIconArrowUpLeft:y.string,a11yLabeledGraphicIconArrowUpRight:y.string,a11yLabeledGraphicIconArrowDownLeft:y.string,a11yLabeledGraphicIconArrowDownRight:y.string,a11yLabeledGraphicUnviewed:y.string,a11yLabeledGraphicViewed:y.string,a11yMatchingItemMatchedWith:y.string,a11yMatchingItemMatchWith:y.string,a11yMatchingItemSelectableItem:y.string,a11yMediaPause:y.string,a11yMediaPlay:y.string,a11yMediaSeek:y.string,a11yNavigationMenuClose:y.string,a11yNavigationMenuOpen:y.string,a11yPDFIcon:y.string,a11yPPTIcon:y.string,a11yQuizFailed:y.string,a11yQuizFeedback:y.string,a11yQuizPassed:y.string,a11yQuizReviewCorrectlyChecked:y.string,a11yQuizReviewCorrectlySelected:y.string,a11yQuizReviewCorrectlyUnchecked:y.string,a11yQuizReviewCorrectlyUnselected:y.string,a11yQuizReviewIncorrectlyChecked:y.string,a11yQuizReviewIncorrectlySelected:y.string,a11yQuizReviewIncorrectlyUnchecked:y.string,a11yQuizReviewIncorrectlyUnselected:y.string,a11yRegionMainLesson:y.string,a11yRegionMainOverview:y.string,a11yRegionNavLesson:y.string,a11yRegionNavOverview:y.string,a11yRestrictedNav:y.string,a11yRTFIcon:y.string,a11ySearchClose:y.string,a11ySearchInput:y.string,a11ySearchOpen:y.string,a11yStatusAdditionalContent:y.string,a11yStatusContinued:y.string,a11yUnzoomImage:y.string,a11yWordIcon:y.string,a11yZipIcon:y.string,a11yZoomImage:y.string,courseStart:y.string,courseResume:y.string,courseExit:y.string,courseHome:y.string,courseSkipToLesson:y.string,lessonName:y.string,lessonPreposition:y.string,lessonComplete:y.string,lessonRestricted:y.string,quizStart:y.string,quizQuestion:y.string,quizSubmit:y.string,quizRequireAnswer:y.string,quizNext:y.string,quizIncorrect:y.string,quizCorrect:y.string,quizResults:y.string,quizScore:y.string,quizPassing:y.string,quizTakeAgain:y.string,quizTimerElapsed:y.string,quizTimerExpired:y.string,quizTimerExpiredAction:y.string,quizTimerExpiredMessage:y.string,quizTimerHide:y.string,quizTimerLimit:y.string,quizTimerMinute:y.string,quizTimerMinutePlural:y.string,quizTimerRemaining:y.string,quizTimerShow:y.string,quizAcceptableResponses:y.string,quizAnswerPlaceholder:y.string,quizRequirePassingScore:y.string,quizContinue:y.string,processStepName:y.string,processStepPreposition:y.string,processNextStep:y.string,processLessonName:y.string,processComplete:y.string,processStart:y.string,processStartAgain:y.string,processSwipe:y.string,sortingCardsCorrect:y.string,sortingReplay:y.string,embedViewOn:y.string,embedReadMore:y.string,blocksClickToFlip:y.string,blocksPreposition:y.string,salutation:y.string,exitMessage:y.string,overviewPageTitleSuffix:y.string,labeledGraphicMarkerLabel:y.string,seekSliderLabel:y.string,playButtonLabel:y.string,pauseButtonLabel:y.string,embedPlayerGroup:y.string,embedLinkGroup:y.string,numberedDividerGroup:y.string,processLandmark:y.string,sortingLandmark:y.string,search:y.string,result:y.string,results:y.string,noResults:y.string,scenarioTryAgain:y.string,scenarioContinue:y.string,scenarioComplete:y.string,scenarioStartOver:y.string,progressPieUnstarted:y.string,progressPieCompleted:y.string,progressPieClickToComplete:y.string,progressPieClickToReset:y.string,progressPieQuizFailed:y.string,certificateDownload:y.string,certificateDownloadInProgress:y.string,certificateRetryDownload:y.string,coverCompleteAllLessons:y.string,coverCompleteLessonsName:y.string,coverCompleteLessonsPreposition:y.string,coverCompleteLessonsInCourse:y.string,coverCompleted:y.string,coverCourseRequirements:y.string,coverHour:y.string,coverHours:y.string,coverLesson:y.string,coverLessons:y.string,coverMinute:y.string,coverMinutes:y.string,coverNoAttemptsRemaining:y.string,coverPublished:y.string,coverQuizScoreOf:y.string,coverQuizPercentOrHigher:y.string,progressSummary:y.string,progressSummaryBackToLearning:y.string,progressSummaryCompleted:y.string,progressSummaryCongratulations:y.string,progressSummaryNextUp:y.string,progressSummaryNoTitle:y.string,progressSummaryPercentComplete:y.string,progressSummaryRequirementsMet:y.string,progressSummaryStartOver:y.string,curtainLoading:y.string,curtainOffline:y.string,curtainOfflineReconnecting:y.string,curtainSessionTimedOut:y.string,curtainSessionTimedOutRestart:y.string,curtainSessionTimedOutRefresh:y.string,curtainSomethingWrong:y.string,curtainSomethingWrongTryAgain:y.string,curtainSomethingWrongRefresh:y.string});var PB=i(59288);class MB extends PB.Component{static get defaultProps(){return{onEnter:Function.prototype,onLeave:Function.prototype,progress:{}}}static propTypes={blockId:A().oneOfType([A().string,A().number]),enableVideoPlaybackSpeed:A().bool,id:A().any.isRequired,items:A().array.isRequired,labels:Qi.isRequired,lessonId:A().oneOfType([A().string,A().number]),onEnter:A().func.isRequired,onLeave:A().func.isRequired,progress:A().object.isRequired};onEnterMarker(e,s,{previousPosition:o}){const{id:r,onEnter:a}=this.props;o===Eu.A.below&&a({id:r,payload:{activeIndex:e,itemId:s}})}onMarkerLeave(e,{currentPosition:s,previousPosition:o}){const{id:r,items:a,onLeave:c}=this.props,d=e-1;if(s===Eu.A.below&&o===Eu.A.inside&&d>-1){const l=r3()(d,a);l&&c({id:r,payload:{activeIndex:d,itemId:l.id}})}}onFocus(e,s){const{id:o,onEnter:r}=this.props;r({id:o,payload:{activeIndex:e,itemId:s}})}isActive(e){const{progress:s}=this.props;return ps()(Pe()("activeIndex",s),e)}render(){const{blockId:e,enableVideoPlaybackSpeed:s,id:o,index:r,item:a,labels:c,lessonId:d}=this.props,l=this.onFocus.bind(this,r,a.id);return(0,n.jsx)(Eu.A,{bottomOffset:"60%",onEnter:this.onEnterMarker.bind(this,r,a.id),onLeave:this.onMarkerLeave.bind(this,r),topOffset:"30%",children:(0,n.jsx)(u5,{blockId:e,enableVideoPlaybackSpeed:s,headingLevel:a.settings?.headingLevel,isActive:this.isActive(r),item:a,labels:c,lessonId:d,loadMedia:!0,onFocus:l,lessonNumber:o})})}}const Tl=q("timeline"),DB=t=>{const{audioPosition:e,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,isBlock:c,isLearner:d,item:l,labels:u,lessonId:h,onFocus:p}=t,f=(0,n.jsx)(u5,{blockId:a,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:l,labels:u,lessonId:h,loadMedia:!0,onFocus:p,lessonNumber:a,audioPosition:e});return c&&d?(0,n.jsx)(zt,{animateBlockEntrance:!0,animateIn:"fadeIn",className:Tl("animate").toString(),isLearner:!0,children:f}):c&&!d?f:(0,n.jsx)(MB,{...t})},h5=t=>{const{id:e,items:s,labels:o,onEnter:r=Function.prototype,settings:a={}}=t,c=(0,m.useRef)(null),d=(0,m.useCallback)((l,u)=>{r({id:e,payload:{activeIndex:l,itemId:u}})},[e,r]);return(0,m.useEffect)(()=>{function l(u){const{blockId:h,cardId:p}=Pc(u.detail.path,["block","card"]);if(h!==e)return;const f=c.current.querySelector(`[data-id="${p}"]`);f&&!u1(f,"center")&&f.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(ms,l),()=>{window.removeEventListener(ms,l)}}),(0,n.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",role:"group",ref:c,children:(0,n.jsx)("div",{className:Tl("wrapper"),children:(0,n.jsx)("div",{className:Tl(),children:(0,n.jsx)("ul",{className:Tl("container"),role:"list",children:s.map((l,u)=>(0,n.jsx)("li",{className:Tl("card-wrapper"),role:"listitem",children:DB({index:u,item:l,onFocus:d,...t,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},u))})})})})},kB=t=>{const{animateBlockEntrance:e,blockId:s,enableVideoPlaybackSpeed:o,isLearner:r=!0,items:a,labels:c,lessonId:d,settings:l}=t;return(0,n.jsx)(qt,{type:"timeline",children:(0,n.jsx)(zt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:!0,children:(0,n.jsx)(h5,{enableVideoPlaybackSpeed:o,id:s,isBlock:!0,isLearner:r,items:a,labels:c,lessonId:d,settings:l})})})};var m5=i(77726),wB=i(47707),p5=i.n(wB),mn=i(45129);const Wh=t=>t.displayName||t.name||"Component";var BB=i(41895),_B=i.n(BB);const UB=(t,e)=>(0,n.jsx)("mark",{children:t},e),HB=(t,e)=>_B()(new RegExp($M()(e),"igm"),UB,t),FB=hr()(HB),zB=(t,e)=>e.reduce((s,o)=>s+o[t],0),Yde=Es()(zB);var VB=i(69366),WB=i.n(VB),GB=i(64011),vr=i.n(GB),KB=i(70477),$B=i.n(KB),QB=i(58800),Gh=i.n(QB),ZB=i(60708),YB=i.n(ZB),XB=i(85772),f5=i.n(XB);const JB=t=>t===-1,qB=t=>t>=0,e_=vr()(3,(t,e,s)=>tu()(t,s,e)),Kh=vr()(3,(t,e,s)=>s[t]==e),Xde=vr()(3,(t,e,s)=>St()(Ts()(Kh("id",e)),Fs()(JB,We()(s),e_(t,s)))(s)),Jde=t=>filter(complement(Kh("id",t))),qde=vr()(3,(t,e,s)=>$B()(e,s[t],YB()(t,1,s))),t_=hr()((t,e,s)=>Object.assign([],s,{[t]:s[e],[e]:s[t]})),s_=([t,e])=>ps()(Number(t),Number(e)),eue=Z3()(s_),tue=t=>(e,[s,o])=>{const r=indexOf(Number(s),e),a=indexOf(Number(o),t);return r===a?e:t_(r,a,e)};function n_(t,e){const s=[];for(const o of e)if(s.push(o),t(o))break;return s}const sue=vr()(2,(t,e)=>Se()(Uh(),ws()(tu()(t,1)),f5())(e)),o_=vr()(2,(t,e)=>Se()(Uh(),Qt()(WB()(t)),f5())(e)),g5=vr()(2,(t,e)=>Se()(dh(),o_((s,o)=>e(o)))(t)),v5=vr()(2,(t,e)=>Qt()(Se()(Eo()(on())(e),t))),r_=b1()(Gh()(Vi(),0)),C5=Se()(Array.from,Array),x5=hr()((t,e)=>C5(e).map(()=>t)),a_=hr()((t,e,s,o)=>C5(s).map((r,a)=>a===o?e:t)),nue=vr()(3,(t,e,s)=>St()(Ts()(Kh(t,e)),qB)(s));function oue(t,e,s){if(e>=s.length)return s.slice(0);const o=Math.floor(e/2),r=Math.ceil(e/2),a=t-o,c=t+r;return c>s.length?s.slice(s.length-e):a>=0?s.slice(a,c):s.slice(0,e)}const Tu=(t,e)=>{const s=Math.min(t.length,e.length),o=new Array(s);for(let r=0;r<s;r++)o[r]=[t[r],e[r]];return o};var E5=i(92886);const i_=matchMedia("(forced-colors: active)");function cn(){return i_.matches}const c_=({activeIndex:t,values:e,opts:s})=>{const{background:o,variant:r}=Dn(),{backgroundType:a,chartColor:c,lineCurve:d}=rn(),l=qn(),u=(0,Me.kJ)(),h=s?.defaultFontColor,p=a===O.xj.IMAGE,g=(0,It.QQ)(o?.media)?.image?.overlayColor??O.df.DARK,v=cn();let C=c??u,E=l||"#fff";!c&&a===O.xj.ACCENT||c===E?C=h:p&&(C=g===O.df.DARK?"#fff":"#000",E=g===O.df.DARK?"#000":"#fff"),v&&(C="Highlight",E="Canvas");let L=C,x=Array(e.length).fill(C);if(t!=null&&!v){const S=p&&g===O.df.LIGHT?.2:.7,b=(0,E5.A)(C,E,S);L=b,x=a_(b,C,e.length,t)}return r==="bar"?{backgroundColor:x,data:e,hoverBackgroundColor:x}:{borderColor:L,cubicInterpolationMode:d==="linear"?"default":"monotone",data:e,lineTension:d==="linear"?0:void 0,pointBackgroundColor:x,pointBorderColor:x,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:C,pointHoverBorderColor:C,pointHoverBorderWidth:0,pointRadius:4}};function l_({activeIndex:t,children:e,opts:s,values:o}){const r=c_({activeIndex:t,opts:s,values:o});return e(r)}class d_ extends m.PureComponent{constructor(e){super(e),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this)}handleMouseEnter(){const{index:e,onEvent:s}=this.props;s(e)}handleMouseLeave(){const{onEvent:e}=this.props;e(null)}render(){const{activeIndex:e,identifier:s,index:o,label:r,value:a}=this.props,c=e!=null&&e!==o,d=M()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":c});return(0,n.jsxs)("div",{className:d,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsxs)("dt",{className:"block-chart__cartesianLegendTerm",children:[s,"."]}),(0,n.jsxs)("dd",{className:"block-chart__cartesianLegendDefn","data-l10n-id":r.l10nId,children:[r.label,(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnPipe",children:"|"}),(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const u_=d_,h_=({activeIndex:t,labels:e,letters:s,onEvent:o,values:r})=>{const a=Tu(s,Tu(e,r));return a.length===0?null:(0,n.jsx)("dl",{"aria-hidden":"true",className:"block-chart__cartesianLegend",children:a.map(([c,[d,l]],u)=>(0,n.jsx)(u_,{activeIndex:t,identifier:c,index:u,label:d,onEvent:o,value:l},c))})},m_=(0,m.memo)(h_);var p_=i(79418),f_=i.n(p_);function g_(t){const e=this.getLabelForValue(t),s=15,o=e.split(" "),r=[];let a="";return o.forEach(c=>{(a+c).length>s?(r.push(a),a=c):a+=(a.length>0?" ":"")+c}),r.push(a),r}const v_={animation:{},barPercentage:.5,defaultFontFamily:'"lato", sans-serif',elements:{arc:{},bar:{},line:{borderWidth:2,fill:!1}},layout:{padding:{bottom:0,left:0,right:0,top:50}},maxBarThickness:60,plugins:{datalabels:{display:!1},legend:{display:!1,labels:{}},tooltip:{animation:!0,boxPadding:"14px 10px",callbacks:{label:()=>null,title:t=>{const{label:e,formattedValue:s}=t[0];return`${e}: ${s}`}},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom"}},responsive:!1,scales:{x:{border:{display:!1},grid:{display:!1,offset:!0},offset:!0,ticks:{autoSkip:!1,callback:g_,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function C_({values:t,contrastColor:e}){const{backgroundType:s}=rn(),o=Dn(),r=s===O.xj.IMAGE,a=(0,m.useMemo)(()=>r_(t),[t]);let c,d;const u=(0,It.QQ)(o?.background?.media)?.image?.overlayColor??O.df.DARK,h=r&&u===O.df.LIGHT;switch(s){case O.xj.LIGHT:case O.xj.GRAY:case O.xj.TINT:[c,d]=["#e1e1e1","#c9c9c9"];break;case O.xj.DARK:case O.xj.BLACK:case O.xj.IMAGE:[c,d]=["#ffffff80","#ffffffe9"];break;case O.xj.ACCENT:case O.xj.COLOR:{[c,d]=e==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&h&&([c,d]=["#00000080","#0000001a"]),a||(d=c),[c,d]}const x_=({onEvent:t,reduceMotion:e,shouldAnimate:s,values:o})=>{const r=qn(),{backgroundType:a,customBackgroundColorContrast:c}=rn(),d=(0,Me.DX)(),l=(0,Me.kJ)(),u=d?.theme?.accentContrast,h=a===O.xj.IMAGE,p=Dn(),f=cn(),g=(0,ct.cP)(r)?O.Em.LIGHT:O.Em.DARK,v=!c&&p?.family==="chart",C=c??O.Em.DARK,E=v?g:C,x=(0,It.QQ)(p?.background?.media)?.image?.overlayColor??O.df.DARK,S=h&&x===O.df.LIGHT,b=a===O.xj.ACCENT||a===O.xj.COLOR,N=a===O.xj.ACCENT?l:r,I=a===O.xj.ACCENT?u:E,j=jn({backgroundColor:N,contrast:I}),[R,P]=C_({values:o,contrastColor:j}),B=(0,m.useCallback)(k=>f&&h?S?"#000000":"#FFFFFF":k.tick.value===0?P:R,[R,f,P,h,S]);return(0,m.useMemo)(()=>{let k="#000";if(f)h?k=S?"#000000":"#FFFFFF":k="FieldText";else{switch(a){case O.xj.DARK:case O.xj.BLACK:case O.xj.IMAGE:k="#fff";break}b&&(k=j),h&&S&&(k="#000")}const J=s&&!e?1e3:0;let Z,G;f?h?(Z=k,G=S?"#FFFFFF":"#000000"):(Z="Highlight",G="HighlightText"):(Z=k,G=k==="#000"||k==="#000000"||k===O.Em.DARK?"#FFFFFF":"#000000");const Y=f_()(v_);return Y.animation.duration=J,Y.defaultFontColor=k,Y.onClick=t,Y.onHover=t,Y.plugins.tooltip.animation=!e,Y.plugins.tooltip.backgroundColor=Z,Y.plugins.tooltip.titleColor=G,f&&!h?(Y.scales.x.grid.color="FieldText",Y.scales.y.grid.color="FieldText"):(Y.scales.x.grid.color=R,Y.scales.y.grid.color=B),Y.scales.x.ticks.color=k,Y.scales.y.ticks.color=k,f&&(h?Y.plugins.legend.labels.color=S?"#000000":"#FFFFFF":Y.plugins.legend.labels.color="FieldText"),Y},[a,j,R,b,f,h,S,t,e,B,s])};function E_(t){const{children:e,onEvent:s,reduceMotion:o,shouldAnimate:r,values:a}=t,c=x_({onEvent:s,reduceMotion:o,shouldAnimate:r,values:a});return e(c)}const T5=({caption:t,labels:e,values:s})=>{const o=(0,m.useMemo)(()=>Tu(e,s),[e,s]);return(0,n.jsxs)("table",{className:"visually-hidden-always",children:[(0,n.jsx)("caption",{children:t}),(0,n.jsx)("tbody",{children:o.map(([r,a],c)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"row",children:r.label}),(0,n.jsx)("td",{children:a})]},`row-${c}`))})]})};var T_=i(76063),$h=i.n(T_);const S_=/<mark>|<\/mark>/gm,L_=t=>e=>{const s=t(e?.type).replace(S_,"")??"";return{label:$h()(s,{length:30}),l10nId:(0,Pt.pP)(e?.type)}},b_=t=>parseFloat(t.value??"0"),S5=(t,e)=>({labels:t.map(L_(e)),values:t.map(b_)}),L5=(t,e,s)=>{const o=$h()(e,{length:t});return s?FB(o,s):o},b5=t=>{class e extends m.PureComponent{static displayName=`ChartEvents(${Wh(t)})`;constructor(o){super(o),this.state={activeIndex:null}}handleEvent=o=>{this.setState({activeIndex:o})};render(){return(0,n.jsx)(t,{...this.props,activeIndex:this.state.activeIndex,onEvent:this.handleEvent})}}return e},y5=t=>{class e extends m.PureComponent{static displayName=`ChartUpdater(${Wh(t)})`;chartRef;constructor(o){super(o),this.chartRef=(0,m.createRef)()}componentDidMount(){this.resize(),this.update()}componentDidUpdate(){this.update()}handleResize=()=>{this.resize(),this.update()};resize=()=>{this.chartRef.current?.resize()};update=()=>{this.chartRef.current?.update()};render(){return(0,n.jsx)(t,{...this.props,onResize:this.handleResize,chartRef:this.chartRef})}}return e},y_="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");mn.t1.register(mn.A6,mn.E8,mn.PP,mn.s$,mn.ZT,mn.No,mn.kc,mn.FN,mn.hE,mn.m_);class I_ extends m.PureComponent{wrapRef;resizeObserver;constructor(e){super(e),this.wrapRef=(0,m.createRef)(),this.state={labelYTop:"50%"}}componentDidMount(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.wrapRef.current)}componentWillUnmount(){this.resizeObserver.unobserve(this.wrapRef.current)}handleEvent=(e,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};handleResize=()=>{requestAnimationFrame(()=>{this.props.onResize(),this.setLabelYTop()})};setLabelYTop=()=>{const e=this.props.chartRef.current;if(e){const{bottom:s,top:o}=e?.scales?.["y-axis-0"]??{};p5()(s)&&p5()(o)&&this.setState({labelYTop:`${(s+o)/2}px`})}};render(){const{props:{activeIndex:e,chartRef:s,getL10nValue:o,isDesktop:r,isVisible:a,items:c,itemsLabel:d,labels:l,onEvent:u,search:h,shouldAnimate:p,valuesLabel:f,variant:g},state:{labelYTop:v}}=this,C=L5(80,o(d),h),E=L5(30,o(f),h),L=S5(c,o),x=r?[]:y_.slice(0,c.length),S=r?L.labels:x.map(R=>({label:R})),b=a?L.values:x5(0,c.length),N=l?.[g==="bar"?"a11yBlockChartBar":"a11yBlockChartLine"],I=S.map(R=>R.label),j=S.map(R=>R.l10nId).join(",");return(0,n.jsxs)("div",{className:"block-chart__cartesian",children:[(0,n.jsxs)("div",{"aria-hidden":"true",className:"block-chart__cartesianChart",ref:this.wrapRef,children:[(0,n.jsx)(E_,{onEvent:this.handleEvent,reduceMotion:Js(),shouldAnimate:p,values:b,children:R=>(0,n.jsx)(l_,{activeIndex:e,values:b,opts:R,children:P=>(0,n.jsx)(m5.t1,{data:{labels:I,datasets:[P]},options:R,ref:s,type:g,updateMode:"default","data-l10n-id":j})})}),E&&Ma(E)&&(0,n.jsx)("div",{"data-l10n-id":(0,Pt.pP)(f),className:"block-chart__cartesianLabelY",style:{insetInlineEnd:v},children:E})]}),C&&Ma(C)&&(0,n.jsx)("div",{"data-l10n-id":(0,Pt.pP)(d),"aria-hidden":"true",className:"block-chart__cartesianLabelX",children:C}),!r&&(0,n.jsx)(m_,{activeIndex:e,labels:L.labels,letters:x,onEvent:u,values:b}),(0,n.jsx)(T5,{caption:N,labels:S,values:b})]})}}const N_=t=>({search:t?.search?.term??""});function j_(t){const e=cs(t),s=y5(e),o=H4(960,"isDesktop","Desktop")(s),r=b5(o);return(0,Hs.Ls)(N_)(r)}const A_=j_(I_);var R_=i(72624);const Qh=({valueType:t,value:e,values:s})=>t==="numeric"?String(e):pM(e/Ff(s)),O_=t=>{if(cn())return"FieldText";const e=t.dataset.backgroundColor[t.dataIndex]??"#000";return(0,ct.xD)(e)===O.Em.DARK?$e.S6.DARK:$e.S6.LIGHT},P_=(t,e,s)=>Qh({valueType:t,value:e,values:s.dataset.data}),M_=(t,e)=>{const{label:s,dataset:o,parsed:r}=e[0],a=Qh({valueType:t,value:r,values:o.data});return`${s}: ${a}`},D_=(t,e)=>{const s=e.dataIndex,o=e.dataset.data??[1],r=o[s],a=t==null&&r/Ff(o)>=.06;return t===s||a},k_=({activeIndex:t,onEvent:e,reduceMotion:s,settings:{valueType:o},shouldAnimate:r})=>{const a=cn();return{animation:{animateRotate:r&&!s,duration:r&&!s?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:e,onHover:e,maintainAspectRatio:!1,plugins:{datalabels:{color:O_,display:D_.bind(null,t),font:{size:12,weight:"bold"},formatter:P_.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!s,boxPadding:"14px 10px",callbacks:{label:()=>null,title:M_.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":$e.S6.LIGHT,titleColor:a?"HighlightText":$e.S6.DARK}},responsive:!1,rotation:130}},w_=({activeIndex:t,colors:e,hasBorder:s,values:o})=>{const r=qn(),a=cn(),c=t==null?e:e.map((d,l)=>l===t?d:(0,E5.A)(d,r||"#fff",.5));return a?{backgroundColor:c,hoverBackgroundColor:c,borderWidth:.5,borderColor:"rgba(255, 255, 255, 0.3)",data:o}:{backgroundColor:c,hoverBackgroundColor:c,borderWidth:0,data:o,...s&&{borderWidth:1,borderColor:"#000"}}};function B_({activeIndex:t,children:e,colors:s,hasBorder:o,values:r}){const a=w_({activeIndex:t,colors:s,hasBorder:o,values:r});return e(a)}class __ extends m.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,backgroundColor:s,index:o,label:r}=this.props,a=e!=null&&e!==o,c=M()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":a});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:s,focusable:"false",viewBox:"0 0 10 10",children:(0,n.jsx)("rect",{width:"10",height:"10",rx:"1.5"})}),(0,n.jsx)("div",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]})}}const U_=__,H_=({activeIndex:t,colors:e,hasBorder:s,labels:o,onEvent:r})=>{const a=Tu(o,e);if(a.length===0)return null;const c=M()("block-chart__circleLegend",{"block-chart__circleLegend--border":s});return(0,n.jsx)("div",{"aria-hidden":"true",className:c,children:a.map(([d,l],u)=>(0,n.jsx)(U_,{activeIndex:t,backgroundColor:l,index:u,onEvent:r,label:d},d.label))})},F_=(0,m.memo)(H_),z_=(t,e)=>{const s=t.filter(a=>Number(a.value)>=0),o=S5(s,e),r=s.map(a=>a.color);return{...o,colors:r}};mn.t1.register(mn.Bs,R_.A,mn.s$,mn.P$,mn.m_);class V_ extends m.PureComponent{wrapRef;resizeObserver;constructor(e){super(e),this.wrapRef=(0,m.createRef)()}componentDidMount(){this.resizeObserver=new ResizeObserver(this.props.onResize),this.resizeObserver.observe(this.wrapRef.current)}componentWillUnmount(){this.resizeObserver.unobserve(this.wrapRef.current)}buildOptions=()=>{const{activeIndex:e,settings:s,shouldAnimate:o}=this.props;return k_({activeIndex:e,onEvent:this.handleEvent,reduceMotion:Js(),settings:s,shouldAnimate:o})};handleEvent=(e,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};render(){const{activeIndex:e,backgroundColor:s,chartRef:o,getL10nValue:r,isVisible:a,items:c,labels:d,onEvent:l,settings:u}=this.props,{colors:h,labels:p,values:f}=z_(c,r),g=a?f:x5(0,c.length),v=this.buildOptions(),C=d?.a11yBlockChartPie,E=g.map(S=>Qh({valueType:u.valueType,value:S,values:g})),L=p.map(S=>S.label),x=h.includes(s);return(0,n.jsxs)("div",{className:"block-chart__circle",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"block-chart__circleChart",ref:this.wrapRef,children:(0,n.jsx)(B_,{activeIndex:e,colors:h,hasBorder:x,values:g,children:S=>(0,n.jsx)(m5.t1,{data:{labels:L,datasets:[S]},options:v,ref:o,type:"pie",updateMode:"default"})})}),(0,n.jsx)(F_,{activeIndex:e,colors:h,hasBorder:x,labels:p,onEvent:l}),(0,n.jsx)(T5,{caption:C,labels:p,values:E})]})}}function W_(t){const e=iS()(t),s=y5(e),o=b5(s);return cs(o)}const G_=W_(V_),K_=t=>(0,ct.cP)(t.backgroundColor);class $_ extends m.PureComponent{constructor(e){super(e),this.state={isVisible:!1}}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||Js()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:e}=this.props;return(0,n.jsx)(Nt,{value:e})};render(){const{props:{animateBlockEntrance:e,children:s,editable:o,isLearner:r,items:a,itemsLabel:c,labels:d,settings:l,title:u,valuesLabel:h,variant:p,renderTitle:f=this.renderTitle},state:{isVisible:g}}=this,v=K_(l),C=l?.headingLevel,E=C?`h${C}`:"h2";return(0,n.jsx)(qt,{type:"chart",children:(0,n.jsx)(zt,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:!e||Js(),isLearner:r,children:(0,n.jsx)("div",{className:"block-chart__container",children:(0,n.jsx)("div",{className:"block-chart__row",children:(0,n.jsxs)("div",{className:"block-chart__rowInner",children:[(!o&&u||o)&&(0,n.jsx)(E,{className:"block-chart__title",children:f()}),(0,n.jsx)("div",{className:"block-chart__chart",children:ie().cloneElement(ie().Children.only(s),{hasDarkBgColor:v,isVisible:g,items:a,itemsLabel:c,labels:d,settings:l,shouldAnimate:e,valuesLabel:h,variant:p})})]})})})})})}}const Q_=$_;function I5(t){const e=s=>(0,n.jsx)(Q_,{...s,children:(0,n.jsx)(t,{})});return e.displayName=`ChartWrap(${Wh(t)})`,e}const Z_=I5(A_),Y_=I5(G_),X_=t=>(0,n.jsx)("div",{className:"unsupported-block",...t,children:(0,n.jsxs)("span",{children:["We no longer support this block, so you can safely delete it. If you have any questions, please ",(0,n.jsx)("a",{href:"https://access.articulate.com/support/contact",children:"contact Articulate Support."})]})});var J_=i(59288);const q_=Qt()(Ue()("variant","storyline")),eU=St()(q_,us(),ir()(1));class tU extends J_.Component{render(){const{dividerNumber:e,family:s,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:c}=this.props,l={...Ps()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:c,partnerContent:r};return Ge("text","paragraph",l)||Ge("text","table",l)?(0,n.jsx)(aR,{...l}):Ge("text","heading paragraph",l)?(0,n.jsx)(hR,{...l}):Ge("text","subheading paragraph",l)?(0,n.jsx)(mR,{...l}):Ge("text","heading",l)?(0,n.jsx)(dR,{...l}):Ge("text","subheading",l)?(0,n.jsx)(uR,{...l}):Ge("text","two column",l)?(0,n.jsx)(iR,{...l}):Ge("text","three column",l)?(0,n.jsx)(cR,{...l}):Ge("text","four column",l)?(0,n.jsx)(lR,{...l}):Ge("text","code",l)?(0,n.jsx)(cf,{...l}):Ge("impact","a",l)?(0,n.jsx)(LR,{...l}):Ge("impact","b",l)?(0,n.jsx)(bR,{...l}):Ge("impact","c",l)?(0,n.jsx)(yR,{...l}):Ge("impact","d",l)?(0,n.jsx)(IR,{...l}):Ge("impact","note",l)?(0,n.jsx)(NR,{...l}):Ge("quote","a",l)?(0,n.jsx)(kR,{...l}):Ge("quote","b",l)?(0,n.jsx)(wR,{...l}):Ge("quote","c",l)?(0,n.jsx)(BR,{...l}):Ge("quote","d",l)?(0,n.jsx)(_R,{...l}):Ge("quote","background",l)?(0,n.jsx)(UR,{...l}):Ge("quote","carousel",l)?(0,n.jsx)(FR,{...l}):Ge("list","numbered",l)?(0,n.jsx)(WR,{...l}):Ge("list","checkboxes",l)?(0,n.jsx)(GR,{...l}):Ge("list","bulleted",l)?(0,n.jsx)(KR,{...l}):Ge("image","hero",l)?(0,n.jsx)(QR,{...l}):Ge("image","full",l)?(0,n.jsx)(mf,{...l}):Ge("image","text aside",l)?(0,n.jsx)(XR,{...l}):Ge("image","text overlay",l)?(0,n.jsx)(qR,{...l}):Ge("gallery","centered",l)||Ge("gallery","full",l)?(0,n.jsx)(aO,{...l}):Ge("gallery","two column",l)?(0,n.jsx)(q1,{...l}):Ge("gallery","three column",l)?(0,n.jsx)(q1,{width:3,...l}):Ge("gallery","four column",l)?(0,n.jsx)(q1,{width:4,...l}):Ge("divider","divider",l)?(0,n.jsx)(cO,{...l}):Ge("divider","numbered divider",l)?(0,n.jsx)(lO,{number:e,...l}):Ge("divider","spacing divider",l)?(0,n.jsx)(dO,{...l}):Ge("360","storyline",l)?(0,n.jsx)(GO,{...l,isLesson:!0,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this)}):Ge("interactive","accordion",l)?(0,n.jsx)(CO,{...l}):Ge("interactive","tabs",l)?(0,n.jsx)(OO,{...l}):Ge("interactive-fullscreen","labeledgraphic",l)?(0,n.jsx)(vw,{...l}):Ge("interactive-fullscreen","process",l)?(0,n.jsx)(Iw,{...l}):Ge("interactive-fullscreen","scenario",l)?(0,n.jsx)($w,{...l}):Ge("interactive-fullscreen","sorting",l)?(0,n.jsx)(mB,{...l}):Ge("interactive-fullscreen","timeline",l)?(0,n.jsx)(kB,{...l}):Ge("buttons","button",l)?(0,n.jsx)(nP,{...l}):Ge("buttons","button stack",l)?(0,n.jsx)(oP,{...l}):Ge("flashcard","flashcard",l)?(0,n.jsx)(Af,{...l}):Ge("flashcard","stack",l)?(0,n.jsx)(Af,{stack:!0,...l}):Ge("knowledge","knowledge",l)?(0,n.jsx)(Gi,{...l}):Ge("continue","continue",l)?(0,n.jsx)(EP,{...l}):Ge("multimedia","audio",l)?(0,n.jsx)(dP,{...l}):Ge("multimedia","video",l)?(0,n.jsx)(bf,{...l}):Ge("multimedia","custom video",l)?(0,n.jsx)(bf,{...l,type:"customVideo"}):Ge("multimedia","embed",l)?(0,n.jsx)(mP,{...l}):Ge("multimedia","attachment",l)?(0,n.jsx)(CP,{...l}):Ge("multimedia","code",l)?(0,n.jsx)(cf,{...l}):Ge("knowledgeCheck","multiple choice",l)?(0,n.jsx)(Gi,{...l}):Ge("knowledgeCheck","multiple response",l)?(0,n.jsx)(Gi,{...l}):Ge("knowledgeCheck","fillin",l)?(0,n.jsx)(Gi,{...l}):Ge("knowledgeCheck","matching",l)?(0,n.jsx)(Gi,{...l}):Ge("knowledgeCheck","draw from question bank",l)?(0,n.jsx)(Gi,{...l}):Ge("chart","bar",l)||Ge("chart","line",l)?(0,n.jsx)(Z_,{...l}):Ge("chart","pie",l)?(0,n.jsx)(Y_,{...l}):Ge("mondrian","mondrian",l)?(0,n.jsx)(EB,{...l}):Ge("textToVideo","textToVideo",l)?(0,n.jsx)(X_,{}):Ge("html","inline",l)||Ge("html","cdn",l)?(0,n.jsx)(RB,{...l}):`Unknown type: ${s} ${a}`}hasManySlBlocks(){const{items:e}=this.props;return e&&eU(e)}}function sU(t){return(0,n.jsx)(c1,{block:t,children:(0,n.jsx)(tU,{...t})})}function Ge(t,e,s){return s.family===t&&s.variant===e}const nU=960;function oU(){return document.querySelector(".page-wrap")}function pue(){return window.innerWidth<nU}const Zh=(0,m.createContext)({isLessonEntering:!1,isLessonExiting:!1});Zh.displayName="LessonTransitionContext";function rU({isLessonEntering:t,isLessonExiting:e,children:s}){const o=(0,m.useMemo)(()=>({isLessonEntering:t,isLessonExiting:e}),[t,e]);return(0,n.jsx)(Zh.Provider,{value:o,children:s})}function N5(){return(0,m.useContext)(Zh)}function aU(t){function e(s){const o=N5();return(0,n.jsx)(t,{...s,...o})}return e.displayName=`withLessonTransitionState(${t.displayName||t.name})`,e}const j5=({children:t,onViewed:e,threshold:s=.1})=>{const{isLessonEntering:o,isLessonExiting:r}=N5(),a=(0,m.useRef)(null),[c,d]=(0,m.useState)(!1),l=(0,m.useCallback)(()=>{c||(d(!0),e())},[c,e]),u=(0,m.useCallback)(h=>{const p=h[0];!c&&!o&&!r&&p?.isIntersecting&&l()},[c,o,r,l]);return(0,m.useEffect)(()=>{const h=a.current;if(!h||o||r)return;const p=oU(),f=new IntersectionObserver(u,{root:p,threshold:s});return f.observe(h),()=>{f.disconnect()}},[s,u,o,r]),(0,n.jsx)("div",{ref:a,children:t})};var Yh=i(59288);class iU extends Yh.PureComponent{render(){return(0,n.jsx)(j5,{onViewed:this.handleViewed,children:Yh.cloneElement(Yh.Children.only(this.props.children),{onStep:this.handleStep})})}handleStep=e=>{e!=null&&"id"in e&&!e.isDone&&this.props.onStep(e.id)};handleViewed=()=>{const{block:e}=this.props;if(!e.requiresInteraction){this.props.onViewed();return}(cU.test(e.variant)||lU.test(e.family))&&e.items.length>0&&this.handleStep(e.items[0])}}const cU=/tabs|carousel/,lU=/gallery/,dU=["timeline"],uU=({family:t,variant:e})=>(/interactive|flashcard|knowledge|continue|360/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(e))&&!dU.includes(e),hU="draw from question bank",A5=t=>{const{animateBlockEntrance:e,block:s,className:o,color:r,courseId:a,courseTitle:c,defaultBackgroundColor:d,enableVideoPlaybackSpeed:l,handleNavigate:u,handleStorylineFullscreen:h,hideBlock:p,isLastBlock:f,isOnlyBlockInStep:g,labels:v,lessonId:C,lessonProgress:E,loadMedia:L,match:x,onContinue:S,partnerContent:b,prefersKeyboardNavigation:N,previewType:I,publishedAt:j,tenantId:R}=t,{blockId:P,family:B,items:_=[],settings:k,variant:J}=s,Z=`block-${P}`,G=(0,X.wA)(),Y=DC({blockId:P,lessonId:C}),Ee=B==="knowledgeCheck"&&k?.requireCorrectAnswer,fe=(0,m.useCallback)(nt=>{const Ce=J===hU?_[0]:qe()(Ue()("id",nt),_);G((0,pr.re)({blockId:P,lessonId:C,items:[Ce]})),B==="continue"&&S(P,nt)},[P,G,B,_,C,S,J]),oe=(0,m.useCallback)(()=>{Ee||G((0,pr.re)({blockId:P,lessonId:C,items:_}))},[P,G,Ee,_,C]),we=(0,m.useCallback)(nt=>{const Ce=_?.[0],Ne=Ce&&"id"in Ce?Ce.id:void 0;Ne&&G((0,pr.RA)({blockId:P,itemId:Ne,lessonId:C,playheadPercentage:nt}))},[P,G,C,_]),Ae=mt()(s,{animateBlockEntrance:e,className:o?.toString(),color:r,courseId:a,courseTitle:c,defaultBackgroundColor:d,dividerNumber:Y,enableVideoPlaybackSpeed:l,family:B,handleNavigate:u,handleStorylineFullscreen:h,isHidden:p,isLastBlock:f,isLearner:!0,isOnlyBlockInStep:g,labels:v,lessonId:C,loadMedia:L,match:x,originalVariant:void 0,partnerContent:b,prefersKeyboardNavigation:N,previewType:I,progress:E,publishedAt:j,recordMediaPlayheadPosition:we,tenantId:R}),Qe=uU({family:B,variant:J})?iU:j5,pt=_4(C,P),ls=M()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":p});return(0,n.jsx)("div",{className:ls,"data-block-id":P,"data-change-path":pt,children:(0,n.jsx)(Qe,{block:s,onStep:fe,onViewed:oe,children:(0,n.jsx)(sU,{...Ae})})},Z)},mU=({slides:t,currentSlide:e},s)=>(e.push(s),s.settings?.attachedToNextBlock||(t.push(e),e=[]),{slides:t,currentSlide:e}),pU=t=>{const{slides:e}=Nn()(mU,{slides:[],currentSlide:[]},t);return e};function Xh(t,e,s){if(t.length){const r=t.slice(-1)[0];if(!Sl(r.id,s))return t}const o=n_(fU(s),e.slice(t.length)).map(gU);return o.length?Xh(t.concat(o),e,s):t}const Sl=(t,e)=>Ye()(!1,["items",t,"isComplete"],e),fU=t=>({family:e,items:s})=>{const o=Ye()({},0,s);return e==="continue"&&!Sl(o.id,t)};function gU(t,e,s){const o=s.slice(-1)[0]||{},{family:r}=o,a=r==="continue"?Ye()(!1,["items",0,"type"],o):!1;return t.variant!=="continue"&&(!a||a==="completeBlock"&&e!==s.length-1&&e!==s.length-2)?t:mt()(t,{requiresInteraction:!0})}function R5({id:t,...e},s,o,r){if(e.family==="continue"){const a=Ye()("",["items",0,"type"],e);return mt()({blockId:t,...e},{skipContinue:r,canContinue:vU({continueType:a,blocks:s,progress:o}),lessonProgress:o,isComplete:Sl(t,o)})}return{blockId:t,...e}}const vU=({continueType:t,blocks:e,progress:s})=>{switch(t){case"completeAll":return ps()(us()(e),TU(s));case"completeBlock":return e.length===0?!0:Sl(SU(e),s);default:return!0}},CU=Se()(yo(),Pe()("items")),xU=t=>Se()(EU,CU)(t),EU=Qt()(Ue()("isComplete",!0)),TU=Se()(us(),xU),SU=Se()(Pe()("id"),Do()),LU=({family:t,variant:e,isComplete:s,requiresInteraction:o})=>t==="continue"&&e==="continue"&&o&&!s,bU=(t,e)=>!!t.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!e?.items?.[o?.id]?.isComplete}),yU=t=>t.length===0?!1:b1()(LU,t),IU=(t,e)=>t.length===0?!1:bU(t,e),NU=({blocks:t,lessonProgress:e})=>t.findIndex(s=>{const o=e?.items?.[s?.id],r=o&&o?.isComplete==null;return s?.family==="knowledgeCheck"&&s?.settings?.requireCorrectAnswer&&r}),O5=({blocks:t,lessonProgress:e,currentBlockIndex:s})=>{const o=NU({blocks:t,lessonProgress:e});return o>-1&&s>o},jU=(t,e)=>{const s=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(t)||s.includes(e)};function AU(){const{pathname:t}=new URL(window.location.href);return t.split("/")[1]==="review"}class RU extends ie().Component{ref=ie().createRef();constructor(...e){super(...e),this.state={randomQuestions:{},transitioning:!1},this.handleContinue=this.handleContinue.bind(this),this.handleScrollToBlock=this.handleScrollToBlock.bind(this),window.addEventListener(ms,this.handleScrollToBlock)}componentDidUpdate(e){this.scrollIfContinued(),e.isLessonEntering&&!this.props.isLessonEntering&&this.scrollToBlockAfterEnter!=null&&this.scrollToBlock(this.scrollToBlockAfterEnter)}componentWillUnmount(){window.removeEventListener(ms,this.handleScrollToBlock)}render(){const{className:e,isOnePage:s}=this.props,o=M()("blocks-lesson",e,{"blocks-lesson--one-page":s});return(0,n.jsx)("section",{className:o,ref:this.ref,children:this.renderBlocks()})}renderBlocks(){const{blocks:e,isCourseLocalized:s,lessonProgress:o}=this.props,r=AU()&&s;return(r?e:Xh([],e,o)).map(this.buildBlock.bind(this,this.props.lessonProgress,r)).filter(v3.A)}handleContinue(e,s){const{blocks:o,history:r,lessonId:a,lessonProgress:c,nextLesson:d}=this.props;Sl(s,c)||(this.continueFromId=e),St()(Do(),Ue()("id",e))(o)&&d&&((0,X.JD)((0,pr.eQ)(a)),r.push(`/lessons/${encodeURIComponent(d)}`))}buildBlock(e,s,o,r,a){const{animateBlockEntrance:c,blocks:d,color:l,courseId:u,courseTitle:h,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,labels:v,lessonId:C,loadMedia:E,match:L,partnerContent:x,prefersKeyboardNavigation:S,previewType:b,publishedAt:N,tenantId:I}=this.props,j=R5(o,a.slice(0,-1),e,s),R=a.length-1,P=r===R,B=O5({blocks:d,lessonProgress:e,currentBlockIndex:r});return(0,n.jsx)(A5,{animateBlockEntrance:c,block:j,color:l,courseId:u,courseTitle:h,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,hideBlock:B,index:r,isFirstLesson:!0,isLastBlock:P,labels:v,lessonId:C,lessonProgress:e,loadMedia:E,match:L,onContinue:this.handleContinue,partnerContent:x,prefersKeyboardNavigation:S,previewType:b,publishedAt:N,tenantId:I},j.blockId)}scrollIfContinued(){if(this.continueFromId){const{blocks:e}=this.props,s=Ts()(Ue()("id",this.continueFromId),e),o=Zt()(s),r=Ye()(null,["blocks",o,"id"],this.props);if(r){const a=document.querySelector(".page-wrap"),c=a.querySelector(`[data-block-id="${r}"]`),d=c?c.getBoundingClientRect().top:0;tl.Ay.animateScroll.scrollTo(d+a.scrollTop,{smooth:!0,containerId:"page-wrap"})}delete this.continueFromId}}handleScrollToBlock(e){if(this.props.isLessonExiting||e.detail.lessonId!==this.props.lessonId)return;const s=e.detail.itemId;s==null?this.ref.current?.closest(".page").scrollIntoView({behavior:"smooth",block:"start"}):this.props.isLessonEntering?this.scrollToBlockAfterEnter=s:this.scrollToBlock(s)}scrollToBlock(e){const o=document.querySelector(".page-wrap").querySelector(`[data-block-id="${e}"]`);o?.scrollIntoView({behavior:"smooth",block:"nearest"})}}const OU=t=>({isOnePage:Bt(t),isCourseLocalized:$t(t)}),P5=Se()(a1.A,(0,X.Ng)(OU),aU)(RU);function er({children:t}){const e=(0,m.useRef)(),s=(0,m.useCallback)(()=>{e.current?.focus?.()},[]);return hT(s),(0,n.jsx)("main",{className:"lesson-main",ref:e,tabIndex:"-1",children:t})}const PU=q("page"),M5=({type:t,children:e})=>(0,n.jsx)("div",{className:PU({lessonTypeQuiz:t==="quiz"}),"data-type":t,"data-page":!0,children:e});M5.propTypes={type:A().string.isRequired,children:A().node.isRequired};const No=M5,no=({type:t,children:e})=>{const s=t==="video"||t==="embed"||t==="blocks"||t==="progress-summary",o=M()("page__wrapper",{"page__wrapper--white":s});return(0,n.jsx)("div",{className:o,children:e})};no.propTypes={type:A().string.isRequired,children:A().node.isRequired};const oo=({className:t,type:e,children:s})=>{const o=M()("page__content",t,{"page__content--timeline":e==="timeline"});return(0,n.jsx)("div",{className:o,children:s})};oo.propTypes={type:A().string,children:A().node.isRequired};const MU=({animateBlockEntrance:t,color:e,courseId:s,courseTitle:o,data:r,enableVideoPlaybackSpeed:a,handleNavigate:c,handleStorylineFullscreen:d,labels:l,lessonHeader:u,lessonHeaderWrapClasses:h,lessonHeaderWrapStyles:p,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:E,prefersKeyboardNavigation:L,previewType:x,publishedAt:S,tenantId:b,hideLessonHeaders:N})=>{const{id:I,items:j,type:R}=r,P={animateBlockEntrance:t,blocks:j,color:e,courseId:s,courseTitle:o,enableVideoPlaybackSpeed:a,handleNavigate:c,handleStorylineFullscreen:d,isFirstLesson:!0,labels:l,lessonId:I,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:E,previewType:x,prefersKeyboardNavigation:L,publishedAt:S,tenantId:b,type:R};return(0,n.jsx)(No,{type:R,children:(0,n.jsx)(no,{type:R,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{inert:N,className:h,style:p,children:u}),(0,n.jsx)(oo,{children:(0,n.jsx)(P5,{...P})})]})})})},DU=t=>({partnerContent:Ye()([],["partnerContent","content"],t)}),kU=(0,X.Ng)(DU)(MU);var wU=i(59288);class D5 extends wU.Component{constructor(e){super(e);const s=e.getL10nValue(e.items?.[0]?.media);this.type=ef(s),this.state={isLoaded:this.type!=="video"}}componentDidMount(){this.type==="video"&&setTimeout(()=>{this.setState({isLoaded:!0})},800)}render(){if(!this.state.isLoaded)return null;const{id:e,items:s,labels:o}=this.props,r=jt()([0,"media","embed"],s),a=jt()([0,"settings","showMetaData"],s);return(0,n.jsx)("section",{"aria-label":"URL/Embed Content",className:"embed-lesson",children:(0,n.jsx)("div",{className:"embed-lesson__item",children:(0,n.jsx)("div",{className:"embed-lesson__row",children:(0,n.jsx)("div",{className:"embed-lesson__main",children:(0,n.jsx)(G1,{data:r,isLesson:!0,labels:o,showMetaData:a})})})},e)})}}const BU=cs(D5),{any:_U,array:UU,object:k5}=A();D5.propTypes={id:_U.isRequired,items:UU.isRequired,labels:k5.isRequired,lessonProgress:k5.isRequired};const HU=({color:t,data:{id:e,items:s,type:o},labels:r,lessonHeader:a,lessonHeaderWrapClasses:c,lessonProgress:d})=>(0,n.jsx)(No,{type:o,children:(0,n.jsx)(no,{type:o,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:c,style:{color:t},children:a}),(0,n.jsx)(oo,{children:(0,n.jsx)(BU,{id:e,items:s,labels:r,lessonProgress:d})})]})})});var FU=i(59288);class zU extends FU.Component{static propTypes={accentColor:A().string,id:A().any.isRequired,image:A().object,items:A().array.isRequired,labels:Qi.isRequired,lessonProgress:A().object,readOnly:A().bool};render(){const{accentColor:e,id:s,image:o={},items:r,isPreview:a,labels:c,lessonProgress:d}=this.props,l=M()("page__content-container","labeled-graphic-lesson-content-container"),u={accentColor:e,animateBlockEntrance:!1,editable:!1,items:r,isPreview:a,isLearner:!0,labels:c,media:{image:o},onItemSelected:void 0,parentId:s,progress:d};return(0,n.jsx)("section",{"aria-label":"Labeled Graphic Content",className:"page__content",children:(0,n.jsx)("div",{className:l,children:(0,n.jsx)($6,{...u})})})}}const VU=({color:t,labels:e,lessonHeader:s,lessonHeaderWrapClasses:o,lessonProgress:r,data:{id:a,items:c,media:d,type:l}})=>(0,n.jsx)(No,{type:l,children:(0,n.jsx)(no,{type:l,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:o,style:{color:t},children:s}),(0,n.jsx)(oo,{children:(0,n.jsx)(zU,{id:a,items:c,labels:e,lessonProgress:r,image:d.image})})]})})});var WU=i(59288);class w5 extends WU.Component{constructor(e){super(e),this.state={hide:!1}}static propTypes={type:A().string.isRequired,onClick:A().func.isRequired};focus(){this.controlDiv.focus()}render(){const{allowTabNavigation:e,atStart:s,isTransitioning:o,labels:r,onClick:a,type:c}=this.props,{hide:d}=this.state,l=c==="next",u=l&&!o&&!s,h=M()("process__"+c,"brand--min768--background",{"brand--max768--color":s,"process__controls--hide":d,"process__controls--animating":o,"process__controls--clip":u}),p=l?"icon-chevron-right":"icon-chevron-left";return(0,n.jsx)("button",{"aria-hidden":!e,"aria-label":l?r?.a11yCarouselNext:r?.a11yCarouselPrevious,className:h,onClick:a,ref:f=>{this.controlDiv=f},tabIndex:Fr(e),type:"button",children:(0,n.jsx)("div",{className:"process__control-content","data-next-step":r?.processNextStep,children:(0,n.jsx)("div",{className:"process__control-animation",children:(0,n.jsx)("i",{className:p})})})})}}var GU=i(59288);const KU=({processStepName:t,index:e,processStepPreposition:s,steps:o})=>(0,n.jsx)("div",{className:"card__side",children:(0,n.jsxs)("div",{className:"card__step-label brand--background",children:[t," ",e," ",s," ",o]})}),$U=t=>{const{allowTabNavigation:e,description:s,index:o,labels:r,loadMedia:a,media:c,onFullScreenChange:d,settings:l,title:u,lessonNumber:h}=t;return(0,n.jsxs)("div",{className:"card__main",children:[(0,n.jsx)("h1",{className:"card__title brand--afterBackground",tabIndex:-1,children:u}),(0,n.jsx)("div",{className:"card__media",children:a?(0,n.jsx)(En,{defaultAlign:"center",index:`${o}`,labels:r,media:c,opts:l,onFullScreenChange:d,allowTabNavigation:e,lessonNumber:h}):null}),(0,n.jsx)(Nt,{className:"card__description",value:s,allowTabNavigation:e})]})};class QU extends GU.Component{static get defaultProps(){return{settings:{}}}static propTypes={onClick:A().func,mediaSrc:A().string,mediaType:A().string,index:A().number.isRequired,title:A().string,description:A().string,loadMedia:A().bool.isRequired,allowTabNavigation:A().bool.isRequired};render(){const{index:e,labels:s,steps:o}=this.props,{processStepName:r,processStepPreposition:a}=s;return(0,n.jsx)("div",{className:"card",children:(0,n.jsx)("div",{className:"card__container",children:(0,n.jsxs)("div",{className:"card__row",children:[(0,n.jsx)(KU,{processStepName:r,index:e,processStepPreposition:a,steps:o}),(0,n.jsx)($U,{...this.props})]})})})}}const ZU=({applySafariLandscapeHack:t,children:e,current:s,labels:o,onReplay:r})=>{const a=M()("process-end__footer",{"process-end__footer--mobile-safari-landscape":t});return(0,n.jsxs)("div",{className:"process-end",children:[(0,n.jsx)("div",{className:"process-end__container",children:(0,n.jsx)("div",{className:"process-end__message",children:(0,n.jsx)("h1",{className:"process-end__text brand--ui",tabIndex:-1,children:YU({current:s,labels:o})})})}),(0,n.jsx)(zh,{onClick:r,text:o.processStartAgain}),(0,n.jsx)("div",{className:a,children:e})]})},YU=({current:t,labels:{processComplete:e,processLessonName:s}})=>`${s} ${t} ${e}`,XU=ZU;var B5=i(59288);const JU=({lessonName:t,lessonNumber:e,lessonPreposition:s,totalLessons:o})=>(0,n.jsx)("div",{className:"process-header__counter",children:(0,n.jsx)("div",{className:"process-header__count",children:`${t} ${e} ${s} ${o}`})});class qU extends B5.Component{static propTypes={steps:A().number,avatar:A().string,authorName:A().string,title:A().string.isRequired,type:A().string.isRequired,description:A().string,allowTabNavigation:A().bool.isRequired};render(){const{allowTabNavigation:e,authorName:s,avatar:o,children:r,description:a,labels:c,lessonNumber:d,showLessonCount:l,title:u,totalLessons:h}=this.props,{lessonName:p,lessonPreposition:f}=c;return(0,n.jsx)("div",{className:"process-header",children:(0,n.jsx)("div",{className:"process-header__container",children:(0,n.jsxs)("div",{className:"process-header__limit",children:[(0,n.jsx)("div",{className:"process-header__row",children:(0,n.jsxs)("div",{className:"process-header__main",children:[(0,n.jsxs)("div",{className:"process-header__top-wrap brand--afterBackground",children:[(0,n.jsx)("h1",{className:"process-header__title",tabIndex:-1,children:u}),o&&s?(0,n.jsxs)("div",{className:"process-header__author brand--ui",children:[(0,n.jsx)(An,{alt:"",src:(0,de.o1)(`${o}`)}),(0,n.jsxs)("span",{className:"visually-hidden",children:[c?.a11yAuthorPrefix," ",s]}),(0,n.jsx)("span",{"aria-hidden":"true",children:s})]}):null,l&&JU({lessonName:p,lessonNumber:d,lessonPreposition:f,totalLessons:h})]}),B5.Children.map(r,g=>!g||g.type!==F1?null:(0,n.jsx)("div",{className:"process-header__audio",children:g})),(0,n.jsx)(Nt,{className:"process-header__description editor-text",value:a,allowTabNavigation:e})]})}),r]})})})}}const eH=t=>e=>{t.setState({xTouchDown:e.touches[0].clientX,yTouchDown:e.touches[0].clientY})},tH=t=>e=>{t.setState({xTouchMove:e.touches[0].clientX,yTouchMove:e.touches[0].clientY})},sH=(t,e,s,o)=>()=>{if(t.state.xTouchDown&&t.state.xTouchMove){const r=t.state.xTouchDown-t.state.xTouchMove,a=t.state.yTouchDown-t.state.yTouchMove,c=Eo()(ir()),d=Eo()(Gh()),l=_5(t);Math.abs(r)>Math.abs(a)&&(Rs()([[c(o),e],[d(-o),s],[hn(),We()(void 0)]])(r),l())}},nH=t=>()=>{_5(t)},_5=t=>()=>{t.setState({xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null})};function oH(t,e,s,o,r=0){const a={touchstart:eH(e),touchmove:tH(e),touchend:sH(e,s,o,r),touchcancel:nH(e)};return{addListeners(){t.addEventListener("touchstart",a.touchstart),t.addEventListener("touchmove",a.touchmove),t.addEventListener("touchend",a.touchend),t.addEventListener("touchcancel",a.touchcancel)},removeListeners(){t.removeEventListener("touchstart",a.touchstart),t.removeEventListener("touchmove",a.touchmove),t.removeEventListener("touchend",a.touchend),t.removeEventListener("touchcancel",a.touchcancel)}}}const rH=oH;var aH=i(59288);const U5=Zp(".next-lesson__link"),iH=Zp(".restart-button"),Jh=Ye()(0,["lessonProgress","activeIndex"]);class cH extends aH.Component{constructor(e){super(e),this.state={xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null,resetContentFocus:!1,isTransitioning:!1},this.handleKeyDown=this.handleKeyDown.bind(this),this.handleScroll=this.handleScroll.bind(this),this.leftSwipe=this.nextSlide.bind(this),this.nextSlide=this.nextSlide.bind(this),this.previousSlide=this.previousSlide.bind(this),this.renderItem=this.renderItem.bind(this),this.rightSwipe=this.previousSlide.bind(this),this.handleAnimationEnd=this.handleAnimationEnd.bind(this),this.portal=kr()}static propTypes={authorName:A().string.isRequired,avatar:A().string.isRequired,description:A().string.isRequired,id:A().any.isRequired,items:A().array.isRequired,labels:Qi.isRequired,lessonNumber:A().number.isRequired,lessonProgress:A().object.isRequired,loadMedia:A().bool.isRequired,menuOpen:A().bool.isRequired,mobileMenuOpen:A().bool.isRequired,title:A().string.isRequired,totalLessons:A().number.isRequired,type:A().string.isRequired};handleScroll(){const e=window.pageYOffset,s=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(window.matchMedia("(min-width: 768px)").matches){const r=s/2+e-50;this.previousContainer.style.transform=`translate3d(-50px, ${r}px, 0)`,this.nextContainer.style.transform=`translate3d(50px, ${r}px, 0)`}else{this.previousContainer.style.transform="none",this.nextContainer.style.transform="none";const o=nn.isIphoneSafari?94:50,r=s+e-o;this.controls.style.transform=`translate3d(0, ${r}px, 0)`}}componentDidMount(){const e=this.controlsContainer;this.swipeEvents=rH(e,this,this.leftSwipe,this.rightSwipe),this.swipeEvents.addListeners(),document.addEventListener("keydown",this.handleKeyDown),nn.isSafari9&&(this.scrollRef=Vr()(this.handleScroll,10),window.addEventListener("scroll",this.scrollRef),this.handleScroll()),this.preventFocusOnOverflowElements(),this.controlsContainer.addEventListener("animationend",this.handleAnimationEnd)}componentWillUnmount(){this.swipeEvents.removeListeners(),document.removeEventListener("keydown",this.handleKeyDown),nn.isSafari9&&window.removeEventListener("scroll",this.scrollRef),this.controlsContainer.removeEventListener("animationend",this.handleAnimationEnd)}componentDidUpdate(e){this.handleSlideScroll(e)}render(){const e=this.isAtStart(),s=this.isAtEnd(),{processLandmark:o}=this.props.labels;return(0,n.jsxs)("section",{"aria-label":o,className:this.getClassName({isAtStart:e,isAtEnd:s}),ref:r=>{this.controlsContainer=r},children:[this.renderControls({isAtStart:e,isAtEnd:s}),(0,n.jsxs)("div",{className:"process__wrap",children:[this.renderStart(),this.props.items.map(this.renderItem),this.renderEnd()]})]})}renderControls({isAtStart:e,isAtEnd:s}){const{applySafariLandscapeHack:o,labels:r,safariLandscapeHackOffset:a}=this.props,c=this.getControlsClassName({isAtStart:e,isAtEnd:s}),d=o?{bottom:a}:{},{isTransitioning:l}=this.state;return(0,Yn.createPortal)((0,n.jsx)("div",{className:this.getMenuClassName(),children:(0,n.jsxs)("div",{ref:u=>{this.controls=u},className:c,style:d,children:[(0,n.jsx)("div",{ref:u=>{this.nextContainer=u},children:(0,n.jsx)(w5,{allowTabNavigation:!s,atStart:e,labels:r,onClick:this.nextSlide,ref:u=>{this.nextControl=u},isTransitioning:l,type:"next"})}),(0,n.jsx)("div",{ref:u=>{this.previousContainer=u},children:(0,n.jsx)(w5,{allowTabNavigation:!e,atStart:e,labels:r,onClick:this.previousSlide,ref:u=>{this.previousControl=u},isTransitioning:l,type:"previous"})})]})}),this.portal)}renderStart(){const{authorName:e,avatar:s,description:o,items:r,labels:a,lessonNumber:c,showLessonCount:d,title:l,totalLessons:u,type:h}=this.props,p=this.isAtStart();return(0,n.jsx)("div",{"aria-hidden":!p,className:this.getItemClassName(0),ref:f=>{this["item-0"]=f},children:(0,n.jsx)("div",{className:"process__item-wrap",children:(0,n.jsx)(qU,{allowTabNavigation:p,authorName:e,avatar:s,description:o,labels:a,lessonNumber:c,onFullScreenChange:this.handleFullScreenChange,showLessonCount:d,steps:r.length,title:l,totalLessons:u,type:h})})})}renderItem(e,s){const{items:o,labels:r,loadMedia:a,lessonNumber:c}=this.props,d=Zt()(s),l=Jh(this.props),u=d===l;return(0,n.jsx)("div",{"aria-hidden":!u,className:this.getItemClassName(d),ref:h=>{this[`item-${d}`]=h},children:(0,n.jsx)("div",{className:"process__item-wrap",children:(0,n.jsx)(QU,{allowTabNavigation:u,description:e.description,id:e.id,index:d,labels:r,lessonNumber:c,loadMedia:a,media:e.media,onFullScreenChange:this.handleFullScreenChange,settings:e.settings,steps:o.length,title:e.title},e.id)})},`item-${e.id}`)}renderEnd(){const{applySafariLandscapeHack:e,items:s,labels:o,lessonNumber:r}=this.props,a=Zt()(s.length);return(0,n.jsx)("div",{"aria-hidden":!this.isAtEnd(),className:this.getItemClassName(a),ref:c=>{this[`item-${a}`]=c},children:(0,n.jsx)("div",{className:"process__item-wrap",children:(0,n.jsx)(XU,{applySafariLandscapeHack:e,current:r,labels:o,onReplay:this.handleReplay})})})}preventFocusOnOverflowElements(){const e=Fr(this.isAtEnd());Rd(U5(),e),Rd(iH(),e)}focusNextElement(){const{nextControl:e,previousControl:s}=this;if(this.isAtEnd()){const o=U5();o?o.focus():s.focus()}else this.isAtStart()&&e.focus()}updateFocusForActiveCard(){!bS(this[`item-${Jh(this.props)}`])&&this.isAtStart()&&this.focusNextElement()}handleAnimationEnd({animationName:e}){const s=on()(e,["showcard","showcardUp"]);if(this.state.isTransitioning&&this.setState({isTransitioning:!1}),s&&this.state.resetContentFocus){const{prefersKeyboardNavigation:o}=this.props;o&&this.updateFocusForActiveCard(),this.setState({resetContentFocus:!1})}else e==="showFoot"&&this.focusNextElement()}getClassName({isAtStart:e,isAtEnd:s}){return M()("process",{"process--reverse-animation":this.props.lessonProgress.direction==="backwards","process--at-start":e,"process--at-end":s})}getControlsClassName({isAtStart:e,isAtEnd:s}){return M()("process__controls",{"process__controls--at-start":e,"process__controls--at-end":s})}getItemClassName(e){const s=Jh(this.props);return M()("process__item",{"process__item--active":e===s,"process__item--done":e<s,"process__item--next":fo()(e)===s})}getMenuClassName(){const{menuOpen:e,mobileMenuOpen:s}=this.props,o=!!document.querySelector(".lesson--preview");return M()("lesson-controls-wrapper",{"lesson--open":e&&!o,"lesson--open-mobile":s&&!o})}previousSlide(){this.isAtStart()||(this.slidePrep(),this.setState({resetContentFocus:!0}))}nextSlide(){this.isAtEnd()||(this.isAtStart()&&this.setState({isTransitioning:!0}),this.slidePrep(),this.setState({resetContentFocus:!0}))}handleKeyDown(e){Rs()([[_r,this.previousSlide],[Ur,this.nextSlide]])(e)}slidePrep(){at.pause(),this.setState({xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null})}handleFullScreenChange(){const e=document.querySelector(".process__item--active");document.webkitFullscreenElement?e.style.animationDuration="0s":setTimeout(()=>{e.style.animationDuration=""},750)}handleSlideScroll(e){const s=Ye()(0,["lessonProgress","activeIndex"],e),o=Ye()(0,["lessonProgress","activeIndex"],this.props);if(s!==o){const r=document.querySelector(".page-wrap"),a=r.scrollTop;this[`item-${s}`].scrollTop=a,r.scrollTop=0,this.preventFocusOnOverflowElements()}}isAtStart(){return gs()(Pe()("activeIndex",this.props.lessonProgress))}isAtEnd(){const{items:e,lessonProgress:s}=this.props;return Ue()("activeIndex",Zt()(e.length),s)}}const qh=Dt("Progress");var lH=i(59288);const dH=()=>{let t=window;for(;t.parent!=t;)t=t.parent;try{t.innerHeight}catch{return window}return t},H5=t=>class extends lH.Component{constructor(e){super(e),this.state={orientation:{},navigationHidden:{}},this.applySafariLandscapeHack=this.applySafariLandscapeHack.bind(this),this.root=dH()}componentDidMount(){nn.isIphoneSafari&&(this.applySafariLandscapeHack(),this.root.addEventListener("resize",this.resizeRef=Vr()(this.applySafariLandscapeHack,500)))}componentWillUnmount(){this.root.removeEventListener("resize",this.resizeRef)}applySafariLandscapeHack(){const e=this.root,s=window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape",r=(s==="landscape"?screen.width:screen.height)-e.innerHeight;(s!=this.state.orientation||r!=this.state.difference)&&(s==="landscape"&&r!==0&&setTimeout(()=>{e.document.body.scrollTop=0},0),this.setState({orientation:s,difference:r}))}render(){return(0,n.jsx)(t,{...this.props,applySafariLandscapeHack:this.state.orientation==="landscape"&&this.state.difference!==0,safariLandscapeHackOffset:this.state.difference})}},uH=H5(cH),hH=({authorName:t,avatar:e,data:{description:s,id:o,items:r,title:a,type:c},labels:d,lessonNumber:l,lessonProgress:u,loadMedia:h,prefersKeyboardNavigation:p,showLessonCount:f,totalLessons:g})=>(0,n.jsx)(No,{type:c,children:(0,n.jsx)(no,{type:c,children:(0,n.jsx)(er,{children:(0,n.jsxs)(oo,{type:c,items:r,children:[(0,n.jsx)(qh,{id:o,items:r,lessonProgress:u,type:"process"}),(0,n.jsx)(uH,{authorName:t,avatar:e,description:s,id:o,items:r,labels:d,loadMedia:h,lessonNumber:l,lessonProgress:u,prefersKeyboardNavigation:p,showLessonCount:f,title:a,totalLessons:g,type:c})]})})})});var mH=i(16829);const pH=({"aria-label":t,title:e,desc:s,width:o="26",height:r="24",className:a,focusable:c="false",role:d="img"})=>(0,n.jsxs)("svg",{viewBox:"0 0 26 24",width:o,height:r,"aria-label":t,className:M()("i i-checkedbox",a),focusable:c,role:d,children:[e&&(0,n.jsx)("title",{children:e}),s&&(0,n.jsx)("desc",{children:s}),(0,n.jsx)("path",{fillRule:"nonzero",d:"M12.214 11.686L23.224.328a1.08 1.08 0 1 1 1.551 1.504L12.99 13.99a1.08 1.08 0 0 1-1.551 0L7.153 9.569a1.08 1.08 0 1 1 1.551-1.504l3.51 3.621zM2.58 21h18.197v-9.973a1.08 1.08 0 1 1 2.16 0V22.08a1.08 1.08 0 0 1-1.08 1.08H1.5a1.08 1.08 0 0 1-1.08-1.08v-21C.42.484.904 0 1.5 0h15a1.08 1.08 0 0 1 0 2.16H2.58V21z"})]}),fH=({percentComplete:t,trackingCompletionPercentage:e,labelCompletionRequirement:s="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:c="Requirement not completed, empty square"})=>wt()(e)?null:(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:s}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsxs)("div",{children:[e,o]}),(0,n.jsxs)("div",{children:[r,"\xA0",(0,n.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[t,"%"]})]})]})]}),(0,n.jsx)(F5,{requirementMet:e<=t,labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:c})]}),gH=({outOfAttempts:t,quizPassed:e,quizPassingScore:s,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:c="Quiz Requirement",labelScoreOf:d="Score of",labelScoreOfPreposition:l="% on",labelViewQuiz:u="View quiz",labelYouScored:h="You scored",labelNoAttemptsRemaining:p="No attempts remaining.",labelA11yRequirementCompleted:f="Requirement completed, check mark",labelA11yRequirementNotCompleted:g="Requirement not completed, empty square"})=>a?(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:c}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsxs)("div",{children:[d," ",s,l," ",r]}),wt()(o)?(0,n.jsx)("div",{children:(0,n.jsx)(Qn,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:u})}):(0,n.jsxs)("div",{children:[h,"\xA0",(0,n.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[o,"%"]})]})]}),t&&(0,n.jsx)("span",{className:"progress-summary__requirement-no-attempts",children:p})]}),(0,n.jsx)(F5,{requirementMet:e,labelA11yRequirementCompleted:f,labelA11yRequirementNotCompleted:g})]}):null,F5=({requirementMet:t,labelA11yRequirementCompleted:e,labelA11yRequirementNotCompleted:s})=>t?(0,n.jsx)(pH,{"aria-label":e,className:"progress-summary__requirement-checkbox-checked"}):(0,n.jsx)("div",{"aria-label":s,className:"progress-summary__requirement-checkbox-empty",role:"img"}),vH=({dueAt:t})=>t?(0,n.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:L0(t)}):null;var CH=i(3361),xH=i.n(CH),EH=i(59288);const TH=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class SH extends EH.Component{constructor(...e){super(...e),this.state={run:!1,recycle:!0},this.startConfetti=this.startConfetti.bind(this)}startConfetti(){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setState({recycle:!1}),1e4),this.setState({run:!0})}componentDidMount(){clearTimeout(this.timeout),this.timeout=setTimeout(this.startConfetti,900)}shouldComponentUpdate(e,s){return s.recycle!==this.state.recycle||s.run!==this.state.run}componentWillUnmount(){clearTimeout(this.timeout)}render(){const{state:{recycle:e,run:s}}=this;return(0,n.jsx)("div",{className:"progress-summary__confetti",children:(0,n.jsx)(xH(),{width:window.innerWidth,height:window.innerHeight,recycle:e,run:s,numberOfPieces:500,gravity:.4,colors:TH})})}}const LH=SH;var bH=i(2592);const z5=q("progress-summary-card"),yH=({completeLabel:t,isComplete:e,isUrgent:s,completedDate:o,labelDue:r})=>e?(0,n.jsxs)("div",{className:"progress-summary-card__completed-label",children:[t,(0,n.jsx)("span",{className:"progress-summary-card__completed-date",children:o})]}):r?(0,n.jsx)("div",{className:M()("progress-summary-card__due-label",{"brand--color":s}),children:r}):null,IH=({cardImageKey:t=null,className:e,color:s="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:c=!1,enrolledAt:d=null,hidden:l=!1,imagesUri:u="",isLearningPath:h=!1,isUrgent:p=!1,labelAssignedToMe:f="",labelDue:g="",labelDuration:v="",labelLearningPath:C="",onClick:E=Ft.lQ,progress:L=0,title:x=""})=>{const S=(0,ze.useLabelsMap)(),b=o!==null,N=(0,m.useCallback)(()=>{a||E?.()},[a,E]),I=(0,m.useCallback)(J=>{ld(J)&&J.preventDefault(),!a&&va(J)&&E?.()},[a,E]),j=t||r,R=`${Math.round(L)}${S?.progressSummaryPercentComplete||"% Complete"}`,P=S?.progressSummaryCompleted||"Completed: ",B=`${$n()(new Date(o)).format("MM/DD/YY")}`,_=z5("card",{disabled:a}),k=z5("image-overlay",{"not-started":!(L||b),"in-progress-completed":L||b});return(0,n.jsxs)("div",{"aria-hidden":l,className:_,onClick:N,children:[(0,n.jsxs)("div",{className:"progress-summary-card__content",children:[(0,n.jsx)("button",{"aria-disabled":a,className:M()("progress-summary-card__title-button",{[e]:e}),tabIndex:l?-1:void 0,role:"link",type:"button",onKeyDown:I,children:(0,n.jsx)("span",{className:"progress-summary-card__title",children:x||S?.progressSummaryNoTitle||"(No Title)"})}),(0,n.jsxs)("div",{className:"progress-summary-card__course-info",children:[h&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:C}),d&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:f}),!!L&&!a&&!o&&(0,n.jsx)("span",{className:"progress-summary-card__hide",children:R}),!c&&!b&&(0,n.jsx)("div",{className:"progress-summary-card__duration",children:v}),(0,n.jsx)(yH,{isComplete:b,isUrgent:p,completedDate:B,labelDue:g,completeLabel:P})]})]}),(0,n.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,n.jsx)(bH.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:j,imagesUri:u,s:"cover",style:{backgroundColor:s},w:300}),(0,n.jsx)("div",{className:k}),(0,n.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!L&&!a&&!b&&(0,n.jsx)("div",{"aria-hidden":"true",className:"progress-summary-card__progress-bar-wrap",children:(0,n.jsx)("div",{className:"progress-summary-card__wrap-light",children:(0,n.jsx)("div",{className:"progress-summary-card__progress-bar",style:{width:`${L}%`}})})})})]})]})},NH=(0,ye._$)("IMAGES_URI"),jH=["cardImageKey","color","coverImageKey","progress","score","title"],V5=(t,e)=>t===1?e:e.concat("s"),em=Ye()([],["course","course","lessons"]),AH=t=>Se()(As(),Sa()(Jn()(Ue()("type","section"),hh()(on()(Vi(),t),"id"))),em),RH=t=>{const e=em(t),{trackingQuizId:s}=t,{score:o}=t;if(s&&e.length){const r=qe()(Ue()("id",s),e),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},OH=Se()(qe()(La()(Ue()("type","section"))),em),PH=Hc()(2,t=>Se()(tt()("","id"),qe()(Boolean),jh()([AH(t),RH,OH]))),MH=t=>{const e=$n().duration(t),s=e.hours(),o=e.minutes(),r=`${s} ${V5(s,"hr")}`,a=`${o} min`;return s>=100?"100+ hrs":s>0&&o>0?[r,a].join(" "):s>0?r:a},DH=t=>{const{color:e,learningPathComplete:s,learningPathId:o,isSuccess:r,nextCourse:a,nextCourse:{dueAt:c,courseId:d="",lessonCount:l,lessonsCompleted:u=[],sourceType:h,timeToComplete:p}={}}=t,f=(0,ze.useLabelsMap)(),g=(0,m.useMemo)(()=>PH(u,a),[a,u]);wt()(a.color)&&(a.color=e);const v=Ls()(jH,a),C=(0,m.useCallback)(()=>{h==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",d),top.location.assign(`/learning-path/${o}`)):(0,ht.kT)(`${d}/lessons/${g}`)},[d,o,g,h]);return r&&!s&&(0,n.jsx)("div",{className:"progress-summary__lp-next",children:(0,n.jsxs)("div",{className:"progress-summary__lp-next-inner",children:[(0,n.jsxs)("div",{className:"progress-summary__lp-next-label",children:[f?.progressSummaryNextUp||"Next up"," ",(0,n.jsx)(HC,{className:"progress-summary__lp-next-label-icon",decorative:!0})]}),(0,n.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,n.jsx)(IH,{imagesUri:NH,labelCount:`${l} ${V5(l,"lesson")}`,labelDue:L0(c),labelDuration:MH(p),noFavoriteBtn:!0,noCertDownload:!0,onClick:C,...v})})]})})},kH=Pe()("learningPathUpNext"),wH=(0,X.Ng)(kH)(DH),BH=`${(0,ye._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,_H=Se()(us(),Qt()(Pe()("isComplete")),yo()),UH=t=>{const{color:e,course:s={},courseProgress:o={},fetchLpUpNext:r,lessons:a=[],learningPathComplete:c,lpHasFailedQuiz:d}=t,{lessons:l={},percentComplete:u}=o,{dueAt:h,certificateDownload:p,completionCelebration:f,lessonsOnly:g=[],riseComLearningPathId:v,trackingCompletionPercentage:C,trackingQuizId:E}=s,L=Mo(),x=(0,ze.useLabelsMap)(),S=wt()(C)&&wt()(E),b=S?u===100:(0,de.As)(),N=g.length,I=_H(l);(0,m.useEffect)(()=>{v&&r()},[]);const j=(0,m.useMemo)(()=>b?s.completedAt?s.completedAt:new Date:null,[s.completedAt,b]),R=(0,m.useMemo)(()=>qe()(kn()(Ue()("type","quiz"),Ue()("id",E)),a),[E,a]),P=Us(R?.title),B=(0,m.useMemo)(()=>Ye()(100,["settings","passingScore"],R),[R]),_=Ye()(null,["lessons",E,"passed"],o),k=(0,m.useMemo)(()=>Se()(Fs()(Ue()("percentComplete",100),Pe()("score"),We()(null)),Ye()({},["lessons",E]))(o),[o,E]),{outOfAttempts:J}=qa(o,R,E);let Z=E?_:!0,G=Js();const Y=M()("progress-summary",{"progress-summary__no-req":S}),Ee=s.type===$e.y4,fe=`You've completed ${I} of ${N} lessons.`,we=Ee?b?"Complete":"Incomplete":fe;return(0,n.jsx)(Ta,{title:Yc(L+" - Progress Summary"),children:(0,n.jsxs)("div",{className:Y,children:[b&&f&&Z&&!G&&(0,n.jsx)(LH,{}),(0,n.jsxs)("header",{className:"progress-summary__header",children:[(0,n.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:b&&!S&&Z?x?.progressSummaryCongratulations||"Congratulations!":x?.progressSummary||"Progress Summary"}),S?(0,n.jsx)("div",{className:"progress-summary__lessons-completed",children:we}):b?(0,n.jsxs)("div",{className:"progress-summary__header-completion-date",children:[Z&&(0,n.jsx)("img",{className:"progress-summary__header-trophy",src:BH,alt:"trophy"}),$n()(j).format("MMMM Do, YYYY")]}):(0,n.jsx)(vH,{dueAt:h})]}),(0,n.jsxs)("section",{className:"progress-summary__section",children:[!S&&b&&(0,n.jsx)("div",{className:"progress-summary__requirements-met",children:x?.progressSummaryRequirementsMet||"You've met all the requirements."}),S?!v&&(0,n.jsxs)(Qn,{to:"/",className:"progress-summary__start-over",children:[x?.progressSummaryStartOver||"Start Over",(0,n.jsx)("i",{className:"progress-summary__start-over-icon icon icon-reload"})]}):(0,n.jsxs)("div",{className:"progress-summary__requirements",children:[(0,n.jsx)(fH,{percentComplete:u,trackingCompletionPercentage:C,labelCompletionRequirement:x?.progressSummaryCompletionRequirement,labelPercentCompletion:x?.progressSummaryPercentCompletion,labelYouCompleted:x?.progressSummaryYouCompleted,labelA11yRequirementCompleted:x?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:x?.a11yProgressSummaryRequirementNotCompleted}),(0,n.jsx)(gH,{outOfAttempts:J,quizPassed:_,quizPassingScore:B,quizScore:k,quizTitle:P,trackingQuizId:E,labelQuizRequirement:x?.progressSummaryQuizRequirement,labelScoreOf:x?.progressSummaryScoreOf,labelScoreOfPreposition:x?.progressSummaryScoreOfPreposition,labelViewQuiz:x?.progressSummaryViewQuiz,labelYouScored:x?.progressSummaryYouScored,labelNoAttemptsRemaining:x?.progressSummaryNoAttemptsRemaining,labelA11yRequirementCompleted:x?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:x?.a11yProgressSummaryRequirementNotCompleted})]}),(b||S)&&(0,n.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,n.jsx)("button",{role:"link",className:"progress-summary__btn-back progress-summary__completion-control",onClick:ht.NS,type:"button",children:x?.progressSummaryBackToLearning||"Back to my learning"}),b&&(!v&&p||v&&c)&&p&&Z&&!d&&(0,n.jsx)("span",{className:"progress-summary__completion-control",children:(0,n.jsx)(uo,{})})]})]}),b&&!!v&&(0,n.jsx)(wH,{color:e,learningPathId:v})]})})},HH=(t,{course:{riseComCourseId:e,riseComLearningPathId:s}})=>({fetchLpUpNext:Se()(t,mH.R,We()({courseId:e,learningPathId:s}))}),FH=Se()(Ls()(["learningPathComplete","lpHasFailedQuiz"]),Pe()("learningPathUpNext")),zH=(0,X.Ng)(FH,HH)(UH),W5=({contentClassName:t,...e})=>(0,n.jsx)(No,{type:Su.type,children:(0,n.jsx)(no,{type:Su.type,children:(0,n.jsx)(er,{children:(0,n.jsx)(oo,{className:t,type:Su.type,children:(0,n.jsx)(zH,{...e})})})})}),Su={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"};var VH=i(28507),tm=i.n(VH),WH=i(77778),Zi=i.n(WH),GH=i(81587),G5=i.n(GH),KH=i(48701),$H=i.n(KH),QH=i(82638),Lu=i.n(QH),ZH=i(45787),K5=i.n(ZH);const YH=Se()(ma(),Oa()),XH=Ye()(!1,["settings","isCaseSensitive"]),$5=t=>Fs()(We()(XH(t)),ma(),YH),JH=({item:t,itemProgress:e,getL10nValue:s})=>(0,Ft.Ve)(t,tt()([],"answers"),ws()(Se()($5(t),s,Pe()("title"))),on()((0,Ft.rq)($5(t),Pe()("text"),e))),qH=({item:t,itemProgress:e,getL10nValue:s})=>Pe()("text",e)&&JH({item:t,itemProgress:e,getL10nValue:s}),eF=({itemProgress:t})=>{const e=t?.matches??{};return Object.entries(e).every(([s,o])=>s===o)},tF=({answers:t,correct:e})=>Ts()(Ue()("id",e),t),sF=({item:t,itemProgress:e})=>ps()(Pe()("selectedIndex",e),tF(t)),Q5=pl()(Un()),nF=Eo()(Ts()),oF=t=>(0,Ft.Ve)(t,tt()([],"corrects"),ws()(Se()(nF(tt()([],"answers",t)),Ue()("id"))),Qt()($H()(0)),Yo()(Q5)),rF=t=>Yo()(Q5,tt()([],"selectedIndices",t)),aF=({item:t,itemProgress:e})=>ps()(rF(e),oF(t)),iF=({item:t,itemProgress:e})=>Pe()("selectedIndices",e)&&aF({item:t,itemProgress:e}),cF=t=>e=>{const s=!t.progress?.items?.[e.id]?.isComplete;return Ye()(!1,["settings","shuffleAnswerChoices"],t)&&s},lF=t=>Rs()([[cF(t),Jt()({answers:Cu()})],[hn(),Un()]]),dF=t=>Jt()({items:ws()(lF(t))})(t),uF=t=>{const{items:e,progress:s}=t,{items:o}=s||{},r=Se()(String,Pe()("id")),a=g5(o,Pe()("isComplete")),d=v5(r,a)(e),l=Se()(gs(),Pe()("isComplete")),u=g5(o,l),p=v5(r,u)(e);return d.concat(Cu()(p))},hF=bo()("items",uF),mF=t=>Se()(il()(qe(),t),Ue()("id"),Pe()("id")),Z5=Es()(t=>G5()(mF(t),Un())),pF=t=>Se()(Lu()(Rt()),Z5(t)),fF=St()(Z2()(Pe()("answers"),Pe()("answers")),Lu()(Es()(t=>ws()(pF(t)))),Br()("answers")),gF=t=>St()(Z5(t),G5()(fF,Lu()(Rt())),Lu()(Rt())),vF=il()(t=>ws()(gF(t))),CF=Qt()(Ue()("drawn",!0)),bu=Ts()(Ue()("type",yt.Ay.DRAW_FROM_QUESTION_BANK)),xF=({items:t,currentItems:e,progress:s})=>{let o=[...t],r=bu(o);for(;r!==-1;){const[c,d]=K5()(r,o),l=qf()(d),u=CF(e);o=[...c,...u,...l],r=bu(o)}const a=Y5({items:o,progress:s});return{items:o,progress:a}},EF=t=>(e,{id:s},o)=>{const{originalItemProgress:r}=t;let a={};r&&(a=r[o]||{});const c=Se()(qe()(Ue()("index",o)),yo())(t.items);return e[s]={...a,...c,id:s,index:o},e},Y5=({questionIndexList:t,items:e,progress:s})=>({...s,questionsDrawn:!0,questionList:t,items:e.reduce(EF(s),{})}),X5=t=>{const{id:e,items:s,progress:o,initializeDrawnQuizQuestions:r}=t;let a=[...s],c=bu(a);const d=[];let l=0;for(;c!==-1;){const[h,p]=K5()(c,a),[f,...g]=p,{drawCount:v,questions:C}=f,E=[],L=[],x=[];for(;E.length<v;)if(o.questionsDrawn){const S=o.questionList[l];hu()(b=>{const N=C[b];E.push({...N,drawn:!0,id:`${f.id}-${N.id}`})},S),x.push(...S)}else{const S=_6({drawCount:v,questions:C,drawnQuestions:L});E.push({...S,drawn:!0,id:`${f.id}-${S.id}`}),L.push(S.id),x.push(S.index)}a=[...h,...E,...g],d.push(x),l++,c=bu(a)}const u=Y5({questionIndexList:d,items:a,progress:o});return r({lessonId:e,lessonProgress:u}),{items:a,progress:u}},TF=Ye()(!1,["settings","randomizeQuestionOrder"]),J5=St()(sn()(TF,hF),dF,Pe()("items")),sm=(0,y.shape)({image:(0,y.shape)({key:y.string,originalUrl:y.string,sourcedFrom:(0,y.oneOf)(["DEFAULT","USER","LIBRARY","AI"]),src:y.string,thumbnail:y.string,type:y.string,useCrushedKey:y.bool})}),SF=(0,y.shape)({themeId:y.string,coverImage:y.string,navigation:y.bool,showAuthor:y.bool,allowSearch:y.bool,colorAccent:y.string,blockCorners:y.string,buttonScheme:y.string,uiTypefaceId:y.string,coverPageType:y.string,bodyTypefaceId:y.string,navigationType:y.string,blockPaddingTop:y.number,coverImageAlpha:y.number,navigationStyle:y.string,showLessonCount:y.bool,lessonHeaderSize:y.string,buttonInlineStyle:y.string,coverImageDefault:y.string,headingTypefaceId:y.string,lessonHeaderColor:y.string,lessonHeaderImage:y.string,lessonHeaderStyle:y.string,sidebarStartsOpen:y.bool,blockPaddingBottom:y.number,markLessonsComplete:y.bool,animateBlockEntrance:y.bool,navigationRestricted:y.bool,buttonNavigationStyle:y.string,showNavigationButtons:y.bool,compactShowLessonCount:y.bool,lessonHeaderImageAlpha:y.number,lessonHeaderImageColor:y.string,enableVideoPlaybackSpeed:y.bool,blockNavigationType:y.string,blockNavigationStyle:y.string,progressIndicatorStyle:y.string}),LF=(0,y.shape)({activeEdition:y.number,activeLMS:y.number,completeWith:(0,y.oneOf)(["reporting","quiz","storyline"]),completionPercentage:y.number,enableExitCourse:y.bool,exportType:(0,y.oneOf)(["lms","pdf","raw","business-content"]),format:(0,y.oneOf)(["zip"]),identifier:y.string,quizId:y.string,quizComplete:y.bool,reporting:(0,y.oneOf)(["passed-incomplete"]),shareId:y.string,storylineId:y.string,storylineComplete:y.bool,target:(0,y.oneOf)(["scorm12","scorm2004","aicc","xapi","cmi5"]),targetName:(0,y.oneOf)(["SCORM 1.2","SCORM 2004","AICC","xAPI","cmi5"]),title:(0,y.oneOfType)([y.string,(0,y.shape)({l10nId:y.string})]),resetLearnerData:y.bool}),nm=y.string,On=y.string,om=t=>(0,y.oneOfType)([t,(0,y.shape)({l10nId:y.string})]),Iue=(0,y.shape)({id:On,originalId:On,author:On,selectedAuthorId:On,color:y.string,navigationMode:y.string,title:om(y.string),sharePassword:y.string,description:om(y.string),shareId:On,copyOf:y.string,order:y.string,fonts:y.object,media:sm,coverImage:(0,y.shape)({alpha:y.number,displaySidebar:y.bool,media:sm}),lessons:(0,y.arrayOf)(On),jobs:(0,y.arrayOf)(On),labelSetId:On,deleted:y.bool,createdAt:nm,updatedAt:nm,markComplete:y.bool,isDefault:y.bool,ready:y.bool,reviewId:On,exportSettings:LF,headingTypefaceId:On,bodyTypefaceId:On,uiTypefaceId:On,sidebarMode:y.string,tenantId:On,showLessonCount:y.bool,showNavigationButtons:y.bool,allowSearch:y.bool,authorPermissions:(0,y.arrayOf)(y.string),animateBlockEntrance:y.bool,transferredAt:nm,allowCopy:y.bool,enableVideoPlaybackSpeed:y.bool,jobType:y.string,partnerContentId:On,cardImage:sm,theme:SF,lessonHeaderImage:y.object,overlayNavigationImage:y.object,type:y.string,features:y.object,courseId:y.string,typefaces:(0,y.objectOf)(y.string)}),{FILL_IN_THE_BLANK:Yi,MATCHING:Xi,MULTIPLE_CHOICE:Ll,MULTIPLE_RESPONSE:bl}=yt.Ay,{ANY:bF,CHOICE:yF,CORRECT_INCORRECT:IF}=Vf,NF=3,q5=ot()("quiz-item__"),Ji=Ye()(0,["progress","activeIndex"]),jF=Se()(us(),dh(),tt()({},"matches"));class AF extends ie().Component{constructor(e){super(e),this.getSelection=this.getSelection.bind(this),this.submitAndSetNextIndex=this.submitAndSetNextIndex.bind(this),this.onChoiceSelect=this.onChoiceSelect.bind(this),this.onFillInChange=this.onFillInChange.bind(this),this.onMatchSet=this.onMatchSet.bind(this),this.onNextClick=this.onNextClick.bind(this),this.onResponseToggle=this.onResponseToggle.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={errorIncomplete:!1,startTime:Date.now(),matches:{}},this.wrapper=ie().createRef(),this.id=rt()("qi-")}componentDidUpdate(e){const{isReduceMotion:s}=this.props;this.isNewlyActive({prevProps:e})&&(this.scrollTop(),this.setState({startTime:Date.now()})),s||this.scrollActionsIfComplete({prevProps:e})}componentWillUnmount(){clearTimeout(this.timeoutScrollActionsIfComplete)}static propTypes={enableVideoPlaybackSpeed:A().bool,getClassName:A().func,hasStart:A().bool,id:A().string.isRequired,index:A().number,isReduceMotion:A().bool.isRequired,isTimedQuiz:A().bool,item:A().object.isRequired,items:A().arrayOf(A().object),labels:Qi,onChoiceSelect:A().func,onFillInChange:A().func,onMatchSet:A().func,onResponseToggle:A().func,prefersKeyboardNavigation:A().bool,progress:A().object,quizTop:A().number,reportAnswer:A().func,retryAttempts:A().number,scrollId:A().string,setNextIndex:A().func,settings:A().object,showNextButton:A().bool,submitAction:A().func,title:om(A().string.isRequired)};static get defaultProps(){return{getClassName:()=>{},labels:{},onChoiceSelect:()=>{},onFillInChange:()=>{},onMatchSet:()=>{},onResponseToggle:()=>{},reportAnswer:()=>{},retryAttempts:0,setNextIndex:()=>{},settings:{revealAnswers:yt.iV.ALL},showNextButton:!0,submitAction:()=>[]}}getCanSubmit({itemProgress:e}){const{item:s}=this.props;switch(s.type){case Yi:return ih(Pe()("text",e));case Xi:return jF(e)===us()(Pe()("answers",s));case bl:return Se()(kn()(ih,Ma),Pe()("selectedIndices"))(e);case Ll:default:return ih(Pe()("selectedIndex",e))}}getFeedback({isCorrect:e,selectedIndex:s}){const{item:o}=this.props,{answers:r,feedback:a,feedbackCorrect:c,feedbackIncorrect:d,feedbackType:l}=o;switch(l){case yF:return Ye()("",[s,"feedback"],r);case IF:return e?c:d;case bF:default:return a}}getIndex(){return this.props.hasStart?Zt()(this.props.index):this.props.index}getIsComplete({itemProgress:e}){return tt()(!1,"isComplete",e)}getIsDoneCard(){const e=this.getIndex(),s=Ji(this.props);return e<s}getIsCorrect({itemProgress:e}){const{item:s,getL10nValue:o}=this.props;switch(s.type){case Yi:return qH({item:s,itemProgress:e,getL10nValue:o});case Xi:return eF({itemProgress:e});case bl:return iF({item:s,itemProgress:e});case Ll:default:return sF({item:s,itemProgress:e})}}getItemProgress({props:e}){return Ye()({},["items",e.item.id],e.progress)}getSelection({itemProgress:e}){const{type:s}=this.props.item;switch(s){case Yi:return e.text;case Xi:return e.matches;case bl:return e.selectedIndices;case Ll:default:return e.selectedIndex}}hasNoBorder(){return on()(this.props.item.type,[Yi,Xi])}submitAndSetNextIndex(e=()=>[],s={}){const{id:o,setNextIndex:r}=this.props;e(s),r(o)}isNewlyActive({prevProps:e}){const s=Ji(this.props),o=Ji(e),r=this.getIndex();return o!==s&&r===s}onChoiceSelect({selectedIndex:e}){const{id:s,item:o,onChoiceSelect:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:s,itemId:a,selectedIndex:e})}onFillInChange(e){const{id:s,item:o,onFillInChange:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:s,itemId:a,text:e})}onMatchSet(e){const{id:s,item:o,onMatchSet:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:s,itemId:a,matches:e})}onNextClick(e=()=>[],s={}){at.pause(),this.submitAndSetNextIndex(e,s)}onNextFeedbackClick(e){e&&this.onNextClick()}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}onResponseToggle({optionIndex:e}){const{id:s,item:o,onResponseToggle:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:s,itemId:a,selectedIndex:e})}onSubmit({canSubmit:e,isCorrect:s,itemProgress:o}){return r=>{r.preventDefault();const{getL10nRecursive:a,id:c,item:d,reportAnswer:l,retryAttempts:u,settings:h,submitAction:p,title:f}=this.props;if(!e){switch(this.setState({errorIncomplete:!0}),d.type){case Yi:this.wrapper.current?.querySelector("input")?.focus();break;case bl:case Ll:this.wrapper.current?.querySelector("input")?.focus();break;case Xi:this.wrapper.current?.querySelector("button")?.focus();break;default:break}return}const{startTime:g}=this.state,{id:v}=d,{revealAnswers:C,passToContinue:E}=h,L={startTime:g,stopTime:Date.now()},x=tt()(-1,"retryCount",h),S=parseInt(x,10),b=parseInt(u,10),N=ps()(S,b),I=a({duration:L,id:c,isCorrect:s,item:d,itemProgress:o,retryAttempts:u,title:f});l(I);const j={finalRetryAttempt:N,lessonId:c,isCorrect:s,itemId:v,passToContinue:E,revealAnswers:C};if(C===yt.iV.ALL||C===yt.iV.INCORRECT)return p(j);this.onNextClick(p,j)}}render(){return this.props.isCard?this.renderCard():this.renderDefault()}renderCard(){const{getClassName:e,settings:s}=this.props,{correctAnswerColor:o,incorrectAnswerColor:r}=s,a=this.getIndex(),c=Ji(this.props),d=a===c,l=this.getItemProgress({props:this.props}),u=this.getIsComplete({itemProgress:l}),h=this.getIsCorrect({itemProgress:l}),p=this.props.isTimedQuiz,f=e(a),v={"--color-feedback-icon":h?o:r,"--color-matching-feedback-bubble-bg":r,"--color-multiple-choice-complete-border":r,"--color-multiple-choice-correct-border":o,"--color-multiple-response-correct-border":o,"--color-multiple-response-incorrect-border":r,"--color-multiple-response-option-check":u?o:void 0,"--color-quiz-option-check":o,"--color-x-fill":r};return(0,n.jsx)("div",{inert:d?void 0:!0,className:f,children:(0,n.jsx)("div",{className:q5("card-wrap"),children:(0,n.jsx)(Of,{isActive:d,isComplete:u,isTimedQuiz:p,style:v,children:(0,n.jsx)("div",{style:d||u?void 0:{display:"none"},children:this.renderItem()})})})})}renderDefault(){return(0,n.jsx)("div",{className:q5("wrap"),children:this.renderItem()})}renderItem(){const{enableVideoPlaybackSpeed:e,hasStart:s,isReduceMotion:o,isQuestionBankQuiz:r,item:a,items:c,labels:d,onTakeAgain:l,progress:u,settings:h,showNextButton:p}=this.props,{errorIncomplete:f}=this.state,{quizAcceptableResponses:g,quizAnswerPlaceholder:v,quizCorrect:C,quizIncorrect:E,quizNext:L,quizRequireAnswer:x,quizRestart:S,quizQuestion:b,quizSubmit:N}=d,{id:I,media:j,title:R,settings:P}=a,{correctAnswerColor:B,correctAnswerColorContrast:_,incorrectAnswerColor:k,incorrectAnswerColorContrast:J,revealAnswers:Z=yt.iV.NONE}=h,G=this.getIndex(),Y=Ji(this.props),Ee=G===Y,fe=this.getItemProgress({props:this.props}),oe=this.getIsComplete({itemProgress:fe}),we=this.getIsCorrect({itemProgress:fe}),Ae=Z==yt.iV.ALL||Z==yt.iV.INCORRECT,_e=Ee&&oe&&Ae,Qe=Ee&&!oe&&this.getCanSubmit({itemProgress:fe}),pt=this.onSubmit({canSubmit:Qe,isCorrect:we,itemProgress:fe,item:a}),ls=Pe()("selectedIndex",fe),nt=this.getFeedback({isCorrect:we,selectedIndex:ls}),Ce=`q-${I}`,Ne=this.getSelection({itemProgress:fe}),Ke=M()("quiz-card__retake-container",{"quiz-card__retake-container--active":oe}),He=M()("quiz-card__retake","brand--hoverColor",{"quiz-card__retake--active":oe});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(fM,{isActive:Ee,labels:d,num:s?G:G+1,quizQuestion:b,total:us()(c)}),(0,n.jsx)(gM,{allowTabNavigation:Ee,id:Ce,value:R}),(0,n.jsx)(Uf,{allowTabNavigation:Ee,enableVideoPlaybackSpeed:e,index:String(G),labels:d,media:j,settings:P}),(0,n.jsx)(kf,{hasNoBorder:this.hasNoBorder(),children:(0,n.jsx)("div",{ref:this.wrapper,children:this.renderType({columnBehavior:P?.columnBehavior,correctAnswerColor:B,correctAnswerColorContrast:_,incorrectAnswerColor:k,incorrectAnswerColorContrast:J,isActive:Ee,isComplete:oe,isCorrect:we,itemProgress:fe,labels:d,onSubmit:pt,revealAnswers:Z,questionHtmlId:Ce,quizAcceptableResponses:g,quizAnswerPlaceholder:v})})}),(0,n.jsx)("div",{"aria-live":"assertive",className:"quiz-card__validations",children:f&&(0,n.jsxs)("div",{children:[(0,n.jsx)(Lt,{className:"quiz-card__validation-icon",name:"alert-circle"}),(0,n.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:x})]})}),(0,n.jsx)(Df,{canProceed:this.state.forceShowFeedback||_e,feedbackRef:dt=>{this.feedback=dt},feedbackValue:this.state.forceFeedbackMessage||nt,isActive:Ee,isComplete:oe,isCorrect:this.state.forceShowFeedbackCorrect||we,item:a,labels:d,progress:fe,quizCorrect:C,quizIncorrect:E,revealAnswers:Z,selection:Ne}),(0,n.jsx)(Rf,{allowNext:!l,canProceed:_e,canSubmit:Qe,isReduceMotion:o,item:a,onNext:p?this.onNextFeedbackClick.bind(this,Ee):null,onSubmit:pt,quizNext:u.percentComplete===100&&r?S:L,quizSubmit:N}),l&&(0,n.jsx)("div",{className:Ke,children:(0,n.jsx)("button",{className:He,onClick:l,type:"button",children:(0,n.jsxs)("div",{className:"quiz-card__retake-content",children:[(0,n.jsx)("div",{className:"quiz-card__retake-text brand--ui",children:"TAKE AGAIN"}),(0,n.jsx)("i",{className:"quiz-card__retake-icon icon icon-reload"})]})})})]})}renderMCOptionText(e,{title:s}){return(0,n.jsx)(Nt,{allowTabNavigation:e,className:"quiz-multiple-choice-option__label",value:s})}renderMROptionText(e,{title:s}){return(0,n.jsx)(Nt,{allowTabNavigation:e,component:"span",value:s})}renderType(e){const{columnBehavior:s,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:c,isActive:d,isComplete:l,isCorrect:u,isReduceMotion:h,itemProgress:p,labels:f,onSubmit:g,revealAnswers:v,questionHtmlId:C,quizAcceptableResponses:E,quizAnswerPlaceholder:L}=e,{color:x,item:S,prefersKeyboardNavigation:b}=this.props,{answers:N,correct:I,corrects:j,type:R}=S,P=d&&!l,B=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(R){case Yi:return(0,n.jsx)(Wf,{allowTabNavigation:d,correctAnswerColor:o,correctAnswerColorContrast:r,errorMessageId:B,incorrectAnswerColor:a,incorrectAnswerColorContrast:c,isComplete:l,isCorrect:u,labels:f,onChange:this.onFillInChange,onEnterToSubmit:g,options:N,revealAnswers:v,questionHtmlId:C,quizAcceptableResponses:E,quizAnswerPlaceholder:L,value:tt()("","text",p)});case Xi:return(0,n.jsx)(Qf,{answers:N,columnBehavior:s,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:c,isActive:d,isComplete:l,matches:p?.matches??{},onChange:this.onMatchSet,prefersKeyboardNavigation:b,revealAnswers:v});case bl:return(0,n.jsx)(Yf,{allowTabNavigation:d,correctAnswerColor:o,correctIds:j,errorMessageId:B,incorrectAnswerColor:a,isComplete:l,isCorrect:u,labels:f,onChange:this.onResponseToggle,onEnterToSubmit:g,options:N,questionHtmlId:C,renderOptionText:this.renderMROptionText.bind(this,d),revealAnswers:v,selectedIndices:Pe()("selectedIndices",p)});case Ll:default:return(0,n.jsx)(Zf,{allowTabNavigation:P,color:x,correctAnswerColor:o,correctId:I,errorMessageId:B,incorrectAnswerColor:a,isComplete:l,isCorrect:u,isReduceMotion:h,labels:f,onChange:this.onChoiceSelect,onEnterToSubmit:g,options:N,questionHtmlId:C,renderOptionText:this.renderMCOptionText.bind(this,d),revealAnswers:v,selectedIndex:Pe()("selectedIndex",p)})}}scrollActionsIfComplete({prevProps:e}){const{isReduceMotion:s,scrollId:o,settings:r}=this.props,{revealAnswers:a=yt.iV.NONE}=r,c=this.getIndex(),d=Ji(this.props);if(!(c===d)||a===yt.iV.NONE)return;const u=this.getItemProgress({props:e}),h=this.getIsComplete({itemProgress:u}),p=this.getItemProgress({props:this.props}),f=this.getIsComplete({itemProgress:p}),g=()=>{const{offsetHeight:v,offsetTop:C}=this.feedback,E=v+C;document.getElementById(o||"page-wrap")?.scrollTo({top:E,behavior:s?"instant":"smooth"})};!h&&f&&(this.timeoutScrollActionsIfComplete=setTimeout(g,750))}scrollTop(){const{isReduceMotion:e,quizTop:s,scrollId:o}=this.props,r=s||NF;document.getElementById(o||"page-wrap")?.scrollTo({top:r,behavior:e?"instant":"smooth"})}}const RF=Se()(of)(AF),eg=(0,m.createContext)({handleExpiredQuiz:Ft.lQ,hideTimer:Ft.lQ,quizTime:0,resetQuizTimer:Ft.lQ,timerDuration:0,timerHidden:!1,timerRunning:!1});function OF({children:t,handleExpiredQuiz:e=()=>{},isTimedQuiz:s,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const c=(0,m.useRef)(void 0),[d,l]=(0,m.useState)(),[u,h]=(0,m.useState)(!1),[p,f]=(0,m.useState)(!1),[g,v]=(0,m.useState)(),C=(0,m.useMemo)(()=>Number(a),[a]),{activeIndex:E,endIndex:L,lessonId:x,lessonProgress:S,startIndex:b}=(0,m.useMemo)(()=>{const Y=o?.currentLesson,Ee=o?.lessons?.[Y],fe=Ee?.activeIndex||0,oe=Object.keys(Ee?.items||{}).length+1;return{activeIndex:fe,lessonId:Y,endIndex:oe,lessonProgress:Ee,startIndex:0}},[o]),N=(0,as.A)(x),I=(0,as.A)(E),j=(0,m.useCallback)(()=>{l(C*60)},[C]),R=(0,m.useCallback)(()=>{l(Y=>Y-1)},[l]),P=(0,m.useCallback)(()=>{h(!0),c.current||(c.current=setInterval(R,1e3))},[R,h]),B=(0,m.useCallback)(Y=>{f(Y!==void 0?Y:!p)},[p]),_=(0,m.useCallback)(()=>{h(!1),c.current&&(c.current=clearInterval(c.current))},[h]),k=(0,m.useCallback)(()=>{d&&g!==void 0&&r({lessonId:g,timeRemaining:d})},[g,d,r]),J=(0,m.useCallback)(()=>{k(),l(void 0)},[l,k]),Z=(0,m.useCallback)(()=>l(S.timeRemaining||C*60),[S,C,l]);(0,m.useEffect)(()=>{if(!s)return;const Y=N!==x,Ee=Y&&d,fe=Y&&s;s&&!Y&&g!==x&&v(x),Ee&&J(),fe&&Z()},[s,g,x,N,d,Z,J]),(0,m.useEffect)(()=>{if(s)switch(E){case b:_();break;case L:j(),_();break;default:P(),I!==E&&N===x&&k()}},[E,L,s,x,I,N,j,b,P,_,k]),(0,m.useEffect)(()=>{s&&d<1&&_()},[s,d,_]);const G=(0,m.useMemo)(()=>({handleExpiredQuiz:e,hideTimer:B,quizTime:d,resetQuizTimer:j,timerDuration:C,timerHidden:p,timerRunning:u}),[e,B,d,j,C,p,u]);return(0,n.jsx)(eg.Provider,{value:G,children:t})}const tg=()=>(0,m.useContext)(eg),PF=t=>t.isTimedQuiz?(0,n.jsx)(OF,{...t,children:t.children}):(0,n.jsx)(n.Fragment,{children:t.children}),Tn=q("quiz-timer"),rm=(t,e)=>`${t.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`,MF=t=>{const e=Math.floor(t/60),s=t%60;return rm(e,s)},sg=t=>{const e=Math.floor(t/60),s=t%60;return rm(e,s)},DF=t=>rm(t,0),ng=({area:t,exitCourseEnabled:e=!1,isStartScreenActive:s=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:c,labelQuizTimerExpiredMessage:d,labelQuizTimerHide:l,labelQuizTimerLimit:u,labelQuizTimerMinute:h,labelQuizTimerMinutePlural:p,labelQuizTimerRemaining:f,labelQuizTimerShow:g,timerDisplay:v=yt.sS.REMAINING,timerEnabled:C=!1})=>{const[E,L]=(0,m.useState)(!1),{hideTimer:x,quizTime:S,timerDuration:b,timerHidden:N,timerRunning:I,handleExpiredQuiz:j}=tg(),R=(0,m.useMemo)(()=>b*60,[b]),{isCover:P,isHeader:B,isHidden:_}=(0,m.useMemo)(()=>({isCover:t==="cover",isHeader:t==="header",isHidden:v===yt.sS.HIDE_TIMER}),[t,v]),k=(0,m.useMemo)(()=>s&&!P,[s,P]),J=()=>{L(!1),j()};if((0,m.useEffect)(()=>{I&&S===0&&L(!0)},[I,S]),!C||k||o)return null;const Z={"header-area":B,"cover-area":P,"hide-timer":_,"exit-course":e},G={display:[P,B&&!s].some(Un())?null:"none"},Y=()=>({[yt.sS.SUMMARY]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("label"),children:[u,":"]}),(0,n.jsxs)("div",{className:Tn("value"),children:[b," ",b===1?h:p]})]}),[yt.sS.REMAINING]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("label"),children:[f,":"]}),(0,n.jsx)("div",{className:Tn("value"),children:MF(S)})]}),[yt.sS.ELAPSED]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("label"),children:[r,":"]}),(0,n.jsx)("div",{className:Tn("value"),children:sg(R-S)})]}),[yt.sS.ELAPSED_TOTAL]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("label"),children:[r,":"]}),(0,n.jsxs)("div",{className:Tn("value"),children:[sg(R-S)," / ",DF(b)]})]})})[P?yt.sS.SUMMARY:v];return(0,n.jsxs)("div",{className:Tn(Z),style:G,children:[B&&N?(0,n.jsxs)("button",{type:"button",className:Tn("hide"),onClick:()=>x(!1),children:[(0,n.jsx)(Lt,{className:Tn("icon"),name:"stopwatch-regular"}),g]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Tn("time"),children:[(0,n.jsx)(Lt,{className:Tn("icon"),name:"stopwatch-regular"}),(0,n.jsx)("div",{className:Tn("desc"),children:Y()})]}),B&&(0,n.jsx)("button",{type:"button",className:Tn("hide"),onClick:()=>x(!0),children:l})]}),!P&&E&&Yn.createPortal((0,n.jsxs)(x1,{className:"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:J,onClose:J,onOverlayClick:()=>{},children:[(0,n.jsx)("p",{children:d}),(0,n.jsx)("button",{type:"button",onClick:J,children:c})]}),kr({childType:"dialog"}))]})};var kF=i(59288);const wF=t=>({start:t<2?0:t-2,end:t+2}),yu=Ye()(0,["progress","activeIndex"]),am=t=>e=>M()("quiz-item__card",{"quiz-item__card--active":e===t,"quiz-item__card--done":e<t,"quiz-item__card--next":e===t+1,"quiz-item__card--penultimate":e===t+2,"quiz-item__card--future":e>t+2}),im=Ye()(0,["progress","retryAttempts"]),BF=Js();class _F extends kF.Component{constructor(e){super(e);const{initializeDrawnQuizQuestions:s}=e,o=X5({...e,initializeDrawnQuizQuestions:s}),r={...e,...o};this.state={items:J5(r),progress:r.progress,isQuizCover:!1,hasNavMenu:!1,course:e.course,lesson:e.course?.lessons?.find(a=>a.id===e.lessonProgress?.id)}}UNSAFE_componentWillReceiveProps(e){const s=im(this.props),o=im(e);if(s!==o){const r=X5({...e}),a={...e,...r};this.setState({items:J5(a),progress:a.progress})}else{const{items:r,progress:a}=xF({...e,currentItems:this.state.items}),c=vF(this.state.items,r);this.setState({items:c,progress:a})}}static get defaultProps(){return{initializeDrawnQuizQuestions:Ft.lQ}}componentDidUpdate(e,s){}render(){const{labels:e,quizEnd:s,quizHeader:o,settings:r,isQuestionBankQuiz:a}=this.props,{course:c,items:d}=this.state,l=yu(this.state),{start:u,end:h}=wF(l),p=d.slice(u,h),f=!a&&l===0,g=!a&&l===d.length+1;return(0,n.jsxs)("section",{className:"quiz","data-quiz":!0,children:[r?.timer&&(0,n.jsx)(ng,{area:"header",exitCourseEnabled:c?.lmsOptions?.enableExitCourse,isStartScreenActive:f,isEndScreenActive:g,labelQuizTimerElapsed:e?.quizTimerElapsed,labelQuizTimerExpired:e?.quizTimerExpired,labelQuizTimerExpiredAction:e?.quizTimerExpiredAction,labelQuizTimerExpiredMessage:e?.quizTimerExpiredMessage,labelQuizTimerHide:e?.quizTimerHide,labelQuizTimerLimit:e?.quizTimerLimit,labelQuizTimerMinute:e?.quizTimerMinute,labelQuizTimerMinutePlural:e?.quizTimerMinutePlural,labelQuizTimerRemaining:e?.quizTimerRemaining,labelQuizTimerShow:e?.quizTimerShow,timerDisplay:r?.timerDisplay,timerEnabled:r?.timer}),(0,n.jsxs)("div",{className:"quiz__wrap",children:[o&&l<2?this.renderStart():null,p.map(this.renderItem.bind(this,u)),s&&this.renderEnd()]})]})}renderEnd(){const{quizEnd:e}=this.props,{items:s}=this.state,o=yu(this.state),r=am(o),a=s.length+1;return(0,n.jsx)("div",{inert:a===o?void 0:!0,className:r(a),children:(0,n.jsx)("div",{className:"quiz__item-wrap",children:e(s)})})}getQuizTop(){return document.querySelector(".lesson-nav--previous")?.clientHeight}renderItem(e,s,o){const{color:r,enableVideoPlaybackSpeed:a,id:c,isQuestionBankQuiz:d,labels:l,reportAnswer:u,onChoiceSelect:h,onFillInChange:p,onMatchSet:f,onResponseToggle:g,onSetIndex:v,onSubmit:C,prefersKeyboardNavigation:E,progress:L,quizHeader:x,settings:S,title:b}=this.props,{items:N}=this.state,I=yu(this.state),j=am(I),R=this.getQuizTop();return(0,n.jsx)(RF,{color:r,enableVideoPlaybackSpeed:a,getClassName:j,hasStart:!!x,id:c,index:o+e,isCard:!0,isQuestionBankQuiz:d,isReduceMotion:BF,isTimedQuiz:S?.timer,item:s,items:N,labels:l,onChoiceSelect:h,onFillInChange:p,onMatchSet:f,onResponseToggle:g,prefersKeyboardNavigation:E,progress:L,quizTop:R,reportAnswer:u,retryAttempts:im({progress:L}),scrollId:"page-wrap",setNextIndex:v,settings:S,submitAction:C,title:b},`item-${s.id}`)}renderStart(){const{quizHeader:e}=this.props,{items:s}=this.state,o=yu(this.state),r=am(o);return(0,n.jsx)("div",{className:r(0),children:(0,n.jsx)("div",{className:"quiz__item-wrap",children:e(s)})})}}const UF=_F;var Iu=i(36704),Qs=i(6408),HF=i(59288);class qi extends HF.PureComponent{constructor(e){super(e),this.animationTimeout=null,this.state={counted:!1}}static get defaultProps(){return{canvasWidth:590,canvasHeight:500,onAnimationDone:Ft.lQ,score:0}}static easeInOutCubic(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}static easeInOutQuad(e){return e<.5?2*e*e:-1+(4-2*e)*e}componentWillUnmount(){this.resetCanvas(),this.resetAnimationTimeout()}componentDidMount(){this.props.atEnd&&this.props.complete&&(this.odo(),this.animationTimeout=setTimeout(()=>{this.setState({counted:!0}),this.props.onAnimationDone()},4e3))}componentDidUpdate(e,s){e.atEnd&&!this.props.atEnd?(this.resetCanvas(),this.resetAnimationTimeout(),this.setState({counted:!1})):!e.atEnd&&this.props.atEnd&&!this.state.counted&&this.props.complete&&(this.odo(),this.animationTimeout=setTimeout(()=>{this.setState({counted:!0}),this.props.onAnimationDone()},4e3)),!s.counted&&this.state.counted&&(this.props.isPass?this.pass():this.fail())}render(){const{canvasHeight:e,canvasWidth:s,passingScore:o,isPass:r,isRTL:a,quizPassing:c,quizScore:d,scoreLabel:l}=this.props,{counted:u}=this.state,h=a?`%${o}`:`${o}%`,p=M()("odometer__score brand--ui",{"odometer__score--pass":u&&r,"odometer__score--fail":u&&r===!1}),f=M()("odometer__score-percent",{"odometer__score-percent--hidden":u});return(0,n.jsxs)("div",{className:"odometer",children:[(0,n.jsx)("canvas",{className:"odometer__canvas",id:"odometer",width:s,height:e}),(0,n.jsx)("canvas",{className:"odometer__fail",id:"fail",width:"170",height:"170"}),(0,n.jsx)("canvas",{className:"odometer__pass",id:"pass",width:"170",height:"170"}),(0,n.jsxs)("div",{className:p,children:[(0,n.jsx)("div",{className:"odometer__score-label",children:d}),(0,n.jsx)("div",{className:"odometer__pass-label brand--color",children:l}),(0,n.jsx)("div",{className:"odometer__fail-label",children:l}),(0,n.jsx)("div",{ref:g=>{this.scorePercent=g},className:f})]}),(0,n.jsxs)("div",{ref:g=>{this.passmark=g},className:"odometer__passmark",children:[(0,n.jsx)("div",{className:"odometer__passlabel brand--ui",children:c}),(0,n.jsx)("div",{className:"odometer__passpercent brand--ui",children:h})]})]})}resetAnimationTimeout(){clearTimeout(this.animationTimeout),this.animationTimeout=null}resetCanvas(){const e=document.getElementById("pass"),s=document.getElementById("fail");e&&s&&(e.getContext("2d").clearRect(0,0,170,170),s.getContext("2d").clearRect(0,0,170,170))}odo(){const{passingScore:e,atEnd:s,canvasWidth:o,canvasHeight:r,color:a,isRTL:c}=this.props,l=document.getElementById("odometer").getContext("2d"),u=new Image,h=210,p=Math.PI/.8,f=Math.PI*.25,g=(E,L)=>{let x=qi.easeInOutCubic(Math.min(E,1));const b=(225+270*(x*L)-90)*Math.PI/180,N=o*.5+h*Math.cos(b),I=r*.5+h*Math.sin(b),R=(225+270*(e/100)-90)*Math.PI/180,P=o*.5+h*Math.cos(R),B=r*.5+h*Math.sin(R),_=P+3,k=B+3;this.passmark&&!c?(this.passmark.style.insetInlineStart=`${P/o*100}%`,this.passmark.style.insetBlockStart=`${B/r*100}%`):this.passmark&&c&&(this.passmark.style.insetInlineEnd=`${P/o*100}%`,this.passmark.style.insetBlockStart=`${B/r*100}%`,this.passmark.style.paddingInline="8.5rem"),l.clearRect(0,0,o,r),l.beginPath(),l.arc(o/2,r/2,h+9,f,Math.PI*1.52*(e/100-.03)-p,!0),l.lineWidth=16,l.strokeStyle=l.createPattern(u,"repeat"),l.stroke(),l.closePath(),l.beginPath(),l.moveTo(_,k),l.lineTo(_+38,k-38),l.lineTo(_-38,k-38),l.lineTo(_-38,k+38),l.fillStyle=cn()?"transparent":"#f5f5f5",l.fill(),l.closePath(),l.beginPath(),l.moveTo(P,B),l.lineTo(P+35,B-35),l.strokeStyle=cn()?"CanvasText":"#c2c3c4",l.lineWidth=1,l.stroke(),l.closePath(),l.beginPath(),l.moveTo(P+35,B-35),l.lineTo(P+70,B-35),l.strokeStyle=cn()?"CanvasText":"#c2c3c4",l.lineWidth=1,l.stroke(),l.closePath(),l.beginPath(),l.strokeStyle=cn()?"CanvasText":"#dcdcdc",l.globalAlpha=cn()?.5:1,l.arc(o/2,r/2,h,-p,Math.PI*1.5-p,!1),l.lineWidth=3,l.stroke(),l.closePath(),cn()&&(l.globalAlpha=1),s&&(l.beginPath(),l.arc(o/2,r/2,h,-p,Math.PI*1.5*x*L-p,!1),l.lineWidth=3,l.strokeStyle=cn()?"CanvasText":"#000",Math.floor(x*L*100)>=e&&(l.strokeStyle=a),l.stroke(),l.closePath(),l.beginPath(),l.arc(N,I,6,0,2*Math.PI,!1),l.fillStyle=cn()?"CanvasText":"#000",Math.floor(x*L*100)>=e&&(l.fillStyle=cn()?"CanvasText":a),l.fill(),l.closePath())};u.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDFBQzM3NTBGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDFBQzM3NTFGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMUFDMzc0RUYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMUFDMzc0RkYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pq3YZDIAAAA6SURBVHjaYjQ0NVdiYGC4D8T/GRCAEYgVmXBJADEzEy4JIL7DhEsCpIkJlwRIkAmXBEwSqwQIAAQYABZQDs+U1J1TAAAAAElFTkSuQmCC";let v=null;const C=E=>L=>{!v&&E&&(v=L);const S=E?(L-v)/2e3:0;g(S,this.props.score/100),S<1&&E&&window.requestAnimationFrame(C(!0))};window.requestAnimationFrame(C(!1)),setTimeout(()=>{window.requestAnimationFrame(C(!0)),this.score()},1e3)}score(){const{isRTL:e}=this.props,s=(c,d)=>{const l=qi.easeInOutQuad(Math.min(c,1));let u=Math.round(l*d*100)+"";if(this.scorePercent){const h=e?`%${u}`:`${u}%`;for(;u.length<2;)u="0"+u;this.scorePercent.innerHTML=h}};let o=null;const r=c=>{o||(o=c);const l=(c-o)/2e3;s(l,this.props.score/100),l<1&&window.requestAnimationFrame(r)};function a(){o=null,window.requestAnimationFrame(r)}a()}pass(){const{color:e}=this.props,o=document.getElementById("pass").getContext("2d"),r=95,a=95,c=h=>{const p=qi.easeInOutCubic(Math.min(h,1));o.clearRect(0,0,170,170),o.beginPath(),o.moveTo(r-65,a-25),o.lineTo(r-65+40*Math.min(p,.5)*2,a-25+45*Math.min(p,.5)*2),p>=.5&&o.lineTo(r-25+90*(p-.5)*2,a+15-85*(p-.5)*2),o.strokeStyle=cn()?"CanvasText":e,o.lineWidth=20,o.stroke(),o.closePath()};let d=null;const l=h=>{d||(d=h);const f=(h-d)/750;c(f,this.props.score/100),f<1&&window.requestAnimationFrame(l)};function u(){d=null,window.requestAnimationFrame(l)}u()}fail(){const s=document.getElementById("pass").getContext("2d"),o=85,r=75,a=u=>{const h=qi.easeInOutCubic(Math.min(u,1));s.clearRect(0,0,170,170),s.beginPath(),s.moveTo(o-45,r-45),s.lineTo(o-45+90*Math.min(h,.5)*2,r-45+90*Math.min(h,.5)*2),s.strokeStyle=cn()?"CanvasText":"#000",s.lineWidth=20,s.stroke(),s.closePath(),h>=.5&&(s.beginPath(),s.moveTo(o+45,r-45),s.lineTo(o+45-90*(h-.5)*2,r-45+90*(h-.5)*2),s.strokeStyle=cn()?"CanvasText":"#000",s.lineWidth=20,s.stroke(),s.closePath())};let c=null;const d=u=>{c||(c=u);const p=(u-c)/750;a(p,this.props.score/100),p<1&&window.requestAnimationFrame(d)};function l(){c=null,window.requestAnimationFrame(d)}l()}}const FF=Yd(qi);function zF({color:t,continueType:e,currentPassingScore:s,id:o,length:r,mode:a,nextLesson:c,nextLessonRestrictions:d,onNextClick:l,onResultsDisplayed:u,passingScore:h,retryAttempts:p,retryCount:f,showNavigationButtons:g,sidebarEnabled:v}){const[C,E]=(0,m.useState)(!1),{activeIndex:L,reportResults:x,score:S}=De(o)??{},[b,N]=(0,m.useState)(r+1===L),I=(0,as.A)(b),j=(0,m.useRef)(),R=(0,m.useRef)(),P=(0,ze.useLabelsMap)(),{a11yQuizFailed:B,a11yQuizPassed:_,quizPassing:k,quizResults:J,quizScore:Z}=P,G=S>=h,Y=`${Z} ${S}%`,Ee=(0,m.useCallback)(()=>{j.current=setTimeout(()=>{E(!0),u()},500)},[u]),fe=(0,m.useCallback)(()=>{clearTimeout(j.current),j.current=null,E(!0)},[]);return(0,Iu.A)(()=>{clearTimeout(j.current)}),(0,m.useEffect)(()=>{N(r+1===L)},[r,L]),(0,m.useLayoutEffect)(()=>{b!==I&&(b?R.current?.focus?.():E(!1))},[b,I]),(0,n.jsxs)("div",{className:VF({isAtEnd:b}),children:[(0,n.jsxs)("div",{className:"quiz-results__header",children:[(0,n.jsx)("h1",{className:"quiz-results__label noOutline brand--ui",ref:R,tabIndex:-1,children:J}),(0,n.jsxs)("div",{className:"quiz-results__passing",children:[(0,n.jsx)("div",{className:"odometer__passlabel brand--ui",children:k}),(0,n.jsx)("div",{className:"odometer__passpercent brand--ui",children:`${h}%`})]})]}),(0,n.jsxs)("div",{className:"visually-hidden",children:[(0,n.jsx)("div",{children:Y}),(0,n.jsx)("div",{children:`${G?_:B}`}),(0,n.jsx)("div",{children:`${k} ${h}%`})]}),(0,n.jsx)("div",{"aria-hidden":"true",className:"quiz-results__results",children:(0,n.jsx)(FF,{atEnd:b,color:t,complete:x,isPass:G,onAnimationDone:Ee,quizScore:Z,quizPassing:k,score:S,scoreLabel:Y,passingScore:h})}),(0,n.jsx)(GF,{allowTabNavigation:b,continueType:e,currentPassingScore:s,id:o,isAtEnd:b,labels:P,mode:a,nextLesson:c,nextLessonRestrictions:d,onNextClick:l,onTryAgainFocus:fe,retryAttempts:p,retryCount:f,showFooter:C,showNavigationButtons:g,sidebarEnabled:v})]})}const VF=({isAtEnd:t})=>M()("quiz-results",{"quiz-results--active":t}),WF=({isAtEnd:t,showFooter:e})=>M()("quiz-results__footer",{"quiz-results__footer--active":t,"quiz-results__footer--hidden":!e}),GF=({allowTabNavigation:t,continueType:e,id:s,isAtEnd:o,labels:r,mode:a,nextLesson:c,nextLessonRestrictions:d,onNextClick:l,onTryAgainFocus:u,retryAttempts:h,retryCount:p,showFooter:f,showNavigationButtons:g,sidebarEnabled:v})=>{const{isRestricted:C}=d,{courseFinish:E="Finish",quizContinue:L,quizTakeAgain:x}=r,{resetQuizTimer:S}=tg(),b=(0,m.useCallback)(j=>()=>{S(),(0,X.JD)((0,Qs.FU)(j))},[S]),N=e==="continue"&&a!=="preview-lesson"&&!(v&&!g),I=N&&ye.BI&&!c&&g&&!(0,de.Hm)();return(0,n.jsxs)("div",{className:WF({isAtEnd:o,showFooter:f}),children:[(p===-1||h<p)&&(0,n.jsx)(zh,{allowTabNavigation:t,onClick:b(s),onFocus:u,text:x}),N&&C&&c&&(0,n.jsx)(yf,{bgType:"transparent",text:go({labels:r,restrictions:d})}),N&&!C&&c&&(0,n.jsx)(oh,{href:`/lessons/${encodeURIComponent(c)}`,onClick:l,text:L}),I&&(0,n.jsx)(oh,{href:"/lessons/progress-summary",onClick:l,text:E})]})};var KF=i(59288);const $F=t=>{const e=KF.useCallback(()=>{window.dispatchEvent(new CustomEvent(xd))},[]);return(0,n.jsx)("div",{"aria-hidden":!t.allowTabNavigation,className:"quiz-end",children:(0,n.jsx)("div",{className:"quiz-end__container",children:(0,n.jsx)(zF,{...t,onResultsDisplayed:e})})})},og=Se()(il()(ir(),0),tt()(0,"retryAttempts")),QF=({authorName:t,avatar:e,course:s,description:o,id:r,isAtStart:a,isLesson:c,labels:{a11yAuthorPrefix:d,lessonName:l,lessonPreposition:u,quizStart:h,quizTakeAgain:p,quizTimerElapsed:f,quizTimerExpired:g,quizTimerExpiredAction:v,quizTimerExpiredMessage:C,quizTimerHide:E,quizTimerLimit:L,quizTimerMinute:x,quizTimerMinutePlural:S,quizTimerRemaining:b,quizTimerShow:N},lessonNumber:I,lessonProgress:j,showAuthor:R,showLessonCount:P,title:B,totalLessons:_})=>{const k=(0,m.useRef)(),J=Us(B),Z=a&&og(j),Y=s?.lessons?.find(fe=>fe.id===r)?.settings?.timer;(0,m.useEffect)(()=>{Z&&k&&k.current&&zc()(k.current.focus)&&k.current.focus()},[Z,k]);const Ee=fe=>()=>{(0,X.JD)((0,Qs.QI)(fe))};return(0,n.jsx)("div",{"aria-hidden":!a,className:"quiz-header",children:(0,n.jsx)("div",{className:"quiz-header__container",children:(0,n.jsx)("div",{className:"quiz-header__limit",children:(0,n.jsx)("div",{className:"quiz-header__row",children:(0,n.jsxs)("div",{className:"quiz-header__main",children:[(0,n.jsxs)("div",{className:"quiz-header__top-wrap brand--afterBackground",children:[(0,n.jsx)("div",{className:"quiz-header__counter",children:c&&P&&YF({lessonName:l,lessonNumber:I,lessonPreposition:u,totalLessons:_})}),(0,n.jsx)("h1",{ref:k,tabIndex:-1,children:(0,n.jsx)(Nt,{className:"quiz-header__title",value:(0,xo.aj)(J)})}),R&&e&&t?(0,n.jsxs)("div",{className:"quiz-header__author brand--ui",children:[(0,n.jsx)("img",{src:(0,de.o1)(`${e}`),alt:""}),(0,n.jsxs)("span",{className:"visually-hidden",children:[d," ",t]}),(0,n.jsx)("span",{"aria-hidden":"true",children:t})]}):null]}),Y&&(0,n.jsx)(ng,{area:"cover",exitCourseEnabled:s?.lmsOptions?.enableExitCourse,isStartScreenActive:a,labelQuizTimerElapsed:f,labelQuizTimerExpired:g,labelQuizTimerExpiredAction:v,labelQuizTimerExpiredMessage:C,labelQuizTimerHide:E,labelQuizTimerLimit:L,labelQuizTimerMinute:x,labelQuizTimerMinutePlural:S,labelQuizTimerRemaining:b,labelQuizTimerShow:N,timerEnabled:Y}),(0,n.jsx)(Nt,{className:"quiz-header__description",value:o,allowTabNavigation:a}),(0,n.jsxs)("button",{className:"quiz-header__start-quiz brand--color",onClick:a?Ee(r):Ft.lQ,tabIndex:Fr(a),type:"button",children:[(0,n.jsx)("span",{className:"brand--ui",children:ZF({lessonProgress:j,quizStart:h,quizTakeAgain:p})}),(0,n.jsx)("i",{className:"icon icon-chevron-right"})]})]})})})})})},ZF=({lessonProgress:t,quizStart:e,quizTakeAgain:s})=>og(t)?s:e,YF=({lessonName:t,lessonNumber:e,lessonPreposition:s,totalLessons:o})=>(0,n.jsx)("div",{className:"quiz-header__count",children:`${t} ${e} ${s} ${o}`}),XF=QF,JF=t=>{const e=t.findIndex(s=>s==="answers");return e===-1?null:t[e+1]?.id},qF=t=>{const e=t.findIndex(s=>s==="questions");return e===-1?null:t[e+1]?.id},ez=t=>{const e=t.at(-1);return typeof e=="string"&&e.startsWith?.("feedback")},tz=({itemId:t,questionBankId:e},s)=>{const o=s.find(({id:a})=>a===t);if(!o)return null;const r={progressId:o.id,item:o,question:null};return e?(r.question=o.questions.find(({id:a})=>a===e),r.progressId=r.item.id+"-"+e):r.question=o,r},sz=(t,e,s)=>{const o=s==="feedbackCorrect";return t?[t]:s==="feedback"?e.answers.slice(0,1):s==="feedbackIncorrect"&&e.type==="FILL_IN_THE_BLANK"?[{title:""}]:e.answers.filter(r=>"correct"in r?r.correct===o:"corrects"in e?e.corrects.includes(r.id)===o:e.answers)},nz=({lessonId:t,items:e})=>{const s=(0,X.wA)(),o=({lessonId:a,progressId:c,question:d,answer:l},u=!0)=>{switch(d.type){case"MULTIPLE_CHOICE":s((0,Qs.Yu)({lessonId:a,itemId:c,selectedIndex:d.answers.indexOf(l)}));break;case"MULTIPLE_RESPONSE":s((0,Qs.mg)({lessonId:a,itemId:c,selectedIndex:d.answers.indexOf(l)}));break;case"FILL_IN_THE_BLANK":s((0,Qs.Nj)({lessonId:a,itemId:c,text:l.title}));break;case"MATCHING":s((0,Qs.NC)({lessonId:a,itemId:c,matches:u?d.answers.reduce((h,p)=>(h[p.id]=p.id,h),{}):{}}));break}},r=({detail:a})=>{const{lessonId:c,itemId:d,path:l}=a;if(c!==t)return;const u=qF(l),{item:h,question:p,progressId:f}=tz({itemId:d,questionBankId:u},e);if(h&&(s((0,Qs.QI)(t)),ez(l))){const g=JF(l),v=g?p.answers.find(({id:x})=>x===g)??null:null,C=l.at(-1),E=C==="feedbackCorrect",L=sz(v,p,C);p.type==="MULTIPLE_RESPONSE"&&s((0,Qs.RW)({lessonId:t,itemId:f})),L.forEach(x=>{o({lessonId:t,question:p,progressId:f,answer:x},E)}),s((0,Qs.kK)({finalRetryAttempt:!1,lessonId:t,isCorrect:E,itemId:f,passToContinue:!0}))}};(0,m.useEffect)(()=>(window.addEventListener(ms,r),()=>{window.removeEventListener(ms,r)}))},oz=Ye()(0,["lessonProgress","activeIndex"]),rz=Ye()(0,["lessonProgress","retryAttempts"]),az=t=>{const{advanceQuizLessonStep:e,color:s,course:o,id:r,items:a,labels:c,lessonProgress:d,prefersKeyboardNavigation:l,setQuizAnswerText:u,selectQuizAnswer:h,setQuizAnswerMatches:p,settings:f,submitQuizAnswer:g,title:v,toggleQuizAnswerSelection:C,initializeDrawnQuizQuestions:E}=t;return nz({lessonId:r,items:a}),(0,n.jsx)(UF,{color:s,course:o,id:r,items:a,labels:c,onChoiceSelect:h,onFillInChange:u,onMatchSet:p,onResponseToggle:C,onSetIndex:e,onSubmit:g,prefersKeyboardNavigation:l,progress:d,quizEnd:iz(t),quizHeader:cz(t),reportAnswer:de.bb,settings:f,title:v,initializeDrawnQuizQuestions:E})},iz=t=>e=>{const{color:s,currentPassingScore:o,id:r,lessonNumber:a,lessonProgress:c,mode:d,nextLesson:l,nextLessonRestrictions:u,onNextClick:h,settings:{continueType:p,passingScore:f,retryCount:g},showNavigationButtons:v,sidebarEnabled:C}=t;return(0,n.jsx)($F,{color:s,continueType:p,current:a,currentPassingScore:o,id:r,length:e.length,mode:d,nextLesson:l,nextLessonRestrictions:u,onNextClick:h,passingScore:f,retryAttempts:rz({lessonProgress:c}),retryCount:Number(g),showNavigationButtons:v,sidebarEnabled:C})},cz=t=>e=>{const{authorName:s,avatar:o,description:r,id:a,isLesson:c,labels:d,lessonNumber:l,lessonProgress:u,showAuthor:h,showLessonCount:p,title:f,totalLessons:g,settings:v,course:C}=t,L=oz(t)===0;return(0,n.jsx)(XF,{authorName:s,avatar:o,description:r,id:a,isAtStart:L,isLesson:c,items:e,labels:d,lessonNumber:l,lessonProgress:u,showAuthor:h,showLessonCount:p,title:f,totalLessons:g,settings:v,course:C})},lz={advanceQuizLessonStep:Qs.QI,initializeDrawnQuizQuestions:Qs.x6,selectQuizAnswer:Qs.Yu,setQuizAnswerMatches:Qs.NC,setQuizAnswerText:Qs.Nj,submitQuizAnswer:Qs.kK,toggleQuizAnswerSelection:Qs.mg},dz=(0,X.Ng)(null,lz)(az),uz=({id:t,passingScore:e})=>il()(S0(),(0,de.GJ)({id:t,passingScore:e})),hz=({id:t,settings:e,lessonProgress:s={}})=>Zi()(tm()(["passingScore"]),uz({id:t,...s}),e),mz=({authorName:t,avatar:e,color:s,data:{description:o,id:r,items:a,settings:c,title:d,type:l},enableVideoPlaybackSpeed:u,isLesson:h,labels:p,lessonNumber:f,lessonProgress:g,mode:v,nextLesson:C,nextLessonRestrictions:E,onNextClick:L,prefersKeyboardNavigation:x,showAuthor:S,showLessonCount:b,showNavigationButtons:N,sidebarEnabled:I,totalLessons:j,course:R})=>(0,n.jsx)(No,{type:l,children:(0,n.jsx)(no,{type:l,children:(0,n.jsx)(er,{children:(0,n.jsxs)(oo,{type:l,items:a,children:[(0,n.jsx)(qh,{id:r,lessonProgress:g,type:"quiz"}),(0,n.jsx)(dz,{authorName:t,avatar:e,color:s,currentPassingScore:c.passingScore,description:o,enableVideoPlaybackSpeed:u,id:r,isLesson:h,items:a,labels:p,lessonNumber:f,lessonProgress:g,mode:v,nextLesson:C,nextLessonRestrictions:E,onNextClick:L,prefersKeyboardNavigation:x,settings:hz({id:r,lessonProgress:g,settings:c}),showAuthor:S,showLessonCount:b,showNavigationButtons:N,sidebarEnabled:I,title:d,totalLessons:j,course:R})]})})})});var pz=i(27702),fz=i.n(pz);function gz({authors:t,author:e,selectedAuthorId:s}){return fz()(t,{id:s||e})||{}}const vz=t=>(0,n.jsx)("section",{"aria-label":"Sorting Activity Content",className:"sorting-lesson",children:(0,n.jsx)(r5,{...t,onCardDrop:Function.prototype,onReplay:Function.prototype})}),Cz=({data:{id:t,items:e,piles:s,type:o},labels:r,lessonHeader:a,lessonHeaderWrapClasses:c,lessonHeaderWrapStyles:d,lessonProgress:l})=>(0,n.jsx)(No,{type:o,children:(0,n.jsx)(no,{type:o,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:c,style:d,children:a}),(0,n.jsx)(oo,{type:o,children:(0,n.jsx)(vz,{id:t,items:e,labels:r,progress:l,piles:s})})]})})});var xz=i(59288);const Ez=St()(Pe()("linePosition"),parseFloat),Tz=e6()(Ez);class Sz extends xz.Component{render(){const{items:e}=this.props;return(0,n.jsx)("section",{"aria-label":"Timeline Content",className:"timeline-lesson",children:(0,n.jsx)(h5,{...this.props,isLearner:!0,items:Tz(e),progress:Pe()("lessonProgress",this.props),onEnter:Function.prototype,onLeave:Function.prototype})})}}const Lz=({data:{id:t,items:e,type:s},labels:o,lessonHeader:r,lessonHeaderWrapClasses:a,lessonHeaderWrapStyles:c,lessonProgress:d,loadMedia:l})=>(0,n.jsx)(No,{type:s,children:(0,n.jsx)(no,{type:s,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:a,style:c,children:r}),(0,n.jsx)(oo,{type:s,children:(0,n.jsx)(Sz,{id:t,items:e,labels:o,lessonProgress:d,loadMedia:l})})]})})}),rg={addEventListeners(t,e){t.addEventListener("animationend",e,!1)},removeEventListeners(t,e){t.removeEventListener("animationend",e,!1)}};var bz=i(59288);class yz extends bz.Component{static propTypes={id:A().any,labels:Qi,lessonProgress:A().object.isRequired,media:A().object,recordMediaPlayheadPosition:A().func};constructor(e){super(e),this.state={load:!1}}componentDidMount(){setTimeout(()=>{this.setState({load:!0})},800)}static get defaultProps(){return{lessonProgress:{audioVideoPlayhead:0,currentTime:0,percentComplete:0}}}render(){const{enableVideoPlaybackSpeed:e,labels:s,lessonProgress:o}=this.props,{id:r,media:a,settings:c}=this.props.data,d=Ye()(0,["audioVideoPlayhead"],o),l=Pe()("currentTime",o),u=jt()(["video","key"],a),h=jt()(["lessonProgress","percentComplete"],o),p=jt()(["video","poster"],a),f=M()("video-lesson",{"video-lesson--visible":this.state.load});return(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"page__content-container",children:(0,n.jsx)("section",{"aria-label":"Video Content",className:f,children:this.state.load?(0,n.jsx)("div",{className:"video-lesson__item",children:(0,n.jsx)($1,{audioVideoPlayhead:d,canAdjustPlaybackSpeed:e,canRestrictSeek:c.forwardSeekRestricted&&!o?.isComplete,currentTime:l,id:r,labels:s,percentComplete:h,poster:p,progressChanged:Function.prototype,recordMediaPlayheadPosition:Function.prototype,src:u})}):null})})})}}const Iz=({color:t,data:e,labels:s,lessonHeader:o,lessonHeaderWrapClasses:r,lessonProgress:a,prefersKeyboardNavigation:c,enableVideoPlaybackSpeed:d})=>(0,n.jsx)(No,{type:e.type,children:(0,n.jsx)(no,{type:e.type,children:(0,n.jsxs)(er,{children:[(0,n.jsx)("div",{className:r,style:{color:t},children:o}),(0,n.jsx)(oo,{children:(0,n.jsx)(yz,{data:e,labels:s,lessonProgress:a,prefersKeyboardNavigation:c,enableVideoPlaybackSpeed:d})})]})})}),Nz=Dt("LessonHeader"),jz=q("lesson-header"),Az=({authorName:t,avatar:e,children:s,color:o,description:r,labels:{lessonName:a,lessonPreposition:c},lessonHeaderColor:d,lessonHeaderImageColor:l,lessonHeaderSize:u,lessonHeaderStyle:h,partnerContentAuthors:p,totalLessons:f,lessonNumber:g,showAuthor:v,showLessonCount:C,title:E})=>{const L=yr(),x=Go(),S=L===$e.y4,b=h===O.xj.IMAGE,N=jz("top-wrap"),{alpha:I,ariaLabel:j,media:R,role:P}=pa("lessonHeaderImage"),B=R?.image,_=(0,m.useMemo)(()=>{if(B&&b){const k=l===O.df.LIGHT?O.qH:O.KJ;return(0,N1.A)({alpha:I,color:k,url:(0,rs.ME)(B)})}},[B,b,l,I]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(J9,{ariaLabel:b?j:void 0,imgRole:b?P:void 0,sectionStyles:_,topWrapClassName:N,children:(0,n.jsx)(Nz,{authorName:t,avatar:e,color:o,description:r,lessonName:a,lessonNumber:g,lessonHeaderColor:d,lessonHeaderSize:u,lessonHeaderStyle:h,lessonId:x,lessonPreposition:c,partnerContentAuthors:p,showAuthor:v,showLessonCount:C&&!S,title:E,totalLessons:f})}),s]})},ec=q("one-page-authors");function ag({className:t}){const e=(0,Me.vU)(),s=(0,Me._z)(),o=(0,Me.$H)(),r=(0,Me.PH)();if(o?.id==="none")return null;const a=s?.isPartnerContentAuthor&&r!=null,c=ec({}).mix(t);return a?(0,n.jsx)("div",{className:c,children:(0,n.jsx)("ul",{className:ec("list"),role:"list",children:r.map((d,l)=>(0,n.jsxs)("li",{className:ec("item"),role:"listitem",children:[(0,n.jsx)(cm,{avatarUrl:(0,rs.ny)({width:"76",height:"76",imageKey:d?.image})}),(0,n.jsx)(lm,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:d?.name})]},l))})}):(0,n.jsxs)("div",{className:c,children:[(0,n.jsx)(cm,{avatarUrl:(0,ye.o1)(o?.avatar)}),(0,n.jsx)(lm,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:o?.authorName})]})}ag.propTypes={className:A().string};function cm({avatarUrl:t}){return t?(0,n.jsx)("div",{className:ec("avatar"),style:{backgroundImage:`url(${t})`}}):(0,n.jsx)("div",{className:ec("avatar-fallback"),children:(0,n.jsx)(E0,{decorative:!0})})}cm.propTypes={avatarUrl:A().string};function lm({a11yAuthorPrefix:t,name:e}){const s=e||"Unknown User",o=ec("name");return(0,n.jsxs)("div",{className:o.toString(),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:t}),(0,n.jsx)("span",{children:s})]})}lm.propTypes={a11yAuthorPrefix:A().string.isRequired,name:A().string};const ig=Dt("OnePageAuthors",ag),Rz=q("one-page-title"),cg=({className:t,htmlId:e})=>{const s=(0,Me.DX)(),o=(0,It.QQ)(s.title),r=ci("title"),a=(0,_s.uW)(s.title)?{"data-l10n-id":s.title.l10nId}:{"data-change-path":r},c=Rz({}).mix(t);return(0,n.jsx)("h1",{...a,className:c,id:e,tabIndex:-1,children:o})};cg.propTypes={className:A().string,htmlId:A().string.isRequired};const lg=Dt("OnePageTitle",cg),dm=q("one-page-lesson-header-info");function Oz(){const t=(0,Me.DX)(),e=dm({}),{accentContrast:s,coverImageColor:o,coverPageType:r}=t?.theme??{},d=r===O.BL.IMAGE&&o===O.df.LIGHT||s===O.Em.DARK||r===O.BL.WHITE||r===O.BL.ACCENT&&!(0,ct.Wn)(t?.color);return(0,n.jsxs)("div",{className:e,children:[(0,n.jsx)(lg,{className:dm("title").toString(),hasDarkText:d}),(0,n.jsx)(ig,{className:dm("authors").toString(),hasDarkText:d})]})}const Pz=Dt("OnePageCoverInfo",Oz),Mz=Dt("CoverSVG"),um=q("one-page-lesson-header"),Dz=q("page"),kz=um("main").mix("lesson-header__main"),wz=um("container").mix(Dz("header-container")),dg=()=>{const t=Mt(),{alpha:e,media:s}=pa("coverImage"),o=t?.theme?.coverImageColor,r=t?.coverPageType===O.BL.WHITE,a=t?.coverPageType===O.BL.IMAGE,c=t?.coverPageType===O.BL.ACCENT,d=o===O.df.LIGHT,l=um({accent:c,image:a,white:r,"overlay-light":a&&d}),u=a?(0,At.b9)({alpha:e,color:o,media:s}):{};return(0,n.jsxs)("header",{className:l,style:u,children:[(0,n.jsx)("div",{className:wz,children:(0,n.jsx)("div",{className:kz,children:(0,n.jsx)(Pz,{})})}),(0,n.jsx)(Mz,{coverPageType:"LEFT"})]})},hm=(0,m.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});hm.displayName="LessonContentContext";function Bz({children:t}){const[e,s]=(0,m.useState)(()=>[]),o=(0,m.useCallback)(c=>{s(d=>d.concat(c))},[]),r=(0,m.useCallback)(c=>{s(d=>d.filter(l=>l!==c))},[]),a=(0,m.useMemo)(()=>({visibleLessons:e,registerLesson:o,unregisterLesson:r}),[e,o,r]);return(0,n.jsx)(hm.Provider,{value:a,children:t})}function _z(){return(0,m.useContext)(hm)}function Uz(t){function e(s){const o=_z();return(0,n.jsx)(t,{...s,...o})}return e.displayName=`withLessonContentState(${t.displayName||t.name})`,e}var ug=i(59288);const{LARGE:Hz,SMALL:Fz}=O.OX,{ACCENT:zz,BLACK:Vz,COLOR:hg,DARK:Wz,GRAY:Gz,IMAGE:mg,LIGHT:Kz,TINT:$z}=O.xj,Qz=q("lesson-header-wrap");class Zz extends ug.Component{ref=ug.createRef();static propTypes={match:A().object.isRequired,navigateDirection:A().func,partnerContent:A().object,previewType:A().string,sidebarEnabled:A().bool};constructor(e){super(e);const{course:s,isProgressSummary:o,lessonProgress:r,match:{params:a}}=e,c=tt()(null,"index",r),d=o?Su:Ye()({},["lessons",c],s),l={course:s,lesson:d},u=o?null:jr(l);this.state={hasTransitioned:!1,lessonNumber:o?0:Xa(l),mode:a.mode||"",model:d,next:u,nextNumber:Xa({course:s,lesson:u}),scrollPosition:0,totalLessons:Sc(s)}}componentDidMount(){const e=this.props.match.params.id;this.setState({hasTransitioned:!0}),this.props.isProgressSummary||(0,de.no)(e),this.props.isProgressSummary||(0,X.JD)((0,f3.B)(e)),this.props.registerLesson(e)}componentWillUnmount(){const e=this.props.match.params.id;this.props.unregisterLesson(e)}UNSAFE_componentWillReceiveProps(e){if(!this.props.isProgressSummary){const{course:s,lessonProgress:o}=e,r=tt()(null,"index",o),a=Ye()(null,["lessons",r],s),d=jr({course:s,lesson:a});a&&this.setState({model:a,next:d})}}componentDidUpdate(e,s){this.props.didNavigate&&!s.hasTransitioned&&this.state.hasTransitioned&&this.props.onPageReady()}displayFlex(e){e.css({display:"flex"})}componentWillEnter(e){this.transition("enter",e)}componentDidEnter(){this.setState({hasTransitioned:!0})}componentWillExit(e){const s=document.getElementById("page-wrap"),o=s.scrollTop;s.scrollTop=0,this.lastScrollPosition=o,this.transition("leave",e),window.dispatchEvent(new CustomEvent(Op)),this.ref.current.scrollTop=this.lastScrollPosition}transitionComplete(){const e=this.ref.current;if(!e)return!1;const{classList:s}=e;return s&&(s.contains("page-transition-complete")||s.contains("page-transition-back-complete")||s.length===1&&s.contains("page"))}transition(e,s){const{onNavigateTransitionEnd:o,navigateDirection:r}=this.props,a=r(),c=this.ref.current;if(!c){s();return}const d=`page ${a}-${e}`,l=()=>{e==="enter"?c.className=`page ${a}-complete`:c.className="page",rg.removeEventListeners(c,l),window.dispatchEvent(new CustomEvent(Pp)),o(),s()};c.className=d,rg.addEventListeners(c,l)}renderLessonType({type:e,props:s,course:o,model:r}){if(this.props.isProgressSummary)return(0,n.jsx)(W5,{...this.props,...s});switch(e){case"blocks":return(0,n.jsx)(kU,{...s,handleNavigate:this.props.handleNavigate,animateBlockEntrance:o.animateBlockEntrance,isFirstLesson:ra({course:o,lesson:r})});case"map":return(0,n.jsx)(VU,{...s});case"process":return(0,n.jsx)(hH,{...s});case"timeline":return(0,n.jsx)(Lz,{...s});case"quiz":return(0,n.jsx)(mz,{...s,course:o});case"sorting":return(0,n.jsx)(Cz,{...s});case"screencast":case"slidecast":case"video":return(0,n.jsx)(Iz,{...s});case"embed":return(0,n.jsx)(HU,{...s});default:return null}}calculateLessonHeaderContrastColor(){const{course:e}=this.props,{theme:s}=e,o=s?.customColorLessonHeaderContrast,r=s?.lessonHeaderColor,a=(0,ct.xD)(r),c=!(0,ct.Wn)(r),d=o===O.Em.DARK||o===O.Em.AUTO&&a===O.Em.DARK;return!o&&c||d?$e.S6.DARK:$e.S6.LIGHT}render(){const{lessonNumber:e,mode:s,model:o,next:r,scrollPosition:a,totalLessons:c}=this.state,{course:d,courseProgress:l,handleStorylineFullscreen:u,isMobileHeader:h,isProgressSummary:p,labels:f,lessonProgress:g,location:v,match:C,previewType:E,getL10nValue:L,sessionPreferences:{prefersKeyboardNavigation:x},sidebarEnabled:S,themeId:b}=this.props,{author:N,selectedAuthorId:I,type:j}=o,{authors:R,color:P,enableVideoPlaybackSpeed:B,id:_,lessonHeaderImage:k,lessonHeaderSize:J,lessonHeaderStyle:Z,publishedAt:G,showAuthor:Y,showLessonCount:Ee,showNavigationButtons:fe,tenantId:oe,theme:we,type:Ae}=d,{hideLessonHeaders:_e,lessonHeaderColor:Qe,lessonHeaderImageColor:pt,navigationType:ls}=we,nt=Ye()([],["partnerContent","content"],this.props),Ce=!Yt()(nt),Ne=Ce?qe()(Ue()("id",I),nt):{},Ke=Ce?Ye()(void 0,["data","authors"],Ne):void 0,{avatar:He,authorName:dt}=gz({authors:R,author:N,selectedAuthorId:I}),lt=Mn({course:d,courseProgress:l}),Ht=p?{}:aa({course:d,courseProgress:l,lesson:r,restrictingQuiz:lt}),Wt=g3(o),vs=Ae===$e.y4?dg:Az,en=(0,n.jsx)(vs,{authorName:dt,avatar:He,color:P,course:d,description:o.description,labels:f,lessonHeaderColor:Qe,lessonHeaderImage:k,lessonHeaderImageColor:pt,lessonHeaderStyle:Z,lessonHeaderSize:J,lessonNumber:e,partnerContentAuthors:Ke,showAuthor:Y,showLessonCount:Ee,themeId:b,title:o.title,totalLessons:c,children:!p&&(0,n.jsx)(qh,{id:o.id,items:o.items,lessonProgress:g,navigationType:ls,scrollPosition:a,type:o.type})}),Bs=`image-${(pt??O.df.DARK)?.toLowerCase()}`,Sn=Qz({[Bs]:Z===mg,accent:Z===zz,black:Z===Vz,collapsed:_e,custom:Z===hg,dark:Z===Wz,gray:Z===Gz,image:Z===mg,large:J===Hz&&!h,light:Z===Kz,mobile:h,small:J===Fz&&!h,tint:Z===$z}),lo=Z===hg?{"--lesson-header-contrast-color":this.calculateLessonHeaderContrastColor(),"--color-background":Qe}:{},Sr={authorName:dt,avatar:He,color:P,courseId:_,courseTitle:L(d.title),data:o,enableVideoPlaybackSpeed:B,handleStorylineFullscreen:u,hideLessonHeaders:_e,isLesson:(0,At.GG)(o),labels:f,lessonHeader:en,lessonHeaderImage:k,lessonHeaderWrapClasses:Sn,lessonHeaderWrapStyles:lo,lessonHasContinues:Wt,lessonNumber:e,lessonProgress:g,loadMedia:this.props.match.params.id===this.props.visibleLessons[0],location:v,match:C,mode:s,nextLesson:tt()(null,"id",r),nextLessonRestrictions:Ht,partnerContent:nt,publishedAt:G,prefersKeyboardNavigation:x,previewType:E,scrollPosition:a,showAuthor:Y,showLessonCount:Ee,showNavigationButtons:fe,sidebarEnabled:S,tenantId:oe,totalLessons:c};return(0,n.jsx)(Ta,{title:Yc(`${L(o.title)} - ${Sr.courseTitle}`),children:(0,n.jsx)("div",{"data-lesson-id":C.params.id,ref:this.ref,children:this.renderLessonType({type:j,props:Sr,course:d,model:o})})})}}const Yz=Se()(cs,Me.x4,Uz)(Zz),Nu=q("lesson-nav"),Xz=({allowTooltip:t,className:e,courseHomeLabel:s,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:c,previousLessonNumber:d,totalLessons:l},u)=>{const h=c?.id,p=ga(),f=fi(p),v=(0,At.GG)(c)&&h,C=Us(c?.title)||s,E=v?`${d} ${r} ${l} \u2014 ${C}`:C,L=f&&v?`${o} ${d}`:E;return(0,n.jsx)(gi,{allowTooltip:t,className:e,direction:"previous",navLessonId:h,onFocus:a,ref:u,children:f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Nu("link-text"),children:L}),(0,n.jsx)(Tp,{className:Nu("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Tp,{className:Nu("link-icon")}),(0,n.jsx)("span",{className:Nu("link-text"),children:L})]})})},Jz=Dt("LessonNavPrevious",ie().forwardRef(Xz));function qz(){const t=n2(),e=AC();return(s,{lessonId:o,currentLocale:r})=>{const a=Ut(s),c=t(o,s)||{},d=e(o,s),l=(0,ze.selectLabelsMap)(r,s),u=wo(s);return{buttonNavigationStyle:a.buttonNavigationStyle,courseHomeLabel:l.courseHome,lessonNameLabel:l.lessonName,lessonPrepositionLabel:l.lessonPreposition,previousLesson:c,previousLessonNumber:d,totalLessons:u}}}const mm=Se()(xs.wZ,(0,X.Ng)(qz,null,null,{forwardRef:!0}))(Jz);var pm=i(9647),eV=i(74788),tV=i.n(eV);const ju=q("lesson-nav"),sV=({allowTooltip:t,lessonNameLabel:e,lessonPrepositionLabel:s,nextLesson:o,nextLessonNumber:r,onFocus:a,restrictionData:c,restrictionType:d,totalLessons:l},u)=>{const h=o?.id,p=ga(),f=fi(p),v=(0,At.GG)(o)&&h,C=(0,It.QQ)(o?.title)||"",E=v?`${r} ${s} ${l} \u2014 ${C}`:C,L=f&&v?`${e} ${r}`:E;return(0,n.jsx)(gi,{allowTooltip:t,direction:"next",navLessonId:h,onFocus:a,ref:u,restrictionData:c,restrictionType:d,children:f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:ju("link-text"),children:L}),(0,n.jsx)(pd,{className:ju("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(pd,{className:ju("link-icon")}),(0,n.jsx)("span",{className:ju("link-text"),children:L})]})})},pg=Dt("LessonNavNext",(0,m.forwardRef)(sV)),nV=tV()(0,1,.01),oV=t=>{const{dispatch:e}=t,s=(0,m.useRef)(),o=(0,pm.A)(s,{threshold:nV}),r=Go();return(0,m.useLayoutEffect)(()=>{const a=s.current.closest("[data-lesson-id]");a&&r===a.dataset.lessonId&&e((0,Qc.fc)({intersectionRect:o?.intersectionRect}))},[r,e,o]),(0,Iu.A)(()=>e((0,Qc.fc)(null))),(0,n.jsx)(pg,{ref:s,...t})};function fg(){const t=o2(),e=jC(),s=Mr();return(o,{lessonId:r,currentLocale:a})=>{const c=Ut(o),d=t(r,o)||{},l=e(r,o),u=(0,ze.selectLabelsMap)(a,o),h=s(d.id,o),p=wo(o);return{buttonNavigationStyle:c.buttonNavigationStyle,lessonNameLabel:u.lessonName,lessonPrepositionLabel:u.lessonPreposition,nextLesson:d,nextLessonNumber:l,restrictionData:h?.data,restrictionType:h?.type,totalLessons:p}}}const Fue=Se()(xs.wZ,(0,X.Ng)(fg))(oV),gg=Se()(xs.wZ,(0,X.Ng)(fg,null,null,{forwardRef:!0}))(pg),Au=q("lesson-nav"),rV=({allowTooltip:t,courseFinishLabel:e,onFocus:s,restrictionData:o,restrictionType:r},a)=>{const c=ga(),d=fi(c);return(0,n.jsx)(gi,{allowTooltip:t,direction:"next",finish:!0,onFocus:s,ref:a,restrictionData:o,restrictionType:r,children:d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Au("link-text"),children:e}),(0,n.jsx)(pd,{className:Au("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(pd,{className:Au("link-icon")}),(0,n.jsx)("span",{className:Au("link-text"),children:e})]})})},aV=Dt("LessonNavFinish",(0,m.forwardRef)(rV));function iV(t,e){const{currentLocale:s}=e,o=Ut(t),r=(0,ze.selectLabelsMap)(s,t);return{buttonNavigationStyle:o.buttonNavigationStyle,courseFinishLabel:r?.courseFinish||"Finish"}}const fm=Se()(xs.wZ,(0,X.Ng)(iV))(aV),cV={threshold:0},Ru=(t,e)=>{const[s,o]=(0,m.useState)(!1),r=(0,m.useRef)(null);return(0,m.useEffect)(()=>{r.current&&r.current.disconnect(),r.current=new IntersectionObserver(([c])=>{o(c.isIntersecting)},e||cV);const{current:a}=r;return t.current?a.observe(t.current):o(!1),()=>{a.disconnect()}},[t,e]),s},vg=q("navButtonsFull"),lV=()=>{const[t,e]=(0,m.useState)(!1);return(0,bs.A)(Op,()=>e(!0)),(0,bs.A)(Pp,()=>e(!1)),t},dV=({isVisible:t})=>{(0,Iu.A)(()=>window.dispatchEvent(new CustomEvent(e1))),(0,m.useEffect)(()=>{const e=t?Mp:e1;window.dispatchEvent(new CustomEvent(e))},[t])},uV=({isVisible:t})=>{(0,Iu.A)(()=>window.dispatchEvent(new CustomEvent(t1))),(0,m.useEffect)(()=>{const e=t?Dp:t1;window.dispatchEvent(new CustomEvent(e))},[t])},hV=({children:t,hideNavToHome:e,navNextEnabled:s,navFinishEnabled:o})=>{const r=(0,m.useRef)(null),a=(0,m.useRef)(null),c=(0,m.createRef)(null),d=(0,m.useRef)(),l=Go(),u=Ru(a),h=Ru(c),p=lV(),f=(0,m.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),g=(0,m.useCallback)(()=>{const C=r.current?.scrollHeight;r.current?.scrollTo({top:C,behavior:"smooth"})},[]);(0,bs.A)(Cd,f),(0,bs.A)(xd,g),dV({isVisible:u}),uV({isVisible:h}),(0,m.useEffect)(()=>{if(!p&&a.current){const E=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:E})}},[p,a]);const v=vg("navPrev",{visible:u,hide:p});return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,n.jsxs)("div",{className:vg(),children:[!e&&(0,n.jsx)("div",{className:v,children:(0,n.jsx)(mm,{lessonId:l,ref:a})}),t,s&&(0,n.jsx)(gg,{lessonId:l,ref:c}),o&&(0,n.jsx)(fm,{lessonId:l,ref:d})]})})},yl=q("navButtonsFloating"),Cg=({transitionIn:t,buttonType:e,children:s})=>{const o=(0,m.useRef)(),r={entered:yl(e,{entered:!0}),exiting:yl(e,{exiting:!0}),exited:yl(e,{exited:!0})};return(0,n.jsx)(ys.eB,{in:t,nodeRef:o,timeout:250,children:a=>(0,n.jsx)("div",{className:r[a],ref:o,children:s})})},mV=250,xg={threshold:.2},pV=({topRef:t,bottomRef:e,pageWrapRef:s,currentLessonId:o})=>{const r=Ru(t,xg),a=Ru(e,xg),[c,d]=(0,m.useState)(!1),[l,u]=(0,m.useState)(!1),[h,p]=(0,m.useState)(!1),f=(0,m.useCallback)(()=>{s.current?.scrollTo({top:2,behavior:"smooth"})},[s]);return(0,R1.A)(f),(0,m.useEffect)(()=>{d(!0);const g=setTimeout(()=>{f(),d(!1)},mV);return()=>{clearTimeout(g)}},[o,f]),(0,m.useEffect)(()=>{u(a&&!c),p(r&&!c)},[a,r,c]),{showPrev:h,showNext:l}},fV=({children:t,isCurrentLessonQuiz:e,navNextEnabled:s,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,m.useRef)(),c=(0,m.useRef)(),d=(0,m.useRef)(),l=(0,m.useRef)(),u=(0,m.useRef)(),h=(0,m.useRef)(),p=Go(),{showNext:f,showPrev:g}=pV({topRef:u,bottomRef:h,pageWrapRef:a,currentLessonId:p}),v=(0,m.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),C=(0,m.useCallback)(()=>{const E=a.current?.scrollHeight;a.current?.scrollTo({top:E,behavior:"smooth"})},[]);return(0,bs.A)(Cd,v),(0,bs.A)(xd,C),(0,m.useEffect)(()=>{e&&(s||r)&&C()},[e,s,r,C]),(0,n.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,n.jsx)("div",{ref:u,className:yl("top")}),!o&&(0,n.jsx)(Cg,{transitionIn:g,buttonType:"prev",children:(0,n.jsx)(mm,{lessonId:p,onFocus:v,ref:c})}),t,(0,n.jsx)(Cg,{transitionIn:f&&(s||r),buttonType:"next",children:s?(0,n.jsx)(gg,{lessonId:p,onFocus:C,ref:d}):r?(0,n.jsx)(fm,{lessonId:p,onFocus:C,ref:l}):null}),(0,n.jsx)("div",{ref:h,className:yl("bottom")})]})},{FULL:gV,FLOATING:Eg}=O.AY,vV=q("lessonNavigation"),CV=({children:t})=>{const e=(0,m.createRef)();return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:e,children:t})},xV=(t,e)=>t+(e?.drawCount??1),EV=(t=[])=>t.reduce(xV,0),TV=({children:t,isPreviewLesson:e})=>{const{buttonNavigationStyle:s}=(0,Me.DX)(),{pathname:o}=(0,ke.zy)(),r=(0,Me.DX)(),{showNavigationButtons:a,lessonsOnly:c,lmsOptions:d={}}=r,l=(0,m.useRef)(),u=Xs(480),h=Go(),p=Co(h)||{},f=De(h)||{},[g,v]=(0,m.useState)(s),C=c[0].id,E=d?.disableCoverPage&&C===h,L=d?.disableCoverPage,x=d?.disableCoverPage?E:L;(0,m.useEffect)(()=>{s!==g&&(v(s),window.dispatchEvent(new CustomEvent(Cd)))},[s,g]);const S=g3(p)?f.isComplete:!0,b=f.activeIndex===EV(p.items)+1,N=p.type==="quiz"&&!b||p.settings?.continueType==="continue",I=p&&jr({course:r,lesson:p}),j=h==="progress-summary",R=window.isPublicShare,P=I&&!e&&S&&!N&&!j,B=!I&&S&&ye.BI&&!R&&!j&&!e&&!(0,de.Hm)()&&!N,_=vV("wrapper",{full:s===gV||u,floating:s===Eg&&!u}),J=!a||e?CV:s===Eg&&!u?fV:hV;return(0,m.useEffect)(()=>{const Z=document.querySelector(".page__content");Z&&Z.classList.add("page__content--preview-nav")},[J]),(0,n.jsx)("div",{className:_,ref:l,children:(0,n.jsx)(J,{hideNavToHome:x,navNextEnabled:P,navFinishEnabled:B,children:(0,n.jsx)(Bz,{children:(0,n.jsx)(ys.F,{component:"div",children:(0,n.jsx)(T1,{children:t},o)})})})})},Tg=q("courseExit");function gm(t){const e=(0,ze.useLabelsMap)(),{className:s,lmsOptions:o,style:r}=t;return o?.enableExitCourse?(0,n.jsx)("div",{className:Tg("wrapper"),children:(0,n.jsx)("button",{className:Tg("button").mix(s),onClick:ye.NS,style:r,type:"button",children:e?.courseExit})}):null}gm.propTypes={className:A().string};const vm=q("nav-control"),SV=()=>{const[t,e]=(0,m.useState)(!1);return(0,bs.A)(Mp,()=>e(!0)),(0,bs.A)(e1,()=>e(!1)),t},LV=({"aria-controls":t,isNavOpen:e,toggleNav:s,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:c,...d}=(0,Me.DX)(),l=(0,m.useRef)(null),[u,h]=(0,m.useState)(0),p=(0,ze.useLabelsMap)(),f=Uc(),g=Wl(),v=SV(),E=!!(0,m.useMemo)(()=>d.lessons?.find(I=>I.id===g),[d.lessons,g])?.settings?.timer,L=a?.enableExitCourse,x=E||L,S=d.navigationType===O.br.COMPACT,b=S?"fixed-course-exit":void 0;(0,m.useEffect)(()=>{l.current=document.querySelector(".page-wrap");const j=document.querySelector(".lesson-nav--previous")?.clientHeight??60,R=!c||r===O.AY.FLOATING&&!f;function P({target:B}){const _=B?.scrollTop??0,k=j-_;h(k)}return v&&!R?l.current.scrollTop===0?h(j):l.current.addEventListener("scroll",P):h(0),()=>l.current.removeEventListener("scroll",P)},[r,f,v,c]);const N=(0,m.useCallback)(()=>{const I=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(l.current&&I){const j=l.current.offsetWidth-l.current.clientWidth||0;I.style.maxWidth=`calc(100% - ${j}px)`}},[]);return(0,m.useLayoutEffect)(()=>{x&&N()},[x,N]),(0,n.jsx)("div",{className:vm("wrapper"),children:(0,n.jsxs)("div",{className:vm("menu",{"is-timed-quiz":E,"nav-off":o,"top-nav-bar":x}),style:{marginTop:u},children:[!o&&(!S||f)&&(0,n.jsx)("button",{className:vm("button"),"aria-controls":t,"aria-expanded":e,"aria-label":e?p?.a11yNavigationMenuClose:p?.a11yNavigationMenuOpen,onClick:s,type:"button",children:(0,n.jsx)(s4,{className:"page-menu-toggle__icon"})}),(0,n.jsx)(gm,{lmsOptions:a,className:b})]})})};var Ws=i(2316);function Cm(t){return t?.search}function Il(){return(0,X.d4)(t=>Cm(t))}function bV(t){return Cm(t)?.activeLessons}const yV=(0,Ot.Mz)(bV,t=>t.reduce((e,s)=>(s?.id&&(e[s.id]=s),e),{}));function IV(){return(0,Ot.Mz)(t=>t,(t,e)=>yV(e),(t,e)=>e?.[t])}function NV(t){const e=(0,m.useMemo)(()=>IV(),[]);return(0,X.d4)(s=>e(t,s))}const Sg=q("nav-compact"),jV=Dt("NavCompactHeaderCounter",t=>{const{lessonPosition:e,labelLessonName:s,labelLessonPreposition:o,totalLessons:r}=t;return e<=0?null:(0,n.jsx)("div",{className:Sg("header-counter"),children:`${s} ${e} ${o} ${r}`})}),AV=Dt("NavCompactHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:s,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:c}=t;return(0,n.jsxs)("div",{className:Sg("header-progress"),children:[(0,n.jsx)("div",{className:s,children:a}),(0,n.jsx)(vd,{"aria-hidden":c,"aria-label":a,progress:r,runnerClass:e,trackClass:o})]})}),RV=({a11yNavigationMenuClose:t,a11yNavigationMenuOpen:e,a11ySearchOpen:s,allowSearch:o,lmsOptions:r={},closeNav:a,coverImageColor:c,dispatch:d,isExpanded:l,labelLessonComplete:u,labelLessonName:h,labelLessonPreposition:p,lessonPosition:f,lessonsOnlyIds:g,navigationMode:v,navigationStyle:C,openNav:E,percentComplete:L,searchActive:x,title:S})=>{const b=(0,m.useMemo)(()=>(0,At.FH)(C),[C]),N=(0,m.useCallback)(()=>{l?a():E()},[l,E,a]),I=r?.disableCoverPage,P=`${(0,Me.Wz)()?`%${L}`:`${L}%`} ${u}`,{alpha:B,ariaLabel:_,media:k,role:J}=pa("coverImage"),Z=(0,At.b9)({alpha:B,color:c,media:k}),G=M()("nav-compact__header",{"nav-compact__header--collapsed":!l}),Y=M()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!l}),Ee="nav-compact__header-inner",fe="nav-compact__header-control",oe=M()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!l}),we=M()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!l}),Ae=M()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!l}),_e=M()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!l}),Qe="nav-compact__header-strip",pt=(0,m.useCallback)(()=>{d((0,Ws.ts)(!x))},[d,x]);return(0,n.jsxs)("section",{"aria-label":"Course Information",className:G,children:[b&&Z&&(0,n.jsx)("div",{className:Y,style:Z,"aria-label":_,role:J}),(0,n.jsxs)("div",{className:Ee,children:[(0,n.jsxs)("div",{className:Qe,children:[(0,n.jsxs)("div",{className:"nav-compact__header-controls",children:[o&&v!=="restricted"&&l&&(0,n.jsx)("button",{"aria-label":s,className:`${fe} nav-compact__header-search`,onClick:pt,type:"button",children:(0,n.jsx)(Kc,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,n.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-label":l?t:e,"aria-expanded":l,className:`${fe} nav-compact__header-toggle`,onClick:N,type:"button",children:[l&&(0,n.jsx)(uE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!l&&(0,n.jsx)(hE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,n.jsx)(jV,{lessonPosition:f,labelLessonName:h,labelLessonPreposition:p,totalLessons:g.length})]}),(0,n.jsx)("div",{className:"nav-compact__header-title",children:I?(0,n.jsx)("span",{className:oe,children:S}):(0,n.jsx)(Qn,{className:oe,to:"/",children:S})}),(0,n.jsx)(AV,{classProgressRunner:_e,classProgressText:we,classProgressTrack:Ae,percentComplete:L,percentCompleteText:P,navExpanded:l})]})]})};function OV(){const t=Ic();return(e,s)=>{const{currentLocale:o}=s,r=Ut(e),a=br(o,e),c=ca(e),d=(0,ze.selectLabelsMap)(o,e),l=Ct(e),u=t(e),h=Cm(e);return{a11yNavigationMenuClose:d.a11yNavigationMenuClose,a11yNavigationMenuOpen:d.a11yNavigationMenuOpen,a11ySearchOpen:d.a11ySearchOpen,allowSearch:r.allowSearch,lmsOptions:r.lmsOptions,coverImageColor:r.theme?.coverImageColor,labelLessonComplete:d.lessonComplete,labelLessonName:d.lessonName,labelLessonPreposition:d.lessonPreposition,lessonPosition:u,lessonsOnlyIds:l,navigationMode:r.navigationMode,navigationStyle:r.navigationStyle,percentComplete:c,searchActive:h.active,themeId:r.themeId,title:a}}}const PV=Se()(xs.wZ,(0,X.Ng)(OV))(RV);function Lg({id:t,isEnabled:e,isSectionLesson:s,last:o}){const{navigationStyle:r}=Mt(),a=ko(t),c=Go(),d=Rc(t),l=(0,m.useMemo)(()=>(0,At.I8)(r),[r]),u=t===c,h=su(a||"",45),[p,f]=(0,m.useState)(!1),g=(0,m.useCallback)(()=>f(!0),[]),v=(0,m.useCallback)(()=>f(!1),[]),C=s?"nav-compact__outline-section-item":"nav-compact__outline-item",E=(0,n.jsx)(Dd,{canComplete:d,isDark:l,id:t,isEnabled:e,isTooltipVisible:p,onShowTooltip:g,onHideTooltip:v,scope:$e.by.COMPACT});return(0,n.jsxs)("li",{className:"nav-compact__outline-list-item",role:"listitem",children:[(0,n.jsxs)(Zc,{className:C,dark:l,isCurrentLesson:u,isTooltipEnabled:!d,last:o,lessonId:t,onHideProgressTooltip:v,onShowProgressTooltip:g,showProgressDelay:0,tooltipClassName:`${C}-tooltip`,children:[h,!d&&E]}),d&&E]})}const MV=q("nav-compact"),DV=({id:t})=>{const e=Co(t),s=Us(e?.title),o=MV("outline-section-empty");return(0,n.jsx)("div",{className:o,children:(0,n.jsx)("span",{children:s})})},kV=({index:t,isEnabled:e,lessonIds:s,themeId:o,title:r})=>{const[a,c]=(0,m.useState)(!0),[d,l]=(0,m.useState)(),u=(0,m.useRef)(),h=`sublistCompact-${t}`,p=M()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!a}),f=M()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!a}),g=M()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!a}),v=(0,m.useCallback)(()=>{c(C=>!C)},[]);return(0,m.useLayoutEffect)(()=>{const C=setTimeout(()=>{u.current&&l(u.current.scrollHeight)},0);return()=>{clearTimeout(C)}},[s.length,o]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":h,"aria-expanded":a,className:g,onClick:v,tabIndex:e?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:r}),(0,n.jsx)(Sp,{className:p})]}),(0,n.jsx)(Td,{inert:!a,children:(0,n.jsx)("ol",{"aria-hidden":a?void 0:!0,className:f,id:h,ref:u,role:"list",style:{maxHeight:d},children:s.map((C,E)=>(0,n.jsx)(Lg,{id:C,isEnabled:e&&a,isSectionLesson:!0,last:E===s.length-1},C))})})]})};function wV(){const t=vo(),e=ho();return(s,o)=>{const{currentLocale:r}=o,a=Ut(s),c=t(o.id,s),d=e(c.title,r,s);return{navigationStyle:a.navigationStyle,themeId:a.themeId,title:d}}}const BV=Se()(xs.wZ,(0,X.Ng)(wV))(kV),_V=({index:t,isEnabled:e,lessonIds:s})=>{const[o,...r]=s,a="nav-compact__outline-item nav-compact__outline-section";return Yt()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(DV,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(BV,{id:o,index:t,isEnabled:e,lessonIds:r})})},UV=({index:t,isEnabled:e,lessonIds:s})=>oi(s)?(0,n.jsx)(_V,{index:t,isEnabled:e,lessonIds:s}):s.map((r,a)=>(0,n.jsx)(Lg,{id:r,isEnabled:e,isSectionLesson:!1,last:a===s.length-1},r)),HV=Dt("NavCompactOutline",({className:t="",isEnabled:e,lessonIdGroups:s})=>{const o=(0,ze.useLabelsMap)(),r=M()(t,"nav-compact__outline",{"nav-compact__outline--collapsed":!e});return(0,n.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,id:"nav-compact-outline",children:Ma(s)&&(0,n.jsx)("ol",{className:"nav-compact__outline-list",role:"list",children:s.map((a,c)=>Yt()(a)?null:(0,n.jsx)(UV,{index:c,isEnabled:e,lessonIds:a},c))})})});function FV(t){const e=Ut(t);return{lessonIdGroups:Ac(t),navigationStyle:e.navigationStyle}}const zV=(0,X.Ng)(FV)(HV),s0e=()=>{const[t,e]=useState(!1);return useEvent(EVENT_LESSON_NAV_PREV_VISIBLE,()=>e(!0)),useEvent(EVENT_LESSON_NAV_PREV_HIDDEN,()=>e(!1)),t},VV=()=>{const[t,e]=(0,m.useState)(!1);return(0,bs.A)(Dp,()=>e(!0)),(0,bs.A)(t1,()=>e(!1)),t},bg=q("nav-compact"),yg="nav-content-compact",WV=({closeNav:t,coverImageColor:e,isExpanded:s,navigationStyle:o,openNav:r,progressIndicatorStyle:a,translateY:c},d)=>{const l=(0,m.useMemo)(()=>(0,At.I8)(o),[o]),u=(0,m.useMemo)(()=>o===O.Py.LIGHT_ACCENT||o===O.Py.DARK_ACCENT,[o]),h=VV(),p=(0,m.useMemo)(()=>(0,At.FH)(o),[o]),f=a===O.Y2.CIRCULAR_FILL,g=a===O.Y2.INCOMPLETE_COMPLETE,v=(0,m.useMemo)(()=>p&&e===O.df.LIGHT,[p,e]),C=bg({accent:u,dark:l,light:!l,"image-dark-overlay":p&&!v,"image-light-overlay":p&&v,"progress-circular-fill":f,"progress-incomplete-complete":g,collapsed:!s,navNextIsVisible:h}),E=bg("wrap",{collapsed:!s}),L={transform:`translateY(${c}px)`};return(0,n.jsx)("div",{className:C,id:yg,ref:d,style:L,children:(0,n.jsxs)("div",{className:E,children:[(0,n.jsx)(PV,{isExpanded:s,openNav:r,closeNav:t}),(0,n.jsx)(Td,{inert:!s,children:(0,n.jsx)(zV,{isEnabled:s})})]})})};function GV(t){return Ut(t).buttonNavigationStyle==="FULL"?Math.round(-(t.ui.lessonNavNextButton?.intersectionRect?.height??0)):0}function KV(t){const{color:e,navigationStyle:s,theme:o}=Ut(t),r=o?.coverImageColor,a=o?.progressIndicatorStyle,c=GV(t);return{color:e,coverImageColor:r,navigationStyle:s,progressIndicatorStyle:a,translateY:c}}const $V=Se()((0,X.Ng)(KV,null,null,{forwardRef:!0}),m.forwardRef)(WV),xm=Object.assign((0,m.createContext)(null),{displayName:"OverlayNavControlContext"});function QV(t){const{children:e,closeNav:s,openNav:o}=t,[r,a]=(0,m.useState)(!1),c=(0,m.useCallback)(()=>{a(!0)},[]),d=(0,m.useCallback)(()=>{a(!1)},[]);return(0,n.jsx)(xm.Provider,{value:{closeNav:s,openNav:o,openSearch:c,closeSearch:d,searchActive:r},children:e})}const o0e=xm.Consumer,Ou=m.useContext.bind(null,xm),Pu=q("nav-overlay"),ZV=({className:t})=>{const{navigationStyle:e}=Mt(),{lessonComplete:s}=(0,ze.useLabelsMap)(),o=(0,Me.Wz)(),r=si(),c=`${o?`%${r}`:`${r}%`} ${s}`,d=e!==O.qB.ACCENT,l=Pu("header-progress-runner"),u=Pu("header-progress-text"),h=Pu("header-progress-track");return(0,n.jsxs)("div",{className:Pu("header-progress").mix(t),children:[(0,n.jsx)(vd,{"aria-hidden":!0,background:!0,disabled:d,progress:r,runnerClass:l,trackClass:h}),(0,n.jsx)("div",{className:u,children:c})]})},Cr=q("nav-overlay"),YV=()=>{const t=Mt(),e=Mo(),{allowSearch:s,navigationMode:o,lmsOptions:r={}}=t,a=(0,ze.useLabelsMap)(),c=Ou(),d=(0,m.useRef)(),l=Cr("header-control-btn"),u=r?.disableCoverPage;return(0,n.jsx)("section",{"aria-label":"Course Information",children:(0,n.jsxs)("div",{className:Cr("header-container"),children:[(0,n.jsxs)("div",{className:Cr("header-controls"),children:[(0,n.jsx)("button",{"aria-label":a?.a11yNavigationMenuClose,className:l,onClick:c.closeNav,ref:d,type:"button",children:(0,n.jsx)(fd,{className:Cr("header-close-icon")})}),s&&o!=="restricted"&&(0,n.jsx)("button",{"aria-label":a?.a11ySearchOpen,className:l,onClick:c.openSearch,type:"button",children:(0,n.jsx)(Kc,{className:Cr("header-search-icon")})})]}),(0,n.jsxs)("div",{className:Cr("header-title-progress-container"),children:[(0,n.jsx)("h1",{className:Cr("header-title"),id:"nav-overlay-title",children:u?(0,n.jsx)("span",{className:Cr("header-title"),children:e}):(0,n.jsx)(Qn,{className:Cr("header-title-link"),to:"/",children:e})}),(0,n.jsx)(ZV,{})]})]})})},Em=({icon:t,...e})=>{switch(t){case $e.xA.INTERACTION:return(0,n.jsx)(xE,{...e});case $e.xA.QUIZ:return(0,n.jsx)(fE,{...e});case $e.xA.VIDEO:return(0,n.jsx)(EE,{...e});default:return(0,n.jsx)(lE,{...e})}},tc=q("nav-overlay"),Ig=Dt("NavOverlayOutlineLesson",({first:t,id:e,isEnabled:s,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=Mt(),{icon:c}=Co(e),d=ko(e),l=Ou(),u=Rc(e),h=(0,At.I8)(a),p=tc("outline-item",{section:o}),f=tc("outline-item-link-icon",{quiz:c==="Quiz"}),g=(0,m.useCallback)(()=>{l.closeNav()},[l]),[v,C]=(0,m.useState)(!1),E=(0,m.useCallback)(()=>C(!0),[]),L=(0,m.useCallback)(()=>C(!1),[]),x=(0,n.jsx)(Dd,{canComplete:u,id:e,isDark:h,isEnabled:s,isTooltipVisible:v,onHideTooltip:L,onShowTooltip:E,scope:$e.by.OVERLAY});return(0,n.jsxs)("li",{className:tc("outline-list-item",{first:t,last:r}),role:"listitem",children:[(0,n.jsxs)(Zc,{className:p.toString(),dark:h,isTooltipEnabled:!u,lessonId:e,onHideProgressTooltip:L,onNavigate:g,onShowProgressTooltip:E,showProgressDelay:null,tooltipClassName:tc("outline-item-tooltip").toString(),children:[(0,n.jsx)("span",{className:tc("outline-icon-wrap"),children:(0,n.jsx)(Em,{className:f,icon:c})}),(0,n.jsx)("span",{className:tc("outline-lesson-title"),children:d}),!u&&x]}),u&&x]})}),XV=q("nav-overlay"),JV=({id:t})=>{const e=Co(t),s=Us(e.title);return(0,n.jsx)("span",{className:XV("outline-section-text"),children:s})},Ng=q("nav-overlay"),qV=({isEnabled:t,lessonIds:e})=>{const s=(0,m.useRef)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Ng("outline-section-divider")}),(0,n.jsx)("ol",{className:Ng("outline-section-list"),ref:s,role:"list",children:e.map((o,r)=>(0,n.jsx)(Ig,{id:o,isEnabled:t,isSectionLesson:!0,last:r===e.length-1},o))})]})},eW=q("nav-overlay"),tW=({index:t,isEnabled:e,lessonIds:s})=>{const[o,...r]=s,a=eW("outline-item").mix("nav-overlay__outline-section");return Yt()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(JV,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(qV,{isEnabled:e,index:t,lessonIds:r})})},sW=({index:t,isEnabled:e,lessonIds:s})=>{const o=oi(s),r=ko(s[0]),a=q("nav-overlay");return o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:a("outline-section-text"),children:r}),(0,n.jsx)("ol",{className:a("outline-list"),role:"list",children:(0,n.jsx)(tW,{index:t,isEnabled:e,lessonIds:s})})]}):s.map((c,d)=>(0,n.jsx)(Ig,{id:c,isEnabled:e,isSectionLesson:!1,first:d===0,last:d===s.length-1},c))},nW=q("nav-overlay"),oW=Dt("NavOverlayOutline",({isEnabled:t})=>{const e=a2(),s=(0,ze.useLabelsMap)();return(0,n.jsx)("section",{"aria-label":s?.a11yRegionNavOverview,className:nW("outline"),id:"nav-compact-outline",children:Ma(e)&&(0,n.jsx)(n.Fragment,{children:e.map((o,r)=>Yt()(o)?null:(0,n.jsx)(sW,{index:r,isEnabled:t,lessonIds:o},`lessonIdGroup-${r}`))})})});var rW=i(32696),Mu=i.n(rW),aW=i(18403),Du=i.n(aW);const Tm=Array.isArray,iW=t=>typeof t=="number",ku=t=>!wt()(t)&&typeof t=="object",Sm=t=>typeof t=="string",cW=(t,e,s)=>(o,r)=>{const a=on()(r,t);if((0,_s.uW)(o)){const c=s[o.l10nId];return typeof c!="string"?!1:!Yt()(Du()(e,(0,ja.htmlDecode)(c)))}else return ku(o)?jg(t,e,s)(o):a&&Sm(o)?!Yt()(Du()(e,(0,ja.htmlDecode)(o))):!1},jg=(t,e,s)=>o=>St()(Wr(),yo(),on()(!0))(cW(t,e,s),o),lW=jg,dW=(t,e,s)=>(o,r)=>{const a=on()(r,t);return Tm(o)?yo()(Lm(t,e,s)(o)):(0,_s.uW)(o)?typeof s[o.l10nId]!="string"?0:us()(Du()(e,(0,ja.htmlDecode)(s[o.l10nId]))):ku(o)?Lm(t,e,s)(o):a&&Sm(o)?us()(Du()(e,(0,ja.htmlDecode)(o))):0},Lm=(t,e,s)=>o=>Wr()(dW(t,e,s),o),bm=t=>{if(Tm(t))return ws()(bm,t);if(ku(t))return bm(yo()(t));if(iW(t))return t},uW=(t,e,s)=>o=>St()(Lm(t,e,s),yo(),ws()(bm),cl(),Nn()(Bi(),0),r=>st()("results",r,o))(o),hW=(t,e,s)=>(o,r)=>{const a=on()(r,t);return Tm(o)?yo()(ym(t,e,s)(o)):ku(o)?ym(t,e,s)(o):a&&Sm(o)?td()(e,s,o):o},ym=(t,e,s)=>o=>Wr()(hW(t,e,s),o),Ag=ym,Rg=(t,e,s,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title","type"];if(Yt()(t))return!1;const c=t.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),d=new RegExp(`(${c})(?![^<]*>)`,"ig"),l=L=>`<mark>${L}</mark>`,u=Ag(a,d,l),h=Ag(Object.keys(s),d,l),p=ws()(u,e),f=o(t),g=h(s),v=L=>f[L.id]>0||lW(a,d,s)(L),C=uW(a,d,s),E=St()(Qt()(v),ws()(C))(e);E.forEach(L=>{L.results+=f[L.id]??0}),r(t,E,g,p)};var mW=i(83760);const pW=tl.Ay.animateScroll,ro=q("nav-overlay"),fW=()=>{const t=(0,X.wA)(),e=vt(),s=Ou(),{lessons:o,mondrian:r}=Mt(),[a,c]=(0,m.useState)(""),[d,l]=(0,m.useState)(null),u=(0,m.useRef)(),h=(0,ze.useLabelsMap)(),p=ro("search-close-btn"),f=ro("search-clear-btn"),g=(0,m.useCallback)(()=>{s.closeSearch(),s.closeNav(),t([(0,Ws.Se)(!0),(0,Ws.ts)(!1),(0,Ws.NM)(null)])},[t,s]),v=(0,m.useCallback)(()=>{c(""),u.current?.focus?.()},[]);(0,m.useEffect)(()=>{u.current?.focus?.()},[]),(0,m.useEffect)(()=>{i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)).then(({searchItemsByLesson:x})=>{l(()=>S=>x(S,o,r))})},[o,r]);const C=(0,m.useCallback)(x=>{yn(x)&&!Mu()(a)?(x.preventDefault(),c(""),t((0,Ws.NM)(null))):yn(x)&&Mu()(a)&&g()},[t,g,a]);(0,mW.A)("keydown",C);const E=(0,m.useCallback)(x=>{c(x.target.value)},[]),L=(0,m.useCallback)(x=>{if(x.preventDefault(),a&&d){const S=(b,N,I,j)=>{t([(0,Ws.NM)(b),(0,Ws.gA)(N),(0,Ws.D2)(I),(0,Ws.u)(j),(0,Ws.ts)(!0)]),pW.scrollToTop({duration:500,smooth:!0})};s.closeNav(),s.closeSearch(),Rg(a,o,e??{},d,S)}},[t,s,o,e,a,d]);return(0,n.jsxs)("div",{className:ro("search"),children:[(0,n.jsx)("div",{className:ro("search-header"),children:(0,n.jsx)("button",{"aria-label":h?.a11ySearchClose,className:p,onClick:g,type:"button",children:(0,n.jsx)(fd,{className:ro("search-close-icon")})})}),(0,n.jsx)("div",{className:ro("search-body"),children:(0,n.jsxs)("form",{autoComplete:"off",onSubmit:L,children:[(0,n.jsxs)("div",{className:ro("search-container"),children:[(0,n.jsx)(Kc,{className:ro("search-icon")}),(0,n.jsx)("input",{"aria-label":h?.a11ySearchInput,className:ro("search-input").mix("brand--ui"),name:"search",onChange:E,placeholder:h?.search,ref:u,type:"input",value:a}),a&&(0,n.jsx)("button",{"aria-label":h?.a11ySearchInputClear,className:f,onClick:v,type:"button",children:(0,n.jsx)(fd,{className:ro("search-clear-icon").toString()})})]}),(0,n.jsx)("div",{className:ro("search-actions"),children:(0,n.jsx)("button",{className:ro("search-submit-btn").mix("brand--ui"),type:"submit",children:h?.search})})]})})]})},Im=q("nav-overlay"),Og="nav-content-overlay",gW=({isExpanded:t,outlineRef:e})=>{const o=a2()[0],r=oi(o),a=Im("body",{section:r});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(YV,{}),(0,n.jsx)("div",{className:a,ref:e,children:(0,n.jsx)(oW,{isEnabled:t})})]})},vW=({children:t,isImage:e,hasStickyHeader:s})=>{const o=Im("content",{graphic:e,"has-sticky-header":s});return(0,n.jsxs)("div",{className:o,"data-nav-scrollable":!0,children:[t,e&&(0,n.jsx)(_0,{})]})},CW=({isExpanded:t})=>{const e=(0,m.useRef)(null),s=(0,m.useRef)(),o=Mt(),r=Ou(),a=(0,as.A)(t),{navigationStyle:c,theme:{progressIndicatorStyle:d}}=o,l=o?.theme?.coverImageColor,u=c===O.qB.ACCENT,h=c===O.qB.TINT,p=(0,At.I8)(c),f=c===O.qB.GRAY,g=c===O.qB.LIGHT,v=(0,At.FH)(c),C=d===O.Y2.CIRCULAR_FILL,E=d===O.Y2.INCOMPLETE_COMPLETE,[L,x]=(0,m.useState)(!0),{isIntersecting:S=!1}=(0,pm.A)(s,{root:e?.current,threshold:1})||{},b=(0,as.A)(S),N=(0,m.useMemo)(()=>v&&l===O.df.LIGHT,[v,l]),I=Im({"accent-tint":h,accent:u,dark:p,gray:f,"image-dark-overlay":v&&!N,"image-light-overlay":v&&N,light:g,"progress-circular-fill":C,"progress-incomplete-complete":E,closing:a&&!t});return(0,m.useEffect)(()=>{t?e.current?.showModal():setTimeout(()=>{e.current?.close()},500)},[t]),(0,m.useEffect)(()=>{const j=R=>{yn(R)&&!r.searchActive&&(R.preventDefault(),r.closeNav())};return t?document.addEventListener("keydown",j):document.removeEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[t,r]),(0,m.useEffect)(()=>{!L&&S?x(!0):b&&!S&&x(!1)},[S,L,b,x]),(0,n.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:I,id:Og,ref:e,children:(0,n.jsx)(vW,{hasStickyHeader:L,isImage:v,children:r.searchActive?(0,n.jsx)(fW,{}):(0,n.jsx)(gW,{isExpanded:t,outlineRef:s})})})},Nl=q("nav-sidebar-search"),xW=Dt("NavSidebarSearch",({className:t="",isEnabled:e})=>{const s=(0,X.wA)(),o=vt(),r=(0,as.A)(e),{lessons:a,mondrian:c}=Mt(),d=Il(),l=(0,ze.useLabelsMap)(),u=(0,m.useRef)(),h=Nl({disabled:!e}).mix(t),p=Nl("icon"),f=Nl("input"),g=Nl("close"),v=Nl("close-icon"),C=d?.term,E=e?void 0:"disabled",[L,x]=(0,m.useState)(""),[S,b]=(0,m.useState)(null);(0,m.useEffect)(()=>{i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)).then(({searchItemsByLesson:P})=>{b(()=>B=>P(B,a,c))})},[a,c]);const N=(0,m.useCallback)(()=>{s([(0,Ws.Se)(!0),(0,Ws.ts)(!1),(0,Ws.NM)(null)]),x("")},[s]),I=(0,m.useCallback)(P=>{yn(P)&&!Mu()(L)?(P.preventDefault(),x(""),s((0,Ws.NM)(null))):yn(P)&&Mu()(L)&&N()},[s,N,L]),j=(0,m.useCallback)(P=>{C!=null&&s((0,Ws.NM)(null)),x(P.target.value)},[s,C]),R=(0,m.useCallback)(P=>{P.preventDefault(),Rg(L,a,o??{},S,(_,k,J,Z)=>s([(0,Ws.NM)(_),(0,Ws.gA)(k),(0,Ws.D2)(J),(0,Ws.u)(Z)]))},[s,a,o,L,S]);return(0,m.useEffect)(()=>{!r&&e&&setTimeout(()=>{u.current.focus()},50)},[e,r]),(0,m.useEffect)(()=>{C&&C!==L&&x(C)},[L,C]),(0,n.jsxs)("form",{autoComplete:"off",className:h,onSubmit:R,children:[(0,n.jsx)(Kc,{className:p}),(0,n.jsx)("input",{"aria-label":l?.a11ySearchInput,className:f,disabled:E,name:"search",onChange:j,onKeyDown:I,placeholder:l?.search,ref:u,type:"search",value:L}),(0,n.jsx)("button",{"aria-label":l?.a11ySearchClose,className:g,onClick:N,type:"reset",children:(0,n.jsx)(fd,{className:v})})]})}),ao=q("nav-sidebar-header"),EW=q("nav-sidebar-header-ghost"),TW=()=>(0,X.d4)(t=>t.ui.skipToNavButton?.offsetHeight??0),SW=Dt("NavSidebarHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:s,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:c}=t;return(0,n.jsxs)("div",{className:ao("progress"),children:[(0,n.jsx)(vd,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o}),(0,n.jsx)("div",{className:s,children:c})]})}),LW=Dt("NavSidebarHeader",({className:t,isCompact:e,isEnabled:s,navRefWidth:o,setIsCompact:r})=>{const a=(0,X.wA)(),[c,d]=(0,m.useState)(""),[l,u]=(0,m.useState)({height:0,width:0}),[h,p]=(0,m.useState)(l),[f,g]=(0,m.useState)(l),v=TW(),C=(0,m.useRef)(),E=(0,m.useRef)(),L=(0,m.useRef)(),[x,S]=(0,m.useState)(null),b=Mt(),N=Mo(),I=(0,ze.useLabelsMap)(),j=si(),R=Il(),P=P0(),B=(0,Me.Wz)(),_=b?.lmsOptions?.disableCoverPage,k=b?.allowSearch&&b?.navigationMode!=="restricted",J=b?.color,Z=b?.theme?.coverImageColor,G=b?.navigationStyle,Y=(0,m.useMemo)(()=>(0,At.FH)(G),[G]),Ee=N8(),fe=(0,as.A)(R),oe=(R?.active||Ee)??!1,[we,Ae]=(0,m.useState)(!0),[_e,Qe]=(0,m.useState)(null),pt=ao({compact:e,searching:oe,transition:we}).mix(t),ls=ao("inner",{compact:e}),nt=ao("content",{compact:e,hidden:oe}),Ce=ao("graphic",{image:Y}),Ne=ao("progress-runner"),Ke=ao("progress-text",{compact:e}),He=ao("progress-track"),dt=ao("search-area",{hidden:!oe}),lt=ao("search-btn",{hidden:oe}),Ht=ao("search-icon"),Wt=ao("title",{compact:e}),vs=EW({compact:e,searching:oe}),Pn=`${B?`%${j}`:`${j}%`} ${I?.lessonComplete}`,Bs=s&&!oe?void 0:-1,Sn=s&&!oe?void 0:-1,{alpha:lo,media:Sr}=pa("coverImage"),kl=(0,m.useMemo)(()=>{let Ns={};return Y&&Object.assign(Ns,(0,At.b9)({alpha:lo,color:Z,media:Sr})),oe&&(Ns.height=h.height),Ns},[lo,Z,Sr,Y,oe,h.height]),ic=(0,m.useMemo)(()=>{let Ns={};return e&&(Ns.bottom=`calc(100% - ${v}px)`,Ns.width=o||0,Ns.transition="width 0.3s",s||(Ns.transition="width 0.3s",Ns.width="0rem")),l.height&&(Ns.height=l.height,Ns.overflow="hidden",e&&(Ns.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),Ns},[e,s,o,l.height,v]);(0,m.useEffect)(()=>{d(e&&P?su(N,45):N)},[N,e,P]);const e2=oe?void 0:{height:f.height},d0=(0,m.useCallback)(()=>{p(l),a((0,Ws.ts)(!0))},[a,l]);(0,m.useLayoutEffect)(()=>{Qe(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:qr=!1}=(0,pm.A)(C,{root:_e,threshold:0})||{},wl=(0,as.A)(qr);(0,m.useEffect)(()=>{const Ns=x!=null&&window.innerHeight*.4>=x.offsetHeight;wl&&!qr&&Ns?r(!0):!wl&&qr&&r(!1)},[qr,wl,x,r]);const t2=(0,m.useCallback)(({target:Ns})=>{const Ln={height:Ns?.scrollHeight??0,width:o??0};u(Ln),p(Ln),e||g(Ln)},[e,o]);Ed(x,t2),(0,m.useLayoutEffect)(()=>{const Ns=_e?.scrollTop;(_e||Ns>0)&&(_e.scrollTop=0);const Ln={height:x?.scrollHeight??0,width:o??0};u(Ln),p(Ln),g(Ln)},[_e,o,x]),(0,m.useEffect)(()=>{k&&fe?.active&&!R.active&&E?.current?.focus()},[k,R,fe]),(0,m.useEffect)(()=>{oe?Ae(!0):e&&Ae(!1)},[oe,e]);const s2=(0,m.useCallback)(Ns=>{if(Ns.target.getAttribute("data-link")!=="lesson-link-item"||!e)return;const Ln=x.getBoundingClientRect(),za=Ns.target.getBoundingClientRect();Ln.bottom>za.top&&(_e.scrollTop-=Ln.height-za.top+5)},[_e,e,x]);return(0,bs.A)("focusin",s2,_e),(0,m.useEffect)(()=>d(N),[N]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:vs,ref:C,style:e2}),(0,n.jsx)("div",{className:pt,ref:L,style:ic,children:(0,n.jsxs)("div",{className:ls,ref:S,children:[(0,n.jsx)("div",{className:Ce,style:kl}),k&&(0,n.jsx)("button",{"aria-label":I?.a11ySearchOpen,className:lt,onClick:d0,tabIndex:Bs,type:"button",children:(0,n.jsx)(Kc,{className:Ht})}),(0,n.jsx)("div",{className:dt,children:(0,n.jsx)(xW,{isEnabled:s&&oe})}),(0,n.jsxs)("div",{className:nt,children:[_?(0,n.jsx)("span",{className:Wt,tabIndex:Sn,children:c}):(0,n.jsx)(Qn,{className:Wt,tabIndex:Sn,to:"/",children:c}),(0,n.jsx)(SW,{classProgressRunner:Ne,classProgressText:Ke,classProgressTrack:He,color:J,percentComplete:j,percentCompleteText:Pn})]})]})})]})}),bW=q("nav-sidebar");function Pg({closeNav:t,id:e,isEnabled:s,isSectionLesson:o,last:r}){const{navigationStyle:a}=Mt(),{icon:c}=Co(e)??{},d=ko(e),l=Go(),u=Uc(),h=Rc(e),p=e===l,f=(0,m.useMemo)(()=>(0,At.I8)(a),[a]),g=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",v=M()(`${g}-link-icon`),C=(0,n.jsx)(Em,{className:v,icon:c}),[E,L]=(0,m.useState)(!1),x=(0,m.useCallback)(()=>L(!0),[]),S=(0,m.useCallback)(()=>L(!1),[]),b=(0,n.jsx)(Dd,{canComplete:h,id:e,isDark:f,isEnabled:s,isTooltipVisible:E,onHideTooltip:S,onShowTooltip:x,scope:$e.by.SIDEBAR}),N=()=>{t&&u&&t()};return(0,n.jsxs)("li",{className:bW("outline-list-item",{last:r}),role:"listitem",children:[(0,n.jsxs)(Zc,{className:g,dark:f,isCurrentLesson:p,isTooltipEnabled:!h,lessonId:e,onHideProgressTooltip:S,onNavigate:N,onShowProgressTooltip:x,showProgressDelay:0,tooltipClassName:`${g}-tooltip`,children:[C,d,!h&&b]}),h&&b]})}const yW=({title:t})=>(0,n.jsx)("span",{className:"nav-sidebar__outline-section-text",children:t});function IW(){const t=vo(),e=ho();return(s,o)=>{const{currentLocale:r}=o,a=Ut(s),c=t(o.id,s),d=e(c.title,r,s);return{navigationStyle:a.navigationStyle,title:d}}}const NW=Se()(xs.wZ,(0,X.Ng)(IW))(yW),jW=({closeNav:t,id:e,index:s,isEnabled:o,lessonIds:r})=>{const{themeId:a}=Mt(),c=ko(e),[d,l]=(0,m.useState)(!0),[u,h]=(0,m.useState)(),p=(0,m.useRef)(),f=`sidebar-sublist-${s}`,g=p.current?.clientWidth,v=M()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!d}),C=M()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!d}),E=(0,m.useCallback)(()=>{l(L=>!L)},[]);return(0,m.useLayoutEffect)(()=>{const L=setTimeout(()=>{p.current&&h(p.current.scrollHeight)},0);return()=>{clearTimeout(L)}},[r.length,g,a]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":f,"aria-expanded":d,className:"nav-sidebar__outline-section-toggle",onClick:E,tabIndex:o?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:c}),(0,n.jsx)(Sp,{className:v})]}),(0,n.jsx)(Td,{inert:!d,children:(0,n.jsx)("ol",{"aria-hidden":d?void 0:!0,className:C,id:f,ref:p,role:"list",style:{maxHeight:u},children:r.map((L,x)=>(0,n.jsx)(Pg,{closeNav:t,id:L,isEnabled:o&&d,isSectionLesson:!0,last:x===r.length-1},L))})})]})},AW=({closeNav:t,index:e,isEnabled:s,lessonIds:o})=>{const[r,...a]=o,c="nav-sidebar__outline-item nav-sidebar__outline-section";return Yt()(a)?(0,n.jsx)("li",{className:c,role:"listitem",children:(0,n.jsx)(NW,{id:r})}):(0,n.jsx)("li",{className:c,role:"listitem",children:(0,n.jsx)(jW,{closeNav:t,id:r,index:e,isEnabled:s,lessonIds:a})})},RW=({closeNav:t,index:e,isEnabled:s,lessonIds:o})=>oi(o)?(0,n.jsx)(AW,{closeNav:t,index:e,isEnabled:s,lessonIds:o}):o.map((a,c)=>(0,n.jsx)(Pg,{closeNav:t,id:a,isEnabled:s,isSectionLesson:!1,last:c===o.length-1},a)),OW=Dt("NavSidebarOutline",({className:t="",closeNav:e,isEnabled:s,lessonIdGroups:o})=>{const r=(0,as.A)(s),[a,c]=(0,m.useState)(!s),d=(0,ze.useLabelsMap)(),l=(0,m.useRef)(),u=M()(t,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":a,"nav-sidebar__outline--safari":nn.isSafari}),h=M()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!s,"nav-sidebar__outline-list--hidden":a});return(0,m.useEffect)(()=>{let p;return r&&!s?p=setTimeout(()=>{c(!0)},350):!r&&s&&a&&c(!1),()=>{clearTimeout(p)}},[s,a,r]),(0,n.jsx)("section",{"aria-label":d?.a11yRegionNavOverview,className:u,id:"nav-sidebar-outline",children:Ma(o)&&(0,n.jsx)("ol",{className:h,ref:l,role:"list",children:o.map((p,f)=>Yt()(p)?null:(0,n.jsx)(RW,{closeNav:e,index:f,isEnabled:s,lessonIds:p},f))})})});function PW(t){const e=Ut(t),s=Ac(t);return{isLegacyCourse:e.isLegacyCourse,lessonIdGroups:s,navigationStyle:e.navigationStyle}}const MW=(0,X.Ng)(PW)(OW);var DW=i(8433),kW=i(83827);const sc=q("nav-sidebar-result"),Mg=({result:t})=>{const e=(0,ze.useLabelsMap)(),s=t?.icon,o=Us(t?.title),r=t?.results??0,a=r===1?e?.result:e?.results,c=sc("icon"),d=sc("title"),l=sc("count");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Em,{className:c,icon:s}),(0,n.jsx)("span",{className:d,children:o}),(0,n.jsx)("span",{className:l,children:`${r} ${a}`})]})},wW=({id:t,index:e,isEnabled:s,onSelectResult:o})=>{const r=Mt(),a=(0,ke.W5)(),c=NV(t),d=a?.params?.id===t,l=d?"page":void 0,u=r?.color,h=r?.navigationStyle,p=s?void 0:-1,f={animationDelay:`${e/10}s`},g=Dr(c?.id),v=(0,m.useMemo)(()=>(0,At.I8)(h),[h]),C=sc(),E=sc("inner",{active:d}),L=sc("link",{dark:v,light:!v});return(0,n.jsx)("li",{className:C,role:"listitem",style:f,children:(0,n.jsx)("div",{className:E,style:{color:u},children:s&&g==null?(0,n.jsx)(Qn,{"aria-current":l,className:L,tabIndex:p,onClick:o,to:(0,_t.p1)(t),children:(0,n.jsx)(Mg,{result:c})}):(0,n.jsx)(_p,{className:L,restriction:g,tooltipClassName:"lesson-nav-link-tooltip",children:(0,n.jsx)(Mg,{result:c})})})})},wu=q("nav-sidebar-results"),BW=[],_W=({closeNav:t,isEnabled:e})=>{const{announcePolite:s}=Je(),o=Mt(),r=Il(),a=(0,ze.useLabelsMap)(),d=(r?.activeLessons??BW).filter(Za),l=r?.term,u=(0,DW.A)(d),h=(0,kW.A)(l),p=a?.noResults??"",f=o?.navigationStyle,g=(0,m.useMemo)(()=>(0,At.I8)(f),[f]),v=wu(),C=wu("message",{dark:g,light:!g}),E=wu("term"),L=wu("list"),x=Xs(W0),S=ie().useCallback(()=>{x&&t()},[t,x]);return(0,m.useEffect)(()=>{if(h){const b=d.length===1?a?.result:a?.results,N=u?`${d.length} ${b}`:`${a?.noResults} ${l}`;s?.(N)}},[s,u,h,d,a,l]),(0,n.jsxs)("div",{className:v,children:[!u&&h&&(0,n.jsxs)("div",{className:C,children:[p," ",(0,n.jsxs)("span",{className:E,children:['"',l,'"']})]}),u&&h&&(0,n.jsx)("ol",{className:L,role:"list",children:d.map((b,N)=>(0,n.jsx)(wW,{isEnabled:e,id:b.id,index:N,onSelectResult:S},b.id))})]})},Bu=q("nav-sidebar"),Dg="nav-content-sidebar",UW=({isExpanded:t,closeNav:e})=>{const s=Mt(),o=Il(),[r,a]=(0,m.useState)(!1),[c,d]=(0,m.useState)(0),l=(0,m.useRef)(null),u=(0,m.useRef)(null),h=s?.color,p=s?.theme?.coverImageColor,f=s?.isLegacyCourse,g=s?.navigationStyle,v=s?.theme?.accentContrast,C=s?.theme?.progressIndicatorStyle,E=o?.active??!1,L=E||t?void 0:"true";(0,m.useLayoutEffect)(()=>{l&&l?.current&&d(l.current?.scrollWidth)},[r,t,l,E,d]);const x=(0,m.useMemo)(()=>(0,At.zH)(g),[g]),S=(0,m.useMemo)(()=>(0,At.I8)(g),[g]),b=(0,m.useMemo)(()=>(0,At.FH)(g),[g]),N=(0,m.useMemo)(()=>b&&p===O.df.LIGHT,[b,p]),I=!(0,ct.Wn)(h),j=(0,ct.xD)(h),R=C===O.Y2.CIRCULAR_FILL,P=C===O.Y2.INCOMPLETE_COMPLETE,B=v===O.Em.AUTO&&j===O.Em.DARK,_=(0,m.useMemo)(()=>v?v===O.Em.DARK||B:I,[B,I,v]),k=Bu("header"),J=Bu("body"),Z=Bu("content"),G=Bu({accent:x,"dark-contrast":!b&&_,"light-contrast":!b&&!_,"legacy-pre-themes":f,"image-dark-overlay":b&&!N,"image-light-overlay":b&&N,"progress-circular-fill":R,"progress-incomplete-complete":P,collapsed:!t,dark:S,light:!S,searching:E});return(0,n.jsx)(Td,{inert:!t,children:(0,n.jsx)(ys.F,{children:(0,n.jsx)(ys.eB,{in:t,mountOnEnter:!0,nodeRef:u,unmountOnExit:!0,timeout:300,children:(0,n.jsx)("div",{"aria-hidden":L,className:G,ref:u,children:(0,n.jsxs)("div",{className:Z,"data-nav-scrollable":!0,id:Dg,children:[(0,n.jsx)(LW,{className:k,isCompact:r,isEnabled:t,navRefWidth:c,setIsCompact:a}),(0,n.jsxs)("div",{className:J,ref:l,children:[(0,n.jsx)(MW,{closeNav:e,isEnabled:t&&!E}),(0,n.jsx)(_W,{closeNav:e,isEnabled:t&&E})]})]})})})})})},wa={x:null,y:null},_u={passive:!0};function kg({children:t,onSwipeDown:e,onSwipeLeft:s,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:c=100,thresholdY:d=100}){const l=(0,m.useRef)(),[u,h]=(0,m.useState)(wa),[p,f]=(0,m.useState)(wa),g=(0,m.useCallback)(L=>{const x=L.touches?.length??0,S=L.targetTouches[0],b=a?a():!0;x==1&&S&&b?h({x:S.clientX,y:S.clientY}):h(wa)},[a]),v=(0,m.useCallback)(L=>{const x=L.targetTouches[0];x&&f({x:x.clientX,y:x.clientY})},[]),C=(0,m.useCallback)(()=>{h(wa),f(wa)},[]),E=(0,m.useCallback)(L=>{const x=L.touches?.length??0;if(u.x==null||u.y==null||p.x==null||p.y==null||x>0)return;const S=p.x-u.x,b=p.y-u.y;Math.abs(S)>Math.abs(b)?Math.abs(S)>c&&(S<0?s?.():o?.()):Math.abs(b)>d&&(b<0?r?.():e?.()),h(wa),f(wa)},[e,s,o,r,c,d,p,u]);return(0,bs.A)("touchstart",g,l.current,_u),(0,bs.A)("touchcancel",C,l.current,_u),(0,bs.A)("touchmove",v,l.current,_u),(0,bs.A)("touchend",E,l.current,_u),(0,n.jsx)("div",{ref:l,children:t})}kg.propTypes={children:A().oneOfType([A().arrayOf(A().element),A().element]).isRequired,onShouldRecognizeGesture:A().func,onSwipeDown:A().func,onSwipeLeft:A().func,onSwipeRight:A().func,onSwipeUp:A().func,thresholdX:A().number.isRequired,thresholdY:A().number.isRequired};function Uu({isEnabled:t=!0,...e}){return t?(0,n.jsx)(kg,{...e}):(0,n.jsx)("div",{children:e.children})}Uu.propTypes={children:A().oneOfType([A().arrayOf(A().element),A().element]).isRequired,isEnabled:A().bool.isRequired};const Hu={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},HW=[Hu.TABLET_PORTRAIT,Hu.TABLET_LANDSCAPE,Hu.MOBILE_PORTRAIT,Hu.MOBILE_LANDSCAPE],Fu=t=>HW.includes(t),wg=t=>(0,m.useMemo)(()=>{const e=window.matchMedia("(pointer: coarse)").matches,s=Fu(t);return e||s},[t]),Bg=q("course-navigation"),{COMPACT:zu,OVERLAY:Nm,SIDEBAR:Ba}=O.br,FW={[zu]:yg,[Ba]:Dg,[Nm]:Og},zW=({hasSearchResults:t,courseNavType:e,openNav:s,closeNav:o})=>{const[r,a]=(0,m.useState)(t);return(0,m.useEffect)(()=>{r&&!t&&!(e===Ba)?(o(),a(!1)):r&&e===Nm?s():a(t)},[t,e,s,o,r]),r},VW=t=>{const[e,s]=(0,m.useState)();(0,m.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:c,openNav:d,closeNav:l}=t;o===Ba&&r&&(!e&&c&&a?l():e&&!c&&!a&&d(),s(c))},[e,t])},WW=({beginWithSidebarOpen:t,children:e,closeNav:s,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:c,openNav:d,previewType:l,toggleNav:u,hideNav:h})=>{const p=(0,m.useRef)(),f=(0,m.useRef)(),{active:g}=Il(),v=(0,ze.useLabelsMap)(),C=zW({hasSearchResults:g,courseNavType:o,openNav:d,closeNav:s}),E=(0,m.useMemo)(()=>C||o===zu&&a?Ba:o,[o,C,a]);VW({activeNavType:E,beginWithSidebarOpen:t,closeNav:s,openNav:d,isNavOpen:r,isTablet:a}),(0,m.useEffect)(()=>{const I=R=>{f.current?.contains(R.relatedTarget)&&s()},j=()=>{f.current?.removeEventListener("click",s),f.current?.removeEventListener("keypress",s),f.current?.removeEventListener("blur",I,!0)};return E===zu&&r?(f.current?.addEventListener("click",s),f.current?.addEventListener("keypress",s),f.current?.addEventListener("blur",I,!0)):j(),j},[E,r,f,s]);const L=wg(l),x=(0,m.useCallback)(()=>{const I=E===O.br.SIDEBAR;L&&I&&r&&s()},[s,r,L,E]),S=(0,m.useMemo)(()=>FW[E],[E]),b=Bg(E?.toLowerCase(),{"nav-open":r,"search-open":g&&r,"course-nav-type":o?.toLowerCase()}),N=Bg("lessonNav",{type:c?.toLowerCase()});return(0,n.jsx)(S8,{isCourseNavOpen:r,children:(0,n.jsx)("div",{className:b,children:(0,n.jsx)(Uu,{isEnabled:E===O.br.SIDEBAR,onSwipeLeft:x,children:(0,n.jsxs)("div",{className:N,children:[(0,n.jsxs)("nav",{"aria-label":v?.a11yRegionNavLesson,children:[(0,n.jsx)(LV,{"aria-controls":S,toggleNav:u,isNavOpen:r,hideNav:h}),E===Ba&&(0,n.jsx)(UW,{isExpanded:r,closeNav:s}),E===zu&&(0,n.jsx)($V,{openNav:d,closeNav:s,isExpanded:r,ref:p}),E===Nm&&(0,n.jsx)(QV,{closeNav:s,openNav:d,children:(0,n.jsx)(CW,{isExpanded:r})})]}),(0,n.jsx)("div",{ref:f,children:e})]})})})})},GW=({children:t,isPreviewLesson:e,...s})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...c}=(0,Me.DX)(),d=Uc(),l=(0,At.zh)(c),u=!d,h=c.sidebarMode===O.RE.OPEN,p=l&&r===Ba&&h&&u,f=c.type===$e.y4,g=f&&c?.theme?.blockNavigationType===O.HC.CONTINOUS,[v,C]=(0,m.useState)(p),E=(0,m.useCallback)(()=>{C(!0)},[]),L=(0,m.useCallback)(()=>{C(!1)},[]),x=(0,m.useCallback)(()=>v?L():E(),[v,L,E]);(0,bs.A)(Ap,E),(0,bs.A)(Rp,L);const S=f||e?"fixed-course-exit":void 0,b=g?{marginInlineEnd:"2rem"}:void 0,N=l?r:"";return f||e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(gm,{className:S,lmsOptions:a,style:b}),t]}):(0,n.jsx)(WW,{...s,beginWithSidebarOpen:h,closeNav:L,courseNavType:N,enableExitCourse:a?.enableExitCourse||!0,isNavOpen:v,isTablet:d,lessonNavType:o,openNav:E,toggleNav:x,hideNav:!l,children:t})};var KW=i(67715),_g=i(56838);const $W=ot()("rise-api/people/")("SEARCH_USERS"),QW={admin:[],author:[]},ZW=ws()(Br()("profile")),YW=(t,{role:e,data:s})=>mt()(t,{[e]:ZW(s)}),XW={[$W]:(0,he.onSuccess)(YW)},JW=(0,he.handle)(QW,XW),D0e="rise/ai/GET_AI_SUBSCRIPTION",qW="rise/ai/SET_AI_ASSISTANT_CONTEXT",eG="rise/ai/SET_AI_SUBSCRIPTION",tG="rise/ai/CLEAR_AI_ASSISTANT_BLOCK_SELECTION",sG="rise/ai/SET_AI_ASSISTANT_PENDING_JOB",nG="rise/ai/SET_AI_SETTING_TAB",oG="rise/ai/SET_AI_CONNECT_COURSE",rG="rise/ai/SET_AI_CONNECT_COURSE_SOURCE",aG="rise/ai/SET_AI_CONNECT_COURSE_SOURCES",iG="rise/ai/SET_AI_CONNECT_COURSE_SOURCE_NOTIFICATION",cG="rise/ai/UPDATE_AI_CONNECT_COURSE_SOURCE_NOTIFICATION",lG="rise/ai/REMOVE_AI_CONNECT_COURSE_SOURCE_NOTIFICATION",dG="rise/ai/SET_AI_CONNECT_COURSE_METADATA",uG="rise/ai/SET_AI_IMAGE_STYLES",hG="rise/ai/SET_AI_CONNECT_COURSE_IMAGE_STYLE",mG="rise/ai/TOGGLE_AI_SETTINGS",pG="rise/ai/TOGGLE_AI_CONTENT_PREVIEW",fG="rise/ai/DELETE_AI_CONNECT_SOURCE",gG="rise/ai/OPEN_MODAL",vG="rise/ai/CLOSE_MODAL",CG="rise/ai/INITIALIZE_QUICK_CONVERT",xG="rise/ai/CLOSE_QUICK_CONVERT",EG=ot()("rise/sidePanel/"),k0e={COMMENTS:"COMMENTS"},Ug=EG("TOGGLE_SIDE_PANEL");var jm=(t=>(t.Source="Source content",t.Outline="Course outline",t))(jm||{}),Hg=(t=>(t.BLOCK_GENERATOR="BLOCK_GENERATOR",t.NEW_BLOCK_FROM_EXISTING="NEW_BLOCK_FROM_EXISTING",t.BLOCK_KNOWLEDGE_CHECK_GENERATOR="BLOCK_KNOWLEDGE_CHECK_GENERATOR",t.BLOCK_EDITOR="BLOCK_EDITOR",t.BLOCK_CONVERT="BLOCK_CONVERT",t.QUIZ_GENERATOR="QUIZ_GENERATOR",t.QUIZ_EDITOR="QUIZ_EDITOR",t.COURSE_OUTLINE="COURSE_OUTLINE",t.LESSON_GENERATOR="LESSON_GENERATOR",t.CONCEPT_TO_COURSE="CONCEPT_TO_COURSE",t))(Hg||{});const Fg={aiConnectCourse:{imageStyles:[],lessons:[],sources:[]},assistant:{contextType:"course"},subscription:{subscriptionId:void 0,isEnabled:!1,status:"inactive"},settings:{isOpen:!1,activeTab:jm.Source,isLoading:!0},contentPreview:{isOpen:!1,mode:Hg.BLOCK_CONVERT},quickConvert:{block:null,content:null,workflowKey:null,toWorkflowKey:null},notifications:[]},TG=(t,e)=>{const s=e.isOpen!==void 0?e.isOpen:!t.settings.isOpen;return{...t,settings:{...t.settings,isOpen:s,activeTab:jm.Source}}},SG=(t,e)=>({...t,settings:{...t.settings,activeTab:e.tab}}),LG=(t,e)=>{const s=Array.isArray(e.lessons)?e.lessons:[];return{...t,aiConnectCourse:{...e,sources:e.sources||[],imageStyleId:e.imageStyleId,imageStyles:e.imageStyles||[],lessons:s,hasGeneratedCourseOutline:s.length>0},settings:{...t.settings,isLoading:!1}}},bG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,audience:e.audience,topics:e.topics,learningObjectives:e.learningObjectives}}),yG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,imageStyles:e}}),IG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,imageStyleId:e}}),NG=(t,e)=>{const s=t.aiConnectCourse.sources.findIndex(r=>r.id===e.id),o=t.aiConnectCourse.sources[s];return s!==-1&&o?{...t,aiConnectCourse:{...t.aiConnectCourse,sources:[...t.aiConnectCourse.sources.slice(0,s),{...o,...e},...t.aiConnectCourse.sources.slice(s+1)]}}:{...t,aiConnectCourse:{...t.aiConnectCourse,sources:[...t.aiConnectCourse.sources,e]}}},jG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,sources:e}}),AG=(t,e)=>({...t,aiConnectCourse:{...t.aiConnectCourse,sources:t.aiConnectCourse.sources.filter(s=>s.id!==e.sourceId)}}),RG=(t,e)=>({...t,subscription:{...t.subscription,...e}}),OG=(t,e)=>{const s=!!(e.contextType&&t.assistant.contextType!==e.contextType),o=e.pendingJob||t.assistant.pendingJob;return{...t,assistant:{...t.assistant,...e,pendingJob:s?void 0:o}}},PG=(t,e)=>{const{pendingJob:s,...o}=t.assistant;return{...t,assistant:{...o,pendingJob:e}}},MG=t=>t,DG=t=>({...t,assistant:{...t.assistant,blockId:void 0}}),kG=(t,e)=>({...t,contentPreview:{...t.contentPreview,isOpen:e.isOpen!==void 0?e.isOpen:!t.contentPreview.isOpen,mode:e.mode||t.contentPreview.mode}}),wG=(t,e)=>({...t,modal:e}),BG=t=>({...t,modal:void 0}),_G=(t,e)=>({...t,modal:"quickConvert",quickConvert:e}),UG=t=>({...t,modal:void 0,quickConvert:Fg.quickConvert}),HG=(t,e)=>({...t,notifications:[...t.notifications,e]}),FG=(t,e)=>{const s=t.notifications.map(o=>o.id===e.id?{...o,...e}:o);return{...t,notifications:s}},zG=(t,e)=>({...t,notifications:t.notifications.filter(s=>e!==s.id)}),VG={[tG]:DG,[fG]:AG,[qW]:OG,[sG]:PG,[oG]:LG,[rG]:NG,[aG]:jG,[iG]:HG,[cG]:FG,[lG]:zG,[dG]:bG,[eG]:RG,[nG]:SG,[uG]:yG,[hG]:IG,[Ug]:MG,[mG]:TG,[pG]:kG,[gG]:wG,[vG]:BG,[CG]:_G,[xG]:UG},WG=(0,he.handle)(Fg,VG),jl=ot()("rise/aiImageGenUI/"),GG=jl("HIDE_GEN_DIALOG"),KG=jl("SHOW_GEN_DIALOG"),$G=jl("SET_GENERATED_OPTIONS"),QG=jl("SET_ERROR"),ZG=jl("CLEAR_ERROR"),YG={error:null,generatedOptions:[],isVisible:!1,itemId:null,lessonId:null,defaultAspectRatio:"landscape"},XG=(t,e)=>({...t,isVisible:!0,generatedOptions:[],image:e.image,insertBeforeItemId:e.insertBeforeItemId,itemId:e.itemId,l10n:e.l10n,lessonId:e.lessonId,refs:e.refs,onImageSelect:e.onImageSelect,defaultAspectRatio:e.defaultAspectRatio??"landscape"}),JG=t=>({...t,isVisible:!1}),qG=(t,e)=>({...t,generatedOptions:e.generatedOptions}),eK=(t,e)=>({...t,error:e.error}),tK=t=>({...t,error:null}),sK={[KG]:XG,[GG]:JG,[$G]:qG,[QG]:eK,[ZG]:tK},nK=(0,he.handle)(YG,sK),oK="rise/asset-manager/START_UPLOAD",rK="rise/asset-manager/FINISH_UPLOAD",aK="rise/asset-manager/ABORT_UPLOAD",iK={jobs:{}};function cK(t,e){return{...t,jobs:{...t.jobs,[e.jobId]:{abort:e.abort,status:"uploading"}}}}function lK(t,e,s){return{...t,jobs:{...t.jobs,[e.jobId]:{...t.jobs[e.jobId],...e,status:s?"error":"finished"}}}}function dK(t,e){return e.jobId in t.jobs?{...t,jobs:{...t.jobs,[e.jobId]:{...t.jobs[e.jobId],status:"aborted"}}}:t}const uK=(0,he.handle)(iK,{[oK]:cK,[rK]:lK,[aK]:dK});var hK=i(15241),Vu=i.n(hK);const nc=ot()("rise/blockTemplates/"),mK=nc("CREATE_BLOCK_TEMPLATE"),pK=nc("CREATE_BLOCK_TEMPLATE_SUCCESS"),fK=nc("DELETE_BLOCK_TEMPLATE"),gK=nc("FETCH_BLOCK_TEMPLATES"),vK=nc("PROCESS_BLOCK_TEMPLATE"),CK=nc("UPDATE_BLOCK_TEMPLATE");var xK=i(82294),oc=i.n(xK);const EK=Eo()(Wo()),pn=t=>(e,s)=>(0,Ft.Ve)(e,Fs()(We()(i6()(Array,t)),oc()(t,s),st()(t,s))),Wu=t=>(e,s)=>(0,Ft.Ve)(s,Pe()(t),EK(e)),TK=(t,e)=>Zi()(Vu()("templates"),Sa()(Ue()("id",e)),t),SK=Se()(wt(),Pe()("templates")),LK=t=>e=>Zi()(Vu()("templates"),ws()(sn()(Ue()("id",t.id),Rt()(t))),e),Am=(t,e)=>(0,Ft.Ve)(t,Fs()(SK,We()(t),LK(e))),bK=(t,e)=>({...t,templates:[e,...t.templates||[]]}),yK=(t,e)=>e.templates?.find(s=>s.id===t),zg=(t,e)=>yK(e.id,t)?Am(t,e):bK(t,e),IK={[mK]:(0,he.onSuccess)(zg),[pK]:(0,he.onSuccess)(zg),[fK]:(0,he.onSuccess)(TK),[gK]:(0,he.onSuccess)(pn("templates")),[vK]:(0,he.onSuccess)(Am),[CK]:(0,he.onSuccess)(Am)},NK=(0,he.handle)({templates:null},IK);var jK=i(13855),AK=i.n(jK);const RK=(0,ye._$)("SESSION_COOKIE_DOMAIN"),Rm=(()=>{try{const t="__pay_no_attention_to_that_man_behind_the_curtain__",e=window.localStorage;return e.setItem(t,t),e.removeItem(t),!0}catch{return!1}})(),Om=t=>Rm?window.localStorage.getItem(t):null,Pm=(t,e)=>{if(!Rm)return null;window.localStorage.setItem(t,e)},OK=t=>{if(!Rm)return null;window.localStorage.removeItem(t)},PK=Es()((t,e)=>(Pm(t,e),AK().save(t,e,{domain:RK}),e)),B0e=t=>{const e=JSON.parse(cookie.load(t)||null)||JSON.parse(Om(t)||null);return e&&PK(t,e),e},_0e="A-Z",MK="Recent",Vg="blockTemplateSortPreference",DK=()=>Om(Vg)||MK,kK=t=>Pm(Vg,t),Fn=ot()("rise/blockTemplateUI/"),wK=Fn("HIDE_BLOCK_SELECTION_UI"),BK=Fn("HIDE_DELETE_BLOCK_TEMPLATE_DIALOG"),_K=Fn("HIDE_EDIT_BLOCK_TEMPLATE_DIALOG"),UK=Fn("RESET_STATE"),HK=Fn("SET_AUTHOR_QUERY"),FK=Fn("SET_QUERY"),zK=Fn("SET_SELECTED_AUTHOR"),VK=Fn("SET_SELECTED_INDEX"),WK=Fn("SET_SORT_TYPE"),GK=Fn("SHOW_BLOCK_SELECTION_UI"),KK=Fn("SHOW_DELETE_BLOCK_TEMPLATE_DIALOG"),$K=Fn("SHOW_EDIT_BLOCK_TEMPLATE_DIALOG"),QK=Fn("TOGGLE_BLOCK_SELECTED"),Wg={authorQuery:"",editBlockTemplate:null,query:"",selectedAuthorId:null,selectedAuthorName:null,selectedIndex:-1},ZK=Rt()(Wg,{selectedBlockIds:[],showBlockSelection:!1,showDeleteDialog:!1,showEditDialog:!1,sortType:DK()}),YK=Rt()({showBlockSelection:!1,showEditDialog:!1}),XK=(t,e)=>mt()(t,Ls()(["selectedAuthorId","selectedAuthorName"],e)),JK=(t,e)=>(kK(e),st()("sortType",e,t)),qK=Rt()({selectedBlockIds:[],showBlockSelection:!0}),e$=(t,e)=>mt()(t,{showDeleteDialog:!0,editBlockTemplate:e}),t$=(t,e)=>mt()(t,{showEditDialog:!0,editBlockTemplate:e}),s$=(t,e)=>Zi()(Vu()("selectedBlockIds"),Fs()(on()(e),rh()([e]),Qo()(e)),t),n$={[wK]:Rt()({showBlockSelection:!1}),[BK]:Rt()({showDeleteDialog:!1}),[_K]:YK,[UK]:Rt()(Wg),[HK]:pn("authorQuery"),[FK]:pn("query"),[zK]:XK,[VK]:pn("selectedIndex"),[WK]:JK,[GK]:qK,[KK]:e$,[$K]:t$,[QK]:s$},o$=(0,he.handle)(ZK,n$),xr="bridge/publish/",r$=`${xr}SET_LOADING`,a$=`${xr}FETCH_BRIDGE_COURSES`,i$=`${xr}FETCH_CATEGORIES`,c$=`${xr}FETCH_LIBRARIES`,l$=`${xr}FETCH_ORCA_USER`,d$=`${xr}PUBLISH_SUCCESS`,u$=`${xr}PUBLISH_FAILURE`,h$=`${xr}SET_MODAL_STATE`,m$=`${xr}SET_VERSION_ID`;var p$=(t=>(t.FORMAT="FORMAT",t.LESSON_MISMATCH="LESSON_MISMATCH",t.COURSE_MISMATCH="COURSE_MISMATCH",t))(p$||{}),f$=(t=>(t.editing="editing",t.submitting="submitting",t.success="success",t.submitError="submit-error",t.undoError="undo-error",t))(f$||{});const g$={courses:[],categories:[],libraries:[],loading:!0},v$=(t,e)=>t.modal?.state==="submitting"&&t.modal?.versionId===e.versionId?{...t,modal:{...t.modal,state:"submit-error"}}:t,C$=(t,e)=>t.modal?.state==="submitting"&&t.modal?.versionId===e.versionId?{...t,modal:{...t.modal,state:"success",manageUrl:e.manageUrl,bridgeCourseId:e.bridgeCourseId}}:t,x$=(0,he.handle)(g$,{[a$]:(t,e)=>({...t,courses:e}),[i$]:(t,e)=>({...t,categories:e}),[c$]:(t,e)=>({...t,libraries:e}),[l$]:(t,e)=>({...t,user:e}),[u$]:v$,[d$]:C$,[r$]:(t,e)=>({...t,loading:e}),[h$]:(t,e)=>({...t,modal:{...t.modal,state:e}}),[m$]:(t,e)=>({...t,modal:{...t.modal,versionId:e}})}),Gg=ot()("rise/bulkExport/"),E$=Gg("SET_EXPORT_IDS"),T$=Gg("CLEAR_EXPORT_SETTINGS"),S$=(t,e)=>({...t,exportIds:e}),Kg={exportIds:[]},L$={[E$]:(0,he.onSuccess)(S$),[T$]:()=>Kg},b$=(0,he.handle)(Kg,L$),Xr=ot()("rise/businessContent/"),U0e=Xr("EXPORT_BUSINESS_CONTENT_LESSON"),H0e=Xr("EXPORT_BUSINESS_CONTENT_COURSE"),y$=Xr("HIDE_EXPORT_DIALOG"),$g=Xr("IMPORT_BUSINESS_CONTENT_LESSON"),I$=Xr("IMPORT_BUSINESS_CONTENT_LESSON_UPDATE"),N$=Xr("RESET_STATE"),j$=Xr("SET_LOADING_STATE"),A$=Xr("SHOW_EXPORT_DIALOG"),Gu={showExportDialog:!1,loading:!1},R$=(t,{courseId:e,lessonId:s})=>Rt()({showExportDialog:!0,courseId:e,lessonId:s},Gu),O$={[y$]:We()(Gu),[N$]:We()(Gu),[j$]:Rt()({loading:!0}),[A$]:R$},P$=(0,he.handle)(Gu,O$),Qg=ot()("rise/captionsUI/"),M$=Qg("SHOW_CAPTIONS_UI"),D$=Qg("HIDE_CAPTIONS_UI"),k$={showDialog:!1},w$=(t,{lessonId:e,blockId:s,itemId:o})=>Rt()({showDialog:!0,lessonId:e,blockId:s,itemId:o},t),B$={[M$]:w$,[D$]:Rt()({showDialog:!1})},_$=(0,he.handle)(k$,B$),U$={[ot()("rise-api/categories/")("FETCH_CATEGORIES")]:(0,he.onSuccess)(M6()(1))},H$=(0,he.handle)({},U$),F$="rise/changesets/HAS_CHANGESETS",z$="rise/changesets/RESET_CHANGESETS",Mm="rise/changesets/APPLY_PENDING_CHANGES",V$="rise/changesets/APPLY_PENDING_CHANGES_CLEAR",W$="rise/changesets/APPLY_PENDING_CHANGES_START",Zg={numPendingChanges:-1},G$=(0,he.handle)(Zg,{[Mm]:Y$,[V$]:Z$,[W$]:Q$,[F$]:K$,[z$]:$$});function K$(t,{numPendingChanges:e}){return{...t,applyChangesetsStatus:void 0,numPendingChanges:e}}function $$(){return Zg}function Q$(t){return st()("applyChangesetsStatus","pending",t)}function Z$(t){return St()(Wo()("applyChangesetsStatus"),st()("numPendingChanges",0))(t)}function Y$(t,e,s){return{...t,applyChangesetsStatus:s?"error":"complete",numPendingChanges:s?t.numPendingChanges:0}}var X$=i(82738),J$=i.n(X$);const ln=ot()("rise/courses/"),V0e=ln("DELETE_COURSE"),jo=ln("GET_COURSE"),q$=ln("GET_TRACKED_QUIZZES"),W0e=ln("GET_COURSE_VERSION"),eQ=ln("GET_COURSE_SHARE_DISABLED"),Dm=ln("IMPORT_TRANSLATION"),tQ=ln("SET_OWNER"),Yg=ln("UPDATE_COURSE"),Xg=ln("UPDATE_COURSE_DEBOUNCE"),km=ln("UPDATE_COURSE_FIELD"),wm=ln("UPDATE_COURSE_FIELD_THROTTLE"),Jg=ln("UPDATE_LESSON_ORDER"),sQ=ln("UPDATE_LESSON_ORDER_CLIENT"),nQ=ln("SET_PARTNER_CONTENT_ID"),oQ=ln("SET_COURSE_TRANSLATIONS"),rQ=ln("DELETE_PARTNER_CONTENT_ID"),qg=ln("IMPORT_TRANSLATION_UPDATES"),Bm=ot()("rise/collaborators/"),ev=Bm("CREATE_COLLABORATOR"),tv=Bm("DELETE_COLLABORATOR"),aQ=Bm("SET_COLLABORATOR_ROLE"),iQ=jt()(["profile","first_name"]),cQ=jt()(["profile","last_name"]),lQ=Se()(ma(),ha()(" "),jh()([iQ,cQ])),dQ=(t,{collaborators:e})=>Nn()(sv,{},e),sv=(t,e)=>{const s=st()("name",lQ(e),e);return st()(e.author,s,t)},uQ=(t,{author:e,roleId:s})=>J$()(tm()([e,"roleId"]),s,t),hQ={[ev]:(0,he.onSuccess)(sv),[tv]:(0,he.onSuccess)(Wu("author")),[jo]:(0,he.onSuccess)(dQ),[aQ]:(0,he.onSuccess)(uQ)},mQ=(0,he.handle)({},hQ),Al=ot()("rise/collaboratorsUI/"),pQ=Al("CHOOSE_AUTHOR"),fQ=Al("PENDING"),gQ=Al("SET_EMAIL"),vQ=Al("SHOW_CONFIRM"),CQ=Al("SHOW_TRANSFER"),xQ={email:"",error:"",pending:!1,showConfirmId:null,showTransfer:!1,transferAuthor:null},EQ=Ue()("statusCode",409),TQ="This user is already a collaborator.",SQ="This user either doesn\u2019t have a Teams account, or their team is in a different regional data center.",LQ=(t,e,s)=>s?{...t,error:EQ(e)?TQ:SQ,pending:!1}:{...t,email:"",error:"",pending:!1},bQ=(t,e)=>mt()(t,{email:e,error:""}),yQ={[pQ]:pn("transferAuthor"),[ev]:LQ,[tv]:(0,he.onSuccess)(st()("showConfirmId",null)),[fQ]:st()("pending",!0),[gQ]:bQ,[vQ]:pn("showConfirmId"),[CQ]:pn("showTransfer")},IQ=(0,he.handle)(xQ,yQ),NQ={[ot()("rise/connection/")("SET_STATUS")]:(0,he.onSuccess)(mt())},jQ=(0,he.handle)({status:null},NQ),nv=ot()("rise/contentLibrary/"),AQ=nv("CLOSE_LIBRARY"),RQ=nv("OPEN_LIBRARY"),ov={blockId:"",existingMediaType:"",isVisible:!1,itemId:"",lessonId:"",refs:""},OQ={[AQ]:()=>ov,[RQ]:mt()},PQ=(0,he.handle)(ov,OQ),Ku=ot()("rise/copyLessonUI/"),MQ=Ku("HIDE_COPY_LESSON_DIALOG"),DQ=Ku("SET_SEARCH_QUERY"),kQ=Ku("SET_SELECTED_COURSE_INDEX"),wQ=Ku("SHOW_COPY_LESSON_DIALOG"),rv={query:"",selectedCourseIndex:0,selectedUsingKeyboard:!1,show:!1},BQ=(t,e)=>mt()(t,{query:e,selectedCourseIndex:0,selectedUsingKeyboard:!1}),_Q=(t,e)=>mt()(t,{lesson:e,show:!0}),UQ={[MQ]:We()(rv),[DQ]:BQ,[kQ]:mt(),[wQ]:_Q},HQ=(0,he.handle)(rv,UQ),Gs=ot()("rise/lessons/"),FQ=Gs("COPY_LESSON"),zQ=Gs("COPY_LESSON_SUCCESS"),_m=Gs("CREATE_LESSON"),av=Gs("CREATE_BULK_LESSONS"),Um=Gs("CREATE_LESSON_CLIENT"),iv=Gs("DELETE_LESSON"),VQ=Gs("DELETE_LESSON_CLIENT"),cv=Gs("DUPLICATE_LESSON"),WQ=Gs("FETCH_BLOCK_BACKGROUND_IMAGE"),GQ=Gs("INSERT_BLOCK_TEMPLATE"),lv=Gs("INSERT_BLOCK_TEMPLATE_SUCCESS"),$0e=Gs("INSERT_QUESTION_BANK_QUESTIONS"),dv=Gs("INSERT_QUESTION_BANK_QUESTIONS_SUCCESS"),KQ=Gs("UPDATE_BLOCK_ITEM"),Q0e=Gs("UPDATE_BLOCK_ITEM_DEBOUNCE"),$Q=Gs("UPDATE_COURSE_LESSONS"),uv=Gs("UPDATE_LESSON"),hv=Gs("UPDATE_LESSON_DEBOUNCE"),QQ=Gs("UPDATE_LESSON_TITLE"),ZQ=Gs("UPDATE_LESSON_TITLE_THROTTLE"),$u=ot()("rise/typefaces/"),YQ=$u("CREATE_TYPEFACE"),mv=$u("DELETE_TYPEFACE"),pv=$u("FETCH_TYPEFACES"),XQ=$u("UPDATE_TYPEFACE"),Ao=ot()("rise/courseSnapshots/"),Z0e=Ao("COURSE_CREATED_FROM_SNAPSHOT"),Y0e=Ao("CREATE_COURSE_FROM_SNAPSHOT"),X0e=Ao("CREATE_SNAPSHOT"),J0e=Ao("CREATE_SNAPSHOT_ON_REACH_SUBMIT"),q0e=Ao("DELETE_SNAPSHOT"),e1e=Ao("RENAME_SNAPSHOT"),JQ=Ao("RESTORE_SNAPSHOT"),qQ=Ao("SAVE_AND_RESTORE_SNAPSHOT"),eZ=Ao("SNAPSHOT_CREATED"),tZ=Ao("SNAPSHOT_UPDATED"),t1e=Ao("UNDELETE_SNAPSHOT");var sZ=i(33897);const Hm=(t,e,s)=>{const o=(0,sZ.Kj)(e?.course),r=e?.authorPermissions;return(s?t:{...t,authorPermissions:r,...o})??{}},Ro=(t,{course:e})=>mt()(t,e),nZ=(t,e)=>mt()(t,{associatedLearningPaths:e}),fv=(t,{course:e})=>mt()(t,{lessons:e.lessons,updatedAt:e.updatedAt}),oZ=(t,{author:e,courseId:s})=>t.id===s?st()("author",e,t):t,rZ=(t,e)=>({...t,translations:e}),aZ=["bodyTypefaceId","headingTypefaceId","typefaces","updatedAt"],gv=(t,e,s)=>(0,Ft.Ve)(e,Fs()(We()(s),Se()(We()(t),ad()(console.error)),Se()(mt()(t),Ls()(aZ)))),iZ=(t,e)=>st()("partnerContentId",e,t),cZ=Wo()("partnerContentId"),lZ=(t,e)=>e&&t.isShareDisabled===void 0?st()("isShareDisabled",!0,t):t,dZ={[_m]:(0,he.onSuccess)(Ro),[Um]:Ro,[av]:(0,he.onSuccess)(Ro),[iv]:(0,he.onSuccess)(Ro),[cv]:(0,he.onSuccess)(Ro),[q$]:(0,he.onSuccess)(nZ),[jo]:Hm,[eQ]:(0,he.onSuccess)(lZ),[Dm]:(0,he.onSuccess)(Ro),[qQ]:(0,he.onSuccess)(Hm),[JQ]:(0,he.onSuccess)(Hm),[tQ]:(0,he.onSuccess)(oZ),[Yg]:(0,he.onSuccess)(mt()),[Xg]:gv,[km]:(0,he.onSuccess)(Ro),[wm]:gv,[Jg]:(0,he.onSuccess)(fv),[sQ]:fv,[rQ]:(0,he.onSuccess)(cZ),[oQ]:(0,he.onSuccess)(rZ),[nQ]:(0,he.onSuccess)(iZ),[qg]:Ro,[$g]:Ro,[mv]:(0,he.onSuccess)(Ro),[Mm]:(0,he.onSuccess)(Ro)},uZ=(0,he.handle)({},dZ),hZ=ot()("rise/courseCopies/")("FETCH_COURSE_COPIES"),mZ={courses:[],loaded:!1},pZ=(t,e)=>mt()(t,{courses:e,loaded:!0}),fZ={[hZ]:(0,he.onSuccess)(pZ)},gZ=(0,he.handle)(mZ,fZ),Fm=ot()("rise/courseMedia/"),vZ=Fm("HIDE_MEDIA_DIALOG"),CZ=Fm("SHOW_MEDIA_DIALOG"),n1e=Fm("SHOW_EDIT_TRANSCRIPT_DIALOG"),vv={initialData:{"ai-image":{prompt:void 0,style:void 0}},initialSelectedTab:void 0,isVisible:!1,tabs:{},uploadTypes:void 0},xZ=(t,e)=>({...vv,...e,isVisible:!0}),EZ=t=>(t.onClose?.(),{...t,isVisible:!1}),TZ={[CZ]:xZ,[vZ]:EZ},SZ=(0,he.handle)(vv,TZ),Qu=ot()("rise/courseReviewItems/"),LZ=Qu("DELETE_COURSE_REVIEW_ITEM"),bZ=Qu("SET_CURRENT_COURSE_REVIEW_ITEM_FOR_COMMENTS"),yZ=Qu("SET_REVIEW_STACK"),IZ=Qu("SET_REVIEW_ITEMS"),NZ=(t,{reviewId:e})=>t?.reviewIds.includes(e)?{...t,reviewIds:t?.reviewIds.filter(s=>s!==e)}:{...t},jZ=(t,{courseReviewItems:e})=>({...t,reviewIds:e}),AZ=(t,{reviewId:e})=>({...t,currentReviewIdForComments:e}),RZ=(t,{payload:e})=>({...t,reviewStack:e}),OZ=(t,{payload:e})=>({...t,reviewItems:e}),PZ={[LZ]:(0,he.onSuccess)(NZ),[bZ]:(0,he.onSuccess)(AZ),[yZ]:(0,he.onSuccess)(RZ),[IZ]:(0,he.onSuccess)(OZ),[jo]:(0,he.onSuccess)(jZ)},MZ=(0,he.handle)([],PZ),zm=ot()("rise/courseTheme/"),DZ=zm("FETCH_THEME_CONSTANTS"),kZ=zm("SET_CANCEL"),wZ=zm("SET_PREVIEW_LOADED"),BZ=(t,e)=>st()(e.id,e,t),_Z=Se()(Nn()(BZ,{}),Pe()("themeDefaults")),UZ=(t,e)=>(0,Ft.Ve)(e,bo()("themeDefaultsObj",_Z)),HZ={cancel:Function.prototype,constants:{},isPreviewLoaded:!1,isTypefacesLoaded:!1},FZ={[DZ]:bo()("constants",UZ),[pv]:st()("isTypefacesLoaded",!0),[kZ]:pn("cancel"),[wZ]:pn("isPreviewLoaded")},zZ=(0,he.handle)(HZ,FZ);var VZ=i(45404),Zu=i.n(VZ),WZ=i(74221),Vm=i.n(WZ);const Oo=ot()("rise-api/courses/"),GZ=Oo("GET_PUBLISH_SETTINGS"),o1e=Oo("SUBMIT_AND_PUBLISH_COURSE"),KZ=Oo("SUBMIT_AND_PUBLISH_COURSE_ERROR"),r1e=Oo("SUBMIT_COURSE"),a1e=Oo("SUBMIT_COURSE_AND_VERSION"),$Z=Oo("SUBMIT_COURSE_ERROR"),QZ=Oo("SUBMIT_COURSE_SUCCESS"),i1e=Oo("SUBMIT_COURSE_UPDATE"),c1e=Oo("SUBMIT_COURSE_AND_VERSION_UPDATE"),l1e=Oo("UPDATE_VERSION"),ZZ=Oo("UNDO_COURSE_SUBMISSION"),hs=ot()("rise/courseUI/"),YZ=hs("ADD_CATEGORY_TO_COURSE"),XZ=hs("HIDE_ALT_DIALOG"),JZ=hs("HIDE_RESET_LEARNER_DATA_DIALOG"),qZ=hs("HIDE_TAKE_CONTROL_DIALOG"),eY=hs("ON_CATEGORY_SEARCH"),tY=hs("SUBMIT_AND_PUBLISH_COURSE_PROCESSING"),sY=hs("REMOVE_CATEGORY_FROM_COURSE"),nY=hs("SET_ADD_CONTENT_DIALOG"),oY=hs("SET_COMPLETION_PERCENTAGE"),rY=hs("SET_LESSON_OPTIONS_MENU"),aY=hs("SET_NEW_SUBMISSION"),iY=hs("SET_QUIZ_RESULT"),cY=hs("SET_SETTING"),lY=hs("SET_SETTINGS"),dY=hs("SET_TIME_TO_COMPLETE"),uY=hs("SHOW_ALT_DIALOG"),hY=hs("SHOW_RESET_LEARNER_DATA_DIALOG"),mY=hs("SHOW_TAKE_CONTROL_DIALOG"),pY=hs("SUBMIT_COURSE_EDITING"),fY=hs("SUBMIT_COURSE_PROCESSING"),gY=hs("TOGGLE_CUSTOM_FONTS_DIALOG"),d1e=hs("UNDO_COURSE_SUBMISSION"),vY=hs("RESET_UNDO_COURSE_SUBMISSION_PROCESSING"),CY=hs("UNDO_COURSE_SUBMISSION_PROCESSING"),xY=hs("UNSET_QUIZ_REQUIREMENT"),EY=hs("UPDATE_ALT_DIALOG"),TY=hs("UPDATE_CUSTOM_FONTS_DIALOG"),SY=hs("UPDATE_SUBMIT_COURSE_DIALOG"),Cv=(t,e)=>Jt()({[e]:S0()(t)}),Rl="trackingCompletionPercentage",Yu="trackingQuizId",zn={editing:"editing",publishError:"publishError",publishing:"publishing",submitting:"submitting",success:"success",error:"error"},Wm="userToNotify",Gm={altDialog:{blockId:null,itemId:null,lessonId:null,show:!1,text:"",type:null},customFontsDialog:{show:!1,uploadView:!1},overview:{addContentId:null,optionsId:null},resetLearnerDataDialog:{show:!1},takeControlDialog:{lessonId:null,show:!1},submitCourse:{admin:null,categories:[],categorySearch:"",certificateDownload:!0,completion:!0,completionCelebration:!0,hasRequirement:!0,loading:!0,newSubmission:!1,note:null,quizResult:!1,showTimeToComplete:!0,status:zn.editing,timeToComplete:null,[Yu]:null,[Rl]:80,undoSubmission:{loading:!1,status:zn.editing,willBeNewSubmission:!1}}},LY=pn(["submitCourse","categorySearch"]),bY=pn(["overview","addContentId"]),yY=pn(["overview","optionsId"]),IY=pn(["submitCourse",Rl]),NY=pn(["submitCourse",Yu]),jY=pn(["submitCourse","timeToComplete"]),AY=pn(["submitCourse","quizResult"]),RY=(t,e)=>xi()(t,{submitCourse:e}),OY=(t,e)=>Jt()({submitCourse:{categories:Qo()(e)}},t),_a=t=>e=>e[t]!==null&&e[t]!==void 0,xv=Fs()(wt(),We()({newSubmission:!0,[Rl]:80,completion:!0}),Se()(Cv(null,Yu),Cv(80,Rl),bo()("showTimeToComplete",_a("showTimeToComplete")),bo()("certificateDownload",_a("certificateDownload")),bo()("completionCelebration",_a("completionCelebration")),bo()("hasRequirement",_a("hasRequirement")),bo()("isPublic",_a("publicAt")),sn()(_a(Rl),st()("completion",!0)),sn()(_a(Yu),st()("quizResult",!0)))),PY=Se()(Br()("admin"),Br()("profile")),MY=rf()(Rt(),[Se()(PY,Pe()(Wm)),Ps()([Wm])]),DY=(t,e)=>St()(xv,Rt()({loading:!1}),sn()(Pe()(Wm),MY),Br()("submitCourse"),xi()(t))(e),kY=st()("altDialog",{blockId:null,itemId:null,lessonId:null,show:!1,text:"",type:null}),wY=(t,e)=>Jt()({submitCourse:{categories:Sa()(Ue()("id",e))}},t),BY=(t,{setting:e,value:s})=>xi()(t,{submitCourse:{[e]:s}}),_Y=(t,e)=>xi()(t,{submitCourse:e}),UY=(t,e)=>mt()(t,{altDialog:mt()(e,{show:!0})}),Ol=t=>Vm()({submitCourse:{status:t}}),HY=Vm()({submitCourse:{newSubmission:!1,status:zn.success}}),FY=(t,e)=>mt()(t,{customFontsDialog:mt()(e,{show:!t.customFontsDialog.show})}),zY=(t,e)=>mt()(t,{takeControlDialog:mt()(e,{show:!0})}),VY=t=>mt()(t,{takeControlDialog:Gm.takeControlDialog}),WY=(t,e)=>mt()(t,{altDialog:mt()(t.altDialog,e)}),GY=(t,e)=>mt()(t,{customFontsDialog:mt()(t.customFontsDialog,e)}),KY=(t,e)=>mt()(t,{resetLearnerDataDialog:mt()(e,{show:!0})}),$Y=t=>mt()(t,{resetLearnerDataDialog:Gm.resetLearnerDataDialog}),QY=Jt()({submitCourse:{undoSubmission:{loading:Zu(),status:We()(zn.success),willBeNewSubmission:hn()}}}),ZY=Hc()(2,t=>St()(xv,Br()("submitCourse"),xi()(t),Jt()({submitCourse:{undoSubmission:{loading:Zu(),status:We()(zn.success)}}}))),YY=(t,e)=>wt()(e)?QY(t):ZY(t,e),XY=Jt()({submitCourse:{undoSubmission:{status:We()(zn.error),loading:Zu()}}}),JY=Jt()({submitCourse:{undoSubmission:{loading:hn()}}}),qY=Jt()({submitCourse:{undoSubmission:{status:We()(zn.editing)}}}),eX=Jt()({submitCourse:{newSubmission:hn(),undoSubmission:{willBeNewSubmission:Zu(),status:We()(zn.editing)}}}),tX={[aY]:eX,[YZ]:OY,[GZ]:(0,he.onSuccess)(DY),[XZ]:kY,[eY]:LY,[tY]:Ol(zn.publishing),[sY]:wY,[nY]:bY,[oY]:IY,[rY]:yY,[iY]:NY,[xY]:AY,[cY]:BY,[lY]:_Y,[dY]:jY,[uY]:UY,[KZ]:Ol(zn.errorPublishing),[pY]:Ol(zn.editing),[$Z]:Ol(zn.error),[fY]:Ol(zn.submitting),[QZ]:HY,[gY]:FY,[mY]:zY,[hY]:KY,[JZ]:$Y,[qZ]:VY,[EY]:WY,[TY]:GY,[SY]:RY,[ZZ]:(t,e,s)=>s?XY(t):YY(t,e),[vY]:qY,[CY]:JY},sX=(0,he.handle)(Gm,tX),nX=(t,{courseSnapshots:e})=>e,oX=(t,{snapshot:e})=>[e,...t],rX=(t,{snapshot:e})=>t.map(s=>s.id===e.id?e:s),aX={[jo]:(0,he.onSuccess)(nX),[eZ]:(0,he.onSuccess)(oX),[tZ]:(0,he.onSuccess)(rX)},iX=(0,he.handle)([],aX),Km=ot()("rise/cropUI/"),cX=Km("HIDE_CROP_DIALOG"),lX=Km("SHOW_CROP_DIALOG"),dX=Km("SET_CROP_IMAGE"),uX={error:!1,media:null,itemId:null,lessonId:null,showDialog:!1,refs:null},hX=(t,e)=>Rt()({showDialog:!0,...e},t),mX={[cX]:Rt()({showDialog:!1}),[lX]:hX,[dX]:mt()},pX=(0,he.handle)(uX,mX),fX=(t,e)=>e?.defaultLabelSets??{},gX={[jo]:(0,he.onSuccess)(fX)},vX=(0,he.handle)({},gX),Ev=ot()("rise/errorUI/"),CX=Ev("HIDE_ERROR_DIALOG"),xX=Ev("SHOW_ERROR_DIALOG"),EX={action:null,showDialog:!1,tryAgain:!1},TX=(t,{action:e,message:s,title:o,tryAgain:r})=>Rt()({action:e,message:s,showDialog:!0,title:o,tryAgain:r},t),SX={[CX]:Rt()({showDialog:!1}),[xX]:TX},LX=(0,he.handle)(EX,SX),Tv=ot()("rise/externalItems/"),bX=Tv("FETCH_EXTERNAL_ITEMS"),yX=Tv("CLEAR_EXTERNAL_ITEMS"),IX={peek:"video",preso:"video",replay:"video",video:"video",rise:"rise",storyline:"storyline"},NX={fetched:!1,rise:[],storyline:[],video:[]},jX=(t,e)=>V1()([t,{fetched:!0},e]),AX={[bX]:(0,he.onSuccess)(jX),[yX]:t=>V1()([t,{fetched:!1},Wr()(()=>[],IX)])},RX=(0,he.handle)(NX,AX),OX=(0,he.handle)({},{["rise/features/SET_FEATURE_FLAGS"]:(t,e)=>e}),Sv=ot()("rise/jobs/"),h1e=Sv("AI_JOB_UPDATE"),PX=Sv("SET_COURSE_JOBS"),MX={},DX=(t,e)=>e.reduce((s,o)=>(s[o.jobId]=o,s),t),kX={[PX]:DX},wX=(0,he.handle)(MX,kX),Xu=ot()("rise/l10n/"),m1e=Xu("UPDATE_L10N_BATCH"),BX=Xu("UPDATE_L10N_BATCH_FRONTEND"),_X=Xu("UPDATE_LOCALE"),UX=Xu("UPDATE_PENDING_TRANSLATIONS"),HX=(t,{l10n:e,translationUpdates:s})=>({translationUpdates:s,...e}),tr=(t,{translationChanges:e})=>e?.length?Lv(t,{changes:e}):t,FX=(t,{lesson:e})=>tr(t,e),zX=(t,{locale:e,...s})=>{const o=t.locales.findIndex(r=>r.locale===e);return o<0?t:{...t,locales:(0,Gr.set)((0,Gr.lensIndex)(o),{...t.locales[o],...s},t.locales)}},VX=(t,{updates:e})=>({...t,translationUpdates:e}),Lv=(t,{changes:e})=>!e||!e.length?t:e.reduce((o,r)=>{const{action:a,l10nId:c,locale:d,value:l}=r;if(a==="add"||a==="update")return(0,Gr.assocPath)(["translations",d,c],l,o);if(a==="delete"){if(d)return(0,Gr.dissocPath)(["translations",d,c],o)}else if(a==="copy")return(0,Pt._Y)({l10nId:c},{l10n:t}).reduce((u,{locale:h,value:p})=>(0,Gr.assocPath)(["translations",h,r.newL10nId],p,u),o);return o},t),WX={[jo]:(0,he.onSuccess)(HX),[Yg]:tr,[Xg]:tr,[km]:tr,[wm]:tr,[uv]:tr,[hv]:tr,[_m]:tr,[lv]:tr,[dv]:tr,[Um]:FX,[BX]:Lv,[_X]:(0,he.onSuccess)(zX),[UX]:VX},GX=(0,he.handle)({},WX),Pl=ot()("rise/labelSets/"),KX=Pl("CREATE_LABEL_SET"),$X=Pl("DELETE_LABEL_SET"),QX=Pl("IMPORT_LABEL_SET"),ZX=Pl("UPDATE_LABEL_SET"),YX=Pl("UPDATE_LABELS"),Ju=(t,e)=>st()(e.id,e,t),XX=(t,{labelSets:e})=>Nn()(Ju,{},e),bv=(t,e)=>e.id in t?Jt()({[e.id]:Rt()(e)},t):Ju(t,e),JX={[KX]:(0,he.onSuccess)(Ju),[$X]:(0,he.onSuccess)(Wu("id")),[jo]:(0,he.onSuccess)(XX),[QX]:(0,he.onSuccess)(Ju),[ZX]:(0,he.onSuccess)(bv),[YX]:(0,he.onSuccess)(bv)},qX=(0,he.handle)({},JX),$m=St()(Qt()(Pe()("pending")),Tt()("id"),yo()),eJ=Ls()(["duration","lastUpdatedBy","updatedAt"]),tJ=vi()(Se()(wt(),jt()(["settings","revealAnswers"])),Zi()(tm()(["settings","revealAnswers"]),yt.x8)),sJ=sn()(_t.vm,_t.Ww),nJ=Se()(tJ,sJ),yv=(t,e)=>st()(e.id,nJ(e),t),Qm=(t,{lesson:e})=>(0,Ft.Ve)(t,Ps()($m(t)),st()(e.id,e)),oJ=(t,{lessons:e})=>(0,Ft.Ve)(t,Ps()($m(t)),Nn()((s,o)=>st()(o.id,o,s),Vi(),e)),rJ=(t,{lesson:e})=>yv(t,e),aJ=(t,e)=>Qm(t,{lesson:e}),iJ=(t,{lesson:e})=>(0,Ft.Ve)(t,Ps()($m(t)),Wo()(e.id)),qu=(t,{lessons:e})=>Nn()(yv,{},e),cJ=(t,{lesson:e})=>Ml(t,e),lJ=(t,{lessons:e})=>e.reduce(aJ,t),dJ=Ps()(["translationChanges"]),Ml=(t,e)=>Jt()({[e.id]:Rt()(dJ(e))},t),Iv=(t,e)=>(0,Ft.Ve)(t,Fs()(()=>Gh()(new Date(e.updatedAt),new Date(t[e.id]?.updatedAt||0)),We()(t),()=>Jt()({[e.id]:Rt()(e)},t))),uJ=(t,e,s)=>(0,Ft.Ve)(t,Fs()(We()(s),ad()(()=>console.error(s)),Jt()({[e.id]:Rt()(eJ(e))}))),hJ=(t,{lesson:e},s)=>(0,Ft.Ve)(t,Fs()(We()(s),ad()(console.error),Jt()({[e.id]:Rt()(e)}))),mJ=(t,{lesson:e},s)=>s?(console.error(s),t):Jt()({[e.id]:Rt()({updatedAt:e.updatedAt})},t),pJ=(t,e,s)=>{if(s)return console.error(s),t;const{blockId:o,imageKey:r,lessonId:a}=e,c=t[a]?.items,d={media:{image:{key:r,type:"image",useCrushedKey:!1,sourcedFrom:"DEFAULT"}}},l=c?.map(u=>u.id===o?{...u,background:d}:u);return oc()([a,"items"],l,t)},fJ=(t,{lessonId:e,change:s})=>{const o=t[e],r=(0,I0.TJ)(["lessons"],[s],[o]);if(r.discarded.length>0)return console.error(r.discarded[0]),t;const a=r.result[0].items;return Jt()({[e]:st()("items",a)},t)},Nv=(t,e)=>e.lessons.reduce((s,o)=>Jt()({[o.id]:Rt()(o)},s),t),gJ={[FQ]:(0,he.onSuccess)(Un()),[zQ]:Ml,[_m]:(0,he.onSuccess)(Qm),[Um]:rJ,[av]:(0,he.onSuccess)(oJ),[iv]:(0,he.onSuccess)(iJ),[VQ]:Ml,[cv]:(0,he.onSuccess)(Qm),[WQ]:pJ,[jo]:(0,he.onSuccess)(qu),[I$]:cJ,[$g]:lJ,[Dm]:(0,he.onSuccess)(qu),[GQ]:Iv,[lv]:Iv,[dv]:Ml,[$Q]:(0,he.onSuccess)(qu),[uv]:(0,he.onSuccess)(Ml),[hv]:uJ,[Jg]:(0,he.onSuccess)(qu),[QQ]:(0,he.onSuccess)(hJ),[ZQ]:mJ,[Mm]:(0,he.onSuccess)(Nv),[qg]:Nv,[KQ]:fJ},vJ=(0,he.handle)({},gJ),jv=ot()("rise/lessonBlocksListUI/"),CJ=jv("SHOW_LESSON_BLOCKS_LIST_MODAL"),xJ=jv("HIDE_LESSON_BLOCKS_LIST_MODAL"),EJ={isMultiSelect:!1,isOpen:!1,isEditBlockMode:!1},TJ=(t,{isMultiSelect:e,isEditBlockMode:s=!1})=>Rt()({isEditBlockMode:s,isMultiSelect:e,isOpen:!0},t),SJ={[xJ]:Rt()({isMultiSelect:!1,isOpen:!1,isEditBlockMode:!1}),[CJ]:TJ},LJ=(0,he.handle)(EJ,SJ),bJ=ot()("rise-api/libraries/")("FETCH_EXTERNAL_COURSE_LIBRARIES"),yJ=(t,{libraries:e})=>e,IJ={[bJ]:(0,he.onSuccess)(yJ)},NJ=(0,he.handle)([],IJ),Av=ot()("rise/locks/"),jJ=Av("DEL_LOCK"),AJ=Av("PUT_LOCK"),RJ=Ls()(["author","courseId","id","session","ttl","updatedAt"]),OJ=(t,{locks:e})=>Nn()(e0,{},e),e0=(t,e)=>st()(e.id,RJ(e),t),PJ={[jJ]:(0,he.onSuccess)(Wu("id")),[jo]:(0,he.onSuccess)(OJ),[km]:(0,he.onSuccess)(e0),[wm]:(0,he.onSuccess)(e0),[AJ]:(0,he.onSuccess)(e0)},MJ=(0,he.handle)({},PJ),Rv=ot()("rise/notification/"),DJ=Rv("CLEAR"),kJ=Rv("NOTIFY"),wJ=(t=[],e)=>Qo()(st()("key",e.key||`notify-${Date.now()}`,e))(t),BJ=(t,e)=>e&&t?.length?[...t.filter(o=>o.key!==e)]:[],_J={[DJ]:BJ,[kJ]:wJ},UJ=(0,he.handle)(null,_J);var HJ=i(70405),FJ=i.n(HJ);const Ov=ot()("rise/partnerContent/"),zJ=Ov("SET_ALL_PARTNER_CONTENT"),VJ=Ov("SET_PARTNER_CONTENT_TYPES"),WJ=(t,e)=>{const s=Ts()(Ue()("id",e.id),t.content),o=s===-1?Qo()(e):FJ()(s,e);return Jt()({content:o},t)},GJ=(t,e)=>Nn()(WJ,t,e),KJ=(t,e)=>st()("types",e,t),$J={[zJ]:GJ,[VJ]:KJ},QJ=(0,he.handle)({content:[]},$J),io=ot()("rise/question-banks/"),ZJ=io("CLEAR_SEARCH"),YJ=io("CLOSE_ADD_TO_QUESTION_BANK_DIALOG"),XJ=io("CLOSE_DRAW_DIALOG"),Pv=io("FETCH_QUESTION_BANKS"),JJ=io("SEARCH_QUESTION_BANK"),f1e=io("SEARCH_QUESTION_BANKS_CLIENT"),qJ=io("SET_DRAW_DIALOG_VIEW"),eq=io("SET_SEARCH_TERM"),tq=io("SHOW_ADD_TO_QUESTION_BANK_DIALOG"),sq=io("SHOW_DRAW_DIALOG"),g1e=io("UPDATE"),nq=io("UPDATE_CLIENT"),oq={drawDialog:{active:!1,modalView:null,questionBank:null},addToBankDialog:{active:!1},folders:{personal:null,team:null},profiles:null,questionBanks:null,results:null,searchTerm:null},Mv=t=>e=>(0,Ft.Ve)(e,Ts()(Ue()("id",t.id)),s=>tu()(Rt()(t),s,e)),rq=({id:t,questionBank:e})=>St()(Pe()("questionBanks"),Mv({...e,id:t,updatedAt:new Date})),aq=(t,e)=>sn()(jt()(["results","questionBanks"]),St()(jt()(["results","questionBanks"]),Mv({...e,updatedAt:new Date}),Br()("questionBanks"),mt()(t.results))),iq=St()(Ls()(["privateFolders","sharedFolders"]),W1()("privateFolders",Da),W1()("sharedFolders",vl)),cq=St()(Pe()("profiles"),mh()(Pe()("aid"))),Dv=t=>Jt()({[t]:Rt()({active:!1})}),lq=(t,e)=>(0,Ft.Ve)(e,li()({folders:iq,profiles:cq,questionBanks:Pe()("questionBanks")}),mt()(t)),dq=(t,e)=>st()("results",e,t),uq=(t,e)=>(0,Ft.Ve)(t,st()("searchTerm",e),Wo()("results")),kv=t=>(e,s)=>st()(t,{active:!0,...s},e),hq=(t,e)=>(0,Ft.Ve)(t,li()({questionBanks:rq(e),results:aq(t,e)}),mt()(t)),mq=(t,e)=>(0,Ft.Ve)(t,Zi()(Vu()("drawDialog"),Vm()(e))),wv=Rt()({results:null,searchTerm:null}),pq=t=>(0,Ft.Ve)(t,wv,Dv("drawDialog")),fq=(0,he.handle)(oq,{[ZJ]:wv,[YJ]:Dv("addToBankDialog"),[XJ]:pq,[Pv]:(0,he.onSuccess)(lq),[JJ]:dq,[qJ]:mq,[eq]:uq,[tq]:kv("addToBankDialog"),[sq]:kv("drawDialog"),[nq]:hq});var Bv=(t=>(t.COMMENTS="COMMENTS",t))(Bv||{});const gq=Object.values(Bv),_v=Om("riseFrontendSidePanelMode"),Uv=gq.includes(_v),vq={isOpen:Uv,mode:Uv?_v:void 0},Cq=(t,e)=>{const s=e.isOpen??!t.isOpen,o=t.isOpen;return!o&&s?Pm("riseFrontendSidePanelMode",e.mode??t.mode):o&&!s&&OK("riseFrontendSidePanelMode"),t.mode===e.mode||e.mode===void 0?{...t,isOpen:e.isOpen??!t.isOpen}:{...t,isOpen:!0,mode:e.mode}},xq={[Ug]:Cq},Eq=(0,he.handle)(vq,xq),t0=ot()("rise/status/"),Tq=t0("SET_FONTS_LOADED"),Sq=t0("SET_IDLE"),Lq=t0("SET_PARTNER_CONTENT_LOADED"),bq=t0("SET_COURSE_RESTORING"),yq=st()("courseLoaded",!0),Iq=(t,e)=>mt()(t,{idle:e}),Nq=st()("questionBanksLoaded",!0),Hv=t=>st()("courseRestoring",t),jq={[jo]:(0,he.onSuccess)(Se()(yq,Hv(!1))),[bq]:Hv(!0),[Tq]:st()("fontsLoaded",!0),[Sq]:Iq,[Lq]:st()("partnerContentLoaded",!0),[Pv]:(0,he.onSuccess)(Nq)},Aq={courseLoaded:!1,fontsLoaded:!1,idle:!1,partnerContentLoaded:!1,questionBanksLoaded:!1,courseRestoring:!1},Rq=(0,he.handle)(Aq,jq),s0=ot()("rise/statusTray/"),Oq=s0("INIT_JOBS"),Pq=s0("FINISH_JOB"),Mq=s0("FAIL_JOB"),Dq=s0("CLEAR_JOBS"),kq=t=>t.some(e=>e.status==="loading"),wq=t=>t.some(e=>e.status==="error"),Fv=t=>kq(t)?"loading":wq(t)?"error":"success",zv={title:null,status:null,jobs:[],initTimestamp:null},Bq=(t,{title:e,jobs:s})=>({title:e,status:"loading",jobs:s,initTimestamp:Date.now()}),_q=(t,{id:e,url:s})=>{const o=t.jobs.map(r=>r.id===e?{...r,status:"success",url:s}:r);return{...t,status:Fv(o),jobs:o}},Uq=(t,{id:e,error:s})=>{const o=t.jobs.map(r=>r.id===e?{...r,status:"error",error:s}:r);return{...t,status:Fv(o),jobs:o}},Hq={[Oq]:Bq,[Pq]:_q,[Mq]:Uq,[Dq]:()=>zv},Fq=(0,he.handle)(zv,Hq),Vv=ot()("rise/storyline/"),zq=Vv("CLOSE_STORIES"),Vq=Vv("OPEN_STORIES"),Wq={[zq]:st()("isVisible",!1),[Vq]:mt()},Gq=(0,he.handle)({isVisible:!1},Wq),Kq=(t,{tenant:e})=>mt()(e||{},t),$q={[jo]:(0,he.onSuccess)(Kq)},Qq=(0,he.handle)({},$q),Zq=ot()("rise/time/")("SYNC_CLOCK"),Yq=(t,e)=>st()("delta",e-Date.now()+2e3,t),Xq={[Zq]:Yq},Jq=(0,he.handle)({delta:0},Xq),qq="rise/transitionKeys/SET_TRANSITION_KEY";function eee(t,e){return st()(e,rt()(e),t)}const tee=(0,he.handle)({},{[qq]:eee}),Is=ot()("rise/uploads/"),C1e=Is("CANCEL_JOB"),x1e=Is("CANCEL_JOB_SEND"),see=Is("CANCEL_UPLOAD"),E1e=Is("CHECK_STATUS"),T1e=Is("CHECK_STATUS_SEND"),Wv=Is("CLEAR_UPLOAD"),S1e=Is("CROP_IMAGE"),nee=Is("CROPPING"),L1e=Is("CRUSH_IMAGE"),b1e=Is("CRUSH_IMAGE_SEND"),oee=Is("CRUSHING"),Gv=Is("END_UPLOAD"),Kv=Is("ERROR_UPLOAD"),y1e=Is("GET_YURL"),I1e=Is("GET_YURL_SEND"),ree=Is("PROCESSING"),aee=Is("REPLAY_UPLOADS"),N1e=Is("RESOLVE_ASSET"),j1e=Is("SELECT_STOCK_PHOTO"),A1e=Is("SELECT_STOCK_PHOTO_SEND"),iee=Is("START_UPLOAD"),cee=Is("TRANSCODE_ASSET"),R1e=Is("TRANSCODE_ASSET_SEND"),$v=Is("UPDATE_UPLOAD");var lee=(t=>(t.FORMAT="FORMAT",t.LESSON_MISMATCH="LESSON_MISMATCH",t.COURSE_MISMATCH="COURSE_MISMATCH",t))(lee||{});const dee={jobs:{}},uee=(0,he.handle)(dee,{[Dm]:pee,[$v]:hee,[Wv]:mee,[Kv]:gee,[Gv]:fee});function hee(t,{id:e,data:s}){return/\.((xliff)|(xlf)|(xml))$/.test(s?.filename)?oc()(["jobs",e],{status:"pending"},t):t}function mee(t){return Wo()("importError",t)}function pee(t,e){return st()("importError",e.error?e:void 0,t)}function fee(t,{id:e}){return t.jobs[e]==null?t:oc()(["jobs",e],{status:"complete"},t)}function gee(t,{id:e}){return t.jobs[e]==null?t:oc()(["jobs",e],{status:"error"},t)}const vee=(t,e)=>({...t,[e.id]:e}),Zm=(t,e)=>{const s=e.fonts?.reduce(vee,{});return{...t,[e.id]:{...e,fonts:s}}},Cee=(t,{typefaces:e})=>e.reduce(Zm,{}),xee={[YQ]:(0,he.onSuccess)(Zm),[mv]:(0,he.onSuccess)(Wu("id")),[pv]:(0,he.onSuccess)(Cee),[XQ]:(0,he.onSuccess)(Zm)},Eee=(0,he.handle)({},xee),Tee="rise/ui/SET_SPARKLE_BLOCK",See="rise/ui/UNSET_SPARKLE_BLOCK",Lee={sparkleBlocks:[]},bee=(0,he.handle)(Lee,{[Tee]:yee,[See]:Iee});function yee(t,e){const s=new Set(t.sparkleBlocks);return s.add(e),{...t,sparkleBlocks:Array.from(s)}}function Iee(t,e){const s=new Set(t.sparkleBlocks);return s.delete(e),{...t,sparkleBlocks:Array.from(s)}}const Qv={progress:0,status:"uploading"},n0=st()("status"),Nee=(t,{id:e})=>Jt()({[e]:n0("canceled")},t),jee=(t,{id:e,status:s})=>st()(e,{id:e,progress:100,status:s},t),Aee=(t,{id:e})=>Jt()({[e]:n0("crushing")},t),Ree=(t,e)=>Jt()({[e.id]:Se()(Rt()(e),n0("complete"))},t),Oee=(t,{data:e})=>st()(e.id,{data:e,id:e.id,status:"errored"},t),Pee=(t,{id:e})=>Jt()({[e]:n0("processing")},t),Mee=(t,e)=>{const s=e.filter(o=>o.uploadId&&!["COMPLETE","CANCELED","ERROR"].includes(o.state));return{...t,...s.reduce((o,r)=>{const{uploadId:a,jobId:c,metadata:d}=r;return{...o,[a]:{id:a,jobId:c,status:"processing",metadata:d}}},{})}},Dee=(t,{id:e,mediaType:s})=>st()(e,Rt()({id:e,mediaType:s},Qv),t),kee=(t,{id:e,jobId:s})=>oc()([e,"jobId"],s,t),wee=(t,{id:e,data:s},o)=>o?Jt()({[e]:Rt()({data:s,status:"errored"})},t):Jt()({[e]:Rt()(s)},t),Bee={[see]:Nee,[Wv]:Eo()(Wo()),[nee]:jee,[oee]:Aee,[Gv]:Ree,[Kv]:Oee,[ree]:Pee,[aee]:Mee,[iee]:Dee,[cee]:(0,he.onSuccess)(kee),[$v]:wee},_ee=(0,he.handle)(Qv,Bee),o0=ot()("rise/user/"),Uee=o0("GET_SESSION"),Hee=o0("GET_STATUS"),Fee=o0("LOAD_PROFILE"),zee=o0("UPDATE_REACH_STATUS"),Vee={author:null,features:{},profile:{},roles:(0,Re.O0)(),session:null,subscription:{}},Wee=(t,{session:e})=>st()("session",e,t),Gee=(t,e)=>{const s={...t.subscription};return s.has_reach=e,{...t,subscription:s}},Kee={[Uee]:Wee,[Hee]:(0,he.onSuccess)(mt()),[Fee]:mt(),[zee]:Gee},$ee=(0,he.handle)(Vee,Kee),Qee=(0,Hs.HY)({accounts:JW,ai:WG,aiImageGenUI:nK,assetManager:uK,blockTemplates:NK,blockTemplateUI:o$,bridgePublish:x$,bulkExport:b$,businessContent:P$,captionsUI:_$,categories:H$,changesets:G$,collaborators:mQ,collaboratorsUI:IQ,connection:jQ,contentLibrary:PQ,copyLessonUI:HQ,course:uZ,courseCopies:gZ,courseMedia:SZ,courseReviewItems:MZ,courseTheme:zZ,courseUI:sX,courseSnapshots:iX,cropUI:pX,defaultLabelSets:vX,errorUI:LX,externalItems:RX,features:OX,jobs:wX,l10n:GX,labelSets:qX,lessonBlocksListUI:LJ,lessons:vJ,libraries:NJ,locks:MJ,notification:UJ,partnerContent:QJ,questionBanks:fq,sidePanel:Eq,status:Rq,statusTray:Fq,storyline:Gq,tenant:Qq,time:Jq,transitionKeys:tee,translations:uee,typefaces:Eee,ui:bee,uploads:_ee,user:$ee}),{Provider:O1e,connect:P1e,dispatch:M1e,store:D1e,useDispatch:k1e,useSelector:Zee}=(0,Hs.Nv)(Qee);function Er(t){return t.course}function Yee(){return Zee(t=>Er(t))}function w1e(){return useSelector(t=>t.lessons)}function Xee(t){return Er(t)?.id}function B1e(){return useSelector(t=>Xee(t))}function Jee(t){const e=Er(t);return e.theme?.colorAccent??e.color}function _1e(){return useSelector(t=>Jee(t))}function qee(t){return Er(t)?.type}function U1e(){return useSelector(t=>qee(t))}function ete(t){return Er(t)?.type===COURSE_TYPE_ONE_PAGE}function tte(t){const e=Er(t);return isCourseLocalized(e)}function H1e(){return useSelector(t=>tte(t))}function F1e(){return useSelector(t=>ete(t))}function z1e(t){return Zv(t)?.blockNavigationType}function Zv(t){return Er(t)?.theme}function V1e(){return useSelector(Zv)}function ste(t){return{colors:Er(t)?.theme?.colors}}function W1e(){return useSelector(ste)}function G1e(t){return new Date(Er(t)?.updatedAt??0)}function K1e(t){return t?.course?.labelSetId}var Jr=i(19509);function nte(t){return t?.slidesUI?.slideDirection??Jr.f.UP}function ote(){return(0,X.d4)(t=>nte(t))}function rte(t){return t?.slidesUI?.exitingSlideOffset??0}function ate(){return(0,X.d4)(t=>rte(t))}const Ua=q("blocks-lesson-slide"),Yv="#fff",ite=["image full","image text overlay","quote background"],Xv=({className:t})=>{const e=qn()||Yv;return(0,n.jsx)("div",{className:t,style:{background:e}})},cte=({block:t})=>(0,n.jsx)(c1,{block:t,children:(0,n.jsx)(Xv,{className:Ua("background-top")})}),lte=({block:t})=>(0,n.jsx)(c1,{block:t,children:(0,n.jsx)(Xv,{className:Ua("background-bottom")})});function dte(t,e){const s=e.blocks?.length??1,o=s==1,r=s==2,a=e.blocks?.[0],c=e.blocks?.find(P=>P.settings.backgroundType===O.xj.IMAGE),d=t.settings.backgroundType===O.xj.IMAGE,l=t.id===a?.id,u=t.family==="multimedia",h=t.family==="buttons",f=t.variant==="accordion"&&document.querySelector(`[data-block-id="${t.id}"] [data-accordion-status="closed"]`)!=null,g=document.querySelector(`[data-block-id="${t.id}"] [data-block-text]`)?.clientHeight>300,v=jU(t.family,t.variant)||g,C=document.querySelector("[data-continue-sr]")!=null,E=!v&&r&&C&&document.querySelector("[data-continue-btn]")==null,L=o&&d&&!E,x=d&&!E&&!v,S=u||h;return Ua("connected-blocks",{"min-half-height":c&&(r&&!E&&!v||f||x),"full-height":E||L,"top-block":l&&!o&&!v&&!S,"top-block-centered":l&&!o&&S})}const ute=({hasTransitioned:t,onContinue:e,prefersKeyboardNavigation:s,previewType:o,slide:r,transitionState:a},c)=>{const d=Yee(),l=Go(),u=(0,ze.useLabelsMap)(),h=S1(),p=De(l),f=!0,{animateBlockEntrance:g,color:v,id:C,title:E,enableVideoPlaybackSpeed:L,publishedAt:x,tenantId:S}=d;(0,m.useImperativeHandle)(c,()=>b.current);const b=(0,m.useRef)(),N=ote(),I=ate(),j=`${a}-${N}`,R=Ua("wrapper",{exiting:a==="exiting"}),{blocks:P,lastBlock:B}=r,_=(0,m.useCallback)(nt=>{nt===B?.id&&e()},[B,e]),k=Ua("inner",{[j]:!0}),J=Ua("lesson",{slides:f}).toString(),Z=r.blocks.length==1,{settings:G,type:Y,variant:Ee}=r.blocks?.[0]??{},fe=Z&&G.backgroundType===O.xj.IMAGE,oe=Z&&!fe&&on()(`${Y} ${Ee}`,ite),we=oe||fe,Ae=r.blocks?.[0],_e=r.blocks?.[r.blocks.length-1],Qe=Ae?.settings?.backgroundType!==O.xj.IMAGE,pt=_e?.settings?.backgroundType!==O.xj.IMAGE,ls=Ua("full-width-image",{legacy:oe,background:fe});return(0,n.jsx)("div",{className:R,style:{top:I},children:(0,n.jsxs)("div",{className:k,children:[Qe&&(0,n.jsx)(cte,{block:Ae}),pt&&(0,n.jsx)(lte,{block:_e}),(0,n.jsx)("div",{className:J,ref:b,children:P.map((nt,Ce)=>{const Ne=Z?!1:O5({blocks:r.blocks,lessonProgress:p,currentBlockIndex:Ce}),Ke=we?ls:dte(nt,r);return(0,n.jsx)(A5,{animateBlockEntrance:g,block:nt,className:Ke,color:v,courseId:C,courseTitle:E,defaultBackgroundColor:Yv,enableVideoPlaybackSpeed:L,hideBlock:Ne,index:Ce,isFirstLesson:!0,isOnlyBlockInStep:Z,labels:u,lessonId:l,lessonProgress:p,loadMedia:t,onContinue:_,partnerContent:h,prefersKeyboardNavigation:s,previewType:o,publishedAt:x,tenantId:S},nt.blockId)})})]})})},hte=(0,m.forwardRef)(ute);var mte=i(37520),pte=i.n(mte),Jv=i(72209);const qv=q("blocks-slide-indicator-tooltip"),fte=({disabled:t,left:e,text:s,top:o,visible:r},a)=>{let c=(0,n.jsx)("span",{"aria-hidden":"true",children:s});return t&&(c=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(n4,{className:qv("icon")}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,n.jsx)("div",{"aria-hidden":!r,className:qv("wrapper",{disabled:t,visible:r}),ref:a,role:"tooltip",style:{left:e,top:o},children:c})},eC=(0,m.forwardRef)(fte);eC.propTypes={disabled:A().bool.isRequired,left:A().number,text:A().string.isRequired,top:A().number,visible:A().bool.isRequired};const gte=eC;function vte(t){const e=(0,m.useRef)();return e.current||=t(),e}const r0=q("blocks-slide-indicator"),Cte=({active:t,blockNavigationStyle:e,disabled:s,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:c},d)=>{const{prefersKeyboardNavigation:l}=Bp()??{},[u,h]=(0,m.useState)(!1),[p,f]=(0,m.useState)(),g=(0,m.useRef)(),v=(0,m.useRef)(),C=(0,m.useRef)(),E=e===O.Dw.NUMBERS,L=c+1,x=`${L} / ${o}`,S=vte(()=>document.getElementById("portal")),b=(0,m.useCallback)(()=>{if(g.current&&v.current){const Y=g.current.getBoundingClientRect(),Ee=v.current.getBoundingClientRect(),fe=Y.left-Ee.width-18,oe=Math.round(Y.top-Ee.height/2+Y.height/2);f({left:fe,top:oe})}},[]),N=(0,m.useCallback)(()=>{C.current=setTimeout(()=>{b(),h(!0)},300)},[b]),I=(0,m.useCallback)(()=>{clearTimeout(C.current),h(!1)},[]),j=(0,m.useCallback)(()=>{a(c)},[a,c]),R=(0,m.useCallback)(Y=>{yn(Y)&&h(!1),r(Y)},[r]),P=(0,m.useCallback)(()=>{N()},[N]),B=(0,n.jsx)(gte,{disabled:s,left:p?.left,ref:v,text:x,top:p?.top,visible:u}),_=r0("button",{active:t,disabled:s,numbers:E}),k=r0("wrapper"),J=r0("circle",{active:t,disabled:s}),Z=r0("number",{active:t,disabled:s}),G=E?(0,n.jsx)("span",{"aria-hidden":"true",className:Z,children:L}):(0,n.jsx)(c2,{className:J});return(0,n.jsxs)("div",{className:k,ref:d,children:[(0,n.jsxs)("button",{"aria-disabled":s,className:_,"data-control":"",onBlur:I,onClick:s?void 0:j,onFocus:l?P:void 0,onMouseEnter:N,onMouseLeave:I,onKeyDown:R,ref:g,tabIndex:t?0:-1,type:"button",children:[G,(0,n.jsx)("span",{className:"visually-hidden-always",children:x}),t&&(0,n.jsx)("span",{className:"visually-hidden-always",children:"(current)"}),s&&(0,n.jsx)("span",{className:"visually-hidden-always",children:"(disabled until content is completed)"})]}),(0,Yn.createPortal)(B,S.current)]})},xte=(0,m.forwardRef)(Cte),Ha=q("blocks-slide-controls"),tC=38,Ete=8,Tte=t=>{const{activeSlideIndex:e,blockNavigationStyle:s,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:c,previewType:d}=t,l=(0,m.useRef)(),u=(0,m.useRef)(),[h,p]=(0,m.useState)(!1),[f,g]=(0,m.useState)(!1),v=(0,m.useCallback)(x=>{let S=!1,b=-1;if(Li(x)||_r(x)){if(e-1>=0)b=e-1;else{r();return}S=!0}else bi(x)||Ur(x)?(e+1<=o-1&&(b=e+1),S=!0):Ox(x)?(b=0,S=!0):Rx(x)&&(b=o-1,c[b]&&(b=c.findLastIndex(N=>!N)),S=!0);b>=0&&!c[b]&&a(b),S&&(x.stopPropagation(),x.preventDefault())},[e,o,r,a,c]);(0,m.useEffect)(()=>{const x=l.current,S=u.current;if(x&&S){const b=x.getBoundingClientRect(),N=S.getBoundingClientRect(),I=b.bottom-tC,j=b.top+tC;N.bottom>I?x.scrollBy({top:N.bottom-I,left:0,behavior:"smooth"}):N.top<j&&x.scrollBy({top:N.top-j,left:0,behavior:"smooth"})}},[e]);const C=(0,m.useCallback)(()=>{const x=l.current;x&&(p(x.scrollTop>Ete),g(x.clientHeight+x.scrollTop<x.scrollHeight))},[]);(0,Jv.A)(C);const E=(0,m.useCallback)(au()(C,100),[C]);Ed(l.current,C);const L=Ha({"touch-preview":Fu(d)});return(0,n.jsx)("div",{className:L,children:(0,n.jsx)("div",{className:Ha("page-control-wrapper"),children:(0,n.jsxs)("div",{className:Ha("page-control-inner-wrapper"),children:[(0,n.jsx)("div",{className:Ha("page-control"),onScroll:E,ref:l,children:(0,n.jsx)("div",{className:Ha("slide-dot-wrapper"),children:pte()(x=>{const S=x===e;return(0,n.jsx)(xte,{active:S,disabled:c[x],blockNavigationStyle:s,numberOfSlides:o,onKeyDown:v,onClick:a,ref:S?u:null,slideIndex:x},x)},o)})}),(0,n.jsx)("div",{className:Ha("overlay-top",{visible:h})}),(0,n.jsx)("div",{className:Ha("overlay-bottom",{visible:f})})]})})})},sC=100,Ste=50,Lte=1e3,bte=(t,e,s,o=Lte)=>{const[r,a]=(0,m.useState)(!1),c=(0,m.useRef)(),d=(0,m.useCallback)(()=>{clearTimeout(c.current),c.current=setTimeout(()=>a(!1),o)},[o]),l=(0,m.useCallback)(u=>{const h=Math.abs(u.deltaY);if(r)h<Ste?(clearTimeout(c.current),a(!1)):d();else if(h>sC){const p=u.deltaY>0?s:e;a(!0),d(),p()}},[d,r,s,e]);(0,m.useEffect)(()=>{if(!(!t||!e||!s))return t.addEventListener("wheel",l,{passive:!0}),()=>{clearTimeout(c.current),t?.removeEventListener?.("wheel",l,{passive:!0})}},[s,e,l,t])};var Fa=i(29249);const co=q("lesson-one-page-slides"),yte=q("page-wrap"),nC=100;function oC(t){if(t==null)return!1;const e=t.tagName.toLowerCase(),s=t.getAttribute("type"),o=t.getAttribute("role"),r=t.tabIndex,a=e==="button"||["div","span"].includes(e)&&(o==="button"||r===0),c=e==="input"&&["radio","text"].includes(s)||e==="textarea"||o==="radio",d=["audio","video"].includes(e),l=o==="tab",u=document.querySelector(".quiz-card__interactive")?.contains?.(t)??!1;return a||c||d||l||u}const Ite=t=>(e,s,o)=>R5(e,o.slice(0,-1),t),Nte=(t,e)=>({disabled:s,slides:o},r)=>{const a=St()(Qt()(u=>t[u.id]),ws()(u=>mt()(u,t[u.id])))(r),c=r[r.length-1],d=s||yU(a)||IU(a,e),l={blocks:a,lastBlock:c,disabled:s};return{disabled:d,slides:Qo()(l,o)}},a0=t=>{let e=!1,s=!1;if(t){const{clientHeight:o,scrollHeight:r,scrollTop:a}=t,c=Math.max(0,a),d=r-c;e=d===r,s=d-5<=o}return{isAtTop:e,isAtBottom:s}},jte=/,? +/,Ate=[],Rte=({lessonProgress:t,prefersKeyboardNavigation:e,previewType:s},o)=>{(0,m.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=Je(),c=(0,m.useRef)(),d=(0,m.useRef)(),l=(0,m.useRef)(),u=(0,m.useRef)(),h=(0,m.useRef)(),p=(0,m.useRef)(),f=(0,m.useRef)(),g=(0,m.useRef)(),v=(0,Oi.W)(),C=(0,X.wA)(),[E,L]=(0,m.useState)(0),[x,S]=(0,m.useState)(!0),[b,N]=(0,m.useState)(!1),I=(0,as.A)(x),j=(0,as.A)(b),R=(0,m.useRef)(),P=Js(),B=P?.01:600,_=wg(s),k=_?zC:FC,J=_?UC:_C,Z=_?l4:h2,{lessons:G,...Y}=(0,Me.DX)(),Ee=Y.theme?.blockNavigationStyle||O.Dw.DOTS,fe=G[0],oe=fe?.items||Ate,we=(0,m.useCallback)(()=>{const ns=l.current?.scrollHeight>l.current?.clientHeight,{isAtBottom:Vn}=a0(l.current),Wn=ns&&!x&&!Vn;Wn!=b&&N(Wn)},[b,x]);Ed(c.current,we),(0,m.useLayoutEffect)(we,[x]);const Ae=(0,m.useCallback)(()=>{l.current?.scrollTo({top:0})},[]),_e=(0,m.useMemo)(()=>(0,Ft.Ve)(Xh([],oe,t).map(Ite(t)),Qt()(v3.A),mh()(Pe()("blockId"))),[oe,t]),Qe=(0,m.useCallback)(ns=>{const Vn={disabled:!1,slides:[]},{slides:Wn}=Nn()(Nte(_e,t),Vn,ns);return Wn},[_e,t]),pt=(0,m.useMemo)(()=>(0,Ft.Ve)(oe,pU,Qe),[oe,Qe]),ls=(0,m.useMemo)(()=>Tt()("disabled",pt),[pt]),nt=pt.length,Ce=pt[E],Ne=Fu(s),Ke=Ee!==O.Dw.NONE,He=E===nt-1,dt=t?.isComplete,lt=b||He?!dt||!ye.BI||window.isPublicShare:ls[E+1],Ht=!b&&!He,Wt=He&&!ye.BI,vs=(0,as.A)(Wt),en=b&&!He,Pn=(0,m.useCallback)(Vr()(we,100),[we]);(0,m.useEffect)(()=>{const ns=l.current;return ns?.addEventListener("scroll",Pn,{passive:!0}),()=>ns?.removeEventListener("scroll",Pn,{passive:!0})},[Pn]),(0,m.useEffect)(()=>{document.activeElement===p.current?!j&&b?h.current?.focus({preventScroll:!0}):!vs&&Wt&&f.current?.focus({preventScroll:!0}):document.activeElement===h.current&&j&&!b&&p.current?.focus({preventScroll:!0})},[b,j,vs,I,Wt,x]),(0,KW.A)(()=>{t3(),R.current=setTimeout(()=>{S(!1),l.current?.focus?.()},B+nC)},()=>{clearTimeout(R.current)});const Bs=(0,m.useCallback)(ns=>{const Vn=c.current?.getBoundingClientRect()?.top??0;C((0,Fa.ty)(Vn)),L(ns),Ae()},[C,Ae]),Sn=(0,m.useCallback)(()=>{x||(S(!0),v.push("/"))},[v,x]),lo=Y?.lmsOptions?.disableCoverPage,Sr=(0,m.useCallback)(lo?()=>{C((0,Fa.zP)(Jr.f.DOWN)),Bs(0)}:Sn,[lo,Bs,Sn,C,Fa.zP]),kl=(0,m.useCallback)(()=>{x||(E>0?(C((0,Fa.zP)(Jr.f.DOWN)),Bs(E-1)):Sn())},[Bs,C,E,x,Sn]),ic=(0,m.useCallback)(()=>{x||(He&&ye.BI?v.push("/lessons/progress-summary"):(C((0,Fa.zP)(Jr.f.UP)),Bs(E+1)))},[Bs,C,v,He,E,x]),e2=(0,m.useCallback)(()=>{(E<nt-1||He&&ye.BI)&&ic()},[He,E,nt,ic]),d0=(0,m.useCallback)(()=>{const ns=l.current?.scrollTop??0,Vn=l.current?.clientHeight??0,Wn=P?"instant":"smooth";l.current?.scrollTo({top:ns+Vn,behavior:Wn})},[P]),qr=(0,m.useCallback)(()=>{ic()},[ic]),wl=(0,m.useCallback)(()=>{d0()},[d0]),t2=(0,m.useCallback)(ns=>{if(ns===E||x)return;const Vn=ns<E?Jr.f.DOWN:Jr.f.UP;C((0,Fa.zP)(Vn)),Bs(ns),queueMicrotask(()=>{u.current?.querySelectorAll("[data-control]")?.[ns]?.focus?.()})},[Bs,C,E,x]),s2=(0,m.useCallback)(()=>S(!0),[]),Ns=(0,m.useCallback)(()=>{S(!1),setTimeout(()=>{if(d.current&&u.current?.contains?.(document.activeElement)){const ns=$h()(d.current.innerText,{length:75,separator:jte});a(),r(`Content preview: ${ns}`)}else l.current?.focus?.()},0)},[r,a]),Ln=(0,m.useCallback)(()=>{if(Ne)return;const{isAtTop:ns}=a0(l.current);if(ns){E===0?Sr():kl();return}},[Ne,kl,E,Sr]),za=(0,m.useCallback)(()=>{if(Ne||He&&!ye.BI||lt)return;const{isAtBottom:ns}=a0(l.current);if(ns){qr();return}},[He,lt,Ne,qr]),IC=(0,m.useCallback)(()=>{const{isAtBottom:ns,isAtTop:Vn}=a0(l.current),Wn=document.documentElement.clientWidth===window.innerWidth;return(ns||Vn)&&Wn},[]),zse=(0,m.useCallback)(ns=>{!u.current?.contains?.(document.activeElement)&&!oC(ns.target)&&Ln()},[Ln]),Vse=(0,m.useCallback)(ns=>{!u.current?.contains?.(document.activeElement)&&!oC(ns.target)&&za()},[za]),NC=(0,m.useCallback)(ns=>{const{itemId:Vn}=ns.detail,Wn=oe.findIndex(Gse=>Gse.id===Vn);Wn===-1||Wn===E||(C((0,Fa.zP)(Wn>E?Jr.f.UP:Jr.f.DOWN)),Bs(Wn))},[Bs,C,E,oe]);(0,m.useEffect)(()=>(window.addEventListener(ms,NC),()=>{window.removeEventListener(ms,NC)})),(0,_g.A)("ArrowUp",Un(),zse),(0,_g.A)("ArrowDown",Un(),Vse),bte(l.current,Ln,za,B+nC);const Wse=co("gradient",{visible:b});return(0,n.jsx)("div",{className:co({}),children:(0,n.jsx)("div",{className:yte({transitioning:x}),id:"page-wrap",ref:l,tabIndex:"-1",children:(0,n.jsx)(No,{type:$e.y4,children:(0,n.jsx)(no,{type:$e.y4,children:(0,n.jsx)(oo,{children:(0,n.jsx)(Ta,{children:(0,n.jsxs)("div",{"data-lesson-id":fe?.id,children:[(0,n.jsxs)("div",{"aria-label":"Step controls",className:co("controls",{"touch-preview":Ne}),ref:u,role:"region",children:[(0,n.jsxs)("button",{"aria-hidden":E===0&&lo,"aria-disabled":E===0&&lo,className:co("prev-btn",{"touch-preview":Ne}),onClick:kl,type:"button",children:[(0,n.jsx)(k,{className:co("arrow-icon",{"touch-preview":Ne})}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),Ke&&(0,n.jsx)(Tte,{activeSlideIndex:E,blockNavigationStyle:Ee,numberOfSlides:nt,onGoToCover:Sn,onSlideClick:t2,previewType:s,slideDisabledState:ls}),(0,n.jsxs)("div",{className:co("next-btns"),children:[(0,n.jsxs)("button",{"aria-hidden":!en,"aria-disabled":!en,className:co("page-down-btn",{"touch-preview":Ne}),onClick:en?wl:void 0,ref:h,tabIndex:en?void 0:-1,type:"button",children:[(0,n.jsx)(J,{className:co("arrow-icon",{"touch-preview":Ne})}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!b&&(0,n.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),He&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-hidden":!Ht,"aria-disabled":lt,className:co("next-btn",{"touch-preview":Ne}),onClick:lt?void 0:qr,ref:p,tabIndex:He?-1:void 0,type:"button",children:[(0,n.jsx)(J,{className:co("arrow-icon",{"touch-preview":Ne})}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",lt&&(0,n.jsx)("span",{children:"(disabled until content is completed)"}),He&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-hidden":!Wt,"aria-disabled":!Wt,className:co("restart-btn",{"touch-preview":Ne}),onClick:Wt?Sr:void 0,ref:f,tabIndex:He?void 0:-1,type:"button",children:[(0,n.jsx)(Z,{className:co("restart-icon",{"touch-preview":Ne})}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,n.jsxs)(Uu,{onShouldRecognizeGesture:IC,onSwipeDown:Ln,onSwipeUp:za,children:[(0,n.jsx)("main",{"aria-describedby":"step-counter",ref:d,tabIndex:"0",children:(0,n.jsx)(ys.F,{children:(0,n.jsx)(ys.eB,{mountOnEnter:!0,nodeRef:g,onExited:Ns,onExiting:s2,timeout:B,unmountOnExit:!0,children:ns=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{id:"step-counter",className:"visually-hidden-always",ref:g,children:`Step ${E+1} of ${nt}`}),(0,n.jsx)(hte,{onContinue:e2,prefersKeyboardNavigation:e,previewType:s,ref:c,slide:Ce,transitionState:ns,hasTransitioned:!x})]})},E)})}),(0,n.jsx)("div",{className:Wse})]})]})})})})})})})},Ote=(0,m.forwardRef)(Rte),rC=q("blocks-lesson-restart-button"),Pte=({className:t,onClick:e})=>{const s=rC.mix(t);return(0,n.jsx)("button",{className:s,onClick:e,type:"button",children:(0,n.jsx)(h2,{className:rC("icon")})})},Mte=q("lesson-one-page-scroll"),Dte=({previewType:t,prefersKeyboardNavigation:e,lessonProgress:s})=>{const o=(0,m.useRef)(),{lessons:r,...a}=(0,Me.DX)(),{lmsOptions:c={}}=a,d=(0,Me.d_)(),l=(0,ze.useLabelsMap)(),{match:u}=(0,ke.zy)(),h=(0,Oi.W)(),p=r[0],f=p?.id,g=S1(),v=p?.items||[],C=s?.isComplete&&!ye.BI,E=s?.isComplete&&ye.BI,L=c?.disableCoverPage,x=(0,m.useCallback)(()=>L?o.current?.scrollTo({top:0,behavior:Js()?"instant":"smooth"}):h.push("/"),[h,L]);return(0,n.jsx)("div",{className:Mte(),children:(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,n.jsx)(No,{type:$e.y4,children:(0,n.jsx)(no,{type:"blocks",children:(0,n.jsxs)(er,{children:[(0,n.jsx)(dg,{}),(0,n.jsx)(oo,{children:(0,n.jsx)(Ta,{children:(0,n.jsxs)("div",{"data-lesson-id":p?.id,children:[(0,n.jsx)(P5,{animateBlockEntrance:a.animateBlockEntrance,blocks:v,color:a.color,courseId:a.id,courseTitle:d,enableVideoPlaybackSpeed:a.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:l,lessonId:f,lessonProgress:s,loadMedia:!0,match:u,partnerContent:g,previewType:t,prefersKeyboardNavigation:e,publishedAt:a.publishedAt,tenantId:a.tenantId,type:a.type}),C&&(0,n.jsx)(Pte,{onClick:x}),E&&(0,n.jsx)(fm,{lessonId:f})]})})})]})})})})})},aC=q("microlearning-progress-summary"),kte=q("page-wrap"),wte=({course:t,courseProgress:e,isStepped:s,lesson:o})=>{const r=(0,m.useRef)(),a=(0,m.useRef)(),[c,d]=(0,m.useState)(!1),l=aC("content",{stepped:s,mounted:c}).toString();return(0,Jv.A)(()=>{const u=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:u}),d(!0)}),(0,n.jsxs)("div",{className:kte(),id:"page-wrap",ref:r,children:[(0,n.jsx)(mm,{className:aC("previous").toString(),lessonId:o?.id,ref:a}),(0,n.jsx)(W5,{contentClassName:l,course:t,courseProgress:e})]})},Bte=t=>{const{isProgressSummary:e,courseProgress:s,lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}=t,c=Mt(),d=(0,X.wA)(),u=(0,At.Vu)(c)?.id,h=c?.theme?.blockNavigationType===O.HC.STEPPED;return(0,R1.A)(()=>{e||((0,de.no)(u),d((0,f3.B)(u)))}),e?(0,n.jsx)(wte,{course:c,courseProgress:s,isStepped:h}):h?(0,n.jsx)(Ote,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}):(0,n.jsx)(Dte,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a})},_te=(0,Hs.GF)(),Ute=()=>_te(t=>t.transcriptPanel),Hte=960,iC=q("transcript-panel");function Fte(){const t=(0,X.wA)(),{transcript:e}=Ute(),s=(0,m.useId)(),o=!!e,r=Xs(Hte),[a,c]=(0,m.useState)(0),[d,l]=(0,m.useState)(!1),[u,h]=(0,m.useState)(!1),p=(0,m.useRef)(!1),f=(0,m.useRef)(null),g=(0,m.useRef)(null),v=(0,m.useRef)(null),C=(0,m.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),E=I=>{t(HN({})),I.stopPropagation(),I.preventDefault()},L=(0,m.useCallback)(I=>{const R=C.current.panelHeight,P=performance.now();h(!0);const B=_=>{const k=_-P,J=Math.min(k/300,1),Z=1-Math.pow(1-J,3),G=R+(I-R)*Z;c(G),C.current.panelHeight=G,J<1?requestAnimationFrame(B):(h(!1),l(!1),C.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(B)},[l,h,c]),x=(0,m.useCallback)(I=>{const{startTime:j,startY:R,startHeight:P}=C.current;if(!r||R===null)return;const B=R-(I?.clientY??I?.touches?.[0]?.clientY??0),_=P+B;if(c(_),C.current.panelHeight=_,j!==null){const k=performance.now()-j,J=B/k;C.current.velocity=J}},[r]),S=(0,m.useCallback)(I=>{const{velocity:j}=C.current;if(!j)return;Object.assign(C.current,{startY:null,startHeight:null,startTime:null}),l(!1);const R=window.innerHeight*.66;let P;Math.abs(j)>.5?P=j>0?window.innerHeight:150:P=a>=R?window.innerHeight:150,L(P),I instanceof MouseEvent&&(window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",S))},[L,a,x]),b=(0,m.useCallback)(I=>{!r||g.current.contains(I.target)||f.current.contains(I.target)||(Object.assign(C.current,{startY:I?.clientY??I?.touches?.[0]?.clientY??null,startHeight:v.current?.clientHeight??0,startTime:performance.now()}),l(!0),I.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",x),window.addEventListener("mouseup",S)))},[x,S,r,l]);(0,m.useEffect)(()=>{let I;const j=()=>{v?.current?.style&&(v.current.style.transition="none",v.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(B=>{B.style.transition="none"}))},R=()=>{clearTimeout(I),I=setTimeout(()=>{v?.current?.style&&(v.current.style.transition="",v.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(B=>{B.style.transition=""}))},200)};return window.addEventListener("resize",j),window.addEventListener("resize",R),()=>{window.removeEventListener("resize",j),window.removeEventListener("resize",R),clearTimeout(I)}},[]),(0,m.useEffect)(()=>{o&&!p.current&&v.current?v.current.focus():!o&&p.current&&c(0),p.current=o},[o]);const N={role:"button",tabIndex:0,onMouseDown:b,onTouchStart:b,onTouchEnd:S,onTouchMove:x};return(0,n.jsx)(ys.B1,{unmountOnExit:!0,in:o,timeout:300,classNames:"transcript-panel",nodeRef:v,children:(0,n.jsxs)("aside",{ref:v,className:M()(iC({isOpen:o,isAnimatingMobileSwipe:u,isDragging:d})),style:r&&o?{height:`${a/10}rem`,minHeight:a>0?"33vh":void 0}:{},role:"region","aria-labelledby":s,"aria-hidden":!o,tabIndex:-1,"aria-live":"polite",children:[(0,n.jsxs)("header",{...r?N:{},children:[(0,n.jsx)("h3",{ref:f,id:s,children:"Audio transcript"}),(0,n.jsx)(Ia.ZH,{ref:g,className:iC("close-button"),icon:(0,n.jsx)(Lt,{name:"close"}),layout:"icon",variant:"tertiary",onClick:E,"aria-label":"Close audio transcript panel"})]}),(0,n.jsx)("section",{children:e})]})})}const i0=Hc()(2,t=>t==="progress-summary"?We()(1/0):QI(t)),zte=Sa()(Ue()("type","section")),Vte=({course:t,search:e})=>St()(st()("lessons",e.lessons),st()("lessonsOnly",zte(e.lessons)))(t);class Wte extends ie().Component{static propTypes={children:A().node,course:A().object,courseProgress:A().object,labels:Qi.isRequired,lessons:A().array,location:A().object.isRequired,match:A().object.isRequired};static get defaultProps(){return{course:{},lessons:[]}}constructor(e){super(e);const{lessons:s,match:{params:o}}=e;this.state={activeSections:s.filter(r=>r.type==="section").map(r=>r.id),isProgressSummary:ye.BI&&o.id==="progress-summary",isPreviewLesson:o.mode==="preview-lesson",lastScreen:null,menuDisabled:!1,selectedIndex:i0(o.id)(s)},this.root=window,this.handleNavHover=this.handleNavHover.bind(this),this.handleNavigate=this.handleNavigate.bind(this),this.getNavigateDirection=this.getNavigateDirection.bind(this),this.handleNavigateTransitionEnd=this.handleNavigateTransitionEnd.bind(this),this.handleStorylineFullscreen=this.handleStorylineFullscreen.bind(this),this.handleExpiredQuiz=this.handleExpiredQuiz.bind(this),this.getLessonProgress=this.getLessonProgress.bind(this)}UNSAFE_componentWillReceiveProps(e){if(e.match.params.id!==this.props.match.params.id){const s=ot()($I(e.lessons,e.match.params.id),this.state.activeSections),o=ye.BI&&e.match.params.id==="progress-summary";this.setState({activeSections:s,isProgressSummary:o})}}componentWillUnmount(){this.root.removeEventListener("resize",this.resizeRef)}getNavigateDirection(){const{match:{params:e}}=this.props,{selectedIndex:s}=this.state;return i0(e.id)(this.props.lessons)<s?"page-transition-back":"page-transition"}handleFocusNewPage=()=>{const{course:e}=this.props;e.type===$e.y4||document.querySelector("h1")?.focus({preventScroll:!0})};handleNavigate(e){const{lessons:s}=this.props,{isProgressSummary:o,selectedIndex:r}=this.state,a=i0(e)(s);o?this.forwardTransition=!1:e==="progress-summary"?this.forwardTransition=!0:this.forwardTransition=r<a,this.setState({selectedIndex:a})}handleNavigateTransitionEnd(){const{match:{params:e}}=this.props,s=i0(e.id)(this.props.lessons);this.setState({selectedIndex:s})}handleStorylineFullscreen(e){this.setState({menuDisabled:e,menuIsOpen:!e})}handleNavHover(e){this.setState({isRestrictedNavHovering:e})}getLessonProgress(){const{courseProgress:e,match:s}=this.props;return e?.lessons?.[s.params.id]||{}}isCurrentItem(e,s){return e.type==="DRAW_FROM_QUESTION_BANK"?e.id===s.id.split("-")[0]:e.id===s.id}handleExpiredQuiz(){const{getL10nRecursive:e,lesson:s,advanceQuizLessonToEnd:o,submitQuizAnswer:r}=this.props,a=s?.settings||{},{passToContinue:c}=a,d=tt()(-1,"retryCount",a),l=this.getLessonProgress(),u=Object.values(l?.items)?.filter(v=>v.isComplete!==!0),h=tt()(0,"retryAttempts",l),p=parseInt(d,10),f=parseInt(h,10),g=p===f;u.map(v=>{let C=s?.items?.find(L=>this.isCurrentItem(L,v));if(C.type==="DRAW_FROM_QUESTION_BANK"){const L=v.id.split("-")[1];C=C.questions.find(x=>x.id===L)}const E=e({duration:0,id:s.id,isCorrect:!1,isUnfinished:!0,item:C,itemProgress:v,retryAttempts:h,title:s.title});(0,de.bb)(E),r({finalRetryAttempt:g,isCorrect:!1,itemId:v.id,lessonId:s.id,passToContinue:c})}),o(s.id)}render(){const{course:e,courseProgress:s,didNavigate:o,isEntering:r,isExiting:a,labels:c,isMobileHeader:d,lessons:l,lesson:u,location:h,match:p,partnerContent:f,previewType:g,search:v,sessionPreferences:C,setQuizLessonTimeRemaining:E,themeId:L}=this.props,{isPreviewLesson:x,isProgressSummary:S,isRestrictedNavHovering:b}=this.state,N=Vte({course:e,search:v}),I=e.type===$e.y4,R=I&&e.theme.blockNavigationType===O.HC.STEPPED?"-slide":"",P=`lesson--entering${R}`,B=`lesson--exiting${R}`,_=M()("lesson",{[P]:r,[B]:a,"lesson--preview":x}),k=this.getLessonProgress(),J={allowRestrictedTooltip:!b,course:v.active&&!Yt()(v.lessons)?N:e,courseProgress:s,didNavigate:o,handleNavigate:this.handleNavigate,handleStorylineFullscreen:this.handleStorylineFullscreen,isMobileHeader:d,isProgressSummary:S,labels:c,lessonProgress:k,match:p,navigateDirection:this.getNavigateDirection,onPageReady:this.handleFocusNewPage,onNavMouse:this.handleNavHover,onNavigateTransitionEnd:this.handleNavigateTransitionEnd,partnerContent:f,previewType:g,sessionPreferences:C,themeId:L},Z=S?{courseProgress:s,lessons:l}:{},G=u?.settings?.timer;return(0,n.jsxs)(PF,{currentLessonId:s.currentLesson,handleExpiredQuiz:this.handleExpiredQuiz,isTimedQuiz:G,courseProgress:s,setQuizLessonTimeRemaining:E,timerDuration:u?.settings?.timerDuration,children:[(0,n.jsxs)("div",{className:"page-lesson-wrap",children:[!I&&(0,n.jsx)(uT,{}),(0,n.jsxs)("div",{className:"page-lesson",children:[(0,n.jsx)(Fte,{}),(0,n.jsx)(ej,{mode:"readonly",children:(0,n.jsx)("div",{className:_,"data-lesson":!0,ref:Y=>this.node=Y,children:(0,n.jsx)("div",{className:"lesson__content",children:(0,n.jsx)("div",{className:"page-view page-view--visible",children:(0,n.jsx)(GW,{isPreviewLesson:x,children:I?(0,n.jsx)(Bte,{courseProgress:s,isProgressSummary:S,lessonProgress:k,prefersKeyboardNavigation:C.prefersKeyboardNavigation,previewType:g}):(0,n.jsx)(TV,{isPreviewLesson:x,children:(0,n.jsx)(Yz,{...J,...Z},h.pathname)})})})})})})]})]}),(0,n.jsx)(L1,{})]})}}function Gte(){const t=vo();return(e,s)=>{const o=jt()(["match","params","id"],s);return{lesson:t(o,e)}}}const Kte={advanceQuizLessonToEnd:Qs.YC,submitQuizAnswer:Qs.kK,setQuizLessonTimeRemaining:Qs.hy},$te=Se()((0,X.Ng)(null,Kte),(0,X.iE)(Gte),O0(480,"isMobileHeader","Mobile"),of)(Wte),Ym=t=>{window.parent.postMessage({type:"preview:lessonChange",data:t})},Qte=H5($te);class Zte extends ie().Component{constructor(e){super(e),this.state={isEntering:!1,isExiting:!1}}displayFlex(e){e.style.display="flex"}componentDidMount(){const e=document.querySelector(".page__content");e&&e.classList.add("page__content--appear");const s=this.props.match.params.id;Ym(s)}componentDidUpdate(e){const s=this.props.match.params.id,o=e.match.params.id;s!==o&&Ym(s)}componentDidEnter(){this.setState({isEntering:!1})}componentWillEnter(e){this.setState({isEntering:!0},()=>{this.willEnterTimeout=setTimeout(e,O.WQ)})}componentWillExit(e){this.setState({isExiting:!0},()=>{this.willExitTimeout=setTimeout(e,O.WQ)}),Ym(null)}componentWillUnmount(){clearTimeout(this.willEnterTimeout),clearTimeout(this.willExitTimeout),clearTimeout(this.navButtonTimeout)}render(){const{isEntering:e,isExiting:s}=this.state;return(0,n.jsx)(rU,{isLessonEntering:e,isLessonExiting:s,children:(0,n.jsx)(Qte,{isEntering:e,isExiting:s,...this.props})})}}const Xm=Zte;var Yte=i(59288);class Xte extends Yte.Component{render(){return(0,n.jsx)(ke.rd,{to:`${this.props.to}`})}}const Jte=t=>{const{location:e,course:s}=t,{path:o}=(0,ke.W5)(),r=e.pathname.split("/")[1],{lmsOptions:a={}}=s,c=a?.disableCoverPage,d=s.lessonsOnly[0]?.id;return(0,n.jsx)(ys.F,{component:"div",className:"transition-group",children:(0,n.jsx)(T1,{children:(0,n.jsxs)(h3,{location:e,children:[(0,n.jsx)(ya,{exact:!0,path:"/lessons/:id",component:Xm,childProps:t}),(0,n.jsx)(ya,{path:"/lessons/:id/:mode",component:Xm,childProps:t}),c?(0,n.jsx)(Xte,{to:`${o}lessons/${d}`}):(0,n.jsx)(ya,{exact:!0,path:"/",component:p3,childProps:t}),(0,n.jsx)(ya,{exact:!0,path:"/:mode",component:p3,childProps:t})]})},r)})},Jm=q("one-page-cover-info");function cC({htmlIdTitle:t}){const e=ci("title");return(0,n.jsxs)("div",{className:Jm(),"data-change-path":e,children:[(0,n.jsx)(lg,{className:Jm("title").toString(),htmlId:t}),(0,n.jsx)(ig,{className:Jm("authors").toString()})]})}cC.propTypes={htmlIdTitle:A().string.isRequired};const qte=Dt("OnePageCoverInfo",cC);function ese(t){const e=(0,a1.A)(({forwardedRef:o,...r})=>(0,n.jsx)(t,{...r,ref:o})),s=(0,m.forwardRef)((o,r)=>(0,n.jsx)(e,{...o,forwardedRef:r}));return s.displayName=`withRouterRef(${t.displayName||t.name})`,s}const c0=q("one-page-cover"),tse=q("cover");class sse extends m.Component{constructor(e){super(e),this.state={entering:!1,exiting:!1},this.refLink=(0,m.createRef)(),this.refMain=(0,m.createRef)()}componentDidMount(){t3(),this.refMain.current?.focus?.(),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("wheel",this.onWheel,{passive:!0})}componentDidEnter(){this.setState({entering:!1}),this.refMain.current?.focus?.()}componentWillEnter(e){this.setState({entering:!0},()=>{const s=Js()?.01:O.WQ;this.willEnterTimeout=setTimeout(e,s)})}componentWillExit(e){this.setState({exiting:!0},()=>{const s=Js()?.01:O.WQ;this.willExitTimeout=setTimeout(e,s)})}componentWillUnmount(){clearTimeout(this.willEnterTimeout),clearTimeout(this.willExitTimeout),document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("wheel",this.onWheel,{passive:!0})}getLessonPath=()=>{const e=this.props.lesson?.id;return e?(0,_t.p1)(e):null};transitionToLessonContent=()=>{const e=this.getLessonPath();e!=null&&this.props.history.push(e)};onClickStartArea=e=>{this.refLink.current?.contains?.(e.target)||this.props.history.push(this.getLessonPath())};onKeyUp=e=>{const{entering:s,exiting:o}=this.state;s||o||(e.key==="ArrowDown"||e.key==="ArrowRight")&&(document.removeEventListener("keyup",this.onKeyUp),this.transitionToLessonContent())};onWheel=e=>{const{entering:s,exiting:o}=this.state;Fu(this.props.previewType)||s||o||e.deltaY>sC&&(document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.transitionToLessonContent())};render(){const{props:{course:e},state:{entering:s,exiting:o}}=this,r=e?.coverPageType===O.BL.WHITE,a=e?.coverPageType===O.BL.IMAGE,c=e?.coverPageType===O.BL.ACCENT,d=e?.theme?.blockNavigationType===O.HC.STEPPED,l=e?.theme?.coverImageColor??O.df.DARK,u="title",h=d?"slide":"fade",p=`entering-${h}`,f=`exiting-${h}`,v=`overlay-${l?.toLowerCase()}`,C=c0("wrapper",{[p]:s,[f]:o,[v]:a,accent:c,image:a,white:r}).mix(tse("header-content"));return(0,n.jsxs)(Uu,{onSwipeUp:this.transitionToLessonContent,children:[(0,n.jsxs)("main",{className:C,ref:this.refMain,tabIndex:"-1",children:[(0,n.jsx)(qte,{htmlIdTitle:u}),d&&(0,n.jsx)("div",{className:"visually-hidden-always",children:"To quickly navigate between steps, use the up and down arrow keys or the step controls region found on subsequent steps."}),(0,n.jsx)("div",{className:c0("start-wrapper"),onClick:this.onClickStartArea,children:(0,n.jsx)(Qn,{"aria-label":"Start",className:c0("start-link"),ref:this.refLink,to:this.getLessonPath(),children:(0,n.jsx)(Lt,{className:c0("start-icon"),name:"arrow-down"})})}),a&&(0,n.jsx)(_0,{})]}),(0,n.jsx)(L1,{})]})}}function nse(t){const e=Ut(t),s=(0,At.Vu)(e);return{course:e,lesson:s}}const lC=Se()(ese,(0,X.Ng)(nse,null,null,{forwardRef:!0}))(sse);var ose=i(59288);class dC extends ose.Component{render(){return(0,n.jsx)(ke.rd,{to:`${this.props.to}`})}}const rse=t=>{const{location:e,course:s}=t,o=e.pathname.split("/")[1],a={history:(0,Oi.W)(),...t},{path:c}=(0,ke.W5)(),{lmsOptions:d={}}=s,l=d?.disableCoverPage,u=s.lessonsOnly[0].id;return(0,n.jsx)(ys.F,{component:"div",className:"transition-group",children:(0,n.jsx)(T1,{children:(0,n.jsxs)(h3,{location:e,children:[(0,n.jsx)(ya,{exact:!0,path:"/lessons/:id",component:Xm,childProps:a}),l?(0,n.jsx)(dC,{to:`${c}lessons/${u}`}):(0,n.jsx)(ya,{exact:!0,path:"/",component:lC}),l?(0,n.jsx)(dC,{to:`${c}lessons/${u}/`}):(0,n.jsx)(ya,{exact:!0,path:"/:mode",component:lC})]})},o)})};class ase extends ie().Component{constructor(e){super(e),this.passwordRef=(0,m.createRef)(),this.state={failAttempt:!1,shouldShake:!1}}static propTypes={onSubmit:A().func.isRequired,failAttempt:A().bool.isRequired};componentDidMount(){this.dialog.addEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}UNSAFE_componentWillReceiveProps({failAttempt:e}){const{shouldShake:s}=this.state;this.setState({failAttempt:e&&s})}componentWillUnmount(){this.dialog.removeEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}handleRemoveAnimationEnd(){this.setState({failAttempt:!1,shouldShake:!1})}onSubmitPassword(e){e.preventDefault();const{onSubmit:s}=this.props;this.setState({shouldShake:!0},()=>{s(this.passwordRef.current)})}render(){const{isOnePage:e}=this.props,{failAttempt:s}=this.state,o=M()("brand--border","share-password-dialog",{"fail-password":s}),r=e?"You need a password to view this microlearning. If you don\u2019t know it, ask the person who shared this with you.":"You need a password to view this course. If you don\u2019t know it, ask the person who shared this with you.";return(0,n.jsxs)("div",{className:o,ref:a=>{this.dialog=a},children:[(0,n.jsx)("h1",{className:"heading",children:"Enter Password"}),(0,n.jsx)("p",{className:"instructions",children:r}),(0,n.jsxs)("form",{onSubmit:this.onSubmitPassword.bind(this),children:[(0,n.jsx)("label",{htmlFor:"share-password",className:"label",children:"password"}),(0,n.jsx)("input",{id:"share-password",ref:this.passwordRef,type:"password",className:"input"}),(0,n.jsx)("div",{className:"dialog__toolbar",children:(0,n.jsx)("input",{type:"submit",className:"button brand--background",value:"View"})})]})]})}}const ise=t=>({isOnePage:Bt(t)}),cse=(0,X.Ng)(ise)(ase),Dl=q("app-header"),lse=({children:t,className:e="",isAIAssistantEnabled:s=!1,localesDropdown:o=null,menuButton:r=null,snapshotDropdown:a=null,title:c})=>{const d=Dl({v2:s}).mix(e),l=!!(a||o);return(0,n.jsx)("div",{children:(0,n.jsxs)("div",{id:"app-header",className:d,dir:"ltr",children:[r,(0,n.jsxs)("div",{className:Dl("title-dropdowns"),children:[c&&(0,n.jsx)("div",{className:Dl("title"),"data-testid":"AppHeaderTitle",children:(0,n.jsx)(wn,{value:c})}),l&&(0,n.jsxs)("div",{className:Dl("dropdowns"),children:[a,o]})]}),(0,n.jsx)("div",{className:Dl("btn-group"),"data-testid":"AppHeaderButtonGroup",children:t})]})})},Tr=q("app-header"),nhe=({children:t})=>jsx("div",{className:Tr("btn-group"),children:t}),dse=({disabled:t,onClick:e})=>(0,n.jsx)("button",{className:Tr("promo-btn"),disabled:t,onClick:e,type:"button",children:"New"}),uC=({children:t,disabled:e=!1,done:s=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:c=!1,el:d="button",href:l=void 0,external:u=!1,capitalize:h=!0,...p})=>{const f=(0,Oi.W)(),g=(0,m.useCallback)(async C=>{e||(o&&await o(C),l&&(u?window.location.href=l:f.push(l)))},[f,l,o,e,u]),v=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Od,{el:l?"a":d,disabled:e,header:!s,headerDone:s,onClick:g,style:h?null:{textTransform:"none",fontWeight:600,fontSize:"1.4rem",letterSpacing:0},...p,children:t}),c&&(0,n.jsx)(dse,{disabled:e,onClick:g}),a]});return e&&r?(0,n.jsxs)(z6,{"data-testid":"AppHeaderButtonTooltipContainer",children:[v,(0,n.jsx)(V6,{className:"app-header__tooltip-button",side:"left",children:r})]}):v};uC.propTypes={children:A().node,disabled:A().bool,done:A().bool,el:A().string,href:A().string,onClick:A().func,tooltipText:A().string,dataBa:A().string};const ohe=({title:t})=>jsx("div",{className:Tr("title"),children:t}),rhe=()=>jsx("div",{className:Tr("divider")}),ahe=({href:t,label:e,onClick:s,xhref:o,...r})=>{const a=useNavigate(),c=useCallback(async d=>{if(o||d.preventDefault(),s)return s();t&&a.push(t)},[t,o,a,s]);return jsx("div",{className:Tr("menu-btn"),...r,children:jsx("a",{className:Tr("menu-close"),"aria-label":e,onClick:c,href:o,children:jsx(ChevronLeft,{})})})},ihe=({onClick:t,label:e,...s})=>jsx("div",{className:Tr("menu-btn"),children:jsx(Button,{icon:"up-level-2",onClick:t,ariaLabel:e,...s})}),che=({children:t,...e})=>jsx("div",{className:Tr("owner-label"),...e,children:t}),lhe=({children:t,className:e})=>jsx("div",{className:Tr("button-spacer").mix(e),children:t}),dn=q("curtain");let hC;const use=({loadingText:t,showHeader:e,status:s,labelCurtainLoading:o="Your content is loading.",labelCurtainOffline:r="Your computer is offline.",labelCurtainOfflineReconnecting:a="Attempting to reconnect\u2026",labelCurtainSessionTimedOut:c="Your session has timed out.",labelCurtainSessionTimedOutRestart:d="Click refresh to restart your session.",labelCurtainSessionTimedOutRefresh:l="Refresh",labelCurtainSomethingWrong:u="Something went wrong.",labelCurtainSomethingWrongTryAgain:h="Click to refresh and try again.",labelCurtainSomethingWrongRefresh:p="Refresh"})=>{const[f,g]=(0,m.useState)(!1),v=()=>g(!0),C=Ue()("status","error"),E=Ue()("status","fatalError"),L=kn()(C,Ue()("reconnectFailed",!0));return(0,m.useEffect)(()=>(hC=setTimeout(v,1e4),()=>{clearTimeout(hC)}),[]),(0,m.useEffect)(()=>{if(s==="error"){const S=new Error("There was a socket connection error. The renderReconnect curtain was displayed");a5.y.logger.error(S.message,S)}},[s]),Rs()([[E,mse],[L,fse],[C,pse],[hn(),hse(t)]])({showHeader:e,status:s,reconnectFailed:f,labelCurtainLoading:o,labelCurtainOffline:r,labelCurtainOfflineReconnecting:a,labelCurtainSessionTimedOut:c,labelCurtainSessionTimedOutRestart:d,labelCurtainSessionTimedOutRefresh:l,labelCurtainSomethingWrong:u,labelCurtainSomethingWrongTryAgain:h,labelCurtainSomethingWrongRefresh:p})},mC=()=>window.location.reload(!0),hse=t=>({showHeader:e,labelCurtainLoading:s})=>(0,n.jsx)("div",{className:dn("container",{"show-header":e}),children:(0,n.jsxs)("div",{className:dn(),children:[(0,n.jsx)("div",{className:dn("spinner")}),(0,n.jsx)("div",{className:dn("text"),children:t||s})]})}),mse=({showHeader:t,labelCurtainSomethingWrong:e,labelCurtainSomethingWrongTryAgain:s,labelCurtainSomethingWrongRefresh:o})=>(0,n.jsx)("div",{className:dn("container",{"show-header":t}),children:(0,n.jsxs)("div",{className:dn(),children:[(0,n.jsx)("div",{className:dn("title"),children:e}),(0,n.jsx)("div",{className:dn("description"),children:s}),(0,n.jsx)(Od,{headerDone:!0,onClick:mC,children:o})]})}),pse=({showHeader:t,labelCurtainOffline:e,labelCurtainOfflineReconnecting:s})=>(0,n.jsx)("div",{className:dn("container",{"show-header":t}),children:(0,n.jsxs)("div",{className:dn(),children:[(0,n.jsx)("div",{className:dn("spinner",{reconnect:!0})}),(0,n.jsx)("div",{className:dn("title"),children:e}),(0,n.jsx)("div",{className:dn("description"),children:s})]})}),fse=({showHeader:t,labelCurtainSessionTimedOut:e,labelCurtainSessionTimedOutRestart:s,labelCurtainSessionTimedOutRefresh:o})=>(0,n.jsx)("div",{className:dn("container",{"show-header":t}),children:(0,n.jsxs)("div",{className:dn(),children:[(0,n.jsx)("div",{className:dn("title"),children:e}),(0,n.jsx)("div",{className:dn("description"),children:s}),(0,n.jsx)(Od,{headerDone:!0,onClick:mC,children:o})]})}),pC=(0,m.memo)(use);var gse=i(61170);function vse({children:t,locale:e,...s}){const o=(0,ke.zy)(),r=(0,It.D_)(),a=(0,m.useMemo)(()=>{const c=e===r?"":e,d=new URLSearchParams(o.search);return d.set("locale",c),{...o,search:d.toString()}},[r,e,o]);return(0,n.jsx)(Qn,{...s,to:a,children:t})}const sr=q("locales-dropdown"),Cse=({backToStackCourseId:t,currentLocale:e,defaultLocale:s,locales:o,message:r,onChange:a,optionType:c,showMessageIndicator:d})=>{const l=(0,m.useRef)(null),u=(0,m.useRef)(null),[h,p]=(0,m.useState)(!1),[f,g]=(0,m.useState)(!1),v=(0,m.useMemo)(()=>o.filter(x=>x!==s),[s,o]);(0,m.useLayoutEffect)(()=>{h&&f&&(l.current?.querySelector(`[data-locale="${e}"]`)?.focus(),g(!1))},[h,f,e]),(0,m.useEffect)(()=>{const x=S=>{yn(S)&&(u.current?.focus(),p(!1)),cd(S)&&setTimeout(()=>{l.current.contains(document.activeElement)||p(!1)},0)};return h&&document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[h]);const C=(0,m.useCallback)(x=>{!h&&document.activeElement===x.currentTarget&&g(!0),p(!h)},[h]),E=(0,m.useCallback)(x=>{h&&!u.current?.contains(x?.target)&&p(!1)},[h]);(0,gse.A)(l,E),(0,m.useEffect)(()=>{const x=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&E()},0);return window.addEventListener("blur",x),()=>window.removeEventListener("blur",x)},[E]);const L=(0,m.useCallback)(x=>{document.activeElement===x.currentTarget&&u.current?.focus(),p(!1),a?.(x.currentTarget.getAttribute("data-locale"))},[a]);return(0,n.jsxs)("div",{className:sr({isOpen:h}),children:[(0,n.jsx)("div",{className:sr("trigger-wrap"),children:(0,n.jsxs)("button",{className:sr("trigger"),onClick:C,ref:u,type:"button",children:[d&&(0,n.jsx)("div",{className:sr("message-indicator")}),(0,n.jsx)(Lt,{name:"globe"}),kd(e),(0,n.jsx)(Lt,{name:"chevron-down"})]})}),(0,n.jsxs)("div",{className:sr("contents"),ref:l,children:[r,(0,n.jsx)("div",{className:sr("grouping-header"),children:"Source"}),(0,n.jsx)(fC,{checked:s===e,locale:s,onClick:L,type:c}),(0,n.jsx)("div",{className:sr("grouping-header"),children:"Translations"}),v.map(x=>(0,n.jsx)(fC,{checked:x===e,locale:x,onClick:L,type:c},x)),t&&(0,n.jsx)("a",{className:sr("stack-button"),href:`/manage/locales/${t}`,children:"Back to Stack"})]})]})},fC=({checked:t,locale:e,onClick:s,type:o})=>o==="link"?(0,n.jsx)(vse,{className:sr("option",{checked:t}),"data-locale":e,locale:e,onClick:s,children:kd(e)},e):(0,n.jsx)("button",{className:sr("option",{checked:t}),"data-locale":e,onClick:s,type:"button",children:kd(e)},e),xse=({hideBackToStack:t,...e})=>{const s=(0,Me.DX)(),{currentLocale:o}=(0,xs.nY)(),r=(0,It.jc)(),a=(0,It.D_)(),c=t?void 0:s?.id,d=(0,m.useMemo)(()=>r.map(({locale:l})=>l),[r]);return(0,n.jsx)(Cse,{backToStackCourseId:c,currentLocale:o,defaultLocale:a,locales:d,optionType:"link",...e})},gC=window.location.origin,Ese=1e3,Tse="course:ready",vC="localizedSharePreview:ready",Sse="preview:selectLocale",qm="localizedSharePreview:toggleCurtain",CC="localizedSharePreview:togglePreview",rc=q("localized-share-preview"),ac=!!window.frameElement,xC=t=>(0,_s.HX)(t)&&(0,de.GS)(),Lse=t=>xC(t)&&!ac,bse=(t,e)=>window.parent?.postMessage({type:t,data:e});let EC=null;const yse=({children:t})=>{const e=(0,X.wA)(),s=(0,Oi.W)(),o=(0,ke.zy)(),{currentLocale:r,setCurrentLocale:a}=(0,xs.nY)(),c=(0,It.D_)(),d=Kn(),{hasPassword:l}=Mt()??{},u=!!l||(0,de.og)(),h=(0,m.useRef)(null),[p,f]=(0,m.useState)(!1),[g,v]=(0,m.useState)(!1),[C,E]=(0,m.useState)(!u),L=(0,m.useMemo)(()=>`${gC}/share/${window.shareId}#/?locale=${r}`,[]),[x,S]=(0,m.useState)(null),[b,N]=(0,m.useState)(r),[I,j]=(0,m.useState)(!1),[R,P]=(0,m.useState)(!ac),B=(k,J)=>h.current?.contentWindow.postMessage({type:k,data:J});(0,m.useEffect)(()=>{ac||B(Sse,r)},[r]),(0,m.useEffect)(()=>{ac&&(bse(vC),setTimeout(()=>j(!0),0))},[]),(0,m.useEffect)(()=>{const k=J=>{if(J.origin!==gC)return;const G=J.data?.type,Y=J.data?.data;if(ac)switch(G){case qm:{P(Y);break}case CC:{Y?(N(r),S(o),e((0,sl.Wp)(!0)),a(c),s.replace("/")):(e((0,sl.Wp)(!1)),a(b),s.replace(x)),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(G){case Tse:{P(!1);break}case vC:{E(!0);break}}};return window.addEventListener("message",k),()=>{window.removeEventListener("message",k)}},[c,e,s,r,o,b,x,a]);const _=(0,m.useCallback)(()=>{const k=!p;clearTimeout(EC),v(!0),B(qm,!0),EC=setTimeout(()=>{v(!1),B(qm,!1),f(k)},Ese),setTimeout(()=>{B(CC,k)},0)},[p]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:rc("curtain",{hide:!R}),children:(0,n.jsx)(pC,{})}),ac?I&&t:(0,n.jsxs)("div",{className:rc(),children:[C&&(0,n.jsx)(lse,{className:rc("header"),localesDropdown:!p&&!g&&(0,n.jsx)(xse,{hideBackToStack:!0}),title:d,children:(0,n.jsx)(uC,{capitalize:!1,className:rc("preview-button"),disabled:g,done:!0,onClick:_,children:p?"Close Learner Preview":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Lt,{className:rc("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,n.jsx)("iframe",{"aria-label":"Course preview",allowFullScreen:!0,className:rc("iframe"),ref:h,src:L})]})]})},TC=Object.assign(document.createElement("div"),{id:"portal"});function SC(t){(t??document.body).appendChild(TC),TC.style.display=t?"":"none"}SC();const Ise=(t,e)=>!(t==="firstLesson"&&e.includes("/lessons/"))&&!(t==="cover"&&(e==="/"||e==="/preview")),Nse=t=>["preview:navigate","preview:overlayNavClose","preview:scrollto","preview:showLessonNavNext","preview:showLessonNavPrev","preview:themeUpdate","preview:update","preview:navOpen","preview:navClose","preview:replace","preview:changeset","preview:selectLocale",bn.FOCUS,bn.TOGGLE,bn.CLEAR,bn.TRANSLATION_HOVERED,bn.TRANSLATION_HOVER_CLEAR].includes(t),jse=t=>t===window.location.origin||t==="articulate.com"||t.endsWith(".articulate.com"),Ase=({course:t,fonts:e,l10n:s})=>()=>((0,X.JD)((0,Mc.V7)({course:t,fonts:e,l10n:s})),Ci().Resolved()),Rse=()=>(window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin),Ci().Resolved()),Ose=({course:t,fonts:e,l10n:s})=>Ci()((o,r)=>{(0,lS.U)(e,r)}).chain(Ase({course:t,fonts:e,l10n:s})).chain(Rse);class LC extends m.Component{constructor(e){super(e),this.state={didNavigate:!1,previewType:"",failAttempt:!1,scrollTo:null,isInvalidPassword:!0},this.onSharePasswordSubmit=this.onSharePasswordSubmit.bind(this),this.onFavoriteAdded=this.onFavoriteAdded.bind(this),this.onFavoriteRemoved=this.onFavoriteRemoved.bind(this),this.isRTLEnabled=this.isRTLEnabled.bind(this),this.updateRTL=this.updateRTL.bind(this),this.handleMessage=this.handleMessage.bind(this),window.targetMode=P4({locale:e.currentLocale})}UNSAFE_componentWillMount(){const{l10n:e}=this.props;nn.isIe11&&document.documentElement.classList.add("ie11"),nn.isSafari9&&document.documentElement.classList.add("safari9"),nn.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),nn.isSafari&&this.props.match.params.mode==="iframe"&&kT().enable(),window.addEventListener("message",this.handleMessage),window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:bn.STATUS,data:!!window.targetMode},"*"),(0,de.xr)()&&window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e?.defaultLocale,locales:e?.locales?.map(({locale:s})=>s)}}),SS(),this.updateRTL()}componentDidMount(){const{currentLocale:e,languageCode:s}=this.props;document.documentElement.lang=e??s,this.removeRouteListener=this.props.history.listen(()=>{this.setState({didNavigate:!0})}),(0,ht.on)("favoriteAdded",this.onFavoriteAdded),(0,ht.on)("favoriteRemoved",this.onFavoriteRemoved),document.addEventListener("click",()=>{window.parent.postMessage("coursePreviewIframeClicked","*")})}updateConnectionStatus(e){(0,X.JD)((0,Qp.zq)(e))}componentDidUpdate(){const{currentLocale:e,languageCode:s}=this.props;document.documentElement.lang=e??s,this.updateRTL(),this.state.didNavigate&&setTimeout(()=>{this.setState({didNavigate:!1})},0)}componentWillUnmount(){this.removeRouteListener(),window.removeEventListener("message",this.handleMessage),(0,ht.AU)("favoriteAdded",this.onFavoriteAdded),(0,ht.AU)("favoriteRemoved",this.onFavoriteRemoved)}isRTLEnabled(){const{course:e,l10n:s,currentLocale:o}=this.props;return(0,cS.V)({course:e,locales:s?.locales,locale:o})}updateRTL(){this.isRTLEnabled()?document.documentElement.dir="rtl":document.documentElement.dir=""}handleMessage(e){const{data:s,origin:o}=e;if(!jse(o))return;const{history:r,location:{pathname:a},setCurrentLocale:c}=this.props,{course:{lessonsOnly:d}}=this.props;(0,OT.A)(s).forEach(({type:l,data:u})=>{if(Nse(l)){if(l===bn.TOGGLE&&window.targetMode(u,h=>{window.parent.postMessage({type:bn.HOVERED,data:h},"*")}).then(h=>{window.parent.postMessage({type:bn.SELECTED,data:h},"*")}).catch(()=>{window.parent.postMessage({type:bn.SELECTED,data:[]},"*")}),l==="preview:update"&&this.setState({previewType:u}),l==="preview:themeUpdate"&&this.handleThemePreviewUpdate(u),l==="preview:navigate"){let{type:h,lessonId:p,itemId:f,path:g,replace:v}=u;const C=v?r.replace.bind(r):r.push.bind(r);if(Ise(h,a)){if(Array.isArray(g)&&({type:h,lessonId:p,itemId:f}=(0,I0.Ce)(g)),h==="firstLesson")C(`/lessons/${d[0].id}`);else if(h==="cover"||h==="course")C("/");else if(h==="lesson"&&d.find(({id:L})=>L===p)!=null){const L=()=>{window.dispatchEvent(new CustomEvent(ms,{detail:{lessonId:p,itemId:f,path:g}}))};`/lessons/${p}`!==a?(C(`/lessons/${p}`),setTimeout(L,1500)):L()}}}if(l===bn.CLEAR&&window.dispatchEvent(new CustomEvent(q0)),l==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(Ap)),l==="preview:navClose"&&window.dispatchEvent(new CustomEvent(Rp)),l==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(Cd)),l==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(xd)),l==="preview:scrollto"&&typeof u.target=="string"){const h=document.querySelector(u.target);h&&(0,wT.A)(h,{behavior:"smooth",block:"start"})}l==="preview:replace"&&(0,X.JD)((0,Mc.HC)(u)),l==="preview:changeset"&&(0,X.JD)((0,Mc.TJ)(u)),l==="preview:selectLocale"&&c(u,"replace"),l===bn.FOCUS&&k4(u.path),l===bn.TRANSLATION_HOVERED&&D4(u.path),l===bn.TRANSLATION_HOVER_CLEAR&&O4()}})}handleThemePreviewUpdate({course:e,l10n:s,fonts:o,theme:r}){this.cancelThemePreviewUpdate();const{course:a}=this.props,c=st()("theme",r,e),d=(0,BT.MT)(a,c);this.cancelThemePreviewUpdate=Ose({course:d,fonts:o,l10n:s}).fork(console.warn,mS)}onSharePasswordSubmit(e){return(0,de.m5)(e.value).then(({isValid:s})=>{s?this.setState({isInvalidPassword:!1}):(e.value="",this.setState({failAttempt:!0,isInvalidPassword:!0}))}).catch(s=>console.error("Verify password error",s))}onFavoriteAdded(){(0,X.JD)((0,Gp.nF)())}onFavoriteRemoved(){(0,X.JD)((0,Gp.pp)())}renderAppLayout(){if(!this.props.course)return null;const{easterEggClassNames:e,course:s,course:{bodyTypeface:o,color:r,headingTypeface:a,themeId:c,theme:d,type:l,uiTypeface:u},courseProgress:h,currentLocale:p,l10n:f,labels:g,lessons:v,location:C,partnerContent:E,search:L,sessionPreferences:x}=this.props,{didNavigate:S,previewType:b}=this.state,N=f?.localeLabelSets?.[p]?.labels||g,I={course:s,courseProgress:h,didNavigate:S,labels:N,lessons:v,location:C,partnerContent:E,previewType:b,search:L,sessionPreferences:x,themeId:c},j=d?.accentContrast,R=l===$e.y4,P={accentContrast:j,bodyTypeface:o,color:r,headingTypeface:a,isLegacyCourse:s?.isLegacyCourse,uiTypeface:u},B=M()("theme",e,c,{"one-page":R}),_=xC(s)?yse:m.Fragment;return(0,n.jsx)(Me.rv,{course:s,courseProgress:h,l10n:f,labels:N,partnerContent:E,search:L,children:(0,n.jsx)(QE,{themeId:c,children:(0,n.jsx)(Wp,{courseColor:r,children:(0,n.jsx)(E9,{i18n:(0,de.Rc)(),children:(0,n.jsx)(Ta,{children:(0,n.jsxs)("div",{id:"innerApp",className:B,ref:SC,children:[(0,n.jsx)(wS,{...P}),(0,n.jsx)(o3,{env:"runtime",children:(0,n.jsxs)(_,{children:[R?(0,n.jsx)(rse,{...I}):(0,n.jsx)(Jte,{...I}),(0,n.jsx)(nI,{})]})})]})})})})})})}showPasswordDialog(){const{isInvalidPassword:e}=this.state;if((0,de.oO)())return e&&(0,de.og)();const{course:s}=this.props,{hasPassword:o}=s;return e&&(0,de.GS)()&&!Lse(s)&&(!!o||(0,de.og)())}render(){const{failAttempt:e}=this.state,{onSharePasswordSubmit:s}=this;return this.showPasswordDialog()?(0,n.jsx)(cse,{failAttempt:e,onSubmit:s}):this.renderAppLayout()}}LC.prototype.cancelThemePreviewUpdate=Function.prototype;const Pse=Se()(jS,a1.A,xs.wZ)(LC),Mse=()=>(0,n.jsx)(Ta,{title:Yc(),children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"not-found",children:(0,n.jsxs)("div",{className:"not-found__copy",children:[(0,n.jsx)("h1",{className:"not-found__copy--heading",tabIndex:-1,children:"Hmm..."}),(0,n.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});var Dse=i(94983);function bC(){return(0,X.d4)(t=>{const{course:e,courseLabels:s,courseProgress:o,fonts:r,l10n:a,partnerContent:c,search:d,sessionPreferences:l,status:u}=t;return{course:e,courseProgress:o,fonts:r,l10n:a,labels:s.labels,languageCode:e?.locale??s.iso639Code,lessons:e&&e.lessons,partnerContent:c,search:d,sessionPreferences:l,status:u}})}function kse(){const t=(0,X.wA)();(0,m.useEffect)(()=>{t((0,Mc.EL)()),t((0,h1.pb)())},[t])}function wse(){const t=(0,X.wA)(),e=(0,m.useCallback)(()=>{t((0,Qp.$2)(!0))},[t]),s=bC(),{courseLoaded:o,coverLoaded:r}=s.status;if(o&&!r){const{course:{coverImage:a={}}}=s,{media:c={}}=a,{image:d={}}=c,{key:l,src:u}=d;if(l||u){const h=l?(0,rs.ME)(d):u,p=setTimeout(e,5e3),f=new Image;f.src=h,f.onload=()=>{clearTimeout(p),e()}}else e()}}function Bse(){kse(),wse();const t=bC(),e=(0,X.wA)(),{fonts:s,labels:o,status:{courseLoaded:r,coverLoaded:a,fontsLoaded:c,notFound:d,partnerContentLoaded:l}}=t,u=(0,as.A)(r),h=r&&c&&a&&l,p=!h;return(0,m.useEffect)(()=>{!u&&r&&!c&&(s??[]).length>0&&e((0,Dse.r)(s))},[e,u,r,c,s]),(0,m.useEffect)(()=>{h&&window.parent!==window&&window.parent.postMessage({type:"course:ready"},window.location.origin)},[h]),d?(0,n.jsx)(Mse,{}):p?(0,n.jsx)(pC,{status,labelCurtainLoading:o?.curtainLoading,labelCurtainOffline:o?.curtainOffline,labelCurtainOfflineReconnecting:o?.curtainOfflineReconnecting,labelCurtainSessionTimedOut:o?.curtainSessionTimedOut,labelCurtainSessionTimedOutRestart:o?.curtainSessionTimedOutRestart,labelCurtainSessionTimedOutRefresh:o?.curtainSessionTimedOutRefresh,labelCurtainSomethingWrong:o?.curtainSomethingWrong,labelCurtainSomethingWrongTryAgain:o?.curtainSomethingWrongTryAgain,labelCurtainSomethingWrongRefresh:o?.curtainSomethingWrongRefresh}):(0,n.jsx)(Pse,{...t})}const _se=Bse,l0=document.createElement("style");l0.innerHTML=`
  @layer rise-reset, art-theme, art-utils;

  :root {
    --arc-font-size-base: 1;
  }
`;function Use(){(0,m.useEffect)(()=>(l0.parentElement!==document.head&&document.head.prepend(l0),()=>{l0.remove()}),[])}const yC=(0,Ie.TM)();(0,de.IV)(yC);const Hse=(0,je.createRoot)(document.getElementById("app")),Fse=({children:t})=>(Use(),t);Hse.render((0,n.jsx)(m.Suspense,{fallback:null,children:(0,n.jsx)(X.Kq,{store:X.M_,children:(0,n.jsx)(Fse,{children:(0,n.jsx)(ST,{children:(0,n.jsx)(ds,{children:(0,n.jsx)(RT,{children:(0,n.jsx)(ke.Ix,{history:yC,children:(0,n.jsx)(xs.fH,{children:(0,n.jsx)(ke.qh,{path:"/",component:_se})})})})})})})})}))},28239:(Ze,xe,i)=>{"use strict";i.r(xe),i.d(xe,{selectLabelsMap:()=>z,useLabelsMap:()=>re});var D=i(18391),U=i(38286);function z(V,se){return se?.l10n?.localeLabelSets?.[V]?.labels||se?.courseLabels?.labels}function re(){const{currentLocale:V}=(0,U.nY)();return(0,D.d4)(se=>z(V,se))}},16832:(Ze,xe,i)=>{"use strict";i.d(xe,{Ay:()=>ge,BW:()=>F,En:()=>D,Ig:()=>K,Ko:()=>U,M$:()=>le,Pz:()=>W,S$:()=>ae,WY:()=>se,Wj:()=>$,Ze:()=>ne,ce:()=>Le,eZ:()=>z,fd:()=>H,ft:()=>V,jw:()=>ue,l7:()=>re,mj:()=>n,p3:()=>ce,pd:()=>pe,qX:()=>w,sZ:()=>ee,w5:()=>Be});const D="a",U="n",z="t",re="c",V="ps",se="p",ne="v",ee="r",ue="s",n="rr",ce="pq",pe="qd",Le="ql",le="qt",ge="vp",Be="k",$="v",H="i",F="pv",w="m",W="s",K="x",ae="t"},19509:(Ze,xe,i)=>{"use strict";i.d(xe,{f:()=>D});const D={UP:"up",DOWN:"down"}},61140:(Ze,xe,i)=>{"use strict";i.d(xe,{AU:()=>ne,G7:()=>ce,NS:()=>V,RR:()=>Le,gj:()=>n,kT:()=>ee,on:()=>se});const{RiseDotCom:D}=window,U=le=>D&&D[le],z=()=>{U("addFavorite")&&Promise.resolve().then(D.addFavorite).catch(console.error)},re=()=>{U("removeFavorite")&&Promise.resolve().then(D.removeFavorite).catch(console.error)},V=()=>{U("exit")&&D.exit()},se=(...le)=>{U("on")&&D.on(...le)},ne=(...le)=>{U("off")&&D.off(...le)},ee=(...le)=>{U("goToLearn")&&D.goToLearn(...le)},ue=(...le)=>{U("closeCourseOverviewModal")&&D.closeCourseOverviewModal(...le)},n=(...le)=>{if(U("downloadCertificate"))return D.downloadCertificate(...le)},ce=(...le)=>{if(U("downloadCertificateCancel"))return D.downloadCertificateCancel(...le)},pe=(...le)=>{U("resizeCourseOverviewIframe")&&D.resizeCourseOverviewIframe(...le)},Le=(...le)=>{if(U("fetchLpUpNext"))return D.fetchLpUpNext(...le)}},88747:(Ze,xe,i)=>{"use strict";i.d(xe,{MJ:()=>Cs,MT:()=>Gn,uK:()=>Zs});var D=i(61556),U=i(77541),z=i(10789),re=i.n(z),V=i(27905),se=i.n(V),ne=i(46687),ee=i.n(ne),ue=i(34198),n=i.n(ue),ce=i(36104),pe=i.n(ce),Le=i(75800),le=i.n(Le),ge=i(40966),Be=i.n(ge),$=i(91794),H=i.n($),F=i(56401),w=i.n(F),W=i(4322),K=i.n(W),ae=i(41260),Te=i.n(ae),te=i(53970),me=i.n(te),ve=i(7827),m=i.n(ve),ie=i(74674),je=i.n(ie),ke=i(37953),X=i.n(ke),Ie=i(84929),Re=i.n(Ie),gt=i(34552),ft=i.n(gt),bt=i(84136),kt=i.n(bt),xt=i(69872),Gt=i.n(xt),Xe=i(37600),ds=i.n(Xe),Je=i(97886),ut=i.n(Je),de=i(5181);const it=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],Et=pe()(Be(),m()(["color"]),m()(["theme","colorAccent"])),rt=({theme:{navigationRestricted:os}})=>os?de.b$.RESTRICTED:de.b$.FREE,Kt=({theme:{sidebarStartsOpen:os}})=>(w()(os)?!0:os)?de.RE.OPEN:de.RE.CLOSED,Fe=pe()(Be(),m()(["showLessonCount"]),m()(["theme","showLessonCount"])),M=({sidebarMode:os})=>os!==de.RE.HIDDEN,ze=({navigationMode:os})=>os===de.b$.RESTRICTED,ht=({sidebarMode:os})=>os===de.RE.OPEN,ye=H()(m()(["coverImage","media","image"]),re()(de.kY.LIGHT_IMAGE),re()(de.kY.LIGHT)),Ss=H()(m()(["coverImage","media","image"]),re()(de.BL.LEFT_OVERLAY),re()(de.BL.LEFT)),fs={allowSearch:!0,animateBlockEntrance:!0,compactShowLessonCount:!0,enableVideoPlaybackSpeed:!0,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,sidebarStartsOpen:!0},Oe=os=>ft()(fs[os],os),Ds={blockCorners:de.rE.ROUNDED,blockPaddingBottom:de.S$,blockPaddingTop:de.S$,buttonInlineStyle:de.qu.ROUNDED,buttonNavigationStyle:de.jq.FULL,buttonScheme:de.LE.LIGHT,colorAccent:de.Zs,coverImageAlpha:de.HU,coverPageType:de.BL.SPLIT_LEFT_IMAGE,lessonHeaderImageColor:de.df.DARK,lessonHeaderColor:null,lessonHeaderImage:null,lessonHeaderImageAlpha:de._g,lessonHeaderSize:de.OX.MEDIUM,lessonHeaderStyle:de.xj.LIGHT,navigationStyle:de.kY.LIGHT,navigationType:de.br.SIDEBAR,progressIndicatorStyle:de.Y2.THEME_DEFAULT,themeId:de.V7.RISE_CLASSIC},Zs=Gt()(K(),n()(se()("isLegacyCourse",!0),me()("theme"),Te()(Ds),ee()({allowSearch:Oe("allowSearch"),animateBlockEntrance:Oe("animateBlockEntrance"),bodyTypefaceId:Re()("bodyTypefaceId"),colorAccent:n()(ds(),ft()("","color")),compactShowLessonCount:Oe("compactShowLessonCount"),coverImageDefault:null,coverPageType:Ss,enableVideoPlaybackSpeed:Oe("enableVideoPlaybackSpeed"),headingTypefaceId:Re()("headingTypefaceId"),markLessonsComplete:Oe("markComplete"),navigation:M,navigationRestricted:ze,navigationStyle:ye,showAuthor:Oe("showAuthor"),showLessonCount:Oe("showLessonCount"),showNavigationButtons:Oe("showNavigationButtons"),sidebarStartsOpen:ht,uiTypefaceId:Re()("uiTypefaceId")}))),Cs=ut()(kt()(w(),"theme"),Gt()(K(),ee()({allowSearch:m()(["theme","allowSearch"]),animateBlockEntrance:je()(!0,["theme","animateBlockEntrance"]),buttonNavigationStyle:m()(["theme","buttonNavigationStyle"]),buttonScheme:m()(["theme","buttonScheme"]),color:Et,colorAccentTint:n()(D.FB,Et),coverImage:os=>(0,U.dM)(os),coverPageType:m()(["theme","coverPageType"]),enableVideoPlaybackSpeed:je()(!0,["theme","enableVideoPlaybackSpeed"]),lessonHeaderImage:os=>(0,U.LI)(os),lessonHeaderSize:m()(["theme","lessonHeaderSize"]),lessonHeaderStyle:m()(["theme","lessonHeaderStyle"]),markComplete:je()(!1,["theme","markLessonsComplete"]),navigation:je()(!0,["theme","navigation"]),navigationMode:rt,navigationRestricted:je()(!1,["theme","navigationRestricted"]),navigationStyle:m()(["theme","navigationStyle"]),navigationType:je()(de.br.SIDEBAR,["theme","navigationType"]),progressIndicatorStyle:je()(de.Y2.THEME_DEFAULT,["theme","progressIndicatorStyle"]),themeId:je()("classic",["theme","themeId"]),showAuthor:je()(!0,["theme","showAuthor"]),showLessonCount:Fe,sidebarMode:Kt,sidebarStartsOpen:je()(!0,["theme","sidebarMode"]),showNavigationButtons:je()(!0,["theme","showNavigationButtons"])}))),Gn=le()(os=>n()(Cs,K()(os),X()(it)))},41481:(Ze,xe,i)=>{"use strict";i.d(xe,{A:()=>re});var D=i(50635),U=i(26058),z=i(98228);function re(V){const se=(0,U.y)(ne=>{const ee=(0,z.W)();return(0,D.jsx)(V,{...ne,history:ee})});return se.displayName=`withRouter(${V.displayName||V.name})`,se}},41820:(Ze,xe,i)=>{"use strict";i.d(xe,{gf:()=>Or,Em:()=>Pr});var D={};i.r(D),i.d(D,{callbackComponent:()=>Cc,callbackPath:()=>Pe,errorPath:()=>Nr,getToken:()=>Ue,initAuth:()=>$a,login:()=>Ka,logout:()=>Mn,onFetchTokensThunk:()=>xc,refreshSession:()=>fc,request:()=>Ks.Em});var U={};i.r(U),i.d(U,{callbackComponent:()=>zl,callbackPath:()=>Vl,getToken:()=>bc,initAuth:()=>ti,login:()=>qa,logout:()=>cr,refreshSession:()=>ei,request:()=>Ks.Em});var z=i(83416),re=i(10789),V=i.n(re),se=i(34198),ne=i.n(se),ee=i(56401),ue=i.n(ee),n=i(95017),ce=i.n(n),pe=i(56552),Le=i.n(pe),le=i(50107),ge=i.n(le),Be=i(59288),$=i(41481),H=i(29226),F=i.n(H),w=i(15045),W=i(47474),K=i.n(W),ae=i(54996),Te=i.n(ae),te=i(68971),me=i.n(te),ve=i(312),m=i.n(ve),ie=i(45949),je=i.n(ie),ke=i(55414),X=i.n(ke),Ie=i(91794),Re=i.n(Ie),gt=i(4322),ft=i.n(gt),bt=i(37953),kt=i.n(bt),xt=i(53970),Gt=i.n(xt),Xe=i(78324),ds=i.n(Xe),Je=i(84929),ut=i.n(Je),de=i(23366),it=i(28079);const Et={"Content-Type":"application/json"},rt=[(De,Ve)=>(Ve.Authorization=`Bearer ${Or()}`,JSON.stringify(De))],Kt=Re()(ue(),X(),kt()(["data","status","statusText"])),Fe=ds()(kt()(["name","message","response"]),je()({response:Kt})),M=({baseURL:De,...Ve})=>ne()(ft()({headers:Et,transformRequest:rt}),ft()(Ve),je()({url:m()(De)})),ze=({data:De,method:Ve,url:Tt})=>fetch(Tt,{body:JSON.stringify(De),headers:{...Et,Authorization:`Bearer ${Or()}`},keepalive:!0,method:Ve}).then(ks=>ks.json()).then(Gt()("data")),ht=K().fromPromise(ze),ye=De=>({method:Ve,url:Tt})=>`${Ve}:${De}${Tt}`,Ss=De=>{const Ve=new Error("Nil token detected");return it.L.addError(Ve,De),K().Rejected(Ve)},fs=De=>Ve=>De.preRequest?De.preRequest(Ve):Ve,Oe=De=>Ve=>De.postRequest?De.postRequest(Ve):Ve,Ds=()=>!z.BI&&ue()(Or()),Zs=De=>(Ve,Tt)=>Te()(Ve,ye(Tt),Cs(Pr,De)),Cs=(De,Ve)=>Tt=>(0,de.Ve)(Tt,fs(Ve),M(Ve),Re()(Ds,Ss,De),me()(Fe,ut()("data")),Oe(Ve)),os=De=>({debounce:Zs(De),send:Cs(Pr,De),sendWithKeepAlive:Cs(ht,De)});var uo=i(86484),nr=i.n(uo);const _s=()=>document.visibilityState==="visible",$e=De=>nr()(_s,()=>De()),Pt=De=>{document.addEventListener("visibilitychange",$e(De)),window.addEventListener("focus",()=>De())};var Ot=i(63036),xs=i.n(Ot),ho=i(72970),Us=i.n(ho),or=i(30001),vt=i.n(or),Os=i(3638),Kn=i.n(Os),Ut=i(88457);const Mt=De=>(0,Ut.Em)({method:"POST",url:`${(0,z._$)("RISE_RUNTIME_URI")}/analytics`,json:!0,data:De}),Lr=(0,z._$)("SUBSCRIPTIONS_ENDPOINT"),Po=(0,z._$)("THREESIXTY_FRONTEND_URI"),mo=vt()(["error","status"],404),br=ne()(Gt()("error"),ut()("response")),Mo=()=>window.location.href=Po,Va=[(De,Ve)=>(Ve.Authorization=`Bearer ${Or()}`,De)],Bt=async De=>{const Ve=`${Lr}/users/authorized_status`,Tt=await Pr({transformRequest:Va,url:Ve}).toPromise().catch(br),ks=ne()(De,ge()(_t=>Mt({event:"Unexpected Logout",payload:{category:"auth",data:_t,detail:"Subscription Error"}})));return xs()([[mo,Mo],[Us()("error"),ks],[Kn(),ut()("data")]])(Tt)};var $t=i(52988),js=i.n($t),po=i(53625),Se=i.n(po),rr=i(17247),Es=i.n(rr),Wa=i(63545);const fo=Es()("status","active"),cc=Es()("status","inactive"),Bl=Es()("plan","individual"),_l=De=>pathEq(["features","enable_review"],!0)(De),Qt=vt()(["features","enable_rise"],!0),Ul=Es()("plan","trial"),qe=js()([Es()("plan","trial"),Es()("status","inactive"),Es()("is_retrial_eligible",!1)]),Hl=Se()(Es()("plan","team"),Es()("plan","individual")),Ts=js()([Es()("plan","team"),Es()("is_team_admin",!0)]),Fl=js()([Es()("plan","trial"),Es()("is_team_admin",!0)]),As=De=>{const Ve=new Date(De.end_date);Ve.setUTCHours(0,0,0,0);const Tt=Ve.setDate(Ve.getDate()+1);return Tt&&(Tt.valueOf()-new Date().setUTCHours(0,0,0,0))/MILLISECONDS_IN_A_DAY};var Ks=i(20441),Zt=i(52439),lc=i(20817),Yt=i.n(lc),dc=i(46687),Do=i.n(dc),uc=i(23444),us=i.n(uc),hc=i(34552),gs=i.n(hc);const ar=(De,Ve)=>`${(0,z._$)("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(De)}?size=${Ve}`,jt=De=>({large:ar(De,"large"),medium:ar(De,"medium"),micro:ar(De,"micro"),mini:ar(De,"mini"),small:ar(De,"small")}),mc=Do()({features:gs()({},"features"),subscription:ce()(["features"])}),Ye=Yt()([qe,cc,us()(Qt)]),pc="/auth-callback",Ls="/auth-error",Ir=()=>new Promise(De=>{if(!window.Osano)return De();if(window.Osano.cm.dialogOpen){const Ve=setTimeout(()=>{De()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(Tt,ks)=>{Tt==="dialog"&&ks==="hide"&&(De(),clearTimeout(Ve))})}else De()}),Pe=pc,Nr=Ls,Ue=Zt.rS,Ga=()=>window.location.pathname===Pe;let ea=!1,ta=!1;const ir=De=>{if(ea)return;const Ve=(0,w.A)();ea=!0,window.localStorage.setItem(Ve,De);const Tt=(0,Ks.xQ)({client_id:(0,z._$)("OKTA_CLIENT_ID"),issuer:(0,z._$)("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${Pe}`,response_mode:"fragment",scope:(0,z._$)("OIDC_SCOPE"),state:Ve,prompt:null});Ir().then(()=>{window.location.href=Tt})},Ka=()=>{const De=new URLSearchParams(window.location.search),Ve=De.has("redirect_url")?De.get("redirect_url"):window.location.href;return ir(Ve)},fc=()=>(0,Ks.uI)().catch(De=>{De.response?.status===404&&Mn({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),sa=()=>{if(ta)return;const De=(0,Zt.mA)(),Ve=(0,Zt.kn)();ue()(De)?(Mt({event:"Unexpected Logout",payload:{category:"auth",userId:Ve,detail:"id from cookie was null"}}),it.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Ve,idFromCookie:De,detail:"id from cookie was null"}),ta=!0,Mn({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):De!==Ve&&(Mt({event:"Unexpected Logout",payload:{category:"auth",userId:De,idFromToken:Ve,detail:"Session/Token ID Mismatch"}}),it.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Ve,idFromCookie:De,detail:"Session/Token ID Mismatch"}),ta=!0,(0,Ks.wD)().then(()=>window.location.reload(!0)))},na=async De=>{try{const[,Ve,Tt,ks]=await(0,Ks.wD)(),{aid:tt,content_team_admin:_t}=ks;if(Mt({event:"Setting Session Cookie",payload:{category:"auth",userId:tt,detail:"Resuming existing session"}}),(0,Zt.ac)(tt),Ga()){De();return}const{first_name:O,last_name:da,launchdarkly:ua,staff:Kl}=Ve,Co={avatars:jt(tt),first_name:O,user_id:tt,last_name:da,staff:Kl,content_team_admin:_t},ko={author:tt,profile:Co},yc=()=>Mn({onLogout:V()(null)}),Ic=Dr=>De({...ko,...mc(Dr),launchdarkly:ua,token:Tt}),Mr=await Bt(yc).then(ge()(Ic)).catch(()=>De({...ko,token:Tt}));if(Ye(Mr)){Mt({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Zt.mA)(),subscription:Mr,detail:"Invalid Subscription"}}),it.L.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:(0,Zt.mA)(),detail:"Invalid Subscription"}),Mn({onLogout:()=>window.location=`${(0,z._$)("THREESIXTY_FRONTEND_URI")}/rise`});return}Pt(sa)}catch(Ve){Mt({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Zt.mA)(),error:Ve,detail:"Error Resuming Session"}}),it.L.addError(Ve,{type:"User Meta",userId:(0,Zt.mA)(),detail:"Error Resuming Session"}),Mn({onLogout:()=>window.location.reload(!0)})}},$a=({onFetchTokens:De})=>{if(Ga()){na(De);return}const Ve=(0,Zt.mA)(),Tt=(0,Zt.kn)();if(ue()(Ve)||Ve!==Tt){Ir().then(Ka);return}na(De)},Mn=({onLogout:De,reason:Ve})=>{Ve&&Mt({event:"Logout",payload:{category:"auth",userId:(0,Zt.mA)(),detail:Ve}});const Tt=(0,z._$)("RISE_AUTHORING_URI"),ks=()=>z.BI?Promise.resolve():os({baseURL:Tt}).send({method:"DELETE",url:"/logout"}),tt=()=>{(0,Zt.sm)(),(0,Zt.gZ)(),(0,Ks.Vu)().then(De)};ks().fork(_t=>{console.error("Failed to log out of rise-authoring-api",_t),tt()},tt)},gc=ne()(F().parse,Le()(1,1/0)),At=(De,Ve)=>{Ir().then(()=>{const Tt="/",ks=window.localStorage.getItem(Ve)||Tt,tt=ks===De?Tt:ks;window.localStorage.removeItem(Ve),window.location.href=tt})},vc=De=>()=>window.location.href=`${Ls}?description=${De}`,Qa=({location:De})=>()=>{const{hash:Ve,pathname:Tt}=De,{state:ks,error:tt,error_description:_t}=gc(Ve);tt?(it.L.addError(tt,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:_t}),Mn({onLogout:vc(_t),reason:`Error encountered when parsing auth callback. Error: ${tt}; description: ${_t}`})):$a({onFetchTokens:()=>At(Tt,ks)})},oa=De=>((0,Be.useEffect)(Qa(De),[]),null),Cc=(0,$.A)(oa),xc=({dispatch:De,loadProfileOKTA:Ve})=>Tt=>{const ks=ce()(["token"],Tt);ne()(De,Ve)(ks)};var ra=i(82298),Ec=i.n(ra),Za=i(45005),Ya=i.n(Za),aa=i(72168),go=i.n(aa),ia=i(74674),Xa=i.n(ia),jr=i(24308),Tc=i.n(jr),Sc=i(97886),Ja=i.n(Sc);const Ar=async()=>{await Ir();const[De,Ve]=go()(encodeURIComponent,Tc()(["hash","pathname"],window.location));window.location.href=`/login#c=${Ve}${De}`},Lc=()=>{window.location.href="/"},zl=null,Vl=null,bc=Zt.rS,qa=Ar,cr=Ks.Vu,ei=()=>(0,Ks.uI)().catch(()=>cr()),ca=ds()(gs()([],"roles"),Ja()(Ya()("author"),Lc)),lr=ds()(Xa()("",["subscription","status"]),Ja()(Ya()(Ec(),["active","in_trial","non_renewing"]),Lc)),et=()=>window.location.reload(),ti=async({onFetchTokens:De})=>{try{const[Ve,Tt]=await(0,Ks.wD)(),{launchdarkly:ks,riseId:tt,sub:_t,staff:O,subscription:da}=Tt,ua={staff:O,user_id:tt||_t};return lr(Tt),De({author:ua.user_id,launchdarkly:ks,profile:ua,subscription:da,token:Ve}),(0,Ks.on)("change:roles",ca),(0,Ks.on)("change:status",lr),(0,Ks.on)("change:subdomain",et),(0,Ks.on)("unauthorized",Ar),(0,Ks.on)("session:closed",Ar),Ve}catch{Ar()}},{callbackComponent:Rr,callbackPath:la,getToken:Or,initAuth:Wl,login:si,logout:Gl,refreshSession:ni,request:Pr}=z.BI?U:D},41021:(Ze,xe,i)=>{"use strict";i.d(xe,{A:()=>z});var D=i(3786);const z=({alpha:re,color:V,url:se})=>{const ne=(0,D.A)(V,re);return{backgroundImage:`linear-gradient(0deg,${ne},${ne}), url("${se}")`}}},52439:(Ze,xe,i)=>{"use strict";i.d(xe,{EO:()=>W,O0:()=>w,QJ:()=>ae,W5:()=>ee,Xl:()=>ge,ac:()=>n,gZ:()=>pe,kn:()=>F,l6:()=>Te,mA:()=>Le,rS:()=>le,sm:()=>ce});var D=i(13855),U=i.n(D),z=i(87836),re=i.n(z),V=i(83416);const se="_articulate_user_id",ne="_rise_authoring_api_session",ee=()=>V.BI?(0,V._$)("SESSION_COOKIE_NAME"):"_articulate_rise_",ue=(te,me)=>`${te}=${me}; domain=${(0,V._$)("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,n=te=>document.cookie=ue(se,te),ce=()=>document.cookie=`${ue(se,"")}; Max-Age=-99999999`,pe=()=>document.cookie=`${ue(ne,"")}; Max-Age=-99999999`,Le=()=>U().load(se),le=()=>U().load(ee()),ge=()=>le()?re()(le()).staff:!1,Be=()=>le()?decode(le())?.staffRoles||[]:[],$=()=>le()?decode(le())?.content_team_admin:!1,H=()=>Be().includes("content-team")||$(),F=()=>le()?re()(le()).riseId||re()(le()).sub||re()(le()).aid:"",w=()=>le()?re()(le()).roles:[],W=()=>le()?re()(le()).tenantId:"",K=()=>le()?re()(le()).subscription||{}:{},ae=()=>K().plan_id||"",Te=()=>K().status||""},61556:(Ze,xe,i)=>{"use strict";i.d(xe,{FB:()=>uo,FH:()=>Gn,GG:()=>it,I8:()=>rt,IO:()=>Zs,L3:()=>Ds,Vu:()=>Fe,b9:()=>Et,bQ:()=>M,jI:()=>or,yL:()=>nr,zH:()=>os,zh:()=>Oe});var D=i(10789),U=i.n(D),z=i(34198),re=i.n(z),V=i(23444),se=i.n(V),ne=i(40966),ee=i.n(ne),ue=i(53625),n=i.n(ue),ce=i(2353),pe=i.n(ce),Le=i(83799),le=i.n(Le),ge=i(67711),Be=i.n(ge),$=i(8466),H=i.n($),F=i(91794),w=i.n(F),W=i(34379),K=i.n(W),ae=i(56401),Te=i.n(ae),te=i(64104),me=i.n(te),ve=i(78324),m=i.n(ve),ie=i(84929),je=i.n(ie),ke=i(17247),X=i.n(ke),Ie=i(84136),Re=i.n(Ie),gt=i(85772),ft=i.n(gt),bt=i(63064),kt=i.n(bt),xt=i(37322),Gt=i(41021),Xe=i(5181),ds=i(63545),Je=i(52706);const ut=se()(X()("sidebarMode","hidden")),de=X()("sidebarMode","open"),it=({type:vt,settings:Os})=>vt!=="quiz"||Os.asLesson||Os.asLesson===void 0,Et=({alpha:vt,color:Os,hasOverlay:Kn=!0,media:Ut={}})=>{const{image:Mt={}}=Ut,{key:Lr,src:Po}=Mt,mo=Lr?(0,xt.ME)(Mt):Po,br=Os===Xe.df.LIGHT?Xe.qH:Xe.KJ;return mo?Kn?(0,Gt.A)({alpha:vt/100,color:br,url:mo}):{backgroundImage:`url("${mo}")`}:null},rt=vt=>[Xe.Py.DARK,Xe.Py.DARK_ACCENT,Xe.Py.DARK_IMAGE,Xe.qB.DARK,Xe.kY.DARK,Xe.kY.DARK_IMAGE].includes(vt),Kt=vt=>["DARK","IMAGE"].includes(vt),Fe=m()(je()("lessons"),H()),M=X()("navigationMode",Xe.b$.RESTRICTED),ze=X()("sidebarMode",Xe.RE.OPEN),ht=se()(X()("sidebarMode",Xe.RE.HIDDEN)),ye=X()("navigationType",Xe.br.SIDEBAR),Ss=X()("navigationType",Xe.br.OVERLAY),fs=X()("navigationType",Xe.br.COMPACT),Oe=w()(Re()(Te(),"navigation"),ht,X()("navigation",!0)),Ds=({course:vt,search:Os,isMobile:Kn})=>vt.type===ds.y4?!1:(ye(vt)||fs(vt)&&!!Kn)&&Oe(vt)||Os.active,Zs=({course:vt,isMobile:Os})=>fs(vt)&&Oe(vt)&&!Os,Cs=({course:vt})=>Ss(vt)&&Oe(vt),Gn=vt=>[Xe.Py.DARK_IMAGE,Xe.Py.LIGHT_IMAGE,Xe.qB.DARK_IMAGE,Xe.qB.IMAGE,Xe.kY.DARK_IMAGE,Xe.kY.LIGHT_IMAGE].includes(vt),os=vt=>[Xe.kY.DARK,Xe.kY.LIGHT].includes(vt),uo=Je.WA,nr=(vt,Os)=>{if(vt===Xe.V7.RISE_CLASSIC||vt===Xe.V7.HORIZON)switch(Os){case Xe.BL.SPLIT_LEFT_IMAGE:case Xe.BL.SPLIT_RIGHT_IMAGE:case Xe.BL.TWO_THIRDS_LEFT_IMAGE:case Xe.BL.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(vt===Xe.V7.APEX)switch(Os){case Xe.BL.SPLIT_LEFT_IMAGE:case Xe.BL.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},_s=(vt,Os)=>{switch(vt){case THEME_IDS.RISE_CLASSIC:case THEME_IDS.APEX:case THEME_IDS.HORIZON:return Os===COVER_PAGE_LAYOUT_TYPES.CENTERED_OVERLAY||Os===COVER_PAGE_LAYOUT_TYPES.LEFT_OVERLAY||Os===COVER_PAGE_LAYOUT_TYPES.IMAGE;default:return!1}},$e=n()(Te(),K()),Pt=n()(Te(),pe()(!1)),Ot=Re()(Pt,"isComplete"),xs=n()(Re()(pe()(!1),"passed"),Re()(Pt,"isComplete")),ho=kt()(2,vt=>le()(w()(re()(pe()(vt),H()),re()(xs,me()),re()(Ot,me())))),Us=kt()(2,vt=>m()(ft(),ho(vt),ee()([]),H())),or=Be()(kt()(2,vt=>w()($e,U()(vt),Us(vt))))},28079:(Ze,xe,i)=>{"use strict";i.d(xe,{L:()=>U.L,y:()=>D.yf});var D=i(35490),U=i(48004),z=i(83416);const re="datadoghq.com",V=(0,z._$)("SERVICE_ENV"),se=(0,z._$)("RISE_FRONTEND_SHA"),ne=z.BI?[/https:\/\/.*(\.dev)?\.rise\.(com|zone).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone).*/]},49345:(Ze,xe,i)=>{"use strict";i.d(xe,{QZ:()=>H,R9:()=>$,aj:()=>Be});var D=i(10789),U=i.n(D),z=i(67711),re=i.n(z),V=i(55414),se=i.n(V),ne=i(91794),ee=i.n(ne),ue=i(95206),n=i.n(ue);const ce=re()(n()),pe=["a","b","blockquote","br","div","em","h1","h2","h3","h4","h5","h6","i","img","li","mark","ol","p","table","td","th","tbody","thead","tr","s","strong","span","sub","sup","u","ul","details","summary","rise-image","rise-math"],Le=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],le=ce({allowedAttributes:{"*":["aria-*","class","colspan","id","rowspan","slot","style"],a:["data-external","href","target","rel"],img:["alt","src"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["data-translate-attrs","long-description","short-description","tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:pe}),ge=ce({allowedAttributes:{iframe:Le},allowedTags:["iframe"],allowedSchemes:["http","https"]}),Be=ee()(se(),le,U()("")),$=ee()(se(),ge,U()("")),H=ce({allowedTags:[],allowedAttributes:[]}),F=ce({allowedTags:["mark"],allowedAttributes:[]}),w=ce({allowedAttributes:{"*":["aria-*","class","colspan","rowspan","style"],a:["data-external","href","target","rel"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:pe.filter(K=>K!=="img")}),W=K=>{const ae=K.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return H(ae).replace(/\s{2,}/g," ")}},95172:(Ze,xe,i)=>{"use strict";i.d(xe,{Mz:()=>Be,Sg:()=>F,Ww:()=>K,XQ:()=>Le,d9:()=>pe,dg:()=>H,gL:()=>$,p1:()=>le,vm:()=>W});var D=i(79418),U=i.n(D),z=i(92348),re=i.n(z),V=i(30001),se=i.n(V),ne=i(17247),ee=i.n(ne),ue=i(52706),n=i(61556),ce=i(5181);const pe={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},Le=re()({KNOWLEDGE_CHECK:null,ORDER:null,QUIZ:null}),le=Te=>`/lessons/${encodeURIComponent(Te)}`,ge=ee()("type"),Be=ge(pe.SECTION),$=ge(pe.QUIZ),H=se()(["settings","passToContinue"],!0),F=Te=>Te?.items?.find(te=>te.family==="knowledgeCheck"&&te?.settings?.requireCorrectAnswer),w=({colorAccent:Te,lessonHeaderColor:te,lessonHeaderStyle:me})=>{switch(me){default:case BACKGROUND_TYPES.DARK:case BACKGROUND_TYPES.BLACK:case BACKGROUND_TYPES.IMAGE:return TEXT_COLOR.LIGHT;case BACKGROUND_TYPES.LIGHT:case BACKGROUND_TYPES.GRAY:return TEXT_COLOR.DARK;case BACKGROUND_TYPES.TINT:return getTextColorFromBackground(getCourseTint(Te));case BACKGROUND_TYPES.ACCENT:return getTextColorFromBackground(Te);case BACKGROUND_TYPES.COLOR:return getTextColorFromBackground(te??Te)}},W=Te=>Te!=null&&Te.type==="blocks",K=Te=>{const te=U()(Te);return te!=null&&Array.isArray(te.items)&&(te.items=te.items.reduce((me,ve)=>(ve!=null&&me.push(ae(ve)),me),[])),te},ae=Te=>{const te=U()(Te);return te!=null&&Array.isArray(te.items)&&(te.items=te.items.filter(Boolean)),te}},4663:(Ze,xe,i)=>{"use strict";i.d(xe,{U:()=>ve});var D=i(34198),U=i.n(D),z=i(312),re=i.n(z),V=i(67711),se=i.n(V),ne=i(65992),ee=i.n(ne),ue=i(58488),n=i.n(ue),ce=i(72168),pe=i.n(ce),Le=i(77170),le=i.n(Le),ge=i(11366),Be=i.n(ge),$=i(58995),H=i.n($),F=i(83416);const w=5e3,K=pe()(se()(re())(":n3,n4,i4,n7,n9")),ae=U()(ee()(","),n()),Te=(ie,je)=>{const ke=new FontFace(je.name,ie,{family:je.name,style:je.style,weight:je.weight});return ke.load().then(()=>document.fonts.add(ke))},te=(ie,je)=>{const ke=document.createElement("style");return ke.innerText=`@font-face { font-family: '${je.name}'; src: ${ie}; font-weight: ${je.weight}; font-style: ${je.style}; }`,document.head.appendChild(ke),new(Be())(je.name,{style:je.style,weight:je.weight}).load()},me=ie=>{const je=`url(${(0,F.PJ)(ie)}) format('woff')`;return("fonts"in document?Te:te)(je,ie)},ve=(ie,je)=>{const ke=Promise.all(ie.map(me));let X;const Ie=new Promise(Re=>{X=setTimeout(Re,w)});return Promise.race([ke,Ie]).finally(()=>{clearTimeout(X),je()})},m=({baseUri:ie,typefaces:je,onLoad:ke})=>WebFont.load({active:ke,timeout:w,custom:{families:K(values(je)),urls:[`${ie}/course_fonts.css?typefaceIds=${ae(je)}`]}})},86415:(Ze,xe,i)=>{"use strict";i.d(xe,{$H:()=>X,Bd:()=>Ie,DX:()=>W,Ge:()=>kt,MT:()=>ke,PH:()=>gt,SQ:()=>ft,Sd:()=>ie,UG:()=>ae,Uj:()=>Gt,Wz:()=>Je,_z:()=>je,cN:()=>me,dT:()=>ds,d_:()=>K,hM:()=>Re,kJ:()=>Xe,qm:()=>w,rv:()=>H,v1:()=>bt,vU:()=>te,x4:()=>xt});var D=i(50635),U=i(59288),z=i.n(U),re=i(83799),V=i.n(re),se=i(17247),ne=i.n(se),ee=i(5181),ue=i(63545),n=i(61556),ce=i(52706),pe=i(84728),Le=i(42006),le=i(38286),ge=i(20387),Be=i.n(ge);const $=(0,U.createContext)(null);$.displayName="CourseContext";function H({children:de,course:it,courseProgress:Et,l10n:rt,labels:Kt,partnerContent:Fe,search:M}){const ze=(0,U.useMemo)(()=>({course:it,courseProgress:Et,l10n:rt,labels:Kt,partnerContent:Fe,search:M}),[it,rt,Kt,Et,Fe,M]),ht=(0,U.useMemo)(()=>({l10n:(0,ge.omit)(["locales","defaultLocale"],rt)}),[rt]),ye=(0,U.useMemo)(()=>({l10n:{locales:rt?.locales,defaultLocale:rt?.defaultLocale,localeSelectorOptions:rt?.localeSelectorOptions}}),[rt?.defaultLocale,rt?.locales,rt?.localeSelectorOptions]);return(0,D.jsx)($.Provider,{value:ze,children:(0,D.jsx)(pe.xr.Provider,{value:ht,children:(0,D.jsx)(pe.zE.Provider,{value:ye,children:de})})})}const F=$.Consumer;function w(){return(0,U.useContext)($)}function W(){return w()?.course}function K(){return(0,pe.QQ)(W()?.title)}function ae(){const de=W();return de.selectedAuthorId==="none"||!("authors"in de)?null:de.selectedAuthorId?de.authors?.find(it=>it.id===de.selectedAuthorId):de.authors?.find(it=>it.id===de.author)}function Te(){return W().trackingQuizId}function te(){const{labels:de}=w()??{};return de}const me=({isCourseComplete:de,percentCourseComplete:it})=>{const Et=te(),{courseResume:rt,courseStart:Kt,processStartAgain:Fe}=Et;return{courseCTALabel:de?Fe:it>0?rt:Kt}};function ve(){const{courseProgress:de}=w();return de}function m(){return ve()?.lessons}function ie(){return ve()?.percentComplete}function je(){return W().lessonsOnly?.[0]}function ke(){const de=m(),it=Te();return(0,n.jI)(de,it)}function X(){const de=W(),{selectedAuthorId:it}=de?.lessons?.[0]??{};return it==="none"?{id:"none"}:de?.authors?.find?.(Et=>Et.id===it)}function Ie(){const{course:de,partnerContent:it}=w();return V()(ne()("id",de.selectedAuthorId),it.content)}function Re(){return Ie()?.data?.authors??null}function gt(){const{partnerContent:de}=w();return de?.content?.[0]?.data?.authors}function ft(){return w().search}function bt(){const{lessons:de}=W();return(0,U.useMemo)(()=>Array.isArray(de)?de.filter(({type:Et})=>Et!=="section").length:0,[de])}function kt(de){const rt=W()?.theme?.accentContrast;return typeof rt!="string"?ee.Em.LIGHT:rt===ee.Em.AUTO?(0,ce.xD)(de):rt}function xt(de){const it=(0,U.forwardRef)(({bgColor:Et,...rt},Kt)=>{const Fe=kt(Et);return(0,D.jsx)(de,{...rt,ref:Kt,accentContrast:Fe})});return it.displayName=`withAccentContrast(${de.displayName||de.name})`,it}function Gt(de){const it=(0,U.forwardRef)((Et,rt)=>{const{offset:Kt,...Fe}=Et,M=ut();return(0,D.jsx)(de,{...Fe,offset:M?0:Kt,ref:rt})});return it.displayName=`withEntranceAnimationOffset(${de.displayName||de.name})`,it}function Xe(){const de=W();return de?.theme?.colorAccent??de?.color}function ds(){return W()?.theme?.coverImageColor??ee.df.DARK}function Je(){const{currentLocale:de}=(0,le.nY)(),it=(0,pe.jc)(),Et=W();return(0,Le.V)({course:Et,locales:it,locale:de})}function ut(){const de=W();return de?.type===ue.y4&&de?.theme?.blockNavigationType===ee.HC.STEPPED}},84728:(Ze,xe,i)=>{"use strict";i.d(xe,{D_:()=>le,NB:()=>ue,QQ:()=>n,bs:()=>$,gY:()=>ee,jc:()=>Le,xr:()=>se,zE:()=>ne});var D=i(82719),U=i(86415),z=i(59288),re=i.n(z),V=i(38286);const se=(0,z.createContext)(null);se.displayName="TranslationContext";const ne=(0,z.createContext)(null);ne.displayName="LocalesContext";function ee(){const{currentLocale:H}=(0,V.nY)(),F=le(),w=ge();return(0,z.useCallback)(W=>(0,D.Dh)(W,H,F,w),[H,F,w])}function ue(){const{currentLocale:H}=(0,V.nY)(),F=le(),w=ge();return(0,z.useCallback)(W=>(0,D.UR)(W,H,F,w),[H,F,w])}function n(H){const{currentLocale:F}=(0,V.nY)(),w=le();let W=ge();const K=Be();return K&&Object.keys(K).length&&F&&W&&(W={...W,[F]:K}),(0,D.Dh)(H,F,w,W)}function ce(H){const{currentLocale:F}=useCurrentLocale(),w=le(),W=ge();return useMemo(()=>selectL10nRecursive(H,F,w,W),[F,w,H,W])}function pe(){return(0,z.use)(ne)}function Le(){const H=pe();return(0,D.S)(H)}function le(){const H=pe();return(0,D.HH)(H)}function ge(){const H=(0,z.use)(se);return(0,D.fF)(H)}function Be(){return(0,U.qm)()?.search?.translations}function $(){const H=(0,z.use)(se);return(0,D.cP)(H)}},38286:(Ze,xe,i)=>{"use strict";i.d(xe,{fH:()=>ce,nY:()=>pe,wZ:()=>Le});var D=i(50635),U=i(59288),z=i(26058),re=i(72147);function V({defaultLocale:le,locales:ge}={},Be=(0,re.Rr)(window.location.hash.slice(1))){let H=new URLSearchParams(Be.search).get("locale");const F=new URL(window.location.href);return F.pathname.startsWith("/view_pdf/")&&(H=F.searchParams.get("locale")),ge?.find(W=>W.locale===H)?.locale||le}var se=i(84728),ne=i(98228),ee=i(82719),ue=i(61708);const n=(0,U.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function ce({children:le}){const ge=(0,ne.W)(),Be=(0,z.zy)(),$=(0,ue.LY)(ee.HH),H=(0,se.D_)(),F=$||H,w=(0,ue.LY)(ee.S),W=(0,se.jc)(),K=w||W,ae=(0,U.useMemo)(()=>V({defaultLocale:F,locales:K},Be),[F,K,Be]),Te=(0,U.useCallback)((me,ve="replace")=>{const m=me===F?"":me,ie=new URLSearchParams(Be.search);ie.set("locale",m);const je={...Be,search:ie.toString()};ve==="push"?ge.push(je):ge.replace(je)},[F,ge,Be]),te=(0,U.useMemo)(()=>({currentLocale:ae,setCurrentLocale:Te}),[ae,Te]);return(0,D.jsx)(n.Provider,{value:te,children:le})}function pe(){return(0,U.useContext)(n)}function Le(le){const ge=Be=>{const $=pe();return(0,D.jsx)(le,{...Be,...$})};return ge.displayName=`withCurrentLocale(${le.displayName||le.name})`,ge}},17862:(Ze,xe,i)=>{"use strict";i.d(xe,{Ay:()=>K,iV:()=>ge,sS:()=>Le,x8:()=>Be});var D=i(10789),U=i.n(D),z=i(20817),re=i.n(z),V=i(63036),se=i.n(V),ne=i(2353),ee=i.n(ne),ue=i(3638),n=i.n(ue);const ce={DRAW_FROM_QUESTION_BANK:"DRAW_FROM_QUESTION_BANK",FILL_IN_THE_BLANK:"FILL_IN_THE_BLANK",MATCHING:"MATCHING",MULTIPLE_CHOICE:"MULTIPLE_CHOICE",MULTIPLE_RESPONSE:"MULTIPLE_RESPONSE"},pe=10;var Le=(ae=>(ae.SUMMARY="SUMMARY",ae.REMAINING="REMAINING",ae.ELAPSED="ELAPSED",ae.ELAPSED_TOTAL="ELAPSED_TOTAL",ae.HIDE_TIMER="HIDE_TIMER",ae))(Le||{}),le=(ae=>(ae.SUBMIT="SUBMIT",ae.REDO_QUIZ="REDO_QUIZ",ae.REDO_COURSE="REDO_COURSE",ae.NOTHING="NOTHING",ae))(le||{});const ge={ALL:"all",NONE:"none",INCORRECT:"incorrect"},Be=se()([[re()([ee()(!0),ee()(ge.ALL)]),U()(ge.ALL)],[re()([ee()(!1),ee()(ge.NONE)]),U()(ge.NONE)],[ee()(ge.INCORRECT),U()(ge.INCORRECT)],[n(),U()(ge.ALL)]]),$="draw from question bank",H="fillin",F="matching",w="multiple choice",W="multiple response",K=ce},33733:(Ze,xe,i)=>{"use strict";i.d(xe,{B1:()=>pe,BN:()=>le,F:()=>ue,R6:()=>ne,eB:()=>ce,q2:()=>ee});var D=i(50635),U=i(59288),z=i.n(U),re=i(23643),V=i(12786),se=i(20998);const ne=z().createContext(null),ee=z().createContext(!1),ue=ge=>(0,D.jsx)(ee.Provider,{value:!0,children:(0,D.jsx)(re.A,{...ge})});function n(ge){return class extends z().Component{static displayName=`withStaleTransitionState(${ge.displayName||ge.name})`;static defaultProps={onEnter:()=>{},onEntering:()=>{},onEntered:()=>{},onExit:()=>{},onExiting:()=>{},onExited:()=>{}};nodeRef=z().createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor($){super($),this.state={transitionState:null},this.onEnterDelegate=this.onTransition.bind(this,"enter"),this.onEnteringDelegate=this.onTransition.bind(this,"entering"),this.onEnteredDelegate=this.onTransition.bind(this,"entered"),this.onExitDelegate=this.onTransition.bind(this,"exit"),this.onExitingDelegate=this.onTransition.bind(this,"exiting"),this.onExitedDelegate=this.onTransition.bind(this,"exited")}onTransition=($,...H)=>{this.setState({transitionState:$});const F="on"+$[0].toUpperCase()+$.slice(1),w=this.props[F];typeof w=="function"&&w(...H)};render(){return(0,D.jsx)(ne.Provider,{value:this.state.transitionState,children:(0,D.jsx)(ge,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntering:this.onEnteringDelegate,onEntered:this.onEnteredDelegate,onExit:this.onExitDelegate,onExiting:this.onExitingDelegate,onExited:this.onExitedDelegate})})}}}const ce=n(V.Ay),pe=n(se.A);function Le(ge){const Be=z().useContext(ee),$=z().useContext(ne),H=z().useRef(ge);return Be&&$?.startsWith?.("exit")||(H.current=ge),H.current}function le(ge){const Be=$=>{const H=Le($);return(0,D.jsx)(ge,{...H,ref:$.ref,nodeRef:$.ref})};return Be.displayName=`withTransitionableState(${ge.displayName||ge.name||"Component"})`,Be}},31926:(Ze,xe,i)=>{var D={"./en-au":76645,"./en-au.js":76645,"./en-ca":97135,"./en-ca.js":97135,"./en-gb":67702,"./en-gb.js":67702,"./en-ie":6813,"./en-ie.js":6813,"./en-il":3766,"./en-il.js":3766,"./en-in":8364,"./en-in.js":8364,"./en-nz":8335,"./en-nz.js":8335,"./en-sg":82813,"./en-sg.js":82813};function U(re){var V=z(re);return i(V)}function z(re){if(!i.o(D,re)){var V=new Error("Cannot find module '"+re+"'");throw V.code="MODULE_NOT_FOUND",V}return D[re]}U.keys=function(){return Object.keys(D)},U.resolve=z,Ze.exports=U,U.id=31926},54357:()=>{},70872:()=>{},38954:()=>{},73059:()=>{},43611:()=>{},94800:()=>{},566:()=>{},82988:()=>{}}]);
