(self.wpRiseJsonp=self.wpRiseJsonp||[]).push([["learn_main_tsx-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349:Ye=>{Ye.exports=function(fe){fe||(fe={});var __t,__p="";with(fe)__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:(Ye,fe,i)=>{"use strict";i.d(fe,{cF:()=>Qe,LK:()=>sn,LM:()=>ds,TJ:()=>cr,Ay:()=>ar,EL:()=>ke,HC:()=>Yr,V7:()=>gn});var P=i(24331),B=i(82298),V=i.n(B),q=i(27905),F=i.n(q),X=i(38576),ee=i.n(X),Y=i(34198),ae=i.n(Y),s=i(91794),Ce=i.n(s),be=i(34379),xe=i.n(be),te=i(56401),_=i.n(te),de=i(28507),K=i.n(de),le=i(15241),oe=i.n(le),R=i(72168),Q=i.n(R),J=i(4322),me=i.n(J),Pe=i(53970),se=i.n(Pe),je=i(77778),pe=i.n(je),h=i(7827),$=i.n(h),ge=i(78324),Ae=i.n(ge),O=i(17247),he=i.n(O),ve=i(84136),Se=i.n(ve),ze=i(98511),qe=i.n(ze),pt=i(91301),dt=i.n(pt),vt=i(97886),Je=i.n(vt),kt=i(86484),_e=i.n(kt),Ie=i(36523),Ee=i(35965),yt=i(58931),De=i(34984),Ge=i(88747);const ut=(Ct=[],Dt)=>Dt?.partnerContentId?Ct.concat(Dt.partnerContentId):Ct,Pt=(Ct,Dt)=>Dt?.items?.reduce(ut,Ct)??Ct,H=(Ct,Dt)=>Dt?.items?.reduce(Pt,Ct)??Ct,st=({course:Ct,lessons:Dt})=>{const nt=Dt?.reduce(H,[])||[],vn=Ct?.partnerContentId||null,es=vn?[vn]:[],To=new Set([...nt,...es]);return Array.from(To)};var gt=i(92348),Me=i.n(gt);const vs=null,Vs=Me()({ACTIVE:null,PREVIEW:null}),Be=({themeId:Ct,themeCoverImage:Dt,coverImageDefault:nt})=>Ct==="classic"&&isNonEmptyString(nt)?nt:Dt,Gs=Ct=>({...Ct,theme:{...Ct?.theme,hideLessonHeaders:Ct?.theme?.hideLessonHeaders??!1}});var Ws=i(17862),ns=i(94379),pn=i(95172),Wt=i(44625);const sn="rise/course/LOAD_COURSE",Eo="rise/course/UPDATE_COMPLETED_AT",ds="rise/course/UPDATE_COURSE_PREVIEW",Qe="rise/course/APPLY_CHANGESET",Rt=Je()(ae()(_(),$()(["settings","revealAnswers"])),pe()(K()(["settings","revealAnswers"]),Ws.x8)),Ze=_e()(pn.vm,pn.Ww),jt=ae()(Rt,Ze),fn=pe()(oe()("lessons"),Q()(jt)),Cs=Ct=>ae()(me()(Ct),se()("lessonsOnly"),qe()(he()("type","section")))(Ct.lessons),no=Se()(_(),"theme"),Sn=ae()(Ge.MJ,Ge.uK),Vo=Ce()(no,Sn,Ge.MJ),Nn=ae()(Gs,Vo),wt=(Ct,Dt)=>{let nt=(0,P.TJ)(["course"],Dt,Ct).result;return nt=F()("lessons",(0,P.TJ)(["lessons"],Dt,nt.lessons).result,nt),nt},Xt=Ct=>({...Ct,lessons:Ct.lessons?.map(Wt.K)||[]}),oo=(Ct,{completedAt:Dt,course:nt,favoritedAt:vn,riseComCurrentUser:es,riseComCourseId:To,riseComEnrollmentType:xs,riseComLearningPathId:_r})=>Ae()(fn,Cs,me()(V(),{completedAt:Dt,favoritedAt:vn,riseComCourseId:To,riseComEnrollmentType:xs,riseComCurrentUser:es,riseComLearningPathId:_r}),Nn)(nt),$s=dt()(F()("favoritedAt",new Date)),Qr=dt()(F()("favoritedAt",null)),Lo=dt()(ee()("completedAt",()=>new Date().toISOString())),ar=(0,Ie.handle)({},{[yt._q]:$s,[yt.ut]:Qr,[sn]:oo,[Eo]:Lo,[ds]:(Ct,{course:Dt})=>Dt,[Qe]:wt}),ir=Ct=>Dt=>{const{statusCode:nt}=Dt;nt===404&&Ct((0,ns.cX)(!0))},ro=Ct=>Dt=>Dt([(0,Ie.action)(De.O,Ct),(0,ns.$d)(!0)]),lr=Ct=>xe()(Ct)?(0,ns.$d)(!0):(0,Ee.qO)(Ct).map(ro),Zr=Ct=>Dt=>{const{course:nt}=Dt,vn=Xt(nt),es=st({course:vn,lessons:vn.lessons});Ct([(0,Ie.action)(sn,{...Dt,course:vn,_originalLessons:nt.lessons}),(0,ns.LW)(!0),lr(es)])},ke=Ct=>Dt=>(0,Ee.hd)(void 0,Ct).then(Zr(Dt)).catch(ir(Dt)),Yr=(0,Ie.action)(sn),gn=(0,Ie.action)(ds),cr=(0,Ie.action)(Qe)},76135:(Ye,fe,i)=>{"use strict";i.d(fe,{Kl:()=>V,Om:()=>F,RA:()=>_,Sw:()=>Ce,V9:()=>xe,Zp:()=>Y,bf:()=>q,eQ:()=>s,i$:()=>de,re:()=>te,sq:()=>ee,ss:()=>be,w8:()=>X,y1:()=>ae});var P=i(36523);const B=K=>`rise/course/${K}`,V=B("BLOCKS_LESSON_COMPLETE"),q=B("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),F=B("BLOCKS_LESSON_RESET"),X=B("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),ee=B("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),Y=B("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),ae=B("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),s=(0,P.action)(V),Ce=(0,P.action)(q),be=(0,P.action)(F),xe=(0,P.action)(X),te=(0,P.action)(ee),_=(0,P.action)(Y),de=(0,P.action)(ae)},31896:(Ye,fe,i)=>{"use strict";i.d(fe,{$Z:()=>Y,Ew:()=>F,GL:()=>q,UZ:()=>X,_Y:()=>s,jS:()=>ae,tc:()=>ee});var P=i(96192),B=i(67644),V=i(67757);function q(R,Q){const J=R.lessons[Q];if(!(0,P.rV)(J))return R;const me={...be(J),id:Q},Pe=(0,P.b5)({courseProgress:R,lessonId:Q,updatedLessonProgress:me});return(0,P.bo)({lessonId:Q,prevCourseProgress:R,nextCourseProgress:Pe})}function F(R,Q){const{lessonId:J,blockId:me,itemId:Pe}=Q,se=R.lessons[J];if(!(0,P.rV)(se))return R;const je=se.items[me],pe=te({blockProgress:je,itemId:Pe}),h=de({lessonProgress:se,blockId:me,updatedBlockProgress:pe}),$=(0,B.hh)(h),ge=(0,P.b5)({courseProgress:R,lessonId:J,updatedLessonProgress:$});return(0,P.bo)({lessonId:J,prevCourseProgress:R,nextCourseProgress:ge})}function X(R,Q){const J=R.lessons[Q];if(!(0,P.rV)(J))return R;const me=K(J),Pe=(0,P.b5)({courseProgress:R,lessonId:Q,updatedLessonProgress:me});return(0,P.bo)({lessonId:Q,prevCourseProgress:R,nextCourseProgress:Pe})}function ee(R,{blockId:Q,lessonId:J}){const me=R.lessons[J];if(!(0,P.rV)(me))return R;const Pe=le(me.items[Q]),se=de({lessonProgress:me,blockId:Q,updatedBlockProgress:Pe}),je=(0,P.b5)({courseProgress:R,lessonId:J,updatedLessonProgress:se});return(0,P.bo)({lessonId:J,prevCourseProgress:R,nextCourseProgress:je})}function Y(R,Q){const{lessonId:J,blockId:me,items:Pe}=Q,se=R.lessons[J];if(!(0,P.rV)(se))return R;const je=xe({blockId:me,lessonProgress:se,items:Pe}),pe=(0,P.b5)({courseProgress:R,lessonId:J,updatedLessonProgress:je});return(0,P.bo)({lessonId:J,prevCourseProgress:R,nextCourseProgress:pe})}function ae(R,Q){const{lessonId:J,blockId:me,itemId:Pe,playheadPercentage:se}=Q,je=R.lessons[J],pe=je?.items?.[me];if(!(0,P.rV)(je)||!pe||!("items"in pe)||!pe.items||!pe.items[Pe])return R;const $={...pe.items[Pe],audioVideoPlayhead:se},ge={...pe,items:{...pe.items,[Pe]:$}},Ae=de({lessonProgress:je,blockId:me,updatedBlockProgress:ge}),O=(0,P.b5)({courseProgress:R,lessonId:J,updatedLessonProgress:Ae});return(0,P.bo)({lessonId:J,prevCourseProgress:R,nextCourseProgress:O})}function s(R,Q){const{lessonId:J,blockId:me,itemId:Pe,isCorrect:se}=Q,je=R.lessons[J];if(!(0,P.rV)(je))return R;const pe=oe({itemId:Pe,isCorrect:se,blockProgress:je.items[me]}),h=(0,B.hh)(de({lessonProgress:je,blockId:me,updatedBlockProgress:pe})),$=(0,P.b5)({courseProgress:R,lessonId:J,updatedLessonProgress:h});return(0,P.bo)({lessonId:J,prevCourseProgress:R,nextCourseProgress:$})}const Ce=R=>Object.values(R).length>0&&Object.values(R).every(Q=>Q.isComplete),be=R=>{const Q=(0,V.s0)(R.items,(J,me)=>{const Pe=(0,V.s0)(me.items??{},(se,je)=>[se,{...je,isComplete:!0,id:je.id,index:je.index}]);return[J,{...me,items:Pe,isComplete:!0}]});return{...R,isComplete:!0,items:Q,percentComplete:100}},xe=({blockId:R,items:Q,lessonProgress:J})=>{const me=J.items?.[R]??{items:{}},Pe=new Set(Q.map($=>String($.id))),se=(0,V.s0)(me.items??{},($,ge)=>{const Ae=Pe.has($);return[$,{...ge,isComplete:ge.isComplete||Ae,id:ge.id,index:ge.index}]}),pe=Object.keys(se).length===0||Ce(se),h={...me,id:R,items:se,...pe&&{isComplete:!0}};return _(de({lessonProgress:J,blockId:R,updatedBlockProgress:h}))},te=({blockProgress:R,itemId:Q})=>{if(!R.items)return R;const J=R.items[Q];return{...R,items:{...R.items,[Q]:{...J,retryAttemptCount:(J?.retryAttemptCount??0)+1}}}},_=R=>{const Q=(0,B.hh)(R);return Q.percentComplete===100?{...Q,isComplete:!0}:Q},de=({blockId:R,lessonProgress:Q,updatedBlockProgress:J})=>({...Q,items:{...Q.items,[R]:J}}),K=R=>{const Q=(0,V.s0)(R.items,(J,me)=>{const Pe=(0,V.s0)(me.items??{},(se,je)=>[se,(0,V.QD)(je,["isComplete","isCorrect","isViewed"])]);return[J,{id:me.id,index:me.index,items:Pe}]});return{...(0,V.QD)(R,["isComplete","percentComplete"]),items:Q}},le=R=>({...(0,V.QD)(R,["percentViewed","correctlyAnswered"]),id:R.id,index:R.index,items:(0,V.s0)(R.items??{},(Q,J)=>[Q,(0,V.QD)(J,["isViewed","isCorrect"])]),retryAttempts:(R.retryAttempts??0)+1}),oe=({isCorrect:R,itemId:Q,blockProgress:J})=>{if(!J.items)return J;const me=J.items[Q],Pe={...me,isComplete:R,isViewed:R,...me?.isCorrect===void 0&&{isCorrect:R}},se={...J.items,[Q]:Pe},je=Object.values(se).filter(Ae=>Ae.isCorrect).length,pe={...J,items:se,correctlyAnswered:je,...!R&&{lastIncorrectCardId:Q}},h=(0,B.f5)(pe),$=(0,B.QI)(h),ge=$.percentComplete===100;return{...$,...ge&&{isComplete:!0}}}},96192:(Ye,fe,i)=>{"use strict";i.d(fe,{Zn:()=>q,b5:()=>X,bo:()=>ee,rV:()=>F});var P=i(37253),B=i.n(P),V=i(35965);const q=xe=>!!xe&&xe.type==="quiz",F=xe=>!!xe&&xe.type==="blocks",X=({courseProgress:xe,lessonId:te,updatedLessonProgress:_})=>({...xe,lessons:{...xe.lessons,[te]:_}});function ee({lessonId:xe,nextCourseProgress:te,prevCourseProgress:_}){const de=te.lessons[xe],K=_.lessons[xe];if(de&&!B()(de,K)&&((0,V.C2)(de),Y({lessonId:xe,courseProgress:te,prevCourseProgress:_})),ae({lessonId:xe,prevCourseProgress:_,nextCourseProgress:te})){const le=Ce(_),oe=Ce(te),R=oe!==le,Q={...te,percentComplete:oe};return R&&(be({courseProgress:Q,lessonProgress:de}),Q.percentComplete!=null&&(0,V.O9)(Q.percentComplete)),Q}return te}function Y({courseProgress:xe,prevCourseProgress:te,lessonId:_}){const de=xe.lessons?.[_],K=te.lessons?.[_];if(de?.percentComplete===100&&K?.percentComplete!==100){const le=s(de);le&&(0,V.aM)(le)}}function ae({lessonId:xe,nextCourseProgress:te,prevCourseProgress:_}){const de=te.lessons?.[xe];if(!de)return!1;const K=_.lessons?.[xe]?.percentComplete===100,le=de.percentComplete===100,oe=K!==le,R=te.currentLesson!=null&&q(te.lessons[te.currentLesson])&&te.lessons[te.currentLesson]?.percentComplete===100;return oe||R}function s(xe){const{id:te}=xe;if(!te)throw new Error("Cannot create lesson payload: lesson.id is missing");if(q(xe)){const{passed:_,score:de,passingScore:K=0}=xe;return{id:te,..._!==void 0&&{passed:_},...de!==void 0&&{score:de},passingScore:K}}return{id:te}}function Ce(xe){const{lessons:te={}}=xe,_=Object.keys(te).length;if(_===0)return 0;const de=Object.values(te).filter(K=>K.isComplete).length;return Math.round(de/_*100)}function be({courseProgress:xe,lessonProgress:te}){if(!xe||!te)return;const _=s(te);_&&(0,V.vb)(xe,_)}},36939:(Ye,fe,i)=>{"use strict";i.d(fe,{B:()=>Q,A:()=>me});var P=i(36523),B=i(35965),V=i(76135),q=i(31896),F=i(6408),X=i(79335),ee=i(67644),Y=i(44625),ae=i(63545);const s=O=>O&&typeof O=="object"&&O.type&&ae.fT.includes(O.type),Ce=(O,he)=>{const ve=new Map;return O.forEach(Se=>{if((0,Y.c)(Se)){const ze=he.find(qe=>String(qe.id)===String(Se.id));ze&&ze.type==="blocks"&&ve.set(String(Se.id),String(ze.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((Se,ze)=>{if(Se?.id!=null&&(ve.items[Se.id]={id:Se.id,index:ze,isComplete:O.isComplete===!0&&ze===0,items:Se.items?{}:void 0},Se.items&&Array.isArray(Se.items))){const qe={};Se.items.forEach((pt,dt)=>{pt?.id!=null&&(qe[pt.id]={id:pt.id,index:dt,isComplete:O.isComplete===!0})}),Object.keys(qe).length>0&&(ve.items[Se.id].items=qe)}}),ve},xe=(O,he)=>{const ve=new Set(he.map(ze=>String(ze.id))),Se=[];return Object.values(O.lessons).forEach(ze=>{s(ze)&&(ve.has(String(ze.id))||Se.push(ze))}),Se},te=(O,he,ve)=>{const Se={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},ze={...O,lessons:{...O.lessons}},qe=xe(O,ve);Se.totalLegacyLessons=qe.length;const pt=Ce(he,ve),dt=[];return qe.forEach(vt=>{try{const Je=pt.get(String(vt.id))||String(vt.id),kt=ve.find(_e=>String(_e.id)===Je);if(kt&&kt.type==="blocks"){const _e=be(vt,kt);ze.lessons[String(kt.id)]=_e,String(vt.id)!==String(kt.id)&&delete ze.lessons[String(vt.id)],Se.successfulMigrations++}else dt.push(String(vt.id)),Se.failedMigrations++}catch(Je){console.warn(`Failed to migrate legacy lesson progress for lesson ${vt.id}:`,Je),dt.push(String(vt.id)),Se.failedMigrations++}}),{migratedProgress:ze,orphanedLessonIds:dt,migrationSummary:Se}},_=O=>Object.values(O.lessons).some(s),de=O=>{let he=0,ve=0;const Se=[];return Object.values(O.lessons).forEach(ze=>{ve++,s(ze)&&(he++,Se.includes(ze.type)||Se.push(ze.type))}),{legacyCount:he,totalCount:ve,legacyTypes:Se,hasLegacyProgress:he>0}},K=(O,he,ve)=>{if(!_(O))return O;const Se=te(O,he,ve);return Se.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",Se.orphanedLessonIds),Se.migratedProgress},le=O=>`rise/course/${O}`,oe=le("BOOKMARK_LESSON"),R=le("LOAD_COURSE"),Q=(0,P.action)(oe),J={lessons:{},percentComplete:0},me=(0,P.handle)(J,{[V.Kl]:q.GL,[V.bf]:q.Ew,[V.Om]:q.UZ,[V.w8]:q.tc,[V.sq]:q.$Z,[V.Zp]:q.jS,[V.y1]:q._Y,[F.z_]:X.Qv,[F.Eg]:X.Ki,[F.be]:X.ZL,[F.jZ]:X.Jx,[F.Ck]:X.pl,[F.fV]:X.Ux,[F.jo]:X.NZ,[F.V8]:X.uR,[F.Z8]:X.XW,[F.Dh]:X.yi,[F.ug]:X.bu,[oe]:se,[R]:Pe});function Pe(O,he){const ve=he.course?.lessons??[],Se=he._originalLessons??ve,ze=(0,B.y4)(h(ve));if(typeof ze!="object"||ze===null)return O;const qe={...O,...ze};return _(O)&&Se!==ve?K(qe,Se,ve):qe}function se(O,he){return(0,B.Fc)(he),{...O,currentLesson:he}}const je=({index:O,lessonId:he,settings:ve,type:Se})=>Se==="quiz"?{id:he,index:O,type:Se,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,Se,ze)=>pe(Se)?$({index:ze,items:Se.items,lessonId:Se.id,lessonProgress:ve,settings:Se.settings,type:Se.type}):Se.type==="blocks"?$({index:ze,items:Se.items,lessonId:Se.id,lessonProgress:ve,type:Se.type}):ve,{})}}function $(O){const{lessonId:he,index:ve,items:Se,lessonProgress:ze={},settings:qe,type:pt}=O,dt=je({lessonId:he,index:ve,settings:qe,type:pt});if(Se.length===0)return{...ze,[he]:dt};const vt=pt==="quiz"?Ae(Se):ge(Se);return{...ze,[he]:{...dt,items:vt}}}function ge(O){return O.reduce((he,ve,Se)=>{const ze=ve.id,qe=ve.items??[],pt=(0,ee.BC)(qe);return he[ze]={id:ze,index:Se,items:pt},he},{})}function Ae(O){return O.reduce((he,ve,Se)=>(he[ve.id]={id:ve.id,index:Se},he),{})}},6408:(Ye,fe,i)=>{"use strict";i.d(fe,{Ck:()=>X,Dh:()=>be,Eg:()=>s,FU:()=>de,NC:()=>Q,Nj:()=>le,QI:()=>te,RW:()=>me,V8:()=>ae,YC:()=>_,Yu:()=>K,Z8:()=>Ce,be:()=>q,fV:()=>ee,hy:()=>R,jZ:()=>F,jo:()=>Y,kK:()=>J,mg:()=>oe,ug:()=>xe,x6:()=>Pe,z_:()=>V});var P=i(36523);const B=se=>`rise/course/${se}`,V=B("QUIZ_LESSON_ADVANCE_STEP"),q=B("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),F=B("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),X=B("QUIZ_LESSON_RESTART"),ee=B("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),Y=B("QUIZ_LESSON_SET_ANSWER_MATCHES"),ae=B("QUIZ_LESSON_SET_ANSWER_TEXT"),s=B("QUIZ_LESSON_ADVANCE_TO_END"),Ce=B("QUIZ_LESSON_SET_TIME_REMAINING"),be=B("QUIZ_LESSON_SUBMIT_ANSWER"),xe=B("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),te=(0,P.action)(V),_=(0,P.action)(s),de=(0,P.action)(X),K=(0,P.action)(ee),le=(0,P.action)(ae),oe=(0,P.action)(xe),R=(0,P.action)(Ce),Q=(0,P.action)(Y),J=(0,P.action)(be),me=(0,P.action)(q),Pe=(0,P.action)(F)},79335:(Ye,fe,i)=>{"use strict";i.d(fe,{Jx:()=>ee,Ki:()=>F,NZ:()=>Ce,Qv:()=>q,Ux:()=>s,XW:()=>be,ZL:()=>X,bu:()=>te,oO:()=>de,pl:()=>ae,uR:()=>Y,yi:()=>xe});var P=i(96192),B=i(67757),V=i(35965);function q(K,le){const oe=K.lessons[le];if(!(0,P.Zn)(oe))return K;const R=oe.activeIndex??0,Q={...oe,activeIndex:R+1},J=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:Q});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:J})}function F(K,le){const oe=K.lessons[le];if(!(0,P.Zn)(oe))return K;const R=Object.keys(oe?.items)?.length,Q={...oe,activeIndex:R+1},J=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:Q});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:J})}function X(K,{lessonId:le,itemId:oe}){const R=K.lessons[le];if(!(0,P.Zn)(R))return K;const Q=R.items[oe];if(!Q)return K;const J={...Q,selectedIndices:[]},me=_({lessonProgress:R,itemId:oe,updatedQuizItemProgress:J}),Pe=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:me});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:Pe})}function ee(K,{lessonId:le,lessonProgress:oe}){return{...K,lessons:{...K.lessons,[le]:oe}}}function Y(K,{lessonId:le,itemId:oe,text:R}){const Q=K.lessons[le];if(!(0,P.Zn)(Q))return K;const J=Q.items[oe];if(!J)return K;const me=typeof R=="string"&&R.trim()===""?(0,B.QD)(J,["text"]):{...J,text:R},Pe=_({lessonProgress:Q,itemId:oe,updatedQuizItemProgress:me}),se=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:Pe});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:se})}function ae(K,le){const oe=K.lessons[le];if(!(0,P.Zn)(oe))return K;const R=(0,B.s0)(oe.items,(Pe,se)=>{const je={id:se.id,index:se.index};return[Pe,je]}),J={...(0,B.QD)(oe,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...oe.passed!==!1&&{passed:oe.passed},...oe.isComplete!==!1&&{isComplete:oe.isComplete},retryAttempts:(oe.retryAttempts??0)+1,items:R},me=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:J});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:me})}function s(K,{lessonId:le,itemId:oe,selectedIndex:R}){const Q=K.lessons[le];if(!(0,P.Zn)(Q))return K;const J=Q.items[oe];if(!J)return K;const me={...J,selectedIndex:R},Pe=_({lessonProgress:Q,itemId:oe,updatedQuizItemProgress:me}),se=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:Pe});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:se})}function Ce(K,{lessonId:le,itemId:oe,matches:R}){const Q=K.lessons[le];if(!(0,P.Zn)(Q))return K;const J=Q.items[oe];if(!J)return K;const me={...J,matches:R},Pe=_({lessonProgress:Q,itemId:oe,updatedQuizItemProgress:me}),se=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:Pe});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:se})}function be(K,{lessonId:le,timeRemaining:oe}){const R=K.lessons[le];if(!(0,P.Zn)(R))return K;const Q={...R,timeRemaining:oe},J=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:Q});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:J})}function xe(K,{lessonId:le,itemId:oe,isCorrect:R,finalRetryAttempt:Q,passToContinue:J}){const me=K.lessons[le];if(!(0,P.Zn)(me))return K;const Pe=me.passingScore??0,se=me.items[oe];if(!se)return K;const je={...se,isCorrect:R,isComplete:!0},pe={...me.items,[oe]:je},h=Object.keys(pe).length,$=Object.values(pe).filter(ve=>ve.isCorrect).length,ge=Math.round($/h*100),Ae=Math.round(Object.values(pe).filter(ve=>ve.isComplete).length/h*100);let O={...me,items:pe,score:ge,percentComplete:Ae};if(Ae===100){const ve=ge>=Pe,Se=J?ve:!0;(0,V.X_)(ve,ge,le,Q),O={...O,passed:ve,isComplete:Se,reportResults:!0}}const he=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:O});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:he})}function te(K,{lessonId:le,itemId:oe,selectedIndex:R}){const Q=K.lessons[le];if(!(0,P.Zn)(Q))return K;const J=Q.items[oe];if(!J)return K;const me=J.selectedIndices??[],se=R!==void 0&&me.includes(R)?me.filter(Ae=>Ae!==R):R!==void 0?[...me,R]:me,{selectedIndices:je,...pe}=J,h=se.length>0?{...pe,selectedIndices:se}:{...pe},$=_({lessonProgress:Q,itemId:oe,updatedQuizItemProgress:h}),ge=(0,P.b5)({courseProgress:K,lessonId:le,updatedLessonProgress:$});return(0,P.bo)({lessonId:le,prevCourseProgress:K,nextCourseProgress:ge})}function _({itemId:K,lessonProgress:le,updatedQuizItemProgress:oe}){return{...le,items:{...le.items,[K]:oe}}}function de(K,le){const{id:oe,passed:R,passingScore:Q,score:J,retryAttempts:me}=le,Pe=[R,me,J];if(!(Pe.length===3&&Pe.every(Ae=>Ae!=null)))return K;const je=K.lessons?.[oe]?.items??{},pe=Object.keys(je).length+1,h=K.lessons?.[oe];if(!h)return K;const $={...h,isComplete:!0,activeIndex:pe,reportResults:!0,passed:R,passingScore:Q,percentComplete:100,retryAttempts:me,score:J};return{...K,lessons:{...K.lessons,[oe]:$}}}},86145:(Ye,fe,i)=>{"use strict";i.d(fe,{Ay:()=>s,Wp:()=>Y});var P=i(36523),B=i(19752),V=i(24331);const q="rise/l10n/TOGGLE_LOCALE_SELECTOR",F=null,X=(Ce,{l10n:be})=>({...Ce,...be}),ee=(Ce,be)=>(0,V.TJ)(["l10n"],be,Ce).result,Y=(0,P.action)(q),ae=(Ce,be)=>({...Ce,...!be&&{localeSelectorOptions:void 0},showLocaleSelector:be}),s=(0,P.handle)(F,{[B.LK]:X,[B.LM]:X,[B.cF]:ee,[q]:ae})},2316:(Ye,fe,i)=>{"use strict";i.d(fe,{Ay:()=>K,D2:()=>J,NM:()=>Pe,Se:()=>oe,gA:()=>Q,ts:()=>R,u:()=>me});var P=i(27905),B=i.n(P),V=i(36523);const q="rise/search/RESET_SEARCH",F="rise/search/SET_SEARCH_ACTIVE",X="rise/search/SET_SEARCH_ACTIVE_LESSONS",ee="rise/search/SET_SEARCH_TRANSLATIONS",Y="rise/search/SET_SEARCH_LESSONS",ae="rise/search/SET_SEARCH_TERM",s={active:!1,activeLessons:[],translations:{},lessons:[],term:null},Ce=(se,je)=>je?B()("active",se.active,s):se,be=(se,je)=>B()("active",je,se),xe=(se,je)=>B()("activeLessons",je,se),te=(se,je)=>B()("translations",je,se),_=(se,je)=>B()("lessons",je,se),de=(se,je)=>B()("term",je,se),K=(0,V.handle)(s,{[q]:Ce,[F]:be,[X]:xe,[ee]:te,[Y]:_,[ae]:de}),le=se=>(0,V.action)(se),oe=le(q),R=le(F),Q=le(X),J=le(ee),me=le(Y),Pe=le(ae)},18391:(Ye,fe,i)=>{"use strict";i.d(fe,{Kq:()=>yt,Ng:()=>De,iE:()=>Ge,JD:()=>ut,M_:()=>Pt,wA:()=>H,d4:()=>st});var P=i(61708),B=i(19752),V=i(4322),q=i.n(V),F=i(36523);const X=(gt,{labelSet:Me})=>q()(gt,Me),ee=(0,F.handle)({},{[B.LK]:X});var Y=i(36939),ae=i(63006),s=i(94983),Ce=i(13662),be=i(86145),xe=i(16829),te=i(55328),_=i.n(te),de=i(45949),K=i.n(de),le=i(78107),oe=i.n(le),R=i(17247),Q=i.n(R),J=i(41558),me=i.n(J),Pe=i(70405),se=i.n(Pe),je=i(34984);const pe=(gt,Me)=>{const vs=oe()(Q()("id",Me.id),gt.content),Vs=vs===-1?_()(Me):se()(vs,Me);return K()({content:Vs},gt)},h=(gt,Me)=>me()(pe,gt,Me),$={[je.O]:h},ge=(0,F.handle)({content:[]},$);var Ae=i(2316),O=i(88523),he=i(29249),ve=i(94379),Se=i(72181);const ze={isOpen:!1,transcript:null},qe=(gt,Me)=>({...gt,isOpen:!0,transcript:Me}),pt=()=>({isOpen:!1,transcript:null}),dt=(gt,Me)=>gt.isOpen?{...gt,transcript:Me}:gt,vt={[Se.l6]:qe,[Se.ju]:pt,[Se.Y8]:dt},Je=(0,F.handle)(ze,vt);var kt=i(5683),_e=i(83416);const Ie=_e.BI?{learningPathUpNext:xe.A}:{},Ee=(0,P.HY)({course:B.Ay,courseLabels:ee,courseProgress:Y.A,features:ae.A,fonts:s.A,global:Ce.Ay,l10n:be.Ay,partnerContent:ge,search:Ae.Ay,sessionPreferences:O.Ay,slidesUI:he.Ay,status:ve.Ay,transcriptPanel:Je,ui:kt.A,...Ie}),{Provider:yt,connect:De,connectBase:Ge,dispatch:ut,store:Pt,useDispatch:H,useSelector:st}=(0,P.Nv)(Ee)},44625:(Ye,fe,i)=>{"use strict";i.d(fe,{K:()=>pe,c:()=>je});var P=i(63545);const B={padding:"medium",alignment:"left"},V={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,$=0)=>`item_${h}_${$}`,F=(h,$)=>[{id:q(`${$}_placeholder`,0),placeholder:!0,type:h,title:`Add ${h} content`}],X=h=>({...B,...V[h]??{}}),ee=h=>typeof h=="string"?h.replace(/<p><br><\/p>/g,""):h,Y=h=>h.map($=>{if($&&typeof $=="object"&&!Array.isArray($)){const ge={};for(const[Ae,O]of Object.entries($))ge[Ae]=ee(O);return ge}return $}),ae=h=>["Introduction","Summary"].map(($,ge)=>({id:q(`${h}_process`,ge),title:$,type:$.toLowerCase(),description:null,isHidden:!0})),s=(h,$)=>[{id:q(`${$}_text`,0),paragraph:h}],Ce=(h,$)=>[...ae($),...h],be=(h,$)=>[{id:q(`${$}_video`,0),caption:"",media:h}],xe=(h=[],$)=>({family:"multimedia",id:q(`${$}_embed`,0),items:h.length?h:F("embed",$),media:{},settings:X("embed"),type:"multimedia",variant:"embed"}),te=(h,$,ge)=>({family:"interactive-fullscreen",id:q(`${ge}_labeledgraphic`,0),items:h,media:$,settings:X("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),_=(h,$)=>({family:"interactive-fullscreen",id:q(`${$}_process`,0),items:Y(h),media:{},settings:X("process"),type:"interactive",variant:"process"}),de=({items:h,piles:$},ge)=>({family:"interactive-fullscreen",id:q(`${ge}_sorting`,0),items:h,media:{},piles:$,settings:X("sorting"),type:"interactive",variant:"sorting"}),K=(h,$)=>({family:"text",id:q(`${$}_text`,0),items:Y(h),settings:X("paragraph"),type:"text",variant:"paragraph"}),le=(h,$)=>({family:"interactive-fullscreen",id:q(`${$}_timeline`,0),items:h,media:{},settings:X("timeline"),type:"interactive",variant:"timeline"}),oe=(h,$={},ge)=>({family:"multimedia",id:q(`${ge}_video`,0),items:h?.video?be(h,ge):F("video",ge),media:{},settings:{...$,...X("video")},type:"multimedia",variant:"video"}),R=({items:h=[]},$)=>xe(h.map(({icon:ge,...Ae})=>Ae),$),Q=({items:h=[],media:$},ge)=>te(h.map(({hasMedia:Ae,...O})=>O),$,ge),J=({items:h=[]},$)=>{const ge=h.map(Ae=>({...Ae,isHidden:!1,type:"step"}));return _(Ce(ge,$),$)},me=({items:h=[]},$)=>le(h.map(({linePosition:ge,...Ae})=>Ae),$),Pe=(h,$)=>K(s(h,$),$),se=(h,$)=>{switch(h.type){case"embed":return R(h,$);case"map":return Q(h,$);case"process":return J(h,$);case"sorting":return de(h,$);case"timeline":return me(h,$);case"screencast":case"slidecast":case"video":return oe(h.media,h.settings,$);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 $=String(h.id),ge={description:"",icon:"Article",type:"blocks"},Ae=[se(h,$)],O=typeof h.description=="string"?h.description.trim():"";return O&&Ae.unshift(Pe(O,`${$}_desc`)),{...h,...ge,items:Ae,media:{}}}},35965:(Ye,fe,i)=>{"use strict";i.d(fe,{Fc:()=>wl,hd:()=>Ni,Rc:()=>xr,qO:()=>Ao,O9:()=>Ut,X_:()=>os,jr:()=>I,_$:()=>pr,JK:()=>ua,GJ:()=>ca,y4:()=>Rn,As:()=>Ue,Hm:()=>Tt,Wk:()=>hs,og:()=>Zn,GS:()=>Zt,xr:()=>fs,IV:()=>fr,bb:()=>vr,o1:()=>gr,vb:()=>Bl,aM:()=>Dl,C2:()=>da,xS:()=>Ai,no:()=>Cr,m5:()=>Qo});var P=i(49345),B=i(10789),V=i.n(B),q=i(34198),F=i.n(q),X=i(45949),ee=i.n(X),Y=i(86654),ae=i.n(Y),s=i(44336),Ce=i.n(s),be=i(67711),xe=i.n(be),te=i(91794),_=i.n(te),de=i(72168),K=i.n(de),le=i(51926),oe=i.n(le),R=i(33744),Q=i.n(R),J=i(67331),me=i.n(J),Pe=i(84929),se=i.n(Pe),je=i(17247),pe=i.n(je),h=i(77170),$=i.n(h);const ge=ne=>F()(P.QZ,ne),Ae=ne=>ee()({[ne]:P.QZ}),O=({startTime:ne,stopTime:Oe})=>Oe-ne,he=ne=>{switch(ne.type){case"FILL_IN_THE_BLANK":return kt(ne);case"MATCHING":return st(ne);default:return qe(ne)}},ve=ne=>{switch(ne.type){case"FILL_IN_THE_BLANK":return kt(ne);case"MATCHING":return st(ne);case"MULTIPLE_CHOICE":return Ie(ne);case"MULTIPLE_RESPONSE":return yt(ne);default:return Ie(ne)}},Se=({isUnfinished:ne,item:Oe,itemProgress:ft})=>{switch(Oe.type){case"FILL_IN_THE_BLANK":return _e(ne)(ft);case"MATCHING":return gt(Oe,ne)(ft);case"MULTIPLE_CHOICE":return Ee(Oe,ne)(ft);case"MULTIPLE_RESPONSE":return De(Oe,ne)(ft);default:return Ee(Oe,ne)(ft)}},ze=ne=>[ne],qe=F()(K()(Ae("title")),se()("answers")),pt=ge(se()("id")),dt=ge(se()("title")),vt=ne=>Oe=>ae()(pe()("id",Oe),qe(ne)),Je=ne=>xe()(Q())(qe(ne)),kt=F()(me()("title"),qe),_e=ne=>_()(V()(ne),V()(""),ge(se()("text"))),Ie=ne=>F()(vt(ne),se()("correct"))(ne),Ee=(ne,Oe)=>_()(V()(Oe),V()([]),F()(ze,Je(ne),se()("selectedIndex"))),yt=ne=>F()(Ce(),K()(vt(ne)),se()("corrects"))(ne),De=(ne,Oe)=>_()(V()(Oe),V()([]),F()(Ce(),K()(Je(ne)),se()("selectedIndices"))),Ge=({sourceId:ne,sourceTitle:Oe,targetId:ft,targetTitle:Mt})=>({source:{id:`source_${ne}`,title:Oe},target:{id:`target_${ft}`,title:Mt}}),ut=ge(se()("matchTitle")),Pt=ne=>{const Oe=pt(ne);return Ge({sourceId:Oe,sourceTitle:dt(ne),targetId:Oe,targetTitle:ut(ne)})},H=ne=>(Oe,ft)=>{const Mt=qe(ne),Ts=Mt.find(Po=>Po.id===ft),gs=Mt.find(Po=>Po.id===Oe);return Ge({sourceId:pt(Ts),sourceTitle:dt(Ts),targetId:pt(gs),targetTitle:ut(gs)})},st=F()(K()(Pt),qe),gt=(ne,Oe)=>_()(V()(Oe),V()([]),F()($(),oe()(H(ne)),se()("matches")));var Me=i(47474),vs=i.n(Me),Vs=i(88457),Be=i(16832),Gs=i(31896),Ws=i(79335),ns=i(83416),pn=i(64103),Wt=i(86484),sn=i.n(Wt);const Eo=ne=>ne!==void 0,Qe=sn()(Eo,F()(JSON.parse,pn.Base64.decode)),Ze=(ne,Oe)=>window.courseData?ne(window.courseData):window.course?{course:ne(window.course),media:[]}:Oe;var jt=i(312),fn=i.n(jt),Cs=i(7827),no=i.n(Cs),Sn=i(41820);const Nn=`${(0,ns._$)("RBC_URI")}/api/partner_content`,wt=null,Xt=fn()(`${Nn}/`),$s={transformRequest:[(ne,Oe)=>(Oe.Authorization=`Bearer ${(0,Sn.gf)()}`,ne)],headers:{"Content-Type":"application/json"}},Qr=()=>request({...$s,url:wt}).toPromise().then(path(["data","types"])),Lo=ne=>request({...$s,url:Xt(ne)}).toPromise().then(path(["data","content"])),ar=ne=>(0,Sn.Em)({method:"POST",url:Nn,data:JSON.stringify({ids:ne}),...$s}).map(no()(["data","content"]));var ir=i(71006),ro=i.n(ir),lr=i(78324),Zr=i.n(lr);const ke=(0,ns._$)("SERVICE_ENV")==="prod"?"com":"zone",gn=Zr()(JSON.stringify,ro()(new RegExp(`https://images.riseusercontent.${ke}/`,"g"),`${(0,ns._$)("IMAGES_URI")}/`),ro()(new RegExp(`https://riseusercontent.${ke}/`,"g"),`${(0,ns._$)("CDN_USER_CONTENT_URI")}/`),ro()(new RegExp(`https://video.rise.${ke}/`,"g"),`https://video.riseusercontent.${ke}/`),JSON.parse);var cr=i(52988),Ct=i.n(cr),Dt=i(27905),nt=i.n(Dt),vn=i(72970),es=i.n(vn),To=i(8466),xs=i.n(To),_r=i(55414),ht=i.n(_r),Ml=i(34379),ks=i.n(Ml),kl=i(56401),Jt=i.n(kl),Ol=i(58488),jo=i.n(Ol),Es=i(64104),Lt=i.n(Es),di=i(15241),Ls=i.n(di),ui=i(4322),ts=i.n(ui),hi=i(61319),et=i.n(hi),mi=i(37953),Cn=i.n(mi),Io=i(34552),tt=i.n(Io),pi=i(82738),ot=i.n(pi),fi=i(97886),An=i.n(fi);const Kn=ne=>!!ne,Gn={[Be.En]:["activeIndex",ht()],[Be.Ay]:["audioVideoPlayhead",Number],[Be.l7]:["isComplete",Kn],[Be.Ko]:["correctlyAnswered",ht()],[Be.WY]:["percentComplete",ht()],[Be.sZ]:["retryAttempts",ht()],[Be.jw]:["score",ht()],[Be.eZ]:["currentTime",ht()],[Be.Ze]:["percentViewed",ht()],[Be.mj]:["reportResults",ht()],[Be.p3]:["passed",ht()],[Be.ft]:["passingScore",ht()],[Be.pd]:["questionsDrawn",ht()],[Be.ce]:["questionList",K()(K()(ht()))],[Be.M$]:["timeRemaining",Number]},gi=ne=>(Oe,ft)=>nt()([xs()(Gn[ft])],Lt()(Gn[ft])(Oe),ne),Xr=ne=>(Oe,ft)=>{let Mt=Lt()(It[ft])(Oe);return ft===Be.fd&&(Mt=Mt(se()("items",ne))),{[xs()(It[ft])]:Mt}},Wo=ne=>Oe=>{const ft=ne?.[Oe.index];return An()(()=>Jt()(ft),()=>F()(ts()(Oe),et(),$(),oe()(Xr(Oe)))(ft))(Oe)},dr=ne=>K()(Wo(ne)),ur=F()(et(),$(),oe()(Xr(null))),Jr=ne=>Oe=>{const ft=se()(Be.fd,ne),Mt=se()("items",Oe);return F()(sn()(()=>Ct()([es()(Be.ce),pe()(Be.pd,!0),()=>!Jt()(ft)])(ne),Ts=>{const gs=K()(ur,ft);return nt()("originalItemProgress",gs,Ts)}),ts()(Oe),An()(()=>ks()(ft),ot()(Ls()("items"),dr(ft)(Mt))),et(),$(),oe()(gi(Oe)))(Cn()(jo()(Gn),ne))};function qr(ne,Oe){const ft=se()("lessons",Oe),Mt=Ts=>{const gs=se()(Ts.index,ft);return An()(()=>Jt()(gs),Jr(gs))(Ts)};return An()(()=>ks()(ft),F()(nt()("percentComplete",tt()(0,Be.WY,Oe)),ee()({lessons:K()(Mt)})))(ne)}const It={[Be.Ay]:["audioVideoPlayhead",Number],[Be.Ko]:["correctlyAnswered",ht()],[Be.l7]:["isComplete",Kn],[Be.w5]:["isCorrect",Kn],[Be.Wj]:["isViewed",Kn],[Be.fd]:["items",dr],[Be.BW]:["percentViewed",ht()],[Be.qX]:["matches",ht()],[Be.sZ]:["retryAttemptCount",Number],[Be.Pz]:["selectedIndex",ht()],[Be.Ig]:["selectedIndices",ht()],[Be.S$]:["text",ht()]};var vi=i(53625),$o=i.n(vi),ea=i(53970),xn=i.n(ea),Ci=i(98511),xi=i.n(Ci);const hr={activeIndex:[Be.En,ht()],audioVideoPlayhead:[Be.Ay,Number],correctlyAnswered:[Be.Ko,ht()],currentTime:[Be.eZ,ht()],isComplete:[Be.l7,Number],passingScore:[Be.ft,ht()],percentComplete:[Be.WY,ht()],percentViewed:[Be.Ze,ht()],retryAttempts:[Be.sZ,ht()],score:[Be.jw,ht()],questionsDrawn:[Be.pd,ht()],questionList:[Be.ce,K()(K()(ht()))],reportResults:[Be.mj,ht()],passed:[Be.p3,ht()],timeRemaining:[Be.M$,Number]},ta=(ne,Oe)=>({[xs()(So[Oe])]:Lt()(So[Oe])(ne)}),bi=ne=>F()(An()(ks(),xn()(se()("index",ne))),et(),$(),oe()(ta))(xi()(ks(),Cn()(jo()(So),ne))),sa=F()(et(),$(),K()(bi)),yi=(ne,Oe)=>({[xs()(hr[Oe])]:Lt()(hr[Oe])(ne)});function na(ne){const Oe=se()("items",ne),ft=se()("index",ne),Mt=An()($o()(Jt(),ks()),sa)(Oe);return F()(xn()(ft),An()(()=>$o()(Jt(),ks())(Mt),nt()(Be.fd,Mt)),et(),$(),oe()(yi))(Cn()(jo()(hr),ne))}const oa=F()(xn()(Be.WY),tt()(0,"percentComplete")),So={audioVideoPlayhead:[Be.Ay,Number],correctlyAnswered:[Be.Ko,ht()],isComplete:[Be.l7,Number],isCorrect:[Be.w5,Number],isViewed:[Be.Wj,Number],items:[Be.fd,sa],matches:[Be.qX,ht()],percentViewed:[Be.BW,ht()],retryAttemptCount:[Be.sZ,Number],selectedIndex:[Be.Pz,ht()],selectedIndices:[Be.Ig,K()(Number)],text:[Be.S$,ht()]},Pn=ne=>window.env?.[ne],Ei=ne=>`${Pn("CDN_USER_CONTENT_URI")}/${ne}`,Li=()=>!!window.shareId,ra=()=>!!window.contentId,aa=()=>!!window.snapshotId,Ti=()=>!!window.shareId&&!!window.hasPassword,ji=ra()&&!ns.BI?gn:ne=>ne,Go={fetch:()=>{if(Qn.isExport||window.courseData||window.course)return Ze(Qe,{});{const ne=()=>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:ne(),json:!0,withCredentials:!0,timeout:3e4}).then(Vs.lZ).then(Oe=>typeof Oe=="object"?Oe:Qe(Oe)).then(ji)}},fetchPartnerContent:ne=>Qn.isExport||window.partnerContent?vs().of(window.partnerContent.content):ar(ne),getEnv:Pn,isPasswordProtected:Ti,isShare:Li,isSnapshotPreview:aa,resolvePath:Ei,verifySharePassword:ne=>(0,Vs.Em)({method:"POST",url:`${Pn("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:ne},json:!0}).then(Oe=>Oe.body)},ia=(ne,{id:Oe,type:ft,...Mt})=>ft==="quiz"?(0,Ws.oO)(ne,{id:Oe,...Mt}):(0,Gs.GL)(ne,Oe),Si=(ne,Oe)=>ne+((Oe||{})[Be.l7]||0),la=(ne,Oe)=>(ft,{id:Mt,type:Ts,...gs})=>Oe.lessons[Mt]?{...ft,...ne(ia(Oe,{id:Mt,type:Ts,...gs}).lessons[Mt])}:ft;function No(ne,Oe,ft){const Mt=Oe.reduce(la(ne,ft),{}),Ts=Object.keys(ft.lessons||{}).length,gs=Object.values(Mt).reduce(Si,0),Po=Math.round(gs/Ts*100);return{lessons:Mt,p:Po}}window.Rise=Object.assign(window.Rise||{},{completeLessons:No,decodeCourseProgress:qr,encodeCourseProgress:oa,encodeLessonProgress:na});const Qn={...Go,...window.Runtime??{}},at=Qn,pr=ne=>window.env?.[ne],ca=ne=>at.getMasteryScore!=null?at.getMasteryScore(ne):ne.passingScore,fr=ne=>{if(at.onCreateHistory!=null)return at.onCreateHistory(ne)},Ni=(ne={},Oe)=>at.fetch!=null?Promise.resolve(at.fetch(Oe)):Promise.resolve(ne),Ao=(ne=[])=>{if(at.fetchPartnerContent!=null)return at.fetchPartnerContent(ne)},wl=ne=>{if(at.bookmark!=null)return at.bookmark(ne)},Rn=ne=>at.getProgress!=null?at.getProgress(ne):ne,Dl=ne=>at.setLessonComplete!=null?at.setLessonComplete(ne):ne,da=ne=>at.setLessonProgress!=null?at.setLessonProgress(ne):ne,Bl=(ne,Oe)=>at.setCourseProgress!=null?at.setCourseProgress(ne,Oe):ne,Ut=ne=>{if(at.finish!=null)return at.finish(ne)},os=(ne,Oe,ft,Mt)=>{at.finishQuiz!=null&&at.finishQuiz(ne,Oe,ft,Mt)},I=(ne,Oe,ft,Mt)=>{at.finishStoryline!=null&&at.finishStoryline(ne,Oe,ft,Mt)},Ue=()=>at.isComplete!=null?at.isComplete():null,Tt=()=>at.isExport!=null?at.isExport():!1;function hs(){if(at.isExport!=null){const ne=window.partnerContent?.content;return at.isExport()&&!!ne}return!1}const Zt=()=>at.isShare!=null?at.isShare():!1,fs=()=>at.isSnapshotPreview!=null?at.isSnapshotPreview():!1,Zn=()=>at.isPasswordProtected!=null?at.isPasswordProtected():!1,gr=ne=>{const Oe=ne||"";return at.resolvePath!=null?Oe.startsWith("http")||Oe.startsWith("data:")||Oe.startsWith("//")?Oe:at.resolvePath(Oe):Oe.startsWith("data:")||Oe.startsWith("http")||Oe.startsWith("//")?Oe:`/${Oe}`},Qo=ne=>at.verifySharePassword!=null?at.verifySharePassword(ne):Promise.resolve({isValid:!0}),vr=ne=>{if(at.reportAnswer!=null){const{id:Oe,isCorrect:ft,isUnfinished:Mt=!1,item:Ts,itemProgress:gs,duration:Po,retryAttempts:wd,title:Dd}=ne,{id:Hl,title:zl,type:Pi}=Ts;return at.reportAnswer({id:Oe,type:Pi,isCorrect:ft,itemId:Hl,questionTitle:(0,P.QZ)(zl),quizTitle:(0,P.QZ)(Dd),retryAttempts:wd,answers:he(Ts),correctResponse:ve(Ts),response:Se({isUnfinished:Mt,item:Ts,itemProgress:gs}),isUnfinished:Mt,latency:O(Po)})}return!1},Cr=ne=>{if(at.startLesson!=null)return at.startLesson(ne)},xr=()=>{if(at.fetchAvailableLocales!=null)return at.fetchAvailableLocales()},ua=()=>{if(at.getLocale!=null)return at.getLocale()},Ai=ne=>{if(at.setLocale!=null)return at.setLocale(ne)}},72181:(Ye,fe,i)=>{"use strict";i.d(fe,{Y8:()=>X,ju:()=>F,l6:()=>q});var P=i(312),B=i.n(P);const V=B()("rise/transcriptPanel/"),q=V("OPEN_TRANSCRIPT_PANEL"),F=V("CLOSE_TRANSCRIPT_PANEL"),X=V("UPDATE_TRANSCRIPT_PANEL")},98228:(Ye,fe,i)=>{"use strict";i.d(fe,{W:()=>F});var P=i(59288),B=i.n(P),V=i(26058),q=i(47418);function F(){const X=(0,V.W6)();return(0,P.useMemo)(()=>({...X,push:(ee,Y)=>X.push((0,q.B)(ee,X.location),Y),replace:(ee,Y)=>X.replace((0,q.B)(ee,X.location),Y)}),[X])}},82719:(Ye,fe,i)=>{"use strict";i.d(fe,{Dh:()=>q,HH:()=>Ce,S:()=>s,UR:()=>F,Zn:()=>oe,cP:()=>le,fF:()=>xe,i7:()=>ee,pP:()=>K,xp:()=>V});var P=i(24331),B=i(98456);const V=(R,Q,J)=>(0,B.uW)(R)?J?.[Q]?.[R.l10nId]:void 0,q=(R,Q,J,me)=>{if(!(0,B.uW)(R))return R;if(!me)return;const Pe=V(R,Q,me);if(Pe!==void 0)return Pe;const se=V(R,J,me);if(se!==void 0)return se;const je=te(R,me);return je.length>0?je[0].value:void 0},F=(R,Q,J,me)=>!Q||!J||!me?R:(0,P.v9)(R).reduce((Pe,{l10nId:se,path:je})=>{const pe=q({l10nId:se},Q,J,me),h=(0,P.re)(je,pe,Pe);return h.type==="accepted"?h.result:Pe},R),X=(R,Q,J)=>F(R,Q,Ce(J),xe(J)),ee=(R,Q,J)=>q(R,Q,Ce(J),xe(J)),Y=(R,Q,J)=>V(R,Q,xe(J));function ae(R,Q){return Q?.find(J=>J.locale===R)}function s(R){return R?.l10n?.locales}function Ce(R){return R?.l10n?.defaultLocale}function be(R,Q){return R!==Ce(Q)}function xe(R){return R?.l10n?.translations}function te(R,Q){return(0,B.uW)(R)?Object.keys(Q)?.map(J=>{const me=V(R,J,Q);if(me)return{locale:J,value:me}}).filter(Boolean)??[]:[]}const _=(R,Q)=>te(R,xe(Q));function de(R){return R.l10n?.translationUpdates?.updateCount??0}const K=R=>(0,B.uW)(R)?R.l10nId:void 0;function le(R){return R?.l10n?.localeSelectorOptions}function oe(R){return R?.l10n?.showLocaleSelector}},37322:(Ye,fe,i)=>{"use strict";i.d(fe,{DB:()=>se,H5:()=>Pe,ME:()=>R,bX:()=>je,dE:()=>Q,ny:()=>me,xm:()=>oe});var P=i(72970),B=i.n(P),V=i(35884),q=i.n(V),F=i(83416);const X=(0,F._$)("CDN_USER_CONTENT_URI"),ee=(0,F._$)("CDN_URI"),Y=B()("useCrushedKey"),ae=(0,F._$)("IMAGES_URI"),s=q()(/-stock[-_]image.jpg/),Ce=(0,F._$)("RBC_IMAGES_URI"),be=(0,F._$)("ASSETS_URI"),xe=q()(new RegExp(`^${X}/review`)),te=(0,F._$)("CDN_US_URI"),_=pe=>{const{crushedKey:h,key:$,useCrushedKey:ge,src:Ae}=pe;return Y(pe)?ge&&h?(0,F.o1)(h):(0,F.o1)($):(0,F.o1)(Ae)},de=pe=>`${X}/${pe}`,K=pe=>!pe||!pe.key?"":`${Ce}/b:fff,f:jpg,s:cover,w:550,h:296/${pe.key}`,le=pe=>{if(!pe||!pe.key)return"";const{crushedKey:h,key:$,useCrushedKey:ge}=pe;return Y(pe)&&ge?h?`${ae}/f:jpg,b:fff,s:cover,w:340/${h}`:"":`${ae}/f:jpg,b:fff,s:cover,w:340/${$}`},oe=pe=>{if(!pe||!pe.key)return"";const{crushedKey:h,key:$,useCrushedKey:ge}=pe;return ae?Y(pe)&&ge&&h?`${ae}/f:png,a:retain,s:cover,t:true,w:340/${h}`:`${ae}/f:png,a:retain,s:cover,t:true,w:340/${$}`:_(pe)},R=pe=>{if(!pe||!pe.key)return"";const{crushedKey:h,key:$,useCrushedKey:ge}=pe;return ae?s($)?`${ae}/f:jpg,a:retain,b:fff,w:1680,q:65/${$}`:Y(pe)?ge&&h?`${X}/${h}`:`${X}/${$}`:xe(pe.src)?pe.src:`${ae}/f:jpg|png,a:retain,b:fff/${$}`:_(pe)},Q=(pe,h="src")=>{const{key:$,src:ge,thumbnail:Ae,thumbnailKey:O}=pe,he=X?`${X}/${$}`:_({key:$,src:ge}),ve=X?`${X}/${O}`:_({key:O,src:Ae});return h==="src"?he:ve},J=pe=>{if(!pe||!pe.key)return"";const{crushedKey:h,key:$,useCrushedKey:ge}=pe;return Y(pe)&&ge&&h?`${ae}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${h}`:`${ae}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${$}`},me=({height:pe,imageKey:h,width:$})=>{if(Ce){const ge=encodeURIComponent(h);return`${Ce}/b:fff,f:jpg,s:cover,w:${$},h:${pe}/${ge}`}return(0,F.o1)(`partnerContent/${h}`)},Pe=()=>{const pe=be||ae,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,F.o1)(`partnerContent/${h}`)},se=()=>{const pe="NBIC_logo_blue.svg";return ee?`${ee}/assets/rise/assets/partner-content/${pe}`:(0,F.o1)(`partnerContent/${pe}`)},je=pe=>{const{key:h,src:$}=pe;return te?`${te}/${h}`:_({key:h,src:$})}},20441:(Ye,fe,i)=>{"use strict";i.d(fe,{Em:()=>s,Vu:()=>Y,on:()=>ae,uI:()=>Ce,wD:()=>be,xQ:()=>xe});var P=i(44223),B=i(4322),V=i.n(B),q=i(83416),F=i(52439);const X=q.BI?window.env:V()(window.env,{ACCESS_COOKIE_NAME:(0,F.W5)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),ee=(0,P.A)(X),Y=ee.closeSession,ae=ee.on,s=ee.request,Ce=ee.refreshSession,be=ee.resetSession,xe=ee.getAuthorizationUrl,te=ee.fetch},52706:(Ye,fe,i)=>{"use strict";i.d(fe,{lL:()=>me,t9:()=>yt,XC:()=>ze,xD:()=>Ie,cP:()=>pe,Wn:()=>h,W8:()=>Ae,WA:()=>he});var P=i(9988),B=i(92348),V=i.n(B),q=i(34198),F=i.n(q),X=i(92629),ee=i.n(X),Y=i(40966),ae=i.n(Y),s=i(62116),Ce=i.n(s),be=i(37600),xe=i.n(be),te=i(86484),_=i.n(te),de=i(5181),K=i(42770),le=i(13850),oe=i(9041),R=i(76672);K.A.register(le.A),K.A.register(oe.A);const Q="#ff631e";function J(De){if(De==null)return null;try{return(0,R.to)((0,R.qg)(De),"srgb")}catch{return null}}const me=V()({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),Pe=[[32,me.NEAR_BLACK],[64,me.DARK],[128,me.MED],[256,me.LIGHT]],se=4.5,je=De=>{const Ge=J(De);if(Ge==null)return 0;const[ut,Pt,H]=Ge.coords.map(gt=>gt*255);return .2126*ut+.7152*Pt+.0722*H},pe=De=>De?1-je(De)/255>.4:!1,h=De=>De?1-je(De)/255>.25:!1,$=De=>{if(!De)return null;const Ge=parseInt(De.substr(1),16);return Number.isNaN(Ge)?null:Ge.toString(16).padStart(6,"0").padStart(7,"#")},ge=(De,Ge)=>{const ut=$(Ge);return!ut||ut.length!==7?De:ut},Ae=ee()((De,Ge)=>{const ut=(0,P.A)(Ge).slice(0,3),Pt=De>=0?ut.map(H=>(1-De)*H+De*255):ut.map(H=>(1+De)*H);return O(Pt)}),O=(De=[])=>"#"+De.slice(0,3).map(Ge=>Math.min(255,Math.max(0,Math.round(Ge))).toString(16).padStart(2,"0")).join(""),he=Ae(.9),ve=Ae(-.5),Se=Ae(-.2),ze=De=>{const Ge=je(De);return Pe.find(([Pt])=>Pt>Ge)?.[1]},qe=De=>De.toString(16).padStart(6,"0").padStart(7,"#"),pt=_()(Ce()(Number),F()(xe(),qe)),dt=F()(pt,ae()(Q));function vt(De,Ge){if(De==="none"||!De||!Ge)return{};const ut=Je(De,Ge),Pt=`${ut.toFixed(2)}:1`;let H=!1,st=!1,gt=!1,Me=!1,vs=!1;return ut>=7?(H=!0,st=!0,gt=!0,Me=!0,vs=!0):ut>=4.5?(H=!0,gt=!0,vs=!0):ut>=3&&(gt=!0,vs=!0),{ratio:Pt,bodyTextAA:H,bodyTextAAA:st,largeTextAA:gt,largeTextAAA:Me,graphicalUiComponentsAA:vs}}function Je(De,Ge){return(0,R.v2)(J(De),J(Ge),"WCAG21")}function kt(De){const[Ge,ut,Pt]=hexToRgba(De).slice(0,3).map(_e);return .2126*Ge+.7152*ut+.0722*Pt}function _e(De){const Ge=De/255;return Ge<=.04045?Ge/12.92:((Ge+.055)/1.055)**2.4}const Ie=De=>vt("#fff",De)["bodyTextAA"]?de.Em.LIGHT:de.Em.DARK,Ee=(De,Ge)=>De===TEXT_COLOR.DARK||De===TEXT_COLOR.AUTO&&Ie(Ge)===TEXT_COLOR.DARK,yt={[me.NEAR_BLACK]:Ae(.1),[me.DARK]:Ae(-.4),[me.MED]:Ae(-.2),[me.LIGHT]:Ae(.3)}},63545:(Ye,fe,i)=>{"use strict";i.d(fe,{C_:()=>se,S6:()=>Pe,by:()=>R,fT:()=>je,o4:()=>Q,xA:()=>q,y4:()=>oe,yG:()=>V});var P=i(92348),B=i.n(P);const V={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"},F={EDITOR:1,MANAGER:2,OWNER:3},X={[F.EDITOR]:"Author",[F.MANAGER]:"Admin",[F.OWNER]:"Owner"},ee=Object.values(F).map(pe=>({id:pe,title:X[pe]})),Y=({name:pe,isOnePage:h})=>{const $={Admin:h?"Microlearning manager":"Manager",Author:h?"Microlearning editor":"Editor",Owner:h?"Microlearning owner":"Owner"},ge={Admin:h?"Microlearning manager":"Course manager",Author:h?"Microlearning collaborator":"Course collaborator",Owner:h?"Microlearning owner":"Course owner"};return is360?$[pe]:ge[pe]},ae="questionBanks",s=9,Ce=13,be=27,xe=32,te=38,_=40,K=864e5*3,le=100,oe="onePage",R=B()({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"},J=Object.values(Q),me={PORTRAIT:"portrait",LANDSCAPE:"landscape"},Pe={DARK:"#000",LIGHT:"#fff"},se={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:(Ye,fe,i)=>{"use strict";i.d(fe,{BC:()=>P,QI:()=>V,f5:()=>q,hh:()=>B});const P=Y=>Y.reduce((ae,s,Ce)=>("id"in s&&(ae[s.id]={id:s.id,index:Ce}),ae),{}),B=Y=>({...Y,percentComplete:X({items:Y.items,key:"isComplete"})}),V=Y=>({...Y,percentComplete:X({items:Y.items,key:"isComplete"})}),q=Y=>({...Y,percentViewed:X({items:Y.items,key:"isViewed"})});function F({itemId:Y,isCorrect:ae,progress:s}){const Ce={...s,items:{...s.items,[Y]:{...s.items?.[Y],id:Y,index:s.items?.[Y]?.index??0,isComplete:ae,isViewed:ae,...s.items?.[Y].isCorrect===void 0?{isCorrect:ae}:{}}}};Ce.items[Y]?.isCorrect===!1&&(Ce.lastIncorrectCardId=Y);const be=ee(Ce),xe=be.percentComplete!==100?V(be):be,te=q(xe);return te.percentComplete===100?{...te,isComplete:!0}:te}function X({items:Y,key:ae}){const s=Y??{},Ce=Object.keys(s).length,be=Object.values(s).filter(xe=>xe?.[ae]).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:(Ye,fe,i)=>{"use strict";i.d(fe,{$t:()=>xe,NO:()=>s,Pf:()=>Ce,WE:()=>be,c:()=>Y});var P=i(17326),B=i.n(P);const V=()=>{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"},F=()=>{if(!navigator.userAgent)return"desktop";const _=new P.UAParser(navigator.userAgent).getResult();return _.device?.type==="mobile"?"mobile":_.device?.type==="tablet"?"tablet":"desktop"},X=()=>{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 ae(te){return"userAgentData"in te}const s=()=>{if(ae(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},Ce=()=>({name:V(),version:q(),type:F(),manufacturer:X(),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}},xe=()=>navigator.userAgent??null},23366:(Ye,fe,i)=>{"use strict";i.d(fe,{Ve:()=>be,lQ:()=>te,rq:()=>Ce});var P=i(34198),B=i.n(P),V=i(30041),q=i.n(V),F=i(64104),X=i.n(F),ee=i(78324),Y=i.n(ee),ae=i(77406),s=i.n(ae);function Ce(..._){return B()(...q()(1,_))(X()(_))}function be(_,...de){return Y()(...de)(_)}function xe(_,...de){return pipeP(...de)(_)}const te=()=>{}},47418:(Ye,fe,i)=>{"use strict";i.d(fe,{B:()=>q});var P=i(72147);const B=["fromDashboard","locale"];function V(F,X){const ee=typeof F=="function"?F(X):F;return typeof ee=="string"?(0,P.Rr)(ee):ee}function q(F,X){const ee=V(F,X),Y=new URLSearchParams(X.search),ae=new URLSearchParams(ee.search);for(const s of B){const Ce=Y.get(s);Ce&&!ae.has(s)?ae.set(s,Ce):ae.has(s)&&!ae.get(s)&&ae.delete(s)}return{...ee,search:ae.toString()}}},88457:(Ye,fe,i)=>{"use strict";i.d(fe,{Em:()=>se,lZ:()=>pe});var P=i(45872),B=i.n(P),V=i(883),q=i.n(V),F=i(47067),X=i.n(F),ee=i(69322),Y=i.n(ee),ae=i(40966),s=i.n(ae),Ce=i(25578),be=i.n(Ce),xe=i(37600),te=i.n(xe),_=i(52439),de=i(20441),K=i(48004);const le=(he,ve)=>(...Se)=>{try{return he(...Se)}catch(ze){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(ze),K.L.addError(ze),ve(ze)}};function oe(he,ve){const Se=ve.split("=");return B()(Se[0].trim(),Se[1].trim(),he)}const R=q()(Y()(oe,{}),be()(/; */));function Q(he,ve){const Se=ve.indexOf(":"),ze=ve.substr(0,Se).trim().toLowerCase(),qe=ve.substr(Se+1).trim();return ze&&(he[ze]=he[ze]?he[ze]+", "+qe:qe),he}function J(he){return he?he.split(`
`).reduce(Q,{}):{}}function me(he){return Math.floor(he.loaded/he.total*100)}function Pe(he){const ve=[];for(const Se in he){if(!Array.isArray(he[Se])){ve.push(encodeURIComponent(Se)+"="+encodeURIComponent(he[Se]));continue}for(const ze of he[Se])ve.push(Pe(ze))}return ve.join("&")}function se(he){let ve,Se=!1;const ze=new Promise(function qe(pt,dt){const vt=he.signal;if(vt?.aborted){dt(new DOMException("Aborted","AbortError"));return}const Je=Be=>{throw dt(Be),Be},kt=()=>{ve.abort(),dt(new DOMException("Aborted","AbortError"))},_e=he.data;let Ie=le(he.deserialize??X(),Je);const Ee=he.headers??{},yt=he.json??!1,De=he.jwt??!1,Ge=he.token??null,ut=he.method??"GET",Pt=he.onUploadProgress;let H=le(he.serialize??X(),Je),st=he.url;const gt=he.withCredentials??!1,Me=he.file,vs=he.timeout??3e3;ve=new XMLHttpRequest;const Vs=setTimeout(()=>{ve.abort(),dt({error:"request timed out"})},vs);if(yt&&(Ie=le(JSON.parse,dt),H=le(JSON.stringify,dt),Ee["Content-Type"]="application/json"),ut==="GET"&&_e&&(st+="?"+Pe(_e)),De){const Be=Ge||(0,_.rS)();Ee.Authorization="Bearer "+Be}vt?.addEventListener("abort",kt),ve.withCredentials=gt,ve.addEventListener("abort",dt),ve.addEventListener("error",dt),ve.addEventListener("load",function(){ve.status>=400?[401,403].includes(ve.status)?Se?dt({error:"Unable to resume session"}):(0,de.wD)().then(()=>{qe(pt,dt),Se=!0}).catch(Be=>{K.L.addError(Be),dt({error:"Unable to resume session"})}):dt(Ie(ve.response)):(pt({body:ve.status===204?void 0:Ie(ve.response),headers:J(ve.getAllResponseHeaders()),status:ve.status}),vt?.removeEventListener("abort",kt)),clearTimeout(Vs)}),ve.upload&&typeof Pt=="function"&&ve.upload.addEventListener("progress",Pt),ve.open(ut,st);for(const Be in Ee)ve.setRequestHeader(Be,Ee[Be]);ut!=="GET"&&_e?ve.send(H(_e)):Me?ve.send(Me):ve.send()});return ze.abort=(...qe)=>ve.abort(...qe),ze}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 $=(he=>(he[he.KB=1024]="KB",he[he.MB=1048576]="MB",he[he.GB=1073741824]="GB",he[he.TB=1099511627776]="TB",he))($||{});const ge={KB:(he=1)=>1024*he,MB:(he=1)=>1048576*he,GB:(he=1)=>1073741824*he,TB:(he=1)=>1099511627776*he},Ae={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 ze=Object.keys($).reverse().find(vt=>he>=$[vt]);if(!ze)return`${he} ${h("byte",he>1)}`;const qe=he/$[ze],pt=qe%1===0?qe.toFixed(0):qe.toFixed(2),dt=ve==="long"?h(Ae[ze].long,qe>1):Ae[ze].short;return`${pt} ${dt}`}},77541:(Ye,fe,i)=>{"use strict";i.d(fe,{I6:()=>se,LI:()=>Je,Ll:()=>Pe,Vx:()=>je,Zd:()=>me,dM:()=>vt,sg:()=>Ae});var P=i(10789),B=i.n(P),V=i(34198),q=i.n(V),F=i(45005),X=i.n(F),ee=i(2353),Y=i.n(ee),ae=i(91794),s=i.n(ae),Ce=i(64104),be=i.n(Ce),xe=i(74221),te=i.n(xe),_=i(78324),de=i.n(_),K=i(34552),le=i.n(K),oe=i(25578),R=i.n(oe),Q=i(98456);const J=q()(X()(".svg"),le()("","originalUrl")),me=s()(J,B()({width:"500rem"}),B()({})),Pe=_e=>{if(_e){const Ie=_e.trim();if(Ie!==""&&Ie!=='""')return _e}return""},se=_e=>Pe(_e)||void 0,je=_e=>_e?"img":void 0,pe=_e=>de()(le()("","originalUrl"),R()("."),be(),Y()(_e)),h=pe("svg"),$=pe("gif"),ge=/\.svg$/i,Ae=_e=>ge.test(_e),O={process:"center",timeline:"left"},he=_e=>O[_e]||"left",ve=(_e,Ie)=>{const Ee=te()(_e,Ie);return Ee.media.image.key===Ie.media.image.key&&Object.assign(Ee.media.image,{crushedKey:Ie.media.image.key,useCrushedKey:!0}),Ee},Se=({src:_e,alpha:Ie})=>({alpha:Ie,media:{image:{key:ze(_e),src:_e}}}),ze=_e=>typeof _e!="string"?"":_e.startsWith("http")?new URL(_e).pathname.slice(1):_e,qe=({coverImageAlpha:_e,coverImage:Ie})=>({alpha:_e,src:Ie}),pt=({lessonHeaderImageAlpha:_e,lessonHeaderImage:Ie})=>({alpha:_e,src:Ie}),dt=(_e,Ie)=>(Ee,yt)=>{const De=Ee[Ie];if(Ee?.theme){const Ge=yt?yt(De?.media):De?.media;if((0,Q.uW)(Ge))return De;const ut={...De,media:{...Ge}},Pt=Se(_e(Ee.theme));return ve(ut,Pt)}else return De},vt=dt(qe,"coverImage"),Je=dt(pt,"lessonHeaderImage"),kt=async _e=>{const Ie=new Image;return Ie.src=_e,await Ie.decode(),Ie}},67757:(Ye,fe,i)=>{"use strict";i.d(fe,{QD:()=>te,UA:()=>X,s0:()=>_});var P=i(92536),B=i.n(P);const V=de=>!!de&&Object.prototype.toString.call(de)==="[object Object]",q=Array.isArray,F=(de,K)=>Object.fromEntries(Object.entries(K).map(de)),X=de=>Object.keys(de).length,ee=(de,K,le)=>{const oe={};for(const R in le)oe[de(R)]=K(le[R]);return oe},Y=de=>de.map(be),ae=de=>de.map(xe),s=de=>ee(camelCase,be,de),Ce=de=>ee(snakeCase,xe,de),be=de=>V(de)?s(de):q(de)?Y(de):de,xe=de=>V(de)?Ce(de):q(de)?ae(de):de,te=(de,K)=>{const le=new Set(K),oe={};for(const R in de)le.has(R)||(oe[R]=de[R]);return oe},_=(de,K)=>Object.fromEntries(Object.entries(de).map(([le,oe])=>K(le,oe)))},61708:(Ye,fe,i)=>{"use strict";i.d(fe,{HY:()=>B.HY,Nv:()=>te,Ls:()=>oe,GF:()=>J,y4:()=>R,LY:()=>Q});var P=i(31976),B=i(18398),V=i(54162),q=i(33733);const F=se=>se!=null&&typeof se=="object"&&"map"in se&&typeof se.map=="function",X=se=>se!=null&&typeof se=="object"&&"run"in se&&typeof se.run=="function",ee=se=>se!=null&&typeof se=="object"&&"then"in se&&typeof se.then=="function",Y=se=>se!=null&&typeof se=="object"&&"fork"in se&&typeof se.fork=="function",ae=se=>se!=null&&typeof se=="function";function s(){return({dispatch:se,getState:je})=>pe=>h=>{if(ae(h))return h(se,je);if(ee(h))return h.then(se);if(Y(h)){h.fork(se,se);return}return X(h)?se(h.run()):F(h)?h.map(se):pe(h)}}function Ce(){return[s()]}var be=i(59288);const xe=B.Zz;function te(se,je){const pe=(0,B.y$)(se,je,xe((0,B.Tw)(...Ce()))),h=_(),$=de(),ge=K(),Ae=le();return{Provider:V.Kq,connect:h,connectBase:$,dispatch:pe.dispatch,store:pe,useDispatch:ge,useSelector:Ae}}function _(){return function(je,pe,h,$){return function(ge){return(0,V.Ng)(je,pe,h,$)((0,q.BN)(ge))}}}function de(){return function(je,pe,h,$){return function(ge){return(0,V.Ng)(je,pe,h,$)(ge)}}}function K(){return V.wA}function le(){return function(je,pe=V.bN){const h=be.useContext(q.q2),$=be.useContext(q.R6),ge=be.useRef(void 0),Ae=(0,P.S)(),O=(0,V.d4)(je,pe),he=!Ae&&h&&$?.startsWith?.("exit");return he||(ge.current=O),he&&ge.current!==void 0?ge.current:O}}const oe=_(),R=K(),Q=le(),J=le;var me=i(36523);const Pe=()=>sideEffect(()=>location.href="/")},42006:(Ye,fe,i)=>{"use strict";i.d(fe,{V:()=>P});const P=({locales:B,course:V,locale:q})=>!!(B?.find(ee=>ee.locale===q)?.rightToLeft||V?.features?.["rise-rtl"]&&V?.experiments?.rtl)},83416:(Ye,fe,i)=>{"use strict";i.d(fe,{As:()=>s,BI:()=>V,Hm:()=>Ce,NS:()=>ae,PJ:()=>Y,Wk:()=>be,_$:()=>B,ih:()=>xe,mZ:()=>F,o1:()=>ee});const{Runtime:P}=window,B=te=>window.env?.[te],V=!1,q=null,F="Rise 360",X=te=>`${B("CDN_USER_CONTENT_URI")}/${te}`,ee=te=>{const _=te||"",de=P?.resolvePath!=null?P.resolvePath.bind(P):X;return _.startsWith("http")||_.startsWith("data:")||_.startsWith("//")?_:de(_)||_},Y=te=>P?.resolveFontPath!=null?P.resolveFontPath(te):`${te.default?B("CDN_URI"):B("CDN_USER_CONTENT_URI")}/${te.key}`,ae=()=>{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 xe=()=>{if(P?.sendTouch!=null)return P.sendTouch()}},5181:(Ye,fe,i)=>{"use strict";i.d(fe,{xj:()=>R,rE:()=>dt,Dw:()=>me,HC:()=>J,qu:()=>vt,LE:()=>ge,WQ:()=>le,BL:()=>O,Zs:()=>ee,S$:()=>Y,Ht:()=>Ce,zV:()=>be,B4:()=>_,HU:()=>ae,_g:()=>s,df:()=>kt,KJ:()=>de,qH:()=>K,OX:()=>Q,AY:()=>Ae,Py:()=>je,b$:()=>pe,qB:()=>h,kY:()=>se,br:()=>Pe,jq:()=>Je,Y2:()=>$,RE:()=>qe,Em:()=>pt,V7:()=>X});var P=i(92348),B=i.n(P),V=i(67331),q=i.n(V);function F(Ie){return B()(Ie)}const X={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},ee="#ff631e",Y=30,ae=50,s=.6,Ce="right",be="rounded",xe=[{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",xe),de="#000",K="#fff",le=600,oe="Rise",R=F({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Q=F({LARGE:null,MEDIUM:null,SMALL:null}),J=F({STEPPED:null,CONTINOUS:null}),me=B()({NUMBERS:null,DOTS:null,NONE:null}),Pe=F({COMPACT:null,OVERLAY:null,SIDEBAR:null}),se=B()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),je=B()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),pe={FREE:"free",RESTRICTED:"restricted"},h=B()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),$=B()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),ge=F({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),Ae=F({FULL:null,FLOATING:null,FLOATING_FULL:null}),O=F({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,Se=null,ze=[{text:"Image",type:O.IMAGE},{text:"Accent",type:O.ACCENT},{text:"White",type:O.WHITE}],qe={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},pt=F({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),dt=F({ROUNDED:null,SQUARED:null}),vt=B()({ROUNDED:null,SQUARED:null}),Je=B()({FLOATING:null,FULL:null}),kt=B()({ACCENT:null,DARK:null,LIGHT:null}),_e=[{value:pt.AUTO,label:"Auto"},{value:pt.DARK,label:"Dark"},{value:pt.LIGHT,label:"Light"}]},33871:(Ye,fe,i)=>{"use strict";var P={};i.r(P),i.d(P,{CoverDescription:()=>Zf,CoverDetailsContentHeading:()=>qg,CoverDueDate:()=>Yf,CoverHeader:()=>Eg,CoverLayout:()=>Ig,LessonHeader:()=>wg,LessonNavFinish:()=>Dg,LessonNavNext:()=>Bg,LessonNavPrevious:()=>zg,LessonProgressGraphic:()=>Gg,NavCompactHeaderCounter:()=>ev,NavCompactHeaderProgress:()=>tv,NavCompactOutline:()=>sv,OverviewListItem:()=>nv,OverviewListSectionTitle:()=>ov,Progress:()=>Jg});var B={};i.r(B),i.d(B,{AlignLeft:()=>iv,ArrowDown:()=>a0,ArrowLeft:()=>rv,ArrowRight:()=>av,ArrowUp:()=>mh,Category:()=>b6,ChevronDown:()=>lv,ChevronUp:()=>cv,Favorite:()=>Fd,LessonsComplete:()=>Ql,LessonsRequirement:()=>R1,QuestionBox:()=>dv,QuizFailed:()=>Ch,QuizPassed:()=>Ql,QuizRequirement:()=>zd,Search:()=>uv,ToggleDown:()=>hv,Touch:()=>mv,VideoCamera:()=>pv,X:()=>fv});var V={};i.r(V),i.d(V,{components:()=>P,icons:()=>B});var q={};i.r(q),i.d(q,{CoverCourseInfo:()=>i4,CoverDetailsSection:()=>h4,CoverHeader:()=>j4,CoverLayout:()=>N4,LessonHeader:()=>M4,LessonProgressGraphic:()=>B4,NavSidebarHeader:()=>H4,OverviewListItemLinkContent:()=>d9,Progress:()=>u9});var F={};i.r(F),i.d(F,{ArrowDown:()=>wh,ArrowLeft:()=>m9,ArrowRight:()=>h9,ArrowUp:()=>wh,ChevronDown:()=>Dh,ChevronUp:()=>Dh,Favorite:()=>Fd,LessonsComplete:()=>Bh,LessonsRequirement:()=>Hh,QuizFailed:()=>f9,QuizPassed:()=>Bh,QuizRequirement:()=>Hh,Search:()=>p9,ToggleDown:()=>g9,X:()=>v9});var X={};i.r(X),i.d(X,{components:()=>q,icons:()=>F});var ee={};i.r(ee),i.d(ee,{CoverDescription:()=>b9,CoverDetails:()=>E9,CoverGraphic:()=>Xi,CoverHeader:()=>R9,CoverLayout:()=>O9,CoverProgress:()=>Q9,CoverSVG:()=>Ir,LessonHeader:()=>X9,LessonProgressGraphic:()=>s8,NavSidebarHeaderProgress:()=>o8});var Y={};i.r(Y),i.d(Y,{AlignLeft:()=>c8,ArrowDown:()=>r8,ArrowLeft:()=>a8,ArrowRight:()=>i8,ArrowUp:()=>l8,ChevronDown:()=>_h,ChevronUp:()=>d8,Favorite:()=>Fd,LessonsComplete:()=>Ql,LessonsRequirement:()=>R1,QuestionBox:()=>u8,QuizFailed:()=>Ch,QuizPassed:()=>Ql,QuizRequirement:()=>zd,Search:()=>h8,ToggleDown:()=>_h,Touch:()=>m8,VideoCamera:()=>p8,X:()=>f8});var ae={};i.r(ae),i.d(ae,{components:()=>ee,icons:()=>Y});var s=i(50635),Ce=i(12243),be=i(22651),xe=i(33657),te=i(47993),_=i(69582),de=i(57770),K=i(55238),le=i(99638),oe=i(51563),R=i(22302),Q=i(74968),J=i(32838),me=i(25620),Pe=i(13848),se=i(93665),je=i(15075),pe=i(54944),h=i(59288),$=i.n(h),ge=i(87459),Ae=i(26058),O=i(18391),he=i(72147),ve=i(52439);const Se="_course_token",ze=new URLSearchParams(window.location.hash.substr(1)),qe=ze.get(Se);qe&&(ze.delete(Se),window.history.replaceState(null,null,`#${ze.toString()}`));const pt=t=>{const{data:{method:e,id:n,jsonrpc:o}}=t;if(o==="2.0"&&e==="getBearerToken"){const r=qe||(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",pt);const dt=(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 Je({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 kt({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)(dt.Provider,{value:l,children:[(0,s.jsx)(Je,{ariaLive:"polite",id:"polite-announcer1",message:e}),(0,s.jsx)(Je,{ariaLive:"polite",id:"polite-announcer2",message:n}),(0,s.jsx)(Je,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,s.jsx)(Je,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),t]})}function _e(){return(0,h.useContext)(dt)}function Ie(t){const e=forwardRef((n,o)=>{const r=_e();return jsx(t,{...n,...r,ref:o})});return e.displayName=`withAriaLive(${t.displayName||t.name})`,e}var Ee=i(35965),yt=i(86659),De=i(42183),Ge=i.n(De),ut=i(52107),Pt=i(96716),H=i.n(Pt),st=i(28239),gt=i(61140),Me=i(83416);const vs=`${(0,Me._$)("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,Vs=`${(0,Me._$)("CDN_URI")}/assets/rise/assets/error_x.svg`,Be=`${(0,Me._$)("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,Gs="downloading",Ws="error",ns="ok",pn="contained",Wt=({type:t})=>{const[e]=(0,h.useState)(()=>Ge()("certdownload-")),[n,o]=(0,h.useState)(ns),r=(0,ut.A)(n),a=(0,h.useRef)(),l=(0,st.useLabelsMap)(),d=`${e}-live`,c=H()("certificateDownload",{certificateDownloadContained:t===pn}),u=(0,h.useCallback)(()=>{o(Gs)},[]);return(0,h.useEffect)(()=>(n===Gs&&r!==Gs&&(0,gt.gj)().then(()=>{o(ns)}).catch(m=>{(0,yt.FZ)(m)?o(ns):o(Ws)}),()=>{(0,gt.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:Be,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===pn&&(0,s.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:vs,width:"15"}),n===ns?l?.certificateDownload||"Download certificate":l?.certificateRetryDownload||"Retry download"]})]})},sn=()=>(0,s.jsx)(Wt,{type:pn}),Eo=(0,h.memo)(Wt);var ds=i(98456),Qe=i(63545),Rt=i(82719),Ze=i(49501),jt=i(38286);const fn=()=>(0,Ze.Mz)(e=>e,(e,n)=>n,(e,n,o)=>(0,Rt.HH)(o),(e,n,o)=>(0,Rt.fF)(o),Rt.Dh);function Cs(t){const{currentLocale:e}=(0,jt.nY)(),n=(0,h.useMemo)(fn,[]);return(0,O.d4)(o=>n(t,e,o))}const no=(0,Ze.Mz)(t=>t,(t,e)=>(0,Rt.fF)(e),(t,e)=>e?.[t]);function Sn(){const{currentLocale:t}=(0,jt.nY)();return(0,O.d4)(e=>no(t,e))}const Vo=(0,Ze.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 Cs(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===Qe.y4}function lr(t){const e=wt(t);return(0,ds.HX)(e)}var Zr=i(34198),ke=i.n(Zr),Yr=i(75800),gn=i.n(Yr),cr=i(99390),Ct=i.n(cr),Dt=i(86654),nt=i.n(Dt),vn=i(83799),es=i.n(vn),To=i(78107),xs=i.n(To),_r=i(8466),ht=i.n(_r),Ml=i(1202),ks=i.n(Ml),kl=i(34379),Jt=i.n(kl),Ol=i(64104),jo=i.n(Ol),Es=i(24024),Lt=i.n(Es),di=i(16971),Ls=i.n(di),ui=i(7827),ts=i.n(ui),hi=i(74674),et=i.n(hi),mi=i(37953),Cn=i.n(mi),Io=i(84929),tt=i.n(Io),pi=i(17247),ot=i.n(pi),fi=i(7699),An=i.n(fi),Kn=i(29255),Gn=i.n(Kn),gi=i(24262),Xr=i.n(gi);const Wo=tt()("lessons"),dr=Xr()(t=>!!t,["settings","passToContinue"]),ur=t=>ke()(Ls(),e=>ts()([e,"passed"],t),tt()("id")),Jr=({course:t,courseProgress:e})=>ke()(ht(),nt()(ur(Wo(e))),nt()(dr),Wo)(t)||{},qr=({courseProgress:t,lesson:e,restrictingQuiz:n})=>{const o=tt()("id",e),r=d=>ts()([d,"index"],Wo(t)),a=r(o);return ke()(Gn()(a),r,tt()("id"))(n)?n:{}};var It=i(61556);const vi=ke()(Ls(),Jt()),$o=ke()(nt()(It.GG),tt()("lessonsOnly")),ea=({course:t,courseProgress:e})=>es()(xn(e))(t.lessonsOnly),xn=t=>e=>Ls()(ts()(["lessons",e.id,"isComplete"],t)),Ci=({lesson:t,currentLesson:e})=>t&&ot()("id",t.id,e),xi=({course:t,lesson:e})=>ot()("id",e.id,ht()(tt()("lessonsOnly",t))),hr=({course:t,lesson:e})=>ot()("id",e.id,jo()(tt()("lessonsOnly",t))),ta=ke()(Ls(),ot()("type","section")),bi=({lesson:t,courseProgress:e})=>et()(!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,It.bQ)(t),l=a||vi(r),d=ea({course:t,courseProgress:e}),c=ta(n)&&Ls()(bi({lesson:n,courseProgress:e}));return{isRestricted:l&&c&&Ls()(Ci({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=gn()(t=>xs()(An()(Cn()(["id"],t||{})))),oa=({course:t,lesson:e})=>ke()(ks(),na(e),$o)(t),So=({course:t,lesson:e})=>!hr({course:t,lesson:e})&&t.lessonsOnly[ks()(na(e,t.lessonsOnly))],Pn=ke()(Lt(),$o),Ei=t=>typeof t=="object"&&Object.keys(t).length>0,Li=t=>t===void 0||t===!1,ra=t=>Li(t?.isComplete),aa=t=>t.find(([e,n])=>ra(n)),Ti=t=>{const e=Object.entries(t),[n]=aa(e)||[];return n},ji=t=>Ei(t)?Ti(t):void 0,Ii=(t,e,n)=>{if(!n)return{outOfAttempts:!1,quizPassed:!0};const o=ts()(["lessons",n],t),r=et()(-1,["settings","retryCount"],e),a=et()(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,Ze.Mz)($s,wt,(t,{lessons:e})=>Array.isArray(e)?e.find(({id:n,type:o})=>o==="quiz"&&n===t):null),Si=(0,Ze.Mz)(mr,ia,(t,e)=>e?Ii(t,e,e.id):null);function la(t){const e=mr(t);return(0,Ee.Wk)()?e.percentComplete===100:!!(0,Ee.As)()}function No(t){return t.courseProgress?.lessons}function Qn(t,e){return No(e)?.[t]}function at(){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)(Si)??{outOfAttempts:!1,quizPassed:!1}}function Ni(){return(0,O.d4)(la)}function Ao(t){return(0,O.d4)(e=>Qn(t,e))}var wl=i(90538),Rn=i.n(wl),Dl=i(67331),da=i.n(Dl),Bl=i(34552),Ut=i.n(Bl),os=i(95172),I=i(5181);const Ue=t=>t>9999?1:t,Tt=({current:t,restart:e,restartValue:n})=>{const o=Number(n),r=Ue(Number.isInteger(o)&&o>0?o:1),a=e?r:t+1;return Ue(a)},hs=(t,e)=>{if(e.family==="divider"&&e.variant==="numbered divider"){const n=e.settings??{},o=Tt({current:t.currentNumber,restart:n.restartNumbering,restartValue:n.restartNumberingValue});return{map:{...t.map,[e.id]:o},currentNumber:o}}return t};function Zt(){return(0,Ze.Mz)(t=>t,(t,e)=>Ts(e),(t,e)=>tt()(t,e))}function fs(t){const e=(0,h.useMemo)(()=>Zt(),[]);return(0,O.d4)(n=>e(t,n))}function Zn(t){const e=fs(t);return Cs(e?.title)}function gr(){const t=Zt();return(0,Ze.Mz)(t,e=>(0,os.Mz)(e))}function Qo(){return(0,Ze.Mz)(Ko,Po,(t,e)=>Ut()(-1,t,e))}function vr(){const t=xr();return(0,Ze.Mz)(e=>e,(e,n)=>t(n),(e,n)=>oo(n),(e,n)=>o6(n),(e,n)=>r6(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,Ze.Mz)(No,t=>ji(t))}function ua(){const t=xr();return(0,Ze.Mz)(e=>e,(e,n)=>t(n),(e,n)=>Ts(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 Ai(){const t=Zt();return(0,Ze.Mz)(t,Qn,(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 ne(t){const e=(0,h.useMemo)(()=>Ai(),[]);return(0,O.d4)(n=>e(t,n))}function Oe(){const t=Zt();return(0,Ze.Mz)(t,Qn,(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 ft(t){const e=(0,h.useMemo)(()=>Oe(),[]);return(0,O.d4)(n=>e(t,n))}const Mt=(0,Ze.Mz)(wt,t=>Ut()([],"lessons",t)),Ts=(0,Ze.Mz)(Mt,t=>t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{})),gs=(0,Ze.Mz)(wt,t=>Ut()([],"lessonsOnly",t)),Po=(0,Ze.Mz)(gs,t=>t.reduce((e,n,o)=>(e[n.id]=o+1,e),{})),wd=(0,Ze.Mz)(gs,t=>da()("id",t)),Dd=({type:t,settings:e})=>t!=="quiz"||e.asLesson||e.asLesson===void 0,Hl=(0,Ze.Mz)(gs,nt()(Dd)),zl=(0,Ze.Mz)(Hl,Lt()),Pi=(0,Ze.Mz)(Mt,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},[])),o6=(0,Ze.Mz)(gs,No,(t,e)=>t.find(n=>(0,os.gL)(n)&&(0,os.dg)(n)&&!e[n.id]?.isComplete)),r6=(0,Ze.Mz)(gs,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 Bd(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=Qn(t,o),c=n(t,o)?.type!=null;return r?.navigationMode!==I.b$.RESTRICTED&&r?.markComplete&&!c&&a?.type!==os.d9.QUIZ&&!(Me.BI&&l?.percentComplete===100)})}const Hd=(t,e)=>e.findIndex(n=>n.id===t);function L1(){return(0,Ze.Mz)(t=>t,(t,e)=>gs(e),(t,e)=>{if(t==="progress-summary")return jo()(e);const n=Hd(t,e),o=Rn()(n);return e[o]})}function T1(){return(0,Ze.Mz)(t=>t,(t,e)=>gs(e),(t,e)=>{const n=Hd(t,e),o=ks()(n);return e[o]})}function j1(t){return(0,Ze.Mz)(t,(e,n)=>Hl(n),(e,n)=>Hd(e?.id,n)+1)}function a6(){return j1(T1())}function i6(){return j1(L1())}function I1(){return(0,O.d4)(t=>Pi(t))}function l6(){const t=xr();return(0,Ze.Mz)(la,t,$s,(e,n,o)=>{const r=!!n,a=o!=null;return e||!r&&!a})}function c6(){const t=(0,h.useMemo)(()=>l6(),[]);return(0,O.d4)(e=>t(e))}const d6=t=>t?.items?.reduce(hs,{map:{},currentNumber:0})?.map||{},u6=t=>{const e=(0,h.useMemo)(()=>Zt(),[]),n=(0,O.d4)(o=>e(t,o));return(0,h.useMemo)(()=>d6(n),[n])},h6=({blockId:t,lessonId:e})=>u6(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 Bz=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 "})}),Hz=null,zz=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"})]})}),Fz=null,Uz=({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"})})}),Vz=null;function m6(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 Wz=({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"})]}),$z=null,Kz=({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"})}),Gz=null,Qz=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"})}),Zz=null,Yz=({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"})]}),_z=null,p6=({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"})]}),Jz=({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"})]}),qz=null;function f6(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 g6(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 v6=({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:H()("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 C6(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 x6(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 tF=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"})}),sF=null,nF=({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"})," "]})]}),oF=null,rF=({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"})]}),aF=null;function iF(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 lF(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 cF=({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"})]}),dF=null,uF=({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"})]})]}),hF=null,mF=({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"})]})]}),pF=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"})]}),gF=({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"})]}),vF=null,CF=({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"})]})]})]}),xF=null,bF=({"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"})]}),yF=null,EF=({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"})]}),LF=null;function S1(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 TF=({"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"})]}),jF=null;function IF(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 SF=({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 "})}),NF=null,AF=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"})}),PF=null,N1=({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"})}),MF=({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"})]})]}),kF=null,y6=({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 wF(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 DF=({"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"})]}),BF=null,HF=({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"})]}),zF=null,FF=({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"})]}),UF=null;function VF(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 WF=({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"})]}),$F=null,KF=({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"})]}),GF=null,QF=({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"})]}),ZF=null,YF=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"})]})},_F=null,XF=({"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"})]}),JF=null,qF=({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"})]}),eU=null,E6=({title:t="DestinationArrow",desc:e="DestinationArrow",width:n="13",height:o="10",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:H()("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"})]}),sU=({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"})]}),nU=null,oU=({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"})]}),rU=null;class aU 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 iU=null,lU=({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"})}),cU=null,dU=({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"})]}),uU=null,L6=({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:H()("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"})]}),T6=(0,h.forwardRef)(L6),hU=({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"})})})]}),mU=null;function pU(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 fU=({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"})]}),gU=null,vU=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"})]}),CU=null,xU=({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"})]}),bU=null,yU=({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"})]})]}),EU=null,LU=({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"})]}),TU=null,jU=({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"})]}),IU=null,SU=({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"})]}),NU=null,AU=({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"})]})]}),PU=null,RU=({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"})]}),MU=null,kU=({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"})]}),OU=null,A1=({"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:H()(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"})]}),DU=({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"})]}),BU=null,P1=({"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"})]}),j6=({"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"})]}),FU=({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"})]}),UU=null,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:"#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"})]}),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:"#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"})]}),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:"#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"})]}),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:"#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"})]}),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:"#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"})]}),QU=({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"})})]}),ZU=null,zd=({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:H()("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"})]}),_U=({"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"})]}),XU=null,JU=({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"})]}),qU=null,eV=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"})}),tV=null;function sV(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 nV=({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"})]}),oV=null,rV=({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"})]}),aV=null,iV=({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"})]}),lV=null,cV=({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"})]}),dV=null,uV=({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"})]}),hV=null,mV=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"})]}),pV=null,fV=({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"})]}),gV=null;function R6(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 Fd=({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:H()(`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"})]}),CV=({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"})]}),xV=null,bV=({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"})]}),yV=null,EV=({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"})]}),LV=null,TV=({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"})]}),jV=null;function IV(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 SV=({"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"})]}),NV=null,AV=({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"})]}),PV=null,RV=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"})]}),MV=null,kV=({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"})]}),OV=null,wV=({"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"})]}),DV=null;function M6(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 BV=({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"})]}),HV=null,k6=({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:H()("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"})]}),FV=()=>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"})]}),UV=null,VV=({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"})]}),WV=null,O6=({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:H()("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"})]}),w6=({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:H()("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"})]}),GV=({"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"})]}),QV=null,ZV=({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"})]}),YV=null,_V=({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"})]}),XV=null,D6=({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:H()("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"})]}),qV=({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"})]}),eW=null,tW=({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"})]}),sW=null,nW=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"})]}),oW=null,rW=({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"})]}),aW=null,iW=({"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"})]}),lW=null,cW=({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"})]}),dW=null;class Ud extends h.Component{constructor(...e){super(...e),this.maskId=`person-unknown-mask-${Ge()()}`,this.pathId=`person-unknown-path-${Ge()()}`}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:H()("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 R1=({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:H()("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"})]})]}),hW=({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"})})]}),mW=null,pW=({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"})]}),fW=null;function B6(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 gW=({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"})]}),vW=null,CW=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"})}),xW=null;function M1(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 H6(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 bW=({"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"})]}),yW=null;function z6(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 EW=({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"})}),LW=null,TW=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"})}),jW=null,IW=({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"})]}),SW=null,NW=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"})}),AW=null,PW=({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"})]}),RW=null,MW=({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"})]}),kW=null,OW=({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)"})]}),wW=null,DW=({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"})]})]}),BW=null,Vd="overlay",HW=({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:Vd,height:"8.824",rx:"1",width:"30"}),jsx("rect",{className:Vd,height:"8.824",rx:"1",width:"30",y:"10.588"}),jsx("rect",{className:Vd,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"})]})]}),zW=null;function FW(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),Le=i.n(j);const F6=({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:H()("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"})]});F6.propTypes={title:Le().string,desc:Le().string,width:Le().string,height:Le().string,className:Le().string,focusable:Le().oneOf(["true","false"])};const UW=null,VW=({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"})]}),WW=null,$W=({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"})]})]}),KW=null,GW=({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"})]}),QW=null;function U6(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 ZW=({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"})]}),YW=null,_W=({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"})]}),XW=null,JW=({"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"})]}),qW=null,e$=({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"})]}),t$=null,s$=({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"})]}),n$=null,o$=({"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"})]}),r$=null,a$=({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"})]}),i$=null,l$=({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"})]}),c$=null;function V6(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 d$(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 u$=({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"})]})]}),h$=null,W6=({"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:H()("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 $6=i(40966),k1=i.n($6),K6=i(65992),Ri=i.n(K6),G6=i(78324),rs=i.n(G6),Q6=i(24308),Z6=i.n(Q6),Y6=i(46832),ha=i.n(Y6);const _6=rs()(k1()({}),Z6()(["first_name","last_name"]),Ri()(" "),ha()),X6=({className:t,decorative:e,size:n,...o})=>{const r=ts()(["avatars","medium"],o),a=e?"":_6(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)(Ud,{decorative:e,height:n,title:a,width:n})};var J6=i(8046);const re=(0,J6.setup)({el:"__",mod:"--",modValue:"-"}),q6=`${(0,Ee._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,Ul=re("cover");function ef(){const{certificateDownload:t,riseComCurrentUser:e}=Xt(),n=(0,st.useLabelsMap)(),o=c6(),a=fr()?.quizPassed??!0;return!(o&&a&&!(0,Ee.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)(X6,{...e,decorative:!0}),(0,s.jsx)("img",{alt:"",className:Ul("completed-info-trophy"),src:q6})]}),(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 tf=i(19216),Yn=i.n(tf);const Wd=t=>{if(!t)return"";const e=Yn()(t),n=Yn()(),o=Yn()(n).add(24,"hours");return e.isBefore(n)?"Overdue":e.isBefore(o)?`Due in ${n.to(e,!0)}`:`Due ${e.format("MMM D")}`},O1=t=>Yn()(t).isSameOrBefore(Yn()().add(3,"d"),"days");function sf(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=sf("ui"),$d=t=>t==="<p><br></p>"?"":t;var w1=i(24331);const Kd="data-change-path",Gd="data-l10n-id",D1=(t,e)=>{if(t)return e?["l10n","translations",e,t.getAttribute(Gd)]:JSON.parse(t.getAttribute(Kd))};let Ro;const nf=()=>{const t=pa();t&&t.classList.add("selected")},Vl=()=>{pa()&&Ro&&Mi(Ro)},of=(t,e)=>n=>{const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(Gd)):o.find(a=>a.getAttribute(Kd));r!=null&&(t&&Ro!==r&&(Ro=r,t(D1(r,e))),Mi(r))},rf=(t,e)=>n=>{n.stopPropagation(),n.preventDefault();const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(Gd)):o.find(a=>a.getAttribute(Kd));if(r){Mi(r),H1();const a=D1(r,e);a&&(t(a),nf())}},Qd=()=>document.getElementById("target-container"),pa=()=>document.getElementById("target-highlight"),B1=()=>{if(Qd())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)},H1=()=>{const t=pa();t&&t.classList.add("selected")},af=({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}},Mi=t=>{const{top:e,left:n,width:o,height:r}=af(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)},lf=()=>{window.removeEventListener("scroll",Vl,{capture:!0}),Wl()},Wl=()=>{pa()?.classList?.remove("active"),pa()?.classList?.remove("selected")};let fa,$l;const cf=({locale:t})=>({isActive:e},n)=>{const o=!!Qd();if(e){if(fa)return fa;B1();const r=of(n,t);let a;return fa=new Promise((l,d)=>{a=rf(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(),Qd()?.remove(),Ro=null;return o&&$l!=null&&$l(new Error("cancelled")),Promise.resolve()},df=t=>{let e=t.findIndex(n=>n==="items");return e===-1?t:t.slice(0,e+2)},z1=t=>{const e=(0,w1.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(df(t))}']`)},uf=t=>{B1(),window.addEventListener("scroll",Vl,{capture:!0}),document.body.classList.add("target-mode");const e=z1(t);e&&Mi(e)},hf=t=>{if(!fa)return;const e=z1(t);e&&(Ro!==e&&(Ro=e),Mi(e),H1(),e.scrollIntoView({behavior:"smooth",block:"center"}))},mf=t=>["course",t],F1=(t,e)=>["lessons",{id:t},e],pf=(t,e)=>[...F1(t,"items"),{id:e}],ga=t=>JSON.stringify(mf(t)),U1=(t,e)=>JSON.stringify(F1(t,e)),ff=(t,e)=>JSON.stringify(pf(t,e)),nn={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"},ki=(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 Te=i(86415),xt=i(84728);function Zd(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 gf="matches";function V1(t,e,n,o="withPxToEmMedia"){return r=>{function a(l){const d=Zd(t,e);return(0,s.jsx)(r,{...l,[n??gf]:d})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function Os(t){return Zd("max-width",t-1)}function f$(t){return Zd("min-width",t)}function vf(t,e,n){return V1("max-width",t-1,e,n)}function Cf(t,e,n){return V1("min-width",t,e,n)}const xf=()=>Os(1200),bf=()=>Os(768),Yd=()=>Os(480),_d=re("cover");function yf(t,e,n){return t===1?e:n}function Ef(){const t=(0,Te.v1)(),e=(0,Te.vU)(),n=yf(t,e?.coverLesson||"Lesson",e?.coverLessons||"Lessons");return(0,s.jsxs)("li",{className:_d("num-lessons"),role:"listitem",children:[(0,s.jsx)("span",{className:_d("num-lessons-value"),children:t}),"\xA0",(0,s.jsx)("span",{className:_d("num-lessons-units"),children:n})]})}const Lf=36e5,Xd=re("cover");function Tf(t){return Math.round(10*t)/10}function W1(t,e,n){return t===1?e:n}function jf(){const{showTimeToComplete:t,timeToComplete:e}=(0,Te.DX)(),n=(0,Te.vU)();if(!t)return null;const o=e>=Lf,r=o?Tf(Yn().duration(e).asHours()):Yn().duration(e).asMinutes(),a=o?W1(r,n?.coverHour||"Hour",n?.coverHours||"Hours"):W1(r,n?.coverMinute||"Minute",n?.coverMinutes||"Minutes");return(0,s.jsxs)("li",{className:Xd("time-to-complete"),role:"listitem",children:[(0,s.jsx)("span",{className:Xd("time-to-complete-value"),children:r}),"\xA0",(0,s.jsx)("span",{className:Xd("time-to-complete-units"),children:a})]})}const Jd=re("cover");function qd(){const t=(0,Te.vU)();return Me.BI?(0,s.jsxs)("section",{className:Jd("course-length-section"),children:[(0,s.jsx)("h2",{className:Jd("course-length-title"),children:t?.a11yCoverCourseLength||"Course Length"}),(0,s.jsxs)("ul",{className:Jd("course-length-list"),role:"list",children:[(0,s.jsx)(Ef,{}),(0,s.jsx)(jf,{})]})]}):null}const If=re("cover"),Sf="MMMM D, YYYY";function $1({format:t=Sf}){const{publishedAt:e}=(0,Te.DX)(),n=(0,Te.vU)(),o=If("details-content-published-at");if(!e)return null;const r=Yn()(e);return r.isValid()?(0,s.jsxs)("div",{className:o,children:[n?.coverPublished||"Published"," ",r.format(t)]}):null}var Nf=i(91382),Oi=i.n(Nf);const K1=Oi()(async()=>(await i.e("math").then(i.bind(i,70643))).browserAdaptor(),{promise:!0}),G1=Oi()(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})}),Q1=Oi()(async()=>{const t=await i.e("math").then(i.t.bind(i,79901,23));return new t.SVG({fontCache:"local"})},{promise:!0}),Z1=Oi()(async()=>{const[t,e,n,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([K1(),G1(),Q1(),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}),Af=Oi()(async t=>{const e=new CSSStyleSheet;t.adoptedStyleSheets.push(e);const[n,o]=await Promise.all([Q1(),Z1()]),r=n.styleSheet(o);r instanceof HTMLStyleElement&&await e.replace(r.innerText)},{promise:!0});class Pf extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=Af(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([Z1(),K1(),G1(),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 Rf("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",Pf);class Rf extends CustomEvent{}var As=i(61708),Mf=i(46687),Kl=i.n(Mf);const kf=document.implementation.createHTMLDocument();function Y1(t){if(t==null)return{value:t};let e;return typeof t=="string"?(e=kf.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 _n=i(49345);const _1=(t="")=>t.split(".").slice(-2).join("."),X1=ke()(_1,Me._$),va=t=>{if(!t||Of(t))return!1;t.slice(0,2)==="//"&&(t=`https:${t}`);try{const{hostname:e}=new URL(t),n=_1(e);return n!==X1("ARTICULATE_DOMAIN")&&n!==X1("RISE_DOMAIN")}catch{return!1}},Of=t=>t?t.slice(0,7)==="mailto:":!1,wf=t=>t.includes("rise.articulate")&&t.includes("/author/details/");var it=i(52706);const Df=({allowTabNavigation:t=!0,className:e="",externalLinksDisabled:n,id:o,ref:r,showExternalLinksModal:a,tagName:l="div",value:d})=>{const c=(0,Te.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,_n.aj)(m),g=Array.prototype.concat($f,Kf,zf,Hf,n?Ff:[],t?Vf:Uf,Wf(c?.a11yNoticeLinkNewTab));return Bf(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 Bf(t,e){const n=document.createElement("div");n.innerHTML=e;for(const o of t)o(n);return n.innerHTML}function Hf(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 zf(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 Ff(t){for(const e of t.querySelectorAll("a"))va(e.href)&&(e.removeAttribute("href"),e.removeAttribute("rel"),e.removeAttribute("target"),e.setAttribute("data-external",""),e.setAttribute("role","button"))}function Uf(t){for(const e of t.querySelectorAll("a"))e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}function Vf(t){for(const e of t.querySelectorAll("a"))e.removeAttribute("aria-hidden"),e.hasAttribute("data-external")?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}function Wf(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 $f(t){return Y1(t).value}function Kf(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 Gf=Kl()({externalLinksDisabled:ts()(["course","externalLinksDisabled"]),courseColors:t=>{const{course:e}=t,{colorAccent:n}=e?.theme||{},o=(0,it.WA)(n);return[...e?.theme?.colors||I.B4,n,o]}}),Qf={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})},St=(0,As.Ls)(Gf,Qf)(Df),J1=re("cover");function Zf(){const t=(0,Te.DX)(),e=xf(),n=(0,xt.QQ)(t.description);if(!n)return null;const o=ga("description"),r=(0,ds.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:J1("details-content-section"),children:[e?(0,s.jsx)(qd,{}):(0,s.jsx)($1,{}),(0,s.jsx)(St,{className:J1("details-content-description"),value:$d(n)},"text")]})})}function Yf({Default:t,...e}){const{dueAt:n}=e,r=n&&O1(n)?"brand--background":"brand--color";return(0,s.jsx)(t,{...e,className:r})}var q1=i(9017),eh=i(47418);function Mn(t){const{to:e,children:n}=t,o=(0,Ae.zy)(),r=(0,h.useMemo)(()=>(0,eh.B)(e,o),[o,e]);return(0,s.jsx)(q1.N_,{...t,to:r,children:n})}const _f=({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}),Xf=(0,h.forwardRef)(_f),e0=(0,h.createContext)({});e0.displayName="LocalesContext";function Jf({i18n:t,children:e}){const n=(0,h.useMemo)(()=>({i18n:t}),[t]);return(0,s.jsx)(e0.Provider,{value:n,children:e})}function qf(){return(0,h.useContext)(e0)}var wi=i(19752);const eg=re("locale-switcher");function th(){const t=(0,As.y4)(),{i18n:e}=qf(),{locale:n}=(0,Te.DX)(),o=(0,h.useCallback)(r=>{const a=r.target.value;t((0,wi.EL)(a))},[t]);return e?.available==null||e.available.length<=1?null:(0,s.jsx)("select",{className:eg(),defaultValue:n,onChange:o,children:e.available.map(r=>(0,s.jsx)("option",{children:r},r))})}const sh=re("cover"),Qs=At("CoverAction",()=>{const{trackingQuizId:t}=(0,Te.DX)(),e=window.viewType==="preview",n=(0,Te._z)(),o=(0,Te.MT)(),r=(0,Te.Sd)(),a=n?.id,l=(0,Me.Wk)()?r===100:(0,Me.As)(),d=o!=null,c=d?o:a,u=!e&&Me.BI&&(l||!d&&!t),{courseCTALabel:m}=(0,Te.cN)({isCourseComplete:l,percentCourseComplete:r}),p=H()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":u});return m?(0,s.jsxs)("div",{className:sh("header-content-action-wrapper"),children:[(0,s.jsx)(Xf,{className:p,to:(0,os.p1)(c),children:(0,s.jsx)("span",{className:sh("header-content-action-link-text"),children:m})}),(0,s.jsx)(th,{})]}):(0,s.jsx)(th,{})});var tg=i(312),kn=i.n(tg),Yt=i(37322);const Di=kn()("partner-content-course-author__"),sg=({partnerContentAuthors:t,darkText:e,isImage:n,learn:o,lesson:r,isOnePage:a,selectedContentId:l})=>{const d=es()(ot()("id",l),t),c=ts()(["data","authors"],d),m=(r?c:t).filter(C=>C.name),p=H()(Di("author-container"),{[Di("author-container-padding-top")]:e}),f=H()({[Di("gray-text")]:!o&&!a}),g=H()(Di("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:Di("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))})]})},Ca=re("cover"),ng=()=>{const t=(0,Te.UG)();if(t==null)return null;const{avatar:e,authorName:n,title:o}=t;return(0,s.jsxs)("div",{className:Ca("author-with-title"),children:[(0,s.jsx)(nh,{avatar:e}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:Ca("author-name"),children:n}),(0,s.jsx)("div",{className:Ca("author-title"),children:o})]})]})},nh=({avatar:t})=>{const e=Ca("header-content-authors-avatar");return t?(0,s.jsx)("div",{className:e,"data-test-id":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${(0,Me.o1)(t)})`}}):(0,s.jsx)("div",{className:e,"data-test-id":"cover-header-content-authors-avatar",children:(0,s.jsx)(Ud,{decorative:!0})})},ao=At("CoverAuthors",({className:t})=>{const{color:e,partnerContentId:n,selectedAuthorId:o,theme:r,themeId:a}=(0,Te.DX)(),{accentContrast:l,coverPageType:d}=r??{},{authorName:c,avatar:u}=(0,Te.UG)()??{},m=(0,Te.vU)(),p=(0,Te.hM)(),f=!!n&&!!p,v=Os(768)&&(0,It.yL)(a,d),C=d===I.BL.LEFT_OVERLAY||d===I.BL.CENTERED_OVERLAY||v;if(o==="none")return null;const b=c||"Unknown User",y=Ca("header-content-authors").mix(t),x=Ca("header-content-authors-name");return f?(0,s.jsx)("div",{className:y,"data-test-id":"cover-authors",children:(0,s.jsx)(sg,{accentContrast:l,color:e,isImage:C,learn:!0,partnerContentAuthors:p})}):(0,s.jsxs)("div",{className:y,"data-test-id":"cover-authors",children:[(0,s.jsx)(nh,{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:b})]})]})}),og=re("cover"),On=At("CoverContentNoImage",({children:t})=>{const e=og("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,Te.DX)(),n=(0,xt.gY)();return rg(e,t,n)},rg=(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)}},ag=re("cover"),t0=()=>{const t=(0,Te.dT)(),{alpha:e,ariaLabel:n,media:o,role:r}=br("coverImage"),a=ag("header-image"),l=(0,It.b9)({alpha:e,color:t,media:o});return(0,s.jsx)("div",{"aria-label":n,className:a,role:r,style:l})},ig=re("cover"),s0=({children:t})=>{const e=(0,Te.dT)(),n=`overlay-${e.toLowerCase()}`,o=ig("header-content",{[n]:!!e});return(0,s.jsxs)("div",{className:o,"data-test-id":"cover-header-content",children:[t,(0,s.jsx)(t0,{})]})},lg=re("cover"),Bi=({hasOverlay:t=!1})=>{const{alpha:e,ariaLabel:n,media:o,role:r}=br("coverImage"),a=(0,It.b9)({alpha:e,hasOverlay:t,media:o}),l=lg("header-graphic",{"dot-com":Me.BI});return(0,s.jsx)("div",{"aria-label":n,className:l,"data-test-id":"cover-header-graphic",role:r,style:a})},cg=re("cover");function Ys({children:t}){const e=!!(0,Te.Bd)(),n=cg("header-content-info",{rbc:e,"rise-com":Me.BI});return(0,s.jsx)("div",{className:n,"data-test-id":"cover-header-content-info",children:t})}var dg=i(59288);function ug(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 oh=dg.forwardRef(ug),hg={ImageEagerOrLazy:oh},rh=Object.assign((0,h.createContext)(hg),{displayName:"BundleContext"});function mg({children:t,...e}){return(0,s.jsx)(rh.Provider,{value:e,children:t})}function pg(){return null}function xa(t){function e(n,o){const a=(0,h.useContext)(rh)[t]??pg;return(0,s.jsx)(a,{ref:o,...n})}return e.displayName=`BundleComponent(${t})`,(0,h.forwardRef)(e)}const ws=xa("CoverProgress"),fg=re("cover"),_s=At("CoverTitle",()=>{const t=(0,Te.DX)(),e=(0,xt.QQ)(t.title),n=fg("header-content-title"),o=ga("title"),r=(0,ds.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})}),gg={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function ah(){const t=(0,Te.DX)(),e=bf(),n=t?.theme?.coverPageType||"CENTERED";return e?gg[n]??n:n}const vg=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(s0,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(ws,{}),(0,s.jsx)(Qs,{})]})})}),Cg=()=>(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)(ws,{}),(0,s.jsx)(Qs,{})]})})}),xg=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Bi,{}),(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(ws,{}),(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)(ws,{}),(0,s.jsx)(Qs,{})]})}),(0,s.jsx)(Bi,{})]});function yg(){switch(ah()){default:case I.BL.LEFT_OVERLAY:case I.BL.CENTERED_OVERLAY:return(0,s.jsx)(vg,{});case I.BL.LEFT:case I.BL.CENTERED:return(0,s.jsx)(Cg,{});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)(xg,{})}}function Eg(){return(0,s.jsx)("header",{className:"cover__header","data-test-id":"cover-header",children:(0,s.jsx)(yg,{})})}var Lg=i(1063),Hi=i.n(Lg),Tg=i(59288);const jg=re("cover");function Ig({children:t}){const e=(0,Te.DX)(),{themeId:n}=e?.theme??{},o=ah(),r=Tg.useMemo(()=>Hi()(o),[o]),a=jg({layout:r});return(0,s.jsx)("div",{className:a,"data-test-id":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var Xn=i(33530),Sg=i(71006),n0=i.n(Sg);const yr=({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 ih=i(59288);class Ng extends ih.Component{static propTypes={id:Le().any.isRequired,lessonProgress:Le().object.isRequired,type:Le().string.isRequired,items:Le().array};refProgressWrap=ih.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=yr()}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=Ut()(-1,"activeIndex",n),r=Lt()(e);return o===-1?0:ks()(o)===r?100:n0()("%","",ts()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=Ut()(0,"activeIndex",n),r=Lt()(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 Ut()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return Ut()(0,"percentComplete",e)}}render(){const{type:e,items:n}=this.props,{isSticky:o}=this.state,r=H()("progress-wrap",{}),a=H()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),l=H()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),d=this.progressValue(),c=e==="timeline"&&n&&n.map(m=>{const p=H()("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,Xn.createPortal)((0,s.jsx)("div",{className:a,children:u}),this.portal)]})}}const o0=re("lesson-header"),io=At("LessonHeaderAuthor",({avatar:t,authorName:e,className:n=""})=>{const o=(0,Te.vU)();return(0,s.jsxs)("div",{className:`lesson-header__author ${n}`,children:[(0,s.jsx)("img",{alt:"",className:"lesson-header__author-img",src:(0,Me.o1)(t)}),(0,s.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,s.jsx)("span",{className:"lesson-header__author-name",children:e})]})}),zi=({showPartnerContent:t=!1})=>(0,s.jsx)("div",{className:o0("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,Te.DX)();return(0,s.jsx)("div",{className:o0("counter",{"partner-content":r}),children:(0,s.jsx)("div",{className:o0("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${t} ${o} ${e} ${n}`})})},Er=({description:t})=>(0,s.jsx)(St,{className:"lesson-header__description",value:t}),Ag=({children:t})=>(0,s.jsx)("div",{className:"lesson-header__grouped-row",children:t}),Pg=({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=U1(e,"title");return(0,s.jsx)("h1",{className:"lesson-header__title","data-change-path":n,tabIndex:-1,children:(0,s.jsx)(St,{value:t})})},Rg=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,b=L=>`url(${(0,Yt.ny)({width:"76",height:"76",imageKey:L.image})})`,y=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:y,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:b(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)(zi,{}),p?(0,s.jsx)(co,{lessonName:v,lessonNumber:c,lessonPreposition:C,totalLessons:g}):(0,s.jsx)(lo,{})]})]}),r&&(0,s.jsx)(Er,{description:r})]})};class I$ extends $().Component{static propTypes={authorName:Le().string,avatar:Le().string,description:Le().string,showLessonCount:Le().bool,steps:Le().number,title:Le().string.isRequired,type:Le().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)(Rg,{...this.props})})})}),$().Children.map(e,n=>n&&n.type!==Ng?null:n)]})})}}const Zo=re("lesson-header"),lh=t=>`url(${(0,Yt.ny)({width:"76",height:"76",imageKey:t?.image})})`,r0=({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:lh(o)}},o.name))}),(0,s.jsx)("span",{"aria-hidden":"true",className:Zo("author-name"),children:e})]})},ba=({partnerContentAuthors:t})=>{const e=(0,Te.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:lh(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 ch=i(59288);const ya=re("lesson-header"),Mg=({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)(zi,{}),f&&(0,s.jsx)(ba,{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)(Er,{description:n})]})]})},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,g=ch.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)(r0,{partnerContentAuthors:l}),(0,s.jsx)(uo,{id:p,title:u}),n&&(0,s.jsx)(Er,{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=ch.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)(zi,{showPartnerContent:f}),d&&f&&(0,s.jsx)(ba,{partnerContentAuthors:l}),n&&(0,s.jsx)(Er,{description:n})]})};function wg(t){const e=Yd();return t.lessonHeaderSize===I.OX.SMALL&&!e?(0,s.jsx)(Mg,{...t}):e?(0,s.jsx)(kg,{...t}):(0,s.jsx)(Og,{...t})}const Ea=t=>t===I.AY.FLOATING||t===I.AY.FLOATING_FULL;function Lr(){const t=(0,As.LY)(({course:{buttonNavigationStyle:n}})=>n);return Os(480)&&t===I.AY.FLOATING?I.AY.FLOATING_FULL:t}function a0({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 dh({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 La=xa("LessonNav"),uh=re("lesson-nav");function Dg({allowTooltip:t,courseFinishLabel:e,onFocus:n,nextLesson:o,restrictionData:r,restrictionType:a,ref:l}){const d=o?.id,c=Lr(),u=Ea(c),m=u?a0:dh;return(0,s.jsxs)(La,{allowTooltip:t,direction:"next",finish:!0,isFloating:u,navLessonId:d,onFocus:n,ref:l,restrictionData:r,restrictionType:a,children:[(0,s.jsx)("span",{className:uh("link-text").mix("brand--ui"),children:e}),(0,s.jsx)(m,{className:uh("link-icon")})]})}const hh=re("lesson-nav");function Bg({allowTooltip:t,lessonNameLabel:e,nextLesson:n,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:l,restrictionType:d}){const c=n?.id,u=Lr(),m=Ea(u),f=(0,It.GG)(n)&&c,g=(0,xt.QQ)(n?.title)||"",v=m?a0:dh,C=f?`${e} ${o} - `:"",b=m&&f?`${e} ${o}`:`${C}${g}`;return(0,s.jsxs)(La,{allowTooltip:t,direction:"next",isFloating:m,navLessonId:c,onFocus:r,ref:a,restrictionData:l,restrictionType:d,children:[(0,s.jsx)("span",{className:hh("link-text").mix("brand--ui"),children:b}),(0,s.jsx)(v,{className:hh("link-icon")})]})}function mh({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 Hg({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=re("lesson-nav");function zg({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:l,ref:d}){const c=a?.id,u=Lr(),m=Ea(u),f=(0,It.GG)(a)&&c,g=(0,xt.QQ)(a?.title)||n,v=m?mh:Hg,C=f?`${o} ${l} - ${g}`:g,b=f&&m?`${o} ${l}`:C;return(0,s.jsx)(La,{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:b}),(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:b})]})})}var _t=i(91159),is=i(82684),ph=i(15045);function Fg({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,ph.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 i0=Fg;function Ug({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 fh=Ug;var l0=i(59288);const{COMPACT:Vg,COVER:Wg,OVERLAY:$g,SIDEBAR:Kg}=Qe.by,Fi=re("progress-circle");function Gg({"aria-hidden":t,"aria-label":e,isCurrent:n,isFailed:o,isPassed:r,scope:a,value:l}){const[d,c]=l0.useState(l===100),u=(0,_t.A)(l),{theme:{progressIndicatorStyle:m=I.Y2.THEME_DEFAULT}}=(0,Te.DX)(),p=a===Wg,f=a===$g,g=m===I.Y2.THEME_DEFAULT,v=m===I.Y2.CIRCULAR_FILL,C=m===I.Y2.INCOMPLETE_COMPLETE,b=Fi({compact:a===Vg,cover:p,current:n,sidebar:a===Kg,overlay:f}),y=Fi("track",{"circular-fill":!f&&v,"incomplete-complete":p&&C}),x=Fi("runner",{"circular-fill":v,done:d,failed:o,passed:r,unstarted:l===0}),L=Fi("pass",{done:d,visible:r}),E=Fi("fail",{done:d,visible:o}),S=l0.useMemo(()=>v||l===100?l:0,[v,l]);return l0.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:b,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:y,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),g?(0,s.jsx)(fh,{className:x,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:l}):(0,s.jsx)(i0,{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 c0=(0,h.createContext)(null);c0.displayName="CourseNavContext";function Qg(t){const{children:e,isCourseNavOpen:n}=t;return(0,s.jsx)(c0.Provider,{value:{isCourseNavOpen:n},children:e})}function Zg(){return(0,h.useContext)(c0)}const gh=960;function Ui(){return Os(gh)}function Yg(){const t=(0,Te.DX)(),e=Ui(),n=(0,Te.SQ)();return(0,It.L3)({course:t,isMobile:e,search:n})}function _g(){const t=(0,Te.DX)(),e=Ui();return(0,It.IO)({course:t,isMobile:e})}var vh=i(59288);class Xg extends vh.Component{refProgressWrap=vh.createRef();timeoutScroll;portal;constructor(e){super(e),this.state={isSticky:!1},this.portal=yr()}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=H()("progress-wrap",{}),c=r,u=r&&a,m=H()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":l&&!u,"lesson--open":c&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&u&&!this.isLessonPreview()}),p=H()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),f=this.progressValue(),g=e==="timeline"&&n&&n.map(C=>{const b=H()("progress__marker",{"progress__marker--active brand--background":parseInt(String(f))>=parseInt(C.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:b,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,Xn.createPortal)((0,s.jsx)("div",{"aria-hidden":"true",className:m,children:v}),this.portal)]})}}const Jg=t=>{const e=Yg(),{isCourseNavOpen:n}=Zg()??{},o=Os(480);return(0,s.jsx)(Xg,{...t,isCourseNavOpen:n,isMobile:o,sidebarAvailable:e})},qg=ma,ev=ma,tv=ma,sv=ma,nv=ma,ov=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 rv(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 av({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 iv(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 lv(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 cv(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 dv(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 Jn=i(67757);function Ch(t){const e=(0,Jn.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,Jn.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 uv(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 hv(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 mv(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 pv(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 fv(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 gv=re("cover"),Zl=At("CoverDetailsSection",({children:t,type:e})=>(0,s.jsx)("section",{className:gv("details-content-section",{type:e}),children:t}));var vv=i(72168),Ds=i.n(vv),Cv=i(4322),Mo=i.n(Cv),xv=i(10789),Nt=i.n(xv),bv=i(27905),on=i.n(bv),yv=i(72970),Ta=i.n(yv),Ev=i(97886),Yl=i.n(Ev),Lv=i(86484),Yo=i.n(Lv),Tv=i(47474),ja=i.n(Tv),jv=i(54996),Iv=i.n(jv),Sv=i(45015),Nv=i.n(Sv),Av=i(68971),xh=i.n(Av),Pv=i(18779),Rv=i.n(Pv),Mv=i(67711),Vi=i.n(Mv),kv=i(91794),Tr=i.n(kv),Ov=i(53970),bh=i.n(Ov),wv=i(63064),_l=i.n(wv),Wi=i(36523),Bs=i(23366),Dv=i(41820);class rn{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 Bv=Vi()(kn()),yh=t=>e=>`${t}/${e.id}`,Hv=(t,e)=>Kl()({data:(0,Wi.action)(e),method:"POST",url:(0,Bs.rq)(Bv(`/${e}`),tt()("url"),t),...Cn()(["headers","withCredentials"],t)}),zv=t=>(e,n)=>Iv()(e,yh(n),d0(t,n)),Fv=t=>rs()(et()({},["response","data"]),Yl()(tt()("type"),(0,Wi.error)(t))),Uv=(t,e)=>n=>t.postRequest?t.postRequest(e,n):n,Eh=t=>e=>n=>o=>(0,Bs.Ve)(o,Hv(e,n),t,xh()(Fv(n),Yo()(Ta()("data"),tt()("data"))),Rv()(Tr()(tt()("error"),ja().Rejected,ja().of)),Uv(e,{type:n,payload:o})),Vv=({url:t,method:e,data:n,headers:o})=>{if(rn.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(bh()("data"))},Wv=ja().fromPromise(Vv),d0=_l()(3,Eh(Dv.Em)),$v=_l()(3,Eh(Wv)),Kv=t=>(e,n)=>Nv()(e,yh(n),d0(t,n)),Gv=t=>({debounce:zv(t),send:d0(t),fetchWithKeepAlive:$v(t),throttle:Kv(t)}),Qv=`${(0,Me._$)("RISE_RUNTIME_URI")}/ducks`,Zv=Gv({headers:()=>({"x-rise-authoring-client":"e976d6972295ac3db9bb1ebedd752f29abc640af"}),postRequest:(t,e)=>e,url:Qv,withCredentials:!0});var Yv=i(41260),_v=i.n(Yv);const Xv=_v()({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 Jv=i(73173),$i=i(18796);const qv=kn()("rise/track/")("TRACK"),e4=t=>({...t,context:{locale:navigator.language,device:(0,$i.Pf)(),channel:(0,$i.c)(),userAgentData:(0,$i.NO)(),page:(0,$i.WE)(),userAgent:(0,$i.$t)(),...t.context}}),t4=(t,e)=>({...t,properties:{...(0,Jv.yV)(e),...t.properties}}),Lh=t=>(e,n)=>{const o=n(),r=rs()(e4,a=>t4(a,o),Yl()(Ta()("userId"),on()("userId",(0,ve.kn)())),Yo()(Nt()(Me.BI),Xv))(t);return e(Zv.send(qv)(r))},Xs=kn()("partner-content-book-info__"),s4=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=Ds()(A=>A.name,m),f=p.length>1?Ri()(" & ",p):p[0],g=f.slice(-1)==="s"?"":"s",v=(0,it.cP)(n),C=H()({[Xs("book-image-block")]:l&&!v},{[Xs("book-image-block")&&Xs("dark-theme-book-image")]:l&&v},{[Xs("book-image-course")]:!l}),b=Xs(l?"flex-block":"flex-course"),y=Xs(l?"image-container-block":"image-container-course"),x=H()(Xs("small-text"),{[Xs("dark-theme")]:v}),L=H()(Xs("black-text"),{[Xs("dark-theme")]:v}),E=H()(Xs("button"),{[Xs("dark-theme-button")]:v}),S=(0,Yt.ny)({height:"210",width:"140",imageKey:o}),N=(0,h.useCallback)(()=>{Me.BI&&d&&c({event:"Click Tracked",payload:Mo()(u,{type:"Buy Link"})})},[d,c,u]);return(0,s.jsxs)("section",{className:b,children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:y,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"})]})]})},n4={track:Lh},Th=(0,As.Ls)(null,n4)(s4),wn=kn()("partner-content-partner-info__"),o4=({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,it.cP)(t),m=H()(wn("small-text"),{[wn("dark-theme")]:u}),p=H()(wn("black-text"),{[wn("dark-theme")]:u}),f=H()(wn("button"),{[wn("dark-theme-button")]:u}),g=(0,h.useCallback)(()=>{Me.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"})]})]})},r4={track:Lh},jh=(0,As.Ls)(null,r4)(o4),Ia=kn()("partner-content-author-card__"),Ih=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=H()(Ia("flex"),Ia("author-container")),b=x=>(0,Yt.ny)({width:"122",height:"122",imageKey:x}),y=(x,L)=>(0,s.jsx)("div",{"aria-hidden":"true",className:Ia("image-container"),children:x?(0,s.jsx)("img",{alt:L,className:Ia("author-image"),src:b(x)}):(0,s.jsx)("div",{className:Ia("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:[y(x.image,x.name),(0,s.jsx)("p",{className:Ia("author-name-text"),children:x.name})]},x.name))]})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Th,{authors:d,bookImage:c,bookTitle:u,buyLink:m,publishedAt:o,trackingInfo:v})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(jh,{link:f,publishedAt:o,trackingInfo:v})})]})},a4=re("cover");function i4(t){const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:l}=t;if(!r)return null;const d=a4("details-content-aside",{logo:o});return(0,s.jsx)("div",{className:d,children:(0,s.jsx)(Zl,{type:"partner-content",children:(0,s.jsx)(Ih,{courseId:e,partnerContent:n,publishedAt:a,tenantId:l})})})}var l4=i(95017),Xl=i.n(l4);const c4=re("cover"),d4=At("CoverDetailsContentHeading",({className:t="",type:e,...n})=>{const o=Xl()(["Default"],n);return(0,s.jsx)("header",{...o,className:c4("details-content-heading",{type:e}).mix(t)})}),u4=re("cover");function h4({children:t,title:e,type:n}){const o=(0,Te.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:u4("details-content-section",{type:p}),children:[(0,s.jsx)(d4,{type:n,children:(0,s.jsx)("h2",{children:e})}),t]})}const m4=re("cover");function Ki(){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:m4("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 p4=()=>Os(480),f4=()=>Os(768),g4={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function Sh(){const t=(0,Te.DX)(),e=f4(),n=t?.theme?.coverPageType||"CENTERED";return e?g4[n]??n:n}const v4=re("cover"),C4=()=>null,x4=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(s0,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ws,{}),(0,s.jsx)(Ki,{}),(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)(ws,{}),(0,s.jsx)(Ki,{}),(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})})}),y4=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Bi,{}),(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ws,{}),(0,s.jsx)(Ki,{}),(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})})]}),E4=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ws,{}),(0,s.jsx)(Ki,{}),(0,s.jsx)(ao,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})}),(0,s.jsx)(Bi,{})]}),L4=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ws,{}),(0,s.jsx)(Ki,{}),(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)(Bi,{})})]});function T4(){switch(Sh()){default:case"CENTERED_IMAGE":return(0,s.jsx)(L4,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,s.jsx)(b4,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,s.jsx)(E4,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,s.jsx)(y4,{});case"CENTERED_OVERLAY":return(0,s.jsx)(x4,{})}}function j4(){return(0,s.jsxs)("header",{className:v4("header",{meta:!1}),"data-test-id":"cover-header",children:[(0,s.jsx)(T4,{}),(0,s.jsx)($().Suspense,{children:(0,s.jsx)(C4,{})})]})}var I4=i(59288);const S4=re("cover");function N4({children:t}){const e=(0,Te.DX)(),{themeId:n}=e?.theme??{},o=Sh(),r=I4.useMemo(()=>Hi()(o),[o]),a=S4(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 Nh=i(59288);const u0=re("lesson-header"),A4=({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:u0("content"),children:[g&&(0,s.jsxs)("div",{className:u0("info-row"),children:[f?(0,s.jsx)(io,{authorName:t,avatar:e}):(0,s.jsx)(zi,{}),p&&(0,s.jsx)(ba,{partnerContentAuthors:a}),v&&(0,s.jsx)("span",{"aria-hidden":"true",className:u0("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})})]})},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,f=Nh.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)(r0,{partnerContentAuthors:a}),(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=Nh.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)(zi,{}),l&&p&&(0,s.jsx)(ba,{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 M4(t){const e=p4();return t.lessonHeaderSize===I.OX.SMALL&&!e?(0,s.jsx)(A4,{...t}):e?(0,s.jsx)(P4,{...t}):(0,s.jsx)(R4,{...t})}var h0=i(59288);const{COMPACT:k4,COVER:O4,OVERLAY:w4,SIDEBAR:D4}=Qe.by,Sa=re("progress-circle");function B4({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[l,d]=h0.useState(a===100),c=(0,_t.A)(a),{theme:{progressIndicatorStyle:u=I.Y2.THEME_DEFAULT}}=(0,Te.DX)(),m=r===O4,p=r===w4,f=u===I.Y2.THEME_DEFAULT,g=u===I.Y2.CIRCULAR_FILL,v=u===I.Y2.INCOMPLETE_COMPLETE,C=Sa("default",{failed:n,passed:o}),b=Sa({compact:r===k4,cover:m,overlay:p,sidebar:r===D4}),y=Sa("track",{"circular-fill":!p&&g,"incomplete-complete":m&&v}),x=Sa("fill",{"circular-fill":g,done:l,failed:n,passed:o,unstarted:a===0}),L=Sa("pass",{done:l,visible:o}),E=Sa("fail",{done:l,visible:n}),S=h0.useMemo(()=>g||a===100?a:0,[g,a]);return h0.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:b,fill:"none",focusable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:y,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,s.jsx)(i0,{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 H4({Default:t,...e}){return(0,s.jsx)(t,{...e,hasOverlay:!1})}var z4=i(10894),Gi=i.n(z4);const m0=t=>e=>(t(e),e.preventDefault()),Na=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},qn=t=>e=>{t(e),e.preventDefault(),Na(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 F4(t){return Jl(t,{limit:1})[0]}function Ah(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),U4=i(63036),Ps=i.n(U4),V4=i(45005),bn=i.n(V4),W4=i(92629),_o=i.n(W4),$4=i(53625),ko=i.n($4);const K4={keys:["End"],keyCode:ho.KEY_END},G4={keys:["Enter"],keyCode:ho.KEY_RETURN},Q4={keys:["Home"],keyCode:ho.KEY_HOME},Z4={keys:["Tab"],keyCode:ho.KEY_TAB},Y4={keys:[" "],keyCode:ho.KEY_SPACE},_4={keys:["Escape","Esc"],keyCode:ho.KEY_ESCAPE},X4={keys:["ArrowUp"],keyCode:ho.KEY_UP},J4={keys:["ArrowDown"],keyCode:ho.KEY_DOWN},q4={keys:["ArrowLeft"],keyCode:ho.KEY_LEFT},e9={keys:["ArrowRight"],keyCode:ho.KEY_RIGHT},mo=({keyCode:t,keys:e})=>n=>n.keyCode?n.keyCode===t:bn()(n.key,e),t9=t=>t.altKey||t.ctrlKey||t.metaKey,s9=mo(K4),jr=mo(G4),n9=mo(Q4),ql=mo(Z4),ec=mo(Y4),an=mo(_4),Qi=mo(X4),Zi=mo(J4),Aa=mo(q4),Pa=mo(e9),Xo=ko()(ec,jr),D$=ko()(ql,jr),tc=ko()(Pa,Qi),sc=ko()(Aa,Zi),Ph=ko()(Qi,Zi),Rh=Yo()(Xo),Mh=25,o9=_o()((t,e)=>{t.scrollTop!==0&&(e.preventDefault(),t.scrollTop-=Mh)}),r9=_o()((t,e,n)=>{e&&(n.preventDefault(),t.scrollTop+=Mh)}),a9=(t,e)=>n=>{const o=r9(t,e),r=o9(t);Ps()([[Zi,o],[Qi,r]])(n)},nc=re("lesson-progress"),{COMPACT:p0,COVER:Yi,OVERLAY:f0,SIDEBAR:_i}=Qe.by;function i9({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:b,progressGraphic:y,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,Te.DX)(),M=k===I.Y2.THEME_DEFAULT,W=nc({compact:x===p0,cover:x===Yi&&!c,"legacy-cover":x===Yi&&c,inactive:n,overlay:x===f0,sidebar:x===_i&&!c,"legacy-sidebar":x===_i&&c,"theme-default":M}),D=nc("graphic",{compact:x===p0,cover:x===Yi&&!c,"legacy-cover":x===Yi&&c,overlay:x===f0,sidebar:x===_i&&!c,"legacy-sidebar":x===_i&&c}),w=nc("tooltip",{legacy:c}).toString(),Z=(0,h.useCallback)(()=>{o?v?.():g?.()},[o,g,v]),U=(0,h.useCallback)(ce=>{Gi()(f)&&an(ce)&&m&&f()},[f,m]),z=(0,h.useCallback)(()=>{clearTimeout(N.current),!n&&Gi()(C)&&(S.current=setTimeout(C,600))},[n,C]),G=(0,h.useCallback)(()=>{clearTimeout(S.current),Gi()(f)&&(N.current=setTimeout(f,150))},[f]),ue=(0,h.useCallback)(()=>{setTimeout(()=>{if(m){const ce=E.current.getBoundingClientRect(),Ne=A.current.offsetParent.getBoundingClientRect(),{height:we,width:$e}=ce,Fe=ce.left-Ne.left,Ke=ce.top-Ne.top;Object.assign(A.current.style,{transform:`translate(${Fe}px, ${Ke}px)`,width:`${$e}px`,height:`${we}px`})}},0)},[m]);if((0,h.useLayoutEffect)(()=>ue(),[ue]),(0,is.A)("resize",ue,window),(0,is.A)("keydown",U,document),Ah(E,G),t){const ce=Me.BI&&b===100,Ne=l9({labels:L,percentComplete:b,canReset:!ce}),we=!l||ce,$e=nc("action",{disabled:we});return(0,s.jsx)("span",{className:W,"data-test-id":"lesson-progress",children:(0,s.jsx)("button",{"aria-label":Ne,className:$e,disabled:we,onBlur:f,onClick:Z,onFocus:C,type:"button",children:(0,s.jsxs)("span",{className:D,onMouseEnter:z,onMouseLeave:G,ref:E,children:[(0,s.jsx)(y,{"aria-hidden":"true",color:e,isCurrent:r,isDark:a,isFailed:d,isPassed:u,navigationStyle:p,scope:x,value:b}),l&&!n&&(0,s.jsx)(kh,{className:w,dark:a,ref:A,scope:x,visible:m,children:Ne})]})})})}const ie=c9({labels:L,isFailed:d,percentComplete:b});return(0,s.jsx)("span",{className:W,"data-test-id":"lesson-progress",children:(0,s.jsxs)("span",{className:D,onMouseEnter:z,onMouseLeave:G,ref:E,children:[(0,s.jsx)(y,{"aria-label":ie,color:e,isCurrent:r,isDark:a,isFailed:d,isPassed:u,navigationStyle:p,scope:x,value:b}),l&&!n&&(0,s.jsx)(kh,{className:w,dark:a,ref:A,scope:x,visible:m,children:ie})]})})}const kh=(0,h.forwardRef)((t,e)=>{const{children:n,className:o,dark:r,scope:a,visible:l}=t,d=(0,h.useMemo)(()=>re(o),[o]),c=d({compact:a===p0,cover:a===Yi,overlay:a===f0,sidebar:a===_i,visible:l}),u=d("inner",{dark:r,light:!r}),m=(0,s.jsx)("div",{"aria-hidden":"true",onClick:Na,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,Xn.createPortal)(m,yr())});function l9({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 c9({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 Oh=$().memo(i9);function d9({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)(Oh,{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 u9(){return null}function wh({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 h9(t){const e=(0,Jn.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 m9(t){const e=(0,Jn.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 Dh(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 Bh(t){const e=(0,Jn.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 Hh(t){const e=(0,Jn.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 p9({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 f9(t){const e=(0,Jn.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 g9({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 v9(t){const e=(0,Jn.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 C9=()=>Os(1200),x9=()=>Os(768),g0=()=>Os(480),zh=re("cover");function b9(){const t=(0,Te.DX)(),e=C9(),n=(0,xt.QQ)(t.description);if(!n)return null;const o=ga("description"),r=(0,ds.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:zh("details-content-section"),children:[e&&(0,s.jsx)(qd,{}),(0,s.jsx)(St,{className:zh("details-content-description"),value:$d(n)},"text")]})})}const y9={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function v0(){const t=(0,Te.DX)(),e=x9(),n=t?.theme?.coverPageType||"CENTERED";return e?y9[n]??n:n}function E9({Default:t,...e}){const n=v0(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(n);return(0,s.jsx)(t,{...e,reverseColumns:o})}const Fh=re("cover");function Xi({accentColor:t,hasOverlay:e=!1,isShape:n=!1}){const{alpha:o,ariaLabel:r,media:a,role:l}=br("coverImage"),d=n?{backgroundColor:t}:(0,It.b9)({alpha:o,hasOverlay:e,media:a});return(0,s.jsx)("div",{className:Fh("header-graphic-container"),children:(0,s.jsx)("div",{"aria-label":r,className:Fh("header-graphic"),"data-test-id":"cover-header-graphic",role:l,style:d})})}const Uh=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"})})}),Vh=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"})})}),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.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"})})}),$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.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"})})}),L9={LEFT_OVERLAY:Uh,LEFT:Uh,CENTERED:Vh,CENTERED_OVERLAY:Vh,SPLIT_LEFT:Wh,SPLIT_LEFT_IMAGE:Wh,SPLIT_RIGHT:$h,SPLIT_RIGHT_IMAGE:$h},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 Ir({className:t,coverPageType:e}){const n=e?L9[e]:null;return n?(0,s.jsx)(n,{className:t}):null}const Kh=re("cover"),Ra=()=>(0,s.jsxs)("div",{className:Kh("author-published-wrap"),children:[(0,s.jsx)(ao,{}),(0,s.jsx)($1,{})]}),T9=({coverPageType:t})=>{const e=g0();return(0,s.jsxs)(s0,{children:[(0,s.jsx)(Ir,{coverPageType:t}),(0,s.jsxs)(Ys,{children:[!e&&(0,s.jsx)(ws,{}),(0,s.jsx)(Ra,{}),(0,s.jsx)(_s,{}),e&&(0,s.jsx)(ws,{}),(0,s.jsx)(Qs,{})]})]})},j9=({coverPageType:t})=>{const e=g0();return(0,s.jsxs)(On,{children:[(0,s.jsx)(Ir,{coverPageType:t}),(0,s.jsxs)(Ys,{children:[!e&&(0,s.jsx)(ws,{}),(0,s.jsx)(Ra,{}),(0,s.jsx)(_s,{}),e&&(0,s.jsx)(ws,{}),(0,s.jsx)(Qs,{})]})]})},I9=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ir,{coverPageType:t}),(0,s.jsx)(Xi,{}),(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ws,{}),(0,s.jsx)(Ra,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})})]}),S9=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ws,{}),(0,s.jsx)(Ra,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})}),(0,s.jsx)(Ir,{coverPageType:e}),(0,s.jsx)(Xi,{accentColor:t,isShape:!0})]}),N9=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ws,{}),(0,s.jsx)(Ra,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})}),(0,s.jsx)(Ir,{coverPageType:t}),(0,s.jsx)(Xi,{})]}),A9=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ir,{coverPageType:e}),(0,s.jsx)(Xi,{accentColor:t,isShape:!0}),(0,s.jsx)(On,{children:(0,s.jsxs)(Ys,{children:[(0,s.jsx)(ws,{}),(0,s.jsx)(Ra,{}),(0,s.jsx)(_s,{}),(0,s.jsx)(Qs,{})]})})]});function P9(t){const e=v0(),n={...t,coverPageType:e};switch(e){default:case I.BL.LEFT_OVERLAY:case I.BL.CENTERED_OVERLAY:return(0,s.jsx)(T9,{...n});case I.BL.LEFT:case I.BL.CENTERED:return(0,s.jsx)(j9,{...n});case I.BL.SPLIT_LEFT:return(0,s.jsx)(S9,{...n});case I.BL.SPLIT_LEFT_IMAGE:return(0,s.jsx)(N9,{...n});case I.BL.SPLIT_RIGHT:return(0,s.jsx)(A9,{...n});case I.BL.SPLIT_RIGHT_IMAGE:return(0,s.jsx)(I9,{...n})}}function R9(t){const{partnerContentId:e}=(0,Te.DX)(),n=(0,Te.Bd)(),r=!!(!!e&&n||Me.BI);return(0,s.jsx)("header",{className:Kh("header",{"with-info":r}),"data-test-id":"cover-header",children:(0,s.jsx)(P9,{...t})})}var M9=i(59288);const k9=re("cover");function O9({children:t}){const e=(0,Te.DX)(),{themeId:n}=e?.theme??{},o=v0(),r=M9.useMemo(()=>Hi()(o),[o]),a=k9(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 w9=Rs("AlignLeft"),rc=Rs("ArrowDown"),Gh=Rs("ArrowRight"),Qh=Rs("ArrowUp"),D9=Rs("Category"),B9=Rs("ChevronDown"),H9=Rs("ChevronUp"),z9=Rs("LessonsComplete"),F9=Rs("LessonsRequirement"),U9=Rs("QuestionBox"),V9=Rs("QuizFailed"),W9=Rs("QuizPassed"),$9=Rs("QuizRequirement"),Ji=Rs("Search"),Zh=Rs("ToggleDown"),K9=Rs("Touch"),G9=Rs("VideoCamera"),ac=Rs("X"),Oo=re("cover");function Q9({nextLesson:t,percentComplete:e}){const n=g0(),r=(0,Te.Wz)()?`%${e}`:`${e}%`;return e===0||!Me.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)(Gh,{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 Yh=i(59288);const ic=re("lesson-header"),C0=()=>(0,s.jsx)("div",{className:ic("author--hidden")}),Z9=({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)(C0,{}),f&&(0,s.jsx)(ba,{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)(Er,{description:n})]})]})},Y9=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=Yh.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)(Ag,{children:[v?(0,s.jsx)(io,{authorName:e,avatar:n}):(0,s.jsx)(C0,{}),c&&g&&(0,s.jsx)(ba,{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)(Er,{description:o})]})},_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=Yh.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)(C0,{}),c&&g&&(0,s.jsx)(r0,{partnerContentAuthors:d}),(0,s.jsx)(uo,{id:f,title:m}),o&&(0,s.jsx)(Er,{description:o})]})};function X9(t){const e=Yd();return t.lessonHeaderSize===I.OX.SMALL&&!e?(0,s.jsx)(Z9,{...t}):e?(0,s.jsx)(_9,{...t}):(0,s.jsx)(Y9,{...t})}var lc=i(59288);const{COMPACT:J9,COVER:q9,OVERLAY:e8,SIDEBAR:t8}=Qe.by,qi=re("progress-circle");function s8({"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,Te.DX)(),m=r===q9,p=r===e8,f=u===I.Y2.THEME_DEFAULT,g=u===I.Y2.CIRCULAR_FILL,v=u===I.Y2.INCOMPLETE_COMPLETE,C=qi({compact:r===J9,cover:m,sidebar:r===t8,overlay:p}),b=qi("track",{"circular-fill":!p&&g,"incomplete-complete":m&&v}),y=qi("runner",{"circular-fill":g,done:l,failed:n,passed:o,unstarted:a===0}),x=qi("pass",{done:l,visible:o}),L=qi("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:b,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)(fh,{className:y,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)(i0,{className:y,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}%`}})}),n8=re("nav-sidebar-header");function o8(t){const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=t;return(0,s.jsxs)("div",{className:n8("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 r8({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 a8(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 i8(t){const e=(0,Jn.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 l8({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 c8(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 _h(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 d8(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 u8(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 h8(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 m8(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 p8(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 f8(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 Xh=i(59288);const Jh=V,g8={classic:V,default:V,imaginative:X,organic:ae},qh=Object.assign(Xh.createContext(Jh),{displayName:"ThemeContext"});function v8(){return Xh.useContext(qh)}function C8({themeId:t,...e}){return(0,s.jsx)(qh.Provider,{...e,value:g8[t]??Jh})}function x8(t){return(0,s.jsx)(s.Fragment,{children:t.children})}function b8(){return null}function em(t,e,n){function o(r){const l=v8()?.[t]?.[e]??n;return(0,s.jsx)(l,{...r,Default:n})}return o.displayName=`ThemeComponent(${e})`,o}function At(t,e=x8){return em("components",t,e)}function Rs(t){return em("icons",t,b8)}const y8=re("cover");function E8({className:t="",dueAt:e}){const n=Ni(),o=fr(),r=o==null||o.quizPassed||o.outOfAttempts,a=O1(e),l=y8("due-date",{urgent:a}).mix(t);return!e||n&&r?null:(0,s.jsx)("div",{className:l,tag:"div",children:Wd(e)})}const L8=At("CoverDueDate",E8);function T8(t){const{dueAt:e}=wt(t);return{dueAt:e}}const j8=(0,O.Ng)(T8)(L8),Sr=re("cover"),I8=At("CoverProgress",({nextLesson:t,percentComplete:e})=>{const o=(0,Te.Wz)()?`%${e}`:`${e}%`;return e===0||window.isPublicShare||!Me.BI?null:(0,s.jsxs)("div",{className:Sr("progress"),children:[(0,s.jsxs)("div",{className:Sr("progress-text"),children:[o," Complete"]}),(0,s.jsx)("div",{className:Sr("progress-outer"),children:(0,s.jsx)("div",{className:Sr("progress-inner"),style:{width:`${e}%`}})}),t&&(0,s.jsxs)("div",{className:Sr("progress-next-lesson"),children:[(0,s.jsx)(Gh,{className:Sr("progress-next-lesson-icon").toString(),decorative:"true"}),(0,s.jsx)("span",{"aria-hidden":"true",className:Sr("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})}),S8=()=>{const t=ua();return(e,{currentLocale:n})=>{const o=t(n,e),r=Go(e);return{nextLesson:o,percentComplete:r}}},N8=ke()(jt.wZ,(0,O.Ng)(S8))(I8),{useLabelsMap:A8}=i(28239),tm=({failed:t,complete:e})=>{const n=A8();return(0,s.jsxs)("span",{className:"visually-hidden-always",children:[t?n?.a11yCoverRequirementFailed||"Requirement failed":e?n?.a11yCoverRequirementComplete||"Requirement complete":n?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},eo=re("cover");function P8(){const t=(0,Te.DX)(),e=(0,st.useLabelsMap)(),{trackingCompletionPercentage:n,trackingQuizId:o}=t;return n==null&&!o?null:(0,s.jsxs)("section",{className:eo("requirements-section"),children:[(0,s.jsx)("h2",{className:eo("requirements-title"),children:e?.coverCourseRequirements||"Course Requirements"}),(0,s.jsxs)("ul",{className:eo("requirements-list"),children:[(0,s.jsx)(R8,{}),(0,s.jsx)(k8,{})]})]})}function R8(){const{trackingCompletionPercentage:t}=(0,Te.DX)(),e=(0,Te.v1)(),n=pr(),o=(0,st.useLabelsMap)(),r=Math.ceil(t/100*e),a=r===e;if(t==null||r==null)return null;const l=n>=t,d=l?z9:F9;return(0,s.jsxs)("li",{className:eo("lesson-requirement"),role:"listitem",children:[(0,s.jsx)(d,{"aria-hidden":"true",className:eo("lesson-requirement-icon",{complete:l}).toString()}),(0,s.jsxs)("span",{className:eo("lesson-requirement-text"),children:[(0,s.jsx)(tm,{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 M8={passed:W9,failed:V9,requirement:$9};function k8(){const t=(0,st.useLabelsMap)(),e=ca(),n=fr(),o=Cs(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=M8[c];return(0,s.jsxs)("li",{className:eo("quiz-requirement"),role:"listitem",children:[(0,s.jsx)(u,{"aria-hidden":"true",className:eo("quiz-requirement-icon",{type:c}).toString()}),(0,s.jsxs)("span",{className:eo("quiz-requirement-text"),children:[(0,s.jsx)(tm,{complete:l,failed:d}),o,r!=null&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",className:eo("quiz-requirement-seperator"),children:"\xA0|\xA0"}),t?.coverQuizScoreOf||"Score of"," ",r,t?.coverQuizPercentOrHigher||"% or higher"]}),d&&(0,s.jsx)("div",{className:eo("quiz-requirement-no-attempts"),children:t?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}function O8(t){const{to:e,children:n}=t,o=(0,Ae.zy)(),r=(0,h.useMemo)(()=>(0,eh.B)(e,o),[o,e]);return(0,s.jsx)(q1.k2,{...t,to:r,children:n})}var x0=i(5683);const sm="focus-lesson-content",V$="preview-nav-to-first-lesson",W$="preview-nav-to-cover-page",ss="preview-nav-to-lesson-item",$$="preview-scroll-to-nav-prev",K$="preview-scroll-to-header",b0="preview-clear-state",dc="preview-show-nav-prev",uc="preview-show-nav-next",nm="preview-nav-open",om="preview-nav-close",rm="event-lesson-transition-start",am="event-lesson-transition-end",im="event-lesson-nav-prev-visible",y0="event-lesson-nav-prev-hidden",lm="event-lesson-nav-next-visible",E0="event-lesson-nav-next-hidden",L0=new WeakMap,cm=new ResizeObserver(t=>{for(const e of t)L0.get(e.target)?.(e)});function hc(t,e){(0,h.useEffect)(()=>{if(t)return L0.set(t,e),()=>L0.delete(t)},[t,e]),(0,h.useEffect)(()=>{if(t)return cm.observe(t),()=>cm.unobserve(t)},[t])}function w8(){const t=(0,O.wA)(),[e,n]=(0,h.useState)(null),o=(0,st.useLabelsMap)(),r=(0,h.useCallback)(a=>{t((0,x0.s)({offsetHeight:a.target.offsetHeight}))},[t]);return(0,h.useLayoutEffect)(()=>{if(e)return t((0,x0.s)({offsetHeight:e.offsetHeight})),()=>t((0,x0.s)(null))},[t,e]),hc(e,r),(0,s.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:dm,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)(p6,{className:"btn-skip-to-lesson__icon"})})]})})}function D8(t){(0,is.A)(sm,t,document)}function dm(){document.dispatchEvent(new CustomEvent(sm))}const um=(0,h.createContext)(!1);function mc({children:t,inert:e}){const n=T0();return(0,s.jsx)(um.Provider,{value:n||e,children:t})}function T0(){return(0,h.useContext)(um)}function B8(t){return t?.sessionPreferences}function hm(){return(0,O.d4)(t=>B8(t))}const H8=(0,h.forwardRef)((t,e)=>{const{children:n,className:o="lesson-link-item-tooltip",dark:r,visible:a}=t,l=(0,h.useMemo)(()=>re(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,Xn.createPortal)(d,document.getElementById("portal"))});function mm(t){const{children:e,className:n,dark:o,restriction:r,tooltipClassName:a,style:l}=t,{prefersKeyboardNavigation:d}=hm(),c=(0,h.useRef)(),u=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,st.useLabelsMap)(),f=T0(),[g,v]=(0,h.useState)(!1),C=(0,h.useCallback)(()=>v(!0),[]),b=(0,h.useCallback)(()=>v(!1),[]),y=(0,h.useCallback)(()=>{setTimeout(C,0)},[C]),x=(0,h.useCallback)(()=>{d&&b()},[b,d]),L=(0,h.useCallback)(k=>{an(k)&&g&&(k.stopPropagation(),b())},[b,g]),E=(0,h.useCallback)(()=>{document.activeElement===c.current&&(clearTimeout(m.current),C())},[C]),S=(0,h.useCallback)(()=>{m.current=setTimeout(b,150)},[b]),N=(0,h.useCallback)(()=>{if(g){const k=c.current.getBoundingClientRect(),M=u.current.offsetParent.getBoundingClientRect(),{height:W,width:D}=k,w=k.left-M.left,Z=k.top-M.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),Ah(c,b);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:y,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)(H8,{className:a,dark:o,ref:u,visible:g,children:A})]})}function z8(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=T0(),{theme:{progressIndicatorStyle:b=I.Y2.THEME_DEFAULT}}=(0,Te.DX)(),y=b===I.Y2.THEME_DEFAULT,x=(0,h.useCallback)(D=>{d(D),r?(D.preventDefault(),dm()):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&&an(D)&&u()},[u,a]),A=(0,h.useCallback)(()=>{a&&E(!0)},[a]),k=(0,h.useCallback)(()=>{a&&E(!1)},[a]),M=f?.type!=null,W=e("link",{active:r,restricted:M,"theme-default":y}).toString();return M?(0,s.jsx)(mm,{...t,className:W,style:v}):(0,s.jsx)(O8,{"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 el(t){const{className:e="lesson-link-item",isCurrentLesson:n,last:o,lessonId:r,style:a}=t,l=(0,h.useMemo)(()=>re(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)(z8,{...t,b:l,isCurrentLesson:n,restriction:d,style:a})})}const F8=re("lesson-nav"),U8=t=>{const{children:e,finish:n,lessonId:o,onFocus:r}=t;if(o)return(0,s.jsx)(el,{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})})},V8=({buttonScheme:t,accentContrast:e,children:n,className:o,direction:r,finish:a,navLessonId:l,onFocus:d,restrictionType:c},u)=>{const m=c!=null,p=Lr(),g={className:F8(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)(U8,{accentContrast:e,"data-direction":r,finish:a,lessonId:l,onFocus:d,children:n})})};function W8(t,e){const{currentLocale:n}=e,o=wt(t),r=(0,st.selectLabelsMap)(n,t);return{buttonScheme:o.buttonScheme,accentContrast:o.theme?.accentContrast,labelLessonRestricted:r.lessonRestricted,labelQuizRequirePassingScore:r.quizRequirePassingScore}}const $8=ke()(jt.wZ,(0,O.Ng)(W8,null,null,{forwardRef:!0}),h.forwardRef)(V8),K8={CoverCompletedInformation:ef,CoverDueDate:j8,CoverProgress:N8,CoverRequirements:P8,ImageEagerOrLazy:oh,LessonNav:$8};function G8({children:t}){return(0,s.jsx)(mg,{...K8,children:t})}var Q8=i(71129),Z8=i(63006);const pm={"rise-course-navigation":!0},Y8={"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-subscription-override":!1,"rise-com-360-upsell":!0},j0=(0,h.createContext)(pm);j0.displayName="FeatureFlagsContext";const{Provider:_8}=j0;function X8({children:t,value:e}){const n=(0,h.useMemo)(()=>({...Y8,...e,...pm}),[e]);return(0,s.jsx)(_8,{value:n,children:t})}function pc(){return(0,h.useContext)(j0)}function Nr(t){return pc()[t]}function Q$(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=Nr(t),l={...r,[e]:a};return(0,s.jsx)(n,{...l})};return o.displayName=`withFeatureFlag(${n.displayName||n.name})`,o}}const fm=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});fm.displayName="On";const gm=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});gm.displayName="Off";const Ma=({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 $().Children.forEach(t,d=>{switch(d.type.displayName){case Ma.On.displayName:l.on=d;break;case Ma.Off.displayName:l.off=d;break;default:l.on=t}}),l},[t]);return o?r:a};Ma.On=fm,Ma.Off=gm;const J8={};function q8({children:t}){const e=(0,O.wA)(),n=pc();return(0,Q8.A)(()=>{e((0,Z8.G)(n))},[n]),t}function e7({children:t}){const n=Xt()?.features??J8;return(0,s.jsx)(X8,{value:n,children:(0,s.jsx)(q8,{children:t})})}var t7=i(33169),I0=i(41481);const s7=t=>Me.BI?t??"":t?`${t} | ${Me.mZ}`:Me.mZ,tl=t=>(0,Me.Hm)()?t:s7(t);var n7=i(59288);function Ar({children:t,title:e}){const n=tl((0,Te.d_)()),o=e??n;return n7.useEffect(()=>{document.title=o},[o]),(0,s.jsx)(s.Fragment,{children:t})}var o7=i(42432),r7=i.n(o7),a7=i(98395),i7=i(88747);const S0=Object.assign((0,h.createContext)(void 0),{displayName:"BlockContext"});function N0({block:t,children:e}){const[n,o]=(0,h.useState)(t);return(0,h.useEffect)(()=>o(r=>t||r),[t]),(0,s.jsx)(S0.Provider,{value:n,children:(0,s.jsx)(bm,{...n?.settings,children:e})})}const Y$=S0.Consumer;function yn(){return(0,h.useContext)(S0)}function gc(t){return function(n){const o=yn();return(0,s.jsx)(t,{...n,block:o})}}var l7=i(92348),c7=i.n(l7),d7=i(78483),A0=i.n(d7),u7=i(98511),vc=i.n(u7),h7=i(77412);const vm=2,to=c7()({WHITE:null,TRANSPARENT:null}),m7={backgroundColor:"",backgroundType:I.xj.LIGHT,cardMode:to.WHITE,customBackgroundColorContrast:I.Em.AUTO,entranceAnimation:!0,markerColorContrast:I.Em.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:I.Em.AUTO},p7={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 f7(t,e){return p7[t]?.includes?.(e)??!1}const g7={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function v7(t,e){const n=g7[t]?.[e];return n==null?{}:{backgroundColor:n,backgroundType:I.xj.COLOR}}const C7={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 _$(t,e){return C7[t]?.includes(e)??!1?.1:.5}function x7(t){switch(t.backgroundType){case I.xj.COLOR:return t.backgroundColor;case I.xj.ACCENT:return t.courseColor;case I.xj.TINT:return(0,it.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?to.TRANSPARENT:to.WHITE}}}};function y7(t,e,n){return E7(t,e,n)}function E7(t,e,n){const o=v7(t,e);(n.v==null||n.v<vm)&&(n=L7(n),n.backgroundColor?.toLowerCase()==="#ffffff"&&Object.keys(o).length===0&&(n=A0()("backgroundColor",n)));const r=b7[t]?.[e]?.(n),a=n.backgroundColor&&n.backgroundType==null?{backgroundType:I.xj.COLOR}:{};return[{accentColor:null},m7,o,r,n,a,{v:vm}].reduce((c,u)=>u==null?c:{...c,...vc()(h7.A,u)})}function L7(t){return{...t,backgroundType:null,cardMode:null,v:1}}const T7={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"]};function X$(t,e){return!T7[t]?.includes(e)}const j7={};function J$(t,e){return!j7[t]?.includes(e)}function I7(t){return t===IMAGE_OVERLAY_COLOR_TYPES.LIGHT?CONTRAST_COLORS.LIGHT:CONTRAST_COLORS.DARK}function S7(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 q$(t,e,n,o,r){const a=t?.backgroundType;return t?.cardMode===to.TRANSPARENT?a===BACKGROUND_TYPES.IMAGE?I7(e?.overlayColor):o&&a!==BACKGROUND_TYPES.ACCENT?r:S7(n,t?.customBackgroundColorContrast):o?r:CONTRAST_COLORS.DARK}const N7={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 eK(t,e){return N7[t]?.includes(e)??!1}var Cm=i(59288);const xm=Object.assign((0,h.createContext)({}),{displayName:"BlockSettingsContext"});function Hs(){return(0,h.useContext)(xm)}const A7="settings";function Cc(t){return e=>{const n=Cm.forwardRef((o,r)=>{const a=Hs(),l={...o,[t??A7]:a};return(0,s.jsx)(e,{...l,ref:r})});return n.displayName=`withBlockSettings(${e.displayName||e.name})`,n}}function Dn(){const t=Hs();return t==null?null:x7(t)}const P7="backgroundColor";function R7(t){return e=>{const n=Cm.forwardRef((o,r)=>{const a=Dn(),l={...o,[t??P7]:a};return(0,s.jsx)(e,{ref:r,...l})});return n.displayName=`withBackgroundColor(${e.displayName||e.name})`,n}}function bm({children:t,...e}){const n=yn(),o=Hs(),r=(0,Te.kJ)(),a=(0,h.useMemo)(()=>{const l=n==null?e:y7(n.family,n.variant,e);return{courseColor:r,...o,...l}},[n,e,r,o]);return(0,s.jsx)(xm.Provider,{value:a,children:t})}var ym=i(58931),M7=i(42006),k7=i(4663),Em=i(94379);const tK=t=>{const e=t.value.length;t.focus(),t.setSelectionRange(e,e)},sK=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 Lm(t){return Array.prototype.slice.call(t)}function P0(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 Tm({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 ka="group",O7="tablist",w7="tabpanel",D7="tab",nK="radio",B7=({element:t,isHidden:e})=>{t&&t.setAttribute("aria-hidden",e?"true":"false")},sl=({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 R0=i(88523);const jm=":focus{outline: none}",H7=":focus:not(:focus-visible){outline: none}",Im="focus-ring-style",M0=()=>document.getElementById(Im)||z7(),z7=()=>{const t=document.createElement("style");return t.id=Im,document.head.appendChild(t),t},nl=0,xc=-1,F7=()=>{const t=M0();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=jm},0),(0,O.JD)((0,R0.xi)(!1))}),window.addEventListener("keydown",Sm)},Sm=t=>{const e=t.target,n=M0();(ql(t)||Xo(t)&&!e.classList.contains("ignore-prefers"))&&(n.innerHTML="",(0,O.JD)((0,R0.xi)(!0)))},Nm=({focusVisible:t}={})=>M0().innerHTML=t?H7:jm,Oa=t=>t?nl:xc,Am=(t,e)=>{const n=t||{},o=e!==nl;n.tabIndex=e,B7({element:t,isHidden:o})},k0=({element:t,selector:e,tabIndex:n})=>{Lm(t.querySelectorAll(e)).forEach(r=>{Am(r,n)})},Pm=({list:t,index:e})=>{e>=0&&e<Lt()(t)&&t[e].focus()},U7=({list:t,currentIndex:e})=>{const n=ks()(e||0),o=n<Lt()(t)?n:0;return Pm({list:t,index:o}),o},V7=({list:t,currentIndex:e})=>{const n=Rn()(e||Lt()(t));return Pm({list:t,index:n}),n};function W7(){const t=Nr("big-head-mode");return H()({bigHeadMode:t})}function $7(t){function e(n,o){const r=W7();return(0,s.jsx)(t,{...n,easterEggClassNames:r,ref:o})}return Object.assign((0,h.forwardRef)(e),{displayName:`withEasterEggClassNames(${t.displayName||t.name})`})}var wa=i(9988),K7=i(45949),Pr=i.n(K7),G7=i(35884),O0=i.n(G7),Q7=i(30349),Z7=i.n(Q7);const Y7=Yl()(O0()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),Nt()("#FFF")),_7=Pr()({color:Y7}),X7=({accentContrast:t,bodyTypeface:e,color:n,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const l=(0,h.useMemo)(()=>{const u=!(0,it.Wn)(n),m=(0,it.xD)(n),p=t===I.Em.DARK||t===I.Em.AUTO&&m===I.Em.DARK;return!r&&(t&&p||!t&&u)?[Qe.S6.DARK,Qe.S6.LIGHT]:[Qe.S6.LIGHT,Qe.S6.DARK]},[t,n,r]),[d,c]=l;return(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:Z7()({bodyTypeface:e,colorThemeRGB:(0,wa.A)(n)?.slice(0,3),colorTheme:n,colorThemeContrast:d,colorThemeContrastComplementary:c,colorThemeContrastComplementaryRGB:(0,wa.A)(c)?.slice(0,3),colorThemeContrastRGB:(0,wa.A)(d)?.slice(0,3),colorThemeTint:(0,it.WA)(n),colorThemeTransparent:n+"1A",headingTypeface:o,uiTypeface:a})}})},w0=ke()(X7,_7);w0.displayName="Branding",w0.propTypes={bodyTypeface:Le().string,color:Le().string.isRequired,headingTypeface:Le().string,uiTypeface:Le().string};const J7=(0,h.memo)(w0);var q7=i(59288);const Rm="riseUnsupportedBrowser",eC={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},tC=t=>new RegExp(eC[t],"i").test(window.navigator.userAgent);class Mm extends q7.Component{render(){return tC(this.props.env)&&!window.sessionStorage.getItem(Rm)?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(Rm,"true"),this.forceUpdate()}}Mm.propTypes={env:Le().string.isRequired};var ls=i(33733),sC=i(56401),Js=i.n(sC);const nC=t=>H()("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}),oC=({icon:t})=>t?(0,s.jsx)("i",{className:`button__icon icon-${t}`}):null,rC=({onlyIcon:t,children:e})=>$().Children.map(e,n=>t&&n.type===void 0?null:n),bc=({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:b,icon:y,inverted:x,mode:L,next:E,onClick:S=Function.prototype,onlyIcon:N,onMouseDown:A=Function.prototype,outline:k,outlineTransparent:M,sidebar:W,tabIndex:D,type:w,...Z})=>{const U=g||"button";return U==="button"&&!w&&(w="button"),(0,s.jsxs)(U,{"aria-controls":e,"aria-expanded":n,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:nC({accent:t,branded:l,className:d,condensed:u,controls:m,controlsEnhanced:p,disabled:f,extraPadding:v,header:C,headerDone:b,inverted:x,mode:L,next:E,outline:k,outlineTransparent:M,sidebar:W}),disabled:f,onClick:S,onMouseDown:A,tabIndex:D,type:w,...Z,children:[(0,s.jsx)(oC,{icon:y}),rC({onlyIcon:N,children:c})]})};var aC=i(33744),iC=i.n(aC);const lC=["[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(", "),km=(t,e=!1)=>n=>{const o=Om(n);if(o.length===0)return;const r=t>=o.length&&e?0:t;return iC()(r,o)},Om=t=>t?Array.from(t.querySelectorAll(lC)).filter(e=>window.getComputedStyle(e).display!=="none"):[],wm=km(0),cC=km(-1),D0=t=>wm(t)?.focus?.();function dC(){const t=(0,h.useRef)(null);function e(n){const o=wm(t.current),r=cC(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 uC=i(60670),hC=i(48270),mC=i(7037),pC=i(33998),fC=i(91244),gC=i(61666),vC=i(80869),CC=i(5861),xC=i(3236),bC=i(85496),yC=i(21234),EC=i(10124),LC=i(54134),TC=i(47763),jC=i(77255),IC=i(40773),SC=i(70161),NC=i(65228),AC=i(49416),PC=i(81291),RC=i(23741),MC=i(63817),kC=i(69540),OC=i(40370),wC=i(33285),DC=i(73442),BC=i(12703),HC=i(47456),zC=i(20084),FC=i(81699),UC=i(29437),VC=i(23707),WC=i(542),$C=i(32130),KC=i(87269),Dm=i(14178),GC=i(37676),QC=i(51023),ZC=i(25312),YC=i(53330),_C=i(26671),XC=i(1344),JC=i(14961),qC=i(18938),ex=i(73333),tx=i(32748),sx=i(44582),nx=i(98992),ox=i(39260),rx=i(97877),ax=i(90193),ix=i(26454),lx=i(6101),dx=i(38826),ux=i(31334),hx=i(80050),mx=i(38734),px=i(44240),fx=i(65111),gx=i(67026),vx=i(69571),Cx=i(75722),xx=i(28094),bx=i(95300),yx=i(26463),Ex=i(15901),Lx=i(32507),Tx=i(99932),jx=i(83246),Ix=i(978),Sx=i(94495),Nx=i(42741),Ax=i(80627),Px=i(84219),Rx=i(90652),Mx=i(31352),kx=i(76657),Ox=i(54943),wx=i(92518),Dx=i(79697),Bx=i(78522),Hx=i(79470),zx=i(21276),Fx=i(35943),Ux=i(6417),Vx=i(44199),Wx=i(53430),$x=i(78670),Kx=i(41339),Gx=i(11245),Qx=i(39176),Zx=i(15868),Yx=i(95665),_x=i(26788),Xx=i(83035),Jx=i(97333),qx=i(86711),eb=i(39936),tb=i(15859),sb=i(52726),nb=i(11825),ob=i(99811),rb=i(52898),ab=i(38289),ib=i(34660),lb=i(37592),cb=i(94846),db=i(25385),ub=i(24069),hb=i(9572),mb=i(67537),pb=i(96581),fb=i(27281),gb=i(90472),vb=i(15646),Cb=i(48240),xb=i(39270),bb=i(12137),yb=i(96304),Eb=i(15702),Lb=i(59246),Tb=i(32590),jb=i(63356),Ib=i(45199),Sb=i(70677),Nb=i(50694),Ab=i(66087),Pb=i(76679),Rb=i(6139),Mb=i(46680),kb=i(61563),Ob=i(95651),wb=i(46138),Db=i(18457),Bb=i(66233),Bm=i(27780),Hb=i(96738),zb=i(60023),Fb=i(6517),Ub=i(75557),Vb=i(52193),Wb=i(61927),$b=i(44962),Kb=i(73404),Gb=i(53208),Qb=i(36609),Zb=i(21576),Yb=i(81437),_b=i(99440),Xb=i(53352),Jb=i(20551),qb=i(84893),ey=i(9677),ty=i(89865),sy=i(43459),ny=i(74248),oy=i(58100),ry=i(77653),ay=i(58834),iy=i(19154),ly=i(54804),cy=i(47167),dy=i(44282),uy=i(67559),hy=i(47421);const my={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"]},py={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"]]},fy={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"]},gy={"alert-circle-solid":Dm.GE,"alert-circle":Ux.lE,"alert-diamond":tb.xG,"arrow-down-from-line":vx.xZ,"arrow-down-to-bracket":Cx.a_,"arrow-down-to-line":xx.yH,"arrow-down":gx.B0,"arrow-left":bx.Ce,"arrow-right-from-line":Ex.Pe,"arrow-right":yx.dm,"arrow-rotate-left-light":jC.V3,"arrow-rotate-left":Lx.V3,"arrow-up-from-bracket":jx.MN,"arrow-up-from-line":Ix.s8,"arrow-up-right-from-square":Sx.faArrowUpRightFromSquare,"arrow-up":Tx.IN,"arrows-two-from-center":hC.A1,"arrows-two-to-center":mC.hL,"badge-check":BC.Zs,"bar-chart":Nx.X8,bars:HC.ck,"block-selector":hx.iH,"book-open":Px.Re,"book-sparkles":Rx.E4,book:Ax.LB,"browser-light":fC.c9,browser:Mx.c9,building:pC.UR,"cards-blank":kx.Xm,"caret-down":FC.xB,"caret-right":UC.fU,"chart-column":DC.q9,"check-regular":px.e6,check:zC.e6,"chevron-down-solid":VC.Jt,"chevron-down":Ox.Jt,"chevron-left-light":gC.Wz,"chevron-left-solid":$C.Wz,"chevron-left":wx.Wz,"chevron-right-light":vC.Xk,"chevron-right-solid":KC.Xk,"chevron-right":Dx.Xk,"chevron-up-solid":WC.w2,"chevron-up":Bx.w2,"circle-arrow-right":QC.Ni,"circle-arrow-up":GC.yi,"circle-check-regular":zx.QR,"circle-check-solid":ZC.QR,"circle-check":IC.QR,"circle-dot":Fx.pp,"circle-half-stroke":Vx.B2,"circle-info":Wx.faCircleInfo,"circle-plus-duotone":SC.q_,"circle-plus-regular":$x.q_,"circle-plus":YC.q_,"circle-small-solid":_C.ZP,"circle-small":Kx.ZP,"circle-solid":Dm.GE,"circle-x":XC.Ub,"circle-xmark":Gx.bn,"circle-xmark-solid":JC.bn,"circle-xmark-duotone":NC.bn,circle:Hx.GE,"clock-rotate-left":Qx.Yj,clone:Yx.$3,close:_x.yY,"closed-captioning":Zx.UM,"code-fork-duotone":AC.zt,"code-fork-regular":Xx.zt,code:uy.jT,comment:Jx.DN,copy:qx.jP,crop:eb.K1,"edit-regular":sb.MT,"ellipsis-regular":nb.Dw,"ellipsis-vertical-regular":ob.nx,envelope:rb.y_,"external-link":ab.vM,"eye-slash":xC.k6,eye:CC.pS,"file-audio":lb.qe,"file-duotone":PC.A4,"file-export-light":yC.o1,"file-export":cb.o1,"file-import":db.$M,"file-lines":ub.bL,"file-pdf-light":bC.O_,"file-pdf":hb.O_,file:ib.A4,"folder-image":mb.JK,"folder-open":RC.Uj,gear:pb.BH,globe:fb.Bw,"graduation-cap":gb.eS,"grid-2":vb.Qy,"grid-solid":qC.Qy,"grip-dots-vertical":Cb.IM,"hand-pointer":xb.A8,"image-landscape":yb.oC,"image-portrait":Eb.E4,image:bb.jb,"info-circle":Lb.iW,"layers-solid":dx.qI,"link-simple-slash":Ib.r2,"link-simple":jb.wi,"link-slash":Sb.TH,link:Tb.CQ,list:Nb.IT,"location-dot":LC.gK,"lock-keyhole-light":EC.Yp,lock:ex.DW,"magnifying-glass-plus":Pb.bM,"magnifying-glass":Ab.$U,megaphone:ux.OR,"message-quote":Rb.ps,"minus-solid":tx.EZ,minus:Mb.EZ,paintbrush:MC.ue,palette:kb.fy,paste:Ob.R9,pause:wb.G1,"pause-solid":sx.G1,"pen-line":Db.pg,"pen-to-square":Bb.faPenToSquare,"pencil-duotone":kC.zL,"pencil-regular":fx.zL,"pencil-thin":hy.zL,pencil:TC.zL,"play-regular":Bm.ij,"play-solid":nx.ij,play:Bm.ij,"plus-regular":Hb.QL,plus:zb.TS,"quote-left":Fb.$7,"rectangle-history-circle-plus":Vb.Hu,"rectangle-regular":Ub.vt,"rectangle-vertical-history":Wb.Lt,rocket:$b.KM,"ruler-horizontal":Kb.Si,"ruler-triangle":Gb.cb,"sliders-simple":ox.AD,"sparkles-solid":rx.p7,sparkles:Qb.p7,"spinner-third":Zb.sq,"square-arrow-down":_b.Y1,"square-arrow-right":Xb.mT,"square-arrow-up-right":Jb.fL,"square-check-solid":ax.Dn,"square-check":qb.Dn,"square-duo":OC.Nf,"square-info":ey.Lg,"square-plus":ty.Vd,square:Yb.Nf,"stopwatch-regular":sy.nw,table:ny.w9,tag:oy._2,text:ry.jw,"trash-can":iy.sj,trash:ay.yL,"user-group":ix.US,"users-regular":ly.gd,users:wC.gd,video:cy.n2,"wand-magic-sparkles":dy.Ys,"waveform-lines":mx.Wx,xmark:lx.Jy},vy={"audio-plus":fy,reach:py,"rise-com":my};function bt({"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)(uC.g,{"aria-label":t,className:n,icon:gy[r],rotation:a,spin:l,style:c})})}function rK({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:vy[o],style:a})})}const ln=re("modal"),B0=$().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=Bs.lQ,onClickBack:b,onOverlayClick:y=C,scroll:x=!1,subHeading:L,subText:E,width:S}=t,N=dC(),A=(0,h.useRef)(void 0);(0,h.useEffect)(()=>{const D=w=>{an(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=Om(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),M=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:y}),(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:[b&&(0,s.jsx)("button",{"aria-label":"back to previous page",className:ln("back-button"),onClick:b,type:"button",children:(0,s.jsx)(bt,{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)(bt,{className:"icon",name:"close"})})]}),E?(0,s.jsx)("h2",{className:ln("subtitle"),children:E}):[]]}),(0,s.jsx)("div",{className:M,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 Cy=i(13662);function xy(t){return t.global}function by(t){return xy(t)?.externalLinksModalVisible}const yy=()=>{const t=(0,O.d4)(by),e=(0,O.wA)(),n=(0,h.useCallback)(()=>e((0,Cy.zE)(!1)),[e]);return(0,s.jsx)(ls.F,{children:t&&(0,s.jsx)(ls.B1,{classNames:"modal",timeout:400,children:(0,s.jsx)(B0,{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)(bc,{inverted:!0,onClick:n,children:"OKAY"})})]})})})})};var Hm=i(59288);class Ey extends Hm.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=A0()("component",this.props);return(0,s.jsx)(Ae.qh,{...o,render:({match:r})=>{const a=Mo()(e,{match:r,ref:l=>this.child=l});return Hm.createElement(n,a)}})}}const Rr=Ey;var H0=i(59288);class Ly extends H0.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=A0()("children",this.props);return(0,s.jsx)(Ae.dO,{...n,children:e&&H0.Children.map(e,o=>o!==null&&H0.cloneElement(o,{ref:r=>this.child=r}))})}}const zm=Ly;var yc=i(59288);class z0 extends yc.Component{nodeRef=yc.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&&yc.cloneElement(yc.Children.only(e),{ref:this.nodeRef}))})}}const Da=re("cover");function Ty(){const{categories:t}=(0,Te.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)(D9,{className:Da("categories-icon")}),(0,s.jsx)("span",{className:Da("categories-item-wrap"),children:e})]},e))})]})}const jy=xa("CoverCompletedInformation"),Iy=xa("CoverDueDate"),Sy=xa("CoverRequirements"),Ny=re("cover"),Ay=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)(Ih,{courseId:e,partnerContent:n,publishedAt:r,tenantId:a})}):null},Py=At("CoverCourseInfo",t=>{const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:l}=t,d=Ny("details-content-aside",{logo:o});return(0,s.jsxs)("div",{className:d,children:[Me.BI&&(0,s.jsx)(qd,{}),(0,s.jsx)(Ay,{courseId:e,coursePartnerContent:n,hasPartnerContent:r,publishedAt:a,tenantId:l}),Me.BI&&!r&&(0,s.jsx)(ng,{}),Me.BI&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Sy,{}),(0,s.jsx)(Iy,{}),(0,s.jsx)(jy,{}),(0,s.jsx)(Ty,{})]})]})}),Ry=re("cover"),My=At("CoverDescription",()=>{const t=(0,Te.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,ds.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)(St,{className:Ry("details-content-description"),value:$d(n)},"text")})})}),Fm=re("cover"),ky=({className:t=Fm("details-logo"),imageClassName:e=Fm("details-logo-image")})=>{const n=(0,Te.DX)()??{},o=(0,xt.QQ)(n.media)?.image??{},{height:r,key:a,width:l,scalar:d=Qe.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})})},Oy=(t,e)=>{const n=ts()(["lessons",e],t),o=et()(0,["percentComplete"],n),r=ts()(["passed"],n);return{isComplete:ts()(["isComplete"],n),percentComplete:o,passedQuiz:r}};var Ba=i(98228),wy=i(2353),us=i.n(wy),Dy=i(3638),wo=i.n(Dy);class hK extends $().Component{static propTypes={fill:Le().string,height:Le().number,type:Le().string,width:Le().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:H()("lesson-icon",`lesson-icon--${e}`),height:r,viewBox:`0 0 ${o} ${r}`,width:o},g=Ps()([[us()("embed"),Nt()("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")],[us()("map"),Nt()("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")],[us()("process"),Nt()("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")],[us()("sorting"),Nt()("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")],[us()("timeline"),Nt()("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")],[us()("video"),Nt()("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(),Nt()("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 By({icon:t,...e}){switch(t){case Qe.xA.ARTICLE:return(0,s.jsx)(m6,{...e});case Qe.xA.INTERACTION:return(0,s.jsx)(U6,{...e});case Qe.xA.QUIZ:return(0,s.jsx)(B6,{...e});case Qe.xA.VIDEO:return(0,s.jsx)(V6,{...e});default:return(0,s.jsx)("i",{className:"icon icon-Master-02"})}}var ol=i(94267);function Do(){return(0,Ae.W5)("/lessons/:currentLessonId")?.params?.currentLessonId}var Bo=i(76135);const Hy=At("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=ne(e),g=ft(e),v=Cr(e),C=(0,st.useLabelsMap)(),b=v?.type!=null,y=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)(Oh,{canComplete:t,color:c,hasRestriction:b,isComplete:y,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:Hy,scope:d})}const zy=re("overview-list-item");function Fy({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=Cs(p),g=Ao(e),v=ne(e),C=ft(e),b=Cr(e),y=(0,st.useLabelsMap)(),x=(0,ds.uW)(p)?{"data-l10n-id":p.l10nId}:{"data-change-path":U1(e,"title")},L=g?.isComplete,E=g?.percentComplete??0,S=b?.type!=null,[N,A]=(0,h.useState)(!1),k=(0,h.useCallback)(()=>A(!0),[]),M=(0,h.useCallback)(()=>A(!1),[]),W=H()("overview-list__li",{"overview-list__li--last":n}),D=H()(t,"overview-list-item"),w=(0,h.useCallback)(Z=>{const{currentTarget:{hash:U}}=Z;Z.preventDefault(),ol.Ay.Events.scrollEvent.register("end",()=>{o.push(U.slice(1)),ol.Ay.Events.scrollEvent.remove("end")}),ol.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)(el,{className:D,isTooltipEnabled:!0,lessonId:e,onBlur:M,onClick:w,onHideProgressTooltip:M,onShowProgressTooltip:k,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,s.jsx)(Wy,{accentContrast:u,color:a,hasRestriction:S,isComplete:L,isCurrentLesson:e===r,isFailed:v,isLegacyCourse:l,isPassed:C,isTooltipVisible:N,labels:y,lessonIcon:m,lessonId:e,lessonTitle:f,navigationStyle:d,onHideTooltip:M,onShowTooltip:k,percentComplete:E,progressGraphic:Uy,scope:Qe.by.COVER})})})}const Uy=At("LessonProgressGraphic");function Vy({isTooltipVisible:t,lessonIcon:e,lessonId:n,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:l}){const d=zy("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)(By,{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 Wy=At("OverviewListItemLinkContent",Vy),$y=({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 Ky({value:t,children:e}){const n=(0,xt.QQ)(t);return e(n)}const En=$y,Gy=re("overview-list"),Qy=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),[]),Zy=At("OverviewListSectionTitle",({className:t="",...e})=>{const n=Xl()(["Default"],e);return(0,s.jsx)("h2",{...n,className:`${t} overview-list__section-title`})}),Yy=({courseProgress:t,lessons:e})=>{const n=(0,st.useLabelsMap)(),o=Qy(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=Gy("list",{sectionless:!m});return(0,s.jsxs)("section",{children:[m&&c&&(0,s.jsx)(Zy,{children:(0,s.jsx)(En,{value:c})}),(0,s.jsx)("ol",{className:f,role:"list",children:p.map((g,v)=>{const{passedQuiz:C}=Oy(t,g.id);return(0,s.jsx)(Fy,{id:g.id,last:p.length>1&&v===p.length-1,passedQuiz:C},g.id)})})]},a)})})};function _y(t){const e=wt(t),n=mr(t),o=Mt(t),r=Jr({course:e,courseProgress:n});return{course:e,courseProgress:n,lessons:o,restrictingQuiz:r}}const Xy=(0,h.memo)((0,O.Ng)(_y)(Yy));function Jy(t){return t?.partnerContent?.content??{}}function F0(){return(0,O.d4)(t=>Jy(t))}const qy=t=>Object.values(Qe.C_).find(e=>e.value==t);function eE(t){return(0,h.useMemo)(()=>qy(t)??Qe.C_.SMALL,[t])?.label.toLowerCase()}const Ha=re("cover"),tE=At("CoverDetails",({reverseColumns:t})=>{const e=Os(1200),{description:n,id:o,media:r,navigation:a,partnerContentId:l,publishedAt:d,selectedAuthorId:c,tenantId:u}=Xt(),m=F0(),p=es()(ot()("id",c),m),f=!!l&&p,g=Cs(r)?.image,v=!Jt()(g),C=!n||!a,b=!n&&!a,y=!!(f||Me.BI),x=Ha("details",{"rise-com":Me.BI,"rise-com-authoring":Me.BI&&!d}),L=Ha("details-content-wrap",{columns:y,logo:v}),E=Ha("details-content",{"no-description-or-outline":C}),S=Ha("details-logo",{centered:b,"no-description-or-outline":C,"has-partner-content":!!l}),N=y&&(0,s.jsx)(Py,{courseId:o,coursePartnerContent:p,hasLogo:v,hasPartnerContent:f,publishedAt:d,tenantId:u}),A=eE(g?.scalar),k=Ha("details-logo-image",{[A]:!0}),M=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)(ky,{className:S,imageClassName:k}),(0,s.jsxs)("div",{className:M,children:[n&&(0,s.jsx)(My,{}),e&&N,a&&(0,s.jsx)(Zl,{type:"outline",children:(0,s.jsx)(Xy,{})})]})]}),!e&&!t&&N]})})}),sE=At("CoverHeader"),nE=At("CoverLayout");var po=i(59738),oE=i(16832),U0=i(86145);const rE=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),Lc=t=>{try{return rE.of(t)}catch(e){return console.warn(`Language ${t} invalid`,e),t}},za=re("locale-selector"),Tc=({onClose:t})=>{const e=(0,Ae.zy)(),n=(0,Te.DX)(),o=(0,xt.MQ)(),r=(0,xt.jc)(),a=(0,xt.bs)(),l=a?.length?a:o?r?.map(y=>y.locale):void 0,d=Cs(n.title),{currentLocale:c,setCurrentLocale:u}=(0,jt.nY)(),m=(0,Te.vU)(),[p,f]=(0,h.useState)(!1),g=(l?.length||0)>1,v=(0,h.useCallback)(y=>{(0,Ee.xS)(y),u(y)},[u]),C=()=>{(0,O.JD)((0,U0.Wp)(!1)),t?.()};(0,h.useEffect)(()=>{if(!l||p)return;if(l.length===1){v(l[0]),f(!0);return}const y=(0,Ee.y4)(void 0),x=(0,Ee.JK)()??"";if(x!==""){v(x),f(!0);return}y?.[oE.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 b=y=>{y.preventDefault();const x=y.target.value;v(x)};return!l||!g?null:(0,s.jsx)(ls.B1,{classNames:"modal",timeout:400,children:(0,s.jsx)(B0,{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:b,value:c,children:l.map(y=>(0,s.jsx)("option",{value:y,children:Lc(y)},y))})}),(0,s.jsx)("div",{className:za("footer"),children:(0,s.jsx)(po.ArcButton,{onClick:C,size:"xl",children:m.l10nChooseLanguageContinue})})]})})})},aE=re("cover-container");function iE({labels:t,isEntering:e,isExiting:n}){const o=t?.overviewPageTitleSuffix,r=Lo();return(0,s.jsxs)(Ar,{title:tl(`${r} - ${o}`),children:[(0,s.jsx)("main",{children:(0,s.jsx)("div",{className:aE({entering:e,exiting:n}),children:(0,s.jsxs)(nE,{children:[(0,s.jsx)(sE,{}),(0,s.jsx)(tE,{})]})})}),(0,s.jsx)(Tc,{})]})}class Um 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)(iE,{...this.props,...this.state})}}var Vm=i(36939),lE=i(19656),V0=i.n(lE),cE=i(39351),Mr=i.n(cE),dE=i(41558),rl=i.n(dE);const uE=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=xs()(ot()("id",e))(o);return o[a].children=kn()(o[a].children,[r]),o}return kn()(o,[r])};return rl()(n,[],t)},hE=(t,e)=>{const n=ke()(es()(ot()("id",e)),tt()("children")),o=ke()(es()(n),nt()(ot()("type","section")),uE)(t);return o?[o.id]:[]},mE=t=>xs()(ot()("id",t)),pE=Mr()(ot()("family","continue"),ot()("variant","continue")),Wm=ke()(V0()(pE),Ut()([],"items"));var $m=i(96476);function fE(t){switch(t){case"a":return 46.5;default:return 7.6}}function gE(t){switch(t){case"d":return 2;default:return 3.2}}function vE(t){switch(t){case"a":return 30;case"c":case"d":return 92;case"note":default:return 76}}function Km(t){switch(t){case"b":return 95;case"background":return 52;default:return 76}}function Gm(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 CE(t){switch(t){case"dark":case"light":default:return .3}}function vK(t){switch(t){case 3:return"three";case 4:return"four";case 2:default:return"two"}}function xE(t){switch(t){case"light":return"#fff";case"dark":default:return"#000"}}function CK(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 xK(t){switch(t){case"b":return[52,76,95];default:return[52,76,92]}}function bK(t){switch(t){case"a":return[30,76,92];default:return[52,76,92]}}function yK(t){switch(t){case"d":return[2,4.8,5.6];default:return[3.2,4.8,5.6]}}function EK(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 Qm(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 yE(t){switch(t){case 52:return"sm";case 76:return"med";case 92:default:return"lg"}}function Zm(t){switch(t){case 52:return"sm";case 76:return"med";case 92:case 95:default:return"lg"}}function Ym(t){switch(t){case 4:return"med";case 6:return"lg";case 2:default:return"sm"}}function W0(t){switch(t){case 52:return"sm";case 92:return"lg";case 76:default:return"med"}}function EE(t){switch(t){case 30:case 52:return"sm";case 92:return"lg";case 76:default:return"med"}}function LE(t){switch(t){case 4.8:return"med";case 5.6:return"lg";case 2:case 3.2:default:return"sm"}}function TE(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 jE(t){switch(t){case 1:return"sm";case 3:return"lg";case 1.5:default:return"med"}}function IE(t){switch(t){case 3.2:return"med";case 5.6:return"lg";case .8:default:return"sm"}}const ms=({value:t,className:e,allowTabNavigation:n=!0,tagName:o,id:r})=>{const{value:a}=Y1((0,xt.QQ)(t));return a?(0,s.jsx)(St,{allowTabNavigation:n,className:e,id:r,tagName:o,value:t}):null},SE=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),$0=(t,e)=>SE.test(e)?e:t;var K0=i(41021);function jc(){const t=yn(),e=t?.background,o=t?.settings?.backgroundType,r=(0,xt.QQ)(e?.media)?.image;return o===I.xj.IMAGE?r:null}function NE(){const t=jc();return(0,Zs.I6)(t?.alt)}function AE(){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,K0.A)({alpha:e,color:r,url:o})}function cn(t){const{contrast:e=I.Em.AUTO,backgroundColor:n="#fff"}=t,o=$0("#fff",n),r=(0,it.xD)(o);return e===I.Em.DARK||e===I.Em.AUTO&&r===I.Em.DARK?Qe.S6.DARK:Qe.S6.LIGHT}function PE(){const t=yn(),e=t?.family,n=t?.variant,r=Hs()?.cardMode;return f7(e,n)&&r?.toLowerCase()}function RE(){const t=Dn(),e=t?(0,it.XC)(t):it.lL.LIGHT;return Hi()(e.toLowerCase())}function ME(){return Hs()?.backgroundType?.toLowerCase()}function kE(){const t=(0,Te.DX)(),e=t?.theme?.accentContrast,n=Hs(),o=Dn(),r=yn(),a=r?.family,l=r?.variant,{accentColor:d,backgroundType:c,customBackgroundColorContrast:u}=n,m=(0,it.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,b=c===I.xj.ACCENT?C:o,y=c===I.xj.ACCENT?e:g,x=cn({backgroundColor:b,contrast:y});return v&&x==Qe.S6.LIGHT}function OE(){const{backgroundColor:t,customBackgroundColorContrast:e}=Hs(),n=yn(),o=(0,it.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 wE(){const t=jc(),e=!!t,n=t?.overlayColor;return e&&n===I.df.LIGHT}function DE(){const t=yn(),e=t?.settings?.backgroundType,n=!t?.settings?.customBackgroundColorContrast;return e===null||n}function BE(t,e){const{className:n="",tag:o="div",style:r={},...a}=t,{backgroundColor:l}=Hs(),d=OE(),c=d===Qe.S6.DARK?Qe.S6.LIGHT:Qe.S6.DARK;return l!==""&&Object.assign(r,{"--color-background-contrast":d,"--color-background-contrast-complementary":c,"--color-background-contrast-rgb":(0,wa.A)(d)?.slice(0,3)}),(0,s.jsx)(o,{...a,className:n,ref:e,style:r})}const _m=(0,h.forwardRef)(BE),G0=t=>`${t}rem`;function HE(){const t=Hs(),e=G0(t?.paddingBottom),n=G0(t?.paddingTop);return{paddingBottom:e,paddingTop:n}}function TK(){const t=useBlockSettings();return G0(t?.width)}const zE=Xl()(["settings"]),Xm=re("block-wrapper"),FE=re("bg"),UE=(t,e)=>{const{children:n,className:o,defaultBackgroundColor:r="",style:a,tag:l,type:d,...c}=t,u=yn(),{paddingBottom:m,paddingTop:p}=HE(),f=RE(),g=PE(),v=ME(),C=kE(),b=wE(),y=AE(),x=NE(),L=$0(r,Dn()),E=L||"transparent",S=u?.className,N={...a,...y,"--color-background":L,boxShadow:`0px 1px 0px ${E} `,paddingBottom:m,paddingTop:p},A=H()(o,{"bg--legacy-background":DE(),[`block-${d}`]:!!d}),k=FE({card:g,range:f,type:v,"overlay-light":b,"contrast-light":C}),M=S?Xm({}).mix(k).mix(S):Xm({}).mix(k),W=[A,M.toString()].join(" ");return(0,s.jsxs)(_m,{...zE(c),className:W,ref:e,style:N,tag:l,children:[(0,s.jsx)("span",{"aria-label":x,role:(0,Zs.Vx)(x)}),n]})},Vt=(0,h.forwardRef)(UE),Ln=xa("ImageEagerOrLazy");var VE=i(2216),jK=i(29308);function Jm(t){return(0,s.jsx)(VE.A,{IconUnzoom:$E,IconZoom:WE,...t})}const WE=()=>(0,s.jsx)(bt,{name:"arrows-two-from-center"}),$E=()=>(0,s.jsx)(bt,{name:"arrows-two-to-center"}),qm=re("block-text");function KE({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=yn()?.settings,u=c?.images,m=c?.zoomOnClick,p=(0,h.useRef)(void 0);let f=(0,s.jsx)(Ln,{alt:l,"data-l10n-id":(0,Rt.pP)(o),ref:p,src:a});return m&&(f=(0,s.jsx)(Jm,{a11yNameButtonUnzoom:n?.a11yUnzoomImage,a11yNameButtonZoom:n?.a11yZoomImage,children:f})),(0,s.jsxs)("div",{className:qm("col"),children:[u&&r&&(0,s.jsx)("div",{className:qm("image"),children:f}),t]})}var GE=i(31316),Q0=i.n(GE),QE=i(97086),Z0=i(64653);const ZE=re("portal-tooltip"),zs={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},YE=(t,e,n)=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=window.visualViewport;let l=n;(l===zs.ABOVE||l===zs.BELOW)&&(o.bottom-r.height<0&&(l=zs.BELOW),r.height+o.top>a.height&&(l=zs.ABOVE)),(l===zs.LEFT||l===zs.RIGHT)&&(r.left<0&&(l=zs.RIGHT),r.width+o.left>a.width&&(l=zs.LEFT));const d={left:0,right:0,top:0,bottom:0};l===zs.ABOVE&&(d.top=o.top-r.height-25),l===zs.BELOW&&(d.top=o.top+o.height),l===zs.RIGHT&&(d.left=o.left+o.width+70),l===zs.LEFT&&(d.left=o.left-r.width-25),(l===zs.LEFT||l===zs.RIGHT)&&(d.top=o.top-o.height/2),(l===zs.ABOVE||l===zs.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 _E({children:t,className:e,direction:n=zs.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,QE.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)(XE,{buttonRef:m,className:e,direction:n,elementFocused:o,hovering:g,message:a,portalRef:p,style:l})})]})}function XE({buttonRef:t,className:e,direction:n,elementFocused:o,hovering:r,message:a,portalRef:l,style:d}){const c=(0,h.useCallback)(()=>YE(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,Z0.A)(u),(0,Xn.createPortal)((0,s.jsx)("div",{"aria-hidden":!r||!o,className:ZE("tooltip").mix(e).toString(),onTransitionEnd:m,ref:l,style:d,children:a}),document.getElementById("portal"))}const Fa=_E;var $t=i(59288);const al=$t.createContext(null);function JE({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),[b,y]=$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,M=$t.useCallback(z=>{const G=z.currentTarget;e2(G)||(v(!1),p(G),l(G.getAttribute("data-value")),z.stopPropagation())},[l]),W=$t.useCallback(z=>{p(z)},[]),D=$t.useCallback(()=>{v(z=>!z)},[]),w=$t.useCallback(()=>{const{left:z,top:G}=Tm({anchor:L.current,popover:E.current,positionX:c}),ce=window.getComputedStyle(L.current).direction==="rtl"?-z:z;y({transform:`translate3d(${ce}px, ${G}px, 0)`,visibility:"visible",width:`${L.current?.offsetWidth}px`})},[c]),Z=$t.useCallback(z=>{const G=Array.from(E.current?.querySelectorAll("[data-select-item]")??[]),ue=G.length,ie=G.findIndex(we=>we.getAttribute("data-select-item")==="current");let ce,Ne=ie+1;for(let we=0;we<ue;we++){Ne>=ue&&(Ne=0);const $e=G[we];if($e!=null&&!e2($e)&&sL($e,z)){ce=we;break}else Ne=ue-1}ce&&(p(G[ce]),G[ce]?.scrollIntoView({block:"center"}))},[]),U=$t.useCallback(z=>{const G=z.key;if(z.ctrlKey||z.metaKey)return;let ue=!1;const ie=Array.from(E.current?.querySelectorAll("[data-select-item]")??[]),ce=ie.findIndex(Ne=>Ne.getAttribute("data-select-item")==="current");if(g)if(G.length===1&&G!==" "&&!z.altKey&&!z.ctrlKey&&!z.metaKey)Z(G);else switch(G){case" ":case"Enter":v(!1),ie[ce]!=null&&l(ie[ce].getAttribute("data-value")),ue=!0;break;case"Esc":case"Escape":v(!1),p(ie.find(Ne=>Ne.getAttribute("aria-selected")==="true")),ue=!0;break;case"ArrowUp":z.altKey?(v(!1),ie[ce]!=null&&l(ie[ce].getAttribute("data-value")??"")):ce>0&&(p(ie[ce-1]),ie[ce-1].scrollIntoView({block:"center"})),ue=!0;break;case"ArrowDown":ce<ie.length-1&&(p(ie[ce+1]),ie[ce+1].scrollIntoView({block:"center"})),ue=!0;break;case"Home":p(ie[0]),ie[0]?.scrollIntoView({block:"center"}),ue=!0;break;case"End":p(ie[ie.length-1]),ie[ie.length-1]?.scrollIntoView({block:"center"}),ue=!0;break;case"PageUp":p(ie[0]),ie[0]?.scrollIntoView({block:"center"}),ue=!0;break;case"PageDown":p(ie[ie.length-1]),ie[ie.length-1]?.scrollIntoView({block:"center"}),ue=!0;break;case"Tab":v(!1),ie[ce]!=null&&l(ie[ce].getAttribute("data-value"));break}else if(G.length===1&&G!==" "&&!z.altKey&&!z.ctrlKey&&!z.metaKey)v(!0),Z(G);else switch(G){case" ":case"Enter":v(!0),ue=!0;break;case"ArrowUp":v(!0),p(ie[0]),ue=!0;break;case"ArrowDown":v(!0),ue=!0;break;case"Home":v(!0),p(ie[0]),ue=!0;break;case"End":v(!0),p(ie[ie.length-1]),ue=!0;break}ue&&(z.stopPropagation(),z.preventDefault())},[Z,g,l]);return $t.useEffect(()=>{const z=E.current?.querySelector('[data-select-item][aria-selected="true"]');p(z)},[]),$t.useEffect(()=>{const z=E.current?.querySelector(`[data-select-item][data-value="${u}"]`);p(z)},[u]),$t.useEffect(()=>{const z=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",z):document.removeEventListener("click",z),()=>{document.removeEventListener("click",z)}},[g]),$t.useEffect(()=>(g?window.addEventListener("resize",w):window.removeEventListener("resize",w),()=>{window.removeEventListener("resize",w)}),[w,g]),$t.useEffect(()=>{const z=Jl(x.current);for(const G of z)g?G?.addEventListener("scroll",w,{passive:!0}):G?.removeEventListener("scroll",w);return()=>{for(const G of z)G?.removeEventListener("scroll",w)}},[w,g]),$t.useEffect(()=>{g?w():y(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 z=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:x.current}});x.current.dispatchEvent(z)}},[C,g,o,a]),$t.useEffect(()=>{const z=G=>{G.detail.target!==x.current&&v(!1)};return document.addEventListener("comboboxopen",z),()=>{document.removeEventListener("comboboxopen",z)}},[]),(0,s.jsx)(al.Provider,{value:{activeEl:m,htmlIdActiveDescendant:k,htmlIdBase:N,htmlIdContent:A,isExpanded:g,onItemClick:M,onItemHover:W,onTriggerClick:D,onTriggerKeyDown:U,portalArgs:d,refContent:E,refTrigger:L,selectedValue:u,styleContent:b},children:(0,s.jsx)("div",{"aria-owns":A,className:e,inert:n?!0:void 0,ref:x,children:t})})}function qE({children:t,className:e,labelledBy:n,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:l,isExpanded:d,onTriggerClick:c,onTriggerKeyDown:u,refTrigger:m}=$t.useContext(al),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)(bt,{name:"chevron-up"}):(0,s.jsx)(bt,{name:"chevron-down"})})]})}function eL({children:t,className:e,labelledBy:n,style:o={}}){const{htmlIdContent:r,isExpanded:a,portalArgs:l,refContent:d,styleContent:c}=$t.useContext(al);return Xn.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}),yr(l))}function IK({children:t,className:e,labelText:n}){const{htmlIdBase:o}=$t.useContext(al),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 tL({children:t,className:e,labelledBy:n,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:l,onItemClick:d,onItemHover:c,selectedValue:u}=$t.useContext(al),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)(bt,{name:"check"})})]})}function SK({children:t}){return jsx("span",{"data-select-item-icon":"",children:t})}function e2(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function sL(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const nL=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(t=>({value:t,label:`${t}x`})),Y0=re("playback-speed-menu"),t2=({onFocus:t,onBlur:e,onMouseEnter:n,onMouseLeave:o,onChange:r,speed:a,triggerClassName:l=""})=>{const d=(0,ph.A)();return(0,s.jsxs)(JE,{className:Y0(),onSelect:c=>r(parseFloat(c)),portalArgs:{id:"portal",childType:"dialog"},value:String(a),children:[(0,s.jsxs)(qE,{as:po.ArcButton,className:[Y0("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)(eL,{className:Y0("content"),labelledBy:d,children:nL.map((c,u)=>(0,s.jsx)(tL,{value:String(c.value??""),children:c.label},u))})]})};var _0=i(72181);const oL=(0,Wi.action)(_0.l6),s2=(0,Wi.action)(_0.ju),il=(0,Wi.action)(_0.Y8);var rL=i(60213),n2=i(36563),aL=i(21784);const iL=(0,n2._w)([rL.z]);function lL(){return"* "}const cL=new aL.K6({bulletList(t,e){t.renderList(e," ",lL)},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,n2.ui)(t,iL);return cL.serialize(e,{tightLists:!0})}const o2=(t,e,n)=>{if(t.variant==="audio"||t.family==="gallery"&&t.variant==="centered")return dL(t,e,n);if(t.variant==="flashcard"||t.variant==="stack")return uL(t,e,n);if(t.family==="image")return hL(t,e,n);if(t.variant==="accordion"||t.variant==="labeledgraphic"||t.variant==="process"||t.variant==="tabs"||t.variant==="timeline")return mL(t,e,n);if(t.family==="list")return pL(t,e,n);if(t.family==="text")return gL(t,e,n);if(t.family==="impact")return vL(t,e,n)},dL=(t,e,{getL10nValue:n})=>Ho(n(e.caption)),uL=(t,e,{getL10nValue:n,side:o="front"})=>{const r=e[o];return r.type==="description"?Ho(n(r.description)):void 0},hL=(t,e,{getL10nValue:n})=>{const o=t.variant==="text aside";return Ic([o&&"paragraph"in e&&Ho(n(e.paragraph)),Ho(n(e.caption))])},mL=(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])},pL=(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))))}},fL={"two column":2,"three column":3,"four column":4},gL=(t,e,{getL10nValue:n})=>{const o=t.variant?.includes("heading"),r=!["heading","subheading"].includes(t?.variant),a=fL[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 vL=(t,e,{getL10nValue:n})=>t.items.reduce((o,r)=>"paragraph"in r?o+(o.length>0?`
`:"")+Ho(n(r.paragraph)):o,""),r2=(0,h.createContext)(void 0);function CL({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,As.y4)(),v=({item:E})=>{if(!E)return;const S="media"in E?f(E.media)?.audio?.transcript:void 0;return g(oL(S))},C=()=>g(s2()),b=(E,S,N)=>{const{id:A,media:k}=S;N||(N=`items:${E}/items:${S?.id}`),(0,ds.uW)(k)?g(u({l10n:k,type:"audio"})):g(m({itemId:A,lessonId:o,refs:N,type:"audio"}))},y=(E,S,N,A,k)=>{const M=(0,ds.uW)(k)?k:void 0;p({file:E,opts:{lessonId:o,refs:A,l10n:M,transcript:S,aiAudioSettings:N}})},x=(E,S,N)=>{l&&l(),y(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"?o2(E,E.items?.find(W=>W.id===S.id),{getL10nValue:f,side:A}):o2(E,S,{getL10nValue:f,side:A}),M=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":M?.audio?.aiAudioSettings?{...M.audio.aiAudioSettings,audioUrl:M.audio.key?(0,Me.o1)(M.audio.key):void 0}:void 0}}))};return(0,s.jsx)(r2.Provider,{value:{lessonId:o,uploadAudio:p,mode:r,openTranscript:d||v,closeTranscript:c||C,showAssetLibraryDialog:a,hideAssetLibraryDialog:l,handleOpenMediaModal:L,handleDelete:b},children:n})}function Sc(){const t=(0,h.useContext)(r2);return t||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,closeTranscript:null,lessonId:"",uploadAudio:null})}function a2(t){function e(n){const o=Sc();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`WithMediaContextWrapper(${t.name})`,e}const xL=(0,As.GF)(),X0=()=>xL(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=X0(),[u,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),[g,v]=(0,h.useState)(!1),C=(0,h.useCallback)(()=>m(!0),[]),b=(0,h.useCallback)(()=>m(!1),[]),y=(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,Te.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)(t2,{onBlur:b,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)(bt,{name:"trash"}),layout:"icon",onBlur:x,onClick:r,onFocus:y,onMouseOut:x,onMouseOver:y,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)(bt,{name:"file-audio"}),layout:"icon",onBlur:E,onClick:k,onFocus:L,onMouseOut:E,onMouseOver:L,size:"sm",type:"button",variant:"tertiary"})})]})};var yL=i(20571);const i2="change";class EL extends yL.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(i2,e)}removeChangeListener(e){this.removeListener(i2,e)}}const ct=new EL(1/0),l2=re("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:l2("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}),c2=({animating:t})=>(0,s.jsx)("span",{className:l2({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 LL({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),b=`${`menu-${Kt.useId()}`}-content`,y=Kt.useCallback(({direction:U,predFn:z=()=>!0})=>{if(!g.current)return;const G=Array.from(g.current.querySelectorAll('[role="menuitem"]')),ue=G.length,ie=G.findIndex($e=>$e===document.activeElement);let ce,Ne,we;switch(U){case"start":ce=0,Ne=1;break;case"end":ce=ue-1,Ne=-1;break;case"backwards":ce=ie-1,Ne=-1;break;case"forwards":ce=ie+1,Ne=1;break;default:ce=ie+1,Ne=1}for(let $e=0;$e<=ue;$e++){ce>=ue?ce=0:ce<0&&(ce=ue-1);const Fe=G[ce];if(Fe!=null&&IL(Fe)&&z(Fe)){we=Fe;break}else ce=ce+Ne}we&&we.focus()},[]),x=Kt.useCallback(()=>{y({direction:"start"})},[y]),L=Kt.useCallback(()=>{y({direction:"end"})},[y]),E=Kt.useCallback(()=>{y({direction:"backwards"})},[y]),S=Kt.useCallback(()=>{y({direction:"forwards"})},[y]),N=Kt.useCallback(U=>{y({direction:"forwards",predFn:z=>SL(z,U)})},[y]),A=Kt.useCallback(()=>{l?d(!1):(d(!0),setTimeout(S,25))},[S,l]),k=Kt.useCallback(()=>{f.current?.focus(),d(!1)},[]),M=Kt.useCallback(()=>{d(!0),setTimeout(S,25)},[S]),W=Kt.useCallback(()=>{d(!0),setTimeout(E,25)},[E]),D=Kt.useCallback(()=>{const{left:U,top:z}=Tm({anchor:f.current,popover:g.current,positionX:a});m({transform:`translate3d(${U}px, ${z}px, 0)`,visibility:"visible"})},[a]),w=Kt.useCallback(U=>{const z=U.currentTarget;d2(z)||(r?.(z.getAttribute("data-name")),k())},[k,r]),Z=Kt.useCallback(U=>{const z=U.key;if(U.altKey||U.ctrlKey||U.metaKey)return;let G=!1;if(U.shiftKey)z==="Tab"?E():z.trim()!==""&&N(z),G=!0;else switch(z){case" ":case"Enter":w(U),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(z);break}G&&(U.stopPropagation(),U.preventDefault())},[k,w,N,x,L,S,E]);return Kt.useEffect(()=>{const U=z=>{l&&p.current!=null&&g.current!=null&&!p.current.contains(z.target)&&!g.current.contains(z.target)&&d(!1)};return l?document.addEventListener("click",U):document.removeEventListener("click",U),()=>{document.removeEventListener("click",U)}},[l]),Kt.useEffect(()=>(l?window.addEventListener("resize",D):window.removeEventListener("resize",D),()=>{window.removeEventListener("resize",D)}),[D,l]),Kt.useEffect(()=>{const U=Jl(p.current);for(const z of U)l?z?.addEventListener("scroll",D,{passive:!0}):z?.removeEventListener("scroll",D);return()=>{for(const z of U)z?.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 U=new CustomEvent("menuopen",{bubbles:!0,detail:{target:p.current}});p.current.dispatchEvent(U)}},[c,l,n,o]),Kt.useEffect(()=>{const U=z=>{z.detail.target!==p.current&&d(!1)};return document.addEventListener("menuopen",U),()=>{document.removeEventListener("menuopen",U)}},[]),(0,s.jsx)(Ac.Provider,{value:{htmlIdContent:b,isExpanded:l,onCloseFocusTrigger:k,onExpandFocusMenuItemNext:M,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":b,inert:e?!0:void 0,ref:p,children:t})})}function TL({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 jL({children:t,className:e}){const{htmlIdContent:n,isExpanded:o,refContent:r,styleContent:a}=Kt.useContext(Ac);return o?Xn.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}),yr()):null}function J0({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 MK({children:t}){return jsx("span",{"data-menu-item-icon":"",children:t})}function kK({className:t}){return jsx("hr",{className:t,"data-menu-separator":""})}function d2(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function IL(t){return t!=null&&t.tagName==="BUTTON"&&!d2(t)}function SL(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const Pc=re("audio-player-actions-condensed"),Ua=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript"}),q0={container:"audio-player__actions",button:"audio-player__actions--button",options:"audio-player__actions--options"},NL=({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=X0(),g=yn(),[v,C]=(0,h.useState)(!1),[b,y]=(0,h.useState)(!1),x=(0,h.useCallback)(()=>C(!0),[]),L=(0,h.useCallback)(()=>C(!1),[]),E=(0,h.useCallback)(()=>y(!0),[]),S=(0,h.useCallback)(()=>y(!1),[]),N=(0,Te.vU)(),A=f?.isOpen&&f?.transcript===n,k=A?N?.audioHideTranscript:u==="edit"?"Edit transcript":N?.audioShowTranscript;function M(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:q0.container,inert:t,children:[(0,s.jsx)(Fa,{elementFocused:v,message:u==="edit"?"Play speed":N?.audioPlaySpeed,children:(0,s.jsx)(t2,{onBlur:L,onChange:o,onFocus:x,speed:e,triggerClassName:q0.button})}),m||p||n?(0,s.jsx)(Fa,{elementFocused:b,message:"Options",children:(0,s.jsxs)(LL,{onSelect:M,positionX:"left",children:[(0,s.jsxs)(TL,{className:q0.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)(jL,{className:Pc("content"),children:[m?(0,s.jsx)(J0,{className:Pc("menu-item"),name:Ua.EditAudio,children:"Edit audio"}):null,u==="edit"||n?(0,s.jsx)(J0,{className:Pc("menu-item"),name:Ua.EditTranscript,children:k}):null,p&&g.variant!=="audio"?(0,s.jsx)(J0,{className:Pc("menu-item"),name:Ua.DeleteAudio,children:"Remove audio"}):null]})]})}):null]})},qs=re("audio-player"),Rc=({currentTime:t,duration:e})=>Math.round(t/e*100)||0,u2=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}},h2=t=>{const{minutes:e,seconds:n}=u2(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},AL=t=>{const{hours:e,minutes:n,seconds:o}=u2(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 $().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(){ct.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;(ct.isPlaying&&!e.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),ct.pause()),n.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:e}=this.props;ct.pause(),ct.removeChangeListener(this.handleChange),e&&e(Rc(this.audio))}handleClickInsideAudioPlayer=e=>{e.stopPropagation(),e.preventDefault()};handleChange(){ct.playerId===this.props.id?this.audio&&(ct.isPlaying&&this.audio.paused?this.audio.play():!ct.isPlaying&&!this.audio.paused&&this.audio.pause(),this.audio.muted=ct.isMuted,this.forceUpdate()):ct.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=ct.isPlaying&&ct.playerId===n,{currentTime:b,playerExpanded:y}=this.state,x=this?.audio?.duration??0,L=Math.round(x-b),E=AL(L),S=h2(L),N=h2(b),A=e?0:-1,k=!o,{a11yGroupAudioPlayer:M,a11yMediaPlay:W,a11yMediaPause:D,a11yMediaSeek:w}=a??{},Z=qs({overlay:r,collapsed:r&&!y,expanded:!r||y}),U=o||d==="edit"?"Collapse audio player":a?.audioCollapsePlayer,z=o||d==="edit"?"Expand audio player":a?.audioExpandPlayer,G=y?U:z;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)(c2,{animating:C})})}):(0,s.jsx)("div",{className:qs("waveform-icon",{disabled:!0}),children:(0,s.jsx)(c2,{animating:C})})}),(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":M,className:qs("housing"),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:ka,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)(bt,{className:qs("play-icon"),name:"pause-solid"}):(0,s.jsx)(bt,{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":b,"aria-valuetext":N,className:qs("tracker-handle"),ref:ue=>{this.trackerhandle=ue},role:"slider",tabIndex:A,children:(0,s.jsx)(bt,{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,Me.o1)(`${l}`)},"audio-"+n),(0,s.jsx)(Ma,{featureFlags:["rise-audio-release"],children:(0,s.jsx)(Ma.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)(NL,{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=qn(this.onPlayClick),r=qn(()=>this.keySeek(5)),a=qn(()=>this.keySeek(-5)),l=p=>p.target===this.play,d=p=>p.target===this.trackerhandle,c=Ps()([[Xo,o],[tc,Na],[sc,Na]]),u=Ps()([[Xo,Na],[tc,r],[sc,a]]),m=Ps()([[Xo,o],[tc,r],[sc,a]]);Ps()([[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&&ct.playerId===o&&(ct.isPlaying=!1,r(fo.timeMs(u)),l&&l(Rc(this.audio))):(ct.playerId=o,ct.isPlaying=!0,a(fo.timeMs(u)),n(il(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}),ct.isPlaying&&ct.playerId!==e&&(ct.isPlaying=!1),ct.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}),ct.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,Me.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 PL=(0,As.Ls)()(fo);var RL=i(20817),ML=i.n(RL),kL=i(80029),OL=i.n(kL);const zo=ot()("status"),wL=OL()(zo("uploading"),zo("processing")),wK=zo("canceled"),eu=zo("complete"),m2=zo("cropping"),p2=zo("crushing"),f2=zo("uploading"),g2=zo("processing"),v2=zo("errored"),C2=ML()([m2,p2,v2,g2,f2]),DL=ke()(Jn.UA,nt()(wL));function DK(t){return Math.round(t.loaded*100/t.total)}const BK=ko()(ts()(["file","name"]),et()("",["opts","filename"])),HK=Mr()(Jn.UA,DL),Mc=t=>H()("upload-progress__wrapper",t),x2=(0,h.createContext)(null);function b2(){return(0,h.useContext)(x2)}const zK=x2.Provider;function BL(t){function e(n){const o=b2();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"})]}),tu=20,ll=tu/2,su=ll-2,y2=+(2*Math.PI*su).toFixed(3),HL=t=>y2*(100-t)/100;function E2({classes:t,percent:e}){return(0,s.jsxs)("svg",{className:H()("upload-progress__pie",t),focusable:"false",height:`${tu}px`,width:`${tu}px`,children:[(0,s.jsx)("circle",{className:"upload-progress__border",cx:ll,cy:ll,r:su}),(0,s.jsx)("circle",{className:"upload-progress__progress",cx:ll,cy:ll,r:su,strokeDasharray:y2,strokeDashoffset:HL(e)})]})}const zL=({text:t})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(E2,{classes:"upload-progress__pie--processing",percent:70}),(0,s.jsx)("div",{className:"upload-progress__text",children:t})]}),FL=({percentage:t,text:e="Uploading\u2026"})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(E2,{percent:t}),(0,s.jsx)("div",{className:"upload-progress__text",children:e})]}),nu=({classes:t,jobId:e,onCancel:n,text:o})=>(0,s.jsxs)("div",{className:Mc(t),children:[(0,s.jsx)(zL,{text:o}),e&&(0,s.jsx)(kc,{onClick:n,text:"Cancel"})]}),UL=({classes:t,onCancel:e,percentage:n,text:o})=>(0,s.jsxs)("div",{className:Mc(t),children:[(0,s.jsx)(FL,{percentage:n,text:o}),(0,s.jsx)(kc,{onClick:e,text:"Cancel"})]}),VL=({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})]}),WL=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:Mc(t),children:[(0,s.jsx)(VL,{message:e}),(0,s.jsx)(kc,{onClick:n,text:"Dismiss"})]}),$L=({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})]}),KL=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:Mc(t),children:[(0,s.jsx)($L,{message:e}),n?(0,s.jsx)(kc,{onClick:n,text:"Dismiss"}):null]}),GL=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 v2(t)?(0,s.jsx)(WL,{classes:e,message:o||n?.message,onClick:c}):f2(t)?(0,s.jsx)(UL,{classes:e,onCancel:l,percentage:a,text:`Uploading ${p}\u2026`}):g2(t)?(0,s.jsx)(nu,{classes:e,jobId:r,onCancel:d,text:`Processing ${p}\u2026`}):p2(t)?(0,s.jsx)(nu,{classes:e,onCancel:d,text:`Uploading ${p}\u2026`}):m2(t)?(0,s.jsx)(nu,{classes:e,onCancel:d,text:"Cropping image\u2026"}):eu(t)&&m?(0,s.jsx)(KL,{classes:e,message:m,onClick:u}):(0,s.jsx)("div",{})},ou=re("audio-player"),QL=ou("upload-state");function L2({uploadId:t,onAIUploadFinish:e,...n}){const o=b2(),{mode:r}=Sc();let a=null;o&&t&&(a=o.getUpload(t));const l=(0,h.useMemo)(()=>a&&a.mediaType==="audio"&&(C2(a)||eu(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=ou({overlay:n.isOverlayAudio,static:n.isOverlayAudio});return(0,s.jsx)("div",{className:ou("container"),children:(0,s.jsx)("div",{className:g,children:(0,s.jsx)(GL,{classes:QL,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)(PL,{...n,mode:r})}var ZL=i(96865),YL=i.n(ZL),_L=i(29209),XL=i.n(_L);const Va=$().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=H()("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 b=(0,s.jsx)(Ln,{alt:f,className:v,"data-l10n-id":a,height:r,onLoad:c,src:m,style:C,width:p});return g&&(b=(0,s.jsx)(Jm,{a11yNameButtonUnzoom:l?.a11yUnzoomImage,a11yNameButtonZoom:l?.a11yZoomImage,children:b})),(0,s.jsx)("div",{className:"img",children:b})});var JL=i(90960),qL=i(883),ru=i.n(qL);const eT=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,tT=t=>typeof t=="string"&&t.replace(eT,""),Or=ru()(tT,JL.J);var sT=i(44336),Oc=i.n(sT),nT=i(61319),oT=i.n(nT);const rT=[{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(Me.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."}]}],aT=t=>{let e={};return e[t.name]=t.text,e},iT=rs()(Ds()(tt()("labels")),Oc(),Ds()(aT),oT())(rT);var QK=i(30772),lT=i(70117),cT=i.n(lT);const{validIframe:T2,validUrl:j2}=Qe.yG,I2=on()("type","embed"),dT=cT()("type","embedType"),uT=n0()(/http:/i,"https:"),hT=t=>({embedType:"iframe",originalUrl:t,src:t}),mT=t=>cl(t.embed),cl=t=>t?.embedType||t?.type,ZK=t=>cond([[test(T2),compose(I2,hT,uT)],[test(j2),composeP(I2,dT,t)]]),YK=ko()(ke()(O0()(T2),_n.R9),O0()(j2)),_K="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 S2=t=>{const e=(0,Me._$)("CDN_USER_CONTENT_URI"),n=new RegExp((0,Me._$)("CDN_URI"),"g");return(0,Me.Hm)()?t:n.test(t)?`${e}${new URL(t).pathname}${new URL(t).search}`:t},pT=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:","")},fT=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,gT=t=>fT.test(t),vT=/^\/\//,CT=t=>t?.replace(vT,"https://"),xT=ke()(CT,Yo()(gT,pT),Yo()(Boolean,Me.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 yT extends wc.Component{player;refIframeContainer=wc.createRef();refIframePlayer=wc.createRef();state={duration:0,isReady:!1};static get defaultProps(){const{embedReadMore:e}=iT;return{allowTabNavigation:!0,labels:{embedReadMore:e,embedViewOn:"View on"},shouldPause:!1,showMetaData:!0}}componentDidUpdate(e){!e.shouldPause&&this.props.shouldPause&&ct.isPlaying&&(this.player?.pause(),ct.isPlaying=!1)}componentWillUnmount(){cl(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}),ct.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:e}=this.props;ct.isPlaying&&ct.playerId!==e&&(ct.isPlaying=!1),ct.playerId=e,ct.isPlaying=!0};handlePlayerUpdate=e=>{this.props.progressChanged?.({done:e.seconds/e.duration*100})};handlePlayerChange=()=>{const{id:e}=this.props;ct.playerId===e&&(ct.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(YL()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{ct.isPlaying=!1,ct.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 XL()(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=qn(this.togglePlay),a=qn(()=>this.keySeek(5)),l=qn(()=>this.keySeek(-5)),d=qn(()=>this.changeVolume(10)),c=qn(()=>this.changeVolume(-10));Ps()([[ec,r],[Pa,a],[Aa,l],[Qi,d],[Zi,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&&va(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,b=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:b,children:[(0,s.jsx)(Ln,{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=cl(n);if(!l&&g!=="link")return null;const v=Or(d),C=o&&va(v),b={"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",...b,children:(0,s.jsx)(St,{value:c})})}),(0,s.jsx)(St,{className:"embed__description",value:u}),(0,s.jsxs)("a",{className:"embed__readMore brand--hoverColor",...b,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:b}=a,y=cl(n);if(y==="iframe"){const x=document.createElement("div");x.innerHTML=(0,_n.R9)(p);const L=x.firstChild,E=L&&L.tagName&&L.tagName.toLowerCase()==="iframe";let S=100,N=32;if(wf(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:ka,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&&va(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,M=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:ka,children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...W,children:(0,s.jsx)(St,{value:g})})}),["link","photo"].includes(y)?(0,s.jsxs)("a",{className:"embed__relativeUrl--url","data-external":E,href:N,onClick:S,rel:A,role:k,tabIndex:e?0:-1,target:M,children:[x,y==="photo"?(0,s.jsx)("div",{className:"embed__relativeUrl--image",children:(0,s.jsx)(Ln,{alt:f?g:"",className:"embed__img",src:x})}):null]}):this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:y})]})}return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":a?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:ka,children:[this.renderProvider(),["link","photo"].includes(y)?(0,s.jsx)("a",{"data-external":E,href:N,onClick:S,rel:A,role:k,tabIndex:e?0:-1,target:M,children:(0,s.jsx)(Ln,{alt:f?g:"",className:"embed__img",src:S2(f)})}):this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:y}),this.renderMetaData()]})}else if(y==="link"){const x=c?p:Or(p),L=c||o&&va(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,M=L?void 0:"_blank";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":v,className:"embed embed--link brand--linkColor",role:ka,children:[(0,s.jsx)(St,{className:"embed__title",value:g}),(0,s.jsx)(St,{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:M,children:b})]})}else return(0,s.jsxs)("div",{className:"embed embed--media",children:[d?(0,s.jsx)(St,{"aria-hidden":!e,className:"embed__title",value:g}):null,this.renderEmbedIframe({allowTabNavigation:e,labels:a,src:p,thumbnail:f,title:g,type:y})]})}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:S2(a)})});{const u=rn.isIe11||rn.isEdge,m=H()("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:xT(r),title:l})]})}}}const ET=Kl()({externalLinksDisabled:ts()(["course","externalLinksDisabled"])}),LT={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})},N2=(0,As.Ls)(ET,LT)(yT);var TT=i(57094),jT=i.n(TT),IT=i(7656),A2=i(94050);const ST=A2.default.getComponent("SeekBar");class NT extends ST{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)}}A2.default.registerComponent("SeekBar",NT);var AT=i(16500),PT=i(22973),RT=i(65664),MT=i(76700),kT=i(7211),OT=i(80647),wT=i(48034),DT=i(18058),BT=i(70485),HT=i(51327),zT=i(57269),FT=i(85961),UT=i(19022),VT=i(60158),WT=i(99301),$T=i(34441);const KT={ar:AT,cs:PT,de:RT,en:MT,es:kT,fr:OT,it:wT,ja:DT,nl:BT,pl:HT,sk:zT,tr:FT,"pt-BR":UT,"pt-PT":VT,"zh-CN":WT,"zh-TW":$T},GT=-5,au="seek-tooltip--hidden",QT=()=>{const t=document.createElement("div");return t.classList.add("seek-tooltip"),t.classList.add(au),t},Dc=t=>Math.round(t.currentTime()/t.duration()*100)||0;class ZT extends $().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;Lm(this.container.getElementsByTagName("button")).forEach(o=>{Am(o,Oa(e))}),k0({element:this.container,selector:".vjs-progress-holder",tabIndex:Oa(e)}),k0({element:this.container,selector:".vjs-volume-bar",tabIndex:Oa(e)}),k0({element:this.container,selector:".vjs-volume-menu-button",tabIndex:Oa(e)})}componentDidUpdate(e){this.updateContentFocusability(),!e.shouldPause&&this.props.shouldPause&&ct&&(this.video.player.pause(),ct.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,Me.ih)();const f=e.currentTime(),g=e.duration(),v=e.paused(),C=Math.floor(f),b=g*n/100||0;v&&!this.wasPaused&&f>this.maxTime&&this.setMaxTime(f),o&&this.updateSeekTooltip();const y=e.ended()&&!this.seeking,x=!v&&!this.seeking;if(!o||y||x){f>this.maxTime&&this.setMaxTime(f);let E=f/g*100;y&&(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&&b<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=()=>{ct.isPlaying&&ct.playerId!==a&&(ct.isPlaying=!1),ct.playerId=a,ct.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=()=>{ct.playerId===a&&(ct.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",Sm),e.on("contextmenu",f=>{f.preventDefault()}),e.on("ratechange",this.playbackRatesChanged=()=>{e.controlBar.playbackRateMenuButton.childNameIndex_.PlaybackRateMenuButton.controlTextEl_.innerText=`Playback Rate ${e.playbackRate()}x`}),ct.addChangeListener(this.onMediaStoreChange)}componentWillUnmount(){const{onFullScreenChange:e,recordMediaPlayheadPosition:n}=this.props,{player:o}=this.video;n&&n(Dc(o)),ct.isPlaying=!1,ct.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=H()("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,Me.o1)(r),c=XT(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,Me.o1)(this.props.poster),f=c?this.props.src:(0,Me.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=rn.isLocalFilesystem?{}:{crossOrigin:"anonymous"},b={autoplay:e,controlBar:{children:{playToggle:!0,progressControl:!0,remainingTimeDisplay:!0,playbackRateMenuButton:!0,captionsButton:!0,pictureInPictureToggle:!0,fullscreenToggle:!0,volumePanel:{inline:!0}}},controls:!0,languages:KT,playbackRates:v,preload:"none",textTrackSettings:!1};document.pictureInPictureEnabled||delete b.controlBar.children.pictureInPictureToggle;const y={options:b,poster:p,ref:E=>{this.video=E},...C},x=(0,s.jsx)("track",{kind:"captions",label:"English",src:c?l:(0,Me.o1)(l),srcLang:"en"}),L=`${f}?v=1`;return(0,h.createElement)(IT.A,{...y,key:`${a}-${m}-${o}`},(0,s.jsx)("source",{src:L,type:g}),!r&&l&&x,r&&r.map(this.renderCaptionTrack))}onKeyDown(e){if(_T(e))return;const n=5,o=qn(this.togglePlay.bind(this)),r=this.toggleFullScreen.bind(this),a=qn(()=>this.keySeek(n)),l=qn(()=>this.keySeek(-n));Ps()([[ec,o],[jr,r],[tc,a],[sc,l]])(e)}togglePlay(){const{player:e}=this.video;e.userActive(!0),e.paused()?e.play():e.pause()}toggleFullScreen(){if(rn.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=QT(),o.appendChild(this.seekDiv),(0,ge.createRoot)(this.seekDiv).render((0,s.jsx)(D6,{}))}showRestrictSeekTooltip(e){const{canRestrictSeek:n}=this.props;!n||!this.seekDiv||e!==this.state.showRestrictSeekTooltip&&(e?this.seekDiv.classList.remove(au):this.seekDiv.classList.add(au),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=`${GT}px`}getMaxTime(){return this.maxTime}onMediaStoreChange(){if(!this.video)return;const{id:e}=this.props,{player:n}=this.video;ct.playerId===e&&(ct.isPlaying?n.play():n.pause())}}function YT(t){const e=n=>{const o=(0,Te.DX)();return(0,s.jsx)(t,{...n,locale:o?.locale})};return e.displayName=`withLocale(${t.displayName??t.name})`,e}const P2=YT(ZT),_T=t=>{const e=t.target.className,n=Ph(t)&&e.includes("vjs-volume-bar");return Xo(t)&&(e.includes("vjs-control")||e.includes("vjs-big-play-button"))||n},XT=jT()(t=>new Intl.DisplayNames([t],{type:"language",fallback:"code"}));var R2=i(59288);function qt(t){const e=R2.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 M2(t){const e=R2.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 JT=i(38576),Bc=i.n(JT),qT=i(11437),ej=i.n(qT);const tj=t=>({...t,courseId:t.courseId||ts()(["course","id"],t)}),sj=t=>({...t,lessonId:t.lessonId||ts()(["lesson","id"],t)}),nj=({id:t,courseId:e,lessonId:n,refs:o})=>t||(o&&n?`${n}-${o}`:n||e),iu=ke()(nj,sj,tj),JK=rs()(Yl()(tt()("id"),Bc()("id",iu)),ko()(ej()(tt(),[tt()("id"),tt()("uploads")]),Cn()(["id"])),Bc()("isUploading",ot()("status","uploading")));var oj=i(59288);const lu=t=>!!(t&&("key"in t&&t.key||"src"in t&&t.src)),Hc=t=>lu(t)&&!t.isProcessing&&!t.error,rj=(t,e)=>e?.mediaType==="audio"?!!t&&(lu(t)||C2(e)||eu(e)&&!lu(t)):Hc(t),aj=t=>Yo()(Nt()(!!t),Q0()(`-${t}`));class ij extends oj.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)(L2,{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=aj(o)(`video-${r}-${a}`);return(0,s.jsx)(P2,{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)(N2,{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=H()({"media-group":n}),{audio:u,embed:m,image:p,video:f}=this.props.getL10nValue(d)??{},g=iu({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")&&rj(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,As.Ls)()(BL(gc(a2(qt(ij)))));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 b=u?"image":"video",y={top:c?["audio","text",b]:["text",b],bottom:c?["text","audio",b]:["text",b],legacyTop:c?["audio",b,"text"]:[b,"text"],legacyBottom:c?[b,"text","audio"]:[b,"text"]};return o&&r==="timeline"&&!e?y.top:o&&r!=="timeline"?l==="bottom"?y.legacyBottom:y.legacyTop:l==="bottom"?y.bottom:y.top},v=()=>{const b={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?b.legacyTop:o&&r!=="timeline"?l==="bottom"?b.legacyBottom:b.legacyTop:l==="bottom"?b.bottom:b.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 lj=i(59288);const go=re("block-text"),cj=class extends lj.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)(St,{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)(KE,{item:t,labels:e,children:(0,s.jsx)(ms,{value:a||""})}):(0,s.jsx)(ms,{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,b=C(u),y=Object.keys(b?.audio??{}).length>0,{audioPosition:x,entranceAnimation:L,cellPadding:E=1.5,tableWidth:S=76,textPadding:N=.8,textWidth:A=76}=m,k=f==="table",M=e===1,W=e>1,D=k?S:A,w=!k&&M,Z=k,U=jE(E),z=IE(N),G=W0(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-${z}`]:w,[`${p}-custom-cell-padding-${U}`]:Z,"no-animation":!L}),ie=e>2?go("container-wide"):go("container",{authoring:!a}),ce=this.getHeadingComponent(),Ne=C(Array.isArray(u)?{}:u),we=Jo(Ne,x,o);return(0,s.jsx)(Vt,{className:ue.toString(),defaultBackgroundColor:n,children:(0,s.jsxs)("div",{className:ie,"data-block-id":t,"data-block-text":"",children:[(0,s.jsx)("div",{className:go("row"),children:r!==""?l.slice(0,1).map(($e,Fe)=>(0,s.jsx)("div",{className:go("col"),children:(0,s.jsx)("div",{className:go("heading"),children:(0,s.jsx)(ce,{children:v($e)})})},"id"in $e?$e.id:Fe)):null}),we.renderOrder.map(($e,Fe)=>{if($e==="text")return(0,s.jsx)("div",{className:go("row"),children:p!=="heading"?l.slice(0,e).map((Ke,lt)=>(0,s.jsx)(h.Fragment,{children:g(Ke)},"id"in Ke?Ke.id:lt)):null},`text-${Fe}`);if($e==="audio"&&y){const Ke=we.renderOrder.indexOf("audio")<we.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:go("row",{media:!0,top:Ke,bottom:!Ke,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-${Fe}`)}})]})})}},qo=qt(cj),dj=qo,uj=t=>(0,s.jsx)(qo,{columns:2,type:"twocol",...t}),hj=t=>(0,s.jsx)(qo,{columns:3,type:"threecol",...t}),mj=t=>(0,s.jsx)(qo,{columns:4,type:"fourcol",...t}),pj=t=>(0,s.jsx)(qo,{heading:"heading",type:"heading",...t}),fj=t=>(0,s.jsx)(qo,{heading:"subheading",type:"heading",...t}),gj=t=>(0,s.jsx)(qo,{heading:"heading",...t}),vj=t=>(0,s.jsx)(qo,{heading:"subheading",...t});var Cj=i(31433),Wa=i.n(Cj);class xj extends $().Component{static defaultProps={animateOnce:!1,delay:0,duration:1,initiallyVisible:!1,keepStructure:!1,offset:150,siblingDelay:0};animating;callbackTimeout;delayedAnimationTimeout;listener;node;scrollableParent;serverSide;visibility={aboveViewport:!1,belowViewport:!1,inViewport:!1,onScreen:!1};constructor(e){super(e),this.serverSide=typeof window>"u",this.listener=Wa()(this.handleScroll.bind(this),50),this.state={canAnimate:!0,classes:"animated",style:{animationDuration:`${this.props.duration}s`,opacity:this.props.initiallyVisible?1:0}}}getElementTop(e){let n=0;for(;e&&e.offsetTop!==void 0&&e.clientTop!==void 0;)n+=e.offsetTop+e.clientTop,e=e.offsetParent;return n}getScrollPos(){return this.scrollableParent instanceof Window&&this.scrollableParent.pageYOffset!==void 0?this.scrollableParent.pageYOffset:this.scrollableParent.scrollTop}getScrollableParentHeight(){return this.scrollableParent instanceof Window&&this.scrollableParent.innerHeight!==void 0?this.scrollableParent.innerHeight:this.scrollableParent.clientHeight}getViewportTop(){return this.getScrollPos()+this.props.offset}getViewportBottom(){return this.getScrollPos()+this.getScrollableParentHeight()-this.props.offset}isInViewport(e){return e>=this.getViewportTop()&&e<=this.getViewportBottom()}isAboveViewport(e){return e<this.getViewportTop()}isBelowViewport(e){return e>this.getViewportBottom()}inViewport(e,n){return this.isInViewport(e)||this.isInViewport(n)||this.isAboveViewport(e)&&this.isBelowViewport(n)}onScreen(e,n){return!this.isAboveScreen(n)&&!this.isBelowScreen(e)}isAboveScreen(e){return e<this.getScrollPos()}isBelowScreen(e){return e>this.getScrollPos()+this.getScrollableParentHeight()}getVisibility(){const e=this.getElementTop(this.node)-this.getElementTop(this.scrollableParent),n=e+this.node.clientHeight,o=this.inViewport(e,n);return{aboveViewport:this.isAboveViewport(e),belowViewport:this.isBelowViewport(e),inViewport:o,onScreen:this.onScreen(e,n)}}componentDidMount(){if(!this.serverSide){const e=this.props.scrollableParentSelector;this.scrollableParent=e?document.querySelector(e):window,this.scrollableParent&&this.scrollableParent.addEventListener?this.scrollableParent.addEventListener("scroll",this.listener,{passive:!0}):console.warn(`Cannot find element by locator: ${this.props.scrollableParentSelector}`),setTimeout(()=>{this.handleScroll()},0)}}componentWillUnmount(){clearTimeout(this.delayedAnimationTimeout),clearTimeout(this.callbackTimeout),this.listener.cancel(),this.scrollableParent?.removeEventListener?.("scroll",this.listener)}visibilityHasChanged(e,n){return e.inViewport!==n.inViewport||e.onScreen!==n.onScreen}captureRef(e){e&&(this.node=e instanceof HTMLElement?e:e.animateRef)}animate(e,n){const{children:o,duration:r,siblingDelay:a}=this.props;this.delayedAnimationTimeout=setTimeout(()=>{this.animating=!0,this.setState({classes:`animated ${e}`,style:{animationDuration:`${this.props.duration}s`}});let l=r;if(a>0){let d=0;$().Children.forEach(o,c=>{c&&(d+=$().Children.count(c.props.children))}),d>0&&(l=r+a*d)}this.callbackTimeout=setTimeout(n,l*1e3)},this.props.delay)}animateIn(e){this.animate(this.props.animateIn,()=>{this.props.animateOnce?this.setState({canAnimate:!1,classes:"",style:{}}):(this.setState({style:{animationDuration:`${this.props.duration}s`,opacity:1}}),this.animating=!1);const n=this.getVisibility();e&&e(n)})}animateOut(e){this.animate(this.props.animateOut,()=>{this.setState({classes:"animated",style:{animationDuration:`${this.props.duration}s`,opacity:0}});const n=this.getVisibility();n.inViewport&&this.props.animateIn?this.animateIn(this.props.afterAnimatedIn):this.animating=!1,e&&e(n)})}shouldNotAnimate(e){return this.props.animateIn&&this.props.animateOut?!e.onScreen:this.props.animateIn?!e.onScreen&&!e.aboveViewport:!e.onScreen&&!e.belowViewport}shouldAnimateIn(e){return this.props.animateIn?this.props.animateOut?e.inViewport:e.inViewport||e.aboveViewport:!1}shouldAnimateOut(e){return this.props.animateOut&&e.onScreen&&this.state.style.opacity===1?this.props.animateIn?e.inViewport:e.inViewport||e.belowViewport:!1}handleScroll(){if(!this.animating&&this.node!=null){const e=this.getVisibility();this.visibilityHasChanged(this.visibility,e)&&(clearTimeout(this.delayedAnimationTimeout),this.shouldNotAnimate(e)?this.setState({classes:"animated",style:{animationDuration:`${this.props.duration}s`,opacity:this.props.initiallyVisible?1:0}}):this.shouldAnimateIn(e)?this.animateIn(this.props.afterAnimatedIn):this.shouldAnimateOut(e)&&this.animateOut(this.props.afterAnimatedOut),this.visibility=e)}}renderChild(e,n,o=0){const{canAnimate:r}=this.state,{initiallyVisible:a,keepStructure:l,siblingDelay:d}=this.props,c=d*o,u=Object.assign({},this.props.style,this.state.style,r&&{animationDelay:`${c}s`,animationFillMode:"forwards"});return(0,s.jsx)(bj,{classes:n,initiallyVisible:a,keepStructure:l,style:u,children:e},o)}renderChildren(e,n){const{children:o,siblingDelay:r}=this.props,a=Array.isArray(n)?n:o;return r&&Array.isArray(a)?[...Array(a.length).keys()].map(l=>this.renderChild(a[l],e,l)):this.renderChild(a,e)}renderWrapped(e){return(0,s.jsx)("div",{ref:n=>{this.node=n},children:this.renderChildren(e)})}renderStructure(e){const{children:n}=this.props;return $().Children.count(n)===1?$().Children.map(n,o=>$().cloneElement(o,{ref:this.captureRef.bind(this)},this.renderChildren(e,o.props.children))):this.renderWrapped(e)}render(){const e=this.props.className?`${this.props.className} ${this.state.classes}`:this.state.classes;return this.props.keepStructure?this.renderStructure(e):this.renderWrapped(e)}}class bj extends $().Component{static defaultProps={keepStructure:!1};state={hasAnimated:!1};ref;componentDidMount(){this.ref?.addEventListener?.("animationend",this.handleAnimationEnd)}componentWillUnmount(){this.ref?.removeEventListener?.("animationend",this.handleAnimationEnd)}componentDidUpdate(e){e.style.opacity!==this.props.style.opacity&&this.props.style.opacity===0&&this.setState({hasAnimated:!1})}captureRef(e){e&&(this.ref=e instanceof HTMLElement?e:e.animateRef)}handleAnimationEnd=()=>{this.ref&&this.setState({hasAnimated:!0})};renderStructure({style:e}){const{children:n,classes:o}=this.props;return $().Children.map(n,a=>$().cloneElement(a,{className:o,style:e,ref:this.captureRef.bind(this)}))}renderWrapped({style:e}){const{children:n,classes:o}=this.props;return(0,s.jsx)("div",{className:o,ref:r=>{this.ref=r},style:e,children:n})}render(){const{initiallyVisible:e,keepStructure:n}=this.props,{hasAnimated:o}=this.state,r=this.props.style,a=r.animationDelay!==void 0&&!e?0:r.opacity,l=Object.assign({},r,{opacity:o?1:a});return n?this.renderStructure({style:l}):this.renderWrapped({style:l})}}const yj=matchMedia("(prefers-reduced-motion: reduce)");function Ms(){return yj.matches}const Ej=t=>{const{afterAnimatedIn:e,animateBlockEntrance:n,animateIn:o,animateOnce:r,children:a,className:l,duration:d,keepStructure:c,initiallyVisible:u,isLearner:m,offset:p,siblingDelay:f}=t;return m&&n&&!Ms()?(0,s.jsx)(xj,{afterAnimatedIn:e,animateIn:o,animateOnce:r??!0,className:l,duration:d??.75,initiallyVisible:u,keepStructure:c,offset:p??200,scrollableParentSelector:"#page-wrap",siblingDelay:f??0,children:a}):Array.isArray(a)?(0,s.jsx)("div",{children:a}):a},Bt=(0,Te.Uj)(Ej);var $a=i(91817),k2=i(59288);const Lj=k2.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 k2.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:e}){return(0,s.jsx)(ms,{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:b,wrapWords:y}=d,x=H()("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)(Vt,{className:x,defaultBackgroundColor:n,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,children:(0,s.jsx)("div",{className:"block-text__container",children:a.slice(0,1).map(N=>{const A=sl({...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:ka,children:(0,s.jsxs)("figure",{"aria-labelledby":A.figcaptionId,className:"block-text__figure",role:"figure",children:[(0,s.jsx)(Ky,{value:N.code,children:k=>b?(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,$a.htmlDecode)((0,_n.aj)(k)),width:"100%",wrapEnabled:y})}):(0,s.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:(0,_n.aj)(k)},dir:"ltr",style:L})}),N.caption&&(0,s.jsx)("figcaption",{id:A.figcaptionId,children:c(N)})]})})},N.id)})})})})}}const O2=qt(Tj);function jj(t,e){const n=Hs(),{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,Te.DX)()?.theme,b=o??f,y=Dn()??"#ffffff",x=b===to.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,M=[r,"block-card"];if(x)M.push("bg--range-light","block-card--white");else if(l){M.push("block-card--disabled");const W=cn({backgroundColor:y,contrast:k});A&&(u["--color-text"]=W,u["--color-text-opposite"]=W===Qe.S6.DARK?Qe.S6.LIGHT:Qe.S6.DARK)}else{M.push("block-card--transparent");const W=(0,it.XC)(y),D=it.t9[W](y);switch(p){case I.xj.LIGHT:case I.xj.GRAY:M.push("bg--range-light");break;case I.xj.IMAGE:M.push("bg--range-dark");break;case I.xj.DARK:case I.xj.BLACK:M.push("bg--range-dark"),u["--color-background-rgb"]=(0,wa.A)(D)?.slice(0,3);break;default:{const w=cn({backgroundColor:D,contrast:k});N&&w==Qe.S6.LIGHT&&M.push("block-card--contrast-light");const Z=(0,it.XC)(D);M.push(`bg--range-${Hi()(Z.toLowerCase())}`);const U=c?y:D;u["--color-background"]=U,u["--color-background-rgb"]=(0,wa.A)(U)?.slice(0,3);break}}}return(0,s.jsx)(d,{...m,className:M.join(" "),ref:e,style:u,children:a})}const un=(0,h.forwardRef)(jj);var w2=i(59288);const Bn=re("block-statement");class Ij extends w2.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:w2.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,b)=>{if(C==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(ms,{value:u})},`text-${b}`);if(C==="audio"&&g){const y=v.renderOrder.indexOf("audio")<v.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:Bn("audio-container",{top:y,bottom:!y}),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-${b}`)}})})})}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=gE(l),dividerSize:m=fE(l),noteIcon:p=!0,noteSize:f="sm",statementWidth:g=vE(l)}=a,v=EE(g),C=LE(u),b=TE(m),y=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-${b}`]:x&&c,[`note-size-${y}`]:L,[`note-size-${y}-no-icon`]:L&&!p,"no-animation":!d});return(0,s.jsx)(Vt,{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 dl=qt(Ij),Sj=dl,Nj=t=>(0,s.jsx)(dl,{type:"b",...t}),Aj=t=>(0,s.jsx)(dl,{type:"c",...t}),Pj=t=>(0,s.jsx)(dl,{type:"d",...t}),Rj=t=>(0,s.jsx)(dl,{type:"note",...t}),Mj=({children:t})=>{const{accentColor:e,backgroundType:n,cardMode:o,courseColor:r,customBackgroundColorContrast:a,noteIcon:l=!0}=Hs(),{theme:d}=(0,Te.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?to.TRANSPARENT:o,C=p===I.Em.AUTO&&m||a===I.Em.AUTO&&u,b={},y=(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,it.W8)(.9,e??r);case I.xj.DARK:return"#494949";case I.xj.BLACK:return"#333333";default:switch((0,it.XC)(c)){case it.lL.LIGHT:return(0,it.W8)(.3,c);case it.lL.MED:return(0,it.W8)(-.2,c);case it.lL.DARK:case it.lL.NEAR_BLACK:return(0,it.W8)(-.4,c)}}},[e,n,c,r]),x=n===I.xj.COLOR?a:p,L=cn({backgroundColor:y,contrast:x});b["--color-background"]=y,C&&(b["--color-text"]=L);const E=Bn("note-icon",{off:!l});return(0,s.jsxs)(un,{cardMode:v,className:Bn("note-card"),style:b,children:[(0,s.jsx)("div",{className:E,children:(0,s.jsx)(bt,{name:"circle-info"})}),t]})};var Is=i(59288);function D2({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 zc({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:b=!1,shouldUseCounter:y=!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),M=Is.useRef(!1),W=Is.useRef(!1),D=Is.useRef(void 0),w=Is.useRef(void 0),Z=`carousel-${L}`,U=Is.Children.count(t),z=(0,_t.A)(U),G=Is.useMemo(()=>Array.from({length:U}),[U]),ue=U>1;Is.useImperativeHandle(v,()=>({navigateToSlide:(Fe,Ke=!0)=>{S(Fe);const lt=A.current?.children?.[Fe]?.firstElementChild;Ke&&lt?.focus()}}),[]);const ie=Is.useCallback(({activeIndex:Fe,dir:Ke})=>{const lt=o?Fe-1>=0?Fe-1:U-1:Math.max(0,Fe-1),Xe=o?Fe+1<=U-1?Fe+1:0:Math.min(U-1,Fe+1);return Ke==="left"?r?Xe:lt:r?lt:Xe},[o,r,U]),ce=Is.useCallback(()=>{S(Fe=>ie(r?{activeIndex:Fe,dir:"right"}:{activeIndex:Fe,dir:"left"}))},[ie,r]),Ne=Is.useCallback(()=>{S(Fe=>ie(r?{activeIndex:Fe,dir:"left"}:{activeIndex:Fe,dir:"right"}))},[ie,r]),we=Is.useCallback(Fe=>{let Ke=!1,lt=E;switch(Fe.key){case"ArrowLeft":Ke=!0,lt=ie({activeIndex:E,dir:"left"});break;case"ArrowRight":Ke=!0,lt=ie({activeIndex:E,dir:"right"});break;case"Home":Ke=!0,lt=0;break;case"End":Ke=!0,lt=U-1;break}if(Ke&&(Fe.stopPropagation(),Fe.preventDefault()),E!==lt){const Xe=A.current?.children?.[lt]?.firstChild;Xe?.focus(),Xe?.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),S(lt)}},[E,ie,U]);Is.useEffect(()=>{N!==E&&g?.(E)},[E,g,N]),Is.useEffect(()=>{U<z&&E>U-1&&S(U-1)},[E,z,U]),Is.useEffect(()=>{const Fe=He=>{He.target.tagName==="IMG"&&He.preventDefault(),D.current=He.screenX},Ke=He=>{const mt=window.visualViewport?.scale??1,rt=window.getSelection().toString()!=="";if(!W.current&&mt<=1.01&&!rt&&D.current!=null){w.current=He.screenX;const zt=w.current-D.current;Math.abs(zt)>50&&(window.getSelection().empty(),M.current=!0,D.current=void 0,w.current=void 0,zt<0?S(Ft=>ie({activeIndex:Ft,dir:"right"})):S(Ft=>ie({activeIndex:Ft,dir:"left"})))}},lt=He=>{M.current&&He.stopPropagation(),M.current=!1,W.current=!1,D.current=void 0,w.current=void 0},Xe=He=>{if(He.touches.length>1){W.current=!0;return}He.changedTouches.length===1&&He.changedTouches[0]&&(D.current=He.changedTouches[0].screenX)},ye=He=>{const mt=window.visualViewport?.scale??1,rt=window.getSelection().toString()!=="";if(!W.current&&mt<=1.01&&!rt&&D.current!=null&&He.changedTouches[0]){w.current=He.changedTouches[0].screenX;const zt=w.current-D.current;Math.abs(zt)>50&&(M.current=!0,D.current=void 0,w.current=void 0,zt<0?S(Ft=>ie({activeIndex:Ft,dir:"right"})):S(Ft=>ie({activeIndex:Ft,dir:"left"})))}},Re=()=>{M.current=!1,W.current=!1,D.current=void 0,w.current=void 0},Ve=k.current;return b&&(Ve?.addEventListener("mousedown",Fe,{capture:!0}),Ve?.addEventListener("mousemove",Ke,{capture:!0}),Ve?.addEventListener("click",lt,{capture:!0})),Ve?.addEventListener("touchstart",Xe,{passive:!0}),Ve?.addEventListener("touchmove",ye,{passive:!0}),Ve?.addEventListener("touchend",Re,{passive:!0}),Ve?.addEventListener("touchcancel",Re,{passive:!0}),()=>{b&&(Ve?.removeEventListener("mousedown",Fe),Ve?.removeEventListener("mousemove",Ke),Ve?.removeEventListener("mouseup",Re)),Ve?.removeEventListener("touchstart",Xe),Ve?.removeEventListener("touchmove",ye),Ve?.removeEventListener("touchend",Re),Ve?.removeEventListener("touchcancel",Re)}},[ie,b,U]);const $e=Fe=>()=>{A.current?.children?.[Fe]?.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),S(Fe)};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((Fe,Ke)=>{const lt=E===Ke,Xe=$e(Ke);return C?C({index:Ke,isActive:lt,onClick:Xe,onKeyDown:we}):(0,s.jsx)(D2,{ariaLabel:m+" "+(Ke+1),isActive:lt,onClick:Xe,onKeyDown:we,children:(0,s.jsx)(bt,{className:"carousel-controls-item-btn-icon",name:lt?"circle":"circle-solid"})},Ke)})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:E===0,"aria-label":u,className:"carousel-controls-prev",onClick:!o&&E===0?void 0:ce,type:"button",children:(0,s.jsx)(bt,{className:"carousel-controls-prev-icon",name:r?n:e})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:E===U-1,"aria-label":c,className:"carousel-controls-next",onClick:!o&&E===U-1?void 0:Ne,type:"button",children:(0,s.jsx)(bt,{className:"carousel-controls-next-icon",name:r?e:n})}),y&&(0,s.jsxs)("div",{className:"carousel-controls-counter",children:[(0,s.jsx)("div",{className:"carousel-controls-counter-text",children:`${E+1} ${p} ${U}`}),(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)/U).toFixed(2))*100}%`}})})]})]})}),(0,s.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:k,children:Is.Children.map(t,(Fe,Ke)=>{const lt=`${Z}-${Ke}-counter`;return(0,s.jsxs)("div",{"aria-labelledby":lt,"aria-roledescription":f,className:"carousel-slide",hidden:E!==Ke,inert:E!==Ke,role:"group",children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:lt,children:`${Ke+1} ${p} ${U}`}),Fe]})})})]})}var ul=i(59288);const kj="div",B2=ul.createContext(void 0);function Oj({children:t,element:e,...n},o){const[r,a]=ul.useState();return(0,s.jsx)(B2.Provider,{value:r,children:ul.createElement(e??kj,{...n,ref:o},t,(0,s.jsx)("div",{ref:a}))})}const Fc=ul.forwardRef(Oj);function qK(){return ul.useContext(B2)}function Uc(t){const e=n=>{const o=(0,Te.Wz)();return(0,s.jsx)(t,{...n,isRTL:o})};return e.displayName=`withRTL(${t.displayName||t.name})`,e}const Vc=({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}=ki(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=re("block-quote"),hl=({avatar:t,alt:e,l10nId:n,showAvatar:o})=>(0,s.jsx)(Ln,{alt:(0,Zs.Ll)(e),className:Ht("avatar",{hidden:!o}),"data-l10n-id":n,src:t}),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)(hl,{alt:t,avatar:n,l10nId:r,showAvatar:d})}):(0,s.jsx)(hl,{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)(hl,{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)(hl,{alt:o,avatar:e,l10nId:r,showAvatar:a}):null,n]})})})})});class Hj extends $().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??CE(n),r=(0,Yt.ME)(e),a=xE(n);return(0,K0.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)(ms,{className:r,value:o})}renderCaption(e,{name:n}){const o=Ht("caption",{blank:n===""}).toString();return(0,s.jsx)(ms,{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=Gm(l),divider:p=!0,dividerSize:f=u,entranceAnimation:g,quoteAlignment:v="left",quoteIcon:C=!0,quotesInline:b,quotePadding:y=2,quoteWidth:x=Km(l)}=a,[L]=r,{avatar:E,background:S}=L,N=n(E?.media)?.image,A=(0,Yt.xm)(N),k=N?.alt,M=(0,Rt.pP)(E.media),W=n(S?.media)?.image,D=W?.overlayColor,w=this.getBackgroundImageUrl(W,D),Z=a?.avatar??A!=="",U=A&&A!=="",z=l==="background",G=z&&D==="light",ue=Zm(x),ie=Ym(y),ce=Qm(l,m),Ne=yE(f),we=l==="a",$e=l==="c"||z,Fe=l!=="b"&&!z,Ke=L?.name==="",lt=L?.paragraph==="",Xe=Ht(null,{[l]:!0,[`${l}-custom-width-${ue}`]:!0,[`${l}-divider-off`]:we&&!p,[`${l}-divider-size-${Ne}`]:we&&p,[`${l}-quote-padding-${ie}`]:!0,[`${l}-align-${v}`]:z,[`${l}-${ue}-no-avatar`]:!A||!Z,[`${l}-avatar-size-${ce}`]:Z&&U,[`${l}-quote-icon-off`]:$e&&!C,[`${l}-legacy-quote-mark`]:Fe&&!b,[`${l}-overlay-legacy`]:!D,[`${l}-overlay-light`]:G,"no-animation":!g}).toString(),ye=(0,s.jsx)("div",{className:Ht("wrap",{blank:Ke||lt}),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 Re;switch(l){case"d":Re=(0,s.jsx)(Dj,{alt:k,avatar:A,l10nId:M,showAvatar:Z,type:l,children:ye});break;case"background":Re=(0,s.jsx)(Bj,{alt:k,avatar:A,background:w,l10nId:M,showAvatar:Z,type:l,children:ye});break;default:Re=(0,s.jsx)(wj,{alt:k,animateBlockEntrance:e,avatar:A,isAuthorBlank:Ke,isLearner:o,l10nId:M,showAvatar:Z,type:l,children:ye})}return(0,s.jsx)(Vt,{className:Xe,children:Re})}}const ml=qt(Hj),zj=t=>(0,s.jsx)(ml,{...t}),Fj=t=>(0,s.jsx)(ml,{type:"b",...t}),Uj=t=>(0,s.jsx)(ml,{type:"c",...t}),Vj=t=>(0,s.jsx)(ml,{type:"d",...t}),Wj=t=>(0,s.jsx)(ml,{type:"background",...t});class $j extends $().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)(ms,{className:r,value:o})};renderCaption=(e,{name:n})=>{const o=Ht("caption",{blank:n===""}).toString();return(0,s.jsx)(ms,{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:b=Gm(v),entranceAnimation:y,quotesInline:x,quotePadding:L=2,quoteWidth:E=Km(v),showBorder:S=!0}=p,A=v!=="b"&&!(v==="background"),k=Zm(E),M=Ym(L),W=Qm(v,b),D=m==="mobile-portrait"||m==="mobile-landscape",w=Ht({[v]:!0,[`${v}-custom-width-${k}`]:!0,[`${v}-quote-padding-${M}`]:!0,[`${v}-${k}-no-avatar`]:!C,[`${v}-avatar-size-${W}`]:C,[`${v}-legacy-quote-mark`]:!d&&A&&!x,"no-animation":!y,"hide-border":!S,editable:o}).toString(),Z=c.map(U=>{const z=r(U?.avatar?.media)?.image,G=z?.alt,ue=(0,Yt.xm)(z),ie=C??ue!=="",ce="l10nId"in U.avatar.media?U.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)(hl,{alt:G,avatar:ue,l10nId:ce,showAvatar:ie}):null,(0,s.jsxs)(Bt,{animateBlockEntrance:n,animateIn:"fadeInUp",isLearner:l,siblingDelay:.25,children:[(0,s.jsx)("blockquote",{children:f(this.props,U)}),(0,s.jsx)("figcaption",{children:g(this.props,U)})]})]})},U.id)});return(0,s.jsx)("div",{className:Ht("slider-container"),children:(0,s.jsx)(Vt,{className:w,children:(0,s.jsx)(Fc,{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)(Vc,{blockId:e,items:c,children:({carouselRef:U})=>(0,s.jsx)(zc,{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:U,shouldMouseEmulateTouch:D,children:Z})})})})})})})})}}const Kj=Uc(qt($j));var H2=i(59288);const Hn=re("block-list"),Gj=class extends H2.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:b}=p,y=Jo(u,g,r),x=bE(v),L=W0(b),E=50,S=Hn({[f]:!0,[`${f}-custom-width-${L}`]:!0,[`${f}-bullet-padding-${x}`]:!0,"no-animation":!C}),N=f==="numbered"?"ol":"ul";return(0,s.jsx)(Vt,{className:S.toString(),defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:Hn("container"),children:(0,s.jsx)("div",{className:Hn("row"),children:(0,s.jsx)(Fc,{className:Hn("col"),children:(0,s.jsx)(Bt,{animateBlockEntrance:t,animateIn:"fadeInRight",className:Hn("animated-item").toString(),isLearner:a,keepStructure:!0,offset:E,siblingDelay:.25,children:(0,s.jsx)("div",{className:"blocks-list__container",children:y.renderOrder.map((A,k)=>{if(A==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(N,{className:Hn("list"),role:"list",children:l.map((M,W)=>{const D={key:M.id,index:W,lessonId:c,blockId:e,type:f,editable:o,nextNumber:this.nextNumber.bind(this),onStep:m,...M};return this.props.renderItem?this.props.renderItem(D):(0,h.createElement)(Qj,{...D,key:D.key})})})},`text-${k}`);if(A==="audio")return(0,s.jsx)("div",{className:H()("block-list__media",{"audio-on-top":y.renderOrder[0]==="audio","audio-on-bottom":y.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}`})},`${A}-${k}`)})})})})})})})}};class Qj extends H2.Component{renderTextDelegate;animateRef;static get defaultProps(){return{className:""}}constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}renderText(e){return(0,s.jsx)(ms,{...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:H()("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)(bt,{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)(bt,{className:Hn("checkbox__icon"),name:"check"})}),c(m)]})]})}}const cu=fc("rise-audio-release","hasAudioExpansionFlag")(t=>(0,s.jsx)(Gj,{...t})),Zj=cu,Yj=t=>(0,s.jsx)(cu,{type:"checkboxes",...t}),_j=t=>(0,s.jsx)(cu,{type:"bulleted",...t});var du=i(59288);class Xj extends du.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)(ms,{className:"block-image__caption",value:n})}render(){const{aiMagicIcon:e,aiOverlay:n,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:l,getL10nValue:d,isLastBlock:c,isLearner:u,items:m,type:p,labels:f,lessonId:g,settings:v,renderCaption:C=this.renderCaptionDelegate}=this.props,{entranceAnimation:b,zoomOnClick:y}=v,x=H()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!b}),L=m[0],{id:E,caption:S}=L,{image:N,audio:A}=d(L.media),k=N?.alt,M=(0,Yt.ME)(N),W=N?.dimensions,D=W?.width||W?.originalWidth,w=W?.height||W?.originalHeight,Z=sl({caption:S,editable:l,id:E,getL10nValue:d}),U=c?50:300,z=!u&&!M,G=D&&w?D/w:void 0,ue=H()("block-image__image",{"block-image__image--audio-overlay":!!A});return(0,s.jsx)(Vt,{className:x,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,animateIn:"fadeIn",isLearner:u,offset:U,children:(0,s.jsxs)(Z.tagName,{"aria-labelledby":Z.figcaptionId,className:"block-image__figure",role:Z.role,children:[(0,s.jsxs)("div",{className:ue,children:[z?(0,s.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:G},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:k,disableZoom:!y,height:w,l10nId:(0,Rt.pP)(L.media),labels:f,maxHeight:p==="full"?380:900,src:M,width:D}),A&&(0,s.jsx)(dn,{blockId:r,index:`${r}-${E}-0`,isOverlayAudio:!0,item:L,labels:f,lessonId:g,media:L.media,renderMediaType:"audio"})]}),n&&(0,s.jsx)("div",{className:"block-image__ai-overlay",children:n})]}),(l||S)&&(0,s.jsx)("figcaption",{id:Z.figcaptionId,children:C(E,S)})]})})})})})})}}const Jj=qt(Xj),qj=(t,e,n,o)=>e?o:(0,s.jsx)(Bt,{animateBlockEntrance:t,animateIn:"fadeIn",duration:1,isLearner:n,children:o});class eI extends du.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)(ms,{className:"block-image__text",value:n})}renderCaption(e,n){return(0,s.jsx)(ms,{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,b=v?.height||v?.originalHeight,y=sl({caption:n,editable:l,id:e,getL10nValue:u}),{animateBlockEntrance:x,isLearner:L,labels:E,settings:{zoomOnClick:S}}=this.props,N=H()("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)(y.tagName,{"aria-labelledby":y.figcaptionId,className:"block-image__figure",role:y.role,children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)(Va,{alt:f,disableZoom:!S,height:b,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:y.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=H()(`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)(Vt,{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 du.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)(ms,{className:"block-image__caption",value:n})}renderOverlay(e,n){return(0,s.jsx)(ms,{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,b=$0(m?.backgroundColor,o),y=H()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!g,"block-image--dark":(0,it.cP)(b)}),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,M=(0,Yt.ME)(N),W=N?.dimensions,D=W?.width||W?.originalWidth,w=W?.height||W?.originalHeight,Z=(0,Zs.Ll)(N?.alt),U=p==="overlay",z=sl({caption:S,editable:r,id:E,isOverlayType:U,getL10nValue:a});return(0,s.jsxs)(Vt,{"aria-labelledby":z.figcaptionId,className:y,defaultBackgroundColor:o,role:z.role,tag:z.tagName,children:[qj(e,U,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('${M}')`},children:[(0,s.jsx)(Ln,{alt:Z,height:w,src:M,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"})]}),U?this.renderOverlayCaption(E,S):null]})),!U&&(r||S)&&(0,s.jsx)("figcaption",{className:"block-image__container",id:z.figcaptionId,children:f(E,S)})]})}}const z2=qt(sI),nI=t=>(0,s.jsx)(z2,{type:"overlay",...t});var oI=i(59288);function F2(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)(ms,{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 Wc=i(59288);const U2=re("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]=Wc.useState(0),v=Wc.useCallback(x=>{g(x),c?.(d[x])},[d,c]),C=u===Qe.o4.MOBILE_PORTRAIT||u===Qe.o4.MOBILE_LANDSCAPE,b=U2({noAnimation:!p?.entranceAnimation||Ms()}).toString(),y=(0,Te.Wz)();return(0,s.jsx)(Vt,{className:b,defaultBackgroundColor:n,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,offset:200,children:(0,s.jsx)(Fc,{className:U2("container").toString(),children:(0,s.jsx)(Vc,{blockId:t,items:d,children:({carouselRef:x})=>(0,s.jsx)(zc,{isRTL:y,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=F2(rI),uu=re("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]=Wc.useState(!1),{image:p,audio:f}=(0,xt.QQ)(r.media),g=p?.dimensions,v=Wc.useCallback(()=>{m(!0)},[]);return(0,s.jsxs)("figure",{className:uu(),children:[n&&!u&&(0,s.jsx)("div",{className:uu("loading"),children:"Loading image..."}),(0,s.jsxs)("div",{className:uu("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 $().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=H()(`block-gallery block-gallery--${cI(m)}`,{"block-gallery--no-animation":!p||Ms()});return(0,s.jsx)(Vt,{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,animateIn:"fadeIn",className:"block-gallery__col",isLearner:a,siblingDelay:.25,children:l.map(v=>{const{id:C}=v,b=v.caption,y=r(v.media)?.image,x=y?.alt,L=y?.key,E=y?.dimensions,S=E?.width||E?.originalWidth,N=E?.height||E?.originalHeight,A=(0,Yt.ME)(y),k=sl({caption:b,editable:o,id:C,getL10nValue:this.props.getL10nValue});return(0,s.jsx)("div",{className:!e||Ms()?"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||b)&&(0,s.jsx)("figcaption",{id:k.figcaptionId,children:c(C,b)})]})},C)})})})})})}}const hu=F2(qt(uI)),mu=re("block-divider"),pu=({isLearner:t,labels:{numberedDividerGroup:e},number:n,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,l=r==="numbered",c=mu({authoring:!t,spacing:r==="spacing",numbered:l,"no-animation":!a}).toString(),u=l?(0,s.jsxs)("div",{className:mu("wrap__number"),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:e}),n]}):null;return(0,s.jsx)(Vt,{className:c,children:(0,s.jsx)("div",{className:mu("wrap",{authoring:!t&&!l}),children:u})})},hI=pu,mI=t=>(0,s.jsx)(pu,{type:"numbered",...t}),pI=t=>(0,s.jsx)(pu,{type:"spacing",...t});var fI=i(16169),fu=i.n(fI),gI=i(42551),vI=i.n(gI),CI=i(51926),wr=i.n(CI),xI=i(13916),V2=i.n(xI),bI=i(19453),$c=i.n(bI),Kc=i(59288);const yI=30,W2=Cc("blockSettings");class EI extends Kc.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=H()("blocks-accordion",{"blocks-accordion--no-animation":!p});return(0,s.jsx)(Vt,{className:g,"data-block-id":n,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",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)(AI,{blockId:n,editable:o,enableVideoPlaybackSpeed:m,items:a,keepOpen:f==="keepOpen",labels:l,lessonId:d,onStep:c,settings:u})})})})})})}}const LI={isOpen:!1,isActive:!1},TI=t=>(e,{id:n})=>Object.assign({},e,{[n]:t[n]||LI}),$2=(t,e)=>e.reduce(TI(t),{}),jI=(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}},II=t=>(e,n)=>{const o=n==t;return{isOpen:o,isActive:o}},SI=t=>(e,n)=>({isOpen:n==t,isActive:e.isActive});class NI extends Kc.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(e){super(e);const{items:n}=this.props;this.state={itemStatusMap:$2({},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=II(c);this.setState({itemStatusMap:wr()(u,d)}),open&&l(a[r])}}UNSAFE_componentWillReceiveProps(e){const n=e.items,o=Lt()(n)!==Lt()(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=SI(o.id);this.setState({itemStatusMap:wr()(r,e)})}rebuildItemStatusMap(e){const n=this.state.itemStatusMap;this.setState({itemStatusMap:$2(n,e)})}handleItemClick(e){const{items:n,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,l=n[e].id,d=jI(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)(MI,{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 AI=W2(NI);class PI extends Kc.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(e){super(e),this.id=$c()(),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=Ms()?"instant":"smooth";a||o.scrollIntoView({behavior:l,block:"start"})}}toggle(e){const{blockId:n,index:o}=this.props,r=ct.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(n.toString())&&a.test(r)&&ct.pause(),this.props.onClick(),e.preventDefault()}renderTitle(e){const{title:n}=this.props.item;return(0,s.jsx)(St,{className:"blocks-accordion__title",id:e,value:n})}renderDescription(){const{description:e=""}=this.props.item;return(0,s.jsx)(ms,{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:b}=c,y=a(c.media)??{},x=Jo(y,n.audioPosition,l),L=Object.assign({},C,{disableZoom:r,fullEmbed:!0}),E=n?.backgroundType===I.xj.ACCENT||n?.backgroundType===I.xj.IMAGE,S=H()("blocks-accordion__item",{"blocks-accordion__item--closed":!f}),N=H()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":f&&u&&!E}),A=H()("blocks-accordion__content",{"blocks-accordion__content--will-enter":f,"brand--border":f&&u&&!E}),k=`title-${this.id}`,M=`panel-${this.id}`,W=n?.headingLevel,D=W?`h${W}`:"h2";let w=(0,s.jsxs)("button",{"aria-controls":M,"aria-expanded":f,className:N,onClick:this.toggle,onKeyDown:!o&&Rh(this.toggle)||null,type:"button",children:[v(k),(0,s.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,s.jsx)(bt,{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":M,"aria-expanded":f,"aria-label":f?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,s.jsx)(bt,{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:M,ref:Z=>{this.content=Z},children:x.renderOrder.map((Z,U)=>{if(Z==="text")return g();const z={blockId:e,hasPadding:!1,imageMaxHeight:1e3,item:c,labels:m,lessonId:p,enableVideoPlaybackSpeed:b,opts:L},G=gu(y),ue=G==="image-with-audio",ie=ue?"left":"center",Ne={audio:{media:x.audioOnlyMedia||y,isOverlayAudio:!1,index:`${e}-${d}-audio`,className:"blocks-accordion__audio"},image:{media:x.imageOnlyMedia||y,isOverlayAudio:!1,index:`${e}-${d}-image`,className:H()(`blocks-accordion__${G}`,{[`blocks-accordion__${G}--${ie}`]:ue})},video:{media:x.videoOnlyMedia||y,isOverlayAudio:!1,index:`${e}-${d}-video`,className:H()(`blocks-accordion__${G}`,{[`blocks-accordion__${G}--${ie}`]:ue})},embed:{media:x.embedOnlyMedia||y,isOverlayAudio:!1,index:`${e}-${d}-embed`,className:H()(`blocks-accordion__${G}`,{[`blocks-accordion__${G}--${ie}`]:ue})},overlay:{media:y,isOverlayAudio:!0,index:`${e}-${d}-overlay`,className:H()(`blocks-accordion__${G}`,{[`blocks-accordion__${G}--${ie}`]:ue})}}[Z];if(!Ne)return null;const{className:we,...$e}=Ne;return(0,s.jsx)("div",{className:H()(we,{"audio-on-top":this.props.blockSettings.audioPosition==="top"||!l}),children:(0,s.jsx)("div",{className:"blocks-accordion__figure",children:(0,s.jsx)(dn,{...z,...$e})})},`${Z}-${U}`)})})]})}getMediaContainerClasses(e,n){const o=this.props.getL10nValue(this.props.item.media)??{},r=gu(o),a=r==="image-with-audio",l=a&&!Array.isArray(o)?o?.image?.align:"left";return H()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${l}`]:a,"blocks-accordion__media-container":e,"blocks-accordion__media-container--audio-overlay":n})}}const RI=t=>(0,s.jsx)(PI,{...t}),MI=W2(fc("rise-audio-release","hasAudioExpansionFlag")(qt(RI))),gu=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 kI extends Kc.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=$c()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=Wa()(this.handleControls.bind(this),100)),window.addEventListener(ss,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=Wa()(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)},()=>{P0(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=ct.playerId;this.state.activeIndex!=e&&o&&o.includes(n.toString())&&ct.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?V2():fu():n?fu():V2())(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;Aa(n)?(r=!0,a=o?e+1>this.tabs.length-1?0:e+1:e-1>=0?e-1:this.tabs.length-1):Pa(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=H()("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:O7,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=H()("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:b=>{this.tabs[u]=b},role:D7,tabIndex:m?void 0:-1,type:"button",children:(0,s.jsx)(St,{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)(bt,{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)(bt,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:e}){return(0,s.jsx)(ms,{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),b=H()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":p}),y=Object.assign({},f,{disableZoom:o,fullEmbed:!0}),x=`tabpanel-${this.id}-${n}`,L=`tab-${this.id}-${n}`,E=gu(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:b,id:x,role:w7,tabIndex:p?0:void 0,children:C.renderOrder.map((M,W)=>{if(M==="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:y},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:H()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${A}`]:S})},video:{media:C.videoOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-video`,className:H()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${A}`]:S})},embed:{media:C.embedOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-embed`,className:H()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${A}`]:S})},overlay:{media:v,isOverlayAudio:!0,index:`${r}-${n}-overlay`,className:H()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${A}`]:S})}}[M];if(!Z)return null;const{className:U,...z}=Z;return(0,s.jsx)("div",{className:H()(U,{"audio-on-top":this.props.settings.audioPosition==="top"||!l}),children:(0,s.jsx)("div",{className:"blocks-tabs__figure",children:(0,s.jsx)(dn,{...D,...z})})},`${M}-${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=H()("blocks-tabs",{"blocks-tabs--no-animation":!c}),p=o.length>0?o.slice(0,yI):[],f=d===to.TRANSPARENT&&(l===I.xj.ACCENT||l===I.xj.IMAGE),g=H()("blocks-tabs__container",{"blocks-tabs--single":p.length===1});return(0,s.jsx)(Vt,{className:m,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:n,offset:350,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 OI=t=>(0,s.jsx)(kI,{...t}),wI=Uc(qt(fc("rise-audio-release","hasAudioExpansionFlag")(OI))),DI=et()(null,["payload","result"]),BI=t=>t.thumbnail,HI=t=>t.meta?.version,K2=t=>t.src??null,zI=t=>t.processing,FI=ts()(["payload","result","completion"]),UI=et()(!1,["payload","result","score"]),VI=_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}),WI={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},$I=t=>{const e=ht()(t.split("-"));return WI[e]},KI=VI({majorLimit:3,minorLimit:13}),GI=(t,e,n)=>{const o=e&&$I(n);return o?`${t}${o}`:`${t}?rise=true`};var QI=i(59288);class ZI extends QI.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=ht()(n),a=e(r?.media)?.storyline??{},l=HI(a);KI(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=ht()(n),{windowName:l}=e;if(r===l&&FI(e)){const{score:d,success:c}=DI(e);if(UI(e)){const u=d.scaled*100;(0,Ee.jr)(r,c,!0,u)}else(0,Ee.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=ht()(l),p=n(m?.media)?.storyline??{},{mediaWidth:f="0"}=c,g=a?{}:{display:o&&!K2(p)?"none":"block"},v=H()("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)(Vt,{className:"blocks-storyline",style:g,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",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 zI(e)?this.renderProcessing():K2(e)?this.renderItem(e):this.renderEmpty()}renderThumbnail(e){const n=BI(e),o=`${(0,Me._$)("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=GI(l,r,a),f={paddingBottom:`${u.height/u.width*100}%`},g=H()("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,Me.o1)(m),title:c})})}renderProcessing(){const{renderProcessing:e}=this.props;return typeof e=="function"?e():null}}const YI=qt(ZI);var _I=i(67371),G2=i.n(_I),tG=i(56552),XI=i(25578),Q2=i.n(XI),JI=i(23117),qI=i.n(JI),eS=i(37600),Gc=i.n(eS);function vu(t,e,n="..."){const o=t?t.toString():"";return o.length>e?o.substr(0,e-1)+n:o}const sG=t=>when(e=>length(e)>t,slice(0,t)),tS=null,sS=t=>tS.test(t),nS=t=>t>=0,oS=t=>t<=100,nG=t=>t==="",oG=t=>sS(t)&&oS(t)&&nS(t),rG=t=>String(Number(t)),Z2=ke()(Ri()(""),G2()(qI(),0)),aG=ke()(Ri()(" "),Ds()(Z2),Q2()(" ")),Y2=ke()(Ri()(" "),Q2()(/(?=[A-Z]|^)/)),iG=ke()(Z2,Gc(),Y2),lG=ke()(Gc(),Y2);var rS=i(59288);const Qc=re("blocks-button"),_2=I.zV,aS=({description:t})=>(0,s.jsx)(St,{className:Qc("description"),value:t}),iS=({color:t,destination:e,editBlock:n,handleNavigate:o,isEditable:r,label:a,type:l})=>{const d=(0,Te.d_)(),c=(0,Te.DX)()?.externalLinksDisabled,u=(0,Te.DX)()?.theme,m=(0,Te.kJ)(),{mode:p}=(0,Ae.g)(),f=(0,As.y4)(),g=Hs(),v=(0,Te.vU)(),C=(0,$a.htmlDecode)((0,_n.QZ)((0,xt.QQ)(a))),b=vu(C,18),y=l==="email",x=l==="exit-course",L=l==="lesson",E=l==="relative-url",S=Qc("button"),N=!t||t===""||t===m,A=t??m,k={},M=(0,Te.Ge)(m),W=N&&u?.accentContrast===I.Em.AUTO?I.Em.AUTO:M,D=g?.buttonColorContrast??W,w=g?.buttonRadius??null,Z=g?.buttonWidth??null,U=cn({backgroundColor:A,contrast:D});Object.assign(k,{...!N&&{"--color-button-bg":A},...!N&&{"--color-button-text":U},...!N&&{"--color-button-border":"transparent"},...w&&{"--radius-button":`${Number(w)}px`},...Z&&{"--width-button":`${Number(Z)}rem`}});const z=c&&va(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(z)return G();if(x)return(0,Me.NS)()}},[n,z,r,x,G]),ie=(0,h.useCallback)(()=>{o(e)},[e,o]);if(r||z||x)return(0,s.jsx)("button",{"aria-label":C,className:S,onClick:ue,onKeyDown:Rh(ue),style:k,tabIndex:nl,type:"button",children:b});if(L){const ce=p?`/${p}`:"",Ne=`/lessons/${e}${ce}`,we=e===""?"#":Ne;return(0,s.jsx)(Mn,{"aria-label":C,className:S,onClick:ie,style:k,to:we,children:b})}else{const ce=E?e:Or(e),Ne=y?`mailto:${e}?subject=${d}`:ce,we=rn.isIphoneSafari?"_top":"_self",$e=y?we:"_blank",Fe=$e==="_blank",Ke=Fe?"noopener noreferrer":void 0,lt=v?.a11yNoticeLinkNewTab||"(opens in a new tab)",Xe=Fe?`${C} ${lt}`:C;return(0,s.jsx)("a",{"aria-label":Xe,className:S,href:Ne,rel:Ke,style:k,tabIndex:nl,target:$e,children:b})}},X2=t=>{const{animateBlockEntrance:e,editable:n,editBlock:o=()=>{},handleNavigate:r,isLearner:a,items:l=[],renderDescription:d=aS,settings:c}=t,{buttonAlignment:u=I.Ht,buttonColor:m,buttonShowDescription:p=!0,buttonStack:f,entranceAnimation:g,paddingBottom:v=3,paddingTop:C=3}=c,b=Qc(null,{"no-animation":!g,description:p==!0,center:u==="center",left:u==="left",right:u==="right",rounded:_2==="rounded"}),y={paddingTop:`${Number(C)*10}px`,paddingBottom:`${Number(v)*10}px`},x=(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:a,offset:100,children:l?.map(({id:L,description:E,...S})=>{const N=(0,s.jsx)(iS,{...S,color:m,editBlock:o,handleNavigate:r,isEditable:n}),A=p&&d({id:L,description:E});return(0,s.jsx)("section",{className:Qc("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:b.toString(),style:y,children:x}):(0,s.jsx)(Vt,{className:b.toString(),style:y,children:x})},lS=X2;class cS extends rS.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)(X2,{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=H()("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":_2==="rounded"}),m={buttonColor:r.buttonColor||this.props.color,buttonStyle:r.buttonStyle,buttonStack:!0,buttonShowDescription:d,buttonAlignment:c};return(0,s.jsx)(Vt,{className:u,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:n,children:o.map(p=>(0,s.jsx)(h.Fragment,{children:a(p,m)},p.id))})})}}var dS=i(5803),uS=i.n(dS);const hS=kn()("partner-content-block-card__"),mS=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)(Th,{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:hS("divider")})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(jh,{backgroundColor:e,block:!0,link:v,publishedAt:a,trackingInfo:C})})]})]})};var Zc=i(59288);const Yc=re("block-audio"),Ka=re("block-video"),Cu=re("block-embed"),Tn=re("block-attachment");class pS extends Zc.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=Yc("caption",{hidden:!n}).toString();return(0,s.jsx)(ms,{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=et()(0,["items",n,"items",p,"audioVideoPlayhead"],d),b=iu({lessonId:a,refs:`items:${n}/items:${p}`});return(0,s.jsxs)("div",{className:Yc("item"),children:[l&&(0,s.jsx)(L2,{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:b},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,isLastBlock:n,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:l}=a,d=Yc({"no-animation":!l}).toString(),c=r.length>0?r.slice(0,1):[],u=n?50:150;return(0,s.jsx)(Vt,{className:d,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:o,offset:u,children:(0,s.jsx)("div",{className:Yc("wrapper"),children:c.map(m=>this.renderItem(m))})})})}}const fS=a2(qt(pS));class gS extends Zc.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:b,subtitle:y}=e,x=v||e.src,L=et()(0,["items",n,"items",g,"audioVideoPlayhead"],l),E=(0,s.jsx)("div",{children:(0,s.jsx)(Ln,{alt:"Video Poster",className:Ka("poster"),src:b})}),S=(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:Ka("placeholder")})}),N=(0,s.jsx)("div",{children:(0,s.jsx)(P2,{audioVideoPlayhead:L,canAdjustPlaybackSpeed:r,canRestrictSeek:c.forwardSeekRestricted&&!o&&!l?.isComplete,captions:p,captionUID:f,id:C,labels:a,onLoad:this.onVideoLoad,poster:b,progressChanged:this.handleProgressChanged.bind(this,g),recordMediaPlayheadPosition:d,src:x,subtitle:y,type:v?"video":m},C)});return u?E:x?N:S}renderCaption({caption:e}){const{loaded:n}=this.state,o=Ka("caption",{visible:n}).toString();return(0,s.jsx)(ms,{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:b,media:y}=e,x="partnerContentId"in e?e.partnerContentId:void 0,L=f(y)??{},{customVideo:E={},tmp:S={},video:N={}}=L,A=Ta()("poster",N)?N:Mo()(N,E),k=Ta()("poster",S.video||{})&&S.video,{captionUID:M,captions:W,key:D,poster:w,src:Z,subtitle:U}=(0,Me.Hm)()?A:k||A,z=`${r}-${a}-${b}-${o}`,G={captionUID:M,captions:W,id:b,key:D,keyId:z,partnerContentId:x,poster:w,src:Z,subtitle:U},ue=es()(ot()("id",x),d)||{},ie=ue&&!Jt()(ue),ce=Ka("item",{small:C==="0",medium:C==="1",full:C==="2"});return(0,s.jsxs)("div",{className:ce,children:[(0,s.jsxs)("figure",{"data-l10n-id":y?.l10nId,children:[l&&this.renderVideo(G),g&&(0,s.jsx)("figcaption",{className:Ka("wrapper"),children:p(e)})]}),ie&&(0,s.jsx)(mS,{backgroundColor:v,blockId:a,courseId:n,partnerContent:ue,publishedAt:c,tenantId:m})]},b)}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=Ka({"no-animation":!a}).toString(),d=o.length>0?o.slice(0,1):[];return(0,s.jsx)(Vt,{className:l,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:n,offset:250,children:d.map(c=>this.renderItem(c))})})}}const J2=(0,jt.wZ)(qt(gS));class vS extends Zc.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=Cu("item",{border:f}).toString();return(0,s.jsx)(un,{className:g,disabled:!f&&p==to.TRANSPARENT,tag:"section",children:d&&(0,s.jsx)(N2,{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=mT(u)!=="link",p=Cu({"no-animation":!d}).toString(),f=Cu("wrapper",{medium:m&&c==="1",full:m&&c==="2"}),g=a.length>0?a.slice(0,1):[];return(0,s.jsx)(Vt,{className:p,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:r,offset:300,children:(0,s.jsx)("div",{className:f,children:g.map(v=>this.renderItem(v,n))})})})}}const CS=qt(Cc()(vS));class xS extends Zc.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)(Vt,{children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",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,Me.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=Tn({}).mix("brandHover").toString(),b=Tn("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:Tn("main"),children:[(0,s.jsx)("div",{className:Tn("icon"),id:`attachment-icon-${a}`,children:this.fileIcon(n)}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)(St,{className:Tn("title").toString(),id:`attachment-name-${a}`,value:o}),(0,s.jsx)("div",{className:Tn("size").toString(),children:uS()(r,{round:1})})]})]}),(0,s.jsx)("div",{className:Tn("rest"),children:(0,s.jsx)(T6,{className:"brandHover__target--fill"})})]})}renderNoFile(){const e=Tn({none:!0}).toString(),n=Tn("info");return(0,s.jsx)(un,{className:e,children:(0,s.jsxs)("div",{className:Tn("main"),children:[(0,s.jsx)("div",{className:Tn("icon"),children:(0,s.jsx)(P1,{"aria-label":"File"})}),(0,s.jsxs)("div",{className:n,children:[(0,s.jsx)("div",{className:Tn("title").toString(),children:"File Attachment Block"}),(0,s.jsx)("div",{className:Tn("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)(A6,{"aria-label":n?.a11yExcelIcon}):r.test(e)?(0,s.jsx)(I6,{"aria-label":n?.a11yPDFIcon}):a.test(e)?(0,s.jsx)(j6,{"aria-label":n?.a11yWordIcon}):l.test(e)?(0,s.jsx)(S6,{"aria-label":n?.a11yPPTIcon}):d.test(e)?(0,s.jsx)(N6,{"aria-label":n?.a11yRTFIcon}):c.test(e)?(0,s.jsx)(P6,{"aria-label":n?.a11yZipIcon}):(0,s.jsx)(P1,{"aria-label":n?.a11yFileIcon})}}const bS=Kl()({externalLinksDisabled:ts()(["course","externalLinksDisabled"])}),yS={showExternalLinksModal:()=>({type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0})};function ES(t){const e=(0,As.Ls)(bS,yS)(t),n=Cc()(e);return qt(n)}const LS=ES(xS),TS=re("continue-btn"),xu=({bgColor:t="brand",href:e,onClick:n,text:o})=>{const r=TS({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)(En,{value:o})}):(0,s.jsx)("button",{className:r,"data-continue-btn":"",onClick:n,type:"button",children:(0,s.jsx)(St,{value:o})})},q2=({bgType:t,text:e,iconType:n="locked"})=>{const o=H()("continue-hint",{"continue-hint--bg-transparent":t==="transparent"});return(0,s.jsxs)("div",{className:o,"data-continue-btn":"",children:[n==="locked"&&(0,s.jsx)(bt,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,s.jsx)("div",{className:"continue-hint__content",children:(0,s.jsx)(En,{value:e})})]})};function jS({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}=_e(),f=a[0],{buttonColor:g,id:v,title:C,type:b}=f,y=!b||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)(Vt,{children:(0,s.jsx)(Bt,{animateBlockEntrance:t,animateIn:"fadeIn",isLearner:o,offset:25,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:[y&&(0,s.jsx)(xu,{bgColor:g,onClick:L,text:C}),!y&&(0,s.jsx)(q2,{text:f.completeHint})]})})})})})}),(0,s.jsx)("div",{className:"abs-center-x visually-hidden-always","data-continue-sr":"",ref:u})]})}var ep=i(92536),IS=i(94054),_c=i.n(IS);const SS=re("flashcard");class NS 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:b,isHidden:y,labels:x,lessonId:L,prefersKeyboardNavigation:E,settingShowHint:S,size:N,type:A,wrapElement:k,wrapRole:M},state:{areSidesReady:W,flipped:D,isMounted:w}}=this,Z=p||D,U=SS({large:N==="large",small:N==="small",flipped:Z,stack:A==="stack"});return(0,s.jsxs)(k,{"aria-hidden":!l,className:U,onClick:n,onTouchEnd:r,ref:e,role:M,children:[(0,s.jsx)(un,{activeIndex:a,allowTabNavigation:l,blockId:m?.id,blockType:A,description:f,index:b,isActiveSide:!Z,isAriaHidden:Z&&w&&W,isFlipped:Z,isHidden:y,itemId:C,labels:x,lessonId:L,media:g,onFlip:n,onReady:o,prefersKeyboardNavigation:E,settingShowHint:S,side:"front",size:N,tag:sp,type:v}),(0,s.jsx)(un,{activeIndex:a,allowTabNavigation:l,blockId:m?.id,blockType:A,description:d,index:b,isActiveSide:Z,isAriaHidden:!Z&&w&&W,isFlipped:Z,isHidden:y,itemId:C,labels:x,lessonId:L,media:c,onFlip:n,onReady:o,prefersKeyboardNavigation:E,settingShowHint:S,side:"back",size:N,tag:PS,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}=ki(n,["block","card"]);if(o===this.props.id){let r=!1;n.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!P0(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(il(f)),this.props.onFlip?.(this.props.index,c)};handleTouchEnd=e=>{e.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const tp=(0,As.Ls)()(gc(qt(NS))),Ga=re("flashcard-side"),Xc=re("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,ep.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:b,prefersKeyboardNavigation:y,settingShowHint:x,side:L,size:E,style:S,type:N},refDescription:A,refDescriptionBottom:k,refSide:M,state:{isAtLongOverflowBottom:W,isLong:D,isLongOverflow:w,isTooltipVisible:Z,scrollbarWidthOffset:U}}=this,z=L==="front",G=L==="back",ue=E==="small",ie=E==="large",ce=N==="description",Ne=N==="fullimage",we=N==="image",$e=z?v?.a11yBlockFlashcardFront:v?.a11yBlockFlashcardBack,Fe=`items:${o?.id}/items:${u}/${z?"front":"back"}`,Ke=Ga({back:G,flipped:g,front:z,fullimage:Ne}).mix(r),{image:lt,audio:Xe}=l(m)??{},ye=Ga("content",{small:ue,large:ie,front:z,fullimage:Ne,image:we,"long-overflow":w,"long-overflow-bottom":W,"has-audio":!!Xe}),Re=Xc({"audio-expansion":d}),Ve=Xc("btn",{"visually-hidden":!x,"prefers-keyboard":y,round:!!d}),He=Xc("icon"),mt=Xc("tooltip",{visible:Z}),rt=Ga("img",{small:ue,large:ie,centered:we,full:Ne}),zt=Ga("description",{"has-audio":!!Xe,long:D&&!w,"long-overflow":w,short:!D,large:ie}),Ot=Ga("description-bottom"),Ft=U==null?void 0:{right:U},Ns=lt?.alt??`Image ${c+1}`,mn=(0,Yt.ME)(lt),ps=`${this.id}-click-to-flip-text`,tn=`${this.id}-image`,Wn=`${this.id}-description`;return(0,s.jsxs)("div",{"aria-label":$e,className:Ke,inert:f,ref:M,role:"group",style:S,tabIndex:-1,children:[(0,s.jsxs)("div",{className:ye,children:[(0,s.jsxs)("div",{className:Re,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:Ft,children:[(0,s.jsx)("button",{"aria-labelledby":`${ps} ${Wn} ${tn}`,className:Ve,id:`${u}-${c}-${L}-flip-btn`,onBlur:this.handleBtnBlur,onClick:b,onFocus:this.handleBtnFocus,tabIndex:n&&p?0:-1,type:"button",children:(0,s.jsx)(z6,{className:He})}),(0,s.jsx)("div",{"aria-hidden":"true",className:mt,id:ps,onClick:Na,children:v?.blocksClickToFlip})]}),(Ne||we)&&(0,s.jsx)(RS,{alt:Ns,className:rt,imageId:tn,l10nId:(0,Rt.pP)(m),url:mn}),ce&&(0,s.jsxs)("div",{className:zt,ref:A,tabIndex:p&&w?0:void 0,children:[(0,s.jsx)(St,{allowTabNavigation:n&&!f,id:Wn,value:a}),w&&(0,s.jsx)("div",{className:Ot,ref:k})]})]}),Xe&&(0,s.jsx)("div",{className:Ga("audio-player",{text:ce,image:we}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,s.jsx)(dn,{activeIndex:e,blockId:o.id,index:`${u}-${c}-${L}`,isOverlayAudio:Ne,item:{id:u,media:m},itemIndex:c,labels:v,lessonId:C,media:m,refs:Fe,renderMediaType:"audio",shouldPause:!p,side:L})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=_c()(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=>{an(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 AS=fc("rise-audio-release","hasAudioExpansion")(t=>(0,s.jsx)(Dr,{...t})),sp=(0,As.Ls)()(gc(qt(t=>(0,s.jsx)(AS,{...t})))),PS=t=>{const{backgroundType:e,cardMode:n,customBackgroundColorContrast:o}=Hs(),r=(0,Te.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===to.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 b=0;switch((0,it.XC)(c)){case it.lL.LIGHT:b=.5;break;case it.lL.MED:b=-.35;break;case it.lL.DARK:b=-.65;break;case it.lL.NEAR_BLACK:b=.1;break}g=(0,it.W8)(b,c)}}const v={"--color-background":g},C=e===I.xj.COLOR?o:u;if((e===I.xj.ACCENT||e===I.xj.COLOR)&&n===to.TRANSPARENT&&m){const b=cn({backgroundColor:g,contrast:C});v["--color-text"]=b}return v},[c,e,n,o,m,d,u]),f={...t,style:p};return(0,s.jsx)(sp,{...f})},RS=({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)(Ln,{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 MS 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:b}=p,y=H()("block-flashcards",{"block-flashcard--column":!f,"block-flashcard--stack":f,"block-flashcards--no-animation":!C}),x=a.length>2?"small":"large",L=u===Qe.o4.MOBILE_PORTRAIT||u===Qe.o4.MOBILE_LANDSCAPE;return(0,s.jsx)(Vt,{className:y,children:f?(0,s.jsx)(Bt,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r,offset:400,children:(0,s.jsx)("div",{className:"block-flashcard-carousel",children:(0,s.jsx)(Vc,{blockId:e,items:a,children:({carouselRef:E})=>(0,s.jsx)(zc,{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)(tp,{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:b,size:"large",type:"stack",wrapElement:"div"},S?.id))})})})}):(0,s.jsx)(Bt,{animateBlockEntrance:n,animateIn:"fadeIn",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)(tp,{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:b,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&&!t9(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(il(u)),this.setState({activeIndex:e})}}const np=(0,As.Ls)()(Uc(qt(gc(MS))));var kS=i(55328),op=i.n(kS),OS=i(43358),wS=i.n(OS);const rp=({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=H()("quiz-card__actions",{"quiz-card__actions--proceed":t}),b=H()("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:b,onClick:p,ref:g,tabIndex:f,type:"button",children:r})})]})},DS=({children:t,isActive:e,isComplete:n,isTimedQuiz:o,style:r})=>(0,s.jsx)("div",{"aria-hidden":e?void 0:!0,className:BS({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})})})}),BS=({isActive:t,isComplete:e,isTimedQuiz:n})=>H()("quiz-card",{"quiz-card--active":t,"quiz-card--done":e,"quiz-card--timed":n}),ap=DS;var bu=i(20387),Et=i(17862);const{FILL_IN_THE_BLANK:ip,MATCHING:HS,MULTIPLE_CHOICE:zS,MULTIPLE_RESPONSE:FS}=Et.Ay;function US({answers:t},e){return t.map(n=>e(n?.title)).filter(Boolean).join(", ")}function VS({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 WS({answers:t,selection:e},n){return n(t?.[e]?.title)}function lp(t,e,n){return e.filter(t).reduce((o,r,a)=>{const l=n(r?.title)??"";return a===0?l:o+", "+l},"")}function $S({corrects:t,answers:e},n){return lp(r=>Array.isArray(t)?t.includes?.(r.id):r.correct,e,n)}function KS({answers:t,selection:e},n){return lp((r,a)=>e.includes(a),t,n)}function GS({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 yu({correctAnswer:t,selectedAnswer:e,correctLabel:n,userLabel:o,revealAnswers:r}){return!t||!e||r===Et.iV.NONE?"":r===Et.iV.INCORRECT?o+": "+(0,_n.QZ)(e)+".":n+": "+(0,_n.QZ)(t)+". "+o+": "+(0,_n.QZ)(e)+"."}function QS({item:t,labels:e}){return t.type===ip?e?.quizAcceptableResponses:e?.a11yCorrectLive}function ZS({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=QS({item:n,labels:r}),m=r?.a11yAnswerLive;switch(n.type){case HS:return GS({getL10nValue:t,answers:l,selection:o,correctLabel:u,userLabel:m,revealAnswers:a});case ip:return yu({correctAnswer:US({answers:l},t),selectedAnswer:o,correctLabel:u,userLabel:m,revealAnswers:a});case zS:return yu({correctAnswer:VS({answers:l,correct:d},t),selectedAnswer:WS({answers:l,selection:o},t),correctLabel:u,userLabel:m,revealAnswers:a});case FS:return yu({correctAnswer:$S({corrects:c,answers:l},t),selectedAnswer:KS({answers:l,selection:o},t),correctLabel:u,userLabel:m,revealAnswers:a})}return null}const cp=({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}=_e(),v=(0,_t.A)(t),C=(0,xt.gY)(),y=!!(0,xt.QQ)(n),x=a?c:u,L=(0,h.useCallback)(()=>{const N=ZS({getL10nValue:C,isComplete:r,item:l,labels:d,revealAnswers:m,selection:p}),A=n?(0,_n.QZ)(C(n)):"",k=x+". "+N+" "+A;let M;return k&&(M=setTimeout(()=>{f(k)},250)),()=>{clearTimeout(M)}},[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=H()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":y}),S=H()("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)(St,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:n})})]})})})})},{FILL_IN_THE_BLANK:YS}=Et.Ay,_S=({children:t,type:e})=>(0,s.jsx)("div",{className:XS({type:e}),children:t}),XS=({type:t})=>H()("quiz-card__interactive",{"quiz-card__interactive--no-border":[YS].includes(t)}),dp=_S;var JS=i(87839),qS=i.n(JS),eN=i(37022),tN=i.n(eN),sN=i(59565),nN=i.n(sN),oN=i(65828),rN=i.n(oN);const aN=gn()((t,e)=>ru()(nN()(null),rN()(t,e)));var iN=i(45013),up=i.n(iN),lN=i(77061),cN=i.n(lN),dN=i(24799),uN=i.n(dN),hN=i(86697),mN=i.n(hN),pN=i(9325),hp=i.n(pN);const Eu=hp()(uN()),Br=hp()(cN()),mp=Q0()(up()(Br),up()(mN())),fG=t=>t.toLowerCase(),fN=({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})}),gN=ru()(tN()(["tmp"]),et()({},["media"])),vN=qS()(gN,mp),CN=Q0()(vN,mp),pp=aN(CN,fN),xN=(t,e)=>{const n=Ms(),o=(0,ut.A)(e);(0,h.useEffect)(()=>{!o&&e&&t&&Gi()(t.focus)&&t.focus({preventScroll:n})},[e,n,o,t])},CG=_o()((t,e,n)=>n>=t&&n<e),fp=t=>t<10?`0${t}`:String(t),bN=t=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(t),gp=t=>t.reduce((e,n)=>isNaN(n)||n==null?e:e+n,0),yN=({isActive:t,labels:e,num:n,quizQuestion:o,total:r})=>{const a=(0,h.useRef)();return xN(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:`${fp(n)}/${fp(r)}`})]})})},EN=({allowTabNavigation:t,id:e,value:n})=>(0,s.jsx)(St,{allowTabNavigation:t,className:"quiz-card__title",id:e,value:n}),Jc={ANY:"ANY",CORRECT_INCORRECT:"CORRECT_INCORRECT",CHOICE:"CHOICE"},vp={label:"Any Response",prop:"feedback"},LN={label:"By Choice",prop:"choice"},TN={correctProp:"feedbackCorrect",incorrectProp:"feedbackIncorrect",label:"Correct / Incorrect",type:"CORRECT_INCORRECT"},yG=Ps()([[us()(Jc.ANY),Nt()(vp)],[us()(Jc.CHOICE),Nt()(LN)],[us()(Jc.CORRECT_INCORRECT),Nt()(TN)],[wo(),Nt()(vp)]]),Cp=Jc,jN=({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:b})=>{const y=(0,h.useRef)(void 0),[x]=(0,h.useState)(()=>Ge()("fitb-")),L=(0,xt.gY)(),E=IN({options:p,getL10nValue:L}),S=`${x}-feedback`,N=`${x}-acceptable`,A=`${x}-input`,k=l?`${S} ${N}`:o||void 0,M=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,z=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=H()("quiz-fill__icon",{"quiz-fill__icon--visible":l}),ie=H()("quiz-fill__options",{"quiz-fill__options--visible":l}),ce=(0,h.useCallback)(Fe=>{m(Fe.currentTarget.value)},[m]),Ne=(0,h.useCallback)(Fe=>{jr(Fe)&&u(Fe)},[u]),we=l?void 0:ce,$e=l?void 0:Ne;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:we,onKeyDown:$e,placeholder:M,readOnly:l,ref:y,tabIndex:W,type:"text",value:b}),D&&(0,s.jsxs)("div",{className:ue,id:S,children:[d&&(0,s.jsx)(bt,{"aria-label":c?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...z}}),!d&&(0,s.jsx)(W6,{"aria-label":c?.quizIncorrect,style:G})]})]}),w&&l&&(0,s.jsx)("div",{className:ie,id:N,children:(0,s.jsx)(St,{value:`${g}: ${E}`})})]})},IN=({options:t,getL10nValue:e})=>t.map(o=>ha()(e(o.title)??"")).join(", "),xp=jN;function SN({correctAnswerColor:t,correctAnswerColorContrast:e}){const n=(0,Te.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)(bt,{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 Qa=i(59288);function NN({correctAnswerValue:t,incorrectAnswerColor:e,incorrectAnswerColorContrast:n,shouldRevealCorrectAnswer:o}){const[r,a]=Qa.useState(!0),[l,d]=Qa.useState(!1),c=Qa.useRef(null),m=`matching-text-${Qa.useId()}`,p=(0,Te.vU)(),f=(0,_t.A)(t),g=Qa.useCallback(()=>{a(E=>!E)},[]);Qa.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,b=H()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),y=H()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),x=H()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),L=H()("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)(bt,{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:b,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)(bt,{className:y,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)(En,{value:t})]})})]})})]})}function AN({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)(En,{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)(En,{value:o})})})]})]}),g&&p&&(0,s.jsx)(SN,{correctAnswerColor:r,correctAnswerColorContrast:a}),g&&!p&&(0,s.jsx)(NN,{correctAnswerValue:l,incorrectAnswerColor:c,incorrectAnswerColorContrast:u,shouldRevealCorrectAnswer:f})]})}function PN({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)(AN,{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 RN=i(63310),Lu=i.n(RN);Lu().dynamicDrop(!0),Lu().pointerMoveTolerance(8);const vo=Lu();var Za=i(59288);function MN(t,{onStart:e,onMove:n,onEnd:o,isEnabled:r=!0}){const a=Za.useRef({x:0,y:0}),l=Za.useRef({x:0,y:0}),d=Za.useRef(!1),c=Za.useRef(null),u=Za.useRef(void 0);Za.useEffect(()=>{const m=t.current;if(!m||!r||d.current)return;c.current=F4(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 bp=i(59288);function kN(t,{isEnabled:e=!0,onDrop:n,onEnter:o,onLeave:r,overlap:a=.015}){const l=bp.useRef(!1);bp.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 yp=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:b,valueOtherColumnActive:y,valueOtherColumnMatch:x}){const[L,E]=zn.useState(!1),S=zn.useRef(null),N=zn.useRef(null),A=(0,Te.vU)(),k=zn.useCallback(()=>{u({col:e,id:o,value:b})},[e,o,u,b]),M=zn.useCallback(()=>{E(!0),p({col:e,id:o,value:b})},[e,o,p,b]),W=zn.useCallback(()=>{m(),E(!1)},[m]),D=zn.useCallback(()=>{f({col:e,id:o,value:b})},[e,o,f,b]),w=zn.useCallback(()=>{g({col:e,id:o,value:b})},[e,o,g,b]),Z=zn.useCallback(()=>{v()},[v]),U=zn.useCallback(ce=>{C(ce,{col:e,index:r})},[e,r,C]);zn.useEffect(()=>{e===1&&r===0||N.current?.setAttribute("tabindex","-1")},[]),MN(S,{isEnabled:!l,onStart:M,onEnd:W}),kN(S,{isEnabled:l,onDrop:D,onEnter:w,onLeave:Z});const z=H()("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)(En,{value:x})]}),ue=y==null?(0,s.jsx)(s.Fragment,{children:A?.a11yMatchingItemSelectableItem}):(0,s.jsxs)(s.Fragment,{children:[A?.a11yMatchingItemMatchWith," ",(0,s.jsx)(En,{value:y})]}),ie=H()("matching-interaction-item",{draggable:!l,"draggable--dragging":!l&&L,droppable:l});return(0,s.jsx)("li",{className:ie,ref:S,role:"listitem",children:(0,s.jsxs)("button",{"aria-pressed":a||d?!0:void 0,className:z,"data-state":a?"active":void 0,onClick:L?void 0:k,onKeyDown:U,ref:N,style:n?{height:n}:void 0,type:"button",children:[l?(0,s.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,s.jsx)(bt,{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)(En,{value:b})})}),(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 ON({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,Te.vU)(),[v,C]=Gt.useState(void 0),[b,y]=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),M=Gt.useRef(void 0),W=Gt.useRef(void 0),[D,w]=Gt.useState(()=>qc({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),[Z,U]=Gt.useState(()=>qc({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})),z=Gt.useMemo(()=>t.map(Re=>({col:1,id:Re.id,value:Re.title})).toSorted((Re,Ve)=>{const He=D.get(Re.id)??1/0,mt=D.get(Ve.id)??1/0;return He-mt}),[t,D]),G=Gt.useMemo(()=>t.map(Re=>({col:2,id:Re.id,value:Re.matchTitle})).toSorted((Re,Ve)=>{const He=Z.get(Re.id)??1/0,mt=Z.get(Ve.id)??1/0;return He-mt}),[t,Z]),ue=Gt.useCallback(()=>{for(const ye of N.current?.querySelectorAll('button:not([tabindex="-1"])')??[])ye.setAttribute("tabindex","-1")},[]),ie=Gt.useCallback(ye=>{const Re=Array.from(D),Ve=Array.from(Z);if(e==="freezeSecond"){const He=new Array(Ve.length),mt=Re.map(Ot=>Ot[0]).filter(Ot=>!(Ot in ye));for(const[Ot,Ft]of Object.entries(ye)){const Ns=Z.get(Ft);He[Ns]=[Ot,Ns]}for(let Ot=0;Ot<He.length;Ot++)if(He[Ot]==null){const Ft=mt.shift();He[Ot]=[Ft,Ot]}const rt=new Map(He),zt=Ep(D,rt);zt.length>0&&y(zt),w(rt)}else{const He=new Array(Re.length),mt=new Set(Object.values(ye)),rt=Ve.map(Ft=>Ft[0]).filter(Ft=>!mt.has(Ft));for(const[Ft,Ns]of Object.entries(ye)){const mn=D.get(Ft);He[mn]=[Ns,mn]}for(let Ft=0;Ft<He.length;Ft++)if(He[Ft]==null){const Ns=rt.shift();He[Ft]=[Ns,Ft]}const zt=new Map(He),Ot=Ep(Z,zt);Ot.length>0&&L(Ot),U(zt)}},[e,D,Z]),ce=Gt.useCallback(ye=>{M.current=ye},[]),Ne=Gt.useCallback(()=>{W.current==null&&(M.current=void 0)},[]),we=Gt.useCallback(ye=>{W.current=ye},[]),$e=Gt.useCallback(()=>{W.current=void 0},[]),Fe=Gt.useCallback(ye=>{if(M.current!=null){const Ve=structuredClone(r),He=ye.col===1?ye.id:M.current.id,mt=ye.col===1?M.current.id:ye.id;if(He in r&&delete Ve[He],Object.values(Ve).includes(mt)){for(const rt in Ve)if(Ve[rt]===mt){delete Ve[rt];break}}Ve[He]=mt,M.current=void 0,W.current=void 0,a(Ve)}},[r,a]),Ke=Gt.useCallback(ye=>{const Re=structuredClone(r);let Ve=!1,He=!1,mt=v;if(ye.col===1&&ye.id in r)delete Re[ye.id],Ve=!0,mt=null;else if(ye.col===2&&Object.values(Re).includes(ye.id)){for(const rt in Re)if(Re[rt]===ye.id){delete Re[rt],Ve=!0,mt=null;break}}else v==null&&(mt={col:ye.col,id:ye.id,value:ye.value},He=!0);if(v!=null)if(v.col===ye.col)v.id===ye.id?mt=null:mt={col:ye.col,id:ye.id,value:ye.value};else{const rt=ye.col===1?ye.id:v.id,zt=ye.col===1?v.id:ye.id;rt in r&&delete Re[rt],Re[rt]=zt,Ve=!0,He=!0,mt=null}if(Ve&&a(Re),v!==mt&&C(mt),He){const zt=(ye.col===1?k:A).current?.querySelector('button:not([aria-pressed="true"])');zt&&(ue(),zt.removeAttribute("tabindex"),zt.focus({preventScroll:!c}))}},[c,v,r,a,ue]),lt=Gt.useCallback((ye,{col:Re,index:Ve})=>{const He=ye.currentTarget;let mt=!1,rt=null;switch(ye.key){case"ArrowUp":mt=!0,rt=He.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":mt=!0,rt=He.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":mt=!0,rt=Re===1?k.current?.children[Ve]?.firstElementChild:void 0;break;case"ArrowLeft":mt=!0,rt=Re===2?A.current?.children[Ve]?.firstElementChild:void 0;break;case"Home":mt=!0,rt=He.closest("ul").firstElementChild.firstElementChild;break;case"End":mt=!0,rt=He.closest("ul").lastElementChild.firstElementChild;break}mt&&(ye.preventDefault(),ye.stopPropagation()),rt&&(ue(),rt.removeAttribute("tabindex"),rt.focus())},[ue]);Gt.useEffect(()=>{r!==f&&Object.keys(r).length>0&&ie(r)},[ie,r,f]),Gt.useEffect(()=>{const ye=({shouldFocus:He})=>{const mt=v.col===1?A:k;ue();const rt=mt.current.querySelector('button[data-state="active"]');rt?.removeAttribute("tabindex"),He&&rt?.focus(),C(null)},Re=He=>{N.current?.contains(He.target)||ye({shouldFocus:!1})},Ve=He=>{an(He)&&v!=null&&ye({shouldFocus:!0})};return v==null?(document.removeEventListener("mousedown",Re),document.removeEventListener("keydown",Ve)):(document.addEventListener("mousedown",Re),document.addEventListener("keydown",Ve)),()=>{document.removeEventListener("mousedown",Re),document.removeEventListener("keydown",Ve)}},[v,ue]);const Xe=Gt.useCallback(()=>{const ye=Array.from(N.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]"));if(ye.length===0)return;const Re=ye[0].closest("button");let Ve=0,He;if(Re){const rt=window.getComputedStyle(Re),zt=parseFloat(rt.paddingBlockStart)+parseFloat(rt.paddingBlockEnd),Ot=parseFloat(rt.borderTopWidth)+parseFloat(rt.borderBottomWidth);Ve=zt+Ot,He=parseFloat(rt.minHeight)}const mt=ye.reduce((rt,zt)=>Math.max(rt,zt.scrollHeight+Ve),0);He&&He>=mt?l(void 0):l(mt)},[l]);return Gt.useEffect(()=>{(!u&&n||p!==t)&&Xe()},[u,n,t,p,Xe]),Gt.useEffect(()=>{const ye=N.current?.closest(".quiz-card");let Re;return ye!=null&&(Re=new ResizeObserver(()=>{Xe()}),Re.observe(ye)),()=>{ye!=null&&Re!=null&&Re.unobserve(ye)}},[Xe]),Gt.useEffect(()=>{let ye,Re;return b&&(ye=setTimeout(()=>{y(void 0)},1e3)),x&&(Re=setTimeout(()=>{L(void 0)},1e3)),()=>{clearTimeout(ye),clearTimeout(Re)}},[b,x]),Gt.useEffect(()=>{E&&m!==e&&(a({}),ie({}),C(void 0),w(qc({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),U(qc({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})))},[E,e,m,t,a,ie]),Gt.useEffect(()=>{if(z.length<=0)return;const ye=z.map((Re,Ve)=>[Re,G[Ve]]);d(ye)},[z,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:z.map((ye,Re)=>{const Ve=ye.id in r;return(0,s.jsx)(yp,{col:1,height:o,id:ye.id,index:Re,isActive:v?.col===1&&v?.id===ye.id,isFrozen:e==="freezeFirst",isMatched:Ve,isMoved:b?.map(He=>He.id).includes(ye.id),onClick:Ke,onDragEnd:Ne,onDragStart:ce,onDrop:Fe,onDropZoneEnter:we,onDropZoneLeave:$e,onKeyDown:lt,value:ye.value,valueOtherColumnActive:v?.col===2?v?.value:void 0,valueOtherColumnMatch:Ve?G[Re]?.value:void 0},ye.id)})}),(0,s.jsx)("ul",{"aria-label":g?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2",ref:k,role:"list",children:G.map((ye,Re)=>{const Ve=ye.id in r;return(0,s.jsx)(yp,{col:2,height:o,id:ye.id,index:Re,isActive:v?.col===2&&v?.id===ye.id,isFrozen:e==="freezeSecond",isMatched:Object.values(r).includes(ye.id),isMoved:x?.map(He=>He.id).includes(ye.id),onClick:Ke,onDragEnd:Ne,onDragStart:ce,onDrop:Fe,onDropZoneEnter:we,onDropZoneLeave:$e,onKeyDown:lt,value:ye.value,valueOtherColumnActive:v?.col===1?v?.value:void 0,valueOtherColumnMatch:Ve?z[Re]?.value:void 0},ye.id)})})]})}const qc=({answers:t,columnBehavior:e,columnBehaviorToShuffle:n})=>{let o=t.map(r=>r.id);return e===n&&(o=(0,ep.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function Ep(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 ed=i(59288);function Lp({columnBehavior:t="freezeSecond",...e}){const[n,o]=ed.useState([]),[r,a]=ed.useState(void 0),l=ed.useCallback(c=>{o(c)},[]),d=ed.useCallback(c=>{a(c)},[]);return e.isComplete?(0,s.jsx)(PN,{...e,columnBehavior:t,itemHeight:r,rows:n}):(0,s.jsx)(ON,{...e,columnBehavior:t,itemHeight:r,onChangeItemHeight:d,onChangeRows:l})}const wN=({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)(Fc,{"aria-invalid":o?!0:void 0,"aria-labelledby":[p,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:m.map((C,b,y)=>(0,s.jsx)(DN,{allowTabNavigation:t,color:e,id:C.id,index:b,isComplete:r,isCorrect:a,isCorrectOption:n===C.id,isFirst:b===0,isFresh:v===-1||v===null||v===void 0,isLast:b===y.length-1,isReduceMotion:l,isSelected:v===b,labels:d,onChange:c,onEnterToSubmit:u,questionHtmlId:p,renderOptionText:f,revealAnswers:g,title:C.title},C.id))}),DN=({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:b})=>{const[y]=(0,h.useState)(()=>Ge()("qmc-")),x=(0,h.useRef)(void 0),L=(0,ut.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,M=N||A&&a||A&&!a&&c,W=r&&l&&k,D=r&&!l&&M,w=W||D,Z=w?`${y}-result`:void 0,U=H()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":W,"is-incorrect":D,"is-selected":c}),z=H()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":c&&!r}),G=H()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":W}),ue=H()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":D}),ie=H()("quiz-multiple-choice-option__border"),ce=(0,h.useCallback)($e=>{jr($e)&&f($e)},[f]),Ne=(0,h.useCallback)(()=>{p({selectedIndex:o})},[o,p]),we=r?void 0:ce;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:U,ref:x,children:[(0,s.jsx)("input",{className:"quiz-multiple-choice-option__input",disabled:E,name:g,onClick:r?void 0:Ne,onKeyDown:we,tabIndex:S,type:"radio"}),(0,s.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:e},children:[(0,s.jsx)(N1,{className:z,dataTestId:c&&!r?"selected-dot-active":"selected-dot"}),(0,s.jsx)(S1,{className:G,"data-test-id":W?"correct-check-active":"correct-check"}),(0,s.jsx)(A1,{"aria-hidden":"true",className:ue,dataTestId:D?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,s.jsx)("div",{className:ie}),(0,s.jsx)("div",{className:"quiz-multiple-choice-option__text","data-test-id":"quiz-mc-option-text",children:v({optionId:n,title:b})})]}),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]})]})},Tp=wN,BN=({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)(HN,{allowTabNavigation:t,errorMessageId:n,id:g.id,index:v,isComplete:o,isCorrect:r,isCorrectOption:bn()(g.id,e),isSelected:bn()(v,f),labels:a,onChange:l,onEnterToSubmit:d,renderOptionText:m,revealAnswers:p,title:g.title},g.id))})}),HN=({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)(()=>Ge()("qmr-")),C=r&&f===Et.iV.ALL,b=C?`${v}-result`:void 0,y=!!r,x=t?0:xc,L=f===Et.iV.ALL,E=f==Et.iV.INCORRECT,S=L||E&&a||E&&!a&&d,N=H()("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=H()("quiz-multiple-response-option__border"),k=(0,h.useCallback)(D=>{jr(D)&&m(D)},[m]),M=(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":b,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:y,onChange:r?void 0:M,onKeyDown:W,tabIndex:x,type:"checkbox"}),(0,s.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,s.jsx)(S1,{className:"quiz-multiple-response-option__check"}),(0,s.jsx)(A1,{"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:b,children:[d&&l&&c?.a11yQuizReviewCorrectlyChecked,d&&!l&&c?.a11yQuizReviewIncorrectlyChecked,!d&&l&&c?.a11yQuizReviewIncorrectlyUnchecked,!d&&!l&&c?.a11yQuizReviewCorrectlyUnchecked]})]})},jp=BN;var zN=i(1034),Ip=i.n(zN),FN=i(55414),so=i.n(FN),UN=i(77504),td=i.n(UN);const Sp=Ip()(so()),VN=nt()(ot()("correct",!0)),WN=ke()(Yo()(us()(-1),Nt()(0)),xs()(ot()("correct",!0))),EG=t=>compose(contains(t),sd),$N=({answers:t,fillInValue:e,isCaseSensitive:n,getL10nValue:o})=>{const r=n?ha():ke()(ha(),Gc()),a=t.map(l=>r(o(l.title)??""));return bn()(r(e),a)},KN=({answers:t,selectedIndices:e})=>us()(td()(Sp,e),ke()(td()(Sp),Ds()(ke()(Vi()(xs())(t),ot()("id"))),sd)(t)),GN=t=>({MATCHING:so(),FILL_IN_THE_BLANK:Tu,MULTIPLE_CHOICE:so(),MULTIPLE_RESPONSE:so()})[t],sd=ke()(da()("id"),VN),QN=ke()(ht(),sd),Tu=nt()(ot()("correct",!0)),ZN=ke()(tt()("id"),ht()),LG={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,s.jsx)(O6,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,s.jsx)(w6,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,s.jsx)(zd,{})},MATCHING:{label:"Matching",icon:(0,s.jsx)(k6,{})}};var TG=i(52988),YN=i(84136),Np=i.n(YN),_N=i(77170),Co=i.n(_N),XN=i(97223),JN=i.n(XN),jG=i(13219);const qN=(t,e,n=[])=>{const o=find(propEq("id",t),e),{parentId:r}=o||{},a=o?[o,...n]:n;return r?qN(r,e,a):a},ju="owner",Ap="manager",Pp="editor",Rp=["viewer",Pp,Ap,ju],Iu=({effectiveRole:t,requiredRole:e})=>{const n=indexOf(t,Rp),o=indexOf(e,Rp);return n>=o},eA=t=>({editor:Iu({effectiveRole:t,requiredRole:Pp}),manager:Iu({effectiveRole:t,requiredRole:Ap}),owner:Iu({effectiveRole:t,requiredRole:ju})}),SG=(t,e,n)=>{const{authorId:o}=t,r=o===n,a=d=>r||d,l=tA(e);return pipe(omit(["canChangePermissions","canMoveTo"]),evolve({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(l)},tA=t=>{const{effectiveRole:e,type:n}=t||[],o=n!==FOLDER_TYPE_TEAM?ju:e,{editor:r,manager:a,owner:l}=eA(o);return{canChangePermissions:a,canCreate:r,canDelete:l,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:l}},sA={[Et.Ay.FILL_IN_THE_BLANK]:"fillin",[Et.Ay.MATCHING]:"matching",[Et.Ay.MULTIPLE_CHOICE]:"multiple choice",[Et.Ay.MULTIPLE_RESPONSE]:"multiple response"},Ya="personal",Mp="team",NG=500,AG={id:null,deleted:!1,type:Ya},PG={id:"deleted",deleted:!0,type:Ya},kp=({drawCount:t,questions:e,drawnQuestions:n=[]})=>{if(n.length===t)return null;const o=r=>r[Math.floor(Math.random()*r.length)];return ke()(Bc()("index",r=>xs()(ot()("id",r.id),e)),o,vc()(Np()(Vi()(bn())(n),"id")))(e)},nA=t=>e=>e.type===Ya||hasSufficientRole({effectiveRole:e.effectiveRole,requiredRole:t}),oA=({folders:t,requiredRole:e,teamAccount:n})=>pipeWith(t,values,flatten,filter(o=>nA(e)&&(n||o.type===Ya))),RG=({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=oA({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}},Op=(t,e,n=!1)=>pipeWith(e,ifElse(always(!isNil(t)),prop(t),pipe(values,flatten)),reject(propEq("deleted",!n))),rA=(t,e,n,o=!1)=>{const r=t===Mp,a=t===Ya,l=pipeWith(Op(Mp,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]])))},aA=({type:t})=>t===Ya,wp=({effectiveRole:t})=>hasSufficientRole({effectiveRole:t,requiredRole:FOLDER_ROLE_EDITOR}),iA=(t,e)=>({id:n})=>n?compose(any(identity),map(allPass([propEq("folderId",n),propEq("authorId",t)])))(e):!1,lA=(t,e,n,o)=>pipeWith(Op(e,t),filter(anyPass([aA,wp,iA(o,n)]))),cA=(t,e)=>n=>{if(isNil(n.folderId))return!0;const o=find(propEq("id",n.folderId),t);if(!o)return!1;const r=wp(o),a=n.authorId===e;return r||a},dA=(t,e,n,o,r)=>pipeWith(rA(t,e,n),filter(cA(o,r))),MG=(t,e,n,o)=>{const r=lA(t,n,e,o),a=dA(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:uA,CHOICE:hA,CORRECT_INCORRECT:mA}=Cp,pA={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},fA=et()(null,[0,"type"]),Su=Ms();class Dp extends $().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-${$c()()}`},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=Ge()("kc-")}componentDidUpdate(e,n){n.answered&&!this.state.answered?this.getType()!==Hr&&D0(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)?wS()([e]):op()(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:[]},()=>{!Su&&this.getType()===Hr&&D0(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)(ms,{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:b}=c,{id:y,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,y,N,A,e),M=this.getFeedback({item:e,isCorrect:S,selectedAnswer:a}),W=this.getSelection({item:e}),{columnBehavior:D,correctAnswerColor:w,correctAnswerColorContrast:Z,incorrectAnswerColor:U,incorrectAnswerColorContrast:z}=p,G=S?w:U,ue=c.knowledgeCheckCorrectAnswerRequiredBlock,ie=c.knowledgeCheckRetriesAttemptsRemaining,ce=c.knowledgeCheckMaxRetriesReached,Ne=u?.items?.[l]?.items?.[y]?.retryAttemptCount??0,we=p?.retryCount!==0&&(p?.retryCount==null||p?.retryCount===-1||Ne<p?.retryCount),$e=p?.retryCount!=null||p?.retryCount===-1?p?.retryCount-Ne:-1,Fe=!S,Ke={"--color-feedback-icon":G,"--color-matching-feedback-bubble-bg":U,"--color-multiple-choice-complete-border":U,"--color-multiple-choice-correct-border":w,"--color-multiple-response-correct-border":w,"--color-multiple-response-incorrect-border":U,"--color-multiple-response-option-check":n?w:void 0,"--color-quiz-option-check":w,"--color-x-fill":U},Xe=p?.revealCorrectAnswers!==!1&&(p.retryCount==null||p.retryCount===-1||!we)?Et.iV.ALL:Et.iV.INCORRECT,ye=H()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":n,"block-knowledge__retake-container--active-attempts-left":n&&!r&&$e>0}),Re=H()("block-knowledge__retake",{"block-knowledge__retake--active":n&&!r&&we}),Ve=H()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":n&&!r&&we&&$e>0}),He=H()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":n&&!r&&!we});return(0,s.jsxs)(ap,{isActive:!0,style:Ke,children:[p?.requireCorrectAnswer&&(n&&!S||!n)&&(0,s.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,s.jsx)(bt,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),ue]}),m(e),(0,s.jsx)(pp,{blockId:l,enableVideoPlaybackSpeed:d,labels:c,media:E,settings:L}),(0,s.jsx)(dp,{type:x,children:this.renderType({columnBehavior:D,correctAnswerColor:w,correctAnswerColorContrast:Z,incorrectAnswerColor:U,incorrectAnswerColorContrast:z,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)(bt,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:v})]})}),(0,s.jsx)(rp,{canProceed:n,canSubmit:N,isReduceMotion:Su,onSubmit:k,quizSubmit:C}),(0,s.jsx)(cp,{canProceed:this.state.forceShowFeedback||n,feedbackValue:M,isActive:n,isComplete:n,isCorrect:S,item:e,labels:c,quizCorrect:f,quizIncorrect:g,revealAnswers:Xe,selection:W}),(0,s.jsxs)("div",{"aria-hidden":!n,className:ye,children:[Fe&&(0,s.jsxs)(s.Fragment,{children:[we?(0,s.jsx)(po.ArcButton,{className:Re,icon:(0,s.jsx)(bt,{name:"arrow-rotate-left"}),onClick:this.handleRetake.bind(this,e),ref:this.takeAgainRef,size:"md",tabIndex:n?void 0:-1,text:b,variant:"secondary"}):null,$e>0&&(0,s.jsxs)("div",{className:Ve,children:[ie," ",$e]})]}),!we&&!S&&(0,s.jsx)("div",{className:He,children:ce})]})]},y)}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 $N({answers:Tu(d),fillInValue:n,isCaseSensitive:c,getL10nValue:this.props.getL10nValue});case pl:return Object.entries(o).every(([u,m])=>u===m);case gl:return KN({answers:d,selectedIndices:a});case fl:default:return r===WN(d)}}getType(){const{items:e}=this.props;return fA(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 Ls()(Jt()(r))&&Ls()(o);case pl:return Object.keys(a).length===n.length;case gl:return Ls()(Jt()(d))&&Ls()(o);case fl:default:return Ls()(Js()(l))&&Ls()(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 hA:return et()("",[o,"feedback"],c);case mA:return this.state.forceShowFeedbackCorrect??n?a:l;case uA:default:return r}}getTypeLabel(){const{labels:e}=this.props,n=this.getType(),o=pA[n];return o?e?.[o]:e?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(e,{title:n}){return(0,s.jsx)(ms,{className:"cursorAuto",value:n})}renderMultipleChoiceOptionText(e,{title:n}){return(0,s.jsx)(ms,{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:b}=this.props,{answered:y,fillInValue:x,matches:L,selectedAnswer:E,selectedIndices:S,questionHtmlId:N}=this.state,{id:A,type:k}=d,M="answers"in d?d.answers:[],{quizAcceptableResponses:W,quizAnswerPlaceholder:D}=m,w=C?.items?.[b]?.items?.[A]?.retryAttemptCount??0,Z=v?.retryCount!==0&&(v?.retryCount==null||v?.retryCount===-1||w<v?.retryCount),z=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)(xp,{allowTabNavigation:!0,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:G,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:y,isCorrect:l,labels:m,onChange:this.handleFillIn,onEnterToSubmit:c,options:Tu(M),questionHtmlId:N,quizAcceptableResponses:W,quizAnswerPlaceholder:D,revealAnswers:z,value:x});case pl:return(0,s.jsx)(Lp,{answers:GN(k)(M),columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!u,isComplete:y,matches:L,onChange:this.handleMatchesChange,prefersKeyboardNavigation:p,revealAnswers:z});case gl:return(0,s.jsx)(jp,{allowTabNavigation:!0,correctIds:sd(M),errorMessageId:G,isComplete:y,isCorrect:l,labels:m,onChange:this.handleMultipleResponseChange,onEnterToSubmit:c,options:M,questionHtmlId:N,renderOptionText:f.bind(this,d),revealAnswers:z,selectedIndices:S});case fl:default:return(0,s.jsx)(Tp,{allowTabNavigation:!0,correctId:QN(M)||ZN(M),errorMessageId:G,isComplete:y,isCorrect:l,isReduceMotion:Su,labels:m,onChange:this.handleChoiceSelect,onEnterToSubmit:c,options:M,questionHtmlId:N,renderOptionText:g.bind(this,d),revealAnswers:z,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=W0(u),p=H()("block-knowledge",{"block-knowledge--answered":l,"block-knowledge--no-animation":!c,"block-knowledge--retake":d}),f=H()("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)(Vt,{className:p,"data-test-id":"block-kc-card",ref:v=>{this.block=v},style:this.getStyle(),children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",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===to.TRANSPARENT)switch(n?.backgroundType){case I.xj.ACCENT:case I.xj.COLOR:case I.xj.TINT:switch((0,it.XC)(e)){case it.lL.LIGHT:return{"--color-background-choice-hover":(0,it.W8)(.5,e),"--color-background-feedback-frame":(0,it.W8)(.5,e)};case it.lL.MED:return{"--color-background-choice-hover":(0,it.W8)(-.3,e),"--color-background-feedback-frame":(0,it.W8)(-.3,e)};case it.lL.DARK:return{"--color-background-choice-hover":(0,it.W8)(-.6,e),"--color-background-feedback-frame":(0,it.W8)(-.6,e)};case it.lL.NEAR_BLACK:return{"--color-background-choice-hover":(0,it.W8)(.15,e),"--color-background-feedback-frame":(0,it.W8)(.15,e)}}}return null}}const gA=t=>{const{blockId:e,items:[n]}=t,{drawCount:o,questions:r}=n,[a,l]=(0,h.useState)(()=>r?.length?kp({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:sA[a.type],items:[a]}:{},[a]);return a?(0,s.jsx)(Dp,{...t,...d}):(0,s.jsx)("div",{})},vA=t=>t.variant==="draw from question bank",_a=t=>{const e=Dn()??"",n=Hs(),o=(0,xt.gY)(),r={...t,backgroundColor:e,getL10nValue:o,blockSettings:n};return vA(r)?(0,s.jsx)(gA,{...r}):(0,s.jsx)(Dp,{...r})};var CA=i(24905),xA=i.n(CA);class bA extends $().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=yr()}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(il(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=H()("bubble",{"bubble--active":a}),p=LA({x:c,y:u}),f=TA({hasOverflow:this.state.hasOverflow,x:c,y:u}),g={borderBottomColor:e},v=`${r}-title`,C=()=>{if(!l)return(0,s.jsx)(St,{allowTabNavigation:a,className:"bubble__description",value:o});const y=this.props.getL10nValue(l)??{},x=Jo(y,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||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:x.imageOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:x.videoOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:x.embedOnlyMedia||y,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:y,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)(St,{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:H()({"labeled-graphic-bubble-media-container--audio-bottom":S==="audio"&&this.props.audioPosition==="bottom"}),children:(0,s.jsx)(dn,{...L,...A})})})},`${S}-${N}`)})})},b=(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)(En,{value:d})}),(0,s.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,s.jsx)(y6,{className:"bubble__close-icon"})}),(0,s.jsx)("div",{className:"bubble__content",ref:y=>{this.contentRef=y},children:C()}),n&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,Xn.createPortal)((0,s.jsx)(_m,{children:b}),this.portal):b}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=Wa()(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=>{an(e)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(e){const{allowNav:n,onNextClick:o,onPreviousClick:r}=this.props,a=a9(this.contentRef,this.state.hasOverflow),l=xA()(Nt()(n));Ps()([[l(Aa),r],[l(Pa),o],[Ph,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 H()({"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 yA=qt(bA),EA=(0,As.Ls)()(yA),LA=({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},TA=({hasOverflow:t,x:e,y:n})=>{const o=e<50;let r="top";return n>33&&(r=n>66?"bottom":"middle"),H()("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"})},Bp=({children:t,className:e,contentFocused:n=!1,...o})=>{const r=H()("authoring-tooltip",{[e]:e},{"content-focused":n});return(0,s.jsx)("div",{className:r,...o,children:t})},Hp=({children:t,className:e="",side:n,...o})=>{const r=H()("authoring-tooltip__content",`authoring-tooltip__content--${n}`,{[e]:e});return(0,s.jsx)("span",{...o,className:r,children:t})},jA=(0,h.forwardRef)((t,e)=>{const{children:n,direction:o,portalId:r,visible:a}=t,l=re("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,Xn.createPortal)(u,d):(0,s.jsx)(s.Fragment,{})});jA.displayName="PortalTooltipContent";var IA=i(59288);const SA=t=>new URL(t).pathname.slice(1)+new URL(t).search;class NA extends IA.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,b=!!p.alt,y=(0,Zs.Ll)(f),x=(0,Zs.Zd)(p),L=H()("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:SA(C),...p}));const S=H()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":(0,Zs.sg)(E)}),N=(0,s.jsx)(Ln,{alt:y,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:[b&&o?(0,s.jsxs)(Bp,{className:"item-media__tooltip",children:[(0,s.jsx)("button",{className:"labeled-graphic-canvas__alt-tag",onClick:u,type:"button",children:"ALT"}),(0,s.jsx)(Hp,{side:"top",children:"Edit alt text"})]}):[],l&&N,(0,s.jsx)("ol",{role:"list",children:n})]})})})})}}const AA=qt(NA),PA={"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"},RA=(t,e)=>{const n=PA[e];return n?.startsWith("a11y")?t?.[n]||"":n||""};var MA=i(59288);const zp=re("labeled-graphic-marker");class kA extends MA.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),b=RA(u,o),y=v?this.state.isComplete:a,x=!!m,L=(0,it.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:b,label:u&&u.a11yLabeledGraphicButtonMarker||"",title:C,viewed:y}),M=zp({active:d,dragged:this.state.isDragged,visible:c,complete:y}),W={...g,"--color-lg-accent":N,"--color-lg-font":A},D=zp("pin",{selected:d,disabled:l});return(0,s.jsx)("button",{"aria-controls":n,"aria-expanded":r,"aria-label":k,className:M,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 OA=qt(kA);class wA extends $().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||Ms()}}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,isLastBlock:f,isLearner:g,isLessonBlocksList:v,isPreview:C,items:b,labels:y,lessonId:x,media:L,onItemClear:E,onItemHint:S,onItemSelected:N,onNextClick:A,onPreviousClick:k,onShowAltDialog:M,parentId:W,progress:D,selected:w,settings:Z={},showBubbles:U,enableVideoPlaybackSpeed:z}=this.props,{markerColor:G,markerColorContrast:ue}=Z,{showMarkers:ie}=this.state,Ne=G||(e||r),we=H()("map-item",{"map-item--animated":!d}),$e=n?"fadeIn":"none",Fe=n?1:0,Ke=b.length>1,lt=f?50:300;return(0,s.jsx)(h.Fragment,{children:(0,s.jsx)(Bt,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!C,animateIn:$e,duration:C?0:Fe,initiallyVisible:!n,isLearner:g,offset:lt,children:(0,s.jsx)(AA,{canvasClassNames:a,editable:d,editingDisabled:l,imageLoaded:m,media:L,onCreateMarker:this.createMarker,onShowAltDialog:M,ref:Xe=>{this.canvas=Xe},children:b.map((Xe,ye)=>{const{description:Re,id:Ve,icon:He,media:mt,title:rt}=Xe,zt=c(Xe.x),Ot=c(Xe.y),Ft={top:Ot+"%",left:zt+"%"},Ns=ts()(["items",Ve,"isComplete"],D),mn=w===Ve,ps=`bubble-${o}-${Ve}`;return(0,s.jsxs)("li",{className:we,role:"listitem",children:[(0,s.jsx)(OA,{accentColor:Ne,ariaControls:ps,editable:d,icon:He,isActive:w===Ve,isComplete:Ns,isLessonBlocksList:v,isSelected:mn,isVisible:ie,itemId:Ve,labels:y,markerColor:G,markerColorContrast:ue,onClick:()=>{N(Ve)},onFocus:this.onMarkerFocus(Ve),onHover:()=>{S()},onLeave:()=>{E()},onSetPosition:this.onSetPosition.bind(this,Xe),parentId:W,ref:tn=>{this.markerRefs[Ve]=tn},styles:Ft,title:rt,useLocalStateForCompletion:p},Ve),!d&&U&&(0,s.jsx)(EA,{accentColor:Ne,allowNav:Ke,audioPosition:Z.audioPosition,blockId:o,description:Re,enableVideoPlaybackSpeed:z,hasAudioExpansionFlag:u,htmlId:ps,index:ye,isActive:mn,item:Xe,labels:y,lessonId:x,media:mt,mediaOpts:{disableZoom:!Z.zoomOnClick},onClose:this.onBubbleClose(Ve),onNextClick:()=>{A(ye)},onPreviousClick:()=>{k(ye)},title:rt,x:Number(zt),y:Number(Ot)},ps)]},Ve)})})})})}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:$c()(),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,ds.uW)(e.x)&&(0,ds.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 DA=qt(wA);var BA=i(59288);const Fp="page-wrap--noscroll";class HA extends BA.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=H()("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)(DA,{...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 H()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(e){const{blockId:n,items:o}=this.props,r=tt()("id",o[ks()(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=tt()("id",o[Rn()(e)]||o[Rn()(Lt()(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),ke()(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(Fp)}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(Fp)}document.getElementById(`bubble-${e}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const zA=qt(HA),FA=t=>{const{blockId:e,progress:n,isLessonBlocksList:o=!1}=t,r=ts()(["items",e],n),a=Nr("rise-audio-release");return(0,s.jsx)(Vt,{className:"block-labeled-graphic",children:(0,s.jsx)(zA,{...t,editable:!1,hasAudioExpansionFlag:!!a,isBlock:!0,isLessonBlocksList:o,parentId:e,progress:r})})},Nu=re("block-process-card"),Up=({icon:t,isOverlayAudio:e=!1,onClick:n,text:o,variant:r})=>{const a=`${r}-btn`;return(0,s.jsxs)("button",{className:Nu(a,{"audio-overlay":e}),onClick:n,type:"button",children:[(0,s.jsx)("span",{className:Nu(`${a}-text`),children:o}),(0,s.jsx)(bt,{classNameIcon:Nu(`${a}-icon`),name:t})]})},UA=re("block-process-card"),VA=({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=Nr("rise-audio-release"),{image:g,video:v}=u??{},C=a?g?.align??"center":"center",b=UA("media",{legacy:!f&&!v,"audio-overlay":a,[`audio-overlay-${C}`]:a,"intro-step":r});return(0,s.jsx)("div",{className:b,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 Au=i(59288);const er=re("block-process-card"),WA=({text:t})=>{const e=Au.useRef(null),{isInView:n}=$A({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)(bt,{className:er("swipe-badge-icon"),name:"chevron-right-solid"})]})};function $A({ref:t,rootMargin:e="0px",threshold:n=.1}){const[o,r]=Au.useState(!1);return Au.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 KA=({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:b,settingZoomOnClick:y,showSwipeBadge:x,style:L,title:E,totalSteps:S,type:N})=>{const A=`h${v}`,k=N==="intro",M=N==="summary",W=N==="step",D=r?l:l+1,w=(0,xt.QQ)(b)||c.processStepName,Z=Nr("rise-audio-release"),U=(0,xt.QQ)(Array.isArray(m)?{}:m),z=Jo(U,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:y,item:d},ie={audio:{media:z.audioOnlyMedia||U,isOverlayAudio:!1},image:{media:z.imageOnlyMedia||U,isOverlayAudio:!1},video:{media:z.videoOnlyMedia||U},embed:{media:z.embedOnlyMedia||U,isOverlayAudio:!1},overlay:{media:U,isOverlayAudio:!1}};return z.renderOrder.map((ce,Ne)=>{if(ce==="text")return(0,s.jsx)(St,{className:er("description"),value:n},`text-${Ne}`);const we=ie[ce];return we?(0,s.jsx)(VA,{...ue,...we},`${ce}-${Ne}`):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)(St,{value:E})})}),G(),!m&&(0,s.jsx)(St,{className:er("description"),value:n}),k&&S>1&&(0,s.jsx)(Up,{icon:"chevron-right-solid",isOverlayAudio:z.isOverlayAudio,onClick:f,text:c.processStart,variant:"start"}),M&&S>1&&(0,s.jsx)(Up,{icon:"arrow-rotate-left",isOverlayAudio:z.isOverlayAudio,onClick:p,text:c.processStartAgain,variant:"restart"}),x&&W&&(0,s.jsx)(WA,{text:c.processSwipe})]})};var xo=i(59288);const GA=re("block-process-carousel"),Vp=t=>t?.type==="intro",Pu=t=>t?.type==="summary",Ru=t=>t?.type==="step",Wp=t=>t?.isHidden,QA=({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=Os(480),b=(0,Te.Wz)(),y=(0,xt.gY)(),x=(0,As.y4)(),L=xo.useRef(null),[E,S]=xo.useState(0),[N,A]=xo.useState(!1),k=xo.useMemo(()=>c===Qe.o4.MOBILE_PORTRAIT||c===Qe.o4.MOBILE_LANDSCAPE,[c]),M=xo.useMemo(()=>{const ce=r.filter(Fe=>!Wp(Fe)),Ne=ce.find(Vp),we=ce.find(Pu),$e=ce.filter(Ru);return[Ne,...$e,we].filter(Boolean)},[r]),W=xo.useMemo(()=>M.findIndex((ce,Ne)=>Ru(ce)&&(Ru(M[Ne+1])||Pu(M[Ne+1]))),[M]),D=Vp(M[0]),w=Pu(M[M.length-1]),Z=!!c;xo.useEffect(()=>{d&&(r.forEach(ce=>Wp(ce)&&d(ce)),M.length>0&&d(M[0]))},[]);const U=xo.useCallback(()=>{L.current?.navigateToSlide?.(0)},[]),z=xo.useCallback(()=>{L.current?.navigateToSlide?.(1)},[]),G=xo.useCallback(ce=>{S(ce),u.current?.scrollIntoView({behavior:"smooth",block:"start"}),ce!==W&&!N&&A(!0),d?.(M[ce]);const we=y(M[ce]?.media);we?.audio&&x(il(we.audio?.transcript??null))},[M,x,W,y,N,d,u]),ue=({index:ce,isActive:Ne,onClick:we,onKeyDown:$e})=>{const Fe=D&&ce===0,Ke=w&&ce===M.length-1,lt=D?ce:ce+1;let Xe,ye;Fe?(Xe=a?.a11yBlockProcessSlideControlsIntroduction,ye=(0,s.jsx)(bt,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):Ke?(Xe=a?.a11yBlockProcessSlideControlsSummary,ye=(0,s.jsx)(bt,{name:"check-regular"})):(Xe=lt.toString(),ye=lt.toString());const Re=`${a?.a11yBlockProcessSlideControlsGoToSlide} ${Xe}`;return(0,s.jsx)(D2,{"aria-label":Re,ariaLabel:Re,className:"carousel-controls-item-btn",isActive:Ne,onClick:we,onKeyDown:$e,children:ye},ce)},ie={animateBlockEntrance:Z,animateIn:t?"fadeIn":"none",duration:Z&&t?1:0,initiallyVisible:!t,isLearner:o,offset:100};return(0,s.jsx)(Bt,{...ie,children:(0,s.jsx)("div",{className:GA(),children:(0,s.jsx)(Vc,{blockId:n,carouselRef:L,items:M,children:()=>(0,s.jsx)(zc,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:b,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:M.map((ce,Ne)=>(0,s.jsx)(un,{activeIndex:E,description:ce.description,enableVideoPlaybackSpeed:e,hasIntro:D,id:n,index:Ne,isHidden:ce.isHidden,item:ce,labels:a,lessonId:l,media:ce.media,onClickRestart:U,onClickStart:z,settingAudioPosition:m,settingHeadingLevel:p,settingShowStepLabel:g,settingStepLabel:f,settingZoomOnClick:v,showSwipeBadge:C&&!N&&Ne===W,tag:KA,title:ce.title,totalSteps:M.length,type:ce.type},ce.id))})})})})};var ZA=i(59288);const YA=t=>{const{blockId:e,settings:n}=t,{paddingBottom:o,paddingTop:r}=n,a=ZA.useRef(null),l={paddingBottom:`${Number(o)*10}px`,paddingTop:`${Number(r)*10}px`};return(0,s.jsx)(Vt,{className:"block-process",ref:a,style:l,children:(0,s.jsx)(QA,{id:e,processRef:a,...t})})};var _A=i(82501),XA=i.n(_A),JA=i(7906),vl=i.n(JA),qA=i(23444),nd=i.n(qA),eP=i(18448),Mu=i.n(eP),tP=i(18714),sP=i.n(tP),nP=i(22423),Fo=i.n(nP);const $p=t=>({...t.responses[t.response],hasCharacter:t.hasCharacter,type:"response"}),oP=(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}},rP=t=>[$p(t)],aP=t=>{const e=!!t.responses[t.response],n=$p(t),o=oP(t,n);return e?[n,o]:[o]},iP=t=>t.hasFeedback?[t,...aP(t)]:t.response!=null?[t,...rP(t)]:[t],lP=(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}},Kp=_o()(lP);var cP=i(40731),Gp=i.n(cP);const dP=rs()(tt()("filters"),nt()(ot()("name","rise_emotion")),nd()(Jt())),uP=rs()(tt()("filters"),es()(ot()("name","rise_emotion")),tt()("value")),Qp=t=>new URL(t).pathname.slice(1),hP=t=>rs()(on()("key",Qp(t.src)),on()("thumbnailKey",Qp(t.thumbnail)))(t),mP=rs()(tt()("poses"),nt()(dP),Ds()(t=>[uP(t),t]),Gp(),wr()(hP));var bo=i(59288);const ku=t=>t===-1?null:t,Zp=t=>Tr()(Js(),so(),t),od=nd()(Jt()),Yp=nd()(Js()),Xa=Mr()(Yp,od),_p=XA()(rl()),Xp=Me.BI?Zp(Yt.dE):Zp(Yt.bX),Ou=t=>ht()(t);class pP extends bo.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=bo.createRef();responseItemRef=bo.createRef();scenarioRef=bo.createRef();blockContentRef=bo.createRef();endRef=bo.createRef();textRef=bo.createRef();refs=bo.createRef();dynamicRefs=bo.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=ke()(Ta()("poses"),Ut()({},"character"),Ou);Xa(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}=ki(n,["block","scene"]),d=n.at(-1)==="feedback";if(o!==this.props.blockId)return;const c=ku(this.props.items.findIndex(p=>p.id===r)),u=c!==null?ku(this.props.items[c].slides.findIndex(p=>p.id===a)):null,m=u!==null?ku(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=et()([],[o,"slides"],e),l=et()(null,[r,"goTo"],a),d=et()(null,[r,"type"],a);if(n&&(l==="end"&&d==="text"||!l&&!d)&&Mu()(n,e),this.shouldFocus){this.shouldFocus=!1;const p=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');p?p.focus():D0(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=et()(null,c,this.state.slides),p=et()(!1,u,this.state.slides),f=Ut()("neutral","emotion",l),g=Tr()(Nt()(p),et()(f,["responses",m,"emotion"]),Nt()(f)),v=rs()(et()(r?.poses?.neutral,["poses",g(l)]),Xp);return{name:r.name,pose:v(r)}}fetchCharacters(){const{getCharacter:e,items:n,onItemUpdate:o}=this.props,r=Cn()(["id","name","poses","src"]),a=d=>c=>o({itemId:d,payload:{character:c}}),l=({character:d,id:c})=>Xa(d)&&e(d.id).then(u=>on()("poses",mP(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=et()([],[n,"slides"],e),d=et()(!0,[o,"hasCharacter"],l);return Yp(r)&&Ls()(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=Ut()(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()(Kp(o),({scene:E,slide:S})=>({activeScene:E,activeSlide:S})),b=Ps()([[Nt()(m&&u),Nt()(g)],[Nt()(m&&!u),Nt()(f)],[wo(),Nt()(p)]]),y=Tr()(Nt()(c),Nt()(g),Nt()(v)),x=Ps()([[us()("slide"),Fo()(C,[n])],[us()("next"),b],[us()("end"),y]]),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&&Mu()(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=on()("response",e),d=on()("hasFeedback",!0),c=Pr()({[`${a}`]:l}),u=Pr()({[`${a}`]:d}),m=ke()(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=Pr()({[`${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=ke()(od,Ut()({},"character"),Ou),f=ke()(Ta()("poses"),Ut()({},"character"),Ou),g=ke()(Co(),et()({},["character","poses"])),v=ke()(Oc(),Co(),Ds()(g)),C=H()("scenario-block",{"scenario-block--initiated":c,"scenario-block--mobile":rn.isMobile,"scenario-block--loading":p(r)&&!f(r)}),b=`scenario-live-${e}`,y={"aria-label":a?.a11yGroupScenario,"aria-describedby":b,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=Ps()([[Js(),this.renderEnd],[ot()("type","dialogue"),this.renderDialogues],[ot()("type","text"),this.renderText],[wo(),Nt()(null)]]),E=m&&!m.hasCharacter,S=H()("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,M=n(k);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{...y,"data-l10n-id":(0,Rt.pP)(k),children:[(0,s.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:b,children:M}),(0,s.jsx)("div",{className:"scenario-block__spinner"}),(0,s.jsx)("div",{className:"scenario-block__background-wrapper",children:Xa(r)&&r.map(this.renderBackground)}),(0,s.jsx)(Ln,{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:Xa(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=H()("scenario-block__background",{"scenario-block__background--active":o===n,"scenario-block__background--blur":a??!0});return(0,s.jsx)(Ln,{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"?ke()(this.onFocus,this.onTryAgainClick):ke()(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)(E6,{})," ",f]},p),c=rs()(Kp(n),({scene:p,slide:f})=>`Scene ${p+1} Slide ${f+1}`),u=(p,{goTo:f,nextSlide:g})=>Ps()([[us()("next"),Fo()(d,[p,"Next Slide"])],[us()("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),b=this.dynamicRefs.current[`dialogue-${p}`],y=v&&this.dynamicRefs.current[`dialogue-${f}`],x=b&&b.offsetHeight,L=v&&y&&y.offsetHeight,E=m?30:0,S=window.innerWidth<480?20:30,N=S*2+60+L-E,A=S+60-E,k=sP()(x+E-60),M=bo.createRef(),W=H()("scenario-block__dialogue",{"scenario-block__dialogue--response":d==="response","scenario-block__dialogue--done":o<c-1}),D=Ps()([[Nt()(g),Nt()(null)],[us()(c),Nt()({top:`${N}px`})],[us()(c-1),Nt()({top:`${A}px`})],[us()(c-2),Nt()({top:`${k}px`})],[wo(),Nt()({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:M,key:o,timeout:{enter:400,exit:400}},U=H()({"scenario-block__dialogue__bubble":l||d==="response","scenario-block__dialogue__pane":!l}),z=(0,s.jsx)("div",{className:U,"data-scenario-focus":C?"":void 0,tabIndex:C?-1:void 0,children:(0,s.jsx)(St,{value:r})});return(0,s.jsx)(ls.B1,{...Z,children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{...w,children:Xa(r)&&z})})})}renderDialogues(e){const{activeScene:n,activeSlide:o,slides:r}=this.state,{id:a,responses:l}=e,d=`${n}.${o}`,c=r[d]||{},m=ke()(Oc(),iP,Mo()(c))(e),{hasFeedback:p,response:f}=c,{feedback:g}=l[f]||{},v=Js()(f)&&od(l),C=p?m.length-1:m.length,b=(C===1&&Jt()(l)||C===2&&od(l))&&p,y={count:C,firstKey:et()(null,[0,"id"],m),hasFeedback:p&&Xa(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,y))})})}),v&&L,b&&this.renderButton(m[C-1])]})})})}renderEnd(){const{labels:e}=this.props,{scenarioComplete:n,scenarioStartOver:o}=e,r=ke()(this.onFocus,Fo()(this.onClick,["end",null])),a=H()(["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=Xp(e),d=Mr()(ot()("name","style")),c=d(ot()("value","left_aligned")),u=d(ot()("value","right_aligned")),m=H()("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)(Ln,{alt:"",src:l})},`pose-${n}-${a}`)}renderResponse({description:e},n){const{isPDF:o}=this.props,r=o?gP:ke()(this.onFocus,Fo()(this.onResponseClick,[n])),a=H()(["scenario-block__response",`scenario-block__response--${n}`]),l=H()("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)(St,{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=H()("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,b=C?`h${C}`:"h2",y=(0,s.jsx)("div",{className:"scenario-block__text__title","data-l10n-id":(0,Rt.pP)(e.title),children:(0,s.jsx)(b,{children:d})}),x=(0,s.jsx)("div",{className:"scenario-block__text__description",children:(0,s.jsx)(St,{value:n})}),L=ke()(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&&y,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:on()(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 on()(`${r}.${d}`,{hasFeedback:m,response:null},a)},o=(r,a,l)=>rs()(tt()("slides"),_p(n(l),{}),vl()(r))(a);this.setState({slides:_p(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=on()("hasFeedback",!0),m=Pr()({[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 fP=t=>{const e=(0,xt.gY)();return(0,s.jsx)(pP,{...t,getL10nValue:e})};function gP(){}var vP=i(59288);class CP extends vP.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,offset:300};return(0,s.jsx)(Vt,{className:"block-scenario",children:(0,s.jsx)(Bt,{...d,children:(0,s.jsx)(fP,{...this.props})})})}}var xP=i(92824),rd=i.n(xP);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 yP(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 EP=i(59288);const Ja=re("playing-card");class LP extends EP.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=_c()(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),yP(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=Ja("title",{"is-max-length":n}),f=Ja({draggable:!0,moving:e,fail:o,reset:r}),g=u?Ja("content"):Ja("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)(St,{className:p,ref:m,value:c}),(0,s.jsx)("div",{className:Ja("handle")}),(0,s.jsx)("div",{className:Ja("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 Jp=Cc("blockSettings")(LP),ad=re("restart-button"),qp=({allowTabNavigation:t=!0,onClick:e,onFocus:n=Bs.lQ,text:o})=>{const r=ad({}).mix("button");return(0,s.jsx)("button",{"aria-hidden":!t,className:r,onClick:e,onFocus:n,tabIndex:Oa(t),type:"button",children:(0,s.jsxs)("div",{className:ad("content"),children:[(0,s.jsx)("span",{className:ad("text").mix("brand--ui"),children:o}),(0,s.jsx)("i",{"aria-hidden":"true",className:ad("icon").mix("icon").mix("icon-reload")})]})})};var TP=i(59288);const jP=t=>H()("deck",{"deck--complete":ot()("percentViewed",100,t)}),IP=({progress:t,count:e})=>`${Ut()(0,"correctlyAnswered",t)}/${e}`,SP=({item:t,progress:e})=>String(e.lastIncorrectCardId)===String(t.id),NP=ot()("percentViewed",100);class AP extends TP.Component{static defaultProps={onReplay:Function.prototype};cardRefs;constructor(e){super(e),this.cardRefs=[]}startKeyDrop(){const e=ht()(this.cardRefs);e&&e.onStartSortAttempt()}endKeyDrop(){const e=ht()(this.cardRefs);e&&e.onEndSortAttempt()}render(){const{count:e,items:n,labels:o,id:r,progress:a,onReplay:l}=this.props,d=NP(a);return(0,s.jsxs)("div",{className:jP(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:[IP({progress:a,count:e})," ",o.sortingCardsCorrect]}),(0,s.jsx)(qp,{allowTabNavigation:d,onClick:Fo()(l,[r]),text:o.sortingReplay})]}),(0,s.jsx)("div",{className:"deck__content",children:n.map((c,u)=>(0,s.jsx)(Jp,{id:c.id,isDeckTopCard:this.cardRefs[u]===ht()(this.cardRefs),isIncorrect:SP({item:c,progress:a}),ref:m=>{this.cardRefs[u]=m},title:c.title},c.id))})]})}}var PP=i(59288);class RP extends PP.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=_c()(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=m0(this.handleKeyboardDrop),a=m0(o),l=m0(n);Ps()([[Xo,r],[Aa,a],[Pa,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=H()("pile",{"drop-success":o}),c=H()("pile__content",{"drop-animating":!a}),u=H()("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)(St,{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:nl,children:n&&(0,s.jsx)(Jp,{id:n.id,title:n.title})}),(0,s.jsx)("div",{className:"pile__background"})]})})})}}const MP=RP;var kP=i(59288);const OP=t=>e=>Ls()(et()(!1,["items",e.id,"isViewed"],t)),wP=({items:t,progress:e})=>nt()(OP(e),t);class DP extends kP.Component{pileRefs;deck;constructor(e){super(e),this.state={items:rd()(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}=ki(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=tt()("retryAttempts",this.props.progress),o=tt()("retryAttempts",e.progress);if(n!==o)this.setState({items:rd()(e.items)});else{const r=e.items.filter(d=>!this.state.items.find(ot()("id",d.id))),l=this.state.items.filter(d=>e.items.find(ot()("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=wP({items:e,progress:r});return(0,s.jsxs)("div",{"aria-label":c,className:H()("sorting"),role:"group",children:[(0,s.jsx)("div",{className:"sorting__row",children:(0,s.jsx)(AP,{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)(MP,{deckTopCard:u&&u[0],id:m.id,lessonId:n,onCardDrop:a,onKeyDropEnd:()=>{this.deck.endKeyDrop()},onKeyDropStart:()=>{this.deck.startKeyDrop()},onNavigateToNext:()=>U7({list:this.pileRefs,currentIndex:p}),onNavigateToPrevious:()=>V7({list:this.pileRefs,currentIndex:p}),ref:f=>{this.pileRefs[p]=f},title:m.title},m.id))})]})}}const BP=({blockId:t,lessonId:e})=>({itemId:n,isCorrect:o})=>(0,O.JD)((0,Bo.i$)({itemId:n,lessonId:e,blockId:t,isCorrect:o})),HP=({blockId:t,lessonId:e})=>()=>(0,O.JD)((0,Bo.V9)({lessonId:e,blockId:t})),zP=t=>{const{animateBlockEntrance:e,blockId:n,items:o,labels:r,piles:a,progress:l}=t,d=t.onCardDrop||BP,c=t.onReplay||HP;return(0,s.jsx)(Vt,{type:"sorting-activity",children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:!0,children:(0,s.jsx)(DP,{id:n,items:o,labels:r,onCardDrop:d(t),onReplay:c(t),piles:a,progress:et()({},["items",n],l)})})})};var e3=i(28079);class FP 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){e3.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 UP=FP,VP=(0,h.lazy)(()=>i.e("webpack_container_remote_mondrian_learn-react").then(i.t.bind(i,4246,23)));function WP(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 $P({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 KP({blockumentId:t,animateBlockEntrance:e=!0,isLearner:n=!1,offset:o,settings:r}){const a=YP(),l=(0,Te.SQ)();return(0,s.jsx)(Vt,{children:(0,s.jsx)(UP,{FallbackComponent:ZP,children:(0,s.jsx)(Bt,{animateBlockEntrance:e,animateIn:"fadeIn",isLearner:n,offset:o,children:(0,s.jsx)("div",{style:WP(r),children:(0,s.jsx)(h.Suspense,{fallback:(0,s.jsx)($P,{blockumentId:t,manifest:a}),children:(0,s.jsx)(VP,{blockumentId:t,manifest:a,runtimeInterface:window.Runtime,searchTerm:l?.term})})})})})})}const GP=(0,h.memo)(KP,QP);function QP(t,e){return t.blockumentId===e.blockumentId&&t.settings.backgroundType===e.settings.backgroundType&&t.settings.contentWidth===e.settings.contentWidth}function ZP(){return null}function YP(){return(0,Te.DX)().mondrian}var t3=i(67750),bs=i(59288);const _P=re("block-html"),wu=new Map;window.addEventListener("message",t=>{if(t.origin!==window.origin)return;const e=wu.get(t.source);e!=null&&s3(t,e)});function s3(t,e){const n=n3(t3.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*n3(t){if(Array.isArray(t))for(const e of t)yield*n3(e);else yield t}function o3(t,e,n){return bs.useEffect(()=>{if(t!=null)return wu.set(t.contentWindow,e),()=>void wu.delete(t.contentWindow)},[t,e]),bs.useCallback(r=>{t?.contentWindow.postMessage(r,n)},[t,n])}const zG=(t,e,n)=>o3(t,n,window.origin),XP=(t,e,n)=>o3(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=>s3(d,n),{signal:l.signal}),()=>l.abort()},[o,n]),bs.useCallback(l=>{o.postMessage(l)},[o])},qP=rn.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)}`,b=bs.useCallback(({message:A})=>{console.error("Sandbox Error",A)},[]),y=bs.useCallback(()=>{p(!0)},[]),x=bs.useCallback(()=>{g(m)},[m]),L=bs.useCallback(({height:A})=>{r&&d(`${A}px`)},[r]),E=bs.useMemo(()=>({onerror:b,onload:x,onready:y,onresize:L}),[b,y,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 M=t3.format.notification(A,k);S(M)},[m,c,S]);return bs.useEffect(()=>{m&&N("onupdate",{autoResize:r,src:o,srcDoc:n})},[r,m,N,o,n]),(0,s.jsx)(Vt,{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=re("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=Nr("rise-audio-release"),v=u==="audio"&&f.audio,C=u==="embed"&&f.embed,b=u==="image"&&f.image,y=u==="video"&&f.video;if(!v&&!C&&!b&&!y&&!(u==="image-with-audio"&&r))return;const L=f.embed?cl(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=Nr("rise-audio-release"),b=(0,xt.QQ)(o.media)??{},y=Jo(b,l,C,!0,"timeline"),x=()=>{if(!b||!a)return null;const L={audio:{item:{...o,media:y.audioOnlyMedia||b},mediaType:"audio"},image:{item:{...o,media:y.imageOnlyMedia||b},mediaType:"image"},video:{item:{...o,media:y.videoOnlyMedia||b},mediaType:"video"},embed:{item:{...o,media:y.embedOnlyMedia||b},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:y.renderOrder.map((E,S)=>{if(E==="text")return(0,s.jsx)(St,{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)(En,{value:o.date})})}),p&&(0,s.jsx)("div",{className:sr("title"),children:(0,s.jsx)(v,{children:(0,s.jsx)(En,{value:o.title})})}),x()]})})})})},Cl=re("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,animateIn:"fadeIn",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}=ki(u.detail.path,["block","card"]);if(m!==e)return;const f=l.current.querySelector(`[data-id="${p}"]`);f&&!P0(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)(Vt,{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 r3=i(77726),cR=i(47707),a3=i.n(cR),Ks=i(45129);const Du=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(JN()(e),"igm"),hR,t),pR=_o()(mR),fR=(t,e)=>e.reduce((n,o)=>n+o[t],0),KG=gn()(fR);var gR=i(82298),i3=i.n(gR),vR=i(69366),CR=i.n(vR),xR=i(64011),nr=i.n(xR),bR=i(70477),yR=i.n(bR),ER=i(58488),l3=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)=>G2()(t,n,e)),Bu=nr()(3,(t,e,n)=>n[t]==e),GG=nr()(3,(t,e,n)=>rs()(xs()(Bu("id",e)),Tr()(AR,Nt()(n),RR(t,n)))(n)),QG=t=>filter(complement(Bu("id",t))),ZG=nr()(3,(t,e,n)=>yR()(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)=>ke()(Gp(),nt()(CR()(t)),NR())(e)),c3=nr()(2,(t,e)=>ke()(l3(),kR((n,o)=>e(o)))(t)),d3=nr()(2,(t,e)=>nt()(ke()(Vi()(bn())(e),t))),OR=V0()(TR()(i3(),0)),u3=ke()(Array.from,Array),h3=_o()((t,e)=>u3(e).map(()=>t)),wR=_o()((t,e,n,o)=>u3(n).map((r,a)=>a===o?e:t)),YG=nr()(3,(t,e,n)=>rs()(xs()(Bu(t,e)),PR)(n));function _G(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 id=(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 m3=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}=yn(),{backgroundType:a,chartColor:l,lineCurve:d}=Hs(),c=Dn(),u=(0,Te.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,b=c||"#fff";!l&&a===I.xj.ACCENT||l===b?C=m:p&&(C=g===I.df.DARK?"#fff":"#000",b=g===I.df.DARK?"#000":"#fff"),v&&(C="Highlight",b="Canvas");let y=C,x=Array(e.length).fill(C);if(t!=null&&!v){const L=p&&g===I.df.LIGHT?.2:.7,E=(0,m3.A)(C,b,L);y=E,x=wR(E,C,e.length,t)}return r==="bar"?{backgroundColor:x,data:e,hoverBackgroundColor:x}:{borderColor:y,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=H()("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=id(n,id(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}=Hs(),o=yn(),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}=Hs(),d=(0,Te.DX)(),c=(0,Te.kJ)(),u=d?.theme?.accentContrast,m=a===I.xj.IMAGE,p=yn(),f=Fs(),g=(0,it.cP)(r)?I.Em.LIGHT:I.Em.DARK,v=!l&&p?.family==="chart",C=l??I.Em.DARK,b=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:b,A=cn({backgroundColor:S,contrast:N}),[k,M]=QR({values:o,contrastColor:A}),W=(0,h.useCallback)(w=>f&&m?L?"#000000":"#FFFFFF":w.tick.value===0?M:k,[k,f,M,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 U,z;f?m?(U=w,z=L?"#FFFFFF":"#000000"):(U="Highlight",z="HighlightText"):(U=w,z=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=U,G.plugins.tooltip.titleColor=z,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 p3=({caption:t,labels:e,values:n})=>{const o=(0,h.useMemo)(()=>id(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),Hu=i.n(_R);const XR=/<mark>|<\/mark>/gm,JR=t=>e=>{const n=t(e?.type).replace(XR,"")??"";return{label:Hu()(n,{length:30}),l10nId:(0,Rt.pP)(e?.type)}},qR=t=>parseFloat(t.value??"0"),f3=(t,e)=>({labels:t.map(JR(e)),values:t.map(qR)}),g3=(t,e,n)=>{const o=Hu()(e,{length:t});return n?pR(o,n):o},v3=t=>{class e extends h.PureComponent{static displayName=`ChartEvents(${Du(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},C3=t=>{class e extends h.PureComponent{static displayName=`ChartUpdater(${Du(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"]??{};a3()(n)&&a3()(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=g3(80,o(d),m),b=g3(30,o(f),m),y=f3(l,o),x=r?[]:eM.slice(0,l.length),L=r?y.labels:x.map(k=>({label:k})),E=a?y.values:h3(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:Ms(),shouldAnimate:p,values:E,children:k=>(0,s.jsx)(HR,{activeIndex:e,opts:k,values:E,children:M=>(0,s.jsx)(r3.t1,{data:{labels:N,datasets:[M]},"data-l10n-id":A,options:k,ref:n,type:g,updateMode:"default"})})}),b&&Br(b)&&(0,s.jsx)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":(0,Rt.pP)(f),style:{insetInlineEnd:v},children:b})]}),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:y.labels,letters:x,onEvent:u,values:E}),(0,s.jsx)(p3,{caption:S,labels:L,values:E})]})}}const sM=t=>({search:t?.search?.term??""});function nM(t){const e=qt(t),n=C3(e),o=Cf(960,"isDesktop","Desktop")(n),r=v3(o);return(0,As.Ls)(sM)(r)}const oM=nM(tM);var rM=i(72624);const zu=({valueType:t,value:e,values:n})=>t==="numeric"?String(e):bN(e/gp(n)),aM=t=>{if(Fs())return"FieldText";const e=t.dataset.backgroundColor[t.dataIndex]??"#000";return(0,it.xD)(e)===I.Em.DARK?Qe.S6.DARK:Qe.S6.LIGHT},iM=(t,e,n)=>zu({valueType:t,value:e,values:n.dataset.data}),lM=(t,e)=>{const{label:n,dataset:o,parsed:r}=e[0],a=zu({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/gp(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":Qe.S6.LIGHT,titleColor:a?"HighlightText":Qe.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,m3.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=H()("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=id(o,e);if(a.length===0)return null;const l=H()("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=f3(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:Ms(),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:h3(0,l.length),v=this.buildOptions(),C=d?.a11yBlockChartPie,b=g.map(L=>zu({valueType:u.valueType,value:L,values:g})),y=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)(r3.t1,{data:{labels:y,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)(p3,{caption:C,labels:p,values:b})]})}}function xM(t){const e=R7()(t),n=C3(e),o=v3(n);return qt(o)}const bM=xM(CM),yM=t=>(0,it.cP)(t.backgroundColor);class EM extends h.PureComponent{constructor(e){super(e),this.state={isVisible:!1}}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||Ms()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:e}=this.props;return(0,s.jsx)(St,{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=yM(c),C=c?.headingLevel,b=C?`h${C}`:"h2";return(0,s.jsx)(Vt,{type:"chart",children:(0,s.jsx)(Bt,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:!e||Ms(),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)(b,{className:"block-chart__title",children:f()}),(0,s.jsx)("div",{className:"block-chart__chart",children:$().cloneElement($().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 x3(t){const e=n=>(0,s.jsx)(LM,{...n,children:(0,s.jsx)(t,{})});return e.displayName=`ChartWrap(${Du(t)})`,e}const TM=x3(oM),jM=x3(bM);var IM=i(59288);const SM=nt()(ot()("variant","storyline")),NM=rs()(SM,Lt(),Gn()(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 We("text","paragraph",c)||We("text","table",c)?(0,s.jsx)(dj,{...c}):We("text","heading paragraph",c)?(0,s.jsx)(gj,{...c}):We("text","subheading paragraph",c)?(0,s.jsx)(vj,{...c}):We("text","heading",c)?(0,s.jsx)(pj,{...c}):We("text","subheading",c)?(0,s.jsx)(fj,{...c}):We("text","two column",c)?(0,s.jsx)(uj,{...c}):We("text","three column",c)?(0,s.jsx)(hj,{...c}):We("text","four column",c)?(0,s.jsx)(mj,{...c}):We("text","code",c)?(0,s.jsx)(O2,{...c}):We("impact","a",c)?(0,s.jsx)(Sj,{...c}):We("impact","b",c)?(0,s.jsx)(Nj,{...c}):We("impact","c",c)?(0,s.jsx)(Aj,{...c}):We("impact","d",c)?(0,s.jsx)(Pj,{...c}):We("impact","note",c)?(0,s.jsx)(Rj,{...c}):We("quote","a",c)?(0,s.jsx)(zj,{...c}):We("quote","b",c)?(0,s.jsx)(Fj,{...c}):We("quote","c",c)?(0,s.jsx)(Uj,{...c}):We("quote","d",c)?(0,s.jsx)(Vj,{...c}):We("quote","background",c)?(0,s.jsx)(Wj,{...c}):We("quote","carousel",c)?(0,s.jsx)(Kj,{...c}):We("list","numbered",c)?(0,s.jsx)(Zj,{...c}):We("list","checkboxes",c)?(0,s.jsx)(Yj,{...c}):We("list","bulleted",c)?(0,s.jsx)(_j,{...c}):We("image","hero",c)?(0,s.jsx)(Jj,{...c}):We("image","full",c)?(0,s.jsx)(z2,{...c}):We("image","text aside",c)?(0,s.jsx)(tI,{...c}):We("image","text overlay",c)?(0,s.jsx)(nI,{...c}):We("gallery","centered",c)||We("gallery","full",c)?(0,s.jsx)(dI,{...c}):We("gallery","two column",c)?(0,s.jsx)(hu,{...c}):We("gallery","three column",c)?(0,s.jsx)(hu,{width:3,...c}):We("gallery","four column",c)?(0,s.jsx)(hu,{width:4,...c}):We("divider","divider",c)?(0,s.jsx)(hI,{...c}):We("divider","numbered divider",c)?(0,s.jsx)(mI,{number:e,...c}):We("divider","spacing divider",c)?(0,s.jsx)(pI,{...c}):We("360","storyline",c)?(0,s.jsx)(YI,{...c,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):We("interactive","accordion",c)?(0,s.jsx)(EI,{...c}):We("interactive","tabs",c)?(0,s.jsx)(wI,{...c}):We("interactive-fullscreen","labeledgraphic",c)?(0,s.jsx)(FA,{...c}):We("interactive-fullscreen","process",c)?(0,s.jsx)(YA,{...c}):We("interactive-fullscreen","scenario",c)?(0,s.jsx)(CP,{...c}):We("interactive-fullscreen","sorting",c)?(0,s.jsx)(zP,{...c}):We("interactive-fullscreen","timeline",c)?(0,s.jsx)(iR,{...c}):We("buttons","button",c)?(0,s.jsx)(lS,{...c}):We("buttons","button stack",c)?(0,s.jsx)(cS,{...c}):We("flashcard","flashcard",c)?(0,s.jsx)(np,{...c}):We("flashcard","stack",c)?(0,s.jsx)(np,{stack:!0,...c}):We("knowledge","knowledge",c)?(0,s.jsx)(_a,{...c}):We("continue","continue",c)?(0,s.jsx)(jS,{...c}):We("multimedia","audio",c)?(0,s.jsx)(fS,{...c}):We("multimedia","video",c)?(0,s.jsx)(J2,{...c}):We("multimedia","custom video",c)?(0,s.jsx)(J2,{...c,type:"customVideo"}):We("multimedia","embed",c)?(0,s.jsx)(CS,{...c}):We("multimedia","attachment",c)?(0,s.jsx)(LS,{...c}):We("multimedia","code",c)?(0,s.jsx)(O2,{...c}):We("knowledgeCheck","multiple choice",c)?(0,s.jsx)(_a,{...c}):We("knowledgeCheck","multiple response",c)?(0,s.jsx)(_a,{...c}):We("knowledgeCheck","fillin",c)?(0,s.jsx)(_a,{...c}):We("knowledgeCheck","matching",c)?(0,s.jsx)(_a,{...c}):We("knowledgeCheck","draw from question bank",c)?(0,s.jsx)(_a,{...c}):We("chart","bar",c)||We("chart","line",c)?(0,s.jsx)(TM,{...c}):We("chart","pie",c)?(0,s.jsx)(jM,{...c}):We("mondrian","mondrian",c)?(0,s.jsx)(GP,{...c}):We("textToVideo","textToVideo",c)?(0,s.jsx)(lR,{}):We("html","inline",c)||We("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)(N0,{block:t,children:(0,s.jsx)(AM,{...t})})}function We(t,e,n){return n.family===t&&n.variant===e}function RM(){return document.querySelector(".page-wrap")}const Fu=(0,h.createContext)({isLessonEntering:!1,isLessonExiting:!1});Fu.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)(Fu.Provider,{value:o,children:n})}function b3(){return(0,h.useContext)(Fu)}function kM(t){function e(n){const o=b3();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`withLessonTransitionState(${t.displayName||t.name})`,e}const y3=({children:t,onViewed:e})=>{const{isLessonEntering:n,isLessonExiting:o}=b3(),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 Uu=i(59288);class OM extends Uu.PureComponent{render(){return(0,s.jsx)(y3,{onViewed:this.handleViewed,children:Uu.cloneElement(Uu.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",E3=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:b,loadMedia:y,match:x,onContinue:L,partnerContent:E,prefersKeyboardNavigation:S,previewType:N,publishedAt:A,tenantId:k}=t,{blockId:M,family:W,items:D=[],settings:w,variant:Z}=n,U=`block-${M}`,z=(0,O.wA)(),G=h6({blockId:M,lessonId:C}),ue=W==="knowledgeCheck"&&w?.requireCorrectAnswer,ie=(0,h.useCallback)(Xe=>{const ye=Z===zM?D[0]:es()(ot()("id",Xe),D);z((0,Bo.re)({blockId:M,lessonId:C,items:[ye]})),W==="continue"&&L(M,Xe)},[M,z,W,D,C,L,Z]),ce=(0,h.useCallback)(()=>{ue||z((0,Bo.re)({blockId:M,lessonId:C,items:D}))},[M,z,ue,D,C]),Ne=(0,h.useCallback)(Xe=>{const ye=D?.[0],Re=ye&&"id"in ye?ye.id:void 0;Re&&z((0,Bo.RA)({blockId:M,itemId:Re,lessonId:C,playheadPercentage:Xe}))},[M,z,C,D]),we=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:y,match:x,originalVariant:void 0,partnerContent:E,prefersKeyboardNavigation:S,previewType:N,progress:b,publishedAt:A,recordMediaPlayheadPosition:Ne,tenantId:k}),Fe=HM({family:W,variant:Z})?OM:y3,Ke=ff(C,M),lt=H()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":p});return(0,s.jsx)("div",{className:lt,"data-block-id":M,"data-change-path":Ke,children:(0,s.jsx)(Fe,{block:n,onStep:ie,onViewed:ce,children:(0,s.jsx)(PM,{...we})})},U)},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}=rl()(FM,{slides:[],currentSlide:[]},t);return e};function Vu(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?Vu(t.concat(o),e,n):t}const xl=(t,e)=>et()(!1,["items",t,"isComplete"],e),VM=t=>({family:e,items:n})=>{const o=et()({},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"?et()(!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 L3({id:t,...e},n,o,r){if(e.family==="continue"){const a=et()("",["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 us()(Lt()(e),ZM(n));case"completeBlock":return e.length===0?!0:xl(YM(e),n);default:return!0}},KM=ke()(Co(),tt()("items")),GM=t=>ke()(QM,KM)(t),QM=nt()(ot()("isComplete",!0)),ZM=ke()(Lt(),GM),YM=ke()(tt()("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:V0()(_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}),T3=({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 $().Component{ref=$().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=H()("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:Vu([],e,o)).map(this.buildBlock.bind(this,this.props.lessonProgress,r)).filter($m.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(),ot()("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:b,match:y,partnerContent:x,prefersKeyboardNavigation:L,previewType:E,publishedAt:S,tenantId:N}=this.props,A=L3(o,a.slice(0,-1),e,n),k=a.length-1,M=r===k,W=T3({blocks:d,lessonProgress:e,currentBlockIndex:r});return(0,s.jsx)(E3,{animateBlockEntrance:l,block:A,color:c,courseId:u,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,hideBlock:W,index:r,isFirstLesson:!0,isLastBlock:M,labels:v,lessonId:C,lessonProgress:e,loadMedia:b,match:y,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=xs()(ot()("id",this.continueFromId),e),o=ks()(n),r=et()(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;ol.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)}),j3=ke()(I0.A,(0,O.Ng)(ok),kM)(nk);function ld({children:t}){const e=(0,h.useRef)(),n=(0,h.useCallback)(()=>{e.current?.focus?.()},[]);return D8(n),(0,s.jsx)("main",{className:"lesson-main",ref:e,tabIndex:"-1",children:t})}const rk=re("page"),I3=({type:t,children:e})=>(0,s.jsx)("div",{className:rk({lessonTypeQuiz:t==="quiz"}),"data-page":!0,"data-type":t,children:e});I3.propTypes={type:Le().string.isRequired,children:Le().node.isRequired};const bl=I3,qa=({type:t,children:e})=>{const n=t==="video"||t==="embed"||t==="blocks"||t==="progress-summary",o=H()("page__wrapper",{"page__wrapper--white":n});return(0,s.jsx)("div",{className:o,children:e})};qa.propTypes={type:Le().string.isRequired,children:Le().node.isRequired};const ei=({className:t,type:e,children:n})=>{const o=H()("page__content",t,{"page__content--timeline":e==="timeline"});return(0,s.jsx)("div",{className:o,children:n})};ei.propTypes={type:Le().string,children:Le().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:b,prefersKeyboardNavigation:y,previewType:x,publishedAt:L,tenantId:E,hideLessonHeaders:S})=>{const{id:N,items:A,type:k}=r,M={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:b,previewType:x,prefersKeyboardNavigation:y,publishedAt:L,tenantId:E,type:k};return(0,s.jsx)(bl,{type:k,children:(0,s.jsx)(qa,{type:k,children:(0,s.jsxs)(ld,{children:[(0,s.jsx)("div",{className:m,inert:S,style:p,children:u}),(0,s.jsx)(ei,{children:(0,s.jsx)(j3,{...M})})]})})})},ik=t=>({partnerContent:et()([],["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:H()("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)(S3,{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)(S3,{labelA11yRequirementCompleted:f,labelA11yRequirementNotCompleted:g,requirementMet:e})]}):null,S3=({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:Wd(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 bk=i(80721),yk=i.n(bk),Ek=i(2592);const N3=re("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:H()("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:b=Bs.lQ,progress:y=0,title:x=""})=>{const L=(0,st.useLabelsMap)(),E=o!==null,S=(0,h.useCallback)(()=>{a||b?.()},[a,b]),N=(0,h.useCallback)(Z=>{ec(Z)&&Z.preventDefault(),!a&&jr(Z)&&b?.()},[a,b]),A=t||r,k=`${Math.round(y)}${L?.progressSummaryPercentComplete||"% Complete"}`,M=L?.progressSummaryCompleted||"Completed: ",W=`${Yn()(new Date(o)).format("MM/DD/YY")}`,D=N3("card",{disabled:a}),w=N3("image-overlay",{"not-started":!(y||E),"in-progress-completed":y||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:H()("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}),!!y&&!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:M,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:!!y&&!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:`${y}%`}})})})})]})]})},jk=(0,Me._$)("IMAGES_URI"),Ik=["cardImageKey","color","coverImageKey","progress","score","title"],A3=(t,e)=>t===1?e:e.concat("s"),Wu=et()([],["course","course","lessons"]),Sk=t=>ke()(ht(),vc()(ko()(ot()("type","section"),Np()(bn()(i3(),t),"id"))),Wu),Nk=t=>{const e=Wu(t),{trackingQuizId:n}=t,{score:o}=t;if(n&&e.length){const r=es()(ot()("id",n),e),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},Ak=ke()(es()(nd()(ot()("type","section"))),Wu),Pk=_l()(2,t=>ke()(Ut()("","id"),es()(Boolean),yk()([Sk(t),Nk,Ak]))),Rk=t=>{const e=Yn().duration(t),n=e.hours(),o=e.minutes(),r=`${n} ${A3(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,st.useLabelsMap)(),g=(0,h.useMemo)(()=>Pk(u,a),[a,u]);Js()(a.color)&&(a.color=e);const v=Cn()(Ik,a),C=(0,h.useCallback)(()=>{m==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",d),top.location.assign(`/learning-path/${o}`)):(0,gt.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)(v6,{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} ${A3(c,"lesson")}`,labelDue:Wd(l),labelDuration:Rk(p),noCertDownload:!0,noFavoriteBtn:!0,onClick:C,...v})})]})})},kk=tt()("learningPathUpNext"),Ok=(0,O.Ng)(kk)(Mk),wk=`${(0,Me._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,Dk=ke()(Lt(),nt()(tt()("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:b}=n,y=Lo(),x=(0,st.useLabelsMap)(),L=Js()(C)&&Js()(b),E=L?u===100:(0,Ee.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()(ot()("type","quiz"),ot()("id",b)),a),[b,a]),M=Cs(k?.title),W=(0,h.useMemo)(()=>et()(100,["settings","passingScore"],k),[k]),D=et()(null,["lessons",b,"passed"],o),w=(0,h.useMemo)(()=>ke()(Tr()(ot()("percentComplete",100),tt()("score"),Nt()(null)),et()({},["lessons",b]))(o),[o,b]),{outOfAttempts:Z}=Ii(o,k,b);let U=b?D:!0,z=Ms();const G=H()("progress-summary",{"progress-summary__no-req":L}),ue=n.type===Qe.y4,ie=`You've completed ${N} of ${S} lessons.`,Ne=ue?E?"Complete":"Incomplete":ie;return(0,s.jsx)(Ar,{title:tl(y+" - Progress Summary"),children:(0,s.jsxs)("div",{className:G,children:[E&&f&&U&&!z&&(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&&U?x?.progressSummaryCongratulations||"Congratulations!":x?.progressSummary||"Progress Summary"}),L?(0,s.jsx)("div",{className:"progress-summary__lessons-completed",children:Ne}):E?(0,s.jsxs)("div",{className:"progress-summary__header-completion-date",children:[U&&(0,s.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:wk}),Yn()(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:M,trackingQuizId:b})]}),(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:gt.NS,role:"link",type:"button",children:x?.progressSummaryBackToLearning||"Back to my learning"}),E&&(!v&&p||v&&l)&&p&&U&&!d&&(0,s.jsx)("span",{className:"progress-summary__completion-control",children:(0,s.jsx)(sn,{})})]})]}),E&&!!v&&(0,s.jsx)(Ok,{color:e,learningPathId:v})]})})},Hk=(t,{course:{riseComCourseId:e,riseComLearningPathId:n}})=>({fetchLpUpNext:ke()(t,ck.R,Nt()({courseId:e,learningPathId:n}))}),zk=ke()(Cn()(["learningPathComplete","lpHasFailedQuiz"]),tt()("learningPathUpNext")),Fk=(0,O.Ng)(zk,Hk)(Bk),P3=({contentClassName:t,...e})=>(0,s.jsx)(bl,{type:cd.type,children:(0,s.jsx)(qa,{type:cd.type,children:(0,s.jsx)(ld,{children:(0,s.jsx)(ei,{className:t,type:cd.type,children:(0,s.jsx)(Fk,{...e})})})})}),cd={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"};var Uk=i(47374),dd=i.n(Uk),Vk=i(28507),Wk=i.n(Vk),$k=i(77778),Kk=i.n($k);const R3=At("Progress");var Gk=i(81587),M3=i.n(Gk),Qk=i(48701),Zk=i.n(Qk),Yk=i(82638),ud=i.n(Yk),_k=i(45787),k3=i.n(_k),Xk=i(39010),Jk=i.n(Xk);const qk=ke()(ha(),Gc()),eO=et()(!1,["settings","isCaseSensitive"]),O3=t=>Tr()(Nt()(eO(t)),ha(),qk),tO=({item:t,itemProgress:e,getL10nValue:n})=>(0,Bs.Ve)(t,Ut()([],"answers"),Ds()(ke()(O3(t),n,tt()("title"))),bn()((0,Bs.rq)(O3(t),tt()("text"),e))),sO=({item:t,itemProgress:e,getL10nValue:n})=>tt()("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})=>xs()(ot()("id",e),t),rO=({item:t,itemProgress:e})=>us()(tt()("selectedIndex",e),oO(t)),w3=Ip()(so()),aO=Vi()(xs()),iO=t=>(0,Bs.Ve)(t,Ut()([],"corrects"),Ds()(ke()(aO(Ut()([],"answers",t)),ot()("id"))),nt()(Zk()(0)),td()(w3)),lO=t=>td()(w3,Ut()([],"selectedIndices",t)),cO=({item:t,itemProgress:e})=>us()(lO(e),iO(t)),dO=({item:t,itemProgress:e})=>tt()("selectedIndices",e)&&cO({item:t,itemProgress:e}),uO=t=>e=>{const n=!t.progress?.items?.[e.id]?.isComplete;return et()(!1,["settings","shuffleAnswerChoices"],t)&&n},hO=t=>Ps()([[uO(t),Pr()({answers:rd()})],[wo(),so()]]),mO=t=>Pr()({items:Ds()(hO(t))})(t),pO=t=>{const{items:e,progress:n}=t,{items:o}=n||{},r=ke()(String,tt()("id")),a=c3(o,tt()("isComplete")),d=d3(r,a)(e),c=ke()(Ls(),tt()("isComplete")),u=c3(o,c),p=d3(r,u)(e);return d.concat(rd()(p))},fO=Bc()("items",pO),gO=t=>ke()(dd()(es(),t),ot()("id"),tt()("id")),D3=gn()(t=>M3()(gO(t),so())),vO=t=>ke()(ud()(vl()),D3(t)),CO=rs()(xh()(tt()("answers"),tt()("answers")),ud()(gn()(t=>Ds()(vO(t)))),bh()("answers")),xO=t=>rs()(D3(t),M3()(CO,ud()(vl())),ud()(vl())),bO=dd()(t=>Ds()(xO(t))),yO=nt()(ot()("drawn",!0)),hd=xs()(ot()("type",Et.Ay.DRAW_FROM_QUESTION_BANK)),EO=({items:t,currentItems:e,progress:n})=>{let o=[...t],r=hd(o);for(;r!==-1;){const[l,d]=k3()(r,o),c=Jk()(d),u=yO(e);o=[...l,...u,...c],r=hd(o)}const a=B3({items:o,progress:n});return{items:o,progress:a}},LO=t=>(e,{id:n},o)=>{const{originalItemProgress:r}=t;let a={};r&&(a=r[o]||{});const l=ke()(es()(ot()("index",o)),Co())(t.items);return e[n]={...a,...l,id:n,index:o},e},B3=({questionIndexList:t,items:e,progress:n})=>({...n,questionsDrawn:!0,questionList:t,items:e.reduce(LO(n),{})}),H3=t=>{const{id:e,items:n,progress:o,initializeDrawnQuizQuestions:r}=t;let a=[...n],l=hd(a);const d=[];let c=0;for(;l!==-1;){const[m,p]=k3()(l,a),[f,...g]=p,{drawCount:v,questions:C}=f,b=[],y=[],x=[];for(;b.length<v;)if(o.questionsDrawn){const L=o.questionList[c];Mu()(E=>{const S=C[E];b.push({...S,drawn:!0,id:`${f.id}-${S.id}`})},L),x.push(...L)}else{const L=kp({drawCount:v,questions:C,drawnQuestions:y});b.push({...L,drawn:!0,id:`${f.id}-${L.id}`}),y.push(L.id),x.push(L.index)}a=[...m,...b,...g],d.push(x),c++,l=hd(a)}const u=B3({questionIndexList:d,items:a,progress:o});return r({lessonId:e,lessonProgress:u}),{items:a,progress:u}},TO=et()(!1,["settings","randomizeQuestionOrder"]),z3=rs()(Yo()(TO,fO),mO,tt()("items")),F3=(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}),$u=(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})}),jO=(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}),IO=(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}),Ku=j.string,hn=j.string,Gu=t=>(0,j.oneOfType)([t,(0,j.shape)({l10nId:j.string})]),hQ=(0,j.shape)({id:hn,originalId:hn,author:hn,selectedAuthorId:hn,color:j.string,navigationMode:j.string,title:Gu(j.string),sharePassword:j.string,description:Gu(j.string),shareId:hn,copyOf:j.string,order:j.string,fonts:j.object,media:$u,coverImage:(0,j.shape)({alpha:j.number,displaySidebar:j.bool,media:$u}),lessons:(0,j.arrayOf)(hn),jobs:(0,j.arrayOf)(hn),labelSetId:hn,deleted:j.bool,createdAt:Ku,updatedAt:Ku,markComplete:j.bool,isDefault:j.bool,ready:j.bool,reviewId:hn,exportSettings:IO,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:Ku,allowCopy:j.bool,enableVideoPlaybackSpeed:j.bool,jobType:j.string,partnerContentId:hn,cardImage:$u,theme:jO,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:yl,MATCHING:El,MULTIPLE_CHOICE:Ll,MULTIPLE_RESPONSE:Tl}=Et.Ay,{ANY:SO,CHOICE:NO,CORRECT_INCORRECT:AO}=Cp,PO=3,U3=kn()("quiz-item__"),ti=et()(0,["progress","activeIndex"]),RO=ke()(Lt(),l3(),Ut()({},"matches"));class MO extends $().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=$().createRef(),this.id=Ge()("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:Le().bool,getClassName:Le().func,hasStart:Le().bool,id:Le().string.isRequired,index:Le().number,isReduceMotion:Le().bool.isRequired,isTimedQuiz:Le().bool,item:Le().object.isRequired,items:Le().arrayOf(Le().object),labels:F3,onChoiceSelect:Le().func,onFillInChange:Le().func,onMatchSet:Le().func,onResponseToggle:Le().func,prefersKeyboardNavigation:Le().bool,progress:Le().object,quizTop:Le().number,reportAnswer:Le().func,retryAttempts:Le().number,scrollId:Le().string,setNextIndex:Le().func,settings:Le().object,showNextButton:Le().bool,submitAction:Le().func,title:Gu(Le().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 yl:return Eu(tt()("text",e));case El:return RO(e)===Lt()(tt()("answers",n));case Tl:return ke()(Mr()(Eu,Br),tt()("selectedIndices"))(e);case Ll:default:return Eu(tt()("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 NO:return et()("",[n,"feedback"],r);case AO:return e?l:d;case SO:default:return a}}getIndex(){return this.props.hasStart?ks()(this.props.index):this.props.index}getIsComplete({itemProgress:e}){return Ut()(!1,"isComplete",e)}getIsDoneCard(){const e=this.getIndex(),n=ti(this.props);return e<n}getIsCorrect({itemProgress:e}){const{item:n,getL10nValue:o}=this.props;switch(n.type){case yl:return sO({item:n,itemProgress:e,getL10nValue:o});case El:return nO({itemProgress:e});case Tl:return dO({item:n,itemProgress:e});case Ll:default:return rO({item:n,itemProgress:e})}}getItemProgress({props:e}){return et()({},["items",e.item.id],e.progress)}getSelection({itemProgress:e}){const{type:n}=this.props.item;switch(n){case yl: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=ti(this.props),o=ti(e),r=this.getIndex();return o!==n&&r===n}onChoiceSelect({selectedIndex:e}){const{id:n,item:o,onChoiceSelect:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e})}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={}){ct.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}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e})}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 yl: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:b}=m,y={startTime:g,stopTime:Date.now()},x=Ut()(-1,"retryCount",m),L=parseInt(x,10),E=parseInt(u,10),S=us()(L,E),N=a({duration:y,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:b,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=ti(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:U3("card-wrap"),children:(0,s.jsx)(ap,{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:U3("wrap"),children:this.renderItem()})}renderItem(){const{enableVideoPlaybackSpeed:e,hasStart:n,isReduceMotion:o,isQuestionBankQuiz:r,item:a,items:l,labels:d,onTakeAgain:c,progress:u,settings:m,showNextButton:p}=this.props,{errorIncomplete:f}=this.state,{quizAcceptableResponses:g,quizAnswerPlaceholder:v,quizCorrect:C,quizIncorrect:b,quizNext:y,quizRequireAnswer:x,quizRestart:L,quizQuestion:E,quizSubmit:S}=d,{id:N,media:A,title:k,type:M,settings:W}=a,{correctAnswerColor:D,correctAnswerColorContrast:w,incorrectAnswerColor:Z,incorrectAnswerColorContrast:U,revealAnswers:z=Et.iV.NONE}=m,G=this.getIndex(),ue=ti(this.props),ie=G===ue,ce=this.getItemProgress({props:this.props}),Ne=this.getIsComplete({itemProgress:ce}),we=this.getIsCorrect({itemProgress:ce}),$e=z==Et.iV.ALL||z==Et.iV.INCORRECT,Fe=ie&&Ne&&$e,Ke=ie&&!Ne&&this.getCanSubmit({itemProgress:ce}),lt=this.onSubmit({canSubmit:Ke,isCorrect:we,itemProgress:ce,item:a}),Xe=tt()("selectedIndex",ce),ye=this.getFeedback({isCorrect:we,selectedIndex:Xe}),Re=`q-${N}`,Ve=this.getSelection({itemProgress:ce}),He=H()("quiz-card__retake-container",{"quiz-card__retake-container--active":Ne}),mt=H()("quiz-card__retake","brand--hoverColor",{"quiz-card__retake--active":Ne});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(yN,{isActive:ie,labels:d,num:n?G:G+1,quizQuestion:E,total:Lt()(l)}),(0,s.jsx)(EN,{allowTabNavigation:ie,id:Re,value:k}),(0,s.jsx)(pp,{allowTabNavigation:ie,enableVideoPlaybackSpeed:e,index:String(G),labels:d,media:A,settings:W}),(0,s.jsx)(dp,{type:M,children:(0,s.jsx)("div",{ref:this.wrapper,children:this.renderType({columnBehavior:W?.columnBehavior,correctAnswerColor:D,correctAnswerColorContrast:w,incorrectAnswerColor:Z,incorrectAnswerColorContrast:U,isActive:ie,isComplete:Ne,isCorrect:we,itemProgress:ce,labels:d,onSubmit:lt,revealAnswers:z,questionHtmlId:Re,quizAcceptableResponses:g,quizAnswerPlaceholder:v})})}),(0,s.jsx)("div",{"aria-live":"assertive",children:f&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-test-id":"quiz-validation-error",children:[(0,s.jsx)(bt,{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:x})]})}),(0,s.jsx)(cp,{canProceed:this.state.forceShowFeedback||Fe,feedbackRef:rt=>{this.feedback=rt},feedbackValue:this.state.forceFeedbackMessage||ye,isActive:ie,isComplete:Ne,isCorrect:this.state.forceShowFeedbackCorrect||we,item:a,labels:d,progress:ce,quizCorrect:C,quizIncorrect:b,revealAnswers:z,selection:Ve}),(0,s.jsx)(rp,{allowNext:!c,canProceed:Fe,canSubmit:Ke,isReduceMotion:o,item:a,onNext:p?this.onNextFeedbackClick.bind(this,ie):null,onSubmit:lt,quizNext:u.percentComplete===100&&r?L:y,quizSubmit:S}),c&&(0,s.jsx)("div",{className:He,children:(0,s.jsx)("button",{className:mt,onClick:c,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)(St,{allowTabNavigation:e,className:"quiz-multiple-choice-option__label",value:n})}renderMROptionText(e,{title:n}){return(0,s.jsx)(St,{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,itemProgress:p,labels:f,onSubmit:g,revealAnswers:v,questionHtmlId:C,quizAcceptableResponses:b,quizAnswerPlaceholder:y}=e,{color:x,item:L,prefersKeyboardNavigation:E}=this.props,{answers:S,correct:N,corrects:A,type:k}=L,M=d&&!c,W=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(k){case yl:return(0,s.jsx)(xp,{allowTabNavigation:d,correctAnswerColor:o,correctAnswerColorContrast:r,errorMessageId:W,incorrectAnswerColor:a,incorrectAnswerColorContrast:l,isComplete:c,isCorrect:u,labels:f,onChange:this.onFillInChange,onEnterToSubmit:g,options:S,questionHtmlId:C,quizAcceptableResponses:b,quizAnswerPlaceholder:y,revealAnswers:v,value:Ut()("","text",p)});case El:return(0,s.jsx)(Lp,{answers:S,columnBehavior:n,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:l,isActive:d,isComplete:c,matches:p?.matches??{},onChange:this.onMatchSet,prefersKeyboardNavigation:E,revealAnswers:v});case Tl:return(0,s.jsx)(jp,{allowTabNavigation:d,correctAnswerColor:o,correctIds:A,errorMessageId:W,incorrectAnswerColor:a,isComplete:c,isCorrect:u,labels:f,onChange:this.onResponseToggle,onEnterToSubmit:g,options:S,questionHtmlId:C,renderOptionText:this.renderMROptionText.bind(this,d),revealAnswers:v,selectedIndices:tt()("selectedIndices",p)});case Ll:default:return(0,s.jsx)(Tp,{allowTabNavigation:M,color:x,correctAnswerColor:o,correctId:N,errorMessageId:W,incorrectAnswerColor:a,isComplete:c,isCorrect:u,isReduceMotion:m,labels:f,onChange:this.onChoiceSelect,onEnterToSubmit:g,options:S,questionHtmlId:C,renderOptionText:this.renderMCOptionText.bind(this,d),revealAnswers:v,selectedIndex:tt()("selectedIndex",p)})}}scrollActionsIfComplete({prevProps:e}){const{isReduceMotion:n,scrollId:o,settings:r}=this.props,{revealAnswers:a=Et.iV.NONE}=r,l=this.getIndex(),d=ti(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,b=v+C;document.getElementById(o||"page-wrap")?.scrollTo({top:b,behavior:n?"instant":"smooth"})};!m&&f&&(this.timeoutScrollActionsIfComplete=setTimeout(g,750))}scrollTop(){const{isReduceMotion:e,quizTop:n,scrollId:o}=this.props,r=n||PO;document.getElementById(o||"page-wrap")?.scrollTo({top:r,behavior:e?"instant":"smooth"})}}const kO=ke()(M2)(MO),V3=(0,h.createContext)({handleExpiredQuiz:Bs.lQ,hideTimer:Bs.lQ,quizTime:0,resetQuizTimer:Bs.lQ,timerDuration:0,timerHidden:!1,timerRunning:!1});function OO({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:b,endIndex:y,lessonId:x,lessonProgress:L,startIndex:E}=(0,h.useMemo)(()=>{const G=o?.currentLesson,ue=o?.lessons?.[G],ie=ue?.activeIndex||0,ce=Object.keys(ue?.items||{}).length+1;return{activeIndex:ie,lessonId:G,endIndex:ce,lessonProgress:ue,startIndex:0}},[o]),S=(0,_t.A)(x),N=(0,_t.A)(b),A=(0,h.useCallback)(()=>{c(C*60)},[C]),k=(0,h.useCallback)(()=>{c(G=>G-1)},[c]),M=(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]),U=(0,h.useCallback)(()=>c(L.timeRemaining||C*60),[L,C,c]);(0,h.useEffect)(()=>{if(!n)return;const G=S!==x,ue=G&&d,ie=G&&n;n&&!G&&g!==x&&v(x),ue&&Z(),ie&&U()},[n,g,x,S,d,U,Z]),(0,h.useEffect)(()=>{if(n)switch(b){case E:D();break;case y:A(),D();break;default:M(),N!==b&&S===x&&w()}},[b,y,n,x,N,S,A,E,M,D,w]),(0,h.useEffect)(()=>{n&&d<1&&D()},[n,d,D]);const z=(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)(V3.Provider,{value:z,children:t})}const W3=()=>(0,h.useContext)(V3),wO=t=>t.isTimedQuiz?(0,s.jsx)(OO,{...t,children:t.children}):(0,s.jsx)(s.Fragment,{children:t.children}),en=re("quiz-timer"),Qu=(t,e)=>`${t.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`,DO=t=>{const e=Math.floor(t/60),n=t%60;return Qu(e,n)},$3=t=>{const e=Math.floor(t/60),n=t%60;return Qu(e,n)},BO=t=>Qu(t,0),K3=({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[b,y]=(0,h.useState)(!1),{hideTimer:x,quizTime:L,timerDuration:E,timerHidden:S,timerRunning:N,handleExpiredQuiz:A}=W3(),k=(0,h.useMemo)(()=>E*60,[E]),{isCover:M,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&&!M,[n,M]),Z=()=>{y(!1),A()};if((0,h.useEffect)(()=>{N&&L===0&&y(!0)},[N,L]),!C||w||o)return null;const U={"header-area":W,"cover-area":M,"hide-timer":D,"exit-course":e},z={display:[M,W&&!n].some(so())?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:DO(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:$3(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:[$3(k-L)," /"," ",BO(E)]})]})})[M?Et.sS.SUMMARY:v];return(0,s.jsxs)("div",{className:en(U),style:z,children:[W&&S?(0,s.jsxs)("button",{className:en("hide"),onClick:()=>x(!1),type:"button",children:[(0,s.jsx)(bt,{className:en("icon"),name:"stopwatch-regular"}),g]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:en("time"),children:[(0,s.jsx)(bt,{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})]}),!M&&b&&Xn.createPortal((0,s.jsxs)(B0,{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})]}),yr({childType:"dialog"}))]})};var HO=i(59288);const zO=t=>({start:t<2?0:t-2,end:t+2}),md=et()(0,["progress","activeIndex"]),Zu=t=>e=>H()("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}),Yu=et()(0,["progress","retryAttempts"]),FO=Ms();class UO extends HO.Component{constructor(e){super(e);const{initializeDrawnQuizQuestions:n}=e,o=H3({...e,initializeDrawnQuizQuestions:n}),r={...e,...o};this.state={items:z3(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=Yu(this.props),o=Yu(e);if(n!==o){const r=H3({...e}),a={...e,...r};this.setState({items:z3(a),progress:a.progress})}else{const{items:r,progress:a}=EO({...e,currentItems:this.state.items}),l=bO(this.state.items,r);this.setState({items:l,progress:a})}}static get defaultProps(){return{initializeDrawnQuizQuestions:Bs.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=md(this.state),{start:u,end:m}=zO(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)(K3,{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=md(this.state),r=Zu(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:b,progress:y,quizHeader:x,settings:L,title:E}=this.props,{items:S}=this.state,N=md(this.state),A=Zu(N),k=this.getQuizTop();return(0,s.jsx)(kO,{color:r,enableVideoPlaybackSpeed:a,getClassName:A,hasStart:!!x,id:l,index:o+e,isCard:!0,isQuestionBankQuiz:d,isReduceMotion:FO,isTimedQuiz:L?.timer,item:n,items:S,labels:c,onChoiceSelect:m,onFillInChange:p,onMatchSet:f,onResponseToggle:g,prefersKeyboardNavigation:b,progress:y,quizTop:k,reportAnswer:u,retryAttempts:Yu({progress:y}),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=md(this.state),r=Zu(o);return(0,s.jsx)("div",{className:r(0),children:(0,s.jsx)("div",{className:"quiz__item-wrap",children:e(n)})})}}const VO=UO;var _u=i(36704),Ss=i(6408),WO=i(59288);class si extends WO.PureComponent{constructor(e){super(e),this.animationTimeout=null,this.state={counted:!1}}static get defaultProps(){return{canvasWidth:590,canvasHeight:500,onAnimationDone:Bs.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=H()("odometer__score brand--ui",{"odometer__score--pass":u&&r,"odometer__score--fail":u&&r===!1}),f=H()("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=(b,y)=>{let x=si.easeInOutCubic(Math.min(b,1));const E=(225+270*(x*y)-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,M=o*.5+m*Math.cos(k),W=r*.5+m*Math.sin(k),D=M+3,w=W+3;this.passmark&&!l?(this.passmark.style.insetInlineStart=`${M/o*100}%`,this.passmark.style.insetBlockStart=`${W/r*100}%`):this.passmark&&l&&(this.passmark.style.insetInlineEnd=`${M/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(M,W),c.lineTo(M+35,W-35),c.strokeStyle=Fs()?"CanvasText":"#c2c3c4",c.lineWidth=1,c.stroke(),c.closePath(),c.beginPath(),c.moveTo(M+35,W-35),c.lineTo(M+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*y-p,!1),c.lineWidth=3,c.strokeStyle=Fs()?"CanvasText":"#000",Math.floor(x*y*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*y*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=b=>y=>{!v&&b&&(v=y);const L=b?(y-v)/2e3:0;g(L,this.props.score/100),L<1&&b&&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=si.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=si.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=si.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 $O=Uc(si);function KO({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,b]=(0,h.useState)(!1),{activeIndex:y,reportResults:x,score:L}=Ao(o)??{},[E,S]=(0,h.useState)(r+1===y),N=(0,_t.A)(E),A=(0,h.useRef)(),k=(0,h.useRef)(),M=(0,h.useId)(),W=(0,st.useLabelsMap)(),{a11yQuizFailed:D,a11yQuizPassed:w,quizPassing:Z,quizResults:U,quizScore:z}=W,G=L>=m,ue=`${z} ${L}%`,ie=`quiz-results-desc-${M}`,ce=(0,h.useCallback)(()=>{A.current=setTimeout(()=>{b(!0),u()},500)},[u]),Ne=(0,h.useCallback)(()=>{clearTimeout(A.current),A.current=null,b(!0)},[]);return(0,_u.A)(()=>{clearTimeout(A.current)}),(0,h.useEffect)(()=>{S(r+1===y)},[r,y]),(0,h.useLayoutEffect)(()=>{E!==N&&(E?k.current?.focus?.():b(!1))},[E,N]),(0,s.jsxs)("div",{className:GO({isAtEnd:E}),children:[(0,s.jsxs)("div",{className:"quiz-results__header",children:[(0,s.jsx)("h1",{"aria-describedby":ie,className:"quiz-results__label noOutline brand--ui",ref:k,tabIndex:-1,children:U}),(0,s.jsxs)("div",{className:"visually-hidden-always",id:ie,children:[(0,s.jsx)("div",{children:`${Z}: ${m}%`}),(0,s.jsx)("div",{children:`${z}: ${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)($O,{atEnd:E,color:t,complete:x,isPass:G,onAnimationDone:ce,passingScore:m,quizPassing:Z,quizScore:z,score:L,scoreLabel:ue})}),(0,s.jsx)(ZO,{allowTabNavigation:E,continueType:e,currentPassingScore:n,id:o,isAtEnd:E,labels:W,mode:a,nextLesson:l,nextLessonRestrictions:d,onNextClick:c,onTryAgainFocus:Ne,retryAttempts:p,retryCount:f,showFooter:C,showNavigationButtons:g,sidebarEnabled:v})]})}const GO=({isAtEnd:t})=>H()("quiz-results",{"quiz-results--active":t}),QO=({isAtEnd:t,showFooter:e})=>H()("quiz-results__footer",{"quiz-results__footer--active":t,"quiz-results__footer--hidden":!e}),ZO=({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:b="Finish",quizContinue:y,quizTakeAgain:x}=r,{resetQuizTimer:L}=W3(),E=(0,h.useCallback)(A=>()=>{L(),(0,O.JD)((0,Ss.FU)(A))},[L]),S=e==="continue"&&a!=="preview-lesson"&&!(v&&!g),N=S&&Me.BI&&!l&&g&&!(0,Ee.Hm)();return(0,s.jsxs)("div",{className:QO({isAtEnd:o,showFooter:f}),children:[(p===-1||m<p)&&(0,s.jsx)(qp,{allowTabNavigation:t,onClick:E(n),onFocus:u,text:x}),S&&C&&l&&(0,s.jsx)(q2,{bgType:"transparent",text:yi({labels:r,restrictions:d})}),S&&!C&&l&&(0,s.jsx)(xu,{href:`/lessons/${encodeURIComponent(l)}`,onClick:c,text:y}),N&&(0,s.jsx)(xu,{href:"/lessons/progress-summary",onClick:c,text:b})]})};var YO=i(59288);const _O=t=>{const e=YO.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)(KO,{...t,onResultsDisplayed:e})})})},G3=ke()(dd()(Gn(),0),Ut()(0,"retryAttempts")),XO=({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:b,quizTimerLimit:y,quizTimerMinute:x,quizTimerMinutePlural:L,quizTimerRemaining:E,quizTimerShow:S},lessonNumber:N,lessonProgress:A,showAuthor:k,showLessonCount:M,title:W,totalLessons:D})=>{const w=(0,h.useRef)(),Z=Cs(W),U=a&&G3(A),G=n?.lessons?.find(ie=>ie.id===r)?.settings?.timer;(0,h.useEffect)(()=>{U&&w&&w.current&&Gi()(w.current.focus)&&w.current.focus()},[U,w]);const ue=ie=>()=>{(0,O.JD)((0,Ss.QI)(ie))};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&&M&&qO({lessonName:c,lessonNumber:N,lessonPreposition:u,totalLessons:D})}),(0,s.jsx)("h1",{ref:w,tabIndex:-1,children:(0,s.jsx)(St,{className:"quiz-header__title",value:(0,_n.aj)(Z)})}),k&&e&&t?(0,s.jsxs)("div",{className:"quiz-header__author brand--ui",children:[(0,s.jsx)("img",{alt:"",src:(0,Ee.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)(K3,{area:"cover",exitCourseEnabled:n?.lmsOptions?.enableExitCourse,isStartScreenActive:a,labelQuizTimerElapsed:f,labelQuizTimerExpired:g,labelQuizTimerExpiredAction:v,labelQuizTimerExpiredMessage:C,labelQuizTimerHide:b,labelQuizTimerLimit:y,labelQuizTimerMinute:x,labelQuizTimerMinutePlural:L,labelQuizTimerRemaining:E,labelQuizTimerShow:S,timerEnabled:G}),(0,s.jsx)(St,{allowTabNavigation:a,className:"quiz-header__description",value:o}),(0,s.jsxs)("button",{className:"quiz-header__start-quiz brand--color",onClick:a?ue(r):Bs.lQ,tabIndex:Oa(a),type:"button",children:[(0,s.jsx)("span",{className:"brand--ui",children:JO({lessonProgress:A,quizStart:m,quizTakeAgain:p})}),(0,s.jsx)("i",{className:"icon icon-chevron-right"})]})]})})})})})},JO=({lessonProgress:t,quizStart:e,quizTakeAgain:n})=>G3(t)?n:e,qO=({lessonName:t,lessonNumber:e,lessonPreposition:n,totalLessons:o})=>(0,s.jsx)("div",{className:"quiz-header__count",children:`${t} ${e} ${n} ${o}`}),ew=XO,tw=t=>{const e=t.findIndex(n=>n==="answers");return e===-1?null:t[e+1]?.id},sw=t=>{const e=t.findIndex(n=>n==="questions");return e===-1?null:t[e+1]?.id},nw=t=>{const e=t.at(-1);return typeof e=="string"&&e.startsWith?.("feedback")},ow=({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},rw=(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)},aw=({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=sw(c),{item:m,question:p,progressId:f}=ow({itemId:d,questionBankId:u},e);if(m&&(n((0,Ss.QI)(t)),nw(c))){const g=tw(c),v=g?p.answers.find(({id:x})=>x===g)??null:null,C=c.at(-1),b=C==="feedbackCorrect",y=rw(v,p,C);p.type==="MULTIPLE_RESPONSE"&&n((0,Ss.RW)({lessonId:t,itemId:f})),y.forEach(x=>{o({lessonId:t,question:p,progressId:f,answer:x},b)}),n((0,Ss.kK)({finalRetryAttempt:!1,lessonId:t,isCorrect:b,itemId:f,passToContinue:!0}))}};(0,h.useEffect)(()=>(window.addEventListener(ss,r),()=>{window.removeEventListener(ss,r)}))},iw=et()(0,["lessonProgress","activeIndex"]),lw=et()(0,["lessonProgress","retryAttempts"]),cw=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:b}=t;return aw({lessonId:r,items:a}),(0,s.jsx)(VO,{color:n,course:o,id:r,initializeDrawnQuizQuestions:b,items:a,labels:l,onChoiceSelect:m,onFillInChange:u,onMatchSet:p,onResponseToggle:C,onSetIndex:e,onSubmit:g,prefersKeyboardNavigation:c,progress:d,quizEnd:dw(t),quizHeader:uw(t),reportAnswer:Ee.bb,settings:f,title:v})},dw=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)(_O,{color:n,continueType:p,current:a,currentPassingScore:o,id:r,length:e.length,mode:d,nextLesson:c,nextLessonRestrictions:u,onNextClick:m,passingScore:f,retryAttempts:lw({lessonProgress:l}),retryCount:Number(g),showNavigationButtons:v,sidebarEnabled:C})},uw=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,y=iw(t)===0;return(0,s.jsx)(ew,{authorName:n,avatar:o,course:C,description:r,id:a,isAtStart:y,isLesson:l,items:e,labels:d,lessonNumber:c,lessonProgress:u,settings:v,showAuthor:m,showLessonCount:p,title:f,totalLessons:g})},hw={advanceQuizLessonStep:Ss.QI,initializeDrawnQuizQuestions:Ss.x6,selectQuizAnswer:Ss.Yu,setQuizAnswerMatches:Ss.NC,setQuizAnswerText:Ss.Nj,submitQuizAnswer:Ss.kK,toggleQuizAnswerSelection:Ss.mg},mw=(0,O.Ng)(null,hw)(cw),pw=({id:t,passingScore:e})=>dd()(k1(),(0,Ee.GJ)({id:t,passingScore:e})),fw=({id:t,settings:e,lessonProgress:n={}})=>Kk()(Wk()(["passingScore"]),pw({id:t,...n}),e),gw=({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:b,onNextClick:y,prefersKeyboardNavigation:x,showAuthor:L,showLessonCount:E,showNavigationButtons:S,sidebarEnabled:N,totalLessons:A,course:k})=>(0,s.jsx)(bl,{type:c,children:(0,s.jsx)(qa,{type:c,children:(0,s.jsx)(ld,{children:(0,s.jsxs)(ei,{items:a,type:c,children:[(0,s.jsx)(R3,{id:r,lessonProgress:g,type:"quiz"}),(0,s.jsx)(mw,{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:b,onNextClick:y,prefersKeyboardNavigation:x,settings:fw({id:r,lessonProgress:g,settings:l}),showAuthor:L,showLessonCount:E,showNavigationButtons:S,sidebarEnabled:N,title:d,totalLessons:A})]})})})});var vw=i(27702),Cw=i.n(vw);function xw({authors:t,author:e,selectedAuthorId:n}){return Cw()(t,{id:n||e})||{}}const Q3={addEventListeners(t,e){t.addEventListener("animationend",e,!1)},removeEventListeners(t,e){t.removeEventListener("animationend",e,!1)}},bw=At("LessonHeader"),yw=re("lesson-header"),Ew=({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:b})=>{const y=ir(),x=Do(),L=y===Qe.y4,E=m===I.xj.IMAGE,S=yw("top-wrap"),{alpha:N,ariaLabel:A,media:k,role:M}=br("lessonHeaderImage"),W=k?.image,D=(0,h.useMemo)(()=>{if(W&&E){const w=c===I.df.LIGHT?I.qH:I.KJ;return(0,K0.A)({alpha:N,color:w,url:(0,Yt.ME)(W)})}},[W,E,c,N]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Pg,{ariaLabel:E?A:void 0,imgRole:E?M:void 0,sectionStyles:D,topWrapClassName:S,children:(0,s.jsx)(bw,{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:b,totalLessons:f})}),n]})},ni=re("one-page-authors");function Z3({className:t}){const e=(0,Te.vU)(),n=(0,Te._z)(),o=(0,Te.$H)(),r=(0,Te.PH)();if(o?.id==="none")return null;const a=n?.isPartnerContentAuthor&&r!=null,l=ni({}).mix(t);return a?(0,s.jsx)("div",{className:l,children:(0,s.jsx)("ul",{className:ni("list"),role:"list",children:r.map((d,c)=>(0,s.jsxs)("li",{className:ni("item"),role:"listitem",children:[(0,s.jsx)(Xu,{avatarUrl:(0,Yt.ny)({width:"76",height:"76",imageKey:d?.image})}),(0,s.jsx)(Ju,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:d?.name})]},c))})}):(0,s.jsxs)("div",{className:l,children:[(0,s.jsx)(Xu,{avatarUrl:(0,Me.o1)(o?.avatar)}),(0,s.jsx)(Ju,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:o?.authorName})]})}Z3.propTypes={className:Le().string};function Xu({avatarUrl:t}){return t?(0,s.jsx)("div",{className:ni("avatar"),style:{backgroundImage:`url(${t})`}}):(0,s.jsx)("div",{className:ni("avatar-fallback"),children:(0,s.jsx)(Ud,{decorative:!0})})}Xu.propTypes={avatarUrl:Le().string};function Ju({a11yAuthorPrefix:t,name:e}){const n=e||"Unknown User",o=ni("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})]})}Ju.propTypes={a11yAuthorPrefix:Le().string.isRequired,name:Le().string};const Y3=At("OnePageAuthors",Z3),Lw=re("one-page-title"),_3=({className:t,htmlId:e})=>{const n=(0,Te.DX)(),o=(0,xt.QQ)(n.title),r=ga("title"),a=(0,ds.uW)(n.title)?{"data-l10n-id":n.title.l10nId}:{"data-change-path":r},l=Lw({}).mix(t);return(0,s.jsx)("h1",{...a,className:l,id:e,tabIndex:-1,children:o})};_3.propTypes={className:Le().string,htmlId:Le().string.isRequired};const X3=At("OnePageTitle",_3),qu=re("one-page-lesson-header-info");function Tw(){const t=(0,Te.DX)(),e=qu({}),{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,it.Wn)(t?.color);return(0,s.jsxs)("div",{className:e,children:[(0,s.jsx)(X3,{className:qu("title").toString(),hasDarkText:d}),(0,s.jsx)(Y3,{className:qu("authors").toString(),hasDarkText:d})]})}const jw=At("OnePageCoverInfo",Tw),Iw=At("CoverSVG"),e1=re("one-page-lesson-header"),Sw=re("page"),Nw=e1("main").mix("lesson-header__main"),Aw=e1("container").mix(Sw("header-container")),J3=()=>{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=e1({accent:l,image:a,white:r,"overlay-light":a&&d}),u=a?(0,It.b9)({alpha:e,color:o,media:n}):{};return(0,s.jsxs)("header",{className:c,style:u,children:[(0,s.jsx)("div",{className:Aw,children:(0,s.jsx)("div",{className:Nw,children:(0,s.jsx)(jw,{})})}),(0,s.jsx)(Iw,{coverPageType:"LEFT"})]})},t1=(0,h.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});t1.displayName="LessonContentContext";function Pw({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)(t1.Provider,{value:a,children:t})}function Rw(){return(0,h.useContext)(t1)}function Mw(t){function e(n){const o=Rw();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`withLessonContentState(${t.displayName||t.name})`,e}var q3=i(59288);const{LARGE:kw,SMALL:Ow}=I.OX,{ACCENT:ww,BLACK:Dw,COLOR:e5,DARK:Bw,GRAY:Hw,IMAGE:t5,LIGHT:zw,TINT:Fw}=I.xj,Uw=re("lesson-header-wrap");class Vw extends q3.Component{ref=q3.createRef();static propTypes={match:Le().object.isRequired,navigateDirection:Le().func,partnerContent:Le().object,previewType:Le().string,sidebarEnabled:Le().bool};constructor(e){super(e);const{course:n,isProgressSummary:o,lessonProgress:r,match:{params:a}}=e,l=Ut()(null,"index",r),d=o?cd:et()({},["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,Ee.no)(e),this.props.isProgressSummary||(0,O.JD)((0,Vm.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=Ut()(null,"index",o),a=et()(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(rm)),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",Q3.removeEventListeners(l,c),window.dispatchEvent(new CustomEvent(am)),o(),n()};l.className=d,Q3.addEventListeners(l,c)}renderLessonType({type:e,props:n,course:o,model:r}){if(this.props.isProgressSummary)return(0,s.jsx)(P3,{...this.props,...n});switch(e){case"blocks":return(0,s.jsx)(lk,{...n,animateBlockEntrance:o.animateBlockEntrance,handleNavigate:this.props.handleNavigate,isFirstLesson:xi({course:o,lesson:r})});case"quiz":return(0,s.jsx)(gw,{...n,course:o});default:return null}}calculateLessonHeaderContrastColor(){const{course:e}=this.props,{theme:n}=e,o=n?.customColorLessonHeaderContrast,r=n?.lessonHeaderColor,a=(0,it.xD)(r),l=!(0,it.Wn)(r),d=o===I.Em.DARK||o===I.Em.AUTO&&a===I.Em.DARK;return!o&&l||d?Qe.S6.DARK:Qe.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:b,getL10nValue:y,sessionPreferences:{prefersKeyboardNavigation:x},sidebarEnabled:L,themeId:E}=this.props,{author:S,selectedAuthorId:N,type:A}=o,{authors:k,color:M,enableVideoPlaybackSpeed:W,id:D,lessonHeaderImage:w,lessonHeaderSize:Z,lessonHeaderStyle:U,publishedAt:z,showAuthor:G,showLessonCount:ue,showNavigationButtons:ie,tenantId:ce,theme:Ne,type:we}=d,{hideLessonHeaders:$e,lessonHeaderColor:Fe,lessonHeaderImageColor:Ke,navigationType:lt}=Ne,Xe=et()([],["partnerContent","content"],this.props),ye=!Jt()(Xe),Re=ye?es()(ot()("id",N),Xe):{},Ve=ye?et()(void 0,["data","authors"],Re):void 0,{avatar:He,authorName:mt}=xw({authors:k,author:S,selectedAuthorId:N}),rt=Jr({course:d,courseProgress:c}),zt=p?{}:sa({course:d,courseProgress:c,lesson:r,restrictingQuiz:rt}),Ot=Wm(o),Ft=we===Qe.y4?J3:Ew,Ns=(0,s.jsx)(Ft,{authorName:mt,avatar:He,color:M,course:d,description:o.description,labels:f,lessonHeaderColor:Fe,lessonHeaderImage:w,lessonHeaderImageColor:Ke,lessonHeaderSize:Z,lessonHeaderStyle:U,lessonNumber:e,partnerContentAuthors:Ve,showAuthor:G,showLessonCount:ue,themeId:E,title:o.title,totalLessons:l,children:!p&&(0,s.jsx)(R3,{id:o.id,items:o.items,lessonProgress:g,navigationType:lt,scrollPosition:a,type:o.type})}),ps=`image-${(Ke??I.df.DARK)?.toLowerCase()}`,tn=Uw({[ps]:U===t5,accent:U===ww,black:U===Dw,collapsed:$e,custom:U===e5,dark:U===Bw,gray:U===Hw,image:U===t5,large:Z===kw&&!m,light:U===zw,mobile:m,small:Z===Ow&&!m,tint:U===Fw}),Wn=U===e5?{"--lesson-header-contrast-color":this.calculateLessonHeaderContrastColor(),"--color-background":Fe}:{},rr={authorName:mt,avatar:He,color:M,courseId:D,courseTitle:y(d.title),data:o,enableVideoPlaybackSpeed:W,handleStorylineFullscreen:u,hideLessonHeaders:$e,isLesson:(0,It.GG)(o),labels:f,lessonHeader:Ns,lessonHeaderImage:w,lessonHeaderWrapClasses:tn,lessonHeaderWrapStyles:Wn,lessonHasContinues:Ot,lessonNumber:e,lessonProgress:g,loadMedia:this.props.match.params.id===this.props.visibleLessons[0],location:v,match:C,mode:n,nextLesson:Ut()(null,"id",r),nextLessonRestrictions:zt,partnerContent:Xe,publishedAt:z,prefersKeyboardNavigation:x,previewType:b,scrollPosition:a,showAuthor:G,showLessonCount:ue,showNavigationButtons:ie,sidebarEnabled:L,tenantId:ce,totalLessons:l};return(0,s.jsx)(Ar,{title:tl(`${y(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 Ww=ke()(qt,Te.x4,Mw)(Vw),pd=re("lesson-nav"),$w=({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:l,previousLessonNumber:d,totalLessons:c},u)=>{const m=l?.id,p=Lr(),f=Ea(p),v=(0,It.GG)(l)&&m,C=Cs(l?.title)||n,b=v?`${d} ${r} ${c} \u2014 ${C}`:C,y=f&&v?`${o} ${d}`:b;return(0,s.jsx)(La,{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:pd("link-text"),children:y}),(0,s.jsx)(Qh,{className:pd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Qh,{className:pd("link-icon")}),(0,s.jsx)("span",{className:pd("link-text"),children:y})]})})},Kw=At("LessonNavPrevious",$().forwardRef($w));function Gw(){const t=L1(),e=i6();return(n,{lessonId:o,currentLocale:r})=>{const a=wt(n),l=t(o,n)||{},d=e(o,n),c=(0,st.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 s1=ke()(jt.wZ,(0,O.Ng)(Gw,null,null,{forwardRef:!0}))(Kw),fd=re("lesson-nav"),Qw=({allowTooltip:t,lessonNameLabel:e,lessonPrepositionLabel:n,nextLesson:o,nextLessonNumber:r,onFocus:a,restrictionData:l,restrictionType:d,totalLessons:c},u)=>{const m=o?.id,p=Lr(),f=Ea(p),v=(0,It.GG)(o)&&m,C=(0,xt.QQ)(o?.title)||"",b=v?`${r} ${n} ${c} \u2014 ${C}`:C,y=f&&v?`${e} ${r}`:b;return(0,s.jsx)(La,{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:fd("link-text"),children:y}),(0,s.jsx)(rc,{className:fd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rc,{className:fd("link-icon")}),(0,s.jsx)("span",{className:fd("link-text"),children:y})]})})},Zw=At("LessonNavNext",(0,h.forwardRef)(Qw));function Yw(){const t=T1(),e=a6(),n=vr();return(o,{lessonId:r,currentLocale:a})=>{const l=wt(o),d=t(r,o)||{},c=e(r,o),u=(0,st.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 s5=ke()(jt.wZ,(0,O.Ng)(Yw,null,null,{forwardRef:!0}))(Zw),gd=re("lesson-nav"),_w=({allowTooltip:t,courseFinishLabel:e,onFocus:n,restrictionData:o,restrictionType:r},a)=>{const l=Lr(),d=Ea(l);return(0,s.jsx)(La,{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:gd("link-text"),children:e}),(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:e})]})})},Xw=At("LessonNavFinish",(0,h.forwardRef)(_w));function Jw(t,e){const{currentLocale:n}=e,o=wt(t),r=(0,st.selectLabelsMap)(n,t);return{buttonNavigationStyle:o.buttonNavigationStyle,courseFinishLabel:r?.courseFinish||"Finish"}}const n1=ke()(jt.wZ,(0,O.Ng)(Jw))(Xw),qw={threshold:0},vd=(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||qw);const{current:a}=r;return t.current?a.observe(t.current):o(!1),()=>{a.disconnect()}},[t,e]),n},n5=re("navButtonsFull"),eD=()=>{const[t,e]=(0,h.useState)(!1);return(0,is.A)(rm,()=>e(!0)),(0,is.A)(am,()=>e(!1)),t},tD=({isVisible:t})=>{(0,_u.A)(()=>window.dispatchEvent(new CustomEvent(y0))),(0,h.useEffect)(()=>{const e=t?im:y0;window.dispatchEvent(new CustomEvent(e))},[t])},sD=({isVisible:t})=>{(0,_u.A)(()=>window.dispatchEvent(new CustomEvent(E0))),(0,h.useEffect)(()=>{const e=t?lm:E0;window.dispatchEvent(new CustomEvent(e))},[t])},nD=({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=vd(a),m=vd(l),p=eD(),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),tD({isVisible:u}),sD({isVisible:m}),(0,h.useEffect)(()=>{if(!p&&a.current){const b=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:b})}},[p,a]);const v=n5("navPrev",{visible:u,hide:p});return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,s.jsxs)("div",{className:n5(),children:[!e&&(0,s.jsx)("div",{className:v,children:(0,s.jsx)(s1,{lessonId:c,ref:a})}),t,n&&(0,s.jsx)(s5,{lessonId:c,ref:l}),o&&(0,s.jsx)(n1,{lessonId:c,ref:d})]})})},jl=re("navButtonsFloating"),o5=({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})})},oD=250,r5={threshold:.2},rD=({topRef:t,bottomRef:e,pageWrapRef:n,currentLessonId:o})=>{const r=vd(t,r5),a=vd(e,r5),[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,Z0.A)(f),(0,h.useEffect)(()=>{d(!0);const g=setTimeout(()=>{f(),d(!1)},oD);return()=>{clearTimeout(g)}},[o,f]),(0,h.useEffect)(()=>{u(a&&!l),p(r&&!l)},[a,r,l]),{showPrev:m,showNext:c}},aD=({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}=rD({topRef:u,bottomRef:m,pageWrapRef:a,currentLessonId:p}),v=(0,h.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),C=(0,h.useCallback)(()=>{const b=a.current?.scrollHeight;a.current?.scrollTo({top:b,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)(o5,{buttonType:"prev",transitionIn:g,children:(0,s.jsx)(s1,{lessonId:p,onFocus:v,ref:l})}),t,(0,s.jsx)(o5,{buttonType:"next",transitionIn:f&&(n||r),children:n?(0,s.jsx)(s5,{lessonId:p,onFocus:C,ref:d}):r?(0,s.jsx)(n1,{lessonId:p,onFocus:C,ref:c}):null}),(0,s.jsx)("div",{className:jl("bottom"),ref:m})]})},{FULL:iD,FLOATING:a5}=I.AY,lD=re("lessonNavigation"),cD=({children:t})=>{const e=(0,h.createRef)();return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:e,children:t})},dD=(t,e)=>t+(e?.drawCount??1),uD=(t=[])=>t.reduce(dD,0),hD=({children:t,isPreviewLesson:e})=>{const{buttonNavigationStyle:n}=(0,Te.DX)(),{pathname:o}=(0,Ae.zy)(),r=(0,Te.DX)(),{showNavigationButtons:a,lessonsOnly:l,lmsOptions:d={}}=r,c=(0,h.useRef)(),u=Os(480),m=Do(),p=fs(m)||{},f=Ao(m)||{},[g,v]=(0,h.useState)(n),C=l[0].id,b=d?.disableCoverPage&&C===m,y=d?.disableCoverPage,x=d?.disableCoverPage?b:y;(0,h.useEffect)(()=>{n!==g&&(v(n),window.dispatchEvent(new CustomEvent(dc)))},[n,g]);const L=Wm(p)?f.isComplete:!0,E=f.activeIndex===uD(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,M=N&&!e&&L&&!S&&!A,W=!N&&L&&Me.BI&&!k&&!A&&!e&&!(0,Ee.Hm)()&&!S,D=lD("wrapper",{full:n===iD||u,floating:n===a5&&!u}),Z=!a||e?cD:n===a5&&!u?aD:nD;return(0,h.useEffect)(()=>{const U=document.querySelector(".page__content");U&&U.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:M,children:(0,s.jsx)(Pw,{children:(0,s.jsx)(ls.F,{component:"div",children:(0,s.jsx)(z0,{children:t},o)})})})})},i5=re("courseExit");function o1(t){const e=(0,st.useLabelsMap)(),{className:n,lmsOptions:o,style:r}=t;return o?.enableExitCourse?(0,s.jsx)("div",{className:i5("wrapper"),children:(0,s.jsx)("button",{className:i5("button").mix(n),onClick:Me.NS,style:r,type:"button",children:e?.courseExit})}):null}o1.propTypes={className:Le().string};const r1=re("nav-control"),mD=()=>{const[t,e]=(0,h.useState)(!1);return(0,is.A)(im,()=>e(!0)),(0,is.A)(y0,()=>e(!1)),t},pD=({"aria-controls":t,isNavOpen:e,toggleNav:n,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:l,...d}=(0,Te.DX)(),c=(0,h.useRef)(null),[u,m]=(0,h.useState)(0),p=(0,st.useLabelsMap)(),f=Ui(),g=at(),v=mD(),b=!!(0,h.useMemo)(()=>d.lessons?.find(N=>N.id===g),[d.lessons,g])?.settings?.timer,y=a?.enableExitCourse,x=b||y,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 M({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",M):m(0),()=>c.current.removeEventListener("scroll",M)},[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:r1("wrapper"),children:(0,s.jsxs)("div",{className:r1("menu",{"is-timed-quiz":b,"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:r1("button"),onClick:n,type:"button",children:(0,s.jsx)(R6,{className:"page-menu-toggle__icon"})}),(0,s.jsx)(o1,{className:E,lmsOptions:a})]})})};var ys=i(2316);function a1(t){return t?.search}function Il(){return(0,O.d4)(t=>a1(t))}function fD(t){return a1(t)?.activeLessons}const gD=(0,Ze.Mz)(fD,t=>t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{}));function vD(){return(0,Ze.Mz)(t=>t,(t,e)=>gD(e),(t,e)=>e?.[t])}function CD(t){const e=(0,h.useMemo)(()=>vD(),[]);return(0,O.d4)(n=>e(t,n))}const l5=re("nav-compact"),xD=At("NavCompactHeaderCounter",t=>{const{lessonPosition:e,labelLessonName:n,labelLessonPreposition:o,totalLessons:r}=t;return e<=0?null:(0,s.jsx)("div",{className:l5("header-counter"),"data-test-id":"nav-compact-counter",children:`${n} ${e} ${o} ${r}`})}),bD=At("NavCompactHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:l}=t;return(0,s.jsxs)("div",{className:l5("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})]})}),yD=({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:b,percentComplete:y,searchActive:x,title:L})=>{const E=(0,h.useMemo)(()=>(0,It.FH)(C),[C]),S=(0,h.useCallback)(()=>{c?a():b()},[c,b,a]),N=r?.disableCoverPage,M=`${(0,Te.Wz)()?`%${y}`:`${y}%`} ${u}`,{alpha:W,ariaLabel:D,media:w,role:Z}=br("coverImage"),U=(0,It.b9)({alpha:W,color:l,media:w}),z=H()("nav-compact__header",{"nav-compact__header--collapsed":!c}),G=H()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!c}),ue="nav-compact__header-inner",ie="nav-compact__header-control",ce=H()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!c}),Ne=H()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!c}),we=H()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!c}),$e=H()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!c}),Fe="nav-compact__header-strip",Ke=(0,h.useCallback)(()=>{d((0,ys.ts)(!x))},[d,x]);return(0,s.jsxs)("section",{"aria-label":"Course Information",className:z,"data-test-id":"nav-compact-header",children:[E&&U&&(0,s.jsx)("div",{"aria-label":D,className:G,role:Z,style:U}),(0,s.jsxs)("div",{className:ue,children:[(0,s.jsxs)("div",{className:Fe,children:[(0,s.jsxs)("div",{className:"nav-compact__header-controls",children:[o&&v!=="restricted"&&c&&(0,s.jsx)("button",{"aria-label":n,className:`${ie} nav-compact__header-search`,"data-test-id":"nav-compact-search",onClick:Ke,type:"button",children:(0,s.jsx)(Ji,{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:`${ie} nav-compact__header-toggle`,"data-test-id":"nav-compact-toggle",onClick:S,type:"button",children:[c&&(0,s.jsx)(B9,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!c&&(0,s.jsx)(H9,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,s.jsx)(xD,{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:ce,children:L}):(0,s.jsx)(Mn,{className:ce,to:"/",children:L})}),(0,s.jsx)(bD,{classProgressRunner:$e,classProgressText:Ne,classProgressTrack:we,navExpanded:c,percentComplete:y,percentCompleteText:M})]})]})};function ED(){const t=Qo();return(e,n)=>{const{currentLocale:o}=n,r=wt(e),a=Qr(o,e),l=Go(e),d=(0,st.selectLabelsMap)(o,e),c=wd(e),u=t(e),m=a1(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 LD=ke()(jt.wZ,(0,O.Ng)(ED))(yD);function c5({id:t,isEnabled:e,isSectionLesson:n,last:o}){const{navigationStyle:r}=Xt(),a=Zn(t),l=Do(),d=Bd(t),c=(0,h.useMemo)(()=>(0,It.I8)(r),[r]),u=t===l,m=vu(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",b=(0,s.jsx)(Ec,{canComplete:d,id:t,isDark:c,isEnabled:e,isTooltipVisible:p,onHideTooltip:v,onShowTooltip:g,scope:Qe.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)(el,{className:C,dark:c,isCurrentLesson:u,isTooltipEnabled:!d,last:o,lessonId:t,onHideProgressTooltip:v,onShowProgressTooltip:g,showProgressDelay:0,tooltipClassName:`${C}-tooltip`,children:[m,!d&&b]}),d&&b]})}const TD=re("nav-compact"),jD=({id:t})=>{const e=fs(t),n=Cs(e?.title),o=TD("outline-section-empty");return(0,s.jsx)("div",{className:o,children:(0,s.jsx)("span",{children:n})})},ID=({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=H()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!a}),f=H()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!a}),g=H()("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)(Zh,{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,b)=>(0,s.jsx)(c5,{id:C,isEnabled:e&&a,isSectionLesson:!0,last:b===n.length-1},C))})})]})};function SD(){const t=Zt(),e=fn();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 ND=ke()(jt.wZ,(0,O.Ng)(SD))(ID),AD=({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)(jD,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(ND,{id:o,index:t,isEnabled:e,lessonIds:r})})},PD=({index:t,isEnabled:e,lessonIds:n})=>Fl(n)?(0,s.jsx)(AD,{index:t,isEnabled:e,lessonIds:n}):n.map((r,a)=>(0,s.jsx)(c5,{id:r,isEnabled:e,isSectionLesson:!1,last:a===n.length-1},r)),RD=At("NavCompactOutline",({className:t="",isEnabled:e,lessonIdGroups:n})=>{const o=(0,st.useLabelsMap)(),r=H()(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)(PD,{index:l,isEnabled:e,lessonIds:a},l))})})});function MD(t){const e=wt(t);return{lessonIdGroups:Pi(t),navigationStyle:e.navigationStyle}}const kD=(0,O.Ng)(MD)(RD);var OD=i(59288);const wD=()=>{const[t,e]=OD.useState(!1);return(0,is.A)(lm,()=>e(!0)),(0,is.A)(E0,()=>e(!1)),t},d5=re("nav-compact"),u5="nav-content-compact",DD=({closeNav:t,coverImageColor:e,isExpanded:n,navigationStyle:o,openNav:r,progressIndicatorStyle:a,translateY:l},d)=>{const c=(0,h.useMemo)(()=>(0,It.I8)(o),[o]),u=(0,h.useMemo)(()=>o===I.Py.LIGHT_ACCENT||o===I.Py.DARK_ACCENT,[o]),m=wD(),p=(0,h.useMemo)(()=>(0,It.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=d5({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}),b=d5("wrap",{collapsed:!n}),y={transform:`translateY(${l}px)`};return(0,s.jsx)("div",{className:C,"data-test-id":"nav-compact",id:u5,ref:d,style:y,children:(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)(LD,{closeNav:t,isExpanded:n,openNav:r}),(0,s.jsx)(mc,{inert:!n,children:(0,s.jsx)(kD,{isEnabled:n})})]})})};function BD(t){return wt(t).buttonNavigationStyle==="FULL"?Math.round(-(t.ui.lessonNavNextButton?.intersectionRect?.height??0)):0}function HD(t){const{color:e,navigationStyle:n,theme:o}=wt(t),r=o?.coverImageColor,a=o?.progressIndicatorStyle,l=BD(t);return{color:e,coverImageColor:r,navigationStyle:n,progressIndicatorStyle:a,translateY:l}}const zD=ke()((0,O.Ng)(HD,null,null,{forwardRef:!0}),h.forwardRef)(DD);var h5=i(9647);const m5=Object.assign((0,h.createContext)(null),{displayName:"OverlayNavControlContext"});function FD(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)(m5.Provider,{value:{closeNav:n,openNav:o,openSearch:l,closeSearch:d,searchActive:r},children:e})}const Cd=h.useContext.bind(null,m5),xd=re("nav-overlay"),UD=({className:t})=>{const{navigationStyle:e}=Xt(),{lessonComplete:n}=(0,st.useLabelsMap)(),o=(0,Te.Wz)(),r=pr(),l=`${o?`%${r}`:`${r}%`} ${n}`,d=e!==I.qB.ACCENT,c=xd("header-progress-runner"),u=xd("header-progress-text"),m=xd("header-progress-track");return(0,s.jsxs)("div",{className:xd("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=re("nav-overlay"),VD=()=>{const t=Xt(),e=Lo(),{allowSearch:n,navigationMode:o,lmsOptions:r={}}=t,a=(0,st.useLabelsMap)(),l=Cd(),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)(Ji,{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)(UD,{})]})]})})},i1=({icon:t,...e})=>{switch(t){case Qe.xA.INTERACTION:return(0,s.jsx)(K9,{...e});case Qe.xA.QUIZ:return(0,s.jsx)(U9,{...e});case Qe.xA.VIDEO:return(0,s.jsx)(G9,{...e});default:return(0,s.jsx)(w9,{...e})}},oi=re("nav-overlay"),p5=At("NavOverlayOutlineLesson",({first:t,id:e,isEnabled:n,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=Xt(),{icon:l}=fs(e),d=Zn(e),c=Cd(),u=Bd(e),m=(0,It.I8)(a),p=oi("outline-item",{section:o}),f=oi("outline-item-link-icon",{quiz:l==="Quiz"}),g=(0,h.useCallback)(()=>{c.closeNav()},[c]),[v,C]=(0,h.useState)(!1),b=(0,h.useCallback)(()=>C(!0),[]),y=(0,h.useCallback)(()=>C(!1),[]),x=(0,s.jsx)(Ec,{canComplete:u,id:e,isDark:m,isEnabled:n,isTooltipVisible:v,onHideTooltip:y,onShowTooltip:b,scope:Qe.by.OVERLAY});return(0,s.jsxs)("li",{className:oi("outline-list-item",{first:t,last:r}),"data-test-id":`nav-overlay-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(el,{className:p.toString(),dark:m,isTooltipEnabled:!u,lessonId:e,onHideProgressTooltip:y,onNavigate:g,onShowProgressTooltip:b,showProgressDelay:null,tooltipClassName:oi("outline-item-tooltip").toString(),children:[(0,s.jsx)("span",{className:oi("outline-icon-wrap"),children:(0,s.jsx)(i1,{className:f,icon:l})}),(0,s.jsx)("span",{className:oi("outline-lesson-title"),children:d}),!u&&x]}),u&&x]})}),WD=re("nav-overlay"),$D=({id:t})=>{const e=fs(t),n=Cs(e.title);return(0,s.jsx)("span",{className:WD("outline-section-text"),children:n})},f5=re("nav-overlay"),KD=({isEnabled:t,lessonIds:e})=>{const n=(0,h.useRef)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:f5("outline-section-divider")}),(0,s.jsx)("ol",{className:f5("outline-section-list"),ref:n,role:"list",children:e.map((o,r)=>(0,s.jsx)(p5,{id:o,isEnabled:t,isSectionLesson:!0,last:r===e.length-1},o))})]})},GD=re("nav-overlay"),QD=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a=GD("outline-item").mix("nav-overlay__outline-section");return Jt()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)($D,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(KD,{index:t,isEnabled:e,lessonIds:r})})},ZD=({index:t,isEnabled:e,lessonIds:n})=>{const o=Fl(n),r=Zn(n[0]),a=re("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)(QD,{index:t,isEnabled:e,lessonIds:n})})]}):n.map((l,d)=>(0,s.jsx)(p5,{first:d===0,id:l,isEnabled:e,isSectionLesson:!1,last:d===n.length-1},l))},YD=re("nav-overlay"),_D=At("NavOverlayOutline",({isEnabled:t})=>{const e=I1(),n=(0,st.useLabelsMap)();return(0,s.jsx)("section",{"aria-label":n?.a11yRegionNavOverview,className:YD("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)(ZD,{index:r,isEnabled:t,lessonIds:o},`lessonIdGroup-${r}`))})})});var XD=i(32696),bd=i.n(XD),JD=i(18403),yd=i.n(JD);const l1=Array.isArray,qD=t=>typeof t=="number",Ed=t=>!Js()(t)&&typeof t=="object",c1=t=>typeof t=="string",eB=(t,e,n)=>(o,r)=>{const a=bn()(r,t);if((0,ds.uW)(o)){const l=n[o.l10nId];return typeof l!="string"?!1:!Jt()(yd()(e,(0,$a.htmlDecode)(l)))}else return Ed(o)?g5(t,e,n)(o):a&&c1(o)?!Jt()(yd()(e,(0,$a.htmlDecode)(o))):!1},g5=(t,e,n)=>o=>rs()(wr(),Co(),bn()(!0))(eB(t,e,n),o),tB=g5,sB=(t,e,n)=>(o,r)=>{const a=bn()(r,t);return l1(o)?Co()(d1(t,e,n)(o)):(0,ds.uW)(o)?typeof n[o.l10nId]!="string"?0:Lt()(yd()(e,(0,$a.htmlDecode)(n[o.l10nId]))):Ed(o)?d1(t,e,n)(o):a&&c1(o)?Lt()(yd()(e,(0,$a.htmlDecode)(o))):0},d1=(t,e,n)=>o=>wr()(sB(t,e,n),o),u1=t=>{if(l1(t))return Ds()(u1,t);if(Ed(t))return u1(Co()(t));if(qD(t))return t},nB=(t,e,n)=>o=>rs()(d1(t,e,n),Co(),Ds()(u1),Oc(),rl()(fu(),0),r=>on()("results",r,o))(o),oB=(t,e,n)=>(o,r)=>{const a=bn()(r,t);return l1(o)?Co()(h1(t,e,n)(o)):Ed(o)?h1(t,e,n)(o):a&&c1(o)?n0()(e,n,o):o},h1=(t,e,n)=>o=>wr()(oB(t,e,n),o),v5=h1,C5=(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=y=>`<mark>${y}</mark>`,u=v5(a,d,c),m=v5(Object.keys(n),d,c),p=Ds()(u,e),f=o?o(t):{},g=m(n),v=y=>f[y.id]>0||tB(a,d,n)(y),C=nB(a,d,n),b=rs()(nt()(v),Ds()(C))(e);b.forEach(y=>{y.results+=f[y.id]??0}),r(t,b,g,p)};var rB=i(83760);const aB=ol.Ay.animateScroll,Fn=re("nav-overlay"),iB=()=>{const t=(0,O.wA)(),e=Sn(),n=Cd(),{lessons:o,mondrian:r}=Xt(),[a,l]=(0,h.useState)(""),[d,c]=(0,h.useState)(null),u=(0,h.useRef)(),m=(0,st.useLabelsMap)(),p=Fn("search-close-btn"),f=Fn("search-clear-btn"),g=(0,h.useCallback)(()=>{n.closeSearch(),n.closeNav(),t([(0,ys.Se)(!0),(0,ys.ts)(!1),(0,ys.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=>{an(x)&&!bd()(a)?(x.preventDefault(),l(""),t((0,ys.NM)(null))):an(x)&&bd()(a)&&g()},[t,g,a]);(0,rB.A)("keydown",C);const b=(0,h.useCallback)(x=>{l(x.target.value)},[]),y=(0,h.useCallback)(x=>{if(x.preventDefault(),a&&d){const L=(E,S,N,A)=>{t([(0,ys.NM)(E),(0,ys.gA)(S),(0,ys.D2)(N),(0,ys.u)(A),(0,ys.ts)(!0)]),aB.scrollToTop({duration:500,smooth:!0})};n.closeNav(),n.closeSearch(),C5(a,o,e??{},d,L)}},[t,n,o,e,a,d]);return(0,s.jsxs)("div",{className:Fn("search"),"data-test-id":"nav-overlay-search-container",children:[(0,s.jsx)("div",{className:Fn("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:Fn("search-close-icon")})})}),(0,s.jsx)("div",{className:Fn("search-body"),children:(0,s.jsxs)("form",{autoComplete:"off",onSubmit:y,children:[(0,s.jsxs)("div",{className:Fn("search-container"),children:[(0,s.jsx)(Ji,{className:Fn("search-icon")}),(0,s.jsx)("input",{"aria-label":m?.a11ySearchInput,className:Fn("search-input").mix("brand--ui"),"data-test-id":"nav-overlay-search-input",name:"search",onChange:b,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:Fn("search-clear-icon").toString()})})]}),(0,s.jsx)("div",{className:Fn("search-actions"),children:(0,s.jsx)("button",{className:Fn("search-submit-btn").mix("brand--ui"),"data-test-id":"nav-overlay-search-submit",type:"submit",children:m?.search})})]})})]})},m1=re("nav-overlay"),x5="nav-content-overlay",lB=({isExpanded:t,outlineRef:e})=>{const o=I1()[0],r=Fl(o),a=m1("body",{section:r});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(VD,{}),(0,s.jsx)("div",{className:a,ref:e,children:(0,s.jsx)(_D,{isEnabled:t})})]})},cB=({children:t,isImage:e,hasStickyHeader:n})=>{const o=m1("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)(t0,{})]})},dB=({isExpanded:t})=>{const e=(0,h.useRef)(null),n=(0,h.useRef)(),o=Xt(),r=Cd(),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,It.I8)(l),f=l===I.qB.GRAY,g=l===I.qB.LIGHT,v=(0,It.FH)(l),C=d===I.Y2.CIRCULAR_FILL,b=d===I.Y2.INCOMPLETE_COMPLETE,[y,x]=(0,h.useState)(!0),{isIntersecting:L=!1}=(0,h5.A)(n,{root:e?.current,threshold:1})||{},E=(0,_t.A)(L),S=(0,h.useMemo)(()=>v&&c===I.df.LIGHT,[v,c]),N=m1({"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":b,closing:a&&!t});return(0,h.useEffect)(()=>{t?e.current?.showModal():setTimeout(()=>{e.current?.close()},500)},[t]),(0,h.useEffect)(()=>{const A=k=>{an(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)(()=>{!y&&L?x(!0):E&&!L&&x(!1)},[L,y,E,x]),(0,s.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:N,"data-test-id":"nav-overlay",id:x5,ref:e,children:(0,s.jsx)(cB,{hasStickyHeader:y,isImage:v,children:r.searchActive?(0,s.jsx)(iB,{}):(0,s.jsx)(lB,{isExpanded:t,outlineRef:n})})})},Sl=re("nav-sidebar-search"),uB=At("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,st.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,b=e?void 0:"disabled",[y,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:M})=>{E(()=>W=>M(W,a,l))})},[a,l]);const S=(0,h.useCallback)(()=>{n([(0,ys.Se)(!0),(0,ys.ts)(!1),(0,ys.NM)(null)]),x("")},[n]),N=(0,h.useCallback)(M=>{an(M)&&!bd()(y)?(M.preventDefault(),x(""),n((0,ys.NM)(null))):an(M)&&bd()(y)&&S()},[n,S,y]),A=(0,h.useCallback)(M=>{C!=null&&n((0,ys.NM)(null)),x(M.target.value)},[n,C]),k=(0,h.useCallback)(M=>{M.preventDefault(),C5(y,a,o??{},L,(D,w,Z,U)=>n([(0,ys.NM)(D),(0,ys.gA)(w),(0,ys.D2)(Z),(0,ys.u)(U)]))},[n,a,o,y,L]);return(0,h.useEffect)(()=>{!r&&e&&setTimeout(()=>{u.current?.focus()},50)},[e,r]),(0,h.useEffect)(()=>{C&&C!==y&&x(C)},[y,C]),(0,s.jsxs)("form",{autoComplete:"off",className:m,"data-test-id":"nav-sidebar-search",onSubmit:k,children:[(0,s.jsx)(Ji,{className:p}),(0,s.jsx)("input",{"aria-label":c?.a11ySearchInput,className:f,disabled:b,name:"search",onChange:A,onKeyDown:N,placeholder:c?.search,ref:u,type:"search",value:y}),(0,s.jsx)("button",{"aria-label":c?.a11ySearchClose,className:g,onClick:S,type:"reset",children:(0,s.jsx)(ac,{className:v})})]})}),Un=re("nav-sidebar-header"),hB=re("nav-sidebar-header-ghost"),mB=()=>(0,O.d4)(t=>t.ui.skipToNavButton?.offsetHeight??0),pB=At("NavSidebarHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:l}=t;return(0,s.jsxs)("div",{className:Un("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})]})}),fB=At("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=mB(),C=(0,h.useRef)(),b=(0,h.useRef)(),y=(0,h.useRef)(),[x,L]=(0,h.useState)(null),E=Xt(),S=Lo(),N=(0,st.useLabelsMap)(),A=pr(),k=Il(),M=Yd(),W=(0,Te.Wz)(),D=E?.lmsOptions?.disableCoverPage,w=E?.allowSearch&&E?.navigationMode!=="restricted",Z=E?.theme?.coverImageColor,U=E?.navigationStyle,z=(0,h.useMemo)(()=>(0,It.FH)(U),[U]),G=_g(),ue=(0,_t.A)(k),ie=(k?.active||G)??!1,[ce,Ne]=(0,h.useState)(!0),[we,$e]=(0,h.useState)(null),Fe=Un({compact:e,searching:ie,transition:ce}).mix(t),Ke=Un("inner",{compact:e}),lt=Un("content",{compact:e,hidden:ie}),Xe=Un("graphic",{image:z}),ye=Un("progress-runner"),Re=Un("progress-text",{compact:e}),Ve=Un("progress-track"),He=Un("search-area",{hidden:!ie}),mt=Un("search-btn",{hidden:ie}),rt=Un("search-icon"),zt=Un("title",{compact:e}),Ot=hB({compact:e,searching:ie}),Ns=`${W?`%${A}`:`${A}%`} ${N?.lessonComplete}`,mn=n&&!ie?void 0:-1,ps=n&&!ie?void 0:-1,{alpha:tn,media:Wn}=br("coverImage"),rr=(0,h.useMemo)(()=>{let cs={};return z&&Object.assign(cs,(0,It.b9)({alpha:tn,color:Z,media:Wn})),ie&&(cs.height=m.height),cs},[tn,Z,Wn,z,ie,m.height]),Pl=(0,h.useMemo)(()=>{let cs={};return e&&(cs.bottom=`calc(100% - ${v}px)`,cs.width=o||0,cs.transition="width 0.3s",n||(cs.transition="width 0.3s",cs.width="0rem")),c.height&&(cs.height=c.height,cs.overflow="hidden",e&&(cs.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),cs},[e,n,o,c.height,v]);(0,h.useEffect)(()=>{d(e&&M?vu(S,45):S)},[S,e,M]);const ci=ie?void 0:{height:f.height},b1=(0,h.useCallback)(()=>{p(c),a((0,ys.ts)(!0))},[a,c]);(0,h.useLayoutEffect)(()=>{$e(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:$r=!1}=(0,h5.A)(C,{root:we,threshold:0})||{},Kr=(0,_t.A)($r);(0,h.useEffect)(()=>{const cs=x!=null&&window.innerHeight*.4>=x.offsetHeight;Kr&&!$r&&cs?r(!0):!Kr&&$r&&r(!1)},[$r,Kr,x,r]);const y1=(0,h.useCallback)(({target:cs})=>{const $n={height:cs?.scrollHeight??0,width:o??0};u($n),p($n),e||g($n)},[e,o]);hc(x,y1),(0,h.useLayoutEffect)(()=>{const cs=we?.scrollTop;(we||cs>0)&&(we.scrollTop=0);const $n={height:x?.scrollHeight??0,width:o??0};u($n),p($n),g($n)},[we,o,x]),(0,h.useEffect)(()=>{w&&ue?.active&&!k.active&&b?.current?.focus()},[w,k,ue]),(0,h.useEffect)(()=>{ie?Ne(!0):e&&Ne(!1)},[ie,e]);const E1=(0,h.useCallback)(cs=>{if(cs.target.getAttribute("data-link")!=="lesson-link-item"||!e)return;const $n=x.getBoundingClientRect(),Gr=cs.target.getBoundingClientRect();$n.bottom>Gr.top&&(we.scrollTop-=$n.height-Gr.top+5)},[we,e,x]);return(0,is.A)("focusin",E1,we),(0,h.useEffect)(()=>d(S),[S]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Ot,ref:C,style:ci}),(0,s.jsx)("div",{className:Fe,"data-test-id":"nav-sidebar-header",ref:y,style:Pl,children:(0,s.jsxs)("div",{className:Ke,ref:L,children:[(0,s.jsx)("div",{className:Xe,style:rr}),w&&(0,s.jsx)("button",{"aria-label":N?.a11ySearchOpen,className:mt,onClick:b1,tabIndex:mn,type:"button",children:(0,s.jsx)(Ji,{className:rt})}),(0,s.jsx)("div",{className:He,children:(0,s.jsx)(uB,{isEnabled:n&&ie})}),(0,s.jsxs)("div",{className:lt,children:[D?(0,s.jsx)("span",{className:zt,"data-test-id":"nav-sidebar-title",tabIndex:ps,children:l}):(0,s.jsx)(Mn,{className:zt,"data-test-id":"nav-sidebar-title",tabIndex:ps,to:"/",children:l}),(0,s.jsx)(pB,{classProgressRunner:ye,classProgressText:Re,classProgressTrack:Ve,percentComplete:A,percentCompleteText:Ns})]})]})})]})}),gB=re("nav-sidebar");function b5({closeNav:t,id:e,isEnabled:n,isSectionLesson:o,last:r}){const{navigationStyle:a}=Xt(),{icon:l}=fs(e)??{},d=Zn(e),c=Do(),u=Ui(),m=Bd(e),p=e===c,f=(0,h.useMemo)(()=>(0,It.I8)(a),[a]),g=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",v=H()(`${g}-link-icon`),C=(0,s.jsx)(i1,{className:v,icon:l}),[b,y]=(0,h.useState)(!1),x=(0,h.useCallback)(()=>y(!0),[]),L=(0,h.useCallback)(()=>y(!1),[]),E=(0,s.jsx)(Ec,{canComplete:m,id:e,isDark:f,isEnabled:n,isTooltipVisible:b,onHideTooltip:L,onShowTooltip:x,scope:Qe.by.SIDEBAR}),S=()=>{t&&u&&t()};return(0,s.jsxs)("li",{className:gB("outline-list-item",{last:r}),"data-test-id":`nav-outline-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(el,{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 vB=({title:t})=>(0,s.jsx)("span",{className:"nav-sidebar__outline-section-text",children:t});function CB(){const t=Zt(),e=fn();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 xB=ke()(jt.wZ,(0,O.Ng)(CB))(vB),bB=({closeNav:t,id:e,index:n,isEnabled:o,lessonIds:r})=>{const{themeId:a}=Xt(),l=Zn(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=H()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!d}),C=H()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!d}),b=(0,h.useCallback)(()=>{c(y=>!y)},[]);return(0,h.useLayoutEffect)(()=>{const y=setTimeout(()=>{p.current&&m(p.current.scrollHeight)},0);return()=>{clearTimeout(y)}},[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:b,tabIndex:o?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:l}),(0,s.jsx)(Zh,{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((y,x)=>(0,s.jsx)(b5,{closeNav:t,id:y,isEnabled:o&&d,isSectionLesson:!0,last:x===r.length-1},y))})})]})},yB=({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)(xB,{id:r})}):(0,s.jsx)("li",{className:l,role:"listitem",children:(0,s.jsx)(bB,{closeNav:t,id:r,index:e,isEnabled:n,lessonIds:a})})},EB=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>Fl(o)?(0,s.jsx)(yB,{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)),LB=At("NavSidebarOutline",({className:t="",closeNav:e,isEnabled:n,lessonIdGroups:o})=>{const r=(0,_t.A)(n),[a,l]=(0,h.useState)(!n),d=(0,st.useLabelsMap)(),c=(0,h.useRef)(),u=H()(t,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":a,"nav-sidebar__outline--safari":rn.isSafari}),m=H()("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)(EB,{closeNav:e,index:f,isEnabled:n,lessonIds:p},f))})})});function TB(t){const e=wt(t),n=Pi(t);return{isLegacyCourse:e.isLegacyCourse,lessonIdGroups:n,navigationStyle:e.navigationStyle}}const jB=(0,O.Ng)(TB)(LB);var IB=i(8433),SB=i(83827);const ri=re("nav-sidebar-result"),y5=({result:t})=>{const e=(0,st.useLabelsMap)(),n=t?.icon,o=Cs(t?.title),r=t?.results??0,a=r===1?e?.result:e?.results,l=ri("icon"),d=ri("title"),c=ri("count");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i1,{className:l,icon:n}),(0,s.jsx)("span",{className:d,children:o}),(0,s.jsx)("span",{className:c,children:`${r} ${a}`})]})},NB=({id:t,index:e,isEnabled:n,onSelectResult:o})=>{const r=Xt(),a=(0,Ae.W5)(),l=CD(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,It.I8)(m),[m]),C=ri(),b=ri("inner",{active:d}),y=ri("link",{dark:v,light:!v});return(0,s.jsx)("li",{className:C,role:"listitem",style:f,children:(0,s.jsx)("div",{className:b,style:{color:u},children:n&&g==null?(0,s.jsx)(Mn,{"aria-current":c,className:y,onClick:o,tabIndex:p,to:(0,os.p1)(t),children:(0,s.jsx)(y5,{result:l})}):(0,s.jsx)(mm,{className:y,restriction:g,tooltipClassName:"lesson-nav-link-tooltip",children:(0,s.jsx)(y5,{result:l})})})})},Ld=re("nav-sidebar-results"),AB=[],PB=({closeNav:t,isEnabled:e})=>{const{announcePolite:n}=_e(),o=Xt(),r=Il(),a=(0,st.useLabelsMap)(),d=(r?.activeLessons??AB).filter(ta),c=r?.term,u=(0,IB.A)(d),m=(0,SB.A)(c),p=a?.noResults??"",f=o?.navigationStyle,g=(0,h.useMemo)(()=>(0,It.I8)(f),[f]),v=Ld(),C=Ld("message",{dark:g,light:!g}),b=Ld("term"),y=Ld("list"),x=Os(gh),L=$().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:b,children:['"',c,'"']})]}),u&&m&&(0,s.jsx)("ol",{className:y,"data-test-id":"nav-sidebar-results-list",role:"list",children:d.map((E,S)=>(0,s.jsx)(NB,{id:E.id,index:S,isEnabled:e,onSelectResult:L},E.id))})]})},Td=re("nav-sidebar"),E5="nav-content-sidebar",RB=({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,b=o?.active??!1,y=b||t?void 0:"true";(0,h.useLayoutEffect)(()=>{c&&c?.current&&d(c.current?.scrollWidth)},[r,t,c,b,d]);const x=(0,h.useMemo)(()=>(0,It.zH)(g),[g]),L=(0,h.useMemo)(()=>(0,It.I8)(g),[g]),E=(0,h.useMemo)(()=>(0,It.FH)(g),[g]),S=(0,h.useMemo)(()=>E&&p===I.df.LIGHT,[E,p]),N=!(0,it.Wn)(m),A=(0,it.xD)(m),k=C===I.Y2.CIRCULAR_FILL,M=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=Td("header"),Z=Td("body"),U=Td("content"),z=Td({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":M,collapsed:!t,dark:L,light:!L,searching:b});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":y,className:z,"data-test-id":"nav-sidebar",ref:u,children:(0,s.jsxs)("div",{className:U,"data-nav-scrollable":!0,id:E5,children:[(0,s.jsx)(fB,{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)(jB,{closeNav:e,isEnabled:t&&!b}),(0,s.jsx)(PB,{closeNav:e,isEnabled:t&&b})]})]})})})})})},zr={x:null,y:null},jd={passive:!0};function L5({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)(y=>{const x=y.touches?.length??0,L=y.targetTouches[0],E=a?a():!0;x==1&&L&&E?m({x:L.clientX,y:L.clientY}):m(zr)},[a]),v=(0,h.useCallback)(y=>{const x=y.targetTouches[0];x&&f({x:x.clientX,y:x.clientY})},[]),C=(0,h.useCallback)(()=>{m(zr),f(zr)},[]),b=(0,h.useCallback)(y=>{const x=y.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,jd),(0,is.A)("touchcancel",C,c.current,jd),(0,is.A)("touchmove",v,c.current,jd),(0,is.A)("touchend",b,c.current,jd),(0,s.jsx)("div",{ref:c,children:t})}L5.propTypes={children:Le().oneOfType([Le().arrayOf(Le().element),Le().element]).isRequired,onShouldRecognizeGesture:Le().func,onSwipeDown:Le().func,onSwipeLeft:Le().func,onSwipeRight:Le().func,onSwipeUp:Le().func,thresholdX:Le().number.isRequired,thresholdY:Le().number.isRequired};function Id({isEnabled:t=!0,...e}){return t?(0,s.jsx)(L5,{...e}):(0,s.jsx)("div",{children:e.children})}Id.propTypes={children:Le().oneOfType([Le().arrayOf(Le().element),Le().element]).isRequired,isEnabled:Le().bool.isRequired};const Sd={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},MB=[Sd.TABLET_PORTRAIT,Sd.TABLET_LANDSCAPE,Sd.MOBILE_PORTRAIT,Sd.MOBILE_LANDSCAPE],Nd=t=>MB.includes(t),T5=t=>(0,h.useMemo)(()=>{const e=window.matchMedia("(pointer: coarse)").matches,n=Nd(t);return e||n},[t]),j5=re("course-navigation"),{COMPACT:Ad,OVERLAY:p1,SIDEBAR:Fr}=I.br,kB={[Ad]:u5,[Fr]:E5,[p1]:x5},OB=({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===p1?n():a(t)},[t,e,n,o,r]),r},wB=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])},DB=({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,st.useLabelsMap)(),C=OB({hasSearchResults:g,courseNavType:o,openNav:d,closeNav:n}),b=(0,h.useMemo)(()=>C||o===Ad&&a?Fr:o,[o,C,a]);wB({activeNavType:b,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 b===Ad&&r?(f.current?.addEventListener("click",n),f.current?.addEventListener("keypress",n),f.current?.addEventListener("blur",N,!0)):A(),A},[b,r,f,n]);const y=T5(c),x=(0,h.useCallback)(()=>{const N=b===I.br.SIDEBAR;y&&N&&r&&n()},[n,r,y,b]),L=(0,h.useMemo)(()=>kB[b],[b]),E=j5(b?.toLowerCase(),{"nav-open":r,"search-open":g&&r,"course-nav-type":o?.toLowerCase()}),S=j5("lessonNav",{type:l?.toLowerCase()});return(0,s.jsx)(Qg,{isCourseNavOpen:r,children:(0,s.jsx)("div",{className:E,children:(0,s.jsx)(Id,{isEnabled:b===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)(pD,{"aria-controls":L,hideNav:m,isNavOpen:r,toggleNav:u}),b===Fr&&(0,s.jsx)(RB,{closeNav:n,isExpanded:r}),b===Ad&&(0,s.jsx)(zD,{closeNav:n,isExpanded:r,openNav:d,ref:p}),b===p1&&(0,s.jsx)(FD,{closeNav:n,openNav:d,children:(0,s.jsx)(dB,{isExpanded:r})})]}),(0,s.jsx)("div",{ref:f,children:e})]})})})})},BB=({children:t,isPreviewLesson:e,...n})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...l}=(0,Te.DX)(),d=Ui(),c=(0,It.zh)(l),u=!d,m=l.sidebarMode===I.RE.OPEN,p=c&&r===Fr&&m&&u,f=l.type===Qe.y4,g=f&&l?.theme?.blockNavigationType===I.HC.CONTINOUS,[v,C]=(0,h.useState)(p),b=(0,h.useCallback)(()=>{C(!0)},[]),y=(0,h.useCallback)(()=>{C(!1)},[]),x=(0,h.useCallback)(()=>v?y():b(),[v,y,b]);(0,is.A)(nm,b),(0,is.A)(om,y);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)(o1,{className:L,lmsOptions:a,style:E}),t]}):(0,s.jsx)(DB,{...n,beginWithSidebarOpen:m,closeNav:y,courseNavType:S,enableExitCourse:a?.enableExitCourse||!0,hideNav:!c,isNavOpen:v,isTablet:d,lessonNavType:o,openNav:b,toggleNav:x,children:t})};var HB=i(62599),zB=i.n(HB),FB=i(67715),I5=i(56838),or=i(19509);function UB(t){return t?.slidesUI?.slideDirection??or.f.UP}function VB(){return(0,O.d4)(t=>UB(t))}function WB(t){return t?.slidesUI?.exitingSlideOffset??0}function $B(){return(0,O.d4)(t=>WB(t))}const Ur=re("blocks-lesson-slide"),S5="#fff",KB=["image full","image text overlay","quote background"],N5=({className:t})=>{const e=Dn()||S5;return(0,s.jsx)("div",{className:t,style:{background:e}})},GB=({block:t})=>(0,s.jsx)(N0,{block:t,children:(0,s.jsx)(N5,{className:Ur("background-top")})}),QB=({block:t})=>(0,s.jsx)(N0,{block:t,children:(0,s.jsx)(N5,{className:Ur("background-bottom")})});function ZB(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,b=document.querySelector("[data-continue-sr]")!=null,y=!C&&r&&b&&document.querySelector("[data-continue-btn]")==null,x=o&&d&&!y,L=d&&!y&&!C,E=u||p||m;return Ur("connected-blocks",{"min-half-height":l&&(r&&!y&&!C||g||L),"full-height":y||x,"top-block":c&&!o&&!C&&!E,"top-block-centered":c&&!o&&E})}const YB=({hasTransitioned:t,onContinue:e,prefersKeyboardNavigation:n,previewType:o,slide:r,transitionState:a},l)=>{const d=Xt(),c=Do(),u=(0,st.useLabelsMap)(),m=F0(),p=Ao(c),f=!0,{animateBlockEntrance:g,color:v,id:C,title:b,enableVideoPlaybackSpeed:y,publishedAt:x,tenantId:L}=d;(0,h.useImperativeHandle)(l,()=>E.current);const E=(0,h.useRef)(),S=VB(),N=$B(),A=`${a}-${S}`,k=Ur("wrapper",{exiting:a==="exiting"}),{blocks:M,lastBlock:W}=r,D=(0,h.useCallback)(Xe=>{Xe===W?.id&&e()},[W,e]),w=Ur("inner",{[A]:!0}),Z=Ur("lesson",{slides:f}).toString(),U=r.blocks.length==1,{settings:z,type:G,variant:ue}=r.blocks?.[0]??{},ie=U&&z.backgroundType===I.xj.IMAGE,ce=U&&!ie&&bn()(`${G} ${ue}`,KB),Ne=ce||ie,we=r.blocks?.[0],$e=r.blocks?.[r.blocks.length-1],Fe=we?.settings?.backgroundType!==I.xj.IMAGE,Ke=$e?.settings?.backgroundType!==I.xj.IMAGE,lt=Ur("full-width-image",{legacy:ce,background:ie});return(0,s.jsx)("div",{className:k,style:{top:N},children:(0,s.jsxs)("div",{className:w,children:[Fe&&(0,s.jsx)(GB,{block:we}),Ke&&(0,s.jsx)(QB,{block:$e}),(0,s.jsx)("div",{className:Z,ref:E,children:M.map((Xe,ye)=>{const Re=U?!1:T3({blocks:r.blocks,lessonProgress:p,currentBlockIndex:ye}),Ve=Ne?lt:ZB(Xe,r);return(0,s.jsx)(E3,{animateBlockEntrance:g,block:Xe,className:Ve,color:v,courseId:C,courseTitle:b,defaultBackgroundColor:S5,enableVideoPlaybackSpeed:y,hideBlock:Re,index:ye,isFirstLesson:!0,isOnlyBlockInStep:U,labels:u,lessonId:c,lessonProgress:p,loadMedia:t,onContinue:D,partnerContent:m,prefersKeyboardNavigation:n,previewType:o,publishedAt:x,tenantId:L},Xe.blockId)})})]})})},_B=(0,h.forwardRef)(YB);var XB=i(37520),JB=i.n(XB),A5=i(72209);const P5=re("blocks-slide-indicator-tooltip"),qB=({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)(M6,{className:P5("icon")}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,s.jsx)("div",{"aria-hidden":!r,className:P5("wrapper",{disabled:t,visible:r}),ref:a,role:"tooltip",style:{left:e,top:o},children:l})},R5=(0,h.forwardRef)(qB);R5.propTypes={disabled:Le().bool.isRequired,left:Le().number,text:Le().string.isRequired,top:Le().number,visible:Le().bool.isRequired};const eH=R5;function tH(t){const e=(0,h.useRef)();return e.current||=t(),e}const Pd=re("blocks-slide-indicator"),sH=({active:t,blockNavigationStyle:e,disabled:n,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:l},d)=>{const{prefersKeyboardNavigation:c}=hm()??{},[u,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(),g=(0,h.useRef)(),v=(0,h.useRef)(),C=(0,h.useRef)(),b=e===I.Dw.NUMBERS,y=l+1,x=`${y} / ${o}`,L=tH(()=>document.getElementById("portal")),E=(0,h.useCallback)(()=>{if(g.current&&v.current){const G=g.current.getBoundingClientRect(),ue=v.current.getBoundingClientRect(),ie=G.left-ue.width-18,ce=Math.round(G.top-ue.height/2+G.height/2);f({left:ie,top:ce})}},[]),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=>{an(G)&&m(!1),r(G)},[r]),M=(0,h.useCallback)(()=>{S()},[S]),W=(0,s.jsx)(eH,{disabled:n,left:p?.left,ref:v,text:x,top:p?.top,visible:u}),D=Pd("button",{active:t,disabled:n,numbers:b}),w=Pd("wrapper"),Z=Pd("circle",{active:t,disabled:n}),U=Pd("number",{active:t,disabled:n}),z=b?(0,s.jsx)("span",{"aria-hidden":"true",className:U,children:y}):(0,s.jsx)(N1,{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?M:void 0,onKeyDown:k,onMouseEnter:S,onMouseLeave:N,ref:g,tabIndex:t?0:-1,type:"button",children:[z,(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,Xn.createPortal)(W,L.current)]})},nH=(0,h.forwardRef)(sH),Vr=re("blocks-slide-controls"),M5=38,oH=8,rH=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(Qi(x)||Aa(x)){if(e-1>=0)E=e-1;else{r();return}L=!0}else Zi(x)||Pa(x)?(e+1<=o-1&&(E=e+1),L=!0):n9(x)?(E=0,L=!0):s9(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-M5,A=E.top+M5;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>oH),g(x.clientHeight+x.scrollTop<x.scrollHeight))},[]);(0,A5.A)(C);const b=(0,h.useCallback)(_c()(C,100),[C]);hc(c.current,C);const y=Vr({"touch-preview":Nd(d)});return(0,s.jsx)("div",{className:y,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:b,ref:c,children:(0,s.jsx)("div",{className:Vr("slide-dot-wrapper"),children:JB()(x=>{const L=x===e;return(0,s.jsx)(nH,{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})})]})})})},k5=100;var Nl=i(59288);const aH=50,iH=1e3,lH=({onSwipeDownHandler:t,onSwipeUpHandler:e,target:n,timeoutDuration:o=iH})=>{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<aH?(l.current&&clearTimeout(l.current),a(!1)):d();else if(m>k5){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 Vn=re("lesson-one-page-slides"),cH=re("page-wrap"),O5=100;function w5(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 dH=t=>(e,n,o)=>L3(e,o.slice(0,-1),t),uH=(t,e)=>({disabled:n,slides:o},r)=>{const a=rs()(nt()(u=>t[u.id]),Ds()(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:op()(c,o)}},Rd=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}},hH=/,? +/,mH=[],pH=({lessonProgress:t,prefersKeyboardNavigation:e,previewType:n},o)=>{(0,h.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=_e(),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)(),[b,y]=(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)(),M=Ms(),W=M?.01:600,D=T5(n),w=D?x6:C6,Z=D?g6:f6,U=D?H6:M1,{lessons:z,...G}=(0,Te.DX)(),ue=G.theme?.blockNavigationStyle||I.Dw.DOTS,ie=z[0],ce=ie?.items||mH,Ne=(0,h.useCallback)(()=>{const Qt=c.current?.scrollHeight>c.current?.clientHeight,{isAtBottom:jn}=Rd(c.current),In=Qt&&!x&&!jn;In!=E&&S(In)},[E,x]);hc(l.current,Ne),(0,h.useLayoutEffect)(Ne,[x]);const we=(0,h.useCallback)(()=>{c.current?.scrollTo({top:0})},[]),$e=(0,h.useMemo)(()=>(0,Bs.Ve)(Vu([],ce,t).map(dH(t)),nt()($m.A),zB()(tt()("blockId"))),[ce,t]),Fe=(0,h.useCallback)(Qt=>{const jn={disabled:!1,slides:[]},{slides:In}=rl()(uH($e,t),jn,Qt);return In},[$e,t]),Ke=(0,h.useMemo)(()=>(0,Bs.Ve)(ce,UM,Fe),[ce,Fe]),lt=(0,h.useMemo)(()=>da()("disabled",Ke),[Ke]),Xe=Ke.length,ye=Ke[b],Re=Nd(n),Ve=ue!==I.Dw.NONE,He=b===Xe-1,mt=t?.isComplete,rt=E||He?!mt||!Me.BI||window.isPublicShare:lt[b+1],zt=!E&&!He,Ot=He&&!Me.BI,Ft=(0,_t.A)(Ot),Ns=E&&!He,mn=(0,h.useCallback)(Wa()(Ne,100),[Ne]);(0,h.useEffect)(()=>{const Qt=c.current;return Qt?.addEventListener("scroll",mn,{passive:!0}),()=>Qt?.removeEventListener("scroll",mn,{passive:!0})},[mn]),(0,h.useEffect)(()=>{document.activeElement===p.current?!A&&E?m.current?.focus({preventScroll:!0}):!Ft&&Ot&&f.current?.focus({preventScroll:!0}):document.activeElement===m.current&&A&&!E&&p.current?.focus({preventScroll:!0})},[E,A,Ft,N,Ot,x]),(0,FB.A)(()=>{Nm(),k.current=setTimeout(()=>{L(!1),c.current?.focus?.()},W+O5)},()=>{clearTimeout(k.current)});const ps=(0,h.useCallback)(Qt=>{const jn=l.current?.getBoundingClientRect()?.top??0;C((0,Wr.ty)(jn)),y(Qt),we()},[C,we]),tn=(0,h.useCallback)(()=>{x||(L(!0),v.push("/"))},[v,x]),Wn=G?.lmsOptions?.disableCoverPage,rr=(0,h.useCallback)(Wn?()=>{C((0,Wr.zP)(or.f.DOWN)),ps(0)}:tn,[Wn,ps,tn,C,Wr.zP]),Pl=(0,h.useCallback)(()=>{x||(b>0?(C((0,Wr.zP)(or.f.DOWN)),ps(b-1)):tn())},[ps,C,b,x,tn]),ci=(0,h.useCallback)(()=>{x||(He&&Me.BI?v.push("/lessons/progress-summary"):(C((0,Wr.zP)(or.f.UP)),ps(b+1)))},[ps,C,v,He,b,x]),b1=(0,h.useCallback)(()=>{(b<Xe-1||He&&Me.BI)&&ci()},[He,b,Xe,ci]),$r=(0,h.useCallback)(()=>{const Qt=c.current?.scrollTop??0,jn=c.current?.clientHeight??0,In=M?"instant":"smooth";c.current?.scrollTo({top:Qt+jn,behavior:In})},[M]),Kr=(0,h.useCallback)(()=>{ci()},[ci]),y1=(0,h.useCallback)(()=>{$r()},[$r]),E1=(0,h.useCallback)(Qt=>{if(Qt===b||x)return;const jn=Qt<b?or.f.DOWN:or.f.UP;C((0,Wr.zP)(jn)),ps(Qt),queueMicrotask(()=>{u.current?.querySelectorAll("[data-control]")?.[Qt]?.focus?.()})},[ps,C,b,x]),cs=(0,h.useCallback)(()=>L(!0),[]),$n=(0,h.useCallback)(()=>{L(!1),setTimeout(()=>{if(d.current&&u.current?.contains?.(document.activeElement)){const Qt=Hu()(d.current.innerText,{length:75,separator:hH});a(),r(`Content preview: ${Qt}`)}else c.current?.focus?.()},0)},[r,a]),Gr=(0,h.useCallback)(()=>{if(Re)return;const{isAtTop:Qt}=Rd(c.current);if(Qt){b===0?rr():Pl();return}},[Re,Pl,b,rr]),Rl=(0,h.useCallback)(()=>{if(Re||He&&!Me.BI||rt)return;const{isAtBottom:Qt}=Rd(c.current);if(Qt){Kr();return}},[He,rt,Re,Kr]),Mz=(0,h.useCallback)(()=>{const{isAtBottom:Qt,isAtTop:jn}=Rd(c.current),In=document.documentElement.clientWidth===window.innerWidth;return(Qt||jn)&&In},[]),kz=(0,h.useCallback)(Qt=>{!u.current?.contains?.(document.activeElement)&&!w5(Qt.target)&&Gr()},[Gr]),Oz=(0,h.useCallback)(Qt=>{!u.current?.contains?.(document.activeElement)&&!w5(Qt.target)&&Rl()},[Rl]),n6=(0,h.useCallback)(Qt=>{const{itemId:jn}=Qt.detail,In=ce.findIndex(Dz=>Dz.id===jn);In===-1||In===b||(C((0,Wr.zP)(In>b?or.f.UP:or.f.DOWN)),ps(In))},[ps,C,b,ce]);(0,h.useEffect)(()=>(window.addEventListener(ss,n6),()=>{window.removeEventListener(ss,n6)})),(0,I5.A)("ArrowUp",so(),kz),(0,I5.A)("ArrowDown",so(),Oz),lH({target:c.current,onSwipeUpHandler:Gr,onSwipeDownHandler:Rl,timeoutDuration:W+O5});const wz=Vn("gradient",{visible:E});return(0,s.jsx)("div",{className:Vn({}),children:(0,s.jsx)("div",{className:cH({transitioning:x}),id:"page-wrap",ref:c,tabIndex:"-1",children:(0,s.jsx)(bl,{type:Qe.y4,children:(0,s.jsx)(qa,{type:Qe.y4,children:(0,s.jsx)(ei,{children:(0,s.jsx)(Ar,{children:(0,s.jsxs)("div",{"data-lesson-id":ie?.id,children:[(0,s.jsxs)("div",{"aria-label":"Step controls",className:Vn("controls",{"touch-preview":Re}),ref:u,role:"region",children:[(0,s.jsxs)("button",{"aria-disabled":b===0&&Wn,"aria-hidden":b===0&&Wn,className:Vn("prev-btn",{"touch-preview":Re}),onClick:Pl,type:"button",children:[(0,s.jsx)(w,{className:Vn("arrow-icon",{"touch-preview":Re})}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),Ve&&(0,s.jsx)(rH,{activeSlideIndex:b,blockNavigationStyle:ue,numberOfSlides:Xe,onGoToCover:tn,onSlideClick:E1,previewType:n,slideDisabledState:lt}),(0,s.jsxs)("div",{className:Vn("next-btns"),children:[(0,s.jsxs)("button",{"aria-disabled":!Ns,"aria-hidden":!Ns,className:Vn("page-down-btn",{"touch-preview":Re}),onClick:Ns?y1:void 0,ref:m,tabIndex:Ns?void 0:-1,type:"button",children:[(0,s.jsx)(Z,{className:Vn("arrow-icon",{"touch-preview":Re})}),(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)"}),He&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":rt,"aria-hidden":!zt,className:Vn("next-btn",{"touch-preview":Re}),onClick:rt?void 0:Kr,ref:p,tabIndex:He?-1:void 0,type:"button",children:[(0,s.jsx)(Z,{className:Vn("arrow-icon",{"touch-preview":Re})}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",rt&&(0,s.jsx)("span",{children:"(disabled until content is completed)"}),He&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":!Ot,"aria-hidden":!Ot,className:Vn("restart-btn",{"touch-preview":Re}),onClick:Ot?rr:void 0,ref:f,tabIndex:He?void 0:-1,type:"button",children:[(0,s.jsx)(U,{className:Vn("restart-icon",{"touch-preview":Re})}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,s.jsxs)(Id,{onShouldRecognizeGesture:Mz,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:$n,onExiting:cs,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 ${b+1} of ${Xe}`}),(0,s.jsx)(_B,{hasTransitioned:!x,onContinue:b1,prefersKeyboardNavigation:e,previewType:n,ref:l,slide:ye,transitionState:Qt})]})},b)})}),(0,s.jsx)("div",{className:wz})]})]})})})})})})})},fH=(0,h.forwardRef)(pH),D5=re("blocks-lesson-restart-button"),gH=({className:t,onClick:e})=>{const n=D5.mix(t);return(0,s.jsx)("button",{className:n,onClick:e,type:"button",children:(0,s.jsx)(M1,{className:D5("icon")})})},vH=re("lesson-one-page-scroll"),CH=({previewType:t,prefersKeyboardNavigation:e,lessonProgress:n})=>{const o=(0,h.useRef)(),{lessons:r,...a}=(0,Te.DX)(),{lmsOptions:l={}}=a,d=(0,Te.d_)(),c=(0,st.useLabelsMap)(),{match:u}=(0,Ae.zy)(),m=(0,Ba.W)(),p=r[0],f=p?.id,g=F0(),v=p?.items||[],C=n?.isComplete&&!Me.BI,b=n?.isComplete&&Me.BI,y=l?.disableCoverPage,x=(0,h.useCallback)(()=>y?o.current?.scrollTo({top:0,behavior:Ms()?"instant":"smooth"}):m.push("/"),[m,y]);return(0,s.jsx)("div",{className:vH(),children:(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,s.jsx)(bl,{type:Qe.y4,children:(0,s.jsx)(qa,{type:"blocks",children:(0,s.jsxs)(ld,{children:[(0,s.jsx)(J3,{}),(0,s.jsx)(ei,{children:(0,s.jsx)(Ar,{children:(0,s.jsxs)("div",{"data-lesson-id":p?.id,children:[(0,s.jsx)(j3,{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)(gH,{onClick:x}),b&&(0,s.jsx)(n1,{lessonId:f})]})})})]})})})})})},B5=re("microlearning-progress-summary"),xH=re("page-wrap"),bH=({course:t,courseProgress:e,isStepped:n,lesson:o})=>{const r=(0,h.useRef)(),a=(0,h.useRef)(),[l,d]=(0,h.useState)(!1),c=B5("content",{stepped:n,mounted:l}).toString();return(0,A5.A)(()=>{const u=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:u}),d(!0)}),(0,s.jsxs)("div",{className:xH(),id:"page-wrap",ref:r,children:[(0,s.jsx)(s1,{className:B5("previous").toString(),lessonId:o?.id,ref:a}),(0,s.jsx)(P3,{contentClassName:c,course:t,courseProgress:e})]})},yH=t=>{const{isProgressSummary:e,courseProgress:n,lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}=t,l=Xt(),d=(0,O.wA)(),u=(0,It.Vu)(l)?.id,m=l?.theme?.blockNavigationType===I.HC.STEPPED;return(0,Z0.A)(()=>{e||((0,Ee.no)(u),d((0,Vm.B)(u)))}),e?(0,s.jsx)(bH,{course:l,courseProgress:n,isStepped:m}):m?(0,s.jsx)(fH,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}):(0,s.jsx)(CH,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a})};var EH=i(59288);const LH=960,f1=re("transcript-panel");function TH(){const t=(0,O.wA)(),{transcript:e,isOpen:n}=X0(),o=(0,h.useId)(),r=Os(LH),[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}=_e(),b=(0,h.useRef)({transcript:e,changedAt:Date.now()}),y=(0,Te.vU)(),x=(0,h.useRef)(null),L=(0,h.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),E=Z=>{t(s2({})),Z.stopPropagation(),Z.preventDefault()},S=(0,h.useCallback)(Z=>{const z=L.current.panelHeight,G=performance.now();m(!0);const ue=ie=>{const ce=ie-G,Ne=Math.min(ce/300,1),we=1-Math.pow(1-Ne,3),$e=z+(Z-z)*we;l($e),L.current.panelHeight=$e,Ne<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:U,startY:z,startHeight:G}=L.current;if(!r||z===null)return;const ue=z-(Z?.clientY??Z?.touches?.[0]?.clientY??0),ie=G+ue;if(l(ie),L.current.panelHeight=ie,U!==null){const ce=performance.now()-U,Ne=ue/ce;L.current.velocity=Ne}},[r]),A=(0,h.useCallback)(Z=>{const{velocity:U}=L.current;if(!U)return;Object.assign(L.current,{startY:null,startHeight:null,startTime:null}),c(!1);const z=window.innerHeight*.66;let G;Math.abs(U)>.5?G=U>0?window.innerHeight:150:G=a>=z?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 U=()=>{x?.current?.style&&(x.current.style.transition="none",x.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(ue=>{ue.style.transition="none"}))},z=()=>{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",U),window.addEventListener("resize",z),()=>{window.removeEventListener("resize",U),window.removeEventListener("resize",z),clearTimeout(Z)}},[]),(0,h.useEffect)(()=>{!n&&p.current&&l(0),p.current=n},[n]),(0,h.useEffect)(()=>(n&&e!==b.current.transcript&&(v(e||y?.audioNoTranscriptAvailable),b.current={transcript:e,changedAt:Date.now()}),()=>{C()}),[v,C,n,y?.audioNoTranscriptAvailable,e]);const M={role:"button",tabIndex:0,onMouseDown:k,onTouchStart:k,onTouchEnd:A,onTouchMove:N},[W,D]=EH.useState(!1),w=W?b.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:H()(f1({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?M:{},children:[(0,s.jsx)("h3",{id:o,ref:f,children:y?.audioTranscript}),(0,s.jsx)(po.ArcButton,{"aria-label":y?.audioHideTranscript,className:f1("close-button"),icon:(0,s.jsx)(bt,{name:"close"}),layout:"icon",onClick:E,ref:g,variant:"tertiary"})]}),(0,s.jsx)("section",{className:f1("transcript-text",{"not-available":!w}),children:w||y?.audioNoTranscriptAvailable})]})})}const Md=_l()(2,t=>t==="progress-summary"?Nt()(1/0):mE(t)),jH=vc()(ot()("type","section")),IH=({course:t,search:e})=>rs()(on()("lessons",e.lessons),on()("lessonsOnly",jH(e.lessons)))(t);class SH extends $().Component{static propTypes={children:Le().node,course:Le().object,courseProgress:Le().object,labels:F3.isRequired,lessons:Le().array,location:Le().object.isRequired,match:Le().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:Me.BI&&o.id==="progress-summary",isPreviewLesson:o.mode==="preview-lesson",lastScreen:null,menuDisabled:!1,selectedIndex:Md(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()(hE(e.lessons,e.match.params.id),this.state.activeSections),o=Me.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 Md(e.id)(this.props.lessons)<n?"page-transition-back":"page-transition"}handleFocusNewPage=()=>{const{course:e}=this.props;e.type===Qe.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=Md(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=Md(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=Ut()(-1,"retryCount",a),c=this.getLessonProgress(),u=Object.values(c?.items)?.filter(v=>v.isComplete!==!0),m=Ut()(0,"retryAttempts",c),p=parseInt(d,10),f=parseInt(m,10),g=p===f;u.map(v=>{let C=n?.items?.find(y=>this.isCurrentItem(y,v));if(C.type==="DRAW_FROM_QUESTION_BANK"){const y=v.id.split("-")[1];C=C.questions.find(x=>x.id===y)}const b=e({duration:0,id:n.id,isCorrect:!1,isUnfinished:!0,item:C,itemProgress:v,retryAttempts:m,title:n.title});(0,Ee.bb)(b),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:b,themeId:y}=this.props,{isPreviewLesson:x,isProgressSummary:L,isRestrictedNavHovering:E}=this.state,S=IH({course:e,search:v}),N=e.type===Qe.y4,k=N&&e.theme.blockNavigationType===I.HC.STEPPED?"-slide":"",M=`lesson--entering${k}`,W=`lesson--exiting${k}`,D=H()("lesson",{[M]: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:y},U=L?{courseProgress:n,lessons:c}:{},z=u?.settings?.timer;return(0,s.jsxs)(wO,{courseProgress:n,currentLessonId:n.currentLesson,handleExpiredQuiz:this.handleExpiredQuiz,isTimedQuiz:z,setQuizLessonTimeRemaining:b,timerDuration:u?.settings?.timerDuration,children:[(0,s.jsxs)("div",{className:"page-lesson-wrap",children:[!N&&(0,s.jsx)(w8,{}),(0,s.jsxs)("div",{className:"page-lesson",children:[(0,s.jsx)(TH,{}),(0,s.jsx)(CL,{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)(BB,{isPreviewLesson:x,children:N?(0,s.jsx)(yH,{courseProgress:n,isProgressSummary:L,lessonProgress:w,prefersKeyboardNavigation:C.prefersKeyboardNavigation,previewType:g}):(0,s.jsx)(hD,{isPreviewLesson:x,children:(0,s.jsx)(Ww,{...Z,...U},m.pathname)})})})})})})]})]}),(0,s.jsx)(Tc,{})]})}}function NH(){const t=Zt();return(e,n)=>{const o=ts()(["match","params","id"],n);return{lesson:t(o,e)}}}const AH={advanceQuizLessonToEnd:Ss.YC,submitQuizAnswer:Ss.kK,setQuizLessonTimeRemaining:Ss.hy},PH=ke()((0,O.Ng)(null,AH),(0,O.iE)(NH),vf(480,"isMobileHeader","Mobile"),M2)(SH);var RH=i(59288);const MH=()=>{let t=window;for(;t.parent!=t;)t=t.parent;try{t.innerHeight}catch{return window}return t},kH=t=>class extends RH.Component{constructor(e){super(e),this.state={orientation:{},navigationHidden:{}},this.applySafariLandscapeHack=this.applySafariLandscapeHack.bind(this),this.root=MH()}componentDidMount(){rn.isIphoneSafari&&(this.applySafariLandscapeHack(),this.root.addEventListener("resize",this.resizeRef=Wa()(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})}},g1=t=>{window.parent.postMessage({type:"preview:lessonChange",data:t})},OH=kH(PH);class wH extends $().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;g1(n)}componentDidUpdate(e){const n=this.props.match.params.id,o=e.match.params.id;n!==o&&g1(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)}),g1(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)(OH,{isEntering:e,isExiting:n,...this.props})})}}const v1=wH;var DH=i(59288);class BH extends DH.Component{render(){return(0,s.jsx)(Ae.rd,{to:`${this.props.to}`})}}const HH=t=>{const{location:e,course:n}=t,{path:o}=(0,Ae.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)(z0,{children:(0,s.jsxs)(zm,{location:e,children:[(0,s.jsx)(Rr,{childProps:t,component:v1,exact:!0,path:"/lessons/:id"}),(0,s.jsx)(Rr,{childProps:t,component:v1,path:"/lessons/:id/:mode"}),l?(0,s.jsx)(BH,{to:`${o}lessons/${d}`}):(0,s.jsx)(Rr,{childProps:t,component:Um,exact:!0,path:"/"}),(0,s.jsx)(Rr,{childProps:t,component:Um,exact:!0,path:"/:mode"})]})},r)})},C1=re("one-page-cover-info");function H5({htmlIdTitle:t}){const e=ga("title");return(0,s.jsxs)("div",{className:C1(),"data-change-path":e,children:[(0,s.jsx)(X3,{className:C1("title").toString(),htmlId:t}),(0,s.jsx)(Y3,{className:C1("authors").toString()})]})}H5.propTypes={htmlIdTitle:Le().string.isRequired};const zH=At("OnePageCoverInfo",H5);function FH(t){const e=(0,I0.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 kd=re("one-page-cover"),UH=re("cover");class VH extends h.Component{constructor(e){super(e),this.state={entering:!1,exiting:!1},this.refLink=(0,h.createRef)(),this.refMain=(0,h.createRef)()}componentDidMount(){Nm(),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=Ms()?.01:I.WQ;this.willEnterTimeout=setTimeout(e,n)})}componentWillExit(e){this.setState({exiting:!0},()=>{const n=Ms()?.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;Nd(this.props.previewType)||n||o||e.deltaY>k5&&(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=kd("wrapper",{[p]:n,[f]:o,[v]:a,accent:l,image:a,white:r}).mix(UH("header-content"));return(0,s.jsxs)(Id,{onSwipeUp:this.transitionToLessonContent,children:[(0,s.jsxs)("main",{className:C,ref:this.refMain,tabIndex:"-1",children:[(0,s.jsx)(zH,{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:kd("start-wrapper"),onClick:this.onClickStartArea,children:(0,s.jsx)(Mn,{"aria-label":"Start",className:kd("start-link"),ref:this.refLink,to:this.getLessonPath(),children:(0,s.jsx)(bt,{className:kd("start-icon"),name:"arrow-down"})})}),a&&(0,s.jsx)(t0,{})]}),(0,s.jsx)(Tc,{})]})}}function WH(t){const e=wt(t),n=(0,It.Vu)(e);return{course:e,lesson:n}}const z5=ke()(FH,(0,O.Ng)(WH,null,null,{forwardRef:!0}))(VH);var $H=i(59288);class F5 extends $H.Component{render(){return(0,s.jsx)(Ae.rd,{to:`${this.props.to}`})}}const KH=t=>{const{location:e,course:n}=t,o=e.pathname.split("/")[1],a={history:(0,Ba.W)(),...t},{path:l}=(0,Ae.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)(z0,{children:(0,s.jsxs)(zm,{location:e,children:[(0,s.jsx)(Rr,{childProps:a,component:v1,exact:!0,path:"/lessons/:id"}),c?(0,s.jsx)(F5,{to:`${l}lessons/${u}`}):(0,s.jsx)(Rr,{component:z5,exact:!0,path:"/"}),c?(0,s.jsx)(F5,{to:`${l}lessons/${u}/`}):(0,s.jsx)(Rr,{component:z5,exact:!0,path:"/:mode"})]})},o)})};class GH extends $().Component{constructor(e){super(e),this.passwordRef=(0,h.createRef)(),this.state={failAttempt:!1,shouldShake:!1}}static propTypes={onSubmit:Le().func.isRequired,failAttempt:Le().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=H()("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 QH=t=>({isOnePage:ro(t)}),U5=(0,O.Ng)(QH)(GH),Al=re("app-header"),ZH=({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)(En,{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})]})})},ai=re("app-header"),YH=({disabled:t,onClick:e})=>(0,s.jsx)("button",{className:ai("promo-btn"),disabled:t,onClick:e,type:"button",children:"New"}),V5=({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)(bc,{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)(YH,{disabled:e,onClick:g}),a]});return e&&r?(0,s.jsxs)(Bp,{"data-testid":"AppHeaderButtonTooltipContainer",children:[v,(0,s.jsx)(Hp,{className:"app-header__tooltip-button",side:"left",children:r})]}):v};V5.propTypes={children:Le().node,disabled:Le().bool,done:Le().bool,el:Le().string,href:Le().string,onClick:Le().func,tooltipText:Le().string,dataBa:Le().string};const LZ=()=>jsx("div",{className:ai("divider")}),TZ=({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:ai("menu-btn"),...r,children:jsx("a",{"aria-label":e,className:ai("menu-close"),href:o,onClick:l,children:jsx(ChevronLeft,{})})})},jZ=({onClick:t,label:e,...n})=>jsx("div",{className:ai("menu-btn"),children:jsx(Button,{ariaLabel:e,icon:"up-level-2",onClick:t,...n})}),IZ=({children:t,...e})=>jsx("div",{className:ai("owner-label"),...e,children:t}),Us=re("curtain");let W5;const _H=({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=ot()("status","error"),b=ot()("status","fatalError"),y=Mr()(C,ot()("reconnectFailed",!0));return(0,h.useEffect)(()=>(W5=setTimeout(v,1e4),()=>{clearTimeout(W5)}),[]),(0,h.useEffect)(()=>{if(n==="error"){const L=new Error("There was a socket connection error. The renderReconnect curtain was displayed");e3.y.logger.error(L.message,L)}},[n]),Ps()([[b,JH],[y,ez],[C,qH],[wo(),XH(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})},$5=()=>window.location.reload(!0),XH=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})]})}),JH=({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)(bc,{headerDone:!0,onClick:$5,children:o})]})}),qH=({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})]})}),ez=({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)(bc,{headerDone:!0,onClick:$5,children:o})]})}),K5=(0,h.memo)(_H);var tz=i(61170);function sz({children:t,locale:e,...n}){const o=(0,Ae.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 yo=re("locales-dropdown"),nz=({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=>{an(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]),b=(0,h.useCallback)(x=>{m&&!u.current?.contains(x?.target)&&p(!1)},[m]);(0,tz.A)(c,b),(0,h.useEffect)(()=>{const x=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&b()},0);return window.addEventListener("blur",x),()=>window.removeEventListener("blur",x)},[b]);const y=(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:yo({isOpen:m}),children:[(0,s.jsx)("div",{className:yo("trigger-wrap"),children:(0,s.jsxs)("button",{className:yo("trigger"),onClick:C,ref:u,type:"button",children:[d&&(0,s.jsx)("div",{className:yo("message-indicator")}),(0,s.jsx)(bt,{name:"globe"}),Lc(e),(0,s.jsx)(bt,{name:"chevron-down"})]})}),(0,s.jsxs)("div",{className:yo("contents"),ref:c,children:[r,(0,s.jsx)("div",{className:yo("grouping-header"),children:"Source"}),(0,s.jsx)(G5,{checked:n===e,locale:n,onClick:y,type:l}),(0,s.jsx)("div",{className:yo("grouping-header"),children:"Translations"}),v.map(x=>(0,s.jsx)(G5,{checked:x===e,locale:x,onClick:y,type:l},x)),t&&(0,s.jsx)("a",{className:yo("stack-button"),href:`/manage/locales/${t}`,children:"Back to Stack"})]})]})},G5=({checked:t,locale:e,onClick:n,type:o})=>o==="link"?(0,s.jsx)(sz,{className:yo("option",{checked:t}),"data-locale":e,locale:e,onClick:n,children:Lc(e)},e):(0,s.jsx)("button",{className:yo("option",{checked:t}),"data-locale":e,onClick:n,type:"button",children:Lc(e)},e),oz=({hideBackToStack:t,...e})=>{const n=(0,Te.DX)(),{currentLocale:o}=(0,jt.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)(nz,{backToStackCourseId:l,currentLocale:o,defaultLocale:a,locales:d,optionType:"link",...e})},Q5=window.location.origin,rz=1e3,az="course:ready",Z5="localizedSharePreview:ready",iz="preview:selectLocale",x1="localizedSharePreview:toggleCurtain",Y5="localizedSharePreview:togglePreview",ii=re("localized-share-preview"),li=!!window.frameElement,_5=t=>(0,ds.HX)(t)&&(0,Ee.GS)(),lz=t=>_5(t)&&!li,cz=(t,e)=>window.parent?.postMessage({type:t,data:e});let X5=null;const dz=({children:t})=>{const e=(0,O.wA)(),n=(0,Ba.W)(),o=(0,Ae.zy)(),{currentLocale:r,setCurrentLocale:a}=(0,jt.nY)(),l=(0,xt.D_)(),d=Nn(),{hasPassword:c}=Xt()??{},u=!!c||(0,Ee.og)(),m=(0,h.useRef)(null),[p,f]=(0,h.useState)(!1),[g,v]=(0,h.useState)(!1),[C,b]=(0,h.useState)(!u),y=(0,h.useMemo)(()=>`${Q5}/share/${window.shareId}#/?locale=${r}`,[]),[x,L]=(0,h.useState)(null),[E,S]=(0,h.useState)(r),[N,A]=(0,h.useState)(!1),[k,M]=(0,h.useState)(!li),W=(w,Z)=>m.current?.contentWindow.postMessage({type:w,data:Z});(0,h.useEffect)(()=>{li||W(iz,r)},[r]),(0,h.useEffect)(()=>{li&&(cz(Z5),setTimeout(()=>A(!0),0))},[]),(0,h.useEffect)(()=>{const w=Z=>{if(Z.origin!==Q5)return;const z=Z.data?.type,G=Z.data?.data;if(li)switch(z){case x1:{M(G);break}case Y5:{G?(S(r),L(o),e((0,U0.Wp)(!0)),a(l),n.replace("/")):(e((0,U0.Wp)(!1)),a(E),n.replace(x)),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(z){case az:{M(!1);break}case Z5:{b(!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(X5),v(!0),W(x1,!0),X5=setTimeout(()=>{v(!1),W(x1,!1),f(w)},rz),setTimeout(()=>{W(Y5,w)},0)},[p]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ii("curtain",{hide:!k}),children:(0,s.jsx)(K5,{})}),li?N&&t:(0,s.jsxs)("div",{className:ii(),children:[C&&(0,s.jsx)(ZH,{className:ii("header"),localesDropdown:!p&&!g&&(0,s.jsx)(oz,{hideBackToStack:!0}),title:d,children:(0,s.jsx)(V5,{capitalize:!1,className:ii("preview-button"),disabled:g,done:!0,onClick:D,children:p?"Close Learner Preview":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(bt,{className:ii("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,s.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:ii("iframe"),ref:m,src:y})]})]})},uz=(0,h.lazy)(()=>i.e("_b106").then(i.t.bind(i,63744,23))),hz=({children:t})=>{const e=(0,xt.jc)();return(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(uz,{locales:e,LocaleSelector:Tc,SharePasswordDialog:U5,children:t})})},mz={get isInstantLink(){return!!window.InstantLinks?.publicId}},J5=Object.assign(document.createElement("div"),{id:"portal"});function q5(t){(t??document.body).appendChild(J5),J5.style.display=t?"":"none"}q5();const pz=(t,e)=>!(t==="firstLesson"&&e.includes("/lessons/"))&&!(t==="cover"&&(e==="/"||e==="/preview")),fz=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",nn.FOCUS,nn.TOGGLE,nn.CLEAR,nn.TRANSLATION_HOVERED,nn.TRANSLATION_HOVER_CLEAR].includes(t),gz=t=>t===window.location.origin||t==="articulate.com"||t.endsWith(".articulate.com"),vz=({course:t,fonts:e,l10n:n})=>()=>((0,O.JD)((0,wi.V7)({course:t,fonts:e,l10n:n})),ja().Resolved()),Cz=()=>(window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin),ja().Resolved()),xz=({course:t,fonts:e,l10n:n})=>ja()((o,r)=>{(0,k7.U)(e,r)}).chain(vz({course:t,fonts:e,l10n:n})).chain(Cz),bz=t=>_5(t)?dz:mz.isInstantLink?hz:h.Fragment;class e6 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=cf({locale:e.currentLocale})}UNSAFE_componentWillMount(){const{l10n:e}=this.props;rn.isIe11&&document.documentElement.classList.add("ie11"),rn.isSafari9&&document.documentElement.classList.add("safari9"),rn.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),rn.isSafari&&this.props.match.params.mode==="iframe"&&r7().enable(),window.addEventListener("message",this.handleMessage),window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:nn.STATUS,data:!!window.targetMode},"*"),(0,Ee.xr)()&&window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e?.defaultLocale,locales:e?.locales?.map(({locale:n})=>n)}}),F7(),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,gt.on)("favoriteAdded",this.onFavoriteAdded),(0,gt.on)("favoriteRemoved",this.onFavoriteRemoved),document.addEventListener("click",()=>{window.parent.postMessage("coursePreviewIframeClicked","*")})}updateConnectionStatus(e){(0,O.JD)((0,Em.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,gt.AU)("favoriteAdded",this.onFavoriteAdded),(0,gt.AU)("favoriteRemoved",this.onFavoriteRemoved)}isRTLEnabled(){const{course:e,l10n:n,currentLocale:o}=this.props;return(0,M7.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(!gz(o))return;const{history:r,location:{pathname:a},setCurrentLocale:l}=this.props,{course:{lessonsOnly:d}}=this.props;(0,t7.A)(n).forEach(({type:c,data:u})=>{if(fz(c)){if(c===nn.TOGGLE&&window.targetMode(u,m=>{window.parent.postMessage({type:nn.HOVERED,data:m},"*")}).then(m=>{window.parent.postMessage({type:nn.SELECTED,data:m},"*")}).catch(()=>{window.parent.postMessage({type:nn.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(pz(m,a)){if(Array.isArray(g)&&({type:m,lessonId:p,itemId:f}=(0,w1.Ce)(g)),m==="firstLesson")C(`/lessons/${d[0].id}`);else if(m==="cover"||m==="course")C("/");else if(m==="lesson"&&d.find(({id:y})=>y===p)!=null){const y=()=>{window.dispatchEvent(new CustomEvent(ss,{detail:{lessonId:p,itemId:f,path:g}}))};`/lessons/${p}`!==a?(C(`/lessons/${p}`),setTimeout(y,1500)):y()}}}if(c===nn.CLEAR&&window.dispatchEvent(new CustomEvent(b0)),c==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(nm)),c==="preview:navClose"&&window.dispatchEvent(new CustomEvent(om)),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,a7.A)(m,{behavior:"smooth",block:"start"})}c==="preview:replace"&&(0,O.JD)((0,wi.HC)(u)),c==="preview:changeset"&&(0,O.JD)((0,wi.TJ)(u)),c==="preview:selectLocale"&&l(u,"replace"),c===nn.FOCUS&&hf(u.path),c===nn.TRANSLATION_HOVERED&&uf(u.path),c===nn.TRANSLATION_HOVER_CLEAR&&lf()}})}handleThemePreviewUpdate({course:e,l10n:n,fonts:o,theme:r}){this.cancelThemePreviewUpdate();const{course:a}=this.props,l=on()("theme",r,e),d=(0,i7.MT)(a,l);this.cancelThemePreviewUpdate=xz({course:d,fonts:o,l10n:n}).fork(console.warn,Bs.lQ)}onSharePasswordSubmit(e){return(0,Ee.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,ym.nF)())}onFavoriteRemoved(){(0,O.JD)((0,ym.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:b,search:y,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:b,previewType:E,search:y,sessionPreferences:x,themeId:l},A=d?.accentContrast,k=c===Qe.y4,M={accentContrast:A,bodyTypeface:o,color:r,headingTypeface:a,isLegacyCourse:n?.isLegacyCourse,uiTypeface:u},W=H()("theme",e,l,{"one-page":k}),D=bz(n);return(0,s.jsx)(Te.rv,{course:n,courseProgress:m,l10n:f,labels:S,partnerContent:b,search:y,children:(0,s.jsx)(C8,{themeId:l,children:(0,s.jsx)(bm,{courseColor:r,children:(0,s.jsx)(Jf,{i18n:(0,Ee.Rc)(),children:(0,s.jsxs)("div",{className:W,id:"innerApp",ref:q5,children:[(0,s.jsx)(J7,{...M}),(0,s.jsx)(Mm,{env:"runtime",children:(0,s.jsx)(D,{children:(0,s.jsxs)(Ar,{children:[k?(0,s.jsx)(KH,{...N}):(0,s.jsx)(HH,{...N}),(0,s.jsx)(yy,{})]})})})]})})})})})}showPasswordDialog(){const{isInvalidPassword:e}=this.state,{course:n}=this.props,{hasPassword:o}=n;return e&&(0,Ee.GS)()&&!lz(n)&&(!!o||(0,Ee.og)())}render(){const{failAttempt:e}=this.state,{onSharePasswordSubmit:n}=this;return this.showPasswordDialog()?(0,s.jsx)(U5,{failAttempt:e,onSubmit:n}):this.renderAppLayout()}}e6.prototype.cancelThemePreviewUpdate=Function.prototype;const yz=ke()($7,I0.A,jt.wZ)(e6),Ez=()=>(0,s.jsx)(Ar,{title:tl(),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 Lz=i(94983);function t6(){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 Tz(){const t=(0,O.wA)();(0,h.useEffect)(()=>{t((0,wi.EL)()),t((0,R0.pb)())},[t])}function jz(){const t=(0,O.wA)(),e=(0,h.useCallback)(()=>{t((0,Em.$2)(!0))},[t]),n=t6(),{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 Iz(){Tz(),jz();const t=t6(),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,Lz.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)(Ez,{}):p?(0,s.jsx)(K5,{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)(yz,{...t})}const Sz=Iz,Od=document.createElement("style");Od.innerHTML=`
  @layer rise-reset, art-theme, art-utils;

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