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

    --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}},87983(et,xe,c){"use strict";c.d(xe,{cF:()=>W,LK:()=>is,LM:()=>Me,TJ:()=>Nn,Ay:()=>vo,EL:()=>cs,HC:()=>go,V7:()=>In,YB:()=>gn});var A=c(91162),U=c(80259),P=c.n(U),G=c(26488),Q;function _(){return G.action}function me(){return Q}var re=c(98600),ee=c(23290),s=c(35320),be=c(98945),we=c(87230),ie=c(19689);const ue=(Ue=[],bt)=>bt?.partnerContentId?Ue.concat(bt.partnerContentId):Ue,oe=(Ue,bt)=>bt?.items?.reduce(ue,Ue)??Ue,Ee=(Ue,bt)=>bt?.items?.reduce(oe,Ue)??Ue,Ne=({course:Ue,lessons:bt})=>{const Bt=bt?.reduce(Ee,[])||[],Vs=Ue?.partnerContentId||null,Cn=Vs?[Vs]:[],Wo=new Set([...Bt,...Cn]);return Array.from(Wo)};var Se=c(32107),ae=c.n(Se),V,ce;const F=null,de=ae()({ACTIVE:null,PREVIEW:null}),ve=({themeId:Ue,themeCoverImage:bt,coverImageDefault:Bt})=>Ue==="classic"&&ce(Bt)?Bt:bt,Te=Ue=>({...Ue,theme:{...Ue?.theme,hideLessonHeaders:Ue?.theme?.hideLessonHeaders??!1}});var je=c(87686),ge=c.n(je),h=c(296),J=c.n(h),te=c(35567),K=c.n(te),Ve=c(93130),fe=c.n(Ve),se=c(12907),ye=c.n(se),$=c(87549),Re;const _e=K()([[J()([fe()(!0),fe()($.iV.ALL)]),ge()($.iV.ALL)],[J()([fe()(!1),fe()($.iV.NONE)]),ge()($.iV.NONE)],[fe()($.iV.INCORRECT),ge()($.iV.INCORRECT)],[ye(),ge()($.iV.ALL)]]),tt="draw from question bank",Xe="fillin",rt="matching",pt="multiple choice",ze="multiple response",qe=null;var Lt=c(73730),Kt=c(2924);const is="rise/course/LOAD_COURSE",Zt="rise/course/UPDATE_COMPLETED_AT",Me="rise/course/UPDATE_COURSE_PREVIEW",ft="rise/course/UPDATE_LESSON_PREVIEW",W="rise/course/APPLY_CHANGESET";let nt;(async()=>{try{({applyReviewDataToManifest:nt}=await c.e("webpack_container_remote_mondrian_learn-react").then(c.t.bind(c,4246,23)))}catch{}})();const Mt=_(),Ge=Ue=>{if("settings"in Ue&&Ue.settings&&(0,Kt.Gv)(Ue.settings)&&"revealAnswers"in Ue.settings){const Bt=Ue.settings;return{...Ue,settings:{...Ue.settings,revealAnswers:_e(Bt.revealAnswers)}}}return Ue},us=Ue=>(0,Lt.vm)(Ue)?(0,Lt.Ww)(Ue):Ue,Ze=Ue=>us(Ge(Ue)),Fs=Ue=>({...Ue,lessons:Ue.lessons?.map(Ze)||[]}),_s=Ue=>{const bt=Ue.lessons?.filter(Bt=>Bt.type!=="section")||[];return{...Ue,lessonsOnly:bt}},Yt=Ue=>Ue.theme==null,Ps=Ue=>(0,ee.MJ)((0,ee.uK)(Ue)),po=Ue=>Yt(Ue)?Ps(Ue):(0,ee.MJ)(Ue),Yn=Ue=>Te(po(Ue)),Uo=(Ue,bt)=>{let Bt=(0,A.TJ)(["course"],bt,Ue).result;const Vs=(0,A.TJ)(["lessons"],bt,Bt.lessons).result;return bt.some(Cn=>Cn.path[0]==="mondrian")&&Bt.mondrian&&nt&&(Bt={...Bt,mondrian:nt(Bt.mondrian,bt)}),{...Bt,lessons:Vs}},$o=Ue=>({...Ue,lessons:Ue.lessons?.map(s.K)||[]}),jt=(Ue,{completedAt:bt,course:Bt,favoritedAt:Vs,riseComCurrentUser:Cn,riseComCourseId:Wo,riseComEnrollmentType:ba,riseComLearningPathId:Ht})=>{const kt=Fs(Bt),jn=_s(kt),ya={...jn,theme:jn.theme??(0,ee.uK)(jn).theme};return{...Yn(ya),completedAt:bt,favoritedAt:Vs,riseComCourseId:Wo,riseComEnrollmentType:ba,riseComCurrentUser:Cn,riseComLearningPathId:Ht}},gs=Ue=>({...Ue,favoritedAt:new Date}),zs=Ue=>({...Ue,favoritedAt:null}),fo=Ue=>({...Ue,completedAt:new Date().toISOString()}),vo=(0,G.handle)({},{[be._q]:gs,[be.ut]:zs,[is]:jt,[Zt]:fo,[Me]:(Ue,{course:bt})=>bt,[ft]:(Ue,{lessons:bt})=>({...Ue,lessons:bt.map(Ze)}),[W]:Uo}),Tt=Ue=>bt=>{const{statusCode:Bt}=bt;Bt===404&&Ue((0,ie.cX)(!0))},k=Ue=>bt=>bt([{type:we.O,payload:Ue},(0,ie.$d)(!0)]),Vt=P().fromPromise(async(...Ue)=>await(0,re.qO)(...Ue)),Et=Ue=>Ue.length===0?(0,ie.$d)(!0):Vt(Ue).map(k),Tn=Ue=>bt=>{const{course:Bt}=bt,Vs=$o(Bt),Cn=Ne({course:Vs,lessons:Vs.lessons});Ue([Mt(is,{...bt,course:Vs,_originalLessons:Bt.lessons}),(0,ie.LW)(!0),Et(Cn)])},cs=()=>async Ue=>{try{const bt=await(0,re.hd)();Tn(Ue)(bt),(0,re.wW)(bt)}catch(bt){await Tt(Ue)(bt)}},go=Mt(is),In=Mt(Me),gn=Mt(ft),Nn=Mt(W)},13218(et,xe,c){"use strict";c.d(xe,{Kl:()=>P,Om:()=>Q,RA:()=>oe,Sw:()=>be,V9:()=>ie,Zp:()=>re,bf:()=>G,eQ:()=>s,i$:()=>Ee,re:()=>ue,sq:()=>me,ss:()=>we,w8:()=>_,y1:()=>ee});var A=c(26488);const U=Ne=>`rise/course/${Ne}`,P=U("BLOCKS_LESSON_COMPLETE"),G=U("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),Q=U("BLOCKS_LESSON_RESET"),_=U("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),me=U("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),re=U("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),ee=U("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),s=(0,A.action)(P),be=(0,A.action)(G),we=(0,A.action)(Q),ie=(0,A.action)(_),ue=(0,A.action)(me),oe=(0,A.action)(re),Ee=(0,A.action)(ee)},90477(et,xe,c){"use strict";c.d(xe,{$Z:()=>re,Ew:()=>Q,GL:()=>G,UZ:()=>_,_Y:()=>s,aM:()=>we,jS:()=>ee,tc:()=>me});var A=c(22191),U=c(20229),P=c(2924);function G(V,ce){const F=V.lessons[ce];if(!(0,A.rV)(F))return V;const de={...we(F),id:ce},ve=(0,A.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:de});return(0,A.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:ve})}function Q(V,ce){const{lessonId:F,blockId:de,itemId:ve}=ce,Te=V.lessons[F];if(!(0,A.rV)(Te))return V;const je=Te.items[de],ge=ue({blockProgress:je,itemId:ve}),h=Ee({lessonProgress:Te,blockId:de,updatedBlockProgress:ge}),J=(0,U.hh)(h),te=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:J});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:te})}function _(V,ce){const F=V.lessons[ce];if(!(0,A.rV)(F))return V;const de=Ne(F),ve=(0,A.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:de});return(0,A.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:ve})}function me(V,{blockId:ce,lessonId:F}){const de=V.lessons[F];if(!(0,A.rV)(de))return V;const ve=Se(de.items[ce]),Te=Ee({lessonProgress:de,blockId:ce,updatedBlockProgress:ve}),je=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:Te});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:je})}function re(V,ce){const{lessonId:F,blockId:de,items:ve}=ce,Te=V.lessons[F];if(!(0,A.rV)(Te))return V;const je=ie({blockId:de,lessonProgress:Te,items:ve}),ge=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:je});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:ge})}function ee(V,ce){const{lessonId:F,blockId:de,itemId:ve,audioVideoPlayhead:Te}=ce,je=V.lessons[F],ge=je?.items?.[de];if(!(0,A.rV)(je)||!ge||!("items"in ge)||!ge.items||!ge.items[ve])return V;const J={...ge.items[ve],audioVideoPlayhead:Te},te={...ge,items:{...ge.items,[ve]:J}},K=Ee({lessonProgress:je,blockId:de,updatedBlockProgress:te}),Ve=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:K});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:Ve})}function s(V,ce){const{lessonId:F,blockId:de,itemId:ve,isCorrect:Te}=ce,je=V.lessons[F];if(!(0,A.rV)(je))return V;const ge=ae({itemId:ve,isCorrect:Te,blockProgress:je.items[de]}),h=(0,U.hh)(Ee({lessonProgress:je,blockId:de,updatedBlockProgress:ge})),J=(0,A.b5)({courseProgress:V,lessonId:F,updatedLessonProgress:h});return(0,A.bo)({lessonId:F,prevCourseProgress:V,nextCourseProgress:J})}const be=V=>Object.values(V).length>0&&Object.values(V).every(ce=>ce.isComplete),we=V=>{const ce=(0,P.s0)(V.items,(F,de)=>{const ve=(0,P.s0)(de.items??{},(Te,je)=>[Te,{...je,isComplete:!0,id:je.id,index:je.index}]);return[F,{...de,items:ve,isComplete:!0}]});return{...V,isComplete:!0,items:ce,percentComplete:100}},ie=({blockId:V,items:ce,lessonProgress:F})=>{const de=F.items?.[V]??{items:{}},ve=new Set(ce.map(J=>String(J.id))),Te=(0,P.s0)(de.items??{},(J,te)=>{const K=ve.has(J);return[J,{...te,isComplete:te.isComplete||K,id:te.id,index:te.index}]}),ge=Object.keys(Te).length===0||be(Te),h={...de,id:V,items:Te,...ge&&{isComplete:!0}};return oe(Ee({lessonProgress:F,blockId:V,updatedBlockProgress:h}))},ue=({blockProgress:V,itemId:ce})=>{if(!V.items)return V;const F=V.items[ce];return{...V,items:{...V.items,[ce]:{...F,retryAttemptCount:(F?.retryAttemptCount??0)+1}}}},oe=V=>{const ce=(0,U.hh)(V);return ce.percentComplete===100?{...ce,isComplete:!0}:ce},Ee=({blockId:V,lessonProgress:ce,updatedBlockProgress:F})=>({...ce,items:{...ce.items,[V]:F}}),Ne=V=>{const ce=(0,P.s0)(V.items,(F,de)=>{const ve=(0,P.s0)(de.items??{},(Te,je)=>[Te,(0,P.QD)(je,["isComplete","isCorrect","isViewed"])]);return[F,{id:de.id,index:de.index,items:ve}]});return{...(0,P.QD)(V,["isComplete","percentComplete"]),items:ce}},Se=V=>({...(0,P.QD)(V,["percentViewed","correctlyAnswered"]),id:V.id,index:V.index,items:(0,P.s0)(V.items??{},(ce,F)=>[ce,(0,P.QD)(F,["isViewed","isCorrect"])]),retryAttempts:(V.retryAttempts??0)+1}),ae=({isCorrect:V,itemId:ce,blockProgress:F})=>{if(!F.items)return F;const de=F.items[ce],ve={...de,isComplete:V,isViewed:V,...de?.isCorrect===void 0&&{isCorrect:V}},Te={...F.items,[ce]:ve},je=Object.values(Te).filter(K=>K.isCorrect).length,ge={...F,items:Te,correctlyAnswered:je,...!V&&{lastIncorrectCardId:ce}},h=(0,U.f5)(ge),J=(0,U.QI)(h),te=J.percentComplete===100;return{...J,...te&&{isComplete:!0}}}},22191(et,xe,c){"use strict";c.d(xe,{Zn:()=>G,b5:()=>_,bo:()=>me,rV:()=>Q});var A=c(25798),U=c.n(A),P=c(98600);const G=ie=>!!ie&&ie.type==="quiz",Q=ie=>!!ie&&ie.type==="blocks",_=({courseProgress:ie,lessonId:ue,updatedLessonProgress:oe})=>({...ie,lessons:{...ie.lessons,[ue]:oe}});function me({lessonId:ie,nextCourseProgress:ue,prevCourseProgress:oe}){const Ee=ue.lessons[ie],Ne=oe.lessons[ie];if(Ee&&!U()(Ee,Ne)&&((0,P.C2)(Ee),re({lessonId:ie,courseProgress:ue,prevCourseProgress:oe})),ee({lessonId:ie,prevCourseProgress:oe,nextCourseProgress:ue})){const Se=be(oe),ae=be(ue),V=ae!==Se,ce={...ue,percentComplete:ae};return V&&(we({courseProgress:ce,lessonProgress:Ee}),ce.percentComplete!=null&&(0,P.O9)(ce.percentComplete)),ce}return ue}function re({courseProgress:ie,prevCourseProgress:ue,lessonId:oe}){const Ee=ie.lessons?.[oe],Ne=ue.lessons?.[oe];if(Ee?.percentComplete===100&&Ne?.percentComplete!==100){const Se=s(Ee);Se&&(0,P.aM)(Se)}}function ee({lessonId:ie,nextCourseProgress:ue,prevCourseProgress:oe}){const Ee=ue.lessons?.[ie];if(!Ee)return!1;const Ne=oe.lessons?.[ie]?.percentComplete===100,Se=Ee.percentComplete===100,ae=Ne!==Se,V=ue.currentLesson!=null&&G(ue.lessons[ue.currentLesson])&&ue.lessons[ue.currentLesson]?.percentComplete===100;return ae||V}function s(ie){const{id:ue}=ie;if(!ue)throw new Error("Cannot create lesson payload: lesson.id is missing");if(G(ie)){const{passed:oe,score:Ee,passingScore:Ne=0}=ie;return{id:ue,...oe!==void 0&&{passed:oe},...Ee!==void 0&&{score:Ee},passingScore:Ne}}return{id:ue}}function be(ie){const{lessons:ue={}}=ie,oe=Object.keys(ue).length;if(oe===0)return 0;const Ee=Object.values(ue).filter(Ne=>Ne.isComplete).length;return Math.round(Ee/oe*100)}function we({courseProgress:ie,lessonProgress:ue}){if(!ie||!ue)return;const oe=s(ue);oe&&(0,P.vb)(ie,oe)}},64660(et,xe,c){"use strict";c.d(xe,{B:()=>F,A:()=>ve});var A=c(26488),U=c(98600),P=c(13218),G=c(90477),Q=c(35125),_=c(58706),me=c(20229),re=c(87549),ee=c(35320),s=c(13054);const be=fe=>fe&&typeof fe=="object"&&fe.type&&s.fT.includes(fe.type),we=(fe,se)=>{const ye=new Map;return fe.forEach($=>{if((0,ee.c)($)){const Re=se.find(_e=>String(_e.id)===String($.id));Re&&Re.type==="blocks"&&ye.set(String($.id),String(Re.id))}}),ye},ie=(fe,se)=>{const ye={id:String(fe.id),index:fe.index,type:"blocks",items:{}};return typeof fe.isComplete=="boolean"&&(ye.isComplete=fe.isComplete),typeof fe.percentComplete=="number"&&(ye.percentComplete=fe.percentComplete),se.type==="blocks"&&se.items&&se.items.forEach(($,Re)=>{if($?.id!=null&&(ye.items[$.id]={id:$.id,index:Re,isComplete:fe.isComplete===!0&&Re===0,items:$.items?{}:void 0},$.items&&Array.isArray($.items))){const _e={};$.items.forEach((tt,Xe)=>{tt?.id!=null&&(_e[tt.id]={id:tt.id,index:Xe,isComplete:fe.isComplete===!0})}),Object.keys(_e).length>0&&(ye.items[$.id].items=_e)}}),ye},ue=(fe,se)=>{const ye=new Set(se.map(Re=>String(Re.id))),$=[];return Object.values(fe.lessons).forEach(Re=>{be(Re)&&(ye.has(String(Re.id))||$.push(Re))}),$},oe=(fe,se,ye)=>{const $={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},Re={...fe,lessons:{...fe.lessons}},_e=ue(fe,ye);$.totalLegacyLessons=_e.length;const tt=we(se,ye),Xe=[];return _e.forEach(rt=>{try{const pt=tt.get(String(rt.id))||String(rt.id),ze=ye.find(qe=>String(qe.id)===pt);if(ze&&ze.type==="blocks"){const qe=ie(rt,ze);Re.lessons[String(ze.id)]=qe,String(rt.id)!==String(ze.id)&&delete Re.lessons[String(rt.id)],$.successfulMigrations++}else Xe.push(String(rt.id)),$.failedMigrations++}catch(pt){console.warn(`Failed to migrate legacy lesson progress for lesson ${rt.id}:`,pt),Xe.push(String(rt.id)),$.failedMigrations++}}),{migratedProgress:Re,orphanedLessonIds:Xe,migrationSummary:$}},Ee=fe=>Object.values(fe.lessons).some(be),Ne=fe=>{let se=0,ye=0;const $=[];return Object.values(fe.lessons).forEach(Re=>{ye++,be(Re)&&(se++,$.includes(Re.type)||$.push(Re.type))}),{legacyCount:se,totalCount:ye,legacyTypes:$,hasLegacyProgress:se>0}},Se=(fe,se,ye)=>{if(!Ee(fe))return fe;const $=oe(fe,se,ye);return $.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",$.orphanedLessonIds),$.migratedProgress},ae=fe=>`rise/course/${fe}`,V=ae("BOOKMARK_LESSON"),ce=ae("LOAD_COURSE"),F=(0,A.action)(V),de={lessons:{},percentComplete:0},ve=(0,A.handle)(de,{[P.Kl]:G.GL,[P.bf]:G.Ew,[P.Om]:G.UZ,[P.w8]:G.tc,[P.sq]:G.$Z,[P.Zp]:G.jS,[P.y1]:G._Y,[Q.z_]:_.Qv,[Q.Eg]:_.Ki,[Q.be]:_.ZL,[Q.jZ]:_.Jx,[Q.Ck]:_.pl,[Q.fV]:_.Ux,[Q.jo]:_.NZ,[Q.V8]:_.uR,[Q.Z8]:_.XW,[Q.Dh]:_.yi,[Q.ug]:_.bu,[V]:je,[ce]:Te});function Te(fe,se){const ye=se.course?.lessons??[],$=se._originalLessons??ye,Re=(0,U.y4)(J(ye));if(typeof Re!="object"||Re===null)return fe;const _e={...fe,...Re};return Ee(fe)&&$!==ye?Se(_e,$,ye):_e}function je(fe,se){return(0,U.Fc)(se),{...fe,currentLesson:se}}const ge=({index:fe,lessonId:se,settings:ye,type:$})=>$==="quiz"?{id:se,index:fe,type:$,items:{},passingScore:Number(ye?.passingScore??re.hB)}:{id:se,index:fe,type:"blocks",items:{}};function h(fe){return fe.type==="quiz"&&"settings"in fe}function J(fe){return{lessons:fe.reduce((ye,$,Re)=>h($)?te({index:Re,items:$.items,lessonId:$.id,lessonProgress:ye,settings:$.settings,type:$.type}):$.type==="blocks"?te({index:Re,items:$.items,lessonId:$.id,lessonProgress:ye,type:$.type}):ye,{})}}function te(fe){const{lessonId:se,index:ye,items:$,lessonProgress:Re={},settings:_e,type:tt}=fe,Xe=ge({lessonId:se,index:ye,settings:_e,type:tt});if($.length===0)return{...Re,[se]:Xe};const rt=tt==="quiz"?Ve($):K($);return{...Re,[se]:{...Xe,items:rt}}}function K(fe){return fe.reduce((se,ye,$)=>{const Re=ye.id,_e=ye.items??[],tt=(0,me.BC)(_e);return se[Re]={id:Re,index:$,items:tt},se},{})}function Ve(fe){return fe.reduce((se,ye,$)=>(se[ye.id]={id:ye.id,index:$},se),{})}},35125(et,xe,c){"use strict";c.d(xe,{Ck:()=>_,Dh:()=>we,Eg:()=>s,FU:()=>Ee,NC:()=>ce,Nj:()=>Se,QI:()=>ue,RW:()=>de,V8:()=>ee,YC:()=>oe,Yu:()=>Ne,Z8:()=>be,be:()=>G,fV:()=>me,hy:()=>V,jZ:()=>Q,jo:()=>re,kK:()=>F,mg:()=>ae,ug:()=>ie,x6:()=>ve,z_:()=>P});var A=c(26488);const U=Te=>`rise/course/${Te}`,P=U("QUIZ_LESSON_ADVANCE_STEP"),G=U("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),Q=U("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),_=U("QUIZ_LESSON_RESTART"),me=U("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),re=U("QUIZ_LESSON_SET_ANSWER_MATCHES"),ee=U("QUIZ_LESSON_SET_ANSWER_TEXT"),s=U("QUIZ_LESSON_ADVANCE_TO_END"),be=U("QUIZ_LESSON_SET_TIME_REMAINING"),we=U("QUIZ_LESSON_SUBMIT_ANSWER"),ie=U("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),ue=(0,A.action)(P),oe=(0,A.action)(s),Ee=(0,A.action)(_),Ne=(0,A.action)(me),Se=(0,A.action)(ee),ae=(0,A.action)(ie),V=(0,A.action)(be),ce=(0,A.action)(re),F=(0,A.action)(we),de=(0,A.action)(G),ve=(0,A.action)(Q)},58706(et,xe,c){"use strict";c.d(xe,{Jx:()=>s,Ki:()=>re,NZ:()=>ue,Qv:()=>me,Ux:()=>ie,XW:()=>oe,ZL:()=>ee,bu:()=>Ne,oO:()=>ae,pl:()=>we,uR:()=>be,yi:()=>Ee});var A=c(22191),U=c(90477),P=c(2924),G=c(24639),Q=c(98600),_=c(87549);function me(F,{lessonId:de,progressId:ve}){const Te=F.lessons[de];if(!(0,A.Zn)(Te))return F;const je=Te.activeIndex??0,ge=ve?(Te.items[ve]?.index??je)+1:je+1,h={...Te,activeIndex:ge},J=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:h});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:J})}function re(F,de){const ve=F.lessons[de];if(!(0,A.Zn)(ve))return F;const Te=Object.keys(ve?.items)?.length,je={...ve,activeIndex:Te+1},ge=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:je});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:ge})}function ee(F,{lessonId:de,itemId:ve}){const Te=F.lessons[de];if(!(0,A.Zn)(Te))return F;const je=Te.items[ve];if(!je)return F;const ge={...je,selectedIndices:[]},h=Se({lessonProgress:Te,itemId:ve,updatedQuizItemProgress:ge}),J=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:h});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:J})}function s(F,{lessonId:de,lessonProgress:ve}){return{...F,lessons:{...F.lessons,[de]:ve}}}function be(F,{lessonId:de,itemId:ve,text:Te}){const je=F.lessons[de];if(!(0,A.Zn)(je))return F;const ge=je.items[ve];if(!ge)return F;const h=typeof Te=="string"&&(0,G.h)(Te)?(0,P.QD)(ge,["text"]):{...ge,text:Te},J=Se({lessonProgress:je,itemId:ve,updatedQuizItemProgress:h}),te=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:J});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:te})}function we(F,de){const ve=F.lessons[de];if(!(0,A.Zn)(ve))return F;const Te=(0,P.s0)(ve.items,(J,te)=>{const K={id:te.id,index:te.index};return[J,K]}),ge={...(0,P.QD)(ve,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...ve.passed!==!1&&{passed:ve.passed},...ve.isComplete!==!1&&{isComplete:ve.isComplete},retryAttempts:(ve.retryAttempts??0)+1,items:Te},h=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:ge});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:h})}function ie(F,{lessonId:de,itemId:ve,selectedIndex:Te,shuffledAnswerIndices:je}){const ge=F.lessons[de];if(!(0,A.Zn)(ge))return F;const h=ge.items[ve];if(!h)return F;const J=je??h.shuffledAnswerIndices;if(Te==null)return F;const te=Array.isArray(J)&&J[Te]!=null?J[Te]:Te,K={...h,selectedIndex:te,...Array.isArray(J)&&{shuffledAnswerIndices:J}},Ve=Se({lessonProgress:ge,itemId:ve,updatedQuizItemProgress:K}),fe=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:Ve});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:fe})}function ue(F,{lessonId:de,itemId:ve,matches:Te}){const je=F.lessons[de];if(!(0,A.Zn)(je))return F;const ge=je.items[ve];if(!ge)return F;const h={...ge,matches:Te},J=Se({lessonProgress:je,itemId:ve,updatedQuizItemProgress:h}),te=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:J});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:te})}function oe(F,{lessonId:de,timeRemaining:ve}){const Te=F.lessons[de];if(!(0,A.Zn)(Te))return F;const je={...Te,timeRemaining:ve},ge=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:je});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:ge})}function Ee(F,{lessonId:de,itemId:ve,isCorrect:Te,finalRetryAttempt:je,passToContinue:ge,skipLessonsIfPassed:h,skipToLessonId:J}){const te=F.lessons[de];if(!(0,A.Zn)(te))return F;const K=te.passingScore??_.hB,Ve=te.items[ve];if(!Ve)return F;const fe={...Ve,isCorrect:Te,isComplete:!0},se={...te.items,[ve]:fe},ye=Object.keys(se).length,$=Object.values(se).filter(pt=>pt.isCorrect).length,Re=Object.values(se).filter(pt=>pt.isComplete).length,_e=Math.round($/ye*100),tt=Math.round(Re/ye*100);let Xe={...te,items:se,score:_e,percentComplete:tt};if(tt===100){const pt=_e>=K,ze=ge?pt:!0;if((0,Q.X_)(pt,_e,de,je),Xe={...Xe,passed:pt,isComplete:ze,reportResults:!0},h&&J&&pt)return V(F,{quizId:de,destinationId:J,updatedLessonProgress:Xe})}const rt=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:Xe});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:rt})}function Ne(F,{lessonId:de,itemId:ve,selectedIndex:Te,shuffledAnswerIndices:je}){const ge=F.lessons[de];if(!(0,A.Zn)(ge))return F;const h=ge.items[ve];if(!h)return F;const J=je??h.shuffledAnswerIndices;if(Te==null)return F;const te=Array.isArray(J)&&J[Te]!=null?J[Te]:Te,K=h.selectedIndices??[],fe=K.includes(te)?K.filter(tt=>tt!==te):[...K,te],{selectedIndices:se,...ye}=h,$=fe.length>0?{...ye,selectedIndices:fe,...Array.isArray(J)&&{shuffledAnswerIndices:J}}:{...ye,...Array.isArray(J)&&{shuffledAnswerIndices:J}},Re=Se({lessonProgress:ge,itemId:ve,updatedQuizItemProgress:$}),_e=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:Re});return(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:_e})}function Se({itemId:F,lessonProgress:de,updatedQuizItemProgress:ve}){return{...de,items:{...de.items,[F]:ve}}}function ae(F,de){const{id:ve,passed:Te,passingScore:je,score:ge,retryAttempts:h}=de,J=[Te,h,ge];if(!(J.length===3&&J.every($=>$!=null)))return F;const K=F.lessons?.[ve]?.items??{},Ve=Object.keys(K).length+1,fe=F.lessons?.[ve];if(!fe)return F;const se={...fe,isComplete:!0,activeIndex:Ve,reportResults:!0,passed:Te,passingScore:je,percentComplete:100,retryAttempts:h,score:ge};return{...F,lessons:{...F.lessons,[ve]:se}}}function V(F,{quizId:de,destinationId:ve,updatedLessonProgress:Te}){const je=(0,A.b5)({courseProgress:F,lessonId:de,updatedLessonProgress:Te}),ge=(0,A.bo)({lessonId:de,prevCourseProgress:F,nextCourseProgress:je}),h=Object.keys(ge.lessons),J=h.findIndex(Ve=>Ve===de),te=h.findIndex(Ve=>Ve===ve);return J===-1||te===-1||te<=J?ge:h.slice(J+1,te).reduce((Ve,fe)=>{const se=Ve.lessons[fe];if(!se)return Ve;let ye;(0,A.Zn)(se)?ye=ce(se):ye=(0,U.aM)(se);const $=(0,A.b5)({courseProgress:Ve,lessonId:fe,updatedLessonProgress:ye});return(0,A.bo)({lessonId:fe,prevCourseProgress:Ve,nextCourseProgress:$})},ge)}function ce(F){const de=Object.fromEntries(Object.entries(F.items||{}).map(([ve,Te])=>[ve,{...Te,isComplete:!0,isCorrect:!0}]));return(0,Q.X_)(!0,100,F.id,!1),{...F,items:de,isComplete:!0,passed:!0,percentComplete:100,reportResults:!0,score:100}}},66056(et,xe,c){"use strict";c.d(xe,{A:()=>P,G:()=>G});var A=c(26488);const U="rise/features/SET_FEATURE_FLAGS",P=(0,A.handle)({},{[U]:(Q,_)=>_}),G=(0,A.action)(U)},78365(et,xe,c){"use strict";c.d(xe,{A:()=>me,r:()=>re});var A=c(26488),U=c(87983),P=c(61813),G=c(19689);const Q=(ee,{fonts:s})=>[...ee,...s],_=(ee,{fonts:s})=>s,me=(0,A.handle)([],{[U.LK]:Q,[U.LM]:_}),re=ee=>s=>{(0,P.U2)(ee,()=>{s((0,G.m7)(!0))})}},21730(et,xe,c){"use strict";c.d(xe,{Ay:()=>ee,Wp:()=>me});var A=c(26488),U=c(87983),P=c(91162);const G="rise/l10n/TOGGLE_LOCALE_SELECTOR",Q=(s,{l10n:be})=>be?{...s,...be}:s,_=(s,be)=>(0,P.TJ)(["l10n"],be,s).result,me=(0,A.action)(G),re=(s,be)=>s&&{...s,...!be&&{localeSelectorOptions:void 0},showLocaleSelector:be},ee=(0,A.handle)(null,{[U.LK]:Q,[U.LM]:Q,[U.cF]:_,[G]:re})},31051(et,xe,c){"use strict";c.d(xe,{A:()=>Ne,R:()=>Se});var A=c(26488),U=c(80259),P=c.n(U),G=c(16643),Q=c.n(G),_=c(66570),me=c.n(_);const ee=Q()(2,ae=>me()((0,A.error)(ae),(0,A.action)(ae)));var s=c(12146);const be="rise/learningPathUpNext/FETCH_LP_UP_NEXT",we="rise/learningPathUpNext/FETCH_LP_UP_NEXT_PENDING",ie={isPending:!1,isSuccess:!1,learningPathComplete:!1,nextCourse:{}},ue=ae=>!("id"in ae),oe=(ae,V)=>{const ce=ue(V);return{...ae,isPending:!1,isSuccess:!0,learningPathComplete:ce,lpHasFailedQuiz:V.lpHasFailedQuiz,nextCourse:ce?{}:V}},Ee=ae=>({...ae,isPending:!0}),Ne=(0,A.handle)(ie,{[be]:(0,A.onSuccess)(oe),[we]:Ee}),Se=ae=>[(0,A.action)(we),ee(be)(P().fromPromise(s.RR)(ae))]},87230(et,xe,c){"use strict";c.d(xe,{O:()=>U});const U=(P=>`rise/partnerContent/${P}`)("SET_ALL_PARTNER_CONTENT")},98945(et,xe,c){"use strict";c.d(xe,{_q:()=>P,nF:()=>Q,pp:()=>_,ut:()=>G});var A=c(26488);const U=me=>`rise/rise-com/${me}`,P=U("FAVORITE_ADDED"),G=U("FAVORITE_REMOVED"),Q=()=>(0,A.action)(P,void 0),_=()=>(0,A.action)(G,void 0)},75215(et,xe,c){"use strict";c.d(xe,{Ay:()=>oe,D2:()=>V,NM:()=>F,Se:()=>Ne,gA:()=>ae,ts:()=>Se,u:()=>ce});var A=c(26488);const U="rise/search/RESET_SEARCH",P="rise/search/SET_SEARCH_ACTIVE",G="rise/search/SET_SEARCH_ACTIVE_LESSONS",Q="rise/search/SET_SEARCH_TRANSLATIONS",_="rise/search/SET_SEARCH_LESSONS",me="rise/search/SET_SEARCH_TERM",re={active:!1,activeLessons:[],translations:{},lessons:[],term:null},ee=(de,ve)=>ve?{...re,active:de.active}:de,s=(de,ve)=>({...de,active:ve}),be=(de,ve)=>({...de,activeLessons:ve}),we=(de,ve)=>({...de,translations:ve}),ie=(de,ve)=>({...de,lessons:ve}),ue=(de,ve)=>({...de,term:ve}),oe=(0,A.handle)(re,{[U]:ee,[P]:s,[G]:be,[Q]:we,[_]:ie,[me]:ue}),Ee=de=>(0,A.action)(de),Ne=Ee(U),Se=Ee(P),ae=Ee(G),V=Ee(Q),ce=Ee(_),F=Ee(me)},43241(et,xe,c){"use strict";c.d(xe,{Ay:()=>ee,pb:()=>s,xi:()=>be});var A=c(26488);const U=we=>`rise/sessionPreferences/${we}`,P=U("LOAD_SESSION_PREFERENCES"),G=U("SET_PREFERS_KEYBOARD_NAVIGATION"),Q=U("SET_STARTING_COURSE_LESSON_SELECTED"),_={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},me=(we,ie)=>({...we,prefersKeyboardNavigation:ie}),re=(we,ie)=>({...we,startedCourseWithLessonSelected:ie}),ee=(0,A.handle)(_,{[P]:(we,ie)=>({...we,...ie}),[G]:me,[Q]:re}),s=()=>(0,A.action)(P,null),be=(0,A.action)(G)},79139(et,xe,c){"use strict";c.d(xe,{Ay:()=>_,ty:()=>re,zP:()=>me});var A=c(13054),U=c(26488);const P="rise/slidesUI/SET_SLIDE_DIRECTION",G="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",Q={slideDirection:A.fY.UP,exitingSlideOffset:0},_=(0,U.handle)(Q,{[P]:(ee,s)=>({...ee,slideDirection:s}),[G]:(ee,s)=>({...ee,exitingSlideOffset:s})}),me=(0,U.action)(P),re=(0,U.action)(G)},19689(et,xe,c){"use strict";c.d(xe,{$2:()=>s,$d:()=>we,Ay:()=>_,LW:()=>re,cX:()=>be,m7:()=>me,zq:()=>ee});var A=c(26488);const P=(ie=>`rise/status/${ie}`)("SET_LOADED"),G=(ie,ue)=>({...ie,...ue}),Q={connection:"connected",courseLoaded:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},_=(0,A.handle)(Q,{[P]:G}),me=(ie=!1)=>(0,A.action)(P,{fontsLoaded:ie}),re=(ie=!1)=>(0,A.action)(P,{courseLoaded:ie}),ee=(ie="connected")=>(0,A.action)(P,{connection:ie}),s=(ie=!1)=>(0,A.action)(P,{coverLoaded:ie}),be=(ie=!1)=>(0,A.action)(P,{notFound:ie}),we=(ie=!1)=>(0,A.action)(P,{partnerContentLoaded:ie})},89297(et,xe,c){"use strict";c.d(xe,{A:()=>Q,s:()=>_});var A=c(26488);const P=(me=>`rise/ui/${me}`)("SET_SKIP_TO_NAV_BUTTON_UI"),G={skipToNavButton:null},Q=(0,A.handle)(G,{[P]:(me,re)=>({...me,skipToNavButton:re})}),_=(0,A.action)(P)},88549(et,xe,c){"use strict";c.r(xe),c.d(xe,{selectLabelsMap:()=>P,useLabelsMap:()=>G});var A=c(96896),U=c(3285);function P(Q,_){return _?.l10n?.localeLabelSets?.[Q]?.labels||_?.courseLabels?.labels}function G(){const{currentLocale:Q}=(0,U.nY)();return(0,A.d4)(_=>P(Q,_))}},96896(et,xe,c){"use strict";c.d(xe,{Kq:()=>fe,Ng:()=>se,JD:()=>$,M_:()=>Re,wA:()=>_e,d4:()=>tt});var A=c(38835),U=c(87983),P=c(26488);const G=(Xe,{labelSet:rt})=>({...Xe,...rt}),Q=(0,P.handle)({},{[U.LK]:G});var _=c(64660),me=c(66056),re=c(78365);const ee={isPreview:window.viewType==="preview"},s=((Xe=ee)=>Xe);var be=c(21730),we=c(31051),ie=c(87230);const ue=(Xe,rt)=>{const pt=Xe.content.findIndex(qe=>qe.id===rt.id),ze=[...Xe.content];return pt===-1?ze.push(rt):ze[pt]=rt,{...Xe,content:ze}},oe=(Xe,rt)=>rt.reduce(ue,Xe),Ee={[ie.O]:oe},Ne=(0,P.handle)({content:[]},Ee);var Se=c(75215),ae=c(43241),V=c(79139),ce=c(19689),F=c(58510);const de={audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null},ve=(Xe,rt)=>rt.audioPlayerId?{...Xe,audioPlayerIdOpen:rt.audioPlayerId,focusing:rt.focusing??!1,refocusTarget:rt.refocusTarget??null,transcriptMedia:rt.transcriptMedia??null}:Xe,Te=()=>({audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null}),je=(Xe,rt)=>Xe.audioPlayerIdOpen?rt.audioPlayerId?{...Xe,audioPlayerIdOpen:rt.audioPlayerId,focusing:rt.focusing??Xe.focusing,transcriptMedia:rt.transcriptMedia??Xe.transcriptMedia}:Te():Xe,ge={[F.l6]:ve,[F.ju]:Te,[F.Y8]:je},h=(0,P.handle)(de,ge);var J=c(89297),te=c(17159);const K=te.BI?{learningPathUpNext:we.A}:{},Ve=(0,A.HY)({course:U.Ay,courseLabels:Q,courseProgress:_.A,features:me.A,fonts:re.A,global:s,l10n:be.Ay,partnerContent:Ne,search:Se.Ay,sessionPreferences:ae.Ay,slidesUI:V.Ay,status:ce.Ay,transcriptPanel:h,ui:J.A,...K}),{Provider:fe,connect:se,connectBase:ye,dispatch:$,store:Re,useDispatch:_e,useSelector:tt}=(0,A.Nv)(Ve)},35320(et,xe,c){"use strict";c.d(xe,{K:()=>ge,c:()=>je});var A=c(13054);const U={padding:"medium",alignment:"left"},P={embed:{aspectRatio:"16:9"},video:{controls:!0,autoplay:!1},labeledgraphic:{hotspotStyle:"numbers"},process:{navigation:"stepped"},sorting:{feedback:"immediate"},timeline:{orientation:"vertical"},paragraph:{fontSize:"medium"}},G=(h,J=0)=>`item_${h}_${J}`,Q=(h,J)=>[{id:G(`${J}_placeholder`,0),placeholder:!0,type:h,title:`Add ${h} content`}],_=h=>({...U,...P[h]??{}}),me=h=>typeof h=="string"?h.replace(/<p><br><\/p>/g,""):h,re=h=>h.map(J=>{if(J&&typeof J=="object"&&!Array.isArray(J)){const te={};for(const[K,Ve]of Object.entries(J))te[K]=me(Ve);return te}return J}),ee=h=>["Introduction","Summary"].map((J,te)=>({id:G(`${h}_process`,te),title:J,type:J.toLowerCase(),description:null,isHidden:!0})),s=(h,J)=>[{id:G(`${J}_text`,0),paragraph:h}],be=(h,J)=>[...ee(J),...h],we=(h,J)=>[{id:G(`${J}_video`,0),caption:"",media:h}],ie=(h=[],J)=>({family:"multimedia",id:G(`${J}_embed`,0),items:h.length?h:Q("embed",J),media:{},settings:_("embed"),type:"multimedia",variant:"embed"}),ue=(h,J,te)=>({family:"interactive-fullscreen",id:G(`${te}_labeledgraphic`,0),items:h,media:J,settings:_("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),oe=(h,J)=>({family:"interactive-fullscreen",id:G(`${J}_process`,0),items:re(h),media:{},settings:_("process"),type:"interactive",variant:"process"}),Ee=({items:h,piles:J},te)=>({family:"interactive-fullscreen",id:G(`${te}_sorting`,0),items:h,media:{},piles:J,settings:_("sorting"),type:"interactive",variant:"sorting"}),Ne=(h,J)=>({family:"text",id:G(`${J}_text`,0),items:re(h),settings:_("paragraph"),type:"text",variant:"paragraph"}),Se=(h,J)=>({family:"interactive-fullscreen",id:G(`${J}_timeline`,0),items:h,media:{},settings:_("timeline"),type:"interactive",variant:"timeline"}),ae=(h,J={},te)=>({family:"multimedia",id:G(`${te}_video`,0),items:h?.video?we(h,te):Q("video",te),media:{},settings:{...J,..._("video")},type:"multimedia",variant:"video"}),V=({items:h=[]},J)=>ie(h.map(({icon:te,...K})=>K),J),ce=({items:h=[],media:J},te)=>ue(h.map(({hasMedia:K,...Ve})=>Ve),J,te),F=({items:h=[]},J)=>{const te=h.map(K=>({...K,isHidden:!1,type:"step"}));return oe(be(te,J),J)},de=({items:h=[]},J)=>Se(h.map(({linePosition:te,...K})=>K),J),ve=(h,J)=>Ne(s(h,J),J),Te=(h,J)=>{switch(h.type){case"embed":return V(h,J);case"map":return ce(h,J);case"process":return F(h,J);case"sorting":return Ee(h,J);case"timeline":return de(h,J);case"screencast":case"slidecast":case"video":return ae(h.media,h.settings,J);default:throw new Error(`Unknown legacy lesson type: ${h.type}`)}},je=h=>typeof h?.type=="string"&&A.fT.includes(h.type),ge=h=>{if(!je(h))return h;const J=String(h.id),te={description:"",icon:"Article",type:"blocks"},K=[Te(h,J)],Ve=typeof h.description=="string"?h.description.trim():"";return Ve&&K.unshift(ve(Ve,`${J}_desc`)),{...h,...te,items:K,media:{}}}},98600(et,xe,c){"use strict";c.d(xe,{Fc:()=>Ie,hd:()=>tc,qO:()=>Xn,O9:()=>Ss,X_:()=>Rn,jr:()=>lr,_$:()=>El,JK:()=>es,GJ:()=>Sl,y4:()=>Ye,As:()=>Jn,Hm:()=>dr,Wk:()=>Il,og:()=>Pn,GS:()=>Gr,xr:()=>Fa,IV:()=>Tl,bb:()=>sc,o1:()=>za,wW:()=>kl,vb:()=>ds,aM:()=>Nt,C2:()=>hs,xS:()=>Nl,no:()=>i0,m5:()=>Kr});var A=c(81851),U=c(65259),P=c(87686),G=c.n(P),Q=c(82083),_=c.n(Q),me=c(69214),re=c.n(me),ee=c(81821),s=c.n(ee),be=c(71393),we=c.n(be),ie=c(1544),ue=c.n(ie),oe=c(49145),Ee=c.n(oe),Ne=c(7641),Se=c.n(Ne),ae=c(89399),V=c.n(ae),ce=c(24177),F=c.n(ce),de=c(71802),ve=c.n(de),Te=c(92074),je=c.n(Te),ge=c(32636),h=c.n(ge),J=c(4633),te=c.n(J);const K=q=>_()(U.QZ,q),Ve=q=>re()({[q]:U.QZ}),fe=({startTime:q,stopTime:Oe})=>Oe-q,se=q=>{switch(q.type){case"FILL_IN_THE_BLANK":return ze(q);case"MATCHING":return Mt(q);default:return _e(q)}},ye=q=>{switch(q.type){case"FILL_IN_THE_BLANK":return ze(q);case"MATCHING":return Mt(q);case"MULTIPLE_CHOICE":return Lt(q);case"MULTIPLE_RESPONSE":return is(q);default:return Lt(q)}},$=({isUnfinished:q,item:Oe,itemProgress:ht})=>{switch(Oe.type){case"FILL_IN_THE_BLANK":return qe(q)(ht);case"MATCHING":return Ge(Oe,q)(ht);case"MULTIPLE_CHOICE":return Kt(Oe,q)(ht);case"MULTIPLE_RESPONSE":return Zt(Oe,q)(ht);default:return Kt(Oe,q)(ht)}},Re=q=>[q],_e=q=>{const Oe=q.answers||[];if(q.shuffledAnswerIndices&&Array.isArray(q.shuffledAnswerIndices)){const ht=[];return Oe.forEach((yt,ts)=>{const Ts=q.shuffledAnswerIndices[ts];ht[Ts]=yt}),ht.map(Ve("title"))}return Oe.map(Ve("title"))},tt=K(je()("id")),Xe=K(je()("title")),rt=q=>Oe=>s()(h()("id",Oe),_e(q)),pt=q=>ue()(F())(_e(q)),ze=_()(ve()("title"),_e),qe=q=>Ee()(G()(q),G()(""),K(je()("text"))),Lt=q=>_()(rt(q),je()("correct"))(q),Kt=(q,Oe)=>Ee()(G()(Oe),G()([]),ht=>{const yt=je()("selectedIndex",ht);return yt===void 0?[]:Re(pt(q)(yt))}),is=q=>_()(we(),Se()(rt(q)),je()("corrects"))(q),Zt=(q,Oe)=>Ee()(G()(Oe),G()([]),ht=>{const yt=je()("selectedIndices",ht)||[];return we()(yt.map(ts=>Re(pt(q)(ts))))}),Me=({sourceId:q,sourceTitle:Oe,targetId:ht,targetTitle:yt})=>({source:{id:`source_${q}`,title:Oe},target:{id:`target_${ht}`,title:yt}}),ft=K(je()("matchTitle")),W=q=>{const Oe=tt(q);return Me({sourceId:Oe,sourceTitle:Xe(q),targetId:Oe,targetTitle:ft(q)})},nt=q=>(Oe,ht)=>{const yt=_e(q),ts=yt.find(_o=>_o.id===ht),Ts=yt.find(_o=>_o.id===Oe);return Me({sourceId:tt(ts),sourceTitle:Xe(ts),targetId:tt(Ts),targetTitle:ft(Ts)})},Mt=_()(Se()(W),_e),Ge=(q,Oe)=>Ee()(G()(Oe),G()([]),_()(te(),V()(nt(q)),je()("matches")));var us=c(79738),Ze=c(40774),Fs=c(90477),_s=c(58706),Yt=c(17159),Ps=c(66486),po=c(16791),Yn=c.n(po);const Uo=q=>q!==void 0,jt=Yn()(Uo,_()(JSON.parse,Ps.Base64.decode)),zs=(q,Oe)=>window.courseData?q(window.courseData):window.course?{course:q(window.course),media:[]}:Oe;var fo=c(52887),vo=c.n(fo),Tt=c(80340),k=c.n(Tt),Vt=c(23890),Et,Tn;const go=`${(0,Yt._$)("RBC_URI")}/api/partner_content`,In=null,gn=vo()(`${go}/`),Ue={transformRequest:[(q,Oe)=>(Oe.Authorization=`Bearer ${(0,Vt.gf)()}`,q)],headers:{"Content-Type":"application/json"}},bt=()=>Tn({...Ue,url:In}).toPromise().then(Et(["data","types"])),Bt=q=>Tn({...Ue,url:gn(q)}).toPromise().then(Et(["data","content"])),Vs=q=>(0,Vt.Em)({method:"POST",url:go,data:JSON.stringify({ids:q}),...Ue}).map(k()(["data","content"]));var Cn=c(28275),Wo=c.n(Cn),ba=c(15983),Ht=c.n(ba);const kt=(0,Yt._$)("SERVICE_ENV")==="prod",jn=kt?"com":"zone",Co=Wo()(JSON.stringify,Ht()(new RegExp(`https://images.riseusercontent.${jn}/`,"g"),`${(0,Yt._$)("IMAGES_URI")}/`),Ht()(new RegExp(`https://riseusercontent.${jn}/`,"g"),`${(0,Yt._$)("CDN_USER_CONTENT_URI")}/`),Ht()(new RegExp(`https://video.rise.${jn}/`,"g"),`https://video.riseusercontent.${jn}/`),Yn()(G()(!kt),Ht()(new RegExp("https://video.rise.com/","g"),"https://video.riseusercontent.zone/")),JSON.parse);var gl=c(42161),Cl=c.n(gl),La=c(15904),Or=c.n(La),Gi=c(43191),Ki=c.n(Gi),xl=c(43085),nr=c.n(xl),Dr=c(73525),ct=c.n(Dr),$e=c(1834),xo=c.n($e),or=c(47812),Go=c.n(or),_i=c(69451),Br=c.n(_i),Cs=c(11607),rr=c.n(Cs),xs=c(97150),Ko=c.n(xs),bo=c(82275),Ea=c.n(bo),rn=c(76044),yo=c.n(rn),kn=c(41642),Lo=c.n(kn),ls=c(21343),Sa=c.n(ls),Ta=c(415),Ia=c.n(Ta),ps=c(7689),xn=c.n(ps);const Qs=q=>!!q,ar={[Ze.En]:["activeIndex",ct()],[Ze.Ay]:["audioVideoPlayhead",Number],[Ze.l7]:["isComplete",Qs],[Ze.Ko]:["correctlyAnswered",ct()],[Ze.WY]:["percentComplete",ct()],[Ze.sZ]:["retryAttempts",ct()],[Ze.jw]:["score",ct()],[Ze.eZ]:["currentTime",ct()],[Ze.Ze]:["percentViewed",ct()],[Ze.mj]:["reportResults",ct()],[Ze.p3]:["passed",ct()],[Ze.ft]:["passingScore",ct()],[Ze.pd]:["questionsDrawn",ct()],[Ze.ce]:["questionList",Se()(Se()(ct()))],[Ze.M$]:["timeRemaining",Number]},os=q=>(Oe,ht)=>Or()([nr()(ar[ht])],rr()(ar[ht])(Oe),q),Na=q=>(Oe,ht)=>{let yt=rr()(ja[ht])(Oe);return ht===Ze.fd&&(yt=yt(je()("items",q))),{[nr()(ja[ht])]:yt}},gt=q=>Oe=>{const ht=q?.[Oe.index];return xn()(()=>Go()(ht),()=>_()(Ea()(Oe),yo(),te(),V()(Na(Oe)))(ht))(Oe)},Hr=q=>Se()(gt(q)),Us=_()(yo(),te(),V()(Na(null))),Qi=q=>Oe=>{const ht=je()(Ze.fd,q),yt=je()("items",Oe);return _()(Yn()(()=>Cl()([Ki()(Ze.ce),h()(Ze.pd,!0),()=>!Go()(ht)])(q),ts=>{const Ts=Se()(Us,ht);return Or()("originalItemProgress",Ts,ts)}),Ea()(Oe),xn()(()=>xo()(ht),Ia()(Ko()("items"),Hr(ht)(yt))),yo(),te(),V()(os(Oe)))(Lo()(Br()(ar),q))};function Ct(q,Oe){const ht=je()("lessons",Oe),yt=ts=>{const Ts=je()(ts.index,ht);return xn()(()=>Go()(Ts),Qi(Ts))(ts)};return xn()(()=>xo()(ht),_()(Or()("percentComplete",Sa()(0,Ze.WY,Oe)),re()({lessons:Se()(yt)})))(q)}const ja={[Ze.Ay]:["audioVideoPlayhead",Number],[Ze.Ko]:["correctlyAnswered",ct()],[Ze.l7]:["isComplete",Qs],[Ze.w5]:["isCorrect",Qs],[Ze.Wj]:["isViewed",Qs],[Ze.fd]:["items",Hr],[Ze.BW]:["percentViewed",ct()],[Ze.qX]:["matches",ct()],[Ze.sZ]:["retryAttemptCount",Number],[Ze.Pz]:["selectedIndex",ct()],[Ze.Ig]:["selectedIndices",ct()],[Ze.JG]:["shuffledAnswerIndices",ct()],[Ze.S$]:["text",ct()]};var It=c(90258),ka=c.n(It),Zi=c(15647),Fr=c.n(Zi),zr=c(71080),Yi=c.n(zr);const Vr={activeIndex:[Ze.En,ct()],audioVideoPlayhead:[Ze.Ay,Number],correctlyAnswered:[Ze.Ko,ct()],currentTime:[Ze.eZ,ct()],isComplete:[Ze.l7,Number],passingScore:[Ze.ft,ct()],percentComplete:[Ze.WY,ct()],percentViewed:[Ze.Ze,ct()],retryAttempts:[Ze.sZ,ct()],score:[Ze.jw,ct()],questionsDrawn:[Ze.pd,ct()],questionList:[Ze.ce,Se()(Se()(ct()))],reportResults:[Ze.mj,ct()],passed:[Ze.p3,ct()],timeRemaining:[Ze.M$,Number]},ir=(q,Oe)=>({[nr()($r[Oe])]:rr()($r[Oe])(q)}),Xi=q=>_()(xn()(xo(),Fr()(je()("index",q))),yo(),te(),V()(ir))(Yi()(xo(),Lo()(Br()($r),q))),Aa=_()(yo(),te(),Se()(Xi)),Ur=(q,Oe)=>({[nr()(Vr[Oe])]:rr()(Vr[Oe])(q)});function Ji(q){const Oe=je()("items",q),ht=je()("index",q),yt=xn()(ka()(Go(),xo()),Aa)(Oe);return _()(Fr()(ht),xn()(()=>ka()(Go(),xo())(yt),Or()(Ze.fd,yt)),yo(),te(),V()(Ur))(Lo()(Br()(Vr),q))}const Rt=_()(Fr()(Ze.WY),Sa()(0,"percentComplete")),$r={audioVideoPlayhead:[Ze.Ay,Number],correctlyAnswered:[Ze.Ko,ct()],isComplete:[Ze.l7,Number],isCorrect:[Ze.w5,Number],isViewed:[Ze.Wj,Number],items:[Ze.fd,Aa],matches:[Ze.qX,ct()],percentViewed:[Ze.BW,ct()],retryAttemptCount:[Ze.sZ,Number],selectedIndex:[Ze.Pz,ct()],selectedIndices:[Ze.Ig,Se()(Number)],shuffledAnswerIndices:[Ze.JG,Se()(Number)],text:[Ze.S$,ct()]},An=q=>window.env?.[q],Ra=q=>`${An("CDN_USER_CONTENT_URI")}/${q}`,cr=()=>!!window.shareId,Wr=()=>!!window.contentId,Pa=()=>!!window.snapshotId,qi=()=>!!window.shareId&&!!window.hasPassword,wa=Wr()&&!Yt.BI?Co:q=>q,Oa={fetch:()=>{if(Ha.isExport||window.courseData||window.course)return zs(jt,{});{const q=()=>window.shareId?`${An("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:Wr()?`${An("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:Pa()?`${An("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${An("RISE_RUNTIME_URI")}/boot/${window.courseId}`;return(0,us.Em)({method:"GET",url:q(),json:!0,withCredentials:!0,timeout:3e4}).then(us.lZ).then(Oe=>typeof Oe=="object"?Oe:jt(Oe)).then(wa)}},fetchPartnerContent:q=>Ha.isExport||window.partnerContent?window.partnerContent.content:Vs(q).toPromise(),getEnv:An,isPasswordProtected:qi,isShare:cr,isSnapshotPreview:Pa,resolvePath:Ra,verifySharePassword:q=>(0,us.Em)({method:"POST",url:`${An("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:q},json:!0}).then(Oe=>Oe.body)},Da=(q,{id:Oe,type:ht,...yt})=>ht==="quiz"?(0,_s.oO)(q,{id:Oe,...yt}):(0,Fs.GL)(q,Oe),Ba=(q,Oe)=>q+((Oe||{})[Ze.l7]||0),ec=(q,Oe)=>(ht,{id:yt,type:ts,...Ts})=>Oe.lessons[yt]?{...ht,...q(Da(Oe,{id:yt,type:ts,...Ts}).lessons[yt])}:ht;function Ll(q,Oe,ht){const yt=Oe.reduce(ec(q,ht),{}),ts=Object.keys(ht.lessons||{}).length,Ts=Object.values(yt).reduce(Ba,0),_o=Math.round(Ts/ts*100);return{lessons:yt,p:_o}}window.Rise=Object.assign(window.Rise||{},{completeLessons:Ll,decodeCourseProgress:Ct,encodeCourseProgress:Rt,encodeLessonProgress:Ji});const Ha={...Oa,...window.Runtime??{}},ot=Ha,El=q=>window.env?.[q],Sl=q=>ot.getMasteryScore!=null?ot.getMasteryScore(q):q.passingScore,Tl=q=>{if(ot.onCreateHistory!=null)return ot.onCreateHistory(q)},tc=(q={})=>ot.fetch!=null?Promise.resolve(ot.fetch()):Promise.resolve(q),Xn=(q=[])=>{if(ot.fetchPartnerContent!=null)return ot.fetchPartnerContent(q)},Ie=q=>{if(ot.bookmark!=null)return ot.bookmark(q)},Ye=q=>ot.getProgress!=null?ot.getProgress(q):q,Nt=q=>ot.setLessonComplete!=null?ot.setLessonComplete(q):q,hs=q=>ot.setLessonProgress!=null?ot.setLessonProgress(q):q,ds=(q,Oe)=>ot.setCourseProgress!=null?ot.setCourseProgress(q,Oe):q,Ss=q=>{if(ot.finish!=null)return ot.finish(q)},Rn=(q,Oe,ht,yt)=>{ot.finishQuiz!=null&&ot.finishQuiz(q,Oe,ht,yt)},lr=(q,Oe,ht,yt)=>{ot.finishStoryline!=null&&ot.finishStoryline(q,Oe,ht,yt)},Jn=()=>ot.isComplete!=null?ot.isComplete():null,dr=()=>ot.isExport!=null?ot.isExport():!1;function Il(){if(ot.isExport!=null){const q=window.partnerContent?.content;return ot.isExport()&&!!q}return!1}const Gr=()=>ot.isShare!=null?ot.isShare():!1,Fa=()=>ot.isSnapshotPreview!=null?ot.isSnapshotPreview():!1,Pn=()=>ot.isPasswordProtected!=null?ot.isPasswordProtected():!1,za=q=>{const Oe=q||"";return ot.resolvePath!=null?Oe.startsWith("http")||Oe.startsWith("data:")||Oe.startsWith("//")?Oe:ot.resolvePath(Oe):Oe.startsWith("data:")||Oe.startsWith("http")||Oe.startsWith("//")?Oe:`/${Oe}`},Kr=q=>ot.verifySharePassword!=null?ot.verifySharePassword(q):Promise.resolve({isValid:!0}),sc=q=>{if(ot.reportAnswer!=null){const{id:Oe,isCorrect:ht,isUnfinished:yt=!1,item:ts,itemProgress:Ts,duration:_o,retryAttempts:l0,title:Al}=q,{id:d0,title:Rl,type:nc}=ts;return ot.reportAnswer({id:Oe,type:nc,isCorrect:ht,itemId:d0,questionTitle:(0,U.QZ)(Rl),quizTitle:(0,U.QZ)(Al),retryAttempts:l0,answers:se(ts),correctResponse:ye(ts),response:$({isUnfinished:yt,item:ts,itemProgress:Ts}),isUnfinished:yt,latency:fe(_o)})}return!1},i0=q=>{if(ot.startLesson!=null)return ot.startLesson(q)},es=()=>{if(ot.getLocale!=null)return ot.getLocale()},Nl=q=>{if(ot.setLocale!=null)return ot.setLocale(q)},{browser:_r,os:jl}=new A.UAParser(window.navigator.userAgent).getResult(),c0=[_r.name,_r.version].filter(Boolean).join(" "),Eo=[jl.name,jl.version].filter(Boolean).join(" "),kl=q=>{if(ot.sendTelemetry!=null)return ot.sendTelemetry({...q,browser:c0,os:Eo})}},58510(et,xe,c){"use strict";c.d(xe,{Y8:()=>_,ju:()=>Q,l6:()=>G});var A=c(52887),U=c.n(A);const P=U()("rise/transcriptPanel/"),G=P("OPEN_TRANSCRIPT_PANEL"),Q=P("CLOSE_TRANSCRIPT_PANEL"),_=P("UPDATE_TRANSCRIPT_PANEL")},63762(et,xe,c){"use strict";c.d(xe,{Z:()=>G});var A=c(15648),U=c(31949),P=c(85849);function G(){const Q=(0,U.Zp)(),_=(0,U.zy)();return(0,A.useCallback)((me,re)=>{if(typeof me=="number")return Q(me);const ee=(0,P.B)(me,_),s=ee.pathname+(ee.search?`?${ee.search}`:"")+(ee.hash||"");return Q(s,re)},[Q,_])}},50918(et,xe,c){"use strict";c.d(xe,{Dh:()=>G,HH:()=>be,S:()=>s,UR:()=>Q,Zn:()=>ae,cP:()=>Ne,fF:()=>ie,pP:()=>Ee,uQ:()=>we,vC:()=>Se,xp:()=>P});var A=c(91162),U=c(34657);const P=(V,ce,F)=>(0,U.uW)(V)&&ce?F?.[ce]?.[V.l10nId]:void 0,G=(V,ce,F,de)=>{if(!(0,U.uW)(V))return V;if(!ce||!F||!de)return;const ve=P(V,ce,de);if(ve!==void 0)return ve;const Te=P(V,F,de);if(Te!==void 0)return Te;const je=ue(V,de);return je.length>0?je[0].value:void 0},Q=(V,ce,F,de)=>!ce||!F||!de?V:(0,A.v9)(V).reduce((ve,{l10nId:Te,path:je})=>{const ge=G({l10nId:Te},ce,F,de),h=(0,A.re)(je,ge,ve);return h.type==="accepted"?h.result:ve},V),_=(V,ce,F)=>Q(V,ce,be(F),ie(F)),me=(V,ce,F)=>G(V,ce,be(F),ie(F)),re=(V,ce,F)=>P(V,ce,ie(F));function ee(V,ce){return ce?.find(F=>F.locale===V)}function s(V){return V?.l10n?.locales??[]}function be(V){return V?.l10n?.defaultLocale}function we(V,ce){const F=be(ce);return!!(V&&F&&V!==F)}function ie(V){return V?.l10n?.translations??{}}function ue(V,ce){return(0,U.uW)(V)?Object.keys(ce).flatMap(F=>{const de=P(V,F,ce);return de?{locale:F,value:de}:[]}):[]}const oe=(V,ce)=>ue(V,ie(ce)),Ee=V=>(0,U.uW)(V)?V.l10nId:void 0;function Ne(V){return V?.l10n?.localeSelectorOptions}function Se(V){return V?.l10n?.languageCodeMetadata}function ae(V){return V?.l10n?.showLocaleSelector}},43407(et,xe,c){"use strict";c.d(xe,{DB:()=>Te,H5:()=>ve,ME:()=>V,bX:()=>je,dE:()=>ce,ny:()=>de,xm:()=>ae});var A=c(43191),U=c.n(A),P=c(99099),G=c.n(P),Q=c(17159);const _=(0,Q._$)("CDN_USER_CONTENT_URI"),me=(0,Q._$)("CDN_URI"),re=U()("useCrushedKey"),ee=(0,Q._$)("IMAGES_URI"),s=G()(/-stock[-_]image.jpg/),be=(0,Q._$)("RBC_IMAGES_URI"),we=(0,Q._$)("ASSETS_URI"),ie=G()(new RegExp(`^${_}/review`)),ue=(0,Q._$)("CDN_US_URI"),oe=ge=>{const{crushedKey:h,key:J,useCrushedKey:te,src:K}=ge;return re(ge)?te&&h?(0,Q.o1)(h):(0,Q.o1)(J):(0,Q.o1)(K)},Ee=ge=>`${_}/${ge}`,Ne=ge=>!ge||!ge.key?"":`${be}/b:fff,f:jpg,s:cover,w:550,h:296/${ge.key}`,Se=ge=>{if(!ge||!ge.key)return"";const{crushedKey:h,key:J,useCrushedKey:te}=ge;return re(ge)&&te?h?`${ee}/f:jpg,b:fff,s:cover,w:340/${h}`:"":`${ee}/f:jpg,b:fff,s:cover,w:340/${J}`},ae=ge=>{if(!ge||!ge.key)return"";const{crushedKey:h,key:J,useCrushedKey:te}=ge;return ee?re(ge)&&te&&h?`${ee}/f:png,a:retain,s:cover,t:true,w:340/${h}`:`${ee}/f:png,a:retain,s:cover,t:true,w:340/${J}`:oe(ge)},V=ge=>{if(!ge||!ge.key)return"";const{crushedKey:h,key:J,useCrushedKey:te,sourcedFrom:K}=ge;if(!ee)return oe(ge);const Ve=K==="AI",fe=K==="LIBRARY";return s(J)||Ve||fe?`${ee}/f:jpg,a:retain,b:fff,w:1680,q:90/${J}`:re(ge)?te&&h?`${_}/${h}`:`${_}/${J}`:ie(ge.src)?ge.src:`${ee}/f:jpg|png,a:retain,b:fff/${J}`},ce=(ge,h="src")=>{const{key:J,src:te,thumbnail:K,thumbnailKey:Ve}=ge,fe=_?`${_}/${J}`:oe({key:J,src:te}),se=_?`${_}/${Ve}`:oe({key:Ve,src:K});return h==="src"?fe:se},F=ge=>{if(!ge||!ge.key)return"";const{crushedKey:h,key:J,useCrushedKey:te}=ge;return re(ge)&&te&&h?`${ee}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${h}`:`${ee}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${J}`},de=({height:ge,imageKey:h,width:J})=>{if(be){const te=encodeURIComponent(h);return`${be}/b:fff,f:jpg,s:cover,w:${J},h:${ge}/${te}`}return(0,Q.o1)(`partnerContent/${h}`)},ve=()=>{const ge=we||ee,h="NBIC_logo_light_bulb.png";return ge?`${ge}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${h}`:(0,Q.o1)(`partnerContent/${h}`)},Te=()=>{const ge="NBIC_logo_blue.svg";return me?`${me}/assets/rise/assets/partner-content/${ge}`:(0,Q.o1)(`partnerContent/${ge}`)},je=ge=>{const{key:h,src:J}=ge;return ue?`${ue}/${h}`:oe({key:h,src:J})}},66058(et,xe,c){"use strict";c.d(xe,{Em:()=>s,Vu:()=>re,on:()=>ee,uI:()=>be,wD:()=>we,xQ:()=>ie});var A=c(54834),U=c(82275),P=c.n(U),G=c(17159),Q=c(39341);const _=G.BI?window.env:P()(window.env,{ACCESS_COOKIE_NAME:(0,Q.W5)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),me=(0,A.A)(_),re=me.closeSession,ee=me.on,s=me.request,be=me.refreshSession,we=me.resetSession,ie=me.getAuthorizationUrl,ue=me.fetch},67382(et,xe,c){"use strict";c.d(xe,{lL:()=>Te,t9:()=>Zt,XC:()=>_e,xD:()=>Kt,cP:()=>J,Wn:()=>te,W8:()=>fe,WA:()=>ye});var A=c(18189),U=c(32107),P=c.n(U),G=c(82083),Q=c.n(G),_=c(11048),me=c.n(_),re=c(62947),ee=c.n(re),s=c(77599),be=c.n(s),we=c(9185),ie=c.n(we),ue=c(16791),oe=c.n(ue),Ee=c(27922),Ne=c(2402),Se=c(4783),ae=c(68621),V=c(2230);Ne.A.register(Se.A),Ne.A.register(ae.A);var ce,F;const de="#ff631e";function ve(Me){if(Me==null)return null;try{return(0,V.to)((0,V.qg)(Me),"srgb")}catch{return null}}const Te=P()({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),je=[[32,Te.NEAR_BLACK],[64,Te.DARK],[128,Te.MED],[256,Te.LIGHT]],ge=4.5,h=Me=>{const ft=ve(Me);if(ft==null)return 0;const[W,nt,Mt]=ft.coords.map(us=>us*255);return .2126*W+.7152*nt+.0722*Mt},J=Me=>Me?1-h(Me)/255>.4:!1,te=Me=>Me?1-h(Me)/255>.25:!1,K=Me=>{if(!Me)return null;const ft=parseInt(Me.substr(1),16);return Number.isNaN(ft)?null:ft.toString(16).padStart(6,"0").padStart(7,"#")},Ve=(Me,ft)=>{const W=K(ft);return!W||W.length!==7?Me:W},fe=me()((Me,ft)=>{const W=(0,A.A)(ft).slice(0,3),nt=Me>=0?W.map(Mt=>(1-Me)*Mt+Me*255):W.map(Mt=>(1+Me)*Mt);return se(nt)}),se=(Me=[])=>"#"+Me.slice(0,3).map(ft=>Math.min(255,Math.max(0,Math.round(ft))).toString(16).padStart(2,"0")).join(""),ye=fe(.9),$=fe(-.5),Re=fe(-.2),_e=Me=>{const ft=h(Me);return je.find(([nt])=>nt>ft)?.[1]},tt=Me=>Me.toString(16).padStart(6,"0").padStart(7,"#"),Xe=oe()(be()(Number),Q()(ie(),tt)),rt=Q()(Xe,ee()(de));function pt(Me,ft){if(Me==="none"||!Me||!ft)return{};const W=ze(Me,ft),nt=`${W.toFixed(2)}:1`;let Mt=!1,Ge=!1,us=!1,Ze=!1,Fs=!1;return W>=7?(Mt=!0,Ge=!0,us=!0,Ze=!0,Fs=!0):W>=4.5?(Mt=!0,us=!0,Fs=!0):W>=3&&(us=!0,Fs=!0),{ratio:nt,bodyTextAA:Mt,bodyTextAAA:Ge,largeTextAA:us,largeTextAAA:Ze,graphicalUiComponentsAA:Fs}}function ze(Me,ft){return(0,V.v2)(ve(Me),ve(ft),"WCAG21")}function qe(Me){const[ft,W,nt]=ce(Me).slice(0,3).map(Lt);return .2126*ft+.7152*W+.0722*nt}function Lt(Me){const ft=Me/255;return ft<=.04045?ft/12.92:((ft+.055)/1.055)**2.4}const Kt=Me=>pt("#fff",Me)["bodyTextAA"]?Ee.Em.LIGHT:Ee.Em.DARK,is=(Me,ft)=>Me===F.DARK||Me===F.AUTO&&Kt(ft)===F.DARK,Zt={[Te.NEAR_BLACK]:fe(.1),[Te.DARK]:fe(-.4),[Te.MED]:fe(-.2),[Te.LIGHT]:fe(.3)}},13054(et,xe,c){"use strict";c.d(xe,{C_:()=>h,S6:()=>ge,Yq:()=>F,by:()=>de,fT:()=>J,fY:()=>ce,o4:()=>ve,xA:()=>Q,y4:()=>V,yG:()=>G});var A,U=c(32107),P=c.n(U);const G={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"},_={EDITOR:1,MANAGER:2,OWNER:3},me={[_.EDITOR]:"Author",[_.MANAGER]:"Admin",[_.OWNER]:"Owner"},re=Object.values(_).map(te=>({id:te,title:me[te]})),ee=({name:te,isOnePage:K})=>A?{Admin:K?"Microlearning manager":"Manager",Author:K?"Microlearning editor":"Editor",Owner:K?"Microlearning owner":"Owner"}[te]:{Admin:K?"Microlearning manager":"Course manager",Author:K?"Microlearning collaborator":"Course collaborator",Owner:K?"Microlearning owner":"Course owner"}[te],s="questionBanks",be=9,we=13,ie=27,ue=32,oe=38,Ee=40,Se=864e5*3,ae=100,V="onePage",ce={UP:"up",DOWN:"down"},F={PREVIEW:"preview-lesson"},de=P()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),ve={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},Te=Object.values(ve),je={PORTRAIT:"portrait",LANDSCAPE:"landscape"},ge={DARK:"#000",LIGHT:"#fff"},h={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}},J=["embed","map","process","sorting","timeline","video","screencast","slidecast"]},20229(et,xe,c){"use strict";c.d(xe,{BC:()=>A,QI:()=>P,f5:()=>G,hh:()=>U});const A=re=>re.reduce((ee,s,be)=>("id"in s&&(ee[s.id]={id:s.id,index:be}),ee),{}),U=re=>({...re,percentComplete:_({items:re.items,key:"isComplete"})}),P=re=>({...re,percentComplete:_({items:re.items,key:"isComplete"})}),G=re=>({...re,percentViewed:_({items:re.items,key:"isViewed"})});function Q({itemId:re,isCorrect:ee,progress:s}){const be={...s,items:{...s.items,[re]:{...s.items?.[re],id:re,index:s.items?.[re]?.index??0,isComplete:ee,isViewed:ee,...s.items?.[re].isCorrect===void 0?{isCorrect:ee}:{}}}};be.items[re]?.isCorrect===!1&&(be.lastIncorrectCardId=re);const we=me(be),ie=we.percentComplete!==100?P(we):we,ue=G(ie);return ue.percentComplete===100?{...ue,isComplete:!0}:ue}function _({items:re,key:ee}){const s=re??{},be=Object.keys(s).length,we=Object.values(s).filter(ie=>ie?.[ee]).length;return be===0?0:Math.round(we/be*100)}function me(re){const s=Object.values(re.items||{}).filter(be=>be.isCorrect===!0).length;return{...re,correctlyAnswered:s}}},75189(et,xe,c){"use strict";c.d(xe,{L:()=>U.L,y:()=>A.yf});var A=c(57326),U=c(60226),P=c(17159);const G="datadoghq.com",Q=(0,P._$)("SERVICE_ENV"),_=(0,P._$)("RISE_FRONTEND_SHA"),me=(0,P._$)("RISE_FRONTEND_LOCAL_DEV")==="true"||window.location.hostname==="rise.dev.articulate.zone",re=window.Cypress!=null,ee=P.BI?[/https:\/\/.*(\.dev)?\.rise\.(com|zone).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone).*/]},13945(et,xe,c){"use strict";c.d(xe,{$t:()=>ie,NO:()=>s,Pf:()=>be,WE:()=>we,c:()=>re});var A=c(81851),U=c.n(A);const P=()=>{if(!navigator.userAgent)return"unknown";const oe=new A.UAParser(navigator.userAgent).getResult();return oe.device?.model?oe.device.model:oe.os?.name?oe.os.name:oe.browser?.name?oe.browser.name:"unknown"},G=()=>{if(!navigator.userAgent)return"unknown";const oe=new A.UAParser(navigator.userAgent).getResult();return oe.device?.model&&oe.os?.version?oe.os.version:oe.browser?.version?oe.browser.version:"unknown"},Q=()=>{if(!navigator.userAgent)return"desktop";const oe=new A.UAParser(navigator.userAgent).getResult();return oe.device?.type==="mobile"?"mobile":oe.device?.type==="tablet"?"tablet":"desktop"},_=()=>{if(!navigator.userAgent)return"unknown";const oe=new A.UAParser(navigator.userAgent).getResult();if(oe.device?.vendor)return oe.device.vendor;if(oe.os?.name)switch(oe.os.name){case"Mac OS":case"iOS":return"Apple";case"Windows":return"Microsoft";case"Android":return"Google"}return"unknown"},me=()=>{if(!navigator.userAgent)return"unknown";const oe=new A.UAParser(navigator.userAgent).getResult();return oe.device?.model?oe.device.model:"unknown"},re=()=>{if(!navigator.userAgent)return"browser";const oe=new A.UAParser(navigator.userAgent).getResult();return oe.device?.type==="mobile"?"mobile":oe.device?.type==="tablet"?"tablet":"browser"};function ee(ue){return"userAgentData"in ue}const s=()=>{if(ee(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},be=()=>({name:P(),version:G(),type:Q(),manufacturer:_(),model:me()}),we=()=>{const oe=new URLSearchParams(window.location.search).get("query");return{referrer:document.referrer||null,search:oe||null,url:window.location.href,path:window.location.pathname+window.location.search+window.location.hash}},ie=()=>navigator.userAgent||null},59043(et,xe,c){"use strict";c.d(xe,{Ve:()=>ie,lQ:()=>oe,rq:()=>we});var A,U=c(82083),P=c.n(U),G=c(97138),Q=c.n(G),_=c(11607),me=c.n(_),re=c(28275),ee=c.n(re),s=c(5555),be=c.n(s);function we(...Ee){return P()(...Q()(1,Ee))(me()(Ee))}function ie(Ee,...Ne){return ee()(...Ne)(Ee)}function ue(Ee,...Ne){return A(...Ne)(Ee)}const oe=()=>{}},85849(et,xe,c){"use strict";c.d(xe,{B:()=>G});var A=c(31949);const U=["fromDashboard","locale"];function P(Q,_){const me=typeof Q=="function"?Q(_):Q;return typeof me=="string"?(0,A.Rr)(me):me}function G(Q,_){const me=P(Q,_),re=new URLSearchParams(_?.search||""),ee=new URLSearchParams(me?.search||"");for(const s of U){const be=re.get(s);be&&!ee.has(s)?ee.set(s,be):ee.has(s)&&!ee.get(s)&&ee.delete(s)}return{...me,search:ee.toString()}}},79738(et,xe,c){"use strict";c.d(xe,{Em:()=>je,lZ:()=>h});var A=c(16917),U=c.n(A),P=c(80002),G=c.n(P),Q=c(41584),_=c.n(Q),me=c(23745),re=c.n(me),ee=c(62947),s=c.n(ee),be=c(17071),we=c.n(be),ie=c(9185),ue=c.n(ie),oe=c(39341),Ee=c(66058),Ne=c(60226);const Se=(se,ye)=>((...$)=>{try{return se(...$)}catch(Re){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(Re),Ne.L.addError(Re),ye(Re)}}),ae=se=>{const ye=se.getResponseHeader("content-type")||"",$=ye.includes("application/json");if(!($||ye.includes("text/")))return se.response;try{const _e=new TextDecoder("utf-8").decode(se.response);try{return $?JSON.parse(_e):_e}catch{return _e}}catch{return se.response}};function V(se,ye){const $=ye.split("=");return U()($[0].trim(),$[1].trim(),se)}const ce=G()(re()(V,{}),we()(/; */));function F(se,ye){const $=ye.indexOf(":"),Re=ye.substr(0,$).trim().toLowerCase(),_e=ye.substr($+1).trim();return Re&&(se[Re]=se[Re]?se[Re]+", "+_e:_e),se}function de(se){return se?se.split(`
`).reduce(F,{}):{}}function ve(se){return Math.floor(se.loaded/se.total*100)}function Te(se){const ye=[];for(const $ in se){const Re=se[$];if(!Array.isArray(Re)){ye.push(encodeURIComponent($)+"="+encodeURIComponent(Re));continue}for(const _e of Re)ye.push(Te(_e))}return ye.join("&")}function je(se){let ye,$=!1;const Re=new Promise(function _e(tt,Xe){const rt=se.signal;if(rt?.aborted){Xe(new DOMException("Aborted","AbortError"));return}const pt=Yt=>{throw Xe(Yt),Yt},ze=()=>{ye.abort(),Xe(new DOMException("Aborted","AbortError"))},qe=se.data;let Lt=Se(se.deserialize??_(),pt);const Kt=se.headers??{},is=se.json??!1,Zt=se.jwt??!1,Me=se.token??null,ft=se.method??"GET",W=se.reviewEnv??!1,nt=se.onUploadProgress;let Mt=Se(se.serialize??_(),pt),Ge=se.url;const us=se.withCredentials??!1,Ze=se.file,Fs=se.timeout??3e3;ye=new XMLHttpRequest;const _s=setTimeout(()=>{ye.abort(),Xe({error:"request timed out"})},Fs);if(is&&(Lt=Se(JSON.parse,Xe),Mt=Se(JSON.stringify,Xe),Kt["Content-Type"]="application/json"),ft==="GET"&&qe&&(Ge+="?"+Te(qe)),Zt){const Yt=Me||(0,oe.rS)();Kt.Authorization="Bearer "+Yt}rt?.addEventListener("abort",ze),ye.withCredentials=us,ye.addEventListener("abort",Xe),ye.addEventListener("error",Xe),ye.addEventListener("load",function(){ye.status>=400?[401,403].includes(ye.status)?$?Xe({error:"Unable to resume session",status:ye.status}):(0,Ee.wD)().then(()=>{_e(tt,Xe),$=!0}).catch(Yt=>{Ne.L.addError(Yt),Xe({error:"Unable to resume session",status:ye.status})}):se.arrayBuffer?Xe(ae(ye)):Xe(Lt(ye.response)):(tt({body:ye.status===204?void 0:Lt(ye.response),headers:de(ye.getAllResponseHeaders()),status:ye.status}),rt?.removeEventListener("abort",ze)),clearTimeout(_s)}),ye.upload&&typeof nt=="function"&&ye.upload.addEventListener("progress",nt),ye.open(ft,Ge),se.arrayBuffer&&(ye.responseType="arraybuffer");for(const Yt in Kt)ye.setRequestHeader(Yt,Kt[Yt]);ft!=="GET"&&qe?ye.send(Mt(qe)):Ze?ye.send(Ze):ye.send()});return Re.abort=(..._e)=>ye.abort(..._e),Re}const ge=G()(ue(),s()(""));function h(se){return se.status===200||se.status===201?se.body:Promise.reject(se.body)}const J=(se,ye=!0)=>ye?`${se}s`:se;var te=(se=>(se[se.KB=1024]="KB",se[se.MB=1048576]="MB",se[se.GB=1073741824]="GB",se[se.TB=1099511627776]="TB",se))(te||{});const K={KB:(se=1)=>1024*se,MB:(se=1)=>1048576*se,GB:(se=1)=>1073741824*se,TB:(se=1)=>1099511627776*se},Ve={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},fe=(se,ye="short")=>{const Re=Object.keys(te).reverse().find(rt=>se>=te[rt]);if(!Re)return`${se} ${J("byte",se>1)}`;const _e=se/te[Re],tt=_e%1===0?_e.toFixed(0):_e.toFixed(2),Xe=ye==="long"?J(Ve[Re].long,_e>1):Ve[Re].short;return`${tt} ${Xe}`}},84722(et,xe,c){"use strict";c.d(xe,{I6:()=>Te,LI:()=>rt,Ll:()=>ve,Vx:()=>je,Zd:()=>de,dM:()=>Xe,sg:()=>K});var A=c(87686),U=c.n(A),P=c(82083),G=c.n(P),Q=c(83050),_=c.n(Q),me=c(93130),re=c.n(me),ee=c(49145),s=c.n(ee),be=c(11607),we=c.n(be),ie=c(95124),ue=c.n(ie),oe=c(28275),Ee=c.n(oe),Ne=c(21343),Se=c.n(Ne),ae=c(17071),V=c.n(ae),ce=c(34657);const F=G()(_()(".svg"),Se()("","originalUrl")),de=s()(F,U()({width:"500rem"}),U()({})),ve=ze=>{if(ze){const qe=ze.trim();if(qe!==""&&qe!=='""')return ze}return""},Te=ze=>ve(ze)||void 0,je=ze=>ze?"img":void 0,ge=ze=>Ee()(Se()("","originalUrl"),V()("."),we(),re()(ze)),h=ge("svg"),J=ge("gif"),te=/\.svg$/i,K=ze=>te.test(ze),Ve={process:"center",timeline:"left"},fe=ze=>Ve[ze]||"left",se=(ze,qe)=>{const Lt=ue()(ze,qe);return Lt.media.image.key===qe.media.image.key&&Object.assign(Lt.media.image,{crushedKey:qe.media.image.key,useCrushedKey:!0}),Lt},ye=({src:ze,alpha:qe})=>({alpha:qe,media:{image:{key:$(ze),src:ze}}}),$=ze=>typeof ze!="string"?"":ze.startsWith("http")?new URL(ze).pathname.slice(1):ze,Re=(({coverImageAlpha:ze,coverImage:qe})=>({alpha:ze,src:qe})),_e=(({lessonHeaderImageAlpha:ze,lessonHeaderImage:qe})=>({alpha:ze,src:qe})),tt=(ze,qe)=>(Lt,Kt)=>{const is=Lt[qe];if(Lt?.theme){const Zt=Kt?Kt(is?.media):is?.media;if((0,ce.uW)(Zt))return is;const Me={...is,media:{...Zt}},ft=ye(ze(Lt.theme));return se(Me,ft)}else return is},Xe=tt(Re,"coverImage"),rt=tt(_e,"lessonHeaderImage"),pt=async ze=>{const qe=new Image;return qe.src=ze,await qe.decode(),qe}},2924(et,xe,c){"use strict";c.d(xe,{Gv:()=>Q,QD:()=>oe,s0:()=>Ee});var A,U,P=c(12841),G=c.n(P);const Q=Ne=>!!Ne&&Object.prototype.toString.call(Ne)==="[object Object]",_=Array.isArray,me=(Ne,Se)=>Object.fromEntries(Object.entries(Se).map(Ne)),re=(Ne,Se,ae)=>{const V={};for(const ce in ae)V[Ne(ce)]=Se(ae[ce]);return V},ee=Ne=>Ne.map(ie),s=Ne=>Ne.map(ue),be=Ne=>re(A,ie,Ne),we=Ne=>re(U,ue,Ne),ie=Ne=>Q(Ne)?be(Ne):_(Ne)?ee(Ne):Ne,ue=Ne=>Q(Ne)?we(Ne):_(Ne)?s(Ne):Ne,oe=(Ne,Se)=>{const ae=new Set(Se),V={};for(const ce in Ne)ae.has(ce)||(V[ce]=Ne[ce]);return V},Ee=(Ne,Se)=>Object.fromEntries(Object.entries(Ne).map(([ae,V])=>Se(ae,V)))},43676(et,xe,c){"use strict";c.d(xe,{c3:()=>G,qg:()=>P});var A,U=c(13054);const P=me=>me===U.y4,G=me=>P(me?.type),Q=(me,re)=>ee=>G(ee)?me:re,_=me=>me?.type===A&&me?.experiments?.outputType==="guide"},24639(et,xe,c){"use strict";c.d(xe,{h:()=>A});function A(U){return U.trim()===""}},87549(et,xe,c){"use strict";c.d(xe,{IK:()=>P,UQ:()=>A,hB:()=>_,iV:()=>G,sS:()=>U});const A={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"},U={SUMMARY:"SUMMARY",REMAINING:"REMAINING",ELAPSED:"ELAPSED",ELAPSED_TOTAL:"ELAPSED_TOTAL",HIDE_TIMER:"HIDE_TIMER"},P={CONTINUE:"continue",NONE:""},G={ALL:"all",NONE:"none",INCORRECT:"incorrect"},Q=10,_=80},38835(et,xe,c){"use strict";c.d(xe,{HY:()=>U.HY,Nv:()=>oe,Ls:()=>ce,GF:()=>ve,y4:()=>F,LY:()=>de});var A=c(31651),U=c(18398),P=c(31800),G=c(10104);const Q=h=>h!=null&&typeof h=="object"&&"map"in h&&typeof h.map=="function",_=h=>h!=null&&typeof h=="object"&&"run"in h&&typeof h.run=="function",me=h=>h!=null&&typeof h=="object"&&"then"in h&&typeof h.then=="function",re=h=>h!=null&&typeof h=="object"&&"fork"in h&&typeof h.fork=="function",ee=h=>h!=null&&typeof h=="function",s=(h,J)=>{const te=K=>s(K,J);if(typeof h=="object"&&"type"in h&&typeof h.type=="string"){const K="meta"in h&&typeof h.meta=="object"?h.meta:void 0;return{...h,meta:{...K,origin:J}}}if("bimap"in h&&typeof h.bimap=="function")return h.bimap(te,te);if(Q(h))return h.map(te);if(me(h))return h.then(te);if(ee(h))return function(Ve,fe){return h(se=>Ve(te(se)),fe)}};function be(){return({dispatch:h,getState:J})=>te=>K=>{if(ee(K))return K(h,J);if(me(K))return K.then(h);if(re(K)){K.fork(h,h);return}return _(K)?h(K.run()):Q(K)?K.map(h):te(K)}}function we(){return[be()]}var ie=c(15648);const ue=U.Zz;function oe(h,J){const te=(0,U.y$)(h,J,ue((0,U.Tw)(...we()))),K=Ee(),Ve=Ne(),fe=Se(),se=ae(),ye=V();return{Provider:P.Kq,connect:K,connectBase:Ve,dispatch:te.dispatch,store:te,useDispatch:fe,useDispatchWithOrigin:se,useSelector:ye}}function Ee(){return function(J,te,K,Ve){return function(fe){return(0,P.Ng)(J,te,K,Ve)((0,G.BN)(fe))}}}function Ne(){return function(J,te,K,Ve){return function(fe){return(0,P.Ng)(J,te,K,Ve)(fe)}}}function Se(){return P.wA}function ae(){return function(J){const te=(0,P.wA)();return ie.useCallback(Ve=>te(s(Ve,J)),[te,J])}}function V(){return function(J,te=P.bN){const K=ie.useContext(G.q2),Ve=ie.useContext(G.R6),fe=ie.useRef(void 0),se=(0,A.S)(),ye=(0,P.d4)(J,te),$=!se&&K&&Ve?.startsWith?.("exit");return $||(fe.current=ye),$&&fe.current!==void 0?fe.current:ye}}const ce=Ee(),F=Se(),de=V(),ve=V;var Te=c(26488),je;const ge=()=>je(()=>location.href="/")},7517(et,xe,c){"use strict";c.d(xe,{V:()=>A});const A=({locales:U,course:P,locale:G})=>!!(U?.find(me=>me.locale===G)?.rightToLeft||P?.features?.["rise-rtl"]&&P?.experiments?.rtl)},17159(et,xe,c){"use strict";c.d(xe,{As:()=>s,BI:()=>P,Hm:()=>be,NS:()=>ee,PJ:()=>re,Wk:()=>we,_$:()=>U,ih:()=>ie,mZ:()=>Q,o1:()=>me});const{Runtime:A}=window,U=ue=>window.env?.[ue],P=!1,G=null,Q="Rise 360",_=ue=>`${U("CDN_USER_CONTENT_URI")}/${ue}`,me=ue=>{const oe=ue||"",Ee=A?.resolvePath!=null?A.resolvePath.bind(A):_;return oe.startsWith("http")||oe.startsWith("data:")||oe.startsWith("//")?oe:Ee(oe)||oe},re=ue=>A?.resolveFontPath!=null?A.resolveFontPath(ue):`${ue.default?U("CDN_URI"):U("CDN_USER_CONTENT_URI")}/${ue.key}`,ee=()=>{A?.exit!=null&&A.exit()},s=()=>A?.isComplete!=null?A.isComplete():null,be=()=>A?.isExport!=null?A.isExport():!1;function we(){if(A?.isExport!=null){const ue=window.partnerContent?.content;return A.isExport()&&!!ue}return!1}const ie=()=>{if(A?.sendTouch!=null)return A.sendTouch()}},27922(et,xe,c){"use strict";c.d(xe,{xj:()=>ve,rE:()=>ze,Dw:()=>ge,HC:()=>je,qu:()=>qe,LE:()=>se,BL:()=>$,Zs:()=>ee,S$:()=>s,Ty:()=>be,Bj:()=>we,pL:()=>ie,Ht:()=>Ee,zV:()=>Ne,B4:()=>V,HU:()=>ue,_g:()=>oe,df:()=>Kt,KJ:()=>ce,qH:()=>F,OX:()=>Te,AY:()=>ye,Py:()=>te,b$:()=>K,qB:()=>Ve,kY:()=>J,br:()=>h,jq:()=>Lt,Y2:()=>fe,RE:()=>rt,Em:()=>pt,V7:()=>re});var A=c(32107),U=c.n(A),P=c(71802),G=c.n(P);function Q(Zt){return U()(Zt)}class _ extends Error{constructor(Me="Assert Error",ft){super(Me,ft)}}function me(Zt,Me="Assertion Error"){if(!Zt)throw new _(Me)}const re={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},ee="#ff631e",s=3,be=17,we=32,ie=24,ue=50,oe=.6,Ee="right",Ne="rounded",Se=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],ae="#ffffff",V=G()("color",Se),ce="#000",F="#fff",de="Rise",ve=Q({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Te=Q({LARGE:null,MEDIUM:null,SMALL:null}),je=Q({STEPPED:null,CONTINOUS:null}),ge=U()({NUMBERS:null,DOTS:null,NONE:null}),h=Q({COMPACT:null,OVERLAY:null,SIDEBAR:null}),J=U()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),te=U()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),K={FREE:"free",RESTRICTED:"restricted"},Ve=U()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),fe=U()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),se=Q({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),ye=Q({FULL:null,FLOATING:null,FLOATING_FULL:null}),$=Q({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}),Re={default:[{text:"Centered",type:$.CENTERED},{text:"Centered overlay",type:$.CENTERED_OVERLAY},{text:"Left",type:$.LEFT},{text:"Left overlay",type:$.LEFT_OVERLAY},{text:"Split left image",type:$.SPLIT_LEFT_IMAGE},{text:"Split right image",type:$.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:$.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:$.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:$.CENTERED},{text:"Centered overlay",type:$.CENTERED_OVERLAY},{text:"Left",type:$.LEFT},{text:"Left overlay",type:$.LEFT_OVERLAY},{text:"Split left image",type:$.SPLIT_LEFT_IMAGE},{text:"Split right image",type:$.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:$.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:$.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:$.CENTERED},{text:"Centered overlay",type:$.CENTERED_OVERLAY},{text:"Left",type:$.LEFT},{text:"Left overlay",type:$.LEFT_OVERLAY},{text:"Split left",type:$.SPLIT_LEFT},{text:"Split right",type:$.SPLIT_RIGHT},{text:"Split left image",type:$.SPLIT_LEFT_IMAGE},{text:"Split right image",type:$.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:$.CENTERED},{text:"Centered overlay",type:$.CENTERED_OVERLAY},{text:"Centered image",type:$.CENTERED_IMAGE},{text:"Centered accent tint",type:$.CENTERED_ACCENT_TINT},{text:"Split left image",type:$.SPLIT_LEFT_IMAGE},{text:"Split right image",type:$.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:$.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:$.TWO_THIRDS_RIGHT_IMAGE}]},_e=null,tt=null,Xe=[{text:"Image",type:$.IMAGE},{text:"Accent",type:$.ACCENT},{text:"White",type:$.WHITE}],rt={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},pt=Q({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),ze=Q({ROUNDED:null,SQUARED:null}),qe=U()({ROUNDED:null,SQUARED:null}),Lt=U()({FLOATING:null,FULL:null}),Kt=U()({ACCENT:null,DARK:null,LIGHT:null}),is=[{value:pt.AUTO,label:"Auto"},{value:pt.DARK,label:"Dark"},{value:pt.LIGHT,label:"Light"}]},77578(et,xe,c){"use strict";var A={};c.r(A),c.d(A,{CoverDescription:()=>Nx,CoverDetailsContentHeading:()=>wb,CoverDueDate:()=>jx,CoverHeader:()=>eb,CoverLayout:()=>ob,LessonHeader:()=>pb,LessonNavFinish:()=>fb,LessonNavNext:()=>vb,LessonNavPrevious:()=>Cb,LessonProgressGraphic:()=>Ib,NavCompactHeaderCounter:()=>Mb,NavCompactHeaderProgress:()=>Ob,NavCompactOutline:()=>Db,OverviewListItem:()=>Bb,OverviewListSectionTitle:()=>Hb,Progress:()=>Pb});var U={};c.r(U),c.d(U,{AlignLeft:()=>Vb,ArrowDown:()=>A1,ArrowLeft:()=>Fb,ArrowRight:()=>zb,ArrowUp:()=>wp,Category:()=>G4,ChevronDown:()=>Ub,ChevronUp:()=>$b,Favorite:()=>z0,LessonsComplete:()=>gd,LessonsRequirement:()=>$2,QuestionBox:()=>Wb,QuizFailed:()=>Bp,QuizPassed:()=>gd,QuizRequirement:()=>M0,Search:()=>Gb,ToggleDown:()=>Kb,Touch:()=>_b,VideoCamera:()=>Qb,X:()=>Zb});var P={};c.r(P),c.d(P,{components:()=>A,icons:()=>U});var G={};c.r(G),c.d(G,{CoverCourseInfo:()=>Fy,CoverDetailsSection:()=>Wy,CoverHeader:()=>nL,CoverLayout:()=>aL,LessonHeader:()=>dL,LessonProgressGraphic:()=>fL,NavSidebarHeader:()=>vL,OverviewListItemLinkContent:()=>UL,Progress:()=>$L});var Q={};c.r(Q),c.d(Q,{ArrowDown:()=>of,ArrowLeft:()=>GL,ArrowRight:()=>WL,ArrowUp:()=>of,ChevronDown:()=>rf,ChevronUp:()=>rf,Favorite:()=>z0,LessonsComplete:()=>af,LessonsRequirement:()=>cf,QuizFailed:()=>_L,QuizPassed:()=>af,QuizRequirement:()=>cf,Search:()=>KL,ToggleDown:()=>QL,X:()=>ZL});var _={};c.r(_),c.d(_,{components:()=>G,icons:()=>Q});var me={};c.r(me),c.d(me,{CoverDescription:()=>JL,CoverDetails:()=>eE,CoverGraphic:()=>Rc,CoverHeader:()=>lE,CoverLayout:()=>hE,CoverProgress:()=>IE,CoverSVG:()=>na,LessonHeader:()=>AE,LessonProgressGraphic:()=>OE,NavSidebarHeaderProgress:()=>BE});var re={};c.r(re),c.d(re,{AlignLeft:()=>UE,ArrowDown:()=>HE,ArrowLeft:()=>FE,ArrowRight:()=>zE,ArrowUp:()=>VE,ChevronDown:()=>bf,ChevronUp:()=>$E,Favorite:()=>z0,LessonsComplete:()=>gd,LessonsRequirement:()=>$2,QuestionBox:()=>WE,QuizFailed:()=>Bp,QuizPassed:()=>gd,QuizRequirement:()=>M0,Search:()=>GE,ToggleDown:()=>bf,Touch:()=>KE,VideoCamera:()=>_E,X:()=>QE});var ee={};c.r(ee),c.d(ee,{components:()=>me,icons:()=>re});var s=c(31042),be=c(21044),we=c(42984),ie=c(99506),ue=c(77840),oe=c(13031),Ee=c(57357),Ne=c(50317),Se=c(52171),ae=c(4762),V=c(44205),ce=c(81663),F=c(90371),de=c(66871),ve=c(5743),Te=c(31606),je=c(55216),ge=c(94699),h=c(15648),J=c(65021),te=c(31949),K=c(96896),Ve=c(39341);const fe="_course_token",se=new URLSearchParams(window.location.hash.substr(1)),ye=se.get(fe);ye&&(se.delete(fe),window.history.replaceState(null,null,`#${se.toString()}`));const $=t=>{const{data:{method:e,id:n,jsonrpc:o}}=t;if(o==="2.0"&&e==="getBearerToken"){const r=ye||(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",$);var Re;const _e=(0,h.createContext)({});function tt(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};default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function Xe({ariaLive:t,message:e}){return(0,s.jsx)("div",{"aria-atomic":"true","aria-live":t,"aria-relevant":"additions text",className:"visually-hidden-always",role:"log",children:e})}function rt({children:t}){const[{politeMessage1:e,politeMessage2:n,assertiveMessage1:o,assertiveMessage2:r},a]=(0,h.useReducer)(tt,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),i=(0,h.useMemo)(()=>({announcePolite:l=>{a({type:"polite",message:l})},announceAssertive:l=>{a({type:"assertive",message:l})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,s.jsxs)(_e.Provider,{value:i,children:[(0,s.jsx)(Xe,{ariaLive:"polite",id:"polite-announcer1",message:e}),(0,s.jsx)(Xe,{ariaLive:"polite",id:"polite-announcer2",message:n}),(0,s.jsx)(Xe,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,s.jsx)(Xe,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),t]})}function pt(){return(0,h.useContext)(_e)}function ze(t){const e=n=>{const o=pt();return Re(t,{...n,...o})};return e.displayName=`withAriaLive(${t.displayName||t.name})`,e}var qe=c(98600),Lt=c(63762),Kt=c(75448),is=c(63502),Zt=c.n(is),Me=c(21418),ft=c(69339),W=c.n(ft),nt=c(88549),Mt=c(12146),Ge=c(17159);const us=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,Ze=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/error_x.svg`,Fs=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,_s="downloading",Yt="error",Ps="ok",po="contained",Yn=({type:t})=>{const[e]=(0,h.useState)(()=>Zt()("certdownload-")),[n,o]=(0,h.useState)(Ps),r=(0,Me.A)(n),a=(0,h.useRef)(),i=(0,nt.useLabelsMap)(),l=`${e}-live`,u=W()("certificateDownload",{certificateDownloadContained:t===po}),d=(0,h.useCallback)(()=>{o(_s)},[]);return(0,h.useEffect)(()=>(n===_s&&r!==_s&&(0,Mt.gj)().then(()=>{o(Ps)}).catch(m=>{(0,Kt.FZ)(m)?o(Ps):o(Yt)}),()=>{(0,Mt.G7)()}),[r,n]),(0,h.useEffect)(()=>{a.current&&(n===Yt&&r!==Yt||n===Ps&&(r===Yt||r===_s))&&a.current.focus()},[r,n]),(0,s.jsxs)("div",{className:u,children:[(0,s.jsxs)("div",{"aria-live":"polite",id:l,role:"status",children:[n===_s&&(0,s.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,s.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:Fs,width:"15"}),i?.certificateDownloadInProgress||"Downloading..."]}),n===Yt&&(0,s.jsxs)("span",{className:"certificateDownload__error",children:[(0,s.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:Ze,width:"15"}),(0,s.jsx)("span",{className:"visually-hidden",children:i?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(n===Ps||n===Yt)&&(0,s.jsxs)("button",{"aria-controls":l,className:"certificateDownload__btn",onClick:d,ref:a,type:"button",children:[n===Ps&&t===po&&(0,s.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:us,width:"15"}),n===Ps?i?.certificateDownload||"Download certificate":i?.certificateRetryDownload||"Retry download"]})]})},Uo=()=>(0,s.jsx)(Yn,{type:po}),$o=(0,h.memo)(Yn);var jt=c(27036),gs=c(34657),zs=c(43676);const fo={BLOCKS:"blocks",QUIZ:"quiz",SECTION:"section"},vo=t=>t?.type===fo.QUIZ,Tt=t=>t?.type===fo.QUIZ;var k=c(27922),Vt=c(3285),Et=c(50918);const Tn=()=>(0,jt.Mz)(e=>e,(e,n)=>n,(e,n,o)=>(0,Et.HH)(o),(e,n,o)=>(0,Et.fF)(o),Et.Dh);function cs(t){const{currentLocale:e}=(0,Vt.nY)(),n=(0,h.useMemo)(()=>Tn(),[]);return(0,K.d4)(o=>n(t,e,o))}const go=(0,jt.Mz)(t=>t,(t,e)=>(0,Et.fF)(e),(t,e)=>e?.[t]);function In(){const{currentLocale:t}=(0,Vt.nY)();return(0,K.d4)(e=>go(t,e))}const gn=(0,jt.Mz)(t=>t.course?.title,Et.HH,Et.fF,(t,e,n)=>{if(t)return(0,Et.xp)(t,e,n)});function Nn(){return(0,K.d4)(gn)}var Ue=c(15648);function bt(t){return t?.search}function Bt(){return(0,K.d4)(bt)}function Vs(t){return bt(t)?.activeLessons}const Cn=(0,jt.Mz)(Vs,t=>t?t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{}):{});function Wo(){return(0,jt.Mz)(t=>t,(t,e)=>Cn(e),(t,e)=>e?.[t])}function ba(t){const e=Ue.useMemo(()=>Wo(),[]);return(0,K.d4)(n=>e(t,n))}function Ht(t){return t?.course}function kt(){return(0,K.d4)(t=>Ht(t))}function jn(t){return Ht(t)?.navigationMode}function ya(t){return Ht(t)?.trackingQuizId}function Co(){const t=kt();return cs(t?.title)}function gl(t){return Ht(t)?.type}function Cl(){return(0,K.d4)(t=>gl(t))}function La(t){const e=Ht(t);return(0,zs.c3)(e)}function Or(t){const e=Ht(t);return(0,gs.HX)(e)}const Gi=t=>t.filter(e=>e.type!=="section");function Ki(){const t=kt(),e=Bt();return(0,h.useMemo)(()=>e?.active&&e?.lessons?.length>0?{...t,lessons:e.lessons,lessonsOnly:Gi(e.lessons)}:t,[t,e?.active,e?.lessons])}const xl=(0,jt.Mz)(Ht,t=>(t?.lessons??[]).filter(vo).some(e=>e.settings?.skipLessonsIfPassed&&e.settings?.skipToLessonId));function nr(t){const e=jn(t);return xl(t)?k.b$.RESTRICTED:e??k.b$.FREE}function Dr(){return(0,K.d4)(nr)}var ct=c(82083),$e=c.n(ct),xo=c(53097),or=c.n(xo),Go=c(94927),_i=c.n(Go),Br=c(81821),Cs=c.n(Br),rr=c(99552),xs=c.n(rr),Ko=c(97002),bo=c.n(Ko),Ea=c(43085),rn=c.n(Ea),yo=c(63907),kn=c.n(yo),Lo=c(1834),ls=c.n(Lo),Sa=c(11607),Ta=c.n(Sa),Ia=c(74147),ps=c.n(Ia),xn=c(58594),Qs=c.n(xn),ar=c(80340),os=c.n(ar),Na=c(1921),gt=c.n(Na),Hr=c(41642),Us=c.n(Hr),Qi=c(92074),Ct=c.n(Qi),ja=c(32636),It=c.n(ja),ka=c(76554),Zi=c.n(ka),Fr=c(83104),zr=c.n(Fr),Yi=c(12695),Vr=c.n(Yi);const ir=Ct()("lessons"),Xi=Vr()(t=>!!t,["settings","passToContinue"]),Aa=t=>$e()(Qs(),e=>os()([e,"passed"],t),Ct()("id")),Ur=({course:t,courseProgress:e})=>$e()(rn(),Cs()(Aa(ir(e))),Cs()(Xi),ir)(t)||{},Ji=({courseProgress:t,lesson:e,restrictingQuiz:n})=>{const o=Ct()("id",e),r=l=>os()([l,"index"],ir(t)),a=r(o);return $e()(zr()(a),r,Ct()("id"))(n)?n:{}};var Rt=c(90946);const $r=$e()(Qs(),ls()),An=$e()(Cs()(Rt.GG),Ct()("lessonsOnly")),Ra=({course:t,courseProgress:e})=>xs()(cr(e))(t.lessonsOnly),cr=t=>e=>Qs()(os()(["lessons",e.id,"isComplete"],t)),Wr=({lesson:t,currentLesson:e})=>t&&It()("id",t.id,e),Pa=({course:t,lesson:e})=>It()("id",e.id,rn()(Ct()("lessonsOnly",t))),qi=({course:t,lesson:e})=>It()("id",e.id,Ta()(Ct()("lessonsOnly",t))),wa=$e()(Qs(),It()("type","section")),bl=({lesson:t,courseProgress:e})=>gt()(!1,["lessons",t.id,"isComplete"],e),Ma=({course:t,courseProgress:e,lesson:n,restrictingQuiz:o})=>{const r=Ji({courseProgress:e,lesson:n,restrictingQuiz:o}),a=(0,Rt.bQ)(t),i=a||$r(r),l=Ra({course:t,courseProgress:e}),u=wa(n)&&Qs()(bl({lesson:n,courseProgress:e}));return{isRestricted:i&&u&&Qs()(Wr({lesson:n,currentLesson:l})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:l}},yl=({labels:t,restrictions:e})=>{const{lessonRestricted:n,quizRequirePassingScore:o}=t,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:i}=e,l=i&&_i()("id",a,i);return!r||r&&l?a.title?o.replace("quiz",`"${a.title}"`):o:n},Oa=or()(t=>bo()(Zi()(Us()(["id"],t||{})))),Da=({course:t,lesson:e})=>$e()(kn(),Oa(e),An)(t),Ba=({course:t,lesson:e})=>!qi({course:t,lesson:e})&&t.lessonsOnly[kn()(Oa(e,t.lessonsOnly))],ec=$e()(ps(),An),Ll=t=>typeof t=="object"&&Object.keys(t).length>0,Ha=t=>t===void 0||t===!1,ot=t=>Ha(t?.isComplete),El=t=>t.find(([e,n])=>ot(n)),Sl=t=>{const e=Object.entries(t),[n]=El(e)||[];return n},Tl=t=>Ll(t)?Sl(t):void 0,tc=(t,e,n)=>{if(!n)return{outOfAttempts:!1,quizPassed:!0};const o=os()(["lessons",n],t),r=gt()(-1,["settings","retryCount"],e),a=gt()(0,["retryAttempts"],o),i=os()(["passed"],o);return{outOfAttempts:os()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:i}};function Xn(t){return t.courseProgress}function Ie(t){return t.courseProgress?.currentLesson??""}function Ye(t){return t.courseProgress?.percentComplete??0}const Nt=(0,jt.Mz)(ya,Ht,(t,e)=>{const{lessons:n}=e;return Array.isArray(n)?n.find(({id:o,type:r})=>r==="quiz"&&o===t)??null:null}),hs=(0,jt.Mz)(Xn,Nt,(t,e)=>e?tc(t,e,e.id):null);function ds(t){const e=Xn(t);return(0,qe.Wk)()?e?.percentComplete===100:!!(0,qe.As)()}function Ss(t){return t.courseProgress?.lessons}function Rn(t,e){return Ss(e)?.[t]}function lr(){return(0,K.d4)(Xn)}function Jn(){return(0,K.d4)(Ie)}function dr(){return(0,K.d4)(Ye)}function Il(){return(0,K.d4)(Nt)}function Gr(){return(0,K.d4)(hs)??{outOfAttempts:!1,quizPassed:!1}}function Fa(){return(0,K.d4)(ds)}function Pn(t){return(0,K.d4)(e=>Rn(t,e))}function za(t){const e=Pn(t);if(e?.type==="quiz")return e}const Kr=t=>t>9999?1:t,sc=({current:t,restart:e,restartValue:n})=>{const o=Number(n),r=Kr(Number.isInteger(o)&&o>0?o:1),a=e?r:t+1;return Kr(a)},i0=(t,e)=>{if(e.family==="divider"&&e.variant==="numbered divider"){const n=e.settings??{},o=sc({current:t.currentNumber,restart:n.restartNumbering,restartValue:n.restartNumberingValue});return{map:{...t.map,[e.id]:o},currentNumber:o}}return t};var es=c(73730);const Nl=t=>!!(0,es.Mz)(t),_r=t=>!!(0,es.gL)(t),jl=t=>!!(0,es.dg)(t),c0=t=>!!(0,es.Sg)(t);function Eo(){return(0,jt.Mz)(t=>t,(t,e)=>n2(e),(t,e)=>e[String(t)])}function kl(t,e){return Eo()(t,e)}function q(t){const e=(0,h.useMemo)(()=>Eo(),[]);return(0,K.d4)(n=>e(t,n))}function Oe(t){const e=q(t);return cs(e?.title)}function ht(){const t=Eo();return(0,jt.Mz)(t,e=>Nl(e))}function yt(){const t=Ts();return(0,jt.Mz)(e=>e,(e,n)=>t(n),(e,n)=>nr(n),(e,n)=>t4(n),(e,n)=>s4(n),(e,n)=>Ss(n),(e,n,o,r,a,i)=>{const l=i?.[e],u=i?.[n];if(e!==n&&!l?.isComplete&&l?.index>u?.index){const d=i?.[r?.id]?.index??1/0,m=o==="restricted"?u?.index??1/0:i?.[a?.id]?.index??1/0;if(l?.index>Math.min(d,m))return m<d?o==="restricted"?{type:es.XQ.ORDER}:{type:es.XQ.KNOWLEDGE_CHECK}:{type:es.XQ.QUIZ,data:r.title}}return null})}function ts(t){const e=(0,h.useMemo)(()=>yt(),[]);return(0,K.d4)(n=>e(t,n))}function Ts(){return(0,jt.Mz)(Ss,t=>t?Tl(t):void 0)}function _o(){const t=Ts();return(0,jt.Mz)(e=>e,(e,n)=>t(n),(e,n)=>n2(n),(e,n)=>(0,Et.HH)(n),(e,n)=>(0,Et.fF)(n),(e,n,o,r,a)=>{if(n)return(0,Et.UR)(o[n],e,r,a)})}function l0(){const t=Eo();return(0,jt.Mz)(t,Rn,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&(!r||_r(e)&&!a)})}function Al(t){const e=(0,h.useMemo)(()=>l0(),[]);return(0,K.d4)(n=>e(t,n))}function d0(){const t=Eo();return(0,jt.Mz)(t,Rn,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&r&&(!_r(e)||a)})}function Rl(t){const e=(0,h.useMemo)(()=>d0(),[]);return(0,K.d4)(n=>e(t,n))}const nc=(0,jt.Mz)(Ht,t=>t?.lessons??[]),n2=(0,jt.Mz)(nc,t=>t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{})),Va=(0,jt.Mz)(Ht,t=>t?.lessonsOnly??[]),J5=(0,jt.Mz)(Va,t=>t.reduce((e,n,o)=>(e[n.id]=o+1,e),{}));function q5(){return(0,K.d4)(t=>J5(t))}const e4=t=>t.type!=="quiz"||t.settings?.asLesson!==!1,o2=(0,jt.Mz)(Va,t=>t.filter(e4)),r2=(0,jt.Mz)(o2,t=>t.length),u0=(0,jt.Mz)(nc,t=>t.reduce((e,n)=>{const o=e[e.length-1];return Nl(n)||o==null?e.push([n.id]):o.push(n.id),e},[])),t4=(0,jt.Mz)(Va,Ss,(t,e)=>t.find(n=>_r(n)&&jl(n)&&!e?.[n.id]?.isComplete)),s4=(0,jt.Mz)(Va,Ss,(t,e)=>t.find(n=>!_r(n)&&c0(n)&&!e?.[n.id]?.isComplete));function Pl(t){const e=(0,h.useMemo)(ht,[]);return(0,K.d4)(n=>e(t[0],n))}function h0(t){const e=(0,h.useMemo)(()=>Eo(),[]),n=(0,h.useMemo)(()=>yt(),[]),o=Dr();return(0,K.d4)(r=>{const a=Ht(r),i=e(t,r),l=Rn(t,r),d=n(t,r)?.type!=null;return o!==k.b$.RESTRICTED&&a?.markComplete&&!d&&i?.type!==es.d9.QUIZ&&!(Ge.BI&&l?.percentComplete===100)})}const m0=(t,e)=>e.findIndex(n=>n.id===t);function a2(){return(0,jt.Mz)(t=>t,(t,e)=>Va(e),(t,e)=>{if(t==="progress-summary")return e[e.length-1];const o=m0(t,e)-1;return e[o]})}function i2(){return(0,jt.Mz)(t=>t,(t,e)=>Va(e),(t,e)=>{const o=m0(t,e)+1;return e[o]})}function c2(t){return(0,jt.Mz)(t,(e,n)=>o2(n),(e,n)=>m0(e?.id||"",n)+1)}function n4(){return c2(i2())}function o4(){return c2(a2())}function l2(){return(0,K.d4)(t=>u0(t))}function r4(){const t=Ts();return(0,jt.Mz)(ds,t,ya,(e,n,o)=>{const r=!!n,a=o!=null;return e||!r&&!a})}function a4(){const t=(0,h.useMemo)(()=>r4(),[]);return(0,K.d4)(e=>t(e))}const i4=t=>t?.items?.reduce?.(i0,{map:{},currentNumber:0})?.map||{},c4=t=>{const e=(0,h.useMemo)(()=>Eo(),[]),n=(0,K.d4)(o=>e(t,o));return(0,h.useMemo)(()=>i4(n),[n])},l4=({blockId:t,lessonId:e})=>c4(e)?.[t];function d4(t){const n=kt()?.lessonsOnly??[],o=n.findIndex(a=>a.id===t);return(o>=0?n[o+1]:void 0)?.id??null}function u4(t){const n=q(t)?.settings;return(0,h.useMemo)(()=>({continueType:n?.continueType??"",retryCount:Number(n?.retryCount??-1),skipLessonsIfPassed:n?.skipLessonsIfPassed??!1,skipToLessonId:n?.skipToLessonId??void 0}),[n])}function $s(t){return(0,s.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...t})}var d2,h4;const JQ=t=>d2(h4,{...t,viewBox:"0 0 8 8",children:d2("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 "})}),qQ=null;var p0,m4,p4;const eZ=t=>p0(p4,{viewBox:"0 0 10 10",...t,children:m4("g",{fillRule:"evenodd",children:[p0("path",{d:"M0 4.107h10v2H0z"}),p0("path",{d:"M4 0h2v10H4z"})]})}),tZ=null;var f0,f4;const sZ=({width:t="18",height:e="18",className:n})=>f0("svg",{"aria-hidden":"true",className:f4("i i-alert",n),focusable:"false",height:e,viewBox:"0 0 18 18",width:t,children:f0("g",{fill:"none",fillRule:"evenodd",stroke:"#DE1D1D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:f0("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),nZ=null;function v4(t){return(0,s.jsxs)($s,{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"})]})}var g4,wl;const oZ=({width:t="20",height:e="20"})=>g4("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:[wl("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"}),wl("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"}),wl("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"}),wl("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"})]}),rZ=null;var u2,C4;const aZ=({width:t="15",height:e="15",className:n})=>u2("svg",{"aria-hidden":"true",className:C4("i i-all-blocks",n),focusable:"false",height:e,viewBox:"0 0 15 15",width:t,children:u2("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"})}),iZ=null;var h2,x4;const cZ=t=>h2(x4,{...t,viewBox:"0 0 15 15",children:h2("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"})}),lZ=null;var b4,m2,y4;const dZ=({width:t="24",height:e="16",leftMovement:n="0",className:o})=>b4("svg",{"aria-hidden":"true",className:y4("i i-alt",o),focusable:"false",height:e,style:{marginLeft:n},viewBox:"0 0 24 16",width:t,children:[m2("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"}),m2("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"})]}),uZ=null;var L4,p2;const hZ=({className:t,width:e="20",height:n="20",focusable:o="false"})=>L4("svg",{className:t,fill:"none",focusable:o,height:n,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[p2("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"}),p2("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"})]}),mZ=null;var E4,v0,S4;const pZ=({title:t="Export",desc:e="An arrow bending itself to the right",width:n="16",height:o="13",className:r,focusable:a="false"})=>E4("svg",{className:S4("i",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[v0("title",{children:t}),v0("desc",{children:e}),v0("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"})]}),fZ=null;var f2,T4;function vZ(t){return f2(T4,{viewBox:"0 0 384 512",...t,children:f2("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"})})}var I4,v2,N4;function gZ(t){return I4(N4,{viewBox:"0 0 22 22",...t,children:[v2("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"}),v2("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"})]})}var j4,g0,k4;const CZ=({title:t="Export",desc:e="An arrow pointing right",width:n="16",height:o="8",className:r,focusable:a="false",decorative:i})=>j4("svg",{"aria-hidden":i?"true":"false",className:k4("i",r),focusable:a,height:o,viewBox:"0 0 16 8",width:n,children:[g0("title",{children:t}),g0("desc",{children:e}),g0("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"})]}),xZ=null;var g2,A4;function bZ(t){return g2(A4,{viewBox:"0 0 384 512",...t,children:g2("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"})})}var R4,C2,P4;function yZ(t){return R4(P4,{viewBox:"0 0 22 22",...t,children:[C2("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"}),C2("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"})]})}var x2,w4;const LZ=t=>x2(w4,{viewBox:"0 0 10 12",...t,children:x2("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"})}),EZ=null;var b2,oc,M4;const SZ=({title:t="Background Image",desc:e="Background Image",width:n="18",height:o="18",className:r,focusable:a="false"})=>b2("svg",{className:M4("i i-background-image",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[oc("title",{children:t}),oc("desc",{children:e}),b2("g",{children:[" ",oc("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"})," ",oc("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"})," ",oc("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"})," "]})]}),TZ=null;var O4,C0,D4;const IZ=({title:t="Bank",desc:e="A building with four columns",width:n="16",height:o="16",className:r,focusable:a="false"})=>O4("svg",{className:D4("i i-bank",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[C0("title",{children:t}),C0("desc",{children:e}),C0("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"})]}),NZ=null;var B4,y2,H4;function jZ(t){return B4(H4,{fill:"none",viewBox:"0 0 14 14",...t,children:[y2("rect",{height:"8.3",stroke:"currentColor",strokeWidth:"1.5",width:"8.3",x:"0.75",y:"0.75"}),y2("rect",{height:"8.3",rx:"1.35",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",width:"8.3",x:"4.9502",y:"4.9502"})]})}var F4,rc,z4;function kZ(t){return F4(z4,{viewBox:"0 0 14 15",...t,children:[rc("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"}),rc("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"}),rc("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"}),rc("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"}),rc("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"})]})}var V4,Ml,U4;const AZ=({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"})=>V4("svg",{className:U4("i i-blockTemplateAllAuthors",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[Ml("title",{children:t}),Ml("desc",{children:e}),Ml("circle",{cx:"14.963",cy:"14.963",fill:"#E9E9E9",r:"14.963"}),Ml("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"})]}),RZ=null;var Ol,qn,$4;const PZ=({title:t="Check Mark",desc:e="A circle with a check mark inside",width:n="112",height:o="112",className:r,focusable:a="false"})=>Ol("svg",{className:$4("i i-blockTemplateCheckMark",r),focusable:a,height:o,viewBox:"0 0 112 112",width:n,children:[qn("title",{children:t}),qn("desc",{children:e}),qn("defs",{children:Ol("filter",{filterUnits:"objectBoundingBox",height:"186.1%",id:"a",width:"186.1%",x:"-43.1%",y:"-40.3%",children:[qn("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),qn("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),qn("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"}),Ol("feMerge",{children:[qn("feMergeNode",{in:"shadowMatrixOuter1"}),qn("feMergeNode",{in:"SourceGraphic"})]})]})}),Ol("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[qn("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"}),qn("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),qn("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"})]})]}),wZ=null;var L2,Dl,W4;const MZ=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="42",height:o="42",className:r,focusable:a="false"})=>L2("svg",{className:W4("i i-blockTemplateFolder",r),focusable:a,height:o,viewBox:"0 0 42 42",width:n,children:[Dl("title",{children:t}),Dl("desc",{children:e}),L2("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[Dl("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"}),Dl("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"})]})]}),OZ=null,G4=({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"})]});var K4,x0,_4;const BZ=({title:t="Building",desc:e="Building with windows",width:n="18",height:o="18",className:r,focusable:a="false"})=>K4("svg",{className:_4("icon",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[x0("title",{children:t}),x0("desc",{children:e}),x0("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"})]}),HZ=null;var b0,ac,Q4;const FZ=({title:t="Captions",desc:e="Two capital letter C inside a square",width:n="24",height:o="16",className:r,focusable:a="false"})=>b0("svg",{className:Q4("i i-captions",r),focusable:a,height:o,viewBox:"0 0 24 16",width:n,children:[ac("title",{children:t}),ac("desc",{children:e}),b0("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[ac("rect",{height:"13.25",rx:"1",stroke:"#000",strokeWidth:"1.75",width:"18.25",x:"1.447",y:"1.402"}),b0("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[ac("tspan",{x:"4.222",y:"11.5",children:"C"})," ",ac("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),zZ=null;var Z4,y0;const VZ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:l="16"})=>Z4("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&y0("title",{children:i}),o&&y0("desc",{children:o}),y0("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"})]}),UZ=null;var Y4,L0,X4;const $Z=({title:t="Character",desc:e="Character",width:n="13",height:o="16",className:r,focusable:a="false"})=>Y4("svg",{className:X4("i i-character",r),focusable:a,height:o,viewBox:"0 0 13 16",width:n,children:[L0("title",{children:t}),L0("desc",{children:e}),L0("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"})]}),WZ=null;function E2(t){return(0,s.jsx)($s,{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"})})}var J4,E0,q4;const GZ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="21",role:a="img",title:i,width:l="21"})=>J4("svg",{"aria-hidden":t,"aria-label":e,className:q4("i i-checkMarkFilled",n),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&E0("title",{children:i}),o&&E0("desc",{children:o}),E0("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"})]}),KZ=null;var S2,eC;function _Z(t){return S2(eC,{viewBox:"0 0 7 5",...t,children:S2("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"})})}var T2,tC;const QZ=({width:t="16",height:e="16",className:n,focusable:o="false"})=>T2("svg",{"aria-hidden":"true",className:tC("i i-chevronLeft",n),focusable:o,height:e,viewBox:"0 0 16 16",width:t,children:T2("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),ZZ=null;var I2,sC;const YZ=t=>I2(sC,{viewBox:"0 0 6 10",...t,children:I2("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"})}),XZ=null,nC=({className:t,dataTestId:e})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:t,"data-testid":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"})});var N2,Bl,oC;const qZ=({title:t="Clock",desc:e="Image of a clock with two hands",width:n="14",height:o="13",className:r,focusable:a="false"})=>N2("svg",{className:oC("i",r),focusable:a,height:o,viewBox:"0 0 14 13",width:n,children:[Bl("title",{children:t}),Bl("desc",{children:e}),N2("g",{children:[Bl("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"}),Bl("path",{d:"M7.81299 3.25H6.18799V7.313H10.25V5.688H7.81199L7.81299 3.25Z"})]})]}),eY=null,rC=({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"})});var aC,j2,iC;function sY(t){return aC(iC,{viewBox:"0 0 16 16",...t,children:[j2("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"}),j2("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"})]})}var cC,wn;const nY=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="18",role:a="img",title:i,width:l="18"})=>cC("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&wn("title",{children:i}),o&&wn("desc",{children:o}),wn("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),wn("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),wn("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),wn("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),wn("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),wn("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),wn("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),wn("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),wn("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),wn("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),oY=null;var lC,S0,dC;const rY=({title:t="Continue Block",desc:e="Continue Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>lC("svg",{className:dC("i i-continue-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[S0("title",{children:t}),S0("desc",{children:e}),S0("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"})]}),aY=null;var uC,T0,hC;const iY=({title:t="Convert",desc:e="Convert to block",width:n="14",height:o="12",className:r,focusable:a="false"})=>uC("svg",{className:hC("i i-convert",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[T0("title",{children:t}),T0("desc",{children:e}),T0("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"})]}),cY=null;var mC,k2,pC;function lY(t){return mC(pC,{...t,viewBox:"0 0 16 16",children:[k2("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"}),k2("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"})]})}var fC,I0,vC;const dY=({title:t="Copy",desc:e="A document stacked on top of another one",width:n="15",height:o="18",className:r=null,focusable:a="false"})=>fC("svg",{className:vC("i i-stack",r),focusable:a,height:o,viewBox:"0 0 15 18",width:n,children:[I0("title",{children:t}),I0("desc",{children:e}),I0("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"})]}),uY=null;var gC,N0,CC;const hY=({title:t="Copy lesson",desc:e="Copy lesson",width:n="15",height:o="15",className:r,focusable:a="false"})=>gC("svg",{className:CC("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[N0("title",{children:t}),N0("desc",{children:e}),N0("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"})]}),mY=null;var xC,Hl;const pY=({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"})=>xC("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[Hl("title",{children:t}),Hl("desc",{children:e}),Hl("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"}),Hl("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"})]}),fY=null;var bC,j0,yC;const vY=t=>{const{className:e,desc:n="Crop",focusable:o="false",height:r="19",title:a="Crop",width:i="19"}=t,l={className:yC("i i-crop",e),focusable:o,height:r,viewBox:`0 0 ${i} ${r}`,width:i};return bC("svg",{...l,children:[j0("title",{children:a}),j0("desc",{children:n}),j0("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"})]})},gY=null;var LC,k0,EC;const CY=({"aria-hidden":t,"aria-label":e="Dash mark",className:n,desc:o,height:r="3",role:a="img",title:i,width:l="7"})=>LC("svg",{"aria-hidden":t,"aria-label":e,className:EC("i i-dashMark",n),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&k0("title",{children:i}),o&&k0("desc",{children:o}),k0("rect",{height:"3",width:"7"})]}),xY=null;var SC,A2;const bY=({width:t="20",height:e="20",focusable:n="false"})=>SC("svg",{fill:"none",focusable:n,height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[A2("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"}),A2("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"})]}),yY=null,TC=({title:t="DestinationArrow",desc:e="DestinationArrow",width:n="13",height:o="10",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:W()("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"})]});var IC,A0,NC;const EY=({title:t="Dialogue Slide",desc:e="Dialogue Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>IC("svg",{className:NC("i i-dialogue-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[A0("title",{children:t}),A0("desc",{children:e}),A0("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"})]}),SY=null;var jC,ic;const TY=({title:t="Disk",desc:e="An old floppy disk",width:n="16",height:o="16",className:r,focusable:a="false"})=>jC("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[ic("title",{children:t}),ic("desc",{children:e}),ic("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"}),ic("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"}),ic("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"})]}),IY=null;var kC,NY;class jY extends null{render(){return kC("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 kY=null;var R2,AC;const AY=({width:t=20,height:e=20,...n})=>R2(AC,{height:e,width:t,...n,viewBox:"0 0 20 20",children:R2("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"})}),RY=null;var RC,R0,PC;const PY=({title:t="Vertical Dots",desc:e="Vertical Dots",width:n="4",height:o="24",className:r=null,focusable:a="false"})=>RC("svg",{className:PC("i i-dotsVertical",r),focusable:a,height:o,viewBox:"0 0 4 24",width:n,children:[R0("title",{children:t}),R0("desc",{children:e}),R0("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"})]}),wY=null,wC=({title:t="Download",desc:e="Arrow down with horizontal line beneath it",width:n="16",height:o="19",className:r,focusable:a="false"},i)=>(0,s.jsxs)("svg",{className:W()("i i-download",r),focusable:a,height:o,ref:i,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"})]}),MC=(0,h.forwardRef)(wC);var OC,cc,DC;const MY=({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"})=>OC("svg",{className:DC("i i-downloadCircle",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[cc("title",{children:t}),cc("desc",{children:e}),cc("g",{fill:"none",stroke:"none",children:cc("g",{fill:"#000",transform:"translate(-695, -227)",children:cc("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"})})})]}),OY=null;var BC,P2,HC;function DY(t){return BC(HC,{viewBox:"0 0 13 13",...t,children:[P2("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"}),P2("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"})]})}var FC,Fl,zC;const BY=({title:t="Draw",desc:e="Arrow down with horizontal line beneath it",width:n="15",height:o="15",className:r,focusable:a="false"})=>FC("svg",{className:zC("i i-drawFromQuestionBank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[Fl("title",{children:t}),Fl("desc",{children:e}),Fl("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"}),Fl("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"})]}),HY=null;var VC,P0,UC;const FY=t=>VC(UC,{height:"16",viewBox:"0 0 16 4",width:"4",...t,children:[P0("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"}),P0("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"}),P0("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"})]}),zY=null;var $C,lc,WC;const VY=({title:t="More",desc:e="Three dots next to one another",width:n="16",height:o="4",className:r=null,focusable:a="false"})=>$C("svg",{className:WC("i",r),focusable:a,height:o,viewBox:"0 0 16 4",width:n,children:[lc("title",{children:t}),lc("desc",{children:e}),lc("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"}),lc("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"}),lc("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"})]}),UY=null;var w2,dc,GC;const $Y=({title:t="Draggable",desc:e="Three dots stacked on top of one another",width:n="4",height:o="14",className:r,focusable:a="false"})=>w2("svg",{className:GC("i i-ellipsis--vert",r),focusable:a,height:o,viewBox:"0 0 4 14",width:n,children:[dc("title",{children:t}),dc("desc",{children:e}),w2("g",{transform:"translate(.158 .445)",children:[dc("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),dc("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),dc("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),WY=null;var KC,w0,_C;const GY=({title:t="Embed",desc:e="Embed icon",width:n="16",height:o="15",className:r,focusable:a="false"})=>KC("svg",{className:_C("i i-embed",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[w0("title",{children:t}),w0("desc",{children:e}),w0("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"})]}),KY=null;var QC,zl,ZC;const _Y=({title:t="Empty folder",desc:e="Empty folder",width:n="46",height:o="46",className:r,focusable:a="false"})=>QC("svg",{className:ZC("i i-emptyFolder",r),focusable:a,height:o,viewBox:"0 0 46 46",width:n,children:[zl("title",{children:t}),zl("desc",{children:e}),zl("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"}),zl("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"})]}),QY=null;var YC,Vl,XC;const ZY=({title:t="End Slide",desc:e="End Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>YC("svg",{className:XC("i i-end-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[Vl("title",{children:t}),Vl("desc",{children:e}),Vl("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"}),Vl("rect",{fillRule:"evenodd",height:"14",width:"2",x:"14"})]}),YY=null;var M2,Ul,JC;const XY=({title:t="Envelope",desc:e="Envelope",width:n="17",height:o="14",className:r,focusable:a="false"})=>M2("svg",{className:JC("i i-envelope",r),focusable:a,height:o,viewBox:"0 0 17 14",width:n,xmlns:"http://www.w3.org/2000/svg",children:[Ul("title",{children:t}),Ul("desc",{children:e}),M2("g",{fillRule:"nonzero",children:[Ul("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"}),Ul("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"})]})]}),JY=null;var qC,$l,e9;const qY=({title:t="Error",desc:e="An x with a circle",width:n="50",height:o="50",className:r,focusable:a="false"})=>qC("svg",{className:e9("i i-error",r),focusable:a,height:o,viewBox:"0 0 50 50",width:n,children:[$l("title",{children:t}),$l("desc",{children:e}),$l("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"}),$l("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"})]}),eX=null;var t9,Wl,s9;const tX=({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"})=>t9("svg",{className:s9("i i-errorAlert",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[Wl("title",{children:t}),Wl("desc",{children:e}),Wl("circle",{cx:"9",cy:"9",r:"9"}),Wl("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"})]}),sX=null,O2=({"aria-hidden":t,"aria-label":e="X mark",className:n,dataTestId:o="x-mark",desc:r,height:a="10",overrideStyle:i=!1,role:l="img",title:u,width:d="10"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:W()(n,{"i i-exMark":!i}),"data-testid":o,focusable:"false",height:a,role:l,viewBox:"0 0 10 10",width:d,xmlns:"http://www.w3.org/2000/svg",children:[u&&(0,s.jsx)("title",{children:u}),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"})]});var n9,Gl,o9;const oX=({title:t="Export",desc:e="Export",width:n="12",height:o="15",className:r,focusable:a="false"})=>n9("svg",{className:o9("i i-export",r),focusable:a,height:o,viewBox:"0 0 12 15",width:n,children:[Gl("title",{children:t}),Gl("desc",{children:e}),Gl("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),Gl("rect",{height:"2",width:"10",x:"1",y:"12"})]}),rX=null,D2=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="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:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),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"})]}),r9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="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:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),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"})]});var a9,Kl,i9;const cX=({title:t="No File",desc:e="Paper icon with one corner bent inwards",width:n="40",height:o="50",className:r,focusable:a="false"})=>a9("svg",{className:i9("i i-fileNone",r),focusable:a,height:o,viewBox:"0 0 40 50",width:n,children:[Kl("title",{children:t}),Kl("desc",{children:e}),Kl("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"}),Kl("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"})]}),lX=null,c9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="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:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),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"})]}),l9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="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:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),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"})]}),d9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="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:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),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"})]}),u9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="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:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),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"})]}),h9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="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:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),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"})]});var m9,_l,p9;const fX=({title:t="More",desc:e="Filled caret pointing right",width:n="7",height:o="5",className:r,focusable:a="false"})=>m9("svg",{className:p9("i i-filledChevronRight",r),focusable:a,height:o,viewBox:"0 0 5 7",width:n,children:[_l("title",{children:t}),_l("desc",{children:e}),_l("g",{children:_l("path",{d:"M4 3.625L1 1v5.25z",strokeLinecap:"round",strokeLinejoin:"round"})})]}),vX=null,M0=({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:W()("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"})]});var f9,O0;const CX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:l="16"})=>f9("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&O0("title",{children:i}),o&&O0("desc",{children:o}),O0("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"})]}),xX=null;var v9,D0,g9;const bX=({title:t="Flashcard Block",desc:e="Flashcard Block",width:n="16",height:o="15",className:r,focusable:a="false"})=>v9("svg",{className:g9("i i-flashcard-block",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[D0("title",{children:t}),D0("desc",{children:e}),D0("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"})]}),yX=null;var B2,C9;const LX=t=>B2(C9,{viewBox:"0 0 15 15",...t,children:B2("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"})}),EX=null;var x9,H2,b9;function SX(t){return x9(b9,{...t,viewBox:"0 0 16 14",children:[H2("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"}),H2("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"})]})}var y9,Ql,L9;const TX=({title:t="Folder Empty",desc:e="Folder outline empty",width:n="47",height:o="47",className:r,focusable:a="false"})=>y9("svg",{className:L9("i i-folder--empty",r),focusable:a,height:o,viewBox:"0 0 47 47",width:n,children:[Ql("title",{children:t}),Ql("desc",{children:e}),Ql("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"}),Ql("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"})]}),IX=null;var E9,B0,S9;const NX=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="24",height:o="24",className:r,focusable:a="false"})=>E9("svg",{className:S9("i",r),focusable:a,height:o,viewBox:"0 0 24 24",width:n,children:[B0("title",{children:t}),B0("desc",{children:e}),B0("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"})]}),jX=null;var T9,H0,I9;const kX=({title:t="FolderSort",desc:e="Sort by Folders",width:n="13",height:o="13",className:r,focusable:a="false"})=>T9("svg",{className:I9("i",r),focusable:a,height:o,viewBox:"0 0 13 13",width:n,children:[H0("title",{children:t}),H0("desc",{children:e}),H0("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"})]}),AX=null;var N9,F0,j9;const RX=({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"})=>N9("svg",{className:j9("i",r),focusable:a,height:o,viewBox:"0 0 35 27",width:n,children:[F0("title",{children:t}),F0("desc",{children:e}),F0("path",{d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z",fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2"})]}),PX=null;var k9,Zl,A9;const wX=t=>k9(A9,{...t,viewBox:"0 0 16 16",children:[Zl("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"}),Zl("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"}),Zl("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"}),Zl("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"})]}),MX=null;var R9,Yl,P9;const OX=({title:t="Group",desc:e="Silhouettes of two people",width:n="18",height:o="17",className:r,focusable:a="false"})=>R9("svg",{className:P9("i",r),focusable:a,height:o,viewBox:"0 0 18 17",width:n,children:[Yl("title",{children:t}),Yl("desc",{children:e}),Yl("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"}),Yl("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"})]}),DX=null;var F2,w9;function BX(t){return F2(w9,{viewBox:"0 0 20 14",...t,children:F2("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const z0=({className:t,decorative:e=!0,desc:n="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:i="Heart",width:l="16"})=>(0,s.jsxs)("svg",{"aria-hidden":e,className:W()(`i i-heart${a?"Filled":"Outline"}`,t),focusable:o,height:r,viewBox:"0 0 16 16",width:l,children:[(0,s.jsx)("title",{children:i}),(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"})]});var M9,V0,O9;const FX=({title:t="Hidden",desc:e="Eye crossed out",width:n="16",height:o="14",className:r=null,focusable:a="false"})=>M9("svg",{className:O9("i i-hidden",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[V0("title",{children:t}),V0("desc",{children:e}),V0("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"})]}),zX=null;var D9,U0,B9;const VX=({title:t="Image Block",desc:e="Image Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>D9("svg",{className:B9("i i-image-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[U0("title",{children:t}),U0("desc",{children:e}),U0("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"})]}),UX=null;var H9,$0,F9;const $X=({title:t="Labeled Graphic Block",desc:e="Labeled Graphic Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>H9("svg",{className:F9("i i-labeled-graphic-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[$0("title",{children:t}),$0("desc",{children:e}),$0("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"})]}),WX=null;var z9,Xl,V9;const GX=({title:t="Label Set",desc:e="Label Set",width:n="17",height:o="17",className:r,focusable:a="false"})=>z9("svg",{className:V9("i i-labelSet",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[Xl("title",{children:t}),Xl("desc",{children:e}),Xl("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"}),Xl("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"})]}),KX=null;var U9,W0,$9;function _X(t){return U9($9,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...t,children:[W0("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"}),W0("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),W0("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"})]})}var W9,G0;const QX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:l="16"})=>W9("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&G0("title",{children:i}),o&&G0("desc",{children:o}),G0("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"})]}),ZX=null;var G9,K0,K9;const YX=({title:t="Lesson",desc:e="Lesson Icon",width:n="23",height:o="17",className:r,focusable:a="false"})=>G9("svg",{className:K9("i i-lesson",r),focusable:a,height:o,viewBox:"0 0 23 17",width:n,children:[K0("title",{children:t}),K0("desc",{children:e}),K0("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"})]}),XX=null;var _9,_0,Q9;const JX=t=>_9(Q9,{...t,viewBox:"0 0 16 16",children:[_0("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"}),_0("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"}),_0("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"})]}),qX=null;var Z9,Q0,Y9;const eJ=({title:t="List Block",desc:e="List Block",width:n="16",height:o="13",className:r,focusable:a="false"})=>Z9("svg",{className:Y9("i i-list-block",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[Q0("title",{children:t}),Q0("desc",{children:e}),Q0("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"})]}),tJ=null;var X9,Jl;const sJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r,role:a="img",title:i,width:l})=>X9("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&Jl("title",{children:i}),o&&Jl("desc",{children:o}),Jl("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"}),Jl("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"})]}),nJ=null;var z2,J9;function oJ(t){return z2(J9,{viewBox:"0 0 20 22",...t,children:z2("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"})})}var q9,ql,e8;const rJ=({title:t="Mail",desc:e="Mail",width:n="14",height:o="12",className:r,focusable:a="false"})=>q9("svg",{className:e8("i",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[ql("title",{children:t}),ql("desc",{children:e}),ql("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"}),ql("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"})]}),aJ=null,t8=({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:W()("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"})]});var s8,uc,n8;const cJ=({title:t="Move to Folder",desc:e="Folder with an arrow",width:n="15",height:o="15",className:r,focusable:a="false"})=>s8("svg",{className:n8("i i-move",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[uc("title",{children:t}),uc("desc",{children:e}),uc("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"}),uc("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),uc("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"})]}),lJ=null,o8=({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:W()("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"})]}),r8=({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:W()("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"})]});var a8,Z0,i8;const hJ=({"aria-hidden":t,title:e="New Folder",desc:n="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:i="false"})=>a8("svg",{"aria-hidden":t,className:i8("i i-newFolder",a),focusable:i,height:r,viewBox:"0 0 14 14",width:o,children:[e&&Z0("title",{children:e}),Z0("desc",{children:n}),Z0("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"})]}),mJ=null;var c8,ed,l8;const pJ=({title:t="New Slide",desc:e="New Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>c8("svg",{className:l8("i i-new-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[ed("title",{children:t}),ed("desc",{children:e}),ed("path",{d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z",fillRule:"evenodd"}),ed("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"})]}),fJ=null;var d8,Y0,u8;const vJ=({title:t="Next Slide",desc:e="Next Slide",width:n="16",height:o="13.4",className:r,focusable:a="false"})=>d8("svg",{className:u8("i i-next-slide",r),focusable:a,height:o,viewBox:"0 0 16 13.4",width:n,children:[Y0("title",{children:t}),Y0("desc",{children:e}),Y0("path",{d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0",fillRule:"evenodd"})]}),gJ=null,h8=({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:W()("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"})]});var m8,V2;const xJ=({className:t})=>m8("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",children:[V2("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"}),V2("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"})]}),bJ=null;var p8,hc,f8;const yJ=({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"})=>p8("svg",{className:f8("i",r),focusable:a,height:o,viewBox:"0 0 20 16",width:n,children:[hc("title",{children:t}),hc("desc",{children:e}),hc("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"}),hc("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"}),hc("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"})]}),LJ=null;var v8,U2,g8;const EJ=t=>v8(g8,{viewBox:"0 0 16 16",...t,children:[U2("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"}),U2("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"})]}),SJ=null;var C8,X0,x8;const TJ=({title:t="Edit",desc:e="Pencil",width:n="11",height:o="11",className:r,focusable:a="false"})=>C8("svg",{className:x8("i i-pencil",r),focusable:a,height:o,viewBox:"0 0 10 10",width:n,children:[X0("title",{children:t}),X0("desc",{children:e}),X0("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"})]}),IJ=null;var b8,J0;const NJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:l="16"})=>b8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&J0("title",{children:i}),o&&J0("desc",{children:o}),J0("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"})]}),jJ=null;var y8,td,L8;const kJ=({title:t="Person",desc:e="Person outline",width:n="16",height:o="18",className:r,focusable:a="false"})=>y8("svg",{className:L8("i",r),focusable:a,height:o,viewBox:"0 0 16 18",width:n,children:[td("title",{children:t}),td("desc",{children:e}),td("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"}),td("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"})]}),AJ=null;class q0 extends h.Component{constructor(...e){super(...e),this.maskId=`person-unknown-mask-${Zt()()}`,this.pathId=`person-unknown-path-${Zt()()}`}render(){const{title:e="Person Unknown",desc:n,width:o="38",height:r="38",className:a,decorative:i,focusable:l="false"}=this.props;return(0,s.jsxs)("svg",{"aria-hidden":i,className:W()("i i-person-unknown",a),focusable:l,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 $2=({title:t="Pick One",desc:e="Pick One",width:n="16",height:o="14",className:r,focusable:a="false","aria-hidden":i})=>(0,s.jsxs)("svg",{"aria-hidden":i,className:W()("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"})]})]});var E8,sd,S8;const PJ=({title:t="Play",desc:e="Triangle facing right that will play the media",width:n="16",height:o="22",className:r,focusable:a="false"})=>E8("svg",{className:S8("i",r),focusable:a,height:o,viewBox:"0 0 16 22",width:n,children:[sd("desc",{children:e}),sd("title",{children:t}),sd("g",{transform:"translate(-124 -107)",children:sd("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"})})]}),wJ=null;var T8,e1,I8;const MJ=({title:t="Process Block",desc:e="Process Block",width:n="29",height:o="17",className:r,focusable:a="false"})=>T8("svg",{className:I8("i i-process-block",r),focusable:a,height:o,viewBox:"0 0 29 17",width:n,children:[e1("title",{children:t}),e1("desc",{children:e}),e1("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"})]}),OJ=null;function N8(t){return(0,s.jsxs)($s,{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"})]})}var j8,t1,k8;const DJ=({title:t="Quiz",desc:e="Quiz Icon",width:n="25",height:o="25",className:r,focusable:a="false"})=>j8("svg",{className:k8("i i-quiz",r),focusable:a,height:o,viewBox:"0 0 25 25",width:n,children:[t1("title",{children:t}),t1("desc",{children:e}),t1("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"})]}),BJ=null;var W2,A8;const HJ=t=>W2(A8,{...t,viewBox:"0 0 10 13",children:W2("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"})}),FJ=null;var R8,G2,P8;function zJ(t){return R8(P8,{viewBox:"0 0 15 14",...t,children:[G2("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"}),G2("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"})]})}var K2,w8;function VJ(t){return K2(w8,{viewBox:"0 0 28 28",...t,children:K2("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"})})}var M8,s1;const UJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:l="16"})=>M8("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&s1("title",{children:i}),o&&s1("desc",{children:o}),s1("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"})]}),$J=null;function O8(t){return(0,s.jsx)($s,{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"})})}var _2,D8;const WJ=({width:t="16",height:e="16",className:n})=>_2("svg",{"aria-hidden":"true",className:D8("i i-search",n),fill:"currentColor",focusable:"false",height:e,viewBox:"0 0 15.6 14.7",width:t,children:_2("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"})}),GJ=null;var Q2,B8;const KJ=t=>Q2(B8,{...t,viewBox:"0 0 15 15",children:Q2("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"})}),_J=null;var H8,mc,F8;const QJ=({title:t="Share Folder",desc:e="Share folder",width:n="14",height:o="14",className:r,focusable:a="false"})=>H8("svg",{className:F8("i",r),focusable:a,height:o,viewBox:"0 0 14 14",width:n,children:[mc("title",{children:t}),mc("desc",{children:e}),mc("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"}),mc("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"}),mc("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),ZJ=null;var Z2,z8;const YJ=t=>Z2(z8,{viewBox:"0 0 16 16",...t,children:Z2("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"})}),XJ=null;var V8,pc,U8;const JJ=({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"})=>V8("svg",{className:U8("i i-sortable",r),focusable:a,height:o,viewBox:"0 0 22 7",width:n,children:[pc("title",{children:t}),pc("desc",{children:e}),pc("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"0"}),pc("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"3"}),pc("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"6"})]}),qJ=null;var $8,n1,W8;const eq=({title:t="Sorting Block",desc:e="Sorting Block",width:n="22",height:o="15",className:r,focusable:a="false"})=>$8("svg",{className:W8("i i-sorting-block",r),focusable:a,height:o,viewBox:"0 0 22 15",width:n,children:[n1("title",{children:t}),n1("desc",{children:e}),n1("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"})]}),tq=null;var Y2,Ua,G8;const sq=({title:t="Spinner",desc:e="Hollow circle fading from transparent to gray",width:n="21",height:o="20",className:r,focusable:a="false"})=>Y2("svg",{className:G8("i i-spinner",r),focusable:a,height:o,viewBox:"0 0 21 20",width:n,children:[Ua("title",{children:t}),Ua("desc",{children:e}),Ua("defs",{children:Y2("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:[Ua("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),Ua("stop",{offset:"100%",stopColor:"#979797"})]})}),Ua("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)"})]}),nq=null;var X2,nd,K8;const oq=({title:t="SquareIcon",desc:e="Outline of a square",width:n="30",height:o="30",className:r,focusable:a="false"})=>X2("svg",{className:K8("i i-square-outline",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[nd("title",{children:t}),nd("desc",{children:e}),X2("g",{fill:"none",fillRule:"evenodd",children:[nd("rect",{className:"overlay",fill:"none",fillRule:"evenodd",height:"28",rx:"2",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"}),nd("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"})]})]}),rq=null;var J2,Qr,_8;const o1="overlay",aq=({title:t="Stack",desc:e="Three horizontal bars stacked",width:n="30",height:o="30",className:r,focusable:a="false"})=>J2("svg",{className:_8("i i-stack",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[Qr("title",{children:t}),Qr("desc",{children:e}),J2("g",{fill:"none",fillRule:"evenodd",children:[Qr("rect",{className:o1,height:"8.824",rx:"1",width:"30"}),Qr("rect",{className:o1,height:"8.824",rx:"1",width:"30",y:"10.588"}),Qr("rect",{className:o1,height:"8.824",rx:"1",width:"30",y:"21.176"}),Qr("rect",{fill:"#FFF",fillOpacity:"0.63",height:"8.824",rx:"1",width:"30"}),Qr("rect",{fill:"#FFF",fillOpacity:"0.4",height:"8.824",rx:"1",width:"30",y:"10.588"})]})]}),iq=null;var q2,Q8;function cq(t){return q2(Q8,{viewBox:"0 0 16 16",...t,children:q2("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 Z8,od,Y8;const lq=({title:t="Success",desc:e="Checkmark with a circle",width:n="51",height:o="51",className:r=null,focusable:a="false"})=>Z8("svg",{className:Y8("i",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[od("title",{children:t}),od("desc",{children:e}),od("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"}),od("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"})]}),dq=null;var X8,r1,J8;const uq=({title:t="Text Block",desc:e="Text Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>X8("svg",{className:J8("i i-text-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[r1("title",{children:t}),r1("desc",{children:e}),r1("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"})]}),hq=null;var ep,rd,q8;const mq=({title:t="Text Slide",desc:e="Text Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>ep("svg",{className:q8("i i-text-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[rd("title",{children:t}),rd("desc",{children:e}),ep("g",{fillRule:"evenodd",children:[rd("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"}),rd("path",{d:"M4 8h8v2H4z"})]})]}),pq=null;var e7,a1,t7;const fq=({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"})=>e7("svg",{className:t7("i",r),focusable:a,height:o,viewBox:"0 0 17 11",width:n,children:[a1("title",{children:t}),a1("desc",{children:e}),a1("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"})]}),vq=null;function s7(t){return(0,s.jsxs)($s,{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"})]})}var n7,i1,o7;const gq=({title:t="Remove",desc:e="Trash can",width:n="10",height:o="13",className:r=null,focusable:a="false"})=>n7("svg",{className:o7("i i-trash",r),focusable:a,height:o,viewBox:"0 0 10 13",width:n,children:[i1("title",{children:t}),i1("desc",{children:e}),i1("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"})]}),Cq=null;var r7,c1,a7;const xq=({title:t="Trash Folder",desc:e="Solid trash can",width:n="16",height:o="17",className:r,focusable:a="false"})=>r7("svg",{className:a7("i i-trashFolder",r),focusable:a,height:o,viewBox:"0 0 16 17",width:n,children:[c1("title",{children:t}),c1("desc",{children:e}),c1("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"})]}),bq=null;var i7,$a;const yq=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:l="14"})=>i7("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&$a("title",{children:i}),o&&$a("desc",{children:o}),$a("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"}),$a("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"}),$a("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"}),$a("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"})]}),Lq=null;var c7,l1,l7;const Eq=({title:t="Remove",desc:e="Trash can",width:n="13.3",height:o="16",className:r,focusable:a="false"})=>c7("svg",{className:l7("i",r),focusable:a,height:o,viewBox:"0 0 13.3 16",width:n,children:[l1("title",{children:t}),l1("desc",{children:e}),l1("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"})]}),Sq=null;var d7,ad,u7;const Tq=({title:t="Upload",desc:e="Upload icon",width:n="15",height:o="15",className:r="",focusable:a="false"})=>d7("svg",{className:u7("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[ad("title",{children:t}),ad("desc",{children:e}),ad("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"}),ad("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"})]}),Iq=null;var h7,fc;const Nq=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="14",role:a="img",title:i,width:l="14"})=>h7("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&fc("title",{children:i}),o&&fc("desc",{children:o}),fc("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"}),fc("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"}),fc("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"})]}),jq=null;var m7,id,p7;const kq=({title:t="UploadXml",desc:e="UploadXml",width:n="18",height:o="21",className:r,focusable:a="false"})=>m7("svg",{className:p7("i i-uploadXml",r),focusable:a,height:o,viewBox:"0 0 18 21",width:n,children:[id("title",{children:t}),id("desc",{children:e}),id("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"}),id("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"})]}),Aq=null;var f7,d1,v7;const Rq=({title:t="Video Block",desc:e="Video Block",width:n="17",height:o="13",className:r,focusable:a="false"})=>f7("svg",{className:v7("i i-video-block",r),focusable:a,height:o,viewBox:"0 0 17 13",width:n,children:[d1("title",{children:t}),d1("desc",{children:e}),d1("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"})]}),Pq=null;function g7(t){return(0,s.jsx)($s,{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"})})})}var C7,tp,x7;function wq(t){return C7(x7,{...t,viewBox:"0 0 14 10",children:[tp("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"}),tp("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"})]})}var sp,cd,b7;const Mq=({title:t="Visible",desc:e="Eye",width:n="16",height:o="12",className:r=null,focusable:a="false"})=>sp("svg",{className:b7("i i-visible",r),focusable:a,height:o,viewBox:"0 0 16 12",width:n,children:[cd("title",{children:t}),cd("desc",{children:e}),sp("g",{children:[cd("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"}),cd("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),Oq=null,y7=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="20",role:a="img",title:i="",style:l,width:u="20"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:W()("i i-xMarkFilled",n),focusable:"false",height:r,role:a,style:l,viewBox:"0 0 20 20",width:u,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),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 L7=c(62947),np=c.n(L7),E7=c(27863),vc=c.n(E7),S7=c(28275),fs=c.n(S7),T7=c(22969),I7=c.n(T7),N7=c(42699),j7=c.n(N7);const k7=fs()(np()({}),I7()(["first_name","last_name"]),vc()(" "),j7()),A7=({className:t,decorative:e,size:n,...o})=>{const r=os()(["avatars","medium"],o),a=e?"":k7(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)(q0,{decorative:e,height:n,title:a,width:n})};var R7=c(31673);const ne=(0,R7.setup)({el:"__",mod:"--",modValue:"-"}),P7=`${(0,qe._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,ld=ne("cover");function w7(){const{certificateDownload:t,riseComCurrentUser:e}=kt(),n=(0,nt.useLabelsMap)(),o=a4(),a=Gr()?.quizPassed??!0;return!(o&&a&&!(0,qe.Wk)())||window.viewType==="preview"?null:(0,s.jsxs)("div",{className:ld("completed-info"),children:[(0,s.jsxs)("div",{className:ld("completed-info-avatar"),children:[(0,s.jsx)(A7,{...e,decorative:!0}),(0,s.jsx)("img",{alt:"",className:ld("completed-info-trophy"),src:P7})]}),(0,s.jsxs)("div",{className:ld("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)($o,{})]})}var M7=c(35847),eo=c.n(M7);const u1=t=>{if(!t)return"";const e=eo()(t),n=eo()(),o=eo()(n).add(24,"hours");return e.isBefore(n)?"Overdue":e.isBefore(o)?`Due in ${n.to(e,!0)}`:`Due ${e.format("MMM D")}`},op=t=>eo()(t).isSameOrBefore(eo()().add(3,"d"),"days");function O7(t){return function({Default:n,className:o,...r}){const a=`brand--${t}`,i=o?`${o} ${a}`:a;return(0,s.jsx)(n,{...r,className:i})}}const Wa=O7("ui"),h1=t=>t==="<p><br></p>"?"":t;var rp=c(91162);const m1="data-change-path",p1="data-l10n-id",ap=(t,e)=>{if(t)return e?["l10n","translations",e,t.getAttribute(p1)]:JSON.parse(t.getAttribute(m1))};let Qo;const D7=()=>{const t=Ga();t&&t.classList.add("selected")},dd=()=>{Ga()&&Qo&&gc(Qo)},B7=(t,e)=>n=>{const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(p1)):o.find(a=>a.getAttribute(m1));r!=null&&(t&&Qo!==r&&(Qo=r,t(ap(r,e))),gc(r))},H7=(t,e)=>n=>{n.stopPropagation(),n.preventDefault();const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(p1)):o.find(a=>a.getAttribute(m1));if(r){gc(r),cp();const a=ap(r,e);a&&(t(a),D7())}},f1=()=>document.getElementById("target-container"),Ga=()=>document.getElementById("target-highlight"),ip=()=>{if(f1())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)},cp=()=>{const t=Ga();t&&t.classList.add("selected")},F7=({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+20,e=e-20,n=n+40),{top:t,left:e,width:n,height:o}},gc=t=>{const{top:e,left:n,width:o,height:r}=F7(t.getBoundingClientRect()),a=Ga();a&&(t!==Qo&&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`}),Qo=t)},z7=()=>{window.removeEventListener("scroll",dd,{capture:!0}),ud()},ud=()=>{Ga()?.classList?.remove("active"),Ga()?.classList?.remove("selected")};let Ka,hd;const V7=({locale:t})=>({isActive:e},n)=>{const o=!!f1();if(e){if(Ka)return Ka;ip();const r=B7(n,t);let a;return Ka=new Promise((i,l)=>{a=H7(i,t),hd=l,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",ud,!0),window.addEventListener("scroll",dd,!0)}).finally(()=>{Ka=null,hd=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",ud,!0),window.removeEventListener("scroll",dd,!0)}),Ka}else ud(),f1()?.remove(),Qo=null;return o&&hd!=null&&hd(new Error("cancelled")),Promise.resolve()},U7=t=>{let e=t.findIndex(n=>n==="items");return e===-1?t:t.slice(0,e+2)},lp=t=>{const e=(0,rp.Ce)(t);return e?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(U7(t))}']`):null},$7=t=>{ip(),window.addEventListener("scroll",dd,{capture:!0}),document.body.classList.add("target-mode");const e=lp(t);e&&gc(e)},W7=t=>{if(!Ka)return;const e=lp(t);e&&(Qo!==e&&(Qo=e),gc(e),cp(),e.scrollIntoView({behavior:"smooth",block:"center"}))},G7=t=>["course",t],dp=(t,e)=>["lessons",{id:t},e],K7=(t,e)=>[...dp(t,"items"),{id:e}],_a=t=>JSON.stringify(G7(t)),up=(t,e)=>JSON.stringify(dp(t,e)),_7=(t,e)=>JSON.stringify(K7(t,e)),an={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"},Qa=(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],i=a==="items"?e.shift():a.replace(/s$/,"");n[`${i??"item"}Id`]=r.id}}return n};var Ce=c(8466),at=c(58358);function v1(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,i=n.removeEventListener??n.removeListener;return a.call(n,"change",l),()=>i.call(n,"change",l);function l(){r(n.matches)}},[n]),o}const Q7="matches";function Z7(t,e,n,o="withPxToEmMedia"){return r=>{function a(i){const l=v1(t,e);return(0,s.jsx)(r,{...i,[n??Q7]:l})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function Ns(t){return v1("max-width",t-1)}function Hq(t){return v1("min-width",t)}function Y7(t,e,n){return Z7("min-width",t,e,n)}const X7=()=>Ns(1200),J7=()=>Ns(768),g1=()=>Ns(480),C1=ne("cover");function q7(t,e,n){return t===1?e:n}function ex(){const t=(0,Ce.v1)(),e=(0,Ce.vU)(),n=q7(t,e?.coverLesson||"Lesson",e?.coverLessons||"Lessons");return(0,s.jsxs)("li",{className:C1("num-lessons"),role:"listitem",children:[(0,s.jsx)("span",{className:C1("num-lessons-value"),children:t}),"\xA0",(0,s.jsx)("span",{className:C1("num-lessons-units"),children:n})]})}const tx=36e5,x1=ne("cover");function sx(t){return Math.round(10*t)/10}function hp(t,e,n){return t===1?e:n}function nx(){const{showTimeToComplete:t,timeToComplete:e}=(0,Ce.DX)(),n=(0,Ce.vU)();if(!t)return null;const o=e>=tx,r=o?sx(eo().duration(e).asHours()):eo().duration(e).asMinutes(),a=o?hp(r,n?.coverHour||"Hour",n?.coverHours||"Hours"):hp(r,n?.coverMinute||"Minute",n?.coverMinutes||"Minutes");return(0,s.jsxs)("li",{className:x1("time-to-complete"),role:"listitem",children:[(0,s.jsx)("span",{className:x1("time-to-complete-value"),children:r}),"\xA0",(0,s.jsx)("span",{className:x1("time-to-complete-units"),children:a})]})}const b1=ne("cover");function y1(){const t=(0,Ce.vU)();return Ge.BI?(0,s.jsxs)("section",{className:b1("course-length-section"),children:[(0,s.jsx)("h2",{className:b1("course-length-title"),children:t?.a11yCoverCourseLength||"Course Length"}),(0,s.jsxs)("ul",{className:b1("course-length-list"),role:"list",children:[(0,s.jsx)(ex,{}),(0,s.jsx)(nx,{})]})]}):null}const ox=ne("cover"),rx="MMMM D, YYYY";function mp({format:t=rx}){const{publishedAt:e}=(0,Ce.DX)(),n=(0,Ce.vU)(),o=ox("details-content-published-at");if(!e)return null;const r=eo()(e);return r.isValid()?(0,s.jsxs)("div",{className:o,children:[n?.coverPublished||"Published"," ",r.format(t)]}):null}var ax=c(74975),Cc=c.n(ax);const pp=Cc()(async()=>(await c.e("math").then(c.bind(c,69366))).browserAdaptor(),{promise:!0}),fp=Cc()(async()=>{const[{TeX:t},{AllPackages:e}]=await Promise.all([c.e("math").then(c.t.bind(c,21278,23)),c.e("math").then(c.bind(c,29119))]);return new t({packages:e})}),vp=Cc()(async()=>{const t=await c.e("math").then(c.t.bind(c,75278,23));return new t.SVG({fontCache:"local"})},{promise:!0}),gp=Cc()(async()=>{const[t,e,n,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([pp(),fp(),vp(),c.e("math").then(c.bind(c,54455)),c.e("math").then(c.bind(c,94977))]);return o(t),r.document(document,{InputJax:e,OutputJax:n})},{promise:!0}),ix=Cc()(async t=>{const e=new CSSStyleSheet;t.adoptedStyleSheets.push(e);const[n,o]=await Promise.all([vp(),gp()]),r=n.styleSheet(o);r instanceof HTMLStyleElement&&await e.replace(r.innerText)},{promise:!0});class cx extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=ix(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([gp(),pp(),fp(),this._ready]);if(e.signal.aborted)return;r.reset();const{tex:a}=this,i=a.includes("begin{")?a:String.raw`\begin{align*}${a}\end{align*}`,l=n.convert(i),u=o.firstChild(l),d=document.evaluate("//@data-mjx-error",u,null,XPathResult.STRING_TYPE).stringValue;if(d.length>0){let m=d;if(d===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 lx("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:m}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(u);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)>0).join(`

`);this.firstElementChild.ariaLabel=e.trim().length===0?null:e}}customElements.define("rise-math",cx);class lx extends CustomEvent{}var to=c(67009),ws=c(38835),dx=c(274),md=c.n(dx);function Cp(t){if(t==null)return{value:t};let e;if(typeof t=="string"?e=t:e=t.innerHTML,!e.includes("data-editor-id"))return{value:t};const n=e.match(/^<[^>]+data-editor-id=["']([^"']+)["'][^>]*>/);if(n){const o=n[1],r=e.match(/^<[^>]*>(.*)<\/[^>]*>$/s),a=r?r[1]:e;return{editorId:o,value:typeof t=="string"?a:t}}return{value:t}}var so=c(65259);const xp=(t="")=>t.split(".").slice(-2).join("."),bp=$e()(xp,Ge._$),ux=t=>t.includes("#/lessons/"),Mn=t=>{if(!t||hx(t)||ux(t))return!1;t.slice(0,2)==="//"&&(t=`https:${t}`);try{const{hostname:e}=new URL(t),n=xp(e);return n!==bp("ARTICULATE_DOMAIN")&&n!==bp("RISE_DOMAIN")}catch{return!1}},hx=t=>t?t.slice(0,7)==="mailto:":!1,mx=t=>t.includes("rise.articulate")&&t.includes("/authoring/")&&t.includes("/lesson");var mt=c(67382),Ot=c(82980);const L1=ne("external-link-disabled-popover");function pd(t={}){const{delay:e=200}=t,n=h.useRef(new Map),o=h.useCallback(l=>{const u=n.current.get(l);u&&clearTimeout(u);const d=setTimeout(()=>{const m=`trial-external-link-popover-${l}`;Ot.ArcPopover.handlePopover(m,"show"),n.current.delete(l)},e);n.current.set(l,d)},[e]),r=h.useCallback(l=>{const u=n.current.get(l);u&&clearTimeout(u);const d=setTimeout(()=>{const m=`trial-external-link-popover-${l}`;Ot.ArcPopover.handlePopover(m,"hide"),n.current.delete(l)},e);n.current.set(l,d)},[e]),a=h.useCallback(l=>{const u=`trial-external-link-popover-${l}`;Ot.ArcPopover.handlePopover(u,"show")},[]),i=h.useCallback(l=>{const u=`trial-external-link-popover-${l}`;Ot.ArcPopover.handlePopover(u,"hide")},[]);return h.useEffect(()=>{const l=n.current;return()=>{l.forEach(u=>clearTimeout(u)),l.clear()}},[]),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}}function px(t){return e=>{const{handleMouseEnter:n,handleMouseLeave:o,handleFocus:r,handleBlur:a}=pd(),i=h.useId();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t,{...e,attachmentId:i,onLinkBlur:a,onLinkFocus:r,onLinkMouseEnter:n,onLinkMouseLeave:o}),e.externalLinksDisabled&&(0,s.jsx)(fd,{anchorId:i})]})}}const fd=({anchorId:t})=>{const e=`trial-external-link-popover-${t}`;return h.useEffect(()=>{const n=o=>{o.key==="Escape"&&Ot.ArcPopover.handlePopover(e,"hide")};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e]),(0,s.jsx)(Ot.ArcPopover,{alternateAnchorId:t,anchorAt:"top-center",boundary:"flip",className:L1(),hasTail:!0,headerSlot:(0,s.jsx)("div",{className:L1("header"),children:"Subscribe to unlock full access"}),hidePopoverButton:!0,id:e,offset:8,popover:"manual",variant:"common",children:(0,s.jsx)("div",{className:L1("content"),children:"To protect learners from phishing, scams, or malicious redirects, external links are disabled when sharing with Quick Share during your trial."})})},fx=({allowTabNavigation:t=!0,className:e="","data-testid":n,externalLinksDisabled:o,id:r,ref:a,tagName:i="div",value:l})=>{const u=(0,Ce.vU)(),d=(0,h.useRef)(null),m=(0,at.QQ)(l),[p,f]=(0,h.useState)([]),{handleMouseEnter:v,handleMouseLeave:C,handleFocus:g,handleBlur:b}=pd(),L=(0,h.useMemo)(()=>{const y=(0,so.aj)(m),E=Array.prototype.concat(Sx,Tx,xx,Cx,o?bx:[],t?Lx:yx,Ex(u?.a11yNoticeLinkNewTab));return vx(E,y)},[t,o,u,m]);return(0,h.useLayoutEffect)(()=>{if(!o||!d.current){f([]);return}const y=[];d.current.querySelectorAll("[data-tooltip-target]").forEach((x,S)=>{const T=x.nextElementSibling;if(T?.hasAttribute("data-external")){const N=T.getAttribute("data-external-text")||"",j=T.getAttribute("data-external-id")||`link-${S}`;y.push({placeholder:x,text:N,id:j})}}),f(y)},[L,o]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{"aria-hidden":t?void 0:!0,className:`${e} brand--linkColor`,"data-l10n-id":(0,Et.pP)(l),"data-testid":n,id:r,ref:y=>{d.current=y,typeof a=="function"?a(y):a&&(a.current=y)},children:(0,h.createElement)(i,{className:"fr-view rise-tiptap",dangerouslySetInnerHTML:(0,h.useMemo)(()=>({__html:L}),[L])})}),p.map(({placeholder:y,text:E,id:x})=>(0,s.jsxs)(h.Fragment,{children:[(0,to.createPortal)((0,s.jsx)("span",{id:x,onBlur:()=>b(x),onFocus:()=>g(x),onMouseEnter:()=>v(x),onMouseLeave:()=>C(x),role:"button",style:{cursor:"pointer",color:"var(--arc-color-text-disabled)",textDecoration:"underline"},tabIndex:0,children:E}),y),(0,s.jsx)(fd,{anchorId:x})]},x))]})};function vx(t,e){const n=document.createElement("div");n.innerHTML=e;for(const o of t)o(n);return n.innerHTML}const gx=t=>t.startsWith("#/lessons/");function Cx(t){for(const e of t.querySelectorAll("a")){gx(e.getAttribute("href")||"")?e.removeAttribute("target"):e.setAttribute("target","_blank");const o=new Set((e.getAttribute("rel")??"").split(/\s+/));o.delete("opener"),o.add("noopener"),o.add("noreferrer"),o.add("nofollow"),e.setAttribute("rel",Array.from(o).join(" "))}}function xx(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 bx(t){let e=0;const n=[];for(const o of t.querySelectorAll("a"))if(Mn(o.href)){const r=o.textContent||"",a=`external-link-anchor-${Date.now()}-${e++}`;o.removeAttribute("href"),o.removeAttribute("rel"),o.removeAttribute("target"),o.setAttribute("data-external",""),o.setAttribute("data-external-text",r),o.setAttribute("data-external-id",a),o.setAttribute("role","button"),o.style.display="none";const i=document.createElement("span");i.setAttribute("data-tooltip-target",""),o.parentNode?.insertBefore(i,o),n.push({placeholder:i,text:r,id:a})}return n}function yx(t){for(const e of t.querySelectorAll("a"))e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}function Lx(t){for(const e of t.querySelectorAll("a"))e.removeAttribute("aria-hidden"),e.hasAttribute("data-external")?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}function Ex(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 Sx(t){return Cp(t).value}function Tx(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 Ix=md()({externalLinksDisabled:os()(["course","externalLinksDisabled"]),courseColors:t=>{const{course:e}=t,{colorAccent:n}=e?.theme||{},o=(0,mt.WA)(n);return[...e?.theme?.colors||k.B4,n,o]}}),St=(0,ws.Ls)(Ix)(fx),yp=ne("cover");function Nx(){const t=(0,Ce.DX)(),e=X7(),n=(0,at.QQ)(t.description);if(!n)return null;const o=_a("description"),r=(0,gs.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:yp("details-content-section"),children:[e?(0,s.jsx)(y1,{}):(0,s.jsx)(mp,{}),(0,s.jsx)(St,{className:yp("details-content-description"),value:h1(n)},"text")]})})}function jx({Default:t,...e}){const{dueAt:n}=e,r=n&&op(n)?"brand--background":"brand--color";return(0,s.jsx)(t,{...e,className:r})}var Lp=c(85849);function On(t){const{to:e,children:n}=t,o=(0,te.zy)(),r=(0,h.useMemo)(()=>(0,Lp.B)(e,o),[o,e]);return(0,s.jsx)(te.N_,{...t,to:r,children:n})}const kx=({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)(On,{onClick:n,ref:a,to:o,...r,children:t}),Ax=(0,h.forwardRef)(kx);class cn{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}}function Rx(){return!(typeof document>"u"||!("startViewTransition"in document)||cn.isFirefox)}function Px(t){if(!Rx()){const e=t();return Promise.resolve(e)}return new Promise(e=>{try{document.startViewTransition(async()=>{await t()}).finished.then(()=>e()).catch(()=>e())}catch{const n=t();Promise.resolve(n).then(()=>e()).catch(()=>e())}})}let E1=!1;function Zo(t,e="default"){return E1?Promise.resolve():(E1=!0,Px(()=>{document.documentElement.classList.add(`transition-${e}`),t()}).then(()=>{document.documentElement.classList.remove(`transition-${e}`)}).finally(()=>{E1=!1}))}const Ep=ne("cover"),Zs=At("CoverAction",()=>{const{trackingQuizId:t}=(0,Ce.DX)(),e=(0,Lt.Z)(),n=window.viewType==="preview",o=(0,Ce._z)(),r=(0,Ce.MT)(),a=(0,Ce.Sd)(),i=o?.id,l=(0,Ge.Wk)()?a===100:(0,Ge.As)(),u=r!=null,d=u?r:i,m=!n&&Ge.BI&&(l||!u&&!t),{courseCTALabel:p}=(0,Ce.cN)({isCourseComplete:l,percentCourseComplete:a}),f=W()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":m}),v=C=>{C.preventDefault(),Zo(()=>{e((0,es.p1)(d))},"cover-to-lesson")};return p?(0,s.jsx)("div",{className:Ep("header-content-action-wrapper"),children:(0,s.jsx)(Ax,{className:f,onClick:v,to:(0,es.p1)(d),children:(0,s.jsx)("span",{className:Ep("header-content-action-link-text"),children:p})})}):null});var wx=c(52887),ur=c.n(wx),Gt=c(43407);const xc=ur()("partner-content-course-author__"),Mx=({partnerContentAuthors:t,darkText:e,isImage:n,learn:o,lesson:r,isOnePage:a,selectedContentId:i})=>{const l=xs()(It()("id",i),t),u=os()(["data","authors"],l),m=(r?u:t).filter(g=>g.name),p=W()(xc("author-container"),{[xc("author-container-padding-top")]:e}),f=W()({[xc("gray-text")]:!o&&!a}),v=W()(xc("author-image")),C=g=>`url(${(0,Gt.ny)({width:"76",height:"76",imageKey:g.image})})`;return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,s.jsx)("ol",{className:p,"data-testid":"partner-content-course-author-container",role:"list",children:m.map(g=>(0,s.jsxs)("li",{className:xc("author"),"data-testid":"partner-content-course-author",role:"listitem",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:v,"data-testid":"partner-content-course-author-image",disabled:n,style:{backgroundImage:C(g)}}),(0,s.jsx)("span",{className:f,children:g.name})]},g.name))})]})},Za=ne("cover"),Ox=()=>{const t=(0,Ce.UG)();if(t==null)return null;const{avatar:e,authorName:n,title:o}=t;return(0,s.jsxs)("div",{className:Za("author-with-title"),children:[(0,s.jsx)(Sp,{avatar:e}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:Za("author-name"),children:n}),(0,s.jsx)("div",{className:Za("author-title"),children:o})]})]})},Sp=({avatar:t})=>{const e=Za("header-content-authors-avatar");return t?(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${(0,Ge.o1)(t)})`}}):(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",children:(0,s.jsx)(q0,{decorative:!0})})},So=At("CoverAuthors",({className:t})=>{const{color:e,partnerContentId:n,selectedAuthorId:o,theme:r,themeId:a}=(0,Ce.DX)(),{accentContrast:i,coverPageType:l}=r??{},{authorName:u,avatar:d}=(0,Ce.UG)()??{},m=(0,Ce.vU)(),p=(0,Ce.hM)(),f=!!n&&!!p,C=Ns(768)&&(0,Rt.yL)(a,l),g=l===k.BL.LEFT_OVERLAY||l===k.BL.CENTERED_OVERLAY||C;if(o==="none")return null;const b=u||"Unknown User",L=Za("header-content-authors").mix(t),y=Za("header-content-authors-name");return f?(0,s.jsx)("div",{className:L,"data-testid":"cover-authors",children:(0,s.jsx)(Mx,{accentContrast:i,color:e,isImage:g,learn:!0,partnerContentAuthors:p})}):(0,s.jsxs)("div",{className:L,"data-testid":"cover-authors",children:[(0,s.jsx)(Sp,{avatar:d,isImage:g}),(0,s.jsxs)("div",{className:y,"data-testid":"cover-header-content-authors-name",children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:m?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:b})]})]})}),Dx=ne("cover"),Dn=At("CoverContentNoImage",({children:t})=>{const e=Dx("header-content");return(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content",children:t})});var Ys=c(84722);const Zr=t=>{const e=(0,Ce.DX)(),n=(0,at.gY)();return Bx(e,t,n)},Bx=(t,e,n)=>{const{media:o,alpha:r}=e==="coverImage"?(0,Ys.dM)(t,n):(0,Ys.LI)(t,n),a="image"in o?(0,Ys.I6)(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:(0,Ys.Vx)(a)}},Hx=ne("cover"),S1=()=>{const t=(0,Ce.dT)(),{alpha:e,ariaLabel:n,media:o,role:r}=Zr("coverImage"),a=Hx("header-image"),i=(0,Rt.b9)({alpha:e,color:t,media:o});return(0,s.jsx)("div",{"aria-label":n,className:a,role:r,style:i})},Fx=ne("cover"),T1=({children:t})=>{const e=(0,Ce.dT)(),n=`overlay-${e.toLowerCase()}`,o=Fx("header-content",{[n]:!!e});return(0,s.jsxs)("div",{className:o,"data-testid":"cover-header-content",children:[t,(0,s.jsx)(S1,{})]})},zx=ne("cover"),bc=({hasOverlay:t=!1})=>{const{alpha:e,ariaLabel:n,media:o,role:r}=Zr("coverImage"),a=(0,Rt.b9)({alpha:e,hasOverlay:t,media:o}),i=zx("header-graphic",{"dot-com":Ge.BI});return(0,s.jsx)("div",{"aria-label":n,className:i,"data-testid":"cover-header-graphic",role:r,style:a})},Vx=ne("cover");function Xs({children:t}){const e=!!(0,Ce.Bd)(),n=Vx("header-content-info",{rbc:e,"rise-com":Ge.BI});return(0,s.jsx)("div",{className:n,"data-testid":"cover-header-content-info",children:t})}var Ux=c(15648);function $x(t,e){const n=(0,Ys.sg)(t.src),o=t.width&&t.height&&!n,r=o?"async":void 0,a=o?"lazy":void 0,i=o?t.width:void 0,l=o?t.height:void 0;return(0,s.jsx)("img",{...t,decoding:r,height:l,loading:a,ref:e,width:i})}const I1=Ux.forwardRef($x),Wx={ImageEagerOrLazy:I1},Tp=Object.assign((0,h.createContext)(Wx),{displayName:"BundleContext"});function Gx({children:t,...e}){return(0,s.jsx)(Tp.Provider,{value:e,children:t})}function Kx(){return null}function Ya(t){function e(n,o){const a=(0,h.useContext)(Tp)[t]??Kx;return(0,s.jsx)(a,{ref:o,...n})}return e.displayName=`BundleComponent(${t})`,(0,h.forwardRef)(e)}const Ms=Ya("CoverProgress"),_x=ne("cover"),Js=At("CoverTitle",()=>{const t=(0,Ce.DX)(),e=(0,at.QQ)(t.title),n=_x("header-content-title"),o=_a("title"),r=(0,gs.uW)(t.title)?{"data-l10n-id":t.title.l10nId}:{"data-change-path":o};return(0,s.jsx)("h1",{...r,className:n,"data-testid":"cover-header-content-title",tabIndex:-1,children:e})}),Qx={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function Ip(){const t=(0,Ce.DX)(),e=J7(),n=t?.theme?.coverPageType||"CENTERED";return e?Qx[n]??n:n}const Zx=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(T1,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Ms,{}),(0,s.jsx)(Zs,{})]})})}),Yx=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Ms,{}),(0,s.jsx)(Zs,{})]})})}),Xx=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(bc,{}),(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Ms,{}),(0,s.jsx)(Zs,{})]})})]}),Jx=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Ms,{}),(0,s.jsx)(Zs,{})]})}),(0,s.jsx)(bc,{})]});function qx(){switch(Ip()){default:case k.BL.LEFT_OVERLAY:case k.BL.CENTERED_OVERLAY:return(0,s.jsx)(Zx,{});case k.BL.LEFT:case k.BL.CENTERED:return(0,s.jsx)(Yx,{});case k.BL.SPLIT_LEFT_IMAGE:case k.BL.TWO_THIRDS_LEFT_IMAGE:return(0,s.jsx)(Jx,{});case k.BL.SPLIT_RIGHT_IMAGE:case k.BL.TWO_THIRDS_RIGHT_IMAGE:return(0,s.jsx)(Xx,{})}}function eb(){return(0,s.jsx)("header",{className:"cover__header","data-testid":"cover-header",children:(0,s.jsx)(qx,{})})}var tb=c(3899),Xa=c.n(tb),sb=c(15648);const nb=ne("cover");function ob({children:t}){const e=(0,Ce.DX)(),{themeId:n}=e?.theme??{},o=Ip(),r=sb.useMemo(()=>Xa()(o),[o]),a=nb({layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var I=c(61022),Qe=c.n(I),rb=c(21343),Ws=c.n(rb),ab=c(15983),N1=c.n(ab);const hr=({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[i,l]of Object.entries(n))r.setAttribute(i,l);return r};var Np=c(15648);class ib extends Np.Component{static propTypes={id:Qe().any.isRequired,lessonProgress:Qe().object.isRequired,type:Qe().string.isRequired,items:Qe().array};refProgressWrap=Np.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=hr()}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 i=r.getBoundingClientRect().top+o,l=n>i;this.state.isSticky!==l&&this.setState({isSticky:l})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=Ws()(-1,"activeIndex",n),r=ps()(e);return o===-1?0:kn()(o)===r?100:N1()("%","",os()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=Ws()(0,"activeIndex",n),r=ps()(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 Ws()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return Ws()(0,"percentComplete",e)}}render(){const{type:e,items:n}=this.props,{isSticky:o}=this.state,r=W()("progress-wrap",{}),a=W()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),i=W()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),l=this.progressValue(),u=e==="timeline"&&n&&n.map(m=>{const p=W()("progress__marker",{"progress__marker--active brand--background":parseInt(l)>=parseInt(m.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:p,style:{left:m.linePosition}},m.id)}),d=(0,s.jsx)("div",{className:r,children:(0,s.jsx)("div",{className:i,children:(0,s.jsxs)("div",{className:"progress__container",children:[(0,s.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${l}% * var(--dir-x)),0px,0px)`}}),u]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[d,(0,to.createPortal)((0,s.jsx)("div",{className:a,children:d}),this.portal)]})}}const j1=ne("lesson-header"),To=At("LessonHeaderAuthor",({avatar:t,authorName:e,className:n=""})=>{const o=(0,Ce.vU)();return(0,s.jsxs)("div",{className:`lesson-header__author ${n}`,children:[(0,s.jsx)("img",{alt:"",className:"lesson-header__author-img",src:(0,Ge.o1)(t)}),(0,s.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,s.jsx)("span",{className:"lesson-header__author-name",children:e})]})}),yc=({showPartnerContent:t=!1})=>(0,s.jsx)("div",{className:j1("author",{"partner-content":t})}),Io=()=>(0,s.jsx)("div",{className:"lesson-header__counter"}),No=({lessonName:t,lessonPreposition:e,totalLessons:n,lessonNumber:o,showPartnerContent:r=!1})=>{const{lmsOptions:a}=(0,Ce.DX)();return(0,s.jsx)("div",{className:j1("counter",{"partner-content":r}),children:(0,s.jsx)("div",{className:j1("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${t} ${o} ${e} ${n}`})})},Yr=({description:t})=>(0,s.jsx)(St,{className:"lesson-header__description",value:t}),cb=({children:t})=>(0,s.jsx)("div",{className:"lesson-header__grouped-row",children:t}),lb=({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})]}),jo=({title:t,id:e})=>{const n=up(e,"title");return(0,s.jsx)("h1",{className:"lesson-header__title","data-change-path":n,tabIndex:-1,children:(0,s.jsx)(St,{value:t})})},db=t=>{const{authorName:e,avatar:n,color:o,description:r,labels:a,lessonHeaderStyle:i,lessonId:l,lessonNumber:u,partnerContentAuthors:d,showAuthor:m,showLessonCount:p,title:f,totalLessons:v}=t,{lessonName:C,lessonPreposition:g}=a,b=E=>`url(${(0,Gt.ny)({width:"76",height:"76",imageKey:E.image})})`,L=i===k.xj.TINT?{color:o}:null,y=n&&e&&m&&!d;return(0,s.jsxs)("div",{className:"lesson-header",children:[(0,s.jsxs)("div",{className:"lesson-header__top-wrap",style:L,children:[(0,s.jsx)(jo,{id:l,title:f}),d&&(0,s.jsx)("div",{className:"lesson-header__partner-content",children:d.map(E=>(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(E)}}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:a?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:E.name})]})]},E.name))}),(0,s.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[y?(0,s.jsx)(To,{authorName:e,avatar:n}):(0,s.jsx)(yc,{}),p?(0,s.jsx)(No,{lessonName:C,lessonNumber:u,lessonPreposition:g,totalLessons:v}):(0,s.jsx)(Io,{})]})]}),r&&(0,s.jsx)(Yr,{description:r})]})};class Zq extends h.Component{static propTypes={authorName:Qe().string,avatar:Qe().string,description:Qe().string,showLessonCount:Qe().bool,steps:Qe().number,title:Qe().string.isRequired,type:Qe().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)(db,{...this.props})})})}),h.Children.map(e,n=>n&&n.type!==ib?null:n)]})})}}const mr=ne("lesson-header"),jp=t=>`url(${(0,Gt.ny)({width:"76",height:"76",imageKey:t?.image})})`,k1=({partnerContentAuthors:t})=>{const e=t.map(o=>o.name).join(", "),n=t.length===1;return(0,s.jsxs)("div",{className:mr("partner-content",{mobile:!0}),children:[(0,s.jsx)("div",{className:mr("partner-content-author",{single:n}),children:t.map(o=>(0,s.jsx)("div",{className:mr("partner-content-author-img",{single:n}),style:{backgroundImage:jp(o)}},o.name))}),(0,s.jsx)("span",{"aria-hidden":"true",className:mr("author-name"),children:e})]})},Ja=({partnerContentAuthors:t})=>{const e=(0,Ce.vU)();return(0,s.jsx)("div",{className:mr("partner-content"),children:t.map(n=>(0,s.jsxs)("div",{className:mr("partner-content-author"),children:[(0,s.jsx)("div",{className:mr("partner-content-author-img"),style:{backgroundImage:jp(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:mr("author-name"),tag:"span",children:n.name})]})]},n.name))})};var kp=c(15648);const qa=ne("lesson-header"),ub=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&l,v=e&&t&&l&&!f,C=v||f||u,g=u&&(v||f);return(0,s.jsxs)("div",{className:qa("content"),children:[C&&(0,s.jsxs)("div",{className:qa("info-row"),children:[v?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)(yc,{}),f&&(0,s.jsx)(Ja,{partnerContentAuthors:i}),g&&(0,s.jsx)("span",{"aria-hidden":"true",className:qa("info-row--divider"),children:"|"}),u?(0,s.jsx)(No,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Io,{})]}),(0,s.jsxs)("div",{className:qa("title-wrapper",{"no-info":!C}),children:[(0,s.jsx)(jo,{id:p,title:d}),n&&(0,s.jsx)(Yr,{description:n})]})]})},hb=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,v=kp.useMemo(()=>e&&t&&l&&!f,[e,t,l,f]);return(0,s.jsxs)("div",{className:qa("content"),children:[u?(0,s.jsx)(No,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Io,{}),v&&(0,s.jsx)(To,{authorName:t,avatar:e}),l&&f&&(0,s.jsx)(k1,{partnerContentAuthors:i}),(0,s.jsx)(jo,{id:p,title:d}),n&&(0,s.jsx)(Yr,{description:n})]})},mb=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,v=kp.useMemo(()=>e&&t&&l&&!f,[e,t,l,f]);return(0,s.jsxs)("div",{className:qa("content"),children:[u?(0,s.jsx)(No,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Io,{}),(0,s.jsx)(jo,{id:p,title:d}),v?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)(yc,{showPartnerContent:f}),l&&f&&(0,s.jsx)(Ja,{partnerContentAuthors:i}),n&&(0,s.jsx)(Yr,{description:n})]})};function pb(t){const e=g1();return t.lessonHeaderSize===k.OX.SMALL&&!e?(0,s.jsx)(ub,{...t}):e?(0,s.jsx)(hb,{...t}):(0,s.jsx)(mb,{...t})}const ei=t=>t===k.AY.FLOATING||t===k.AY.FLOATING_FULL;function Xr(){const t=(0,ws.LY)(({course:{buttonNavigationStyle:n}})=>n);return Ns(480)&&t===k.AY.FLOATING?k.AY.FLOATING_FULL:t}function A1({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 Ap({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 ti=Ya("LessonNav"),Rp=ne("lesson-nav");function fb({allowTooltip:t,courseFinishLabel:e,onFocus:n,nextLesson:o,restrictionData:r,restrictionType:a,ref:i}){const l=o?.id,u=Xr(),d=ei(u),m=d?A1:Ap;return(0,s.jsxs)(ti,{allowTooltip:t,direction:"next",finish:!0,isFloating:d,navLessonId:l,onFocus:n,ref:i,restrictionData:r,restrictionType:a,children:[(0,s.jsx)("span",{className:Rp("link-text").mix("brand--ui"),children:e}),(0,s.jsx)(m,{className:Rp("link-icon")})]})}const Pp=ne("lesson-nav");function vb({allowTooltip:t,lessonNameLabel:e,nextLesson:n,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:i,restrictionType:l}){const u=n?.id,d=Xr(),m=ei(d),f=(0,Rt.GG)(n)&&u,v=(0,at.QQ)(n?.title)||"",C=m?A1:Ap,g=f?`${e} ${o} - `:"",b=m&&f?`${e} ${o}`:`${g}${v}`;return(0,s.jsxs)(ti,{allowTooltip:t,direction:"next",isFloating:m,navLessonId:u,onFocus:r,ref:a,restrictionData:i,restrictionType:l,children:[(0,s.jsx)("span",{className:Pp("link-text").mix("brand--ui"),children:b}),(0,s.jsx)(C,{className:Pp("link-icon")})]})}function wp({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 gb({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 vd=ne("lesson-nav");function Cb({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:i,ref:l}){const u=a?.id,d=Xr(),m=ei(d),f=(0,Rt.GG)(a)&&u,v=(0,at.QQ)(a?.title)||n,C=m?wp:gb,g=f?`${o} ${i} - ${v}`:v,b=f&&m?`${o} ${i}`:g;return(0,s.jsx)(ti,{allowTooltip:t,className:e,direction:"previous",isFloating:m,navLessonId:u,onFocus:r,ref:l,children:m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:vd("link-text").mix("brand--ui"),children:b}),(0,s.jsx)(C,{className:vd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C,{className:vd("link-icon")}),(0,s.jsx)("span",{className:vd("link-text").mix("brand--ui"),children:b})]})})}var ss=c(87899),xb=c(41580);function bb({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:l,value:u=0}){const d=(0,h.useRef)(null),m=`mask-${(0,xb.A)()}`,p=(100-u)/100*(2*a);return(0,ss.A)("transitionend",r,d.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:u===0?100:p})})}),(0,s.jsx)("circle",{className:t,cx:e,cy:n,fill:"none",mask:`url(#${m})`,r:a,ref:d,strokeLinecap:i,strokeWidth:l})]})}const R1=bb;function yb({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:l,transform:u,value:d=0}){const m=(0,h.useRef)(null),p=Math.PI*(Number(o)-Number(l)),f=p*(100-d)/100;return(0,ss.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:i,strokeWidth:l,transform:u})}const Mp=yb;var lt=c(13054),P1=c(15648);const{COMPACT:Lb,COVER:Eb,OVERLAY:Sb,SIDEBAR:Tb}=lt.by,Lc=ne("progress-circle");function Ib({"aria-hidden":t,"aria-label":e,isCurrent:n,isFailed:o,isPassed:r,scope:a,value:i}){const[l,u]=P1.useState(i===100),d=(0,Me.A)(i),{theme:m}=(0,Ce.DX)(),p=m?.progressIndicatorStyle??k.Y2.THEME_DEFAULT,f=a===Eb,v=a===Sb,C=p===k.Y2.THEME_DEFAULT,g=p===k.Y2.CIRCULAR_FILL,b=p===k.Y2.INCOMPLETE_COMPLETE,L=Lc({compact:a===Lb,cover:f,current:n,sidebar:a===Tb,overlay:v}),y=Lc("track",{"circular-fill":!v&&g,"incomplete-complete":f&&b}),E=Lc("runner",{"circular-fill":g,done:l,failed:o,passed:r,unstarted:i===0}),x=Lc("pass",{done:l,visible:r}),S=Lc("fail",{done:l,visible:o}),T=P1.useMemo(()=>g||i===100?i:0,[g,i]);return P1.useEffect(()=>{if(i!==100&&d===100)u(!1);else if(i===100&&!l&&!b){const N=setTimeout(()=>u(!0),300);return clearTimeout.bind(null,N)}else i===100&&!l&&b&&u(!0)},[l,b,d,i]),(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:L,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)"}),C?(0,s.jsx)(Mp,{className:E,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:i}):(0,s.jsx)(R1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:T}),(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:S,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 w1=(0,h.createContext)(null);w1.displayName="CourseNavContext";function Nb(t){const{children:e,isCourseNavOpen:n}=t;return(0,s.jsx)(w1.Provider,{value:{isCourseNavOpen:n},children:e})}function jb(){return(0,h.useContext)(w1)}const Op=960;function Ec(){return Ns(Op)}function kb(){const t=(0,Ce.DX)(),e=Ec(),n=(0,Ce.SQ)();return(0,Rt.L3)({course:t,isMobile:e,search:n})}function Ab(){const t=(0,Ce.DX)(),e=Ec();return(0,Rt.IO)({course:t,isMobile:e})}var Dp=c(15648);class Rb extends Dp.Component{refProgressWrap=Dp.createRef();timeoutScroll;portal;constructor(e){super(e),this.state={isSticky:!1},this.portal=hr()}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 i=r.getBoundingClientRect().top+o,l=n>i&&n>0;this.state.isSticky!==l&&this.setState({isSticky:l})};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:i}=this.state,l=W()("progress-wrap",{}),u=r,d=r&&a,m=W()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":i&&!d,"lesson--open":u&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&d&&!this.isLessonPreview()}),p=W()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),f=this.progressValue(),v=e==="timeline"&&n&&n.map(g=>{const b=W()("progress__marker",{"progress__marker--active brand--background":parseInt(String(f))>=parseInt(g.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:b,style:{left:g.linePosition}},g.id)}),C=(0,s.jsx)("div",{className:l,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)`}}),v]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[C,(0,to.createPortal)((0,s.jsx)("div",{"aria-hidden":"true",className:m,children:C}),this.portal)]})}}const Pb=t=>{const e=kb(),{isCourseNavOpen:n}=jb()??{},o=Ns(480);return(0,s.jsx)(Rb,{...t,isCourseNavOpen:n,isMobile:o,sidebarAvailable:e})},wb=Wa,Mb=Wa,Ob=Wa,Db=Wa,Bb=Wa,Hb=Wa;function Is({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 Fb(t){return(0,s.jsxs)(Is,{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 zb({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 Vb(t){return(0,s.jsx)(Is,{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 Ub(t){return(0,s.jsx)(Is,{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 $b(t){return(0,s.jsx)(Is,{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 Wb(t){return(0,s.jsxs)(Is,{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 no=c(2924);function Bp(t){const e=(0,no.QD)(t,["Default"]);return(0,s.jsx)($s,{...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 gd(t){const e=(0,no.QD)(t,["Default"]);return(0,s.jsxs)($s,{...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 Gb(t){return(0,s.jsx)(Is,{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 Kb(t){return(0,s.jsx)(Is,{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 _b(t){return(0,s.jsxs)(Is,{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 Qb(t){return(0,s.jsxs)(Is,{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 Zb(t){return(0,s.jsx)(Is,{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 Yb=ne("cover"),Cd=At("CoverDetailsSection",({children:t,type:e})=>(0,s.jsx)("section",{className:Yb("details-content-section",{type:e}),children:t}));var Xb=c(7641),Bn=c.n(Xb),Jb=c(82275),Yo=c.n(Jb),qb=c(80259),si=c.n(qb),ey=c(36403),ty=c.n(ey),sy=c(88028),ny=c.n(sy),oy=c(66570),Hp=c.n(oy),ry=c(5018),ay=c.n(ry),iy=c(1544),Fp=c.n(iy),cy=c(43191),Sc=c.n(cy),ly=c(49145),ni=c.n(ly),dy=c(15647),zp=c.n(dy),uy=c(16643),M1=c.n(uy),hy=c(7689),O1=c.n(hy),my=c(16791),Jr=c.n(my),Tc=c(26488),qs=c(59043),py=c(23890);const fy=Fp()(ur()),Vp=t=>e=>`${t}/${e.id}`,vy=(t,e)=>md()({data:(0,Tc.action)(e),method:"POST",url:(0,qs.rq)(fy(`/${e}`),Ct()("url"),t),...Us()(["headers","withCredentials"],t)}),gy=t=>(e,n)=>ty()(e,Vp(n),D1(t,n)),Cy=t=>fs()(gt()({},["response","data"]),O1()(Ct()("type"),(0,Tc.error)(t))),xy=(t,e)=>n=>t.postRequest?t.postRequest(e,n):n,Up=t=>e=>n=>o=>(0,qs.Ve)(o,vy(e,n),t,Hp()(Cy(n),Jr()(Sc()("data"),Ct()("data"))),ay()(ni()(Ct()("error"),si().Rejected,si().of)),xy(e,{type:n,payload:o})),by=({url:t,method:e,data:n,headers:o})=>{if(cn.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(zp()("data"))},yy=si().fromPromise(by),D1=M1()(3,Up(py.Em)),Ly=M1()(3,Up(yy)),Ey=t=>(e,n)=>ny()(e,Vp(n),D1(t,n)),Sy=t=>({debounce:gy(t),send:D1(t),fetchWithKeepAlive:Ly(t),throttle:Ey(t)}),Ty=`${(0,Ge._$)("RISE_RUNTIME_URI")}/ducks`,Iy=Sy({headers:()=>({"x-rise-authoring-client":"d2b5a5f7a74b209c80cd959de306d50c3d416c19"}),postRequest:(t,e)=>e,url:Ty,withCredentials:!0});var Ny=c(27471),jy=c.n(Ny);const ky=jy()({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 Ay=c(8851),Ic=c(13945);const Ry=ur()("rise/track/")("TRACK"),Py=t=>({...t,context:{locale:navigator.language,device:(0,Ic.Pf)(),channel:(0,Ic.c)(),userAgentData:(0,Ic.NO)(),page:(0,Ic.WE)(),userAgent:(0,Ic.$t)(),...t.context}}),wy=(t,e)=>({...t,properties:{...(0,Ay.yV)(e),...t.properties}}),$p=t=>(e,n)=>{const o=n(),r=(0,Ve.kn)();let a=Py(t);return a=wy(a,o),a.userId=a.userId??r,a.author=a.author??r,Ge.BI&&(a=ky(a)),e(Iy.send(Ry)(a))},en=ur()("partner-content-book-info__"),My=t=>{const{authors:e,backgroundColor:n,bookImage:o,bookTitle:r,buyLink:a,block:i,publishedAt:l,track:u,trackingInfo:d}=t,m=e.filter(N=>!ls()(N.name)),p=Bn()(N=>N.name,m),f=p.length>1?vc()(" & ",p):p[0],v=f.slice(-1)==="s"?"":"s",C=(0,mt.cP)(n),g=W()({[en("book-image-block")]:i&&!C},{[en("book-image-block")&&en("dark-theme-book-image")]:i&&C},{[en("book-image-course")]:!i}),b=en(i?"flex-block":"flex-course"),L=en(i?"image-container-block":"image-container-course"),y=W()(en("small-text"),{[en("dark-theme")]:C}),E=W()(en("black-text"),{[en("dark-theme")]:C}),x=W()(en("button"),{[en("dark-theme-button")]:C}),S=(0,Gt.ny)({height:"210",width:"140",imageKey:o}),T=(0,h.useCallback)(()=>{Ge.BI&&l&&u({event:"Click Tracked",payload:Yo()(d,{type:"Buy Link"})})},[l,u,d]);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:L,children:o?(0,s.jsx)("img",{alt:"",className:g,src:S}):(0,s.jsx)("div",{className:g})}),(0,s.jsxs)("div",{className:en("text-container"),children:[(0,s.jsxs)("p",{className:y,children:["From ",f,"'",v]}),(0,s.jsx)("p",{className:E,children:r}),(0,s.jsx)("a",{className:x,href:a,onClick:T,rel:"noopener noreferrer",target:"_blank",children:"Buy the book"})]})]})},Oy={track:$p},Wp=(0,ws.Ls)(null,Oy)(My),Hn=ur()("partner-content-partner-info__"),Dy=({backgroundColor:t,block:e,link:n,publishedAt:o,track:r,trackingInfo:a})=>{const i=e?(0,Gt.H5)():(0,Gt.DB)(),l=Hn(e?"nbic-logo-light-bulb":"nbic-logo"),u=Hn(e?"block-logo-container":"logo-container"),d=(0,mt.cP)(t),m=W()(Hn("small-text"),{[Hn("dark-theme")]:d}),p=W()(Hn("black-text"),{[Hn("dark-theme")]:d}),f=W()(Hn("button"),{[Hn("dark-theme-button")]:d}),v=(0,h.useCallback)(()=>{Ge.BI&&o&&r({event:"Click Tracked",payload:Yo()(a,{type:"Partner Link"})})},[o,r,a]);return(0,s.jsxs)("section",{className:Hn("flex"),children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:u,children:(0,s.jsx)("img",{alt:"",className:l,src:i})}),(0,s.jsxs)("div",{className:Hn("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:v,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},By={track:$p},Gp=(0,ws.Ls)(null,By)(Dy),oi=ur()("partner-content-author-card__"),Kp=t=>{const{courseId:e,partnerContent:n,publishedAt:o,tenantId:r}=t,{data:a,type:i}=n,{authors:l,bookImage:u,bookTitle:d,buyLink:m,internalId:p,nbicLink:f}=a,v=l.filter(y=>y.name),C={courseId:e,partnerContentId:n.id,partnerContentInternalId:p,tenantId:r,contentSubtype:i},g=W()(oi("flex"),oi("author-container")),b=y=>(0,Gt.ny)({width:"122",height:"122",imageKey:y}),L=(y,E)=>(0,s.jsx)("div",{"aria-hidden":"true",className:oi("image-container"),children:y?(0,s.jsx)("img",{alt:E,className:oi("author-image"),src:b(y)}):(0,s.jsx)("div",{className:oi("author-image")})});return(0,s.jsxs)("ol",{className:"partner-content-author-card","data-testid":"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"}),v.map(y=>(0,s.jsxs)("li",{className:g,children:[L(y.image,y.name),(0,s.jsx)("p",{className:oi("author-name-text"),children:y.name})]},y.name))]})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Wp,{authors:l,bookImage:u,bookTitle:d,buyLink:m,publishedAt:o,trackingInfo:C})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Gp,{link:f,publishedAt:o,trackingInfo:C})})]})},Hy=ne("cover");function Fy(t){const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t;if(!r)return null;const l=Hy("details-content-aside",{logo:o});return(0,s.jsx)("div",{className:l,children:(0,s.jsx)(Cd,{type:"partner-content",children:(0,s.jsx)(Kp,{courseId:e,partnerContent:n,publishedAt:a,tenantId:i})})})}var zy=c(1710),xd=c.n(zy);const Vy=ne("cover"),Uy=At("CoverDetailsContentHeading",({className:t="",type:e,...n})=>{const o=xd()(["Default"],n);return(0,s.jsx)("header",{...o,className:Vy("details-content-heading",{type:e}).mix(t)})}),$y=ne("cover");function Wy({children:t,title:e,type:n}){const o=(0,Ce.DX)(),{description:r,media:a,partnerContentId:i}=o,l=!!i,d=(a&&"image"in a?a.image?.key:null)!=null,p=n==="outline"?r?!d&&!l?"outline-no-logo":l&&!d?"outline-has-partner-content":l&&d?"outline-has-pc-and-logo":"outline":"outline-no-description":n;return(0,s.jsxs)("section",{className:$y("details-content-section",{type:p}),children:[(0,s.jsx)(Uy,{type:n,children:(0,s.jsx)("h2",{children:e})}),t]})}const Gy=ne("cover");function Nc(){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:Gy("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 Ky=()=>Ns(480),_y=()=>Ns(768),Qy={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function _p(){const t=(0,Ce.DX)(),e=_y(),n=t?.theme?.coverPageType||"CENTERED";return e?Qy[n]??n:n}const Zy=ne("cover"),Yy=()=>null,Xy=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(T1,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(Ms,{}),(0,s.jsx)(Nc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Zs,{})]})})}),Jy=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(Ms,{}),(0,s.jsx)(Nc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Zs,{})]})})}),qy=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(bc,{}),(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(Ms,{}),(0,s.jsx)(Nc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Zs,{})]})})]}),eL=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(Ms,{}),(0,s.jsx)(Nc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Zs,{})]})}),(0,s.jsx)(bc,{})]}),tL=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(Ms,{}),(0,s.jsx)(Nc,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Zs,{})]})}),(0,s.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,s.jsx)(bc,{})})]});function sL(){switch(_p()){default:case"CENTERED_IMAGE":return(0,s.jsx)(tL,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,s.jsx)(Jy,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,s.jsx)(eL,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,s.jsx)(qy,{});case"CENTERED_OVERLAY":return(0,s.jsx)(Xy,{})}}function nL(){return(0,s.jsxs)("header",{className:Zy("header",{meta:!1}),"data-testid":"cover-header",children:[(0,s.jsx)(sL,{}),(0,s.jsx)(h.Suspense,{children:(0,s.jsx)(Yy,{})})]})}var oL=c(15648);const rL=ne("cover");function aL({children:t}){const e=(0,Ce.DX)(),{themeId:n}=e?.theme??{},o=_p(),r=oL.useMemo(()=>Xa()(o),[o]),a=rL(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var Qp=c(15648);const B1=ne("lesson-header"),iL=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:l,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null&&i,f=e&&t&&i&&!p,v=f||p||l,C=l&&(f||p);return(0,s.jsxs)("div",{className:B1("content"),children:[v&&(0,s.jsxs)("div",{className:B1("info-row"),children:[f?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)(yc,{}),p&&(0,s.jsx)(Ja,{partnerContentAuthors:a}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:B1("info-row--divider"),children:"|"}),l?(0,s.jsx)(No,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(Io,{})]}),(0,s.jsx)("div",{children:(0,s.jsx)(jo,{id:m,title:u})})]})},cL=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:l,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null,f=Qp.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[l?(0,s.jsx)(No,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(Io,{}),f&&(0,s.jsx)(To,{authorName:t,avatar:e}),i&&p&&(0,s.jsx)(k1,{partnerContentAuthors:a}),(0,s.jsx)(jo,{id:m,title:u})]})},lL=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:l,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null,f=Qp.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[f?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)(yc,{}),i&&p&&(0,s.jsx)(Ja,{partnerContentAuthors:a}),(0,s.jsx)(jo,{id:m,title:u}),l?(0,s.jsx)(No,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(Io,{})]})};function dL(t){const e=Ky();return t.lessonHeaderSize===k.OX.SMALL&&!e?(0,s.jsx)(iL,{...t}):e?(0,s.jsx)(cL,{...t}):(0,s.jsx)(lL,{...t})}var H1=c(15648);const{COMPACT:uL,COVER:hL,OVERLAY:mL,SIDEBAR:pL}=lt.by,ri=ne("progress-circle");function fL({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,l]=H1.useState(a===100),u=(0,Me.A)(a),{theme:d}=(0,Ce.DX)(),m=d?.progressIndicatorStyle??k.Y2.THEME_DEFAULT,p=r===hL,f=r===mL,v=m===k.Y2.THEME_DEFAULT,C=m===k.Y2.CIRCULAR_FILL,g=m===k.Y2.INCOMPLETE_COMPLETE,b=ri("default",{failed:n,passed:o}),L=ri({compact:r===uL,cover:p,overlay:f,sidebar:r===pL}),y=ri("track",{"circular-fill":!f&&C,"incomplete-complete":p&&g}),E=ri("fill",{"circular-fill":C,done:i,failed:n,passed:o,unstarted:a===0}),x=ri("pass",{done:i,visible:o}),S=ri("fail",{done:i,visible:n}),T=H1.useMemo(()=>C||a===100?a:0,[C,a]);return H1.useEffect(()=>{if(a!==100&&u===100)l(!1);else if(a===100&&!i&&!g){const N=setTimeout(()=>l(!0),300);return clearTimeout.bind(null,N)}else a===100&&!i&&g&&l(!0)},[i,g,u,a]),(0,s.jsx)(s.Fragment,{children:v?(0,s.jsx)("svg",{"aria-hidden":t,"aria-label":e,className:b,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:L,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)(R1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:T}),(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:S,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 vL({Default:t,...e}){return(0,s.jsx)(t,{...e,hasOverlay:!1})}var gL=c(10199),jc=c.n(gL);const Zp=t=>e=>(t(e),e.preventDefault()),pr=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},ln=t=>e=>{t(e),e.preventDefault(),pr(e)};function bd(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 CL(t){return bd(t,{limit:1})[0]??null}function Yp(t,e){(0,h.useLayoutEffect)(()=>{let n=t.current;const o=bd(n);for(const r of o)r?.addEventListener("scroll",e);return()=>{for(const r of o)r?.removeEventListener("scroll",e)}},[e,t])}var ko=c(61943),xL=c(35567),dn=c.n(xL),bL=c(83050),fr=c.n(bL),yL=c(11048),qr=c.n(yL),LL=c(90258),vr=c.n(LL);const EL={keys:["End"],keyCode:ko.KEY_END},SL={keys:["Enter"],keyCode:ko.KEY_RETURN},TL={keys:["Home"],keyCode:ko.KEY_HOME},IL={keys:["Tab"],keyCode:ko.KEY_TAB},NL={keys:[" "],keyCode:ko.KEY_SPACE},jL={keys:["Escape","Esc"],keyCode:ko.KEY_ESCAPE},kL={keys:["ArrowUp"],keyCode:ko.KEY_UP},AL={keys:["ArrowDown"],keyCode:ko.KEY_DOWN},RL={keys:["ArrowLeft"],keyCode:ko.KEY_LEFT},PL={keys:["ArrowRight"],keyCode:ko.KEY_RIGHT},Ao=({keyCode:t,keys:e})=>n=>n.keyCode?n.keyCode===t:fr()(n.key,e),wL=t=>t.altKey||t.ctrlKey||t.metaKey,ML=Ao(EL),ea=Ao(SL),OL=Ao(TL),yd=Ao(IL),Ld=Ao(NL),un=Ao(jL),ta=Ao(kL),sa=Ao(AL),gr=Ao(RL),Cr=Ao(PL),ai=vr()(Ld,ea),ree=vr()(yd,ea),Xp=vr()(Cr,ta),Jp=vr()(gr,sa),qp=vr()(ta,sa),ef=Jr()(ai),tf=25,DL=qr()((t,e)=>{t.scrollTop!==0&&(e.preventDefault(),t.scrollTop-=tf)}),BL=qr()((t,e,n)=>{e&&(n.preventDefault(),t.scrollTop+=tf)}),HL=(t,e)=>n=>{const o=BL(t,e),r=DL(t);dn()([[sa,o],[ta,r]])(n)},Ed=ne("lesson-progress"),{COMPACT:F1,COVER:kc,OVERLAY:z1,SIDEBAR:Ac}=lt.by;function FL({canComplete:t,color:e,hasRestriction:n,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:i,isFailed:l,isLegacy:u=void 0,isPassed:d,isTooltipVisible:m,navigationStyle:p,onHideTooltip:f,onMarkComplete:v=void 0,onMarkReset:C=void 0,onShowTooltip:g,percentComplete:b,progressGraphic:L,scope:y,labels:E}){const x=(0,h.useRef)(),S=(0,h.useRef)(),T=(0,h.useRef)(),N=(0,h.useRef)(),{theme:{progressIndicatorStyle:j=k.Y2.THEME_DEFAULT}}=(0,Ce.DX)(),O=j===k.Y2.THEME_DEFAULT,D=Ed({compact:y===F1,cover:y===kc&&!u,"legacy-cover":y===kc&&u,inactive:n,overlay:y===z1,sidebar:y===Ac&&!u,"legacy-sidebar":y===Ac&&u,"theme-default":O}),B=Ed("graphic",{compact:y===F1,cover:y===kc&&!u,"legacy-cover":y===kc&&u,overlay:y===z1,sidebar:y===Ac&&!u,"legacy-sidebar":y===Ac&&u}),R=Ed("tooltip",{legacy:u}).toString(),H=(0,h.useCallback)(()=>{o?C?.():v?.()},[o,v,C]),w=(0,h.useCallback)(X=>{jc()(f)&&un(X)&&m&&f()},[f,m]),M=(0,h.useCallback)(()=>{clearTimeout(T.current),!n&&jc()(g)&&(S.current=setTimeout(g,600))},[n,g]),z=(0,h.useCallback)(()=>{clearTimeout(S.current),jc()(f)&&(T.current=setTimeout(f,150))},[f]),Z=(0,h.useCallback)(()=>{setTimeout(()=>{if(m){const X=x.current.getBoundingClientRect(),pe=N.current.offsetParent.getBoundingClientRect(),{height:Le,width:ke}=X,Be=X.left-pe.left,We=X.top-pe.top;Object.assign(N.current.style,{transform:`translate(${Be}px, ${We}px)`,width:`${ke}px`,height:`${Le}px`})}},0)},[m]);if((0,h.useLayoutEffect)(()=>Z(),[Z]),(0,ss.A)("resize",Z,window),(0,ss.A)("keydown",w,document),Yp(x,z),t){const X=Ge.BI&&b===100,pe=zL({labels:E,percentComplete:b,canReset:!X}),Le=!i||X,ke=Ed("action",{disabled:Le});return(0,s.jsx)("span",{className:D,"data-testid":"lesson-progress",children:(0,s.jsx)("button",{"aria-label":pe,className:ke,disabled:Le,onBlur:f,onClick:H,onFocus:g,type:"button",children:(0,s.jsxs)("span",{className:B,onMouseEnter:M,onMouseLeave:z,ref:x,children:[(0,s.jsx)(L,{"aria-hidden":"true",color:e,isCurrent:r,isDark:a,isFailed:l,isPassed:d,navigationStyle:p,scope:y,value:b}),i&&!n&&(0,s.jsx)(sf,{className:R,dark:a,ref:N,scope:y,visible:m,children:pe})]})})})}const Y=VL({labels:E,isFailed:l,percentComplete:b});return(0,s.jsx)("span",{className:D,"data-testid":"lesson-progress",children:(0,s.jsxs)("span",{className:B,onMouseEnter:M,onMouseLeave:z,ref:x,children:[(0,s.jsx)(L,{"aria-label":Y,color:e,isCurrent:r,isDark:a,isFailed:l,isPassed:d,navigationStyle:p,scope:y,value:b}),i&&!n&&(0,s.jsx)(sf,{className:R,dark:a,ref:N,scope:y,visible:m,children:Y})]})})}const sf=(0,h.forwardRef)((t,e)=>{const{children:n,className:o,dark:r,scope:a,visible:i}=t,l=(0,h.useMemo)(()=>ne(o),[o]),u=l({compact:a===F1,cover:a===kc,overlay:a===z1,sidebar:a===Ac,visible:i}),d=l("inner",{dark:r,light:!r}),m=(0,s.jsx)("div",{"aria-hidden":"true",onClick:pr,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:u,children:(0,s.jsx)("div",{className:d,children:n})})})});return(0,to.createPortal)(m,hr())});function zL({labels:t,canReset:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:i,progressPieClickToReset:l}=t;return o&&e?`${r}. ${l}`:n===100&&!e?r:n===0?`${a}. ${i}`:`${n}% ${r}. ${i}`}function VL({labels:t,isFailed:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:i}=t;return e?i:o?r:n===0?a:`${n}% ${r}`}const nf=h.memo(FL);function UL({color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:i,lessonTitle:l,navigationStyle:u,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:v,labels:C}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"overview-list-item__progress",children:(0,s.jsx)(nf,{canComplete:!1,color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:i,labels:C,navigationStyle:u,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:v})}),(0,s.jsx)("span",{className:"overview-list-item__title",children:l})]})}function $L(){return null}function of({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 WL(t){const e=(0,no.QD)(t,["Default"]);return(0,s.jsxs)($s,{...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 GL(t){const e=(0,no.QD)(t,["Default"]);return(0,s.jsx)($s,{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 rf(t){return(0,s.jsx)(Is,{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 af(t){const e=(0,no.QD)(t,["Default"]);return(0,s.jsxs)($s,{...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 cf(t){const e=(0,no.QD)(t,["Default"]);return(0,s.jsxs)($s,{...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 KL({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 _L(t){const e=(0,no.QD)(t,["Default"]);return(0,s.jsxs)($s,{...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 QL({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 ZL(t){const e=(0,no.QD)(t,["Default"]);return(0,s.jsxs)($s,{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 YL=()=>Ns(1200),XL=()=>Ns(768),V1=()=>Ns(480),lf=ne("cover");function JL(){const t=(0,Ce.DX)(),e=YL(),n=(0,at.QQ)(t.description);if(!n)return null;const o=_a("description"),r=(0,gs.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:lf("details-content-section"),children:[e&&(0,s.jsx)(y1,{}),(0,s.jsx)(St,{className:lf("details-content-description"),value:h1(n)},"text")]})})}const qL={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function U1(){const t=(0,Ce.DX)(),e=XL(),n=t?.theme?.coverPageType||"CENTERED";return e?qL[n]??n:n}function eE({Default:t,...e}){const n=U1(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(n);return(0,s.jsx)(t,{...e,reverseColumns:o})}const df=ne("cover");function Rc({accentColor:t,hasOverlay:e=!1,isShape:n=!1}){const{alpha:o,ariaLabel:r,media:a,role:i}=Zr("coverImage"),l=n?{backgroundColor:t}:(0,Rt.b9)({alpha:o,hasOverlay:e,media:a});return(0,s.jsx)("div",{className:df("header-graphic-container"),children:(0,s.jsx)("div",{"aria-label":r,className:df("header-graphic"),"data-testid":"cover-header-graphic",role:i,style:l})})}const uf=t=>(0,s.jsx)(Sd,{...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"})})}),hf=t=>(0,s.jsx)(Sd,{...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"})})}),mf=t=>(0,s.jsx)(Sd,{...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"})})}),pf=t=>(0,s.jsx)(Sd,{...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"})})}),tE={LEFT_OVERLAY:uf,LEFT:uf,CENTERED:hf,CENTERED_OVERLAY:hf,SPLIT_LEFT:mf,SPLIT_LEFT_IMAGE:mf,SPLIT_RIGHT:pf,SPLIT_RIGHT_IMAGE:pf},Sd=({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 na({className:t,coverPageType:e}){const n=e?tE[e]:null;return n?(0,s.jsx)(n,{className:t}):null}const ff=ne("cover"),ii=()=>(0,s.jsxs)("div",{className:ff("author-published-wrap"),children:[(0,s.jsx)(So,{}),(0,s.jsx)(mp,{})]}),sE=({coverPageType:t})=>{const e=V1();return(0,s.jsxs)(T1,{children:[(0,s.jsx)(na,{coverPageType:t}),(0,s.jsxs)(Xs,{children:[!e&&(0,s.jsx)(Ms,{}),(0,s.jsx)(ii,{}),(0,s.jsx)(Js,{}),e&&(0,s.jsx)(Ms,{}),(0,s.jsx)(Zs,{})]})]})},nE=({coverPageType:t})=>{const e=V1();return(0,s.jsxs)(Dn,{children:[(0,s.jsx)(na,{coverPageType:t}),(0,s.jsxs)(Xs,{children:[!e&&(0,s.jsx)(Ms,{}),(0,s.jsx)(ii,{}),(0,s.jsx)(Js,{}),e&&(0,s.jsx)(Ms,{}),(0,s.jsx)(Zs,{})]})]})},oE=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(na,{coverPageType:t}),(0,s.jsx)(Rc,{}),(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(Ms,{}),(0,s.jsx)(ii,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Zs,{})]})})]}),rE=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(Ms,{}),(0,s.jsx)(ii,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Zs,{})]})}),(0,s.jsx)(na,{coverPageType:e}),(0,s.jsx)(Rc,{accentColor:t,isShape:!0})]}),aE=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(Ms,{}),(0,s.jsx)(ii,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Zs,{})]})}),(0,s.jsx)(na,{coverPageType:t}),(0,s.jsx)(Rc,{})]}),iE=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(na,{coverPageType:e}),(0,s.jsx)(Rc,{accentColor:t,isShape:!0}),(0,s.jsx)(Dn,{children:(0,s.jsxs)(Xs,{children:[(0,s.jsx)(Ms,{}),(0,s.jsx)(ii,{}),(0,s.jsx)(Js,{}),(0,s.jsx)(Zs,{})]})})]});function cE(t){const e=U1(),n={...t,coverPageType:e};switch(e){default:case k.BL.LEFT_OVERLAY:case k.BL.CENTERED_OVERLAY:return(0,s.jsx)(sE,{...n});case k.BL.LEFT:case k.BL.CENTERED:return(0,s.jsx)(nE,{...n});case k.BL.SPLIT_LEFT:return(0,s.jsx)(rE,{...n});case k.BL.SPLIT_LEFT_IMAGE:return(0,s.jsx)(aE,{...n});case k.BL.SPLIT_RIGHT:return(0,s.jsx)(iE,{...n});case k.BL.SPLIT_RIGHT_IMAGE:return(0,s.jsx)(oE,{...n})}}function lE(t){const{partnerContentId:e}=(0,Ce.DX)(),n=(0,Ce.Bd)(),r=!!(!!e&&!!n||Ge.BI);return(0,s.jsx)("header",{className:ff("header",{"with-info":r}),"data-testid":"cover-header",children:(0,s.jsx)(cE,{...t})})}var dE=c(15648);const uE=ne("cover");function hE({children:t}){const e=(0,Ce.DX)(),{themeId:n}=e?.theme??{},o=U1(),r=dE.useMemo(()=>Xa()(o),[o]),a=uE(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}const mE=js("AlignLeft"),Td=js("ArrowDown"),vf=js("ArrowRight"),gf=js("ArrowUp"),pE=js("Category"),fE=js("ChevronDown"),vE=js("ChevronUp"),gE=js("LessonsComplete"),CE=js("LessonsRequirement"),xE=js("QuestionBox"),bE=js("QuizFailed"),yE=js("QuizPassed"),LE=js("QuizRequirement"),Pc=js("Search"),Cf=js("ToggleDown"),EE=js("Touch"),SE=js("VideoCamera"),Id=js("X"),TE=t=>{const e=t.indexOf("-");return e===-1?t:t.slice(0,e)},aee=(t,e)=>{const n=TE(t);return e.find(({iso639Code:o})=>o===t)||e.find(({iso639Code:o})=>o===n)||e.find(({defaultId:o,defaultSet:r})=>r&&o===1)},ci=({percent:t,label:e,isRTL:n})=>{if(e.includes("%")){const o=n?`%${t}`:`${t}%`;return e.replace("%",o)}return`${t} ${e}`},Xo=ne("cover");function IE({nextLesson:t,percentComplete:e}){const n=V1(),o=(0,Ce.Wz)(),r=(0,Ce.vU)();if(e===0||!Ge.BI)return null;const a=ci({percent:e,label:r.progressSummaryPercentComplete,isRTL:o});return(0,s.jsxs)("div",{className:Xo("progress"),children:[n&&(0,s.jsx)("div",{className:Xo("progress-text"),children:a}),(0,s.jsx)("div",{className:Xo("progress-outer"),children:(0,s.jsx)("div",{className:Xo("progress-inner"),style:{width:`${e}%`}})}),(0,s.jsxs)("div",{className:Xo("progress-text-wrap"),children:[!n&&(0,s.jsx)("div",{className:Xo("progress-text"),children:a}),t&&(0,s.jsxs)("div",{className:Xo("progress-next-lesson"),children:[(0,s.jsx)(vf,{className:Xo("progress-next-lesson-icon").toString(),decorative:!0}),(0,s.jsx)("span",{"aria-hidden":"true",className:Xo("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})]})}var xf=c(15648);const Nd=ne("lesson-header"),$1=()=>(0,s.jsx)("div",{className:Nd("author--hidden")}),NE=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&l,v=e&&t&&l&&!f,C=v||f||u,g=u&&(v||f);return(0,s.jsxs)("div",{className:Nd("content"),children:[C&&(0,s.jsxs)("div",{className:Nd("info-row"),children:[v?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)($1,{}),f&&(0,s.jsx)(Ja,{partnerContentAuthors:i}),g&&(0,s.jsx)("span",{"aria-hidden":"true",className:Nd("info-row--divider"),children:"|"}),u?(0,s.jsx)(No,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Io,{})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(jo,{id:p,title:d}),n&&(0,s.jsx)(Yr,{description:n})]})]})},jE=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:l,showAuthor:u,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,v=l!=null,C=xf.useMemo(()=>n&&e&&u&&!v,[n,e,u,v]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(jo,{id:f,title:m}),(0,s.jsxs)(cb,{children:[C?(0,s.jsx)(To,{authorName:e,avatar:n}):(0,s.jsx)($1,{}),u&&v&&(0,s.jsx)(Ja,{partnerContentAuthors:l}),d?(0,s.jsx)(No,{lessonName:r,lessonNumber:a,lessonPreposition:i,showPartnerContent:v,totalLessons:p}):(0,s.jsx)(Io,{})]}),o&&(0,s.jsx)(Yr,{description:o})]})},kE=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:l,showAuthor:u,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,v=l!=null,C=xf.useMemo(()=>n&&e&&u&&!v,[n,e,u,v]);return(0,s.jsxs)(s.Fragment,{children:[d?(0,s.jsx)(No,{lessonName:r,lessonNumber:a,lessonPreposition:i,totalLessons:p}):(0,s.jsx)(Io,{}),C?(0,s.jsx)(To,{authorName:e,avatar:n}):(0,s.jsx)($1,{}),u&&v&&(0,s.jsx)(k1,{partnerContentAuthors:l}),(0,s.jsx)(jo,{id:f,title:m}),o&&(0,s.jsx)(Yr,{description:o})]})};function AE(t){const e=g1();return t.lessonHeaderSize===k.OX.SMALL&&!e?(0,s.jsx)(NE,{...t}):e?(0,s.jsx)(kE,{...t}):(0,s.jsx)(jE,{...t})}var jd=c(15648);const{COMPACT:RE,COVER:PE,OVERLAY:wE,SIDEBAR:ME}=lt.by,wc=ne("progress-circle");function OE({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,l]=jd.useState(a===100),u=(0,Me.A)(a),{theme:d}=(0,Ce.DX)(),m=d?.progressIndicatorStyle??k.Y2.THEME_DEFAULT,p=r===PE,f=r===wE,v=m===k.Y2.THEME_DEFAULT,C=m===k.Y2.CIRCULAR_FILL,g=m===k.Y2.INCOMPLETE_COMPLETE,b=wc({compact:r===RE,cover:p,sidebar:r===ME,overlay:f}),L=wc("track",{"circular-fill":!f&&C,"incomplete-complete":p&&g}),y=wc("runner",{"circular-fill":C,done:i,failed:n,passed:o,unstarted:a===0}),E=wc("pass",{done:i,visible:o}),x=wc("fail",{done:i,visible:n}),S=jd.useMemo(()=>C||a===100?a:0,[C,a]);jd.useEffect(()=>{if(a!==100&&u===100)l(!1);else if(a===100&&!i&&!g){const N=setTimeout(()=>l(!0),300);return clearTimeout.bind(null,N)}else a===100&&!i&&g&&l(!0)},[i,g,u,a]);const T=jd.useCallback(()=>{a===100&&l(!0)},[a]);return(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:b,fill:"none",focusable:"false",role:"img",viewBox:"0 0 15 15",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:L,cx:"7.5",cy:"7.5",fill:"transparent",r:"6.5",strokeWidth:"2",transform:"rotate(-89.9 7.5 7.5)"}),v?(0,s.jsx)(Mp,{className:y,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:T,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,s.jsx)(R1,{className:y,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:T,r:6.5,strokeLinecap:"round",strokeWidth:2,value:S}),(0,s.jsx)("path",{className:E,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:x,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 kd=({"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}%`}})}),DE=ne("nav-sidebar-header");function BE(t){const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=t;return(0,s.jsxs)("div",{className:DE("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(kd,{"aria-hidden":"true",progress:r,runnerClass:e,trackClass:o})]})}function HE({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 FE(t){return(0,s.jsx)($s,{...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 zE(t){const e=(0,no.QD)(t,["Default"]);return(0,s.jsx)($s,{...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 VE({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 UE(t){return(0,s.jsx)(Is,{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 bf(t){return(0,s.jsx)(Is,{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 $E(t){return(0,s.jsx)(Is,{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 WE(t){return(0,s.jsxs)(Is,{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 GE(t){return(0,s.jsx)(Is,{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 KE(t){return(0,s.jsxs)(Is,{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 _E(t){return(0,s.jsxs)(Is,{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 QE(t){return(0,s.jsx)(Is,{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 yf=c(15648);const Lf=P,ZE={classic:P,default:P,imaginative:_,organic:ee},Ef=Object.assign(yf.createContext(Lf),{displayName:"ThemeContext"});function YE(){return yf.useContext(Ef)}function XE({themeId:t,...e}){return(0,s.jsx)(Ef.Provider,{...e,value:ZE[t]??Lf})}function JE(t){return(0,s.jsx)(s.Fragment,{children:t.children})}function qE(){return null}function Sf(t,e,n){function o(r){const i=YE()?.[t]?.[e]??n;return(0,s.jsx)(i,{...r,Default:n})}return o.displayName=`ThemeComponent(${e})`,o}function At(t,e=JE){return Sf("components",t,e)}function js(t){return Sf("icons",t,qE)}const eS=ne("cover");function tS({className:t="",dueAt:e}){const n=Fa(),o=Gr(),r=o==null||o.quizPassed||o.outOfAttempts,a=op(e),i=eS("due-date",{urgent:a}).mix(t);return!e||n&&r?null:(0,s.jsx)("div",{className:i,tag:"div",children:u1(e)})}const sS=At("CoverDueDate",tS);function nS(t){const{dueAt:e}=Ht(t);return{dueAt:e}}const oS=(0,K.Ng)(nS)(sS),oa=ne("cover"),rS=At("CoverProgress",({nextLesson:t,percentComplete:e})=>{const n=(0,Ce.Wz)(),o=(0,nt.useLabelsMap)();if(e===0||window.isPublicShare||!Ge.BI)return null;const r=ci({percent:e,label:o.progressSummaryPercentComplete,isRTL:n});return(0,s.jsxs)("div",{className:oa("progress"),children:[(0,s.jsx)("div",{className:oa("progress-text"),children:r}),(0,s.jsx)("div",{className:oa("progress-outer"),children:(0,s.jsx)("div",{className:oa("progress-inner"),style:{width:`${e}%`}})}),t&&(0,s.jsxs)("div",{className:oa("progress-next-lesson"),children:[(0,s.jsx)(vf,{className:oa("progress-next-lesson-icon").toString(),decorative:"true"}),(0,s.jsx)("span",{"aria-hidden":"true",className:oa("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})}),aS=()=>{const t=_o();return(e,{currentLocale:n})=>{const o=t(n,e),r=Ye(e);return{nextLesson:o,percentComplete:r}}},iS=$e()(Vt.wZ,(0,K.Ng)(aS))(rS),{useLabelsMap:cS}=c(88549),Tf=({failed:t,complete:e})=>{const n=cS();return(0,s.jsxs)("span",{className:"visually-hidden-always",children:[t?n?.a11yCoverRequirementFailed||"Requirement failed":e?n?.a11yCoverRequirementComplete||"Requirement complete":n?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},oo=ne("cover");function lS(){const t=(0,Ce.DX)(),e=(0,nt.useLabelsMap)(),{trackingCompletionPercentage:n,trackingQuizId:o}=t;return n==null&&!o?null:(0,s.jsxs)("section",{className:oo("requirements-section"),children:[(0,s.jsx)("h2",{className:oo("requirements-title"),children:e?.coverCourseRequirements||"Course Requirements"}),(0,s.jsxs)("ul",{className:oo("requirements-list"),children:[(0,s.jsx)(dS,{}),(0,s.jsx)(hS,{})]})]})}function dS(){const{trackingCompletionPercentage:t}=(0,Ce.DX)(),e=(0,Ce.v1)(),n=dr(),o=(0,nt.useLabelsMap)(),r=Math.ceil(t/100*e),a=r===e;if(t==null||r==null)return null;const i=n>=t,l=i?gE:CE;return(0,s.jsxs)("li",{className:oo("lesson-requirement"),role:"listitem",children:[(0,s.jsx)(l,{"aria-hidden":"true",className:oo("lesson-requirement-icon",{complete:i}).toString()}),(0,s.jsxs)("span",{className:oo("lesson-requirement-text"),children:[(0,s.jsx)(Tf,{complete:i}),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 uS={passed:yE,failed:bE,requirement:LE};function hS(){const t=(0,nt.useLabelsMap)(),e=Il(),n=Gr(),o=(0,Ce.Wz)(),r=cs(e?.title),a=e?.settings?.passingScore;if(!r||!n)return null;const{outOfAttempts:i,quizPassed:l}=n,u=!l&&i;let d="requirement";l?d="passed":u&&(d="failed");const m=uS[d],p=ci({percent:a,label:t?.coverQuizPercentOrHigher||"% or higher",isRTL:o});return(0,s.jsxs)("li",{className:oo("quiz-requirement"),role:"listitem",children:[(0,s.jsx)(m,{"aria-hidden":"true",className:oo("quiz-requirement-icon",{type:d}).toString()}),(0,s.jsxs)("span",{className:oo("quiz-requirement-text"),children:[(0,s.jsx)(Tf,{complete:l,failed:u}),r,a!=null&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",className:oo("quiz-requirement-seperator"),children:"\xA0|\xA0"}),t?.coverQuizScoreOf||"Score of"," ",p]}),u&&(0,s.jsx)("div",{className:oo("quiz-requirement-no-attempts"),children:t?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}function Mc(t){const{to:e,children:n}=t,o=(0,te.zy)(),r=(0,h.useMemo)(()=>(0,Lp.B)(e,o),[o,e]);return(0,s.jsx)(te.k2,{...t,to:r,children:n})}var W1=c(89297),mS=c(99269),pS=c(80841),fS=c(78030),vS=c(305),gS=c(30681),CS=c(31079),xS=c(75174),bS=c(90648),yS=c(10427),LS=c(51925),ES=c(86893),SS=c(74305),TS=c(57011),IS=c(23876),NS=c(99182),jS=c(30474),kS=c(44739),AS=c(7238),RS=c(75877),PS=c(48433),wS=c(71852),MS=c(49512),OS=c(75627),DS=c(25309),BS=c(25289),HS=c(66404),FS=c(69106),zS=c(53445),VS=c(35211),US=c(36448),$S=c(32063),WS=c(2101),GS=c(28246),KS=c(94622),_S=c(78278),QS=c(61991),ZS=c(79823),YS=c(44430),XS=c(52301),JS=c(70597),qS=c(91768),eT=c(35501),tT=c(25753),sT=c(29602),nT=c(313),oT=c(16324),rT=c(43935),aT=c(35886),iT=c(63609),cT=c(23875),lT=c(30843),dT=c(64857),uT=c(66102),hT=c(46872),mT=c(54995),pT=c(56956),fT=c(57641),vT=c(78640),gT=c(58543),CT=c(49639),xT=c(63039),bT=c(477),yT=c(38644),LT=c(10832),ET=c(73078),ST=c(25561),TT=c(41691),IT=c(92545),NT=c(39912),jT=c(65790),kT=c(98782),AT=c(26933),RT=c(2497),PT=c(55603),wT=c(99772),MT=c(55118),OT=c(18039),DT=c(11948),BT=c(90048),HT=c(8747),FT=c(48841),zT=c(62790),VT=c(19102),UT=c(2007),$T=c(9174),WT=c(35999),GT=c(89381),KT=c(66069),_T=c(70594),QT=c(26520),ZT=c(95076),YT=c(84165),XT=c(96193),JT=c(43546),qT=c(62731),eI=c(75420),tI=c(4261),sI=c(92783),nI=c(64836),oI=c(32785),rI=c(73016),aI=c(24012),iI=c(91260),cI=c(87235),lI=c(85936),dI=c(12425),uI=c(48750),hI=c(9624),mI=c(63445),pI=c(46),fI=c(20667),vI=c(96233),gI=c(14365),CI=c(63562),xI=c(66476),bI=c(2949),yI=c(71740),LI=c(55158),EI=c(26636),SI=c(33985),TI=c(4599),II=c(49679),NI=c(9515),jI=c(74156),kI=c(7587),AI=c(77679),RI=c(97141),PI=c(14357),wI=c(82199),MI=c(91114),OI=c(14932),DI=c(51105),BI=c(73217),HI=c(23650),FI=c(13650),zI=c(81312),VI=c(34577),UI=c(86534),$I=c(80422),WI=c(54187),GI=c(45068),KI=c(56728),If=c(44403),_I=c(57257),QI=c(64978),ZI=c(78256),YI=c(34104),XI=c(81522),JI=c(52404),qI=c(3925),eN=c(31289),tN=c(74621),sN=c(75310),nN=c(78371),oN=c(93538),rN=c(25589),aN=c(4751),iN=c(56584),cN=c(16128),lN=c(59394),dN=c(76242),uN=c(7962),hN=c(80105),mN=c(75565),pN=c(60322),fN=c(4511),vN=c(81221),gN=c(93557),CN=c(81090),xN=c(36147),bN=c(73287),yN=c(74921),LN=c(95654),EN=c(50903),SN=c(27452),TN=c(21306);const IN={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"]},NN={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"]]},jN={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"]},kN={prefix:"fab",iconName:"clone-plus",icon:[20,20,[],"e001","M4 16H11V14.5H13V16C13 17.1031 12.1031 18 11 18H4C2.89688 18 2 17.1031 2 16V9C2 7.89687 2.89688 7 4 7H5.5V9H4V16ZM7 11V4C7 2.89688 7.89687 2 9 2H16C17.1031 2 18 2.89688 18 4V11C18 12.1031 17.1031 13 16 13H9C7.89687 13 7 12.1031 7 11ZM12.5 4.5C12.0844 4.5 11.75 4.83437 11.75 5.25V6.75H10.25C9.83437 6.75 9.5 7.08437 9.5 7.5C9.5 7.91563 9.83437 8.25 10.25 8.25H11.75V9.75C11.75 10.1656 12.0844 10.5 12.5 10.5C12.9156 10.5 13.25 10.1656 13.25 9.75V8.25H14.75C15.1656 8.25 15.5 7.91563 15.5 7.5C15.5 7.08437 15.1656 6.75 14.75 6.75H13.25V5.25C13.25 4.83437 12.9156 4.5 12.5 4.5Z"]};var Nf,AN;const RN={"alert-circle-solid":vT.lE,"alert-circle":QT.lE,"alert-diamond":lI.xG,"arrow-down-from-line":ET.xZ,"arrow-down-to-bracket":ST.a_,"arrow-down-to-line":TT.yH,"arrow-down":LT.B0,"arrow-left":IT.Ce,"arrow-right-from-line":jT.Pe,"arrow-right":NT.dm,"arrow-rotate-left-light":NS.V3,"arrow-rotate-left":kT.V3,"arrow-up-from-bracket":RT.MN,"arrow-up-from-line":PT.s8,"arrow-up-right-from-square":wT.faArrowUpRightFromSquare,"arrow-up":AT.IN,"arrows-two-from-center":pS.A1,"arrows-two-to-center":fS.hL,"badge-check":US.Zs,"bar-chart":MT.X8,bars:$S.ck,"bars-regular":OT.ck,"block-selector":CT.iH,"book-open":BT.Re,"book-sparkles":HT.E4,book:DT.LB,"browser-light":gS.c9,browser:FT.c9,building:vS.UR,"cards-blank":zT.Xm,"caret-down":GS.xB,"caret-right":KS.fU,"chart-column":VS.q9,"check-regular":bT.e6,check:WS.e6,"chevron-down-solid":_S.Jt,"chevron-down":VT.Jt,"chevron-left-light":CS.Wz,"chevron-left-solid":ZS.Wz,"chevron-left":UT.Wz,"chevron-right-light":xS.Xk,"chevron-right-solid":YS.Xk,"chevron-right":$T.Xk,"chevron-up-solid":QS.w2,"chevron-up":WT.w2,"circle-arrow-right":qS.Ni,"circle-arrow-up":JS.yi,"circle-check-regular":KT.QR,"circle-check-solid":eT.QR,"circle-check":RS.QR,"circle-dot":_T.pp,"circle-half-stroke":ZT.B2,"circle-info":YT.faCircleInfo,"circle-notch":qT.s4,"circle-plus-duotone":PS.q_,"circle-plus-regular":XT.q_,"circle-plus":tT.q_,"circle-small-solid":sT.ZP,"circle-small":JT.ZP,"circle-solid":XS.GE,"circle-x":nT.Ub,"circle-xmark":eI.bn,"circle-xmark-solid":oT.bn,"circle-xmark-duotone":wS.bn,circle:GT.GE,"clock-rotate-left":tI.Yj,clone:nI.$3,close:oI.yY,"closed-captioning":sI.UM,"code-fork-duotone":MS.zt,"code-fork-regular":rI.zt,code:SN.jT,comment:aI.DN,copy:iI.jP,crop:cI.K1,"edit-regular":dI.MT,"ellipsis-regular":uI.Dw,"ellipsis-vertical-regular":hI.nx,envelope:mI.y_,"external-link":pI.vM,"eye-slash":yS.k6,eye:bS.pS,"face-frown":jS.Ho,"face-laugh":kS.ou,"face-smile":AS.H8,"file-audio":vI.qe,"file-duotone":OS.A4,"file-export-light":ES.o1,"file-export":gI.o1,"file-import":CI.$M,"file-lines":xI.bL,"file-pdf-light":LS.O_,"file-pdf":bI.O_,file:fI.A4,"folder-image":yI.JK,"folder-open":DS.Uj,gear:LI.BH,globe:EI.Bw,"graduation-cap":SI.eS,"grid-2":TI.Qy,"grid-solid":rT.Qy,"grip-dots-vertical":II.IM,"hand-pointer":NI.A8,"image-landscape":kI.oC,"image-portrait":AI.E4,image:jI.jb,"info-circle":RI.iW,"layers-solid":fT.qI,"link-simple-slash":MI.r2,"link-simple":wI.wi,"link-slash":OI.TH,link:PI.CQ,list:DI.IT,"list-check":BI.UN,"location-dot":TS.gK,"lock-keyhole-light":SS.Yp,lock:aT.DW,"magnifying-glass-plus":FI.bM,"magnifying-glass":HI.$U,megaphone:gT.OR,"message-quote":zI.ps,"minus-solid":iT.EZ,minus:VI.EZ,paintbrush:BS.ue,palette:UI.fy,paste:$I.R9,pause:WI.G1,"pause-solid":cT.G1,"pen-line":GI.pg,"pen-to-square":KI.faPenToSquare,"pencil-duotone":HS.zL,"pencil-regular":yT.zL,"pencil-thin":TN.zL,pencil:IS.zL,"play-regular":If.ij,"play-solid":lT.ij,play:If.ij,"plus-regular":_I.QL,plus:QI.TS,"quote-left":ZI.$7,"rectangle-history-circle-plus":XI.Hu,"rectangle-regular":YI.vt,"rectangle-vertical-history":JI.Lt,rocket:qI.KM,"ruler-horizontal":eN.Si,"ruler-triangle":tN.cb,"sliders-simple":dT.AD,"sparkles-solid":uT.p7,sparkles:sN.p7,"spinner-third":nN.sq,"square-arrow-down":rN.Y1,"square-arrow-right":aN.mT,"square-arrow-up-right":iN.fL,"square-check-solid":hT.Dn,"square-check":cN.Dn,"square-duo":FS.Nf,"square-info":lN.Lg,"square-plus":dN.Vd,square:oN.Nf,"stopwatch-regular":uN.nw,table:hN.w9,tag:mN._2,text:pN.jw,"trash-can":vN.sj,trash:fN.yL,"user-group":mT.US,"users-regular":gN.gd,users:zS.gd,video:CN.n2,volume:xN.eF,volumeHigh:bN.AI,volumeLow:yN.gN,volumeXmark:LN.H_,"wand-magic-sparkles":EN.Ys,"waveform-lines":xT.Wx,xmark:pT.Jy},PN={"audio-plus":jN,"clone-plus":kN,reach:NN,"rise-com":IN};function it({"aria-label":t,className:e,classNameIcon:n,color:o,"data-testid":r,name:a,rotation:i,spin:l,style:u,styleIcon:d}){return(0,s.jsx)("span",{className:e,"data-testid":r,style:{color:o,...u},children:(0,s.jsx)(mS.g,{"aria-label":t,className:n,icon:RN[a],rotation:i,spin:l,style:d})})}function hee({className:t,classNameIcon:e,color:n,name:o,style:r,styleIcon:a}){return Nf("span",{className:t,style:{color:n,...r},children:Nf(AN,{className:e,icon:PN[o],style:a})})}const jf="focus-lesson-content",mee="preview-nav-to-first-lesson",pee="preview-nav-to-cover-page",_t="preview-nav-to-lesson-item",fee="preview-scroll-to-nav-prev",vee="preview-scroll-to-header",G1="preview-clear-state",Ad="preview-show-nav-prev",Rd="preview-show-nav-next",kf="preview-nav-open",Af="preview-nav-close",Rf="event-lesson-transition-start",Pf="event-lesson-transition-end",wf="event-lesson-nav-prev-visible",K1="event-lesson-nav-prev-hidden",Mf="event-lesson-nav-next-visible",_1="event-lesson-nav-next-hidden",Q1=new WeakMap,Of=new ResizeObserver(t=>{for(const e of t)Q1.get(e.target)?.(e)});function Pd(t,e){(0,h.useEffect)(()=>{if(t)return Q1.set(t,e),()=>Q1.delete(t)},[t,e]),(0,h.useEffect)(()=>{if(t)return Of.observe(t),()=>Of.unobserve(t)},[t])}function wN(){const t=(0,K.wA)(),[e,n]=(0,h.useState)(null),o=(0,nt.useLabelsMap)(),r=(0,h.useCallback)(a=>{t((0,W1.s)({offsetHeight:a.target.offsetHeight}))},[t]);return(0,h.useLayoutEffect)(()=>{if(e)return t((0,W1.s)({offsetHeight:e.offsetHeight})),()=>t((0,W1.s)(null))},[t,e]),Pd(e,r),(0,s.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:Df,ref:n,type:"button",children:(0,s.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,s.jsx)(it,{"aria-hidden":"true",classNameIcon:"btn-skip-to-lesson__icon",name:"arrow-right"})]})})}function MN(t){(0,ss.A)(jf,t,document)}function Df(){document.dispatchEvent(new CustomEvent(jf))}const Bf=(0,h.createContext)(!1);function Oc({children:t,inert:e}){const n=Z1();return(0,s.jsx)(Bf.Provider,{value:n||e,children:t})}function Z1(){return(0,h.useContext)(Bf)}function ON(t){return t?.sessionPreferences}function Y1(){return(0,K.d4)(ON)}const DN=(0,h.forwardRef)((t,e)=>{const{children:n,className:o="lesson-link-item-tooltip",dark:r,visible:a}=t,i=(0,h.useMemo)(()=>ne(o),[o]),l=(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:i({visible:a}),children:(0,s.jsx)("div",{className:i("inner",{dark:r,light:!r}),children:n})})})});return(0,to.createPortal)(l,document.getElementById("portal"))});function Hf(t){const{children:e,className:n,dark:o,restriction:r,tooltipClassName:a,style:i}=t,{prefersKeyboardNavigation:l}=Y1(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,nt.useLabelsMap)(),f=Z1(),[v,C]=(0,h.useState)(!1),g=(0,h.useCallback)(()=>C(!0),[]),b=(0,h.useCallback)(()=>C(!1),[]),L=(0,h.useCallback)(()=>{setTimeout(g,0)},[g]),y=(0,h.useCallback)(()=>{l&&b()},[b,l]),E=(0,h.useCallback)(O=>{un(O)&&v&&(O.stopPropagation(),b())},[b,v]),x=(0,h.useCallback)(()=>{document.activeElement===u.current&&(clearTimeout(m.current),g())},[g]),S=(0,h.useCallback)(()=>{m.current=setTimeout(b,150)},[b]),T=(0,h.useCallback)(()=>{if(v){const O=u.current.getBoundingClientRect(),D=d.current.offsetParent.getBoundingClientRect(),{height:B,width:R}=O,H=O.left-D.left,w=O.top-D.top;Object.assign(d.current.style,{transform:`translate(${H}px, ${w}px)`,width:`${R}px`,height:`${B}px`})}},[v]);(0,h.useEffect)(()=>{f&&C(!1)},[f]),(0,h.useLayoutEffect)(()=>T(),[T]),(0,ss.A)("resize",T,window),(0,ss.A)("keydown",E,document),Yp(u,b);const N=cs(r?.data);let j;return r?.type===es.XQ.QUIZ?j=`${p.quizRequirePassingScore}: "${N}"`:r?.type===es.XQ.ORDER?j=p.lessonRestricted:r?.type===es.XQ.KNOWLEDGE_CHECK&&(j=p.knowledgeCheckCorrectAnswerRequiredNav),(0,s.jsxs)("div",{"aria-disabled":!0,className:n,onBlur:y,onFocus:L,onMouseEnter:x,onMouseLeave:S,ref:u,role:"link",style:i,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:j}),(0,s.jsx)(DN,{className:a,dark:o,ref:d,visible:v,children:j})]})}function BN(t){const{b:e,children:n,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:i,onClick:l=Function.prototype,onFocus:u,onHideProgressTooltip:d,onNavigate:m=Function.prototype,onShowProgressTooltip:p,restriction:f,showProgressDelay:v,style:C}=t,g=Z1(),{theme:{progressIndicatorStyle:b=k.Y2.THEME_DEFAULT}}=(0,Ce.DX)(),L=b===k.Y2.THEME_DEFAULT,y=(0,h.useCallback)(B=>{l(B),r?(B.preventDefault(),Df()):m(i)},[i,r,l,m]),[E,x]=(0,h.useState)(!1),S=(0,h.useCallback)(B=>{!E&&a&&(v!=null?setTimeout(p,v):p()),u?.(B)},[E,u,v,p,a]),T=(0,h.useCallback)(B=>{a&&un(B)&&d()},[d,a]),N=(0,h.useCallback)(()=>{a&&x(!0)},[a]),j=(0,h.useCallback)(()=>{a&&x(!1)},[a]),O=f?.type!=null,D=e("link",{active:r,restricted:O,"theme-default":L}).toString();return O?(0,s.jsx)(Hf,{...t,className:D,style:C}):(0,s.jsx)(Mc,{"aria-current":"page",className:D.toString(),"data-direction":o,"data-nav-item":"",onBlur:a?d:void 0,onClick:y,onFocus:S,onKeyDown:T,onMouseDown:N,onMouseUp:j,style:C,tabIndex:g?-1:void 0,to:(0,es.p1)(i),children:n})}function Dc(t){const{className:e="lesson-link-item",isCurrentLesson:n,last:o,lessonId:r,style:a}=t,i=(0,h.useMemo)(()=>ne(e),[e]),l=ts(r),u=l?.type!=null,{isComplete:d=!1}=Pn(r)??{},m=i({active:n,complete:d,last:o,restricted:u});return(0,s.jsx)("div",{className:m,children:(0,s.jsx)(BN,{...t,b:i,isCurrentLesson:n,restriction:l,style:a})})}const HN=ne("lesson-nav"),FN=t=>{const{children:e,finish:n,lessonId:o,onFocus:r}=t,a=(0,Lt.Z)();if(o)return(0,s.jsx)(Dc,{className:"lesson-nav-link",onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",...t});const i=n?"/lessons/progress-summary":"/",l=u=>{u.preventDefault(),Zo(()=>{a(i)},i==="/"?"lesson-to-cover":"default")};return(0,s.jsx)("span",{className:"lesson-nav-link",children:(0,s.jsx)(On,{className:"lesson-nav-link__link","data-direction":t["data-direction"],onClick:l,onFocus:r,to:i,children:e})})},zN=({buttonScheme:t,accentContrast:e,children:n,className:o,direction:r,finish:a,navLessonId:i,onFocus:l,restrictionType:u},d)=>{const m=u!=null,p=Xr(),v={className:HN(null,{[r]:!0,accent:t===k.LE.ACCENT,dark:t===k.LE.DARK,floating:p===k.AY.FLOATING,"floating-full":p===k.AY.FLOATING_FULL,finish:a,full:p===k.AY.FULL,light:t===k.LE.LIGHT,restricted:m,tint:t===k.LE.TINT}).mix(o),[`data-${r}-lesson`]:!0};return(0,s.jsx)("div",{ref:d,...v,children:(0,s.jsx)(FN,{accentContrast:e,"data-direction":r,finish:a,lessonId:i,onFocus:l,children:n})})};function VN(t,e){const{currentLocale:n}=e,o=Ht(t),r=(0,nt.selectLabelsMap)(n,t);return{buttonScheme:o.buttonScheme,accentContrast:o.theme?.accentContrast,labelLessonRestricted:r.lessonRestricted,labelQuizRequirePassingScore:r.quizRequirePassingScore}}const UN=$e()(Vt.wZ,(0,K.Ng)(VN,null,null,{forwardRef:!0}),h.forwardRef)(zN),$N={CoverCompletedInformation:w7,CoverDueDate:oS,CoverProgress:iS,CoverRequirements:lS,ImageEagerOrLazy:I1,LessonNav:UN};function WN({children:t}){return(0,s.jsx)(Gx,{...$N,children:t})}var GN=c(22300),KN=c(66056),Ff;const zf={"rise-course-navigation":!0},_N={"ai-assistant-settings":!0,"ai-assistant-summaries":!0,"ai-assistant-quizzes":!0,"ai-assistant-blocks":!0,"ai-avatars-v3":!1,"ai-text-to-video":!1,"ai-assistant-images":!0,"ai-assistant-magic-block-import":!0,"ai-assistant-writing":!0,"ai-assistant-enable":!0,"ai-assistant-thumbs-feedback-ui":!1,"ai-assistant-subscription-override":!1,"ai-assistant-next-gen-chat-prototype":!1,"experiment-business-creator-role":!1,"experiment-new-delivery-formats":!1,"rise-ai-avatar-prompt-testing":!1,"rise-com-360-upsell":!0,"rise-update-block":!1},X1=(0,h.createContext)(zf);X1.displayName="FeatureFlagsContext";const{Provider:QN}=X1;function ZN({children:t,value:e}){const n=(0,h.useMemo)(()=>({..._N,...e,...zf}),[e]);return(0,s.jsx)(QN,{value:n,children:t})}function wd(){return(0,h.useContext)(X1)}function YN(t){return wd()[t]}function Cee(t){function e(n){const o=wd();return Ff(t,{...n,flags:o})}return e.displayName=`withFeatureFlags(${t.displayName||t.name})`,e}function xee(t,e){return function(n){const o=r=>{const a=YN(t),i={...r,[e]:a};return Ff(n,{...i})};return o.displayName=`withFeatureFlag(${n.displayName||n.name})`,o}}const Vf=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});Vf.displayName="On";const Uf=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});Uf.displayName="Off";const Md=({children:t,featureFlags:e})=>{const n=wd(),o=(0,h.useMemo)(()=>{const i=[].concat(e??[]);return i.length&&i.every(l=>n[l])},[e,n]),{on:r=null,off:a=null}=(0,h.useMemo)(()=>{const i={};return h.Children.forEach(t,l=>{switch(l.type.displayName){case Md.On.displayName:i.on=l;break;case Md.Off.displayName:i.off=l;break;default:i.on=t}}),i},[t]);return o?r:a};Md.On=Vf,Md.Off=Uf;const XN={};function JN({children:t}){const e=(0,K.wA)(),n=wd();return(0,GN.A)(()=>{e((0,KN.G)(n))},[n]),t}function qN({children:t}){const n=kt()?.features??XN;return(0,s.jsx)(ZN,{value:n,children:(0,s.jsx)(JN,{children:t})})}var ej=c(86950),J1=c(84523),tj=c(15904),ro=c.n(tj);const sj=t=>Ge.BI?t??"":t?`${t} | ${Ge.mZ}`:Ge.mZ,Bc=t=>(0,Ge.Hm)()?t:sj(t);let q1=!1;function ra({children:t,title:e,isExplicit:n=!1}){const o=Bc((0,Ce.d_)()),r=e??o;return h.useEffect(()=>{if(n)return q1=!0,document.title=r,()=>{q1=!1};q1||(document.title=r)},[r,n]),(0,s.jsx)(s.Fragment,{children:t})}var nj=c(60975),oj=c.n(nj),rj=c(14602),aj=c(23290);const eh=Object.assign((0,h.createContext)(void 0),{displayName:"BlockContext"});function th({block:t,children:e}){const[n,o]=(0,h.useState)(t);return(0,h.useEffect)(()=>o(r=>t||r),[t]),(0,s.jsx)(eh.Provider,{value:n,children:(0,s.jsx)(ih,{...n?.settings,children:e})})}const yee=eh.Consumer;function ks(){return(0,h.useContext)(eh)}function Od(t){return function(n){const o=ks();return(0,s.jsx)(t,{...n,block:o})}}const ij={text:{backgroundType:"blockTextBackgroundType",backgroundColor:"blockTextBackgroundColor",backgroundColorContrast:"blockTextBackgroundColorContrast",paddingStart:"blockTextPaddingStart",paddingEnd:"blockTextPaddingEnd",bodyFontSize:"blockTextBodyFontSize",headingFontSize:"blockTextHeadingFontSize",subheadingFontSize:"blockTextSubheadingFontSize"}};function cj(t,e){if(!t||!e)return null;const n=ij[t];if(!n)return null;const o=r=>r?e[r]:void 0;return{backgroundType:o(n.backgroundType),backgroundColor:o(n.backgroundColor),backgroundColorContrast:o(n.backgroundColorContrast),paddingStart:o(n.paddingStart),paddingEnd:o(n.paddingEnd),bodyFontSize:o(n.bodyFontSize),headingFontSize:o(n.headingFontSize),subheadingFontSize:o(n.subheadingFontSize)}}function li(){const t=ks(),e=(0,Ce.DX)(),n=t?.family,o=e?.theme;return(0,h.useMemo)(()=>cj(n,o),[n,o])}var lj=c(32107),dj=c.n(lj),uj=c(87180),hj=c.n(uj),mj=c(71080),$f=c.n(mj),pj=c(69175),fj,vj,gj,Cj,sh,Wf,aa;const Gf=2,Lee=(t,e,n)=>t??e??n,Kf=(t,e,n,o)=>t??e??n??o,Fn=dj()({WHITE:null,TRANSPARENT:null}),xj={markerColorContrast:k.Em.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:k.Em.AUTO},bj={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"],survey:["survey"]};function yj(t,e){return bj[t]?.includes(e)??!1}const Lj={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function nh(t,e){const n=Lj[t]?.[e];return n==null?{}:{backgroundColor:n,backgroundType:k.xj.COLOR}}const Ej={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"],survey:["survey"],text:["code"]};function Eee(t,e){return Ej[t]?.includes(e)??!1?.1:.5}function Sj(t){switch(t.backgroundType){case k.xj.COLOR:return t.backgroundColor;case k.xj.ACCENT:return t.courseColor;case k.xj.TINT:return(0,mt.WA)(t.courseColor);case k.xj.LIGHT:return"#ffffff";case k.xj.GRAY:return"#fafafa";case k.xj.DARK:return"#303030";case k.xj.BLACK:return"#000000"}}const Tj={multimedia:{embed(t){return{cardMode:t.showBorder===!1?Fn.TRANSPARENT:Fn.WHITE}}}};function Ij(t,e,n){return Nj(t,e,n)}function Nj(t,e,n){const o=nh(t,e);(n.v==null||n.v<Gf)&&(n=jj(n),n.backgroundColor?.toLowerCase()==="#ffffff"&&Object.keys(o).length===0&&(n=hj()("backgroundColor",n)));const r=Tj[t]?.[e]?.(n),a=n.backgroundColor&&n.backgroundType==null?{backgroundType:k.xj.COLOR}:{};return[{accentColor:null},xj,r,n,a,{v:Gf}].reduce((u,d)=>d==null?u:{...u,...$f()(pj.A,d)},{})}function jj(t){return{...t,backgroundType:null,cardMode:null,v:1}}const kj={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"],multimedia:[]};function See(t,e){return!kj[t]?.includes(e)}const Aj={};function Tee(t,e){return!Aj[t]?.includes(e)}function Rj(t){return t===Cj.LIGHT?aa.LIGHT:aa.DARK}function Pj(t,e){if(e===sh.AUTO){const n=fj(t),o=vj[n](t);return gj(o)===sh.DARK?aa.DARK:aa.LIGHT}else return e===sh.LIGHT?aa.LIGHT:aa.DARK}function Iee(t,e,n,o,r){const a=t?.backgroundType;return t?.cardMode===Fn.TRANSPARENT?a===Wf.IMAGE?Rj(e?.overlayColor):o&&a!==Wf.ACCENT?r:Pj(n,t?.customBackgroundColorContrast):o?r:aa.DARK}const wj={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 Nee(t,e){return wj[t]?.includes(e)??!1}const Mj=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),oh=(t,e)=>Mj.test(e)?e:t;function Os(t){const{contrast:e=k.Em.AUTO,backgroundColor:n="#fff"}=t,o=oh("#fff",n),r=(0,mt.xD)(o);return e===k.Em.DARK||e===k.Em.AUTO&&r===k.Em.DARK?lt.S6.DARK:lt.S6.LIGHT}const Oj=t=>t.blockBackgroundType??t.familyBackgroundType??t.courseBackgroundType??t.blockTypeFallbackType??k.xj.LIGHT,Dj=t=>t.effectiveBackgroundType===k.xj.COLOR?t.blockBackgroundColor||t.familyBackgroundColor||t.courseBackgroundColor||t.blockTypeFallbackColor||null:t.settingsBackgroundColor??null,Bj=t=>t.blockCustomContrast??t.familyBackgroundColorContrast??t.courseBackgroundColorContrast??k.Em.AUTO,_f=t=>{const{family:e,variant:n,customBackgroundColorContrast:o}=t;return!o&&(e==="image"&&n!=="text aside"||e==="chart"||n==="sorting")},Qf=t=>(0,mt.cP)(t)?k.Em.LIGHT:k.Em.DARK,Hj=t=>{const{backgroundType:e,backgroundColor:n,accentColor:o,customBackgroundColorContrast:r,accentContrast:a,family:i,variant:l}=t;if(!(e===k.xj.ACCENT||e===k.xj.COLOR))return null;const d=e===k.xj.ACCENT?o:n;let m;return e===k.xj.ACCENT?m=a:_f({family:i,variant:l,customBackgroundColorContrast:r})?m=Qf(n):m=r??k.Em.DARK,Os({backgroundColor:d??void 0,contrast:m})},Fj=t=>Hj(t)===lt.S6.LIGHT,zj=t=>{const{backgroundColor:e,family:n,variant:o,blockCustomContrast:r,familyBackgroundColorContrast:a,courseBackgroundColorContrast:i}=t,l=r??a??i??k.Em.AUTO,d=_f({family:n,variant:o,customBackgroundColorContrast:l})?Qf(e):l;return Os({backgroundColor:e??void 0,contrast:d})};var rh=c(11059);const Vj=t=>{const{effectiveBackgroundType:e,blockImage:n}=t;return e!==k.xj.IMAGE?null:n??null},Uj=t=>(0,Ys.I6)(t?.alt),$j=t=>{if(!t)return null;const{alpha:e,overlayColor:n=k.df.DARK}=t,o=(0,Gt.ME)(t),r=n===k.df.LIGHT?k.qH:k.KJ;return(0,rh.A)({alpha:e,color:r,url:o})};function Ro(){const t=(0,Ce.DX)(),e=li(),n=tn(),o=ks(),r=o?nh(o.family,o.variant):{};return Oj({blockBackgroundType:n?.backgroundType,familyBackgroundType:e?.backgroundType,courseBackgroundType:t?.theme?.blockBackgroundType,blockTypeFallbackType:r.backgroundType})}function Wj(){return Ro().toLowerCase()}function Dd(){const t=ks(),e=Ro(),n=t?.background,o=(0,at.QQ)(n?.media)?.image;return Vj({effectiveBackgroundType:e,blockImage:o})}function Gj(){const t=Dd();return Uj(t)}function Kj(){const t=Dd();return $j(t)}function _j(){const t=Dd();return!!t&&t?.overlayColor===k.df.LIGHT}function Qj(){const t=ks(),e=t?.family,n=t?.variant,o=yj(e,n),r=t?.settings?.cardMode??Fn.WHITE;return o?r.toLowerCase():null}function Zj(){const t=bn(),e=t?(0,mt.XC)(t):mt.lL.LIGHT;return Xa()(e.toLowerCase())}function Yj(){const t=ks(),e=(0,Ce.DX)(),n=li();return Bj({blockCustomContrast:t?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:n?.backgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast})}function Xj(){const t=(0,Ce.DX)(),e=tn(),n=bn(),o=ks(),r=Ro(),a=Yj(),i=e.accentColor||t?.theme?.colorAccent;return Fj({accentColor:i,accentContrast:t?.theme?.accentContrast,backgroundColor:n,backgroundType:r,customBackgroundColorContrast:a,family:o?.family,variant:o?.variant})}function Jj(){const t=ks(),e=(0,Ce.DX)(),n=bn(),o=li();return zj({backgroundColor:n,blockCustomContrast:t?.settings?.customBackgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast,family:t?.family,familyBackgroundColorContrast:o?.backgroundColorContrast,variant:t?.variant})}function qj(){const t=ks(),e=t?.settings?.backgroundType,n=!t?.settings?.customBackgroundColorContrast;return e==null||n}function ek(){const t=Wj(),e=Zj(),n=Qj(),o=Xj(),r=_j(),a=qj(),i=bn(),l=Kj(),u=Gj();return{backgroundColor:i,backgroundImageAlt:u,backgroundImageCss:l,backgroundTypeLowercase:t,cardMode:n,colorRange:e,isContrastLight:o,isLegacyBackground:a,isOverlayLight:r}}var Zf=c(15648);const Yf=Object.assign((0,h.createContext)({}),{displayName:"BlockSettingsContext"});function tn(){return(0,h.useContext)(Yf)}const tk="settings";function ah(t){return e=>{const n=Zf.forwardRef((o,r)=>{const a=tn(),i={...o,[t??tk]:a};return(0,s.jsx)(e,{...i,ref:r})});return n.displayName=`withBlockSettings(${e.displayName||e.name})`,n}}function bn(){const t=(0,Ce.DX)(),e=tn(),n=li(),o=Ro(),r=ks();if(e==null)return null;const a=r?nh(r.family,r.variant):{},i=Dj({effectiveBackgroundType:o,blockBackgroundColor:e.backgroundColor,familyBackgroundColor:n?.backgroundColor,courseBackgroundColor:t?.theme?.blockBackgroundColor,blockTypeFallbackColor:a.backgroundColor,settingsBackgroundColor:e.backgroundColor}),l={...e,backgroundType:o,backgroundColor:i};return Sj(l)}const sk="backgroundColor";function nk(t){return e=>{const n=Zf.forwardRef((o,r)=>{const a=bn(),i={...o,[t??sk]:a};return(0,s.jsx)(e,{ref:r,...i})});return n.displayName=`withBackgroundColor(${e.displayName||e.name})`,n}}function ih({children:t,...e}){const n=ks(),o=tn(),r=(0,Ce.kJ)(),a=(0,h.useMemo)(()=>{const i=n==null?e:Ij(n.family,n.variant,e);return{courseColor:r,...o,...i}},[n,e,r,o]);return(0,s.jsx)(Yf.Provider,{value:a,children:t})}var Xf=c(98945),ok=c(7517),rk=c(61813),Jf=c(19689),ak=c(94439),ch=c.n(ak),ik;const jee=t=>{const e=t.value.length;t.focus(),t.setSelectionRange(e,e)},kee=t=>{const e=ik(["current","editor"],t);if(!e)return null;const n=e.value.length;return e.focus(),e.setSelectionRange(n,n),t};function qf(t){return Array.prototype.slice.call(t)}function lh(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,i=n.top+n.height/2,l=o*.25;return Math.abs(a-i)<l}return e==="end"?n.bottom<=o:n.top>=0&&n.left>=0&&n.bottom<=o&&n.right<=r}function ev({anchor:t,popover:e,positionX:n}){if(!t||!e)return null;const o=t.getBoundingClientRect(),a=window.getComputedStyle(t).direction==="rtl",i=window.getComputedStyle(e),l=parseFloat(i.marginTop),u=e.offsetWidth,d=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},m=o.top+o.height+e.offsetHeight+l>d.height?o.top-(l*2+e.offsetHeight):o.top+o.height;let p;if(n==="center"){const f=o.left+o.width/2;p=a?d.width-f-u/2:f-u/2}else n==="right"?p=a?d.width-o.left-u:o.right-u:p=Math.min(a?d.width-o.right:o.left,d.width-u);return{left:p,top:m}}const di="group",ck="tablist",lk="tabpanel",dk="tab",Aee="radio",uk=({element:t,isHidden:e})=>{t&&t.setAttribute("aria-hidden",e?"true":"false")},Hc=({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 dh=c(43241);const tv=":focus{outline: none}",hk=":focus:not(:focus-visible){outline: none}",sv="focus-ring-style",uh=()=>document.getElementById(sv)||mk(),mk=()=>{const t=document.createElement("style");return t.id=sv,document.head.appendChild(t),t},Bd=0,Hd=-1,pk=()=>{const t=uh();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=tv},0),(0,K.JD)((0,dh.xi)(!1))}),window.addEventListener("keydown",nv)},nv=t=>{const e=t.target,n=uh();(yd(t)||ai(t)&&!e.classList.contains("ignore-prefers"))&&(n.innerHTML="",(0,K.JD)((0,dh.xi)(!0)))},ov=({focusVisible:t}={})=>uh().innerHTML=t?hk:tv,ui=t=>t?Bd:Hd,rv=(t,e)=>{const n=t||{},o=e!==Bd;n.tabIndex=e,uk({element:t,isHidden:o})},hh=({element:t,selector:e,tabIndex:n})=>{qf(t.querySelectorAll(e)).forEach(r=>{rv(r,n)})},av=({list:t,index:e})=>{e>=0&&e<ps()(t)&&t[e].focus()},fk=({list:t,currentIndex:e})=>{const n=kn()(e||0),o=n<ps()(t)?n:0;return av({list:t,index:o}),o},vk=({list:t,currentIndex:e})=>{const n=ch()(e||ps()(t));return av({list:t,index:n}),n};var Fc=c(87983),hi=c(18189),gk=c(87686),rs=c.n(gk),Ck=c(69214),mi=c.n(Ck),xk=c(99099),mh=c.n(xk),bk=c(30349),yk=c.n(bk);const Lk=O1()(mh()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),rs()("#FFF")),Ek=mi()({color:Lk}),Sk=({accentContrast:t,bodyTypeface:e,color:n,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const i=(0,h.useMemo)(()=>{const d=!(0,mt.Wn)(n),m=(0,mt.xD)(n),p=t===k.Em.DARK||t===k.Em.AUTO&&m===k.Em.DARK;return!r&&(t&&p||!t&&d)?[lt.S6.DARK,lt.S6.LIGHT]:[lt.S6.LIGHT,lt.S6.DARK]},[t,n,r]),[l,u]=i;return(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:yk()({bodyTypeface:e,colorThemeRGB:(0,hi.A)(n)?.slice(0,3),colorTheme:n,colorThemeContrast:l,colorThemeContrastComplementary:u,colorThemeContrastComplementaryRGB:(0,hi.A)(u)?.slice(0,3),colorThemeContrastRGB:(0,hi.A)(l)?.slice(0,3),colorThemeTint:(0,mt.WA)(n),colorThemeTransparent:n+"1A",headingTypeface:o,uiTypeface:a})}})},ph=$e()(Sk,Ek);ph.displayName="Branding",ph.propTypes={bodyTypeface:Qe().string,color:Qe().string.isRequired,headingTypeface:Qe().string,uiTypeface:Qe().string};const Tk=(0,h.memo)(ph);var Ik=c(15648);const iv="riseUnsupportedBrowser",Nk={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},jk=t=>new RegExp(Nk[t],"i").test(window.navigator.userAgent);class cv extends Ik.Component{render(){return jk(this.props.env)&&!window.sessionStorage.getItem(iv)?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(iv,"true"),this.forceUpdate()}}cv.propTypes={env:Qe().string.isRequired};const Po={get isInstantLink(){return!!window.InstantLinks?.publicId}},pi=ne("cover");function kk(){const{categories:t}=(0,Ce.DX)();return!Array.isArray(t)||t.length===0?null:(0,s.jsxs)("section",{className:pi("categories-section"),children:[(0,s.jsx)("h2",{className:pi("categories-title"),children:"Topics"}),(0,s.jsx)("ul",{className:pi("categories-list"),role:"list",children:t.map(e=>(0,s.jsxs)("li",{className:pi("categories-item"),role:"listitem",children:[(0,s.jsx)(pE,{className:pi("categories-icon")}),(0,s.jsx)("span",{className:pi("categories-item-wrap"),children:e})]},e))})]})}const Ak=Ya("CoverCompletedInformation"),Rk=Ya("CoverDueDate"),Pk=Ya("CoverRequirements"),wk=ne("cover"),Mk=t=>{const{courseId:e,coursePartnerContent:n,hasPartnerContent:o,publishedAt:r,tenantId:a}=t;return o?(0,s.jsx)(Cd,{type:"partner-content",children:(0,s.jsx)(Kp,{courseId:e,partnerContent:n,publishedAt:r,tenantId:a})}):null},Ok=At("CoverCourseInfo",t=>{const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t,l=wk("details-content-aside",{logo:o});return(0,s.jsxs)("div",{className:l,children:[Ge.BI&&(0,s.jsx)(y1,{}),(0,s.jsx)(Mk,{courseId:e,coursePartnerContent:n,hasPartnerContent:r,publishedAt:a,tenantId:i}),Ge.BI&&!r&&(0,s.jsx)(Ox,{}),Ge.BI&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Pk,{}),(0,s.jsx)(Rk,{}),(0,s.jsx)(Ak,{}),(0,s.jsx)(kk,{})]})]})}),Dk=ne("cover"),Bk=At("CoverDescription",()=>{const t=(0,Ce.DX)(),{navigation:e}=t,n=(0,at.QQ)(t.description),o=e?"description":"description-no-outline";if(!n)return null;const r=_a("description"),a=(0,gs.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":r};return(0,s.jsx)("div",{...a,children:(0,s.jsx)(Cd,{type:o,children:(0,s.jsx)(St,{className:Dk("details-content-description"),value:h1(n)},"text")})})}),lv=ne("cover"),Hk=({className:t=lv("details-logo"),imageClassName:e=lv("details-logo-image")})=>{const n=(0,Ce.DX)()??{},o=(0,at.QQ)(n.media)?.image??{},{height:r,key:a,width:i,scalar:l=lt.C_.SMALL.value}=o,u={width:i*l,height:r*l};if(!a)return null;const d=(0,Gt.ME)(o);return(0,s.jsx)("div",{className:t,"data-testid":"cover-details-logo",children:(0,s.jsx)("img",{alt:"",className:e,"data-testid":"cover-details-logo-image",height:u.height,src:d,width:u.width})})},Fk=(t,e)=>{const n=os()(["lessons",e],t),o=gt()(0,["percentComplete"],n),r=os()(["passed"],n);return{isComplete:os()(["isComplete"],n),percentComplete:o,passedQuiz:r}};var dv;const zk=ne("lesson-icon"),uv={embed:"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",map:"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",process:"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",sorting:"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",timeline:"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",video:"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",bullet:"M24 28a4 4 0 1 0 8 0 4 4 0 1 0-8 0"},Vk=t=>uv[t]||uv.bullet,Oee=({fill:t="#000",height:e=56,type:n="bullet",width:o=56})=>dv("svg",{className:zk("",{[n]:!0}),height:e,viewBox:`0 0 ${o} ${e}`,width:o,children:dv("path",{d:Vk(n),fill:t})});function Uk({icon:t,...e}){switch(t){case lt.xA.ARTICLE:return(0,s.jsx)(v4,{...e});case lt.xA.INTERACTION:return(0,s.jsx)(s7,{...e});case lt.xA.QUIZ:return(0,s.jsx)(N8,{...e});case lt.xA.VIDEO:return(0,s.jsx)(g7,{...e});default:return(0,s.jsx)("i",{className:"icon icon-Master-02"})}}const Dee=null;var zc=c(58256);function ao(){const t=(0,te.RQ)("/lessons/:currentLessonId"),e=(0,te.RQ)("/lessons/:currentLessonId/:mode");return t?.params?.currentLessonId??e?.params?.currentLessonId}var Jo=c(13218);const $k=At("LessonProgressGraphic");function Fd({canComplete:t,id:e,isDark:n,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:i,scope:l}){const{color:u,navigationStyle:d}=kt(),m=Pn(e),p=ao(),f=Al(e),v=Rl(e),C=ts(e),g=(0,nt.useLabelsMap)(),b=C?.type!=null,L=m?.isComplete,y=e===p,E=m?.percentComplete??0,x=(0,h.useCallback)(()=>{(0,K.JD)((0,Jo.eQ)(e))},[e]),S=(0,h.useCallback)(()=>{(0,K.JD)((0,Jo.ss)(e))},[e]);return(0,s.jsx)(nf,{canComplete:t,color:u,hasRestriction:b,isComplete:L,isCurrentLesson:y,isDark:n,isEnabled:o,isFailed:f,isPassed:v,isTooltipVisible:r,labels:g,navigationStyle:d,onHideTooltip:a,onMarkComplete:x,onMarkReset:S,onShowTooltip:i,percentComplete:E,progressGraphic:$k,scope:l})}const Wk=ne("overview-list-item");function Gk({className:t,id:e,last:n}){const o=(0,Lt.Z)(),r=ao(),{color:a,isLegacyCourse:i,navigationStyle:l,theme:u}=kt(),{accentContrast:d}=u,{icon:m,title:p}=q(e)??{},f=cs(p),v=Pn(e),C=Al(e),g=Rl(e),b=ts(e),L=(0,nt.useLabelsMap)(),y=(0,gs.uW)(p)?{"data-l10n-id":p.l10nId}:{"data-change-path":up(e,"title")},E=v?.isComplete,x=v?.percentComplete??0,S=b?.type!=null,[T,N]=(0,h.useState)(!1),j=(0,h.useCallback)(()=>N(!0),[]),O=(0,h.useCallback)(()=>N(!1),[]),D=W()("overview-list__li",{"overview-list__li--last":n}),B=W()(t,"overview-list-item"),R=(0,h.useCallback)(H=>{const{currentTarget:{hash:w}}=H;H.preventDefault(),zc.Ay.Events.scrollEvent.register("end",()=>{Zo(()=>{o(w.slice(1))},"cover-to-lesson"),zc.Ay.Events.scrollEvent.remove("end")}),zc.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,s.jsx)("li",{...y,className:D,"data-testid":`overview-list-item-${e}`,role:"listitem",children:(0,s.jsx)(Dc,{className:B,isTooltipEnabled:!0,lessonId:e,onBlur:O,onClick:R,onHideProgressTooltip:O,onShowProgressTooltip:j,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,s.jsx)(Qk,{accentContrast:d,color:a,hasRestriction:S,isComplete:E,isCurrentLesson:e===r,isFailed:C,isLegacyCourse:i,isPassed:g,isTooltipVisible:T,labels:L,lessonIcon:m,lessonId:e,lessonTitle:f,navigationStyle:l,onHideTooltip:O,onShowTooltip:j,percentComplete:x,progressGraphic:Kk,scope:lt.by.COVER})})})}const Kk=At("LessonProgressGraphic");function _k({isTooltipVisible:t,lessonIcon:e,lessonId:n,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:i}){const l=Wk("progress-circle");return(0,s.jsxs)("div",{className:l,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,s.jsx)(Uk,{icon:e})}),(0,s.jsx)("span",{className:"overview-list-item__title","data-testid":`overview-list-item-title-${n}`,children:o}),(0,s.jsx)(Fd,{canComplete:!1,id:n,isDark:!1,isEnabled:!0,isTooltipVisible:t,onHideTooltip:r,onShowTooltip:a,scope:i})]})}const Qk=At("OverviewListItemLinkContent",_k),Zk=({value:t,fallback:e})=>{const n=(0,at.QQ)(t),o=(0,Et.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 Yk({value:t,children:e}){const n=(0,at.QQ)(t);return e(n)}const bs=Zk,Xk=ne("overview-list"),Jk=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),[]),qk=At("OverviewListSectionTitle",({className:t="",...e})=>{const n=xd()(["Default"],e);return(0,s.jsx)("h2",{...n,className:`${t} overview-list__section-title`})}),eA=({courseProgress:t,lessons:e})=>{const n=(0,nt.useLabelsMap)(),o=Jk(e);return(0,s.jsx)("nav",{"aria-label":n?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[i={},...l]=r,{title:u,type:d}=i,m=d==="section",p=m?l:r,f=Xk("list",{sectionless:!m});return(0,s.jsxs)("section",{children:[m&&u&&(0,s.jsx)(qk,{children:(0,s.jsx)(bs,{value:u})}),(0,s.jsx)("ol",{className:f,role:"list",children:p.map((v,C)=>{const{passedQuiz:g}=Fk(t,v.id);return(0,s.jsx)(Gk,{id:v.id,last:p.length>1&&C===p.length-1,passedQuiz:g},v.id)})})]},a)})})};function tA(t){const e=Ht(t),n=Xn(t),o=nc(t),r=Ur({course:e,courseProgress:n});return{course:e,courseProgress:n,lessons:o,restrictingQuiz:r}}const sA=(0,h.memo)((0,K.Ng)(tA)(eA));function nA(t){return t?.partnerContent?.content??[]}function fh(){return(0,K.d4)(nA)}const oA=t=>Object.values(lt.C_).find(e=>e.value==t);function rA(t){return(0,h.useMemo)(()=>oA(t)??lt.C_.SMALL,[t])?.label.toLowerCase()}const fi=ne("cover"),aA=At("CoverDetails",({reverseColumns:t})=>{const e=Ns(1200),{description:n,id:o,media:r,navigation:a,partnerContentId:i,publishedAt:l,selectedAuthorId:u,tenantId:d}=kt(),m=fh(),p=xs()(It()("id",u),m),f=!!i&&p,v=cs(r)?.image,C=!ls()(v),g=!n||!a,b=!n&&!a,L=!!(f||Ge.BI),y=fi("details",{"rise-com":Ge.BI,"rise-com-authoring":Ge.BI&&!l}),E=fi("details-content-wrap",{columns:L,logo:C}),x=fi("details-content",{"no-description-or-outline":g}),S=fi("details-logo",{centered:b,"no-description-or-outline":g,"has-partner-content":!!i}),T=L&&(0,s.jsx)(Ok,{courseId:o,coursePartnerContent:p,hasLogo:C,hasPartnerContent:f,publishedAt:l,tenantId:d}),N=rA(v?.scalar),j=fi("details-logo-image",{[N]:!0}),O=fi("details-description-outline");return(0,s.jsx)("section",{className:y,"data-testid":"cover-details",children:(0,s.jsxs)("div",{className:E,children:[!e&&t&&T,(0,s.jsxs)("div",{className:x,children:[(0,s.jsx)(Hk,{className:S,imageClassName:j}),(0,s.jsxs)("div",{className:O,children:[n&&(0,s.jsx)(Bk,{}),e&&T,a&&(0,s.jsx)(Cd,{type:"outline",children:(0,s.jsx)(sA,{})})]})]}),!e&&!t&&T]})})}),iA=At("CoverHeader"),cA=At("CoverLayout");var lA=c(40774),dA=c(24177),uA=c.n(dA);const hA=["[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]","aal-tab","aal-tab-panel"].map(t=>`${t}:not([tabindex="-1"]):not([hidden]):not([aria-hidden="true"])`).join(", "),hv=(t,e=!1)=>n=>{const o=mv(n);if(o.length===0)return;const r=t>=o.length&&e?0:t;return uA()(r,o)},mv=t=>t?Array.from(t.querySelectorAll(hA)).filter(e=>window.getComputedStyle(e).display!=="none"):[],pv=hv(0),mA=hv(-1),vh=t=>pv(t)?.focus?.();function pA(){const t=(0,h.useRef)(null);function e(n){const o=pv(t.current),r=mA(t.current);yd(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 gh,fA,Ch=c(15648);const xh=Ch.createContext(null);xh.displayName="UndoManagerContext";function zee(t){const n=fA("rise-undo")===!0?t.undoManager:null;return gh(xh,{value:n,children:t.children})}function fv(){return Ch.useContext(xh)}function Vee(t){function e(n){const o=fv();return gh(t,{...n,undoManager:o})}return e.displayName=`withUndoManager(${t.displayName||t.name})`,e}function vv(){const t=fv();Ch.useEffect(()=>{if(t!=null)return t.disable(),()=>t.enable()},[t])}function Uee(t){function e(n){return vv(),gh(t,{...n})}return e.displayName=`withDisableUndoManager(${t.displayName||t.name})`,e}const yn=ne("modal"),gv=h.forwardRef((t,e)=>{const{children:n,className:o,"data-testid":r,darkOverlay:a,disableBackgroundScroll:i,disableCloseOnOverlayClick:l,disableCloseOnEscape:u=!1,focusFirstInput:d=!0,footer:m,forceToTop:p=!1,fullscreen:f=!1,heading:v,hideCloseButton:C=!1,hideHeader:g=!1,skipDialogClose:b=!1,useTopLayer:L=!0,onCancel:y,onClose:E=qs.lQ,onClickBack:x,onCloseBubbles:S=!1,onOverlayClick:T,scroll:N=!1,subHeading:j,subText:O,width:D}=t;vv();const B=pA(),R=(0,h.useRef)(null),H=(0,h.useCallback)(()=>{const Z=B.current;!b&&Z?.open&&Z.close(),E()},[E,B,b]);(0,h.useEffect)(()=>{const Z=Y=>{un(Y)&&!u&&(Y.preventDefault(),Y.stopPropagation(),y?.(Y),H())};return document.addEventListener("keydown",Z,!S),()=>{document.removeEventListener("keydown",Z,!S)}},[u,y,H,S]),(0,h.useEffect)(()=>{const Z=B.current;return L?Z?.showModal():Z?.show(),()=>{Z?.close()}},[B,L]),(0,h.useEffect)(()=>{if(d&&B.current){const Z=mv(B.current).find(X=>X.tagName==="INPUT"||X.tagName==="TEXTAREA"||X.tagName==="SELECT"),Y=Z||R?.current;Y?.focus(),Y instanceof HTMLTextAreaElement&&Y.setSelectionRange(Y.value.length,Y.value.length)}},[d,B]),(0,h.useEffect)(()=>(i&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{i&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[i,B]);const w=yn({"force-to-top":p}).mix(o),M=yn("content",{"with-footer":!!m,"force-scroll":!!N}),z=yn("overlay",{dark:!!a});return(0,s.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:w.toString(),"data-testid":r,onClose:H,ref:Z=>{B.current=Z,e&&(e.current=Z)},role:"dialog",children:[(0,s.jsx)("div",{id:"modal-portal"}),(0,s.jsx)("div",{className:z,onClick:l?void 0:T||H}),(0,s.jsxs)("div",{className:yn("dialog",{fullscreen:f}),style:D&&!f?{width:D}:{},children:[(!g||!C)&&(0,s.jsxs)("div",{className:yn("heading-wrapper"),children:[(0,s.jsxs)("div",{className:yn("heading-flexbox"),children:[!g&&(0,s.jsxs)("div",{className:yn("header"),children:[x&&(0,s.jsx)(Ot.ArcButton,{"aria-label":"back to previous page",hierarchy:"secondary",icon:"fa-regular fa-arrow-left",layout:"icon",onClick:x,shape:"square",size:"md",type:"button"}),(0,s.jsxs)("h1",{className:yn("heading"),id:"modal-heading",children:[v,(0,s.jsx)("span",{className:yn("subheading"),children:j})]})]}),!C&&(0,s.jsx)("button",{"aria-label":"close dialog",className:yn("close"),onClick:H,ref:R,type:"button",children:(0,s.jsx)(it,{className:"icon",name:"close"})})]}),O?(0,s.jsx)("h2",{className:yn("subtitle"),children:O}):[]]}),(0,s.jsx)("div",{className:M,children:n}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:yn("footer-shadow")}),(0,s.jsx)("div",{className:yn("footer"),children:m})]})]})]})});var bh=c(21730),ys=c(10104);const Cv=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),vA=(t,e)=>{const n=t?.toLowerCase();try{return e?.[n]?.authorDisplayName??Cv.of(t)}catch(o){return console.warn(`Language ${t} invalid`,o),t}},gA=(t,e)=>{try{return e?.[t]?.learnerDisplayName??Cv.of(t)}catch(n){return console.warn(`Language ${t} invalid`,n),t}},yh=()=>{const t=(0,at.iR)(),e=(0,Et.vC)(t);return(0,h.useCallback)(o=>vA(o,e),[e])},CA=()=>{const t=(0,at.iR)(),e=(0,Et.vC)(t);return(0,h.useCallback)(o=>gA(o,e),[e])},vi=ne("locale-selector"),Lh=({onClose:t})=>{const e=(0,te.zy)(),n=(0,Ce.DX)(),o=(0,at.MQ)(),r=(0,at.jc)(),a=(0,at.bs)(),i=a?.length?a:o&&r?r?.map(S=>S.locale):void 0,[l,u]=(0,h.useState)(!1),d=l&&(i?.length||0)>1,m=(0,Me.A)(d),p=cs(n.title),{currentLocale:f,setCurrentLocale:v}=(0,Vt.nY)(),C=CA(),g=(0,Ce.vU)(),[b,L]=(0,h.useState)(!1),y=(0,h.useCallback)(S=>{(0,qe.xS)(S),v(S)},[v]),E=()=>{(0,K.JD)((0,bh.Wp)(!1))};(0,h.useEffect)(()=>{m&&!d&&t?.()},[t,m,d]),(0,h.useEffect)(()=>{if(!i||b||o===void 0||!r)return;if(i.length===1){y(i[0]),L(!0);return}const S=(0,qe.y4)(void 0),T=(0,qe.JK)()??"";if(T!==""){y(T),L(!0),u(!1);return}S?.[lA.WY]==null&&T===""?u(!0):(u(!1),E());const j=(navigator.language??"en-US").toLowerCase(),O=i.find(D=>D.toLowerCase()===j);y(O?j:i[0]),L(!0)},[i,e,y,b,o,r,u]);const x=S=>{S.preventDefault();const T=S.target.value;y(T)};return!d||o===void 0||!r?null:(0,s.jsx)(ys.B1,{classNames:"modal",timeout:400,children:(0,s.jsx)(gv,{className:vi("modal"),disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:E,children:(0,s.jsxs)("div",{className:vi("container"),children:[(0,s.jsx)("div",{className:vi("heading"),children:g.l10nChooseLanguage}),(0,s.jsx)("div",{className:vi("course-title"),children:p}),(0,s.jsx)("div",{className:vi("selector"),children:(0,s.jsx)("select",{onChange:x,value:f,children:i.map(S=>(0,s.jsx)("option",{value:S,children:C(S)},S))})}),(0,s.jsx)("div",{className:vi("footer"),children:(0,s.jsx)(Ot.ArcButton,{onClick:E,size:"lg",children:g.l10nChooseLanguageContinue})})]})})})};var xA=c(15648);const bA=ne("cover-container"),xv=()=>document.querySelector("h1")?.focus({preventScroll:!0});function yA({didNavigate:t}){const n=(0,nt.useLabelsMap)()?.overviewPageTitleSuffix,o=Co();return xA.useEffect(()=>{t&&xv()},[t]),(0,s.jsxs)(ra,{title:Bc(`${o} - ${n}`),children:[(0,s.jsx)("main",{children:(0,s.jsx)("div",{className:bA({}),children:(0,s.jsxs)(cA,{children:[(0,s.jsx)(iA,{}),(0,s.jsx)(aA,{})]})})}),(0,s.jsx)(Lh,{onClose:xv})]})}const bv=yA;var Eh=c(58510);const yv=(0,Tc.action)(Eh.l6),Vc=(0,Tc.action)(Eh.ju),xr=(0,Tc.action)(Eh.Y8),Lv=(0,h.createContext)(void 0);function zd(){const t=(0,h.useContext)(Lv);return t||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,closeTranscript:null,lessonId:"",uploadAudio:null,aiEnabled:!1,aiWriterContext:void 0,removeMediaRecordType:void 0,removeItemMedia:void 0,handleOpenMediaModal:void 0,showAssetLibraryDialog:void 0,hideAssetLibraryDialog:void 0,handleDelete:void 0})}function Ev(t){function e(n){const o=zd();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`WithMediaContextWrapper(${t.name})`,e}function io(t){return t.refs?Xa()("audio-id__refs_"+t.refs.toLowerCase()):""}function Sh(t){if(t)return`audio-transcript--${t}`}function Sv(t){if(t)return`audio-player-transcript-toggle--${t}`}function LA({children:t,lessonId:e,mode:n="readonly",openTranscript:o,closeTranscript:r,disableTranscriptButton:a=!1}){const i=(0,ws.y4)(),d={mode:n,lessonId:e||"",openTranscript:o||(({item:m,refs:p})=>{if(!m)return;const f="media"in m?m.media:null;return i(yv({audioPlayerId:io({refs:p}),transcriptMedia:f}))}),closeTranscript:r||(()=>i(Vc())),disableTranscriptButton:a,uploadAudio:null,aiEnabled:!1,aiWriterContext:void 0,removeMediaRecordType:void 0,removeItemMedia:void 0,handleOpenMediaModal:void 0,showAssetLibraryDialog:void 0,hideAssetLibraryDialog:void 0,handleDelete:void 0};return(0,s.jsx)(Lv.Provider,{value:d,children:t})}const Tv=ne("course-exit");function Iv(t){const e=(0,nt.useLabelsMap)(),{className:n,lmsOptions:o,style:r}=t;return o?.enableExitCourse?(0,s.jsx)("div",{className:Tv("wrapper"),children:(0,s.jsx)("button",{className:Tv("button").mix(n),onClick:Ge.NS,style:r,type:"button",children:e?.courseExit})}):null}const Th=ne("nav-control"),EA=()=>{const[t,e]=(0,h.useState)(!1);return(0,ss.A)(wf,()=>e(!0)),(0,ss.A)(K1,()=>e(!1)),t},SA=({"aria-controls":t,isNavOpen:e,toggleNav:n,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:i,...l}=(0,Ce.DX)(),u=(0,h.useRef)(null),[d,m]=(0,h.useState)(0),p=(0,nt.useLabelsMap)(),f=Ec(),v=Jn(),C=EA(),b=!!(0,h.useMemo)(()=>l.lessons?.find(T=>T.id===v),[l.lessons,v])?.settings?.timer,L=a?.enableExitCourse,y=b||L,E=l.navigationType===k.br.COMPACT,x=E?"fixed-course-exit":void 0;(0,h.useEffect)(()=>{u.current=document.querySelector(".page-wrap");const N=document.querySelector(".lesson-nav--previous")?.clientHeight??60,j=!i||r===k.AY.FLOATING&&!f;function O({target:D}){const B=D?.scrollTop??0,R=N-B;m(R)}return C&&!j?u.current.scrollTop===0?m(N):u.current.addEventListener("scroll",O):m(0),()=>u.current.removeEventListener("scroll",O)},[r,f,C,i]);const S=(0,h.useCallback)(()=>{const T=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(u.current&&T){const N=u.current.offsetWidth-u.current.clientWidth||0;T.style.maxWidth=`calc(100% - ${N}px)`}},[]);return(0,h.useLayoutEffect)(()=>{y&&S()},[y,S]),(0,s.jsx)("div",{className:Th("wrapper"),children:(0,s.jsxs)("div",{className:Th("menu",{"is-timed-quiz":b,"nav-off":o,"top-nav-bar":y}),style:{marginTop:d},children:[!o&&(!E||f)&&(0,s.jsx)("button",{"aria-controls":t,"aria-expanded":e,"aria-label":e?p?.a11yNavigationMenuClose:p?.a11yNavigationMenuOpen,className:Th("button"),onClick:n,type:"button",children:(0,s.jsx)(it,{classNameIcon:"page-menu-toggle__icon",name:"bars-regular"})}),(0,s.jsx)(Iv,{className:x,lmsOptions:a})]})})};var Ls=c(75215);const Nv=ne("nav-compact"),TA=At("NavCompactHeaderCounter",t=>{const{lessonPosition:e,labelLessonName:n,labelLessonPreposition:o,totalLessons:r}=t;return e<=0?null:(0,s.jsx)("div",{className:Nv("header-counter"),"data-testid":"nav-compact-counter",children:`${n} ${e} ${o} ${r}`})}),IA=At("NavCompactHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:i}=t;return(0,s.jsxs)("div",{className:Nv("header-progress"),"data-testid":"nav-compact-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(kd,{"aria-hidden":i,"aria-label":a,progress:r,runnerClass:e,trackClass:o})]})}),NA=({closeNav:t,isExpanded:e,openNav:n})=>{const o=(0,Lt.Z)(),r=(0,K.wA)(),a=Ki(),i=kt(),l=Co(),u=dr(),d=(0,nt.useLabelsMap)(),m=Bt(),p=Dr(),f=Jn(),v=q5(),C=(0,h.useMemo)(()=>i?.lessonsOnly?.length??0,[i?.lessonsOnly]),g=(0,h.useMemo)(()=>v[f]??-1,[v,f]),b=a?.navigationStyle,L=(0,h.useMemo)(()=>(0,Rt.FH)(b),[b]),y=(0,h.useCallback)(()=>{e?t():n()},[e,n,t]),E=a?.exportSettings?.webExportSettings,x=!Po.isInstantLink&&(a?.lmsOptions?.disableCoverPage||E?.disableCoverPage),S=(0,h.useCallback)(We=>{We.preventDefault(),Zo(()=>{o("/")},"lesson-to-cover")},[o]),j=`${(0,Ce.Wz)()?`%${u}`:`${u}%`} ${d?.lessonComplete??""}`,{alpha:O,ariaLabel:D,media:B,role:R}=Zr("coverImage"),H=(0,h.useMemo)(()=>(0,Rt.b9)({alpha:O,color:a?.theme?.coverImageColor,media:B}),[O,a?.theme?.coverImageColor,B]),w=W()("nav-compact__header",{"nav-compact__header--collapsed":!e}),M=W()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!e}),z="nav-compact__header-inner",Z="nav-compact__header-control",Y=W()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!e}),X=W()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!e}),pe=W()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!e}),Le=W()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!e}),ke="nav-compact__header-strip",Be=(0,h.useCallback)(()=>{r((0,Ls.ts)(!m?.active))},[r,m?.active]);return(0,s.jsxs)("section",{"aria-label":"Course Information",className:w,"data-testid":"nav-compact-header",children:[L&&H&&(0,s.jsx)("div",{"aria-label":D,className:M,role:R,style:H}),(0,s.jsxs)("div",{className:z,children:[(0,s.jsxs)("div",{className:ke,children:[(0,s.jsxs)("div",{className:"nav-compact__header-controls",children:[a?.allowSearch&&p!=="restricted"&&e&&(0,s.jsx)("button",{"aria-label":d?.a11ySearchOpen,className:`${Z} nav-compact__header-search`,"data-testid":"nav-compact-search",onClick:Be,type:"button",children:(0,s.jsx)(Pc,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,s.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-expanded":e,"aria-label":e?d?.a11yNavigationMenuClose:d?.a11yNavigationMenuOpen,className:`${Z} nav-compact__header-toggle`,"data-testid":"nav-compact-toggle",onClick:y,type:"button",children:[e&&(0,s.jsx)(fE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!e&&(0,s.jsx)(vE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,s.jsx)(TA,{labelLessonName:d?.lessonName??"",labelLessonPreposition:d?.lessonPreposition??"",lessonPosition:g,totalLessons:C})]}),(0,s.jsx)("div",{className:"nav-compact__header-title","data-testid":"nav-compact-title",children:x?(0,s.jsx)("span",{className:Y,children:l}):(0,s.jsx)(On,{className:Y,onClick:S,to:"/",children:l})}),(0,s.jsx)(IA,{classProgressRunner:Le,classProgressText:X,classProgressTrack:pe,navExpanded:e,percentComplete:u,percentCompleteText:j})]})]})};var jA=c(55324),jv=c.n(jA),Zee=c(48373),kA=c(17071),kv=c.n(kA),AA=c(70728),RA=c.n(AA),PA=c(9185),wA=c.n(PA),MA,OA,DA,BA,HA;function Av(t,e,n="..."){const o=t?t.toString():"";return o.length>e?o.substr(0,e-1)+n:o}const Yee=t=>HA(e=>OA(e)>t,DA(0,t)),FA=null,zA=t=>FA.test(t),VA=t=>t>=0,UA=t=>t<=100,Xee=t=>t==="",Jee=t=>zA(t)&&UA(t)&&VA(t),qee=t=>String(Number(t)),Rv=$e()(vc()(""),jv()(RA(),0)),ete=$e()(vc()(" "),Bn()(Rv),kv()(" ")),Pv=$e()(vc()(" "),kv()(/(?=[A-Z]|^)/)),tte=t=>t?MA(Rv,BA,Pv)(t):"",ste=$e()(wA(),Pv);function wv({id:t,isEnabled:e,isSectionLesson:n,last:o}){const{navigationStyle:r}=kt(),a=Oe(t),i=ao(),l=h0(t),u=(0,h.useMemo)(()=>(0,Rt.I8)(r),[r]),d=t===i,m=Av(a||"",45),[p,f]=(0,h.useState)(!1),v=(0,h.useCallback)(()=>f(!0),[]),C=(0,h.useCallback)(()=>f(!1),[]),g=n?"nav-compact__outline-section-item":"nav-compact__outline-item",b=(0,s.jsx)(Fd,{canComplete:l,id:t,isDark:u,isEnabled:e,isTooltipVisible:p,onHideTooltip:C,onShowTooltip:v,scope:lt.by.COMPACT});return(0,s.jsxs)("li",{className:"nav-compact__outline-list-item","data-testid":`nav-compact-lesson-${t}`,role:"listitem",children:[(0,s.jsxs)(Dc,{className:g,dark:u,isCurrentLesson:d,isTooltipEnabled:!l,last:o,lessonId:t,onHideProgressTooltip:C,onShowProgressTooltip:v,showProgressDelay:0,tooltipClassName:`${g}-tooltip`,children:[m,!l&&b]}),l&&b]})}const $A=ne("nav-compact"),WA=({id:t})=>{const e=q(t),n=cs(e?.title),o=$A("outline-section-empty");return(0,s.jsx)("div",{className:o,children:(0,s.jsx)("span",{children:n})})};var gi=c(15648);const GA=({index:t,isEnabled:e,lessonIds:n,id:o})=>{const r=kt(),a=r?.theme,i=r?.themeId,l=a?.navigationSectionsExpanded??!0,u=q(String(o)),d=cs(u?.title),[m,p]=gi.useState(l);gi.useEffect(()=>{p(l)},[l]);const[f,v]=gi.useState(),C=gi.useRef(null),g=`sublistCompact-${t}`,b=String(i),L=W()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!m}),y=W()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!m}),E=W()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!m}),x=gi.useCallback(()=>{p(S=>!S)},[]);return gi.useLayoutEffect(()=>{const S=setTimeout(()=>{C.current&&v(C.current.scrollHeight)},0);return()=>{clearTimeout(S)}},[n.length,b]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":g,"aria-expanded":m,className:E,onClick:x,tabIndex:e?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:d}),(0,s.jsx)(Cf,{className:L})]}),(0,s.jsx)(Oc,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:y,id:g,ref:C,role:"list",style:{maxHeight:f},children:n.map((S,T)=>(0,s.jsx)(wv,{id:S,isEnabled:e&&m,isSectionLesson:!0,last:T===n.length-1},S))})})]})},KA=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a="nav-compact__outline-item nav-compact__outline-section";return ls()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(WA,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(GA,{id:o,index:t,isEnabled:e,lessonIds:r})})},_A=({index:t,isEnabled:e,lessonIds:n})=>Pl(n)?(0,s.jsx)(KA,{index:t,isEnabled:e,lessonIds:n}):n.map((r,a)=>(0,s.jsx)(wv,{id:r,isEnabled:e,isSectionLesson:!1,last:a===n.length-1},r)),QA=t=>t.displayName||t.name||"Component";var ZA=c(25090),YA=c.n(ZA);function XA(t,e,n){const o=[];let r=0;return n.replace(t,function(...a){const i=a.length,l=a[0],u=a[i-1],d=a[i-2],m=u.slice(r,d),p=typeof e=="function"?e(...a):e;return o.push(m,p),r=d+l.length,""}),o.push(n.slice(r)),o}const JA=(t,e)=>(0,s.jsx)("mark",{children:t},e),qA=(t,e)=>XA(new RegExp(YA()(e),"igm"),JA,t);var eR=c(4378),Mv=c.n(eR),tR=c(15447),Ih=c.n(tR),sR=c(19546),nR=c.n(sR),oR=c(17388),rR=c.n(oR),aR=c(3620),iR=c.n(aR);const Ci=iR()(nR()),Ov=Ih()(Mv()(Ci),Mv()(rR())),lte=t=>t.toLowerCase();var cR=c(44617),Dv=c.n(cR),lR=c(96613),Nh=c.n(lR),dR=c(23971),uR=c.n(dR),hR=c(45815),Vd=c.n(hR),mR=c(32708),br=c.n(mR),pR=c(42094),Bv=c.n(pR),fR=c(45830),vR=c.n(fR),gR=c(69451),CR=c.n(gR),xR=c(79479),bR=c.n(xR),yR=c(32519),LR=c.n(yR),ER=c(32325),SR=c.n(ER),TR,IR;const NR=t=>t===-1,jR=t=>t>=0,kR=br()(3,(t,e,n)=>jv()(t,n,e)),jh=br()(3,(t,e,n)=>n[t]==e),dte=br()(3,(t,e,n)=>fs()(bo()(jh("id",e)),ni()(NR,rs()(n),kR(t,n)))(n)),ute=t=>IR(TR(jh("id",t))),hte=br()(3,(t,e,n)=>vR()(e,n[t],LR()(t,1,n)));function AR(t,e){const n=[];for(const o of e)if(n.push(o),t(o))break;return n}const RR=br()(2,(t,e)=>$e()(Bv(),Cs()(uR()(t)),SR())(e)),Hv=br()(2,(t,e)=>$e()(CR(),RR((n,o)=>e(o)))(t)),Fv=br()(2,(t,e)=>Cs()($e()(Fp()(fr())(e),t))),PR=Nh()(bR()(Dv(),0)),zv=$e()(Array.from,Array),Vv=qr()((t,e)=>zv(e).map(()=>t)),wR=qr()((t,e,n,o)=>zv(n).map((r,a)=>a===o?e:t)),mte=br()(3,(t,e,n)=>fs()(bo()(jh(t,e)),jR)(n));function pte(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,i=t+r;return i>n.length?n.slice(n.length-e):a>=0?n.slice(a,i):n.slice(0,e)}const Ud=(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},fte=qr()((t,e,n)=>n>=t&&n<e),Uv=t=>t<10?`0${t}`:String(t),MR=t=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(t),$v=t=>t.reduce((e,n)=>isNaN(n)||n==null?e:e+n,0),OR=At("NavCompactOutline",({className:t="",isEnabled:e,lessonIdGroups:n})=>{const o=(0,nt.useLabelsMap)(),r=W()(t,"nav-compact__outline",{"nav-compact__outline--collapsed":!e});return(0,s.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,"data-testid":"nav-compact-outline",id:"nav-compact-outline",children:Ci(n)&&(0,s.jsx)("ol",{className:"nav-compact__outline-list","data-testid":"nav-compact-outline-list",role:"list",children:n.map((a,i)=>ls()(a)?null:(0,s.jsx)(_A,{index:i,isEnabled:e,lessonIds:a},i))})})});function DR(t){const e=Ht(t);return{lessonIdGroups:u0(t),navigationStyle:e.navigationStyle}}const BR=(0,K.Ng)(DR)(OR);var HR=c(15648);const FR=()=>{const[t,e]=HR.useState(!1);return(0,ss.A)(Mf,()=>e(!0)),(0,ss.A)(_1,()=>e(!1)),t},Wv=ne("nav-compact"),Gv="nav-content-compact",zR=({closeNav:t,coverImageColor:e,isExpanded:n,navigationStyle:o,openNav:r,progressIndicatorStyle:a,translateY:i},l)=>{const u=(0,h.useMemo)(()=>(0,Rt.I8)(o),[o]),d=(0,h.useMemo)(()=>o===k.Py.LIGHT_ACCENT||o===k.Py.DARK_ACCENT,[o]),m=FR(),p=(0,h.useMemo)(()=>(0,Rt.FH)(o),[o]),f=a===k.Y2.CIRCULAR_FILL,v=a===k.Y2.INCOMPLETE_COMPLETE,C=(0,h.useMemo)(()=>p&&e===k.df.LIGHT,[p,e]),g=Wv({accent:d,dark:u,light:!u,"image-dark-overlay":p&&!C,"image-light-overlay":p&&C,"progress-circular-fill":f,"progress-incomplete-complete":v,collapsed:!n,navNextIsVisible:m}),b=Wv("wrap",{collapsed:!n}),L={transform:`translateY(${i}px)`};return(0,s.jsx)("div",{className:g,"data-testid":"nav-compact",id:Gv,ref:l,style:L,children:(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)(NA,{closeNav:t,isExpanded:n,openNav:r}),(0,s.jsx)(Oc,{inert:!n,children:(0,s.jsx)(BR,{isEnabled:n})})]})})};function VR(t){return Ht(t).buttonNavigationStyle==="FULL"?Math.round(-(t.ui.lessonNavNextButton?.intersectionRect?.height??0)):0}function UR(t){const{color:e,navigationStyle:n,theme:o}=Ht(t),r=o?.coverImageColor,a=o?.progressIndicatorStyle,i=VR(t);return{color:e,coverImageColor:r,navigationStyle:n,progressIndicatorStyle:a,translateY:i}}const $R=$e()((0,K.Ng)(UR,null,null,{forwardRef:!0}),h.forwardRef)(zR);var Kv=c(24781);const _v=Object.assign((0,h.createContext)(null),{displayName:"OverlayNavControlContext"});function WR(t){const{children:e,closeNav:n,openNav:o}=t,[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>{a(!0)},[]),l=(0,h.useCallback)(()=>{a(!1)},[]);return(0,s.jsx)(_v.Provider,{value:{closeNav:n,openNav:o,openSearch:i,closeSearch:l,searchActive:r},children:e})}const $d=h.useContext.bind(null,_v),Wd=ne("nav-overlay"),GR=({className:t})=>{const{navigationStyle:e}=kt(),{lessonComplete:n}=(0,nt.useLabelsMap)(),o=(0,Ce.Wz)(),r=dr(),i=`${o?`%${r}`:`${r}%`} ${n}`,l=e!==k.qB.ACCENT,u=Wd("header-progress-runner"),d=Wd("header-progress-text"),m=Wd("header-progress-track");return(0,s.jsxs)("div",{className:Wd("header-progress").mix(t),"data-testid":"nav-overlay-progress",children:[(0,s.jsx)(kd,{"aria-hidden":!0,background:!0,disabled:l,progress:r,runnerClass:u,trackClass:m}),(0,s.jsx)("div",{className:d,children:i})]})},qo=ne("nav-overlay"),KR=()=>{const t=kt(),e=(0,Lt.Z)(),n=Co(),{allowSearch:o,lmsOptions:r={}}=t||{},a=Dr(),i=(0,nt.useLabelsMap)(),l=$d(),u=(0,h.useRef)(),d=qo("header-control-btn"),m=t?.exportSettings?.webExportSettings,p=!Po.isInstantLink&&(r?.disableCoverPage||m?.disableCoverPage),f=v=>{v.preventDefault(),Zo(()=>{e("/")},"lesson-to-cover")};return(0,s.jsx)("section",{"aria-label":"Course Information","data-testid":"nav-overlay-header",children:(0,s.jsxs)("div",{className:qo("header-container"),children:[(0,s.jsxs)("div",{className:qo("header-controls"),children:[(0,s.jsx)("button",{"aria-label":i?.a11yNavigationMenuClose,className:d,"data-testid":"nav-overlay-close",onClick:l.closeNav,ref:u,type:"button",children:(0,s.jsx)(Id,{className:qo("header-close-icon")})}),o&&a!=="restricted"&&(0,s.jsx)("button",{"aria-label":i?.a11ySearchOpen,className:d,"data-testid":"nav-overlay-search",onClick:l.openSearch,type:"button",children:(0,s.jsx)(Pc,{className:qo("header-search-icon")})})]}),(0,s.jsxs)("div",{className:qo("header-title-progress-container"),children:[(0,s.jsx)("h1",{className:qo("header-title"),"data-testid":"nav-overlay-title",id:"nav-overlay-title",children:p?(0,s.jsx)("span",{className:qo("header-title"),children:n}):(0,s.jsx)(On,{className:qo("header-title-link"),onClick:f,to:"/",children:n})}),(0,s.jsx)(GR,{})]})]})})},kh=({icon:t,...e})=>{switch(t){case lt.xA.INTERACTION:return(0,s.jsx)(EE,{...e});case lt.xA.QUIZ:return(0,s.jsx)(xE,{...e});case lt.xA.VIDEO:return(0,s.jsx)(SE,{...e});default:return(0,s.jsx)(mE,{...e})}},xi=ne("nav-overlay"),Qv=At("NavOverlayOutlineLesson",({first:t,id:e,isEnabled:n,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=kt(),{icon:i}=q(e),l=Oe(e),u=$d(),d=h0(e),m=(0,Rt.I8)(a),p=xi("outline-item",{section:o}),f=xi("outline-item-link-icon",{quiz:i==="Quiz"}),v=(0,h.useCallback)(()=>{u.closeNav()},[u]),[C,g]=(0,h.useState)(!1),b=(0,h.useCallback)(()=>g(!0),[]),L=(0,h.useCallback)(()=>g(!1),[]),y=(0,s.jsx)(Fd,{canComplete:d,id:e,isDark:m,isEnabled:n,isTooltipVisible:C,onHideTooltip:L,onShowTooltip:b,scope:lt.by.OVERLAY});return(0,s.jsxs)("li",{className:xi("outline-list-item",{first:t,last:r}),"data-testid":`nav-overlay-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(Dc,{className:p.toString(),dark:m,isTooltipEnabled:!d,lessonId:e,onHideProgressTooltip:L,onNavigate:v,onShowProgressTooltip:b,showProgressDelay:null,tooltipClassName:xi("outline-item-tooltip").toString(),children:[(0,s.jsx)("span",{className:xi("outline-icon-wrap"),children:(0,s.jsx)(kh,{className:f,icon:i})}),(0,s.jsx)("span",{className:xi("outline-lesson-title"),children:l}),!d&&y]}),d&&y]})}),_R=ne("nav-overlay"),QR=({id:t})=>{const e=q(t),n=cs(e.title);return(0,s.jsx)("span",{className:_R("outline-section-text"),children:n})},Zv=ne("nav-overlay"),ZR=({isEnabled:t,lessonIds:e})=>{const n=(0,h.useRef)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Zv("outline-section-divider")}),(0,s.jsx)("ol",{className:Zv("outline-section-list"),ref:n,role:"list",children:e.map((o,r)=>(0,s.jsx)(Qv,{id:o,isEnabled:t,isSectionLesson:!0,last:r===e.length-1},o))})]})},YR=ne("nav-overlay"),XR=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a=YR("outline-item").mix("nav-overlay__outline-section");return ls()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(QR,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(ZR,{index:t,isEnabled:e,lessonIds:r})})},JR=({index:t,isEnabled:e,lessonIds:n})=>{const o=Pl(n),r=Oe(n[0]),a=ne("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-testid":"nav-overlay-outline-list",role:"list",children:(0,s.jsx)(XR,{index:t,isEnabled:e,lessonIds:n})})]}):n.map((i,l)=>(0,s.jsx)(Qv,{first:l===0,id:i,isEnabled:e,isSectionLesson:!1,last:l===n.length-1},i))},qR=ne("nav-overlay"),eP=At("NavOverlayOutline",({isEnabled:t})=>{const e=l2(),n=(0,nt.useLabelsMap)();return(0,s.jsx)("section",{"aria-label":n?.a11yRegionNavOverview,className:qR("outline"),"data-testid":"nav-overlay-outline",id:"nav-overlay-outline",children:Ci(e)&&(0,s.jsx)(s.Fragment,{children:e.map((o,r)=>ls()(o)?null:(0,s.jsx)(JR,{index:r,isEnabled:t,lessonIds:o},`lessonIdGroup-${r}`))})})});var tP=c(92947),Gd=c.n(tP),ia=c(58412),sP=c(89399),ca=c.n(sP),nP=c(37002),Kd=c.n(nP),oP=c(4633),wo=c.n(oP),rP=c(47812),hn=c.n(rP);const Ah=Array.isArray,aP=t=>typeof t=="number",_d=t=>!hn()(t)&&typeof t=="object",Rh=t=>typeof t=="string",iP=(t,e,n)=>(o,r)=>{const a=fr()(r,t);if((0,gs.uW)(o)){const i=n[o.l10nId];return typeof i!="string"?!1:!ls()(Kd()(e,(0,ia.htmlDecode)(i)))}else return _d(o)?Yv(t,e,n)(o):a&&Rh(o)?!ls()(Kd()(e,(0,ia.htmlDecode)(o))):!1},Yv=(t,e,n)=>o=>fs()(ca(),wo(),fr()(!0))(iP(t,e,n),o),cP=Yv;var lP=c(76040),Ph=c.n(lP),dP=c(71393),wh=c.n(dP),uP=c(77537),Qd=c.n(uP);const hP=(t,e,n)=>(o,r)=>{const a=fr()(r,t);return Ah(o)?wo()(Mh(t,e,n)(o)):(0,gs.uW)(o)?typeof n[o.l10nId]!="string"?0:ps()(Kd()(e,(0,ia.htmlDecode)(n[o.l10nId]))):_d(o)?Mh(t,e,n)(o):a&&Rh(o)?ps()(Kd()(e,(0,ia.htmlDecode)(o))):0},Mh=(t,e,n)=>o=>ca()(hP(t,e,n),o),Oh=t=>{if(Ah(t))return Bn()(Oh,t);if(_d(t))return Oh(wo()(t));if(aP(t))return t},mP=(t,e,n)=>o=>fs()(Mh(t,e,n),wo(),Bn()(Oh),wh(),Qd()(Ph(),0),r=>ro()("results",r,o))(o),pP=(t,e,n)=>(o,r)=>{const a=fr()(r,t);return Ah(o)?wo()(Dh(t,e,n)(o)):_d(o)?Dh(t,e,n)(o):a&&Rh(o)?N1()(e,n,o):o},Dh=(t,e,n)=>o=>ca()(pP(t,e,n),o),Xv=Dh,Jv=(t,e,n,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title"];if(ls()(t))return!1;const i=t.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),l=new RegExp(`(${i})(?![^<]*>)`,"ig"),u=L=>`<mark>${L}</mark>`,d=Xv(a,l,u),m=Xv(Object.keys(n),l,u),p=Bn()(d,e),f=o?o(t):{},v=m(n),C=L=>f[L.id]>0||cP(a,l,n)(L),g=mP(a,l,n),b=fs()(Cs()(C),Bn()(g))(e);b.forEach(L=>{L.results+=f[L.id]??0}),r(t,b,v,p)};function fP(t){if(!t)return!0;for(const e in t)return!1;return!0}function qv(){const{lessons:t,mondrian:e}=kt(),{currentLocale:n}=(0,Vt.nY)(),[o,r]=(0,h.useState)(null);return(0,h.useEffect)(()=>{fP(e)||c.e("webpack_container_remote_mondrian_learn-react").then(c.t.bind(c,4246,23)).then(a=>r(()=>a.searchItemsByLesson))},[e]),(0,h.useCallback)(a=>o?.(a,t,e,n)??{},[o,t,e,n])}const vP=zc.Ay.animateScroll,zn=ne("nav-overlay"),gP=()=>{const t=(0,K.wA)(),e=In(),n=$d(),{lessons:o}=kt(),[r,a]=(0,h.useState)(""),i=qv(),l=(0,h.useRef)(),u=(0,nt.useLabelsMap)(),d=zn("search-close-btn"),m=zn("search-clear-btn"),p=(0,h.useCallback)(()=>{n.closeSearch(),n.closeNav(),t([(0,Ls.Se)(!0),(0,Ls.ts)(!1),(0,Ls.NM)(null)])},[t,n]),f=(0,h.useCallback)(()=>{a(""),l.current?.focus?.()},[]);(0,h.useEffect)(()=>{l.current?.focus?.()},[]);const v=(0,h.useCallback)(b=>{un(b)&&!Gd()(r)?(b.preventDefault(),a(""),t((0,Ls.NM)(null))):un(b)&&Gd()(r)&&p()},[t,p,r]);(0,ss.A)("keydown",v);const C=(0,h.useCallback)(b=>{a(b.target.value)},[]),g=(0,h.useCallback)(b=>{if(b.preventDefault(),r){const L=(y,E,x,S)=>{t([(0,Ls.NM)(y),(0,Ls.gA)(E),(0,Ls.D2)(x),(0,Ls.u)(S),(0,Ls.ts)(!0)]),vP.scrollToTop({duration:500,smooth:!0})};n.closeNav(),n.closeSearch(),Jv(r,o,e??{},i,L)}},[r,i,n,o,e,t]);return(0,s.jsxs)("div",{className:zn("search"),"data-testid":"nav-overlay-search-container",children:[(0,s.jsx)("div",{className:zn("search-header"),children:(0,s.jsx)("button",{"aria-label":u?.a11ySearchClose,className:d,"data-testid":"nav-overlay-search-close",onClick:p,type:"button",children:(0,s.jsx)(Id,{className:zn("search-close-icon")})})}),(0,s.jsx)("div",{className:zn("search-body"),children:(0,s.jsxs)("form",{autoComplete:"off",onSubmit:g,children:[(0,s.jsxs)("div",{className:zn("search-container"),children:[(0,s.jsx)(Pc,{className:zn("search-icon")}),(0,s.jsx)("input",{"aria-label":u?.a11ySearchInput,className:zn("search-input").mix("brand--ui"),"data-testid":"nav-overlay-search-input",name:"search",onChange:C,placeholder:u?.search,ref:l,type:"input",value:r}),r&&(0,s.jsx)("button",{"aria-label":u?.a11ySearchInputClear,className:m,"data-testid":"nav-overlay-search-clear",onClick:f,type:"button",children:(0,s.jsx)(Id,{className:zn("search-clear-icon").toString()})})]}),(0,s.jsx)("div",{className:zn("search-actions"),children:(0,s.jsx)("button",{className:zn("search-submit-btn").mix("brand--ui"),"data-testid":"nav-overlay-search-submit",type:"submit",children:u?.search})})]})})]})},Bh=ne("nav-overlay"),eg="nav-content-overlay",CP=({isExpanded:t,outlineRef:e})=>{const o=l2()[0],r=Pl(o),a=Bh("body",{section:r});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(KR,{}),(0,s.jsx)("div",{className:a,ref:e,children:(0,s.jsx)(eP,{isEnabled:t})})]})},xP=({children:t,isImage:e,hasStickyHeader:n})=>{const o=Bh("content",{graphic:e,"has-sticky-header":n});return(0,s.jsxs)("div",{className:o,"data-nav-scrollable":!0,"data-testid":"nav-overlay-content",children:[t,e&&(0,s.jsx)(S1,{})]})},bP=({isExpanded:t})=>{const e=(0,h.useRef)(null),n=(0,h.useRef)(),o=kt(),r=$d(),a=(0,Me.A)(t),{navigationStyle:i,theme:{progressIndicatorStyle:l}={}}=o||{},u=o?.theme?.coverImageColor,d=i===k.qB.ACCENT,m=i===k.qB.TINT,p=(0,Rt.I8)(i),f=i===k.qB.GRAY,v=i===k.qB.LIGHT,C=(0,Rt.FH)(i),g=l===k.Y2.CIRCULAR_FILL,b=l===k.Y2.INCOMPLETE_COMPLETE,[L,y]=(0,h.useState)(!0),{isIntersecting:E=!1}=(0,Kv.A)(n,{root:e?.current,threshold:1})||{},x=(0,Me.A)(E),S=(0,h.useMemo)(()=>C&&u===k.df.LIGHT,[C,u]),T=Bh({"accent-tint":m,accent:d,dark:p,gray:f,"image-dark-overlay":C&&!S,"image-light-overlay":C&&S,light:v,"progress-circular-fill":g,"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 N=j=>{un(j)&&!r.searchActive&&(j.preventDefault(),r.closeNav())};return t?document.addEventListener("keydown",N):document.removeEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[t,r]),(0,h.useEffect)(()=>{!L&&E?y(!0):x&&!E&&y(!1)},[E,L,x,y]),(0,s.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:T,"data-testid":"nav-overlay",id:eg,ref:e,children:(0,s.jsx)(xP,{hasStickyHeader:L,isImage:C,children:r.searchActive?(0,s.jsx)(gP,{}):(0,s.jsx)(CP,{isExpanded:t,outlineRef:n})})})},Uc=ne("nav-sidebar-search"),yP=At("NavSidebarSearch",({className:t="",isEnabled:e})=>{const n=(0,K.wA)(),o=In(),r=(0,Me.A)(e),{lessons:a}=kt(),i=Bt(),l=(0,nt.useLabelsMap)(),u=(0,h.useRef)(),d=Uc({disabled:!e}).mix(t),m=Uc("icon"),p=Uc("input"),f=Uc("close"),v=Uc("close-icon"),C=i?.term,g=e?void 0:"disabled",[b,L]=(0,h.useState)(""),y=qv(),E=(0,h.useCallback)(()=>{n([(0,Ls.Se)(!0),(0,Ls.ts)(!1),(0,Ls.NM)(null)]),L("")},[n]),x=(0,h.useCallback)(N=>{un(N)&&!Gd()(b)?(N.preventDefault(),L(""),n((0,Ls.NM)(null))):un(N)&&Gd()(b)&&E()},[n,E,b]),S=(0,h.useCallback)(N=>{C!=null&&n((0,Ls.NM)(null)),L(N.target.value)},[n,C]),T=(0,h.useCallback)(N=>{N.preventDefault(),Jv(b,a,o??{},y,(O,D,B,R)=>n([(0,Ls.NM)(O),(0,Ls.gA)(D),(0,Ls.D2)(B),(0,Ls.u)(R)]))},[n,a,o,b,y]);return(0,h.useEffect)(()=>{!r&&e&&setTimeout(()=>{u.current?.focus()},50)},[e,r]),(0,h.useEffect)(()=>{C&&C!==b&&L(C)},[b,C]),(0,s.jsxs)("form",{autoComplete:"off",className:d,"data-testid":"nav-sidebar-search",onSubmit:T,children:[(0,s.jsx)(Pc,{className:m}),(0,s.jsx)("input",{"aria-label":l?.a11ySearchInput,className:p,disabled:g,name:"search",onChange:S,onKeyDown:x,placeholder:l?.search,ref:u,type:"search",value:b}),(0,s.jsx)("button",{"aria-label":l?.a11ySearchClose,className:f,onClick:E,type:"reset",children:(0,s.jsx)(Id,{className:v})})]})}),Vn=ne("nav-sidebar-header"),LP=ne("nav-sidebar-header-ghost"),EP=()=>(0,K.d4)(t=>t.ui.skipToNavButton?.offsetHeight??0),SP=At("NavSidebarHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:i}=t;return(0,s.jsxs)("div",{className:Vn("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)(kd,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o}),(0,s.jsx)("div",{className:n,children:i})]})}),TP=At("NavSidebarHeader",({className:t,isCompact:e,isEnabled:n,navRefWidth:o,setIsCompact:r})=>{const a=(0,K.wA)(),i=(0,Lt.Z)(),[l,u]=(0,h.useState)(""),[d,m]=(0,h.useState)({height:0,width:0}),[p,f]=(0,h.useState)(d),[v,C]=(0,h.useState)(d),g=EP(),b=(0,h.useRef)(),L=(0,h.useRef)(),y=(0,h.useRef)(),[E,x]=(0,h.useState)(null),S=kt(),T=Co(),N=(0,nt.useLabelsMap)(),j=dr(),O=Bt(),D=g1(),B=(0,Ce.Wz)(),R=Dr(),H=S?.exportSettings?.webExportSettings,w=!Po.isInstantLink&&(S?.lmsOptions?.disableCoverPage||H?.disableCoverPage),M=S?.allowSearch&&R!=="restricted",z=S?.theme?.coverImageColor,Z=S?.navigationStyle,Y=(0,h.useMemo)(()=>(0,Rt.FH)(Z),[Z]),X=Ab(),pe=(0,Me.A)(O),Le=(O?.active||X)??!1,[ke,Be]=(0,h.useState)(!0),[We,De]=(0,h.useState)(null),Ae=Vn({compact:e,searching:Le,transition:ke}).mix(t),he=Vn("inner",{compact:e}),le=Vn("content",{compact:e,hidden:Le}),He=Vn("graphic",{image:Y}),Pe=Vn("progress-runner"),Ke=Vn("progress-text",{compact:e}),Fe=Vn("progress-track"),ut=Vn("search-area",{hidden:!Le}),dt=Vn("search-btn",{hidden:Le}),xt=Vn("search-icon"),Jt=Vn("title",{compact:e}),zt=LP({compact:e,searching:Le}),ho=`${B?`%${j}`:`${j}%`} ${N?.lessonComplete}`,kr=n&&!Le?void 0:-1,Ar=n&&!Le?void 0:-1,{alpha:Rr,media:Pr}=Zr("coverImage"),pl=(0,h.useMemo)(()=>{let Qt={};return Y&&Object.assign(Qt,(0,Rt.b9)({alpha:Rr,color:z,media:Pr})),Le&&(Qt.height=p.height),Qt},[Rr,z,Pr,Y,Le,p.height]),$i=(0,h.useMemo)(()=>{let Qt={};return e&&(Qt.bottom=`calc(100% - ${g}px)`,Qt.width=o||0,Qt.transition="width 0.3s",n||(Qt.transition="width 0.3s",Qt.width="0rem")),d.height&&(Qt.height=d.height,Qt.overflow="hidden",e&&(Qt.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),Qt},[e,n,o,d.height,g]);(0,h.useEffect)(()=>{u(e&&D?Av(T,45):T)},[T,e,D]);const Wi=Le?void 0:{height:v.height},fl=(0,h.useCallback)(()=>{f(d),a((0,Ls.ts)(!0))},[a,d]),wr=(0,h.useCallback)(Qt=>{Qt.preventDefault(),Zo(()=>{i("/")},"lesson-to-cover")},[i]);(0,h.useLayoutEffect)(()=>{De(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:mo=!1}=(0,Kv.A)(b,{root:We,threshold:0})||{},Ca=(0,Me.A)(mo);(0,h.useEffect)(()=>{const Qt=E!=null&&window.innerHeight*.4>=E.offsetHeight;Ca&&!mo&&Qt?r(!0):!Ca&&mo&&r(!1)},[mo,Ca,E,r]);const vl=(0,h.useCallback)(({target:Qt})=>{const vn={height:Qt?.scrollHeight??0,width:o??0};m(vn),f(vn),e||C(vn)},[e,o]);Pd(E,vl),(0,h.useLayoutEffect)(()=>{const Qt=We?.scrollTop;(We||Qt>0)&&(We.scrollTop=0);const vn={height:E?.scrollHeight??0,width:o??0};m(vn),f(vn),C(vn)},[We,o,E]),(0,h.useEffect)(()=>{M&&pe?.active&&!O.active&&L?.current?.focus()},[M,O,pe]),(0,h.useEffect)(()=>{Le?Be(!0):e&&Be(!1)},[Le,e]);const r0=(0,h.useCallback)(Qt=>{if(!Qt.target.hasAttribute("data-nav-item")||!e)return;const vn=E.getBoundingClientRect(),wt=Qt.target.getBoundingClientRect();vn.bottom>wt.top&&(We.scrollTop-=vn.height-wt.top+5)},[We,e,E]);return(0,ss.A)("focusin",r0,We),(0,h.useEffect)(()=>u(T),[T]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:zt,ref:b,style:Wi}),(0,s.jsx)("div",{className:Ae,"data-testid":"nav-sidebar-header",ref:y,style:$i,children:(0,s.jsxs)("div",{className:he,ref:x,children:[(0,s.jsx)("div",{className:He,style:pl}),M&&(0,s.jsx)("button",{"aria-label":N?.a11ySearchOpen,className:dt,onClick:fl,tabIndex:kr,type:"button",children:(0,s.jsx)(Pc,{className:xt})}),(0,s.jsx)("div",{className:ut,children:(0,s.jsx)(yP,{isEnabled:n&&Le})}),(0,s.jsxs)("div",{className:le,children:[w?(0,s.jsx)("span",{className:Jt,"data-testid":"nav-sidebar-title",tabIndex:Ar,children:l}):(0,s.jsx)(On,{className:Jt,"data-testid":"nav-sidebar-title",onClick:wr,tabIndex:Ar,to:"/",children:l}),(0,s.jsx)(SP,{classProgressRunner:Pe,classProgressText:Ke,classProgressTrack:Fe,percentComplete:j,percentCompleteText:ho})]})]})})]})}),IP=ne("nav-sidebar");function tg({closeNav:t,id:e,isEnabled:n,isSectionLesson:o,last:r}){const{navigationStyle:a}=kt(),{icon:i}=q(e)??{},l=Oe(e),u=ao(),d=Ec(),m=h0(e),p=e===u,f=(0,h.useMemo)(()=>(0,Rt.I8)(a),[a]),v=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",C=W()(`${v}-link-icon`),g=(0,s.jsx)(kh,{className:C,icon:i}),[b,L]=(0,h.useState)(!1),y=(0,h.useCallback)(()=>L(!0),[]),E=(0,h.useCallback)(()=>L(!1),[]),x=(0,s.jsx)(Fd,{canComplete:m,id:e,isDark:f,isEnabled:n,isTooltipVisible:b,onHideTooltip:E,onShowTooltip:y,scope:lt.by.SIDEBAR}),S=()=>{t&&d&&t()};return(0,s.jsxs)("li",{className:IP("outline-list-item",{last:r}),"data-testid":`nav-outline-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(Dc,{className:v,dark:f,isCurrentLesson:p,isTooltipEnabled:!m,lessonId:e,onHideProgressTooltip:E,onNavigate:S,onShowProgressTooltip:y,showProgressDelay:0,tooltipClassName:`${v}-tooltip`,children:[g,l,!m&&x]}),m&&x]})}const NP=({title:t})=>(0,s.jsx)("span",{className:"nav-sidebar__outline-section-text",children:t});function jP(){const t=Eo(),e=Tn();return(n,o)=>{const{currentLocale:r}=o,a=Ht(n),i=t(o.id,n),l=e(i.title,r,n);return{navigationStyle:a.navigationStyle,title:l}}}const kP=$e()(Vt.wZ,(0,K.Ng)(jP))(NP);var bi=c(15648);const AP=({closeNav:t,id:e,index:n,isEnabled:o,lessonIds:r})=>{const a=kt(),i=a?.theme,l=a?.themeId,u=i?.navigationSectionsExpanded??!0,d=Oe(String(e)),[m,p]=bi.useState(u);bi.useEffect(()=>{p(u)},[u]);const[f,v]=bi.useState(),C=bi.useRef(null),g=`sidebar-sublist-${n}`,b=C.current?.clientWidth,L=String(l),y=W()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!m}),E=W()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!m}),x=bi.useCallback(()=>{p(S=>!S)},[]);return bi.useLayoutEffect(()=>{const S=setTimeout(()=>{C.current&&v(C.current.scrollHeight)},0);return()=>{clearTimeout(S)}},[r.length,b,L]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":g,"aria-expanded":m,className:"nav-sidebar__outline-section-toggle","data-nav-item":"",onClick:x,tabIndex:o?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:d}),(0,s.jsx)(Cf,{className:y})]}),(0,s.jsx)(Oc,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:E,id:g,ref:C,role:"list",style:{maxHeight:f},children:r.map((S,T)=>(0,s.jsx)(tg,{closeNav:t,id:S,isEnabled:o&&m,isSectionLesson:!0,last:T===r.length-1},S))})})]})},RP=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>{const[r,...a]=o,i="nav-sidebar__outline-item nav-sidebar__outline-section";return ls()(a)?(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(kP,{id:r})}):(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(AP,{closeNav:t,id:r,index:e,isEnabled:n,lessonIds:a})})},PP=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>Pl(o)?(0,s.jsx)(RP,{closeNav:t,index:e,isEnabled:n,lessonIds:o}):o.map((a,i)=>(0,s.jsx)(tg,{closeNav:t,id:a,isEnabled:n,isSectionLesson:!1,last:i===o.length-1},a)),wP=At("NavSidebarOutline",({className:t="",closeNav:e,isEnabled:n,lessonIdGroups:o})=>{const r=(0,Me.A)(n),[a,i]=(0,h.useState)(!n),l=(0,nt.useLabelsMap)(),u=(0,h.useRef)(),d=W()(t,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":a,"nav-sidebar__outline--safari":cn.isSafari}),m=W()("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(()=>{i(!0)},350):!r&&n&&a&&i(!1),()=>{clearTimeout(p)}},[n,a,r]),(0,s.jsx)("section",{"aria-label":l?.a11yRegionNavOverview,className:d,"data-testid":"nav-sidebar-outline",id:"nav-sidebar-outline",children:Ci(o)&&(0,s.jsx)("ol",{className:m,"data-testid":"nav-sidebar-outline-list",ref:u,role:"list",children:o.map((p,f)=>ls()(p)?null:(0,s.jsx)(PP,{closeNav:e,index:f,isEnabled:n,lessonIds:p},f))})})});function MP(t){const e=Ht(t),n=u0(t);return{isLegacyCourse:e.isLegacyCourse,lessonIdGroups:n,navigationStyle:e.navigationStyle}}const OP=(0,K.Ng)(MP)(wP);var DP=c(15402),BP=c(74756);const yi=ne("nav-sidebar-result"),sg=({result:t})=>{const e=(0,nt.useLabelsMap)(),n=t?.icon,o=cs(t?.title),r=t?.results??0,a=r===1?e?.result:e?.results,i=yi("icon"),l=yi("title"),u=yi("count");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(kh,{className:i,icon:n}),(0,s.jsx)("span",{className:l,children:o}),(0,s.jsx)("span",{className:u,children:`${r} ${a}`})]})},HP=({id:t,index:e,isEnabled:n,onSelectResult:o})=>{const r=kt(),a=(0,te.RQ)("/*"),i=ba(t),l=a?.params?.id===t,u=l?"page":void 0,d=r?.color,m=r?.navigationStyle,p=n?void 0:-1,f={animationDelay:`${e/10}s`},v=ts(i?.id),C=(0,h.useMemo)(()=>(0,Rt.I8)(m),[m]),g=yi(),b=yi("inner",{active:l}),L=yi("link",{dark:C,light:!C});return(0,s.jsx)("li",{className:g,role:"listitem",style:f,children:(0,s.jsx)("div",{className:b,style:{color:d},children:n&&v==null?(0,s.jsx)(On,{"aria-current":u,className:L,onClick:o,tabIndex:p,to:(0,es.p1)(t),children:(0,s.jsx)(sg,{result:i})}):(0,s.jsx)(Hf,{className:L,restriction:v,tooltipClassName:"lesson-nav-link-tooltip",children:(0,s.jsx)(sg,{result:i})})})})},Zd=ne("nav-sidebar-results"),FP=[],zP=({closeNav:t,isEnabled:e})=>{const{announcePolite:n}=pt(),o=kt(),r=Bt(),a=(0,nt.useLabelsMap)(),l=(r?.activeLessons??FP).filter(wa),u=r?.term,d=(0,DP.A)(l),m=(0,BP.A)(u),p=a?.noResults??"",f=o?.navigationStyle,v=(0,h.useMemo)(()=>(0,Rt.I8)(f),[f]),C=Zd(),g=Zd("message",{dark:v,light:!v}),b=Zd("term"),L=Zd("list"),y=Ns(Op),E=h.useCallback(()=>{y&&t()},[t,y]);return(0,h.useEffect)(()=>{if(m){const x=l.length===1?a?.result:a?.results,S=d?`${l.length} ${x}`:`${a?.noResults} ${u}`;n?.(S)}},[n,d,m,l,a,u]),(0,s.jsxs)("div",{className:C,"data-testid":"nav-sidebar-results",children:[!d&&m&&(0,s.jsxs)("div",{className:g,children:[p," ",(0,s.jsxs)("span",{className:b,children:['"',u,'"']})]}),d&&m&&(0,s.jsx)("ol",{className:L,"data-testid":"nav-sidebar-results-list",role:"list",children:l.map((x,S)=>(0,s.jsx)(HP,{id:x.id,index:S,isEnabled:e,onSelectResult:E},x.id))})]})},Yd=ne("nav-sidebar"),ng="nav-content-sidebar",VP=({isExpanded:t,closeNav:e})=>{const n=kt(),o=Bt(),[r,a]=(0,h.useState)(!1),[i,l]=(0,h.useState)(0),u=(0,h.useRef)(null),d=(0,h.useRef)(null),m=n?.color,p=n?.theme?.coverImageColor,f=n?.isLegacyCourse,v=n?.navigationStyle,C=n?.theme?.accentContrast,g=n?.theme?.progressIndicatorStyle,b=o?.active??!1,L=b||t?void 0:"true";(0,h.useLayoutEffect)(()=>{u&&u?.current&&l(u.current?.scrollWidth)},[r,t,u,b,l]);const y=(0,h.useMemo)(()=>(0,Rt.zH)(v),[v]),E=(0,h.useMemo)(()=>(0,Rt.I8)(v),[v]),x=(0,h.useMemo)(()=>(0,Rt.FH)(v),[v]),S=(0,h.useMemo)(()=>x&&p===k.df.LIGHT,[x,p]),T=!(0,mt.Wn)(m),N=(0,mt.xD)(m),j=g===k.Y2.CIRCULAR_FILL,O=g===k.Y2.INCOMPLETE_COMPLETE,D=C===k.Em.AUTO&&N===k.Em.DARK,B=(0,h.useMemo)(()=>C?C===k.Em.DARK||D:T,[D,T,C]),R=Yd("header"),H=Yd("body"),w=Yd("content"),M=Yd({accent:y,"dark-contrast":!x&&B,"light-contrast":!x&&!B,"legacy-pre-themes":f,"image-dark-overlay":x&&!S,"image-light-overlay":x&&S,"progress-circular-fill":j,"progress-incomplete-complete":O,collapsed:!t,dark:E,light:!E,searching:b});return(0,s.jsx)(Oc,{inert:!t,children:(0,s.jsx)(ys.F,{children:(0,s.jsx)(ys.eB,{in:t,mountOnEnter:!0,nodeRef:d,timeout:300,unmountOnExit:!0,children:(0,s.jsx)("div",{"aria-hidden":L,className:M,"data-testid":"nav-sidebar",ref:d,children:(0,s.jsxs)("div",{className:w,"data-nav-scrollable":!0,id:ng,children:[(0,s.jsx)(TP,{className:R,isCompact:r,isEnabled:t,navRefWidth:i,setIsCompact:a}),(0,s.jsxs)("div",{className:H,"data-testid":"nav-sidebar-body",ref:u,children:[(0,s.jsx)(OP,{closeNav:e,isEnabled:t&&!b}),(0,s.jsx)(zP,{closeNav:e,isEnabled:t&&b})]})]})})})})})},la={x:null,y:null},Xd={passive:!0};function og({children:t,onSwipeDown:e,onSwipeLeft:n,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:i=100,thresholdY:l=100}){const u=(0,h.useRef)(),[d,m]=(0,h.useState)(la),[p,f]=(0,h.useState)(la),v=(0,h.useCallback)(L=>{const y=L.touches?.length??0,E=L.targetTouches[0],x=a?a():!0;y==1&&E&&x?m({x:E.clientX,y:E.clientY}):m(la)},[a]),C=(0,h.useCallback)(L=>{const y=L.targetTouches[0];y&&f({x:y.clientX,y:y.clientY})},[]),g=(0,h.useCallback)(()=>{m(la),f(la)},[]),b=(0,h.useCallback)(L=>{const y=L.touches?.length??0;if(d.x==null||d.y==null||p.x==null||p.y==null||y>0)return;const E=p.x-d.x,x=p.y-d.y;Math.abs(E)>Math.abs(x)?Math.abs(E)>i&&(E<0?n?.():o?.()):Math.abs(x)>l&&(x<0?r?.():e?.()),m(la),f(la)},[e,n,o,r,i,l,p,d]);return(0,ss.A)("touchstart",v,u.current,Xd),(0,ss.A)("touchcancel",g,u.current,Xd),(0,ss.A)("touchmove",C,u.current,Xd),(0,ss.A)("touchend",b,u.current,Xd),(0,s.jsx)("div",{ref:u,children:t})}og.propTypes={children:Qe().oneOfType([Qe().arrayOf(Qe().element),Qe().element]).isRequired,onShouldRecognizeGesture:Qe().func,onSwipeDown:Qe().func,onSwipeLeft:Qe().func,onSwipeRight:Qe().func,onSwipeUp:Qe().func,thresholdX:Qe().number.isRequired,thresholdY:Qe().number.isRequired};function Jd({isEnabled:t=!0,...e}){return t?(0,s.jsx)(og,{...e}):(0,s.jsx)("div",{children:e.children})}Jd.propTypes={children:Qe().oneOfType([Qe().arrayOf(Qe().element),Qe().element]).isRequired,isEnabled:Qe().bool.isRequired};const qd={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},UP=[qd.TABLET_PORTRAIT,qd.TABLET_LANDSCAPE,qd.MOBILE_PORTRAIT,qd.MOBILE_LANDSCAPE],$c=t=>UP.includes(t),$P=t=>(0,h.useMemo)(()=>{const e=window.matchMedia("(pointer: coarse)").matches,n=$c(t);return e||n},[t]),rg=ne("course-navigation"),{COMPACT:eu,OVERLAY:Hh,SIDEBAR:da}=k.br,WP={[eu]:Gv,[da]:ng,[Hh]:eg},GP=({hasSearchResults:t,courseNavType:e,openNav:n,closeNav:o})=>{const[r,a]=(0,h.useState)(t);return(0,h.useEffect)(()=>{r&&!t&&!(e===da)?(o(),a(!1)):r&&e===Hh?n():a(t)},[t,e,n,o,r]),r},KP=t=>{const[e,n]=(0,h.useState)();(0,h.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:i,openNav:l,closeNav:u}=t;o===da&&r&&(!e&&i&&a?u():e&&!i&&!a&&l(),n(i))},[e,t])},_P=({beginWithSidebarOpen:t,children:e,closeNav:n,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:i,openNav:l,previewType:u,toggleNav:d,hideNav:m})=>{const p=(0,h.useRef)(),f=(0,h.useRef)(),{active:v}=Bt(),C=(0,nt.useLabelsMap)(),g=GP({hasSearchResults:v,courseNavType:o,openNav:l,closeNav:n}),b=(0,h.useMemo)(()=>g||o===eu&&a?da:o,[o,g,a]);KP({activeNavType:b,beginWithSidebarOpen:t,closeNav:n,openNav:l,isNavOpen:r,isTablet:a}),(0,h.useEffect)(()=>{const T=j=>{f.current?.contains(j.relatedTarget)&&n()},N=()=>{f.current?.removeEventListener("click",n),f.current?.removeEventListener("keypress",n),f.current?.removeEventListener("blur",T,!0)};return b===eu&&r?(f.current?.addEventListener("click",n),f.current?.addEventListener("keypress",n),f.current?.addEventListener("blur",T,!0)):N(),N},[b,r,f,n]);const L=$P(u),y=(0,h.useCallback)(()=>{const T=b===k.br.SIDEBAR;L&&T&&r&&n()},[n,r,L,b]),E=(0,h.useMemo)(()=>WP[b],[b]),x=rg(b?.toLowerCase(),{"nav-open":r,"search-open":v&&r,"course-nav-type":o?.toLowerCase()}),S=rg("lessonNav",{type:i?.toLowerCase()});return(0,s.jsx)(Nb,{isCourseNavOpen:r,children:(0,s.jsx)("div",{className:x,children:(0,s.jsx)(Jd,{isEnabled:b===k.br.SIDEBAR,onSwipeLeft:y,children:(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("nav",{"aria-label":C?.a11yRegionNavLesson,children:[(0,s.jsx)(SA,{"aria-controls":E,hideNav:m,isNavOpen:r,toggleNav:d}),b===da&&(0,s.jsx)(VP,{closeNav:n,isExpanded:r}),b===eu&&(0,s.jsx)($R,{closeNav:n,isExpanded:r,openNav:l,ref:p}),b===Hh&&(0,s.jsx)(WR,{closeNav:n,openNav:l,children:(0,s.jsx)(bP,{isExpanded:r})})]}),(0,s.jsx)("div",{ref:f,children:e})]})})})})},QP=({children:t,isPreviewLesson:e,...n})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...i}=(0,Ce.DX)(),l=Ec(),u=(0,Rt.zh)(i),d=!l,m=i.sidebarMode===k.RE.OPEN,p=u&&r===da&&m&&d,f=(0,zs.c3)(i),v=f&&i?.theme?.blockNavigationType===k.HC.CONTINOUS,[C,g]=(0,h.useState)(p),b=(0,h.useCallback)(()=>{g(!0)},[]),L=(0,h.useCallback)(()=>{g(!1)},[]),y=(0,h.useCallback)(()=>C?L():b(),[C,L,b]);(0,ss.A)(kf,b),(0,ss.A)(Af,L);const E=f||e?"fixed-course-exit":void 0,x=v?{marginInlineEnd:"2rem"}:void 0,S=u?r:"";return f||e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Iv,{className:E,lmsOptions:a,style:x}),t]}):(0,s.jsx)(_P,{...n,beginWithSidebarOpen:m,closeNav:L,courseNavType:S,enableExitCourse:a?.enableExitCourse||!0,hideNav:!u,isNavOpen:C,isTablet:l,lessonNavType:o,openNav:b,toggleNav:y,children:t})};var ZP=c(64660),YP=c(4116),tu=c.n(YP);const XP=tu()(It()("family","continue"),It()("variant","continue")),ag=$e()(Nh()(XP),Ws()([],"items"));var ig=c(70667);function JP(t){return t==="a"?46.5:7.6}function qP(t){return t==="d"?2:3.2}function ew(t){switch(t){case"a":return 30;case"c":case"d":return 92;default:return 76}}function cg(t){switch(t){case"b":return 95;case"background":return 52;default:return 76}}function lg(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 tw(t){return .3}function Kte(t){switch(t){case 3:return"three";case 4:return"four";default:return"two"}}function sw(t){return t==="light"?"#fff":"#000"}function _te(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 Qte(t){return t==="b"?[52,76,95]:[52,76,92]}function Zte(t){return t==="a"?[30,76,92]:[52,76,92]}function Yte(t){return t==="d"?[2,4.8,5.6]:[3.2,4.8,5.6]}function Xte(t){return t==="a"?[46.5,78,120]:[7.6,20,32]}function nw(t){switch(t){case 3:return"sm";case 10:return"lg";default:return"med"}}function dg(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 ow(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function ug(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function hg(t){switch(t){case 4:return"med";case 6:return"lg";default:return"sm"}}function Fh(t){switch(t){case 52:return"sm";case 92:return"lg";default:return"med"}}function rw(t){switch(t){case 30:case 52:return"sm";case 92:return"lg";default:return"med"}}function aw(t){switch(t){case 4.8:return"med";case 5.6:return"lg";default:return"sm"}}function iw(t){switch(t){case 20:case 78:return"med";case 32:case 120:return"lg";default:return"sm"}}function cw(t){switch(t){case 1:return"sm";case 3:return"lg";default:return"med"}}function lw(t){switch(t){case 3.2:return"med";case 5.6:return"lg";default:return"sm"}}const ms=({value:t,className:e,allowTabNavigation:n=!0,tagName:o,id:r})=>{const{value:a}=Cp((0,at.QQ)(t));return a?(0,s.jsx)(St,{allowTabNavigation:n,className:e,id:r,tagName:o,value:t}):null};function dw(t,e){const{className:n="",tag:o="div",style:r={},...a}=t,{backgroundColor:i}=tn(),l=Jj(),u=l===lt.S6.DARK?lt.S6.LIGHT:lt.S6.DARK;return i!==""&&Object.assign(r,{"--color-background-contrast":l,"--color-background-contrast-complementary":u,"--color-background-contrast-rgb":(0,hi.A)(l)?.slice(0,3)}),(0,s.jsx)(o,{...a,className:n,ref:e,style:r})}const mg=(0,h.forwardRef)(dw),uw=10,pg=t=>`${t}rem`,zh=t=>t!=null?`${t/uw}rem`:void 0,hw=["image full","image text overlay","quote background"];function mw(t){const{family:e,variant:n,backgroundType:o,isOnlyBlockInStep:r,isOnePage:a}=t;if(!a||!r)return!1;if(o===k.xj.IMAGE)return!0;if(!e||!n)return!1;const i=`${e} ${n}`;return hw.some(l=>l===i)}const pw={paddingBottom:"0rem",paddingTop:"0rem"},fw=t=>{const{blockSettings:e,familyTheme:n,courseTheme:o,isFullWidthImage:r}=t;if(r)return pw;const a=pg(Number(Kf(e?.paddingTop,n?.paddingStart,o?.blockPaddingStart,k.S$)));return{paddingBottom:pg(Number(Kf(e?.paddingBottom,n?.paddingEnd,o?.blockPaddingEnd,k.S$))),paddingTop:a}},vw={},gw=t=>t?{bodyFontSize:zh(t.bodyFontSize),headingFontSize:zh(t.headingFontSize),subheadingFontSize:zh(t.subheadingFontSize)}:vw;function Cw(){const t=ks(),e=(0,Ce.DX)(),n=li(),o=(0,zs.c3)(e),r=mw({backgroundType:t?.settings?.backgroundType,family:t?.family,isOnePage:o,isOnlyBlockInStep:t?.isOnlyBlockInStep,variant:t?.variant});return fw({blockSettings:t?.settings,courseTheme:e?.theme,familyTheme:n,isFullWidthImage:r})}function xw(){const t=li();return gw(t)}function bw(){const t=Cw();return{fontSize:xw(),padding:t}}const yw=xd()(["settings"]),fg=ne("block-wrapper"),Lw=ne("bg"),Ew=(t,e)=>{const{children:n,className:o,defaultBackgroundColor:r="",style:a,tag:i,type:l,...u}=t,d=ks(),m=ek(),p=bw(),f=oh(r,m.backgroundColor),v=f||"transparent",C=d?.className,g={...a,...m.backgroundImageCss,"--color-background":f,...p.fontSize.bodyFontSize&&{"--block-text-body-font-size":p.fontSize.bodyFontSize},...p.fontSize.headingFontSize&&{"--block-text-heading-font-size":p.fontSize.headingFontSize},...p.fontSize.subheadingFontSize&&{"--block-text-subheading-font-size":p.fontSize.subheadingFontSize},boxShadow:`0px 1px 0px ${v} `,paddingBottom:p.padding.paddingBottom,paddingTop:p.padding.paddingTop},b=W()(o,{"bg--legacy-background":m.isLegacyBackground,[`block-${l}`]:!!l}),L=Lw({card:m.cardMode,range:m.colorRange,type:m.backgroundTypeLowercase,"overlay-light":m.isOverlayLight,"contrast-light":m.isContrastLight}),y=C?fg({}).mix(L).mix(C):fg({}).mix(L),E=[b,y.toString()].join(" ");return(0,s.jsxs)(mg,{...yw(u),className:E,ref:e,style:g,tag:i,children:[(0,s.jsx)("span",{"aria-label":m.backgroundImageAlt,role:(0,Ys.Vx)(m.backgroundImageAlt)}),n]})},Pt=(0,h.forwardRef)(Ew),Ln=Ya("ImageEagerOrLazy");var Sw=c(78249),qte=c(20593);function vg(t){return(0,s.jsx)(Sw.A,{IconUnzoom:Iw,IconZoom:Tw,...t})}const Tw=()=>(0,s.jsx)(it,{name:"arrows-two-from-center"}),Iw=()=>(0,s.jsx)(it,{name:"arrows-two-to-center"}),gg=ne("block-text");function Nw({children:t,item:e,labels:n}){const o="media"in e?e.media:void 0,r=(0,at.QQ)(o)?.image,a=(0,Gt.ME)(r),i=(0,Ys.Ll)(r?.alt??""),u=ks()?.settings,d=u?.images,m=u?.zoomOnClick,p=(0,h.useRef)(void 0);let f=(0,s.jsx)(Ln,{alt:i,"data-l10n-id":(0,Et.pP)(o),ref:p,src:a});return m&&(f=(0,s.jsx)(vg,{a11yNameButtonUnzoom:n?.a11yUnzoomImage,a11yNameButtonZoom:n?.a11yZoomImage,children:f})),(0,s.jsxs)("div",{className:gg("col"),children:[d&&r&&(0,s.jsx)("div",{className:gg("image"),children:f}),t]})}var jw=c(38281),su=c(47218);const kw=ne("portal-tooltip"),Ds={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},Aw=(t,e,n)=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=window.visualViewport;let i=n;(i===Ds.ABOVE||i===Ds.BELOW)&&(o.bottom-r.height<0&&(i=Ds.BELOW),r.height+o.top>a.height&&(i=Ds.ABOVE)),(i===Ds.LEFT||i===Ds.RIGHT)&&(r.left<0&&(i=Ds.RIGHT),r.width+o.left>a.width&&(i=Ds.LEFT));const l={left:0,right:0,top:0,bottom:0};i===Ds.ABOVE&&(l.top=o.top-r.height-25),i===Ds.BELOW&&(l.top=o.top+o.height),i===Ds.RIGHT&&(l.left=o.left+o.width+70),i===Ds.LEFT&&(l.left=o.left-r.width-25),(i===Ds.LEFT||i===Ds.RIGHT)&&(l.top=o.top-o.height/2),(i===Ds.ABOVE||i===Ds.BELOW)&&(l.left=o.left+o.width/2);const u=o.left+o.width/2,d=r.width/2+u>a.width,m=r.width/2>u;d?e.classList.add("portal-tooltip__tooltip--offset-right"):m&&e.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(l).map(p=>l[p]===0?e.style.removeProperty(p):e.style.setProperty(p,`${l[p]}px`)),e.classList.add(`portal-tooltip__tooltip--${i.toLowerCase()}`)};function Rw({children:t,className:e,direction:n=Ds.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:i,renderInModalWhenPresent:l=!1}){const[u,d]=(0,h.useState)(!1),[m]=(0,h.useState)(!1),p=(0,h.useRef)(null),f=(0,h.useRef)(null),[v,C]=(0,jw.A)((()=>t)),g=(0,h.useCallback)(()=>d(!0),[d]),b=(0,h.useCallback)(()=>d(!1),[d]);return(0,h.useEffect)(()=>(document.addEventListener("scroll",g),document.addEventListener("scrollend",b),()=>{document.removeEventListener("scroll",g),document.removeEventListener("scrollend",b)})),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:p,children:v}),a&&(C||m||o)&&!u&&(0,s.jsx)(ys.B1,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,s.jsx)(Pw,{buttonRef:p,className:e,direction:n,elementFocused:o,hovering:C,message:a,portalRef:f,renderInModalWhenPresent:l,style:i})})]})}function Pw({buttonRef:t,className:e,direction:n,elementFocused:o,hovering:r,message:a,portalRef:i,style:l,renderInModalWhenPresent:u=!1}){const d=(0,h.useCallback)(()=>Aw(t.current,i.current,n),[t,n,i]),m=(0,h.useCallback)(()=>{i.current&&d()},[i,d]),p=()=>{!r&&!o&&i.current&&(i.current.style=null)};return(0,su.A)(m),(0,to.createPortal)((0,s.jsx)("div",{"aria-hidden":!r||!o,className:kw("tooltip").mix(e).toString(),onTransitionEnd:p,ref:i,style:l,children:a}),u?hr({id:"portal",childType:"other"}):document.getElementById("portal"))}const Wc=Rw,ww=(0,ws.GF)(),Gc=()=>ww(t=>t.transcriptPanel),Mw=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onDelete:o,onTranscriptClick:r,onTranscriptClose:a})=>{const{mode:i,disableTranscriptButton:l}=zd(),u=Gc(),[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),v=(0,at.QQ)(n)?.audio?.transcript,C=(0,h.useCallback)(()=>m(!0),[]),g=(0,h.useCallback)(()=>m(!1),[]),b=(0,h.useCallback)(()=>f(!0),[]),L=(0,h.useCallback)(()=>f(!1),[]),y=(0,Ce.vU)(),E=u?.audioPlayerIdOpen&&u.audioPlayerIdOpen===t,x=l?"Transcripts are only available in lesson previews":E?y?.audioHideTranscript:i==="edit"?"Edit transcript":y?.audioShowTranscript,S=(0,h.useCallback)(()=>{const O=document.getElementById(Sh(t));O&&O.focus()},[t]),[T,N]=(0,h.useState)(!1);function j(){l||(E?a?.():(r?.(),N(!0)))}return(0,h.useEffect)(()=>{T&&(N(!1),S())},[T,S]),(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsx)(Wc,{elementFocused:d,message:"Remove audio",children:(0,s.jsx)(Ot.ArcButton,{hierarchy:"tertiary",icon:(0,s.jsx)(it,{name:"trash"}),layout:"icon",onBlur:g,onClick:o,onFocus:C,onMouseOut:g,onMouseOver:C,size:e?"sm":"md",type:"button"})}),(i==="edit"||v)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Wc,{elementFocused:p,message:x,renderInModalWhenPresent:i==="readonly",style:{whiteSpace:"nowrap"},children:(0,s.jsx)(Ot.ArcButton,{"aria-label":x,disabled:l,hierarchy:"tertiary",icon:(0,s.jsx)(it,{name:"file-audio"}),id:i==="readonly"?Sv(t):void 0,layout:"icon",onBlur:L,onClick:j,onFocus:b,onMouseOut:L,onMouseOver:b,size:e?"sm":"md",style:l?{opacity:.5,pointerEvents:"auto"}:void 0,type:"button"})}),E?(0,s.jsx)("div",{onFocus:S,tabIndex:0}):null]})]})};var Ow=c(42974);const Cg="change";class Dw extends Ow.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}addChangeListener(e){this.on(Cg,e)}removeChangeListener(e){this.removeListener(Cg,e)}}const st=new Dw(1/0);var Bw=c(12907),Li=c.n(Bw);const Hw=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(t=>({value:t,label:`${t}x`})),nu=.05,xg=ne("audio-player-icon"),ua=({x:t,width:e,height:n,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:i,pulseY:l,delay:u="0s"})=>(0,s.jsx)("rect",{className:xg("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":`${i/10}rem`,"--pulse-y":`${l/10}rem`,"--delay":u},width:e,x:t,y:o}),bg=({animating:t})=>(0,s.jsx)("span",{className:xg({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)(ua,{delay:"0s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:0,y:7}),(0,s.jsx)(ua,{delay:"0.1s",height:4,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,width:2,x:3,y:6}),(0,s.jsx)(ua,{delay:"0.2s",height:10,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,width:2,x:6,y:3}),(0,s.jsx)(ua,{delay:"0.3s",height:16,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,width:2,x:9,y:0}),(0,s.jsx)(ua,{delay:"0.4s",height:8,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,width:2,x:12,y:4}),(0,s.jsx)(ua,{delay:"0.5s",height:11,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,width:2,x:15,y:2.5}),(0,s.jsx)(ua,{delay:"0.6s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:18,y:7})]})});var yg,Ut=c(15648);const ou=Ut.createContext(null);function Fw({children:t,isDisabled:e,onClose:n,onOpen:o,onSelect:r,positionX:a="left"}){const[i,l]=Ut.useState(!1),u=(0,Me.A)(i),[d,m]=Ut.useState(null),p=Ut.useRef(null),f=Ut.useRef(null),v=Ut.useRef(null),b=`${`menu-${Ut.useId()}`}-content`,L=Ut.useCallback(({direction:w,predFn:M=()=>!0})=>{if(!v.current)return;const z=Array.from(v.current.querySelectorAll('[role="menuitem"]')),Z=z.length,Y=z.findIndex(ke=>ke===document.activeElement);let X,pe,Le;switch(w){case"start":X=0,pe=1;break;case"end":X=Z-1,pe=-1;break;case"backwards":X=Y-1,pe=-1;break;case"forwards":X=Y+1,pe=1;break;default:X=Y+1,pe=1}for(let ke=0;ke<=Z;ke++){X>=Z?X=0:X<0&&(X=Z-1);const Be=z[X];if(Be!=null&&Uw(Be)&&M(Be)){Le=Be;break}else X=X+pe}Le&&Le.focus()},[]),y=Ut.useCallback(()=>{L({direction:"start"})},[L]),E=Ut.useCallback(()=>{L({direction:"end"})},[L]),x=Ut.useCallback(()=>{L({direction:"backwards"})},[L]),S=Ut.useCallback(()=>{L({direction:"forwards"})},[L]),T=Ut.useCallback(w=>{L({direction:"forwards",predFn:M=>$w(M,w)})},[L]),N=Ut.useCallback(()=>{i?l(!1):(l(!0),setTimeout(S,25))},[S,i]),j=Ut.useCallback(()=>{f.current?.focus(),l(!1)},[]),O=Ut.useCallback(()=>{l(!0),setTimeout(S,25)},[S]),D=Ut.useCallback(()=>{l(!0),setTimeout(x,25)},[x]),B=Ut.useCallback(()=>{const{left:w,top:M}=ev({anchor:f.current,popover:v.current,positionX:a});m({transform:`translate3d(${w}px, ${M}px, 0)`,visibility:"visible"})},[a]),R=Ut.useCallback(w=>{const M=w.currentTarget;Lg(M)||(r?.(M.getAttribute("data-name")),j())},[j,r]),H=Ut.useCallback(w=>{const M=w.key;if(w.altKey||w.ctrlKey||w.metaKey)return;let z=!1;if(w.shiftKey)M==="Tab"?x():M.trim()!==""&&T(M),z=!0;else switch(M){case" ":case"Enter":R(w),z=!0;break;case"Esc":case"Escape":j(),z=!0;break;case"ArrowUp":x(),z=!0;break;case"Tab":case"ArrowDown":S(),z=!0;break;case"Home":case"PageUp":y(),z=!0;break;case"End":case"PageDown":E(),z=!0;break;default:T(M);break}z&&(w.stopPropagation(),w.preventDefault())},[j,R,T,y,E,S,x]);return Ut.useEffect(()=>{const w=M=>{i&&p.current!=null&&v.current!=null&&!p.current.contains(M.target)&&!v.current.contains(M.target)&&l(!1)};return i?document.addEventListener("click",w):document.removeEventListener("click",w),()=>{document.removeEventListener("click",w)}},[i]),Ut.useEffect(()=>(i?window.addEventListener("resize",B):window.removeEventListener("resize",B),()=>{window.removeEventListener("resize",B)}),[B,i]),Ut.useEffect(()=>{const w=bd(p.current);for(const M of w)i?M?.addEventListener("scroll",B,{passive:!0}):M?.removeEventListener("scroll",B);return()=>{for(const M of w)M?.removeEventListener("scroll",B)}},[B,i]),Ut.useEffect(()=>{i?B():m(null)},[B,i]),Ut.useEffect(()=>{if(u&&!i)n?.();else if(!u&&i&&(o?.(),p.current)){const w=new CustomEvent("menuopen",{bubbles:!0,detail:{target:p.current}});p.current.dispatchEvent(w)}},[u,i,n,o]),Ut.useEffect(()=>{const w=M=>{M.detail.target!==p.current&&l(!1)};return document.addEventListener("menuopen",w),()=>{document.removeEventListener("menuopen",w)}},[]),(0,s.jsx)(ou.Provider,{value:{htmlIdContent:b,isExpanded:i,onCloseFocusTrigger:j,onExpandFocusMenuItemNext:O,onExpandFocusMenuItemPrevious:D,onFocusMenuItemByPrefix:T,onFocusMenuItemFirst:y,onFocusMenuItemLast:E,onFocusMenuItemNext:S,onFocusMenuItemPrevious:x,onItemClick:R,onItemKeyDown:H,onTriggerClick:N,refContent:v,refTrigger:f,styleContent:d},children:(0,s.jsx)("div",{"aria-owns":b,inert:e?!0:void 0,ref:p,children:t})})}function zw({as:t,children:e,label:n,labelledBy:o,...r}){const{htmlIdContent:a,isExpanded:i,onTriggerClick:l,onCloseFocusTrigger:u,onExpandFocusMenuItemNext:d,onExpandFocusMenuItemPrevious:m,refTrigger:p}=Ut.useContext(ou),f=Ut.useCallback(C=>{let g=!1;switch(C.key){case" ":case"Enter":case"ArrowDown":case"Down":d(),g=!0;break;case"Esc":case"Escape":u(),g=!0;break;case"Up":case"ArrowUp":m(),g=!0;break;default:break}g&&(C.stopPropagation(),C.preventDefault())},[u,d,m]),v=t??"button";return(0,s.jsx)(v,{...r,"aria-controls":a,"aria-expanded":i,"aria-haspopup":"menu","aria-label":n,"aria-labelledby":o,"data-menu-trigger":"",onClick:l,onKeyDown:f,ref:p,type:"button",children:e})}function Vw({children:t,className:e}){const{htmlIdContent:n,isExpanded:o,refContent:r,styleContent:a}=Ut.useContext(ou);return o?to.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}),hr()):null}function ru({children:t,className:e,isDisabled:n,name:o}){const{onItemClick:r,onItemKeyDown:a}=Ut.useContext(ou),i=Ut.useCallback(l=>{l.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:i,role:"menuitem",tabIndex:n?-1:void 0,type:"button",children:t})}function nse({children:t}){return yg("span",{"data-menu-item-icon":"",children:t})}function ose({className:t}){return yg("hr",{className:t,"data-menu-separator":""})}function Lg(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function Uw(t){return t!=null&&t.tagName==="BUTTON"&&!Lg(t)}function $w(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const Kc=ne("audio-player-actions-condensed"),yr=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript",RevertToSource:"revert-audio-to-source"}),Ww=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onTranscriptClick:o,onTranscriptClose:r,item:a,side:i,refs:l})=>{const{mode:u,isVariantLocale:d,handleOpenMediaModal:m,handleDelete:p,handleRevertToSource:f}=zd(),v=Gc(),C=ks(),g=(0,at.gY)(),b=a&&"media"in a&&a.media?g(a.media):void 0,L=b&&"audio"in b?b.audio.aiAudioSettings:void 0,y=(0,at.D_)(),E=yh(),x=y?E(y):"",[S,T]=(0,h.useState)(!1),N=(0,h.useCallback)(()=>T(!0),[]),j=(0,h.useCallback)(()=>T(!1),[]),O=d&&"audio"in b&&b.audio?.sourceType==="ai-audio"&&L?.l10nAutoGenStatus!=="reverted-to-source"&&L?.l10nAutoGenStatus!=="unsupported-locale",D=(0,Ce.vU)(),B=v?.audioPlayerIdOpen===t,R=B?D?.audioHideTranscript:u==="edit"?"Edit transcript":D?.audioShowTranscript;function H(M){switch(M){case yr.DeleteAudio:p(C.id,a,l);break;case yr.EditTranscript:B?r?.():o?.();break;case yr.EditAudio:m(C,a,l,i,{triggeredFrom:"block_audio_button"});break;case yr.RevertToSource:f(C.id,a);break}}const w=!!g(n)?.audio?.transcript;return m||p||w?(0,s.jsx)(Wc,{elementFocused:S,message:"Options",children:(0,s.jsxs)(Fw,{onSelect:H,positionX:"left",children:[(0,s.jsx)(zw,{as:Ot.ArcButton,hierarchy:"tertiary",icon:"fa-regular fa-ellipsis",label:"Options",layout:"icon",onBlur:j,onFocus:N,onMouseEnter:N,onMouseLeave:j,shape:"square",size:e?"sm":"md"}),(0,s.jsxs)(Vw,{className:Kc("content"),children:[m?(0,s.jsx)(ru,{className:Kc("menu-item"),name:yr.EditAudio,children:"Edit audio"}):null,u==="edit"||w?(0,s.jsx)(ru,{className:Kc("menu-item"),name:yr.EditTranscript,children:R}):null,p&&C?.variant!=="audio"?(0,s.jsx)(ru,{className:Kc("menu-item"),name:yr.DeleteAudio,children:"Remove audio"}):null,f&&O?(0,s.jsxs)(ru,{className:Kc("menu-item"),name:yr.RevertToSource,children:["Revert to source audio (",x,")"]}):null]})]})}):null};var Gw,Eg,$t=c(15648);const _c=$t.createContext(null);function Kw({children:t,className:e,isDisabled:n,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:i,portalArgs:l,positionX:u="left",value:d}){const[m,p]=$t.useState(null),f=(0,Me.A)(m),[v,C]=$t.useState(!1),g=(0,Me.A)(v),[b,L]=$t.useState(null),y=$t.useRef(null),E=$t.useRef(null),x=$t.useRef(null),T=`select-${$t.useId()}`,N=`${T}-content`,j=m?.id,O=$t.useCallback(M=>{const z=M.currentTarget;Sg(z)||(C(!1),p(z),i(z.getAttribute("data-value")),M.stopPropagation())},[i]),D=$t.useCallback(M=>{p(M)},[]),B=$t.useCallback(()=>{C(M=>!M)},[]),R=$t.useCallback(()=>{const{left:M,top:z}=ev({anchor:E.current,popover:x.current,positionX:u}),X=window.getComputedStyle(E.current).direction==="rtl"?-M:M;L({transform:`translate3d(${X}px, ${z}px, 0)`,visibility:"visible",width:`${E.current?.offsetWidth}px`})},[u]),H=$t.useCallback(M=>{const z=Array.from(x.current?.querySelectorAll("[data-select-item]")??[]),Z=z.length,Y=z.findIndex(Le=>Le.getAttribute("data-select-item")==="current");let X,pe=Y+1;for(let Le=0;Le<Z;Le++){pe>=Z&&(pe=0);const ke=z[Le];if(ke!=null&&!Sg(ke)&&Yw(ke,M)){X=Le;break}else pe=Z-1}X&&(p(z[X]),z[X]?.scrollIntoView({block:"center"}))},[]),w=$t.useCallback(M=>{const z=M.key;if(M.ctrlKey||M.metaKey)return;let Z=!1;const Y=Array.from(x.current?.querySelectorAll("[data-select-item]")??[]),X=Y.findIndex(pe=>pe.getAttribute("data-select-item")==="current");if(v)if(z.length===1&&z!==" "&&!M.altKey&&!M.ctrlKey&&!M.metaKey)H(z);else switch(z){case" ":case"Enter":C(!1),Y[X]!=null&&i(Y[X].getAttribute("data-value")),Z=!0;break;case"Esc":case"Escape":C(!1),p(Y.find(pe=>pe.getAttribute("aria-selected")==="true")),Z=!0;break;case"ArrowUp":M.altKey?(C(!1),Y[X]!=null&&i(Y[X].getAttribute("data-value")??"")):X>0&&(p(Y[X-1]),Y[X-1].scrollIntoView({block:"center"})),Z=!0;break;case"ArrowDown":X<Y.length-1&&(p(Y[X+1]),Y[X+1].scrollIntoView({block:"center"})),Z=!0;break;case"Home":p(Y[0]),Y[0]?.scrollIntoView({block:"center"}),Z=!0;break;case"End":p(Y[Y.length-1]),Y[Y.length-1]?.scrollIntoView({block:"center"}),Z=!0;break;case"PageUp":p(Y[0]),Y[0]?.scrollIntoView({block:"center"}),Z=!0;break;case"PageDown":p(Y[Y.length-1]),Y[Y.length-1]?.scrollIntoView({block:"center"}),Z=!0;break;case"Tab":C(!1),Y[X]!=null&&i(Y[X].getAttribute("data-value"));break}else if(z.length===1&&z!==" "&&!M.altKey&&!M.ctrlKey&&!M.metaKey)C(!0),H(z);else switch(z){case" ":case"Enter":C(!0),Z=!0;break;case"ArrowUp":C(!0),p(Y[0]),Z=!0;break;case"ArrowDown":C(!0),Z=!0;break;case"Home":C(!0),p(Y[0]),Z=!0;break;case"End":C(!0),p(Y[Y.length-1]),Z=!0;break}Z&&(M.stopPropagation(),M.preventDefault())},[H,v,i]);return $t.useEffect(()=>{const M=x.current?.querySelector('[data-select-item][aria-selected="true"]');p(M)},[]),$t.useEffect(()=>{const M=x.current?.querySelector(`[data-select-item][data-value="${d}"]`);p(M)},[d]),$t.useEffect(()=>{const M=z=>{v&&y.current!=null&&x.current!=null&&!y.current.contains(z.target)&&!x.current.contains(z.target)&&C(!1)};return v?document.addEventListener("click",M):document.removeEventListener("click",M),()=>{document.removeEventListener("click",M)}},[v]),$t.useEffect(()=>(v?window.addEventListener("resize",R):window.removeEventListener("resize",R),()=>{window.removeEventListener("resize",R)}),[R,v]),$t.useEffect(()=>{const M=bd(y.current);for(const z of M)v?z?.addEventListener("scroll",R,{passive:!0}):z?.removeEventListener("scroll",R);return()=>{for(const z of M)z?.removeEventListener("scroll",R)}},[R,v]),$t.useEffect(()=>{v?R():L(null)},[R,v]),$t.useEffect(()=>{v&&f!=null&&f!==m&&r?.({value:m.getAttribute("data-value")})},[v,f,m,r]),$t.useEffect(()=>{if(g&&!v)o?.();else if(!g&&v&&(a?.(),y.current)){const M=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:y.current}});y.current.dispatchEvent(M)}},[g,v,o,a]),$t.useEffect(()=>{const M=z=>{z.detail.target!==y.current&&C(!1)};return document.addEventListener("comboboxopen",M),()=>{document.removeEventListener("comboboxopen",M)}},[]),(0,s.jsx)(_c.Provider,{value:{activeEl:m,htmlIdActiveDescendant:j,htmlIdBase:T,htmlIdContent:N,isExpanded:v,onItemClick:O,onItemHover:D,onTriggerClick:B,onTriggerKeyDown:w,portalArgs:l,refContent:x,refTrigger:E,selectedValue:d,styleContent:b},children:(0,s.jsx)("div",{"aria-owns":N,className:e,inert:n?!0:void 0,ref:y,children:t})})}function _w({children:t,className:e,labelledBy:n,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:i,isExpanded:l,onTriggerClick:u,onTriggerKeyDown:d,refTrigger:m}=$t.useContext(_c),p=!!o,f=o??"button";return(0,s.jsxs)(f,{"aria-activedescendant":a,"aria-controls":i,"aria-expanded":l,"aria-haspopup":"listbox","aria-labelledby":n,className:e,"data-select-trigger":p?void 0:"",onClick:u,onKeyDown:d,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:l?(0,s.jsx)(it,{name:"chevron-up"}):(0,s.jsx)(it,{name:"chevron-down"})})]})}function Qw({children:t,className:e,label:n,labelledBy:o,style:r={}}){const{htmlIdContent:a,isExpanded:i,portalArgs:l,refContent:u,styleContent:d}=$t.useContext(_c);return to.createPortal((0,s.jsx)("div",{"aria-label":n,"aria-labelledby":o,className:e,"data-select-content":"",hidden:i?void 0:!0,id:a,ref:u,role:"listbox",style:{...d,...r},children:t}),hr(l))}function ase({children:t,className:e,labelText:n}){const{htmlIdBase:o}=$t.useContext(_c),r=$t.useId(),a=`${o}-group-label-${r}`;return Gw("div",{"aria-labelledby":a,className:e,"data-select-group":"",role:"group",children:[Eg("div",{"data-select-group-label":"",id:a,role:"presentation",children:n}),t]})}function Zw({children:t,className:e,labelledBy:n,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:i,onItemClick:l,onItemHover:u,selectedValue:d}=$t.useContext(_c),m=$t.useRef(null),p=$t.useId(),f=m.current===a,v=r===d,C=`${i}-option-${p}`,g=$t.useCallback(()=>{u(m.current)},[u]);return(0,s.jsxs)("div",{"aria-disabled":o,"aria-labelledby":n,"aria-selected":v,className:e,"data-select-item":f?"current":"","data-value":r,id:C,onClick:o?void 0:l,onMouseEnter:g,ref:m,role:"option",children:[t,v&&(0,s.jsx)("span",{"data-select-item-selected":"",children:(0,s.jsx)(it,{name:"check"})})]})}function ise({children:t}){return Eg("span",{"data-select-item-icon":"",children:t})}function Sg(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function Yw(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const Vh=ne("playback-speed-menu"),Xw=({onChange:t,condensed:e=!1,speed:n})=>{const o=(0,Ce.vU)(),[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>a(!0),[]),l=(0,h.useCallback)(()=>a(!1),[]);return(0,s.jsx)(Wc,{elementFocused:r,message:o?.audioPlaySpeed,children:(0,s.jsxs)(Kw,{className:Vh(),onOpen:l,onSelect:u=>t(parseFloat(u)),portalArgs:{id:"portal",childType:"other"},value:String(n),children:[(0,s.jsxs)(_w,{"aria-label":o?.audioPlaySpeed,as:Ot.ArcButton,className:Vh("trigger"),hierarchy:"tertiary",labelledBy:void 0,layout:"hug",onBlur:l,onFocus:i,onMouseEnter:i,onMouseLeave:l,shape:"square",size:e?"sm":"md",children:[n,"x"]}),(0,s.jsx)(Qw,{className:Vh("content"),label:o?.audioPlaySpeed,children:Hw.map((u,d)=>(0,s.jsx)(Zw,{value:String(u.value??""),children:u.label},d))})]})})};function Jw(t=!1,e=200){const n=(0,h.useRef)(void 0),[o,r]=(0,h.useState)(t),a=(0,h.useCallback)(()=>{n.current&&clearTimeout(n.current),r(!0)},[]),i=(0,h.useCallback)(l=>{n.current&&clearTimeout(n.current),l?r(!1):n.current=setTimeout(()=>{r(!1)},e)},[e]);return(0,h.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]),{isActive:o,setActive:a,setInactive:i}}const Tg=ne("audio-player-volume"),qw=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function eM(t,e){return e||t<=0?"volumeXmark":t<=1/3?"volumeLow":t<=2/3?"volume":"volumeHigh"}function tM({condensed:t=!1,muted:e,onChange:n,onMute:o,volume:r}){const a=(0,Ce.vU)(),i=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useRef)(null),{isActive:d,setActive:m,setInactive:p}=Jw(!1,200),f=e?0:r;function v(g){if(qw.includes(g.code)){const y=window.getComputedStyle(g.currentTarget).direction==="rtl"?"ArrowLeft":"ArrowRight",E=g.code==="ArrowUp"||g.code===y?Math.min(f+nu,1):Math.max(f-nu,0);n(E),g.stopPropagation(),g.preventDefault()}else g.code==="KeyM"&&(o(),g.stopPropagation(),g.preventDefault())}(0,h.useEffect)(()=>{u.current.style.setProperty("--slider-volume",`${f*100}%`)},[f]);const C=`${Math.round(f*100)}%`;return(0,s.jsxs)("div",{className:Tg(),onKeyDown:v,onMouseEnter:m,onMouseLeave:()=>p(!1),ref:i,children:[(0,s.jsx)(Ot.ArcButton,{"aria-label":f<=0?a?.a11yMediaUnmute:a?.a11yMediaMute,color:"primary",hierarchy:"tertiary",icon:(0,s.jsx)(it,{name:eM(f,e)}),layout:"icon",onClick:o,ref:l,size:t?"sm":"md",type:"button"}),(0,s.jsx)("input",{"aria-label":a?.a11yMediaVolume,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":f*100,"aria-valuetext":C,className:Tg("slider").mix(d?"":"visually-hidden"),max:100,min:0,onChange:g=>n(g.currentTarget.valueAsNumber/100),ref:u,type:"range",value:f*100})]})}const En=ne("audio-player"),au=({currentTime:t,duration:e})=>Math.round(t/e*100)||0,Ig=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}},Ng=t=>{const{minutes:e,seconds:n}=Ig(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},sM=t=>{const{hours:e,minutes:n,seconds:o}=Ig(t);function r(l,u,d){return(new Array(d+1).join(u)+l).slice(-d)}const a=r(n,"0",2),i=r(o,"0",2);return e>0?`${e}:${a}:${i}`:`${n}:${i}`};class Ei extends h.Component{audio;play;playerControls;seekSlider;onDelete;constructor(e){super(e),this.state={condensed:!1,currentTime:0,playheadPositionSaveThrottle:0,playbackSpeed:1,playerExpanded:!0,shouldLoadPlayheadPosition:!0,volume:1,muted:!1,maxTime:e.audioVideoPlayhead||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,transcriptMedia:null};static timeMs(e){return Math.round(e*1e3)}keySeek(e){const{canRestrictSeek:n}=this.props,{currentTime:o,duration:r}=this.audio,{maxTime:a}=this.state;let i=o+e;n&&i>a&&(i=a);const l=Math.max(0,r-.01);this.audio.currentTime=e<0?Math.max(i,0):Math.min(i,l)}changeVolume=e=>{this.audio.volume=Math.round(e*100)/100,this.audio.muted=!1};muteToggle=()=>{this.audio.volume<=0?(this.audio.volume=1,this.audio.muted=!1):this.audio.muted=!this.audio.muted};changeVolumeDelta=e=>{const n=e<0?Math.max(this.audio.volume+e,0):Math.min(this.audio.volume+e,1);this.changeVolume(n)};componentDidMount(){st.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;(!e.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),st.isPlaying&&st.playerId===this.props.id&&st.pause()),n.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:e,id:n}=this.props;st.playerId===n&&st.pause(),st.removeChangeListener(this.handleChange),e&&e(au(this.audio))}handleClickInsideAudioPlayer=e=>{e.stopPropagation(),e.preventDefault()};handleChange(){st.playerId===this.props.id?this.audio&&(st.isPlaying&&this.audio.paused?this.audio.play():!st.isPlaying&&!this.audio.paused&&this.audio.pause(),this.forceUpdate()):st.isPlaying&&(this.audio.pause(),this.forceUpdate())}containerResizeRef=e=>{const n=new ResizeObserver(([o])=>{if(!o)return;const r=getComputedStyle(document.documentElement),a=parseFloat(r.fontSize)/10;this.setState({condensed:o.contentRect.width<300*a})});return this.setState({condensed:e.getBoundingClientRect().width<256}),n.observe(e),()=>{n.disconnect()}};render(){const{allowTabNavigation:e,id:n,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:i,mode:l,onDelete:u,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p,item:f,side:v,refs:C,transcriptAudioPlayerIdOpen:g}=this.props,b=st.isPlaying&&st.playerId===n,{currentTime:L,playerExpanded:y}=this.state,E=this.audio?.duration??0,x=Number.isNaN(E)?0:E,S=Math.round(x-L),T=sM(S),N=Ng(S),j=Ng(L),O=e?0:-1,D=!o,{a11yGroupAudioPlayer:B,a11yMediaPlay:R,a11yMediaPause:H,a11yMediaSeek:w}=a??{},M=En({overlay:r,collapsed:r&&!y,expanded:!r||y,"volume-slider-below":this.props.volumeSliderPosition==="below"}),z=o||l==="edit"?"Collapse audio player":a?.audioCollapsePlayer,Z=o||l==="edit"?"Expand audio player":a?.audioExpandPlayer,Y=y?z:Z,X=io({refs:C}),Le=g===X?Sh(g):void 0;return(0,s.jsx)("div",{className:En("container"),onClick:this.handleClickInsideAudioPlayer,ref:this.containerResizeRef,children:(0,s.jsxs)("div",{className:M,id:n,children:[D&&(0,s.jsx)("div",{className:En("waveform"),children:r?(0,s.jsx)(Wc,{message:Y,children:(0,s.jsx)("button",{"aria-label":Y,className:En("waveform-icon"),onClick:this.onTogglePlayer,type:"button",children:(0,s.jsx)(bg,{animating:b})})}):(0,s.jsx)("div",{className:En("waveform-icon",{disabled:!0}),children:(0,s.jsx)(bg,{animating:b})})}),(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":B,"aria-owns":Le,className:En("housing",{"with-border":D}),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:di,tabIndex:O,children:[(0,s.jsxs)("div",{className:En("play-timer-housing"),children:[(0,s.jsx)(Ot.ArcButton,{"aria-label":b?H:R,className:En("play"),hierarchy:"tertiary",icon:(0,s.jsx)(it,{className:En("icon"),name:b?"pause-solid":"play-solid"}),layout:"icon",onClick:this.onPlayClick,ref:ke=>{this.play=ke},shape:"square",size:this.state.condensed?"sm":"md",tabIndex:O,type:"button"}),(0,s.jsx)("input",{"aria-label":w,"aria-valuemax":x,"aria-valuemin":0,"aria-valuenow":L,"aria-valuetext":j,className:En("seek-slider"),max:x,min:0,onChange:this.onSeekSliderChange.bind(this),ref:ke=>{this.seekSlider=ke},step:.01,type:"range",value:L}),(0,s.jsx)("div",{"aria-label":N,className:En("timer").mix(this.state.condensed?"visually-hidden-always":""),role:"timer",children:T})]}),(0,s.jsxs)("div",{className:En("player-controls"),ref:ke=>{this.playerControls=ke},children:[(0,s.jsx)(Xw,{condensed:this.state.condensed,onChange:ke=>{this.setState({playbackSpeed:ke})},speed:this.state.playbackSpeed}),(0,s.jsx)(tM,{condensed:this.state.condensed,muted:this.state.muted,onChange:this.changeVolume,onMute:this.muteToggle,volume:this.state.volume}),l==="readonly"||o?(0,s.jsx)(Mw,{audioPlayerId:X,condensed:this.state.condensed,onDelete:u,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p}):(0,s.jsx)(Ww,{audioPlayerId:X,condensed:this.state.condensed,item:f,onTranscriptClick:d,onTranscriptClose:m,refs:C,side:v,transcriptMedia:p})]})]}),(0,s.jsx)("audio",{className:En("audio-element"),"data-testid":"audio-player-element",onEnded:this.onEnded.bind(this),onLoadedMetadata:this.onLoadedMetadata.bind(this),onPause:this.onAudioPlayPause,onPlay:this.onAudioPlayPause,onSeeked:this.onSeeked.bind(this),onTimeUpdate:this.onTimeUpdate.bind(this),onVolumeChange:this.onVolumeChangeHandler,ref:ke=>{this.audio=ke},src:(0,Ge.o1)(`${i}`)},"audio-"+n)]},`player-${n}`)})}onKeyDown(e){const o=ln(this.onPlayClick),r=ln(()=>this.keySeek(5)),a=ln(()=>this.keySeek(-5)),i=ln(()=>this.changeVolumeDelta(nu)),l=ln(()=>this.changeVolumeDelta(-nu)),u=ln(()=>this.muteToggle()),d=g=>g.target===this.play,m=g=>g.target===this.seekSlider,p=g=>this.playerControls===g.target||this.playerControls.contains(g.target),f=dn()([[ai,o],[Cr,pr],[gr,pr],[sa,pr],[ta,pr]]),v=dn()([[ai,o],[Xp,r],[Jp,a]]),C=dn()([[ai,o],[Cr,r],[gr,a],[ta,i],[sa,l],[g=>g.code==="KeyM",u]]);dn()([[d,f],[m,v],[p,pr],[Li(),C]])(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:i,refs:l,transcriptMedia:u}=this.props,{paused:d,currentTime:m,duration:p}=e.currentTarget;if(d)d&&st.playerId===o&&(st.isPlaying=!1,r(Ei.timeMs(m)),i&&i(au({currentTime:m,duration:p})));else{st.playerId=o,st.isPlaying=!0,a(Ei.timeMs(m));const f=io({refs:l});n(xr({audioPlayerId:f,transcriptMedia:u}))}this.setState({shouldLoadPlayheadPosition:!1})};onVolumeChangeHandler=e=>{const{volume:n,muted:o}=e.currentTarget;this.setState({volume:n,muted:o})};onSeekSliderChange(e){const{canRestrictSeek:n}=this.props,{maxTime:o}=this.state;let r=e.currentTarget.valueAsNumber;n&&r>o&&(r=o),this.audio.currentTime=r}onLoadedMetadata(e){const{currentTime:n,duration:o,muted:r,volume:a}=e.currentTarget;this.setState({currentTime:n,muted:r,volume:a});const i=n/o*100;this.seekSlider.style.setProperty("--seek-slider-percent",`${i}%`);const{onLoad:l}=this.props;l()}onEnded(e){const n=e.currentTarget;this.audio.currentTime=0,this.setState({currentTime:n.currentTime}),st.isPlaying=!1,this.props.onEnd(Ei.timeMs(n.currentTime)),this.forceUpdate()}onSeeked(e){const{id:n,onSeek:o,recordMediaPlayheadPosition:r}=this.props,{currentTime:a,duration:i}=e.currentTarget;st.isPlaying&&st.playerId!==n&&(st.isPlaying=!1),st.playerId=n,o(Ei.timeMs(a)),r&&r(au({currentTime:a,duration:i}))}onTimeUpdate(e){const n=e.currentTarget,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=n,i=Math.floor(r);r>this.state.maxTime&&this.setState({maxTime:r});const l=r/a*100;this.seekSlider.style.setProperty("--seek-slider-percent",`${l}%`),(0,Ge.ih)(),this.setState({currentTime:r}),i%5===0&&this.state.playheadPositionSaveThrottle!==i&&o&&(o(au(n)),this.setState({playheadPositionSaveThrottle:i}))}onTogglePlayer(e){this.setState(({playerExpanded:n})=>({playerExpanded:!n})),e.preventDefault(),e.stopPropagation()}}const nM=(0,ws.Ls)()(Ei),er=t=>e=>e!=null&&typeof e=="object"&&"status"in e&&typeof e.status=="string"&&t.includes(e.status),oM=er(["uploading","processing","cropping","crushing"]),lse=er(["canceled"]),jg=er(["complete"]),rM=er(["cropping"]),aM=er(["crushing"]),iM=er(["uploading"]),cM=er(["processing"]),lM=er(["errored"]),kg=er(["cropping","crushing","errored","processing","uploading"]);function dM(t){return t==null||typeof t!="object"?0:Object.values(t).filter(oM).length}function dse(t){return Math.round(t.loaded*100/t.total)}const use=t=>t?.file?.name||t?.opts?.filename||"";function hse(t){return t==null||typeof t!="object"?!1:Object.keys(t).length>0&&dM(t)>0}const iu=t=>W()("upload-progress__wrapper",t),Ag=(0,h.createContext)(null);function Rg(){return(0,h.useContext)(Ag)}const mse=Ag.Provider;function uM(t){function e(n){const o=Rg();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 cu=({onClick:t,text:e})=>(0,s.jsxs)(Ot.ArcButton,{hierarchy:"tertiary",onClick:t,size:"sm",type:"button",children:[e,(0,s.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),Uh=20,Qc=Uh/2,$h=Qc-2,Pg=+(2*Math.PI*$h).toFixed(3),hM=t=>Pg*(100-t)/100;function wg({classes:t,percent:e}){return(0,s.jsxs)("svg",{className:W()("upload-progress__pie",t),focusable:"false",height:`${Uh}px`,width:`${Uh}px`,children:[(0,s.jsx)("circle",{className:"upload-progress__border",cx:Qc,cy:Qc,r:$h}),(0,s.jsx)("circle",{className:"upload-progress__progress",cx:Qc,cy:Qc,r:$h,strokeDasharray:Pg,strokeDashoffset:hM(e)})]})}const mM=({text:t})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(wg,{classes:"upload-progress__pie--processing",percent:70}),(0,s.jsx)("div",{className:"upload-progress__text",children:t})]}),pM=({percentage:t,text:e="Uploading\u2026"})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(wg,{percent:t}),(0,s.jsx)("div",{className:"upload-progress__text",children:e})]}),Wh=({classes:t,jobId:e,onCancel:n,text:o})=>(0,s.jsxs)("div",{className:iu(t),children:[(0,s.jsx)(mM,{text:o}),e&&(0,s.jsx)(cu,{onClick:n,text:"Cancel"})]}),fM=({classes:t,onCancel:e,percentage:n,text:o})=>(0,s.jsxs)("div",{className:iu(t),children:[(0,s.jsx)(pM,{percentage:n,text:o}),(0,s.jsx)(cu,{onClick:e,text:"Cancel"})]}),vM=({message:t="Error"})=>(0,s.jsxs)("div",{className:"upload-error",children:[(0,s.jsx)(Ot.ArcIcon,{icon:"fa-regular fa-circle-exclamation"}),(0,s.jsx)("div",{className:"upload-error__text",children:t})]}),gM=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:iu(t),children:[(0,s.jsx)(vM,{message:e}),(0,s.jsx)(cu,{onClick:n,text:"Dismiss"})]}),CM=({message:t="Success"})=>(0,s.jsxs)("div",{className:"upload-success",children:[(0,s.jsx)(Ot.ArcIcon,{icon:"fa-regular fa-check"}),(0,s.jsx)("div",{className:"upload-success__text",children:t})]}),xM=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:iu(t),children:[(0,s.jsx)(CM,{message:e}),n?(0,s.jsx)(cu,{onClick:n,text:"Dismiss"}):null]}),bM=t=>{const{classes:e,data:n={},errorMessage:o,jobId:r,progress:a,onCancelUpload:i,onCancelProcess:l,onErrorDismiss:u,onSuccessDismiss:d,successMessage:m,uploadType:p}=t;return lM(t)?(0,s.jsx)(gM,{classes:e,message:o||n?.message,onClick:u}):iM(t)?(0,s.jsx)(fM,{classes:e,onCancel:i,percentage:a,text:`Uploading ${p}\u2026`}):cM(t)?(0,s.jsx)(Wh,{classes:e,jobId:r,onCancel:l,text:`Processing ${p}\u2026`}):aM(t)?(0,s.jsx)(Wh,{classes:e,onCancel:l,text:`Uploading ${p}\u2026`}):rM(t)?(0,s.jsx)(Wh,{classes:e,onCancel:l,text:"Cropping image\u2026"}):jg(t)&&m?(0,s.jsx)(xM,{classes:e,message:m,onClick:d}):(0,s.jsx)("div",{})},Gh=ne("audio-player"),yM=Gh("upload-state");function Mg({uploadId:t,onAIUploadFinish:e,volumeSliderPosition:n,...o}){const r=Rg(),{mode:a}=zd(),i=Gc(),l=r&&t?r.getUpload(t):null,u=(0,h.useMemo)(()=>l&&l.mediaType==="audio"&&kg(l),[l]),d=(0,Me.A)(u);if((0,h.useEffect)(()=>{!u&&d&&e?.()},[u,d,e]),u){const{jobId:m,status:p,progress:f,data:v}=l,C=b=>()=>r?.handleUploadDismiss(b,l),g=Gh({overlay:o.isOverlayAudio,static:o.isOverlayAudio});return(0,s.jsx)("div",{className:Gh("container"),children:(0,s.jsx)("div",{className:g,children:(0,s.jsx)(bM,{classes:yM,errorMessage:v?.message,jobId:m,onCancelProcess:C("process"),onCancelUpload:C("upload"),onErrorDismiss:C("error"),progress:f,status:p,successMessage:"Processing\u2026",uploadType:"audio"})})})}return(0,s.jsx)(nM,{...o,mode:a,transcriptAudioPlayerIdOpen:i?.audioPlayerIdOpen??null,volumeSliderPosition:n})}var LM=c(61204),EM=c.n(LM),SM=c(61064),TM=c.n(SM);const Si=h.memo(({align:t,alt:e,allowTabNavigation:n=!0,cornerRadius:o,disableZoom:r,height:a,l10nId:i,labels:l,maxHeight:u=380,onLoad:d,shouldFillWidth:m,src:p,width:f})=>{const v=(0,Ys.Ll)(e),C=n&&!r,g=W()("img-img",{"img-img--left":t==="left","img-img--right":t==="right","img-img--center":!t||t==="center","img-img--fill":m});let b={};o!=null&&(b["--corner-radius"]=`${Number(o)}px`),f>0&&a>0&&a>u?(f=Math.round(f*u/a),a=u):u&&(!f||!a)&&(b={maxHeight:u});let L=(0,s.jsx)(Ln,{alt:v,className:g,"data-l10n-id":i,height:a,onLoad:d,src:p,style:b,width:f});return C&&(L=(0,s.jsx)(vg,{a11yNameButtonUnzoom:l?.a11yUnzoomImage,a11yNameButtonZoom:l?.a11yZoomImage,children:L})),(0,s.jsx)("div",{className:"img",children:L})});var IM=c(94069),NM=c(80002),Kh=c.n(NM);const jM=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,kM=t=>typeof t=="string"&&t.replace(jM,""),Un=Kh()(kM,IM.J);var yse=c(91299),AM=c(67312),RM=c.n(AM),PM,wM,MM,Og;const{validIframe:Dg,validUrl:Bg}=lt.yG,Hg=ro()("type","embed"),OM=RM()("type","embedType"),DM=N1()(/http:/i,"https:"),BM=t=>({embedType:"iframe",originalUrl:t,src:t}),HM=t=>Ti(t.embed),Ti=t=>t?.embedType||t?.type,Lse=t=>MM([[Og(Dg),PM(Hg,BM,DM)],[Og(Bg),wM(Hg,OM,t)]]),Ese=vr()($e()(mh()(Dg),so.R9),mh()(Bg)),Sse="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var ha=c(15648);const Fg=t=>{const e=(0,Ge._$)("CDN_USER_CONTENT_URI"),n=new RegExp((0,Ge._$)("CDN_URI"),"g");return(0,Ge.Hm)()?t:n.test(t)?`${e}${new URL(t).pathname}${new URL(t).search}`:t},FM=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:","")},zM=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,VM=t=>zM.test(t),UM=/^\/\//,$M=t=>t?.replace(UM,"https://"),WM=$e()($M,Jr()(VM,FM),Jr()(Boolean,Ge.o1),Un),GM=t=>{const{paddingBottom:e,ref:n,value:o}=t;return(0,s.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:ha.useMemo(()=>({__html:o}),[o]),ref:n,style:{paddingBottom:e}})};class KM extends ha.Component{player;refIframeContainer=ha.createRef();refIframePlayer=ha.createRef();state={duration:0,isReady:!1};static get defaultProps(){return{allowTabNavigation:!0,shouldPause:!1,showMetaData:!0}}componentDidUpdate(e){!e.shouldPause&&this.props.shouldPause&&st.isPlaying&&(this.player?.pause(),st.isPlaying=!1)}componentWillUnmount(){Ti(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}),st.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:e}=this.props;st.isPlaying&&st.playerId!==e&&(st.isPlaying=!1),st.playerId=e,st.isPlaying=!0};handlePlayerUpdate=e=>{this.props.progressChanged?.({done:e.seconds/e.duration*100})};handlePlayerChange=()=>{const{id:e}=this.props;st.playerId===e&&(st.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(EM()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{st.isPlaying=!1,st.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 TM()(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=ln(this.togglePlay),a=ln(()=>this.keySeek(5)),i=ln(()=>this.keySeek(-5)),l=ln(()=>this.changeVolume(10)),u=ln(()=>this.changeVolume(-10));dn()([[Ld,r],[Cr,a],[gr,i],[ta,l],[sa,u]])(e)};renderProvider=()=>{const{allowTabNavigation:e,embedId:n,externalLinksDisabled:o,onLinkBlur:r,onLinkFocus:a,onLinkMouseEnter:i,onLinkMouseLeave:l,showMetaData:u,data:d}=this.props,{providerUrl:m,provider:p,favicon:f}=d;if(!(u&&m))return null;const v=Un(m),C=o&&Mn(v),g=`${n}-provider`,b=C?"":void 0,L=C?void 0:v,y=C?void 0:"noopener noreferrer",E=C?"button":void 0,x=C?void 0:"_blank";return(0,s.jsx)("h2",{className:"embed__provider",children:(0,s.jsxs)("a",{className:"brand--hoverColor","data-external":b,href:L,id:C?g:void 0,onBlur:C?()=>r?.(g):void 0,onFocus:C?()=>a?.(g):void 0,onMouseEnter:C?()=>i?.(g):void 0,onMouseLeave:C?()=>l?.(g):void 0,rel:y,role:E,style:C?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:x,children:[(0,s.jsx)(Ln,{alt:f?p:"",className:"embed__providerIcon",src:f}),(0,s.jsx)("span",{className:"embed__providerName",children:p})]})})};renderMetaData=()=>{const{allowTabNavigation:e,data:n,embedId:o,externalLinksDisabled:r,labels:a,onLinkBlur:i,onLinkFocus:l,onLinkMouseEnter:u,onLinkMouseLeave:d,showMetaData:m}=this.props,{src:p,title:f,description:v,provider:C}=n,g=Ti(n);if(!m&&g!=="link")return null;const b=Un(p),L=r&&Mn(b),y=`${o}-metadata-title`,E=`${o}-metadata-readmore`,x=S=>({"data-external":L?"":void 0,href:L?void 0:b,id:L?S:void 0,onBlur:L?()=>i?.(S):void 0,onFocus:L?()=>l?.(S):void 0,onMouseEnter:L?()=>u?.(S):void 0,onMouseLeave:L?()=>d?.(S):void 0,rel:L?void 0:"noopener noreferrer nofollow",role:L?"button":void 0,style:L?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:L?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",...x(y),children:(0,s.jsx)(St,{value:f})})}),(0,s.jsx)(St,{className:"embed__description",value:v}),(0,s.jsxs)("a",{className:"embed__readMore brand--hoverColor",...x(E),children:[g==="link"?`${a?.embedReadMore} ${C}`:`${a?.embedViewOn} ${C}`,(0,s.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:e,data:n,embedId:o,externalLinksDisabled:r,isLesson:a,labels:i,onLinkBlur:l,onLinkFocus:u,onLinkMouseEnter:d,onLinkMouseLeave:m,showMetaData:p}=this.props,{useRelativePath:f}=n??{},{description:v,originalUrl:C,src:g,thumbnail:b,title:L}=n,y=Ti(n);if(y==="iframe"){const E=document.createElement("div");E.innerHTML=(0,so.R9)(g);const x=E.firstChild,S=x&&x.tagName&&x.tagName.toLowerCase()==="iframe";let T=100,N=32;if(mx(window.location.href)&&f)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:L}),(0,s.jsx)("p",{className:"embed__relativeUrl--url",children:C})]});if(S){const H=x.width.match(/%/),w=parseInt(x.width);x.src=Un(x.src),T=H?700*(w/100):w||16,N=parseInt(x.height)}const j=N/T,O=S?`${j*100}%`:"3rem";if(x.src.includes("typeform")){const H=new window.URL(x.src);H.searchParams.append("disable-auto-focus","true"),x.src=H.toString()}if(x.src.includes("forms.office.com")){const H=new window.URL(x.src);H.searchParams.append("embed","true"),x.src=H.toString()}const R=S?x.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.embedPlayerGroup,className:"embed",role:di,children:[f&&(0,s.jsx)("div",{className:"embed__title embed--iframe__title",children:L}),(0,s.jsx)(GM,{paddingBottom:O,ref:this.refIframeContainer,value:R})]})}else if(a){const E=f?g:Un(g),x=r&&Mn(E),S=`${o}-lesson-title`,T=`${o}-lesson-url`,N=x?"":void 0,j=x?void 0:E,O=x?void 0:"noopener noreferrer nofollow",D=x?"button":void 0,B=x?void 0:"_blank";if(f){const R={"data-external":x?"":void 0,href:E,id:x?S:void 0,onBlur:x?()=>l?.(S):void 0,onFocus:x?()=>u?.(S):void 0,onMouseEnter:x?()=>d?.(S):void 0,onMouseLeave:x?()=>m?.(S):void 0,rel:x?void 0:"noopener noreferrer nofollow",role:x?"button":void 0,tabIndex:e?0:-1,target:x?void 0:"_blank"};return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:di,children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...R,children:(0,s.jsx)(St,{value:L})})}),["link","photo"].includes(y)?(0,s.jsxs)("a",{className:"embed__relativeUrl--url","data-external":N,href:j,id:x?T:void 0,onBlur:x?()=>l?.(T):void 0,onFocus:x?()=>u?.(T):void 0,onMouseEnter:x?()=>d?.(T):void 0,onMouseLeave:x?()=>m?.(T):void 0,rel:O,role:D,tabIndex:e?0:-1,target:B,children:[E,y==="photo"?(0,s.jsx)("div",{className:"embed__relativeUrl--image",children:(0,s.jsx)(Ln,{alt:b?L:"",className:"embed__img",src:E})}):null]}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:g,thumbnail:b,title:L,type:y})]})}return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:di,children:[this.renderProvider(),["link","photo"].includes(y)?(0,s.jsx)("a",{"data-external":N,href:j,id:x?T:void 0,onBlur:x?()=>l?.(T):void 0,onFocus:x?()=>u?.(T):void 0,onMouseEnter:x?()=>d?.(T):void 0,onMouseLeave:x?()=>m?.(T):void 0,rel:O,role:D,tabIndex:e?0:-1,target:B,children:(0,s.jsx)(Ln,{alt:b?L:"",className:"embed__img",src:Fg(b)})}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:g,thumbnail:b,title:L,type:y}),this.renderMetaData()]})}else if(y==="link"){const E=f?g:Un(g),x=f||r&&Mn(E),S=`${o}-link-readmore`,T=x?"":void 0,N=x?void 0:E,j=x?void 0:"noopener noreferrer nofollow",O=x?"button":void 0,D=x?void 0:"_blank";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.embedLinkGroup,className:"embed embed--link brand--linkColor",role:di,children:[(0,s.jsx)(St,{className:"embed__title",value:L}),(0,s.jsx)(St,{className:"embed__description",value:v}),(0,s.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":T,href:N,id:x?S:void 0,onBlur:x?()=>l?.(S):void 0,onFocus:x?()=>u?.(S):void 0,onMouseEnter:x?()=>d?.(S):void 0,onMouseLeave:x?()=>m?.(S):void 0,rel:j,role:O,target:D,children:i?.embedReadMore})]})}else return(0,s.jsxs)("div",{className:"embed embed--media",children:[p?(0,s.jsx)(St,{"aria-hidden":!e,className:"embed__title",value:L}):null,this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:g,thumbnail:b,title:L,type:y})]})}renderEmbedIframe=e=>{const{allowTabNavigation:n,labels:o,src:r,thumbnail:a,title:i,type:l}=e,{useRelativePath:u}=this.props.data??{};if(l==="photo")return(0,s.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,s.jsx)(Si,{allowTabNavigation:n,labels:o,src:Fg(a)})});{const d=cn.isIe11||cn.isEdge,m=W()("embed__media-wrap",{"embed__media-wrap--ms_browser":d});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:u?"yes":"no",src:u?r:WM(r),title:i})]})}}}const _M=md()({externalLinksDisabled:os()(["course","externalLinksDisabled"])}),QM=t=>{const{handleMouseEnter:e,handleMouseLeave:n,handleFocus:o,handleBlur:r}=pd(),[a,i]=ha.useState([]),l=ha.useId();return ha.useEffect(()=>{if(!t.externalLinksDisabled||!t.data){i([]);return}const u=[],{providerUrl:d,src:m,useRelativePath:p}=t.data,f=Ti(t.data);t.isLesson&&m&&Mn(Un(m))&&(u.push(`${l}-lesson-title`),["link","photo"].includes(f)&&u.push(`${l}-lesson-url`),f!=="iframe"&&(u.push(`${l}-metadata-title`),u.push(`${l}-metadata-readmore`)),d&&Mn(Un(d))&&u.push(`${l}-provider`)),!t.isLesson&&t.showMetaData&&d&&Mn(Un(d))&&u.push(`${l}-provider`),!t.isLesson&&t.showMetaData&&m&&Mn(Un(m))&&f!=="iframe"&&(u.push(`${l}-metadata-title`),u.push(`${l}-metadata-readmore`)),f==="link"&&(p||m&&Mn(Un(m)))&&u.push(`${l}-link-readmore`),i(u)},[t.externalLinksDisabled,t.data,t.showMetaData,t.isLesson,l]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(KM,{...t,embedId:l,onLinkBlur:r,onLinkFocus:o,onLinkMouseEnter:e,onLinkMouseLeave:n}),a.map(u=>(0,s.jsx)(fd,{anchorId:u},u))]})},zg=(0,ws.Ls)(_M)(QM);var ZM=c(69579),Vg=c(89819);const YM=Vg.default.getComponent("SeekBar");class XM extends YM{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)}}Vg.default.registerComponent("SeekBar",XM);var JM=c(16500),qM=c(22973),eO=c(65664),tO=c(76700),sO=c(7211),nO=c(80647),oO=c(25653),rO=c(18058),aO=c(70485),iO=c(51327),cO=c(57269),lO=c(85961),dO=c(19022),uO=c(60158),hO=c(99301),mO=c(34441);const pO={ar:JM,cs:qM,de:eO,en:tO,es:sO,fr:nO,it:oO,ja:rO,nl:aO,pl:iO,sk:cO,tr:lO,"pt-BR":dO,"pt-PT":uO,"zh-CN":hO,"zh-TW":mO},fO=-5,_h="seek-tooltip--hidden",vO=()=>{const t=document.createElement("div");return t.classList.add("seek-tooltip"),t.classList.add(_h),t},lu=t=>Math.round(t.currentTime()/t.duration()*100)||0;class gO extends h.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;qf(this.container.getElementsByTagName("button")).forEach(o=>{rv(o,ui(e))}),hh({element:this.container,selector:".vjs-progress-holder",tabIndex:ui(e)}),hh({element:this.container,selector:".vjs-volume-bar",tabIndex:ui(e)}),hh({element:this.container,selector:".vjs-volume-menu-button",tabIndex:ui(e)})}componentDidUpdate(e){this.updateContentFocusability(),!e.shouldPause&&this.props.shouldPause&&st&&(this.video.player.pause(),st.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:i,onLoad:l,percentComplete:u,progressChanged:d,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",(v,C)=>this.showRestrictSeekTooltip(C)),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"),u&&u<100&&p!=="customVideo"&&(e.play(),e.currentTime(r),e.pause()),e.on("timeupdate",this.videoUpdate=()=>{(0,Ge.ih)();const f=e.currentTime(),v=e.duration(),C=e.paused(),g=Math.floor(f),b=v*n/100||0;C&&!this.wasPaused&&f>this.maxTime&&(!o||!this.seeking)&&this.setMaxTime(f),o&&this.updateSeekTooltip();const L=e.ended()&&!this.seeking,y=!C&&!this.seeking;if(!o||L||y){f>this.maxTime&&(!o||!this.seeking)&&this.setMaxTime(f);let x=f/v*100;L&&(x=100),d&&d({currentTime:f,percentComplete:x}),g%15===0&&this.state.playheadPositionSaveThrottle!==g&&m&&(m(lu(e)),this.setState({playheadPositionSaveThrottle:g}))}else o&&!this.restrictingSeek&&f>this.maxTime&&b<this.maxTime&&(this.restrictingSeek=!0,C||e.pause(),e.currentTime(this.maxTime));this.wasPaused=C}),this.setState({isReady:!0}),l()}),e.on("play",this.videoPlay=()=>{this.seeking=!1,this.showRestrictSeekTooltip(!1)}),e.on("playing",this.videoPlaying=()=>{st.isPlaying&&st.playerId!==a&&(st.isPlaying=!1),st.playerId=a,st.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=()=>{st.playerId===a&&(st.isPlaying=!1),m&&m(lu(e))}),e.on("seeking",this.videoSeeking=()=>{this.seeking=!0}),e.on("seeked",this.videoSeeked=()=>{this.restrictingSeek=!1,this.seekTimeout&&clearTimeout(this.seekTimeout),m&&m(lu(e)),this.seekTimeout=setTimeout(()=>{this.seeking=!1},1e3)}),e.on("fullscreenchange",i),e.on("keyup",nv),e.on("contextmenu",f=>{f.preventDefault()}),e.on("ratechange",this.playbackRatesChanged=()=>{e.controlBar.playbackRateMenuButton.childNameIndex_.PlaybackRateMenuButton.controlTextEl_.innerText=`Playback Rate ${e.playbackRate()}x`}),st.addChangeListener(this.onMediaStoreChange)}componentWillUnmount(){const{onFullScreenChange:e,recordMediaPlayheadPosition:n}=this.props,{player:o}=this.video;n&&n(lu(o)),st.isPlaying=!1,st.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},settings:o}=this.props,{isReady:r,showRestrictSeekTooltip:a,playbackStarted:i}=this.state,l=W()("video-a11y video-wrapper",{"video-wrapper--visible":r,"video-wrapper--restrict-seek":a,"video-playback-started":i}),u=o?.cornerRadius??null,d={};return Object.assign(d,{...u!=null&&{"--corner-radius":`${Number(u)}px`}}),(0,s.jsx)("div",{"aria-hidden":!e,"aria-label":n,className:"figure-container",onKeyDown:this.onKeyDown.bind(this),ref:m=>{this.container=m},role:"region",children:(0,s.jsx)("div",{className:l,style:d,children:this.renderPlayer()})})}renderCaptionTrack(e){const{code:n,id:o,key:r,name:a,url:i}=e,l=i||(0,Ge.o1)(r),u=a||this.props.getLanguageDisplayName(n);return(0,s.jsx)("track",{kind:"captions",label:u,src:l,srcLang:n},o)}renderPlayer(){const{autoplay:e,canAdjustPlaybackSpeed:n,captionUID:o,captions:r,id:a,subtitle:i,type:l}=this.props,u=l==="customVideo",m=u?(x=>new URL(x).pathname.slice(1))(this.props.src):this.props.src,p=u?this.props.poster:(0,Ge.o1)(this.props.poster),f=u?this.props.src:(0,Ge.o1)(this.props.src),v=u?"application/x-mpegURL":void 0,C=n?[.25,.5,.75,1,1.25,1.5,1.75,2]:void 0,g=cn.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:pO,playbackRates:C,preload:"none",textTrackSettings:!1};document.pictureInPictureEnabled||delete b.controlBar.children.pictureInPictureToggle;const L={options:b,poster:p,ref:x=>{this.video=x},...g},y=(0,s.jsx)("track",{kind:"captions",label:"English",src:u?i:(0,Ge.o1)(i),srcLang:"en"}),E=`${f}?v=1`;return(0,h.createElement)(ZM.A,{...L,key:`${a}-${m}-${o}`},(0,s.jsx)("source",{src:E,type:v}),!r&&i&&y,r&&r.map(this.renderCaptionTrack))}onKeyDown(e){if(xO(e))return;const n=5,o=ln(this.togglePlay.bind(this)),r=this.toggleFullScreen.bind(this),a=ln(()=>this.keySeek(n)),i=ln(()=>this.keySeek(-n));dn()([[Ld,o],[ea,r],[Xp,a],[Jp,i]])(e)}togglePlay(){const{player:e}=this.video;e.userActive(!0),e.paused()?e.play():e.pause()}toggleFullScreen(){if(cn.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 l=r+e;o&&(l>this.maxTime?(l=this.maxTime,this.showRestrictSeekTooltip(!0)):this.showRestrictSeekTooltip(!1));const u=e<0?Math.max(l,0):Math.min(l,a);u!==r&&n.currentTime(u)}configureSeekDiv(){const{player:e}=this.video,n=e.controlBar,o=n.el();this.progressBarElement=n.progressControl.seekBar.playProgressBar.el(),this.seekDiv=vO(),o.appendChild(this.seekDiv),(0,J.createRoot)(this.seekDiv).render((0,s.jsx)(h8,{}))}showRestrictSeekTooltip(e){const{canRestrictSeek:n}=this.props;!n||!this.seekDiv||e!==this.state.showRestrictSeekTooltip&&(e?this.seekDiv.classList.remove(_h):this.seekDiv.classList.add(_h),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,i=r/2,l=a+n.width-i;this.seekDiv.style.left=`${l}px`,this.seekDiv.style.top=`${fO}px`}getMaxTime(){return this.maxTime}onMediaStoreChange(){if(!this.video)return;const{id:e}=this.props,{player:n}=this.video;st.playerId===e?st.isPlaying?n.play():n.pause():st.isPlaying&&n.pause()}}function CO(t){function e(n){const o=(0,Ce.DX)(),r=yh();return(0,s.jsx)(t,{...n,getLanguageDisplayName:r,locale:o?.locale})}return e.displayName=`withLocale(${t.displayName??t.name})`,e}const Ug=CO(gO),xO=t=>{const e=t.target.className,n=qp(t)&&e.includes("vjs-volume-bar");return ai(t)&&(e.includes("vjs-control")||e.includes("vjs-big-play-button"))||n};var $g=c(15648);function Xt(t){const e=$g.forwardRef((n,o)=>{const r=(0,at.gY)();return(0,s.jsx)(t,{...n,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookup(${t.displayName||t.name})`,e}function bO(t){const e=$g.forwardRef((n,o)=>{const r=(0,at.gY)(),a=(0,at.NB)();return(0,s.jsx)(t,{...n,getL10nRecursive:a,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookupRecursive(${t.displayName||t.name})`,e}var yO=c(89323),Qh=c.n(yO),LO=c(68798),EO=c.n(LO);const SO=t=>({...t,courseId:t.courseId||os()(["course","id"],t)}),TO=t=>({...t,lessonId:t.lessonId||os()(["lesson","id"],t)}),IO=({id:t,courseId:e,lessonId:n,refs:o})=>t||(o&&n?`${n}-${o}`:n||e),Zh=$e()(IO,TO,SO),Ise=fs()(O1()(Ct()("id"),Qh()("id",Zh)),vr()(EO()(Ct(),[Ct()("id"),Ct()("uploads")]),Us()(["id"])),Qh()("isUploading",It()("status","uploading")));function Nse(t){const e=t.match(/^(.*\/)?([^/]+)$/);if(!e)return encodeURIComponent(t);const n=e[1]??"",o=e[2],r=encodeURIComponent(o);return`${n}${r}`}function NO(t){return t.replace(/%2F/g,"/")}var jO=c(15648);const Yh=t=>!!(t&&("key"in t&&t.key||"src"in t&&t.src)),du=t=>Yh(t)&&!t.isProcessing&&!t.error,kO=(t,e)=>e?.mediaType==="audio"?!!t&&(Yh(t)||kg(e)||jg(e)&&!Yh(t)):du(t),AO=t=>Jr()(rs()(!!t),Ih()(`-${t}`));class RO extends jO.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,blockId:n,openTranscript:o,refs:r}=this.props,a=e?.items?.length===1?e.items[0]:void 0,i=this.props.item??a;let l=n;try{e!=null&&typeof e=="object"&&!Array.isArray(e)?"blockId"in e?l=e.blockId:"id"in e&&(l=e.id):e?.id&&(l=e.id)}catch{l=n}let u="";try{i!=null&&typeof i=="object"&&!Array.isArray(i)&&"id"in i&&(u=String(i.id))}catch{u=""}const d=r??`items:${l||""}/items:${u}`;if((e||n)&&i&&o)return o({blockId:e?.id??n,item:i,refs:d})}renderAudio(e,n){const{activeIndex:o,allowTabNavigation:r,block:a,blockId:i,getL10nValue:l,index:u,isOverlayAudio:d,item:m,itemIndex:p,labels:f,lessonNumber:v,pauseOnLoad:C,shouldPause:g,side:b}=this.props,{audio:L}=l(e),y=a&&typeof a=="object"&&"blockId"in a?a.blockId:a?.id||i||"",E=m&&typeof m=="object"&&"id"in m?m.id:"",x=this.props.refs??`items:${y}/items:${E}`,S=`audio-${v}-${u}`;return(0,s.jsx)(Mg,{activeIndex:o,allowTabNavigation:r,id:S,isOverlayAudio:d,item:m,itemIndex:p,labels:f,mediaSrc:L.key,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript,refs:x,shouldPause:L.pause||C||g,side:b,transcriptMedia:e,uploadId:n,volumeSliderPosition:this.props.volumeSliderPosition},S)}renderImage(e){const{allowTabNavigation:n,cornerRadius:o,defaultAlign:r,imageMaxHeight:a,index:i,labels:l,onLoad:u,opts:d}=this.props,m=e?.align??r,p=e?.dimensions,f=`image-${i}`,{disableZoom:v}=d;return(0,s.jsx)(Si,{align:m,allowTabNavigation:n,alt:e.alt,cornerRadius:o,disableZoom:v,height:p?.height||p?.originalHeight,labels:l,maxHeight:a,onLoad:u,shouldFillWidth:e.fillWidth,src:(0,Gt.ME)(e),width:p?.width||p?.originalWidth},f)}renderVideo(e){const{allowTabNavigation:n,blockId:o,lessonNumber:r,index:a,labels:i,onFullScreenChange:l,enableVideoPlaybackSpeed:u,pauseOnLoad:d,shouldPause:m}=this.props,p=AO(o)(`video-${r}-${a}`),f=e.skipProcess?NO(e.poster):e.poster;return(0,s.jsx)(Ug,{allowTabNavigation:n,canAdjustPlaybackSpeed:u,captions:e.captions,captionUID:e.captionUID,id:p,labels:i,onFullScreenChange:l,poster:f,shouldPause:e.pause||d||m,src:e.key},p)}renderEmbed(e){const{allowTabNavigation:n,embedClass:o,labels:r,opts:a,shouldPause:i}=this.props,{fullEmbed:l,showMetaData:u=!0}=a,d=`embed-${this.props.index}`;return(0,s.jsx)("div",{className:o,children:(0,s.jsx)(zg,{allowTabNavigation:n,data:e,id:d,isLesson:l,labels:r,shouldPause:e.pause||i,showMetaData:u},d)})}render(){const{blockId:e,hasPadding:n,item:o,lessonId:r,renderMediaType:a}=this.props,i=o&&typeof o=="object"&&"id"in o?o.id:"",l=this.props.refs??`items:${e??""}/items:${i}`,u=this.props.media,d=W()({"media-group":n}),{audio:m,embed:p,image:f,video:v}=this.props.getL10nValue(u)??{},C=Zh({lessonId:r,refs:l}),g=this.props.getUpload?this.props.getUpload(C):null;return(0,s.jsxs)("div",{className:d,"data-l10n-id":(0,Et.pP)(u),children:[(!a||a==="image")&&du(f)&&this.renderImage(f),(!a||a==="audio")&&kO(m,g)&&this.renderAudio(u,C),(!a||a==="video")&&du(v)&&this.renderVideo(v),(!a||a==="embed")&&du(p)&&this.renderEmbed(p)]})}}const sn=(0,ws.Ls)()(uM(Od(Ev(Xt(RO)))));function Mo(t,e,n,o){const a=e==="bottom"||!n&&e!=="top"?"bottom":"top",i={renderOrder:["text"],isOverlayAudio:!1};if(!t)return i;const l=!!t.audio,u=!!t.image,d=!!t.video,m=!!t.embed,p=u||d,f=()=>{const g=u?"image":"video",b={top:l?["audio","text",g]:["text",g],bottom:l?["text","audio",g]:["text",g],legacyTop:l?["audio",g,"text"]:[g,"text"],legacyBottom:l?[g,"text","audio"]:[g,"text"]};return n&&o==="timeline"&&!e?b.top:n&&o!=="timeline"?a==="bottom"?b.legacyBottom:b.legacyTop:a==="bottom"?b.bottom:b.top},v=()=>{const g={top:l?["audio","text","embed"]:["text","embed"],bottom:l?["text","embed","audio"]:["text","embed"],legacyTop:l?["audio","embed","text"]:["embed","text"],legacyBottom:l?["embed","text","audio"]:["embed","text"]};return n&&o==="timeline"&&!e?g.legacyTop:n&&o!=="timeline"?a==="bottom"?g.legacyBottom:g.legacyTop:a==="bottom"?g.bottom:g.top},C=()=>a==="bottom"?["text","audio"]:["audio","text"];return l&&!p&&!m?{...i,renderOrder:C()}:p&&!l&&!m?{...i,renderOrder:f()}:m&&!l&&!p?{...i,renderOrder:v()}:l&&p&&!m?o==="labeled-graphic"||a==="top"||o==="process"?{...i,renderOrder:f(),audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video}}:{...i,renderOrder:t.video?["text","video","audio"]:["text","overlay"],audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video},isOverlayAudio:!t.video}:l&&m&&!p?{...i,renderOrder:v(),audioOnlyMedia:{audio:t.audio},embedOnlyMedia:{embed:t.embed}}:i}var PO=c(15648);const Oo=ne("block-text"),wO=class extends PO.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)(Nw,{item:t,labels:e,children:(0,s.jsx)(ms,{value:a||""})}):(0,s.jsx)(ms,{className:Oo("col"),value:a||""})}render(){const{blockId:t,columns:e,defaultBackgroundColor:n,heading:o,isLearner:r,items:a,labels:i,lessonId:l,media:u,settings:d,type:m,variant:p,renderText:f=this.renderTextDelegate,renderHeading:v=this.renderHeadingDelegate,getL10nValue:C}=this.props,g=C(u),b=Object.keys(g?.audio??{}).length>0,{audioPosition:L,entranceAnimation:y,cellPadding:E=1.5,tableWidth:x=76,textPadding:S=.8,textWidth:T=76}=d,N=p==="table",j=e===1,O=e>1,D=N?x:T,B=!N&&j,R=N,H=cw(E),w=lw(S),M=Fh(D),z=Oo({[m]:!B&&!R||O,[`${m}-custom-width`]:!O,[`${m}-custom-width-table-${M}`]:R,[`${m}-custom-width-text-${M}`]:B,[`heading-custom-text-padding-${w}`]:B,[`${m}-custom-cell-padding-${H}`]:R,"no-animation":!y}),Z=e>2?Oo("container-wide"):Oo("container",{authoring:!r}),Y=this.getHeadingComponent(),X=C(Array.isArray(u)?{}:u),pe=Mo(X,L);return(0,s.jsx)(Pt,{className:z.toString(),defaultBackgroundColor:n,children:(0,s.jsxs)("div",{className:Z,"data-block-id":t,"data-block-text":"",children:[(0,s.jsx)("div",{className:Oo("row"),children:o!==""?a.slice(0,1).map((Le,ke)=>(0,s.jsx)("div",{className:Oo("col"),children:(0,s.jsx)("div",{className:Oo("heading"),children:(0,s.jsx)(Y,{children:v(Le)})})},"id"in Le?Le.id:ke)):null}),pe.renderOrder.map((Le,ke)=>{if(Le==="text")return(0,s.jsx)("div",{className:Oo("row"),children:m!=="heading"?a.slice(0,e).map((Be,We)=>(0,s.jsx)(h.Fragment,{children:f(Be)},"id"in Be?Be.id:We)):null},`text-${ke}`);if(Le==="audio"&&b){const Be=pe.renderOrder.indexOf("audio")<pe.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:Oo("row",{media:!0,top:Be,bottom:!Be,hasHeading:p==="heading paragraph"||p==="subheading paragraph"}),children:(0,s.jsx)("div",{className:Oo("col",{media:!0}),children:(0,s.jsx)(sn,{blockId:t,hasPadding:!1,index:t,item:{id:t,media:u},labels:i,lessonId:l,media:u,refs:`items:${t}`})})},`audio-${ke}`)}})]})})}},Lr=Xt(wO),MO=Lr,OO=t=>(0,s.jsx)(Lr,{columns:2,type:"twocol",...t}),DO=t=>(0,s.jsx)(Lr,{columns:3,type:"threecol",...t}),BO=t=>(0,s.jsx)(Lr,{columns:4,type:"fourcol",...t}),HO=t=>(0,s.jsx)(Lr,{heading:"heading",type:"heading",...t}),FO=t=>(0,s.jsx)(Lr,{heading:"subheading",type:"heading",...t}),zO=t=>(0,s.jsx)(Lr,{heading:"heading",...t}),VO=t=>(0,s.jsx)(Lr,{heading:"subheading",...t});var Zc=c(15648);const UO="#page-wrap",$O={fadeInGrow:"scale(0.95)",fadeInLeft:"translateX(-50px)",fadeInLeftSmall:"translateX(-25px)",fadeInRight:"translateX(50px)",fadeInUp:"translateY(25px)"},WO=t=>{const{afterAnimatedIn:e,animateIn:n="fadeIn",children:o,className:r,duration:a=1,initiallyVisible:i,siblingDelay:l=0}=t,u=Zc.useRef(null),[d,m]=Zc.useState(!1);Zc.useEffect(()=>{const f=u.current;if(i&&f){m(!0);return}if(!f||typeof window>"u")return;const v=document.querySelector(UO),C=new IntersectionObserver(([g])=>{!d&&g!=null&&(g.isIntersecting||g.intersectionRatio>0)&&(m(!0),C.unobserve(g.target))},{root:v,threshold:0});return C.observe(f),()=>{C.disconnect()}},[i,d]),Zc.useEffect(()=>{const f=u.current;if(!f||!e)return;const v=C=>{C.target instanceof Element&&C.target.parentElement===f&&C.propertyName==="opacity"&&e()};return f.addEventListener("transitionend",v),()=>{f.removeEventListener("transitionend",v)}},[e]),Zc.useEffect(()=>{const f=u.current;if(!f||!Array.isArray(o))return;Array.from(f.children).forEach((C,g)=>{C instanceof HTMLElement&&C.style.setProperty("--idx",String(g))})},[o]);const p={"--scroll-animation-step":`${l}s`,"--scroll-animation-duration":n==="none"?"0s":`${a}s`,"--scroll-animation-from":$O[n]??"translateY(0)"};return(0,s.jsx)("div",{className:W()("scroll-animation",r,{"scroll-animation--in":d}),ref:u,style:p,children:o})},GO=matchMedia("(prefers-reduced-motion: reduce)");function mn(){return GO.matches}const Dt=t=>{const{afterAnimatedIn:e,animateBlockEntrance:n,animateIn:o,children:r,className:a,duration:i,initiallyVisible:l,isLearner:u,siblingDelay:d}=t;return u&&n&&!mn()?(0,s.jsx)(WO,{afterAnimatedIn:e,animateIn:o,className:a,duration:i,initiallyVisible:l,siblingDelay:d,children:r}):Array.isArray(r)?(0,s.jsx)("div",{children:r}):r};var Wg=c(15648);const KO=Wg.lazy(async()=>{const[t,e]=await Promise.all([c.e("ace").then(c.t.bind(c,55209,23)),c.e("ace").then(c.bind(c,92836)),c.e("ace").then(c.t.bind(c,55648,23)),c.e("ace").then(c.t.bind(c,42029,23)),c.e("ace").then(c.t.bind(c,17953,23)),c.e("ace").then(c.t.bind(c,88427,23)),c.e("ace").then(c.t.bind(c,17953,23)),c.e("ace").then(c.t.bind(c,44936,23)),c.e("ace").then(c.t.bind(c,3555,23)),c.e("ace").then(c.t.bind(c,57200,23)),c.e("ace").then(c.t.bind(c,79453,23)),c.e("ace").then(c.t.bind(c,2910,23)),c.e("ace").then(c.t.bind(c,1630,23)),c.e("ace").then(c.t.bind(c,90105,23)),c.e("ace").then(c.t.bind(c,46635,23)),c.e("ace").then(c.t.bind(c,61746,23)),c.e("ace").then(c.t.bind(c,54988,23)),c.e("ace").then(c.t.bind(c,25101,23)),c.e("ace").then(c.t.bind(c,3836,23)),c.e("ace").then(c.t.bind(c,63635,23)),c.e("ace").then(c.t.bind(c,97780,23)),c.e("ace").then(c.t.bind(c,32927,23))]);return{default:e.default}}),_O=({classNames:t,code:e,blockId:n})=>{const[o,r]=(0,h.useState)(!1),{announcePolite:a}=pt(),i=async()=>{const l=(0,ia.htmlDecode)(e);await navigator.clipboard.writeText(l),r(!0),setTimeout(()=>r(!1),1e3),a("Copied!")};return(0,s.jsx)("div",{className:t,children:(0,s.jsx)(Ot.ArcTooltip,{id:`code-snippet-copy-tooltip-${n}`,text:o?"Copied!":"Copy",children:(0,s.jsx)(Ot.ArcButton,{icon:(0,s.jsx)(it,{name:o?"check":"copy"}),layout:"icon",onClick:i,shape:"square",size:"md",variant:"tertiary"})})})};class QO extends Wg.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,blockId:n,defaultBackgroundColor:o="",getL10nValue:r,initiallyVisible:a,isLearner:i,items:l,labels:u,settings:d,renderCaption:m=this.renderCaptionDelegate}=this.props,{entranceAnimation:p,language:f,paddingBottom:v,paddingTop:C,snippetBackgroundColor:g,snippetColorContrast:b,theme:L,useAdvancedEditor:y,wrapWords:E}=d,x=W()("block-text block-text--code",{"block-text--padding-top":Number(C)===2,"block-text--padding-bottom":Number(v)===2,"block-text--no-animation":!p}),S={backgroundColor:g},T=g==="#fafafa"||hn()(g),N=b??k.Em.DARK;if(!T){const j=Os({backgroundColor:g,contrast:N});Object.assign(S,{"--color-snippet-contrast":j})}return(0,s.jsx)(Pt,{className:x,defaultBackgroundColor:o,children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"block-text__container",children:l.slice(0,1).map(j=>{const O=Hc({...j,getL10nValue:r});return(0,s.jsx)("div",{className:"block-text__row",children:(0,s.jsx)("div",{"aria-label":u?.a11yBlockCodeSnippet,className:"block-text__col",role:di,children:(0,s.jsxs)("figure",{"aria-labelledby":O.figcaptionId,className:"block-text__figure block-text__figure--with-copy",role:"figure",children:[(0,s.jsx)(Yk,{value:j.code,children:D=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_O,{blockId:n,classNames:"block-text__copy-button",code:D}),y?(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(KO,{editorProps:{$blockScrolling:!0},maxLines:25,mode:f,name:String(j.id),readOnly:!0,setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:L,value:(0,ia.htmlDecode)((0,so.aj)(D)),width:"100%",wrapEnabled:E})}):(0,s.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:(0,so.aj)(D)},dir:"ltr",style:S})]})}),j.caption&&(0,s.jsx)("figcaption",{id:O.figcaptionId,children:m(j)})]})})},j.id)})})})})}}const Gg=Xt(QO);function ZO({accentColor:t,backgroundType:e,blockBackgroundColor:n,noteColor:o,imageBackgroundDefault:r="#ffffff"}){return o!=null&&o!==""?o:YO({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:r})}function YO({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:o="#ffffff"}){if(e!==k.xj.IMAGE&&n==null)return"#000000b3";switch(e){case k.xj.IMAGE:return o;case k.xj.LIGHT:case k.xj.GRAY:return(0,mt.W8)(.9,t);case k.xj.DARK:return"#494949";case k.xj.BLACK:return"#333333";default:switch((0,mt.XC)(n)){case mt.lL.LIGHT:return(0,mt.W8)(.3,n);case mt.lL.MED:return(0,mt.W8)(-.2,n);case mt.lL.DARK:case mt.lL.NEAR_BLACK:return(0,mt.W8)(-.4,n);default:return t}}}function XO(t,e){const n=tn(),{cardMode:o,className:r="",children:a,disabled:i=!1,tag:l="div",overrideBackground:u=!1,style:d={},...m}=t,{cardMode:p,customBackgroundColorContrast:f}=n,C=(0,Ce.DX)()?.theme,g=Ro(),b=o??p??Fn.WHITE,L=bn()??"#ffffff",y=b===Fn.WHITE,E=g===k.xj.COLOR,x=g===k.xj.ACCENT,S=C?.accentContrast,T=g===k.xj.ACCENT||g===k.xj.COLOR,N=S===k.Em.AUTO&&x||f===k.Em.AUTO&&E,j=g===k.xj.COLOR?f:S,O=[r,"block-card"];if(y)O.push("bg--range-light","block-card--white");else if(i){O.push("block-card--disabled");const D=Os({backgroundColor:L,contrast:j});N&&(d["--color-text"]=D,d["--color-text-opposite"]=D===lt.S6.DARK?lt.S6.LIGHT:lt.S6.DARK)}else{O.push("block-card--transparent");const D=(0,mt.XC)(L),B=mt.t9[D](L);switch(g){case k.xj.LIGHT:case k.xj.GRAY:O.push("bg--range-light");break;case k.xj.IMAGE:O.push("bg--range-dark");break;case k.xj.DARK:case k.xj.BLACK:O.push("bg--range-dark"),d["--color-background-rgb"]=(0,hi.A)(B)?.slice(0,3);break;default:{const H=d["--color-background"]??(u?L:B),w=Os({backgroundColor:H,contrast:j});T&&w==lt.S6.LIGHT&&O.push("block-card--contrast-light");const M=(0,mt.XC)(H);O.push(`bg--range-${Xa()(M.toLowerCase())}`),d["--color-background"]=H,d["--color-background-rgb"]=(0,hi.A)(H)?.slice(0,3);break}}}return(0,s.jsx)(l,{...m,className:O.join(" "),ref:e,style:d,children:a})}const Gs=(0,h.forwardRef)(XO);var Kg=c(15648);const $n=ne("block-statement");class JO extends Kg.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,type:o,labels:r,lessonId:a,media:i,settings:l},{paragraph:u}){const m=o==="note"?oD:Kg.Fragment,p=n(Array.isArray(i)?{}:i),f=!!p?.audio,v=Mo(p,l.audioPosition);return(0,s.jsx)(m,{children:(0,s.jsx)("div",{className:$n("quote"),children:v.renderOrder.map((C,g)=>{if(C==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(ms,{value:u})},`text-${g}`);if(C==="audio"&&f){const b=v.renderOrder.indexOf("audio")<v.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:$n("audio-container",{top:b,bottom:!b}),children:(0,s.jsx)(sn,{blockId:e,hasPadding:!1,index:e,item:{media:i,id:e},labels:r,lessonId:a,media:i,refs:`items:${e}`})},`audio-${g}`)}})})})}render(){const{animateBlockEntrance:e,isLearner:n,items:o,renderText:r=this.renderTextDelegate,settings:a,type:i,initiallyVisible:l}=this.props,{entranceAnimation:u,divider:d=!0,dividerPadding:m=qP(i),dividerSize:p=JP(i),noteIcon:f=!0,noteSize:v="sm",statementWidth:C=ew(i)}=a,g=rw(C),b=aw(m),L=iw(p),y=v,E=i==="a"||i==="b"||i==="d",x=i==="note",S=$n({[i]:!0,[`${i}-custom-width-${g}`]:!0,[`${i}-divider-off`]:E&&!d,[`${i}-divider-padding-${b}`]:E&&d,[`${i}-divider-size-${L}`]:E&&d,[`note-size-${y}`]:x,[`note-size-${y}-no-icon`]:x&&!f,"no-animation":!u});return(0,s.jsx)(Pt,{className:S.toString(),children:(0,s.jsx)("div",{className:$n("wrap"),children:(0,s.jsx)("div",{className:$n("container"),children:(0,s.jsx)("div",{className:$n("row"),children:o.slice(0,1).map(T=>(0,s.jsx)(Dt,{animateBlockEntrance:e,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),initiallyVisible:l,isLearner:n,children:(0,s.jsxs)("div",{className:$n("col"),children:[(0,s.jsx)("div",{className:$n("divider-top-container"),children:(0,s.jsx)("div",{className:$n("divider-top")})}),r(this.props,T),(0,s.jsx)("div",{className:$n("divider-bottom")})]})},T.id))})})})})}}const Yc=Xt(JO),qO=Yc,eD=t=>(0,s.jsx)(Yc,{type:"b",...t}),tD=t=>(0,s.jsx)(Yc,{type:"c",...t}),sD=t=>(0,s.jsx)(Yc,{type:"d",...t}),nD=t=>(0,s.jsx)(Yc,{type:"note",...t}),oD=({children:t})=>{const e=tn(),{accentColor:n,cardMode:o,cornerRadius:r,courseColor:a,customBackgroundColorContrast:i,noteIcon:l=!0,noteIconColor:u}=e,d=e.noteColor,m=e.noteColorContrast,{theme:p}=(0,Ce.DX)(),f=bn(),v=Ro(),C=v===k.xj.COLOR,g=v===k.xj.ACCENT,b=p?.accentContrast,L=v===k.xj.DARK||v===k.xj.BLACK,y=d!=null&&d!=="",x=C||g||L||y?Fn.TRANSPARENT:o,S=y&&(m??k.Em.AUTO)===k.Em.AUTO||b===k.Em.AUTO&&g||i===k.Em.AUTO&&C,T=(0,h.useMemo)(()=>ZO({accentColor:n??a,backgroundType:v,blockBackgroundColor:f,noteColor:d,imageBackgroundDefault:""}),[n,v,f,a,d]),N=y?m??k.Em.AUTO:v===k.xj.COLOR?i:b,j=Os({backgroundColor:T,contrast:N}),O={"--color-background":T,...(S||y)&&{"--color-text":j},...r&&{"--corner-radius":`${Number(r)}px`},...u&&{"--color-theme-decorative":u},...y&&{"--color-theme":d}},D=$n("note-icon",{off:!l});return(0,s.jsxs)(Gs,{cardMode:x,className:$n("note-card"),style:O,children:[(0,s.jsx)("div",{className:D,children:(0,s.jsx)(it,{name:"circle-info"})}),t]})};var vs=c(15648);function _g({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 uu({children:t,iconNameLeft:e="chevron-left-light",iconNameRight:n="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:i="Carousel",labelSlideControls:l="Slide controls",labelSlideControlsGoToNext:u="Go to next slide",labelSlideControlsGoToPrevious:d="Go to previous slide",labelSlideControlsGoToSlide:m="Go to slide",labelSlideCounterPreposition:p="of",labelSlidePreposition:f="of",labelSlideRoleDesc:v="Slide",onChange:C,ref:g,renderSlideIndicator:b,shouldMouseEmulateTouch:L=!1,shouldUseCounter:y=!1,shouldUseGoToSlide:E=!0}){const x=vs.useId(),[S,T]=vs.useState(0),N=(0,Me.A)(S)??0,j=vs.useRef(null),O=vs.useRef(null),D=vs.useRef(!1),B=vs.useRef(!1),R=vs.useRef(void 0),H=vs.useRef(void 0),w=`carousel-${x}`,M=vs.Children.count(t),z=(0,Me.A)(M),Z=vs.useMemo(()=>Array.from({length:M}),[M]),Y=M>1;vs.useImperativeHandle(g,()=>({navigateToSlide:(De,Ae=!0)=>{T(De);const he=j.current?.children?.[De]?.firstElementChild;Ae&&he?.focus()}}),[]);const X=vs.useCallback(({activeIndex:De,dir:Ae})=>{const he=o?De-1>=0?De-1:M-1:Math.max(0,De-1),le=o?De+1<=M-1?De+1:0:Math.min(M-1,De+1);return Ae==="left"?r?le:he:r?he:le},[o,r,M]),pe=vs.useCallback(()=>{T(De=>X(r?{activeIndex:De,dir:"right"}:{activeIndex:De,dir:"left"}))},[X,r]),Le=vs.useCallback(()=>{T(De=>X(r?{activeIndex:De,dir:"left"}:{activeIndex:De,dir:"right"}))},[X,r]),ke=vs.useCallback(De=>{const Ae=j.current?.children?.[De],he=j.current;if(Ae&&he){const le=Ae.getBoundingClientRect(),He=he.getBoundingClientRect(),Pe=le.left+le.width/2,Ke=He.left+He.width/2,Fe=Pe-Ke;he.scrollBy({left:Fe,behavior:"smooth"})}},[]),Be=vs.useCallback(De=>{let Ae=!1,he=S;switch(De.key){case"ArrowLeft":Ae=!0,he=X({activeIndex:S,dir:"left"});break;case"ArrowRight":Ae=!0,he=X({activeIndex:S,dir:"right"});break;case"Home":Ae=!0,he=0;break;case"End":Ae=!0,he=M-1;break}Ae&&(De.stopPropagation(),De.preventDefault()),S!==he&&(j.current?.children?.[he]?.firstChild?.focus(),ke(he),T(he))},[S,X,ke,M]);vs.useEffect(()=>{N!==S&&C?.(S)},[S,C,N]),vs.useEffect(()=>{M<z&&S>M-1&&T(M-1)},[S,z,M]),vs.useEffect(()=>{const De=Fe=>{Fe.target.tagName==="IMG"&&Fe.preventDefault(),R.current=Fe.screenX},Ae=Fe=>{const ut=window.visualViewport?.scale??1,dt=window.getSelection().toString()!=="";if(!B.current&&ut<=1.01&&!dt&&R.current!=null){H.current=Fe.screenX;const xt=H.current-R.current;Math.abs(xt)>50&&(window.getSelection().empty(),D.current=!0,R.current=void 0,H.current=void 0,xt<0?T(zt=>X({activeIndex:zt,dir:"right"})):T(zt=>X({activeIndex:zt,dir:"left"})))}},he=Fe=>{D.current&&Fe.stopPropagation(),D.current=!1,B.current=!1,R.current=void 0,H.current=void 0},le=Fe=>{if(Fe.touches.length>1){B.current=!0;return}Fe.changedTouches.length===1&&Fe.changedTouches[0]&&(R.current=Fe.changedTouches[0].screenX)},He=Fe=>{const ut=window.visualViewport?.scale??1,dt=window.getSelection().toString()!=="";if(!B.current&&ut<=1.01&&!dt&&R.current!=null&&Fe.changedTouches[0]){H.current=Fe.changedTouches[0].screenX;const xt=H.current-R.current;Math.abs(xt)>50&&(D.current=!0,R.current=void 0,H.current=void 0,xt<0?T(zt=>X({activeIndex:zt,dir:"right"})):T(zt=>X({activeIndex:zt,dir:"left"})))}},Pe=()=>{D.current=!1,B.current=!1,R.current=void 0,H.current=void 0},Ke=O.current;return L&&(Ke?.addEventListener("mousedown",De,{capture:!0}),Ke?.addEventListener("mousemove",Ae,{capture:!0}),Ke?.addEventListener("click",he,{capture:!0})),Ke?.addEventListener("touchstart",le,{passive:!0}),Ke?.addEventListener("touchmove",He,{passive:!0}),Ke?.addEventListener("touchend",Pe,{passive:!0}),Ke?.addEventListener("touchcancel",Pe,{passive:!0}),()=>{L&&(Ke?.removeEventListener("mousedown",De),Ke?.removeEventListener("mousemove",Ae),Ke?.removeEventListener("mouseup",Pe)),Ke?.removeEventListener("touchstart",le),Ke?.removeEventListener("touchmove",He),Ke?.removeEventListener("touchend",Pe),Ke?.removeEventListener("touchcancel",Pe)}},[X,L,M]);const We=vs.useCallback(De=>()=>{ke(De),T(De)},[ke]);return(0,s.jsxs)("div",{"aria-label":a,"aria-roledescription":i,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":S},children:[Y&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{"aria-label":l,className:"carousel-controls",role:"group",children:[E&&(0,s.jsx)("ul",{className:"carousel-controls-items",ref:j,role:"list",children:Z.map((De,Ae)=>{const he=S===Ae,le=We(Ae);return b?b({index:Ae,isActive:he,onClick:le,onKeyDown:Be}):(0,s.jsx)(_g,{ariaLabel:m+" "+(Ae+1),isActive:he,onClick:le,onKeyDown:Be,children:(0,s.jsx)(it,{className:"carousel-controls-item-btn-icon",name:he?"circle":"circle-solid"})},Ae)})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:S===0,"aria-label":d,className:"carousel-controls-prev",onClick:!o&&S===0?void 0:pe,type:"button",children:(0,s.jsx)(it,{className:"carousel-controls-prev-icon",name:r?n:e})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:S===M-1,"aria-label":u,className:"carousel-controls-next",onClick:!o&&S===M-1?void 0:Le,type:"button",children:(0,s.jsx)(it,{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:`${S+1} ${p} ${M}`}),(0,s.jsx)("div",{className:"carousel-controls-counter-line",children:(0,s.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((S+1)/M).toFixed(2))*100}%`}})})]})]})}),(0,s.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:O,children:vs.Children.map(t,(De,Ae)=>{const he=`${w}-${Ae}-counter`;return(0,s.jsxs)("div",{"aria-labelledby":he,"aria-roledescription":v,className:"carousel-slide",hidden:S!==Ae,inert:S!==Ae,role:"group",children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:he,children:`${Ae+1} ${f} ${M}`}),De]})})})]})}var Xc=c(15648);const rD="div",Qg=Xc.createContext(void 0);function aD({children:t,element:e,...n},o){const[r,a]=Xc.useState(null);return(0,s.jsx)(Qg.Provider,{value:r,children:Xc.createElement(e??rD,{...n,ref:o},t,(0,s.jsx)("div",{ref:a}))})}const hu=Xc.forwardRef(aD);function kse(){return Xc.useContext(Qg)}function Xh(t){const e=n=>{const o=(0,Ce.Wz)();return(0,s.jsx)(t,{...n,isRTL:o})};return e.displayName=`withRTL(${t.displayName||t.name})`,e}const mu=({blockId:t,carouselRef:e,children:n,items:o})=>{const r=(0,h.useRef)(null),a=e??r;return(0,h.useEffect)(()=>{const i=l=>{const{path:u}=l.detail,{blockId:d,cardId:m}=Qa(u,["block","card"]);if(d===t){const p=o.findIndex(f=>f.id===m);p>=0&&a.current?.navigateToSlide?.(p,!1)}};return window.addEventListener(_t,i),()=>{window.removeEventListener(_t,i)}},[o,t,a]),(0,s.jsx)(s.Fragment,{children:n({carouselRef:e})})},Ft=ne("block-quote"),Jc=({avatar:t,alt:e,l10nId:n,showAvatar:o})=>o?(0,s.jsx)(Ln,{alt:(0,Ys.Ll)(e),className:Ft("avatar"),"data-l10n-id":n,src:t}):null,iD=({alt:t,animateBlockEntrance:e,avatar:n,children:o,l10nId:r,initiallyVisible:a,isAuthorBlank:i=!1,isLearner:l,showAvatar:u,type:d})=>{const m=Ft("col",{"no-avatar":!n}),p=n?(0,s.jsx)("div",{className:Ft("image"),children:(0,s.jsx)("div",{className:Ft("avatar-wrap"),children:d==="c"?(0,s.jsx)(Dt,{animateBlockEntrance:e,animateIn:"fadeInLeftSmall",initiallyVisible:a,isLearner:l,children:(0,s.jsx)(Jc,{alt:t,avatar:n,l10nId:r,showAvatar:u})}):(0,s.jsx)(Jc,{alt:t,avatar:n,l10nId:r,showAvatar:u})})}):null;return(0,s.jsx)("div",{className:Ft("container"),children:(0,s.jsx)("div",{className:Ft("row"),children:(0,s.jsxs)("div",{className:m,children:[(0,s.jsx)("div",{className:Ft("divider-top")}),(0,s.jsxs)("div",{className:Ft("figure",{"no-author":i,"no-avatar":!i&&!u}),children:[p,o]}),(0,s.jsx)("div",{className:Ft("divider-bottom")})]})})})},cD=({avatar:t,children:e,alt:n,l10nId:o,showAvatar:r})=>(0,s.jsx)("div",{className:Ft("figure"),children:(0,s.jsx)("div",{className:Ft("container"),children:(0,s.jsxs)("div",{className:Ft("row"),children:[(0,s.jsx)("div",{className:Ft("col"),children:t&&r?(0,s.jsx)(Jc,{alt:n,avatar:t,l10nId:o,showAvatar:r}):null}),(0,s.jsx)("div",{className:Ft("col"),children:e})]})})}),lD=({background:t,avatar:e,children:n,alt:o,l10nId:r,showAvatar:a})=>(0,s.jsx)("div",{className:Ft("background"),style:{backgroundImage:t??""},children:(0,s.jsx)("div",{className:Ft("container"),children:(0,s.jsx)("div",{className:Ft("row"),children:(0,s.jsx)("div",{className:Ft("col"),children:(0,s.jsxs)("div",{className:Ft("figure"),children:[e&&a?(0,s.jsx)(Jc,{alt:o,avatar:e,l10nId:r,showAvatar:a}):null,n]})})})})});class dD extends h.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??tw(n),r=(0,Gt.ME)(e),a=sw(n);return(0,rh.A)({alpha:o,color:a,url:r})?.backgroundImage}renderText(e,{paragraph:n}){const o=n||"",r=Ft("text",{blank:o===""}).toString();return(0,s.jsx)(ms,{className:r,value:o})}renderCaption(e,{name:n}){const o=Ft("caption",{blank:n===""}).toString();return(0,s.jsx)(ms,{className:o,value:n})}render(){const{animateBlockEntrance:e,getL10nValue:n,initiallyVisible:o,isLearner:r,items:a,settings:i,type:l,renderText:u=this.renderTextDelegate,renderCaption:d=this.renderCaptionDelegate}=this.props,m=92,{avatarSize:p=lg(l),divider:f=!0,dividerSize:v=m,entranceAnimation:C,quoteAlignment:g="left",quoteIcon:b=!0,quotesInline:L,quotePadding:y=2,quoteWidth:E=cg(l)}=i,[x]=a,{avatar:S,background:T}=x,N=n(S?.media)?.image,j=(0,Gt.xm)(N),O=N?.alt,D=(0,Et.pP)(S.media),B=n(T?.media)?.image,R=B?.overlayColor,H=this.getBackgroundImageUrl(B,R),w=i?.avatar??j!=="",M=j&&j!=="",z=l==="background",Z=z&&R==="light",Y=ug(E),X=hg(y),pe=dg(l,p),Le=ow(v),ke=l==="a",Be=l==="c"||z,We=l!=="b"&&!z,De=x?.name==="",Ae=x?.paragraph==="",he=Ft(null,{[l]:!0,[`${l}-custom-width-${Y}`]:!0,[`${l}-divider-off`]:ke&&!f,[`${l}-divider-size-${Le}`]:ke&&f,[`${l}-quote-padding-${X}`]:!0,[`${l}-align-${g}`]:z,[`${l}-${Y}-no-avatar`]:!j||!w,[`${l}-avatar-size-${pe}`]:w&&M,[`${l}-quote-icon-off`]:Be&&!b,[`${l}-legacy-quote-mark`]:We&&!L,[`${l}-overlay-legacy`]:!R,[`${l}-overlay-light`]:Z,"no-animation":!C}).toString(),le=(0,s.jsx)("div",{className:Ft("wrap",{blank:De||Ae}),children:(0,s.jsx)(Dt,{animateBlockEntrance:e,animateIn:this.getQuoteEntranceAnimationType(),initiallyVisible:o,isLearner:r,siblingDelay:.15,children:(0,s.jsxs)("figure",{children:[(0,s.jsx)("blockquote",{children:u(this.props,x)}),(0,s.jsx)("figcaption",{children:d(this.props,x)})]})})});let He;switch(l){case"d":He=(0,s.jsx)(cD,{alt:O,avatar:j,initiallyVisible:o,l10nId:D,showAvatar:w,type:l,children:le});break;case"background":He=(0,s.jsx)(lD,{alt:O,avatar:j,background:H,initiallyVisible:o,l10nId:D,showAvatar:w,type:l,children:le});break;default:He=(0,s.jsx)(iD,{alt:O,animateBlockEntrance:e,avatar:j,initiallyVisible:o,isAuthorBlank:De,isLearner:r,l10nId:D,showAvatar:w,type:l,children:le})}return(0,s.jsx)(Pt,{className:he,children:He})}}const qc=Xt(dD),uD=(t=>(0,s.jsx)(qc,{...t})),hD=t=>(0,s.jsx)(qc,{type:"b",...t}),mD=t=>(0,s.jsx)(qc,{type:"c",...t}),pD=t=>(0,s.jsx)(qc,{type:"d",...t}),fD=t=>(0,s.jsx)(qc,{type:"background",...t});class vD extends h.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=Ft("text",{blank:n===""}).toString();return(0,s.jsx)(ms,{className:r,value:o})};renderCaption=(e,{name:n})=>{const o=Ft("caption",{blank:n===""}).toString();return(0,s.jsx)(ms,{className:o,value:n})};render(){const{blockId:e,animateBlockEntrance:n,editable:o,getL10nValue:r,initiallyVisible:a=!1,isRTL:i,isLearner:l,isLessonBlocksList:u=!1,items:d,labels:m,previewType:p,settings:f,renderText:v=this.renderText,renderCaption:C=this.renderCaption,type:g}=this.props,{avatar:b=!0,avatarSize:L=lg(g),entranceAnimation:y,quotesInline:E,quotePadding:x=2,quoteWidth:S=cg(g),showBorder:T=!0}=f,j=g!=="b"&&!(g==="background"),O=ug(S),D=hg(x),B=dg(g,L),R=p==="mobile-portrait"||p==="mobile-landscape",H=Ft({[g]:!0,[`${g}-custom-width-${O}`]:!0,[`${g}-quote-padding-${D}`]:!0,[`${g}-${O}-no-avatar`]:!b,[`${g}-avatar-size-${B}`]:b,[`${g}-legacy-quote-mark`]:!u&&j&&!E,"no-animation":!y,"hide-border":!T,editable:o}).toString(),w=d.map(M=>{const z=r(M?.avatar?.media)?.image,Z=z?.alt,Y=(0,Gt.xm)(z),X=b??Y!=="",pe="l10nId"in M.avatar.media?M.avatar.media.l10nId:void 0;return(0,s.jsx)("div",{className:Ft("slide"),children:(0,s.jsxs)("figure",{className:Ft("figure"),children:[Y&&b?(0,s.jsx)(Jc,{alt:Z,avatar:Y,l10nId:pe,showAvatar:X}):null,(0,s.jsx)("blockquote",{children:v(this.props,M)}),(0,s.jsx)("figcaption",{children:C(this.props,M)})]})},M.id)});return(0,s.jsx)("div",{className:Ft("slider-container"),children:(0,s.jsx)(Pt,{className:H,children:(0,s.jsx)(hu,{className:Ft("wrap"),children:(0,s.jsx)("div",{className:Ft("container"),children:(0,s.jsx)("div",{className:Ft("col"),children:(0,s.jsx)(Gs,{className:Ft("box"),children:(0,s.jsx)(Dt,{animateBlockEntrance:n,animateIn:"fadeInUp",initiallyVisible:a,isLearner:l,children:(0,s.jsx)(mu,{blockId:e,items:d,children:({carouselRef:M})=>(0,s.jsx)(uu,{isRTL:i,labelCarousel:m?.a11yBlockQuoteCarousel,labelCarouselRoleDesc:m?.a11yBlockQuoteCarouselRoleDescription,labelSlideControls:m?.a11yBlockQuoteCarouselSlideControls,labelSlideControlsGoToNext:m?.a11yBlockQuoteCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:m?.a11yBlockQuoteCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:m?.a11yBlockQuoteCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:m?.blocksPreposition,labelSlidePreposition:m?.a11yBlockQuoteCarouselSlidePreposition,labelSlideRoleDesc:m?.a11yBlockQuoteCarouselSlideRoleDescription,onChange:this.handleChangeCarousel,ref:M,shouldMouseEmulateTouch:R,children:w})})})})})})})})})}}const gD=Xh(Xt(vD));var Zg=c(15648);const Wn=ne("block-list"),CD=class extends Zg.Component{static get defaultProps(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered",getL10nValue:()=>{}}}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,getL10nValue:r,initiallyVisible:a,isLearner:i,items:l,labels:u,lessonId:d,media:m,onStep:p,settings:f,type:v}=this.props,{audioPosition:C,bulletPadding:g,entranceAnimation:b,listItemColor:L,listItemColorContrast:y,listWidth:E}=f,x=r(Array.isArray(m)?{}:m),S=Mo(x,C),T=nw(g),N=Fh(E),j=Wn({[v]:!0,[`${v}-custom-width-${N}`]:!0,[`${v}-bullet-padding-${T}`]:!0,"no-animation":!b}),O=v==="numbered"?"ol":"ul";return(0,s.jsx)(Pt,{className:j.toString(),defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:Wn("container"),children:(0,s.jsx)("div",{className:Wn("row"),children:(0,s.jsx)(hu,{className:Wn("col"),children:(0,s.jsx)("div",{className:"blocks-list__container",children:S.renderOrder.map((D,B)=>{if(D==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(O,{className:Wn("list"),role:"list",children:(0,s.jsx)(Dt,{animateBlockEntrance:t,animateIn:"fadeInRight",className:Wn("animated-item").toString(),initiallyVisible:a,isLearner:i,siblingDelay:.25,children:l.map((R,H)=>{const w={key:R.id,index:H,lessonId:d,blockId:e,type:v,editable:o,nextNumber:this.nextNumber.bind(this),onStep:p,listItemColor:L,listItemColorContrast:y,...R};return this.props.renderItem?this.props.renderItem(w):(0,h.createElement)(xD,{...w,key:w.key})})})})},`text-${B}`);if(D==="audio")return(0,s.jsx)("div",{className:W()("block-list__media",{"audio-on-top":S.renderOrder[0]==="audio","audio-on-bottom":S.renderOrder[0]!=="audio"}),children:(0,s.jsx)(sn,{blockId:e,hasPadding:!1,index:e,item:{media:m,id:e},labels:u,lessonId:d,media:m,refs:`items:${e}`})},`${D}-${B}`)})})})})})})}};class xD extends Zg.Component{renderTextDelegate;animateRef=null;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:i,className:l,renderText:u=this.renderTextDelegate,style:d,listItemColor:m,listItemColorContrast:p}=this.props,f={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:i,id:n,value:a};return(0,s.jsxs)("li",{className:W()("block-list__item",`block-list__item--${e}`,l),ref:v=>{this.animateRef=v},role:"listitem",style:d,children:[e==="numbered"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Wn("number"),style:m?{backgroundColor:m,color:Os({contrast:p||k.Em.AUTO,backgroundColor:m})}:void 0,children:r||o+1}),u(f)]}),e==="bulleted"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,s.jsx)(it,{className:Wn("bullet"),name:"circle-solid",style:m?{color:m}:void 0}),u(f)]}),e==="checkboxes"&&(0,s.jsxs)("label",{className:Wn("option"),children:[(0,s.jsx)("input",{className:Wn("checkbox-input"),onChange:this.handleChangeCheckbox,type:"checkbox"}),(0,s.jsx)("div",{className:Wn("checkbox"),style:m?{borderColor:m,"--color-background":m}:void 0,children:(0,s.jsx)(it,{className:Wn("checkbox__icon"),name:"check",style:m?{color:Os({contrast:p||k.Em.AUTO,backgroundColor:m})}:void 0})}),u(f)]})]})}}const bD=Xt(CD),Jh=t=>(0,s.jsx)(bD,{...t}),yD=Jh,LD=t=>(0,s.jsx)(Jh,{type:"checkboxes",...t}),ED=t=>(0,s.jsx)(Jh,{type:"bulleted",...t});var qh=c(15648);const em=t=>["hero","full","aside"].includes(t);class SD extends qh.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:i,getL10nValue:l,initiallyVisible:u,isLearner:d,items:m,type:p,labels:f,lessonId:v,settings:C,renderCaption:g=this.renderCaptionDelegate}=this.props,{entranceAnimation:b,cornerRadius:L,zoomOnClick:y}=C,E=W()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!b}),x=m[0],{id:S,caption:T}=x,{image:N,audio:j}=l(x.media)??{},O=N?.alt,D=(0,Gt.ME)(N),B=N?.dimensions,R=B?.width||B?.originalWidth,H=B?.height||B?.originalHeight,w=Hc({caption:T,editable:i,id:S,getL10nValue:l}),M=!d&&!D,z=R&&H?R/H:void 0,Z=W()("block-image__image",{"block-image__image--audio-overlay":!!j});return(0,s.jsx)(Pt,{className:E,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)(Dt,{animateBlockEntrance:o,initiallyVisible:u,isLearner:d,children:(0,s.jsxs)(w.tagName,{"aria-labelledby":w.figcaptionId,className:"block-image__figure",role:w.role,children:[(0,s.jsxs)("div",{className:Z,children:[M?(0,s.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:z},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)(Si,{alt:O,cornerRadius:L,disableZoom:!y,height:H,l10nId:(0,Et.pP)(x.media),labels:f,maxHeight:p==="full"?380:900,src:D,width:R}),j&&em(p)&&(0,s.jsx)(sn,{blockId:r,cornerRadius:L,index:`${r}-${S}-0`,isOverlayAudio:!0,item:x,labels:f,lessonId:v,media:x.media,renderMediaType:"audio"})]}),n&&(0,s.jsx)("div",{className:"block-image__ai-overlay",children:n})]}),(i||T)&&(0,s.jsx)("figcaption",{id:w.figcaptionId,children:g(S,T)})]})})})})})})}}const TD=Xt(SD),ID=(t,e,n,o,r)=>e?r:(0,s.jsx)(Dt,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:r});class ND extends qh.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:i,lessonId:l,renderCaption:u=this.renderCaptionDelegate,getL10nValue:d}=this.props,m=d(o.media),p=m?.image,f=m?.audio,v=p?.alt,C=(0,Gt.ME)(p),g=p?.dimensions,b=g?.width||g?.originalWidth,L=g?.height||g?.originalHeight,y=Hc({caption:n,editable:i,id:e,getL10nValue:d}),{animateBlockEntrance:E,initiallyVisible:x,isLearner:S,labels:T,settings:{cornerRadius:N,zoomOnClick:j}}=this.props,O=W()("block-image__image",{"block-image__image--audio-overlay":!!f});return(0,s.jsx)(Dt,{animateBlockEntrance:E,animateIn:r==="right"?"fadeInRight":"fadeInLeft",initiallyVisible:x,isLearner:S,children:(0,s.jsxs)(y.tagName,{"aria-labelledby":y.figcaptionId,className:"block-image__figure",role:y.role,children:[(0,s.jsxs)("div",{className:O,children:[(0,s.jsx)(Si,{alt:v,cornerRadius:N,disableZoom:!j,height:L,l10nId:(0,Et.pP)(o?.media),labels:T,maxHeight:900,src:C,width:b}),f&&em("aside")&&(0,s.jsx)(sn,{blockId:a,cornerRadius:N,index:`${a}-${e}-0`,isOverlayAudio:!0,item:o,labels:T,lessonId:l,media:o.media,renderMediaType:"audio"})]}),(i||n)&&(0,s.jsx)("figcaption",{id:y.figcaptionId,children:u(e,n)})]})})}render(){const{defaultBackgroundColor:e,items:n,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:i,imagePosition:l,imageSize:u}=r,d=l==="right",m=W()(`block-image block-image--${a}`,{"block-image--small":u==="small","block-image--large":u==="large","block-image--reverse":d,"block-image--no-animation":!i}),p=n[0],{id:f,caption:v}=p,C="paragraph"in p?p.paragraph:void 0;return(0,s.jsx)(Pt,{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:d?o(f,C):this.renderImage(f,v,p,"left")}),(0,s.jsx)("div",{className:"block-image__col",children:d?this.renderImage(f,v,p,"right"):o(f,C)})]})})})}}const jD=Xt(ND);class kD extends qh.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,initiallyVisible:r,isLearner:a,renderOverlay:i=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)(Dt,{animateBlockEntrance:o,animateIn:"fadeInUp",duration:1,initiallyVisible:r,isLearner:a,children:i(e,n)})})})})}render(){const{animateBlockEntrance:e,blockId:n,defaultBackgroundColor:o,editable:r,getL10nValue:a,initiallyVisible:i,isLearner:l,items:u,labels:d,lessonId:m,settings:p,type:f,renderCaption:v=this.renderCaptionDelegate}=this.props,{entranceAnimation:C,opacity:g,opacityColor:b}=p,L=oh(p?.backgroundColor,o),y=W()(`block-image block-image--${f}`,"block-image--flag-dimensions",{"block-image--no-animation":!C,"block-image--dark":(0,mt.cP)(L)}),E={opacity:g||.6,backgroundColor:b||"transparent"},x=u[0],{id:S,caption:T}=x,N=a(x.media),j=N?.image,O=N?.audio,D=j?.key,B=(0,Gt.ME)(j),R=j?.dimensions,H=R?.width||R?.originalWidth,w=R?.height||R?.originalHeight,M=(0,Ys.Ll)(j?.alt),z=f==="overlay",Z=Hc({caption:T,editable:r,id:S,isOverlayType:z,getL10nValue:a});return(0,s.jsxs)(Pt,{"aria-labelledby":Z.figcaptionId,className:y,defaultBackgroundColor:o,role:Z.role,tag:Z.tagName,children:[ID(e,z,i,l,(0,s.jsxs)("div",{className:"block-image__figure",children:[D&&(0,s.jsxs)("div",{className:"block-image__image","data-l10n-id":(0,Et.pP)(x?.media),style:{backgroundImage:`url('${B}')`},children:[(0,s.jsx)(Ln,{alt:M,height:w,src:B,width:H}),(0,s.jsx)("div",{className:"block-image__overlay",style:E}),O&&em(f)&&(0,s.jsx)(sn,{blockId:n,index:`${n}-${S}-0`,isOverlayAudio:!0,item:x,labels:d,lessonId:m,media:x.media,renderMediaType:"audio"})]}),z?this.renderOverlayCaption(S,T):null]})),!z&&(r||T)&&(0,s.jsx)("figcaption",{className:"block-image__container",id:Z.figcaptionId,children:v(S,T)})]})}}const Yg=Xt(kD),AD=t=>(0,s.jsx)(Yg,{type:"overlay",...t});var RD=c(15648);function Xg(t){class e extends RD.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 pu=c(15648);const Jg=ne("block-gallery-carousel");function PD({blockId:t,animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,initiallyVisible:r,isLearner:a,labels:i,lessonId:l,items:u,onStep:d,previewType:m,renderCaption:p,settings:f}){u||=[];const[v,C]=pu.useState(0),g=pu.useCallback(E=>{C(E),d?.(u[E])},[u,d]),b=m===lt.o4.MOBILE_PORTRAIT||m===lt.o4.MOBILE_LANDSCAPE,L=Jg({noAnimation:!f?.entranceAnimation||mn()}).toString(),y=(0,Ce.Wz)();return(0,s.jsx)(Pt,{className:L,defaultBackgroundColor:n,children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)(hu,{className:Jg("container").toString(),children:(0,s.jsx)(mu,{blockId:t,items:u,children:({carouselRef:E})=>(0,s.jsx)(uu,{isRTL:y,labelCarousel:i?.a11yBlockImageCarousel,labelCarouselRoleDesc:i?.a11yBlockImageCarouselRoleDescription,labelSlideControls:i?.a11yBlockImageCarouselSlideControls,labelSlideControlsGoToNext:i?.a11yBlockImageCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockImageCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockImageCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockImageCarouselSlidePreposition,labelSlideRoleDesc:i?.a11yBlockImageCarouselSlideRoleDescription,onChange:g,ref:E,shouldMouseEmulateTouch:b,children:u.map((x,S)=>(0,s.jsx)(MD,{activeIndex:v,blockId:t,editable:o,index:S,item:x,labels:i,lessonId:l,renderCaption:p,settings:f},x.id))})})})})})}const wD=Xg(PD),tm=ne("block-gallery-carousel-item");function MD({activeIndex:t,blockId:e,editable:n,index:o,item:r,labels:a,lessonId:i,renderCaption:l,settings:u}){const[d,m]=pu.useState(!1),{image:p,audio:f}=(0,at.QQ)(r.media),v=p?.dimensions,C=pu.useCallback(()=>{m(!0)},[]);return(0,s.jsxs)("figure",{className:tm(),children:[n&&!d&&(0,s.jsx)("div",{className:tm("loading"),children:"Loading image..."}),(0,s.jsxs)("div",{className:tm("image-container",{"audio-overlay":!!f}),children:[(0,s.jsx)(Si,{alt:p?.alt,cornerRadius:u?.cornerRadius,disableZoom:!u?.zoomOnClick,height:v?.height||v?.originalHeight,l10nId:(0,Et.pP)(r?.media),labels:a,maxHeight:900,onLoad:C,src:(0,Gt.ME)(p),width:v?.width||v?.originalWidth}),f&&(0,s.jsx)(sn,{blockId:e,cornerRadius:u?.cornerRadius,index:`${e}-${r.id}-${o}`,isOverlayAudio:!0,item:r,labels:a,lessonId:i,media:r.media,renderMediaType:"audio",shouldPause:t!==o})]}),(n||r.caption)&&d&&(0,s.jsx)("figcaption",{children:l(r.id,r.caption)})]})}const OD=({alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,src:i,width:l})=>(0,s.jsx)("div",{className:"block-gallery__image",children:(0,s.jsx)(Si,{alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,maxHeight:900,src:i,width:l})}),DD=t=>{switch(t){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function BD(t){return(0,s.jsx)(wD,{...t})}class HD extends h.Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:l,labels:u,renderCaption:d,settings:m,width:p}=this.props,{entranceAnimation:f,cornerRadius:v,zoomOnClick:C}=m,g=W()(`block-gallery block-gallery--${DD(p)}`,{"block-gallery--no-animation":!f||mn()});return(0,s.jsx)(Pt,{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)(Dt,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,siblingDelay:.25,children:l.map(b=>{const{id:L}=b,y=b.caption,E=r(b.media)?.image,x=E?.alt,S=E?.key,T=E?.dimensions,N=T?.width||T?.originalWidth,j=T?.height||T?.originalHeight,O=(0,Gt.ME)(E),D=Hc({caption:y,editable:o,id:L,getL10nValue:this.props.getL10nValue});return(0,s.jsx)("div",{className:"block-gallery__col",children:(0,s.jsxs)(D.tagName,{"aria-labelledby":D.figcaptionId,className:"block-gallery__figure",role:D.role,children:[S&&(0,s.jsx)(OD,{alt:x,cornerRadius:v,disableZoom:!C,height:j,l10nId:(0,Et.pP)(b?.media),labels:u,src:O,width:N}),(o||y)&&(0,s.jsx)("figcaption",{id:D.figcaptionId,children:d(L,y)})]})},L)})})})})})}}const sm=Xg(Xt(HD)),nm=ne("block-divider"),om=({isLearner:t,labels:{numberedDividerGroup:e},number:n,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,i=r==="numbered",u=nm({authoring:!t,spacing:r==="spacing",numbered:i,"no-animation":!a}).toString(),d=i?(0,s.jsxs)("div",{className:nm("wrap__number"),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:e}),n]}):null;return(0,s.jsx)(Pt,{className:u,children:(0,s.jsx)("div",{className:nm("wrap",{authoring:!t&&!i}),children:d})})},FD=om,zD=t=>(0,s.jsx)(om,{type:"numbered",...t}),VD=t=>(0,s.jsx)(om,{type:"spacing",...t});var UD=c(39728),$D=c.n(UD),WD=c(66323),qg=c.n(WD),GD=c(38382),fu=c.n(GD),KD=c(63832),vu=c.n(KD),gu=c(15648);const _D=30,e3=ah("blockSettings");class QD extends gu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],lessonId:"",onStep:()=>{}};render(){const{animateBlockEntrance:e,blockId:n,editable:o,initiallyVisible:r,isLearner:a,items:i,labels:l,lessonId:u,onStep:d,settings:m,enableVideoPlaybackSpeed:p}=this.props,{entranceAnimation:f,accordionBehavior:v="keepOpen"}=m,C=W()("blocks-accordion",{"blocks-accordion--no-animation":!f});return(0,s.jsx)(Pt,{className:C,"data-block-id":n,children:(0,s.jsx)(Dt,{animateBlockEntrance:e,duration:.75,initiallyVisible:r,isLearner:a,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)(tB,{blockId:n,editable:o,enableVideoPlaybackSpeed:p,items:i,keepOpen:v==="keepOpen",labels:l,lessonId:u,onStep:d,settings:m})})})})})})}}const ZD={isOpen:!1,isActive:!1},YD=t=>(e,{id:n})=>Object.assign({},e,{[n]:t[n]||ZD}),t3=(t,e)=>e.reduce(YD(t),{}),XD=(t,e)=>(n,o)=>{const r=t==o,a=r?!n.isOpen:n.isOpen,i=r&&!n.isOpen;return{isOpen:e?a:i,isActive:r}},JD=t=>(e,n)=>{const o=n==t;return{isOpen:o,isActive:o}},qD=t=>(e,n)=>({isOpen:n==t,isActive:e.isActive});class eB extends gu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(e){super(e);const{items:n}=this.props;this.state={itemStatusMap:t3({},n)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(_t,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(_t,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:i}=this.props,{itemStatusMap:l}=this.state,u=a[r].id,d=JD(u);this.setState({itemStatusMap:ca()(d,l)}),open&&i(a[r])}}UNSAFE_componentWillReceiveProps(e){const n=e.items,o=ps()(n)!==ps()(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=$D()(a=>e[a.id].isOpen,n);if(!o)return;const r=qD(o.id);this.setState({itemStatusMap:ca()(r,e)})}rebuildItemStatusMap(e){const n=this.state.itemStatusMap;this.setState({itemStatusMap:t3(n,e)})}handleItemClick(e){const{items:n,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,i=n[e].id,l=XD(i,o);this.setState({itemStatusMap:ca()(l,a)}),open&&r(n[e])}render(){const{items:e,settings:n,editable:o,labels:r,lessonId:a,blockId:i,enableVideoPlaybackSpeed:l}=this.props,{itemStatusMap:u}=this.state,{zoomOnClick:d}=n,m=Object.values(u)?.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)(nB,{blockId:i,disableZoom:!d,editable:o,focused:u[p.id].isActive,index:f,item:{...p,enableVideoPlaybackSpeed:l},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,f),open:u[p.id].isOpen},p.id))})}}const tB=e3(eB);class sB extends gu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(e){super(e),this.id=fu()(),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!=null&&r>0&&r<window.innerHeight,i=mn()?"instant":"smooth";a||o.scrollIntoView({behavior:i,block:"start"})}}toggle(e){const{blockId:n,index:o}=this.props,r=st.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(n.toString())&&a.test(r)&&st.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(e){const{description:n=""}=this.props.item;return(0,s.jsx)(ms,{className:"blocks-accordion__description",value:n||""},e)}render(){const{blockId:e,blockSettings:n,editable:o,disableZoom:r,getL10nValue:a,index:i,item:l,focused:u,labels:d,lessonId:m,open:p,renderDescription:f=this.renderDescription,renderTitle:v=this.renderTitle}=this.props,{settings:C={},enableVideoPlaybackSpeed:g}=l,b=a(l.media)??{},L=Mo(b,n.audioPosition),y=Object.assign({},C,{disableZoom:r,fullEmbed:!0}),E=n?.backgroundType===k.xj.ACCENT||n?.backgroundType===k.xj.IMAGE,x=W()("blocks-accordion__item",{"blocks-accordion__item--closed":!p}),S=W()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":p&&u&&!E}),T=W()("blocks-accordion__content",{"blocks-accordion__content--will-enter":p,"brand--border":p&&u&&!E}),N=`title-${this.id}`,j=`panel-${this.id}`,O=n?.headingLevel,D=O?`h${O}`:"h2";let B=(0,s.jsxs)("button",{"aria-controls":j,"aria-expanded":p,className:S,onClick:this.toggle,onKeyDown:!o&&ef(this.toggle)||void 0,type:"button",children:[v(N),(0,s.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,s.jsx)(it,{className:"blocks-accordion__toggler",name:p?"minus":"plus"})})]});return o&&(B=(0,s.jsxs)("div",{className:S,children:[v(N),(0,s.jsx)("button",{"aria-controls":j,"aria-expanded":p,"aria-label":p?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,s.jsx)(it,{className:"blocks-accordion__toggler",name:p?"minus":"plus"})})]})),(0,s.jsxs)(Gs,{className:x,tag:"section",children:[(0,s.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,s.jsx)(D,{children:B})}),(0,s.jsx)("section",{"aria-labelledby":N,className:T,id:j,ref:R=>{this.content=R},children:L.renderOrder.map((R,H)=>{if(R==="text")return f(`text-${H}`);const w={blockId:e,hasPadding:!1,imageMaxHeight:1e3,item:l,labels:d,lessonId:m,enableVideoPlaybackSpeed:g,opts:y},M=rm(b),z=M==="image-with-audio",Z=z?"left":"center",X={audio:{media:L.audioOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${i}-audio`,className:"blocks-accordion__audio"},image:{media:L.imageOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${i}-image`,className:W()(`blocks-accordion__${M}`,{[`blocks-accordion__${M}--${Z}`]:z})},video:{media:L.videoOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${i}-video`,className:W()(`blocks-accordion__${M}`,{[`blocks-accordion__${M}--${Z}`]:z})},embed:{media:L.embedOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${i}-embed`,className:W()(`blocks-accordion__${M}`,{[`blocks-accordion__${M}--${Z}`]:z})},overlay:{media:b,isOverlayAudio:!0,index:`${e}-${i}-overlay`,className:W()(`blocks-accordion__${M}`,{[`blocks-accordion__${M}--${Z}`]:z})}}[R];if(!X)return null;const{className:pe,...Le}=X;return(0,s.jsx)("div",{className:W()(pe,{"audio-on-top":this.props.blockSettings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-accordion__figure",children:(0,s.jsx)(sn,{...w,...Le})})},`${R}-${H}`)})})]})}getMediaContainerClasses(e,n){const o=this.props.getL10nValue(this.props.item.media)??{},r=rm(o),a=r==="image-with-audio",i=a&&!Array.isArray(o)?o?.image?.align:"left";return W()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${i}`]:a,"blocks-accordion__media-container":e,"blocks-accordion__media-container--audio-overlay":n})}}const nB=e3(Xt(t=>(0,s.jsx)(sB,{...t}))),rm=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 oB extends gu.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=fu()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=vu()(this.handleControls.bind(this),100)),window.addEventListener(_t,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=vu()(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)},()=>{lh(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(_t,this.handleNavtoTab)}setActive(e){this.setState({activeIndex:e});const{blockId:n}=this.props,o=st.playerId;this.state.activeIndex!=e&&o&&o.includes(n.toString())&&st.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,i=(e==="next"?n?qg():Ph():n?Ph():qg())(r,o*.8);this.tabsHeaderEl.scrollTo({left:i,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;gr(n)?(r=!0,a=o?e+1>this.tabs.length-1?0:e+1:e-1>=0?e-1:this.tabs.length-1):Cr(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,i=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,l=W()("blocks-tabs__header-wrap",{touch:r,mouse:a&&i});return(0,s.jsxs)("div",{className:l,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:u=>{this.tabsHeaderEl=u},role:ck,children:e.map(({title:u},d)=>{const m=e.length===1||d===o,p=e.length>1&&d+1===o,f=e.length>1&&d-1===o,v=W()("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}),C=`tab-${this.id}-${d}`,g=`tabpanel-${this.id}-${d}`;return(0,s.jsx)("button",{"aria-controls":g,"aria-selected":m,className:v,id:C,onClick:this.setActive.bind(this,d),onFocus:this.focusTab.bind(this),onKeyDown:this.handleTabKeyDown.bind(this,d),ref:b=>{this.tabs[d]=b},role:dk,tabIndex:m?void 0:-1,type:"button",children:(0,s.jsx)(St,{value:u})},C)})}),(0,s.jsxs)("div",{className:"blocks-tabs__controls",ref:u=>{this.tabControls=u},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:u=>{this.arrowPrevEl=u},children:(0,s.jsx)(it,{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:u=>{this.arrowNextEl=u},children:(0,s.jsx)(it,{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,labels:i,lessonId:l,renderDescription:u=this.renderDescription}=this.props,{activeIndex:d}=this.state,m=d===n,{settings:p={},enableVideoPlaybackSpeed:f}=e,v=a(e.media)??{},C=Mo(v,this.props.settings.audioPosition,!1),g=W()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":m}),b=Object.assign({},p,{disableZoom:o,fullEmbed:!0}),L=`tabpanel-${this.id}-${n}`,y=`tab-${this.id}-${n}`,E=rm(v),x=E==="image-with-audio",S=E==="audio-and-embed",T=x?v?.image?.align:"left",N=S?"embed-border":void 0;return(0,s.jsx)("div",{"aria-labelledby":y,className:g,id:L,role:lk,tabIndex:m?0:void 0,children:C.renderOrder.map((j,O)=>{if(j==="text")return(0,s.jsx)("div",{className:"blocks-tabs__description",children:u(e)},`text-${O}`);const D={blockId:r,embedClass:N,hasPadding:!1,imageMaxHeight:1e3,item:e,labels:i,lessonId:l,enableVideoPlaybackSpeed:f,opts:b},R={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:W()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:x})},video:{media:C.videoOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-video`,className:W()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:x})},embed:{media:C.embedOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-embed`,className:W()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:x})},overlay:{media:v,isOverlayAudio:!0,index:`${r}-${n}-overlay`,className:W()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:x})}}[j];if(!R)return null;const{className:H,...w}=R;return(0,s.jsx)("div",{className:W()(H,{"audio-on-top":this.props.settings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-tabs__figure",children:(0,s.jsx)(sn,{...D,...w})})},`${j}-${O}`)})},L)}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,enableVideoPlaybackSpeed:i}=this.props,{backgroundType:l,cardMode:u,entranceAnimation:d,zoomOnClick:m}=a,p=W()("blocks-tabs",{"blocks-tabs--no-animation":!d}),f=r.length>0?r.slice(0,_D):[],v=u===Fn.TRANSPARENT&&(l===k.xj.ACCENT||l===k.xj.IMAGE),C=W()("blocks-tabs__container",{"blocks-tabs--single":f.length===1});return(0,s.jsx)(Pt,{className:p,children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:C,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:g=>{this.container=g},children:(0,s.jsxs)(Gs,{children:[this.renderHeader(f,v),(0,s.jsx)("div",{className:"blocks-tabs__content",children:f.map((g,b)=>this.renderItem({...g,enableVideoPlaybackSpeed:i},b,!m))})]})})})})})})})}}const rB=Xh(Xt(t=>(0,s.jsx)(oB,{...t}))),aB=gt()(null,["payload","result"]),iB=t=>{if(t.meta?.thumbnail)return`${t.contentPrefix}/${t.meta.thumbnail}`},cB=t=>t.meta?.version,s3=t=>t.src??null,lB=t=>t.processing,dB=os()(["payload","result","completion"]),uB=gt()(!1,["payload","result","score"]),hB=qr()((t,e)=>{if(!e)return!1;const{majorLimit:n,minorLimit:o}=t,[r,a]=e.split("."),i=parseInt(r)===n&&Number(a)>=o;return Number(r)>n||i}),mB={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},pB=t=>{const e=rn()(t.split("-"));return mB[e]},fB=hB({majorLimit:3,minorLimit:13}),vB=(t,e,n,o)=>{const r=e&&pB(n),a=r?`${t}${r}`:`${t}?rise=true`;if(o){const i=a.includes("?")?"&":"?";return`${a}${i}locale=${o}`}return a};var gB=c(15648);class CB extends gB.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=rn()(n),a=e(r?.media)?.storyline??{},i=cB(a);fB(i)||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=rn()(n),{windowName:i}=e;if(r===i&&dB(e)){const{score:l,success:u}=aB(e);if(uB(e)){const d=l.scaled*100;(0,qe.jr)(r,u,!0,d)}else(0,qe.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,initiallyVisible:o,isLesson:r,isLearner:a,isOnlyBlockInStep:i,items:l,labels:{a11yBlockStoryline:u},settings:d,takingSnapshot:m}=this.props,p=rn()(l),f=n(p?.media)?.storyline??{},{mediaWidth:v="0"}=d,C=i?{}:{display:r&&!s3(f)?"none":"block"},g=W()("blocks-storyline__wrapper",{"blocks-storyline__wrapper--small":v==="0","blocks-storyline__wrapper--medium":v==="1","blocks-storyline__wrapper--full":v==="2","blocks-storyline__wrapper--snapshot":m});return(0,s.jsx)(Pt,{className:"blocks-storyline",style:C,children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{"aria-label":u,className:g,role:"group",children:m?this.renderThumbnail(f):this.renderStorylineBlock(f)})})})}renderStorylineBlock(e){return lB(e)?this.renderProcessing():s3(e)?this.renderItem(e):this.renderEmpty()}renderThumbnail(e){const n=iB(e),o=`${(0,Ge._$)("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,currentLocale:r,isLesson:a,previewType:i,settings:l}=this.props,{cornerRadius:u}=l,{src:d,meta:m,title:p}=e,{player:f}=m,v=vB(d,a,i,r),g={paddingBottom:`${f.height/f.width*100}%`,...u!=null&&{"--corner-radius":`${Number(u)}px`}},b=W()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":n});return(0,s.jsx)("div",{className:"blocks-storyline__item",style:g,children:(0,s.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",className:b,loading:"lazy",name:o.toString(),ref:L=>{this.iframe=L},src:(0,Ge.o1)(v),title:p})})}renderProcessing(){const{renderProcessing:e}=this.props;return typeof e=="function"?e():null}}const xB=(0,Vt.wZ)(Xt(CB));var n3=c(15648);const Cu=ne("blocks-button"),o3=k.zV,bB=({description:t})=>(0,s.jsx)(St,{className:Cu("description"),value:t}),yB=({color:t,destination:e,editBlock:n,handleNavigate:o,isEditable:r,label:a,type:i})=>{const l=(0,Ce.d_)(),u=(0,Ce.DX)()?.externalLinksDisabled,d=(0,Ce.DX)()?.theme,m=(0,Ce.kJ)(),{mode:p}=(0,te.g)(),f=tn(),v=(0,Ce.vU)(),C=(0,at.QQ)(e),g=(0,ia.htmlDecode)((0,so.QZ)((0,at.QQ)(a))),b=i==="email",L=i==="exit-course",y=i==="lesson",E=i==="relative-url",x=Cu("button"),S=!t||t===""||t===m,T=t??m,N={},j=(0,Ce.Ge)(m),O=S&&d?.accentContrast===k.Em.AUTO?k.Em.AUTO:j,D=f?.buttonColorContrast??O,B=f?.buttonRadius??null,R=f?.buttonWidth??null,H=Os({backgroundColor:T,contrast:D});Object.assign(N,{...!S&&{"--color-button-bg":T},...!S&&{"--color-button-text":H},...!S&&{"--color-button-border":"transparent"},...B!=null&&{"--radius-button":`${Number(B)}px`},...R!=null&&{"--width-button":`${Number(R)}rem`}});const w=u&&Mn(C),{handleMouseEnter:M,handleMouseLeave:z,handleFocus:Z,handleBlur:Y}=pd(),X=n3.useId(),pe=(0,h.useCallback)(()=>{if(r)n();else{if(w)return;if(L)return(0,Ge.NS)()}},[n,w,r,L]),Le=(0,h.useCallback)(()=>{o(C)},[C,o]);if(r||w||L){const ke=(0,s.jsx)("button",{"aria-label":g,className:x,id:w?X:void 0,onBlur:w?()=>Y(X):void 0,onClick:pe,onFocus:w?()=>Z(X):void 0,onKeyDown:ef(pe),onMouseEnter:w?()=>M(X):void 0,onMouseLeave:w?()=>z(X):void 0,style:N,tabIndex:Bd,type:"button",children:g});return w?(0,s.jsxs)(s.Fragment,{children:[ke,(0,s.jsx)(fd,{anchorId:X})]}):ke}else if(y){const ke=p?`/${p}`:"",Be=`/lessons/${C}${ke}`,We=C===""?"#":Be;return(0,s.jsx)(On,{"aria-label":g,className:x,onClick:Le,style:N,to:We,children:g})}else{const ke=E?C:Un(C),Be=b?`mailto:${C}?subject=${l}`:ke,We=cn.isIphoneSafari?"_top":"_self",De=b?We:"_blank",Ae=De==="_blank",he=Ae?"noopener noreferrer nofollow":void 0,le=v?.a11yNoticeLinkNewTab||"(opens in a new tab)",He=Ae?`${g} ${le}`:g;return(0,s.jsx)("a",{"aria-label":He,className:x,href:Be,rel:he,style:N,tabIndex:Bd,target:De,children:g})}},r3=t=>{const{animateBlockEntrance:e,editable:n,editBlock:o=()=>{},handleNavigate:r,initiallyVisible:a,isLearner:i,items:l=[],renderDescription:u=bB,settings:d}=t,{buttonAlignment:m=k.Ht,buttonColor:p,buttonShowDescription:f=!0,buttonStack:v,entranceAnimation:C}=d,g=Cu(null,{"no-animation":!C,description:f==!0,center:m==="center",left:m==="left",right:m==="right",rounded:o3==="rounded"}),b=l?.map(({id:L,description:y,...E})=>{const x=(0,s.jsx)(yB,{...E,color:p,editBlock:o,handleNavigate:r,isEditable:n}),S=f&&u({id:L,description:y});return(0,s.jsx)("section",{className:Cu("container"),children:m==="left"&&f?(0,s.jsxs)(s.Fragment,{children:[x,S]}):(0,s.jsxs)(s.Fragment,{children:[S,x]})},L)})??null;if(v){const{paddingBottom:L,paddingTop:y}=d,E={...y!=null&&{paddingTop:`${Number(y)}rem`},...L!=null&&{paddingBottom:`${Number(L)}rem`}};return(0,s.jsx)("div",{className:g.toString(),style:E,children:b})}return(0,s.jsx)(Pt,{className:g.toString(),children:(0,s.jsx)(Dt,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"blocks-button",children:b})})})},LB=r3;class EB extends n3.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:i,isLearner:l,lessonId:u,initiallyVisible:d}=this.props;return(0,s.jsx)(r3,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,handleNavigate:i,initiallyVisible:d,isLearner:l,items:[e],lessonId:u,settings:n,type:"right"})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,renderButton:i=this.renderButtonDelegate}=this.props,{entranceAnimation:l,buttonShowDescription:u=!0,buttonAlignment:d=k.Ht,buttonSpacing:m=3}=a,p=W()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!l,"blocks-button--description":u==!0,"blocks-button--center":d==="center","blocks-button--left":d==="left","blocks-button--right":d==="right","blocks-button--rounded":o3==="rounded"});return(0,s.jsx)(Pt,{className:p,children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:r.map((f,v)=>{const C=v===0,g={buttonColor:a.buttonColor||this.props.color,buttonStyle:a.buttonStyle,buttonStack:!0,buttonShowDescription:u,buttonAlignment:d,...C?{}:{paddingTop:m}};return(0,s.jsx)(h.Fragment,{children:i(f,g)},f.id)})})})}}var SB=c(7520),TB=c.n(SB);const IB=ur()("partner-content-block-card__"),NB=t=>{const{backgroundColor:e,blockId:n,courseId:o,partnerContent:r,publishedAt:a,tenantId:i}=t,{data:l,type:u}=r,{authors:d,bookImage:m,bookTitle:p,buyLink:f,internalId:v,nbicLink:C}=l,g={blockId:n,courseId:o,partnerContentId:v,tenantId:i,contentSubtype:u};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)(Wp,{authors:d,backgroundColor:e,block:!0,bookImage:m,bookTitle:p,buyLink:f,publishedAt:a,trackingInfo:g})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)("div",{className:IB("divider")})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Gp,{backgroundColor:e,block:!0,link:C,publishedAt:a,trackingInfo:g})})]})]})};var xu=c(15648);const bu=ne("block-audio"),tr=ne("block-video"),am=ne("block-embed"),Sn=ne("block-attachment");class jB extends xu.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=bu("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:i,progress:l,recordMediaPlayheadPosition:u,renderCaption:d=this.renderCaptionDelegate,settings:m}=this.props,p="forwardSeekRestricted"in m?m.forwardSeekRestricted:!1,f=e.media,v=o(f)??{},{id:C}=e,g=v?.tmp?.audio?.key||v?.audio?.key,b=`${a}-${n}-${C}`,L=gt()(0,["items",n,"items",C,"audioVideoPlayhead"],l),y=Zh({lessonId:a,refs:`items:${n}/items:${C}`});return(0,s.jsxs)("div",{className:bu("item"),children:[i&&(0,s.jsx)(Mg,{audioVideoPlayhead:L,canRestrictSeek:!!p,id:b,item:e,labels:r,mediaSrc:g,onAIUploadFinish:this.props.onAIUploadFinish,onEnd:this.handleOnEnd.bind(this,C),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,e),onTranscriptClose:this.props.closeTranscript,recordMediaPlayheadPosition:u,refs:`items:${n}/items:${C}`,transcriptMedia:f,uploadId:y},b),d(e)]},C)}handleOnEnd(e){this.props.onStep({id:e})}onTranscriptClick(e){const{blockId:n}=this.props;return this.props.openTranscript?.({blockId:n,item:e,refs:`items:${n}/items:${e.id}`})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:i}=a,l=bu({"no-animation":!i}).toString(),u=r.length>0?r.slice(0,1):[];return(0,s.jsx)(Pt,{className:l,children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:bu("wrapper"),children:u.map(d=>this.renderItem(d))})})})}}const kB=Ev(Xt(jB));class AB extends xu.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,enableVideoPlaybackSpeed:o,isDragPreview:r,isSidebarPreview:a,labels:i,progress:l,recordMediaPlayheadPosition:u,settings:d,takingSnapshot:m,type:p}=this.props,f="forwardSeekRestricted"in d?d.forwardSeekRestricted:!1,{captions:v,captionUID:C,id:g,key:b,poster:L,subtitle:y}=e,E=b||e.src,x=gt()(0,["items",n,"items",g,"audioVideoPlayhead"],l),S=m||r||a,T=S?`${e.keyId}-preview`:e.keyId,N=(0,s.jsxs)("div",{className:tr("poster-container"),children:[(0,s.jsx)(Ln,{alt:"Video Poster",className:tr("poster"),src:L}),(0,s.jsx)("div",{className:tr("play-overlay"),children:(0,s.jsxs)("svg",{className:tr("play-icon"),fill:"currentColor",height:"80",viewBox:"0 0 24 24",width:"80",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",fill:"rgba(0,0,0,0.6)",r:"12"}),(0,s.jsx)("polygon",{fill:"white",points:"10,8 10,16 16,12"})]})})]}),j=(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:tr("placeholder")})}),O=(0,s.jsx)("div",{children:(0,s.jsx)(Ug,{audioVideoPlayhead:x,canAdjustPlaybackSpeed:o,canRestrictSeek:!!f,captions:v,captionUID:C,id:T,labels:i,onLoad:this.onVideoLoad,poster:L,progressChanged:this.handleProgressChanged.bind(this,g),recordMediaPlayheadPosition:u,settings:d,src:E,subtitle:y,type:b?"video":p},T)});return S?N:E?O:j}renderCaption({caption:e}){const{isDragPreview:n,isSidebarPreview:o}=this.props,{loaded:r}=this.state,i=tr("caption",{visible:r||n||o}).toString();return(0,s.jsx)(ms,{className:i,value:e})}renderItem(e){const{courseId:n,currentLocale:o,lessonId:r,blockId:a,isDragPreview:i,isSidebarPreview:l,loadMedia:u,partnerContent:d,publishedAt:m,settings:p,tenantId:f,renderCaption:v=this.renderCaptionDelegate,getL10nValue:C}=this.props,{loaded:g}=this.state,L=g||(i||l),y=p.backgroundColor,E=p.mediaWidth??"1",{id:x,media:S}=e,T="partnerContentId"in e?e.partnerContentId:void 0,N=C(S)??{},{customVideo:j={},tmp:O={},video:D={}}=N,B=Sc()("poster",D)?D:Yo()(D,j),R=Sc()("poster",O.video||{})&&O.video,{captionUID:H,captions:w,key:M,poster:z,src:Z,subtitle:Y}=(0,Ge.Hm)()?B:R||B,X=`${r}-${a}-${x}-${o}`,pe={captionUID:H,captions:w,id:x,key:M,keyId:X,partnerContentId:T,poster:z,src:Z,subtitle:Y},Le=xs()(It()("id",T),d)||{},ke=Le&&!ls()(Le),Be=tr("item",{small:E==="0",medium:E==="1",full:E==="2"});return(0,s.jsxs)("div",{className:Be,children:[(0,s.jsxs)("figure",{"data-l10n-id":S?.l10nId,children:[u&&this.renderVideo(pe),L&&(0,s.jsx)("figcaption",{className:tr("wrapper"),children:v(e)})]}),ke&&(0,s.jsx)(NB,{backgroundColor:y,blockId:a,courseId:n,partnerContent:Le,publishedAt:m,tenantId:f})]},x)}handleProgressChanged(e,{percentComplete:n}){n>=100&&this.props.onStep({id:e})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:i}=a,l=tr({"no-animation":!i}).toString(),u=r.length>0?r.slice(0,1):[];return(0,s.jsx)(Pt,{className:l,children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:u.map(d=>this.renderItem(d))})})}}const im=(0,Vt.wZ)(Xt(AB));class RB extends xu.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)??{},i="embed"in a?a.embed:void 0,{loadMedia:l,labels:u,settings:d}=this.props,{showMetaData:m}=r,{cardMode:p,showBorder:f=!0}=d,v=am("item",{border:f}).toString();return(0,s.jsx)(Gs,{className:v,disabled:!f&&p==Fn.TRANSPARENT,tag:"section",children:l&&(0,s.jsx)(zg,{data:i,id:`${n}-${o}`,isLesson:!0,labels:u,showMetaData:m})},o)}render(){const{animateBlockEntrance:e,blockId:n,getL10nValue:o,initiallyVisible:r,isLearner:a,items:i,settings:l}=this.props,{entranceAnimation:u,mediaWidth:d="0"}=l,m=o(i?.[0]?.media);if(!m)return null;const p=HM(m)!=="link",f=am({"no-animation":!u}).toString(),v=am("wrapper",{medium:p&&d==="1",full:p&&d==="2"}),C=i.length>0?i.slice(0,1):[];return(0,s.jsx)(Pt,{className:f,children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:v,children:C.map(g=>this.renderItem(g,n))})})})}}const PB=Xt(ah()(RB));class wB extends xu.Component{get attachment(){const e=this.props.items[0].media;return this.props.getL10nValue(e)?.attachment??{}}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o}=this.props;return(0,s.jsx)(Pt,{children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:"block-text--onecol",children:(0,s.jsx)("div",{className:"block-text__container",children:(0,s.jsx)("div",{className:"block-text__row",children:(0,s.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{attachmentId:a,blockId:i,externalLinksDisabled:l,onLinkBlur:u,onLinkFocus:d,onLinkMouseEnter:m,onLinkMouseLeave:p}=this.props,f=(0,Ge.o1)(e),v=l?"":void 0,C=l?void 0:f,g=l?void 0:"noopener noreferrer nofollow",b=l?"button":void 0,L=l?0:void 0,y=l?void 0:"_blank",E=Sn({}).mix("brandHover").toString(),x=Sn("info");return(0,s.jsxs)(Gs,{"aria-labelledby":`attachment-name-${i} attachment-icon-${i}`,className:E,"data-external":v,download:o,href:C,id:l?a:void 0,onBlur:l?()=>u?.(a):void 0,onFocus:l?()=>d?.(a):void 0,onMouseEnter:l?()=>m?.(a):void 0,onMouseLeave:l?()=>p?.(a):void 0,rel:g,role:b,tabIndex:L,tag:"a",target:y,children:[(0,s.jsxs)("div",{className:Sn("main"),children:[(0,s.jsx)("div",{className:Sn("icon"),id:`attachment-icon-${i}`,children:this.fileIcon(n)}),(0,s.jsxs)("div",{className:x,children:[(0,s.jsx)(St,{className:Sn("title").toString(),id:`attachment-name-${i}`,value:o}),(0,s.jsx)("div",{className:Sn("size").toString(),children:TB()(r,{round:1})})]})]}),(0,s.jsx)("div",{className:Sn("rest"),children:(0,s.jsx)(MC,{className:"brandHover__target--fill"})})]})}renderNoFile(){const e=Sn({none:!0}).toString(),n=Sn("info");return(0,s.jsx)(Gs,{className:e,children:(0,s.jsxs)("div",{className:Sn("main"),children:[(0,s.jsx)("div",{className:Sn("icon"),children:(0,s.jsx)(D2,{"aria-label":"File"})}),(0,s.jsxs)("div",{className:n,children:[(0,s.jsx)("div",{className:Sn("title").toString(),children:"File Attachment Block"}),(0,s.jsx)("div",{className:Sn("size").toString(),children:"No file added"})]})]})})}fileIcon(e){const{labels:n}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,i=/powerpoint|presentation/,l=/rtf|richtext/,u=/zip/;return o.test(e)?(0,s.jsx)(u9,{"aria-label":n?.a11yExcelIcon}):r.test(e)?(0,s.jsx)(c9,{"aria-label":n?.a11yPDFIcon}):a.test(e)?(0,s.jsx)(r9,{"aria-label":n?.a11yWordIcon}):i.test(e)?(0,s.jsx)(l9,{"aria-label":n?.a11yPPTIcon}):l.test(e)?(0,s.jsx)(d9,{"aria-label":n?.a11yRTFIcon}):u.test(e)?(0,s.jsx)(h9,{"aria-label":n?.a11yZipIcon}):(0,s.jsx)(D2,{"aria-label":n?.a11yFileIcon})}}const MB=md()({externalLinksDisabled:os()(["course","externalLinksDisabled"])});function OB(t){const e=ah()(t),n=Xt(e),o=px(n);return(0,ws.Ls)(MB)(o)}const DB=OB(wB),BB=ne("continue-btn"),cm=({href:t,onClick:e,text:n})=>{const o=`${BB()} brand--ui`;return t?(0,s.jsx)(On,{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,to:t,children:(0,s.jsx)(bs,{value:n})}):(0,s.jsx)("button",{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,type:"button",children:(0,s.jsx)(St,{value:n})})},a3=({bgType:t,text:e,iconType:n="locked"})=>{const o=W()("continue-hint",{"continue-hint--bg-transparent":t==="transparent"});return(0,s.jsxs)("div",{className:o,"data-continue-btn":"",children:[n==="locked"&&(0,s.jsx)(it,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,s.jsx)("div",{className:"continue-hint__content",children:(0,s.jsx)(bs,{value:e})})]})},lm=ne("block-text");function HB({blockId:t,animateBlockEntrance:e,canContinue:n=!1,isComplete:o,isLearner:r,isLastBlock:a=!1,isOnlyBlockInStep:i,items:l=[],labels:u,onStep:d=()=>{},skipContinue:m=!1,initiallyVisible:p}){const v=(0,h.useRef)(null),C=(0,Me.A)(o),[g,b]=h.useState(!1),{announcePolite:L}=pt(),[y,E]=h.useState(!1),x=tn(),S=(0,Ce.DX)(),T=(0,Ce.kJ)(),N=(0,Ce.Ge)(T),j=l[0],{id:O,title:D,type:B}=j,R=!B||(m?y:n||i&&o),H=m||!o||i,w=x?.continueColor||T,M=!w||w===T,z=M&&S?.theme?.accentContrast===k.Em.AUTO?k.Em.AUTO:N,Z=x?.continueColorContrast??z,Y=x?.continueRadius??null,X=x?.continueWidth??76,pe=Os({backgroundColor:w,contrast:Z}),Le={...!M&&{"--color-button-bg":w},...!M&&{"--color-button-text":pe},...!M&&{"--color-button-border":"transparent"},...Y!=null&&{"--radius-button":`${Number(Y)}px`},...X!=null&&{maxWidth:`${Number(X)}rem`}},ke=(0,h.useCallback)(()=>{d({id:O}),b(!0),a?setTimeout(()=>{const Be=document.querySelector("[data-lesson-id]"),We=document.querySelector("main"),De=document.querySelector("h1.lesson-header__title, .lesson-header__title h1"),Ae=Be?.querySelector('.block-wrapper, [role="region"], .lesson-content > *:first-child');let he=null;De?he=De:Ae&&Ae!==v.current?.parentElement?he=Ae:Be?he=Be:We&&(he=We),he&&(he.setAttribute("tabindex","-1"),he.focus({preventScroll:!0}))},200):setTimeout(()=>{const Be=v.current;Be&&Be.focus()},100)},[O,d,a]);return(0,h.useEffect)(()=>{!C&&o&&(a||setTimeout(()=>{L?.(u?.a11yStatusAdditionalContent)},300))},[L,o,u,C,a]),(0,h.useEffect)(()=>{const Be=We=>{const{path:De}=We.detail,{blockId:Ae,buttonId:he}=Qa(We.detail.path,["block","button"]);if(t==Ae&&he===j.id){const le=De.at(-1);le==="title"?E(!0):le==="completeHint"&&E(!1)}};return window.addEventListener(_t,Be),()=>{window.removeEventListener(_t,Be)}},[t,j.id]),(0,s.jsxs)(s.Fragment,{children:[H&&(0,s.jsx)(Pt,{children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:p,isLearner:r,children:(0,s.jsx)("div",{className:lm("container"),children:(0,s.jsx)("div",{className:lm("row"),children:(0,s.jsxs)("div",{className:lm("continue"),style:Le,children:[R&&(0,s.jsx)(cm,{onClick:ke,text:D}),!R&&(0,s.jsx)(a3,{text:j.completeHint})]})})})})}),g&&(0,s.jsx)("div",{"aria-live":"off",className:"visually-hidden-always",ref:v,role:"status",tabIndex:-1,children:u?.a11yStatusContinued||"Continued"})]})}var dm=c(12841),FB=c(98687),yu=c.n(FB);const zB=ne("flashcard");class VB 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:i,backDescription:l,backMedia:u,backType:d,block:m,forceFlipped:p,frontDescription:f,frontMedia:v,frontType:C,id:g,index:b,isHidden:L,labels:y,lessonId:E,prefersKeyboardNavigation:x,settingShowHint:S,size:T,type:N,wrapElement:j,wrapRole:O},state:{areSidesReady:D,flipped:B,isMounted:R}}=this,H=p||B,w=zB({large:T==="large",small:T==="small",flipped:H,stack:N==="stack"});return(0,s.jsxs)(j,{"aria-hidden":!i,className:w,onClick:n,onTouchEnd:r,ref:e,role:O,children:[(0,s.jsx)(Gs,{activeIndex:a,allowTabNavigation:i,blockId:m?.id,blockType:N,description:f,index:b,isActiveSide:!H,isAriaHidden:H&&R&&D,isFlipped:H,isHidden:L,itemId:g,labels:y,lessonId:E,media:v,onFlip:n,onReady:o,prefersKeyboardNavigation:x,settingShowHint:S,side:"front",size:T,tag:c3,type:C}),(0,s.jsx)(Gs,{activeIndex:a,allowTabNavigation:i,blockId:m?.id,blockType:N,description:l,index:b,isActiveSide:H,isAriaHidden:!H&&R&&D,isFlipped:H,isHidden:L,itemId:g,labels:y,lessonId:E,media:u,onFlip:n,onReady:o,prefersKeyboardNavigation:x,settingShowHint:S,side:"back",size:T,tag:UB,type:d})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(_t,this.handleNavEvent)}componentDidUpdate(e,n){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:i}}=this;!n.hasFlippedOnce&&i&&a({id:r}),e.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener(_t,this.handleNavEvent)}handleNavEvent=e=>{const{path:n}=e.detail,{cardId:o}=Qa(n,["block","card"]);if(o===this.props.id){let r=!1;n.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!lh(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=e=>{const{block:n,dispatch:o,index:r}=this.props,a=window.getSelection(),i=a.toString()&&this.cardRef.current?.contains(a.anchorNode);if(e.detail>1&&a.empty(),e&&e.target.closest("a")||i)return;const l=!this.state.flipped;this.setState({areSidesReady:!1,flipped:l,hasFlippedOnce:!0});const u=l?"back":"front",d=n.items?.[r],m=d?.[u]?.media,p=`items:${n?.id}/items:${d?.id}/${u}`;o(xr({audioPlayerId:io({refs:p}),transcriptMedia:m})),this.props.onFlip?.(this.props.index,l)};handleTouchEnd=e=>{e.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const i3=(0,ws.Ls)()(Od(Xt(VB))),Ii=ne("flashcard-side"),Lu=ne("flashcard-side-flip");class ma extends h.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:ma.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,dm.uniqueId)("flashcard-side")}state=ma.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:i,index:l,itemId:u,media:d,isActiveSide:m,isAriaHidden:p,isFlipped:f,labels:v,lessonId:C,onFlip:g,prefersKeyboardNavigation:b,settingShowHint:L,side:y,size:E,style:x,type:S},refDescription:T,refDescriptionBottom:N,refSide:j,state:{isAtLongOverflowBottom:O,isLong:D,isLongOverflow:B,isTooltipVisible:R,scrollbarWidthOffset:H}}=this,w=y==="front",M=y==="back",z=E==="small",Z=E==="large",Y=S==="description",X=S==="fullimage",pe=S==="image",Le=w?v?.a11yBlockFlashcardFront:v?.a11yBlockFlashcardBack,ke=`items:${o?.id}/items:${u}/${w?"front":"back"}`,Be=Ii({back:M,flipped:f,front:w,fullimage:X}).mix(r),{image:We,audio:De}=i(d)??{},Ae=Ii("content",{small:z,large:Z,front:w,fullimage:X,image:pe,"long-overflow":B,"long-overflow-bottom":O,"has-audio":!!De}),he=Lu({"audio-expansion":!0}),le=Lu("btn",{"visually-hidden":!L,"prefers-keyboard":b,round:!0}),He=Lu("icon"),Pe=Lu("tooltip",{visible:R}),Ke=Ii("img",{small:z,large:Z,centered:pe,full:X}),Fe=Ii("description",{"has-audio":!!De,long:D&&!B,"long-overflow":B,short:!D,large:Z}),ut=Ii("description-bottom"),dt=H==null?void 0:{right:H},xt=We?.alt??`Image ${l+1}`,Jt=(0,Gt.ME)(We),zt=`${this.id}-click-to-flip-text`,Zn=`${this.id}-image`,ho=`${this.id}-description`;return(0,s.jsxs)("div",{"aria-label":Le,className:Be,inert:p,ref:j,role:"group",style:x,tabIndex:-1,children:[(0,s.jsxs)("div",{className:Ae,children:[(0,s.jsxs)("div",{className:he,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:dt,children:[(0,s.jsx)("button",{"aria-labelledby":`${zt} ${ho} ${Zn}`,className:le,id:`${u}-${l}-${y}-flip-btn`,onBlur:this.handleBtnBlur,onClick:g,onFocus:this.handleBtnFocus,tabIndex:n&&m?0:-1,type:"button",children:(0,s.jsx)(O8,{className:He})}),(0,s.jsx)("div",{"aria-hidden":"true",className:Pe,id:zt,onClick:pr,children:v?.blocksClickToFlip})]}),(X||pe)&&(0,s.jsx)($B,{alt:xt,className:Ke,imageId:Zn,l10nId:(0,Et.pP)(d),url:Jt}),Y&&(0,s.jsxs)("div",{className:Fe,ref:T,tabIndex:m&&B?0:void 0,children:[(0,s.jsx)(St,{allowTabNavigation:n&&!p,id:ho,value:a}),B&&(0,s.jsx)("div",{className:ut,ref:N})]})]}),De&&(0,s.jsx)("div",{className:Ii("audio-player",{text:Y,image:pe}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,s.jsx)(sn,{activeIndex:e,blockId:o.id,index:`${u}-${l}-${y}`,isOverlayAudio:X,item:{id:u,media:d},itemIndex:l,labels:v,lessonId:C,media:d,refs:ke,renderMediaType:"audio",shouldPause:!m,side:y})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=yu()(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:i,isHidden:l,onReady:u,type:d}}=this;e.isHidden&&!l&&this.checkDescriptionSize(this.props),e.isFlipped!==a&&(i&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{u()},700)):clearTimeout(this.readyTimeout)),d==="description"&&this.handleUpdatesDescription(e,n),r==="stack"&&i&&!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=>{un(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}=ma.descriptionActionTypes,{props:{description:a,size:i,type:l,getL10nValue:u},state:{descriptionAction:d,isLong:m,isLongOverflow:p}}=this,f=u(a)?.length||0,v=u(e.description)?.length||0;d!==o&&f>v?this.setState({descriptionAction:o}):d!==r&&f<v?this.setState({descriptionAction:r}):(d!==n.descriptionAction||m!==n.isLong||p!==n.isLongOverflow||i!==e.size||l!==e.type||f!==v)&&this.checkDescriptionSize(e)};checkDescriptionSize=e=>{const{DELETING:n}=ma.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:i,isLongOverflow:l}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?i&&!l?this.setState({isLongOverflow:!0}):!i&&!l&&this.setState({isLong:!0}):(a===n||o!==e.size)&&this.setState(ma.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 c3=(0,ws.Ls)()(Od(Xt(t=>(0,s.jsx)(ma,{...t})))),UB=t=>{const{cardMode:e,customBackgroundColorContrast:n}=tn(),o=(0,Ce.DX)()?.theme,r=Dd(),a=Ro(),l=a===k.xj.IMAGE&&r?.overlayColor===k.df.LIGHT,u=bn(),d=o?.accentContrast,m=d===k.Em.AUTO,p=(0,h.useMemo)(()=>{let v="#fafafa";if(e===Fn.TRANSPARENT)switch(a){case k.xj.DARK:v="#525252";break;case k.xj.BLACK:v="#1a1a1a";break;case k.xj.IMAGE:l?v="rgba(0, 0, 0, 0.7)":v="rgba(255, 255, 255, 0.7)";break;case k.xj.ACCENT:case k.xj.COLOR:case k.xj.TINT:{let b=0;switch((0,mt.XC)(u)){case mt.lL.LIGHT:b=.5;break;case mt.lL.MED:b=-.35;break;case mt.lL.DARK:b=-.65;break;case mt.lL.NEAR_BLACK:b=.1;break}v=(0,mt.W8)(b,u)}}const C={"--color-background":v},g=a===k.xj.COLOR?n:d;if((a===k.xj.ACCENT||a===k.xj.COLOR)&&e===Fn.TRANSPARENT&&m){const b=Os({backgroundColor:v,contrast:g});C["--color-text"]=b}return C},[u,a,e,n,m,l,d]),f={...t,style:p};return(0,s.jsx)(c3,{...f})},$B=({alt:t,className:e,imageId:n,l10nId:o,url:r})=>{const a=(0,Ys.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 WB 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,initiallyVisible:o,isHidden:r,isLearner:a,items:i,labels:l,lessonId:u,onStep:d,previewType:m,isRTL:p,settings:f,stack:v}=this.props,{activeIndex:C}=this.state,{prefersKeyboardNavigation:g}=this.state,{entranceAnimation:b,showHint:L}=f,y=W()("block-flashcards",{"block-flashcard--column":!v,"block-flashcard--stack":v,"block-flashcards--no-animation":!b}),x=f.flashcardSize==="1"?"small":f.flashcardSize==="2"?"large":i.length>2?"small":"large",S=m===lt.o4.MOBILE_PORTRAIT||m===lt.o4.MOBILE_LANDSCAPE;return(0,s.jsx)(Pt,{className:y,children:v?(0,s.jsx)(Dt,{animateBlockEntrance:n,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{className:"block-flashcard-carousel",children:(0,s.jsx)(mu,{blockId:e,items:i,children:({carouselRef:T})=>(0,s.jsx)(uu,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:p,labelCarousel:l?.a11yBlockFlashcardStack,labelCarouselRoleDesc:l?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:l?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:l?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:l?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:l?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlideCounterPreposition:l?.blocksPreposition,labelSlidePreposition:l?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:l?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),ref:T,shouldMouseEmulateTouch:S,shouldUseCounter:!0,shouldUseGoToSlide:!1,children:i.map((N,j)=>(0,s.jsx)(i3,{activeIndex:C,backDescription:N?.back?.description,backMedia:N?.back?.media,backType:N?.back?.type,frontDescription:N?.front?.description,frontMedia:N?.front?.media,frontType:N?.front?.type,id:N?.id,index:j,labels:l,lessonId:u,onFlip:this.handleFlip.bind(this),onStep:d,prefersKeyboardNavigation:g,settingShowHint:L,size:"large",type:"stack",wrapElement:"div"},N?.id))})})})}):(0,s.jsx)(Dt,{animateBlockEntrance:n,className:"block-flashcards__animation",initiallyVisible:o,isLearner:a,siblingDelay:.25,children:(0,s.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:i.map((T,N)=>(0,s.jsx)(i3,{activeIndex:C,backDescription:T?.back?.description,backMedia:T?.back?.media,backType:T?.back?.type,blockId:e,frontDescription:T?.front?.description,frontMedia:T?.front?.media,frontType:T?.front?.type,id:T?.id,index:N,isHidden:r,labels:l,lessonId:u,onStep:d,prefersKeyboardNavigation:g,settingShowHint:L,size:x,type:"grid",wrapElement:"li",wrapRole:"listitem"},T?.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&&!wL(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}=this.props,{flipStateMap:r}=this.state,a=r[e]?"back":"front",i=n.items?.[e],l=i?.[a]?.media,u=`items:${n?.id}/items:${i?.id}/${a}`;o(xr({audioPlayerId:io({refs:u}),transcriptMedia:l})),this.setState({activeIndex:e})}}const l3=(0,ws.Ls)()(Xh(Xt(Od(WB)))),d3=({canProceed:t,isReduceMotion:e,onNext:n,onSubmit:o,quizNext:r,quizSubmit:a,allowNext:i=!1})=>{const l=t?!0:void 0,u=t?void 0:o,d=t?-1:void 0,m=t?void 0:!0,p=t?n:void 0,f=t?void 0:-1,v=(0,h.useRef)(null),C=(0,Me.A)(t);(0,h.useEffect)(()=>{i&&!C&&t&&setTimeout(()=>{v.current?.focus?.({preventScroll:e})},0)},[i,t,e,C]);const g=W()("quiz-card__actions",{"quiz-card__actions--proceed":t}),b=W()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-always":!t});return(0,s.jsxs)("div",{className:g,children:[(0,s.jsx)("div",{className:"quiz-card__submit brand--ui",children:!l&&(0,s.jsx)("button",{className:"quiz-card__button","data-testid":"quiz-submit-button",onClick:u,tabIndex:d,type:"button",children:a})}),(0,s.jsx)("br",{className:"visually-hidden-always",role:"presentation"}),i&&(0,s.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,s.jsx)("button",{"aria-disabled":m,"aria-hidden":m,className:b,"data-testid":"quiz-next-button",onClick:p,ref:v,tabIndex:f,type:"button",children:r})})]})},GB=({children:t,isActive:e,isComplete:n,isTimedQuiz:o,style:r})=>(0,s.jsx)("div",{"aria-hidden":e?void 0:!0,className:KB({isActive:e,isComplete:n,isTimedQuiz:o}),"data-testid":"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})})})}),KB=({isActive:t,isComplete:e,isTimedQuiz:n})=>W()("quiz-card",{"quiz-card--active":t,"quiz-card--done":e,"quiz-card--timed":n}),u3=GB;var um=c(62850),vt=c(87549);const{FILL_IN_THE_BLANK:h3,MATCHING:_B,MULTIPLE_CHOICE:QB,MULTIPLE_RESPONSE:ZB}=vt.UQ;function YB({answers:t},e){return t.map(n=>e(n?.title)).filter(Boolean).join(", ")}function XB({answers:t,correct:e},n){const o=e!=null?(0,um.propEq)("id",e):(0,um.propEq)("correct",!0);return n(t.find(o)?.title)}function JB({answers:t,selection:e},n){return n(t?.[e]?.title)}function m3(t,e,n){return e.filter(t).reduce((o,r,a)=>{const i=n(r?.title)??"";return a===0?i:o+", "+i},"")}function qB({corrects:t,answers:e},n){return m3(r=>Array.isArray(t)?t.includes?.(r.id):r.correct,e,n)}function eH({answers:t,selection:e},n){return m3((r,a)=>e.includes(a),t,n)}function tH({answers:t,getL10nValue:e,selection:n,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:i}){const l=(0,um.invertObj)(n);return t.map((u,d)=>{const m=e(u?.title)??"",p=e(u?.matchTitle)??"",f=l?.[d],v=e(t?.[f]?.title)??"";return i===vt.iV.INCORRECT?a+p+". "+r+": "+v+".":a+p+". "+o+": "+m+". "+r+": "+v+"."}).join(" ")}function hm({correctAnswer:t,selectedAnswer:e,correctLabel:n,userLabel:o,revealAnswers:r}){return!t||!e||r===vt.iV.NONE?"":r===vt.iV.INCORRECT?o+": "+(0,so.QZ)(e)+".":n+": "+(0,so.QZ)(t)+". "+o+": "+(0,so.QZ)(e)+"."}function sH({item:t,labels:e}){return t.type===h3?e?.quizAcceptableResponses:e?.a11yCorrectLive}function nH({getL10nValue:t,isComplete:e,item:n,selection:o,labels:r,revealAnswers:a}){if(!n||!e)return null;const i=n?.answers??[],l=n?.correct,u=n?.corrects,d=sH({item:n,labels:r}),m=r?.a11yAnswerLive;switch(n.type){case _B:return tH({getL10nValue:t,answers:i,selection:o,correctLabel:d,userLabel:m,revealAnswers:a});case h3:return hm({correctAnswer:YB({answers:i},t),selectedAnswer:o,correctLabel:d,userLabel:m,revealAnswers:a});case QB:return hm({correctAnswer:XB({answers:i,correct:l},t),selectedAnswer:JB({answers:i,selection:o},t),correctLabel:d,userLabel:m,revealAnswers:a});case ZB:return hm({correctAnswer:qB({corrects:u,answers:i},t),selectedAnswer:eH({answers:i,selection:o},t),correctLabel:d,userLabel:m,revealAnswers:a})}return null}const p3=({canProceed:t,feedbackRef:e,feedbackValue:n,isActive:o,isComplete:r,isCorrect:a,item:i,labels:l,quizCorrect:u,quizIncorrect:d,revealAnswers:m,selection:p})=>{const{announcePolite:f,clearAnnouncements:v}=pt(),C=(0,Me.A)(t),g=(0,at.gY)(),L=!!(0,at.QQ)(n),y=a?u:d,E=(0,h.useCallback)(()=>{const T=nH({getL10nValue:g,isComplete:r,item:i,labels:l,revealAnswers:m,selection:p}),N=n?(0,so.QZ)(g(n)):"",j=y+". "+T+" "+N;let O;return j&&(O=setTimeout(()=>{f(j)},250)),()=>{clearTimeout(O)}},[f,n,g,r,i,l,y,m,p]);(0,h.useLayoutEffect)(()=>{!C&&t&&m!==vt.iV.NONE&&E()},[t,C,E,m]),(0,h.useEffect)(()=>v,[v]);const x=W()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":L}),S=W()("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:x,ref:e,children:(0,s.jsx)("div",{className:"quiz-card__main--feedback",children:(0,s.jsxs)("div",{"aria-label":l?.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:y}),n&&(0,s.jsx)("div",{children:(0,s.jsx)(St,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:n})})]})})})})},{FILL_IN_THE_BLANK:oH}=vt.UQ,rH=({children:t,type:e})=>(0,s.jsx)("div",{className:aH({type:e}),children:t}),aH=({type:t})=>W()("quiz-card__interactive",{"quiz-card__interactive--no-border":[oH].includes(t)}),f3=rH;var iH=c(34666),cH=c.n(iH),lH=c(69237),dH=c.n(lH),uH=c(25146),hH=c.n(uH),mH=c(6087),pH=c.n(mH);const fH=or()((t,e)=>Kh()(hH()(null),pH()(t,e))),vH=({allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:l,settings:u})=>(0,s.jsx)("div",{className:"quiz-card__media",children:(0,s.jsx)(sn,{allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:l,opts:u})}),gH=Kh()(dH()(["tmp"]),gt()({},["media"])),CH=cH()(gH,Ov),xH=Ih()(CH,Ov),Er=fH(xH,vH),bH=(t,e)=>{const n=mn(),o=(0,Me.A)(e);(0,h.useEffect)(()=>{!o&&e&&t&&jc()(t.focus)&&t.focus({preventScroll:n})},[e,n,o,t])},Eu=ne("question-counter"),yH=({isActive:t=!1,labels:e,questionLabel:n,questionNumber:o,totalQuestions:r})=>{const a=(0,h.useRef)(null);bH(a.current,t);const i=`${e?.quizQuestion} ${o} ${e?.lessonPreposition} ${r}`,l=`${Uv(o)}/${Uv(r)}`;return(0,s.jsx)("div",{className:Eu(),children:(0,s.jsxs)("h1",{"aria-label":i,className:Eu("heading"),ref:a,tabIndex:-1,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:Eu("label"),children:n}),(0,s.jsx)("span",{"aria-hidden":"true",className:Eu("count"),children:l})]})})},LH=ne("question-title"),EH=({allowTabNavigation:t,htmlId:e,value:n})=>(0,s.jsx)(St,{allowTabNavigation:t,className:LH(),"data-testid":"quiz-question-title",id:e,value:n}),SH=({allowTabNavigation:t,correctAnswerColor:e,correctAnswerColorContrast:n,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:i,isCorrect:l,labels:u,onEnterToSubmit:d=Function.prototype,onChange:m=Function.prototype,options:p,questionHtmlId:f,quizAcceptableResponses:v,quizAnswerPlaceholder:C,revealAnswers:g,value:b})=>{const L=(0,h.useRef)(null),[y]=(0,h.useState)(()=>Zt()("fitb-")),E=(0,at.gY)(),x=TH({options:p,getL10nValue:E}),S=`${y}-feedback`,T=`${y}-acceptable`,N=`${y}-input`,j=i?`${S} ${T}`:o||void 0,O=i?void 0:C,D=t?0:Hd,B=g===vt.iV.ALL||g===vt.iV.INCORRECT,R=g===vt.iV.ALL||l&&g===vt.iV.INCORRECT,H=l?e:r,M=e&&r&&{"--fa-primary-color":Os({backgroundColor:H,contrast:l?n:a}),"--fa-secondary-color":H},z=r&&{backgroundColor:Os({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},Z=W()("quiz-fill__icon",{"quiz-fill__icon--visible":i}),Y=W()("quiz-fill__options",{"quiz-fill__options--visible":i}),X=(0,h.useCallback)(Be=>{m(Be.currentTarget.value)},[m]),pe=(0,h.useCallback)(Be=>{ea(Be)&&d(Be)},[d]),Le=i?void 0:X,ke=i?void 0:pe;return(0,s.jsxs)("div",{className:"quiz-fill",children:[(0,s.jsxs)("div",{className:"quiz-fill__container",children:[(0,s.jsx)("input",{"aria-describedby":j,"aria-hidden":!t,"aria-invalid":o?!0:void 0,"aria-labelledby":f,"aria-readonly":i,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:N,onChange:Le,onKeyDown:ke,placeholder:O,readOnly:i,ref:L,tabIndex:D,type:"text",value:b}),B&&(0,s.jsxs)("div",{className:Z,id:S,children:[l&&(0,s.jsx)(it,{"aria-label":u?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...M}}),!l&&(0,s.jsx)(y7,{"aria-label":u?.quizIncorrect,style:z})]})]}),R&&i&&(0,s.jsx)("div",{className:Y,id:T,children:(0,s.jsx)(St,{value:`${v}: ${x}`})})]})},TH=({options:t,getL10nValue:e})=>t.map(o=>(e(o.title)??"").trim()).join(", "),v3=SH;function IH({correctAnswerColor:t,correctAnswerColorContrast:e}){const n=(0,Ce.vU)(),o=Os({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)(it,{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 Ni=c(15648);function NH({correctAnswerValue:t,incorrectAnswerColor:e,incorrectAnswerColorContrast:n,shouldRevealCorrectAnswer:o}){const[r,a]=Ni.useState(!0),[i,l]=Ni.useState(!1),u=Ni.useRef(null),m=`matching-text-${Ni.useId()}`,p=(0,Ce.vU)(),f=(0,Me.A)(t),v=Ni.useCallback(()=>{a(x=>!x)},[]);Ni.useLayoutEffect(()=>{if(f!==t){const x=u.current;x!=null&&x.scrollWidth>x.clientWidth&&l(!0)}},[f,t]);const C=Os({backgroundColor:e,contrast:n}),g=e?{"--fa-primary-color":C,"--fa-secondary-color":e}:void 0,b=W()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),L=W()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),y=W()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),E=W()("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)(it,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:g}),!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,"."]}),i&&(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:v,type:"button",children:(0,s.jsx)(it,{className:L,name:"caret-down",style:g})}),(0,s.jsx)("span",{className:y,children:(0,s.jsxs)("span",{className:E,id:m,ref:u,children:[p?.quizCorrect,": ",(0,s.jsx)(bs,{value:t})]})})]})})]})}function jH({col1Id:t,col1Value:e,col2Id:n,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:i,height:l,incorrectAnswerColor:u,incorrectAnswerColorContrast:d,revealAnswers:m}){const p=t===n,f=m!=="incorrect",v=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:l?{height:l}: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)(bs,{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)(bs,{value:o})})})]})]}),v&&p&&(0,s.jsx)(IH,{correctAnswerColor:r,correctAnswerColorContrast:a}),v&&!p&&(0,s.jsx)(NH,{correctAnswerValue:i,incorrectAnswerColor:u,incorrectAnswerColorContrast:d,shouldRevealCorrectAnswer:f})]})}function kH({answers:t,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:i,revealAnswers:l,rows:u}){return(0,s.jsx)("div",{className:"matching-results",children:(0,s.jsx)("ul",{className:"matching-results-list",role:"list",children:u.map((d,m)=>{const[p,f]=d,v=e==="freezeFirst"?t.find(C=>C.id===p.id)?.matchTitle:t.find(C=>C.id===f.id)?.title;return(0,s.jsx)(jH,{col1Id:p.id,col1Value:p.value,col2Id:f.id,col2Value:f.value,correctAnswerColor:n,correctAnswerColorContrast:o,correctAnswerValue:v,height:i,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:l},m)})})})}function AH(t){return Object.keys(t).length===0}function RH(t,e){return e in t}function PH(t,e){return Object.values(t).includes(e)}function mm(t,e){for(const n in t)if(t[n]===e)return n}function wH(t,e,n){return{...t,[e]:n}}function Su(t,e){return e in t?(0,no.QD)(t,[e]):t}function MH(t,e){const n=mm(t,e);return n===void 0?t:Su(t,n)}function g3(t,e,n){let o=Su(t,e);return o=MH(o,n),wH(o,e,n)}function OH(t){return Object.keys(t).length}var DH=c(88121),pm=c.n(DH);pm().dynamicDrop(!0),pm().pointerMoveTolerance(8);const Do=pm();var ji=c(15648);function BH(t,{onStart:e,onMove:n,onEnd:o,isEnabled:r=!0}){const a=ji.useRef({x:0,y:0}),i=ji.useRef({x:0,y:0}),l=ji.useRef(!1),u=ji.useRef(null),d=ji.useRef(void 0);ji.useEffect(()=>{const m=t.current;if(!m||!r||l.current)return;u.current=CL(m);function p(){const f=u.current;return f instanceof Window?{x:window.scrollX,y:window.scrollY}:{x:f.scrollLeft,y:f.scrollTop}}return d.current=()=>{const f=p(),v=f.x-i.current.x,C=f.y-i.current.y;(v!==0||C!==0)&&(a.current.x+=v,a.current.y+=C,t.current&&(t.current.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,n?.({...a.current})),i.current=f)},Do(m).draggable({inertia:!1,autoScroll:{container:u.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},i.current=p(),u.current?.addEventListener("scroll",d.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="",u.current?.removeEventListener("scroll",d.current),setTimeout(()=>{o?.()},0)}}}),l.current=!0,()=>{Do(m).unset(),u.current?.removeEventListener("scroll",d.current),l.current=!1}},[t,e,n,o,r])}var C3=c(15648);function HH(t,{isEnabled:e=!0,onDrop:n,onEnter:o,onLeave:r,overlap:a=.015}){const i=C3.useRef(!1);C3.useEffect(()=>{const l=t.current;if(!(!l||!e||i.current))return Do(l).dropzone({overlap:a,listeners:{drop:()=>{n?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),i.current=!0,()=>{Do(l).unset(),i.current=!1}},[t,n,o,r,e,a])}var Gn=c(15648);const x3=Gn.memo(function({col:e,height:n,id:o,index:r,isActive:a,isFrozen:i,isMatched:l,isMoved:u,onClick:d,onDragEnd:m,onDragStart:p,onDrop:f,onDropZoneEnter:v,onDropZoneLeave:C,onKeyDown:g,value:b,valueOtherColumnActive:L,valueOtherColumnMatch:y}){const[E,x]=Gn.useState(!1),S=Gn.useRef(null),T=Gn.useRef(null),N=(0,Ce.vU)(),j=Gn.useCallback(()=>{d({col:e,id:o,value:b})},[e,o,d,b]),O=Gn.useCallback(()=>{x(!0),p({col:e,id:o,value:b})},[e,o,p,b]),D=Gn.useCallback(()=>{m(),x(!1)},[m]),B=Gn.useCallback(()=>{f({col:e,id:o,value:b})},[e,o,f,b]),R=Gn.useCallback(()=>{v({col:e,id:o,value:b})},[e,o,v,b]),H=Gn.useCallback(()=>{C()},[C]),w=Gn.useCallback(X=>{g(X,{col:e,index:r})},[e,r,g]);Gn.useEffect(()=>{e===1&&r===0||T.current?.setAttribute("tabindex","-1")},[]),BH(S,{isEnabled:!i,onStart:O,onEnd:D}),HH(S,{isEnabled:i,onDrop:B,onEnter:R,onLeave:H});const M=W()("matching-interaction-piece",{"matching-interaction-piece--matched":l,"matching-interaction-piece--moved":u}),z=y==null?null:(0,s.jsxs)(s.Fragment,{children:[N?.a11yMatchingItemMatchedWith," ",(0,s.jsx)(bs,{value:y})]}),Z=L==null?(0,s.jsx)(s.Fragment,{children:N?.a11yMatchingItemSelectableItem}):(0,s.jsxs)(s.Fragment,{children:[N?.a11yMatchingItemMatchWith," ",(0,s.jsx)(bs,{value:L})]}),Y=W()("matching-interaction-item",{draggable:!i,"draggable--dragging":!i&&E,droppable:i});return(0,s.jsx)("li",{className:Y,ref:S,role:"listitem",children:(0,s.jsxs)("button",{"aria-pressed":a||l?!0:void 0,className:M,"data-state":a?"active":void 0,onClick:E?void 0:j,onKeyDown:w,ref:T,style:n?{height:n}:void 0,type:"button",children:[i?(0,s.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,s.jsx)(it,{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)(bs,{value:b})})}),(0,s.jsx)("span",{className:"visually-hidden-always",children:z}),(0,s.jsx)("span",{className:"visually-hidden-always",children:Z})]},o)})});var Wt=c(15648);function FH({answers:t,columnBehavior:e,isActive:n,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:i,onChangeRows:l,prefersKeyboardNavigation:u}){const d=(0,Me.A)(n),m=(0,Me.A)(e),p=(0,Me.A)(t),f=(0,Me.A)(r),v=(0,Ce.vU)(),[C,g]=Wt.useState(void 0),[b,L]=Wt.useState(void 0),[y,E]=Wt.useState(void 0),[x,S]=Wt.useState(!1),T=Wt.useRef(null),N=Wt.useRef(null),j=Wt.useRef(null),O=Wt.useRef(void 0),D=Wt.useRef(void 0),[B,R]=Wt.useState(()=>Tu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),[H,w]=Wt.useState(()=>Tu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})),M=Wt.useMemo(()=>t.map(le=>({col:1,id:le.id,value:le.title})).toSorted((le,He)=>{const Pe=B.get(le.id)??1/0,Ke=B.get(He.id)??1/0;return Pe-Ke}),[t,B]),z=Wt.useMemo(()=>t.map(le=>({col:2,id:le.id,value:le.matchTitle})).toSorted((le,He)=>{const Pe=H.get(le.id)??1/0,Ke=H.get(He.id)??1/0;return Pe-Ke}),[t,H]),Z=Wt.useCallback(()=>{for(const he of T.current?.querySelectorAll('button:not([tabindex="-1"])')??[])he.setAttribute("tabindex","-1")},[]),Y=Wt.useCallback(he=>{const le=Array.from(B),He=Array.from(H);if(e==="freezeSecond"){const Pe=new Array(He.length),Ke=le.map(dt=>dt[0]).filter(dt=>!(dt in he));for(const[dt,xt]of Object.entries(he)){const Jt=H.get(xt);Pe[Jt]=[dt,Jt]}for(let dt=0;dt<Pe.length;dt++)if(Pe[dt]==null){const xt=Ke.shift();Pe[dt]=[xt,dt]}const Fe=new Map(Pe),ut=b3(B,Fe);ut.length>0&&L(ut),R(Fe)}else{const Pe=new Array(le.length),Ke=new Set(Object.values(he)),Fe=He.map(xt=>xt[0]).filter(xt=>!Ke.has(xt));for(const[xt,Jt]of Object.entries(he)){const zt=B.get(xt);Pe[zt]=[Jt,zt]}for(let xt=0;xt<Pe.length;xt++)if(Pe[xt]==null){const Jt=Fe.shift();Pe[xt]=[Jt,xt]}const ut=new Map(Pe),dt=b3(H,ut);dt.length>0&&E(dt),w(ut)}},[e,B,H]),X=Wt.useCallback(he=>{O.current=he},[]),pe=Wt.useCallback(()=>{D.current==null&&(O.current=void 0)},[]),Le=Wt.useCallback(he=>{D.current=he},[]),ke=Wt.useCallback(()=>{D.current=void 0},[]),Be=Wt.useCallback(he=>{const le=O.current;if(le!=null){const He=he.col===1?he.id:le.id,Pe=he.col===1?le.id:he.id,Ke=g3(r,He,Pe);O.current=void 0,D.current=void 0,a(Ke)}},[r,a]),We=Wt.useCallback(he=>{let le=null,He=!1,Pe=C;if(he.col===1&&he.id in r)le=Su(r,he.id),Pe=null;else if(he.col===2&&mm(r,he.id)){const Ke=mm(r,he.id);le=Su(r,Ke),Pe=null}else C==null&&(Pe={col:he.col,id:he.id,value:he.value},He=!0);if(C!=null)if(C.col===he.col)C.id===he.id?Pe=null:Pe={col:he.col,id:he.id,value:he.value};else{const Ke=he.col===1?he.id:C.id,Fe=he.col===1?C.id:he.id;le=g3(r,Ke,Fe),He=!0,Pe=null}if(le!=null&&a(le),C!==Pe&&g(Pe),He){const Fe=(he.col===1?j:N).current?.querySelector('button:not([aria-pressed="true"])');Fe&&(Z(),Fe.removeAttribute("tabindex"),Fe.focus({preventScroll:!u}))}},[u,C,r,a,Z]),De=Wt.useCallback((he,{col:le,index:He})=>{const Pe=he.currentTarget;let Ke=!1,Fe=null;switch(he.key){case"ArrowUp":Ke=!0,Fe=Pe.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":Ke=!0,Fe=Pe.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":Ke=!0,Fe=le===1?j.current?.children[He]?.firstElementChild:void 0;break;case"ArrowLeft":Ke=!0,Fe=le===2?N.current?.children[He]?.firstElementChild:void 0;break;case"Home":Ke=!0,Fe=Pe.closest("ul").firstElementChild.firstElementChild;break;case"End":Ke=!0,Fe=Pe.closest("ul").lastElementChild.firstElementChild;break}Ke&&(he.preventDefault(),he.stopPropagation()),Fe&&(Z(),Fe.removeAttribute("tabindex"),Fe.focus())},[Z]);Wt.useEffect(()=>{r!==f&&!AH(r)&&Y(r)},[Y,r,f]),Wt.useEffect(()=>{const he=({shouldFocus:Pe})=>{const Ke=C.col===1?N:j;Z();const Fe=Ke.current.querySelector('button[data-state="active"]');Fe?.removeAttribute("tabindex"),Pe&&Fe?.focus(),g(null)},le=Pe=>{T.current?.contains(Pe.target)||he({shouldFocus:!1})},He=Pe=>{un(Pe)&&C!=null&&he({shouldFocus:!0})};return C==null?(document.removeEventListener("mousedown",le),document.removeEventListener("keydown",He)):(document.addEventListener("mousedown",le),document.addEventListener("keydown",He)),()=>{document.removeEventListener("mousedown",le),document.removeEventListener("keydown",He)}},[C,Z]);const Ae=Wt.useCallback(()=>{const he=Array.from(T.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]")??[]);if(he.length===0)return;const le=he[0].closest("button");let He=0,Pe;if(le){const Fe=window.getComputedStyle(le),ut=parseFloat(Fe.paddingBlockStart)+parseFloat(Fe.paddingBlockEnd),dt=parseFloat(Fe.borderTopWidth)+parseFloat(Fe.borderBottomWidth);He=ut+dt,Pe=parseFloat(Fe.minHeight)}const Ke=he.reduce((Fe,ut)=>Math.max(Fe,ut.scrollHeight+He),0);Pe&&Pe>=Ke?i(void 0):i(Ke)},[i]);return Wt.useEffect(()=>{(!d&&n||p!==t)&&Ae()},[d,n,t,p,Ae]),Wt.useEffect(()=>{const he=T.current?.closest(".quiz-card");let le;return he!=null&&(le=new ResizeObserver(()=>{Ae()}),le.observe(he)),()=>{he!=null&&le!=null&&le.unobserve(he)}},[Ae]),Wt.useEffect(()=>{let he,le;return b&&(he=setTimeout(()=>{L(void 0)},1e3)),y&&(le=setTimeout(()=>{E(void 0)},1e3)),()=>{clearTimeout(he),clearTimeout(le)}},[b,y]),Wt.useEffect(()=>{x&&m!==e&&(a({}),Y({}),g(void 0),R(Tu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),w(Tu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})))},[x,e,m,t,a,Y]),Wt.useEffect(()=>{if(M.length<=0)return;const he=M.map((le,He)=>[le,z[He]]);l(he)},[M,z,l]),Wt.useEffect(()=>{S(!0)},[]),(0,s.jsxs)("div",{className:"matching-interaction","data-testid":"matching-interaction",ref:T,children:[(0,s.jsx)("ul",{"aria-label":v?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1","data-col":"1",ref:N,role:"list",children:M.map((he,le)=>{const He=RH(r,he.id);return(0,s.jsx)(x3,{col:1,height:o,id:he.id,index:le,isActive:C?.col===1&&C?.id===he.id,isFrozen:e==="freezeFirst",isMatched:He,isMoved:b?.map(Pe=>Pe.id).includes(he.id)??!1,onClick:We,onDragEnd:pe,onDragStart:X,onDrop:Be,onDropZoneEnter:Le,onDropZoneLeave:ke,onKeyDown:De,value:he.value,valueOtherColumnActive:C?.col===2?C?.value:void 0,valueOtherColumnMatch:He?z[le]?.value:void 0},he.id)})}),(0,s.jsx)("ul",{"aria-label":v?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2","data-col":"2",ref:j,role:"list",children:z.map((he,le)=>{const He=PH(r,he.id);return(0,s.jsx)(x3,{col:2,height:o,id:he.id,index:le,isActive:C?.col===2&&C?.id===he.id,isFrozen:e==="freezeSecond",isMatched:He,isMoved:y?.map(Pe=>Pe.id).includes(he.id)??!1,onClick:We,onDragEnd:pe,onDragStart:X,onDrop:Be,onDropZoneEnter:Le,onDropZoneLeave:ke,onKeyDown:De,value:he.value,valueOtherColumnActive:C?.col===1?C?.value:void 0,valueOtherColumnMatch:He?M[le]?.value:void 0},he.id)})})]})}const Tu=({answers:t,columnBehavior:e,columnBehaviorToShuffle:n})=>{let o=t.map(r=>r.id);return e===n&&(o=(0,dm.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function b3(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 Iu=c(15648);function y3({columnBehavior:t="freezeSecond",...e}){const[n,o]=Iu.useState([]),[r,a]=Iu.useState(void 0),i=Iu.useCallback(u=>{o(u)},[]),l=Iu.useCallback(u=>{a(u)},[]);return e.isComplete?(0,s.jsx)(kH,{...e,columnBehavior:t,itemHeight:r,rows:n}):(0,s.jsx)(FH,{...e,columnBehavior:t,itemHeight:r,onChangeItemHeight:l,onChangeRows:i})}function L3(t){return t==null||t===-1}function zH(t,e){return t===e}const VH=({allowTabNavigation:t,color:e,correctId:n,errorMessageId:o,isComplete:r,isCorrect:a,isReduceMotion:i,labels:l,onChange:u,onEnterToSubmit:d,options:m=[],questionHtmlId:p,renderOptionText:f,isRetaking:v,revealAnswers:C,selectedIndex:g,shouldFocusFirst:b,onFocusFirstComplete:L})=>{const y=L3(g);return(0,s.jsx)(hu,{"aria-invalid":o?!0:void 0,"aria-labelledby":[p,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:m.map((E,x,S)=>(0,s.jsx)(UH,{allowTabNavigation:t,color:e,id:E.id,index:x,isComplete:r,isCorrect:a,isCorrectOption:n===E.id,isFirst:x===0,isFresh:y,isLast:x===S.length-1,isReduceMotion:i,isRetaking:v,isSelected:!v&&zH(g,x),labels:l,onChange:u,onEnterToSubmit:d,onFocusFirstComplete:L,questionHtmlId:p,renderOptionText:f,revealAnswers:C,shouldFocusFirst:b,title:E.title},E.id))})},UH=({allowTabNavigation:t,color:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isFresh:l,isSelected:u,isReduceMotion:d,labels:m,onChange:p,onEnterToSubmit:f,questionHtmlId:v,renderOptionText:C,isRetaking:g,revealAnswers:b,shouldFocusFirst:L,onFocusFirstComplete:y,title:E})=>{const[x]=(0,h.useState)(()=>Zt()("qmc-")),S=(0,h.useRef)(null),T=(0,Me.A)(u),N=!!r,j=t&&(u||l&&o===0)?0:Hd,O=b===vt.iV.ALL,D=b==vt.iV.INCORRECT,B=O||D&&a,R=O||D&&a||D&&!a&&u,H=r&&i&&B,w=r&&!i&&R,M=(H||w)&&!g,z=M?`${x}-result`:void 0,Z=W()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":H,"is-incorrect":w,"is-selected":u}),Y=W()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":u&&!r}),X=W()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":H}),pe=W()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":w}),Le=W()("quiz-multiple-choice-option__border"),ke=(0,h.useCallback)(De=>{ea(De)&&f(De)},[f]),Be=(0,h.useCallback)(()=>{p({selectedIndex:o})},[o,p]),We=r?void 0:ke;return(0,h.useEffect)(()=>{t&&S.current&&(!T&&u?S.current.focus({preventScroll:d}):L&&l&&o===0&&(S.current.focus({preventScroll:d}),y?.()))},[t,u,d,T,L,l,o,y]),(0,s.jsxs)("div",{"data-testid":"quiz-card-option",children:[(0,s.jsxs)("label",{"aria-describedby":z,className:Z,ref:S,children:[(0,s.jsx)("input",{checked:u,className:"quiz-multiple-choice-option__input",disabled:N,name:v,onClick:r?void 0:Be,onKeyDown:We,tabIndex:j,type:"radio"}),(0,s.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:e},children:[(0,s.jsx)(nC,{className:Y,dataTestId:u&&!r?"selected-dot-active":"selected-dot"}),(0,s.jsx)(E2,{className:X,"data-testid":H?"correct-check-active":"correct-check"}),(0,s.jsx)(O2,{"aria-hidden":"true",className:pe,dataTestId:w?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,s.jsx)("div",{className:Le}),(0,s.jsx)("div",{className:"quiz-multiple-choice-option__text","data-testid":"quiz-mc-option-text",children:C({optionId:n,title:E})})]}),M&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:z,children:[u&&i&&m?.a11yQuizReviewCorrectlySelected,u&&!i&&m?.a11yQuizReviewIncorrectlySelected,!u&&i&&m?.a11yQuizReviewIncorrectlyUnselected,!u&&!i&&m?.a11yQuizReviewCorrectlyUnselected]})]})},E3=VH;function $H(t){return t.length===0}function WH(t,e){return t.includes(e)}function GH(t,e){return t.includes(e)?t.filter(n=>n!==e):[...t,e]}const KH=({allowTabNavigation:t,correctIds:e=[],errorMessageId:n,isComplete:o,isCorrect:r,labels:a,onChange:i,onEnterToSubmit:l,options:u=[],questionHtmlId:d,renderOptionText:m,isRetaking:p,revealAnswers:f,selectedIndices:v=[]})=>(0,s.jsx)("div",{"aria-labelledby":[d,n].filter(Boolean).join(" "),role:"group",children:(0,s.jsx)("ul",{children:u.map((C,g)=>(0,s.jsx)(_H,{allowTabNavigation:t,errorMessageId:n,id:C.id,index:g,isComplete:o,isCorrect:r,isCorrectOption:e.includes(C.id),isRetaking:p,isSelected:!p&&WH(v,g),labels:a,onChange:i,onEnterToSubmit:l,renderOptionText:m,revealAnswers:f,title:C.title},C.id))})}),_H=({allowTabNavigation:t,errorMessageId:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isSelected:l,labels:u,onChange:d,onEnterToSubmit:m,renderOptionText:p,isRetaking:f,revealAnswers:v,title:C})=>{const[g]=(0,h.useState)(()=>Zt()("qmr-")),b=r&&v===vt.iV.ALL&&!f,L=b?`${g}-result`:void 0,y=!!r,E=t?0:Hd,x=v===vt.iV.ALL,S=v==vt.iV.INCORRECT,T=x||S&&a||S&&!a&&l,N=W()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":l,"quiz-multiple-response-option--correct":r&&i&&T,"quiz-multiple-response-option--incorrect":r&&!i&&T}),j=W()("quiz-multiple-response-option__border"),O=(0,h.useCallback)(R=>{ea(R)&&m(R)},[m]),D=(0,h.useCallback)(()=>{d({optionIndex:o})},[o,d]),B=r?void 0:O;return(0,s.jsxs)("li",{children:[(0,s.jsxs)("label",{"aria-describedby":L,className:N,children:[(0,s.jsx)("input",{"aria-describedby":e||void 0,"aria-invalid":e?!0:void 0,checked:l,className:"quiz-multiple-response-option__input",disabled:y,onChange:r?void 0:D,onKeyDown:B,tabIndex:E,type:"checkbox"}),(0,s.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,s.jsx)(E2,{className:"quiz-multiple-response-option__check"}),(0,s.jsx)(O2,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",overrideStyle:!0,width:"8"})]}),(0,s.jsx)("div",{className:j}),(0,s.jsx)("div",{className:"quiz-multiple-response-option__text",children:p({optionId:n,title:C})})]}),b&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:L,children:[l&&i&&u?.a11yQuizReviewCorrectlyChecked,l&&!i&&u?.a11yQuizReviewIncorrectlyChecked,!l&&i&&u?.a11yQuizReviewIncorrectlyUnchecked,!l&&!i&&u?.a11yQuizReviewCorrectlyUnchecked]})]})},S3=KH;var QH=c(93130),co=c.n(QH),ZH=c(73525),sr=c.n(ZH),YH=c(71802),T3=c.n(YH),XH,JH;const qH=Cs()(It()("correct",!0)),$se=$e()(Jr()(co()(-1),rs()(0)),bo()(It()("correct",!0))),Wse=t=>XH(JH(t),fm),eF=t=>({MATCHING:sr(),FILL_IN_THE_BLANK:vm,MULTIPLE_CHOICE:sr(),MULTIPLE_RESPONSE:sr()})[t],fm=$e()(T3()("id"),qH),tF=$e()(rn(),fm),vm=Cs()(It()("correct",!0)),sF=$e()(Ct()("id"),rn()),Gse={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,s.jsx)(o8,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,s.jsx)(r8,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,s.jsx)(M0,{})},MATCHING:{label:"Matching",icon:(0,s.jsx)(t8,{})}};var nF=c(24639);const{FILL_IN_THE_BLANK:oF,MATCHING:I3,MULTIPLE_CHOICE:rF,MULTIPLE_RESPONSE:aF}=vt.UQ;function N3({type:t,text:e="",matches:n={},answersLength:o=0,selectedIndices:r=[],selectedIndex:a}){switch(t){case oF:return!(0,nF.h)(e);case I3:return OH(n)===o;case aF:return!$H(r);case rF:default:return!L3(a)}}function iF({answered:t=!1,...e}){return t&&e.type!==I3?!1:N3(e)}function j3(t,e){const n=t.trim();return e?n:n.toLowerCase()}function k3({answers:t,text:e,caseSensitive:n=!1,getL10nValue:o}){if(!e)return!1;const r=j3(e,n);return t.some(a=>{const i=o(a.title);return typeof i!="string"?!1:j3(i,n)===r})}function A3(t){return Object.entries(t).every(([e,n])=>e===String(n))}function cF(t){const e=t.answers??[],n=t.correct;if(n!=null)return e.findIndex(r=>r.id===n);const o=e.findIndex(r=>r.correct===!0);return o===-1?0:o}function R3({isCorrectAnswerUnshuffled:t=!1,isShuffled:e=!1,item:n,selectedIndex:o,shuffledAnswerIndices:r}){if(o==null||e&&!Array.isArray(r))return!1;const a=e&&!t?r.indexOf(o):o,i=cF(n);return a===i}function lF(t,e){return e.map(n=>t.indexOf(n))}function dF(t){return typeof t=="object"&&t!==null&&"id"in t?t.id:t}function uF(t){const e=t.answers??[],n=t.corrects??[];return n.length>0?n.map(a=>{const i=dF(a);return e.findIndex(l=>l.id===i)}).filter(a=>a>=0).sort((a,i)=>a-i):e.map((r,a)=>r.correct===!0?a:-1).filter(r=>r>=0).sort((r,a)=>r-a)}function P3(t){return[...t].sort((e,n)=>e-n)}function w3({isShuffled:t=!1,item:e,selectedIndices:n,shuffledAnswerIndices:o}){if(!Array.isArray(n)||t&&!Array.isArray(o))return!1;const r=t?lF(o,n):n,a=uF(e),i=P3(r),l=P3(a);return i.length!==l.length?!1:i.every((u,d)=>u===l[d])}function M3({answers:t,feedback:e,feedbackCorrect:n,feedbackIncorrect:o,feedbackType:r,isCorrect:a,isShuffled:i=!1,selectedIndex:l,shuffledAnswerIndices:u}){switch(r){case"CHOICE":{if(l==null||!t)return;const d=i&&Array.isArray(u)?u.indexOf(l):l;return t[d]?.feedback}case"CORRECT_INCORRECT":return a?n:o;default:return e}}var Kse=c(42161),_se=c(296),Qse=c(94406),hF,mF,O3,pF,fF,vF,gF;const CF=(t,e,n=[])=>{const o=mF(vF("id",t),e),{parentId:r}=o||{},a=o?[o,...n]:n;return r?CF(r,e,a):a},gm="owner",D3="manager",B3="editor",H3=["viewer",B3,D3,gm],Cm=({effectiveRole:t,requiredRole:e})=>{const n=O3(t,H3),o=O3(e,H3);return n>=o},xF=t=>({editor:Cm({effectiveRole:t,requiredRole:B3}),manager:Cm({effectiveRole:t,requiredRole:D3}),owner:Cm({effectiveRole:t,requiredRole:gm})}),Yse=(t,e,n)=>{const{authorId:o}=t,r=o===n,a=l=>r||l,i=bF(e);return fF(pF(["canChangePermissions","canMoveTo"]),hF({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(i)},bF=t=>{const{effectiveRole:e,type:n}=t||[],o=n!==gF?gm:e,{editor:r,manager:a,owner:i}=xF(o);return{canChangePermissions:a,canCreate:r,canDelete:i,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:i}};var yF,LF,el,EF,SF,TF,IF,F3,ki,NF,z3,V3,jF,kF,tl,AF,RF,U3,PF,Nu,wF,MF,$3,OF,W3,DF,BF,Ai;const HF={[vt.UQ.FILL_IN_THE_BLANK]:"fillin",[vt.UQ.MATCHING]:"matching",[vt.UQ.MULTIPLE_CHOICE]:"multiple choice",[vt.UQ.MULTIPLE_RESPONSE]:"multiple response"},Ri="personal",G3="team",Xse=500,Jse={id:null,deleted:!1,type:Ri},qse={id:"deleted",deleted:!0,type:Ri},K3=({questions:t=[],drawnQuestionIds:e=[]})=>{const n=a=>!e.some(i=>i.includes(a.id)),o=t.filter(n),r=Math.floor(Math.random()*o.length);return o[r]??null},FF=t=>e=>e.type===Ri||W3({effectiveRole:e.effectiveRole,requiredRole:t}),zF=({folders:t,requiredRole:e,teamAccount:n})=>Ai(t,$3,z3,ki(o=>FF(e)&&(n||o.type===Ri))),ene=({questionBanks:{folders:t,questionBanks:e},requiredRole:n=DF,teamAccount:o,term:r})=>{if(r&&kF(MF(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+OF(r)+")","i"),i=zF({folders:t,requiredRole:n,teamAccount:o}),l=U3("id",i),u=ki(m=>m.title.match(a)&&!m.deleted,i),d=ki(m=>(tl(m.folderId)||F3(m.folderId,l))&&m.title.match(a)&&!m.deleted,e);return{folders:u,questionBanks:d}},_3=(t,e,n=!1)=>Ai(e,jF(el(!tl(t)),PF(t),RF($3,z3)),wF(Nu("deleted",!n))),VF=(t,e,n,o=!1)=>{const r=t===G3,a=t===Ri,i=Ai(_3(G3,n),U3("id")),l=u=>!tl(u.folderId)&&F3(u.folderId,i);return Ai(e,ki(IF([[el(o),u=>u.deleted],[el(r),u=>!u.deleted&&l(u)],[el(a),u=>!u.deleted&&!l(u)],[el(tl(t)),u=>!u.deleted],[yF,V3]])))},UF=({type:t})=>t===Ri,Q3=({effectiveRole:t})=>W3({effectiveRole:t,requiredRole:BF}),$F=(t,e)=>({id:n})=>n?TF(EF(V3),AF(LF([Nu("folderId",n),Nu("authorId",t)])))(e):!1,WF=(t,e,n,o)=>Ai(_3(e,t),ki(SF([UF,Q3,$F(o,n)]))),GF=(t,e)=>n=>{if(tl(n.folderId))return!0;const o=NF(Nu("id",n.folderId),t);if(!o)return!1;const r=Q3(o),a=n.authorId===e;return r||a},KF=(t,e,n,o,r)=>Ai(VF(t,e,n),ki(GF(o,r))),tne=(t,e,n,o)=>{const r=WF(t,n,e,o),a=KF(n,e,t,r,o);return{folders:r,questionBanks:a}},{FILL_IN_THE_BLANK:Pi,MATCHING:ju,MULTIPLE_CHOICE:ku,MULTIPLE_RESPONSE:Au}=vt.UQ,_F={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},QF=gt()(null,[0,"type"]),xm=mn();class Z3 extends h.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,fillInText:"",matches:{},questionHtmlId:`q-${fu()()}`},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(_t,this.previewOnly__forceShowFeedback),window.addEventListener(G1,this.previewOnly__clearOverrides),this.id=Zt()("kc-")}componentDidUpdate(e,n){n.answered&&!this.state.answered?this.getType()!==Pi&&vh(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(_t,this.previewOnly__forceShowFeedback),window.removeEventListener(G1,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 i=a==="feedbackCorrect",l=o.indexOf("answers"),u=o[l+1],d=l>-1&&typeof u!="string"?u.id:null,m={forceShowFeedback:!0,forceShowFeedbackCorrect:i,forceShowFeedbackMessage:""};if(d&&"answers"in this.props.items[0]){const p=this.props.items[0].answers.find(({id:v})=>v===d),f=p&&"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 Pi:return this.state.fillInText;case ju:return this.state.matches;case Au:return this.state.selectedIndices;case ku:default:return this.state.selectedAnswer}}handleMatchesChange=e=>{this.setState({errorIncomplete:!1,matches:e})};handleMultipleResponseChange({optionIndex:e}){const{selectedIndices:n}=this.state;this.setState({errorIncomplete:!1,selectedIndices:GH(n,e)})}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 Pi:this.wrapper?.querySelector("input")?.focus();break;case Au:case ku:this.wrapper?.querySelector("input")?.focus();break;case ju:default:break}return}a?.preventDefault(),this.setState({answered:!0,isRetaking:!1}),o&&this.props.onStep({id:e})}handleFillIn(e){this.setState({errorIncomplete:!1,fillInText:e})}handleRetake(e){const{blockId:n,lessonId:o,settings:r}=this.props,{id:a}=e;this.setState({isRetaking:!0}),this.retakeAnimationStageOne=setTimeout(()=>{this.setState({answered:!1,chosen:!1,matches:{}},()=>{this.retakeAnimationStageOne=null})},400),this.retakeAnimationStageTwo=setTimeout(()=>{this.setState({fillInText:"",selectedAnswer:null,selectedIndices:[],isRetaking:!1,shouldFocusFirst:!0},()=>{!xm&&this.getType()===Pi&&vh(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&(0,K.JD)((0,Jo.Sw)({blockId:n,itemId:a,lessonId:o}))},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}resetShouldFocusFirst=()=>{this.state.shouldFocusFirst&&this.setState({shouldFocusFirst:!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,isRetaking:r,selectedAnswer:a}=this.state,{blockId:i,enableVideoPlaybackSpeed:l,getL10nValue:u,labels:d,progress:m,renderQuestionTitle:p=this.renderQuestionTitle,settings:f}=this.props,{quizCorrect:v,quizIncorrect:C,quizRequireAnswer:g,quizSubmit:b,quizTakeAgain:L}=d,{id:y,type:E}=e,x=e.type!=="DRAW_FROM_QUESTION_BANK"?e.settings:{},S=u("media"in e?e.media:{}),T=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:e}),N=this.getCanSubmit({item:e}),j=f?.requireCorrectAnswer?T:!0,O=this.onSubmit.bind(this,y,N,j,e),D=this.getFeedback({item:e,isCorrect:T,selectedAnswer:a}),B=this.getSelection({item:e}),{columnBehavior:R,correctAnswerColor:H,correctAnswerColorContrast:w,incorrectAnswerColor:M,incorrectAnswerColorContrast:z}=f,Z=T?H:M,Y=d.knowledgeCheckCorrectAnswerRequiredBlock,X=d.knowledgeCheckRetriesAttemptsRemaining,pe=d.knowledgeCheckMaxRetriesReached,Le=m?.items?.[i]?.items?.[y]?.retryAttemptCount??0,ke=f?.retryCount!==0&&(f?.retryCount==null||f?.retryCount===-1||Le<f?.retryCount),Be=f?.retryCount!=null||f?.retryCount===-1?f?.retryCount-Le:-1,We=!T,De={"--color-feedback-icon":Z,"--color-matching-feedback-bubble-bg":M,"--color-multiple-choice-complete-border":M,"--color-multiple-choice-correct-border":H,"--color-multiple-response-correct-border":H,"--color-multiple-response-incorrect-border":M,"--color-multiple-response-option-check":n?H:void 0,"--color-quiz-option-check":H,"--color-x-fill":M},he=f?.revealCorrectAnswers!==!1&&(f.retryCount==null||f.retryCount===-1||!ke)?vt.iV.ALL:vt.iV.INCORRECT,le=W()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":n,"block-knowledge__retake-container--active-attempts-left":n&&!r&&Be>0}),He=W()("block-knowledge__retake",{"block-knowledge__retake--active":n&&!r&&ke}),Pe=W()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":n&&!r&&ke&&Be>0}),Ke=W()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":n&&!r&&!ke}),Fe=!!S?.image,ut=!!S?.audio,dt=!!S?.video,xt=!!S?.embed;let Jt=null;ut&&Fe?Jt=(0,s.jsx)(Er,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${y}-audio`,isOverlayAudio:!0,item:e,labels:d,media:S,settings:x}):ut&&(dt||xt)?Jt=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Er,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${y}-audio`,item:e,labels:d,media:{audio:S.audio},settings:x}),(0,s.jsx)(Er,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${y}-video`,item:e,labels:d,media:dt?{video:S.video}:{embed:S.embed},settings:x})]}):Jt=(0,s.jsx)(Er,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${y}-audio`,item:e,labels:d,media:S,settings:x});const zt=W()("block-knowledge__media",{"block-knowledge__image-with-audio":ut&&Fe});return(0,s.jsxs)(u3,{isActive:!0,style:De,children:[f?.requireCorrectAnswer&&(n&&!T||!n)&&(0,s.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,s.jsx)(it,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),Y]}),p(e),(0,s.jsx)("div",{className:zt,children:Jt}),(0,s.jsx)(f3,{type:E,children:this.renderType({columnBehavior:R,correctAnswerColor:H,correctAnswerColorContrast:w,incorrectAnswerColor:M,incorrectAnswerColorContrast:z,isCorrect:T,item:e,onSubmit:O})}),(0,s.jsx)("div",{"aria-live":"assertive",children:o&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,s.jsx)("span",{"data-testid":"quiz-validation-icon",children:(0,s.jsx)(it,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:g})]})}),(0,s.jsx)(d3,{canProceed:n,canSubmit:N,isReduceMotion:xm,onSubmit:O,quizSubmit:b}),(0,s.jsx)(p3,{canProceed:this.state.forceShowFeedback||n,feedbackValue:D,isActive:n,isComplete:n,isCorrect:T,item:e,labels:d,quizCorrect:v,quizIncorrect:C,revealAnswers:he,selection:B}),(0,s.jsxs)("div",{"aria-hidden":!n,className:le,children:[We&&(0,s.jsxs)(s.Fragment,{children:[ke?(0,s.jsx)(Ot.ArcButton,{className:He,hierarchy:"secondary",icon:(0,s.jsx)(it,{name:"arrow-rotate-left"}),onClick:this.handleRetake.bind(this,e),ref:this.takeAgainRef,size:"md",tabIndex:n?void 0:-1,text:L}):null,Be>0&&(0,s.jsxs)("div",{className:Pe,children:[X," ",Be]})]}),!ke&&!T&&(0,s.jsx)("div",{className:Ke,children:pe})]})]},y)}getIsCorrect({item:e}){const{fillInText:n,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:i}=e,l="answers"in e?e.answers:void 0,u="isCaseSensitive"in e?e.isCaseSensitive:!1;switch(i){case Pi:return k3({answers:vm(l),text:n,caseSensitive:u,getL10nValue:this.props.getL10nValue});case ju:return A3(o);case Au:return w3({item:{answers:l},selectedIndices:a});case ku:default:return R3({item:{answers:l},selectedIndex:r})}}getType(){const{items:e}=this.props;return QF(e)}getCanSubmit({item:e}){const n="answers"in e?e.answers:void 0,{answered:o,fillInText:r,matches:a,selectedAnswer:i,selectedIndices:l}=this.state;return iF({type:e.type,text:r,matches:a,answersLength:n?.length??0,selectedIndices:l,selectedIndex:i,answered:o})}getFeedback({item:e,isCorrect:n,selectedAnswer:o}){if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;const r="feedback"in e?e.feedback:void 0,a="feedbackCorrect"in e?e.feedbackCorrect:void 0,i="feedbackIncorrect"in e?e.feedbackIncorrect:void 0,l="feedbackType"in e?e.feedbackType:void 0,u="answers"in e?e.answers:void 0,d=this.state.forceShowFeedbackCorrect??n;return M3({answers:u,feedback:r,feedbackCorrect:a,feedbackIncorrect:i,feedbackType:l,isCorrect:d,selectedIndex:typeof o=="number"?o:null})}getTypeLabel(){const{labels:e}=this.props,n=this.getType(),o=_F[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:i,item:l,onSubmit:u}){const{isHidden:d,labels:m,prefersKeyboardNavigation:p,renderMultipleResponseOptionText:f=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:v=this.renderMultipleChoiceOptionText,settings:C,progress:g,blockId:b}=this.props,{answered:L,fillInText:y,isRetaking:E,matches:x,selectedAnswer:S,selectedIndices:T,shouldFocusFirst:N,questionHtmlId:j}=this.state,{id:O,type:D}=l,B="answers"in l?l.answers:[],{quizAcceptableResponses:R,quizAnswerPlaceholder:H}=m,w=g?.items?.[b]?.items?.[O]?.retryAttemptCount??0,M=C?.retryCount!==0&&(C?.retryCount==null||C?.retryCount===-1||w<C?.retryCount),Z=C?.revealCorrectAnswers!==!1&&(C.retryCount==null||C.retryCount===-1||!M)?vt.iV.ALL:vt.iV.INCORRECT,Y=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(D){case Pi:return(0,s.jsx)(v3,{allowTabNavigation:!0,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:Y,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:L,isCorrect:i,labels:m,onChange:this.handleFillIn,onEnterToSubmit:u,options:vm(B),questionHtmlId:j,quizAcceptableResponses:R,quizAnswerPlaceholder:H,revealAnswers:Z,value:y});case ju:return(0,s.jsx)(y3,{answers:eF(D)(B),columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!d,isComplete:L,matches:x,onChange:this.handleMatchesChange,prefersKeyboardNavigation:p,revealAnswers:Z});case Au:return(0,s.jsx)(S3,{allowTabNavigation:!0,correctIds:fm(B),errorMessageId:Y,isComplete:L,isCorrect:i,isRetaking:E,labels:m,onChange:this.handleMultipleResponseChange,onEnterToSubmit:u,options:B,questionHtmlId:j,renderOptionText:f.bind(this,l),revealAnswers:Z,selectedIndices:T});case ku:default:return(0,s.jsx)(E3,{allowTabNavigation:!0,correctId:tF(B)||sF(B),errorMessageId:Y,isComplete:L,isCorrect:i,isReduceMotion:xm,isRetaking:E,labels:m,onChange:this.handleChoiceSelect,onEnterToSubmit:u,onFocusFirstComplete:this.resetShouldFocusFirst,options:B,questionHtmlId:j,renderOptionText:v.bind(this,l),revealAnswers:Z,selectedIndex:S,shouldFocusFirst:N})}}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,variant:i}=this.props,{answered:l,isRetaking:u}=this.state,{entranceAnimation:d,knowledgeCheckWidth:m=76}=a,p=Fh(m),f=W()("block-knowledge",{"block-knowledge--answered":l,"block-knowledge--no-animation":!d,"block-knowledge--retake":u}),v=W()("block-knowledge__wrapper",`block-knowledge__wrapper--${i}`,{[`block-knowledge__container--custom-width-${p}`]:!0}),C=Array.isArray(r)&&r.length>0?r.slice(0,1):[];return(0,s.jsx)(Pt,{className:f,"data-testid":"block-kc-card",ref:g=>{this.block=g},style:this.getStyle(),children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,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-${p}`,children:(0,s.jsx)(Gs,{"aria-label":this.getTypeLabel(),className:v,"data-testid":"block-knowledge-wrapper",ref:g=>{this.wrapper=g},children:C.map(g=>this.renderQuestion(g))})})})})})})}getStyle(){const{backgroundColor:e,settings:n}=this.props;if(n?.cardMode===Fn.TRANSPARENT)switch(n?.backgroundType){case k.xj.ACCENT:case k.xj.COLOR:case k.xj.TINT:switch((0,mt.XC)(e)){case mt.lL.LIGHT:return{"--color-background-choice-hover":(0,mt.W8)(.5,e),"--color-background-feedback-frame":(0,mt.W8)(.5,e)};case mt.lL.MED:return{"--color-background-choice-hover":(0,mt.W8)(-.3,e),"--color-background-feedback-frame":(0,mt.W8)(-.3,e)};case mt.lL.DARK:return{"--color-background-choice-hover":(0,mt.W8)(-.6,e),"--color-background-feedback-frame":(0,mt.W8)(-.6,e)};case mt.lL.NEAR_BLACK:return{"--color-background-choice-hover":(0,mt.W8)(.15,e),"--color-background-feedback-frame":(0,mt.W8)(.15,e)}}}}}const ZF=t=>{const{blockId:e,items:[n]}=t,{questions:o}=n,[r,a]=(0,h.useState)(()=>K3({questions:o}));(0,h.useEffect)(()=>{if(!o)return;const l=u=>{const{path:d}=u.detail;if(d[d.indexOf("items")+1]?.id!==e)return;const p=d[d.lastIndexOf("questions")+1]?.id;if(p===r?.id)return;const f=o.find(({id:v})=>v===p);f&&a(f)};return window.addEventListener(_t,l),()=>window.removeEventListener(_t,l)},[e,r,o]);const i=(0,h.useMemo)(()=>r?{variant:HF[r.type],items:[r]}:{},[r]);return r?(0,s.jsx)(Z3,{...t,...i}):(0,s.jsx)("div",{})},YF=t=>t.variant==="draw from question bank",wi=t=>{const e=bn()??"",n=tn(),o=(0,at.gY)(),r={...t,backgroundColor:e,getL10nValue:o,blockSettings:n};return YF(r)?(0,s.jsx)(ZF,{...r}):(0,s.jsx)(Z3,{...r})};var XF=c(87464),JF=c.n(XF);class qF extends h.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=hr()}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 n=this.props.media;this.props.dispatch(xr({audioPlayerId:io({refs:`items:${this.props.blockId}/items:${this.props.item?.id}`}),transcriptMedia:n}))}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:i,title:l,x:u,y:d}=this.props,m=W()("bubble",{"bubble--active":a}),p=sz({x:u,y:d}),f=nz({hasOverflow:this.state.hasOverflow,x:u,y:d}),v={borderBottomColor:e},C=`${r}-title`,g=()=>{if(!i)return(0,s.jsx)(St,{allowTabNavigation:a,className:"bubble__description",value:o});const L=this.props.getL10nValue(i)??{},y=Mo(L,this.props.audioPosition,!0,"labeled-graphic"),E={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,refs:`items:${this.props.blockId}/items:${this.props.item?.id}`,shouldPause:!a},x={audio:{media:y.audioOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:y.imageOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:y.videoOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:y.embedOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:L,isOverlayAudio:!0,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-overlay`}};return(0,s.jsx)(s.Fragment,{children:y.renderOrder.map((S,T)=>{if(S==="text")return(0,s.jsx)(St,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${T}`);const N=x[S];return!N||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:W()({"labeled-graphic-bubble-media-container--audio-bottom":S==="audio"&&this.props.audioPosition==="bottom"}),children:(0,s.jsx)(sn,{...E,...N})})})},`${S}-${T}`)})})},b=(0,s.jsx)("div",{className:m,ref:this.refWrap,style:p,children:(0,s.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":C,"aria-modal":"false",className:f,id:r,onKeyDown:this.handleKeyDown,style:v,children:[(0,s.jsx)("h2",{className:"bubble__title",id:C,ref:this.refBubbleTitle,tabIndex:-1,children:(0,s.jsx)(bs,{value:l})}),(0,s.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,s.jsx)(rC,{className:"bubble__close-icon"})}),(0,s.jsx)("div",{className:"bubble__content",ref:L=>{this.contentRef=L},children:g()}),n&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,to.createPortal)((0,s.jsx)(mg,{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=vu()(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=>{un(e)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(e){const{allowNav:n,onNextClick:o,onPreviousClick:r}=this.props,a=HL(this.contentRef,this.state.hasOverflow),i=JF()(rs()(n));dn()([[i(gr),r],[i(Cr),o],[qp,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 W()({"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.audioPosition==="bottom"})}}const ez=Xt(qF),tz=(0,ws.Ls)()(ez),sz=({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},nz=({hasOverflow:t,x:e,y:n})=>{const o=e<50;let r="top";return n>33&&(r=n>66?"bottom":"middle"),W()("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"})};var oz=c(15648);const rz=t=>new URL(t).pathname.slice(1)+new URL(t).search;class az extends oz.Component{imageEl;constructor(e){super(e),this.state={style:{}}}render(){const{canvasClassNames:e,children:n,cornerRadius:o,editable:r,editingDisabled:a,getL10nValue:i,imageLoaded:l,media:u,onCreateMarker:d,onShowAltDialog:m}=this.props,{style:p}=this.state,f=i(u)?.image??{},{alt:v,dimensions:C,key:g,src:b}=f,L=!!f.alt,y=(0,Ys.Ll)(v),E=(0,Ys.Zd)(f),x=W()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":r&&!a,"labeled-graphic-canvas__figure--editing-disabled":r&&a});let S;g?S=(0,Gt.ME)(f):b&&(S=(0,Gt.ME)({key:rz(b),...f}));const T=W()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":(0,Ys.sg)(S)}),N={...p,...o!=null&&{"--corner-radius":`${Number(o)}px`}},j=(0,s.jsx)(Ln,{alt:y,className:T,"data-l10n-id":(0,Et.pP)(u),height:C?.height||C?.originalHeight,onClick:d,onLoad:()=>this.setState({style:E}),ref:O=>{this.imageEl=O},src:S,style:N,width:C?.width||C?.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:x,children:[L&&r&&(0,s.jsx)(Ot.ArcTooltip,{anchorAt:"top-center",text:"Edit alt text",children:(0,s.jsx)("div",{className:"item-media__tooltip",children:(0,s.jsx)("button",{className:"labeled-graphic-canvas__alt-tag",onClick:m,type:"button",children:"ALT"})})}),l&&j,(0,s.jsx)("ol",{role:"list",children:n})]})})})})}}const iz=Xt(az),cz={"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"},lz=(t,e)=>{const n=cz[e];return n?.startsWith("a11y")?t?.[n]||"":n||""};var dz=c(15648);const Y3=ne("labeled-graphic-marker");class uz extends dz.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:i,isSelected:l,isVisible:u,labels:d,markerColor:m,markerColorContrast:p,onFocus:f,styles:v,useLocalStateForCompletion:C}=this.props,g=this.props.getL10nValue(this.props.title),b=lz(d,o),L=C?this.state.isComplete:a,y=!!m,E=(0,mt.cP)(m)?k.Em.LIGHT:k.Em.DARK,S=Os({backgroundColor:m,contrast:p??E}),T=y?m:"#ffffff",N=y?S:e,j=this.buildMarkerLabel({icon:b,label:d&&d.a11yLabeledGraphicButtonMarker||"",title:g,viewed:L}),O=Y3({active:l,dragged:this.state.isDragged,visible:u,complete:L}),D={...v,"--color-lg-accent":T,"--color-lg-font":N},B=Y3("pin",{selected:l,disabled:i});return(0,s.jsx)("button",{"aria-controls":n,"aria-expanded":r,"aria-label":j,className:O,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:R=>{this.marker=R},style:D,type:"button",children:(0,s.jsx)("span",{className:B,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",i={detail:{itemId:n,parentId:r}},l=new CustomEvent(a,i);document.dispatchEvent(l),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 hz=Xt(uz);class mz extends h.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||mn()}}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:i,editable:l,getL10nValue:u,imageLoaded:d=!0,isBlock:m,isLearner:p,isLessonBlocksList:f,isPreview:v,initiallyVisible:C,items:g,labels:b,lessonId:L,media:y,onItemClear:E,onItemHint:x,onItemSelected:S,onNextClick:T,onPreviousClick:N,onShowAltDialog:j,parentId:O,progress:D,selected:B,settings:R={},showBubbles:H,enableVideoPlaybackSpeed:w}=this.props,{cornerRadius:M,markerColor:z,markerColorContrast:Z}=R,{showMarkers:Y}=this.state,pe=z||(e||r),Le=W()("map-item",{"map-item--animated":!l}),ke=n?"fadeIn":"none",Be=n?1:0,We=g.length>1;return(0,s.jsx)(h.Fragment,{children:(0,s.jsx)(Dt,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!v,animateIn:ke,duration:v?0:Be,initiallyVisible:C,isLearner:p,children:(0,s.jsx)(iz,{canvasClassNames:a,cornerRadius:M,editable:l,editingDisabled:i,imageLoaded:d,media:y,onCreateMarker:this.createMarker,onShowAltDialog:j,ref:De=>{this.canvas=De},children:g.map((De,Ae)=>{const{description:he,id:le,icon:He,media:Pe,title:Ke}=De,Fe=u(De.x),ut=u(De.y),dt={top:ut+"%",left:Fe+"%"},xt=os()(["items",le,"isComplete"],D),Jt=B===le,zt=`bubble-${o}-${le}`;return(0,s.jsxs)("li",{className:Le,role:"listitem",children:[(0,s.jsx)(hz,{accentColor:pe,ariaControls:zt,editable:l,icon:He,isActive:B===le,isComplete:xt,isLessonBlocksList:f,isSelected:Jt,isVisible:Y,itemId:le,labels:b,markerColor:z,markerColorContrast:Z,onClick:()=>{S(le)},onFocus:this.onMarkerFocus(le),onHover:()=>{x()},onLeave:()=>{E()},onSetPosition:this.onSetPosition.bind(this,De),parentId:O,ref:Zn=>{this.markerRefs[le]=Zn},styles:dt,title:Ke,useLocalStateForCompletion:m},le),!l&&H&&(0,s.jsx)(tz,{accentColor:pe,allowNav:We,audioPosition:R.audioPosition,blockId:o,description:he,enableVideoPlaybackSpeed:w,htmlId:zt,index:Ae,isActive:Jt,item:De,labels:b,lessonId:L,media:Pe,mediaOpts:{disableZoom:!R.zoomOnClick},onClose:this.onBubbleClose(le),onNextClick:()=>{T(Ae)},onPreviousClick:()=>{N(Ae)},title:Ke,x:Number(Fe),y:Number(ut)},zt)]},le)})})})})}createMarker(e){const{disableCreateMarker:n,editable:o,onCreateMarker:r}=this.props;if(!o||n)return;const{x:a,y:i}=this.findItemCoordinates({e}),l=this.props.items.length,d={description:"",hasMedia:!1,icon:"01",id:fu()(),isActive:!1,title:"",x:String(a),y:String(i)};r({index:l,payload:d})}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:i}=this.props,{id:l,items:u}=a,{x:d,y:m}=this.findItemCoordinates({e:n,offsetX:o,offsetY:r}),p={x:String(d),y:String(m)};(0,gs.uW)(e.x)&&(0,gs.uW)(e.y)?(this.props.updateL10n({l10n:e.x,value:p.x}),this.props.updateL10n({l10n:e.y,value:p.y})):i({itemId:e.id,lessonId:l,items:u,payload:p})}findItemCoordinates({e,offsetX:n=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,i=this.findItemCoordinate({clientPos:e.clientX,clientOffset:n,rectSubtractor:r.left,rectDivisor:r.width,validOffsetAmount:a}),l=this.findItemCoordinate({clientPos:e.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:i,y:l}}findItemCoordinate({clientPos:e,clientOffset:n,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const i=a/r*100,l=100-i;let u=(e+n-o)/r*100;return u>l?u=l:u<i&&(u=i),u}afterAnimatedIn(){const{isBlock:e}=this.props;e&&this.setState({showMarkers:!0})}}const pz=Xt(mz);var fz=c(15648);const X3="page-wrap--noscroll";class vz extends fz.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(_t,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(_t,this.handleNavEvent)}render(){const{imageLoaded:e}=this.state,{initiallyVisible:n,isLessonBlocksList:o,isPreview:r,items:a,labels:i,parentId:l,settings:u={}}=this.props,{mediaWidth:d="2"}=u,m=r?a[0].id:this.state.selectedItemId,p=W()("view-labeled-graphic",{"view-labeled-graphic--small":d==="0","view-labeled-graphic--medium":d==="1","view-labeled-graphic--full":d==="2"});return(0,s.jsx)("div",{"aria-label":i?.a11yLabeledGraphicBlock,className:p,role:"group",children:(0,s.jsx)(pz,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:e,initiallyVisible:n,isLessonBlocksList:o,labels:i,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:l,selected:m})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const{image:e}=this.props.getL10nValue(this.props.media),{key:n,src:o}=e??{};if(!n&&!o)return;const r=setTimeout(this.setImageLoaded,1e3),a=new Image,i=n?(0,Gt.ME)(e):o;a.src=i,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return W()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(e){const{blockId:n,items:o}=this.props,r=Ct()("id",o[kn()(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=Ct()("id",o[ch()(e)]||o[ch()(ps()(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:i}=this.state;n&&window.matchMedia("(max-width: 768px)").matches||(i===e?this.closeOpenedBubble():(this.openBubble(e),$e()(a,xs()(l=>l.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(X3)}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(X3)}document.getElementById(`bubble-${e}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const gz=Xt(vz),Cz=t=>{const{blockId:e,progress:n,isLessonBlocksList:o=!1}=t,r=os()(["items",e],n);return(0,s.jsx)(Pt,{className:"block-labeled-graphic",children:(0,s.jsx)(gz,{...t,editable:!1,isBlock:!0,isLessonBlocksList:o,parentId:e,progress:r})})},As=ne("block-survey"),xz=[{value:"bad",label:"Bad",icon:"face-frown"},{value:"fair",label:"Fair",icon:"face-smile"},{value:"great",label:"Great",icon:"face-laugh"}];function bz({animateBlockEntrance:t,blockId:e,initiallyVisible:n,isLearner:o,items:r=[],lessonId:a,onSubmit:i,settings:l={},title:u}){const[d,m]=(0,h.useState)({}),[p,f]=(0,h.useState)(!1),[v,C]=(0,h.useState)(!1),g=l.cardMode==="TRANSPARENT",b=(0,h.useCallback)((x,S)=>{m(T=>({...T,[x]:S}))},[]),L=(0,h.useCallback)((x,S,T)=>{T&&S.length>T||m(N=>({...N,[x]:S}))},[]),y=(0,h.useCallback)(async()=>{if(!e||!a){console.error("Missing blockId or lessonId");return}C(!0);try{const x={bad:1,fair:2,great:3},S={1:"bad",2:"fair",3:"great"},T=r.map(N=>{const j=d[N.id]||"",O={id:String(e),lessonId:String(a),itemId:N.id,questionTitle:String(N.question),surveyTitle:String(u),isUnfinished:!1};return N.questionType==="RATING"?{...O,ratingOptions:S,type:N.questionType,response:x[j]}:{...O,type:N.questionType,response:j}});window.Runtime?.reportUngradedAnswers&&await window.Runtime.reportUngradedAnswers(T),i?.(d),f(!0)}catch(x){console.error("Failed to submit survey:",x)}finally{C(!1)}},[e,a,r,d,i,u]),E=x=>{const S=d[x.id]||"";return(0,s.jsxs)("div",{className:As("question"),children:[(0,s.jsx)("div",{className:As("question-text"),children:String(x.question)}),x.questionType==="RATING"&&(0,s.jsx)("div",{className:As("rating-options"),children:xz.map(T=>{const N=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(it,{className:As("rating-icon"),name:T.icon}),(0,s.jsx)("span",{className:As("rating-label"),children:T.label})]}),j=W()(As("rating-option"),{[As("rating-option--selected")]:S===T.value});return g?(0,s.jsx)(Gs,{"aria-pressed":S===T.value,cardMode:"WHITE",className:j,onClick:()=>b(x.id,T.value),tag:"button",type:"button",children:N},T.value):(0,s.jsx)("button",{"aria-pressed":S===T.value,className:j,onClick:()=>b(x.id,T.value),type:"button",children:N},T.value)})}),(x.questionType==="SHORT_RESPONSE"||x.questionType==="LONG_RESPONSE")&&(0,s.jsxs)("div",{className:As("text-response"),children:[(0,s.jsx)("textarea",{className:As("text-input"),maxLength:x.maxLength,onChange:T=>L(x.id,T.target.value,x.maxLength),placeholder:"Share your thoughts (optional)",rows:x.questionType==="LONG_RESPONSE"?4:2,value:S}),x.maxLength&&(0,s.jsxs)("div",{className:As("character-count"),children:[S.length," / ",x.maxLength]})]})]},x.id)};return(0,s.jsx)(ih,{...l,children:(0,s.jsx)(Pt,{className:As(),children:(0,s.jsx)(Dt,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{children:(0,s.jsx)(Gs,{className:As("container"),children:p?(0,s.jsx)("div",{className:As("confirmation"),children:(0,s.jsxs)("p",{className:As("confirmation-text"),children:[(0,s.jsx)(Ot.ArcIcon,{icon:"fa-regular fa-circle-check"})," Thanks! Your responses were sent."]})}):(0,s.jsxs)(s.Fragment,{children:[u&&(0,s.jsx)("h2",{className:As("title"),children:String(u)}),(0,s.jsx)("div",{className:As("questions"),children:r.map(E)}),(0,s.jsx)("div",{className:As("actions"),children:(0,s.jsx)("button",{className:As("submit-button"),disabled:v,onClick:y,type:"button",children:v?"Submitting...":"Submit"})})]})})})})})})}const bm=ne("block-process-card"),J3=({icon:t,isOverlayAudio:e=!1,onClick:n,text:o,variant:r})=>{const a=`${r}-btn`;return(0,s.jsxs)("button",{className:bm(a,{"audio-overlay":e}),onClick:n,type:"button",children:[(0,s.jsx)("span",{className:bm(`${a}-text`),children:o}),(0,s.jsx)(it,{classNameIcon:bm(`${a}-icon`),name:t})]})},yz=ne("block-process-card"),Lz=({activeIndex:t,enableVideoPlaybackSpeed:e,id:n,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:i,labels:l,lessonId:u,media:d,onMediaLoad:m,settingZoomOnClick:p})=>{const{image:f}=d??{},v=a?f?.align??"center":"center",C=yz("media",{legacy:!1,"audio-overlay":a,[`audio-overlay-${v}`]:a,"intro-step":r});return(0,s.jsx)("div",{className:C,children:(0,s.jsx)(sn,{activeIndex:t,blockId:n,defaultAlign:"center",enableVideoPlaybackSpeed:e,hasPadding:!1,index:`${n}-${o}`,isOverlayAudio:a,item:i,itemIndex:o,labels:l,lessonId:u,media:d,onLoad:m,opts:{disableZoom:!p},pauseOnLoad:!0})})};var ym=c(15648);const Sr=ne("block-process-card"),Ez=({text:t})=>{const e=ym.useRef(null),{isInView:n}=Sz({ref:e,threshold:.75});return(0,s.jsxs)("div",{className:Sr("swipe-badge",{animate:n}),ref:e,children:[(0,s.jsx)("span",{className:Sr("swipe-badge-text"),children:t}),(0,s.jsx)(it,{className:Sr("swipe-badge-icon"),name:"chevron-right-solid"})]})};function Sz({ref:t,rootMargin:e="0px",threshold:n=.1}){const[o,r]=ym.useState(!1);return ym.useEffect(()=>{if(!t.current||o)return;const a=new IntersectionObserver(([i])=>{i.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:e,threshold:n});return a.observe(t.current),()=>a.disconnect()},[o,t,e,n]),{isInView:o}}const Tz=({activeIndex:t,className:e,description:n,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:i,item:l,labels:u,lessonId:d,media:m,onClickRestart:p,onClickStart:f,settingAudioPosition:v,settingHeadingLevel:C=2,settingShowStepLabel:g=!0,settingStepLabel:b,settingZoomOnClick:L,showSwipeBadge:y,style:E,title:x,totalSteps:S,type:T})=>{const N=`h${C}`,j=T==="intro",O=T==="summary",D=T==="step",B=r?i:i+1,R=(0,at.QQ)(b)||u.processStepName,H=(0,at.QQ)(Array.isArray(m)?{}:m),w=Mo(H,v,!0,"process"),M=()=>{if(!m)return null;const z={activeIndex:t,blockId:a,enableVideoPlaybackSpeed:o,id:a,index:i,isIntroStep:j,labels:u,lessonId:d,media:m,onMediaLoad:()=>{},settingZoomOnClick:L,item:l},Z={audio:{media:w.audioOnlyMedia||H,isOverlayAudio:!1},image:{media:w.imageOnlyMedia||H,isOverlayAudio:!1},video:{media:w.videoOnlyMedia||H},embed:{media:w.embedOnlyMedia||H,isOverlayAudio:!1},overlay:{media:H,isOverlayAudio:!1}};return w.renderOrder.map((Y,X)=>{if(Y==="text")return(0,s.jsx)(St,{className:Sr("description"),value:n},`text-${X}`);const pe=Z[Y];return pe?(0,s.jsx)(Lz,{...z,...pe},`${Y}-${X}`):null})};return(0,s.jsxs)("div",{className:Sr(null,{[T]:!0}).mix(e),style:E,children:[D&&g&&(0,s.jsx)("div",{className:Sr("number"),children:`${R} ${B}`}),(0,s.jsx)("div",{className:Sr("title"),children:(0,s.jsx)(N,{children:(0,s.jsx)(St,{value:x})})}),M(),!m&&(0,s.jsx)(St,{className:Sr("description"),value:n}),j&&S>1&&(0,s.jsx)(J3,{icon:"chevron-right-solid",isOverlayAudio:w.isOverlayAudio,onClick:f,text:u.processStart,variant:"start"}),O&&S>1&&(0,s.jsx)(J3,{icon:"arrow-rotate-left",isOverlayAudio:w.isOverlayAudio,onClick:p,text:u.processStartAgain,variant:"restart"}),y&&D&&(0,s.jsx)(Ez,{text:u.processSwipe})]})};var Bo=c(15648);const Iz=ne("block-process-carousel"),q3=t=>t?.type==="intro",Lm=t=>t?.type==="summary",Em=t=>t?.type==="step",e6=t=>t?.isHidden,Nz=({animateBlockEntrance:t,enableVideoPlaybackSpeed:e,id:n,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:l,onStep:u,previewType:d,processRef:m,settings:{audioPosition:p,headingLevel:f,stepLabel:v,showStepLabel:C,zoomOnClick:g}})=>{const b=Ns(480),L=(0,Ce.Wz)(),y=(0,at.gY)(),E=(0,ws.y4)(),x=Bo.useRef(null),[S,T]=Bo.useState(0),[N,j]=Bo.useState(!1),O=Bo.useMemo(()=>d===lt.o4.MOBILE_PORTRAIT||d===lt.o4.MOBILE_LANDSCAPE,[d]),D=Bo.useMemo(()=>{const pe=a.filter(We=>!e6(We)),Le=pe.find(q3),ke=pe.find(Lm),Be=pe.filter(Em);return[Le,...Be,ke].filter(Boolean)},[a]),B=Bo.useMemo(()=>D.findIndex((pe,Le)=>Em(pe)&&(Em(D[Le+1])||Lm(D[Le+1]))),[D]),R=q3(D[0]),H=Lm(D[D.length-1]),w=!!d;Bo.useEffect(()=>{u&&(a.forEach(pe=>e6(pe)&&u(pe)),D.length>0&&u(D[0]))},[]);const M=Bo.useCallback(()=>{x.current?.navigateToSlide?.(0)},[]),z=Bo.useCallback(()=>{x.current?.navigateToSlide?.(1)},[]),Z=Bo.useCallback(pe=>{T(pe);const Le=m.current;w||Le?.scrollIntoView({behavior:"smooth",block:"start"}),pe!==B&&!N&&j(!0),u?.(D[pe]);const ke=D[pe]?.media;y(ke)?.audio&&E(xr({audioPlayerId:io({refs:`items:${n}/items:${D[pe]?.id}`}),transcriptMedia:ke}))},[D,E,B,y,N,n,w,u,m]),Y=({index:pe,isActive:Le,onClick:ke,onKeyDown:Be})=>{const We=R&&pe===0,De=H&&pe===D.length-1,Ae=R?pe:pe+1;let he,le;We?(he=i?.a11yBlockProcessSlideControlsIntroduction,le=(0,s.jsx)(it,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):De?(he=i?.a11yBlockProcessSlideControlsSummary,le=(0,s.jsx)(it,{name:"check-regular"})):(he=Ae.toString(),le=Ae.toString());const He=`${i?.a11yBlockProcessSlideControlsGoToSlide} ${he}`;return(0,s.jsx)(_g,{"aria-label":He,ariaLabel:He,className:"carousel-controls-item-btn",isActive:Le,onClick:ke,onKeyDown:Be,children:le},pe)},X=t?"fadeIn":"none";return(0,s.jsx)(Dt,{animateBlockEntrance:w,animateIn:X,duration:w&&t?1:0,initiallyVisible:o,isLearner:r,children:(0,s.jsx)("div",{className:Iz(),children:(0,s.jsx)(mu,{blockId:n,carouselRef:x,items:D,children:()=>(0,s.jsx)(uu,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:L,labelCarousel:i?.a11yBlockProcessCarousel,labelCarouselRoleDesc:i?.a11yBlockProcessRoleDescription,labelSlideControls:i?.a11yBlockProcessSlideControls,labelSlideControlsGoToNext:i?.a11yBlockProcessSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockProcessSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockProcessSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockProcessSlidePreposition,labelSlideRoleDesc:i?.a11yBlockProcessSlideRoleDescription,onChange:Z,ref:x,renderSlideIndicator:Y,shouldMouseEmulateTouch:O,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:D.map((pe,Le)=>(0,s.jsx)(Gs,{activeIndex:S,description:pe.description,enableVideoPlaybackSpeed:e,hasIntro:R,id:n,index:Le,isHidden:pe.isHidden,item:pe,labels:i,lessonId:l,media:pe.media,onClickRestart:M,onClickStart:z,settingAudioPosition:p,settingHeadingLevel:f,settingShowStepLabel:C,settingStepLabel:v,settingZoomOnClick:g,showSwipeBadge:b&&!N&&Le===B,tag:Tz,title:pe.title,totalSteps:D.length,type:pe.type},pe.id))})})})})};var jz=c(15648);const kz=t=>{const{blockId:e}=t,n=jz.useRef(null);return(0,s.jsx)(Pt,{className:"block-process",ref:n,children:(0,s.jsx)(Nz,{id:e,processRef:n,...t})})};var Az=c(54386),Rz=c.n(Az),Pz=c(36177),sl=c.n(Pz),wz=c(78041),Sm=c.n(wz),Mz=c(18557),Oz=c.n(Mz),Dz=c(65698),Tr=c.n(Dz);const t6=t=>({...t.responses[t.response],hasCharacter:t.hasCharacter,type:"response"}),Bz=(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}},Hz=t=>[t6(t)],Fz=t=>{const e=!!t.responses[t.response],n=t6(t),o=Bz(t,n);return e?[n,o]:[o]},zz=t=>t.hasFeedback?[t,...Fz(t)]:t.response!=null?[t,...Hz(t)]:[t],Vz=(t,e)=>{if(!e)return;const{scene:n,slide:o}=e,r=t.findIndex(l=>l.id===n),i=(t[r]?.slides||[]).findIndex(l=>l.id===o);return{scene:r,slide:i}},s6=qr()(Vz),Uz=fs()(Ct()("filters"),Cs()(It()("name","rise_emotion")),Vd()(ls())),$z=fs()(Ct()("filters"),xs()(It()("name","rise_emotion")),Ct()("value")),n6=t=>new URL(t).pathname.slice(1),Wz=t=>fs()(ro()("key",n6(t.src)),ro()("thumbnailKey",n6(t.thumbnail)))(t),Gz=fs()(Ct()("poses"),Cs()(Uz),Bn()(t=>[$z(t),t]),Bv(),ca()(Wz));var Ho=c(15648);const Tm=t=>t===-1?null:t,o6=t=>ni()(hn(),sr(),t),Ru=Vd()(ls()),r6=Vd()(hn()),Mi=tu()(r6,Ru),a6=Rz()(Qd()),i6=Ge.BI?o6(Gt.dE):o6(Gt.bX),Im=t=>rn()(t);class Kz extends Ho.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=Ho.createRef();responseItemRef=Ho.createRef();scenarioRef=Ho.createRef();blockContentRef=Ho.createRef();endRef=Ho.createRef();textRef=Ho.createRef();refs=Ho.createRef();dynamicRefs=Ho.createRef();fadeObservers=new Map;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.renderAudioMedia=this.renderAudioMedia.bind(this),this.renderDialogueWithAudioPositioning=this.renderDialogueWithAudioPositioning.bind(this),this.renderTextWithAudioPositioning=this.renderTextWithAudioPositioning.bind(this),this.resetSlide=this.resetSlide.bind(this),this.resetSlides=this.resetSlides.bind(this),this.setNextSlide=this.setNextSlide.bind(this),this.dynamicRefs.current={},this.setupFadeObserver=this.setupFadeObserver.bind(this)}setupFadeObserver(e){if(!e)return;const n=this.fadeObservers.get(e);n&&(n.observer.disconnect(),e.removeEventListener("scroll",n.scrollHandler),this.fadeObservers.delete(e));const o=Array.from(e.children).find(d=>d.className.includes("-bottom"));if(!o)return;const r=e.parentElement?.classList.contains("scenario-block__dialogue__bubble")||e.parentElement?.classList.contains("scenario-block__dialogue__pane")?e.parentElement:e,a=()=>{const{scrollHeight:d,clientHeight:m}=e;return d>m+2},i=d=>{const m=d?.[0]?.isIntersecting??!1,p=a();p?r.classList.add("has-overflow"):r.classList.remove("has-overflow"),!m&&p?r.classList.add("show-fade"):r.classList.remove("show-fade")},l=new IntersectionObserver(i,{root:e,threshold:[0,1]}),u=()=>{};this.fadeObservers.set(e,{observer:l,scrollHandler:u}),l.observe(o)}componentDidMount(){const{initialState:e,items:n}=this.props,o=$e()(Sc()("poses"),Ws()({},"character"),Im);Mi(n)&&!o(n)&&this.fetchCharacters(),e||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(_t,this.handleNavEvent)}handleNavEvent(e){const{path:n}=e.detail,{blockId:o,sceneId:r,slideId:a,responseId:i}=Qa(n,["block","scene"]),l=n.at(-1)==="feedback";if(o!==this.props.blockId)return;const u=Tm(this.props.items.findIndex(p=>p.id===r)),d=u!==null?Tm(this.props.items[u].slides.findIndex(p=>p.id===a)):null,m=d!==null?Tm(this.props.items[u].slides[d].responses.findIndex(p=>p.id===i)):null;this.setState({activeScene:u??0,activeSlide:d??0},()=>{u!==null&&d!==null&&this.setState({slides:{...this.state.slides,[`${u}.${d}`]:{...this.state.slides[`${u}.${d}`],hasFeedback:l,response:m}}})})}componentDidUpdate(){const{items:e,onStep:n}=this.props,{activeScene:o,activeSlide:r}=this.state,a=gt()([],[o,"slides"],e),i=gt()(null,[r,"goTo"],a),l=gt()(null,[r,"type"],a);if(n&&(i==="end"&&l==="text"||!i&&!l)&&Sm()(n,e),this.shouldFocus){this.shouldFocus=!1;const p=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');p?p.focus():vh(this.scenarioRef.current)}this.fadeObservers.forEach(({observer:p,scrollHandler:f},v)=>{document.contains(v)||(p.disconnect(),v.removeEventListener("scroll",f),this.fadeObservers.delete(v))})}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener(_t,this.handleNavEvent),this.fadeObservers.forEach(({observer:e,scrollHandler:n},o)=>{e.disconnect(),o.removeEventListener("scroll",n)}),this.fadeObservers.clear()}getActiveScene(){return this.getScene(this.state.activeScene)}getScene(e){const{items:n}=this.props;return n&&e>=0&&e<n.length?n[e]:null}fetchCharacterPose(e,n){const o=this.getScene(e),r=o?.slides,a=r&&n>=0&&n<r.length;if(!o||!r||!a)return{name:"",pose:null};const{character:i}=o,l=r[n],u=`${e}.${n}`,d=[u,"response"],m=[u,"hasFeedback"],p=gt()(null,d,this.state.slides),f=gt()(!1,m,this.state.slides),v=Ws()("neutral","emotion",l),C=ni()(rs()(f),gt()(v,["responses",p,"emotion"]),rs()(v)),g=fs()(gt()(i?.poses?.neutral,["poses",C(l)]),i6);return{name:i?.name||"",pose:g(i)}}fetchCharacters(){const{getCharacter:e,items:n,onItemUpdate:o}=this.props,r=Us()(["id","name","poses","src"]),a=l=>u=>o({itemId:l,payload:{character:u}}),i=({character:l,id:u})=>Mi(l)&&e(l.id).then(d=>ro()("poses",Gz(d),d)).then(r).then(a(u));n.map(i)}isCharacterHidden(){const{items:e}=this.props,{activeScene:n,activeSlide:o}=this.state,a=this.getActiveScene()?.slides?.[o],i=o===null,l=e[n];return i?!(l?.slidesHaveCharacterByDefault??!1):a&&!a.hasCharacter}getCharacterPose(){const{items:e}=this.props,{activeScene:n,activeSlide:o,prevScene:r,prevSlide:a}=this.state,i=gt()([],[n,"slides"],e),l=gt()(!0,[o,"hasCharacter"],i);return r6(r)&&Qs()(l)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(n,o)}onClick(e,n){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:i}=this.state,l=this.getActiveScene()?.slides,u=Ws()(null,"type",l?.[i])==="dialogue",d=a===o.length-1,m=i===(l?.length??0)-1,p={activeSlide:i+1},f={activeScene:a+1,activeSlide:0},v={activeSlide:null},C={activeScene:0,activeSlide:0},g=fs()(s6(o),x=>({activeScene:x.scene,activeSlide:x.slide})),b=dn()([[rs()(m&&d),rs()(v)],[rs()(m&&!d),rs()(f)],[Li(),rs()(p)]]),L=ni()(rs()(u),rs()(v),rs()(C)),y=dn()([[co()("slide"),Tr()(g,[n])],[co()("next"),b],[co()("end"),L]]),E=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,i),0),this.setState({prevScene:a,prevSlide:i}),this.setState(y(e),E),e==="end"&&this.resetSlides(),e==="end"&&r&&Sm()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}onResponseClick(e,n){const{activeScene:o,activeSlide:r,slides:a}=this.state,{getL10nValue:i,lessonId:l,blockId:u}=this.props,d=`${o}.${r}`,m=ro()("response",e),p=ro()("hasFeedback",!0),f=mi()({[`${d}`]:m}),v=mi()({[`${d}`]:p});n.media&&i(n.media)?.audio&&st.playerId===`audio-${l}-${u}`&&st.pause();const g=$e()(v,f);this.setState({slides:f(a)},()=>{this.shouldFocus=!0,this.setState({slides:g(a)})})}onTryAgainClick(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=`${e}.${n}`,a=sl()({hasFeedback:null,response:null}),i=mi()({[`${r}`]:a});this.setState({slides:i(o)})}render(){const{blockId:e,getL10nValue:n,isPDF:o,items:r,labels:a}=this.props,{activeScene:i,activeSlide:l,initiated:u}=this.state,m=this.getActiveScene()?.slides?.[l],p=$e()(Ru,Ws()({},"character"),Im),f=$e()(Sc()("poses"),Ws()({},"character"),Im),v=$e()(wo(),gt()({},["character","poses"])),C=$e()(wh(),wo(),Bn()(v)),g=this.isCharacterHidden(),b=W()("scenario-block",{"scenario-block--initiated":u,"scenario-block--mobile":cn.isMobile,"scenario-block--loading":p(r)&&!f(r),"scenario-block--character-hidden":g}),L=`scenario-live-${e}`,y={"aria-label":a?.a11yGroupScenario,"aria-describedby":L,className:b,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:void 0},E=(0,Gt.ME)(n(r?.[0].background?.media)?.image),x=dn()([[hn(),this.renderEnd],[It()("type","dialogue"),this.renderDialogues],[It()("type","text"),this.renderText],[Li(),rs()(null)]]),S=W()("scenario-block__character",{"scenario-block__character--hidden":g}),T=`${i}.${l}`,N=this.state.slides[T],j=N?.hasFeedback?m?.responses?.[N?.response]?.alt:m?.alt,O=n(j);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{...y,"data-l10n-id":(0,Et.pP)(j),children:[(0,s.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:L,children:O}),(0,s.jsx)("div",{className:"scenario-block__spinner"}),(0,s.jsx)("div",{className:"scenario-block__background-wrapper",children:Mi(r)&&r.map(this.renderBackground)}),E&&(0,s.jsx)(Ln,{alt:"",onLoad:this.onInit,src:E}),(0,s.jsxs)("div",{className:"scenario-block__inner",children:[(0,s.jsx)("div",{className:S,children:f(r)&&C(r).map(this.renderPose)}),(0,s.jsx)(ys.F,{children:Mi(r)&&x(m)})]})]}),o&&m&&this.renderDetails(m)]})}renderBackground(e,n){const{activeScene:o}=this.state,{id:r,blurBackground:a}=e,i=this.props.getL10nValue(e?.background?.media)?.image,l=W()("scenario-block__background",{"scenario-block__background--active":o===n,"scenario-block__background--blur":a??!0}),u=(0,Gt.ME)(i);return u?(0,s.jsx)(Ln,{alt:"",className:l,src:u},r):(0,s.jsx)(s.Fragment,{})}renderButton(e){const{labels:n}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=n,{goTo:a,nextSlide:i}=e,l="action"in e?e.action:void 0,u={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},d=l==="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:l==="tryAgain"?$e()(this.onFocus,this.onTryAgainClick):$e()(this.onFocus,Tr()(this.onClick,[a,i]))};return(0,s.jsx)(ys.F,{children:(0,s.jsx)(ys.B1,{...u,children:(0,s.jsx)("button",{...p,type:"button",children:d})})})}renderDetails(e){const{items:n}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:i}=e,l=(p,f)=>(0,s.jsxs)("span",{children:[p," ",(0,s.jsx)(TC,{})," ",f]},p),u=fs()(s6(n),p=>`Scene ${p.scene+1} Slide ${p.slide+1}`),d=(p,{goTo:f,nextSlide:v})=>dn()([[co()("next"),Tr()(l,[p,"Next Slide"])],[co()("end"),Tr()(l,[p,"End of Scenario"])],[Li(),Tr()(l,[p,u(v||{})])]])(f),m=i==="text"?d("Continue",e):a.map((p,f)=>d(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:i}=n,l="type"in n?n.type:void 0,{count:u,firstKey:d,hasFeedback:m,slide:p,totalDialogues:f}=e,v=o===0?a:o,C=o===1?d:o-1,g=o===0&&u===1,b=o===u,L=l==="dialogue"&&(g||b),y=this.dynamicRefs.current[`dialogue-${v}`],E=b&&this.dynamicRefs.current[`dialogue-${C}`],x=y&&y.offsetHeight,S=b&&E&&E.offsetHeight,T=m?30:0,N=window.innerWidth<480?20:30,j=N*2+60+S-T,O=N+60-T,D=Oz()(x+T-60),B=Ho.createRef(),{settings:R,getL10nValue:H}=this.props,w=R?.audioPosition,M=H(p.media),z=Mo(M,w),Z=z.renderOrder.indexOf("audio")<z.renderOrder.indexOf("text"),Y=!!M?.audio,X=m&&o===f-1,pe=W()("scenario-block__dialogue",{"scenario-block__dialogue--response":l==="response","scenario-block__dialogue--feedback":X,"scenario-block__dialogue--done":o<u-1,"scenario-block__dialogue--audio-top":Z&&Y}),Le=dn()([[rs()(g),rs()(null)],[co()(u),rs()({top:`${j}px`})],[co()(u-1),rs()({top:`${O}px`})],[co()(u-2),rs()({top:`${D}px`})],[Li(),rs()({top:`-${x+30}px`})]]),ke={className:pe,ref:le=>{this.dynamicRefs.current[`dialogue-${v}`]=le},style:Le(o)},Be={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:B,key:o,timeout:{enter:400,exit:400}},We=W()({"scenario-block__dialogue__bubble":i||l==="response","scenario-block__dialogue__pane":!i}),De=this.props.getL10nValue(r)||"",Ae=l!=="response"&&!X&&Y&&Z&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(p)}),he=(0,s.jsxs)("div",{className:We,"data-scenario-focus":L?"":void 0,tabIndex:L?-1:void 0,children:[Ae,(0,s.jsxs)("div",{className:"scenario-block__dialogue__bubble__content",ref:this.setupFadeObserver,children:[l!=="response"&&!X?this.renderDialogueWithAudioPositioning(p,De,z):(0,s.jsx)(St,{value:De}),(0,s.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})]});return(0,s.jsx)(ys.B1,{...Be,children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{...ke,children:Mi(r)&&he})})})}renderDialogues(e){const{activeScene:n,activeSlide:o,slides:r}=this.state,{id:a,responses:i}=e,l=`${n}.${o}`,u=r[l]||{},m=$e()(wh(),zz,Yo()(u))(e),{hasFeedback:p,response:f}=u,{feedback:v}=i[f]||{},C=hn()(f)&&Ru(i),g=p?m.length-1:m.length,b=(g===1&&ls()(i)||g===2&&Ru(i))&&p,L={count:g,firstKey:gt()(null,[0,"id"],m),hasFeedback:p&&Mi(v),slide:e,totalDialogues:m.length},y={classNames:"scenario-block__content-",nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},E=(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)(ys.F,{component:"ol",role:"list",children:i.map((x,S)=>this.renderResponse(x,e,S))})})})});return(0,s.jsx)(ys.B1,{...y,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)(ys.F,{children:m.map(this.renderDialogue.bind(this,L))})})}),C&&E,b&&this.renderButton(m[g-1])]})})},a)}renderEnd(){const{labels:e}=this.props,{scenarioComplete:n,scenarioStartOver:o}=e,r=$e()(this.onFocus,Tr()(this.onClick,["end",null])),a=W()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),i={classNames:"scenario-block__content-",nodeRef:this.endRef,timeout:{enter:0,exit:400}};return(0,s.jsx)(ys.B1,{...i,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")},"end")}renderPose(e,n){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=e,i=i6(e),l=tu()(It()("name","style")),u=l(It()("value","left_aligned")),d=l(It()("value","right_aligned")),m=W()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===i,"scenario-block__character__inner--right":xs()(d,r),"scenario-block__character__inner--left":xs()(u,r)});return(0,s.jsx)("div",{className:m,"data-pose-id":a,children:(0,s.jsx)(Ln,{alt:"",src:i})},`pose-${n}-${a}`)}renderResponse({description:e},n,o){const{isPDF:r}=this.props,a=r?Qz:$e()(this.onFocus,Tr()(this.onResponseClick,[o,n])),i=v=>{const g=v.currentTarget.querySelector(".scenario-block__response__inner");if(g){const b=g.getBoundingClientRect();if(v.clientX>b.right-16){v.preventDefault();return}}a(v)},l=v=>{const g=v.currentTarget.querySelector(".scenario-block__response__inner");if(g){const b=g.getBoundingClientRect();v.clientX>b.right-16?g.classList.add("hovering-scrollbar"):g.classList.remove("hovering-scrollbar")}},u=v=>{const g=v.currentTarget.querySelector(".scenario-block__response__inner");g&&g.classList.remove("hovering-scrollbar")},d=W()(["scenario-block__response",`scenario-block__response--${o}`]),m=W()("scenario-block__response-item",`scenario-block__response-item--${o}`),p={appear:!0,classNames:"scenario-block__response-item-",nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},f=(0,s.jsx)("button",{className:d,onClick:i,onMouseLeave:u,onMouseMove:l,type:"button",children:(0,s.jsxs)("div",{className:"scenario-block__response__inner",ref:this.setupFadeObserver,children:[(0,s.jsx)("div",{className:"scenario-block__response__number",children:o+1}),(0,s.jsx)(St,{value:e}),(0,s.jsx)("div",{className:"scenario-block__response__inner-bottom"})]})});return(0,s.jsx)(ys.B1,{...p,children:(0,s.jsx)("li",{className:m,role:"listitem",children:f})},o)}renderText(e){const{description:n,goTo:o,hasCharacter:r,id:a,nextSlide:i}=e,l=this.props.getL10nValue(e.title),u=this.props.getL10nValue(n)||"",{labels:d,settings:m,getL10nValue:p}=this.props,{scenarioContinue:f,scenarioStartOver:v}=d,C=!n&&(l||"").length<22,g=m?.audioPosition,b=p(e.media),L=Mo(b,g),y=L.renderOrder.indexOf("audio")<L.renderOrder.indexOf("text"),E=!!b?.audio,x=W()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":C,"scenario-block__text--audio-top":y&&E}),S={classNames:"scenario-block__content-",nodeRef:this.textRef,timeout:{enter:0,exit:400}},T=m?.headingLevel,N=T?`h${T}`:"h2",j=`scenario-title-${a}`,O=`scenario-description-${a}`,D=`${j} ${O}`,B=W()("scenario-block__text__inner",{"scenario-block__text__inner--end":o==="end"}),R=W()("scenario-block__text__title",{"scenario-block__text__title--end":o==="end"}),H=(0,s.jsx)("div",{className:R,"data-l10n-id":(0,Et.pP)(e.title),id:j,children:(0,s.jsx)(N,{children:l})}),w=E&&y&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(e)}),M=(0,s.jsx)("div",{className:"scenario-block__text__description",id:O,ref:this.setupFadeObserver,children:this.renderTextWithAudioPositioning(e,u,L)}),z=$e()(this.onFocus,Tr()(this.onClick,[o,i])),Z=(0,s.jsx)("button",{"aria-describedby":D,className:"scenario-block__text__continue",onClick:z,type:"button",children:(0,s.jsx)("span",{children:f})}),Y=(0,s.jsxs)("button",{"aria-describedby":D,className:"scenario-block__text__end",onClick:z,type:"button",children:[(0,s.jsx)("span",{children:v}),(0,s.jsx)("i",{className:"icon icon-reload"})]});return(0,s.jsx)(ys.B1,{...S,children:(0,s.jsx)("div",{className:x,children:(0,s.jsxs)("div",{className:B,"data-scenario-focus":"",tabIndex:-1,children:[l&&H,w,n&&M,o==="end"?Y:Z]})},a)},a)}renderAudioMedia(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,items:i,settings:l}=this.props,u=o(e.media),d=i?.[this.state.activeScene];return u?(0,s.jsx)(sn,{blockId:n,index:n,item:e,labels:r,lessonId:a,lessonNumber:a,media:u,refs:`items:${n}/items:${d.id}/slides:${e.id}`,shouldPause:e.type,volumeSliderPosition:l?.audioPosition==="top"?"below":"above"}):null}renderDialogueWithAudioPositioning(e,n,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,s.jsxs)(s.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(St,{value:n})},`text-${i}`);if(a==="audio"&&!r){const l=this.renderAudioMedia(e);return l?(0,s.jsx)("div",{children:l},`audio-${i}`):null}return null}),(0,s.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})}renderTextWithAudioPositioning(e,n,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,s.jsxs)(s.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(St,{value:n})},`text-${i}`);if(a==="audio"&&!r){const l=this.renderAudioMedia(e);return l?(0,s.jsx)("div",{children:l},`audio-${i}`):null}return null}),(0,s.jsx)("div",{className:"scenario-block__text__description-bottom"})]})}resetSlide(e,n){const{slides:o}=this.state,r=`${e}.${n}`,a={hasFeedback:!1,response:null};this.setState({slides:ro()(r,a,o)})}resetSlides(){const{items:e}=this.props,n=r=>(a,i,l)=>{const{type:u,responses:d=[]}=i,m=u==="dialogue"&&d.length===0;return ro()(`${r}.${l}`,{hasFeedback:m,response:null},a)},o=(r,a,i)=>fs()(Ws()([],"slides"),a6(n(i),{}),sl()(r))(a);this.setState({slides:a6(o,{},e)})}setNextSlide(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=this.getActiveScene()?.slides;if(!r)return;const{responses:a=[],type:i}=r[n]||{},l=`${e}.${n}`,u=ro()("hasFeedback",!0),d=mi()({[l]:u});i==="dialogue"&&ls()(a)&&(this.shouldFocus=!0,this.setState({slides:d(o)}))}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 _z=t=>{const e=(0,at.gY)();return(0,s.jsx)(Kz,{...t,getL10nValue:e})};function Qz(){}var Zz=c(15648);class Yz extends Zz.Component{render(){const{animateBlockEntrance:e,isLearner:n,previewType:o,initiallyVisible:r}=this.props,a=!hn()(o),u={animateBlockEntrance:a,animateIn:e?"fadeIn":"none",duration:a&&e?1:0,initiallyVisible:r,isLearner:n};return(0,s.jsx)(Pt,{className:"block-scenario",children:(0,s.jsx)(Dt,{...u,children:(0,s.jsx)(_z,{...this.props})})})}}var Xz=c(80195),Pu=c.n(Xz);function Jz(t){t&&(t.addEventListener("touchstart",Ir,!0),t.addEventListener("touchmove",Ir,!0),t.addEventListener("touchcancel",Ir,!0),t.addEventListener("touchend",Ir,!0))}function qz(t){t&&(t.removeEventListener("touchstart",Ir,!0),t.removeEventListener("touchmove",Ir,!0),t.removeEventListener("touchcancel",Ir,!0),t.removeEventListener("touchend",Ir,!0))}function Ir(t){t?.stopPropagation?.()}const Oi=ne("playing-card"),c6=({id:t,isDeckTopCard:e,title:n,ref:o})=>{const[r,a]=(0,h.useState)(!1),[i,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)({x:0,y:0}),[m,p]=(0,h.useState)(!0),[f,v]=(0,h.useState)(!1),[C,g]=(0,h.useState)(0),b=tn(),L=(0,h.useRef)(null),y=(0,h.useRef)(null),E=(0,h.useRef)(void 0),x=(0,h.useRef)(void 0),S=(0,h.useRef)(!1),T=(0,h.useCallback)(()=>{const{innerWidth:z}=window,Z=L.current&&L.current.scrollHeight>L.current.clientHeight,Y=z<C;Z&&z>C&&g(z),v(Z||Y)},[C]),N=(0,h.useRef)(()=>{a(!0),l(!1)}),j=(0,h.useRef)(()=>{a(!1)});(0,h.useImperativeHandle)(o,()=>({onStartSortAttempt:N.current,onEndSortAttempt:j.current})),(0,h.useEffect)(()=>{const z=setTimeout(()=>{p(!1)},300);return()=>clearTimeout(z)},[]),(0,h.useEffect)(()=>{const z=y.current;if(!z)return;const Z=()=>{a(!0),l(!1)},Y=({dx:pe,dy:Le})=>{d(ke=>({x:ke.x+pe,y:ke.y+Le}))},X=()=>{a(!1)};return N.current=Z,j.current=X,Jz(z),Do(z).draggable({inertia:!0,autoScroll:!1,modifiers:[Do.modifiers.snap({targets:[(pe,Le)=>({x:pe,y:Le})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}).on("dragstart",Z).on("dragmove",Y).on("dragend",X),T(),E.current=yu()(T,250),window.addEventListener("resize",E.current),()=>{qz(z),Do(z).off("dragstart",Z).off("dragmove",Y).off("dragend",X),E.current&&(E.current.cancel(),window.removeEventListener("resize",E.current)),clearTimeout(x.current)}},[T]),(0,h.useEffect)(()=>{T()},[t,T]),(0,h.useEffect)(()=>{const z=S.current;S.current=r,z&&!r&&(l(!0),clearTimeout(x.current),x.current=setTimeout(()=>{d({x:0,y:0}),l(!1)},300))},[r]);const O=b?.backgroundType===k.xj.ACCENT||b?.backgroundType===k.xj.IMAGE,D=`translate3d(${u.x}px, ${u.y}px, 0)`,B={WebkitTransform:D,transform:D},R=Oi("title",{"is-max-length":f}),H=Oi({draggable:!0,moving:r,fail:i,reset:m}),w=O?Oi("content"):Oi("content").mix("brand--border"),M=typeof n=="string"?n:n?.["en-US"]||"Card";return(0,s.jsxs)("div",{"aria-hidden":!e,className:H,id:t.toString(),onMouseDown:z=>{z.preventDefault()},ref:y,style:B,children:[e&&(0,s.jsxs)("div",{className:"visually-hidden-always",children:["Current item: ",M]}),(0,s.jsxs)(Gs,{"aria-hidden":"true",className:w,children:[(0,s.jsx)(St,{className:R,id:`card-title-${t}`,ref:L,value:n}),(0,s.jsx)("div",{className:Oi("handle")}),(0,s.jsx)("div",{className:Oi("status"),children:(0,s.jsx)("i",{className:"icon icon-check"})})]})]},`card-${t}`)},wu=ne("restart-button");function eV({allowTabNavigation:t=!0,onClick:e,onFocus:n=qs.lQ,ref:o,text:r}){const a=wu({}).mix("button");return(0,s.jsx)("button",{"aria-hidden":!t,className:a,"data-testid":"quiz-take-again-button",onClick:e,onFocus:n,ref:o,tabIndex:ui(t),type:"button",children:(0,s.jsxs)("div",{className:wu("content"),children:[(0,s.jsx)("span",{className:wu("text").mix("brand--ui"),children:r}),(0,s.jsx)("i",{"aria-hidden":"true",className:wu("icon").mix("icon").mix("icon-reload")})]})})}const l6=eV,nl=ne("deck"),tV=t=>t?.percentViewed===100,sV=(t,e)=>`${t?.correctlyAnswered??0}/${e}`,nV=(t,e)=>String(e?.lastIncorrectCardId)===String(t.id),oV=({count:t,items:e,labels:n,id:o,onReplay:r,progress:a,ref:i})=>{const l=(0,h.useRef)([]),u=(0,h.useRef)(null);(0,h.useImperativeHandle)(i,()=>({startKeyDrop(){l.current[0]?.onStartSortAttempt()},endKeyDrop(){l.current[0]?.onEndSortAttempt()},focusReplayButton(){u.current?.focus()}}));const d=tV(a),m=sV(a,t),p=()=>{r?.({id:o})};return(0,s.jsxs)("div",{className:nl({complete:a?.percentViewed===100}),children:[(0,s.jsx)("div",{className:nl("spacer")}),d&&(0,s.jsxs)("div",{className:nl("cardholder"),children:[(0,s.jsxs)("div",{className:nl("title").mix("brand--ui"),children:[m," ",n.sortingCardsCorrect]}),(0,s.jsx)(l6,{allowTabNavigation:d,onClick:p,ref:u,text:n.sortingReplay})]}),(0,s.jsx)("div",{className:nl("content"),children:e.map((f,v)=>(0,s.jsx)(c6,{id:f.id,isDeckTopCard:l.current[v]===l.current[0],isIncorrect:nV(f,a),ref:C=>{l.current[v]=C},title:f.title},f.id))})]})},pa=ne("pile"),rV=({id:t,lessonId:e,deckTopCard:n,nextCard:o,isComplete:r=!1,onCardDrop:a,onNavigateToNext:i,onNavigateToPrevious:l,onKeyDropStart:u,onKeyDropEnd:d,title:m,ref:p})=>{const[f,v]=(0,h.useState)(void 0),[C,g]=(0,h.useState)(!1),[b,L]=(0,h.useState)(!0),[y,E]=(0,h.useState)(!1),[x,S]=(0,h.useState)(!1),[T,N]=(0,h.useState)(0),j=(0,h.useRef)(null),O=(0,h.useRef)(null),D=(0,h.useRef)(null),B=(0,h.useRef)(void 0),R=(0,h.useRef)(void 0),H=(0,h.useRef)(void 0),w=(0,h.useRef)(void 0),M=(0,h.useRef)(void 0),{announcePolite:z}=pt(),Z=(0,h.useEffectEvent)(()=>{if(r||!n)return;const le=n.id.toString(),He=n.pileId===t;a?.({id:e,itemId:le,isCorrect:He});const Pe=typeof n.title=="string"?n.title:n.title?.["en-US"]||"",Ke=typeof m=="string"?m:m?.["en-US"]||"";if(He){clearTimeout(R.current),clearTimeout(H.current),clearTimeout(w.current),v(n),g(!0),L(!1);const Fe=`Correct. ${Pe}, category: ${Ke}`;z(Fe);const ut=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";ut&&(w.current=setTimeout(()=>{z(`Next item. ${ut}`)},500)),R.current=setTimeout(()=>{v(void 0),g(!1)},1500),H.current=setTimeout(()=>{L(!0)},1300)}else clearTimeout(R.current),clearTimeout(H.current),clearTimeout(w.current),v(void 0),g(!1),L(!0),z("Incorrect. Choose another category.")});(0,h.useImperativeHandle)(p,()=>({focus(){O.current?.focus()}}));const Y=(0,h.useCallback)(()=>{const{innerWidth:le}=window,He=j.current&&j.current.scrollHeight>(j.current.offsetParent?.clientHeight??0),Pe=le<T;He&&le>T&&N(le),S(He||Pe)},[T]),X=(0,h.useCallback)(()=>{if(r||!n)return;u?.();const le=n.id.toString(),He=n.pileId===t;a?.({id:e,itemId:le,isCorrect:He});const Pe=typeof n.title=="string"?n.title:n.title?.["en-US"]||"Card",Ke=typeof m=="string"?m:m?.["en-US"]||"Pile";if(He){clearTimeout(R.current),clearTimeout(H.current),clearTimeout(w.current),v(n),g(!0),L(!1);const Fe=`Correct. ${Pe}, category: ${Ke}`;z(Fe);const ut=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";ut&&(w.current=setTimeout(()=>{z(`Next item. ${ut}`)},500)),R.current=setTimeout(()=>{v(void 0),g(!1)},1500),H.current=setTimeout(()=>{L(!0)},1300)}else clearTimeout(R.current),clearTimeout(H.current),clearTimeout(w.current),v(void 0),g(!1),L(!0),z("Incorrect. Choose another category.")},[r,n,o,t,e,m,u,a,z]),pe=(0,h.useCallback)(le=>{gr(le)?Zp(()=>l?.())(le):Cr(le)&&Zp(()=>i?.())(le)},[l,i]),Le=(0,h.useCallback)(()=>{r||(X(),clearTimeout(M.current),M.current=setTimeout(()=>d?.(),100))},[X,d,r]),ke=(0,h.useCallback)(()=>{E(!0)},[]),Be=(0,h.useCallback)(()=>{E(!1)},[]);(0,h.useEffect)(()=>{const le=D.current;if(!le)return;const He=Fe=>{const ut=Do.getElementRect(Fe.target),dt={x:ut.left+ut.width/2,y:ut.top+ut.height/2};Fe.draggable.draggable({snap:{targets:[dt]}})},Pe=Fe=>{Fe.draggable.draggable({snap:{targets:[(ut,dt)=>({x:ut,y:dt})]}})},Ke=Fe=>{Fe.draggable.draggable({snap:{targets:[(ut,dt)=>({x:ut,y:dt})]}}),Fe.stopPropagation?.(),Fe.preventDefault?.(),Z()};return Do(le).dropzone({overlap:"pointer"}).on("dragenter",He).on("dragleave",Pe).on("drop",Ke),Y(),B.current=yu()(Y,250),window.addEventListener("resize",B.current),()=>{Do(le).off("dragenter",He).off("dragleave",Pe).off("drop",Ke),clearTimeout(R.current),clearTimeout(H.current),clearTimeout(w.current),clearTimeout(M.current),B.current&&(B.current.cancel(),window.removeEventListener("resize",B.current))}},[]);const We=W()(pa(),{"drop-success":C,complete:r}),De=W()(pa("content"),{"drop-animating":!b&&!y}),Ae=pa("title",{"is-max-length":x}),he=typeof m=="string"?m:m?.["en-US"]||"Category";return(0,s.jsx)("div",{className:We,ref:D,children:(0,s.jsx)("div",{className:pa("wrapwrap"),children:(0,s.jsxs)(Gs,{className:pa("wrap"),overrideBackground:!0,children:[(0,s.jsx)("div",{"aria-hidden":"true",className:pa("message"),children:(0,s.jsx)(St,{className:Ae,ref:j,value:m})}),(0,s.jsx)("button",{"aria-disabled":r,"aria-label":he,className:De,disabled:r,onBlur:Be,onClick:Le,onFocus:ke,onKeyDown:pe,ref:O,type:"button",children:f&&(0,s.jsx)(c6,{id:f.id,title:f.title})}),(0,s.jsx)("div",{className:pa("background")})]})})})},Nm=ne("sorting"),aV=(t,e)=>!e||!e.items?t:t.filter(n=>!e.items?.[n.id]?.isViewed),iV=({id:t,labels:e,items:n,piles:o,onCardDrop:r,onReplay:a,progress:i})=>{const[l,u]=(0,h.useState)(()=>Pu()(n)),[d,m]=(0,h.useState)(!1),p=(0,h.useRef)([]),f=(0,h.useRef)(null),v=(0,h.useRef)(i?.retryAttempts),C=(0,h.useRef)(i?.percentViewed),g=(0,h.useRef)(void 0),b=(0,h.useRef)(void 0),L=(0,h.useRef)(void 0),{announcePolite:y}=pt(),E=(0,h.useEffectEvent)(()=>{p.current[0]?.focus()}),x=(0,h.useEffectEvent)(()=>{const R=i?.correctlyAnswered??0,H=n.length;y(`${R} of ${H} cards correct`)}),S=(0,h.useEffectEvent)(()=>{f.current?.focusReplayButton()});(0,h.useEffect)(()=>{const R=H=>{const{blockId:w,cardId:M}=Qa(H.detail.path,["block","card"]);t!==w||!M||u(z=>{const Z=z.find(X=>X.id===M),Y=z.filter(X=>X.id!==M);return Z?[Z,...Y]:z})};return window.addEventListener(_t,R),()=>{window.removeEventListener(_t,R)}},[t]),(0,h.useEffect)(()=>{const R=i?.retryAttempts,H=v.current;return R!==H?(v.current=R,u(Pu()(n)),clearTimeout(g.current),g.current=setTimeout(()=>{E()},100)):u(w=>{const M=n.filter(Y=>!w.find(X=>X.id===Y.id));return[...w.filter(Y=>n.find(X=>X.id===Y.id)).map(Y=>{const X=n.find(pe=>pe.id===Y.id);return X?{...Y,...X}:Y}),...M]}),()=>{clearTimeout(g.current)}},[n,i?.retryAttempts]),(0,h.useEffect)(()=>{const R=i?.percentViewed,H=C.current;return R===100&&H!==100&&(m(!0),clearTimeout(b.current),b.current=setTimeout(()=>{x()},500),clearTimeout(L.current),L.current=setTimeout(()=>{S()},100)),R!==100&&H===100&&m(!1),C.current=R,()=>{clearTimeout(b.current),clearTimeout(L.current)}},[y,i?.correctlyAnswered,i?.percentViewed,n.length]);const{sortingLandmark:T}=e,N=aV(l,i),j=T,O=N?.[0],D=O?typeof O.title=="string"?O.title:O.title?.["en-US"]||"":"",B=d?"Categories. Interaction completed.":D?`Categories. ${D}`:"Categories";return(0,s.jsxs)("div",{"aria-label":j,className:Nm(),role:"group",children:[(0,s.jsx)("div",{className:Nm("row"),children:(0,s.jsx)(oV,{count:l.length,id:t,items:N,labels:e,onReplay:a,progress:i,ref:f})}),(0,s.jsx)("ul",{"aria-label":B,className:Nm("row"),role:"list",children:o.map((R,H)=>(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(rV,{deckTopCard:N?.[0],id:R.id,isComplete:d,lessonId:t,nextCard:N?.[1],onCardDrop:r,onKeyDropEnd:()=>{f.current?.endKeyDrop()},onKeyDropStart:()=>{f.current?.startKeyDrop()},onNavigateToNext:()=>fk({list:p.current,currentIndex:H}),onNavigateToPrevious:()=>vk({list:p.current,currentIndex:H}),ref:w=>{p.current[H]=w},title:R.title})},R.id))})]})},cV=({blockId:t,lessonId:e})=>({itemId:n,isCorrect:o})=>(0,K.JD)((0,Jo.i$)({itemId:n,lessonId:e,blockId:t,isCorrect:o})),lV=({blockId:t,lessonId:e})=>()=>(0,K.JD)((0,Jo.V9)({lessonId:e,blockId:t})),dV=t=>{const{animateBlockEntrance:e,blockId:n,initiallyVisible:o,items:r,labels:a,piles:i,progress:l}=t,u=t.onCardDrop||cV,d=t.onReplay||lV;return(0,s.jsx)(Pt,{type:"sorting-activity",children:(0,s.jsx)(Dt,{animateBlockEntrance:e,initiallyVisible:o,isLearner:!0,children:(0,s.jsx)(iV,{id:n,items:r,labels:a,onCardDrop:u(t),onReplay:d(t),piles:i,progress:gt()({},["items",n],l)})})})};var d6=c(75189);class uV 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){d6.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 hV=uV,u6=(0,h.createContext)({translationHoveredPath:null});function mV(){return(0,h.use)(u6)}const pV=u6.Provider,fV=(0,h.lazy)(()=>c.e("webpack_container_remote_mondrian_learn-react").then(c.t.bind(c,4246,23))),vV={subscribe(t,e){const n=`mondrian:${t}`,o=()=>{st.isPlaying&&st.playerId!==n&&e()};return st.addChangeListener(o),()=>{st.removeChangeListener(o)}},play(t){const e=`mondrian:${t}`;st.playerId=e,st.isPlaying=!0}};function gV(t){const e={};return t.backgroundType==="IMAGE"&&(e["--color-background"]="transparent"),e.maxWidth=(t.contentWidth??9999)+"rem",e.minWidth="0",e.margin="0 auto",e}function CV({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 i=a.states[a.initialState];if(i){const l=i.width.value,u=i.height.value;typeof l=="number"&&typeof u=="number"&&(n=l,o=u)}}}}catch{}return(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-mondrian__fallback",height:o,width:n})}function xV({animateBlockEntrance:t=!0,initiallyVisible:e,blockumentId:n,isLearner:o=!1,settings:r,onStep:a,labels:i}){const l=(0,Ce.DX)(),u=l.mondrian,d=(0,Ce.SQ)(),m=(0,ws.y4)(),p=Gc(),f={externalLinksDisabled:"externalLinksDisabled"in l?l.externalLinksDisabled:!1,isExternalLink:Mn},{currentLocale:v}=(0,Vt.nY)(),C=(0,at.D_)(),g=mV(),b=(0,h.useMemo)(()=>({active:v,source:C}),[v,C]),L=(0,h.useCallback)(N=>p?.audioPlayerIdOpen===io({refs:`items:${n}/items:${N}`}),[n,p?.audioPlayerIdOpen]),y=(0,h.useCallback)(({refocusTarget:N,itemId:j,transcript:O})=>{L(j)?m(Vc()):m(yv({audioPlayerId:io({refs:`items:${n}/items:${j}`}),focusing:!0,refocusTarget:N,transcriptMedia:{mondrianTranscript:O}}))},[n,m,L]),E=(0,h.useCallback)(({itemId:N,transcript:j})=>{p?.audioPlayerIdOpen&&m(xr({audioPlayerId:io({refs:`items:${n}/items:${N}`}),transcriptMedia:{mondrianTranscript:j}}))},[n,m,p]),x=(0,h.useCallback)(N=>{m(xr({audioPlayerId:io({refs:`items:${n}/items:${N}`}),focusing:!0}))},[n,m]),S=(0,h.useMemo)(()=>({isPanelOpenForItem:L,focusPanel:x,togglePanel:y,updateTranscript:E}),[x,L,y,E]),T=(0,h.useCallback)(N=>{if(a)for(const j of Object.values(N))j.progress>=100&&a({id:j.itemId})},[a]);return(0,s.jsx)(Pt,{children:(0,s.jsx)(hV,{FallbackComponent:LV,children:(0,s.jsx)(Dt,{animateBlockEntrance:t,initiallyVisible:e,isLearner:o,children:(0,s.jsx)("div",{style:gV(r),children:(0,s.jsx)(h.Suspense,{fallback:(0,s.jsx)(CV,{blockumentId:n,manifest:u}),children:(0,s.jsx)(fV,{blockumentId:n,hoveredItemPath:g.translationHoveredPath,labels:i,linkRenderConfig:f,locale:b,manifest:u,mediaStoreAdapter:vV,onMediaProgress:T,runtimeInterface:window.Runtime,searchTerm:d?.term,transcriptPanelAdapter:S})})})})})})}const bV=(0,h.memo)(xV,yV);function yV(t,e){return t.blockumentId===e.blockumentId&&t.settings.backgroundType===e.settings.backgroundType&&t.settings.contentWidth===e.settings.contentWidth&&t.labels===e.labels}function LV(){return null}var h6=c(67750),as=c(15648);const Rs=ne("block-code"),EV=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/blocks/code_block_unavailable.svg`;function m6(t,e){const n=p6(h6.parse(t.data));for(const o of n)if(o.type==="notification")e[o.method]?.(o.params);else throw new Error(`Unsupported RPC type "${o.type}"`)}function*p6(t){if(Array.isArray(t))for(const e of t)yield*p6(e);else yield t}function f6(t,e,n){return as.useEffect(()=>{const r=new AbortController;return window.addEventListener("message",a=>{a.origin===window.origin&&e!=null&&t.current&&a.source===t.current.contentWindow&&m6(a,e)},{signal:r.signal}),()=>r.abort()},[e,t]),as.useCallback(r=>{t.current?.contentWindow?.postMessage(r,n)},[t,n])}const SV=(t,e,n)=>f6(t,n,window.origin),TV=(t,e,n)=>f6(t,n,"*"),IV=(t,e,n)=>{const[o,r]=as.useState(()=>new BroadcastChannel(e));return as.useEffect(()=>()=>o.close(),[o]),as.useEffect(()=>{o.name!==e&&r(new BroadcastChannel(e))},[o,e]),as.useEffect(()=>{const i=new AbortController;return o.addEventListener("message",l=>m6(l,n),{signal:i.signal}),()=>i.abort()},[o,n]),as.useCallback(i=>{o.postMessage(i)},[o])},NV=(0,Ge.Hm)()?cn.isLocalFilesystem?TV:IV:SV,jV=window.location.origin==="";function kV(t){let e=jV?"":"lib/sandbox/sandbox.html";return e+=`#channel=${encodeURIComponent(t)}`,e}function AV(t){return typeof t=="number"?`${t/10}rem`:"-1px"}const RV={0:"small",1:"medium",2:"full"};function PV({editBlock:t,errors:e,isDragPreview:n,isLearn:o,isSidebarPreview:r,items:a,labels:i,onClearErrors:l,onError:u,onStep:d,previewType:m,settings:p}){const f=as.useRef(null),C=(0,Ce.DX)()?.htmlBlocksDisabled,g=n||r||!!m,[b]=a,L=(0,at.QQ)(b.srcdoc),y=(0,at.QQ)(b.media),E=y?.sandbox?.src==null?void 0:`${y.sandbox.src}/index.html`,x=p?.autoResize===!0,S=p?.width??"0",[T,N]=as.useState("-1px");as.useEffect(()=>{x||N(AV(p?.height))},[x,p?.height]);const[j,O]=as.useState(0),[D,B]=as.useState(!1),[R,H]=as.useState(!1),[w]=as.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),M=kV(w),z=as.useCallback(()=>{d?.({id:b.id})},[b.id,d]),Z=as.useCallback(({message:Ae})=>{u?.({message:Ae}),H(!0),console.error("Sandbox Error",Ae)},[u,H]),Y=as.useCallback(()=>{l?.(),H(!1),O(Ae=>Ae+1)},[l]),X=as.useCallback(()=>{B(j>0)},[j]),pe=as.useCallback(({height:Ae})=>{x&&N(`${Ae}px`)},[x]),Le=as.useMemo(()=>({oncomplete:z,onerror:Z,onload:X,onready:Y,onresize:pe}),[z,Z,Y,X,pe]),ke=NV(f,w,Le),Be=as.useCallback((Ae,he)=>{if(f==null&&j===0)throw new Error("Attempted to send message to sandbox before it is ready");const le=h6.format.notification(Ae,he);ke(le)},[j,f,ke]),We=as.useCallback(()=>{window.location.reload()},[]),De=as.useCallback(()=>{t?.()},[t]);return as.useEffect(()=>{j&&Be("onupdate",{autoResize:x,src:E,srcDoc:L})},[x,j,Be,E,L]),o&&e!=null||R?(0,s.jsx)(Pt,{children:(0,s.jsxs)("div",{className:Rs("error-general",{learn:o}),children:[(0,s.jsx)("div",{className:Rs("error-message"),children:"Something went wrong"}),(0,s.jsx)("div",{className:Rs("error-message-subtitle"),children:"There was an error loading this code block. Please contact your admin if the issue continues."}),(0,s.jsx)(Ot.ArcButton,{className:Rs("error-button"),onClick:We,size:"lg",variant:"primary",children:"Refresh page"})]})}):e!=null&&Object.keys(e).length>0?(0,s.jsx)(Pt,{children:e[404]?(0,s.jsxs)("div",{className:Rs("error-404"),children:[(0,s.jsx)("div",{className:Rs("error-message"),children:"We couldn\u2019t find your file"}),(0,s.jsx)("div",{className:Rs("error-message-subtitle"),children:"Make sure your zip file contains an index.html file."}),(0,s.jsx)(Ot.ArcButton,{className:Rs("error-button"),onClick:De,size:"lg",variant:"primary",children:"Retry upload"})]}):(0,s.jsxs)("div",{className:Rs("error-general"),children:[(0,s.jsx)("div",{className:Rs("error-message"),children:"Something went wrong"}),(0,s.jsxs)("div",{className:Rs("error-message-subtitle"),children:["Try refreshing the page or entering your code again. If the issue isn't fixed,"," ",(0,s.jsx)("a",{href:"https://community.articulate.com/group/code-block",rel:"noopener noreferrer",target:"_blank",children:"visit our community"}),"."]}),(0,s.jsx)(Ot.ArcButton,{className:Rs("error-button"),onClick:We,size:"lg",variant:"primary",children:"Refresh page"})]})}):C&&!g?(0,s.jsx)(Pt,{children:(0,s.jsx)("div",{className:Rs("restricted"),children:(0,s.jsxs)("div",{className:Rs("restricted-card"),children:[(0,s.jsx)(I1,{alt:"",className:Rs("restricted-icon"),src:EV}),(0,s.jsx)("div",{className:Rs("restricted-title"),children:"Subscribe to unlock full access"}),(0,s.jsx)("div",{className:Rs("restricted-message"),children:"To protect learners from phishing, scams, or malicious redirects, code blocks are disabled when sharing with Quick Share during your trial."})]})})}):(0,s.jsx)(Pt,{children:(0,s.jsx)("iframe",{allow:"fullscreen",className:Rs({"auto-resize":x,loaded:g||D,width:RV[S]}),"data-rise-frontend-sandbox":"",loading:"lazy",ref:f,sandbox:"allow-forms allow-popups allow-same-origin allow-scripts",scrolling:x?"no":void 0,src:M,style:{"--block-html-height":T},title:i?.a11yBlockCode},w)})}const Nr=ne("timeline-card"),wV=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,mediaType:d,audioPosition:m}=t,{settings:p}=a,f=(0,at.QQ)(a.media)??{},v=d==="audio"&&f.audio,C=d==="embed"&&f.embed,g=d==="image"&&f.image,b=d==="video"&&f.video;if(!v&&!C&&!g&&!b&&!(d==="image-with-audio"&&r))return;const y=f.embed?Ti(f.embed):void 0,E=!!f.image,x=!!f.audio,S=E?f.image.align:"center",T=Nr("media",{audio:x&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${S}`]:r&&!!S,"audio-on-bottom":x&&!r&&m==="bottom",linkEmbed:y==="link",videoEmbed:y==="video",visual:!r&&E||!hn()(f.video)}),N=p||{};return(0,s.jsx)("div",{className:T,children:(0,s.jsx)(sn,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,media:f,opts:{disableZoom:n,...N},pauseOnLoad:!0,renderMediaType:r?void 0:d})})},MV=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:l}=t,{id:u}=o,d=Nr({active:r}),m=!!o.date,p=!!o.title,f=e||2,v=`h${f}`,C=`h${f+1}`,g=(0,at.QQ)(o.media)??{},b=Mo(g,i,!0,"timeline"),L=()=>{if(!g||!a)return null;const y={audio:{item:{...o,media:b.audioOnlyMedia||g},mediaType:"audio"},image:{item:{...o,media:b.imageOnlyMedia||g},mediaType:"image"},video:{item:{...o,media:b.videoOnlyMedia||g},mediaType:"video"},embed:{item:{...o,media:b.embedOnlyMedia||g},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:b.renderOrder.map((E,x)=>{if(E==="text")return(0,s.jsx)(St,{className:Nr("description"),value:o.description},`text-${x}`);const S=y[E];return S?(0,h.createElement)(wV,{...t,...S,key:`${E}-${x}`}):null})})};return(0,s.jsx)("div",{className:d,"data-id":u,ref:n,children:(0,s.jsx)(Gs,{className:Nr("body"),onFocus:l,children:(0,s.jsx)("div",{className:Nr("main-wrap"),children:(0,s.jsxs)("div",{className:Nr("main"),children:[m&&(0,s.jsx)("div",{className:Nr("date"),children:(0,s.jsx)(v,{children:(0,s.jsx)(bs,{value:o.date})})}),p&&(0,s.jsx)("div",{className:Nr("title"),children:(0,s.jsx)(C,{children:(0,s.jsx)(bs,{value:o.title})})}),L()]})})})})},ol=ne("timeline"),OV=t=>{const{audioPosition:e,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,initiallyVisible:i,isBlock:l,isLearner:u,item:d,labels:m,lessonId:p,onFocus:f}=t,v=(0,s.jsx)(MV,{audioPosition:e,blockId:a,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:d,labels:m,lessonId:p,lessonNumber:a,loadMedia:!0,onFocus:f});return l?u?(0,s.jsx)(Dt,{animateBlockEntrance:!0,className:ol("animate").toString(),initiallyVisible:i,isLearner:!0,children:v}):v:null},DV=t=>{const{id:e,items:n,labels:o,onEnter:r=Function.prototype,settings:a={}}=t,i=(0,h.useRef)(null),l=(0,h.useCallback)((u,d)=>{r({id:e,payload:{activeIndex:u,itemId:d}})},[e,r]);return(0,h.useEffect)(()=>{function u(d){const{blockId:m,cardId:p}=Qa(d.detail.path,["block","card"]);if(m!==e)return;const f=i.current.querySelector(`[data-id="${p}"]`);f&&!lh(f,"center")&&f.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(_t,u),()=>{window.removeEventListener(_t,u)}}),(0,s.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",ref:i,role:"group",children:(0,s.jsx)("div",{className:ol("wrapper"),children:(0,s.jsx)("div",{className:ol(),children:(0,s.jsx)("ul",{className:ol("container"),role:"list",children:n.map((u,d)=>(0,s.jsx)("li",{className:ol("card-wrapper"),role:"listitem",children:OV({index:d,item:u,onFocus:l,...t,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},d))})})})})},BV=t=>{const{animateBlockEntrance:e,blockId:n,enableVideoPlaybackSpeed:o,initiallyVisible:r,isLearner:a=!0,items:i,labels:l,lessonId:u,settings:d}=t;return(0,s.jsx)(Pt,{type:"timeline",children:(0,s.jsx)(Dt,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:r,isLearner:!0,children:(0,s.jsx)(DV,{enableVideoPlaybackSpeed:o,id:n,initiallyVisible:r,isBlock:!0,isLearner:a,items:i,labels:l,lessonId:u,settings:d})})})},HV=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 pn=c(93179),FV=c(15284),v6=c(27527),zV=c(39930),g6=c.n(zV),C6=c(29410);const VV=matchMedia("(forced-colors: active)");function rl(){return VV.matches}const UV=({activeIndex:t,values:e,opts:n})=>{const{background:o,variant:r}=ks(),{chartColor:a,lineCurve:i}=tn(),l=bn(),u=(0,Ce.kJ)(),d=n?.defaultFontColor,m=Ro(),p=m===k.xj.IMAGE,v=(0,at.QQ)(o?.media)?.image?.overlayColor??k.df.DARK,C=rl();let g=a??u,b=l||"#fff";!a&&m===k.xj.ACCENT||a===b?g=d:p&&(g=v===k.df.DARK?"#fff":"#000",b=v===k.df.DARK?"#000":"#fff"),C&&(g="Highlight",b="Canvas");let L=g,y=Array(e.length).fill(g);if(t!=null&&!C){const E=p&&v===k.df.LIGHT?.2:.7,x=(0,C6.A)(g,b,E);L=x,y=wR(x,g,e.length,t)}return r==="bar"?{backgroundColor:y,data:e,hoverBackgroundColor:y}:{borderColor:L,cubicInterpolationMode:i==="linear"?"default":"monotone",data:e,lineTension:i==="linear"?0:void 0,pointBackgroundColor:y,pointBorderColor:y,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:g,pointHoverBorderColor:g,pointHoverBorderWidth:0,pointRadius:4}};function $V({activeIndex:t,children:e,opts:n,values:o}){const r=UV({activeIndex:t,opts:n,values:o});return e(r)}class WV extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,identifier:n,index:o,label:r,value:a}=this.props,i=e!=null&&e!==o,l=W()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:l,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsx)("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",role:"separator",children:"|"}),(0,s.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const GV=WV,KV=({activeIndex:t,labels:e,letters:n,onEvent:o,values:r})=>{const a=Ud(n,Ud(e,r));return a.length===0?null:(0,s.jsx)("dl",{className:"block-chart__cartesianLegend",children:a.map(([i,[l,u]],d)=>(0,s.jsx)(GV,{activeIndex:t,identifier:i,index:d,label:l,onEvent:o,value:u},i))})},_V=(0,h.memo)(KV);var QV=c(2761),ZV=c.n(QV);function YV(t){const e=this.getLabelForValue(t),n=15,o=e.split(" "),r=[];let a="";return o.forEach(i=>{(a+i).length>n?(r.push(a),a=i):a+=(a.length>0?" ":"")+i}),r.push(a),r}const XV={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:YV,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function JV({values:t,contrastColor:e}){const n=ks(),o=Ro(),r=o===k.xj.IMAGE,a=(0,h.useMemo)(()=>PR(t),[t]);let i,l;const d=(0,at.QQ)(n?.background?.media)?.image?.overlayColor??k.df.DARK,m=r&&d===k.df.LIGHT;switch(o){case k.xj.LIGHT:case k.xj.GRAY:case k.xj.TINT:[i,l]=["#e1e1e1","#c9c9c9"];break;case k.xj.DARK:case k.xj.BLACK:case k.xj.IMAGE:[i,l]=["#ffffff80","#ffffffe9"];break;case k.xj.ACCENT:case k.xj.COLOR:{[i,l]=e==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&m&&([i,l]=["#00000080","#0000001a"]),a||(l=i),[i,l]}const qV=({onEvent:t,reduceMotion:e,shouldAnimate:n,values:o})=>{const r=bn(),{customBackgroundColorContrast:a}=tn(),i=(0,Ce.DX)(),l=(0,Ce.kJ)(),u=i?.theme?.accentContrast,d=Ro(),m=d===k.xj.IMAGE,p=ks(),f=rl(),v=(0,mt.cP)(r)?k.Em.LIGHT:k.Em.DARK,C=!a&&p?.family==="chart",g=a??k.Em.DARK,b=C?v:g,y=(0,at.QQ)(p?.background?.media)?.image?.overlayColor??k.df.DARK,E=m&&y===k.df.LIGHT,x=d===k.xj.ACCENT||d===k.xj.COLOR,S=d===k.xj.ACCENT?l:r,T=d===k.xj.ACCENT?u:b,N=Os({backgroundColor:S,contrast:T}),[j,O]=JV({values:o,contrastColor:N}),D=(0,h.useCallback)(R=>f&&m?E?"#000000":"#FFFFFF":R.tick.value===0?O:j,[j,f,O,m,E]);return(0,h.useMemo)(()=>{let R="#000";if(f)m?R=E?"#000000":"#FFFFFF":R="FieldText";else{switch(d){case k.xj.DARK:case k.xj.BLACK:case k.xj.IMAGE:R="#fff";break}x&&(R=N),m&&E&&(R="#000")}const H=n&&!e?1e3:0;let w,M;f?m?(w=R,M=E?"#FFFFFF":"#000000"):(w="Highlight",M="HighlightText"):(w=R,M=R==="#000"||R==="#000000"||R===k.Em.DARK?"#FFFFFF":"#000000");const z=ZV()(XV);return z.animation.duration=H,z.defaultFontColor=R,z.onClick=t,z.onHover=t,z.plugins.tooltip.animation=!e,z.plugins.tooltip.backgroundColor=w,z.plugins.tooltip.titleColor=M,f&&!m?(z.scales.x.grid.color="FieldText",z.scales.y.grid.color="FieldText"):(z.scales.x.grid.color=j,z.scales.y.grid.color=D),z.scales.x.ticks.color=R,z.scales.y.ticks.color=R,f&&(m?z.plugins.legend.labels.color=E?"#000000":"#FFFFFF":z.plugins.legend.labels.color="FieldText"),z},[d,N,j,x,f,m,E,t,e,D,n])};function eU(t){const{children:e,onEvent:n,reduceMotion:o,shouldAnimate:r,values:a}=t,i=qV({onEvent:n,reduceMotion:o,shouldAnimate:r,values:a});return e(i)}var tU=c(94906),jm=c.n(tU);const sU=/<mark>|<\/mark>/gm,nU=t=>e=>{const n=t(e.type).replace(sU,"")??"";return{label:jm()(n,{length:30}),l10nId:(0,Et.pP)(e?.type)}},oU=t=>parseFloat(t.value??"0"),x6=(t,e)=>({labels:t.map(nU(e)),values:t.map(oU)}),b6=(t,e,n)=>{const o=jm()(e,{length:t});return n?qA(o,n):o};function rU(){const[t,e]=h.useState(null),n=h.useRef(null),{announcePolite:o}=pt(),{a11yBlockChartPreposition:r}=(0,Ce.vU)()??{},a=h.useCallback(f=>{e(f)},[]),i=h.useCallback(()=>{n.current?.resize()},[]),l=h.useCallback(()=>{n.current?.update()},[]),u=h.useCallback(()=>{i(),l()},[i,l]),d=h.useCallback(()=>{const f=n.current;if(f==null)return;const v=f.getDatasetMeta(0),C=v.data;if(!C?.length)return;const g=0,L=[{datasetIndex:0,element:v.data[g],index:g}];f.setActiveElements(L),f.tooltip?.setActiveElements(L,{x:0,y:0}),f.update(),a(g);const y=f.data.labels[g],E=f.data.datasets[0].data[g];setTimeout(()=>{o(`${g+1} ${r??""} ${C.length} - ${y}: ${E}`)},0)},[r,o,n,a]),m=h.useCallback(()=>{const f=n.current;if(f==null)return;const v=[];f.setActiveElements(v),f.tooltip?.setActiveElements(v,{x:0,y:0}),f.update(),a(null),o(null)},[o,n,a]),p=h.useCallback(f=>{const v=n.current;if(v==null)return;const C=v.getDatasetMeta(0),g=C.data;if(!g?.length)return;let b=!1,L=t;switch(f.key){case"ArrowLeft":b=!0,L=(t-1+g.length)%g.length;break;case"ArrowRight":b=!0,L=(t+1+g.length)%g.length;break;case"Home":b=!0,L=0;break;case"End":b=!0,L=g.length-1;break}if(b&&(f.stopPropagation(),f.preventDefault()),L!==t){const E=[{datasetIndex:0,element:C.data[L],index:L}];v.setActiveElements(E),v.tooltip?.setActiveElements(E,{x:0,y:0}),v.update(),a(L);const x=v.data.labels?.[L],S=v.data.datasets[0].data[L];o(`${L+1} ${r??""} ${g.length} - ${x}: ${S}`)}},[r,t,o,n,a]);return h.useEffect(()=>{n.current&&(n.current.resize(),n.current.update())},[]),h.useEffect(()=>{n.current&&n.current.update()},[t]),{activeIndex:t,chartRef:n,onBlur:m,onFocus:d,onKeyDown:p,onEvent:a,onResize:u}}function y6(t){const e=n=>{const{activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:l,onKeyDown:u,onResize:d}=rU();return(0,s.jsx)(t,{...n,activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:l,onKeyDown:u,onResize:d})};return e.displayName=`withChartEvents(${t.displayName||t.name})`,e}const aU="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");class iU extends h.PureComponent{wrapRef;id;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??{};g6()(n)&&g6()(o)&&this.setState({labelYTop:`${(n+o)/2}px`})}};render(){const{props:{activeIndex:e,chartRef:n,getL10nValue:o,htmlIdBase:r,htmlIdTitle:a,onBlur:i,onFocus:l,onKeyDown:u,isDesktop:d,isVisible:m,items:p,itemsLabel:f,labels:v,onEvent:C,search:g,shouldAnimate:b,valuesLabel:L,variant:y},state:{labelYTop:E}}=this,x=b6(80,o(f),g),S=b6(30,o(L),g),T=x6(p,o),N=d?[]:aU.slice(0,p.length),j=d?T.labels:N.map(w=>({label:w})),O=m?T.values:Vv(0,p.length),D=`${r}-type`,B=`${r}-instructions`,R=j.map(w=>w.label),H=j.map(w=>w.l10nId).join(",");return(0,s.jsxs)("div",{className:"block-chart__cartesian",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:B,children:v?.a11yBlockChartInstructions}),(0,s.jsxs)("div",{className:"block-chart__cartesianChart",ref:this.wrapRef,children:[S&&Ci(S)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":(0,Et.pP)(L),style:{insetInlineEnd:E},children:[S,(0,s.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisY})]}),x&&Ci(x)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelX","data-l10n-id":(0,Et.pP)(f),children:[x,(0,s.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisX})]}),(0,s.jsx)(eU,{onEvent:this.handleEvent,reduceMotion:mn(),shouldAnimate:b,values:O,children:w=>(0,s.jsx)($V,{activeIndex:e,opts:w,values:O,children:M=>(0,s.jsxs)("div",{"aria-describedby":B,"aria-labelledby":`${a} ${D}`,className:"block-chart__cartesian-canvas-wrap",onBlur:i,onFocus:l,onKeyDown:u,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:D,children:y==="bar"?v?.a11yBlockChartBar:v?.a11yBlockChartLine}),(0,s.jsx)(v6.t1,{"aria-hidden":"true",data:{labels:R,datasets:[M]},"data-l10n-id":H,options:w,ref:n,role:"presentation",type:y,updateMode:"default"})]})})})]}),!d&&(0,s.jsx)(_V,{activeIndex:e,labels:T.labels,letters:N,onEvent:C,values:O})]})}}const cU=t=>({search:t?.search?.term??""});function lU(t){const e=Xt(t),n=Y7(960,"isDesktop","Desktop")(e),o=y6(n);return(0,ws.Ls)(cU)(o)}const dU=lU(iU),km=({valueType:t,value:e,values:n})=>t==="numeric"?String(e):MR(e/$v(n)),uU=t=>{if(rl())return"FieldText";const e=t.dataset.backgroundColor[t.dataIndex]??"#000";return(0,mt.xD)(e)===k.Em.DARK?lt.S6.DARK:lt.S6.LIGHT},hU=(t,e,n)=>km({valueType:t,value:e,values:n.dataset.data}),mU=(t,e)=>{const{label:n,dataset:o,parsed:r}=e[0],a=km({valueType:t,value:r,values:o.data});return`${n}: ${a}`},pU=(t,e)=>{const n=e.dataIndex,o=e.dataset.data??[1],r=o[n],a=t==null&&r/$v(o)>=.06;return t===n||a},fU=({activeIndex:t,onEvent:e,reduceMotion:n,settings:{valueType:o},shouldAnimate:r})=>{const a=rl();return{animation:{animateRotate:r&&!n,duration:r&&!n?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:e,onHover:e,maintainAspectRatio:!1,plugins:{datalabels:{color:uU,display:pU.bind(null,t),font:{size:12,weight:"bold"},formatter:hU.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!n,boxPadding:"14px 10px",callbacks:{label:()=>null,title:mU.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":lt.S6.LIGHT,titleColor:a?"HighlightText":lt.S6.DARK}},responsive:!1,rotation:130}},vU=({activeIndex:t,colors:e,hasBorder:n,values:o})=>{const r=bn(),a=rl(),i=t==null?e:e.map((l,u)=>u===t?l:(0,C6.A)(l,r||"#fff",.5));return a?{backgroundColor:i,hoverBackgroundColor:i,borderWidth:.5,borderColor:"rgba(255, 255, 255, 0.3)",data:o}:{backgroundColor:i,hoverBackgroundColor:i,borderWidth:0,data:o,...n&&{borderWidth:1,borderColor:"#000"}}};function gU({activeIndex:t,children:e,colors:n,hasBorder:o,values:r}){const a=vU({activeIndex:t,colors:n,hasBorder:o,values:r});return e(a)}class CU extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,color:n,index:o,label:r,value:a}=this.props,i=e!=null&&e!==o,l=W()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:l,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsxs)("dt",{className:"block-chart__circleLegendTerm",children:[(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:n,focusable:"false",role:"presentation",viewBox:"0 0 10 10",children:(0,s.jsx)("rect",{height:"10",rx:"1.5",width:"10"})}),(0,s.jsx)("span",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]}),(0,s.jsx)("dd",{className:"visually-hidden-always",children:a})]})}}const xU=CU,bU=({activeIndex:t,colors:e,hasBorder:n,labels:o,onEvent:r,values:a,valueType:i="numeric"})=>{const l=Ud(e,Ud(o,a));if(l.length===0)return null;const u=W()("block-chart__circleLegend",{"block-chart__circleLegend--border":n});return(0,s.jsx)("dl",{className:u,children:l.map(([d,[m,p]],f)=>(0,s.jsx)(xU,{activeIndex:t,color:d,index:f,label:m,onEvent:r,value:km({valueType:i,value:p,values:a})},m.label))})},yU=(0,h.memo)(bU),LU=(t,e)=>{const n=t.filter(a=>Number(a.value)>=0),o=x6(n,e),r=n.map(a=>a.color);return{...o,colors:r}};class EU extends h.PureComponent{wrapRef;id;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 fU({activeIndex:e,onEvent:this.handleEvent,reduceMotion:mn(),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,htmlIdBase:a,htmlIdTitle:i,onBlur:l,onFocus:u,onKeyDown:d,isVisible:m,items:p,labels:f,onEvent:v,settings:C}=this.props,{colors:g,labels:b,values:L}=LU(p,r),y=m?L:Vv(0,p.length),E=this.buildOptions(),x=`${a}-type`,S=`${a}-instructions`,T=b.map(j=>j.label),N=g.includes(n);return(0,s.jsxs)("div",{className:"block-chart__circle",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:S,children:f?.a11yBlockChartInstructions}),(0,s.jsx)("div",{className:"block-chart__circleChart",ref:this.wrapRef,children:(0,s.jsx)(gU,{activeIndex:e,colors:g,hasBorder:N,values:y,children:j=>(0,s.jsxs)("div",{"aria-describedby":S,"aria-labelledby":`${i} ${x}`,className:"block-chart__circle-canvas-wrap",onBlur:l,onFocus:u,onKeyDown:d,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:x,children:f?.a11yBlockChartPie}),(0,s.jsx)(v6.t1,{"aria-hidden":"true",data:{labels:T,datasets:[j]},options:E,ref:o,role:"presentation",type:"pie",updateMode:"default"})]})})}),(0,s.jsx)(yU,{activeIndex:e,colors:g,hasBorder:N,labels:b,onEvent:v,values:y,valueType:C?.valueType})]})}}function SU(t){const e=nk()(t),n=y6(e);return Xt(n)}const TU=SU(EU);pn.t1.register(pn.Bs,pn.A6,pn.E8,pn.PP,FV.A,pn.s$,pn.s$,pn.ZT,pn.No,pn.kc,pn.P$,pn.FN,pn.hE,pn.m_);const IU=t=>(0,mt.cP)(t.backgroundColor);class NU extends h.PureComponent{id;constructor(e){super(e),this.state={isVisible:!1},this.id=(0,dm.uniqueId)("chart-")}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||mn()})}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,initiallyVisible:r,isLearner:a,items:i,itemsLabel:l,labels:u,settings:d,title:m,valuesLabel:p,variant:f,renderTitle:v=this.renderTitle},state:{isVisible:C}}=this,g=IU(d),b=d?.headingLevel,L=b?`h${b}`:"h2",y=this.id,E=`${y}-title`;return(0,s.jsx)(Pt,{type:"chart",children:(0,s.jsx)(Dt,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:"block-chart__container",children:(0,s.jsx)("div",{className:"block-chart__row",children:(0,s.jsx)("div",{className:"block-chart__rowInner",children:(0,s.jsxs)("figure",{children:[(!o&&m||o)&&(0,s.jsx)("figcaption",{children:(0,s.jsx)(L,{className:"block-chart__title",id:E,children:v()})}),(0,s.jsx)("div",{className:"block-chart__chart",children:h.cloneElement(h.Children.only(n),{hasDarkBgColor:g,htmlIdBase:y,htmlIdTitle:E,isVisible:C,items:i,itemsLabel:l,labels:u,settings:d,shouldAnimate:e,valuesLabel:p,variant:f})})]})})})})})})}}const jU=NU;function L6(t){const e=n=>(0,s.jsx)(jU,{...n,children:(0,s.jsx)(t,{})});return e.displayName=`ChartWrap(${QA(t)})`,e}const kU=L6(dU),AU=L6(TU);var RU=c(15648);const PU=Cs()(It()("variant","storyline")),wU=fs()(PU,ps(),zr()(1));class MU extends RU.Component{render(){const{dividerNumber:e,family:n,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:i,initiallyVisible:l}=this.props,d={...xd()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:i,partnerContent:r,initiallyVisible:l};return Je("text","paragraph",d)||Je("text","table",d)?(0,s.jsx)(MO,{...d}):Je("text","heading paragraph",d)?(0,s.jsx)(zO,{...d}):Je("text","subheading paragraph",d)?(0,s.jsx)(VO,{...d}):Je("text","heading",d)?(0,s.jsx)(HO,{...d}):Je("text","subheading",d)?(0,s.jsx)(FO,{...d}):Je("text","two column",d)?(0,s.jsx)(OO,{...d}):Je("text","three column",d)?(0,s.jsx)(DO,{...d}):Je("text","four column",d)?(0,s.jsx)(BO,{...d}):Je("text","code",d)?(0,s.jsx)(Gg,{...d}):Je("impact","a",d)?(0,s.jsx)(qO,{...d}):Je("impact","b",d)?(0,s.jsx)(eD,{...d}):Je("impact","c",d)?(0,s.jsx)(tD,{...d}):Je("impact","d",d)?(0,s.jsx)(sD,{...d}):Je("impact","note",d)?(0,s.jsx)(nD,{...d}):Je("quote","a",d)?(0,s.jsx)(uD,{...d}):Je("quote","b",d)?(0,s.jsx)(hD,{...d}):Je("quote","c",d)?(0,s.jsx)(mD,{...d}):Je("quote","d",d)?(0,s.jsx)(pD,{...d}):Je("quote","background",d)?(0,s.jsx)(fD,{...d}):Je("quote","carousel",d)?(0,s.jsx)(gD,{...d}):Je("list","numbered",d)?(0,s.jsx)(yD,{...d}):Je("list","checkboxes",d)?(0,s.jsx)(LD,{...d}):Je("list","bulleted",d)?(0,s.jsx)(ED,{...d}):Je("image","hero",d)?(0,s.jsx)(TD,{...d}):Je("image","full",d)?(0,s.jsx)(Yg,{...d}):Je("image","text aside",d)?(0,s.jsx)(jD,{...d}):Je("image","text overlay",d)?(0,s.jsx)(AD,{...d}):Je("gallery","centered",d)||Je("gallery","full",d)?(0,s.jsx)(BD,{...d}):Je("gallery","two column",d)?(0,s.jsx)(sm,{...d}):Je("gallery","three column",d)?(0,s.jsx)(sm,{width:3,...d}):Je("gallery","four column",d)?(0,s.jsx)(sm,{width:4,...d}):Je("divider","divider",d)?(0,s.jsx)(FD,{...d}):Je("divider","numbered divider",d)?(0,s.jsx)(zD,{number:e,...d}):Je("divider","spacing divider",d)?(0,s.jsx)(VD,{...d}):Je("360","storyline",d)?(0,s.jsx)(xB,{...d,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):Je("interactive","accordion",d)?(0,s.jsx)(QD,{...d}):Je("interactive","tabs",d)?(0,s.jsx)(rB,{...d}):Je("interactive-fullscreen","labeledgraphic",d)?(0,s.jsx)(Cz,{...d}):Je("interactive-fullscreen","process",d)?(0,s.jsx)(kz,{...d}):Je("interactive-fullscreen","scenario",d)?(0,s.jsx)(Yz,{...d}):Je("interactive-fullscreen","sorting",d)?(0,s.jsx)(dV,{...d}):Je("interactive-fullscreen","timeline",d)?(0,s.jsx)(BV,{...d}):Je("buttons","button",d)?(0,s.jsx)(LB,{...d}):Je("buttons","button stack",d)?(0,s.jsx)(EB,{...d}):Je("flashcard","flashcard",d)?(0,s.jsx)(l3,{...d}):Je("flashcard","stack",d)?(0,s.jsx)(l3,{stack:!0,...d}):Je("knowledge","knowledge",d)?(0,s.jsx)(wi,{...d}):Je("continue","continue",d)?(0,s.jsx)(HB,{...d}):Je("multimedia","audio",d)?(0,s.jsx)(kB,{...d}):Je("multimedia","video",d)?(0,s.jsx)(im,{...d}):Je("multimedia","ai_avatar",d)?(0,s.jsx)(im,{...d}):Je("multimedia","custom video",d)?(0,s.jsx)(im,{...d,type:"customVideo"}):Je("multimedia","embed",d)?(0,s.jsx)(PB,{...d}):Je("multimedia","attachment",d)?(0,s.jsx)(DB,{...d}):Je("multimedia","code",d)?(0,s.jsx)(Gg,{...d}):Je("knowledgeCheck","multiple choice",d)?(0,s.jsx)(wi,{...d}):Je("knowledgeCheck","multiple response",d)?(0,s.jsx)(wi,{...d}):Je("knowledgeCheck","fillin",d)?(0,s.jsx)(wi,{...d}):Je("knowledgeCheck","matching",d)?(0,s.jsx)(wi,{...d}):Je("knowledgeCheck","draw from question bank",d)?(0,s.jsx)(wi,{...d}):Je("chart","bar",d)||Je("chart","line",d)?(0,s.jsx)(kU,{...d}):Je("chart","pie",d)?(0,s.jsx)(AU,{...d}):Je("mondrian","mondrian",d)?(0,s.jsx)(bV,{...d}):Je("textToVideo","textToVideo",d)?(0,s.jsx)(HV,{}):Je("survey","survey",d)?(0,s.jsx)(bz,{...d}):Je("html","inline",d)||Je("html","cdn",d)||Je("html","vibe",d)?(0,s.jsx)(PV,{...d,isLearn:!0}):`Unknown type: ${n} ${a}`}hasManySlBlocks(){const{items:e}=this.props;return e&&wU(e)}}function E6(t){return(0,s.jsx)(th,{block:t,children:(0,s.jsx)(MU,{...t})})}function Je(t,e,n){return n.family===t&&n.variant===e}function OU(){return document.querySelector(".page-wrap")}const S6=({children:t,onViewed:e})=>{const n=(0,h.useRef)(null),[o,r]=(0,h.useState)(!1),a=(0,h.useCallback)(()=>{o||(r(!0),e())},[o,e]),i=(0,h.useCallback)(l=>{const u=l[0];u!=null&&!o&&(u.isIntersecting||u.intersectionRatio>0)&&a()},[o,a]);return(0,h.useEffect)(()=>{const l=n.current;if(!l)return;const u=OU(),d=new IntersectionObserver(i,{root:u,threshold:0});return d.observe(l),()=>{d.disconnect()}},[i]),(0,s.jsx)("div",{ref:n,children:t})};var Am=c(15648);class DU extends Am.PureComponent{render(){return(0,s.jsx)(S6,{onViewed:this.handleViewed,children:Am.cloneElement(Am.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.items?.length){this.props.onViewed();return}if(!e.requiresInteraction){this.props.onViewed();return}(BU.test(e.variant)||HU.test(e.family))&&e.items.length>0&&this.handleStep(e.items[0])}}const BU=/tabs|carousel/,HU=/gallery/,FU=["timeline"],zU=({family:t,variant:e})=>(/interactive|flashcard|knowledge|continue|360/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(e))&&!FU.includes(e),VU=({family:t,settings:e})=>t==="html"&&e?.hasCustomCompletion,UU=({family:t,items:e})=>!!(t==="mondrian"&&e?.length),$U="draw from question bank",T6=t=>{const{animateBlockEntrance:e,block:n,className:o,color:r,courseId:a,courseTitle:i,defaultBackgroundColor:l,enableVideoPlaybackSpeed:u,handleNavigate:d,handleStorylineFullscreen:m,hideBlock:p,index:f,isLastBlock:v,isOnlyBlockInStep:C,labels:g,lessonId:b,lessonProgress:L,loadMedia:y,match:E,onContinue:x,partnerContent:S,prefersKeyboardNavigation:T,previewType:N,publishedAt:j,tenantId:O}=t,{blockId:D,family:B,items:R=[],variant:H,settings:w}=n,M=`block-${D}`,z=(0,K.wA)(),Z=l4({blockId:String(D),lessonId:String(b)}),Y=(0,h.useCallback)(De=>{const Ae=H===$U?R[0]:xs()(It()("id",De),R);z((0,Jo.re)({blockId:D,lessonId:b,items:[Ae]})),B==="continue"&&x(D,De)},[D,z,B,R,b,x,H]),X=(0,h.useCallback)(()=>{z((0,Jo.re)({blockId:D,lessonId:b,items:R}))},[D,z,R,b]),pe=(0,h.useCallback)(De=>{const Ae=R?.[0],he=Ae&&"id"in Ae?Ae.id:void 0;he&&z((0,Jo.RA)({blockId:D,itemId:he,lessonId:b,audioVideoPlayhead:De}))},[D,z,b,R]),Le=Yo()(n,{animateBlockEntrance:e,className:o?.toString(),color:r,courseId:a,courseTitle:i,defaultBackgroundColor:l,dividerNumber:Z,enableVideoPlaybackSpeed:u,family:B,handleNavigate:d,handleStorylineFullscreen:m,initiallyVisible:f===0,isHidden:p,isLastBlock:v,isLearner:!0,isOnlyBlockInStep:C,labels:g,lessonId:b,loadMedia:y,match:E,originalVariant:void 0,partnerContent:S,prefersKeyboardNavigation:T,previewType:N,progress:L,publishedAt:j,recordMediaPlayheadPosition:pe,tenantId:O}),ke=zU({family:B,variant:H})||VU({family:B,settings:w})||UU({family:B,items:R}),Be=_7(b,D),We=W()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":p});return(0,s.jsx)("div",{className:We,"data-block-id":D,"data-change-path":Be,children:ke?(0,s.jsx)(DU,{block:n,onStep:Y,onViewed:X,children:(0,s.jsx)(E6,{...Le})}):(0,s.jsx)(S6,{onViewed:X,children:(0,s.jsx)(E6,{...Le})})},M)},WU=({slides:t,currentSlide:e},n)=>(e.push(n),n.settings?.attachedToNextBlock||(t.push(e),e=[]),{slides:t,currentSlide:e}),GU=t=>{const{slides:e}=Qd()(WU,{slides:[],currentSlide:[]},t);return e};function Rm(t,e,n){if(t.length){const r=t.slice(-1)[0];if(!al(r.id,n))return t}const o=AR(KU(n),e.slice(t.length)).map(_U);return o.length?Rm(t.concat(o),e,n):t}const al=(t,e)=>gt()(!1,["items",t,"isComplete"],e),KU=t=>({family:e,items:n})=>{const o=gt()({},0,n);return e==="continue"&&!al(o.id,t)};function _U(t,e,n){const o=n.slice(-1)[0]||{},{family:r}=o,a=r==="continue"?gt()(!1,["items",0,"type"],o):!1;return t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer?Yo()(t,{requiresInteraction:!0}):t.variant!=="continue"&&(!a||a==="completeBlock"&&e!==n.length-1&&e!==n.length-2)?t:Yo()(t,{requiresInteraction:!0})}function I6({id:t,...e},n,o,r){if(e.family==="continue"){const a=gt()("",["items",0,"type"],e);return Yo()({blockId:t,...e},{skipContinue:r,canContinue:QU({continueType:a,blocks:n,progress:o}),lessonProgress:o,isComplete:al(t,o)})}return{blockId:t,...e}}const QU=({continueType:t,blocks:e,progress:n})=>{switch(t){case"completeAll":return co()(ps()(e),JU(n));case"completeBlock":return e.length===0?!0:al(qU(e),n);default:return!0}},ZU=$e()(wo(),Ct()("items")),YU=t=>$e()(XU,ZU)(t),XU=Cs()(It()("isComplete",!0)),JU=$e()(ps(),YU),qU=$e()(Ct()("id"),Ta()),e$=({family:t,variant:e,isComplete:n,requiresInteraction:o})=>t==="continue"&&e==="continue"&&o&&!n,t$=(t,e)=>!!t.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!e?.items?.[o?.id]?.isComplete}),s$=t=>t.length===0?!1:Nh()(e$,t),n$=(t,e)=>t.length===0?!1:t$(t,e),o$=({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}),N6=({blocks:t,lessonProgress:e,currentBlockIndex:n})=>{const o=o$({blocks:t,lessonProgress:e});return o>-1&&n>o},r$=(t,e)=>{const n=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(t)||n.includes(e)};function j6(){const{pathname:t}=new URL(window.location.href);return t.split("/")[1]==="review"}function k6(){const t=window.location.hash.slice(1),e=new URLSearchParams(t.split("?")[1]??"");return j6()&&!!e.get("locale")}function a$(t,e,n){if(!t||!e||!j6())return!1;if((0,Et.uQ)(n,{l10n:e}))return!0;const{locales:o,defaultLocale:r}=e,a=o.find(i=>i.locale===r)?.id;return a&&a!==t}class i$ extends h.Component{ref=h.createRef();constructor(...e){super(...e),this.state={randomQuestions:{},transitioning:!1,isBlockActionsSidebarPreview:!1},this.handleContinue=this.handleContinue.bind(this),this.handleScrollToBlock=this.handleScrollToBlock.bind(this),this.handlePreviewMessage=this.handlePreviewMessage.bind(this),window.addEventListener(_t,this.handleScrollToBlock),window.addEventListener("message",this.handlePreviewMessage)}componentDidUpdate(e){this.scrollIfContinued(),e.isLessonEntering&&!this.props.isLessonEntering&&this.scrollToBlockAfterEnter!=null&&this.scrollToBlock(this.scrollToBlockAfterEnter)}componentWillUnmount(){window.removeEventListener(_t,this.handleScrollToBlock),window.removeEventListener("message",this.handlePreviewMessage)}handlePreviewMessage(e){if(e.origin!==window.location.origin)return;(Array.isArray(e.data)?e.data:[e.data]).forEach(o=>{o?.type==="preview:lessonUpdate"&&this.setState({isBlockActionsSidebarPreview:!0})})}render(){const{className:e,isOnePage:n}=this.props,o=W()("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,lessonProgress:n,isLocalizedReviewMode:o}=this.props,{isBlockActionsSidebarPreview:r}=this.state,a=o||r;return(a?e:Rm([],e,n)).map(this.buildBlock.bind(this,this.props.lessonProgress,a)).filter(ig.A)}handleContinue(e,n){const{blocks:o,handleNavigate:r,lessonId:a,lessonProgress:i,nextLesson:l}=this.props;al(n,i)||(this.continueFromId=e),e===o[o.length-1]?.id&&l&&((0,K.JD)((0,Jo.eQ)(a)),r(l))}buildBlock(e,n,o,r,a){const{animateBlockEntrance:i,blocks:l,color:u,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:v,labels:C,lessonId:g,loadMedia:b,match:L,partnerContent:y,prefersKeyboardNavigation:E,previewType:x,publishedAt:S,tenantId:T}=this.props,{isBlockActionsSidebarPreview:N}=this.state,j=I6(o,a.slice(0,-1),e,n),O=a.length-1,B=j.family==="continue"?o.id===l[l.length-1]?.id:r===O,R=!N&&N6({blocks:l,lessonProgress:e,currentBlockIndex:r});return(0,s.jsx)(T6,{animateBlockEntrance:i,block:j,color:u,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:v,hideBlock:R,index:r,isFirstLesson:!0,isLastBlock:B,labels:C,lessonId:g,lessonProgress:e,loadMedia:b,match:L,onContinue:this.handleContinue,partnerContent:y,prefersKeyboardNavigation:E,previewType:x,publishedAt:S,tenantId:T},j.blockId)}scrollIfContinued(){if(this.continueFromId){const{blocks:e}=this.props,n=bo()(It()("id",this.continueFromId),e),o=kn()(n),r=gt()(null,["blocks",o,"id"],this.props);if(r){const a=document.querySelector(".page-wrap"),i=a.querySelector(`[data-block-id="${r}"]`),l=i?i.getBoundingClientRect().top:0;zc.Ay.animateScroll.scrollTo(l+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 c$=(t,e)=>{const{currentLocale:n}=e;return{isOnePage:La(t),isCourseLocalized:Or(t),isLocalizedReviewMode:a$(t.course?.defaultLocaleId,t.l10n,n)}},A6=$e()(J1.A,Vt.wZ,(0,K.Ng)(c$))(i$);function Mu({children:t}){const e=(0,h.useRef)(),n=(0,h.useCallback)(()=>{e.current?.focus?.()},[]);return MN(n),(0,s.jsx)("main",{className:"lesson-main",ref:e,tabIndex:"-1",children:t})}const l$=ne("page"),R6=({type:t,children:e})=>(0,s.jsx)("div",{className:l$({lessonTypeQuiz:t==="quiz"}),"data-page":!0,"data-type":t,children:e});R6.propTypes={type:Qe().string.isRequired,children:Qe().node.isRequired};const il=R6,Di=({type:t,children:e})=>{const n=t==="video"||t==="embed"||t==="blocks"||t==="progress-summary",o=W()("page__wrapper",{"page__wrapper--white":n});return(0,s.jsx)("div",{className:o,children:e})};Di.propTypes={type:Qe().string.isRequired,children:Qe().node.isRequired};const Bi=({className:t,type:e,children:n})=>{const o=W()("page__content",t,{"page__content--timeline":e==="timeline"});return(0,s.jsx)("div",{className:o,children:n})};Bi.propTypes={type:Qe().string,children:Qe().node.isRequired};const d$=({animateBlockEntrance:t,color:e,courseId:n,courseTitle:o,data:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:l,labels:u,lessonHeader:d,lessonHeaderWrapClasses:m,lessonHeaderWrapStyles:p,lessonProgress:f,loadMedia:v,match:C,nextLesson:g,partnerContent:b,prefersKeyboardNavigation:L,previewType:y,publishedAt:E,tenantId:x,hideLessonHeaders:S})=>{const{id:T,items:N,type:j}=r,O={animateBlockEntrance:t,blocks:N,color:e,courseId:n,courseTitle:o,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:l,isFirstLesson:!0,labels:u,lessonId:T,lessonProgress:f,loadMedia:v,match:C,nextLesson:g,partnerContent:b,previewType:y,prefersKeyboardNavigation:L,publishedAt:E,tenantId:x,type:j};return(0,s.jsx)(il,{type:j,children:(0,s.jsx)(Di,{type:j,children:(0,s.jsxs)(Mu,{children:[(0,s.jsx)("div",{className:m,inert:S,style:p,children:d}),(0,s.jsx)(Bi,{children:(0,s.jsx)(A6,{...O})})]})})})},u$=t=>({partnerContent:gt()([],["partnerContent","content"],t)}),h$=(0,K.Ng)(u$)(d$);var m$=c(31051);const p$=({percentComplete:t,trackingCompletionPercentage:e,labelCompletionRequirement:n="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:i="Requirement not completed, empty square"})=>{const l=(0,Ce.Wz)();if(hn()(e))return null;const u=ci({percent:e,label:o,isRTL:l}),d=l?`%${t}`:`${t}%`;return(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.jsx)("div",{children:u}),(0,s.jsxs)("div",{children:[r,"\xA0",(0,s.jsx)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:d})]})]})]}),(0,s.jsx)(P6,{labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:i,requirementMet:e<=t})]})},f$=({outOfAttempts:t,quizPassed:e,quizPassingScore:n,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:i="Quiz Requirement",labelScoreOf:l="Score of",labelScoreOfPreposition:u="% on",labelViewQuiz:d="View quiz",labelYouScored:m="You scored",labelNoAttemptsRemaining:p="No attempts remaining.",labelA11yRequirementCompleted:f="Requirement completed, check mark",labelA11yRequirementNotCompleted:v="Requirement not completed, empty square"})=>{const C=(0,Ce.Wz)();if(!a)return null;const g=ci({percent:n,label:u,isRTL:C});return(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:i}),(0,s.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,s.jsxs)("div",{children:[l," ",g," ",r]}),hn()(o)?(0,s.jsx)("div",{children:(0,s.jsx)(On,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:d})}):(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)(P6,{labelA11yRequirementCompleted:f,labelA11yRequirementNotCompleted:v,requirementMet:e})]})},P6=({requirementMet:t,labelA11yRequirementCompleted:e,labelA11yRequirementNotCompleted:n})=>t?(0,s.jsx)(it,{"aria-label":e,classNameIcon:"progress-summary__requirement-checkbox-checked",name:"square-check"}):(0,s.jsx)("div",{"aria-label":n,className:"progress-summary__requirement-checkbox-empty",role:"img"}),v$=({dueAt:t})=>t?(0,s.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:u1(t)}):null;var g$=c(33312),C$=c.n(g$),x$=c(15648);const b$=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class y$ extends x$.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)(C$(),{colors:b$,gravity:.4,height:window.innerHeight,numberOfPieces:500,recycle:e,run:n,width:window.innerWidth})})}}const L$=y$;var E$=c(58950),S$=c.n(E$),T$=c(15697),I$=c.n(T$),N$=c(86274);const w6=ne("progress-summary-card"),j$=({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:W()("progress-summary-card__due-label",{"brand--color":n}),children:r}):null,k$=({cardImageKey:t=null,className:e,color:n="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:i=!1,enrolledAt:l=null,hidden:u=!1,imagesUri:d="",isLearningPath:m=!1,isUrgent:p=!1,labelAssignedToMe:f="",labelDue:v="",labelDuration:C="",labelLearningPath:g="",onClick:b=qs.lQ,progress:L=0,title:y=""})=>{const E=(0,nt.useLabelsMap)(),x=(0,Ce.Wz)(),S=o!==null,T=(0,h.useCallback)(()=>{a||b?.()},[a,b]),N=(0,h.useCallback)(w=>{Ld(w)&&w.preventDefault(),!a&&ea(w)&&b?.()},[a,b]),j=ci({percent:Math.round(L),label:E?.progressSummaryPercentComplete||"% Complete",isRTL:x}),O=t||r,D=E?.progressSummaryCompleted||"Completed: ",B=`${eo()(new Date(o)).format("MM/DD/YY")}`,R=w6("card",{disabled:a}),H=w6("image-overlay",{"not-started":!(L||S),"in-progress-completed":L||S});return(0,s.jsxs)("div",{"aria-hidden":u,className:R,onClick:T,children:[(0,s.jsxs)("div",{className:"progress-summary-card__content",children:[(0,s.jsx)("button",{"aria-disabled":a,className:W()("progress-summary-card__title-button",{[e]:e}),onKeyDown:N,role:"link",tabIndex:u?-1:void 0,type:"button",children:(0,s.jsx)("span",{className:"progress-summary-card__title",children:y||E?.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:g}),l&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:f}),!!L&&!a&&!o&&(0,s.jsx)("span",{className:"progress-summary-card__hide",children:j}),!i&&!S&&(0,s.jsx)("div",{className:"progress-summary-card__duration",children:C}),(0,s.jsx)(j$,{completedDate:B,completeLabel:D,isComplete:S,isUrgent:p,labelDue:v})]})]}),(0,s.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,s.jsx)(N$.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:O,imagesUri:d,s:"cover",style:{backgroundColor:n},w:300}),(0,s.jsx)("div",{className:H}),(0,s.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!L&&!a&&!S&&(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:`${L}%`}})})})})]})]})},A$=(0,Ge._$)("IMAGES_URI"),R$=["cardImageKey","color","coverImageKey","progress","score","title"],M6=(t,e)=>t===1?e:e.concat("s"),Pm=gt()([],["course","course","lessons"]),P$=t=>$e()(rn(),$f()(vr()(It()("type","section"),I$()(fr()(Dv(),t),"id"))),Pm),w$=t=>{const e=Pm(t),{trackingQuizId:n}=t,{score:o}=t;if(n&&e.length){const r=xs()(It()("id",n),e),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},M$=$e()(xs()(Vd()(It()("type","section"))),Pm),O$=M1()(2,t=>$e()(Ws()("","id"),xs()(Boolean),S$()([P$(t),w$,M$]))),D$=t=>{const e=eo().duration(t),n=e.hours(),o=e.minutes(),r=`${n} ${M6(n,"hr")}`,a=`${o} min`;return n>=100?"100+ hrs":n>0&&o>0?[r,a].join(" "):n>0?r:a},B$=t=>{const{color:e,learningPathComplete:n,learningPathId:o,isSuccess:r,nextCourse:a,nextCourse:{dueAt:i,courseId:l="",lessonCount:u,lessonsCompleted:d=[],sourceType:m,timeToComplete:p}={}}=t,f=(0,nt.useLabelsMap)(),v=(0,h.useMemo)(()=>O$(d,a),[a,d]);hn()(a.color)&&(a.color=e);const C=Us()(R$,a),g=(0,h.useCallback)(()=>{m==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",l),top.location.assign(`/learning-path/${o}`)):(0,Mt.kT)(`${l}/lessons/${v}`)},[l,o,v,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)(it,{"aria-hidden":"true",classNameIcon:"progress-summary__lp-next-label-icon",name:"arrow-right"})]}),(0,s.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,s.jsx)(k$,{imagesUri:A$,labelCount:`${u} ${M6(u,"lesson")}`,labelDue:u1(i),labelDuration:D$(p),noCertDownload:!0,noFavoriteBtn:!0,onClick:g,...C})})]})})},H$=Ct()("learningPathUpNext"),F$=(0,K.Ng)(H$)(B$),z$=`${(0,Ge._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,V$=$e()(ps(),Cs()(Ct()("isComplete")),wo()),U$=t=>{const{color:e,course:n={},courseProgress:o={},fetchLpUpNext:r,lessons:a=[],learningPathComplete:i,lpHasFailedQuiz:l}=t,{lessons:u={},percentComplete:d}=o,{dueAt:m,certificateDownload:p,completionCelebration:f,lessonsOnly:v=[],riseComLearningPathId:C,trackingCompletionPercentage:g,trackingQuizId:b}=n,L=Co(),y=(0,nt.useLabelsMap)(),E=hn()(g)&&hn()(b),x=E?d===100:(0,qe.As)(),S=v.length,T=V$(u);(0,h.useEffect)(()=>{C&&r()},[]);const N=(0,h.useMemo)(()=>x?n.completedAt?n.completedAt:new Date:null,[n.completedAt,x]),j=(0,h.useMemo)(()=>xs()(tu()(It()("type","quiz"),It()("id",b)),a),[b,a]),O=cs(j?.title),D=(0,h.useMemo)(()=>gt()(100,["settings","passingScore"],j),[j]),B=gt()(null,["lessons",b,"passed"],o),R=(0,h.useMemo)(()=>$e()(ni()(It()("percentComplete",100),Ct()("score"),rs()(null)),gt()({},["lessons",b]))(o),[o,b]),{outOfAttempts:H}=tc(o,j,b);let w=b?B:!0,M=mn();const z=W()("progress-summary",{"progress-summary__no-req":E}),Z=(0,zs.c3)(n),Y=`You've completed ${T} of ${S} lessons.`,pe=Z?x?"Complete":"Incomplete":Y;return(0,s.jsx)(ra,{title:Bc(L+" - Progress Summary"),children:(0,s.jsxs)("div",{className:z,children:[x&&f&&w&&!M&&(0,s.jsx)(L$,{}),(0,s.jsxs)("header",{className:"progress-summary__header",children:[(0,s.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:x&&!E&&w?y?.progressSummaryCongratulations||"Congratulations!":y?.progressSummary||"Progress Summary"}),E?(0,s.jsx)("div",{className:"progress-summary__lessons-completed",children:pe}):x?(0,s.jsxs)("div",{className:"progress-summary__header-completion-date",children:[w&&(0,s.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:z$}),eo()(N).format("MMMM Do, YYYY")]}):(0,s.jsx)(v$,{dueAt:m})]}),(0,s.jsxs)("section",{className:"progress-summary__section",children:[!E&&x&&(0,s.jsx)("div",{className:"progress-summary__requirements-met",children:y?.progressSummaryRequirementsMet||"You've met all the requirements."}),E?!C&&(0,s.jsxs)(On,{className:"progress-summary__start-over",to:"/",children:[y?.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)(p$,{labelA11yRequirementCompleted:y?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:y?.a11yProgressSummaryRequirementNotCompleted,labelCompletionRequirement:y?.progressSummaryCompletionRequirement,labelPercentCompletion:y?.progressSummaryPercentCompletion,labelYouCompleted:y?.progressSummaryYouCompleted,percentComplete:d,trackingCompletionPercentage:g}),(0,s.jsx)(f$,{labelA11yRequirementCompleted:y?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:y?.a11yProgressSummaryRequirementNotCompleted,labelNoAttemptsRemaining:y?.progressSummaryNoAttemptsRemaining,labelQuizRequirement:y?.progressSummaryQuizRequirement,labelScoreOf:y?.progressSummaryScoreOf,labelScoreOfPreposition:y?.progressSummaryScoreOfPreposition,labelViewQuiz:y?.progressSummaryViewQuiz,labelYouScored:y?.progressSummaryYouScored,outOfAttempts:H,quizPassed:B,quizPassingScore:D,quizScore:R,quizTitle:O,trackingQuizId:b})]}),(x||E)&&(0,s.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,s.jsx)("button",{className:"progress-summary__btn-back progress-summary__completion-control",onClick:Mt.NS,role:"link",type:"button",children:y?.progressSummaryBackToLearning||"Back to my learning"}),x&&(!C&&p||C&&i)&&p&&w&&!l&&(0,s.jsx)("span",{className:"progress-summary__completion-control",children:(0,s.jsx)(Uo,{})})]})]}),x&&!!C&&(0,s.jsx)(F$,{color:e,learningPathId:C})]})})},$$=(t,{course:{riseComCourseId:e,riseComLearningPathId:n}})=>({fetchLpUpNext:$e()(t,m$.R,rs()({courseId:e,learningPathId:n}))}),W$=$e()(Us()(["learningPathComplete","lpHasFailedQuiz"]),Ct()("learningPathUpNext")),G$=(0,K.Ng)(W$,$$)(U$),O6=({contentClassName:t,...e})=>(0,s.jsx)(il,{type:Ou.type,children:(0,s.jsx)(Di,{type:Ou.type,children:(0,s.jsx)(Mu,{children:(0,s.jsx)(Bi,{className:t,type:Ou.type,children:(0,s.jsx)(G$,{...e})})})})}),Ou={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"};var K$=c(22473),Du=c.n(K$),_$=c(98280),Q$=c.n(_$),Z$=c(87181),Y$=c.n(Z$);const D6=At("Progress");var X$=c(89982),B6=c.n(X$),J$=c(37859),Bu=c.n(J$),q$=c(29902),H6=c.n(q$),eW=c(79277),tW=c.n(eW);const sW=t=>e=>{const n=!t.progress?.items?.[e.id]?.isComplete;return gt()(!1,["settings","shuffleAnswerChoices"],t)&&n},nW=t=>{const e=t.answers||[],n=Pu()(e),o=n.map(r=>e.findIndex(a=>a.id===r.id));return{...t,answers:n,shuffledAnswerIndices:o}},oW=t=>dn()([[sW(t),nW],[Li(),sr()]]),rW=t=>mi()({items:Bn()(oW(t))})(t),aW=t=>{const{items:e,progress:n}=t,{items:o}=n||{},r=$e()(String,Ct()("id")),a=Hv(o,Ct()("isComplete")),l=Fv(r,a)(e),u=$e()(Qs(),Ct()("isComplete")),d=Hv(o,u),p=Fv(r,d)(e);return l.concat(Pu()(p))},iW=Qh()("items",aW),cW=t=>$e()(Du()(xs(),t),It()("id"),Ct()("id")),F6=or()(t=>B6()(cW(t),sr())),lW=t=>$e()(Bu()(sl()),F6(t)),dW=fs()(Hp()(Ct()("answers"),Ct()("answers")),Bu()(or()(t=>Bn()(lW(t)))),zp()("answers")),uW=t=>fs()(F6(t),B6()(dW,Bu()(sl())),Bu()(sl())),hW=Du()(t=>Bn()(uW(t))),mW=Cs()(It()("drawn",!0)),Hu=bo()(It()("type",vt.UQ.DRAW_FROM_QUESTION_BANK)),pW=({items:t,currentItems:e,progress:n})=>{let o=[...t],r=Hu(o);for(;r!==-1;){const[i,l]=H6()(r,o),u=tW()(l),d=mW(e);o=[...i,...d,...u],r=Hu(o)}const a=z6({items:o,progress:n});return{items:o,progress:a}},fW=t=>(e,{id:n},o)=>{const{originalItemProgress:r}=t;let a={};r&&(a=r[o]||{});const i=$e()(xs()(It()("index",o)),wo())(t.items);return e[n]={...a,...i,id:n,index:o},e},z6=({questionIndexList:t,items:e,progress:n})=>({...n,questionsDrawn:!0,questionList:t,items:e.reduce(fW(n),{})}),V6=t=>{const{id:e,items:n,progress:o,initializeDrawnQuizQuestions:r}=t;let a=[...n],i=Hu(a);const l=[];let u=0;for(;i!==-1;){const[m,p]=H6()(i,a),[f,...v]=p,{drawCount:C,questions:g}=f,b=k6()?g.length:C,L=[],y=[],E=[];for(;L.length<b;)if(o.questionsDrawn){const x=o.questionList[u];Sm()(S=>{const T=g[S];L.push({...T,drawn:!0,id:`${f.id}-${T.id}`})},x),E.push(...x)}else{const x=k6()?g[L.length]:K3({questions:g,drawnQuestionIds:y}),S=g.findIndex(T=>T.id===x.id);L.push({...x,drawn:!0,id:`${f.id}-${x.id}`}),y.push(x.id),E.push(S)}a=[...m,...L,...v],l.push(E),u++,i=Hu(a)}const d=z6({questionIndexList:l,items:a,progress:o});return r({lessonId:e,lessonProgress:d}),{items:a,progress:d}},vW=gt()(!1,["settings","randomizeQuestionOrder"]),U6=fs()(Jr()(vW,iW),rW,Ct()("items")),Ine=({lessonIds:t,lessons:e})=>!Array.isArray(t)||!e?!1:t.some((n,o)=>{const r=e[n];return r?.type!=="quiz"||r.settings?.skipLessonsIfPassed!==!0?!1:t.slice(o+1).some(i=>{const l=e[i];return l&&l.type!=null&&l.type!=="section"})}),gW=(0,I.shape)({a11yAnswerLive:I.string,a11yAuthorPrefix:I.string,a11yBlockChartAxisX:I.string,a11yBlockChartAxisY:I.string,a11yBlockChartBar:I.string,a11yBlockChartInstructions:I.string,a11yBlockChartLine:I.string,a11yBlockChartPie:I.string,a11yBlockChartPreposition:I.string,a11yBlockCode:I.string,a11yBlockCodeSnippet:I.string,a11yBlockEmbed:I.string,a11yBlockFlashcardBack:I.string,a11yBlockFlashcardFront:I.string,a11yBlockFlashcardGrid:I.string,a11yBlockFlashcardStack:I.string,a11yBlockFlashcardStackRoleDescription:I.string,a11yBlockFlashcardStackSlideControls:I.string,a11yBlockFlashcardStackSlideControlsGoToNext:I.string,a11yBlockFlashcardStackSlideControlsGoToPrevious:I.string,a11yBlockFlashcardStackSlideControlsGoToSlide:I.string,a11yBlockFlashcardStackSlidePreposition:I.string,a11yBlockFlashcardStackSlideRoleDescription:I.string,a11yBlockKnowledgeCheck:I.string,a11yBlockKnowledgeCheckFIB:I.string,a11yBlockKnowledgeCheckM:I.string,a11yBlockKnowledgeCheckMC:I.string,a11yBlockKnowledgeCheckMR:I.string,a11yBlockProcessCarousel:I.string,a11yBlockProcessRoleDescription:I.string,a11yBlockProcessSlideControls:I.string,a11yBlockProcessSlideControlsGoToNext:I.string,a11yBlockProcessSlideControlsGoToPrevious:I.string,a11yBlockProcessSlideControlsGoToSlide:I.string,a11yBlockProcessSlideControlsIntroduction:I.string,a11yBlockProcessSlideControlsSummary:I.string,a11yBlockProcessSlidePreposition:I.string,a11yBlockProcessSlideRoleDescription:I.string,a11yBlockQuoteCarousel:I.string,a11yBlockQuoteCarouselRoleDescription:I.string,a11yBlockQuoteCarouselSlideControls:I.string,a11yBlockQuoteCarouselSlideControlsGoToNext:I.string,a11yBlockQuoteCarouselSlideControlsGoToPrevious:I.string,a11yBlockQuoteCarouselSlideControlsGoToSlide:I.string,a11yBlockQuoteCarouselSlidePreposition:I.string,a11yBlockQuoteCarouselSlideRoleDescription:I.string,a11yBlockStoryline:I.string,a11yBlockTimeline:I.string,a11yCarouselNext:I.string,a11yCarouselPrevious:I.string,a11yCertificateDownloadFailed:I.string,a11yCorrectLive:I.string,a11yCoverCourseCompleted:I.string,a11yCoverCourseLength:I.string,a11yCoverRequirementComplete:I.string,a11yCoverRequirementFailed:I.string,a11yCoverRequirementIncomplete:I.string,a11yExcelIcon:I.string,a11yFileIcon:I.string,a11yGroupAudioPlayer:I.string,a11yGroupScenario:I.string,a11yGroupVideoPlayer:I.string,a11yLabeledGraphicBlock:I.string,a11yLabeledGraphicButtonMarker:I.string,a11yLabeledGraphicIconPlus:I.string,a11yLabeledGraphicIconDot:I.string,a11yLabeledGraphicIconInformation:I.string,a11yLabeledGraphicIconQuestion:I.string,a11yLabeledGraphicIconCheck:I.string,a11yLabeledGraphicIconX:I.string,a11yLabeledGraphicIconHeart:I.string,a11yLabeledGraphicIconPin:I.string,a11yLabeledGraphicIconArrowLeft:I.string,a11yLabeledGraphicIconArrowRight:I.string,a11yLabeledGraphicIconArrowUp:I.string,a11yLabeledGraphicIconArrowDown:I.string,a11yLabeledGraphicIconArrowUpLeft:I.string,a11yLabeledGraphicIconArrowUpRight:I.string,a11yLabeledGraphicIconArrowDownLeft:I.string,a11yLabeledGraphicIconArrowDownRight:I.string,a11yLabeledGraphicUnviewed:I.string,a11yLabeledGraphicViewed:I.string,a11yMatchingItemMatchedWith:I.string,a11yMatchingItemMatchWith:I.string,a11yMatchingItemSelectableItem:I.string,a11yMediaPause:I.string,a11yMediaPlay:I.string,a11yMediaSeek:I.string,a11yNavigationMenuClose:I.string,a11yNavigationMenuOpen:I.string,a11yPDFIcon:I.string,a11yPPTIcon:I.string,a11yQuizFailed:I.string,a11yQuizFeedback:I.string,a11yQuizPassed:I.string,a11yQuizReviewCorrectlyChecked:I.string,a11yQuizReviewCorrectlySelected:I.string,a11yQuizReviewCorrectlyUnchecked:I.string,a11yQuizReviewCorrectlyUnselected:I.string,a11yQuizReviewIncorrectlyChecked:I.string,a11yQuizReviewIncorrectlySelected:I.string,a11yQuizReviewIncorrectlyUnchecked:I.string,a11yQuizReviewIncorrectlyUnselected:I.string,a11yRegionMainLesson:I.string,a11yRegionMainOverview:I.string,a11yRegionNavLesson:I.string,a11yRegionNavOverview:I.string,a11yRestrictedNav:I.string,a11yRTFIcon:I.string,a11ySearchClose:I.string,a11ySearchInput:I.string,a11ySearchOpen:I.string,a11yStatusAdditionalContent:I.string,a11yStatusContinued:I.string,a11yUnzoomImage:I.string,a11yWordIcon:I.string,a11yZipIcon:I.string,a11yZoomImage:I.string,courseStart:I.string,courseResume:I.string,courseExit:I.string,courseHome:I.string,courseSkipToLesson:I.string,lessonName:I.string,lessonPreposition:I.string,lessonComplete:I.string,lessonRestricted:I.string,quizStart:I.string,quizQuestion:I.string,quizSubmit:I.string,quizRequireAnswer:I.string,quizNext:I.string,quizIncorrect:I.string,quizCorrect:I.string,quizResults:I.string,quizScore:I.string,quizPassing:I.string,quizTakeAgain:I.string,quizTimerElapsed:I.string,quizTimerExpired:I.string,quizTimerExpiredAction:I.string,quizTimerExpiredMessage:I.string,quizTimerHide:I.string,quizTimerLimit:I.string,quizTimerMinute:I.string,quizTimerMinutePlural:I.string,quizTimerRemaining:I.string,quizTimerShow:I.string,quizAcceptableResponses:I.string,quizAnswerPlaceholder:I.string,quizRequirePassingScore:I.string,quizContinue:I.string,processStepName:I.string,processStepPreposition:I.string,processNextStep:I.string,processLessonName:I.string,processComplete:I.string,processStart:I.string,processStartAgain:I.string,processSwipe:I.string,sortingCardsCorrect:I.string,sortingReplay:I.string,embedViewOn:I.string,embedReadMore:I.string,blocksClickToFlip:I.string,blocksPreposition:I.string,salutation:I.string,exitMessage:I.string,overviewPageTitleSuffix:I.string,labeledGraphicMarkerLabel:I.string,seekSliderLabel:I.string,playButtonLabel:I.string,pauseButtonLabel:I.string,embedPlayerGroup:I.string,embedLinkGroup:I.string,numberedDividerGroup:I.string,processLandmark:I.string,sortingLandmark:I.string,search:I.string,result:I.string,results:I.string,noResults:I.string,scenarioTryAgain:I.string,scenarioContinue:I.string,scenarioComplete:I.string,scenarioStartOver:I.string,progressPieUnstarted:I.string,progressPieCompleted:I.string,progressPieClickToComplete:I.string,progressPieClickToReset:I.string,progressPieQuizFailed:I.string,certificateDownload:I.string,certificateDownloadInProgress:I.string,certificateRetryDownload:I.string,coverCompleteAllLessons:I.string,coverCompleteLessonsName:I.string,coverCompleteLessonsPreposition:I.string,coverCompleteLessonsInCourse:I.string,coverCompleted:I.string,coverCourseRequirements:I.string,coverHour:I.string,coverHours:I.string,coverLesson:I.string,coverLessons:I.string,coverMinute:I.string,coverMinutes:I.string,coverNoAttemptsRemaining:I.string,coverPublished:I.string,coverQuizScoreOf:I.string,coverQuizPercentOrHigher:I.string,progressSummary:I.string,progressSummaryBackToLearning:I.string,progressSummaryCompleted:I.string,progressSummaryCongratulations:I.string,progressSummaryNextUp:I.string,progressSummaryNoTitle:I.string,progressSummaryPercentComplete:I.string,progressSummaryRequirementsMet:I.string,progressSummaryStartOver:I.string,curtainLoading:I.string,curtainOffline:I.string,curtainOfflineReconnecting:I.string,curtainSessionTimedOut:I.string,curtainSessionTimedOutRestart:I.string,curtainSessionTimedOutRefresh:I.string,curtainSomethingWrong:I.string,curtainSomethingWrongTryAgain:I.string,curtainSomethingWrongRefresh:I.string}),wm=(0,I.shape)({image:(0,I.shape)({key:I.string,originalUrl:I.string,sourcedFrom:(0,I.oneOf)(["DEFAULT","USER","LIBRARY","AI"]),src:I.string,thumbnail:I.string,type:I.string,useCrushedKey:I.bool})}),CW=(0,I.shape)({themeId:I.string,coverImage:I.string,navigation:I.bool,showAuthor:I.bool,allowSearch:I.bool,colorAccent:I.string,blockCorners:I.string,buttonScheme:I.string,uiTypefaceId:I.string,coverPageType:I.string,bodyTypefaceId:I.string,navigationType:I.string,blockPaddingTop:I.number,coverImageAlpha:I.number,navigationStyle:I.string,showLessonCount:I.bool,lessonHeaderSize:I.string,buttonInlineStyle:I.string,coverImageDefault:I.string,headingTypefaceId:I.string,lessonHeaderColor:I.string,lessonHeaderImage:I.string,lessonHeaderStyle:I.string,sidebarStartsOpen:I.bool,blockPaddingBottom:I.number,markLessonsComplete:I.bool,animateBlockEntrance:I.bool,navigationRestricted:I.bool,buttonNavigationStyle:I.string,showNavigationButtons:I.bool,compactShowLessonCount:I.bool,lessonHeaderImageAlpha:I.number,lessonHeaderImageColor:I.string,enableVideoPlaybackSpeed:I.bool,blockNavigationType:I.string,blockNavigationStyle:I.string,progressIndicatorStyle:I.string}),xW=(0,I.shape)({disableCoverPage:I.bool}),bW=(0,I.shape)({activeEdition:I.number,activeLMS:I.number,completeWith:(0,I.oneOf)(["reporting","quiz","storyline"]),completionPercentage:I.number,enableExitCourse:I.bool,enableTelemetryCollection:I.bool,exportType:(0,I.oneOf)(["lms","pdf","raw","business-content"]),format:(0,I.oneOf)(["zip"]),identifier:I.string,quizId:I.string,quizComplete:I.bool,reporting:(0,I.oneOf)(["passed-incomplete"]),shareId:I.string,storylineId:I.string,storylineComplete:I.bool,target:(0,I.oneOf)(["scorm12","scorm2004","aicc","xapi","cmi5"]),targetName:(0,I.oneOf)(["SCORM 1.2","SCORM 2004","AICC","xAPI","cmi5"]),title:(0,I.oneOfType)([I.string,(0,I.shape)({l10nId:I.string})]),resetLearnerData:I.bool,hideLmsUi:I.bool,webExportSettings:xW}),Mm=I.string,fn=I.string,Om=t=>(0,I.oneOfType)([t,(0,I.shape)({l10nId:I.string})]),Nne=(0,I.shape)({id:fn,originalId:fn,author:fn,selectedAuthorId:fn,color:I.string,navigationMode:I.string,title:Om(I.string),sharePassword:I.string,description:Om(I.string),shareId:fn,copyOf:I.string,order:I.string,fonts:I.object,media:wm,coverImage:(0,I.shape)({alpha:I.number,displaySidebar:I.bool,media:wm}),lessons:(0,I.arrayOf)(fn),jobs:(0,I.arrayOf)(fn),labelSetId:fn,deleted:I.bool,createdAt:Mm,updatedAt:Mm,markComplete:I.bool,isDefault:I.bool,ready:I.bool,reviewId:fn,exportSettings:bW,headingTypefaceId:fn,bodyTypefaceId:fn,uiTypefaceId:fn,sidebarMode:I.string,tenantId:fn,showLessonCount:I.bool,showNavigationButtons:I.bool,allowSearch:I.bool,authorPermissions:(0,I.arrayOf)(I.string),animateBlockEntrance:I.bool,transferredAt:Mm,allowCopy:I.bool,enableVideoPlaybackSpeed:I.bool,jobType:I.string,partnerContentId:fn,cardImage:wm,theme:CW,lessonHeaderImage:I.object,overlayNavigationImage:I.object,type:I.string,features:I.object,courseId:I.string,typefaces:(0,I.objectOf)(I.string)}),{FILL_IN_THE_BLANK:Fu,MATCHING:zu,MULTIPLE_CHOICE:Vu,MULTIPLE_RESPONSE:Uu}=vt.UQ,yW=3,$6=ur()("quiz-item__"),Hi=gt()(0,["progress","activeIndex"]),W6=(t,e)=>{if(!(t===void 0||!e)){if(Array.isArray(t))return t.map(n=>e.indexOf(n)).filter(n=>n!==-1);{const n=e.indexOf(t);return n===-1?void 0:n}}};class LW extends h.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:{},isRetaking:!1},this.wrapper=h.createRef(),this.id=Zt()("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:Qe().bool,getClassName:Qe().func,hasStart:Qe().bool,id:Qe().string.isRequired,index:Qe().number,isCorrectAnswerUnshuffled:Qe().bool,isReduceMotion:Qe().bool.isRequired,isShuffled:Qe().bool,isTimedQuiz:Qe().bool,item:Qe().object.isRequired,items:Qe().arrayOf(Qe().object),labels:gW,onChoiceSelect:Qe().func,onFillInChange:Qe().func,onMatchSet:Qe().func,onResponseToggle:Qe().func,prefersKeyboardNavigation:Qe().bool,progress:Qe().object,quizTop:Qe().number,reportAnswer:Qe().func,retryAttempts:Qe().number,scrollId:Qe().string,setNextIndex:Qe().func,settings:Qe().object,showNextButton:Qe().bool,submitAction:Qe().func,title:Om(Qe().string.isRequired)};static get defaultProps(){return{getClassName:()=>{},labels:{},onChoiceSelect:()=>{},onFillInChange:()=>{},onMatchSet:()=>{},onResponseToggle:()=>{},reportAnswer:()=>{},retryAttempts:0,setNextIndex:()=>{},settings:{revealAnswers:vt.iV.ALL},showNextButton:!0,submitAction:()=>[]}}getCanSubmit({itemProgress:e}){const{item:n}=this.props;return N3({answersLength:n.answers?.length??0,matches:e?.matches,selectedIndex:e?.selectedIndex,selectedIndices:e?.selectedIndices,text:e?.text,type:n.type})}getFeedback({isCorrect:e,selectedIndex:n}){const{isShuffled:o,item:r}=this.props,{answers:a,feedback:i,feedbackCorrect:l,feedbackIncorrect:u,feedbackType:d,shuffledAnswerIndices:m}=r;return M3({answers:a,feedback:i,feedbackCorrect:l,feedbackIncorrect:u,feedbackType:d,isCorrect:e,isShuffled:o,selectedIndex:n,shuffledAnswerIndices:m})}getIndex(){return this.props.hasStart?kn()(this.props.index):this.props.index}getIsComplete({itemProgress:e}){return Ws()(!1,"isComplete",e)}getIsDoneCard(){const e=this.getIndex(),n=Hi(this.props);return e<n}getIsCorrect({itemProgress:e}){const{isCorrectAnswerUnshuffled:n,isShuffled:o,item:r,getL10nValue:a}=this.props;switch(r.type){case Fu:return k3({answers:r.answers??[],text:e.text,caseSensitive:r.settings?.isCaseSensitive??!1,getL10nValue:a});case zu:return A3(e.matches??{});case Uu:return w3({isShuffled:o,item:r,selectedIndices:e.selectedIndices,shuffledAnswerIndices:e.shuffledAnswerIndices});case Vu:default:return R3({isCorrectAnswerUnshuffled:n,isShuffled:o,item:r,selectedIndex:e.selectedIndex,shuffledAnswerIndices:e.shuffledAnswerIndices})}}getItemProgress({props:e}){return gt()({},["items",e.item.id],e.progress)}getSelection({itemProgress:e}){const{type:n}=this.props.item;switch(n){case Fu:return e.text;case zu:return e.matches;case Uu:return e.selectedIndices;case Vu:default:return e.selectedIndex}}submitAndSetNextIndex(e=()=>[],n={}){const{id:o,setNextIndex:r}=this.props;e(n),r({lessonId:o})}isNewlyActive({prevProps:e}){const n=Hi(this.props),o=Hi(e),r=this.getIndex();return o!==n&&r===n}onChoiceSelect({selectedIndex:e}){const{id:n,item:o,onChoiceSelect:r}=this.props,{id:a,shuffledAnswerIndices:i}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e,shuffledAnswerIndices:i})}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={}){st.pause(),this.submitAndSetNextIndex(e,n)}onNextFeedbackClick(e){e&&this.onNextClick()}onTakeAgain=()=>{this.setState({isRetaking:!0}),setTimeout(()=>{this.props.onTakeAgain(),this.setState({isRetaking:!1})},50)};resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}onResponseToggle({optionIndex:e}){const{id:n,item:o,onResponseToggle:r}=this.props,{id:a,shuffledAnswerIndices:i}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e,shuffledAnswerIndices:i})}onSubmit({canSubmit:e,isCorrect:n,itemProgress:o}){return r=>{r.preventDefault();const{getL10nRecursive:a,id:i,item:l,reportAnswer:u,retryAttempts:d,settings:m,submitAction:p,title:f}=this.props;if(!e){switch(this.setState({errorIncomplete:!0}),l.type){case Fu:this.wrapper.current?.querySelector("input")?.focus();break;case Uu:case Vu:this.wrapper.current?.querySelector("input")?.focus();break;case zu:this.wrapper.current?.querySelector("button")?.focus();break;default:break}return}const{startTime:v}=this.state,{id:C}=l,{revealAnswers:g,passToContinue:b}=m,L={startTime:v,stopTime:Date.now()},y=Ws()(-1,"retryCount",m),E=parseInt(y,10),x=parseInt(d,10),S=co()(E,x),T=a({duration:L,id:i,isCorrect:n,item:l,itemProgress:o,retryAttempts:d,title:f});u(T);const N={finalRetryAttempt:S,lessonId:i,isCorrect:n,itemId:C,passToContinue:b,revealAnswers:g};if(g===vt.iV.ALL||g===vt.iV.INCORRECT)return p(N);this.onNextClick(p,N)}}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(),i=Hi(this.props),l=a===i,u=this.getItemProgress({props:this.props}),d=this.getIsComplete({itemProgress:u}),m=this.getIsCorrect({itemProgress:u}),p=this.props.isTimedQuiz,f=e(a),C={"--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":d?o:void 0,"--color-quiz-option-check":o,"--color-x-fill":r};return(0,s.jsx)("div",{className:f,"data-testid":"quiz-item-card",inert:l?void 0:!0,children:(0,s.jsx)("div",{className:$6("card-wrap"),children:(0,s.jsx)(u3,{isActive:l,isComplete:d,isTimedQuiz:p,style:C,children:(0,s.jsx)("div",{style:l||d?void 0:{display:"none"},children:this.renderItem()})})})})}renderMediaContent(){const{enableVideoPlaybackSpeed:e,isActive:n,labels:o,item:r,itemSettings:a,getL10nValue:i}=this.props,{media:l,id:u}=r,d=this.getIndex(),m=i(l),p=!!m?.image,f=!!m?.audio,v=!!m?.video,C=!!m?.embed;return f&&p?(0,s.jsx)("div",{className:"quiz-card__media--image-with-audio",children:(0,s.jsx)(Er,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:String(d),isOverlayAudio:!0,item:r,labels:o,media:l,settings:a})}):f&&(v||C)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Er,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:`${d}-audio`,item:r,labels:o,media:{audio:m.audio},settings:a}),(0,s.jsx)(Er,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:String(d),item:r,labels:o,media:v?{video:m.video}:{embed:m.embed},settings:a})]}):(0,s.jsx)(Er,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:String(d),item:r,labels:o,media:l,settings:a})}renderDefault(){return(0,s.jsx)("div",{className:$6("wrap"),children:this.renderItem()})}renderItem(){const{hasStart:e,isReduceMotion:n,isQuestionBankQuiz:o,isShuffled:r,item:a,items:i,labels:l,onTakeAgain:u,progress:d,settings:m,showNextButton:p}=this.props,{errorIncomplete:f}=this.state,{quizAcceptableResponses:v,quizAnswerPlaceholder:C,quizCorrect:g,quizIncorrect:b,quizNext:L,quizRequireAnswer:y,quizRestart:E,quizQuestion:x,quizSubmit:S}=l,{id:T,title:N,type:j,settings:O}=a,{correctAnswerColor:D,correctAnswerColorContrast:B,incorrectAnswerColor:R,incorrectAnswerColorContrast:H,revealAnswers:w=vt.iV.NONE}=m,M=this.getIndex(),z=Hi(this.props),Z=M===z,Y=this.getItemProgress({props:this.props}),X=this.getIsComplete({itemProgress:Y}),pe=this.getIsCorrect({itemProgress:Y}),Le=w==vt.iV.ALL||w==vt.iV.INCORRECT,ke=Z&&X&&Le,Be=Z&&!X&&this.getCanSubmit({itemProgress:Y}),We=this.onSubmit({canSubmit:Be,isCorrect:pe,itemProgress:Y,item:a}),De=Ct()("selectedIndex",Y),Ae=this.getFeedback({isCorrect:pe,selectedIndex:De}),he=`q-${T}`,le=this.getSelection({itemProgress:Y}),He=W()("quiz-card__retake-container",{"quiz-card__retake-container--active":X}),Pe=W()("quiz-card__retake","brand--hoverColor",{"quiz-card__retake--active":X});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(yH,{isActive:Z,labels:l,questionLabel:x,questionNumber:e?M:M+1,totalQuestions:ps()(i)}),(0,s.jsx)(EH,{allowTabNavigation:Z,htmlId:he,value:N}),this.renderMediaContent(),(0,s.jsx)(f3,{type:j,children:(0,s.jsx)("div",{ref:this.wrapper,children:this.renderType({columnBehavior:O?.columnBehavior,correctAnswerColor:D,correctAnswerColorContrast:B,incorrectAnswerColor:R,incorrectAnswerColorContrast:H,isActive:Z,isComplete:X,isCorrect:pe,isShuffled:r,itemProgress:Y,labels:l,onSubmit:We,revealAnswers:w,questionHtmlId:he,quizAcceptableResponses:v,quizAnswerPlaceholder:C})})}),(0,s.jsx)("div",{"aria-live":"assertive",children:f&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,s.jsx)(it,{className:"quiz-card__validation-icon","data-testid":"quiz-validation-icon",name:"alert-circle"}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:y})]})}),(0,s.jsx)(p3,{canProceed:this.state.forceShowFeedback||ke,feedbackRef:Ke=>{this.feedback=Ke},feedbackValue:this.state.forceFeedbackMessage||Ae,isActive:Z,isComplete:X,isCorrect:this.state.forceShowFeedbackCorrect||pe,item:a,labels:l,progress:Y,quizCorrect:g,quizIncorrect:b,revealAnswers:w,selection:le}),(0,s.jsx)(d3,{allowNext:!u,canProceed:ke,canSubmit:Be,isReduceMotion:n,item:a,onNext:p?this.onNextFeedbackClick.bind(this,Z):null,onSubmit:We,quizNext:d.percentComplete===100&&o?E:L,quizSubmit:S}),u&&(0,s.jsx)("div",{className:He,children:(0,s.jsx)("button",{className:Pe,onClick:this.onTakeAgain,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:i,isActive:l,isComplete:u,isCorrect:d,isReduceMotion:m,isShuffled:p,itemProgress:f,labels:v,onSubmit:C,revealAnswers:g,questionHtmlId:b,quizAcceptableResponses:L,quizAnswerPlaceholder:y}=e,{color:E,item:x,prefersKeyboardNavigation:S}=this.props,{answers:T,correct:N,corrects:j,type:O}=x,D=l&&!u,B=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(O){case Fu:return(0,s.jsx)(v3,{allowTabNavigation:l,correctAnswerColor:o,correctAnswerColorContrast:r,errorMessageId:B,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isComplete:u,isCorrect:d,labels:v,onChange:this.onFillInChange,onEnterToSubmit:C,options:T,questionHtmlId:b,quizAcceptableResponses:L,quizAnswerPlaceholder:y,revealAnswers:g,value:Ws()("","text",f)});case zu:return(0,s.jsx)(y3,{answers:T,columnBehavior:n,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:l,isComplete:u,matches:f?.matches??{},onChange:this.onMatchSet,prefersKeyboardNavigation:S,revealAnswers:g});case Uu:{const R=Ct()("selectedIndices",f),H=Ct()("shuffledAnswerIndices",f)??[],w=p?W6(R,H):R;return(0,s.jsx)(S3,{allowTabNavigation:l,correctAnswerColor:o,correctIds:j,errorMessageId:B,incorrectAnswerColor:a,isComplete:u,isCorrect:d,isRetaking:this.state.isRetaking,labels:v,onChange:this.onResponseToggle,onEnterToSubmit:C,options:T,questionHtmlId:b,renderOptionText:this.renderMROptionText.bind(this,l),revealAnswers:g,selectedIndices:w})}case Vu:default:{const R=Ct()("selectedIndex",f),H=Ct()("shuffledAnswerIndices",f)??[],w=p?W6(R,H):R;return(0,s.jsx)(E3,{allowTabNavigation:D,color:E,correctAnswerColor:o,correctId:N,errorMessageId:B,incorrectAnswerColor:a,isComplete:u,isCorrect:d,isReduceMotion:m,isRetaking:this.state.isRetaking,labels:v,onChange:this.onChoiceSelect,onEnterToSubmit:C,options:T,questionHtmlId:b,renderOptionText:this.renderMCOptionText.bind(this,l),revealAnswers:g,selectedIndex:w})}}}scrollActionsIfComplete({prevProps:e}){const{isReduceMotion:n,scrollId:o,settings:r}=this.props,{revealAnswers:a=vt.iV.NONE}=r,i=this.getIndex(),l=Hi(this.props);if(!(i===l)||a===vt.iV.NONE)return;const d=this.getItemProgress({props:e}),m=this.getIsComplete({itemProgress:d}),p=this.getItemProgress({props:this.props}),f=this.getIsComplete({itemProgress:p}),v=()=>{const{offsetHeight:C,offsetTop:g}=this.feedback,b=C+g;document.getElementById(o||"page-wrap")?.scrollTo({top:b,behavior:n?"instant":"smooth"})};!m&&f&&(this.timeoutScrollActionsIfComplete=setTimeout(v,750))}scrollTop(){const{isReduceMotion:e,quizTop:n,scrollId:o}=this.props,r=n||yW;document.getElementById(o||"page-wrap")?.scrollTo({top:r,behavior:e?"instant":"smooth"})}}const EW=$e()(bO)(LW),G6=(0,h.createContext)({handleExpiredQuiz:qs.lQ,hideTimer:qs.lQ,quizTime:0,resetQuizTimer:qs.lQ,timerDuration:0,timerHidden:!1,timerRunning:!1});function SW({children:t,handleExpiredQuiz:e=()=>{},isTimedQuiz:n,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const i=(0,h.useRef)(void 0),[l,u]=(0,h.useState)(),[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),[v,C]=(0,h.useState)(),g=(0,h.useMemo)(()=>Number(a),[a]),{activeIndex:b,endIndex:L,lessonId:y,lessonProgress:E,startIndex:x}=(0,h.useMemo)(()=>{const z=o?.currentLesson,Z=o?.lessons?.[z],Y=Z?.activeIndex||0,X=Object.keys(Z?.items||{}).length+1;return{activeIndex:Y,lessonId:z,endIndex:X,lessonProgress:Z,startIndex:0}},[o]),S=(0,Me.A)(y),T=(0,Me.A)(b),N=(0,h.useCallback)(()=>{u(g*60)},[g]),j=(0,h.useCallback)(()=>{u(z=>z-1)},[u]),O=(0,h.useCallback)(()=>{m(!0),i.current||(i.current=setInterval(j,1e3))},[j,m]),D=(0,h.useCallback)(z=>{f(z!==void 0?z:!p)},[p]),B=(0,h.useCallback)(()=>{m(!1),i.current&&(i.current=clearInterval(i.current))},[m]),R=(0,h.useCallback)(()=>{l&&v!==void 0&&r({lessonId:v,timeRemaining:l})},[v,l,r]),H=(0,h.useCallback)(()=>{R(),u(void 0)},[u,R]),w=(0,h.useCallback)(()=>u(E.timeRemaining||g*60),[E,g,u]);(0,h.useEffect)(()=>{if(!n)return;const z=S!==y,Z=z&&l,Y=z&&n;n&&!z&&v!==y&&C(y),Z&&H(),Y&&w()},[n,v,y,S,l,w,H]),(0,h.useEffect)(()=>{if(n)switch(b){case x:B();break;case L:N(),B();break;default:O(),T!==b&&S===y&&R()}},[b,L,n,y,T,S,N,x,O,B,R]),(0,h.useEffect)(()=>{n&&l<1&&B()},[n,l,B]);const M=(0,h.useMemo)(()=>({handleExpiredQuiz:e,hideTimer:D,quizTime:l,resetQuizTimer:N,timerDuration:g,timerHidden:p,timerRunning:d}),[e,D,l,N,g,p,d]);return(0,s.jsx)(G6.Provider,{value:M,children:t})}const K6=()=>(0,h.useContext)(G6),TW=t=>t.isTimedQuiz?(0,s.jsx)(SW,{...t,children:t.children}):(0,s.jsx)(s.Fragment,{children:t.children}),IW=5,NW=15,jW=30,kW=60,AW=180,_6=300,Q6=600,Z6=120,RW=t=>t<=IW?{regularInterval:kW,lowTimeThreshold:Z6}:t<=NW?{regularInterval:AW,lowTimeThreshold:Z6}:t<=jW?{regularInterval:_6,lowTimeThreshold:_6}:{regularInterval:Q6,lowTimeThreshold:Q6},PW=(t,e,n,o)=>{const r=Math.floor(o/60),a=o%60,i=r===1?t:e;if(r>0&&a>0)return`${n}: ${r} ${i} and ${a} seconds`;if(r>0&&a===0)return`${n}: ${r} ${i}`;if(r===0&&a>0)return`${n}: ${a} seconds`};var Fo=c(15648);const nn=ne("quiz-timer"),Dm=(t,e)=>`${t.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`,wW=t=>{const e=Math.floor(t/60),n=t%60;return Dm(e,n)},Y6=t=>{const e=Math.floor(t/60),n=t%60;return Dm(e,n)},MW=t=>Dm(t,0),X6=({area:t,exitCourseEnabled:e=!1,isStartScreenActive:n=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:i,labelQuizTimerExpiredMessage:l,labelQuizTimerHide:u,labelQuizTimerLimit:d,labelQuizTimerMinute:m,labelQuizTimerMinutePlural:p,labelQuizTimerRemaining:f,labelQuizTimerShow:v,timerDisplay:C=vt.sS.REMAINING,timerEnabled:g=!1})=>{const[b,L]=Fo.useState(!1),[y,E]=Fo.useState(""),x=Fo.useRef(null),S=Fo.useRef(!1),{hideTimer:T,quizTime:N,timerDuration:j,timerHidden:O,timerRunning:D,handleExpiredQuiz:B}=K6(),R=j*60,{isCover:H,isHeader:w,isHidden:M}=Fo.useMemo(()=>({isCover:t==="cover",isHeader:t==="header",isHidden:C===vt.sS.HIDE_TIMER}),[t,C]),z=n&&!H,Z=Fo.useMemo(()=>RW(j),[j]),Y=Fo.useMemo(()=>({expired:a||"Time expired",minute:m||"minute",minutePlural:p||"minutes",remaining:f||"Time left"}),[a,m,p,f]),X=()=>{L(!1),B()},pe=Fo.useCallback(()=>{const{regularInterval:We,lowTimeThreshold:De}=Z,Ae=N<=De&&N>0&&!S.current,he=x.current!==null&&x.current-N>=We,le=x.current===null;if(Ae||he){Ae&&(S.current=!0),x.current=N;const He=PW(Y.minute,Y.minutePlural,Y.remaining,N);E(He)}le&&(x.current=N)},[Z,N,Y]);if(Fo.useEffect(()=>{g&&N!==0&&(H||pe())},[pe,H,g,D,N]),Fo.useEffect(()=>{if(!g||N!==0||n)return;const We=setTimeout(()=>{L(!0)},1200);return()=>clearTimeout(We)},[N,g,n]),!g||z||o)return null;const Le={"header-area":w,"cover-area":H,"hide-timer":M,"exit-course":e},ke={display:[H,w&&!n].some(sr())?null:"none"},Be=()=>({[vt.sS.SUMMARY]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:nn("label"),children:[d,":"]}),(0,s.jsxs)("div",{className:nn("value"),children:[j," ",j===1?m:p]})]}),[vt.sS.REMAINING]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:nn("label"),children:[f,":"]}),(0,s.jsx)("div",{className:nn("value"),children:wW(N)})]}),[vt.sS.ELAPSED]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:nn("label"),children:[r,":"]}),(0,s.jsx)("div",{className:nn("value"),children:Y6(R-N)})]}),[vt.sS.ELAPSED_TOTAL]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:nn("label"),children:[r,":"]}),(0,s.jsxs)("div",{className:nn("value"),children:[Y6(R-N)," /"," ",MW(j)]})]})})[H?vt.sS.SUMMARY:C];return(0,s.jsxs)("div",{className:nn(Le),"data-testid":"quiz-timer",style:ke,children:[N!==0&&(0,s.jsx)("div",{"aria-atomic":"true","aria-live":"polite",className:"visually-hidden",role:"status",children:y}),N===0&&(0,s.jsx)("div",{className:"visually-hidden",role:"alert",children:a||"Time expired"}),w&&O?(0,s.jsxs)("button",{className:nn("hide"),onClick:()=>T(!1),type:"button",children:[(0,s.jsx)(it,{className:nn("icon"),name:"stopwatch-regular"}),v]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:nn("time"),children:[(0,s.jsx)(it,{className:nn("icon"),name:"stopwatch-regular"}),(0,s.jsx)("div",{className:nn("desc"),children:Be()})]}),w&&(0,s.jsx)("button",{className:nn("hide"),onClick:()=>T(!0),type:"button",children:u})]}),!H&&b&&to.createPortal((0,s.jsxs)(gv,{className:"quiz-timer-modal","data-testid":"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:X,onClose:X,onOverlayClick:()=>{},children:[(0,s.jsx)("p",{children:l}),(0,s.jsx)("button",{"data-testid":"quiz-view-results-button",onClick:X,type:"button",children:i})]}),hr({childType:"dialog"}))]})};var OW=c(15648);const DW=t=>({start:t<2?0:t-2,end:t+2}),$u=gt()(0,["progress","activeIndex"]),Bm=t=>e=>W()("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}),Hm=gt()(0,["progress","retryAttempts"]),BW=mn(),HW=(t,e)=>{if(!t||!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n].id!==e[n].id)return!0;return!1},FW=(t,e,n)=>{if(!Array.isArray(t)||!Array.isArray(e)||!n)return!1;const o=t.map(i=>e[i]),r=e.findIndex(i=>i.id===n),a=o.findIndex(i=>i.id===n);return r===a};class zW extends OW.Component{constructor(e){super(e);const{initializeDrawnQuizQuestions:n}=e,o=V6({...e,initializeDrawnQuizQuestions:n}),r={...e,...o};this.state={items:U6(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=Hm(this.props),o=Hm(e);if(n!==o){const r=V6({...e}),a={...e,...r};this.setState({items:U6(a),progress:a.progress})}else{const{items:r,progress:a}=pW({...e,currentItems:this.state.items}),i=hW(this.state.items,r);this.setState({items:i,progress:a})}}static get defaultProps(){return{initializeDrawnQuizQuestions:qs.lQ}}componentDidUpdate(e,n){}render(){const{labels:e,quizEnd:n,quizHeader:o,settings:r,isQuestionBankQuiz:a}=this.props,{course:i,items:l}=this.state,u=$u(this.state),{start:d,end:m}=DW(u),p=l.slice(d,m),f=!a&&u===0,v=!a&&u===l.length+1;return(0,s.jsxs)("section",{className:"quiz","data-quiz":!0,"data-testid":"quiz",children:[r?.timer&&(0,s.jsx)(X6,{area:"header",exitCourseEnabled:i?.lmsOptions?.enableExitCourse,isEndScreenActive:v,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&&u<2?this.renderStart():null,p.map(this.renderItem.bind(this,d)),n&&this.renderEnd()]})]})}renderEnd(){const{quizEnd:e}=this.props,{items:n}=this.state,o=$u(this.state),r=Bm(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,course:a,enableVideoPlaybackSpeed:i,id:l,isQuestionBankQuiz:u,labels:d,reportAnswer:m,onChoiceSelect:p,onFillInChange:f,onMatchSet:v,onResponseToggle:C,onSetIndex:g,onSubmit:b,prefersKeyboardNavigation:L,progress:y,quizHeader:E,settings:x,title:S}=this.props,{items:T}=this.state,N=$u(this.state),j=Bm(N),O=this.getQuizTop(),D=n.type===vt.UQ.MULTIPLE_CHOICE,B=HW(n.shuffledAnswerIndices,n.answers),R=D?FW(n.shuffledAnswerIndices,n.answers,n.correct):void 0;return(0,s.jsx)(EW,{color:r,enableVideoPlaybackSpeed:i,getClassName:j,hasStart:!!E,id:l,index:o+e,isCard:!0,isCorrectAnswerUnshuffled:R,isQuestionBankQuiz:u,isReduceMotion:BW,isShuffled:B,isTimedQuiz:x?.timer,item:n,items:T,labels:d,lessons:a?.lessonsOnly,onChoiceSelect:p,onFillInChange:f,onMatchSet:v,onResponseToggle:C,prefersKeyboardNavigation:L,progress:y,quizTop:O,reportAnswer:m,retryAttempts:Hm({progress:y}),scrollId:"page-wrap",setNextIndex:g,settings:x,submitAction:b,title:S},`item-${n.id}`)}renderStart(){const{quizHeader:e}=this.props,{items:n}=this.state,o=$u(this.state),r=Bm(o);return(0,s.jsx)("div",{className:r(0),children:(0,s.jsx)("div",{className:"quiz__item-wrap",children:e(n)})})}}const VW=zW,ns=ne("odometer"),J6=1e3,q6=2e3,UW=4e3,$W=750,Wu=200,Fm=170,Kn=Wu/2,_n=Fm/2,cl=70,e5=1.5,WW=2.5,GW=225,KW=135,t5=270,zm=7,Fi={start:{dx:-19,dy:8},mid:{dx:-5,dy:22},end:{dx:26,dy:-7}},jr={size:12,topOffset:-3,bottomOffset:21};function _W(t){return t<.5?16*t**5:1+16*(t-1)**5}function QW(t){return t<.5?2*t**2:1-(-2*t+2)**2/2}function Gu({angle:t,centerX:e,centerY:n,radius:o}){const r=(t-90)*Math.PI/180;return{x:e+o*Math.cos(r),y:n+o*Math.sin(r)}}function Vm({centerX:t,centerY:e,counterClockwise:n=!1,endAngle:o,radius:r,startAngle:a}){const i=Gu({angle:a,centerX:t,centerY:e,radius:r}),l=Gu({centerX:t,centerY:e,radius:r,angle:o}),d=Math.abs(o-a)>180?"1":"0",m=n?"0":"1";return`M ${i.x} ${i.y} A ${r} ${r} 0 ${d} ${m} ${l.x} ${l.y}`}function s5(t,e,n){return e+n*t5*t/100}function ZW({hasPassed:t,isResultsVisible:e,isRTL:n,onAnimationDone:o,passingLabel:r,passingScore:a,score:i=0,scoreLabel:l,shouldAnimate:u}){const[d,m]=(0,h.useState)(0),[p,f]=(0,h.useState)(0),[v,C]=(0,h.useState)(!1),b=`hatch-pattern${(0,h.useId)()}`,L=(0,h.useRef)(null),y=(0,h.useRef)(!1),E=(0,h.useRef)([]),x=(0,h.useCallback)(()=>{E.current.forEach(clearTimeout),E.current=[]},[]),S=(0,h.useCallback)(()=>{L.current!==null&&(cancelAnimationFrame(L.current),L.current=null),x()},[x]);(0,h.useEffect)(()=>{e||(S(),y.current=!1,m(0),f(0),C(!1))},[e,S]),(0,h.useEffect)(()=>{if(!e||!u||y.current)return;y.current=!0;const De=i,Ae=setTimeout(()=>{let he=null;const le=He=>{he===null&&(he=He);const Pe=He-he,Ke=Math.min(Pe/q6,1),Fe=_W(Ke),ut=QW(Ke);if(f(Fe),m(Math.round(ut*De)),Ke<1)L.current=requestAnimationFrame(le);else{f(1),m(De);const dt=setTimeout(()=>{C(!0);const xt=setTimeout(()=>{o?.()},$W);E.current.push(xt)},UW-J6-q6);E.current.push(dt)}};L.current=requestAnimationFrame(le)},J6);E.current.push(Ae)},[e,u,i,o]),(0,h.useEffect)(()=>()=>{S()},[S]);const T=n?KW:GW,N=n?-1:1,j=s5(a,T,N),O=s5(p*i,T,N),D=T+N*t5,B=Gu({centerX:Kn,centerY:_n,radius:cl,angle:O}),R=Gu({centerX:Kn,centerY:_n,radius:cl,angle:j}),H=p*i>=a,w=n?`%${a}`:`${a}%`,M=n?`%${d}`:`${d}%`,z=`${l} ${n?`%${i}`:`${i}%`}`,Z=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ns("pass-mark-label"),children:r}),(0,s.jsx)("div",{className:ns("pass-mark-percent"),children:w})]}),Y=Vm({centerX:Kn,centerY:_n,counterClockwise:n,radius:cl,startAngle:T,endAngle:D}),X=Vm({centerX:Kn,centerY:_n,counterClockwise:n,radius:cl+3,startAngle:j,endAngle:D}),pe=p>0?Vm({centerX:Kn,centerY:_n,counterClockwise:n,radius:cl,startAngle:T,endAngle:O}):"",Le={x:R.x+(n?-13:13),y:R.y-13},ke={x:Le.x+(n?-13:13),y:Le.y},Be=n?-10:10,We=[`${R.x},${R.y}`,`${Le.x+Be},${Le.y-10}`,`${Le.x-Be},${Le.y-10}`,`${Le.x-Be},${Le.y+10}`].join(" ");return(0,s.jsxs)("div",{className:ns(),children:[(0,s.jsxs)("svg",{"aria-hidden":"true",className:ns("svg"),viewBox:`0 0 ${Wu} ${Fm}`,children:[(0,s.jsx)("defs",{children:(0,s.jsx)("pattern",{height:"1.5",id:b,patternTransform:"rotate(45)",patternUnits:"userSpaceOnUse",width:"1.5",children:(0,s.jsx)("line",{className:ns("hatch-line"),x1:"0",x2:"0",y1:"0",y2:"1.5"})})}),(0,s.jsx)("path",{className:ns("passing-zone"),d:X,fill:"none",stroke:`url(#${b})`,strokeWidth:"6"}),(0,s.jsxs)("g",{className:ns("pass-mark-lines"),children:[(0,s.jsx)("polygon",{className:ns("pass-mark-mask"),points:We}),(0,s.jsx)("line",{className:ns("pass-mark-line"),x1:R.x,x2:Le.x,y1:R.y,y2:Le.y}),(0,s.jsx)("line",{className:ns("pass-mark-line"),x1:Le.x,x2:ke.x,y1:Le.y,y2:ke.y})]}),(0,s.jsx)("path",{className:ns("track"),d:Y,fill:"none",strokeWidth:e5}),pe&&(0,s.jsx)("path",{className:ns("progress",{passing:H}),d:pe,fill:"none",strokeWidth:e5}),p>0&&(0,s.jsx)("circle",{className:ns("dot",{passing:H}),cx:B.x,cy:B.y,r:WW}),v&&(0,s.jsx)("g",{className:ns("result-icon"),children:t?(0,s.jsx)("path",{className:ns("checkmark"),d:`M ${Kn+Fi.start.dx} ${_n+Fi.start.dy} L ${Kn+Fi.mid.dx} ${_n+Fi.mid.dy} L ${Kn+Fi.end.dx} ${_n+Fi.end.dy}`,fill:"none",strokeLinecap:"square",strokeLinejoin:"miter",strokeWidth:zm}):(0,s.jsxs)("g",{className:ns("x-mark"),children:[(0,s.jsx)("path",{className:ns("x-line",{first:!0}),d:`M ${Kn-jr.size} ${_n+jr.topOffset} L ${Kn+jr.size} ${_n+jr.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:zm}),(0,s.jsx)("path",{className:ns("x-line",{second:!0}),d:`M ${Kn+jr.size} ${_n+jr.topOffset} L ${Kn-jr.size} ${_n+jr.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:zm})]})})]}),(0,s.jsxs)("div",{className:ns("score",{pass:v&&t,fail:v&&!t}),children:[(0,s.jsx)("div",{className:ns("score-label"),children:l}),(0,s.jsx)("div",{className:ns("pass-label"),children:z}),(0,s.jsx)("div",{className:ns("fail-label"),children:z}),(0,s.jsx)("div",{className:ns("score-percent",{hidden:v}),children:M})]}),(0,s.jsx)("div",{className:ns("pass-mark"),style:{"--pass-mark-x":`${(n?Wu-ke.x:ke.x)/Wu*100}%`,"--pass-mark-y":`${(ke.y+3)/Fm*100}%`},children:Z}),(0,s.jsx)("div",{className:ns("pass-mark-mobile"),children:Z})]})}const YW=t=>t===vt.IK.CONTINUE,XW=({shouldSkipOnPass:t,skipToLessonId:e,hasPassed:n,nextLessonId:o})=>o&&t&&e&&n?e:o,JW=({isContinueBtn:t,isPreviewMode:e,hasSidebar:n,hasNavigationButtons:o})=>t&&!e&&!(n&&!o),qW=({canShowContinue:t,isRiseCom:e,nextLesson:n,hasNavigationButtons:o,isExport:r})=>t&&e&&!n&&o&&!r,eG=t=>(0,no.Gv)(t)&&"id"in t&&"type"in t,tG=({item:t,question:e})=>{if(t.type===vt.UQ.DRAW_FROM_QUESTION_BANK){const n=String(e.id);return t.id===n.split("-")[0]}return t.id===e.id},sG=({lesson:t,question:e})=>{const o=t?.items?.filter(eG)?.find(a=>tG({item:a,question:e}));if(o?.type!==vt.UQ.DRAW_FROM_QUESTION_BANK)return o;const r=String(e.id).split("-")[1];return o.questions.find(a=>a.id===r)},nG=t=>t===lt.Yq.PREVIEW,oG=t=>t!==k.RE.HIDDEN;var Es=c(35125);const rG={isRestricted:!1,restrictingQuiz:{},isRestrictedCourse:!1,currentLesson:void 0};function aG(t){const e=kt(),n=lr(),o=q(t??""),r=(0,h.useMemo)(()=>{if(!e||!n||!o)return rG;const l=Ur({course:e,courseProgress:n});return Ma({course:e,courseProgress:n,lesson:o,restrictingQuiz:l})},[e,n,o]),{restrictingQuiz:a}=r,i=cs(a?.title);return(0,h.useMemo)(()=>a?.title?{...r,restrictingQuiz:{...a,title:i}}:r,[r,a,i])}const iG=ne("quiz-results");function cG({isFooterVisible:t,isResultsVisible:e,onContinue:n,onTryAgainFocus:o}){const r=(0,K.wA)(),{mode:a}=(0,te.g)(),i=nG(a),l=ao()??"",u=za(l),{passed:d=!1,retryAttempts:m=0}=u??{},{continueType:p,retryCount:f,skipLessonsIfPassed:v,skipToLessonId:C}=u4(l),{resetQuizTimer:g}=K6(),b=kt(),L=YW(p),y=oG(b?.sidebarMode),E=b?.showNavigationButtons??!0,x=(0,nt.useLabelsMap)(),S=d4(l),T=aG(S),{isRestricted:N}=T,{courseFinish:j,quizContinue:O,quizTakeAgain:D}=x??{},B=XW({hasPassed:d,nextLessonId:S,shouldSkipOnPass:v,skipToLessonId:C}),R=JW({hasNavigationButtons:E,hasSidebar:y,isContinueBtn:L,isPreviewMode:i}),H=qW({canShowContinue:R,hasNavigationButtons:E,isExport:(0,qe.Hm)(),isRiseCom:Ge.BI,nextLesson:B}),w=(0,h.useCallback)(()=>{g(),r((0,Es.FU)(l))},[r,g,l]);return(0,s.jsxs)("div",{className:iG("footer",{active:e,hidden:!t}),"data-testid":"quiz-results-footer",children:[(f===-1||m<f)&&(0,s.jsx)(l6,{allowTabNavigation:e,onClick:w,onFocus:o,text:D}),R&&N&&B&&x&&(0,s.jsx)(a3,{bgType:"transparent",text:yl({labels:x,restrictions:T})}),R&&!N&&B&&(0,s.jsx)(cm,{href:(0,es.p1)(B),onClick:n,text:O}),H&&(0,s.jsx)(cm,{href:es.X1,onClick:n,text:j})]})}const Ku=ne("quiz-results");function lG({onContinue:t,onResultsDisplayed:e,questionCount:n}){const o=ao()??"",r=za(o),{activeIndex:a=0,passed:i=!1,passingScore:l=vt.hB,reportResults:u=!1,score:d=0}=r??{},m=(0,nt.useLabelsMap)(),p=(0,Ce.Wz)(),[f,v]=(0,h.useState)(!1),C=n+1===a,g=(0,h.useRef)(C),b=(0,h.useRef)(null),L=(0,h.useRef)(null),y=(0,h.useId)(),{a11yQuizFailed:E="",a11yQuizPassed:x="",quizPassing:S="",quizResults:T="",quizScore:N=""}=m??{},j=`quiz-results-desc-${y}`,O=(0,h.useCallback)(()=>{b.current=setTimeout(()=>{v(!0),e()},500)},[e]),D=(0,h.useCallback)(()=>{clearTimeout(b.current),b.current=null,v(!0)},[]);return(0,h.useEffect)(()=>()=>{clearTimeout(b.current)},[]),(0,h.useEffect)(()=>{C!==g.current&&(C?L.current?.focus():v(!1),g.current=C)},[C]),(0,s.jsxs)("div",{className:Ku({active:C}),"data-testid":"quiz-results",children:[(0,s.jsxs)("div",{className:Ku("header"),children:[(0,s.jsx)("h1",{"aria-describedby":j,className:Ku("label").mix("noOutline"),ref:L,tabIndex:-1,children:T}),(0,s.jsxs)("div",{className:"visually-hidden-always",id:j,children:[(0,s.jsx)("div",{children:`${S}: ${l}%`}),(0,s.jsx)("div",{children:`${N}: ${d}%`}),(0,s.jsx)("div",{children:i?x:E})]})]}),(0,s.jsx)("div",{"aria-hidden":"true",className:Ku("results"),children:(0,s.jsx)(ZW,{hasPassed:i,isResultsVisible:C,isRTL:p,onAnimationDone:O,passingLabel:S,passingScore:l,score:d,scoreLabel:N,shouldAnimate:u})}),(0,s.jsx)(cG,{isFooterVisible:f,isResultsVisible:C,onContinue:t,onTryAgainFocus:D})]})}var dG=c(15648);const uG=({onNextClick:t,questionCount:e})=>{const n=dG.useCallback(()=>{window.dispatchEvent(new CustomEvent(Rd))},[]);return(0,s.jsx)("div",{className:"quiz-end",children:(0,s.jsx)("div",{className:"quiz-end__container",children:(0,s.jsx)(lG,{onContinue:t,onResultsDisplayed:n,questionCount:e})})})},Um=$e()(Du()(zr(),0),Ws()(0,"retryAttempts")),hG=({authorName:t,avatar:e,course:n,description:o,id:r,isAtStart:a,isLesson:i,labels:{a11yAuthorPrefix:l,lessonName:u,lessonPreposition:d,quizStart:m,quizTakeAgain:p,quizTimerElapsed:f,quizTimerExpired:v,quizTimerExpiredAction:C,quizTimerExpiredMessage:g,quizTimerHide:b,quizTimerLimit:L,quizTimerMinute:y,quizTimerMinutePlural:E,quizTimerRemaining:x,quizTimerShow:S},lessonNumber:T,lessonProgress:N,showAuthor:j,showLessonCount:O,title:D,totalLessons:B})=>{const R=(0,h.useRef)(),H=cs(D),w=a&&Um(N),z=Um(N)?"quiz-take-again-button":"quiz-start-button",Y=n?.lessons?.find(pe=>pe.id===r)?.settings?.timer;(0,h.useEffect)(()=>{w&&R&&R.current&&jc()(R.current.focus)&&R.current.focus()},[w,R]);const X=pe=>()=>{(0,K.JD)((0,Es.QI)({lessonId:pe}))};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:i&&O&&pG({lessonName:u,lessonNumber:T,lessonPreposition:d,totalLessons:B})}),(0,s.jsx)("h1",{ref:R,tabIndex:-1,children:(0,s.jsx)(St,{className:"quiz-header__title",value:(0,so.aj)(H)})}),j&&e&&t?(0,s.jsxs)("div",{className:"quiz-header__author brand--ui",children:[(0,s.jsx)("img",{alt:"",src:(0,qe.o1)(`${e}`)}),(0,s.jsxs)("span",{className:"visually-hidden",children:[l," ",t]}),(0,s.jsx)("span",{"aria-hidden":"true",children:t})]}):null]}),Y&&(0,s.jsx)(X6,{area:"cover",exitCourseEnabled:n?.lmsOptions?.enableExitCourse,isStartScreenActive:a,labelQuizTimerElapsed:f,labelQuizTimerExpired:v,labelQuizTimerExpiredAction:C,labelQuizTimerExpiredMessage:g,labelQuizTimerHide:b,labelQuizTimerLimit:L,labelQuizTimerMinute:y,labelQuizTimerMinutePlural:E,labelQuizTimerRemaining:x,labelQuizTimerShow:S,timerEnabled:Y}),(0,s.jsx)(St,{allowTabNavigation:a,className:"quiz-header__description",value:o}),(0,s.jsxs)("button",{className:"quiz-header__start-quiz brand--color","data-testid":z,onClick:a?X(r):qs.lQ,tabIndex:ui(a),type:"button",children:[(0,s.jsx)("span",{className:"brand--ui",children:mG({lessonProgress:N,quizStart:m,quizTakeAgain:p})}),(0,s.jsx)("i",{className:"icon icon-chevron-right"})]})]})})})})})},mG=({lessonProgress:t,quizStart:e,quizTakeAgain:n})=>Um(t)?n:e,pG=({lessonName:t,lessonNumber:e,lessonPreposition:n,totalLessons:o})=>(0,s.jsx)("div",{className:"quiz-header__count",children:`${t} ${e} ${n} ${o}`}),fG=hG,vG=t=>t.length===3,gG=t=>{const e=t.findIndex(n=>n==="answers");return e===-1?null:t[e+1]?.id},CG=t=>{const e=t.findIndex(n=>n==="questions");return e===-1?null:t[e+1]?.id},xG=t=>{const e=t.at(-1);return typeof e=="string"&&e.startsWith("feedback")},bG=({items:t,itemId:e,questionBankQuestionId:n})=>{const o=t.find(({id:r})=>r===e);return o?"questions"in o?n?o.questions.find(({id:r})=>r===n):null:o:null},yG=(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)},LG=({lessonId:t,items:e})=>{const n=(0,K.wA)(),o=(0,h.useCallback)(({lessonId:a,progressId:i,question:l,answer:u},d=!0)=>{switch(l.type){case"MULTIPLE_CHOICE":n((0,Es.Yu)({lessonId:a,itemId:i,selectedIndex:l.answers.indexOf(u)}));break;case"MULTIPLE_RESPONSE":n((0,Es.mg)({lessonId:a,itemId:i,selectedIndex:l.answers.indexOf(u)}));break;case"FILL_IN_THE_BLANK":n((0,Es.Nj)({lessonId:a,itemId:i,text:u.title}));break;case"MATCHING":n((0,Es.NC)({lessonId:a,itemId:i,matches:d?Object.fromEntries(l.answers.map(m=>[m.id,m.id])):{}}));break}},[n]),r=(0,h.useCallback)(({detail:a})=>{const{lessonId:i,itemId:l,path:u}=a;if(i!==t)return;if(vG(u)){n((0,Es.FU)(t));return}const d=CG(u),m=bG({items:e,itemId:l,questionBankQuestionId:d});if(!m)return;const p=d?`${l}-${d}`:l;if(n((0,Es.QI)({lessonId:t,progressId:p})),xG(u)){const f=gG(u),v=f?m.answers.find(({id:L})=>L===f)??null:null,C=u.at(-1),g=C==="feedbackCorrect",b=yG(v,m,C);m.type==="MULTIPLE_RESPONSE"&&n((0,Es.RW)({lessonId:t,itemId:p})),b.forEach(L=>{o({lessonId:t,question:m,progressId:p,answer:L},g)}),n((0,Es.kK)({finalRetryAttempt:!1,lessonId:t,isCorrect:g,itemId:p,passToContinue:!0}))}},[n,t,e,o]);(0,h.useEffect)(()=>(window.addEventListener(_t,r),()=>{window.removeEventListener(_t,r)}),[r])},EG=gt()(0,["lessonProgress","activeIndex"]),SG=t=>{const{advanceQuizLessonStep:e,color:n,course:o,initializeDrawnQuizQuestions:r,items:a,labels:i,lessonId:l,lessonProgress:u,prefersKeyboardNavigation:d,selectQuizAnswer:m,setQuizAnswerMatches:p,setQuizAnswerText:f,settings:v,submitQuizAnswer:C,title:g,toggleQuizAnswerSelection:b}=t;LG({lessonId:l,items:a});const L=h.useCallback(y=>{const{skipLessonsIfPassed:E,skipToLessonId:x}=v||{};return C({...y,skipLessonsIfPassed:E,skipToLessonId:x})},[C,v]);return(0,s.jsx)(VW,{color:n,course:o,id:l,initializeDrawnQuizQuestions:r,items:a,labels:i,onChoiceSelect:m,onFillInChange:f,onMatchSet:p,onResponseToggle:b,onSetIndex:e,onSubmit:L,prefersKeyboardNavigation:d,progress:u,quizEnd:TG(t),quizHeader:IG(t),reportAnswer:qe.bb,settings:v,title:g})},TG=t=>e=>{const{onNextClick:n}=t;return(0,s.jsx)(uG,{onNextClick:n,questionCount:e.length})},IG=t=>e=>{const{authorName:n,avatar:o,course:r,description:a,isLesson:i,labels:l,lessonId:u,lessonNumber:d,lessonProgress:m,settings:p,showAuthor:f,showLessonCount:v,title:C,totalLessons:g}=t,L=EG(t)===0;return(0,s.jsx)(fG,{authorName:n,avatar:o,course:r,description:a,id:u,isAtStart:L,isLesson:i,items:e,labels:l,lessonNumber:d,lessonProgress:m,settings:p,showAuthor:f,showLessonCount:v,title:C,totalLessons:g})},NG={advanceQuizLessonStep:Es.QI,initializeDrawnQuizQuestions:Es.x6,selectQuizAnswer:Es.Yu,setQuizAnswerMatches:Es.NC,setQuizAnswerText:Es.Nj,submitQuizAnswer:Es.kK,toggleQuizAnswerSelection:Es.mg},jG=(0,K.Ng)(null,NG)(SG),kG=({id:t,passingScore:e})=>Du()(np(),(0,qe.GJ)({id:t,passingScore:e})),AG=({id:t,settings:e,lessonProgress:n={}})=>Y$()(Q$()(["passingScore"]),kG({id:t,...n}),e),RG=({authorName:t,avatar:e,color:n,data:{description:o,id:r,items:a,settings:i,title:l,type:u},enableVideoPlaybackSpeed:d,isLesson:m,labels:p,lessonNumber:f,lessonProgress:v,mode:C,onNextClick:g,prefersKeyboardNavigation:b,showAuthor:L,showLessonCount:y,totalLessons:E,course:x})=>(0,s.jsx)(il,{type:u,children:(0,s.jsx)(Di,{type:u,children:(0,s.jsx)(Mu,{children:(0,s.jsxs)(Bi,{items:a,type:u,children:[(0,s.jsx)(D6,{id:r,lessonProgress:v,type:"quiz"}),(0,s.jsx)(jG,{authorName:t,avatar:e,color:n,course:x,description:o,enableVideoPlaybackSpeed:d,isLesson:m,items:a,labels:p,lessonId:r,lessonNumber:f,lessonProgress:v,mode:C,onNextClick:g,prefersKeyboardNavigation:b,settings:AG({id:r,lessonProgress:v,settings:i}),showAuthor:L,showLessonCount:y,title:l,totalLessons:E})]})})})});var PG=c(56447),$m=c.n(PG);function wG({authors:t,lessonAuthor:e,courseAuthor:n,selectedAuthorId:o}){if(o==="none")return{};if(o){const r=$m()(t,{id:o});if(r)return r}if(e){const r=$m()(t,{id:e});if(r)return r}if(n){const r=$m()(t,{id:n});if(r)return r}return{}}const n5={addEventListeners(t,e){t.addEventListener("animationend",e,!1)},removeEventListeners(t,e){t.removeEventListener("animationend",e,!1)}},MG=At("LessonHeader"),OG=ne("lesson-header"),DG=({authorName:t,avatar:e,children:n,color:o,description:r,labels:{lessonName:a,lessonPreposition:i},lessonHeaderColor:l,lessonHeaderImageColor:u,lessonHeaderSize:d,lessonHeaderStyle:m,partnerContentAuthors:p,totalLessons:f,lessonNumber:v,showAuthor:C,showLessonCount:g,title:b})=>{const L=Cl(),y=ao(),E=(0,zs.qg)(L),x=m===k.xj.IMAGE,S=OG("top-wrap"),{alpha:T,ariaLabel:N,media:j,role:O}=Zr("lessonHeaderImage"),D=j?.image,B=(0,h.useMemo)(()=>{if(D&&x){const R=u===k.df.LIGHT?k.qH:k.KJ;return(0,rh.A)({alpha:T,color:R,url:(0,Gt.ME)(D)})}},[D,x,u,T]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(lb,{ariaLabel:x?N:void 0,imgRole:x?O:void 0,sectionStyles:B,topWrapClassName:S,children:(0,s.jsx)(MG,{authorName:t,avatar:e,color:o,description:r,lessonHeaderColor:l,lessonHeaderSize:d,lessonHeaderStyle:m,lessonId:y,lessonName:a,lessonNumber:v,lessonPreposition:i,partnerContentAuthors:p,showAuthor:C,showLessonCount:g&&!E,title:b,totalLessons:f})}),n]})},zi=ne("one-page-authors");function BG({className:t}){const e=(0,Ce.vU)(),n=(0,Ce._z)(),o=(0,Ce.$H)(),r=(0,Ce.PH)();if(!o)return null;const a=n?.isPartnerContentAuthor&&r!=null,i=zi({}).mix(t);return a?(0,s.jsx)("div",{className:i,children:(0,s.jsx)("ul",{className:zi("list"),role:"list",children:r.map((l,u)=>(0,s.jsxs)("li",{className:zi("item"),role:"listitem",children:[(0,s.jsx)(o5,{avatarUrl:(0,Gt.ny)({width:76,height:76,imageKey:l?.image})}),(0,s.jsx)(r5,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:l?.name})]},u))})}):(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)(o5,{avatarUrl:(0,Ge.o1)(o.avatar)}),(0,s.jsx)(r5,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:o.authorName})]})}function o5({avatarUrl:t}){return t?(0,s.jsx)("div",{className:zi("avatar"),style:{backgroundImage:`url(${t})`}}):(0,s.jsx)("div",{className:zi("avatar-fallback"),children:(0,s.jsx)(q0,{decorative:!0})})}function r5({a11yAuthorPrefix:t,name:e}){const n=e||"Unknown User",o=zi("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})]})}const a5=At("OnePageAuthors",BG),HG=ne("one-page-title"),i5=At("OnePageTitle",({className:t,htmlId:e})=>{const n=(0,Ce.DX)(),o=(0,at.QQ)(n.title),r=_a("title"),a=(0,gs.uW)(n.title)?{"data-l10n-id":n.title.l10nId}:{"data-change-path":r},i=HG({}).mix(t);return(0,s.jsx)("h1",{...a,className:i,id:e,tabIndex:-1,children:o})}),Wm=ne("one-page-lesson-header-info");function FG(){const t=(0,Ce.DX)(),e=Wm({}),{accentContrast:n,coverImageColor:o,coverPageType:r}=t?.theme??{},l=r===k.BL.IMAGE&&o===k.df.LIGHT||n===k.Em.DARK||r===k.BL.WHITE||r===k.BL.ACCENT&&!(0,mt.Wn)(t?.color);return(0,s.jsxs)("div",{className:e,children:[(0,s.jsx)(i5,{className:Wm("title").toString(),hasDarkText:l}),(0,s.jsx)(a5,{className:Wm("authors").toString(),hasDarkText:l})]})}const zG=At("OnePageCoverInfo",FG),VG=At("CoverSVG"),Gm=ne("one-page-lesson-header"),UG=ne("page"),$G=Gm("main").mix("lesson-header__main"),WG=Gm("container").mix(UG("header-container")),c5=()=>{const t=kt(),{alpha:e,media:n}=Zr("coverImage"),o=t?.theme?.coverImageColor,r=t?.coverPageType===k.BL.WHITE,a=t?.coverPageType===k.BL.IMAGE,i=t?.coverPageType===k.BL.ACCENT,l=o===k.df.LIGHT,u=Gm({accent:i,image:a,white:r,"overlay-light":a&&l}),d=a?(0,Rt.b9)({alpha:e,color:o,media:n}):{};return(0,s.jsxs)("header",{className:u,style:d,children:[(0,s.jsx)("div",{className:WG,children:(0,s.jsx)("div",{className:$G,children:(0,s.jsx)(zG,{})})}),(0,s.jsx)(VG,{coverPageType:"LEFT"})]})},Km=(0,h.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});Km.displayName="LessonContentContext";function GG({children:t}){const[e,n]=(0,h.useState)(()=>[]),o=(0,h.useCallback)(i=>{n(l=>l.concat(i))},[]),r=(0,h.useCallback)(i=>{n(l=>l.filter(u=>u!==i))},[]),a=(0,h.useMemo)(()=>({visibleLessons:e,registerLesson:o,unregisterLesson:r}),[e,o,r]);return(0,s.jsx)(Km.Provider,{value:a,children:t})}function KG(){return(0,h.useContext)(Km)}const{LARGE:_G,SMALL:QG}=k.OX,{ACCENT:ZG,BLACK:YG,COLOR:l5,DARK:XG,GRAY:JG,IMAGE:d5,LIGHT:qG,TINT:eK}=k.xj,tK=ne("lesson-header-wrap");function sK({didNavigate:t,handleNavigate:e,handleStorylineFullscreen:n,isMobileHeader:o,isProgressSummary:r,lessonProgress:a,navigateDirection:i,onNavigateTransitionEnd:l,onPageReady:u,previewType:d,ref:m,registerLesson:p,unregisterLesson:f,visibleLessons:v}){const C=(0,h.useRef)(null),g=(0,h.useRef)(0),b=(0,h.useRef)(!1),L=(0,at.gY)(),y=(0,te.g)(),E=Ki(),x=(0,Ce.up)(),S=(0,Ce.vU)(),{partnerContent:T}=(0,Ce.qm)(),N=Y1(),j=E?.theme?.themeId,[O,D]=(0,h.useState)(!1),B=y.mode||"",R=y.id,H=r?Ou:E?.lessons?.[a?.index??null]??{},w=r?null:Ba({course:E,lesson:H}),M=r?0:Da({course:E,lesson:H}),z=ec(E),Z=(0,h.useCallback)((qt,Ks)=>{const xa=i(),Mr=C.current;if(!Mr){Ks();return}const s2=`page ${xa}-${qt}`,a0=()=>{qt==="enter"?Mr.className=`page ${xa}-complete`:Mr.className="page",n5.removeEventListeners(Mr,a0),window.dispatchEvent(new CustomEvent(Pf)),l(),Ks()};Mr.className=s2,n5.addEventListeners(Mr,a0)},[i,l]);(0,h.useImperativeHandle)(m,()=>({componentWillEnter(qt){Z("enter",qt)},componentDidEnter(){D(!0)},componentWillExit(qt){const Ks=document.getElementById("page-wrap"),xa=Ks?.scrollTop??0;Ks&&(Ks.scrollTop=0),g.current=xa,Z("leave",qt),window.dispatchEvent(new CustomEvent(Rf)),C.current&&(C.current.scrollTop=g.current)},componentDidExit(){}}),[Z]),(0,h.useEffect)(()=>(D(!0),r||((0,qe.no)(R),(0,K.JD)((0,ZP.B)(R))),p(R),()=>{f(R)}),[]),(0,h.useEffect)(()=>{t&&!b.current&&O&&u(),b.current=O},[t,O,u]);const Y=(0,h.useMemo)(()=>{const{theme:qt}=E,Ks=qt?.customColorLessonHeaderContrast,xa=qt?.lessonHeaderColor,Mr=(0,mt.xD)(xa),s2=!(0,mt.Wn)(xa),a0=Ks===k.Em.DARK||Ks===k.Em.AUTO&&Mr===k.Em.DARK;return!Ks&&s2||a0?lt.S6.DARK:lt.S6.LIGHT},[E]),X=(qt,Ks)=>{if(r)return(0,s.jsx)(O6,{...Ks,course:E,courseProgress:x,labels:S,lessons:E.lessons,sessionPreferences:N});switch(qt){case"blocks":return(0,s.jsx)(h$,{...Ks,animateBlockEntrance:E.animateBlockEntrance,handleNavigate:e,isFirstLesson:Pa({course:E,lesson:H})});case"quiz":return(0,s.jsx)(RG,{...Ks,course:E});default:return null}},{author:pe,selectedAuthorId:Le,type:ke}=H,{prefersKeyboardNavigation:Be}=N,{authors:We,color:De,enableVideoPlaybackSpeed:Ae,id:he,lessonHeaderImage:le,lessonHeaderSize:He,lessonHeaderStyle:Pe,publishedAt:Ke,showAuthor:Fe,showLessonCount:ut,showNavigationButtons:dt,tenantId:xt,theme:Jt}=E,{hideLessonHeaders:zt,lessonHeaderColor:Zn,lessonHeaderImageColor:ho,navigationType:kr}=Jt,Ar=T?.content??[],Rr=Ar.length>0,Pr=Rr?Ar.find(qt=>qt.id===Le):{},pl=Rr?Pr?.data?.authors:void 0,{avatar:$i,authorName:Wi}=wG({authors:We,lessonAuthor:pe,courseAuthor:E.author,selectedAuthorId:Le}),fl=Ur({course:E,courseProgress:x}),wr=r?{}:Ma({course:E,courseProgress:x,lesson:w,restrictingQuiz:fl}),mo=ag(H),Ca=(0,zs.c3)(E)?c5:DG,vl=(0,s.jsx)(Ca,{authorName:Wi,avatar:$i,color:De,course:E,description:H.description,labels:S,lessonHeaderColor:Zn,lessonHeaderImage:le,lessonHeaderImageColor:ho,lessonHeaderSize:He,lessonHeaderStyle:Pe,lessonNumber:M,partnerContentAuthors:pl,showAuthor:Fe,showLessonCount:ut,themeId:j,title:H.title,totalLessons:z,children:!r&&(0,s.jsx)(D6,{id:H.id,items:H.items,lessonProgress:a,navigationType:kr,scrollPosition:0,type:H.type})}),Qt=`image-${(ho??k.df.DARK).toLowerCase()}`,vn=tK({[Qt]:Pe===d5,accent:Pe===ZG,black:Pe===YG,collapsed:zt,custom:Pe===l5,dark:Pe===XG,gray:Pe===JG,image:Pe===d5,large:He===_G&&!o,light:Pe===qG,mobile:o,small:He===QG&&!o,tint:Pe===eK}),wt=Pe===l5?{"--lesson-header-contrast-color":Y,"--color-background":Zn}:{},Hs={authorName:Wi,avatar:$i,color:De,courseId:he,courseTitle:L(E.title),data:H,enableVideoPlaybackSpeed:Ae,handleStorylineFullscreen:n,hideLessonHeaders:zt,isLesson:(0,Rt.GG)(H),labels:S,lessonHeader:vl,lessonHeaderImage:le,lessonHeaderWrapClasses:vn,lessonHeaderWrapStyles:wt,lessonHasContinues:mo,lessonNumber:M,lessonProgress:a,loadMedia:R===v[0],mode:B,nextLesson:w?.id??null,nextLessonRestrictions:wr,partnerContent:Ar,publishedAt:Ke,prefersKeyboardNavigation:Be,previewType:d,scrollPosition:0,showAuthor:Fe,showLessonCount:ut,showNavigationButtons:dt,tenantId:xt,totalLessons:z};return(0,s.jsx)(ra,{title:Bc(`${L(H.title)} - ${Hs.courseTitle}`),children:(0,s.jsx)("div",{"data-lesson-id":R,ref:C,children:X(ke,Hs)})})}function nK(t){const{visibleLessons:e,registerLesson:n,unregisterLesson:o}=KG();return(0,s.jsx)(sK,{...t,registerLesson:n,unregisterLesson:o,visibleLessons:e})}const oK=nK;var u5=c(28663);const _u=ne("lesson-nav"),rK=({allowTooltip:t,lessonNameLabel:e,lessonPrepositionLabel:n,nextLesson:o,nextLessonNumber:r,onFocus:a,restrictionData:i,restrictionType:l,totalLessons:u},d)=>{const m=o?.id,p=Xr(),f=ei(p),C=(0,Rt.GG)(o)&&m,g=(0,at.QQ)(o?.title)||"",b=C?`${r} ${n} ${u} \u2014 ${g}`:g,L=f&&C?`${e} ${r}`:b;return(0,s.jsx)(ti,{allowTooltip:t,direction:"next",navLessonId:m,onFocus:a,ref:d,restrictionData:i,restrictionType:l,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:_u("link-text"),children:L}),(0,s.jsx)(Td,{className:_u("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Td,{className:_u("link-icon")}),(0,s.jsx)("span",{className:_u("link-text"),children:L})]})})},aK=At("LessonNavNext",(0,h.forwardRef)(rK));function iK(){const t=i2(),e=n4(),n=yt();return(o,{lessonId:r,currentLocale:a})=>{const i=Ht(o),l=kl(r,o),u=Rn(r,o)||{},d=l?.type==="quiz",{skipLessonsIfPassed:m,skipToLessonId:p}=l.settings||{},f=u?.passed;let v,C;if(d&&m&&p&&f){v=kl(p,o)||{};const S=(Ht(o)?.lessonsOnly||[]).filter(T=>T.type!=="quiz"||T.settings?.asLesson||T.settings?.asLesson===void 0).findIndex(T=>T.id===p);C=S!==-1?S+1:null}else v=t(r,o)||{},C=e(r,o);const g=(0,nt.selectLabelsMap)(a,o),b=n(v.id,o),L=r2(o);return{buttonNavigationStyle:i.buttonNavigationStyle,lessonNameLabel:g.lessonName,lessonPrepositionLabel:g.lessonPreposition,nextLesson:v,nextLessonNumber:C,restrictionData:b?.data,restrictionType:b?.type,totalLessons:L}}}const h5=$e()(Vt.wZ,(0,K.Ng)(iK,null,null,{forwardRef:!0}))(aK),Qu=ne("lesson-nav"),cK=({allowTooltip:t,courseFinishLabel:e,onFocus:n,restrictionData:o,restrictionType:r},a)=>{const i=Xr(),l=ei(i);return(0,s.jsx)(ti,{allowTooltip:t,direction:"next",finish:!0,onFocus:n,ref:a,restrictionData:o,restrictionType:r,children:l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Qu("link-text"),children:e}),(0,s.jsx)(Td,{className:Qu("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Td,{className:Qu("link-icon")}),(0,s.jsx)("span",{className:Qu("link-text"),children:e})]})})},lK=At("LessonNavFinish",(0,h.forwardRef)(cK));function dK(t,e){const{currentLocale:n}=e,o=Ht(t),r=(0,nt.selectLabelsMap)(n,t);return{buttonNavigationStyle:o.buttonNavigationStyle,courseFinishLabel:r?.courseFinish||"Finish"}}const _m=$e()(Vt.wZ,(0,K.Ng)(dK))(lK),Zu=ne("lesson-nav"),uK=({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:i,previousLessonNumber:l,totalLessons:u},d)=>{const m=i?.id,p=Xr(),f=ei(p),C=(0,Rt.GG)(i)&&m,g=cs(i?.title)||n,b=C?`${l} ${r} ${u} \u2014 ${g}`:g,L=f&&C?`${o} ${l}`:b;return(0,s.jsx)(ti,{allowTooltip:t,className:e,direction:"previous",navLessonId:m,onFocus:a,ref:d,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Zu("link-text"),children:L}),(0,s.jsx)(gf,{className:Zu("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(gf,{className:Zu("link-icon")}),(0,s.jsx)("span",{className:Zu("link-text"),children:L})]})})},hK=At("LessonNavPrevious",h.forwardRef(uK));function mK(){const t=a2(),e=o4();return(n,{lessonId:o,currentLocale:r})=>{const a=Ht(n),i=t(o,n)||{},l=e(o,n),u=(0,nt.selectLabelsMap)(r,n),d=r2(n);return{buttonNavigationStyle:a.buttonNavigationStyle,courseHomeLabel:u.courseHome,lessonNameLabel:u.lessonName,lessonPrepositionLabel:u.lessonPreposition,previousLesson:i,previousLessonNumber:l,totalLessons:d}}}const Qm=$e()(Vt.wZ,(0,K.Ng)(mK,null,null,{forwardRef:!0}))(hK),pK={threshold:0},Yu=(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(([i])=>{o(i.isIntersecting)},e||pK);const{current:a}=r;return t.current?a.observe(t.current):o(!1),()=>{a.disconnect()}},[t,e]),n},m5=ne("navButtonsFull"),fK=()=>{const[t,e]=(0,h.useState)(!1);return(0,ss.A)(Rf,()=>e(!0)),(0,ss.A)(Pf,()=>e(!1)),t},vK=({isVisible:t})=>{(0,u5.A)(()=>window.dispatchEvent(new CustomEvent(K1))),(0,h.useEffect)(()=>{const e=t?wf:K1;window.dispatchEvent(new CustomEvent(e))},[t])},gK=({isVisible:t})=>{(0,u5.A)(()=>window.dispatchEvent(new CustomEvent(_1))),(0,h.useEffect)(()=>{const e=t?Mf:_1;window.dispatchEvent(new CustomEvent(e))},[t])},CK=({children:t,hideNavToHome:e,navNextEnabled:n,navFinishEnabled:o})=>{const r=(0,h.useRef)(null),a=(0,h.useRef)(null),i=(0,h.createRef)(null),l=(0,h.useRef)(),u=ao(),d=Yu(a),m=Yu(i),p=fK(),f=(0,h.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),v=(0,h.useCallback)(()=>{const g=r.current?.scrollHeight;r.current?.scrollTo({top:g,behavior:"smooth"})},[]);(0,ss.A)(Ad,f),(0,ss.A)(Rd,v),vK({isVisible:d}),gK({isVisible:m}),(0,h.useEffect)(()=>{if(!p&&a.current){const b=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:b})}},[p,a]);const C=m5("navPrev",{visible:d,hide:p});return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,s.jsxs)("div",{className:m5(),children:[!e&&(0,s.jsx)("div",{className:C,children:(0,s.jsx)(Qm,{lessonId:u,ref:a})}),t,n&&(0,s.jsx)(h5,{lessonId:u,ref:i}),o&&(0,s.jsx)(_m,{lessonId:u,ref:l})]})})},ll=ne("navButtonsFloating"),p5=({transitionIn:t,buttonType:e,children:n})=>{const o=(0,h.useRef)(),r={entered:ll(e,{entered:!0}),exiting:ll(e,{exiting:!0}),exited:ll(e,{exited:!0})};return(0,s.jsx)(ys.eB,{in:t,nodeRef:o,timeout:250,children:a=>(0,s.jsx)("div",{className:r[a],ref:o,children:n})})},xK=250,f5={threshold:.2},bK=({topRef:t,bottomRef:e,pageWrapRef:n,currentLessonId:o})=>{const r=Yu(t,f5),a=Yu(e,f5),[i,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[m,p]=(0,h.useState)(!1),f=(0,h.useCallback)(()=>{n.current?.scrollTo({top:2,behavior:"smooth"})},[n]);return(0,su.A)(f),(0,h.useEffect)(()=>{l(!0);const v=setTimeout(()=>{f(),l(!1)},xK);return()=>{clearTimeout(v)}},[o,f]),(0,h.useEffect)(()=>{d(a&&!i),p(r&&!i)},[a,r,i]),{showPrev:m,showNext:u}},yK=({children:t,isCurrentLessonQuiz:e,navNextEnabled:n,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,h.useRef)(),i=(0,h.useRef)(),l=(0,h.useRef)(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=ao(),{showNext:f,showPrev:v}=bK({topRef:d,bottomRef:m,pageWrapRef:a,currentLessonId:p}),C=(0,h.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),g=(0,h.useCallback)(()=>{const b=a.current?.scrollHeight;a.current?.scrollTo({top:b,behavior:"smooth"})},[]);return(0,ss.A)(Ad,C),(0,ss.A)(Rd,g),(0,h.useEffect)(()=>{e&&(n||r)&&g()},[e,n,r,g]),(0,s.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,s.jsx)("div",{className:ll("top"),ref:d}),!o&&(0,s.jsx)(p5,{buttonType:"prev",transitionIn:v,children:(0,s.jsx)(Qm,{lessonId:p,onFocus:C,ref:i})}),t,(0,s.jsx)(p5,{buttonType:"next",transitionIn:f&&(n||r),children:n?(0,s.jsx)(h5,{lessonId:p,onFocus:g,ref:l}):r?(0,s.jsx)(_m,{lessonId:p,onFocus:g,ref:u}):null}),(0,s.jsx)("div",{className:ll("bottom"),ref:m})]})};var Xu=c(15648);class LK extends Xu.Component{nodeRef=Xu.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)(ys.eB,{addEndListener:this.handleTransition,nodeRef:this.nodeRef,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,...this.props,children:n=>(this.transitionState=n,e&&Xu.cloneElement(Xu.Children.only(e),{ref:this.nodeRef}))})}}const{FULL:EK,FLOATING:v5}=k.AY,SK=ne("lessonNavigation"),TK=({children:t})=>{const e=(0,h.createRef)();return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:e,children:t})},IK=(t,e)=>t+(e?.drawCount??1),NK=(t=[])=>t.reduce(IK,0),jK=({children:t,isPreviewLesson:e})=>{const{buttonNavigationStyle:n}=(0,Ce.DX)(),{pathname:o}=(0,te.zy)(),r=(0,Ce.DX)(),{showNavigationButtons:a,lessonsOnly:i,lmsOptions:l={}}=r,u=(0,h.useRef)(),d=Ns(480),m=ao(),p=q(m)||{},f=Pn(m)||{},[v,C]=(0,h.useState)(n),g=i[0].id,b=r?.exportSettings?.webExportSettings,L=!Po.isInstantLink&&(l?.disableCoverPage||b?.disableCoverPage)&&g===m,y=!Po.isInstantLink&&l?.disableCoverPage,E=l?.disableCoverPage?L:y;(0,h.useEffect)(()=>{n!==v&&(C(n),window.dispatchEvent(new CustomEvent(Ad)))},[n,v]);const x=ag(p)||(0,es.Sg)(p)?f.isComplete:!0,S=f.activeIndex===NK(p.items)+1,T=p.type==="quiz"&&!S||p.settings?.continueType==="continue",N=p&&Ba({course:r,lesson:p}),j=m==="progress-summary",O=window.isPublicShare,D=N&&!e&&x&&!T&&!j,B=!N&&x&&Ge.BI&&!O&&!j&&!e&&!(0,qe.Hm)()&&!T,R=SK("wrapper",{full:n===EK||d,floating:n===v5&&!d}),w=!a||e?TK:n===v5&&!d?yK:CK;return(0,h.useEffect)(()=>{const M=document.querySelector(".page__content");M&&M.classList.add("page__content--preview-nav")},[w]),(0,s.jsx)("div",{className:R,ref:u,children:(0,s.jsx)(w,{hideNavToHome:E,navFinishEnabled:B,navNextEnabled:D,children:(0,s.jsx)(GG,{children:(0,s.jsx)(ys.F,{component:"div",children:(0,s.jsx)(LK,{children:t},o)})})})})};var kK=c(87191),AK=c.n(kK),RK=c(96570),PK=c.n(RK),wK=c(33266),g5=c(79941);function MK(t){return t?.slidesUI?.slideDirection??lt.fY.UP}function OK(){return(0,K.d4)(MK)}function DK(t){return t?.slidesUI?.exitingSlideOffset??0}function BK(){return(0,K.d4)(DK)}const fa=ne("blocks-lesson-slide"),C5="#fff",HK=["image full","image text overlay","quote background"],x5=({className:t})=>{const e=bn()||C5;return(0,s.jsx)("div",{className:t,style:{background:e}})},FK=({block:t})=>(0,s.jsx)(th,{block:t,children:(0,s.jsx)(x5,{className:fa("background-top")})}),zK=({block:t})=>(0,s.jsx)(th,{block:t,children:(0,s.jsx)(x5,{className:fa("background-bottom")})});function VK(t,e){const n=e.blocks?.length??1,o=n==1,r=n==2,a=e.blocks?.[0],i=e.blocks?.find(D=>D.settings.backgroundType===k.xj.IMAGE),l=t.settings.backgroundType===k.xj.IMAGE,u=t.id===a?.id,d=t.family==="multimedia",m=t.family==="mondrian",p=t.family==="buttons",v=t.variant==="accordion"&&document.querySelector(`[data-block-id="${t.id}"] [data-accordion-status="closed"]`)!=null,C=document.querySelector(`[data-block-id="${t.id}"] [data-block-text]`)?.clientHeight>300,g=r$(t.family,t.variant)||C,b=document.querySelector("[data-continue-sr]")!=null,L=!g&&r&&b&&document.querySelector("[data-continue-btn]")==null,y=o&&l&&!L,E=l&&!L&&!g,x=d||p||m;return fa("connected-blocks",{"min-half-height":i&&(r&&!L&&!g||v||E),"full-height":L||y,"top-block":u&&!o&&!g&&!x,"top-block-centered":u&&!o&&x})}const UK=({hasTransitioned:t,onContinue:e,prefersKeyboardNavigation:n,previewType:o,slide:r,transitionState:a},i)=>{const l=kt(),u=ao(),d=(0,nt.useLabelsMap)(),m=fh(),p=Pn(u),f=!0,{animateBlockEntrance:v,color:C,id:g,title:b,enableVideoPlaybackSpeed:L,publishedAt:y,tenantId:E}=l;(0,h.useImperativeHandle)(i,()=>x.current);const x=(0,h.useRef)(),S=OK(),T=BK(),N=`${a}-${S}`,j=fa("wrapper",{exiting:a==="exiting"}),{blocks:O,lastBlock:D}=r,B=(0,h.useCallback)(Ae=>{Ae===D?.id&&e()},[D,e]),R=fa("inner",{[N]:!0}),H=fa("lesson",{slides:f,"touch-preview":$c(o)}).toString(),w=r.blocks.length==1,{settings:M,type:z,variant:Z}=r.blocks?.[0]??{},Y=w&&M.backgroundType===k.xj.IMAGE,X=w&&!Y&&fr()(`${z} ${Z}`,HK),pe=X||Y,Le=r.blocks?.[0],ke=r.blocks?.[r.blocks.length-1],Be=Le?.settings?.backgroundType!==k.xj.IMAGE,We=ke?.settings?.backgroundType!==k.xj.IMAGE,De=fa("full-width-image",{legacy:X,background:Y});return(0,s.jsx)("div",{className:j,style:{top:T},children:(0,s.jsxs)("div",{className:R,children:[Be&&(0,s.jsx)(FK,{block:Le}),We&&(0,s.jsx)(zK,{block:ke}),(0,s.jsx)("div",{className:H,ref:x,children:O.map((Ae,he)=>{const le=w?!1:N6({blocks:r.blocks,lessonProgress:p,currentBlockIndex:he}),He=pe?De:VK(Ae,r);return(0,s.jsx)(T6,{animateBlockEntrance:v,block:Ae,className:He,color:C,courseId:g,courseTitle:b,defaultBackgroundColor:C5,enableVideoPlaybackSpeed:L,hideBlock:le,index:he,isFirstLesson:!0,isOnlyBlockInStep:w,labels:d,lessonId:u,lessonProgress:p,loadMedia:t,onContinue:B,partnerContent:m,prefersKeyboardNavigation:n,previewType:o,publishedAt:y,tenantId:E},Ae.blockId)})})]})})},$K=(0,h.forwardRef)(UK);var WK=c(71217),GK=c.n(WK);const b5=ne("blocks-slide-indicator-tooltip"),KK=({disabled:t,left:e,text:n,top:o,visible:r},a)=>{let i=(0,s.jsx)("span",{"aria-hidden":"true",children:n});return t&&(i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(it,{classNameIcon:b5("icon"),name:"lock"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,s.jsx)("div",{"aria-hidden":!r,className:b5("wrapper",{disabled:t,visible:r}),ref:a,role:"tooltip",style:{left:e,top:o},children:i})},y5=(0,h.forwardRef)(KK);y5.propTypes={disabled:Qe().bool.isRequired,left:Qe().number,text:Qe().string.isRequired,top:Qe().number,visible:Qe().bool.isRequired};const _K=y5;function QK(t){const e=(0,h.useRef)();return e.current||=t(),e}const Ju=ne("blocks-slide-indicator"),ZK=({active:t,blockNavigationStyle:e,disabled:n,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:i},l)=>{const{prefersKeyboardNavigation:u}=Y1()??{},[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(),v=(0,h.useRef)(),C=(0,h.useRef)(),g=(0,h.useRef)(),b=e===k.Dw.NUMBERS,L=i+1,y=`${L} / ${o}`,E=t?`Step ${L} of ${o}, current step`:`Go to step ${L} of ${o}`,x=QK(()=>document.getElementById("portal")),S=(0,h.useCallback)(()=>{if(v.current&&C.current){const Z=v.current.getBoundingClientRect(),Y=C.current.getBoundingClientRect(),X=Z.left-Y.width-18,pe=Math.round(Z.top-Y.height/2+Z.height/2);f({left:X,top:pe})}},[]),T=(0,h.useCallback)(()=>{g.current=setTimeout(()=>{S(),m(!0)},300)},[S]),N=(0,h.useCallback)(()=>{clearTimeout(g.current),m(!1)},[]),j=(0,h.useCallback)(()=>{a(i)},[a,i]),O=(0,h.useCallback)(Z=>{un(Z)&&m(!1),r(Z)},[r]),D=(0,h.useCallback)(()=>{T()},[T]),B=(0,s.jsx)(_K,{disabled:n,left:p?.left,ref:C,text:y,top:p?.top,visible:d}),R=Ju("button",{active:t,disabled:n,numbers:b}),H=Ju("wrapper"),w=Ju("circle",{active:t,disabled:n}),M=Ju("number",{active:t,disabled:n}),z=b?(0,s.jsx)("span",{"aria-hidden":"true",className:M,children:L}):(0,s.jsx)(it,{classNameIcon:w,name:"circle-solid"});return(0,s.jsxs)("div",{className:H,ref:l,children:[(0,s.jsx)("button",{"aria-current":t?"page":void 0,"aria-disabled":n,"aria-label":E+(n?" (unavailable until previous content is completed)":""),className:R,"data-control":"",onBlur:N,onClick:n?void 0:j,onFocus:u?D:void 0,onKeyDown:O,onMouseEnter:T,onMouseLeave:N,ref:v,type:"button",children:z}),(0,to.createPortal)(B,x.current)]})},YK=(0,h.forwardRef)(ZK),va=ne("blocks-slide-controls"),L5=38,XK=8,JK=t=>{const{activeSlideIndex:e,blockNavigationStyle:n,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:i,previewType:l}=t,u=(0,h.useRef)(),d=(0,h.useRef)(),[m,p]=(0,h.useState)(!1),[f,v]=(0,h.useState)(!1),C=(0,h.useCallback)(y=>{let E=!1,x=-1;if(ta(y)||gr(y)){if(e-1>=0)x=e-1;else{r();return}E=!0}else sa(y)||Cr(y)?(e+1<=o-1&&(x=e+1),E=!0):OL(y)?(x=0,E=!0):ML(y)&&(x=o-1,i[x]&&(x=i.findLastIndex(S=>!S)),E=!0);x>=0&&!i[x]&&a(x),E&&(y.stopPropagation(),y.preventDefault())},[e,o,r,a,i]);(0,h.useEffect)(()=>{const y=u.current,E=d.current;if(y&&E){const x=y.getBoundingClientRect(),S=E.getBoundingClientRect(),T=x.bottom-L5,N=x.top+L5;S.bottom>T?y.scrollBy({top:S.bottom-T,left:0,behavior:"smooth"}):S.top<N&&y.scrollBy({top:S.top-N,left:0,behavior:"smooth"})}},[e]);const g=(0,h.useCallback)(()=>{const y=u.current;y&&(p(y.scrollTop>XK),v(y.clientHeight+y.scrollTop<y.scrollHeight))},[]);(0,su.A)(g);const b=(0,h.useCallback)(yu()(g,100),[g]);Pd(u.current,g);const L=va({"touch-preview":$c(l)});return(0,s.jsx)("div",{className:L,children:(0,s.jsx)("div",{className:va("page-control-wrapper"),children:(0,s.jsxs)("div",{className:va("page-control-inner-wrapper"),children:[(0,s.jsx)("div",{className:va("page-control"),onScroll:b,ref:u,children:(0,s.jsx)("div",{className:va("slide-dot-wrapper"),children:GK()(y=>{const E=y===e;return(0,s.jsx)(YK,{active:E,blockNavigationStyle:n,disabled:i[y],numberOfSlides:o,onClick:a,onKeyDown:C,ref:E?d:null,slideIndex:y},y)},o)})}),(0,s.jsx)("div",{className:va("overlay-top",{visible:m})}),(0,s.jsx)("div",{className:va("overlay-bottom",{visible:f})})]})})})},E5=100;var dl=c(15648);const qK=50,e_=1e3,t_=({onSwipeDownHandler:t,onSwipeUpHandler:e,target:n,timeoutDuration:o=e_})=>{const[r,a]=dl.useState(!1),i=dl.useRef(void 0),l=dl.useCallback(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>a(!1),o)},[o]),u=dl.useCallback(d=>{const m=Math.abs(d.deltaY);if(r)m<qK?(i.current&&clearTimeout(i.current),a(!1)):l();else if(m>E5){const p=d.deltaY>0?t:e;a(!0),l(),p()}},[l,r,t,e]);dl.useEffect(()=>{if(!(!n||!e||!t))return n.addEventListener("wheel",u,{passive:!0}),()=>{i.current&&clearTimeout(i.current),n?.removeEventListener?.("wheel",u,{passive:!0})}},[t,e,u,n])};var ga=c(79139);const Qn=ne("lesson-one-page-slides"),s_=ne("page-wrap"),S5=100;function T5(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),i=e==="input"&&["radio","text"].includes(n)||e==="textarea"||o==="radio",l=["audio","video"].includes(e),u=o==="tab",d=document.querySelector(".quiz-card__interactive")?.contains?.(t)??!1;return a||i||l||u||d}const n_=t=>(e,n,o)=>I6(e,o.slice(0,-1),t),o_=(t,e)=>({disabled:n,slides:o},r)=>{const a=fs()(Cs()(d=>t[d.id]),Bn()(d=>Yo()(d,t[d.id])))(r),i=r[r.length-1],l=n||s$(a)||n$(a,e),u={blocks:a,lastBlock:i,disabled:n};return{disabled:l,slides:AK()(u,o)}},qu=t=>{let e=!1,n=!1;if(t){const{clientHeight:o,scrollHeight:r,scrollTop:a}=t,i=Math.max(0,a),l=r-i;e=l===r,n=l-5<=o}return{isAtTop:e,isAtBottom:n}},r_=/,? +/,a_=[],i_=({lessonProgress:t,prefersKeyboardNavigation:e,previewType:n},o)=>{(0,h.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=pt(),i=(0,h.useRef)(),l=(0,h.useRef)(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,h.useRef)(),f=(0,h.useRef)(),v=(0,h.useRef)(),C=(0,Lt.Z)(),g=(0,K.wA)(),[b,L]=(0,h.useState)(0),[y,E]=(0,h.useState)(!0),[x,S]=(0,h.useState)(!1),T=(0,Me.A)(y),N=(0,Me.A)(x),j=(0,h.useRef)(),O=mn(),D=O?.01:600,{lessons:B,...R}=(0,Ce.DX)()||{},H=R?.theme?.blockNavigationStyle||k.Dw.DOTS,w=B[0],M=w?.items||a_,z=(0,h.useCallback)(()=>{const wt=u.current?.scrollHeight>u.current?.clientHeight,{isAtBottom:Hs}=qu(u.current),qt=wt&&!y&&!Hs;qt!=x&&S(qt)},[x,y]);Pd(i.current,z),(0,h.useLayoutEffect)(z,[y]);const Z=(0,h.useCallback)(()=>{u.current?.scrollTo({top:0})},[]),Y=(0,h.useMemo)(()=>(0,qs.Ve)(Rm([],M,t).map(n_(t)),Cs()(ig.A),PK()(Ct()("blockId"))),[M,t]),X=(0,h.useCallback)(wt=>{const Hs={disabled:!1,slides:[]},{slides:qt}=Qd()(o_(Y,t),Hs,wt);return qt},[Y,t]),pe=(0,h.useMemo)(()=>(0,qs.Ve)(M,GU,X),[M,X]),Le=(0,h.useMemo)(()=>T3()("disabled",pe),[pe]),ke=pe.length,Be=pe[b],We=$c(n),De=H!==k.Dw.NONE,Ae=b===ke-1,he=t?.isComplete,le=x||Ae?!he||!Ge.BI||window.isPublicShare:Le[b+1],He=!x&&!Ae,Pe=Ae&&!Ge.BI,Ke=(0,Me.A)(Pe),Fe=x&&!Ae,ut=(0,h.useCallback)(vu()(z,100),[z]);(0,h.useEffect)(()=>{const wt=u.current;return wt?.addEventListener("scroll",ut,{passive:!0}),()=>wt?.removeEventListener("scroll",ut,{passive:!0})},[ut]),(0,h.useEffect)(()=>{document.activeElement===p.current?!N&&x?m.current?.focus({preventScroll:!0}):!Ke&&Pe&&f.current?.focus({preventScroll:!0}):document.activeElement===m.current&&N&&!x&&p.current?.focus({preventScroll:!0})},[x,N,Ke,T,Pe,y]),(0,wK.A)(()=>{ov(),j.current=setTimeout(()=>{E(!1),u.current?.focus?.()},D+S5)},()=>{clearTimeout(j.current)});const dt=(0,h.useCallback)(wt=>{const Hs=i.current?.getBoundingClientRect()?.top??0;g((0,ga.ty)(Hs)),L(wt),Z()},[g,Z]),xt=(0,h.useCallback)(()=>{y||(E(!0),Zo(()=>{C("/")},"lesson-to-one-page-cover-stepped"))},[C,y]),Jt=R?.exportSettings?.webExportSettings,zt=!Po.isInstantLink&&(R?.lmsOptions?.disableCoverPage||Jt?.disableCoverPage),Zn=(0,h.useCallback)(zt?()=>{g((0,ga.zP)(lt.fY.DOWN)),dt(0)}:xt,[zt,dt,xt,g,ga.zP]),ho=(0,h.useCallback)(()=>{y||(b>0?(g((0,ga.zP)(lt.fY.DOWN)),dt(b-1)):xt())},[dt,g,b,y,xt]),kr=(0,h.useCallback)(()=>{y||(Ae&&Ge.BI?C("/lessons/progress-summary"):(g((0,ga.zP)(lt.fY.UP)),dt(b+1)))},[dt,g,C,Ae,b,y]),Ar=(0,h.useCallback)(()=>{(b<ke-1||Ae&&Ge.BI)&&kr()},[Ae,b,ke,kr]),Rr=(0,h.useCallback)(()=>{const wt=u.current?.scrollTop??0,Hs=u.current?.clientHeight??0,qt=O?"instant":"smooth";u.current?.scrollTo({top:wt+Hs,behavior:qt})},[O]),Pr=(0,h.useCallback)(()=>{kr()},[kr]),pl=(0,h.useCallback)(()=>{Rr()},[Rr]),$i=(0,h.useCallback)(wt=>{if(wt===b||y)return;const Hs=wt<b?lt.fY.DOWN:lt.fY.UP;g((0,ga.zP)(Hs)),dt(wt),queueMicrotask(()=>{d.current?.querySelectorAll("[data-control]")?.[wt]?.focus?.()})},[dt,g,b,y]),Wi=(0,h.useCallback)(()=>E(!0),[]),fl=(0,h.useCallback)(()=>{E(!1),setTimeout(()=>{if(l.current&&d.current?.contains?.(document.activeElement)){const wt=jm()(l.current.innerText,{length:75,separator:r_});a(),r(`Content preview: ${wt}`)}else u.current?.focus?.()},0)},[r,a]),wr=(0,h.useCallback)(()=>{if(We)return;const{isAtTop:wt}=qu(u.current);if(wt){b===0?Zn():ho();return}},[We,ho,b,Zn]),mo=(0,h.useCallback)(()=>{if(We||Ae&&!Ge.BI||le)return;const{isAtBottom:wt}=qu(u.current);if(wt){Pr();return}},[Ae,le,We,Pr]),Ca=(0,h.useCallback)(()=>{const{isAtBottom:wt,isAtTop:Hs}=qu(u.current),qt=document.documentElement.clientWidth===window.innerWidth;return(wt||Hs)&&qt},[]),vl=(0,h.useCallback)(wt=>{!d.current?.contains?.(document.activeElement)&&!T5(wt.target)&&wr()},[wr]),r0=(0,h.useCallback)(wt=>{!d.current?.contains?.(document.activeElement)&&!T5(wt.target)&&mo()},[mo]),Qt=(0,h.useCallback)(wt=>{const{itemId:Hs}=wt.detail,qt=M.findIndex(Ks=>Ks.id===Hs);qt===-1||qt===b||(g((0,ga.zP)(qt>b?lt.fY.UP:lt.fY.DOWN)),dt(qt))},[dt,g,b,M]);(0,h.useEffect)(()=>(window.addEventListener(_t,Qt),()=>{window.removeEventListener(_t,Qt)})),(0,g5.A)("ArrowUp",sr(),vl),(0,g5.A)("ArrowDown",sr(),r0),t_({target:u.current,onSwipeUpHandler:wr,onSwipeDownHandler:mo,timeoutDuration:D+S5});const vn=Qn("gradient",{visible:x});return(0,s.jsx)("div",{className:Qn({}),children:(0,s.jsx)("div",{className:s_({transitioning:y}),id:"page-wrap",ref:u,tabIndex:"-1",children:(0,s.jsx)(il,{type:R.type,children:(0,s.jsx)(Di,{type:R.type,children:(0,s.jsx)(Bi,{children:(0,s.jsx)(ra,{children:(0,s.jsxs)("div",{"data-lesson-id":w?.id,children:[(0,s.jsxs)("nav",{"aria-label":"Step navigation",className:Qn("controls",{"touch-preview":We}),ref:d,children:[(0,s.jsxs)("button",{"aria-disabled":b===0&&zt,"aria-hidden":b===0&&zt,className:Qn("prev-btn",{"touch-preview":We}),onClick:ho,type:"button",children:[(0,s.jsx)(it,{classNameIcon:Qn("arrow-icon",{"touch-preview":We}),name:"arrow-up"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),De&&(0,s.jsx)(JK,{activeSlideIndex:b,blockNavigationStyle:H,numberOfSlides:ke,onGoToCover:xt,onSlideClick:$i,previewType:n,slideDisabledState:Le}),(0,s.jsxs)("div",{className:Qn("next-btns"),children:[(0,s.jsxs)("button",{"aria-disabled":!Fe,"aria-hidden":!Fe,className:Qn("page-down-btn",{"touch-preview":We}),onClick:Fe?pl:void 0,ref:m,tabIndex:Fe?void 0:-1,type:"button",children:[(0,s.jsx)(it,{classNameIcon:Qn("arrow-icon",{"touch-preview":We}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!x&&(0,s.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),Ae&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":le,"aria-hidden":!He,className:Qn("next-btn",{"touch-preview":We}),onClick:le?void 0:Pr,ref:p,tabIndex:Ae?-1:void 0,type:"button",children:[(0,s.jsx)(it,{classNameIcon:Qn("arrow-icon",{"touch-preview":We}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",le&&(0,s.jsx)("span",{children:"(disabled until content is completed)"}),Ae&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":!Pe,"aria-hidden":!Pe,className:Qn("restart-btn",{"touch-preview":We}),onClick:Pe?Zn:void 0,ref:f,tabIndex:Ae?void 0:-1,type:"button",children:[(0,s.jsx)(it,{classNameIcon:Qn("restart-icon",{"touch-preview":We}),name:"arrow-rotate-left"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,s.jsxs)(Jd,{onShouldRecognizeGesture:Ca,onSwipeDown:wr,onSwipeUp:mo,children:[(0,s.jsx)("main",{"aria-describedby":"step-counter",ref:l,tabIndex:"0",children:(0,s.jsx)(ys.F,{children:(0,s.jsx)(ys.eB,{mountOnEnter:!0,nodeRef:v,onExited:fl,onExiting:Wi,timeout:D,unmountOnExit:!0,children:wt=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:"step-counter",ref:v,children:`Step ${b+1} of ${ke}`}),(0,s.jsx)($K,{hasTransitioned:!y,onContinue:Ar,prefersKeyboardNavigation:e,previewType:n,ref:i,slide:Be,transitionState:wt})]})},b)})}),(0,s.jsx)("div",{className:vn})]})]})})})})})})})},c_=(0,h.forwardRef)(i_),I5=ne("blocks-lesson-restart-button"),l_=({className:t,onClick:e})=>{const n=I5.mix(t);return(0,s.jsx)("button",{className:n,onClick:e,type:"button",children:(0,s.jsx)(it,{classNameIcon:I5("icon"),name:"arrow-rotate-left"})})},d_=ne("lesson-one-page-scroll"),u_=({previewType:t,prefersKeyboardNavigation:e,lessonProgress:n})=>{const o=(0,h.useRef)(),[r,a]=(0,h.useState)(!1),{lessons:i,...l}=(0,Ce.DX)()||{},{lmsOptions:u={}}=l||{},d=(0,Ce.d_)(),m=(0,nt.useLabelsMap)(),{match:p}=(0,te.zy)(),f=(0,Lt.Z)(),v=i[0],C=v?.id,g=fh(),b=v?.items||[],L=n?.isComplete&&!Ge.BI,y=n?.isComplete&&Ge.BI,E=l?.exportSettings?.webExportSettings,x=!Po.isInstantLink&&(u?.disableCoverPage||E?.disableCoverPage),S=(0,h.useCallback)(()=>{r||(x?o.current?.scrollTo({top:0,behavior:mn()?"instant":"smooth"}):(a(!0),Zo(()=>{f("/")},"lesson-to-one-page-cover-continuous").finally(()=>{a(!1)})))},[f,x,r]);return(0,s.jsx)("div",{className:d_(),children:(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,s.jsx)(il,{type:l.type,children:(0,s.jsx)(Di,{type:"blocks",children:(0,s.jsxs)(Mu,{children:[(0,s.jsx)(c5,{}),(0,s.jsx)(Bi,{children:(0,s.jsx)(ra,{children:(0,s.jsxs)("div",{"data-lesson-id":v?.id,children:[(0,s.jsx)(A6,{animateBlockEntrance:l?.animateBlockEntrance,blocks:b,color:l?.color,courseId:l?.id,courseTitle:d,enableVideoPlaybackSpeed:l?.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:m,lessonId:C,lessonProgress:n,loadMedia:!0,match:p,partnerContent:g,prefersKeyboardNavigation:e,previewType:t,publishedAt:l?.publishedAt,tenantId:l?.tenantId,type:l?.type}),L&&(0,s.jsx)(l_,{onClick:S}),y&&(0,s.jsx)(_m,{lessonId:C})]})})})]})})})})})},N5=ne("microlearning-progress-summary"),h_=ne("page-wrap"),m_=({course:t,courseProgress:e,isStepped:n,lesson:o})=>{const r=(0,h.useRef)(),a=(0,h.useRef)(),[i,l]=(0,h.useState)(!1),u=N5("content",{stepped:n,mounted:i}).toString();return(0,su.A)(()=>{const d=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:d}),l(!0)}),(0,s.jsxs)("div",{className:h_(),id:"page-wrap",ref:r,children:[(0,s.jsx)(Qm,{className:N5("previous").toString(),lessonId:o?.id,ref:a}),(0,s.jsx)(O6,{contentClassName:u,course:t,courseProgress:e})]})},p_=t=>{const{isProgressSummary:e,courseProgress:n,lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}=t,i=kt(),l=i?.theme?.blockNavigationType===k.HC.STEPPED;return e?(0,s.jsx)(m_,{course:i,courseProgress:n,isStepped:l}):l?(0,s.jsx)(c_,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}):(0,s.jsx)(u_,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a})};var f_=c(15648);function j5(){const t=(0,K.wA)();return f_.useMemo(()=>({advanceQuizLessonToEnd:e=>t((0,Es.YC)(e)),submitQuizAnswer:e=>t((0,Es.kK)(e)),setQuizLessonTimeRemaining:e=>t((0,Es.hy)(e))}),[t])}var v_=c(15648);const k5=-1,g_="MULTIPLE_CHOICE";function C_({allowedRetries:t,currentRetries:e}){return t===k5?!1:e>=t}function x_({lesson:t,lessonProgress:e,getL10nRecursive:n}){const{advanceQuizLessonToEnd:o,submitQuizAnswer:r}=j5();return v_.useCallback(()=>{if(!t||!Tt(t))return;const a=t.settings??{},i=a.passToContinue??!1,l=Number(a.retryCount??k5),u=Object.values(e?.items??{}).filter(p=>!p.isComplete);if(u.length===0)return;const d=e.retryAttempts??0,m=C_({allowedRetries:l,currentRetries:d});u.forEach(p=>{const f=sG({lesson:t,question:p});if(!f)return;const v=f.type||g_,C=n({duration:{startTime:0,stopTime:0},id:t.id,isCorrect:!1,isUnfinished:!0,item:{id:String(f.id||""),title:String(f.title||""),type:v},itemProgress:p,retryAttempts:d,title:t.title});(0,qe.bb)(C),r({finalRetryAttempt:m,isCorrect:!1,itemId:p.id,lessonId:t.id,passToContinue:i})}),o(t.id)},[o,n,e,t,r])}var A5=c(15648);function b_({children:t}){const e=lr(),n=Jn(),o=q(n),r=Pn(n),a=(0,at.NB)(),{setQuizLessonTimeRemaining:i}=j5(),l=A5.useMemo(()=>r??{},[r]),u=x_({lesson:o,lessonProgress:l,getL10nRecursive:a}),d=A5.useMemo(()=>vo(o)?o.settings:void 0,[o]),m=!!d?.timer,p=d?.timerDuration;return(0,s.jsx)(TW,{courseProgress:e,currentLessonId:n,handleExpiredQuiz:u,isTimedQuiz:m,setQuizLessonTimeRemaining:i,timerDuration:p,children:t})}const y_=t=>t?"mondrianTranscript"in t?t.mondrianTranscript:"tmp"in t&&t.tmp?.audio?.transcript||t.audio?.transcript:null;var L_=c(15648);const E_=960,Zm=ne("transcript-panel");function S_({enhancedLabels:t,lessonId:e,questionBankActiveIndex:n}){const o=(0,K.wA)(),{audioPlayerIdOpen:r,focusing:a,refocusTarget:i,transcriptMedia:l}=Gc(),u=!!r,d=(0,h.useId)(),m=(0,K.d4)(le=>e?Rn(e,le):null),f=e?.startsWith("question-bank-")?n:m?.type==="quiz"?m.activeIndex:void 0,v=Ns(E_),[C,g]=(0,h.useState)(0),[b,L]=(0,h.useState)(!1),[y,E]=(0,h.useState)(!1),x=(0,h.useRef)(!1),S=(0,h.useRef)(null),T=(0,h.useRef)(null),N=(0,h.useRef)(l),j=(0,h.useRef)(e),O=(0,h.useRef)(f),D=(0,Ce.vU)()||t,B=(0,h.useRef)(null),R=(0,h.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),H=(0,h.useCallback)(le=>{const Pe=R.current.panelHeight,Ke=performance.now();E(!0);const Fe=ut=>{const dt=ut-Ke,xt=Math.min(dt/300,1),Jt=1-Math.pow(1-xt,3),zt=Pe+(le-Pe)*Jt;g(zt),R.current.panelHeight=zt,xt<1?requestAnimationFrame(Fe):(E(!1),L(!1),R.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(Fe)},[L,E,g]),w=(0,h.useCallback)(le=>{const{startTime:He,startY:Pe,startHeight:Ke}=R.current;if(!v||Pe===null)return;const Fe=Pe-(le?.clientY??le?.touches?.[0]?.clientY??0),ut=Ke+Fe;if(g(ut),R.current.panelHeight=ut,He!==null){const dt=performance.now()-He,xt=Fe/dt;R.current.velocity=xt}},[v]),M=(0,h.useCallback)(le=>{const{velocity:He}=R.current;if(!He)return;Object.assign(R.current,{startY:null,startHeight:null,startTime:null}),L(!1);const Pe=window.innerHeight*.66;let Ke;Math.abs(He)>.5?Ke=He>0?window.innerHeight:150:Ke=C>=Pe?window.innerHeight:150,H(Ke),le instanceof MouseEvent&&(window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",M))},[H,C,w]),z=(0,h.useCallback)(le=>{!v||T.current.contains(le.target)||S.current.contains(le.target)||(Object.assign(R.current,{startY:le?.clientY??le?.touches?.[0]?.clientY??null,startHeight:B.current?.clientHeight??0,startTime:performance.now()}),L(!0),le.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",w),window.addEventListener("mouseup",M)))},[w,M,v,L]);(0,h.useEffect)(()=>{let le;const He=()=>{B?.current?.style&&(B.current.style.transition="none",B.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Fe=>{Fe.style.transition="none"}))},Pe=()=>{clearTimeout(le),le=setTimeout(()=>{B?.current?.style&&(B.current.style.transition="",B.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Fe=>{Fe.style.transition=""}))},200)};return window.addEventListener("resize",He),window.addEventListener("resize",Pe),()=>{window.removeEventListener("resize",He),window.removeEventListener("resize",Pe),clearTimeout(le)}},[]),(0,h.useEffect)(()=>{!u&&x.current&&g(0),a&&u&&B.current&&(B.current.focus(),o(xr({audioPlayerId:r,focusing:!1}))),x.current=u},[r,o,a,u]),(0,h.useEffect)(()=>{u&&l!==N.current&&(N.current=l)},[u,l]),(0,h.useEffect)(()=>{u&&j.current!==e&&o(Vc()),j.current=e},[e,u,o]),(0,h.useEffect)(()=>{u&&O.current!==f&&O.current!==void 0&&o(Vc()),O.current=f},[f,u,o]);const Z={role:"button",tabIndex:0,onMouseDown:z,onTouchStart:z,onTouchEnd:M,onTouchMove:w},[Y,X]=L_.useState(!1),pe=(0,at.QQ)(Y?N.current:l),Le=y_(pe);let ke;u&&(ke=Sh(r));const Be=(0,h.useCallback)(()=>{const le=i??document.getElementById(Sv(r));return le?(le.focus(),!0):!1},[r,i]),We=(0,h.useCallback)(le=>{le.stopPropagation(),le.preventDefault(),o(Vc()),Be()},[o,Be]),De=(0,h.useCallback)(()=>{Be()||T.current.focus()},[Be]),Ae=(0,h.useCallback)(()=>{T.current.focus()},[]),he=(0,h.useCallback)(le=>{r&&le.key==="Escape"&&We(le)},[r,We]);return(0,s.jsxs)(s.Fragment,{children:[u?(0,s.jsx)("div",{onFocus:De,tabIndex:0}):null,(0,s.jsx)(ys.B1,{classNames:"transcript-panel",in:u,nodeRef:B,onEnter:()=>X(!1),onEntered:()=>X(!1),onEntering:()=>X(!1),onExit:()=>X(!0),onExited:()=>X(!1),onExiting:()=>X(!0),timeout:300,unmountOnExit:!0,children:(0,s.jsxs)("section",{"aria-hidden":!u,"aria-labelledby":d,className:W()(Zm({isOpen:u,isAnimatingMobileSwipe:y,isDragging:b})),id:ke,onKeyDown:he,ref:B,style:v&&u?{height:`${C/10}rem`,minHeight:C>0?"33vh":void 0}:{},tabIndex:-1,children:[(0,s.jsxs)("header",{...v?Z:{},children:[(0,s.jsx)("h3",{id:d,ref:S,children:D?.audioTranscript}),(0,s.jsx)(Ot.ArcButton,{"aria-label":D?.audioHideTranscript,className:Zm("close-button"),hierarchy:"tertiary",icon:(0,s.jsx)(it,{name:"close"}),layout:"icon",onClick:We,ref:T})]}),(0,s.jsx)("section",{className:Zm("transcript-text",{"not-available":!Le}),children:Le||D?.audioNoTranscriptAvailable})]})}),u?(0,s.jsx)("div",{onFocus:Ae,tabIndex:0}):null]})}var ul=c(15648);const R5={FORWARD:"page-transition",BACK:"page-transition-back"},e0=({id:t,lessons:e})=>t==="progress-summary"?1/0:e.findIndex(n=>n.id===t),T_=t=>{window.parent.postMessage({type:"preview:lessonChange",data:t},"*")};function I_({currentLessonId:t,lessons:e,isProgressSummary:n}){const o=(0,Lt.Z)(),r=ul.useRef(!1),a=ul.useRef(t),i=ul.useCallback(()=>r.current?R5.FORWARD:R5.BACK,[]),l=ul.useCallback(u=>{const d=e0({id:u,lessons:e});if(n)r.current=!1;else if(u==="progress-summary")r.current=!0;else{const m=e0({id:t,lessons:e});r.current=m<d}o(`/lessons/${encodeURIComponent(u)}`)},[o,e,n,t]);return ul.useEffect(()=>{const u=e0({id:t,lessons:e}),d=e0({id:a.current,lessons:e});u!==d&&e.length>0&&(r.current=d<u),a.current=t,T_(t)},[t,e]),{getNavigateDirection:i,handleNavigate:l}}const Ym=({course:t,courseProgress:e,didNavigate:n,lessons:o=[],previewType:r,sessionPreferences:a})=>{const i=(0,te.g)(),l=(0,te.zy)(),u=Ge.BI&&i.id==="progress-summary",[d]=(0,h.useState)(i.mode==="preview-lesson"),m=(0,h.useRef)(null),p=Ns(480),{getNavigateDirection:f,handleNavigate:v}=I_({currentLessonId:i.id,lessons:o,isProgressSummary:u}),C=(0,zs.c3)(t),g=(0,h.useCallback)(()=>{C||(t.theme?.hideLessonHeaders?document.querySelector("main"):document.querySelector("h1"))?.focus({preventScroll:!0})},[t,C]),b=W()("lesson",{"lesson--preview":d}),L=Pn(i.id),y=(0,h.useMemo)(()=>L??{},[L]),E=(0,h.useMemo)(()=>({didNavigate:n,handleNavigate:v,handleStorylineFullscreen:qs.lQ,isMobileHeader:p,isProgressSummary:u,lessonProgress:y,navigateDirection:f,onNavigateTransitionEnd:qs.lQ,onPageReady:g,previewType:r}),[n,f,g,v,p,u,y,r]);return(0,s.jsxs)(b_,{children:[(0,s.jsxs)("div",{className:"page-lesson-wrap",children:[!C&&(0,s.jsx)(wN,{}),(0,s.jsxs)("div",{className:"page-lesson",children:[(0,s.jsx)(LA,{mode:"readonly",children:(0,s.jsx)("div",{className:b,"data-lesson":!0,ref:m,children:(0,s.jsx)("div",{className:"lesson__content",children:(0,s.jsx)("div",{className:"page-view page-view--visible",children:(0,s.jsx)(QP,{isPreviewLesson:d,children:C?(0,s.jsx)(p_,{courseProgress:e,isProgressSummary:u,lessonProgress:y,prefersKeyboardNavigation:a.prefersKeyboardNavigation,previewType:r}):(0,s.jsx)(jK,{isPreviewLesson:d,children:(0,s.jsx)(oK,{...E},l.pathname)})})})})})}),(0,s.jsx)(S_,{lessonId:String(e.currentLesson)})]})]}),(0,s.jsx)(Lh,{onClose:g})]})},N_=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",l=a&&r?.disableCoverPage,u=i&&o?.disableCoverPage,d=!Po.isInstantLink&&(l||u),m=e.lessonsOnly[0]?.id;return(0,s.jsxs)(te.BV,{children:[(0,s.jsx)(te.qh,{element:(0,s.jsx)(Ym,{...t}),path:"/lessons/:id"}),(0,s.jsx)(te.qh,{element:(0,s.jsx)(Ym,{...t}),path:"/lessons/:id/:mode"}),d?(0,s.jsx)(te.qh,{element:(0,s.jsx)(te.C5,{replace:!0,to:(0,es.p1)(m)}),index:!0}):(0,s.jsx)(te.qh,{element:(0,s.jsx)(bv,{...t}),index:!0}),d?(0,s.jsx)(te.qh,{element:(0,s.jsx)(te.C5,{replace:!0,to:(0,es.p1)(m)}),path:"/:mode"}):(0,s.jsx)(te.qh,{element:(0,s.jsx)(bv,{...t}),path:"/:mode"})]})},Xm=ne("one-page-cover-info");function j_({htmlIdTitle:t}){const e=_a("title");return(0,s.jsxs)("div",{className:Xm(),"data-change-path":e,children:[(0,s.jsx)(i5,{className:Xm("title").toString(),htmlId:t}),(0,s.jsx)(a5,{className:Xm("authors").toString()})]})}const k_=At("OnePageCoverInfo",j_);function A_(t){const e=(0,J1.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 t0=ne("one-page-cover"),R_=ne("cover");class P_ extends h.Component{constructor(e){super(e),this.refLink=(0,h.createRef)(),this.refMain=(0,h.createRef)(),this.transitioning=!1}componentDidMount(){ov(),this.focusMain(),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("wheel",this.onWheel,{passive:!0})}componentDidEnter(){this.focusMain()}componentWillUnmount(){document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("wheel",this.onWheel,{passive:!0})}focusMain=()=>{this.refMain.current?.focus?.()};getLessonPath=()=>{const e=this.props.lesson?.id;return e?(0,es.p1)(e):null};transitionToLessonContent=()=>{const e=this.getLessonPath();if(e!=null){const o=this.props.course?.theme?.blockNavigationType===k.HC.STEPPED?"one-page-cover-to-lesson-stepped":"one-page-cover-to-lesson-continuous";Zo(()=>{this.props.navigate(e)},o)}};onClickStartArea=e=>{!this.refLink.current?.contains?.(e.target)&&!this.transitioning&&(this.transitioning=!0,this.transitionToLessonContent())};onClickStartLink=e=>{e.preventDefault(),this.transitioning||(this.transitioning=!0,this.transitionToLessonContent())};onKeyUp=e=>{(e.key==="ArrowDown"||e.key==="ArrowRight")&&!this.transitioning&&(this.transitioning=!0,document.removeEventListener("keyup",this.onKeyUp),this.transitionToLessonContent())};onWheel=e=>{$c(this.props.previewType)||this.transitioning||e.deltaY>E5&&(this.transitioning=!0,document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.transitionToLessonContent())};render(){const{props:{course:e}}=this,n=e?.coverPageType===k.BL.WHITE,o=e?.coverPageType===k.BL.IMAGE,r=e?.coverPageType===k.BL.ACCENT,a=e?.theme?.blockNavigationType===k.HC.STEPPED,i=e?.theme?.coverImageColor??k.df.DARK,l="title",d=`overlay-${i?.toLowerCase()}`,m=t0("wrapper",{[d]:o,accent:r,image:o,white:n}).mix(R_("header-content"));return(0,s.jsxs)(Jd,{onSwipeUp:this.transitionToLessonContent,children:[(0,s.jsxs)("main",{className:m,ref:this.refMain,tabIndex:"-1",children:[(0,s.jsx)(k_,{htmlIdTitle:l}),a&&(0,s.jsx)("div",{className:"visually-hidden-always",children:"To quickly navigate between steps, use the up and down arrow keys or the step navigation found on subsequent steps."}),(0,s.jsx)("div",{className:t0("start-wrapper"),onClick:this.onClickStartArea,children:(0,s.jsx)(On,{"aria-label":"Start",className:t0("start-link"),onClick:this.onClickStartLink,ref:this.refLink,to:this.getLessonPath(),children:(0,s.jsx)(it,{className:t0("start-icon"),name:"arrow-down"})})}),o&&(0,s.jsx)(S1,{})]}),(0,s.jsx)(Lh,{onClose:this.focusMain})]})}}function w_(t){const e=Ht(t),n=(0,Rt.Vu)(e);return{course:e,lesson:n}}const P5=$e()(A_,(0,K.Ng)(w_,null,null,{forwardRef:!0}))(P_),M_=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",l=a&&r?.disableCoverPage,u=i&&o?.disableCoverPage,d=!Po.isInstantLink&&(l||u),m=e.lessonsOnly[0].id;return(0,s.jsxs)(te.BV,{children:[(0,s.jsx)(te.qh,{element:(0,s.jsx)(Ym,{...t}),path:"/lessons/:id"}),d?(0,s.jsx)(te.qh,{element:(0,s.jsx)(te.C5,{replace:!0,to:(0,es.p1)(m)}),index:!0}):(0,s.jsx)(te.qh,{element:(0,s.jsx)(P5,{}),index:!0}),d?(0,s.jsx)(te.qh,{element:(0,s.jsx)(te.C5,{replace:!0,to:(0,es.p1)(m)}),path:"/:mode"}):(0,s.jsx)(te.qh,{element:(0,s.jsx)(P5,{}),path:"/:mode"})]})};class O_ extends h.Component{constructor(e){super(e),this.passwordRef=(0,h.createRef)(),this.state={failAttempt:!1,shouldShake:!1}}static propTypes={onSubmit:Qe().func.isRequired,failAttempt:Qe().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=W()("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 D_=t=>({isOnePage:La(t)}),B_=(0,K.Ng)(D_)(O_),Jm=ne("lesson-navigation-dropdown"),w5=({lessonTitle:t})=>(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:Jm("option",{"ai-loading":!0}),children:[(0,s.jsx)(bs,{value:t||"Generating lesson..."}),(0,s.jsx)("div",{className:Jm("ai-loading-progress"),children:(0,s.jsx)("div",{className:Jm("spinner")})})]})});var M5=c(15648);const hl=ne("lesson-navigation-dropdown"),H_=({disabled:t,index:e,option:n,selectedLessonId:o,onSelect:r,getLessonPath:a})=>{const[i,l]=M5.useState(!0),u=`lesson-navigation-dropdown-section-${e}`,d=M5.useCallback(p=>{p.stopPropagation(),p.preventDefault(),l(f=>!f)},[]),m=hl("group-header-icon",{collapsed:!i});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":u,"aria-expanded":i,className:hl("group-header"),onClick:d,type:"button",children:[(0,s.jsx)(it,{className:m,name:"caret-down"}),(0,s.jsx)("span",{className:hl("group-header-text"),children:(0,s.jsx)(bs,{value:n.label})})]}),(0,s.jsx)(Oc,{inert:!i,children:(0,s.jsx)("ol",{"aria-hidden":i?void 0:!0,className:hl("group-list",{collapsed:!i}),id:u,children:n.options?.map((p,f)=>{const v=String(p.value),C=t||p.disabled;return p.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(w5,{lessonTitle:p.label},`${v}-${f}`):(0,s.jsx)("li",{children:(0,s.jsx)(Mc,{className:hl("option",{disabled:C,selected:p.value===o}),onClick:C?void 0:()=>r(v),to:C?void 0:a(v),children:(0,s.jsx)(bs,{value:p.label})})},`${v}-${f}`)})})})]})},F_={course:({courseId:t})=>`/authoring/${t}`,courseLocales:({courseId:t})=>`/manage/locales/${t}`,dashboard:"/manage/all-content",lesson:({courseId:t,lessonId:e})=>`/authoring/${t}/lesson/${e}`},z_=(t,e="section")=>t.reduce((n,o)=>(o.type===e?n.grouped.push([o]):n.grouped.length===0||n.grouped[n.grouped.length-1][0].type!==e?n.ungrouped.push(o):n.grouped[n.grouped.length-1].push(o),n),{grouped:[],ungrouped:[]}),V_=(t,e={})=>{if(!Array.isArray(t))return{options:[],hasGrouping:!1};const{sectionType:n}=e;if(!t.some(d=>d.type===n))return{options:t.filter(m=>m&&m.id).map(m=>({label:m.title||"Untitled Lesson",type:m.type,value:String(m.id),disabled:m.type===null,lesson:m})),hasGrouping:!1};const{grouped:r,ungrouped:a}=z_(t,n),i=r.map((d,m)=>{const[p,...f]=d,v=p&&"title"in p?p.title:void 0;return{label:v||"Untitled Section",type:p?.type||null,value:v||`section-${m}`,options:f.filter(C=>C&&C.id).map(C=>({label:C.title||"Untitled Lesson",type:C.type,value:String(C.id),disabled:C.type===null,lesson:C}))}}).filter(d=>d.options&&d.options.length>0);return{options:[...a.filter(d=>d&&d.id).map(d=>({label:d.title||"Untitled Lesson",type:d.type,value:String(d.id),disabled:d.type===null,lesson:d})),...i],hasGrouping:!0}};function U_(t="course-overview"){const e=(0,Ce.DX)(),n=(0,Ce.H7)()??{},o=(0,at.dx)(n),r=e.id,a=o,i=e.lessons||Object.keys(n),l=F_,u=V_,[d,m]=(0,h.useState)(t),p=(0,h.useMemo)(()=>Array.isArray(a)?a:i.map(y=>a[y]).filter(Boolean),[i,a]),{options:f,hasGrouping:v}=(0,h.useMemo)(()=>u(p,{sectionType:"section"}),[p,u]),C=(0,h.useMemo)(()=>{for(const y of f){if(y.value===d)return y.label??"Untitled Lesson";if(y.options){for(const E of y.options)if(E.value===d)return E.label??"Untitled Lesson"}}return d},[f,d]),g=(0,h.useMemo)(()=>{for(const y of f)if(y.value===d)return y.type??null;return null},[f,d]),b=(0,h.useCallback)(y=>{m(y),y==="course-stack"&&(window.location.href=l.courseLocales({courseId:r}))},[l,r]),L=(0,h.useCallback)(y=>{const E=typeof window<"u"&&window.location?.pathname?.includes("/authoring/");switch(y){case"course-overview":return E?l.course({courseId:r}):"/";case"course-stack":return l.courseLocales({courseId:r});default:return E?l.lesson({courseId:r,lessonId:y}):`/lessons/${y}`}},[r,l]);return{options:f,hasGrouping:v,selectedLessonId:d,selectedLessonType:g,selectedOptionLabel:C,onLessonChange:b,getLessonPath:L}}var lo=c(15648);const uo=ne("lesson-navigation-dropdown"),$_=({disabled:t,options:e,selectedLessonId:n,handleOnSelect:o,getLessonPath:r})=>{const a=(0,Ce.DX)(),i=(0,gs.HX)(a);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:uo("course-nav-links"),children:[i&&(0,s.jsxs)(Mc,{className:uo("option",{selected:n==="course-stack","with-icon":!0}),onClick:()=>o("course-stack"),to:r("course-stack"),children:[(0,s.jsx)(Ot.ArcIcon,{icon:"fa-regular fa-globe"}),(0,s.jsx)(bs,{value:"Course Stack"})]}),(0,s.jsxs)(Mc,{className:uo("option",{disabled:t,selected:n==="course-overview","with-icon":!0}),onClick:()=>o("course-overview"),to:r("course-overview"),children:[(0,s.jsx)(Ot.ArcIcon,{className:uo("book-icon"),icon:"fa-regular fa-book-open"}),(0,s.jsx)(bs,{value:"Course Overview"})]})]}),(0,s.jsx)("div",{"aria-labelledby":"lesson-navigation-title",className:uo("list-header"),role:"group",children:(0,s.jsx)("div",{id:"lesson-navigation-title",children:(0,s.jsx)(bs,{value:"Lessons"})})}),(0,s.jsx)("ol",{className:uo("list"),children:e.map((l,u)=>{if(l.options&&l.options.length>0)return(0,s.jsx)("li",{children:(0,s.jsx)(H_,{disabled:t,getLessonPath:r,index:u,onSelect:o,option:l,selectedLessonId:String(n)})},`${String(l.value)}-${u}`);{const d=String(l.value),m=t||l.disabled;return l.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(w5,{lessonTitle:String(l.label)},d):(0,s.jsx)("li",{children:(0,s.jsx)(Mc,{className:uo("option",{disabled:m,selected:l.value===n}),onClick:m?void 0:()=>o(d),to:m?void 0:r(d),children:(0,s.jsx)(bs,{value:l.label})})},d)}})})]})},W_=({currentLessonId:t,sendTrackingEvent:e})=>{const[n,o]=lo.useState(!1),r=lo.useRef(!1),a=lo.useRef(null),{onLessonChange:i,options:l,selectedLessonId:u,selectedOptionLabel:d,getLessonPath:m}=U_(t),p=lo.useCallback(()=>{if(a.current&&n){const E=a.current.getBoundingClientRect(),x=document.getElementById("lesson-navigation-dropdown");x&&(x.style.position="fixed",x.style.top=`${E.bottom}px`,x.style.left=`${E.left}px`,x.style.minWidth="40rem",x.style.zIndex="9999")}},[n]);lo.useEffect(()=>{if(n){p();const E=()=>p(),x=()=>p();return window.addEventListener("scroll",E,{passive:!0}),window.addEventListener("resize",x,{passive:!0}),()=>{window.removeEventListener("scroll",E),window.removeEventListener("resize",x)}}},[n,p]);const f=lo.useCallback(()=>{setTimeout(()=>{const E=document.querySelector("[popover]#lesson-navigation-dropdown");if(!E)return;const x=E.querySelector(`.${uo("option--selected")}`);x&&(x.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),x.focus())},100)},[]),v=lo.useCallback(E=>{if(!n)return;const x=document.querySelector("[popover]#lesson-navigation-dropdown");if(!x)return;const S=x.querySelectorAll(`.${uo("option")}, .${uo("group-header")}`);if(S.length===0)return;const T=document.activeElement,N=Array.from(S).indexOf(T);let j=N;switch(E.key){case"ArrowDown":E.preventDefault(),j=N===-1?0:(N+1)%S.length;break;case"ArrowUp":E.preventDefault(),j=N===-1?S.length-1:(N-1+S.length)%S.length;break;case"Home":E.preventDefault(),j=0;break;case"End":E.preventDefault(),j=S.length-1;break;case"Escape":E.preventDefault(),Ot.ArcPopover.handlePopover("lesson-navigation-dropdown","hide");return;case"Enter":case" ":case"Space":E.preventDefault(),N>=0&&S[N]?.click();return;default:return}S[j]?.focus(),S[j]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[n]);lo.useEffect(()=>{if(n)return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[n,v]);const C=lo.useCallback(E=>{i(E),Ot.ArcPopover.handlePopover("lesson-navigation-dropdown","hide")},[i]),g=lo.useCallback(E=>{n||(E.currentTarget.style.borderColor="var(--arc-color-border-stark)")},[n]),b=lo.useCallback(E=>{E.currentTarget.style.borderColor="transparent"},[]),L={backgroundColor:"var(--arc-color-background-secondary)",borderRadius:"var(--arc-border-radius-md)",height:"var(--arc-size-4)",paddingInline:"var(--arc-space-1-5)",border:"var(--arc-border-width-sm) solid transparent",transition:"border-color 0.2s ease"},y={fontSize:"1.1rem",fontWeight:"var(--arc-font-weight-600)",marginBlockStart:"var(--arc-space-0-25)"};return(0,s.jsx)("nav",{children:(0,s.jsx)(Ot.ArcPopover,{anchorAt:"bottom-start",anchorProps:{iconEnd:(0,s.jsx)("i",{className:"fa-regular fa-chevron-down",style:y}),layout:"hug",onMouseEnter:g,onMouseLeave:b,style:L,text:d,variant:"tertiary",ref:a},"aria-labelledby":"lesson-navigation-title",className:uo(),hasTail:!1,id:"lesson-navigation-dropdown",onToggle:E=>{const x=E.newState==="open";if(o(x),x)e();else{r.current=!1;return}r.current||(f(),r.current=!0)},variant:"common",children:(0,s.jsx)($_,{disabled:!1,getLessonPath:m,handleOnSelect:C,options:l,selectedLessonId:String(u)})})})},ml=ne("app-header"),G_=({children:t,className:e="",currentLessonId:n,isArcButtonGroup:o=!1,isAIAssistantEnabled:r=!1,isBlockActionsSidebarOpen:a=!1,isMicrolearning:i=!1,localesDropdown:l=null,menuButton:u=null,sendLessonNavDropdownTrackingEvent:d=()=>{},snapshotDropdown:m=null,title:p})=>{const f=ml({v2:r}).mix(e),v=!!(m||l),g=n!=null&&n!=="course-overview"&&!Ge.BI&&!i&&!a;return(0,s.jsxs)("div",{className:f,dir:"ltr",id:"app-header",children:[u,(0,s.jsxs)("div",{className:ml("title-dropdowns"),children:[p&&!g&&(0,s.jsx)("div",{className:ml("title"),"data-testid":"AppHeaderTitle",children:(0,s.jsx)(bs,{value:p})}),g&&(0,s.jsx)(W_,{currentLessonId:n,sendTrackingEvent:d}),v&&(0,s.jsxs)("div",{className:ml("dropdowns"),children:[m,l]})]}),(0,s.jsx)("div",{className:ml("btn-group",{arc:o}),"data-testid":"AppHeaderButtonGroup",children:t})]})},K_=t=>W()("button",{[t.className]:!hn()(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}),__=({icon:t})=>t?(0,s.jsx)("i",{className:`button__icon icon-${t}`}):null,Q_=({onlyIcon:t,children:e})=>h.Children.map(e,n=>t&&n.type===void 0?null:n),Z_=({accent:t,ariaControls:e,ariaExpanded:n,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:i,className:l,children:u,condensed:d,controls:m,controlsEnhanced:p,disabled:f,el:v,extraPadding:C,header:g,headerDone:b,icon:L,inverted:y,mode:E,next:x,onClick:S=Function.prototype,onlyIcon:T,onMouseDown:N=Function.prototype,outline:j,outlineTransparent:O,sidebar:D,tabIndex:B,type:R,...H})=>{const w=v||"button";return w==="button"&&!R&&(R="button"),(0,s.jsxs)(w,{"aria-controls":e,"aria-expanded":n,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:K_({accent:t,branded:i,className:l,condensed:d,controls:m,controlsEnhanced:p,disabled:f,extraPadding:C,header:g,headerDone:b,inverted:y,mode:E,next:x,outline:j,outlineTransparent:O,sidebar:D}),disabled:f,onClick:S,onMouseDown:N,tabIndex:B,type:R,...H,children:[(0,s.jsx)(__,{icon:L}),Q_({onlyIcon:T,children:u})]})};var on,O5,Y_,X_,D5,J_,q_,eQ,qm,B5,tQ,sQ;const zo=ne("app-header"),H5=(0,Ge._$)("CDN_URI"),nQ=({disabled:t,onClick:e})=>(0,s.jsx)("button",{className:zo("promo-btn"),disabled:t,onClick:e,type:"button",children:"New"}),F5=({children:t,disabled:e=!1,done:n=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:i=!1,el:l="button",href:u=void 0,external:d=!1,capitalize:m=!0,...p})=>{const f=(0,Lt.Z)(),v=(0,h.useCallback)(async g=>{e||(o&&await o(g),u&&(d?window.location.href=u:f(u)))},[f,u,o,e,d]),C=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Z_,{disabled:e,el:u?"a":l,header:!n,headerDone:n,onClick:v,style:m?null:{textTransform:"none",fontWeight:600,fontSize:"1.4rem",letterSpacing:0},...p,children:t}),i&&(0,s.jsx)(nQ,{disabled:e,onClick:v}),a]});return(0,s.jsx)(Ot.ArcTooltip,{anchorAt:"left-center","data-testid":"AppHeaderButtonTooltipContainer",isEnabled:e&&!!r,text:r,children:C})};F5.propTypes={children:Qe().node,disabled:Qe().bool,done:Qe().bool,el:Qe().string,href:Qe().string,onClick:Qe().func,tooltipText:Qe().string,dataBa:Qe().string};const noe=()=>on("div",{className:zo("divider")}),ooe=({href:t,label:e,onClick:n,xhref:o,...r})=>{const a=X_(),i=D5(async l=>{if(o||l.preventDefault(),n)return n();t&&a(t)},[t,o,a,n]);return on("div",{className:zo("menu-btn"),...r,children:on("a",{"aria-label":e,className:zo("menu-close"),href:o,onClick:i,children:on(eQ,{})})})},roe=({onClick:t,label:e,...n})=>{const o=sQ("rise-lesson-nav-dropdown-release"),r=tQ(),a=!!r?.defaultLocaleId,l=window.location.search.includes("fromDashboard")||!r?.id,u=r?.id?qm.course({courseId:r.id}):null,d=D5(m=>{t&&t(m)},[t]);return on(O5,{children:o?on(O5,{children:a?Y_(B5,{className:zo("menu-btn"),onClick:d,to:qm.courseLocales,...n,children:[on(q_,{className:zo("back-icon"),icon:"fa-regular fa-chevron-left"}),on("div",{className:"visually-hidden-always",children:e})]}):l?on("a",{className:zo("menu-btn"),href:qm.dashboard,onClick:d,...n,children:on("img",{alt:e,src:`${H5}/assets/rise/assets/articulate-a-logo.svg`})}):on(B5,{className:zo("menu-btn"),onClick:d,to:u,...n,children:on("img",{alt:e,src:`${H5}/assets/rise/assets/articulate-a-logo.svg`})})}):on("div",{className:zo("menu-btn"),children:on(J_,{ariaLabel:e,icon:"up-level-2",onClick:t,...n})})})},aoe=({children:t,...e})=>on("div",{className:zo("owner-label"),...e,children:t});var s0=c(15648);const Bs=ne("curtain"),oQ=({labelCurtainLoading:t="Your content is loading.",labelCurtainOffline:e="Your computer is offline.",labelCurtainOfflineReconnecting:n="Attempting to reconnect\u2026",labelCurtainSessionTimedOut:o="Your session has timed out.",labelCurtainSessionTimedOutRefresh:r="Refresh",labelCurtainSessionTimedOutRestart:a="Click refresh to restart your session.",labelCurtainSomethingWrong:i="Something went wrong.",labelCurtainSomethingWrongRefresh:l="Refresh",labelCurtainSomethingWrongTryAgain:u="Click to refresh and try again.",loadingText:d,showHeader:m,status:p})=>{const[f,v]=s0.useState(!1),C=()=>v(!0),g=s0.useRef(null);return s0.useEffect(()=>(g.current=setTimeout(C,1e4),()=>{g.current&&clearTimeout(g.current)}),[]),s0.useEffect(()=>{if(p==="error"){const b=new Error("There was a socket connection error. The renderReconnect curtain was displayed");d6.y.logger.error(b.message,b)}},[p]),p==="fatalError"?(0,s.jsx)(aQ,{labelCurtainSomethingWrong:i,labelCurtainSomethingWrongRefresh:l,labelCurtainSomethingWrongTryAgain:u,showHeader:m}):p==="error"&&f?(0,s.jsx)(cQ,{labelCurtainSessionTimedOut:o,labelCurtainSessionTimedOutRefresh:r,labelCurtainSessionTimedOutRestart:a,showHeader:m}):p==="error"?(0,s.jsx)(iQ,{labelCurtainOffline:e,labelCurtainOfflineReconnecting:n,showHeader:m}):(0,s.jsx)(rQ,{labelCurtainLoading:t,showHeader:m,text:d})},z5=()=>window.location.reload(),rQ=({labelCurtainLoading:t,showHeader:e,text:n})=>(0,s.jsx)("div",{className:Bs("container",{"show-header":e}),children:(0,s.jsxs)("div",{className:Bs(),children:[(0,s.jsx)("div",{className:Bs("spinner")}),(0,s.jsx)("div",{className:Bs("text"),children:n||t})]})}),aQ=({labelCurtainSomethingWrong:t,labelCurtainSomethingWrongRefresh:e,labelCurtainSomethingWrongTryAgain:n,showHeader:o})=>(0,s.jsx)("div",{className:Bs("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Bs(),children:[(0,s.jsx)("div",{className:Bs("title"),children:t}),(0,s.jsx)("div",{className:Bs("description"),children:n}),(0,s.jsx)(Ot.ArcButton,{onClick:z5,children:e})]})}),iQ=({labelCurtainOffline:t,labelCurtainOfflineReconnecting:e,showHeader:n})=>(0,s.jsx)("div",{className:Bs("container",{"show-header":n}),children:(0,s.jsxs)("div",{className:Bs(),children:[(0,s.jsx)("div",{className:Bs("spinner",{reconnect:!0})}),(0,s.jsx)("div",{className:Bs("title"),children:t}),(0,s.jsx)("div",{className:Bs("description"),children:e})]})}),cQ=({labelCurtainSessionTimedOut:t,labelCurtainSessionTimedOutRefresh:e,labelCurtainSessionTimedOutRestart:n,showHeader:o})=>(0,s.jsx)("div",{className:Bs("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Bs(),children:[(0,s.jsx)("div",{className:Bs("title"),children:t}),(0,s.jsx)("div",{className:Bs("description"),children:n}),(0,s.jsx)(Ot.ArcButton,{onClick:z5,children:e})]})}),V5=oQ;var lQ=c(78729);function dQ({children:t,locale:e,...n}){const o=(0,te.zy)(),r=(0,at.D_)(),a=(0,h.useMemo)(()=>{const i=e===r?"":e,l=new URLSearchParams(o.search);return l.set("locale",i),o.pathname+"?"+l.toString()+o.hash},[r,e,o]);return(0,s.jsx)(On,{...n,to:a,children:t})}const Vo=ne("locales-dropdown"),uQ=({backToStackCourseId:t,currentLocale:e,defaultLocale:n,locales:o,message:r,onChange:a,optionType:i,showMessageIndicator:l})=>{const u=(0,h.useRef)(null),d=(0,h.useRef)(null),[m,p]=(0,h.useState)(!1),[f,v]=(0,h.useState)(!1),C=(0,h.useMemo)(()=>o.filter(x=>x.localeCode!==n),[n,o]),g=(0,h.useMemo)(()=>o.find(x=>x.localeCode===n),[n,o]),b=(0,h.useMemo)(()=>o.find(x=>x.localeCode===e),[e,o]);(0,h.useLayoutEffect)(()=>{m&&f&&(u.current?.querySelector(`[data-locale="${e}"]`)?.focus(),v(!1))},[m,f,e]),(0,h.useEffect)(()=>{const x=S=>{un(S)&&(d.current?.focus(),p(!1)),yd(S)&&setTimeout(()=>{u.current.contains(document.activeElement)||p(!1)},0)};return m&&document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[m]);const L=(0,h.useCallback)(x=>{!m&&document.activeElement===x.currentTarget&&v(!0),p(!m)},[m]),y=(0,h.useCallback)(x=>{m&&!d.current?.contains(x?.target)&&p(!1)},[m]);(0,lQ.A)(u,y),(0,h.useEffect)(()=>{const x=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&y()},0);return window.addEventListener("blur",x),()=>window.removeEventListener("blur",x)},[y]);const E=(0,h.useCallback)(x=>{document.activeElement===x.currentTarget&&d.current?.focus(),p(!1),a?.(x.currentTarget.getAttribute("data-locale"))},[a]);return(0,s.jsxs)("div",{className:Vo({isOpen:m}),children:[(0,s.jsx)("div",{className:Vo("trigger-wrap"),children:(0,s.jsxs)("button",{className:Vo("trigger"),onClick:L,ref:d,type:"button",children:[l&&(0,s.jsx)("div",{className:Vo("message-indicator")}),(0,s.jsx)(it,{name:"globe"}),b.displayName,(0,s.jsx)(it,{name:"chevron-down"})]})}),(0,s.jsxs)("div",{className:Vo("contents"),ref:u,children:[r,(0,s.jsx)("div",{className:Vo("grouping-header"),children:"Source"}),(0,s.jsx)(U5,{checked:n===e,locale:g,onClick:E,type:i}),(0,s.jsx)("div",{className:Vo("grouping-header"),children:"Translations"}),C.map(x=>(0,s.jsx)(U5,{checked:x.localeCode===e,locale:x,onClick:E,type:i},x.localeCode)),t&&(0,s.jsx)("a",{className:Vo("stack-button"),href:`/manage/locales/${t}`,children:"Back to Stack"})]})]})},U5=({checked:t,locale:e,onClick:n,type:o})=>o==="link"?(0,s.jsx)(dQ,{className:Vo("option",{checked:t}),"data-locale":e.localeCode,locale:e.localeCode,onClick:n,children:e.displayName},e.localeCode):(0,s.jsx)("button",{className:Vo("option",{checked:t}),"data-locale":e.localeCode,onClick:n,type:"button",children:e.displayName},e.localeCode),hQ=({hideBackToStack:t,...e})=>{const n=(0,Ce.DX)(),{currentLocale:o}=(0,Vt.nY)(),r=(0,at.jc)(),a=(0,at.D_)(),i=yh(),l=t?void 0:n?.id,u=(0,h.useMemo)(()=>r.map(d=>({localeCode:d.locale,displayName:i(d.locale)})),[i,r]);return(0,s.jsx)(uQ,{backToStackCourseId:l,currentLocale:o,defaultLocale:a,locales:u,optionType:"link",...e})},$5=window.location.origin,mQ=1e3,pQ="course:ready",W5="localizedSharePreview:ready",fQ="preview:selectLocale",e2="localizedSharePreview:toggleCurtain",G5="localizedSharePreview:togglePreview",Vi=ne("localized-share-preview"),Ui=!!window.frameElement,K5=t=>(0,gs.HX)(t)&&(0,qe.GS)(),vQ=t=>K5(t)&&!Ui,gQ=(t,e)=>window.parent?.postMessage({type:t,data:e});let _5=null;const CQ=({children:t})=>{const e=(0,K.wA)(),n=(0,Lt.Z)(),o=(0,te.zy)(),{currentLocale:r,setCurrentLocale:a}=(0,Vt.nY)(),i=(0,at.D_)(),l=Nn(),u=kt(),m=!!(u&&"hasPassword"in u?u.hasPassword:void 0)||(0,qe.og)(),p=(0,h.useRef)(null),[f,v]=(0,h.useState)(!1),[C,g]=(0,h.useState)(!1),[b,L]=(0,h.useState)(!m),y=(0,h.useMemo)(()=>`${$5}/share/${window.shareId}#/?locale=${r}`,[]),[E,x]=(0,h.useState)(null),[S,T]=(0,h.useState)(r),[N,j]=(0,h.useState)(!1),[O,D]=(0,h.useState)(!Ui),B=(H,w)=>p.current?.contentWindow.postMessage({type:H,data:w});(0,h.useEffect)(()=>{Ui||B(fQ,r)},[r]),(0,h.useEffect)(()=>{Ui&&(gQ(W5),setTimeout(()=>j(!0),0))},[]),(0,h.useEffect)(()=>{const H=w=>{if(w.origin!==$5)return;const z=w.data?.type,Z=w.data?.data;if(Ui)switch(z){case e2:{D(Z);break}case G5:{Z?(T(r),x(o),e((0,bh.Wp)(!0)),a(i),n("/",{replace:!0})):(e((0,bh.Wp)(!1)),a(S),n(E.pathname+E.search+E.hash||"/",{replace:!0})),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(z){case pQ:{D(!1);break}case W5:{L(!0);break}}};return window.addEventListener("message",H),()=>{window.removeEventListener("message",H)}},[i,e,n,r,o,S,E,a]);const R=(0,h.useCallback)(()=>{const H=!f;clearTimeout(_5),g(!0),B(e2,!0),_5=setTimeout(()=>{g(!1),B(e2,!1),v(H)},mQ),setTimeout(()=>{B(G5,H)},0)},[f]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Vi("curtain",{hide:!O}),children:(0,s.jsx)(V5,{})}),Ui?N&&t:(0,s.jsxs)("div",{className:Vi(),children:[b&&(0,s.jsx)(G_,{className:Vi("header"),localesDropdown:!f&&!C&&(0,s.jsx)(hQ,{hideBackToStack:!0}),title:l,children:(0,s.jsx)(F5,{capitalize:!1,className:Vi("preview-button"),disabled:C,done:!0,onClick:R,children:f?"Close Learner Preview":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(it,{className:Vi("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,s.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:Vi("iframe"),ref:p,src:y})]})]})},xQ=(0,h.lazy)(()=>c.e("_b106").then(c.t.bind(c,63744,23))),bQ=({children:t})=>{const e=(0,Ce.qm)(),{setCurrentLocale:n,currentLocale:o}=(0,Vt.nY)(),r=(0,at.QQ)(e?.course.title),a=e?.l10n?.languageCodeMetadata??{},i=Object.entries(a).map(([l,u])=>({code:l,learnerDisplayName:u.learnerDisplayName})).sort((l,u)=>l.learnerDisplayName.localeCompare(u.learnerDisplayName));return(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(xQ,{courseTitle:r,currentLocale:o,locales:i,setCurrentLocale:n,children:t})})};class yQ extends h.Component{static defaultProps={scope:"error-boundary"};constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,error:e}}render(){const{hasError:e,error:n}=this.state,{FallbackComponent:o}=this.props;return e||n?(0,s.jsx)(o,{}):this.props.children}}const LQ=yQ;var EQ=c(66058);const SQ=(0,h.lazy)(()=>c.e("webpack_container_remote_learn_distribution_frontend_learn_ai-learner-popout").then(c.t.bind(c,68789,23))),TQ=()=>{const t=(0,at.dx)(kt()),{currentLocale:e}=(0,Vt.nY)(),n=(0,Ce.Wz)(),o=Jn(),r=async()=>{try{await(0,EQ.wD)()}catch{}};return t.settings?.aiTutorEnabled?(0,s.jsx)(LQ,{FallbackComponent:()=>null,children:(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(SQ,{apiKey:t.aiLearnerCourseApiKey,course:t,currentLessonId:o,currentLocale:e,resetSession:r,rtl:n})})}):null};var n0=c(15648);const Q5=n0.createContext({typefaces:[]});function IQ({addTypefaces:t,children:e,typefaces:n=[]}){NQ(n);const o=n0.useMemo(()=>({addTypefaces:t,typefaces:n}),[t,n]);return(0,s.jsx)(Q5.Provider,{value:o,children:e})}function coe(){return n0.useContext(Q5)}function NQ(t){n0.useEffect(()=>{const e=new CSSStyleSheet;for(const n of t){const o=`[data-rise-typeface-id="${CSS.escape(n.id)}"] { font-family: "${CSS.escape(n.name)}"; }`;e.insertRule(o)}return document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(n=>n!==e)}},[t])}var jQ=c(15648);function kQ({children:t}){const e=(0,K.d4)(o=>o.fonts),n=jQ.useMemo(()=>{const o=new Map;for(const r of e)o.set(r.id,{id:String(r.id),name:r.name,default:r.default});return Array.from(o.values())},[e]);return(0,s.jsx)(IQ,{typefaces:n,children:t})}const Z5=Object.assign(document.createElement("div"),{id:"portal"});function Y5(t){(t??document.body).appendChild(Z5),Z5.style.display=t?"":"none"}Y5();const AQ=(t,e)=>!(t==="firstLesson"&&e.includes("/lessons/"))&&!(t==="cover"&&(e==="/"||e==="/preview")),RQ=t=>["preview:lessonUpdate","preview:navigate","preview:overlayNavClose","preview:scrollto","preview:showLessonNavNext","preview:showLessonNavPrev","preview:themeUpdate","preview:update","preview:navOpen","preview:navClose","preview:replace","preview:changeset","preview:selectLocale",an.FOCUS,an.TOGGLE,an.CLEAR,an.TRANSLATION_HOVERED,an.TRANSLATION_HOVER_CLEAR].includes(t),PQ=t=>t===window.location.origin||t==="articulate.com"||t.endsWith(".articulate.com"),wQ=({course:t,fonts:e,l10n:n})=>()=>((0,K.JD)((0,Fc.V7)({course:t,fonts:e,l10n:n})),si().Resolved()),MQ=()=>(window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin),si().Resolved()),OQ=({course:t,fonts:e,l10n:n})=>si()((o,r)=>{(0,rk.U2)(e,r)}).chain(wQ({course:t,fonts:e,l10n:n})).chain(MQ),DQ=t=>K5(t)?CQ:Po.isInstantLink?bQ:h.Fragment;function BQ(t){const e=(0,te.zy)(),n=(0,h.useRef)(e);(0,h.useEffect)(()=>{n.current!==e&&(t(),n.current=e)},[e,t])}class HQ extends h.Component{constructor(e){super(e),this.state={didNavigate:!1,previewType:"",failAttempt:!1,scrollTo:null,isInvalidPassword:!0,targetModeContext:{translationHoveredPath:null}},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),this.handleLocationChange=this.handleLocationChange.bind(this),window.targetMode=V7({locale:e.currentLocale})}handleLocationChange(){this.setState({didNavigate:!0})}UNSAFE_componentWillMount(){const{l10n:e}=this.props;cn.isIe11&&document.documentElement.classList.add("ie11"),cn.isSafari9&&document.documentElement.classList.add("safari9"),cn.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),cn.isSafari&&this.props.match.params.mode==="iframe"&&oj().enable(),window.addEventListener("message",this.handleMessage),window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:an.STATUS,data:!!window.targetMode},"*"),(0,qe.xr)()&&window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e?.defaultLocale,locales:e?.locales?.map(({locale:n})=>n)}}),pk(),this.updateRTL()}componentDidMount(){const{currentLocale:e,languageCode:n}=this.props;document.documentElement.lang=e??n,(0,Mt.on)("favoriteAdded",this.onFavoriteAdded),(0,Mt.on)("favoriteRemoved",this.onFavoriteRemoved),document.addEventListener("click",()=>{window.parent.postMessage("coursePreviewIframeClicked","*")})}updateConnectionStatus(e){(0,K.JD)((0,Jf.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(){window.removeEventListener("message",this.handleMessage),(0,Mt.AU)("favoriteAdded",this.onFavoriteAdded),(0,Mt.AU)("favoriteRemoved",this.onFavoriteRemoved)}isRTLEnabled(){const{course:e,l10n:n,currentLocale:o}=this.props;return(0,ok.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(!PQ(o))return;const{navigate:r,location:a={},setCurrentLocale:i}=this.props,{pathname:l}=a,{course:{lessonsOnly:u}}=this.props;(0,ej.A)(n).forEach(({type:d,data:m})=>{if(RQ(d)){if(d===an.TOGGLE&&window.targetMode(m,p=>{window.parent.postMessage({type:an.HOVERED,data:p},"*")}).then(p=>{window.parent.postMessage({type:an.SELECTED,data:p},"*")}).catch(()=>{window.parent.postMessage({type:an.SELECTED,data:[]},"*")}),d==="preview:update"&&this.setState({previewType:m}),d==="preview:themeUpdate"&&this.handleThemePreviewUpdate(m),d==="preview:navigate"){let{type:p,lessonId:f,itemId:v,path:C,replace:g}=m;const b=g?L=>r(L,{replace:!0}):r;if(AQ(p,l)){if(Array.isArray(C)&&({type:p,lessonId:f,itemId:v}=(0,rp.Ce)(C)),p==="firstLesson")b(`/lessons/${u[0].id}`);else if(p==="cover"||p==="course")b("/");else if(p==="lesson"&&u.find(({id:y})=>y===f)!=null){const y=()=>{window.dispatchEvent(new CustomEvent(_t,{detail:{lessonId:f,itemId:v,path:C}}))};`/lessons/${f}`!==l?(b(`/lessons/${f}`),setTimeout(y,1500)):y()}}}if(d===an.CLEAR&&window.dispatchEvent(new CustomEvent(G1)),d==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(kf)),d==="preview:navClose"&&window.dispatchEvent(new CustomEvent(Af)),d==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(Ad)),d==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(Rd)),d==="preview:scrollto"&&typeof m.target=="string"){const p=document.querySelector(m.target);p&&(0,rj.A)(p,{behavior:"smooth",block:"start"})}d==="preview:replace"&&(0,K.JD)((0,Fc.HC)(m)),d==="preview:changeset"&&(0,K.JD)((0,Fc.TJ)(m)),d==="preview:selectLocale"&&i(m,"replace"),d===an.FOCUS&&W7(m.path),d===an.TRANSLATION_HOVERED&&(this.setState({targetModeContext:{translationHoveredPath:m.path}}),$7(m.path)),d===an.TRANSLATION_HOVER_CLEAR&&(this.setState({targetModeContext:{translationHoveredPath:null}}),z7()),d==="preview:lessonUpdate"&&this.handleLessonPreviewUpdate(m)}})}cancelThemePreviewUpdate(){}handleThemePreviewUpdate({course:e,l10n:n,fonts:o,theme:r}){this.cancelThemePreviewUpdate();const{course:a}=this.props,i=ro()("theme",r,e),l=(0,aj.MT)({course:a,updates:i});this.cancelThemePreviewUpdate=OQ({course:l,fonts:o,l10n:n}).fork(console.warn,qs.lQ)}handleLessonPreviewUpdate(e){(0,K.JD)((0,Fc.YB)(e)),window.parent.postMessage({type:"preview:lessonUpdateComplete"},window.location.origin)}onSharePasswordSubmit(e){return(0,qe.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,K.JD)((0,Xf.nF)())}onFavoriteRemoved(){(0,K.JD)((0,Xf.pp)())}renderAppLayout(){if(!this.props.course)return null;const{course:e,course:{bodyTypeface:n,color:o,headingTypeface:r,themeId:a,theme:i,uiTypeface:l},courseProgress:u,currentLocale:d,l10n:m,labels:p,lessons:f,partnerContent:v,search:C,sessionPreferences:g}=this.props,{didNavigate:b,previewType:L,targetModeContext:y}=this.state,E=m?.localeLabelSets?.[d]?.labels||p,x={course:e,courseProgress:u,didNavigate:b,lessons:f,previewType:L,sessionPreferences:g},S=i?.accentContrast,T=(0,zs.c3)(e),N={accentContrast:S,bodyTypeface:n,color:o,headingTypeface:r,isLegacyCourse:e?.isLegacyCourse,uiTypeface:l},j=W()("theme",a,{"one-page":T}),O=DQ(e),D=T?M_:N_;return(0,s.jsx)(Ce.rv,{course:e,courseProgress:u,l10n:m,labels:E,partnerContent:v,search:C,children:(0,s.jsx)(XE,{themeId:a,children:(0,s.jsx)(ih,{courseColor:o,children:(0,s.jsx)(pV,{value:y,children:(0,s.jsx)(kQ,{children:(0,s.jsxs)("div",{className:j,id:"innerApp",ref:Y5,children:[(0,s.jsx)(Tk,{...N}),(0,s.jsx)(cv,{env:"runtime",children:(0,s.jsx)(O,{children:(0,s.jsxs)(ra,{children:[(0,s.jsx)(D,{...x}),(0,s.jsx)(TQ,{})]})})})]})})})})})})}showPasswordDialog(){const{isInvalidPassword:e}=this.state,{course:n}=this.props,{hasPassword:o}=n;return e&&(0,qe.GS)()&&!vQ(n)&&(!!o||(0,qe.og)())}render(){const{failAttempt:e}=this.state,{onSharePasswordSubmit:n}=this;return this.showPasswordDialog()?(0,s.jsx)(B_,{failAttempt:e,onSubmit:n}):this.renderAppLayout()}}function FQ(t){const e=(0,h.useRef)(null);return BQ(()=>{e.current&&e.current.handleLocationChange()}),(0,s.jsx)(HQ,{...t,ref:e})}const zQ=$e()(J1.A,Vt.wZ)(FQ),t2=ne("not-found"),VQ=()=>(0,s.jsx)(ra,{title:Bc(),children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:t2(),children:(0,s.jsxs)("div",{className:t2("copy"),children:[(0,s.jsx)("h1",{className:t2("copy",{heading:!0}),tabIndex:-1,children:"Hmm..."}),(0,s.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});var UQ=c(78365);function X5(){return(0,K.d4)(t=>{const{course:e,courseLabels:n,courseProgress:o,fonts:r,l10n:a,partnerContent:i,search:l,sessionPreferences:u,status:d}=t;return{course:e,courseProgress:o,fonts:r,l10n:a,labels:n.labels,languageCode:e?.locale??n?.iso639Code,lessons:e&&e.lessons,partnerContent:i,search:l,sessionPreferences:u,status:d}})}function $Q(){const t=(0,K.wA)();(0,h.useEffect)(()=>{t((0,Fc.EL)()),t((0,dh.pb)())},[t])}function WQ(){const t=(0,K.wA)(),e=(0,h.useCallback)(()=>{t((0,Jf.$2)(!0))},[t]),n=X5(),o=cs(n.course?.coverImage?.media);(0,h.useEffect)(()=>{const{courseLoaded:r,coverLoaded:a}=n.status;if(r&&!a){const i=o?.image,{key:l,src:u}=i||{};if(l||u){const d=l?(0,Gt.ME)(i):u,m=setTimeout(e,5e3),p=new Image;return p.src=d,p.onload=()=>{clearTimeout(m),e()},()=>clearTimeout(m)}else e()}},[n,o,e])}function GQ(){$Q(),WQ();const t=X5(),e=(0,K.wA)(),{fonts:n,labels:o,status:{courseLoaded:r,coverLoaded:a,fontsLoaded:i,notFound:l,partnerContentLoaded:u}}=t,d=(0,Me.A)(r),m=r&&i&&a&&u,p=!m;return(0,h.useEffect)(()=>{!d&&r&&!i&&(n??[]).length>0&&e((0,UQ.r)(n))},[e,d,r,i,n]),(0,h.useEffect)(()=>{m&&window.parent!==window&&window.parent.postMessage({type:"course:ready"},window.location.origin)},[m]),l?(0,s.jsx)(VQ,{}):p?(0,s.jsx)(V5,{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)(zQ,{...t})}const KQ=GQ,o0=document.createElement("style");o0.innerHTML=`
  @layer rise-reset, arc-theme, arc-utils;

  :root {
    --arc-font-size-base: 1;

    /*  Override arc body font because of Inter naming conflict in Rise
        https://github.com/articulate/rise-authoring/issues/7263
    */
    --arc-internal-font-body: 'DS Inter', system-ui, sans-serif;
  }
`;function _Q(){(0,h.useEffect)(()=>(o0.parentElement!==document.head&&document.head.prepend(o0),()=>{o0.remove()}),[])}const QQ=()=>{const t=(0,Lt.Z)(),e=(0,te.zy)(),n=h.useRef(new Set),o=h.useRef(null);if(o.current===null){const r=n.current;o.current={push:t,replace:a=>t(a,{replace:!0}),go:a=>t(a),goBack:()=>t(-1),goForward:()=>t(1),listen:a=>(r.add(a),()=>r.delete(a)),location:e},(0,qe.IV)(o.current)}return(0,h.useEffect)(()=>{if(n.current.forEach(r=>r(e)),typeof window<"u"&&window.dispatchEvent){const r=new HashChangeEvent("hashchange",{oldURL:window.location.href,newURL:window.location.href});window.dispatchEvent(r)}},[e]),(0,s.jsx)(KQ,{})},ZQ=document.getElementById("app"),YQ=(0,J.createRoot)(ZQ),XQ=({children:t})=>(_Q(),(0,s.jsx)(s.Fragment,{children:t}));YQ.render((0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(K.Kq,{store:K.M_,children:(0,s.jsx)(XQ,{children:(0,s.jsx)(WN,{children:(0,s.jsx)(rt,{children:(0,s.jsx)(qN,{children:(0,s.jsx)(te.I9,{unstable_useTransitions:!1,children:(0,s.jsx)(Vt.fH,{children:(0,s.jsx)(te.BV,{children:(0,s.jsx)(te.qh,{element:(0,s.jsx)(QQ,{}),path:"/*"})})})})})})})})})}))},40774(et,xe,c){"use strict";c.d(xe,{Ay:()=>oe,BW:()=>ae,En:()=>A,Ig:()=>F,JG:()=>de,Ko:()=>U,M$:()=>ue,Pz:()=>ce,S$:()=>ve,WY:()=>_,Wj:()=>Ne,Ze:()=>me,ce:()=>ie,eZ:()=>P,fd:()=>Se,ft:()=>Q,jw:()=>ee,l7:()=>G,mj:()=>s,p3:()=>be,pd:()=>we,qX:()=>V,sZ:()=>re,w5:()=>Ee});const A="a",U="n",P="t",G="c",Q="ps",_="p",me="v",re="r",ee="s",s="rr",be="pq",we="qd",ie="ql",ue="qt",oe="vp",Ee="k",Ne="v",Se="i",ae="pv",V="m",ce="s",F="x",de="sa",ve="t"},12146(et,xe,c){"use strict";c.d(xe,{AU:()=>Q,G7:()=>re,NS:()=>P,RR:()=>ee,gj:()=>me,kT:()=>_,on:()=>G});const{RiseDotCom:A}=window,U=s=>A&&A[s],P=()=>{U("exit")&&A.exit()},G=(...s)=>{U("on")&&A.on(...s)},Q=(...s)=>{U("off")&&A.off(...s)},_=(...s)=>{U("goToLearn")&&A.goToLearn(...s)},me=(...s)=>{if(U("downloadCertificate"))return A.downloadCertificate(...s)},re=(...s)=>{if(U("downloadCertificateCancel"))return A.downloadCertificateCancel(...s)},ee=(...s)=>{if(U("fetchLpUpNext"))return A.fetchLpUpNext(...s)}},23290(et,xe,c){"use strict";c.d(xe,{MT:()=>Se,MJ:()=>Ne,uK:()=>Ee});var A=c(90946),U=c(84722),P=c(27922);const G={accentContrast:P.Em.AUTO,allowSearch:!0,animateBlockEntrance:!0,blockBackgroundColor:null,blockBackgroundColorContrast:P.Em.AUTO,blockBackgroundType:P.xj.LIGHT,blockCorners:P.rE.ROUNDED,blockPaddingEnd:P.S$,blockPaddingStart:P.S$,blockTextBackgroundColor:null,blockTextBackgroundColorContrast:P.Em.AUTO,blockTextBackgroundType:P.xj.LIGHT,blockTextBodyFontSize:P.Ty,blockTextHeadingFontSize:P.Bj,blockTextPaddingEnd:P.S$,blockTextPaddingStart:P.S$,blockTextSubheadingFontSize:P.pL,buttonInlineStyle:P.qu.ROUNDED,buttonNavigationStyle:P.jq.FULL,buttonScheme:P.LE.LIGHT,colorAccent:P.Zs,compactShowLessonCount:!0,coverImageAlpha:P.HU,coverPageType:P.BL.SPLIT_LEFT_IMAGE,customColorLessonHeaderContrast:P.Em.AUTO,enableVideoPlaybackSpeed:!0,lessonHeaderImageAlpha:P._g,lessonHeaderImageColor:P.df.DARK,lessonHeaderSize:P.OX.MEDIUM,lessonHeaderStyle:P.xj.LIGHT,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,navigationSectionsExpanded:!0,navigationStyle:P.kY.LIGHT,navigationType:P.br.SIDEBAR,progressIndicatorStyle:P.Y2.THEME_DEFAULT,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,sidebarStartsOpen:!0,themeId:P.V7.RISE_CLASSIC},Q=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],_=ae=>ae.theme?.colorAccent||ae.color||G.colorAccent,me=ae=>ae.theme?.navigationRestricted??G.navigationRestricted?P.b$.RESTRICTED:P.b$.FREE,re=ae=>ae.theme?.sidebarStartsOpen??G.sidebarStartsOpen?P.RE.OPEN:P.RE.CLOSED,ee=ae=>ae.theme?.showLessonCount??ae.showLessonCount??G.showLessonCount,s=({sidebarMode:ae})=>ae!==P.RE.HIDDEN,be=({navigationMode:ae})=>ae===P.b$.RESTRICTED,we=({sidebarMode:ae})=>ae===P.RE.OPEN,ie=ae=>ae.coverImage?.media?.image?P.kY.LIGHT_IMAGE:P.kY.LIGHT,ue=ae=>ae.coverImage?.media?.image?P.BL.LEFT_OVERLAY:P.BL.LEFT,oe=(ae,V)=>V[ae]??V.theme?.[ae]??G[ae],Ee=ae=>{const V=re(ae),ce=me(ae),F={allowSearch:oe("allowSearch",ae),animateBlockEntrance:oe("animateBlockEntrance",ae),bodyTypefaceId:ae.bodyTypefaceId,colorAccent:(ae.color||"").toLowerCase(),compactShowLessonCount:oe("compactShowLessonCount",ae),coverImageDefault:null,coverPageType:ue(ae),enableVideoPlaybackSpeed:oe("enableVideoPlaybackSpeed",ae),headingTypefaceId:ae.headingTypefaceId,markLessonsComplete:oe("markComplete",ae),navigation:s({sidebarMode:V}),navigationSectionsExpanded:oe("navigationSectionsExpanded",ae),navigationRestricted:be({navigationMode:ce}),navigationStyle:ie(ae),showAuthor:oe("showAuthor",ae),showLessonCount:oe("showLessonCount",ae),showNavigationButtons:oe("showNavigationButtons",ae),sidebarStartsOpen:we({sidebarMode:V}),uiTypefaceId:ae.uiTypefaceId},de={...G,...F};return{...ae,theme:{...de,isLegacyCourse:!0}}},Ne=ae=>{const V=_(ae),ce={allowSearch:ae.theme?.allowSearch??G.allowSearch,animateBlockEntrance:ae.theme?.animateBlockEntrance??G.animateBlockEntrance,buttonNavigationStyle:ae.theme?.buttonNavigationStyle??G.buttonNavigationStyle,buttonScheme:ae.theme?.buttonScheme??G.buttonScheme,color:V,colorAccentTint:V?(0,A.FB)(V):void 0,coverImage:(0,U.dM)(ae),coverPageType:ae.theme?.coverPageType??G.coverPageType,enableVideoPlaybackSpeed:ae.theme?.enableVideoPlaybackSpeed??G.enableVideoPlaybackSpeed,lessonHeaderImage:(0,U.LI)(ae),lessonHeaderSize:ae.theme?.lessonHeaderSize??G.lessonHeaderSize,lessonHeaderStyle:ae.theme?.lessonHeaderStyle??G.lessonHeaderStyle,markComplete:ae.theme?.markLessonsComplete??G.markLessonsComplete,navigation:ae.theme?.navigation??G.navigation,navigationSectionsExpanded:ae.theme?.navigationSectionsExpanded??G.navigationSectionsExpanded,navigationMode:me(ae),navigationRestricted:ae.theme?.navigationRestricted??G.navigationRestricted,navigationStyle:ae.theme?.navigationStyle??G.navigationStyle,navigationType:ae.theme?.navigationType??G.navigationType,progressIndicatorStyle:ae.theme?.progressIndicatorStyle??P.Y2.THEME_DEFAULT,themeId:ae.theme?.themeId??G.themeId,showAuthor:ae.theme?.showAuthor??G.showAuthor,showLessonCount:ee(ae),sidebarMode:re(ae),sidebarStartsOpen:ae.theme?.sidebarStartsOpen??G.sidebarStartsOpen,showNavigationButtons:ae.theme?.showNavigationButtons??G.showNavigationButtons};return{...ae,...ce}},Se=({course:ae,updates:V})=>{const ce=Object.fromEntries(Object.entries(V||{}).filter(([de])=>Q.includes(de))),F={...ae,...ce};return Ne(F)}},84523(et,xe,c){"use strict";c.d(xe,{A:()=>G});var A=c(31042),U=c(31949),P=c(63762);function G(Q){function _(me){const re=(0,U.zy)(),ee=(0,P.Z)(),s=(0,U.g)();return(0,A.jsx)(Q,{...me,location:re,match:{params:s},navigate:ee})}return _.displayName=`withRouter(${Q.displayName||Q.name})`,_}},23890(et,xe,c){"use strict";c.d(xe,{gf:()=>ot,Em:()=>Xn});var A={};c.r(A),c.d(A,{callbackComponent:()=>Zi,callbackPath:()=>ls,errorPath:()=>Sa,getToken:()=>Ta,initAuth:()=>Hr,login:()=>ar,logout:()=>Us,onFetchTokensThunk:()=>Fr,refreshSession:()=>os,request:()=>ct.Em});var U={};c.r(U),c.d(U,{callbackComponent:()=>Pa,callbackPath:()=>qi,getToken:()=>wa,initAuth:()=>ec,login:()=>bl,logout:()=>Ma,refreshSession:()=>yl,request:()=>ct.Em});var P=c(17159),G=c(87686),Q=c.n(G),_=c(82083),me=c.n(_),re=c(47812),ee=c.n(re),s=c(1710),be=c.n(s),we=c(48373),ie=c.n(we),ue=c(59918),oe=c.n(ue),Ee=c(15648),Ne=c(84523),Se=c(15323),ae=c.n(Se),V=c(41580),ce=c(80259),F=c.n(ce),de=c(36403),ve=c.n(de),Te=c(66570),je=c.n(Te),ge=c(52887),h=c.n(ge),J=c(69214),te=c.n(J),K=c(73525),Ve=c.n(K),fe=c(49145),se=c.n(fe),ye=c(82275),$=c.n(ye),Re=c(41642),_e=c.n(Re),tt=c(15647),Xe=c.n(tt),rt=c(28275),pt=c.n(rt),ze=c(92074),qe=c.n(ze),Lt=c(59043),Kt=c(75189);const is={"Content-Type":"application/json"},Zt=[(Ie,Ye)=>(Ye.Authorization=`Bearer ${ot()}`,JSON.stringify(Ie))],Me=se()(ee(),Ve(),_e()(["data","status","statusText"])),ft=pt()(_e()(["name","message","response"]),te()({response:Me})),W=({baseURL:Ie,...Ye})=>me()($()({headers:is,transformRequest:Zt}),$()(Ye),te()({url:h()(Ie)})),nt=({data:Ie,method:Ye,url:Nt})=>fetch(Nt,{body:JSON.stringify(Ie),headers:{...is,Authorization:`Bearer ${ot()}`},keepalive:!0,method:Ye}).then(hs=>hs.json()).then(Xe()("data")),Mt=F().fromPromise(nt),Ge=Ie=>({method:Ye,url:Nt})=>`${Ye}:${Ie}${Nt}`,us=Ie=>{const Ye=new Error("Nil token detected");return Kt.L.addError(Ye,Ie),F().Rejected(Ye)},Ze=Ie=>Ye=>Ie.preRequest?Ie.preRequest(Ye):Ye,Fs=Ie=>Ye=>Ie.postRequest?Ie.postRequest(Ye):Ye,_s=()=>!P.BI&&ee()(ot()),Yt=Ie=>(Ye,Nt)=>ve()(Ye,Ge(Nt),Ps(Xn,Ie)),Ps=(Ie,Ye)=>Nt=>(0,Lt.Ve)(Nt,Ze(Ye),W(Ye),se()(_s,us,Ie),je()(ft,qe()("data")),Fs(Ye)),Yn=Ie=>({debounce:Yt(Ie),send:Ps(Xn,Ie),sendWithKeepAlive:Ps(Mt,Ie)});var Uo=c(16791),$o=c.n(Uo);const jt=()=>document.visibilityState==="visible",gs=Ie=>$o()(jt,()=>Ie()),zs=(Ie=>{document.addEventListener("visibilitychange",gs(Ie)),window.addEventListener("focus",()=>Ie())});var fo=c(35567),vo=c.n(fo),Tt=c(43191),k=c.n(Tt),Vt=c(67118),Et=c.n(Vt),Tn=c(12907),cs=c.n(Tn),go=c(79738),In=c(8851),gn=c(13945);const Nn=(Ie,Ye=null)=>{const Nt={...Ie,context:{locale:navigator.language,device:(0,gn.Pf)(),channel:(0,gn.c)(),userAgentData:(0,gn.NO)(),page:(0,gn.WE)(),userAgent:(0,gn.$t)(),...Ie.context},properties:{...Ye?(0,In.yV)(Ye):{},...Ie.properties}};return(0,go.Em)({method:"POST",url:`${(0,P._$)("RISE_RUNTIME_URI")}/analytics`,json:!0,data:Nt})},Ue=(0,P._$)("SUBSCRIPTIONS_ENDPOINT"),bt=(0,P._$)("THREESIXTY_FRONTEND_URI"),Bt=Et()(["error","status"],404),Vs=me()(Xe()("error"),qe()("response")),Cn=()=>window.location.href=bt,Wo=[(Ie,Ye)=>(Ye.Authorization=`Bearer ${ot()}`,Ie)],Ht=async Ie=>{const Ye=`${Ue}/users/authorized_status`,Nt=await Xn({transformRequest:Wo,url:Ye}).toPromise().catch(Vs),hs=me()(Ie,oe()(Ss=>Nn({event:"Unexpected Logout",payload:{category:"auth",data:Ss,detail:"Subscription Error"}})));return vo()([[Bt,Cn],[k()("error"),hs],[cs(),qe()("data")]])(Nt)};var kt=c(13054),jn;const ya=Ie=>Ie.status==="active",Co=Ie=>Ie.status==="inactive",gl=Ie=>Ie.plan==="individual",Cl=Ie=>Ie.features?.enable_review===!0,La=Ie=>Ie.features?.enable_rise===!0,Or=Ie=>Ie.plan==="trial",Gi=Ie=>Ie.plan==="trial"&&Ie.status==="inactive"&&Ie.is_retrial_eligible===!1,Ki=Ie=>Ie.plan==="team"||Ie.plan==="individual",xl=Ie=>Ie.plan==="team"&&Ie.is_team_admin===!0,nr=Ie=>Ie.plan==="trial"&&Ie.is_team_admin===!0,Dr=Ie=>{if(!Ie.end_date)return 0;const Ye=new Date(Ie.end_date);Ye.setUTCHours(0,0,0,0);const Nt=Ye.setDate(Ye.getDate()+1);return Nt&&(Nt.valueOf()-new Date().setUTCHours(0,0,0,0))/jn||0};var ct=c(66058),$e=c(39341),xo=c(296),or=c.n(xo),Go=c(274),_i=c.n(Go),Br=c(45815),Cs=c.n(Br),rr=c(21343),xs=c.n(rr);const Ko=(Ie,Ye)=>`${(0,P._$)("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(Ie)}?size=${Ye}`,bo=Ie=>({large:Ko(Ie,"large"),medium:Ko(Ie,"medium"),micro:Ko(Ie,"micro"),mini:Ko(Ie,"mini"),small:Ko(Ie,"small")}),Ea=_i()({features:xs()({},"features"),subscription:be()(["features"])}),rn=or()([Gi,Co,Cs()(La)]),yo="/auth-callback",kn="/auth-error",Lo=()=>new Promise(Ie=>{if(!window.Osano)return Ie();if(window.Osano.cm.dialogOpen){const Ye=setTimeout(()=>{Ie()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(Nt,hs)=>{Nt==="dialog"&&hs==="hide"&&(Ie(),clearTimeout(Ye))})}else Ie()}),ls=yo,Sa=kn,Ta=$e.rS,Ia=()=>window.location.pathname===ls;let ps=!1,xn=!1;const Qs=Ie=>{if(ps)return;const Ye=(0,V.A)();ps=!0,window.localStorage.setItem(Ye,Ie);const Nt=(0,ct.xQ)({client_id:(0,P._$)("OKTA_CLIENT_ID"),issuer:(0,P._$)("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${ls}`,response_mode:"fragment",scope:(0,P._$)("OIDC_SCOPE"),state:Ye,prompt:null});Lo().then(()=>{window.location.href=Nt})},ar=()=>{const Ie=new URLSearchParams(window.location.search),Ye=Ie.has("redirect_url")?Ie.get("redirect_url"):window.location.href;return Qs(Ye)},os=()=>(0,ct.uI)().catch(Ie=>{Ie.response?.status===404&&Us({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),Na=()=>{if(xn)return;const Ie=(0,$e.mA)(),Ye=(0,$e.kn)();ee()(Ie)?(Nn({event:"Unexpected Logout",payload:{category:"auth",userId:Ye,detail:"id from cookie was null"}}),Kt.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Ye,idFromCookie:Ie,detail:"id from cookie was null"}),xn=!0,Us({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):Ie!==Ye&&(Nn({event:"Unexpected Logout",payload:{category:"auth",userId:Ie,idFromToken:Ye,detail:"Session/Token ID Mismatch"}}),Kt.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Ye,idFromCookie:Ie,detail:"Session/Token ID Mismatch"}),xn=!0,(0,ct.wD)().then(()=>window.location.reload(!0)))},gt=async Ie=>{try{const[,Ye,Nt,hs]=await(0,ct.wD)(),{aid:ds,content_team_admin:Ss}=hs;if(Nn({event:"Setting Session Cookie",payload:{category:"auth",userId:ds,detail:"Resuming existing session"}}),(0,$e.ac)(ds),Ia()){Ie();return}const{first_name:Rn,last_name:lr,launchdarkly:Jn,staff:dr}=Ye,Gr={avatars:bo(ds),first_name:Rn,user_id:ds,last_name:lr,staff:dr,content_team_admin:Ss},Fa={author:ds,profile:Gr},Pn=()=>Us({onLogout:Q()(null)}),za=sc=>Ie({...Fa,...Ea(sc),launchdarkly:Jn,token:Nt}),Kr=await Ht(Pn).then(oe()(za)).catch(()=>Ie({...Fa,token:Nt}));if(rn(Kr)){Nn({event:"Unexpected Logout",payload:{category:"auth",userId:(0,$e.mA)(),subscription:Kr,detail:"Invalid Subscription"}}),Kt.L.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:(0,$e.mA)(),detail:"Invalid Subscription"}),Us({onLogout:()=>window.location=`${(0,P._$)("THREESIXTY_FRONTEND_URI")}/rise`});return}zs(Na)}catch(Ye){Nn({event:"Unexpected Logout",payload:{category:"auth",userId:(0,$e.mA)(),error:Ye,detail:"Error Resuming Session"}}),Kt.L.addError(Ye,{type:"User Meta",userId:(0,$e.mA)(),detail:"Error Resuming Session"}),Us({onLogout:()=>window.location.reload(!0)})}},Hr=({onFetchTokens:Ie})=>{if(Ia()){gt(Ie);return}const Ye=(0,$e.mA)(),Nt=(0,$e.kn)();if(ee()(Ye)||Ye!==Nt){Lo().then(ar);return}gt(Ie)},Us=({onLogout:Ie,reason:Ye})=>{Ye&&Nn({event:"Logout",payload:{category:"auth",userId:(0,$e.mA)(),detail:Ye}});const Nt=(0,P._$)("RISE_AUTHORING_URI"),hs=()=>P.BI?Promise.resolve():Yn({baseURL:Nt}).send({method:"DELETE",url:"/logout"}),ds=()=>{(0,$e.sm)(),(0,$e.gZ)(),(0,ct.Vu)().then(Ie)};hs().fork(Ss=>{console.error("Failed to log out of rise-authoring-api",Ss),ds()},ds)},Qi=me()(ae().parse,ie()(1,1/0)),Ct=(Ie,Ye)=>{Lo().then(()=>{const hs=window.localStorage.getItem(Ye)||"/",ds=hs===Ie?"/":hs;window.localStorage.removeItem(Ye),window.location.href=ds})},ja=Ie=>()=>window.location.href=`${kn}?description=${Ie}`,It=({location:Ie})=>()=>{const{hash:Ye,pathname:Nt}=Ie,{state:hs,error:ds,error_description:Ss}=Qi(Ye);ds?(Kt.L.addError(ds,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:Ss}),Us({onLogout:ja(Ss),reason:`Error encountered when parsing auth callback. Error: ${ds}; description: ${Ss}`})):Hr({onFetchTokens:()=>Ct(Nt,hs)})},ka=Ie=>((0,Ee.useEffect)(It(Ie),[]),null),Zi=(0,Ne.A)(ka),Fr=({dispatch:Ie,loadProfileOKTA:Ye})=>Nt=>{const hs=be()(["token"],Nt);me()(Ie,Ye)(hs)};var zr=c(44617),Yi=c.n(zr),Vr=c(83050),ir=c.n(Vr),Xi=c(7641),Aa=c.n(Xi),Ur=c(1921),Ji=c.n(Ur),Rt=c(22969),$r=c.n(Rt),An=c(7689),Ra=c.n(An);const cr=async()=>{await Lo();const[Ie,Ye]=Aa()(encodeURIComponent,$r()(["hash","pathname"],window.location));window.location.href=`/login#c=${Ye}${Ie}`},Wr=()=>{window.location.href="/"},Pa=null,qi=null,wa=$e.rS,bl=cr,Ma=ct.Vu,yl=()=>(0,ct.uI)().catch(()=>Ma()),Oa=pt()(xs()([],"roles"),Ra()(ir()("author"),Wr)),Da=pt()(Ji()("",["subscription","status"]),Ra()(ir()(Yi(),["active","in_trial","non_renewing"]),Wr)),Ba=()=>window.location.reload(),ec=async({onFetchTokens:Ie})=>{try{const[Ye,Nt]=await(0,ct.wD)(),{launchdarkly:hs,riseId:ds,sub:Ss,staff:Rn,subscription:lr}=Nt,Jn={staff:Rn,user_id:ds||Ss};return Da(Nt),Ie({author:Jn.user_id,launchdarkly:hs,profile:Jn,subscription:lr,token:Ye}),(0,ct.on)("change:roles",Oa),(0,ct.on)("change:status",Da),(0,ct.on)("change:subdomain",Ba),(0,ct.on)("unauthorized",cr),(0,ct.on)("session:closed",cr),Ye}catch{cr()}},{callbackComponent:Ll,callbackPath:Ha,getToken:ot,initAuth:El,login:Sl,logout:Tl,refreshSession:tc,request:Xn}=P.BI?U:A},11059(et,xe,c){"use strict";c.d(xe,{A:()=>P});var A=c(31199);const P=({alpha:G,color:Q,url:_})=>{const me=(0,A.A)(Q,G);return{backgroundImage:`linear-gradient(0deg,${me},${me}), url("${_}")`}}},39341(et,xe,c){"use strict";c.d(xe,{EO:()=>F,O0:()=>ce,QJ:()=>ve,W5:()=>ee,Xl:()=>Ee,ac:()=>be,gZ:()=>ie,kn:()=>V,l6:()=>Te,mA:()=>ue,rS:()=>oe,sm:()=>we});var A,U=c(82672),P=c.n(U),G=c(27335),Q=c.n(G),_=c(17159);const me="_articulate_user_id",re="_rise_authoring_api_session",ee=()=>_.BI?(0,_._$)("SESSION_COOKIE_NAME"):"_articulate_rise_",s=(je,ge)=>`${je}=${ge}; domain=${(0,_._$)("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,be=je=>document.cookie=s(me,je),we=()=>document.cookie=`${s(me,"")}; Max-Age=-99999999`,ie=()=>document.cookie=`${s(re,"")}; Max-Age=-99999999`,ue=()=>P().load(me),oe=()=>P().load(ee()),Ee=()=>oe()?Q()(oe()).staff:!1,Ne=()=>oe()?A(oe())?.staffRoles||[]:[],Se=()=>oe()?A(oe())?.content_team_admin:!1,ae=()=>Ne().includes("content-team")||Se(),V=()=>oe()?Q()(oe()).riseId||Q()(oe()).sub||Q()(oe()).aid:"",ce=()=>oe()?Q()(oe()).roles:[],F=()=>oe()?Q()(oe()).tenantId:"",de=()=>oe()?Q()(oe()).subscription||{}:{},ve=()=>de().plan_id||"",Te=()=>de().status||""},90946(et,xe,c){"use strict";c.d(xe,{FB:()=>Ps,FH:()=>_s,GG:()=>is,I8:()=>Me,IO:()=>Fs,L3:()=>Ze,Vu:()=>ft,b9:()=>Zt,bQ:()=>W,jI:()=>vo,yL:()=>po,zH:()=>Yt,zh:()=>us});var A,U,P=c(87686),G=c.n(P),Q=c(82083),_=c.n(Q),me=c(45815),re=c.n(me),ee=c(62947),s=c.n(ee),be=c(90258),we=c.n(be),ie=c(93130),ue=c.n(ie),oe=c(99552),Ee=c.n(oe),Ne=c(1544),Se=c.n(Ne),ae=c(43085),V=c.n(ae),ce=c(49145),F=c.n(ce),de=c(1834),ve=c.n(de),Te=c(47812),je=c.n(Te),ge=c(11607),h=c.n(ge),J=c(28275),te=c.n(J),K=c(92074),Ve=c.n(K),fe=c(32636),se=c.n(fe),ye=c(15697),$=c.n(ye),Re=c(32325),_e=c.n(Re),tt=c(16643),Xe=c.n(tt),rt=c(43407),pt=c(11059),ze=c(27922),qe=c(43676),Lt=c(67382);const Kt=re()(se()("sidebarMode","hidden")),is=({type:Tt,settings:k})=>Tt!=="quiz"||k.asLesson||k.asLesson===void 0,Zt=({alpha:Tt,color:k=void 0,hasOverlay:Vt=!0,media:Et={}})=>{const{image:Tn={}}=Et,{key:cs,src:go}=Tn,In=cs?(0,rt.ME)(Tn):go,gn=k===ze.df.LIGHT?ze.qH:ze.KJ;return In?Vt?(0,pt.A)({alpha:Tt/100,color:gn,url:In}):{backgroundImage:`url("${In}")`}:null},Me=Tt=>[ze.Py.DARK,ze.Py.DARK_ACCENT,ze.Py.DARK_IMAGE,ze.qB.DARK,ze.kY.DARK,ze.kY.DARK_IMAGE].includes(Tt),ft=te()(Ve()("lessons"),V()),W=se()("navigationMode",ze.b$.RESTRICTED),nt=re()(se()("sidebarMode",ze.RE.HIDDEN)),Mt=se()("navigationType",ze.br.SIDEBAR),Ge=se()("navigationType",ze.br.COMPACT),us=F()($()(je(),"navigation"),nt,se()("navigation",!0)),Ze=({course:Tt,search:k,isMobile:Vt})=>(0,qe.c3)(Tt)?!1:(Mt(Tt)||Ge(Tt)&&!!Vt)&&us(Tt)||k.active,Fs=({course:Tt,isMobile:k})=>Ge(Tt)&&us(Tt)&&!k,_s=Tt=>[ze.Py.DARK_IMAGE,ze.Py.LIGHT_IMAGE,ze.qB.DARK_IMAGE,ze.qB.IMAGE,ze.kY.DARK_IMAGE,ze.kY.LIGHT_IMAGE].includes(Tt),Yt=Tt=>[ze.kY.DARK,ze.kY.LIGHT].includes(Tt),Ps=Lt.WA,po=(Tt,k)=>{if(Tt===ze.V7.RISE_CLASSIC||Tt===ze.V7.HORIZON)switch(k){case ze.BL.SPLIT_LEFT_IMAGE:case ze.BL.SPLIT_RIGHT_IMAGE:case ze.BL.TWO_THIRDS_LEFT_IMAGE:case ze.BL.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(Tt===ze.V7.APEX)switch(k){case ze.BL.SPLIT_LEFT_IMAGE:case ze.BL.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},Yn=(Tt,k)=>{switch(Tt){case A.RISE_CLASSIC:case A.APEX:case A.HORIZON:return k===U.CENTERED_OVERLAY||k===U.LEFT_OVERLAY||k===U.IMAGE;default:return!1}},Uo=we()(je(),ve()),$o=we()(je(),ue()(!1)),jt=$()($o,"isComplete"),gs=we()($()(ue()(!1),"passed"),$()($o,"isComplete")),zs=Xe()(2,Tt=>Ee()(F()(_()(ue()(Tt),V()),_()(gs,h()),_()(jt,h())))),fo=Xe()(2,Tt=>te()(_e(),zs(Tt),s()([]),V())),vo=Se()(Xe()(2,Tt=>F()(Uo,G()(Tt),fo(Tt))))},65259(et,xe,c){"use strict";c.d(xe,{QZ:()=>Se,R9:()=>Ne,aj:()=>Ee});var A=c(87686),U=c.n(A),P=c(1544),G=c.n(P),Q=c(73525),_=c.n(Q),me=c(49145),re=c.n(me),ee=c(42117),s=c.n(ee);const be=G()(s()),we=["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"],ie=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],ue=be({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:we}),oe=be({allowedAttributes:{iframe:ie},allowedTags:["iframe"],allowedSchemes:["http","https"]}),Ee=re()(_(),ue,U()("")),Ne=re()(_(),oe,U()("")),Se=be({allowedTags:[],allowedAttributes:[]}),ae=be({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:we.filter(ce=>ce!=="img")}),V=ce=>{const F=ce.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return Se(F).replace(/\s{2,}/g," ")}},73730(et,xe,c){"use strict";c.d(xe,{Mz:()=>ue,Sg:()=>Ne,Ww:()=>ae,X1:()=>we,XQ:()=>s,d9:()=>ee,dg:()=>Ee,gL:()=>oe,p1:()=>be,vm:()=>Se});var A=c(2761),U=c.n(A),P=c(32107),G=c.n(P),Q=c(67118),_=c.n(Q),me=c(32636),re=c.n(me);const ee={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},s=G()({KNOWLEDGE_CHECK:null,ORDER:null,QUIZ:null}),be=ce=>`/lessons/${encodeURIComponent(ce)}`,we="/lessons/progress-summary",ie=re()("type"),ue=ie(ee.SECTION),oe=ie(ee.QUIZ),Ee=_()(["settings","passToContinue"],!0),Ne=ce=>ce?.items?.find(F=>F.family==="knowledgeCheck"&&F?.settings?.requireCorrectAnswer),Se=ce=>ce!=null&&ce.type==="blocks",ae=ce=>{const F=U()(ce);return F!=null&&Array.isArray(F.items)&&(F.items=F.items.reduce((de,ve)=>(ve!=null&&de.push(V(ve)),de),[])),F},V=ce=>{const F=U()(ce);return F!=null&&Array.isArray(F.items)&&(F.items=F.items.filter(Boolean)),F}},61813(et,xe,c){"use strict";c.d(xe,{U2:()=>J});var A,U,P=c(82083),G=c.n(P),Q=c(52887),_=c.n(Q),me=c(1544),re=c.n(me),ee=c(27863),s=c.n(ee),be=c(69451),we=c.n(be),ie=c(7641),ue=c.n(ie),oe=c(4633),Ee=c.n(oe),Ne=c(70261),Se=c.n(Ne),ae=c(94122),V=c.n(ae),ce=c(17159);const F=5e3,ve=ue()(re()(_())(":n3,n4,i4,n7,n9")),Te=G()(s()(","),we()),je=(Ve,fe)=>{const se=new FontFace(fe.name,Ve,{family:fe.name,style:fe.style,weight:fe.weight});return se.load().then(()=>document.fonts.add(se))},ge=(Ve,fe)=>{const se=document.createElement("style");return se.innerText=`@font-face { font-family: '${fe.name}'; src: ${Ve}; font-weight: ${fe.weight}; font-style: ${fe.style}; }`,document.head.appendChild(se),new(Se())(fe.name,{style:fe.style,weight:fe.weight}).load()},h=Ve=>{const fe=`url(${(0,ce.PJ)(Ve)}) format('woff')`;return("fonts"in document?je:ge)(fe,Ve)},J=(Ve,fe)=>{const se=Promise.all(Ve.map(h));let ye;const $=new Promise(Re=>{ye=setTimeout(Re,F)});return Promise.race([se,$]).catch(Re=>{console.error("Failed to load learn course fonts:",{fonts:Ve,error:Re.message||Re})}).finally(()=>{clearTimeout(ye),fe()})},te=({baseUri:Ve,typefaces:fe,onLoad:se,onError:ye})=>{const $=A(fe).join(", ");return U.load({active:se,fontinactive:(Re,_e)=>{console.error("Individual font failed to load:",{familyName:Re,fvd:_e,typefaces:fe})},inactive:()=>{console.error("Failed to load course fonts:",{typefaces:fe,typefaceList:$}),ye?.(),se?.()},timeout:F,custom:{families:ve(A(fe)),urls:[`${Ve}/course_fonts.css?typefaceIds=${Te(fe)}`]}})},K=()=>U.load({google:{families:["Noto Sans Myanmar:300,400,500,600,700"]},timeout:F})},8851(et,xe,c){"use strict";c.d(xe,{yV:()=>P});var A,U=c(39341);const P=re=>{const ee=re.user,s=ee?.profile?.user_id,be=ee?.subscription?.subscription_id||ee?.subscription?.id;return{application_source:"360_rise",application_service:"authoring",user_role:(0,U.O0)()||"Creator",reach_user_id:void 0,a360_user_id:s,user_permissions:ee?.permissions||[],session_id:re?.user?.session,subscription_id:ee?.subscription?.subscription_id||be,tenant_id:be,risecom_billing_id:void 0,...ee?.subscription?.plan&&{subscription:{plan:ee.subscription.plan,trial_type:ee.subscription.trial_type??null}},...re.ai?.subscription&&{ai:{plan:re.ai.subscription.plan,start_date:re.ai.subscription.start_date,end_date:re.ai.subscription.end_date,status:re.ai.subscription.status}},...re.l10n?.subscription&&{localization:{end_date:re.l10n.subscription.end_date,plan:re.l10n.subscription.plan,start_date:re.l10n.subscription.start_date,status:re.l10n.subscription.status}}}},G=re=>{const ee=re.course;return{course_id:ee?.id,course_locale:ee?.locale||re.l10n&&A(re.l10n)||null,course_created_via:ee?.metadata?.createdVia??null,course_snapshot_id:ee?.metadata?.restoredFromSnapshotId??null,copied_course_id:ee?.copyOf??null}},Q=(re,ee)=>{if(!ee)return{};const s=re?.lessons?.[ee];if(!s)return{};const be=re?.course?.lessons?.indexOf(ee)+1||null;return{lesson_id:ee,lesson_type:s.type,lesson_position:be}},_=(re,ee,s)=>{if(!ee||!s)return{};const we=(re.lessons||{})[ee];if(!we?.items)return{};const ie=we.items.find(Ee=>Ee.id===s);if(!ie)return{};const oe=we.items.map(Ee=>Ee.id).indexOf(s)+1;return{block_id:s,block_type:ie.type,block_variant:ie.variant,block_family:ie.family,block_position:oe,block_created_via:ie?.metadata?.createdVia??"manual"}},me=({interactionSetId:re,interactionSetWorkflowKey:ee,taskType:s,resourceType:be,hasSourceContent:we}={})=>re?{interaction_set_id:re,...ee&&{interaction_set_workflow_key:ee},interaction_set_task_type:s,interaction_set_task_resource_type:be,interaction_set_has_source_content:we}:{}},8466(et,xe,c){"use strict";c.d(xe,{$H:()=>Te,Bd:()=>je,DX:()=>ue,Ge:()=>K,H7:()=>ye,MT:()=>ve,PH:()=>h,SQ:()=>J,Sd:()=>F,UG:()=>Ee,Wz:()=>se,_z:()=>de,cN:()=>ae,dT:()=>fe,d_:()=>oe,hM:()=>ge,kJ:()=>Ve,qm:()=>ie,rv:()=>we,up:()=>V,v1:()=>te,vU:()=>Se});var A=c(31042),U=c(15648),P=c(27922),G=c(90946),Q=c(67382),_=c(58358),me=c(7517),re=c(3285),ee=c(62850),s=c.n(ee);const be=(0,U.createContext)(null);be.displayName="CourseContext";function we({children:$,course:Re,courseProgress:_e,l10n:tt,labels:Xe,lessons:rt,partnerContent:pt,search:ze}){const qe=(0,U.useMemo)(()=>({course:Re,courseProgress:_e,l10n:tt,labels:Xe,lessons:rt,partnerContent:pt,search:ze}),[Re,tt,Xe,rt,_e,pt,ze]),Lt=(0,U.useMemo)(()=>({l10n:(0,ee.omit)(["locales","defaultLocale"],tt)}),[tt]),Kt=(0,U.useMemo)(()=>({l10n:{locales:tt?.locales,defaultLocale:tt?.defaultLocale,localeSelectorOptions:tt?.localeSelectorOptions,showLocaleSelector:tt?.showLocaleSelector,languageCodeMetadata:tt?.languageCodeMetadata}}),[tt?.locales,tt?.defaultLocale,tt?.localeSelectorOptions,tt?.showLocaleSelector,tt?.languageCodeMetadata]);return(0,A.jsx)(be.Provider,{value:qe,children:(0,A.jsx)(_.xr.Provider,{value:Lt,children:(0,A.jsx)(_.zE.Provider,{value:Kt,children:$})})})}function ie(){return(0,U.useContext)(be)}function ue(){return ie()?.course}function oe(){return(0,_.QQ)(ue()?.title)}function Ee(){const $=ue();return $.selectedAuthorId==="none"||!("authors"in $)?null:$.selectedAuthorId?$.authors?.find(Re=>Re.id===$.selectedAuthorId):$.authors?.find(Re=>Re.id===$.author)}function Ne(){return ue().trackingQuizId}function Se(){const{labels:$}=ie()??{};return $}const ae=({isCourseComplete:$,percentCourseComplete:Re})=>{const _e=Se()??{},{courseResume:tt,courseStart:Xe,processStartAgain:rt}=_e;return{courseCTALabel:$?rt:Re>0?tt:Xe}};function V(){const{courseProgress:$}=ie();return $}function ce(){return V()?.lessons}function F(){return V()?.percentComplete}function de(){return ue().lessonsOnly?.[0]}function ve(){const $=ce(),Re=Ne();return(0,G.jI)($,Re)}function Te(){const $=ue(),{selectedAuthorId:Re}=$?.lessons?.[0]??{};return Re==="none"||!Re?null:$?.authors?.find(_e=>_e.id===Re)??null}function je(){const{course:$,partnerContent:Re}=ie();return Re.content?.find(_e=>_e.id===$.selectedAuthorId)}function ge(){return je()?.data?.authors??null}function h(){const{partnerContent:$}=ie();return $?.content?.[0]?.data?.authors}function J(){return ie().search}function te(){const{lessons:$}=ue();return(0,U.useMemo)(()=>Array.isArray($)?$.filter(({type:_e})=>_e!=="section").length:0,[$])}function K($){const tt=ue()?.theme?.accentContrast;return typeof tt!="string"?P.Em.LIGHT:tt===P.Em.AUTO?(0,Q.xD)($):tt}function Ve(){const $=ue();return $?.theme?.colorAccent??$?.color}function fe(){return ue()?.theme?.coverImageColor??P.df.DARK}function se(){const{currentLocale:$}=(0,re.nY)(),Re=(0,_.jc)(),_e=ue();return(0,me.V)({course:_e,locales:Re,locale:$})}function ye(){const{lessons:$}=ie();return $}},58358(et,xe,c){"use strict";c.d(xe,{D_:()=>ie,MQ:()=>Ee,NB:()=>re,QQ:()=>ee,bs:()=>Ne,dx:()=>s,gY:()=>me,iR:()=>be,jc:()=>we,xr:()=>Q,zE:()=>_});var A=c(50918),U=c(8466),P=c(15648),G=c(3285);const Q=(0,P.createContext)({l10n:null});Q.displayName="TranslationContext";const _=(0,P.createContext)({l10n:null});_.displayName="LocalesContext";function me(){const{currentLocale:Se}=(0,G.nY)(),ae=ie(),V=ue();return(0,P.useCallback)(ce=>(0,A.Dh)(ce,Se,ae,V),[Se,ae,V])}function re(){const{currentLocale:Se}=(0,G.nY)(),ae=ie(),V=ue();return(0,P.useCallback)(ce=>(0,A.UR)(ce,Se,ae,V),[Se,ae,V])}function ee(Se){const{currentLocale:ae}=(0,G.nY)(),V=ie();let ce=ue();const F=oe();return F&&Object.keys(F).length&&ae&&ce&&(ce={...ce,[ae]:F}),(0,A.Dh)(Se,ae,V,ce)}function s(Se){const{currentLocale:ae}=(0,G.nY)(),V=ie(),ce=ue();return(0,P.useMemo)(()=>(0,A.UR)(Se,ae,V,ce),[ae,V,Se,ce])}function be(){return(0,P.use)(_)}function we(){const Se=be();return(0,A.S)(Se)}function ie(){const Se=be();return(0,A.HH)(Se)}function ue(){const Se=(0,P.use)(Q);return(0,A.fF)(Se)}function oe(){return(0,U.qm)()?.search?.translations}function Ee(){const Se=(0,P.use)(Q);return(0,A.Zn)(Se)}function Ne(){const Se=(0,P.use)(Q);return(0,A.cP)(Se)}},3285(et,xe,c){"use strict";c.d(xe,{fH:()=>s,nY:()=>be,wZ:()=>we});var A=c(31042),U=c(15648),P=c(31949);function G(ie,ue=window.location){const{defaultLocale:oe,locales:Ee}=ie??{},Ne=ue.hash?(0,P.Rr)(ue.hash.slice(1)):ue;let ae=new URLSearchParams(Ne.search).get("locale");const V=new URL(window.location.href);return V.pathname.startsWith("/view-pdf/")&&(ae=V.searchParams.get("locale")),Ee?.find(F=>F.locale===ae)?.locale||oe}var Q=c(58358),_=c(63762),me=c(50918),re=c(38835);const ee=(0,U.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function s({children:ie}){const ue=(0,_.Z)(),oe=(0,P.zy)(),Ee=(0,re.LY)(me.HH),Ne=(0,Q.D_)(),Se=Ee||Ne,ae=(0,re.LY)(me.S),V=(0,Q.jc)(),ce=Ee?ae:V,F=(0,U.useMemo)(()=>G({defaultLocale:Se,locales:ce},oe),[Se,ce,oe]),de=(0,U.useCallback)((Te,je="replace")=>{const ge=Te===Se?"":Te,h=new URLSearchParams(oe.search);h.set("locale",ge);const J=oe.pathname+"?"+h.toString()+oe.hash;je==="push"?ue(J):ue(J,{replace:!0})},[Se,ue,oe]),ve=(0,U.useMemo)(()=>({currentLocale:F,setCurrentLocale:de}),[F,de]);return(0,A.jsx)(ee.Provider,{value:ve,children:ie})}function be(){return(0,U.useContext)(ee)}function we(ie){const ue=oe=>{const Ee=be();return(0,A.jsx)(ie,{...oe,...Ee})};return ue.displayName=`withCurrentLocale(${ie.displayName||ie.name})`,ue}},10104(et,xe,c){"use strict";c.d(xe,{B1:()=>be,BN:()=>ie,F:()=>re,R6:()=>_,eB:()=>s,q2:()=>me});var A=c(31042),U=c(15648),P=c(98813),G=c(27490),Q=c(86749);const _=U.createContext(null),me=U.createContext(!1),re=ue=>(0,A.jsx)(me.Provider,{value:!0,children:(0,A.jsx)(G.A,{...ue})});function ee(ue){return class extends U.Component{static displayName=`withStaleTransitionState(${ue.displayName||ue.name})`;static defaultProps={onEnter:()=>{},onEntered:()=>{},onEntering:()=>{},onExit:()=>{},onExited:()=>{},onExiting:()=>{}};nodeRef=U.createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor(Ee){super(Ee),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=(Ee,...Ne)=>{this.setState({transitionState:Ee});const Se="on"+Ee[0].toUpperCase()+Ee.slice(1),ae=this.props[Se];typeof ae=="function"&&ae(...Ne)};render(){return(0,A.jsx)(_.Provider,{value:this.state.transitionState,children:(0,A.jsx)(ue,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntered:this.onEnteredDelegate,onEntering:this.onEnteringDelegate,onExit:this.onExitDelegate,onExited:this.onExitedDelegate,onExiting:this.onExitingDelegate})})}}}const s=ee(Q.Ay),be=ee(P.A);function we(ue){const oe=U.useContext(me),Ee=U.useContext(_),Ne=U.useRef(ue);return oe&&Ee?.startsWith?.("exit")||(Ne.current=ue),Ne.current}function ie(ue){const oe=Ee=>{const Ne=we(Ee);return(0,A.jsx)(ue,{...Ne,nodeRef:Ee.ref,ref:Ee.ref})};return oe.displayName=`withTransitionableState(${ue.displayName||ue.name||"Component"})`,oe}},31926(et,xe,c){var A={"./en-au":45834,"./en-au.js":45834,"./en-ca":7064,"./en-ca.js":7064,"./en-gb":81813,"./en-gb.js":81813,"./en-ie":72178,"./en-ie.js":72178,"./en-il":75673,"./en-il.js":75673,"./en-in":82679,"./en-in.js":82679,"./en-nz":67100,"./en-nz.js":67100,"./en-sg":72702,"./en-sg.js":72702};function U(G){var Q=P(G);return c(Q)}function P(G){if(!c.o(A,G)){var Q=new Error("Cannot find module '"+G+"'");throw Q.code="MODULE_NOT_FOUND",Q}return A[G]}U.keys=function(){return Object.keys(A)},U.resolve=P,et.exports=U,U.id=31926},54357(){},38954(){}}]);
