(self.wpRiseJsonp=self.wpRiseJsonp||[]).push([["learn_main_tsx-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349:_e=>{_e.exports=function(ge){ge||(ge={});var __t,__p="";with(ge)__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}},19752:(_e,ge,i)=>{"use strict";i.d(ge,{cF:()=>Ze,LK:()=>tn,LM:()=>us,TJ:()=>cr,Ay:()=>ar,EL:()=>Re,HC:()=>Yr,V7:()=>fn});var P=i(24331),H=i(82298),U=i.n(H),q=i(27905),V=i.n(q),J=i(38576),ee=i.n(J),Y=i(34198),ie=i.n(Y),s=i(91794),Ce=i.n(s),be=i(34379),ye=i.n(be),te=i(56401),_=i.n(te),de=i(28507),$=i.n(de),re=i(15241),se=i.n(re),M=i(72168),Q=i.n(M),X=i(4322),me=i.n(X),Le=i(53970),ne=i.n(Le),je=i(77778),pe=i.n(je),h=i(7827),K=i.n(h),fe=i(78324),Ne=i.n(fe),O=i(17247),he=i.n(O),ve=i(84136),Ae=i.n(ve),He=i(98511),Je=i.n(He),ft=i(91301),mt=i.n(ft),vt=i(97886),Te=i.n(vt),rt=i(86484),Ue=i.n(rt),$e=i(36523),we=i(35965),Ot=i(58931),Ke=i(34984),Xe=i(88747);const gt=(Ct=[],Dt)=>Dt?.partnerContentId?Ct.concat(Dt.partnerContentId):Ct,Ut=(Ct,Dt)=>Dt?.items?.reduce(gt,Ct)??Ct,z=(Ct,Dt)=>Dt?.items?.reduce(Ut,Ct)??Ct,at=({course:Ct,lessons:Dt})=>{const st=Dt?.reduce(z,[])||[],gn=Ct?.partnerContentId||null,es=gn?[gn]:[],To=new Set([...st,...es]);return Array.from(To)};var bt=i(92348),Pe=i.n(bt);const xs=null,Vs=Pe()({ACTIVE:null,PREVIEW:null}),De=({themeId:Ct,themeCoverImage:Dt,coverImageDefault:st})=>Ct==="classic"&&isNonEmptyString(st)?st:Dt,Gs=Ct=>({...Ct,theme:{...Ct?.theme,hideLessonHeaders:Ct?.theme?.hideLessonHeaders??!1}});var Ws=i(17862),ns=i(94379),mn=i(95172),Vt=i(44625);const tn="rise/course/LOAD_COURSE",Eo="rise/course/UPDATE_COMPLETED_AT",us="rise/course/UPDATE_COURSE_PREVIEW",Ze="rise/course/APPLY_CHANGESET",Rt=Te()(ie()(_(),K()(["settings","revealAnswers"])),pe()($()(["settings","revealAnswers"]),Ws.x8)),Ye=Ue()(mn.vm,mn.Ww),It=ie()(Rt,Ye),pn=pe()(se()("lessons"),Q()(It)),ys=Ct=>ie()(me()(Ct),ne()("lessonsOnly"),Je()(he()("type","section")))(Ct.lessons),no=Ae()(_(),"theme"),Sn=ie()(Xe.MJ,Xe.uK),Vo=Ce()(no,Sn,Xe.MJ),Nn=ie()(Gs,Vo),wt=(Ct,Dt)=>{let st=(0,P.TJ)(["course"],Dt,Ct).result;return st=V()("lessons",(0,P.TJ)(["lessons"],Dt,st.lessons).result,st),st},Xt=Ct=>({...Ct,lessons:Ct.lessons?.map(Vt.K)||[]}),oo=(Ct,{completedAt:Dt,course:st,favoritedAt:gn,riseComCurrentUser:es,riseComCourseId:To,riseComEnrollmentType:hs,riseComLearningPathId:_r})=>Ne()(pn,ys,me()(U(),{completedAt:Dt,favoritedAt:gn,riseComCourseId:To,riseComEnrollmentType:hs,riseComCurrentUser:es,riseComLearningPathId:_r}),Nn)(st),$s=mt()(V()("favoritedAt",new Date)),Qr=mt()(V()("favoritedAt",null)),Lo=mt()(ee()("completedAt",()=>new Date().toISOString())),ar=(0,$e.handle)({},{[Ot._q]:$s,[Ot.ut]:Qr,[tn]:oo,[Eo]:Lo,[us]:(Ct,{course:Dt})=>Dt,[Ze]:wt}),ir=Ct=>Dt=>{const{statusCode:st}=Dt;st===404&&Ct((0,ns.cX)(!0))},ro=Ct=>Dt=>Dt([(0,$e.action)(Ke.O,Ct),(0,ns.$d)(!0)]),lr=Ct=>ye()(Ct)?(0,ns.$d)(!0):(0,we.qO)(Ct).map(ro),Zr=Ct=>Dt=>{const{course:st}=Dt,gn=Xt(st),es=at({course:gn,lessons:gn.lessons});Ct([(0,$e.action)(tn,{...Dt,course:gn,_originalLessons:st.lessons}),(0,ns.LW)(!0),lr(es)])},Re=Ct=>Dt=>(0,we.hd)(void 0,Ct).then(Zr(Dt)).catch(ir(Dt)),Yr=(0,$e.action)(tn),fn=(0,$e.action)(us),cr=(0,$e.action)(Ze)},76135:(_e,ge,i)=>{"use strict";i.d(ge,{Kl:()=>U,Om:()=>V,RA:()=>_,Sw:()=>Ce,V9:()=>ye,Zp:()=>Y,bf:()=>q,eQ:()=>s,i$:()=>de,re:()=>te,sq:()=>ee,ss:()=>be,w8:()=>J,y1:()=>ie});var P=i(36523);const H=$=>`rise/course/${$}`,U=H("BLOCKS_LESSON_COMPLETE"),q=H("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),V=H("BLOCKS_LESSON_RESET"),J=H("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),ee=H("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),Y=H("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),ie=H("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),s=(0,P.action)(U),Ce=(0,P.action)(q),be=(0,P.action)(V),ye=(0,P.action)(J),te=(0,P.action)(ee),_=(0,P.action)(Y),de=(0,P.action)(ie)},31896:(_e,ge,i)=>{"use strict";i.d(ge,{$Z:()=>Y,Ew:()=>V,GL:()=>q,UZ:()=>J,_Y:()=>s,jS:()=>ie,tc:()=>ee});var P=i(96192),H=i(67644),U=i(67757);function q(M,Q){const X=M.lessons[Q];if(!(0,P.rV)(X))return M;const me={...be(X),id:Q},Le=(0,P.b5)({courseProgress:M,lessonId:Q,updatedLessonProgress:me});return(0,P.bo)({lessonId:Q,prevCourseProgress:M,nextCourseProgress:Le})}function V(M,Q){const{lessonId:X,blockId:me,itemId:Le}=Q,ne=M.lessons[X];if(!(0,P.rV)(ne))return M;const je=ne.items[me],pe=te({blockProgress:je,itemId:Le}),h=de({lessonProgress:ne,blockId:me,updatedBlockProgress:pe}),K=(0,H.hh)(h),fe=(0,P.b5)({courseProgress:M,lessonId:X,updatedLessonProgress:K});return(0,P.bo)({lessonId:X,prevCourseProgress:M,nextCourseProgress:fe})}function J(M,Q){const X=M.lessons[Q];if(!(0,P.rV)(X))return M;const me=$(X),Le=(0,P.b5)({courseProgress:M,lessonId:Q,updatedLessonProgress:me});return(0,P.bo)({lessonId:Q,prevCourseProgress:M,nextCourseProgress:Le})}function ee(M,{blockId:Q,lessonId:X}){const me=M.lessons[X];if(!(0,P.rV)(me))return M;const Le=re(me.items[Q]),ne=de({lessonProgress:me,blockId:Q,updatedBlockProgress:Le}),je=(0,P.b5)({courseProgress:M,lessonId:X,updatedLessonProgress:ne});return(0,P.bo)({lessonId:X,prevCourseProgress:M,nextCourseProgress:je})}function Y(M,Q){const{lessonId:X,blockId:me,items:Le}=Q,ne=M.lessons[X];if(!(0,P.rV)(ne))return M;const je=ye({blockId:me,lessonProgress:ne,items:Le}),pe=(0,P.b5)({courseProgress:M,lessonId:X,updatedLessonProgress:je});return(0,P.bo)({lessonId:X,prevCourseProgress:M,nextCourseProgress:pe})}function ie(M,Q){const{lessonId:X,blockId:me,itemId:Le,playheadPercentage:ne}=Q,je=M.lessons[X],pe=je?.items?.[me];if(!(0,P.rV)(je)||!pe||!("items"in pe)||!pe.items||!pe.items[Le])return M;const K={...pe.items[Le],audioVideoPlayhead:ne},fe={...pe,items:{...pe.items,[Le]:K}},Ne=de({lessonProgress:je,blockId:me,updatedBlockProgress:fe}),O=(0,P.b5)({courseProgress:M,lessonId:X,updatedLessonProgress:Ne});return(0,P.bo)({lessonId:X,prevCourseProgress:M,nextCourseProgress:O})}function s(M,Q){const{lessonId:X,blockId:me,itemId:Le,isCorrect:ne}=Q,je=M.lessons[X];if(!(0,P.rV)(je))return M;const pe=se({itemId:Le,isCorrect:ne,blockProgress:je.items[me]}),h=(0,H.hh)(de({lessonProgress:je,blockId:me,updatedBlockProgress:pe})),K=(0,P.b5)({courseProgress:M,lessonId:X,updatedLessonProgress:h});return(0,P.bo)({lessonId:X,prevCourseProgress:M,nextCourseProgress:K})}const Ce=M=>Object.values(M).length>0&&Object.values(M).every(Q=>Q.isComplete),be=M=>{const Q=(0,U.s0)(M.items,(X,me)=>{const Le=(0,U.s0)(me.items??{},(ne,je)=>[ne,{...je,isComplete:!0,id:je.id,index:je.index}]);return[X,{...me,items:Le,isComplete:!0}]});return{...M,isComplete:!0,items:Q,percentComplete:100}},ye=({blockId:M,items:Q,lessonProgress:X})=>{const me=X.items?.[M]??{items:{}},Le=new Set(Q.map(K=>String(K.id))),ne=(0,U.s0)(me.items??{},(K,fe)=>{const Ne=Le.has(K);return[K,{...fe,isComplete:fe.isComplete||Ne,id:fe.id,index:fe.index}]}),pe=Object.keys(ne).length===0||Ce(ne),h={...me,id:M,items:ne,...pe&&{isComplete:!0}};return _(de({lessonProgress:X,blockId:M,updatedBlockProgress:h}))},te=({blockProgress:M,itemId:Q})=>{if(!M.items)return M;const X=M.items[Q];return{...M,items:{...M.items,[Q]:{...X,retryAttemptCount:(X?.retryAttemptCount??0)+1}}}},_=M=>{const Q=(0,H.hh)(M);return Q.percentComplete===100?{...Q,isComplete:!0}:Q},de=({blockId:M,lessonProgress:Q,updatedBlockProgress:X})=>({...Q,items:{...Q.items,[M]:X}}),$=M=>{const Q=(0,U.s0)(M.items,(X,me)=>{const Le=(0,U.s0)(me.items??{},(ne,je)=>[ne,(0,U.QD)(je,["isComplete","isCorrect","isViewed"])]);return[X,{id:me.id,index:me.index,items:Le}]});return{...(0,U.QD)(M,["isComplete","percentComplete"]),items:Q}},re=M=>({...(0,U.QD)(M,["percentViewed","correctlyAnswered"]),id:M.id,index:M.index,items:(0,U.s0)(M.items??{},(Q,X)=>[Q,(0,U.QD)(X,["isViewed","isCorrect"])]),retryAttempts:(M.retryAttempts??0)+1}),se=({isCorrect:M,itemId:Q,blockProgress:X})=>{if(!X.items)return X;const me=X.items[Q],Le={...me,isComplete:M,isViewed:M,...me?.isCorrect===void 0&&{isCorrect:M}},ne={...X.items,[Q]:Le},je=Object.values(ne).filter(Ne=>Ne.isCorrect).length,pe={...X,items:ne,correctlyAnswered:je,...!M&&{lastIncorrectCardId:Q}},h=(0,H.f5)(pe),K=(0,H.QI)(h),fe=K.percentComplete===100;return{...K,...fe&&{isComplete:!0}}}},96192:(_e,ge,i)=>{"use strict";i.d(ge,{Zn:()=>q,b5:()=>J,bo:()=>ee,rV:()=>V});var P=i(37253),H=i.n(P),U=i(35965);const q=ye=>!!ye&&ye.type==="quiz",V=ye=>!!ye&&ye.type==="blocks",J=({courseProgress:ye,lessonId:te,updatedLessonProgress:_})=>({...ye,lessons:{...ye.lessons,[te]:_}});function ee({lessonId:ye,nextCourseProgress:te,prevCourseProgress:_}){const de=te.lessons[ye],$=_.lessons[ye];if(de&&!H()(de,$)&&((0,U.C2)(de),Y({lessonId:ye,courseProgress:te,prevCourseProgress:_})),ie({lessonId:ye,prevCourseProgress:_,nextCourseProgress:te})){const re=Ce(_),se=Ce(te),M=se!==re,Q={...te,percentComplete:se};return M&&(be({courseProgress:Q,lessonProgress:de}),Q.percentComplete!=null&&(0,U.O9)(Q.percentComplete)),Q}return te}function Y({courseProgress:ye,prevCourseProgress:te,lessonId:_}){const de=ye.lessons?.[_],$=te.lessons?.[_];if(de?.percentComplete===100&&$?.percentComplete!==100){const re=s(de);re&&(0,U.aM)(re)}}function ie({lessonId:ye,nextCourseProgress:te,prevCourseProgress:_}){const de=te.lessons?.[ye];if(!de)return!1;const $=_.lessons?.[ye]?.percentComplete===100,re=de.percentComplete===100,se=$!==re,M=te.currentLesson!=null&&q(te.lessons[te.currentLesson])&&te.lessons[te.currentLesson]?.percentComplete===100;return se||M}function s(ye){const{id:te}=ye;if(!te)throw new Error("Cannot create lesson payload: lesson.id is missing");if(q(ye)){const{passed:_,score:de,passingScore:$=0}=ye;return{id:te,..._!==void 0&&{passed:_},...de!==void 0&&{score:de},passingScore:$}}return{id:te}}function Ce(ye){const{lessons:te={}}=ye,_=Object.keys(te).length;if(_===0)return 0;const de=Object.values(te).filter($=>$.isComplete).length;return Math.round(de/_*100)}function be({courseProgress:ye,lessonProgress:te}){if(!ye||!te)return;const _=s(te);_&&(0,U.vb)(ye,_)}},36939:(_e,ge,i)=>{"use strict";i.d(ge,{B:()=>Q,A:()=>me});var P=i(36523),H=i(35965),U=i(76135),q=i(31896),V=i(6408),J=i(79335),ee=i(67644),Y=i(44625),ie=i(63545);const s=O=>O&&typeof O=="object"&&O.type&&ie.fT.includes(O.type),Ce=(O,he)=>{const ve=new Map;return O.forEach(Ae=>{if((0,Y.c)(Ae)){const He=he.find(Je=>String(Je.id)===String(Ae.id));He&&He.type==="blocks"&&ve.set(String(Ae.id),String(He.id))}}),ve},be=(O,he)=>{const ve={id:String(O.id),index:O.index,type:"blocks",items:{}};return typeof O.isComplete=="boolean"&&(ve.isComplete=O.isComplete),typeof O.percentComplete=="number"&&(ve.percentComplete=O.percentComplete),he.type==="blocks"&&he.items&&he.items.forEach((Ae,He)=>{if(Ae?.id!=null&&(ve.items[Ae.id]={id:Ae.id,index:He,isComplete:O.isComplete===!0&&He===0,items:Ae.items?{}:void 0},Ae.items&&Array.isArray(Ae.items))){const Je={};Ae.items.forEach((ft,mt)=>{ft?.id!=null&&(Je[ft.id]={id:ft.id,index:mt,isComplete:O.isComplete===!0})}),Object.keys(Je).length>0&&(ve.items[Ae.id].items=Je)}}),ve},ye=(O,he)=>{const ve=new Set(he.map(He=>String(He.id))),Ae=[];return Object.values(O.lessons).forEach(He=>{s(He)&&(ve.has(String(He.id))||Ae.push(He))}),Ae},te=(O,he,ve)=>{const Ae={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},He={...O,lessons:{...O.lessons}},Je=ye(O,ve);Ae.totalLegacyLessons=Je.length;const ft=Ce(he,ve),mt=[];return Je.forEach(vt=>{try{const Te=ft.get(String(vt.id))||String(vt.id),rt=ve.find(Ue=>String(Ue.id)===Te);if(rt&&rt.type==="blocks"){const Ue=be(vt,rt);He.lessons[String(rt.id)]=Ue,String(vt.id)!==String(rt.id)&&delete He.lessons[String(vt.id)],Ae.successfulMigrations++}else mt.push(String(vt.id)),Ae.failedMigrations++}catch(Te){console.warn(`Failed to migrate legacy lesson progress for lesson ${vt.id}:`,Te),mt.push(String(vt.id)),Ae.failedMigrations++}}),{migratedProgress:He,orphanedLessonIds:mt,migrationSummary:Ae}},_=O=>Object.values(O.lessons).some(s),de=O=>{let he=0,ve=0;const Ae=[];return Object.values(O.lessons).forEach(He=>{ve++,s(He)&&(he++,Ae.includes(He.type)||Ae.push(He.type))}),{legacyCount:he,totalCount:ve,legacyTypes:Ae,hasLegacyProgress:he>0}},$=(O,he,ve)=>{if(!_(O))return O;const Ae=te(O,he,ve);return Ae.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",Ae.orphanedLessonIds),Ae.migratedProgress},re=O=>`rise/course/${O}`,se=re("BOOKMARK_LESSON"),M=re("LOAD_COURSE"),Q=(0,P.action)(se),X={lessons:{},percentComplete:0},me=(0,P.handle)(X,{[U.Kl]:q.GL,[U.bf]:q.Ew,[U.Om]:q.UZ,[U.w8]:q.tc,[U.sq]:q.$Z,[U.Zp]:q.jS,[U.y1]:q._Y,[V.z_]:J.Qv,[V.Eg]:J.Ki,[V.be]:J.ZL,[V.jZ]:J.Jx,[V.Ck]:J.pl,[V.fV]:J.Ux,[V.jo]:J.NZ,[V.V8]:J.uR,[V.Z8]:J.XW,[V.Dh]:J.yi,[V.ug]:J.bu,[se]:ne,[M]:Le});function Le(O,he){const ve=he.course?.lessons??[],Ae=he._originalLessons??ve,He=(0,H.y4)(h(ve));if(typeof He!="object"||He===null)return O;const Je={...O,...He};return _(O)&&Ae!==ve?$(Je,Ae,ve):Je}function ne(O,he){return(0,H.Fc)(he),{...O,currentLesson:he}}const je=({index:O,lessonId:he,settings:ve,type:Ae})=>Ae==="quiz"?{id:he,index:O,type:Ae,items:{},passingScore:Number(ve?.passingScore??0)}:{id:he,index:O,type:"blocks",items:{}};function pe(O){return O.type==="quiz"&&"settings"in O}function h(O){return{lessons:O.reduce((ve,Ae,He)=>pe(Ae)?K({index:He,items:Ae.items,lessonId:Ae.id,lessonProgress:ve,settings:Ae.settings,type:Ae.type}):Ae.type==="blocks"?K({index:He,items:Ae.items,lessonId:Ae.id,lessonProgress:ve,type:Ae.type}):ve,{})}}function K(O){const{lessonId:he,index:ve,items:Ae,lessonProgress:He={},settings:Je,type:ft}=O,mt=je({lessonId:he,index:ve,settings:Je,type:ft});if(Ae.length===0)return{...He,[he]:mt};const vt=ft==="quiz"?Ne(Ae):fe(Ae);return{...He,[he]:{...mt,items:vt}}}function fe(O){return O.reduce((he,ve,Ae)=>{const He=ve.id,Je=ve.items??[],ft=(0,ee.BC)(Je);return he[He]={id:He,index:Ae,items:ft},he},{})}function Ne(O){return O.reduce((he,ve,Ae)=>(he[ve.id]={id:ve.id,index:Ae},he),{})}},6408:(_e,ge,i)=>{"use strict";i.d(ge,{Ck:()=>J,Dh:()=>be,Eg:()=>s,FU:()=>de,NC:()=>Q,Nj:()=>re,QI:()=>te,RW:()=>me,V8:()=>ie,YC:()=>_,Yu:()=>$,Z8:()=>Ce,be:()=>q,fV:()=>ee,hy:()=>M,jZ:()=>V,jo:()=>Y,kK:()=>X,mg:()=>se,ug:()=>ye,x6:()=>Le,z_:()=>U});var P=i(36523);const H=ne=>`rise/course/${ne}`,U=H("QUIZ_LESSON_ADVANCE_STEP"),q=H("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),V=H("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),J=H("QUIZ_LESSON_RESTART"),ee=H("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),Y=H("QUIZ_LESSON_SET_ANSWER_MATCHES"),ie=H("QUIZ_LESSON_SET_ANSWER_TEXT"),s=H("QUIZ_LESSON_ADVANCE_TO_END"),Ce=H("QUIZ_LESSON_SET_TIME_REMAINING"),be=H("QUIZ_LESSON_SUBMIT_ANSWER"),ye=H("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),te=(0,P.action)(U),_=(0,P.action)(s),de=(0,P.action)(J),$=(0,P.action)(ee),re=(0,P.action)(ie),se=(0,P.action)(ye),M=(0,P.action)(Ce),Q=(0,P.action)(Y),X=(0,P.action)(be),me=(0,P.action)(q),Le=(0,P.action)(V)},79335:(_e,ge,i)=>{"use strict";i.d(ge,{Jx:()=>ee,Ki:()=>V,NZ:()=>Ce,Qv:()=>q,Ux:()=>s,XW:()=>be,ZL:()=>J,bu:()=>te,oO:()=>de,pl:()=>ie,uR:()=>Y,yi:()=>ye});var P=i(96192),H=i(67757),U=i(35965);function q($,re){const se=$.lessons[re];if(!(0,P.Zn)(se))return $;const M=se.activeIndex??0,Q={...se,activeIndex:M+1},X=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:Q});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:X})}function V($,re){const se=$.lessons[re];if(!(0,P.Zn)(se))return $;const M=Object.keys(se?.items)?.length,Q={...se,activeIndex:M+1},X=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:Q});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:X})}function J($,{lessonId:re,itemId:se}){const M=$.lessons[re];if(!(0,P.Zn)(M))return $;const Q=M.items[se];if(!Q)return $;const X={...Q,selectedIndices:[]},me=_({lessonProgress:M,itemId:se,updatedQuizItemProgress:X}),Le=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:me});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:Le})}function ee($,{lessonId:re,lessonProgress:se}){return{...$,lessons:{...$.lessons,[re]:se}}}function Y($,{lessonId:re,itemId:se,text:M}){const Q=$.lessons[re];if(!(0,P.Zn)(Q))return $;const X=Q.items[se];if(!X)return $;const me=typeof M=="string"&&M.trim()===""?(0,H.QD)(X,["text"]):{...X,text:M},Le=_({lessonProgress:Q,itemId:se,updatedQuizItemProgress:me}),ne=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:Le});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:ne})}function ie($,re){const se=$.lessons[re];if(!(0,P.Zn)(se))return $;const M=(0,H.s0)(se.items,(Le,ne)=>{const je={id:ne.id,index:ne.index};return[Le,je]}),X={...(0,H.QD)(se,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...se.passed!==!1&&{passed:se.passed},...se.isComplete!==!1&&{isComplete:se.isComplete},retryAttempts:(se.retryAttempts??0)+1,items:M},me=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:X});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:me})}function s($,{lessonId:re,itemId:se,selectedIndex:M,shuffledAnswerIndices:Q}){const X=$.lessons[re];if(!(0,P.Zn)(X))return $;const me=X.items[se];if(!me)return $;const Le=Q??me.shuffledAnswerIndices;if(M==null)return $;const ne=Array.isArray(Le)&&Le[M]!=null?Le[M]:M,je={...me,selectedIndex:ne,...Array.isArray(Le)&&{shuffledAnswerIndices:Le}},pe=_({lessonProgress:X,itemId:se,updatedQuizItemProgress:je}),h=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:pe});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:h})}function Ce($,{lessonId:re,itemId:se,matches:M}){const Q=$.lessons[re];if(!(0,P.Zn)(Q))return $;const X=Q.items[se];if(!X)return $;const me={...X,matches:M},Le=_({lessonProgress:Q,itemId:se,updatedQuizItemProgress:me}),ne=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:Le});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:ne})}function be($,{lessonId:re,timeRemaining:se}){const M=$.lessons[re];if(!(0,P.Zn)(M))return $;const Q={...M,timeRemaining:se},X=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:Q});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:X})}function ye($,{lessonId:re,itemId:se,isCorrect:M,finalRetryAttempt:Q,passToContinue:X}){const me=$.lessons[re];if(!(0,P.Zn)(me))return $;const Le=me.passingScore??0,ne=me.items[se];if(!ne)return $;const je={...ne,isCorrect:M,isComplete:!0},pe={...me.items,[se]:je},h=Object.keys(pe).length,K=Object.values(pe).filter(ve=>ve.isCorrect).length,fe=Math.round(K/h*100),Ne=Math.round(Object.values(pe).filter(ve=>ve.isComplete).length/h*100);let O={...me,items:pe,score:fe,percentComplete:Ne};if(Ne===100){const ve=fe>=Le,Ae=X?ve:!0;(0,U.X_)(ve,fe,re,Q),O={...O,passed:ve,isComplete:Ae,reportResults:!0}}const he=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:O});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:he})}function te($,{lessonId:re,itemId:se,selectedIndex:M,shuffledAnswerIndices:Q}){const X=$.lessons[re];if(!(0,P.Zn)(X))return $;const me=X.items[se];if(!me)return $;const Le=Q??me.shuffledAnswerIndices;if(M==null)return $;const ne=Array.isArray(Le)&&Le[M]!=null?Le[M]:M,je=me.selectedIndices??[],h=je.includes(ne)?je.filter(ve=>ve!==ne):[...je,ne],{selectedIndices:K,...fe}=me,Ne=h.length>0?{...fe,selectedIndices:h,...Array.isArray(Le)&&{shuffledAnswerIndices:Le}}:{...fe,...Array.isArray(Le)&&{shuffledAnswerIndices:Le}},O=_({lessonProgress:X,itemId:se,updatedQuizItemProgress:Ne}),he=(0,P.b5)({courseProgress:$,lessonId:re,updatedLessonProgress:O});return(0,P.bo)({lessonId:re,prevCourseProgress:$,nextCourseProgress:he})}function _({itemId:$,lessonProgress:re,updatedQuizItemProgress:se}){return{...re,items:{...re.items,[$]:se}}}function de($,re){const{id:se,passed:M,passingScore:Q,score:X,retryAttempts:me}=re,Le=[M,me,X];if(!(Le.length===3&&Le.every(Ne=>Ne!=null)))return $;const je=$.lessons?.[se]?.items??{},pe=Object.keys(je).length+1,h=$.lessons?.[se];if(!h)return $;const K={...h,isComplete:!0,activeIndex:pe,reportResults:!0,passed:M,passingScore:Q,percentComplete:100,retryAttempts:me,score:X};return{...$,lessons:{...$.lessons,[se]:K}}}},86145:(_e,ge,i)=>{"use strict";i.d(ge,{Ay:()=>s,Wp:()=>Y});var P=i(36523),H=i(19752),U=i(24331);const q="rise/l10n/TOGGLE_LOCALE_SELECTOR",V=null,J=(Ce,{l10n:be})=>({...Ce,...be}),ee=(Ce,be)=>(0,U.TJ)(["l10n"],be,Ce).result,Y=(0,P.action)(q),ie=(Ce,be)=>({...Ce,...!be&&{localeSelectorOptions:void 0},showLocaleSelector:be}),s=(0,P.handle)(V,{[H.LK]:J,[H.LM]:J,[H.cF]:ee,[q]:ie})},2316:(_e,ge,i)=>{"use strict";i.d(ge,{Ay:()=>$,D2:()=>X,NM:()=>Le,Se:()=>se,gA:()=>Q,ts:()=>M,u:()=>me});var P=i(27905),H=i.n(P),U=i(36523);const q="rise/search/RESET_SEARCH",V="rise/search/SET_SEARCH_ACTIVE",J="rise/search/SET_SEARCH_ACTIVE_LESSONS",ee="rise/search/SET_SEARCH_TRANSLATIONS",Y="rise/search/SET_SEARCH_LESSONS",ie="rise/search/SET_SEARCH_TERM",s={active:!1,activeLessons:[],translations:{},lessons:[],term:null},Ce=(ne,je)=>je?H()("active",ne.active,s):ne,be=(ne,je)=>H()("active",je,ne),ye=(ne,je)=>H()("activeLessons",je,ne),te=(ne,je)=>H()("translations",je,ne),_=(ne,je)=>H()("lessons",je,ne),de=(ne,je)=>H()("term",je,ne),$=(0,U.handle)(s,{[q]:Ce,[V]:be,[J]:ye,[ee]:te,[Y]:_,[ie]:de}),re=ne=>(0,U.action)(ne),se=re(q),M=re(V),Q=re(J),X=re(ee),me=re(Y),Le=re(ie)},18391:(_e,ge,i)=>{"use strict";i.d(ge,{Kq:()=>Ot,Ng:()=>Ke,iE:()=>Xe,JD:()=>gt,M_:()=>Ut,wA:()=>z,d4:()=>at});var P=i(61708),H=i(19752),U=i(4322),q=i.n(U),V=i(36523);const J=(bt,{labelSet:Pe})=>q()(bt,Pe),ee=(0,V.handle)({},{[H.LK]:J});var Y=i(36939),ie=i(63006),s=i(94983),Ce=i(13662),be=i(86145),ye=i(16829),te=i(55328),_=i.n(te),de=i(45949),$=i.n(de),re=i(78107),se=i.n(re),M=i(17247),Q=i.n(M),X=i(41558),me=i.n(X),Le=i(70405),ne=i.n(Le),je=i(34984);const pe=(bt,Pe)=>{const xs=se()(Q()("id",Pe.id),bt.content),Vs=xs===-1?_()(Pe):ne()(xs,Pe);return $()({content:Vs},bt)},h=(bt,Pe)=>me()(pe,bt,Pe),K={[je.O]:h},fe=(0,V.handle)({content:[]},K);var Ne=i(2316),O=i(88523),he=i(29249),ve=i(94379),Ae=i(72181);const He={isOpen:!1,transcript:null},Je=(bt,Pe)=>({...bt,isOpen:!0,transcript:Pe}),ft=()=>({isOpen:!1,transcript:null}),mt=(bt,Pe)=>bt.isOpen?{...bt,transcript:Pe}:bt,vt={[Ae.l6]:Je,[Ae.ju]:ft,[Ae.Y8]:mt},Te=(0,V.handle)(He,vt);var rt=i(5683),Ue=i(83416);const $e=Ue.BI?{learningPathUpNext:ye.A}:{},we=(0,P.HY)({course:H.Ay,courseLabels:ee,courseProgress:Y.A,features:ie.A,fonts:s.A,global:Ce.Ay,l10n:be.Ay,partnerContent:fe,search:Ne.Ay,sessionPreferences:O.Ay,slidesUI:he.Ay,status:ve.Ay,transcriptPanel:Te,ui:rt.A,...$e}),{Provider:Ot,connect:Ke,connectBase:Xe,dispatch:gt,store:Ut,useDispatch:z,useSelector:at}=(0,P.Nv)(we)},44625:(_e,ge,i)=>{"use strict";i.d(ge,{K:()=>pe,c:()=>je});var P=i(63545);const H={padding:"medium",alignment:"left"},U={embed:{aspectRatio:"16:9"},video:{controls:!0,autoplay:!1},labeledgraphic:{hotspotStyle:"numbers"},process:{navigation:"stepped"},sorting:{feedback:"immediate"},timeline:{orientation:"vertical"},paragraph:{fontSize:"medium"}},q=(h,K=0)=>`item_${h}_${K}`,V=(h,K)=>[{id:q(`${K}_placeholder`,0),placeholder:!0,type:h,title:`Add ${h} content`}],J=h=>({...H,...U[h]??{}}),ee=h=>typeof h=="string"?h.replace(/<p><br><\/p>/g,""):h,Y=h=>h.map(K=>{if(K&&typeof K=="object"&&!Array.isArray(K)){const fe={};for(const[Ne,O]of Object.entries(K))fe[Ne]=ee(O);return fe}return K}),ie=h=>["Introduction","Summary"].map((K,fe)=>({id:q(`${h}_process`,fe),title:K,type:K.toLowerCase(),description:null,isHidden:!0})),s=(h,K)=>[{id:q(`${K}_text`,0),paragraph:h}],Ce=(h,K)=>[...ie(K),...h],be=(h,K)=>[{id:q(`${K}_video`,0),caption:"",media:h}],ye=(h=[],K)=>({family:"multimedia",id:q(`${K}_embed`,0),items:h.length?h:V("embed",K),media:{},settings:J("embed"),type:"multimedia",variant:"embed"}),te=(h,K,fe)=>({family:"interactive-fullscreen",id:q(`${fe}_labeledgraphic`,0),items:h,media:K,settings:J("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),_=(h,K)=>({family:"interactive-fullscreen",id:q(`${K}_process`,0),items:Y(h),media:{},settings:J("process"),type:"interactive",variant:"process"}),de=({items:h,piles:K},fe)=>({family:"interactive-fullscreen",id:q(`${fe}_sorting`,0),items:h,media:{},piles:K,settings:J("sorting"),type:"interactive",variant:"sorting"}),$=(h,K)=>({family:"text",id:q(`${K}_text`,0),items:Y(h),settings:J("paragraph"),type:"text",variant:"paragraph"}),re=(h,K)=>({family:"interactive-fullscreen",id:q(`${K}_timeline`,0),items:h,media:{},settings:J("timeline"),type:"interactive",variant:"timeline"}),se=(h,K={},fe)=>({family:"multimedia",id:q(`${fe}_video`,0),items:h?.video?be(h,fe):V("video",fe),media:{},settings:{...K,...J("video")},type:"multimedia",variant:"video"}),M=({items:h=[]},K)=>ye(h.map(({icon:fe,...Ne})=>Ne),K),Q=({items:h=[],media:K},fe)=>te(h.map(({hasMedia:Ne,...O})=>O),K,fe),X=({items:h=[]},K)=>{const fe=h.map(Ne=>({...Ne,isHidden:!1,type:"step"}));return _(Ce(fe,K),K)},me=({items:h=[]},K)=>re(h.map(({linePosition:fe,...Ne})=>Ne),K),Le=(h,K)=>$(s(h,K),K),ne=(h,K)=>{switch(h.type){case"embed":return M(h,K);case"map":return Q(h,K);case"process":return X(h,K);case"sorting":return de(h,K);case"timeline":return me(h,K);case"screencast":case"slidecast":case"video":return se(h.media,h.settings,K);default:throw new Error(`Unknown legacy lesson type: ${h.type}`)}},je=h=>typeof h?.type=="string"&&P.fT.includes(h.type),pe=h=>{if(!je(h))return h;const K=String(h.id),fe={description:"",icon:"Article",type:"blocks"},Ne=[ne(h,K)],O=typeof h.description=="string"?h.description.trim():"";return O&&Ne.unshift(Le(O,`${K}_desc`)),{...h,...fe,items:Ne,media:{}}}},35965:(_e,ge,i)=>{"use strict";i.d(ge,{Fc:()=>wl,hd:()=>Si,Rc:()=>xr,qO:()=>Ao,O9:()=>Wt,X_:()=>os,jr:()=>I,_$:()=>pr,JK:()=>ua,GJ:()=>ca,y4:()=>Rn,As:()=>Fe,Hm:()=>jt,Wk:()=>ms,og:()=>Yn,GS:()=>Zt,xr:()=>fs,IV:()=>fr,bb:()=>vr,o1:()=>gr,vb:()=>Bl,aM:()=>Dl,C2:()=>da,xS:()=>Ni,no:()=>Cr,m5:()=>Qo});var P=i(49345),H=i(10789),U=i.n(H),q=i(34198),V=i.n(q),J=i(45949),ee=i.n(J),Y=i(86654),ie=i.n(Y),s=i(44336),Ce=i.n(s),be=i(67711),ye=i.n(be),te=i(91794),_=i.n(te),de=i(72168),$=i.n(de),re=i(51926),se=i.n(re),M=i(33744),Q=i.n(M),X=i(67331),me=i.n(X),Le=i(84929),ne=i.n(Le),je=i(17247),pe=i.n(je),h=i(77170),K=i.n(h);const fe=oe=>V()(P.QZ,oe),Ne=oe=>ee()({[oe]:P.QZ}),O=({startTime:oe,stopTime:ke})=>ke-oe,he=oe=>{switch(oe.type){case"FILL_IN_THE_BLANK":return rt(oe);case"MATCHING":return at(oe);default:return Je(oe)}},ve=oe=>{switch(oe.type){case"FILL_IN_THE_BLANK":return rt(oe);case"MATCHING":return at(oe);case"MULTIPLE_CHOICE":return $e(oe);case"MULTIPLE_RESPONSE":return Ot(oe);default:return $e(oe)}},Ae=({isUnfinished:oe,item:ke,itemProgress:ut})=>{switch(ke.type){case"FILL_IN_THE_BLANK":return Ue(oe)(ut);case"MATCHING":return bt(ke,oe)(ut);case"MULTIPLE_CHOICE":return we(ke,oe)(ut);case"MULTIPLE_RESPONSE":return Ke(ke,oe)(ut);default:return we(ke,oe)(ut)}},He=oe=>[oe],Je=V()($()(Ne("title")),ne()("answers")),ft=fe(ne()("id")),mt=fe(ne()("title")),vt=oe=>ke=>ie()(pe()("id",ke),Je(oe)),Te=oe=>ye()(Q())(Je(oe)),rt=V()(me()("title"),Je),Ue=oe=>_()(U()(oe),U()(""),fe(ne()("text"))),$e=oe=>V()(vt(oe),ne()("correct"))(oe),we=(oe,ke)=>_()(U()(ke),U()([]),ut=>{const Lt=ne()("selectedIndex",ut);return Lt===void 0?[]:He(Te(oe)(Lt))}),Ot=oe=>V()(Ce(),$()(vt(oe)),ne()("corrects"))(oe),Ke=(oe,ke)=>_()(U()(ke),U()([]),ut=>{const Lt=ne()("selectedIndices",ut)||[];return Ce()(Lt.map(gs=>He(Te(oe)(gs))))}),Xe=({sourceId:oe,sourceTitle:ke,targetId:ut,targetTitle:Lt})=>({source:{id:`source_${oe}`,title:ke},target:{id:`target_${ut}`,title:Lt}}),gt=fe(ne()("matchTitle")),Ut=oe=>{const ke=ft(oe);return Xe({sourceId:ke,sourceTitle:mt(oe),targetId:ke,targetTitle:gt(oe)})},z=oe=>(ke,ut)=>{const Lt=Je(oe),gs=Lt.find(Po=>Po.id===ut),vs=Lt.find(Po=>Po.id===ke);return Xe({sourceId:ft(gs),sourceTitle:mt(gs),targetId:ft(vs),targetTitle:gt(vs)})},at=V()($()(Ut),Je),bt=(oe,ke)=>_()(U()(ke),U()([]),V()(K(),se()(z(oe)),ne()("matches")));var Pe=i(47474),xs=i.n(Pe),Vs=i(88457),De=i(16832),Gs=i(31896),Ws=i(79335),ns=i(83416),mn=i(64103),Vt=i(86484),tn=i.n(Vt);const Eo=oe=>oe!==void 0,Ze=tn()(Eo,V()(JSON.parse,mn.Base64.decode)),Ye=(oe,ke)=>window.courseData?oe(window.courseData):window.course?{course:oe(window.course),media:[]}:ke;var It=i(312),pn=i.n(It),ys=i(7827),no=i.n(ys),Sn=i(41820);const Nn=`${(0,ns._$)("RBC_URI")}/api/partner_content`,wt=null,Xt=pn()(`${Nn}/`),$s={transformRequest:[(oe,ke)=>(ke.Authorization=`Bearer ${(0,Sn.gf)()}`,oe)],headers:{"Content-Type":"application/json"}},Qr=()=>request({...$s,url:wt}).toPromise().then(path(["data","types"])),Lo=oe=>request({...$s,url:Xt(oe)}).toPromise().then(path(["data","content"])),ar=oe=>(0,Sn.Em)({method:"POST",url:Nn,data:JSON.stringify({ids:oe}),...$s}).map(no()(["data","content"]));var ir=i(71006),ro=i.n(ir),lr=i(78324),Zr=i.n(lr);const Re=(0,ns._$)("SERVICE_ENV")==="prod"?"com":"zone",fn=Zr()(JSON.stringify,ro()(new RegExp(`https://images.riseusercontent.${Re}/`,"g"),`${(0,ns._$)("IMAGES_URI")}/`),ro()(new RegExp(`https://riseusercontent.${Re}/`,"g"),`${(0,ns._$)("CDN_USER_CONTENT_URI")}/`),ro()(new RegExp(`https://video.rise.${Re}/`,"g"),`https://video.riseusercontent.${Re}/`),JSON.parse);var cr=i(52988),Ct=i.n(cr),Dt=i(27905),st=i.n(Dt),gn=i(72970),es=i.n(gn),To=i(8466),hs=i.n(To),_r=i(55414),dt=i.n(_r),Ml=i(34379),Ms=i.n(Ml),kl=i(56401),Jt=i.n(kl),Ol=i(58488),jo=i.n(Ol),Ls=i(64104),Tt=i.n(Ls),ci=i(15241),Ts=i.n(ci),di=i(4322),ts=i.n(di),ui=i(61319),qe=i.n(ui),hi=i(37953),vn=i.n(hi),Io=i(34552),et=i.n(Io),mi=i(82738),nt=i.n(mi),pi=i(97886),An=i.n(pi);const Gn=oe=>!!oe,Qn={[De.En]:["activeIndex",dt()],[De.Ay]:["audioVideoPlayhead",Number],[De.l7]:["isComplete",Gn],[De.Ko]:["correctlyAnswered",dt()],[De.WY]:["percentComplete",dt()],[De.sZ]:["retryAttempts",dt()],[De.jw]:["score",dt()],[De.eZ]:["currentTime",dt()],[De.Ze]:["percentViewed",dt()],[De.mj]:["reportResults",dt()],[De.p3]:["passed",dt()],[De.ft]:["passingScore",dt()],[De.pd]:["questionsDrawn",dt()],[De.ce]:["questionList",$()($()(dt()))],[De.M$]:["timeRemaining",Number]},fi=oe=>(ke,ut)=>st()([hs()(Qn[ut])],Tt()(Qn[ut])(ke),oe),Xr=oe=>(ke,ut)=>{let Lt=Tt()(St[ut])(ke);return ut===De.fd&&(Lt=Lt(ne()("items",oe))),{[hs()(St[ut])]:Lt}},Wo=oe=>ke=>{const ut=oe?.[ke.index];return An()(()=>Jt()(ut),()=>V()(ts()(ke),qe(),K(),se()(Xr(ke)))(ut))(ke)},dr=oe=>$()(Wo(oe)),ur=V()(qe(),K(),se()(Xr(null))),Jr=oe=>ke=>{const ut=ne()(De.fd,oe),Lt=ne()("items",ke);return V()(tn()(()=>Ct()([es()(De.ce),pe()(De.pd,!0),()=>!Jt()(ut)])(oe),gs=>{const vs=$()(ur,ut);return st()("originalItemProgress",vs,gs)}),ts()(ke),An()(()=>Ms()(ut),nt()(Ts()("items"),dr(ut)(Lt))),qe(),K(),se()(fi(ke)))(vn()(jo()(Qn),oe))};function qr(oe,ke){const ut=ne()("lessons",ke),Lt=gs=>{const vs=ne()(gs.index,ut);return An()(()=>Jt()(vs),Jr(vs))(gs)};return An()(()=>Ms()(ut),V()(st()("percentComplete",et()(0,De.WY,ke)),ee()({lessons:$()(Lt)})))(oe)}const St={[De.Ay]:["audioVideoPlayhead",Number],[De.Ko]:["correctlyAnswered",dt()],[De.l7]:["isComplete",Gn],[De.w5]:["isCorrect",Gn],[De.Wj]:["isViewed",Gn],[De.fd]:["items",dr],[De.BW]:["percentViewed",dt()],[De.qX]:["matches",dt()],[De.sZ]:["retryAttemptCount",Number],[De.Pz]:["selectedIndex",dt()],[De.Ig]:["selectedIndices",dt()],[De.JG]:["shuffledAnswerIndices",dt()],[De.S$]:["text",dt()]};var gi=i(53625),$o=i.n(gi),ea=i(53970),Cn=i.n(ea),vi=i(98511),Ci=i.n(vi);const hr={activeIndex:[De.En,dt()],audioVideoPlayhead:[De.Ay,Number],correctlyAnswered:[De.Ko,dt()],currentTime:[De.eZ,dt()],isComplete:[De.l7,Number],passingScore:[De.ft,dt()],percentComplete:[De.WY,dt()],percentViewed:[De.Ze,dt()],retryAttempts:[De.sZ,dt()],score:[De.jw,dt()],questionsDrawn:[De.pd,dt()],questionList:[De.ce,$()($()(dt()))],reportResults:[De.mj,dt()],passed:[De.p3,dt()],timeRemaining:[De.M$,Number]},ta=(oe,ke)=>({[hs()(So[ke])]:Tt()(So[ke])(oe)}),xi=oe=>V()(An()(Ms(),Cn()(ne()("index",oe))),qe(),K(),se()(ta))(Ci()(Ms(),vn()(jo()(So),oe))),sa=V()(qe(),K(),$()(xi)),yi=(oe,ke)=>({[hs()(hr[ke])]:Tt()(hr[ke])(oe)});function na(oe){const ke=ne()("items",oe),ut=ne()("index",oe),Lt=An()($o()(Jt(),Ms()),sa)(ke);return V()(Cn()(ut),An()(()=>$o()(Jt(),Ms())(Lt),st()(De.fd,Lt)),qe(),K(),se()(yi))(vn()(jo()(hr),oe))}const oa=V()(Cn()(De.WY),et()(0,"percentComplete")),So={audioVideoPlayhead:[De.Ay,Number],correctlyAnswered:[De.Ko,dt()],isComplete:[De.l7,Number],isCorrect:[De.w5,Number],isViewed:[De.Wj,Number],items:[De.fd,sa],matches:[De.qX,dt()],percentViewed:[De.BW,dt()],retryAttemptCount:[De.sZ,Number],selectedIndex:[De.Pz,dt()],selectedIndices:[De.Ig,$()(Number)],shuffledAnswerIndices:[De.JG,$()(Number)],text:[De.S$,dt()]},Pn=oe=>window.env?.[oe],bi=oe=>`${Pn("CDN_USER_CONTENT_URI")}/${oe}`,Ei=()=>!!window.shareId,ra=()=>!!window.contentId,aa=()=>!!window.snapshotId,Li=()=>!!window.shareId&&!!window.hasPassword,Ti=ra()&&!ns.BI?fn:oe=>oe,Go={fetch:()=>{if(Zn.isExport||window.courseData||window.course)return Ye(Ze,{});{const oe=()=>window.shareId?`${Pn("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:ra()?`${Pn("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:aa()?`${Pn("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${Pn("RISE_RUNTIME_URI")}/boot/${window.courseId}`;return(0,Vs.Em)({method:"GET",url:oe(),json:!0,withCredentials:!0,timeout:3e4}).then(Vs.lZ).then(ke=>typeof ke=="object"?ke:Ze(ke)).then(Ti)}},fetchPartnerContent:oe=>Zn.isExport||window.partnerContent?xs().of(window.partnerContent.content):ar(oe),getEnv:Pn,isPasswordProtected:Li,isShare:Ei,isSnapshotPreview:aa,resolvePath:bi,verifySharePassword:oe=>(0,Vs.Em)({method:"POST",url:`${Pn("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:oe},json:!0}).then(ke=>ke.body)},ia=(oe,{id:ke,type:ut,...Lt})=>ut==="quiz"?(0,Ws.oO)(oe,{id:ke,...Lt}):(0,Gs.GL)(oe,ke),Ii=(oe,ke)=>oe+((ke||{})[De.l7]||0),la=(oe,ke)=>(ut,{id:Lt,type:gs,...vs})=>ke.lessons[Lt]?{...ut,...oe(ia(ke,{id:Lt,type:gs,...vs}).lessons[Lt])}:ut;function No(oe,ke,ut){const Lt=ke.reduce(la(oe,ut),{}),gs=Object.keys(ut.lessons||{}).length,vs=Object.values(Lt).reduce(Ii,0),Po=Math.round(vs/gs*100);return{lessons:Lt,p:Po}}window.Rise=Object.assign(window.Rise||{},{completeLessons:No,decodeCourseProgress:qr,encodeCourseProgress:oa,encodeLessonProgress:na});const Zn={...Go,...window.Runtime??{}},lt=Zn,pr=oe=>window.env?.[oe],ca=oe=>lt.getMasteryScore!=null?lt.getMasteryScore(oe):oe.passingScore,fr=oe=>{if(lt.onCreateHistory!=null)return lt.onCreateHistory(oe)},Si=(oe={},ke)=>lt.fetch!=null?Promise.resolve(lt.fetch(ke)):Promise.resolve(oe),Ao=(oe=[])=>{if(lt.fetchPartnerContent!=null)return lt.fetchPartnerContent(oe)},wl=oe=>{if(lt.bookmark!=null)return lt.bookmark(oe)},Rn=oe=>lt.getProgress!=null?lt.getProgress(oe):oe,Dl=oe=>lt.setLessonComplete!=null?lt.setLessonComplete(oe):oe,da=oe=>lt.setLessonProgress!=null?lt.setLessonProgress(oe):oe,Bl=(oe,ke)=>lt.setCourseProgress!=null?lt.setCourseProgress(oe,ke):oe,Wt=oe=>{if(lt.finish!=null)return lt.finish(oe)},os=(oe,ke,ut,Lt)=>{lt.finishQuiz!=null&&lt.finishQuiz(oe,ke,ut,Lt)},I=(oe,ke,ut,Lt)=>{lt.finishStoryline!=null&&lt.finishStoryline(oe,ke,ut,Lt)},Fe=()=>lt.isComplete!=null?lt.isComplete():null,jt=()=>lt.isExport!=null?lt.isExport():!1;function ms(){if(lt.isExport!=null){const oe=window.partnerContent?.content;return lt.isExport()&&!!oe}return!1}const Zt=()=>lt.isShare!=null?lt.isShare():!1,fs=()=>lt.isSnapshotPreview!=null?lt.isSnapshotPreview():!1,Yn=()=>lt.isPasswordProtected!=null?lt.isPasswordProtected():!1,gr=oe=>{const ke=oe||"";return lt.resolvePath!=null?ke.startsWith("http")||ke.startsWith("data:")||ke.startsWith("//")?ke:lt.resolvePath(ke):ke.startsWith("data:")||ke.startsWith("http")||ke.startsWith("//")?ke:`/${ke}`},Qo=oe=>lt.verifySharePassword!=null?lt.verifySharePassword(oe):Promise.resolve({isValid:!0}),vr=oe=>{if(lt.reportAnswer!=null){const{id:ke,isCorrect:ut,isUnfinished:Lt=!1,item:gs,itemProgress:vs,duration:Po,retryAttempts:Dd,title:Bd}=oe,{id:Hl,title:zl,type:Ai}=gs;return lt.reportAnswer({id:ke,type:Ai,isCorrect:ut,itemId:Hl,questionTitle:(0,P.QZ)(zl),quizTitle:(0,P.QZ)(Bd),retryAttempts:Dd,answers:he(gs),correctResponse:ve(gs),response:Ae({isUnfinished:Lt,item:gs,itemProgress:vs}),isUnfinished:Lt,latency:O(Po)})}return!1},Cr=oe=>{if(lt.startLesson!=null)return lt.startLesson(oe)},xr=()=>{if(lt.fetchAvailableLocales!=null)return lt.fetchAvailableLocales()},ua=()=>{if(lt.getLocale!=null)return lt.getLocale()},Ni=oe=>{if(lt.setLocale!=null)return lt.setLocale(oe)}},72181:(_e,ge,i)=>{"use strict";i.d(ge,{Y8:()=>J,ju:()=>V,l6:()=>q});var P=i(312),H=i.n(P);const U=H()("rise/transcriptPanel/"),q=U("OPEN_TRANSCRIPT_PANEL"),V=U("CLOSE_TRANSCRIPT_PANEL"),J=U("UPDATE_TRANSCRIPT_PANEL")},98228:(_e,ge,i)=>{"use strict";i.d(ge,{W:()=>V});var P=i(59288),H=i.n(P),U=i(26058),q=i(47418);function V(){const J=(0,U.W6)();return(0,P.useMemo)(()=>({...J,push:(ee,Y)=>J.push((0,q.B)(ee,J.location),Y),replace:(ee,Y)=>J.replace((0,q.B)(ee,J.location),Y)}),[J])}},82719:(_e,ge,i)=>{"use strict";i.d(ge,{Dh:()=>q,HH:()=>Ce,S:()=>s,UR:()=>V,Zn:()=>se,cP:()=>re,fF:()=>ye,i7:()=>ee,pP:()=>$,xp:()=>U});var P=i(24331),H=i(98456);const U=(M,Q,X)=>(0,H.uW)(M)?X?.[Q]?.[M.l10nId]:void 0,q=(M,Q,X,me)=>{if(!(0,H.uW)(M))return M;if(!me)return;const Le=U(M,Q,me);if(Le!==void 0)return Le;const ne=U(M,X,me);if(ne!==void 0)return ne;const je=te(M,me);return je.length>0?je[0].value:void 0},V=(M,Q,X,me)=>!Q||!X||!me?M:(0,P.v9)(M).reduce((Le,{l10nId:ne,path:je})=>{const pe=q({l10nId:ne},Q,X,me),h=(0,P.re)(je,pe,Le);return h.type==="accepted"?h.result:Le},M),J=(M,Q,X)=>V(M,Q,Ce(X),ye(X)),ee=(M,Q,X)=>q(M,Q,Ce(X),ye(X)),Y=(M,Q,X)=>U(M,Q,ye(X));function ie(M,Q){return Q?.find(X=>X.locale===M)}function s(M){return M?.l10n?.locales}function Ce(M){return M?.l10n?.defaultLocale}function be(M,Q){return M!==Ce(Q)}function ye(M){return M?.l10n?.translations}function te(M,Q){return(0,H.uW)(M)?Object.keys(Q)?.map(X=>{const me=U(M,X,Q);if(me)return{locale:X,value:me}}).filter(Boolean)??[]:[]}const _=(M,Q)=>te(M,ye(Q));function de(M){return M.l10n?.translationUpdates?.updateCount??0}const $=M=>(0,H.uW)(M)?M.l10nId:void 0;function re(M){return M?.l10n?.localeSelectorOptions}function se(M){return M?.l10n?.showLocaleSelector}},37322:(_e,ge,i)=>{"use strict";i.d(ge,{DB:()=>ne,H5:()=>Le,ME:()=>M,bX:()=>je,dE:()=>Q,ny:()=>me,xm:()=>se});var P=i(72970),H=i.n(P),U=i(35884),q=i.n(U),V=i(83416);const J=(0,V._$)("CDN_USER_CONTENT_URI"),ee=(0,V._$)("CDN_URI"),Y=H()("useCrushedKey"),ie=(0,V._$)("IMAGES_URI"),s=q()(/-stock[-_]image.jpg/),Ce=(0,V._$)("RBC_IMAGES_URI"),be=(0,V._$)("ASSETS_URI"),ye=q()(new RegExp(`^${J}/review`)),te=(0,V._$)("CDN_US_URI"),_=pe=>{const{crushedKey:h,key:K,useCrushedKey:fe,src:Ne}=pe;return Y(pe)?fe&&h?(0,V.o1)(h):(0,V.o1)(K):(0,V.o1)(Ne)},de=pe=>`${J}/${pe}`,$=pe=>!pe||!pe.key?"":`${Ce}/b:fff,f:jpg,s:cover,w:550,h:296/${pe.key}`,re=pe=>{if(!pe||!pe.key)return"";const{crushedKey:h,key:K,useCrushedKey:fe}=pe;return Y(pe)&&fe?h?`${ie}/f:jpg,b:fff,s:cover,w:340/${h}`:"":`${ie}/f:jpg,b:fff,s:cover,w:340/${K}`},se=pe=>{if(!pe||!pe.key)return"";const{crushedKey:h,key:K,useCrushedKey:fe}=pe;return ie?Y(pe)&&fe&&h?`${ie}/f:png,a:retain,s:cover,t:true,w:340/${h}`:`${ie}/f:png,a:retain,s:cover,t:true,w:340/${K}`:_(pe)},M=pe=>{if(!pe||!pe.key)return"";const{crushedKey:h,key:K,useCrushedKey:fe}=pe;return ie?s(K)?`${ie}/f:jpg,a:retain,b:fff,w:1680,q:65/${K}`:Y(pe)?fe&&h?`${J}/${h}`:`${J}/${K}`:ye(pe.src)?pe.src:`${ie}/f:jpg|png,a:retain,b:fff/${K}`:_(pe)},Q=(pe,h="src")=>{const{key:K,src:fe,thumbnail:Ne,thumbnailKey:O}=pe,he=J?`${J}/${K}`:_({key:K,src:fe}),ve=J?`${J}/${O}`:_({key:O,src:Ne});return h==="src"?he:ve},X=pe=>{if(!pe||!pe.key)return"";const{crushedKey:h,key:K,useCrushedKey:fe}=pe;return Y(pe)&&fe&&h?`${ie}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${h}`:`${ie}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${K}`},me=({height:pe,imageKey:h,width:K})=>{if(Ce){const fe=encodeURIComponent(h);return`${Ce}/b:fff,f:jpg,s:cover,w:${K},h:${pe}/${fe}`}return(0,V.o1)(`partnerContent/${h}`)},Le=()=>{const pe=be||ie,h="NBIC_logo_light_bulb.png";return pe?`${pe}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${h}`:(0,V.o1)(`partnerContent/${h}`)},ne=()=>{const pe="NBIC_logo_blue.svg";return ee?`${ee}/assets/rise/assets/partner-content/${pe}`:(0,V.o1)(`partnerContent/${pe}`)},je=pe=>{const{key:h,src:K}=pe;return te?`${te}/${h}`:_({key:h,src:K})}},20441:(_e,ge,i)=>{"use strict";i.d(ge,{Em:()=>s,Vu:()=>Y,on:()=>ie,uI:()=>Ce,wD:()=>be,xQ:()=>ye});var P=i(44223),H=i(4322),U=i.n(H),q=i(83416),V=i(52439);const J=q.BI?window.env:U()(window.env,{ACCESS_COOKIE_NAME:(0,V.W5)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),ee=(0,P.A)(J),Y=ee.closeSession,ie=ee.on,s=ee.request,Ce=ee.refreshSession,be=ee.resetSession,ye=ee.getAuthorizationUrl,te=ee.fetch},52706:(_e,ge,i)=>{"use strict";i.d(ge,{lL:()=>me,t9:()=>Ot,XC:()=>He,xD:()=>$e,cP:()=>pe,Wn:()=>h,W8:()=>Ne,WA:()=>he});var P=i(9988),H=i(92348),U=i.n(H),q=i(34198),V=i.n(q),J=i(92629),ee=i.n(J),Y=i(40966),ie=i.n(Y),s=i(62116),Ce=i.n(s),be=i(37600),ye=i.n(be),te=i(86484),_=i.n(te),de=i(5181),$=i(42770),re=i(13850),se=i(9041),M=i(76672);$.A.register(re.A),$.A.register(se.A);const Q="#ff631e";function X(Ke){if(Ke==null)return null;try{return(0,M.to)((0,M.qg)(Ke),"srgb")}catch{return null}}const me=U()({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),Le=[[32,me.NEAR_BLACK],[64,me.DARK],[128,me.MED],[256,me.LIGHT]],ne=4.5,je=Ke=>{const Xe=X(Ke);if(Xe==null)return 0;const[gt,Ut,z]=Xe.coords.map(bt=>bt*255);return .2126*gt+.7152*Ut+.0722*z},pe=Ke=>Ke?1-je(Ke)/255>.4:!1,h=Ke=>Ke?1-je(Ke)/255>.25:!1,K=Ke=>{if(!Ke)return null;const Xe=parseInt(Ke.substr(1),16);return Number.isNaN(Xe)?null:Xe.toString(16).padStart(6,"0").padStart(7,"#")},fe=(Ke,Xe)=>{const gt=K(Xe);return!gt||gt.length!==7?Ke:gt},Ne=ee()((Ke,Xe)=>{const gt=(0,P.A)(Xe).slice(0,3),Ut=Ke>=0?gt.map(z=>(1-Ke)*z+Ke*255):gt.map(z=>(1+Ke)*z);return O(Ut)}),O=(Ke=[])=>"#"+Ke.slice(0,3).map(Xe=>Math.min(255,Math.max(0,Math.round(Xe))).toString(16).padStart(2,"0")).join(""),he=Ne(.9),ve=Ne(-.5),Ae=Ne(-.2),He=Ke=>{const Xe=je(Ke);return Le.find(([Ut])=>Ut>Xe)?.[1]},Je=Ke=>Ke.toString(16).padStart(6,"0").padStart(7,"#"),ft=_()(Ce()(Number),V()(ye(),Je)),mt=V()(ft,ie()(Q));function vt(Ke,Xe){if(Ke==="none"||!Ke||!Xe)return{};const gt=Te(Ke,Xe),Ut=`${gt.toFixed(2)}:1`;let z=!1,at=!1,bt=!1,Pe=!1,xs=!1;return gt>=7?(z=!0,at=!0,bt=!0,Pe=!0,xs=!0):gt>=4.5?(z=!0,bt=!0,xs=!0):gt>=3&&(bt=!0,xs=!0),{ratio:Ut,bodyTextAA:z,bodyTextAAA:at,largeTextAA:bt,largeTextAAA:Pe,graphicalUiComponentsAA:xs}}function Te(Ke,Xe){return(0,M.v2)(X(Ke),X(Xe),"WCAG21")}function rt(Ke){const[Xe,gt,Ut]=hexToRgba(Ke).slice(0,3).map(Ue);return .2126*Xe+.7152*gt+.0722*Ut}function Ue(Ke){const Xe=Ke/255;return Xe<=.04045?Xe/12.92:((Xe+.055)/1.055)**2.4}const $e=Ke=>vt("#fff",Ke)["bodyTextAA"]?de.Em.LIGHT:de.Em.DARK,we=(Ke,Xe)=>Ke===TEXT_COLOR.DARK||Ke===TEXT_COLOR.AUTO&&$e(Xe)===TEXT_COLOR.DARK,Ot={[me.NEAR_BLACK]:Ne(.1),[me.DARK]:Ne(-.4),[me.MED]:Ne(-.2),[me.LIGHT]:Ne(.3)}},63545:(_e,ge,i)=>{"use strict";i.d(ge,{C_:()=>ne,S6:()=>Le,by:()=>M,fT:()=>je,o4:()=>Q,xA:()=>q,y4:()=>se,yG:()=>U});var P=i(92348),H=i.n(P);const U={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*)?$/},q={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},V={EDITOR:1,MANAGER:2,OWNER:3},J={[V.EDITOR]:"Author",[V.MANAGER]:"Admin",[V.OWNER]:"Owner"},ee=Object.values(V).map(pe=>({id:pe,title:J[pe]})),Y=({name:pe,isOnePage:h})=>{const K={Admin:h?"Microlearning manager":"Manager",Author:h?"Microlearning editor":"Editor",Owner:h?"Microlearning owner":"Owner"},fe={Admin:h?"Microlearning manager":"Course manager",Author:h?"Microlearning collaborator":"Course collaborator",Owner:h?"Microlearning owner":"Course owner"};return is360?K[pe]:fe[pe]},ie="questionBanks",s=9,Ce=13,be=27,ye=32,te=38,_=40,$=864e5*3,re=100,se="onePage",M=H()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),Q={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},X=Object.values(Q),me={PORTRAIT:"portrait",LANDSCAPE:"landscape"},Le={DARK:"#000",LIGHT:"#fff"},ne={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}},je=["embed","map","process","sorting","timeline","video","screencast","slidecast"]},67644:(_e,ge,i)=>{"use strict";i.d(ge,{BC:()=>P,QI:()=>U,f5:()=>q,hh:()=>H});const P=Y=>Y.reduce((ie,s,Ce)=>("id"in s&&(ie[s.id]={id:s.id,index:Ce}),ie),{}),H=Y=>({...Y,percentComplete:J({items:Y.items,key:"isComplete"})}),U=Y=>({...Y,percentComplete:J({items:Y.items,key:"isComplete"})}),q=Y=>({...Y,percentViewed:J({items:Y.items,key:"isViewed"})});function V({itemId:Y,isCorrect:ie,progress:s}){const Ce={...s,items:{...s.items,[Y]:{...s.items?.[Y],id:Y,index:s.items?.[Y]?.index??0,isComplete:ie,isViewed:ie,...s.items?.[Y].isCorrect===void 0?{isCorrect:ie}:{}}}};Ce.items[Y]?.isCorrect===!1&&(Ce.lastIncorrectCardId=Y);const be=ee(Ce),ye=be.percentComplete!==100?U(be):be,te=q(ye);return te.percentComplete===100?{...te,isComplete:!0}:te}function J({items:Y,key:ie}){const s=Y??{},Ce=Object.keys(s).length,be=Object.values(s).filter(ye=>ye?.[ie]).length;return Ce===0?0:Math.round(be/Ce*100)}function ee(Y){const s=Object.values(Y.items||{}).filter(Ce=>Ce.isCorrect===!0).length;return{...Y,correctlyAnswered:s}}},18796:(_e,ge,i)=>{"use strict";i.d(ge,{$t:()=>ye,NO:()=>s,Pf:()=>Ce,WE:()=>be,c:()=>Y});var P=i(17326),H=i.n(P);const U=()=>{if(!navigator.userAgent)return"unknown";const _=new P.UAParser(navigator.userAgent).getResult();return _.device?.model?_.device.model:_.os?.name?_.os.name:_.browser?.name?_.browser.name:"unknown"},q=()=>{if(!navigator.userAgent)return"unknown";const _=new P.UAParser(navigator.userAgent).getResult();return _.device?.model&&_.os?.version?_.os.version:_.browser?.version?_.browser.version:"unknown"},V=()=>{if(!navigator.userAgent)return"desktop";const _=new P.UAParser(navigator.userAgent).getResult();return _.device?.type==="mobile"?"mobile":_.device?.type==="tablet"?"tablet":"desktop"},J=()=>{if(!navigator.userAgent)return"unknown";const _=new P.UAParser(navigator.userAgent).getResult();if(_.device?.vendor)return _.device.vendor;if(_.os?.name)switch(_.os.name){case"Mac OS":case"iOS":return"Apple";case"Windows":return"Microsoft";case"Android":return"Google"}return"unknown"},ee=()=>{if(!navigator.userAgent)return"unknown";const _=new P.UAParser(navigator.userAgent).getResult();return _.device?.model?_.device.model:"unknown"},Y=()=>{if(!navigator.userAgent)return"browser";const _=new P.UAParser(navigator.userAgent).getResult();return _.device?.type==="mobile"?"mobile":_.device?.type==="tablet"?"tablet":"browser"};function ie(te){return"userAgentData"in te}const s=()=>{if(ie(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},Ce=()=>({name:U(),version:q(),type:V(),manufacturer:J(),model:ee()}),be=()=>{const _=new URLSearchParams(window.location.search).get("query");return{referrer:document.referrer||null,search:_||null,url:window.location.href,path:window.location.pathname+window.location.search+window.location.hash}},ye=()=>navigator.userAgent||null},23366:(_e,ge,i)=>{"use strict";i.d(ge,{Ve:()=>be,lQ:()=>te,rq:()=>Ce});var P=i(34198),H=i.n(P),U=i(30041),q=i.n(U),V=i(64104),J=i.n(V),ee=i(78324),Y=i.n(ee),ie=i(77406),s=i.n(ie);function Ce(..._){return H()(...q()(1,_))(J()(_))}function be(_,...de){return Y()(...de)(_)}function ye(_,...de){return pipeP(...de)(_)}const te=()=>{}},47418:(_e,ge,i)=>{"use strict";i.d(ge,{B:()=>q});var P=i(72147);const H=["fromDashboard","locale"];function U(V,J){const ee=typeof V=="function"?V(J):V;return typeof ee=="string"?(0,P.Rr)(ee):ee}function q(V,J){const ee=U(V,J),Y=new URLSearchParams(J.search),ie=new URLSearchParams(ee.search);for(const s of H){const Ce=Y.get(s);Ce&&!ie.has(s)?ie.set(s,Ce):ie.has(s)&&!ie.get(s)&&ie.delete(s)}return{...ee,search:ie.toString()}}},88457:(_e,ge,i)=>{"use strict";i.d(ge,{Em:()=>ne,lZ:()=>pe});var P=i(45872),H=i.n(P),U=i(883),q=i.n(U),V=i(47067),J=i.n(V),ee=i(69322),Y=i.n(ee),ie=i(40966),s=i.n(ie),Ce=i(25578),be=i.n(Ce),ye=i(37600),te=i.n(ye),_=i(52439),de=i(20441),$=i(48004);const re=(he,ve)=>(...Ae)=>{try{return he(...Ae)}catch(He){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(He),$.L.addError(He),ve(He)}};function se(he,ve){const Ae=ve.split("=");return H()(Ae[0].trim(),Ae[1].trim(),he)}const M=q()(Y()(se,{}),be()(/; */));function Q(he,ve){const Ae=ve.indexOf(":"),He=ve.substr(0,Ae).trim().toLowerCase(),Je=ve.substr(Ae+1).trim();return He&&(he[He]=he[He]?he[He]+", "+Je:Je),he}function X(he){return he?he.split(`
`).reduce(Q,{}):{}}function me(he){return Math.floor(he.loaded/he.total*100)}function Le(he){const ve=[];for(const Ae in he){if(!Array.isArray(he[Ae])){ve.push(encodeURIComponent(Ae)+"="+encodeURIComponent(he[Ae]));continue}for(const He of he[Ae])ve.push(Le(He))}return ve.join("&")}function ne(he){let ve,Ae=!1;const He=new Promise(function Je(ft,mt){const vt=he.signal;if(vt?.aborted){mt(new DOMException("Aborted","AbortError"));return}const Te=De=>{throw mt(De),De},rt=()=>{ve.abort(),mt(new DOMException("Aborted","AbortError"))},Ue=he.data;let $e=re(he.deserialize??J(),Te);const we=he.headers??{},Ot=he.json??!1,Ke=he.jwt??!1,Xe=he.token??null,gt=he.method??"GET",Ut=he.onUploadProgress;let z=re(he.serialize??J(),Te),at=he.url;const bt=he.withCredentials??!1,Pe=he.file,xs=he.timeout??3e3;ve=new XMLHttpRequest;const Vs=setTimeout(()=>{ve.abort(),mt({error:"request timed out"})},xs);if(Ot&&($e=re(JSON.parse,mt),z=re(JSON.stringify,mt),we["Content-Type"]="application/json"),gt==="GET"&&Ue&&(at+="?"+Le(Ue)),Ke){const De=Xe||(0,_.rS)();we.Authorization="Bearer "+De}vt?.addEventListener("abort",rt),ve.withCredentials=bt,ve.addEventListener("abort",mt),ve.addEventListener("error",mt),ve.addEventListener("load",function(){ve.status>=400?[401,403].includes(ve.status)?Ae?mt({error:"Unable to resume session"}):(0,de.wD)().then(()=>{Je(ft,mt),Ae=!0}).catch(De=>{$.L.addError(De),mt({error:"Unable to resume session"})}):mt($e(ve.response)):(ft({body:ve.status===204?void 0:$e(ve.response),headers:X(ve.getAllResponseHeaders()),status:ve.status}),vt?.removeEventListener("abort",rt)),clearTimeout(Vs)}),ve.upload&&typeof Ut=="function"&&ve.upload.addEventListener("progress",Ut),ve.open(gt,at);for(const De in we)ve.setRequestHeader(De,we[De]);gt!=="GET"&&Ue?ve.send(z(Ue)):Pe?ve.send(Pe):ve.send()});return He.abort=(...Je)=>ve.abort(...Je),He}const je=q()(te(),s()(""));function pe(he){return he.status===200||he.status===201?he.body:Promise.reject(he.body)}const h=(he,ve=!0)=>ve?`${he}s`:he;var K=(he=>(he[he.KB=1024]="KB",he[he.MB=1048576]="MB",he[he.GB=1073741824]="GB",he[he.TB=1099511627776]="TB",he))(K||{});const fe={KB:(he=1)=>1024*he,MB:(he=1)=>1048576*he,GB:(he=1)=>1073741824*he,TB:(he=1)=>1099511627776*he},Ne={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},O=(he,ve="short")=>{const He=Object.keys(K).reverse().find(vt=>he>=K[vt]);if(!He)return`${he} ${h("byte",he>1)}`;const Je=he/K[He],ft=Je%1===0?Je.toFixed(0):Je.toFixed(2),mt=ve==="long"?h(Ne[He].long,Je>1):Ne[He].short;return`${ft} ${mt}`}},77541:(_e,ge,i)=>{"use strict";i.d(ge,{I6:()=>ne,LI:()=>Te,Ll:()=>Le,Vx:()=>je,Zd:()=>me,dM:()=>vt,sg:()=>Ne});var P=i(10789),H=i.n(P),U=i(34198),q=i.n(U),V=i(45005),J=i.n(V),ee=i(2353),Y=i.n(ee),ie=i(91794),s=i.n(ie),Ce=i(64104),be=i.n(Ce),ye=i(74221),te=i.n(ye),_=i(78324),de=i.n(_),$=i(34552),re=i.n($),se=i(25578),M=i.n(se),Q=i(98456);const X=q()(J()(".svg"),re()("","originalUrl")),me=s()(X,H()({width:"500rem"}),H()({})),Le=Ue=>{if(Ue){const $e=Ue.trim();if($e!==""&&$e!=='""')return Ue}return""},ne=Ue=>Le(Ue)||void 0,je=Ue=>Ue?"img":void 0,pe=Ue=>de()(re()("","originalUrl"),M()("."),be(),Y()(Ue)),h=pe("svg"),K=pe("gif"),fe=/\.svg$/i,Ne=Ue=>fe.test(Ue),O={process:"center",timeline:"left"},he=Ue=>O[Ue]||"left",ve=(Ue,$e)=>{const we=te()(Ue,$e);return we.media.image.key===$e.media.image.key&&Object.assign(we.media.image,{crushedKey:$e.media.image.key,useCrushedKey:!0}),we},Ae=({src:Ue,alpha:$e})=>({alpha:$e,media:{image:{key:He(Ue),src:Ue}}}),He=Ue=>typeof Ue!="string"?"":Ue.startsWith("http")?new URL(Ue).pathname.slice(1):Ue,Je=({coverImageAlpha:Ue,coverImage:$e})=>({alpha:Ue,src:$e}),ft=({lessonHeaderImageAlpha:Ue,lessonHeaderImage:$e})=>({alpha:Ue,src:$e}),mt=(Ue,$e)=>(we,Ot)=>{const Ke=we[$e];if(we?.theme){const Xe=Ot?Ot(Ke?.media):Ke?.media;if((0,Q.uW)(Xe))return Ke;const gt={...Ke,media:{...Xe}},Ut=Ae(Ue(we.theme));return ve(gt,Ut)}else return Ke},vt=mt(Je,"coverImage"),Te=mt(ft,"lessonHeaderImage"),rt=async Ue=>{const $e=new Image;return $e.src=Ue,await $e.decode(),$e}},67757:(_e,ge,i)=>{"use strict";i.d(ge,{QD:()=>te,UA:()=>J,s0:()=>_});var P=i(92536),H=i.n(P);const U=de=>!!de&&Object.prototype.toString.call(de)==="[object Object]",q=Array.isArray,V=(de,$)=>Object.fromEntries(Object.entries($).map(de)),J=de=>Object.keys(de).length,ee=(de,$,re)=>{const se={};for(const M in re)se[de(M)]=$(re[M]);return se},Y=de=>de.map(be),ie=de=>de.map(ye),s=de=>ee(camelCase,be,de),Ce=de=>ee(snakeCase,ye,de),be=de=>U(de)?s(de):q(de)?Y(de):de,ye=de=>U(de)?Ce(de):q(de)?ie(de):de,te=(de,$)=>{const re=new Set($),se={};for(const M in de)re.has(M)||(se[M]=de[M]);return se},_=(de,$)=>Object.fromEntries(Object.entries(de).map(([re,se])=>$(re,se)))},61708:(_e,ge,i)=>{"use strict";i.d(ge,{HY:()=>H.HY,Nv:()=>te,Ls:()=>se,GF:()=>X,y4:()=>M,LY:()=>Q});var P=i(31976),H=i(18398),U=i(54162),q=i(33733);const V=ne=>ne!=null&&typeof ne=="object"&&"map"in ne&&typeof ne.map=="function",J=ne=>ne!=null&&typeof ne=="object"&&"run"in ne&&typeof ne.run=="function",ee=ne=>ne!=null&&typeof ne=="object"&&"then"in ne&&typeof ne.then=="function",Y=ne=>ne!=null&&typeof ne=="object"&&"fork"in ne&&typeof ne.fork=="function",ie=ne=>ne!=null&&typeof ne=="function";function s(){return({dispatch:ne,getState:je})=>pe=>h=>{if(ie(h))return h(ne,je);if(ee(h))return h.then(ne);if(Y(h)){h.fork(ne,ne);return}return J(h)?ne(h.run()):V(h)?h.map(ne):pe(h)}}function Ce(){return[s()]}var be=i(59288);const ye=H.Zz;function te(ne,je){const pe=(0,H.y$)(ne,je,ye((0,H.Tw)(...Ce()))),h=_(),K=de(),fe=$(),Ne=re();return{Provider:U.Kq,connect:h,connectBase:K,dispatch:pe.dispatch,store:pe,useDispatch:fe,useSelector:Ne}}function _(){return function(je,pe,h,K){return function(fe){return(0,U.Ng)(je,pe,h,K)((0,q.BN)(fe))}}}function de(){return function(je,pe,h,K){return function(fe){return(0,U.Ng)(je,pe,h,K)(fe)}}}function $(){return U.wA}function re(){return function(je,pe=U.bN){const h=be.useContext(q.q2),K=be.useContext(q.R6),fe=be.useRef(void 0),Ne=(0,P.S)(),O=(0,U.d4)(je,pe),he=!Ne&&h&&K?.startsWith?.("exit");return he||(fe.current=O),he&&fe.current!==void 0?fe.current:O}}const se=_(),M=$(),Q=re(),X=re;var me=i(36523);const Le=()=>sideEffect(()=>location.href="/")},42006:(_e,ge,i)=>{"use strict";i.d(ge,{V:()=>P});const P=({locales:H,course:U,locale:q})=>!!(H?.find(ee=>ee.locale===q)?.rightToLeft||U?.features?.["rise-rtl"]&&U?.experiments?.rtl)},83416:(_e,ge,i)=>{"use strict";i.d(ge,{As:()=>s,BI:()=>U,Hm:()=>Ce,NS:()=>ie,PJ:()=>Y,Wk:()=>be,_$:()=>H,ih:()=>ye,mZ:()=>V,o1:()=>ee});const{Runtime:P}=window,H=te=>window.env?.[te],U=!1,q=null,V="Rise 360",J=te=>`${H("CDN_USER_CONTENT_URI")}/${te}`,ee=te=>{const _=te||"",de=P?.resolvePath!=null?P.resolvePath.bind(P):J;return _.startsWith("http")||_.startsWith("data:")||_.startsWith("//")?_:de(_)||_},Y=te=>P?.resolveFontPath!=null?P.resolveFontPath(te):`${te.default?H("CDN_URI"):H("CDN_USER_CONTENT_URI")}/${te.key}`,ie=()=>{P?.exit!=null&&P.exit()},s=()=>P?.isComplete!=null?P.isComplete():null,Ce=()=>P?.isExport!=null?P.isExport():!1;function be(){if(P?.isExport!=null){const te=window.partnerContent?.content;return P.isExport()&&!!te}return!1}const ye=()=>{if(P?.sendTouch!=null)return P.sendTouch()}},5181:(_e,ge,i)=>{"use strict";i.d(ge,{xj:()=>M,rE:()=>mt,Dw:()=>me,HC:()=>X,qu:()=>vt,LE:()=>fe,WQ:()=>re,BL:()=>O,Zs:()=>ee,S$:()=>Y,Ht:()=>Ce,zV:()=>be,B4:()=>_,HU:()=>ie,_g:()=>s,df:()=>rt,KJ:()=>de,qH:()=>$,OX:()=>Q,AY:()=>Ne,Py:()=>je,b$:()=>pe,qB:()=>h,kY:()=>ne,br:()=>Le,jq:()=>Te,Y2:()=>K,RE:()=>Je,Em:()=>ft,V7:()=>J});var P=i(92348),H=i.n(P),U=i(67331),q=i.n(U);function V($e){return H()($e)}const J={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},ee="#ff631e",Y=30,ie=50,s=.6,Ce="right",be="rounded",ye=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],te="#ffffff",_=q()("color",ye),de="#000",$="#fff",re=600,se="Rise",M=V({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Q=V({LARGE:null,MEDIUM:null,SMALL:null}),X=V({STEPPED:null,CONTINOUS:null}),me=H()({NUMBERS:null,DOTS:null,NONE:null}),Le=V({COMPACT:null,OVERLAY:null,SIDEBAR:null}),ne=H()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),je=H()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),pe={FREE:"free",RESTRICTED:"restricted"},h=H()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),K=H()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),fe=V({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),Ne=V({FULL:null,FLOATING:null,FLOATING_FULL:null}),O=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}),he={default:[{text:"Centered",type:O.CENTERED},{text:"Centered overlay",type:O.CENTERED_OVERLAY},{text:"Left",type:O.LEFT},{text:"Left overlay",type:O.LEFT_OVERLAY},{text:"Split left image",type:O.SPLIT_LEFT_IMAGE},{text:"Split right image",type:O.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:O.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:O.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:O.CENTERED},{text:"Centered overlay",type:O.CENTERED_OVERLAY},{text:"Left",type:O.LEFT},{text:"Left overlay",type:O.LEFT_OVERLAY},{text:"Split left image",type:O.SPLIT_LEFT_IMAGE},{text:"Split right image",type:O.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:O.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:O.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:O.CENTERED},{text:"Centered overlay",type:O.CENTERED_OVERLAY},{text:"Left",type:O.LEFT},{text:"Left overlay",type:O.LEFT_OVERLAY},{text:"Split left",type:O.SPLIT_LEFT},{text:"Split right",type:O.SPLIT_RIGHT},{text:"Split left image",type:O.SPLIT_LEFT_IMAGE},{text:"Split right image",type:O.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:O.CENTERED},{text:"Centered overlay",type:O.CENTERED_OVERLAY},{text:"Centered image",type:O.CENTERED_IMAGE},{text:"Centered accent tint",type:O.CENTERED_ACCENT_TINT},{text:"Split left image",type:O.SPLIT_LEFT_IMAGE},{text:"Split right image",type:O.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:O.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:O.TWO_THIRDS_RIGHT_IMAGE}]},ve=null,Ae=null,He=[{text:"Image",type:O.IMAGE},{text:"Accent",type:O.ACCENT},{text:"White",type:O.WHITE}],Je={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},ft=V({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),mt=V({ROUNDED:null,SQUARED:null}),vt=H()({ROUNDED:null,SQUARED:null}),Te=H()({FLOATING:null,FULL:null}),rt=H()({ACCENT:null,DARK:null,LIGHT:null}),Ue=[{value:ft.AUTO,label:"Auto"},{value:ft.DARK,label:"Dark"},{value:ft.LIGHT,label:"Light"}]},33871:(_e,ge,i)=>{"use strict";var P={};i.r(P),i.d(P,{CoverDescription:()=>Yf,CoverDetailsContentHeading:()=>ev,CoverDueDate:()=>_f,CoverHeader:()=>Lg,CoverLayout:()=>Sg,LessonHeader:()=>Dg,LessonNavFinish:()=>Bg,LessonNavNext:()=>Hg,LessonNavPrevious:()=>Fg,LessonProgressGraphic:()=>Qg,NavCompactHeaderCounter:()=>tv,NavCompactHeaderProgress:()=>sv,NavCompactOutline:()=>nv,OverviewListItem:()=>ov,OverviewListSectionTitle:()=>rv,Progress:()=>qg});var H={};i.r(H),i.d(H,{AlignLeft:()=>lv,ArrowDown:()=>i0,ArrowLeft:()=>av,ArrowRight:()=>iv,ArrowUp:()=>fh,Category:()=>b6,ChevronDown:()=>cv,ChevronUp:()=>dv,Favorite:()=>Ud,LessonsComplete:()=>Ql,LessonsRequirement:()=>k1,QuestionBox:()=>uv,QuizFailed:()=>yh,QuizPassed:()=>Ql,QuizRequirement:()=>Fd,Search:()=>hv,ToggleDown:()=>mv,Touch:()=>pv,VideoCamera:()=>fv,X:()=>gv});var U={};i.r(U),i.d(U,{components:()=>P,icons:()=>H});var q={};i.r(q),i.d(q,{CoverCourseInfo:()=>l4,CoverDetailsSection:()=>m4,CoverHeader:()=>I4,CoverLayout:()=>A4,LessonHeader:()=>k4,LessonProgressGraphic:()=>H4,NavSidebarHeader:()=>z4,OverviewListItemLinkContent:()=>u9,Progress:()=>h9});var V={};i.r(V),i.d(V,{ArrowDown:()=>Bh,ArrowLeft:()=>p9,ArrowRight:()=>m9,ArrowUp:()=>Bh,ChevronDown:()=>Hh,ChevronUp:()=>Hh,Favorite:()=>Ud,LessonsComplete:()=>zh,LessonsRequirement:()=>Fh,QuizFailed:()=>g9,QuizPassed:()=>zh,QuizRequirement:()=>Fh,Search:()=>f9,ToggleDown:()=>v9,X:()=>C9});var J={};i.r(J),i.d(J,{components:()=>q,icons:()=>V});var ee={};i.r(ee),i.d(ee,{CoverDescription:()=>b9,CoverDetails:()=>L9,CoverGraphic:()=>_i,CoverHeader:()=>M9,CoverLayout:()=>w9,CoverProgress:()=>Z9,CoverSVG:()=>Sr,LessonHeader:()=>J9,LessonProgressGraphic:()=>n8,NavSidebarHeaderProgress:()=>r8});var Y={};i.r(Y),i.d(Y,{AlignLeft:()=>d8,ArrowDown:()=>a8,ArrowLeft:()=>i8,ArrowRight:()=>l8,ArrowUp:()=>c8,ChevronDown:()=>Jh,ChevronUp:()=>u8,Favorite:()=>Ud,LessonsComplete:()=>Ql,LessonsRequirement:()=>k1,QuestionBox:()=>h8,QuizFailed:()=>yh,QuizPassed:()=>Ql,QuizRequirement:()=>Fd,Search:()=>m8,ToggleDown:()=>Jh,Touch:()=>p8,VideoCamera:()=>f8,X:()=>g8});var ie={};i.r(ie),i.d(ie,{components:()=>ee,icons:()=>Y});var s=i(50635),Ce=i(12243),be=i(22651),ye=i(33657),te=i(47993),_=i(69582),de=i(57770),$=i(55238),re=i(99638),se=i(51563),M=i(22302),Q=i(74968),X=i(32838),me=i(25620),Le=i(13848),ne=i(93665),je=i(15075),pe=i(54944),h=i(59288),K=i.n(h),fe=i(87459),Ne=i(26058),O=i(18391),he=i(72147),ve=i(52439);const Ae="_course_token",He=new URLSearchParams(window.location.hash.substr(1)),Je=He.get(Ae);Je&&(He.delete(Ae),window.history.replaceState(null,null,`#${He.toString()}`));const ft=t=>{const{data:{method:e,id:n,jsonrpc:o}}=t;if(o==="2.0"&&e==="getBearerToken"){const r=Je||(0,ve.rS)();navigator.serviceWorker.ready.then(a=>{a.active.postMessage({id:n,jsonrpc:"2.0",method:e,result:{token:r}})})}};navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",ft);const mt=(0,h.createContext)({});function vt(t,{type:e,message:n}){switch(e){case"polite":return{...t,politeMessage1:t.alternatePolite?n:"",politeMessage2:t.alternatePolite?"":n,alternatePolite:!t.alternatePolite};case"assertive":return{...t,assertiveMessage1:t.alternatePolite?n:"",assertiveMessage2:t.alternatePolite?"":n,alternateAssertive:!t.alternateAssertive};case"clear":default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function Te({ariaLive:t,message:e}){return(0,s.jsx)("div",{"aria-atomic":"true","aria-live":t,"aria-relevant":"additions text",className:"visually-hidden-always",role:"log",children:e})}function rt({children:t}){const[{politeMessage1:e,politeMessage2:n,assertiveMessage1:o,assertiveMessage2:r},a]=(0,h.useReducer)(vt,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),l=(0,h.useMemo)(()=>({announcePolite:d=>{a({type:"polite",message:d})},announceAssertive:d=>{a({type:"assertive",message:d})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,s.jsxs)(mt.Provider,{value:l,children:[(0,s.jsx)(Te,{ariaLive:"polite",id:"polite-announcer1",message:e}),(0,s.jsx)(Te,{ariaLive:"polite",id:"polite-announcer2",message:n}),(0,s.jsx)(Te,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,s.jsx)(Te,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),t]})}function Ue(){return(0,h.useContext)(mt)}function $e(t){const e=forwardRef((n,o)=>{const r=Ue();return jsx(t,{...n,...r,ref:o})});return e.displayName=`withAriaLive(${t.displayName||t.name})`,e}var we=i(35965),Ot=i(86659),Ke=i(42183),Xe=i.n(Ke),gt=i(52107),Ut=i(96716),z=i.n(Ut),at=i(28239),bt=i(61140),Pe=i(83416);const xs=`${(0,Pe._$)("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,Vs=`${(0,Pe._$)("CDN_URI")}/assets/rise/assets/error_x.svg`,De=`${(0,Pe._$)("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,Gs="downloading",Ws="error",ns="ok",mn="contained",Vt=({type:t})=>{const[e]=(0,h.useState)(()=>Xe()("certdownload-")),[n,o]=(0,h.useState)(ns),r=(0,gt.A)(n),a=(0,h.useRef)(),l=(0,at.useLabelsMap)(),d=`${e}-live`,c=z()("certificateDownload",{certificateDownloadContained:t===mn}),u=(0,h.useCallback)(()=>{o(Gs)},[]);return(0,h.useEffect)(()=>(n===Gs&&r!==Gs&&(0,bt.gj)().then(()=>{o(ns)}).catch(m=>{(0,Ot.FZ)(m)?o(ns):o(Ws)}),()=>{(0,bt.G7)()}),[r,n]),(0,h.useEffect)(()=>{a.current&&(n===Ws&&r!==Ws||n===ns&&(r===Ws||r===Gs))&&a.current.focus()},[r,n]),(0,s.jsxs)("div",{className:c,children:[(0,s.jsxs)("div",{"aria-live":"polite",id:d,role:"status",children:[n===Gs&&(0,s.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,s.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:De,width:"15"}),l?.certificateDownloadInProgress||"Downloading..."]}),n===Ws&&(0,s.jsxs)("span",{className:"certificateDownload__error",children:[(0,s.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:Vs,width:"15"}),(0,s.jsx)("span",{className:"visually-hidden",children:l?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(n===ns||n===Ws)&&(0,s.jsxs)("button",{"aria-controls":d,className:"certificateDownload__btn",onClick:u,ref:a,type:"button",children:[n===ns&&t===mn&&(0,s.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:xs,width:"15"}),n===ns?l?.certificateDownload||"Download certificate":l?.certificateRetryDownload||"Retry download"]})]})},tn=()=>(0,s.jsx)(Vt,{type:mn}),Eo=(0,h.memo)(Vt);var us=i(98456),Ze=i(63545),Rt=i(82719),Ye=i(49501),It=i(38286);const pn=()=>(0,Ye.Mz)(e=>e,(e,n)=>n,(e,n,o)=>(0,Rt.HH)(o),(e,n,o)=>(0,Rt.fF)(o),Rt.Dh);function ys(t){const{currentLocale:e}=(0,It.nY)(),n=(0,h.useMemo)(pn,[]);return(0,O.d4)(o=>n(t,e,o))}const no=(0,Ye.Mz)(t=>t,(t,e)=>(0,Rt.fF)(e),(t,e)=>e?.[t]);function Sn(){const{currentLocale:t}=(0,It.nY)();return(0,O.d4)(e=>no(t,e))}const Vo=(0,Ye.Mz)(t=>t.course?.title,Rt.HH,Rt.fF,(t,e,n)=>(0,Rt.xp)(t,e,n)??t);function Nn(){return(0,O.d4)(Vo)}function wt(t){return t?.course}function Xt(){return(0,O.d4)(t=>wt(t))}function oo(t){return wt(t).navigationMode}function $s(t){return wt(t).trackingQuizId}function Qr(t,e){const n=wt(e);return(0,Rt.i7)(n.title,t,e)}function Lo(){const t=Xt();return ys(t.title)}function ar(t){return wt(t)?.type}function ir(){return(0,O.d4)(t=>ar(t))}function ro(t){return wt(t)?.type===Ze.y4}function lr(t){const e=wt(t);return(0,us.HX)(e)}var Zr=i(34198),Re=i.n(Zr),Yr=i(75800),fn=i.n(Yr),cr=i(99390),Ct=i.n(cr),Dt=i(86654),st=i.n(Dt),gn=i(83799),es=i.n(gn),To=i(78107),hs=i.n(To),_r=i(8466),dt=i.n(_r),Ml=i(1202),Ms=i.n(Ml),kl=i(34379),Jt=i.n(kl),Ol=i(64104),jo=i.n(Ol),Ls=i(24024),Tt=i.n(Ls),ci=i(16971),Ts=i.n(ci),di=i(7827),ts=i.n(di),ui=i(74674),qe=i.n(ui),hi=i(37953),vn=i.n(hi),Io=i(84929),et=i.n(Io),mi=i(17247),nt=i.n(mi),pi=i(7699),An=i.n(pi),Gn=i(29255),Qn=i.n(Gn),fi=i(24262),Xr=i.n(fi);const Wo=et()("lessons"),dr=Xr()(t=>!!t,["settings","passToContinue"]),ur=t=>Re()(Ts(),e=>ts()([e,"passed"],t),et()("id")),Jr=({course:t,courseProgress:e})=>Re()(dt(),st()(ur(Wo(e))),st()(dr),Wo)(t)||{},qr=({courseProgress:t,lesson:e,restrictingQuiz:n})=>{const o=et()("id",e),r=d=>ts()([d,"index"],Wo(t)),a=r(o);return Re()(Qn()(a),r,et()("id"))(n)?n:{}};var St=i(61556);const gi=Re()(Ts(),Jt()),$o=Re()(st()(St.GG),et()("lessonsOnly")),ea=({course:t,courseProgress:e})=>es()(Cn(e))(t.lessonsOnly),Cn=t=>e=>Ts()(ts()(["lessons",e.id,"isComplete"],t)),vi=({lesson:t,currentLesson:e})=>t&&nt()("id",t.id,e),Ci=({course:t,lesson:e})=>nt()("id",e.id,dt()(et()("lessonsOnly",t))),hr=({course:t,lesson:e})=>nt()("id",e.id,jo()(et()("lessonsOnly",t))),ta=Re()(Ts(),nt()("type","section")),xi=({lesson:t,courseProgress:e})=>qe()(!1,["lessons",t.id,"isComplete"],e),sa=({course:t,courseProgress:e,lesson:n,restrictingQuiz:o})=>{const r=qr({courseProgress:e,lesson:n,restrictingQuiz:o}),a=(0,St.bQ)(t),l=a||gi(r),d=ea({course:t,courseProgress:e}),c=ta(n)&&Ts()(xi({lesson:n,courseProgress:e}));return{isRestricted:l&&c&&Ts()(vi({lesson:n,currentLesson:d})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:d}},yi=({labels:t,restrictions:e})=>{const{lessonRestricted:n,quizRequirePassingScore:o}=t,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:l}=e,d=l&&Ct()("id",a,l);return!r||r&&d?a.title?o.replace("quiz",`"${a.title}"`):o:n},na=fn()(t=>hs()(An()(vn()(["id"],t||{})))),oa=({course:t,lesson:e})=>Re()(Ms(),na(e),$o)(t),So=({course:t,lesson:e})=>!hr({course:t,lesson:e})&&t.lessonsOnly[Ms()(na(e,t.lessonsOnly))],Pn=Re()(Tt(),$o),bi=t=>typeof t=="object"&&Object.keys(t).length>0,Ei=t=>t===void 0||t===!1,ra=t=>Ei(t?.isComplete),aa=t=>t.find(([e,n])=>ra(n)),Li=t=>{const e=Object.entries(t),[n]=aa(e)||[];return n},Ti=t=>bi(t)?Li(t):void 0,ji=(t,e,n)=>{if(!n)return{outOfAttempts:!1,quizPassed:!0};const o=ts()(["lessons",n],t),r=qe()(-1,["settings","retryCount"],e),a=qe()(0,["retryAttempts"],o),l=ts()(["passed"],o);return{outOfAttempts:ts()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:l}};function mr(t){return t.courseProgress}function Ko(t){return t.courseProgress?.currentLesson??""}function Go(t){return t.courseProgress?.percentComplete??0}const ia=(0,Ye.Mz)($s,wt,(t,{lessons:e})=>Array.isArray(e)?e.find(({id:n,type:o})=>o==="quiz"&&n===t):null),Ii=(0,Ye.Mz)(mr,ia,(t,e)=>e?ji(t,e,e.id):null);function la(t){const e=mr(t);return(0,we.Wk)()?e.percentComplete===100:!!(0,we.As)()}function No(t){return t.courseProgress?.lessons}function Zn(t,e){return No(e)?.[t]}function lt(){return(0,O.d4)(Ko)}function pr(){return(0,O.d4)(Go)}function ca(){return(0,O.d4)(ia)}function fr(){return(0,O.d4)(Ii)??{outOfAttempts:!1,quizPassed:!1}}function Si(){return(0,O.d4)(la)}function Ao(t){return(0,O.d4)(e=>Zn(t,e))}var wl=i(90538),Rn=i.n(wl),Dl=i(67331),da=i.n(Dl),Bl=i(34552),Wt=i.n(Bl),os=i(95172),I=i(5181);const Fe=t=>t>9999?1:t,jt=({current:t,restart:e,restartValue:n})=>{const o=Number(n),r=Fe(Number.isInteger(o)&&o>0?o:1),a=e?r:t+1;return Fe(a)},ms=(t,e)=>{if(e.family==="divider"&&e.variant==="numbered divider"){const n=e.settings??{},o=jt({current:t.currentNumber,restart:n.restartNumbering,restartValue:n.restartNumberingValue});return{map:{...t.map,[e.id]:o},currentNumber:o}}return t};function Zt(){return(0,Ye.Mz)(t=>t,(t,e)=>gs(e),(t,e)=>et()(t,e))}function fs(t){const e=(0,h.useMemo)(()=>Zt(),[]);return(0,O.d4)(n=>e(t,n))}function Yn(t){const e=fs(t);return ys(e?.title)}function gr(){const t=Zt();return(0,Ye.Mz)(t,e=>(0,os.Mz)(e))}function Qo(){return(0,Ye.Mz)(Ko,Po,(t,e)=>Wt()(-1,t,e))}function vr(){const t=xr();return(0,Ye.Mz)(e=>e,(e,n)=>t(n),(e,n)=>oo(n),(e,n)=>r6(n),(e,n)=>a6(n),(e,n)=>No(n),(e,n,o,r,a,l)=>{const d=l[e],c=l[n];if(e!==n&&!d?.isComplete&&d?.index>c?.index){const u=l[r?.id]?.index??1/0,m=o==="restricted"?c?.index??1/0:l[a?.id]?.index??1/0;if(d?.index>Math.min(u,m))return m<u?o==="restricted"?{type:os.XQ.ORDER}:{type:os.XQ.KNOWLEDGE_CHECK}:{type:os.XQ.QUIZ,data:r.title}}return null})}function Cr(t){const e=(0,h.useMemo)(()=>vr(),[]);return(0,O.d4)(n=>e(t,n))}function xr(){return(0,Ye.Mz)(No,t=>Ti(t))}function ua(){const t=xr();return(0,Ye.Mz)(e=>e,(e,n)=>t(n),(e,n)=>gs(n),(e,n)=>(0,Rt.HH)(n),(e,n)=>(0,Rt.fF)(n),(e,n,o,r,a)=>(0,Rt.UR)(o[n],e,r,a))}function Ni(){const t=Zt();return(0,Ye.Mz)(t,Zn,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&(!r||(0,os.gL)(e)&&!a)})}function oe(t){const e=(0,h.useMemo)(()=>Ni(),[]);return(0,O.d4)(n=>e(t,n))}function ke(){const t=Zt();return(0,Ye.Mz)(t,Zn,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&r&&(!(0,os.gL)(e)||a)})}function ut(t){const e=(0,h.useMemo)(()=>ke(),[]);return(0,O.d4)(n=>e(t,n))}const Lt=(0,Ye.Mz)(wt,t=>Wt()([],"lessons",t)),gs=(0,Ye.Mz)(Lt,t=>t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{})),vs=(0,Ye.Mz)(wt,t=>Wt()([],"lessonsOnly",t)),Po=(0,Ye.Mz)(vs,t=>t.reduce((e,n,o)=>(e[n.id]=o+1,e),{})),Dd=(0,Ye.Mz)(vs,t=>da()("id",t)),Bd=({type:t,settings:e})=>t!=="quiz"||e.asLesson||e.asLesson===void 0,Hl=(0,Ye.Mz)(vs,st()(Bd)),zl=(0,Ye.Mz)(Hl,Tt()),Ai=(0,Ye.Mz)(Lt,t=>t.reduce((e,n)=>{const o=e[e.length-1];return(0,os.Mz)(n)||o==null?e.push([n.id]):o.push(n.id),e},[])),r6=(0,Ye.Mz)(vs,No,(t,e)=>t.find(n=>(0,os.gL)(n)&&(0,os.dg)(n)&&!e[n.id]?.isComplete)),a6=(0,Ye.Mz)(vs,No,(t,e)=>t.find(n=>!(0,os.gL)(n)&&(0,os.Sg)(n)&&!e[n.id]?.isComplete));function Fl(t){const e=(0,h.useMemo)(gr,[]);return(0,O.d4)(n=>e(t[0],n))}function Hd(t){const e=(0,h.useMemo)(()=>Zt(),[]),n=(0,h.useMemo)(()=>vr(),[]);return(0,O.d4)(o=>{const r=wt(o),a=e(t,o),l=Zn(t,o),c=n(t,o)?.type!=null;return r?.navigationMode!==I.b$.RESTRICTED&&r?.markComplete&&!c&&a?.type!==os.d9.QUIZ&&!(Pe.BI&&l?.percentComplete===100)})}const zd=(t,e)=>e.findIndex(n=>n.id===t);function j1(){return(0,Ye.Mz)(t=>t,(t,e)=>vs(e),(t,e)=>{if(t==="progress-summary")return jo()(e);const n=zd(t,e),o=Rn()(n);return e[o]})}function I1(){return(0,Ye.Mz)(t=>t,(t,e)=>vs(e),(t,e)=>{const n=zd(t,e),o=Ms()(n);return e[o]})}function S1(t){return(0,Ye.Mz)(t,(e,n)=>Hl(n),(e,n)=>zd(e?.id,n)+1)}function i6(){return S1(I1())}function l6(){return S1(j1())}function N1(){return(0,O.d4)(t=>Ai(t))}function c6(){const t=xr();return(0,Ye.Mz)(la,t,$s,(e,n,o)=>{const r=!!n,a=o!=null;return e||!r&&!a})}function d6(){const t=(0,h.useMemo)(()=>c6(),[]);return(0,O.d4)(e=>t(e))}const u6=t=>t?.items?.reduce(ms,{map:{},currentNumber:0})?.map||{},h6=t=>{const e=(0,h.useMemo)(()=>Zt(),[]),n=(0,O.d4)(o=>e(t,o));return(0,h.useMemo)(()=>u6(n),[n])},m6=({blockId:t,lessonId:e})=>h6(e)?.[t];function as(t){return(0,s.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...t})}const Uz=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 "})}),Vz=null,Wz=t=>jsx(Icon,{viewBox:"0 0 10 10",...t,children:jsxs("g",{fillRule:"evenodd",children:[jsx("path",{d:"M0 4.107h10v2H0z"}),jsx("path",{d:"M4 0h2v10H4z"})]})}),$z=null,Kz=({width:t="18",height:e="18",className:n})=>jsx("svg",{"aria-hidden":"true",className:classNames("i i-alert",n),focusable:"false",height:e,viewBox:"0 0 18 18",width:t,children:jsx("g",{fill:"none",fillRule:"evenodd",stroke:"#DE1D1D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:jsx("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),Gz=null;function p6(t){return(0,s.jsxs)(as,{viewBox:"0 0 16 12",...t,children:[(0,s.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,s.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,s.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 Qz=({width:t="20",height:e="20"})=>jsxs("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),Zz=null,Yz=({width:t="15",height:e="15",className:n})=>jsx("svg",{"aria-hidden":"true",className:classNames("i i-all-blocks",n),focusable:"false",height:e,viewBox:"0 0 15 15",width:t,children:jsx("path",{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",fillRule:"evenodd"})}),_z=null,Xz=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"})}),Jz=null,qz=({width:t="24",height:e="16",leftMovement:n="0",className:o})=>jsxs("svg",{"aria-hidden":"true",className:classNames("i i-alt",o),focusable:"false",height:e,style:{marginLeft:n},viewBox:"0 0 24 16",width:t,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",{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",fillRule:"nonzero"})]}),eF=null,f6=({className:t,width:e="20",height:n="20",focusable:o="false"})=>(0,s.jsxs)("svg",{className:t,fill:"none",focusable:o,height:n,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{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",fillRule:"evenodd"}),(0,s.jsx)("path",{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",fillRule:"evenodd"})]}),sF=({title:t="Export",desc:e="An arrow bending itself to the right",width:n="16",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,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"})]}),nF=null;function g6(t){return(0,s.jsx)(as,{viewBox:"0 0 384 512",...t,children:(0,s.jsx)("path",{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",fill:"currentColor"})})}function v6(t){return(0,s.jsxs)(as,{viewBox:"0 0 22 22",...t,children:[(0,s.jsx)("path",{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",fillRule:"evenodd"}),(0,s.jsx)("path",{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",fillRule:"evenodd"})]})}const C6=({title:t="Export",desc:e="An arrow pointing right",width:n="16",height:o="8",className:r,focusable:a="false",decorative:l})=>(0,s.jsxs)("svg",{"aria-hidden":l?"true":"false",className:z()("i",r),focusable:a,height:o,viewBox:"0 0 16 8",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{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",fill:"#444",fillRule:"evenodd"})]});function x6(t){return(0,s.jsx)(as,{viewBox:"0 0 384 512",...t,children:(0,s.jsx)("path",{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",fill:"currentColor"})})}function y6(t){return(0,s.jsxs)(as,{viewBox:"0 0 22 22",...t,children:[(0,s.jsx)("path",{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",fillRule:"evenodd"}),(0,s.jsx)("path",{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",fillRule:"evenodd"})]})}const rF=t=>jsx(Icon,{viewBox:"0 0 10 12",...t,children: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"})}),aF=null,iF=({title:t="Background Image",desc:e="Background Image",width:n="18",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-background-image",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,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"})," "]})]}),lF=null,cF=({title:t="Bank",desc:e="A building with four columns",width:n="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-bank",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),dF=null;function uF(t){return jsxs(Icon,{fill:"none",viewBox:"0 0 14 14",...t,children:[jsx("rect",{height:"8.3",stroke:"currentColor",strokeWidth:"1.5",width:"8.3",x:"0.75",y:"0.75"}),jsx("rect",{height:"8.3",rx:"1.35",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",width:"8.3",x:"4.9502",y:"4.9502"})]})}function hF(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 mF=({title:t="All Authors",desc:e="A circle with the outline of the head and shoulders of two people inside",width:n="30",height:o="30",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-blockTemplateAllAuthors",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("circle",{cx:"14.963",cy:"14.963",fill:"#E9E9E9",r:"14.963"}),jsx("path",{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",fill:"#8894A3"})]}),pF=null,fF=({title:t="Check Mark",desc:e="A circle with a check mark inside",width:n="112",height:o="112",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-blockTemplateCheckMark",r),focusable:a,height:o,viewBox:"0 0 112 112",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("defs",{children:jsxs("filter",{filterUnits:"objectBoundingBox",height:"186.1%",id:"a",width:"186.1%",x:"-43.1%",y:"-40.3%",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",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",fillRule:"nonzero"}),jsx("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),jsx("path",{className:"check",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",fillRule:"nonzero"})]})]}),gF=null,vF=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="42",height:o="42",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-blockTemplateFolder",r),focusable:a,height:o,viewBox:"0 0 42 42",width:n,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"})]})]}),CF=null,b6=({width:t="17",height:e="15",title:n="Book",desc:o="Book",focusable:r="false",className:a})=>(0,s.jsxs)("svg",{className:a,focusable:r,height:e,viewBox:"0 0 17 15",width:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:n}),(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{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",fill:"#FFF",fillRule:"nonzero"})]}),yF=({title:t="Building",desc:e="Building with windows",width:n="18",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("icon",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,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"})]}),bF=null,EF=({title:t="Captions",desc:e="Two capital letter C inside a square",width:n="24",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-captions",r),focusable:a,height:o,viewBox:"0 0 24 16",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[jsx("rect",{height:"13.25",rx:"1",stroke:"#000",strokeWidth:"1.75",width:"18.25",x:"1.447",y:"1.402"}),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"})]})]})]}),LF=null,TF=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:l,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),o&&jsx("desc",{children:o}),jsx("path",{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",fill:"currentColor",fillRule:"evenodd"})]}),jF=null,IF=({title:t="Character",desc:e="Character",width:n="13",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-character",r),focusable:a,height:o,viewBox:"0 0 13 16",width:n,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"})]}),SF=null;function A1(t){return(0,s.jsx)(as,{viewBox:"0 0 11 8",...t,children:(0,s.jsx)("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"})})}const NF=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="21",role:a="img",title:l,width:d="21"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:cx("i i-checkMarkFilled",n),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),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"})]}),AF=null;function PF(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 RF=({width:t="16",height:e="16",className:n,focusable:o="false"})=>jsx("svg",{"aria-hidden":"true",className:classNames("i i-chevronLeft",n),focusable:o,height:e,viewBox:"0 0 16 16",width:t,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 "})}),MF=null,kF=t=>jsx(Icon,{viewBox:"0 0 6 10",...t,children:jsx("path",{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",fillRule:"nonzero"})}),OF=null,P1=({className:t,dataTestId:e})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:t,"data-test-id":e,fill:"currentColor",focusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("circle",{cx:"5",cy:"5",r:"5"})}),DF=({title:t="Clock",desc:e="Image of a clock with two hands",width:n="14",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 14 13",width:n,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"})]})]}),BF=null,E6=({className:t})=>(0,s.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,s.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 zF(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 FF=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="18",role:a="img",title:l,width:d="18"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),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"})]}),UF=null,VF=({title:t="Continue Block",desc:e="Continue Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-continue-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),WF=null,$F=({title:t="Convert",desc:e="Convert to block",width:n="14",height:o="12",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-convert",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),KF=null;function GF(t){return jsxs(Icon,{...t,viewBox:"0 0 16 16",children:[jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]})}const QF=({title:t="Copy",desc:e="A document stacked on top of another one",width:n="15",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-stack",r),focusable:a,height:o,viewBox:"0 0 15 18",width:n,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"})]}),ZF=null,YF=({title:t="Copy lesson",desc:e="Copy lesson",width:n="15",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),_F=null,XF=({title:t="Corner up-right",desc:e="An arrow moving up & to the right",width:n="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),JF=null,qF=t=>{const{className:e,desc:n="Crop",focusable:o="false",height:r="19",title:a="Crop",width:l="19"}=t,d={className:classNames("i i-crop",e),focusable:o,height:r,viewBox:`0 0 ${l} ${r}`,width:l};return jsxs("svg",{...d,children:[jsx("title",{children:a}),jsx("desc",{children:n}),jsx("path",{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",fillRule:"evenodd"})]})},eU=null,tU=({"aria-hidden":t,"aria-label":e="Dash mark",className:n,desc:o,height:r="3",role:a="img",title:l,width:d="7"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:classNames("i i-dashMark",n),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),o&&jsx("desc",{children:o}),jsx("rect",{height:"3",width:"7"})]}),sU=null,nU=({width:t="20",height:e="20",focusable:n="false"})=>jsxs("svg",{fill:"none",focusable:n,height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),oU=null,L6=({title:t="DestinationArrow",desc:e="DestinationArrow",width:n="13",height:o="10",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:z()("i i-destinationArrow",r),focusable:a,height:o,viewBox:"0 0 13 10",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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"})]}),aU=({title:t="Dialogue Slide",desc:e="Dialogue Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-dialogue-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),iU=null,lU=({title:t="Disk",desc:e="An old floppy disk",width:n="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),cU=null;class dU extends null{render(){return jsx("svg",{"aria-hidden":this.props.decorative,"aria-label":this.props.title,className:this.props.className,focusable:"false",height:this.props.height,role:this.props.role,version:"1.1",viewBox:this.props.viewBox,width:this.props.width,xmlns:"http://www.w3.org/2000/svg",children:this.props.children})}}const uU=null,hU=({width:t=20,height:e=20,...n})=>jsx(SVGIcon,{height:e,width:t,...n,viewBox:"0 0 20 20",children:jsx("path",{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",fillRule:"evenodd"})}),mU=null,pU=({title:t="Vertical Dots",desc:e="Vertical Dots",width:n="4",height:o="24",className:r=null,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-dotsVertical",r),focusable:a,height:o,viewBox:"0 0 4 24",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),fU=null,T6=({title:t="Download",desc:e="Arrow down with horizontal line beneath it",width:n="16",height:o="19",className:r,focusable:a="false"},l)=>(0,s.jsxs)("svg",{className:z()("i i-download",r),focusable:a,height:o,ref:l,viewBox:"0 0 16 19",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("rect",{height:"2",rx:"1",width:"16",y:"17"}),(0,s.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,s.jsx)("path",{d:"M7 0h2v12H7z"})]}),j6=(0,h.forwardRef)(T6),gU=({title:t="Download Circle",desc:e="Arrow down with horizontal line beneath it wrapped up in a circle",width:n="51",height:o="51",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-downloadCircle",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("g",{fill:"none",stroke:"none",children:jsx("g",{fill:"#000",transform:"translate(-695, -227)",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"})})})]}),vU=null;function CU(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 xU=({title:t="Draw",desc:e="Arrow down with horizontal line beneath it",width:n="15",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-drawFromQuestionBank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,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"})]}),yU=null,bU=t=>jsxs(Icon,{height:"16",viewBox:"0 0 16 4",width:"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"})]}),EU=null,LU=({title:t="More",desc:e="Three dots next to one another",width:n="16",height:o="4",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 16 4",width:n,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"})]}),TU=null,jU=({title:t="Draggable",desc:e="Three dots stacked on top of one another",width:n="4",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-ellipsis--vert",r),focusable:a,height:o,viewBox:"0 0 4 14",width:n,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"})]})]}),IU=null,SU=({title:t="Embed",desc:e="Embed icon",width:n="16",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-embed",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,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"})]}),NU=null,AU=({title:t="Empty folder",desc:e="Empty folder",width:n="46",height:o="46",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-emptyFolder",r),focusable:a,height:o,viewBox:"0 0 46 46",width:n,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"})]}),PU=null,RU=({title:t="End Slide",desc:e="End Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-end-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"}),jsx("rect",{fillRule:"evenodd",height:"14",width:"2",x:"14"})]}),MU=null,kU=({title:t="Envelope",desc:e="Envelope",width:n="17",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-envelope",r),focusable:a,height:o,viewBox:"0 0 17 14",width:n,xmlns:"http://www.w3.org/2000/svg",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"})]})]}),OU=null,wU=({title:t="Error",desc:e="An x with a circle",width:n="50",height:o="50",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-error",r),focusable:a,height:o,viewBox:"0 0 50 50",width:n,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"})]}),DU=null,BU=({title:t="Error Alert",desc:e="A red circle with a white exclamation point in the middle",width:n="18",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-errorAlert",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,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"})]}),HU=null,R1=({"aria-hidden":t,"aria-label":e="X mark",className:n,dataTestId:o="x-mark",desc:r,height:a="10",overrideStyle:l=!1,role:d="img",title:c,width:u="10"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:z()(n,{"i i-exMark":!l}),"data-test-id":o,focusable:"false",height:a,role:d,viewBox:"0 0 10 10",width:u,xmlns:"http://www.w3.org/2000/svg",children:[c&&(0,s.jsx)("title",{children:c}),r&&(0,s.jsx)("desc",{children:r}),(0,s.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"})]}),FU=({title:t="Export",desc:e="Export",width:n="12",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-export",r),focusable:a,height:o,viewBox:"0 0 12 15",width:n,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",{height:"2",width:"10",x:"1",y:"12"})]}),UU=null,M1=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:l="",width:d="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&(0,s.jsx)("title",{children:l}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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:"#DFE1E2",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#C7CACC",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"})]}),I6=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:l="",width:d="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&(0,s.jsx)("title",{children:l}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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:"#C3CEED",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),(0,s.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,s.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,s.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"})]}),$U=({title:t="No File",desc:e="Paper icon with one corner bent inwards",width:n="40",height:o="50",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-fileNone",r),focusable:a,height:o,viewBox:"0 0 40 50",width:n,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"})]}),KU=null,S6=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:l="",width:d="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&(0,s.jsx)("title",{children:l}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),(0,s.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,s.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,s.jsx)("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"})]}),N6=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:l="",width:d="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&(0,s.jsx)("title",{children:l}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),(0,s.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,s.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,s.jsx)("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"})]}),A6=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:l="",width:d="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&(0,s.jsx)("title",{children:l}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,s.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,s.jsx)("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),(0,s.jsx)("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"})]}),P6=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:l="",width:d="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&(0,s.jsx)("title",{children:l}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),(0,s.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,s.jsx)("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),(0,s.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"})]}),R6=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:l="",width:d="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&(0,s.jsx)("title",{children:l}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,s.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,s.jsx)("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),(0,s.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"})]}),XU=({title:t="More",desc:e="Filled caret pointing right",width:n="7",height:o="5",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-filledChevronRight",r),focusable:a,height:o,viewBox:"0 0 5 7",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("g",{children:jsx("path",{d:"M4 3.625L1 1v5.25z",strokeLinecap:"round",strokeLinejoin:"round"})})]}),JU=null,Fd=({title:t="Fill in the Blank",desc:e="Pencil writing on a surface",width:n="15",height:o="15",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:z()("i i-fillInTheBlank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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"})]}),eV=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:l,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),o&&jsx("desc",{children:o}),jsx("path",{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",fill:"currentColor",fillRule:"evenodd"})]}),tV=null,sV=({title:t="Flashcard Block",desc:e="Flashcard Block",width:n="16",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-flashcard-block",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"nonzero"})]}),nV=null,oV=t=>jsx(Icon,{viewBox:"0 0 15 15",...t,children: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"})}),rV=null;function aV(t){return jsxs(Icon,{...t,viewBox:"0 0 16 14",children:[jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]})}const iV=({title:t="Folder Empty",desc:e="Folder outline empty",width:n="47",height:o="47",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-folder--empty",r),focusable:a,height:o,viewBox:"0 0 47 47",width:n,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"})]}),lV=null,cV=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="24",height:o="24",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 24 24",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"nonzero"})]}),dV=null,uV=({title:t="FolderSort",desc:e="Sort by Folders",width:n="13",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 13 13",width:n,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"})]}),hV=null,mV=({title:t="Font",desc:e="A capital letter T with a second smaller capital T to the right",width:n="35",height:o="27",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 35 27",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z",fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2"})]}),pV=null,fV=({title:t="Globe",desc:e="Globe",width:n="19",height:o="19",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-globe",r),focusable:a,height:o,viewBox:"0 0 19 19",width:n,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"})]}),gV=null,vV=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"})]}),CV=null,xV=({title:t="Group",desc:e="Silhouettes of two people",width:n="18",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 18 17",width:n,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"})]}),yV=null;function M6(t){return(0,s.jsx)(as,{viewBox:"0 0 20 14",...t,children:(0,s.jsx)("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const Ud=({className:t,decorative:e=!0,desc:n="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:l="Heart",width:d="16"})=>(0,s.jsxs)("svg",{"aria-hidden":e,className:z()(`i i-heart${a?"Filled":"Outline"}`,t),focusable:o,height:r,viewBox:"0 0 16 16",width:d,children:[(0,s.jsx)("title",{children:l}),(0,s.jsx)("desc",{children:n}),(0,s.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"})]}),EV=({title:t="Hidden",desc:e="Eye crossed out",width:n="16",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-hidden",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,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"})]}),LV=null,TV=({title:t="Image Block",desc:e="Image Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-image-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),jV=null,IV=({title:t="Labeled Graphic Block",desc:e="Labeled Graphic Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-labeled-graphic-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),SV=null,NV=({title:t="Label Set",desc:e="Label Set",width:n="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-labelSet",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,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"})]}),AV=null;function PV(t){return jsxs(Icon,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...t,children:[jsx("path",{clipRule:"evenodd",d:"M6.57031 1 L1 3.85715 L6.57031 6.71431 L12.1406 3.85715 L6.57031 1 Z",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),jsx("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),jsx("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"})]})}const RV=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:l,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),o&&jsx("desc",{children:o}),jsx("path",{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",fill:"currentColor",fillRule:"evenodd"})]}),MV=null,kV=({title:t="Lesson",desc:e="Lesson Icon",width:n="23",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-lesson",r),focusable:a,height:o,viewBox:"0 0 23 17",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"nonzero"})]}),OV=null,wV=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"})]}),DV=null,BV=({title:t="List Block",desc:e="List Block",width:n="16",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-list-block",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),HV=null,zV=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r,role:a="img",title:l,width:d})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),o&&jsx("desc",{children:o}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),FV=null;function k6(t){return(0,s.jsx)(as,{viewBox:"0 0 20 22",...t,children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}const UV=({title:t="Mail",desc:e="Mail",width:n="14",height:o="12",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,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"})]}),VV=null,O6=({title:t="Matching",desc:e="Two rows of stacked squares",width:n="15",height:o="15",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:z()("i i-matching",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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"})]}),$V=()=>jsxs("svg",{fill:"none",height:"60",viewBox:"0 0 60 60",width:"60",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",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4"}),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",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4"}),jsx("path",{d:"M30 47.5V57.5",stroke:"#C9C9CA",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4"}),jsx("path",{d:"M20 57.5H40",stroke:"#C9C9CA",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4"})]}),KV=null,GV=({title:t="Move to Folder",desc:e="Folder with an arrow",width:n="15",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-move",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,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"})]}),QV=null,w6=({title:t="Multiple Choice",desc:e="Stacked circles to the left of stacked lines",width:n="16",height:o="16",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:z()("i i-multipleChoice",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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,s.jsx)("circle",{cx:"7.904",cy:"7.904",r:"1.904"})]}),D6=({title:t="Multiple Response",desc:e="A box with a checkmark in it",width:n="16",height:o="16",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:z()("i i-multipleResponse",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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"})]}),_V=({"aria-hidden":t,title:e="New Folder",desc:n="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:l="false"})=>jsxs("svg",{"aria-hidden":t,className:classNames("i i-newFolder",a),focusable:l,height:r,viewBox:"0 0 14 14",width:o,children:[e&&jsx("title",{children:e}),jsx("desc",{children:n}),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"})]}),XV=null,JV=({title:t="New Slide",desc:e="New Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-new-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),qV=null,eW=({title:t="Next Slide",desc:e="Next Slide",width:n="16",height:o="13.4",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-next-slide",r),focusable:a,height:o,viewBox:"0 0 16 13.4",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0",fillRule:"evenodd"})]}),tW=null,B6=({title:t="Not Allowed",desc:e="A circle with a slanted line through it",width:n="12",height:o="12",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:z()("i i-notAllowed",r),focusable:a,height:o,viewBox:"0 0 12 12",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{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",fill:"#FFF",fillRule:"evenodd"})]}),nW=({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",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),oW=null,rW=({title:t="Hide",desc:e="Shape of an eye with a stroke through it",width:n="20",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 20 16",width:n,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",{height:"1.41",transform:"translate(9.992148, 7.999769) rotate(-45.000000) translate(-9.992148, -7.999769) ",width:"21.21",x:"-0.61285173",y:"7.29476926"})]}),aW=null,iW=t=>jsxs(Icon,{viewBox:"0 0 16 16",...t,children:[jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),lW=null,cW=({title:t="Edit",desc:e="Pencil",width:n="11",height:o="11",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-pencil",r),focusable:a,height:o,viewBox:"0 0 10 10",width:n,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"})]}),dW=null,uW=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:l,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),o&&jsx("desc",{children:o}),jsx("path",{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",fillRule:"evenodd"})]}),hW=null,mW=({title:t="Person",desc:e="Person outline",width:n="16",height:o="18",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 16 18",width:n,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"})]}),pW=null;class Vd extends h.Component{constructor(...e){super(...e),this.maskId=`person-unknown-mask-${Xe()()}`,this.pathId=`person-unknown-path-${Xe()()}`}render(){const{title:e="Person Unknown",desc:n,width:o="38",height:r="38",className:a,decorative:l,focusable:d="false"}=this.props;return(0,s.jsxs)("svg",{"aria-hidden":l,className:z()("i i-person-unknown",a),focusable:d,height:r,viewBox:"0 0 38 38",width:o,children:[e&&(0,s.jsx)("title",{children:e}),n&&(0,s.jsx)("desc",{children:n}),(0,s.jsx)("defs",{children:(0,s.jsx)("circle",{cx:"19",cy:"19",id:this.pathId,r:"19"})}),(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,s.jsx)("mask",{fill:"#fff",id:this.maskId,children:(0,s.jsx)("use",{href:`#${this.pathId}`})}),(0,s.jsx)("use",{fill:"#D8D8D8",href:`#${this.pathId}`}),(0,s.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 k1=({title:t="Pick One",desc:e="Pick One",width:n="16",height:o="14",className:r,focusable:a="false","aria-hidden":l})=>(0,s.jsxs)("svg",{"aria-hidden":l,className:z()("i i-pickOne",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsxs)("g",{fillRule:"evenodd",children:[(0,s.jsx)("path",{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",fillRule:"nonzero"}),(0,s.jsx)("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})]})]}),gW=({title:t="Play",desc:e="Triangle facing right that will play the media",width:n="16",height:o="22",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 16 22",width:n,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"})})]}),vW=null,CW=({title:t="Process Block",desc:e="Process Block",width:n="29",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-process-block",r),focusable:a,height:o,viewBox:"0 0 29 17",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),xW=null;function H6(t){return(0,s.jsxs)(as,{viewBox:"0 0 16 16",...t,children:[(0,s.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,s.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,s.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 yW=({title:t="Quiz",desc:e="Quiz Icon",width:n="25",height:o="25",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-quiz",r),focusable:a,height:o,viewBox:"0 0 25 25",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"nonzero"})]}),bW=null,EW=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"})}),LW=null;function O1(t){return(0,s.jsxs)(as,{viewBox:"0 0 15 14",...t,children:[(0,s.jsx)("path",{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",fillRule:"evenodd"}),(0,s.jsx)("path",{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",fillRule:"evenodd"})]})}function z6(t){return(0,s.jsx)(as,{viewBox:"0 0 28 28",...t,children:(0,s.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 TW=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:l,width:d="16"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),o&&jsx("desc",{children:o}),jsx("path",{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",fill:"currentColor",fillRule:"evenodd"})]}),jW=null;function F6(t){return(0,s.jsx)(as,{viewBox:"0 0 23 17",...t,children:(0,s.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 IW=({width:t="16",height:e="16",className:n})=>jsx("svg",{"aria-hidden":"true",className:classNames("i i-search",n),fill:"currentColor",focusable:"false",height:e,viewBox:"0 0 15.6 14.7",width:t,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"})}),SW=null,NW=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"})}),AW=null,PW=({title:t="Share Folder",desc:e="Share folder",width:n="14",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 14 14",width:n,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"})]}),RW=null,MW=t=>jsx(Icon,{viewBox:"0 0 16 16",...t,children: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"})}),kW=null,OW=({title:t="Sortable",desc:e="Three horizontal lines stacked on top of each other",width:n="22",height:o="7",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-sortable",r),focusable:a,height:o,viewBox:"0 0 22 7",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"0"}),jsx("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"3"}),jsx("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"6"})]}),wW=null,DW=({title:t="Sorting Block",desc:e="Sorting Block",width:n="22",height:o="15",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-sorting-block",r),focusable:a,height:o,viewBox:"0 0 22 15",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"nonzero"})]}),BW=null,HW=({title:t="Spinner",desc:e="Hollow circle fading from transparent to gray",width:n="21",height:o="20",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-spinner",r),focusable:a,height:o,viewBox:"0 0 21 20",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("defs",{children:jsxs("radialGradient",{cx:"89.364%",cy:"24.157%",fx:"89.364%",fy:"24.157%",gradientTransform:"rotate(69.991 .842 .205) scale(1 .69785)",id:"spinner-radial-gradient",r:"45.607%",children:[jsx("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),jsx("stop",{offset:"100%",stopColor:"#979797"})]})}),jsx("path",{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",fill:"url(#spinner-radial-gradient)",fillRule:"nonzero",transform:"rotate(-159 42.222 17.43)"})]}),zW=null,FW=({title:t="SquareIcon",desc:e="Outline of a square",width:n="30",height:o="30",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-square-outline",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"none",fillRule:"evenodd",children:[jsx("rect",{className:"overlay",fill:"none",fillRule:"evenodd",height:"28",rx:"2",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"}),jsx("rect",{fill:"none",fillRule:"evenodd",height:"28",rx:"2",stroke:"#FFF",strokeOpacity:"0.63",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"})]})]}),UW=null,Wd="overlay",VW=({title:t="Stack",desc:e="Three horizontal bars stacked",width:n="30",height:o="30",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-stack",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsxs("g",{fill:"none",fillRule:"evenodd",children:[jsx("rect",{className:Wd,height:"8.824",rx:"1",width:"30"}),jsx("rect",{className:Wd,height:"8.824",rx:"1",width:"30",y:"10.588"}),jsx("rect",{className:Wd,height:"8.824",rx:"1",width:"30",y:"21.176"}),jsx("rect",{fill:"#FFF",fillOpacity:"0.63",height:"8.824",rx:"1",width:"30"}),jsx("rect",{fill:"#FFF",fillOpacity:"0.4",height:"8.824",rx:"1",width:"30",y:"10.588"})]})]}),WW=null;function $W(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 j=i(84160),Ee=i.n(j);const U6=({title:t="Success",desc:e="Checkmark with a circle",width:n="51",height:o="51",className:r=null,focusable:a="false"})=>(0,s.jsxs)("svg",{className:z()("i",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.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,s.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"})]});U6.propTypes={title:Ee().string,desc:Ee().string,width:Ee().string,height:Ee().string,className:Ee().string,focusable:Ee().oneOf(["true","false"])};const KW=null,GW=({title:t="Text Block",desc:e="Text Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-text-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),QW=null,ZW=({title:t="Text Slide",desc:e="Text Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-text-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,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"})]})]}),YW=null,_W=({title:t="TitleSort",desc:e="Letters A and Z next to a downard arrow",width:n="17",height:o="11",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 17 11",width:n,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"})]}),XW=null;function V6(t){return(0,s.jsxs)(as,{viewBox:"0 0 15 16",...t,children:[(0,s.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,s.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 JW=({title:t="Remove",desc:e="Trash can",width:n="10",height:o="13",className:r=null,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-trash",r),focusable:a,height:o,viewBox:"0 0 10 13",width:n,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"})]}),qW=null,e$=({title:t="Trash Folder",desc:e="Solid trash can",width:n="16",height:o="17",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-trashFolder",r),focusable:a,height:o,viewBox:"0 0 16 17",width:n,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"})]}),t$=null,s$=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:l,width:d="14"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),o&&jsx("desc",{children:o}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),n$=null,o$=({title:t="Remove",desc:e="Trash can",width:n="13.3",height:o="16",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 13.3 16",width:n,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"})]}),r$=null,a$=({title:t="Upload",desc:e="Upload icon",width:n="15",height:o="15",className:r="",focusable:a="false"})=>jsxs("svg",{className:classNames("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,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"})]}),i$=null,l$=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="14",role:a="img",title:l,width:d="14"})=>jsxs("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:d,xmlns:"http://www.w3.org/2000/svg",children:[l&&jsx("title",{children:l}),o&&jsx("desc",{children:o}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]}),c$=null,d$=({title:t="UploadXml",desc:e="UploadXml",width:n="18",height:o="21",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-uploadXml",r),focusable:a,height:o,viewBox:"0 0 18 21",width:n,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"})]}),u$=null,h$=({title:t="Video Block",desc:e="Video Block",width:n="17",height:o="13",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-video-block",r),focusable:a,height:o,viewBox:"0 0 17 13",width:n,children:[jsx("title",{children:t}),jsx("desc",{children:e}),jsx("path",{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",fillRule:"evenodd"})]}),m$=null;function W6(t){return(0,s.jsx)(as,{viewBox:"0 0 16 12",...t,children:(0,s.jsx)("g",{transform:"translate(-1 -2)",children:(0,s.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 p$(t){return jsxs(Icon,{...t,viewBox:"0 0 14 10",children:[jsx("path",{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",fillRule:"evenodd"}),jsx("path",{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",fillRule:"evenodd"})]})}const f$=({title:t="Visible",desc:e="Eye",width:n="16",height:o="12",className:r,focusable:a="false"})=>jsxs("svg",{className:classNames("i i-visible",r),focusable:a,height:o,viewBox:"0 0 16 12",width:n,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"})]})]}),g$=null,$6=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="20",role:a="img",title:l="",style:d,width:c="20"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:z()("i i-xMarkFilled",n),focusable:"false",height:r,role:a,style:d,viewBox:"0 0 20 20",width:c,xmlns:"http://www.w3.org/2000/svg",children:[l&&(0,s.jsx)("title",{children:l}),o&&(0,s.jsx)("desc",{children:o}),(0,s.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 K6=i(40966),w1=i.n(K6),G6=i(65992),Pi=i.n(G6),Q6=i(78324),rs=i.n(Q6),Z6=i(24308),Y6=i.n(Z6),_6=i(46832),ha=i.n(_6);const X6=rs()(w1()({}),Y6()(["first_name","last_name"]),Pi()(" "),ha()),J6=({className:t,decorative:e,size:n,...o})=>{const r=ts()(["avatars","medium"],o),a=e?"":X6(o)||"Unknown User";return r?(0,s.jsx)("img",{alt:a,className:t||"user-avatar",src:r,style:{height:n,width:n}}):(0,s.jsx)(Vd,{decorative:e,height:n,title:a,width:n})};var q6=i(8046);const ae=(0,q6.setup)({el:"__",mod:"--",modValue:"-"}),ef=`${(0,we._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,Ul=ae("cover");function tf(){const{certificateDownload:t,riseComCurrentUser:e}=Xt(),n=(0,at.useLabelsMap)(),o=d6(),a=fr()?.quizPassed??!0;return!(o&&a&&!(0,we.Wk)())||window.viewType==="preview"?null:(0,s.jsxs)("div",{className:Ul("completed-info"),children:[(0,s.jsxs)("div",{className:Ul("completed-info-avatar"),children:[(0,s.jsx)(J6,{...e,decorative:!0}),(0,s.jsx)("img",{alt:"",className:Ul("completed-info-trophy"),src:ef})]}),(0,s.jsxs)("div",{className:Ul("completed-info-label"),children:[(0,s.jsx)("span",{"aria-hidden":"true",children:n?.coverCompleted||"Completed"}),(0,s.jsx)("span",{className:"visually-hidden",children:n?.a11yCoverCourseCompleted||"Course Completed"})]}),t&&(0,s.jsx)(Eo,{})]})}var sf=i(19216),_n=i.n(sf);const $d=t=>{if(!t)return"";const e=_n()(t),n=_n()(),o=_n()(n).add(24,"hours");return e.isBefore(n)?"Overdue":e.isBefore(o)?`Due in ${n.to(e,!0)}`:`Due ${e.format("MMM D")}`},D1=t=>_n()(t).isSameOrBefore(_n()().add(3,"d"),"days");function nf(t){return function({Default:n,className:o,...r}){const a=`brand--${t}`,l=o?`${o} ${a}`:a;return(0,s.jsx)(n,{...r,className:l})}}const ma=nf("ui"),Kd=t=>t==="<p><br></p>"?"":t;var B1=i(24331);const Gd="data-change-path",Qd="data-l10n-id",H1=(t,e)=>{if(t)return e?["l10n","translations",e,t.getAttribute(Qd)]:JSON.parse(t.getAttribute(Gd))};let Ro;const of=()=>{const t=pa();t&&t.classList.add("selected")},Vl=()=>{pa()&&Ro&&Ri(Ro)},rf=(t,e)=>n=>{const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(Qd)):o.find(a=>a.getAttribute(Gd));r!=null&&(t&&Ro!==r&&(Ro=r,t(H1(r,e))),Ri(r))},af=(t,e)=>n=>{n.stopPropagation(),n.preventDefault();const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(Qd)):o.find(a=>a.getAttribute(Gd));if(r){Ri(r),F1();const a=H1(r,e);a&&(t(a),of())}},Zd=()=>document.getElementById("target-container"),pa=()=>document.getElementById("target-highlight"),z1=()=>{if(Zd())return;const e=document.createElement("div");e.classList.add("target-container"),e.id="target-container",document.body.appendChild(e);const n=document.createElement("div");n.classList.add("target-highlight"),n.id="target-highlight",e.appendChild(n)},F1=()=>{const t=pa();t&&t.classList.add("selected")},lf=({top:t,left:e,width:n,height:o})=>{const r=document.querySelector("[data-page=true]")?.getBoundingClientRect().width??window.innerWidth-20;return n<r&&(t=t-10,o=o+2*10,e=e-20,n=n+2*20),{top:t,left:e,width:n,height:o}},Ri=t=>{const{top:e,left:n,width:o,height:r}=lf(t.getBoundingClientRect()),a=pa();a&&(t!==Ro&&a.classList.contains("selected")&&a.classList.remove("selected"),a.classList.add("active"),Object.assign(a.style,{top:`${e}px`,left:`${n}px`,width:`${o}px`,height:`${r}px`}),Ro=t)},cf=()=>{window.removeEventListener("scroll",Vl,{capture:!0}),Wl()},Wl=()=>{pa()?.classList?.remove("active"),pa()?.classList?.remove("selected")};let fa,$l;const df=({locale:t})=>({isActive:e},n)=>{const o=!!Zd();if(e){if(fa)return fa;z1();const r=rf(n,t);let a;return fa=new Promise((l,d)=>{a=af(l,t),$l=d,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",Wl,!0),window.addEventListener("scroll",Vl,!0)}).finally(()=>{fa=null,$l=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",Wl,!0),window.removeEventListener("scroll",Vl,!0)}),fa}else Wl(),Zd()?.remove(),Ro=null;return o&&$l!=null&&$l(new Error("cancelled")),Promise.resolve()},uf=t=>{let e=t.findIndex(n=>n==="items");return e===-1?t:t.slice(0,e+2)},U1=t=>{const e=(0,B1.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(uf(t))}']`)},hf=t=>{z1(),window.addEventListener("scroll",Vl,{capture:!0}),document.body.classList.add("target-mode");const e=U1(t);e&&Ri(e)},mf=t=>{if(!fa)return;const e=U1(t);e&&(Ro!==e&&(Ro=e),Ri(e),F1(),e.scrollIntoView({behavior:"smooth",block:"center"}))},pf=t=>["course",t],V1=(t,e)=>["lessons",{id:t},e],ff=(t,e)=>[...V1(t,"items"),{id:e}],ga=t=>JSON.stringify(pf(t)),W1=(t,e)=>JSON.stringify(V1(t,e)),gf=(t,e)=>JSON.stringify(ff(t,e)),sn={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"},Mi=(t,e)=>{const n={};for(let o=0;o<t.length;o++){const r=t[o];if(typeof r=="object"&&r.id){const a=t[o-1],l=a==="items"?e.shift():a.replace(/s$/,"");n[`${l??"item"}Id`]=r.id}}return n};var Ie=i(86415),xt=i(84728);function Yd(t,e){const n=(0,h.useMemo)(()=>matchMedia(`(${t}: ${e*.0625}em)`),[t,e]),[o,r]=(0,h.useState)(n.matches);return(0,h.useEffect)(()=>{const a=n.addEventListener??n.addListener,l=n.removeEventListener??n.removeListener;return a.call(n,"change",d),()=>l.call(n,"change",d);function d(){r(n.matches)}},[n]),o}const vf="matches";function $1(t,e,n,o="withPxToEmMedia"){return r=>{function a(l){const d=Yd(t,e);return(0,s.jsx)(r,{...l,[n??vf]:d})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function ks(t){return Yd("max-width",t-1)}function x$(t){return Yd("min-width",t)}function Cf(t,e,n){return $1("max-width",t-1,e,n)}function xf(t,e,n){return $1("min-width",t,e,n)}const yf=()=>ks(1200),bf=()=>ks(768),_d=()=>ks(480),Xd=ae("cover");function Ef(t,e,n){return t===1?e:n}function Lf(){const t=(0,Ie.v1)(),e=(0,Ie.vU)(),n=Ef(t,e?.coverLesson||"Lesson",e?.coverLessons||"Lessons");return(0,s.jsxs)("li",{className:Xd("num-lessons"),role:"listitem",children:[(0,s.jsx)("span",{className:Xd("num-lessons-value"),children:t}),"\xA0",(0,s.jsx)("span",{className:Xd("num-lessons-units"),children:n})]})}const Tf=36e5,Jd=ae("cover");function jf(t){return Math.round(10*t)/10}function K1(t,e,n){return t===1?e:n}function If(){const{showTimeToComplete:t,timeToComplete:e}=(0,Ie.DX)(),n=(0,Ie.vU)();if(!t)return null;const o=e>=Tf,r=o?jf(_n().duration(e).asHours()):_n().duration(e).asMinutes(),a=o?K1(r,n?.coverHour||"Hour",n?.coverHours||"Hours"):K1(r,n?.coverMinute||"Minute",n?.coverMinutes||"Minutes");return(0,s.jsxs)("li",{className:Jd("time-to-complete"),role:"listitem",children:[(0,s.jsx)("span",{className:Jd("time-to-complete-value"),children:r}),"\xA0",(0,s.jsx)("span",{className:Jd("time-to-complete-units"),children:a})]})}const qd=ae("cover");function e0(){const t=(0,Ie.vU)();return Pe.BI?(0,s.jsxs)("section",{className:qd("course-length-section"),children:[(0,s.jsx)("h2",{className:qd("course-length-title"),children:t?.a11yCoverCourseLength||"Course Length"}),(0,s.jsxs)("ul",{className:qd("course-length-list"),role:"list",children:[(0,s.jsx)(Lf,{}),(0,s.jsx)(If,{})]})]}):null}const Sf=ae("cover"),Nf="MMMM D, YYYY";function G1({format:t=Nf}){const{publishedAt:e}=(0,Ie.DX)(),n=(0,Ie.vU)(),o=Sf("details-content-published-at");if(!e)return null;const r=_n()(e);return r.isValid()?(0,s.jsxs)("div",{className:o,children:[n?.coverPublished||"Published"," ",r.format(t)]}):null}var Af=i(91382),ki=i.n(Af);const Q1=ki()(async()=>(await i.e("math").then(i.bind(i,70643))).browserAdaptor(),{promise:!0}),Z1=ki()(async()=>{const[{TeX:t},{AllPackages:e}]=await Promise.all([i.e("math").then(i.t.bind(i,3847,23)),i.e("math").then(i.bind(i,7398))]);return new t({packages:e})}),Y1=ki()(async()=>{const t=await i.e("math").then(i.t.bind(i,79901,23));return new t.SVG({fontCache:"local"})},{promise:!0}),_1=ki()(async()=>{const[t,e,n,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([Q1(),Z1(),Y1(),i.e("math").then(i.bind(i,20906)),i.e("math").then(i.bind(i,19036))]);return o(t),r.document(document,{InputJax:e,OutputJax:n})},{promise:!0}),Pf=ki()(async t=>{const e=new CSSStyleSheet;t.adoptedStyleSheets.push(e);const[n,o]=await Promise.all([Y1(),_1()]),r=n.styleSheet(o);r instanceof HTMLStyleElement&&await e.replace(r.innerText)},{promise:!0});class Rf extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=Pf(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,[n,o,r]=await Promise.all([_1(),Q1(),Z1(),this._ready]);if(e.signal.aborted)return;r.reset();const{tex:a}=this,l=a.includes("begin{")?a:String.raw`\begin{align*}${a}\end{align*}`,d=n.convert(l),c=o.firstChild(d),u=document.evaluate("//@data-mjx-error",c,null,XPathResult.STRING_TYPE).stringValue;if(u.length>0){let m=u;if(u===String.raw`Missing \begin{align*} or extra \end{align*}`){const p=n.convert(a),f=o.firstChild(p);m=document.evaluate("//@data-mjx-error",f,null,XPathResult.STRING_TYPE).stringValue??"An error occured"}this.dispatchEvent(new Mf("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:m}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(c);await this._renderAria()}async _renderAria(){if(await this._ready,this._renderController?.signal.aborted||this.firstElementChild==null)return;const e=[this.shortDescription,this.longDescription].filter(n=>n?.length>0).join(`

`);this.firstElementChild.ariaLabel=e.trim().length===0?null:e}}customElements.define("rise-math",Rf);class Mf extends CustomEvent{}var Ns=i(61708),kf=i(46687),Kl=i.n(kf);const Of=document.implementation.createHTMLDocument();function X1(t){if(t==null)return{value:t};let e;return typeof t=="string"?(e=Of.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 Xn=i(49345);const J1=(t="")=>t.split(".").slice(-2).join("."),q1=Re()(J1,Pe._$),yr=t=>{if(!t||wf(t))return!1;t.slice(0,2)==="//"&&(t=`https:${t}`);try{const{hostname:e}=new URL(t),n=J1(e);return n!==q1("ARTICULATE_DOMAIN")&&n!==q1("RISE_DOMAIN")}catch{return!1}},wf=t=>t?t.slice(0,7)==="mailto:":!1,Df=t=>t.includes("rise.articulate")&&t.includes("/author/details/");var ct=i(52706);const Bf=({allowTabNavigation:t=!0,className:e="",externalLinksDisabled:n,id:o,ref:r,showExternalLinksModal:a,tagName:l="div",value:d})=>{const c=(0,Ie.vU)(),u=(0,h.useCallback)(f=>{const g=f.target.closest(".fr-view a");g&&g.hasAttribute("data-external")&&a()},[a]),m=(0,xt.QQ)(d),p=(0,h.useMemo)(()=>{const f=(0,Xn.aj)(m),g=Array.prototype.concat(Kf,Gf,Ff,zf,n?Uf:[],t?Wf:Vf,$f(c?.a11yNoticeLinkNewTab));return Hf(g,f)},[t,n,c,m]);return(0,s.jsx)("div",{"aria-hidden":t?void 0:!0,className:`${e} brand--linkColor`,"data-l10n-id":(0,Rt.pP)(d),id:o,onClickCapture:n?u:void 0,ref:r,children:(0,h.createElement)(l,{className:"fr-view rise-tiptap",dangerouslySetInnerHTML:(0,h.useMemo)(()=>({__html:p}),[p])})})};function Hf(t,e){const n=document.createElement("div");n.innerHTML=e;for(const o of t)o(n);return n.innerHTML}function zf(t){for(const e of t.querySelectorAll("a")){e.setAttribute("target","_blank");const n=new Set((e.getAttribute("rel")??"").split(/\s+/));n.delete("opener"),n.add("noopener"),n.add("noreferrer"),e.setAttribute("rel",Array.from(n).join(" "))}}function Ff(t){for(const e of t.querySelectorAll("table"))if(!e.parentElement.classList.contains("rise-table-wrap")){const n=document.createElement("div");n.className="rise-table-wrap",e.parentNode.replaceChild(n,e),n.appendChild(e)}}function Uf(t){for(const e of t.querySelectorAll("a"))yr(e.href)&&(e.removeAttribute("href"),e.removeAttribute("rel"),e.removeAttribute("target"),e.setAttribute("data-external",""),e.setAttribute("role","button"))}function Vf(t){for(const e of t.querySelectorAll("a"))e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}function Wf(t){for(const e of t.querySelectorAll("a"))e.removeAttribute("aria-hidden"),e.hasAttribute("data-external")?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}function $f(t="(opens in a new tab)"){return e=>{for(const n of e.querySelectorAll('a[target="_blank"]')){const o=document.createElement("span");o.className="visually-hidden-always",o.textContent=t,n.appendChild(o)}}}function Kf(t){return X1(t).value}function Gf(t){for(const e of t.querySelectorAll("rise-math")){const{shortDescription:n,longDescription:o}=e,r=e.querySelector('[slot="short-description"]'),a=e.querySelector('[slot="long-description"]');n==null&&r!=null&&(e.shortDescription=r.textContent),o==null&&a!=null&&(e.longDescription=a.textContent)}return t}const Qf=Kl()({externalLinksDisabled:ts()(["course","externalLinksDisabled"]),courseColors:t=>{const{course:e}=t,{colorAccent:n}=e?.theme||{},o=(0,ct.WA)(n);return[...e?.theme?.colors||I.B4,n,o]}}),Zf={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})},Nt=(0,Ns.Ls)(Qf,Zf)(Bf),eh=ae("cover");function Yf(){const t=(0,Ie.DX)(),e=yf(),n=(0,xt.QQ)(t.description);if(!n)return null;const o=ga("description"),r=(0,us.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,s.jsx)("div",{...r,children:(0,s.jsxs)("section",{className:eh("details-content-section"),children:[e?(0,s.jsx)(e0,{}):(0,s.jsx)(G1,{}),(0,s.jsx)(Nt,{className:eh("details-content-description"),value:Kd(n)},"text")]})})}function _f({Default:t,...e}){const{dueAt:n}=e,r=n&&D1(n)?"brand--background":"brand--color";return(0,s.jsx)(t,{...e,className:r})}var th=i(9017),sh=i(47418);function Mn(t){const{to:e,children:n}=t,o=(0,Ne.zy)(),r=(0,h.useMemo)(()=>(0,sh.B)(e,o),[o,e]);return(0,s.jsx)(th.N_,{...t,to:r,children:n})}const Xf=({children:t,disabled:e,onClick:n,to:o,...r},a)=>e?(0,s.jsx)("a",{"aria-disabled":"true",ref:a,role:"link",...r,children:t}):(0,s.jsx)(Mn,{onClick:n,ref:a,to:o,...r,children:t}),Jf=(0,h.forwardRef)(Xf),t0=(0,h.createContext)({});t0.displayName="LocalesContext";function qf({i18n:t,children:e}){const n=(0,h.useMemo)(()=>({i18n:t}),[t]);return(0,s.jsx)(t0.Provider,{value:n,children:e})}function eg(){return(0,h.useContext)(t0)}var Oi=i(19752);const tg=ae("locale-switcher");function nh(){const t=(0,Ns.y4)(),{i18n:e}=eg(),{locale:n}=(0,Ie.DX)(),o=(0,h.useCallback)(r=>{const a=r.target.value;t((0,Oi.EL)(a))},[t]);return e?.available==null||e.available.length<=1?null:(0,s.jsx)("select",{className:tg(),defaultValue:n,onChange:o,children:e.available.map(r=>(0,s.jsx)("option",{children:r},r))})}const oh=ae("cover"),Qs=Pt("CoverAction",()=>{const{trackingQuizId:t}=(0,Ie.DX)(),e=window.viewType==="preview",n=(0,Ie._z)(),o=(0,Ie.MT)(),r=(0,Ie.Sd)(),a=n?.id,l=(0,Pe.Wk)()?r===100:(0,Pe.As)(),d=o!=null,c=d?o:a,u=!e&&Pe.BI&&(l||!d&&!t),{courseCTALabel:m}=(0,Ie.cN)({isCourseComplete:l,percentCourseComplete:r}),p=z()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":u});return m?(0,s.jsxs)("div",{className:oh("header-content-action-wrapper"),children:[(0,s.jsx)(Jf,{className:p,to:(0,os.p1)(c),children:(0,s.jsx)("span",{className:oh("header-content-action-link-text"),children:m})}),(0,s.jsx)(nh,{})]}):(0,s.jsx)(nh,{})});var sg=i(312),kn=i.n(sg),Yt=i(37322);const wi=kn()("partner-content-course-author__"),ng=({partnerContentAuthors:t,darkText:e,isImage:n,learn:o,lesson:r,isOnePage:a,selectedContentId:l})=>{const d=es()(nt()("id",l),t),c=ts()(["data","authors"],d),m=(r?c:t).filter(C=>C.name),p=z()(wi("author-container"),{[wi("author-container-padding-top")]:e}),f=z()({[wi("gray-text")]:!o&&!a}),g=z()(wi("author-image")),v=C=>`url(${(0,Yt.ny)({width:"76",height:"76",imageKey:C.image})})`;return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,s.jsx)("ol",{className:p,"data-test-id":"partner-content-course-author-container",role:"list",children:m.map(C=>(0,s.jsxs)("li",{className:wi("author"),"data-test-id":"partner-content-course-author",role:"listitem",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:g,"data-test-id":"partner-content-course-author-image",disabled:n,style:{backgroundImage:v(C)}}),(0,s.jsx)("span",{className:f,children:C.name})]},C.name))})]})},va=ae("cover"),og=()=>{const t=(0,Ie.UG)();if(t==null)return null;const{avatar:e,authorName:n,title:o}=t;return(0,s.jsxs)("div",{className:va("author-with-title"),children:[(0,s.jsx)(rh,{avatar:e}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:va("author-name"),children:n}),(0,s.jsx)("div",{className:va("author-title"),children:o})]})]})},rh=({avatar:t})=>{const e=va("header-content-authors-avatar");return t?(0,s.jsx)("div",{className:e,"data-test-id":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${(0,Pe.o1)(t)})`}}):(0,s.jsx)("div",{className:e,"data-test-id":"cover-header-content-authors-avatar",children:(0,s.jsx)(Vd,{decorative:!0})})},ao=Pt("CoverAuthors",({className:t})=>{const{color:e,partnerContentId:n,selectedAuthorId:o,theme:r,themeId:a}=(0,Ie.DX)(),{accentContrast:l,coverPageType:d}=r??{},{authorName:c,avatar:u}=(0,Ie.UG)()??{},m=(0,Ie.vU)(),p=(0,Ie.hM)(),f=!!n&&!!p,v=ks(768)&&(0,St.yL)(a,d),C=d===I.BL.LEFT_OVERLAY||d===I.BL.CENTERED_OVERLAY||v;if(o==="none")return null;const y=c||"Unknown User",b=va("header-content-authors").mix(t),x=va("header-content-authors-name");return f?(0,s.jsx)("div",{className:b,"data-test-id":"cover-authors",children:(0,s.jsx)(ng,{accentContrast:l,color:e,isImage:C,learn:!0,partnerContentAuthors:p})}):(0,s.jsxs)("div",{className:b,"data-test-id":"cover-authors",children:[(0,s.jsx)(rh,{avatar:u,isImage:C}),(0,s.jsxs)("div",{className:x,"data-test-id":"cover-header-content-authors-name",children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:m?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:y})]})]})}),rg=ae("cover"),On=Pt("CoverContentNoImage",({children:t})=>{const e=rg("header-content");return(0,s.jsx)("div",{className:e,"data-test-id":"cover-header-content",children:t})});var Zs=i(77541);const br=t=>{const e=(0,Ie.DX)(),n=(0,xt.gY)();return ag(e,t,n)},ag=(t,e,n)=>{const{media:o,alpha:r}=e==="coverImage"?(0,Zs.dM)(t,n):(0,Zs.LI)(t,n),a="image"in o?(0,Zs.I6)(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:(0,Zs.Vx)(a)}},ig=ae("cover"),s0=()=>{const t=(0,Ie.dT)(),{alpha:e,ariaLabel:n,media:o,role:r}=br("coverImage"),a=ig("header-image"),l=(0,St.b9)({alpha:e,color:t,media:o});return(0,s.jsx)("div",{"aria-label":n,className:a,role:r,style:l})},lg=ae("cover"),n0=({children:t})=>{const e=(0,Ie.dT)(),n=`overlay-${e.toLowerCase()}`,o=lg("header-content",{[n]:!!e});return(0,s.jsxs)("div",{className:o,"data-test-id":"cover-header-content",children:[t,(0,s.jsx)(s0,{})]})},cg=ae("cover"),Di=({hasOverlay:t=!1})=>{const{alpha:e,ariaLabel:n,media:o,role:r}=br("coverImage"),a=(0,St.b9)({alpha:e,hasOverlay:t,media:o}),l=cg("header-graphic",{"dot-com":Pe.BI});return(0,s.jsx)("div",{"aria-label":n,className:l,"data-test-id":"cover-header-graphic",role:r,style:a})},dg=ae("cover");function Ys({children:t}){const e=!!(0,Ie.Bd)(),n=dg("header-content-info",{rbc:e,"rise-com":Pe.BI});return(0,s.jsx)("div",{className:n,"data-test-id":"cover-header-content-info",children:t})}var ug=i(59288);function hg(t,e){const n=(0,Zs.sg)(t.src),o=t.width&&t.height&&!n,r=o?"async":void 0,a=o?"lazy":void 0,l=o?t.width:void 0,d=o?t.height:void 0;return(0,s.jsx)("img",{...t,decoding:r,height:d,loading:a,ref:e,width:l})}const ah=ug.forwardRef(hg),mg={ImageEagerOrLazy:ah},ih=Object.assign((0,h.createContext)(mg),{displayName:"BundleContext"});function pg({children:t,...e}){return(0,s.jsx)(ih.Provider,{value:e,children:t})}function fg(){return null}function Ca(t){function e(n,o){const a=(0,h.useContext)(ih)[t]??fg;return(0,s.jsx)(a,{ref:o,...n})}return e.displayName=`BundleComponent(${t})`,(0,h.forwardRef)(e)}const Os=Ca("CoverProgress"),gg=ae("cover"),_s=Pt("CoverTitle",()=>{const t=(0,Ie.DX)(),e=(0,xt.QQ)(t.title),n=gg("header-content-title"),o=ga("title"),r=(0,us.uW)(t.title)?{"data-l10n-id":t.title.l10nId}:{"data-change-path":o};return(0,s.jsx)("h1",{...r,className:n,"data-test-id":"cover-header-content-title",tabIndex:-1,children:e})}),vg={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function lh(){const t=(0,Ie.DX)(),e=bf(),n=t?.theme?.coverPageType||"CENTERED";return e?vg[n]??n:n}const Cg=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(n0,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Os,{}),(0,s.jsx)(Qs,{})]})})}),xg=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Os,{}),(0,s.jsx)(Qs,{})]})})}),yg=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Di,{}),(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Os,{}),(0,s.jsx)(Qs,{})]})})]}),bg=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Os,{}),(0,s.jsx)(Qs,{})]})}),(0,s.jsx)(Di,{})]});function Eg(){switch(lh()){default:case I.BL.LEFT_OVERLAY:case I.BL.CENTERED_OVERLAY:return(0,s.jsx)(Cg,{});case I.BL.LEFT:case I.BL.CENTERED:return(0,s.jsx)(xg,{});case I.BL.SPLIT_LEFT_IMAGE:case I.BL.TWO_THIRDS_LEFT_IMAGE:return(0,s.jsx)(bg,{});case I.BL.SPLIT_RIGHT_IMAGE:case I.BL.TWO_THIRDS_RIGHT_IMAGE:return(0,s.jsx)(yg,{})}}function Lg(){return(0,s.jsx)("header",{className:"cover__header","data-test-id":"cover-header",children:(0,s.jsx)(Eg,{})})}var Tg=i(1063),Bi=i.n(Tg),jg=i(59288);const Ig=ae("cover");function Sg({children:t}){const e=(0,Ie.DX)(),{themeId:n}=e?.theme??{},o=lh(),r=jg.useMemo(()=>Bi()(o),[o]),a=Ig({layout:r});return(0,s.jsx)("div",{className:a,"data-test-id":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var Jn=i(33530),Ng=i(71006),o0=i.n(Ng);const Er=({id:t="portal",childType:e="other",attributes:n}={})=>{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)),n)for(const[l,d]of Object.entries(n))r.setAttribute(l,d);return r};var ch=i(59288);class Ag extends ch.Component{static propTypes={id:Ee().any.isRequired,lessonProgress:Ee().object.isRequired,type:Ee().string.isRequired,items:Ee().array};refProgressWrap=ch.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=Er()}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],n=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const l=r.getBoundingClientRect().top+o,d=n>l;this.state.isSticky!==d&&this.setState({isSticky:d})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=Wt()(-1,"activeIndex",n),r=Tt()(e);return o===-1?0:Ms()(o)===r?100:o0()("%","",ts()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=Wt()(0,"activeIndex",n),r=Tt()(e);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:n}=this.props;switch(n){case"process":return this.processProgressValue();case"sorting":return Wt()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return Wt()(0,"percentComplete",e)}}render(){const{type:e,items:n}=this.props,{isSticky:o}=this.state,r=z()("progress-wrap",{}),a=z()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),l=z()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),d=this.progressValue(),c=e==="timeline"&&n&&n.map(m=>{const p=z()("progress__marker",{"progress__marker--active brand--background":parseInt(d)>=parseInt(m.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:p,style:{left:m.linePosition}},m.id)}),u=(0,s.jsx)("div",{className:r,children:(0,s.jsx)("div",{className:l,children:(0,s.jsxs)("div",{className:"progress__container",children:[(0,s.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${d}% * var(--dir-x)),0px,0px)`}}),c]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[u,(0,Jn.createPortal)((0,s.jsx)("div",{className:a,children:u}),this.portal)]})}}const r0=ae("lesson-header"),io=Pt("LessonHeaderAuthor",({avatar:t,authorName:e,className:n=""})=>{const o=(0,Ie.vU)();return(0,s.jsxs)("div",{className:`lesson-header__author ${n}`,children:[(0,s.jsx)("img",{alt:"",className:"lesson-header__author-img",src:(0,Pe.o1)(t)}),(0,s.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,s.jsx)("span",{className:"lesson-header__author-name",children:e})]})}),Hi=({showPartnerContent:t=!1})=>(0,s.jsx)("div",{className:r0("author",{"partner-content":t})}),lo=()=>(0,s.jsx)("div",{className:"lesson-header__counter"}),co=({lessonName:t,lessonPreposition:e,totalLessons:n,lessonNumber:o,showPartnerContent:r=void 0})=>{const{lmsOptions:a}=(0,Ie.DX)();return(0,s.jsx)("div",{className:r0("counter",{"partner-content":r}),children:(0,s.jsx)("div",{className:r0("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${t} ${o} ${e} ${n}`})})},Lr=({description:t})=>(0,s.jsx)(Nt,{className:"lesson-header__description",value:t}),Pg=({children:t})=>(0,s.jsx)("div",{className:"lesson-header__grouped-row",children:t}),Rg=({ariaLabel:t,imgRole:e,children:n,sectionStyles:o,topWrapClassName:r})=>(0,s.jsxs)("header",{className:"page__header",children:[(0,s.jsx)("div",{className:"page__header-limit",children:(0,s.jsx)("div",{className:"page__header-container",children:(0,s.jsx)("div",{className:"lesson-header__row",children:(0,s.jsx)("div",{className:"lesson-header__main",children:(0,s.jsx)("div",{className:"lesson-header",children:(0,s.jsx)("div",{className:r,children:n})})})})})}),(0,s.jsx)("div",{"aria-label":t,className:"page__header-bg",role:e,style:o})]}),uo=({title:t,id:e})=>{const n=W1(e,"title");return(0,s.jsx)("h1",{className:"lesson-header__title","data-change-path":n,tabIndex:-1,children:(0,s.jsx)(Nt,{value:t})})},Mg=t=>{const{authorName:e,avatar:n,color:o,description:r,labels:a,lessonHeaderStyle:l,lessonId:d,lessonNumber:c,partnerContentAuthors:u,showAuthor:m,showLessonCount:p,title:f,totalLessons:g}=t,{lessonName:v,lessonPreposition:C}=a,y=L=>`url(${(0,Yt.ny)({width:"76",height:"76",imageKey:L.image})})`,b=l===I.xj.TINT?{color:o}:null,x=n&&e&&m&&!u;return(0,s.jsxs)("div",{className:"lesson-header",children:[(0,s.jsxs)("div",{className:"lesson-header__top-wrap",style:b,children:[(0,s.jsx)(uo,{id:d,title:f}),u&&(0,s.jsx)("div",{className:"lesson-header__partner-content",children:u.map(L=>(0,s.jsxs)("div",{className:"lesson-header__partner-content-author",children:[(0,s.jsx)("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:y(L)}}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:a?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:L.name})]})]},L.name))}),(0,s.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[x?(0,s.jsx)(io,{authorName:e,avatar:n}):(0,s.jsx)(Hi,{}),p?(0,s.jsx)(co,{lessonName:v,lessonNumber:c,lessonPreposition:C,totalLessons:g}):(0,s.jsx)(lo,{})]})]}),r&&(0,s.jsx)(Lr,{description:r})]})};class P$ extends K().Component{static propTypes={authorName:Ee().string,avatar:Ee().string,description:Ee().string,showLessonCount:Ee().bool,steps:Ee().number,title:Ee().string.isRequired,type:Ee().string.isRequired};render(){const{children:e}=this.props;return(0,s.jsx)("section",{className:"page__header",children:(0,s.jsxs)("div",{className:"page__header-limit",children:[(0,s.jsx)("div",{className:"page__header-container",children:(0,s.jsx)("div",{className:"lesson-header__row",children:(0,s.jsx)("div",{className:"lesson-header__main",children:(0,s.jsx)(Mg,{...this.props})})})}),K().Children.map(e,n=>n&&n.type!==Ag?null:n)]})})}}const Zo=ae("lesson-header"),dh=t=>`url(${(0,Yt.ny)({width:"76",height:"76",imageKey:t?.image})})`,a0=({partnerContentAuthors:t})=>{const e=t.map(o=>o.name).join(", "),n=t.length===1;return(0,s.jsxs)("div",{className:Zo("partner-content",{mobile:!0}),children:[(0,s.jsx)("div",{className:Zo("partner-content-author",{single:n}),children:t.map(o=>(0,s.jsx)("div",{className:Zo("partner-content-author-img",{single:n}),style:{backgroundImage:dh(o)}},o.name))}),(0,s.jsx)("span",{"aria-hidden":"true",className:Zo("author-name"),children:e})]})},xa=({partnerContentAuthors:t})=>{const e=(0,Ie.vU)();return(0,s.jsx)("div",{className:Zo("partner-content"),children:t.map(n=>(0,s.jsxs)("div",{className:Zo("partner-content-author"),children:[(0,s.jsx)("div",{className:Zo("partner-content-author-img"),style:{backgroundImage:dh(n)}}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("span",{className:"visually-hidden",children:[e?.a11yAuthorPrefix," ",n.name]}),(0,s.jsx)("span",{"aria-hidden":"true",className:Zo("author-name"),tag:"span",children:n.name})]})]},n.name))})};var uh=i(59288);const ya=ae("lesson-header"),kg=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:l,showAuthor:d,showLessonCount:c,title:u,totalLessons:m,lessonId:p})=>{const f=l!=null&&d,g=e&&t&&d&&!f,v=g||f||c,C=c&&(g||f);return(0,s.jsxs)("div",{className:ya("content"),children:[v&&(0,s.jsxs)("div",{className:ya("info-row"),children:[g?(0,s.jsx)(io,{authorName:t,avatar:e}):(0,s.jsx)(Hi,{}),f&&(0,s.jsx)(xa,{partnerContentAuthors:l}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:ya("info-row--divider"),children:"|"}),c?(0,s.jsx)(co,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(lo,{})]}),(0,s.jsxs)("div",{className:ya("title-wrapper",{"no-info":!v}),children:[(0,s.jsx)(uo,{id:p,title:u}),n&&(0,s.jsx)(Lr,{description:n})]})]})},Og=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:l,showAuthor:d,showLessonCount:c,title:u,totalLessons:m,lessonId:p})=>{const f=l!=null,g=uh.useMemo(()=>e&&t&&d&&!f,[e,t,d,f]);return(0,s.jsxs)("div",{className:ya("content"),children:[c?(0,s.jsx)(co,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(lo,{}),g&&(0,s.jsx)(io,{authorName:t,avatar:e}),d&&f&&(0,s.jsx)(a0,{partnerContentAuthors:l}),(0,s.jsx)(uo,{id:p,title:u}),n&&(0,s.jsx)(Lr,{description:n})]})},wg=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:l,showAuthor:d,showLessonCount:c,title:u,totalLessons:m,lessonId:p})=>{const f=l!=null,g=uh.useMemo(()=>e&&t&&d&&!f,[e,t,d,f]);return(0,s.jsxs)("div",{className:ya("content"),children:[c?(0,s.jsx)(co,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(lo,{}),(0,s.jsx)(uo,{id:p,title:u}),g?(0,s.jsx)(io,{authorName:t,avatar:e}):(0,s.jsx)(Hi,{showPartnerContent:f}),d&&f&&(0,s.jsx)(xa,{partnerContentAuthors:l}),n&&(0,s.jsx)(Lr,{description:n})]})};function Dg(t){const e=_d();return t.lessonHeaderSize===I.OX.SMALL&&!e?(0,s.jsx)(kg,{...t}):e?(0,s.jsx)(Og,{...t}):(0,s.jsx)(wg,{...t})}const ba=t=>t===I.AY.FLOATING||t===I.AY.FLOATING_FULL;function Tr(){const t=(0,Ns.LY)(({course:{buttonNavigationStyle:n}})=>n);return ks(480)&&t===I.AY.FLOATING?I.AY.FLOATING_FULL:t}function i0({className:t,ref:e}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"15",ref:e,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M2.34315 7.34315L8 13L13.6569 7.34315",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,s.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",width:"2",x:"7",y:"1"})]})}function hh({className:t,ref:e}){return(0,s.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,s.jsx)("path",{d:"M2 8L7.65685 13.6569L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const Ea=Ca("LessonNav"),mh=ae("lesson-nav");function Bg({allowTooltip:t,courseFinishLabel:e,onFocus:n,nextLesson:o,restrictionData:r,restrictionType:a,ref:l}){const d=o?.id,c=Tr(),u=ba(c),m=u?i0:hh;return(0,s.jsxs)(Ea,{allowTooltip:t,direction:"next",finish:!0,isFloating:u,navLessonId:d,onFocus:n,ref:l,restrictionData:r,restrictionType:a,children:[(0,s.jsx)("span",{className:mh("link-text").mix("brand--ui"),children:e}),(0,s.jsx)(m,{className:mh("link-icon")})]})}const ph=ae("lesson-nav");function Hg({allowTooltip:t,lessonNameLabel:e,nextLesson:n,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:l,restrictionType:d}){const c=n?.id,u=Tr(),m=ba(u),f=(0,St.GG)(n)&&c,g=(0,xt.QQ)(n?.title)||"",v=m?i0:hh,C=f?`${e} ${o} - `:"",y=m&&f?`${e} ${o}`:`${C}${g}`;return(0,s.jsxs)(Ea,{allowTooltip:t,direction:"next",isFloating:m,navLessonId:c,onFocus:r,ref:a,restrictionData:l,restrictionType:d,children:[(0,s.jsx)("span",{className:ph("link-text").mix("brand--ui"),children:y}),(0,s.jsx)(v,{className:ph("link-icon")})]})}function fh({className:t,ref:e}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"15",ref:e,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M13.6569 7.65685L8 2L2.34315 7.65686",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,s.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",transform:"rotate(180 9 14)",width:"2",x:"9",y:"14"})]})}function zg({className:t,ref:e}){return(0,s.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,s.jsx)("path",{d:"M2 8L7.65685 2.34315L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const Gl=ae("lesson-nav");function Fg({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:l,ref:d}){const c=a?.id,u=Tr(),m=ba(u),f=(0,St.GG)(a)&&c,g=(0,xt.QQ)(a?.title)||n,v=m?fh:zg,C=f?`${o} ${l} - ${g}`:g,y=f&&m?`${o} ${l}`:C;return(0,s.jsx)(Ea,{allowTooltip:t,className:e,direction:"previous",isFloating:m,navLessonId:c,onFocus:r,ref:d,children:m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Gl("link-text").mix("brand--ui"),children:y}),(0,s.jsx)(v,{className:Gl("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{className:Gl("link-icon")}),(0,s.jsx)("span",{className:Gl("link-text").mix("brand--ui"),children:y})]})})}var _t=i(91159),is=i(82684),gh=i(15045);function Ug({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:l,strokeWidth:d,value:c=0}){const u=(0,h.useRef)(null),m=`mask-${(0,gh.A)()}`,p=(100-c)/100*(2*a);return(0,is.A)("transitionend",r,u.current),(0,s.jsxs)("svg",{height:o,viewBox:`0 0 ${o} ${o}`,width:o,children:[(0,s.jsx)("defs",{children:(0,s.jsx)("mask",{id:m,children:(0,s.jsx)("rect",{fill:"white",height:2.3*a,width:2.3*a,x:"0",y:c===0?100:p})})}),(0,s.jsx)("circle",{className:t,cx:e,cy:n,fill:"none",mask:`url(#${m})`,r:a,ref:u,strokeLinecap:l,strokeWidth:d})]})}const l0=Ug;function Vg({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:l,strokeWidth:d,transform:c,value:u=0}){const m=(0,h.useRef)(null),p=Math.PI*(Number(o)-Number(d)),f=p*(100-u)/100;return(0,is.A)("transitionend",r,m.current),(0,s.jsx)("circle",{className:t,cx:e,cy:n,fill:"transparent",r:a,ref:m,strokeDasharray:p,strokeDashoffset:f,strokeLinecap:l,strokeWidth:d,transform:c})}const vh=Vg;var c0=i(59288);const{COMPACT:Wg,COVER:$g,OVERLAY:Kg,SIDEBAR:Gg}=Ze.by,zi=ae("progress-circle");function Qg({"aria-hidden":t,"aria-label":e,isCurrent:n,isFailed:o,isPassed:r,scope:a,value:l}){const[d,c]=c0.useState(l===100),u=(0,_t.A)(l),{theme:{progressIndicatorStyle:m=I.Y2.THEME_DEFAULT}}=(0,Ie.DX)(),p=a===$g,f=a===Kg,g=m===I.Y2.THEME_DEFAULT,v=m===I.Y2.CIRCULAR_FILL,C=m===I.Y2.INCOMPLETE_COMPLETE,y=zi({compact:a===Wg,cover:p,current:n,sidebar:a===Gg,overlay:f}),b=zi("track",{"circular-fill":!f&&v,"incomplete-complete":p&&C}),x=zi("runner",{"circular-fill":v,done:d,failed:o,passed:r,unstarted:l===0}),L=zi("pass",{done:d,visible:r}),E=zi("fail",{done:d,visible:o}),S=c0.useMemo(()=>v||l===100?l:0,[v,l]);return c0.useEffect(()=>{if(l!==100&&u===100)c(!1);else if(l===100&&!d&&!C){const N=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,N)}else l===100&&!d&&C&&c(!0)},[d,C,u,l]),(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:y,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:b,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),g?(0,s.jsx)(vh,{className:x,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:l}):(0,s.jsx)(l0,{className:x,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:S}),(0,s.jsx)("path",{className:L,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,s.jsx)("path",{className:E,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 d0=(0,h.createContext)(null);d0.displayName="CourseNavContext";function Zg(t){const{children:e,isCourseNavOpen:n}=t;return(0,s.jsx)(d0.Provider,{value:{isCourseNavOpen:n},children:e})}function Yg(){return(0,h.useContext)(d0)}const Ch=960;function Fi(){return ks(Ch)}function _g(){const t=(0,Ie.DX)(),e=Fi(),n=(0,Ie.SQ)();return(0,St.L3)({course:t,isMobile:e,search:n})}function Xg(){const t=(0,Ie.DX)(),e=Fi();return(0,St.IO)({course:t,isMobile:e})}var xh=i(59288);class Jg extends xh.Component{refProgressWrap=xh.createRef();timeoutScroll;portal;constructor(e){super(e),this.state={isSticky:!1},this.portal=Er()}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],n=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const l=r.getBoundingClientRect().top+o,d=n>l&&n>0;this.state.isSticky!==d&&this.setState({isSticky:d})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=n.activeIndex??-1,r=e?.length??0;return o===-1?0:o+1===r?100:e?.[o]?.linePosition?.replace("%","")??"0"}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=n.activeIndex??0,r=e?.length??0;return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:n}=this.props;switch(n){case"process":return this.processProgressValue();case"sorting":return e.percentViewed??0;case"timeline":return this.timelineProgressValue();default:return e.percentComplete??0}}render(){const{type:e,items:n,sidebarAvailable:o,isCourseNavOpen:r,isMobile:a}=this.props,{isSticky:l}=this.state,d=z()("progress-wrap",{}),c=r,u=r&&a,m=z()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":l&&!u,"lesson--open":c&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&u&&!this.isLessonPreview()}),p=z()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),f=this.progressValue(),g=e==="timeline"&&n&&n.map(C=>{const y=z()("progress__marker",{"progress__marker--active brand--background":parseInt(String(f))>=parseInt(C.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:y,style:{left:C.linePosition}},C.id)}),v=(0,s.jsx)("div",{className:d,children:(0,s.jsx)("div",{className:p,children:(0,s.jsxs)("div",{className:"progress__container",children:[(0,s.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${f}% * var(--dir-x)),0px,0px)`}}),g]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[v,(0,Jn.createPortal)((0,s.jsx)("div",{"aria-hidden":"true",className:m,children:v}),this.portal)]})}}const qg=t=>{const e=_g(),{isCourseNavOpen:n}=Yg()??{},o=ks(480);return(0,s.jsx)(Jg,{...t,isCourseNavOpen:n,isMobile:o,sidebarAvailable:e})},ev=ma,tv=ma,sv=ma,nv=ma,ov=ma,rv=ma;function js({children:t,className:e,height:n,width:o,viewBox:r}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:n,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t})}function av(t){return(0,s.jsxs)(js,{viewBox:"0 0 24 24",...t,children:[(0,s.jsx)("path",{d:"M1 10.9609L10 19.9609",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M1 11.9609L10 2.96094",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M2 11.5H23",stroke:"currentColor",strokeWidth:"1.5"})]})}function iv({className:t}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"8",role:"img",viewBox:"0 0 16 8",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{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",fill:"currentColor",fillRule:"evenodd"})})}function lv(t){return(0,s.jsx)(js,{height:"12",viewBox:"0 0 18 12",width:"18",...t,children:(0,s.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 cv(t){return(0,s.jsx)(js,{height:"6",viewBox:"0 0 10 6",width:"10",...t,children:(0,s.jsx)("path",{d:"M9 1L5 5L1 1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function dv(t){return(0,s.jsx)(js,{height:"6",viewBox:"0 0 10 6",width:"10",...t,children:(0,s.jsx)("path",{d:"M1 5L5 1L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function uv(t){return(0,s.jsxs)(js,{height:"21",viewBox:"0 0 20 21",width:"20",...t,children:[(0,s.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,s.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,s.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 qn=i(67757);function yh(t){const e=(0,qn.QD)(t,["Default"]);return(0,s.jsx)(as,{...e,fill:"none",viewBox:"1 1 18 18",children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}function Ql(t){const e=(0,qn.QD)(t,["Default"]);return(0,s.jsxs)(as,{...e,fill:"none",viewBox:"0 0 18 18",children:[(0,s.jsx)("circle",{cx:"9",cy:"9",fill:"#74BF44",r:"9"}),(0,s.jsx)("path",{d:"M6.43994 9.12061L8.43994 11.1206L11.9399 7.62061",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}function hv(t){return(0,s.jsx)(js,{height:"12",viewBox:"0 0 12 12",width:"12",...t,children:(0,s.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 mv(t){return(0,s.jsx)(js,{height:"5",viewBox:"0 0 10 5",width:"10",...t,children:(0,s.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 pv(t){return(0,s.jsxs)(js,{height:"18",viewBox:"0 0 18 18",width:"18",...t,children:[(0,s.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,s.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 fv(t){return(0,s.jsxs)(js,{height:"14",viewBox:"0 0 20 14",width:"20",...t,children:[(0,s.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,s.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 gv(t){return(0,s.jsx)(js,{height:"10",viewBox:"0 0 10 10",width:"10",...t,children:(0,s.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 vv=ae("cover"),Zl=Pt("CoverDetailsSection",({children:t,type:e})=>(0,s.jsx)("section",{className:vv("details-content-section",{type:e}),children:t}));var Cv=i(72168),ws=i.n(Cv),xv=i(4322),Mo=i.n(xv),yv=i(10789),At=i.n(yv),bv=i(27905),nn=i.n(bv),Ev=i(72970),La=i.n(Ev),Lv=i(97886),Yl=i.n(Lv),Tv=i(86484),Yo=i.n(Tv),jv=i(47474),Ta=i.n(jv),Iv=i(54996),Sv=i.n(Iv),Nv=i(45015),Av=i.n(Nv),Pv=i(68971),bh=i.n(Pv),Rv=i(18779),Mv=i.n(Rv),kv=i(67711),Ui=i.n(kv),Ov=i(91794),jr=i.n(Ov),wv=i(53970),Eh=i.n(wv),Dv=i(63064),_l=i.n(Dv),Vi=i(36523),Ds=i(23366),Bv=i(41820);class on{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,n=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),o=/CriOS/.test(window.navigator.userAgent);return e&&n&&!o}static get isSafari9(){if(!window||!window.navigator)return!1;const e=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),n=/version\/9./i.test(window.navigator.userAgent);return e&&n}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 Hv=Ui()(kn()),Lh=t=>e=>`${t}/${e.id}`,zv=(t,e)=>Kl()({data:(0,Vi.action)(e),method:"POST",url:(0,Ds.rq)(Hv(`/${e}`),et()("url"),t),...vn()(["headers","withCredentials"],t)}),Fv=t=>(e,n)=>Sv()(e,Lh(n),u0(t,n)),Uv=t=>rs()(qe()({},["response","data"]),Yl()(et()("type"),(0,Vi.error)(t))),Vv=(t,e)=>n=>t.postRequest?t.postRequest(e,n):n,Th=t=>e=>n=>o=>(0,Ds.Ve)(o,zv(e,n),t,bh()(Uv(n),Yo()(La()("data"),et()("data"))),Mv()(jr()(et()("error"),Ta().Rejected,Ta().of)),Vv(e,{type:n,payload:o})),Wv=({url:t,method:e,data:n,headers:o})=>{if(on.isFirefox){const r=new Blob([JSON.stringify(n)],{type:"application/json"}),a=window.navigator.sendBeacon(t,r);return Promise.resolve({type:n.type,payload:{...n.payload,queued:a}})}return fetch(t,{method:e,credentials:"include",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(n),keepalive:!0}).then(r=>r.json()).then(Eh()("data"))},$v=Ta().fromPromise(Wv),u0=_l()(3,Th(Bv.Em)),Kv=_l()(3,Th($v)),Gv=t=>(e,n)=>Av()(e,Lh(n),u0(t,n)),Qv=t=>({debounce:Fv(t),send:u0(t),fetchWithKeepAlive:Kv(t),throttle:Gv(t)}),Zv=`${(0,Pe._$)("RISE_RUNTIME_URI")}/ducks`,Yv=Qv({headers:()=>({"x-rise-authoring-client":"faa448f78af09443a1476360bff0c34846593e5d"}),postRequest:(t,e)=>e,url:Zv,withCredentials:!0});var _v=i(41260),Xv=i.n(_v);const Jv=Xv()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:(0,ve.Xl)(),userRole:(0,ve.O0)(),subId:(0,ve.EO)(),subPlan:(0,ve.QJ)(),subStatus:(0,ve.l6)()}});var qv=i(73173),Wi=i(18796);const e4=kn()("rise/track/")("TRACK"),t4=t=>({...t,context:{locale:navigator.language,device:(0,Wi.Pf)(),channel:(0,Wi.c)(),userAgentData:(0,Wi.NO)(),page:(0,Wi.WE)(),userAgent:(0,Wi.$t)(),...t.context}}),s4=(t,e)=>({...t,properties:{...(0,qv.yV)(e),...t.properties}}),jh=t=>(e,n)=>{const o=n(),r=rs()(t4,a=>s4(a,o),Yl()(La()("userId"),nn()("userId",(0,ve.kn)())),Yo()(At()(Pe.BI),Jv))(t);return e(Yv.send(e4)(r))},Xs=kn()("partner-content-book-info__"),n4=t=>{const{authors:e,backgroundColor:n,bookImage:o,bookTitle:r,buyLink:a,block:l,publishedAt:d,track:c,trackingInfo:u}=t,m=e.filter(A=>!Jt()(A.name)),p=ws()(A=>A.name,m),f=p.length>1?Pi()(" & ",p):p[0],g=f.slice(-1)==="s"?"":"s",v=(0,ct.cP)(n),C=z()({[Xs("book-image-block")]:l&&!v},{[Xs("book-image-block")&&Xs("dark-theme-book-image")]:l&&v},{[Xs("book-image-course")]:!l}),y=Xs(l?"flex-block":"flex-course"),b=Xs(l?"image-container-block":"image-container-course"),x=z()(Xs("small-text"),{[Xs("dark-theme")]:v}),L=z()(Xs("black-text"),{[Xs("dark-theme")]:v}),E=z()(Xs("button"),{[Xs("dark-theme-button")]:v}),S=(0,Yt.ny)({height:"210",width:"140",imageKey:o}),N=(0,h.useCallback)(()=>{Pe.BI&&d&&c({event:"Click Tracked",payload:Mo()(u,{type:"Buy Link"})})},[d,c,u]);return(0,s.jsxs)("section",{className:y,children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:b,children:o?(0,s.jsx)("img",{alt:"",className:C,src:S}):(0,s.jsx)("div",{className:C})}),(0,s.jsxs)("div",{className:Xs("text-container"),children:[(0,s.jsxs)("p",{className:x,children:["From ",f,"'",g]}),(0,s.jsx)("p",{className:L,children:r}),(0,s.jsx)("a",{className:E,href:a,onClick:N,rel:"noopener noreferrer",target:"_blank",children:"Buy the book"})]})]})},o4={track:jh},Ih=(0,Ns.Ls)(null,o4)(n4),wn=kn()("partner-content-partner-info__"),r4=({backgroundColor:t,block:e,link:n,publishedAt:o,track:r,trackingInfo:a})=>{const l=e?(0,Yt.H5)():(0,Yt.DB)(),d=wn(e?"nbic-logo-light-bulb":"nbic-logo"),c=wn(e?"block-logo-container":"logo-container"),u=(0,ct.cP)(t),m=z()(wn("small-text"),{[wn("dark-theme")]:u}),p=z()(wn("black-text"),{[wn("dark-theme")]:u}),f=z()(wn("button"),{[wn("dark-theme-button")]:u}),g=(0,h.useCallback)(()=>{Pe.BI&&o&&r({event:"Click Tracked",payload:Mo()(a,{type:"Partner Link"})})},[o,r,a]);return(0,s.jsxs)("section",{className:wn("flex"),children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:c,children:(0,s.jsx)("img",{alt:"",className:d,src:l})}),(0,s.jsxs)("div",{className:wn("text-container"),children:[(0,s.jsx)("p",{className:m,children:"In partnership with"}),(0,s.jsx)("p",{className:p,children:"Next Big Idea Club"}),(0,s.jsx)("a",{className:f,href:n,onClick:g,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},a4={track:jh},Sh=(0,Ns.Ls)(null,a4)(r4),ja=kn()("partner-content-author-card__"),Nh=t=>{const{courseId:e,partnerContent:n,publishedAt:o,tenantId:r}=t,{data:a,type:l}=n,{authors:d,bookImage:c,bookTitle:u,buyLink:m,internalId:p,nbicLink:f}=a,g=d.filter(x=>x.name),v={courseId:e,partnerContentId:n.id,partnerContentInternalId:p,tenantId:r,contentSubtype:l},C=z()(ja("flex"),ja("author-container")),y=x=>(0,Yt.ny)({width:"122",height:"122",imageKey:x}),b=(x,L)=>(0,s.jsx)("div",{"aria-hidden":"true",className:ja("image-container"),children:x?(0,s.jsx)("img",{alt:L,className:ja("author-image"),src:y(x)}):(0,s.jsx)("div",{className:ja("author-image")})});return(0,s.jsxs)("ol",{className:"partner-content-author-card","data-test-id":"partner-content-author-card",role:"list",children:[(0,s.jsx)("li",{role:"listitem",children:(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),g.map(x=>(0,s.jsxs)("li",{className:C,children:[b(x.image,x.name),(0,s.jsx)("p",{className:ja("author-name-text"),children:x.name})]},x.name))]})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Ih,{authors:d,bookImage:c,bookTitle:u,buyLink:m,publishedAt:o,trackingInfo:v})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Sh,{link:f,publishedAt:o,trackingInfo:v})})]})},i4=ae("cover");function l4(t){const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:l}=t;if(!r)return null;const d=i4("details-content-aside",{logo:o});return(0,s.jsx)("div",{className:d,children:(0,s.jsx)(Zl,{type:"partner-content",children:(0,s.jsx)(Nh,{courseId:e,partnerContent:n,publishedAt:a,tenantId:l})})})}var c4=i(95017),Xl=i.n(c4);const d4=ae("cover"),u4=Pt("CoverDetailsContentHeading",({className:t="",type:e,...n})=>{const o=Xl()(["Default"],n);return(0,s.jsx)("header",{...o,className:d4("details-content-heading",{type:e}).mix(t)})}),h4=ae("cover");function m4({children:t,title:e,type:n}){const o=(0,Ie.DX)(),{description:r,media:a,partnerContentId:l}=o,d=!!l,u=(a&&"image"in a?a.image?.key:null)!=null,p=n==="outline"?r?!u&&!d?"outline-no-logo":d&&!u?"outline-has-partner-content":d&&u?"outline-has-pc-and-logo":"outline":"outline-no-description":n;return(0,s.jsxs)("section",{className:h4("details-content-section",{type:p}),children:[(0,s.jsx)(u4,{type:n,children:(0,s.jsx)("h2",{children:e})}),t]})}const p4=ae("cover");function $i(){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:p4("header-star"),fill:"none",height:"18",viewBox:"0 0 18 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M9 0V18",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M18 9H0",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M15.3 15.3002L2.69995 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M2.69995 15.3002L15.3 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}const f4=()=>ks(480),g4=()=>ks(768),v4={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function Ah(){const t=(0,Ie.DX)(),e=g4(),n=t?.theme?.coverPageType||"CENTERED";return e?v4[n]??n:n}const C4=ae("cover"),x4=()=>null,y4=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(n0,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(Os,{}),(0,s.jsx)($i,{}),(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})})}),b4=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(Os,{}),(0,s.jsx)($i,{}),(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})})}),E4=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Di,{}),(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(Os,{}),(0,s.jsx)($i,{}),(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})})]}),L4=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(Os,{}),(0,s.jsx)($i,{}),(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})}),(0,s.jsx)(Di,{})]}),T4=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(Os,{}),(0,s.jsx)($i,{}),(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})}),(0,s.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,s.jsx)(Di,{})})]});function j4(){switch(Ah()){default:case"CENTERED_IMAGE":return(0,s.jsx)(T4,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,s.jsx)(b4,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,s.jsx)(L4,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,s.jsx)(E4,{});case"CENTERED_OVERLAY":return(0,s.jsx)(y4,{})}}function I4(){return(0,s.jsxs)("header",{className:C4("header",{meta:!1}),"data-test-id":"cover-header",children:[(0,s.jsx)(j4,{}),(0,s.jsx)(K().Suspense,{children:(0,s.jsx)(x4,{})})]})}var S4=i(59288);const N4=ae("cover");function A4({children:t}){const e=(0,Ie.DX)(),{themeId:n}=e?.theme??{},o=Ah(),r=S4.useMemo(()=>Bi()(o),[o]),a=N4(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-test-id":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var Ph=i(59288);const h0=ae("lesson-header"),P4=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:l,showLessonCount:d,title:c,totalLessons:u,lessonId:m})=>{const p=a!=null&&l,f=e&&t&&l&&!p,g=f||p||d,v=d&&(f||p);return(0,s.jsxs)("div",{className:h0("content"),children:[g&&(0,s.jsxs)("div",{className:h0("info-row"),children:[f?(0,s.jsx)(io,{authorName:t,avatar:e}):(0,s.jsx)(Hi,{}),p&&(0,s.jsx)(xa,{partnerContentAuthors:a}),v&&(0,s.jsx)("span",{"aria-hidden":"true",className:h0("info-row--divider"),children:"|"}),d?(0,s.jsx)(co,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:u}):(0,s.jsx)(lo,{})]}),(0,s.jsx)("div",{children:(0,s.jsx)(uo,{id:m,title:c})})]})},R4=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:l,showLessonCount:d,title:c,totalLessons:u,lessonId:m})=>{const p=a!=null,f=Ph.useMemo(()=>e&&t&&l&&!p,[e,t,l,p]);return(0,s.jsxs)(s.Fragment,{children:[d?(0,s.jsx)(co,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:u}):(0,s.jsx)(lo,{}),f&&(0,s.jsx)(io,{authorName:t,avatar:e}),l&&p&&(0,s.jsx)(a0,{partnerContentAuthors:a}),(0,s.jsx)(uo,{id:m,title:c})]})},M4=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:l,showLessonCount:d,title:c,totalLessons:u,lessonId:m})=>{const p=a!=null,f=Ph.useMemo(()=>e&&t&&l&&!p,[e,t,l,p]);return(0,s.jsxs)(s.Fragment,{children:[f?(0,s.jsx)(io,{authorName:t,avatar:e}):(0,s.jsx)(Hi,{}),l&&p&&(0,s.jsx)(xa,{partnerContentAuthors:a}),(0,s.jsx)(uo,{id:m,title:c}),d?(0,s.jsx)(co,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:u}):(0,s.jsx)(lo,{})]})};function k4(t){const e=f4();return t.lessonHeaderSize===I.OX.SMALL&&!e?(0,s.jsx)(P4,{...t}):e?(0,s.jsx)(R4,{...t}):(0,s.jsx)(M4,{...t})}var m0=i(59288);const{COMPACT:O4,COVER:w4,OVERLAY:D4,SIDEBAR:B4}=Ze.by,Ia=ae("progress-circle");function H4({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[l,d]=m0.useState(a===100),c=(0,_t.A)(a),{theme:{progressIndicatorStyle:u=I.Y2.THEME_DEFAULT}}=(0,Ie.DX)(),m=r===w4,p=r===D4,f=u===I.Y2.THEME_DEFAULT,g=u===I.Y2.CIRCULAR_FILL,v=u===I.Y2.INCOMPLETE_COMPLETE,C=Ia("default",{failed:n,passed:o}),y=Ia({compact:r===O4,cover:m,overlay:p,sidebar:r===B4}),b=Ia("track",{"circular-fill":!p&&g,"incomplete-complete":m&&v}),x=Ia("fill",{"circular-fill":g,done:l,failed:n,passed:o,unstarted:a===0}),L=Ia("pass",{done:l,visible:o}),E=Ia("fail",{done:l,visible:n}),S=m0.useMemo(()=>g||a===100?a:0,[g,a]);return m0.useEffect(()=>{if(a!==100&&c===100)d(!1);else if(a===100&&!l&&!v){const N=setTimeout(()=>d(!0),300);return clearTimeout.bind(null,N)}else a===100&&!l&&v&&d(!0)},[l,v,c,a]),(0,s.jsx)(s.Fragment,{children:f?(0,s.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,s.jsx)("circle",{cx:"3.5",cy:"3.5",r:"2.5"})}):(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:y,fill:"none",focusable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:b,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,s.jsx)(l0,{className:x,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:S}),(0,s.jsx)("path",{className:L,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,s.jsx)("path",{className:E,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 z4({Default:t,...e}){return(0,s.jsx)(t,{...e,hasOverlay:!1})}var F4=i(10894),Ki=i.n(F4);const p0=t=>e=>(t(e),e.preventDefault()),Sa=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},eo=t=>e=>{t(e),e.preventDefault(),Sa(e)};function Jl(t,e){const n=[];if(t){let o=t.parentElement;for(;o&&(e?.limit==null||n.length<e.limit);){if(o===document.body){n.push(window);break}const r=window.getComputedStyle(o);(r.overflowX==="auto"||r.overflowX==="scroll"||r.overflowY==="auto"||r.overflowY==="scroll")&&n.push(o),o=o.parentElement}}return n}function U4(t){return Jl(t,{limit:1})[0]}function Rh(t,e){(0,h.useLayoutEffect)(()=>{let n=t.current;const o=Jl(n);for(const r of o)r?.addEventListener("scroll",e);return()=>{for(const r of o)r?.removeEventListener("scroll",e)}},[e,t])}var ho=i(39843),V4=i(63036),As=i.n(V4),W4=i(45005),xn=i.n(W4),$4=i(92629),_o=i.n($4),K4=i(53625),ko=i.n(K4);const G4={keys:["End"],keyCode:ho.KEY_END},Q4={keys:["Enter"],keyCode:ho.KEY_RETURN},Z4={keys:["Home"],keyCode:ho.KEY_HOME},Y4={keys:["Tab"],keyCode:ho.KEY_TAB},_4={keys:[" "],keyCode:ho.KEY_SPACE},X4={keys:["Escape","Esc"],keyCode:ho.KEY_ESCAPE},J4={keys:["ArrowUp"],keyCode:ho.KEY_UP},q4={keys:["ArrowDown"],keyCode:ho.KEY_DOWN},e9={keys:["ArrowLeft"],keyCode:ho.KEY_LEFT},t9={keys:["ArrowRight"],keyCode:ho.KEY_RIGHT},mo=({keyCode:t,keys:e})=>n=>n.keyCode?n.keyCode===t:xn()(n.key,e),s9=t=>t.altKey||t.ctrlKey||t.metaKey,n9=mo(G4),Ir=mo(Q4),o9=mo(Z4),ql=mo(Y4),ec=mo(_4),rn=mo(X4),Gi=mo(J4),Qi=mo(q4),Na=mo(e9),Aa=mo(t9),Xo=ko()(ec,Ir),F$=ko()(ql,Ir),tc=ko()(Aa,Gi),sc=ko()(Na,Qi),Mh=ko()(Gi,Qi),kh=Yo()(Xo),Oh=25,r9=_o()((t,e)=>{t.scrollTop!==0&&(e.preventDefault(),t.scrollTop-=Oh)}),a9=_o()((t,e,n)=>{e&&(n.preventDefault(),t.scrollTop+=Oh)}),i9=(t,e)=>n=>{const o=a9(t,e),r=r9(t);As()([[Qi,o],[Gi,r]])(n)},nc=ae("lesson-progress"),{COMPACT:f0,COVER:Zi,OVERLAY:g0,SIDEBAR:Yi}=Ze.by;function l9({canComplete:t,color:e,hasRestriction:n,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:l,isFailed:d,isLegacy:c=void 0,isPassed:u,isTooltipVisible:m,navigationStyle:p,onHideTooltip:f,onMarkComplete:g=void 0,onMarkReset:v=void 0,onShowTooltip:C,percentComplete:y,progressGraphic:b,scope:x,labels:L}){const E=(0,h.useRef)(),S=(0,h.useRef)(),N=(0,h.useRef)(),A=(0,h.useRef)(),{theme:{progressIndicatorStyle:k=I.Y2.THEME_DEFAULT}}=(0,Ie.DX)(),R=k===I.Y2.THEME_DEFAULT,W=nc({compact:x===f0,cover:x===Zi&&!c,"legacy-cover":x===Zi&&c,inactive:n,overlay:x===g0,sidebar:x===Yi&&!c,"legacy-sidebar":x===Yi&&c,"theme-default":R}),D=nc("graphic",{compact:x===f0,cover:x===Zi&&!c,"legacy-cover":x===Zi&&c,overlay:x===g0,sidebar:x===Yi&&!c,"legacy-sidebar":x===Yi&&c}),w=nc("tooltip",{legacy:c}).toString(),Z=(0,h.useCallback)(()=>{o?v?.():g?.()},[o,g,v]),B=(0,h.useCallback)(le=>{Ki()(f)&&rn(le)&&m&&f()},[f,m]),F=(0,h.useCallback)(()=>{clearTimeout(N.current),!n&&Ki()(C)&&(S.current=setTimeout(C,600))},[n,C]),G=(0,h.useCallback)(()=>{clearTimeout(S.current),Ki()(f)&&(N.current=setTimeout(f,150))},[f]),ue=(0,h.useCallback)(()=>{setTimeout(()=>{if(m){const le=E.current.getBoundingClientRect(),Se=A.current.offsetParent.getBoundingClientRect(),{height:Oe,width:We}=le,ze=le.left-Se.left,Ve=le.top-Se.top;Object.assign(A.current.style,{transform:`translate(${ze}px, ${Ve}px)`,width:`${We}px`,height:`${Oe}px`})}},0)},[m]);if((0,h.useLayoutEffect)(()=>ue(),[ue]),(0,is.A)("resize",ue,window),(0,is.A)("keydown",B,document),Rh(E,G),t){const le=Pe.BI&&y===100,Se=c9({labels:L,percentComplete:y,canReset:!le}),Oe=!l||le,We=nc("action",{disabled:Oe});return(0,s.jsx)("span",{className:W,"data-test-id":"lesson-progress",children:(0,s.jsx)("button",{"aria-label":Se,className:We,disabled:Oe,onBlur:f,onClick:Z,onFocus:C,type:"button",children:(0,s.jsxs)("span",{className:D,onMouseEnter:F,onMouseLeave:G,ref:E,children:[(0,s.jsx)(b,{"aria-hidden":"true",color:e,isCurrent:r,isDark:a,isFailed:d,isPassed:u,navigationStyle:p,scope:x,value:y}),l&&!n&&(0,s.jsx)(wh,{className:w,dark:a,ref:A,scope:x,visible:m,children:Se})]})})})}const ce=d9({labels:L,isFailed:d,percentComplete:y});return(0,s.jsx)("span",{className:W,"data-test-id":"lesson-progress",children:(0,s.jsxs)("span",{className:D,onMouseEnter:F,onMouseLeave:G,ref:E,children:[(0,s.jsx)(b,{"aria-label":ce,color:e,isCurrent:r,isDark:a,isFailed:d,isPassed:u,navigationStyle:p,scope:x,value:y}),l&&!n&&(0,s.jsx)(wh,{className:w,dark:a,ref:A,scope:x,visible:m,children:ce})]})})}const wh=(0,h.forwardRef)((t,e)=>{const{children:n,className:o,dark:r,scope:a,visible:l}=t,d=(0,h.useMemo)(()=>ae(o),[o]),c=d({compact:a===f0,cover:a===Zi,overlay:a===g0,sidebar:a===Yi,visible:l}),u=d("inner",{dark:r,light:!r}),m=(0,s.jsx)("div",{"aria-hidden":"true",onClick:Sa,ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,s.jsx)("div",{style:{pointerEvents:"all"},children:(0,s.jsx)("div",{className:c,children:(0,s.jsx)("div",{className:u,children:n})})})});return(0,Jn.createPortal)(m,Er())});function c9({labels:t,canReset:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:l,progressPieClickToReset:d}=t;return o&&e?`${r}. ${d}`:n===100&&!e?r:n===0?`${a}. ${l}`:`${n}% ${r}. ${l}`}function d9({labels:t,isFailed:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:l}=t;return e?l:o?r:n===0?a:`${n}% ${r}`}const Dh=K().memo(l9);function u9({color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:l,lessonTitle:d,navigationStyle:c,onHideTooltip:u,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:g,labels:v}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"overview-list-item__progress",children:(0,s.jsx)(Dh,{canComplete:!1,color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:l,labels:v,navigationStyle:c,onHideTooltip:u,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:g})}),(0,s.jsx)("span",{className:"overview-list-item__title",children:d})]})}function h9(){return null}function Bh({className:t,ref:e}){return(0,s.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,s.jsx)("path",{d:"M3.33177 4.1487L6.48034 1.00013M9.6289 4.14869L6.48034 1.00013M6.48034 1.00013L6.47966 11.9601"})})}function m9(t){const e=(0,qn.QD)(t,["Default"]);return(0,s.jsxs)(as,{...e,fill:"none",viewBox:"0 3 16 10",children:[(0,s.jsx)("path",{d:"M1.51472 7.99993H14.4853",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M9.50008 12.4994L14.5004 7.99932L9.50008 3.99973",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}function p9(t){const e=(0,qn.QD)(t,["Default"]);return(0,s.jsx)(as,{viewBox:"0 0 25 16",...e,children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}function Hh(t){return(0,s.jsx)(js,{height:"8",viewBox:"0 0 14 8",width:"14",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M13 1L7 7L1 1",stroke:"currentColor"})})}function zh(t){const e=(0,qn.QD)(t,["Default"]);return(0,s.jsxs)(as,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,s.jsx)("path",{d:"M5 7.71429L7.54545 10L11.5 5.5",stroke:"white"})]})}function Fh(t){const e=(0,qn.QD)(t,["Default"]);return(0,s.jsxs)(as,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.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",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"0.890284"}),(0,s.jsx)("circle",{cx:"8",cy:"7.5293",r:"7",stroke:"white"})]})}function f9({className:t}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{cx:"6",cy:"6",r:"5"}),(0,s.jsx)("path",{d:"M9.5 9.5L14 14"})]})}function g9(t){const e=(0,qn.QD)(t,["Default"]);return(0,s.jsxs)(as,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,s.jsx)("path",{d:"M10 6L6 10",stroke:"white"}),(0,s.jsx)("path",{d:"M6 6L10 10",stroke:"white"})]})}function v9({className:t}){return(0,s.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,s.jsx)("path",{d:"M1 1.40002L5 5.40002L9 1.40002",strokeWidth:"1.6"})})}function C9(t){const e=(0,qn.QD)(t,["Default"]);return(0,s.jsxs)(as,{viewBox:"0 0 12 12",...e,children:[(0,s.jsx)("path",{d:"M10.7425 0.742189L11.4496 1.4493L1.55012 11.3488L0.843012 10.6417L10.7425 0.742189Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M11.1571 10.6417L10.45 11.3488L0.550537 1.44929L1.25764 0.742188L11.1571 10.6417Z",fill:"currentColor"})]})}const x9=()=>ks(1200),y9=()=>ks(768),v0=()=>ks(480),Uh=ae("cover");function b9(){const t=(0,Ie.DX)(),e=x9(),n=(0,xt.QQ)(t.description);if(!n)return null;const o=ga("description"),r=(0,us.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,s.jsx)("div",{...r,children:(0,s.jsxs)("section",{className:Uh("details-content-section"),children:[e&&(0,s.jsx)(e0,{}),(0,s.jsx)(Nt,{className:Uh("details-content-description"),value:Kd(n)},"text")]})})}const E9={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function C0(){const t=(0,Ie.DX)(),e=y9(),n=t?.theme?.coverPageType||"CENTERED";return e?E9[n]??n:n}function L9({Default:t,...e}){const n=C0(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(n);return(0,s.jsx)(t,{...e,reverseColumns:o})}const Vh=ae("cover");function _i({accentColor:t,hasOverlay:e=!1,isShape:n=!1}){const{alpha:o,ariaLabel:r,media:a,role:l}=br("coverImage"),d=n?{backgroundColor:t}:(0,St.b9)({alpha:o,hasOverlay:e,media:a});return(0,s.jsx)("div",{className:Vh("header-graphic-container"),children:(0,s.jsx)("div",{"aria-label":r,className:Vh("header-graphic"),"data-test-id":"cover-header-graphic",role:l,style:d})})}const Wh=t=>(0,s.jsx)(oc,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.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"})})}),$h=t=>(0,s.jsx)(oc,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.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"})})}),Kh=t=>(0,s.jsx)(oc,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.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"})})}),Gh=t=>(0,s.jsx)(oc,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.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"})})}),T9={LEFT_OVERLAY:Wh,LEFT:Wh,CENTERED:$h,CENTERED_OVERLAY:$h,SPLIT_LEFT:Kh,SPLIT_LEFT_IMAGE:Kh,SPLIT_RIGHT:Gh,SPLIT_RIGHT_IMAGE:Gh},oc=({children:t,className:e="svgPath",height:n,width:o,viewBox:r})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:n,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t});function Sr({className:t,coverPageType:e}){const n=e?T9[e]:null;return n?(0,s.jsx)(n,{className:t}):null}const Qh=ae("cover"),Pa=()=>(0,s.jsxs)("div",{className:Qh("author-published-wrap"),children:[(0,s.jsx)(ao,{}),(0,s.jsx)(G1,{})]}),j9=({coverPageType:t})=>{const e=v0();return(0,s.jsxs)(n0,{children:[(0,s.jsx)(Sr,{coverPageType:t}),(0,s.jsxs)(Ys,{children:[!e&&(0,s.jsx)(Os,{}),(0,s.jsx)(Pa,{}),(0,s.jsx)(_s,{}),e&&(0,s.jsx)(Os,{}),(0,s.jsx)(Qs,{})]})]})},I9=({coverPageType:t})=>{const e=v0();return(0,s.jsxs)(On,{children:[(0,s.jsx)(Sr,{coverPageType:t}),(0,s.jsxs)(Ys,{children:[!e&&(0,s.jsx)(Os,{}),(0,s.jsx)(Pa,{}),(0,s.jsx)(_s,{}),e&&(0,s.jsx)(Os,{}),(0,s.jsx)(Qs,{})]})]})},S9=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Sr,{coverPageType:t}),(0,s.jsx)(_i,{}),(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(Os,{}),(0,s.jsx)(Pa,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})})]}),N9=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(Os,{}),(0,s.jsx)(Pa,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})}),(0,s.jsx)(Sr,{coverPageType:e}),(0,s.jsx)(_i,{accentColor:t,isShape:!0})]}),A9=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(Os,{}),(0,s.jsx)(Pa,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})}),(0,s.jsx)(Sr,{coverPageType:t}),(0,s.jsx)(_i,{})]}),P9=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Sr,{coverPageType:e}),(0,s.jsx)(_i,{accentColor:t,isShape:!0}),(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(Os,{}),(0,s.jsx)(Pa,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})})]});function R9(t){const e=C0(),n={...t,coverPageType:e};switch(e){default:case I.BL.LEFT_OVERLAY:case I.BL.CENTERED_OVERLAY:return(0,s.jsx)(j9,{...n});case I.BL.LEFT:case I.BL.CENTERED:return(0,s.jsx)(I9,{...n});case I.BL.SPLIT_LEFT:return(0,s.jsx)(N9,{...n});case I.BL.SPLIT_LEFT_IMAGE:return(0,s.jsx)(A9,{...n});case I.BL.SPLIT_RIGHT:return(0,s.jsx)(P9,{...n});case I.BL.SPLIT_RIGHT_IMAGE:return(0,s.jsx)(S9,{...n})}}function M9(t){const{partnerContentId:e}=(0,Ie.DX)(),n=(0,Ie.Bd)(),r=!!(!!e&&n||Pe.BI);return(0,s.jsx)("header",{className:Qh("header",{"with-info":r}),"data-test-id":"cover-header",children:(0,s.jsx)(R9,{...t})})}var k9=i(59288);const O9=ae("cover");function w9({children:t}){const e=(0,Ie.DX)(),{themeId:n}=e?.theme??{},o=C0(),r=k9.useMemo(()=>Bi()(o),[o]),a=O9(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-test-id":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}const D9=Ps("AlignLeft"),rc=Ps("ArrowDown"),Zh=Ps("ArrowRight"),Yh=Ps("ArrowUp"),B9=Ps("Category"),H9=Ps("ChevronDown"),z9=Ps("ChevronUp"),F9=Ps("LessonsComplete"),U9=Ps("LessonsRequirement"),V9=Ps("QuestionBox"),W9=Ps("QuizFailed"),$9=Ps("QuizPassed"),K9=Ps("QuizRequirement"),Xi=Ps("Search"),_h=Ps("ToggleDown"),G9=Ps("Touch"),Q9=Ps("VideoCamera"),ac=Ps("X"),Oo=ae("cover");function Z9({nextLesson:t,percentComplete:e}){const n=v0(),r=(0,Ie.Wz)()?`%${e}`:`${e}%`;return e===0||!Pe.BI?null:(0,s.jsxs)("div",{className:Oo("progress"),children:[n&&(0,s.jsxs)("div",{className:Oo("progress-text"),children:[e,"% Complete"]}),(0,s.jsx)("div",{className:Oo("progress-outer"),children:(0,s.jsx)("div",{className:Oo("progress-inner"),style:{width:`${e}%`}})}),(0,s.jsxs)("div",{className:Oo("progress-text-wrap"),children:[!n&&(0,s.jsxs)("div",{className:Oo("progress-text"),children:[r," Complete"]}),t&&(0,s.jsxs)("div",{className:Oo("progress-next-lesson"),children:[(0,s.jsx)(Zh,{className:Oo("progress-next-lesson-icon").toString(),decorative:!0}),(0,s.jsx)("span",{"aria-hidden":"true",className:Oo("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})]})}var Xh=i(59288);const ic=ae("lesson-header"),x0=()=>(0,s.jsx)("div",{className:ic("author--hidden")}),Y9=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:l,showAuthor:d,showLessonCount:c,title:u,totalLessons:m,lessonId:p})=>{const f=l!=null&&d,g=e&&t&&d&&!f,v=g||f||c,C=c&&(g||f);return(0,s.jsxs)("div",{className:ic("content"),children:[v&&(0,s.jsxs)("div",{className:ic("info-row"),children:[g?(0,s.jsx)(io,{authorName:t,avatar:e}):(0,s.jsx)(x0,{}),f&&(0,s.jsx)(xa,{partnerContentAuthors:l}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:ic("info-row--divider"),children:"|"}),c?(0,s.jsx)(co,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(lo,{})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(uo,{id:p,title:u}),n&&(0,s.jsx)(Lr,{description:n})]})]})},_9=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:l,partnerContentAuthors:d,showAuthor:c,showLessonCount:u,title:m,totalLessons:p,lessonId:f}=t,g=d!=null,v=Xh.useMemo(()=>n&&e&&c&&!g,[n,e,c,g]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(uo,{id:f,title:m}),(0,s.jsxs)(Pg,{children:[v?(0,s.jsx)(io,{authorName:e,avatar:n}):(0,s.jsx)(x0,{}),c&&g&&(0,s.jsx)(xa,{partnerContentAuthors:d}),u?(0,s.jsx)(co,{lessonName:r,lessonNumber:a,lessonPreposition:l,showPartnerContent:g,totalLessons:p}):(0,s.jsx)(lo,{})]}),o&&(0,s.jsx)(Lr,{description:o})]})},X9=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:l,partnerContentAuthors:d,showAuthor:c,showLessonCount:u,title:m,totalLessons:p,lessonId:f}=t,g=d!=null,v=Xh.useMemo(()=>n&&e&&c&&!g,[n,e,c,g]);return(0,s.jsxs)(s.Fragment,{children:[u?(0,s.jsx)(co,{lessonName:r,lessonNumber:a,lessonPreposition:l,totalLessons:p}):(0,s.jsx)(lo,{}),v?(0,s.jsx)(io,{authorName:e,avatar:n}):(0,s.jsx)(x0,{}),c&&g&&(0,s.jsx)(a0,{partnerContentAuthors:d}),(0,s.jsx)(uo,{id:f,title:m}),o&&(0,s.jsx)(Lr,{description:o})]})};function J9(t){const e=_d();return t.lessonHeaderSize===I.OX.SMALL&&!e?(0,s.jsx)(Y9,{...t}):e?(0,s.jsx)(X9,{...t}):(0,s.jsx)(_9,{...t})}var lc=i(59288);const{COMPACT:q9,COVER:e8,OVERLAY:t8,SIDEBAR:s8}=Ze.by,Ji=ae("progress-circle");function n8({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[l,d]=lc.useState(a===100),c=(0,_t.A)(a),{theme:{progressIndicatorStyle:u=I.Y2.THEME_DEFAULT}}=(0,Ie.DX)(),m=r===e8,p=r===t8,f=u===I.Y2.THEME_DEFAULT,g=u===I.Y2.CIRCULAR_FILL,v=u===I.Y2.INCOMPLETE_COMPLETE,C=Ji({compact:r===q9,cover:m,sidebar:r===s8,overlay:p}),y=Ji("track",{"circular-fill":!p&&g,"incomplete-complete":m&&v}),b=Ji("runner",{"circular-fill":g,done:l,failed:n,passed:o,unstarted:a===0}),x=Ji("pass",{done:l,visible:o}),L=Ji("fail",{done:l,visible:n}),E=lc.useMemo(()=>g||a===100?a:0,[g,a]);lc.useEffect(()=>{if(a!==100&&c===100)d(!1);else if(a===100&&!l&&!v){const N=setTimeout(()=>d(!0),300);return clearTimeout.bind(null,N)}else a===100&&!l&&v&&d(!0)},[l,v,c,a]);const S=lc.useCallback(()=>{a===100&&d(!0)},[a]);return(0,s.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,s.jsx)("circle",{className:y,cx:"7.5",cy:"7.5",fill:"transparent",r:"6.5",strokeWidth:"2",transform:"rotate(-89.9 7.5 7.5)"}),f?(0,s.jsx)(vh,{className:b,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:S,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,s.jsx)(l0,{className:b,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:S,r:6.5,strokeLinecap:"round",strokeWidth:2,value:E}),(0,s.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,s.jsx)("path",{className:L,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 cc=({"aria-hidden":t=void 0,"aria-label":e=void 0,progress:n=0,runnerClass:o,trackClass:r})=>(0,s.jsx)("div",{"aria-hidden":t,"aria-label":e,className:r,role:"img",children:(0,s.jsx)("div",{className:o,style:{width:`${n}%`}})}),o8=ae("nav-sidebar-header");function r8(t){const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=t;return(0,s.jsxs)("div",{className:o8("progress"),"data-test-id":"nav-sidebar-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(cc,{"aria-hidden":"true",progress:r,runnerClass:e,trackClass:o})]})}function a8({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",height:"17",ref:e,role:"img",viewBox:"0 0 17 17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}function i8(t){return(0,s.jsx)(as,{...t,viewBox:"0 0 16 8",children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}function l8(t){const e=(0,qn.QD)(t,["Default"]);return(0,s.jsx)(as,{...e,viewBox:"0 0 16 8",children:(0,s.jsx)("path",{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",fillRule:"evenodd"})})}function c8({className:t,ref:e}){return(0,s.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,s.jsx)("path",{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",fillRule:"evenodd"})})}function d8(t){return(0,s.jsx)(js,{height:"12",viewBox:"0 0 16 12",width:"16",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M9.6665 2H0.666504V0H9.6665V2ZM12.6665 6H0.666504V4H12.6665V6ZM0.666504 10H7.6665V8H0.666504V10Z",fill:"currentColor",fillRule:"evenodd"})})}function Jh(t){return(0,s.jsx)(js,{height:"8",viewBox:"0 0 12 8",width:"12",...t,children:(0,s.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 u8(t){return(0,s.jsx)(js,{height:"8",viewBox:"0 0 12 8",width:"12",...t,children:(0,s.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 h8(t){return(0,s.jsxs)(js,{height:"21",viewBox:"0 0 20 21",width:"20",...t,children:[(0,s.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,s.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,s.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 m8(t){return(0,s.jsx)(js,{height:"15",viewBox:"0 0 16 15",width:"16",...t,children:(0,s.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 p8(t){return(0,s.jsxs)(js,{height:"18",viewBox:"0 0 18 18",width:"18",...t,children:[(0,s.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,s.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 f8(t){return(0,s.jsxs)(js,{height:"14",viewBox:"0 0 20 14",width:"20",...t,children:[(0,s.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,s.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 g8(t){return(0,s.jsx)(js,{height:"14",viewBox:"0 0 14 14",width:"14",...t,children:(0,s.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"})})}var qh=i(59288);const em=U,v8={classic:U,default:U,imaginative:J,organic:ie},tm=Object.assign(qh.createContext(em),{displayName:"ThemeContext"});function C8(){return qh.useContext(tm)}function x8({themeId:t,...e}){return(0,s.jsx)(tm.Provider,{...e,value:v8[t]??em})}function y8(t){return(0,s.jsx)(s.Fragment,{children:t.children})}function b8(){return null}function sm(t,e,n){function o(r){const l=C8()?.[t]?.[e]??n;return(0,s.jsx)(l,{...r,Default:n})}return o.displayName=`ThemeComponent(${e})`,o}function Pt(t,e=y8){return sm("components",t,e)}function Ps(t){return sm("icons",t,b8)}const E8=ae("cover");function L8({className:t="",dueAt:e}){const n=Si(),o=fr(),r=o==null||o.quizPassed||o.outOfAttempts,a=D1(e),l=E8("due-date",{urgent:a}).mix(t);return!e||n&&r?null:(0,s.jsx)("div",{className:l,tag:"div",children:$d(e)})}const T8=Pt("CoverDueDate",L8);function j8(t){const{dueAt:e}=wt(t);return{dueAt:e}}const I8=(0,O.Ng)(j8)(T8),Nr=ae("cover"),S8=Pt("CoverProgress",({nextLesson:t,percentComplete:e})=>{const o=(0,Ie.Wz)()?`%${e}`:`${e}%`;return e===0||window.isPublicShare||!Pe.BI?null:(0,s.jsxs)("div",{className:Nr("progress"),children:[(0,s.jsxs)("div",{className:Nr("progress-text"),children:[o," Complete"]}),(0,s.jsx)("div",{className:Nr("progress-outer"),children:(0,s.jsx)("div",{className:Nr("progress-inner"),style:{width:`${e}%`}})}),t&&(0,s.jsxs)("div",{className:Nr("progress-next-lesson"),children:[(0,s.jsx)(Zh,{className:Nr("progress-next-lesson-icon").toString(),decorative:"true"}),(0,s.jsx)("span",{"aria-hidden":"true",className:Nr("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})}),N8=()=>{const t=ua();return(e,{currentLocale:n})=>{const o=t(n,e),r=Go(e);return{nextLesson:o,percentComplete:r}}},A8=Re()(It.wZ,(0,O.Ng)(N8))(S8),{useLabelsMap:P8}=i(28239),nm=({failed:t,complete:e})=>{const n=P8();return(0,s.jsxs)("span",{className:"visually-hidden-always",children:[t?n?.a11yCoverRequirementFailed||"Requirement failed":e?n?.a11yCoverRequirementComplete||"Requirement complete":n?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},to=ae("cover");function R8(){const t=(0,Ie.DX)(),e=(0,at.useLabelsMap)(),{trackingCompletionPercentage:n,trackingQuizId:o}=t;return n==null&&!o?null:(0,s.jsxs)("section",{className:to("requirements-section"),children:[(0,s.jsx)("h2",{className:to("requirements-title"),children:e?.coverCourseRequirements||"Course Requirements"}),(0,s.jsxs)("ul",{className:to("requirements-list"),children:[(0,s.jsx)(M8,{}),(0,s.jsx)(O8,{})]})]})}function M8(){const{trackingCompletionPercentage:t}=(0,Ie.DX)(),e=(0,Ie.v1)(),n=pr(),o=(0,at.useLabelsMap)(),r=Math.ceil(t/100*e),a=r===e;if(t==null||r==null)return null;const l=n>=t,d=l?F9:U9;return(0,s.jsxs)("li",{className:to("lesson-requirement"),role:"listitem",children:[(0,s.jsx)(d,{"aria-hidden":"true",className:to("lesson-requirement-icon",{complete:l}).toString()}),(0,s.jsxs)("span",{className:to("lesson-requirement-text"),children:[(0,s.jsx)(nm,{complete:l}),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 k8={passed:$9,failed:W9,requirement:K9};function O8(){const t=(0,at.useLabelsMap)(),e=ca(),n=fr(),o=ys(e?.title),r=e?.settings?.passingScore;if(!o||!n)return null;const{outOfAttempts:a,quizPassed:l}=n,d=!l&&a;let c="requirement";l?c="passed":d&&(c="failed");const u=k8[c];return(0,s.jsxs)("li",{className:to("quiz-requirement"),role:"listitem",children:[(0,s.jsx)(u,{"aria-hidden":"true",className:to("quiz-requirement-icon",{type:c}).toString()}),(0,s.jsxs)("span",{className:to("quiz-requirement-text"),children:[(0,s.jsx)(nm,{complete:l,failed:d}),o,r!=null&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",className:to("quiz-requirement-seperator"),children:"\xA0|\xA0"}),t?.coverQuizScoreOf||"Score of"," ",r,t?.coverQuizPercentOrHigher||"% or higher"]}),d&&(0,s.jsx)("div",{className:to("quiz-requirement-no-attempts"),children:t?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}function w8(t){const{to:e,children:n}=t,o=(0,Ne.zy)(),r=(0,h.useMemo)(()=>(0,sh.B)(e,o),[o,e]);return(0,s.jsx)(th.k2,{...t,to:r,children:n})}var y0=i(5683);const om="focus-lesson-content",G$="preview-nav-to-first-lesson",Q$="preview-nav-to-cover-page",ss="preview-nav-to-lesson-item",Z$="preview-scroll-to-nav-prev",Y$="preview-scroll-to-header",b0="preview-clear-state",dc="preview-show-nav-prev",uc="preview-show-nav-next",rm="preview-nav-open",am="preview-nav-close",im="event-lesson-transition-start",lm="event-lesson-transition-end",cm="event-lesson-nav-prev-visible",E0="event-lesson-nav-prev-hidden",dm="event-lesson-nav-next-visible",L0="event-lesson-nav-next-hidden",T0=new WeakMap,um=new ResizeObserver(t=>{for(const e of t)T0.get(e.target)?.(e)});function hc(t,e){(0,h.useEffect)(()=>{if(t)return T0.set(t,e),()=>T0.delete(t)},[t,e]),(0,h.useEffect)(()=>{if(t)return um.observe(t),()=>um.unobserve(t)},[t])}function D8(){const t=(0,O.wA)(),[e,n]=(0,h.useState)(null),o=(0,at.useLabelsMap)(),r=(0,h.useCallback)(a=>{t((0,y0.s)({offsetHeight:a.target.offsetHeight}))},[t]);return(0,h.useLayoutEffect)(()=>{if(e)return t((0,y0.s)({offsetHeight:e.offsetHeight})),()=>t((0,y0.s)(null))},[t,e]),hc(e,r),(0,s.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:hm,ref:n,type:"button",children:(0,s.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,s.jsx)("span",{"aria-hidden":"true",children:(0,s.jsx)(f6,{className:"btn-skip-to-lesson__icon"})})]})})}function B8(t){(0,is.A)(om,t,document)}function hm(){document.dispatchEvent(new CustomEvent(om))}const mm=(0,h.createContext)(!1);function mc({children:t,inert:e}){const n=j0();return(0,s.jsx)(mm.Provider,{value:n||e,children:t})}function j0(){return(0,h.useContext)(mm)}function H8(t){return t?.sessionPreferences}function pm(){return(0,O.d4)(t=>H8(t))}const z8=(0,h.forwardRef)((t,e)=>{const{children:n,className:o="lesson-link-item-tooltip",dark:r,visible:a}=t,l=(0,h.useMemo)(()=>ae(o),[o]),d=(0,s.jsx)("div",{"aria-hidden":"true",ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,s.jsx)("div",{style:{pointerEvents:"all"},children:(0,s.jsx)("div",{className:l({visible:a}),children:(0,s.jsx)("div",{className:l("inner",{dark:r,light:!r}),children:n})})})});return(0,Jn.createPortal)(d,document.getElementById("portal"))});function fm(t){const{children:e,className:n,dark:o,restriction:r,tooltipClassName:a,style:l}=t,{prefersKeyboardNavigation:d}=pm(),c=(0,h.useRef)(),u=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,at.useLabelsMap)(),f=j0(),[g,v]=(0,h.useState)(!1),C=(0,h.useCallback)(()=>v(!0),[]),y=(0,h.useCallback)(()=>v(!1),[]),b=(0,h.useCallback)(()=>{setTimeout(C,0)},[C]),x=(0,h.useCallback)(()=>{d&&y()},[y,d]),L=(0,h.useCallback)(k=>{rn(k)&&g&&(k.stopPropagation(),y())},[y,g]),E=(0,h.useCallback)(()=>{document.activeElement===c.current&&(clearTimeout(m.current),C())},[C]),S=(0,h.useCallback)(()=>{m.current=setTimeout(y,150)},[y]),N=(0,h.useCallback)(()=>{if(g){const k=c.current.getBoundingClientRect(),R=u.current.offsetParent.getBoundingClientRect(),{height:W,width:D}=k,w=k.left-R.left,Z=k.top-R.top;Object.assign(u.current.style,{transform:`translate(${w}px, ${Z}px)`,width:`${D}px`,height:`${W}px`})}},[g]);(0,h.useEffect)(()=>{f&&v(!1)},[f]),(0,h.useLayoutEffect)(()=>N(),[N]),(0,is.A)("resize",N,window),(0,is.A)("keydown",L,document),Rh(c,y);let A;return r?.type===os.XQ.QUIZ?A=`${p.quizRequirePassingScore}: "${r.data}"`:r?.type===os.XQ.ORDER?A=p.lessonRestricted:r?.type===os.XQ.KNOWLEDGE_CHECK&&(A=p.knowledgeCheckCorrectAnswerRequiredNav),(0,s.jsxs)("div",{"aria-disabled":!0,className:n,onBlur:x,onFocus:b,onMouseEnter:E,onMouseLeave:S,ref:c,role:"link",style:l,tabIndex:f?-1:0,children:[e,(0,s.jsx)("div",{className:"visually-hidden-always",children:p?.a11yRestrictedNav}),(0,s.jsx)("div",{className:"visually-hidden-always",children:A}),(0,s.jsx)(z8,{className:a,dark:o,ref:u,visible:g,children:A})]})}function F8(t){const{b:e,children:n,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:l,onClick:d=Function.prototype,onFocus:c,onHideProgressTooltip:u,onNavigate:m=Function.prototype,onShowProgressTooltip:p,restriction:f,showProgressDelay:g,style:v}=t,C=j0(),{theme:{progressIndicatorStyle:y=I.Y2.THEME_DEFAULT}}=(0,Ie.DX)(),b=y===I.Y2.THEME_DEFAULT,x=(0,h.useCallback)(D=>{d(D),r?(D.preventDefault(),hm()):m(l)},[l,r,d,m]),[L,E]=(0,h.useState)(!1),S=(0,h.useCallback)(D=>{!L&&a&&(g!=null?setTimeout(p,g):p()),c?.(D)},[L,c,g,p,a]),N=(0,h.useCallback)(D=>{a&&rn(D)&&u()},[u,a]),A=(0,h.useCallback)(()=>{a&&E(!0)},[a]),k=(0,h.useCallback)(()=>{a&&E(!1)},[a]),R=f?.type!=null,W=e("link",{active:r,restricted:R,"theme-default":b}).toString();return R?(0,s.jsx)(fm,{...t,className:W,style:v}):(0,s.jsx)(w8,{"aria-current":"page",className:W.toString(),"data-direction":o,"data-link":"lesson-link-item",onBlur:a?u:void 0,onClick:x,onFocus:S,onKeyDown:N,onMouseDown:A,onMouseUp:k,style:v,tabIndex:C?-1:void 0,to:(0,os.p1)(l),children:n})}function qi(t){const{className:e="lesson-link-item",isCurrentLesson:n,last:o,lessonId:r,style:a}=t,l=(0,h.useMemo)(()=>ae(e),[e]),d=Cr(r),c=d?.type!=null,{isComplete:u=!1}=Ao(r)??{},m=l({active:n,complete:u,last:o,restricted:c});return(0,s.jsx)("div",{className:m,children:(0,s.jsx)(F8,{...t,b:l,isCurrentLesson:n,restriction:d,style:a})})}const U8=ae("lesson-nav"),V8=t=>{const{children:e,finish:n,lessonId:o,onFocus:r}=t;if(o)return(0,s.jsx)(qi,{className:"lesson-nav-link",onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",...t});const a=n?"/lessons/progress-summary":"/";return(0,s.jsx)("span",{className:"lesson-nav-link",children:(0,s.jsx)(Mn,{className:"lesson-nav-link__link","data-direction":t["data-direction"],onFocus:r,to:a,children:e})})},W8=({buttonScheme:t,accentContrast:e,children:n,className:o,direction:r,finish:a,navLessonId:l,onFocus:d,restrictionType:c},u)=>{const m=c!=null,p=Tr(),g={className:U8(null,{[r]:!0,accent:t===I.LE.ACCENT,dark:t===I.LE.DARK,floating:p===I.AY.FLOATING,"floating-full":p===I.AY.FLOATING_FULL,finish:a,full:p===I.AY.FULL,light:t===I.LE.LIGHT,restricted:m,tint:t===I.LE.TINT}).mix(o),[`data-${r}-lesson`]:!0};return(0,s.jsx)("div",{ref:u,...g,children:(0,s.jsx)(V8,{accentContrast:e,"data-direction":r,finish:a,lessonId:l,onFocus:d,children:n})})};function $8(t,e){const{currentLocale:n}=e,o=wt(t),r=(0,at.selectLabelsMap)(n,t);return{buttonScheme:o.buttonScheme,accentContrast:o.theme?.accentContrast,labelLessonRestricted:r.lessonRestricted,labelQuizRequirePassingScore:r.quizRequirePassingScore}}const K8=Re()(It.wZ,(0,O.Ng)($8,null,null,{forwardRef:!0}),h.forwardRef)(W8),G8={CoverCompletedInformation:tf,CoverDueDate:I8,CoverProgress:A8,CoverRequirements:R8,ImageEagerOrLazy:ah,LessonNav:K8};function Q8({children:t}){return(0,s.jsx)(pg,{...G8,children:t})}var Z8=i(71129),Y8=i(63006);const gm={"rise-course-navigation":!0},_8={"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,"ai-assistant-thumbs-feedback-ui":!1,"ai-assistant-subscription-override":!1,"rise-com-360-upsell":!0},I0=(0,h.createContext)(gm);I0.displayName="FeatureFlagsContext";const{Provider:X8}=I0;function J8({children:t,value:e}){const n=(0,h.useMemo)(()=>({..._8,...e,...gm}),[e]);return(0,s.jsx)(X8,{value:n,children:t})}function pc(){return(0,h.useContext)(I0)}function Ar(t){return pc()[t]}function X$(t){function e(n){const o=pc();return jsx(t,{...n,flags:o})}return e.displayName=`withFeatureFlags(${t.displayName||t.name})`,e}function fc(t,e){return function(n){const o=r=>{const a=Ar(t),l={...r,[e]:a};return(0,s.jsx)(n,{...l})};return o.displayName=`withFeatureFlag(${n.displayName||n.name})`,o}}const vm=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});vm.displayName="On";const Cm=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});Cm.displayName="Off";const Ra=({children:t,featureFlags:e})=>{const n=pc(),o=(0,h.useMemo)(()=>{const l=[].concat(e??[]);return l.length&&l.every(d=>n[d])},[e,n]),{on:r=null,off:a=null}=(0,h.useMemo)(()=>{const l={};return K().Children.forEach(t,d=>{switch(d.type.displayName){case Ra.On.displayName:l.on=d;break;case Ra.Off.displayName:l.off=d;break;default:l.on=t}}),l},[t]);return o?r:a};Ra.On=vm,Ra.Off=Cm;const q8={};function e7({children:t}){const e=(0,O.wA)(),n=pc();return(0,Z8.A)(()=>{e((0,Y8.G)(n))},[n]),t}function t7({children:t}){const n=Xt()?.features??q8;return(0,s.jsx)(J8,{value:n,children:(0,s.jsx)(e7,{children:t})})}var s7=i(33169),S0=i(41481);const n7=t=>Pe.BI?t??"":t?`${t} | ${Pe.mZ}`:Pe.mZ,el=t=>(0,Pe.Hm)()?t:n7(t);var o7=i(59288);function Pr({children:t,title:e}){const n=el((0,Ie.d_)()),o=e??n;return o7.useEffect(()=>{document.title=o},[o]),(0,s.jsx)(s.Fragment,{children:t})}var r7=i(42432),a7=i.n(r7),i7=i(98395),l7=i(88747);const N0=Object.assign((0,h.createContext)(void 0),{displayName:"BlockContext"});function A0({block:t,children:e}){const[n,o]=(0,h.useState)(t);return(0,h.useEffect)(()=>o(r=>t||r),[t]),(0,s.jsx)(N0.Provider,{value:n,children:(0,s.jsx)(Em,{...n?.settings,children:e})})}const q$=N0.Consumer;function an(){return(0,h.useContext)(N0)}function gc(t){return function(n){const o=an();return(0,s.jsx)(t,{...n,block:o})}}var c7=i(92348),d7=i.n(c7),u7=i(78483),P0=i.n(u7),h7=i(98511),vc=i.n(h7),m7=i(77412);const xm=2,so=d7()({WHITE:null,TRANSPARENT:null}),p7={backgroundColor:"",backgroundType:I.xj.LIGHT,cardMode:so.WHITE,customBackgroundColorContrast:I.Em.AUTO,entranceAnimation:!0,markerColorContrast:I.Em.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:I.Em.AUTO},f7={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 g7(t,e){return f7[t]?.includes?.(e)??!1}const v7={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function C7(t,e){const n=v7[t]?.[e];return n==null?{}:{backgroundColor:n,backgroundType:I.xj.COLOR}}const x7={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 eK(t,e){return x7[t]?.includes(e)??!1?.1:.5}function y7(t){switch(t.backgroundType){case I.xj.COLOR:return t.backgroundColor;case I.xj.ACCENT:return t.courseColor;case I.xj.TINT:return(0,ct.WA)(t.courseColor);case I.xj.LIGHT:return"#ffffff";case I.xj.GRAY:return"#fafafa";case I.xj.DARK:return"#303030";case I.xj.BLACK:return"#000000"}}const b7={multimedia:{embed(t){return{cardMode:t.showBorder===!1?so.TRANSPARENT:so.WHITE}}}};function E7(t,e,n){return L7(t,e,n)}function L7(t,e,n){const o=C7(t,e);(n.v==null||n.v<xm)&&(n=T7(n),n.backgroundColor?.toLowerCase()==="#ffffff"&&Object.keys(o).length===0&&(n=P0()("backgroundColor",n)));const r=b7[t]?.[e]?.(n),a=n.backgroundColor&&n.backgroundType==null?{backgroundType:I.xj.COLOR}:{};return[{accentColor:null},p7,o,r,n,a,{v:xm}].reduce((c,u)=>u==null?c:{...c,...vc()(m7.A,u)})}function T7(t){return{...t,backgroundType:null,cardMode:null,v:1}}const j7={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"]};function tK(t,e){return!j7[t]?.includes(e)}const I7={};function sK(t,e){return!I7[t]?.includes(e)}function S7(t){return t===IMAGE_OVERLAY_COLOR_TYPES.LIGHT?CONTRAST_COLORS.LIGHT:CONTRAST_COLORS.DARK}function N7(t,e){if(e===TEXT_COLOR.AUTO){const n=getColorRange(t),o=blockCardColorTransformers[n](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 nK(t,e,n,o,r){const a=t?.backgroundType;return t?.cardMode===so.TRANSPARENT?a===BACKGROUND_TYPES.IMAGE?S7(e?.overlayColor):o&&a!==BACKGROUND_TYPES.ACCENT?r:N7(n,t?.customBackgroundColorContrast):o?r:CONTRAST_COLORS.DARK}const A7={interactive:["accordion","tabs"],"interactive-fullscreen":["labeledgraphic","process","timeline"],list:["numbered","bulleted","checkboxes"],impact:["a","b","c","d","note"],quote:["a","b","c","d","background","carousel"],text:["paragraph","heading paragraph","subheading paragraph","two column","three column","four column"]};function oK(t,e){return A7[t]?.includes(e)??!1}var ym=i(59288);const bm=Object.assign((0,h.createContext)({}),{displayName:"BlockSettingsContext"});function Bs(){return(0,h.useContext)(bm)}const P7="settings";function Cc(t){return e=>{const n=ym.forwardRef((o,r)=>{const a=Bs(),l={...o,[t??P7]:a};return(0,s.jsx)(e,{...l,ref:r})});return n.displayName=`withBlockSettings(${e.displayName||e.name})`,n}}function Dn(){const t=Bs();return t==null?null:y7(t)}const R7="backgroundColor";function M7(t){return e=>{const n=ym.forwardRef((o,r)=>{const a=Dn(),l={...o,[t??R7]:a};return(0,s.jsx)(e,{ref:r,...l})});return n.displayName=`withBackgroundColor(${e.displayName||e.name})`,n}}function Em({children:t,...e}){const n=an(),o=Bs(),r=(0,Ie.kJ)(),a=(0,h.useMemo)(()=>{const l=n==null?e:E7(n.family,n.variant,e);return{courseColor:r,...o,...l}},[n,e,r,o]);return(0,s.jsx)(bm.Provider,{value:a,children:t})}var Lm=i(58931),k7=i(42006),O7=i(4663),Tm=i(94379);const rK=t=>{const e=t.value.length;t.focus(),t.setSelectionRange(e,e)},aK=t=>{const e=path(["current","editor"],t);if(!e)return null;const n=e.value.length;return e.focus(),e.setSelectionRange(n,n),t};function jm(t){return Array.prototype.slice.call(t)}function R0(t,e){const n=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(e==="start")return n.top>=0;if(e==="center"){if(n.height>o)return n.top<=0&&n.bottom>=o;const a=o/2,l=n.top+n.height/2,d=o*.25;return Math.abs(a-l)<d}return e==="end"?n.bottom<=o:n.top>=0&&n.left>=0&&n.bottom<=o&&n.right<=r}function Im({anchor:t,popover:e,positionX:n}){if(!t||!e)return null;const o=t.getBoundingClientRect(),a=window.getComputedStyle(t).direction==="rtl",l=window.getComputedStyle(e),d=parseFloat(l.marginTop),c=e.offsetWidth,u=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},m=o.top+o.height+e.offsetHeight+d>u.height?o.top-(d*2+e.offsetHeight):o.top+o.height;let p;if(n==="center"){const f=o.left+o.width/2;p=a?u.width-f-c/2:f-c/2}else n==="right"?p=a?u.width-o.left-c:o.right-c:p=Math.min(a?u.width-o.right:o.left,u.width-c);return{left:p,top:m}}const Ma="group",w7="tablist",D7="tabpanel",B7="tab",iK="radio",H7=({element:t,isHidden:e})=>{t&&t.setAttribute("aria-hidden",e?"true":"false")},tl=({caption:t,editable:e,id:n,isOverlayType:o,getL10nValue:r})=>{const a=!!(!o&&!e&&r(t));return{figcaptionId:a?`figcaption-${n}`:void 0,isFigure:a,role:a?"figure":void 0,tagName:a?"figure":"div"}};var M0=i(88523);const Sm=":focus{outline: none}",z7=":focus:not(:focus-visible){outline: none}",Nm="focus-ring-style",k0=()=>document.getElementById(Nm)||F7(),F7=()=>{const t=document.createElement("style");return t.id=Nm,document.head.appendChild(t),t},sl=0,xc=-1,U7=()=>{const t=k0();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=Sm},0),(0,O.JD)((0,M0.xi)(!1))}),window.addEventListener("keydown",Am)},Am=t=>{const e=t.target,n=k0();(ql(t)||Xo(t)&&!e.classList.contains("ignore-prefers"))&&(n.innerHTML="",(0,O.JD)((0,M0.xi)(!0)))},Pm=({focusVisible:t}={})=>k0().innerHTML=t?z7:Sm,ka=t=>t?sl:xc,Rm=(t,e)=>{const n=t||{},o=e!==sl;n.tabIndex=e,H7({element:t,isHidden:o})},O0=({element:t,selector:e,tabIndex:n})=>{jm(t.querySelectorAll(e)).forEach(r=>{Rm(r,n)})},Mm=({list:t,index:e})=>{e>=0&&e<Tt()(t)&&t[e].focus()},V7=({list:t,currentIndex:e})=>{const n=Ms()(e||0),o=n<Tt()(t)?n:0;return Mm({list:t,index:o}),o},W7=({list:t,currentIndex:e})=>{const n=Rn()(e||Tt()(t));return Mm({list:t,index:n}),n};function $7(){const t=Ar("big-head-mode");return z()({bigHeadMode:t})}function K7(t){function e(n,o){const r=$7();return(0,s.jsx)(t,{...n,easterEggClassNames:r,ref:o})}return Object.assign((0,h.forwardRef)(e),{displayName:`withEasterEggClassNames(${t.displayName||t.name})`})}var Oa=i(9988),G7=i(45949),wa=i.n(G7),Q7=i(35884),w0=i.n(Q7),Z7=i(30349),Y7=i.n(Z7);const _7=Yl()(w0()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),At()("#FFF")),X7=wa()({color:_7}),J7=({accentContrast:t,bodyTypeface:e,color:n,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const l=(0,h.useMemo)(()=>{const u=!(0,ct.Wn)(n),m=(0,ct.xD)(n),p=t===I.Em.DARK||t===I.Em.AUTO&&m===I.Em.DARK;return!r&&(t&&p||!t&&u)?[Ze.S6.DARK,Ze.S6.LIGHT]:[Ze.S6.LIGHT,Ze.S6.DARK]},[t,n,r]),[d,c]=l;return(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:Y7()({bodyTypeface:e,colorThemeRGB:(0,Oa.A)(n)?.slice(0,3),colorTheme:n,colorThemeContrast:d,colorThemeContrastComplementary:c,colorThemeContrastComplementaryRGB:(0,Oa.A)(c)?.slice(0,3),colorThemeContrastRGB:(0,Oa.A)(d)?.slice(0,3),colorThemeTint:(0,ct.WA)(n),colorThemeTransparent:n+"1A",headingTypeface:o,uiTypeface:a})}})},D0=Re()(J7,X7);D0.displayName="Branding",D0.propTypes={bodyTypeface:Ee().string,color:Ee().string.isRequired,headingTypeface:Ee().string,uiTypeface:Ee().string};const q7=(0,h.memo)(D0);var eC=i(59288);const km="riseUnsupportedBrowser",tC={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},sC=t=>new RegExp(tC[t],"i").test(window.navigator.userAgent);class Om extends eC.Component{render(){return sC(this.props.env)&&!window.sessionStorage.getItem(km)?this.renderUnsupported():this.props.children}renderUnsupported(){return(0,s.jsxs)("div",{children:[this.props.children,(0,s.jsx)("div",{className:"browser-support",children:(0,s.jsxs)("div",{className:"browser-support__inner",children:[(0,s.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,s.jsx)("p",{className:"browser-support__text browser-support__text--mobile",children:"Unsupported browser"}),(0,s.jsxs)("a",{className:"browser-support__link",href:"https://articulate.com/support/article/System-Requirements-for-Rise",rel:"noopener noreferrer",target:"_blank",children:[(0,s.jsx)("span",{children:"Learn more"}),(0,s.jsx)("i",{className:"icon icon-chevron-right"})]}),(0,s.jsx)("div",{className:"browser-support__dismiss",onClick:this.handleDismiss.bind(this),children:(0,s.jsx)("span",{className:"browser-support__dismiss-icon",children:"\xD7"})})]})})]})}handleDismiss(){window.sessionStorage.setItem(km,"true"),this.forceUpdate()}}Om.propTypes={env:Ee().string.isRequired};var ls=i(33733),nC=i(56401),Js=i.n(nC);const oC=t=>z()("button",{[t.className]:!Js()(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}),rC=({icon:t})=>t?(0,s.jsx)("i",{className:`button__icon icon-${t}`}):null,aC=({onlyIcon:t,children:e})=>K().Children.map(e,n=>t&&n.type===void 0?null:n),yc=({accent:t,ariaControls:e,ariaExpanded:n,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:l,className:d,children:c,condensed:u,controls:m,controlsEnhanced:p,disabled:f,el:g,extraPadding:v,header:C,headerDone:y,icon:b,inverted:x,mode:L,next:E,onClick:S=Function.prototype,onlyIcon:N,onMouseDown:A=Function.prototype,outline:k,outlineTransparent:R,sidebar:W,tabIndex:D,type:w,...Z})=>{const B=g||"button";return B==="button"&&!w&&(w="button"),(0,s.jsxs)(B,{"aria-controls":e,"aria-expanded":n,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:oC({accent:t,branded:l,className:d,condensed:u,controls:m,controlsEnhanced:p,disabled:f,extraPadding:v,header:C,headerDone:y,inverted:x,mode:L,next:E,outline:k,outlineTransparent:R,sidebar:W}),disabled:f,onClick:S,onMouseDown:A,tabIndex:D,type:w,...Z,children:[(0,s.jsx)(rC,{icon:b}),aC({onlyIcon:N,children:c})]})};var iC=i(33744),lC=i.n(iC);const cC=["[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(", "),wm=(t,e=!1)=>n=>{const o=Dm(n);if(o.length===0)return;const r=t>=o.length&&e?0:t;return lC()(r,o)},Dm=t=>t?Array.from(t.querySelectorAll(cC)).filter(e=>window.getComputedStyle(e).display!=="none"):[],Bm=wm(0),dC=wm(-1),B0=t=>Bm(t)?.focus?.();function uC(){const t=(0,h.useRef)(null);function e(n){const o=Bm(t.current),r=dC(t.current);ql(n)&&(n.shiftKey?document.activeElement===o&&(r.focus(),n.preventDefault()):document.activeElement===r&&(o.focus(),n.preventDefault()))}return(0,h.useEffect)(()=>{const n=t?.current;return n?.addEventListener("keydown",e),()=>{n?.removeEventListener("keydown",e)}},[]),t}var hC=i(92997),mC=i(75704),pC=i(30127),fC=i(58e3),gC=i(10814),vC=i(53820),CC=i(11223),xC=i(83359),yC=i(57506),bC=i(42650),EC=i(80828),LC=i(75786),TC=i(11020),jC=i(75089),IC=i(57301),SC=i(40698),NC=i(39560),AC=i(57279),PC=i(41005),RC=i(68634),MC=i(7484),kC=i(70256),OC=i(90001),wC=i(86063),DC=i(4062),BC=i(52192),HC=i(63337),zC=i(81442),FC=i(47626),UC=i(79201),VC=i(9027),WC=i(62245),$C=i(49916),KC=i(27396),GC=i(65375),Hm=i(19028),QC=i(82882),ZC=i(48329),YC=i(30562),_C=i(16144),XC=i(62081),JC=i(67894),qC=i(56087),ex=i(40720),tx=i(88311),sx=i(23734),nx=i(69796),ox=i(33638),rx=i(44782),ax=i(84491),ix=i(44431),lx=i(51052),dx=i(12303),ux=i(27488),hx=i(33424),mx=i(71904),px=i(60808),fx=i(52114),gx=i(95553),vx=i(27716),Cx=i(25637),xx=i(77948),yx=i(88296),bx=i(34958),Ex=i(39097),Lx=i(78039),Tx=i(35685),jx=i(30802),Ix=i(80324),Sx=i(88896),Nx=i(48013),Ax=i(28519),Px=i(53717),Rx=i(81941),Mx=i(9542),kx=i(97518),Ox=i(10083),wx=i(85437),Dx=i(72748),Bx=i(60231),Hx=i(64724),zx=i(69772),Fx=i(69642),Ux=i(41117),Vx=i(95479),Wx=i(32545),$x=i(86296),Kx=i(43864),Gx=i(36633),Qx=i(47695),Zx=i(19282),Yx=i(76678),_x=i(56787),Xx=i(52222),Jx=i(95133),qx=i(97687),ey=i(217),ty=i(51638),sy=i(85193),ny=i(74632),oy=i(96515),ry=i(51150),ay=i(19224),iy=i(60459),ly=i(81770),cy=i(70150),dy=i(24204),uy=i(21743),hy=i(69543),my=i(83114),py=i(39631),fy=i(40119),gy=i(18643),vy=i(58442),Cy=i(1640),xy=i(68934),yy=i(20924),by=i(64979),Ey=i(55082),Ly=i(16332),Ty=i(904),jy=i(78960),Iy=i(19210),Sy=i(98753),Ny=i(28003),Ay=i(84332),Py=i(20541),Ry=i(91049),My=i(17117),ky=i(72078),Oy=i(5849),wy=i(14373),Dy=i(57100),By=i(7751),Hy=i(98431),zm=i(4254),zy=i(71136),Fy=i(42913),Uy=i(31595),Vy=i(58531),Wy=i(45863),$y=i(20609),Ky=i(95468),Gy=i(69462),Qy=i(24154),Zy=i(61315),Yy=i(67966),_y=i(96319),Xy=i(65226),Jy=i(86986),qy=i(2505),eb=i(53719),tb=i(39915),sb=i(9679),nb=i(6041),ob=i(51890),rb=i(87238),ab=i(43415),ib=i(59944),lb=i(84020),cb=i(39278),db=i(39541),ub=i(4960),hb=i(54057),mb=i(23383);const pb={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"]},fb={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"]]},gb={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"]},vb={"alert-circle-solid":Hm.GE,"alert-circle":Vx.lE,"alert-diamond":sy.xG,"arrow-down-from-line":Cx.xZ,"arrow-down-to-bracket":xx.a_,"arrow-down-to-line":yx.yH,"arrow-down":vx.B0,"arrow-left":bx.Ce,"arrow-right-from-line":Lx.Pe,"arrow-right":Ex.dm,"arrow-rotate-left-light":IC.V3,"arrow-rotate-left":Tx.V3,"arrow-up-from-bracket":Ix.MN,"arrow-up-from-line":Sx.s8,"arrow-up-right-from-square":Nx.faArrowUpRightFromSquare,"arrow-up":jx.IN,"arrows-two-from-center":mC.A1,"arrows-two-to-center":pC.hL,"badge-check":HC.Zs,"bar-chart":Ax.X8,bars:zC.ck,"block-selector":mx.iH,"book-open":Rx.Re,"book-sparkles":Mx.E4,book:Px.LB,"browser-light":gC.c9,browser:kx.c9,building:fC.UR,"cards-blank":Ox.Xm,"caret-down":UC.xB,"caret-right":VC.fU,"chart-column":BC.q9,"check-regular":fx.e6,check:FC.e6,"chevron-down-solid":WC.Jt,"chevron-down":wx.Jt,"chevron-left-light":vC.Wz,"chevron-left-solid":KC.Wz,"chevron-left":Dx.Wz,"chevron-right-light":CC.Xk,"chevron-right-solid":GC.Xk,"chevron-right":Bx.Xk,"chevron-up-solid":$C.w2,"chevron-up":Hx.w2,"circle-arrow-right":ZC.Ni,"circle-arrow-up":QC.yi,"circle-check-regular":Fx.QR,"circle-check-solid":YC.QR,"circle-check":SC.QR,"circle-dot":Ux.pp,"circle-half-stroke":Wx.B2,"circle-info":$x.faCircleInfo,"circle-plus-duotone":NC.q_,"circle-plus-regular":Kx.q_,"circle-plus":_C.q_,"circle-small-solid":XC.ZP,"circle-small":Gx.ZP,"circle-solid":Hm.GE,"circle-x":JC.Ub,"circle-xmark":Qx.bn,"circle-xmark-solid":qC.bn,"circle-xmark-duotone":AC.bn,circle:zx.GE,"clock-rotate-left":Zx.Yj,clone:_x.$3,close:Xx.yY,"closed-captioning":Yx.UM,"code-fork-duotone":PC.zt,"code-fork-regular":Jx.zt,code:hb.jT,comment:qx.DN,copy:ey.jP,crop:ty.K1,"edit-regular":ny.MT,"ellipsis-regular":oy.Dw,"ellipsis-vertical-regular":ry.nx,envelope:ay.y_,"external-link":iy.vM,"eye-slash":yC.k6,eye:xC.pS,"file-audio":cy.qe,"file-duotone":RC.A4,"file-export-light":EC.o1,"file-export":dy.o1,"file-import":uy.$M,"file-lines":hy.bL,"file-pdf-light":bC.O_,"file-pdf":my.O_,file:ly.A4,"folder-image":py.JK,"folder-open":MC.Uj,gear:fy.BH,globe:gy.Bw,"graduation-cap":vy.eS,"grid-2":Cy.Qy,"grid-solid":ex.Qy,"grip-dots-vertical":xy.IM,"hand-pointer":yy.A8,"image-landscape":Ey.oC,"image-portrait":Ly.E4,image:by.jb,"info-circle":Ty.iW,"layers-solid":ux.qI,"link-simple-slash":Sy.r2,"link-simple":Iy.wi,"link-slash":Ny.TH,link:jy.CQ,list:Ay.IT,"location-dot":TC.gK,"lock-keyhole-light":LC.Yp,lock:tx.DW,"magnifying-glass-plus":Ry.bM,"magnifying-glass":Py.$U,megaphone:hx.OR,"message-quote":My.ps,"minus-solid":sx.EZ,minus:ky.EZ,paintbrush:kC.ue,palette:Oy.fy,paste:wy.R9,pause:Dy.G1,"pause-solid":nx.G1,"pen-line":By.pg,"pen-to-square":Hy.faPenToSquare,"pencil-duotone":OC.zL,"pencil-regular":gx.zL,"pencil-thin":mb.zL,pencil:jC.zL,"play-regular":zm.ij,"play-solid":ox.ij,play:zm.ij,"plus-regular":zy.QL,plus:Fy.TS,"quote-left":Uy.$7,"rectangle-history-circle-plus":Wy.Hu,"rectangle-regular":Vy.vt,"rectangle-vertical-history":$y.Lt,rocket:Ky.KM,"ruler-horizontal":Gy.Si,"ruler-triangle":Qy.cb,"sliders-simple":rx.AD,"sparkles-solid":ax.p7,sparkles:Zy.p7,"spinner-third":Yy.sq,"square-arrow-down":Xy.Y1,"square-arrow-right":Jy.mT,"square-arrow-up-right":qy.fL,"square-check-solid":ix.Dn,"square-check":eb.Dn,"square-duo":wC.Nf,"square-info":tb.Lg,"square-plus":sb.Vd,square:_y.Nf,"stopwatch-regular":nb.nw,table:ob.w9,tag:rb._2,text:ab.jw,"trash-can":lb.sj,trash:ib.yL,"user-group":lx.US,"users-regular":cb.gd,users:DC.gd,video:db.n2,"wand-magic-sparkles":ub.Ys,"waveform-lines":px.Wx,xmark:dx.Jy},Cb={"audio-plus":gb,reach:fb,"rise-com":pb};function yt({"aria-label":t,className:e,classNameIcon:n,color:o,name:r,rotation:a,spin:l,style:d,styleIcon:c}){return(0,s.jsx)("span",{className:e,style:{color:o,...d},children:(0,s.jsx)(hC.g,{"aria-label":t,className:n,icon:vb[r],rotation:a,spin:l,style:c})})}function cK({className:t,classNameIcon:e,color:n,name:o,style:r,styleIcon:a}){return jsx("span",{className:t,style:{color:n,...r},children:jsx(FontAwesomeIcon,{className:e,icon:Cb[o],style:a})})}const ln=ae("modal"),H0=K().forwardRef((t,e)=>{const{children:n,className:o,darkOverlay:r,disableBackgroundScroll:a,disableCloseOnOverlayClick:l,focusFirstInput:d=!0,footer:c,forceToTop:u=!1,heading:m,hideCloseButton:p=!1,hideHeader:f=!1,useTopLayer:g=!0,onCancel:v,onClose:C=Ds.lQ,onClickBack:y,onOverlayClick:b=C,scroll:x=!1,subHeading:L,subText:E,width:S}=t,N=uC(),A=(0,h.useRef)(void 0);(0,h.useEffect)(()=>{const D=w=>{rn(w)&&(w.preventDefault(),w.stopPropagation(),v?.(w),C?.())};return document.addEventListener("keydown",D,!0),()=>{document.removeEventListener("keydown",D,!0)}},[v,C]),(0,h.useEffect)(()=>{const D=N.current;return g?D?.showModal():D?.show(),()=>{D?.close()}},[N,g]),(0,h.useEffect)(()=>{if(d&&N.current){const D=Dm(N.current).find(Z=>Z.tagName==="INPUT"||Z.tagName==="TEXTAREA"),w=D||A?.current;w?.focus(),w instanceof HTMLTextAreaElement&&w.setSelectionRange(w.value.length,w.value.length)}},[d,N]),(0,h.useEffect)(()=>(a&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{a&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[a,N]);const k=ln({"force-to-top":u}).mix(o),R=ln("content",{"with-footer":!!c,"force-scroll":!!x}),W=ln("overlay",{dark:!!r});return(0,s.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:k.toString(),onClose:C,ref:D=>{N.current=D,e&&(e.current=D)},role:"dialog",children:[(0,s.jsx)("div",{id:"modal-portal"}),(0,s.jsx)("div",{className:W,onClick:l?void 0:b}),(0,s.jsxs)("div",{className:ln("dialog"),style:S?{width:S}:{},children:[(!f||!p)&&(0,s.jsxs)("div",{className:ln("heading-wrapper"),children:[(0,s.jsxs)("div",{className:ln("heading-flexbox"),children:[!f&&(0,s.jsxs)("div",{className:ln("header"),children:[y&&(0,s.jsx)("button",{"aria-label":"back to previous page",className:ln("back-button"),onClick:y,type:"button",children:(0,s.jsx)(yt,{name:"arrow-left",styleIcon:{paddingRight:"1rem",height:"2rem"}})}),(0,s.jsxs)("h1",{className:ln("heading"),id:"modal-heading",children:[m,(0,s.jsx)("span",{className:ln("subheading"),children:L})]})]}),!p&&(0,s.jsx)("button",{"aria-label":"close dialog",className:ln("close"),onClick:C,ref:A,type:"button",children:(0,s.jsx)(yt,{className:"icon",name:"close"})})]}),E?(0,s.jsx)("h2",{className:ln("subtitle"),children:E}):[]]}),(0,s.jsx)("div",{className:R,children:n}),c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ln("footer-shadow")}),(0,s.jsx)("div",{className:ln("footer"),children:c})]})]})]})});var xb=i(13662);function yb(t){return t.global}function bb(t){return yb(t)?.externalLinksModalVisible}const Eb=()=>{const t=(0,O.d4)(bb),e=(0,O.wA)(),n=(0,h.useCallback)(()=>e((0,xb.zE)(!1)),[e]);return(0,s.jsx)(ls.F,{children:t&&(0,s.jsx)(ls.B1,{classNames:"modal",timeout:400,children:(0,s.jsx)(H0,{hideCloseButton:!0,hideHeader:!0,onClose:n,width:440,children:(0,s.jsxs)("div",{className:"base-modal__content base-modal__content--centered",children:[(0,s.jsx)("p",{children:"External links are disabled in trial accounts."}),(0,s.jsx)("div",{className:"base-modal__btns",children:(0,s.jsx)(yc,{inverted:!0,onClick:n,children:"OKAY"})})]})})})})};var Fm=i(59288);class Lb extends Fm.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:n}=this.props,o=P0()("component",this.props);return(0,s.jsx)(Ne.qh,{...o,render:({match:r})=>{const a=Mo()(e,{match:r,ref:l=>this.child=l});return Fm.createElement(n,a)}})}}const Rr=Lb;var z0=i(59288);class Tb extends z0.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,n=P0()("children",this.props);return(0,s.jsx)(Ne.dO,{...n,children:e&&z0.Children.map(e,o=>o!==null&&z0.cloneElement(o,{ref:r=>this.child=r}))})}}const Um=Tb;var bc=i(59288);class F0 extends bc.Component{nodeRef=bc.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 n=this.transitionState;n==="entering"?this.onEnter(e):n==="exiting"&&this.onExit(e)}onEnter(e){const n=this.nodeRef.current;n&&n.componentWillEnter?n.componentWillEnter(e):e()}onEntered(){const e=this.nodeRef.current;e&&e.componentDidEnter&&e.componentDidEnter()}onExit(e){const n=this.nodeRef.current;n&&n.componentWillExit?n.componentWillExit(e):e()}onExited(){const e=this.nodeRef.current;e&&e.componentDidExit&&e.componentDidExit()}render(){const{children:e}=this.props;return(0,s.jsx)(ls.eB,{addEndListener:this.handleTransition,nodeRef:this.nodeRef,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,...this.props,children:n=>(this.transitionState=n,e&&bc.cloneElement(bc.Children.only(e),{ref:this.nodeRef}))})}}const Da=ae("cover");function jb(){const{categories:t}=(0,Ie.DX)();return!Array.isArray(t)||t.length===0?null:(0,s.jsxs)("section",{className:Da("categories-section"),children:[(0,s.jsx)("h2",{className:Da("categories-title"),children:"Topics"}),(0,s.jsx)("ul",{className:Da("categories-list"),role:"list",children:t.map(e=>(0,s.jsxs)("li",{className:Da("categories-item"),role:"listitem",children:[(0,s.jsx)(B9,{className:Da("categories-icon")}),(0,s.jsx)("span",{className:Da("categories-item-wrap"),children:e})]},e))})]})}const Ib=Ca("CoverCompletedInformation"),Sb=Ca("CoverDueDate"),Nb=Ca("CoverRequirements"),Ab=ae("cover"),Pb=t=>{const{courseId:e,coursePartnerContent:n,hasPartnerContent:o,publishedAt:r,tenantId:a}=t;return o?(0,s.jsx)(Zl,{type:"partner-content",children:(0,s.jsx)(Nh,{courseId:e,partnerContent:n,publishedAt:r,tenantId:a})}):null},Rb=Pt("CoverCourseInfo",t=>{const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:l}=t,d=Ab("details-content-aside",{logo:o});return(0,s.jsxs)("div",{className:d,children:[Pe.BI&&(0,s.jsx)(e0,{}),(0,s.jsx)(Pb,{courseId:e,coursePartnerContent:n,hasPartnerContent:r,publishedAt:a,tenantId:l}),Pe.BI&&!r&&(0,s.jsx)(og,{}),Pe.BI&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Nb,{}),(0,s.jsx)(Sb,{}),(0,s.jsx)(Ib,{}),(0,s.jsx)(jb,{})]})]})}),Mb=ae("cover"),kb=Pt("CoverDescription",()=>{const t=(0,Ie.DX)(),{navigation:e}=t,n=(0,xt.QQ)(t.description),o=e?"description":"description-no-outline";if(!n)return null;const r=ga("description"),a=(0,us.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":r};return(0,s.jsx)("div",{...a,children:(0,s.jsx)(Zl,{type:o,children:(0,s.jsx)(Nt,{className:Mb("details-content-description"),value:Kd(n)},"text")})})}),Vm=ae("cover"),Ob=({className:t=Vm("details-logo"),imageClassName:e=Vm("details-logo-image")})=>{const n=(0,Ie.DX)()??{},o=(0,xt.QQ)(n.media)?.image??{},{height:r,key:a,width:l,scalar:d=Ze.C_.SMALL.value}=o,c={width:l*d,height:r*d};if(!a)return null;const u=(0,Yt.ME)(o);return(0,s.jsx)("div",{className:t,"data-test-id":"cover-details-logo",children:(0,s.jsx)("img",{alt:"",className:e,"data-test-id":"cover-details-logo-image",height:c.height,src:u,width:c.width})})},wb=(t,e)=>{const n=ts()(["lessons",e],t),o=qe()(0,["percentComplete"],n),r=ts()(["passed"],n);return{isComplete:ts()(["isComplete"],n),percentComplete:o,passedQuiz:r}};var Ba=i(98228),Db=i(2353),cs=i.n(Db),Bb=i(3638),wo=i.n(Bb);class gK extends K().Component{static propTypes={fill:Ee().string,height:Ee().number,type:Ee().string,width:Ee().number};static get defaultProps(){return{fill:"#000",height:56,type:"bullet",width:56}}render(){const{type:e,fill:n,width:o,height:r}=this.props,l={className:z()("lesson-icon",`lesson-icon--${e}`),height:r,viewBox:`0 0 ${o} ${r}`,width:o},g=As()([[cs()("embed"),At()("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")],[cs()("map"),At()("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")],[cs()("process"),At()("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")],[cs()("sorting"),At()("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")],[cs()("timeline"),At()("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")],[cs()("video"),At()("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")],[wo(),At()("M24 28a4 4 0 1 0 8 0 4 4 0 1 0-8 0")]]);return(0,s.jsx)("svg",{...l,children:(0,s.jsx)("path",{d:g(e),fill:n})})}}function Hb({icon:t,...e}){switch(t){case Ze.xA.ARTICLE:return(0,s.jsx)(p6,{...e});case Ze.xA.INTERACTION:return(0,s.jsx)(V6,{...e});case Ze.xA.QUIZ:return(0,s.jsx)(H6,{...e});case Ze.xA.VIDEO:return(0,s.jsx)(W6,{...e});default:return(0,s.jsx)("i",{className:"icon icon-Master-02"})}}var nl=i(94267);function Do(){return(0,Ne.W5)("/lessons/:currentLessonId")?.params?.currentLessonId}var Bo=i(76135);const zb=Pt("LessonProgressGraphic");function Ec({canComplete:t,id:e,isDark:n,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:l,scope:d}){const{color:c,navigationStyle:u}=Xt(),m=Ao(e),p=Do(),f=oe(e),g=ut(e),v=Cr(e),C=(0,at.useLabelsMap)(),y=v?.type!=null,b=m?.isComplete,x=e===p,L=m?.percentComplete??0,E=(0,h.useCallback)(()=>{(0,O.JD)((0,Bo.eQ)(e))},[e]),S=(0,h.useCallback)(()=>{(0,O.JD)((0,Bo.ss)(e))},[e]);return(0,s.jsx)(Dh,{canComplete:t,color:c,hasRestriction:y,isComplete:b,isCurrentLesson:x,isDark:n,isEnabled:o,isFailed:f,isPassed:g,isTooltipVisible:r,labels:C,navigationStyle:u,onHideTooltip:a,onMarkComplete:E,onMarkReset:S,onShowTooltip:l,percentComplete:L,progressGraphic:zb,scope:d})}const Fb=ae("overview-list-item");function Ub({className:t,id:e,last:n}){const o=(0,Ba.W)(),r=Do(),{color:a,isLegacyCourse:l,navigationStyle:d,theme:c}=Xt(),{accentContrast:u}=c,{icon:m,title:p}=fs(e)??{},f=ys(p),g=Ao(e),v=oe(e),C=ut(e),y=Cr(e),b=(0,at.useLabelsMap)(),x=(0,us.uW)(p)?{"data-l10n-id":p.l10nId}:{"data-change-path":W1(e,"title")},L=g?.isComplete,E=g?.percentComplete??0,S=y?.type!=null,[N,A]=(0,h.useState)(!1),k=(0,h.useCallback)(()=>A(!0),[]),R=(0,h.useCallback)(()=>A(!1),[]),W=z()("overview-list__li",{"overview-list__li--last":n}),D=z()(t,"overview-list-item"),w=(0,h.useCallback)(Z=>{const{currentTarget:{hash:B}}=Z;Z.preventDefault(),nl.Ay.Events.scrollEvent.register("end",()=>{o.push(B.slice(1)),nl.Ay.Events.scrollEvent.remove("end")}),nl.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,s.jsx)("li",{...x,className:W,"data-test-id":`overview-list-item-${e}`,role:"listitem",children:(0,s.jsx)(qi,{className:D,isTooltipEnabled:!0,lessonId:e,onBlur:R,onClick:w,onHideProgressTooltip:R,onShowProgressTooltip:k,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,s.jsx)($b,{accentContrast:u,color:a,hasRestriction:S,isComplete:L,isCurrentLesson:e===r,isFailed:v,isLegacyCourse:l,isPassed:C,isTooltipVisible:N,labels:b,lessonIcon:m,lessonId:e,lessonTitle:f,navigationStyle:d,onHideTooltip:R,onShowTooltip:k,percentComplete:E,progressGraphic:Vb,scope:Ze.by.COVER})})})}const Vb=Pt("LessonProgressGraphic");function Wb({isTooltipVisible:t,lessonIcon:e,lessonId:n,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:l}){const d=Fb("progress-circle");return(0,s.jsxs)("div",{className:d,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,s.jsx)(Hb,{icon:e})}),(0,s.jsx)("span",{className:"overview-list-item__title","data-test-id":`overview-list-item-title-${n}`,children:o}),(0,s.jsx)(Ec,{canComplete:!1,id:n,isDark:!1,isEnabled:!0,isTooltipVisible:t,onHideTooltip:r,onShowTooltip:a,scope:l})]})}const $b=Pt("OverviewListItemLinkContent",Wb),Kb=({value:t,fallback:e})=>{const n=(0,xt.QQ)(t),o=(0,Rt.pP)(t);return e?(0,s.jsx)("span",{"data-l10n-id":o,children:n||e}):(0,s.jsx)("span",{"data-l10n-id":o,children:n})};function Gb({value:t,children:e}){const n=(0,xt.QQ)(t);return e(n)}const yn=Kb,Qb=ae("overview-list"),Zb=t=>t.reduce((e,n)=>(n.type==="section"?e.push([n]):e[e.length-1]?e[e.length-1].push(n):e.push([n]),e),[]),Yb=Pt("OverviewListSectionTitle",({className:t="",...e})=>{const n=Xl()(["Default"],e);return(0,s.jsx)("h2",{...n,className:`${t} overview-list__section-title`})}),_b=({courseProgress:t,lessons:e})=>{const n=(0,at.useLabelsMap)(),o=Zb(e);return(0,s.jsx)("nav",{"aria-label":n?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[l={},...d]=r,{title:c,type:u}=l,m=u==="section",p=m?d:r,f=Qb("list",{sectionless:!m});return(0,s.jsxs)("section",{children:[m&&c&&(0,s.jsx)(Yb,{children:(0,s.jsx)(yn,{value:c})}),(0,s.jsx)("ol",{className:f,role:"list",children:p.map((g,v)=>{const{passedQuiz:C}=wb(t,g.id);return(0,s.jsx)(Ub,{id:g.id,last:p.length>1&&v===p.length-1,passedQuiz:C},g.id)})})]},a)})})};function Xb(t){const e=wt(t),n=mr(t),o=Lt(t),r=Jr({course:e,courseProgress:n});return{course:e,courseProgress:n,lessons:o,restrictingQuiz:r}}const Jb=(0,h.memo)((0,O.Ng)(Xb)(_b));function qb(t){return t?.partnerContent?.content??{}}function U0(){return(0,O.d4)(t=>qb(t))}const eE=t=>Object.values(Ze.C_).find(e=>e.value==t);function tE(t){return(0,h.useMemo)(()=>eE(t)??Ze.C_.SMALL,[t])?.label.toLowerCase()}const Ha=ae("cover"),sE=Pt("CoverDetails",({reverseColumns:t})=>{const e=ks(1200),{description:n,id:o,media:r,navigation:a,partnerContentId:l,publishedAt:d,selectedAuthorId:c,tenantId:u}=Xt(),m=U0(),p=es()(nt()("id",c),m),f=!!l&&p,g=ys(r)?.image,v=!Jt()(g),C=!n||!a,y=!n&&!a,b=!!(f||Pe.BI),x=Ha("details",{"rise-com":Pe.BI,"rise-com-authoring":Pe.BI&&!d}),L=Ha("details-content-wrap",{columns:b,logo:v}),E=Ha("details-content",{"no-description-or-outline":C}),S=Ha("details-logo",{centered:y,"no-description-or-outline":C,"has-partner-content":!!l}),N=b&&(0,s.jsx)(Rb,{courseId:o,coursePartnerContent:p,hasLogo:v,hasPartnerContent:f,publishedAt:d,tenantId:u}),A=tE(g?.scalar),k=Ha("details-logo-image",{[A]:!0}),R=Ha("details-description-outline");return(0,s.jsx)("section",{className:x,"data-test-id":"cover-details",children:(0,s.jsxs)("div",{className:L,children:[!e&&t&&N,(0,s.jsxs)("div",{className:E,children:[(0,s.jsx)(Ob,{className:S,imageClassName:k}),(0,s.jsxs)("div",{className:R,children:[n&&(0,s.jsx)(kb,{}),e&&N,a&&(0,s.jsx)(Zl,{type:"outline",children:(0,s.jsx)(Jb,{})})]})]}),!e&&!t&&N]})})}),nE=Pt("CoverHeader"),oE=Pt("CoverLayout");var po=i(33044),rE=i(16832),V0=i(86145);const aE=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),Lc=t=>{try{return aE.of(t)}catch(e){return console.warn(`Language ${t} invalid`,e),t}},za=ae("locale-selector"),Tc=({onClose:t})=>{const e=(0,Ne.zy)(),n=(0,Ie.DX)(),o=(0,xt.MQ)(),r=(0,xt.jc)(),a=(0,xt.bs)(),l=a?.length?a:o?r?.map(b=>b.locale):void 0,d=ys(n.title),{currentLocale:c,setCurrentLocale:u}=(0,It.nY)(),m=(0,Ie.vU)(),[p,f]=(0,h.useState)(!1),g=(l?.length||0)>1,v=(0,h.useCallback)(b=>{(0,we.xS)(b),u(b)},[u]),C=()=>{(0,O.JD)((0,V0.Wp)(!1)),t?.()};(0,h.useEffect)(()=>{if(!l||p)return;if(l.length===1){v(l[0]),f(!0);return}const b=(0,we.y4)(void 0),x=(0,we.JK)()??"";if(x!==""){v(x),f(!0);return}b?.[rE.WY]==null&&x===""||C();const E=(navigator.language??"en-US").toLowerCase(),S=l.find(N=>N.toLowerCase()===E);v(S?E:l[0]),f(!0)},[l,e,v,p]);const y=b=>{b.preventDefault();const x=b.target.value;v(x)};return!l||!g?null:(0,s.jsx)(ls.B1,{classNames:"modal",timeout:400,children:(0,s.jsx)(H0,{className:za("modal"),disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:C,useTopLayer:!1,children:(0,s.jsxs)("div",{className:za("container"),children:[(0,s.jsx)("div",{className:za("heading"),children:m.l10nChooseLanguage}),(0,s.jsx)("div",{className:za("course-title"),children:d}),(0,s.jsx)("div",{className:za("selector"),children:(0,s.jsx)("select",{onChange:y,value:c,children:l.map(b=>(0,s.jsx)("option",{value:b,children:Lc(b)},b))})}),(0,s.jsx)("div",{className:za("footer"),children:(0,s.jsx)(po.ArcButton,{onClick:C,size:"lg",children:m.l10nChooseLanguageContinue})})]})})})},iE=ae("cover-container");function lE({labels:t,isEntering:e,isExiting:n}){const o=t?.overviewPageTitleSuffix,r=Lo();return(0,s.jsxs)(Pr,{title:el(`${r} - ${o}`),children:[(0,s.jsx)("main",{children:(0,s.jsx)("div",{className:iE({entering:e,exiting:n}),children:(0,s.jsxs)(oE,{children:[(0,s.jsx)(nE,{}),(0,s.jsx)(sE,{})]})})}),(0,s.jsx)(Tc,{})]})}class Wm extends h.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,I.WQ)})}componentWillExit(e){this.setState({isExiting:!0},()=>{this.willExitTimeout=setTimeout(e,I.WQ)})}componentWillUnmount(){clearTimeout(this.willEnterTimeout),clearTimeout(this.willExitTimeout)}render(){return(0,s.jsx)(lE,{...this.props,...this.state})}}var $m=i(36939),cE=i(19656),W0=i.n(cE),dE=i(39351),Mr=i.n(dE),uE=i(41558),ol=i.n(uE);const hE=t=>{let e="";const n=(o,r)=>{if(r.type==="section")return e=r.id,r.children=[],kn()(o,[r]);if(e){r.sectionId=e;const a=hs()(nt()("id",e))(o);return o[a].children=kn()(o[a].children,[r]),o}return kn()(o,[r])};return ol()(n,[],t)},mE=(t,e)=>{const n=Re()(es()(nt()("id",e)),et()("children")),o=Re()(es()(n),st()(nt()("type","section")),hE)(t);return o?[o.id]:[]},pE=t=>hs()(nt()("id",t)),fE=Mr()(nt()("family","continue"),nt()("variant","continue")),Km=Re()(W0()(fE),Wt()([],"items"));var Gm=i(96476);function gE(t){switch(t){case"a":return 46.5;default:return 7.6}}function vE(t){switch(t){case"d":return 2;default:return 3.2}}function CE(t){switch(t){case"a":return 30;case"c":case"d":return 92;case"note":default:return 76}}function Qm(t){switch(t){case"b":return 95;case"background":return 52;default:return 76}}function Zm(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 xE(t){switch(t){case"dark":case"light":default:return .3}}function bK(t){switch(t){case 3:return"three";case 4:return"four";case 2:default:return"two"}}function yE(t){switch(t){case"light":return"#fff";case"dark":default:return"#000"}}function EK(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 LK(t){switch(t){case"b":return[52,76,95];default:return[52,76,92]}}function TK(t){switch(t){case"a":return[30,76,92];default:return[52,76,92]}}function jK(t){switch(t){case"d":return[2,4.8,5.6];default:return[3.2,4.8,5.6]}}function IK(t){switch(t){case"a":return[46.5,78,120];default:return[7.6,20,32]}}function bE(t){switch(t){case 3:return"sm";case 10:return"lg";case 6:default:return"med"}}function Ym(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 EE(t){switch(t){case 52:return"sm";case 76:return"med";case 92:default:return"lg"}}function _m(t){switch(t){case 52:return"sm";case 76:return"med";case 92:case 95:default:return"lg"}}function Xm(t){switch(t){case 4:return"med";case 6:return"lg";case 2:default:return"sm"}}function $0(t){switch(t){case 52:return"sm";case 92:return"lg";case 76:default:return"med"}}function LE(t){switch(t){case 30:case 52:return"sm";case 92:return"lg";case 76:default:return"med"}}function TE(t){switch(t){case 4.8:return"med";case 5.6:return"lg";case 2:case 3.2:default:return"sm"}}function jE(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 IE(t){switch(t){case 1:return"sm";case 3:return"lg";case 1.5:default:return"med"}}function SE(t){switch(t){case 3.2:return"med";case 5.6:return"lg";case .8:default:return"sm"}}const ps=({value:t,className:e,allowTabNavigation:n=!0,tagName:o,id:r})=>{const{value:a}=X1((0,xt.QQ)(t));return a?(0,s.jsx)(Nt,{allowTabNavigation:n,className:e,id:r,tagName:o,value:t}):null},NE=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),K0=(t,e)=>NE.test(e)?e:t;var G0=i(41021);function jc(){const t=an(),e=t?.background,o=t?.settings?.backgroundType,r=(0,xt.QQ)(e?.media)?.image;return o===I.xj.IMAGE?r:null}function AE(){const t=jc();return(0,Zs.I6)(t?.alt)}function PE(){const t=jc();if(!t)return null;const{alpha:e,overlayColor:n=I.df.DARK}=t,o=(0,Yt.ME)(t),r=n===I.df.LIGHT?I.qH:I.KJ;return(0,G0.A)({alpha:e,color:r,url:o})}function cn(t){const{contrast:e=I.Em.AUTO,backgroundColor:n="#fff"}=t,o=K0("#fff",n),r=(0,ct.xD)(o);return e===I.Em.DARK||e===I.Em.AUTO&&r===I.Em.DARK?Ze.S6.DARK:Ze.S6.LIGHT}function RE(){const t=an(),e=t?.family,n=t?.variant,r=Bs()?.cardMode;return g7(e,n)&&r?.toLowerCase()}function ME(){const t=Dn(),e=t?(0,ct.XC)(t):ct.lL.LIGHT;return Bi()(e.toLowerCase())}function kE(){return Bs()?.backgroundType?.toLowerCase()}function OE(){const t=(0,Ie.DX)(),e=t?.theme?.accentContrast,n=Bs(),o=Dn(),r=an(),a=r?.family,l=r?.variant,{accentColor:d,backgroundType:c,customBackgroundColorContrast:u}=n,m=(0,ct.cP)(o)?I.Em.LIGHT:I.Em.DARK,p=!u&&(a==="image"||a==="chart"||l==="sorting"),f=u??I.Em.DARK,g=p?m:f,v=c===I.xj.ACCENT||c===I.xj.COLOR,C=d||t?.theme?.colorAccent,y=c===I.xj.ACCENT?C:o,b=c===I.xj.ACCENT?e:g,x=cn({backgroundColor:y,contrast:b});return v&&x==Ze.S6.LIGHT}function wE(){const{backgroundColor:t,customBackgroundColorContrast:e}=Bs(),n=an(),o=(0,ct.cP)(t)?I.Em.LIGHT:I.Em.DARK,r=!e&&(n?.family==="image"||n?.family==="chart"||n?.variant==="sorting"),a=e??I.Em.DARK;return cn({backgroundColor:t,contrast:r?o:a})}function DE(){const t=jc(),e=!!t,n=t?.overlayColor;return e&&n===I.df.LIGHT}function BE(){const t=an(),e=t?.settings?.backgroundType,n=!t?.settings?.customBackgroundColorContrast;return e===null||n}function HE(t,e){const{className:n="",tag:o="div",style:r={},...a}=t,{backgroundColor:l}=Bs(),d=wE(),c=d===Ze.S6.DARK?Ze.S6.LIGHT:Ze.S6.DARK;return l!==""&&Object.assign(r,{"--color-background-contrast":d,"--color-background-contrast-complementary":c,"--color-background-contrast-rgb":(0,Oa.A)(d)?.slice(0,3)}),(0,s.jsx)(o,{...a,className:n,ref:e,style:r})}const Jm=(0,h.forwardRef)(HE),Q0=t=>`${t}rem`;function zE(){const t=Bs();if(an()?.className?.includes("blocks-lesson-slide__full-width-image"))return{paddingBottom:"0rem",paddingTop:"0rem"};const o=Q0(t?.paddingBottom),r=Q0(t?.paddingTop);return{paddingBottom:o,paddingTop:r}}function NK(){const t=useBlockSettings();return Q0(t?.width)}const FE=Xl()(["settings"]),qm=ae("block-wrapper"),UE=ae("bg"),VE=(t,e)=>{const{children:n,className:o,defaultBackgroundColor:r="",style:a,tag:l,type:d,...c}=t,u=an(),{paddingBottom:m,paddingTop:p}=zE(),f=ME(),g=RE(),v=kE(),C=OE(),y=DE(),b=PE(),x=AE(),L=K0(r,Dn()),E=L||"transparent",S=u?.className,N={...a,...b,"--color-background":L,boxShadow:`0px 1px 0px ${E} `,paddingBottom:m,paddingTop:p},A=z()(o,{"bg--legacy-background":BE(),[`block-${d}`]:!!d}),k=UE({card:g,range:f,type:v,"overlay-light":y,"contrast-light":C}),R=S?qm({}).mix(k).mix(S):qm({}).mix(k),W=[A,R.toString()].join(" ");return(0,s.jsxs)(Jm,{...FE(c),className:W,ref:e,style:N,tag:l,children:[(0,s.jsx)("span",{"aria-label":x,role:(0,Zs.Vx)(x)}),n]})},Ft=(0,h.forwardRef)(VE),bn=Ca("ImageEagerOrLazy");var WE=i(2216),AK=i(29308);function e2(t){return(0,s.jsx)(WE.A,{IconUnzoom:KE,IconZoom:$E,...t})}const $E=()=>(0,s.jsx)(yt,{name:"arrows-two-from-center"}),KE=()=>(0,s.jsx)(yt,{name:"arrows-two-to-center"}),t2=ae("block-text");function GE({children:t,item:e,labels:n}){const o="media"in e?e.media:void 0,r=(0,xt.QQ)(o)?.image,a=(0,Yt.ME)(r),l=(0,Zs.Ll)(r?.alt??""),c=an()?.settings,u=c?.images,m=c?.zoomOnClick,p=(0,h.useRef)(void 0);let f=(0,s.jsx)(bn,{alt:l,"data-l10n-id":(0,Rt.pP)(o),ref:p,src:a});return m&&(f=(0,s.jsx)(e2,{a11yNameButtonUnzoom:n?.a11yUnzoomImage,a11yNameButtonZoom:n?.a11yZoomImage,children:f})),(0,s.jsxs)("div",{className:t2("col"),children:[u&&r&&(0,s.jsx)("div",{className:t2("image"),children:f}),t]})}var QE=i(31316),Z0=i.n(QE),ZE=i(97086),Y0=i(64653);const YE=ae("portal-tooltip"),Hs={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},_E=(t,e,n)=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=window.visualViewport;let l=n;(l===Hs.ABOVE||l===Hs.BELOW)&&(o.bottom-r.height<0&&(l=Hs.BELOW),r.height+o.top>a.height&&(l=Hs.ABOVE)),(l===Hs.LEFT||l===Hs.RIGHT)&&(r.left<0&&(l=Hs.RIGHT),r.width+o.left>a.width&&(l=Hs.LEFT));const d={left:0,right:0,top:0,bottom:0};l===Hs.ABOVE&&(d.top=o.top-r.height-25),l===Hs.BELOW&&(d.top=o.top+o.height),l===Hs.RIGHT&&(d.left=o.left+o.width+70),l===Hs.LEFT&&(d.left=o.left-r.width-25),(l===Hs.LEFT||l===Hs.RIGHT)&&(d.top=o.top-o.height/2),(l===Hs.ABOVE||l===Hs.BELOW)&&(d.left=o.left+o.width/2);const c=o.left+o.width/2,u=r.width/2+c>a.width,m=r.width/2>c;u?e.classList.add("portal-tooltip__tooltip--offset-right"):m&&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--${l.toLowerCase()}`)};function XE({children:t,className:e,direction:n=Hs.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:l}){const[d,c]=(0,h.useState)(!1),[u]=(0,h.useState)(!1),m=(0,h.useRef)(null),p=(0,h.useRef)(null),[f,g]=(0,ZE.A)(()=>t),v=(0,h.useCallback)(()=>c(!0),[c]),C=(0,h.useCallback)(()=>c(!1),[c]);return(0,h.useEffect)(()=>(document.addEventListener("scroll",v),document.addEventListener("scrollend",C),()=>{document.removeEventListener("scroll",v),document.removeEventListener("scrollend",C)})),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:m,children:f}),a&&(g||u||o)&&!d&&(0,s.jsx)(ls.B1,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,s.jsx)(JE,{buttonRef:m,className:e,direction:n,elementFocused:o,hovering:g,message:a,portalRef:p,style:l})})]})}function JE({buttonRef:t,className:e,direction:n,elementFocused:o,hovering:r,message:a,portalRef:l,style:d}){const c=(0,h.useCallback)(()=>_E(t.current,l.current,n),[t,n,l]),u=(0,h.useCallback)(()=>{l.current&&c()},[l,c]),m=()=>{!r&&!o&&l.current&&(l.current.style=null)};return(0,Y0.A)(u),(0,Jn.createPortal)((0,s.jsx)("div",{"aria-hidden":!r||!o,className:YE("tooltip").mix(e).toString(),onTransitionEnd:m,ref:l,style:d,children:a}),document.getElementById("portal"))}const Fa=XE;var $t=i(59288);const rl=$t.createContext(null);function qE({children:t,className:e,isDisabled:n,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:l,portalArgs:d,positionX:c="left",value:u}){const[m,p]=$t.useState(null),f=(0,_t.A)(m),[g,v]=$t.useState(!1),C=(0,_t.A)(g),[y,b]=$t.useState(null),x=$t.useRef(void 0),L=$t.useRef(void 0),E=$t.useRef(void 0),N=`select-${$t.useId()}`,A=`${N}-content`,k=m?.id,R=$t.useCallback(F=>{const G=F.currentTarget;s2(G)||(v(!1),p(G),l(G.getAttribute("data-value")),F.stopPropagation())},[l]),W=$t.useCallback(F=>{p(F)},[]),D=$t.useCallback(()=>{v(F=>!F)},[]),w=$t.useCallback(()=>{const{left:F,top:G}=Im({anchor:L.current,popover:E.current,positionX:c}),le=window.getComputedStyle(L.current).direction==="rtl"?-F:F;b({transform:`translate3d(${le}px, ${G}px, 0)`,visibility:"visible",width:`${L.current?.offsetWidth}px`})},[c]),Z=$t.useCallback(F=>{const G=Array.from(E.current?.querySelectorAll("[data-select-item]")??[]),ue=G.length,ce=G.findIndex(Oe=>Oe.getAttribute("data-select-item")==="current");let le,Se=ce+1;for(let Oe=0;Oe<ue;Oe++){Se>=ue&&(Se=0);const We=G[Oe];if(We!=null&&!s2(We)&&nL(We,F)){le=Oe;break}else Se=ue-1}le&&(p(G[le]),G[le]?.scrollIntoView({block:"center"}))},[]),B=$t.useCallback(F=>{const G=F.key;if(F.ctrlKey||F.metaKey)return;let ue=!1;const ce=Array.from(E.current?.querySelectorAll("[data-select-item]")??[]),le=ce.findIndex(Se=>Se.getAttribute("data-select-item")==="current");if(g)if(G.length===1&&G!==" "&&!F.altKey&&!F.ctrlKey&&!F.metaKey)Z(G);else switch(G){case" ":case"Enter":v(!1),ce[le]!=null&&l(ce[le].getAttribute("data-value")),ue=!0;break;case"Esc":case"Escape":v(!1),p(ce.find(Se=>Se.getAttribute("aria-selected")==="true")),ue=!0;break;case"ArrowUp":F.altKey?(v(!1),ce[le]!=null&&l(ce[le].getAttribute("data-value")??"")):le>0&&(p(ce[le-1]),ce[le-1].scrollIntoView({block:"center"})),ue=!0;break;case"ArrowDown":le<ce.length-1&&(p(ce[le+1]),ce[le+1].scrollIntoView({block:"center"})),ue=!0;break;case"Home":p(ce[0]),ce[0]?.scrollIntoView({block:"center"}),ue=!0;break;case"End":p(ce[ce.length-1]),ce[ce.length-1]?.scrollIntoView({block:"center"}),ue=!0;break;case"PageUp":p(ce[0]),ce[0]?.scrollIntoView({block:"center"}),ue=!0;break;case"PageDown":p(ce[ce.length-1]),ce[ce.length-1]?.scrollIntoView({block:"center"}),ue=!0;break;case"Tab":v(!1),ce[le]!=null&&l(ce[le].getAttribute("data-value"));break}else if(G.length===1&&G!==" "&&!F.altKey&&!F.ctrlKey&&!F.metaKey)v(!0),Z(G);else switch(G){case" ":case"Enter":v(!0),ue=!0;break;case"ArrowUp":v(!0),p(ce[0]),ue=!0;break;case"ArrowDown":v(!0),ue=!0;break;case"Home":v(!0),p(ce[0]),ue=!0;break;case"End":v(!0),p(ce[ce.length-1]),ue=!0;break}ue&&(F.stopPropagation(),F.preventDefault())},[Z,g,l]);return $t.useEffect(()=>{const F=E.current?.querySelector('[data-select-item][aria-selected="true"]');p(F)},[]),$t.useEffect(()=>{const F=E.current?.querySelector(`[data-select-item][data-value="${u}"]`);p(F)},[u]),$t.useEffect(()=>{const F=G=>{g&&x.current!=null&&E.current!=null&&!x.current.contains(G.target)&&!E.current.contains(G.target)&&v(!1)};return g?document.addEventListener("click",F):document.removeEventListener("click",F),()=>{document.removeEventListener("click",F)}},[g]),$t.useEffect(()=>(g?window.addEventListener("resize",w):window.removeEventListener("resize",w),()=>{window.removeEventListener("resize",w)}),[w,g]),$t.useEffect(()=>{const F=Jl(x.current);for(const G of F)g?G?.addEventListener("scroll",w,{passive:!0}):G?.removeEventListener("scroll",w);return()=>{for(const G of F)G?.removeEventListener("scroll",w)}},[w,g]),$t.useEffect(()=>{g?w():b(null)},[w,g]),$t.useEffect(()=>{g&&f!=null&&f!==m&&r?.({value:m.getAttribute("data-value")})},[g,f,m,r]),$t.useEffect(()=>{if(C&&!g)o?.();else if(!C&&g&&(a?.(),x.current)){const F=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:x.current}});x.current.dispatchEvent(F)}},[C,g,o,a]),$t.useEffect(()=>{const F=G=>{G.detail.target!==x.current&&v(!1)};return document.addEventListener("comboboxopen",F),()=>{document.removeEventListener("comboboxopen",F)}},[]),(0,s.jsx)(rl.Provider,{value:{activeEl:m,htmlIdActiveDescendant:k,htmlIdBase:N,htmlIdContent:A,isExpanded:g,onItemClick:R,onItemHover:W,onTriggerClick:D,onTriggerKeyDown:B,portalArgs:d,refContent:E,refTrigger:L,selectedValue:u,styleContent:y},children:(0,s.jsx)("div",{"aria-owns":A,className:e,inert:n?!0:void 0,ref:x,children:t})})}function eL({children:t,className:e,labelledBy:n,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:l,isExpanded:d,onTriggerClick:c,onTriggerKeyDown:u,refTrigger:m}=$t.useContext(rl),p=!!o,f=o??"button";return(0,s.jsxs)(f,{"aria-activedescendant":a,"aria-controls":l,"aria-expanded":d,"aria-haspopup":"listbox","aria-labelledby":n,className:e,"data-select-trigger":p?void 0:"",onClick:c,onKeyDown:u,ref:m,role:"combobox",type:"button",...r,children:[(0,s.jsx)("span",{"data-select-trigger-text":"",children:t}),(0,s.jsx)("span",{"data-select-trigger-icon":"",children:d?(0,s.jsx)(yt,{name:"chevron-up"}):(0,s.jsx)(yt,{name:"chevron-down"})})]})}function tL({children:t,className:e,labelledBy:n,style:o={}}){const{htmlIdContent:r,isExpanded:a,portalArgs:l,refContent:d,styleContent:c}=$t.useContext(rl);return Jn.createPortal((0,s.jsx)("div",{"aria-labelledby":n,className:e,"data-select-content":"",hidden:a?void 0:!0,id:r,ref:d,role:"listbox",style:{...c,...o},children:t}),Er(l))}function PK({children:t,className:e,labelText:n}){const{htmlIdBase:o}=$t.useContext(rl),r=$t.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:n}),t]})}function sL({children:t,className:e,labelledBy:n,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:l,onItemClick:d,onItemHover:c,selectedValue:u}=$t.useContext(rl),m=$t.useRef(void 0),p=$t.useId(),f=m.current===a,g=r===u,v=`${l}-option-${p}`,C=$t.useCallback(()=>{c(m.current)},[c]);return(0,s.jsxs)("div",{"aria-disabled":o,"aria-labelledby":n,"aria-selected":g,className:e,"data-select-item":f?"current":"","data-value":r,id:v,onClick:o?void 0:d,onMouseEnter:C,ref:m,role:"option",children:[t,g&&(0,s.jsx)("span",{"data-select-item-selected":"",children:(0,s.jsx)(yt,{name:"check"})})]})}function RK({children:t}){return jsx("span",{"data-select-item-icon":"",children:t})}function s2(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function nL(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const oL=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(t=>({value:t,label:`${t}x`})),_0=ae("playback-speed-menu"),n2=({onFocus:t,onBlur:e,onMouseEnter:n,onMouseLeave:o,onChange:r,speed:a,triggerClassName:l=""})=>{const d=(0,gh.A)();return(0,s.jsxs)(qE,{className:_0(),onSelect:c=>r(parseFloat(c)),portalArgs:{id:"portal",childType:"dialog"},value:String(a),children:[(0,s.jsxs)(eL,{as:po.ArcButton,className:[_0("trigger"),l].join(" "),labelledBy:d,onBlur:e,onFocus:t,onMouseEnter:n,onMouseLeave:o,shape:"square",size:"sm",variant:"tertiary",children:[a,"x"]}),(0,s.jsx)(tL,{className:_0("content"),labelledBy:d,children:oL.map((c,u)=>(0,s.jsx)(sL,{value:String(c.value??""),children:c.label},u))})]})};var X0=i(72181);const rL=(0,Vi.action)(X0.l6),o2=(0,Vi.action)(X0.ju),al=(0,Vi.action)(X0.Y8);var aL=i(60213),r2=i(36563),iL=i(21784);const lL=(0,r2._w)([aL.z]);function cL(){return"* "}const dL=new iL.K6({bulletList(t,e){t.renderList(e," ",cL)},orderedList(t,e){const n=e.attrs.order??1,o=String(n+e.childCount-1).length,r=t.repeat(" ",o+2);t.renderList(e,r,a=>{const l=String(n+a);return t.repeat(" ",o-l.length)+l+". "})},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 Ho(t){if(t==null)return t;const e=(0,r2.ui)(t,lL);return dL.serialize(e,{tightLists:!0})}const a2=(t,e,n)=>{if(t.variant==="audio"||t.family==="gallery"&&t.variant==="centered")return uL(t,e,n);if(t.variant==="flashcard"||t.variant==="stack")return hL(t,e,n);if(t.family==="image")return mL(t,e,n);if(t.variant==="accordion"||t.variant==="labeledgraphic"||t.variant==="process"||t.variant==="tabs"||t.variant==="timeline")return pL(t,e,n);if(t.family==="list")return fL(t,e,n);if(t.family==="text")return vL(t,e,n);if(t.family==="impact")return CL(t,e,n)},uL=(t,e,{getL10nValue:n})=>Ho(n(e.caption)),hL=(t,e,{getL10nValue:n,side:o="front"})=>{const r=e[o];return r.type==="description"?Ho(n(r.description)):void 0},mL=(t,e,{getL10nValue:n})=>{const o=t.variant==="text aside";return Ic([o&&"paragraph"in e&&Ho(n(e.paragraph)),Ho(n(e.caption))])},pL=(t,e,{getL10nValue:n})=>{const o=t.variant==="timeline"&&"date"in e&&n(e.date),r=n(e.title),a=Ho(n(e.description));return Ic([o,r,a])},fL=(t,e,{getL10nValue:n})=>{if(Array.isArray(t.items)){const o=String(t.items.length).length,r=t.variant==="numbered";return Ic(t.items.map((a,l)=>(r?`${String(a.number||l+1)}. `.padStart(o+2," "):"* ")+Ho(n(a.paragraph))))}},gL={"two column":2,"three column":3,"four column":4},vL=(t,e,{getL10nValue:n})=>{const o=t.variant?.includes("heading"),r=!["heading","subheading"].includes(t?.variant),a=gL[t?.variant]??1;return Ic(t.items.slice(0,a).flatMap(l=>[o&&"heading"in l&&Ho(n(l.heading)),r&&"paragraph"in l&&Ho(n(l.paragraph))]))};function Ic(t){return t.filter(Boolean).join(`

`)}const CL=(t,e,{getL10nValue:n})=>t.items.reduce((o,r)=>"paragraph"in r?o+(o.length>0?`
`:"")+Ho(n(r.paragraph)):o,""),i2=(0,h.createContext)(void 0);function xL({aiEnabled:t=!1,aiWriterContext:e,children:n,lessonId:o,mode:r,showAssetLibraryDialog:a,hideAssetLibraryDialog:l,openTranscript:d,closeTranscript:c,removeMediaRecordType:u,removeItemMedia:m,uploadAudio:p}){const f=(0,xt.gY)(),g=(0,Ns.y4)(),v=({item:E})=>{if(!E)return;const S="media"in E?f(E.media)?.audio?.transcript:void 0;return g(rL(S))},C=()=>g(o2()),y=(E,S,N)=>{const{id:A,media:k}=S;N||(N=`items:${E}/items:${S?.id}`),(0,us.uW)(k)?g(u({l10n:k,type:"audio"})):g(m({itemId:A,lessonId:o,refs:N,type:"audio"}))},b=(E,S,N,A,k)=>{const R=(0,us.uW)(k)?k:void 0;p({file:E,opts:{lessonId:o,refs:A,l10n:R,transcript:S,aiAudioSettings:N}})},x=(E,S,N)=>{l&&l(),b(E.detail.files[0],E.detail.transcription,E.detail.aiAudioSettings,S,N)},L=(E,S,N,A)=>{N||(N=`items:${E.id}/items:${S?.id}`);const k=E.variant==="flashcard"?a2(E,E.items?.find(W=>W.id===S.id),{getL10nValue:f,side:A}):a2(E,S,{getL10nValue:f,side:A}),R=f(S.media);a&&g(a({onInsertAudio:W=>x(W,N,S.media),initialSelectedTab:t?"ai-audio":"record-audio",initialAudioText:k,aiWriterContext:e,uploadTypes:["audio"],tabs:{"ai-audio":t,"record-audio":!0,"upload-audio":!0},initialData:{"ai-audio":R?.audio?.aiAudioSettings?{...R.audio.aiAudioSettings,audioUrl:R.audio.key?(0,Pe.o1)(R.audio.key):void 0}:void 0}}))};return(0,s.jsx)(i2.Provider,{value:{lessonId:o,uploadAudio:p,mode:r,openTranscript:d||v,closeTranscript:c||C,showAssetLibraryDialog:a,hideAssetLibraryDialog:l,handleOpenMediaModal:L,handleDelete:y},children:n})}function Sc(){const t=(0,h.useContext)(i2);return t||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,closeTranscript:null,lessonId:"",uploadAudio:null})}function l2(t){function e(n){const o=Sc();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`WithMediaContextWrapper(${t.name})`,e}const yL=(0,Ns.GF)(),J0=()=>yL(t=>t.transcriptPanel),Nc={container:"audio-player__actions",button:"audio-player__actions--button"},bL=({inert:t,playbackSpeed:e,transcript:n,onPlaybackChange:o,onDelete:r,onTranscriptClick:a,onTranscriptClose:l})=>{const{mode:d}=Sc(),c=J0(),[u,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),[g,v]=(0,h.useState)(!1),C=(0,h.useCallback)(()=>m(!0),[]),y=(0,h.useCallback)(()=>m(!1),[]),b=(0,h.useCallback)(()=>f(!0),[]),x=(0,h.useCallback)(()=>f(!1),[]),L=(0,h.useCallback)(()=>v(!0),[]),E=(0,h.useCallback)(()=>v(!1),[]),S=(0,Ie.vU)(),N=c?.isOpen&&c?.transcript===n,A=N?S?.audioHideTranscript:d==="edit"?"Edit transcript":S?.audioShowTranscript;function k(){N?l?.():a?.()}return(0,s.jsxs)("div",{className:Nc.container,inert:t,children:[(0,s.jsx)(Fa,{elementFocused:u,message:S?.audioPlaySpeed,children:(0,s.jsx)(n2,{onBlur:y,onChange:o,onFocus:C,speed:e,triggerClassName:Nc.button})}),r&&(0,s.jsx)(Fa,{elementFocused:p,message:"Remove audio",children:(0,s.jsx)(po.ArcButton,{className:Nc.button,icon:(0,s.jsx)(yt,{name:"trash"}),layout:"icon",onBlur:x,onClick:r,onFocus:b,onMouseOut:x,onMouseOver:b,size:"sm",type:"button",variant:"tertiary"})}),(d==="edit"||n)&&(0,s.jsx)(Fa,{elementFocused:g,message:A,style:{whiteSpace:"nowrap"},children:(0,s.jsx)(po.ArcButton,{"aria-label":A,className:Nc.button,icon:(0,s.jsx)(yt,{name:"file-audio"}),layout:"icon",onBlur:E,onClick:k,onFocus:L,onMouseOut:E,onMouseOver:L,size:"sm",type:"button",variant:"tertiary"})})]})};var EL=i(20571);const c2="change";class LL extends EL.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(c2,e)}removeChangeListener(e){this.removeListener(c2,e)}}const ht=new LL(1/0),d2=ae("audio-player-icon"),kr=({x:t,width:e,height:n,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:l,pulseY:d,delay:c="0s"})=>(0,s.jsx)("rect",{className:d2("bar"),height:n,rx:1,style:{"--base-height":`${n/10}rem`,"--base-y":`${o/10}rem`,"--pulse-base-height":r&&`${r/10}rem`,"--pulse-base-y":a&&`${a/10}rem`,"--pulse-height":`${l/10}rem`,"--pulse-y":`${d/10}rem`,"--delay":c},width:e,x:t,y:o}),u2=({animating:t})=>(0,s.jsx)("span",{className:d2({animating:t}),children:(0,s.jsxs)("svg",{"aria-hidden":"true",height:"16",viewBox:"0 0 20 16",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)(kr,{delay:"0s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:0,y:7}),(0,s.jsx)(kr,{delay:"0.1s",height:4,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,width:2,x:3,y:6}),(0,s.jsx)(kr,{delay:"0.2s",height:10,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,width:2,x:6,y:3}),(0,s.jsx)(kr,{delay:"0.3s",height:16,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,width:2,x:9,y:0}),(0,s.jsx)(kr,{delay:"0.4s",height:8,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,width:2,x:12,y:4}),(0,s.jsx)(kr,{delay:"0.5s",height:11,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,width:2,x:15,y:2.5}),(0,s.jsx)(kr,{delay:"0.6s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:18,y:7})]})});var Kt=i(59288);const Ac=Kt.createContext(null);function TL({children:t,isDisabled:e,onClose:n,onOpen:o,onSelect:r,positionX:a="left"}){const[l,d]=Kt.useState(!1),c=(0,_t.A)(l),[u,m]=Kt.useState(null),p=Kt.useRef(void 0),f=Kt.useRef(void 0),g=Kt.useRef(void 0),y=`${`menu-${Kt.useId()}`}-content`,b=Kt.useCallback(({direction:B,predFn:F=()=>!0})=>{if(!g.current)return;const G=Array.from(g.current.querySelectorAll('[role="menuitem"]')),ue=G.length,ce=G.findIndex(We=>We===document.activeElement);let le,Se,Oe;switch(B){case"start":le=0,Se=1;break;case"end":le=ue-1,Se=-1;break;case"backwards":le=ce-1,Se=-1;break;case"forwards":le=ce+1,Se=1;break;default:le=ce+1,Se=1}for(let We=0;We<=ue;We++){le>=ue?le=0:le<0&&(le=ue-1);const ze=G[le];if(ze!=null&&SL(ze)&&F(ze)){Oe=ze;break}else le=le+Se}Oe&&Oe.focus()},[]),x=Kt.useCallback(()=>{b({direction:"start"})},[b]),L=Kt.useCallback(()=>{b({direction:"end"})},[b]),E=Kt.useCallback(()=>{b({direction:"backwards"})},[b]),S=Kt.useCallback(()=>{b({direction:"forwards"})},[b]),N=Kt.useCallback(B=>{b({direction:"forwards",predFn:F=>NL(F,B)})},[b]),A=Kt.useCallback(()=>{l?d(!1):(d(!0),setTimeout(S,25))},[S,l]),k=Kt.useCallback(()=>{f.current?.focus(),d(!1)},[]),R=Kt.useCallback(()=>{d(!0),setTimeout(S,25)},[S]),W=Kt.useCallback(()=>{d(!0),setTimeout(E,25)},[E]),D=Kt.useCallback(()=>{const{left:B,top:F}=Im({anchor:f.current,popover:g.current,positionX:a});m({transform:`translate3d(${B}px, ${F}px, 0)`,visibility:"visible"})},[a]),w=Kt.useCallback(B=>{const F=B.currentTarget;h2(F)||(r?.(F.getAttribute("data-name")),k())},[k,r]),Z=Kt.useCallback(B=>{const F=B.key;if(B.altKey||B.ctrlKey||B.metaKey)return;let G=!1;if(B.shiftKey)F==="Tab"?E():F.trim()!==""&&N(F),G=!0;else switch(F){case" ":case"Enter":w(B),G=!0;break;case"Esc":case"Escape":k(),G=!0;break;case"ArrowUp":E(),G=!0;break;case"Tab":case"ArrowDown":S(),G=!0;break;case"Home":case"PageUp":x(),G=!0;break;case"End":case"PageDown":L(),G=!0;break;default:N(F);break}G&&(B.stopPropagation(),B.preventDefault())},[k,w,N,x,L,S,E]);return Kt.useEffect(()=>{const B=F=>{l&&p.current!=null&&g.current!=null&&!p.current.contains(F.target)&&!g.current.contains(F.target)&&d(!1)};return l?document.addEventListener("click",B):document.removeEventListener("click",B),()=>{document.removeEventListener("click",B)}},[l]),Kt.useEffect(()=>(l?window.addEventListener("resize",D):window.removeEventListener("resize",D),()=>{window.removeEventListener("resize",D)}),[D,l]),Kt.useEffect(()=>{const B=Jl(p.current);for(const F of B)l?F?.addEventListener("scroll",D,{passive:!0}):F?.removeEventListener("scroll",D);return()=>{for(const F of B)F?.removeEventListener("scroll",D)}},[D,l]),Kt.useEffect(()=>{l?D():m(null)},[D,l]),Kt.useEffect(()=>{if(c&&!l)n?.();else if(!c&&l&&(o?.(),p.current)){const B=new CustomEvent("menuopen",{bubbles:!0,detail:{target:p.current}});p.current.dispatchEvent(B)}},[c,l,n,o]),Kt.useEffect(()=>{const B=F=>{F.detail.target!==p.current&&d(!1)};return document.addEventListener("menuopen",B),()=>{document.removeEventListener("menuopen",B)}},[]),(0,s.jsx)(Ac.Provider,{value:{htmlIdContent:y,isExpanded:l,onCloseFocusTrigger:k,onExpandFocusMenuItemNext:R,onExpandFocusMenuItemPrevious:W,onFocusMenuItemByPrefix:N,onFocusMenuItemFirst:x,onFocusMenuItemLast:L,onFocusMenuItemNext:S,onFocusMenuItemPrevious:E,onItemClick:w,onItemKeyDown:Z,onTriggerClick:A,refContent:g,refTrigger:f,styleContent:u},children:(0,s.jsx)("div",{"aria-owns":y,inert:e?!0:void 0,ref:p,children:t})})}function jL({children:t,label:e,labelledBy:n,...o}){const{htmlIdContent:r,isExpanded:a,onTriggerClick:l,onCloseFocusTrigger:d,onExpandFocusMenuItemNext:c,onExpandFocusMenuItemPrevious:u,refTrigger:m}=Kt.useContext(Ac),p=Kt.useCallback(f=>{let g=!1;switch(f.key){case" ":case"Enter":case"ArrowDown":case"Down":c(),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,c,u]);return(0,s.jsx)("button",{...o,"aria-controls":r,"aria-expanded":a,"aria-haspopup":"menu","aria-label":e,"aria-labelledby":n,"data-menu-trigger":"",onClick:l,onKeyDown:p,ref:m,type:"button",children:t})}function IL({children:t,className:e}){const{htmlIdContent:n,isExpanded:o,refContent:r,styleContent:a}=Kt.useContext(Ac);return o?Jn.createPortal((0,s.jsx)("div",{className:e,"data-menu-content":"",hidden:o?void 0:!0,id:n,ref:r,role:"menu",style:a,children:t}),Er()):null}function q0({children:t,className:e,isDisabled:n,name:o}){const{onItemClick:r,onItemKeyDown:a}=Kt.useContext(Ac),l=Kt.useCallback(d=>{d.currentTarget?.focus()},[]);return(0,s.jsx)("button",{"aria-disabled":n,className:e,"data-menu-item":"","data-name":o,onClick:n?void 0:r,onKeyDown:a,onMouseOver:l,role:"menuitem",tabIndex:n?-1:void 0,type:"button",children:t})}function DK({children:t}){return jsx("span",{"data-menu-item-icon":"",children:t})}function BK({className:t}){return jsx("hr",{className:t,"data-menu-separator":""})}function h2(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function SL(t){return t!=null&&t.tagName==="BUTTON"&&!h2(t)}function NL(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const Pc=ae("audio-player-actions-condensed"),Ua=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript"}),eu={container:"audio-player__actions",button:"audio-player__actions--button",options:"audio-player__actions--options"},AL=({inert:t,playbackSpeed:e,transcript:n,onPlaybackChange:o,onTranscriptClick:r,onTranscriptClose:a,item:l,side:d,refs:c})=>{const{mode:u,handleOpenMediaModal:m,handleDelete:p}=Sc(),f=J0(),g=an(),[v,C]=(0,h.useState)(!1),[y,b]=(0,h.useState)(!1),x=(0,h.useCallback)(()=>C(!0),[]),L=(0,h.useCallback)(()=>C(!1),[]),E=(0,h.useCallback)(()=>b(!0),[]),S=(0,h.useCallback)(()=>b(!1),[]),N=(0,Ie.vU)(),A=f?.isOpen&&f?.transcript===n,k=A?N?.audioHideTranscript:u==="edit"?"Edit transcript":N?.audioShowTranscript;function R(W){switch(W){case Ua.DeleteAudio:p(g.id,l,c);break;case Ua.EditTranscript:A?a?.():r?.();break;case Ua.EditAudio:m(g,l,c,d);break}}return(0,s.jsxs)("div",{className:eu.container,inert:t,children:[(0,s.jsx)(Fa,{elementFocused:v,message:u==="edit"?"Play speed":N?.audioPlaySpeed,children:(0,s.jsx)(n2,{onBlur:L,onChange:o,onFocus:x,speed:e,triggerClassName:eu.button})}),m||p||n?(0,s.jsx)(Fa,{elementFocused:y,message:"Options",children:(0,s.jsxs)(TL,{onSelect:R,positionX:"left",children:[(0,s.jsxs)(jL,{className:eu.options,onBlur:S,onFocus:E,onMouseEnter:E,onMouseLeave:S,children:[(0,s.jsx)(po.ArcIcon,{icon:"fa-regular fa-ellipsis",size:16}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Options"})]}),(0,s.jsxs)(IL,{className:Pc("content"),children:[m?(0,s.jsx)(q0,{className:Pc("menu-item"),name:Ua.EditAudio,children:"Edit audio"}):null,u==="edit"||n?(0,s.jsx)(q0,{className:Pc("menu-item"),name:Ua.EditTranscript,children:k}):null,p&&g.variant!=="audio"?(0,s.jsx)(q0,{className:Pc("menu-item"),name:Ua.DeleteAudio,children:"Remove audio"}):null]})]})}):null]})},qs=ae("audio-player"),Rc=({currentTime:t,duration:e})=>Math.round(t/e*100)||0,m2=t=>{if(!t)return{hours:0,minutes:0,seconds:0};const e=Math.floor(t/3600),n=Math.floor(t%3600/60),o=t%60;return{hours:e,minutes:n,seconds:o}},p2=t=>{const{minutes:e,seconds:n}=m2(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(n)),o},PL=t=>{const{hours:e,minutes:n,seconds:o}=m2(t);function r(d,c,u){return(new Array(u+1).join(c)+d).slice(-u)}const a=r(n,"0",2),l=r(o,"0",2);return e>0?`${e}:${a}:${l}`:`${n}:${l}`};class fo extends K().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,onEnd:()=>{},onLoad:()=>{},onPause:()=>{},onPlay:()=>{},onSeek:()=>{},shouldPause:!1,transcript:null};static getElementOffset(e){const n=document.documentElement,o=e.getBoundingClientRect(),r=o.top+window.pageYOffset-n.clientTop,a=o.left+window.pageXOffset-n.clientLeft;return{top:r,left:a}}static timeMs(e){return Math.round(e*1e3)}mouseSeek(e){const{currentTarget:n,nativeEvent:o}=e,r=this.audio;let a=0;typeof TouchEvent<"u"&&o instanceof TouchEvent?a=o.touches[0].pageX:a=e.pageX;const l=fo.getElementOffset(n);let d=a-l.left;const c=n.offsetWidth,u=r.duration;d>c?d=c:d<1&&(d=1),!(isNaN(d/c*u)||c===0)&&(r.currentTime=d/c*u,this.props.onSeek(fo.timeMs(r.currentTime)))}keySeek(e){this.setState({isSeeking:!0},()=>{const n=this.audio,o=n.duration;n.currentTime=e<0?Math.max(n.currentTime+e,0):Math.min(n.currentTime+e,o),this.props.onSeek(fo.timeMs(n.currentTime)),this.onSeekEnd()})}componentDidMount(){ht.addChangeListener(this.handleChange)}componentDidUpdate(e,n){const r=this.props.activeIndex!=null&&this.props.itemIndex!=null&&e.activeIndex!==this.props.activeIndex&&this.props.activeIndex!==this.props.itemIndex;(ht.isPlaying&&!e.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),ht.pause()),n.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:e}=this.props;ht.pause(),ht.removeChangeListener(this.handleChange),e&&e(Rc(this.audio))}handleClickInsideAudioPlayer=e=>{e.stopPropagation(),e.preventDefault()};handleChange(){ht.playerId===this.props.id?this.audio&&(ht.isPlaying&&this.audio.paused?this.audio.play():!ht.isPlaying&&!this.audio.paused&&this.audio.pause(),this.audio.muted=ht.isMuted,this.forceUpdate()):ht.isPlaying&&(this.audio.pause(),this.forceUpdate())}render(){const{allowTabNavigation:e,id:n,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:l,mode:d,onDelete:c,onTranscriptClick:u,onTranscriptClose:m,transcript:p,item:f,side:g,refs:v}=this.props,C=ht.isPlaying&&ht.playerId===n,{currentTime:y,playerExpanded:b}=this.state,x=this?.audio?.duration??0,L=Math.round(x-y),E=PL(L),S=p2(L),N=p2(y),A=e?0:-1,k=!o,{a11yGroupAudioPlayer:R,a11yMediaPlay:W,a11yMediaPause:D,a11yMediaSeek:w}=a??{},Z=qs({overlay:r,collapsed:r&&!b,expanded:!r||b}),B=o||d==="edit"?"Collapse audio player":a?.audioCollapsePlayer,F=o||d==="edit"?"Expand audio player":a?.audioExpandPlayer,G=b?B:F;return(0,s.jsx)("div",{className:qs("container"),onClick:this.handleClickInsideAudioPlayer,children:(0,s.jsxs)("div",{className:Z,id:n,children:[k&&(0,s.jsx)("div",{className:qs("waveform"),children:r?(0,s.jsx)(Fa,{message:G,children:(0,s.jsx)("button",{"aria-label":G,className:qs("waveform-icon"),onClick:this.onTogglePlayer,type:"button",children:(0,s.jsx)(u2,{animating:C})})}):(0,s.jsx)("div",{className:qs("waveform-icon",{disabled:!0}),children:(0,s.jsx)(u2,{animating:C})})}),(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":R,className:qs("housing"),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:Ma,tabIndex:A,children:[(0,s.jsx)("button",{"aria-label":C?D:W,className:qs("play"),onClick:this.onPlayClick,ref:ue=>{this.play=ue},tabIndex:A,type:"button",children:C?(0,s.jsx)(yt,{className:qs("play-icon"),name:"pause-solid"}):(0,s.jsx)(yt,{className:qs("play-icon"),name:"play-solid"})}),(0,s.jsxs)("div",{className:qs("tracker"),onMouseDown:this.onMouseSeekStart.bind(this),onMouseMove:this.onSeek.bind(this),onMouseUp:this.onSeekEnd.bind(this),onTouchEnd:this.onSeekEnd.bind(this),onTouchMove:this.onSeek.bind(this),onTouchStart:this.onMouseSeekStart.bind(this),children:[(0,s.jsx)("div",{className:qs("tracker-bar"),ref:ue=>{this.trackerbar=ue}}),(0,s.jsx)("div",{"aria-label":w,"aria-live":"polite","aria-valuemax":x,"aria-valuemin":0,"aria-valuenow":y,"aria-valuetext":N,className:qs("tracker-handle"),ref:ue=>{this.trackerhandle=ue},role:"slider",tabIndex:A,children:(0,s.jsx)(yt,{className:qs("tracker-handle-icon"),name:"circle-solid"})})]}),(0,s.jsx)("div",{"aria-label":S,className:qs("timer"),role:"timer",children:E})]}),(0,s.jsx)("audio",{className:qs("audio-element"),"data-testid":"audio-player-element",onEnded:this.onEnded.bind(this),onLoadedMetadata:this.onLoadedMetadata.bind(this),onPause:this.onAudioPlayPause,onPlay:this.onAudioPlayPause,onTimeUpdate:this.onTimeUpdate.bind(this),ref:ue=>{this.audio=ue},src:(0,Pe.o1)(`${l}`)},"audio-"+n),(0,s.jsx)(Ra,{featureFlags:["rise-audio-release"],children:(0,s.jsx)(Ra.On,{children:d==="readonly"||o?(0,s.jsx)(bL,{inert:!this.state.playerExpanded,onDelete:c,onPlaybackChange:ue=>{this.setState({playbackSpeed:ue})},onTranscriptClick:u,onTranscriptClose:m,playbackSpeed:this.state.playbackSpeed,transcript:p}):(0,s.jsx)(AL,{inert:!this.state.playerExpanded,item:f,onPlaybackChange:ue=>{this.setState({playbackSpeed:ue})},onTranscriptClick:u,onTranscriptClose:m,playbackSpeed:this.state.playbackSpeed,refs:v,side:g,transcript:p})})})]},`player-${n}`)})}onKeyDown(e){const o=eo(this.onPlayClick),r=eo(()=>this.keySeek(5)),a=eo(()=>this.keySeek(-5)),l=p=>p.target===this.play,d=p=>p.target===this.trackerhandle,c=As()([[Xo,o],[tc,Sa],[sc,Sa]]),u=As()([[Xo,Sa],[tc,r],[sc,a]]),m=As()([[Xo,o],[tc,r],[sc,a]]);As()([[l,c],[d,u],[wo(),m]])(e)}onPlayClick(e){e.stopPropagation(),e.preventDefault();const{audioVideoPlayhead:n}=this.props,{duration:o,paused:r}=this.audio;r&&n&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=o*n/100||0),r?this.audio.play():this.audio.pause()}onAudioPlayPause=e=>{const{dispatch:n,id:o,onPause:r,onPlay:a,recordMediaPlayheadPosition:l,transcript:d}=this.props,{paused:c,currentTime:u}=e.currentTarget;c?c&&ht.playerId===o&&(ht.isPlaying=!1,r(fo.timeMs(u)),l&&l(Rc(this.audio))):(ht.playerId=o,ht.isPlaying=!0,a(fo.timeMs(u)),n(al(d))),this.setState({shouldLoadPlayheadPosition:!1})};onMouseSeekStart(e){this.setState({isSeeking:!0}),this.mouseSeek(e)}onSeekEnd(){const{id:e,onPlay:n,recordMediaPlayheadPosition:o}=this.props,{currentTime:r}=this.audio;this.setState({isSeeking:!1}),ht.isPlaying&&ht.playerId!==e&&(ht.isPlaying=!1),ht.playerId=e,n(fo.timeMs(r)),o&&o(Rc(this.audio))}onSeek(e){this.state.isSeeking&&this.mouseSeek(e)}onLoadedMetadata(e){const n=e.target;this.setState({currentTime:n.currentTime});const{onLoad:o}=this.props;o()}onEnded(e){const n=e.target;this.audio.currentTime=0,this.setState({currentTime:n.currentTime}),ht.isPlaying=!1,this.props.onEnd(fo.timeMs(n.currentTime)),this.forceUpdate()}onTimeUpdate(e){const n=e.target,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=n,l=Math.floor(r);(0,Pe.ih)();const d=r/a*100;this.trackerbar.style.width=d+"%",this.trackerhandle.style.left=d+"%",this.setState({currentTime:r}),l%5===0&&this.state.playheadPositionSaveThrottle!==l&&o&&(o(Rc(n)),this.setState({playheadPositionSaveThrottle:l}))}onTogglePlayer(e){const{playerExpanded:n}=this.state;this.setState({playerExpanded:!n}),e.preventDefault(),e.stopPropagation()}currentTime(){return fo.timeMs(this.audio.currentTime)}}const RL=(0,Ns.Ls)()(fo);var ML=i(20817),kL=i.n(ML),OL=i(80029),wL=i.n(OL);const zo=nt()("status"),DL=wL()(zo("uploading"),zo("processing")),zK=zo("canceled"),tu=zo("complete"),f2=zo("cropping"),g2=zo("crushing"),v2=zo("uploading"),C2=zo("processing"),x2=zo("errored"),y2=kL()([f2,g2,x2,C2,v2]),BL=Re()(qn.UA,st()(DL));function FK(t){return Math.round(t.loaded*100/t.total)}const UK=ko()(ts()(["file","name"]),qe()("",["opts","filename"])),VK=Mr()(qn.UA,BL),Mc=t=>z()("upload-progress__wrapper",t),b2=(0,h.createContext)(null);function E2(){return(0,h.useContext)(b2)}const WK=b2.Provider;function HL(t){function e(n){const o=E2();return o?(0,s.jsx)(t,{...n,getUpload:o.getUpload,handleUploadDismiss:o.handleUploadDismiss}):(0,s.jsx)(t,{...n})}return e.displayName=`withUploadStatusContext(${t.displayName||t.name})`,e}const kc=({onClick:t,text:e})=>(0,s.jsxs)(po.ArcButton,{onClick:t,size:"sm",type:"button",variant:"tertiary",children:[e,(0,s.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),su=20,il=su/2,nu=il-2,L2=+(2*Math.PI*nu).toFixed(3),zL=t=>L2*(100-t)/100;function T2({classes:t,percent:e}){return(0,s.jsxs)("svg",{className:z()("upload-progress__pie",t),focusable:"false",height:`${su}px`,width:`${su}px`,children:[(0,s.jsx)("circle",{className:"upload-progress__border",cx:il,cy:il,r:nu}),(0,s.jsx)("circle",{className:"upload-progress__progress",cx:il,cy:il,r:nu,strokeDasharray:L2,strokeDashoffset:zL(e)})]})}const FL=({text:t})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(T2,{classes:"upload-progress__pie--processing",percent:70}),(0,s.jsx)("div",{className:"upload-progress__text",children:t})]}),UL=({percentage:t,text:e="Uploading\u2026"})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(T2,{percent:t}),(0,s.jsx)("div",{className:"upload-progress__text",children:e})]}),ou=({classes:t,jobId:e,onCancel:n,text:o})=>(0,s.jsxs)("div",{className:Mc(t),children:[(0,s.jsx)(FL,{text:o}),e&&(0,s.jsx)(kc,{onClick:n,text:"Cancel"})]}),VL=({classes:t,onCancel:e,percentage:n,text:o})=>(0,s.jsxs)("div",{className:Mc(t),children:[(0,s.jsx)(UL,{percentage:n,text:o}),(0,s.jsx)(kc,{onClick:e,text:"Cancel"})]}),WL=({message:t="Error"})=>(0,s.jsxs)("div",{className:"upload-error",children:[(0,s.jsx)(po.ArcIcon,{icon:"fa-regular fa-circle-exclamation"}),(0,s.jsx)("div",{className:"upload-error__text",children:t})]}),$L=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:Mc(t),children:[(0,s.jsx)(WL,{message:e}),(0,s.jsx)(kc,{onClick:n,text:"Dismiss"})]}),KL=({message:t="Success"})=>(0,s.jsxs)("div",{className:"upload-success",children:[(0,s.jsx)(po.ArcIcon,{icon:"fa-regular fa-check"}),(0,s.jsx)("div",{className:"upload-success__text",children:t})]}),GL=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:Mc(t),children:[(0,s.jsx)(KL,{message:e}),n?(0,s.jsx)(kc,{onClick:n,text:"Dismiss"}):null]}),QL=t=>{const{classes:e,data:n={},errorMessage:o,jobId:r,progress:a,onCancelUpload:l,onCancelProcess:d,onErrorDismiss:c,onSuccessDismiss:u,successMessage:m,uploadType:p}=t;return x2(t)?(0,s.jsx)($L,{classes:e,message:o||n?.message,onClick:c}):v2(t)?(0,s.jsx)(VL,{classes:e,onCancel:l,percentage:a,text:`Uploading ${p}\u2026`}):C2(t)?(0,s.jsx)(ou,{classes:e,jobId:r,onCancel:d,text:`Processing ${p}\u2026`}):g2(t)?(0,s.jsx)(ou,{classes:e,onCancel:d,text:`Uploading ${p}\u2026`}):f2(t)?(0,s.jsx)(ou,{classes:e,onCancel:d,text:"Cropping image\u2026"}):tu(t)&&m?(0,s.jsx)(GL,{classes:e,message:m,onClick:u}):(0,s.jsx)("div",{})},ru=ae("audio-player"),ZL=ru("upload-state");function j2({uploadId:t,onAIUploadFinish:e,...n}){const o=E2(),{mode:r}=Sc();let a=null;o&&t&&(a=o.getUpload(t));const l=(0,h.useMemo)(()=>a&&a.mediaType==="audio"&&(y2(a)||tu(a)&&!n.mediaSrc),[a,n.mediaSrc]),d=(0,_t.A)(l);if((0,h.useEffect)(()=>{!l&&d&&e?.()},[l,d,e]),l){const{jobId:c,status:u,progress:m,data:p}=a,f=v=>()=>o?.handleUploadDismiss(v,a),g=ru({overlay:n.isOverlayAudio,static:n.isOverlayAudio});return(0,s.jsx)("div",{className:ru("container"),children:(0,s.jsx)("div",{className:g,children:(0,s.jsx)(QL,{classes:ZL,errorMessage:p?.message,jobId:c,onCancelProcess:f("process"),onCancelUpload:f("upload"),onErrorDismiss:f("error"),progress:m,status:u,successMessage:"Processing\u2026",uploadType:"audio"})})})}return(0,s.jsx)(RL,{...n,mode:r})}var YL=i(96865),_L=i.n(YL),XL=i(29209),JL=i.n(XL);const Va=K().memo(({align:t,alt:e,allowTabNavigation:n=!0,disableZoom:o,height:r,l10nId:a,labels:l,maxHeight:d=380,onLoad:c,shouldFillWidth:u,src:m,width:p})=>{const f=(0,Zs.Ll)(e),g=n&&!o,v=z()("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 y=(0,s.jsx)(bn,{alt:f,className:v,"data-l10n-id":a,height:r,onLoad:c,src:m,style:C,width:p});return g&&(y=(0,s.jsx)(e2,{a11yNameButtonUnzoom:l?.a11yUnzoomImage,a11yNameButtonZoom:l?.a11yZoomImage,children:y})),(0,s.jsx)("div",{className:"img",children:y})});var qL=i(90960),eT=i(883),au=i.n(eT);const tT=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,sT=t=>typeof t=="string"&&t.replace(tT,""),Or=au()(sT,qL.J);var nT=i(44336),Oc=i.n(nT),oT=i(61319),rT=i.n(oT);const aT=[{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(Pe.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."}]}],iT=t=>{let e={};return e[t.name]=t.text,e},lT=rs()(ws()(et()("labels")),Oc(),ws()(iT),rT())(aT);var XK=i(30772),cT=i(70117),dT=i.n(cT);const{validIframe:I2,validUrl:S2}=Ze.yG,N2=nn()("type","embed"),uT=dT()("type","embedType"),hT=o0()(/http:/i,"https:"),mT=t=>({embedType:"iframe",originalUrl:t,src:t}),pT=t=>ll(t.embed),ll=t=>t?.embedType||t?.type,JK=t=>cond([[test(I2),compose(N2,mT,hT)],[test(S2),composeP(N2,uT,t)]]),qK=ko()(Re()(w0()(I2),Xn.R9),w0()(S2)),eG="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var wc=i(59288);const A2=t=>{const e=(0,Pe._$)("CDN_USER_CONTENT_URI"),n=new RegExp((0,Pe._$)("CDN_URI"),"g");return(0,Pe.Hm)()?t:n.test(t)?`${e}${new URL(t).pathname}${new URL(t).search}`:t},fT=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:","")},gT=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,vT=t=>gT.test(t),CT=/^\/\//,xT=t=>t?.replace(CT,"https://"),yT=Re()(xT,Yo()(vT,fT),Yo()(Boolean,Pe.o1),Or),bT=t=>{const{paddingBottom:e,ref:n,value:o}=t;return(0,s.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:wc.useMemo(()=>({__html:o}),[o]),ref:n,style:{paddingBottom:e}})};class ET extends wc.Component{player;refIframeContainer=wc.createRef();refIframePlayer=wc.createRef();state={duration:0,isReady:!1};static get defaultProps(){const{embedReadMore:e}=lT;return{allowTabNavigation:!0,labels:{embedReadMore:e,embedViewOn:"View on"},shouldPause:!1,showMetaData:!0}}componentDidUpdate(e){!e.shouldPause&&this.props.shouldPause&&ht.isPlaying&&(this.player?.pause(),ht.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}),ht.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:e}=this.props;ht.isPlaying&&ht.playerId!==e&&(ht.isPlaying=!1),ht.playerId=e,ht.isPlaying=!0};handlePlayerUpdate=e=>{this.props.progressChanged?.({done:e.seconds/e.duration*100})};handlePlayerChange=()=>{const{id:e}=this.props;ht.playerId===e&&(ht.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(_L()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{ht.isPlaying=!1,ht.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=e=>{const n=o=>this.player.supports("method",o);return JL()(n)(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(n=>{this.player.setCurrentTime(n+e)})})};changeVolume=e=>{this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(n=>{this.player.setVolume(n+e)})};onKeyDown=e=>{const r=eo(this.togglePlay),a=eo(()=>this.keySeek(5)),l=eo(()=>this.keySeek(-5)),d=eo(()=>this.changeVolume(10)),c=eo(()=>this.changeVolume(-10));As()([[ec,r],[Aa,a],[Na,l],[Gi,d],[Qi,c]])(e)};renderProvider=()=>{const{allowTabNavigation:e,externalLinksDisabled:n,showExternalLinksModal:o,showMetaData:r,data:a}=this.props,{providerUrl:l,provider:d,favicon:c}=a;if(!(r&&l))return null;const u=Or(l),m=n&&yr(u),p=m?"":void 0,f=m?o:void 0,g=m?void 0:u,v=m?void 0:"noopener noreferrer",C=m?"button":void 0,y=m?void 0:"_blank";return(0,s.jsx)("h2",{className:"embed__provider",children:(0,s.jsxs)("a",{className:"brand--hoverColor","data-external":p,href:g,onClick:f,rel:v,role:C,tabIndex:e?0:-1,target:y,children:[(0,s.jsx)(bn,{alt:c?d:"",className:"embed__providerIcon",src:c}),(0,s.jsx)("span",{className:"embed__providerName",children:d})]})})};renderMetaData=()=>{const{allowTabNavigation:e,data:n,externalLinksDisabled:o,labels:r,showExternalLinksModal:a,showMetaData:l}=this.props,{src:d,title:c,description:u,provider:m}=n,{embedReadMore:p,embedViewOn:f}=r,g=ll(n);if(!l&&g!=="link")return null;const v=Or(d),C=o&&yr(v),y={"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,s.jsxs)("div",{className:"embed__meta__content",children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...y,children:(0,s.jsx)(Nt,{value:c})})}),(0,s.jsx)(Nt,{className:"embed__description",value:u}),(0,s.jsxs)("a",{className:"embed__readMore brand--hoverColor",...y,children:[g==="link"?`${p} ${m}`:`${f} ${m}`,(0,s.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:e,data:n,externalLinksDisabled:o,isLesson:r,labels:a,showExternalLinksModal:l,showMetaData:d}=this.props,{useRelativePath:c}=n??{},{description:u,originalUrl:m,src:p,thumbnail:f,title:g}=n,{embedLinkGroup:v,embedPlayerGroup:C,embedReadMore:y}=a,b=ll(n);if(b==="iframe"){const x=document.createElement("div");x.innerHTML=(0,Xn.R9)(p);const L=x.firstChild,E=L&&L.tagName&&L.tagName.toLowerCase()==="iframe";let S=100,N=32;if(Df(window.location.href)&&c)return(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"embed__relativeUrl--iframe",children:"Embedded iframe with a relative url"}),(0,s.jsx)("p",{className:"embed__relativeUrl--title",children:g}),(0,s.jsx)("p",{className:"embed__relativeUrl--url",children:m})]});if(E){const w=L.width.match(/%/),Z=parseInt(L.width);L.src=Or(L.src),S=w?700*(Z/100):Z||16,N=parseInt(L.height)}const A=N/S,k=E?`${A*100}%`:"3rem";if(L.src.includes("typeform")){const w=new window.URL(L.src);w.searchParams.append("disable-auto-focus","true"),L.src=w.toString()}if(L.src.includes("forms.office.com")){const w=new window.URL(L.src);w.searchParams.append("embed","true"),L.src=w.toString()}const D=E?L.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":C,className:"embed",role:Ma,children:[c&&(0,s.jsx)("div",{className:"embed__title embed--iframe__title",children:g}),(0,s.jsx)(bT,{paddingBottom:k,ref:this.refIframeContainer,value:D})]})}else if(r){const x=c?p:Or(p),L=o&&yr(x),E=L?"":void 0,S=L?l:void 0,N=L?void 0:x,A=L?void 0:"noopener noreferrer",k=L?"button":void 0,R=L?void 0:"_blank";if(c){const W={"data-external":L?"":void 0,href:x,onClick:L?l:void 0,rel:L?void 0:"noopener noreferrer",role:L?"button":void 0,tabIndex:e?0:-1,target:L?void 0:"_blank"};return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":a?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:Ma,children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...W,children:(0,s.jsx)(Nt,{value:g})})}),["link","photo"].includes(b)?(0,s.jsxs)("a",{className:"embed__relativeUrl--url","data-external":E,href:N,onClick:S,rel:A,role:k,tabIndex:e?0:-1,target:R,children:[x,b==="photo"?(0,s.jsx)("div",{className:"embed__relativeUrl--image",children:(0,s.jsx)(bn,{alt:f?g:"",className:"embed__img",src:x})}):null]}):this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:b})]})}return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":a?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:Ma,children:[this.renderProvider(),["link","photo"].includes(b)?(0,s.jsx)("a",{"data-external":E,href:N,onClick:S,rel:A,role:k,tabIndex:e?0:-1,target:R,children:(0,s.jsx)(bn,{alt:f?g:"",className:"embed__img",src:A2(f)})}):this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:b}),this.renderMetaData()]})}else if(b==="link"){const x=c?p:Or(p),L=c||o&&yr(x),E=L?"":void 0,S=L?l:void 0,N=L?void 0:x,A=L?void 0:"noopener noreferrer",k=L?"button":void 0,R=L?void 0:"_blank";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":v,className:"embed embed--link brand--linkColor",role:Ma,children:[(0,s.jsx)(Nt,{className:"embed__title",value:g}),(0,s.jsx)(Nt,{className:"embed__description",value:u}),(0,s.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":E,href:N,onClick:S,rel:A,role:k,target:R,children:y})]})}else return(0,s.jsxs)("div",{className:"embed embed--media",children:[d?(0,s.jsx)(Nt,{"aria-hidden":!e,className:"embed__title",value:g}):null,this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:b})]})}renderEmbedIframe=e=>{const{allowTabNavigation:n,labels:o,src:r,thumbnail:a,title:l,type:d}=e,{useRelativePath:c}=this.props.data??{};if(d==="photo")return(0,s.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,s.jsx)(Va,{allowTabNavigation:n,labels:o,src:A2(a)})});{const u=on.isIe11||on.isEdge,m=z()("embed__media-wrap",{"embed__media-wrap--ms_browser":u});return(0,s.jsxs)("figure",{"aria-hidden":!n,"aria-label":o?.embedPlayerGroup,className:m,onKeyDown:this.onKeyDown,ref:this.refIframeContainer,tabIndex:n?0:-1,children:[(0,s.jsx)("meta",{content:"origin",name:"referrer"}),(0,s.jsx)("iframe",{allowFullScreen:!0,className:"embed__media",frameBorder:"0",inert:n?void 0:!0,loading:"lazy",onLoad:this.setupPlayer,ref:this.refIframePlayer,scrolling:c?"yes":"no",src:c?r:yT(r),title:l})]})}}}const LT=Kl()({externalLinksDisabled:ts()(["course","externalLinksDisabled"])}),TT={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})},P2=(0,Ns.Ls)(LT,TT)(ET);var jT=i(57094),IT=i.n(jT),ST=i(7656),R2=i(94050);const NT=R2.default.getComponent("SeekBar");class AT extends NT{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 n=this.player();let o=this.calculateDistance(e)*n.duration();o>this.maxTime?(this.trigger("showRestrictSeekTooltip",!0),o=this.maxTime):this.trigger("showRestrictSeekTooltip",!1),o===n.duration()&&(o=o-.1),n.currentTime(o)}}R2.default.registerComponent("SeekBar",AT);var PT=i(16500),RT=i(22973),MT=i(65664),kT=i(76700),OT=i(7211),wT=i(80647),DT=i(48034),BT=i(18058),HT=i(70485),zT=i(51327),FT=i(57269),UT=i(85961),VT=i(19022),WT=i(60158),$T=i(99301),KT=i(34441);const GT={ar:PT,cs:RT,de:MT,en:kT,es:OT,fr:wT,it:DT,ja:BT,nl:HT,pl:zT,sk:FT,tr:UT,"pt-BR":VT,"pt-PT":WT,"zh-CN":$T,"zh-TW":KT},QT=-5,iu="seek-tooltip--hidden",ZT=()=>{const t=document.createElement("div");return t.classList.add("seek-tooltip"),t.classList.add(iu),t},Dc=t=>Math.round(t.currentTime()/t.duration()*100)||0;class YT extends K().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;jm(this.container.getElementsByTagName("button")).forEach(o=>{Rm(o,ka(e))}),O0({element:this.container,selector:".vjs-progress-holder",tabIndex:ka(e)}),O0({element:this.container,selector:".vjs-volume-bar",tabIndex:ka(e)}),O0({element:this.container,selector:".vjs-volume-menu-button",tabIndex:ka(e)})}componentDidUpdate(e){this.updateContentFocusability(),!e.shouldPause&&this.props.shouldPause&&ht&&(this.video.player.pause(),ht.isPlaying=!1)}setMaxTime(e){this.maxTime=e,this.video.player.controlBar.progressControl.seekBar.setMaxTime(e)}componentDidMount(){const{player:e}=this.video,{audioVideoPlayhead:n,canRestrictSeek:o,currentTime:r,id:a,onFullScreenChange:l,onLoad:d,percentComplete:c,progressChanged:u,recordMediaPlayheadPosition:m,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"),c&&c<100&&p!=="customVideo"&&(e.play(),e.currentTime(r),e.pause()),e.on("timeupdate",this.videoUpdate=()=>{(0,Pe.ih)();const f=e.currentTime(),g=e.duration(),v=e.paused(),C=Math.floor(f),y=g*n/100||0;v&&!this.wasPaused&&f>this.maxTime&&(!o||!this.seeking)&&this.setMaxTime(f),o&&this.updateSeekTooltip();const b=e.ended()&&!this.seeking,x=!v&&!this.seeking;if(!o||b||x){f>this.maxTime&&(!o||!this.seeking)&&this.setMaxTime(f);let E=f/g*100;b&&(E=100),u&&u({currentTime:f,percentComplete:E}),C%15===0&&this.state.playheadPositionSaveThrottle!==C&&m&&(m(Dc(e)),this.setState({playheadPositionSaveThrottle:C}))}else o&&!this.restrictingSeek&&f>this.maxTime&&y<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=()=>{ht.isPlaying&&ht.playerId!==a&&(ht.isPlaying=!1),ht.playerId=a,ht.isPlaying=!0,this.state.playbackStarted===!1&&this.setState({playbackStarted:!0}),n&&this.state.shouldLoadPlayheadPosition&&e.currentTime(e.duration()*n/100||0),this.setState({shouldLoadPlayheadPosition:!1})}),e.on("pause",this.videoPaused=()=>{ht.playerId===a&&(ht.isPlaying=!1),m&&m(Dc(e))}),e.on("seeking",this.videoSeeking=()=>{this.seeking=!0}),e.on("seeked",this.videoSeeked=()=>{this.restrictingSeek=!1,this.seekTimeout&&clearTimeout(this.seekTimeout),m&&m(Dc(e)),this.seekTimeout=setTimeout(()=>{this.seeking=!1},1e3)}),e.on("fullscreenchange",l),e.on("keyup",Am),e.on("contextmenu",f=>{f.preventDefault()}),e.on("ratechange",this.playbackRatesChanged=()=>{e.controlBar.playbackRateMenuButton.childNameIndex_.PlaybackRateMenuButton.controlTextEl_.innerText=`Playback Rate ${e.playbackRate()}x`}),ht.addChangeListener(this.onMediaStoreChange)}componentWillUnmount(){const{onFullScreenChange:e,recordMediaPlayheadPosition:n}=this.props,{player:o}=this.video;n&&n(Dc(o)),ht.isPlaying=!1,ht.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:n}}=this.props,{isReady:o,showRestrictSeekTooltip:r,playbackStarted:a}=this.state,l=z()("video-a11y video-wrapper",{"video-wrapper--visible":o,"video-wrapper--restrict-seek":r,"video-playback-started":a});return(0,s.jsx)("div",{"aria-hidden":!e,"aria-label":n,className:"figure-container",onKeyDown:this.onKeyDown.bind(this),ref:d=>{this.container=d},role:"region",children:(0,s.jsx)("div",{className:l,children:this.renderPlayer()})})}renderCaptionTrack(e){const{code:n,id:o,key:r,name:a,url:l}=e,d=l||(0,Pe.o1)(r),c=JT(this.props.locale??"en"),u=a||c.of(n);return(0,s.jsx)("track",{kind:"captions",label:u,src:d,srcLang:n},o)}renderPlayer(){const{autoplay:e,canAdjustPlaybackSpeed:n,captionUID:o,captions:r,id:a,subtitle:l,type:d}=this.props,c=d==="customVideo",m=c?(E=>new URL(E).pathname.slice(1))(this.props.src):this.props.src,p=c?this.props.poster:(0,Pe.o1)(this.props.poster),f=c?this.props.src:(0,Pe.o1)(this.props.src),g=c?"application/x-mpegURL":void 0,v=n?[.25,.5,.75,1,1.25,1.5,1.75,2]:void 0,C=on.isLocalFilesystem?{}:{crossOrigin:"anonymous"},y={autoplay:e,controlBar:{children:{playToggle:!0,progressControl:!0,remainingTimeDisplay:!0,playbackRateMenuButton:!0,captionsButton:!0,pictureInPictureToggle:!0,fullscreenToggle:!0,volumePanel:{inline:!0}}},controls:!0,languages:GT,playbackRates:v,preload:"none",textTrackSettings:!1};document.pictureInPictureEnabled||delete y.controlBar.children.pictureInPictureToggle;const b={options:y,poster:p,ref:E=>{this.video=E},...C},x=(0,s.jsx)("track",{kind:"captions",label:"English",src:c?l:(0,Pe.o1)(l),srcLang:"en"}),L=`${f}?v=1`;return(0,h.createElement)(ST.A,{...b,key:`${a}-${m}-${o}`},(0,s.jsx)("source",{src:L,type:g}),!r&&l&&x,r&&r.map(this.renderCaptionTrack))}onKeyDown(e){if(XT(e))return;const n=5,o=eo(this.togglePlay.bind(this)),r=this.toggleFullScreen.bind(this),a=eo(()=>this.keySeek(n)),l=eo(()=>this.keySeek(-n));As()([[ec,o],[Ir,r],[tc,a],[sc,l]])(e)}togglePlay(){const{player:e}=this.video;e.userActive(!0),e.paused()?e.play():e.pause()}toggleFullScreen(){if(on.isIe11)return;const{player:e}=this.video;e.isFullscreen()?e.exitFullscreen():e.requestFullscreen()}changeVolume(e){const{player:n}=this.video,o=n.volume();n.userActive(!0),n.volume(o+e)}keySeek(e){const{player:n}=this.video,{canRestrictSeek:o}=this.props;n.userActive(!0);const r=n.currentTime(),a=n.duration();n.paused()&&!r&&!a&&n.play();let d=r+e;o&&(d>this.maxTime?(d=this.maxTime,this.showRestrictSeekTooltip(!0)):this.showRestrictSeekTooltip(!1));const c=e<0?Math.max(d,0):Math.min(d,a);c!==r&&n.currentTime(c)}configureSeekDiv(){const{player:e}=this.video,n=e.controlBar,o=n.el();this.progressBarElement=n.progressControl.seekBar.playProgressBar.el(),this.seekDiv=ZT(),o.appendChild(this.seekDiv),(0,fe.createRoot)(this.seekDiv).render((0,s.jsx)(B6,{}))}showRestrictSeekTooltip(e){const{canRestrictSeek:n}=this.props;!n||!this.seekDiv||e!==this.state.showRestrictSeekTooltip&&(e?this.seekDiv.classList.remove(iu):this.seekDiv.classList.add(iu),this.setState({showRestrictSeekTooltip:e}))}updateSeekTooltip(){const{player:e}=this.video,n=this.progressBarElement.getBoundingClientRect(),o=e.el().getBoundingClientRect(),r=this.seekDiv.getBoundingClientRect().width,a=n.left-o.left,l=r/2,d=a+n.width-l;this.seekDiv.style.left=`${d}px`,this.seekDiv.style.top=`${QT}px`}getMaxTime(){return this.maxTime}onMediaStoreChange(){if(!this.video)return;const{id:e}=this.props,{player:n}=this.video;ht.playerId===e&&(ht.isPlaying?n.play():n.pause())}}function _T(t){const e=n=>{const o=(0,Ie.DX)();return(0,s.jsx)(t,{...n,locale:o?.locale})};return e.displayName=`withLocale(${t.displayName??t.name})`,e}const M2=_T(YT),XT=t=>{const e=t.target.className,n=Mh(t)&&e.includes("vjs-volume-bar");return Xo(t)&&(e.includes("vjs-control")||e.includes("vjs-big-play-button"))||n},JT=IT()(t=>new Intl.DisplayNames([t],{type:"language",fallback:"code"}));var k2=i(59288);function qt(t){const e=k2.forwardRef((n,o)=>{const r=(0,xt.gY)();return(0,s.jsx)(t,{...n,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookup(${t.displayName||t.name})`,e}function O2(t){const e=k2.forwardRef((n,o)=>{const r=(0,xt.gY)(),a=(0,xt.NB)();return(0,s.jsx)(t,{...n,getL10nRecursive:a,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookupRecursive(${t.displayName||t.name})`,e}var qT=i(38576),Bc=i.n(qT),ej=i(11437),tj=i.n(ej);const sj=t=>({...t,courseId:t.courseId||ts()(["course","id"],t)}),nj=t=>({...t,lessonId:t.lessonId||ts()(["lesson","id"],t)}),oj=({id:t,courseId:e,lessonId:n,refs:o})=>t||(o&&n?`${n}-${o}`:n||e),lu=Re()(oj,nj,sj),sG=rs()(Yl()(et()("id"),Bc()("id",lu)),ko()(tj()(et(),[et()("id"),et()("uploads")]),vn()(["id"])),Bc()("isUploading",nt()("status","uploading")));var rj=i(59288);const cu=t=>!!(t&&("key"in t&&t.key||"src"in t&&t.src)),Hc=t=>cu(t)&&!t.isProcessing&&!t.error,aj=(t,e)=>e?.mediaType==="audio"?!!t&&(cu(t)||y2(e)||tu(e)&&!cu(t)):Hc(t),ij=t=>Yo()(At()(!!t),Z0()(`-${t}`));class lj extends rj.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:n,refs:o}=this.props,r=e.items?.length===1?e.items[0]:void 0,a=this.props.item??r;if(e&&a&&n)return n({blockId:e.id,item:a,refs:o})}renderAudio(e,n){const{activeIndex:o,allowTabNavigation:r,index:a,isOverlayAudio:l,item:d,itemIndex:c,labels:u,lessonNumber:m,pauseOnLoad:p,shouldPause:f,refs:g,side:v}=this.props,C=`audio-${m}-${a}`;return(0,s.jsx)(j2,{activeIndex:o,allowTabNavigation:r,id:C,isOverlayAudio:l,item:d,itemIndex:c,labels:u,mediaSrc:e.key,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript,refs:g,shouldPause:e.pause||p||f,side:v,transcript:e.transcript,uploadId:n},C)}renderImage(e){const{allowTabNavigation:n,defaultAlign:o,imageMaxHeight:r,index:a,labels:l,onLoad:d,opts:c}=this.props,u=e?.align??o,m=e?.dimensions,p=`image-${a}`,{disableZoom:f}=c;return(0,s.jsx)(Va,{align:u,allowTabNavigation:n,alt:e.alt,disableZoom:f,height:m?.height||m?.originalHeight,labels:l,maxHeight:r,onLoad:d,shouldFillWidth:e.fillWidth,src:(0,Yt.ME)(e),width:m?.width||m?.originalWidth},p)}renderVideo(e){const{allowTabNavigation:n,blockId:o,lessonNumber:r,index:a,labels:l,onFullScreenChange:d,enableVideoPlaybackSpeed:c,pauseOnLoad:u,shouldPause:m}=this.props,p=ij(o)(`video-${r}-${a}`);return(0,s.jsx)(M2,{allowTabNavigation:n,canAdjustPlaybackSpeed:c,captions:e.captions,captionUID:e.captionUID,id:p,labels:l,onFullScreenChange:d,poster:e.poster,shouldPause:e.pause||u||m,src:e.key},p)}renderEmbed(e){const{allowTabNavigation:n,embedClass:o,labels:r,opts:a,shouldPause:l}=this.props,{fullEmbed:d,showMetaData:c=!0}=a,u=`embed-${this.props.index}`;return(0,s.jsx)("div",{className:o,children:(0,s.jsx)(P2,{allowTabNavigation:n,data:e,id:u,isLesson:d,labels:r,shouldPause:e.pause||l,showMetaData:c},u)})}render(){const{blockId:e,hasPadding:n,item:o,lessonId:r,refs:a=`items:${e??""}/items:${o&&"id"in o?o.id:""}`,renderMediaType:l}=this.props,d=this.props.media,c=z()({"media-group":n}),{audio:u,embed:m,image:p,video:f}=this.props.getL10nValue(d)??{},g=lu({lessonId:r,refs:a}),v=this.props.getUpload?this.props.getUpload(g):null;return(0,s.jsxs)("div",{className:c,"data-l10n-id":(0,Rt.pP)(d),children:[(!l||l==="audio")&&aj(u,v)&&this.renderAudio(u,g),(!l||l==="image")&&Hc(p)&&this.renderImage(p),(!l||l==="video")&&Hc(f)&&this.renderVideo(f),(!l||l==="embed")&&Hc(m)&&this.renderEmbed(m)]})}}const dn=(0,Ns.Ls)()(HL(gc(l2(qt(lj)))));function Jo(t,e,n,o,r){const l=e==="bottom"&&n||!o&&e!=="top"?"bottom":"top",d={renderOrder:["text"],isOverlayAudio:!1};if(!t)return d;const c=!!t.audio,u=!!t.image,m=!!t.video,p=!!t.embed,f=u||m,g=()=>{const y=u?"image":"video",b={top:c?["audio","text",y]:["text",y],bottom:c?["text","audio",y]:["text",y],legacyTop:c?["audio",y,"text"]:[y,"text"],legacyBottom:c?[y,"text","audio"]:[y,"text"]};return o&&r==="timeline"&&!e?b.top:o&&r!=="timeline"?l==="bottom"?b.legacyBottom:b.legacyTop:l==="bottom"?b.bottom:b.top},v=()=>{const y={top:c?["audio","text","embed"]:["text","embed"],bottom:c?["text","embed","audio"]:["text","embed"],legacyTop:c?["audio","embed","text"]:["embed","text"],legacyBottom:c?["embed","text","audio"]:["embed","text"]};return o&&r==="timeline"&&!e?y.legacyTop:o&&r!=="timeline"?l==="bottom"?y.legacyBottom:y.legacyTop:l==="bottom"?y.bottom:y.top},C=()=>l==="bottom"?["text","audio"]:["audio","text"];return c&&!f&&!p?{...d,renderOrder:C()}:f&&!c&&!p?{...d,renderOrder:g()}:p&&!c&&!f?{...d,renderOrder:v()}:c&&f&&!p?r==="labeled-graphic"||l==="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}:c&&p&&!f?{...d,renderOrder:v(),audioOnlyMedia:{audio:t.audio},embedOnlyMedia:{embed:t.embed}}:d}var cj=i(59288);const go=ae("block-text"),dj=class extends cj.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,s.jsx)(Nt,{value:e})}renderText(t){const{labels:e,takingSnapshot:n,variant:o}=this.props,r=o?.includes("column"),a="paragraph"in t?t.paragraph:void 0;return r||n?(0,s.jsx)(GE,{item:t,labels:e,children:(0,s.jsx)(ps,{value:a||""})}):(0,s.jsx)(ps,{className:go("col"),value:a||""})}render(){const{blockId:t,columns:e,defaultBackgroundColor:n,hasAudioExpansionFlag:o,heading:r,isLearner:a,items:l,labels:d,lessonId:c,media:u,settings:m,type:p,variant:f,renderText:g=this.renderTextDelegate,renderHeading:v=this.renderHeadingDelegate,getL10nValue:C}=this.props,y=C(u),b=Object.keys(y?.audio??{}).length>0,{audioPosition:x,entranceAnimation:L,cellPadding:E=1.5,tableWidth:S=76,textPadding:N=.8,textWidth:A=76}=m,k=f==="table",R=e===1,W=e>1,D=k?S:A,w=!k&&R,Z=k,B=IE(E),F=SE(N),G=$0(D),ue=go({[p]:!w&&!Z||W,[`${p}-custom-width`]:!W,[`${p}-custom-width-table-${G}`]:Z,[`${p}-custom-width-text-${G}`]:w,[`heading-custom-text-padding-${F}`]:w,[`${p}-custom-cell-padding-${B}`]:Z,"no-animation":!L}),ce=e>2?go("container-wide"):go("container",{authoring:!a}),le=this.getHeadingComponent(),Se=C(Array.isArray(u)?{}:u),Oe=Jo(Se,x,o);return(0,s.jsx)(Ft,{className:ue.toString(),defaultBackgroundColor:n,children:(0,s.jsxs)("div",{className:ce,"data-block-id":t,"data-block-text":"",children:[(0,s.jsx)("div",{className:go("row"),children:r!==""?l.slice(0,1).map((We,ze)=>(0,s.jsx)("div",{className:go("col"),children:(0,s.jsx)("div",{className:go("heading"),children:(0,s.jsx)(le,{children:v(We)})})},"id"in We?We.id:ze)):null}),Oe.renderOrder.map((We,ze)=>{if(We==="text")return(0,s.jsx)("div",{className:go("row"),children:p!=="heading"?l.slice(0,e).map((Ve,it)=>(0,s.jsx)(h.Fragment,{children:g(Ve)},"id"in Ve?Ve.id:it)):null},`text-${ze}`);if(We==="audio"&&b){const Ve=Oe.renderOrder.indexOf("audio")<Oe.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:go("row",{media:!0,top:Ve,bottom:!Ve,hasHeading:f==="heading paragraph"||f==="subheading paragraph"}),children:(0,s.jsx)("div",{className:go("col",{media:!0}),children:(0,s.jsx)(dn,{blockId:t,hasPadding:!1,index:t,item:{id:t,media:u},labels:d,lessonId:c,media:u,refs:`items:${t}`})})},`audio-${ze}`)}})]})})}},qo=qt(dj),uj=qo,hj=t=>(0,s.jsx)(qo,{columns:2,type:"twocol",...t}),mj=t=>(0,s.jsx)(qo,{columns:3,type:"threecol",...t}),pj=t=>(0,s.jsx)(qo,{columns:4,type:"fourcol",...t}),fj=t=>(0,s.jsx)(qo,{heading:"heading",type:"heading",...t}),gj=t=>(0,s.jsx)(qo,{heading:"subheading",type:"heading",...t}),vj=t=>(0,s.jsx)(qo,{heading:"heading",...t}),Cj=t=>(0,s.jsx)(qo,{heading:"subheading",...t});var zc=i(59288);const xj="#page-wrap",yj={fadeInGrow:"scale(0.95)",fadeInLeft:"translateX(-50px)",fadeInLeftSmall:"translateX(-25px)",fadeInRight:"translateX(50px)",fadeInUp:"translateY(25px)"},bj=t=>{const{afterAnimatedIn:e,animateIn:n="fadeIn",children:o,className:r,duration:a=1,initiallyVisible:l=!1,siblingDelay:d=0}=t,c=zc.useRef(null);zc.useEffect(()=>{const m=c.current;if(l&&m){m.classList.add("scroll-animation--in");return}if(!m||typeof window>"u")return;const p=document.querySelector(xj),f=new IntersectionObserver(([g])=>{g.isIntersecting?(m.classList.add("scroll-animation--in"),f.unobserve(g.target)):m.classList.remove("scroll-animation--in")},{root:p??null,rootMargin:"0px 0px -10% 0px",threshold:0});return f.observe(m),()=>{f.disconnect()}},[l]),zc.useEffect(()=>{const m=c.current;if(!m||!e)return;const p=f=>{f.target instanceof Element&&f.target.parentElement===m&&f.propertyName==="opacity"&&e()};return m.addEventListener("transitionend",p),()=>{m.removeEventListener("transitionend",p)}},[e]),zc.useEffect(()=>{const m=c.current;if(!m||!Array.isArray(o))return;Array.from(m.children).forEach((f,g)=>{f instanceof HTMLElement&&f.style.setProperty("--idx",String(g))})},[o]);const u={"--scroll-animation-step":`${d}s`,"--scroll-animation-duration":n==="none"?"0s":`${a}s`,"--scroll-animation-from":yj[n]??"translateY(0)"};return(0,s.jsx)("div",{className:z()("scroll-animation",r),ref:c,style:u,children:o})},Ej=matchMedia("(prefers-reduced-motion: reduce)");function zs(){return Ej.matches}const Bt=t=>{const{afterAnimatedIn:e,animateBlockEntrance:n,animateIn:o,children:r,className:a,duration:l,initiallyVisible:d,isLearner:c,siblingDelay:u}=t;return c&&n&&!zs()?(0,s.jsx)(bj,{afterAnimatedIn:e,animateIn:o,className:a,duration:l,initiallyVisible:d,siblingDelay:u,children:r}):Array.isArray(r)?(0,s.jsx)("div",{children:r}):r};var Wa=i(91817),w2=i(59288);const Lj=w2.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 Tj extends w2.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:e}){return(0,s.jsx)(ps,{className:"block-text__code-caption",value:e||""})}render(){const{animateBlockEntrance:e,defaultBackgroundColor:n="",getL10nValue:o,isLearner:r,items:a,labels:l,settings:d,renderCaption:c=this.renderCaptionDelegate}=this.props,{entranceAnimation:u,language:m,paddingBottom:p,paddingTop:f,snippetBackgroundColor:g,snippetColorContrast:v,theme:C,useAdvancedEditor:y,wrapWords:b}=d,x=z()("block-text block-text--code",{"block-text--padding-top":Number(f)===2,"block-text--padding-bottom":Number(p)===2,"block-text--no-animation":!u}),L={backgroundColor:g},E=g==="#fafafa"||Js()(g),S=v??I.Em.DARK;if(!E){const N=cn({backgroundColor:g,contrast:S});Object.assign(L,{"--color-snippet-contrast":N})}return(0,s.jsx)(Ft,{className:x,defaultBackgroundColor:n,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:r,children:(0,s.jsx)("div",{className:"block-text__container",children:a.slice(0,1).map(N=>{const A=tl({...N,getL10nValue:o});return(0,s.jsx)("div",{className:"block-text__row",children:(0,s.jsx)("div",{"aria-label":l?.a11yBlockCode,className:"block-text__col",role:Ma,children:(0,s.jsxs)("figure",{"aria-labelledby":A.figcaptionId,className:"block-text__figure",role:"figure",children:[(0,s.jsx)(Gb,{value:N.code,children:k=>y?(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(Lj,{editorProps:{$blockScrolling:!0},maxLines:25,mode:m,name:String(N.id),readOnly:!0,setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:C,value:(0,Wa.htmlDecode)((0,Xn.aj)(k)),width:"100%",wrapEnabled:b})}):(0,s.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:(0,Xn.aj)(k)},dir:"ltr",style:L})}),N.caption&&(0,s.jsx)("figcaption",{id:A.figcaptionId,children:c(N)})]})})},N.id)})})})})}}const D2=qt(Tj);function jj(t,e){const n=Bs(),{cardMode:o,className:r="",children:a,disabled:l=!1,tag:d="div",overrideBackground:c=!1,style:u={},...m}=t,{backgroundType:p,cardMode:f,customBackgroundColorContrast:g}=n,C=(0,Ie.DX)()?.theme,y=o??f,b=Dn()??"#ffffff",x=y===so.WHITE,L=p===I.xj.COLOR,E=p===I.xj.ACCENT,S=C?.accentContrast,N=p===I.xj.ACCENT||p===I.xj.COLOR,A=S===I.Em.AUTO&&E||g===I.Em.AUTO&&L,k=p===I.xj.COLOR?g:S,R=[r,"block-card"];if(x)R.push("bg--range-light","block-card--white");else if(l){R.push("block-card--disabled");const W=cn({backgroundColor:b,contrast:k});A&&(u["--color-text"]=W,u["--color-text-opposite"]=W===Ze.S6.DARK?Ze.S6.LIGHT:Ze.S6.DARK)}else{R.push("block-card--transparent");const W=(0,ct.XC)(b),D=ct.t9[W](b);switch(p){case I.xj.LIGHT:case I.xj.GRAY:R.push("bg--range-light");break;case I.xj.IMAGE:R.push("bg--range-dark");break;case I.xj.DARK:case I.xj.BLACK:R.push("bg--range-dark"),u["--color-background-rgb"]=(0,Oa.A)(D)?.slice(0,3);break;default:{const w=cn({backgroundColor:D,contrast:k});N&&w==Ze.S6.LIGHT&&R.push("block-card--contrast-light");const Z=(0,ct.XC)(D);R.push(`bg--range-${Bi()(Z.toLowerCase())}`);const B=c?b:D;u["--color-background"]=B,u["--color-background-rgb"]=(0,Oa.A)(B)?.slice(0,3);break}}}return(0,s.jsx)(d,{...m,className:R.join(" "),ref:e,style:u,children:a})}const un=(0,h.forwardRef)(jj);var B2=i(59288);const Bn=ae("block-statement");class Ij extends B2.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:n,hasAudioExpansionFlag:o,type:r,labels:a,lessonId:l,media:d,settings:c},{paragraph:u}){const p=r==="note"?Mj:B2.Fragment,f=n(Array.isArray(d)?{}:d),g=!!f?.audio,v=Jo(f,c.audioPosition,o);return(0,s.jsx)(p,{children:(0,s.jsx)("div",{className:Bn("quote"),children:v.renderOrder.map((C,y)=>{if(C==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(ps,{value:u})},`text-${y}`);if(C==="audio"&&g){const b=v.renderOrder.indexOf("audio")<v.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:Bn("audio-container",{top:b,bottom:!b}),children:(0,s.jsx)(dn,{blockId:e,hasPadding:!1,index:e,item:{media:d,id:e},labels:a,lessonId:l,media:d,refs:`items:${e}`})},`audio-${y}`)}})})})}render(){const{animateBlockEntrance:e,isLearner:n,items:o,renderText:r=this.renderTextDelegate,settings:a,type:l}=this.props,{entranceAnimation:d,divider:c=!0,dividerPadding:u=vE(l),dividerSize:m=gE(l),noteIcon:p=!0,noteSize:f="sm",statementWidth:g=CE(l)}=a,v=LE(g),C=TE(u),y=jE(m),b=f,x=l==="a"||l==="b"||l==="d",L=l==="note",E=Bn({[l]:!0,[`${l}-custom-width-${v}`]:!0,[`${l}-divider-off`]:x&&!c,[`${l}-divider-padding-${C}`]:x&&c,[`${l}-divider-size-${y}`]:x&&c,[`note-size-${b}`]:L,[`note-size-${b}-no-icon`]:L&&!p,"no-animation":!d});return(0,s.jsx)(Ft,{className:E.toString(),children:(0,s.jsx)("div",{className:Bn("wrap"),children:(0,s.jsx)("div",{className:Bn("container"),children:(0,s.jsx)("div",{className:Bn("row"),children:o.slice(0,1).map(S=>(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),isLearner:n,children:(0,s.jsxs)("div",{className:Bn("col"),children:[(0,s.jsx)("div",{className:Bn("divider-top-container"),children:(0,s.jsx)("div",{className:Bn("divider-top")})}),r(this.props,S),(0,s.jsx)("div",{className:Bn("divider-bottom")})]})},S.id))})})})})}}const cl=qt(Ij),Sj=cl,Nj=t=>(0,s.jsx)(cl,{type:"b",...t}),Aj=t=>(0,s.jsx)(cl,{type:"c",...t}),Pj=t=>(0,s.jsx)(cl,{type:"d",...t}),Rj=t=>(0,s.jsx)(cl,{type:"note",...t}),Mj=({children:t})=>{const{accentColor:e,backgroundType:n,cardMode:o,courseColor:r,customBackgroundColorContrast:a,noteIcon:l=!0}=Bs(),{theme:d}=(0,Ie.DX)(),c=Dn(),u=n===I.xj.COLOR,m=n===I.xj.ACCENT,p=d?.accentContrast,f=n===I.xj.DARK||n===I.xj.BLACK,v=u||m||f?so.TRANSPARENT:o,C=p===I.Em.AUTO&&m||a===I.Em.AUTO&&u,y={},b=(0,h.useMemo)(()=>{if(n!==I.xj.IMAGE&&c==null)return"#000000b3";switch(n){case I.xj.IMAGE:return"";case I.xj.LIGHT:case I.xj.GRAY:return(0,ct.W8)(.9,e??r);case I.xj.DARK:return"#494949";case I.xj.BLACK:return"#333333";default:switch((0,ct.XC)(c)){case ct.lL.LIGHT:return(0,ct.W8)(.3,c);case ct.lL.MED:return(0,ct.W8)(-.2,c);case ct.lL.DARK:case ct.lL.NEAR_BLACK:return(0,ct.W8)(-.4,c)}}},[e,n,c,r]),x=n===I.xj.COLOR?a:p,L=cn({backgroundColor:b,contrast:x});y["--color-background"]=b,C&&(y["--color-text"]=L);const E=Bn("note-icon",{off:!l});return(0,s.jsxs)(un,{cardMode:v,className:Bn("note-card"),style:y,children:[(0,s.jsx)("div",{className:E,children:(0,s.jsx)(yt,{name:"circle-info"})}),t]})};var Is=i(59288);function H2({ariaLabel:t,children:e,className:n="carousel-controls-item-btn",isActive:o,onClick:r,onKeyDown:a}){return(0,s.jsx)("li",{className:"carousel-controls-item",role:"listitem",children:(0,s.jsx)("button",{"aria-current":o,"aria-label":t,className:n,onClick:r,onKeyDown:a,tabIndex:o?0:-1,type:"button",children:e})})}function Fc({children:t,iconNameLeft:e="chevron-left-light",iconNameRight:n="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:l="Carousel",labelSlideControls:d="Slide controls",labelSlideControlsGoToNext:c="Go to next slide",labelSlideControlsGoToPrevious:u="Go to previous slide",labelSlideControlsGoToSlide:m="Go to slide",labelSlidePreposition:p="of",labelSlideRoleDesc:f="Slide",onChange:g,ref:v,renderSlideIndicator:C,shouldMouseEmulateTouch:y=!1,shouldUseCounter:b=!1,shouldUseGoToSlide:x=!0}){const L=Is.useId(),[E,S]=Is.useState(0),N=(0,_t.A)(E)??0,A=Is.useRef(void 0),k=Is.useRef(void 0),R=Is.useRef(!1),W=Is.useRef(!1),D=Is.useRef(void 0),w=Is.useRef(void 0),Z=`carousel-${L}`,B=Is.Children.count(t),F=(0,_t.A)(B),G=Is.useMemo(()=>Array.from({length:B}),[B]),ue=B>1;Is.useImperativeHandle(v,()=>({navigateToSlide:(ze,Ve=!0)=>{S(ze);const it=A.current?.children?.[ze]?.firstElementChild;Ve&&it?.focus()}}),[]);const ce=Is.useCallback(({activeIndex:ze,dir:Ve})=>{const it=o?ze-1>=0?ze-1:B-1:Math.max(0,ze-1),tt=o?ze+1<=B-1?ze+1:0:Math.min(B-1,ze+1);return Ve==="left"?r?tt:it:r?it:tt},[o,r,B]),le=Is.useCallback(()=>{S(ze=>ce(r?{activeIndex:ze,dir:"right"}:{activeIndex:ze,dir:"left"}))},[ce,r]),Se=Is.useCallback(()=>{S(ze=>ce(r?{activeIndex:ze,dir:"left"}:{activeIndex:ze,dir:"right"}))},[ce,r]),Oe=Is.useCallback(ze=>{let Ve=!1,it=E;switch(ze.key){case"ArrowLeft":Ve=!0,it=ce({activeIndex:E,dir:"left"});break;case"ArrowRight":Ve=!0,it=ce({activeIndex:E,dir:"right"});break;case"Home":Ve=!0,it=0;break;case"End":Ve=!0,it=B-1;break}if(Ve&&(ze.stopPropagation(),ze.preventDefault()),E!==it){const tt=A.current?.children?.[it]?.firstChild;tt?.focus(),tt?.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),S(it)}},[E,ce,B]);Is.useEffect(()=>{N!==E&&g?.(E)},[E,g,N]),Is.useEffect(()=>{B<F&&E>B-1&&S(B-1)},[E,F,B]),Is.useEffect(()=>{const ze=Be=>{Be.target.tagName==="IMG"&&Be.preventDefault(),D.current=Be.screenX},Ve=Be=>{const pt=window.visualViewport?.scale??1,ot=window.getSelection().toString()!=="";if(!W.current&&pt<=1.01&&!ot&&D.current!=null){w.current=Be.screenX;const Mt=w.current-D.current;Math.abs(Mt)>50&&(window.getSelection().empty(),R.current=!0,D.current=void 0,w.current=void 0,Mt<0?S(kt=>ce({activeIndex:kt,dir:"right"})):S(kt=>ce({activeIndex:kt,dir:"left"})))}},it=Be=>{R.current&&Be.stopPropagation(),R.current=!1,W.current=!1,D.current=void 0,w.current=void 0},tt=Be=>{if(Be.touches.length>1){W.current=!0;return}Be.changedTouches.length===1&&Be.changedTouches[0]&&(D.current=Be.changedTouches[0].screenX)},xe=Be=>{const pt=window.visualViewport?.scale??1,ot=window.getSelection().toString()!=="";if(!W.current&&pt<=1.01&&!ot&&D.current!=null&&Be.changedTouches[0]){w.current=Be.changedTouches[0].screenX;const Mt=w.current-D.current;Math.abs(Mt)>50&&(R.current=!0,D.current=void 0,w.current=void 0,Mt<0?S(kt=>ce({activeIndex:kt,dir:"right"})):S(kt=>ce({activeIndex:kt,dir:"left"})))}},Me=()=>{R.current=!1,W.current=!1,D.current=void 0,w.current=void 0},Qe=k.current;return y&&(Qe?.addEventListener("mousedown",ze,{capture:!0}),Qe?.addEventListener("mousemove",Ve,{capture:!0}),Qe?.addEventListener("click",it,{capture:!0})),Qe?.addEventListener("touchstart",tt,{passive:!0}),Qe?.addEventListener("touchmove",xe,{passive:!0}),Qe?.addEventListener("touchend",Me,{passive:!0}),Qe?.addEventListener("touchcancel",Me,{passive:!0}),()=>{y&&(Qe?.removeEventListener("mousedown",ze),Qe?.removeEventListener("mousemove",Ve),Qe?.removeEventListener("mouseup",Me)),Qe?.removeEventListener("touchstart",tt),Qe?.removeEventListener("touchmove",xe),Qe?.removeEventListener("touchend",Me),Qe?.removeEventListener("touchcancel",Me)}},[ce,y,B]);const We=ze=>()=>{A.current?.children?.[ze]?.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),S(ze)};return(0,s.jsxs)("div",{"aria-label":a,"aria-roledescription":l,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":E},children:[ue&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{"aria-label":d,className:"carousel-controls",role:"group",children:[x&&(0,s.jsx)("ul",{className:"carousel-controls-items",ref:A,role:"list",children:G.map((ze,Ve)=>{const it=E===Ve,tt=We(Ve);return C?C({index:Ve,isActive:it,onClick:tt,onKeyDown:Oe}):(0,s.jsx)(H2,{ariaLabel:m+" "+(Ve+1),isActive:it,onClick:tt,onKeyDown:Oe,children:(0,s.jsx)(yt,{className:"carousel-controls-item-btn-icon",name:it?"circle":"circle-solid"})},Ve)})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:E===0,"aria-label":u,className:"carousel-controls-prev",onClick:!o&&E===0?void 0:le,type:"button",children:(0,s.jsx)(yt,{className:"carousel-controls-prev-icon",name:r?n:e})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:E===B-1,"aria-label":c,className:"carousel-controls-next",onClick:!o&&E===B-1?void 0:Se,type:"button",children:(0,s.jsx)(yt,{className:"carousel-controls-next-icon",name:r?e:n})}),b&&(0,s.jsxs)("div",{className:"carousel-controls-counter",children:[(0,s.jsx)("div",{className:"carousel-controls-counter-text",children:`${E+1} ${p} ${B}`}),(0,s.jsx)("div",{className:"carousel-controls-counter-line",children:(0,s.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((E+1)/B).toFixed(2))*100}%`}})})]})]})}),(0,s.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:k,children:Is.Children.map(t,(ze,Ve)=>{const it=`${Z}-${Ve}-counter`;return(0,s.jsxs)("div",{"aria-labelledby":it,"aria-roledescription":f,className:"carousel-slide",hidden:E!==Ve,inert:E!==Ve,role:"group",children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:it,children:`${Ve+1} ${p} ${B}`}),ze]})})})]})}var dl=i(59288);const kj="div",z2=dl.createContext(void 0);function Oj({children:t,element:e,...n},o){const[r,a]=dl.useState();return(0,s.jsx)(z2.Provider,{value:r,children:dl.createElement(e??kj,{...n,ref:o},t,(0,s.jsx)("div",{ref:a}))})}const Uc=dl.forwardRef(Oj);function oG(){return dl.useContext(z2)}function Vc(t){const e=n=>{const o=(0,Ie.Wz)();return(0,s.jsx)(t,{...n,isRTL:o})};return e.displayName=`withRTL(${t.displayName||t.name})`,e}const Wc=({blockId:t,carouselRef:e,children:n,items:o})=>{const r=(0,h.useRef)(null),a=e??r;return(0,h.useEffect)(()=>{const l=d=>{const{path:c}=d.detail,{blockId:u,cardId:m}=Mi(c,["block","card"]);if(u===t){const p=o.findIndex(f=>f.id===m);p>=0&&a.current?.navigateToSlide?.(p,!1)}};return window.addEventListener(ss,l),()=>{window.removeEventListener(ss,l)}},[o,t,a]),(0,s.jsx)(s.Fragment,{children:n({carouselRef:e})})},Ht=ae("block-quote"),ul=({avatar:t,alt:e,l10nId:n,showAvatar:o})=>o?(0,s.jsx)(bn,{alt:(0,Zs.Ll)(e),className:Ht("avatar"),"data-l10n-id":n,src:t}):null,wj=({alt:t,animateBlockEntrance:e,avatar:n,children:o,l10nId:r,isAuthorBlank:a=!1,isLearner:l,showAvatar:d,type:c})=>{const u=Ht("col",{"no-avatar":!n}),m=n?(0,s.jsx)("div",{className:Ht("image"),children:(0,s.jsx)("div",{className:Ht("avatar-wrap"),children:c==="c"?(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeInLeftSmall",isLearner:l,children:(0,s.jsx)(ul,{alt:t,avatar:n,l10nId:r,showAvatar:d})}):(0,s.jsx)(ul,{alt:t,avatar:n,l10nId:r,showAvatar:d})})}):null;return(0,s.jsx)("div",{className:Ht("container"),children:(0,s.jsx)("div",{className:Ht("row"),children:(0,s.jsxs)("div",{className:u,children:[(0,s.jsx)("div",{className:Ht("divider-top")}),(0,s.jsxs)("div",{className:Ht("figure",{"no-author":a,"no-avatar":!a&&!d}),children:[m,o]}),(0,s.jsx)("div",{className:Ht("divider-bottom")})]})})})},Dj=({avatar:t,children:e,alt:n,l10nId:o,showAvatar:r})=>(0,s.jsx)("div",{className:Ht("figure"),children:(0,s.jsx)("div",{className:Ht("container"),children:(0,s.jsxs)("div",{className:Ht("row"),children:[(0,s.jsx)("div",{className:Ht("col"),children:t&&r?(0,s.jsx)(ul,{alt:n,avatar:t,l10nId:o,showAvatar:r}):null}),(0,s.jsx)("div",{className:Ht("col"),children:e})]})})}),Bj=({background:t,avatar:e,children:n,alt:o,l10nId:r,showAvatar:a})=>(0,s.jsx)("div",{className:Ht("background"),style:{backgroundImage:t??""},children:(0,s.jsx)("div",{className:Ht("container"),children:(0,s.jsx)("div",{className:Ht("row"),children:(0,s.jsx)("div",{className:Ht("col"),children:(0,s.jsxs)("div",{className:Ht("figure"),children:[e&&a?(0,s.jsx)(ul,{alt:o,avatar:e,l10nId:r,showAvatar:a}):null,n]})})})})});class Hj extends K().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,n){const o=e?.alpha??xE(n),r=(0,Yt.ME)(e),a=yE(n);return(0,G0.A)({alpha:o,color:a,url:r})?.backgroundImage}renderText(e,{paragraph:n}){const o=n||"",r=Ht("text",{blank:o===""}).toString();return(0,s.jsx)(ps,{className:r,value:o})}renderCaption(e,{name:n}){const o=Ht("caption",{blank:n===""}).toString();return(0,s.jsx)(ps,{className:o,value:n})}render(){const{animateBlockEntrance:e,getL10nValue:n,isLearner:o,items:r,settings:a,type:l,renderText:d=this.renderTextDelegate,renderCaption:c=this.renderCaptionDelegate}=this.props,u=92,{avatarSize:m=Zm(l),divider:p=!0,dividerSize:f=u,entranceAnimation:g,quoteAlignment:v="left",quoteIcon:C=!0,quotesInline:y,quotePadding:b=2,quoteWidth:x=Qm(l)}=a,[L]=r,{avatar:E,background:S}=L,N=n(E?.media)?.image,A=(0,Yt.xm)(N),k=N?.alt,R=(0,Rt.pP)(E.media),W=n(S?.media)?.image,D=W?.overlayColor,w=this.getBackgroundImageUrl(W,D),Z=a?.avatar??A!=="",B=A&&A!=="",F=l==="background",G=F&&D==="light",ue=_m(x),ce=Xm(b),le=Ym(l,m),Se=EE(f),Oe=l==="a",We=l==="c"||F,ze=l!=="b"&&!F,Ve=L?.name==="",it=L?.paragraph==="",tt=Ht(null,{[l]:!0,[`${l}-custom-width-${ue}`]:!0,[`${l}-divider-off`]:Oe&&!p,[`${l}-divider-size-${Se}`]:Oe&&p,[`${l}-quote-padding-${ce}`]:!0,[`${l}-align-${v}`]:F,[`${l}-${ue}-no-avatar`]:!A||!Z,[`${l}-avatar-size-${le}`]:Z&&B,[`${l}-quote-icon-off`]:We&&!C,[`${l}-legacy-quote-mark`]:ze&&!y,[`${l}-overlay-legacy`]:!D,[`${l}-overlay-light`]:G,"no-animation":!g}).toString(),xe=(0,s.jsx)("div",{className:Ht("wrap",{blank:Ve||it}),children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:this.getQuoteEntranceAnimationType(),isLearner:o,siblingDelay:.15,children:(0,s.jsxs)("figure",{children:[(0,s.jsx)("blockquote",{children:d(this.props,L)}),(0,s.jsx)("figcaption",{children:c(this.props,L)})]})})});let Me;switch(l){case"d":Me=(0,s.jsx)(Dj,{alt:k,avatar:A,l10nId:R,showAvatar:Z,type:l,children:xe});break;case"background":Me=(0,s.jsx)(Bj,{alt:k,avatar:A,background:w,l10nId:R,showAvatar:Z,type:l,children:xe});break;default:Me=(0,s.jsx)(wj,{alt:k,animateBlockEntrance:e,avatar:A,isAuthorBlank:Ve,isLearner:o,l10nId:R,showAvatar:Z,type:l,children:xe})}return(0,s.jsx)(Ft,{className:tt,children:Me})}}const hl=qt(Hj),zj=t=>(0,s.jsx)(hl,{...t}),Fj=t=>(0,s.jsx)(hl,{type:"b",...t}),Uj=t=>(0,s.jsx)(hl,{type:"c",...t}),Vj=t=>(0,s.jsx)(hl,{type:"d",...t}),Wj=t=>(0,s.jsx)(hl,{type:"background",...t});class $j extends K().Component{static get defaultProps(){return{type:"carousel",items:[],onStep:Function.prototype,getL10nValue:()=>{}}}handleChangeCarousel=e=>{this.props.onStep?.(this.props.items[e])};renderText=(e,{paragraph:n})=>{const o=n||"",r=Ht("text",{blank:n===""}).toString();return(0,s.jsx)(ps,{className:r,value:o})};renderCaption=(e,{name:n})=>{const o=Ht("caption",{blank:n===""}).toString();return(0,s.jsx)(ps,{className:o,value:n})};render(){const{blockId:e,animateBlockEntrance:n,editable:o,getL10nValue:r,isRTL:a,isLearner:l,isLessonBlocksList:d=!1,items:c,labels:u,previewType:m,settings:p,renderText:f=this.renderText,renderCaption:g=this.renderCaption,type:v}=this.props,{avatar:C=!0,avatarSize:y=Zm(v),entranceAnimation:b,quotesInline:x,quotePadding:L=2,quoteWidth:E=Qm(v),showBorder:S=!0}=p,A=v!=="b"&&!(v==="background"),k=_m(E),R=Xm(L),W=Ym(v,y),D=m==="mobile-portrait"||m==="mobile-landscape",w=Ht({[v]:!0,[`${v}-custom-width-${k}`]:!0,[`${v}-quote-padding-${R}`]:!0,[`${v}-${k}-no-avatar`]:!C,[`${v}-avatar-size-${W}`]:C,[`${v}-legacy-quote-mark`]:!d&&A&&!x,"no-animation":!b,"hide-border":!S,editable:o}).toString(),Z=c.map(B=>{const F=r(B?.avatar?.media)?.image,G=F?.alt,ue=(0,Yt.xm)(F),ce=C??ue!=="",le="l10nId"in B.avatar.media?B.avatar.media.l10nId:void 0;return(0,s.jsx)("div",{className:Ht("slide"),children:(0,s.jsxs)("figure",{className:Ht("figure"),children:[ue&&C?(0,s.jsx)(ul,{alt:G,avatar:ue,l10nId:le,showAvatar:ce}):null,(0,s.jsx)("blockquote",{children:f(this.props,B)}),(0,s.jsx)("figcaption",{children:g(this.props,B)})]})},B.id)});return(0,s.jsx)("div",{className:Ht("slider-container"),children:(0,s.jsx)(Ft,{className:w,children:(0,s.jsx)(Uc,{className:Ht("wrap"),children:(0,s.jsx)("div",{className:Ht("container"),children:(0,s.jsx)("div",{className:Ht("col"),children:(0,s.jsx)(un,{className:Ht("box"),children:(0,s.jsx)(Bt,{animateBlockEntrance:n,animateIn:"fadeInUp",isLearner:l,children:(0,s.jsx)(Wc,{blockId:e,items:c,children:({carouselRef:B})=>(0,s.jsx)(Fc,{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,ref:B,shouldMouseEmulateTouch:D,children:Z})})})})})})})})})}}const Kj=Vc(qt($j));var F2=i(59288);const Hn=ae("block-list"),Gj=class extends F2.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:n,editable:o,hasAudioExpansionFlag:r,isLearner:a,items:l,labels:d,lessonId:c,media:u,onStep:m,settings:p,type:f}=this.props,{audioPosition:g,bulletPadding:v,entranceAnimation:C,listWidth:y}=p,b=Jo(u,g,r),x=bE(v),L=$0(y),E=Hn({[f]:!0,[`${f}-custom-width-${L}`]:!0,[`${f}-bullet-padding-${x}`]:!0,"no-animation":!C}),S=f==="numbered"?"ol":"ul";return(0,s.jsx)(Ft,{className:E.toString(),defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:Hn("container"),children:(0,s.jsx)("div",{className:Hn("row"),children:(0,s.jsx)(Uc,{className:Hn("col"),children:(0,s.jsx)("div",{className:"blocks-list__container",children:b.renderOrder.map((N,A)=>{if(N==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(S,{className:Hn("list"),role:"list",children:(0,s.jsx)(Bt,{animateBlockEntrance:t,animateIn:"fadeInRight",className:Hn("animated-item").toString(),isLearner:a,siblingDelay:.25,children:l.map((k,R)=>{const W={key:k.id,index:R,lessonId:c,blockId:e,type:f,editable:o,nextNumber:this.nextNumber.bind(this),onStep:m,...k};return this.props.renderItem?this.props.renderItem(W):(0,h.createElement)(Qj,{...W,key:W.key})})})})},`text-${A}`);if(N==="audio")return(0,s.jsx)("div",{className:z()("block-list__media",{"audio-on-top":b.renderOrder[0]==="audio","audio-on-bottom":b.renderOrder[0]!=="audio"}),children:(0,s.jsx)(dn,{blockId:e,hasPadding:!1,index:e,item:{media:u},labels:d,lessonId:c,media:u,refs:`items:${e}`})},`${N}-${A}`)})})})})})})}};class Qj extends F2.Component{renderTextDelegate;animateRef;static get defaultProps(){return{className:""}}constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}renderText(e){return(0,s.jsx)(ps,{...e})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:e,id:n,index:o,number:r,paragraph:a,editable:l,className:d,renderText:c=this.renderTextDelegate,style:u}=this.props,m={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:l,id:n,value:a};return(0,s.jsxs)("li",{className:z()("block-list__item",`block-list__item--${e}`,d),ref:p=>{this.animateRef=p},role:"listitem",style:u,children:[e==="numbered"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Hn("number"),children:r||o+1}),c(m)]}),e==="bulleted"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,s.jsx)(yt,{className:Hn("bullet"),name:"circle-solid"}),c(m)]}),e==="checkboxes"&&(0,s.jsxs)("label",{className:Hn("option"),children:[(0,s.jsx)("input",{className:Hn("checkbox-input"),onChange:this.handleChangeCheckbox,type:"checkbox"}),(0,s.jsx)("div",{className:Hn("checkbox"),children:(0,s.jsx)(yt,{className:Hn("checkbox__icon"),name:"check"})}),c(m)]})]})}}const du=fc("rise-audio-release","hasAudioExpansionFlag")(t=>(0,s.jsx)(Gj,{...t})),Zj=du,Yj=t=>(0,s.jsx)(du,{type:"checkboxes",...t}),_j=t=>(0,s.jsx)(du,{type:"bulleted",...t});var uu=i(59288);class Xj extends uu.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,n){return(0,s.jsx)(ps,{className:"block-image__caption",value:n})}render(){const{aiMagicIcon:e,aiOverlay:n,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:l,getL10nValue:d,isLearner:c,items:u,type:m,labels:p,lessonId:f,settings:g,renderCaption:v=this.renderCaptionDelegate}=this.props,{entranceAnimation:C,zoomOnClick:y}=g,b=z()(`block-image block-image--${m}`,"block-image--flag-dimensions",{"block-image--no-animation":!C}),x=u[0],{id:L,caption:E}=x,{image:S,audio:N}=d(x.media),A=S?.alt,k=(0,Yt.ME)(S),R=S?.dimensions,W=R?.width||R?.originalWidth,D=R?.height||R?.originalHeight,w=tl({caption:E,editable:l,id:L,getL10nValue:d}),Z=!c&&!k,B=W&&D?W/D:void 0,F=z()("block-image__image",{"block-image__image--audio-overlay":!!N});return(0,s.jsx)(Ft,{className:b,defaultBackgroundColor:a,children:(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsx)("div",{className:"block-image__row",children:(0,s.jsx)("div",{className:"block-image__col",children:(0,s.jsx)(Bt,{animateBlockEntrance:o,isLearner:c,children:(0,s.jsxs)(w.tagName,{"aria-labelledby":w.figcaptionId,className:"block-image__figure",role:w.role,children:[(0,s.jsxs)("div",{className:F,children:[Z?(0,s.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:B},children:[(0,s.jsx)("div",{children:e}),(0,s.jsx)("div",{className:"block-image__waiting-text",children:"Waiting for image\u2026"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Va,{alt:A,disableZoom:!y,height:D,l10nId:(0,Rt.pP)(x.media),labels:p,maxHeight:m==="full"?380:900,src:k,width:W}),N&&(0,s.jsx)(dn,{blockId:r,index:`${r}-${L}-0`,isOverlayAudio:!0,item:x,labels:p,lessonId:f,media:x.media,renderMediaType:"audio"})]}),n&&(0,s.jsx)("div",{className:"block-image__ai-overlay",children:n})]}),(l||E)&&(0,s.jsx)("figcaption",{id:w.figcaptionId,children:v(L,E)})]})})})})})})}}const Jj=qt(Xj),qj=(t,e,n,o)=>e?o:(0,s.jsx)(Bt,{animateBlockEntrance:t,isLearner:n,children:o});class eI extends uu.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,n){return(0,s.jsx)(ps,{className:"block-image__text",value:n})}renderCaption(e,n){return(0,s.jsx)(ps,{className:"block-image__caption",value:n})}renderImage(e,n,o,r){const{blockId:a,editable:l,lessonId:d,renderCaption:c=this.renderCaptionDelegate,getL10nValue:u}=this.props,{image:m,audio:p}=u(o.media),f=m?.alt,g=(0,Yt.ME)(m),v=m?.dimensions,C=v?.width||v?.originalWidth,y=v?.height||v?.originalHeight,b=tl({caption:n,editable:l,id:e,getL10nValue:u}),{animateBlockEntrance:x,isLearner:L,labels:E,settings:{zoomOnClick:S}}=this.props,N=z()("block-image__image",{"block-image__image--audio-overlay":!!p});return(0,s.jsx)(Bt,{animateBlockEntrance:x,animateIn:r==="right"?"fadeInRight":"fadeInLeft",isLearner:L,children:(0,s.jsxs)(b.tagName,{"aria-labelledby":b.figcaptionId,className:"block-image__figure",role:b.role,children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)(Va,{alt:f,disableZoom:!S,height:y,l10nId:(0,Rt.pP)(o?.media),labels:E,maxHeight:900,src:g,width:C}),p&&(0,s.jsx)(dn,{blockId:a,index:`${a}-${e}-0`,isOverlayAudio:!0,item:o,labels:E,lessonId:d,media:o.media,renderMediaType:"audio"})]}),(l||n)&&(0,s.jsx)("figcaption",{id:b.figcaptionId,children:c(e,n)})]})})}render(){const{defaultBackgroundColor:e,items:n,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:l,imagePosition:d,imageSize:c}=r,u=d==="right",m=z()(`block-image block-image--${a}`,{"block-image--small":c==="small","block-image--large":c==="large","block-image--reverse":u,"block-image--no-animation":!l}),p=n[0],{id:f,caption:g}=p,v="paragraph"in p?p.paragraph:void 0;return(0,s.jsx)(Ft,{className:m,defaultBackgroundColor:e,children:(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsxs)("div",{className:"block-image__row",children:[(0,s.jsx)("div",{className:"block-image__col",children:u?o(f,v):this.renderImage(f,g,p,"left")}),(0,s.jsx)("div",{className:"block-image__col",children:u?this.renderImage(f,g,p,"right"):o(f,v)})]})})})}}const tI=qt(eI);class sI extends uu.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,n){return(0,s.jsx)(ps,{className:"block-image__caption",value:n})}renderOverlay(e,n){return(0,s.jsx)(ps,{className:"block-image__paragraph",value:n})}renderOverlayCaption(e,n){const{animateBlockEntrance:o,isLearner:r,renderOverlay:a=this.renderOverlayDelegate}=this.props;return(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsx)("div",{className:"block-image__row",children:(0,s.jsx)("div",{className:"block-image__col",children:(0,s.jsx)(Bt,{animateBlockEntrance:o,animateIn:"fadeInUp",duration:1,isLearner:r,children:a(e,n)})})})})}render(){const{animateBlockEntrance:e,blockId:n,defaultBackgroundColor:o,editable:r,getL10nValue:a,isLearner:l,items:d,labels:c,lessonId:u,settings:m,type:p,renderCaption:f=this.renderCaptionDelegate}=this.props,{entranceAnimation:g,opacity:v,opacityColor:C}=m,y=K0(m?.backgroundColor,o),b=z()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!g,"block-image--dark":(0,ct.cP)(y)}),x={opacity:v||.6,backgroundColor:C||"transparent"},L=d[0],{id:E,caption:S}=L,{image:N,audio:A}=a(L.media),k=N?.key,R=(0,Yt.ME)(N),W=N?.dimensions,D=W?.width||W?.originalWidth,w=W?.height||W?.originalHeight,Z=(0,Zs.Ll)(N?.alt),B=p==="overlay",F=tl({caption:S,editable:r,id:E,isOverlayType:B,getL10nValue:a});return(0,s.jsxs)(Ft,{"aria-labelledby":F.figcaptionId,className:b,defaultBackgroundColor:o,role:F.role,tag:F.tagName,children:[qj(e,B,l,(0,s.jsxs)("div",{className:"block-image__figure",children:[k&&(0,s.jsxs)("div",{className:"block-image__image","data-l10n-id":(0,Rt.pP)(L?.media),style:{backgroundImage:`url('${R}')`},children:[(0,s.jsx)(bn,{alt:Z,height:w,src:R,width:D}),(0,s.jsx)("div",{className:"block-image__overlay",style:x}),A&&(0,s.jsx)(dn,{blockId:n,index:`${n}-${E}-0`,isOverlayAudio:!0,item:L,labels:c,lessonId:u,media:L.media,renderMediaType:"audio"})]}),B?this.renderOverlayCaption(E,S):null]})),!B&&(r||S)&&(0,s.jsx)("figcaption",{className:"block-image__container",id:F.figcaptionId,children:f(E,S)})]})}}const U2=qt(sI),nI=t=>(0,s.jsx)(U2,{type:"overlay",...t});var oI=i(59288);function V2(t){class e extends oI.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,s.jsx)(ps,{allowTabNavigation:a,className:"block-gallery__caption",value:r})}render(){const{renderCaption:o=this.renderCaptionDelegate}=this.props;return(0,s.jsx)(t,{...this.props,renderCaption:o})}}return e}var $c=i(59288);const W2=ae("block-gallery-carousel");function rI({blockId:t,animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,isLearner:r,labels:a,lessonId:l,items:d,onStep:c,previewType:u,renderCaption:m,settings:p}){d||=[];const[f,g]=$c.useState(0),v=$c.useCallback(x=>{g(x),c?.(d[x])},[d,c]),C=u===Ze.o4.MOBILE_PORTRAIT||u===Ze.o4.MOBILE_LANDSCAPE,y=W2({noAnimation:!p?.entranceAnimation||zs()}).toString(),b=(0,Ie.Wz)();return(0,s.jsx)(Ft,{className:y,defaultBackgroundColor:n,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:r,children:(0,s.jsx)(Uc,{className:W2("container").toString(),children:(0,s.jsx)(Wc,{blockId:t,items:d,children:({carouselRef:x})=>(0,s.jsx)(Fc,{isRTL:b,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,ref:x,shouldMouseEmulateTouch:C,children:d.map((L,E)=>(0,s.jsx)(iI,{activeIndex:f,blockId:t,editable:o,index:E,item:L,labels:a,lessonId:l,renderCaption:m,settings:p},L.id))})})})})})}const aI=V2(rI),hu=ae("block-gallery-carousel-item");function iI({activeIndex:t,blockId:e,editable:n,index:o,item:r,labels:a,lessonId:l,renderCaption:d,settings:c}){const[u,m]=$c.useState(!1),{image:p,audio:f}=(0,xt.QQ)(r.media),g=p?.dimensions,v=$c.useCallback(()=>{m(!0)},[]);return(0,s.jsxs)("figure",{className:hu(),children:[n&&!u&&(0,s.jsx)("div",{className:hu("loading"),children:"Loading image..."}),(0,s.jsxs)("div",{className:hu("image-container",{"audio-overlay":!!f}),children:[(0,s.jsx)(Va,{alt:p?.alt,disableZoom:!c?.zoomOnClick,height:g?.height||g?.originalHeight,l10nId:(0,Rt.pP)(r?.media),labels:a,maxHeight:900,onLoad:v,src:(0,Yt.ME)(p),width:g?.width||g?.originalWidth}),f&&(0,s.jsx)(dn,{blockId:e,index:`${e}-${r.id}-${o}`,isOverlayAudio:!0,item:r,labels:a,lessonId:l,media:r.media,renderMediaType:"audio",shouldPause:t!==o})]}),(n||r.caption)&&u&&(0,s.jsx)("figcaption",{children:d(r.id,r.caption)})]})}const lI=({alt:t,disableZoom:e,height:n,l10nId:o,labels:r,src:a,width:l})=>(0,s.jsx)("div",{className:"block-gallery__image",children:(0,s.jsx)(Va,{alt:t,disableZoom:e,height:n,l10nId:o,labels:r,maxHeight:900,src:a,width:l})}),cI=t=>{switch(t){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function dI(t){return(0,s.jsx)(aI,{...t})}class uI extends K().Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,getL10nValue:r,isLearner:a,items:l,labels:d,renderCaption:c,settings:u,width:m}=this.props,{entranceAnimation:p,zoomOnClick:f}=u,g=z()(`block-gallery block-gallery--${cI(m)}`,{"block-gallery--no-animation":!p||zs()});return(0,s.jsx)(Ft,{className:g,defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:"block-gallery__container",children:(0,s.jsx)("div",{className:"block-gallery__row",children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:a,siblingDelay:.25,children:l.map(v=>{const{id:C}=v,y=v.caption,b=r(v.media)?.image,x=b?.alt,L=b?.key,E=b?.dimensions,S=E?.width||E?.originalWidth,N=E?.height||E?.originalHeight,A=(0,Yt.ME)(b),k=tl({caption:y,editable:o,id:C,getL10nValue:this.props.getL10nValue});return(0,s.jsx)("div",{className:"block-gallery__col",children:(0,s.jsxs)(k.tagName,{"aria-labelledby":k.figcaptionId,className:"block-gallery__figure",role:k.role,children:[L&&(0,s.jsx)(lI,{alt:x,disableZoom:!f,height:N,l10nId:(0,Rt.pP)(v?.media),labels:d,src:A,width:S}),(o||y)&&(0,s.jsx)("figcaption",{id:k.figcaptionId,children:c(C,y)})]})},C)})})})})})}}const mu=V2(qt(uI)),pu=ae("block-divider"),fu=({isLearner:t,labels:{numberedDividerGroup:e},number:n,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,l=r==="numbered",c=pu({authoring:!t,spacing:r==="spacing",numbered:l,"no-animation":!a}).toString(),u=l?(0,s.jsxs)("div",{className:pu("wrap__number"),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:e}),n]}):null;return(0,s.jsx)(Ft,{className:c,children:(0,s.jsx)("div",{className:pu("wrap",{authoring:!t&&!l}),children:u})})},hI=fu,mI=t=>(0,s.jsx)(fu,{type:"numbered",...t}),pI=t=>(0,s.jsx)(fu,{type:"spacing",...t});var fI=i(16169),gu=i.n(fI),gI=i(42551),vI=i.n(gI),CI=i(51926),wr=i.n(CI),xI=i(13916),$2=i.n(xI),yI=i(19453),Kc=i.n(yI),bI=i(31433),ml=i.n(bI),Gc=i(59288);const EI=30,K2=Cc("blockSettings");class LI extends Gc.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],lessonId:"",onStep:()=>{}};render(){const{animateBlockEntrance:e,blockId:n,editable:o,isLearner:r,items:a,labels:l,lessonId:d,onStep:c,settings:u,enableVideoPlaybackSpeed:m}=this.props,{entranceAnimation:p,accordionBehavior:f="keepOpen"}=u,g=z()("blocks-accordion",{"blocks-accordion--no-animation":!p});return(0,s.jsx)(Ft,{className:g,"data-block-id":n,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,duration:.75,isLearner:r,children:(0,s.jsx)("div",{className:"blocks-accordion__container",children:(0,s.jsx)("div",{className:"blocks-accordion__row",children:(0,s.jsx)("div",{className:"blocks-accordion__col",children:(0,s.jsx)(PI,{blockId:n,editable:o,enableVideoPlaybackSpeed:m,items:a,keepOpen:f==="keepOpen",labels:l,lessonId:d,onStep:c,settings:u})})})})})})}}const TI={isOpen:!1,isActive:!1},jI=t=>(e,{id:n})=>Object.assign({},e,{[n]:t[n]||TI}),G2=(t,e)=>e.reduce(jI(t),{}),II=(t,e)=>(n,o)=>{const r=t==o,a=r?!n.isOpen:n.isOpen,l=r&&!n.isOpen;return{isOpen:e?a:l,isActive:r}},SI=t=>(e,n)=>{const o=n==t;return{isOpen:o,isActive:o}},NI=t=>(e,n)=>({isOpen:n==t,isActive:e.isActive});class AI extends Gc.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(e){super(e);const{items:n}=this.props;this.state={itemStatusMap:G2({},n)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(ss,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(ss,this.handleNavtoTab)}handleNavtoTab(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;if(n===this.props.blockId){const r=this.props.items.findIndex(({id:m})=>m===o),{items:a,onStep:l}=this.props,{itemStatusMap:d}=this.state,c=a[r].id,u=SI(c);this.setState({itemStatusMap:wr()(u,d)}),open&&l(a[r])}}UNSAFE_componentWillReceiveProps(e){const n=e.items,o=Tt()(n)!==Tt()(this.props.items);!e.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference():o&&this.rebuildItemStatusMap(n)}updateMapForOneAtATimePreference(){const{itemStatusMap:e}=this.state,{items:n}=this.props,o=vI()(a=>e[a.id].isOpen,n);if(!o)return;const r=NI(o.id);this.setState({itemStatusMap:wr()(r,e)})}rebuildItemStatusMap(e){const n=this.state.itemStatusMap;this.setState({itemStatusMap:G2(n,e)})}handleItemClick(e){const{items:n,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,l=n[e].id,d=II(l,o);this.setState({itemStatusMap:wr()(d,a)}),open&&r(n[e])}render(){const{items:e,settings:n,editable:o,labels:r,lessonId:a,blockId:l,enableVideoPlaybackSpeed:d}=this.props,{itemStatusMap:c}=this.state,{zoomOnClick:u}=n,m=Object.values(c)?.find(p=>p.isOpen)?"open":"closed";return(0,s.jsx)("div",{className:"blocks-accordion__wrapper","data-accordion-status":m,children:e.map((p,f)=>(0,s.jsx)(kI,{blockId:l,disableZoom:!u,editable:o,focused:c[p.id].isActive,index:f,item:{...p,enableVideoPlaybackSpeed:d},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,f),open:c[p.id].isOpen},p.id))})}}const PI=K2(AI);class RI extends Gc.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(e){super(e),this.id=Kc()(),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 n=this.content;if(n&&(n.classList.add("blocks-accordion__content--visible"),!e.open&&this.props.open)){const o=n.parentElement,r=o?.getBoundingClientRect()?.top,a=r>0&&r<window.innerHeight,l=zs()?"instant":"smooth";a||o.scrollIntoView({behavior:l,block:"start"})}}toggle(e){const{blockId:n,index:o}=this.props,r=ht.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(n.toString())&&a.test(r)&&ht.pause(),this.props.onClick(),e.preventDefault()}renderTitle(e){const{title:n}=this.props.item;return(0,s.jsx)(Nt,{className:"blocks-accordion__title",id:e,value:n})}renderDescription(){const{description:e=""}=this.props.item;return(0,s.jsx)(ps,{className:"blocks-accordion__description",value:e||""})}render(){const{blockId:e,blockSettings:n,editable:o,disableZoom:r,getL10nValue:a,hasAudioExpansionFlag:l,index:d,item:c,focused:u,labels:m,lessonId:p,open:f,renderDescription:g=this.renderDescription,renderTitle:v=this.renderTitle}=this.props,{settings:C={},enableVideoPlaybackSpeed:y}=c,b=a(c.media)??{},x=Jo(b,n.audioPosition,l),L=Object.assign({},C,{disableZoom:r,fullEmbed:!0}),E=n?.backgroundType===I.xj.ACCENT||n?.backgroundType===I.xj.IMAGE,S=z()("blocks-accordion__item",{"blocks-accordion__item--closed":!f}),N=z()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":f&&u&&!E}),A=z()("blocks-accordion__content",{"blocks-accordion__content--will-enter":f,"brand--border":f&&u&&!E}),k=`title-${this.id}`,R=`panel-${this.id}`,W=n?.headingLevel,D=W?`h${W}`:"h2";let w=(0,s.jsxs)("button",{"aria-controls":R,"aria-expanded":f,className:N,onClick:this.toggle,onKeyDown:!o&&kh(this.toggle)||null,type:"button",children:[v(k),(0,s.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,s.jsx)(yt,{className:"blocks-accordion__toggler",name:f?"minus":"plus"})})]});return o&&(w=(0,s.jsxs)("div",{className:N,children:[v(k),(0,s.jsx)("button",{"aria-controls":R,"aria-expanded":f,"aria-label":f?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,s.jsx)(yt,{className:"blocks-accordion__toggler",name:f?"minus":"plus"})})]})),(0,s.jsxs)(un,{className:S,tag:"section",children:[(0,s.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,s.jsx)(D,{children:w})}),(0,s.jsx)("section",{"aria-labelledby":k,className:A,id:R,ref:Z=>{this.content=Z},children:x.renderOrder.map((Z,B)=>{if(Z==="text")return g();const F={blockId:e,hasPadding:!1,imageMaxHeight:1e3,item:c,labels:m,lessonId:p,enableVideoPlaybackSpeed:y,opts:L},G=vu(b),ue=G==="image-with-audio",ce=ue?"left":"center",Se={audio:{media:x.audioOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${d}-audio`,className:"blocks-accordion__audio"},image:{media:x.imageOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${d}-image`,className:z()(`blocks-accordion__${G}`,{[`blocks-accordion__${G}--${ce}`]:ue})},video:{media:x.videoOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${d}-video`,className:z()(`blocks-accordion__${G}`,{[`blocks-accordion__${G}--${ce}`]:ue})},embed:{media:x.embedOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${d}-embed`,className:z()(`blocks-accordion__${G}`,{[`blocks-accordion__${G}--${ce}`]:ue})},overlay:{media:b,isOverlayAudio:!0,index:`${e}-${d}-overlay`,className:z()(`blocks-accordion__${G}`,{[`blocks-accordion__${G}--${ce}`]:ue})}}[Z];if(!Se)return null;const{className:Oe,...We}=Se;return(0,s.jsx)("div",{className:z()(Oe,{"audio-on-top":this.props.blockSettings.audioPosition==="top"||!l}),children:(0,s.jsx)("div",{className:"blocks-accordion__figure",children:(0,s.jsx)(dn,{...F,...We})})},`${Z}-${B}`)})})]})}getMediaContainerClasses(e,n){const o=this.props.getL10nValue(this.props.item.media)??{},r=vu(o),a=r==="image-with-audio",l=a&&!Array.isArray(o)?o?.image?.align:"left";return z()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${l}`]:a,"blocks-accordion__media-container":e,"blocks-accordion__media-container--audio-overlay":n})}}const MI=t=>(0,s.jsx)(RI,{...t}),kI=K2(fc("rise-audio-release","hasAudioExpansionFlag")(qt(MI))),vu=t=>{const{image:e,embed:n,video:o,audio:r}=t;return e&&!r?"image":n&&!r?"embed":o?"video":r&&!e&&!n?"audio":e&&r?"image-with-audio":r&&n?"audio-and-embed":"image"};class OI extends Gc.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 n=this.props.activeIndex;this.state={activeIndex:n,activeTouch:!1,activeMouse:!1},this.tabs=[],this.id=Kc()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=ml()(this.handleControls.bind(this),100)),window.addEventListener(ss,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=ml()(this.handleControls.bind(this),50))}handleNavtoTab(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;n===this.props.blockId&&(this.tabsHeaderEl.scrollIntoView({behavior:"smooth",block:"start"}),this.setState({activeIndex:this.props.items.findIndex(({id:r})=>r===o)},()=>{R0(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(ss,this.handleNavtoTab)}setActive(e){this.setState({activeIndex:e});const{blockId:n}=this.props,o=ht.playerId;this.state.activeIndex!=e&&o&&o.includes(n.toString())&&ht.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:n}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,l=(e==="next"?n?$2():gu():n?gu():$2())(r,o*.8);this.tabsHeaderEl.scrollTo({left:l,behavior:"smooth"})}arrowPrevInset(e){const n=this.arrowPrevEl.getBoundingClientRect(),o=n.right-e,r=n.left-e;return o+r}focusTab(e){e.currentTarget?.scrollIntoView({behavior:"smooth",block:"nearest"})}handleTabKeyDown(e,n){const{isRTL:o}=this.props;let r=!1,a;Na(n)?(r=!0,a=o?e+1>this.tabs.length-1?0:e+1:e-1>=0?e-1:this.tabs.length-1):Aa(n)&&(r=!0,a=o?e-1>=0?e-1:this.tabs.length-1:e+1>this.tabs.length-1?0:e+1),r&&n.preventDefault(),a!=null&&(this.tabs[a]?.focus(),this.setActive(a))}renderHeader(e,n){const{activeIndex:o,activeTouch:r,activeMouse:a}=this.state,l=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,d=z()("blocks-tabs__header-wrap",{touch:r,mouse:a&&l});return(0,s.jsxs)("div",{className:d,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onTouchStart:this.handleTouchStart.bind(this),children:[(0,s.jsx)("div",{className:"blocks-tabs__header",ref:c=>{this.tabsHeaderEl=c},role:w7,children:e.map(({title:c},u)=>{const m=e.length===1||u===o,p=e.length>1&&u+1===o,f=e.length>1&&u-1===o,g=z()("blocks-tabs__header-item",{"brand--color":m&&!n,"blocks-tabs__header-item--active":m,"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,s.jsx)("button",{"aria-controls":C,"aria-selected":m,className:g,id:v,onClick:this.setActive.bind(this,u),onFocus:this.focusTab.bind(this),onKeyDown:this.handleTabKeyDown.bind(this,u),ref:y=>{this.tabs[u]=y},role:B7,tabIndex:m?void 0:-1,type:"button",children:(0,s.jsx)(Nt,{value:c})},v)})}),(0,s.jsxs)("div",{className:"blocks-tabs__controls",ref:c=>{this.tabControls=c},children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",onClick:this.scrollTabs.bind(this,"previous"),ref:c=>{this.arrowPrevEl=c},children:(0,s.jsx)(yt,{className:"blocks-tabs__arrow-icon",name:"chevron-right-solid"})}),(0,s.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",onClick:this.scrollTabs.bind(this,"next"),ref:c=>{this.arrowNextEl=c},children:(0,s.jsx)(yt,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:e}){return(0,s.jsx)(ps,{className:"blocks-tabs__description",value:e})}renderItem(e,n,o){const{blockId:r,getL10nValue:a,hasAudioExpansionFlag:l,labels:d,lessonId:c,renderDescription:u=this.renderDescription}=this.props,{activeIndex:m}=this.state,p=m===n,{settings:f={},enableVideoPlaybackSpeed:g}=e,v=a(e.media)??{},C=Jo(v,this.props.settings.audioPosition,l,!1),y=z()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":p}),b=Object.assign({},f,{disableZoom:o,fullEmbed:!0}),x=`tabpanel-${this.id}-${n}`,L=`tab-${this.id}-${n}`,E=vu(v),S=E==="image-with-audio",N=E==="audio-and-embed",A=S?v?.image?.align:"left",k=N?"embed-border":void 0;return(0,s.jsx)("div",{"aria-labelledby":L,className:y,id:x,role:D7,tabIndex:p?0:void 0,children:C.renderOrder.map((R,W)=>{if(R==="text")return(0,s.jsx)("div",{className:"blocks-tabs__description",children:u(e)},`text-${W}`);const D={blockId:r,embedClass:k,hasPadding:!1,imageMaxHeight:1e3,item:e,labels:d,lessonId:c,enableVideoPlaybackSpeed:g,opts:b},Z={audio:{media:C.audioOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-audio`,className:"blocks-tabs__audio"},image:{media:C.imageOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-image`,className:z()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${A}`]:S})},video:{media:C.videoOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-video`,className:z()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${A}`]:S})},embed:{media:C.embedOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-embed`,className:z()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${A}`]:S})},overlay:{media:v,isOverlayAudio:!0,index:`${r}-${n}-overlay`,className:z()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${A}`]:S})}}[R];if(!Z)return null;const{className:B,...F}=Z;return(0,s.jsx)("div",{className:z()(B,{"audio-on-top":this.props.settings.audioPosition==="top"||!l}),children:(0,s.jsx)("div",{className:"blocks-tabs__figure",children:(0,s.jsx)(dn,{...D,...F})})},`${R}-${W}`)})},x)}render(){const{animateBlockEntrance:e,isLearner:n,items:o,settings:r,enableVideoPlaybackSpeed:a}=this.props,{backgroundType:l,cardMode:d,entranceAnimation:c,zoomOnClick:u}=r,m=z()("blocks-tabs",{"blocks-tabs--no-animation":!c}),p=o.length>0?o.slice(0,EI):[],f=d===so.TRANSPARENT&&(l===I.xj.ACCENT||l===I.xj.IMAGE),g=z()("blocks-tabs__container",{"blocks-tabs--single":p.length===1});return(0,s.jsx)(Ft,{className:m,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:n,children:(0,s.jsx)("div",{className:g,children:(0,s.jsx)("div",{className:"blocks-tabs__row",children:(0,s.jsx)("div",{className:"blocks-tabs__col",children:(0,s.jsx)("div",{className:"blocks-tabs__wrapper",ref:v=>{this.container=v},children:(0,s.jsxs)(un,{children:[this.renderHeader(p,f),(0,s.jsx)("div",{className:"blocks-tabs__content",children:p.map((v,C)=>this.renderItem({...v,enableVideoPlaybackSpeed:a},C,!u))})]})})})})})})})}}const wI=t=>(0,s.jsx)(OI,{...t}),DI=Vc(qt(fc("rise-audio-release","hasAudioExpansionFlag")(wI))),BI=qe()(null,["payload","result"]),HI=t=>t.thumbnail,zI=t=>t.meta?.version,Q2=t=>t.src??null,FI=t=>t.processing,UI=ts()(["payload","result","completion"]),VI=qe()(!1,["payload","result","score"]),WI=_o()((t,e)=>{if(!e)return!1;const{majorLimit:n,minorLimit:o}=t,[r,a]=e.split("."),l=parseInt(r)===n&&Number(a)>=o;return Number(r)>n||l}),$I={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},KI=t=>{const e=dt()(t.split("-"));return $I[e]},GI=WI({majorLimit:3,minorLimit:13}),QI=(t,e,n)=>{const o=e&&KI(n);return o?`${t}${o}`:`${t}?rise=true`};var ZI=i(59288);class YI extends ZI.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:n,onStep:o}=this.props,r=dt()(n),a=e(r?.media)?.storyline??{},l=zI(a);GI(l)||o(r)}canFullscreen(e){const{blockId:n,hasManySlBlocks:o}=this.props,{windowName:r}=e;return n===r||!o()}handleMessages(e){const{data:n}=e,{type:o}=n,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[o];r&&r(n)}handleCourseUpdate(e){const{items:n,onStep:o,blockId:r}=this.props,a=dt()(n),{windowName:l}=e;if(r===l&&UI(e)){const{score:d,success:c}=BI(e);if(VI(e)){const u=d.scaled*100;(0,we.jr)(r,c,!0,u)}else(0,we.jr)(r,!0,!1);o(a)}}handleFullscreenEnter(e){const{menuOpen:n,handleStorylineFullscreen:o}=this.props;this.canFullscreen(e)&&(n&&o(!0),this.setState({fullscreen:!0,reopenMenu:n}))}handleFullscreenExit(e){const{handleStorylineFullscreen:n}=this.props,{reopenMenu:o}=this.state;this.canFullscreen(e)&&(o&&n(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}render(){const{animateBlockEntrance:e,getL10nValue:n,isLesson:o,isLearner:r,isOnlyBlockInStep:a,items:l,labels:{a11yBlockStoryline:d},settings:c,takingSnapshot:u}=this.props,m=dt()(l),p=n(m?.media)?.storyline??{},{mediaWidth:f="0"}=c,g=a?{}:{display:o&&!Q2(p)?"none":"block"},v=z()("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,s.jsx)(Ft,{className:"blocks-storyline",style:g,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:r,children:(0,s.jsx)("div",{"aria-label":d,className:v,role:"group",children:u?this.renderThumbnail(p):this.renderStorylineBlock(p)})})})}renderStorylineBlock(e){return FI(e)?this.renderProcessing():Q2(e)?this.renderItem(e):this.renderEmpty()}renderThumbnail(e){const n=HI(e),o=`${(0,Pe._$)("CDN_USER_CONTENT_URI")}/${n}`;return(0,s.jsx)("img",{alt:"Thumbnail",src:o})}renderEmpty(){const{renderEmpty:e}=this.props;return typeof e=="function"?e():null}renderItem(e){const{fullscreen:n}=this.state,{blockId:o,isLesson:r,previewType:a}=this.props,{src:l,meta:d,title:c}=e,{player:u}=d,m=QI(l,r,a),f={paddingBottom:`${u.height/u.width*100}%`},g=z()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":n});return(0,s.jsx)("div",{className:"blocks-storyline__item",style:f,children:(0,s.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",className:g,loading:"lazy",name:o.toString(),ref:v=>{this.iframe=v},src:(0,Pe.o1)(m),title:c})})}renderProcessing(){const{renderProcessing:e}=this.props;return typeof e=="function"?e():null}}const _I=qt(YI);var XI=i(67371),Z2=i.n(XI),aG=i(56552),JI=i(25578),Y2=i.n(JI),qI=i(23117),eS=i.n(qI),tS=i(37600),Qc=i.n(tS);function Cu(t,e,n="..."){const o=t?t.toString():"";return o.length>e?o.substr(0,e-1)+n:o}const iG=t=>when(e=>length(e)>t,slice(0,t)),sS=null,nS=t=>sS.test(t),oS=t=>t>=0,rS=t=>t<=100,lG=t=>t==="",cG=t=>nS(t)&&rS(t)&&oS(t),dG=t=>String(Number(t)),_2=Re()(Pi()(""),Z2()(eS(),0)),uG=Re()(Pi()(" "),ws()(_2),Y2()(" ")),X2=Re()(Pi()(" "),Y2()(/(?=[A-Z]|^)/)),hG=Re()(_2,Qc(),X2),mG=Re()(Qc(),X2);var aS=i(59288);const Zc=ae("blocks-button"),J2=I.zV,iS=({description:t})=>(0,s.jsx)(Nt,{className:Zc("description"),value:t}),lS=({color:t,destination:e,editBlock:n,handleNavigate:o,isEditable:r,label:a,type:l})=>{const d=(0,Ie.d_)(),c=(0,Ie.DX)()?.externalLinksDisabled,u=(0,Ie.DX)()?.theme,m=(0,Ie.kJ)(),{mode:p}=(0,Ne.g)(),f=(0,Ns.y4)(),g=Bs(),v=(0,Ie.vU)(),C=(0,Wa.htmlDecode)((0,Xn.QZ)((0,xt.QQ)(a))),y=Cu(C,18),b=l==="email",x=l==="exit-course",L=l==="lesson",E=l==="relative-url",S=Zc("button"),N=!t||t===""||t===m,A=t??m,k={},R=(0,Ie.Ge)(m),W=N&&u?.accentContrast===I.Em.AUTO?I.Em.AUTO:R,D=g?.buttonColorContrast??W,w=g?.buttonRadius??null,Z=g?.buttonWidth??null,B=cn({backgroundColor:A,contrast:D});Object.assign(k,{...!N&&{"--color-button-bg":A},...!N&&{"--color-button-text":B},...!N&&{"--color-button-border":"transparent"},...w&&{"--radius-button":`${Number(w)}px`},...Z&&{"--width-button":`${Number(Z)}rem`}});const F=c&&yr(e),G=(0,h.useCallback)(()=>{f({payload:!0,type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL"})},[f]),ue=(0,h.useCallback)(()=>{if(r)n();else{if(F)return G();if(x)return(0,Pe.NS)()}},[n,F,r,x,G]),ce=(0,h.useCallback)(()=>{o(e)},[e,o]);if(r||F||x)return(0,s.jsx)("button",{"aria-label":C,className:S,onClick:ue,onKeyDown:kh(ue),style:k,tabIndex:sl,type:"button",children:y});if(L){const le=p?`/${p}`:"",Se=`/lessons/${e}${le}`,Oe=e===""?"#":Se;return(0,s.jsx)(Mn,{"aria-label":C,className:S,onClick:ce,style:k,to:Oe,children:y})}else{const le=E?e:Or(e),Se=b?`mailto:${e}?subject=${d}`:le,Oe=on.isIphoneSafari?"_top":"_self",We=b?Oe:"_blank",ze=We==="_blank",Ve=ze?"noopener noreferrer":void 0,it=v?.a11yNoticeLinkNewTab||"(opens in a new tab)",tt=ze?`${C} ${it}`:C;return(0,s.jsx)("a",{"aria-label":tt,className:S,href:Se,rel:Ve,style:k,tabIndex:sl,target:We,children:y})}},q2=t=>{const{animateBlockEntrance:e,editable:n,editBlock:o=()=>{},handleNavigate:r,isLearner:a,items:l=[],renderDescription:d=iS,settings:c}=t,{buttonAlignment:u=I.Ht,buttonColor:m,buttonShowDescription:p=!0,buttonStack:f,entranceAnimation:g,paddingBottom:v=3,paddingTop:C=3}=c,y=Zc(null,{"no-animation":!g,description:p==!0,center:u==="center",left:u==="left",right:u==="right",rounded:J2==="rounded"}),b={paddingTop:`${Number(C)*10}px`,paddingBottom:`${Number(v)*10}px`},x=l?.map(({id:L,description:E,...S})=>{const N=(0,s.jsx)(lS,{...S,color:m,editBlock:o,handleNavigate:r,isEditable:n}),A=p&&d({id:L,description:E});return(0,s.jsx)("section",{className:Zc("container"),children:u==="left"&&p?(0,s.jsxs)(s.Fragment,{children:[N,A]}):(0,s.jsxs)(s.Fragment,{children:[A,N]})},L)})??null;return f?(0,s.jsx)("div",{className:y.toString(),style:b,children:x}):(0,s.jsx)(Ft,{className:y.toString(),style:b,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:a,children:(0,s.jsx)("div",{className:"blocks-button",children:x})})})},cS=q2;class dS extends aS.Component{renderButtonDelegate;constructor(e){super(e),this.renderButtonDelegate=this.renderButton.bind(this)}static get defaultProps(){return{items:[],lessonId:"",blockId:"",editBlock:()=>{}}}renderButton(e,n){const{blockId:o,editable:r,editBlock:a,handleNavigate:l,isLearner:d,lessonId:c}=this.props;return(0,s.jsx)(q2,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,handleNavigate:l,isLearner:d,items:[e],lessonId:c,settings:n,type:"right"})}render(){const{animateBlockEntrance:e,isLearner:n,items:o,settings:r,renderButton:a=this.renderButtonDelegate}=this.props,{entranceAnimation:l,buttonShowDescription:d=!0,buttonAlignment:c=I.Ht}=r,u=z()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!l,"blocks-button--description":d==!0,"blocks-button--center":c==="center","blocks-button--left":c==="left","blocks-button--right":c==="right","blocks-button--rounded":J2==="rounded"}),m={buttonColor:r.buttonColor||this.props.color,buttonStyle:r.buttonStyle,buttonStack:!0,buttonShowDescription:d,buttonAlignment:c};return(0,s.jsx)(Ft,{className:u,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:n,children:o.map(p=>(0,s.jsx)(h.Fragment,{children:a(p,m)},p.id))})})}}var uS=i(5803),hS=i.n(uS);const mS=kn()("partner-content-block-card__"),pS=t=>{const{backgroundColor:e,blockId:n,courseId:o,partnerContent:r,publishedAt:a,tenantId:l}=t,{data:d,type:c}=r,{authors:u,bookImage:m,bookTitle:p,buyLink:f,internalId:g,nbicLink:v}=d,C={blockId:n,courseId:o,partnerContentId:g,tenantId:l,contentSubtype:c};return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"More Info"}),(0,s.jsxs)("ol",{className:"partner-content-block-card",role:"list",children:[(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Ih,{authors:u,backgroundColor:e,block:!0,bookImage:m,bookTitle:p,buyLink:f,publishedAt:a,trackingInfo:C})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)("div",{className:mS("divider")})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Sh,{backgroundColor:e,block:!0,link:v,publishedAt:a,trackingInfo:C})})]})]})};var Yc=i(59288);const _c=ae("block-audio"),$a=ae("block-video"),xu=ae("block-embed"),En=ae("block-attachment");class fS extends Yc.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:n}=this.state,o=_c("caption",{hidden:!n}).toString();return(0,s.jsx)(ps,{className:o,value:e})}onLoad(){this.setState({loaded:!0})}renderItem(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,loadMedia:l,progress:d,recordMediaPlayheadPosition:c,renderCaption:u=this.renderCaptionDelegate}=this.props,m=o(e.media)??{},{id:p}=e,f=m?.tmp?.audio?.key||m?.audio?.key,g=m?.tmp?.audio?.transcript||m?.audio?.transcript,v=`${a}-${n}-${p}`,C=qe()(0,["items",n,"items",p,"audioVideoPlayhead"],d),y=lu({lessonId:a,refs:`items:${n}/items:${p}`});return(0,s.jsxs)("div",{className:_c("item"),children:[l&&(0,s.jsx)(j2,{audioVideoPlayhead:C,id:v,item:e,labels:r,mediaSrc:f,onAIUploadFinish:this.props.onAIUploadFinish,onEnd:this.handleOnEnd.bind(this,p),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,e),onTranscriptClose:this.props.closeTranscript,recordMediaPlayheadPosition:c,refs:`items:${n}/items:${p}`,transcript:g,uploadId:y},v),u(e)]},p)}handleOnEnd(e){this.props.onStep({id:e})}onTranscriptClick(e){const{blockId:n}=this.props;return this.props.openTranscript?.({blockId:n,item:e})}render(){const{animateBlockEntrance:e,isLearner:n,items:o,settings:r}=this.props,{entranceAnimation:a}=r,l=_c({"no-animation":!a}).toString(),d=o.length>0?o.slice(0,1):[];return(0,s.jsx)(Ft,{className:l,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:n,children:(0,s.jsx)("div",{className:_c("wrapper"),children:d.map(c=>this.renderItem(c))})})})}}const gS=l2(qt(fS));class vS extends Yc.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:n,editable:o,enableVideoPlaybackSpeed:r,labels:a,progress:l,recordMediaPlayheadPosition:d,settings:c,takingSnapshot:u,type:m}=this.props,{captions:p,captionUID:f,id:g,key:v,keyId:C,poster:y,subtitle:b}=e,x=v||e.src,L=qe()(0,["items",n,"items",g,"audioVideoPlayhead"],l),E=(0,s.jsx)("div",{children:(0,s.jsx)(bn,{alt:"Video Poster",className:$a("poster"),src:y})}),S=(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:$a("placeholder")})}),N=(0,s.jsx)("div",{children:(0,s.jsx)(M2,{audioVideoPlayhead:L,canAdjustPlaybackSpeed:r,canRestrictSeek:c.forwardSeekRestricted&&!o&&!l?.isComplete,captions:p,captionUID:f,id:C,labels:a,onLoad:this.onVideoLoad,poster:y,progressChanged:this.handleProgressChanged.bind(this,g),recordMediaPlayheadPosition:d,src:x,subtitle:b,type:v?"video":m},C)});return u?E:x?N:S}renderCaption({caption:e}){const{loaded:n}=this.state,o=$a("caption",{visible:n}).toString();return(0,s.jsx)(ps,{className:o,value:e})}renderItem(e){const{courseId:n,currentLocale:o,lessonId:r,blockId:a,loadMedia:l,partnerContent:d,publishedAt:c,settings:u,tenantId:m,renderCaption:p=this.renderCaptionDelegate,getL10nValue:f}=this.props,{loaded:g}=this.state,{backgroundColor:v,mediaWidth:C="1"}=u,{id:y,media:b}=e,x="partnerContentId"in e?e.partnerContentId:void 0,L=f(b)??{},{customVideo:E={},tmp:S={},video:N={}}=L,A=La()("poster",N)?N:Mo()(N,E),k=La()("poster",S.video||{})&&S.video,{captionUID:R,captions:W,key:D,poster:w,src:Z,subtitle:B}=(0,Pe.Hm)()?A:k||A,F=`${r}-${a}-${y}-${o}`,G={captionUID:R,captions:W,id:y,key:D,keyId:F,partnerContentId:x,poster:w,src:Z,subtitle:B},ue=es()(nt()("id",x),d)||{},ce=ue&&!Jt()(ue),le=$a("item",{small:C==="0",medium:C==="1",full:C==="2"});return(0,s.jsxs)("div",{className:le,children:[(0,s.jsxs)("figure",{"data-l10n-id":b?.l10nId,children:[l&&this.renderVideo(G),g&&(0,s.jsx)("figcaption",{className:$a("wrapper"),children:p(e)})]}),ce&&(0,s.jsx)(pS,{backgroundColor:v,blockId:a,courseId:n,partnerContent:ue,publishedAt:c,tenantId:m})]},y)}handleProgressChanged(e,{percentComplete:n}){n>=100&&this.props.onStep({id:e})}render(){const{animateBlockEntrance:e,isLearner:n,items:o,settings:r}=this.props,{entranceAnimation:a}=r,l=$a({"no-animation":!a}).toString(),d=o.length>0?o.slice(0,1):[];return(0,s.jsx)(Ft,{className:l,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:n,children:d.map(c=>this.renderItem(c))})})}}const e3=(0,It.wZ)(qt(vS));class CS extends Yc.Component{static get defaultProps(){return{items:[],editable:!1,lessonId:"",blockId:"",settings:{}}}renderItem(e,n){const{id:o,settings:r={}}=e,a=this.props.getL10nValue(e.media)??{},l="embed"in a?a.embed:void 0,{loadMedia:d,labels:c,settings:u}=this.props,{showMetaData:m}=r,{cardMode:p,showBorder:f=!0}=u,g=xu("item",{border:f}).toString();return(0,s.jsx)(un,{className:g,disabled:!f&&p==so.TRANSPARENT,tag:"section",children:d&&(0,s.jsx)(P2,{data:l,id:`${n}-${o}`,isLesson:!0,labels:c,showMetaData:m})},o)}render(){const{animateBlockEntrance:e,blockId:n,getL10nValue:o,isLearner:r,items:a,settings:l}=this.props,{entranceAnimation:d,mediaWidth:c="0"}=l,u=o(a?.[0]?.media);if(!u)return null;const m=pT(u)!=="link",p=xu({"no-animation":!d}).toString(),f=xu("wrapper",{medium:m&&c==="1",full:m&&c==="2"}),g=a.length>0?a.slice(0,1):[];return(0,s.jsx)(Ft,{className:p,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:r,children:(0,s.jsx)("div",{className:f,children:g.map(v=>this.renderItem(v,n))})})})}}const xS=qt(Cc()(CS));class yS extends Yc.Component{get attachment(){const e=this.props.items[0].media;return this.props.getL10nValue(e)?.attachment??{}}render(){const{animateBlockEntrance:e,isLearner:n}=this.props;return(0,s.jsx)(Ft,{children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:n,children:(0,s.jsx)("div",{className:"block-text--onecol",children:(0,s.jsx)("div",{className:"block-text__container",children:(0,s.jsx)("div",{className:"block-text__row",children:(0,s.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:n,originalUrl:o,size:r}){const{blockId:a,externalLinksDisabled:l,showExternalLinksModal:d}=this.props,c=(0,Pe.o1)(e),u=l?"":void 0,m=l?d:void 0,p=l?void 0:c,f=l?void 0:"noopener noreferrer",g=l?"button":void 0,v=l?void 0:"_blank",C=En({}).mix("brandHover").toString(),y=En("info");return(0,s.jsxs)(un,{"aria-labelledby":`attachment-name-${a} attachment-icon-${a}`,className:C,"data-external":u,download:o,href:p,onClick:m,rel:f,role:g,tag:"a",target:v,children:[(0,s.jsxs)("div",{className:En("main"),children:[(0,s.jsx)("div",{className:En("icon"),id:`attachment-icon-${a}`,children:this.fileIcon(n)}),(0,s.jsxs)("div",{className:y,children:[(0,s.jsx)(Nt,{className:En("title").toString(),id:`attachment-name-${a}`,value:o}),(0,s.jsx)("div",{className:En("size").toString(),children:hS()(r,{round:1})})]})]}),(0,s.jsx)("div",{className:En("rest"),children:(0,s.jsx)(j6,{className:"brandHover__target--fill"})})]})}renderNoFile(){const e=En({none:!0}).toString(),n=En("info");return(0,s.jsx)(un,{className:e,children:(0,s.jsxs)("div",{className:En("main"),children:[(0,s.jsx)("div",{className:En("icon"),children:(0,s.jsx)(M1,{"aria-label":"File"})}),(0,s.jsxs)("div",{className:n,children:[(0,s.jsx)("div",{className:En("title").toString(),children:"File Attachment Block"}),(0,s.jsx)("div",{className:En("size").toString(),children:"No file added"})]})]})})}fileIcon(e){const{labels:n}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,l=/powerpoint|presentation/,d=/rtf|richtext/,c=/zip/;return o.test(e)?(0,s.jsx)(P6,{"aria-label":n?.a11yExcelIcon}):r.test(e)?(0,s.jsx)(S6,{"aria-label":n?.a11yPDFIcon}):a.test(e)?(0,s.jsx)(I6,{"aria-label":n?.a11yWordIcon}):l.test(e)?(0,s.jsx)(N6,{"aria-label":n?.a11yPPTIcon}):d.test(e)?(0,s.jsx)(A6,{"aria-label":n?.a11yRTFIcon}):c.test(e)?(0,s.jsx)(R6,{"aria-label":n?.a11yZipIcon}):(0,s.jsx)(M1,{"aria-label":n?.a11yFileIcon})}}const bS=Kl()({externalLinksDisabled:ts()(["course","externalLinksDisabled"])}),ES={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})};function LS(t){const e=(0,Ns.Ls)(bS,ES)(t),n=Cc()(e);return qt(n)}const TS=LS(yS),jS=ae("continue-btn"),yu=({bgColor:t="brand",href:e,onClick:n,text:o})=>{const r=jS({gray:t==="gray",black:t==="black"}).mix("brand--ui");return e?(0,s.jsx)(Mn,{className:r,"data-continue-btn":"",onClick:n,to:e,children:(0,s.jsx)(yn,{value:o})}):(0,s.jsx)("button",{className:r,"data-continue-btn":"",onClick:n,type:"button",children:(0,s.jsx)(Nt,{value:o})})},t3=({bgType:t,text:e,iconType:n="locked"})=>{const o=z()("continue-hint",{"continue-hint--bg-transparent":t==="transparent"});return(0,s.jsxs)("div",{className:o,"data-continue-btn":"",children:[n==="locked"&&(0,s.jsx)(yt,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,s.jsx)("div",{className:"continue-hint__content",children:(0,s.jsx)(yn,{value:e})})]})};function IS({animateBlockEntrance:t,canContinue:e=!1,isComplete:n,isLearner:o,isOnlyBlockInStep:r,items:a=[],labels:l,onStep:d=()=>{},skipContinue:c=!1}){const u=(0,h.useRef)(void 0),m=(0,_t.A)(n),{announcePolite:p}=Ue(),f=a[0],{buttonColor:g,id:v,title:C,type:y}=f,b=!y||e||r&&n,x=!n||r,L=(0,h.useCallback)(()=>{d({id:v}),setTimeout(()=>{const E=u.current;E&&(E.setAttribute("aria-live","off"),E.setAttribute("role","status"),E.setAttribute("tabindex","-1"),E.innerHTML=l?.a11yStatusContinued,E.focus())},0)},[v,l,d]);return(0,h.useEffect)(()=>{!m&&n&&p?.(l?.a11yStatusAdditionalContent)},[p,n,l,m]),(0,s.jsxs)(s.Fragment,{children:[(x||c)&&(0,s.jsx)(Ft,{children:(0,s.jsx)(Bt,{animateBlockEntrance:t,isLearner:o,children:(0,s.jsx)("div",{className:"block-text--onecol",children:(0,s.jsx)("div",{className:"block-text__container",children:(0,s.jsx)("div",{className:"block-text__row",children:(0,s.jsxs)("div",{className:"block-text__col",children:[b&&(0,s.jsx)(yu,{bgColor:g,onClick:L,text:C}),!b&&(0,s.jsx)(t3,{text:f.completeHint})]})})})})})}),(0,s.jsx)("div",{className:"abs-center-x visually-hidden-always","data-continue-sr":"",ref:u})]})}var s3=i(92536),SS=i(94054),Xc=i.n(SS);const NS=ae("flashcard");class AS extends h.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,h.createRef)();render(){const{cardRef:e,handleFlip:n,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:l,backDescription:d,backMedia:c,backType:u,block:m,forceFlipped:p,frontDescription:f,frontMedia:g,frontType:v,id:C,index:y,isHidden:b,labels:x,lessonId:L,prefersKeyboardNavigation:E,settingShowHint:S,size:N,type:A,wrapElement:k,wrapRole:R},state:{areSidesReady:W,flipped:D,isMounted:w}}=this,Z=p||D,B=NS({large:N==="large",small:N==="small",flipped:Z,stack:A==="stack"});return(0,s.jsxs)(k,{"aria-hidden":!l,className:B,onClick:n,onTouchEnd:r,ref:e,role:R,children:[(0,s.jsx)(un,{activeIndex:a,allowTabNavigation:l,blockId:m?.id,blockType:A,description:f,index:y,isActiveSide:!Z,isAriaHidden:Z&&w&&W,isFlipped:Z,isHidden:b,itemId:C,labels:x,lessonId:L,media:g,onFlip:n,onReady:o,prefersKeyboardNavigation:E,settingShowHint:S,side:"front",size:N,tag:o3,type:v}),(0,s.jsx)(un,{activeIndex:a,allowTabNavigation:l,blockId:m?.id,blockType:A,description:d,index:y,isActiveSide:Z,isAriaHidden:!Z&&w&&W,isFlipped:Z,isHidden:b,itemId:C,labels:x,lessonId:L,media:c,onFlip:n,onReady:o,prefersKeyboardNavigation:E,settingShowHint:S,side:"back",size:N,tag:RS,type:u})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(ss,this.handleNavEvent)}componentDidUpdate(e,n){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:l}}=this;!n.hasFlippedOnce&&l&&a({id:r}),e.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener(ss,this.handleNavEvent)}handleNavEvent=e=>{const{path:n}=e.detail,{cardId:o}=Mi(n,["block","card"]);if(o===this.props.id){let r=!1;n.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!R0(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=e=>{const{block:n,dispatch:o,getL10nValue:r,index:a}=this.props,l=window.getSelection(),d=l.toString()&&this.cardRef.current?.contains(l.anchorNode);if(e.detail>1&&l.empty(),e&&e.target.closest("a")||d)return;const c=!this.state.flipped;this.setState({areSidesReady:!1,flipped:c,hasFlippedOnce:!0});const u=c?"back":"front",m=n.items?.[a]?.[u]?.media,f=r(m)?.audio?.transcript;o(al(f)),this.props.onFlip?.(this.props.index,c)};handleTouchEnd=e=>{e.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const n3=(0,Ns.Ls)()(gc(qt(AS))),Ka=ae("flashcard-side"),Jc=ae("flashcard-side-flip");class Dr extends h.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:Dr.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,s3.uniqueId)("flashcard-side")}state=Dr.initialState;longBottomObserver=void 0;readyTimeout=void 0;refDescription=(0,h.createRef)();refDescriptionBottom=(0,h.createRef)();refSide=(0,h.createRef)();refBtnTimeoutMouseLeave=(0,h.createRef)();checkDescriptionSizeDebounced;handleMouseEnterAudio=()=>{const{itemId:e,index:n,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${n}-${r}-flip-btn`);a&&o&&(a.style.opacity="0.6")};handleMouseLeaveAudio=()=>{const{itemId:e,index:n,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${n}-${r}-flip-btn`);a&&o&&(a.style.opacity="1")};render(){const{props:{activeIndex:e,allowTabNavigation:n,block:o,className:r,description:a,getL10nValue:l,hasAudioExpansion:d,index:c,itemId:u,media:m,isActiveSide:p,isAriaHidden:f,isFlipped:g,labels:v,lessonId:C,onFlip:y,prefersKeyboardNavigation:b,settingShowHint:x,side:L,size:E,style:S,type:N},refDescription:A,refDescriptionBottom:k,refSide:R,state:{isAtLongOverflowBottom:W,isLong:D,isLongOverflow:w,isTooltipVisible:Z,scrollbarWidthOffset:B}}=this,F=L==="front",G=L==="back",ue=E==="small",ce=E==="large",le=N==="description",Se=N==="fullimage",Oe=N==="image",We=F?v?.a11yBlockFlashcardFront:v?.a11yBlockFlashcardBack,ze=`items:${o?.id}/items:${u}/${F?"front":"back"}`,Ve=Ka({back:G,flipped:g,front:F,fullimage:Se}).mix(r),{image:it,audio:tt}=l(m)??{},xe=Ka("content",{small:ue,large:ce,front:F,fullimage:Se,image:Oe,"long-overflow":w,"long-overflow-bottom":W,"has-audio":!!tt}),Me=Jc({"audio-expansion":d}),Qe=Jc("btn",{"visually-hidden":!x,"prefers-keyboard":b,round:!!d}),Be=Jc("icon"),pt=Jc("tooltip",{visible:Z}),ot=Ka("img",{small:ue,large:ce,centered:Oe,full:Se}),Mt=Ka("description",{"has-audio":!!tt,long:D&&!w,"long-overflow":w,short:!D,large:ce}),zt=Ka("description-bottom"),kt=B==null?void 0:{right:B},Cs=it?.alt??`Image ${c+1}`,Ln=(0,Yt.ME)(it),Rs=`${this.id}-click-to-flip-text`,Tn=`${this.id}-image`,$n=`${this.id}-description`;return(0,s.jsxs)("div",{"aria-label":We,className:Ve,inert:f,ref:R,role:"group",style:S,tabIndex:-1,children:[(0,s.jsxs)("div",{className:xe,children:[(0,s.jsxs)("div",{className:Me,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:kt,children:[(0,s.jsx)("button",{"aria-labelledby":`${Rs} ${$n} ${Tn}`,className:Qe,id:`${u}-${c}-${L}-flip-btn`,onBlur:this.handleBtnBlur,onClick:y,onFocus:this.handleBtnFocus,tabIndex:n&&p?0:-1,type:"button",children:(0,s.jsx)(F6,{className:Be})}),(0,s.jsx)("div",{"aria-hidden":"true",className:pt,id:Rs,onClick:Sa,children:v?.blocksClickToFlip})]}),(Se||Oe)&&(0,s.jsx)(MS,{alt:Cs,className:ot,imageId:Tn,l10nId:(0,Rt.pP)(m),url:Ln}),le&&(0,s.jsxs)("div",{className:Mt,ref:A,tabIndex:p&&w?0:void 0,children:[(0,s.jsx)(Nt,{allowTabNavigation:n&&!f,id:$n,value:a}),w&&(0,s.jsx)("div",{className:zt,ref:k})]})]}),tt&&(0,s.jsx)("div",{className:Ka("audio-player",{text:le,image:Oe}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,s.jsx)(dn,{activeIndex:e,blockId:o.id,index:`${u}-${c}-${L}`,isOverlayAudio:Se,item:{id:u,media:m},itemIndex:c,labels:v,lessonId:C,media:m,refs:ze,renderMediaType:"audio",shouldPause:!p,side:L})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=Xc()(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,n){const{props:{allowTabNavigation:o,blockType:r,isFlipped:a,isActiveSide:l,isHidden:d,onReady:c,type:u}}=this;e.isHidden&&!d&&this.checkDescriptionSize(this.props),e.isFlipped!==a&&(l&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{c()},700)):clearTimeout(this.readyTimeout)),u==="description"&&this.handleUpdatesDescription(e,n),r==="stack"&&l&&!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=>{rn(e)&&this.state.isTooltipVisible&&this.setState({isTooltipVisible:!1})};handleUpdatesDescription=(e,n)=>{const{props:{isFlipped:o,isActiveSide:r},state:{isLongOverflow:a}}=this;e.isFlipped!==o&&r&&this.scrollDescriptionToTop(),this.handleUpdatesDescriptionSize(e,n),!n.isLongOverflow&&a?(this.setLongBottomObserver(),this.setScrollbarWidth()):n.isLongOverflow&&!a&&this.cleanupLongBottomObserver()};handleUpdatesDescriptionSize=(e,n)=>{const{INSERTING:o,DELETING:r}=Dr.descriptionActionTypes,{props:{description:a,size:l,type:d,getL10nValue:c},state:{descriptionAction:u,isLong:m,isLongOverflow:p}}=this,f=c(a)?.length||0,g=c(e.description)?.length||0;u!==o&&f>g?this.setState({descriptionAction:o}):u!==r&&f<g?this.setState({descriptionAction:r}):(u!==n.descriptionAction||m!==n.isLong||p!==n.isLongOverflow||l!==e.size||d!==e.type||f!==g)&&this.checkDescriptionSize(e)};checkDescriptionSize=e=>{const{DELETING:n}=Dr.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:l,isLongOverflow:d}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?l&&!d?this.setState({isLongOverflow:!0}):!l&&!d&&this.setState({isLong:!0}):(a===n||o!==e.size)&&this.setState(Dr.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 n=o=>{const r=o?.[0]?.isIntersecting??!1;this.setState({isAtLongOverflowBottom:!r})};this.longBottomObserver=new IntersectionObserver(n,{threshold:[0,1]}),this.longBottomObserver.observe(e)}};cleanupLongBottomObserver=()=>{this.longBottomObserver?.disconnect?.(),this.longBottomObserver=void 0};setScrollbarWidth=()=>{const e=this.refDescription.current;if(e){const n=e.offsetWidth-e.clientWidth;n>0&&this.setState({scrollbarWidthOffset:n})}}}const PS=fc("rise-audio-release","hasAudioExpansion")(t=>(0,s.jsx)(Dr,{...t})),o3=(0,Ns.Ls)()(gc(qt(t=>(0,s.jsx)(PS,{...t})))),RS=t=>{const{backgroundType:e,cardMode:n,customBackgroundColorContrast:o}=Bs(),r=(0,Ie.DX)()?.theme,a=jc(),d=e===I.xj.IMAGE&&a?.overlayColor===I.df.LIGHT,c=Dn(),u=r?.accentContrast,m=u===I.Em.AUTO,p=(0,h.useMemo)(()=>{let g="#fafafa";if(n===so.TRANSPARENT)switch(e){case I.xj.DARK:g="#525252";break;case I.xj.BLACK:g="#1a1a1a";break;case I.xj.IMAGE:d?g="rgba(0, 0, 0, 0.7)":g="rgba(255, 255, 255, 0.7)";break;case I.xj.ACCENT:case I.xj.COLOR:case I.xj.TINT:{let y=0;switch((0,ct.XC)(c)){case ct.lL.LIGHT:y=.5;break;case ct.lL.MED:y=-.35;break;case ct.lL.DARK:y=-.65;break;case ct.lL.NEAR_BLACK:y=.1;break}g=(0,ct.W8)(y,c)}}const v={"--color-background":g},C=e===I.xj.COLOR?o:u;if((e===I.xj.ACCENT||e===I.xj.COLOR)&&n===so.TRANSPARENT&&m){const y=cn({backgroundColor:g,contrast:C});v["--color-text"]=y}return v},[c,e,n,o,m,d,u]),f={...t,style:p};return(0,s.jsx)(o3,{...f})},MS=({alt:t,className:e,imageId:n,l10nId:o,url:r})=>{const a=(0,Zs.Ll)(t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(bn,{alt:a,className:e,"data-l10n-id":o,id:n,src:r}),!a&&(0,s.jsx)("span",{className:"visually-hidden-always",children:"No image alternative text"})]})};class kS extends h.Component{static defaultProps={editable:!1,isRTL:!1,items:[],onStep:()=>{},stack:!1};state={activeIndex:0,flipStateMap:{},prefersKeyboardNavigation:!0};render(){const{blockId:e,animateBlockEntrance:n,isHidden:o,isLearner:r,items:a,labels:l,lessonId:d,onStep:c,previewType:u,isRTL:m,settings:p,stack:f}=this.props,{activeIndex:g}=this.state,{prefersKeyboardNavigation:v}=this.state,{entranceAnimation:C,showHint:y}=p,b=z()("block-flashcards",{"block-flashcard--column":!f,"block-flashcard--stack":f,"block-flashcards--no-animation":!C}),x=a.length>2?"small":"large",L=u===Ze.o4.MOBILE_PORTRAIT||u===Ze.o4.MOBILE_LANDSCAPE;return(0,s.jsx)(Ft,{className:b,children:f?(0,s.jsx)(Bt,{animateBlockEntrance:n,isLearner:r,children:(0,s.jsx)("div",{className:"block-flashcard-carousel",children:(0,s.jsx)(Wc,{blockId:e,items:a,children:({carouselRef:E})=>(0,s.jsx)(Fc,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:m,labelCarousel:l?.a11yBlockFlashcardStack,labelCarouselRoleDesc:l?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:l?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:l?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:l?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:l?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlidePreposition:l?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:l?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),ref:E,shouldMouseEmulateTouch:L,shouldUseCounter:!0,shouldUseGoToSlide:!1,children:a.map((S,N)=>(0,s.jsx)(n3,{activeIndex:g,backDescription:S?.back?.description,backMedia:S?.back?.media,backType:S?.back?.type,frontDescription:S?.front?.description,frontMedia:S?.front?.media,frontType:S?.front?.type,id:S?.id,index:N,labels:l,lessonId:d,onFlip:this.handleFlip.bind(this),onStep:c,prefersKeyboardNavigation:v,settingShowHint:y,size:"large",type:"stack",wrapElement:"div"},S?.id))})})})}):(0,s.jsx)(Bt,{animateBlockEntrance:n,className:"block-flashcards__animation",isLearner:r,siblingDelay:.25,children:(0,s.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:a.map((E,S)=>(0,s.jsx)(n3,{activeIndex:g,backDescription:E?.back?.description,backMedia:E?.back?.media,backType:E?.back?.type,blockId:e,frontDescription:E?.front?.description,frontMedia:E?.front?.media,frontType:E?.front?.type,id:E?.id,index:S,isHidden:o,labels:l,lessonId:d,onStep:c,prefersKeyboardNavigation:v,settingShowHint:y,size:x,type:"grid",wrapElement:"li",wrapRole:"listitem"},E?.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&&!s9(e)&&this.setState({prefersKeyboardNavigation:!0})};handleMouseDown=()=>{this.state.prefersKeyboardNavigation&&this.setState({prefersKeyboardNavigation:!0})};handleFlip(e,n){this.setState(o=>({flipStateMap:{...o.flipStateMap,[e]:n}}))}handleCarouselChange(e){const{block:n,dispatch:o,getL10nValue:r}=this.props,{flipStateMap:a}=this.state,l=a[e]?"back":"front",d=n.items?.[e]?.[l]?.media,u=r(d)?.audio?.transcript;o(al(u)),this.setState({activeIndex:e})}}const r3=(0,Ns.Ls)()(Vc(qt(gc(kS))));var OS=i(55328),a3=i.n(OS),wS=i(43358),DS=i.n(wS);const i3=({canProceed:t,isReduceMotion:e,onNext:n,onSubmit:o,quizNext:r,quizSubmit:a,allowNext:l=!1})=>{const d=t?!0:void 0,c=t?void 0:o,u=t?-1:void 0,m=t?void 0:!0,p=t?n:void 0,f=t?void 0:-1,g=(0,h.useRef)(void 0),v=(0,_t.A)(t);(0,h.useEffect)(()=>{l&&!v&&t&&setTimeout(()=>{g.current?.focus?.({preventScroll:e})},0)},[l,t,e,v]);const C=z()("quiz-card__actions",{"quiz-card__actions--proceed":t}),y=z()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-always":!t});return(0,s.jsxs)("div",{className:C,children:[(0,s.jsx)("div",{className:"quiz-card__submit brand--ui",children:(0,s.jsx)("button",{"aria-disabled":d,"aria-hidden":d,className:"quiz-card__button",onClick:c,tabIndex:u,type:"button",children:a})}),(0,s.jsx)("br",{className:"visually-hidden-always",role:"presentation"}),l&&(0,s.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,s.jsx)("button",{"aria-disabled":m,"aria-hidden":m,className:y,onClick:p,ref:g,tabIndex:f,type:"button",children:r})})]})},BS=({children:t,isActive:e,isComplete:n,isTimedQuiz:o,style:r})=>(0,s.jsx)("div",{"aria-hidden":e?void 0:!0,className:HS({isActive:e,isComplete:n,isTimedQuiz:o}),"data-test-id":"quiz-card",inert:e?void 0:!0,style:r,children:(0,s.jsx)("div",{className:"quiz-card__container",children:(0,s.jsx)("div",{className:"quiz-card__row",children:(0,s.jsx)("div",{className:"quiz-card__main",children:t})})})}),HS=({isActive:t,isComplete:e,isTimedQuiz:n})=>z()("quiz-card",{"quiz-card--active":t,"quiz-card--done":e,"quiz-card--timed":n}),l3=BS;var bu=i(20387),Et=i(17862);const{FILL_IN_THE_BLANK:c3,MATCHING:zS,MULTIPLE_CHOICE:FS,MULTIPLE_RESPONSE:US}=Et.Ay;function VS({answers:t},e){return t.map(n=>e(n?.title)).filter(Boolean).join(", ")}function WS({answers:t,correct:e},n){const o=e!=null?(0,bu.propEq)("id",e):(0,bu.propEq)("correct",!0);return n(t.find(o)?.title)}function $S({answers:t,selection:e},n){return n(t?.[e]?.title)}function d3(t,e,n){return e.filter(t).reduce((o,r,a)=>{const l=n(r?.title)??"";return a===0?l:o+", "+l},"")}function KS({corrects:t,answers:e},n){return d3(r=>Array.isArray(t)?t.includes?.(r.id):r.correct,e,n)}function GS({answers:t,selection:e},n){return d3((r,a)=>e.includes(a),t,n)}function QS({answers:t,getL10nValue:e,selection:n,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:l}){const d=(0,bu.invertObj)(n);return t.map((c,u)=>{const m=e(c?.title)??"",p=e(c?.matchTitle)??"",f=d?.[u],g=e(t?.[f]?.title)??"";return l===Et.iV.INCORRECT?a+p+". "+r+": "+g+".":a+p+". "+o+": "+m+". "+r+": "+g+"."}).join(" ")}function Eu({correctAnswer:t,selectedAnswer:e,correctLabel:n,userLabel:o,revealAnswers:r}){return!t||!e||r===Et.iV.NONE?"":r===Et.iV.INCORRECT?o+": "+(0,Xn.QZ)(e)+".":n+": "+(0,Xn.QZ)(t)+". "+o+": "+(0,Xn.QZ)(e)+"."}function ZS({item:t,labels:e}){return t.type===c3?e?.quizAcceptableResponses:e?.a11yCorrectLive}function YS({getL10nValue:t,isComplete:e,item:n,selection:o,labels:r,revealAnswers:a}){if(!n||!e)return null;const l=n?.answers??[],d=n?.correct,c=n?.corrects,u=ZS({item:n,labels:r}),m=r?.a11yAnswerLive;switch(n.type){case zS:return QS({getL10nValue:t,answers:l,selection:o,correctLabel:u,userLabel:m,revealAnswers:a});case c3:return Eu({correctAnswer:VS({answers:l},t),selectedAnswer:o,correctLabel:u,userLabel:m,revealAnswers:a});case FS:return Eu({correctAnswer:WS({answers:l,correct:d},t),selectedAnswer:$S({answers:l,selection:o},t),correctLabel:u,userLabel:m,revealAnswers:a});case US:return Eu({correctAnswer:KS({corrects:c,answers:l},t),selectedAnswer:GS({answers:l,selection:o},t),correctLabel:u,userLabel:m,revealAnswers:a})}return null}const u3=({canProceed:t,feedbackRef:e,feedbackValue:n,isActive:o,isComplete:r,isCorrect:a,item:l,labels:d,quizCorrect:c,quizIncorrect:u,revealAnswers:m,selection:p})=>{const{announcePolite:f,clearAnnouncements:g}=Ue(),v=(0,_t.A)(t),C=(0,xt.gY)(),b=!!(0,xt.QQ)(n),x=a?c:u,L=(0,h.useCallback)(()=>{const N=YS({getL10nValue:C,isComplete:r,item:l,labels:d,revealAnswers:m,selection:p}),A=n?(0,Xn.QZ)(C(n)):"",k=x+". "+N+" "+A;let R;return k&&(R=setTimeout(()=>{f(k)},250)),()=>{clearTimeout(R)}},[f,n,C,r,l,d,x,m,p]);(0,h.useLayoutEffect)(()=>{!v&&t&&m!==Et.iV.NONE&&L()},[t,v,L,m]),(0,h.useEffect)(()=>g,[g]);const E=z()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":b}),S=z()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct":a});return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{"aria-hidden":o?void 0:!0,className:E,ref:e,children:(0,s.jsx)("div",{className:"quiz-card__main--feedback",children:(0,s.jsxs)("div",{"aria-label":d?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,s.jsx)("div",{className:S,children:(0,s.jsx)("i",{"aria-hidden":"true",className:a?"icon icon-Master-05":"icon icon-Master-06"})}),(0,s.jsx)("div",{className:"quiz-card__feedback-label",children:x}),n&&(0,s.jsx)("div",{children:(0,s.jsx)(Nt,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:n})})]})})})})},{FILL_IN_THE_BLANK:_S}=Et.Ay,XS=({children:t,type:e})=>(0,s.jsx)("div",{className:JS({type:e}),children:t}),JS=({type:t})=>z()("quiz-card__interactive",{"quiz-card__interactive--no-border":[_S].includes(t)}),h3=XS;var qS=i(87839),eN=i.n(qS),tN=i(37022),sN=i.n(tN),nN=i(59565),oN=i.n(nN),rN=i(65828),aN=i.n(rN);const iN=fn()((t,e)=>au()(oN()(null),aN()(t,e)));var lN=i(45013),m3=i.n(lN),cN=i(77061),dN=i.n(cN),uN=i(24799),hN=i.n(uN),mN=i(86697),pN=i.n(mN),fN=i(9325),p3=i.n(fN);const Lu=p3()(hN()),Br=p3()(dN()),f3=Z0()(m3()(Br),m3()(pN())),yG=t=>t.toLowerCase(),gN=({allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,labels:r,media:a,settings:l})=>(0,s.jsx)("div",{className:"quiz-card__media",children:(0,s.jsx)(dn,{allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,labels:r,media:a,opts:l})}),vN=au()(sN()(["tmp"]),qe()({},["media"])),CN=eN()(vN,f3),xN=Z0()(CN,f3),g3=iN(xN,gN),yN=(t,e)=>{const n=zs(),o=(0,gt.A)(e);(0,h.useEffect)(()=>{!o&&e&&t&&Ki()(t.focus)&&t.focus({preventScroll:n})},[e,n,o,t])},LG=_o()((t,e,n)=>n>=t&&n<e),v3=t=>t<10?`0${t}`:String(t),bN=t=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(t),C3=t=>t.reduce((e,n)=>isNaN(n)||n==null?e:e+n,0),EN=({isActive:t,labels:e,num:n,quizQuestion:o,total:r})=>{const a=(0,h.useRef)();return yN(a.current,t),(0,s.jsx)("div",{className:"quiz-card__number",children:(0,s.jsxs)("h1",{"aria-label":`${e?.quizQuestion} ${n} ${e?.lessonPreposition} ${r}`,className:"quiz-card__number-title",ref:a,tabIndex:-1,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"quiz-card__step-label",children:o}),(0,s.jsx)("span",{"aria-hidden":"true",className:"quiz-card__counter brand--color brand--ui",children:`${v3(n)}/${v3(r)}`})]})})},LN=({allowTabNavigation:t,id:e,value:n})=>(0,s.jsx)(Nt,{allowTabNavigation:t,className:"quiz-card__title",id:e,value:n}),qc={ANY:"ANY",CORRECT_INCORRECT:"CORRECT_INCORRECT",CHOICE:"CHOICE"},x3={label:"Any Response",prop:"feedback"},TN={label:"By Choice",prop:"choice"},jN={correctProp:"feedbackCorrect",incorrectProp:"feedbackIncorrect",label:"Correct / Incorrect",type:"CORRECT_INCORRECT"},IG=As()([[cs()(qc.ANY),At()(x3)],[cs()(qc.CHOICE),At()(TN)],[cs()(qc.CORRECT_INCORRECT),At()(jN)],[wo(),At()(x3)]]),y3=qc,IN=({allowTabNavigation:t,correctAnswerColor:e,correctAnswerColorContrast:n,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:l,isCorrect:d,labels:c,onEnterToSubmit:u=Function.prototype,onChange:m=Function.prototype,options:p,questionHtmlId:f,quizAcceptableResponses:g,quizAnswerPlaceholder:v,revealAnswers:C,value:y})=>{const b=(0,h.useRef)(void 0),[x]=(0,h.useState)(()=>Xe()("fitb-")),L=(0,xt.gY)(),E=SN({options:p,getL10nValue:L}),S=`${x}-feedback`,N=`${x}-acceptable`,A=`${x}-input`,k=l?`${S} ${N}`:o||void 0,R=l?void 0:v,W=t?0:xc,D=C===Et.iV.ALL||C===Et.iV.INCORRECT,w=C===Et.iV.ALL||d&&C===Et.iV.INCORRECT,Z=d?e:r,F=e&&r&&{"--fa-primary-color":cn({backgroundColor:Z,contrast:d?n:a}),"--fa-secondary-color":Z},G=r&&{backgroundColor:cn({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},ue=z()("quiz-fill__icon",{"quiz-fill__icon--visible":l}),ce=z()("quiz-fill__options",{"quiz-fill__options--visible":l}),le=(0,h.useCallback)(ze=>{m(ze.currentTarget.value)},[m]),Se=(0,h.useCallback)(ze=>{Ir(ze)&&u(ze)},[u]),Oe=l?void 0:le,We=l?void 0:Se;return(0,s.jsxs)("div",{className:"quiz-fill",children:[(0,s.jsxs)("div",{className:"quiz-fill__container",children:[(0,s.jsx)("input",{"aria-describedby":k,"aria-hidden":!t,"aria-invalid":o?!0:void 0,"aria-labelledby":f,"aria-readonly":l,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:A,onChange:Oe,onKeyDown:We,placeholder:R,readOnly:l,ref:b,tabIndex:W,type:"text",value:y}),D&&(0,s.jsxs)("div",{className:ue,id:S,children:[d&&(0,s.jsx)(yt,{"aria-label":c?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...F}}),!d&&(0,s.jsx)($6,{"aria-label":c?.quizIncorrect,style:G})]})]}),w&&l&&(0,s.jsx)("div",{className:ce,id:N,children:(0,s.jsx)(Nt,{value:`${g}: ${E}`})})]})},SN=({options:t,getL10nValue:e})=>t.map(o=>ha()(e(o.title)??"")).join(", "),b3=IN;function NN({correctAnswerColor:t,correctAnswerColorContrast:e}){const n=(0,Ie.vU)(),o=cn({backgroundColor:t,contrast:e}),r=t?{"--fa-primary-color":o,"--fa-secondary-color":t}:void 0;return(0,s.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,s.jsx)(yt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--correct",name:"circle-check",style:r}),(0,s.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,s.jsx)("span",{className:"matching-results-item-feedback-text-result",children:n?.quizCorrect})})]})}var Ga=i(59288);function AN({correctAnswerValue:t,incorrectAnswerColor:e,incorrectAnswerColorContrast:n,shouldRevealCorrectAnswer:o}){const[r,a]=Ga.useState(!0),[l,d]=Ga.useState(!1),c=Ga.useRef(null),m=`matching-text-${Ga.useId()}`,p=(0,Ie.vU)(),f=(0,_t.A)(t),g=Ga.useCallback(()=>{a(E=>!E)},[]);Ga.useLayoutEffect(()=>{if(f!==t){const E=c.current;E!=null&&E.scrollWidth>E.clientWidth&&d(!0)}},[f,t]);const v=cn({backgroundColor:e,contrast:n}),C=e?{"--fa-primary-color":v,"--fa-secondary-color":e}:void 0,y=z()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),b=z()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),x=z()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),L=z()("matching-results-item-feedback-text-extra-text",{"matching-results-item-feedback-text-extra-text--collapsed":r});return(0,s.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,s.jsx)(yt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:C}),!o&&(0,s.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,s.jsx)("span",{className:"matching-results-item-feedback-text-result",children:p?.quizIncorrect})}),o&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("span",{className:y,children:[(0,s.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[p?.quizIncorrect,"."]}),l&&(0,s.jsx)("button",{"aria-controls":m,"aria-expanded":!r,"aria-label":r?p?.a11yMatchingItemShowMore:p?.a11yMatchingItemShowLess,className:"matching-results-item-feedback-text-btn",onClick:g,type:"button",children:(0,s.jsx)(yt,{className:b,name:"caret-down",style:C})}),(0,s.jsx)("span",{className:x,children:(0,s.jsxs)("span",{className:L,id:m,ref:c,children:[p?.quizCorrect,": ",(0,s.jsx)(yn,{value:t})]})})]})})]})}function PN({col1Id:t,col1Value:e,col2Id:n,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:l,height:d,incorrectAnswerColor:c,incorrectAnswerColorContrast:u,revealAnswers:m}){const p=t===n,f=m!=="incorrect",g=m!=="none";return(0,s.jsxs)("li",{className:"matching-results-item",role:"listitem",children:[(0,s.jsxs)("div",{className:"matching-results-item-pieces",children:[(0,s.jsxs)("div",{className:"matching-results-item-piece",style:d?{height:d}:void 0,children:[(0,s.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,s.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,s.jsx)("span",{className:"matching-results-item-piece-content",children:(0,s.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,s.jsx)(yn,{value:e})})})]}),(0,s.jsxs)("div",{className:"matching-results-item-piece",children:[(0,s.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,s.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,s.jsx)("span",{className:"matching-results-item-piece-content",children:(0,s.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,s.jsx)(yn,{value:o})})})]})]}),g&&p&&(0,s.jsx)(NN,{correctAnswerColor:r,correctAnswerColorContrast:a}),g&&!p&&(0,s.jsx)(AN,{correctAnswerValue:l,incorrectAnswerColor:c,incorrectAnswerColorContrast:u,shouldRevealCorrectAnswer:f})]})}function RN({answers:t,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:l,revealAnswers:d,rows:c}){return(0,s.jsx)("div",{className:"matching-results",children:(0,s.jsx)("ul",{className:"matching-results-list",role:"list",children:c.map((u,m)=>{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,s.jsx)(PN,{col1Id:p.id,col1Value:p.value,col2Id:f.id,col2Value:f.value,correctAnswerColor:n,correctAnswerColorContrast:o,correctAnswerValue:g,height:l,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:d},m)})})})}var MN=i(63310),Tu=i.n(MN);Tu().dynamicDrop(!0),Tu().pointerMoveTolerance(8);const vo=Tu();var Qa=i(59288);function kN(t,{onStart:e,onMove:n,onEnd:o,isEnabled:r=!0}){const a=Qa.useRef({x:0,y:0}),l=Qa.useRef({x:0,y:0}),d=Qa.useRef(!1),c=Qa.useRef(null),u=Qa.useRef(void 0);Qa.useEffect(()=>{const m=t.current;if(!m||!r||d.current)return;c.current=U4(m);function p(){const f=c.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-l.current.x,v=f.y-l.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)`,n?.({...a.current})),l.current=f)},vo(m).draggable({inertia:!1,autoScroll:{container:c.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},l.current=p(),c.current?.addEventListener("scroll",u.current,{passive:!0}),e?.()},move:f=>{a.current.x+=f.dx,a.current.y+=f.dy,m.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,n?.({...a.current})},end:()=>{a.current={x:0,y:0},m.style.transform="",c.current?.removeEventListener("scroll",u.current),setTimeout(()=>{o?.()},0)}}}),d.current=!0,()=>{vo(m).unset(),c.current?.removeEventListener("scroll",u.current),d.current=!1}},[t,e,n,o,r])}var E3=i(59288);function ON(t,{isEnabled:e=!0,onDrop:n,onEnter:o,onLeave:r,overlap:a=.015}){const l=E3.useRef(!1);E3.useEffect(()=>{const d=t.current;if(!(!d||!e||l.current))return vo(d).dropzone({overlap:a,listeners:{drop:()=>{n?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),l.current=!0,()=>{vo(d).unset(),l.current=!1}},[t,n,o,r,e,a])}var zn=i(59288);const L3=zn.memo(function({col:e,height:n,id:o,index:r,isActive:a,isFrozen:l,isMatched:d,isMoved:c,onClick:u,onDragEnd:m,onDragStart:p,onDrop:f,onDropZoneEnter:g,onDropZoneLeave:v,onKeyDown:C,value:y,valueOtherColumnActive:b,valueOtherColumnMatch:x}){const[L,E]=zn.useState(!1),S=zn.useRef(null),N=zn.useRef(null),A=(0,Ie.vU)(),k=zn.useCallback(()=>{u({col:e,id:o,value:y})},[e,o,u,y]),R=zn.useCallback(()=>{E(!0),p({col:e,id:o,value:y})},[e,o,p,y]),W=zn.useCallback(()=>{m(),E(!1)},[m]),D=zn.useCallback(()=>{f({col:e,id:o,value:y})},[e,o,f,y]),w=zn.useCallback(()=>{g({col:e,id:o,value:y})},[e,o,g,y]),Z=zn.useCallback(()=>{v()},[v]),B=zn.useCallback(le=>{C(le,{col:e,index:r})},[e,r,C]);zn.useEffect(()=>{e===1&&r===0||N.current?.setAttribute("tabindex","-1")},[]),kN(S,{isEnabled:!l,onStart:R,onEnd:W}),ON(S,{isEnabled:l,onDrop:D,onEnter:w,onLeave:Z});const F=z()("matching-interaction-piece",{"matching-interaction-piece--matched":d,"matching-interaction-piece--moved":c}),G=x==null?null:(0,s.jsxs)(s.Fragment,{children:[A?.a11yMatchingItemMatchedWith," ",(0,s.jsx)(yn,{value:x})]}),ue=b==null?(0,s.jsx)(s.Fragment,{children:A?.a11yMatchingItemSelectableItem}):(0,s.jsxs)(s.Fragment,{children:[A?.a11yMatchingItemMatchWith," ",(0,s.jsx)(yn,{value:b})]}),ce=z()("matching-interaction-item",{draggable:!l,"draggable--dragging":!l&&L,droppable:l});return(0,s.jsx)("li",{className:ce,ref:S,role:"listitem",children:(0,s.jsxs)("button",{"aria-pressed":a||d?!0:void 0,className:F,"data-state":a?"active":void 0,onClick:L?void 0:k,onKeyDown:B,ref:N,style:n?{height:n}:void 0,type:"button",children:[l?(0,s.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,s.jsx)(yt,{className:"matching-interaction-piece-decoration",name:"grip-dots-vertical"}),e===2?(0,s.jsx)("span",{className:"matching-interaction-piece-jigsaw"}):null,(0,s.jsx)("span",{className:"matching-interaction-piece-content",children:(0,s.jsx)("span",{"data-matching-interaction-piece-content-inline":"",children:(0,s.jsx)(yn,{value:y})})}),(0,s.jsx)("span",{className:"visually-hidden-always",children:G}),(0,s.jsx)("span",{className:"visually-hidden-always",children:ue})]},o)})});var Gt=i(59288);function wN({answers:t,columnBehavior:e,isActive:n,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:l,onChangeRows:d,prefersKeyboardNavigation:c}){const u=(0,_t.A)(n),m=(0,_t.A)(e),p=(0,_t.A)(t),f=(0,_t.A)(r),g=(0,Ie.vU)(),[v,C]=Gt.useState(void 0),[y,b]=Gt.useState(void 0),[x,L]=Gt.useState(void 0),[E,S]=Gt.useState(!1),N=Gt.useRef(null),A=Gt.useRef(null),k=Gt.useRef(null),R=Gt.useRef(void 0),W=Gt.useRef(void 0),[D,w]=Gt.useState(()=>ed({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),[Z,B]=Gt.useState(()=>ed({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})),F=Gt.useMemo(()=>t.map(Me=>({col:1,id:Me.id,value:Me.title})).toSorted((Me,Qe)=>{const Be=D.get(Me.id)??1/0,pt=D.get(Qe.id)??1/0;return Be-pt}),[t,D]),G=Gt.useMemo(()=>t.map(Me=>({col:2,id:Me.id,value:Me.matchTitle})).toSorted((Me,Qe)=>{const Be=Z.get(Me.id)??1/0,pt=Z.get(Qe.id)??1/0;return Be-pt}),[t,Z]),ue=Gt.useCallback(()=>{for(const xe of N.current?.querySelectorAll('button:not([tabindex="-1"])')??[])xe.setAttribute("tabindex","-1")},[]),ce=Gt.useCallback(xe=>{const Me=Array.from(D),Qe=Array.from(Z);if(e==="freezeSecond"){const Be=new Array(Qe.length),pt=Me.map(zt=>zt[0]).filter(zt=>!(zt in xe));for(const[zt,kt]of Object.entries(xe)){const Cs=Z.get(kt);Be[Cs]=[zt,Cs]}for(let zt=0;zt<Be.length;zt++)if(Be[zt]==null){const kt=pt.shift();Be[zt]=[kt,zt]}const ot=new Map(Be),Mt=T3(D,ot);Mt.length>0&&b(Mt),w(ot)}else{const Be=new Array(Me.length),pt=new Set(Object.values(xe)),ot=Qe.map(kt=>kt[0]).filter(kt=>!pt.has(kt));for(const[kt,Cs]of Object.entries(xe)){const Ln=D.get(kt);Be[Ln]=[Cs,Ln]}for(let kt=0;kt<Be.length;kt++)if(Be[kt]==null){const Cs=ot.shift();Be[kt]=[Cs,kt]}const Mt=new Map(Be),zt=T3(Z,Mt);zt.length>0&&L(zt),B(Mt)}},[e,D,Z]),le=Gt.useCallback(xe=>{R.current=xe},[]),Se=Gt.useCallback(()=>{W.current==null&&(R.current=void 0)},[]),Oe=Gt.useCallback(xe=>{W.current=xe},[]),We=Gt.useCallback(()=>{W.current=void 0},[]),ze=Gt.useCallback(xe=>{if(R.current!=null){const Qe=structuredClone(r),Be=xe.col===1?xe.id:R.current.id,pt=xe.col===1?R.current.id:xe.id;if(Be in r&&delete Qe[Be],Object.values(Qe).includes(pt)){for(const ot in Qe)if(Qe[ot]===pt){delete Qe[ot];break}}Qe[Be]=pt,R.current=void 0,W.current=void 0,a(Qe)}},[r,a]),Ve=Gt.useCallback(xe=>{const Me=structuredClone(r);let Qe=!1,Be=!1,pt=v;if(xe.col===1&&xe.id in r)delete Me[xe.id],Qe=!0,pt=null;else if(xe.col===2&&Object.values(Me).includes(xe.id)){for(const ot in Me)if(Me[ot]===xe.id){delete Me[ot],Qe=!0,pt=null;break}}else v==null&&(pt={col:xe.col,id:xe.id,value:xe.value},Be=!0);if(v!=null)if(v.col===xe.col)v.id===xe.id?pt=null:pt={col:xe.col,id:xe.id,value:xe.value};else{const ot=xe.col===1?xe.id:v.id,Mt=xe.col===1?v.id:xe.id;ot in r&&delete Me[ot],Me[ot]=Mt,Qe=!0,Be=!0,pt=null}if(Qe&&a(Me),v!==pt&&C(pt),Be){const Mt=(xe.col===1?k:A).current?.querySelector('button:not([aria-pressed="true"])');Mt&&(ue(),Mt.removeAttribute("tabindex"),Mt.focus({preventScroll:!c}))}},[c,v,r,a,ue]),it=Gt.useCallback((xe,{col:Me,index:Qe})=>{const Be=xe.currentTarget;let pt=!1,ot=null;switch(xe.key){case"ArrowUp":pt=!0,ot=Be.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":pt=!0,ot=Be.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":pt=!0,ot=Me===1?k.current?.children[Qe]?.firstElementChild:void 0;break;case"ArrowLeft":pt=!0,ot=Me===2?A.current?.children[Qe]?.firstElementChild:void 0;break;case"Home":pt=!0,ot=Be.closest("ul").firstElementChild.firstElementChild;break;case"End":pt=!0,ot=Be.closest("ul").lastElementChild.firstElementChild;break}pt&&(xe.preventDefault(),xe.stopPropagation()),ot&&(ue(),ot.removeAttribute("tabindex"),ot.focus())},[ue]);Gt.useEffect(()=>{r!==f&&Object.keys(r).length>0&&ce(r)},[ce,r,f]),Gt.useEffect(()=>{const xe=({shouldFocus:Be})=>{const pt=v.col===1?A:k;ue();const ot=pt.current.querySelector('button[data-state="active"]');ot?.removeAttribute("tabindex"),Be&&ot?.focus(),C(null)},Me=Be=>{N.current?.contains(Be.target)||xe({shouldFocus:!1})},Qe=Be=>{rn(Be)&&v!=null&&xe({shouldFocus:!0})};return v==null?(document.removeEventListener("mousedown",Me),document.removeEventListener("keydown",Qe)):(document.addEventListener("mousedown",Me),document.addEventListener("keydown",Qe)),()=>{document.removeEventListener("mousedown",Me),document.removeEventListener("keydown",Qe)}},[v,ue]);const tt=Gt.useCallback(()=>{const xe=Array.from(N.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]"));if(xe.length===0)return;const Me=xe[0].closest("button");let Qe=0,Be;if(Me){const ot=window.getComputedStyle(Me),Mt=parseFloat(ot.paddingBlockStart)+parseFloat(ot.paddingBlockEnd),zt=parseFloat(ot.borderTopWidth)+parseFloat(ot.borderBottomWidth);Qe=Mt+zt,Be=parseFloat(ot.minHeight)}const pt=xe.reduce((ot,Mt)=>Math.max(ot,Mt.scrollHeight+Qe),0);Be&&Be>=pt?l(void 0):l(pt)},[l]);return Gt.useEffect(()=>{(!u&&n||p!==t)&&tt()},[u,n,t,p,tt]),Gt.useEffect(()=>{const xe=N.current?.closest(".quiz-card");let Me;return xe!=null&&(Me=new ResizeObserver(()=>{tt()}),Me.observe(xe)),()=>{xe!=null&&Me!=null&&Me.unobserve(xe)}},[tt]),Gt.useEffect(()=>{let xe,Me;return y&&(xe=setTimeout(()=>{b(void 0)},1e3)),x&&(Me=setTimeout(()=>{L(void 0)},1e3)),()=>{clearTimeout(xe),clearTimeout(Me)}},[y,x]),Gt.useEffect(()=>{E&&m!==e&&(a({}),ce({}),C(void 0),w(ed({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),B(ed({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})))},[E,e,m,t,a,ce]),Gt.useEffect(()=>{if(F.length<=0)return;const xe=F.map((Me,Qe)=>[Me,G[Qe]]);d(xe)},[F,G,d]),Gt.useEffect(()=>{S(!0)},[]),(0,s.jsxs)("div",{className:"matching-interaction",ref:N,children:[(0,s.jsx)("ul",{"aria-label":g?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1",ref:A,role:"list",children:F.map((xe,Me)=>{const Qe=xe.id in r;return(0,s.jsx)(L3,{col:1,height:o,id:xe.id,index:Me,isActive:v?.col===1&&v?.id===xe.id,isFrozen:e==="freezeFirst",isMatched:Qe,isMoved:y?.map(Be=>Be.id).includes(xe.id),onClick:Ve,onDragEnd:Se,onDragStart:le,onDrop:ze,onDropZoneEnter:Oe,onDropZoneLeave:We,onKeyDown:it,value:xe.value,valueOtherColumnActive:v?.col===2?v?.value:void 0,valueOtherColumnMatch:Qe?G[Me]?.value:void 0},xe.id)})}),(0,s.jsx)("ul",{"aria-label":g?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2",ref:k,role:"list",children:G.map((xe,Me)=>{const Qe=xe.id in r;return(0,s.jsx)(L3,{col:2,height:o,id:xe.id,index:Me,isActive:v?.col===2&&v?.id===xe.id,isFrozen:e==="freezeSecond",isMatched:Object.values(r).includes(xe.id),isMoved:x?.map(Be=>Be.id).includes(xe.id),onClick:Ve,onDragEnd:Se,onDragStart:le,onDrop:ze,onDropZoneEnter:Oe,onDropZoneLeave:We,onKeyDown:it,value:xe.value,valueOtherColumnActive:v?.col===1?v?.value:void 0,valueOtherColumnMatch:Qe?F[Me]?.value:void 0},xe.id)})})]})}const ed=({answers:t,columnBehavior:e,columnBehaviorToShuffle:n})=>{let o=t.map(r=>r.id);return e===n&&(o=(0,s3.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function T3(t,e){const n=[];for(const[o,r]of t){const a=e.get(o);a!==r&&n.push({id:o,from:r,to:a})}return n}var td=i(59288);function j3({columnBehavior:t="freezeSecond",...e}){const[n,o]=td.useState([]),[r,a]=td.useState(void 0),l=td.useCallback(c=>{o(c)},[]),d=td.useCallback(c=>{a(c)},[]);return e.isComplete?(0,s.jsx)(RN,{...e,columnBehavior:t,itemHeight:r,rows:n}):(0,s.jsx)(wN,{...e,columnBehavior:t,itemHeight:r,onChangeItemHeight:d,onChangeRows:l})}const DN=({allowTabNavigation:t,color:e,correctId:n,errorMessageId:o,isComplete:r,isCorrect:a,isReduceMotion:l,labels:d,onChange:c,onEnterToSubmit:u,options:m=[],questionHtmlId:p,renderOptionText:f,revealAnswers:g,selectedIndex:v})=>(0,s.jsx)(Uc,{"aria-invalid":o?!0:void 0,"aria-labelledby":[p,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:m.map((C,y,b)=>(0,s.jsx)(BN,{allowTabNavigation:t,color:e,id:C.id,index:y,isComplete:r,isCorrect:a,isCorrectOption:n===C.id,isFirst:y===0,isFresh:v===-1||v===null||v===void 0,isLast:y===b.length-1,isReduceMotion:l,isSelected:v===y,labels:d,onChange:c,onEnterToSubmit:u,questionHtmlId:p,renderOptionText:f,revealAnswers:g,title:C.title},C.id))}),BN=({allowTabNavigation:t,color:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:l,isFresh:d,isSelected:c,isReduceMotion:u,labels:m,onChange:p,onEnterToSubmit:f,questionHtmlId:g,renderOptionText:v,revealAnswers:C,title:y})=>{const[b]=(0,h.useState)(()=>Xe()("qmc-")),x=(0,h.useRef)(void 0),L=(0,gt.A)(c),E=!!r,S=t&&(c||d&&o===0)?0:xc,N=C===Et.iV.ALL,A=C==Et.iV.INCORRECT,k=N||A&&a,R=N||A&&a||A&&!a&&c,W=r&&l&&k,D=r&&!l&&R,w=W||D,Z=w?`${b}-result`:void 0,B=z()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":W,"is-incorrect":D,"is-selected":c}),F=z()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":c&&!r}),G=z()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":W}),ue=z()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":D}),ce=z()("quiz-multiple-choice-option__border"),le=(0,h.useCallback)(We=>{Ir(We)&&f(We)},[f]),Se=(0,h.useCallback)(()=>{p({selectedIndex:o})},[o,p]),Oe=r?void 0:le;return(0,h.useEffect)(()=>{t&&!L&&c&&x.current&&x.current.focus({preventScroll:u})},[t,c,u,L]),(0,s.jsxs)("div",{"data-test-id":"quiz-card-option",children:[(0,s.jsxs)("label",{"aria-describedby":Z,className:B,ref:x,children:[(0,s.jsx)("input",{className:"quiz-multiple-choice-option__input",disabled:E,name:g,onClick:r?void 0:Se,onKeyDown:Oe,tabIndex:S,type:"radio"}),(0,s.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:e},children:[(0,s.jsx)(P1,{className:F,dataTestId:c&&!r?"selected-dot-active":"selected-dot"}),(0,s.jsx)(A1,{className:G,"data-test-id":W?"correct-check-active":"correct-check"}),(0,s.jsx)(R1,{"aria-hidden":"true",className:ue,dataTestId:D?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,s.jsx)("div",{className:ce}),(0,s.jsx)("div",{className:"quiz-multiple-choice-option__text","data-test-id":"quiz-mc-option-text",children:v({optionId:n,title:y})})]}),w&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:Z,children:[c&&l&&m?.a11yQuizReviewCorrectlySelected,c&&!l&&m?.a11yQuizReviewIncorrectlySelected,!c&&l&&m?.a11yQuizReviewIncorrectlyUnselected,!c&&!l&&m?.a11yQuizReviewCorrectlyUnselected]})]})},I3=DN,HN=({allowTabNavigation:t,correctIds:e=[],errorMessageId:n,isComplete:o,isCorrect:r,labels:a,onChange:l,onEnterToSubmit:d,options:c=[],questionHtmlId:u,renderOptionText:m,revealAnswers:p,selectedIndices:f=[]})=>(0,s.jsx)("div",{"aria-labelledby":[u,n].filter(Boolean).join(" "),"aria-required":"true",role:"group",children:(0,s.jsx)("ul",{children:c.map((g,v)=>(0,s.jsx)(zN,{allowTabNavigation:t,errorMessageId:n,id:g.id,index:v,isComplete:o,isCorrect:r,isCorrectOption:xn()(g.id,e),isSelected:xn()(v,f),labels:a,onChange:l,onEnterToSubmit:d,renderOptionText:m,revealAnswers:p,title:g.title},g.id))})}),zN=({allowTabNavigation:t,errorMessageId:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:l,isSelected:d,labels:c,onChange:u,onEnterToSubmit:m,renderOptionText:p,revealAnswers:f,title:g})=>{const[v]=(0,h.useState)(()=>Xe()("qmr-")),C=r&&f===Et.iV.ALL,y=C?`${v}-result`:void 0,b=!!r,x=t?0:xc,L=f===Et.iV.ALL,E=f==Et.iV.INCORRECT,S=L||E&&a||E&&!a&&d,N=z()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":d,"quiz-multiple-response-option--correct":r&&l&&S,"quiz-multiple-response-option--incorrect":r&&!l&&S}),A=z()("quiz-multiple-response-option__border"),k=(0,h.useCallback)(D=>{Ir(D)&&m(D)},[m]),R=(0,h.useCallback)(()=>{u({optionIndex:o})},[o,u]),W=r?void 0:k;return(0,s.jsxs)("li",{children:[(0,s.jsxs)("label",{"aria-describedby":y,className:N,children:[(0,s.jsx)("input",{"aria-describedby":e||void 0,"aria-invalid":e?!0:void 0,className:"quiz-multiple-response-option__input",disabled:b,onChange:r?void 0:R,onKeyDown:W,tabIndex:x,type:"checkbox"}),(0,s.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,s.jsx)(A1,{className:"quiz-multiple-response-option__check"}),(0,s.jsx)(R1,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",overrideStyle:!0,width:"8"})]}),(0,s.jsx)("div",{className:A}),(0,s.jsx)("div",{className:"quiz-multiple-response-option__text",children:p({optionId:n,title:g})})]}),C&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:y,children:[d&&l&&c?.a11yQuizReviewCorrectlyChecked,d&&!l&&c?.a11yQuizReviewIncorrectlyChecked,!d&&l&&c?.a11yQuizReviewIncorrectlyUnchecked,!d&&!l&&c?.a11yQuizReviewCorrectlyUnchecked]})]})},S3=HN;var FN=i(1034),ju=i.n(FN),UN=i(55414),Fn=i.n(UN),VN=i(77504),sd=i.n(VN);const N3=ju()(Fn()),WN=st()(nt()("correct",!0)),$N=Re()(Yo()(cs()(-1),At()(0)),hs()(nt()("correct",!0))),SG=t=>compose(contains(t),nd),KN=({answers:t,fillInValue:e,isCaseSensitive:n,getL10nValue:o})=>{const r=n?ha():Re()(ha(),Qc()),a=t.map(l=>r(o(l.title)??""));return xn()(r(e),a)},GN=({answers:t,selectedIndices:e})=>cs()(sd()(N3,e),Re()(sd()(N3),ws()(Re()(Ui()(hs())(t),nt()("id"))),nd)(t)),QN=t=>({MATCHING:Fn(),FILL_IN_THE_BLANK:Iu,MULTIPLE_CHOICE:Fn(),MULTIPLE_RESPONSE:Fn()})[t],nd=Re()(da()("id"),WN),ZN=Re()(dt(),nd),Iu=st()(nt()("correct",!0)),YN=Re()(et()("id"),dt()),NG={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,s.jsx)(w6,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,s.jsx)(D6,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,s.jsx)(Fd,{})},MATCHING:{label:"Matching",icon:(0,s.jsx)(O6,{})}};var AG=i(52988),_N=i(84136),A3=i.n(_N),XN=i(77170),Co=i.n(XN),JN=i(97223),qN=i.n(JN),PG=i(13219);const eA=(t,e,n=[])=>{const o=find(propEq("id",t),e),{parentId:r}=o||{},a=o?[o,...n]:n;return r?eA(r,e,a):a},Su="owner",P3="manager",R3="editor",M3=["viewer",R3,P3,Su],Nu=({effectiveRole:t,requiredRole:e})=>{const n=indexOf(t,M3),o=indexOf(e,M3);return n>=o},tA=t=>({editor:Nu({effectiveRole:t,requiredRole:R3}),manager:Nu({effectiveRole:t,requiredRole:P3}),owner:Nu({effectiveRole:t,requiredRole:Su})}),MG=(t,e,n)=>{const{authorId:o}=t,r=o===n,a=d=>r||d,l=sA(e);return pipe(omit(["canChangePermissions","canMoveTo"]),evolve({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(l)},sA=t=>{const{effectiveRole:e,type:n}=t||[],o=n!==FOLDER_TYPE_TEAM?Su:e,{editor:r,manager:a,owner:l}=tA(o);return{canChangePermissions:a,canCreate:r,canDelete:l,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:l}},nA={[Et.Ay.FILL_IN_THE_BLANK]:"fillin",[Et.Ay.MATCHING]:"matching",[Et.Ay.MULTIPLE_CHOICE]:"multiple choice",[Et.Ay.MULTIPLE_RESPONSE]:"multiple response"},Za="personal",k3="team",kG=500,OG={id:null,deleted:!1,type:Za},wG={id:"deleted",deleted:!0,type:Za},O3=({drawCount:t,questions:e,drawnQuestions:n=[]})=>{if(n.length===t)return null;const o=r=>r[Math.floor(Math.random()*r.length)];return Re()(Bc()("index",r=>hs()(nt()("id",r.id),e)),o,vc()(A3()(Ui()(xn())(n),"id")))(e)},oA=t=>e=>e.type===Za||hasSufficientRole({effectiveRole:e.effectiveRole,requiredRole:t}),rA=({folders:t,requiredRole:e,teamAccount:n})=>pipeWith(t,values,flatten,filter(o=>oA(e)&&(n||o.type===Za))),DG=({questionBanks:{folders:t,questionBanks:e},requiredRole:n=FOLDER_ROLE_VIEWER,teamAccount:o,term:r})=>{if(r&&isEmpty(trim(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+escapeRegExp(r)+")","i"),l=rA({folders:t,requiredRole:n,teamAccount:o}),d=pluck("id",l),c=filter(m=>m.title.match(a)&&!m.deleted,l),u=filter(m=>(isNil(m.folderId)||contains(m.folderId,d))&&m.title.match(a)&&!m.deleted,e);return{folders:c,questionBanks:u}},w3=(t,e,n=!1)=>pipeWith(e,ifElse(always(!isNil(t)),prop(t),pipe(values,flatten)),reject(propEq("deleted",!n))),aA=(t,e,n,o=!1)=>{const r=t===k3,a=t===Za,l=pipeWith(w3(k3,n),pluck("id")),d=c=>!isNil(c.folderId)&&contains(c.folderId,l);return pipeWith(e,filter(cond([[always(o),c=>c.deleted],[always(r),c=>!c.deleted&&d(c)],[always(a),c=>!c.deleted&&!d(c)],[always(isNil(t)),c=>!c.deleted],[T,identity]])))},iA=({type:t})=>t===Za,D3=({effectiveRole:t})=>hasSufficientRole({effectiveRole:t,requiredRole:FOLDER_ROLE_EDITOR}),lA=(t,e)=>({id:n})=>n?compose(any(identity),map(allPass([propEq("folderId",n),propEq("authorId",t)])))(e):!1,cA=(t,e,n,o)=>pipeWith(w3(e,t),filter(anyPass([iA,D3,lA(o,n)]))),dA=(t,e)=>n=>{if(isNil(n.folderId))return!0;const o=find(propEq("id",n.folderId),t);if(!o)return!1;const r=D3(o),a=n.authorId===e;return r||a},uA=(t,e,n,o,r)=>pipeWith(aA(t,e,n),filter(dA(o,r))),BG=(t,e,n,o)=>{const r=cA(t,n,e,o),a=uA(n,e,t,r,o);return{folders:r,questionBanks:a}},{FILL_IN_THE_BLANK:Hr,MATCHING:pl,MULTIPLE_CHOICE:fl,MULTIPLE_RESPONSE:gl}=Et.Ay,{ANY:hA,CHOICE:mA,CORRECT_INCORRECT:pA}=y3,fA={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},gA=qe()(null,[0,"type"]),Au=zs();class B3 extends K().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-${Kc()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.takeAgainRef=(0,h.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(ss,this.previewOnly__forceShowFeedback),window.addEventListener(b0,this.previewOnly__clearOverrides),this.id=Xe()("kc-")}componentDidUpdate(e,n){n.answered&&!this.state.answered?this.getType()!==Hr&&B0(this.wrapper):!n.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(ss,this.previewOnly__forceShowFeedback),window.removeEventListener(b0,this.previewOnly__clearOverrides)}previewOnly__forceShowFeedback(e){const{itemId:n,path:o}=e.detail,{getL10nValue:r}=this.props;if(n!==this.props.blockId)return;const a=o.at(-1);if(typeof a=="string"&&a.startsWith?.("feedback")){const l=a==="feedbackCorrect",d=o.indexOf("answers"),c=o[d+1],u=d>-1&&typeof c!="string"?c.id:null,m={forceShowFeedback:!0,forceShowFeedbackCorrect:l,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;m.forceShowFeedbackCorrect=p?.correct??!1,m.forceShowFeedbackMessage=r(f)}this.setState(m)}}previewOnly__clearOverrides(){this.setState({forceShowFeedback:!1,forceShowFeedbackCorrect:!1})}getSelection({item:e}){switch(e.type){case Hr:return this.state.fillInValue;case pl:return this.state.matches;case gl:return this.state.selectedIndices;case fl:default:return this.state.selectedAnswer}}handleMatchesChange=e=>{this.setState({errorIncomplete:!1,matches:e})};handleMultipleResponseChange({optionIndex:e}){const{selectedIndices:n}=this.state,o=n.includes(e)?DS()([e]):a3()(e);this.setState({errorIncomplete:!1,selectedIndices:o(n)})}handleChoiceSelect({selectedIndex:e}){const{answered:n}=this.state;n||this.setState({errorIncomplete:!1,selectedAnswer:e,chosen:!0})}onSubmit(e,n,o,r,a){if(!n){switch(this.setState({errorIncomplete:!0}),r.type){case Hr:this.wrapper?.querySelector("input")?.focus();break;case gl:case fl:this.wrapper?.querySelector("input")?.focus();break;case pl: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:n,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:[]},()=>{!Au&&this.getType()===Hr&&B0(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&(0,O.JD)((0,Bo.Sw)({blockId:n,itemId:a,lessonId:o}))},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}renderQuestionTitle({title:e}){return(0,s.jsx)(ps,{className:"quiz-card__title",id:this.state.questionHtmlId,value:e})}renderQuestion(e){const{answered:n,errorIncomplete:o,retake:r,selectedAnswer:a}=this.state,{blockId:l,enableVideoPlaybackSpeed:d,labels:c,progress:u,renderQuestionTitle:m=this.renderQuestionTitle,settings:p}=this.props,{quizCorrect:f,quizIncorrect:g,quizRequireAnswer:v,quizSubmit:C,quizTakeAgain:y}=c,{id:b,type:x}=e,L=e.type!=="DRAW_FROM_QUESTION_BANK"?e.settings:{},E="media"in e?e.media:void 0,S=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:e}),N=this.getCanSubmit({item:e}),A=p?.requireCorrectAnswer?S:!0,k=this.onSubmit.bind(this,b,N,A,e),R=this.getFeedback({item:e,isCorrect:S,selectedAnswer:a}),W=this.getSelection({item:e}),{columnBehavior:D,correctAnswerColor:w,correctAnswerColorContrast:Z,incorrectAnswerColor:B,incorrectAnswerColorContrast:F}=p,G=S?w:B,ue=c.knowledgeCheckCorrectAnswerRequiredBlock,ce=c.knowledgeCheckRetriesAttemptsRemaining,le=c.knowledgeCheckMaxRetriesReached,Se=u?.items?.[l]?.items?.[b]?.retryAttemptCount??0,Oe=p?.retryCount!==0&&(p?.retryCount==null||p?.retryCount===-1||Se<p?.retryCount),We=p?.retryCount!=null||p?.retryCount===-1?p?.retryCount-Se:-1,ze=!S,Ve={"--color-feedback-icon":G,"--color-matching-feedback-bubble-bg":B,"--color-multiple-choice-complete-border":B,"--color-multiple-choice-correct-border":w,"--color-multiple-response-correct-border":w,"--color-multiple-response-incorrect-border":B,"--color-multiple-response-option-check":n?w:void 0,"--color-quiz-option-check":w,"--color-x-fill":B},tt=p?.revealCorrectAnswers!==!1&&(p.retryCount==null||p.retryCount===-1||!Oe)?Et.iV.ALL:Et.iV.INCORRECT,xe=z()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":n,"block-knowledge__retake-container--active-attempts-left":n&&!r&&We>0}),Me=z()("block-knowledge__retake",{"block-knowledge__retake--active":n&&!r&&Oe}),Qe=z()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":n&&!r&&Oe&&We>0}),Be=z()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":n&&!r&&!Oe});return(0,s.jsxs)(l3,{isActive:!0,style:Ve,children:[p?.requireCorrectAnswer&&(n&&!S||!n)&&(0,s.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,s.jsx)(yt,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),ue]}),m(e),(0,s.jsx)(g3,{blockId:l,enableVideoPlaybackSpeed:d,labels:c,media:E,settings:L}),(0,s.jsx)(h3,{type:x,children:this.renderType({columnBehavior:D,correctAnswerColor:w,correctAnswerColorContrast:Z,incorrectAnswerColor:B,incorrectAnswerColorContrast:F,isCorrect:S,item:e,onSubmit:k})}),(0,s.jsx)("div",{"aria-live":"assertive",children:o&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-test-id":"quiz-validation-error",children:[(0,s.jsx)("span",{"data-test-id":"quiz-validation-icon",children:(0,s.jsx)(yt,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:v})]})}),(0,s.jsx)(i3,{canProceed:n,canSubmit:N,isReduceMotion:Au,onSubmit:k,quizSubmit:C}),(0,s.jsx)(u3,{canProceed:this.state.forceShowFeedback||n,feedbackValue:R,isActive:n,isComplete:n,isCorrect:S,item:e,labels:c,quizCorrect:f,quizIncorrect:g,revealAnswers:tt,selection:W}),(0,s.jsxs)("div",{"aria-hidden":!n,className:xe,children:[ze&&(0,s.jsxs)(s.Fragment,{children:[Oe?(0,s.jsx)(po.ArcButton,{className:Me,icon:(0,s.jsx)(yt,{name:"arrow-rotate-left"}),onClick:this.handleRetake.bind(this,e),ref:this.takeAgainRef,size:"md",tabIndex:n?void 0:-1,text:y,variant:"secondary"}):null,We>0&&(0,s.jsxs)("div",{className:Qe,children:[ce," ",We]})]}),!Oe&&!S&&(0,s.jsx)("div",{className:Be,children:le})]})]},b)}getIsCorrect({item:e}){const{fillInValue:n,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:l}=e,d="answers"in e?e.answers:void 0,c="isCaseSensitive"in e?e.isCaseSensitive:!1;switch(l){case Hr:return KN({answers:Iu(d),fillInValue:n,isCaseSensitive:c,getL10nValue:this.props.getL10nValue});case pl:return Object.entries(o).every(([u,m])=>u===m);case gl:return GN({answers:d,selectedIndices:a});case fl:default:return r===$N(d)}}getType(){const{items:e}=this.props;return gA(e)}getCanSubmit({item:e}){const n="answers"in e?e.answers:void 0,{answered:o,fillInValue:r,matches:a,selectedAnswer:l,selectedIndices:d}=this.state;switch(e.type){case Hr:return Ts()(Jt()(r))&&Ts()(o);case pl:return Object.keys(a).length===n.length;case gl:return Ts()(Jt()(d))&&Ts()(o);case fl:default:return Ts()(Js()(l))&&Ts()(o)}}getFeedback({item:e,isCorrect:n,selectedAnswer:o}){const r="feedback"in e?e.feedback:void 0,a="feedbackCorrect"in e?e.feedbackCorrect:void 0,l="feedbackIncorrect"in e?e.feedbackIncorrect:void 0,d="feedbackType"in e?e.feedbackType:void 0,c="answers"in e?e.answers:void 0;if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;switch(d){case mA:return qe()("",[o,"feedback"],c);case pA:return this.state.forceShowFeedbackCorrect??n?a:l;case hA:default:return r}}getTypeLabel(){const{labels:e}=this.props,n=this.getType(),o=fA[n];return o?e?.[o]:e?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(e,{title:n}){return(0,s.jsx)(ps,{className:"cursorAuto",value:n})}renderMultipleChoiceOptionText(e,{title:n}){return(0,s.jsx)(ps,{className:"quiz-multiple-choice-option__label cursorAuto",value:n})}renderType({columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:l,item:d,onSubmit:c}){const{isHidden:u,labels:m,prefersKeyboardNavigation:p,renderMultipleResponseOptionText:f=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:g=this.renderMultipleChoiceOptionText,settings:v,progress:C,blockId:y}=this.props,{answered:b,fillInValue:x,matches:L,selectedAnswer:E,selectedIndices:S,questionHtmlId:N}=this.state,{id:A,type:k}=d,R="answers"in d?d.answers:[],{quizAcceptableResponses:W,quizAnswerPlaceholder:D}=m,w=C?.items?.[y]?.items?.[A]?.retryAttemptCount??0,Z=v?.retryCount!==0&&(v?.retryCount==null||v?.retryCount===-1||w<v?.retryCount),F=v?.revealCorrectAnswers!==!1&&(v.retryCount==null||v.retryCount===-1||!Z)?Et.iV.ALL:Et.iV.INCORRECT,G=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(k){case Hr:return(0,s.jsx)(b3,{allowTabNavigation:!0,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:G,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:b,isCorrect:l,labels:m,onChange:this.handleFillIn,onEnterToSubmit:c,options:Iu(R),questionHtmlId:N,quizAcceptableResponses:W,quizAnswerPlaceholder:D,revealAnswers:F,value:x});case pl:return(0,s.jsx)(j3,{answers:QN(k)(R),columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!u,isComplete:b,matches:L,onChange:this.handleMatchesChange,prefersKeyboardNavigation:p,revealAnswers:F});case gl:return(0,s.jsx)(S3,{allowTabNavigation:!0,correctIds:nd(R),errorMessageId:G,isComplete:b,isCorrect:l,labels:m,onChange:this.handleMultipleResponseChange,onEnterToSubmit:c,options:R,questionHtmlId:N,renderOptionText:f.bind(this,d),revealAnswers:F,selectedIndices:S});case fl:default:return(0,s.jsx)(I3,{allowTabNavigation:!0,correctId:ZN(R)||YN(R),errorMessageId:G,isComplete:b,isCorrect:l,isReduceMotion:Au,labels:m,onChange:this.handleChoiceSelect,onEnterToSubmit:c,options:R,questionHtmlId:N,renderOptionText:g.bind(this,d),revealAnswers:F,selectedIndex:E})}}render(){const{animateBlockEntrance:e,isLearner:n,items:o,settings:r,variant:a}=this.props,{answered:l,retake:d}=this.state,{entranceAnimation:c,knowledgeCheckWidth:u=76}=r,m=$0(u),p=z()("block-knowledge",{"block-knowledge--answered":l,"block-knowledge--no-animation":!c,"block-knowledge--retake":d}),f=z()("block-knowledge__wrapper",`block-knowledge__wrapper--${a}`,{[`block-knowledge__container--custom-width-${m}`]:!0}),g=Array.isArray(o)&&o.length>0?o.slice(0,1):[];return(0,s.jsx)(Ft,{className:p,"data-test-id":"block-kc-card",ref:v=>{this.block=v},style:this.getStyle(),children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:n,children:(0,s.jsx)("div",{className:"block-knowledge__container",children:(0,s.jsx)("div",{className:"block-knowledge__row",children:(0,s.jsx)("div",{className:`block-knowledge__col--custom-width-${m}`,children:(0,s.jsx)(un,{"aria-label":this.getTypeLabel(),className:f,"data-test-id":"block-knowledge-wrapper",ref:v=>{this.wrapper=v},children:g.map(v=>this.renderQuestion(v))})})})})})})}getStyle(){const{backgroundColor:e,settings:n}=this.props;if(n?.cardMode===so.TRANSPARENT)switch(n?.backgroundType){case I.xj.ACCENT:case I.xj.COLOR:case I.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 vA=t=>{const{blockId:e,items:[n]}=t,{drawCount:o,questions:r}=n,[a,l]=(0,h.useState)(()=>r?.length?O3({drawCount:o,questions:r,drawnQuestions:[]}):null);(0,h.useEffect)(()=>{if(!r)return;const c=u=>{const{path:m}=u.detail;if(m[m.indexOf("items")+1]?.id!==e)return;const f=m[m.lastIndexOf("questions")+1]?.id;if(f===a?.id)return;const g=r.find(({id:v})=>v===f);g&&l(g)};return window.addEventListener(ss,c),()=>window.removeEventListener(ss,c)},[e,a,r]);const d=(0,h.useMemo)(()=>a?{variant:nA[a.type],items:[a]}:{},[a]);return a?(0,s.jsx)(B3,{...t,...d}):(0,s.jsx)("div",{})},CA=t=>t.variant==="draw from question bank",Ya=t=>{const e=Dn()??"",n=Bs(),o=(0,xt.gY)(),r={...t,backgroundColor:e,getL10nValue:o,blockSettings:n};return CA(r)?(0,s.jsx)(vA,{...r}):(0,s.jsx)(B3,{...r})};var xA=i(24905),yA=i.n(xA);class bA extends K().Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(e){super(e),this.state={hasOverflow:!1},this.refWrap=(0,h.createRef)(),this.refBubbleTitle=(0,h.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=Er()}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;this.props.dispatch(al(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:n,description:o,htmlId:r,isActive:a,media:l,title:d,x:c,y:u}=this.props,m=z()("bubble",{"bubble--active":a}),p=TA({x:c,y:u}),f=jA({hasOverflow:this.state.hasOverflow,x:c,y:u}),g={borderBottomColor:e},v=`${r}-title`,C=()=>{if(!l)return(0,s.jsx)(Nt,{allowTabNavigation:a,className:"bubble__description",value:o});const b=this.props.getL10nValue(l)??{},x=Jo(b,this.props.audioPosition,this.props.hasAudioExpansionFlag,!0,"labeled-graphic"),L={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},E={audio:{media:x.audioOnlyMedia||b,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:x.imageOnlyMedia||b,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:x.videoOnlyMedia||b,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:x.embedOnlyMedia||b,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:b,isOverlayAudio:!0,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-overlay`}};return(0,s.jsx)(s.Fragment,{children:x.renderOrder.map((S,N)=>{if(S==="text")return(0,s.jsx)(Nt,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${N}`);const A=E[S];return!A||S==="embed"&&!a?null:(0,s.jsx)("div",{className:"bubble__media",children:(0,s.jsx)("div",{className:"bubble__figure",children:(0,s.jsx)("div",{className:z()({"labeled-graphic-bubble-media-container--audio-bottom":S==="audio"&&this.props.audioPosition==="bottom"}),children:(0,s.jsx)(dn,{...L,...A})})})},`${S}-${N}`)})})},y=(0,s.jsx)("div",{className:m,ref:this.refWrap,style:p,children:(0,s.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":v,"aria-modal":"false",className:f,id:r,onKeyDown:this.handleKeyDown,style:g,children:[(0,s.jsx)("h2",{className:"bubble__title",id:v,ref:this.refBubbleTitle,tabIndex:-1,children:(0,s.jsx)(yn,{value:d})}),(0,s.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,s.jsx)(E6,{className:"bubble__close-icon"})}),(0,s.jsx)("div",{className:"bubble__content",ref:b=>{this.contentRef=b},children:C()}),n&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,Jn.createPortal)((0,s.jsx)(Jm,{children:y}),this.portal):y}renderControls(){const{accentColor:e,labels:n}=this.props,o={"--color-lg-accent":e};return(0,s.jsxs)("div",{className:"bubble__controls",style:o,children:[(0,s.jsx)("button",{"aria-label":n?.a11yCarouselPrevious,className:"bubble__prev",onClick:this.handlePreviousClick,type:"button",children:(0,s.jsx)("i",{className:"icon icon-chevron-left"})}),(0,s.jsx)("button",{"aria-label":n?.a11yCarouselNext,className:"bubble__next",onClick:this.handleNextClick,type:"button",children:(0,s.jsx)("i",{className:"icon icon-chevron-right"})})]})}renderOverflowMask(){if(!this.contentRef)return;const e=this.contentRef,n=e.offsetHeight;e.scrollHeight>n?(e.addEventListener("scroll",this.scrollRef=ml()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(e.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}handleDocumentClick=e=>{const n=Array.from(document.querySelectorAll("dialog[open]"))?.reduce((o,r)=>r.contains(e.target)||o,!1);!this.props.isActive||n||this.props.onClose({shouldFocusMarker:!1})};handleDocumentKeyDown=e=>{rn(e)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(e){const{allowNav:n,onNextClick:o,onPreviousClick:r}=this.props,a=i9(this.contentRef,this.state.hasOverflow),l=yA()(At()(n));As()([[l(Na),r],[l(Aa),o],[Mh,a]])(e)}handleCloseClick=()=>{this.props.onClose()};handleNextClick(e){this.props.onNextClick(e)}handlePreviousClick(e){this.props.onPreviousClick(e)}handleScroll(){const e=this.contentRef,n=e.scrollTop,o=e.scrollHeight,r=e.offsetHeight;n>=o-r-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}getMediaContainerClasses(e,n){return z()({"labeled-graphic-bubble-media-container":e,"labeled-graphic-bubble-media-container--audio-overlay":n,"labeled-graphic-bubble-media-container--audio-on-bottom":e&&this.props.hasAudioExpansionFlag&&this.props.audioPosition==="bottom"})}}const EA=qt(bA),LA=(0,Ns.Ls)()(EA),TA=({x:t,y:e})=>{const n={top:"initial",bottom:"initial",left:"0",right:"0"};return t>50?n.right=100-t+"%":n.left=t+"%",e>50?n.bottom=100-e+"%":n.top=e+"%",n},jA=({hasOverflow:t,x:e,y:n})=>{const o=e<50;let r="top";return n>33&&(r=n>66?"bottom":"middle"),z()("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"})},H3=({children:t,className:e,contentFocused:n=!1,...o})=>{const r=z()("authoring-tooltip",{[e]:e},{"content-focused":n});return(0,s.jsx)("div",{className:r,...o,children:t})},z3=({children:t,className:e="",side:n,...o})=>{const r=z()("authoring-tooltip__content",`authoring-tooltip__content--${n}`,{[e]:e});return(0,s.jsx)("span",{...o,className:r,children:t})},IA=(0,h.forwardRef)((t,e)=>{const{children:n,direction:o,portalId:r,visible:a}=t,l=ae("portal-tooltip"),[d,c]=(0,h.useState)();(0,h.useEffect)(()=>{c(document.getElementById(r))},[r,c]);const u=(0,s.jsx)("div",{"aria-hidden":"true",ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,s.jsx)("div",{className:l("target"),style:{pointerEvents:"all"},children:(0,s.jsx)("div",{className:l({visible:a}).mix(o),children:(0,s.jsx)("div",{className:l("inner"),children:n})})})});return d?(0,Jn.createPortal)(u,d):(0,s.jsx)(s.Fragment,{})});IA.displayName="PortalTooltipContent";var SA=i(59288);const NA=t=>new URL(t).pathname.slice(1)+new URL(t).search;class AA extends SA.Component{imageEl;constructor(e){super(e),this.state={style:{}}}render(){const{canvasClassNames:e,children:n,editable:o,editingDisabled:r,getL10nValue:a,imageLoaded:l,media:d,onCreateMarker:c,onShowAltDialog:u}=this.props,{style:m}=this.state,p=a(d)?.image??{},{alt:f,dimensions:g,key:v,src:C}=p,y=!!p.alt,b=(0,Zs.Ll)(f),x=(0,Zs.Zd)(p),L=z()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":o&&!r,"labeled-graphic-canvas__figure--editing-disabled":o&&r});let E;v?E=(0,Yt.ME)(p):C&&(E=(0,Yt.ME)({key:NA(C),...p}));const S=z()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":(0,Zs.sg)(E)}),N=(0,s.jsx)(bn,{alt:b,className:S,"data-l10n-id":(0,Rt.pP)(d),height:g?.height||g?.originalHeight,onClick:c,onLoad:()=>this.setState({style:x}),ref:A=>{this.imageEl=A},src:E,style:m,width:g?.width||g?.originalWidth});return(0,s.jsx)("div",{className:e||"labeled-graphic-canvas",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,s.jsxs)("figure",{className:L,children:[y&&o?(0,s.jsxs)(H3,{className:"item-media__tooltip",children:[(0,s.jsx)("button",{className:"labeled-graphic-canvas__alt-tag",onClick:u,type:"button",children:"ALT"}),(0,s.jsx)(z3,{side:"top",children:"Edit alt text"})]}):[],l&&N,(0,s.jsx)("ol",{role:"list",children:n})]})})})})}}const PA=qt(AA),RA={"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"},MA=(t,e)=>{const n=RA[e];return n?.startsWith("a11y")?t?.[n]||"":n||""};var kA=i(59288);const F3=ae("labeled-graphic-marker");class OA extends kA.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=n=>{this.onItemDrag(n)}),e.addEventListener("mouseleave",this.onMouseLeave=n=>{this.onItemRelease(n)})}componentWillUnmount(){const e=this.parentCanvasElement();e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseleave",this.onMouseLeave)}UNSAFE_componentWillReceiveProps(e){const{isSelected:n,useLocalStateForCompletion:o}=e;n&&o&&!this.state.isComplete&&this.setState({isComplete:!0})}buildMarkerLabel=({icon:e,label:n,title:o,viewed:r})=>{const{labels:a}=this.props;return[].concat(n||[]).concat(o||[]).concat(e||[]).concat(r?a?.a11yLabeledGraphicViewed:a?.a11yLabeledGraphicUnviewed).join(", ")};render(){const{accentColor:e,ariaControls:n,icon:o,isActive:r,isComplete:a,isLessonBlocksList:l,isSelected:d,isVisible:c,labels:u,markerColor:m,markerColorContrast:p,onFocus:f,styles:g,useLocalStateForCompletion:v}=this.props,C=this.props.getL10nValue(this.props.title),y=MA(u,o),b=v?this.state.isComplete:a,x=!!m,L=(0,ct.cP)(m)?I.Em.LIGHT:I.Em.DARK,S=cn({backgroundColor:m,contrast:p??L}),N=x?m:"#ffffff",A=x?S:e,k=this.buildMarkerLabel({icon:y,label:u&&u.a11yLabeledGraphicButtonMarker||"",title:C,viewed:b}),R=F3({active:d,dragged:this.state.isDragged,visible:c,complete:b}),W={...g,"--color-lg-accent":N,"--color-lg-font":A},D=F3("pin",{selected:d,disabled:l});return(0,s.jsx)("button",{"aria-controls":n,"aria-expanded":r,"aria-label":k,className:R,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:w=>{this.marker=w},style:W,type:"button",children:(0,s.jsx)("span",{className:D,children:(0,s.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:n,onClick:o,parentId:r}=this.props,a="labeledGraphicMarkerClick",l={detail:{itemId:n,parentId:r}},d=new CustomEvent(a,l);document.dispatchEvent(d),e||o()}onItemGrab(e){const{editable:n}=this.props;if(!n)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 n=e.clientX-this.state.posX,o=e.clientY-this.state.posY;this.marker.style.transform=`translate3d(${n}px, ${o}px, 0)`}}onItemRelease(e){const{editable:n}=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():n&&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 wA=qt(OA);class DA extends K().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:n}=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:!n||zs()}}componentDidMount(){const{isBlock:e,isLearner:n,isPreview:o,markerDelay:r}=this.props;n&&!e&&(this.timeout=setTimeout(()=>this.setState({showMarkers:!0}),o?0:r))}componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.entranceDoneTimeout)}render(){const{accentColor:e,animateBlockEntrance:n,blockId:o,color:r,canvasClassNames:a,disableCreateMarker:l,editable:d,getL10nValue:c,hasAudioExpansionFlag:u,imageLoaded:m=!0,isBlock:p,isLearner:f,isLessonBlocksList:g,isPreview:v,items:C,labels:y,lessonId:b,media:x,onItemClear:L,onItemHint:E,onItemSelected:S,onNextClick:N,onPreviousClick:A,onShowAltDialog:k,parentId:R,progress:W,selected:D,settings:w={},showBubbles:Z,enableVideoPlaybackSpeed:B}=this.props,{markerColor:F,markerColorContrast:G}=w,{showMarkers:ue}=this.state,le=F||(e||r),Se=z()("map-item",{"map-item--animated":!d}),Oe=n?"fadeIn":"none",We=n?1:0,ze=C.length>1;return(0,s.jsx)(h.Fragment,{children:(0,s.jsx)(Bt,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!v,animateIn:Oe,duration:v?0:We,initiallyVisible:!n,isLearner:f,children:(0,s.jsx)(PA,{canvasClassNames:a,editable:d,editingDisabled:l,imageLoaded:m,media:x,onCreateMarker:this.createMarker,onShowAltDialog:k,ref:Ve=>{this.canvas=Ve},children:C.map((Ve,it)=>{const{description:tt,id:xe,icon:Me,media:Qe,title:Be}=Ve,pt=c(Ve.x),ot=c(Ve.y),Mt={top:ot+"%",left:pt+"%"},zt=ts()(["items",xe,"isComplete"],W),kt=D===xe,Cs=`bubble-${o}-${xe}`;return(0,s.jsxs)("li",{className:Se,role:"listitem",children:[(0,s.jsx)(wA,{accentColor:le,ariaControls:Cs,editable:d,icon:Me,isActive:D===xe,isComplete:zt,isLessonBlocksList:g,isSelected:kt,isVisible:ue,itemId:xe,labels:y,markerColor:F,markerColorContrast:G,onClick:()=>{S(xe)},onFocus:this.onMarkerFocus(xe),onHover:()=>{E()},onLeave:()=>{L()},onSetPosition:this.onSetPosition.bind(this,Ve),parentId:R,ref:Ln=>{this.markerRefs[xe]=Ln},styles:Mt,title:Be,useLocalStateForCompletion:p},xe),!d&&Z&&(0,s.jsx)(LA,{accentColor:le,allowNav:ze,audioPosition:w.audioPosition,blockId:o,description:tt,enableVideoPlaybackSpeed:B,hasAudioExpansionFlag:u,htmlId:Cs,index:it,isActive:kt,item:Ve,labels:y,lessonId:b,media:Qe,mediaOpts:{disableZoom:!w.zoomOnClick},onClose:this.onBubbleClose(xe),onNextClick:()=>{N(it)},onPreviousClick:()=>{A(it)},title:Be,x:Number(pt),y:Number(ot)},Cs)]},xe)})})})})}createMarker(e){const{disableCreateMarker:n,editable:o,isBlock:r,onCreateMarker:a}=this.props;if(!o||n)return;const{x:l,y:d}=this.findItemCoordinates({e}),{id:c,items:u}=this.props.lesson,m=r?u[0].items.length:u.length,f={description:"",hasMedia:!1,icon:"01",id:Kc()(),isActive:!1,title:"",x:String(l),y:String(d)};a({index:m,lessonId:c,items:u,payload:f})}onBubbleClose(e){const{onClose:n}=this.props;return(o={shouldFocusMarker:!0})=>{const r=this.markerRefs[e];o.shouldFocusMarker&&r?.focus?.(),n()}}onMarkerFocus(e){return()=>{const{onClose:n,selected:o}=this.props;o&&o!==e&&n()}}onSetPosition(e,n,o,r){if(!this.props.editable)return;const{lesson:a,onSetMarkerPosition:l}=this.props,{id:d,items:c}=a,{x:u,y:m}=this.findItemCoordinates({e:n,offsetX:o,offsetY:r}),p={x:String(u),y:String(m)};(0,us.uW)(e.x)&&(0,us.uW)(e.y)?(this.props.updateL10n({l10n:e.x,value:p.x}),this.props.updateL10n({l10n:e.y,value:p.y})):l({itemId:e.id,lessonId:d,items:c,payload:p})}findItemCoordinates({e,offsetX:n=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,l=this.findItemCoordinate({clientPos:e.clientX,clientOffset:n,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:l,y:d}}findItemCoordinate({clientPos:e,clientOffset:n,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const l=a/r*100,d=100-l;let c=(e+n-o)/r*100;return c>d?c=d:c<l&&(c=l),c}afterAnimatedIn(){const{isBlock:e}=this.props;e&&this.setState({showMarkers:!0})}}const BA=qt(DA);var HA=i(59288);const U3="page-wrap--noscroll";class zA extends HA.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(ss,this.handleNavEvent)}handleNavEvent(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;n===this.props.blockId&&this.state.selectedItemId!==o&&this.onItemSelected(o)}componentWillUnmount(){this.props.readOnly||document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.removeEventListener(ss,this.handleNavEvent)}render(){const{imageLoaded:e}=this.state,{hasAudioExpansionFlag:n,isLessonBlocksList:o,isPreview:r,items:a,labels:l,parentId:d,settings:c={}}=this.props,{mediaWidth:u="2"}=c,m=r?a[0].id:this.state.selectedItemId,p=z()("view-labeled-graphic",{"view-labeled-graphic--small":u==="0","view-labeled-graphic--medium":u==="1","view-labeled-graphic--full":u==="2"});return(0,s.jsx)("div",{"aria-label":l?.a11yLabeledGraphicBlock,className:p,role:"group",children:(0,s.jsx)(BA,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,hasAudioExpansionFlag:n,imageLoaded:e,isLessonBlocksList:o,labels:l,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:d,selected:m})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const{image:e}=this.props.getL10nValue(this.props.media),{key:n,src:o}=e,r=setTimeout(this.setImageLoaded,1e3),a=new Image,l=n?(0,Yt.ME)(e):o;a.src=l,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return z()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(e){const{blockId:n,items:o}=this.props,r=et()("id",o[Ms()(e)]||o[0]);document.querySelector(`dialog#bubble-${n}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onPreviousClick(e){const{blockId:n,items:o}=this.props,r=et()("id",o[Rn()(e)]||o[Rn()(Tt()(o))]);document.querySelector(`dialog#bubble-${n}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onItemSelected(e){const{editBlock:n,items:o,onItemSelected:r,onStep:a}=this.props,{selectedItemId:l}=this.state;n&&window.matchMedia("(max-width: 768px)").matches||(l===e?this.closeOpenedBubble():(this.openBubble(e),Re()(a,es()(d=>d.id===e))(o)),r(e))}handleMarkerClick(e){const{itemId:n,parentId:o}=e.detail,{selectedItemId:r}=this.state;(o!==this.props.parentId||r!==n)&&this.closeOpenedBubble()}openBubble(e){const{blockId:n}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const r=document.querySelector(".page-wrap");r&&r.classList.add(U3)}this.setState({selectedItemId:e}),document.getElementById(`bubble-${n}-${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(U3)}document.getElementById(`bubble-${e}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const FA=qt(zA),UA=t=>{const{blockId:e,progress:n,isLessonBlocksList:o=!1}=t,r=ts()(["items",e],n),a=Ar("rise-audio-release");return(0,s.jsx)(Ft,{className:"block-labeled-graphic",children:(0,s.jsx)(FA,{...t,editable:!1,hasAudioExpansionFlag:!!a,isBlock:!0,isLessonBlocksList:o,parentId:e,progress:r})})},Pu=ae("block-process-card"),V3=({icon:t,isOverlayAudio:e=!1,onClick:n,text:o,variant:r})=>{const a=`${r}-btn`;return(0,s.jsxs)("button",{className:Pu(a,{"audio-overlay":e}),onClick:n,type:"button",children:[(0,s.jsx)("span",{className:Pu(`${a}-text`),children:o}),(0,s.jsx)(yt,{classNameIcon:Pu(`${a}-icon`),name:t})]})},VA=ae("block-process-card"),WA=({activeIndex:t,enableVideoPlaybackSpeed:e,id:n,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:l,labels:d,lessonId:c,media:u,onMediaLoad:m,settingZoomOnClick:p})=>{const f=Ar("rise-audio-release"),{image:g,video:v}=u??{},C=a?g?.align??"center":"center",y=VA("media",{legacy:!f&&!v,"audio-overlay":a,[`audio-overlay-${C}`]:a,"intro-step":r});return(0,s.jsx)("div",{className:y,children:(0,s.jsx)(dn,{activeIndex:t,blockId:n,defaultAlign:"center",enableVideoPlaybackSpeed:e,hasPadding:!1,index:`${n}-${o}`,isOverlayAudio:f&&a,item:l,itemIndex:o,labels:d,lessonId:c,media:u,onLoad:m,opts:{disableZoom:!p},pauseOnLoad:!0})})};var Ru=i(59288);const er=ae("block-process-card"),$A=({text:t})=>{const e=Ru.useRef(null),{isInView:n}=KA({ref:e,threshold:.75});return(0,s.jsxs)("div",{className:er("swipe-badge",{animate:n}),ref:e,children:[(0,s.jsx)("span",{className:er("swipe-badge-text"),children:t}),(0,s.jsx)(yt,{className:er("swipe-badge-icon"),name:"chevron-right-solid"})]})};function KA({ref:t,rootMargin:e="0px",threshold:n=.1}){const[o,r]=Ru.useState(!1);return Ru.useEffect(()=>{if(!t.current||o)return;const a=new IntersectionObserver(([l])=>{l.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:e,threshold:n});return a.observe(t.current),()=>a.disconnect()},[o,t,e,n]),{isInView:o}}const GA=({activeIndex:t,className:e,description:n,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:l,item:d,labels:c,lessonId:u,media:m,onClickRestart:p,onClickStart:f,settingAudioPosition:g,settingHeadingLevel:v=2,settingShowStepLabel:C=!0,settingStepLabel:y,settingZoomOnClick:b,showSwipeBadge:x,style:L,title:E,totalSteps:S,type:N})=>{const A=`h${v}`,k=N==="intro",R=N==="summary",W=N==="step",D=r?l:l+1,w=(0,xt.QQ)(y)||c.processStepName,Z=Ar("rise-audio-release"),B=(0,xt.QQ)(Array.isArray(m)?{}:m),F=Jo(B,g,Z,!0,"process"),G=()=>{if(!m)return null;const ue={activeIndex:t,enableVideoPlaybackSpeed:o,id:a,index:l,isIntroStep:k,labels:c,lessonId:u,media:m,onMediaLoad:()=>{},settingZoomOnClick:b,item:d},ce={audio:{media:F.audioOnlyMedia||B,isOverlayAudio:!1},image:{media:F.imageOnlyMedia||B,isOverlayAudio:!1},video:{media:F.videoOnlyMedia||B},embed:{media:F.embedOnlyMedia||B,isOverlayAudio:!1},overlay:{media:B,isOverlayAudio:!1}};return F.renderOrder.map((le,Se)=>{if(le==="text")return(0,s.jsx)(Nt,{className:er("description"),value:n},`text-${Se}`);const Oe=ce[le];return Oe?(0,s.jsx)(WA,{...ue,...Oe},`${le}-${Se}`):null})};return(0,s.jsxs)("div",{className:er(null,{[N]:!0}).mix(e),style:L,children:[W&&C&&(0,s.jsx)("div",{className:er("number"),children:`${w} ${D}`}),(0,s.jsx)("div",{className:er("title"),children:(0,s.jsx)(A,{children:(0,s.jsx)(Nt,{value:E})})}),G(),!m&&(0,s.jsx)(Nt,{className:er("description"),value:n}),k&&S>1&&(0,s.jsx)(V3,{icon:"chevron-right-solid",isOverlayAudio:F.isOverlayAudio,onClick:f,text:c.processStart,variant:"start"}),R&&S>1&&(0,s.jsx)(V3,{icon:"arrow-rotate-left",isOverlayAudio:F.isOverlayAudio,onClick:p,text:c.processStartAgain,variant:"restart"}),x&&W&&(0,s.jsx)($A,{text:c.processSwipe})]})};var xo=i(59288);const QA=ae("block-process-carousel"),W3=t=>t?.type==="intro",Mu=t=>t?.type==="summary",ku=t=>t?.type==="step",$3=t=>t?.isHidden,ZA=({animateBlockEntrance:t,enableVideoPlaybackSpeed:e,id:n,isLearner:o,items:r,labels:a,lessonId:l,onStep:d,previewType:c,processRef:u,settings:{audioPosition:m,headingLevel:p,stepLabel:f,showStepLabel:g,zoomOnClick:v}})=>{const C=ks(480),y=(0,Ie.Wz)(),b=(0,xt.gY)(),x=(0,Ns.y4)(),L=xo.useRef(null),[E,S]=xo.useState(0),[N,A]=xo.useState(!1),k=xo.useMemo(()=>c===Ze.o4.MOBILE_PORTRAIT||c===Ze.o4.MOBILE_LANDSCAPE,[c]),R=xo.useMemo(()=>{const le=r.filter(ze=>!$3(ze)),Se=le.find(W3),Oe=le.find(Mu),We=le.filter(ku);return[Se,...We,Oe].filter(Boolean)},[r]),W=xo.useMemo(()=>R.findIndex((le,Se)=>ku(le)&&(ku(R[Se+1])||Mu(R[Se+1]))),[R]),D=W3(R[0]),w=Mu(R[R.length-1]),Z=!!c;xo.useEffect(()=>{d&&(r.forEach(le=>$3(le)&&d(le)),R.length>0&&d(R[0]))},[]);const B=xo.useCallback(()=>{L.current?.navigateToSlide?.(0)},[]),F=xo.useCallback(()=>{L.current?.navigateToSlide?.(1)},[]),G=xo.useCallback(le=>{S(le),u.current?.scrollIntoView({behavior:"smooth",block:"start"}),le!==W&&!N&&A(!0),d?.(R[le]);const Oe=b(R[le]?.media);Oe?.audio&&x(al(Oe.audio?.transcript??null))},[R,x,W,b,N,d,u]),ue=({index:le,isActive:Se,onClick:Oe,onKeyDown:We})=>{const ze=D&&le===0,Ve=w&&le===R.length-1,it=D?le:le+1;let tt,xe;ze?(tt=a?.a11yBlockProcessSlideControlsIntroduction,xe=(0,s.jsx)(yt,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):Ve?(tt=a?.a11yBlockProcessSlideControlsSummary,xe=(0,s.jsx)(yt,{name:"check-regular"})):(tt=it.toString(),xe=it.toString());const Me=`${a?.a11yBlockProcessSlideControlsGoToSlide} ${tt}`;return(0,s.jsx)(H2,{"aria-label":Me,ariaLabel:Me,className:"carousel-controls-item-btn",isActive:Se,onClick:Oe,onKeyDown:We,children:xe},le)},ce=t?"fadeIn":"none";return(0,s.jsx)(Bt,{animateBlockEntrance:Z,animateIn:ce,duration:Z&&t?1:0,initiallyVisible:!t,isLearner:o,children:(0,s.jsx)("div",{className:QA(),children:(0,s.jsx)(Wc,{blockId:n,carouselRef:L,items:R,children:()=>(0,s.jsx)(Fc,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:y,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:G,ref:L,renderSlideIndicator:ue,shouldMouseEmulateTouch:k,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:R.map((le,Se)=>(0,s.jsx)(un,{activeIndex:E,description:le.description,enableVideoPlaybackSpeed:e,hasIntro:D,id:n,index:Se,isHidden:le.isHidden,item:le,labels:a,lessonId:l,media:le.media,onClickRestart:B,onClickStart:F,settingAudioPosition:m,settingHeadingLevel:p,settingShowStepLabel:g,settingStepLabel:f,settingZoomOnClick:v,showSwipeBadge:C&&!N&&Se===W,tag:GA,title:le.title,totalSteps:R.length,type:le.type},le.id))})})})})};var YA=i(59288);const _A=t=>{const{blockId:e,settings:n}=t,{paddingBottom:o,paddingTop:r}=n,a=YA.useRef(null),l={paddingBottom:`${Number(o)*10}px`,paddingTop:`${Number(r)*10}px`};return(0,s.jsx)(Ft,{className:"block-process",ref:a,style:l,children:(0,s.jsx)(ZA,{id:e,processRef:a,...t})})};var XA=i(82501),JA=i.n(XA),qA=i(7906),vl=i.n(qA),eP=i(23444),od=i.n(eP),tP=i(18448),Ou=i.n(tP),sP=i(18714),nP=i.n(sP),oP=i(22423),Fo=i.n(oP);const K3=t=>({...t.responses[t.response],hasCharacter:t.hasCharacter,type:"response"}),rP=(t,e)=>{const n=t.responses[t.response],o={emotion:e.emotion,goTo:e.goTo,nextSlide:e.nextSlide},r="action"in e?{action:e.action}:{};return{...o,...r,description:n?.feedback||"",type:"dialogue",hasCharacter:t.hasCharacter}},aP=t=>[K3(t)],iP=t=>{const e=!!t.responses[t.response],n=K3(t),o=rP(t,n);return e?[n,o]:[o]},lP=t=>t.hasFeedback?[t,...iP(t)]:t.response!=null?[t,...aP(t)]:[t],cP=(t,e)=>{if(!e)return;const{scene:n,slide:o}=e,r=t.findIndex(d=>d.id===n),l=(t[r]?.slides||[]).findIndex(d=>d.id===o);return{scene:r,slide:l}},G3=_o()(cP);var dP=i(40731),Q3=i.n(dP);const uP=rs()(et()("filters"),st()(nt()("name","rise_emotion")),od()(Jt())),hP=rs()(et()("filters"),es()(nt()("name","rise_emotion")),et()("value")),Z3=t=>new URL(t).pathname.slice(1),mP=t=>rs()(nn()("key",Z3(t.src)),nn()("thumbnailKey",Z3(t.thumbnail)))(t),pP=rs()(et()("poses"),st()(uP),ws()(t=>[hP(t),t]),Q3(),wr()(mP));var yo=i(59288);const wu=t=>t===-1?null:t,Y3=t=>jr()(Js(),Fn(),t),rd=od()(Jt()),_3=od()(Js()),_a=Mr()(_3,rd),X3=JA()(ol()),J3=Pe.BI?Y3(Yt.dE):Y3(Yt.bX),Du=t=>dt()(t);class fP extends yo.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=yo.createRef();responseItemRef=yo.createRef();scenarioRef=yo.createRef();blockContentRef=yo.createRef();endRef=yo.createRef();textRef=yo.createRef();refs=yo.createRef();dynamicRefs=yo.createRef();shouldFocus=!1;constructor(e){super(e);const n={activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:{}};this.refs.current={},this.state=e.initialState||n,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:n}=this.props,o=Re()(La()("poses"),Wt()({},"character"),Du);_a(n)&&!o(n)&&this.fetchCharacters(),e||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(ss,this.handleNavEvent)}handleNavEvent(e){const{path:n}=e.detail,{blockId:o,sceneId:r,slideId:a,responseId:l}=Mi(n,["block","scene"]),d=n.at(-1)==="feedback";if(o!==this.props.blockId)return;const c=wu(this.props.items.findIndex(p=>p.id===r)),u=c!==null?wu(this.props.items[c].slides.findIndex(p=>p.id===a)):null,m=u!==null?wu(this.props.items[c].slides[u].responses.findIndex(p=>p.id===l)):null;this.setState({activeScene:c??0,activeSlide:u??0},()=>{c!==null&&u!==null&&this.setState({slides:{...this.state.slides,[`${c}.${u}`]:{...this.state.slides[`${c}.${u}`],hasFeedback:d,response:m}}})})}componentDidUpdate(){const{items:e,onStep:n}=this.props,{activeScene:o,activeSlide:r}=this.state,a=qe()([],[o,"slides"],e),l=qe()(null,[r,"goTo"],a),d=qe()(null,[r,"type"],a);if(n&&(l==="end"&&d==="text"||!l&&!d)&&Ou()(n,e),this.shouldFocus){this.shouldFocus=!1;const p=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');p?p.focus():B0(this.scenarioRef.current)}}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener(ss,this.handleNavEvent)}fetchCharacterPose(e,n){const{items:o}=this.props,{character:r,slides:a}=o[e],l=a[n],d=`${e}.${n}`,c=[d,"response"],u=[d,"hasFeedback"],m=qe()(null,c,this.state.slides),p=qe()(!1,u,this.state.slides),f=Wt()("neutral","emotion",l),g=jr()(At()(p),qe()(f,["responses",m,"emotion"]),At()(f)),v=rs()(qe()(r?.poses?.neutral,["poses",g(l)]),J3);return{name:r.name,pose:v(r)}}fetchCharacters(){const{getCharacter:e,items:n,onItemUpdate:o}=this.props,r=vn()(["id","name","poses","src"]),a=d=>c=>o({itemId:d,payload:{character:c}}),l=({character:d,id:c})=>_a(d)&&e(d.id).then(u=>nn()("poses",pP(u),u)).then(r).then(a(c));n.map(l)}getCharacterPose(){const{items:e}=this.props,{activeScene:n,activeSlide:o,prevScene:r,prevSlide:a}=this.state,l=qe()([],[n,"slides"],e),d=qe()(!0,[o,"hasCharacter"],l);return _3(r)&&Ts()(d)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(n,o)}onClick(e,n){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:l}=this.state,{slides:d}=o[a],c=Wt()(null,"type",d[l])==="dialogue",u=a===o.length-1,m=l===d.length-1,p={activeSlide:l+1},f={activeScene:a+1,activeSlide:0},g={activeSlide:null},v={activeScene:0,activeSlide:0},C=rs()(G3(o),({scene:E,slide:S})=>({activeScene:E,activeSlide:S})),y=As()([[At()(m&&u),At()(g)],[At()(m&&!u),At()(f)],[wo(),At()(p)]]),b=jr()(At()(c),At()(g),At()(v)),x=As()([[cs()("slide"),Fo()(C,[n])],[cs()("next"),y],[cs()("end"),b]]),L=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,l),0),this.setState({prevScene:a,prevSlide:l}),this.setState(x(e),L),e==="end"&&this.resetSlides(),e==="end"&&r&&Ou()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}onResponseClick(e){const{activeScene:n,activeSlide:o,slides:r}=this.state,a=`${n}.${o}`,l=nn()("response",e),d=nn()("hasFeedback",!0),c=wa()({[`${a}`]:l}),u=wa()({[`${a}`]:d}),m=Re()(u,c);this.setState({slides:c(r)},()=>{this.shouldFocus=!0,this.setState({slides:m(r)})})}onTryAgainClick(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=`${e}.${n}`,a=vl()({hasFeedback:null,response:null}),l=wa()({[`${r}`]:a});this.setState({slides:l(o)})}render(){const{blockId:e,getL10nValue:n,isPDF:o,items:r,labels:a}=this.props,{activeScene:l,activeSlide:d,initiated:c}=this.state,{slides:u}=r[l]||{},m=u&&u[d],p=Re()(rd,Wt()({},"character"),Du),f=Re()(La()("poses"),Wt()({},"character"),Du),g=Re()(Co(),qe()({},["character","poses"])),v=Re()(Oc(),Co(),ws()(g)),C=z()("scenario-block",{"scenario-block--initiated":c,"scenario-block--mobile":on.isMobile,"scenario-block--loading":p(r)&&!f(r)}),y=`scenario-live-${e}`,b={"aria-label":a?.a11yGroupScenario,"aria-describedby":y,className:C,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:null},x=(0,Yt.ME)(n(r?.[0].background?.media)?.image),L=As()([[Js(),this.renderEnd],[nt()("type","dialogue"),this.renderDialogues],[nt()("type","text"),this.renderText],[wo(),At()(null)]]),E=m&&!m.hasCharacter,S=z()("scenario-block__character",{"scenario-block__character--hidden":E}),N=`${l}.${d}`,A=this.state.slides[N],k=A?.hasFeedback?m?.responses?.[A?.response]?.alt:m?.alt,R=n(k);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{...b,"data-l10n-id":(0,Rt.pP)(k),children:[(0,s.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:y,children:R}),(0,s.jsx)("div",{className:"scenario-block__spinner"}),(0,s.jsx)("div",{className:"scenario-block__background-wrapper",children:_a(r)&&r.map(this.renderBackground)}),(0,s.jsx)(bn,{alt:"",onLoad:this.onInit,src:x}),(0,s.jsxs)("div",{className:"scenario-block__inner",children:[(0,s.jsx)("div",{className:S,children:f(r)&&v(r).map(this.renderPose)}),(0,s.jsx)(ls.F,{children:_a(r)&&L(m)})]})]}),o&&m&&this.renderDetails(m)]})}renderBackground(e,n){const{activeScene:o}=this.state,{id:r,blurBackground:a}=e,l=this.props.getL10nValue(e?.background?.media)?.image,d=z()("scenario-block__background",{"scenario-block__background--active":o===n,"scenario-block__background--blur":a??!0});return(0,s.jsx)(bn,{alt:"",className:d,src:(0,Yt.ME)(l)},r)}renderButton(e){const{labels:n}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=n,{goTo:a,nextSlide:l}=e,d="action"in e?e.action:void 0,c={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},u=d==="tryAgain"?(0,s.jsxs)("span",{children:[r," ",(0,s.jsx)("i",{className:"icon icon-reload"})]}):(0,s.jsx)("span",{children:o}),p={className:"scenario-block__dialogue__button",key:"button",onClick:d==="tryAgain"?Re()(this.onFocus,this.onTryAgainClick):Re()(this.onFocus,Fo()(this.onClick,[a,l]))};return(0,s.jsx)(ls.F,{children:(0,s.jsx)(ls.B1,{...c,children:(0,s.jsx)("button",{...p,type:"button",children:u})})})}renderDetails(e){const{items:n}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:l}=e,d=(p,f)=>(0,s.jsxs)("span",{children:[p," ",(0,s.jsx)(L6,{})," ",f]},p),c=rs()(G3(n),({scene:p,slide:f})=>`Scene ${p+1} Slide ${f+1}`),u=(p,{goTo:f,nextSlide:g})=>As()([[cs()("next"),Fo()(d,[p,"Next Slide"])],[cs()("end"),Fo()(d,[p,"End of Scenario"])],[wo(),Fo()(d,[p,c(g||{})])]])(f),m=l==="text"?u("Continue",e):a.map((p,f)=>u(f,p));return(0,s.jsxs)("div",{className:"scenario-block__pdf-details",children:[(0,s.jsxs)("h3",{children:["Scene ",o+1," Slide ",r+1]}),m]})}renderDialogue(e,n,o){const{description:r,id:a,hasCharacter:l}=n,d="type"in n?n.type:void 0,{count:c,firstKey:u,hasFeedback:m}=e,p=o===0?a:o,f=o===1?u:o-1,g=o===0&&c===1,v=o===c,C=d==="dialogue"&&(g||v),y=this.dynamicRefs.current[`dialogue-${p}`],b=v&&this.dynamicRefs.current[`dialogue-${f}`],x=y&&y.offsetHeight,L=v&&b&&b.offsetHeight,E=m?30:0,S=window.innerWidth<480?20:30,N=S*2+60+L-E,A=S+60-E,k=nP()(x+E-60),R=yo.createRef(),W=z()("scenario-block__dialogue",{"scenario-block__dialogue--response":d==="response","scenario-block__dialogue--done":o<c-1}),D=As()([[At()(g),At()(null)],[cs()(c),At()({top:`${N}px`})],[cs()(c-1),At()({top:`${A}px`})],[cs()(c-2),At()({top:`${k}px`})],[wo(),At()({top:`-${x+30}px`})]]),w={className:W,ref:G=>{this.dynamicRefs.current[`dialogue-${p}`]=G},style:D(o)},Z={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:R,key:o,timeout:{enter:400,exit:400}},B=z()({"scenario-block__dialogue__bubble":l||d==="response","scenario-block__dialogue__pane":!l}),F=(0,s.jsx)("div",{className:B,"data-scenario-focus":C?"":void 0,tabIndex:C?-1:void 0,children:(0,s.jsx)(Nt,{value:r})});return(0,s.jsx)(ls.B1,{...Z,children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{...w,children:_a(r)&&F})})})}renderDialogues(e){const{activeScene:n,activeSlide:o,slides:r}=this.state,{id:a,responses:l}=e,d=`${n}.${o}`,c=r[d]||{},m=Re()(Oc(),lP,Mo()(c))(e),{hasFeedback:p,response:f}=c,{feedback:g}=l[f]||{},v=Js()(f)&&rd(l),C=p?m.length-1:m.length,y=(C===1&&Jt()(l)||C===2&&rd(l))&&p,b={count:C,firstKey:qe()(null,[0,"id"],m),hasFeedback:p&&_a(g)},x={classNames:"scenario-block__content-",key:a,nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},L=(0,s.jsx)("div",{className:"scenario-block__dialogues__bottom",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__bottom__inner",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__responses",children:(0,s.jsx)(ls.F,{component:"ol",role:"list",children:l.map(this.renderResponse)})})})});return(0,s.jsx)(ls.B1,{...x,children:(0,s.jsx)("div",{className:"scenario-block__dialogues scenario-block__content",children:(0,s.jsxs)("div",{className:"scenario-block__dialogues__inner",children:[(0,s.jsx)("div",{className:"scenario-block__dialogues__top",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__top__inner",children:(0,s.jsx)(ls.F,{children:m.map(this.renderDialogue.bind(this,b))})})}),v&&L,y&&this.renderButton(m[C-1])]})})})}renderEnd(){const{labels:e}=this.props,{scenarioComplete:n,scenarioStartOver:o}=e,r=Re()(this.onFocus,Fo()(this.onClick,["end",null])),a=z()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),l={classNames:"scenario-block__content-",key:"end",nodeRef:this.endRef,timeout:{enter:0,exit:400}};return(0,s.jsx)(ls.B1,{...l,children:(0,s.jsx)("div",{className:a,children:(0,s.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[(0,s.jsx)("div",{className:"scenario-block__text__title",children:(0,s.jsx)("h2",{children:n})}),(0,s.jsxs)("button",{className:"scenario-block__text__end",onClick:r,type:"button",children:[(0,s.jsx)("span",{children:o}),(0,s.jsx)("i",{className:"icon icon-reload"})]})]})},"end")})}renderPose(e,n){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=e,l=J3(e),d=Mr()(nt()("name","style")),c=d(nt()("value","left_aligned")),u=d(nt()("value","right_aligned")),m=z()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===l,"scenario-block__character__inner--right":es()(u,r),"scenario-block__character__inner--left":es()(c,r)});return(0,s.jsx)("div",{className:m,"data-pose-id":a,children:(0,s.jsx)(bn,{alt:"",src:l})},`pose-${n}-${a}`)}renderResponse({description:e},n){const{isPDF:o}=this.props,r=o?vP:Re()(this.onFocus,Fo()(this.onResponseClick,[n])),a=z()(["scenario-block__response",`scenario-block__response--${n}`]),l=z()("scenario-block__response-item",`scenario-block__response-item--${n}`),d={appear:!0,classNames:"scenario-block__response-item-",key:n,nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},c=(0,s.jsx)("button",{className:a,onClick:r,type:"button",children:(0,s.jsxs)("div",{className:"scenario-block__response__inner",children:[(0,s.jsx)("div",{className:"scenario-block__response__number",children:n+1}),(0,s.jsx)(Nt,{value:e})]})});return(0,s.jsx)(ls.B1,{...d,children:(0,s.jsx)("li",{className:l,role:"listitem",children:c})})}renderText(e){const{description:n,goTo:o,hasCharacter:r,id:a,nextSlide:l}=e,d=this.props.getL10nValue(e.title),{labels:c,settings:u}=this.props,{scenarioContinue:m,scenarioStartOver:p}=c,f=!n&&(d||"").length<22,g=z()("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,y=C?`h${C}`:"h2",b=(0,s.jsx)("div",{className:"scenario-block__text__title","data-l10n-id":(0,Rt.pP)(e.title),children:(0,s.jsx)(y,{children:d})}),x=(0,s.jsx)("div",{className:"scenario-block__text__description",children:(0,s.jsx)(Nt,{value:n})}),L=Re()(this.onFocus,Fo()(this.onClick,[o,l])),E=(0,s.jsx)("button",{className:"scenario-block__text__continue",onClick:L,type:"button",children:(0,s.jsx)("span",{children:m})}),S=(0,s.jsxs)("button",{className:"scenario-block__text__end",onClick:L,type:"button",children:[(0,s.jsx)("span",{children:p}),(0,s.jsx)("i",{className:"icon icon-reload"})]});return(0,s.jsx)(ls.B1,{...v,children:(0,s.jsx)("div",{className:g,children:(0,s.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[d&&b,n&&x,o==="end"?S:E]})},a)})}resetSlide(e,n){const{slides:o}=this.state,r=`${e}.${n}`,a={hasFeedback:!1,response:null};this.setState({slides:nn()(r,a,o)})}resetSlides(){const{items:e}=this.props,n=r=>(a,l,d)=>{const{type:c,responses:u=[]}=l,m=c==="dialogue"&&u.length===0;return nn()(`${r}.${d}`,{hasFeedback:m,response:null},a)},o=(r,a,l)=>rs()(et()("slides"),X3(n(l),{}),vl()(r))(a);this.setState({slides:X3(o,{},e)})}setNextSlide(){const{items:e}=this.props,{activeScene:n,activeSlide:o,slides:r}=this.state,{slides:a}=e[n],{responses:l=[],type:d}=a[o]||{},c=`${n}.${o}`,u=nn()("hasFeedback",!0),m=wa()({[c]:u});d==="dialogue"&&Jt()(l)&&(this.shouldFocus=!0,this.setState({slides:m(r)}))}shouldComponentUpdate(e,n){return e.items!==this.props.items||e.settings!==this.props.settings||n.activeScene!==this.state.activeScene||n.activeSlide!==this.state.activeSlide||n.initiated!==this.state.initiated||n.resizes!==this.state.resizes||n.slides!==this.state.slides||e.labels!==this.props.labels}}const gP=t=>{const e=(0,xt.gY)();return(0,s.jsx)(fP,{...t,getL10nValue:e})};function vP(){}var CP=i(59288);class xP extends CP.Component{render(){const{animateBlockEntrance:e,isLearner:n,previewType:o}=this.props,r=!Js()(o),d={animateBlockEntrance:r,animateIn:e?"fadeIn":"none",duration:r&&e?1:0,initiallyVisible:!e,isLearner:n};return(0,s.jsx)(Ft,{className:"block-scenario",children:(0,s.jsx)(Bt,{...d,children:(0,s.jsx)(gP,{...this.props})})})}}var yP=i(92824),ad=i.n(yP);function bP(t){t&&(t.addEventListener("touchstart",tr,!0),t.addEventListener("touchmove",tr,!0),t.addEventListener("touchcancel",tr,!0),t.addEventListener("touchend",tr,!0))}function EP(t){t&&(t.removeEventListener("touchstart",tr,!0),t.removeEventListener("touchmove",tr,!0),t.removeEventListener("touchcancel",tr,!0),t.removeEventListener("touchend",tr,!0))}function tr(t){t?.stopPropagation?.()}var LP=i(59288);const Xa=ae("playing-card");class TP extends LP.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,h.createRef)()}componentDidMount(){setTimeout(()=>{this.setState({reset:!1})},300),bP(this.card),vo(this.card).draggable({inertia:!0,autoScroll:!1,modifiers:[vo.modifiers.snap({targets:[(e,n)=>({x:e,y:n})],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=Xc()(this.checkTitleSize,250),window.addEventListener("resize",this.checkTitleSizeDebounced.bind(this))}checkTitleSize(){const{titleRef:e,state:{lastHighestOverflowScreenSize:n}}=this,{innerWidth:o}=window,r=e.current&&e.current?.scrollHeight>e.current?.clientHeight,a=o<n;r&&o>n&&this.setState({lastHighestOverflowScreenSize:o}),this.setState({isTooTall:r||a})}componentWillUnmount(){clearTimeout(this.resetTimeout),EP(this.card),vo(this.card).off("dragstart",this.onDragStartRef).off("dragmove",this.onDragMoveRef).off("dragend",this.onDragEndRef),window.removeEventListener("resize",this.checkTitleSizeDebounced)}componentDidUpdate(e,n){n.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:n}}=this.state,o=`translate3d(${e}px, ${n}px, 0)`;return{WebkitTransform:o,transform:o}}render(){const{isMoving:e,isTooTall:n,failed:o,reset:r}=this.state,{blockSettings:a,id:l,isDeckTopCard:d,title:c}=this.props,u=a?.backgroundType===I.xj.ACCENT||a?.backgroundType===I.xj.IMAGE,{titleRef:m}=this,p=Xa("title",{"is-max-length":n}),f=Xa({draggable:!0,moving:e,fail:o,reset:r}),g=u?Xa("content"):Xa("content").mix("brand--border");return(0,s.jsx)("div",{"aria-hidden":!d,className:f,id:l.toString(),onMouseDown:v=>{v.preventDefault()},ref:v=>{this.card=v},style:this.cardStyle(),children:(0,s.jsxs)(un,{className:g,children:[(0,s.jsx)(Nt,{className:p,ref:m,value:c}),(0,s.jsx)("div",{className:Xa("handle")}),(0,s.jsx)("div",{className:Xa("status"),children:(0,s.jsx)("i",{className:"icon icon-check"})})]})},`card-${l}`)}onStartSortAttempt(){this.setState({isMoving:!0,failed:!1})}onDragMove({dx:e,dy:n}){const{position:o}=this.state,r=o.x+e,a=o.y+n;this.setState({position:{x:r,y:a}})}onEndSortAttempt(){this.setState({isMoving:!1})}}const q3=Cc("blockSettings")(TP),id=ae("restart-button"),ep=({allowTabNavigation:t=!0,onClick:e,onFocus:n=Ds.lQ,text:o})=>{const r=id({}).mix("button");return(0,s.jsx)("button",{"aria-hidden":!t,className:r,onClick:e,onFocus:n,tabIndex:ka(t),type:"button",children:(0,s.jsxs)("div",{className:id("content"),children:[(0,s.jsx)("span",{className:id("text").mix("brand--ui"),children:o}),(0,s.jsx)("i",{"aria-hidden":"true",className:id("icon").mix("icon").mix("icon-reload")})]})})};var jP=i(59288);const IP=t=>z()("deck",{"deck--complete":nt()("percentViewed",100,t)}),SP=({progress:t,count:e})=>`${Wt()(0,"correctlyAnswered",t)}/${e}`,NP=({item:t,progress:e})=>String(e.lastIncorrectCardId)===String(t.id),AP=nt()("percentViewed",100);class PP extends jP.Component{static defaultProps={onReplay:Function.prototype};cardRefs;constructor(e){super(e),this.cardRefs=[]}startKeyDrop(){const e=dt()(this.cardRefs);e&&e.onStartSortAttempt()}endKeyDrop(){const e=dt()(this.cardRefs);e&&e.onEndSortAttempt()}render(){const{count:e,items:n,labels:o,id:r,progress:a,onReplay:l}=this.props,d=AP(a);return(0,s.jsxs)("div",{className:IP(a),children:[(0,s.jsx)("div",{className:"deck__spacer"}),(0,s.jsxs)("div",{"aria-hidden":!d,className:"deck__cardholder",children:[(0,s.jsxs)("div",{className:"deck__title brand--ui",children:[SP({progress:a,count:e})," ",o.sortingCardsCorrect]}),(0,s.jsx)(ep,{allowTabNavigation:d,onClick:Fo()(l,[r]),text:o.sortingReplay})]}),(0,s.jsx)("div",{className:"deck__content",children:n.map((c,u)=>(0,s.jsx)(q3,{id:c.id,isDeckTopCard:this.cardRefs[u]===dt()(this.cardRefs),isIncorrect:NP({item:c,progress:a}),ref:m=>{this.cardRefs[u]=m},title:c.title},c.id))})]})}}var RP=i(59288);class MP extends RP.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,h.createRef)()}focus(){this.pileContent.focus()}componentDidMount(){vo(this.pile).dropzone({overlap:"pointer"}).on("dragenter",this.handleDragEnter).on("dragleave",this.handleDragLeave).on("drop",this.handleMouseDrop),this.checkTitleSize(),this.checkTitleSizeDebounced=Xc()(this.checkTitleSize,250),window.addEventListener("resize",this.checkTitleSizeDebounced.bind(this))}componentWillUnmount(){vo(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:n,onNavigateToPrevious:o}=this.props,r=p0(this.handleKeyboardDrop),a=p0(o),l=p0(n);As()([[Xo,r],[Na,a],[Aa,l]])(e)}onKeyUp(e){Xo(e)&&this.props.onKeyDropEnd()}handleDragEnter(e){const n=vo.getElementRect(e.target),o={x:n.left+n.width/2,y:n.top+n.height/2};e.draggable.draggable({snap:{targets:[o]}})}handleDragLeave(e){e.draggable.draggable({snap:{targets:[(n,o)=>({x:n,y:o})]}})}handleMouseDrop(e){e.draggable.draggable({snap:{targets:[(n,o)=>({x:n,y:o})]}}),this.handleDrop()}handleKeyboardDrop(){const{deckTopCard:e,onKeyDropStart:n}=this.props;e&&(n(),this.handleDrop())}handleDrop(){const{lessonId:e,id:n,deckTopCard:o,onCardDrop:r}=this.props,a=o.id.toString(),l=o.pileId===n;r({id:e,itemId:a,isCorrect:l}),l&&(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:n}}=this,{innerWidth:o}=window,r=e&&e.current?.scrollHeight>e.current?.offsetParent?.clientHeight,a=o<n;r&&o>n&&this.setState({lastHighestOverflowScreenSize:o}),this.setState({isTooTall:r||a})}render(){const{title:e}=this.props,{activeCard:n,isSuccess:o,isTooTall:r,showFocusOutline:a}=this.state,{titleRef:l}=this,d=z()("pile",{"drop-success":o}),c=z()("pile__content",{"drop-animating":!a}),u=z()("pile__title",{"pile__title--is-max-length":r});return(0,s.jsx)("div",{className:d,ref:m=>{this.pile=m},children:(0,s.jsx)("div",{className:"pile__wrapwrap",children:(0,s.jsxs)(un,{className:"pile__wrap",overrideBackground:!0,children:[(0,s.jsx)("div",{className:"pile__message",children:(0,s.jsx)(Nt,{className:u,ref:l,value:e})}),(0,s.jsx)("div",{className:c,onKeyDown:this.onKeyDown.bind(this),onKeyUp:this.onKeyUp.bind(this),ref:m=>{this.pileContent=m},tabIndex:sl,children:n&&(0,s.jsx)(q3,{id:n.id,title:n.title})}),(0,s.jsx)("div",{className:"pile__background"})]})})})}}const kP=MP;var OP=i(59288);const wP=t=>e=>Ts()(qe()(!1,["items",e.id,"isViewed"],t)),DP=({items:t,progress:e})=>st()(wP(e),t);class BP extends OP.Component{pileRefs;deck;constructor(e){super(e),this.state={items:ad()(e.items)},this.pileRefs=[],this.handleReviewNav=this.handleReviewNav.bind(this)}componentDidMount(){window.addEventListener(ss,this.handleReviewNav)}componentWillUnmount(){window.removeEventListener(ss,this.handleReviewNav)}handleReviewNav(e){const{id:n}=this.props,{blockId:o,cardId:r}=Mi(e.detail.path,["block","card"]);n!==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 n=et()("retryAttempts",this.props.progress),o=et()("retryAttempts",e.progress);if(n!==o)this.setState({items:ad()(e.items)});else{const r=e.items.filter(d=>!this.state.items.find(nt()("id",d.id))),l=this.state.items.filter(d=>e.items.find(nt()("id",d.id))).map(d=>{const c=e.items.find(u=>u.id===d.id);return{...d,...c}}).concat(r);this.setState({items:l})}}render(){const{items:e}=this.state,{id:n,labels:o,progress:r,onCardDrop:a,onReplay:l,piles:d}=this.props,{sortingLandmark:c}=o,u=DP({items:e,progress:r});return(0,s.jsxs)("div",{"aria-label":c,className:z()("sorting"),role:"group",children:[(0,s.jsx)("div",{className:"sorting__row",children:(0,s.jsx)(PP,{count:e.length,id:n,items:u,labels:o,onReplay:l,progress:r,ref:m=>{this.deck=m}})}),(0,s.jsx)("div",{className:"sorting__row",children:d.map((m,p)=>(0,s.jsx)(kP,{deckTopCard:u&&u[0],id:m.id,lessonId:n,onCardDrop:a,onKeyDropEnd:()=>{this.deck.endKeyDrop()},onKeyDropStart:()=>{this.deck.startKeyDrop()},onNavigateToNext:()=>V7({list:this.pileRefs,currentIndex:p}),onNavigateToPrevious:()=>W7({list:this.pileRefs,currentIndex:p}),ref:f=>{this.pileRefs[p]=f},title:m.title},m.id))})]})}}const HP=({blockId:t,lessonId:e})=>({itemId:n,isCorrect:o})=>(0,O.JD)((0,Bo.i$)({itemId:n,lessonId:e,blockId:t,isCorrect:o})),zP=({blockId:t,lessonId:e})=>()=>(0,O.JD)((0,Bo.V9)({lessonId:e,blockId:t})),FP=t=>{const{animateBlockEntrance:e,blockId:n,items:o,labels:r,piles:a,progress:l}=t,d=t.onCardDrop||HP,c=t.onReplay||zP;return(0,s.jsx)(Ft,{type:"sorting-activity",children:(0,s.jsx)(Bt,{animateBlockEntrance:e,isLearner:!0,children:(0,s.jsx)(BP,{id:n,items:o,labels:r,onCardDrop:d(t),onReplay:c(t),piles:a,progress:qe()({},["items",n],l)})})})};var tp=i(28079);class UP extends h.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,n){return n.prevScope!==e.scope?{hasError:!1,error:void 0,prevScope:e.scope}:n}componentDidCatch(e){tp.L.addError(e,{scope:this.props.scope},"source")}render(){const{hasError:e,error:n}=this.state,{FallbackComponent:o}=this.props;return e||n?(0,s.jsx)(o,{}):this.props.children}}const VP=UP,WP=(0,h.lazy)(()=>i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)));function $P(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 KP({blockumentId:t,manifest:e}){let n=920,o=600;try{const r=e.blockuments?.[t];if(r){const a=e.items?.[r.children[0]?.id];if(a){const l=a.states[a.initialState];if(l){const d=l.width.value,c=l.height.value;typeof d=="number"&&typeof c=="number"&&(n=d,o=c)}}}}catch{}return(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-mondrian__fallback",height:o,width:n})}function GP({animateBlockEntrance:t=!0,blockumentId:e,isLearner:n=!1,settings:o}){const r=(0,Ie.DX)(),a=r.mondrian,l=(0,Ie.SQ)(),d={externalLinksDisabled:"externalLinksDisabled"in r?r.externalLinksDisabled:!1,isExternalLink:yr};return(0,s.jsx)(Ft,{children:(0,s.jsx)(VP,{FallbackComponent:YP,children:(0,s.jsx)(Bt,{animateBlockEntrance:t,isLearner:n,children:(0,s.jsx)("div",{style:$P(o),children:(0,s.jsx)(h.Suspense,{fallback:(0,s.jsx)(KP,{blockumentId:e,manifest:a}),children:(0,s.jsx)(WP,{blockumentId:e,linkRenderConfig:d,manifest:a,runtimeInterface:window.Runtime,searchTerm:l?.term})})})})})})}const QP=(0,h.memo)(GP,ZP);function ZP(t,e){return t.blockumentId===e.blockumentId&&t.settings.backgroundType===e.settings.backgroundType&&t.settings.contentWidth===e.settings.contentWidth}function YP(){return null}var sp=i(67750),bs=i(59288);const _P=ae("block-html"),Bu=new Map;window.addEventListener("message",t=>{if(t.origin!==window.origin)return;const e=Bu.get(t.source);e!=null&&np(t,e)});function np(t,e){const n=op(sp.parse(t.data));for(const o of n)switch(o.type){case"notification":e[o.method]?.(o.params);break;default:throw new Error(`Unsupported RPC type "${o.type}"`)}}function*op(t){if(Array.isArray(t))for(const e of t)yield*op(e);else yield t}function rp(t,e,n){return bs.useEffect(()=>{if(t!=null)return Bu.set(t.contentWindow,e),()=>void Bu.delete(t.contentWindow)},[t,e]),bs.useCallback(r=>{t?.contentWindow.postMessage(r,n)},[t,n])}const $G=(t,e,n)=>rp(t,n,window.origin),XP=(t,e,n)=>rp(t,n,"*"),JP=(t,e,n)=>{const[o,r]=bs.useState(()=>new BroadcastChannel(e));return bs.useEffect(()=>()=>o.close(),[o]),bs.useEffect(()=>{o.name!==e&&r(new BroadcastChannel(e))},[o,e]),bs.useEffect(()=>{const l=new AbortController;return o.addEventListener("message",d=>np(d,n),{signal:l.signal}),()=>l.abort()},[o,n]),bs.useCallback(l=>{o.postMessage(l)},[o])},qP=on.isLocalFilesystem?XP:JP;function eR(t){return typeof t=="number"?`${t/10}rem`:"-1px"}const tR={0:"small",1:"medium",2:"full"};function sR(t){const[e]=t.items,n=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",[l,d]=bs.useState("-1px");bs.useEffect(()=>{r||d(eR(t.settings?.height))},[r,t.settings?.height]);const[c,u]=bs.useState(null),[m,p]=bs.useState(!1),[f,g]=bs.useState(!1),[v]=bs.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),C=`lib/sandbox/sandbox.html#channel=${encodeURIComponent(v)}`,y=bs.useCallback(({message:A})=>{console.error("Sandbox Error",A)},[]),b=bs.useCallback(()=>{p(!0)},[]),x=bs.useCallback(()=>{g(m)},[m]),L=bs.useCallback(({height:A})=>{r&&d(`${A}px`)},[r]),E=bs.useMemo(()=>({onerror:y,onload:x,onready:b,onresize:L}),[y,b,x,L]),S=qP(c,v,E),N=bs.useCallback((A,k)=>{if(c==null&&!m)throw new Error("Attempted to send message to sandbox before it is ready");const R=sp.format.notification(A,k);S(R)},[m,c,S]);return bs.useEffect(()=>{m&&N("onupdate",{autoResize:r,src:o,srcDoc:n})},[r,m,N,o,n]),(0,s.jsx)(Ft,{children:(0,s.jsx)("iframe",{className:_P({"auto-resize":r,loaded:f,width:tR[a]}),loading:"lazy",ref:u,sandbox:"allow-popups allow-same-origin allow-scripts",scrolling:r?"no":void 0,src:C,style:{"--block-html-height":l}},v)})}const sr=ae("timeline-card"),nR=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:l,lessonId:d,lessonNumber:c,mediaType:u,audioPosition:m}=t,{settings:p}=a,f=(0,xt.QQ)(a.media)??{},g=Ar("rise-audio-release"),v=u==="audio"&&f.audio,C=u==="embed"&&f.embed,y=u==="image"&&f.image,b=u==="video"&&f.video;if(!v&&!C&&!y&&!b&&!(u==="image-with-audio"&&r))return;const L=f.embed?ll(f.embed):void 0,E=!!f.image,S=!!f.audio,N=E?f.image.align:"center",A=sr("media",{audio:S&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${N}`]:r&&!!N,"audio-on-bottom":S&&!r&&m==="bottom",linkEmbed:L==="link",videoEmbed:L==="video",visual:!r&&E||!Js()(f.video)}),k=p||{};return(0,s.jsx)("div",{className:A,children:(0,s.jsx)(dn,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:g&&r,item:a,labels:l,lessonId:d,lessonNumber:c,media:f,opts:{disableZoom:n,...k},pauseOnLoad:!0,renderMediaType:r?void 0:u})})},oR=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:l,onFocus:d}=t,{id:c}=o,u=sr({active:r}),m=!!o.date,p=!!o.title,f=e||2,g=`h${f}`,v=`h${f+1}`,C=Ar("rise-audio-release"),y=(0,xt.QQ)(o.media)??{},b=Jo(y,l,C,!0,"timeline"),x=()=>{if(!y||!a)return null;const L={audio:{item:{...o,media:b.audioOnlyMedia||y},mediaType:"audio"},image:{item:{...o,media:b.imageOnlyMedia||y},mediaType:"image"},video:{item:{...o,media:b.videoOnlyMedia||y},mediaType:"video"},embed:{item:{...o,media:b.embedOnlyMedia||y},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:b.renderOrder.map((E,S)=>{if(E==="text")return(0,s.jsx)(Nt,{className:sr("description"),value:o.description},`text-${S}`);const N=L[E];return N?(0,h.createElement)(nR,{...t,...N,key:`${E}-${S}`}):null})})};return(0,s.jsx)("div",{className:u,"data-id":c,ref:n,children:(0,s.jsx)(un,{className:sr("body"),onFocus:d,children:(0,s.jsx)("div",{className:sr("main-wrap"),children:(0,s.jsxs)("div",{className:sr("main"),children:[m&&(0,s.jsx)("div",{className:sr("date"),children:(0,s.jsx)(g,{children:(0,s.jsx)(yn,{value:o.date})})}),p&&(0,s.jsx)("div",{className:sr("title"),children:(0,s.jsx)(v,{children:(0,s.jsx)(yn,{value:o.title})})}),x()]})})})})},Cl=ae("timeline"),rR=t=>{const{audioPosition:e,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,isBlock:l,isLearner:d,item:c,labels:u,lessonId:m,onFocus:p}=t,f=(0,s.jsx)(oR,{audioPosition:e,blockId:a,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:c,labels:u,lessonId:m,lessonNumber:a,loadMedia:!0,onFocus:p});return l?d?(0,s.jsx)(Bt,{animateBlockEntrance:!0,className:Cl("animate").toString(),isLearner:!0,children:f}):f:null},aR=t=>{const{id:e,items:n,labels:o,onEnter:r=Function.prototype,settings:a={}}=t,l=(0,h.useRef)(null),d=(0,h.useCallback)((c,u)=>{r({id:e,payload:{activeIndex:c,itemId:u}})},[e,r]);return(0,h.useEffect)(()=>{function c(u){const{blockId:m,cardId:p}=Mi(u.detail.path,["block","card"]);if(m!==e)return;const f=l.current.querySelector(`[data-id="${p}"]`);f&&!R0(f,"center")&&f.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(ss,c),()=>{window.removeEventListener(ss,c)}}),(0,s.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",ref:l,role:"group",children:(0,s.jsx)("div",{className:Cl("wrapper"),children:(0,s.jsx)("div",{className:Cl(),children:(0,s.jsx)("ul",{className:Cl("container"),role:"list",children:n.map((c,u)=>(0,s.jsx)("li",{className:Cl("card-wrapper"),role:"listitem",children:rR({index:u,item:c,onFocus:d,...t,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},u))})})})})},iR=t=>{const{animateBlockEntrance:e,blockId:n,enableVideoPlaybackSpeed:o,isLearner:r=!0,items:a,labels:l,lessonId:d,settings:c}=t;return(0,s.jsx)(Ft,{type:"timeline",children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:!0,children:(0,s.jsx)(aR,{enableVideoPlaybackSpeed:o,id:n,isBlock:!0,isLearner:r,items:a,labels:l,lessonId:d,settings:c})})})},lR=t=>(0,s.jsx)("div",{className:"unsupported-block",...t,children:(0,s.jsxs)("span",{children:["We no longer support this block, so you can safely delete it. If you have any questions, please"," ",(0,s.jsx)("a",{href:"https://access.articulate.com/support/contact",children:"contact Articulate Support."})]})});var ap=i(77726),cR=i(47707),ip=i.n(cR),Ks=i(45129);const Hu=t=>t.displayName||t.name||"Component";var dR=i(41895),uR=i.n(dR);const hR=(t,e)=>(0,s.jsx)("mark",{children:t},e),mR=(t,e)=>uR()(new RegExp(qN()(e),"igm"),hR,t),pR=_o()(mR),fR=(t,e)=>e.reduce((n,o)=>n+o[t],0),_G=fn()(fR);var gR=i(82298),lp=i.n(gR),vR=i(69366),CR=i.n(vR),xR=i(64011),nr=i.n(xR),yR=i(70477),bR=i.n(yR),ER=i(58488),cp=i.n(ER),LR=i(58800),TR=i.n(LR),jR=i(60708),IR=i.n(jR),SR=i(85772),NR=i.n(SR);const AR=t=>t===-1,PR=t=>t>=0,RR=nr()(3,(t,e,n)=>Z2()(t,n,e)),zu=nr()(3,(t,e,n)=>n[t]==e),XG=nr()(3,(t,e,n)=>rs()(hs()(zu("id",e)),jr()(AR,At()(n),RR(t,n)))(n)),JG=t=>filter(complement(zu("id",t))),qG=nr()(3,(t,e,n)=>bR()(e,n[t],IR()(t,1,n)));function MR(t,e){const n=[];for(const o of e)if(n.push(o),t(o))break;return n}const kR=nr()(2,(t,e)=>Re()(Q3(),st()(CR()(t)),NR())(e)),dp=nr()(2,(t,e)=>Re()(cp(),kR((n,o)=>e(o)))(t)),up=nr()(2,(t,e)=>st()(Re()(Ui()(xn())(e),t))),OR=W0()(TR()(lp(),0)),hp=Re()(Array.from,Array),mp=_o()((t,e)=>hp(e).map(()=>t)),wR=_o()((t,e,n,o)=>hp(n).map((r,a)=>a===o?e:t)),eQ=nr()(3,(t,e,n)=>rs()(hs()(zu(t,e)),PR)(n));function tQ(t,e,n){if(e>=n.length)return n.slice(0);const o=Math.floor(e/2),r=Math.ceil(e/2),a=t-o,l=t+r;return l>n.length?n.slice(n.length-e):a>=0?n.slice(a,l):n.slice(0,e)}const ld=(t,e)=>{const n=Math.min(t.length,e.length),o=new Array(n);for(let r=0;r<n;r++)o[r]=[t[r],e[r]];return o};var pp=i(92886);const DR=matchMedia("(forced-colors: active)");function Fs(){return DR.matches}const BR=({activeIndex:t,values:e,opts:n})=>{const{background:o,variant:r}=an(),{backgroundType:a,chartColor:l,lineCurve:d}=Bs(),c=Dn(),u=(0,Ie.kJ)(),m=n?.defaultFontColor,p=a===I.xj.IMAGE,g=(0,xt.QQ)(o?.media)?.image?.overlayColor??I.df.DARK,v=Fs();let C=l??u,y=c||"#fff";!l&&a===I.xj.ACCENT||l===y?C=m:p&&(C=g===I.df.DARK?"#fff":"#000",y=g===I.df.DARK?"#000":"#fff"),v&&(C="Highlight",y="Canvas");let b=C,x=Array(e.length).fill(C);if(t!=null&&!v){const L=p&&g===I.df.LIGHT?.2:.7,E=(0,pp.A)(C,y,L);b=E,x=wR(E,C,e.length,t)}return r==="bar"?{backgroundColor:x,data:e,hoverBackgroundColor:x}:{borderColor:b,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 HR({activeIndex:t,children:e,opts:n,values:o}){const r=BR({activeIndex:t,opts:n,values:o});return e(r)}class zR extends h.PureComponent{constructor(e){super(e),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this)}handleMouseEnter(){const{index:e,onEvent:n}=this.props;n(e)}handleMouseLeave(){const{onEvent:e}=this.props;e(null)}render(){const{activeIndex:e,identifier:n,index:o,label:r,value:a}=this.props,l=e!=null&&e!==o,d=z()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":l});return(0,s.jsxs)("div",{className:d,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsxs)("dt",{className:"block-chart__cartesianLegendTerm",children:[n,"."]}),(0,s.jsxs)("dd",{className:"block-chart__cartesianLegendDefn","data-l10n-id":r.l10nId,children:[r.label,(0,s.jsx)("span",{className:"block-chart__cartesianLegendDefnPipe",children:"|"}),(0,s.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const FR=zR,UR=({activeIndex:t,labels:e,letters:n,onEvent:o,values:r})=>{const a=ld(n,ld(e,r));return a.length===0?null:(0,s.jsx)("dl",{"aria-hidden":"true",className:"block-chart__cartesianLegend",children:a.map(([l,[d,c]],u)=>(0,s.jsx)(FR,{activeIndex:t,identifier:l,index:u,label:d,onEvent:o,value:c},l))})},VR=(0,h.memo)(UR);var WR=i(79418),$R=i.n(WR);function KR(t){const e=this.getLabelForValue(t),n=15,o=e.split(" "),r=[];let a="";return o.forEach(l=>{(a+l).length>n?(r.push(a),a=l):a+=(a.length>0?" ":"")+l}),r.push(a),r}const GR={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:n}=t[0];return`${e}: ${n}`}},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:KR,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function QR({values:t,contrastColor:e}){const{backgroundType:n}=Bs(),o=an(),r=n===I.xj.IMAGE,a=(0,h.useMemo)(()=>OR(t),[t]);let l,d;const u=(0,xt.QQ)(o?.background?.media)?.image?.overlayColor??I.df.DARK,m=r&&u===I.df.LIGHT;switch(n){case I.xj.LIGHT:case I.xj.GRAY:case I.xj.TINT:[l,d]=["#e1e1e1","#c9c9c9"];break;case I.xj.DARK:case I.xj.BLACK:case I.xj.IMAGE:[l,d]=["#ffffff80","#ffffffe9"];break;case I.xj.ACCENT:case I.xj.COLOR:{[l,d]=e==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&m&&([l,d]=["#00000080","#0000001a"]),a||(d=l),[l,d]}const ZR=({onEvent:t,reduceMotion:e,shouldAnimate:n,values:o})=>{const r=Dn(),{backgroundType:a,customBackgroundColorContrast:l}=Bs(),d=(0,Ie.DX)(),c=(0,Ie.kJ)(),u=d?.theme?.accentContrast,m=a===I.xj.IMAGE,p=an(),f=Fs(),g=(0,ct.cP)(r)?I.Em.LIGHT:I.Em.DARK,v=!l&&p?.family==="chart",C=l??I.Em.DARK,y=v?g:C,x=(0,xt.QQ)(p?.background?.media)?.image?.overlayColor??I.df.DARK,L=m&&x===I.df.LIGHT,E=a===I.xj.ACCENT||a===I.xj.COLOR,S=a===I.xj.ACCENT?c:r,N=a===I.xj.ACCENT?u:y,A=cn({backgroundColor:S,contrast:N}),[k,R]=QR({values:o,contrastColor:A}),W=(0,h.useCallback)(w=>f&&m?L?"#000000":"#FFFFFF":w.tick.value===0?R:k,[k,f,R,m,L]);return(0,h.useMemo)(()=>{let w="#000";if(f)m?w=L?"#000000":"#FFFFFF":w="FieldText";else{switch(a){case I.xj.DARK:case I.xj.BLACK:case I.xj.IMAGE:w="#fff";break}E&&(w=A),m&&L&&(w="#000")}const Z=n&&!e?1e3:0;let B,F;f?m?(B=w,F=L?"#FFFFFF":"#000000"):(B="Highlight",F="HighlightText"):(B=w,F=w==="#000"||w==="#000000"||w===I.Em.DARK?"#FFFFFF":"#000000");const G=$R()(GR);return G.animation.duration=Z,G.defaultFontColor=w,G.onClick=t,G.onHover=t,G.plugins.tooltip.animation=!e,G.plugins.tooltip.backgroundColor=B,G.plugins.tooltip.titleColor=F,f&&!m?(G.scales.x.grid.color="FieldText",G.scales.y.grid.color="FieldText"):(G.scales.x.grid.color=k,G.scales.y.grid.color=W),G.scales.x.ticks.color=w,G.scales.y.ticks.color=w,f&&(m?G.plugins.legend.labels.color=L?"#000000":"#FFFFFF":G.plugins.legend.labels.color="FieldText"),G},[a,A,k,E,f,m,L,t,e,W,n])};function YR(t){const{children:e,onEvent:n,reduceMotion:o,shouldAnimate:r,values:a}=t,l=ZR({onEvent:n,reduceMotion:o,shouldAnimate:r,values:a});return e(l)}const fp=({caption:t,labels:e,values:n})=>{const o=(0,h.useMemo)(()=>ld(e,n),[e,n]);return(0,s.jsxs)("table",{className:"visually-hidden-always",children:[(0,s.jsx)("caption",{children:t}),(0,s.jsx)("tbody",{children:o.map(([r,a],l)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"row",children:r.label}),(0,s.jsx)("td",{children:a})]},`row-${l}`))})]})};var _R=i(76063),Fu=i.n(_R);const XR=/<mark>|<\/mark>/gm,JR=t=>e=>{const n=t(e?.type).replace(XR,"")??"";return{label:Fu()(n,{length:30}),l10nId:(0,Rt.pP)(e?.type)}},qR=t=>parseFloat(t.value??"0"),gp=(t,e)=>({labels:t.map(JR(e)),values:t.map(qR)}),vp=(t,e,n)=>{const o=Fu()(e,{length:t});return n?pR(o,n):o},Cp=t=>{class e extends h.PureComponent{static displayName=`ChartEvents(${Hu(t)})`;constructor(o){super(o),this.state={activeIndex:null}}handleEvent=o=>{this.setState({activeIndex:o})};render(){return(0,s.jsx)(t,{...this.props,activeIndex:this.state.activeIndex,onEvent:this.handleEvent})}}return e},xp=t=>{class e extends h.PureComponent{static displayName=`ChartUpdater(${Hu(t)})`;chartRef;constructor(o){super(o),this.chartRef=(0,h.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,s.jsx)(t,{...this.props,chartRef:this.chartRef,onResize:this.handleResize})}}return e},eM="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");Ks.t1.register(Ks.A6,Ks.E8,Ks.PP,Ks.s$,Ks.ZT,Ks.No,Ks.kc,Ks.FN,Ks.hE,Ks.m_);class tM extends h.PureComponent{wrapRef;resizeObserver;constructor(e){super(e),this.wrapRef=(0,h.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,n)=>{const o=n.length?n[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:n,top:o}=e?.scales?.["y-axis-0"]??{};ip()(n)&&ip()(o)&&this.setState({labelYTop:`${(n+o)/2}px`})}};render(){const{props:{activeIndex:e,chartRef:n,getL10nValue:o,isDesktop:r,isVisible:a,items:l,itemsLabel:d,labels:c,onEvent:u,search:m,shouldAnimate:p,valuesLabel:f,variant:g},state:{labelYTop:v}}=this,C=vp(80,o(d),m),y=vp(30,o(f),m),b=gp(l,o),x=r?[]:eM.slice(0,l.length),L=r?b.labels:x.map(k=>({label:k})),E=a?b.values:mp(0,l.length),S=c?.[g==="bar"?"a11yBlockChartBar":"a11yBlockChartLine"],N=L.map(k=>k.label),A=L.map(k=>k.l10nId).join(",");return(0,s.jsxs)("div",{className:"block-chart__cartesian",children:[(0,s.jsxs)("div",{"aria-hidden":"true",className:"block-chart__cartesianChart",ref:this.wrapRef,children:[(0,s.jsx)(YR,{onEvent:this.handleEvent,reduceMotion:zs(),shouldAnimate:p,values:E,children:k=>(0,s.jsx)(HR,{activeIndex:e,opts:k,values:E,children:R=>(0,s.jsx)(ap.t1,{data:{labels:N,datasets:[R]},"data-l10n-id":A,options:k,ref:n,type:g,updateMode:"default"})})}),y&&Br(y)&&(0,s.jsx)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":(0,Rt.pP)(f),style:{insetInlineEnd:v},children:y})]}),C&&Br(C)&&(0,s.jsx)("div",{"aria-hidden":"true",className:"block-chart__cartesianLabelX","data-l10n-id":(0,Rt.pP)(d),children:C}),!r&&(0,s.jsx)(VR,{activeIndex:e,labels:b.labels,letters:x,onEvent:u,values:E}),(0,s.jsx)(fp,{caption:S,labels:L,values:E})]})}}const sM=t=>({search:t?.search?.term??""});function nM(t){const e=qt(t),n=xp(e),o=xf(960,"isDesktop","Desktop")(n),r=Cp(o);return(0,Ns.Ls)(sM)(r)}const oM=nM(tM);var rM=i(72624);const Uu=({valueType:t,value:e,values:n})=>t==="numeric"?String(e):bN(e/C3(n)),aM=t=>{if(Fs())return"FieldText";const e=t.dataset.backgroundColor[t.dataIndex]??"#000";return(0,ct.xD)(e)===I.Em.DARK?Ze.S6.DARK:Ze.S6.LIGHT},iM=(t,e,n)=>Uu({valueType:t,value:e,values:n.dataset.data}),lM=(t,e)=>{const{label:n,dataset:o,parsed:r}=e[0],a=Uu({valueType:t,value:r,values:o.data});return`${n}: ${a}`},cM=(t,e)=>{const n=e.dataIndex,o=e.dataset.data??[1],r=o[n],a=t==null&&r/C3(o)>=.06;return t===n||a},dM=({activeIndex:t,onEvent:e,reduceMotion:n,settings:{valueType:o},shouldAnimate:r})=>{const a=Fs();return{animation:{animateRotate:r&&!n,duration:r&&!n?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:e,onHover:e,maintainAspectRatio:!1,plugins:{datalabels:{color:aM,display:cM.bind(null,t),font:{size:12,weight:"bold"},formatter:iM.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!n,boxPadding:"14px 10px",callbacks:{label:()=>null,title:lM.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":Ze.S6.LIGHT,titleColor:a?"HighlightText":Ze.S6.DARK}},responsive:!1,rotation:130}},uM=({activeIndex:t,colors:e,hasBorder:n,values:o})=>{const r=Dn(),a=Fs(),l=t==null?e:e.map((d,c)=>c===t?d:(0,pp.A)(d,r||"#fff",.5));return a?{backgroundColor:l,hoverBackgroundColor:l,borderWidth:.5,borderColor:"rgba(255, 255, 255, 0.3)",data:o}:{backgroundColor:l,hoverBackgroundColor:l,borderWidth:0,data:o,...n&&{borderWidth:1,borderColor:"#000"}}};function hM({activeIndex:t,children:e,colors:n,hasBorder:o,values:r}){const a=uM({activeIndex:t,colors:n,hasBorder:o,values:r});return e(a)}class mM extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,backgroundColor:n,index:o,label:r}=this.props,a=e!=null&&e!==o,l=z()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":a});return(0,s.jsxs)("div",{className:l,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:n,focusable:"false",viewBox:"0 0 10 10",children:(0,s.jsx)("rect",{height:"10",rx:"1.5",width:"10"})}),(0,s.jsx)("div",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]})}}const pM=mM,fM=({activeIndex:t,colors:e,hasBorder:n,labels:o,onEvent:r})=>{const a=ld(o,e);if(a.length===0)return null;const l=z()("block-chart__circleLegend",{"block-chart__circleLegend--border":n});return(0,s.jsx)("div",{"aria-hidden":"true",className:l,children:a.map(([d,c],u)=>(0,s.jsx)(pM,{activeIndex:t,backgroundColor:c,index:u,label:d,onEvent:r},d.label))})},gM=(0,h.memo)(fM),vM=(t,e)=>{const n=t.filter(a=>Number(a.value)>=0),o=gp(n,e),r=n.map(a=>a.color);return{...o,colors:r}};Ks.t1.register(Ks.Bs,rM.A,Ks.s$,Ks.P$,Ks.m_);class CM extends h.PureComponent{wrapRef;resizeObserver;constructor(e){super(e),this.wrapRef=(0,h.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:n,shouldAnimate:o}=this.props;return dM({activeIndex:e,onEvent:this.handleEvent,reduceMotion:zs(),settings:n,shouldAnimate:o})};handleEvent=(e,n)=>{const o=n.length?n[0].index:null;this.props.onEvent(o)};render(){const{activeIndex:e,backgroundColor:n,chartRef:o,getL10nValue:r,isVisible:a,items:l,labels:d,onEvent:c,settings:u}=this.props,{colors:m,labels:p,values:f}=vM(l,r),g=a?f:mp(0,l.length),v=this.buildOptions(),C=d?.a11yBlockChartPie,y=g.map(L=>Uu({valueType:u.valueType,value:L,values:g})),b=p.map(L=>L.label),x=m.includes(n);return(0,s.jsxs)("div",{className:"block-chart__circle",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"block-chart__circleChart",ref:this.wrapRef,children:(0,s.jsx)(hM,{activeIndex:e,colors:m,hasBorder:x,values:g,children:L=>(0,s.jsx)(ap.t1,{data:{labels:b,datasets:[L]},options:v,ref:o,type:"pie",updateMode:"default"})})}),(0,s.jsx)(gM,{activeIndex:e,colors:m,hasBorder:x,labels:p,onEvent:c}),(0,s.jsx)(fp,{caption:C,labels:p,values:y})]})}}function xM(t){const e=M7()(t),n=xp(e),o=Cp(n);return qt(o)}const yM=xM(CM),bM=t=>(0,ct.cP)(t.backgroundColor);class EM extends h.PureComponent{constructor(e){super(e),this.state={isVisible:!1}}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||zs()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:e}=this.props;return(0,s.jsx)(Nt,{value:e})};render(){const{props:{animateBlockEntrance:e,children:n,editable:o,isLearner:r,items:a,itemsLabel:l,labels:d,settings:c,title:u,valuesLabel:m,variant:p,renderTitle:f=this.renderTitle},state:{isVisible:g}}=this,v=bM(c),C=c?.headingLevel,y=C?`h${C}`:"h2";return(0,s.jsx)(Ft,{type:"chart",children:(0,s.jsx)(Bt,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:e,initiallyVisible:!e||zs(),isLearner:r,children:(0,s.jsx)("div",{className:"block-chart__container",children:(0,s.jsx)("div",{className:"block-chart__row",children:(0,s.jsxs)("div",{className:"block-chart__rowInner",children:[(!o&&u||o)&&(0,s.jsx)(y,{className:"block-chart__title",children:f()}),(0,s.jsx)("div",{className:"block-chart__chart",children:K().cloneElement(K().Children.only(n),{hasDarkBgColor:v,isVisible:g,items:a,itemsLabel:l,labels:d,settings:c,shouldAnimate:e,valuesLabel:m,variant:p})})]})})})})})}}const LM=EM;function yp(t){const e=n=>(0,s.jsx)(LM,{...n,children:(0,s.jsx)(t,{})});return e.displayName=`ChartWrap(${Hu(t)})`,e}const TM=yp(oM),jM=yp(yM);var IM=i(59288);const SM=st()(nt()("variant","storyline")),NM=rs()(SM,Tt(),Qn()(1));class AM extends IM.Component{render(){const{dividerNumber:e,family:n,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:l}=this.props,c={...Xl()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:l,partnerContent:r};return Ge("text","paragraph",c)||Ge("text","table",c)?(0,s.jsx)(uj,{...c}):Ge("text","heading paragraph",c)?(0,s.jsx)(vj,{...c}):Ge("text","subheading paragraph",c)?(0,s.jsx)(Cj,{...c}):Ge("text","heading",c)?(0,s.jsx)(fj,{...c}):Ge("text","subheading",c)?(0,s.jsx)(gj,{...c}):Ge("text","two column",c)?(0,s.jsx)(hj,{...c}):Ge("text","three column",c)?(0,s.jsx)(mj,{...c}):Ge("text","four column",c)?(0,s.jsx)(pj,{...c}):Ge("text","code",c)?(0,s.jsx)(D2,{...c}):Ge("impact","a",c)?(0,s.jsx)(Sj,{...c}):Ge("impact","b",c)?(0,s.jsx)(Nj,{...c}):Ge("impact","c",c)?(0,s.jsx)(Aj,{...c}):Ge("impact","d",c)?(0,s.jsx)(Pj,{...c}):Ge("impact","note",c)?(0,s.jsx)(Rj,{...c}):Ge("quote","a",c)?(0,s.jsx)(zj,{...c}):Ge("quote","b",c)?(0,s.jsx)(Fj,{...c}):Ge("quote","c",c)?(0,s.jsx)(Uj,{...c}):Ge("quote","d",c)?(0,s.jsx)(Vj,{...c}):Ge("quote","background",c)?(0,s.jsx)(Wj,{...c}):Ge("quote","carousel",c)?(0,s.jsx)(Kj,{...c}):Ge("list","numbered",c)?(0,s.jsx)(Zj,{...c}):Ge("list","checkboxes",c)?(0,s.jsx)(Yj,{...c}):Ge("list","bulleted",c)?(0,s.jsx)(_j,{...c}):Ge("image","hero",c)?(0,s.jsx)(Jj,{...c}):Ge("image","full",c)?(0,s.jsx)(U2,{...c}):Ge("image","text aside",c)?(0,s.jsx)(tI,{...c}):Ge("image","text overlay",c)?(0,s.jsx)(nI,{...c}):Ge("gallery","centered",c)||Ge("gallery","full",c)?(0,s.jsx)(dI,{...c}):Ge("gallery","two column",c)?(0,s.jsx)(mu,{...c}):Ge("gallery","three column",c)?(0,s.jsx)(mu,{width:3,...c}):Ge("gallery","four column",c)?(0,s.jsx)(mu,{width:4,...c}):Ge("divider","divider",c)?(0,s.jsx)(hI,{...c}):Ge("divider","numbered divider",c)?(0,s.jsx)(mI,{number:e,...c}):Ge("divider","spacing divider",c)?(0,s.jsx)(pI,{...c}):Ge("360","storyline",c)?(0,s.jsx)(_I,{...c,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):Ge("interactive","accordion",c)?(0,s.jsx)(LI,{...c}):Ge("interactive","tabs",c)?(0,s.jsx)(DI,{...c}):Ge("interactive-fullscreen","labeledgraphic",c)?(0,s.jsx)(UA,{...c}):Ge("interactive-fullscreen","process",c)?(0,s.jsx)(_A,{...c}):Ge("interactive-fullscreen","scenario",c)?(0,s.jsx)(xP,{...c}):Ge("interactive-fullscreen","sorting",c)?(0,s.jsx)(FP,{...c}):Ge("interactive-fullscreen","timeline",c)?(0,s.jsx)(iR,{...c}):Ge("buttons","button",c)?(0,s.jsx)(cS,{...c}):Ge("buttons","button stack",c)?(0,s.jsx)(dS,{...c}):Ge("flashcard","flashcard",c)?(0,s.jsx)(r3,{...c}):Ge("flashcard","stack",c)?(0,s.jsx)(r3,{stack:!0,...c}):Ge("knowledge","knowledge",c)?(0,s.jsx)(Ya,{...c}):Ge("continue","continue",c)?(0,s.jsx)(IS,{...c}):Ge("multimedia","audio",c)?(0,s.jsx)(gS,{...c}):Ge("multimedia","video",c)?(0,s.jsx)(e3,{...c}):Ge("multimedia","custom video",c)?(0,s.jsx)(e3,{...c,type:"customVideo"}):Ge("multimedia","embed",c)?(0,s.jsx)(xS,{...c}):Ge("multimedia","attachment",c)?(0,s.jsx)(TS,{...c}):Ge("multimedia","code",c)?(0,s.jsx)(D2,{...c}):Ge("knowledgeCheck","multiple choice",c)?(0,s.jsx)(Ya,{...c}):Ge("knowledgeCheck","multiple response",c)?(0,s.jsx)(Ya,{...c}):Ge("knowledgeCheck","fillin",c)?(0,s.jsx)(Ya,{...c}):Ge("knowledgeCheck","matching",c)?(0,s.jsx)(Ya,{...c}):Ge("knowledgeCheck","draw from question bank",c)?(0,s.jsx)(Ya,{...c}):Ge("chart","bar",c)||Ge("chart","line",c)?(0,s.jsx)(TM,{...c}):Ge("chart","pie",c)?(0,s.jsx)(jM,{...c}):Ge("mondrian","mondrian",c)?(0,s.jsx)(QP,{...c}):Ge("textToVideo","textToVideo",c)?(0,s.jsx)(lR,{}):Ge("html","inline",c)||Ge("html","cdn",c)?(0,s.jsx)(sR,{...c}):`Unknown type: ${n} ${a}`}hasManySlBlocks(){const{items:e}=this.props;return e&&NM(e)}}function PM(t){return(0,s.jsx)(A0,{block:t,children:(0,s.jsx)(AM,{...t})})}function Ge(t,e,n){return n.family===t&&n.variant===e}function RM(){return document.querySelector(".page-wrap")}const Vu=(0,h.createContext)({isLessonEntering:!1,isLessonExiting:!1});Vu.displayName="LessonTransitionContext";function MM({isLessonEntering:t,isLessonExiting:e,children:n}){const o=(0,h.useMemo)(()=>({isLessonEntering:t,isLessonExiting:e}),[t,e]);return(0,s.jsx)(Vu.Provider,{value:o,children:n})}function bp(){return(0,h.useContext)(Vu)}function kM(t){function e(n){const o=bp();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`withLessonTransitionState(${t.displayName||t.name})`,e}const Ep=({children:t,onViewed:e})=>{const{isLessonEntering:n,isLessonExiting:o}=bp(),r=(0,h.useRef)(null),[a,l]=(0,h.useState)(!1),d=(0,h.useCallback)(()=>{a||(l(!0),e())},[a,e]),c=(0,h.useCallback)(u=>{const m=u[0];m!=null&&!a&&!n&&!o&&(m.isIntersecting||m.intersectionRatio>0)&&d()},[a,n,o,d]);return(0,h.useEffect)(()=>{const u=r.current;if(!u||n||o)return;const m=RM(),p=new IntersectionObserver(c,{root:m,threshold:0});return p.observe(u),()=>{p.disconnect()}},[c,n,o]),(0,s.jsx)("div",{ref:r,children:t})};var Wu=i(59288);class OM extends Wu.PureComponent{render(){return(0,s.jsx)(Ep,{onViewed:this.handleViewed,children:Wu.cloneElement(Wu.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}(wM.test(e.variant)||DM.test(e.family))&&e.items.length>0&&this.handleStep(e.items[0])}}const wM=/tabs|carousel/,DM=/gallery/,BM=["timeline"],HM=({family:t,variant:e})=>(/interactive|flashcard|knowledge|continue|360/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(e))&&!BM.includes(e),zM="draw from question bank",Lp=t=>{const{animateBlockEntrance:e,block:n,className:o,color:r,courseId:a,courseTitle:l,defaultBackgroundColor:d,enableVideoPlaybackSpeed:c,handleNavigate:u,handleStorylineFullscreen:m,hideBlock:p,isLastBlock:f,isOnlyBlockInStep:g,labels:v,lessonId:C,lessonProgress:y,loadMedia:b,match:x,onContinue:L,partnerContent:E,prefersKeyboardNavigation:S,previewType:N,publishedAt:A,tenantId:k}=t,{blockId:R,family:W,items:D=[],settings:w,variant:Z}=n,B=`block-${R}`,F=(0,O.wA)(),G=m6({blockId:R,lessonId:C}),ue=W==="knowledgeCheck"&&w?.requireCorrectAnswer,ce=(0,h.useCallback)(tt=>{const xe=Z===zM?D[0]:es()(nt()("id",tt),D);F((0,Bo.re)({blockId:R,lessonId:C,items:[xe]})),W==="continue"&&L(R,tt)},[R,F,W,D,C,L,Z]),le=(0,h.useCallback)(()=>{ue||F((0,Bo.re)({blockId:R,lessonId:C,items:D}))},[R,F,ue,D,C]),Se=(0,h.useCallback)(tt=>{const xe=D?.[0],Me=xe&&"id"in xe?xe.id:void 0;Me&&F((0,Bo.RA)({blockId:R,itemId:Me,lessonId:C,playheadPercentage:tt}))},[R,F,C,D]),Oe=Mo()(n,{animateBlockEntrance:e,className:o?.toString(),color:r,courseId:a,courseTitle:l,defaultBackgroundColor:d,dividerNumber:G,enableVideoPlaybackSpeed:c,family:W,handleNavigate:u,handleStorylineFullscreen:m,isHidden:p,isLastBlock:f,isLearner:!0,isOnlyBlockInStep:g,labels:v,lessonId:C,loadMedia:b,match:x,originalVariant:void 0,partnerContent:E,prefersKeyboardNavigation:S,previewType:N,progress:y,publishedAt:A,recordMediaPlayheadPosition:Se,tenantId:k}),ze=HM({family:W,variant:Z})?OM:Ep,Ve=gf(C,R),it=z()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":p});return(0,s.jsx)("div",{className:it,"data-block-id":R,"data-change-path":Ve,children:(0,s.jsx)(ze,{block:n,onStep:ce,onViewed:le,children:(0,s.jsx)(PM,{...Oe})})},B)},FM=({slides:t,currentSlide:e},n)=>(e.push(n),n.settings?.attachedToNextBlock||(t.push(e),e=[]),{slides:t,currentSlide:e}),UM=t=>{const{slides:e}=ol()(FM,{slides:[],currentSlide:[]},t);return e};function $u(t,e,n){if(t.length){const r=t.slice(-1)[0];if(!xl(r.id,n))return t}const o=MR(VM(n),e.slice(t.length)).map(WM);return o.length?$u(t.concat(o),e,n):t}const xl=(t,e)=>qe()(!1,["items",t,"isComplete"],e),VM=t=>({family:e,items:n})=>{const o=qe()({},0,n);return e==="continue"&&!xl(o.id,t)};function WM(t,e,n){const o=n.slice(-1)[0]||{},{family:r}=o,a=r==="continue"?qe()(!1,["items",0,"type"],o):!1;return t.variant!=="continue"&&(!a||a==="completeBlock"&&e!==n.length-1&&e!==n.length-2)?t:Mo()(t,{requiresInteraction:!0})}function Tp({id:t,...e},n,o,r){if(e.family==="continue"){const a=qe()("",["items",0,"type"],e);return Mo()({blockId:t,...e},{skipContinue:r,canContinue:$M({continueType:a,blocks:n,progress:o}),lessonProgress:o,isComplete:xl(t,o)})}return{blockId:t,...e}}const $M=({continueType:t,blocks:e,progress:n})=>{switch(t){case"completeAll":return cs()(Tt()(e),ZM(n));case"completeBlock":return e.length===0?!0:xl(YM(e),n);default:return!0}},KM=Re()(Co(),et()("items")),GM=t=>Re()(QM,KM)(t),QM=st()(nt()("isComplete",!0)),ZM=Re()(Tt(),GM),YM=Re()(et()("id"),jo()),_M=({family:t,variant:e,isComplete:n,requiresInteraction:o})=>t==="continue"&&e==="continue"&&o&&!n,XM=(t,e)=>!!t.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!e?.items?.[o?.id]?.isComplete}),JM=t=>t.length===0?!1:W0()(_M,t),qM=(t,e)=>t.length===0?!1:XM(t,e),ek=({blocks:t,lessonProgress:e})=>t.findIndex(n=>{const o=e?.items?.[n?.id],r=o&&o?.isComplete==null;return n?.family==="knowledgeCheck"&&n?.settings?.requireCorrectAnswer&&r}),jp=({blocks:t,lessonProgress:e,currentBlockIndex:n})=>{const o=ek({blocks:t,lessonProgress:e});return o>-1&&n>o},tk=(t,e)=>{const n=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(t)||n.includes(e)};function sk(){const{pathname:t}=new URL(window.location.href);return t.split("/")[1]==="review"}class nk extends K().Component{ref=K().createRef();constructor(...e){super(...e),this.state={randomQuestions:{},transitioning:!1},this.handleContinue=this.handleContinue.bind(this),this.handleScrollToBlock=this.handleScrollToBlock.bind(this),window.addEventListener(ss,this.handleScrollToBlock)}componentDidUpdate(e){this.scrollIfContinued(),e.isLessonEntering&&!this.props.isLessonEntering&&this.scrollToBlockAfterEnter!=null&&this.scrollToBlock(this.scrollToBlockAfterEnter)}componentWillUnmount(){window.removeEventListener(ss,this.handleScrollToBlock)}render(){const{className:e,isOnePage:n}=this.props,o=z()("blocks-lesson",e,{"blocks-lesson--one-page":n});return(0,s.jsx)("section",{className:o,ref:this.ref,children:this.renderBlocks()})}renderBlocks(){const{blocks:e,isCourseLocalized:n,lessonProgress:o}=this.props,r=sk()&&n;return(r?e:$u([],e,o)).map(this.buildBlock.bind(this,this.props.lessonProgress,r)).filter(Gm.A)}handleContinue(e,n){const{blocks:o,history:r,lessonId:a,lessonProgress:l,nextLesson:d}=this.props;xl(n,l)||(this.continueFromId=e),rs()(jo(),nt()("id",e))(o)&&d&&((0,O.JD)((0,Bo.eQ)(a)),r.push(`/lessons/${encodeURIComponent(d)}`))}buildBlock(e,n,o,r,a){const{animateBlockEntrance:l,blocks:d,color:c,courseId:u,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,labels:v,lessonId:C,loadMedia:y,match:b,partnerContent:x,prefersKeyboardNavigation:L,previewType:E,publishedAt:S,tenantId:N}=this.props,A=Tp(o,a.slice(0,-1),e,n),k=a.length-1,R=r===k,W=jp({blocks:d,lessonProgress:e,currentBlockIndex:r});return(0,s.jsx)(Lp,{animateBlockEntrance:l,block:A,color:c,courseId:u,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,hideBlock:W,index:r,isFirstLesson:!0,isLastBlock:R,labels:v,lessonId:C,lessonProgress:e,loadMedia:y,match:b,onContinue:this.handleContinue,partnerContent:x,prefersKeyboardNavigation:L,previewType:E,publishedAt:S,tenantId:N},A.blockId)}scrollIfContinued(){if(this.continueFromId){const{blocks:e}=this.props,n=hs()(nt()("id",this.continueFromId),e),o=Ms()(n),r=qe()(null,["blocks",o,"id"],this.props);if(r){const a=document.querySelector(".page-wrap"),l=a.querySelector(`[data-block-id="${r}"]`),d=l?l.getBoundingClientRect().top:0;nl.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 n=e.detail.itemId;n==null?this.ref.current?.closest(".page").scrollIntoView({behavior:"smooth",block:"start"}):this.props.isLessonEntering?this.scrollToBlockAfterEnter=n:this.scrollToBlock(n)}scrollToBlock(e){const o=document.querySelector(".page-wrap").querySelector(`[data-block-id="${e}"]`);o?.scrollIntoView({behavior:"smooth",block:"nearest"})}}const ok=t=>({isOnePage:ro(t),isCourseLocalized:lr(t)}),Ip=Re()(S0.A,(0,O.Ng)(ok),kM)(nk);function cd({children:t}){const e=(0,h.useRef)(),n=(0,h.useCallback)(()=>{e.current?.focus?.()},[]);return B8(n),(0,s.jsx)("main",{className:"lesson-main",ref:e,tabIndex:"-1",children:t})}const rk=ae("page"),Sp=({type:t,children:e})=>(0,s.jsx)("div",{className:rk({lessonTypeQuiz:t==="quiz"}),"data-page":!0,"data-type":t,children:e});Sp.propTypes={type:Ee().string.isRequired,children:Ee().node.isRequired};const yl=Sp,Ja=({type:t,children:e})=>{const n=t==="video"||t==="embed"||t==="blocks"||t==="progress-summary",o=z()("page__wrapper",{"page__wrapper--white":n});return(0,s.jsx)("div",{className:o,children:e})};Ja.propTypes={type:Ee().string.isRequired,children:Ee().node.isRequired};const qa=({className:t,type:e,children:n})=>{const o=z()("page__content",t,{"page__content--timeline":e==="timeline"});return(0,s.jsx)("div",{className:o,children:n})};qa.propTypes={type:Ee().string,children:Ee().node.isRequired};const ak=({animateBlockEntrance:t,color:e,courseId:n,courseTitle:o,data:r,enableVideoPlaybackSpeed:a,handleNavigate:l,handleStorylineFullscreen:d,labels:c,lessonHeader:u,lessonHeaderWrapClasses:m,lessonHeaderWrapStyles:p,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:y,prefersKeyboardNavigation:b,previewType:x,publishedAt:L,tenantId:E,hideLessonHeaders:S})=>{const{id:N,items:A,type:k}=r,R={animateBlockEntrance:t,blocks:A,color:e,courseId:n,courseTitle:o,enableVideoPlaybackSpeed:a,handleNavigate:l,handleStorylineFullscreen:d,isFirstLesson:!0,labels:c,lessonId:N,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:y,previewType:x,prefersKeyboardNavigation:b,publishedAt:L,tenantId:E,type:k};return(0,s.jsx)(yl,{type:k,children:(0,s.jsx)(Ja,{type:k,children:(0,s.jsxs)(cd,{children:[(0,s.jsx)("div",{className:m,inert:S,style:p,children:u}),(0,s.jsx)(qa,{children:(0,s.jsx)(Ip,{...R})})]})})})},ik=t=>({partnerContent:qe()([],["partnerContent","content"],t)}),lk=(0,O.Ng)(ik)(ak);var ck=i(16829);const dk=({"aria-label":t,title:e,desc:n,width:o="26",height:r="24",className:a,focusable:l="false",role:d="img"})=>(0,s.jsxs)("svg",{"aria-label":t,className:z()("i i-checkedbox",a),focusable:l,height:r,role:d,viewBox:"0 0 26 24",width:o,children:[e&&(0,s.jsx)("title",{children:e}),n&&(0,s.jsx)("desc",{children:n}),(0,s.jsx)("path",{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",fillRule:"nonzero"})]}),uk=({percentComplete:t,trackingCompletionPercentage:e,labelCompletionRequirement:n="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:l="Requirement not completed, empty square"})=>Js()(e)?null:(0,s.jsxs)("div",{className:"progress-summary__requirement",children:[(0,s.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,s.jsx)("h2",{className:"progress-summary__requirement-title",children:n}),(0,s.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,s.jsxs)("div",{children:[e,o]}),(0,s.jsxs)("div",{children:[r,"\xA0",(0,s.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[t,"%"]})]})]})]}),(0,s.jsx)(Np,{labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:l,requirementMet:e<=t})]}),hk=({outOfAttempts:t,quizPassed:e,quizPassingScore:n,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:l="Quiz Requirement",labelScoreOf:d="Score of",labelScoreOfPreposition:c="% on",labelViewQuiz:u="View quiz",labelYouScored:m="You scored",labelNoAttemptsRemaining:p="No attempts remaining.",labelA11yRequirementCompleted:f="Requirement completed, check mark",labelA11yRequirementNotCompleted:g="Requirement not completed, empty square"})=>a?(0,s.jsxs)("div",{className:"progress-summary__requirement",children:[(0,s.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,s.jsx)("h2",{className:"progress-summary__requirement-title",children:l}),(0,s.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,s.jsxs)("div",{children:[d," ",n,c," ",r]}),Js()(o)?(0,s.jsx)("div",{children:(0,s.jsx)(Mn,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:u})}):(0,s.jsxs)("div",{children:[m,"\xA0",(0,s.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[o,"%"]})]})]}),t&&(0,s.jsx)("span",{className:"progress-summary__requirement-no-attempts",children:p})]}),(0,s.jsx)(Np,{labelA11yRequirementCompleted:f,labelA11yRequirementNotCompleted:g,requirementMet:e})]}):null,Np=({requirementMet:t,labelA11yRequirementCompleted:e,labelA11yRequirementNotCompleted:n})=>t?(0,s.jsx)(dk,{"aria-label":e,className:"progress-summary__requirement-checkbox-checked"}):(0,s.jsx)("div",{"aria-label":n,className:"progress-summary__requirement-checkbox-empty",role:"img"}),mk=({dueAt:t})=>t?(0,s.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:$d(t)}):null;var pk=i(3361),fk=i.n(pk),gk=i(59288);const vk=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class Ck extends gk.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,n){return n.recycle!==this.state.recycle||n.run!==this.state.run}componentWillUnmount(){clearTimeout(this.timeout)}render(){const{state:{recycle:e,run:n}}=this;return(0,s.jsx)("div",{className:"progress-summary__confetti",children:(0,s.jsx)(fk(),{colors:vk,gravity:.4,height:window.innerHeight,numberOfPieces:500,recycle:e,run:n,width:window.innerWidth})})}}const xk=Ck;var yk=i(80721),bk=i.n(yk),Ek=i(2592);const Ap=ae("progress-summary-card"),Lk=({completeLabel:t,isComplete:e,isUrgent:n,completedDate:o,labelDue:r})=>e?(0,s.jsxs)("div",{className:"progress-summary-card__completed-label",children:[t,(0,s.jsx)("span",{className:"progress-summary-card__completed-date",children:o})]}):r?(0,s.jsx)("div",{className:z()("progress-summary-card__due-label",{"brand--color":n}),children:r}):null,Tk=({cardImageKey:t=null,className:e,color:n="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:l=!1,enrolledAt:d=null,hidden:c=!1,imagesUri:u="",isLearningPath:m=!1,isUrgent:p=!1,labelAssignedToMe:f="",labelDue:g="",labelDuration:v="",labelLearningPath:C="",onClick:y=Ds.lQ,progress:b=0,title:x=""})=>{const L=(0,at.useLabelsMap)(),E=o!==null,S=(0,h.useCallback)(()=>{a||y?.()},[a,y]),N=(0,h.useCallback)(Z=>{ec(Z)&&Z.preventDefault(),!a&&Ir(Z)&&y?.()},[a,y]),A=t||r,k=`${Math.round(b)}${L?.progressSummaryPercentComplete||"% Complete"}`,R=L?.progressSummaryCompleted||"Completed: ",W=`${_n()(new Date(o)).format("MM/DD/YY")}`,D=Ap("card",{disabled:a}),w=Ap("image-overlay",{"not-started":!(b||E),"in-progress-completed":b||E});return(0,s.jsxs)("div",{"aria-hidden":c,className:D,onClick:S,children:[(0,s.jsxs)("div",{className:"progress-summary-card__content",children:[(0,s.jsx)("button",{"aria-disabled":a,className:z()("progress-summary-card__title-button",{[e]:e}),onKeyDown:N,role:"link",tabIndex:c?-1:void 0,type:"button",children:(0,s.jsx)("span",{className:"progress-summary-card__title",children:x||L?.progressSummaryNoTitle||"(No Title)"})}),(0,s.jsxs)("div",{className:"progress-summary-card__course-info",children:[m&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:C}),d&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:f}),!!b&&!a&&!o&&(0,s.jsx)("span",{className:"progress-summary-card__hide",children:k}),!l&&!E&&(0,s.jsx)("div",{className:"progress-summary-card__duration",children:v}),(0,s.jsx)(Lk,{completedDate:W,completeLabel:R,isComplete:E,isUrgent:p,labelDue:g})]})]}),(0,s.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,s.jsx)(Ek.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:A,imagesUri:u,s:"cover",style:{backgroundColor:n},w:300}),(0,s.jsx)("div",{className:w}),(0,s.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!b&&!a&&!E&&(0,s.jsx)("div",{"aria-hidden":"true",className:"progress-summary-card__progress-bar-wrap",children:(0,s.jsx)("div",{className:"progress-summary-card__wrap-light",children:(0,s.jsx)("div",{className:"progress-summary-card__progress-bar",style:{width:`${b}%`}})})})})]})]})},jk=(0,Pe._$)("IMAGES_URI"),Ik=["cardImageKey","color","coverImageKey","progress","score","title"],Pp=(t,e)=>t===1?e:e.concat("s"),Ku=qe()([],["course","course","lessons"]),Sk=t=>Re()(dt(),vc()(ko()(nt()("type","section"),A3()(xn()(lp(),t),"id"))),Ku),Nk=t=>{const e=Ku(t),{trackingQuizId:n}=t,{score:o}=t;if(n&&e.length){const r=es()(nt()("id",n),e),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},Ak=Re()(es()(od()(nt()("type","section"))),Ku),Pk=_l()(2,t=>Re()(Wt()("","id"),es()(Boolean),bk()([Sk(t),Nk,Ak]))),Rk=t=>{const e=_n().duration(t),n=e.hours(),o=e.minutes(),r=`${n} ${Pp(n,"hr")}`,a=`${o} min`;return n>=100?"100+ hrs":n>0&&o>0?[r,a].join(" "):n>0?r:a},Mk=t=>{const{color:e,learningPathComplete:n,learningPathId:o,isSuccess:r,nextCourse:a,nextCourse:{dueAt:l,courseId:d="",lessonCount:c,lessonsCompleted:u=[],sourceType:m,timeToComplete:p}={}}=t,f=(0,at.useLabelsMap)(),g=(0,h.useMemo)(()=>Pk(u,a),[a,u]);Js()(a.color)&&(a.color=e);const v=vn()(Ik,a),C=(0,h.useCallback)(()=>{m==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",d),top.location.assign(`/learning-path/${o}`)):(0,bt.kT)(`${d}/lessons/${g}`)},[d,o,g,m]);return r&&!n&&(0,s.jsx)("div",{className:"progress-summary__lp-next",children:(0,s.jsxs)("div",{className:"progress-summary__lp-next-inner",children:[(0,s.jsxs)("div",{className:"progress-summary__lp-next-label",children:[f?.progressSummaryNextUp||"Next up"," ",(0,s.jsx)(C6,{className:"progress-summary__lp-next-label-icon",decorative:!0})]}),(0,s.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,s.jsx)(Tk,{imagesUri:jk,labelCount:`${c} ${Pp(c,"lesson")}`,labelDue:$d(l),labelDuration:Rk(p),noCertDownload:!0,noFavoriteBtn:!0,onClick:C,...v})})]})})},kk=et()("learningPathUpNext"),Ok=(0,O.Ng)(kk)(Mk),wk=`${(0,Pe._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,Dk=Re()(Tt(),st()(et()("isComplete")),Co()),Bk=t=>{const{color:e,course:n={},courseProgress:o={},fetchLpUpNext:r,lessons:a=[],learningPathComplete:l,lpHasFailedQuiz:d}=t,{lessons:c={},percentComplete:u}=o,{dueAt:m,certificateDownload:p,completionCelebration:f,lessonsOnly:g=[],riseComLearningPathId:v,trackingCompletionPercentage:C,trackingQuizId:y}=n,b=Lo(),x=(0,at.useLabelsMap)(),L=Js()(C)&&Js()(y),E=L?u===100:(0,we.As)(),S=g.length,N=Dk(c);(0,h.useEffect)(()=>{v&&r()},[]);const A=(0,h.useMemo)(()=>E?n.completedAt?n.completedAt:new Date:null,[n.completedAt,E]),k=(0,h.useMemo)(()=>es()(Mr()(nt()("type","quiz"),nt()("id",y)),a),[y,a]),R=ys(k?.title),W=(0,h.useMemo)(()=>qe()(100,["settings","passingScore"],k),[k]),D=qe()(null,["lessons",y,"passed"],o),w=(0,h.useMemo)(()=>Re()(jr()(nt()("percentComplete",100),et()("score"),At()(null)),qe()({},["lessons",y]))(o),[o,y]),{outOfAttempts:Z}=ji(o,k,y);let B=y?D:!0,F=zs();const G=z()("progress-summary",{"progress-summary__no-req":L}),ue=n.type===Ze.y4,ce=`You've completed ${N} of ${S} lessons.`,Se=ue?E?"Complete":"Incomplete":ce;return(0,s.jsx)(Pr,{title:el(b+" - Progress Summary"),children:(0,s.jsxs)("div",{className:G,children:[E&&f&&B&&!F&&(0,s.jsx)(xk,{}),(0,s.jsxs)("header",{className:"progress-summary__header",children:[(0,s.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:E&&!L&&B?x?.progressSummaryCongratulations||"Congratulations!":x?.progressSummary||"Progress Summary"}),L?(0,s.jsx)("div",{className:"progress-summary__lessons-completed",children:Se}):E?(0,s.jsxs)("div",{className:"progress-summary__header-completion-date",children:[B&&(0,s.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:wk}),_n()(A).format("MMMM Do, YYYY")]}):(0,s.jsx)(mk,{dueAt:m})]}),(0,s.jsxs)("section",{className:"progress-summary__section",children:[!L&&E&&(0,s.jsx)("div",{className:"progress-summary__requirements-met",children:x?.progressSummaryRequirementsMet||"You've met all the requirements."}),L?!v&&(0,s.jsxs)(Mn,{className:"progress-summary__start-over",to:"/",children:[x?.progressSummaryStartOver||"Start Over",(0,s.jsx)("i",{className:"progress-summary__start-over-icon icon icon-reload"})]}):(0,s.jsxs)("div",{className:"progress-summary__requirements",children:[(0,s.jsx)(uk,{labelA11yRequirementCompleted:x?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:x?.a11yProgressSummaryRequirementNotCompleted,labelCompletionRequirement:x?.progressSummaryCompletionRequirement,labelPercentCompletion:x?.progressSummaryPercentCompletion,labelYouCompleted:x?.progressSummaryYouCompleted,percentComplete:u,trackingCompletionPercentage:C}),(0,s.jsx)(hk,{labelA11yRequirementCompleted:x?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:x?.a11yProgressSummaryRequirementNotCompleted,labelNoAttemptsRemaining:x?.progressSummaryNoAttemptsRemaining,labelQuizRequirement:x?.progressSummaryQuizRequirement,labelScoreOf:x?.progressSummaryScoreOf,labelScoreOfPreposition:x?.progressSummaryScoreOfPreposition,labelViewQuiz:x?.progressSummaryViewQuiz,labelYouScored:x?.progressSummaryYouScored,outOfAttempts:Z,quizPassed:D,quizPassingScore:W,quizScore:w,quizTitle:R,trackingQuizId:y})]}),(E||L)&&(0,s.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,s.jsx)("button",{className:"progress-summary__btn-back progress-summary__completion-control",onClick:bt.NS,role:"link",type:"button",children:x?.progressSummaryBackToLearning||"Back to my learning"}),E&&(!v&&p||v&&l)&&p&&B&&!d&&(0,s.jsx)("span",{className:"progress-summary__completion-control",children:(0,s.jsx)(tn,{})})]})]}),E&&!!v&&(0,s.jsx)(Ok,{color:e,learningPathId:v})]})})},Hk=(t,{course:{riseComCourseId:e,riseComLearningPathId:n}})=>({fetchLpUpNext:Re()(t,ck.R,At()({courseId:e,learningPathId:n}))}),zk=Re()(vn()(["learningPathComplete","lpHasFailedQuiz"]),et()("learningPathUpNext")),Fk=(0,O.Ng)(zk,Hk)(Bk),Rp=({contentClassName:t,...e})=>(0,s.jsx)(yl,{type:dd.type,children:(0,s.jsx)(Ja,{type:dd.type,children:(0,s.jsx)(cd,{children:(0,s.jsx)(qa,{className:t,type:dd.type,children:(0,s.jsx)(Fk,{...e})})})})}),dd={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"};var Uk=i(47374),ud=i.n(Uk),Vk=i(28507),Wk=i.n(Vk),$k=i(77778),Kk=i.n($k);const Mp=Pt("Progress");var Gk=i(81587),kp=i.n(Gk),Qk=i(48701),Zk=i.n(Qk),Yk=i(82638),hd=i.n(Yk),_k=i(45787),Op=i.n(_k),Xk=i(39010),Jk=i.n(Xk);const qk=Re()(ha(),Qc()),eO=qe()(!1,["settings","isCaseSensitive"]),wp=t=>jr()(At()(eO(t)),ha(),qk),tO=({item:t,itemProgress:e,getL10nValue:n})=>(0,Ds.Ve)(t,Wt()([],"answers"),ws()(Re()(wp(t),n,et()("title"))),xn()((0,Ds.rq)(wp(t),et()("text"),e))),sO=({item:t,itemProgress:e,getL10nValue:n})=>et()("text",e)&&tO({item:t,itemProgress:e,getL10nValue:n}),nO=({itemProgress:t})=>{const e=t?.matches??{};return Object.entries(e).every(([n,o])=>n===o)},oO=({answers:t,correct:e})=>hs()(nt()("id",e),t),rO=({isCorrectAnswerUnshuffled:t,isShuffled:e,item:n,itemProgress:o})=>{const{selectedIndex:r,shuffledAnswerIndices:a}=o;if(r==null||e&&!Array.isArray(a))return!1;const l=e&&!t?hs()(cs()(r),a):r,d=oO(n);return l===d},aO=ju()(Fn()),iO=Ui()(hs()),lO=t=>(0,Ds.Ve)(t,Wt()([],"corrects"),ws()(Re()(iO(Wt()([],"answers",t)),nt()("id"))),st()(Zk()(0)),sd()(aO)),cO=(t,e)=>e.map(n=>hs()(cs()(n),t)),dO=t=>sd()(ju()(Fn()),t),uO=({isShuffled:t,item:e,itemProgress:n})=>{const{selectedIndices:o,shuffledAnswerIndices:r}=n;if(!Array.isArray(o)||t&&!Array.isArray(r))return!1;const a=t?cO(r,o):o,l=lO(e);return cs()(dO(a),l)},hO=t=>e=>{const n=!t.progress?.items?.[e.id]?.isComplete;return qe()(!1,["settings","shuffleAnswerChoices"],t)&&n},mO=t=>{const e=t.answers||[],n=ad()(e),o=n.map(r=>e.findIndex(a=>a.id===r.id));return{...t,answers:n,shuffledAnswerIndices:o}},pO=t=>As()([[hO(t),mO],[wo(),Fn()]]),fO=t=>wa()({items:ws()(pO(t))})(t),gO=t=>{const{items:e,progress:n}=t,{items:o}=n||{},r=Re()(String,et()("id")),a=dp(o,et()("isComplete")),d=up(r,a)(e),c=Re()(Ts(),et()("isComplete")),u=dp(o,c),p=up(r,u)(e);return d.concat(ad()(p))},vO=Bc()("items",gO),CO=t=>Re()(ud()(es(),t),nt()("id"),et()("id")),Dp=fn()(t=>kp()(CO(t),Fn())),xO=t=>Re()(hd()(vl()),Dp(t)),yO=rs()(bh()(et()("answers"),et()("answers")),hd()(fn()(t=>ws()(xO(t)))),Eh()("answers")),bO=t=>rs()(Dp(t),kp()(yO,hd()(vl())),hd()(vl())),EO=ud()(t=>ws()(bO(t))),LO=st()(nt()("drawn",!0)),md=hs()(nt()("type",Et.Ay.DRAW_FROM_QUESTION_BANK)),TO=({items:t,currentItems:e,progress:n})=>{let o=[...t],r=md(o);for(;r!==-1;){const[l,d]=Op()(r,o),c=Jk()(d),u=LO(e);o=[...l,...u,...c],r=md(o)}const a=Bp({items:o,progress:n});return{items:o,progress:a}},jO=t=>(e,{id:n},o)=>{const{originalItemProgress:r}=t;let a={};r&&(a=r[o]||{});const l=Re()(es()(nt()("index",o)),Co())(t.items);return e[n]={...a,...l,id:n,index:o},e},Bp=({questionIndexList:t,items:e,progress:n})=>({...n,questionsDrawn:!0,questionList:t,items:e.reduce(jO(n),{})}),Hp=t=>{const{id:e,items:n,progress:o,initializeDrawnQuizQuestions:r}=t;let a=[...n],l=md(a);const d=[];let c=0;for(;l!==-1;){const[m,p]=Op()(l,a),[f,...g]=p,{drawCount:v,questions:C}=f,y=[],b=[],x=[];for(;y.length<v;)if(o.questionsDrawn){const L=o.questionList[c];Ou()(E=>{const S=C[E];y.push({...S,drawn:!0,id:`${f.id}-${S.id}`})},L),x.push(...L)}else{const L=O3({drawCount:v,questions:C,drawnQuestions:b});y.push({...L,drawn:!0,id:`${f.id}-${L.id}`}),b.push(L.id),x.push(L.index)}a=[...m,...y,...g],d.push(x),c++,l=md(a)}const u=Bp({questionIndexList:d,items:a,progress:o});return r({lessonId:e,lessonProgress:u}),{items:a,progress:u}},IO=qe()(!1,["settings","randomizeQuestionOrder"]),zp=rs()(Yo()(IO,vO),fO,et()("items")),Fp=(0,j.shape)({a11yAnswerLive:j.string,a11yAuthorPrefix:j.string,a11yBlockChartBar:j.string,a11yBlockChartLine:j.string,a11yBlockChartPie:j.string,a11yBlockCode:j.string,a11yBlockEmbed:j.string,a11yBlockFlashcardBack:j.string,a11yBlockFlashcardFront:j.string,a11yBlockFlashcardGrid:j.string,a11yBlockFlashcardStack:j.string,a11yBlockFlashcardStackRoleDescription:j.string,a11yBlockFlashcardStackSlideControls:j.string,a11yBlockFlashcardStackSlideControlsGoToNext:j.string,a11yBlockFlashcardStackSlideControlsGoToPrevious:j.string,a11yBlockFlashcardStackSlideControlsGoToSlide:j.string,a11yBlockFlashcardStackSlidePreposition:j.string,a11yBlockFlashcardStackSlideRoleDescription:j.string,a11yBlockKnowledgeCheck:j.string,a11yBlockKnowledgeCheckFIB:j.string,a11yBlockKnowledgeCheckM:j.string,a11yBlockKnowledgeCheckMC:j.string,a11yBlockKnowledgeCheckMR:j.string,a11yBlockProcessCarousel:j.string,a11yBlockProcessRoleDescription:j.string,a11yBlockProcessSlideControls:j.string,a11yBlockProcessSlideControlsGoToNext:j.string,a11yBlockProcessSlideControlsGoToPrevious:j.string,a11yBlockProcessSlideControlsGoToSlide:j.string,a11yBlockProcessSlideControlsIntroduction:j.string,a11yBlockProcessSlideControlsSummary:j.string,a11yBlockProcessSlidePreposition:j.string,a11yBlockProcessSlideRoleDescription:j.string,a11yBlockQuoteCarousel:j.string,a11yBlockQuoteCarouselRoleDescription:j.string,a11yBlockQuoteCarouselSlideControls:j.string,a11yBlockQuoteCarouselSlideControlsGoToNext:j.string,a11yBlockQuoteCarouselSlideControlsGoToPrevious:j.string,a11yBlockQuoteCarouselSlideControlsGoToSlide:j.string,a11yBlockQuoteCarouselSlidePreposition:j.string,a11yBlockQuoteCarouselSlideRoleDescription:j.string,a11yBlockStoryline:j.string,a11yBlockTimeline:j.string,a11yCarouselNext:j.string,a11yCarouselPrevious:j.string,a11yCertificateDownloadFailed:j.string,a11yCorrectLive:j.string,a11yCoverCourseCompleted:j.string,a11yCoverCourseLength:j.string,a11yCoverRequirementComplete:j.string,a11yCoverRequirementFailed:j.string,a11yCoverRequirementIncomplete:j.string,a11yExcelIcon:j.string,a11yFileIcon:j.string,a11yGroupAudioPlayer:j.string,a11yGroupScenario:j.string,a11yGroupVideoPlayer:j.string,a11yLabeledGraphicBlock:j.string,a11yLabeledGraphicButtonMarker:j.string,a11yLabeledGraphicIconPlus:j.string,a11yLabeledGraphicIconDot:j.string,a11yLabeledGraphicIconInformation:j.string,a11yLabeledGraphicIconQuestion:j.string,a11yLabeledGraphicIconCheck:j.string,a11yLabeledGraphicIconX:j.string,a11yLabeledGraphicIconHeart:j.string,a11yLabeledGraphicIconPin:j.string,a11yLabeledGraphicIconArrowLeft:j.string,a11yLabeledGraphicIconArrowRight:j.string,a11yLabeledGraphicIconArrowUp:j.string,a11yLabeledGraphicIconArrowDown:j.string,a11yLabeledGraphicIconArrowUpLeft:j.string,a11yLabeledGraphicIconArrowUpRight:j.string,a11yLabeledGraphicIconArrowDownLeft:j.string,a11yLabeledGraphicIconArrowDownRight:j.string,a11yLabeledGraphicUnviewed:j.string,a11yLabeledGraphicViewed:j.string,a11yMatchingItemMatchedWith:j.string,a11yMatchingItemMatchWith:j.string,a11yMatchingItemSelectableItem:j.string,a11yMediaPause:j.string,a11yMediaPlay:j.string,a11yMediaSeek:j.string,a11yNavigationMenuClose:j.string,a11yNavigationMenuOpen:j.string,a11yPDFIcon:j.string,a11yPPTIcon:j.string,a11yQuizFailed:j.string,a11yQuizFeedback:j.string,a11yQuizPassed:j.string,a11yQuizReviewCorrectlyChecked:j.string,a11yQuizReviewCorrectlySelected:j.string,a11yQuizReviewCorrectlyUnchecked:j.string,a11yQuizReviewCorrectlyUnselected:j.string,a11yQuizReviewIncorrectlyChecked:j.string,a11yQuizReviewIncorrectlySelected:j.string,a11yQuizReviewIncorrectlyUnchecked:j.string,a11yQuizReviewIncorrectlyUnselected:j.string,a11yRegionMainLesson:j.string,a11yRegionMainOverview:j.string,a11yRegionNavLesson:j.string,a11yRegionNavOverview:j.string,a11yRestrictedNav:j.string,a11yRTFIcon:j.string,a11ySearchClose:j.string,a11ySearchInput:j.string,a11ySearchOpen:j.string,a11yStatusAdditionalContent:j.string,a11yStatusContinued:j.string,a11yUnzoomImage:j.string,a11yWordIcon:j.string,a11yZipIcon:j.string,a11yZoomImage:j.string,courseStart:j.string,courseResume:j.string,courseExit:j.string,courseHome:j.string,courseSkipToLesson:j.string,lessonName:j.string,lessonPreposition:j.string,lessonComplete:j.string,lessonRestricted:j.string,quizStart:j.string,quizQuestion:j.string,quizSubmit:j.string,quizRequireAnswer:j.string,quizNext:j.string,quizIncorrect:j.string,quizCorrect:j.string,quizResults:j.string,quizScore:j.string,quizPassing:j.string,quizTakeAgain:j.string,quizTimerElapsed:j.string,quizTimerExpired:j.string,quizTimerExpiredAction:j.string,quizTimerExpiredMessage:j.string,quizTimerHide:j.string,quizTimerLimit:j.string,quizTimerMinute:j.string,quizTimerMinutePlural:j.string,quizTimerRemaining:j.string,quizTimerShow:j.string,quizAcceptableResponses:j.string,quizAnswerPlaceholder:j.string,quizRequirePassingScore:j.string,quizContinue:j.string,processStepName:j.string,processStepPreposition:j.string,processNextStep:j.string,processLessonName:j.string,processComplete:j.string,processStart:j.string,processStartAgain:j.string,processSwipe:j.string,sortingCardsCorrect:j.string,sortingReplay:j.string,embedViewOn:j.string,embedReadMore:j.string,blocksClickToFlip:j.string,blocksPreposition:j.string,salutation:j.string,exitMessage:j.string,overviewPageTitleSuffix:j.string,labeledGraphicMarkerLabel:j.string,seekSliderLabel:j.string,playButtonLabel:j.string,pauseButtonLabel:j.string,embedPlayerGroup:j.string,embedLinkGroup:j.string,numberedDividerGroup:j.string,processLandmark:j.string,sortingLandmark:j.string,search:j.string,result:j.string,results:j.string,noResults:j.string,scenarioTryAgain:j.string,scenarioContinue:j.string,scenarioComplete:j.string,scenarioStartOver:j.string,progressPieUnstarted:j.string,progressPieCompleted:j.string,progressPieClickToComplete:j.string,progressPieClickToReset:j.string,progressPieQuizFailed:j.string,certificateDownload:j.string,certificateDownloadInProgress:j.string,certificateRetryDownload:j.string,coverCompleteAllLessons:j.string,coverCompleteLessonsName:j.string,coverCompleteLessonsPreposition:j.string,coverCompleteLessonsInCourse:j.string,coverCompleted:j.string,coverCourseRequirements:j.string,coverHour:j.string,coverHours:j.string,coverLesson:j.string,coverLessons:j.string,coverMinute:j.string,coverMinutes:j.string,coverNoAttemptsRemaining:j.string,coverPublished:j.string,coverQuizScoreOf:j.string,coverQuizPercentOrHigher:j.string,progressSummary:j.string,progressSummaryBackToLearning:j.string,progressSummaryCompleted:j.string,progressSummaryCongratulations:j.string,progressSummaryNextUp:j.string,progressSummaryNoTitle:j.string,progressSummaryPercentComplete:j.string,progressSummaryRequirementsMet:j.string,progressSummaryStartOver:j.string,curtainLoading:j.string,curtainOffline:j.string,curtainOfflineReconnecting:j.string,curtainSessionTimedOut:j.string,curtainSessionTimedOutRestart:j.string,curtainSessionTimedOutRefresh:j.string,curtainSomethingWrong:j.string,curtainSomethingWrongTryAgain:j.string,curtainSomethingWrongRefresh:j.string}),Gu=(0,j.shape)({image:(0,j.shape)({key:j.string,originalUrl:j.string,sourcedFrom:(0,j.oneOf)(["DEFAULT","USER","LIBRARY","AI"]),src:j.string,thumbnail:j.string,type:j.string,useCrushedKey:j.bool})}),SO=(0,j.shape)({themeId:j.string,coverImage:j.string,navigation:j.bool,showAuthor:j.bool,allowSearch:j.bool,colorAccent:j.string,blockCorners:j.string,buttonScheme:j.string,uiTypefaceId:j.string,coverPageType:j.string,bodyTypefaceId:j.string,navigationType:j.string,blockPaddingTop:j.number,coverImageAlpha:j.number,navigationStyle:j.string,showLessonCount:j.bool,lessonHeaderSize:j.string,buttonInlineStyle:j.string,coverImageDefault:j.string,headingTypefaceId:j.string,lessonHeaderColor:j.string,lessonHeaderImage:j.string,lessonHeaderStyle:j.string,sidebarStartsOpen:j.bool,blockPaddingBottom:j.number,markLessonsComplete:j.bool,animateBlockEntrance:j.bool,navigationRestricted:j.bool,buttonNavigationStyle:j.string,showNavigationButtons:j.bool,compactShowLessonCount:j.bool,lessonHeaderImageAlpha:j.number,lessonHeaderImageColor:j.string,enableVideoPlaybackSpeed:j.bool,blockNavigationType:j.string,blockNavigationStyle:j.string,progressIndicatorStyle:j.string}),NO=(0,j.shape)({activeEdition:j.number,activeLMS:j.number,completeWith:(0,j.oneOf)(["reporting","quiz","storyline"]),completionPercentage:j.number,enableExitCourse:j.bool,exportType:(0,j.oneOf)(["lms","pdf","raw","business-content"]),format:(0,j.oneOf)(["zip"]),identifier:j.string,quizId:j.string,quizComplete:j.bool,reporting:(0,j.oneOf)(["passed-incomplete"]),shareId:j.string,storylineId:j.string,storylineComplete:j.bool,target:(0,j.oneOf)(["scorm12","scorm2004","aicc","xapi","cmi5"]),targetName:(0,j.oneOf)(["SCORM 1.2","SCORM 2004","AICC","xAPI","cmi5"]),title:(0,j.oneOfType)([j.string,(0,j.shape)({l10nId:j.string})]),resetLearnerData:j.bool}),Qu=j.string,hn=j.string,Zu=t=>(0,j.oneOfType)([t,(0,j.shape)({l10nId:j.string})]),vQ=(0,j.shape)({id:hn,originalId:hn,author:hn,selectedAuthorId:hn,color:j.string,navigationMode:j.string,title:Zu(j.string),sharePassword:j.string,description:Zu(j.string),shareId:hn,copyOf:j.string,order:j.string,fonts:j.object,media:Gu,coverImage:(0,j.shape)({alpha:j.number,displaySidebar:j.bool,media:Gu}),lessons:(0,j.arrayOf)(hn),jobs:(0,j.arrayOf)(hn),labelSetId:hn,deleted:j.bool,createdAt:Qu,updatedAt:Qu,markComplete:j.bool,isDefault:j.bool,ready:j.bool,reviewId:hn,exportSettings:NO,headingTypefaceId:hn,bodyTypefaceId:hn,uiTypefaceId:hn,sidebarMode:j.string,tenantId:hn,showLessonCount:j.bool,showNavigationButtons:j.bool,allowSearch:j.bool,authorPermissions:(0,j.arrayOf)(j.string),animateBlockEntrance:j.bool,transferredAt:Qu,allowCopy:j.bool,enableVideoPlaybackSpeed:j.bool,jobType:j.string,partnerContentId:hn,cardImage:Gu,theme:SO,lessonHeaderImage:j.object,overlayNavigationImage:j.object,type:j.string,features:j.object,courseId:j.string,typefaces:(0,j.objectOf)(j.string)}),{FILL_IN_THE_BLANK:bl,MATCHING:El,MULTIPLE_CHOICE:Ll,MULTIPLE_RESPONSE:Tl}=Et.Ay,{ANY:AO,CHOICE:PO,CORRECT_INCORRECT:RO}=y3,MO=3,Up=kn()("quiz-item__"),ei=qe()(0,["progress","activeIndex"]),kO=Re()(Tt(),cp(),Wt()({},"matches")),Vp=(t,e)=>{if(!(t===void 0||!e)){if(Array.isArray(t))return t.map(n=>e.indexOf(n)).filter(n=>n!==-1);{const n=e.indexOf(t);return n===-1?void 0:n}}};class OO extends K().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=K().createRef(),this.id=Xe()("qi-")}componentDidUpdate(e){const{isReduceMotion:n}=this.props;this.isNewlyActive({prevProps:e})&&(this.scrollTop(),this.setState({startTime:Date.now()})),n||this.scrollActionsIfComplete({prevProps:e})}componentWillUnmount(){clearTimeout(this.timeoutScrollActionsIfComplete)}static propTypes={enableVideoPlaybackSpeed:Ee().bool,getClassName:Ee().func,hasStart:Ee().bool,id:Ee().string.isRequired,index:Ee().number,isCorrectAnswerUnshuffled:Ee().bool,isReduceMotion:Ee().bool.isRequired,isShuffled:Ee().bool,isTimedQuiz:Ee().bool,item:Ee().object.isRequired,items:Ee().arrayOf(Ee().object),labels:Fp,onChoiceSelect:Ee().func,onFillInChange:Ee().func,onMatchSet:Ee().func,onResponseToggle:Ee().func,prefersKeyboardNavigation:Ee().bool,progress:Ee().object,quizTop:Ee().number,reportAnswer:Ee().func,retryAttempts:Ee().number,scrollId:Ee().string,setNextIndex:Ee().func,settings:Ee().object,showNextButton:Ee().bool,submitAction:Ee().func,title:Zu(Ee().string.isRequired)};static get defaultProps(){return{getClassName:()=>{},labels:{},onChoiceSelect:()=>{},onFillInChange:()=>{},onMatchSet:()=>{},onResponseToggle:()=>{},reportAnswer:()=>{},retryAttempts:0,setNextIndex:()=>{},settings:{revealAnswers:Et.iV.ALL},showNextButton:!0,submitAction:()=>[]}}getCanSubmit({itemProgress:e}){const{item:n}=this.props;switch(n.type){case bl:return Lu(et()("text",e));case El:return kO(e)===Tt()(et()("answers",n));case Tl:return Re()(Mr()(Lu,Br),et()("selectedIndices"))(e);case Ll:default:return Lu(et()("selectedIndex",e))}}getFeedback({isCorrect:e,selectedIndex:n}){const{item:o}=this.props,{answers:r,feedback:a,feedbackCorrect:l,feedbackIncorrect:d,feedbackType:c}=o;switch(c){case PO:return qe()("",[n,"feedback"],r);case RO:return e?l:d;case AO:default:return a}}getIndex(){return this.props.hasStart?Ms()(this.props.index):this.props.index}getIsComplete({itemProgress:e}){return Wt()(!1,"isComplete",e)}getIsDoneCard(){const e=this.getIndex(),n=ei(this.props);return e<n}getIsCorrect({itemProgress:e}){const{isCorrectAnswerUnshuffled:n,isShuffled:o,item:r,getL10nValue:a}=this.props;switch(r.type){case bl:return sO({item:r,itemProgress:e,getL10nValue:a});case El:return nO({itemProgress:e});case Tl:return uO({isShuffled:o,item:r,itemProgress:e});case Ll:default:return rO({isCorrectAnswerUnshuffled:n,isShuffled:o,item:r,itemProgress:e})}}getItemProgress({props:e}){return qe()({},["items",e.item.id],e.progress)}getSelection({itemProgress:e}){const{type:n}=this.props.item;switch(n){case bl:return e.text;case El:return e.matches;case Tl:return e.selectedIndices;case Ll:default:return e.selectedIndex}}submitAndSetNextIndex(e=()=>[],n={}){const{id:o,setNextIndex:r}=this.props;e(n),r(o)}isNewlyActive({prevProps:e}){const n=ei(this.props),o=ei(e),r=this.getIndex();return o!==n&&r===n}onChoiceSelect({selectedIndex:e}){const{id:n,item:o,onChoiceSelect:r}=this.props,{id:a,shuffledAnswerIndices:l}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e,shuffledAnswerIndices:l})}onFillInChange(e){const{id:n,item:o,onFillInChange:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,text:e})}onMatchSet(e){const{id:n,item:o,onMatchSet:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,matches:e})}onNextClick(e=()=>[],n={}){ht.pause(),this.submitAndSetNextIndex(e,n)}onNextFeedbackClick(e){e&&this.onNextClick()}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}onResponseToggle({optionIndex:e}){const{id:n,item:o,onResponseToggle:r}=this.props,{id:a,shuffledAnswerIndices:l}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e,shuffledAnswerIndices:l})}onSubmit({canSubmit:e,isCorrect:n,itemProgress:o}){return r=>{r.preventDefault();const{getL10nRecursive:a,id:l,item:d,reportAnswer:c,retryAttempts:u,settings:m,submitAction:p,title:f}=this.props;if(!e){switch(this.setState({errorIncomplete:!0}),d.type){case bl:this.wrapper.current?.querySelector("input")?.focus();break;case Tl:case Ll:this.wrapper.current?.querySelector("input")?.focus();break;case El:this.wrapper.current?.querySelector("button")?.focus();break;default:break}return}const{startTime:g}=this.state,{id:v}=d,{revealAnswers:C,passToContinue:y}=m,b={startTime:g,stopTime:Date.now()},x=Wt()(-1,"retryCount",m),L=parseInt(x,10),E=parseInt(u,10),S=cs()(L,E),N=a({duration:b,id:l,isCorrect:n,item:d,itemProgress:o,retryAttempts:u,title:f});c(N);const A={finalRetryAttempt:S,lessonId:l,isCorrect:n,itemId:v,passToContinue:y,revealAnswers:C};if(C===Et.iV.ALL||C===Et.iV.INCORRECT)return p(A);this.onNextClick(p,A)}}render(){return this.props.isCard?this.renderCard():this.renderDefault()}renderCard(){const{getClassName:e,settings:n}=this.props,{correctAnswerColor:o,incorrectAnswerColor:r}=n,a=this.getIndex(),l=ei(this.props),d=a===l,c=this.getItemProgress({props:this.props}),u=this.getIsComplete({itemProgress:c}),m=this.getIsCorrect({itemProgress:c}),p=this.props.isTimedQuiz,f=e(a),v={"--color-feedback-icon":m?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,s.jsx)("div",{className:f,inert:d?void 0:!0,children:(0,s.jsx)("div",{className:Up("card-wrap"),children:(0,s.jsx)(l3,{isActive:d,isComplete:u,isTimedQuiz:p,style:v,children:(0,s.jsx)("div",{style:d||u?void 0:{display:"none"},children:this.renderItem()})})})})}renderDefault(){return(0,s.jsx)("div",{className:Up("wrap"),children:this.renderItem()})}renderItem(){const{enableVideoPlaybackSpeed:e,hasStart:n,isReduceMotion:o,isQuestionBankQuiz:r,isShuffled:a,item:l,items:d,labels:c,onTakeAgain:u,progress:m,settings:p,showNextButton:f}=this.props,{errorIncomplete:g}=this.state,{quizAcceptableResponses:v,quizAnswerPlaceholder:C,quizCorrect:y,quizIncorrect:b,quizNext:x,quizRequireAnswer:L,quizRestart:E,quizQuestion:S,quizSubmit:N}=c,{id:A,media:k,title:R,type:W,settings:D}=l,{correctAnswerColor:w,correctAnswerColorContrast:Z,incorrectAnswerColor:B,incorrectAnswerColorContrast:F,revealAnswers:G=Et.iV.NONE}=p,ue=this.getIndex(),ce=ei(this.props),le=ue===ce,Se=this.getItemProgress({props:this.props}),Oe=this.getIsComplete({itemProgress:Se}),We=this.getIsCorrect({itemProgress:Se}),ze=G==Et.iV.ALL||G==Et.iV.INCORRECT,Ve=le&&Oe&&ze,it=le&&!Oe&&this.getCanSubmit({itemProgress:Se}),tt=this.onSubmit({canSubmit:it,isCorrect:We,itemProgress:Se,item:l}),xe=et()("selectedIndex",Se),Me=this.getFeedback({isCorrect:We,selectedIndex:xe}),Qe=`q-${A}`,Be=this.getSelection({itemProgress:Se}),pt=z()("quiz-card__retake-container",{"quiz-card__retake-container--active":Oe}),ot=z()("quiz-card__retake","brand--hoverColor",{"quiz-card__retake--active":Oe});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(EN,{isActive:le,labels:c,num:n?ue:ue+1,quizQuestion:S,total:Tt()(d)}),(0,s.jsx)(LN,{allowTabNavigation:le,id:Qe,value:R}),(0,s.jsx)(g3,{allowTabNavigation:le,enableVideoPlaybackSpeed:e,index:String(ue),labels:c,media:k,settings:D}),(0,s.jsx)(h3,{type:W,children:(0,s.jsx)("div",{ref:this.wrapper,children:this.renderType({columnBehavior:D?.columnBehavior,correctAnswerColor:w,correctAnswerColorContrast:Z,incorrectAnswerColor:B,incorrectAnswerColorContrast:F,isActive:le,isComplete:Oe,isCorrect:We,isShuffled:a,itemProgress:Se,labels:c,onSubmit:tt,revealAnswers:G,questionHtmlId:Qe,quizAcceptableResponses:v,quizAnswerPlaceholder:C})})}),(0,s.jsx)("div",{"aria-live":"assertive",children:g&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-test-id":"quiz-validation-error",children:[(0,s.jsx)(yt,{className:"quiz-card__validation-icon","data-test-id":"quiz-validation-icon",name:"alert-circle"}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:L})]})}),(0,s.jsx)(u3,{canProceed:this.state.forceShowFeedback||Ve,feedbackRef:Mt=>{this.feedback=Mt},feedbackValue:this.state.forceFeedbackMessage||Me,isActive:le,isComplete:Oe,isCorrect:this.state.forceShowFeedbackCorrect||We,item:l,labels:c,progress:Se,quizCorrect:y,quizIncorrect:b,revealAnswers:G,selection:Be}),(0,s.jsx)(i3,{allowNext:!u,canProceed:Ve,canSubmit:it,isReduceMotion:o,item:l,onNext:f?this.onNextFeedbackClick.bind(this,le):null,onSubmit:tt,quizNext:m.percentComplete===100&&r?E:x,quizSubmit:N}),u&&(0,s.jsx)("div",{className:pt,children:(0,s.jsx)("button",{className:ot,onClick:u,type:"button",children:(0,s.jsxs)("div",{className:"quiz-card__retake-content",children:[(0,s.jsx)("div",{className:"quiz-card__retake-text brand--ui",children:"TAKE AGAIN"}),(0,s.jsx)("i",{className:"quiz-card__retake-icon icon icon-reload"})]})})})]})}renderMCOptionText(e,{title:n}){return(0,s.jsx)(Nt,{allowTabNavigation:e,className:"quiz-multiple-choice-option__label",value:n})}renderMROptionText(e,{title:n}){return(0,s.jsx)(Nt,{allowTabNavigation:e,component:"span",value:n})}renderType(e){const{columnBehavior:n,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:l,isActive:d,isComplete:c,isCorrect:u,isReduceMotion:m,isShuffled:p,itemProgress:f,labels:g,onSubmit:v,revealAnswers:C,questionHtmlId:y,quizAcceptableResponses:b,quizAnswerPlaceholder:x}=e,{color:L,item:E,prefersKeyboardNavigation:S}=this.props,{answers:N,correct:A,corrects:k,type:R}=E,W=d&&!c,D=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(R){case bl:return(0,s.jsx)(b3,{allowTabNavigation:d,correctAnswerColor:o,correctAnswerColorContrast:r,errorMessageId:D,incorrectAnswerColor:a,incorrectAnswerColorContrast:l,isComplete:c,isCorrect:u,labels:g,onChange:this.onFillInChange,onEnterToSubmit:v,options:N,questionHtmlId:y,quizAcceptableResponses:b,quizAnswerPlaceholder:x,revealAnswers:C,value:Wt()("","text",f)});case El:return(0,s.jsx)(j3,{answers:N,columnBehavior:n,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:l,isActive:d,isComplete:c,matches:f?.matches??{},onChange:this.onMatchSet,prefersKeyboardNavigation:S,revealAnswers:C});case Tl:{const w=et()("selectedIndices",f),Z=et()("shuffledAnswerIndices",f)??[],B=p?Vp(w,Z):w;return(0,s.jsx)(S3,{allowTabNavigation:d,correctAnswerColor:o,correctIds:k,errorMessageId:D,incorrectAnswerColor:a,isComplete:c,isCorrect:u,labels:g,onChange:this.onResponseToggle,onEnterToSubmit:v,options:N,questionHtmlId:y,renderOptionText:this.renderMROptionText.bind(this,d),revealAnswers:C,selectedIndices:B})}case Ll:default:{const w=et()("selectedIndex",f),Z=et()("shuffledAnswerIndices",f)??[],B=p?Vp(w,Z):w;return(0,s.jsx)(I3,{allowTabNavigation:W,color:L,correctAnswerColor:o,correctId:A,errorMessageId:D,incorrectAnswerColor:a,isComplete:c,isCorrect:u,isReduceMotion:m,labels:g,onChange:this.onChoiceSelect,onEnterToSubmit:v,options:N,questionHtmlId:y,renderOptionText:this.renderMCOptionText.bind(this,d),revealAnswers:C,selectedIndex:B})}}}scrollActionsIfComplete({prevProps:e}){const{isReduceMotion:n,scrollId:o,settings:r}=this.props,{revealAnswers:a=Et.iV.NONE}=r,l=this.getIndex(),d=ei(this.props);if(!(l===d)||a===Et.iV.NONE)return;const u=this.getItemProgress({props:e}),m=this.getIsComplete({itemProgress:u}),p=this.getItemProgress({props:this.props}),f=this.getIsComplete({itemProgress:p}),g=()=>{const{offsetHeight:v,offsetTop:C}=this.feedback,y=v+C;document.getElementById(o||"page-wrap")?.scrollTo({top:y,behavior:n?"instant":"smooth"})};!m&&f&&(this.timeoutScrollActionsIfComplete=setTimeout(g,750))}scrollTop(){const{isReduceMotion:e,quizTop:n,scrollId:o}=this.props,r=n||MO;document.getElementById(o||"page-wrap")?.scrollTo({top:r,behavior:e?"instant":"smooth"})}}const wO=Re()(O2)(OO),Wp=(0,h.createContext)({handleExpiredQuiz:Ds.lQ,hideTimer:Ds.lQ,quizTime:0,resetQuizTimer:Ds.lQ,timerDuration:0,timerHidden:!1,timerRunning:!1});function DO({children:t,handleExpiredQuiz:e=()=>{},isTimedQuiz:n,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const l=(0,h.useRef)(void 0),[d,c]=(0,h.useState)(),[u,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),[g,v]=(0,h.useState)(),C=(0,h.useMemo)(()=>Number(a),[a]),{activeIndex:y,endIndex:b,lessonId:x,lessonProgress:L,startIndex:E}=(0,h.useMemo)(()=>{const G=o?.currentLesson,ue=o?.lessons?.[G],ce=ue?.activeIndex||0,le=Object.keys(ue?.items||{}).length+1;return{activeIndex:ce,lessonId:G,endIndex:le,lessonProgress:ue,startIndex:0}},[o]),S=(0,_t.A)(x),N=(0,_t.A)(y),A=(0,h.useCallback)(()=>{c(C*60)},[C]),k=(0,h.useCallback)(()=>{c(G=>G-1)},[c]),R=(0,h.useCallback)(()=>{m(!0),l.current||(l.current=setInterval(k,1e3))},[k,m]),W=(0,h.useCallback)(G=>{f(G!==void 0?G:!p)},[p]),D=(0,h.useCallback)(()=>{m(!1),l.current&&(l.current=clearInterval(l.current))},[m]),w=(0,h.useCallback)(()=>{d&&g!==void 0&&r({lessonId:g,timeRemaining:d})},[g,d,r]),Z=(0,h.useCallback)(()=>{w(),c(void 0)},[c,w]),B=(0,h.useCallback)(()=>c(L.timeRemaining||C*60),[L,C,c]);(0,h.useEffect)(()=>{if(!n)return;const G=S!==x,ue=G&&d,ce=G&&n;n&&!G&&g!==x&&v(x),ue&&Z(),ce&&B()},[n,g,x,S,d,B,Z]),(0,h.useEffect)(()=>{if(n)switch(y){case E:D();break;case b:A(),D();break;default:R(),N!==y&&S===x&&w()}},[y,b,n,x,N,S,A,E,R,D,w]),(0,h.useEffect)(()=>{n&&d<1&&D()},[n,d,D]);const F=(0,h.useMemo)(()=>({handleExpiredQuiz:e,hideTimer:W,quizTime:d,resetQuizTimer:A,timerDuration:C,timerHidden:p,timerRunning:u}),[e,W,d,A,C,p,u]);return(0,s.jsx)(Wp.Provider,{value:F,children:t})}const $p=()=>(0,h.useContext)(Wp),BO=t=>t.isTimedQuiz?(0,s.jsx)(DO,{...t,children:t.children}):(0,s.jsx)(s.Fragment,{children:t.children}),en=ae("quiz-timer"),Yu=(t,e)=>`${t.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`,HO=t=>{const e=Math.floor(t/60),n=t%60;return Yu(e,n)},Kp=t=>{const e=Math.floor(t/60),n=t%60;return Yu(e,n)},zO=t=>Yu(t,0),Gp=({area:t,exitCourseEnabled:e=!1,isStartScreenActive:n=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:l,labelQuizTimerExpiredMessage:d,labelQuizTimerHide:c,labelQuizTimerLimit:u,labelQuizTimerMinute:m,labelQuizTimerMinutePlural:p,labelQuizTimerRemaining:f,labelQuizTimerShow:g,timerDisplay:v=Et.sS.REMAINING,timerEnabled:C=!1})=>{const[y,b]=(0,h.useState)(!1),{hideTimer:x,quizTime:L,timerDuration:E,timerHidden:S,timerRunning:N,handleExpiredQuiz:A}=$p(),k=(0,h.useMemo)(()=>E*60,[E]),{isCover:R,isHeader:W,isHidden:D}=(0,h.useMemo)(()=>({isCover:t==="cover",isHeader:t==="header",isHidden:v===Et.sS.HIDE_TIMER}),[t,v]),w=(0,h.useMemo)(()=>n&&!R,[n,R]),Z=()=>{b(!1),A()};if((0,h.useEffect)(()=>{N&&L===0&&b(!0)},[N,L]),!C||w||o)return null;const B={"header-area":W,"cover-area":R,"hide-timer":D,"exit-course":e},F={display:[R,W&&!n].some(Fn())?null:"none"},G=()=>({[Et.sS.SUMMARY]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:en("label"),children:[u,":"]}),(0,s.jsxs)("div",{className:en("value"),children:[E," ",E===1?m:p]})]}),[Et.sS.REMAINING]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:en("label"),children:[f,":"]}),(0,s.jsx)("div",{className:en("value"),children:HO(L)})]}),[Et.sS.ELAPSED]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:en("label"),children:[r,":"]}),(0,s.jsx)("div",{className:en("value"),children:Kp(k-L)})]}),[Et.sS.ELAPSED_TOTAL]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:en("label"),children:[r,":"]}),(0,s.jsxs)("div",{className:en("value"),children:[Kp(k-L)," /"," ",zO(E)]})]})})[R?Et.sS.SUMMARY:v];return(0,s.jsxs)("div",{className:en(B),style:F,children:[W&&S?(0,s.jsxs)("button",{className:en("hide"),onClick:()=>x(!1),type:"button",children:[(0,s.jsx)(yt,{className:en("icon"),name:"stopwatch-regular"}),g]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:en("time"),children:[(0,s.jsx)(yt,{className:en("icon"),name:"stopwatch-regular"}),(0,s.jsx)("div",{className:en("desc"),children:G()})]}),W&&(0,s.jsx)("button",{className:en("hide"),onClick:()=>x(!0),type:"button",children:c})]}),!R&&y&&Jn.createPortal((0,s.jsxs)(H0,{className:"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:Z,onClose:Z,onOverlayClick:()=>{},children:[(0,s.jsx)("p",{children:d}),(0,s.jsx)("button",{onClick:Z,type:"button",children:l})]}),Er({childType:"dialog"}))]})};var FO=i(59288);const UO=t=>({start:t<2?0:t-2,end:t+2}),pd=qe()(0,["progress","activeIndex"]),_u=t=>e=>z()("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}),Xu=qe()(0,["progress","retryAttempts"]),VO=zs(),WO=(t,e)=>{if(!t||!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n].id!==e[n].id)return!0;return!1},$O=(t,e,n)=>{if(!Array.isArray(t)||!Array.isArray(e)||!n)return!1;const o=t.map(l=>e[l]),r=e.findIndex(l=>l.id===n),a=o.findIndex(l=>l.id===n);return r===a};class KO extends FO.Component{constructor(e){super(e);const{initializeDrawnQuizQuestions:n}=e,o=Hp({...e,initializeDrawnQuizQuestions:n}),r={...e,...o};this.state={items:zp(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 n=Xu(this.props),o=Xu(e);if(n!==o){const r=Hp({...e}),a={...e,...r};this.setState({items:zp(a),progress:a.progress})}else{const{items:r,progress:a}=TO({...e,currentItems:this.state.items}),l=EO(this.state.items,r);this.setState({items:l,progress:a})}}static get defaultProps(){return{initializeDrawnQuizQuestions:Ds.lQ}}componentDidUpdate(e,n){}render(){const{labels:e,quizEnd:n,quizHeader:o,settings:r,isQuestionBankQuiz:a}=this.props,{course:l,items:d}=this.state,c=pd(this.state),{start:u,end:m}=UO(c),p=d.slice(u,m),f=!a&&c===0,g=!a&&c===d.length+1;return(0,s.jsxs)("section",{className:"quiz","data-quiz":!0,children:[r?.timer&&(0,s.jsx)(Gp,{area:"header",exitCourseEnabled:l?.lmsOptions?.enableExitCourse,isEndScreenActive:g,isStartScreenActive:f,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,s.jsxs)("div",{className:"quiz__wrap",children:[o&&c<2?this.renderStart():null,p.map(this.renderItem.bind(this,u)),n&&this.renderEnd()]})]})}renderEnd(){const{quizEnd:e}=this.props,{items:n}=this.state,o=pd(this.state),r=_u(o),a=n.length+1;return(0,s.jsx)("div",{className:r(a),inert:a===o?void 0:!0,children:(0,s.jsx)("div",{className:"quiz__item-wrap",children:e(n)})})}getQuizTop(){return document.querySelector(".lesson-nav--previous")?.clientHeight}renderItem(e,n,o){const{color:r,enableVideoPlaybackSpeed:a,id:l,isQuestionBankQuiz:d,labels:c,reportAnswer:u,onChoiceSelect:m,onFillInChange:p,onMatchSet:f,onResponseToggle:g,onSetIndex:v,onSubmit:C,prefersKeyboardNavigation:y,progress:b,quizHeader:x,settings:L,title:E}=this.props,{items:S}=this.state,N=pd(this.state),A=_u(N),k=this.getQuizTop(),R=n.type===Et.Ay.MULTIPLE_CHOICE,W=WO(n.shuffledAnswerIndices,n.answers),D=R?$O(n.shuffledAnswerIndices,n.answers,n.correct):void 0;return(0,s.jsx)(wO,{color:r,enableVideoPlaybackSpeed:a,getClassName:A,hasStart:!!x,id:l,index:o+e,isCard:!0,isCorrectAnswerUnshuffled:D,isQuestionBankQuiz:d,isReduceMotion:VO,isShuffled:W,isTimedQuiz:L?.timer,item:n,items:S,labels:c,onChoiceSelect:m,onFillInChange:p,onMatchSet:f,onResponseToggle:g,prefersKeyboardNavigation:y,progress:b,quizTop:k,reportAnswer:u,retryAttempts:Xu({progress:b}),scrollId:"page-wrap",setNextIndex:v,settings:L,submitAction:C,title:E},`item-${n.id}`)}renderStart(){const{quizHeader:e}=this.props,{items:n}=this.state,o=pd(this.state),r=_u(o);return(0,s.jsx)("div",{className:r(0),children:(0,s.jsx)("div",{className:"quiz__item-wrap",children:e(n)})})}}const GO=KO;var Ju=i(36704),Ss=i(6408),QO=i(59288);class ti extends QO.PureComponent{constructor(e){super(e),this.animationTimeout=null,this.state={counted:!1}}static get defaultProps(){return{canvasWidth:590,canvasHeight:500,onAnimationDone:Ds.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,n){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)),!n.counted&&this.state.counted&&(this.props.isPass?this.pass():this.fail())}render(){const{canvasHeight:e,canvasWidth:n,passingScore:o,isPass:r,isRTL:a,quizPassing:l,quizScore:d,scoreLabel:c}=this.props,{counted:u}=this.state,m=a?`%${o}`:`${o}%`,p=z()("odometer__score brand--ui",{"odometer__score--pass":u&&r,"odometer__score--fail":u&&r===!1}),f=z()("odometer__score-percent",{"odometer__score-percent--hidden":u});return(0,s.jsxs)("div",{className:"odometer",children:[(0,s.jsx)("canvas",{className:"odometer__canvas",height:e,id:"odometer",width:n}),(0,s.jsx)("canvas",{className:"odometer__fail",height:"170",id:"fail",width:"170"}),(0,s.jsx)("canvas",{className:"odometer__pass",height:"170",id:"pass",width:"170"}),(0,s.jsxs)("div",{className:p,children:[(0,s.jsx)("div",{className:"odometer__score-label",children:d}),(0,s.jsx)("div",{className:"odometer__pass-label brand--color",children:c}),(0,s.jsx)("div",{className:"odometer__fail-label",children:c}),(0,s.jsx)("div",{className:f,ref:g=>{this.scorePercent=g}})]}),(0,s.jsxs)("div",{className:"odometer__passmark",ref:g=>{this.passmark=g},children:[(0,s.jsx)("div",{className:"odometer__passlabel brand--ui",children:l}),(0,s.jsx)("div",{className:"odometer__passpercent brand--ui",children:m})]})]})}resetAnimationTimeout(){clearTimeout(this.animationTimeout),this.animationTimeout=null}resetCanvas(){const e=document.getElementById("pass"),n=document.getElementById("fail");e&&n&&(e.getContext("2d").clearRect(0,0,170,170),n.getContext("2d").clearRect(0,0,170,170))}odo(){const{passingScore:e,atEnd:n,canvasWidth:o,canvasHeight:r,color:a,isRTL:l}=this.props,c=document.getElementById("odometer").getContext("2d"),u=new Image,m=210,p=Math.PI/.8,f=Math.PI*.25,g=(y,b)=>{let x=ti.easeInOutCubic(Math.min(y,1));const E=(225+270*(x*b)-90)*Math.PI/180,S=o*.5+m*Math.cos(E),N=r*.5+m*Math.sin(E),k=(225+270*(e/100)-90)*Math.PI/180,R=o*.5+m*Math.cos(k),W=r*.5+m*Math.sin(k),D=R+3,w=W+3;this.passmark&&!l?(this.passmark.style.insetInlineStart=`${R/o*100}%`,this.passmark.style.insetBlockStart=`${W/r*100}%`):this.passmark&&l&&(this.passmark.style.insetInlineEnd=`${R/o*100}%`,this.passmark.style.insetBlockStart=`${W/r*100}%`,this.passmark.style.paddingInline="8.5rem"),c.clearRect(0,0,o,r),c.beginPath(),c.arc(o/2,r/2,m+9,f,Math.PI*1.52*(e/100-.03)-p,!0),c.lineWidth=16,c.strokeStyle=c.createPattern(u,"repeat"),c.stroke(),c.closePath(),c.beginPath(),c.moveTo(D,w),c.lineTo(D+38,w-38),c.lineTo(D-38,w-38),c.lineTo(D-38,w+38),c.fillStyle=Fs()?"transparent":"#f5f5f5",c.fill(),c.closePath(),c.beginPath(),c.moveTo(R,W),c.lineTo(R+35,W-35),c.strokeStyle=Fs()?"CanvasText":"#c2c3c4",c.lineWidth=1,c.stroke(),c.closePath(),c.beginPath(),c.moveTo(R+35,W-35),c.lineTo(R+70,W-35),c.strokeStyle=Fs()?"CanvasText":"#c2c3c4",c.lineWidth=1,c.stroke(),c.closePath(),c.beginPath(),c.strokeStyle=Fs()?"CanvasText":"#dcdcdc",c.globalAlpha=Fs()?.5:1,c.arc(o/2,r/2,m,-p,Math.PI*1.5-p,!1),c.lineWidth=3,c.stroke(),c.closePath(),Fs()&&(c.globalAlpha=1),n&&(c.beginPath(),c.arc(o/2,r/2,m,-p,Math.PI*1.5*x*b-p,!1),c.lineWidth=3,c.strokeStyle=Fs()?"CanvasText":"#000",Math.floor(x*b*100)>=e&&(c.strokeStyle=a),c.stroke(),c.closePath(),c.beginPath(),c.arc(S,N,6,0,2*Math.PI,!1),c.fillStyle=Fs()?"CanvasText":"#000",Math.floor(x*b*100)>=e&&(c.fillStyle=Fs()?"CanvasText":a),c.fill(),c.closePath())};u.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDFBQzM3NTBGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDFBQzM3NTFGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMUFDMzc0RUYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMUFDMzc0RkYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pq3YZDIAAAA6SURBVHjaYjQ0NVdiYGC4D8T/GRCAEYgVmXBJADEzEy4JIL7DhEsCpIkJlwRIkAmXBEwSqwQIAAQYABZQDs+U1J1TAAAAAElFTkSuQmCC";let v=null;const C=y=>b=>{!v&&y&&(v=b);const L=y?(b-v)/2e3:0;g(L,this.props.score/100),L<1&&y&&window.requestAnimationFrame(C(!0))};window.requestAnimationFrame(C(!1)),setTimeout(()=>{window.requestAnimationFrame(C(!0)),this.score()},1e3)}score(){const{isRTL:e}=this.props,n=(l,d)=>{const c=ti.easeInOutQuad(Math.min(l,1));let u=Math.round(c*d*100)+"";if(this.scorePercent){const m=e?`%${u}`:`${u}%`;for(;u.length<2;)u="0"+u;this.scorePercent.innerHTML=m}};let o=null;const r=l=>{o||(o=l);const c=(l-o)/2e3;n(c,this.props.score/100),c<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,l=m=>{const p=ti.easeInOutCubic(Math.min(m,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=Fs()?"CanvasText":e,o.lineWidth=20,o.stroke(),o.closePath()};let d=null;const c=m=>{d||(d=m);const f=(m-d)/750;l(f,this.props.score/100),f<1&&window.requestAnimationFrame(c)};function u(){d=null,window.requestAnimationFrame(c)}u()}fail(){const n=document.getElementById("pass").getContext("2d"),o=85,r=75,a=u=>{const m=ti.easeInOutCubic(Math.min(u,1));n.clearRect(0,0,170,170),n.beginPath(),n.moveTo(o-45,r-45),n.lineTo(o-45+90*Math.min(m,.5)*2,r-45+90*Math.min(m,.5)*2),n.strokeStyle=Fs()?"CanvasText":"#000",n.lineWidth=20,n.stroke(),n.closePath(),m>=.5&&(n.beginPath(),n.moveTo(o+45,r-45),n.lineTo(o+45-90*(m-.5)*2,r-45+90*(m-.5)*2),n.strokeStyle=Fs()?"CanvasText":"#000",n.lineWidth=20,n.stroke(),n.closePath())};let l=null;const d=u=>{l||(l=u);const p=(u-l)/750;a(p,this.props.score/100),p<1&&window.requestAnimationFrame(d)};function c(){l=null,window.requestAnimationFrame(d)}c()}}const ZO=Vc(ti);function YO({color:t,continueType:e,currentPassingScore:n,id:o,length:r,mode:a,nextLesson:l,nextLessonRestrictions:d,onNextClick:c,onResultsDisplayed:u,passingScore:m,retryAttempts:p,retryCount:f,showNavigationButtons:g,sidebarEnabled:v}){const[C,y]=(0,h.useState)(!1),{activeIndex:b,reportResults:x,score:L}=Ao(o)??{},[E,S]=(0,h.useState)(r+1===b),N=(0,_t.A)(E),A=(0,h.useRef)(),k=(0,h.useRef)(),R=(0,h.useId)(),W=(0,at.useLabelsMap)(),{a11yQuizFailed:D,a11yQuizPassed:w,quizPassing:Z,quizResults:B,quizScore:F}=W,G=L>=m,ue=`${F} ${L}%`,ce=`quiz-results-desc-${R}`,le=(0,h.useCallback)(()=>{A.current=setTimeout(()=>{y(!0),u()},500)},[u]),Se=(0,h.useCallback)(()=>{clearTimeout(A.current),A.current=null,y(!0)},[]);return(0,Ju.A)(()=>{clearTimeout(A.current)}),(0,h.useEffect)(()=>{S(r+1===b)},[r,b]),(0,h.useLayoutEffect)(()=>{E!==N&&(E?k.current?.focus?.():y(!1))},[E,N]),(0,s.jsxs)("div",{className:_O({isAtEnd:E}),children:[(0,s.jsxs)("div",{className:"quiz-results__header",children:[(0,s.jsx)("h1",{"aria-describedby":ce,className:"quiz-results__label noOutline brand--ui",ref:k,tabIndex:-1,children:B}),(0,s.jsxs)("div",{className:"visually-hidden-always",id:ce,children:[(0,s.jsx)("div",{children:`${Z}: ${m}%`}),(0,s.jsx)("div",{children:`${F}: ${L}%`}),(0,s.jsx)("div",{children:G?w:D})]}),(0,s.jsxs)("div",{className:"quiz-results__passing",children:[(0,s.jsx)("div",{className:"odometer__passlabel brand--ui",children:Z}),(0,s.jsx)("div",{className:"odometer__passpercent brand--ui",children:`${m}%`})]})]}),(0,s.jsx)("div",{"aria-hidden":"true",className:"quiz-results__results",children:(0,s.jsx)(ZO,{atEnd:E,color:t,complete:x,isPass:G,onAnimationDone:le,passingScore:m,quizPassing:Z,quizScore:F,score:L,scoreLabel:ue})}),(0,s.jsx)(JO,{allowTabNavigation:E,continueType:e,currentPassingScore:n,id:o,isAtEnd:E,labels:W,mode:a,nextLesson:l,nextLessonRestrictions:d,onNextClick:c,onTryAgainFocus:Se,retryAttempts:p,retryCount:f,showFooter:C,showNavigationButtons:g,sidebarEnabled:v})]})}const _O=({isAtEnd:t})=>z()("quiz-results",{"quiz-results--active":t}),XO=({isAtEnd:t,showFooter:e})=>z()("quiz-results__footer",{"quiz-results__footer--active":t,"quiz-results__footer--hidden":!e}),JO=({allowTabNavigation:t,continueType:e,id:n,isAtEnd:o,labels:r,mode:a,nextLesson:l,nextLessonRestrictions:d,onNextClick:c,onTryAgainFocus:u,retryAttempts:m,retryCount:p,showFooter:f,showNavigationButtons:g,sidebarEnabled:v})=>{const{isRestricted:C}=d,{courseFinish:y="Finish",quizContinue:b,quizTakeAgain:x}=r,{resetQuizTimer:L}=$p(),E=(0,h.useCallback)(A=>()=>{L(),(0,O.JD)((0,Ss.FU)(A))},[L]),S=e==="continue"&&a!=="preview-lesson"&&!(v&&!g),N=S&&Pe.BI&&!l&&g&&!(0,we.Hm)();return(0,s.jsxs)("div",{className:XO({isAtEnd:o,showFooter:f}),children:[(p===-1||m<p)&&(0,s.jsx)(ep,{allowTabNavigation:t,onClick:E(n),onFocus:u,text:x}),S&&C&&l&&(0,s.jsx)(t3,{bgType:"transparent",text:yi({labels:r,restrictions:d})}),S&&!C&&l&&(0,s.jsx)(yu,{href:`/lessons/${encodeURIComponent(l)}`,onClick:c,text:b}),N&&(0,s.jsx)(yu,{href:"/lessons/progress-summary",onClick:c,text:y})]})};var qO=i(59288);const ew=t=>{const e=qO.useCallback(()=>{window.dispatchEvent(new CustomEvent(uc))},[]);return(0,s.jsx)("div",{"aria-hidden":!t.allowTabNavigation,className:"quiz-end",children:(0,s.jsx)("div",{className:"quiz-end__container",children:(0,s.jsx)(YO,{...t,onResultsDisplayed:e})})})},Qp=Re()(ud()(Qn(),0),Wt()(0,"retryAttempts")),tw=({authorName:t,avatar:e,course:n,description:o,id:r,isAtStart:a,isLesson:l,labels:{a11yAuthorPrefix:d,lessonName:c,lessonPreposition:u,quizStart:m,quizTakeAgain:p,quizTimerElapsed:f,quizTimerExpired:g,quizTimerExpiredAction:v,quizTimerExpiredMessage:C,quizTimerHide:y,quizTimerLimit:b,quizTimerMinute:x,quizTimerMinutePlural:L,quizTimerRemaining:E,quizTimerShow:S},lessonNumber:N,lessonProgress:A,showAuthor:k,showLessonCount:R,title:W,totalLessons:D})=>{const w=(0,h.useRef)(),Z=ys(W),B=a&&Qp(A),G=n?.lessons?.find(ce=>ce.id===r)?.settings?.timer;(0,h.useEffect)(()=>{B&&w&&w.current&&Ki()(w.current.focus)&&w.current.focus()},[B,w]);const ue=ce=>()=>{(0,O.JD)((0,Ss.QI)(ce))};return(0,s.jsx)("div",{"aria-hidden":!a,className:"quiz-header",children:(0,s.jsx)("div",{className:"quiz-header__container",children:(0,s.jsx)("div",{className:"quiz-header__limit",children:(0,s.jsx)("div",{className:"quiz-header__row",children:(0,s.jsxs)("div",{className:"quiz-header__main",children:[(0,s.jsxs)("div",{className:"quiz-header__top-wrap brand--afterBackground",children:[(0,s.jsx)("div",{className:"quiz-header__counter",children:l&&R&&nw({lessonName:c,lessonNumber:N,lessonPreposition:u,totalLessons:D})}),(0,s.jsx)("h1",{ref:w,tabIndex:-1,children:(0,s.jsx)(Nt,{className:"quiz-header__title",value:(0,Xn.aj)(Z)})}),k&&e&&t?(0,s.jsxs)("div",{className:"quiz-header__author brand--ui",children:[(0,s.jsx)("img",{alt:"",src:(0,we.o1)(`${e}`)}),(0,s.jsxs)("span",{className:"visually-hidden",children:[d," ",t]}),(0,s.jsx)("span",{"aria-hidden":"true",children:t})]}):null]}),G&&(0,s.jsx)(Gp,{area:"cover",exitCourseEnabled:n?.lmsOptions?.enableExitCourse,isStartScreenActive:a,labelQuizTimerElapsed:f,labelQuizTimerExpired:g,labelQuizTimerExpiredAction:v,labelQuizTimerExpiredMessage:C,labelQuizTimerHide:y,labelQuizTimerLimit:b,labelQuizTimerMinute:x,labelQuizTimerMinutePlural:L,labelQuizTimerRemaining:E,labelQuizTimerShow:S,timerEnabled:G}),(0,s.jsx)(Nt,{allowTabNavigation:a,className:"quiz-header__description",value:o}),(0,s.jsxs)("button",{className:"quiz-header__start-quiz brand--color",onClick:a?ue(r):Ds.lQ,tabIndex:ka(a),type:"button",children:[(0,s.jsx)("span",{className:"brand--ui",children:sw({lessonProgress:A,quizStart:m,quizTakeAgain:p})}),(0,s.jsx)("i",{className:"icon icon-chevron-right"})]})]})})})})})},sw=({lessonProgress:t,quizStart:e,quizTakeAgain:n})=>Qp(t)?n:e,nw=({lessonName:t,lessonNumber:e,lessonPreposition:n,totalLessons:o})=>(0,s.jsx)("div",{className:"quiz-header__count",children:`${t} ${e} ${n} ${o}`}),ow=tw,rw=t=>{const e=t.findIndex(n=>n==="answers");return e===-1?null:t[e+1]?.id},aw=t=>{const e=t.findIndex(n=>n==="questions");return e===-1?null:t[e+1]?.id},iw=t=>{const e=t.at(-1);return typeof e=="string"&&e.startsWith?.("feedback")},lw=({itemId:t,questionBankId:e},n)=>{const o=n.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},cw=(t,e,n)=>{const o=n==="feedbackCorrect";return t?[t]:n==="feedback"?e.answers.slice(0,1):n==="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)},dw=({lessonId:t,items:e})=>{const n=(0,O.wA)(),o=({lessonId:a,progressId:l,question:d,answer:c},u=!0)=>{switch(d.type){case"MULTIPLE_CHOICE":n((0,Ss.Yu)({lessonId:a,itemId:l,selectedIndex:d.answers.indexOf(c)}));break;case"MULTIPLE_RESPONSE":n((0,Ss.mg)({lessonId:a,itemId:l,selectedIndex:d.answers.indexOf(c)}));break;case"FILL_IN_THE_BLANK":n((0,Ss.Nj)({lessonId:a,itemId:l,text:c.title}));break;case"MATCHING":n((0,Ss.NC)({lessonId:a,itemId:l,matches:u?d.answers.reduce((m,p)=>(m[p.id]=p.id,m),{}):{}}));break}},r=({detail:a})=>{const{lessonId:l,itemId:d,path:c}=a;if(l!==t)return;const u=aw(c),{item:m,question:p,progressId:f}=lw({itemId:d,questionBankId:u},e);if(m&&(n((0,Ss.QI)(t)),iw(c))){const g=rw(c),v=g?p.answers.find(({id:x})=>x===g)??null:null,C=c.at(-1),y=C==="feedbackCorrect",b=cw(v,p,C);p.type==="MULTIPLE_RESPONSE"&&n((0,Ss.RW)({lessonId:t,itemId:f})),b.forEach(x=>{o({lessonId:t,question:p,progressId:f,answer:x},y)}),n((0,Ss.kK)({finalRetryAttempt:!1,lessonId:t,isCorrect:y,itemId:f,passToContinue:!0}))}};(0,h.useEffect)(()=>(window.addEventListener(ss,r),()=>{window.removeEventListener(ss,r)}))},uw=qe()(0,["lessonProgress","activeIndex"]),hw=qe()(0,["lessonProgress","retryAttempts"]),mw=t=>{const{advanceQuizLessonStep:e,color:n,course:o,id:r,items:a,labels:l,lessonProgress:d,prefersKeyboardNavigation:c,setQuizAnswerText:u,selectQuizAnswer:m,setQuizAnswerMatches:p,settings:f,submitQuizAnswer:g,title:v,toggleQuizAnswerSelection:C,initializeDrawnQuizQuestions:y}=t;return dw({lessonId:r,items:a}),(0,s.jsx)(GO,{color:n,course:o,id:r,initializeDrawnQuizQuestions:y,items:a,labels:l,onChoiceSelect:m,onFillInChange:u,onMatchSet:p,onResponseToggle:C,onSetIndex:e,onSubmit:g,prefersKeyboardNavigation:c,progress:d,quizEnd:pw(t),quizHeader:fw(t),reportAnswer:we.bb,settings:f,title:v})},pw=t=>e=>{const{color:n,currentPassingScore:o,id:r,lessonNumber:a,lessonProgress:l,mode:d,nextLesson:c,nextLessonRestrictions:u,onNextClick:m,settings:{continueType:p,passingScore:f,retryCount:g},showNavigationButtons:v,sidebarEnabled:C}=t;return(0,s.jsx)(ew,{color:n,continueType:p,current:a,currentPassingScore:o,id:r,length:e.length,mode:d,nextLesson:c,nextLessonRestrictions:u,onNextClick:m,passingScore:f,retryAttempts:hw({lessonProgress:l}),retryCount:Number(g),showNavigationButtons:v,sidebarEnabled:C})},fw=t=>e=>{const{authorName:n,avatar:o,description:r,id:a,isLesson:l,labels:d,lessonNumber:c,lessonProgress:u,showAuthor:m,showLessonCount:p,title:f,totalLessons:g,settings:v,course:C}=t,b=uw(t)===0;return(0,s.jsx)(ow,{authorName:n,avatar:o,course:C,description:r,id:a,isAtStart:b,isLesson:l,items:e,labels:d,lessonNumber:c,lessonProgress:u,settings:v,showAuthor:m,showLessonCount:p,title:f,totalLessons:g})},gw={advanceQuizLessonStep:Ss.QI,initializeDrawnQuizQuestions:Ss.x6,selectQuizAnswer:Ss.Yu,setQuizAnswerMatches:Ss.NC,setQuizAnswerText:Ss.Nj,submitQuizAnswer:Ss.kK,toggleQuizAnswerSelection:Ss.mg},vw=(0,O.Ng)(null,gw)(mw),Cw=({id:t,passingScore:e})=>ud()(w1(),(0,we.GJ)({id:t,passingScore:e})),xw=({id:t,settings:e,lessonProgress:n={}})=>Kk()(Wk()(["passingScore"]),Cw({id:t,...n}),e),yw=({authorName:t,avatar:e,color:n,data:{description:o,id:r,items:a,settings:l,title:d,type:c},enableVideoPlaybackSpeed:u,isLesson:m,labels:p,lessonNumber:f,lessonProgress:g,mode:v,nextLesson:C,nextLessonRestrictions:y,onNextClick:b,prefersKeyboardNavigation:x,showAuthor:L,showLessonCount:E,showNavigationButtons:S,sidebarEnabled:N,totalLessons:A,course:k})=>(0,s.jsx)(yl,{type:c,children:(0,s.jsx)(Ja,{type:c,children:(0,s.jsx)(cd,{children:(0,s.jsxs)(qa,{items:a,type:c,children:[(0,s.jsx)(Mp,{id:r,lessonProgress:g,type:"quiz"}),(0,s.jsx)(vw,{authorName:t,avatar:e,color:n,course:k,currentPassingScore:l.passingScore,description:o,enableVideoPlaybackSpeed:u,id:r,isLesson:m,items:a,labels:p,lessonNumber:f,lessonProgress:g,mode:v,nextLesson:C,nextLessonRestrictions:y,onNextClick:b,prefersKeyboardNavigation:x,settings:xw({id:r,lessonProgress:g,settings:l}),showAuthor:L,showLessonCount:E,showNavigationButtons:S,sidebarEnabled:N,title:d,totalLessons:A})]})})})});var bw=i(27702),Ew=i.n(bw);function Lw({authors:t,author:e,selectedAuthorId:n}){return Ew()(t,{id:n||e})||{}}const Zp={addEventListeners(t,e){t.addEventListener("animationend",e,!1)},removeEventListeners(t,e){t.removeEventListener("animationend",e,!1)}},Tw=Pt("LessonHeader"),jw=ae("lesson-header"),Iw=({authorName:t,avatar:e,children:n,color:o,description:r,labels:{lessonName:a,lessonPreposition:l},lessonHeaderColor:d,lessonHeaderImageColor:c,lessonHeaderSize:u,lessonHeaderStyle:m,partnerContentAuthors:p,totalLessons:f,lessonNumber:g,showAuthor:v,showLessonCount:C,title:y})=>{const b=ir(),x=Do(),L=b===Ze.y4,E=m===I.xj.IMAGE,S=jw("top-wrap"),{alpha:N,ariaLabel:A,media:k,role:R}=br("lessonHeaderImage"),W=k?.image,D=(0,h.useMemo)(()=>{if(W&&E){const w=c===I.df.LIGHT?I.qH:I.KJ;return(0,G0.A)({alpha:N,color:w,url:(0,Yt.ME)(W)})}},[W,E,c,N]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Rg,{ariaLabel:E?A:void 0,imgRole:E?R:void 0,sectionStyles:D,topWrapClassName:S,children:(0,s.jsx)(Tw,{authorName:t,avatar:e,color:o,description:r,lessonHeaderColor:d,lessonHeaderSize:u,lessonHeaderStyle:m,lessonId:x,lessonName:a,lessonNumber:g,lessonPreposition:l,partnerContentAuthors:p,showAuthor:v,showLessonCount:C&&!L,title:y,totalLessons:f})}),n]})},si=ae("one-page-authors");function Yp({className:t}){const e=(0,Ie.vU)(),n=(0,Ie._z)(),o=(0,Ie.$H)(),r=(0,Ie.PH)();if(o?.id==="none")return null;const a=n?.isPartnerContentAuthor&&r!=null,l=si({}).mix(t);return a?(0,s.jsx)("div",{className:l,children:(0,s.jsx)("ul",{className:si("list"),role:"list",children:r.map((d,c)=>(0,s.jsxs)("li",{className:si("item"),role:"listitem",children:[(0,s.jsx)(qu,{avatarUrl:(0,Yt.ny)({width:"76",height:"76",imageKey:d?.image})}),(0,s.jsx)(e1,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:d?.name})]},c))})}):(0,s.jsxs)("div",{className:l,children:[(0,s.jsx)(qu,{avatarUrl:(0,Pe.o1)(o?.avatar)}),(0,s.jsx)(e1,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:o?.authorName})]})}Yp.propTypes={className:Ee().string};function qu({avatarUrl:t}){return t?(0,s.jsx)("div",{className:si("avatar"),style:{backgroundImage:`url(${t})`}}):(0,s.jsx)("div",{className:si("avatar-fallback"),children:(0,s.jsx)(Vd,{decorative:!0})})}qu.propTypes={avatarUrl:Ee().string};function e1({a11yAuthorPrefix:t,name:e}){const n=e||"Unknown User",o=si("name");return(0,s.jsxs)("div",{className:o.toString(),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:t}),(0,s.jsx)("span",{children:n})]})}e1.propTypes={a11yAuthorPrefix:Ee().string.isRequired,name:Ee().string};const _p=Pt("OnePageAuthors",Yp),Sw=ae("one-page-title"),Xp=({className:t,htmlId:e})=>{const n=(0,Ie.DX)(),o=(0,xt.QQ)(n.title),r=ga("title"),a=(0,us.uW)(n.title)?{"data-l10n-id":n.title.l10nId}:{"data-change-path":r},l=Sw({}).mix(t);return(0,s.jsx)("h1",{...a,className:l,id:e,tabIndex:-1,children:o})};Xp.propTypes={className:Ee().string,htmlId:Ee().string.isRequired};const Jp=Pt("OnePageTitle",Xp),t1=ae("one-page-lesson-header-info");function Nw(){const t=(0,Ie.DX)(),e=t1({}),{accentContrast:n,coverImageColor:o,coverPageType:r}=t?.theme??{},d=r===I.BL.IMAGE&&o===I.df.LIGHT||n===I.Em.DARK||r===I.BL.WHITE||r===I.BL.ACCENT&&!(0,ct.Wn)(t?.color);return(0,s.jsxs)("div",{className:e,children:[(0,s.jsx)(Jp,{className:t1("title").toString(),hasDarkText:d}),(0,s.jsx)(_p,{className:t1("authors").toString(),hasDarkText:d})]})}const Aw=Pt("OnePageCoverInfo",Nw),Pw=Pt("CoverSVG"),s1=ae("one-page-lesson-header"),Rw=ae("page"),Mw=s1("main").mix("lesson-header__main"),kw=s1("container").mix(Rw("header-container")),qp=()=>{const t=Xt(),{alpha:e,media:n}=br("coverImage"),o=t?.theme?.coverImageColor,r=t?.coverPageType===I.BL.WHITE,a=t?.coverPageType===I.BL.IMAGE,l=t?.coverPageType===I.BL.ACCENT,d=o===I.df.LIGHT,c=s1({accent:l,image:a,white:r,"overlay-light":a&&d}),u=a?(0,St.b9)({alpha:e,color:o,media:n}):{};return(0,s.jsxs)("header",{className:c,style:u,children:[(0,s.jsx)("div",{className:kw,children:(0,s.jsx)("div",{className:Mw,children:(0,s.jsx)(Aw,{})})}),(0,s.jsx)(Pw,{coverPageType:"LEFT"})]})},n1=(0,h.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});n1.displayName="LessonContentContext";function Ow({children:t}){const[e,n]=(0,h.useState)(()=>[]),o=(0,h.useCallback)(l=>{n(d=>d.concat(l))},[]),r=(0,h.useCallback)(l=>{n(d=>d.filter(c=>c!==l))},[]),a=(0,h.useMemo)(()=>({visibleLessons:e,registerLesson:o,unregisterLesson:r}),[e,o,r]);return(0,s.jsx)(n1.Provider,{value:a,children:t})}function ww(){return(0,h.useContext)(n1)}function Dw(t){function e(n){const o=ww();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`withLessonContentState(${t.displayName||t.name})`,e}var e5=i(59288);const{LARGE:Bw,SMALL:Hw}=I.OX,{ACCENT:zw,BLACK:Fw,COLOR:t5,DARK:Uw,GRAY:Vw,IMAGE:s5,LIGHT:Ww,TINT:$w}=I.xj,Kw=ae("lesson-header-wrap");class Gw extends e5.Component{ref=e5.createRef();static propTypes={match:Ee().object.isRequired,navigateDirection:Ee().func,partnerContent:Ee().object,previewType:Ee().string,sidebarEnabled:Ee().bool};constructor(e){super(e);const{course:n,isProgressSummary:o,lessonProgress:r,match:{params:a}}=e,l=Wt()(null,"index",r),d=o?dd:qe()({},["lessons",l],n),c={course:n,lesson:d},u=o?null:So(c);this.state={hasTransitioned:!1,lessonNumber:o?0:oa(c),mode:a.mode||"",model:d,next:u,nextNumber:oa({course:n,lesson:u}),scrollPosition:0,totalLessons:Pn(n)}}componentDidMount(){const e=this.props.match.params.id;this.setState({hasTransitioned:!0}),this.props.isProgressSummary||(0,we.no)(e),this.props.isProgressSummary||(0,O.JD)((0,$m.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:n,lessonProgress:o}=e,r=Wt()(null,"index",o),a=qe()(null,["lessons",r],n),d=So({course:n,lesson:a});a&&this.setState({model:a,next:d})}}componentDidUpdate(e,n){this.props.didNavigate&&!n.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 n=document.getElementById("page-wrap"),o=n.scrollTop;n.scrollTop=0,this.lastScrollPosition=o,this.transition("leave",e),window.dispatchEvent(new CustomEvent(im)),this.ref.current.scrollTop=this.lastScrollPosition}transitionComplete(){const e=this.ref.current;if(!e)return!1;const{classList:n}=e;return n&&(n.contains("page-transition-complete")||n.contains("page-transition-back-complete")||n.length===1&&n.contains("page"))}transition(e,n){const{onNavigateTransitionEnd:o,navigateDirection:r}=this.props,a=r(),l=this.ref.current;if(!l){n();return}const d=`page ${a}-${e}`,c=()=>{e==="enter"?l.className=`page ${a}-complete`:l.className="page",Zp.removeEventListeners(l,c),window.dispatchEvent(new CustomEvent(lm)),o(),n()};l.className=d,Zp.addEventListeners(l,c)}renderLessonType({type:e,props:n,course:o,model:r}){if(this.props.isProgressSummary)return(0,s.jsx)(Rp,{...this.props,...n});switch(e){case"blocks":return(0,s.jsx)(lk,{...n,animateBlockEntrance:o.animateBlockEntrance,handleNavigate:this.props.handleNavigate,isFirstLesson:Ci({course:o,lesson:r})});case"quiz":return(0,s.jsx)(yw,{...n,course:o});default:return null}}calculateLessonHeaderContrastColor(){const{course:e}=this.props,{theme:n}=e,o=n?.customColorLessonHeaderContrast,r=n?.lessonHeaderColor,a=(0,ct.xD)(r),l=!(0,ct.Wn)(r),d=o===I.Em.DARK||o===I.Em.AUTO&&a===I.Em.DARK;return!o&&l||d?Ze.S6.DARK:Ze.S6.LIGHT}render(){const{lessonNumber:e,mode:n,model:o,next:r,scrollPosition:a,totalLessons:l}=this.state,{course:d,courseProgress:c,handleStorylineFullscreen:u,isMobileHeader:m,isProgressSummary:p,labels:f,lessonProgress:g,location:v,match:C,previewType:y,getL10nValue:b,sessionPreferences:{prefersKeyboardNavigation:x},sidebarEnabled:L,themeId:E}=this.props,{author:S,selectedAuthorId:N,type:A}=o,{authors:k,color:R,enableVideoPlaybackSpeed:W,id:D,lessonHeaderImage:w,lessonHeaderSize:Z,lessonHeaderStyle:B,publishedAt:F,showAuthor:G,showLessonCount:ue,showNavigationButtons:ce,tenantId:le,theme:Se,type:Oe}=d,{hideLessonHeaders:We,lessonHeaderColor:ze,lessonHeaderImageColor:Ve,navigationType:it}=Se,tt=qe()([],["partnerContent","content"],this.props),xe=!Jt()(tt),Me=xe?es()(nt()("id",N),tt):{},Qe=xe?qe()(void 0,["data","authors"],Me):void 0,{avatar:Be,authorName:pt}=Lw({authors:k,author:S,selectedAuthorId:N}),ot=Jr({course:d,courseProgress:c}),Mt=p?{}:sa({course:d,courseProgress:c,lesson:r,restrictingQuiz:ot}),zt=Km(o),kt=Oe===Ze.y4?qp:Iw,Cs=(0,s.jsx)(kt,{authorName:pt,avatar:Be,color:R,course:d,description:o.description,labels:f,lessonHeaderColor:ze,lessonHeaderImage:w,lessonHeaderImageColor:Ve,lessonHeaderSize:Z,lessonHeaderStyle:B,lessonNumber:e,partnerContentAuthors:Qe,showAuthor:G,showLessonCount:ue,themeId:E,title:o.title,totalLessons:l,children:!p&&(0,s.jsx)(Mp,{id:o.id,items:o.items,lessonProgress:g,navigationType:it,scrollPosition:a,type:o.type})}),Rs=`image-${(Ve??I.df.DARK)?.toLowerCase()}`,Tn=Kw({[Rs]:B===s5,accent:B===zw,black:B===Fw,collapsed:We,custom:B===t5,dark:B===Uw,gray:B===Vw,image:B===s5,large:Z===Bw&&!m,light:B===Ww,mobile:m,small:Z===Hw&&!m,tint:B===$w}),$n=B===t5?{"--lesson-header-contrast-color":this.calculateLessonHeaderContrastColor(),"--color-background":ze}:{},rr={authorName:pt,avatar:Be,color:R,courseId:D,courseTitle:b(d.title),data:o,enableVideoPlaybackSpeed:W,handleStorylineFullscreen:u,hideLessonHeaders:We,isLesson:(0,St.GG)(o),labels:f,lessonHeader:Cs,lessonHeaderImage:w,lessonHeaderWrapClasses:Tn,lessonHeaderWrapStyles:$n,lessonHasContinues:zt,lessonNumber:e,lessonProgress:g,loadMedia:this.props.match.params.id===this.props.visibleLessons[0],location:v,match:C,mode:n,nextLesson:Wt()(null,"id",r),nextLessonRestrictions:Mt,partnerContent:tt,publishedAt:F,prefersKeyboardNavigation:x,previewType:y,scrollPosition:a,showAuthor:G,showLessonCount:ue,showNavigationButtons:ce,sidebarEnabled:L,tenantId:le,totalLessons:l};return(0,s.jsx)(Pr,{title:el(`${b(o.title)} - ${rr.courseTitle}`),children:(0,s.jsx)("div",{"data-lesson-id":C.params.id,ref:this.ref,children:this.renderLessonType({type:A,props:rr,course:d,model:o})})})}}const Qw=Re()(qt,Ie.x4,Dw)(Gw),fd=ae("lesson-nav"),Zw=({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:l,previousLessonNumber:d,totalLessons:c},u)=>{const m=l?.id,p=Tr(),f=ba(p),v=(0,St.GG)(l)&&m,C=ys(l?.title)||n,y=v?`${d} ${r} ${c} \u2014 ${C}`:C,b=f&&v?`${o} ${d}`:y;return(0,s.jsx)(Ea,{allowTooltip:t,className:e,direction:"previous",navLessonId:m,onFocus:a,ref:u,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:fd("link-text"),children:b}),(0,s.jsx)(Yh,{className:fd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Yh,{className:fd("link-icon")}),(0,s.jsx)("span",{className:fd("link-text"),children:b})]})})},Yw=Pt("LessonNavPrevious",K().forwardRef(Zw));function _w(){const t=j1(),e=l6();return(n,{lessonId:o,currentLocale:r})=>{const a=wt(n),l=t(o,n)||{},d=e(o,n),c=(0,at.selectLabelsMap)(r,n),u=zl(n);return{buttonNavigationStyle:a.buttonNavigationStyle,courseHomeLabel:c.courseHome,lessonNameLabel:c.lessonName,lessonPrepositionLabel:c.lessonPreposition,previousLesson:l,previousLessonNumber:d,totalLessons:u}}}const o1=Re()(It.wZ,(0,O.Ng)(_w,null,null,{forwardRef:!0}))(Yw),gd=ae("lesson-nav"),Xw=({allowTooltip:t,lessonNameLabel:e,lessonPrepositionLabel:n,nextLesson:o,nextLessonNumber:r,onFocus:a,restrictionData:l,restrictionType:d,totalLessons:c},u)=>{const m=o?.id,p=Tr(),f=ba(p),v=(0,St.GG)(o)&&m,C=(0,xt.QQ)(o?.title)||"",y=v?`${r} ${n} ${c} \u2014 ${C}`:C,b=f&&v?`${e} ${r}`:y;return(0,s.jsx)(Ea,{allowTooltip:t,direction:"next",navLessonId:m,onFocus:a,ref:u,restrictionData:l,restrictionType:d,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:gd("link-text"),children:b}),(0,s.jsx)(rc,{className:gd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rc,{className:gd("link-icon")}),(0,s.jsx)("span",{className:gd("link-text"),children:b})]})})},Jw=Pt("LessonNavNext",(0,h.forwardRef)(Xw));function qw(){const t=I1(),e=i6(),n=vr();return(o,{lessonId:r,currentLocale:a})=>{const l=wt(o),d=t(r,o)||{},c=e(r,o),u=(0,at.selectLabelsMap)(a,o),m=n(d.id,o),p=zl(o);return{buttonNavigationStyle:l.buttonNavigationStyle,lessonNameLabel:u.lessonName,lessonPrepositionLabel:u.lessonPreposition,nextLesson:d,nextLessonNumber:c,restrictionData:m?.data,restrictionType:m?.type,totalLessons:p}}}const n5=Re()(It.wZ,(0,O.Ng)(qw,null,null,{forwardRef:!0}))(Jw),vd=ae("lesson-nav"),eD=({allowTooltip:t,courseFinishLabel:e,onFocus:n,restrictionData:o,restrictionType:r},a)=>{const l=Tr(),d=ba(l);return(0,s.jsx)(Ea,{allowTooltip:t,direction:"next",finish:!0,onFocus:n,ref:a,restrictionData:o,restrictionType:r,children:d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:vd("link-text"),children:e}),(0,s.jsx)(rc,{className:vd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rc,{className:vd("link-icon")}),(0,s.jsx)("span",{className:vd("link-text"),children:e})]})})},tD=Pt("LessonNavFinish",(0,h.forwardRef)(eD));function sD(t,e){const{currentLocale:n}=e,o=wt(t),r=(0,at.selectLabelsMap)(n,t);return{buttonNavigationStyle:o.buttonNavigationStyle,courseFinishLabel:r?.courseFinish||"Finish"}}const r1=Re()(It.wZ,(0,O.Ng)(sD))(tD),nD={threshold:0},Cd=(t,e)=>{const[n,o]=(0,h.useState)(!1),r=(0,h.useRef)(null);return(0,h.useEffect)(()=>{r.current&&r.current.disconnect(),r.current=new IntersectionObserver(([l])=>{o(l.isIntersecting)},e||nD);const{current:a}=r;return t.current?a.observe(t.current):o(!1),()=>{a.disconnect()}},[t,e]),n},o5=ae("navButtonsFull"),oD=()=>{const[t,e]=(0,h.useState)(!1);return(0,is.A)(im,()=>e(!0)),(0,is.A)(lm,()=>e(!1)),t},rD=({isVisible:t})=>{(0,Ju.A)(()=>window.dispatchEvent(new CustomEvent(E0))),(0,h.useEffect)(()=>{const e=t?cm:E0;window.dispatchEvent(new CustomEvent(e))},[t])},aD=({isVisible:t})=>{(0,Ju.A)(()=>window.dispatchEvent(new CustomEvent(L0))),(0,h.useEffect)(()=>{const e=t?dm:L0;window.dispatchEvent(new CustomEvent(e))},[t])},iD=({children:t,hideNavToHome:e,navNextEnabled:n,navFinishEnabled:o})=>{const r=(0,h.useRef)(null),a=(0,h.useRef)(null),l=(0,h.createRef)(null),d=(0,h.useRef)(),c=Do(),u=Cd(a),m=Cd(l),p=oD(),f=(0,h.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),g=(0,h.useCallback)(()=>{const C=r.current?.scrollHeight;r.current?.scrollTo({top:C,behavior:"smooth"})},[]);(0,is.A)(dc,f),(0,is.A)(uc,g),rD({isVisible:u}),aD({isVisible:m}),(0,h.useEffect)(()=>{if(!p&&a.current){const y=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:y})}},[p,a]);const v=o5("navPrev",{visible:u,hide:p});return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,s.jsxs)("div",{className:o5(),children:[!e&&(0,s.jsx)("div",{className:v,children:(0,s.jsx)(o1,{lessonId:c,ref:a})}),t,n&&(0,s.jsx)(n5,{lessonId:c,ref:l}),o&&(0,s.jsx)(r1,{lessonId:c,ref:d})]})})},jl=ae("navButtonsFloating"),r5=({transitionIn:t,buttonType:e,children:n})=>{const o=(0,h.useRef)(),r={entered:jl(e,{entered:!0}),exiting:jl(e,{exiting:!0}),exited:jl(e,{exited:!0})};return(0,s.jsx)(ls.eB,{in:t,nodeRef:o,timeout:250,children:a=>(0,s.jsx)("div",{className:r[a],ref:o,children:n})})},lD=250,a5={threshold:.2},cD=({topRef:t,bottomRef:e,pageWrapRef:n,currentLessonId:o})=>{const r=Cd(t,a5),a=Cd(e,a5),[l,d]=(0,h.useState)(!1),[c,u]=(0,h.useState)(!1),[m,p]=(0,h.useState)(!1),f=(0,h.useCallback)(()=>{n.current?.scrollTo({top:2,behavior:"smooth"})},[n]);return(0,Y0.A)(f),(0,h.useEffect)(()=>{d(!0);const g=setTimeout(()=>{f(),d(!1)},lD);return()=>{clearTimeout(g)}},[o,f]),(0,h.useEffect)(()=>{u(a&&!l),p(r&&!l)},[a,r,l]),{showPrev:m,showNext:c}},dD=({children:t,isCurrentLessonQuiz:e,navNextEnabled:n,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,h.useRef)(),l=(0,h.useRef)(),d=(0,h.useRef)(),c=(0,h.useRef)(),u=(0,h.useRef)(),m=(0,h.useRef)(),p=Do(),{showNext:f,showPrev:g}=cD({topRef:u,bottomRef:m,pageWrapRef:a,currentLessonId:p}),v=(0,h.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),C=(0,h.useCallback)(()=>{const y=a.current?.scrollHeight;a.current?.scrollTo({top:y,behavior:"smooth"})},[]);return(0,is.A)(dc,v),(0,is.A)(uc,C),(0,h.useEffect)(()=>{e&&(n||r)&&C()},[e,n,r,C]),(0,s.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,s.jsx)("div",{className:jl("top"),ref:u}),!o&&(0,s.jsx)(r5,{buttonType:"prev",transitionIn:g,children:(0,s.jsx)(o1,{lessonId:p,onFocus:v,ref:l})}),t,(0,s.jsx)(r5,{buttonType:"next",transitionIn:f&&(n||r),children:n?(0,s.jsx)(n5,{lessonId:p,onFocus:C,ref:d}):r?(0,s.jsx)(r1,{lessonId:p,onFocus:C,ref:c}):null}),(0,s.jsx)("div",{className:jl("bottom"),ref:m})]})},{FULL:uD,FLOATING:i5}=I.AY,hD=ae("lessonNavigation"),mD=({children:t})=>{const e=(0,h.createRef)();return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:e,children:t})},pD=(t,e)=>t+(e?.drawCount??1),fD=(t=[])=>t.reduce(pD,0),gD=({children:t,isPreviewLesson:e})=>{const{buttonNavigationStyle:n}=(0,Ie.DX)(),{pathname:o}=(0,Ne.zy)(),r=(0,Ie.DX)(),{showNavigationButtons:a,lessonsOnly:l,lmsOptions:d={}}=r,c=(0,h.useRef)(),u=ks(480),m=Do(),p=fs(m)||{},f=Ao(m)||{},[g,v]=(0,h.useState)(n),C=l[0].id,y=d?.disableCoverPage&&C===m,b=d?.disableCoverPage,x=d?.disableCoverPage?y:b;(0,h.useEffect)(()=>{n!==g&&(v(n),window.dispatchEvent(new CustomEvent(dc)))},[n,g]);const L=Km(p)?f.isComplete:!0,E=f.activeIndex===fD(p.items)+1,S=p.type==="quiz"&&!E||p.settings?.continueType==="continue",N=p&&So({course:r,lesson:p}),A=m==="progress-summary",k=window.isPublicShare,R=N&&!e&&L&&!S&&!A,W=!N&&L&&Pe.BI&&!k&&!A&&!e&&!(0,we.Hm)()&&!S,D=hD("wrapper",{full:n===uD||u,floating:n===i5&&!u}),Z=!a||e?mD:n===i5&&!u?dD:iD;return(0,h.useEffect)(()=>{const B=document.querySelector(".page__content");B&&B.classList.add("page__content--preview-nav")},[Z]),(0,s.jsx)("div",{className:D,ref:c,children:(0,s.jsx)(Z,{hideNavToHome:x,navFinishEnabled:W,navNextEnabled:R,children:(0,s.jsx)(Ow,{children:(0,s.jsx)(ls.F,{component:"div",children:(0,s.jsx)(F0,{children:t},o)})})})})},l5=ae("courseExit");function a1(t){const e=(0,at.useLabelsMap)(),{className:n,lmsOptions:o,style:r}=t;return o?.enableExitCourse?(0,s.jsx)("div",{className:l5("wrapper"),children:(0,s.jsx)("button",{className:l5("button").mix(n),onClick:Pe.NS,style:r,type:"button",children:e?.courseExit})}):null}a1.propTypes={className:Ee().string};const i1=ae("nav-control"),vD=()=>{const[t,e]=(0,h.useState)(!1);return(0,is.A)(cm,()=>e(!0)),(0,is.A)(E0,()=>e(!1)),t},CD=({"aria-controls":t,isNavOpen:e,toggleNav:n,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:l,...d}=(0,Ie.DX)(),c=(0,h.useRef)(null),[u,m]=(0,h.useState)(0),p=(0,at.useLabelsMap)(),f=Fi(),g=lt(),v=vD(),y=!!(0,h.useMemo)(()=>d.lessons?.find(N=>N.id===g),[d.lessons,g])?.settings?.timer,b=a?.enableExitCourse,x=y||b,L=d.navigationType===I.br.COMPACT,E=L?"fixed-course-exit":void 0;(0,h.useEffect)(()=>{c.current=document.querySelector(".page-wrap");const A=document.querySelector(".lesson-nav--previous")?.clientHeight??60,k=!l||r===I.AY.FLOATING&&!f;function R({target:W}){const D=W?.scrollTop??0,w=A-D;m(w)}return v&&!k?c.current.scrollTop===0?m(A):c.current.addEventListener("scroll",R):m(0),()=>c.current.removeEventListener("scroll",R)},[r,f,v,l]);const S=(0,h.useCallback)(()=>{const N=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(c.current&&N){const A=c.current.offsetWidth-c.current.clientWidth||0;N.style.maxWidth=`calc(100% - ${A}px)`}},[]);return(0,h.useLayoutEffect)(()=>{x&&S()},[x,S]),(0,s.jsx)("div",{className:i1("wrapper"),children:(0,s.jsxs)("div",{className:i1("menu",{"is-timed-quiz":y,"nav-off":o,"top-nav-bar":x}),style:{marginTop:u},children:[!o&&(!L||f)&&(0,s.jsx)("button",{"aria-controls":t,"aria-expanded":e,"aria-label":e?p?.a11yNavigationMenuClose:p?.a11yNavigationMenuOpen,className:i1("button"),onClick:n,type:"button",children:(0,s.jsx)(M6,{className:"page-menu-toggle__icon"})}),(0,s.jsx)(a1,{className:E,lmsOptions:a})]})})};var Es=i(2316);function l1(t){return t?.search}function Il(){return(0,O.d4)(t=>l1(t))}function xD(t){return l1(t)?.activeLessons}const yD=(0,Ye.Mz)(xD,t=>t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{}));function bD(){return(0,Ye.Mz)(t=>t,(t,e)=>yD(e),(t,e)=>e?.[t])}function ED(t){const e=(0,h.useMemo)(()=>bD(),[]);return(0,O.d4)(n=>e(t,n))}const c5=ae("nav-compact"),LD=Pt("NavCompactHeaderCounter",t=>{const{lessonPosition:e,labelLessonName:n,labelLessonPreposition:o,totalLessons:r}=t;return e<=0?null:(0,s.jsx)("div",{className:c5("header-counter"),"data-test-id":"nav-compact-counter",children:`${n} ${e} ${o} ${r}`})}),TD=Pt("NavCompactHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:l}=t;return(0,s.jsxs)("div",{className:c5("header-progress"),"data-test-id":"nav-compact-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(cc,{"aria-hidden":l,"aria-label":a,progress:r,runnerClass:e,trackClass:o})]})}),jD=({a11yNavigationMenuClose:t,a11yNavigationMenuOpen:e,a11ySearchOpen:n,allowSearch:o,lmsOptions:r={},closeNav:a,coverImageColor:l,dispatch:d,isExpanded:c,labelLessonComplete:u,labelLessonName:m,labelLessonPreposition:p,lessonPosition:f,lessonsOnlyIds:g,navigationMode:v,navigationStyle:C,openNav:y,percentComplete:b,searchActive:x,title:L})=>{const E=(0,h.useMemo)(()=>(0,St.FH)(C),[C]),S=(0,h.useCallback)(()=>{c?a():y()},[c,y,a]),N=r?.disableCoverPage,R=`${(0,Ie.Wz)()?`%${b}`:`${b}%`} ${u}`,{alpha:W,ariaLabel:D,media:w,role:Z}=br("coverImage"),B=(0,St.b9)({alpha:W,color:l,media:w}),F=z()("nav-compact__header",{"nav-compact__header--collapsed":!c}),G=z()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!c}),ue="nav-compact__header-inner",ce="nav-compact__header-control",le=z()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!c}),Se=z()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!c}),Oe=z()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!c}),We=z()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!c}),ze="nav-compact__header-strip",Ve=(0,h.useCallback)(()=>{d((0,Es.ts)(!x))},[d,x]);return(0,s.jsxs)("section",{"aria-label":"Course Information",className:F,"data-test-id":"nav-compact-header",children:[E&&B&&(0,s.jsx)("div",{"aria-label":D,className:G,role:Z,style:B}),(0,s.jsxs)("div",{className:ue,children:[(0,s.jsxs)("div",{className:ze,children:[(0,s.jsxs)("div",{className:"nav-compact__header-controls",children:[o&&v!=="restricted"&&c&&(0,s.jsx)("button",{"aria-label":n,className:`${ce} nav-compact__header-search`,"data-test-id":"nav-compact-search",onClick:Ve,type:"button",children:(0,s.jsx)(Xi,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,s.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-expanded":c,"aria-label":c?t:e,className:`${ce} nav-compact__header-toggle`,"data-test-id":"nav-compact-toggle",onClick:S,type:"button",children:[c&&(0,s.jsx)(H9,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!c&&(0,s.jsx)(z9,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,s.jsx)(LD,{labelLessonName:m,labelLessonPreposition:p,lessonPosition:f,totalLessons:g.length})]}),(0,s.jsx)("div",{className:"nav-compact__header-title","data-test-id":"nav-compact-title",children:N?(0,s.jsx)("span",{className:le,children:L}):(0,s.jsx)(Mn,{className:le,to:"/",children:L})}),(0,s.jsx)(TD,{classProgressRunner:We,classProgressText:Se,classProgressTrack:Oe,navExpanded:c,percentComplete:b,percentCompleteText:R})]})]})};function ID(){const t=Qo();return(e,n)=>{const{currentLocale:o}=n,r=wt(e),a=Qr(o,e),l=Go(e),d=(0,at.selectLabelsMap)(o,e),c=Dd(e),u=t(e),m=l1(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:c,navigationMode:r.navigationMode,navigationStyle:r.navigationStyle,percentComplete:l,searchActive:m.active,themeId:r.themeId,title:a}}}const SD=Re()(It.wZ,(0,O.Ng)(ID))(jD);function d5({id:t,isEnabled:e,isSectionLesson:n,last:o}){const{navigationStyle:r}=Xt(),a=Yn(t),l=Do(),d=Hd(t),c=(0,h.useMemo)(()=>(0,St.I8)(r),[r]),u=t===l,m=Cu(a||"",45),[p,f]=(0,h.useState)(!1),g=(0,h.useCallback)(()=>f(!0),[]),v=(0,h.useCallback)(()=>f(!1),[]),C=n?"nav-compact__outline-section-item":"nav-compact__outline-item",y=(0,s.jsx)(Ec,{canComplete:d,id:t,isDark:c,isEnabled:e,isTooltipVisible:p,onHideTooltip:v,onShowTooltip:g,scope:Ze.by.COMPACT});return(0,s.jsxs)("li",{className:"nav-compact__outline-list-item","data-test-id":`nav-compact-lesson-${t}`,role:"listitem",children:[(0,s.jsxs)(qi,{className:C,dark:c,isCurrentLesson:u,isTooltipEnabled:!d,last:o,lessonId:t,onHideProgressTooltip:v,onShowProgressTooltip:g,showProgressDelay:0,tooltipClassName:`${C}-tooltip`,children:[m,!d&&y]}),d&&y]})}const ND=ae("nav-compact"),AD=({id:t})=>{const e=fs(t),n=ys(e?.title),o=ND("outline-section-empty");return(0,s.jsx)("div",{className:o,children:(0,s.jsx)("span",{children:n})})},PD=({index:t,isEnabled:e,lessonIds:n,themeId:o,title:r})=>{const[a,l]=(0,h.useState)(!0),[d,c]=(0,h.useState)(),u=(0,h.useRef)(),m=`sublistCompact-${t}`,p=z()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!a}),f=z()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!a}),g=z()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!a}),v=(0,h.useCallback)(()=>{l(C=>!C)},[]);return(0,h.useLayoutEffect)(()=>{const C=setTimeout(()=>{u.current&&c(u.current.scrollHeight)},0);return()=>{clearTimeout(C)}},[n.length,o]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":m,"aria-expanded":a,className:g,onClick:v,tabIndex:e?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:r}),(0,s.jsx)(_h,{className:p})]}),(0,s.jsx)(mc,{inert:!a,children:(0,s.jsx)("ol",{"aria-hidden":a?void 0:!0,className:f,id:m,ref:u,role:"list",style:{maxHeight:d},children:n.map((C,y)=>(0,s.jsx)(d5,{id:C,isEnabled:e&&a,isSectionLesson:!0,last:y===n.length-1},C))})})]})};function RD(){const t=Zt(),e=pn();return(n,o)=>{const{currentLocale:r}=o,a=wt(n),l=t(o.id,n),d=e(l.title,r,n);return{navigationStyle:a.navigationStyle,themeId:a.themeId,title:d}}}const MD=Re()(It.wZ,(0,O.Ng)(RD))(PD),kD=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a="nav-compact__outline-item nav-compact__outline-section";return Jt()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(AD,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(MD,{id:o,index:t,isEnabled:e,lessonIds:r})})},OD=({index:t,isEnabled:e,lessonIds:n})=>Fl(n)?(0,s.jsx)(kD,{index:t,isEnabled:e,lessonIds:n}):n.map((r,a)=>(0,s.jsx)(d5,{id:r,isEnabled:e,isSectionLesson:!1,last:a===n.length-1},r)),wD=Pt("NavCompactOutline",({className:t="",isEnabled:e,lessonIdGroups:n})=>{const o=(0,at.useLabelsMap)(),r=z()(t,"nav-compact__outline",{"nav-compact__outline--collapsed":!e});return(0,s.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,"data-test-id":"nav-compact-outline",id:"nav-compact-outline",children:Br(n)&&(0,s.jsx)("ol",{className:"nav-compact__outline-list","data-test-id":"nav-compact-outline-list",role:"list",children:n.map((a,l)=>Jt()(a)?null:(0,s.jsx)(OD,{index:l,isEnabled:e,lessonIds:a},l))})})});function DD(t){const e=wt(t);return{lessonIdGroups:Ai(t),navigationStyle:e.navigationStyle}}const BD=(0,O.Ng)(DD)(wD);var HD=i(59288);const zD=()=>{const[t,e]=HD.useState(!1);return(0,is.A)(dm,()=>e(!0)),(0,is.A)(L0,()=>e(!1)),t},u5=ae("nav-compact"),h5="nav-content-compact",FD=({closeNav:t,coverImageColor:e,isExpanded:n,navigationStyle:o,openNav:r,progressIndicatorStyle:a,translateY:l},d)=>{const c=(0,h.useMemo)(()=>(0,St.I8)(o),[o]),u=(0,h.useMemo)(()=>o===I.Py.LIGHT_ACCENT||o===I.Py.DARK_ACCENT,[o]),m=zD(),p=(0,h.useMemo)(()=>(0,St.FH)(o),[o]),f=a===I.Y2.CIRCULAR_FILL,g=a===I.Y2.INCOMPLETE_COMPLETE,v=(0,h.useMemo)(()=>p&&e===I.df.LIGHT,[p,e]),C=u5({accent:u,dark:c,light:!c,"image-dark-overlay":p&&!v,"image-light-overlay":p&&v,"progress-circular-fill":f,"progress-incomplete-complete":g,collapsed:!n,navNextIsVisible:m}),y=u5("wrap",{collapsed:!n}),b={transform:`translateY(${l}px)`};return(0,s.jsx)("div",{className:C,"data-test-id":"nav-compact",id:h5,ref:d,style:b,children:(0,s.jsxs)("div",{className:y,children:[(0,s.jsx)(SD,{closeNav:t,isExpanded:n,openNav:r}),(0,s.jsx)(mc,{inert:!n,children:(0,s.jsx)(BD,{isEnabled:n})})]})})};function UD(t){return wt(t).buttonNavigationStyle==="FULL"?Math.round(-(t.ui.lessonNavNextButton?.intersectionRect?.height??0)):0}function VD(t){const{color:e,navigationStyle:n,theme:o}=wt(t),r=o?.coverImageColor,a=o?.progressIndicatorStyle,l=UD(t);return{color:e,coverImageColor:r,navigationStyle:n,progressIndicatorStyle:a,translateY:l}}const WD=Re()((0,O.Ng)(VD,null,null,{forwardRef:!0}),h.forwardRef)(FD);var m5=i(9647);const p5=Object.assign((0,h.createContext)(null),{displayName:"OverlayNavControlContext"});function $D(t){const{children:e,closeNav:n,openNav:o}=t,[r,a]=(0,h.useState)(!1),l=(0,h.useCallback)(()=>{a(!0)},[]),d=(0,h.useCallback)(()=>{a(!1)},[]);return(0,s.jsx)(p5.Provider,{value:{closeNav:n,openNav:o,openSearch:l,closeSearch:d,searchActive:r},children:e})}const xd=h.useContext.bind(null,p5),yd=ae("nav-overlay"),KD=({className:t})=>{const{navigationStyle:e}=Xt(),{lessonComplete:n}=(0,at.useLabelsMap)(),o=(0,Ie.Wz)(),r=pr(),l=`${o?`%${r}`:`${r}%`} ${n}`,d=e!==I.qB.ACCENT,c=yd("header-progress-runner"),u=yd("header-progress-text"),m=yd("header-progress-track");return(0,s.jsxs)("div",{className:yd("header-progress").mix(t),"data-test-id":"nav-overlay-progress",children:[(0,s.jsx)(cc,{"aria-hidden":!0,background:!0,disabled:d,progress:r,runnerClass:c,trackClass:m}),(0,s.jsx)("div",{className:u,children:l})]})},Uo=ae("nav-overlay"),GD=()=>{const t=Xt(),e=Lo(),{allowSearch:n,navigationMode:o,lmsOptions:r={}}=t,a=(0,at.useLabelsMap)(),l=xd(),d=(0,h.useRef)(),c=Uo("header-control-btn"),u=r?.disableCoverPage;return(0,s.jsx)("section",{"aria-label":"Course Information","data-test-id":"nav-overlay-header",children:(0,s.jsxs)("div",{className:Uo("header-container"),children:[(0,s.jsxs)("div",{className:Uo("header-controls"),children:[(0,s.jsx)("button",{"aria-label":a?.a11yNavigationMenuClose,className:c,"data-test-id":"nav-overlay-close",onClick:l.closeNav,ref:d,type:"button",children:(0,s.jsx)(ac,{className:Uo("header-close-icon")})}),n&&o!=="restricted"&&(0,s.jsx)("button",{"aria-label":a?.a11ySearchOpen,className:c,"data-test-id":"nav-overlay-search",onClick:l.openSearch,type:"button",children:(0,s.jsx)(Xi,{className:Uo("header-search-icon")})})]}),(0,s.jsxs)("div",{className:Uo("header-title-progress-container"),children:[(0,s.jsx)("h1",{className:Uo("header-title"),"data-test-id":"nav-overlay-title",id:"nav-overlay-title",children:u?(0,s.jsx)("span",{className:Uo("header-title"),children:e}):(0,s.jsx)(Mn,{className:Uo("header-title-link"),to:"/",children:e})}),(0,s.jsx)(KD,{})]})]})})},c1=({icon:t,...e})=>{switch(t){case Ze.xA.INTERACTION:return(0,s.jsx)(G9,{...e});case Ze.xA.QUIZ:return(0,s.jsx)(V9,{...e});case Ze.xA.VIDEO:return(0,s.jsx)(Q9,{...e});default:return(0,s.jsx)(D9,{...e})}},ni=ae("nav-overlay"),f5=Pt("NavOverlayOutlineLesson",({first:t,id:e,isEnabled:n,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=Xt(),{icon:l}=fs(e),d=Yn(e),c=xd(),u=Hd(e),m=(0,St.I8)(a),p=ni("outline-item",{section:o}),f=ni("outline-item-link-icon",{quiz:l==="Quiz"}),g=(0,h.useCallback)(()=>{c.closeNav()},[c]),[v,C]=(0,h.useState)(!1),y=(0,h.useCallback)(()=>C(!0),[]),b=(0,h.useCallback)(()=>C(!1),[]),x=(0,s.jsx)(Ec,{canComplete:u,id:e,isDark:m,isEnabled:n,isTooltipVisible:v,onHideTooltip:b,onShowTooltip:y,scope:Ze.by.OVERLAY});return(0,s.jsxs)("li",{className:ni("outline-list-item",{first:t,last:r}),"data-test-id":`nav-overlay-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(qi,{className:p.toString(),dark:m,isTooltipEnabled:!u,lessonId:e,onHideProgressTooltip:b,onNavigate:g,onShowProgressTooltip:y,showProgressDelay:null,tooltipClassName:ni("outline-item-tooltip").toString(),children:[(0,s.jsx)("span",{className:ni("outline-icon-wrap"),children:(0,s.jsx)(c1,{className:f,icon:l})}),(0,s.jsx)("span",{className:ni("outline-lesson-title"),children:d}),!u&&x]}),u&&x]})}),QD=ae("nav-overlay"),ZD=({id:t})=>{const e=fs(t),n=ys(e.title);return(0,s.jsx)("span",{className:QD("outline-section-text"),children:n})},g5=ae("nav-overlay"),YD=({isEnabled:t,lessonIds:e})=>{const n=(0,h.useRef)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:g5("outline-section-divider")}),(0,s.jsx)("ol",{className:g5("outline-section-list"),ref:n,role:"list",children:e.map((o,r)=>(0,s.jsx)(f5,{id:o,isEnabled:t,isSectionLesson:!0,last:r===e.length-1},o))})]})},_D=ae("nav-overlay"),XD=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a=_D("outline-item").mix("nav-overlay__outline-section");return Jt()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(ZD,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(YD,{index:t,isEnabled:e,lessonIds:r})})},JD=({index:t,isEnabled:e,lessonIds:n})=>{const o=Fl(n),r=Yn(n[0]),a=ae("nav-overlay");return o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:a("outline-section-text"),children:r}),(0,s.jsx)("ol",{className:a("outline-list"),"data-test-id":"nav-overlay-outline-list",role:"list",children:(0,s.jsx)(XD,{index:t,isEnabled:e,lessonIds:n})})]}):n.map((l,d)=>(0,s.jsx)(f5,{first:d===0,id:l,isEnabled:e,isSectionLesson:!1,last:d===n.length-1},l))},qD=ae("nav-overlay"),eB=Pt("NavOverlayOutline",({isEnabled:t})=>{const e=N1(),n=(0,at.useLabelsMap)();return(0,s.jsx)("section",{"aria-label":n?.a11yRegionNavOverview,className:qD("outline"),"data-test-id":"nav-overlay-outline",id:"nav-overlay-outline",children:Br(e)&&(0,s.jsx)(s.Fragment,{children:e.map((o,r)=>Jt()(o)?null:(0,s.jsx)(JD,{index:r,isEnabled:t,lessonIds:o},`lessonIdGroup-${r}`))})})});var tB=i(32696),bd=i.n(tB),sB=i(18403),Ed=i.n(sB);const d1=Array.isArray,nB=t=>typeof t=="number",Ld=t=>!Js()(t)&&typeof t=="object",u1=t=>typeof t=="string",oB=(t,e,n)=>(o,r)=>{const a=xn()(r,t);if((0,us.uW)(o)){const l=n[o.l10nId];return typeof l!="string"?!1:!Jt()(Ed()(e,(0,Wa.htmlDecode)(l)))}else return Ld(o)?v5(t,e,n)(o):a&&u1(o)?!Jt()(Ed()(e,(0,Wa.htmlDecode)(o))):!1},v5=(t,e,n)=>o=>rs()(wr(),Co(),xn()(!0))(oB(t,e,n),o),rB=v5,aB=(t,e,n)=>(o,r)=>{const a=xn()(r,t);return d1(o)?Co()(h1(t,e,n)(o)):(0,us.uW)(o)?typeof n[o.l10nId]!="string"?0:Tt()(Ed()(e,(0,Wa.htmlDecode)(n[o.l10nId]))):Ld(o)?h1(t,e,n)(o):a&&u1(o)?Tt()(Ed()(e,(0,Wa.htmlDecode)(o))):0},h1=(t,e,n)=>o=>wr()(aB(t,e,n),o),m1=t=>{if(d1(t))return ws()(m1,t);if(Ld(t))return m1(Co()(t));if(nB(t))return t},iB=(t,e,n)=>o=>rs()(h1(t,e,n),Co(),ws()(m1),Oc(),ol()(gu(),0),r=>nn()("results",r,o))(o),lB=(t,e,n)=>(o,r)=>{const a=xn()(r,t);return d1(o)?Co()(p1(t,e,n)(o)):Ld(o)?p1(t,e,n)(o):a&&u1(o)?o0()(e,n,o):o},p1=(t,e,n)=>o=>wr()(lB(t,e,n),o),C5=p1,x5=(t,e,n,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title","type"];if(Jt()(t))return!1;const l=t.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),d=new RegExp(`(${l})(?![^<]*>)`,"ig"),c=b=>`<mark>${b}</mark>`,u=C5(a,d,c),m=C5(Object.keys(n),d,c),p=ws()(u,e),f=o?o(t):{},g=m(n),v=b=>f[b.id]>0||rB(a,d,n)(b),C=iB(a,d,n),y=rs()(st()(v),ws()(C))(e);y.forEach(b=>{b.results+=f[b.id]??0}),r(t,y,g,p)};var cB=i(83760);const dB=nl.Ay.animateScroll,Un=ae("nav-overlay"),uB=()=>{const t=(0,O.wA)(),e=Sn(),n=xd(),{lessons:o,mondrian:r}=Xt(),[a,l]=(0,h.useState)(""),[d,c]=(0,h.useState)(null),u=(0,h.useRef)(),m=(0,at.useLabelsMap)(),p=Un("search-close-btn"),f=Un("search-clear-btn"),g=(0,h.useCallback)(()=>{n.closeSearch(),n.closeNav(),t([(0,Es.Se)(!0),(0,Es.ts)(!1),(0,Es.NM)(null)])},[t,n]),v=(0,h.useCallback)(()=>{l(""),u.current?.focus?.()},[]);(0,h.useEffect)(()=>{u.current?.focus?.()},[]),(0,h.useEffect)(()=>{r?.blockuments&&Object.keys(r.blockuments).length&&i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)).then(({searchItemsByLesson:x})=>{c(()=>L=>x(L,o,r))})},[o,r]);const C=(0,h.useCallback)(x=>{rn(x)&&!bd()(a)?(x.preventDefault(),l(""),t((0,Es.NM)(null))):rn(x)&&bd()(a)&&g()},[t,g,a]);(0,cB.A)("keydown",C);const y=(0,h.useCallback)(x=>{l(x.target.value)},[]),b=(0,h.useCallback)(x=>{if(x.preventDefault(),a&&d){const L=(E,S,N,A)=>{t([(0,Es.NM)(E),(0,Es.gA)(S),(0,Es.D2)(N),(0,Es.u)(A),(0,Es.ts)(!0)]),dB.scrollToTop({duration:500,smooth:!0})};n.closeNav(),n.closeSearch(),x5(a,o,e??{},d,L)}},[t,n,o,e,a,d]);return(0,s.jsxs)("div",{className:Un("search"),"data-test-id":"nav-overlay-search-container",children:[(0,s.jsx)("div",{className:Un("search-header"),children:(0,s.jsx)("button",{"aria-label":m?.a11ySearchClose,className:p,"data-test-id":"nav-overlay-search-close",onClick:g,type:"button",children:(0,s.jsx)(ac,{className:Un("search-close-icon")})})}),(0,s.jsx)("div",{className:Un("search-body"),children:(0,s.jsxs)("form",{autoComplete:"off",onSubmit:b,children:[(0,s.jsxs)("div",{className:Un("search-container"),children:[(0,s.jsx)(Xi,{className:Un("search-icon")}),(0,s.jsx)("input",{"aria-label":m?.a11ySearchInput,className:Un("search-input").mix("brand--ui"),"data-test-id":"nav-overlay-search-input",name:"search",onChange:y,placeholder:m?.search,ref:u,type:"input",value:a}),a&&(0,s.jsx)("button",{"aria-label":m?.a11ySearchInputClear,className:f,"data-test-id":"nav-overlay-search-clear",onClick:v,type:"button",children:(0,s.jsx)(ac,{className:Un("search-clear-icon").toString()})})]}),(0,s.jsx)("div",{className:Un("search-actions"),children:(0,s.jsx)("button",{className:Un("search-submit-btn").mix("brand--ui"),"data-test-id":"nav-overlay-search-submit",type:"submit",children:m?.search})})]})})]})},f1=ae("nav-overlay"),y5="nav-content-overlay",hB=({isExpanded:t,outlineRef:e})=>{const o=N1()[0],r=Fl(o),a=f1("body",{section:r});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(GD,{}),(0,s.jsx)("div",{className:a,ref:e,children:(0,s.jsx)(eB,{isEnabled:t})})]})},mB=({children:t,isImage:e,hasStickyHeader:n})=>{const o=f1("content",{graphic:e,"has-sticky-header":n});return(0,s.jsxs)("div",{className:o,"data-nav-scrollable":!0,"data-test-id":"nav-overlay-content",children:[t,e&&(0,s.jsx)(s0,{})]})},pB=({isExpanded:t})=>{const e=(0,h.useRef)(null),n=(0,h.useRef)(),o=Xt(),r=xd(),a=(0,_t.A)(t),{navigationStyle:l,theme:{progressIndicatorStyle:d}}=o,c=o?.theme?.coverImageColor,u=l===I.qB.ACCENT,m=l===I.qB.TINT,p=(0,St.I8)(l),f=l===I.qB.GRAY,g=l===I.qB.LIGHT,v=(0,St.FH)(l),C=d===I.Y2.CIRCULAR_FILL,y=d===I.Y2.INCOMPLETE_COMPLETE,[b,x]=(0,h.useState)(!0),{isIntersecting:L=!1}=(0,m5.A)(n,{root:e?.current,threshold:1})||{},E=(0,_t.A)(L),S=(0,h.useMemo)(()=>v&&c===I.df.LIGHT,[v,c]),N=f1({"accent-tint":m,accent:u,dark:p,gray:f,"image-dark-overlay":v&&!S,"image-light-overlay":v&&S,light:g,"progress-circular-fill":C,"progress-incomplete-complete":y,closing:a&&!t});return(0,h.useEffect)(()=>{t?e.current?.showModal():setTimeout(()=>{e.current?.close()},500)},[t]),(0,h.useEffect)(()=>{const A=k=>{rn(k)&&!r.searchActive&&(k.preventDefault(),r.closeNav())};return t?document.addEventListener("keydown",A):document.removeEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)}},[t,r]),(0,h.useEffect)(()=>{!b&&L?x(!0):E&&!L&&x(!1)},[L,b,E,x]),(0,s.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:N,"data-test-id":"nav-overlay",id:y5,ref:e,children:(0,s.jsx)(mB,{hasStickyHeader:b,isImage:v,children:r.searchActive?(0,s.jsx)(uB,{}):(0,s.jsx)(hB,{isExpanded:t,outlineRef:n})})})},Sl=ae("nav-sidebar-search"),fB=Pt("NavSidebarSearch",({className:t="",isEnabled:e})=>{const n=(0,O.wA)(),o=Sn(),r=(0,_t.A)(e),{lessons:a,mondrian:l}=Xt(),d=Il(),c=(0,at.useLabelsMap)(),u=(0,h.useRef)(),m=Sl({disabled:!e}).mix(t),p=Sl("icon"),f=Sl("input"),g=Sl("close"),v=Sl("close-icon"),C=d?.term,y=e?void 0:"disabled",[b,x]=(0,h.useState)(""),[L,E]=(0,h.useState)(null);(0,h.useEffect)(()=>{l?.blockuments&&Object.keys(l.blockuments).length&&i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)).then(({searchItemsByLesson:R})=>{E(()=>W=>R(W,a,l))})},[a,l]);const S=(0,h.useCallback)(()=>{n([(0,Es.Se)(!0),(0,Es.ts)(!1),(0,Es.NM)(null)]),x("")},[n]),N=(0,h.useCallback)(R=>{rn(R)&&!bd()(b)?(R.preventDefault(),x(""),n((0,Es.NM)(null))):rn(R)&&bd()(b)&&S()},[n,S,b]),A=(0,h.useCallback)(R=>{C!=null&&n((0,Es.NM)(null)),x(R.target.value)},[n,C]),k=(0,h.useCallback)(R=>{R.preventDefault(),x5(b,a,o??{},L,(D,w,Z,B)=>n([(0,Es.NM)(D),(0,Es.gA)(w),(0,Es.D2)(Z),(0,Es.u)(B)]))},[n,a,o,b,L]);return(0,h.useEffect)(()=>{!r&&e&&setTimeout(()=>{u.current?.focus()},50)},[e,r]),(0,h.useEffect)(()=>{C&&C!==b&&x(C)},[b,C]),(0,s.jsxs)("form",{autoComplete:"off",className:m,"data-test-id":"nav-sidebar-search",onSubmit:k,children:[(0,s.jsx)(Xi,{className:p}),(0,s.jsx)("input",{"aria-label":c?.a11ySearchInput,className:f,disabled:y,name:"search",onChange:A,onKeyDown:N,placeholder:c?.search,ref:u,type:"search",value:b}),(0,s.jsx)("button",{"aria-label":c?.a11ySearchClose,className:g,onClick:S,type:"reset",children:(0,s.jsx)(ac,{className:v})})]})}),Vn=ae("nav-sidebar-header"),gB=ae("nav-sidebar-header-ghost"),vB=()=>(0,O.d4)(t=>t.ui.skipToNavButton?.offsetHeight??0),CB=Pt("NavSidebarHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:l}=t;return(0,s.jsxs)("div",{className:Vn("progress"),"data-test-id":"nav-sidebar-progress",children:[(0,s.jsx)(cc,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o}),(0,s.jsx)("div",{className:n,children:l})]})}),xB=Pt("NavSidebarHeader",({className:t,isCompact:e,isEnabled:n,navRefWidth:o,setIsCompact:r})=>{const a=(0,O.wA)(),[l,d]=(0,h.useState)(""),[c,u]=(0,h.useState)({height:0,width:0}),[m,p]=(0,h.useState)(c),[f,g]=(0,h.useState)(c),v=vB(),C=(0,h.useRef)(),y=(0,h.useRef)(),b=(0,h.useRef)(),[x,L]=(0,h.useState)(null),E=Xt(),S=Lo(),N=(0,at.useLabelsMap)(),A=pr(),k=Il(),R=_d(),W=(0,Ie.Wz)(),D=E?.lmsOptions?.disableCoverPage,w=E?.allowSearch&&E?.navigationMode!=="restricted",Z=E?.theme?.coverImageColor,B=E?.navigationStyle,F=(0,h.useMemo)(()=>(0,St.FH)(B),[B]),G=Xg(),ue=(0,_t.A)(k),ce=(k?.active||G)??!1,[le,Se]=(0,h.useState)(!0),[Oe,We]=(0,h.useState)(null),ze=Vn({compact:e,searching:ce,transition:le}).mix(t),Ve=Vn("inner",{compact:e}),it=Vn("content",{compact:e,hidden:ce}),tt=Vn("graphic",{image:F}),xe=Vn("progress-runner"),Me=Vn("progress-text",{compact:e}),Qe=Vn("progress-track"),Be=Vn("search-area",{hidden:!ce}),pt=Vn("search-btn",{hidden:ce}),ot=Vn("search-icon"),Mt=Vn("title",{compact:e}),zt=gB({compact:e,searching:ce}),Cs=`${W?`%${A}`:`${A}%`} ${N?.lessonComplete}`,Ln=n&&!ce?void 0:-1,Rs=n&&!ce?void 0:-1,{alpha:Tn,media:$n}=br("coverImage"),rr=(0,h.useMemo)(()=>{let ds={};return F&&Object.assign(ds,(0,St.b9)({alpha:Tn,color:Z,media:$n})),ce&&(ds.height=m.height),ds},[Tn,Z,$n,F,ce,m.height]),Pl=(0,h.useMemo)(()=>{let ds={};return e&&(ds.bottom=`calc(100% - ${v}px)`,ds.width=o||0,ds.transition="width 0.3s",n||(ds.transition="width 0.3s",ds.width="0rem")),c.height&&(ds.height=c.height,ds.overflow="hidden",e&&(ds.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),ds},[e,n,o,c.height,v]);(0,h.useEffect)(()=>{d(e&&R?Cu(S,45):S)},[S,e,R]);const li=ce?void 0:{height:f.height},E1=(0,h.useCallback)(()=>{p(c),a((0,Es.ts)(!0))},[a,c]);(0,h.useLayoutEffect)(()=>{We(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:$r=!1}=(0,m5.A)(C,{root:Oe,threshold:0})||{},Kr=(0,_t.A)($r);(0,h.useEffect)(()=>{const ds=x!=null&&window.innerHeight*.4>=x.offsetHeight;Kr&&!$r&&ds?r(!0):!Kr&&$r&&r(!1)},[$r,Kr,x,r]);const L1=(0,h.useCallback)(({target:ds})=>{const Kn={height:ds?.scrollHeight??0,width:o??0};u(Kn),p(Kn),e||g(Kn)},[e,o]);hc(x,L1),(0,h.useLayoutEffect)(()=>{const ds=Oe?.scrollTop;(Oe||ds>0)&&(Oe.scrollTop=0);const Kn={height:x?.scrollHeight??0,width:o??0};u(Kn),p(Kn),g(Kn)},[Oe,o,x]),(0,h.useEffect)(()=>{w&&ue?.active&&!k.active&&y?.current?.focus()},[w,k,ue]),(0,h.useEffect)(()=>{ce?Se(!0):e&&Se(!1)},[ce,e]);const T1=(0,h.useCallback)(ds=>{if(ds.target.getAttribute("data-link")!=="lesson-link-item"||!e)return;const Kn=x.getBoundingClientRect(),Gr=ds.target.getBoundingClientRect();Kn.bottom>Gr.top&&(Oe.scrollTop-=Kn.height-Gr.top+5)},[Oe,e,x]);return(0,is.A)("focusin",T1,Oe),(0,h.useEffect)(()=>d(S),[S]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:zt,ref:C,style:li}),(0,s.jsx)("div",{className:ze,"data-test-id":"nav-sidebar-header",ref:b,style:Pl,children:(0,s.jsxs)("div",{className:Ve,ref:L,children:[(0,s.jsx)("div",{className:tt,style:rr}),w&&(0,s.jsx)("button",{"aria-label":N?.a11ySearchOpen,className:pt,onClick:E1,tabIndex:Ln,type:"button",children:(0,s.jsx)(Xi,{className:ot})}),(0,s.jsx)("div",{className:Be,children:(0,s.jsx)(fB,{isEnabled:n&&ce})}),(0,s.jsxs)("div",{className:it,children:[D?(0,s.jsx)("span",{className:Mt,"data-test-id":"nav-sidebar-title",tabIndex:Rs,children:l}):(0,s.jsx)(Mn,{className:Mt,"data-test-id":"nav-sidebar-title",tabIndex:Rs,to:"/",children:l}),(0,s.jsx)(CB,{classProgressRunner:xe,classProgressText:Me,classProgressTrack:Qe,percentComplete:A,percentCompleteText:Cs})]})]})})]})}),yB=ae("nav-sidebar");function b5({closeNav:t,id:e,isEnabled:n,isSectionLesson:o,last:r}){const{navigationStyle:a}=Xt(),{icon:l}=fs(e)??{},d=Yn(e),c=Do(),u=Fi(),m=Hd(e),p=e===c,f=(0,h.useMemo)(()=>(0,St.I8)(a),[a]),g=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",v=z()(`${g}-link-icon`),C=(0,s.jsx)(c1,{className:v,icon:l}),[y,b]=(0,h.useState)(!1),x=(0,h.useCallback)(()=>b(!0),[]),L=(0,h.useCallback)(()=>b(!1),[]),E=(0,s.jsx)(Ec,{canComplete:m,id:e,isDark:f,isEnabled:n,isTooltipVisible:y,onHideTooltip:L,onShowTooltip:x,scope:Ze.by.SIDEBAR}),S=()=>{t&&u&&t()};return(0,s.jsxs)("li",{className:yB("outline-list-item",{last:r}),"data-test-id":`nav-outline-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(qi,{className:g,dark:f,isCurrentLesson:p,isTooltipEnabled:!m,lessonId:e,onHideProgressTooltip:L,onNavigate:S,onShowProgressTooltip:x,showProgressDelay:0,tooltipClassName:`${g}-tooltip`,children:[C,d,!m&&E]}),m&&E]})}const bB=({title:t})=>(0,s.jsx)("span",{className:"nav-sidebar__outline-section-text",children:t});function EB(){const t=Zt(),e=pn();return(n,o)=>{const{currentLocale:r}=o,a=wt(n),l=t(o.id,n),d=e(l.title,r,n);return{navigationStyle:a.navigationStyle,title:d}}}const LB=Re()(It.wZ,(0,O.Ng)(EB))(bB),TB=({closeNav:t,id:e,index:n,isEnabled:o,lessonIds:r})=>{const{themeId:a}=Xt(),l=Yn(e),[d,c]=(0,h.useState)(!0),[u,m]=(0,h.useState)(),p=(0,h.useRef)(),f=`sidebar-sublist-${n}`,g=p.current?.clientWidth,v=z()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!d}),C=z()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!d}),y=(0,h.useCallback)(()=>{c(b=>!b)},[]);return(0,h.useLayoutEffect)(()=>{const b=setTimeout(()=>{p.current&&m(p.current.scrollHeight)},0);return()=>{clearTimeout(b)}},[r.length,g,a]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":f,"aria-expanded":d,className:"nav-sidebar__outline-section-toggle",onClick:y,tabIndex:o?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:l}),(0,s.jsx)(_h,{className:v})]}),(0,s.jsx)(mc,{inert:!d,children:(0,s.jsx)("ol",{"aria-hidden":d?void 0:!0,className:C,id:f,ref:p,role:"list",style:{maxHeight:u},children:r.map((b,x)=>(0,s.jsx)(b5,{closeNav:t,id:b,isEnabled:o&&d,isSectionLesson:!0,last:x===r.length-1},b))})})]})},jB=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>{const[r,...a]=o,l="nav-sidebar__outline-item nav-sidebar__outline-section";return Jt()(a)?(0,s.jsx)("li",{className:l,role:"listitem",children:(0,s.jsx)(LB,{id:r})}):(0,s.jsx)("li",{className:l,role:"listitem",children:(0,s.jsx)(TB,{closeNav:t,id:r,index:e,isEnabled:n,lessonIds:a})})},IB=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>Fl(o)?(0,s.jsx)(jB,{closeNav:t,index:e,isEnabled:n,lessonIds:o}):o.map((a,l)=>(0,s.jsx)(b5,{closeNav:t,id:a,isEnabled:n,isSectionLesson:!1,last:l===o.length-1},a)),SB=Pt("NavSidebarOutline",({className:t="",closeNav:e,isEnabled:n,lessonIdGroups:o})=>{const r=(0,_t.A)(n),[a,l]=(0,h.useState)(!n),d=(0,at.useLabelsMap)(),c=(0,h.useRef)(),u=z()(t,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":a,"nav-sidebar__outline--safari":on.isSafari}),m=z()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!n,"nav-sidebar__outline-list--hidden":a});return(0,h.useEffect)(()=>{let p;return r&&!n?p=setTimeout(()=>{l(!0)},350):!r&&n&&a&&l(!1),()=>{clearTimeout(p)}},[n,a,r]),(0,s.jsx)("section",{"aria-label":d?.a11yRegionNavOverview,className:u,"data-test-id":"nav-sidebar-outline",id:"nav-sidebar-outline",children:Br(o)&&(0,s.jsx)("ol",{className:m,"data-test-id":"nav-sidebar-outline-list",ref:c,role:"list",children:o.map((p,f)=>Jt()(p)?null:(0,s.jsx)(IB,{closeNav:e,index:f,isEnabled:n,lessonIds:p},f))})})});function NB(t){const e=wt(t),n=Ai(t);return{isLegacyCourse:e.isLegacyCourse,lessonIdGroups:n,navigationStyle:e.navigationStyle}}const AB=(0,O.Ng)(NB)(SB);var PB=i(8433),RB=i(83827);const oi=ae("nav-sidebar-result"),E5=({result:t})=>{const e=(0,at.useLabelsMap)(),n=t?.icon,o=ys(t?.title),r=t?.results??0,a=r===1?e?.result:e?.results,l=oi("icon"),d=oi("title"),c=oi("count");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c1,{className:l,icon:n}),(0,s.jsx)("span",{className:d,children:o}),(0,s.jsx)("span",{className:c,children:`${r} ${a}`})]})},MB=({id:t,index:e,isEnabled:n,onSelectResult:o})=>{const r=Xt(),a=(0,Ne.W5)(),l=ED(t),d=a?.params?.id===t,c=d?"page":void 0,u=r?.color,m=r?.navigationStyle,p=n?void 0:-1,f={animationDelay:`${e/10}s`},g=Cr(l?.id),v=(0,h.useMemo)(()=>(0,St.I8)(m),[m]),C=oi(),y=oi("inner",{active:d}),b=oi("link",{dark:v,light:!v});return(0,s.jsx)("li",{className:C,role:"listitem",style:f,children:(0,s.jsx)("div",{className:y,style:{color:u},children:n&&g==null?(0,s.jsx)(Mn,{"aria-current":c,className:b,onClick:o,tabIndex:p,to:(0,os.p1)(t),children:(0,s.jsx)(E5,{result:l})}):(0,s.jsx)(fm,{className:b,restriction:g,tooltipClassName:"lesson-nav-link-tooltip",children:(0,s.jsx)(E5,{result:l})})})})},Td=ae("nav-sidebar-results"),kB=[],OB=({closeNav:t,isEnabled:e})=>{const{announcePolite:n}=Ue(),o=Xt(),r=Il(),a=(0,at.useLabelsMap)(),d=(r?.activeLessons??kB).filter(ta),c=r?.term,u=(0,PB.A)(d),m=(0,RB.A)(c),p=a?.noResults??"",f=o?.navigationStyle,g=(0,h.useMemo)(()=>(0,St.I8)(f),[f]),v=Td(),C=Td("message",{dark:g,light:!g}),y=Td("term"),b=Td("list"),x=ks(Ch),L=K().useCallback(()=>{x&&t()},[t,x]);return(0,h.useEffect)(()=>{if(m){const E=d.length===1?a?.result:a?.results,S=u?`${d.length} ${E}`:`${a?.noResults} ${c}`;n?.(S)}},[n,u,m,d,a,c]),(0,s.jsxs)("div",{className:v,"data-test-id":"nav-sidebar-results",children:[!u&&m&&(0,s.jsxs)("div",{className:C,children:[p," ",(0,s.jsxs)("span",{className:y,children:['"',c,'"']})]}),u&&m&&(0,s.jsx)("ol",{className:b,"data-test-id":"nav-sidebar-results-list",role:"list",children:d.map((E,S)=>(0,s.jsx)(MB,{id:E.id,index:S,isEnabled:e,onSelectResult:L},E.id))})]})},jd=ae("nav-sidebar"),L5="nav-content-sidebar",wB=({isExpanded:t,closeNav:e})=>{const n=Xt(),o=Il(),[r,a]=(0,h.useState)(!1),[l,d]=(0,h.useState)(0),c=(0,h.useRef)(null),u=(0,h.useRef)(null),m=n?.color,p=n?.theme?.coverImageColor,f=n?.isLegacyCourse,g=n?.navigationStyle,v=n?.theme?.accentContrast,C=n?.theme?.progressIndicatorStyle,y=o?.active??!1,b=y||t?void 0:"true";(0,h.useLayoutEffect)(()=>{c&&c?.current&&d(c.current?.scrollWidth)},[r,t,c,y,d]);const x=(0,h.useMemo)(()=>(0,St.zH)(g),[g]),L=(0,h.useMemo)(()=>(0,St.I8)(g),[g]),E=(0,h.useMemo)(()=>(0,St.FH)(g),[g]),S=(0,h.useMemo)(()=>E&&p===I.df.LIGHT,[E,p]),N=!(0,ct.Wn)(m),A=(0,ct.xD)(m),k=C===I.Y2.CIRCULAR_FILL,R=C===I.Y2.INCOMPLETE_COMPLETE,W=v===I.Em.AUTO&&A===I.Em.DARK,D=(0,h.useMemo)(()=>v?v===I.Em.DARK||W:N,[W,N,v]),w=jd("header"),Z=jd("body"),B=jd("content"),F=jd({accent:x,"dark-contrast":!E&&D,"light-contrast":!E&&!D,"legacy-pre-themes":f,"image-dark-overlay":E&&!S,"image-light-overlay":E&&S,"progress-circular-fill":k,"progress-incomplete-complete":R,collapsed:!t,dark:L,light:!L,searching:y});return(0,s.jsx)(mc,{inert:!t,children:(0,s.jsx)(ls.F,{children:(0,s.jsx)(ls.eB,{in:t,mountOnEnter:!0,nodeRef:u,timeout:300,unmountOnExit:!0,children:(0,s.jsx)("div",{"aria-hidden":b,className:F,"data-test-id":"nav-sidebar",ref:u,children:(0,s.jsxs)("div",{className:B,"data-nav-scrollable":!0,id:L5,children:[(0,s.jsx)(xB,{className:w,isCompact:r,isEnabled:t,navRefWidth:l,setIsCompact:a}),(0,s.jsxs)("div",{className:Z,"data-test-id":"nav-sidebar-body",ref:c,children:[(0,s.jsx)(AB,{closeNav:e,isEnabled:t&&!y}),(0,s.jsx)(OB,{closeNav:e,isEnabled:t&&y})]})]})})})})})},zr={x:null,y:null},Id={passive:!0};function T5({children:t,onSwipeDown:e,onSwipeLeft:n,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:l=100,thresholdY:d=100}){const c=(0,h.useRef)(),[u,m]=(0,h.useState)(zr),[p,f]=(0,h.useState)(zr),g=(0,h.useCallback)(b=>{const x=b.touches?.length??0,L=b.targetTouches[0],E=a?a():!0;x==1&&L&&E?m({x:L.clientX,y:L.clientY}):m(zr)},[a]),v=(0,h.useCallback)(b=>{const x=b.targetTouches[0];x&&f({x:x.clientX,y:x.clientY})},[]),C=(0,h.useCallback)(()=>{m(zr),f(zr)},[]),y=(0,h.useCallback)(b=>{const x=b.touches?.length??0;if(u.x==null||u.y==null||p.x==null||p.y==null||x>0)return;const L=p.x-u.x,E=p.y-u.y;Math.abs(L)>Math.abs(E)?Math.abs(L)>l&&(L<0?n?.():o?.()):Math.abs(E)>d&&(E<0?r?.():e?.()),m(zr),f(zr)},[e,n,o,r,l,d,p,u]);return(0,is.A)("touchstart",g,c.current,Id),(0,is.A)("touchcancel",C,c.current,Id),(0,is.A)("touchmove",v,c.current,Id),(0,is.A)("touchend",y,c.current,Id),(0,s.jsx)("div",{ref:c,children:t})}T5.propTypes={children:Ee().oneOfType([Ee().arrayOf(Ee().element),Ee().element]).isRequired,onShouldRecognizeGesture:Ee().func,onSwipeDown:Ee().func,onSwipeLeft:Ee().func,onSwipeRight:Ee().func,onSwipeUp:Ee().func,thresholdX:Ee().number.isRequired,thresholdY:Ee().number.isRequired};function Sd({isEnabled:t=!0,...e}){return t?(0,s.jsx)(T5,{...e}):(0,s.jsx)("div",{children:e.children})}Sd.propTypes={children:Ee().oneOfType([Ee().arrayOf(Ee().element),Ee().element]).isRequired,isEnabled:Ee().bool.isRequired};const Nd={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},DB=[Nd.TABLET_PORTRAIT,Nd.TABLET_LANDSCAPE,Nd.MOBILE_PORTRAIT,Nd.MOBILE_LANDSCAPE],Ad=t=>DB.includes(t),j5=t=>(0,h.useMemo)(()=>{const e=window.matchMedia("(pointer: coarse)").matches,n=Ad(t);return e||n},[t]),I5=ae("course-navigation"),{COMPACT:Pd,OVERLAY:g1,SIDEBAR:Fr}=I.br,BB={[Pd]:h5,[Fr]:L5,[g1]:y5},HB=({hasSearchResults:t,courseNavType:e,openNav:n,closeNav:o})=>{const[r,a]=(0,h.useState)(t);return(0,h.useEffect)(()=>{r&&!t&&!(e===Fr)?(o(),a(!1)):r&&e===g1?n():a(t)},[t,e,n,o,r]),r},zB=t=>{const[e,n]=(0,h.useState)();(0,h.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:l,openNav:d,closeNav:c}=t;o===Fr&&r&&(!e&&l&&a?c():e&&!l&&!a&&d(),n(l))},[e,t])},FB=({beginWithSidebarOpen:t,children:e,closeNav:n,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:l,openNav:d,previewType:c,toggleNav:u,hideNav:m})=>{const p=(0,h.useRef)(),f=(0,h.useRef)(),{active:g}=Il(),v=(0,at.useLabelsMap)(),C=HB({hasSearchResults:g,courseNavType:o,openNav:d,closeNav:n}),y=(0,h.useMemo)(()=>C||o===Pd&&a?Fr:o,[o,C,a]);zB({activeNavType:y,beginWithSidebarOpen:t,closeNav:n,openNav:d,isNavOpen:r,isTablet:a}),(0,h.useEffect)(()=>{const N=k=>{f.current?.contains(k.relatedTarget)&&n()},A=()=>{f.current?.removeEventListener("click",n),f.current?.removeEventListener("keypress",n),f.current?.removeEventListener("blur",N,!0)};return y===Pd&&r?(f.current?.addEventListener("click",n),f.current?.addEventListener("keypress",n),f.current?.addEventListener("blur",N,!0)):A(),A},[y,r,f,n]);const b=j5(c),x=(0,h.useCallback)(()=>{const N=y===I.br.SIDEBAR;b&&N&&r&&n()},[n,r,b,y]),L=(0,h.useMemo)(()=>BB[y],[y]),E=I5(y?.toLowerCase(),{"nav-open":r,"search-open":g&&r,"course-nav-type":o?.toLowerCase()}),S=I5("lessonNav",{type:l?.toLowerCase()});return(0,s.jsx)(Zg,{isCourseNavOpen:r,children:(0,s.jsx)("div",{className:E,children:(0,s.jsx)(Sd,{isEnabled:y===I.br.SIDEBAR,onSwipeLeft:x,children:(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("nav",{"aria-label":v?.a11yRegionNavLesson,children:[(0,s.jsx)(CD,{"aria-controls":L,hideNav:m,isNavOpen:r,toggleNav:u}),y===Fr&&(0,s.jsx)(wB,{closeNav:n,isExpanded:r}),y===Pd&&(0,s.jsx)(WD,{closeNav:n,isExpanded:r,openNav:d,ref:p}),y===g1&&(0,s.jsx)($D,{closeNav:n,openNav:d,children:(0,s.jsx)(pB,{isExpanded:r})})]}),(0,s.jsx)("div",{ref:f,children:e})]})})})})},UB=({children:t,isPreviewLesson:e,...n})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...l}=(0,Ie.DX)(),d=Fi(),c=(0,St.zh)(l),u=!d,m=l.sidebarMode===I.RE.OPEN,p=c&&r===Fr&&m&&u,f=l.type===Ze.y4,g=f&&l?.theme?.blockNavigationType===I.HC.CONTINOUS,[v,C]=(0,h.useState)(p),y=(0,h.useCallback)(()=>{C(!0)},[]),b=(0,h.useCallback)(()=>{C(!1)},[]),x=(0,h.useCallback)(()=>v?b():y(),[v,b,y]);(0,is.A)(rm,y),(0,is.A)(am,b);const L=f||e?"fixed-course-exit":void 0,E=g?{marginInlineEnd:"2rem"}:void 0,S=c?r:"";return f||e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a1,{className:L,lmsOptions:a,style:E}),t]}):(0,s.jsx)(FB,{...n,beginWithSidebarOpen:m,closeNav:b,courseNavType:S,enableExitCourse:a?.enableExitCourse||!0,hideNav:!c,isNavOpen:v,isTablet:d,lessonNavType:o,openNav:y,toggleNav:x,children:t})};var VB=i(62599),WB=i.n(VB),$B=i(67715),S5=i(56838),or=i(19509);function KB(t){return t?.slidesUI?.slideDirection??or.f.UP}function GB(){return(0,O.d4)(t=>KB(t))}function QB(t){return t?.slidesUI?.exitingSlideOffset??0}function ZB(){return(0,O.d4)(t=>QB(t))}const Ur=ae("blocks-lesson-slide"),N5="#fff",YB=["image full","image text overlay","quote background"],A5=({className:t})=>{const e=Dn()||N5;return(0,s.jsx)("div",{className:t,style:{background:e}})},_B=({block:t})=>(0,s.jsx)(A0,{block:t,children:(0,s.jsx)(A5,{className:Ur("background-top")})}),XB=({block:t})=>(0,s.jsx)(A0,{block:t,children:(0,s.jsx)(A5,{className:Ur("background-bottom")})});function JB(t,e){const n=e.blocks?.length??1,o=n==1,r=n==2,a=e.blocks?.[0],l=e.blocks?.find(W=>W.settings.backgroundType===I.xj.IMAGE),d=t.settings.backgroundType===I.xj.IMAGE,c=t.id===a?.id,u=t.family==="multimedia",m=t.family==="mondrian",p=t.family==="buttons",g=t.variant==="accordion"&&document.querySelector(`[data-block-id="${t.id}"] [data-accordion-status="closed"]`)!=null,v=document.querySelector(`[data-block-id="${t.id}"] [data-block-text]`)?.clientHeight>300,C=tk(t.family,t.variant)||v,y=document.querySelector("[data-continue-sr]")!=null,b=!C&&r&&y&&document.querySelector("[data-continue-btn]")==null,x=o&&d&&!b,L=d&&!b&&!C,E=u||p||m;return Ur("connected-blocks",{"min-half-height":l&&(r&&!b&&!C||g||L),"full-height":b||x,"top-block":c&&!o&&!C&&!E,"top-block-centered":c&&!o&&E})}const qB=({hasTransitioned:t,onContinue:e,prefersKeyboardNavigation:n,previewType:o,slide:r,transitionState:a},l)=>{const d=Xt(),c=Do(),u=(0,at.useLabelsMap)(),m=U0(),p=Ao(c),f=!0,{animateBlockEntrance:g,color:v,id:C,title:y,enableVideoPlaybackSpeed:b,publishedAt:x,tenantId:L}=d;(0,h.useImperativeHandle)(l,()=>E.current);const E=(0,h.useRef)(),S=GB(),N=ZB(),A=`${a}-${S}`,k=Ur("wrapper",{exiting:a==="exiting"}),{blocks:R,lastBlock:W}=r,D=(0,h.useCallback)(tt=>{tt===W?.id&&e()},[W,e]),w=Ur("inner",{[A]:!0}),Z=Ur("lesson",{slides:f}).toString(),B=r.blocks.length==1,{settings:F,type:G,variant:ue}=r.blocks?.[0]??{},ce=B&&F.backgroundType===I.xj.IMAGE,le=B&&!ce&&xn()(`${G} ${ue}`,YB),Se=le||ce,Oe=r.blocks?.[0],We=r.blocks?.[r.blocks.length-1],ze=Oe?.settings?.backgroundType!==I.xj.IMAGE,Ve=We?.settings?.backgroundType!==I.xj.IMAGE,it=Ur("full-width-image",{legacy:le,background:ce});return(0,s.jsx)("div",{className:k,style:{top:N},children:(0,s.jsxs)("div",{className:w,children:[ze&&(0,s.jsx)(_B,{block:Oe}),Ve&&(0,s.jsx)(XB,{block:We}),(0,s.jsx)("div",{className:Z,ref:E,children:R.map((tt,xe)=>{const Me=B?!1:jp({blocks:r.blocks,lessonProgress:p,currentBlockIndex:xe}),Qe=Se?it:JB(tt,r);return(0,s.jsx)(Lp,{animateBlockEntrance:g,block:tt,className:Qe,color:v,courseId:C,courseTitle:y,defaultBackgroundColor:N5,enableVideoPlaybackSpeed:b,hideBlock:Me,index:xe,isFirstLesson:!0,isOnlyBlockInStep:B,labels:u,lessonId:c,lessonProgress:p,loadMedia:t,onContinue:D,partnerContent:m,prefersKeyboardNavigation:n,previewType:o,publishedAt:x,tenantId:L},tt.blockId)})})]})})},eH=(0,h.forwardRef)(qB);var tH=i(37520),sH=i.n(tH),P5=i(72209);const R5=ae("blocks-slide-indicator-tooltip"),nH=({disabled:t,left:e,text:n,top:o,visible:r},a)=>{let l=(0,s.jsx)("span",{"aria-hidden":"true",children:n});return t&&(l=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k6,{className:R5("icon")}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,s.jsx)("div",{"aria-hidden":!r,className:R5("wrapper",{disabled:t,visible:r}),ref:a,role:"tooltip",style:{left:e,top:o},children:l})},M5=(0,h.forwardRef)(nH);M5.propTypes={disabled:Ee().bool.isRequired,left:Ee().number,text:Ee().string.isRequired,top:Ee().number,visible:Ee().bool.isRequired};const oH=M5;function rH(t){const e=(0,h.useRef)();return e.current||=t(),e}const Rd=ae("blocks-slide-indicator"),aH=({active:t,blockNavigationStyle:e,disabled:n,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:l},d)=>{const{prefersKeyboardNavigation:c}=pm()??{},[u,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(),g=(0,h.useRef)(),v=(0,h.useRef)(),C=(0,h.useRef)(),y=e===I.Dw.NUMBERS,b=l+1,x=`${b} / ${o}`,L=rH(()=>document.getElementById("portal")),E=(0,h.useCallback)(()=>{if(g.current&&v.current){const G=g.current.getBoundingClientRect(),ue=v.current.getBoundingClientRect(),ce=G.left-ue.width-18,le=Math.round(G.top-ue.height/2+G.height/2);f({left:ce,top:le})}},[]),S=(0,h.useCallback)(()=>{C.current=setTimeout(()=>{E(),m(!0)},300)},[E]),N=(0,h.useCallback)(()=>{clearTimeout(C.current),m(!1)},[]),A=(0,h.useCallback)(()=>{a(l)},[a,l]),k=(0,h.useCallback)(G=>{rn(G)&&m(!1),r(G)},[r]),R=(0,h.useCallback)(()=>{S()},[S]),W=(0,s.jsx)(oH,{disabled:n,left:p?.left,ref:v,text:x,top:p?.top,visible:u}),D=Rd("button",{active:t,disabled:n,numbers:y}),w=Rd("wrapper"),Z=Rd("circle",{active:t,disabled:n}),B=Rd("number",{active:t,disabled:n}),F=y?(0,s.jsx)("span",{"aria-hidden":"true",className:B,children:b}):(0,s.jsx)(P1,{className:Z});return(0,s.jsxs)("div",{className:w,ref:d,children:[(0,s.jsxs)("button",{"aria-disabled":n,className:D,"data-control":"",onBlur:N,onClick:n?void 0:A,onFocus:c?R:void 0,onKeyDown:k,onMouseEnter:S,onMouseLeave:N,ref:g,tabIndex:t?0:-1,type:"button",children:[F,(0,s.jsx)("span",{className:"visually-hidden-always",children:x}),t&&(0,s.jsx)("span",{className:"visually-hidden-always",children:"(current)"}),n&&(0,s.jsx)("span",{className:"visually-hidden-always",children:"(disabled until content is completed)"})]}),(0,Jn.createPortal)(W,L.current)]})},iH=(0,h.forwardRef)(aH),Vr=ae("blocks-slide-controls"),k5=38,lH=8,cH=t=>{const{activeSlideIndex:e,blockNavigationStyle:n,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:l,previewType:d}=t,c=(0,h.useRef)(),u=(0,h.useRef)(),[m,p]=(0,h.useState)(!1),[f,g]=(0,h.useState)(!1),v=(0,h.useCallback)(x=>{let L=!1,E=-1;if(Gi(x)||Na(x)){if(e-1>=0)E=e-1;else{r();return}L=!0}else Qi(x)||Aa(x)?(e+1<=o-1&&(E=e+1),L=!0):o9(x)?(E=0,L=!0):n9(x)&&(E=o-1,l[E]&&(E=l.findLastIndex(S=>!S)),L=!0);E>=0&&!l[E]&&a(E),L&&(x.stopPropagation(),x.preventDefault())},[e,o,r,a,l]);(0,h.useEffect)(()=>{const x=c.current,L=u.current;if(x&&L){const E=x.getBoundingClientRect(),S=L.getBoundingClientRect(),N=E.bottom-k5,A=E.top+k5;S.bottom>N?x.scrollBy({top:S.bottom-N,left:0,behavior:"smooth"}):S.top<A&&x.scrollBy({top:S.top-A,left:0,behavior:"smooth"})}},[e]);const C=(0,h.useCallback)(()=>{const x=c.current;x&&(p(x.scrollTop>lH),g(x.clientHeight+x.scrollTop<x.scrollHeight))},[]);(0,P5.A)(C);const y=(0,h.useCallback)(Xc()(C,100),[C]);hc(c.current,C);const b=Vr({"touch-preview":Ad(d)});return(0,s.jsx)("div",{className:b,children:(0,s.jsx)("div",{className:Vr("page-control-wrapper"),children:(0,s.jsxs)("div",{className:Vr("page-control-inner-wrapper"),children:[(0,s.jsx)("div",{className:Vr("page-control"),onScroll:y,ref:c,children:(0,s.jsx)("div",{className:Vr("slide-dot-wrapper"),children:sH()(x=>{const L=x===e;return(0,s.jsx)(iH,{active:L,blockNavigationStyle:n,disabled:l[x],numberOfSlides:o,onClick:a,onKeyDown:v,ref:L?u:null,slideIndex:x},x)},o)})}),(0,s.jsx)("div",{className:Vr("overlay-top",{visible:m})}),(0,s.jsx)("div",{className:Vr("overlay-bottom",{visible:f})})]})})})},O5=100;var Nl=i(59288);const dH=50,uH=1e3,hH=({onSwipeDownHandler:t,onSwipeUpHandler:e,target:n,timeoutDuration:o=uH})=>{const[r,a]=Nl.useState(!1),l=Nl.useRef(void 0),d=Nl.useCallback(()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>a(!1),o)},[o]),c=Nl.useCallback(u=>{const m=Math.abs(u.deltaY);if(r)m<dH?(l.current&&clearTimeout(l.current),a(!1)):d();else if(m>O5){const p=u.deltaY>0?t:e;a(!0),d(),p()}},[d,r,t,e]);Nl.useEffect(()=>{if(!(!n||!e||!t))return n.addEventListener("wheel",c,{passive:!0}),()=>{l.current&&clearTimeout(l.current),n?.removeEventListener?.("wheel",c,{passive:!0})}},[t,e,c,n])};var Wr=i(29249);const Wn=ae("lesson-one-page-slides"),mH=ae("page-wrap"),w5=100;function D5(t){if(t==null)return!1;const e=t.tagName.toLowerCase(),n=t.getAttribute("type"),o=t.getAttribute("role"),r=t.tabIndex,a=e==="button"||["div","span"].includes(e)&&(o==="button"||r===0),l=e==="input"&&["radio","text"].includes(n)||e==="textarea"||o==="radio",d=["audio","video"].includes(e),c=o==="tab",u=document.querySelector(".quiz-card__interactive")?.contains?.(t)??!1;return a||l||d||c||u}const pH=t=>(e,n,o)=>Tp(e,o.slice(0,-1),t),fH=(t,e)=>({disabled:n,slides:o},r)=>{const a=rs()(st()(u=>t[u.id]),ws()(u=>Mo()(u,t[u.id])))(r),l=r[r.length-1],d=n||JM(a)||qM(a,e),c={blocks:a,lastBlock:l,disabled:n};return{disabled:d,slides:a3()(c,o)}},Md=t=>{let e=!1,n=!1;if(t){const{clientHeight:o,scrollHeight:r,scrollTop:a}=t,l=Math.max(0,a),d=r-l;e=d===r,n=d-5<=o}return{isAtTop:e,isAtBottom:n}},gH=/,? +/,vH=[],CH=({lessonProgress:t,prefersKeyboardNavigation:e,previewType:n},o)=>{(0,h.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=Ue(),l=(0,h.useRef)(),d=(0,h.useRef)(),c=(0,h.useRef)(),u=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,h.useRef)(),f=(0,h.useRef)(),g=(0,h.useRef)(),v=(0,Ba.W)(),C=(0,O.wA)(),[y,b]=(0,h.useState)(0),[x,L]=(0,h.useState)(!0),[E,S]=(0,h.useState)(!1),N=(0,_t.A)(x),A=(0,_t.A)(E),k=(0,h.useRef)(),R=zs(),W=R?.01:600,D=j5(n),w=D?y6:x6,Z=D?v6:g6,B=D?z6:O1,{lessons:F,...G}=(0,Ie.DX)(),ue=G.theme?.blockNavigationStyle||I.Dw.DOTS,ce=F[0],le=ce?.items||vH,Se=(0,h.useCallback)(()=>{const Qt=c.current?.scrollHeight>c.current?.clientHeight,{isAtBottom:jn}=Md(c.current),In=Qt&&!x&&!jn;In!=E&&S(In)},[E,x]);hc(l.current,Se),(0,h.useLayoutEffect)(Se,[x]);const Oe=(0,h.useCallback)(()=>{c.current?.scrollTo({top:0})},[]),We=(0,h.useMemo)(()=>(0,Ds.Ve)($u([],le,t).map(pH(t)),st()(Gm.A),WB()(et()("blockId"))),[le,t]),ze=(0,h.useCallback)(Qt=>{const jn={disabled:!1,slides:[]},{slides:In}=ol()(fH(We,t),jn,Qt);return In},[We,t]),Ve=(0,h.useMemo)(()=>(0,Ds.Ve)(le,UM,ze),[le,ze]),it=(0,h.useMemo)(()=>da()("disabled",Ve),[Ve]),tt=Ve.length,xe=Ve[y],Me=Ad(n),Qe=ue!==I.Dw.NONE,Be=y===tt-1,pt=t?.isComplete,ot=E||Be?!pt||!Pe.BI||window.isPublicShare:it[y+1],Mt=!E&&!Be,zt=Be&&!Pe.BI,kt=(0,_t.A)(zt),Cs=E&&!Be,Ln=(0,h.useCallback)(ml()(Se,100),[Se]);(0,h.useEffect)(()=>{const Qt=c.current;return Qt?.addEventListener("scroll",Ln,{passive:!0}),()=>Qt?.removeEventListener("scroll",Ln,{passive:!0})},[Ln]),(0,h.useEffect)(()=>{document.activeElement===p.current?!A&&E?m.current?.focus({preventScroll:!0}):!kt&&zt&&f.current?.focus({preventScroll:!0}):document.activeElement===m.current&&A&&!E&&p.current?.focus({preventScroll:!0})},[E,A,kt,N,zt,x]),(0,$B.A)(()=>{Pm(),k.current=setTimeout(()=>{L(!1),c.current?.focus?.()},W+w5)},()=>{clearTimeout(k.current)});const Rs=(0,h.useCallback)(Qt=>{const jn=l.current?.getBoundingClientRect()?.top??0;C((0,Wr.ty)(jn)),b(Qt),Oe()},[C,Oe]),Tn=(0,h.useCallback)(()=>{x||(L(!0),v.push("/"))},[v,x]),$n=G?.lmsOptions?.disableCoverPage,rr=(0,h.useCallback)($n?()=>{C((0,Wr.zP)(or.f.DOWN)),Rs(0)}:Tn,[$n,Rs,Tn,C,Wr.zP]),Pl=(0,h.useCallback)(()=>{x||(y>0?(C((0,Wr.zP)(or.f.DOWN)),Rs(y-1)):Tn())},[Rs,C,y,x,Tn]),li=(0,h.useCallback)(()=>{x||(Be&&Pe.BI?v.push("/lessons/progress-summary"):(C((0,Wr.zP)(or.f.UP)),Rs(y+1)))},[Rs,C,v,Be,y,x]),E1=(0,h.useCallback)(()=>{(y<tt-1||Be&&Pe.BI)&&li()},[Be,y,tt,li]),$r=(0,h.useCallback)(()=>{const Qt=c.current?.scrollTop??0,jn=c.current?.clientHeight??0,In=R?"instant":"smooth";c.current?.scrollTo({top:Qt+jn,behavior:In})},[R]),Kr=(0,h.useCallback)(()=>{li()},[li]),L1=(0,h.useCallback)(()=>{$r()},[$r]),T1=(0,h.useCallback)(Qt=>{if(Qt===y||x)return;const jn=Qt<y?or.f.DOWN:or.f.UP;C((0,Wr.zP)(jn)),Rs(Qt),queueMicrotask(()=>{u.current?.querySelectorAll("[data-control]")?.[Qt]?.focus?.()})},[Rs,C,y,x]),ds=(0,h.useCallback)(()=>L(!0),[]),Kn=(0,h.useCallback)(()=>{L(!1),setTimeout(()=>{if(d.current&&u.current?.contains?.(document.activeElement)){const Qt=Fu()(d.current.innerText,{length:75,separator:gH});a(),r(`Content preview: ${Qt}`)}else c.current?.focus?.()},0)},[r,a]),Gr=(0,h.useCallback)(()=>{if(Me)return;const{isAtTop:Qt}=Md(c.current);if(Qt){y===0?rr():Pl();return}},[Me,Pl,y,rr]),Rl=(0,h.useCallback)(()=>{if(Me||Be&&!Pe.BI||ot)return;const{isAtBottom:Qt}=Md(c.current);if(Qt){Kr();return}},[Be,ot,Me,Kr]),Dz=(0,h.useCallback)(()=>{const{isAtBottom:Qt,isAtTop:jn}=Md(c.current),In=document.documentElement.clientWidth===window.innerWidth;return(Qt||jn)&&In},[]),Bz=(0,h.useCallback)(Qt=>{!u.current?.contains?.(document.activeElement)&&!D5(Qt.target)&&Gr()},[Gr]),Hz=(0,h.useCallback)(Qt=>{!u.current?.contains?.(document.activeElement)&&!D5(Qt.target)&&Rl()},[Rl]),o6=(0,h.useCallback)(Qt=>{const{itemId:jn}=Qt.detail,In=le.findIndex(Fz=>Fz.id===jn);In===-1||In===y||(C((0,Wr.zP)(In>y?or.f.UP:or.f.DOWN)),Rs(In))},[Rs,C,y,le]);(0,h.useEffect)(()=>(window.addEventListener(ss,o6),()=>{window.removeEventListener(ss,o6)})),(0,S5.A)("ArrowUp",Fn(),Bz),(0,S5.A)("ArrowDown",Fn(),Hz),hH({target:c.current,onSwipeUpHandler:Gr,onSwipeDownHandler:Rl,timeoutDuration:W+w5});const zz=Wn("gradient",{visible:E});return(0,s.jsx)("div",{className:Wn({}),children:(0,s.jsx)("div",{className:mH({transitioning:x}),id:"page-wrap",ref:c,tabIndex:"-1",children:(0,s.jsx)(yl,{type:Ze.y4,children:(0,s.jsx)(Ja,{type:Ze.y4,children:(0,s.jsx)(qa,{children:(0,s.jsx)(Pr,{children:(0,s.jsxs)("div",{"data-lesson-id":ce?.id,children:[(0,s.jsxs)("div",{"aria-label":"Step controls",className:Wn("controls",{"touch-preview":Me}),ref:u,role:"region",children:[(0,s.jsxs)("button",{"aria-disabled":y===0&&$n,"aria-hidden":y===0&&$n,className:Wn("prev-btn",{"touch-preview":Me}),onClick:Pl,type:"button",children:[(0,s.jsx)(w,{className:Wn("arrow-icon",{"touch-preview":Me})}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),Qe&&(0,s.jsx)(cH,{activeSlideIndex:y,blockNavigationStyle:ue,numberOfSlides:tt,onGoToCover:Tn,onSlideClick:T1,previewType:n,slideDisabledState:it}),(0,s.jsxs)("div",{className:Wn("next-btns"),children:[(0,s.jsxs)("button",{"aria-disabled":!Cs,"aria-hidden":!Cs,className:Wn("page-down-btn",{"touch-preview":Me}),onClick:Cs?L1:void 0,ref:m,tabIndex:Cs?void 0:-1,type:"button",children:[(0,s.jsx)(Z,{className:Wn("arrow-icon",{"touch-preview":Me})}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!E&&(0,s.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),Be&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":ot,"aria-hidden":!Mt,className:Wn("next-btn",{"touch-preview":Me}),onClick:ot?void 0:Kr,ref:p,tabIndex:Be?-1:void 0,type:"button",children:[(0,s.jsx)(Z,{className:Wn("arrow-icon",{"touch-preview":Me})}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",ot&&(0,s.jsx)("span",{children:"(disabled until content is completed)"}),Be&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":!zt,"aria-hidden":!zt,className:Wn("restart-btn",{"touch-preview":Me}),onClick:zt?rr:void 0,ref:f,tabIndex:Be?void 0:-1,type:"button",children:[(0,s.jsx)(B,{className:Wn("restart-icon",{"touch-preview":Me})}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,s.jsxs)(Sd,{onShouldRecognizeGesture:Dz,onSwipeDown:Gr,onSwipeUp:Rl,children:[(0,s.jsx)("main",{"aria-describedby":"step-counter",ref:d,tabIndex:"0",children:(0,s.jsx)(ls.F,{children:(0,s.jsx)(ls.eB,{mountOnEnter:!0,nodeRef:g,onExited:Kn,onExiting:ds,timeout:W,unmountOnExit:!0,children:Qt=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:"step-counter",ref:g,children:`Step ${y+1} of ${tt}`}),(0,s.jsx)(eH,{hasTransitioned:!x,onContinue:E1,prefersKeyboardNavigation:e,previewType:n,ref:l,slide:xe,transitionState:Qt})]})},y)})}),(0,s.jsx)("div",{className:zz})]})]})})})})})})})},xH=(0,h.forwardRef)(CH),B5=ae("blocks-lesson-restart-button"),yH=({className:t,onClick:e})=>{const n=B5.mix(t);return(0,s.jsx)("button",{className:n,onClick:e,type:"button",children:(0,s.jsx)(O1,{className:B5("icon")})})},bH=ae("lesson-one-page-scroll"),EH=({previewType:t,prefersKeyboardNavigation:e,lessonProgress:n})=>{const o=(0,h.useRef)(),{lessons:r,...a}=(0,Ie.DX)(),{lmsOptions:l={}}=a,d=(0,Ie.d_)(),c=(0,at.useLabelsMap)(),{match:u}=(0,Ne.zy)(),m=(0,Ba.W)(),p=r[0],f=p?.id,g=U0(),v=p?.items||[],C=n?.isComplete&&!Pe.BI,y=n?.isComplete&&Pe.BI,b=l?.disableCoverPage,x=(0,h.useCallback)(()=>b?o.current?.scrollTo({top:0,behavior:zs()?"instant":"smooth"}):m.push("/"),[m,b]);return(0,s.jsx)("div",{className:bH(),children:(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,s.jsx)(yl,{type:Ze.y4,children:(0,s.jsx)(Ja,{type:"blocks",children:(0,s.jsxs)(cd,{children:[(0,s.jsx)(qp,{}),(0,s.jsx)(qa,{children:(0,s.jsx)(Pr,{children:(0,s.jsxs)("div",{"data-lesson-id":p?.id,children:[(0,s.jsx)(Ip,{animateBlockEntrance:a.animateBlockEntrance,blocks:v,color:a.color,courseId:a.id,courseTitle:d,enableVideoPlaybackSpeed:a.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:c,lessonId:f,lessonProgress:n,loadMedia:!0,match:u,partnerContent:g,prefersKeyboardNavigation:e,previewType:t,publishedAt:a.publishedAt,tenantId:a.tenantId,type:a.type}),C&&(0,s.jsx)(yH,{onClick:x}),y&&(0,s.jsx)(r1,{lessonId:f})]})})})]})})})})})},H5=ae("microlearning-progress-summary"),LH=ae("page-wrap"),TH=({course:t,courseProgress:e,isStepped:n,lesson:o})=>{const r=(0,h.useRef)(),a=(0,h.useRef)(),[l,d]=(0,h.useState)(!1),c=H5("content",{stepped:n,mounted:l}).toString();return(0,P5.A)(()=>{const u=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:u}),d(!0)}),(0,s.jsxs)("div",{className:LH(),id:"page-wrap",ref:r,children:[(0,s.jsx)(o1,{className:H5("previous").toString(),lessonId:o?.id,ref:a}),(0,s.jsx)(Rp,{contentClassName:c,course:t,courseProgress:e})]})},jH=t=>{const{isProgressSummary:e,courseProgress:n,lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}=t,l=Xt(),d=(0,O.wA)(),u=(0,St.Vu)(l)?.id,m=l?.theme?.blockNavigationType===I.HC.STEPPED;return(0,Y0.A)(()=>{e||((0,we.no)(u),d((0,$m.B)(u)))}),e?(0,s.jsx)(TH,{course:l,courseProgress:n,isStepped:m}):m?(0,s.jsx)(xH,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}):(0,s.jsx)(EH,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a})};var IH=i(59288);const SH=960,v1=ae("transcript-panel");function NH(){const t=(0,O.wA)(),{transcript:e,isOpen:n}=J0(),o=(0,h.useId)(),r=ks(SH),[a,l]=(0,h.useState)(0),[d,c]=(0,h.useState)(!1),[u,m]=(0,h.useState)(!1),p=(0,h.useRef)(!1),f=(0,h.useRef)(null),g=(0,h.useRef)(null),{announcePolite:v,clearAnnouncements:C}=Ue(),y=(0,h.useRef)({transcript:e,changedAt:Date.now()}),b=(0,Ie.vU)(),x=(0,h.useRef)(null),L=(0,h.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),E=Z=>{t(o2({})),Z.stopPropagation(),Z.preventDefault()},S=(0,h.useCallback)(Z=>{const F=L.current.panelHeight,G=performance.now();m(!0);const ue=ce=>{const le=ce-G,Se=Math.min(le/300,1),Oe=1-Math.pow(1-Se,3),We=F+(Z-F)*Oe;l(We),L.current.panelHeight=We,Se<1?requestAnimationFrame(ue):(m(!1),c(!1),L.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(ue)},[c,m,l]),N=(0,h.useCallback)(Z=>{const{startTime:B,startY:F,startHeight:G}=L.current;if(!r||F===null)return;const ue=F-(Z?.clientY??Z?.touches?.[0]?.clientY??0),ce=G+ue;if(l(ce),L.current.panelHeight=ce,B!==null){const le=performance.now()-B,Se=ue/le;L.current.velocity=Se}},[r]),A=(0,h.useCallback)(Z=>{const{velocity:B}=L.current;if(!B)return;Object.assign(L.current,{startY:null,startHeight:null,startTime:null}),c(!1);const F=window.innerHeight*.66;let G;Math.abs(B)>.5?G=B>0?window.innerHeight:150:G=a>=F?window.innerHeight:150,S(G),Z instanceof MouseEvent&&(window.removeEventListener("mousemove",N),window.removeEventListener("mouseup",A))},[S,a,N]),k=(0,h.useCallback)(Z=>{!r||g.current.contains(Z.target)||f.current.contains(Z.target)||(Object.assign(L.current,{startY:Z?.clientY??Z?.touches?.[0]?.clientY??null,startHeight:x.current?.clientHeight??0,startTime:performance.now()}),c(!0),Z.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",N),window.addEventListener("mouseup",A)))},[N,A,r,c]);(0,h.useEffect)(()=>{let Z;const B=()=>{x?.current?.style&&(x.current.style.transition="none",x.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(ue=>{ue.style.transition="none"}))},F=()=>{clearTimeout(Z),Z=setTimeout(()=>{x?.current?.style&&(x.current.style.transition="",x.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(ue=>{ue.style.transition=""}))},200)};return window.addEventListener("resize",B),window.addEventListener("resize",F),()=>{window.removeEventListener("resize",B),window.removeEventListener("resize",F),clearTimeout(Z)}},[]),(0,h.useEffect)(()=>{!n&&p.current&&l(0),p.current=n},[n]),(0,h.useEffect)(()=>(n&&e!==y.current.transcript&&(v(e||b?.audioNoTranscriptAvailable),y.current={transcript:e,changedAt:Date.now()}),()=>{C()}),[v,C,n,b?.audioNoTranscriptAvailable,e]);const R={role:"button",tabIndex:0,onMouseDown:k,onTouchStart:k,onTouchEnd:A,onTouchMove:N},[W,D]=IH.useState(!1),w=W?y.current.transcript:e;return(0,s.jsx)(ls.B1,{classNames:"transcript-panel",in:n,nodeRef:x,onEnter:()=>D(!1),onEntered:()=>D(!1),onEntering:()=>D(!1),onExit:()=>D(!0),onExited:()=>D(!1),onExiting:()=>D(!0),timeout:300,unmountOnExit:!0,children:(0,s.jsxs)("section",{"aria-hidden":!n,"aria-labelledby":o,className:z()(v1({isOpen:n,isAnimatingMobileSwipe:u,isDragging:d})),ref:x,style:r&&n?{height:`${a/10}rem`,minHeight:a>0?"33vh":void 0}:{},tabIndex:-1,children:[(0,s.jsxs)("header",{...r?R:{},children:[(0,s.jsx)("h3",{id:o,ref:f,children:b?.audioTranscript}),(0,s.jsx)(po.ArcButton,{"aria-label":b?.audioHideTranscript,className:v1("close-button"),icon:(0,s.jsx)(yt,{name:"close"}),layout:"icon",onClick:E,ref:g,variant:"tertiary"})]}),(0,s.jsx)("section",{className:v1("transcript-text",{"not-available":!w}),children:w||b?.audioNoTranscriptAvailable})]})})}const kd=_l()(2,t=>t==="progress-summary"?At()(1/0):pE(t)),AH=vc()(nt()("type","section")),PH=({course:t,search:e})=>rs()(nn()("lessons",e.lessons),nn()("lessonsOnly",AH(e.lessons)))(t);class RH extends K().Component{static propTypes={children:Ee().node,course:Ee().object,courseProgress:Ee().object,labels:Fp.isRequired,lessons:Ee().array,location:Ee().object.isRequired,match:Ee().object.isRequired};static get defaultProps(){return{course:{},lessons:[]}}constructor(e){super(e);const{lessons:n,match:{params:o}}=e;this.state={activeSections:n.filter(r=>r.type==="section").map(r=>r.id),isProgressSummary:Pe.BI&&o.id==="progress-summary",isPreviewLesson:o.mode==="preview-lesson",lastScreen:null,menuDisabled:!1,selectedIndex:kd(o.id)(n)},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 n=kn()(mE(e.lessons,e.match.params.id),this.state.activeSections),o=Pe.BI&&e.match.params.id==="progress-summary";this.setState({activeSections:n,isProgressSummary:o})}}componentWillUnmount(){this.root.removeEventListener("resize",this.resizeRef)}getNavigateDirection(){const{match:{params:e}}=this.props,{selectedIndex:n}=this.state;return kd(e.id)(this.props.lessons)<n?"page-transition-back":"page-transition"}handleFocusNewPage=()=>{const{course:e}=this.props;e.type===Ze.y4||(e.theme.hideLessonHeaders?document.querySelector("main"):document.querySelector("h1"))?.focus({preventScroll:!0})};handleNavigate(e){const{lessons:n}=this.props,{isProgressSummary:o,selectedIndex:r}=this.state,a=kd(e)(n);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,n=kd(e.id)(this.props.lessons);this.setState({selectedIndex:n})}handleStorylineFullscreen(e){this.setState({menuDisabled:e,menuIsOpen:!e})}handleNavHover(e){this.setState({isRestrictedNavHovering:e})}getLessonProgress(){const{courseProgress:e,match:n}=this.props;return e?.lessons?.[n.params.id]||{}}isCurrentItem(e,n){return e.type==="DRAW_FROM_QUESTION_BANK"?e.id===n.id.split("-")[0]:e.id===n.id}handleExpiredQuiz(){const{getL10nRecursive:e,lesson:n,advanceQuizLessonToEnd:o,submitQuizAnswer:r}=this.props,a=n?.settings||{},{passToContinue:l}=a,d=Wt()(-1,"retryCount",a),c=this.getLessonProgress(),u=Object.values(c?.items)?.filter(v=>v.isComplete!==!0),m=Wt()(0,"retryAttempts",c),p=parseInt(d,10),f=parseInt(m,10),g=p===f;u.map(v=>{let C=n?.items?.find(b=>this.isCurrentItem(b,v));if(C.type==="DRAW_FROM_QUESTION_BANK"){const b=v.id.split("-")[1];C=C.questions.find(x=>x.id===b)}const y=e({duration:0,id:n.id,isCorrect:!1,isUnfinished:!0,item:C,itemProgress:v,retryAttempts:m,title:n.title});(0,we.bb)(y),r({finalRetryAttempt:g,isCorrect:!1,itemId:v.id,lessonId:n.id,passToContinue:l})}),o(n.id)}render(){const{course:e,courseProgress:n,didNavigate:o,isEntering:r,isExiting:a,labels:l,isMobileHeader:d,lessons:c,lesson:u,location:m,match:p,partnerContent:f,previewType:g,search:v,sessionPreferences:C,setQuizLessonTimeRemaining:y,themeId:b}=this.props,{isPreviewLesson:x,isProgressSummary:L,isRestrictedNavHovering:E}=this.state,S=PH({course:e,search:v}),N=e.type===Ze.y4,k=N&&e.theme.blockNavigationType===I.HC.STEPPED?"-slide":"",R=`lesson--entering${k}`,W=`lesson--exiting${k}`,D=z()("lesson",{[R]:r,[W]:a,"lesson--preview":x}),w=this.getLessonProgress(),Z={allowRestrictedTooltip:!E,course:v.active&&!Jt()(v.lessons)?S:e,courseProgress:n,didNavigate:o,handleNavigate:this.handleNavigate,handleStorylineFullscreen:this.handleStorylineFullscreen,isMobileHeader:d,isProgressSummary:L,labels:l,lessonProgress:w,match:p,navigateDirection:this.getNavigateDirection,onPageReady:this.handleFocusNewPage,onNavMouse:this.handleNavHover,onNavigateTransitionEnd:this.handleNavigateTransitionEnd,partnerContent:f,previewType:g,sessionPreferences:C,themeId:b},B=L?{courseProgress:n,lessons:c}:{},F=u?.settings?.timer;return(0,s.jsxs)(BO,{courseProgress:n,currentLessonId:n.currentLesson,handleExpiredQuiz:this.handleExpiredQuiz,isTimedQuiz:F,setQuizLessonTimeRemaining:y,timerDuration:u?.settings?.timerDuration,children:[(0,s.jsxs)("div",{className:"page-lesson-wrap",children:[!N&&(0,s.jsx)(D8,{}),(0,s.jsxs)("div",{className:"page-lesson",children:[(0,s.jsx)(NH,{}),(0,s.jsx)(xL,{mode:"readonly",children:(0,s.jsx)("div",{className:D,"data-lesson":!0,ref:G=>this.node=G,children:(0,s.jsx)("div",{className:"lesson__content",children:(0,s.jsx)("div",{className:"page-view page-view--visible",children:(0,s.jsx)(UB,{isPreviewLesson:x,children:N?(0,s.jsx)(jH,{courseProgress:n,isProgressSummary:L,lessonProgress:w,prefersKeyboardNavigation:C.prefersKeyboardNavigation,previewType:g}):(0,s.jsx)(gD,{isPreviewLesson:x,children:(0,s.jsx)(Qw,{...Z,...B},m.pathname)})})})})})})]})]}),(0,s.jsx)(Tc,{})]})}}function MH(){const t=Zt();return(e,n)=>{const o=ts()(["match","params","id"],n);return{lesson:t(o,e)}}}const kH={advanceQuizLessonToEnd:Ss.YC,submitQuizAnswer:Ss.kK,setQuizLessonTimeRemaining:Ss.hy},OH=Re()((0,O.Ng)(null,kH),(0,O.iE)(MH),Cf(480,"isMobileHeader","Mobile"),O2)(RH);var wH=i(59288);const DH=()=>{let t=window;for(;t.parent!=t;)t=t.parent;try{t.innerHeight}catch{return window}return t},BH=t=>class extends wH.Component{constructor(e){super(e),this.state={orientation:{},navigationHidden:{}},this.applySafariLandscapeHack=this.applySafariLandscapeHack.bind(this),this.root=DH()}componentDidMount(){on.isIphoneSafari&&(this.applySafariLandscapeHack(),this.root.addEventListener("resize",this.resizeRef=ml()(this.applySafariLandscapeHack,500)))}componentWillUnmount(){this.root.removeEventListener("resize",this.resizeRef)}applySafariLandscapeHack(){const e=this.root,n=window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape",r=(n==="landscape"?screen.width:screen.height)-e.innerHeight;(n!=this.state.orientation||r!=this.state.difference)&&(n==="landscape"&&r!==0&&setTimeout(()=>{e.document.body.scrollTop=0},0),this.setState({orientation:n,difference:r}))}render(){return(0,s.jsx)(t,{...this.props,applySafariLandscapeHack:this.state.orientation==="landscape"&&this.state.difference!==0,safariLandscapeHackOffset:this.state.difference})}},C1=t=>{window.parent.postMessage({type:"preview:lessonChange",data:t})},HH=BH(OH);class zH extends K().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 n=this.props.match.params.id;C1(n)}componentDidUpdate(e){const n=this.props.match.params.id,o=e.match.params.id;n!==o&&C1(n)}componentDidEnter(){this.setState({isEntering:!1})}componentWillEnter(e){this.setState({isEntering:!0},()=>{this.willEnterTimeout=setTimeout(e,I.WQ)})}componentWillExit(e){this.setState({isExiting:!0},()=>{this.willExitTimeout=setTimeout(e,I.WQ)}),C1(null)}componentWillUnmount(){clearTimeout(this.willEnterTimeout),clearTimeout(this.willExitTimeout),clearTimeout(this.navButtonTimeout)}render(){const{isEntering:e,isExiting:n}=this.state;return(0,s.jsx)(MM,{isLessonEntering:e,isLessonExiting:n,children:(0,s.jsx)(HH,{isEntering:e,isExiting:n,...this.props})})}}const x1=zH;var FH=i(59288);class UH extends FH.Component{render(){return(0,s.jsx)(Ne.rd,{to:`${this.props.to}`})}}const VH=t=>{const{location:e,course:n}=t,{path:o}=(0,Ne.W5)(),r=e.pathname.split("/")[1],{lmsOptions:a={}}=n,l=a?.disableCoverPage,d=n.lessonsOnly[0]?.id;return(0,s.jsx)(ls.F,{className:"transition-group",component:"div",children:(0,s.jsx)(F0,{children:(0,s.jsxs)(Um,{location:e,children:[(0,s.jsx)(Rr,{childProps:t,component:x1,exact:!0,path:"/lessons/:id"}),(0,s.jsx)(Rr,{childProps:t,component:x1,path:"/lessons/:id/:mode"}),l?(0,s.jsx)(UH,{to:`${o}lessons/${d}`}):(0,s.jsx)(Rr,{childProps:t,component:Wm,exact:!0,path:"/"}),(0,s.jsx)(Rr,{childProps:t,component:Wm,exact:!0,path:"/:mode"})]})},r)})},y1=ae("one-page-cover-info");function z5({htmlIdTitle:t}){const e=ga("title");return(0,s.jsxs)("div",{className:y1(),"data-change-path":e,children:[(0,s.jsx)(Jp,{className:y1("title").toString(),htmlId:t}),(0,s.jsx)(_p,{className:y1("authors").toString()})]})}z5.propTypes={htmlIdTitle:Ee().string.isRequired};const WH=Pt("OnePageCoverInfo",z5);function $H(t){const e=(0,S0.A)(({forwardedRef:o,...r})=>(0,s.jsx)(t,{...r,ref:o})),n=(0,h.forwardRef)((o,r)=>(0,s.jsx)(e,{...o,forwardedRef:r}));return n.displayName=`withRouterRef(${t.displayName||t.name})`,n}const Od=ae("one-page-cover"),KH=ae("cover");class GH extends h.Component{constructor(e){super(e),this.state={entering:!1,exiting:!1},this.refLink=(0,h.createRef)(),this.refMain=(0,h.createRef)()}componentDidMount(){Pm(),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 n=zs()?.01:I.WQ;this.willEnterTimeout=setTimeout(e,n)})}componentWillExit(e){this.setState({exiting:!0},()=>{const n=zs()?.01:I.WQ;this.willExitTimeout=setTimeout(e,n)})}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,os.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:n,exiting:o}=this.state;n||o||(e.key==="ArrowDown"||e.key==="ArrowRight")&&(document.removeEventListener("keyup",this.onKeyUp),this.transitionToLessonContent())};onWheel=e=>{const{entering:n,exiting:o}=this.state;Ad(this.props.previewType)||n||o||e.deltaY>O5&&(document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.transitionToLessonContent())};render(){const{props:{course:e},state:{entering:n,exiting:o}}=this,r=e?.coverPageType===I.BL.WHITE,a=e?.coverPageType===I.BL.IMAGE,l=e?.coverPageType===I.BL.ACCENT,d=e?.theme?.blockNavigationType===I.HC.STEPPED,c=e?.theme?.coverImageColor??I.df.DARK,u="title",m=d?"slide":"fade",p=`entering-${m}`,f=`exiting-${m}`,v=`overlay-${c?.toLowerCase()}`,C=Od("wrapper",{[p]:n,[f]:o,[v]:a,accent:l,image:a,white:r}).mix(KH("header-content"));return(0,s.jsxs)(Sd,{onSwipeUp:this.transitionToLessonContent,children:[(0,s.jsxs)("main",{className:C,ref:this.refMain,tabIndex:"-1",children:[(0,s.jsx)(WH,{htmlIdTitle:u}),d&&(0,s.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,s.jsx)("div",{className:Od("start-wrapper"),onClick:this.onClickStartArea,children:(0,s.jsx)(Mn,{"aria-label":"Start",className:Od("start-link"),ref:this.refLink,to:this.getLessonPath(),children:(0,s.jsx)(yt,{className:Od("start-icon"),name:"arrow-down"})})}),a&&(0,s.jsx)(s0,{})]}),(0,s.jsx)(Tc,{})]})}}function QH(t){const e=wt(t),n=(0,St.Vu)(e);return{course:e,lesson:n}}const F5=Re()($H,(0,O.Ng)(QH,null,null,{forwardRef:!0}))(GH);var ZH=i(59288);class U5 extends ZH.Component{render(){return(0,s.jsx)(Ne.rd,{to:`${this.props.to}`})}}const YH=t=>{const{location:e,course:n}=t,o=e.pathname.split("/")[1],a={history:(0,Ba.W)(),...t},{path:l}=(0,Ne.W5)(),{lmsOptions:d={}}=n,c=d?.disableCoverPage,u=n.lessonsOnly[0].id;return(0,s.jsx)(ls.F,{className:"transition-group",component:"div",children:(0,s.jsx)(F0,{children:(0,s.jsxs)(Um,{location:e,children:[(0,s.jsx)(Rr,{childProps:a,component:x1,exact:!0,path:"/lessons/:id"}),c?(0,s.jsx)(U5,{to:`${l}lessons/${u}`}):(0,s.jsx)(Rr,{component:F5,exact:!0,path:"/"}),c?(0,s.jsx)(U5,{to:`${l}lessons/${u}/`}):(0,s.jsx)(Rr,{component:F5,exact:!0,path:"/:mode"})]})},o)})};class _H extends K().Component{constructor(e){super(e),this.passwordRef=(0,h.createRef)(),this.state={failAttempt:!1,shouldShake:!1}}static propTypes={onSubmit:Ee().func.isRequired,failAttempt:Ee().bool.isRequired};componentDidMount(){this.dialog.addEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}UNSAFE_componentWillReceiveProps({failAttempt:e}){const{shouldShake:n}=this.state;this.setState({failAttempt:e&&n})}componentWillUnmount(){this.dialog.removeEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}handleRemoveAnimationEnd(){this.setState({failAttempt:!1,shouldShake:!1})}onSubmitPassword(e){e.preventDefault();const{onSubmit:n}=this.props;this.setState({shouldShake:!0},()=>{n(this.passwordRef.current)})}render(){const{isOnePage:e}=this.props,{failAttempt:n}=this.state,o=z()("brand--border","share-password-dialog",{"fail-password":n}),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,s.jsxs)("div",{className:o,ref:a=>{this.dialog=a},children:[(0,s.jsx)("h1",{className:"heading",children:"Enter Password"}),(0,s.jsx)("p",{className:"instructions",children:r}),(0,s.jsxs)("form",{onSubmit:this.onSubmitPassword.bind(this),children:[(0,s.jsx)("label",{className:"label",htmlFor:"share-password",children:"password"}),(0,s.jsx)("input",{className:"input",id:"share-password",ref:this.passwordRef,type:"password"}),(0,s.jsx)("div",{className:"dialog__toolbar",children:(0,s.jsx)("input",{className:"button brand--background",type:"submit",value:"View"})})]})]})}}const XH=t=>({isOnePage:ro(t)}),V5=(0,O.Ng)(XH)(_H),Al=ae("app-header"),JH=({children:t,className:e="",isAIAssistantEnabled:n=!1,localesDropdown:o=null,menuButton:r=null,snapshotDropdown:a=null,title:l})=>{const d=Al({v2:n}).mix(e),c=!!(a||o);return(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:d,dir:"ltr",id:"app-header",children:[r,(0,s.jsxs)("div",{className:Al("title-dropdowns"),children:[l&&(0,s.jsx)("div",{className:Al("title"),"data-testid":"AppHeaderTitle",children:(0,s.jsx)(yn,{value:l})}),c&&(0,s.jsxs)("div",{className:Al("dropdowns"),children:[a,o]})]}),(0,s.jsx)("div",{className:Al("btn-group"),"data-testid":"AppHeaderButtonGroup",children:t})]})})},ri=ae("app-header"),qH=({disabled:t,onClick:e})=>(0,s.jsx)("button",{className:ri("promo-btn"),disabled:t,onClick:e,type:"button",children:"New"}),W5=({children:t,disabled:e=!1,done:n=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:l=!1,el:d="button",href:c=void 0,external:u=!1,capitalize:m=!0,...p})=>{const f=(0,Ba.W)(),g=(0,h.useCallback)(async C=>{e||(o&&await o(C),c&&(u?window.location.href=c:f.push(c)))},[f,c,o,e,u]),v=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(yc,{disabled:e,el:c?"a":d,header:!n,headerDone:n,onClick:g,style:m?null:{textTransform:"none",fontWeight:600,fontSize:"1.4rem",letterSpacing:0},...p,children:t}),l&&(0,s.jsx)(qH,{disabled:e,onClick:g}),a]});return e&&r?(0,s.jsxs)(H3,{"data-testid":"AppHeaderButtonTooltipContainer",children:[v,(0,s.jsx)(z3,{className:"app-header__tooltip-button",side:"left",children:r})]}):v};W5.propTypes={children:Ee().node,disabled:Ee().bool,done:Ee().bool,el:Ee().string,href:Ee().string,onClick:Ee().func,tooltipText:Ee().string,dataBa:Ee().string};const NZ=()=>jsx("div",{className:ri("divider")}),AZ=({href:t,label:e,onClick:n,xhref:o,...r})=>{const a=useNavigate(),l=useCallback(async d=>{if(o||d.preventDefault(),n)return n();t&&a.push(t)},[t,o,a,n]);return jsx("div",{className:ri("menu-btn"),...r,children:jsx("a",{"aria-label":e,className:ri("menu-close"),href:o,onClick:l,children:jsx(ChevronLeft,{})})})},PZ=({onClick:t,label:e,...n})=>jsx("div",{className:ri("menu-btn"),children:jsx(Button,{ariaLabel:e,icon:"up-level-2",onClick:t,...n})}),RZ=({children:t,...e})=>jsx("div",{className:ri("owner-label"),...e,children:t}),Us=ae("curtain");let $5;const ez=({loadingText:t,showHeader:e,status:n,labelCurtainLoading:o="Your content is loading.",labelCurtainOffline:r="Your computer is offline.",labelCurtainOfflineReconnecting:a="Attempting to reconnect\u2026",labelCurtainSessionTimedOut:l="Your session has timed out.",labelCurtainSessionTimedOutRestart:d="Click refresh to restart your session.",labelCurtainSessionTimedOutRefresh:c="Refresh",labelCurtainSomethingWrong:u="Something went wrong.",labelCurtainSomethingWrongTryAgain:m="Click to refresh and try again.",labelCurtainSomethingWrongRefresh:p="Refresh"})=>{const[f,g]=(0,h.useState)(!1),v=()=>g(!0),C=nt()("status","error"),y=nt()("status","fatalError"),b=Mr()(C,nt()("reconnectFailed",!0));return(0,h.useEffect)(()=>($5=setTimeout(v,1e4),()=>{clearTimeout($5)}),[]),(0,h.useEffect)(()=>{if(n==="error"){const L=new Error("There was a socket connection error. The renderReconnect curtain was displayed");tp.y.logger.error(L.message,L)}},[n]),As()([[y,sz],[b,oz],[C,nz],[wo(),tz(t)]])({showHeader:e,status:n,reconnectFailed:f,labelCurtainLoading:o,labelCurtainOffline:r,labelCurtainOfflineReconnecting:a,labelCurtainSessionTimedOut:l,labelCurtainSessionTimedOutRestart:d,labelCurtainSessionTimedOutRefresh:c,labelCurtainSomethingWrong:u,labelCurtainSomethingWrongTryAgain:m,labelCurtainSomethingWrongRefresh:p})},K5=()=>window.location.reload(!0),tz=t=>({showHeader:e,labelCurtainLoading:n})=>(0,s.jsx)("div",{className:Us("container",{"show-header":e}),children:(0,s.jsxs)("div",{className:Us(),children:[(0,s.jsx)("div",{className:Us("spinner")}),(0,s.jsx)("div",{className:Us("text"),children:t||n})]})}),sz=({showHeader:t,labelCurtainSomethingWrong:e,labelCurtainSomethingWrongTryAgain:n,labelCurtainSomethingWrongRefresh:o})=>(0,s.jsx)("div",{className:Us("container",{"show-header":t}),children:(0,s.jsxs)("div",{className:Us(),children:[(0,s.jsx)("div",{className:Us("title"),children:e}),(0,s.jsx)("div",{className:Us("description"),children:n}),(0,s.jsx)(yc,{headerDone:!0,onClick:K5,children:o})]})}),nz=({showHeader:t,labelCurtainOffline:e,labelCurtainOfflineReconnecting:n})=>(0,s.jsx)("div",{className:Us("container",{"show-header":t}),children:(0,s.jsxs)("div",{className:Us(),children:[(0,s.jsx)("div",{className:Us("spinner",{reconnect:!0})}),(0,s.jsx)("div",{className:Us("title"),children:e}),(0,s.jsx)("div",{className:Us("description"),children:n})]})}),oz=({showHeader:t,labelCurtainSessionTimedOut:e,labelCurtainSessionTimedOutRestart:n,labelCurtainSessionTimedOutRefresh:o})=>(0,s.jsx)("div",{className:Us("container",{"show-header":t}),children:(0,s.jsxs)("div",{className:Us(),children:[(0,s.jsx)("div",{className:Us("title"),children:e}),(0,s.jsx)("div",{className:Us("description"),children:n}),(0,s.jsx)(yc,{headerDone:!0,onClick:K5,children:o})]})}),G5=(0,h.memo)(ez);var rz=i(61170);function az({children:t,locale:e,...n}){const o=(0,Ne.zy)(),r=(0,xt.D_)(),a=(0,h.useMemo)(()=>{const l=e===r?"":e,d=new URLSearchParams(o.search);return d.set("locale",l),{...o,search:d.toString()}},[r,e,o]);return(0,s.jsx)(Mn,{...n,to:a,children:t})}const bo=ae("locales-dropdown"),iz=({backToStackCourseId:t,currentLocale:e,defaultLocale:n,locales:o,message:r,onChange:a,optionType:l,showMessageIndicator:d})=>{const c=(0,h.useRef)(null),u=(0,h.useRef)(null),[m,p]=(0,h.useState)(!1),[f,g]=(0,h.useState)(!1),v=(0,h.useMemo)(()=>o.filter(x=>x!==n),[n,o]);(0,h.useLayoutEffect)(()=>{m&&f&&(c.current?.querySelector(`[data-locale="${e}"]`)?.focus(),g(!1))},[m,f,e]),(0,h.useEffect)(()=>{const x=L=>{rn(L)&&(u.current?.focus(),p(!1)),ql(L)&&setTimeout(()=>{c.current.contains(document.activeElement)||p(!1)},0)};return m&&document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[m]);const C=(0,h.useCallback)(x=>{!m&&document.activeElement===x.currentTarget&&g(!0),p(!m)},[m]),y=(0,h.useCallback)(x=>{m&&!u.current?.contains(x?.target)&&p(!1)},[m]);(0,rz.A)(c,y),(0,h.useEffect)(()=>{const x=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&y()},0);return window.addEventListener("blur",x),()=>window.removeEventListener("blur",x)},[y]);const b=(0,h.useCallback)(x=>{document.activeElement===x.currentTarget&&u.current?.focus(),p(!1),a?.(x.currentTarget.getAttribute("data-locale"))},[a]);return(0,s.jsxs)("div",{className:bo({isOpen:m}),children:[(0,s.jsx)("div",{className:bo("trigger-wrap"),children:(0,s.jsxs)("button",{className:bo("trigger"),onClick:C,ref:u,type:"button",children:[d&&(0,s.jsx)("div",{className:bo("message-indicator")}),(0,s.jsx)(yt,{name:"globe"}),Lc(e),(0,s.jsx)(yt,{name:"chevron-down"})]})}),(0,s.jsxs)("div",{className:bo("contents"),ref:c,children:[r,(0,s.jsx)("div",{className:bo("grouping-header"),children:"Source"}),(0,s.jsx)(Q5,{checked:n===e,locale:n,onClick:b,type:l}),(0,s.jsx)("div",{className:bo("grouping-header"),children:"Translations"}),v.map(x=>(0,s.jsx)(Q5,{checked:x===e,locale:x,onClick:b,type:l},x)),t&&(0,s.jsx)("a",{className:bo("stack-button"),href:`/manage/locales/${t}`,children:"Back to Stack"})]})]})},Q5=({checked:t,locale:e,onClick:n,type:o})=>o==="link"?(0,s.jsx)(az,{className:bo("option",{checked:t}),"data-locale":e,locale:e,onClick:n,children:Lc(e)},e):(0,s.jsx)("button",{className:bo("option",{checked:t}),"data-locale":e,onClick:n,type:"button",children:Lc(e)},e),lz=({hideBackToStack:t,...e})=>{const n=(0,Ie.DX)(),{currentLocale:o}=(0,It.nY)(),r=(0,xt.jc)(),a=(0,xt.D_)(),l=t?void 0:n?.id,d=(0,h.useMemo)(()=>r.map(({locale:c})=>c),[r]);return(0,s.jsx)(iz,{backToStackCourseId:l,currentLocale:o,defaultLocale:a,locales:d,optionType:"link",...e})},Z5=window.location.origin,cz=1e3,dz="course:ready",Y5="localizedSharePreview:ready",uz="preview:selectLocale",b1="localizedSharePreview:toggleCurtain",_5="localizedSharePreview:togglePreview",ai=ae("localized-share-preview"),ii=!!window.frameElement,X5=t=>(0,us.HX)(t)&&(0,we.GS)(),hz=t=>X5(t)&&!ii,mz=(t,e)=>window.parent?.postMessage({type:t,data:e});let J5=null;const pz=({children:t})=>{const e=(0,O.wA)(),n=(0,Ba.W)(),o=(0,Ne.zy)(),{currentLocale:r,setCurrentLocale:a}=(0,It.nY)(),l=(0,xt.D_)(),d=Nn(),{hasPassword:c}=Xt()??{},u=!!c||(0,we.og)(),m=(0,h.useRef)(null),[p,f]=(0,h.useState)(!1),[g,v]=(0,h.useState)(!1),[C,y]=(0,h.useState)(!u),b=(0,h.useMemo)(()=>`${Z5}/share/${window.shareId}#/?locale=${r}`,[]),[x,L]=(0,h.useState)(null),[E,S]=(0,h.useState)(r),[N,A]=(0,h.useState)(!1),[k,R]=(0,h.useState)(!ii),W=(w,Z)=>m.current?.contentWindow.postMessage({type:w,data:Z});(0,h.useEffect)(()=>{ii||W(uz,r)},[r]),(0,h.useEffect)(()=>{ii&&(mz(Y5),setTimeout(()=>A(!0),0))},[]),(0,h.useEffect)(()=>{const w=Z=>{if(Z.origin!==Z5)return;const F=Z.data?.type,G=Z.data?.data;if(ii)switch(F){case b1:{R(G);break}case _5:{G?(S(r),L(o),e((0,V0.Wp)(!0)),a(l),n.replace("/")):(e((0,V0.Wp)(!1)),a(E),n.replace(x)),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(F){case dz:{R(!1);break}case Y5:{y(!0);break}}};return window.addEventListener("message",w),()=>{window.removeEventListener("message",w)}},[l,e,n,r,o,E,x,a]);const D=(0,h.useCallback)(()=>{const w=!p;clearTimeout(J5),v(!0),W(b1,!0),J5=setTimeout(()=>{v(!1),W(b1,!1),f(w)},cz),setTimeout(()=>{W(_5,w)},0)},[p]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ai("curtain",{hide:!k}),children:(0,s.jsx)(G5,{})}),ii?N&&t:(0,s.jsxs)("div",{className:ai(),children:[C&&(0,s.jsx)(JH,{className:ai("header"),localesDropdown:!p&&!g&&(0,s.jsx)(lz,{hideBackToStack:!0}),title:d,children:(0,s.jsx)(W5,{capitalize:!1,className:ai("preview-button"),disabled:g,done:!0,onClick:D,children:p?"Close Learner Preview":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(yt,{className:ai("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,s.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:ai("iframe"),ref:m,src:b})]})]})},fz=(0,h.lazy)(()=>i.e("_b106").then(i.t.bind(i,63744,23))),gz=({children:t})=>{const e=(0,xt.jc)();return(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(fz,{locales:e,LocaleSelector:Tc,SharePasswordDialog:V5,children:t})})},vz={get isInstantLink(){return!!window.InstantLinks?.publicId}},q5=Object.assign(document.createElement("div"),{id:"portal"});function e6(t){(t??document.body).appendChild(q5),q5.style.display=t?"":"none"}e6();const Cz=(t,e)=>!(t==="firstLesson"&&e.includes("/lessons/"))&&!(t==="cover"&&(e==="/"||e==="/preview")),xz=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",sn.FOCUS,sn.TOGGLE,sn.CLEAR,sn.TRANSLATION_HOVERED,sn.TRANSLATION_HOVER_CLEAR].includes(t),yz=t=>t===window.location.origin||t==="articulate.com"||t.endsWith(".articulate.com"),bz=({course:t,fonts:e,l10n:n})=>()=>((0,O.JD)((0,Oi.V7)({course:t,fonts:e,l10n:n})),Ta().Resolved()),Ez=()=>(window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin),Ta().Resolved()),Lz=({course:t,fonts:e,l10n:n})=>Ta()((o,r)=>{(0,O7.U)(e,r)}).chain(bz({course:t,fonts:e,l10n:n})).chain(Ez),Tz=t=>X5(t)?pz:vz.isInstantLink?gz:h.Fragment;class t6 extends h.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=df({locale:e.currentLocale})}UNSAFE_componentWillMount(){const{l10n:e}=this.props;on.isIe11&&document.documentElement.classList.add("ie11"),on.isSafari9&&document.documentElement.classList.add("safari9"),on.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),on.isSafari&&this.props.match.params.mode==="iframe"&&a7().enable(),window.addEventListener("message",this.handleMessage),window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:sn.STATUS,data:!!window.targetMode},"*"),(0,we.xr)()&&window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e?.defaultLocale,locales:e?.locales?.map(({locale:n})=>n)}}),U7(),this.updateRTL()}componentDidMount(){const{currentLocale:e,languageCode:n}=this.props;document.documentElement.lang=e??n,this.removeRouteListener=this.props.history.listen(()=>{this.setState({didNavigate:!0})}),(0,bt.on)("favoriteAdded",this.onFavoriteAdded),(0,bt.on)("favoriteRemoved",this.onFavoriteRemoved),document.addEventListener("click",()=>{window.parent.postMessage("coursePreviewIframeClicked","*")})}updateConnectionStatus(e){(0,O.JD)((0,Tm.zq)(e))}componentDidUpdate(){const{currentLocale:e,languageCode:n}=this.props;document.documentElement.lang=e??n,this.updateRTL(),this.state.didNavigate&&setTimeout(()=>{this.setState({didNavigate:!1})},0)}componentWillUnmount(){this.removeRouteListener(),window.removeEventListener("message",this.handleMessage),(0,bt.AU)("favoriteAdded",this.onFavoriteAdded),(0,bt.AU)("favoriteRemoved",this.onFavoriteRemoved)}isRTLEnabled(){const{course:e,l10n:n,currentLocale:o}=this.props;return(0,k7.V)({course:e,locales:n?.locales,locale:o})}updateRTL(){this.isRTLEnabled()?document.documentElement.dir="rtl":document.documentElement.dir=""}handleMessage(e){const{data:n,origin:o}=e;if(!yz(o))return;const{history:r,location:{pathname:a},setCurrentLocale:l}=this.props,{course:{lessonsOnly:d}}=this.props;(0,s7.A)(n).forEach(({type:c,data:u})=>{if(xz(c)){if(c===sn.TOGGLE&&window.targetMode(u,m=>{window.parent.postMessage({type:sn.HOVERED,data:m},"*")}).then(m=>{window.parent.postMessage({type:sn.SELECTED,data:m},"*")}).catch(()=>{window.parent.postMessage({type:sn.SELECTED,data:[]},"*")}),c==="preview:update"&&this.setState({previewType:u}),c==="preview:themeUpdate"&&this.handleThemePreviewUpdate(u),c==="preview:navigate"){let{type:m,lessonId:p,itemId:f,path:g,replace:v}=u;const C=v?r.replace.bind(r):r.push.bind(r);if(Cz(m,a)){if(Array.isArray(g)&&({type:m,lessonId:p,itemId:f}=(0,B1.Ce)(g)),m==="firstLesson")C(`/lessons/${d[0].id}`);else if(m==="cover"||m==="course")C("/");else if(m==="lesson"&&d.find(({id:b})=>b===p)!=null){const b=()=>{window.dispatchEvent(new CustomEvent(ss,{detail:{lessonId:p,itemId:f,path:g}}))};`/lessons/${p}`!==a?(C(`/lessons/${p}`),setTimeout(b,1500)):b()}}}if(c===sn.CLEAR&&window.dispatchEvent(new CustomEvent(b0)),c==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(rm)),c==="preview:navClose"&&window.dispatchEvent(new CustomEvent(am)),c==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(dc)),c==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(uc)),c==="preview:scrollto"&&typeof u.target=="string"){const m=document.querySelector(u.target);m&&(0,i7.A)(m,{behavior:"smooth",block:"start"})}c==="preview:replace"&&(0,O.JD)((0,Oi.HC)(u)),c==="preview:changeset"&&(0,O.JD)((0,Oi.TJ)(u)),c==="preview:selectLocale"&&l(u,"replace"),c===sn.FOCUS&&mf(u.path),c===sn.TRANSLATION_HOVERED&&hf(u.path),c===sn.TRANSLATION_HOVER_CLEAR&&cf()}})}handleThemePreviewUpdate({course:e,l10n:n,fonts:o,theme:r}){this.cancelThemePreviewUpdate();const{course:a}=this.props,l=nn()("theme",r,e),d=(0,l7.MT)(a,l);this.cancelThemePreviewUpdate=Lz({course:d,fonts:o,l10n:n}).fork(console.warn,Ds.lQ)}onSharePasswordSubmit(e){return(0,we.m5)(e.value).then(({isValid:n})=>{n?this.setState({isInvalidPassword:!1}):(e.value="",this.setState({failAttempt:!0,isInvalidPassword:!0}))}).catch(n=>console.error("Verify password error",n))}onFavoriteAdded(){(0,O.JD)((0,Lm.nF)())}onFavoriteRemoved(){(0,O.JD)((0,Lm.pp)())}renderAppLayout(){if(!this.props.course)return null;const{easterEggClassNames:e,course:n,course:{bodyTypeface:o,color:r,headingTypeface:a,themeId:l,theme:d,type:c,uiTypeface:u},courseProgress:m,currentLocale:p,l10n:f,labels:g,lessons:v,location:C,partnerContent:y,search:b,sessionPreferences:x}=this.props,{didNavigate:L,previewType:E}=this.state,S=f?.localeLabelSets?.[p]?.labels||g,N={course:n,courseProgress:m,didNavigate:L,labels:S,lessons:v,location:C,partnerContent:y,previewType:E,search:b,sessionPreferences:x,themeId:l},A=d?.accentContrast,k=c===Ze.y4,R={accentContrast:A,bodyTypeface:o,color:r,headingTypeface:a,isLegacyCourse:n?.isLegacyCourse,uiTypeface:u},W=z()("theme",e,l,{"one-page":k}),D=Tz(n);return(0,s.jsx)(Ie.rv,{course:n,courseProgress:m,l10n:f,labels:S,partnerContent:y,search:b,children:(0,s.jsx)(x8,{themeId:l,children:(0,s.jsx)(Em,{courseColor:r,children:(0,s.jsx)(qf,{i18n:(0,we.Rc)(),children:(0,s.jsxs)("div",{className:W,id:"innerApp",ref:e6,children:[(0,s.jsx)(q7,{...R}),(0,s.jsx)(Om,{env:"runtime",children:(0,s.jsx)(D,{children:(0,s.jsxs)(Pr,{children:[k?(0,s.jsx)(YH,{...N}):(0,s.jsx)(VH,{...N}),(0,s.jsx)(Eb,{})]})})})]})})})})})}showPasswordDialog(){const{isInvalidPassword:e}=this.state,{course:n}=this.props,{hasPassword:o}=n;return e&&(0,we.GS)()&&!hz(n)&&(!!o||(0,we.og)())}render(){const{failAttempt:e}=this.state,{onSharePasswordSubmit:n}=this;return this.showPasswordDialog()?(0,s.jsx)(V5,{failAttempt:e,onSubmit:n}):this.renderAppLayout()}}t6.prototype.cancelThemePreviewUpdate=Function.prototype;const jz=Re()(K7,S0.A,It.wZ)(t6),Iz=()=>(0,s.jsx)(Pr,{title:el(),children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"not-found",children:(0,s.jsxs)("div",{className:"not-found__copy",children:[(0,s.jsx)("h1",{className:"not-found__copy--heading",tabIndex:-1,children:"Hmm..."}),(0,s.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});var Sz=i(94983);function s6(){return(0,O.d4)(t=>{const{course:e,courseLabels:n,courseProgress:o,fonts:r,l10n:a,partnerContent:l,search:d,sessionPreferences:c,status:u}=t;return{course:e,courseProgress:o,fonts:r,l10n:a,labels:n.labels,languageCode:e?.locale??n.iso639Code,lessons:e&&e.lessons,partnerContent:l,search:d,sessionPreferences:c,status:u}})}function Nz(){const t=(0,O.wA)();(0,h.useEffect)(()=>{t((0,Oi.EL)()),t((0,M0.pb)())},[t])}function Az(){const t=(0,O.wA)(),e=(0,h.useCallback)(()=>{t((0,Tm.$2)(!0))},[t]),n=s6(),{courseLoaded:o,coverLoaded:r}=n.status;if(o&&!r){const{course:{coverImage:a={}}}=n,{media:l={}}=a,{image:d={}}=l,{key:c,src:u}=d;if(c||u){const m=c?(0,Yt.ME)(d):u,p=setTimeout(e,5e3),f=new Image;f.src=m,f.onload=()=>{clearTimeout(p),e()}}else e()}}function Pz(){Nz(),Az();const t=s6(),e=(0,O.wA)(),{fonts:n,labels:o,status:{courseLoaded:r,coverLoaded:a,fontsLoaded:l,notFound:d,partnerContentLoaded:c}}=t,u=(0,_t.A)(r),m=r&&l&&a&&c,p=!m;return(0,h.useEffect)(()=>{!u&&r&&!l&&(n??[]).length>0&&e((0,Sz.r)(n))},[e,u,r,l,n]),(0,h.useEffect)(()=>{m&&window.parent!==window&&window.parent.postMessage({type:"course:ready"},window.location.origin)},[m]),d?(0,s.jsx)(Iz,{}):p?(0,s.jsx)(G5,{labelCurtainLoading:o?.curtainLoading,labelCurtainOffline:o?.curtainOffline,labelCurtainOfflineReconnecting:o?.curtainOfflineReconnecting,labelCurtainSessionTimedOut:o?.curtainSessionTimedOut,labelCurtainSessionTimedOutRefresh:o?.curtainSessionTimedOutRefresh,labelCurtainSessionTimedOutRestart:o?.curtainSessionTimedOutRestart,labelCurtainSomethingWrong:o?.curtainSomethingWrong,labelCurtainSomethingWrongRefresh:o?.curtainSomethingWrongRefresh,labelCurtainSomethingWrongTryAgain:o?.curtainSomethingWrongTryAgain,status}):(0,s.jsx)(jz,{...t})}const Rz=Pz,wd=document.createElement("style");wd.innerHTML=`
  @layer rise-reset, art-theme, art-utils;

  :root {
    --arc-font-size-base: 1;
  }
`;function Mz(){(0,h.useEffect)(()=>(wd.parentElement!==document.head&&document.head.prepend(wd),()=>{wd.remove()}),[])}const n6=(0,he.TM)();(0,we.IV)(n6);const kz=document.getElementById("app"),Oz=(0,fe.createRoot)(kz),wz=({children:t})=>(Mz(),(0,s.jsx)(s.Fragment,{children:t}));Oz.render((0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(O.Kq,{store:O.M_,children:(0,s.jsx)(wz,{children:(0,s.jsx)(Q8,{children:(0,s.jsx)(rt,{children:(0,s.jsx)(t7,{children:(0,s.jsx)(Ne.Ix,{history:n6,children:(0,s.jsx)(It.fH,{children:(0,s.jsx)(Ne.qh,{component:Rz,path:"/"})})})})})})})})}))},63006:(_e,ge,i)=>{"use strict";i.d(ge,{A:()=>U,G:()=>q});var P=i(36523);const H="rise/features/SET_FEATURE_FLAGS",U=(0,P.handle)({},{[H]:(V,J)=>J}),q=(0,P.action)(H)},94983:(_e,ge,i)=>{"use strict";i.d(ge,{A:()=>ee,r:()=>Y});var P=i(19752),H=i(36523),U=i(4663),q=i(94379);const V=(ie,{fonts:s})=>[...ie,...s],J=(ie,{fonts:s})=>s,ee=(0,H.handle)([],{[P.LK]:V,[P.LM]:J}),Y=ie=>s=>{(0,U.U)(ie,()=>{s((0,q.m7)(!0))})}},13662:(_e,ge,i)=>{"use strict";i.d(ge,{Ay:()=>s,zE:()=>Ce});var P=i(312),H=i.n(P),U=i(4322),q=i.n(U),V=i(36523);const J={isPreview:window.viewType==="preview",externalLinksModalVisible:!1},Y=H()("rise/globals/")("SHOW_EXTERNAL_LINKS_MODAL"),ie=(be,ye)=>q()(be,{externalLinksModalVisible:ye}),s=(0,V.handle)(J,{[Y]:ie}),Ce=(0,V.action)(Y)},16829:(_e,ge,i)=>{"use strict";i.d(ge,{A:()=>vt,R:()=>Te});var P=i(47474),H=i.n(P),U=i(10789),q=i.n(U),V=i(46687),J=i.n(V),ee=i(27905),Y=i.n(ee),ie=i(23444),s=i.n(ie),Ce=i(312),be=i.n(Ce),ye=i(67711),te=i.n(ye),_=i(72970),de=i.n(_),$=i(80721),re=i.n($),se=i(78324),M=i.n(se),Q=i(84929),X=i.n(Q),me=i(86484),Le=i.n(me),ne=i(36523),je=i(63064),pe=i.n(je),h=i(68971),K=i.n(h);const Ne=pe()(2,rt=>K()((0,ne.error)(rt),(0,ne.action)(rt)));var O=i(61140);const he=be()("rise/learningPathUpNext/"),ve=he("FETCH_LP_UP_NEXT"),Ae=he("FETCH_LP_UP_NEXT_PENDING"),He={nextCourse:{},learningPathComplete:!1,isPending:!1,isSuccess:!1},Je=s()(de()("id")),ft=te()(J()({nextCourse:Le()(Je,q()({})),learningPathComplete:Je,lpHasFailedQuiz:X()("lpHasFailedQuiz"),isPending:!1,isSuccess:!0})),mt=Y()("isPending",!0),vt=(0,ne.handle)(He,{[ve]:(0,ne.onSuccess)(ft),[Ae]:mt}),Te=re()([(0,ne.action)(Ae),M()(H().fromPromise(O.RR),Ne(ve))])},34984:(_e,ge,i)=>{"use strict";i.d(ge,{O:()=>q});var P=i(312),H=i.n(P);const q=H()("rise/partnerContent/")("SET_ALL_PARTNER_CONTENT")},58931:(_e,ge,i)=>{"use strict";i.d(ge,{_q:()=>V,nF:()=>ee,pp:()=>Y,ut:()=>J});var P=i(312),H=i.n(P),U=i(36523);const q=H()("rise/rise-com/"),V=q("FAVORITE_ADDED"),J=q("FAVORITE_REMOVED"),ee=()=>(0,U.action)(V,void 0),Y=()=>(0,U.action)(J,void 0)},88523:(_e,ge,i)=>{"use strict";i.d(ge,{Ay:()=>_,pb:()=>de,xi:()=>$});var P=i(312),H=i.n(P),U=i(10789),q=i.n(U),V=i(4322),J=i.n(V),ee=i(36523);const Y=H()("rise/sessionPreferences/"),ie=Y("LOAD_SESSION_PREFERENCES"),s=Y("SET_PREFERS_KEYBOARD_NAVIGATION"),Ce=Y("SET_STARTING_COURSE_LESSON_SELECTED"),be={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},ye=(re,se)=>J()(re,{prefersKeyboardNavigation:se}),te=(re,se)=>J()(re,{startedCourseWithLessonSelected:se}),_=(0,ee.handle)(be,{[ie]:J(),[s]:ye,[Ce]:te}),de=q()((0,ee.action)(ie,null)),$=(0,ee.action)(s)},29249:(_e,ge,i)=>{"use strict";i.d(ge,{Ay:()=>s,ty:()=>be,zP:()=>Ce});var P=i(27905),H=i.n(P),U=i(67711),q=i.n(U),V=i(19509),J=i(36523);const ee="rise/slidesUI/SET_SLIDE_DIRECTION",Y="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",ie={slideDirection:V.f.UP,exitingSlideOffset:0},s=(0,J.handle)(ie,{[ee]:q()(H()("slideDirection")),[Y]:q()(H()("exitingSlideOffset"))}),Ce=(0,J.action)(ee),be=(0,J.action)(Y)},94379:(_e,ge,i)=>{"use strict";i.d(ge,{$2:()=>te,$d:()=>de,Ay:()=>s,LW:()=>be,cX:()=>_,m7:()=>Ce,zq:()=>ye});var P=i(312),H=i.n(P),U=i(4322),q=i.n(U),V=i(36523);const ee=H()("rise/status/")("SET_LOADED"),Y=($,re)=>q()($,re),ie={connection:"connected",courseLoaded:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},s=(0,V.handle)(ie,{[ee]:Y}),Ce=($=!1)=>(0,V.action)(ee,{fontsLoaded:$}),be=($=!1)=>(0,V.action)(ee,{courseLoaded:$}),ye=($="connected")=>(0,V.action)(ee,{connection:$}),te=($=!1)=>(0,V.action)(ee,{coverLoaded:$}),_=($=!1)=>(0,V.action)(ee,{notFound:$}),de=($=!1)=>(0,V.action)(ee,{partnerContentLoaded:$})},5683:(_e,ge,i)=>{"use strict";i.d(ge,{A:()=>be,s:()=>ye});var P=i(36523),H=i(27905),U=i.n(H),q=i(312),V=i.n(q),J=i(67711),ee=i.n(J);const Y=V()("rise/ui/"),ie=Y("SET_LESSON_NAV_NEXT_BUTTON_UI"),s=Y("SET_SKIP_TO_NAV_BUTTON_UI"),Ce={lessonNavNextButton:null,skipToNavButton:null},be=(0,P.handle)(Ce,{[ie]:ee()(U()("lessonNavNextButton")),[s]:ee()(U()("skipToNavButton"))}),ye=(0,P.action)(s)},28239:(_e,ge,i)=>{"use strict";i.r(ge),i.d(ge,{selectLabelsMap:()=>U,useLabelsMap:()=>q});var P=i(18391),H=i(38286);function U(V,J){return J?.l10n?.localeLabelSets?.[V]?.labels||J?.courseLabels?.labels}function q(){const{currentLocale:V}=(0,H.nY)();return(0,P.d4)(J=>U(V,J))}},16832:(_e,ge,i)=>{"use strict";i.d(ge,{Ay:()=>_,BW:()=>se,En:()=>P,Ig:()=>X,JG:()=>me,Ko:()=>H,M$:()=>te,Pz:()=>Q,S$:()=>Le,WY:()=>J,Wj:()=>$,Ze:()=>ee,ce:()=>ye,eZ:()=>U,fd:()=>re,ft:()=>V,jw:()=>ie,l7:()=>q,mj:()=>s,p3:()=>Ce,pd:()=>be,qX:()=>M,sZ:()=>Y,w5:()=>de});const P="a",H="n",U="t",q="c",V="ps",J="p",ee="v",Y="r",ie="s",s="rr",Ce="pq",be="qd",ye="ql",te="qt",_="vp",de="k",$="v",re="i",se="pv",M="m",Q="s",X="x",me="sa",Le="t"},19509:(_e,ge,i)=>{"use strict";i.d(ge,{f:()=>P});const P={UP:"up",DOWN:"down"}},61140:(_e,ge,i)=>{"use strict";i.d(ge,{AU:()=>V,G7:()=>Y,NS:()=>U,RR:()=>ie,gj:()=>ee,kT:()=>J,on:()=>q});const{RiseDotCom:P}=window,H=s=>P&&P[s],U=()=>{H("exit")&&P.exit()},q=(...s)=>{H("on")&&P.on(...s)},V=(...s)=>{H("off")&&P.off(...s)},J=(...s)=>{H("goToLearn")&&P.goToLearn(...s)},ee=(...s)=>{if(H("downloadCertificate"))return P.downloadCertificate(...s)},Y=(...s)=>{if(H("downloadCertificateCancel"))return P.downloadCertificateCancel(...s)},ie=(...s)=>{if(H("fetchLpUpNext"))return P.fetchLpUpNext(...s)}},88747:(_e,ge,i)=>{"use strict";i.d(ge,{MJ:()=>ns,MT:()=>mn,uK:()=>Ws});var P=i(61556),H=i(77541),U=i(10789),q=i.n(U),V=i(27905),J=i.n(V),ee=i(46687),Y=i.n(ee),ie=i(34198),s=i.n(ie),Ce=i(36104),be=i.n(Ce),ye=i(75800),te=i.n(ye),_=i(40966),de=i.n(_),$=i(91794),re=i.n($),se=i(56401),M=i.n(se),Q=i(4322),X=i.n(Q),me=i(41260),Le=i.n(me),ne=i(53970),je=i.n(ne),pe=i(7827),h=i.n(pe),K=i(74674),fe=i.n(K),Ne=i(37953),O=i.n(Ne),he=i(84929),ve=i.n(he),Ae=i(34552),He=i.n(Ae),Je=i(84136),ft=i.n(Je),mt=i(69872),vt=i.n(mt),Te=i(37600),rt=i.n(Te),Ue=i(97886),$e=i.n(Ue),we=i(5181);const Ot=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],Ke=be()(de(),h()(["color"]),h()(["theme","colorAccent"])),Xe=({theme:{navigationRestricted:Vt}})=>Vt?we.b$.RESTRICTED:we.b$.FREE,gt=({theme:{sidebarStartsOpen:Vt}})=>(M()(Vt)?!0:Vt)?we.RE.OPEN:we.RE.CLOSED,Ut=be()(de(),h()(["showLessonCount"]),h()(["theme","showLessonCount"])),z=({sidebarMode:Vt})=>Vt!==we.RE.HIDDEN,at=({navigationMode:Vt})=>Vt===we.b$.RESTRICTED,bt=({sidebarMode:Vt})=>Vt===we.RE.OPEN,Pe=re()(h()(["coverImage","media","image"]),q()(we.kY.LIGHT_IMAGE),q()(we.kY.LIGHT)),xs=re()(h()(["coverImage","media","image"]),q()(we.BL.LEFT_OVERLAY),q()(we.BL.LEFT)),Vs={allowSearch:!0,animateBlockEntrance:!0,compactShowLessonCount:!0,enableVideoPlaybackSpeed:!0,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,sidebarStartsOpen:!0},De=Vt=>He()(Vs[Vt],Vt),Gs={blockCorners:we.rE.ROUNDED,blockPaddingBottom:we.S$,blockPaddingTop:we.S$,buttonInlineStyle:we.qu.ROUNDED,buttonNavigationStyle:we.jq.FULL,buttonScheme:we.LE.LIGHT,colorAccent:we.Zs,coverImageAlpha:we.HU,coverPageType:we.BL.SPLIT_LEFT_IMAGE,lessonHeaderImageColor:we.df.DARK,lessonHeaderColor:null,lessonHeaderImage:null,lessonHeaderImageAlpha:we._g,lessonHeaderSize:we.OX.MEDIUM,lessonHeaderStyle:we.xj.LIGHT,navigationStyle:we.kY.LIGHT,navigationType:we.br.SIDEBAR,progressIndicatorStyle:we.Y2.THEME_DEFAULT,themeId:we.V7.RISE_CLASSIC},Ws=vt()(X(),s()(J()("isLegacyCourse",!0),je()("theme"),Le()(Gs),Y()({allowSearch:De("allowSearch"),animateBlockEntrance:De("animateBlockEntrance"),bodyTypefaceId:ve()("bodyTypefaceId"),colorAccent:s()(rt(),He()("","color")),compactShowLessonCount:De("compactShowLessonCount"),coverImageDefault:null,coverPageType:xs,enableVideoPlaybackSpeed:De("enableVideoPlaybackSpeed"),headingTypefaceId:ve()("headingTypefaceId"),markLessonsComplete:De("markComplete"),navigation:z,navigationRestricted:at,navigationStyle:Pe,showAuthor:De("showAuthor"),showLessonCount:De("showLessonCount"),showNavigationButtons:De("showNavigationButtons"),sidebarStartsOpen:bt,uiTypefaceId:ve()("uiTypefaceId")}))),ns=$e()(ft()(M(),"theme"),vt()(X(),Y()({allowSearch:h()(["theme","allowSearch"]),animateBlockEntrance:fe()(!0,["theme","animateBlockEntrance"]),buttonNavigationStyle:h()(["theme","buttonNavigationStyle"]),buttonScheme:h()(["theme","buttonScheme"]),color:Ke,colorAccentTint:s()(P.FB,Ke),coverImage:Vt=>(0,H.dM)(Vt),coverPageType:h()(["theme","coverPageType"]),enableVideoPlaybackSpeed:fe()(!0,["theme","enableVideoPlaybackSpeed"]),lessonHeaderImage:Vt=>(0,H.LI)(Vt),lessonHeaderSize:h()(["theme","lessonHeaderSize"]),lessonHeaderStyle:h()(["theme","lessonHeaderStyle"]),markComplete:fe()(!1,["theme","markLessonsComplete"]),navigation:fe()(!0,["theme","navigation"]),navigationMode:Xe,navigationRestricted:fe()(!1,["theme","navigationRestricted"]),navigationStyle:h()(["theme","navigationStyle"]),navigationType:fe()(we.br.SIDEBAR,["theme","navigationType"]),progressIndicatorStyle:fe()(we.Y2.THEME_DEFAULT,["theme","progressIndicatorStyle"]),themeId:fe()("classic",["theme","themeId"]),showAuthor:fe()(!0,["theme","showAuthor"]),showLessonCount:Ut,sidebarMode:gt,sidebarStartsOpen:fe()(!0,["theme","sidebarMode"]),showNavigationButtons:fe()(!0,["theme","showNavigationButtons"])}))),mn=te()(Vt=>s()(ns,X()(Vt),O()(Ot)))},41481:(_e,ge,i)=>{"use strict";i.d(ge,{A:()=>q});var P=i(50635),H=i(26058),U=i(98228);function q(V){const J=(0,H.y)(ee=>{const Y=(0,U.W)();return(0,P.jsx)(V,{...ee,history:Y})});return J.displayName=`withRouter(${V.displayName||V.name})`,J}},41820:(_e,ge,i)=>{"use strict";i.d(ge,{gf:()=>Rn,Em:()=>os});var P={};i.r(P),i.d(P,{callbackComponent:()=>sa,callbackPath:()=>Qn,errorPath:()=>fi,getToken:()=>Xr,initAuth:()=>ea,login:()=>qr,logout:()=>Cn,onFetchTokensThunk:()=>yi,refreshSession:()=>St,request:()=>Ls.Em});var H={};i.r(H),i.d(H,{callbackComponent:()=>ia,callbackPath:()=>Ii,getToken:()=>la,initAuth:()=>Si,login:()=>No,logout:()=>Zn,refreshSession:()=>lt,request:()=>Ls.Em});var U=i(83416),q=i(10789),V=i.n(q),J=i(34198),ee=i.n(J),Y=i(56401),ie=i.n(Y),s=i(95017),Ce=i.n(s),be=i(56552),ye=i.n(be),te=i(50107),_=i.n(te),de=i(59288),$=i(41481),re=i(29226),se=i.n(re),M=i(15045),Q=i(47474),X=i.n(Q),me=i(54996),Le=i.n(me),ne=i(68971),je=i.n(ne),pe=i(312),h=i.n(pe),K=i(45949),fe=i.n(K),Ne=i(55414),O=i.n(Ne),he=i(91794),ve=i.n(he),Ae=i(4322),He=i.n(Ae),Je=i(37953),ft=i.n(Je),mt=i(53970),vt=i.n(mt),Te=i(78324),rt=i.n(Te),Ue=i(84929),$e=i.n(Ue),we=i(23366),Ot=i(28079);const Ke={"Content-Type":"application/json"},Xe=[(I,Fe)=>(Fe.Authorization=`Bearer ${Rn()}`,JSON.stringify(I))],gt=ve()(ie(),O(),ft()(["data","status","statusText"])),Ut=rt()(ft()(["name","message","response"]),fe()({response:gt})),z=({baseURL:I,...Fe})=>ee()(He()({headers:Ke,transformRequest:Xe}),He()(Fe),fe()({url:h()(I)})),at=({data:I,method:Fe,url:jt})=>fetch(jt,{body:JSON.stringify(I),headers:{...Ke,Authorization:`Bearer ${Rn()}`},keepalive:!0,method:Fe}).then(ms=>ms.json()).then(vt()("data")),bt=X().fromPromise(at),Pe=I=>({method:Fe,url:jt})=>`${Fe}:${I}${jt}`,xs=I=>{const Fe=new Error("Nil token detected");return Ot.L.addError(Fe,I),X().Rejected(Fe)},Vs=I=>Fe=>I.preRequest?I.preRequest(Fe):Fe,De=I=>Fe=>I.postRequest?I.postRequest(Fe):Fe,Gs=()=>!U.BI&&ie()(Rn()),Ws=I=>(Fe,jt)=>Le()(Fe,Pe(jt),ns(os,I)),ns=(I,Fe)=>jt=>(0,we.Ve)(jt,Vs(Fe),z(Fe),ve()(Gs,xs,I),je()(Ut,$e()("data")),De(Fe)),Vt=I=>({debounce:Ws(I),send:ns(os,I),sendWithKeepAlive:ns(bt,I)});var tn=i(86484),Eo=i.n(tn);const us=()=>document.visibilityState==="visible",Ze=I=>Eo()(us,()=>I()),Rt=I=>{document.addEventListener("visibilitychange",Ze(I)),window.addEventListener("focus",()=>I())};var Ye=i(63036),It=i.n(Ye),pn=i(72970),ys=i.n(pn),no=i(30001),Sn=i.n(no),Vo=i(3638),Nn=i.n(Vo),wt=i(88457),Xt=i(73173),oo=i(18796);const $s=(I,Fe=null)=>{const jt={...I,context:{locale:navigator.language,device:(0,oo.Pf)(),channel:(0,oo.c)(),userAgentData:(0,oo.NO)(),page:(0,oo.WE)(),userAgent:(0,oo.$t)(),...I.context},properties:{...Fe?(0,Xt.yV)(Fe):{},...I.properties}};return(0,wt.Em)({method:"POST",url:`${(0,U._$)("RISE_RUNTIME_URI")}/analytics`,json:!0,data:jt})},Qr=(0,U._$)("SUBSCRIPTIONS_ENDPOINT"),Lo=(0,U._$)("THREESIXTY_FRONTEND_URI"),ar=Sn()(["error","status"],404),ir=ee()(vt()("error"),$e()("response")),ro=()=>window.location.href=Lo,lr=[(I,Fe)=>(Fe.Authorization=`Bearer ${Rn()}`,I)],Re=async I=>{const Fe=`${Qr}/users/authorized_status`,jt=await os({transformRequest:lr,url:Fe}).toPromise().catch(ir),ms=ee()(I,_()(fs=>$s({event:"Unexpected Logout",payload:{category:"auth",data:fs,detail:"Subscription Error"}})));return It()([[ar,ro],[ys()("error"),ms],[Nn(),$e()("data")]])(jt)};var Yr=i(52988),fn=i.n(Yr),cr=i(53625),Ct=i.n(cr),Dt=i(17247),st=i.n(Dt),gn=i(63545);const es=st()("status","active"),To=st()("status","inactive"),hs=st()("plan","individual"),_r=I=>pathEq(["features","enable_review"],!0)(I),dt=Sn()(["features","enable_rise"],!0),Ml=st()("plan","trial"),Ms=fn()([st()("plan","trial"),st()("status","inactive"),st()("is_retrial_eligible",!1)]),kl=Ct()(st()("plan","team"),st()("plan","individual")),Jt=fn()([st()("plan","team"),st()("is_team_admin",!0)]),Ol=fn()([st()("plan","trial"),st()("is_team_admin",!0)]),jo=I=>{const Fe=new Date(I.end_date);Fe.setUTCHours(0,0,0,0);const jt=Fe.setDate(Fe.getDate()+1);return jt&&(jt.valueOf()-new Date().setUTCHours(0,0,0,0))/MILLISECONDS_IN_A_DAY};var Ls=i(20441),Tt=i(52439),ci=i(20817),Ts=i.n(ci),di=i(46687),ts=i.n(di),ui=i(23444),qe=i.n(ui),hi=i(34552),vn=i.n(hi);const Io=(I,Fe)=>`${(0,U._$)("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(I)}?size=${Fe}`,et=I=>({large:Io(I,"large"),medium:Io(I,"medium"),micro:Io(I,"micro"),mini:Io(I,"mini"),small:Io(I,"small")}),mi=ts()({features:vn()({},"features"),subscription:Ce()(["features"])}),nt=Ts()([Ms,To,qe()(dt)]),pi="/auth-callback",An="/auth-error",Gn=()=>new Promise(I=>{if(!window.Osano)return I();if(window.Osano.cm.dialogOpen){const Fe=setTimeout(()=>{I()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(jt,ms)=>{jt==="dialog"&&ms==="hide"&&(I(),clearTimeout(Fe))})}else I()}),Qn=pi,fi=An,Xr=Tt.rS,Wo=()=>window.location.pathname===Qn;let dr=!1,ur=!1;const Jr=I=>{if(dr)return;const Fe=(0,M.A)();dr=!0,window.localStorage.setItem(Fe,I);const jt=(0,Ls.xQ)({client_id:(0,U._$)("OKTA_CLIENT_ID"),issuer:(0,U._$)("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${Qn}`,response_mode:"fragment",scope:(0,U._$)("OIDC_SCOPE"),state:Fe,prompt:null});Gn().then(()=>{window.location.href=jt})},qr=()=>{const I=new URLSearchParams(window.location.search),Fe=I.has("redirect_url")?I.get("redirect_url"):window.location.href;return Jr(Fe)},St=()=>(0,Ls.uI)().catch(I=>{I.response?.status===404&&Cn({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),gi=()=>{if(ur)return;const I=(0,Tt.mA)(),Fe=(0,Tt.kn)();ie()(I)?($s({event:"Unexpected Logout",payload:{category:"auth",userId:Fe,detail:"id from cookie was null"}}),Ot.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Fe,idFromCookie:I,detail:"id from cookie was null"}),ur=!0,Cn({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):I!==Fe&&($s({event:"Unexpected Logout",payload:{category:"auth",userId:I,idFromToken:Fe,detail:"Session/Token ID Mismatch"}}),Ot.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Fe,idFromCookie:I,detail:"Session/Token ID Mismatch"}),ur=!0,(0,Ls.wD)().then(()=>window.location.reload(!0)))},$o=async I=>{try{const[,Fe,jt,ms]=await(0,Ls.wD)(),{aid:Zt,content_team_admin:fs}=ms;if($s({event:"Setting Session Cookie",payload:{category:"auth",userId:Zt,detail:"Resuming existing session"}}),(0,Tt.ac)(Zt),Wo()){I();return}const{first_name:Yn,last_name:gr,launchdarkly:Qo,staff:vr}=Fe,xr={avatars:et(Zt),first_name:Yn,user_id:Zt,last_name:gr,staff:vr,content_team_admin:fs},ua={author:Zt,profile:xr},Ni=()=>Cn({onLogout:V()(null)}),oe=ut=>I({...ua,...mi(ut),launchdarkly:Qo,token:jt}),ke=await Re(Ni).then(_()(oe)).catch(()=>I({...ua,token:jt}));if(nt(ke)){$s({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Tt.mA)(),subscription:ke,detail:"Invalid Subscription"}}),Ot.L.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:(0,Tt.mA)(),detail:"Invalid Subscription"}),Cn({onLogout:()=>window.location=`${(0,U._$)("THREESIXTY_FRONTEND_URI")}/rise`});return}Rt(gi)}catch(Fe){$s({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Tt.mA)(),error:Fe,detail:"Error Resuming Session"}}),Ot.L.addError(Fe,{type:"User Meta",userId:(0,Tt.mA)(),detail:"Error Resuming Session"}),Cn({onLogout:()=>window.location.reload(!0)})}},ea=({onFetchTokens:I})=>{if(Wo()){$o(I);return}const Fe=(0,Tt.mA)(),jt=(0,Tt.kn)();if(ie()(Fe)||Fe!==jt){Gn().then(qr);return}$o(I)},Cn=({onLogout:I,reason:Fe})=>{Fe&&$s({event:"Logout",payload:{category:"auth",userId:(0,Tt.mA)(),detail:Fe}});const jt=(0,U._$)("RISE_AUTHORING_URI"),ms=()=>U.BI?Promise.resolve():Vt({baseURL:jt}).send({method:"DELETE",url:"/logout"}),Zt=()=>{(0,Tt.sm)(),(0,Tt.gZ)(),(0,Ls.Vu)().then(I)};ms().fork(fs=>{console.error("Failed to log out of rise-authoring-api",fs),Zt()},Zt)},vi=ee()(se().parse,ye()(1,1/0)),Ci=(I,Fe)=>{Gn().then(()=>{const jt="/",ms=window.localStorage.getItem(Fe)||jt,Zt=ms===I?jt:ms;window.localStorage.removeItem(Fe),window.location.href=Zt})},hr=I=>()=>window.location.href=`${An}?description=${I}`,ta=({location:I})=>()=>{const{hash:Fe,pathname:jt}=I,{state:ms,error:Zt,error_description:fs}=vi(Fe);Zt?(Ot.L.addError(Zt,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:fs}),Cn({onLogout:hr(fs),reason:`Error encountered when parsing auth callback. Error: ${Zt}; description: ${fs}`})):ea({onFetchTokens:()=>Ci(jt,ms)})},xi=I=>((0,de.useEffect)(ta(I),[]),null),sa=(0,$.A)(xi),yi=({dispatch:I,loadProfileOKTA:Fe})=>jt=>{const ms=Ce()(["token"],jt);ee()(I,Fe)(ms)};var na=i(82298),oa=i.n(na),So=i(45005),Pn=i.n(So),bi=i(72168),Ei=i.n(bi),ra=i(74674),aa=i.n(ra),Li=i(24308),Ti=i.n(Li),ji=i(97886),mr=i.n(ji);const Ko=async()=>{await Gn();const[I,Fe]=Ei()(encodeURIComponent,Ti()(["hash","pathname"],window.location));window.location.href=`/login#c=${Fe}${I}`},Go=()=>{window.location.href="/"},ia=null,Ii=null,la=Tt.rS,No=Ko,Zn=Ls.Vu,lt=()=>(0,Ls.uI)().catch(()=>Zn()),pr=rt()(vn()([],"roles"),mr()(Pn()("author"),Go)),ca=rt()(aa()("",["subscription","status"]),mr()(Pn()(oa(),["active","in_trial","non_renewing"]),Go)),fr=()=>window.location.reload(),Si=async({onFetchTokens:I})=>{try{const[Fe,jt]=await(0,Ls.wD)(),{launchdarkly:ms,riseId:Zt,sub:fs,staff:Yn,subscription:gr}=jt,Qo={staff:Yn,user_id:Zt||fs};return ca(jt),I({author:Qo.user_id,launchdarkly:ms,profile:Qo,subscription:gr,token:Fe}),(0,Ls.on)("change:roles",pr),(0,Ls.on)("change:status",ca),(0,Ls.on)("change:subdomain",fr),(0,Ls.on)("unauthorized",Ko),(0,Ls.on)("session:closed",Ko),Fe}catch{Ko()}},{callbackComponent:Ao,callbackPath:wl,getToken:Rn,initAuth:Dl,login:da,logout:Bl,refreshSession:Wt,request:os}=U.BI?H:P},41021:(_e,ge,i)=>{"use strict";i.d(ge,{A:()=>U});var P=i(3786);const U=({alpha:q,color:V,url:J})=>{const ee=(0,P.A)(V,q);return{backgroundImage:`linear-gradient(0deg,${ee},${ee}), url("${J}")`}}},52439:(_e,ge,i)=>{"use strict";i.d(ge,{EO:()=>Q,O0:()=>M,QJ:()=>me,W5:()=>Y,Xl:()=>_,ac:()=>s,gZ:()=>be,kn:()=>se,l6:()=>Le,mA:()=>ye,rS:()=>te,sm:()=>Ce});var P=i(13855),H=i.n(P),U=i(87836),q=i.n(U),V=i(83416);const J="_articulate_user_id",ee="_rise_authoring_api_session",Y=()=>V.BI?(0,V._$)("SESSION_COOKIE_NAME"):"_articulate_rise_",ie=(ne,je)=>`${ne}=${je}; domain=${(0,V._$)("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,s=ne=>document.cookie=ie(J,ne),Ce=()=>document.cookie=`${ie(J,"")}; Max-Age=-99999999`,be=()=>document.cookie=`${ie(ee,"")}; Max-Age=-99999999`,ye=()=>H().load(J),te=()=>H().load(Y()),_=()=>te()?q()(te()).staff:!1,de=()=>te()?decode(te())?.staffRoles||[]:[],$=()=>te()?decode(te())?.content_team_admin:!1,re=()=>de().includes("content-team")||$(),se=()=>te()?q()(te()).riseId||q()(te()).sub||q()(te()).aid:"",M=()=>te()?q()(te()).roles:[],Q=()=>te()?q()(te()).tenantId:"",X=()=>te()?q()(te()).subscription||{}:{},me=()=>X().plan_id||"",Le=()=>X().status||""},61556:(_e,ge,i)=>{"use strict";i.d(ge,{FB:()=>Gs,FH:()=>Vs,GG:()=>we,I8:()=>Ke,IO:()=>xs,L3:()=>Pe,Vu:()=>Xe,b9:()=>Ot,bQ:()=>gt,jI:()=>Rt,yL:()=>Ws,zH:()=>De,zh:()=>bt});var P=i(10789),H=i.n(P),U=i(34198),q=i.n(U),V=i(23444),J=i.n(V),ee=i(40966),Y=i.n(ee),ie=i(53625),s=i.n(ie),Ce=i(2353),be=i.n(Ce),ye=i(83799),te=i.n(ye),_=i(67711),de=i.n(_),$=i(8466),re=i.n($),se=i(91794),M=i.n(se),Q=i(34379),X=i.n(Q),me=i(56401),Le=i.n(me),ne=i(64104),je=i.n(ne),pe=i(78324),h=i.n(pe),K=i(84929),fe=i.n(K),Ne=i(17247),O=i.n(Ne),he=i(84136),ve=i.n(he),Ae=i(85772),He=i.n(Ae),Je=i(63064),ft=i.n(Je),mt=i(37322),vt=i(41021),Te=i(5181),rt=i(63545),Ue=i(52706);const $e=J()(O()("sidebarMode","hidden")),we=({type:Ye,settings:It})=>Ye!=="quiz"||It.asLesson||It.asLesson===void 0,Ot=({alpha:Ye,color:It=void 0,hasOverlay:pn=!0,media:ys={}})=>{const{image:no={}}=ys,{key:Sn,src:Vo}=no,Nn=Sn?(0,mt.ME)(no):Vo,wt=It===Te.df.LIGHT?Te.qH:Te.KJ;return Nn?pn?(0,vt.A)({alpha:Ye/100,color:wt,url:Nn}):{backgroundImage:`url("${Nn}")`}:null},Ke=Ye=>[Te.Py.DARK,Te.Py.DARK_ACCENT,Te.Py.DARK_IMAGE,Te.qB.DARK,Te.kY.DARK,Te.kY.DARK_IMAGE].includes(Ye),Xe=h()(fe()("lessons"),re()),gt=O()("navigationMode",Te.b$.RESTRICTED),Ut=J()(O()("sidebarMode",Te.RE.HIDDEN)),z=O()("navigationType",Te.br.SIDEBAR),at=O()("navigationType",Te.br.COMPACT),bt=M()(ve()(Le(),"navigation"),Ut,O()("navigation",!0)),Pe=({course:Ye,search:It,isMobile:pn})=>Ye.type===rt.y4?!1:(z(Ye)||at(Ye)&&!!pn)&&bt(Ye)||It.active,xs=({course:Ye,isMobile:It})=>at(Ye)&&bt(Ye)&&!It,Vs=Ye=>[Te.Py.DARK_IMAGE,Te.Py.LIGHT_IMAGE,Te.qB.DARK_IMAGE,Te.qB.IMAGE,Te.kY.DARK_IMAGE,Te.kY.LIGHT_IMAGE].includes(Ye),De=Ye=>[Te.kY.DARK,Te.kY.LIGHT].includes(Ye),Gs=Ue.WA,Ws=(Ye,It)=>{if(Ye===Te.V7.RISE_CLASSIC||Ye===Te.V7.HORIZON)switch(It){case Te.BL.SPLIT_LEFT_IMAGE:case Te.BL.SPLIT_RIGHT_IMAGE:case Te.BL.TWO_THIRDS_LEFT_IMAGE:case Te.BL.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(Ye===Te.V7.APEX)switch(It){case Te.BL.SPLIT_LEFT_IMAGE:case Te.BL.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},ns=(Ye,It)=>{switch(Ye){case THEME_IDS.RISE_CLASSIC:case THEME_IDS.APEX:case THEME_IDS.HORIZON:return It===COVER_PAGE_LAYOUT_TYPES.CENTERED_OVERLAY||It===COVER_PAGE_LAYOUT_TYPES.LEFT_OVERLAY||It===COVER_PAGE_LAYOUT_TYPES.IMAGE;default:return!1}},mn=s()(Le(),X()),Vt=s()(Le(),be()(!1)),tn=ve()(Vt,"isComplete"),Eo=s()(ve()(be()(!1),"passed"),ve()(Vt,"isComplete")),us=ft()(2,Ye=>te()(M()(q()(be()(Ye),re()),q()(Eo,je()),q()(tn,je())))),Ze=ft()(2,Ye=>h()(He(),us(Ye),Y()([]),re())),Rt=de()(ft()(2,Ye=>M()(mn,H()(Ye),Ze(Ye))))},28079:(_e,ge,i)=>{"use strict";i.d(ge,{L:()=>H.L,y:()=>P.yf});var P=i(35490),H=i(48004),U=i(83416);const q="datadoghq.com",V=(0,U._$)("SERVICE_ENV"),J=(0,U._$)("RISE_FRONTEND_SHA"),ee=U.BI?[/https:\/\/.*(\.dev)?\.rise\.(com|zone).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone).*/]},49345:(_e,ge,i)=>{"use strict";i.d(ge,{QZ:()=>re,R9:()=>$,aj:()=>de});var P=i(10789),H=i.n(P),U=i(67711),q=i.n(U),V=i(55414),J=i.n(V),ee=i(91794),Y=i.n(ee),ie=i(95206),s=i.n(ie);const Ce=q()(s()),be=["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"],ye=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],te=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:be}),_=Ce({allowedAttributes:{iframe:ye},allowedTags:["iframe"],allowedSchemes:["http","https"]}),de=Y()(J(),te,H()("")),$=Y()(J(),_,H()("")),re=Ce({allowedTags:[],allowedAttributes:[]}),se=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:be.filter(Q=>Q!=="img")}),M=Q=>{const X=Q.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return re(X).replace(/\s{2,}/g," ")}},95172:(_e,ge,i)=>{"use strict";i.d(ge,{Mz:()=>ye,Sg:()=>de,Ww:()=>re,XQ:()=>s,d9:()=>ie,dg:()=>_,gL:()=>te,p1:()=>Ce,vm:()=>$});var P=i(79418),H=i.n(P),U=i(92348),q=i.n(U),V=i(30001),J=i.n(V),ee=i(17247),Y=i.n(ee);const ie={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},s=q()({KNOWLEDGE_CHECK:null,ORDER:null,QUIZ:null}),Ce=M=>`/lessons/${encodeURIComponent(M)}`,be=Y()("type"),ye=be(ie.SECTION),te=be(ie.QUIZ),_=J()(["settings","passToContinue"],!0),de=M=>M?.items?.find(Q=>Q.family==="knowledgeCheck"&&Q?.settings?.requireCorrectAnswer),$=M=>M!=null&&M.type==="blocks",re=M=>{const Q=H()(M);return Q!=null&&Array.isArray(Q.items)&&(Q.items=Q.items.reduce((X,me)=>(me!=null&&X.push(se(me)),X),[])),Q},se=M=>{const Q=H()(M);return Q!=null&&Array.isArray(Q.items)&&(Q.items=Q.items.filter(Boolean)),Q}},4663:(_e,ge,i)=>{"use strict";i.d(ge,{U:()=>pe});var P=i(34198),H=i.n(P),U=i(312),q=i.n(U),V=i(67711),J=i.n(V),ee=i(65992),Y=i.n(ee),ie=i(58488),s=i.n(ie),Ce=i(72168),be=i.n(Ce),ye=i(77170),te=i.n(ye),_=i(11366),de=i.n(_),$=i(58995),re=i.n($),se=i(83416);const M=5e3,X=be()(J()(q())(":n3,n4,i4,n7,n9")),me=H()(Y()(","),s()),Le=(K,fe)=>{const Ne=new FontFace(fe.name,K,{family:fe.name,style:fe.style,weight:fe.weight});return Ne.load().then(()=>document.fonts.add(Ne))},ne=(K,fe)=>{const Ne=document.createElement("style");return Ne.innerText=`@font-face { font-family: '${fe.name}'; src: ${K}; font-weight: ${fe.weight}; font-style: ${fe.style}; }`,document.head.appendChild(Ne),new(de())(fe.name,{style:fe.style,weight:fe.weight}).load()},je=K=>{const fe=`url(${(0,se.PJ)(K)}) format('woff')`;return("fonts"in document?Le:ne)(fe,K)},pe=(K,fe)=>{const Ne=Promise.all(K.map(je));let O;const he=new Promise(ve=>{O=setTimeout(ve,M)});return Promise.race([Ne,he]).finally(()=>{clearTimeout(O),fe()})},h=({baseUri:K,typefaces:fe,onLoad:Ne})=>WebFont.load({active:Ne,timeout:M,custom:{families:X(values(fe)),urls:[`${K}/course_fonts.css?typefaceIds=${me(fe)}`]}})},73173:(_e,ge,i)=>{"use strict";i.d(ge,{yV:()=>H});var P=i(52439);const H=ee=>{const Y=ee.user,ie=Y?.profile?.user_id,s=Y?.subscription?.subscription_id||Y?.subscription?.id;return{application_source:"360_rise",application_service:"authoring",user_role:(0,P.O0)()||"Creator",reach_user_id:void 0,a360_user_id:ie,user_permissions:Y?.permissions||[],subscription_id:Y?.subscription?.subscription_id||s,tenant_id:s,risecom_billing_id:void 0,...ee.ai?.subscription&&{ai:{plan:ee.ai.subscription.plan,start_date:ee.ai.subscription.start_date,end_date:ee.ai.subscription.end_date}},...ee.l10n?.subscription&&{localization:{plan:ee.l10n.subscription.plan,start_date:ee.l10n.subscription.start_date,end_date:ee.l10n.subscription.end_date}}}},U=ee=>{const Y=ee.course;return{course_id:Y?.id,course_locale:Y?.locale}},q=(ee,Y)=>{if(!Y)return{};const ie=ee?.lessons[Y];if(!ie)return{};const s=ee?.course.lessons.indexOf(Y)+1;return{lesson_id:Y,lesson_type:ie.type,lesson_position:s}},V=(ee,Y,ie)=>{if(!Y||!ie)return{};const Ce=(ee.lessons||{})[Y];if(!Ce?.items)return{};const be=Ce.items.find(_=>_.id===ie);if(!be)return{};const te=Ce.items.map(_=>_.id).indexOf(ie)+1;return{block_id:ie,block_type:be.type,block_variant:be.variant,block_family:be.family,block_position:te}},J=({aiSessionId:ee,interactionSetId:Y,taskType:ie,resourceType:s,hasSourceContent:Ce}={})=>!ee&&!Y?{}:{...ee&&{ai_session_id:ee},...Y&&{interaction_set_id:Y},interaction_set_task_type:ie,interaction_set_task_resource_type:s,interaction_set_has_source_content:Ce}},86415:(_e,ge,i)=>{"use strict";i.d(ge,{$H:()=>fe,Bd:()=>Ne,DX:()=>se,Ge:()=>He,MT:()=>K,PH:()=>he,SQ:()=>ve,Sd:()=>pe,UG:()=>Q,Wz:()=>vt,_z:()=>h,cN:()=>Le,dT:()=>mt,d_:()=>M,hM:()=>O,kJ:()=>ft,qm:()=>re,rv:()=>$,v1:()=>Ae,vU:()=>me,x4:()=>Je});var P=i(50635),H=i(59288),U=i.n(H),q=i(83799),V=i.n(q),J=i(17247),ee=i.n(J),Y=i(5181),ie=i(61556),s=i(52706),Ce=i(84728),be=i(42006),ye=i(38286),te=i(20387),_=i.n(te);const de=(0,H.createContext)(null);de.displayName="CourseContext";function $({children:Te,course:rt,courseProgress:Ue,l10n:$e,labels:we,partnerContent:Ot,search:Ke}){const Xe=(0,H.useMemo)(()=>({course:rt,courseProgress:Ue,l10n:$e,labels:we,partnerContent:Ot,search:Ke}),[rt,$e,we,Ue,Ot,Ke]),gt=(0,H.useMemo)(()=>({l10n:(0,te.omit)(["locales","defaultLocale"],$e)}),[$e]),Ut=(0,H.useMemo)(()=>({l10n:{locales:$e?.locales,defaultLocale:$e?.defaultLocale,localeSelectorOptions:$e?.localeSelectorOptions,showLocaleSelector:$e?.showLocaleSelector}}),[$e?.defaultLocale,$e?.locales,$e?.localeSelectorOptions,$e?.showLocaleSelector]);return(0,P.jsx)(de.Provider,{value:Xe,children:(0,P.jsx)(Ce.xr.Provider,{value:gt,children:(0,P.jsx)(Ce.zE.Provider,{value:Ut,children:Te})})})}function re(){return(0,H.useContext)(de)}function se(){return re()?.course}function M(){return(0,Ce.QQ)(se()?.title)}function Q(){const Te=se();return Te.selectedAuthorId==="none"||!("authors"in Te)?null:Te.selectedAuthorId?Te.authors?.find(rt=>rt.id===Te.selectedAuthorId):Te.authors?.find(rt=>rt.id===Te.author)}function X(){return se().trackingQuizId}function me(){const{labels:Te}=re()??{};return Te}const Le=({isCourseComplete:Te,percentCourseComplete:rt})=>{const Ue=me(),{courseResume:$e,courseStart:we,processStartAgain:Ot}=Ue;return{courseCTALabel:Te?Ot:rt>0?$e:we}};function ne(){const{courseProgress:Te}=re();return Te}function je(){return ne()?.lessons}function pe(){return ne()?.percentComplete}function h(){return se().lessonsOnly?.[0]}function K(){const Te=je(),rt=X();return(0,ie.jI)(Te,rt)}function fe(){const Te=se(),{selectedAuthorId:rt}=Te?.lessons?.[0]??{};return rt==="none"?{id:"none"}:Te?.authors?.find?.(Ue=>Ue.id===rt)}function Ne(){const{course:Te,partnerContent:rt}=re();return V()(ee()("id",Te.selectedAuthorId),rt.content)}function O(){return Ne()?.data?.authors??null}function he(){const{partnerContent:Te}=re();return Te?.content?.[0]?.data?.authors}function ve(){return re().search}function Ae(){const{lessons:Te}=se();return(0,H.useMemo)(()=>Array.isArray(Te)?Te.filter(({type:Ue})=>Ue!=="section").length:0,[Te])}function He(Te){const $e=se()?.theme?.accentContrast;return typeof $e!="string"?Y.Em.LIGHT:$e===Y.Em.AUTO?(0,s.xD)(Te):$e}function Je(Te){const rt=(0,H.forwardRef)(({bgColor:Ue,...$e},we)=>{const Ot=He(Ue);return(0,P.jsx)(Te,{...$e,accentContrast:Ot,ref:we})});return rt.displayName=`withAccentContrast(${Te.displayName||Te.name})`,rt}function ft(){const Te=se();return Te?.theme?.colorAccent??Te?.color}function mt(){return se()?.theme?.coverImageColor??Y.df.DARK}function vt(){const{currentLocale:Te}=(0,ye.nY)(),rt=(0,Ce.jc)(),Ue=se();return(0,be.V)({course:Ue,locales:rt,locale:Te})}},84728:(_e,ge,i)=>{"use strict";i.d(ge,{D_:()=>te,MQ:()=>$,NB:()=>ie,QQ:()=>s,bs:()=>re,gY:()=>Y,jc:()=>ye,xr:()=>J,zE:()=>ee});var P=i(82719),H=i(86415),U=i(59288),q=i.n(U),V=i(38286);const J=(0,U.createContext)(null);J.displayName="TranslationContext";const ee=(0,U.createContext)(null);ee.displayName="LocalesContext";function Y(){const{currentLocale:se}=(0,V.nY)(),M=te(),Q=_();return(0,U.useCallback)(X=>(0,P.Dh)(X,se,M,Q),[se,M,Q])}function ie(){const{currentLocale:se}=(0,V.nY)(),M=te(),Q=_();return(0,U.useCallback)(X=>(0,P.UR)(X,se,M,Q),[se,M,Q])}function s(se){const{currentLocale:M}=(0,V.nY)(),Q=te();let X=_();const me=de();return me&&Object.keys(me).length&&M&&X&&(X={...X,[M]:me}),(0,P.Dh)(se,M,Q,X)}function Ce(se){const{currentLocale:M}=useCurrentLocale(),Q=te(),X=_();return useMemo(()=>selectL10nRecursive(se,M,Q,X),[M,Q,se,X])}function be(){return(0,U.use)(ee)}function ye(){const se=be();return(0,P.S)(se)}function te(){const se=be();return(0,P.HH)(se)}function _(){const se=(0,U.use)(J);return(0,P.fF)(se)}function de(){return(0,H.qm)()?.search?.translations}function $(){const se=(0,U.use)(J);return(0,P.Zn)(se)}function re(){const se=(0,U.use)(J);return(0,P.cP)(se)}},38286:(_e,ge,i)=>{"use strict";i.d(ge,{fH:()=>Ce,nY:()=>be,wZ:()=>ye});var P=i(50635),H=i(59288),U=i(26058),q=i(72147);function V({defaultLocale:te,locales:_}={},de=(0,q.Rr)(window.location.hash.slice(1))){let re=new URLSearchParams(de.search).get("locale");const se=new URL(window.location.href);return se.pathname.startsWith("/view_pdf/")&&(re=se.searchParams.get("locale")),_?.find(Q=>Q.locale===re)?.locale||te}var J=i(84728),ee=i(98228),Y=i(82719),ie=i(61708);const s=(0,H.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function Ce({children:te}){const _=(0,ee.W)(),de=(0,U.zy)(),$=(0,ie.LY)(Y.HH),re=(0,J.D_)(),se=$||re,M=(0,ie.LY)(Y.S),Q=(0,J.jc)(),X=M||Q,me=(0,H.useMemo)(()=>V({defaultLocale:se,locales:X},de),[se,X,de]),Le=(0,H.useCallback)((je,pe="replace")=>{const h=je===se?"":je,K=new URLSearchParams(de.search);K.set("locale",h);const fe={...de,search:K.toString()};pe==="push"?_.push(fe):_.replace(fe)},[se,_,de]),ne=(0,H.useMemo)(()=>({currentLocale:me,setCurrentLocale:Le}),[me,Le]);return(0,P.jsx)(s.Provider,{value:ne,children:te})}function be(){return(0,H.useContext)(s)}function ye(te){const _=de=>{const $=be();return(0,P.jsx)(te,{...de,...$})};return _.displayName=`withCurrentLocale(${te.displayName||te.name})`,_}},17862:(_e,ge,i)=>{"use strict";i.d(ge,{Ay:()=>Q,iV:()=>te,sS:()=>ye,x8:()=>_});var P=i(10789),H=i.n(P),U=i(20817),q=i.n(U),V=i(63036),J=i.n(V),ee=i(2353),Y=i.n(ee),ie=i(3638),s=i.n(ie);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"},be=10;var ye=(X=>(X.SUMMARY="SUMMARY",X.REMAINING="REMAINING",X.ELAPSED="ELAPSED",X.ELAPSED_TOTAL="ELAPSED_TOTAL",X.HIDE_TIMER="HIDE_TIMER",X))(ye||{});const te={ALL:"all",NONE:"none",INCORRECT:"incorrect"},_=J()([[q()([Y()(!0),Y()(te.ALL)]),H()(te.ALL)],[q()([Y()(!1),Y()(te.NONE)]),H()(te.NONE)],[Y()(te.INCORRECT),H()(te.INCORRECT)],[s(),H()(te.ALL)]]),de="draw from question bank",$="fillin",re="matching",se="multiple choice",M="multiple response",Q=Ce},33733:(_e,ge,i)=>{"use strict";i.d(ge,{B1:()=>be,BN:()=>te,F:()=>ie,R6:()=>ee,eB:()=>Ce,q2:()=>Y});var P=i(50635),H=i(59288),U=i.n(H),q=i(23643),V=i(12786),J=i(20998);const ee=U().createContext(null),Y=U().createContext(!1),ie=_=>(0,P.jsx)(Y.Provider,{value:!0,children:(0,P.jsx)(q.A,{..._})});function s(_){return class extends U().Component{static displayName=`withStaleTransitionState(${_.displayName||_.name})`;static defaultProps={onEnter:()=>{},onEntered:()=>{},onEntering:()=>{},onExit:()=>{},onExited:()=>{},onExiting:()=>{}};nodeRef=U().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=($,...re)=>{this.setState({transitionState:$});const se="on"+$[0].toUpperCase()+$.slice(1),M=this.props[se];typeof M=="function"&&M(...re)};render(){return(0,P.jsx)(ee.Provider,{value:this.state.transitionState,children:(0,P.jsx)(_,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntered:this.onEnteredDelegate,onEntering:this.onEnteringDelegate,onExit:this.onExitDelegate,onExited:this.onExitedDelegate,onExiting:this.onExitingDelegate})})}}}const Ce=s(V.Ay),be=s(J.A);function ye(_){const de=U().useContext(Y),$=U().useContext(ee),re=U().useRef(_);return de&&$?.startsWith?.("exit")||(re.current=_),re.current}function te(_){const de=$=>{const re=ye($);return(0,P.jsx)(_,{...re,nodeRef:$.ref,ref:$.ref})};return de.displayName=`withTransitionableState(${_.displayName||_.name||"Component"})`,de}},31926:(_e,ge,i)=>{var P={"./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 H(q){var V=U(q);return i(V)}function U(q){if(!i.o(P,q)){var V=new Error("Cannot find module '"+q+"'");throw V.code="MODULE_NOT_FOUND",V}return P[q]}H.keys=function(){return Object.keys(P)},H.resolve=U,_e.exports=H,H.id=31926},54357:()=>{},70872:()=>{},38954:()=>{},73059:()=>{},43611:()=>{},94800:()=>{},566:()=>{},82988:()=>{}}]);
