(globalThis.wpRiseJsonp=globalThis.wpRiseJsonp||[]).push([["learn_main_tsx-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349(Ze){Ze.exports=function(Ce){Ce||(Ce={});var __t,__p="";with(Ce)__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}},63126(Ze,Ce,l){"use strict";l.d(Ce,{cF:()=>Te,LK:()=>ds,LM:()=>bn,TJ:()=>Da,Ay:()=>ps,EL:()=>lr,HC:()=>Po,V7:()=>lo,YB:()=>Mo});var j=l(87755),_=l(81783),z=l.n(_),re=l(12100),te;function ee(){return re.action}function pe(){return te}var ne=l(70853),oe=l(86554),s=l(11511),Ee=l(35618),Be=l(20495),ge=l(38664);const Y=(Ve=[],pt)=>pt?.partnerContentId?Ve.concat(pt.partnerContentId):Ve,X=(Ve,pt)=>pt?.items?.reduce(Y,Ve)??Ve,xe=(Ve,pt)=>pt?.items?.reduce(X,Ve)??Ve,Re=({course:Ve,lessons:pt})=>{const Yt=pt?.reduce(xe,[])||[],Is=Ve?.partnerContentId||null,Fs=Is?[Is]:[],dr=new Set([...Yt,...Fs]);return Array.from(dr)};var le=l(48831),G=l.n(le),Oe,ze;const V=null,ce=G()({ACTIVE:null,PREVIEW:null}),q=({themeId:Ve,themeCoverImage:pt,coverImageDefault:Yt})=>Ve==="classic"&&ze(Yt)?Yt:pt,be=Ve=>({...Ve,theme:{...Ve?.theme,hideLessonHeaders:Ve?.theme?.hideLessonHeaders??!1,showStartButton:Ve?.theme?.showStartButton??!0}});var ye=l(44914),he=l.n(ye),u=l(68692),Q=l.n(u),se=l(48819),U=l.n(se),Pe=l(33182),me=l.n(Pe),je=l(89239),$e=l.n(je),ue=l(55332),Qe;const lt=U()([[Q()([me()(!0),me()(ue.iV.ALL)]),he()(ue.iV.ALL)],[Q()([me()(!1),me()(ue.iV.NONE)]),he()(ue.iV.NONE)],[me()(ue.iV.INCORRECT),he()(ue.iV.INCORRECT)],[$e(),he()(ue.iV.ALL)]]),tt="draw from question bank",dt="fillin",xt="matching",Ye="multiple choice",ke="multiple response",Fe=null;var mt=l(3811),yt=l(33495),$t=l(12396),Qt=l.n($t);const ls="^1.1.0";class as extends Error{}function Dn(Ve){try{if(Ve==null)return;if(typeof Ve!="object"||!("version"in Ve)||typeof Ve.version!="string")throw new as("Missing Runtime.version");if(!Qt()(Ve.version,ls))throw new as(`Runtime.version ${Ve.version} does not satisfy ${ls}`)}catch(pt){console.warn(pt)}}const ds="rise/course/LOAD_COURSE",oo="rise/course/UPDATE_COMPLETED_AT",bn="rise/course/UPDATE_COURSE_PREVIEW",Ss="rise/course/UPDATE_LESSON_PREVIEW",Te="rise/course/APPLY_CHANGESET";let ro;(async()=>{try{({applyReviewDataToManifest:ro}=await l.e("webpack_container_remote_mondrian_learn-react").then(l.t.bind(l,4246,23)))}catch{}})();const J=ee(),ht=Ve=>{if("settings"in Ve&&Ve.settings&&(0,yt.Gv)(Ve.settings)&&"revealAnswers"in Ve.settings){const Yt=Ve.settings;return{...Ve,settings:{...Ve.settings,revealAnswers:lt(Yt.revealAnswers)}}}return Ve},ws=Ve=>(0,mt.vm)(Ve)?(0,mt.Ww)(Ve):Ve,_e=Ve=>ws(ht(Ve)),ao=Ve=>({...Ve,lessons:Ve.lessons?.map(_e)||[]}),Ro=Ve=>{const pt=Ve.lessons?.filter(Yt=>Yt.type!=="section")||[];return{...Ve,lessonsOnly:pt}},Ir=Ve=>Ve.theme==null,un=Ve=>(0,oe.MJ)((0,oe.uK)(Ve)),yn=Ve=>Ir(Ve)?un(Ve):(0,oe.MJ)(Ve),Xs=Ve=>be(yn(Ve)),io=(Ve,pt)=>{let Yt=(0,j.TJ)(["course"],pt,Ve).result;const Is=(0,j.TJ)(["lessons"],pt,Yt.lessons).result;return pt.some(Fs=>Fs.path[0]==="mondrian")&&Yt.mondrian&&ro&&(Yt={...Yt,mondrian:ro(Yt.mondrian,pt)}),{...Yt,lessons:Is}},Nt=Ve=>({...Ve,lessons:Ve.lessons?.map(s.K)||[]}),Cs=(Ve,{completedAt:pt,course:Yt,favoritedAt:Is,riseComCurrentUser:Fs,riseComCourseId:dr,riseComEnrollmentType:hn,riseComLearningPathId:Xr})=>{const Ha=ao(Yt),Xt=Ro(Ha),Jr={...Xt,theme:Xt.theme??(0,oe.uK)(Xt).theme};return{...Xs(Jr),completedAt:pt,favoritedAt:Is,riseComCourseId:dr,riseComEnrollmentType:hn,riseComCurrentUser:Fs,riseComLearningPathId:Xr}},co=Ve=>({...Ve,favoritedAt:new Date}),Et=Ve=>({...Ve,favoritedAt:null}),Zt=Ve=>({...Ve,completedAt:new Date().toISOString()}),Ln={[Ee._q]:co,[Ee.ut]:Et,[ds]:Cs,[oo]:Zt,[bn]:(Ve,{course:pt})=>pt,[Ss]:(Ve,{lessons:pt})=>({...Ve,lessons:pt.map(_e)}),[Te]:io},ps=(0,re.handle)({},Ln),En=Ve=>pt=>{const{statusCode:Yt}=pt;Yt===404?Ve((0,ge.cX)(!0)):pt instanceof as&&(Ve((0,ge.ZR)(!0)),console.error(pt))},wo=Ve=>pt=>pt([{type:Be.O,payload:Ve},(0,ge.$d)(!0)]),Tn=z().fromPromise(async(...Ve)=>await(0,ne.qO)(...Ve)),w=Ve=>Ve.length===0?(0,ge.$d)(!0):Tn(Ve).map(wo),jt=Ve=>pt=>{const{course:Yt}=pt,Is=Nt(Yt),Fs=Re({course:Is,lessons:Is.lessons});Ve([J(ds,{...pt,course:Is,_originalLessons:Yt.lessons}),(0,ge.LW)(!0),w(Fs)])},lr=()=>async Ve=>{try{Dn(window.Runtime);const pt=await(0,ne.hd)();jt(Ve)(pt),(0,ne.wW)(pt)}catch(pt){await En(Ve)(pt)}},Po=J(ds),lo=J(bn),Mo=J(Ss),Da=J(Te)},12077(Ze,Ce,l){"use strict";l.d(Ce,{E3:()=>Ee,Kl:()=>z,Om:()=>te,RA:()=>Re,Sw:()=>ge,V9:()=>X,Zp:()=>ne,b0:()=>Oe,bf:()=>re,eQ:()=>Be,i$:()=>le,re:()=>xe,sR:()=>s,sq:()=>pe,ss:()=>Y,u_:()=>G,w8:()=>ee,y1:()=>oe});var j=l(12100);const _=ze=>`rise/course/${ze}`,z=_("BLOCKS_LESSON_COMPLETE"),re=_("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),te=_("BLOCKS_LESSON_RESET"),ee=_("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),pe=_("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),ne=_("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),oe=_("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),s=_("BLOCKS_LESSON_SET_SURVEY_PARTIAL"),Ee=_("BLOCKS_LESSON_SET_SURVEY_SUBMITTED"),Be=(0,j.action)(z),ge=(0,j.action)(re),Y=(0,j.action)(te),X=(0,j.action)(ee),xe=(0,j.action)(pe),Re=(0,j.action)(ne),le=(0,j.action)(oe),G=(0,j.action)(s),Oe=(0,j.action)(Ee)},38282(Ze,Ce,l){"use strict";l.d(Ce,{$Z:()=>ne,BM:()=>Be,Ew:()=>te,GL:()=>re,UZ:()=>ee,_Y:()=>s,aM:()=>Y,gO:()=>Ee,jS:()=>oe,tc:()=>pe});var j=l(35706),_=l(4830),z=l(33495);function re(V,ce){const q=V.lessons[ce];if(!(0,j.rV)(q))return V;const be={...Y(q),id:ce},ye=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:be});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:ye})}function te(V,ce){const{lessonId:q,blockId:be,itemId:ye}=ce,he=V.lessons[q];if(!(0,j.rV)(he))return V;const u=he.items[be],Q=xe({blockProgress:u,itemId:ye}),se=le({lessonProgress:he,blockId:be,updatedProgressBlock:Q}),U=(0,_.hh)(se),Pe=(0,j.b5)({courseProgress:V,lessonId:q,updatedLessonProgress:U});return(0,j.bo)({lessonId:q,prevCourseProgress:V,nextCourseProgress:Pe})}function ee(V,ce){const q=V.lessons[ce];if(!(0,j.rV)(q))return V;const be=G(q),ye=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:be});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:ye})}function pe(V,{blockId:ce,lessonId:q}){const be=V.lessons[q];if(!(0,j.rV)(be))return V;const ye=Oe(be.items[ce]),he=le({lessonProgress:be,blockId:ce,updatedProgressBlock:ye}),u=(0,j.b5)({courseProgress:V,lessonId:q,updatedLessonProgress:he});return(0,j.bo)({lessonId:q,prevCourseProgress:V,nextCourseProgress:u})}function ne(V,ce){const{lessonId:q,blockId:be,items:ye}=ce,he=V.lessons[q];if(!(0,j.rV)(he))return V;const u=X({blockId:be,lessonProgress:he,items:ye}),Q=(0,j.b5)({courseProgress:V,lessonId:q,updatedLessonProgress:u});return(0,j.bo)({lessonId:q,prevCourseProgress:V,nextCourseProgress:Q})}function oe(V,ce){const{lessonId:q,blockId:be,itemId:ye,audioVideoPlayhead:he}=ce,u=V.lessons[q],Q=u?.items?.[be];if(!(0,j.rV)(u)||!Q||!("items"in Q)||!Q.items||!Q.items[ye])return V;const U={...Q.items[ye],audioVideoPlayhead:he},Pe={...Q,items:{...Q.items,[ye]:U}},me=le({lessonProgress:u,blockId:be,updatedProgressBlock:Pe}),je=(0,j.b5)({courseProgress:V,lessonId:q,updatedLessonProgress:me});return(0,j.bo)({lessonId:q,prevCourseProgress:V,nextCourseProgress:je})}function s(V,ce){const{lessonId:q,blockId:be,itemId:ye,isCorrect:he}=ce,u=V.lessons[q];if(!(0,j.rV)(u))return V;const Q=ze({itemId:ye,isCorrect:he,blockProgress:u.items[be]}),se=(0,_.hh)(le({lessonProgress:u,blockId:be,updatedProgressBlock:Q})),U=(0,j.b5)({courseProgress:V,lessonId:q,updatedLessonProgress:se});return(0,j.bo)({lessonId:q,prevCourseProgress:V,nextCourseProgress:U})}function Ee(V,ce){const{lessonId:q,blockId:be,itemId:ye,response:he}=ce,u=V.lessons[q],Q=u?.items?.[be];if(!(0,j.rV)(u)||!Q||!("items"in Q)||!Q.items||!Q.items[ye])return V;const U={...Q.items[ye],response:he},Pe={...Q,items:{...Q.items,[ye]:U}},me=le({lessonProgress:u,blockId:be,updatedProgressBlock:Pe}),je=(0,j.b5)({courseProgress:V,lessonId:q,updatedLessonProgress:me});return(0,j.bo)({lessonId:q,prevCourseProgress:V,nextCourseProgress:je})}function Be(V,ce){const{lessonId:q,blockId:be,isSubmitted:ye}=ce,he=V.lessons[q];if(!(0,j.rV)(he))return V;const u=he?.items?.[be]??{},Q=(0,z.s0)(u?.items??{},(me,je)=>[me,(0,z.QD)(je,["response"])]),se={...u,items:Q,isSubmitted:ye},U=le({lessonProgress:he,blockId:be,updatedProgressBlock:se}),Pe=(0,j.b5)({courseProgress:V,lessonId:q,updatedLessonProgress:U});return(0,j.bo)({lessonId:q,prevCourseProgress:V,nextCourseProgress:Pe})}const ge=V=>Object.values(V).length>0&&Object.values(V).every(ce=>ce.isComplete),Y=V=>{const ce=(0,z.s0)(V.items,(q,be)=>{const ye=(0,z.s0)(be.items??{},(he,u)=>[he,{...u,isComplete:!0,id:u.id,index:u.index}]);return[q,{...be,items:ye,isComplete:!0}]});return{...V,isComplete:!0,items:ce,percentComplete:100}},X=({blockId:V,items:ce,lessonProgress:q})=>{const be=q.items?.[V]??{items:{}},ye=new Set(ce.map(U=>String(U.id))),he=(0,z.s0)(be.items??{},(U,Pe)=>{const me=ye.has(U);return[U,{...Pe,isComplete:Pe.isComplete||me,id:Pe.id,index:Pe.index}]}),Q=Object.keys(he).length===0||ge(he),se={...be,id:V,items:he,...Q&&{isComplete:!0}};return Re(le({lessonProgress:q,blockId:V,updatedProgressBlock:se}))},xe=({blockProgress:V,itemId:ce})=>{if(!V.items)return V;const q=V.items[ce];return{...V,items:{...V.items,[ce]:{...q,retryAttemptCount:(q?.retryAttemptCount??0)+1}}}},Re=V=>{const ce=(0,_.hh)(V);return ce.percentComplete===100?{...ce,isComplete:!0}:ce},le=({blockId:V,lessonProgress:ce,updatedProgressBlock:q})=>({...ce,items:{...ce.items,[V]:q}}),G=V=>{const ce=(0,z.s0)(V.items,(q,be)=>{const ye=(0,z.s0)(be.items??{},(he,u)=>[he,(0,z.QD)(u,["isComplete","isCorrect","isViewed"])]);return[q,{id:be.id,index:be.index,items:ye}]});return{...(0,z.QD)(V,["isComplete","percentComplete"]),items:ce}},Oe=V=>({...(0,z.QD)(V,["percentViewed","correctlyAnswered"]),id:V.id,index:V.index,items:(0,z.s0)(V.items??{},(ce,q)=>[ce,(0,z.QD)(q,["isViewed","isCorrect"])]),retryAttempts:(V.retryAttempts??0)+1}),ze=({isCorrect:V,itemId:ce,blockProgress:q})=>{if(!q.items)return q;const be=q.items[ce],ye={...be,isComplete:V,isViewed:V,...be?.isCorrect===void 0&&{isCorrect:V}},he={...q.items,[ce]:ye},u=Object.values(he).filter(me=>me.isCorrect).length,Q={...q,items:he,correctlyAnswered:u,...!V&&{lastIncorrectCardId:ce}},se=(0,_.f5)(Q),U=(0,_.QI)(se),Pe=U.percentComplete===100;return{...U,...Pe&&{isComplete:!0}}}},35706(Ze,Ce,l){"use strict";l.d(Ce,{Zn:()=>re,b5:()=>ee,bo:()=>pe,rV:()=>te});var j=l(4993),_=l.n(j),z=l(70853);const re=ge=>!!ge&&ge.type==="quiz",te=ge=>!!ge&&ge.type==="blocks",ee=({courseProgress:ge,lessonId:Y,updatedLessonProgress:X})=>({...ge,lessons:{...ge.lessons,[Y]:X}});function pe({lessonId:ge,nextCourseProgress:Y,prevCourseProgress:X}){const xe=Y.lessons[ge],Re=X.lessons[ge];if(xe&&!_()(xe,Re)&&((0,z.C2)(xe),ne({lessonId:ge,courseProgress:Y,prevCourseProgress:X})),oe({lessonId:ge,prevCourseProgress:X,nextCourseProgress:Y})){const le=Ee(X),G=Ee(Y),Oe=G!==le,ze={...Y,percentComplete:G};return Oe&&(Be({courseProgress:ze,lessonProgress:xe}),ze.percentComplete!=null&&(0,z.O9)(ze.percentComplete)),ze}return Y}function ne({courseProgress:ge,prevCourseProgress:Y,lessonId:X}){const xe=ge.lessons?.[X],Re=Y.lessons?.[X];if(xe?.percentComplete===100&&Re?.percentComplete!==100){const le=s(xe);le&&(0,z.aM)(le)}}function oe({lessonId:ge,nextCourseProgress:Y,prevCourseProgress:X}){const xe=Y.lessons?.[ge];if(!xe)return!1;const Re=X.lessons?.[ge]?.percentComplete===100,le=xe.percentComplete===100,G=Re!==le,Oe=Y.currentLesson!=null&&re(Y.lessons[Y.currentLesson])&&Y.lessons[Y.currentLesson]?.percentComplete===100;return G||Oe}function s(ge){const{id:Y}=ge;if(!Y)throw new Error("Cannot create lesson payload: lesson.id is missing");if(re(ge)){const{passed:X,score:xe,passingScore:Re=0}=ge;return{id:Y,...X!==void 0&&{passed:X},...xe!==void 0&&{score:xe},passingScore:Re}}return{id:Y}}function Ee(ge){const{lessons:Y={}}=ge,X=Object.keys(Y).length;if(X===0)return 0;const xe=Object.values(Y).filter(Re=>Re.isComplete).length;return Math.round(xe/X*100)}function Be({courseProgress:ge,lessonProgress:Y}){if(!ge||!Y)return;const X=s(Y);X&&(0,z.vb)(ge,X)}},35665(Ze,Ce,l){"use strict";l.d(Ce,{B:()=>V,A:()=>q});var j=l(12100),_=l(70853),z=l(12077),re=l(38282),te=l(79526),ee=l(18929),pe=l(4830),ne=l(55332),oe=l(11511),s=l(41367);const Ee=me=>me&&typeof me=="object"&&me.type&&s.fT.includes(me.type),Be=(me,je)=>{const $e=new Map;return me.forEach(ue=>{if((0,oe.c)(ue)){const Qe=je.find(lt=>String(lt.id)===String(ue.id));Qe&&Qe.type==="blocks"&&$e.set(String(ue.id),String(Qe.id))}}),$e},ge=(me,je)=>{const $e={id:String(me.id),index:me.index,type:"blocks",items:{}};return typeof me.isComplete=="boolean"&&($e.isComplete=me.isComplete),typeof me.percentComplete=="number"&&($e.percentComplete=me.percentComplete),je.type==="blocks"&&je.items&&je.items.forEach((ue,Qe)=>{if(ue?.id!=null&&($e.items[ue.id]={id:ue.id,index:Qe,isComplete:me.isComplete===!0&&Qe===0,items:ue.items?{}:void 0},ue.items&&Array.isArray(ue.items))){const lt={};ue.items.forEach((tt,dt)=>{tt?.id!=null&&(lt[tt.id]={id:tt.id,index:dt,isComplete:me.isComplete===!0})}),Object.keys(lt).length>0&&($e.items[ue.id].items=lt)}}),$e},Y=(me,je)=>{const $e=new Set(je.map(Qe=>String(Qe.id))),ue=[];return Object.values(me.lessons).forEach(Qe=>{Ee(Qe)&&($e.has(String(Qe.id))||ue.push(Qe))}),ue},X=(me,je,$e)=>{const ue={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},Qe={...me,lessons:{...me.lessons}},lt=Y(me,$e);ue.totalLegacyLessons=lt.length;const tt=Be(je,$e),dt=[];return lt.forEach(xt=>{try{const Ye=tt.get(String(xt.id))||String(xt.id),ke=$e.find(Fe=>String(Fe.id)===Ye);if(ke&&ke.type==="blocks"){const Fe=ge(xt,ke);Qe.lessons[String(ke.id)]=Fe,String(xt.id)!==String(ke.id)&&delete Qe.lessons[String(xt.id)],ue.successfulMigrations++}else dt.push(String(xt.id)),ue.failedMigrations++}catch(Ye){console.warn(`Failed to migrate legacy lesson progress for lesson ${xt.id}:`,Ye),dt.push(String(xt.id)),ue.failedMigrations++}}),{migratedProgress:Qe,orphanedLessonIds:dt,migrationSummary:ue}},xe=me=>Object.values(me.lessons).some(Ee),Re=me=>{let je=0,$e=0;const ue=[];return Object.values(me.lessons).forEach(Qe=>{$e++,Ee(Qe)&&(je++,ue.includes(Qe.type)||ue.push(Qe.type))}),{legacyCount:je,totalCount:$e,legacyTypes:ue,hasLegacyProgress:je>0}},le=(me,je,$e)=>{if(!xe(me))return me;const ue=X(me,je,$e);return ue.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",ue.orphanedLessonIds),ue.migratedProgress},G=me=>`rise/course/${me}`,Oe=G("BOOKMARK_LESSON"),ze=G("LOAD_COURSE"),V=(0,j.action)(Oe),ce={lessons:{},percentComplete:0},q=(0,j.handle)(ce,{[z.Kl]:re.GL,[z.bf]:re.Ew,[z.Om]:re.UZ,[z.w8]:re.tc,[z.sq]:re.$Z,[z.Zp]:re.jS,[z.y1]:re._Y,[z.sR]:re.gO,[z.E3]:re.BM,[te.z_]:ee.Qv,[te.Eg]:ee.Ki,[te.be]:ee.ZL,[te.jZ]:ee.Jx,[te.Ck]:ee.pl,[te.fV]:ee.Ux,[te.jo]:ee.NZ,[te.V8]:ee.uR,[te.Z8]:ee.XW,[te.Dh]:ee.yi,[te.ug]:ee.bu,[Oe]:ye,[ze]:be});function be(me,je){const $e=je.course?.lessons??[],ue=je._originalLessons??$e,Qe=(0,_.y4)(Q($e));if(typeof Qe!="object"||Qe===null)return me;const lt={...me,...Qe};return xe(me)&&ue!==$e?le(lt,ue,$e):lt}function ye(me,je){return(0,_.Fc)(je),{...me,currentLesson:je}}const he=({index:me,lessonId:je,settings:$e,type:ue})=>ue==="quiz"?{id:je,index:me,type:ue,items:{},passingScore:Number($e?.passingScore??ne.hB)}:{id:je,index:me,type:"blocks",items:{}};function u(me){return me.type==="quiz"&&"settings"in me}function Q(me){return{lessons:me.reduce(($e,ue,Qe)=>u(ue)?se({index:Qe,items:ue.items,lessonId:ue.id,lessonProgress:$e,settings:ue.settings,type:ue.type}):ue.type==="blocks"?se({index:Qe,items:ue.items,lessonId:ue.id,lessonProgress:$e,type:ue.type}):$e,{})}}function se(me){const{lessonId:je,index:$e,items:ue,lessonProgress:Qe={},settings:lt,type:tt}=me,dt=he({lessonId:je,index:$e,settings:lt,type:tt});if(ue.length===0)return{...Qe,[je]:dt};const xt=tt==="quiz"?Pe(ue):U(ue);return{...Qe,[je]:{...dt,items:xt}}}function U(me){return me.reduce((je,$e,ue)=>{const Qe=$e.id,lt=$e.items??[],tt=(0,pe.BC)(lt);return je[Qe]={id:Qe,index:ue,items:tt},je},{})}function Pe(me){return me.reduce((je,$e,ue)=>(je[$e.id]={id:$e.id,index:ue},je),{})}},79526(Ze,Ce,l){"use strict";l.d(Ce,{Ck:()=>ee,Dh:()=>Be,Eg:()=>s,FU:()=>xe,NC:()=>ze,Nj:()=>le,QI:()=>Y,RW:()=>ce,V8:()=>oe,YC:()=>X,Yu:()=>Re,Z8:()=>Ee,be:()=>re,fV:()=>pe,hy:()=>Oe,jZ:()=>te,jo:()=>ne,kK:()=>V,mg:()=>G,ug:()=>ge,x6:()=>q,z_:()=>z});var j=l(12100);const _=be=>`rise/course/${be}`,z=_("QUIZ_LESSON_ADVANCE_STEP"),re=_("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),te=_("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),ee=_("QUIZ_LESSON_RESTART"),pe=_("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),ne=_("QUIZ_LESSON_SET_ANSWER_MATCHES"),oe=_("QUIZ_LESSON_SET_ANSWER_TEXT"),s=_("QUIZ_LESSON_ADVANCE_TO_END"),Ee=_("QUIZ_LESSON_SET_TIME_REMAINING"),Be=_("QUIZ_LESSON_SUBMIT_ANSWER"),ge=_("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),Y=(0,j.action)(z),X=(0,j.action)(s),xe=(0,j.action)(ee),Re=(0,j.action)(pe),le=(0,j.action)(oe),G=(0,j.action)(ge),Oe=(0,j.action)(Ee),ze=(0,j.action)(ne),V=(0,j.action)(Be),ce=(0,j.action)(re),q=(0,j.action)(te)},18929(Ze,Ce,l){"use strict";l.d(Ce,{Jx:()=>s,Ki:()=>ne,NZ:()=>Y,Qv:()=>pe,Ux:()=>ge,XW:()=>X,ZL:()=>oe,bu:()=>Re,oO:()=>G,pl:()=>Be,uR:()=>Ee,yi:()=>xe});var j=l(35706),_=l(38282),z=l(33495),re=l(60238),te=l(70853),ee=l(55332);function pe(V,{lessonId:ce,progressId:q}){const be=V.lessons[ce];if(!(0,j.Zn)(be))return V;const ye=be.activeIndex??0,he=q?(be.items[q]?.index??ye)+1:ye+1,u={...be,activeIndex:he},Q=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:u});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:Q})}function ne(V,ce){const q=V.lessons[ce];if(!(0,j.Zn)(q))return V;const be=Object.keys(q?.items)?.length,ye={...q,activeIndex:be+1},he=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:ye});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:he})}function oe(V,{lessonId:ce,itemId:q}){const be=V.lessons[ce];if(!(0,j.Zn)(be))return V;const ye=be.items[q];if(!ye)return V;const he={...ye,selectedIndices:[]},u=le({lessonProgress:be,itemId:q,updatedProgressQuizItem:he}),Q=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:u});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:Q})}function s(V,{lessonId:ce,lessonProgress:q}){return{...V,lessons:{...V.lessons,[ce]:q}}}function Ee(V,{lessonId:ce,itemId:q,text:be}){const ye=V.lessons[ce];if(!(0,j.Zn)(ye))return V;const he=ye.items[q];if(!he)return V;const u=typeof be=="string"&&(0,re.h)(be)?(0,z.QD)(he,["text"]):{...he,text:be},Q=le({lessonProgress:ye,itemId:q,updatedProgressQuizItem:u}),se=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:Q});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:se})}function Be(V,ce){const q=V.lessons[ce];if(!(0,j.Zn)(q))return V;const be=(0,z.s0)(q.items,(Q,se)=>{const U={id:se.id,index:se.index};return[Q,U]}),he={...(0,z.QD)(q,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...q.passed!==!1&&{passed:q.passed},...q.isComplete!==!1&&{isComplete:q.isComplete},retryAttempts:(q.retryAttempts??0)+1,items:be},u=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:he});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:u})}function ge(V,{lessonId:ce,itemId:q,selectedIndex:be,shuffledAnswerIndices:ye}){const he=V.lessons[ce];if(!(0,j.Zn)(he))return V;const u=he.items[q];if(!u)return V;const Q=ye??u.shuffledAnswerIndices;if(be==null)return V;const se=Array.isArray(Q)&&Q[be]!=null?Q[be]:be,U={...u,selectedIndex:se,...Array.isArray(Q)&&{shuffledAnswerIndices:Q}},Pe=le({lessonProgress:he,itemId:q,updatedProgressQuizItem:U}),me=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:Pe});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:me})}function Y(V,{lessonId:ce,itemId:q,matches:be}){const ye=V.lessons[ce];if(!(0,j.Zn)(ye))return V;const he=ye.items[q];if(!he)return V;const u={...he,matches:be},Q=le({lessonProgress:ye,itemId:q,updatedProgressQuizItem:u}),se=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:Q});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:se})}function X(V,{lessonId:ce,timeRemaining:q}){const be=V.lessons[ce];if(!(0,j.Zn)(be))return V;const ye={...be,timeRemaining:q},he=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:ye});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:he})}function xe(V,{lessonId:ce,itemId:q,isCorrect:be,finalRetryAttempt:ye,passToContinue:he,skipLessonsIfPassed:u,skipToLessonId:Q}){const se=V.lessons[ce];if(!(0,j.Zn)(se))return V;const U=se.passingScore??ee.hB,Pe=se.items[q];if(!Pe)return V;const me={...Pe,isCorrect:be,isComplete:!0},je={...se.items,[q]:me},$e=Object.keys(je).length,ue=Object.values(je).filter(Ye=>Ye.isCorrect).length,Qe=Object.values(je).filter(Ye=>Ye.isComplete).length,lt=Math.round(ue/$e*100),tt=Math.round(Qe/$e*100);let dt={...se,items:je,score:lt,percentComplete:tt};if(tt===100){const Ye=lt>=U,ke=he?Ye:!0;if((0,te.X_)(Ye,lt,ce,ye),dt={...dt,passed:Ye,isComplete:ke,reportResults:!0},u&&Q&&Ye)return Oe(V,{quizId:ce,destinationId:Q,updatedLessonProgress:dt})}const xt=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:dt});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:xt})}function Re(V,{lessonId:ce,itemId:q,selectedIndex:be,shuffledAnswerIndices:ye}){const he=V.lessons[ce];if(!(0,j.Zn)(he))return V;const u=he.items[q];if(!u)return V;const Q=ye??u.shuffledAnswerIndices;if(be==null)return V;const se=Array.isArray(Q)&&Q[be]!=null?Q[be]:be,U=u.selectedIndices??[],me=U.includes(se)?U.filter(tt=>tt!==se):[...U,se],{selectedIndices:je,...$e}=u,ue=me.length>0?{...$e,selectedIndices:me,...Array.isArray(Q)&&{shuffledAnswerIndices:Q}}:{...$e,...Array.isArray(Q)&&{shuffledAnswerIndices:Q}},Qe=le({lessonProgress:he,itemId:q,updatedProgressQuizItem:ue}),lt=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:Qe});return(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:lt})}function le({itemId:V,lessonProgress:ce,updatedProgressQuizItem:q}){return{...ce,items:{...ce.items,[V]:q}}}function G(V,ce){const{id:q,passed:be,passingScore:ye,score:he,retryAttempts:u}=ce,Q=[be,u,he];if(!(Q.length===3&&Q.every(ue=>ue!=null)))return V;const U=V.lessons?.[q]?.items??{},Pe=Object.keys(U).length+1,me=V.lessons?.[q];if(!me)return V;const je={...me,isComplete:!0,activeIndex:Pe,reportResults:!0,passed:be,passingScore:ye,percentComplete:100,retryAttempts:u,score:he};return{...V,lessons:{...V.lessons,[q]:je}}}function Oe(V,{quizId:ce,destinationId:q,updatedLessonProgress:be}){const ye=(0,j.b5)({courseProgress:V,lessonId:ce,updatedLessonProgress:be}),he=(0,j.bo)({lessonId:ce,prevCourseProgress:V,nextCourseProgress:ye}),u=Object.keys(he.lessons),Q=u.findIndex(Pe=>Pe===ce),se=u.findIndex(Pe=>Pe===q);return Q===-1||se===-1||se<=Q?he:u.slice(Q+1,se).reduce((Pe,me)=>{const je=Pe.lessons[me];if(!je)return Pe;let $e;(0,j.Zn)(je)?$e=ze(je):$e=(0,_.aM)(je);const ue=(0,j.b5)({courseProgress:Pe,lessonId:me,updatedLessonProgress:$e});return(0,j.bo)({lessonId:me,prevCourseProgress:Pe,nextCourseProgress:ue})},he)}function ze(V){const ce=Object.fromEntries(Object.entries(V.items||{}).map(([q,be])=>[q,{...be,isComplete:!0,isCorrect:!0}]));return(0,te.X_)(!0,100,V.id,!1),{...V,items:ce,isComplete:!0,passed:!0,percentComplete:100,reportResults:!0,score:100}}},39289(Ze,Ce,l){"use strict";l.d(Ce,{A:()=>z,G:()=>re});var j=l(12100);const _="rise/features/SET_FEATURE_FLAGS",z=(0,j.handle)({},{[_]:(te,ee)=>ee}),re=(0,j.action)(_)},71918(Ze,Ce,l){"use strict";l.d(Ce,{A:()=>pe,r:()=>ne});var j=l(12100),_=l(63126),z=l(44148),re=l(38664);const te=(oe,{fonts:s})=>[...oe,...s],ee=(oe,{fonts:s})=>s,pe=(0,j.handle)([],{[_.LK]:te,[_.LM]:ee}),ne=oe=>s=>{(0,z.U2)(oe,()=>{s((0,re.m7)(!0))})}},37827(Ze,Ce,l){"use strict";l.d(Ce,{Ay:()=>oe,Wp:()=>pe});var j=l(12100),_=l(63126),z=l(87755);const re="rise/l10n/TOGGLE_LOCALE_SELECTOR",te=(s,{l10n:Ee})=>Ee?{...s,...Ee}:s,ee=(s,Ee)=>(0,z.TJ)(["l10n"],Ee,s).result,pe=(0,j.action)(re),ne=(s,Ee)=>s&&{...s,...!Ee&&{localeSelectorOptions:void 0},showLocaleSelector:Ee},oe=(0,j.handle)(null,{[_.LK]:te,[_.LM]:te,[_.cF]:ee,[re]:ne})},87194(Ze,Ce,l){"use strict";l.d(Ce,{A:()=>Re,R:()=>le});var j=l(12100),_=l(81783),z=l.n(_),re=l(9391),te=l.n(re),ee=l(7334),pe=l.n(ee);const oe=te()(2,G=>pe()((0,j.error)(G),(0,j.action)(G)));var s=l(13061);const Ee="rise/learningPathUpNext/FETCH_LP_UP_NEXT",Be="rise/learningPathUpNext/FETCH_LP_UP_NEXT_PENDING",ge={isPending:!1,isSuccess:!1,learningPathComplete:!1,nextCourse:{}},Y=G=>!("id"in G),X=(G,Oe)=>{const ze=Y(Oe);return{...G,isPending:!1,isSuccess:!0,learningPathComplete:ze,lpHasFailedQuiz:Oe.lpHasFailedQuiz,nextCourse:ze?{}:Oe}},xe=G=>({...G,isPending:!0}),Re=(0,j.handle)(ge,{[Ee]:(0,j.onSuccess)(X),[Be]:xe}),le=G=>[(0,j.action)(Be),oe(Ee)(z().fromPromise(s.RR)(G))]},20495(Ze,Ce,l){"use strict";l.d(Ce,{O:()=>_});const _=(z=>`rise/partnerContent/${z}`)("SET_ALL_PARTNER_CONTENT")},35618(Ze,Ce,l){"use strict";l.d(Ce,{_q:()=>z,nF:()=>te,pp:()=>ee,ut:()=>re});var j=l(12100);const _=pe=>`rise/rise-com/${pe}`,z=_("FAVORITE_ADDED"),re=_("FAVORITE_REMOVED"),te=()=>(0,j.action)(z,void 0),ee=()=>(0,j.action)(re,void 0)},31086(Ze,Ce,l){"use strict";l.d(Ce,{Ay:()=>X,D2:()=>Oe,NM:()=>V,Se:()=>Re,gA:()=>G,ts:()=>le,u:()=>ze});var j=l(12100);const _="rise/search/RESET_SEARCH",z="rise/search/SET_SEARCH_ACTIVE",re="rise/search/SET_SEARCH_ACTIVE_LESSONS",te="rise/search/SET_SEARCH_TRANSLATIONS",ee="rise/search/SET_SEARCH_LESSONS",pe="rise/search/SET_SEARCH_TERM",ne={active:!1,activeLessons:[],translations:{},lessons:[],term:null},oe=(ce,q)=>q?{...ne,active:ce.active}:ce,s=(ce,q)=>({...ce,active:q}),Ee=(ce,q)=>({...ce,activeLessons:q}),Be=(ce,q)=>({...ce,translations:q}),ge=(ce,q)=>({...ce,lessons:q}),Y=(ce,q)=>({...ce,term:q}),X=(0,j.handle)(ne,{[_]:oe,[z]:s,[re]:Ee,[te]:Be,[ee]:ge,[pe]:Y}),xe=ce=>(0,j.action)(ce),Re=xe(_),le=xe(z),G=xe(re),Oe=xe(te),ze=xe(ee),V=xe(pe)},89576(Ze,Ce,l){"use strict";l.d(Ce,{Ay:()=>oe,pb:()=>s,xi:()=>Ee});var j=l(12100);const _=Be=>`rise/sessionPreferences/${Be}`,z=_("LOAD_SESSION_PREFERENCES"),re=_("SET_PREFERS_KEYBOARD_NAVIGATION"),te=_("SET_STARTING_COURSE_LESSON_SELECTED"),ee={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},pe=(Be,ge)=>({...Be,prefersKeyboardNavigation:ge}),ne=(Be,ge)=>({...Be,startedCourseWithLessonSelected:ge}),oe=(0,j.handle)(ee,{[z]:(Be,ge)=>({...Be,...ge}),[re]:pe,[te]:ne}),s=()=>(0,j.action)(z,null),Ee=(0,j.action)(re)},62262(Ze,Ce,l){"use strict";l.d(Ce,{Ay:()=>ee,ty:()=>ne,zP:()=>pe});var j=l(41367),_=l(12100);const z="rise/slidesUI/SET_SLIDE_DIRECTION",re="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",te={slideDirection:j.fY.UP,exitingSlideOffset:0},ee=(0,_.handle)(te,{[z]:(oe,s)=>({...oe,slideDirection:s}),[re]:(oe,s)=>({...oe,exitingSlideOffset:s})}),pe=(0,_.action)(z),ne=(0,_.action)(re)},38664(Ze,Ce,l){"use strict";l.d(Ce,{$2:()=>s,$d:()=>ge,Ay:()=>ee,LW:()=>ne,ZR:()=>Be,cX:()=>Ee,m7:()=>pe,zq:()=>oe});var j=l(12100);const z=(Y=>`rise/status/${Y}`)("SET_LOADED"),re=(Y,X)=>({...Y,...X}),te={connection:"connected",courseLoaded:!1,fatalError:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},ee=(0,j.handle)(te,{[z]:re}),pe=(Y=!1)=>(0,j.action)(z,{fontsLoaded:Y}),ne=(Y=!1)=>(0,j.action)(z,{courseLoaded:Y}),oe=(Y="connected")=>(0,j.action)(z,{connection:Y}),s=(Y=!1)=>(0,j.action)(z,{coverLoaded:Y}),Ee=(Y=!1)=>(0,j.action)(z,{notFound:Y}),Be=(Y=!1)=>(0,j.action)(z,{fatalError:Y}),ge=(Y=!1)=>(0,j.action)(z,{partnerContentLoaded:Y})},2916(Ze,Ce,l){"use strict";l.d(Ce,{A:()=>te,s:()=>ee});var j=l(12100);const z=(pe=>`rise/ui/${pe}`)("SET_SKIP_TO_NAV_BUTTON_UI"),re={skipToNavButton:null},te=(0,j.handle)(re,{[z]:(pe,ne)=>({...pe,skipToNavButton:ne})}),ee=(0,j.action)(z)},9252(Ze,Ce,l){"use strict";l.r(Ce),l.d(Ce,{selectLabelsMap:()=>z,useLabelsMap:()=>re});var j=l(92471),_=l(80303);function z(te,ee){return ee?.l10n?.localeLabelSets?.[te]?.labels||ee?.courseLabels?.labels}function re(){const{currentLocale:te}=(0,_.nY)();return(0,j.d4)(ee=>z(te,ee))}},92471(Ze,Ce,l){"use strict";l.d(Ce,{Kq:()=>me,Ng:()=>je,JD:()=>$e,M_:()=>ue,wA:()=>Qe,d4:()=>lt});var j=l(18718),_=l(63126),z=l(12100);const re=(tt,{labelSet:dt})=>({...tt,...dt}),te=(0,z.handle)({},{[_.LK]:re});var ee=l(35665),pe=l(39289),ne=l(71918);const oe={isPreview:window.viewType==="preview"},s=((tt=oe)=>tt);var Ee=l(37827),Be=l(87194),ge=l(20495);const Y=(tt,dt)=>{const xt=tt.content.findIndex(ke=>ke.id===dt.id),Ye=[...tt.content];return xt===-1?Ye.push(dt):Ye[xt]=dt,{...tt,content:Ye}},X=(tt,dt)=>dt.reduce(Y,tt),xe={[ge.O]:X},Re=(0,z.handle)({content:[]},xe);var le=l(31086),G=l(89576),Oe=l(62262),ze=l(38664),V=l(74163);const ce={audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null},q=(tt,dt)=>dt.audioPlayerId?{...tt,audioPlayerIdOpen:dt.audioPlayerId,focusing:dt.focusing??!1,refocusTarget:dt.refocusTarget??null,transcriptMedia:dt.transcriptMedia??null}:tt,be=()=>({audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null}),ye=(tt,dt)=>tt.audioPlayerIdOpen?dt.audioPlayerId?{...tt,audioPlayerIdOpen:dt.audioPlayerId,focusing:dt.focusing??tt.focusing,transcriptMedia:dt.transcriptMedia??tt.transcriptMedia}:be():tt,he={[V.l6]:q,[V.ju]:be,[V.Y8]:ye},u=(0,z.handle)(ce,he);var Q=l(2916),se=l(45025);const U=se.BI?{learningPathUpNext:Be.A}:{},Pe=(0,j.HY)({course:_.Ay,courseLabels:te,courseProgress:ee.A,features:pe.A,fonts:ne.A,global:s,l10n:Ee.Ay,partnerContent:Re,search:le.Ay,sessionPreferences:G.Ay,slidesUI:Oe.Ay,status:ze.Ay,transcriptPanel:u,ui:Q.A,...U}),{Provider:me,connect:je,dispatch:$e,store:ue,useDispatch:Qe,useSelector:lt}=(0,j.Nv)(Pe)},11511(Ze,Ce,l){"use strict";l.d(Ce,{K:()=>he,c:()=>ye});var j=l(41367);const _={padding:"medium",alignment:"left"},z={embed:{aspectRatio:"16:9"},video:{},labeledgraphic:{hotspotStyle:"numbers"},process:{navigation:"stepped"},sorting:{feedback:"immediate"},timeline:{orientation:"vertical"},paragraph:{fontSize:"medium"}},re=(u,Q=0)=>`item_${u}_${Q}`,te=(u,Q)=>[{id:re(`${Q}_placeholder`,0),placeholder:!0,type:u,title:`Add ${u} content`}],ee=u=>({..._,...z[u]??{}}),pe=u=>typeof u=="string"?u.replace(/<p><br><\/p>/g,""):u,ne=u=>u.map(Q=>{if(Q&&typeof Q=="object"&&!Array.isArray(Q)){const se={};for(const[U,Pe]of Object.entries(Q))se[U]=pe(Pe);return se}return Q}),oe=u=>["Introduction","Summary"].map((Q,se)=>({id:re(`${u}_process`,se),title:Q,type:Q.toLowerCase(),description:null,isHidden:!0})),s=(u,Q)=>[{id:re(`${Q}_text`,0),paragraph:u}],Ee=(u,Q)=>[...oe(Q),...u],Be=(u,Q)=>[{id:re(`${Q}_video`,0),caption:"",media:u}],ge=(u=[],Q)=>({family:"multimedia",id:re(`${Q}_embed`,0),items:u.length?u:te("embed",Q),media:{},settings:ee("embed"),type:"multimedia",variant:"embed"}),Y=(u,Q,se)=>({family:"interactive-fullscreen",id:re(`${se}_labeledgraphic`,0),items:u,media:Q,settings:ee("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),X=(u,Q)=>({family:"interactive-fullscreen",id:re(`${Q}_process`,0),items:ne(u),media:{},settings:ee("process"),type:"interactive",variant:"process"}),xe=({items:u,piles:Q},se)=>({family:"interactive-fullscreen",id:re(`${se}_sorting`,0),items:u,media:{},piles:Q,settings:ee("sorting"),type:"interactive",variant:"sorting"}),Re=(u,Q)=>({family:"text",id:re(`${Q}_text`,0),items:ne(u),settings:ee("paragraph"),type:"text",variant:"paragraph"}),le=(u,Q)=>({family:"interactive-fullscreen",id:re(`${Q}_timeline`,0),items:u,media:{},settings:ee("timeline"),type:"interactive",variant:"timeline"}),G=(u,Q={},se)=>({family:"multimedia",id:re(`${se}_video`,0),items:u?.video?Be(u,se):te("video",se),media:{},settings:{...Q,...ee("video")},type:"multimedia",variant:"video"}),Oe=({items:u=[]},Q)=>ge(u.map(({icon:se,...U})=>U),Q),ze=({items:u=[],media:Q},se)=>Y(u.map(({hasMedia:U,...Pe})=>Pe),Q,se),V=({items:u=[]},Q)=>{const se=u.map(U=>({...U,isHidden:!1,type:"step"}));return X(Ee(se,Q),Q)},ce=({items:u=[]},Q)=>le(u.map(({linePosition:se,...U})=>U),Q),q=(u,Q)=>Re(s(u,Q),Q),be=(u,Q)=>{switch(u.type){case"embed":return Oe(u,Q);case"map":return ze(u,Q);case"process":return V(u,Q);case"sorting":return xe(u,Q);case"timeline":return ce(u,Q);case"screencast":case"slidecast":case"video":return G(u.media,u.settings,Q);default:throw new Error(`Unknown legacy lesson type: ${u.type}`)}},ye=u=>typeof u?.type=="string"&&j.fT.includes(u.type),he=u=>{if(!ye(u))return u;const Q=String(u.id),se={description:"",icon:"Article",type:"blocks"},U=[be(u,Q)],Pe=typeof u.description=="string"?u.description.trim():"";return Pe&&U.unshift(q(Pe,`${Q}_desc`)),{...u,...se,items:U,media:{}}}},70853(Ze,Ce,l){"use strict";l.d(Ce,{Fc:()=>We,hd:()=>Tt,qO:()=>Le,O9:()=>aa,X_:()=>Rr,jr:()=>wr,_$:()=>ra,JK:()=>v0,GJ:()=>Ul,y4:()=>kt,As:()=>ia,Hm:()=>_l,Wk:()=>ei,og:()=>fc,GS:()=>ti,xr:()=>si,IV:()=>Ut,bb:()=>p0,o1:()=>ni,wW:()=>Gl,vb:()=>qs,aM:()=>hs,C2:()=>ms,xS:()=>g0,no:()=>f0,m5:()=>vc});var j=l(23655),_=l(20614),z=l(44914),re=l.n(z),te=l(31735),ee=l.n(te),pe=l(49034),ne=l.n(pe),oe=l(95353),s=l.n(oe),Ee=l(97285),Be=l.n(Ee),ge=l(19892),Y=l.n(ge),X=l(65301),xe=l.n(X),Re=l(16997),le=l.n(Re),G=l(5651),Oe=l.n(G),ze=l(73333),V=l.n(ze),ce=l(37262),q=l.n(ce),be=l(58862),ye=l.n(be),he=l(77592),u=l.n(he),Q=l(98757),se=l.n(Q);const U=ie=>ee()(_.QZ,ie),Pe=ie=>ne()({[ie]:_.QZ}),me=({startTime:ie,stopTime:He})=>He-ie,je=ie=>{switch(ie.type){case"FILL_IN_THE_BLANK":return ke(ie);case"MATCHING":return oo(ie);default:return lt(ie)}},$e=ie=>{switch(ie.type){case"FILL_IN_THE_BLANK":return ke(ie);case"MATCHING":return oo(ie);case"MULTIPLE_CHOICE":return mt(ie);case"MULTIPLE_RESPONSE":return $t(ie);default:return mt(ie)}},ue=({isUnfinished:ie,item:He,itemProgress:nt})=>{switch(He.type){case"FILL_IN_THE_BLANK":return Fe(ie)(nt);case"MATCHING":return bn(He,ie)(nt);case"MULTIPLE_CHOICE":return yt(He,ie)(nt);case"MULTIPLE_RESPONSE":return Qt(He,ie)(nt);default:return yt(He,ie)(nt)}},Qe=ie=>[ie],lt=ie=>{const He=ie.answers||[];if(ie.shuffledAnswerIndices&&Array.isArray(ie.shuffledAnswerIndices)){const nt=[];return He.forEach((Ct,ss)=>{const bs=ie.shuffledAnswerIndices[ss];nt[bs]=Ct}),nt.map(Pe("title"))}return He.map(Pe("title"))},tt=U(ye()("id")),dt=U(ye()("title")),xt=ie=>He=>s()(u()("id",He),lt(ie)),Ye=ie=>Y()(V())(lt(ie)),ke=ee()(q()("title"),lt),Fe=ie=>xe()(re()(ie),re()(""),U(ye()("text"))),mt=ie=>ee()(xt(ie),ye()("correct"))(ie),yt=(ie,He)=>xe()(re()(He),re()([]),nt=>{const Ct=ye()("selectedIndex",nt);return Ct===void 0?[]:Qe(Ye(ie)(Ct))}),$t=ie=>ee()(Be(),le()(xt(ie)),ye()("corrects"))(ie),Qt=(ie,He)=>xe()(re()(He),re()([]),nt=>{const Ct=ye()("selectedIndices",nt)||[];return Be()(Ct.map(ss=>Qe(Ye(ie)(ss))))}),ls=({sourceId:ie,sourceTitle:He,targetId:nt,targetTitle:Ct})=>({source:{id:`source_${ie}`,title:He},target:{id:`target_${nt}`,title:Ct}}),as=U(ye()("matchTitle")),Dn=ie=>{const He=tt(ie);return ls({sourceId:He,sourceTitle:dt(ie),targetId:He,targetTitle:as(ie)})},ds=ie=>(He,nt)=>{const Ct=lt(ie),ss=Ct.find(Fn=>Fn.id===nt),bs=Ct.find(Fn=>Fn.id===He);return ls({sourceId:tt(ss),sourceTitle:dt(ss),targetId:tt(bs),targetTitle:as(bs)})},oo=ee()(le()(Dn),lt),bn=(ie,He)=>xe()(re()(He),re()([]),ee()(se(),Oe()(ds(ie)),ye()("matches")));var Ss=l(3983),Te=l(78137),ro=l(38282),J=l(18929),ht=l(45025),ws=l(6898),_e=l(50283),ao=l.n(_e);const Ro=ie=>ie!==void 0,un=ao()(Ro,ee()(JSON.parse,ws.Base64.decode)),Xs=(ie,He)=>window.courseData?ie(window.courseData):window.course?{course:ie(window.course),media:[]}:He;var io=l(54811),Nt=l.n(io),Cs=l(45976),co=l.n(Cs),Et=l(28148),Zt,Ln;const En=`${(0,ht._$)("RBC_URI")}/api/partner_content`,wo=null,Tn=Nt()(`${En}/`),jt={transformRequest:[(ie,He)=>(He.Authorization=`Bearer ${(0,Et.gf)()}`,ie)],headers:{"Content-Type":"application/json"}},lr=()=>Ln({...jt,url:wo}).toPromise().then(Zt(["data","types"])),Po=ie=>Ln({...jt,url:Tn(ie)}).toPromise().then(Zt(["data","content"])),lo=ie=>(0,Et.Em)({method:"POST",url:En,data:JSON.stringify({ids:ie}),...jt}).map(co()(["data","content"]));var Mo=l(36087),Da=l.n(Mo),Ve=l(98283),pt=l.n(Ve);const Yt=(0,ht._$)("SERVICE_ENV")==="prod",Is=Yt?"com":"zone",dr=Da()(JSON.stringify,pt()(new RegExp(`https://images.riseusercontent.${Is}/`,"g"),`${(0,ht._$)("IMAGES_URI")}/`),pt()(new RegExp(`https://riseusercontent.${Is}/`,"g"),`${(0,ht._$)("CDN_USER_CONTENT_URI")}/`),pt()(new RegExp(`https://video.rise.${Is}/`,"g"),`https://video.riseusercontent.${Is}/`),ao()(re()(!Yt),pt()(new RegExp("https://video.rise.com/","g"),"https://video.riseusercontent.zone/")),JSON.parse);var hn=l(11253),Xr=l.n(hn),Ha=l(1404),Xt=l.n(Ha),Jr=l(88747),Fa=l.n(Jr),Vl=l(54425),Nr=l.n(Vl),fs=l(17193),st=l.n(fs),Ns=l(84134),Oo=l.n(Ns),rc=l(5832),Bo=l.n(rc),ac=l(2639),jr=l.n(ac),uo=l(79443),kr=l.n(uo),Va=l(3770),ur=l.n(Va),ic=l(51335),Wt=l.n(ic),Lt=l(35224),Do=l.n(Lt),qr=l(97110),mn=l.n(qr),ea=l(57819),za=l.n(ea),$a=l(81619),Ua=l.n($a),_a=l(15509),pn=l.n(_a);const hr=ie=>!!ie,mr={[Te.En]:["activeIndex",st()],[Te.Ay]:["audioVideoPlayhead",Number],[Te.l7]:["isComplete",hr],[Te.Ko]:["correctlyAnswered",st()],[Te.WY]:["percentComplete",st()],[Te.sZ]:["retryAttempts",st()],[Te.jw]:["score",st()],[Te.eZ]:["currentTime",st()],[Te.Ze]:["percentViewed",st()],[Te.mj]:["reportResults",st()],[Te.p3]:["passed",st()],[Te.ft]:["passingScore",st()],[Te.pd]:["questionsDrawn",st()],[Te.ce]:["questionList",le()(le()(st()))],[Te.M$]:["timeRemaining",Number]},Ar=ie=>(He,nt)=>Xt()([Nr()(mr[nt])],kr()(mr[nt])(He),ie),Wa=ie=>(He,nt)=>{let Ct=kr()(Ka[nt])(He);return nt===Te.fd&&(Ct=Ct(ye()("items",ie))),{[Nr()(Ka[nt])]:Ct}},Ga=ie=>He=>{const nt=ie?.[He.index];return pn()(()=>Bo()(nt),()=>ee()(Wt()(He),Do(),se(),Oe()(Wa(He)))(nt))(He)},ta=ie=>le()(Ga(ie)),Xe=ee()(Do(),se(),Oe()(Wa(null))),cc=ie=>He=>{const nt=ye()(Te.fd,ie),Ct=ye()("items",He);return ee()(ao()(()=>Xr()([Fa()(Te.ce),u()(Te.pd,!0),()=>!Bo()(nt)])(ie),ss=>{const bs=le()(Xe,nt);return Xt()("originalItemProgress",bs,ss)}),Wt()(He),pn()(()=>Oo()(nt),Ua()(ur()("items"),ta(nt)(Ct))),Do(),se(),Oe()(Ar(He)))(mn()(jr()(mr),ie))};function lc(ie,He){const nt=ye()("lessons",He),Ct=ss=>{const bs=ye()(ss.index,nt);return pn()(()=>Bo()(bs),cc(bs))(ss)};return pn()(()=>Oo()(nt),ee()(Xt()("percentComplete",za()(0,Te.WY,He)),ne()({lessons:le()(Ct)})))(ie)}const Ka={[Te.Ay]:["audioVideoPlayhead",Number],[Te.Ko]:["correctlyAnswered",st()],[Te.l7]:["isComplete",hr],[Te.w5]:["isCorrect",hr],[Te.dg]:["isSubmitted",hr],[Te.Wj]:["isViewed",hr],[Te.fd]:["items",ta],[Te.BW]:["percentViewed",st()],[Te.qX]:["matches",st()],[Te.jF]:["response",st()],[Te.sZ]:["retryAttemptCount",Number],[Te.Pz]:["selectedIndex",st()],[Te.Ig]:["selectedIndices",st()],[Te.JG]:["shuffledAnswerIndices",st()],[Te.S$]:["text",st()]};var dc=l(8486),Qa=l.n(dc),Js=l(41211),sa=l.n(Js),Ks=l(95932),uc=l.n(Ks);const Ho={activeIndex:[Te.En,st()],audioVideoPlayhead:[Te.Ay,Number],correctlyAnswered:[Te.Ko,st()],currentTime:[Te.eZ,st()],isComplete:[Te.l7,Number],passingScore:[Te.ft,st()],percentComplete:[Te.WY,st()],percentViewed:[Te.Ze,st()],retryAttempts:[Te.sZ,st()],score:[Te.jw,st()],questionsDrawn:[Te.pd,st()],questionList:[Te.ce,le()(le()(st()))],reportResults:[Te.mj,st()],passed:[Te.p3,st()],timeRemaining:[Te.M$,Number]},Za=(ie,He)=>({[Nr()(na[He])]:kr()(na[He])(ie)}),Sn=ie=>ee()(pn()(Oo(),sa()(ye()("index",ie))),Do(),se(),Oe()(Za))(uc()(Oo(),mn()(jr()(na),ie))),Ya=ee()(Do(),se(),le()(Sn)),Fo=(ie,He)=>({[Nr()(Ho[He])]:kr()(Ho[He])(ie)});function hc(ie){const He=ye()("items",ie),nt=ye()("index",ie),Ct=pn()(Qa()(Bo(),Oo()),Ya)(He);return ee()(sa()(nt),pn()(()=>Qa()(Bo(),Oo())(Ct),Xt()(Te.fd,Ct)),Do(),se(),Oe()(Fo))(mn()(jr()(Ho),ie))}const xs=ee()(sa()(Te.WY),za()(0,"percentComplete")),na={audioVideoPlayhead:[Te.Ay,Number],correctlyAnswered:[Te.Ko,st()],isComplete:[Te.l7,Number],isCorrect:[Te.w5,Number],isSubmitted:[Te.dg,st()],isViewed:[Te.Wj,Number],items:[Te.fd,Ya],matches:[Te.qX,st()],percentViewed:[Te.BW,st()],retryAttemptCount:[Te.sZ,Number],selectedIndex:[Te.Pz,st()],selectedIndices:[Te.Ig,le()(Number)],shuffledAnswerIndices:[Te.JG,le()(Number)],text:[Te.S$,st()],response:[Te.jF,st()]},Hn=ie=>window.env?.[ie],Xa=ie=>`${Hn("CDN_USER_CONTENT_URI")}/${ie}`,us=()=>!!window.shareId,oa=()=>!!window.contentId,ho=()=>!!window.snapshotId,mc=()=>!!window.shareId&&!!window.hasPassword,js=oa()&&!ht.BI?dr:ie=>ie,Vo={fetch:()=>{if(qa.isExport||window.courseData||window.course)return Xs(un,{});{const ie=()=>window.shareId?`${Hn("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:oa()?`${Hn("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:ho()?`${Hn("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${Hn("RISE_RUNTIME_URI")}/boot/${window.courseId}`;return(0,Ss.Em)({method:"GET",url:ie(),json:!0,withCredentials:!0,timeout:3e4}).then(Ss.lZ).then(He=>typeof He=="object"?He:un(He)).then(js)}},fetchPartnerContent:ie=>qa.isExport||window.partnerContent?window.partnerContent.content:lo(ie).toPromise(),getEnv:Hn,isPasswordProtected:mc,isShare:us,isSnapshotPreview:ho,resolvePath:Xa,verifySharePassword:ie=>(0,Ss.Em)({method:"POST",url:`${Hn("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:ie},json:!0}).then(He=>He.body)},Ja=(ie,{id:He,type:nt,...Ct})=>nt==="quiz"?(0,J.oO)(ie,{id:He,...Ct}):(0,ro.GL)(ie,He),Gt=(ie,He)=>ie+((He||{})[Te.l7]||0),pc=(ie,He)=>(nt,{id:Ct,type:ss,...bs})=>He.lessons[Ct]?{...nt,...ie(Ja(He,{id:Ct,type:ss,...bs}).lessons[Ct])}:nt;function Bt(ie,He,nt){const Ct=He.reduce(pc(ie,nt),{}),ss=Object.keys(nt.lessons||{}).length,bs=Object.values(Ct).reduce(Gt,0),Fn=Math.round(bs/ss*100);return{lessons:Ct,p:Fn}}window.Rise=Object.assign(window.Rise||{},{completeLessons:Bt,decodeCourseProgress:lc,encodeCourseProgress:xs,encodeLessonProgress:hc});const qa={...Vo,...window.Runtime??{}},qe=qa,ra=ie=>window.env?.[ie],Ul=ie=>qe.getMasteryScore!=null?qe.getMasteryScore(ie):ie.passingScore,Ut=ie=>{if(qe.onCreateHistory!=null)return qe.onCreateHistory(ie)},Tt=(ie={})=>qe.fetch!=null?Promise.resolve(qe.fetch()):Promise.resolve(ie),Le=(ie=[])=>{if(qe.fetchPartnerContent!=null)return qe.fetchPartnerContent(ie)},We=ie=>{if(qe.bookmark!=null)return qe.bookmark(ie)},kt=ie=>qe.getProgress!=null?qe.getProgress(ie):ie,hs=ie=>qe.setLessonComplete!=null?qe.setLessonComplete(ie):ie,ms=ie=>qe.setLessonProgress!=null?qe.setLessonProgress(ie):ie,qs=(ie,He)=>qe.setCourseProgress!=null?qe.setCourseProgress(ie,He):ie,aa=ie=>{if(qe.finish!=null)return qe.finish(ie)},Rr=(ie,He,nt,Ct)=>{qe.finishQuiz!=null&&qe.finishQuiz(ie,He,nt,Ct)},wr=(ie,He,nt,Ct)=>{qe.finishStoryline!=null&&qe.finishStoryline(ie,He,nt,Ct)},ia=()=>qe.isComplete!=null?qe.isComplete():null,_l=()=>qe.isExport!=null?qe.isExport():!1;function ei(){if(qe.isExport!=null){const ie=window.partnerContent?.content;return qe.isExport()&&!!ie}return!1}const ti=()=>qe.isShare!=null?qe.isShare():!1,si=()=>qe.isSnapshotPreview!=null?qe.isSnapshotPreview():!1,fc=()=>qe.isPasswordProtected!=null?qe.isPasswordProtected():!1,ni=ie=>{const He=ie||"";return qe.resolvePath!=null?He.startsWith("http")||He.startsWith("data:")||He.startsWith("//")?He:qe.resolvePath(He):He.startsWith("data:")||He.startsWith("http")||He.startsWith("//")?He:`/${He}`},vc=ie=>qe.verifySharePassword!=null?qe.verifySharePassword(ie):Promise.resolve({isValid:!0}),p0=ie=>{if(qe.reportAnswer!=null){const{id:He,isCorrect:nt,isUnfinished:Ct=!1,item:ss,itemProgress:bs,duration:Fn,retryAttempts:x0,title:Cc}=ie,{id:b0,title:mo,type:oi}=ss;return qe.reportAnswer({id:He,type:oi,isCorrect:nt,itemId:b0,questionTitle:(0,_.QZ)(mo),quizTitle:(0,_.QZ)(Cc),retryAttempts:x0,answers:je(ss),correctResponse:$e(ss),response:ue({isUnfinished:Ct,item:ss,itemProgress:bs}),isUnfinished:Ct,latency:me(Fn)})}return!1},f0=ie=>{if(qe.startLesson!=null)return qe.startLesson(ie)},v0=()=>{if(qe.getLocale!=null)return qe.getLocale()},g0=ie=>{if(qe.setLocale!=null)return qe.setLocale(ie)},{browser:gc,os:ca}=new j.UAParser(window.navigator.userAgent).getResult(),C0=[gc.name,gc.version].filter(Boolean).join(" "),Wl=[ca.name,ca.version].filter(Boolean).join(" "),Gl=ie=>{if(qe.sendTelemetry!=null)return qe.sendTelemetry({...ie,browser:C0,os:Wl})}},74163(Ze,Ce,l){"use strict";l.d(Ce,{Y8:()=>ee,ju:()=>te,l6:()=>re});var j=l(54811),_=l.n(j);const z=_()("rise/transcriptPanel/"),re=z("OPEN_TRANSCRIPT_PANEL"),te=z("CLOSE_TRANSCRIPT_PANEL"),ee=z("UPDATE_TRANSCRIPT_PANEL")},63323(Ze,Ce,l){"use strict";l.d(Ce,{Z:()=>re});var j=l(26372),_=l(94036),z=l(16640);function re(){const te=(0,_.Zp)(),ee=(0,_.zy)();return(0,j.useCallback)((pe,ne)=>{if(typeof pe=="number")return te(pe);const oe=(0,z.B)(pe,ee),s=oe.pathname+(oe.search?`?${oe.search}`:"")+(oe.hash||"");return te(s,ne)},[te,ee])}},5768(Ze,Ce,l){"use strict";l.d(Ce,{DB:()=>be,H5:()=>q,ME:()=>Oe,bX:()=>ye,dE:()=>ze,ny:()=>ce,xm:()=>G});var j=l(88747),_=l.n(j),z=l(64943),re=l.n(z),te=l(45025);const ee=(0,te._$)("CDN_USER_CONTENT_URI"),pe=(0,te._$)("CDN_URI"),ne=_()("useCrushedKey"),oe=(0,te._$)("IMAGES_URI"),s=re()(/-stock[-_]image.jpg/),Ee=(0,te._$)("RBC_IMAGES_URI"),Be=(0,te._$)("ASSETS_URI"),ge=re()(new RegExp(`^${ee}/review`)),Y=(0,te._$)("CDN_US_URI"),X=he=>{const{crushedKey:u,key:Q,useCrushedKey:se,src:U}=he;return ne(he)?se&&u?(0,te.o1)(u):(0,te.o1)(Q):(0,te.o1)(U)},xe=he=>`${ee}/${he}`,Re=he=>!he||!he.key?"":`${Ee}/b:fff,f:jpg,s:cover,w:550,h:296/${he.key}`,le=he=>{if(!he||!he.key)return"";const{crushedKey:u,key:Q,useCrushedKey:se}=he;return ne(he)&&se?u?`${oe}/f:jpg,b:fff,s:cover,w:340/${u}`:"":`${oe}/f:jpg,b:fff,s:cover,w:340/${Q}`},G=he=>{if(!he||!he.key)return"";const{crushedKey:u,key:Q,useCrushedKey:se}=he;return oe?ne(he)&&se&&u?`${oe}/f:png,a:retain,s:cover,t:true,w:340/${u}`:`${oe}/f:png,a:retain,s:cover,t:true,w:340/${Q}`:X(he)},Oe=he=>{if(!he||!he.key)return"";const{crushedKey:u,key:Q,useCrushedKey:se,sourcedFrom:U}=he;if(!oe)return X(he);const Pe=U==="AI",me=U==="LIBRARY";return s(Q)||Pe||me?`${oe}/f:jpg,a:retain,b:fff,w:1680,q:90/${Q}`:ne(he)?se&&u?`${ee}/${u}`:`${ee}/${Q}`:ge(he.src)?he.src:`${oe}/f:jpg|png,a:retain,b:fff/${Q}`},ze=(he,u="src")=>{const{key:Q,src:se,thumbnail:U,thumbnailKey:Pe}=he,me=ee?`${ee}/${Q}`:X({key:Q,src:se}),je=ee?`${ee}/${Pe}`:X({key:Pe,src:U});return u==="src"?me:je},V=he=>{if(!he||!he.key)return"";const{crushedKey:u,key:Q,useCrushedKey:se}=he;return ne(he)&&se&&u?`${oe}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${u}`:`${oe}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${Q}`},ce=({height:he,imageKey:u,width:Q})=>{if(Ee){const se=encodeURIComponent(u);return`${Ee}/b:fff,f:jpg,s:cover,w:${Q},h:${he}/${se}`}return(0,te.o1)(`partnerContent/${u}`)},q=()=>{const he=Be||oe,u="NBIC_logo_light_bulb.png";return he?`${he}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${u}`:(0,te.o1)(`partnerContent/${u}`)},be=()=>{const he="NBIC_logo_blue.svg";return pe?`${pe}/assets/rise/assets/partner-content/${he}`:(0,te.o1)(`partnerContent/${he}`)},ye=he=>{const{key:u,src:Q}=he;return Y?`${Y}/${u}`:X({key:u,src:Q})}},50851(Ze,Ce,l){"use strict";l.d(Ce,{Em:()=>s,Vu:()=>ne,on:()=>oe,uI:()=>Ee,wD:()=>Be,xQ:()=>ge});var j=l(74456),_=l(51335),z=l.n(_),re=l(45025),te=l(14930);const ee=re.BI?window.env:z()(window.env,{ACCESS_COOKIE_NAME:(0,te.W5)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),pe=(0,j.A)(ee),ne=pe.closeSession,oe=pe.on,s=pe.request,Ee=pe.refreshSession,Be=pe.resetSession,ge=pe.getAuthorizationUrl,Y=pe.fetch},86534(Ze,Ce,l){"use strict";l.d(Ce,{lL:()=>q,t9:()=>ke,XC:()=>je,xD:()=>Ye,cP:()=>he,Wn:()=>u,W8:()=>U,WA:()=>me});var j=l(2998),_=l(48831),z=l.n(_),re=l(31735),te=l.n(re),ee=l(11748),pe=l.n(ee),ne=l(21863),oe=l.n(ne),s=l(12907),Ee=l.n(s),Be=l(37541),ge=l.n(Be),Y=l(50283),X=l.n(Y),xe=l(5387),Re=l(47192),le=l(76423),G=l(20376),Oe=l(50368);Re.A.register(le.A),Re.A.register(G.A);var ze;const V="#ff631e";function ce(Fe){if(Fe==null)return null;try{return(0,Oe.to)((0,Oe.qg)(Fe),"srgb")}catch{return null}}const q=z()({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),be=[[32,q.NEAR_BLACK],[64,q.DARK],[128,q.MED],[256,q.LIGHT]],ye=Fe=>{const mt=ce(Fe);if(mt==null)return 0;const[yt,$t,Qt]=mt.coords.map(as=>as*255);return .2126*yt+.7152*$t+.0722*Qt},he=Fe=>Fe?1-ye(Fe)/255>.4:!1,u=Fe=>Fe?1-ye(Fe)/255>.25:!1,Q=Fe=>{if(!Fe)return null;const mt=parseInt(Fe.substr(1),16);return Number.isNaN(mt)?null:mt.toString(16).padStart(6,"0").padStart(7,"#")},se=(Fe,mt)=>{const yt=Q(mt);return!yt||yt.length!==7?Fe:yt},U=pe()((Fe,mt)=>{const yt=(0,j.A)(mt).slice(0,3),$t=Fe>=0?yt.map(Qt=>(1-Fe)*Qt+Fe*255):yt.map(Qt=>(1+Fe)*Qt);return Pe($t)}),Pe=(Fe=[])=>"#"+Fe.slice(0,3).map(mt=>Math.min(255,Math.max(0,Math.round(mt))).toString(16).padStart(2,"0")).join(""),me=U(.9),je=Fe=>{const mt=ye(Fe);return be.find(([$t])=>$t>mt)?.[1]},$e=Fe=>Fe.toString(16).padStart(6,"0").padStart(7,"#"),ue=X()(Ee()(Number),te()(ge(),$e)),Qe=te()(ue,oe()(V));function lt(Fe,mt){if(Fe==="none"||!Fe||!mt)return{};const yt=tt(Fe,mt),$t=`${yt.toFixed(2)}:1`;let Qt=!1,ls=!1,as=!1,Dn=!1,ds=!1;return yt>=7?(Qt=!0,ls=!0,as=!0,Dn=!0,ds=!0):yt>=4.5?(Qt=!0,as=!0,ds=!0):yt>=3&&(as=!0,ds=!0),{ratio:$t,bodyTextAA:Qt,bodyTextAAA:ls,largeTextAA:as,largeTextAAA:Dn,graphicalUiComponentsAA:ds}}function tt(Fe,mt){return(0,Oe.v2)(ce(Fe),ce(mt),"WCAG21")}function dt(Fe){const[mt,yt,$t]=ze(Fe).slice(0,3).map(xt);return .2126*mt+.7152*yt+.0722*$t}function xt(Fe){const mt=Fe/255;return mt<=.04045?mt/12.92:((mt+.055)/1.055)**2.4}const Ye=Fe=>lt("#fff",Fe)["bodyTextAA"]?xe.Em.LIGHT:xe.Em.DARK,ke={[q.NEAR_BLACK]:U(.1),[q.DARK]:U(-.4),[q.MED]:U(-.2),[q.LIGHT]:U(.3)}},41367(Ze,Ce,l){"use strict";l.d(Ce,{CY:()=>ge,C_:()=>U,S6:()=>se,Yq:()=>be,by:()=>ye,fT:()=>Pe,fY:()=>q,o4:()=>he,xA:()=>pe,y4:()=>ce,yG:()=>ee});var j,_,z=l(48831),re=l.n(z),te=l(46193);const ee={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*)?$/},pe={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},ne={EDITOR:1,MANAGER:2,OWNER:3},oe={[ne.EDITOR]:"Author",[ne.MANAGER]:"Admin",[ne.OWNER]:"Owner"},s=Object.values(ne).map(me=>({id:me,title:oe[me]})),Ee=({name:me,isOnePage:je,outputType:$e})=>{const ue=je?_($e):null,Qe={Admin:ue?`${ue} manager`:"Manager",Author:ue?`${ue} editor`:"Editor",Owner:ue?`${ue} owner`:"Owner"},lt={Admin:ue?`${ue} manager`:"Course manager",Author:ue?`${ue} collaborator`:"Course collaborator",Owner:ue?`${ue} owner`:"Course owner"};return j?Qe[me]:lt[me]},Be="questionBanks",ge="2% 0px 2% 0px",Y=9,X=13,xe=27,Re=32,le=38,G=40,ze=864e5*3,V=100,ce="onePage",q={UP:"up",DOWN:"down"},be={PREVIEW:"preview-lesson"},ye=re()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),he={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},u=Object.values(he),Q={PORTRAIT:"portrait",LANDSCAPE:"landscape"},se={DARK:"#000",LIGHT:"#fff"},U={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}},Pe=["embed","map","process","sorting","timeline","video","screencast","slidecast"]},23677(Ze,Ce,l){"use strict";l.d(Ce,{G:()=>_});var j=l(5387);const _={accentContrast:j.Em.AUTO,allowSearch:!0,animateBlockEntrance:!0,blockBackgroundColor:null,blockBackgroundColorContrast:j.Em.AUTO,blockBackgroundType:j.xj.LIGHT,blockContinueCompletionType:"",blockContinueCompleteHint:"Complete the content above before moving on.",blockContinueLabel:"Continue",blockCorners:j.rE.ROUNDED,blockPaddingEnd:j.S$,blockPaddingStart:j.S$,blockTextBackgroundColor:null,blockTextBackgroundColorContrast:j.Em.AUTO,blockTextBackgroundType:j.xj.LIGHT,blockTextBodyFontSize:j.Ty,blockTextHeadingFontSize:j.Bj,blockTextPaddingEnd:j.S$,blockTextPaddingStart:j.S$,blockTextSubheadingFontSize:j.pL,buttonInlineStyle:j.qu.ROUNDED,buttonNavigationStyle:j.jq.FULL,buttonScheme:j.LE.LIGHT,colorAccent:j.Zs,compactShowLessonCount:!0,coverImageAlpha:j.HU,coverPageType:j.BL.SPLIT_LEFT_IMAGE,customColorLessonHeaderContrast:j.Em.AUTO,enableVideoPlaybackSpeed:!0,lessonHeaderImageAlpha:j._g,lessonHeaderImageColor:j.df.DARK,lessonHeaderSize:j.OX.MEDIUM,lessonHeaderStyle:j.xj.LIGHT,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,navigationSectionsExpanded:!0,navigationStyle:j.kY.LIGHT,navigationType:j.br.SIDEBAR,progressIndicatorStyle:j.Y2.THEME_DEFAULT,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,showStartButton:!0,sidebarStartsOpen:!0,themeId:j.V7.RISE_CLASSIC},z=[{label:"None (Always show button)",value:""},{label:"Complete Block Directly Above",value:"completeBlock"},{label:"Complete All Blocks Above",value:"completeAll"}]},4830(Ze,Ce,l){"use strict";l.d(Ce,{BC:()=>j,QI:()=>z,f5:()=>re,hh:()=>_});const j=ne=>ne.reduce((oe,s,Ee)=>("id"in s&&(oe[s.id]={id:s.id,index:Ee}),oe),{}),_=ne=>({...ne,percentComplete:ee({items:ne.items,key:"isComplete"})}),z=ne=>({...ne,percentComplete:ee({items:ne.items,key:"isComplete"})}),re=ne=>({...ne,percentViewed:ee({items:ne.items,key:"isViewed"})});function te({itemId:ne,isCorrect:oe,progress:s}){const Ee={...s,items:{...s.items,[ne]:{...s.items?.[ne],id:ne,index:s.items?.[ne]?.index??0,isComplete:oe,isViewed:oe,...s.items?.[ne].isCorrect===void 0?{isCorrect:oe}:{}}}};Ee.items[ne]?.isCorrect===!1&&(Ee.lastIncorrectCardId=ne);const Be=pe(Ee),ge=Be.percentComplete!==100?z(Be):Be,Y=re(ge);return Y.percentComplete===100?{...Y,isComplete:!0}:Y}function ee({items:ne,key:oe}){const s=ne??{},Ee=Object.keys(s).length,Be=Object.values(s).filter(ge=>ge?.[oe]).length;return Ee===0?0:Math.round(Be/Ee*100)}function pe(ne){const s=Object.values(ne.items||{}).filter(Ee=>Ee.isCorrect===!0).length;return{...ne,correctlyAnswered:s}}},92991(Ze,Ce,l){"use strict";l.d(Ce,{L:()=>_.L,y:()=>j.yf});var j=l(50462),_=l(7311),z=l(45025);const re="datadoghq.com",te=(0,z._$)("SERVICE_ENV"),ee=(0,z._$)("RISE_FRONTEND_SHA"),pe=(0,z._$)("RISE_FRONTEND_LOCAL_DEV")==="true"||window.location.hostname==="rise.dev.articulate.zone",ne=window.Cypress!=null,oe=z.BI?[/https:\/\/.*(\.dev)?\.rise\.(com|zone).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone).*/]},63974(Ze,Ce,l){"use strict";l.d(Ce,{$t:()=>ge,NO:()=>s,Pf:()=>Ee,WE:()=>Be,c:()=>ne});var j=l(23655),_=l.n(j);const z=()=>{if(!navigator.userAgent)return"unknown";const X=new j.UAParser(navigator.userAgent).getResult();return X.device?.model?X.device.model:X.os?.name?X.os.name:X.browser?.name?X.browser.name:"unknown"},re=()=>{if(!navigator.userAgent)return"unknown";const X=new j.UAParser(navigator.userAgent).getResult();return X.device?.model&&X.os?.version?X.os.version:X.browser?.version?X.browser.version:"unknown"},te=()=>{if(!navigator.userAgent)return"desktop";const X=new j.UAParser(navigator.userAgent).getResult();return X.device?.type==="mobile"?"mobile":X.device?.type==="tablet"?"tablet":"desktop"},ee=()=>{if(!navigator.userAgent)return"unknown";const X=new j.UAParser(navigator.userAgent).getResult();if(X.device?.vendor)return X.device.vendor;if(X.os?.name)switch(X.os.name){case"Mac OS":case"iOS":return"Apple";case"Windows":return"Microsoft";case"Android":return"Google"}return"unknown"},pe=()=>{if(!navigator.userAgent)return"unknown";const X=new j.UAParser(navigator.userAgent).getResult();return X.device?.model?X.device.model:"unknown"},ne=()=>{if(!navigator.userAgent)return"browser";const X=new j.UAParser(navigator.userAgent).getResult();return X.device?.type==="mobile"?"mobile":X.device?.type==="tablet"?"tablet":"browser"};function oe(Y){return"userAgentData"in Y}const s=()=>{if(oe(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},Ee=()=>({name:z(),version:re(),type:te(),manufacturer:ee(),model:pe()}),Be=()=>{const X=new URLSearchParams(window.location.search).get("query");return{referrer:document.referrer||null,search:X||null,url:window.location.href,path:window.location.pathname+window.location.search+window.location.hash}},ge=()=>navigator.userAgent||null},25068(Ze,Ce,l){"use strict";l.d(Ce,{Ve:()=>ge,lQ:()=>X,rq:()=>Be});var j,_=l(31735),z=l.n(_),re=l(29390),te=l.n(re),ee=l(79443),pe=l.n(ee),ne=l(36087),oe=l.n(ne),s=l(61039),Ee=l.n(s);function Be(...xe){return z()(...te()(1,xe))(pe()(xe))}function ge(xe,...Re){return oe()(...Re)(xe)}function Y(xe,...Re){return j(...Re)(xe)}const X=()=>{}},16640(Ze,Ce,l){"use strict";l.d(Ce,{B:()=>re});var j=l(94036);const _=["fromDashboard","locale"];function z(te,ee){const pe=typeof te=="function"?te(ee):te;return typeof pe=="string"?(0,j.Rr)(pe):pe}function re(te,ee){const pe=z(te,ee),ne=new URLSearchParams(ee?.search||""),oe=new URLSearchParams(pe?.search||"");for(const s of _){const Ee=ne.get(s);Ee&&!oe.has(s)?oe.set(s,Ee):oe.has(s)&&!oe.get(s)&&oe.delete(s)}return{...pe,search:oe.toString()}}},3983(Ze,Ce,l){"use strict";l.d(Ce,{Em:()=>Ee,lZ:()=>Be});var j=l(50748),_=l.n(j),z=l(14930),re=l(50851),te=l(7311);const ee=(le,G)=>((...Oe)=>{try{return le(...Oe)}catch(ze){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(ze),te.L.addError(ze),G(ze)}}),pe=le=>{const G=le.getResponseHeader("content-type")||"",Oe=G.includes("application/json");if(!(Oe||G.includes("text/")))return le.response;try{const V=new TextDecoder("utf-8").decode(le.response);try{return Oe?JSON.parse(V):V}catch{return V}}catch{return le.response}};function ne(le,G){const Oe=G.indexOf(":"),ze=G.substr(0,Oe).trim().toLowerCase(),V=G.substr(Oe+1).trim();return ze&&(le[ze]=le[ze]?le[ze]+", "+V:V),le}function oe(le){return le?le.split(`
`).reduce(ne,{}):{}}function s(le){const G=[];for(const Oe in le){const ze=le[Oe];if(!Array.isArray(ze)){G.push(encodeURIComponent(Oe)+"="+encodeURIComponent(ze));continue}for(const V of ze)G.push(s(V))}return G.join("&")}function Ee(le){let G,Oe=!1;const ze=new Promise(function V(ce,q){const be=le.signal;if(be?.aborted){q(new DOMException("Aborted","AbortError"));return}const ye=ke=>{throw q(ke),ke},he=()=>{G.abort(),q(new DOMException("Aborted","AbortError"))},u=le.data;let Q=ee(le.deserialize??_(),ye);const se=le.headers??{},U=le.json??!1,Pe=le.jwt??!1,me=le.token??null,je=le.method??"GET",$e=le.reviewEnv??!1,ue=le.onUploadProgress;let Qe=ee(le.serialize??_(),ye),lt=le.url;const tt=le.withCredentials??!1,dt=le.file,xt=le.timeout??3e3;G=new XMLHttpRequest;const Ye=setTimeout(()=>{G.abort(),q({error:"request timed out"})},xt);if(U&&(Q=ee(JSON.parse,q),Qe=ee(JSON.stringify,q),se["Content-Type"]="application/json"),je==="GET"&&u&&(lt+="?"+s(u)),Pe){const ke=me||(0,z.rS)();se.Authorization="Bearer "+ke}be?.addEventListener("abort",he),G.withCredentials=tt,G.addEventListener("abort",q),G.addEventListener("error",q),G.addEventListener("load",function(){G.status>=400?[401,403].includes(G.status)?Oe?q({error:"Unable to resume session",status:G.status}):(0,re.wD)().then(()=>{V(ce,q),Oe=!0}).catch(ke=>{te.L.addError(ke),q({error:"Unable to resume session",status:G.status})}):le.arrayBuffer?q(pe(G)):q(Q(G.response)):(ce({body:G.status===204?void 0:Q(G.response),headers:oe(G.getAllResponseHeaders()),status:G.status}),be?.removeEventListener("abort",he)),clearTimeout(Ye)}),G.upload&&typeof ue=="function"&&G.upload.addEventListener("progress",ue),G.open(je,lt),le.arrayBuffer&&(G.responseType="arraybuffer");for(const ke in se)G.setRequestHeader(ke,se[ke]);je!=="GET"&&u?G.send(Qe(u)):dt?G.send(dt):G.send()});return ze.abort=(...V)=>G.abort(...V),ze}function Be(le){return le.status===200||le.status===201?le.body:Promise.reject(le.body)}const ge=(le,G=!0)=>G?`${le}s`:le;var Y=(le=>(le[le.KB=1024]="KB",le[le.MB=1048576]="MB",le[le.GB=1073741824]="GB",le[le.TB=1099511627776]="TB",le))(Y||{});const X={KB:(le=1)=>1024*le,MB:(le=1)=>1048576*le,GB:(le=1)=>1073741824*le,TB:(le=1)=>1099511627776*le},xe={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},Re=(le,G="short")=>{const ze=Object.keys(Y).reverse().find(be=>le>=Y[be]);if(!ze)return`${le} ${ge("byte",le>1)}`;const V=le/Y[ze],ce=V%1===0?V.toFixed(0):V.toFixed(2),q=G==="long"?ge(xe[ze].long,V>1):xe[ze].short;return`${ce} ${q}`}},50271(Ze,Ce,l){"use strict";l.d(Ce,{$D:()=>u,I6:()=>be,LI:()=>xt,Ll:()=>q,Vx:()=>ye,Zd:()=>ce,dM:()=>dt,sg:()=>U});var j=l(44914),_=l.n(j),z=l(31735),re=l.n(z),te=l(56438),ee=l.n(te),pe=l(33182),ne=l.n(pe),oe=l(65301),s=l.n(oe),Ee=l(79443),Be=l.n(Ee),ge=l(83408),Y=l.n(ge),X=l(36087),xe=l.n(X),Re=l(57819),le=l.n(Re),G=l(47971),Oe=l.n(G),ze=l(53596);const V=re()(ee()(".svg"),le()("","originalUrl")),ce=s()(V,_()({width:"500rem"}),_()({})),q=ke=>{if(ke){const Fe=ke.trim();if(Fe!==""&&Fe!=='""')return ke}return""},be=ke=>q(ke)||void 0,ye=ke=>ke?"img":void 0,he=ke=>xe()(le()("","originalUrl"),Oe()("."),Be(),ne()(ke)),u=he("svg"),Q=he("gif"),se=/\.svg$/i,U=ke=>se.test(ke),Pe={process:"center",timeline:"left"},me=ke=>Pe[ke]||"left",je=(ke,Fe)=>{const mt=Y()(ke,Fe);return mt.media.image.key===Fe.media.image.key&&Object.assign(mt.media.image,{crushedKey:Fe.media.image.key,useCrushedKey:!0}),mt},$e=({src:ke,alpha:Fe})=>({alpha:Fe,media:{image:{key:ue(ke),src:ke}}}),ue=ke=>typeof ke!="string"?"":ke.startsWith("http")?new URL(ke).pathname.slice(1):ke,Qe=(({coverImageAlpha:ke,coverImage:Fe})=>({alpha:ke,src:Fe})),lt=(({lessonHeaderImageAlpha:ke,lessonHeaderImage:Fe})=>({alpha:ke,src:Fe})),tt=(ke,Fe)=>(mt,yt)=>{const $t=mt[Fe];if(mt?.theme){const Qt=yt?yt($t?.media):$t?.media;if((0,ze.uW)(Qt))return $t;const ls={...$t,media:{...Qt}},as=$e(ke(mt.theme));return je(ls,as)}else return $t},dt=tt(Qe,"coverImage"),xt=tt(lt,"lessonHeaderImage"),Ye=async ke=>{const Fe=new Image;return Fe.src=ke,await Fe.decode(),Fe}},3811(Ze,Ce,l){"use strict";l.d(Ce,{GG:()=>Ee,Mz:()=>pe,Sg:()=>s,Ww:()=>ge,X1:()=>ee,XQ:()=>re,d9:()=>z,dg:()=>oe,gL:()=>ne,p1:()=>te,vm:()=>Be});var j=l(5606),_=l.n(j);const z={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},re={KNOWLEDGE_CHECK:"KNOWLEDGE_CHECK",ORDER:"ORDER",QUIZ:"QUIZ"},te=X=>`/lessons/${encodeURIComponent(X)}`,ee="/lessons/progress-summary",pe=X=>X.type===z.SECTION,ne=X=>X.type===z.QUIZ,oe=X=>X.settings?.passToContinue===!0,s=X=>X?.items?.find(xe=>xe.family==="knowledgeCheck"&&xe.settings?.requireCorrectAnswer),Ee=X=>X.type!=="quiz"||X.settings?.asLesson!==!1,Be=X=>X!=null&&X.type==="blocks",ge=X=>{const xe=_()(X);return xe!=null&&Array.isArray(xe.items)&&(xe.items=xe.items.reduce((Re,le)=>(le!=null&&Re.push(Y(le)),Re),[])),xe},Y=X=>{const xe=_()(X);return xe!=null&&Array.isArray(xe.items)&&(xe.items=xe.items.filter(Boolean)),xe}},33495(Ze,Ce,l){"use strict";l.d(Ce,{Gv:()=>te,QD:()=>X,s0:()=>xe});var j,_,z=l(11580),re=l.n(z);const te=Re=>!!Re&&Object.prototype.toString.call(Re)==="[object Object]",ee=Array.isArray,pe=(Re,le)=>Object.fromEntries(Object.entries(le).map(Re)),ne=(Re,le,G)=>{const Oe={};for(const ze in G)Oe[Re(ze)]=le(G[ze]);return Oe},oe=Re=>Re.map(ge),s=Re=>Re.map(Y),Ee=Re=>ne(j,ge,Re),Be=Re=>ne(_,Y,Re),ge=Re=>te(Re)?Ee(Re):ee(Re)?oe(Re):Re,Y=Re=>te(Re)?Be(Re):ee(Re)?s(Re):Re,X=(Re,le)=>{const G=new Set(le),Oe={};for(const ze in Re)G.has(ze)||(Oe[ze]=Re[ze]);return Oe},xe=(Re,le)=>Object.fromEntries(Object.entries(Re).map(([G,Oe])=>le(G,Oe)))},46193(Ze,Ce,l){"use strict";l.d(Ce,{No:()=>pe,VJ:()=>ee,c3:()=>z,cZ:()=>ne,qg:()=>_});var j=l(41367);const _=Y=>Y===j.y4,z=Y=>_(Y?.type),re=(Y,X)=>xe=>z(xe)?Y:X,te=(Y,X)=>Y===j.y4&&X!==void 0,ee=Y=>te(Y?.type,Y?.experiments?.outputType)&&Y?.experiments?.outputType==="guide",pe=Y=>te(Y?.type,Y?.experiments?.outputType)&&Y?.experiments?.outputType==="presentation",ne=Y=>te(Y?.type,Y?.experiments?.outputType)&&Y?.experiments?.outputType==="video",oe=null,s={guide:"Guide",presentation:"Presentation",video:"Video to Training",microlearning:"Microlearning"},Ee=Y=>Object.prototype.hasOwnProperty.call(s,Y),Be=Y=>typeof Y=="string"&&Ee(Y)?s[Y]:s.microlearning,ge=Y=>Y?oe.includes(Y):!1},60238(Ze,Ce,l){"use strict";l.d(Ce,{h:()=>j});function j(_){return _.trim()===""}},55332(Ze,Ce,l){"use strict";l.d(Ce,{IK:()=>z,R8:()=>pe,UQ:()=>j,hB:()=>ee,iV:()=>re,sS:()=>_});const j={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"},_={SUMMARY:"SUMMARY",REMAINING:"REMAINING",ELAPSED:"ELAPSED",ELAPSED_TOTAL:"ELAPSED_TOTAL",HIDE_TIMER:"HIDE_TIMER"},z={CONTINUE:"continue",NONE:""},re={ALL:"all",NONE:"none",INCORRECT:"incorrect"},te=10,ee=80,pe=500},18718(Ze,Ce,l){"use strict";l.d(Ce,{HY:()=>_.HY,Nv:()=>X,Ls:()=>ze,GF:()=>q});var j=l(41088),_=l(18398),z=l(37617),re=l(53845);const te=u=>u!=null&&typeof u=="object"&&"map"in u&&typeof u.map=="function",ee=u=>u!=null&&typeof u=="object"&&"run"in u&&typeof u.run=="function",pe=u=>u!=null&&typeof u=="object"&&"then"in u&&typeof u.then=="function",ne=u=>u!=null&&typeof u=="object"&&"fork"in u&&typeof u.fork=="function",oe=u=>u!=null&&typeof u=="function",s=(u,Q)=>{const se=U=>s(U,Q);if(typeof u=="object"&&"type"in u&&typeof u.type=="string"){const U="meta"in u&&typeof u.meta=="object"?u.meta:void 0;return{...u,meta:{...U,origin:Q}}}if("bimap"in u&&typeof u.bimap=="function")return u.bimap(se,se);if(te(u))return u.map(se);if(pe(u))return u.then(se);if(oe(u))return function(Pe,me){return u(je=>Pe(se(je)),me)}};function Ee(){return({dispatch:u,getState:Q})=>se=>U=>{if(oe(U))return U(u,Q);if(pe(U))return U.then(u);if(ne(U)){U.fork(u,u);return}return ee(U)?u(U.run()):te(U)?U.map(u):se(U)}}function Be(){return[Ee()]}var ge=l(26372);const Y=_.Zz;function X(u,Q){const se=(0,_.y$)(u,Q,Y((0,_.Tw)(...Be()))),U=xe(),Pe=Re(),me=le(),je=G(),$e=Oe();return{Provider:z.Kq,connect:U,connectBase:Pe,dispatch:se.dispatch,store:se,useDispatch:me,useDispatchWithOrigin:je,useSelector:$e}}function xe(){return function(Q,se,U,Pe){return function(me){return(0,z.Ng)(Q,se,U,Pe)((0,re.BN)(me))}}}function Re(){return function(Q,se,U,Pe){return function(me){return(0,z.Ng)(Q,se,U,Pe)(me)}}}function le(){return z.wA}function G(){return function(Q){const se=(0,z.wA)();return ge.useCallback(Pe=>se(s(Pe,Q)),[se,Q])}}function Oe(){return function(Q,se=z.bN){const U=ge.useContext(re.q2),Pe=ge.useContext(re.R6),me=ge.useRef(void 0),je=(0,j.S)(),$e=(0,z.d4)(Q,se),ue=!je&&U&&Pe?.startsWith?.("exit");return ue||(me.current=$e),ue&&me.current!==void 0?me.current:$e}}const ze=xe(),V=le(),ce=Oe(),q=Oe;var be=l(12100),ye;const he=()=>ye(()=>location.href="/")},45025(Ze,Ce,l){"use strict";l.d(Ce,{As:()=>s,BI:()=>z,Hm:()=>Ee,NS:()=>oe,PJ:()=>ne,Wk:()=>Be,_$:()=>_,ih:()=>ge,mZ:()=>te,o1:()=>pe});const{Runtime:j}=window,_=Y=>window.env?.[Y],z=!1,re=null,te="Rise 360",ee=Y=>`${_("CDN_USER_CONTENT_URI")}/${Y}`,pe=Y=>{const X=Y||"",xe=j?.resolvePath!=null?j.resolvePath.bind(j):ee;return X.startsWith("http")||X.startsWith("data:")||X.startsWith("//")?X:xe(X)||X},ne=Y=>j?.resolveFontPath!=null?j.resolveFontPath(Y):`${Y.default?_("CDN_URI"):_("CDN_USER_CONTENT_URI")}/${Y.key}`,oe=()=>{j?.exit!=null&&j.exit()},s=()=>j?.isComplete!=null?j.isComplete():null,Ee=()=>j?.isExport!=null?j.isExport():!1;function Be(){if(j?.isExport!=null){const Y=window.partnerContent?.content;return j.isExport()&&!!Y}return!1}const ge=()=>{if(j?.sendTouch!=null)return j.sendTouch()}},5387(Ze,Ce,l){"use strict";l.d(Ce,{xj:()=>q,rE:()=>ke,Dw:()=>he,HC:()=>ye,qu:()=>Fe,LE:()=>je,BL:()=>ue,Zs:()=>oe,S$:()=>s,Ty:()=>Ee,Bj:()=>Be,pL:()=>ge,Ht:()=>xe,zV:()=>Re,HU:()=>Y,_g:()=>X,df:()=>yt,KJ:()=>ze,qH:()=>V,OX:()=>be,AY:()=>$e,Py:()=>se,b$:()=>U,qB:()=>Pe,kY:()=>Q,br:()=>u,jq:()=>mt,Y2:()=>me,RE:()=>xt,Em:()=>Ye,V7:()=>ne});var j=l(48831),_=l.n(j),z=l(37262),re=l.n(z);function te(Qt){return _()(Qt)}class ee extends Error{constructor(ls="Assert Error",as){super(ls,as)}}function pe(Qt,ls="Assertion Error"){if(!Qt)throw new ee(ls)}const ne={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},oe="#ff631e",s=3,Ee=17,Be=32,ge=24,Y=50,X=.6,xe="right",Re="rounded",le=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],G="#ffffff",Oe=re()("color",le),ze="#000",V="#fff",ce="Rise",q=te({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),be=te({LARGE:null,MEDIUM:null,SMALL:null}),ye=te({STEPPED:null,CONTINOUS:null}),he=_()({NUMBERS:null,DOTS:null,NONE:null}),u=te({COMPACT:null,OVERLAY:null,SIDEBAR:null}),Q=_()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),se=_()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),U={FREE:"free",RESTRICTED:"restricted"},Pe=_()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),me=_()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),je=te({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),$e=te({FULL:null,FLOATING:null,FLOATING_FULL:null}),ue=te({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,VIDEO:null,WHITE:null}),Qe={default:[{text:"Centered",type:ue.CENTERED},{text:"Centered overlay",type:ue.CENTERED_OVERLAY},{text:"Left",type:ue.LEFT},{text:"Left overlay",type:ue.LEFT_OVERLAY},{text:"Split left image",type:ue.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ue.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:ue.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:ue.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:ue.CENTERED},{text:"Centered overlay",type:ue.CENTERED_OVERLAY},{text:"Left",type:ue.LEFT},{text:"Left overlay",type:ue.LEFT_OVERLAY},{text:"Split left image",type:ue.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ue.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:ue.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:ue.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:ue.CENTERED},{text:"Centered overlay",type:ue.CENTERED_OVERLAY},{text:"Left",type:ue.LEFT},{text:"Left overlay",type:ue.LEFT_OVERLAY},{text:"Split left",type:ue.SPLIT_LEFT},{text:"Split right",type:ue.SPLIT_RIGHT},{text:"Split left image",type:ue.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ue.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:ue.CENTERED},{text:"Centered overlay",type:ue.CENTERED_OVERLAY},{text:"Centered image",type:ue.CENTERED_IMAGE},{text:"Centered accent tint",type:ue.CENTERED_ACCENT_TINT},{text:"Split left image",type:ue.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ue.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:ue.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:ue.TWO_THIRDS_RIGHT_IMAGE}]},lt=null,tt=null,dt=[{text:"Image",type:ue.IMAGE},{text:"Accent",type:ue.ACCENT},{text:"White",type:ue.WHITE}],xt={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},Ye=te({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),ke=te({ROUNDED:null,SQUARED:null}),Fe=_()({ROUNDED:null,SQUARED:null}),mt=_()({FLOATING:null,FULL:null}),yt=_()({ACCENT:null,DARK:null,LIGHT:null}),$t=[{value:Ye.AUTO,label:"Auto"},{value:Ye.DARK,label:"Dark"},{value:Ye.LIGHT,label:"Light"}]},88022(Ze,Ce,l){"use strict";var j={};l.r(j),l.d(j,{CoverDescription:()=>wb,CoverDetailsContentHeading:()=>My,CoverDueDate:()=>Pb,CoverHeader:()=>ey,CoverLayout:()=>oy,LessonHeader:()=>fy,LessonNavFinish:()=>vy,LessonNavNext:()=>gy,LessonNavPrevious:()=>xy,LessonProgressGraphic:()=>Ny,NavCompactHeaderCounter:()=>Oy,NavCompactHeaderProgress:()=>By,NavCompactOutline:()=>Dy,OverviewListItem:()=>Hy,OverviewListSectionTitle:()=>Fy,Progress:()=>Py});var _={};l.r(_),l.d(_,{AlignLeft:()=>$y,ArrowDown:()=>J1,ArrowLeft:()=>Vy,ArrowRight:()=>zy,ArrowUp:()=>mf,Category:()=>B4,ChevronDown:()=>Uy,ChevronUp:()=>_y,Favorite:()=>q0,LessonsComplete:()=>Pd,LessonsRequirement:()=>C2,QuestionBox:()=>Wy,QuizFailed:()=>gf,QuizPassed:()=>Pd,QuizRequirement:()=>K0,Search:()=>Gy,ToggleDown:()=>Ky,Touch:()=>Qy,VideoCamera:()=>Zy,X:()=>Yy});var z={};l.r(z),l.d(z,{components:()=>j,icons:()=>_});var re={};l.r(re),l.d(re,{CoverCourseInfo:()=>WL,CoverDetailsSection:()=>YL,CoverHeader:()=>lE,CoverLayout:()=>hE,LessonHeader:()=>vE,LessonProgressGraphic:()=>yE,NavSidebarHeader:()=>LE,OverviewListItemLinkContent:()=>XE,Progress:()=>JE});var te={};l.r(te),l.d(te,{ArrowDown:()=>wf,ArrowLeft:()=>eT,ArrowRight:()=>qE,ArrowUp:()=>wf,ChevronDown:()=>Pf,ChevronUp:()=>Pf,Favorite:()=>q0,LessonsComplete:()=>Mf,LessonsRequirement:()=>Of,QuizFailed:()=>sT,QuizPassed:()=>Mf,QuizRequirement:()=>Of,Search:()=>tT,ToggleDown:()=>nT,X:()=>oT});var ee={};l.r(ee),l.d(ee,{components:()=>re,icons:()=>te});var pe={};l.r(pe),l.d(pe,{CoverDescription:()=>iT,CoverDetails:()=>lT,CoverGraphic:()=>Yc,CoverHeader:()=>CT,CoverLayout:()=>yT,CoverProgress:()=>OT,CoverSVG:()=>xa,LessonHeader:()=>FT,LessonProgressGraphic:()=>_T,NavSidebarHeaderProgress:()=>GT});var ne={};l.r(ne),l.d(ne,{AlignLeft:()=>XT,ArrowDown:()=>KT,ArrowLeft:()=>QT,ArrowRight:()=>ZT,ArrowUp:()=>YT,ChevronDown:()=>Kf,ChevronUp:()=>JT,Favorite:()=>q0,LessonsComplete:()=>Pd,LessonsRequirement:()=>C2,QuestionBox:()=>qT,QuizFailed:()=>gf,QuizPassed:()=>Pd,QuizRequirement:()=>K0,Search:()=>eS,ToggleDown:()=>Kf,Touch:()=>tS,VideoCamera:()=>sS,X:()=>nS});var oe={};l.r(oe),l.d(oe,{components:()=>pe,icons:()=>ne});var s=l(16881),Ee=l(94864),Be=l(16188),ge=l(92566),Y=l(12140),X=l(86347),xe=l(57561),Re=l(57129),le=l(45151),G=l(67406),Oe=l(305),ze=l(66883),V=l(31975),ce=l(50371),q=l(78451),be=l(88402),ye=l(83988),he=l(48607),u=l(26372),Q=l(75762),se=l(94036),U=l(92471),Pe=l(14930);const me="_course_token",je=new URLSearchParams(window.location.hash.substr(1)),$e=je.get(me);$e&&(je.delete(me),window.history.replaceState(null,null,`#${je.toString()}`));const ue=t=>{const{data:{method:e,id:n,jsonrpc:o}}=t;if(o==="2.0"&&e==="getBearerToken"){const r=$e||(0,Pe.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",ue);const Qe=(0,u.createContext)({});function lt(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 tt({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 dt({children:t}){const[{politeMessage1:e,politeMessage2:n,assertiveMessage1:o,assertiveMessage2:r},a]=(0,u.useReducer)(lt,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),i=(0,u.useMemo)(()=>({announcePolite:c=>{a({type:"polite",message:c})},announceAssertive:c=>{a({type:"assertive",message:c})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,s.jsxs)(Qe.Provider,{value:i,children:[(0,s.jsx)(tt,{ariaLive:"polite",id:"polite-announcer1",message:e}),(0,s.jsx)(tt,{ariaLive:"polite",id:"polite-announcer2",message:n}),(0,s.jsx)(tt,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,s.jsx)(tt,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),t]})}function xt(){return(0,u.useContext)(Qe)}var Ye=l(70853),ke=l(63323),Fe=l(50271),mt=l(26372);function yt(t,e){const n=(0,Fe.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,c=o?t.height:void 0;return(0,s.jsx)("img",{...t,decoding:r,height:c,loading:a,ref:e,width:i})}const $t=mt.forwardRef(yt),Qt={ImageEagerOrLazy:$t},ls=Object.assign((0,u.createContext)(Qt),{displayName:"BundleContext"});function as({children:t,...e}){return(0,s.jsx)(ls.Provider,{value:e,children:t})}function Dn(){return null}function ds(t){function e(n){const r=(0,u.useContext)(ls)[t]??Dn;return(0,s.jsx)(r,{...n})}return e.displayName=`BundleComponent(${t})`,e}var oo=l(61894),bn=l(59803),Ss=l.n(bn),Te=l(47615),ro=l(82031),J=l.n(ro),ht=l(9252),ws=l(13061),_e=l(45025);const ao=`${(0,_e._$)("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,Ro=`${(0,_e._$)("CDN_URI")}/assets/rise/assets/error_x.svg`,Ir=`${(0,_e._$)("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,un="downloading",yn="error",Xs="ok",io="contained",Nt=({type:t})=>{const[e]=(0,u.useState)(()=>Ss()("certdownload-")),[n,o]=(0,u.useState)(Xs),r=(0,Te.A)(n),a=(0,u.useRef)(),i=(0,ht.useLabelsMap)(),c=`${e}-live`,h=J()("certificateDownload",{certificateDownloadContained:t===io}),d=(0,u.useCallback)(()=>{o(un)},[]);return(0,u.useEffect)(()=>(n===un&&r!==un&&(0,ws.gj)().then(()=>{o(Xs)}).catch(m=>{(0,oo.FZ)(m)?o(Xs):o(yn)}),()=>{(0,ws.G7)()}),[r,n]),(0,u.useEffect)(()=>{a.current&&(n===yn&&r!==yn||n===Xs&&(r===yn||r===un))&&a.current.focus()},[r,n]),(0,s.jsxs)("div",{className:h,children:[(0,s.jsxs)("div",{"aria-live":"polite",id:c,role:"status",children:[n===un&&(0,s.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,s.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:Ir,width:"15"}),i?.certificateDownloadInProgress||"Downloading..."]}),n===yn&&(0,s.jsxs)("span",{className:"certificateDownload__error",children:[(0,s.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:Ro,width:"15"}),(0,s.jsx)("span",{className:"visually-hidden",children:i?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(n===Xs||n===yn)&&(0,s.jsxs)("button",{"aria-controls":c,className:"certificateDownload__btn",onClick:d,ref:a,type:"button",children:[n===Xs&&t===io&&(0,s.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:ao,width:"15"}),n===Xs?i?.certificateDownload||"Download certificate":i?.certificateRetryDownload||"Retry download"]})]})},Cs=()=>(0,s.jsx)(Nt,{type:io}),co=(0,u.memo)(Nt);var Et=l(47296),Zt=l(53596),Ln=l(23677),ps=l(46193);const En={BLOCKS:"blocks",QUIZ:"quiz",SECTION:"section"},wo=t=>t?.type===En.QUIZ,Tn=t=>t?.type===En.QUIZ;var w=l(5387),jt=l(80303),lr=l(87755);const Po=(t,e,n)=>(0,Zt.uW)(t)&&e?n?.[e]?.[t.l10nId]:void 0,lo=(t,e,n,o)=>{if(!(0,Zt.uW)(t))return t;if(!e||!n||!o)return;const r=Po(t,e,o);if(r!==void 0)return r;const a=Po(t,n,o);if(a!==void 0)return a;const i=Xr(t,o);return i.length>0?i[0].value:void 0},Mo=(t,e,n,o)=>!e||!n||!o?t:(0,lr.v9)(t).reduce((r,{l10nId:a,path:i})=>{const c=lo({l10nId:a},e,n,o),h=(0,lr.re)(i,c,r);return h.type==="accepted"?h.result:r},t),Da=(t,e,n)=>Mo(t,e,Fs(n),hn(n)),Ve=(t,e,n)=>lo(t,e,Fs(n),hn(n)),pt=(t,e,n)=>Po(t,e,hn(n));function Yt(t,e){return e?.find(n=>n.locale===t)}function Is(t){return t?.l10n?.locales??[]}function Fs(t){return t?.l10n?.defaultLocale}function dr(t,e){const n=Fs(e);return!!(t&&n&&t!==n)}function hn(t){return t?.l10n?.translations??{}}function Xr(t,e){return(0,Zt.uW)(t)?Object.keys(e).flatMap(n=>{const o=Po(t,n,e);return o?{locale:n,value:o}:[]}):[]}const Ha=(t,e)=>Xr(t,hn(e)),Xt=t=>(0,Zt.uW)(t)?t.l10nId:void 0;function Jr(t){return t?.l10n?.localeSelectorOptions}function Fa(t){return t?.l10n?.languageCodeMetadata}function Vl(t){return t?.l10n?.showLocaleSelector}const Nr=()=>(0,Et.Mz)(e=>e,(e,n)=>n,(e,n,o)=>Fs(o),(e,n,o)=>hn(o),lo);function fs(t){const{currentLocale:e}=(0,jt.nY)(),n=(0,u.useMemo)(()=>Nr(),[]);return(0,U.d4)(o=>n(t,e,o))}const st=(0,Et.Mz)(t=>t,(t,e)=>hn(e),(t,e)=>e?.[t]);function Ns(){const{currentLocale:t}=(0,jt.nY)();return(0,U.d4)(e=>st(t,e))}const Oo=(0,Et.Mz)(t=>t.course?.title,Fs,hn,(t,e,n)=>{if(t)return Po(t,e,n)});function rc(){return(0,U.d4)(Oo)}function Bo(){return(0,U.d4)(t=>t.l10n)}var ac=l(26372);function jr(t){return t?.search}function uo(){return(0,U.d4)(jr)}function kr(t){return jr(t)?.activeLessons}const Va=(0,Et.Mz)(kr,t=>t?t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{}):{});function ur(){return(0,Et.Mz)(t=>t,(t,e)=>Va(e),(t,e)=>e?.[t])}function ic(t){const e=ac.useMemo(()=>ur(),[]);return(0,U.d4)(n=>e(t,n))}function Wt(t){return t?.course}function Lt(){return(0,U.d4)(t=>Wt(t))}function Do(t){return Wt(t)?.navigationMode}function qr(t){return Wt(t)?.trackingQuizId}function mn(){const t=Lt();return fs(t?.title)}function ea(t){return Wt(t)?.type}function za(){return(0,U.d4)(t=>ea(t))}function $a(t){const e=Wt(t);return(0,ps.c3)(e)}function Ua(t){const e=Wt(t);return(0,Zt.HX)(e)}const _a=t=>t.filter(e=>e.type!=="section");function pn(){const t=Lt(),e=uo();return(0,u.useMemo)(()=>e?.active&&e?.lessons?.length>0?{...t,lessons:e.lessons,lessonsOnly:_a(e.lessons)}:t,[t,e?.active,e?.lessons])}const hr=(0,Et.Mz)(Wt,t=>(t?.lessons??[]).filter(wo).some(e=>e.settings?.skipLessonsIfPassed&&e.settings?.skipToLessonId));function mr(t){const e=Do(t);return hr(t)?w.b$.RESTRICTED:e??w.b$.FREE}function Ar(){return(0,U.d4)(mr)}function Wa(t){return Wt(t)?.theme?.buttonNavigationStyle??Ln.G.buttonNavigationStyle}function Ga(){return(0,U.d4)(Wa)}var ta=l(31735),Xe=l.n(ta),cc=l(41133),lc=l.n(cc),Ka=l(62915),dc=l.n(Ka),Qa=l(95353),Js=l.n(Qa),sa=l(54708),Ks=l.n(sa),uc=l(84046),Ho=l.n(uc),Za=l(54425),Sn=l.n(Za),Ya=l(71023),Fo=l.n(Ya),hc=l(84134),xs=l.n(hc),na=l(79443),Hn=l.n(na),Xa=l(8695),us=l.n(Xa),oa=l(5822),ho=l.n(oa),mc=l(45976),js=l.n(mc),zl=l(89837),wt=l.n(zl),$l=l(97110),Vo=l.n($l),Ja=l(58862),Gt=l.n(Ja),pc=l(77592),Bt=l.n(pc),qa=l(5006),qe=l.n(qa);const ra=({course:t,courseProgress:e})=>!t||!e?{}:t.lessons.filter(r=>!!r.settings?.passToContinue).filter(r=>!e.lessons[String(r.id)]?.passed)[0]??{},Ul=({courseProgress:t,lesson:e,restrictingQuiz:n})=>{if(!t)return{};const o=c=>t.lessons[String(c)]?.index,r=o(e.id),a="id"in n?n.id:void 0,i=a!=null?o(a):void 0;return r!==void 0&&i!==void 0&&r>i?n:{}};var Ut=l(2949),Tt=l(3811);const Le=Xe()(ho(),xs()),We=Xe()(Js()(Tt.GG),Gt()("lessonsOnly")),kt=({course:t,courseProgress:e})=>Ks()(hs(e))(t.lessonsOnly),hs=t=>e=>ho()(js()(["lessons",e.id,"isComplete"],t)),ms=({lesson:t,currentLesson:e})=>t&&Bt()("id",t.id,e),qs=({course:t,lesson:e})=>Bt()("id",e.id,Sn()(Gt()("lessonsOnly",t))),aa=({course:t,lesson:e})=>Bt()("id",e.id,Hn()(Gt()("lessonsOnly",t))),Rr=Xe()(ho(),Bt()("type","section")),wr=({lesson:t,courseProgress:e})=>wt()(!1,["lessons",t.id,"isComplete"],e),ia=({course:t,courseProgress:e,lesson:n,restrictingQuiz:o})=>{const r=Ul({courseProgress:e,lesson:n,restrictingQuiz:o}),a=(0,Ut.bQ)(t),i=a||Le(r),c=kt({course:t,courseProgress:e}),h=Rr(n)&&ho()(wr({lesson:n,courseProgress:e}));return{isRestricted:i&&h&&ho()(ms({lesson:n,currentLesson:c})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:c}},_l=({labels:t,restrictions:e})=>{const{lessonRestricted:n,quizRequirePassingScore:o}=t,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:i}=e,c=i&&dc()("id",a,i);return!r||r&&c?a.title?o.replace("quiz",`"${a.title}"`):o:n},ei=lc()(t=>Ho()(qe()(Vo()(["id"],t||{})))),ti=({course:t,lesson:e})=>Xe()(Fo(),ei(e),We)(t),si=({course:t,lesson:e})=>!aa({course:t,lesson:e})&&t.lessonsOnly[Fo()(ei(e,t.lessonsOnly))],fc=Xe()(us(),We),ni=t=>typeof t=="object"&&Object.keys(t).length>0,vc=t=>t===void 0||t===!1,p0=t=>vc(t?.isComplete),f0=t=>t.find(([e,n])=>p0(n)),v0=t=>{const e=Object.entries(t),[n]=f0(e)||[];return n},g0=t=>ni(t)?v0(t):void 0,gc=(t,e,n)=>{if(!n)return{outOfAttempts:!1,quizPassed:!0};const o=js()(["lessons",n],t),r=wt()(-1,["settings","retryCount"],e),a=wt()(0,["retryAttempts"],o),i=js()(["passed"],o);return{outOfAttempts:js()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:i}};function ca(t){return t.courseProgress}function C0(t){return t.courseProgress?.currentLesson??""}function Wl(t){return t.courseProgress?.percentComplete??0}const Gl=(0,Et.Mz)(qr,Wt,(t,e)=>{const{lessons:n}=e;return Array.isArray(n)?n.find(({id:o,type:r})=>r==="quiz"&&o===t)??null:null}),ie=(0,Et.Mz)(ca,Gl,(t,e)=>e?gc(t,e,e.id):null);function He(t){const e=ca(t);return(0,Ye.Wk)()?e?.percentComplete===100:!!(0,Ye.As)()}function nt(t){return t.courseProgress?.lessons}function Ct(t,e){if(t!=null)return nt(e)?.[t]}function ss(){return(0,U.d4)(ca)}function bs(){return(0,U.d4)(C0)}function Fn(){return(0,U.d4)(Wl)}function x0(){return(0,U.d4)(Gl)}function Cc(){return(0,U.d4)(ie)??{outOfAttempts:!1,quizPassed:!1}}function b0(){return(0,U.d4)(He)}function mo(t){return(0,U.d4)(e=>Ct(t,e))}function oi(t){const e=mo(t);if(e?.type==="quiz")return e}const RC=(0,Et.Mz)(nt,t=>t?Object.values(t).some(e=>e.type==="quiz"&&e.activeIndex!==void 0&&!e.isComplete):!1);function wC(){return(0,U.d4)(RC)}const Np=t=>t>9999?1:t,PC=({current:t,restart:e,restartValue:n})=>{const o=Number(n),r=Np(Number.isInteger(o)&&o>0?o:1),a=e?r:t+1;return Np(a)},MC=(t,e)=>{if(e.family==="divider"&&e.variant==="numbered divider"){const n=e.settings??{},o=PC({current:t.currentNumber,restart:n.restartNumbering,restartValue:n.restartNumberingValue});return{map:{...t.map,[e.id]:o},currentNumber:o}}return t},jp=t=>(0,Tt.Mz)(t),Kl=t=>(0,Tt.gL)(t),OC=t=>(0,Tt.dg)(t),BC=t=>!!(0,Tt.Sg)(t);function la(){return(0,Et.Mz)(t=>t,(t,e)=>wp(e),(t,e)=>e[String(t)])}function Vs(t){const e=(0,u.useMemo)(()=>la(),[]);return(0,U.d4)(n=>e(t,n))}function ri(t){const e=Vs(t);return fs(e?.title)}function DC(){const t=la();return(0,Et.Mz)(t,e=>jp(e))}function kp(){const t=y0();return(0,Et.Mz)(e=>e,(e,n)=>t(n),(e,n)=>mr(n),(e,n)=>$C(n),(e,n)=>UC(n),(e,n)=>nt(n),(e,n,o,r,a,i)=>{const c=i?.[e],h=i?.[n];if(e!==n&&!c?.isComplete&&c?.index>h?.index){const d=i?.[r?.id]?.index??1/0,m=o==="restricted"?h?.index??1/0:i?.[a?.id]?.index??1/0;if(c?.index>Math.min(d,m))return m<d?o==="restricted"?{type:Tt.XQ.ORDER}:{type:Tt.XQ.KNOWLEDGE_CHECK}:{type:Tt.XQ.QUIZ,data:r.title}}return null})}function xc(t){const e=(0,u.useMemo)(()=>kp(),[]);return(0,U.d4)(n=>e(t,n))}function y0(){return(0,Et.Mz)(nt,t=>t?g0(t):void 0)}function HC(){const t=y0();return(0,Et.Mz)(e=>e,(e,n)=>t(n),(e,n)=>wp(n),(e,n)=>Fs(n),(e,n)=>hn(n),(e,n,o,r,a)=>{if(n)return Mo(o[n],e,r,a)})}function FC(){const t=la();return(0,Et.Mz)(t,Ct,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&(!r||Kl(e)&&!a)})}function Ap(t){const e=(0,u.useMemo)(()=>FC(),[]);return(0,U.d4)(n=>e(t,n))}function VC(){const t=la();return(0,Et.Mz)(t,Ct,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&r&&(!Kl(e)||a)})}function Rp(t){const e=(0,u.useMemo)(()=>VC(),[]);return(0,U.d4)(n=>e(t,n))}const L0=(0,Et.Mz)(Wt,t=>t?.lessons??[]),wp=(0,Et.Mz)(L0,t=>t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{})),ai=(0,Et.Mz)(Wt,t=>t?.lessonsOnly??[]),zC=(0,Et.Mz)(ai,t=>t.reduce((e,n,o)=>(e[n.id]=o+1,e),{}));function Pp(){return(0,U.d4)(t=>zC(t))}const Mp=(0,Et.Mz)(ai,t=>t.filter(e=>(0,Tt.GG)(e))),E0=(0,Et.Mz)(Mp,t=>t.length),T0=(0,Et.Mz)(L0,t=>t.reduce((e,n)=>{const o=e[e.length-1];return jp(n)||o==null?e.push([n.id]):o.push(n.id),e},[])),$C=(0,Et.Mz)(ai,nt,(t,e)=>t.find(n=>Kl(n)&&OC(n)&&!e?.[n.id]?.isComplete)),UC=(0,Et.Mz)(ai,nt,(t,e)=>t.find(n=>!Kl(n)&&BC(n)&&!e?.[n.id]?.isComplete));function Ql(t){const e=(0,u.useMemo)(DC,[]);return(0,U.d4)(n=>e(t[0],n))}function S0(t){const e=(0,u.useMemo)(()=>la(),[]),n=(0,u.useMemo)(()=>kp(),[]),o=Ar();return(0,U.d4)(r=>{const a=Wt(r),i=e(t,r),c=Ct(t,r),d=n(t,r)?.type!=null;return o!==w.b$.RESTRICTED&&a?.markComplete&&!d&&i?.type!==Tt.d9.QUIZ&&!(_e.BI&&c?.percentComplete===100)})}const I0=(t,e)=>e.findIndex(n=>n.id===t);function Op(){return(0,Et.Mz)(t=>t,(t,e)=>ai(e),(t,e)=>{if(t==="progress-summary")return e[e.length-1];const o=I0(t,e)-1;return e[o]})}function Bp(){return(0,Et.Mz)(t=>t,(t,e)=>ai(e),(t,e)=>{const o=I0(t,e)+1;return e[o]})}function Dp(t){return(0,Et.Mz)(t,(e,n)=>Mp(n),(e,n)=>I0(e?.id||"",n)+1)}function _C(){return Dp(Bp())}function WC(){return Dp(Op())}function GC(t){const e=(0,u.useMemo)(()=>Bp(),[]);return(0,U.d4)(n=>e(String(t),n))}function KC(t){const e=(0,u.useMemo)(()=>_C(),[]);return(0,U.d4)(n=>e(String(t),n))}function QC(){return(0,U.d4)(E0)}function Hp(){return(0,U.d4)(t=>T0(t))}function ZC(){const t=y0();return(0,Et.Mz)(He,t,qr,(e,n,o)=>{const r=!!n,a=o!=null;return e||!r&&!a})}function YC(){const t=(0,u.useMemo)(()=>ZC(),[]);return(0,U.d4)(e=>t(e))}function XC(){const t=Lt(),e=ss();return(0,u.useMemo)(()=>{if(!t||!e||!t.lessonsOnly)return[];const n=ra({course:t,courseProgress:e});return t.lessonsOnly.filter(o=>{const{isRestricted:r}=ia({course:t,courseProgress:e,lesson:o,restrictingQuiz:n});return r}).map(o=>o.id)},[t,e])}const JC=t=>t?.items?.reduce?.(MC,{map:{},currentNumber:0})?.map||{},qC=t=>{const e=(0,u.useMemo)(()=>la(),[]),n=(0,U.d4)(o=>e(t,o));return(0,u.useMemo)(()=>JC(n),[n])},e4=({blockId:t,lessonId:e})=>qC(e)?.[t];function t4(t){const n=Lt()?.lessonsOnly??[],o=n.findIndex(a=>a.id===t);return(o>=0?n[o+1]:void 0)?.id??null}function s4(t){const e=Vs(t),n=Lt(),o=e?.settings,r=n?.lessonsOnly;return(0,u.useMemo)(()=>{const a=o?.skipToLessonId,i=a&&r?.some(c=>c.id===a)?a:void 0;return{continueType:o?.continueType??"",retryCount:Number(o?.retryCount??-1),skipLessonsIfPassed:o?.skipLessonsIfPassed??!1,skipToLessonId:i}},[o,r])}function Qs(t){return(0,s.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...t})}var Fp,n4;const oY=t=>Fp(n4,{...t,viewBox:"0 0 8 8",children:Fp("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 "})}),rY=null;var N0,o4,r4;const aY=t=>N0(r4,{viewBox:"0 0 10 10",...t,children:o4("g",{fillRule:"evenodd",children:[N0("path",{d:"M0 4.107h10v2H0z"}),N0("path",{d:"M4 0h2v10H4z"})]})}),iY=null;var j0,a4;const cY=({width:t="18",height:e="18",className:n})=>j0("svg",{"aria-hidden":"true",className:a4("i i-alert",n),focusable:"false",height:e,viewBox:"0 0 18 18",width:t,children:j0("g",{fill:"none",fillRule:"evenodd",stroke:"#DE1D1D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:j0("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),lY=null;function i4(t){return(0,s.jsxs)(Qs,{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 c4,Zl;const dY=({width:t="20",height:e="20"})=>c4("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:[Zl("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"}),Zl("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"}),Zl("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"}),Zl("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"})]}),uY=null;var Vp,l4;const hY=({width:t="15",height:e="15",className:n})=>Vp("svg",{"aria-hidden":"true",className:l4("i i-all-blocks",n),focusable:"false",height:e,viewBox:"0 0 15 15",width:t,children:Vp("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"})}),mY=null;var zp,d4;const pY=t=>zp(d4,{...t,viewBox:"0 0 15 15",children:zp("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"})}),fY=null;var u4,$p,h4;const vY=({width:t="24",height:e="16",leftMovement:n="0",className:o})=>u4("svg",{"aria-hidden":"true",className:h4("i i-alt",o),focusable:"false",height:e,style:{marginLeft:n},viewBox:"0 0 24 16",width:t,children:[$p("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"}),$p("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"})]}),gY=null;var m4,Up;const CY=({className:t,width:e="20",height:n="20",focusable:o="false"})=>m4("svg",{className:t,fill:"none",focusable:o,height:n,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[Up("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"}),Up("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"})]}),xY=null;var p4,k0,f4;const bY=({title:t="Export",desc:e="An arrow bending itself to the right",width:n="16",height:o="13",className:r,focusable:a="false"})=>p4("svg",{className:f4("i",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[k0("title",{children:t}),k0("desc",{children:e}),k0("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"})]}),yY=null;var _p,v4;function LY(t){return _p(v4,{viewBox:"0 0 384 512",...t,children:_p("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 g4,Wp,C4;function EY(t){return g4(C4,{viewBox:"0 0 22 22",...t,children:[Wp("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"}),Wp("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 x4,A0,b4;const TY=({title:t="Export",desc:e="An arrow pointing right",width:n="16",height:o="8",className:r,focusable:a="false",decorative:i})=>x4("svg",{"aria-hidden":i?"true":"false",className:b4("i",r),focusable:a,height:o,viewBox:"0 0 16 8",width:n,children:[A0("title",{children:t}),A0("desc",{children:e}),A0("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"})]}),SY=null;var Gp,y4;function IY(t){return Gp(y4,{viewBox:"0 0 384 512",...t,children:Gp("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 L4,Kp,E4;function NY(t){return L4(E4,{viewBox:"0 0 22 22",...t,children:[Kp("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"}),Kp("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 Qp,T4;const jY=t=>Qp(T4,{viewBox:"0 0 10 12",...t,children:Qp("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"})}),kY=null;var Zp,bc,S4;const AY=({title:t="Background Image",desc:e="Background Image",width:n="18",height:o="18",className:r,focusable:a="false"})=>Zp("svg",{className:S4("i i-background-image",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[bc("title",{children:t}),bc("desc",{children:e}),Zp("g",{children:[" ",bc("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"})," ",bc("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"})," ",bc("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"})," "]})]}),RY=null;var I4,R0,N4;const wY=({title:t="Bank",desc:e="A building with four columns",width:n="16",height:o="16",className:r,focusable:a="false"})=>I4("svg",{className:N4("i i-bank",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[R0("title",{children:t}),R0("desc",{children:e}),R0("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"})]}),PY=null;var j4,Yp,k4;function MY(t){return j4(k4,{fill:"none",viewBox:"0 0 14 14",...t,children:[Yp("rect",{height:"8.3",stroke:"currentColor",strokeWidth:"1.5",width:"8.3",x:"0.75",y:"0.75"}),Yp("rect",{height:"8.3",rx:"1.35",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",width:"8.3",x:"4.9502",y:"4.9502"})]})}var A4,yc,R4;function OY(t){return A4(R4,{viewBox:"0 0 14 15",...t,children:[yc("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"}),yc("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"}),yc("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"}),yc("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"}),yc("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 w4,Yl,P4;const BY=({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"})=>w4("svg",{className:P4("i i-blockTemplateAllAuthors",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[Yl("title",{children:t}),Yl("desc",{children:e}),Yl("circle",{cx:"14.963",cy:"14.963",fill:"#E9E9E9",r:"14.963"}),Yl("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"})]}),DY=null;var Xl,po,M4;const HY=({title:t="Check Mark",desc:e="A circle with a check mark inside",width:n="112",height:o="112",className:r,focusable:a="false"})=>Xl("svg",{className:M4("i i-blockTemplateCheckMark",r),focusable:a,height:o,viewBox:"0 0 112 112",width:n,children:[po("title",{children:t}),po("desc",{children:e}),po("defs",{children:Xl("filter",{filterUnits:"objectBoundingBox",height:"186.1%",id:"a",width:"186.1%",x:"-43.1%",y:"-40.3%",children:[po("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),po("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),po("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"}),Xl("feMerge",{children:[po("feMergeNode",{in:"shadowMatrixOuter1"}),po("feMergeNode",{in:"SourceGraphic"})]})]})}),Xl("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[po("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"}),po("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),po("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"})]})]}),FY=null;var Xp,Jl,O4;const VY=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="42",height:o="42",className:r,focusable:a="false"})=>Xp("svg",{className:O4("i i-blockTemplateFolder",r),focusable:a,height:o,viewBox:"0 0 42 42",width:n,children:[Jl("title",{children:t}),Jl("desc",{children:e}),Xp("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[Jl("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"}),Jl("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"})]})]}),zY=null,B4=({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 D4,w0,H4;const UY=({title:t="Building",desc:e="Building with windows",width:n="18",height:o="18",className:r,focusable:a="false"})=>D4("svg",{className:H4("icon",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[w0("title",{children:t}),w0("desc",{children:e}),w0("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"})]}),_Y=null;var P0,Lc,F4;const WY=({title:t="Captions",desc:e="Two capital letter C inside a square",width:n="24",height:o="16",className:r,focusable:a="false"})=>P0("svg",{className:F4("i i-captions",r),focusable:a,height:o,viewBox:"0 0 24 16",width:n,children:[Lc("title",{children:t}),Lc("desc",{children:e}),P0("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[Lc("rect",{height:"13.25",rx:"1",stroke:"#000",strokeWidth:"1.75",width:"18.25",x:"1.447",y:"1.402"}),P0("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[Lc("tspan",{x:"4.222",y:"11.5",children:"C"})," ",Lc("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),GY=null;var V4,M0;const KY=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>V4("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&M0("title",{children:i}),o&&M0("desc",{children:o}),M0("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"})]}),QY=null;var z4,O0,$4;const ZY=({title:t="Character",desc:e="Character",width:n="13",height:o="16",className:r,focusable:a="false"})=>z4("svg",{className:$4("i i-character",r),focusable:a,height:o,viewBox:"0 0 13 16",width:n,children:[O0("title",{children:t}),O0("desc",{children:e}),O0("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"})]}),YY=null;function Jp(t){return(0,s.jsx)(Qs,{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 U4,B0,_4;const XY=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="21",role:a="img",title:i,width:c="21"})=>U4("svg",{"aria-hidden":t,"aria-label":e,className:_4("i i-checkMarkFilled",n),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&B0("title",{children:i}),o&&B0("desc",{children:o}),B0("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"})]}),JY=null;var qp,W4;function qY(t){return qp(W4,{viewBox:"0 0 7 5",...t,children:qp("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 e2,G4;const eX=({width:t="16",height:e="16",className:n,focusable:o="false"})=>e2("svg",{"aria-hidden":"true",className:G4("i i-chevronLeft",n),focusable:o,height:e,viewBox:"0 0 16 16",width:t,children:e2("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),tX=null;var t2,K4;const sX=t=>t2(K4,{viewBox:"0 0 6 10",...t,children:t2("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"})}),nX=null,Q4=({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 s2,ql,Z4;const rX=({title:t="Clock",desc:e="Image of a clock with two hands",width:n="14",height:o="13",className:r,focusable:a="false"})=>s2("svg",{className:Z4("i",r),focusable:a,height:o,viewBox:"0 0 14 13",width:n,children:[ql("title",{children:t}),ql("desc",{children:e}),s2("g",{children:[ql("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"}),ql("path",{d:"M7.81299 3.25H6.18799V7.313H10.25V5.688H7.81199L7.81299 3.25Z"})]})]}),aX=null,Y4=({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 X4,n2,J4;function cX(t){return X4(J4,{viewBox:"0 0 16 16",...t,children:[n2("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"}),n2("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 q4,Vn;const lX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="18",role:a="img",title:i,width:c="18"})=>q4("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Vn("title",{children:i}),o&&Vn("desc",{children:o}),Vn("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),Vn("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),Vn("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),Vn("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),Vn("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),Vn("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),Vn("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),Vn("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),Vn("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),Vn("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),dX=null;var e9,D0,t9;const uX=({title:t="Continue Block",desc:e="Continue Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>e9("svg",{className:t9("i i-continue-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[D0("title",{children:t}),D0("desc",{children:e}),D0("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"})]}),hX=null;var s9,H0,n9;const mX=({title:t="Convert",desc:e="Convert to block",width:n="14",height:o="12",className:r,focusable:a="false"})=>s9("svg",{className:n9("i i-convert",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[H0("title",{children:t}),H0("desc",{children:e}),H0("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"})]}),pX=null;var o9,o2,r9;function fX(t){return o9(r9,{...t,viewBox:"0 0 16 16",children:[o2("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"}),o2("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 a9,F0,i9;const vX=({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"})=>a9("svg",{className:i9("i i-stack",r),focusable:a,height:o,viewBox:"0 0 15 18",width:n,children:[F0("title",{children:t}),F0("desc",{children:e}),F0("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"})]}),gX=null;var c9,V0,l9;const CX=({title:t="Copy lesson",desc:e="Copy lesson",width:n="15",height:o="15",className:r,focusable:a="false"})=>c9("svg",{className:l9("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[V0("title",{children:t}),V0("desc",{children:e}),V0("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"})]}),xX=null;var d9,ed;const bX=({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"})=>d9("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[ed("title",{children:t}),ed("desc",{children:e}),ed("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"}),ed("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"})]}),yX=null;var u9,z0,h9;const LX=t=>{const{className:e,desc:n="Crop",focusable:o="false",height:r="19",title:a="Crop",width:i="19"}=t,c={className:h9("i i-crop",e),focusable:o,height:r,viewBox:`0 0 ${i} ${r}`,width:i};return u9("svg",{...c,children:[z0("title",{children:a}),z0("desc",{children:n}),z0("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"})]})},EX=null;var m9,$0,p9;const TX=({"aria-hidden":t,"aria-label":e="Dash mark",className:n,desc:o,height:r="3",role:a="img",title:i,width:c="7"})=>m9("svg",{"aria-hidden":t,"aria-label":e,className:p9("i i-dashMark",n),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&$0("title",{children:i}),o&&$0("desc",{children:o}),$0("rect",{height:"3",width:"7"})]}),SX=null;var f9,r2;const IX=({width:t="20",height:e="20",focusable:n="false"})=>f9("svg",{fill:"none",focusable:n,height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[r2("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"}),r2("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"})]}),NX=null,v9=({title:t="DestinationArrow",desc:e="DestinationArrow",width:n="13",height:o="10",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:J()("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 g9,U0,C9;const kX=({title:t="Dialogue Slide",desc:e="Dialogue Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>g9("svg",{className:C9("i i-dialogue-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[U0("title",{children:t}),U0("desc",{children:e}),U0("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"})]}),AX=null;var x9,Ec;const RX=({title:t="Disk",desc:e="An old floppy disk",width:n="16",height:o="16",className:r,focusable:a="false"})=>x9("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[Ec("title",{children:t}),Ec("desc",{children:e}),Ec("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"}),Ec("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"}),Ec("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"})]}),wX=null;var b9,PX;class MX extends null{render(){return b9("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 OX=null;var a2,y9;const BX=({width:t=20,height:e=20,...n})=>a2(y9,{height:e,width:t,...n,viewBox:"0 0 20 20",children:a2("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"})}),DX=null;var L9,_0,E9;const HX=({title:t="Vertical Dots",desc:e="Vertical Dots",width:n="4",height:o="24",className:r=null,focusable:a="false"})=>L9("svg",{className:E9("i i-dotsVertical",r),focusable:a,height:o,viewBox:"0 0 4 24",width:n,children:[_0("title",{children:t}),_0("desc",{children:e}),_0("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"})]}),FX=null,T9=({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:J()("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"})]}),S9=(0,u.forwardRef)(T9);var I9,Tc,N9;const VX=({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"})=>I9("svg",{className:N9("i i-downloadCircle",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[Tc("title",{children:t}),Tc("desc",{children:e}),Tc("g",{fill:"none",stroke:"none",children:Tc("g",{fill:"#000",transform:"translate(-695, -227)",children:Tc("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"})})})]}),zX=null;var j9,i2,k9;function $X(t){return j9(k9,{viewBox:"0 0 13 13",...t,children:[i2("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"}),i2("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 A9,td,R9;const UX=({title:t="Draw",desc:e="Arrow down with horizontal line beneath it",width:n="15",height:o="15",className:r,focusable:a="false"})=>A9("svg",{className:R9("i i-drawFromQuestionBank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[td("title",{children:t}),td("desc",{children:e}),td("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"}),td("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"})]}),_X=null;var w9,W0,P9;const WX=t=>w9(P9,{height:"16",viewBox:"0 0 16 4",width:"4",...t,children:[W0("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"}),W0("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"}),W0("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"})]}),GX=null;var M9,Sc,O9;const KX=({title:t="More",desc:e="Three dots next to one another",width:n="16",height:o="4",className:r=null,focusable:a="false"})=>M9("svg",{className:O9("i",r),focusable:a,height:o,viewBox:"0 0 16 4",width:n,children:[Sc("title",{children:t}),Sc("desc",{children:e}),Sc("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"}),Sc("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"}),Sc("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"})]}),QX=null;var c2,Ic,B9;const ZX=({title:t="Draggable",desc:e="Three dots stacked on top of one another",width:n="4",height:o="14",className:r,focusable:a="false"})=>c2("svg",{className:B9("i i-ellipsis--vert",r),focusable:a,height:o,viewBox:"0 0 4 14",width:n,children:[Ic("title",{children:t}),Ic("desc",{children:e}),c2("g",{transform:"translate(.158 .445)",children:[Ic("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),Ic("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),Ic("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),YX=null;var D9,G0,H9;const XX=({title:t="Embed",desc:e="Embed icon",width:n="16",height:o="15",className:r,focusable:a="false"})=>D9("svg",{className:H9("i i-embed",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[G0("title",{children:t}),G0("desc",{children:e}),G0("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"})]}),JX=null;var F9,sd,V9;const qX=({title:t="Empty folder",desc:e="Empty folder",width:n="46",height:o="46",className:r,focusable:a="false"})=>F9("svg",{className:V9("i i-emptyFolder",r),focusable:a,height:o,viewBox:"0 0 46 46",width:n,children:[sd("title",{children:t}),sd("desc",{children:e}),sd("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"}),sd("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"})]}),eJ=null;var z9,nd,$9;const tJ=({title:t="End Slide",desc:e="End Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>z9("svg",{className:$9("i i-end-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[nd("title",{children:t}),nd("desc",{children:e}),nd("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"}),nd("rect",{fillRule:"evenodd",height:"14",width:"2",x:"14"})]}),sJ=null;var l2,od,U9;const nJ=({title:t="Envelope",desc:e="Envelope",width:n="17",height:o="14",className:r,focusable:a="false"})=>l2("svg",{className:U9("i i-envelope",r),focusable:a,height:o,viewBox:"0 0 17 14",width:n,xmlns:"http://www.w3.org/2000/svg",children:[od("title",{children:t}),od("desc",{children:e}),l2("g",{fillRule:"nonzero",children:[od("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"}),od("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"})]})]}),oJ=null;var _9,rd,W9;const rJ=({title:t="Error",desc:e="An x with a circle",width:n="50",height:o="50",className:r,focusable:a="false"})=>_9("svg",{className:W9("i i-error",r),focusable:a,height:o,viewBox:"0 0 50 50",width:n,children:[rd("title",{children:t}),rd("desc",{children:e}),rd("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"}),rd("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"})]}),aJ=null;var G9,ad,K9;const iJ=({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"})=>G9("svg",{className:K9("i i-errorAlert",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[ad("title",{children:t}),ad("desc",{children:e}),ad("circle",{cx:"9",cy:"9",r:"9"}),ad("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"})]}),cJ=null,d2=({"aria-hidden":t,"aria-label":e="X mark",className:n,dataTestId:o="x-mark",desc:r,height:a="10",overrideStyle:i=!1,role:c="img",title:h,width:d="10"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:J()(n,{"i i-exMark":!i}),"data-testid":o,focusable:"false",height:a,role:c,viewBox:"0 0 10 10",width:d,xmlns:"http://www.w3.org/2000/svg",children:[h&&(0,s.jsx)("title",{children:h}),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 Q9,id,Z9;const dJ=({title:t="Export",desc:e="Export",width:n="12",height:o="15",className:r,focusable:a="false"})=>Q9("svg",{className:Z9("i i-export",r),focusable:a,height:o,viewBox:"0 0 12 15",width:n,children:[id("title",{children:t}),id("desc",{children:e}),id("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),id("rect",{height:"2",width:"10",x:"1",y:"12"})]}),uJ=null,u2=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="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:c,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"})]}),Y9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="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:c,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 X9,cd,J9;const pJ=({title:t="No File",desc:e="Paper icon with one corner bent inwards",width:n="40",height:o="50",className:r,focusable:a="false"})=>X9("svg",{className:J9("i i-fileNone",r),focusable:a,height:o,viewBox:"0 0 40 50",width:n,children:[cd("title",{children:t}),cd("desc",{children:e}),cd("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"}),cd("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"})]}),fJ=null,q9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="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:c,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"})]}),e8=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="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:c,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"})]}),t8=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="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:c,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"})]}),s8=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="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:c,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"})]}),n8=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="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:c,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 o8,ld,r8;const yJ=({title:t="More",desc:e="Filled caret pointing right",width:n="7",height:o="5",className:r,focusable:a="false"})=>o8("svg",{className:r8("i i-filledChevronRight",r),focusable:a,height:o,viewBox:"0 0 5 7",width:n,children:[ld("title",{children:t}),ld("desc",{children:e}),ld("g",{children:ld("path",{d:"M4 3.625L1 1v5.25z",strokeLinecap:"round",strokeLinejoin:"round"})})]}),LJ=null,K0=({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:J()("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 a8,Q0;const TJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>a8("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Q0("title",{children:i}),o&&Q0("desc",{children:o}),Q0("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"})]}),SJ=null;var i8,Z0,c8;const IJ=({title:t="Flashcard Block",desc:e="Flashcard Block",width:n="16",height:o="15",className:r,focusable:a="false"})=>i8("svg",{className:c8("i i-flashcard-block",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[Z0("title",{children:t}),Z0("desc",{children:e}),Z0("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"})]}),NJ=null;var h2,l8;const jJ=t=>h2(l8,{viewBox:"0 0 15 15",...t,children:h2("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"})}),kJ=null;var d8,m2,u8;function AJ(t){return d8(u8,{...t,viewBox:"0 0 16 14",children:[m2("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"}),m2("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 h8,dd,m8;const RJ=({title:t="Folder Empty",desc:e="Folder outline empty",width:n="47",height:o="47",className:r,focusable:a="false"})=>h8("svg",{className:m8("i i-folder--empty",r),focusable:a,height:o,viewBox:"0 0 47 47",width:n,children:[dd("title",{children:t}),dd("desc",{children:e}),dd("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"}),dd("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"})]}),wJ=null;var p8,Y0,f8;const PJ=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="24",height:o="24",className:r,focusable:a="false"})=>p8("svg",{className:f8("i",r),focusable:a,height:o,viewBox:"0 0 24 24",width:n,children:[Y0("title",{children:t}),Y0("desc",{children:e}),Y0("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"})]}),MJ=null;var v8,X0,g8;const OJ=({title:t="FolderSort",desc:e="Sort by Folders",width:n="13",height:o="13",className:r,focusable:a="false"})=>v8("svg",{className:g8("i",r),focusable:a,height:o,viewBox:"0 0 13 13",width:n,children:[X0("title",{children:t}),X0("desc",{children:e}),X0("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"})]}),BJ=null;var C8,J0,x8;const DJ=({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"})=>C8("svg",{className:x8("i",r),focusable:a,height:o,viewBox:"0 0 35 27",width:n,children:[J0("title",{children:t}),J0("desc",{children:e}),J0("path",{d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z",fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2"})]}),HJ=null;var b8,ud,y8;const FJ=t=>b8(y8,{...t,viewBox:"0 0 16 16",children:[ud("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"}),ud("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"}),ud("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"}),ud("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"})]}),VJ=null;var L8,hd,E8;const zJ=({title:t="Group",desc:e="Silhouettes of two people",width:n="18",height:o="17",className:r,focusable:a="false"})=>L8("svg",{className:E8("i",r),focusable:a,height:o,viewBox:"0 0 18 17",width:n,children:[hd("title",{children:t}),hd("desc",{children:e}),hd("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"}),hd("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"})]}),$J=null;var p2,T8;function UJ(t){return p2(T8,{viewBox:"0 0 20 14",...t,children:p2("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const q0=({className:t,decorative:e=!0,desc:n="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:i="Heart",width:c="16"})=>(0,s.jsxs)("svg",{"aria-hidden":e,className:J()(`i i-heart${a?"Filled":"Outline"}`,t),focusable:o,height:r,viewBox:"0 0 16 16",width:c,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 S8,e1,I8;const WJ=({title:t="Hidden",desc:e="Eye crossed out",width:n="16",height:o="14",className:r=null,focusable:a="false"})=>S8("svg",{className:I8("i i-hidden",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[e1("title",{children:t}),e1("desc",{children:e}),e1("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"})]}),GJ=null;var N8,t1,j8;const KJ=({title:t="Image Block",desc:e="Image Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>N8("svg",{className:j8("i i-image-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[t1("title",{children:t}),t1("desc",{children:e}),t1("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"})]}),QJ=null;var k8,s1,A8;const ZJ=({title:t="Labeled Graphic Block",desc:e="Labeled Graphic Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>k8("svg",{className:A8("i i-labeled-graphic-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[s1("title",{children:t}),s1("desc",{children:e}),s1("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"})]}),YJ=null;var R8,md,w8;const XJ=({title:t="Label Set",desc:e="Label Set",width:n="17",height:o="17",className:r,focusable:a="false"})=>R8("svg",{className:w8("i i-labelSet",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[md("title",{children:t}),md("desc",{children:e}),md("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"}),md("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"})]}),JJ=null;var P8,n1,M8;function qJ(t){return P8(M8,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...t,children:[n1("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"}),n1("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),n1("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"})]})}var O8,o1;const eq=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>O8("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&o1("title",{children:i}),o&&o1("desc",{children:o}),o1("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"})]}),tq=null;var B8,r1,D8;const sq=({title:t="Lesson",desc:e="Lesson Icon",width:n="23",height:o="17",className:r,focusable:a="false"})=>B8("svg",{className:D8("i i-lesson",r),focusable:a,height:o,viewBox:"0 0 23 17",width:n,children:[r1("title",{children:t}),r1("desc",{children:e}),r1("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"})]}),nq=null;var H8,a1,F8;const oq=t=>H8(F8,{...t,viewBox:"0 0 16 16",children:[a1("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"}),a1("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"}),a1("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"})]}),rq=null;var V8,i1,z8;const aq=({title:t="List Block",desc:e="List Block",width:n="16",height:o="13",className:r,focusable:a="false"})=>V8("svg",{className:z8("i i-list-block",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[i1("title",{children:t}),i1("desc",{children:e}),i1("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"})]}),iq=null;var $8,pd;const cq=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r,role:a="img",title:i,width:c})=>$8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&pd("title",{children:i}),o&&pd("desc",{children:o}),pd("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"}),pd("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"})]}),lq=null;var f2,U8;function dq(t){return f2(U8,{viewBox:"0 0 20 22",...t,children:f2("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 _8,fd,W8;const uq=({title:t="Mail",desc:e="Mail",width:n="14",height:o="12",className:r,focusable:a="false"})=>_8("svg",{className:W8("i",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[fd("title",{children:t}),fd("desc",{children:e}),fd("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"}),fd("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"})]}),hq=null,G8=({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:J()("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 K8,Nc,Q8;const pq=({title:t="Move to Folder",desc:e="Folder with an arrow",width:n="15",height:o="15",className:r,focusable:a="false"})=>K8("svg",{className:Q8("i i-move",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[Nc("title",{children:t}),Nc("desc",{children:e}),Nc("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"}),Nc("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),Nc("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"})]}),fq=null,Z8=({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:J()("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"})]}),Y8=({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:J()("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 X8,c1,J8;const Cq=({"aria-hidden":t,title:e="New Folder",desc:n="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:i="false"})=>X8("svg",{"aria-hidden":t,className:J8("i i-newFolder",a),focusable:i,height:r,viewBox:"0 0 14 14",width:o,children:[e&&c1("title",{children:e}),c1("desc",{children:n}),c1("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"})]}),xq=null;var q8,vd,e7;const bq=({title:t="New Slide",desc:e="New Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>q8("svg",{className:e7("i i-new-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[vd("title",{children:t}),vd("desc",{children:e}),vd("path",{d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z",fillRule:"evenodd"}),vd("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"})]}),yq=null;var t7,l1,s7;const Lq=({title:t="Next Slide",desc:e="Next Slide",width:n="16",height:o="13.4",className:r,focusable:a="false"})=>t7("svg",{className:s7("i i-next-slide",r),focusable:a,height:o,viewBox:"0 0 16 13.4",width:n,children:[l1("title",{children:t}),l1("desc",{children:e}),l1("path",{d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0",fillRule:"evenodd"})]}),Eq=null;var n7,d1,o7;const Tq=({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"})=>n7("svg",{className:o7("i i-notAllowed",r),focusable:a,height:o,viewBox:"0 0 12 12",width:n,children:[d1("title",{children:t}),d1("desc",{children:e}),d1("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"})]}),Sq=null;var r7,v2;const Iq=({className:t})=>r7("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"})]}),Nq=null;var a7,jc,i7;const jq=({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"})=>a7("svg",{className:i7("i",r),focusable:a,height:o,viewBox:"0 0 20 16",width:n,children:[jc("title",{children:t}),jc("desc",{children:e}),jc("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"}),jc("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"}),jc("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"})]}),kq=null;var c7,g2,l7;const Aq=t=>c7(l7,{viewBox:"0 0 16 16",...t,children:[g2("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"}),g2("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"})]}),Rq=null;var d7,u1,u7;const wq=({title:t="Edit",desc:e="Pencil",width:n="11",height:o="11",className:r,focusable:a="false"})=>d7("svg",{className:u7("i i-pencil",r),focusable:a,height:o,viewBox:"0 0 10 10",width:n,children:[u1("title",{children:t}),u1("desc",{children:e}),u1("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"})]}),Pq=null;var h7,h1;const Mq=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>h7("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&h1("title",{children:i}),o&&h1("desc",{children:o}),h1("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"})]}),Oq=null;var m7,gd,p7;const Bq=({title:t="Person",desc:e="Person outline",width:n="16",height:o="18",className:r,focusable:a="false"})=>m7("svg",{className:p7("i",r),focusable:a,height:o,viewBox:"0 0 16 18",width:n,children:[gd("title",{children:t}),gd("desc",{children:e}),gd("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"}),gd("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"})]}),Dq=null;class m1 extends u.Component{constructor(...e){super(...e),this.maskId=`person-unknown-mask-${Ss()()}`,this.pathId=`person-unknown-path-${Ss()()}`}render(){const{title:e="Person Unknown",desc:n,width:o="38",height:r="38",className:a,decorative:i,focusable:c="false"}=this.props;return(0,s.jsxs)("svg",{"aria-hidden":i,className:J()("i i-person-unknown",a),focusable:c,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 C2=({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:J()("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 f7,Cd,v7;const Fq=({title:t="Play",desc:e="Triangle facing right that will play the media",width:n="16",height:o="22",className:r,focusable:a="false"})=>f7("svg",{className:v7("i",r),focusable:a,height:o,viewBox:"0 0 16 22",width:n,children:[Cd("desc",{children:e}),Cd("title",{children:t}),Cd("g",{transform:"translate(-124 -107)",children:Cd("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"})})]}),Vq=null;var g7,p1,C7;const zq=({title:t="Process Block",desc:e="Process Block",width:n="29",height:o="17",className:r,focusable:a="false"})=>g7("svg",{className:C7("i i-process-block",r),focusable:a,height:o,viewBox:"0 0 29 17",width:n,children:[p1("title",{children:t}),p1("desc",{children:e}),p1("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"})]}),$q=null;function x7(t){return(0,s.jsxs)(Qs,{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 b7,f1,y7;const Uq=({title:t="Quiz",desc:e="Quiz Icon",width:n="25",height:o="25",className:r,focusable:a="false"})=>b7("svg",{className:y7("i i-quiz",r),focusable:a,height:o,viewBox:"0 0 25 25",width:n,children:[f1("title",{children:t}),f1("desc",{children:e}),f1("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"})]}),_q=null;var x2,L7;const Wq=t=>x2(L7,{...t,viewBox:"0 0 10 13",children:x2("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"})}),Gq=null;var E7,b2,T7;function Kq(t){return E7(T7,{viewBox:"0 0 15 14",...t,children:[b2("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"}),b2("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 y2,S7;function Qq(t){return y2(S7,{viewBox:"0 0 28 28",...t,children:y2("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 I7,v1;const Zq=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>I7("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&v1("title",{children:i}),o&&v1("desc",{children:o}),v1("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"})]}),Yq=null;function N7(t){return(0,s.jsx)(Qs,{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 L2,j7;const Xq=({width:t="16",height:e="16",className:n})=>L2("svg",{"aria-hidden":"true",className:j7("i i-search",n),fill:"currentColor",focusable:"false",height:e,viewBox:"0 0 15.6 14.7",width:t,children:L2("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"})}),Jq=null;var E2,k7;const qq=t=>E2(k7,{...t,viewBox:"0 0 15 15",children:E2("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"})}),eee=null;var A7,kc,R7;const tee=({title:t="Share Folder",desc:e="Share folder",width:n="14",height:o="14",className:r,focusable:a="false"})=>A7("svg",{className:R7("i",r),focusable:a,height:o,viewBox:"0 0 14 14",width:n,children:[kc("title",{children:t}),kc("desc",{children:e}),kc("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"}),kc("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"}),kc("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),see=null;var T2,w7;const nee=t=>T2(w7,{viewBox:"0 0 16 16",...t,children:T2("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"})}),oee=null;var P7,Ac,M7;const ree=({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"})=>P7("svg",{className:M7("i i-sortable",r),focusable:a,height:o,viewBox:"0 0 22 7",width:n,children:[Ac("title",{children:t}),Ac("desc",{children:e}),Ac("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"0"}),Ac("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"3"}),Ac("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"6"})]}),aee=null;var O7,g1,B7;const iee=({title:t="Sorting Block",desc:e="Sorting Block",width:n="22",height:o="15",className:r,focusable:a="false"})=>O7("svg",{className:B7("i i-sorting-block",r),focusable:a,height:o,viewBox:"0 0 22 15",width:n,children:[g1("title",{children:t}),g1("desc",{children:e}),g1("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"})]}),cee=null;var S2,ii,D7;const lee=({title:t="Spinner",desc:e="Hollow circle fading from transparent to gray",width:n="21",height:o="20",className:r,focusable:a="false"})=>S2("svg",{className:D7("i i-spinner",r),focusable:a,height:o,viewBox:"0 0 21 20",width:n,children:[ii("title",{children:t}),ii("desc",{children:e}),ii("defs",{children:S2("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:[ii("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),ii("stop",{offset:"100%",stopColor:"#979797"})]})}),ii("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)"})]}),dee=null;var I2,xd,H7;const uee=({title:t="SquareIcon",desc:e="Outline of a square",width:n="30",height:o="30",className:r,focusable:a="false"})=>I2("svg",{className:H7("i i-square-outline",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[xd("title",{children:t}),xd("desc",{children:e}),I2("g",{fill:"none",fillRule:"evenodd",children:[xd("rect",{className:"overlay",fill:"none",fillRule:"evenodd",height:"28",rx:"2",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"}),xd("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"})]})]}),hee=null;var N2,da,F7;const C1="overlay",mee=({title:t="Stack",desc:e="Three horizontal bars stacked",width:n="30",height:o="30",className:r,focusable:a="false"})=>N2("svg",{className:F7("i i-stack",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[da("title",{children:t}),da("desc",{children:e}),N2("g",{fill:"none",fillRule:"evenodd",children:[da("rect",{className:C1,height:"8.824",rx:"1",width:"30"}),da("rect",{className:C1,height:"8.824",rx:"1",width:"30",y:"10.588"}),da("rect",{className:C1,height:"8.824",rx:"1",width:"30",y:"21.176"}),da("rect",{fill:"#FFF",fillOpacity:"0.63",height:"8.824",rx:"1",width:"30"}),da("rect",{fill:"#FFF",fillOpacity:"0.4",height:"8.824",rx:"1",width:"30",y:"10.588"})]})]}),pee=null;var j2,V7;function fee(t){return j2(V7,{viewBox:"0 0 16 16",...t,children:j2("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 z7,bd,$7;const vee=({title:t="Success",desc:e="Checkmark with a circle",width:n="51",height:o="51",className:r=null,focusable:a="false"})=>z7("svg",{className:$7("i",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[bd("title",{children:t}),bd("desc",{children:e}),bd("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"}),bd("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"})]}),gee=null;var U7,x1,_7;const Cee=({title:t="Text Block",desc:e="Text Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>U7("svg",{className:_7("i i-text-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[x1("title",{children:t}),x1("desc",{children:e}),x1("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"})]}),xee=null;var k2,yd,W7;const bee=({title:t="Text Slide",desc:e="Text Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>k2("svg",{className:W7("i i-text-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[yd("title",{children:t}),yd("desc",{children:e}),k2("g",{fillRule:"evenodd",children:[yd("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"}),yd("path",{d:"M4 8h8v2H4z"})]})]}),yee=null;var G7,b1,K7;const Lee=({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"})=>G7("svg",{className:K7("i",r),focusable:a,height:o,viewBox:"0 0 17 11",width:n,children:[b1("title",{children:t}),b1("desc",{children:e}),b1("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"})]}),Eee=null;function Q7(t){return(0,s.jsxs)(Qs,{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 Z7,y1,Y7;const Tee=({title:t="Remove",desc:e="Trash can",width:n="10",height:o="13",className:r=null,focusable:a="false"})=>Z7("svg",{className:Y7("i i-trash",r),focusable:a,height:o,viewBox:"0 0 10 13",width:n,children:[y1("title",{children:t}),y1("desc",{children:e}),y1("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"})]}),See=null;var X7,L1,J7;const Iee=({title:t="Trash Folder",desc:e="Solid trash can",width:n="16",height:o="17",className:r,focusable:a="false"})=>X7("svg",{className:J7("i i-trashFolder",r),focusable:a,height:o,viewBox:"0 0 16 17",width:n,children:[L1("title",{children:t}),L1("desc",{children:e}),L1("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"})]}),Nee=null;var q7,ci;const jee=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:c="14"})=>q7("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&ci("title",{children:i}),o&&ci("desc",{children:o}),ci("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"}),ci("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"}),ci("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"}),ci("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"})]}),kee=null;var ex,E1,tx;const Aee=({title:t="Remove",desc:e="Trash can",width:n="13.3",height:o="16",className:r,focusable:a="false"})=>ex("svg",{className:tx("i",r),focusable:a,height:o,viewBox:"0 0 13.3 16",width:n,children:[E1("title",{children:t}),E1("desc",{children:e}),E1("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"})]}),Ree=null;var sx,Ld,nx;const wee=({title:t="Upload",desc:e="Upload icon",width:n="15",height:o="15",className:r="",focusable:a="false"})=>sx("svg",{className:nx("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[Ld("title",{children:t}),Ld("desc",{children:e}),Ld("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"}),Ld("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"})]}),Pee=null;var ox,Rc;const Mee=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="14",role:a="img",title:i,width:c="14"})=>ox("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Rc("title",{children:i}),o&&Rc("desc",{children:o}),Rc("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"}),Rc("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"}),Rc("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"})]}),Oee=null;var rx,Ed,ax;const Bee=({title:t="UploadXml",desc:e="UploadXml",width:n="18",height:o="21",className:r,focusable:a="false"})=>rx("svg",{className:ax("i i-uploadXml",r),focusable:a,height:o,viewBox:"0 0 18 21",width:n,children:[Ed("title",{children:t}),Ed("desc",{children:e}),Ed("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"}),Ed("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"})]}),Dee=null;var ix,T1,cx;const Hee=({title:t="Video Block",desc:e="Video Block",width:n="17",height:o="13",className:r,focusable:a="false"})=>ix("svg",{className:cx("i i-video-block",r),focusable:a,height:o,viewBox:"0 0 17 13",width:n,children:[T1("title",{children:t}),T1("desc",{children:e}),T1("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"})]}),Fee=null;function lx(t){return(0,s.jsx)(Qs,{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 dx,A2,ux;function Vee(t){return dx(ux,{...t,viewBox:"0 0 14 10",children:[A2("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"}),A2("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 R2,Td,hx;const zee=({title:t="Visible",desc:e="Eye",width:n="16",height:o="12",className:r=null,focusable:a="false"})=>R2("svg",{className:hx("i i-visible",r),focusable:a,height:o,viewBox:"0 0 16 12",width:n,children:[Td("title",{children:t}),Td("desc",{children:e}),R2("g",{children:[Td("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"}),Td("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),$ee=null,mx=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="20",role:a="img",title:i="",style:c,width:h="20"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:J()("i i-xMarkFilled",n),focusable:"false",height:r,role:a,style:c,viewBox:"0 0 20 20",width:h,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 px=l(21863),fx=l.n(px),vx=l(57955),wc=l.n(vx),gx=l(36087),Ps=l.n(gx),Cx=l(34597),xx=l.n(Cx),bx=l(53095),yx=l.n(bx);const Lx=Ps()(fx()({}),xx()(["first_name","last_name"]),wc()(" "),yx()),Ex=({className:t,decorative:e,size:n,...o})=>{const r=js()(["avatars","medium"],o),a=e?"":Lx(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)(m1,{decorative:e,height:n,title:a,width:n})};var Tx=l(19245);const K=(0,Tx.setup)({el:"__",mod:"--",modValue:"-"}),Sx=`${(0,Ye._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,Sd=K("cover");function Ix(){const{certificateDownload:t,riseComCurrentUser:e}=Lt(),n=(0,ht.useLabelsMap)(),o=YC(),a=Cc()?.quizPassed??!0;return!(o&&a&&!(0,Ye.Wk)())||window.viewType==="preview"?null:(0,s.jsxs)("div",{className:Sd("completed-info"),children:[(0,s.jsxs)("div",{className:Sd("completed-info-avatar"),children:[(0,s.jsx)(Ex,{...e,decorative:!0}),(0,s.jsx)("img",{alt:"",className:Sd("completed-info-trophy"),src:Sx})]}),(0,s.jsxs)("div",{className:Sd("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)(co,{})]})}var Nx=l(74083),fo=l.n(Nx);const S1=t=>{if(!t)return"";const e=fo()(t),n=fo()(),o=fo()(n).add(24,"hours");return e.isBefore(n)?"Overdue":e.isBefore(o)?`Due in ${n.to(e,!0)}`:`Due ${e.format("MMM D")}`},w2=t=>fo()(t).isSameOrBefore(fo()().add(3,"d"),"days");function jx(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 li=jx("ui"),I1=t=>t==="<p><br></p>"?"":t,N1="data-change-path",j1="data-l10n-id",P2=(t,e)=>{if(t)return e?["l10n","translations",e,t.getAttribute(j1)]:JSON.parse(t.getAttribute(N1))};let pr;const kx=()=>{const t=di();t&&t.classList.add("selected")},Id=()=>{di()&&pr&&Pc(pr)},Ax=(t,e)=>n=>{const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(j1)):o.find(a=>a.getAttribute(N1));r!=null&&(t&&pr!==r&&(pr=r,t(P2(r,e))),Pc(r))},Rx=(t,e)=>n=>{n.stopPropagation(),n.preventDefault();const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(j1)):o.find(a=>a.getAttribute(N1));if(r){Pc(r),O2();const a=P2(r,e);a&&(t(a),kx())}},k1=()=>document.getElementById("target-container"),di=()=>document.getElementById("target-highlight"),M2=()=>{if(k1())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)},O2=()=>{const t=di();t&&t.classList.add("selected")},wx=({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}},Pc=t=>{const{top:e,left:n,width:o,height:r}=wx(t.getBoundingClientRect()),a=di();a&&(t!==pr&&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`}),pr=t)},Px=()=>{window.removeEventListener("scroll",Id,{capture:!0}),Nd()},Nd=()=>{di()?.classList?.remove("active"),di()?.classList?.remove("selected")};let ui,jd;const Mx=({locale:t})=>({isActive:e},n)=>{const o=!!k1();if(e){if(ui)return ui;M2();const r=Ax(n,t);let a;return ui=new Promise((i,c)=>{a=Rx(i,t),jd=c,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",Nd,!0),window.addEventListener("scroll",Id,!0)}).finally(()=>{ui=null,jd=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",Nd,!0),window.removeEventListener("scroll",Id,!0)}),ui}else Nd(),k1()?.remove(),pr=null;return o&&jd!=null&&jd(new Error("cancelled")),Promise.resolve()},Ox=t=>{let e=t.findIndex(n=>n==="items");return e===-1?t:t.slice(0,e+2)},B2=t=>{const e=(0,lr.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(Ox(t))}']`):null},Bx=t=>{M2(),window.addEventListener("scroll",Id,{capture:!0}),document.body.classList.add("target-mode");const e=B2(t);e&&Pc(e)},Dx=t=>{if(!ui)return;const e=B2(t);e&&(pr!==e&&(pr=e),Pc(e),O2(),e.scrollIntoView({behavior:"smooth",block:"center"}))},Hx=t=>["course",t],D2=(t,e)=>["lessons",{id:t},e],Fx=(t,e)=>[...D2(t,"items"),{id:e}],hi=t=>JSON.stringify(Hx(t)),H2=(t,e)=>JSON.stringify(D2(t,e)),Vx=(t,e)=>JSON.stringify(Fx(t,e)),fn={STATUS:"targetMode:status",TOGGLE:"targetMode:toggle",FOCUS:"targetMode:focus",CLEAR:"targetMode:clear",SELECTED:"targetMode:selected",HOVERED:"targetMode:hovered",TRANSLATION_HOVERED:"targetMode:translationHovered",TRANSLATION_HOVER_CLEAR:"targetMode:translationHoverClear"},mi=(t,e)=>{const n={};for(let o=0;o<t.length;o++){const r=t[o];if(typeof r=="object"&&r.id){const a=t[o-1],i=a==="items"?e.shift():a.replace(/s$/,"");n[`${i??"item"}Id`]=r.id}}return n};var ut=l(86534);const F2=({locales:t,course:e,locale:n})=>!!(t?.find(a=>a.locale===n)?.rightToLeft||e?.features?.["rise-rtl"]&&e?.experiments?.rtl),Mc=(0,u.createContext)({l10n:null});Mc.displayName="TranslationContext";const A1=(0,u.createContext)({l10n:null});A1.displayName="LocalesContext";function In(){const{currentLocale:t}=(0,jt.nY)(),e=vo(),n=kd();return(0,u.useCallback)(o=>lo(o,t,e,n),[t,e,n])}function V2(){const{currentLocale:t}=(0,jt.nY)(),e=vo(),n=kd();return(0,u.useCallback)(o=>Mo(o,t,e,n),[t,e,n])}function Rt(t){const{currentLocale:e}=(0,jt.nY)(),n=vo();let o=kd();const r=zx();return r&&Object.keys(r).length&&e&&o&&(o={...o,[e]:r}),lo(t,e,n,o)}function z2(t){const{currentLocale:e}=(0,jt.nY)(),n=vo(),o=kd();return(0,u.useMemo)(()=>Mo(t,e,n,o),[e,n,t,o])}function Oc(){return(0,u.use)(A1)}function R1(){const t=Oc();return Is(t)}function vo(){const t=Oc();return Fs(t)}function kd(){const t=(0,u.use)(Mc);return hn(t)}function zx(){return zo()?.search?.translations}function $x(){const t=(0,u.use)(Mc);return Vl(t)}function Ux(){const t=(0,u.use)(Mc);return Jr(t)}const w1=(0,u.createContext)(null);w1.displayName="CourseContext";function _x({children:t,course:e,courseProgress:n,labels:o,labelsLocale:r,lessons:a,partnerContent:i,search:c}){const h=(0,u.useMemo)(()=>({course:e,courseProgress:n,labels:o,labelsLocale:r,lessons:a,partnerContent:i,search:c}),[e,n,o,r,a,i,c]);return(0,s.jsx)(w1.Provider,{value:h,children:t})}function zo(){return(0,u.useContext)(w1)}function Ge(){return zo()?.course}function P1(){return Rt(Ge()?.title)}function M1(){const t=Ge();return t.selectedAuthorId==="none"||!("authors"in t)?null:t.selectedAuthorId?t.authors?.find(e=>e.id===t.selectedAuthorId):t.authors?.find(e=>e.id===t.author)}function Wx(){return Ge().trackingQuizId}function qt(){const{labels:t}=zo()??{};return t}function Gx(){return zo()?.labelsLocale}const Kx=({isCourseComplete:t,percentCourseComplete:e})=>{const n=qt()??{},{courseResume:o,courseStart:r,processStartAgain:a}=n;return{courseCTALabel:t?a:e>0?o:r}};function O1(){const{courseProgress:t}=zo();return t}function Qx(){return O1()?.lessons}function Zx(){return O1()?.percentComplete}function $2(){return Ge().lessonsOnly?.[0]}function Yx(){const t=Qx(),e=Wx();return(0,Ut.jI)(t,e)}function Xx(){const t=Ge(),{selectedAuthorId:e}=t?.lessons?.[0]??{};return e==="none"||!e?null:t?.authors?.find(n=>n.id===e)??null}function B1(){const{course:t,partnerContent:e}=zo();return e.content?.find(n=>n.id===t.selectedAuthorId)}function Jx(){return B1()?.data?.authors??null}function qx(){const{partnerContent:t}=zo();return t?.content?.[0]?.data?.authors}function D1(){return zo().search}function U2(){const{lessons:t}=Ge();return(0,u.useMemo)(()=>Array.isArray(t)?t.filter(({type:n})=>n!=="section").length:0,[t])}function _2(t){const o=Ge()?.theme?.accentContrast;return typeof o!="string"?w.Em.LIGHT:o===w.Em.AUTO?(0,ut.xD)(t):o}function Bc(){const t=Ge();return t?.theme?.colorAccent??t?.color}function W2(){return Ge()?.theme?.coverImageColor??w.df.DARK}function vn(){const{currentLocale:t}=(0,jt.nY)(),e=R1(),n=Ge();return F2({course:n,locales:e,locale:t})}function eb(){const{lessons:t}=zo();return t}function H1(t,e){const n=(0,u.useMemo)(()=>matchMedia(`(${t}: ${e*.0625}em)`),[t,e]),[o,r]=(0,u.useState)(n.matches);return(0,u.useEffect)(()=>{const a=n.addEventListener??n.addListener,i=n.removeEventListener??n.removeListener;return a.call(n,"change",c),()=>i.call(n,"change",c);function c(){r(n.matches)}},[n]),o}const tb="matches";function sb(t,e,n,o="withPxToEmMedia"){return r=>{function a(i){const c=H1(t,e);return(0,s.jsx)(r,{...i,[n??tb]:c})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function ks(t){return H1("max-width",t-1)}function Wee(t){return H1("min-width",t)}function nb(t,e,n){return sb("min-width",t,e,n)}const ob=()=>ks(1200),rb=()=>ks(768),F1=()=>ks(480),V1=K("cover");function ab(t,e,n){return t===1?e:n}function ib(){const t=U2(),e=qt(),n=ab(t,e?.coverLesson||"Lesson",e?.coverLessons||"Lessons");return(0,s.jsxs)("li",{className:V1("num-lessons"),role:"listitem",children:[(0,s.jsx)("span",{className:V1("num-lessons-value"),children:t}),"\xA0",(0,s.jsx)("span",{className:V1("num-lessons-units"),children:n})]})}const cb=36e5,z1=K("cover");function lb(t){return Math.round(10*t)/10}function G2(t,e,n){return t===1?e:n}function db(){const{showTimeToComplete:t,timeToComplete:e}=Ge(),n=qt();if(!t)return null;const o=e>=cb,r=o?lb(fo().duration(e).asHours()):fo().duration(e).asMinutes(),a=o?G2(r,n?.coverHour||"Hour",n?.coverHours||"Hours"):G2(r,n?.coverMinute||"Minute",n?.coverMinutes||"Minutes");return(0,s.jsxs)("li",{className:z1("time-to-complete"),role:"listitem",children:[(0,s.jsx)("span",{className:z1("time-to-complete-value"),children:r}),"\xA0",(0,s.jsx)("span",{className:z1("time-to-complete-units"),children:a})]})}const $1=K("cover");function U1(){const t=qt();return _e.BI?(0,s.jsxs)("section",{className:$1("course-length-section"),children:[(0,s.jsx)("h2",{className:$1("course-length-title"),children:t?.a11yCoverCourseLength||"Course Length"}),(0,s.jsxs)("ul",{className:$1("course-length-list"),role:"list",children:[(0,s.jsx)(ib,{}),(0,s.jsx)(db,{})]})]}):null}const ub=K("cover"),hb="MMMM D, YYYY";function K2({format:t=hb}){const{publishedAt:e}=Ge(),n=qt(),o=ub("details-content-published-at");if(!e)return null;const r=fo()(e);return r.isValid()?(0,s.jsxs)("div",{className:o,children:[n?.coverPublished||"Published"," ",r.format(t)]}):null}var mb=l(58443),Dc=l.n(mb);const Q2=Dc()(async()=>(await l.e("math").then(l.bind(l,6338))).browserAdaptor(),{promise:!0}),Z2=Dc()(async()=>{const[{TeX:t},{AllPackages:e}]=await Promise.all([l.e("math").then(l.t.bind(l,85274,23)),l.e("math").then(l.bind(l,71923))]);return new t({packages:e})}),Y2=Dc()(async()=>{const t=await l.e("math").then(l.t.bind(l,89826,23));return new t.SVG({fontCache:"local"})},{promise:!0}),X2=Dc()(async()=>{const[t,e,n,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([Q2(),Z2(),Y2(),l.e("math").then(l.bind(l,27475)),l.e("math").then(l.bind(l,56605))]);return o(t),r.document(document,{InputJax:e,OutputJax:n})},{promise:!0}),pb=Dc()(async t=>{const e=new CSSStyleSheet;t.adoptedStyleSheets.push(e);const[n,o]=await Promise.all([Y2(),X2()]),r=n.styleSheet(o);r instanceof HTMLStyleElement&&await e.replace(r.innerText)},{promise:!0});class fb extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=pb(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([X2(),Q2(),Z2(),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*}`,c=n.convert(i),h=o.firstChild(c),d=document.evaluate("//@data-mjx-error",h,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 vb("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:m}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(h);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",fb);class vb extends CustomEvent{}var go=l(45869);function _1(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 $o=l(20614);const J2=(t="")=>t.split(".").slice(-2).join("."),q2=Xe()(J2,_e._$),gb=t=>t.includes("#/lessons/"),zn=t=>{if(!t||Cb(t)||gb(t))return!1;t.slice(0,2)==="//"&&(t=`https:${t}`);try{const{hostname:e}=new URL(t),n=J2(e);return n!==q2("ARTICULATE_DOMAIN")&&n!==q2("RISE_DOMAIN")}catch{return!1}},Cb=t=>t?t.slice(0,7)==="mailto:":!1,xb=t=>t.includes("rise.articulate")&&t.includes("/authoring/")&&t.includes("/lesson");var St=l(34234);const W1=K("external-link-disabled-popover");function Ad(t={}){const{delay:e=200}=t,n=u.useRef(new Map),o=u.useCallback(c=>{const h=n.current.get(c);h&&clearTimeout(h);const d=setTimeout(()=>{const m=`trial-external-link-popover-${c}`;St.ArcPopover.handlePopover(m,"show"),n.current.delete(c)},e);n.current.set(c,d)},[e]),r=u.useCallback(c=>{const h=n.current.get(c);h&&clearTimeout(h);const d=setTimeout(()=>{const m=`trial-external-link-popover-${c}`;St.ArcPopover.handlePopover(m,"hide"),n.current.delete(c)},e);n.current.set(c,d)},[e]),a=u.useCallback(c=>{const h=`trial-external-link-popover-${c}`;St.ArcPopover.handlePopover(h,"show")},[]),i=u.useCallback(c=>{const h=`trial-external-link-popover-${c}`;St.ArcPopover.handlePopover(h,"hide")},[]);return u.useEffect(()=>{const c=n.current;return()=>{c.forEach(h=>clearTimeout(h)),c.clear()}},[]),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}}function bb(t){return e=>{const{handleMouseEnter:n,handleMouseLeave:o,handleFocus:r,handleBlur:a}=Ad(),i=u.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)(Rd,{anchorId:i})]})}}const Rd=({anchorId:t})=>{const e=`trial-external-link-popover-${t}`;return u.useEffect(()=>{const n=o=>{o.key==="Escape"&&St.ArcPopover.handlePopover(e,"hide")};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e]),(0,s.jsx)(St.ArcPopover,{alternateAnchorId:t,anchorAt:"top-center",boundary:"flip",className:W1(),hasTail:!0,headerSlot:(0,s.jsx)("div",{className:W1("header"),children:"Subscribe to unlock full access"}),hidePopoverButton:!0,id:e,offset:8,popover:"manual",variant:"common",children:(0,s.jsx)("div",{className:W1("content"),children:"To protect learners from phishing, scams, or malicious redirects, external links are disabled when sharing with Quick Share during your trial."})})},yb=({allowTabNavigation:t=!0,className:e="","data-testid":n,id:o,ref:r,tagName:a="div",value:i})=>{const c=Ge(),h=c&&"externalLinksDisabled"in c?c.externalLinksDisabled:!1,d=qt(),m=(0,u.useRef)(null),p=Rt(i),[f,v]=(0,u.useState)([]),{handleMouseEnter:g,handleMouseLeave:C,handleFocus:b,handleBlur:x}=Ad(),{currentLocale:y}=(0,jt.nY)(),E=vo(),L=(0,u.useMemo)(()=>{const T=(0,$o.aj)(p),S=Array.prototype.concat(Ab,Rb,Sb,Eb,Tb(y,E),h?Ib:[],t?jb:Nb,kb(d?.a11yNoticeLinkNewTab));return Lb(S,T)},[t,y,E,h,d,p]);return(0,u.useLayoutEffect)(()=>{if(!h||!m.current){v([]);return}const T=[];m.current.querySelectorAll("[data-tooltip-target]").forEach((I,N)=>{const k=I.nextElementSibling;if(k?.hasAttribute("data-external")){const M=k.getAttribute("data-external-text")||"",R=k.getAttribute("data-external-id")||`link-${N}`;T.push({placeholder:I,text:M,id:R})}}),v(T)},[L,h]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{"aria-hidden":t?void 0:!0,className:`${e} brand--linkColor`,"data-l10n-id":Xt(i),"data-testid":n,id:o,ref:T=>{m.current=T,typeof r=="function"?r(T):r&&(r.current=T)},children:(0,u.createElement)(a,{className:"fr-view rise-tiptap",dangerouslySetInnerHTML:(0,u.useMemo)(()=>({__html:L}),[L])})}),f.map(({placeholder:T,text:S,id:I})=>(0,s.jsxs)(u.Fragment,{children:[(0,go.createPortal)((0,s.jsx)("span",{id:I,onBlur:()=>x(I),onFocus:()=>b(I),onMouseEnter:()=>g(I),onMouseLeave:()=>C(I),role:"button",style:{cursor:"pointer",color:"var(--arc-color-text-disabled)",textDecoration:"underline"},tabIndex:0,children:S}),T),(0,s.jsx)(Rd,{anchorId:I})]},I))]})};function Lb(t,e){const n=document.createElement("div");n.innerHTML=e;for(const o of t)o(n);return n.innerHTML}const ef=t=>t.getAttribute("data-link-type")==="lesson"?!0:(t.getAttribute("href")??"").startsWith("#/lessons/");function Eb(t){for(const e of t.querySelectorAll("a")){ef(e)?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 Tb(t,e){return n=>{if(!(!t||t===e)){for(const o of n.querySelectorAll("a"))if(ef(o)){const r=o.getAttribute("href");if(r){const a=r.includes("?")?"&":"?";o.setAttribute("href",`${r}${a}locale=${encodeURIComponent(t)}`)}}}}}function Sb(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 Ib(t){let e=0;const n=[];for(const o of t.querySelectorAll("a"))if(zn(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 Nb(t){for(const e of t.querySelectorAll("a"))e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}function jb(t){for(const e of t.querySelectorAll("a"))e.removeAttribute("aria-hidden"),e.hasAttribute("data-external")?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}function kb(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 Ab(t){return _1(t).value}function Rb(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 bt=yb,tf=K("cover");function wb(){const t=Ge(),e=ob(),n=Rt(t.description);if(!n)return null;const o=hi("description"),r=(0,Zt.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:tf("details-content-section"),children:[e?(0,s.jsx)(U1,{}):(0,s.jsx)(K2,{}),(0,s.jsx)(bt,{className:tf("details-content-description"),value:I1(n)},"text")]})})}function Pb({Default:t,...e}){const{dueAt:n}=e,r=n&&w2(n)?"brand--background":"brand--color";return(0,s.jsx)(t,{...e,className:r})}var sf=l(16640);function Nn(t){const{to:e,children:n}=t,o=(0,se.zy)(),r=(0,u.useMemo)(()=>(0,sf.B)(e,o),[o,e]);return(0,s.jsx)(se.N_,{...t,to:r,children:n})}const Mb=({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)(Nn,{onClick:n,ref:a,to:o,...r,children:t}),Ob=(0,u.forwardRef)(Mb);class jn{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 Bb(){return!(typeof document>"u"||!("startViewTransition"in document)||jn.isFirefox)}function Db(t){if(!Bb()){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 G1=!1;function fr(t,e="default"){return G1?Promise.resolve():(G1=!0,Db(()=>{document.documentElement.classList.add(`transition-${e}`),t()}).then(()=>{document.documentElement.classList.remove(`transition-${e}`)}).finally(()=>{G1=!1}))}const nf=K("cover"),en=At("CoverAction",()=>{const t=Ge(),{trackingQuizId:e,theme:n}=t,o=(0,ke.Z)(),r=window.viewType==="preview",a=$2(),i=Yx(),c=Zx(),h=a?.id,d=n?.showStartButton??!0,m=(0,_e.Wk)()?c===100:(0,_e.As)(),p=i!=null,f=p?i:h,v=!r&&_e.BI&&(m||!p&&!e),{courseCTALabel:g}=Kx({isCourseComplete:m,percentCourseComplete:c}),C=J()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":v}),b=x=>{x.preventDefault(),fr(()=>{o((0,Tt.p1)(f))},"cover-to-lesson")};return d&&g?(0,s.jsx)("div",{className:nf("header-content-action-wrapper"),children:(0,s.jsx)(Ob,{className:C,onClick:b,to:(0,Tt.p1)(f),children:(0,s.jsx)("span",{className:nf("header-content-action-link-text"),children:g})})}):null});var Hb=l(54811),ua=l.n(Hb),Dt=l(5768);const Hc=ua()("partner-content-course-author__"),Fb=({partnerContentAuthors:t,darkText:e,isImage:n,learn:o,lesson:r,isOnePage:a,selectedContentId:i})=>{const c=Ks()(Bt()("id",i),t),h=js()(["data","authors"],c),m=(r?h:t).filter(C=>C.name),p=J()(Hc("author-container"),{[Hc("author-container-padding-top")]:e}),f=J()({[Hc("gray-text")]:!o&&!a}),v=J()(Hc("author-image")),g=C=>`url(${(0,Dt.ny)({width:"76",height:"76",imageKey:C.image})})`;return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,s.jsx)("ol",{className:p,"data-testid":"partner-content-course-author-container",role:"list",children:m.map(C=>(0,s.jsxs)("li",{className:Hc("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:g(C)}}),(0,s.jsx)("span",{className:f,children:C.name})]},C.name))})]})},pi=K("cover"),Vb=()=>{const t=M1();if(t==null)return null;const{avatar:e,authorName:n,title:o}=t;return(0,s.jsxs)("div",{className:pi("author-with-title"),children:[(0,s.jsx)(of,{avatar:e}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:pi("author-name"),children:n}),(0,s.jsx)("div",{className:pi("author-title"),children:o})]})]})},of=({avatar:t})=>{const e=pi("header-content-authors-avatar");return t?(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${(0,_e.o1)(t)})`}}):(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",children:(0,s.jsx)(m1,{decorative:!0})})},Uo=At("CoverAuthors",({className:t})=>{const{color:e,partnerContentId:n,selectedAuthorId:o,theme:r,themeId:a}=Ge(),{accentContrast:i,coverPageType:c}=r??{},{authorName:h,avatar:d}=M1()??{},m=qt(),p=Jx(),f=!!n&&!!p,g=ks(768)&&(0,Ut.yL)(a,c),C=c===w.BL.LEFT_OVERLAY||c===w.BL.CENTERED_OVERLAY||g;if(o==="none")return null;const b=h||"Unknown User",x=pi("header-content-authors").mix(t),y=pi("header-content-authors-name");return f?(0,s.jsx)("div",{className:x,"data-testid":"cover-authors",children:(0,s.jsx)(Fb,{accentContrast:i,color:e,isImage:C,learn:!0,partnerContentAuthors:p})}):(0,s.jsxs)("div",{className:x,"data-testid":"cover-authors",children:[(0,s.jsx)(of,{avatar:d,isImage:C}),(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})]})]})}),zb=K("cover"),$n=At("CoverContentNoImage",({children:t})=>{const e=zb("header-content");return(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content",children:t})}),ha=t=>{const e=Ge(),n=In();return $b(e,t,n)},$b=(t,e,n)=>{const{media:o,alpha:r}=e==="coverImage"?(0,Fe.dM)(t,n):(0,Fe.LI)(t,n),a="image"in o?(0,Fe.I6)(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:(0,Fe.Vx)(a)}},Ub=K("cover"),K1=()=>{const t=W2(),{alpha:e,ariaLabel:n,media:o,role:r}=ha("coverImage"),a=Ub("header-image"),i=(0,Ut.b9)({alpha:e,color:t,media:o});return(0,s.jsx)("div",{"aria-label":n,className:a,role:r,style:i})},_b=K("cover"),Q1=({children:t})=>{const e=W2(),n=`overlay-${e.toLowerCase()}`,o=_b("header-content",{[n]:!!e});return(0,s.jsxs)("div",{className:o,"data-testid":"cover-header-content",children:[t,(0,s.jsx)(K1,{})]})},Wb=K("cover"),Fc=({hasOverlay:t=!1})=>{const{alpha:e,ariaLabel:n,media:o,role:r}=ha("coverImage"),a=(0,Ut.b9)({alpha:e,hasOverlay:t,media:o}),i=Wb("header-graphic",{"dot-com":_e.BI});return(0,s.jsx)("div",{"aria-label":n,className:i,"data-testid":"cover-header-graphic",role:r,style:a})},Gb=K("cover");function tn({children:t}){const e=!!B1(),n=Gb("header-content-info",{rbc:e,"rise-com":_e.BI});return(0,s.jsx)("div",{className:n,"data-testid":"cover-header-content-info",children:t})}const zs=ds("CoverProgress"),Kb=K("cover"),sn=At("CoverTitle",()=>{const t=Ge(),e=Rt(t.title),n=Kb("header-content-title"),o=hi("title"),r=(0,Zt.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})}),Qb={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function rf(){const t=Ge(),e=rb(),n=t?.theme?.coverPageType||"CENTERED";return e?Qb[n]??n:n}const Zb=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Q1,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(Uo,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(zs,{}),(0,s.jsx)(en,{})]})})}),Yb=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(Uo,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(zs,{}),(0,s.jsx)(en,{})]})})}),Xb=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Fc,{}),(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(Uo,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(zs,{}),(0,s.jsx)(en,{})]})})]}),Jb=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(Uo,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(zs,{}),(0,s.jsx)(en,{})]})}),(0,s.jsx)(Fc,{})]});function qb(){switch(rf()){default:case w.BL.LEFT_OVERLAY:case w.BL.CENTERED_OVERLAY:return(0,s.jsx)(Zb,{});case w.BL.LEFT:case w.BL.CENTERED:return(0,s.jsx)(Yb,{});case w.BL.SPLIT_LEFT_IMAGE:case w.BL.TWO_THIRDS_LEFT_IMAGE:return(0,s.jsx)(Jb,{});case w.BL.SPLIT_RIGHT_IMAGE:case w.BL.TWO_THIRDS_RIGHT_IMAGE:return(0,s.jsx)(Xb,{})}}function ey(){return(0,s.jsx)("header",{className:"cover__header","data-testid":"cover-header",children:(0,s.jsx)(qb,{})})}var ty=l(472),fi=l.n(ty),sy=l(26372);const ny=K("cover");function oy({children:t}){const e=Ge(),{themeId:n}=e?.theme??{},o=rf(),r=sy.useMemo(()=>fi()(o),[o]),a=ny({layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var ry=l(30994),ct=l.n(ry),ay=l(57819),Un=l.n(ay),iy=l(98283),Z1=l.n(iy);const Pr=({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,c]of Object.entries(n))r.setAttribute(i,c);return r};var af=l(26372);class cy extends af.Component{static propTypes={id:ct().any.isRequired,lessonProgress:ct().object.isRequired,type:ct().string.isRequired,items:ct().array};refProgressWrap=af.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=Pr()}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,c=n>i;this.state.isSticky!==c&&this.setState({isSticky:c})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=Un()(-1,"activeIndex",n),r=us()(e);return o===-1?0:Fo()(o)===r?100:Z1()("%","",js()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=Un()(0,"activeIndex",n),r=us()(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 Un()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return Un()(0,"percentComplete",e)}}render(){const{type:e,items:n}=this.props,{isSticky:o}=this.state,r=J()("progress-wrap",{}),a=J()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),i=J()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),c=this.progressValue(),h=e==="timeline"&&n&&n.map(m=>{const p=J()("progress__marker",{"progress__marker--active brand--background":parseInt(c)>=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(${c}% * var(--dir-x)),0px,0px)`}}),h]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[d,(0,go.createPortal)((0,s.jsx)("div",{className:a,children:d}),this.portal)]})}}const Y1=K("lesson-header"),_o=At("LessonHeaderAuthor",({avatar:t,authorName:e,className:n=""})=>{const o=qt();return(0,s.jsxs)("div",{className:`lesson-header__author ${n}`,children:[(0,s.jsx)("img",{alt:"",className:"lesson-header__author-img",src:(0,_e.o1)(t)}),(0,s.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,s.jsx)("span",{className:"lesson-header__author-name",children:e})]})}),Vc=({showPartnerContent:t=!1})=>(0,s.jsx)("div",{className:Y1("author",{"partner-content":t})}),Wo=()=>(0,s.jsx)("div",{className:"lesson-header__counter"}),Go=({lessonName:t,lessonPreposition:e,totalLessons:n,lessonNumber:o,showPartnerContent:r=!1})=>{const{lmsOptions:a}=Ge();return(0,s.jsx)("div",{className:Y1("counter",{"partner-content":r}),children:(0,s.jsx)("div",{className:Y1("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${t} ${o} ${e} ${n}`})})},ma=({description:t})=>(0,s.jsx)(bt,{className:"lesson-header__description",value:t}),ly=({children:t})=>(0,s.jsx)("div",{className:"lesson-header__grouped-row",children:t}),dy=({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})]}),Ko=({title:t,id:e})=>{const n=H2(e,"title");return(0,s.jsx)("h1",{className:"lesson-header__title","data-change-path":n,tabIndex:-1,children:(0,s.jsx)(bt,{value:t})})},uy=t=>{const{authorName:e,avatar:n,color:o,description:r,labels:a,lessonHeaderStyle:i,lessonId:c,lessonNumber:h,partnerContentAuthors:d,showAuthor:m,showLessonCount:p,title:f,totalLessons:v}=t,{lessonName:g,lessonPreposition:C}=a,b=E=>`url(${(0,Dt.ny)({width:"76",height:"76",imageKey:E.image})})`,x=i===w.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:x,children:[(0,s.jsx)(Ko,{id:c,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)(_o,{authorName:e,avatar:n}):(0,s.jsx)(Vc,{}),p?(0,s.jsx)(Go,{lessonName:g,lessonNumber:h,lessonPreposition:C,totalLessons:v}):(0,s.jsx)(Wo,{})]})]}),r&&(0,s.jsx)(ma,{description:r})]})};class ste extends u.Component{static propTypes={authorName:ct().string,avatar:ct().string,description:ct().string,showLessonCount:ct().bool,steps:ct().number,title:ct().string.isRequired,type:ct().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)(uy,{...this.props})})})}),u.Children.map(e,n=>n&&n.type!==cy?null:n)]})})}}const Mr=K("lesson-header"),cf=t=>`url(${(0,Dt.ny)({width:"76",height:"76",imageKey:t?.image})})`,X1=({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:cf(o)}},o.name))}),(0,s.jsx)("span",{"aria-hidden":"true",className:Mr("author-name"),children:e})]})},vi=({partnerContentAuthors:t})=>{const e=qt();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:cf(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 lf=l(26372);const gi=K("lesson-header"),hy=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:h,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&c,v=e&&t&&c&&!f,g=v||f||h,C=h&&(v||f);return(0,s.jsxs)("div",{className:gi("content"),children:[g&&(0,s.jsxs)("div",{className:gi("info-row"),children:[v?(0,s.jsx)(_o,{authorName:t,avatar:e}):(0,s.jsx)(Vc,{}),f&&(0,s.jsx)(vi,{partnerContentAuthors:i}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:gi("info-row--divider"),children:"|"}),h?(0,s.jsx)(Go,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Wo,{})]}),(0,s.jsxs)("div",{className:gi("title-wrapper",{"no-info":!g}),children:[(0,s.jsx)(Ko,{id:p,title:d}),n&&(0,s.jsx)(ma,{description:n})]})]})},my=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:h,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,v=lf.useMemo(()=>e&&t&&c&&!f,[e,t,c,f]);return(0,s.jsxs)("div",{className:gi("content"),children:[h?(0,s.jsx)(Go,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Wo,{}),v&&(0,s.jsx)(_o,{authorName:t,avatar:e}),c&&f&&(0,s.jsx)(X1,{partnerContentAuthors:i}),(0,s.jsx)(Ko,{id:p,title:d}),n&&(0,s.jsx)(ma,{description:n})]})},py=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:h,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,v=lf.useMemo(()=>e&&t&&c&&!f,[e,t,c,f]);return(0,s.jsxs)("div",{className:gi("content"),children:[h?(0,s.jsx)(Go,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Wo,{}),(0,s.jsx)(Ko,{id:p,title:d}),v?(0,s.jsx)(_o,{authorName:t,avatar:e}):(0,s.jsx)(Vc,{showPartnerContent:f}),c&&f&&(0,s.jsx)(vi,{partnerContentAuthors:i}),n&&(0,s.jsx)(ma,{description:n})]})};function fy(t){const e=F1();return t.lessonHeaderSize===w.OX.SMALL&&!e?(0,s.jsx)(hy,{...t}):e?(0,s.jsx)(my,{...t}):(0,s.jsx)(py,{...t})}const Ci=t=>t===w.AY.FLOATING||t===w.AY.FLOATING_FULL;function pa(){const t=Ga();return ks(480)&&t===w.AY.FLOATING?w.AY.FLOATING_FULL:t}function J1({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 df({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 xi=ds("LessonNav"),uf=K("lesson-nav");function vy({allowTooltip:t,courseFinishLabel:e,onFocus:n,nextLesson:o,restrictionData:r,restrictionType:a,ref:i}){const c=o?.id,h=pa(),d=Ci(h),m=d?J1:df;return(0,s.jsxs)(xi,{allowTooltip:t,direction:"next",finish:!0,isFloating:d,navLessonId:c,onFocus:n,ref:i,restrictionData:r,restrictionType:a,children:[(0,s.jsx)("span",{className:uf("link-text").mix("brand--ui"),children:e}),(0,s.jsx)(m,{className:uf("link-icon")})]})}const hf=K("lesson-nav");function gy({allowTooltip:t,lessonNameLabel:e,nextLesson:n,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:i,restrictionType:c}){const h=n?.id,d=pa(),m=Ci(d),f=(0,Tt.GG)(n)&&h,v=Rt(n?.title)||"",g=m?J1:df,C=f?`${e} ${o} - `:"",b=m&&f?`${e} ${o}`:`${C}${v}`;return(0,s.jsxs)(xi,{allowTooltip:t,direction:"next",isFloating:m,navLessonId:h,onFocus:r,ref:a,restrictionData:i,restrictionType:c,children:[(0,s.jsx)("span",{className:hf("link-text").mix("brand--ui"),children:b}),(0,s.jsx)(g,{className:hf("link-icon")})]})}function mf({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 Cy({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 wd=K("lesson-nav");function xy({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:i,ref:c}){const h=a?.id,d=pa(),m=Ci(d),f=(0,Tt.GG)(a)&&h,v=Rt(a?.title)||n,g=m?mf:Cy,C=f?`${o} ${i} - ${v}`:v,b=f&&m?`${o} ${i}`:C;return(0,s.jsx)(xi,{allowTooltip:t,className:e,direction:"previous",isFloating:m,navLessonId:h,onFocus:r,ref:c,children:m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:wd("link-text").mix("brand--ui"),children:b}),(0,s.jsx)(g,{className:wd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g,{className:wd("link-icon")}),(0,s.jsx)("span",{className:wd("link-text").mix("brand--ui"),children:b})]})})}var es=l(52836),by=l(53755);function yy({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,value:h=0}){const d=(0,u.useRef)(null),m=`mask-${(0,by.A)()}`,p=(100-h)/100*(2*a);return(0,es.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:h===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:c})]})}const q1=yy;function Ly({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,transform:h,value:d=0}){const m=(0,u.useRef)(null),p=Math.PI*(Number(o)-Number(c)),f=p*(100-d)/100;return(0,es.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:c,transform:h})}const pf=Ly;var et=l(41367),eh=l(26372);const{COMPACT:Ey,COVER:Ty,OVERLAY:Sy,SIDEBAR:Iy}=et.by,zc=K("progress-circle");function Ny({"aria-hidden":t,"aria-label":e,isCurrent:n,isFailed:o,isPassed:r,scope:a,value:i}){const[c,h]=eh.useState(i===100),d=(0,Te.A)(i),{theme:m}=Ge(),p=m?.progressIndicatorStyle??w.Y2.THEME_DEFAULT,f=a===Ty,v=a===Sy,g=p===w.Y2.THEME_DEFAULT,C=p===w.Y2.CIRCULAR_FILL,b=p===w.Y2.INCOMPLETE_COMPLETE,x=zc({compact:a===Ey,cover:f,current:n,sidebar:a===Iy,overlay:v}),y=zc("track",{"circular-fill":!v&&C,"incomplete-complete":f&&b}),E=zc("runner",{"circular-fill":C,done:c,failed:o,passed:r,unstarted:i===0}),L=zc("pass",{done:c,visible:r}),T=zc("fail",{done:c,visible:o}),S=eh.useMemo(()=>C||i===100?i:0,[C,i]);return eh.useEffect(()=>{if(i!==100&&d===100)h(!1);else if(i===100&&!c&&!b){const I=setTimeout(()=>h(!0),300);return clearTimeout.bind(null,I)}else i===100&&!c&&b&&h(!0)},[c,b,d,i]),(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:x,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:y,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),g?(0,s.jsx)(pf,{className:E,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:i}):(0,s.jsx)(q1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:S}),(0,s.jsx)("path",{className:L,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,s.jsx)("path",{className:T,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 th=(0,u.createContext)(null);th.displayName="CourseNavContext";function jy(t){const{children:e,isCourseNavOpen:n}=t;return(0,s.jsx)(th.Provider,{value:{isCourseNavOpen:n},children:e})}function ky(){return(0,u.useContext)(th)}const ff=960;function $c(){return ks(ff)}function Ay(){const t=Ge(),e=$c(),n=D1();return(0,Ut.L3)({course:t,isMobile:e,search:n})}function Ry(){const t=Ge(),e=$c();return(0,Ut.IO)({course:t,isMobile:e})}var vf=l(26372);class wy extends vf.Component{refProgressWrap=vf.createRef();timeoutScroll;portal;constructor(e){super(e),this.state={isSticky:!1},this.portal=Pr()}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,c=n>i&&n>0;this.state.isSticky!==c&&this.setState({isSticky:c})};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,c=J()("progress-wrap",{}),h=r,d=r&&a,m=J()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":i&&!d,"lesson--open":h&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&d&&!this.isLessonPreview()}),p=J()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),f=this.progressValue(),v=e==="timeline"&&n&&n.map(C=>{const b=J()("progress__marker",{"progress__marker--active brand--background":parseInt(String(f))>=parseInt(C.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:b,style:{left:C.linePosition}},C.id)}),g=(0,s.jsx)("div",{className:c,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:[g,(0,go.createPortal)((0,s.jsx)("div",{"aria-hidden":"true",className:m,children:g}),this.portal)]})}}const Py=t=>{const e=Ay(),{isCourseNavOpen:n}=ky()??{},o=ks(480);return(0,s.jsx)(wy,{...t,isCourseNavOpen:n,isMobile:o,sidebarAvailable:e})},My=li,Oy=li,By=li,Dy=li,Hy=li,Fy=li;function As({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 Vy(t){return(0,s.jsxs)(As,{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 zy({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 $y(t){return(0,s.jsx)(As,{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 Uy(t){return(0,s.jsx)(As,{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 _y(t){return(0,s.jsx)(As,{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 Wy(t){return(0,s.jsxs)(As,{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 Ms=l(33495);function gf(t){const e=(0,Ms.QD)(t,["Default"]);return(0,s.jsx)(Qs,{...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 Pd(t){const e=(0,Ms.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...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 Gy(t){return(0,s.jsx)(As,{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 Ky(t){return(0,s.jsx)(As,{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 Qy(t){return(0,s.jsxs)(As,{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 Zy(t){return(0,s.jsxs)(As,{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 Yy(t){return(0,s.jsx)(As,{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 Xy=K("cover"),Md=At("CoverDetailsSection",({children:t,type:e})=>(0,s.jsx)("section",{className:Xy("details-content-section",{type:e}),children:t}));var sh=l(18718),Jy=l(16997),vr=l.n(Jy),qy=l(51335),Or=l.n(qy),eL=l(81783),bi=l.n(eL),tL=l(89831),sL=l.n(tL),nL=l(22672),oL=l.n(nL),rL=l(2758),aL=l.n(rL),iL=l(7334),cL=l.n(iL),lL=l(10358),dL=l.n(lL),uL=l(19892),hL=l.n(uL),mL=l(88747),nh=l.n(mL),pL=l(65301),yi=l.n(pL),fL=l(41211),vL=l.n(fL),gL=l(9391),oh=l.n(gL),CL=l(15509),rh=l.n(CL),xL=l(50283),Uc=l.n(xL),_c=l(12100),Zs=l(25068),bL=l(28148);const yL=hL()(ua()),Cf=t=>e=>`${t}/${e.id}`,LL=(t,e)=>aL()({data:(0,_c.action)(e),method:"POST",url:(0,Zs.rq)(yL(`/${e}`),Gt()("url"),t),...Vo()(["headers","withCredentials"],t)}),EL=t=>(e,n)=>sL()(e,Cf(n),ah(t,n)),TL=t=>Ps()(wt()({},["response","data"]),rh()(Gt()("type"),(0,_c.error)(t))),SL=(t,e)=>n=>t.postRequest?t.postRequest(e,n):n,xf=t=>e=>n=>o=>(0,Zs.Ve)(o,LL(e,n),t,cL()(TL(n),Uc()(nh()("data"),Gt()("data"))),dL()(yi()(Gt()("error"),bi().Rejected,bi().of)),SL(e,{type:n,payload:o})),IL=({url:t,method:e,data:n,headers:o})=>{if(jn.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(vL()("data"))},NL=bi().fromPromise(IL),ah=oh()(3,xf(bL.Em)),jL=oh()(3,xf(NL)),kL=t=>(e,n)=>oL()(e,Cf(n),ah(t,n)),AL=t=>({debounce:EL(t),send:ah(t),fetchWithKeepAlive:jL(t),throttle:kL(t)}),RL=`${(0,_e._$)("RISE_RUNTIME_URI")}/ducks`,wL=AL({headers:()=>({"x-rise-authoring-client":"b93863d78d700101b0a68eae5517372e696d420e"}),postRequest:(t,e)=>e,url:RL,withCredentials:!0});var PL=l(76019),ML=l.n(PL);const OL=ML()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:(0,Pe.Xl)(),userRole:(0,Pe.O0)(),subId:(0,Pe.EO)(),subPlan:(0,Pe.QJ)(),subStatus:(0,Pe.l6)()}});var BL=l(94158),Wc=l(63974);const DL=ua()("rise/track/")("TRACK"),HL=t=>({...t,context:{locale:navigator.language,device:(0,Wc.Pf)(),channel:(0,Wc.c)(),userAgentData:(0,Wc.NO)(),page:(0,Wc.WE)(),userAgent:(0,Wc.$t)(),...t.context}}),FL=(t,e)=>({...t,properties:{...(0,BL.yV)(e),...t.properties}}),bf=t=>(e,n)=>{const o=n(),r=(0,Pe.kn)();let a=HL(t);return a=FL(a,o),a.userId=a.userId??r,a.author=a.author??r,_e.BI&&(a=OL(a)),e(wL.send(DL)(a))},nn=ua()("partner-content-book-info__"),VL=t=>{const{authors:e,backgroundColor:n,bookImage:o,bookTitle:r,buyLink:a,block:i,publishedAt:c,track:h,trackingInfo:d}=t,m=e.filter(I=>!xs()(I.name)),p=vr()(I=>I.name,m),f=p.length>1?wc()(" & ",p):p[0],v=f.slice(-1)==="s"?"":"s",g=(0,ut.cP)(n),C=J()({[nn("book-image-block")]:i&&!g},{[nn("book-image-block")&&nn("dark-theme-book-image")]:i&&g},{[nn("book-image-course")]:!i}),b=nn(i?"flex-block":"flex-course"),x=nn(i?"image-container-block":"image-container-course"),y=J()(nn("small-text"),{[nn("dark-theme")]:g}),E=J()(nn("black-text"),{[nn("dark-theme")]:g}),L=J()(nn("button"),{[nn("dark-theme-button")]:g}),T=(0,Dt.ny)({height:"210",width:"140",imageKey:o}),S=(0,u.useCallback)(()=>{_e.BI&&c&&h({event:"Click Tracked",payload:Or()(d,{type:"Buy Link"})})},[c,h,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:x,children:o?(0,s.jsx)("img",{alt:"",className:C,src:T}):(0,s.jsx)("div",{className:C})}),(0,s.jsxs)("div",{className:nn("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:L,href:a,onClick:S,rel:"noopener noreferrer",target:"_blank",children:"Buy the book"})]})]})},zL={track:bf},yf=(0,sh.Ls)(null,zL)(VL),_n=ua()("partner-content-partner-info__"),$L=({backgroundColor:t,block:e,link:n,publishedAt:o,track:r,trackingInfo:a})=>{const i=e?(0,Dt.H5)():(0,Dt.DB)(),c=_n(e?"nbic-logo-light-bulb":"nbic-logo"),h=_n(e?"block-logo-container":"logo-container"),d=(0,ut.cP)(t),m=J()(_n("small-text"),{[_n("dark-theme")]:d}),p=J()(_n("black-text"),{[_n("dark-theme")]:d}),f=J()(_n("button"),{[_n("dark-theme-button")]:d}),v=(0,u.useCallback)(()=>{_e.BI&&o&&r({event:"Click Tracked",payload:Or()(a,{type:"Partner Link"})})},[o,r,a]);return(0,s.jsxs)("section",{className:_n("flex"),children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:h,children:(0,s.jsx)("img",{alt:"",className:c,src:i})}),(0,s.jsxs)("div",{className:_n("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"})]})]})},UL={track:bf},Lf=(0,sh.Ls)(null,UL)($L),Li=ua()("partner-content-author-card__"),Ef=t=>{const{courseId:e,partnerContent:n,publishedAt:o,tenantId:r}=t,{data:a,type:i}=n,{authors:c,bookImage:h,bookTitle:d,buyLink:m,internalId:p,nbicLink:f}=a,v=c.filter(y=>y.name),g={courseId:e,partnerContentId:n.id,partnerContentInternalId:p,tenantId:r,contentSubtype:i},C=J()(Li("flex"),Li("author-container")),b=y=>(0,Dt.ny)({width:"122",height:"122",imageKey:y}),x=(y,E)=>(0,s.jsx)("div",{"aria-hidden":"true",className:Li("image-container"),children:y?(0,s.jsx)("img",{alt:E,className:Li("author-image"),src:b(y)}):(0,s.jsx)("div",{className:Li("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:C,children:[x(y.image,y.name),(0,s.jsx)("p",{className:Li("author-name-text"),children:y.name})]},y.name))]})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(yf,{authors:c,bookImage:h,bookTitle:d,buyLink:m,publishedAt:o,trackingInfo:g})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Lf,{link:f,publishedAt:o,trackingInfo:g})})]})},_L=K("cover");function WL(t){const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t;if(!r)return null;const c=_L("details-content-aside",{logo:o});return(0,s.jsx)("div",{className:c,children:(0,s.jsx)(Md,{type:"partner-content",children:(0,s.jsx)(Ef,{courseId:e,partnerContent:n,publishedAt:a,tenantId:i})})})}var GL=l(32050),Od=l.n(GL);const KL=K("cover"),QL=At("CoverDetailsContentHeading",({className:t="",type:e,...n})=>{const o=Od()(["Default"],n);return(0,s.jsx)("header",{...o,className:KL("details-content-heading",{type:e}).mix(t)})}),ZL=K("cover");function YL({children:t,title:e,type:n}){const o=Ge(),{description:r,media:a,partnerContentId:i}=o,c=!!i,d=(a&&"image"in a?a.image?.key:null)!=null,p=n==="outline"?r?!d&&!c?"outline-no-logo":c&&!d?"outline-has-partner-content":c&&d?"outline-has-pc-and-logo":"outline":"outline-no-description":n;return(0,s.jsxs)("section",{className:ZL("details-content-section",{type:p}),children:[(0,s.jsx)(QL,{type:n,children:(0,s.jsx)("h2",{children:e})}),t]})}const XL=K("cover");function Gc(){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:XL("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 JL=()=>ks(480),qL=()=>ks(768),eE={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function Tf(){const t=Ge(),e=qL(),n=t?.theme?.coverPageType||"CENTERED";return e?eE[n]??n:n}const tE=K("cover"),sE=()=>null,nE=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Q1,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(zs,{}),(0,s.jsx)(Gc,{}),(0,s.jsx)(Uo,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(en,{})]})})}),oE=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(zs,{}),(0,s.jsx)(Gc,{}),(0,s.jsx)(Uo,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(en,{})]})})}),rE=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Fc,{}),(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(zs,{}),(0,s.jsx)(Gc,{}),(0,s.jsx)(Uo,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(en,{})]})})]}),aE=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(zs,{}),(0,s.jsx)(Gc,{}),(0,s.jsx)(Uo,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(en,{})]})}),(0,s.jsx)(Fc,{})]}),iE=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(zs,{}),(0,s.jsx)(Gc,{}),(0,s.jsx)(Uo,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(en,{})]})}),(0,s.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,s.jsx)(Fc,{})})]});function cE(){switch(Tf()){default:case"CENTERED_IMAGE":return(0,s.jsx)(iE,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,s.jsx)(oE,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,s.jsx)(aE,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,s.jsx)(rE,{});case"CENTERED_OVERLAY":return(0,s.jsx)(nE,{})}}function lE(){return(0,s.jsxs)("header",{className:tE("header",{meta:!1}),"data-testid":"cover-header",children:[(0,s.jsx)(cE,{}),(0,s.jsx)(u.Suspense,{children:(0,s.jsx)(sE,{})})]})}var dE=l(26372);const uE=K("cover");function hE({children:t}){const e=Ge(),{themeId:n}=e?.theme??{},o=Tf(),r=dE.useMemo(()=>fi()(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})}var Sf=l(26372);const ih=K("lesson-header"),mE=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:h,totalLessons:d,lessonId:m})=>{const p=a!=null&&i,f=e&&t&&i&&!p,v=f||p||c,g=c&&(f||p);return(0,s.jsxs)("div",{className:ih("content"),children:[v&&(0,s.jsxs)("div",{className:ih("info-row"),children:[f?(0,s.jsx)(_o,{authorName:t,avatar:e}):(0,s.jsx)(Vc,{}),p&&(0,s.jsx)(vi,{partnerContentAuthors:a}),g&&(0,s.jsx)("span",{"aria-hidden":"true",className:ih("info-row--divider"),children:"|"}),c?(0,s.jsx)(Go,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(Wo,{})]}),(0,s.jsx)("div",{children:(0,s.jsx)(Ko,{id:m,title:h})})]})},pE=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:h,totalLessons:d,lessonId:m})=>{const p=a!=null,f=Sf.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[c?(0,s.jsx)(Go,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(Wo,{}),f&&(0,s.jsx)(_o,{authorName:t,avatar:e}),i&&p&&(0,s.jsx)(X1,{partnerContentAuthors:a}),(0,s.jsx)(Ko,{id:m,title:h})]})},fE=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:h,totalLessons:d,lessonId:m})=>{const p=a!=null,f=Sf.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[f?(0,s.jsx)(_o,{authorName:t,avatar:e}):(0,s.jsx)(Vc,{}),i&&p&&(0,s.jsx)(vi,{partnerContentAuthors:a}),(0,s.jsx)(Ko,{id:m,title:h}),c?(0,s.jsx)(Go,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(Wo,{})]})};function vE(t){const e=JL();return t.lessonHeaderSize===w.OX.SMALL&&!e?(0,s.jsx)(mE,{...t}):e?(0,s.jsx)(pE,{...t}):(0,s.jsx)(fE,{...t})}var ch=l(26372);const{COMPACT:gE,COVER:CE,OVERLAY:xE,SIDEBAR:bE}=et.by,Ei=K("progress-circle");function yE({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,c]=ch.useState(a===100),h=(0,Te.A)(a),{theme:d}=Ge(),m=d?.progressIndicatorStyle??w.Y2.THEME_DEFAULT,p=r===CE,f=r===xE,v=m===w.Y2.THEME_DEFAULT,g=m===w.Y2.CIRCULAR_FILL,C=m===w.Y2.INCOMPLETE_COMPLETE,b=Ei("default",{failed:n,passed:o}),x=Ei({compact:r===gE,cover:p,overlay:f,sidebar:r===bE}),y=Ei("track",{"circular-fill":!f&&g,"incomplete-complete":p&&C}),E=Ei("fill",{"circular-fill":g,done:i,failed:n,passed:o,unstarted:a===0}),L=Ei("pass",{done:i,visible:o}),T=Ei("fail",{done:i,visible:n}),S=ch.useMemo(()=>g||a===100?a:0,[g,a]);return ch.useEffect(()=>{if(a!==100&&h===100)c(!1);else if(a===100&&!i&&!C){const I=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,I)}else a===100&&!i&&C&&c(!0)},[i,C,h,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:x,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)(q1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:S}),(0,s.jsx)("path",{className:L,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,s.jsx)("path",{className:T,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 LE({Default:t,...e}){return(0,s.jsx)(t,{...e,hasOverlay:!1})}var EE=l(59419),Bd=l.n(EE);const If=t=>e=>(t(e),e.preventDefault()),Br=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},Co=t=>e=>{t(e),e.preventDefault(),Br(e)};function Dd(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 TE(t){return Dd(t,{limit:1})[0]??null}function Nf(t,e){(0,u.useLayoutEffect)(()=>{let n=t.current;const o=Dd(n);for(const r of o)r?.addEventListener("scroll",e);return()=>{for(const r of o)r?.removeEventListener("scroll",e)}},[e,t])}var Qo=l(23456),SE=l(48819),Wn=l.n(SE),IE=l(56438),fa=l.n(IE),NE=l(11748),va=l.n(NE),jE=l(8486),Dr=l.n(jE);const kE={keys:["End"],keyCode:Qo.KEY_END},AE={keys:["Enter"],keyCode:Qo.KEY_RETURN},RE={keys:["Home"],keyCode:Qo.KEY_HOME},wE={keys:["Tab"],keyCode:Qo.KEY_TAB},PE={keys:[" "],keyCode:Qo.KEY_SPACE},ME={keys:["Escape","Esc"],keyCode:Qo.KEY_ESCAPE},OE={keys:["ArrowUp"],keyCode:Qo.KEY_UP},BE={keys:["ArrowDown"],keyCode:Qo.KEY_DOWN},DE={keys:["ArrowLeft"],keyCode:Qo.KEY_LEFT},HE={keys:["ArrowRight"],keyCode:Qo.KEY_RIGHT},Zo=({keyCode:t,keys:e})=>n=>n.keyCode?n.keyCode===t:fa()(n.key,e),FE=t=>t.altKey||t.ctrlKey||t.metaKey,VE=Zo(kE),Ti=Zo(AE),zE=Zo(RE),Hd=Zo(wE),lh=Zo(PE),gn=Zo(ME),ga=Zo(OE),Ca=Zo(BE),Hr=Zo(DE),Fr=Zo(HE),Kc=Dr()(lh,Ti),hte=Dr()(Hd,Ti),$E=Dr()(Fr,ga),UE=Dr()(Hr,Ca),_E=Dr()(ga,Ca),jf=Uc()(Kc),kf=25,WE=va()((t,e)=>{t.scrollTop!==0&&(e.preventDefault(),t.scrollTop-=kf)}),GE=va()((t,e,n)=>{e&&(n.preventDefault(),t.scrollTop+=kf)}),KE=(t,e)=>n=>{const o=GE(t,e),r=WE(t);Wn()([[Ca,o],[ga,r]])(n)},Fd=K("lesson-progress"),{COMPACT:dh,COVER:Qc,OVERLAY:uh,SIDEBAR:Zc}=et.by;function QE({canComplete:t,color:e,hasRestriction:n,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:i,isFailed:c,isLegacy:h=void 0,isPassed:d,isTooltipVisible:m,navigationStyle:p,onHideTooltip:f,onMarkComplete:v=void 0,onMarkReset:g=void 0,onShowTooltip:C,percentComplete:b,progressGraphic:x,scope:y,labels:E}){const L=(0,u.useRef)(),T=(0,u.useRef)(),S=(0,u.useRef)(),I=(0,u.useRef)(),{theme:{progressIndicatorStyle:N=w.Y2.THEME_DEFAULT}}=Ge(),k=N===w.Y2.THEME_DEFAULT,M=Fd({compact:y===dh,cover:y===Qc&&!h,"legacy-cover":y===Qc&&h,inactive:n,overlay:y===uh,sidebar:y===Zc&&!h,"legacy-sidebar":y===Zc&&h,"theme-default":k}),R=Fd("graphic",{compact:y===dh,cover:y===Qc&&!h,"legacy-cover":y===Qc&&h,overlay:y===uh,sidebar:y===Zc&&!h,"legacy-sidebar":y===Zc&&h}),A=Fd("tooltip",{legacy:h}).toString(),B=(0,u.useCallback)(()=>{o?g?.():v?.()},[o,v,g]),P=(0,u.useCallback)(F=>{Bd()(f)&&gn(F)&&m&&f()},[f,m]),O=(0,u.useCallback)(()=>{clearTimeout(S.current),!n&&Bd()(C)&&(T.current=setTimeout(C,600))},[n,C]),D=(0,u.useCallback)(()=>{clearTimeout(T.current),Bd()(f)&&(S.current=setTimeout(f,150))},[f]),$=(0,u.useCallback)(()=>{setTimeout(()=>{if(m){const F=L.current.getBoundingClientRect(),W=I.current.offsetParent.getBoundingClientRect(),{height:de,width:fe}=F,Se=F.left-W.left,De=F.top-W.top;Object.assign(I.current.style,{transform:`translate(${Se}px, ${De}px)`,width:`${fe}px`,height:`${de}px`})}},0)},[m]);if((0,u.useLayoutEffect)(()=>$(),[$]),(0,es.A)("resize",$,window),(0,es.A)("keydown",P,document),Nf(L,D),t){const F=_e.BI&&b===100,W=ZE({labels:E,percentComplete:b,canReset:!F}),de=!i||F,fe=Fd("action",{disabled:de});return(0,s.jsx)("span",{className:M,"data-testid":"lesson-progress",children:(0,s.jsx)("button",{"aria-label":W,className:fe,disabled:de,onBlur:f,onClick:B,onFocus:C,type:"button",children:(0,s.jsxs)("span",{className:R,onMouseEnter:O,onMouseLeave:D,ref:L,children:[(0,s.jsx)(x,{"aria-hidden":"true",color:e,isCurrent:r,isDark:a,isFailed:c,isPassed:d,navigationStyle:p,scope:y,value:b}),i&&!n&&(0,s.jsx)(Af,{className:A,dark:a,ref:I,scope:y,visible:m,children:W})]})})})}const H=YE({labels:E,isFailed:c,percentComplete:b});return(0,s.jsx)("span",{className:M,"data-testid":"lesson-progress",children:(0,s.jsxs)("span",{className:R,onMouseEnter:O,onMouseLeave:D,ref:L,children:[(0,s.jsx)(x,{"aria-label":H,color:e,isCurrent:r,isDark:a,isFailed:c,isPassed:d,navigationStyle:p,scope:y,value:b}),i&&!n&&(0,s.jsx)(Af,{className:A,dark:a,ref:I,scope:y,visible:m,children:H})]})})}const Af=(0,u.forwardRef)((t,e)=>{const{children:n,className:o,dark:r,scope:a,visible:i}=t,c=(0,u.useMemo)(()=>K(o),[o]),h=c({compact:a===dh,cover:a===Qc,overlay:a===uh,sidebar:a===Zc,visible:i}),d=c("inner",{dark:r,light:!r}),m=(0,s.jsx)("div",{"aria-hidden":"true",onClick:Br,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:h,children:(0,s.jsx)("div",{className:d,children:n})})})});return(0,go.createPortal)(m,Pr())});function ZE({labels:t,canReset:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:i,progressPieClickToReset:c}=t;return o&&e?`${r}. ${c}`:n===100&&!e?r:n===0?`${a}. ${i}`:`${n}% ${r}. ${i}`}function YE({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 Rf=u.memo(QE);function XE({color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:i,lessonTitle:c,navigationStyle:h,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:v,labels:g}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"overview-list-item__progress",children:(0,s.jsx)(Rf,{canComplete:!1,color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:i,labels:g,navigationStyle:h,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:v})}),(0,s.jsx)("span",{className:"overview-list-item__title",children:c})]})}function JE(){return null}function wf({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 qE(t){const e=(0,Ms.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...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 eT(t){const e=(0,Ms.QD)(t,["Default"]);return(0,s.jsx)(Qs,{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 Pf(t){return(0,s.jsx)(As,{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 Mf(t){const e=(0,Ms.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...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 Of(t){const e=(0,Ms.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...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 tT({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 sT(t){const e=(0,Ms.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{...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 nT({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 oT(t){const e=(0,Ms.QD)(t,["Default"]);return(0,s.jsxs)(Qs,{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 rT=()=>ks(1200),aT=()=>ks(768),hh=()=>ks(480),Bf=K("cover");function iT(){const t=Ge(),e=rT(),n=Rt(t.description);if(!n)return null;const o=hi("description"),r=(0,Zt.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:Bf("details-content-section"),children:[e&&(0,s.jsx)(U1,{}),(0,s.jsx)(bt,{className:Bf("details-content-description"),value:I1(n)},"text")]})})}const cT={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function mh(){const t=Ge(),e=aT(),n=t?.theme?.coverPageType||"CENTERED";return e?cT[n]??n:n}function lT({Default:t,...e}){const n=mh(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(n);return(0,s.jsx)(t,{...e,reverseColumns:o})}const Df=K("cover");function Yc({accentColor:t,hasOverlay:e=!1,isShape:n=!1}){const{alpha:o,ariaLabel:r,media:a,role:i}=ha("coverImage"),c=n?{backgroundColor:t}:(0,Ut.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:c})})}const Hf=t=>(0,s.jsx)(Vd,{...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"})})}),Ff=t=>(0,s.jsx)(Vd,{...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"})})}),Vf=t=>(0,s.jsx)(Vd,{...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"})})}),zf=t=>(0,s.jsx)(Vd,{...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"})})}),dT={LEFT_OVERLAY:Hf,LEFT:Hf,CENTERED:Ff,CENTERED_OVERLAY:Ff,SPLIT_LEFT:Vf,SPLIT_LEFT_IMAGE:Vf,SPLIT_RIGHT:zf,SPLIT_RIGHT_IMAGE:zf},Vd=({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 xa({className:t,coverPageType:e}){const n=e?dT[e]:null;return n?(0,s.jsx)(n,{className:t}):null}const $f=K("cover"),Si=()=>(0,s.jsxs)("div",{className:$f("author-published-wrap"),children:[(0,s.jsx)(Uo,{}),(0,s.jsx)(K2,{})]}),uT=({coverPageType:t})=>{const e=hh();return(0,s.jsxs)(Q1,{children:[(0,s.jsx)(xa,{coverPageType:t}),(0,s.jsxs)(tn,{children:[!e&&(0,s.jsx)(zs,{}),(0,s.jsx)(Si,{}),(0,s.jsx)(sn,{}),e&&(0,s.jsx)(zs,{}),(0,s.jsx)(en,{})]})]})},hT=({coverPageType:t})=>{const e=hh();return(0,s.jsxs)($n,{children:[(0,s.jsx)(xa,{coverPageType:t}),(0,s.jsxs)(tn,{children:[!e&&(0,s.jsx)(zs,{}),(0,s.jsx)(Si,{}),(0,s.jsx)(sn,{}),e&&(0,s.jsx)(zs,{}),(0,s.jsx)(en,{})]})]})},mT=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(xa,{coverPageType:t}),(0,s.jsx)(Yc,{}),(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(zs,{}),(0,s.jsx)(Si,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(en,{})]})})]}),pT=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(zs,{}),(0,s.jsx)(Si,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(en,{})]})}),(0,s.jsx)(xa,{coverPageType:e}),(0,s.jsx)(Yc,{accentColor:t,isShape:!0})]}),fT=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(zs,{}),(0,s.jsx)(Si,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(en,{})]})}),(0,s.jsx)(xa,{coverPageType:t}),(0,s.jsx)(Yc,{})]}),vT=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(xa,{coverPageType:e}),(0,s.jsx)(Yc,{accentColor:t,isShape:!0}),(0,s.jsx)($n,{children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(zs,{}),(0,s.jsx)(Si,{}),(0,s.jsx)(sn,{}),(0,s.jsx)(en,{})]})})]});function gT(t){const e=mh(),n={...t,coverPageType:e};switch(e){default:case w.BL.LEFT_OVERLAY:case w.BL.CENTERED_OVERLAY:return(0,s.jsx)(uT,{...n});case w.BL.LEFT:case w.BL.CENTERED:return(0,s.jsx)(hT,{...n});case w.BL.SPLIT_LEFT:return(0,s.jsx)(pT,{...n});case w.BL.SPLIT_LEFT_IMAGE:return(0,s.jsx)(fT,{...n});case w.BL.SPLIT_RIGHT:return(0,s.jsx)(vT,{...n});case w.BL.SPLIT_RIGHT_IMAGE:return(0,s.jsx)(mT,{...n})}}function CT(t){const{partnerContentId:e}=Ge(),n=B1(),r=!!(!!e&&!!n||_e.BI);return(0,s.jsx)("header",{className:$f("header",{"with-info":r}),"data-testid":"cover-header",children:(0,s.jsx)(gT,{...t})})}var xT=l(26372);const bT=K("cover");function yT({children:t}){const e=Ge(),{themeId:n}=e?.theme??{},o=mh(),r=xT.useMemo(()=>fi()(o),[o]),a=bT(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}const LT=Os("AlignLeft"),zd=Os("ArrowDown"),Uf=Os("ArrowRight"),_f=Os("ArrowUp"),ET=Os("Category"),TT=Os("ChevronDown"),ST=Os("ChevronUp"),IT=Os("LessonsComplete"),NT=Os("LessonsRequirement"),jT=Os("QuestionBox"),kT=Os("QuizFailed"),AT=Os("QuizPassed"),RT=Os("QuizRequirement"),Xc=Os("Search"),Wf=Os("ToggleDown"),wT=Os("Touch"),PT=Os("VideoCamera"),$d=Os("X"),MT=t=>{const e=t.indexOf("-");return e===-1?t:t.slice(0,e)},mte=(t,e)=>{const n=MT(t);return e.find(({iso639Code:o})=>o===t)||e.find(({iso639Code:o})=>o===n)||e.find(({defaultId:o,defaultSet:r})=>r&&o===1)},Ii=({percent:t,label:e,isRTL:n})=>{if(e.includes("%")){const o=n?`%${t}`:`${t}%`;return e.replace("%",o)}return`${t} ${e}`},gr=K("cover");function OT({nextLesson:t,percentComplete:e}){const n=hh(),o=vn(),r=qt();if(e===0||!_e.BI)return null;const a=Ii({percent:e,label:r.progressSummaryPercentComplete,isRTL:o});return(0,s.jsxs)("div",{className:gr("progress"),children:[n&&(0,s.jsx)("div",{className:gr("progress-text"),children:a}),(0,s.jsx)("div",{className:gr("progress-outer"),children:(0,s.jsx)("div",{className:gr("progress-inner"),style:{width:`${e}%`}})}),(0,s.jsxs)("div",{className:gr("progress-text-wrap"),children:[!n&&(0,s.jsx)("div",{className:gr("progress-text"),children:a}),t&&(0,s.jsxs)("div",{className:gr("progress-next-lesson"),children:[(0,s.jsx)(Uf,{className:gr("progress-next-lesson-icon").toString(),decorative:!0}),(0,s.jsx)("span",{"aria-hidden":"true",className:gr("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})]})}var Gf=l(26372);const Ud=K("lesson-header"),ph=()=>(0,s.jsx)("div",{className:Ud("author--hidden")}),BT=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:h,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&c,v=e&&t&&c&&!f,g=v||f||h,C=h&&(v||f);return(0,s.jsxs)("div",{className:Ud("content"),children:[g&&(0,s.jsxs)("div",{className:Ud("info-row"),children:[v?(0,s.jsx)(_o,{authorName:t,avatar:e}):(0,s.jsx)(ph,{}),f&&(0,s.jsx)(vi,{partnerContentAuthors:i}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:Ud("info-row--divider"),children:"|"}),h?(0,s.jsx)(Go,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Wo,{})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(Ko,{id:p,title:d}),n&&(0,s.jsx)(ma,{description:n})]})]})},DT=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:h,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,v=c!=null,g=Gf.useMemo(()=>n&&e&&h&&!v,[n,e,h,v]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ko,{id:f,title:m}),(0,s.jsxs)(ly,{children:[g?(0,s.jsx)(_o,{authorName:e,avatar:n}):(0,s.jsx)(ph,{}),h&&v&&(0,s.jsx)(vi,{partnerContentAuthors:c}),d?(0,s.jsx)(Go,{lessonName:r,lessonNumber:a,lessonPreposition:i,showPartnerContent:v,totalLessons:p}):(0,s.jsx)(Wo,{})]}),o&&(0,s.jsx)(ma,{description:o})]})},HT=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:h,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,v=c!=null,g=Gf.useMemo(()=>n&&e&&h&&!v,[n,e,h,v]);return(0,s.jsxs)(s.Fragment,{children:[d?(0,s.jsx)(Go,{lessonName:r,lessonNumber:a,lessonPreposition:i,totalLessons:p}):(0,s.jsx)(Wo,{}),g?(0,s.jsx)(_o,{authorName:e,avatar:n}):(0,s.jsx)(ph,{}),h&&v&&(0,s.jsx)(X1,{partnerContentAuthors:c}),(0,s.jsx)(Ko,{id:f,title:m}),o&&(0,s.jsx)(ma,{description:o})]})};function FT(t){const e=F1();return t.lessonHeaderSize===w.OX.SMALL&&!e?(0,s.jsx)(BT,{...t}):e?(0,s.jsx)(HT,{...t}):(0,s.jsx)(DT,{...t})}var _d=l(26372);const{COMPACT:VT,COVER:zT,OVERLAY:$T,SIDEBAR:UT}=et.by,Jc=K("progress-circle");function _T({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,c]=_d.useState(a===100),h=(0,Te.A)(a),{theme:d}=Ge(),m=d?.progressIndicatorStyle??w.Y2.THEME_DEFAULT,p=r===zT,f=r===$T,v=m===w.Y2.THEME_DEFAULT,g=m===w.Y2.CIRCULAR_FILL,C=m===w.Y2.INCOMPLETE_COMPLETE,b=Jc({compact:r===VT,cover:p,sidebar:r===UT,overlay:f}),x=Jc("track",{"circular-fill":!f&&g,"incomplete-complete":p&&C}),y=Jc("runner",{"circular-fill":g,done:i,failed:n,passed:o,unstarted:a===0}),E=Jc("pass",{done:i,visible:o}),L=Jc("fail",{done:i,visible:n}),T=_d.useMemo(()=>g||a===100?a:0,[g,a]);_d.useEffect(()=>{if(a!==100&&h===100)c(!1);else if(a===100&&!i&&!C){const I=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,I)}else a===100&&!i&&C&&c(!0)},[i,C,h,a]);const S=_d.useCallback(()=>{a===100&&c(!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:x,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)(pf,{className:y,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:S,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,s.jsx)(q1,{className:y,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:S,r:6.5,strokeLinecap:"round",strokeWidth:2,value:T}),(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:L,clipRule:"evenodd",d:"M7.5 8.56157L8.84426 9.90564L9.90503 8.84473L8.56078 7.50066L9.90543 6.15582L8.84452 5.09504L7.49986 6.43988L6.15452 5.09473L5.09375 6.15564L6.43909 7.5008L5.09452 8.84555L6.15543 9.90632L7.5 8.56157Z",fillRule:"evenodd"})]})}const Wd=({"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}%`}})}),WT=K("nav-sidebar-header");function GT(t){const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=t;return(0,s.jsxs)("div",{className:WT("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(Wd,{"aria-hidden":"true",progress:r,runnerClass:e,trackClass:o})]})}function KT({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 QT(t){return(0,s.jsx)(Qs,{...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 ZT(t){const e=(0,Ms.QD)(t,["Default"]);return(0,s.jsx)(Qs,{...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 YT({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 XT(t){return(0,s.jsx)(As,{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 Kf(t){return(0,s.jsx)(As,{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 JT(t){return(0,s.jsx)(As,{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 qT(t){return(0,s.jsxs)(As,{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 eS(t){return(0,s.jsx)(As,{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 tS(t){return(0,s.jsxs)(As,{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 sS(t){return(0,s.jsxs)(As,{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 nS(t){return(0,s.jsx)(As,{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 Qf=l(26372);const Zf=z,oS={classic:z,default:z,imaginative:ee,organic:oe},Yf=Object.assign(Qf.createContext(Zf),{displayName:"ThemeContext"});function rS(){return Qf.useContext(Yf)}function aS({themeId:t,...e}){return(0,s.jsx)(Yf.Provider,{...e,value:oS[t]??Zf})}function iS(t){return(0,s.jsx)(s.Fragment,{children:t.children})}function cS(){return null}function Xf(t,e,n){function o(r){const i=rS()?.[t]?.[e]??n;return(0,s.jsx)(i,{...r,Default:n})}return o.displayName=`ThemeComponent(${e})`,o}function At(t,e=iS){return Xf("components",t,e)}function Os(t){return Xf("icons",t,cS)}const lS=K("cover");function dS({className:t="",dueAt:e}){const n=b0(),o=Cc(),r=o==null||o.quizPassed||o.outOfAttempts,a=w2(e),i=lS("due-date",{urgent:a}).mix(t);return!e||n&&r?null:(0,s.jsx)("div",{className:i,tag:"div",children:S1(e)})}const uS=At("CoverDueDate",dS);function hS(t){const{dueAt:e}=Wt(t);return{dueAt:e}}const mS=(0,U.Ng)(hS)(uS),ba=K("cover"),pS=At("CoverProgress",({nextLesson:t,percentComplete:e})=>{const n=vn(),o=(0,ht.useLabelsMap)();if(e===0||window.isPublicShare||!_e.BI)return null;const r=Ii({percent:e,label:o.progressSummaryPercentComplete,isRTL:n});return(0,s.jsxs)("div",{className:ba("progress"),children:[(0,s.jsx)("div",{className:ba("progress-text"),children:r}),(0,s.jsx)("div",{className:ba("progress-outer"),children:(0,s.jsx)("div",{className:ba("progress-inner"),style:{width:`${e}%`}})}),t&&(0,s.jsxs)("div",{className:ba("progress-next-lesson"),children:[(0,s.jsx)(Uf,{className:ba("progress-next-lesson-icon").toString(),decorative:"true"}),(0,s.jsx)("span",{"aria-hidden":"true",className:ba("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})}),fS=()=>{const t=HC();return(e,{currentLocale:n})=>{const o=t(n,e),r=Wl(e);return{nextLesson:o,percentComplete:r}}},vS=Xe()(jt.wZ,(0,U.Ng)(fS))(pS),{useLabelsMap:gS}=l(9252),Jf=({failed:t,complete:e})=>{const n=gS();return(0,s.jsxs)("span",{className:"visually-hidden-always",children:[t?n?.a11yCoverRequirementFailed||"Requirement failed":e?n?.a11yCoverRequirementComplete||"Requirement complete":n?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},xo=K("cover");function CS(){const t=Ge(),e=(0,ht.useLabelsMap)(),{trackingCompletionPercentage:n,trackingQuizId:o}=t;return n==null&&!o?null:(0,s.jsxs)("section",{className:xo("requirements-section"),children:[(0,s.jsx)("h2",{className:xo("requirements-title"),children:e?.coverCourseRequirements||"Course Requirements"}),(0,s.jsxs)("ul",{className:xo("requirements-list"),children:[(0,s.jsx)(xS,{}),(0,s.jsx)(yS,{})]})]})}function xS(){const{trackingCompletionPercentage:t}=Ge(),e=U2(),n=Fn(),o=(0,ht.useLabelsMap)(),r=Math.ceil(t/100*e),a=r===e;if(t==null||r==null)return null;const i=n>=t,c=i?IT:NT;return(0,s.jsxs)("li",{className:xo("lesson-requirement"),role:"listitem",children:[(0,s.jsx)(c,{"aria-hidden":"true",className:xo("lesson-requirement-icon",{complete:i}).toString()}),(0,s.jsxs)("span",{className:xo("lesson-requirement-text"),children:[(0,s.jsx)(Jf,{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 bS={passed:AT,failed:kT,requirement:RT};function yS(){const t=(0,ht.useLabelsMap)(),e=x0(),n=Cc(),o=vn(),r=fs(e?.title),a=e?.settings?.passingScore;if(!r||!n)return null;const{outOfAttempts:i,quizPassed:c}=n,h=!c&&i;let d="requirement";c?d="passed":h&&(d="failed");const m=bS[d],p=Ii({percent:a,label:t?.coverQuizPercentOrHigher||"% or higher",isRTL:o});return(0,s.jsxs)("li",{className:xo("quiz-requirement"),role:"listitem",children:[(0,s.jsx)(m,{"aria-hidden":"true",className:xo("quiz-requirement-icon",{type:d}).toString()}),(0,s.jsxs)("span",{className:xo("quiz-requirement-text"),children:[(0,s.jsx)(Jf,{complete:c,failed:h}),r,a!=null&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",className:xo("quiz-requirement-seperator"),children:"\xA0|\xA0"}),t?.coverQuizScoreOf||"Score of"," ",p]}),h&&(0,s.jsx)("div",{className:xo("quiz-requirement-no-attempts"),children:t?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}function qc(t){const{to:e,children:n}=t,o=(0,se.zy)(),r=(0,u.useMemo)(()=>(0,sf.B)(e,o),[o,e]);return(0,s.jsx)(se.k2,{...t,to:r,children:n})}var fh=l(2916),LS=l(25609),ES=l(9805),TS=l(94058),SS=l(44141),IS=l(75149),NS=l(63939),jS=l(24938),kS=l(25652),AS=l(76791),RS=l(66601),wS=l(52881),PS=l(84173),MS=l(79439),OS=l(84112),BS=l(50314),DS=l(66102),HS=l(51399),FS=l(82666),VS=l(27081),zS=l(85925),$S=l(67056),US=l(19284),_S=l(66919),WS=l(92401),GS=l(57941),KS=l(74416),QS=l(18822),ZS=l(25409),YS=l(80071),XS=l(5684),JS=l(38899),qS=l(70649),eI=l(63570),tI=l(76578),sI=l(24786),nI=l(94635),oI=l(4091),rI=l(50402),aI=l(83169),iI=l(22617),cI=l(72844),lI=l(13793),dI=l(35965),uI=l(81958),hI=l(43829),mI=l(93816),pI=l(63467),fI=l(49378),vI=l(91021),gI=l(17151),CI=l(38231),xI=l(80693),bI=l(24330),yI=l(33500),LI=l(80343),EI=l(53248),TI=l(35349),SI=l(74940),II=l(4507),NI=l(37915),jI=l(42195),kI=l(71841),AI=l(55856),RI=l(73164),wI=l(33922),PI=l(12349),MI=l(45247),OI=l(98061),BI=l(81484),DI=l(9858),HI=l(32138),FI=l(87129),VI=l(23909),zI=l(4164),$I=l(21744),UI=l(35610),_I=l(24651),WI=l(55680),GI=l(87708),KI=l(77615),QI=l(92717),ZI=l(37010),YI=l(9834),XI=l(2627),JI=l(77162),qI=l(42832),eN=l(44569),tN=l(85065),sN=l(39030),nN=l(88164),oN=l(288),rN=l(77313),aN=l(15077),iN=l(82814),cN=l(43759),lN=l(92208),dN=l(72687),uN=l(7505),hN=l(13355),mN=l(39168),pN=l(19557),fN=l(47700),vN=l(35096),gN=l(37384),CN=l(97615),xN=l(22812),bN=l(93685),yN=l(97114),LN=l(73668),EN=l(74817),TN=l(35834),SN=l(57991),IN=l(33605),NN=l(97681),jN=l(67454),kN=l(2648),AN=l(20489),RN=l(71096),wN=l(97754),PN=l(51464),MN=l(91485),ON=l(45379),BN=l(14195),DN=l(48215),HN=l(81760),FN=l(85375),VN=l(58795),zN=l(91463),$N=l(65873),UN=l(16121),_N=l(75299),WN=l(27990),GN=l(15480),KN=l(98213),QN=l(66389),ZN=l(35630),YN=l(75822),XN=l(88964),JN=l(12421),qN=l(90986),ej=l(37522),tj=l(62663),sj=l(59968),nj=l(28052),qf=l(29135),oj=l(12989),rj=l(65222),aj=l(98108),ij=l(38964),cj=l(17318),lj=l(76664),dj=l(72961),uj=l(72981),hj=l(47689),mj=l(38242),pj=l(22191),fj=l(73350),vj=l(48625),gj=l(19027),Cj=l(51844),xj=l(18084),bj=l(10526),yj=l(11670),Lj=l(70185),Ej=l(29533),Tj=l(27737),Sj=l(71294),Ij=l(78003),Nj=l(63033),jj=l(67361),kj=l(53886),Aj=l(3079),Rj=l(1875),wj=l(19341),Pj=l(85034),Mj=l(23851),Oj=l(63496),Bj=l(35510);const Dj={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"]},Hj={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"]]},Fj={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"]},Vj={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 ev,zj;const $j={"alert-circle-solid":SI.lE,"alert-circle":nN.lE,"alert-diamond":xN.xG,"arrow-down-from-line":wI.xZ,"arrow-down-to-bracket":PI.a_,"arrow-down-to-line":MI.yH,"arrow-down":RI.B0,"arrow-left":OI.Ce,"arrow-right-from-line":DI.Pe,"arrow-right":BI.dm,"arrow-rotate-left-light":BS.V3,"arrow-rotate-left":HI.V3,"arrow-up-from-bracket":VI.MN,"arrow-up-from-line":zI.s8,"arrow-up-right-from-square":$I.faArrowUpRightFromSquare,"arrow-up":FI.IN,"arrows-two-from-center":ES.A1,"arrows-two-to-center":TS.hL,"badge-check":XS.Zs,"bar-chart":UI.X8,bars:JS.ck,"bars-regular":_I.ck,"block-selector":NI.iH,"book-open":GI.Re,"book-sparkles":KI.E4,book:WI.LB,"browser-light":IS.c9,browser:QI.c9,building:SS.UR,"cards-blank":ZI.Xm,"caret-down":eI.xB,"caret-right":tI.fU,"chart-column":YS.q9,"check-regular":kI.e6,check:qS.e6,"chevron-down-solid":sI.Jt,"chevron-down":YI.Jt,"chevron-left-light":NS.Wz,"chevron-left-solid":oI.Wz,"chevron-left":XI.Wz,"chevron-right-light":jS.Xk,"chevron-right-solid":rI.Xk,"chevron-right":JI.Xk,"chevron-up-solid":nI.w2,"chevron-up":qI.w2,"circle-arrow-right":cI.Ni,"circle-arrow-up":iI.yi,"circle-check-regular":tN.QR,"circle-check-solid":lI.QR,"circle-check":VS.QR,"circle-dot":sN.pp,"circle-half-stroke":oN.B2,"circle-info":rN.faCircleInfo,"circle-notch":cN.s4,"circle-plus-duotone":zS.q_,"circle-plus-regular":aN.q_,"circle-plus":dI.q_,"circle-small-solid":uI.ZP,"circle-small":iN.ZP,"circle-solid":aI.GE,"circle-x":hI.Ub,"circle-xmark":lN.bn,"circle-xmark-solid":mI.bn,"circle-xmark-duotone":$S.bn,circle:eN.GE,"clipboard-list-check":dN.S3,"clock-rotate-left":uN.Yj,clone:mN.$3,close:pN.yY,"closed-captioning":hN.UM,"code-fork-duotone":US.zt,"code-fork-regular":fN.zt,code:Oj.jT,comment:vN.DN,copy:gN.jP,crop:CN.K1,"edit-regular":bN.MT,"ellipsis-regular":yN.Dw,"ellipsis-vertical-regular":LN.nx,envelope:EN.y_,"external-link":TN.vM,"eye-slash":AS.k6,eye:kS.pS,"face-frown":DS.Ho,"face-laugh":HS.ou,"face-smile":FS.H8,"file-audio":IN.qe,"file-duotone":_S.A4,"file-export-light":wS.o1,"file-export":NN.o1,"file-import":jN.$M,"file-lines":kN.bL,"file-pdf-light":RS.O_,"file-pdf":AN.O_,file:SN.A4,"folder-image":RN.JK,"folder-open":WS.Uj,gear:wN.BH,globe:PN.Bw,"graduation-cap":MN.eS,"grid-2":ON.Qy,"grid-solid":pI.Qy,"grip-dots-vertical":BN.IM,"hand-pointer":DN.A8,"image-landscape":FN.oC,"image-portrait":VN.E4,image:HN.jb,"photo-film":zN._Z,"info-circle":$N.iW,"layers-solid":TI.qI,"link-simple-slash":WN.r2,"link-simple":_N.wi,"link-slash":GN.TH,link:UN.CQ,list:KN.IT,"list-check":QN.UN,"location-dot":MS.gK,"lock-keyhole-light":PS.Yp,lock:fI.DW,"magnifying-glass-plus":YN.bM,"magnifying-glass":ZN.$U,megaphone:II.OR,"message-quote":XN.ps,"minus-solid":vI.EZ,minus:JN.EZ,paintbrush:GS.ue,palette:qN.fy,paste:ej.R9,pause:tj.G1,"pause-solid":gI.G1,"pen-line":sj.pg,"pen-to-square":nj.faPenToSquare,"pencil-duotone":KS.zL,"pencil-regular":AI.zL,"pencil-thin":Bj.zL,pencil:OS.zL,"play-regular":qf.ij,"play-solid":CI.ij,play:qf.ij,"plus-regular":oj.QL,plus:rj.TS,"quote-left":aj.$7,"rectangle-history-circle-plus":cj.Hu,"rectangle-regular":ij.vt,"rectangle-vertical-history":lj.Lt,rocket:dj.KM,"ruler-horizontal":uj.Si,"ruler-triangle":hj.cb,"sliders-simple":xI.AD,"sparkles-solid":bI.p7,sparkles:mj.p7,"spinner-third":pj.sq,"square-arrow-down":vj.Y1,"square-arrow-right":gj.mT,"square-arrow-up-right":Cj.fL,"square-check-solid":yI.Dn,"square-check":xj.Dn,"square-duo":QS.Nf,"square-info":bj.Lg,"square-plus":yj.Vd,square:fj.Nf,"stopwatch-regular":Lj.nw,table:Ej.w9,tag:Tj._2,text:Sj.jw,"trash-can":Nj.sj,trash:Ij.yL,"user-group":LI.US,"users-regular":jj.gd,users:ZS.gd,video:kj.n2,volume:Aj.eF,volumeHigh:Rj.AI,volumeLow:wj.gN,volumeXmark:Pj.H_,"wand-magic-sparkles":Mj.Ys,"waveform-lines":jI.Wx,xmark:EI.Jy},Uj={"audio-plus":Fj,"clone-plus":Vj,reach:Hj,"rise-com":Dj};function Je({"aria-label":t,className:e,classNameIcon:n,color:o,"data-testid":r,name:a,rotation:i,spin:c,style:h,styleIcon:d}){return(0,s.jsx)("span",{className:e,"data-testid":r,style:{color:o,...h},children:(0,s.jsx)(LS.g,{"aria-label":t,className:n,icon:$j[a],rotation:i,spin:c,style:d})})}function xte({className:t,classNameIcon:e,color:n,name:o,style:r,styleIcon:a}){return ev("span",{className:t,style:{color:n,...r},children:ev(zj,{className:e,icon:Uj[o],style:a})})}const tv="focus-lesson-content",bte="preview-nav-to-first-lesson",yte="preview-nav-to-cover-page",Kt="preview-nav-to-lesson-item",Lte="preview-scroll-to-nav-prev",Ete="preview-scroll-to-header",vh="preview-clear-state",Gd="preview-show-nav-prev",Kd="preview-show-nav-next",sv="preview-nav-open",nv="preview-nav-close",ov="event-lesson-transition-start",rv="event-lesson-transition-end",av="event-lesson-nav-prev-visible",gh="event-lesson-nav-prev-hidden",iv="event-lesson-nav-next-visible",Ch="event-lesson-nav-next-hidden",xh=new WeakMap,cv=new ResizeObserver(t=>{for(const e of t)xh.get(e.target)?.(e)});function Qd(t,e){(0,u.useEffect)(()=>{if(t)return xh.set(t,e),()=>xh.delete(t)},[t,e]),(0,u.useEffect)(()=>{if(t)return cv.observe(t),()=>cv.unobserve(t)},[t])}function _j(){const t=(0,U.wA)(),[e,n]=(0,u.useState)(null),o=(0,ht.useLabelsMap)(),r=(0,u.useCallback)(a=>{t((0,fh.s)({offsetHeight:a.target.offsetHeight}))},[t]);return(0,u.useLayoutEffect)(()=>{if(e)return t((0,fh.s)({offsetHeight:e.offsetHeight})),()=>t((0,fh.s)(null))},[t,e]),Qd(e,r),(0,s.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:lv,ref:n,type:"button",children:(0,s.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,s.jsx)(Je,{"aria-hidden":"true",classNameIcon:"btn-skip-to-lesson__icon",name:"arrow-right"})]})})}function Wj(t){(0,es.A)(tv,t,document)}function lv(){document.dispatchEvent(new CustomEvent(tv))}const dv=(0,u.createContext)(!1);function el({children:t,inert:e}){const n=bh();return(0,s.jsx)(dv.Provider,{value:n||e,children:t})}function bh(){return(0,u.useContext)(dv)}function Gj(t){return t?.sessionPreferences}function Zd(){return(0,U.d4)(Gj)}const Kj=(0,u.forwardRef)((t,e)=>{const{children:n,className:o="lesson-link-item-tooltip",dark:r,visible:a}=t,i=(0,u.useMemo)(()=>K(o),[o]),c=(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,go.createPortal)(c,document.getElementById("portal"))});function uv(t){const{children:e,className:n,dark:o,restriction:r,tooltipClassName:a,style:i}=t,{prefersKeyboardNavigation:c}=Zd(),h=(0,u.useRef)(),d=(0,u.useRef)(),m=(0,u.useRef)(),p=(0,ht.useLabelsMap)(),f=bh(),[v,g]=(0,u.useState)(!1),C=(0,u.useCallback)(()=>g(!0),[]),b=(0,u.useCallback)(()=>g(!1),[]),x=(0,u.useCallback)(()=>{setTimeout(C,0)},[C]),y=(0,u.useCallback)(()=>{c&&b()},[b,c]),E=(0,u.useCallback)(k=>{gn(k)&&v&&(k.stopPropagation(),b())},[b,v]),L=(0,u.useCallback)(()=>{document.activeElement===h.current&&(clearTimeout(m.current),C())},[C]),T=(0,u.useCallback)(()=>{m.current=setTimeout(b,150)},[b]),S=(0,u.useCallback)(()=>{if(v){const k=h.current.getBoundingClientRect(),M=d.current.offsetParent.getBoundingClientRect(),{height:R,width:A}=k,B=k.left-M.left,P=k.top-M.top;Object.assign(d.current.style,{transform:`translate(${B}px, ${P}px)`,width:`${A}px`,height:`${R}px`})}},[v]);(0,u.useEffect)(()=>{f&&g(!1)},[f]),(0,u.useLayoutEffect)(()=>S(),[S]),(0,es.A)("resize",S,window),(0,es.A)("keydown",E,document),Nf(h,b);const I=fs(r?.data);let N;return r?.type===Tt.XQ.QUIZ?N=`${p.quizRequirePassingScore}: "${I}"`:r?.type===Tt.XQ.ORDER?N=p.lessonRestricted:r?.type===Tt.XQ.KNOWLEDGE_CHECK&&(N=p.knowledgeCheckCorrectAnswerRequiredNav),(0,s.jsxs)("div",{"aria-disabled":!0,className:n,onBlur:y,onFocus:x,onMouseEnter:L,onMouseLeave:T,ref:h,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:N}),(0,s.jsx)(Kj,{className:a,dark:o,ref:d,visible:v,children:N})]})}function Qj(t){const{b:e,children:n,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:i,onClick:c=Function.prototype,onFocus:h,onHideProgressTooltip:d,onNavigate:m=Function.prototype,onShowProgressTooltip:p,restriction:f,showProgressDelay:v,style:g}=t,C=bh(),{theme:{progressIndicatorStyle:b=w.Y2.THEME_DEFAULT}}=Ge(),x=b===w.Y2.THEME_DEFAULT,y=(0,u.useCallback)(R=>{c(R),r?(R.preventDefault(),lv()):m(i)},[i,r,c,m]),[E,L]=(0,u.useState)(!1),T=(0,u.useCallback)(R=>{!E&&a&&(v!=null?setTimeout(p,v):p()),h?.(R)},[E,h,v,p,a]),S=(0,u.useCallback)(R=>{a&&gn(R)&&d()},[d,a]),I=(0,u.useCallback)(()=>{a&&L(!0)},[a]),N=(0,u.useCallback)(()=>{a&&L(!1)},[a]),k=f?.type!=null,M=e("link",{active:r,restricted:k,"theme-default":x}).toString();return k?(0,s.jsx)(uv,{...t,className:M,style:g}):(0,s.jsx)(qc,{"aria-current":"page",className:M.toString(),"data-direction":o,"data-nav-item":"",onBlur:a?d:void 0,onClick:y,onFocus:T,onKeyDown:S,onMouseDown:I,onMouseUp:N,style:g,tabIndex:C?-1:void 0,to:(0,Tt.p1)(i),children:n})}function tl(t){const{className:e="lesson-link-item",isCurrentLesson:n,last:o,lessonId:r,style:a}=t,i=(0,u.useMemo)(()=>K(e),[e]),c=xc(r),h=c?.type!=null,{isComplete:d=!1}=mo(r)??{},m=i({active:n,complete:d,last:o,restricted:h});return(0,s.jsx)("div",{className:m,children:(0,s.jsx)(Qj,{...t,b:i,isCurrentLesson:n,restriction:c,style:a})})}const Zj=K("lesson-nav"),Yj=t=>{const{children:e,finish:n,lessonId:o,onFocus:r}=t,a=(0,ke.Z)();if(o)return(0,s.jsx)(tl,{className:"lesson-nav-link",onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",...t});const i=n?"/lessons/progress-summary":"/",c=h=>{h.preventDefault(),fr(()=>{a(i)},i==="/"?"lesson-to-cover":"default")};return(0,s.jsx)("span",{className:"lesson-nav-link",children:(0,s.jsx)(Nn,{className:"lesson-nav-link__link","data-direction":t["data-direction"],onClick:c,onFocus:r,to:i,children:e})})},Xj=({buttonScheme:t,accentContrast:e,children:n,className:o,direction:r,finish:a,navLessonId:i,onFocus:c,restrictionType:h},d)=>{const m=h!=null,p=pa(),v={className:Zj(null,{[r]:!0,accent:t===w.LE.ACCENT,dark:t===w.LE.DARK,floating:p===w.AY.FLOATING,"floating-full":p===w.AY.FLOATING_FULL,finish:a,full:p===w.AY.FULL,light:t===w.LE.LIGHT,restricted:m,tint:t===w.LE.TINT}).mix(o),[`data-${r}-lesson`]:!0};return(0,s.jsx)("div",{ref:d,...v,children:(0,s.jsx)(Yj,{accentContrast:e,"data-direction":r,finish:a,lessonId:i,onFocus:c,children:n})})};function Jj(t,e){const{currentLocale:n}=e,o=Wt(t),r=(0,ht.selectLabelsMap)(n,t);return{buttonScheme:o.buttonScheme,accentContrast:o.theme?.accentContrast,labelLessonRestricted:r.lessonRestricted,labelQuizRequirePassingScore:r.quizRequirePassingScore}}const qj=Xe()(jt.wZ,(0,U.Ng)(Jj,null,null,{forwardRef:!0}),u.forwardRef)(Xj),ek={CoverCompletedInformation:Ix,CoverDueDate:mS,CoverProgress:vS,CoverRequirements:CS,ImageEagerOrLazy:$t,LessonNav:qj};function tk({children:t}){return(0,s.jsx)(as,{...ek,children:t})}var sk=l(1957),nk=l(39289),hv;const mv={"rise-course-navigation":!0},ok={"ai-assistant-blocks":!0,"ai-text-to-video":!1,"ai-assistant-images":!0,"ai-assistant-magic-block-import":!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-business-creator-video-training":!1,"experiment-new-delivery-formats":!1,"rise-ai-avatar-prompt-testing":!1,"rise-com-360-upsell":!0,"rise-update-block":!1},yh=(0,u.createContext)(mv);yh.displayName="FeatureFlagsContext";const{Provider:rk}=yh;function ak({children:t,value:e}){const n=(0,u.useMemo)(()=>({...ok,...e,...mv}),[e]);return(0,s.jsx)(rk,{value:n,children:t})}function Yd(){return(0,u.useContext)(yh)}function ik(t){return Yd()[t]}function Ste(t){function e(n){const o=Yd();return hv(t,{...n,flags:o})}return e.displayName=`withFeatureFlags(${t.displayName||t.name})`,e}function Ite(t,e){return function(n){const o=r=>{const a=ik(t),i={...r,[e]:a};return hv(n,{...i})};return o.displayName=`withFeatureFlag(${n.displayName||n.name})`,o}}const pv=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});pv.displayName="On";const fv=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});fv.displayName="Off";const Xd=({children:t,featureFlags:e})=>{const n=Yd(),o=(0,u.useMemo)(()=>{const i=[].concat(e??[]);return i.length&&i.every(c=>n[c])},[e,n]),{on:r=null,off:a=null}=(0,u.useMemo)(()=>{const i={};return u.Children.forEach(t,c=>{switch(c.type.displayName){case Xd.On.displayName:i.on=c;break;case Xd.Off.displayName:i.off=c;break;default:i.on=t}}),i},[t]);return o?r:a};Xd.On=pv,Xd.Off=fv;const ck={};function lk({children:t}){const e=(0,U.wA)(),n=Yd();return(0,sk.A)(()=>{e((0,nk.G)(n))},[n]),t}function dk({children:t}){const n=Lt()?.features??ck;return(0,s.jsx)(ak,{value:n,children:(0,s.jsx)(lk,{children:t})})}var uk=l(37072),Lh=l(36584),hk=l(1404),bo=l.n(hk);const mk=t=>_e.BI?t??"":t?`${t} | ${_e.mZ}`:_e.mZ,sl=t=>(0,_e.Hm)()?t:mk(t);let Eh=!1;function ya({children:t,title:e,isExplicit:n=!1}){const o=sl(P1()),r=e??o;return u.useEffect(()=>{if(n)return Eh=!0,document.title=r,()=>{Eh=!1};Eh||(document.title=r)},[r,n]),(0,s.jsx)(s.Fragment,{children:t})}var pk=l(18259),fk=l.n(pk),vk=l(83972),gk=l(86554);const Th=Object.assign((0,u.createContext)(void 0),{displayName:"BlockContext"});function Sh({block:t,children:e}){const[n,o]=(0,u.useState)(t);return(0,u.useEffect)(()=>o(r=>t||r),[t]),(0,s.jsx)(Th.Provider,{value:n,children:(0,s.jsx)(Rh,{...n?.settings,children:e})})}const jte=Th.Consumer;function Bs(){return(0,u.useContext)(Th)}function Jd(t){return function(n){const o=Bs();return(0,s.jsx)(t,{...n,block:o})}}const Ck={text:{backgroundType:"blockTextBackgroundType",backgroundColor:"blockTextBackgroundColor",backgroundColorContrast:"blockTextBackgroundColorContrast",paddingStart:"blockTextPaddingStart",paddingEnd:"blockTextPaddingEnd",bodyFontSize:"blockTextBodyFontSize",headingFontSize:"blockTextHeadingFontSize",subheadingFontSize:"blockTextSubheadingFontSize"},continue:{completionType:"blockContinueCompletionType",label:"blockContinueLabel",completeHint:"blockContinueCompleteHint"}},kte={continue:{blockContinueCompletionType:"type",blockContinueLabel:"title",blockContinueCompleteHint:"completeHint"}};function xk(t,e){if(!t||!e)return null;const n=Ck[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),completionType:o(n.completionType),label:o(n.label),completeHint:o(n.completeHint)}}function Vr(){const t=Bs(),e=Ge(),n=t?.family,o=e?.theme;return(0,u.useMemo)(()=>xk(n,o),[n,o])}var bk=l(48831),yk=l.n(bk),Lk=l(41272),Ek=l.n(Lk),Tk=l(95932),vv=l.n(Tk),Sk=l(14579),Ik,Nk,jk,kk,Ih,gv,La;const Cv=2,Ate=(t,e,n)=>t??e??n,xv=(t,e,n,o)=>t??e??n??o,Gn=yk()({WHITE:null,TRANSPARENT:null}),Ak={markerColorContrast:w.Em.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:w.Em.AUTO},Rk={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","step"],quote:["carousel"],survey:["survey"]};function wk(t,e){return Rk[t]?.includes(e)??!1}const Pk={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function Nh(t,e){const n=Pk[t]?.[e];return n==null?{}:{backgroundColor:n,backgroundType:w.xj.COLOR}}const Mk={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 Rte(t,e){return Mk[t]?.includes(e)??!1?.1:.5}function Ok(t){switch(t.backgroundType){case w.xj.COLOR:return t.backgroundColor;case w.xj.ACCENT:return t.courseColor;case w.xj.TINT:return(0,ut.WA)(t.courseColor);case w.xj.LIGHT:return"#ffffff";case w.xj.GRAY:return"#fafafa";case w.xj.DARK:return"#303030";case w.xj.BLACK:return"#000000"}}const Bk={multimedia:{embed(t){return{cardMode:t.showBorder===!1?Gn.TRANSPARENT:Gn.WHITE}}}};function Dk(t,e,n){return Hk(t,e,n)}function Hk(t,e,n){const o=Nh(t,e);(n.v==null||n.v<Cv)&&(n=Fk(n),n.backgroundColor?.toLowerCase()==="#ffffff"&&Object.keys(o).length===0&&(n=Ek()("backgroundColor",n)));const r=Bk[t]?.[e]?.(n),a=n.backgroundColor&&n.backgroundType==null?{backgroundType:w.xj.COLOR}:{};return[{accentColor:null},Ak,r,n,a,{v:Cv}].reduce((h,d)=>d==null?h:{...h,...vv()(Sk.A,d)},{})}function Fk(t){return{...t,backgroundType:null,cardMode:null,v:1}}const Vk={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"],multimedia:[]};function wte(t,e){return!Vk[t]?.includes(e)}const zk={};function Pte(t,e){return!zk[t]?.includes(e)}function $k(t){return t===kk.LIGHT?La.LIGHT:La.DARK}function Uk(t,e){if(e===Ih.AUTO){const n=Ik(t),o=Nk[n](t);return jk(o)===Ih.DARK?La.DARK:La.LIGHT}else return e===Ih.LIGHT?La.LIGHT:La.DARK}function Mte(t,e,n,o,r){const a=t?.backgroundType;return t?.cardMode===Gn.TRANSPARENT?a===gv.IMAGE?$k(e?.overlayColor):o&&a!==gv.ACCENT?r:Uk(n,t?.customBackgroundColorContrast):o?r:La.DARK}const _k={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 Ote(t,e){return _k[t]?.includes(e)??!1}const Wk=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),jh=(t,e)=>Wk.test(e)?e:t;function $s(t){const{contrast:e=w.Em.AUTO,backgroundColor:n="#fff"}=t,o=jh("#fff",n),r=(0,ut.xD)(o);return e===w.Em.DARK||e===w.Em.AUTO&&r===w.Em.DARK?et.S6.DARK:et.S6.LIGHT}const Gk=t=>t.blockBackgroundType??t.familyBackgroundType??t.courseBackgroundType??t.blockTypeFallbackType??w.xj.LIGHT,Kk=t=>t.effectiveBackgroundType===w.xj.COLOR?t.blockBackgroundColor||t.familyBackgroundColor||t.courseBackgroundColor||t.blockTypeFallbackColor||null:t.settingsBackgroundColor??null,Qk=t=>t.blockCustomContrast??t.familyBackgroundColorContrast??t.courseBackgroundColorContrast??w.Em.AUTO,bv=t=>{const{family:e,variant:n,customBackgroundColorContrast:o}=t;return!o&&(e==="image"&&n!=="text aside"||e==="chart"||n==="sorting")},yv=t=>(0,ut.cP)(t)?w.Em.LIGHT:w.Em.DARK,Zk=t=>{const{backgroundType:e,backgroundColor:n,accentColor:o,customBackgroundColorContrast:r,accentContrast:a,family:i,variant:c}=t;if(!(e===w.xj.ACCENT||e===w.xj.COLOR))return null;const d=e===w.xj.ACCENT?o:n;let m;return e===w.xj.ACCENT?m=a:bv({family:i,variant:c,customBackgroundColorContrast:r})?m=yv(n):m=r??w.Em.DARK,$s({backgroundColor:d??void 0,contrast:m})},Yk=t=>Zk(t)===et.S6.LIGHT,Xk=t=>{const e=t.blockBackgroundType!=null||t.familyBackgroundType!=null||t.courseBackgroundType!=null,n=t.blockCustomContrast!=null||t.familyBackgroundColorContrast!=null||t.courseBackgroundColorContrast!=null;return!e&&!n},Jk=t=>{const{backgroundColor:e,family:n,variant:o,blockCustomContrast:r,familyBackgroundColorContrast:a,courseBackgroundColorContrast:i}=t,c=r??a??i??w.Em.AUTO,d=bv({family:n,variant:o,customBackgroundColorContrast:c})?yv(e):c;return $s({backgroundColor:e??void 0,contrast:d})};var kh=l(17272);const qk=t=>{const{effectiveBackgroundType:e,blockImage:n}=t;return e!==w.xj.IMAGE?null:n??null},eA=t=>(0,Fe.I6)(t?.alt),tA=t=>{if(!t)return null;const{alpha:e,overlayColor:n=w.df.DARK}=t,o=(0,Dt.ME)(t),r=n===w.df.LIGHT?w.qH:w.KJ;return(0,kh.A)({alpha:e,color:r,url:o})};function Yo(){const t=Ge(),e=Vr(),n=on(),o=Bs(),r=o?Nh(o.family,o.variant):{};return Gk({blockBackgroundType:n?.backgroundType,familyBackgroundType:e?.backgroundType,courseBackgroundType:t?.theme?.blockBackgroundType,blockTypeFallbackType:r.backgroundType})}function sA(){return Yo().toLowerCase()}function qd(){const t=Bs(),e=Yo(),n=t?.background,o=Rt(n?.media)?.image;return qk({effectiveBackgroundType:e,blockImage:o})}function nA(){const t=qd();return eA(t)}function oA(){const t=qd();return tA(t)}function rA(){const t=qd();return!!t&&t?.overlayColor===w.df.LIGHT}function aA(){const t=Bs(),e=t?.family,n=t?.variant,o=wk(e,n),r=t?.settings?.cardMode??Gn.WHITE;return o?r.toLowerCase():null}function iA(){const t=kn(),e=t?(0,ut.XC)(t):ut.lL.LIGHT;return fi()(e.toLowerCase())}function cA(){const t=Bs(),e=Ge(),n=Vr();return Qk({blockCustomContrast:t?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:n?.backgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast})}function lA(){const t=Ge(),e=on(),n=kn(),o=Bs(),r=Yo(),a=cA(),i=e.accentColor||t?.theme?.colorAccent;return Yk({accentColor:i,accentContrast:t?.theme?.accentContrast,backgroundColor:n,backgroundType:r,customBackgroundColorContrast:a,family:o?.family,variant:o?.variant})}function dA(){const t=Bs(),e=Ge(),n=kn(),o=Vr();return Jk({backgroundColor:n,blockCustomContrast:t?.settings?.customBackgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast,family:t?.family,familyBackgroundColorContrast:o?.backgroundColorContrast,variant:t?.variant})}function uA(){const t=Bs(),e=Ge(),n=Vr();return Xk({blockBackgroundType:t?.settings?.backgroundType,familyBackgroundType:n?.backgroundType,courseBackgroundType:e?.theme?.blockBackgroundType,blockCustomContrast:t?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:n?.backgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast})}function hA(){const t=sA(),e=iA(),n=aA(),o=lA(),r=rA(),a=uA(),i=kn(),c=oA(),h=nA();return{backgroundColor:i,backgroundImageAlt:h,backgroundImageCss:c,backgroundTypeLowercase:t,cardMode:n,colorRange:e,isContrastLight:o,isLegacyBackground:a,isOverlayLight:r}}var Lv=l(26372);const Ev=Object.assign((0,u.createContext)({}),{displayName:"BlockSettingsContext"});function on(){return(0,u.useContext)(Ev)}const mA="settings";function Ah(t){return e=>{const n=Lv.forwardRef((o,r)=>{const a=on(),i={...o,[t??mA]:a};return(0,s.jsx)(e,{...i,ref:r})});return n.displayName=`withBlockSettings(${e.displayName||e.name})`,n}}function kn(){const t=Ge(),e=on(),n=Vr(),o=Yo(),r=Bs();if(e==null)return null;const a=r?Nh(r.family,r.variant):{},i=Kk({effectiveBackgroundType:o,blockBackgroundColor:e.backgroundColor,familyBackgroundColor:n?.backgroundColor,courseBackgroundColor:t?.theme?.blockBackgroundColor,blockTypeFallbackColor:a.backgroundColor,settingsBackgroundColor:e.backgroundColor}),c={...e,backgroundType:o,backgroundColor:i};return Ok(c)}const pA="backgroundColor";function fA(t){return e=>{const n=Lv.forwardRef((o,r)=>{const a=kn(),i={...o,[t??pA]:a};return(0,s.jsx)(e,{ref:r,...i})});return n.displayName=`withBackgroundColor(${e.displayName||e.name})`,n}}function Rh({children:t,...e}){const n=Bs(),o=on(),r=Bc(),a=(0,u.useMemo)(()=>{const i=n==null?e:Dk(n.family,n.variant,e);return{courseColor:r,...o,...i}},[n,e,r,o]);return(0,s.jsx)(Ev.Provider,{value:a,children:t})}var Tv=l(35618),Sv=l(89576),vA=l(44148),Iv=l(38664),gA=l(7003),wh=l.n(gA);const Nv=":focus{outline: none}",CA=":focus:not(:focus-visible){outline: none}",jv="focus-ring-style",Ph=()=>document.getElementById(jv)||xA(),xA=()=>{const t=document.createElement("style");return t.id=jv,document.head.appendChild(t),t},Mh=0,eu=-1,bA=t=>{const e=Ph();document.addEventListener("mousedown",()=>{setTimeout(()=>{e.innerHTML=Nv},0),t?.(!1)}),window.addEventListener("keydown",n=>{yA(n,t)})},yA=(t,e)=>{const n=t.target,o=Ph();(Hd(t)||Kc(t)&&!n.classList.contains("ignore-prefers"))&&(o.innerHTML="",e?.(!0))},kv=({focusVisible:t}={})=>Ph().innerHTML=t?CA:Nv,LA=t=>t?Mh:eu,Av=({list:t,index:e})=>{e>=0&&e<us()(t)&&t[e].focus()},EA=({list:t,currentIndex:e})=>{const n=Fo()(e||0),o=n<us()(t)?n:0;return Av({list:t,index:o}),o},TA=({list:t,currentIndex:e})=>{const n=wh()(e||us()(t));return Av({list:t,index:n}),n};var nl=l(63126),Ni=l(2998),SA=l(44914),is=l.n(SA),IA=l(49034),ol=l.n(IA),NA=l(64943),Oh=l.n(NA),jA=l(30349),kA=l.n(jA);const AA=rh()(Oh()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),is()("#FFF")),RA=ol()({color:AA}),wA=({accentContrast:t,bodyTypeface:e,color:n,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const i=(0,u.useMemo)(()=>{const d=!(0,ut.Wn)(n),m=(0,ut.xD)(n),p=t===w.Em.DARK||t===w.Em.AUTO&&m===w.Em.DARK;return!r&&(t&&p||!t&&d)?[et.S6.DARK,et.S6.LIGHT]:[et.S6.LIGHT,et.S6.DARK]},[t,n,r]),[c,h]=i;return(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:kA()({bodyTypeface:e,colorThemeRGB:(0,Ni.A)(n)?.slice(0,3),colorTheme:n,colorThemeContrast:c,colorThemeContrastComplementary:h,colorThemeContrastComplementaryRGB:(0,Ni.A)(h)?.slice(0,3),colorThemeContrastRGB:(0,Ni.A)(c)?.slice(0,3),colorThemeTint:(0,ut.WA)(n),colorThemeTransparent:n+"1A",headingTypeface:o,uiTypeface:a})}})},Bh=Xe()(wA,RA);Bh.displayName="Branding",Bh.propTypes={bodyTypeface:ct().string,color:ct().string.isRequired,headingTypeface:ct().string,uiTypeface:ct().string};const PA=(0,u.memo)(Bh);var MA=l(26372);const Rv="riseUnsupportedBrowser",OA={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},BA=t=>new RegExp(OA[t],"i").test(window.navigator.userAgent);class wv extends MA.Component{render(){return BA(this.props.env)&&!window.sessionStorage.getItem(Rv)?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(Rv,"true"),this.forceUpdate()}}wv.propTypes={env:ct().string.isRequired};const Xo={get isInstantLink(){return!!window.InstantLinks?.publicId}},ji=K("cover");function DA(){const{categories:t}=Ge();return!Array.isArray(t)||t.length===0?null:(0,s.jsxs)("section",{className:ji("categories-section"),children:[(0,s.jsx)("h2",{className:ji("categories-title"),children:"Topics"}),(0,s.jsx)("ul",{className:ji("categories-list"),role:"list",children:t.map(e=>(0,s.jsxs)("li",{className:ji("categories-item"),role:"listitem",children:[(0,s.jsx)(ET,{className:ji("categories-icon")}),(0,s.jsx)("span",{className:ji("categories-item-wrap"),children:e})]},e))})]})}const HA=ds("CoverCompletedInformation"),FA=ds("CoverDueDate"),VA=ds("CoverRequirements"),zA=K("cover"),$A=t=>{const{courseId:e,coursePartnerContent:n,hasPartnerContent:o,publishedAt:r,tenantId:a}=t;return o?(0,s.jsx)(Md,{type:"partner-content",children:(0,s.jsx)(Ef,{courseId:e,partnerContent:n,publishedAt:r,tenantId:a})}):null},UA=At("CoverCourseInfo",t=>{const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t,c=zA("details-content-aside",{logo:o});return(0,s.jsxs)("div",{className:c,children:[_e.BI&&(0,s.jsx)(U1,{}),(0,s.jsx)($A,{courseId:e,coursePartnerContent:n,hasPartnerContent:r,publishedAt:a,tenantId:i}),_e.BI&&!r&&(0,s.jsx)(Vb,{}),_e.BI&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(VA,{}),(0,s.jsx)(FA,{}),(0,s.jsx)(HA,{}),(0,s.jsx)(DA,{})]})]})}),_A=K("cover"),WA=At("CoverDescription",()=>{const t=Ge(),{navigation:e}=t,n=Rt(t.description),o=e?"description":"description-no-outline";if(!n)return null;const r=hi("description"),a=(0,Zt.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":r};return(0,s.jsx)("div",{...a,children:(0,s.jsx)(Md,{type:o,children:(0,s.jsx)(bt,{className:_A("details-content-description"),value:I1(n)},"text")})})}),Pv=K("cover"),GA=({className:t=Pv("details-logo"),imageClassName:e=Pv("details-logo-image")})=>{const n=Ge()??{},o=Rt(n.media)?.image??{},{height:r,key:a,width:i,scalar:c=et.C_.SMALL.value}=o,h={width:i*c,height:r*c};if(!a)return null;const d=(0,Dt.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:h.height,src:d,width:h.width})})},KA=(t,e)=>{const n=js()(["lessons",e],t),o=wt()(0,["percentComplete"],n),r=js()(["passed"],n);return{isComplete:js()(["isComplete"],n),percentComplete:o,passedQuiz:r}};function QA({icon:t,...e}){switch(t){case et.xA.ARTICLE:return(0,s.jsx)(i4,{...e});case et.xA.INTERACTION:return(0,s.jsx)(Q7,{...e});case et.xA.QUIZ:return(0,s.jsx)(x7,{...e});case et.xA.VIDEO:return(0,s.jsx)(lx,{...e});default:return(0,s.jsx)("i",{className:"icon icon-Master-02"})}}var rl=l(38743);function Kn(){const t=(0,se.RQ)("/lessons/:currentLessonId"),e=(0,se.RQ)("/lessons/:currentLessonId/:mode");return t?.params?.currentLessonId??e?.params?.currentLessonId}var yo=l(12077);const ZA=At("LessonProgressGraphic");function tu({canComplete:t,id:e,isDark:n,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:i,scope:c}){const{color:h,navigationStyle:d}=Lt(),m=mo(e),p=Kn(),f=Ap(e),v=Rp(e),g=xc(e),C=(0,ht.useLabelsMap)(),b=g?.type!=null,x=m?.isComplete,y=e===p,E=m?.percentComplete??0,L=(0,u.useCallback)(()=>{(0,U.JD)((0,yo.eQ)(e))},[e]),T=(0,u.useCallback)(()=>{(0,U.JD)((0,yo.ss)(e))},[e]);return(0,s.jsx)(Rf,{canComplete:t,color:h,hasRestriction:b,isComplete:x,isCurrentLesson:y,isDark:n,isEnabled:o,isFailed:f,isPassed:v,isTooltipVisible:r,labels:C,navigationStyle:d,onHideTooltip:a,onMarkComplete:L,onMarkReset:T,onShowTooltip:i,percentComplete:E,progressGraphic:ZA,scope:c})}const YA=K("overview-list-item");function XA({className:t,id:e,last:n}){const o=(0,ke.Z)(),r=Kn(),{color:a,isLegacyCourse:i,navigationStyle:c,theme:h}=Lt(),{accentContrast:d}=h,{icon:m,title:p}=Vs(e)??{},f=fs(p),v=mo(e),g=Ap(e),C=Rp(e),b=xc(e),x=(0,ht.useLabelsMap)(),y=(0,Zt.uW)(p)?{"data-l10n-id":p.l10nId}:{"data-change-path":H2(e,"title")},E=v?.isComplete,L=v?.percentComplete??0,T=b?.type!=null,[S,I]=(0,u.useState)(!1),N=(0,u.useCallback)(()=>I(!0),[]),k=(0,u.useCallback)(()=>I(!1),[]),M=J()("overview-list__li",{"overview-list__li--last":n}),R=J()(t,"overview-list-item"),A=(0,u.useCallback)(B=>{const{currentTarget:{hash:P}}=B;B.preventDefault(),rl.Ay.Events.scrollEvent.register("end",()=>{fr(()=>{o(P.slice(1))},"cover-to-lesson"),rl.Ay.Events.scrollEvent.remove("end")}),rl.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,s.jsx)("li",{...y,className:M,"data-testid":`overview-list-item-${e}`,role:"listitem",children:(0,s.jsx)(tl,{className:R,isTooltipEnabled:!0,lessonId:e,onBlur:k,onClick:A,onHideProgressTooltip:k,onShowProgressTooltip:N,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,s.jsx)(eR,{accentContrast:d,color:a,hasRestriction:T,isComplete:E,isCurrentLesson:e===r,isFailed:g,isLegacyCourse:i,isPassed:C,isTooltipVisible:S,labels:x,lessonIcon:m,lessonId:e,lessonTitle:f,navigationStyle:c,onHideTooltip:k,onShowTooltip:N,percentComplete:L,progressGraphic:JA,scope:et.by.COVER})})})}const JA=At("LessonProgressGraphic");function qA({isTooltipVisible:t,lessonIcon:e,lessonId:n,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:i}){const c=YA("progress-circle");return(0,s.jsxs)("div",{className:c,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,s.jsx)(QA,{icon:e})}),(0,s.jsx)("span",{className:"overview-list-item__title","data-testid":`overview-list-item-title-${n}`,children:o}),(0,s.jsx)(tu,{canComplete:!1,id:n,isDark:!1,isEnabled:!0,isTooltipVisible:t,onHideTooltip:r,onShowTooltip:a,scope:i})]})}const eR=At("OverviewListItemLinkContent",qA),tR=({value:t,fallback:e})=>{const n=Rt(t),o=Xt(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 sR({value:t,children:e}){const n=Rt(t);return e(n)}const vs=tR,nR=K("overview-list"),oR=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),[]),rR=At("OverviewListSectionTitle",({className:t="",...e})=>{const n=Od()(["Default"],e);return(0,s.jsx)("h2",{...n,className:`${t} overview-list__section-title`})}),aR=({courseProgress:t,lessons:e})=>{const n=(0,ht.useLabelsMap)(),o=oR(e);return(0,s.jsx)("nav",{"aria-label":n?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[i={},...c]=r,{title:h,type:d}=i,m=d==="section",p=m?c:r,f=nR("list",{sectionless:!m});return(0,s.jsxs)("section",{children:[m&&h&&(0,s.jsx)(rR,{children:(0,s.jsx)(vs,{value:h})}),(0,s.jsx)("ol",{className:f,role:"list",children:p.map((v,g)=>{const{passedQuiz:C}=KA(t,v.id);return(0,s.jsx)(XA,{id:v.id,last:p.length>1&&g===p.length-1,passedQuiz:C},v.id)})})]},a)})})};function iR(t){const e=Wt(t),n=ca(t),o=L0(t),r=ra({course:e,courseProgress:n});return{course:e,courseProgress:n,lessons:o,restrictingQuiz:r}}const cR=(0,u.memo)((0,U.Ng)(iR)(aR));function lR(t){return t?.partnerContent?.content??[]}function Dh(){return(0,U.d4)(lR)}const dR=t=>Object.values(et.C_).find(e=>e.value==t);function uR(t){return(0,u.useMemo)(()=>dR(t)??et.C_.SMALL,[t])?.label.toLowerCase()}const ki=K("cover"),hR=At("CoverDetails",({reverseColumns:t})=>{const e=ks(1200),{description:n,id:o,media:r,navigation:a,partnerContentId:i,publishedAt:c,selectedAuthorId:h,tenantId:d}=Lt(),m=Dh(),p=Ks()(Bt()("id",h),m),f=!!i&&p,v=fs(r)?.image,g=!xs()(v),C=!n||!a,b=!n&&!a,x=!!(f||_e.BI),y=ki("details",{"rise-com":_e.BI,"rise-com-authoring":_e.BI&&!c}),E=ki("details-content-wrap",{columns:x,logo:g}),L=ki("details-content",{"no-description-or-outline":C}),T=ki("details-logo",{centered:b,"no-description-or-outline":C,"has-partner-content":!!i}),S=x&&(0,s.jsx)(UA,{courseId:o,coursePartnerContent:p,hasLogo:g,hasPartnerContent:f,publishedAt:c,tenantId:d}),I=uR(v?.scalar),N=ki("details-logo-image",{[I]:!0}),k=ki("details-description-outline");return(0,s.jsx)("section",{className:y,"data-testid":"cover-details",children:(0,s.jsxs)("div",{className:E,children:[!e&&t&&S,(0,s.jsxs)("div",{className:L,children:[(0,s.jsx)(GA,{className:T,imageClassName:N}),(0,s.jsxs)("div",{className:k,children:[n&&(0,s.jsx)(WA,{}),e&&S,a&&(0,s.jsx)(Md,{type:"outline",children:(0,s.jsx)(cR,{})})]})]}),!e&&!t&&S]})})}),mR=At("CoverHeader"),pR=At("CoverLayout");var fR=l(78137),vR=l(73333),gR=l.n(vR);const CR=["[href]",'[tabindex]:not([tabindex=""])',"audio[controls]","button:not([disabled])","details:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","summary:not([disabled])","textarea:not([disabled])","video[controls]"].map(t=>`${t}:not([tabindex="-1"]):not([hidden]):not([aria-hidden="true"])`).join(", "),Mv=(t,e=!1)=>n=>{const o=Ov(n);if(o.length===0)return;const r=t>=o.length&&e?0:t;return gR()(r,o)},Ov=t=>t?Array.from(t.querySelectorAll(CR)).filter(e=>window.getComputedStyle(e).display!=="none"):[],Bv=Mv(0),xR=Mv(-1),Hh=t=>Bv(t)?.focus?.();function bR(){const t=(0,u.useRef)(null);function e(n){const o=Bv(t.current),r=xR(t.current);Hd(n)&&(n.shiftKey?document.activeElement===o&&(r.focus(),n.preventDefault()):document.activeElement===r&&(o.focus(),n.preventDefault()))}return(0,u.useEffect)(()=>{const n=t?.current;return n?.addEventListener("keydown",e),()=>{n?.removeEventListener("keydown",e)}},[]),t}var Fh,yR;const Vh=u.createContext(null);Vh.displayName="UndoManagerContext";function Ute(t){const n=yR("rise-undo")===!0?t.undoManager:null;return Fh(Vh,{value:n,children:t.children})}function Dv(){return u.useContext(Vh)}function _te(t){function e(n){const o=Dv();return Fh(t,{...n,undoManager:o})}return e.displayName=`withUndoManager(${t.displayName||t.name})`,e}function Hv(){const t=Dv();u.useEffect(()=>{if(t!=null)return t.disable(),()=>t.enable()},[t])}function Wte(t){function e(n){return Hv(),Fh(t,{...n})}return e.displayName=`withDisableUndoManager(${t.displayName||t.name})`,e}const An=K("modal"),zh=u.forwardRef((t,e)=>{const{children:n,className:o,"data-testid":r,darkOverlay:a,disableBackgroundScroll:i,disableCloseOnOverlayClick:c,disableCloseOnEscape:h=!1,focusFirstInput:d=!0,focusOnOpen:m=!0,footer:p,forceToTop:f=!1,fullscreen:v=!1,heading:g,hideCloseButton:C=!1,hideHeader:b=!1,skipDialogClose:x=!1,useTopLayer:y=!0,onCancel:E,onClose:L=Zs.lQ,onClickBack:T,onCloseBubbles:S=!1,onOverlayClick:I,scroll:N=!1,subHeading:k,subText:M,width:R}=t;Hv();const A=bR(),B=(0,u.useRef)(null),P=(0,u.useCallback)(()=>{const H=A.current;!x&&H?.open&&H.close(),L()},[L,A,x]);(0,u.useEffect)(()=>{const H=F=>{gn(F)&&!h&&(F.preventDefault(),F.stopPropagation(),E?.(F),P())};return document.addEventListener("keydown",H,!S),()=>{document.removeEventListener("keydown",H,!S)}},[h,E,P,S]),(0,u.useEffect)(()=>{const H=A.current;if(H)return y?H.showModal():H.show(),m||setTimeout(()=>{H.contains(document.activeElement)&&document.activeElement?.blur()},0),()=>{H.close()}},[A,y,m]),(0,u.useEffect)(()=>{if(d&&A.current){const H=Ov(A.current).find(W=>W.tagName==="INPUT"||W.tagName==="TEXTAREA"||W.tagName==="SELECT"),F=H||B?.current;F?.focus(),F instanceof HTMLTextAreaElement&&F.setSelectionRange(F.value.length,F.value.length)}},[d,A]),(0,u.useEffect)(()=>(i&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{i&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[i,A]);const O=An({"force-to-top":f}).mix(o),D=An("content",{"with-footer":!!p,"force-scroll":!!N}),$=An("overlay",{dark:!!a});return(0,s.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:O.toString(),"data-testid":r,onClose:P,ref:H=>{A.current=H,e&&(e.current=H)},role:"dialog",children:[(0,s.jsx)("div",{id:"modal-portal"}),(0,s.jsx)("div",{className:$,onClick:c?void 0:I||P}),(0,s.jsxs)("div",{className:An("dialog",{fullscreen:v}),style:R&&!v?{width:R}:{},children:[(!b||!C)&&(0,s.jsxs)("div",{className:An("heading-wrapper"),children:[(0,s.jsxs)("div",{className:An("heading-flexbox"),children:[!b&&(0,s.jsxs)("div",{className:An("header"),children:[T&&(0,s.jsx)(St.ArcButton,{"aria-label":"back to previous page",hierarchy:"secondary",icon:"fa-regular fa-arrow-left",layout:"icon",onClick:T,shape:"square",size:"md",type:"button"}),(0,s.jsxs)("h1",{className:An("heading"),id:"modal-heading",children:[g,(0,s.jsx)("span",{className:An("subheading"),children:k})]})]}),!C&&(0,s.jsx)("button",{"aria-label":"close dialog",className:An("close"),onClick:P,ref:B,type:"button",children:(0,s.jsx)(Je,{className:"icon",name:"close"})})]}),M?(0,s.jsx)("h2",{className:An("subtitle"),children:M}):[]]}),(0,s.jsx)("div",{className:D,children:n}),p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:An("footer-shadow")}),(0,s.jsx)("div",{className:An("footer"),children:p})]})]})]})});var $h=l(37827),ys=l(53845);const Fv=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),LR=(t,e)=>{const n=t?.toLowerCase();try{return e?.[n]?.authorDisplayName??Fv.of(t)}catch(o){return console.warn(`Language ${t} invalid`,o),t}},ER=(t,e)=>{try{return e?.[t]?.learnerDisplayName??Fv.of(t)}catch(n){return console.warn(`Language ${t} invalid`,n),t}},Uh=()=>{const t=Oc(),e=Fa(t);return(0,u.useCallback)(o=>LR(o,e),[e])},TR=()=>{const t=Oc(),e=Fa(t);return(0,u.useCallback)(o=>ER(o,e),[e])},Ai=K("locale-selector"),_h=({onClose:t})=>{const e=(0,se.zy)(),n=Ge(),o=$x(),r=R1(),a=Ux(),i=a?.length?a:o&&r?r?.map(T=>T.locale):void 0,[c,h]=(0,u.useState)(!1),d=c&&(i?.length||0)>1,m=(0,Te.A)(d),p=fs(n.title),{currentLocale:f,setCurrentLocale:v}=(0,jt.nY)(),g=TR(),C=qt(),[b,x]=(0,u.useState)(!1),y=(0,u.useCallback)(T=>{(0,Ye.xS)(T),v(T)},[v]),E=()=>{(0,U.JD)((0,$h.Wp)(!1))};(0,u.useEffect)(()=>{m&&!d&&t?.()},[t,m,d]),(0,u.useEffect)(()=>{if(!i||b||o===void 0||!r)return;if(i.length===1){y(i[0]),x(!0);return}const T=(0,Ye.y4)(void 0),S=(0,Ye.JK)()??"";if(S!==""){y(S),x(!0),h(!1);return}T?.[fR.WY]==null&&S===""?h(!0):(h(!1),E());const N=(navigator.language??"en-US").toLowerCase(),k=i.find(M=>M.toLowerCase()===N);y(k?N:i[0]),x(!0)},[i,e,y,b,o,r,h]);const L=T=>{T.preventDefault();const S=T.target.value;y(S)};return!d||o===void 0||!r?null:(0,s.jsx)(ys.B1,{classNames:"modal",timeout:400,children:(0,s.jsx)(zh,{className:Ai("modal"),disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:E,children:(0,s.jsxs)("div",{className:Ai("container"),children:[(0,s.jsx)("div",{className:Ai("heading"),children:C.l10nChooseLanguage}),(0,s.jsx)("div",{className:Ai("course-title"),children:p}),(0,s.jsx)("div",{className:Ai("selector"),children:(0,s.jsx)("select",{onChange:L,value:f,children:i.map(T=>(0,s.jsx)("option",{value:T,children:g(T)},T))})}),(0,s.jsx)("div",{className:Ai("footer"),children:(0,s.jsx)(St.ArcButton,{onClick:E,size:"lg",children:C.l10nChooseLanguageContinue})})]})})})};var SR=l(26372);const IR=K("cover-container"),Vv=()=>document.querySelector("h1")?.focus({preventScroll:!0});function NR({didNavigate:t}){const n=(0,ht.useLabelsMap)()?.overviewPageTitleSuffix,o=mn();return SR.useEffect(()=>{t&&Vv()},[t]),(0,s.jsxs)(ya,{title:sl(`${o} - ${n}`),children:[(0,s.jsx)("main",{children:(0,s.jsx)("div",{className:IR({}),children:(0,s.jsxs)(pR,{children:[(0,s.jsx)(mR,{}),(0,s.jsx)(hR,{})]})})}),(0,s.jsx)(_h,{onClose:Vv})]})}const zv=NR,$v=(0,u.createContext)(void 0);function su(){const t=(0,u.useContext)($v);return t||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,closeTranscript:null,onTranscriptUpdate: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 Uv(t){function e(n){const o=su();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`WithMediaContextWrapper(${t.name})`,e}function jR({children:t,lessonId:e,mode:n="readonly",openTranscript:o,closeTranscript:r,onTranscriptUpdate:a,disableTranscriptButton:i=!1}){const c={mode:n,lessonId:e||"",openTranscript:o||null,closeTranscript:r||null,onTranscriptUpdate:a||null,disableTranscriptButton:i,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)($v.Provider,{value:c,children:t})}var Wh=l(74163);const _v=(0,_c.action)(Wh.l6),al=(0,_c.action)(Wh.ju),Gh=(0,_c.action)(Wh.Y8);function Lo(t){return t.refs?fi()("audio-id__refs_"+t.refs.toLowerCase()):""}function Kh(t){if(t)return`audio-transcript--${t}`}function Wv(t){if(t)return`audio-player-transcript-toggle--${t}`}const Gv=K("course-exit");function Kv(t){const e=(0,ht.useLabelsMap)(),{className:n,lmsOptions:o,style:r}=t;return o?.enableExitCourse?(0,s.jsx)("div",{className:Gv("wrapper"),children:(0,s.jsx)("button",{className:Gv("button").mix(n),onClick:_e.NS,style:r,type:"button",children:e?.courseExit})}):null}const Qh=K("nav-control"),kR=()=>{const[t,e]=(0,u.useState)(!1);return(0,es.A)(av,()=>e(!0)),(0,es.A)(gh,()=>e(!1)),t},AR=({"aria-controls":t,isNavOpen:e,toggleNav:n,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:i,...c}=Ge(),h=(0,u.useRef)(null),[d,m]=(0,u.useState)(0),p=(0,ht.useLabelsMap)(),f=$c(),v=bs(),g=kR(),b=!!(0,u.useMemo)(()=>c.lessons?.find(S=>S.id===v),[c.lessons,v])?.settings?.timer,x=a?.enableExitCourse,y=b||x,E=c.navigationType===w.br.COMPACT,L=E?"fixed-course-exit":void 0;(0,u.useEffect)(()=>{h.current=document.querySelector(".page-wrap");const I=document.querySelector(".lesson-nav--previous")?.clientHeight??60,N=!i||r===w.AY.FLOATING&&!f;function k({target:M}){const R=M?.scrollTop??0,A=I-R;m(A)}return g&&!N?h.current.scrollTop===0?m(I):h.current.addEventListener("scroll",k):m(0),()=>h.current.removeEventListener("scroll",k)},[r,f,g,i]);const T=(0,u.useCallback)(()=>{const S=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(h.current&&S){const I=h.current.offsetWidth-h.current.clientWidth||0;S.style.maxWidth=`calc(100% - ${I}px)`}},[]);return(0,u.useLayoutEffect)(()=>{y&&T()},[y,T]),(0,s.jsx)("div",{className:Qh("wrapper"),children:(0,s.jsxs)("div",{className:Qh("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:Qh("button"),onClick:n,type:"button",children:(0,s.jsx)(Je,{classNameIcon:"page-menu-toggle__icon",name:"bars-regular"})}),(0,s.jsx)(Kv,{className:L,lmsOptions:a})]})})};var Ls=l(31086);const Qv=K("nav-compact"),RR=At("NavCompactHeaderCounter",t=>{const{lessonPosition:e,labelLessonName:n,labelLessonPreposition:o,totalLessons:r}=t;return e<=0?null:(0,s.jsx)("div",{className:Qv("header-counter"),"data-testid":"nav-compact-counter",children:`${n} ${e} ${o} ${r}`})}),wR=At("NavCompactHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:i}=t;return(0,s.jsxs)("div",{className:Qv("header-progress"),"data-testid":"nav-compact-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(Wd,{"aria-hidden":i,"aria-label":a,progress:r,runnerClass:e,trackClass:o})]})}),PR=({closeNav:t,isExpanded:e,openNav:n})=>{const o=(0,ke.Z)(),r=(0,U.wA)(),a=pn(),i=Lt(),c=mn(),h=Fn(),d=(0,ht.useLabelsMap)(),m=uo(),p=Ar(),f=bs(),v=Pp(),g=(0,u.useMemo)(()=>i?.lessonsOnly?.length??0,[i?.lessonsOnly]),C=(0,u.useMemo)(()=>v[f]??-1,[v,f]),b=a?.navigationStyle,x=(0,u.useMemo)(()=>(0,Ut.FH)(b),[b]),y=(0,u.useCallback)(()=>{e?t():n()},[e,n,t]),E=a?.exportSettings?.webExportSettings,L=!Xo.isInstantLink&&(a?.lmsOptions?.disableCoverPage||E?.disableCoverPage),T=(0,u.useCallback)(De=>{De.preventDefault(),fr(()=>{o("/")},"lesson-to-cover")},[o]),N=`${vn()?`%${h}`:`${h}%`} ${d?.lessonComplete??""}`,{alpha:k,ariaLabel:M,media:R,role:A}=ha("coverImage"),B=(0,u.useMemo)(()=>(0,Ut.b9)({alpha:k,color:a?.theme?.coverImageColor,media:R}),[k,a?.theme?.coverImageColor,R]),P=J()("nav-compact__header",{"nav-compact__header--collapsed":!e}),O=J()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!e}),D="nav-compact__header-inner",$="nav-compact__header-control",H=J()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!e}),F=J()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!e}),W=J()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!e}),de=J()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!e}),fe="nav-compact__header-strip",Se=(0,u.useCallback)(()=>{r((0,Ls.ts)(!m?.active))},[r,m?.active]);return(0,s.jsxs)("section",{"aria-label":"Course Information",className:P,"data-testid":"nav-compact-header",children:[x&&B&&(0,s.jsx)("div",{"aria-label":M,className:O,role:A,style:B}),(0,s.jsxs)("div",{className:D,children:[(0,s.jsxs)("div",{className:fe,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:`${$} nav-compact__header-search`,"data-testid":"nav-compact-search",onClick:Se,type:"button",children:(0,s.jsx)(Xc,{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:`${$} nav-compact__header-toggle`,"data-testid":"nav-compact-toggle",onClick:y,type:"button",children:[e&&(0,s.jsx)(TT,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!e&&(0,s.jsx)(ST,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,s.jsx)(RR,{labelLessonName:d?.lessonName??"",labelLessonPreposition:d?.lessonPreposition??"",lessonPosition:C,totalLessons:g})]}),(0,s.jsx)("div",{className:"nav-compact__header-title","data-testid":"nav-compact-title",children:L?(0,s.jsx)("span",{className:H,children:c}):(0,s.jsx)(Nn,{className:H,onClick:T,to:"/",children:c})}),(0,s.jsx)(wR,{classProgressRunner:de,classProgressText:F,classProgressTrack:W,navExpanded:e,percentComplete:h,percentCompleteText:N})]})]})};var MR=l(24160),Zv=l.n(MR),Jte=l(22713),OR=l(47971),Yv=l.n(OR),BR=l(12764),DR=l.n(BR),HR=l(37541),FR=l.n(HR),VR,zR,$R,UR,_R;function Xv(t,e,n="..."){const o=t?t.toString():"";return o.length>e?o.substr(0,e-1)+n:o}const qte=t=>_R(e=>zR(e)>t,$R(0,t)),WR=null,GR=t=>WR.test(t),KR=t=>t>=0,QR=t=>t<=100,ese=t=>t==="",tse=t=>GR(t)&&QR(t)&&KR(t),sse=t=>String(Number(t)),Jv=Xe()(wc()(""),Zv()(DR(),0)),nse=Xe()(wc()(" "),vr()(Jv),Yv()(" ")),qv=Xe()(wc()(" "),Yv()(/(?=[A-Z]|^)/)),ose=t=>t?VR(Jv,UR,qv)(t):"",rse=Xe()(FR(),qv);function e3({id:t,isEnabled:e,isSectionLesson:n,last:o}){const{navigationStyle:r}=Lt(),a=ri(t),i=Kn(),c=S0(t),h=(0,u.useMemo)(()=>(0,Ut.I8)(r),[r]),d=t===i,m=Xv(a||"",45),[p,f]=(0,u.useState)(!1),v=(0,u.useCallback)(()=>f(!0),[]),g=(0,u.useCallback)(()=>f(!1),[]),C=n?"nav-compact__outline-section-item":"nav-compact__outline-item",b=(0,s.jsx)(tu,{canComplete:c,id:t,isDark:h,isEnabled:e,isTooltipVisible:p,onHideTooltip:g,onShowTooltip:v,scope:et.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)(tl,{className:C,dark:h,isCurrentLesson:d,isTooltipEnabled:!c,last:o,lessonId:t,onHideProgressTooltip:g,onShowProgressTooltip:v,showProgressDelay:0,tooltipClassName:`${C}-tooltip`,children:[m,!c&&b]}),c&&b]})}const ZR=K("nav-compact"),YR=({id:t})=>{const e=Vs(t),n=fs(e?.title),o=ZR("outline-section-empty");return(0,s.jsx)("div",{className:o,children:(0,s.jsx)("span",{children:n})})};var Ri=l(26372);const XR=({index:t,isEnabled:e,lessonIds:n,id:o})=>{const r=Lt(),a=r?.theme,i=r?.themeId,c=a?.navigationSectionsExpanded??!0,h=Vs(String(o)),d=fs(h?.title),[m,p]=Ri.useState(c);Ri.useEffect(()=>{p(c)},[c]);const[f,v]=Ri.useState(),g=Ri.useRef(null),C=`sublistCompact-${t}`,b=String(i),x=J()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!m}),y=J()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!m}),E=J()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!m}),L=Ri.useCallback(()=>{p(T=>!T)},[]);return Ri.useLayoutEffect(()=>{const T=setTimeout(()=>{g.current&&v(g.current.scrollHeight)},0);return()=>{clearTimeout(T)}},[n.length,b]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":C,"aria-expanded":m,className:E,onClick:L,tabIndex:e?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:d}),(0,s.jsx)(Wf,{className:x})]}),(0,s.jsx)(el,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:y,id:C,ref:g,role:"list",style:{maxHeight:f},children:n.map((T,S)=>(0,s.jsx)(e3,{id:T,isEnabled:e&&m,isSectionLesson:!0,last:S===n.length-1},T))})})]})},JR=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a="nav-compact__outline-item nav-compact__outline-section";return xs()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(YR,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(XR,{id:o,index:t,isEnabled:e,lessonIds:r})})},qR=({index:t,isEnabled:e,lessonIds:n})=>Ql(n)?(0,s.jsx)(JR,{index:t,isEnabled:e,lessonIds:n}):n.map((r,a)=>(0,s.jsx)(e3,{id:r,isEnabled:e,isSectionLesson:!1,last:a===n.length-1},r)),ew=t=>t.displayName||t.name||"Component";var tw=l(59755),sw=l.n(tw);function nw(t,e,n){const o=[];let r=0;return n.replace(t,function(...a){const i=a.length,c=a[0],h=a[i-1],d=a[i-2],m=h.slice(r,d),p=typeof e=="function"?e(...a):e;return o.push(m,p),r=d+c.length,""}),o.push(n.slice(r)),o}const ow=(t,e)=>(0,s.jsx)("mark",{children:t},e),rw=(t,e)=>nw(new RegExp(sw()(e),"igm"),ow,t);var aw=l(47198),iw=l.n(aw),cw=l(80888),lw=l.n(cw);const il=lw()(iw()),hse=t=>t.toLowerCase();var dw=l(32261),t3=l.n(dw),uw=l(92369),Zh=l.n(uw),hw=l(5811),nu=l.n(hw),mw=l(66048),cl=l.n(mw),pw=l(97930),fw=l.n(pw),vw=l(74355),gw=l.n(vw),Cw=l(3099),xw=l.n(Cw),bw,yw;const Lw=t=>t===-1,Ew=t=>t>=0,Tw=cl()(3,(t,e,n)=>Zv()(t,n,e)),Yh=cl()(3,(t,e,n)=>n[t]==e),mse=cl()(3,(t,e,n)=>Ps()(Ho()(Yh("id",e)),yi()(Lw,is()(n),Tw(t,n)))(n)),pse=t=>yw(bw(Yh("id",t))),fse=cl()(3,(t,e,n)=>fw()(e,n[t],xw()(t,1,n)));function Sw(t,e){const n=[];for(const o of e)if(n.push(o),t(o))break;return n}const Iw=Zh()(gw()(t3(),0)),s3=Xe()(Array.from,Array),n3=va()((t,e)=>s3(e).map(()=>t)),Nw=va()((t,e,n,o)=>s3(n).map((r,a)=>a===o?e:t)),vse=cl()(3,(t,e,n)=>Ps()(Ho()(Yh(t,e)),Ew)(n));function gse(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 ou=(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},Cse=va()((t,e,n)=>n>=t&&n<e),o3=t=>t<10?`0${t}`:String(t),jw=t=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(t),r3=t=>t.reduce((e,n)=>isNaN(n)||n==null?e:e+n,0),kw=At("NavCompactOutline",({className:t="",isEnabled:e,lessonIdGroups:n})=>{const o=(0,ht.useLabelsMap)(),r=J()(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:il(n)&&(0,s.jsx)("ol",{className:"nav-compact__outline-list","data-testid":"nav-compact-outline-list",role:"list",children:n.map((a,i)=>xs()(a)?null:(0,s.jsx)(qR,{index:i,isEnabled:e,lessonIds:a},i))})})});function Aw(t){const e=Wt(t);return{lessonIdGroups:T0(t),navigationStyle:e.navigationStyle}}const Rw=(0,U.Ng)(Aw)(kw);var ww=l(26372);const Pw=()=>{const[t,e]=ww.useState(!1);return(0,es.A)(iv,()=>e(!0)),(0,es.A)(Ch,()=>e(!1)),t},a3=K("nav-compact"),i3="nav-content-compact",Mw=({closeNav:t,coverImageColor:e,isExpanded:n,navigationStyle:o,openNav:r,progressIndicatorStyle:a,translateY:i},c)=>{const h=(0,u.useMemo)(()=>(0,Ut.I8)(o),[o]),d=(0,u.useMemo)(()=>o===w.Py.LIGHT_ACCENT||o===w.Py.DARK_ACCENT,[o]),m=Pw(),p=(0,u.useMemo)(()=>(0,Ut.FH)(o),[o]),f=a===w.Y2.CIRCULAR_FILL,v=a===w.Y2.INCOMPLETE_COMPLETE,g=(0,u.useMemo)(()=>p&&e===w.df.LIGHT,[p,e]),C=a3({accent:d,dark:h,light:!h,"image-dark-overlay":p&&!g,"image-light-overlay":p&&g,"progress-circular-fill":f,"progress-incomplete-complete":v,collapsed:!n,navNextIsVisible:m}),b=a3("wrap",{collapsed:!n}),x={transform:`translateY(${i}px)`};return(0,s.jsx)("div",{className:C,"data-testid":"nav-compact",id:i3,ref:c,style:x,children:(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)(PR,{closeNav:t,isExpanded:n,openNav:r}),(0,s.jsx)(el,{inert:!n,children:(0,s.jsx)(Rw,{isEnabled:n})})]})})};function Ow(t){return Wt(t).buttonNavigationStyle==="FULL"?Math.round(-(t.ui.lessonNavNextButton?.intersectionRect?.height??0)):0}function Bw(t){const{color:e,navigationStyle:n,theme:o}=Wt(t),r=o?.coverImageColor,a=o?.progressIndicatorStyle,i=Ow(t);return{color:e,coverImageColor:r,navigationStyle:n,progressIndicatorStyle:a,translateY:i}}const Dw=Xe()((0,U.Ng)(Bw,null,null,{forwardRef:!0}),u.forwardRef)(Mw);var c3=l(48519);const l3=Object.assign((0,u.createContext)(null),{displayName:"OverlayNavControlContext"});function Hw(t){const{children:e,closeNav:n,openNav:o}=t,[r,a]=(0,u.useState)(!1),i=(0,u.useCallback)(()=>{a(!0)},[]),c=(0,u.useCallback)(()=>{a(!1)},[]);return(0,s.jsx)(l3.Provider,{value:{closeNav:n,openNav:o,openSearch:i,closeSearch:c,searchActive:r},children:e})}const ru=u.useContext.bind(null,l3),au=K("nav-overlay"),Fw=({className:t})=>{const{navigationStyle:e}=Lt(),{lessonComplete:n}=(0,ht.useLabelsMap)(),o=vn(),r=Fn(),i=`${o?`%${r}`:`${r}%`} ${n}`,c=e!==w.qB.ACCENT,h=au("header-progress-runner"),d=au("header-progress-text"),m=au("header-progress-track");return(0,s.jsxs)("div",{className:au("header-progress").mix(t),"data-testid":"nav-overlay-progress",children:[(0,s.jsx)(Wd,{"aria-hidden":!0,background:!0,disabled:c,progress:r,runnerClass:h,trackClass:m}),(0,s.jsx)("div",{className:d,children:i})]})},Cr=K("nav-overlay"),Vw=()=>{const t=Lt(),e=(0,ke.Z)(),n=mn(),{allowSearch:o,lmsOptions:r={}}=t||{},a=Ar(),i=(0,ht.useLabelsMap)(),c=ru(),h=(0,u.useRef)(),d=Cr("header-control-btn"),m=t?.exportSettings?.webExportSettings,p=!Xo.isInstantLink&&(r?.disableCoverPage||m?.disableCoverPage),f=v=>{v.preventDefault(),fr(()=>{e("/")},"lesson-to-cover")};return(0,s.jsx)("section",{"aria-label":"Course Information","data-testid":"nav-overlay-header",children:(0,s.jsxs)("div",{className:Cr("header-container"),children:[(0,s.jsxs)("div",{className:Cr("header-controls"),children:[(0,s.jsx)("button",{"aria-label":i?.a11yNavigationMenuClose,className:d,"data-testid":"nav-overlay-close",onClick:c.closeNav,ref:h,type:"button",children:(0,s.jsx)($d,{className:Cr("header-close-icon")})}),o&&a!=="restricted"&&(0,s.jsx)("button",{"aria-label":i?.a11ySearchOpen,className:d,"data-testid":"nav-overlay-search",onClick:c.openSearch,type:"button",children:(0,s.jsx)(Xc,{className:Cr("header-search-icon")})})]}),(0,s.jsxs)("div",{className:Cr("header-title-progress-container"),children:[(0,s.jsx)("h1",{className:Cr("header-title"),"data-testid":"nav-overlay-title",id:"nav-overlay-title",children:p?(0,s.jsx)("span",{className:Cr("header-title"),children:n}):(0,s.jsx)(Nn,{className:Cr("header-title-link"),onClick:f,to:"/",children:n})}),(0,s.jsx)(Fw,{})]})]})})},Xh=({icon:t,...e})=>{switch(t){case et.xA.INTERACTION:return(0,s.jsx)(wT,{...e});case et.xA.QUIZ:return(0,s.jsx)(jT,{...e});case et.xA.VIDEO:return(0,s.jsx)(PT,{...e});default:return(0,s.jsx)(LT,{...e})}},wi=K("nav-overlay"),d3=At("NavOverlayOutlineLesson",({first:t,id:e,isEnabled:n,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=Lt(),{icon:i}=Vs(e),c=ri(e),h=ru(),d=S0(e),m=(0,Ut.I8)(a),p=wi("outline-item",{section:o}),f=wi("outline-item-link-icon",{quiz:i==="Quiz"}),v=(0,u.useCallback)(()=>{h.closeNav()},[h]),[g,C]=(0,u.useState)(!1),b=(0,u.useCallback)(()=>C(!0),[]),x=(0,u.useCallback)(()=>C(!1),[]),y=(0,s.jsx)(tu,{canComplete:d,id:e,isDark:m,isEnabled:n,isTooltipVisible:g,onHideTooltip:x,onShowTooltip:b,scope:et.by.OVERLAY});return(0,s.jsxs)("li",{className:wi("outline-list-item",{first:t,last:r}),"data-testid":`nav-overlay-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(tl,{className:p.toString(),dark:m,isTooltipEnabled:!d,lessonId:e,onHideProgressTooltip:x,onNavigate:v,onShowProgressTooltip:b,showProgressDelay:null,tooltipClassName:wi("outline-item-tooltip").toString(),children:[(0,s.jsx)("span",{className:wi("outline-icon-wrap"),children:(0,s.jsx)(Xh,{className:f,icon:i})}),(0,s.jsx)("span",{className:wi("outline-lesson-title"),children:c}),!d&&y]}),d&&y]})}),zw=K("nav-overlay"),$w=({id:t})=>{const e=Vs(t),n=fs(e.title);return(0,s.jsx)("span",{className:zw("outline-section-text"),children:n})},u3=K("nav-overlay"),Uw=({isEnabled:t,lessonIds:e})=>{const n=(0,u.useRef)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:u3("outline-section-divider")}),(0,s.jsx)("ol",{className:u3("outline-section-list"),ref:n,role:"list",children:e.map((o,r)=>(0,s.jsx)(d3,{id:o,isEnabled:t,isSectionLesson:!0,last:r===e.length-1},o))})]})},_w=K("nav-overlay"),Ww=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a=_w("outline-item").mix("nav-overlay__outline-section");return xs()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)($w,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(Uw,{index:t,isEnabled:e,lessonIds:r})})},Gw=({index:t,isEnabled:e,lessonIds:n})=>{const o=Ql(n),r=ri(n[0]),a=K("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)(Ww,{index:t,isEnabled:e,lessonIds:n})})]}):n.map((i,c)=>(0,s.jsx)(d3,{first:c===0,id:i,isEnabled:e,isSectionLesson:!1,last:c===n.length-1},i))},Kw=K("nav-overlay"),Qw=At("NavOverlayOutline",({isEnabled:t})=>{const e=Hp(),n=(0,ht.useLabelsMap)();return(0,s.jsx)("section",{"aria-label":n?.a11yRegionNavOverview,className:Kw("outline"),"data-testid":"nav-overlay-outline",id:"nav-overlay-outline",children:il(e)&&(0,s.jsx)(s.Fragment,{children:e.map((o,r)=>xs()(o)?null:(0,s.jsx)(Gw,{index:r,isEnabled:t,lessonIds:o},`lessonIdGroup-${r}`))})})});var Zw=l(66052),iu=l.n(Zw),Ea=l(75656),Yw=l(5651),Ta=l.n(Yw),Xw=l(34638),cu=l.n(Xw),Jw=l(98757),xr=l.n(Jw),qw=l(5832),rn=l.n(qw);const Jh=Array.isArray,eP=t=>typeof t=="number",lu=t=>!rn()(t)&&typeof t=="object",qh=t=>typeof t=="string",tP=(t,e,n)=>(o,r)=>{const a=fa()(r,t);if((0,Zt.uW)(o)){const i=n[o.l10nId];return typeof i!="string"?!1:!xs()(cu()(e,(0,Ea.htmlDecode)(i)))}else return lu(o)?h3(t,e,n)(o):a&&qh(o)?!xs()(cu()(e,(0,Ea.htmlDecode)(o))):!1},h3=(t,e,n)=>o=>Ps()(Ta(),xr(),fa()(!0))(tP(t,e,n),o),sP=h3;var nP=l(43180),em=l.n(nP),oP=l(97285),tm=l.n(oP),rP=l(89565),du=l.n(rP);const aP=(t,e,n)=>(o,r)=>{const a=fa()(r,t);return Jh(o)?xr()(sm(t,e,n)(o)):(0,Zt.uW)(o)?typeof n[o.l10nId]!="string"?0:us()(cu()(e,(0,Ea.htmlDecode)(n[o.l10nId]))):lu(o)?sm(t,e,n)(o):a&&qh(o)?us()(cu()(e,(0,Ea.htmlDecode)(o))):0},sm=(t,e,n)=>o=>Ta()(aP(t,e,n),o),nm=t=>{if(Jh(t))return vr()(nm,t);if(lu(t))return nm(xr()(t));if(eP(t))return t},iP=(t,e,n)=>o=>Ps()(sm(t,e,n),xr(),vr()(nm),tm(),du()(em(),0),r=>bo()("results",r,o))(o),cP=(t,e,n)=>(o,r)=>{const a=fa()(r,t);return Jh(o)?xr()(om(t,e,n)(o)):lu(o)?om(t,e,n)(o):a&&qh(o)?Z1()(e,n,o):o},om=(t,e,n)=>o=>Ta()(cP(t,e,n),o),m3=om,p3=(t,e,n,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title"];if(xs()(t))return!1;const i=t.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),c=new RegExp(`(${i})(?![^<]*>)`,"ig"),h=x=>`<mark>${x}</mark>`,d=m3(a,c,h),m=m3(Object.keys(n),c,h),p=vr()(d,e),f=o?o(t):{},v=m(n),g=x=>f[x.id]>0||sP(a,c,n)(x),C=iP(a,c,n),b=Ps()(Js()(g),vr()(C))(e);b.forEach(x=>{x.results+=f[x.id]??0}),r(t,b,v,p)};function lP(t){if(!t)return!0;for(const e in t)return!1;return!0}function f3(){const{lessons:t,mondrian:e}=Lt(),{currentLocale:n}=(0,jt.nY)(),[o,r]=(0,u.useState)(null);return(0,u.useEffect)(()=>{lP(e)||l.e("webpack_container_remote_mondrian_learn-react").then(l.t.bind(l,4246,23)).then(a=>r(()=>a.searchItemsByLesson))},[e]),(0,u.useCallback)(a=>o?.(a,t,e,n)??{},[o,t,e,n])}const dP=rl.Ay.animateScroll,Qn=K("nav-overlay"),uP=()=>{const t=(0,U.wA)(),e=Ns(),n=ru(),{lessons:o}=Lt(),[r,a]=(0,u.useState)(""),i=f3(),c=(0,u.useRef)(),h=(0,ht.useLabelsMap)(),d=Qn("search-close-btn"),m=Qn("search-clear-btn"),p=(0,u.useCallback)(()=>{n.closeSearch(),n.closeNav(),t([(0,Ls.Se)(!0),(0,Ls.ts)(!1),(0,Ls.NM)(null)])},[t,n]),f=(0,u.useCallback)(()=>{a(""),c.current?.focus?.()},[]);(0,u.useEffect)(()=>{c.current?.focus?.()},[]);const v=(0,u.useCallback)(b=>{gn(b)&&!iu()(r)?(b.preventDefault(),a(""),t((0,Ls.NM)(null))):gn(b)&&iu()(r)&&p()},[t,p,r]);(0,es.A)("keydown",v);const g=(0,u.useCallback)(b=>{a(b.target.value)},[]),C=(0,u.useCallback)(b=>{if(b.preventDefault(),r){const x=(y,E,L,T)=>{t([(0,Ls.NM)(y),(0,Ls.gA)(E),(0,Ls.D2)(L),(0,Ls.u)(T),(0,Ls.ts)(!0)]),dP.scrollToTop({duration:500,smooth:!0})};n.closeNav(),n.closeSearch(),p3(r,o,e??{},i,x)}},[r,i,n,o,e,t]);return(0,s.jsxs)("div",{className:Qn("search"),"data-testid":"nav-overlay-search-container",children:[(0,s.jsx)("div",{className:Qn("search-header"),children:(0,s.jsx)("button",{"aria-label":h?.a11ySearchClose,className:d,"data-testid":"nav-overlay-search-close",onClick:p,type:"button",children:(0,s.jsx)($d,{className:Qn("search-close-icon")})})}),(0,s.jsx)("div",{className:Qn("search-body"),children:(0,s.jsxs)("form",{autoComplete:"off",onSubmit:C,children:[(0,s.jsxs)("div",{className:Qn("search-container"),children:[(0,s.jsx)(Xc,{className:Qn("search-icon")}),(0,s.jsx)("input",{"aria-label":h?.a11ySearchInput,className:Qn("search-input").mix("brand--ui"),"data-testid":"nav-overlay-search-input",name:"search",onChange:g,placeholder:h?.search,ref:c,type:"input",value:r}),r&&(0,s.jsx)("button",{"aria-label":h?.a11ySearchInputClear,className:m,"data-testid":"nav-overlay-search-clear",onClick:f,type:"button",children:(0,s.jsx)($d,{className:Qn("search-clear-icon").toString()})})]}),(0,s.jsx)("div",{className:Qn("search-actions"),children:(0,s.jsx)("button",{className:Qn("search-submit-btn").mix("brand--ui"),"data-testid":"nav-overlay-search-submit",type:"submit",children:h?.search})})]})})]})},rm=K("nav-overlay"),v3="nav-content-overlay",hP=({isExpanded:t,outlineRef:e})=>{const o=Hp()[0],r=Ql(o),a=rm("body",{section:r});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Vw,{}),(0,s.jsx)("div",{className:a,ref:e,children:(0,s.jsx)(Qw,{isEnabled:t})})]})},mP=({children:t,isImage:e,hasStickyHeader:n})=>{const o=rm("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)(K1,{})]})},pP=({isExpanded:t})=>{const e=(0,u.useRef)(null),n=(0,u.useRef)(),o=Lt(),r=ru(),a=(0,Te.A)(t),{navigationStyle:i,theme:{progressIndicatorStyle:c}={}}=o||{},h=o?.theme?.coverImageColor,d=i===w.qB.ACCENT,m=i===w.qB.TINT,p=(0,Ut.I8)(i),f=i===w.qB.GRAY,v=i===w.qB.LIGHT,g=(0,Ut.FH)(i),C=c===w.Y2.CIRCULAR_FILL,b=c===w.Y2.INCOMPLETE_COMPLETE,[x,y]=(0,u.useState)(!0),{isIntersecting:E=!1}=(0,c3.A)(n,{root:e?.current,threshold:1})||{},L=(0,Te.A)(E),T=(0,u.useMemo)(()=>g&&h===w.df.LIGHT,[g,h]),S=rm({"accent-tint":m,accent:d,dark:p,gray:f,"image-dark-overlay":g&&!T,"image-light-overlay":g&&T,light:v,"progress-circular-fill":C,"progress-incomplete-complete":b,closing:a&&!t});return(0,u.useEffect)(()=>{t?e.current?.showModal():setTimeout(()=>{e.current?.close()},500)},[t]),(0,u.useEffect)(()=>{const I=N=>{gn(N)&&!r.searchActive&&(N.preventDefault(),r.closeNav())};return t?document.addEventListener("keydown",I):document.removeEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[t,r]),(0,u.useEffect)(()=>{!x&&E?y(!0):L&&!E&&y(!1)},[E,x,L,y]),(0,s.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:S,"data-testid":"nav-overlay",id:v3,ref:e,children:(0,s.jsx)(mP,{hasStickyHeader:x,isImage:g,children:r.searchActive?(0,s.jsx)(uP,{}):(0,s.jsx)(hP,{isExpanded:t,outlineRef:n})})})},ll=K("nav-sidebar-search"),fP=At("NavSidebarSearch",({className:t="",isEnabled:e})=>{const n=(0,U.wA)(),o=Ns(),r=(0,Te.A)(e),{lessons:a}=Lt(),i=uo(),c=(0,ht.useLabelsMap)(),h=(0,u.useRef)(),d=ll({disabled:!e}).mix(t),m=ll("icon"),p=ll("input"),f=ll("close"),v=ll("close-icon"),g=i?.term,C=e?void 0:"disabled",[b,x]=(0,u.useState)(""),y=f3(),E=(0,u.useCallback)(()=>{n([(0,Ls.Se)(!0),(0,Ls.ts)(!1),(0,Ls.NM)(null)]),x("")},[n]),L=(0,u.useCallback)(I=>{gn(I)&&!iu()(b)?(I.preventDefault(),x(""),n((0,Ls.NM)(null))):gn(I)&&iu()(b)&&E()},[n,E,b]),T=(0,u.useCallback)(I=>{g!=null&&n((0,Ls.NM)(null)),x(I.target.value)},[n,g]),S=(0,u.useCallback)(I=>{I.preventDefault(),p3(b,a,o??{},y,(k,M,R,A)=>n([(0,Ls.NM)(k),(0,Ls.gA)(M),(0,Ls.D2)(R),(0,Ls.u)(A)]))},[n,a,o,b,y]);return(0,u.useEffect)(()=>{!r&&e&&setTimeout(()=>{h.current?.focus()},50)},[e,r]),(0,u.useEffect)(()=>{g&&g!==b&&x(g)},[b,g]),(0,s.jsxs)("form",{autoComplete:"off",className:d,"data-testid":"nav-sidebar-search",onSubmit:S,children:[(0,s.jsx)(Xc,{className:m}),(0,s.jsx)("input",{"aria-label":c?.a11ySearchInput,className:p,disabled:C,name:"search",onChange:T,onKeyDown:L,placeholder:c?.search,ref:h,type:"search",value:b}),(0,s.jsx)("button",{"aria-label":c?.a11ySearchClose,className:f,onClick:E,type:"reset",children:(0,s.jsx)($d,{className:v})})]})}),Zn=K("nav-sidebar-header"),vP=K("nav-sidebar-header-ghost"),gP=()=>(0,U.d4)(t=>t.ui.skipToNavButton?.offsetHeight??0),CP=At("NavSidebarHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:i}=t;return(0,s.jsxs)("div",{className:Zn("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)(Wd,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o}),(0,s.jsx)("div",{className:n,children:i})]})}),xP=At("NavSidebarHeader",({className:t,isCompact:e,isEnabled:n,navRefWidth:o,setIsCompact:r})=>{const a=(0,U.wA)(),i=(0,ke.Z)(),[c,h]=(0,u.useState)(""),[d,m]=(0,u.useState)({height:0,width:0}),[p,f]=(0,u.useState)(d),[v,g]=(0,u.useState)(d),C=gP(),b=(0,u.useRef)(),x=(0,u.useRef)(),y=(0,u.useRef)(),[E,L]=(0,u.useState)(null),T=Lt(),S=mn(),I=(0,ht.useLabelsMap)(),N=Fn(),k=uo(),M=F1(),R=vn(),A=Ar(),B=T?.exportSettings?.webExportSettings,P=!Xo.isInstantLink&&(T?.lmsOptions?.disableCoverPage||B?.disableCoverPage),O=T?.allowSearch&&A!=="restricted",D=T?.theme?.coverImageColor,$=T?.navigationStyle,H=(0,u.useMemo)(()=>(0,Ut.FH)($),[$]),F=Ry(),W=(0,Te.A)(k),de=(k?.active||F)??!1,[fe,Se]=(0,u.useState)(!0),[De,Ie]=(0,u.useState)(null),Ne=Zn({compact:e,searching:de,transition:fe}).mix(t),ae=Zn("inner",{compact:e}),Z=Zn("content",{compact:e,hidden:de}),ve=Zn("graphic",{image:H}),we=Zn("progress-runner"),Me=Zn("progress-text",{compact:e}),Ae=Zn("progress-track"),Ue=Zn("search-area",{hidden:!de}),it=Zn("search-btn",{hidden:de}),rt=Zn("search-icon"),vt=Zn("title",{compact:e}),ft=vP({compact:e,searching:de}),ln=`${R?`%${N}`:`${N}%`} ${I?.lessonComplete}`,ar=n&&!de?void 0:-1,zt=n&&!de?void 0:-1,{alpha:Rs,media:ir}=ha("coverImage"),No=(0,u.useMemo)(()=>{let _t={};return H&&Object.assign(_t,(0,Ut.b9)({alpha:Rs,color:D,media:ir})),de&&(_t.height=p.height),_t},[Rs,D,ir,H,de,p.height]),jo=(0,u.useMemo)(()=>{let _t={};return e&&(_t.bottom=`calc(100% - ${C}px)`,_t.width=o||0,_t.transition="width 0.3s",n||(_t.transition="width 0.3s",_t.width="0rem")),d.height&&(_t.height=d.height,_t.overflow="hidden",e&&(_t.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),_t},[e,n,o,d.height,C]);(0,u.useEffect)(()=>{h(e&&M?Xv(S,45):S)},[S,e,M]);const cr=de?void 0:{height:v.height},so=(0,u.useCallback)(()=>{f(d),a((0,Ls.ts)(!0))},[a,d]),Er=(0,u.useCallback)(_t=>{_t.preventDefault(),fr(()=>{i("/")},"lesson-to-cover")},[i]);(0,u.useLayoutEffect)(()=>{Ie(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:no=!1}=(0,c3.A)(b,{root:De,threshold:0})||{},ko=(0,Te.A)(no);(0,u.useEffect)(()=>{const _t=E!=null&&window.innerHeight*.4>=E.offsetHeight;ko&&!no&&_t?r(!0):!ko&&no&&r(!1)},[no,ko,E,r]);const nc=(0,u.useCallback)(({target:_t})=>{const dn={height:_t?.scrollHeight??0,width:o??0};m(dn),f(dn),e||g(dn)},[e,o]);Qd(E,nc),(0,u.useLayoutEffect)(()=>{const _t=De?.scrollTop;(De||_t>0)&&(De.scrollTop=0);const dn={height:E?.scrollHeight??0,width:o??0};m(dn),f(dn),g(dn)},[De,o,E]),(0,u.useEffect)(()=>{O&&W?.active&&!k.active&&x?.current?.focus()},[O,k,W]),(0,u.useEffect)(()=>{de?Se(!0):e&&Se(!1)},[de,e]);const Ba=(0,u.useCallback)(_t=>{if(!_t.target.hasAttribute("data-nav-item")||!e)return;const dn=E.getBoundingClientRect(),Ao=_t.target.getBoundingClientRect();dn.bottom>Ao.top&&(De.scrollTop-=dn.height-Ao.top+5)},[De,e,E]);return(0,es.A)("focusin",Ba,De),(0,u.useEffect)(()=>h(S),[S]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ft,ref:b,style:cr}),(0,s.jsx)("div",{className:Ne,"data-testid":"nav-sidebar-header",ref:y,style:jo,children:(0,s.jsxs)("div",{className:ae,ref:L,children:[(0,s.jsx)("div",{className:ve,style:No}),O&&(0,s.jsx)("button",{"aria-label":I?.a11ySearchOpen,className:it,onClick:so,tabIndex:ar,type:"button",children:(0,s.jsx)(Xc,{className:rt})}),(0,s.jsx)("div",{className:Ue,children:(0,s.jsx)(fP,{isEnabled:n&&de})}),(0,s.jsxs)("div",{className:Z,children:[P?(0,s.jsx)("span",{className:vt,"data-testid":"nav-sidebar-title",tabIndex:zt,children:c}):(0,s.jsx)(Nn,{className:vt,"data-testid":"nav-sidebar-title",onClick:Er,tabIndex:zt,to:"/",children:c}),(0,s.jsx)(CP,{classProgressRunner:we,classProgressText:Me,classProgressTrack:Ae,percentComplete:N,percentCompleteText:ln})]})]})})]})}),bP=K("nav-sidebar");function g3({closeNav:t,id:e,isEnabled:n,isSectionLesson:o,last:r}){const{navigationStyle:a}=Lt(),{icon:i}=Vs(e)??{},c=ri(e),h=Kn(),d=$c(),m=S0(e),p=e===h,f=(0,u.useMemo)(()=>(0,Ut.I8)(a),[a]),v=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",g=J()(`${v}-link-icon`),C=(0,s.jsx)(Xh,{className:g,icon:i}),[b,x]=(0,u.useState)(!1),y=(0,u.useCallback)(()=>x(!0),[]),E=(0,u.useCallback)(()=>x(!1),[]),L=(0,s.jsx)(tu,{canComplete:m,id:e,isDark:f,isEnabled:n,isTooltipVisible:b,onHideTooltip:E,onShowTooltip:y,scope:et.by.SIDEBAR}),T=()=>{t&&d&&t()};return(0,s.jsxs)("li",{className:bP("outline-list-item",{last:r}),"data-testid":`nav-outline-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(tl,{className:v,dark:f,isCurrentLesson:p,isTooltipEnabled:!m,lessonId:e,onHideProgressTooltip:E,onNavigate:T,onShowProgressTooltip:y,showProgressDelay:0,tooltipClassName:`${v}-tooltip`,children:[C,c,!m&&L]}),m&&L]})}const yP=({title:t})=>(0,s.jsx)("span",{className:"nav-sidebar__outline-section-text",children:t});function LP(){const t=la(),e=Nr();return(n,o)=>{const{currentLocale:r}=o,a=Wt(n),i=t(o.id,n),c=e(i.title,r,n);return{navigationStyle:a.navigationStyle,title:c}}}const EP=Xe()(jt.wZ,(0,U.Ng)(LP))(yP);var Pi=l(26372);const TP=({closeNav:t,id:e,index:n,isEnabled:o,lessonIds:r})=>{const a=Lt(),i=a?.theme,c=a?.themeId,h=i?.navigationSectionsExpanded??!0,d=ri(String(e)),[m,p]=Pi.useState(h);Pi.useEffect(()=>{p(h)},[h]);const[f,v]=Pi.useState(),g=Pi.useRef(null),C=`sidebar-sublist-${n}`,b=g.current?.clientWidth,x=String(c),y=J()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!m}),E=J()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!m}),L=Pi.useCallback(()=>{p(T=>!T)},[]);return Pi.useLayoutEffect(()=>{const T=setTimeout(()=>{g.current&&v(g.current.scrollHeight)},0);return()=>{clearTimeout(T)}},[r.length,b,x]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":C,"aria-expanded":m,className:"nav-sidebar__outline-section-toggle","data-nav-item":"",onClick:L,tabIndex:o?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:d}),(0,s.jsx)(Wf,{className:y})]}),(0,s.jsx)(el,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:E,id:C,ref:g,role:"list",style:{maxHeight:f},children:r.map((T,S)=>(0,s.jsx)(g3,{closeNav:t,id:T,isEnabled:o&&m,isSectionLesson:!0,last:S===r.length-1},T))})})]})},SP=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>{const[r,...a]=o,i="nav-sidebar__outline-item nav-sidebar__outline-section";return xs()(a)?(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(EP,{id:r})}):(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(TP,{closeNav:t,id:r,index:e,isEnabled:n,lessonIds:a})})},IP=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>Ql(o)?(0,s.jsx)(SP,{closeNav:t,index:e,isEnabled:n,lessonIds:o}):o.map((a,i)=>(0,s.jsx)(g3,{closeNav:t,id:a,isEnabled:n,isSectionLesson:!1,last:i===o.length-1},a)),NP=At("NavSidebarOutline",({className:t="",closeNav:e,isEnabled:n,lessonIdGroups:o})=>{const r=(0,Te.A)(n),[a,i]=(0,u.useState)(!n),c=(0,ht.useLabelsMap)(),h=(0,u.useRef)(),d=J()(t,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":a,"nav-sidebar__outline--safari":jn.isSafari}),m=J()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!n,"nav-sidebar__outline-list--hidden":a});return(0,u.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":c?.a11yRegionNavOverview,className:d,"data-testid":"nav-sidebar-outline",id:"nav-sidebar-outline",children:il(o)&&(0,s.jsx)("ol",{className:m,"data-testid":"nav-sidebar-outline-list",ref:h,role:"list",children:o.map((p,f)=>xs()(p)?null:(0,s.jsx)(IP,{closeNav:e,index:f,isEnabled:n,lessonIds:p},f))})})});function jP(t){const e=Wt(t),n=T0(t);return{isLegacyCourse:e.isLegacyCourse,lessonIdGroups:n,navigationStyle:e.navigationStyle}}const kP=(0,U.Ng)(jP)(NP);var AP=l(29590),RP=l(51352);const Mi=K("nav-sidebar-result"),C3=({result:t})=>{const e=(0,ht.useLabelsMap)(),n=t?.icon,o=fs(t?.title),r=t?.results??0,a=r===1?e?.result:e?.results,i=Mi("icon"),c=Mi("title"),h=Mi("count");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Xh,{className:i,icon:n}),(0,s.jsx)("span",{className:c,children:o}),(0,s.jsx)("span",{className:h,children:`${r} ${a}`})]})},wP=({id:t,index:e,isEnabled:n,onSelectResult:o})=>{const r=Lt(),a=(0,se.RQ)("/*"),i=ic(t),c=a?.params?.id===t,h=c?"page":void 0,d=r?.color,m=r?.navigationStyle,p=n?void 0:-1,f={animationDelay:`${e/10}s`},v=xc(i?.id),g=(0,u.useMemo)(()=>(0,Ut.I8)(m),[m]),C=Mi(),b=Mi("inner",{active:c}),x=Mi("link",{dark:g,light:!g});return(0,s.jsx)("li",{className:C,role:"listitem",style:f,children:(0,s.jsx)("div",{className:b,style:{color:d},children:n&&v==null?(0,s.jsx)(Nn,{"aria-current":h,className:x,onClick:o,tabIndex:p,to:(0,Tt.p1)(t),children:(0,s.jsx)(C3,{result:i})}):(0,s.jsx)(uv,{className:x,restriction:v,tooltipClassName:"lesson-nav-link-tooltip",children:(0,s.jsx)(C3,{result:i})})})})},uu=K("nav-sidebar-results"),PP=[],MP=({closeNav:t,isEnabled:e})=>{const{announcePolite:n}=xt(),o=Lt(),r=uo(),a=(0,ht.useLabelsMap)(),c=(r?.activeLessons??PP).filter(Rr),h=r?.term,d=(0,AP.A)(c),m=(0,RP.A)(h),p=a?.noResults??"",f=o?.navigationStyle,v=(0,u.useMemo)(()=>(0,Ut.I8)(f),[f]),g=uu(),C=uu("message",{dark:v,light:!v}),b=uu("term"),x=uu("list"),y=ks(ff),E=u.useCallback(()=>{y&&t()},[t,y]);return(0,u.useEffect)(()=>{if(m){const L=c.length===1?a?.result:a?.results,T=d?`${c.length} ${L}`:`${a?.noResults} ${h}`;n?.(T)}},[n,d,m,c,a,h]),(0,s.jsxs)("div",{className:g,"data-testid":"nav-sidebar-results",children:[!d&&m&&(0,s.jsxs)("div",{className:C,children:[p," ",(0,s.jsxs)("span",{className:b,children:['"',h,'"']})]}),d&&m&&(0,s.jsx)("ol",{className:x,"data-testid":"nav-sidebar-results-list",role:"list",children:c.map((L,T)=>(0,s.jsx)(wP,{id:L.id,index:T,isEnabled:e,onSelectResult:E},L.id))})]})},hu=K("nav-sidebar"),x3="nav-content-sidebar",OP=({isExpanded:t,closeNav:e})=>{const n=Lt(),o=uo(),[r,a]=(0,u.useState)(!1),[i,c]=(0,u.useState)(0),h=(0,u.useRef)(null),d=(0,u.useRef)(null),m=n?.color,p=n?.theme?.coverImageColor,f=n?.isLegacyCourse,v=n?.navigationStyle,g=n?.theme?.accentContrast,C=n?.theme?.progressIndicatorStyle,b=o?.active??!1,x=b||t?void 0:"true";(0,u.useLayoutEffect)(()=>{h&&h?.current&&c(h.current?.scrollWidth)},[r,t,h,b,c]);const y=(0,u.useMemo)(()=>(0,Ut.zH)(v),[v]),E=(0,u.useMemo)(()=>(0,Ut.I8)(v),[v]),L=(0,u.useMemo)(()=>(0,Ut.FH)(v),[v]),T=(0,u.useMemo)(()=>L&&p===w.df.LIGHT,[L,p]),S=!(0,ut.Wn)(m),I=(0,ut.xD)(m),N=C===w.Y2.CIRCULAR_FILL,k=C===w.Y2.INCOMPLETE_COMPLETE,M=g===w.Em.AUTO&&I===w.Em.DARK,R=(0,u.useMemo)(()=>g?g===w.Em.DARK||M:S,[M,S,g]),A=hu("header"),B=hu("body"),P=hu("content"),O=hu({accent:y,"dark-contrast":!L&&R,"light-contrast":!L&&!R,"legacy-pre-themes":f,"image-dark-overlay":L&&!T,"image-light-overlay":L&&T,"progress-circular-fill":N,"progress-incomplete-complete":k,collapsed:!t,dark:E,light:!E,searching:b});return(0,s.jsx)(el,{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":x,className:O,"data-testid":"nav-sidebar",ref:d,children:(0,s.jsxs)("div",{className:P,"data-nav-scrollable":!0,id:x3,children:[(0,s.jsx)(xP,{className:A,isCompact:r,isEnabled:t,navRefWidth:i,setIsCompact:a}),(0,s.jsxs)("div",{className:B,"data-testid":"nav-sidebar-body",ref:h,children:[(0,s.jsx)(kP,{closeNav:e,isEnabled:t&&!b}),(0,s.jsx)(MP,{closeNav:e,isEnabled:t&&b})]})]})})})})})},Sa={x:null,y:null},mu={passive:!0};function b3({children:t,onSwipeDown:e,onSwipeLeft:n,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:i=100,thresholdY:c=100}){const h=(0,u.useRef)(),[d,m]=(0,u.useState)(Sa),[p,f]=(0,u.useState)(Sa),v=(0,u.useCallback)(x=>{const y=x.touches?.length??0,E=x.targetTouches[0],L=a?a():!0;y==1&&E&&L?m({x:E.clientX,y:E.clientY}):m(Sa)},[a]),g=(0,u.useCallback)(x=>{const y=x.targetTouches[0];y&&f({x:y.clientX,y:y.clientY})},[]),C=(0,u.useCallback)(()=>{m(Sa),f(Sa)},[]),b=(0,u.useCallback)(x=>{const y=x.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,L=p.y-d.y;Math.abs(E)>Math.abs(L)?Math.abs(E)>i&&(E<0?n?.():o?.()):Math.abs(L)>c&&(L<0?r?.():e?.()),m(Sa),f(Sa)},[e,n,o,r,i,c,p,d]);return(0,es.A)("touchstart",v,h.current,mu),(0,es.A)("touchcancel",C,h.current,mu),(0,es.A)("touchmove",g,h.current,mu),(0,es.A)("touchend",b,h.current,mu),(0,s.jsx)("div",{ref:h,children:t})}b3.propTypes={children:ct().oneOfType([ct().arrayOf(ct().element),ct().element]).isRequired,onShouldRecognizeGesture:ct().func,onSwipeDown:ct().func,onSwipeLeft:ct().func,onSwipeRight:ct().func,onSwipeUp:ct().func,thresholdX:ct().number.isRequired,thresholdY:ct().number.isRequired};function pu({isEnabled:t=!0,...e}){return t?(0,s.jsx)(b3,{...e}):(0,s.jsx)("div",{children:e.children})}pu.propTypes={children:ct().oneOfType([ct().arrayOf(ct().element),ct().element]).isRequired,isEnabled:ct().bool.isRequired};const fu={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},BP=[fu.TABLET_PORTRAIT,fu.TABLET_LANDSCAPE,fu.MOBILE_PORTRAIT,fu.MOBILE_LANDSCAPE],dl=t=>BP.includes(t),DP=t=>(0,u.useMemo)(()=>{const e=window.matchMedia("(pointer: coarse)").matches,n=dl(t);return e||n},[t]),y3=K("course-navigation"),{COMPACT:vu,OVERLAY:am,SIDEBAR:Ia}=w.br,HP={[vu]:i3,[Ia]:x3,[am]:v3},FP=({hasSearchResults:t,courseNavType:e,openNav:n,closeNav:o})=>{const[r,a]=(0,u.useState)(t);return(0,u.useEffect)(()=>{r&&!t&&!(e===Ia)?(o(),a(!1)):r&&e===am?n():a(t)},[t,e,n,o,r]),r},VP=t=>{const[e,n]=(0,u.useState)();(0,u.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:i,openNav:c,closeNav:h}=t;o===Ia&&r&&(!e&&i&&a?h():e&&!i&&!a&&c(),n(i))},[e,t])},zP=({beginWithSidebarOpen:t,children:e,closeNav:n,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:i,openNav:c,previewType:h,toggleNav:d,hideNav:m})=>{const p=(0,u.useRef)(),f=(0,u.useRef)(),{active:v}=uo(),g=(0,ht.useLabelsMap)(),C=FP({hasSearchResults:v,courseNavType:o,openNav:c,closeNav:n}),b=(0,u.useMemo)(()=>C||o===vu&&a?Ia:o,[o,C,a]);VP({activeNavType:b,beginWithSidebarOpen:t,closeNav:n,openNav:c,isNavOpen:r,isTablet:a}),(0,u.useEffect)(()=>{const S=N=>{f.current?.contains(N.relatedTarget)&&n()},I=()=>{f.current?.removeEventListener("click",n),f.current?.removeEventListener("keypress",n),f.current?.removeEventListener("blur",S,!0)};return b===vu&&r?(f.current?.addEventListener("click",n),f.current?.addEventListener("keypress",n),f.current?.addEventListener("blur",S,!0)):I(),I},[b,r,f,n]);const x=DP(h),y=(0,u.useCallback)(()=>{const S=b===w.br.SIDEBAR;x&&S&&r&&n()},[n,r,x,b]),E=(0,u.useMemo)(()=>HP[b],[b]),L=y3(b?.toLowerCase(),{"nav-open":r,"search-open":v&&r,"course-nav-type":o?.toLowerCase()}),T=y3("lessonNav",{type:i?.toLowerCase()});return(0,s.jsx)(jy,{isCourseNavOpen:r,children:(0,s.jsx)("div",{className:L,children:(0,s.jsx)(pu,{isEnabled:b===w.br.SIDEBAR,onSwipeLeft:y,children:(0,s.jsxs)("div",{className:T,children:[(0,s.jsxs)("nav",{"aria-label":g?.a11yRegionNavLesson,children:[(0,s.jsx)(AR,{"aria-controls":E,hideNav:m,isNavOpen:r,toggleNav:d}),b===Ia&&(0,s.jsx)(OP,{closeNav:n,isExpanded:r}),b===vu&&(0,s.jsx)(Dw,{closeNav:n,isExpanded:r,openNav:c,ref:p}),b===am&&(0,s.jsx)(Hw,{closeNav:n,openNav:c,children:(0,s.jsx)(pP,{isExpanded:r})})]}),(0,s.jsx)("div",{ref:f,children:e})]})})})})},$P=({children:t,isPreviewLesson:e,...n})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...i}=Ge(),c=$c(),h=(0,Ut.zh)(i),d=!c,m=i.sidebarMode===w.RE.OPEN,p=h&&r===Ia&&m&&d,f=(0,ps.c3)(i),v=f&&i?.theme?.blockNavigationType===w.HC.CONTINOUS,[g,C]=(0,u.useState)(p),b=(0,u.useCallback)(()=>{C(!0)},[]),x=(0,u.useCallback)(()=>{C(!1)},[]),y=(0,u.useCallback)(()=>g?x():b(),[g,x,b]);(0,es.A)(sv,b),(0,es.A)(nv,x);const E=f||e?"fixed-course-exit":void 0,L=v?{marginInlineEnd:"2rem"}:void 0,T=h?r:"";return f||e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Kv,{className:E,lmsOptions:a,style:L}),t]}):(0,s.jsx)(zP,{...n,beginWithSidebarOpen:m,closeNav:x,courseNavType:T,enableExitCourse:a?.enableExitCourse||!0,hideNav:!h,isNavOpen:g,isTablet:c,lessonNavType:o,openNav:b,toggleNav:y,children:t})};var UP=l(35665),_P=l(44192),gu=l.n(_P);const WP=gu()(Bt()("family","continue"),Bt()("variant","continue")),L3=Xe()(Zh()(WP),Un()([],"items"));var E3=l(45555),GP=l(65180),KP=l.n(GP);function QP(t){return t==="a"?46.5:7.6}function ZP(t){return t==="d"?2:3.2}function YP(t){switch(t){case"a":return 30;case"c":case"d":return 92;default:return 76}}function T3(t){switch(t){case"b":return 95;case"background":return 52;default:return 76}}function S3(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 XP(t){return .3}function Zse(t){switch(t){case 3:return"three";case 4:return"four";default:return"two"}}function JP(t){return t==="light"?"#fff":"#000"}function Yse(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 Xse(t){return t==="b"?[52,76,95]:[52,76,92]}function Jse(t){return t==="a"?[30,76,92]:[52,76,92]}function qse(t){return t==="d"?[2,4.8,5.6]:[3.2,4.8,5.6]}function ene(t){return t==="a"?[46.5,78,120]:[7.6,20,32]}function qP(t){switch(t){case 3:return"sm";case 10:return"lg";default:return"med"}}function I3(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 eM(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function N3(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function j3(t){switch(t){case 4:return"med";case 6:return"lg";default:return"sm"}}function im(t){switch(t){case 52:return"sm";case 92:return"lg";default:return"med"}}function tM(t){switch(t){case 30:case 52:return"sm";case 92:return"lg";default:return"med"}}function sM(t){switch(t){case 4.8:return"med";case 5.6:return"lg";default:return"sm"}}function nM(t){switch(t){case 20:case 78:return"med";case 32:case 120:return"lg";default:return"sm"}}function oM(t){switch(t){case 1:return"sm";case 3:return"lg";default:return"med"}}function rM(t){switch(t){case 3.2:return"med";case 5.6:return"lg";default:return"sm"}}const cs=({value:t,className:e,allowTabNavigation:n=!0,tagName:o,id:r})=>{const{value:a}=_1(Rt(t));return a?(0,s.jsx)(bt,{allowTabNavigation:n,className:e,id:r,tagName:o,value:t}):null};function aM(t,e){const{className:n="",tag:o="div",style:r={},...a}=t,{backgroundColor:i}=on(),c=dA(),h=c===et.S6.DARK?et.S6.LIGHT:et.S6.DARK;return i!==""&&Object.assign(r,{"--color-background-contrast":c,"--color-background-contrast-complementary":h,"--color-background-contrast-rgb":(0,Ni.A)(c)?.slice(0,3)}),(0,s.jsx)(o,{...a,className:n,ref:e,style:r})}const k3=(0,u.forwardRef)(aM),iM=10,A3=t=>`${t}rem`,cm=t=>t!=null?`${t/iM}rem`:void 0,cM=["image full","image text overlay","quote background"];function lM(t){const{family:e,variant:n,backgroundType:o,isOnlyBlockInStep:r,isOnePage:a}=t;if(!a||!r)return!1;if(o===w.xj.IMAGE)return!0;if(!e||!n)return!1;const i=`${e} ${n}`;return cM.some(c=>c===i)}const dM={paddingBottom:"0rem",paddingTop:"0rem"},uM=t=>{const{blockSettings:e,familyTheme:n,courseTheme:o,isFullWidthImage:r}=t;if(r)return dM;const a=A3(Number(xv(e?.paddingTop,n?.paddingStart,o?.blockPaddingStart,w.S$)));return{paddingBottom:A3(Number(xv(e?.paddingBottom,n?.paddingEnd,o?.blockPaddingEnd,w.S$))),paddingTop:a}},hM={},mM=t=>t?{bodyFontSize:cm(t.bodyFontSize),headingFontSize:cm(t.headingFontSize),subheadingFontSize:cm(t.subheadingFontSize)}:hM;function pM(){const t=Bs(),e=Ge(),n=Vr(),o=(0,ps.c3)(e),r=lM({backgroundType:t?.settings?.backgroundType,family:t?.family,isOnePage:o,isOnlyBlockInStep:t?.isOnlyBlockInStep,variant:t?.variant});return uM({blockSettings:t?.settings,courseTheme:e?.theme,familyTheme:n,isFullWidthImage:r})}function fM(){const t=Vr();return mM(t)}function vM(){const t=pM();return{fontSize:fM(),padding:t}}const gM=Od()(["settings"]),R3=K("block-wrapper"),CM=K("bg"),xM=(t,e)=>{const{children:n,className:o,defaultBackgroundColor:r="",style:a,tag:i,type:c,...h}=t,d=Bs(),m=hA(),p=vM(),f=jh(r,m.backgroundColor),v=f||"transparent",g=d?.className,C={...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=J()(o,{"bg--legacy-background":m.isLegacyBackground,[`block-${c}`]:!!c}),x=CM({card:m.cardMode,range:m.colorRange,type:m.backgroundTypeLowercase,"overlay-light":m.isOverlayLight,"contrast-light":m.isContrastLight}),y=g?R3({}).mix(x).mix(g):R3({}).mix(x),E=[b,y.toString()].join(" ");return(0,s.jsxs)(k3,{...gM(h),className:E,ref:e,style:C,tag:i,children:[(0,s.jsx)("span",{"aria-label":m.backgroundImageAlt,role:(0,Fe.Vx)(m.backgroundImageAlt)}),n]})},It=(0,u.forwardRef)(xM),Rn=ds("ImageEagerOrLazy");var bM=l(43419),sne=l(38171);function w3(t){return(0,s.jsx)(bM.i,{IconUnzoom:LM,IconZoom:yM,...t})}const yM=()=>(0,s.jsx)(Je,{name:"arrows-two-from-center"}),LM=()=>(0,s.jsx)(Je,{name:"arrows-two-to-center"}),P3=K("block-text");function EM({children:t,item:e,labels:n}){const o="media"in e?e.media:void 0,r=Rt(o)?.image,a=(0,Dt.ME)(r),i=(0,Fe.Ll)(r?.alt??""),h=Bs()?.settings,d=h?.images,m=h?.zoomOnClick,p=(0,u.useRef)(void 0);let f=(0,s.jsx)(Rn,{alt:i,"data-l10n-id":Xt(o),ref:p,src:a});return m&&(f=(0,s.jsx)(w3,{a11yNameButtonUnzoom:n?.a11yUnzoomImage,a11yNameButtonZoom:n?.a11yZoomImage,children:f})),(0,s.jsxs)("div",{className:P3("col"),children:[d&&r&&(0,s.jsx)("div",{className:P3("image"),children:f}),t]})}var TM=l(24779),SM=l.n(TM),IM=l(26422),Cu=l(34965);const NM=K("portal-tooltip"),Us={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},jM=(t,e,n)=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=window.visualViewport;let i=n;(i===Us.ABOVE||i===Us.BELOW)&&(o.bottom-r.height<0&&(i=Us.BELOW),r.height+o.top>a.height&&(i=Us.ABOVE)),(i===Us.LEFT||i===Us.RIGHT)&&(r.left<0&&(i=Us.RIGHT),r.width+o.left>a.width&&(i=Us.LEFT));const c={left:0,right:0,top:0,bottom:0};i===Us.ABOVE&&(c.top=o.top-r.height-25),i===Us.BELOW&&(c.top=o.top+o.height),i===Us.RIGHT&&(c.left=o.left+o.width+70),i===Us.LEFT&&(c.left=o.left-r.width-25),(i===Us.LEFT||i===Us.RIGHT)&&(c.top=o.top-o.height/2),(i===Us.ABOVE||i===Us.BELOW)&&(c.left=o.left+o.width/2);const h=o.left+o.width/2,d=r.width/2+h>a.width,m=r.width/2>h;d?e.classList.add("portal-tooltip__tooltip--offset-right"):m&&e.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(c).map(p=>c[p]===0?e.style.removeProperty(p):e.style.setProperty(p,`${c[p]}px`)),e.classList.add(`portal-tooltip__tooltip--${i.toLowerCase()}`)};function kM({children:t,className:e,direction:n=Us.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:i,renderInModalWhenPresent:c=!1}){const[h,d]=(0,u.useState)(!1),[m]=(0,u.useState)(!1),p=(0,u.useRef)(null),f=(0,u.useRef)(null),[v,g]=(0,IM.A)((()=>t)),C=(0,u.useCallback)(()=>d(!0),[d]),b=(0,u.useCallback)(()=>d(!1),[d]);return(0,u.useEffect)(()=>(document.addEventListener("scroll",C),document.addEventListener("scrollend",b),()=>{document.removeEventListener("scroll",C),document.removeEventListener("scrollend",b)})),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:p,children:v}),a&&(g||m||o)&&!h&&(0,s.jsx)(ys.B1,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,s.jsx)(AM,{buttonRef:p,className:e,direction:n,elementFocused:o,hovering:g,message:a,portalRef:f,renderInModalWhenPresent:c,style:i})})]})}function AM({buttonRef:t,className:e,direction:n,elementFocused:o,hovering:r,message:a,portalRef:i,style:c,renderInModalWhenPresent:h=!1}){const d=(0,u.useCallback)(()=>jM(t.current,i.current,n),[t,n,i]),m=(0,u.useCallback)(()=>{i.current&&d()},[i,d]),p=()=>{!r&&!o&&i.current&&(i.current.style=null)};return(0,Cu.A)(m),(0,go.createPortal)((0,s.jsx)("div",{"aria-hidden":!r||!o,className:NM("tooltip").mix(e).toString(),onTransitionEnd:p,ref:i,style:c,children:a}),h?Pr({id:"portal",childType:"other"}):document.getElementById("portal"))}const ul=kM,RM=(0,sh.GF)(),hl=()=>RM(t=>t.transcriptPanel),wM=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onDelete:o,onTranscriptClick:r,onTranscriptClose:a})=>{const{mode:i,disableTranscriptButton:c}=su(),h=hl(),[d,m]=(0,u.useState)(!1),[p,f]=(0,u.useState)(!1),v=Rt(n)?.audio?.transcript,g=(0,u.useCallback)(()=>m(!0),[]),C=(0,u.useCallback)(()=>m(!1),[]),b=(0,u.useCallback)(()=>f(!0),[]),x=(0,u.useCallback)(()=>f(!1),[]),y=qt(),E=h?.audioPlayerIdOpen&&h.audioPlayerIdOpen===t,L=c?"Transcripts are only available in lesson previews":E?y?.audioHideTranscript:i==="edit"?"Edit transcript":y?.audioShowTranscript,T=(0,u.useCallback)(()=>{const k=document.getElementById(Kh(t));k&&k.focus()},[t]),[S,I]=(0,u.useState)(!1);function N(){c||(E?a?.():(r?.(),I(!0)))}return(0,u.useEffect)(()=>{S&&(I(!1),T())},[S,T]),(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsx)(ul,{elementFocused:d,message:"Remove audio",children:(0,s.jsx)(St.ArcButton,{hierarchy:"tertiary",icon:(0,s.jsx)(Je,{name:"trash"}),layout:"icon",onBlur:C,onClick:o,onFocus:g,onMouseOut:C,onMouseOver:g,size:e?"sm":"md",type:"button"})}),(i==="edit"||v)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ul,{elementFocused:p,message:L,renderInModalWhenPresent:i==="readonly",style:{whiteSpace:"nowrap"},children:(0,s.jsx)(St.ArcButton,{"aria-label":L,disabled:c,hierarchy:"tertiary",icon:(0,s.jsx)(Je,{name:"file-audio"}),id:i==="readonly"?Wv(t):void 0,layout:"icon",onBlur:x,onClick:N,onFocus:b,onMouseOut:x,onMouseOver:b,size:e?"sm":"md",style:c?{opacity:.5,pointerEvents:"auto"}:void 0,type:"button"})}),E?(0,s.jsx)("div",{onFocus:T,tabIndex:0}):null]})]})};var PM=l(61962);const M3="change";class MM extends PM.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(M3,e)}removeChangeListener(e){this.removeListener(M3,e)}}const at=new MM(1/0);var OM=l(89239),ml=l.n(OM);const Oi="group",BM="tablist",DM="tabpanel",HM="tab",one="radio",pl=({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"}},FM=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(t=>({value:t,label:`${t}x`})),xu=.05,O3=K("audio-player-icon"),Na=({x:t,width:e,height:n,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:i,pulseY:c,delay:h="0s"})=>(0,s.jsx)("rect",{className:O3("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":`${c/10}rem`,"--delay":h},width:e,x:t,y:o}),B3=({animating:t})=>(0,s.jsx)("span",{className:O3({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)(Na,{delay:"0s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:0,y:7}),(0,s.jsx)(Na,{delay:"0.1s",height:4,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,width:2,x:3,y:6}),(0,s.jsx)(Na,{delay:"0.2s",height:10,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,width:2,x:6,y:3}),(0,s.jsx)(Na,{delay:"0.3s",height:16,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,width:2,x:9,y:0}),(0,s.jsx)(Na,{delay:"0.4s",height:8,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,width:2,x:12,y:4}),(0,s.jsx)(Na,{delay:"0.5s",height:11,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,width:2,x:15,y:2.5}),(0,s.jsx)(Na,{delay:"0.6s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:18,y:7})]})});var VM;function D3(){return document.getElementById("page-wrap")}const ine=t=>{const e=t.value.length;t.focus(),t.setSelectionRange(e,e)},cne=t=>{const e=VM(["current","editor"],t);if(!e)return null;const n=e.value.length;return e.focus(),e.setSelectionRange(n,n),t};function lm(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,c=o*.25;return Math.abs(a-i)<c}return e==="end"?n.bottom<=o:n.top>=0&&n.left>=0&&n.bottom<=o&&n.right<=r}function H3({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),c=parseFloat(i.marginTop),h=e.offsetWidth,d=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},m=o.top+o.height+e.offsetHeight+c>d.height?o.top-(c*2+e.offsetHeight):o.top+o.height;let p;if(n==="center"){const f=o.left+o.width/2;p=a?d.width-f-h/2:f-h/2}else n==="right"?p=a?d.width-o.left-h:o.right-h:p=Math.min(a?d.width-o.right:o.left,d.width-h);return{left:p,top:m}}var zM,Ht=l(26372);const bu=Ht.createContext(null);function $M({children:t,isDisabled:e,onClose:n,onOpen:o,onSelect:r,positionX:a="left"}){const[i,c]=Ht.useState(!1),h=(0,Te.A)(i),[d,m]=Ht.useState(null),p=Ht.useRef(null),f=Ht.useRef(null),v=Ht.useRef(null),b=`${`menu-${Ht.useId()}`}-content`,x=Ht.useCallback(({direction:P,predFn:O=()=>!0})=>{if(!v.current)return;const D=Array.from(v.current.querySelectorAll('[role="menuitem"]')),$=D.length,H=D.findIndex(fe=>fe===document.activeElement);let F,W,de;switch(P){case"start":F=0,W=1;break;case"end":F=$-1,W=-1;break;case"backwards":F=H-1,W=-1;break;case"forwards":F=H+1,W=1;break;default:F=H+1,W=1}for(let fe=0;fe<=$;fe++){F>=$?F=0:F<0&&(F=$-1);const Se=D[F];if(Se!=null&&WM(Se)&&O(Se)){de=Se;break}else F=F+W}de&&de.focus()},[]),y=Ht.useCallback(()=>{x({direction:"start"})},[x]),E=Ht.useCallback(()=>{x({direction:"end"})},[x]),L=Ht.useCallback(()=>{x({direction:"backwards"})},[x]),T=Ht.useCallback(()=>{x({direction:"forwards"})},[x]),S=Ht.useCallback(P=>{x({direction:"forwards",predFn:O=>GM(O,P)})},[x]),I=Ht.useCallback(()=>{i?c(!1):(c(!0),setTimeout(T,25))},[T,i]),N=Ht.useCallback(()=>{f.current?.focus(),c(!1)},[]),k=Ht.useCallback(()=>{c(!0),setTimeout(T,25)},[T]),M=Ht.useCallback(()=>{c(!0),setTimeout(L,25)},[L]),R=Ht.useCallback(()=>{const{left:P,top:O}=H3({anchor:f.current,popover:v.current,positionX:a});m({transform:`translate3d(${P}px, ${O}px, 0)`,visibility:"visible"})},[a]),A=Ht.useCallback(P=>{const O=P.currentTarget;F3(O)||(r?.(O.getAttribute("data-name")),N())},[N,r]),B=Ht.useCallback(P=>{const O=P.key;if(P.altKey||P.ctrlKey||P.metaKey)return;let D=!1;if(P.shiftKey)O==="Tab"?L():O.trim()!==""&&S(O),D=!0;else switch(O){case" ":case"Enter":A(P),D=!0;break;case"Esc":case"Escape":N(),D=!0;break;case"ArrowUp":L(),D=!0;break;case"Tab":case"ArrowDown":T(),D=!0;break;case"Home":case"PageUp":y(),D=!0;break;case"End":case"PageDown":E(),D=!0;break;default:S(O);break}D&&(P.stopPropagation(),P.preventDefault())},[N,A,S,y,E,T,L]);return Ht.useEffect(()=>{const P=O=>{i&&p.current!=null&&v.current!=null&&!p.current.contains(O.target)&&!v.current.contains(O.target)&&c(!1)};return i?document.addEventListener("click",P):document.removeEventListener("click",P),()=>{document.removeEventListener("click",P)}},[i]),Ht.useEffect(()=>(i?window.addEventListener("resize",R):window.removeEventListener("resize",R),()=>{window.removeEventListener("resize",R)}),[R,i]),Ht.useEffect(()=>{const P=Dd(p.current);for(const O of P)i?O?.addEventListener("scroll",R,{passive:!0}):O?.removeEventListener("scroll",R);return()=>{for(const O of P)O?.removeEventListener("scroll",R)}},[R,i]),Ht.useEffect(()=>{i?R():m(null)},[R,i]),Ht.useEffect(()=>{if(h&&!i)n?.();else if(!h&&i&&(o?.(),p.current)){const P=new CustomEvent("menuopen",{bubbles:!0,detail:{target:p.current}});p.current.dispatchEvent(P)}},[h,i,n,o]),Ht.useEffect(()=>{const P=O=>{O.detail.target!==p.current&&c(!1)};return document.addEventListener("menuopen",P),()=>{document.removeEventListener("menuopen",P)}},[]),(0,s.jsx)(bu.Provider,{value:{htmlIdContent:b,isExpanded:i,onCloseFocusTrigger:N,onExpandFocusMenuItemNext:k,onExpandFocusMenuItemPrevious:M,onFocusMenuItemByPrefix:S,onFocusMenuItemFirst:y,onFocusMenuItemLast:E,onFocusMenuItemNext:T,onFocusMenuItemPrevious:L,onItemClick:A,onItemKeyDown:B,onTriggerClick:I,refContent:v,refTrigger:f,styleContent:d},children:(0,s.jsx)("div",{"aria-owns":b,inert:e?!0:void 0,ref:p,children:t})})}function UM({as:t,children:e,label:n,labelledBy:o,...r}){const{htmlIdContent:a,isExpanded:i,onTriggerClick:c,onCloseFocusTrigger:h,onExpandFocusMenuItemNext:d,onExpandFocusMenuItemPrevious:m,refTrigger:p}=Ht.useContext(bu),f=Ht.useCallback(g=>{let C=!1;switch(g.key){case" ":case"Enter":case"ArrowDown":case"Down":d(),C=!0;break;case"Esc":case"Escape":h(),C=!0;break;case"Up":case"ArrowUp":m(),C=!0;break;default:break}C&&(g.stopPropagation(),g.preventDefault())},[h,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:c,onKeyDown:f,ref:p,type:"button",children:e})}function _M({children:t,className:e}){const{htmlIdContent:n,isExpanded:o,refContent:r,styleContent:a}=Ht.useContext(bu);return o?go.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}),Pr()):null}function yu({children:t,className:e,isDisabled:n,name:o,tooltipId:r}){const{onItemClick:a,onItemKeyDown:i}=Ht.useContext(bu),c=Ht.useCallback(h=>{h.currentTarget?.focus()},[]);return(0,s.jsx)("button",{"aria-describedby":r,"aria-disabled":n,className:e,"data-menu-item":"","data-name":o,onClick:n?void 0:a,onKeyDown:i,onMouseOver:c,role:"menuitem",tabIndex:n?-1:void 0,type:"button",children:t})}function lne({children:t}){return zM("span",{"data-menu-item-icon":"",children:t})}function F3(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function WM(t){return t!=null&&t.tagName==="BUTTON"&&!F3(t)}function GM(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const fl=K("audio-player-actions-condensed"),zr=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript",RevertToSource:"revert-audio-to-source"}),KM=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onTranscriptClick:o,onTranscriptClose:r,item:a,side:i,refs:c})=>{const{mode:h,isVariantLocale:d,handleOpenMediaModal:m,handleDelete:p,handleRevertToSource:f}=su(),v=hl(),g=Bs(),C=In(),b=a&&"media"in a&&a.media?C(a.media):void 0,x=b&&"audio"in b?b.audio.aiAudioSettings:void 0,y=vo(),E=Uh(),L=y?E(y):"",[T,S]=(0,u.useState)(!1),I=(0,u.useCallback)(()=>S(!0),[]),N=(0,u.useCallback)(()=>S(!1),[]),k=x?.l10nAutoGenStatus==="reverted-to-source",M=d&&"audio"in b&&b.audio?.sourceType==="ai-audio"&&x?.l10nAutoGenStatus!=="unsupported-locale",R=qt(),A=v?.audioPlayerIdOpen===t,B=A?R?.audioHideTranscript:h==="edit"?"Edit transcript":R?.audioShowTranscript;function P(D){switch(D){case zr.DeleteAudio:p(g.id,a,c);break;case zr.EditTranscript:A?r?.():o?.();break;case zr.EditAudio:m(g,a,c,i,{triggeredFrom:"block_audio_button"});break;case zr.RevertToSource:f(g.id,a);break}}const O=!!C(n)?.audio?.transcript;return m||p||O?(0,s.jsx)(ul,{elementFocused:T,message:"Options",children:(0,s.jsxs)($M,{onSelect:P,positionX:"left",children:[(0,s.jsx)(UM,{as:St.ArcButton,hierarchy:"tertiary",icon:"fa-regular fa-ellipsis",label:"Options",layout:"icon",onBlur:N,onFocus:I,onMouseEnter:I,onMouseLeave:N,shape:"square",size:e?"sm":"md"}),(0,s.jsxs)(_M,{className:fl("content"),children:[m?(0,s.jsx)(yu,{className:fl("menu-item"),name:zr.EditAudio,children:"Edit audio"}):null,h==="edit"||O?(0,s.jsx)(yu,{className:fl("menu-item"),name:zr.EditTranscript,children:B}):null,p&&g?.variant!=="audio"?(0,s.jsx)(yu,{className:fl("menu-item"),name:zr.DeleteAudio,children:"Remove audio"}):null,f&&M?(0,s.jsx)(St.ArcTooltip,{id:"revert-to-source-tooltip",isEnabled:k,text:"Audio currently synced to source",children:(0,s.jsxs)(yu,{className:fl("menu-item"),isDisabled:k,name:zr.RevertToSource,tooltipId:"revert-to-source-tooltip",children:["Revert to source audio (",L,")"]})}):null]})]})}):null};var QM,ZM,Ft=l(26372);const vl=Ft.createContext(null);function YM({children:t,className:e,isDisabled:n,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:i,portalArgs:c,positionX:h="left",value:d}){const[m,p]=Ft.useState(null),f=(0,Te.A)(m),[v,g]=Ft.useState(!1),C=(0,Te.A)(v),[b,x]=Ft.useState(null),y=Ft.useRef(null),E=Ft.useRef(null),L=Ft.useRef(null),S=`select-${Ft.useId()}`,I=`${S}-content`,N=m?.id,k=Ft.useCallback(O=>{const D=O.currentTarget;V3(D)||(g(!1),p(D),i(D.getAttribute("data-value")),O.stopPropagation())},[i]),M=Ft.useCallback(O=>{p(O)},[]),R=Ft.useCallback(()=>{g(O=>!O)},[]),A=Ft.useCallback(()=>{const{left:O,top:D}=H3({anchor:E.current,popover:L.current,positionX:h}),F=window.getComputedStyle(E.current).direction==="rtl"?-O:O;x({transform:`translate3d(${F}px, ${D}px, 0)`,visibility:"visible",width:`${E.current?.offsetWidth}px`})},[h]),B=Ft.useCallback(O=>{const D=Array.from(L.current?.querySelectorAll("[data-select-item]")??[]),$=D.length,H=D.findIndex(de=>de.getAttribute("data-select-item")==="current");let F,W=H+1;for(let de=0;de<$;de++){W>=$&&(W=0);const fe=D[de];if(fe!=null&&!V3(fe)&&eO(fe,O)){F=de;break}else W=$-1}F&&(p(D[F]),D[F]?.scrollIntoView({block:"center"}))},[]),P=Ft.useCallback(O=>{const D=O.key;if(O.ctrlKey||O.metaKey)return;let $=!1;const H=Array.from(L.current?.querySelectorAll("[data-select-item]")??[]),F=H.findIndex(W=>W.getAttribute("data-select-item")==="current");if(v)if(D.length===1&&D!==" "&&!O.altKey&&!O.ctrlKey&&!O.metaKey)B(D);else switch(D){case" ":case"Enter":g(!1),H[F]!=null&&i(H[F].getAttribute("data-value")),$=!0;break;case"Esc":case"Escape":g(!1),p(H.find(W=>W.getAttribute("aria-selected")==="true")),$=!0;break;case"ArrowUp":O.altKey?(g(!1),H[F]!=null&&i(H[F].getAttribute("data-value")??"")):F>0&&(p(H[F-1]),H[F-1].scrollIntoView({block:"center"})),$=!0;break;case"ArrowDown":F<H.length-1&&(p(H[F+1]),H[F+1].scrollIntoView({block:"center"})),$=!0;break;case"Home":p(H[0]),H[0]?.scrollIntoView({block:"center"}),$=!0;break;case"End":p(H[H.length-1]),H[H.length-1]?.scrollIntoView({block:"center"}),$=!0;break;case"PageUp":p(H[0]),H[0]?.scrollIntoView({block:"center"}),$=!0;break;case"PageDown":p(H[H.length-1]),H[H.length-1]?.scrollIntoView({block:"center"}),$=!0;break;case"Tab":g(!1),H[F]!=null&&i(H[F].getAttribute("data-value"));break}else if(D.length===1&&D!==" "&&!O.altKey&&!O.ctrlKey&&!O.metaKey)g(!0),B(D);else switch(D){case" ":case"Enter":g(!0),$=!0;break;case"ArrowUp":g(!0),p(H[0]),$=!0;break;case"ArrowDown":g(!0),$=!0;break;case"Home":g(!0),p(H[0]),$=!0;break;case"End":g(!0),p(H[H.length-1]),$=!0;break}$&&(O.stopPropagation(),O.preventDefault())},[B,v,i]);return Ft.useEffect(()=>{const O=L.current?.querySelector('[data-select-item][aria-selected="true"]');p(O)},[]),Ft.useEffect(()=>{const O=L.current?.querySelector(`[data-select-item][data-value="${d}"]`);p(O)},[d]),Ft.useEffect(()=>{const O=D=>{v&&y.current!=null&&L.current!=null&&!y.current.contains(D.target)&&!L.current.contains(D.target)&&g(!1)};return v?document.addEventListener("click",O):document.removeEventListener("click",O),()=>{document.removeEventListener("click",O)}},[v]),Ft.useEffect(()=>(v?window.addEventListener("resize",A):window.removeEventListener("resize",A),()=>{window.removeEventListener("resize",A)}),[A,v]),Ft.useEffect(()=>{const O=Dd(y.current);for(const D of O)v?D?.addEventListener("scroll",A,{passive:!0}):D?.removeEventListener("scroll",A);return()=>{for(const D of O)D?.removeEventListener("scroll",A)}},[A,v]),Ft.useEffect(()=>{v?A():x(null)},[A,v]),Ft.useEffect(()=>{v&&f!=null&&f!==m&&r?.({value:m.getAttribute("data-value")})},[v,f,m,r]),Ft.useEffect(()=>{if(C&&!v)o?.();else if(!C&&v&&(a?.(),y.current)){const O=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:y.current}});y.current.dispatchEvent(O)}},[C,v,o,a]),Ft.useEffect(()=>{const O=D=>{D.detail.target!==y.current&&g(!1)};return document.addEventListener("comboboxopen",O),()=>{document.removeEventListener("comboboxopen",O)}},[]),(0,s.jsx)(vl.Provider,{value:{activeEl:m,htmlIdActiveDescendant:N,htmlIdBase:S,htmlIdContent:I,isExpanded:v,onItemClick:k,onItemHover:M,onTriggerClick:R,onTriggerKeyDown:P,portalArgs:c,refContent:L,refTrigger:E,selectedValue:d,styleContent:b},children:(0,s.jsx)("div",{"aria-owns":I,className:e,inert:n?!0:void 0,ref:y,children:t})})}function XM({children:t,className:e,labelledBy:n,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:i,isExpanded:c,onTriggerClick:h,onTriggerKeyDown:d,refTrigger:m}=Ft.useContext(vl),p=!!o,f=o??"button";return(0,s.jsxs)(f,{"aria-activedescendant":a,"aria-controls":i,"aria-expanded":c,"aria-haspopup":"listbox","aria-labelledby":n,className:e,"data-select-trigger":p?void 0:"",onClick:h,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:c?(0,s.jsx)(Je,{name:"chevron-up"}):(0,s.jsx)(Je,{name:"chevron-down"})})]})}function JM({children:t,className:e,label:n,labelledBy:o,style:r={}}){const{htmlIdContent:a,isExpanded:i,portalArgs:c,refContent:h,styleContent:d}=Ft.useContext(vl);return go.createPortal((0,s.jsx)("div",{"aria-label":n,"aria-labelledby":o,className:e,"data-select-content":"",hidden:i?void 0:!0,id:a,ref:h,role:"listbox",style:{...d,...r},children:t}),Pr(c))}function une({children:t,className:e,labelText:n}){const{htmlIdBase:o}=Ft.useContext(vl),r=Ft.useId(),a=`${o}-group-label-${r}`;return QM("div",{"aria-labelledby":a,className:e,"data-select-group":"",role:"group",children:[ZM("div",{"data-select-group-label":"",id:a,role:"presentation",children:n}),t]})}function qM({children:t,className:e,labelledBy:n,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:i,onItemClick:c,onItemHover:h,selectedValue:d}=Ft.useContext(vl),m=Ft.useRef(null),p=Ft.useId(),f=m.current===a,v=r===d,g=`${i}-option-${p}`,C=Ft.useCallback(()=>{h(m.current)},[h]);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:g,onClick:o?void 0:c,onMouseEnter:C,ref:m,role:"option",children:[t,v&&(0,s.jsx)("span",{"data-select-item-selected":"",children:(0,s.jsx)(Je,{name:"check"})})]})}function V3(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function eO(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const dm=K("playback-speed-menu"),tO=({onChange:t,condensed:e=!1,speed:n})=>{const o=qt(),[r,a]=(0,u.useState)(!1),i=(0,u.useCallback)(()=>a(!0),[]),c=(0,u.useCallback)(()=>a(!1),[]);return(0,s.jsx)(ul,{elementFocused:r,message:o?.audioPlaySpeed,children:(0,s.jsxs)(YM,{className:dm(),onOpen:c,onSelect:h=>t(parseFloat(h)),portalArgs:{id:"portal",childType:"other"},value:String(n),children:[(0,s.jsxs)(XM,{"aria-label":o?.audioPlaySpeed,as:St.ArcButton,className:dm("trigger"),hierarchy:"tertiary",labelledBy:void 0,layout:"hug",onBlur:c,onFocus:i,onMouseEnter:i,onMouseLeave:c,shape:"square",size:e?"sm":"md",children:[n,"x"]}),(0,s.jsx)(JM,{className:dm("content"),label:o?.audioPlaySpeed,children:FM.map((h,d)=>(0,s.jsx)(qM,{value:String(h.value??""),children:h.label},d))})]})})};function sO(t=!1,e=200){const n=(0,u.useRef)(void 0),[o,r]=(0,u.useState)(t),a=(0,u.useCallback)(()=>{n.current&&clearTimeout(n.current),r(!0)},[]),i=(0,u.useCallback)(c=>{n.current&&clearTimeout(n.current),c?r(!1):n.current=setTimeout(()=>{r(!1)},e)},[e]);return(0,u.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]),{isActive:o,setActive:a,setInactive:i}}const z3=K("audio-player-volume"),nO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function oO(t,e){return e||t<=0?"volumeXmark":t<=1/3?"volumeLow":t<=2/3?"volume":"volumeHigh"}function rO({condensed:t=!1,muted:e,onChange:n,onMute:o,volume:r}){const a=qt(),i=(0,u.useRef)(null),c=(0,u.useRef)(null),h=(0,u.useRef)(null),{isActive:d,setActive:m,setInactive:p}=sO(!1,200),f=e?0:r;function v(C){if(nO.includes(C.code)){const y=window.getComputedStyle(C.currentTarget).direction==="rtl"?"ArrowLeft":"ArrowRight",E=C.code==="ArrowUp"||C.code===y?Math.min(f+xu,1):Math.max(f-xu,0);n(E),C.stopPropagation(),C.preventDefault()}else C.code==="KeyM"&&(o(),C.stopPropagation(),C.preventDefault())}(0,u.useEffect)(()=>{h.current.style.setProperty("--slider-volume",`${f*100}%`)},[f]);const g=`${Math.round(f*100)}%`;return(0,s.jsxs)("div",{className:z3(),onKeyDown:v,onMouseEnter:m,onMouseLeave:()=>p(!1),ref:i,children:[(0,s.jsx)(St.ArcButton,{"aria-label":f<=0?a?.a11yMediaUnmute:a?.a11yMediaMute,color:"primary",hierarchy:"tertiary",icon:(0,s.jsx)(Je,{name:oO(f,e)}),layout:"icon",onClick:o,ref:c,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":g,className:z3("slider").mix(d?"":"visually-hidden"),max:100,min:0,onChange:C=>n(C.currentTarget.valueAsNumber/100),ref:h,type:"range",value:f*100})]})}const wn=K("audio-player"),Lu=({currentTime:t,duration:e})=>Math.round(t/e*100)||0,$3=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}},U3=t=>{const{minutes:e,seconds:n}=$3(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},aO=t=>{const{hours:e,minutes:n,seconds:o}=$3(t);function r(c,h,d){return(new Array(d+1).join(h)+c).slice(-d)}const a=r(n,"0",2),i=r(o,"0",2);return e>0?`${e}:${a}:${i}`:`${n}:${i}`};class Bi extends u.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,sliderPercent: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 c=Math.max(0,r-.01);this.audio.currentTime=e<0?Math.max(i,0):Math.min(i,c)}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(){at.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(),at.isPlaying&&at.playerId===this.props.id&&at.pause()),n.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:e,id:n}=this.props;at.playerId===n&&at.pause(),at.removeChangeListener(this.handleChange),e&&e(Lu(this.audio))}handleClickInsideAudioPlayer=e=>{e.stopPropagation(),e.preventDefault()};handleChange(){at.playerId===this.props.id?this.audio&&(at.isPlaying&&this.audio.paused?this.audio.play():!at.isPlaying&&!this.audio.paused&&this.audio.pause(),this.forceUpdate()):at.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:c,onDelete:h,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p,item:f,side:v,refs:g,transcriptAudioPlayerIdOpen:C}=this.props,b=at.isPlaying&&at.playerId===n,{currentTime:x,playerExpanded:y}=this.state,E=this.audio?.duration??0,L=Number.isNaN(E)?0:E,T=Math.round(L-x),S=aO(T),I=U3(T),N=U3(x),k=e?0:-1,M=!o,{a11yGroupAudioPlayer:R,a11yMediaPlay:A,a11yMediaPause:B,a11yMediaSeek:P}=a??{},O=wn({overlay:r,collapsed:r&&!y,expanded:!r||y,"volume-slider-below":this.props.volumeSliderPosition==="below"}),D=o||c==="edit"?"Collapse audio player":a?.audioCollapsePlayer,$=o||c==="edit"?"Expand audio player":a?.audioExpandPlayer,H=y?D:$,F=Lo({refs:g}),de=C===F?Kh(C):void 0;return(0,s.jsx)("div",{className:wn("container"),onClick:this.handleClickInsideAudioPlayer,ref:this.containerResizeRef,children:(0,s.jsxs)("div",{className:O,id:n,children:[M&&(0,s.jsx)("div",{className:wn("waveform"),children:r?(0,s.jsx)(ul,{message:H,children:(0,s.jsx)("button",{"aria-label":H,className:wn("waveform-icon"),onClick:this.onTogglePlayer,type:"button",children:(0,s.jsx)(B3,{animating:b})})}):(0,s.jsx)("div",{className:wn("waveform-icon",{disabled:!0}),children:(0,s.jsx)(B3,{animating:b})})}),(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":R,"aria-owns":de,className:wn("housing",{"with-border":M}),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:Oi,tabIndex:k,children:[(0,s.jsxs)("div",{className:wn("play-timer-housing"),children:[(0,s.jsx)(St.ArcButton,{"aria-label":b?B:A,className:wn("play"),hierarchy:"tertiary",icon:(0,s.jsx)(Je,{className:wn("icon"),name:b?"pause-solid":"play-solid"}),layout:"icon",onClick:this.onPlayClick,ref:fe=>{this.play=fe},shape:"square",size:this.state.condensed?"sm":"md",tabIndex:k,type:"button"}),(0,s.jsx)("input",{"aria-label":P,"aria-valuemax":L,"aria-valuemin":0,"aria-valuenow":x,"aria-valuetext":N,className:wn("seek-slider"),max:L,min:0,onChange:this.onSeekSliderChange.bind(this),ref:fe=>{this.seekSlider=fe},step:.01,style:{"--seek-slider-percent":`${this.state.sliderPercent}%`},type:"range",value:x}),(0,s.jsx)("div",{"aria-label":I,className:wn("timer").mix(this.state.condensed?"visually-hidden-always":""),role:"timer",children:S})]}),(0,s.jsxs)("div",{className:wn("player-controls"),ref:fe=>{this.playerControls=fe},children:[(0,s.jsx)(tO,{condensed:this.state.condensed,onChange:fe=>{this.setState({playbackSpeed:fe})},speed:this.state.playbackSpeed}),(0,s.jsx)(rO,{condensed:this.state.condensed,muted:this.state.muted,onChange:this.changeVolume,onMute:this.muteToggle,volume:this.state.volume}),c==="readonly"||o?(0,s.jsx)(wM,{audioPlayerId:F,condensed:this.state.condensed,onDelete:h,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p}):(0,s.jsx)(KM,{audioPlayerId:F,condensed:this.state.condensed,item:f,onTranscriptClick:d,onTranscriptClose:m,refs:g,side:v,transcriptMedia:p})]})]}),(0,s.jsx)("audio",{className:wn("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:fe=>{this.audio=fe},src:(0,_e.o1)(`${i}`)},"audio-"+n)]},`player-${n}`)})}onKeyDown(e){const o=Co(this.onPlayClick),r=Co(()=>this.keySeek(5)),a=Co(()=>this.keySeek(-5)),i=Co(()=>this.changeVolumeDelta(xu)),c=Co(()=>this.changeVolumeDelta(-xu)),h=Co(()=>this.muteToggle()),d=C=>C.target===this.play,m=C=>C.target===this.seekSlider,p=C=>this.playerControls===C.target||this.playerControls.contains(C.target),f=Wn()([[Kc,o],[Fr,Br],[Hr,Br],[Ca,Br],[ga,Br]]),v=Wn()([[Kc,o],[$E,r],[UE,a]]),g=Wn()([[Kc,o],[Fr,r],[Hr,a],[ga,i],[Ca,c],[C=>C.code==="KeyM",h]]);Wn()([[d,f],[m,v],[p,Br],[ml(),g]])(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{id:n,onPause:o,onPlay:r,onTranscriptUpdate:a,recordMediaPlayheadPosition:i,refs:c,transcriptMedia:h}=this.props,{paused:d,currentTime:m,duration:p}=e.currentTarget;if(d)d&&at.playerId===n&&(at.isPlaying=!1,o(Bi.timeMs(m)),i&&i(Lu({currentTime:m,duration:p})));else{at.playerId=n,at.isPlaying=!0,r(Bi.timeMs(m));const f=Lo({refs:c});a?.({audioPlayerId:f,transcriptMedia:h})}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,i=n/o*100;this.setState({currentTime:n,muted:r,volume:a,sliderPercent:i});const{onLoad:c}=this.props;c()}onEnded(e){const n=e.currentTarget;this.audio.currentTime=0,this.setState({currentTime:n.currentTime}),at.isPlaying=!1,this.props.onEnd(Bi.timeMs(n.currentTime)),this.forceUpdate()}onSeeked(e){const{id:n,onSeek:o,recordMediaPlayheadPosition:r}=this.props,{currentTime:a,duration:i}=e.currentTarget;at.isPlaying&&at.playerId!==n&&(at.isPlaying=!1),at.playerId=n,o(Bi.timeMs(a)),r&&r(Lu({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 c=r/a*100;(0,_e.ih)(),this.setState({currentTime:r,sliderPercent:c}),i%5===0&&this.state.playheadPositionSaveThrottle!==i&&o&&(o(Lu(n)),this.setState({playheadPositionSaveThrottle:i}))}onTogglePlayer(e){this.setState(({playerExpanded:n})=>({playerExpanded:!n})),e.preventDefault(),e.stopPropagation()}}const iO=Bi,br=t=>e=>e!=null&&typeof e=="object"&&"status"in e&&typeof e.status=="string"&&t.includes(e.status),cO=br(["uploading","processing","cropping","crushing"]),mne=br(["canceled"]),_3=br(["complete"]),lO=br(["cropping"]),dO=br(["crushing"]),uO=br(["uploading"]),hO=br(["processing"]),mO=br(["errored"]),W3=br(["cropping","crushing","errored","processing","uploading"]);function pO(t){return t==null||typeof t!="object"?0:Object.values(t).filter(cO).length}function pne(t){return Math.round(t.loaded*100/t.total)}const fne=t=>t?.file?.name||t?.opts?.filename||"";function vne(t){return t==null||typeof t!="object"?!1:Object.keys(t).length>0&&pO(t)>0}const Eu=t=>J()("upload-progress__wrapper",t),G3=(0,u.createContext)(null);function K3(){return(0,u.useContext)(G3)}const gne=G3.Provider;function fO(t){function e(n){const o=K3();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 Tu=({onClick:t,text:e})=>(0,s.jsxs)(St.ArcButton,{hierarchy:"tertiary",onClick:t,size:"sm",type:"button",children:[e,(0,s.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),um=20,gl=um/2,hm=gl-2,Q3=+(2*Math.PI*hm).toFixed(3),vO=t=>Q3*(100-t)/100;function Z3({classes:t,percent:e}){return(0,s.jsxs)("svg",{className:J()("upload-progress__pie",t),focusable:"false",height:`${um}px`,width:`${um}px`,children:[(0,s.jsx)("circle",{className:"upload-progress__border",cx:gl,cy:gl,r:hm}),(0,s.jsx)("circle",{className:"upload-progress__progress",cx:gl,cy:gl,r:hm,strokeDasharray:Q3,strokeDashoffset:vO(e)})]})}const gO=({text:t})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(Z3,{classes:"upload-progress__pie--processing",percent:70}),(0,s.jsx)("div",{className:"upload-progress__text",children:t})]}),CO=({percentage:t,text:e="Uploading\u2026"})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(Z3,{percent:t}),(0,s.jsx)("div",{className:"upload-progress__text",children:e})]}),mm=({classes:t,jobId:e,onCancel:n,text:o})=>(0,s.jsxs)("div",{className:Eu(t),children:[(0,s.jsx)(gO,{text:o}),e&&(0,s.jsx)(Tu,{onClick:n,text:"Cancel"})]}),xO=({classes:t,onCancel:e,percentage:n,text:o})=>(0,s.jsxs)("div",{className:Eu(t),children:[(0,s.jsx)(CO,{percentage:n,text:o}),(0,s.jsx)(Tu,{onClick:e,text:"Cancel"})]}),bO=({message:t="Error"})=>(0,s.jsxs)("div",{className:"upload-error",children:[(0,s.jsx)(St.ArcIcon,{icon:"fa-regular fa-circle-exclamation"}),(0,s.jsx)("div",{className:"upload-error__text",children:t})]}),yO=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:Eu(t),children:[(0,s.jsx)(bO,{message:e}),(0,s.jsx)(Tu,{onClick:n,text:"Dismiss"})]}),LO=({message:t="Success"})=>(0,s.jsxs)("div",{className:"upload-success",children:[(0,s.jsx)(St.ArcIcon,{icon:"fa-regular fa-check"}),(0,s.jsx)("div",{className:"upload-success__text",children:t})]}),EO=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:Eu(t),children:[(0,s.jsx)(LO,{message:e}),n?(0,s.jsx)(Tu,{onClick:n,text:"Dismiss"}):null]}),TO=t=>{const{classes:e,data:n={},errorMessage:o,jobId:r,progress:a,onCancelUpload:i,onCancelProcess:c,onErrorDismiss:h,onSuccessDismiss:d,successMessage:m,uploadType:p}=t;return mO(t)?(0,s.jsx)(yO,{classes:e,message:o||n?.message,onClick:h}):uO(t)?(0,s.jsx)(xO,{classes:e,onCancel:i,percentage:a,text:`Uploading ${p}\u2026`}):hO(t)?(0,s.jsx)(mm,{classes:e,jobId:r,onCancel:c,text:`Processing ${p}\u2026`}):dO(t)?(0,s.jsx)(mm,{classes:e,onCancel:c,text:`Uploading ${p}\u2026`}):lO(t)?(0,s.jsx)(mm,{classes:e,onCancel:c,text:"Cropping image\u2026"}):_3(t)&&m?(0,s.jsx)(EO,{classes:e,message:m,onClick:d}):(0,s.jsx)("div",{})},pm=K("audio-player"),SO=pm("upload-state");function Y3({uploadId:t,onAIUploadFinish:e,volumeSliderPosition:n,...o}){const r=K3(),{mode:a}=su(),i=hl(),c=r&&t?r.getUpload(t):null,h=(0,u.useMemo)(()=>c&&c.mediaType==="audio"&&W3(c),[c]),d=(0,Te.A)(h);if((0,u.useEffect)(()=>{!h&&d&&e?.()},[h,d,e]),h){const{jobId:m,status:p,progress:f,data:v}=c,g=b=>()=>r?.handleUploadDismiss(b,c),C=pm({overlay:o.isOverlayAudio,static:o.isOverlayAudio});return(0,s.jsx)("div",{className:pm("container"),children:(0,s.jsx)("div",{className:C,children:(0,s.jsx)(TO,{classes:SO,errorMessage:v?.message,jobId:m,onCancelProcess:g("process"),onCancelUpload:g("upload"),onErrorDismiss:g("error"),progress:f,status:p,successMessage:"Processing\u2026",uploadType:"audio"})})})}return(0,s.jsx)(iO,{...o,mode:a,transcriptAudioPlayerIdOpen:i?.audioPlayerIdOpen??null,volumeSliderPosition:n})}var IO=l(66560),NO=l.n(IO),jO=l(33308),kO=l.n(jO);const X3={course:({courseId:t})=>`/authoring/${t}`,courseLocales:({courseId:t})=>`/manage/locales/${t}`,dashboard:"/manage/all-content",lesson:({courseId:t,lessonId:e})=>`/authoring/${t}/lesson/${e}`};function AO(){const e=Ge()?.id;return(0,u.useCallback)(n=>typeof window<"u"&&window.location?.pathname?.includes("/authoring/")&&e!=null?X3.lesson({courseId:e,lessonId:n}):`/lessons/${n}`,[e])}var RO=l(97865),wO=l(79182),PO=l.n(wO);const MO=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,OO=t=>typeof t=="string"&&t.replace(MO,""),Pn=PO()(OO,RO.J),BO="about:blank",DO=t=>{const e=t?.trim();if(!e)return null;const n=Pn(e);return n===BO?null:/^(https?:\/\/|mailto:)/i.test(n)||/^(\.?\/|[#?])/.test(n)?n:`http://${n.replace(/^\/\//,"")}`},Di=u.memo(({align:t,alt:e,allowTabNavigation:n=!0,cornerRadius:o,disableZoom:r,getLessonPath:a,height:i,l10nId:c,labels:h,link:d,maxHeight:m=380,onLoad:p,shouldFillWidth:f,src:v,width:g})=>{const C=AO(),b=a??C,x=(0,Fe.Ll)(e),y=d?.type==="url"&&d.destination?DO(d.destination):null,E=d?.type==="lesson"&&!!d.destination||!!y,L=n&&!r&&!E,T=J()("img-img",{"img-img--left":t==="left","img-img--right":t==="right","img-img--center":!t||t==="center","img-img--fill":f});let S={};o!=null&&(S["--corner-radius"]=`${Number(o)}px`),g>0&&i>0&&i>m?(g=Math.round(g*m/i),i=m):m&&(!g||!i)&&(S={maxHeight:m});let I=(0,s.jsx)(Rn,{alt:x,className:T,"data-l10n-id":c,height:i,onLoad:p,src:v,style:S,width:g});return E&&d?d.type==="lesson"?I=(0,s.jsx)(Nn,{className:"img__link",to:b(d.destination),children:I}):y&&(I=(0,s.jsx)("a",{className:"img__link",href:y,rel:"noopener noreferrer nofollow",target:"_blank",children:I})):L&&(I=(0,s.jsx)(w3,{a11yNameButtonUnzoom:h?.a11yUnzoomImage,a11yNameButtonZoom:h?.a11yZoomImage,children:I})),(0,s.jsx)("div",{className:"img",children:I})});var Sne=l(54543),HO=l(20596),FO=l.n(HO),VO,zO,$O,J3;const{validIframe:q3,validUrl:eg}=et.yG,tg=bo()("type","embed"),UO=FO()("type","embedType"),_O=Z1()(/http:/i,"https:"),WO=t=>({embedType:"iframe",originalUrl:t,src:t}),GO=t=>ja(t.embed),ja=t=>t?.embedType||t?.type,Ine=t=>$O([[J3(q3),VO(tg,WO,_O)],[J3(eg),zO(tg,UO,t)]]),Nne=Dr()(Xe()(Oh()(q3),$o.R9),Oh()(eg)),jne="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var ka=l(26372);const sg=t=>{const e=(0,_e._$)("CDN_USER_CONTENT_URI"),n=new RegExp((0,_e._$)("CDN_URI"),"g");return(0,_e.Hm)()?t:n.test(t)?`${e}${new URL(t).pathname}${new URL(t).search}`:t},KO=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:","")},QO=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,ZO=t=>QO.test(t),YO=/^\/\//,ng=t=>t?.replace(YO,"https://"),Su=t=>{try{if(t===!1)return t;const e=new URL(ng(t));if(e.host==="cdn.embedly.com"&&e.pathname==="/widgets/media.html"){const n=new URL("https://embed.articulateusercontent.com/media/");return n.search=e.search,n.searchParams.set("v","1"),n.href}return e.href}catch(e){const n=new Error("Could not parse embed url",{cause:e});return console.warn(n),t}},XO=Xe()(Su,ng,Uc()(ZO,KO),Uc()(Boolean,_e.o1),Pn),JO=t=>{const{paddingBottom:e,ref:n,value:o}=t;return(0,s.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:ka.useMemo(()=>({__html:o}),[o]),ref:n,style:{paddingBottom:e}})};class qO extends ka.Component{player;refIframeContainer=ka.createRef();refIframePlayer=ka.createRef();state={duration:0,isReady:!1};static get defaultProps(){return{allowTabNavigation:!0,shouldPause:!1,showMetaData:!0}}componentDidUpdate(e){!e.shouldPause&&this.props.shouldPause&&at.isPlaying&&(this.player?.pause(),at.isPlaying=!1)}componentWillUnmount(){ja(this.props.data)==="video"&&this.teardownPlayer()}handlePlayerReady=()=>{this.player&&(this.player.on("play",this.handlePlayerPlay),this.player.on("timeupdate",this.handlePlayerUpdate),this.setState({isReady:!0}),at.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:e}=this.props;at.isPlaying&&at.playerId!==e&&(at.isPlaying=!1),at.playerId=e,at.isPlaying=!0};handlePlayerUpdate=e=>{this.props.progressChanged?.({done:e.seconds/e.duration*100})};handlePlayerChange=()=>{const{id:e}=this.props;at.playerId===e&&(at.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(NO()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{at.isPlaying=!1,at.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=e=>{const n=o=>this.player.supports("method",o);return kO()(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=Co(this.togglePlay),a=Co(()=>this.keySeek(5)),i=Co(()=>this.keySeek(-5)),c=Co(()=>this.changeVolume(10)),h=Co(()=>this.changeVolume(-10));Wn()([[lh,r],[Fr,a],[Hr,i],[ga,c],[Ca,h]])(e)};renderProvider=()=>{const{allowTabNavigation:e,embedId:n,externalLinksDisabled:o,onLinkBlur:r,onLinkFocus:a,onLinkMouseEnter:i,onLinkMouseLeave:c,showMetaData:h,data:d}=this.props,{providerUrl:m,provider:p,favicon:f}=d;if(!(h&&m))return null;const v=Su(Pn(m)),g=o&&zn(v),C=`${n}-provider`,b=g?"":void 0,x=g?void 0:v,y=g?void 0:"noopener noreferrer",E=g?"button":void 0,L=g?void 0:"_blank";return(0,s.jsx)("h2",{className:"embed__provider",children:(0,s.jsxs)("a",{className:"brand--hoverColor","data-external":b,href:x,id:g?C:void 0,onBlur:g?()=>r?.(C):void 0,onFocus:g?()=>a?.(C):void 0,onMouseEnter:g?()=>i?.(C):void 0,onMouseLeave:g?()=>c?.(C):void 0,rel:y,role:E,style:g?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:L,children:[(0,s.jsx)(Rn,{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:c,onLinkMouseEnter:h,onLinkMouseLeave:d,showMetaData:m}=this.props,{src:p,title:f,description:v,provider:g}=n,C=ja(n);if(!m&&C!=="link")return null;const b=Su(Pn(p)),x=r&&zn(b),y=`${o}-metadata-title`,E=`${o}-metadata-readmore`,L=T=>({"data-external":x?"":void 0,href:x?void 0:b,id:x?T:void 0,onBlur:x?()=>i?.(T):void 0,onFocus:x?()=>c?.(T):void 0,onMouseEnter:x?()=>h?.(T):void 0,onMouseLeave:x?()=>d?.(T):void 0,rel:x?void 0:"noopener noreferrer nofollow",role:x?"button":void 0,style:x?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:x?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",...L(y),children:(0,s.jsx)(bt,{value:f})})}),(0,s.jsx)(bt,{className:"embed__description",value:v}),(0,s.jsxs)("a",{className:"embed__readMore brand--hoverColor",...L(E),children:[C==="link"?`${a?.embedReadMore} ${g}`:`${a?.embedViewOn} ${g}`,(0,s.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:e,data:n,embedId:o,externalLinksDisabled:r,isLesson:a,labels:i,onLinkBlur:c,onLinkFocus:h,onLinkMouseEnter:d,onLinkMouseLeave:m,showMetaData:p}=this.props,{useRelativePath:f}=n??{},{description:v,originalUrl:g,src:C,thumbnail:b,title:x}=n,y=ja(n);if(y==="iframe"){const E=document.createElement("div");E.innerHTML=(0,$o.R9)(C);const L=E.firstChild,T=L&&L.tagName&&L.tagName.toLowerCase()==="iframe";let S=100,I=32;if(xb(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:x}),(0,s.jsx)("p",{className:"embed__relativeUrl--url",children:g})]});if(T){const B=L.width.match(/%/),P=parseInt(L.width);L.src=Pn(L.src),S=B?700*(P/100):P||16,I=parseInt(L.height)}const N=I/S,k=T?`${N*100}%`:"3rem";if(L.src.includes("typeform")){const B=new window.URL(L.src);B.searchParams.append("disable-auto-focus","true"),L.src=B.toString()}if(L.src.includes("forms.office.com")){const B=new window.URL(L.src);B.searchParams.append("embed","true"),L.src=B.toString()}const A=T?L.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:Oi,children:[f&&(0,s.jsx)("div",{className:"embed__title embed--iframe__title",children:x}),(0,s.jsx)(JO,{paddingBottom:k,ref:this.refIframeContainer,value:A})]})}else if(a){const E=f?C:Su(Pn(C)),L=r&&zn(E),T=`${o}-lesson-title`,S=`${o}-lesson-url`,I=L?"":void 0,N=L?void 0:E,k=L?void 0:"noopener noreferrer nofollow",M=L?"button":void 0,R=L?void 0:"_blank";if(f){const A={"data-external":L?"":void 0,href:E,id:L?T:void 0,onBlur:L?()=>c?.(T):void 0,onFocus:L?()=>h?.(T):void 0,onMouseEnter:L?()=>d?.(T):void 0,onMouseLeave:L?()=>m?.(T):void 0,rel:L?void 0:"noopener noreferrer nofollow",role:L?"button":void 0,tabIndex:e?0:-1,target:L?void 0:"_blank"};return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:Oi,children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...A,children:(0,s.jsx)(bt,{value:x})})}),["link","photo"].includes(y)?(0,s.jsxs)("a",{className:"embed__relativeUrl--url","data-external":I,href:N,id:L?S:void 0,onBlur:L?()=>c?.(S):void 0,onFocus:L?()=>h?.(S):void 0,onMouseEnter:L?()=>d?.(S):void 0,onMouseLeave:L?()=>m?.(S):void 0,rel:k,role:M,tabIndex:e?0:-1,target:R,children:[E,y==="photo"?(0,s.jsx)("div",{className:"embed__relativeUrl--image",children:(0,s.jsx)(Rn,{alt:b?x:"",className:"embed__img",src:E})}):null]}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:b,title:x,type:y})]})}return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:Oi,children:[this.renderProvider(),["link","photo"].includes(y)?(0,s.jsx)("a",{"data-external":I,href:N,id:L?S:void 0,onBlur:L?()=>c?.(S):void 0,onFocus:L?()=>h?.(S):void 0,onMouseEnter:L?()=>d?.(S):void 0,onMouseLeave:L?()=>m?.(S):void 0,rel:k,role:M,tabIndex:e?0:-1,target:R,children:(0,s.jsx)(Rn,{alt:b?x:"",className:"embed__img",src:sg(b)})}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:b,title:x,type:y}),this.renderMetaData()]})}else if(y==="link"){const E=f?C:Pn(C),L=f||r&&zn(E),T=`${o}-link-readmore`,S=L?"":void 0,I=L?void 0:E,N=L?void 0:"noopener noreferrer nofollow",k=L?"button":void 0,M=L?void 0:"_blank";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.embedLinkGroup,className:"embed embed--link brand--linkColor",role:Oi,children:[(0,s.jsx)(bt,{className:"embed__title",value:x}),(0,s.jsx)(bt,{className:"embed__description",value:v}),(0,s.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":S,href:I,id:L?T:void 0,onBlur:L?()=>c?.(T):void 0,onFocus:L?()=>h?.(T):void 0,onMouseEnter:L?()=>d?.(T):void 0,onMouseLeave:L?()=>m?.(T):void 0,rel:N,role:k,target:M,children:i?.embedReadMore})]})}else return(0,s.jsxs)("div",{className:"embed embed--media",children:[p?(0,s.jsx)(bt,{"aria-hidden":!e,className:"embed__title",value:x}):null,this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:b,title:x,type:y})]})}renderEmbedIframe=e=>{const{allowTabNavigation:n,labels:o,src:r,thumbnail:a,title:i,type:c}=e,{useRelativePath:h}=this.props.data??{};if(c==="photo")return(0,s.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,s.jsx)(Di,{allowTabNavigation:n,labels:o,src:sg(a)})});{const d=jn.isIe11||jn.isEdge,m=J()("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:h?"yes":"no",src:h?r:XO(r),title:i})]})}}}const og=t=>{const e=Ge(),n=t.externalLinksDisabled??(e&&"externalLinksDisabled"in e?e.externalLinksDisabled:!1),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}=Ad(),[c,h]=ka.useState([]),d=ka.useId();return ka.useEffect(()=>{if(!n||!t.data){h([]);return}const m=[],{providerUrl:p,src:f,useRelativePath:v}=t.data,g=ja(t.data);t.isLesson&&f&&zn(Pn(f))&&(m.push(`${d}-lesson-title`),["link","photo"].includes(g)&&m.push(`${d}-lesson-url`),g!=="iframe"&&(m.push(`${d}-metadata-title`),m.push(`${d}-metadata-readmore`)),p&&zn(Pn(p))&&m.push(`${d}-provider`)),!t.isLesson&&t.showMetaData&&p&&zn(Pn(p))&&m.push(`${d}-provider`),!t.isLesson&&t.showMetaData&&f&&zn(Pn(f))&&g!=="iframe"&&(m.push(`${d}-metadata-title`),m.push(`${d}-metadata-readmore`)),g==="link"&&(v||f&&zn(Pn(f)))&&m.push(`${d}-link-readmore`),h(m)},[n,t.data,t.showMetaData,t.isLesson,d]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(qO,{...t,embedId:d,externalLinksDisabled:n,onLinkBlur:i,onLinkFocus:a,onLinkMouseEnter:o,onLinkMouseLeave:r}),c.map(m=>(0,s.jsx)(Rd,{anchorId:m},m))]})};var eB=l(48686);function fm({allowTabNavigation:t=!0,audioVideoPlayhead:e,canAdjustPlaybackSpeed:n,canRestrictSeek:o,captions:r,cornerRadius:a,id:i,onLoad:c,poster:h,progressChanged:d,recordMediaPlayheadPosition:m,ref:p,shouldPause:f,src:v,subtitle:g,type:C}){const b=u.useRef(null),x=u.useCallback(F=>{b.current=F,typeof p=="function"?p(F):p&&(p.current=F)},[p]),y=(0,Te.A)(f),E=Ge(),{currentLocale:L}=(0,jt.nY)(),T=qt(),S=Gx(),I=Uh(),N=C==="customVideo",k=u.useCallback(F=>{(0,_e.ih)(),d?.(F)},[d]),M=u.useCallback(F=>{m?.(F)},[m]),R=u.useCallback(()=>{at.playerId=i,at.isPlaying=!0},[i]),A=u.useCallback(()=>{at.playerId===i&&(at.isPlaying=!1)},[i]),[B,P]=u.useState(!1),O=u.useRef(!1),D=u.useCallback(()=>{P(!0),c?.()},[c]);u.useEffect(()=>{O.current||B&&(e!=null&&e>0&&b.current?.seekToPercent(e),O.current=!0)},[B,e]),u.useEffect(()=>{!y&&f&&b.current?.pause()},[y,f]),u.useEffect(()=>{const F=()=>{(!at.isPlaying||at.playerId!==i)&&b.current?.pause()};return at.addChangeListener(F),()=>{at.removeChangeListener(F)}},[i]);const $=u.useMemo(()=>{const F={};return(typeof a=="number"||typeof a=="string")&&(F["--video-corner-radius"]=`${Number(a)}px`),F},[a]),H=h==null?void 0:N?h:(0,_e.o1)(h);return(0,s.jsxs)(eB.L,{crossOrigin:jn.isLocalFilesystem?void 0:"anonymous",enablePlaybackSpeed:n??void 0,enableSeek:o==null?void 0:!o,inert:!t,labelCaptions:T?.a11yMediaCaptions,labelCaptionsOff:T?.a11yMediaCaptionsOff,labelContainer:T?.a11yGroupVideoPlayer??"Video player",labelCurrentTime:T?.a11yMediaCurrentTime,labelDuration:T?.a11yMediaDuration,labelExitFullscreen:T?.a11yMediaExitFullscreen,labelExitPictureInPicture:T?.a11yMediaExitPictureInPicture,labelFullscreen:T?.a11yMediaFullscreen,labelMute:T?.a11yMediaMute,labelPause:T?.a11yMediaPause,labelPictureInPicture:T?.a11yMediaPictureInPicture,labelPlay:T?.a11yMediaPlay,labelPlaybackRate:T?.a11yMediaPlaybackRate,labelPlayVideo:T?.a11yMediaPlayVideo,labelRemainingTime:T?.a11yMediaRemainingTime,labelSeek:T?.a11yMediaSeek,labelSeekDisabled:T?.a11yMediaSeekDisabled,labelUnmute:T?.a11yMediaUnmute,labelVolume:T?.a11yMediaVolume,language:S??L??E?.locale??void 0,onLoad:D,onPause:A,onPlay:R,onPlayheadSave:M,onTimeUpdate:k,poster:H,ref:x,style:$,timeUpdateInterval:1e3,children:[(0,s.jsx)("source",{src:`${N?v:(0,_e.o1)(v)}?v=1`,type:N?"application/x-mpegURL":void 0}),r==null&&g&&(0,s.jsx)("track",{kind:"captions",label:"English",src:N?g:(0,_e.o1)(g),srcLang:"en"}),r?.map(F=>(0,s.jsx)("track",{kind:"captions",label:F.name||I?.(F.code),src:F.url||(F.key!=null?(0,_e.o1)(F.key):void 0),srcLang:F.code},F.id))??null]})}var tB=l(26372);function Jt(t){const e=tB.forwardRef((n,o)=>{const r=In();return(0,s.jsx)(t,{...n,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookup(${t.displayName||t.name})`,e}var sB=l(80687),rg=l.n(sB),nB=l(60922),oB=l.n(nB);const rB=t=>({...t,courseId:t.courseId||js()(["course","id"],t)}),aB=t=>({...t,lessonId:t.lessonId||js()(["lesson","id"],t)}),iB=({id:t,courseId:e,lessonId:n,refs:o})=>t||(o&&n?`${n}-${o}`:n||e),vm=Xe()(iB,aB,rB),Ane=Ps()(rh()(Gt()("id"),rg()("id",vm)),Dr()(oB()(Gt(),[Gt()("id"),Gt()("uploads")]),Vo()(["id"])),rg()("isUploading",Bt()("status","uploading")));function Rne(t){const e=t.match(/^(.*\/)?([^/]+)$/);if(!e)return encodeURIComponent(t);const n=e[1]??"",o=e[2],r=encodeURIComponent(o);return`${n}${r}`}function cB(t){return t.replace(/%2F/g,"/")}var lB=l(26372);const gm=t=>!!(t&&("key"in t&&t.key||"src"in t&&t.src)),Iu=t=>gm(t)&&!t.isProcessing&&!t.error,dB=(t,e)=>e?.mediaType==="audio"?!!t&&(gm(t)||W3(e)||_3(e)&&!gm(t)):Iu(t),uB=t=>Uc()(is()(!!t),SM()(`-${t}`));class hB extends lB.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 c=n;try{e!=null&&typeof e=="object"&&!Array.isArray(e)?"blockId"in e?c=e.blockId:"id"in e&&(c=e.id):e?.id&&(c=e.id)}catch{c=n}let h="";try{i!=null&&typeof i=="object"&&!Array.isArray(i)&&"id"in i&&(h=String(i.id))}catch{h=""}const d=r??`items:${c||""}/items:${h}`;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:c,index:h,isOverlayAudio:d,item:m,itemIndex:p,labels:f,lessonNumber:v,shouldPause:g,side:C}=this.props,{audio:b}=c(e),x=a&&typeof a=="object"&&"blockId"in a?a.blockId:a?.id||i||"",y=m&&typeof m=="object"&&"id"in m?m.id:"",E=this.props.refs??`items:${x}/items:${y}`,L=`audio-${v}-${h}`;return(0,s.jsx)(Y3,{activeIndex:o,allowTabNavigation:r,id:L,isOverlayAudio:d,item:m,itemIndex:p,labels:f,mediaSrc:b.key,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript??void 0,onTranscriptUpdate:this.props.onTranscriptUpdate,refs:E,shouldPause:b.pause||g,side:C,transcriptMedia:e,uploadId:n,volumeSliderPosition:this.props.volumeSliderPosition},L)}renderImage(e){const{allowTabNavigation:n,cornerRadius:o,defaultAlign:r,imageMaxHeight:a,index:i,labels:c,onLoad:h,opts:d}=this.props,m=e?.align??r,p=e?.dimensions,f=`image-${i}`,{disableZoom:v}=d??{};return(0,s.jsx)(Di,{align:m,allowTabNavigation:n,alt:e?.alt,cornerRadius:o,disableZoom:v,height:p?.height||p?.originalHeight,labels:c,link:e?.link,maxHeight:a,onLoad:h,shouldFillWidth:e?.fillWidth,src:(0,Dt.ME)(e),width:p?.width||p?.originalWidth},f)}renderVideo(e){const{allowTabNavigation:n,blockId:o,lessonNumber:r,index:a,enableVideoPlaybackSpeed:i,shouldPause:c}=this.props,h=e.skipProcess?cB(e.poster):e.poster,d=uB(o)(`video-${r}-${a}-${h||""}`);return(0,s.jsx)(fm,{allowTabNavigation:n,canAdjustPlaybackSpeed:i,captions:e.captions,id:d,poster:h,shouldPause:e.pause||c,src:e.key},d)}renderEmbed(e){const{allowTabNavigation:n,embedClass:o,labels:r,opts:a,shouldPause:i}=this.props,{fullEmbed:c,showMetaData:h=!0}=a,d=`embed-${this.props.index}`;return(0,s.jsx)("div",{className:o,children:(0,s.jsx)(og,{allowTabNavigation:n,data:e,id:d,isLesson:c,labels:r,shouldPause:e.pause||i,showMetaData:h},d)})}render(){const{blockId:e,hasPadding:n,item:o,lessonId:r,mediaType:a}=this.props,i=o&&typeof o=="object"&&"id"in o?o.id:"",c=this.props.refs??`items:${e??""}/items:${i}`,h=this.props.media,d=J()({"media-group":n}),{audio:m,embed:p,image:f,video:v}=this.props.getL10nValue(h)??{},g=vm({lessonId:r,refs:c}),C=this.props.getUpload?this.props.getUpload(g):null;return(0,s.jsxs)("div",{className:d,"data-l10n-id":Xt(h),children:[(!a||a==="image")&&Iu(f)&&this.renderImage(f),(!a||a==="audio")&&dB(m,C)&&this.renderAudio(h,g),(!a||a==="video")&&Iu(v)&&this.renderVideo(v),(!a||a==="embed")&&Iu(p)&&this.renderEmbed(p)]})}}const Ys=fO(Jd(Uv(Jt(hB))));function Eo(t,e,n,o){const a=e==="bottom"||!n&&e!=="top"?"bottom":"top",i={renderOrder:["text"],isOverlayAudio:!1};if(!t)return i;const c=!!t.audio,h=!!t.image,d=!!t.video,m=!!t.embed,p=h||d,f=()=>{const C=h?"image":"video",b={top:c?["audio","text",C]:["text",C],bottom:c?["text","audio",C]:["text",C],legacyTop:c?["audio",C,"text"]:[C,"text"],legacyBottom:c?[C,"text","audio"]:[C,"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 C={top:c?["audio","text","embed"]:["text","embed"],bottom:c?["text","embed","audio"]:["text","embed"],legacyTop:c?["audio","embed","text"]:["embed","text"],legacyBottom:c?["embed","text","audio"]:["embed","text"]};return n&&o==="timeline"&&!e?C.legacyTop:n&&o!=="timeline"?a==="bottom"?C.legacyBottom:C.legacyTop:a==="bottom"?C.bottom:C.top},g=()=>a==="bottom"?["text","audio"]:["audio","text"];return c&&!p&&!m?{...i,renderOrder:g()}:p&&!c&&!m?{...i,renderOrder:f()}:m&&!c&&!p?{...i,renderOrder:v()}:c&&p&&!m?o==="statement"?{...i,renderOrder:g()}: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}:c&&m&&!p?{...i,renderOrder:v(),audioOnlyMedia:{audio:t.audio},embedOnlyMedia:{embed:t.embed}}:i}var mB=l(26372);const Jo=K("block-text"),pB=class extends mB.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)(bt,{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)(EM,{item:t,labels:e,children:(0,s.jsx)(cs,{value:a||""})}):(0,s.jsx)(cs,{className:Jo("col"),value:a||""})}render(){const{blockId:t,columns:e,defaultBackgroundColor:n,heading:o,isLearner:r,items:a,labels:i,lessonId:c,media:h,settings:d,type:m,variant:p,renderText:f=this.renderTextDelegate,renderHeading:v=this.renderHeadingDelegate,getL10nValue:g}=this.props,C=g(h),b=Object.keys(C?.audio??{}).length>0,{audioPosition:x,entranceAnimation:y,cellPadding:E=1.5,tableWidth:L=76,textPadding:T=.8,textWidth:S=76}=d,I=p==="table",N=e===1,k=e>1,M=I?L:S,R=!I&&N,A=I,B=oM(E),P=rM(T),O=im(M),D=Jo({[m]:!R&&!A||k,[`${m}-custom-width`]:!k,[`${m}-custom-width-table-${O}`]:A,[`${m}-custom-width-text-${O}`]:R,[`heading-custom-text-padding-${P}`]:R,[`${m}-custom-cell-padding-${B}`]:A,"no-animation":!y}),$=e>2?Jo("container-wide"):Jo("container",{authoring:!r}),H=this.getHeadingComponent(),F=g(Array.isArray(h)?{}:h),W=Eo(F,x);return(0,s.jsx)(It,{className:D.toString(),defaultBackgroundColor:n,children:(0,s.jsxs)("div",{className:$,"data-block-id":t,"data-block-text":"",children:[(0,s.jsx)("div",{className:Jo("row"),children:o!==""?a.slice(0,1).map((de,fe)=>(0,s.jsx)("div",{className:Jo("col"),children:(0,s.jsx)("div",{className:Jo("heading"),children:(0,s.jsx)(H,{children:v(de)})})},"id"in de?de.id:fe)):null}),W.renderOrder.map((de,fe)=>{if(de==="text")return(0,s.jsx)("div",{className:Jo("row"),children:m!=="heading"?a.slice(0,e).map((Se,De)=>(0,s.jsx)(u.Fragment,{children:f(Se)},"id"in Se?Se.id:De)):null},`text-${fe}`);if(de==="audio"&&b){const Se=W.renderOrder.indexOf("audio")<W.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:Jo("row",{media:!0,top:Se,bottom:!Se,hasHeading:p==="heading paragraph"||p==="subheading paragraph"}),children:(0,s.jsx)("div",{className:Jo("col",{media:!0}),children:(0,s.jsx)(Ys,{blockId:t,hasPadding:!1,index:t,item:{id:t,media:h},labels:i,lessonId:c,media:h,refs:`items:${t}`})})},`audio-${fe}`)}})]})})}},$r=Jt(pB),fB=$r,vB=t=>(0,s.jsx)($r,{columns:2,type:"twocol",...t}),gB=t=>(0,s.jsx)($r,{columns:3,type:"threecol",...t}),CB=t=>(0,s.jsx)($r,{columns:4,type:"fourcol",...t}),xB=t=>(0,s.jsx)($r,{heading:"heading",type:"heading",...t}),bB=t=>(0,s.jsx)($r,{heading:"subheading",type:"heading",...t}),yB=t=>(0,s.jsx)($r,{heading:"heading",...t}),LB=t=>(0,s.jsx)($r,{heading:"subheading",...t});var Cl=l(26372);const EB=1e3,TB={fadeInGrow:"scale(0.95)",fadeInLeft:"translateX(-50px)",fadeInLeftSmall:"translateX(-25px)",fadeInRight:"translateX(50px)",fadeInUp:"translateY(25px)"},SB=t=>{const{afterAnimatedIn:e,animateIn:n="fadeIn",children:o,className:r,duration:a=1,initiallyVisible:i,siblingDelay:c=0}=t,h=Cl.useRef(null),[d,m]=Cl.useState(!1);Cl.useEffect(()=>{const f=h.current;if(i&&f){m(!0);return}if(d||!f||typeof window>"u")return;const v=D3(),g=new IntersectionObserver(([b])=>{b!=null&&(b.isIntersecting||b.intersectionRatio>0)&&(m(!0),g.unobserve(b.target))},{root:v,rootMargin:et.CY,threshold:0});g.observe(f);const C=setTimeout(()=>{m(b=>{if(b)return b;const x=h.current;if(!x)return b;const y=x.getBoundingClientRect(),E=v?.getBoundingClientRect(),L=E?.top??0,T=E?.bottom??window.innerHeight,S=(T-L)*.1;return y.bottom>L-S&&y.top<T+S?!0:b})},EB);return()=>{g.disconnect(),clearTimeout(C)}},[i,d]),Cl.useEffect(()=>{const f=h.current;if(!f||!e)return;const v=g=>{g.target instanceof Element&&g.target.parentElement===f&&g.propertyName==="opacity"&&e()};return f.addEventListener("transitionend",v),()=>{f.removeEventListener("transitionend",v)}},[e]),Cl.useEffect(()=>{const f=h.current;if(!f||!Array.isArray(o))return;Array.from(f.children).forEach((g,C)=>{g instanceof HTMLElement&&g.style.setProperty("--idx",String(C))})},[o]);const p={"--scroll-animation-step":`${c}s`,"--scroll-animation-duration":n==="none"?"0s":`${a}s`,"--scroll-animation-from":TB[n]??"translateY(0)"};return(0,s.jsx)("div",{className:J()("scroll-animation",r,{"scroll-animation--in":d}),ref:h,style:p,children:o})},IB=matchMedia("(prefers-reduced-motion: reduce)");function Mn(){return IB.matches}const Pt=t=>{const{afterAnimatedIn:e,animateBlockEntrance:n,animateIn:o,children:r,className:a,duration:i,initiallyVisible:c,isLearner:h,siblingDelay:d}=t;return h&&n&&!Mn()?(0,s.jsx)(SB,{afterAnimatedIn:e,animateIn:o,className:a,duration:i,initiallyVisible:c,siblingDelay:d,children:r}):Array.isArray(r)?(0,s.jsx)("div",{children:r}):r};var ag=l(26372);const NB=ag.lazy(async()=>{const[t,e]=await Promise.all([l.e("ace").then(l.t.bind(l,51477,23)),l.e("ace").then(l.bind(l,52617)),l.e("ace").then(l.t.bind(l,4668,23)),l.e("ace").then(l.t.bind(l,61321,23)),l.e("ace").then(l.t.bind(l,16773,23)),l.e("ace").then(l.t.bind(l,41159,23)),l.e("ace").then(l.t.bind(l,16773,23)),l.e("ace").then(l.t.bind(l,74844,23)),l.e("ace").then(l.t.bind(l,21503,23)),l.e("ace").then(l.t.bind(l,97332,23)),l.e("ace").then(l.t.bind(l,6686,23)),l.e("ace").then(l.t.bind(l,55482,23)),l.e("ace").then(l.t.bind(l,39682,23)),l.e("ace").then(l.t.bind(l,3266,23)),l.e("ace").then(l.t.bind(l,1279,23)),l.e("ace").then(l.t.bind(l,68934,23)),l.e("ace").then(l.t.bind(l,50416,23)),l.e("ace").then(l.t.bind(l,62337,23)),l.e("ace").then(l.t.bind(l,30840,23)),l.e("ace").then(l.t.bind(l,72887,23)),l.e("ace").then(l.t.bind(l,23520,23)),l.e("ace").then(l.t.bind(l,64051,23))]);return{default:e.default}}),jB=({classNames:t,code:e,blockId:n})=>{const[o,r]=(0,u.useState)(!1),{announcePolite:a}=xt(),i=async()=>{const c=(0,Ea.htmlDecode)(e);await navigator.clipboard.writeText(c),r(!0),setTimeout(()=>r(!1),1e3),a("Copied!")};return(0,s.jsx)("div",{className:t,children:(0,s.jsx)(St.ArcTooltip,{id:`code-snippet-copy-tooltip-${n}`,text:o?"Copied!":"Copy",children:(0,s.jsx)(St.ArcButton,{icon:(0,s.jsx)(Je,{name:o?"check":"copy"}),layout:"icon",onClick:i,shape:"square",size:"md",variant:"tertiary"})})})};class kB extends ag.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:e}){return(0,s.jsx)(cs,{className:"block-text__code-caption",value:e||""})}render(){const{animateBlockEntrance:e,blockId:n,defaultBackgroundColor:o="",getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:h,settings:d,renderCaption:m=this.renderCaptionDelegate}=this.props,{entranceAnimation:p,language:f,paddingBottom:v,paddingTop:g,snippetBackgroundColor:C,snippetColorContrast:b,theme:x,useAdvancedEditor:y,wrapWords:E}=d,L=J()("block-text block-text--code",{"block-text--padding-top":Number(g)===2,"block-text--padding-bottom":Number(v)===2,"block-text--no-animation":!p}),T={backgroundColor:C},S=C==="#fafafa"||rn()(C),I=b??w.Em.DARK;if(!S){const N=$s({backgroundColor:C,contrast:I});Object.assign(T,{"--color-snippet-contrast":N})}return(0,s.jsx)(It,{className:L,defaultBackgroundColor:o,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"block-text__container",children:c.slice(0,1).map(N=>{const k=pl({...N,getL10nValue:r});return(0,s.jsx)("div",{className:"block-text__row",children:(0,s.jsx)("div",{"aria-label":h?.a11yBlockCodeSnippet,className:"block-text__col",role:Oi,children:(0,s.jsxs)("figure",{"aria-labelledby":k.figcaptionId,className:"block-text__figure block-text__figure--with-copy",role:"figure",children:[(0,s.jsx)(sR,{value:N.code,children:M=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(jB,{blockId:n,classNames:"block-text__copy-button",code:M}),y?(0,s.jsx)(u.Suspense,{fallback:null,children:(0,s.jsx)(NB,{editorProps:{$blockScrolling:!0},maxLines:25,mode:f,name:String(N.id),readOnly:!0,setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:x,value:(0,Ea.htmlDecode)((0,$o.aj)(M)),width:"100%",wrapEnabled:E})}):(0,s.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:(0,$o.aj)(M)},dir:"ltr",style:T})]})}),N.caption&&(0,s.jsx)("figcaption",{id:k.figcaptionId,children:m(N)})]})})},N.id)})})})})}}const ig=Jt(kB);function AB({accentColor:t,backgroundType:e,blockBackgroundColor:n,noteColor:o,imageBackgroundDefault:r="#ffffff"}){return o!=null&&o!==""?o:RB({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:r})}function RB({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:o="#ffffff"}){if(e!==w.xj.IMAGE&&n==null)return"#000000b3";switch(e){case w.xj.IMAGE:return o;case w.xj.LIGHT:case w.xj.GRAY:return(0,ut.W8)(.9,t);case w.xj.DARK:return"#494949";case w.xj.BLACK:return"#333333";default:switch((0,ut.XC)(n)){case ut.lL.LIGHT:return(0,ut.W8)(.3,n);case ut.lL.MED:return(0,ut.W8)(-.2,n);case ut.lL.DARK:case ut.lL.NEAR_BLACK:return(0,ut.W8)(-.4,n);default:return t}}}function wB(t,e){const n=on(),{cardMode:o,className:r="",children:a,disabled:i=!1,tag:c="div",overrideBackground:h=!1,style:d={},...m}=t,{cardMode:p,customBackgroundColorContrast:f}=n,g=Ge()?.theme,C=Yo(),b=o??p??Gn.WHITE,x=kn()??"#ffffff",y=b===Gn.WHITE,E=C===w.xj.COLOR,L=C===w.xj.ACCENT,T=g?.accentContrast,S=C===w.xj.ACCENT||C===w.xj.COLOR,I=T===w.Em.AUTO&&L||f===w.Em.AUTO&&E,N=C===w.xj.COLOR?f:T,k=[r,"block-card"];if(y)k.push("bg--range-light","block-card--white");else if(i){k.push("block-card--disabled");const M=$s({backgroundColor:x,contrast:N});I&&(d["--color-text"]=M,d["--color-text-opposite"]=M===et.S6.DARK?et.S6.LIGHT:et.S6.DARK)}else{k.push("block-card--transparent");const M=(0,ut.XC)(x),R=ut.t9[M](x);switch(C){case w.xj.LIGHT:case w.xj.GRAY:k.push("bg--range-light");break;case w.xj.IMAGE:k.push("bg--range-dark");break;case w.xj.DARK:case w.xj.BLACK:k.push("bg--range-dark"),d["--color-background-rgb"]=(0,Ni.A)(R)?.slice(0,3);break;default:{const B=d["--color-background"]??(h?x:R),P=$s({backgroundColor:B,contrast:N});S&&P==et.S6.LIGHT&&k.push("block-card--contrast-light");const O=(0,ut.XC)(B);k.push(`bg--range-${fi()(O.toLowerCase())}`),d["--color-background"]=B,d["--color-background-rgb"]=(0,Ni.A)(B)?.slice(0,3);break}}}return(0,s.jsx)(c,{...m,className:k.join(" "),ref:e,style:d,children:a})}const _s=(0,u.forwardRef)(wB);var PB=l(26372);const On=K("block-statement");class MB extends PB.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:c},{paragraph:h}){const d=o==="note",m=n(Array.isArray(i)?{}:i),p=!!m?.audio,f=Eo(m,c.audioPosition,!1,"statement"),v=(0,s.jsx)("div",{className:On("quote"),children:f.renderOrder.map((g,C)=>{if(g==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(cs,{value:h})},`text-${C}`);if(g==="audio"&&p){const b=f.renderOrder.indexOf("audio")<f.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:On("audio-container",{top:b,bottom:!b}),children:(0,s.jsx)(Ys,{blockId:e,hasPadding:!1,index:e,item:{media:i,id:e},labels:r,lessonId:a,media:i,mediaType:"audio",refs:`items:${e}`})},`audio-${C}`)}return null})});return d?(0,s.jsx)(VB,{getL10nValue:n,media:i,children:v}):v}render(){const{animateBlockEntrance:e,isLearner:n,items:o,renderText:r=this.renderTextDelegate,settings:a,type:i,initiallyVisible:c}=this.props,{entranceAnimation:h,divider:d=!0,dividerPadding:m=ZP(i),dividerSize:p=QP(i),noteIcon:f=!0,noteSize:v="sm",statementWidth:g=YP(i)}=a,C=tM(g),b=sM(m),x=nM(p),y=v,E=i==="a"||i==="b"||i==="d",L=i==="note",T=On({[i]:!0,[`${i}-custom-width-${C}`]:!0,[`${i}-divider-off`]:E&&!d,[`${i}-divider-padding-${b}`]:E&&d,[`${i}-divider-size-${x}`]:E&&d,[`note-size-${y}`]:L,[`note-size-${y}-no-icon`]:L&&!f,"no-animation":!h});return(0,s.jsx)(It,{className:T.toString(),children:(0,s.jsx)("div",{className:On("wrap"),children:(0,s.jsx)("div",{className:On("container"),children:(0,s.jsx)("div",{className:On("row"),children:o.slice(0,1).map(S=>(0,s.jsx)(Pt,{animateBlockEntrance:e,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),initiallyVisible:c,isLearner:n,children:(0,s.jsxs)("div",{className:On("col"),children:[(0,s.jsx)("div",{className:On("divider-top-container"),children:(0,s.jsx)("div",{className:On("divider-top")})}),r(this.props,S),(0,s.jsx)("div",{className:On("divider-bottom")})]})},S.id))})})})})}}const xl=Jt(MB),OB=xl,BB=t=>(0,s.jsx)(xl,{type:"b",...t}),DB=t=>(0,s.jsx)(xl,{type:"c",...t}),HB=t=>(0,s.jsx)(xl,{type:"d",...t}),FB=t=>(0,s.jsx)(xl,{type:"note",...t}),VB=({children:t,getL10nValue:e,media:n})=>{const o=on(),{accentColor:r,cardMode:a,cornerRadius:i,courseColor:c,customBackgroundColorContrast:h,noteIcon:d=!0,noteIconColor:m}=o,p=o.noteColor,f=o.noteColorContrast,{theme:v}=Ge(),g=kn(),C=Yo(),b=C===w.xj.COLOR,x=C===w.xj.ACCENT,y=v?.accentContrast,E=C===w.xj.DARK||C===w.xj.BLACK,L=p!=null&&p!=="",S=b||x||E||L?Gn.TRANSPARENT:a,I=L&&(f??w.Em.AUTO)===w.Em.AUTO||y===w.Em.AUTO&&x||h===w.Em.AUTO&&b,N=(0,u.useMemo)(()=>AB({accentColor:r??c,backgroundType:C,blockBackgroundColor:g,noteColor:p,imageBackgroundDefault:""}),[r,C,g,c,p]),k=L?f??w.Em.AUTO:C===w.xj.COLOR?h:y,M=$s({backgroundColor:N,contrast:k}),R={"--color-background":N,...(I||L)&&{"--color-text":M},...i&&{"--corner-radius":`${Number(i)}px`},...m&&{"--color-theme-decorative":m},...L&&{"--color-theme":p}},A=On("note-icon",{off:!d}),P=(e?e(Array.isArray(n)?{}:n):void 0)?.image,O=P?.key&&Object.keys(P).length>0,D=O?(0,Fe.$D)(P)?(0,_e.o1)(P.key):(0,Dt.ME)(P):null,$=()=>d?O&&D?(0,s.jsx)("div",{"aria-hidden":!0,className:On("note-icon__custom"),style:{WebkitMaskImage:`url('${D}')`,maskImage:`url('${D}')`}}):(0,s.jsx)(Je,{name:"circle-info"}):null;return(0,s.jsxs)(_s,{cardMode:S,className:On("note-card"),style:R,children:[(0,s.jsx)("div",{className:A,children:$()}),t]})};var gs=l(26372);function cg({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 Nu({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:c="Slide controls",labelSlideControlsGoToNext:h="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:g,ref:C,renderSlideIndicator:b,shouldMouseEmulateTouch:x=!1,shouldUseCounter:y=!1,shouldUseGoToSlide:E=!0}){const L=gs.useId(),[T,S]=gs.useState(0),I=(0,Te.A)(T)??0,N=gs.useRef(null),k=gs.useRef(null),M=gs.useRef(!1),R=gs.useRef(!1),A=gs.useRef(void 0),B=gs.useRef(void 0),P=`carousel-${L}`,O=gs.Children.count(t),D=(0,Te.A)(O),$=gs.useMemo(()=>Array.from({length:O}),[O]),H=O>1;gs.useImperativeHandle(C,()=>({navigateToSlide:(Ie,Ne=!0)=>{S(Ie);const ae=N.current?.children?.[Ie]?.firstElementChild;Ne&&ae?.focus()}}),[]);const F=gs.useCallback(({activeIndex:Ie,dir:Ne})=>{const ae=o?Ie-1>=0?Ie-1:O-1:Math.max(0,Ie-1),Z=o?Ie+1<=O-1?Ie+1:0:Math.min(O-1,Ie+1);return Ne==="left"?r?Z:ae:r?ae:Z},[o,r,O]),W=gs.useCallback(()=>{S(Ie=>F(r?{activeIndex:Ie,dir:"right"}:{activeIndex:Ie,dir:"left"}))},[F,r]),de=gs.useCallback(()=>{S(Ie=>F(r?{activeIndex:Ie,dir:"left"}:{activeIndex:Ie,dir:"right"}))},[F,r]),fe=gs.useCallback(Ie=>{const Ne=N.current?.children?.[Ie],ae=N.current;if(Ne&&ae){const Z=Ne.getBoundingClientRect(),ve=ae.getBoundingClientRect(),we=Z.left+Z.width/2,Me=ve.left+ve.width/2,Ae=we-Me;ae.scrollBy({left:Ae,behavior:"smooth"})}},[]),Se=gs.useCallback(Ie=>{let Ne=!1,ae=T;switch(Ie.key){case"ArrowLeft":Ne=!0,ae=F({activeIndex:T,dir:"left"});break;case"ArrowRight":Ne=!0,ae=F({activeIndex:T,dir:"right"});break;case"Home":Ne=!0,ae=0;break;case"End":Ne=!0,ae=O-1;break}Ne&&(Ie.stopPropagation(),Ie.preventDefault()),T!==ae&&(N.current?.children?.[ae]?.firstChild?.focus(),fe(ae),S(ae))},[T,F,fe,O]);gs.useEffect(()=>{I!==T&&g?.(T)},[T,g,I]),gs.useEffect(()=>{O<D&&T>O-1&&S(O-1)},[T,D,O]),gs.useEffect(()=>{const Ie=Ae=>{Ae.target.tagName==="IMG"&&Ae.preventDefault(),A.current=Ae.screenX},Ne=Ae=>{const Ue=window.visualViewport?.scale??1,it=window.getSelection().toString()!=="";if(!R.current&&Ue<=1.01&&!it&&A.current!=null){B.current=Ae.screenX;const rt=B.current-A.current;Math.abs(rt)>50&&(window.getSelection().empty(),M.current=!0,A.current=void 0,B.current=void 0,rt<0?S(ft=>F({activeIndex:ft,dir:"right"})):S(ft=>F({activeIndex:ft,dir:"left"})))}},ae=Ae=>{M.current&&Ae.stopPropagation(),M.current=!1,R.current=!1,A.current=void 0,B.current=void 0},Z=Ae=>{if(Ae.touches.length>1){R.current=!0;return}Ae.changedTouches.length===1&&Ae.changedTouches[0]&&(A.current=Ae.changedTouches[0].screenX)},ve=Ae=>{const Ue=window.visualViewport?.scale??1,it=window.getSelection().toString()!=="";if(!R.current&&Ue<=1.01&&!it&&A.current!=null&&Ae.changedTouches[0]){B.current=Ae.changedTouches[0].screenX;const rt=B.current-A.current;Math.abs(rt)>50&&(M.current=!0,A.current=void 0,B.current=void 0,rt<0?S(ft=>F({activeIndex:ft,dir:"right"})):S(ft=>F({activeIndex:ft,dir:"left"})))}},we=()=>{M.current=!1,R.current=!1,A.current=void 0,B.current=void 0},Me=k.current;return x&&(Me?.addEventListener("mousedown",Ie,{capture:!0}),Me?.addEventListener("mousemove",Ne,{capture:!0}),Me?.addEventListener("click",ae,{capture:!0})),Me?.addEventListener("touchstart",Z,{passive:!0}),Me?.addEventListener("touchmove",ve,{passive:!0}),Me?.addEventListener("touchend",we,{passive:!0}),Me?.addEventListener("touchcancel",we,{passive:!0}),()=>{x&&(Me?.removeEventListener("mousedown",Ie),Me?.removeEventListener("mousemove",Ne),Me?.removeEventListener("mouseup",we)),Me?.removeEventListener("touchstart",Z),Me?.removeEventListener("touchmove",ve),Me?.removeEventListener("touchend",we),Me?.removeEventListener("touchcancel",we)}},[F,x,O]);const De=gs.useCallback(Ie=>()=>{fe(Ie),S(Ie)},[fe]);return(0,s.jsxs)("div",{"aria-label":a,"aria-roledescription":i,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":T},children:[H&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{"aria-label":c,className:"carousel-controls",role:"group",children:[E&&(0,s.jsx)("ul",{className:"carousel-controls-items",ref:N,role:"list",children:$.map((Ie,Ne)=>{const ae=T===Ne,Z=De(Ne);return b?b({index:Ne,isActive:ae,onClick:Z,onKeyDown:Se}):(0,s.jsx)(cg,{ariaLabel:m+" "+(Ne+1),isActive:ae,onClick:Z,onKeyDown:Se,children:(0,s.jsx)(Je,{className:"carousel-controls-item-btn-icon",name:ae?"circle":"circle-solid"})},Ne)})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:T===0,"aria-label":d,className:"carousel-controls-prev",onClick:!o&&T===0?void 0:W,type:"button",children:(0,s.jsx)(Je,{className:"carousel-controls-prev-icon",name:r?n:e})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:T===O-1,"aria-label":h,className:"carousel-controls-next",onClick:!o&&T===O-1?void 0:de,type:"button",children:(0,s.jsx)(Je,{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:`${T+1} ${p} ${O}`}),(0,s.jsx)("div",{className:"carousel-controls-counter-line",children:(0,s.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((T+1)/O).toFixed(2))*100}%`}})})]})]})}),(0,s.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:k,children:gs.Children.map(t,(Ie,Ne)=>{const ae=`${P}-${Ne}-counter`;return(0,s.jsxs)("div",{"aria-labelledby":ae,"aria-roledescription":v,className:"carousel-slide",hidden:T!==Ne,inert:T!==Ne,role:"group",children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:ae,children:`${Ne+1} ${f} ${O}`}),Ie]})})})]})}var bl=l(26372);const zB="div",lg=bl.createContext(void 0);function $B({children:t,element:e,...n},o){const[r,a]=bl.useState(null);return(0,s.jsx)(lg.Provider,{value:r,children:bl.createElement(e??zB,{...n,ref:o},t,(0,s.jsx)("div",{ref:a}))})}const ju=bl.forwardRef($B);function Pne(){return bl.useContext(lg)}function Cm(t){const e=n=>{const o=vn();return(0,s.jsx)(t,{...n,isRTL:o})};return e.displayName=`withRTL(${t.displayName||t.name})`,e}const ku=({blockId:t,carouselRef:e,children:n,items:o})=>{const r=(0,u.useRef)(null),a=e??r;return(0,u.useEffect)(()=>{const i=c=>{const{path:h}=c.detail,{blockId:d,cardId:m}=mi(h,["block","card"]);if(d===t){const p=o.findIndex(f=>f.id===m);p>=0&&a.current?.navigateToSlide?.(p,!1)}};return window.addEventListener(Kt,i),()=>{window.removeEventListener(Kt,i)}},[o,t,a]),(0,s.jsx)(s.Fragment,{children:n({carouselRef:e})})},Mt=K("block-quote"),yl=({avatar:t,alt:e,l10nId:n,showAvatar:o})=>o?(0,s.jsx)(Rn,{alt:(0,Fe.Ll)(e),className:Mt("avatar"),"data-l10n-id":n,src:t}):null,UB=({alt:t,animateBlockEntrance:e,avatar:n,children:o,l10nId:r,initiallyVisible:a,isAuthorBlank:i=!1,isLearner:c,showAvatar:h,type:d})=>{const m=Mt("col",{"no-avatar":!n}),p=n?(0,s.jsx)("div",{className:Mt("image"),children:(0,s.jsx)("div",{className:Mt("avatar-wrap"),children:d==="c"?(0,s.jsx)(Pt,{animateBlockEntrance:e,animateIn:"fadeInLeftSmall",initiallyVisible:a,isLearner:c,children:(0,s.jsx)(yl,{alt:t,avatar:n,l10nId:r,showAvatar:h})}):(0,s.jsx)(yl,{alt:t,avatar:n,l10nId:r,showAvatar:h})})}):null;return(0,s.jsx)("div",{className:Mt("container"),children:(0,s.jsx)("div",{className:Mt("row"),children:(0,s.jsxs)("div",{className:m,children:[(0,s.jsx)("div",{className:Mt("divider-top")}),(0,s.jsxs)("div",{className:Mt("figure",{"no-author":i,"no-avatar":!i&&!h}),children:[p,o]}),(0,s.jsx)("div",{className:Mt("divider-bottom")})]})})})},_B=({avatar:t,children:e,alt:n,l10nId:o,showAvatar:r})=>(0,s.jsx)("div",{className:Mt("figure"),children:(0,s.jsx)("div",{className:Mt("container"),children:(0,s.jsxs)("div",{className:Mt("row"),children:[(0,s.jsx)("div",{className:Mt("col"),children:t&&r?(0,s.jsx)(yl,{alt:n,avatar:t,l10nId:o,showAvatar:r}):null}),(0,s.jsx)("div",{className:Mt("col"),children:e})]})})}),WB=({background:t,avatar:e,children:n,alt:o,l10nId:r,showAvatar:a})=>(0,s.jsx)("div",{className:Mt("background"),style:{backgroundImage:t??""},children:(0,s.jsx)("div",{className:Mt("container"),children:(0,s.jsx)("div",{className:Mt("row"),children:(0,s.jsx)("div",{className:Mt("col"),children:(0,s.jsxs)("div",{className:Mt("figure"),children:[e&&a?(0,s.jsx)(yl,{alt:o,avatar:e,l10nId:r,showAvatar:a}):null,n]})})})})});class GB extends u.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??XP(n),r=(0,Dt.ME)(e),a=JP(n);return(0,kh.A)({alpha:o,color:a,url:r})?.backgroundImage}renderText(e,{paragraph:n}){const o=n||"",r=Mt("text",{blank:o===""}).toString();return(0,s.jsx)(cs,{className:r,value:o})}renderCaption(e,{name:n}){const o=Mt("caption",{blank:n===""}).toString();return(0,s.jsx)(cs,{className:o,value:n})}render(){const{animateBlockEntrance:e,getL10nValue:n,initiallyVisible:o,isLearner:r,items:a,settings:i,type:c,renderText:h=this.renderTextDelegate,renderCaption:d=this.renderCaptionDelegate}=this.props,m=92,{avatarSize:p=S3(c),divider:f=!0,dividerSize:v=m,entranceAnimation:g,quoteAlignment:C="left",quoteIcon:b=!0,quotesInline:x,quotePadding:y=2,quoteWidth:E=T3(c)}=i,[L]=a,{avatar:T,background:S}=L,I=n(T?.media)?.image,N=(0,Dt.xm)(I),k=I?.alt,M=Xt(T.media),R=n(S?.media)?.image,A=R?.overlayColor,B=this.getBackgroundImageUrl(R,A),P=i?.avatar??N!=="",O=N&&N!=="",D=c==="background",$=D&&A==="light",H=N3(E),F=j3(y),W=I3(c,p),de=eM(v),fe=c==="a",Se=c==="c"||D,De=c!=="b"&&!D,Ie=L?.name==="",Ne=L?.paragraph==="",ae=Mt(null,{[c]:!0,[`${c}-custom-width-${H}`]:!0,[`${c}-divider-off`]:fe&&!f,[`${c}-divider-size-${de}`]:fe&&f,[`${c}-quote-padding-${F}`]:!0,[`${c}-align-${C}`]:D,[`${c}-${H}-no-avatar`]:!N||!P,[`${c}-avatar-size-${W}`]:P&&O,[`${c}-quote-icon-off`]:Se&&!b,[`${c}-legacy-quote-mark`]:De&&!x,[`${c}-overlay-legacy`]:!A,[`${c}-overlay-light`]:$,"no-animation":!g}).toString(),Z=(0,s.jsx)("div",{className:Mt("wrap",{blank:Ie||Ne}),children:(0,s.jsx)(Pt,{animateBlockEntrance:e,animateIn:this.getQuoteEntranceAnimationType(),initiallyVisible:o,isLearner:r,siblingDelay:.15,children:(0,s.jsxs)("figure",{children:[(0,s.jsx)("blockquote",{children:h(this.props,L)}),(0,s.jsx)("figcaption",{children:d(this.props,L)})]})})});let ve;switch(c){case"d":ve=(0,s.jsx)(_B,{alt:k,avatar:N,initiallyVisible:o,l10nId:M,showAvatar:P,type:c,children:Z});break;case"background":ve=(0,s.jsx)(WB,{alt:k,avatar:N,background:B,initiallyVisible:o,l10nId:M,showAvatar:P,type:c,children:Z});break;default:ve=(0,s.jsx)(UB,{alt:k,animateBlockEntrance:e,avatar:N,initiallyVisible:o,isAuthorBlank:Ie,isLearner:r,l10nId:M,showAvatar:P,type:c,children:Z})}return(0,s.jsx)(It,{className:ae,children:ve})}}const Ll=Jt(GB),KB=(t=>(0,s.jsx)(Ll,{...t})),QB=t=>(0,s.jsx)(Ll,{type:"b",...t}),ZB=t=>(0,s.jsx)(Ll,{type:"c",...t}),YB=t=>(0,s.jsx)(Ll,{type:"d",...t}),XB=t=>(0,s.jsx)(Ll,{type:"background",...t});class JB extends u.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=Mt("text",{blank:n===""}).toString();return(0,s.jsx)(cs,{className:r,value:o})};renderCaption=(e,{name:n})=>{const o=Mt("caption",{blank:n===""}).toString();return(0,s.jsx)(cs,{className:o,value:n})};render(){const{blockId:e,animateBlockEntrance:n,editable:o,getL10nValue:r,initiallyVisible:a=!1,isRTL:i,isLearner:c,isLessonBlocksList:h=!1,items:d,labels:m,previewType:p,settings:f,renderText:v=this.renderText,renderCaption:g=this.renderCaption,type:C}=this.props,{avatar:b=!0,avatarSize:x=S3(C),entranceAnimation:y,quotesInline:E,quotePadding:L=2,quoteWidth:T=T3(C),showBorder:S=!0}=f,N=C!=="b"&&!(C==="background"),k=N3(T),M=j3(L),R=I3(C,x),A=p==="mobile-portrait"||p==="mobile-landscape",B=Mt({[C]:!0,[`${C}-custom-width-${k}`]:!0,[`${C}-quote-padding-${M}`]:!0,[`${C}-${k}-no-avatar`]:!b,[`${C}-avatar-size-${R}`]:b,[`${C}-legacy-quote-mark`]:!h&&N&&!E,"no-animation":!y,"hide-border":!S,editable:o}).toString(),P=d.map(O=>{const D=r(O?.avatar?.media)?.image,$=D?.alt,H=(0,Dt.xm)(D),F=b??H!=="",W="l10nId"in O.avatar.media?O.avatar.media.l10nId:void 0;return(0,s.jsx)("div",{className:Mt("slide"),children:(0,s.jsxs)("figure",{className:Mt("figure"),children:[H&&b?(0,s.jsx)(yl,{alt:$,avatar:H,l10nId:W,showAvatar:F}):null,(0,s.jsx)("blockquote",{children:v(this.props,O)}),(0,s.jsx)("figcaption",{children:g(this.props,O)})]})},O.id)});return(0,s.jsx)("div",{className:Mt("slider-container"),children:(0,s.jsx)(It,{className:B,children:(0,s.jsx)(ju,{className:Mt("wrap"),children:(0,s.jsx)("div",{className:Mt("container"),children:(0,s.jsx)("div",{className:Mt("col"),children:(0,s.jsx)(_s,{className:Mt("box"),children:(0,s.jsx)(Pt,{animateBlockEntrance:n,animateIn:"fadeInUp",initiallyVisible:a,isLearner:c,children:(0,s.jsx)(ku,{blockId:e,items:d,children:({carouselRef:O})=>(0,s.jsx)(Nu,{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:O,shouldMouseEmulateTouch:A,children:P})})})})})})})})})}}const qB=Cm(Jt(JB));var dg=l(26372);const Yn=K("block-list"),eD=class extends dg.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:c,labels:h,lessonId:d,media:m,onStep:p,settings:f,type:v}=this.props,{audioPosition:g,bulletPadding:C,entranceAnimation:b,listItemColor:x,listItemColorContrast:y,listWidth:E}=f,L=r(Array.isArray(m)?{}:m),T=Eo(L,g),S=qP(C),I=im(E),N=Yn({[v]:!0,[`${v}-custom-width-${I}`]:!0,[`${v}-bullet-padding-${S}`]:!0,"no-animation":!b}),k=v==="numbered"?"ol":"ul";return(0,s.jsx)(It,{className:N.toString(),defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:Yn("container"),children:(0,s.jsx)("div",{className:Yn("row"),children:(0,s.jsx)(ju,{className:Yn("col"),children:(0,s.jsx)("div",{className:"blocks-list__container",children:T.renderOrder.map((M,R)=>{if(M==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(k,{className:Yn("list"),role:"list",children:(0,s.jsx)(Pt,{animateBlockEntrance:t,animateIn:"fadeInRight",className:Yn("animated-item").toString(),initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map((A,B)=>{const P={key:A.id,index:B,lessonId:d,blockId:e,type:v,editable:o,nextNumber:this.nextNumber.bind(this),onStep:p,listItemColor:x,listItemColorContrast:y,...A};return this.props.renderItem?this.props.renderItem(P):(0,u.createElement)(tD,{...P,key:P.key})})})})},`text-${R}`);if(M==="audio")return(0,s.jsx)("div",{className:J()("block-list__media",{"audio-on-top":T.renderOrder[0]==="audio","audio-on-bottom":T.renderOrder[0]!=="audio"}),children:(0,s.jsx)(Ys,{blockId:e,hasPadding:!1,index:e,item:{media:m,id:e},labels:h,lessonId:d,media:m,refs:`items:${e}`})},`${M}-${R}`)})})})})})})}};class tD extends dg.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)(cs,{...e})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:e,id:n,index:o,number:r,paragraph:a,editable:i,className:c,renderText:h=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:J()("block-list__item",`block-list__item--${e}`,c),ref:v=>{this.animateRef=v},role:"listitem",style:d,children:[e==="numbered"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Yn("number"),style:m?{backgroundColor:m,color:$s({contrast:p||w.Em.AUTO,backgroundColor:m})}:void 0,children:r||o+1}),h(f)]}),e==="bulleted"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,s.jsx)(Je,{className:Yn("bullet"),name:"circle-solid",style:m?{color:m}:void 0}),h(f)]}),e==="checkboxes"&&(0,s.jsxs)("label",{className:Yn("option"),children:[(0,s.jsx)("input",{className:Yn("checkbox-input"),onChange:this.handleChangeCheckbox,type:"checkbox"}),(0,s.jsx)("div",{className:Yn("checkbox"),style:m?{borderColor:m,"--color-background":m}:void 0,children:(0,s.jsx)(Je,{className:Yn("checkbox__icon"),name:"check",style:m?{color:$s({contrast:p||w.Em.AUTO,backgroundColor:m})}:void 0})}),h(f)]})]})}}const sD=Jt(eD),xm=t=>(0,s.jsx)(sD,{...t}),nD=xm,oD=t=>(0,s.jsx)(xm,{type:"checkboxes",...t}),rD=t=>(0,s.jsx)(xm,{type:"bulleted",...t});var bm=l(26372);const ym=t=>["hero","full","aside"].includes(t);class aD extends bm.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)(cs,{className:"block-image__caption",value:n})}render(){const{aiMagicIcon:e,aiOverlay:n,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:i,getL10nValue:c,initiallyVisible:h,isLearner:d,items:m,type:p,labels:f,lessonId:v,settings:g,renderCaption:C=this.renderCaptionDelegate}=this.props,{entranceAnimation:b,cornerRadius:x,zoomOnClick:y}=g,E=J()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!b}),L=m[0],{id:T,caption:S}=L,{image:I,audio:N}=c(L.media)??{},k=I?.alt,M=(0,Dt.ME)(I),R=I?.dimensions,A=R?.width||R?.originalWidth,B=R?.height||R?.originalHeight,P=pl({caption:S,editable:i,id:T,getL10nValue:c}),O=!d&&!M,D=A&&B?A/B:void 0,$=I?.link?c(I.link.destination):void 0,H=I?.link&&typeof $=="string"?{type:I.link.type,destination:$}:void 0,F=J()("block-image__image",{"block-image__image--audio-overlay":!!N});return(0,s.jsx)(It,{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)(Pt,{animateBlockEntrance:o,initiallyVisible:h,isLearner:d,children:(0,s.jsxs)(P.tagName,{"aria-labelledby":P.figcaptionId,className:"block-image__figure",role:P.role,children:[(0,s.jsxs)("div",{className:F,children:[O?(0,s.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:D},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)(Di,{alt:k,cornerRadius:x,disableZoom:!y,height:B,l10nId:Xt(L.media),labels:f,link:H,maxHeight:p==="full"?380:900,src:M,width:A}),N&&ym(p)&&(0,s.jsx)(Ys,{blockId:r,cornerRadius:x,index:`${r}-${T}-0`,isOverlayAudio:!0,item:L,labels:f,lessonId:v,media:L.media,mediaType:"audio"})]}),n&&(0,s.jsx)("div",{className:"block-image__ai-overlay",children:n})]}),(i||S)&&(0,s.jsx)("figcaption",{id:P.figcaptionId,children:C(T,S)})]})})})})})})}}const iD=Jt(aD),cD=(t,e,n,o,r)=>e?r:(0,s.jsx)(Pt,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:r});class lD extends bm.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)(cs,{className:"block-image__text",value:n})}renderCaption(e,n){return(0,s.jsx)(cs,{className:"block-image__caption",value:n})}renderImage(e,n,o,r){const{blockId:a,editable:i,lessonId:c,renderCaption:h=this.renderCaptionDelegate,getL10nValue:d}=this.props,m=d(o.media),p=m?.image,f=m?.audio,v=p?.alt,g=(0,Dt.ME)(p),C=p?.dimensions,b=C?.width||C?.originalWidth,x=C?.height||C?.originalHeight,y=pl({caption:n,editable:i,id:e,getL10nValue:d}),{animateBlockEntrance:E,initiallyVisible:L,isLearner:T,labels:S,settings:{cornerRadius:I,zoomOnClick:N}}=this.props,k=J()("block-image__image",{"block-image__image--audio-overlay":!!f}),M=p?.link?d(p.link.destination):void 0,R=p?.link&&typeof M=="string"?{type:p.link.type,destination:M}:void 0;return(0,s.jsx)(Pt,{animateBlockEntrance:E,animateIn:r==="right"?"fadeInRight":"fadeInLeft",initiallyVisible:L,isLearner:T,children:(0,s.jsxs)(y.tagName,{"aria-labelledby":y.figcaptionId,className:"block-image__figure",role:y.role,children:[(0,s.jsxs)("div",{className:k,children:[(0,s.jsx)(Di,{alt:v,cornerRadius:I,disableZoom:!N,height:x,l10nId:Xt(o?.media),labels:S,link:R,maxHeight:900,src:g,width:b}),f&&ym("aside")&&(0,s.jsx)(Ys,{blockId:a,cornerRadius:I,index:`${a}-${e}-0`,isOverlayAudio:!0,item:o,labels:S,lessonId:c,media:o.media,mediaType:"audio"})]}),(i||n)&&(0,s.jsx)("figcaption",{id:y.figcaptionId,children:h(e,n)})]})})}render(){const{defaultBackgroundColor:e,items:n,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:i,imagePosition:c,imageSize:h}=r,d=c==="right",m=J()(`block-image block-image--${a}`,{"block-image--small":h==="small","block-image--large":h==="large","block-image--reverse":d,"block-image--no-animation":!i}),p=n[0],{id:f,caption:v}=p,g="paragraph"in p?p.paragraph:void 0;return(0,s.jsx)(It,{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,g):this.renderImage(f,v,p,"left")}),(0,s.jsx)("div",{className:"block-image__col",children:d?this.renderImage(f,v,p,"right"):o(f,g)})]})})})}}const dD=Jt(lD);class uD extends bm.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)(cs,{className:"block-image__caption",value:n})}renderOverlay(e,n){return(0,s.jsx)(cs,{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)(Pt,{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:c,items:h,labels:d,lessonId:m,settings:p,type:f,renderCaption:v=this.renderCaptionDelegate}=this.props,{entranceAnimation:g,opacity:C,opacityColor:b}=p,x=jh(p?.backgroundColor,o),y=J()(`block-image block-image--${f}`,"block-image--flag-dimensions",{"block-image--no-animation":!g,"block-image--dark":(0,ut.cP)(x)}),E={opacity:C||.6,backgroundColor:b||"transparent"},L=h[0],{id:T,caption:S}=L,I=a(L.media),N=I?.image,k=I?.audio,M=N?.key,R=(0,Dt.ME)(N),A=N?.dimensions,B=A?.width||A?.originalWidth,P=A?.height||A?.originalHeight,O=(0,Fe.Ll)(N?.alt),D=f==="overlay",$=pl({caption:S,editable:r,id:T,isOverlayType:D,getL10nValue:a});return(0,s.jsxs)(It,{"aria-labelledby":$.figcaptionId,className:y,defaultBackgroundColor:o,role:$.role,tag:$.tagName,children:[cD(e,D,i,c,(0,s.jsxs)("div",{className:"block-image__figure",children:[M&&(0,s.jsxs)("div",{className:"block-image__image","data-l10n-id":Xt(L?.media),style:{backgroundImage:`url('${R}')`},children:[(0,s.jsx)(Rn,{alt:O,height:P,src:R,width:B}),(0,s.jsx)("div",{className:"block-image__overlay",style:E}),k&&ym(f)&&(0,s.jsx)(Ys,{blockId:n,index:`${n}-${T}-0`,isOverlayAudio:!0,item:L,labels:d,lessonId:m,media:L.media,mediaType:"audio"})]}),D?this.renderOverlayCaption(T,S):null]})),!D&&(r||S)&&(0,s.jsx)("figcaption",{className:"block-image__container",id:$.figcaptionId,children:v(T,S)})]})}}const Lm=Jt(uD),hD=t=>(0,s.jsx)(Lm,{type:"overlay",...t}),mD=t=>(0,s.jsx)(Lm,{type:"banner",...t});var pD=l(26372);function ug(t){class e extends pD.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)(cs,{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 Au=l(26372);const hg=K("block-gallery-carousel");function fD({blockId:t,animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,initiallyVisible:r,isLearner:a,labels:i,lessonId:c,items:h,onStep:d,previewType:m,renderCaption:p,settings:f}){h||=[];const[v,g]=Au.useState(0),C=Au.useCallback(E=>{g(E),d?.(h[E])},[h,d]),b=m===et.o4.MOBILE_PORTRAIT||m===et.o4.MOBILE_LANDSCAPE,x=hg({noAnimation:!f?.entranceAnimation||Mn()}).toString(),y=vn();return(0,s.jsx)(It,{className:x,defaultBackgroundColor:n,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)(ju,{className:hg("container").toString(),children:(0,s.jsx)(ku,{blockId:t,items:h,children:({carouselRef:E})=>(0,s.jsx)(Nu,{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:C,ref:E,shouldMouseEmulateTouch:b,children:h.map((L,T)=>(0,s.jsx)(gD,{activeIndex:v,blockId:t,editable:o,index:T,item:L,labels:i,lessonId:c,renderCaption:p,settings:f},L.id))})})})})})}const vD=ug(fD),Em=K("block-gallery-carousel-item");function gD({activeIndex:t,blockId:e,editable:n,index:o,item:r,labels:a,lessonId:i,renderCaption:c,settings:h}){const[d,m]=Au.useState(!1),{image:p,audio:f}=Rt(r.media),v=Rt(p?.link?.destination),g=p?.dimensions,C=Au.useCallback(()=>{m(!0)},[]);return(0,s.jsxs)("figure",{className:Em(),children:[n&&!d&&(0,s.jsx)("div",{className:Em("loading"),children:"Loading image..."}),(0,s.jsxs)("div",{className:Em("image-container",{"audio-overlay":!!f}),children:[(0,s.jsx)(Di,{alt:p?.alt,cornerRadius:h?.cornerRadius,disableZoom:!h?.zoomOnClick,height:g?.height||g?.originalHeight,l10nId:Xt(r?.media),labels:a,link:p?.link&&typeof v=="string"?{type:p.link.type,destination:v}:void 0,maxHeight:900,onLoad:C,src:(0,Dt.ME)(p),width:g?.width||g?.originalWidth}),f&&(0,s.jsx)(Ys,{blockId:e,cornerRadius:h?.cornerRadius,index:`${e}-${r.id}-${o}`,isOverlayAudio:!0,item:r,labels:a,lessonId:i,media:r.media,mediaType:"audio",shouldPause:t!==o})]}),(n||r.caption)&&d&&(0,s.jsx)("figcaption",{children:c(r.id,r.caption)})]})}const CD=({alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,link:i,src:c,width:h})=>(0,s.jsx)("div",{className:"block-gallery__image",children:(0,s.jsx)(Di,{alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,link:i,maxHeight:900,src:c,width:h})}),xD=t=>{switch(t){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function bD(t){return(0,s.jsx)(vD,{...t})}class yD extends u.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:c,labels:h,renderCaption:d,settings:m,width:p}=this.props,{entranceAnimation:f,cornerRadius:v,zoomOnClick:g}=m,C=J()(`block-gallery block-gallery--${xD(p)}`,{"block-gallery--no-animation":!f||Mn()});return(0,s.jsx)(It,{className:C,defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:"block-gallery__container",children:(0,s.jsx)("div",{className:"block-gallery__row",children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map(b=>{const{id:x}=b,y=b.caption,E=r(b.media)?.image,L=E?.alt,T=E?.key,S=E?.dimensions,I=S?.width||S?.originalWidth,N=S?.height||S?.originalHeight,k=(0,Dt.ME)(E),M=r(E?.link?.destination),R=pl({caption:y,editable:o,id:x,getL10nValue:this.props.getL10nValue});return(0,s.jsx)("div",{className:"block-gallery__col",children:(0,s.jsxs)(R.tagName,{"aria-labelledby":R.figcaptionId,className:"block-gallery__figure",role:R.role,children:[T&&(0,s.jsx)(CD,{alt:L,cornerRadius:v,disableZoom:!g,height:N,l10nId:Xt(b?.media),labels:h,link:E?.link&&typeof M=="string"?{type:E.link.type,destination:M}:void 0,src:k,width:I}),(o||y)&&(0,s.jsx)("figcaption",{id:R.figcaptionId,children:d(x,y)})]})},x)})})})})})}}const Tm=ug(Jt(yD)),Sm=K("block-divider"),Im=({isLearner:t,labels:{numberedDividerGroup:e},number:n,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,i=r==="numbered",h=Sm({authoring:!t,spacing:r==="spacing",numbered:i,"no-animation":!a}).toString(),d=i?(0,s.jsxs)("div",{className:Sm("wrap__number"),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:e}),n]}):null;return(0,s.jsx)(It,{className:h,children:(0,s.jsx)("div",{className:Sm("wrap",{authoring:!t&&!i}),children:d})})},LD=Im,ED=t=>(0,s.jsx)(Im,{type:"numbered",...t}),TD=t=>(0,s.jsx)(Im,{type:"spacing",...t});var SD=l(59252),ID=l.n(SD),ND=l(96231),mg=l.n(ND),jD=l(99858),Ru=l.n(jD),kD=l(8581),wu=l.n(kD),Pu=l(26372);const AD=30,pg=Ah("blockSettings");class RD extends Pu.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:c,lessonId:h,onStep:d,settings:m,enableVideoPlaybackSpeed:p}=this.props,{entranceAnimation:f,accordionBehavior:v="keepOpen"}=m,g=J()("blocks-accordion",{"blocks-accordion--no-animation":!f});return(0,s.jsx)(It,{className:g,"data-block-id":n,children:(0,s.jsx)(Pt,{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)(HD,{blockId:n,editable:o,enableVideoPlaybackSpeed:p,items:i,keepOpen:v==="keepOpen",labels:c,lessonId:h,onStep:d,settings:m})})})})})})}}const wD={isOpen:!1,isActive:!1},PD=t=>(e,{id:n})=>Object.assign({},e,{[n]:t[n]||wD}),fg=(t,e)=>e.reduce(PD(t),{}),MD=(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}},OD=t=>(e,n)=>{const o=n==t;return{isOpen:o,isActive:o}},BD=t=>(e,n)=>({isOpen:n==t,isActive:e.isActive});class DD extends Pu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(e){super(e);const{items:n}=this.props;this.state={itemStatusMap:fg({},n)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(Kt,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(Kt,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:c}=this.state,h=a[r].id,d=OD(h);this.setState({itemStatusMap:Ta()(d,c)}),open&&i(a[r])}}UNSAFE_componentWillReceiveProps(e){const n=e.items,o=us()(n)!==us()(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=ID()(a=>e[a.id].isOpen,n);if(!o)return;const r=BD(o.id);this.setState({itemStatusMap:Ta()(r,e)})}rebuildItemStatusMap(e){const n=this.state.itemStatusMap;this.setState({itemStatusMap:fg(n,e)})}handleItemClick(e){const{items:n,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,i=n[e].id,c=MD(i,o);this.setState({itemStatusMap:Ta()(c,a)}),open&&r(n[e])}render(){const{items:e,settings:n,editable:o,labels:r,lessonId:a,blockId:i,enableVideoPlaybackSpeed:c}=this.props,{itemStatusMap:h}=this.state,{zoomOnClick:d}=n,m=Object.values(h)?.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)(VD,{blockId:i,disableZoom:!d,editable:o,focused:h[p.id].isActive,index:f,item:{...p,enableVideoPlaybackSpeed:c},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,f),open:h[p.id].isOpen},p.id))})}}const HD=pg(DD);class FD extends Pu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(e){super(e),this.id=Ru()(),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=at.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(n.toString())&&a.test(r)&&at.pause(),this.props.onClick(),e.preventDefault()}renderTitle(e){const{title:n}=this.props.item;return(0,s.jsx)(bt,{className:"blocks-accordion__title",id:e,value:n})}renderDescription(e){const{description:n=""}=this.props.item;return(0,s.jsx)(cs,{className:"blocks-accordion__description",value:n||""},e)}render(){const{blockId:e,blockSettings:n,editable:o,disableZoom:r,getL10nValue:a,index:i,item:c,focused:h,labels:d,lessonId:m,open:p,renderDescription:f=this.renderDescription,renderTitle:v=this.renderTitle}=this.props,{settings:g={},enableVideoPlaybackSpeed:C}=c,b=a(c.media)??{},x=Eo(b,n.audioPosition),y=Object.assign({},g,{disableZoom:r,fullEmbed:!0}),E=n?.backgroundType===w.xj.ACCENT||n?.backgroundType===w.xj.IMAGE,L=J()("blocks-accordion__item",{"blocks-accordion__item--closed":!p}),T=J()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":p&&h&&!E}),S=J()("blocks-accordion__content",{"blocks-accordion__content--will-enter":p,"brand--border":p&&h&&!E}),I=`title-${this.id}`,N=`panel-${this.id}`,k=n?.headingLevel,M=k?`h${k}`:"h2";let R=(0,s.jsxs)("button",{"aria-controls":N,"aria-expanded":p,className:T,onClick:this.toggle,onKeyDown:!o&&jf(this.toggle)||void 0,type:"button",children:[v(I),(0,s.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,s.jsx)(Je,{className:"blocks-accordion__toggler",name:p?"minus":"plus"})})]});return o&&(R=(0,s.jsxs)("div",{className:T,children:[v(I),(0,s.jsx)("button",{"aria-controls":N,"aria-expanded":p,"aria-label":p?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,s.jsx)(Je,{className:"blocks-accordion__toggler",name:p?"minus":"plus"})})]})),(0,s.jsxs)(_s,{className:L,tag:"section",children:[(0,s.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,s.jsx)(M,{children:R})}),(0,s.jsx)("section",{"aria-labelledby":I,className:S,id:N,ref:A=>{this.content=A},children:x.renderOrder.map((A,B)=>{if(A==="text")return f(`text-${B}`);const P={blockId:e,hasPadding:!1,imageMaxHeight:1e3,item:c,labels:d,lessonId:m,enableVideoPlaybackSpeed:C,opts:y,shouldPause:!p},O=Nm(b),D=O==="image-with-audio",$=D?"left":"center",F={audio:{media:x.audioOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${i}-audio`,className:"blocks-accordion__audio"},image:{media:x.imageOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${i}-image`,className:J()(`blocks-accordion__${O}`,{[`blocks-accordion__${O}--${$}`]:D})},video:{media:x.videoOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${i}-video`,className:J()(`blocks-accordion__${O}`,{[`blocks-accordion__${O}--${$}`]:D})},embed:{media:x.embedOnlyMedia||b,isOverlayAudio:!1,index:`${e}-${i}-embed`,className:J()(`blocks-accordion__${O}`,{[`blocks-accordion__${O}--${$}`]:D})},overlay:{media:b,isOverlayAudio:!0,index:`${e}-${i}-overlay`,className:J()(`blocks-accordion__${O}`,{[`blocks-accordion__${O}--${$}`]:D})}}[A];if(!F)return null;const{className:W,...de}=F;return(0,s.jsx)("div",{className:J()(W,{"audio-on-top":this.props.blockSettings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-accordion__figure",children:(0,s.jsx)(Ys,{...P,...de})})},`${A}-${B}`)})})]})}getMediaContainerClasses(e,n){const o=this.props.getL10nValue(this.props.item.media)??{},r=Nm(o),a=r==="image-with-audio",i=a&&!Array.isArray(o)?o?.image?.align:"left";return J()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${i}`]:a,"blocks-accordion__media-container":e,"blocks-accordion__media-container--audio-overlay":n})}}const VD=pg(Jt(t=>(0,s.jsx)(FD,{...t}))),Nm=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 zD extends Pu.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=Ru()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=wu()(this.handleControls.bind(this),100)),window.addEventListener(Kt,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=wu()(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)},()=>{lm(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(Kt,this.handleNavtoTab)}setActive(e){this.setState({activeIndex:e});const{blockId:n}=this.props,o=at.playerId;this.state.activeIndex!=e&&o&&o.includes(n.toString())&&at.pause(),this.props.onStep?.(this.props.items[e])}handleControls(){const{isRTL:e}=this.props;this.tabsHeaderEl.offsetWidth===this.tabsHeaderEl.scrollWidth?(this.arrowPrevEl.classList.add("hidden"),this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("start"),this.tabControls.classList.add("end")):(this.tabsHeaderEl.scrollLeft===0?(this.arrowPrevEl.classList.add("hidden"),this.tabControls.classList.add("start")):(this.arrowPrevEl.classList.remove("hidden"),this.tabControls.classList.remove("start")),this.tabsHeaderEl.scrollLeft===(this.tabsHeaderEl.scrollWidth-this.tabsHeaderEl.offsetWidth)*(e?-1:1)?(this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("end")):(this.arrowNextEl.classList.remove("hidden"),this.tabControls.classList.remove("end")))}handleMouseEnter(){this.state.activeTouch||this.setState({activeMouse:!0})}handleMouseLeave(){this.setState({activeMouse:!1})}handleTouchStart(){this.setState({activeTouch:!0})}scrollTabs(e){const{isRTL:n}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,i=(e==="next"?n?mg():em():n?em():mg())(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;Hr(n)?(r=!0,a=o?e+1>this.tabs.length-1?0:e+1:e-1>=0?e-1:this.tabs.length-1):Fr(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,c=J()("blocks-tabs__header-wrap",{touch:r,mouse:a&&i});return(0,s.jsxs)("div",{className:c,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:h=>{this.tabsHeaderEl=h},role:BM,children:e.map(({title:h},d)=>{const m=e.length===1||d===o,p=e.length>1&&d+1===o,f=e.length>1&&d-1===o,v=J()("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}),g=`tab-${this.id}-${d}`,C=`tabpanel-${this.id}-${d}`;return(0,s.jsx)("button",{"aria-controls":C,"aria-selected":m,className:v,id:g,onClick:this.setActive.bind(this,d),onFocus:this.focusTab.bind(this),onKeyDown:this.handleTabKeyDown.bind(this,d),ref:b=>{this.tabs[d]=b},role:HM,tabIndex:m?void 0:-1,type:"button",children:(0,s.jsx)(bt,{value:h})},g)})}),(0,s.jsxs)("div",{className:"blocks-tabs__controls",ref:h=>{this.tabControls=h},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:h=>{this.arrowPrevEl=h},children:(0,s.jsx)(Je,{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:h=>{this.arrowNextEl=h},children:(0,s.jsx)(Je,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:e}){return(0,s.jsx)(cs,{className:"blocks-tabs__description",value:e})}renderItem(e,n,o){const{blockId:r,getL10nValue:a,labels:i,lessonId:c,renderDescription:h=this.renderDescription}=this.props,{activeIndex:d}=this.state,m=d===n,{settings:p={},enableVideoPlaybackSpeed:f}=e,v=a(e.media)??{},g=Eo(v,this.props.settings.audioPosition,!1),C=J()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":m}),b=Object.assign({},p,{disableZoom:o,fullEmbed:!0}),x=`tabpanel-${this.id}-${n}`,y=`tab-${this.id}-${n}`,E=Nm(v),L=E==="image-with-audio",T=E==="audio-and-embed",S=L?v?.image?.align:"left",I=T?"embed-border":void 0;return(0,s.jsx)("div",{"aria-labelledby":y,className:C,id:x,role:DM,tabIndex:m?0:void 0,children:g.renderOrder.map((N,k)=>{if(N==="text")return(0,s.jsx)("div",{className:"blocks-tabs__description",children:h(e)},`text-${k}`);const M={blockId:r,embedClass:I,hasPadding:!1,imageMaxHeight:1e3,item:e,labels:i,lessonId:c,enableVideoPlaybackSpeed:f,opts:b,shouldPause:!m},A={audio:{media:g.audioOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-audio`,className:"blocks-tabs__audio"},image:{media:g.imageOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-image`,className:J()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${S}`]:L})},video:{media:g.videoOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-video`,className:J()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${S}`]:L})},embed:{media:g.embedOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-embed`,className:J()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${S}`]:L})},overlay:{media:v,isOverlayAudio:!0,index:`${r}-${n}-overlay`,className:J()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${S}`]:L})}}[N];if(!A)return null;const{className:B,...P}=A;return(0,s.jsx)("div",{className:J()(B,{"audio-on-top":this.props.settings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-tabs__figure",children:(0,s.jsx)(Ys,{...M,...P})})},`${N}-${k}`)})},x)}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,enableVideoPlaybackSpeed:i}=this.props,{backgroundType:c,cardMode:h,entranceAnimation:d,zoomOnClick:m}=a,p=J()("blocks-tabs",{"blocks-tabs--no-animation":!d}),f=r.length>0?r.slice(0,AD):[],v=h===Gn.TRANSPARENT&&(c===w.xj.ACCENT||c===w.xj.IMAGE),g=J()("blocks-tabs__container",{"blocks-tabs--single":f.length===1});return(0,s.jsx)(It,{className:p,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:g,children:(0,s.jsx)("div",{className:"blocks-tabs__row",children:(0,s.jsx)("div",{className:"blocks-tabs__col",children:(0,s.jsx)("div",{className:"blocks-tabs__wrapper",ref:C=>{this.container=C},children:(0,s.jsxs)(_s,{children:[this.renderHeader(f,v),(0,s.jsx)("div",{className:"blocks-tabs__content",children:f.map((C,b)=>this.renderItem({...C,enableVideoPlaybackSpeed:i},b,!m))})]})})})})})})})}}const $D=Cm(Jt(t=>(0,s.jsx)(zD,{...t}))),UD=wt()(null,["payload","result"]),_D=t=>{if(t.meta?.thumbnail)return`${t.contentPrefix}/${t.meta.thumbnail}`},WD=t=>t.meta?.version,vg=t=>t.src??null,GD=t=>t.processing,KD=js()(["payload","result","completion"]),QD=wt()(!1,["payload","result","score"]),ZD=va()((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}),YD={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},XD=t=>{const e=Sn()(t.split("-"));return YD[e]},JD=ZD({majorLimit:3,minorLimit:13}),qD=(t,e,n,o)=>{const r=e&&XD(n),a=r?`${t}${r}`:`${t}?rise=true`;if(o){const i=a.includes("?")?"&":"?";return`${a}${i}locale=${o}`}return a};var eH=l(26372);class tH extends eH.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=Sn()(n),a=e(r?.media)?.storyline??{},i=WD(a);JD(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=Sn()(n),{windowName:i}=e;if(r===i&&KD(e)){const{score:c,success:h}=UD(e);if(QD(e)){const d=c.scaled*100;(0,Ye.jr)(r,h,!0,d)}else(0,Ye.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:c,labels:{a11yBlockStoryline:h},settings:d,takingSnapshot:m}=this.props,p=Sn()(c),f=n(p?.media)?.storyline??{},{mediaWidth:v="0"}=d,g=i?{}:{display:r&&!vg(f)?"none":"block"},C=J()("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)(It,{className:"blocks-storyline",style:g,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{"aria-label":h,className:C,role:"group",children:m?this.renderThumbnail(f):this.renderStorylineBlock(f)})})})}renderStorylineBlock(e){return GD(e)?this.renderProcessing():vg(e)?this.renderItem(e):this.renderEmpty()}renderThumbnail(e){const n=_D(e),o=`${(0,_e._$)("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:c}=this.props,{cornerRadius:h}=c,{src:d,meta:m,title:p}=e,{player:f}=m,v=qD(d,a,i,r),C={paddingBottom:`${f.height/f.width*100}%`,...h!=null&&{"--corner-radius":`${Number(h)}px`}},b=J()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":n});return(0,s.jsx)("div",{className:"blocks-storyline__item",style:C,children:(0,s.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",className:b,loading:"lazy",name:o.toString(),ref:x=>{this.iframe=x},src:(0,_e.o1)(v),title:p})})}renderProcessing(){const{renderProcessing:e}=this.props;return typeof e=="function"?e():null}}const sH=(0,jt.wZ)(Jt(tH));var gg=l(26372);const Mu=K("blocks-button"),Cg=w.zV,nH=({description:t})=>(0,s.jsx)(bt,{className:Mu("description"),value:t}),oH=({color:t,destination:e,editBlock:n,handleNavigate:o,isEditable:r,label:a,type:i})=>{const c=P1(),h=Ge()?.externalLinksDisabled,d=Ge()?.theme,m=Bc(),{mode:p}=(0,se.g)(),f=on(),v=qt(),g=Rt(e),C=(0,Ea.htmlDecode)((0,$o.QZ)(Rt(a))),b=i==="email",x=i==="exit-course",y=i==="lesson",E=i==="relative-url",L=Mu("button"),T=!t||t===""||t===m,S=t??m,I={},N=_2(m),k=T&&d?.accentContrast===w.Em.AUTO?w.Em.AUTO:N,M=f?.buttonColorContrast??k,R=f?.buttonRadius??null,A=f?.buttonWidth??null,B=$s({backgroundColor:S,contrast:M});Object.assign(I,{...!T&&{"--color-button-bg":S},...!T&&{"--color-button-text":B},...!T&&{"--color-button-border":"transparent"},...R!=null&&{"--radius-button":`${Number(R)}px`},...A!=null&&{"--width-button":`${Number(A)}rem`}});const P=h&&zn(g),{handleMouseEnter:O,handleMouseLeave:D,handleFocus:$,handleBlur:H}=Ad(),F=gg.useId(),W=(0,u.useCallback)(()=>{if(r)n();else{if(P)return;if(x)return(0,_e.NS)()}},[n,P,r,x]),de=(0,u.useCallback)(()=>{o(g)},[g,o]);if(r||P||x){const fe=(0,s.jsx)("button",{"aria-label":C,className:L,id:P?F:void 0,onBlur:P?()=>H(F):void 0,onClick:W,onFocus:P?()=>$(F):void 0,onKeyDown:jf(W),onMouseEnter:P?()=>O(F):void 0,onMouseLeave:P?()=>D(F):void 0,style:I,tabIndex:Mh,type:"button",children:C});return P?(0,s.jsxs)(s.Fragment,{children:[fe,(0,s.jsx)(Rd,{anchorId:F})]}):fe}else if(y){const fe=p?`/${p}`:"",Se=`/lessons/${g}${fe}`,De=g===""?"#":Se;return(0,s.jsx)(Nn,{"aria-label":C,className:L,onClick:de,style:I,to:De,children:C})}else{const fe=E?g:Pn(g),Se=b?`mailto:${g}?subject=${c}`:fe,De=jn.isIphoneSafari?"_top":"_self",Ie=b?De:"_blank",Ne=Ie==="_blank",ae=Ne?"noopener noreferrer nofollow":void 0,Z=v?.a11yNoticeLinkNewTab||"(opens in a new tab)",ve=Ne?`${C} ${Z}`:C;return(0,s.jsx)("a",{"aria-label":ve,className:L,href:Se,rel:ae,style:I,tabIndex:Mh,target:Ie,children:C})}},xg=t=>{const{animateBlockEntrance:e,editable:n,editBlock:o=()=>{},handleNavigate:r,initiallyVisible:a,isLearner:i,items:c=[],renderDescription:h=nH,settings:d}=t,{buttonAlignment:m=w.Ht,buttonColor:p,buttonShowDescription:f=!0,buttonStack:v,entranceAnimation:g}=d,C=Mu(null,{"no-animation":!g,description:f==!0,center:m==="center",left:m==="left",right:m==="right",rounded:Cg==="rounded"}),b=c?.map(({id:x,description:y,...E})=>{const L=(0,s.jsx)(oH,{...E,color:p,editBlock:o,handleNavigate:r,isEditable:n}),T=f&&h({id:x,description:y});return(0,s.jsx)("section",{className:Mu("container"),children:m==="left"&&f?(0,s.jsxs)(s.Fragment,{children:[L,T]}):(0,s.jsxs)(s.Fragment,{children:[T,L]})},x)})??null;if(v){const{paddingBottom:x,paddingTop:y}=d,E={...y!=null&&{paddingTop:`${Number(y)}rem`},...x!=null&&{paddingBottom:`${Number(x)}rem`}};return(0,s.jsx)("div",{className:C.toString(),style:E,children:b})}return(0,s.jsx)(It,{className:C.toString(),children:(0,s.jsx)(Pt,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"blocks-button",children:b})})})},rH=xg;class aH extends gg.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:c,lessonId:h,initiallyVisible:d}=this.props;return(0,s.jsx)(xg,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,handleNavigate:i,initiallyVisible:d,isLearner:c,items:[e],lessonId:h,settings:n,type:"right"})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,renderButton:i=this.renderButtonDelegate}=this.props,{entranceAnimation:c,buttonShowDescription:h=!0,buttonAlignment:d=w.Ht,buttonSpacing:m=3}=a,p=J()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!c,"blocks-button--description":h==!0,"blocks-button--center":d==="center","blocks-button--left":d==="left","blocks-button--right":d==="right","blocks-button--rounded":Cg==="rounded"});return(0,s.jsx)(It,{className:p,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:r.map((f,v)=>{const g=v===0,C={buttonColor:a.buttonColor||this.props.color,buttonStyle:a.buttonStyle,buttonStack:!0,buttonShowDescription:h,buttonAlignment:d,...g?{}:{paddingTop:m}};return(0,s.jsx)(u.Fragment,{children:i(f,C)},f.id)})})})}}var iH=l(16580),cH=l.n(iH);const Ou=K("block-video");function lH({item:t}){const e=In(),{media:n}=t,o=e(n)??{},{customVideo:r={},tmp:a={},video:i={}}=o,c="poster"in i?i:{...i,...r},h=a.video&&"poster"in a.video?a.video:void 0,{poster:d}=(0,_e.Hm)()?c:h||c;return(0,s.jsxs)("div",{className:Ou("poster-container"),children:[(0,s.jsx)(Rn,{alt:"Video Poster",className:Ou("poster"),src:d}),(0,s.jsx)("div",{className:Ou("play-overlay"),children:(0,s.jsxs)("svg",{className:Ou("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"})]})})]})}const bg=K("block-video");function dH({mediaWidth:t}){const e=bg("item",{small:t==="0",medium:t==="1",full:t==="2"});return(0,s.jsx)("div",{className:e,children:(0,s.jsx)("div",{className:bg("placeholder")})})}const uH=ua()("partner-content-block-card__"),yg=t=>{const{backgroundColor:e,blockId:n,courseId:o,partnerContent:r,publishedAt:a,tenantId:i}=t,{data:c,type:h}=r,{authors:d,bookImage:m,bookTitle:p,buyLink:f,internalId:v,nbicLink:g}=c,C={blockId:n,courseId:o,partnerContentId:v,tenantId:i,contentSubtype:h};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)(yf,{authors:d,backgroundColor:e,block:!0,bookImage:m,bookTitle:p,buyLink:f,publishedAt:a,trackingInfo:C})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)("div",{className:uH("divider")})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(Lf,{backgroundColor:e,block:!0,link:g,publishedAt:a,trackingInfo:C})})]})]})};var hH=l(26372);const jm=K("block-video");function mH({audioVideoPlayhead:t,backgroundColor:e,blockId:n,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,courseId:i,cornerRadius:c,currentLocale:h,dataL10nId:d,enableVideoPlaybackSpeed:m,forwardSeekRestricted:p,id:f,isLoaded:v,item:g,lessonId:C,loadMedia:b,mediaWidth:x,onLoad:y,onProgressChanged:E,poster:L,publishedAt:T,recordMediaPlayheadPosition:S,renderCaption:I,subtitle:N,tenantId:k,type:M,videoKey:R,videoSrc:A}){const B=jm("item",{small:x==="0",medium:x==="1",full:x==="2"}),P=hH.useCallback(O=>{const D=jm("caption",{visible:v}).toString();return(0,s.jsx)(cs,{className:D,value:O.caption})},[v]);return(0,s.jsxs)("div",{className:B,children:[(0,s.jsxs)("figure",{"data-l10n-id":d,children:[b&&(0,s.jsx)(fm,{audioVideoPlayhead:t,canAdjustPlaybackSpeed:m,canRestrictSeek:p,captions:a,cornerRadius:c,id:`${C}-${n}-${f}-${h}`,onLoad:y,poster:L,progressChanged:E,recordMediaPlayheadPosition:S,src:A,subtitle:N,type:R?"video":M},`${C}-${n}-${f}-${h}-${L||""}`),v&&(0,s.jsx)("figcaption",{className:jm("wrapper"),children:(I??P)(g)})]}),r&&(0,s.jsx)(yg,{backgroundColor:e,blockId:n,courseId:i,partnerContent:o,publishedAt:T,tenantId:k})]})}const km=t=>t.toString().padStart(2,"0");function Lg(t){const e=Math.floor(t),n=Math.floor(e/3600),o=Math.floor(e%3600/60),r=e%60;return n>0?`${n}:${km(o)}:${km(r)}`:`${o}:${km(r)}`}function Hne(t=[]){return t.map(({time:e,title:n})=>`${Lg(e)} ${n}`).join(`
`)}const pH=t=>{const[e,n,o]=t.split(":").reverse();return parseInt(e,10)+parseInt(n,10)*60+parseInt(o||"0",10)*3600},fH=/^(\d*:)?\d{1,2}:\d{2}$/,Fne=(t,e)=>{const n=t.split(`
`).filter(r=>r.trim()!==""),o=[];for(const r of n){const[a,...i]=r.split(" ");if(!fH.test(a))throw new Error("Chapters must use the format M:SS or H:MM:SS. Chapters will not display.");o.push({time:pH(a),title:i.join(" ")})}if(o.length>0&&o[0].time!==0)throw new Error("Chapters must start at 0:00. Chapters will not display.");for(let r=1;r<o.length;r++)if(o[r].time<=o[r-1].time)throw new Error("Chapters are out of order. Chapters will not display.");if(e!=null){for(const r of o)if(r.time>=e)throw new Error("Timestamps must be within the video duration. Chapters will not display.");for(let r=0;r<o.length;r++)if((r<o.length-1?o[r+1].time:e)-o[r].time<10)throw new Error("Chapters must be at least 10 seconds long. Chapters will not display.")}return o},Xn=K("video-chapters-panel");function vH(t,e){for(let n=t.length-1;n>=0;n--)if(e>=t[n].time)return n;return-1}function Eg({chapters:t,currentTime:e=0,onSeek:n}){const o=(0,u.useRef)(null),r=vH(t,e);return(0,u.useEffect)(()=>{o.current&&o.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[r]),t.length===0?(0,s.jsxs)("div",{className:Xn("empty-state"),children:[(0,s.jsx)("i",{className:`fa-regular fa-clapperboard ${Xn("empty-state-icon")}`}),(0,s.jsx)("p",{className:Xn("empty-state-title"),children:"No chapters yet"}),(0,s.jsx)("p",{className:Xn("empty-state-body"),children:"Add timestamps in the block settings to organize your video."})]}):(0,s.jsx)("div",{className:Xn(),children:(0,s.jsx)("div",{className:Xn("list"),children:t.map((a,i)=>(0,s.jsxs)("div",{className:Xn("item",{active:i===r}),onClick:()=>n?.(a.time),onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),n?.(a.time))},ref:i===r?o:void 0,role:"button",tabIndex:0,children:[(0,s.jsxs)("div",{className:Xn("thumbnail"),children:[a.thumbnail&&(0,s.jsx)("img",{alt:"",className:Xn("thumbnail-img"),src:a.thumbnail}),(0,s.jsx)("span",{className:Xn("timestamp"),children:Lg(a.time)})]}),(0,s.jsx)("div",{className:Xn("info"),children:(0,s.jsx)("span",{className:Xn("title"),children:a.title})})]},a.time))})})}var gH=l(42117),Tg=l.n(gH);const CH={allowedTags:["b","i","u","c","ruby","rt","v","lang"],allowedAttributes:{c:["class"],v:["title"],lang:["lang"],ruby:[],rt:[]},disallowedTagsMode:"escape",allowedSchemes:[]};function xH(t){return t.replace(/<c\.([^>]+)>/g,'<c class="$1">').replace(/<\/c\.[^>]*>/g,"</c>").replace(/<v\s+([^>]+)>/g,'<v title="$1">').replace(/<script[^>]*>(.*?)<\/script>/gi,"<!--SCRIPT_START-->$1<!--SCRIPT_END-->").replace(/<iframe[^>]*>(.*?)<\/iframe>/gi,"<!--IFRAME_START-->$1<!--IFRAME_END-->")}function bH(t){return t.replace(/<!--SCRIPT_START-->(.*?)<!--SCRIPT_END-->/g,"$1").replace(/<!--IFRAME_START-->(.*?)<!--IFRAME_END-->/g,"$1").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&amp;/g,"&")}function Cn(t,e={}){if(!t)return"";let n;if(e.allowVTTTags!==!1){const o=xH(t),r=Tg()(o,CH);n=bH(r)}else n=Tg()(t,{allowedTags:[],allowedAttributes:{}});return e.preserveWhitespace||(n=n.replace(/\s+/g," ").trim()),n}function El(){return typeof window<"u"?window.crypto.randomUUID():`cue_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}function yH(t){return t.map(e=>({...e,stableId:e.stableId||El()}))}function Ur(t){return t?/^(\d{2}:)?\d{2}:\d{2}\.\d{3}\s*-->\s*(\d{2}:)?\d{2}:\d{2}\.\d{3}/.test(t):!1}function Sg(t){let e=t.match(/^(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/);if(e){const[,n,o,r,a]=e;return parseInt(n)*36e5+parseInt(o)*6e4+parseInt(r)*1e3+parseInt(a)}if(e=t.match(/^(\d{2}):(\d{2})\.(\d{3})$/),e){const[,n,o,r]=e;return parseInt(n)*6e4+parseInt(o)*1e3+parseInt(r)}throw new Error(`Invalid timestamp format: ${t}`)}function LH(t,e=!1){const n=Math.round(t),o=Math.floor(n/36e5),r=Math.floor(n%36e5/6e4),a=Math.floor(n%6e4/1e3),i=n%1e3;if(e){const c=a.toString().padStart(2,"0");if(o>0){const h=r.toString().padStart(2,"0");return`${o}:${h}:${c}`}else return`${r}:${c}`}return`${o.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`}function Ig(t){const e={};if(!t)return e;const n=t.match(/\S+/g)||[];for(const o of n){const r=o.indexOf(":");if(r>0){const a=Cn(o.substring(0,r),{allowVTTTags:!1}),i=Cn(o.substring(r+1),{allowVTTTags:!1});e[a]=i}}return e}function EH(t){const e=t.match(/^<v\s+/);if(e){let a=0,i=-1;for(let c=e[0].length;c<t.length;c++)if(t[c]==="<")a++;else if(t[c]===">")if(a===0){i=c;break}else a--;if(i!==-1){const c=t.substring(e[0].length,i).trim(),h=t.substring(i+1).trim();return{speaker:Cn(c,{allowVTTTags:!1}),text:h}}}const n=t.match(/^<v>\s*(.*)$/s);if(n)return{text:n[1]};const o=t.match(/^\[([^\]]+)\]:\s*(.*)$/s);if(o)return{speaker:Cn(o[1].trim(),{allowVTTTags:!1}),text:o[2]};const r=t.match(/^([^:\n]+):\s*(.*)$/s);if(r&&r[1].length<50){const a=r[1].trim();if(!(/^\d+(\s+\w+)*\s+at\s+\d+$/.test(a)||/^\d{1,2}$/.test(a)||/\d+:\d+/.test(a)||/\bat\s+\d/.test(a)||/\bfrom\s+\d/.test(a)||/\bto\s+\d/.test(a)||/\d+\s*(AM|PM|am|pm)/.test(a)))return{speaker:Cn(a,{allowVTTTags:!1}),text:r[2]}}return{text:t}}function Am(t){return Cn(t,{preserveWhitespace:!1,allowVTTTags:!0})}function TH(t){const e=Cn(t.substring(6).trim(),{allowVTTTags:!1}),n=Ig(e);return{id:n.id,width:n.width,lines:n.lines,regionanchor:n.regionanchor,viewportanchor:n.viewportanchor,scroll:n.scroll,...n}}function SH(t){const e=[...new Set(t.map(n=>n.speaker).filter(Boolean))];return{cueCount:t.length,speakerCount:e.length,speakers:e,lastModified:new Date}}function*IH(t){const e=t.cues,n=t.totalDuration;for(let o=0;o<e.length;o++){const r=e[o],a=o>0?e[o-1]:void 0,i=o<e.length-1?e[o+1]:void 0,c=a?Math.max(0,r.startTimeMs-a.endTimeMs):r.startTimeMs,h=i?Math.max(0,i.startTimeMs-r.endTimeMs):Math.max(0,n-r.endTimeMs),d=n>0?r.startTimeMs/n*100:0,m=n>0?r.endTimeMs/n*100:0,p=m-d;yield{cue:r,index:o,isFirst:o===0,isLast:o===e.length-1,previousCue:a,nextCue:i,gapBefore:c,gapAfter:h,relativeStartPercent:d,relativeEndPercent:m,relativeWidthPercent:p}}}function Vne(t){return Array.from(IH(t))}function NH(t,e,n,o,r,a,i,c){const h=[],d=/<v\s+([^>]+)>([^<]*)<\/v>/g;let m,p=0;for(;(m=d.exec(t))!==null;){const[C,b,x]=m,y={stableId:El(),startTime:e,endTime:n,startTimeMs:o,endTimeMs:r,duration:a,text:Am(x.trim()),settings:i,index:0,speaker:Cn(b.trim(),{allowVTTTags:!1})};c&&(y.id=c),i.position&&(y.position=i.position),i.align&&(y.align=i.align),i.line&&(y.line=i.line),i.size&&(y.size=i.size),i.vertical&&(y.vertical=i.vertical),i.region&&(y.region=i.region),h.push(y),p=m.index+C.length}const f=/<v\s+([^>]+)>([^<]*)$/,g=t.substring(p).match(f);if(g){const[,C,b]=g,x={stableId:El(),startTime:e,endTime:n,startTimeMs:o,endTimeMs:r,duration:a,text:Am(b.trim()),settings:i,index:0,speaker:Cn(C.trim(),{allowVTTTags:!1})};c&&(x.id=c),i.position&&(x.position=i.position),i.align&&(x.align=i.align),i.line&&(x.line=i.line),i.size&&(x.size=i.size),i.vertical&&(x.vertical=i.vertical),i.region&&(x.region=i.region),h.push(x)}return h}function jH(t,e){let n=e,o;!Ur(t[n])&&Ur(t[n+1])&&(o=Cn(t[n],{allowVTTTags:!1}),n++);const r=t[n];if(!Ur(r))return{cues:[],nextIndex:n+1};const a=r.match(/^((?:\d{2}:)?\d{2}:\d{2}\.\d{3})\s*-->\s*((?:\d{2}:)?\d{2}:\d{2}\.\d{3})(.*)$/);if(!a)return{cues:[],nextIndex:n+1};const[,i,c,h]=a,d=Ig(h.trim());n++;const m=[];for(;n<t.length&&t[n]!==""&&!Ur(t[n]);)m.push(t[n]),n++;const p=Sg(i),f=Sg(c),v=f-p,g=[];if(m.length===0){const C={stableId:El(),startTime:i,endTime:c,startTimeMs:p,endTimeMs:f,duration:v,text:"",settings:d,index:0};o&&(C.id=o),d.position&&(C.position=d.position),d.align&&(C.align=d.align),d.line&&(C.line=d.line),d.size&&(C.size=d.size),d.vertical&&(C.vertical=d.vertical),d.region&&(C.region=d.region),g.push(C)}else for(const C of m)if(C.includes("<v ")&&(C.includes("</v>")||C.match(/<v\s+[^>]+>[^<]*$/))){const b=NH(C,i,c,p,f,v,d,o);g.push(...b)}else{const b=m.join(`
`),{text:x,speaker:y}=EH(b),E={stableId:El(),startTime:i,endTime:c,startTimeMs:p,endTimeMs:f,duration:v,text:Am(x),settings:d,index:0};o&&(E.id=o),y&&(E.speaker=y),d.position&&(E.position=d.position),d.align&&(E.align=d.align),d.line&&(E.line=d.line),d.size&&(E.size=d.size),d.vertical&&(E.vertical=d.vertical),d.region&&(E.region=d.region),g.push(E);break}return{cues:g,nextIndex:n}}function kH(t){const e=t.split(`
`).map(a=>a.trim()),n=e.find(a=>a.length>0);if(!n||!n.startsWith("WEBVTT"))throw new Error('Invalid WebVTT file: Must start with "WEBVTT"');const o={notes:[],styles:[],regions:[],cues:[],totalDuration:0,metadata:{cueCount:0,speakerCount:0,speakers:[],lastModified:new Date}};let r=0;for(;r<e.length&&e[r]==="";)r++;if(r<e.length&&e[r].startsWith("WEBVTT"))for(o.header=Cn(e[r],{allowVTTTags:!1}),r++;r<e.length&&e[r]==="";)r++;else throw new Error("Invalid WebVTT file: Missing or malformed WEBVTT header");for(;r<e.length;){const a=e[r];if(a===""){r++;continue}if(a.startsWith("NOTE")){const i=[Cn(a.substring(4).trim(),{preserveWhitespace:!0,allowVTTTags:!1})];for(r++;r<e.length&&e[r]!==""&&!Ur(e[r]);)i.push(Cn(e[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.notes?.push(i.join(`
`));continue}if(a.startsWith("STYLE")){const i=[];for(r++;r<e.length&&e[r]!==""&&!Ur(e[r]);)i.push(Cn(e[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.styles?.push(i.join(`
`));continue}if(a.startsWith("REGION")){const i=TH(a);o.regions?.push(i),r++;continue}if(Ur(a)||Ur(e[r+1])){const i=jH(e,r);i.cues&&i.cues.length>0&&o.cues.push(...i.cues),r=i.nextIndex;continue}r++}return o.cues=yH(o.cues),o.cues.sort((a,i)=>a.startTimeMs-i.startTimeMs),o.cues.forEach((a,i)=>{a.index=i}),o.totalDuration=o.cues.length>0?Math.max(...o.cues.map(a=>a.endTimeMs)):0,o.metadata=SH(o.cues),o}function zne(t){let e="";if(t.header?e+=t.header.trim()+`
`:e+=`WEBVTT
`,e+=`
`,t.notes&&t.notes.length>0)for(const n of t.notes)e+="NOTE",n&&n.length>0&&(e+=" "+n.replace(/\n/g,`
`)),e+=`

`;if(t.styles&&t.styles.length>0)for(const n of t.styles)e+=`STYLE
`,e+=n.trim()+`

`;if(t.regions&&t.regions.length>0)for(const n of t.regions){e+="REGION";const o=[];for(const r in n)n[r]!==void 0&&n[r]!==null&&r!=="settings"&&o.push(`${r}:${n[r]}`);o.length>0&&(e+=" "+o.join(" ")),e+=`

`}for(const n of t.cues){n.id&&(e+=n.id+`
`),e+=`${n.startTime} --> ${n.endTime}`;const o=[];if(n.position&&o.push(`position:${n.position}`),n.align&&o.push(`align:${n.align}`),n.line&&o.push(`line:${n.line}`),n.size&&o.push(`size:${n.size}`),n.vertical&&o.push(`vertical:${n.vertical}`),n.region&&o.push(`region:${n.region}`),n.settings)for(const a in n.settings)n.settings[a]!==void 0&&n.settings[a]!==null&&!o.some(i=>i.startsWith(a+":"))&&o.push(`${a}:${n.settings[a]}`);o.length>0&&(e+=" "+o.join(" ")),e+=`
`;let r=n.text||"";n.speaker&&(r=`[${n.speaker}]: ${r}`),e+=r+`

`}return e.replace(/\s+$/,"")+`
`}const Tl=K("video-transcript-panel"),AH=({cue:t,isCurrent:e,onSeek:n,forwardSeekRestricted:o,maxTimeReached:r})=>{const a=(0,u.useCallback)(()=>{const c=t.startTimeMs/1e3;o&&c>r||n?.(c)},[t,n,o,r]),i=(0,u.useMemo)(()=>o&&t.startTimeMs/1e3>r,[o,t.startTimeMs,r]);return(0,s.jsxs)("button",{"aria-disabled":i,className:Tl("line",{current:e,disabled:i}),onClick:i?void 0:a,tabIndex:i?-1:0,type:"button",children:[(0,s.jsx)("span",{className:Tl("timestamp"),children:LH(t.startTimeMs,!0)}),(0,s.jsx)("span",{className:Tl("text"),children:t.text})]})},Ng=({captions:t,currentTime:e=0,forwardSeekRestricted:n=!1,maxTimeReached:o=0,onSeek:r})=>{const[a,i]=(0,u.useState)([]);(0,u.useEffect)(()=>{if(!t||t.length===0)return;const h=new AbortController;return(async()=>{try{const m=t[0];if(!m)return;const p=m.url||(m.key?(0,_e.o1)(m.key):null);if(!p)return;const f=await fetch(p,{signal:h.signal});if(!f.ok)return;const v=await f.text(),g=kH(v);i(g.cues)}catch(m){console.error("Error loading transcript:",m)}})(),()=>{h.abort()}},[t]);const c=(0,u.useMemo)(()=>{const h=e*1e3;return a.findIndex(d=>h>=d.startTimeMs&&h<d.endTimeMs)},[a,e]);return a.length===0?null:(0,s.jsx)("div",{className:Tl(),children:(0,s.jsx)("div",{className:Tl("lines"),children:a.map((h,d)=>(0,s.jsx)(AH,{cue:h,forwardSeekRestricted:n,isCurrent:d===c,maxTimeReached:o,onSeek:r},h.stableId))})})},To=K("video-side-panel"),jg=4;function RH({captions:t,chapters:e=[],currentTime:n=0,forwardSeekRestricted:o=!1,isLearner:r=!1,maxTimeReached:a=0,onSeek:i,showChapters:c=!0,showTranscript:h=!0}){const d=(0,u.useMemo)(()=>c&&(!r||e.length>0),[e.length,r,c]),m=(0,u.useMemo)(()=>{const S=[];return d&&S.push({id:"chapters",label:"Chapters"}),h&&S.push({id:"transcript",label:"Transcript"}),S},[d,h]),[p,f]=(0,u.useState)(m[0]??null),[v,g]=(0,u.useState)(!1),[C,b]=(0,u.useState)(!1);(0,u.useEffect)(()=>{m.length>0&&!m.some(S=>S.id===p?.id)&&f(m[0])},[m,p]);const x=ks(768),y=(0,u.useCallback)(()=>g(!0),[]),E=(0,u.useCallback)(()=>g(!1),[]),L=C?e:e.slice(0,jg),T=e.length>jg;return x?(0,s.jsxs)("div",{className:To("mobile"),children:[d&&(0,s.jsxs)("div",{className:To("mobile-section"),children:[(0,s.jsx)("h2",{className:To("mobile-heading"),children:"Chapters"}),(0,s.jsx)(Eg,{chapters:L,currentTime:n,onSeek:i}),T&&(0,s.jsxs)("button",{className:To("mobile-expand"),onClick:()=>b(S=>!S),type:"button",children:[C?"Less chapters":"More chapters",(0,s.jsx)("i",{className:`fa-solid fa-chevron-${C?"up":"down"}`})]})]}),h&&(0,s.jsxs)("div",{className:To("mobile-section"),children:[(0,s.jsx)("h2",{className:To("mobile-heading"),children:"Transcript"}),(0,s.jsxs)("button",{className:To("view-transcript-button"),onClick:y,type:"button",children:[(0,s.jsx)(Je,{name:"list"}),"View transcript"]}),v&&(0,s.jsx)(zh,{heading:"Transcript",onClose:E,children:(0,s.jsx)(Ng,{captions:t,currentTime:n,forwardSeekRestricted:o,maxTimeReached:a,onSeek:i})})]})]}):(0,s.jsxs)("div",{className:To(),children:[(0,s.jsx)("div",{className:To("tabs"),role:"tablist",children:m.map(S=>(0,s.jsx)("button",{"aria-selected":p?.id===S.id,className:To("tab",{active:p?.id===S.id}),onClick:()=>f(S),role:"tab",type:"button",children:S.label},S.id))}),(0,s.jsxs)("div",{className:To("content"),role:"tabpanel",children:[p?.id==="transcript"&&(0,s.jsx)(Ng,{captions:t,currentTime:n,forwardSeekRestricted:o,maxTimeReached:a,onSeek:i}),p?.id==="chapters"&&(0,s.jsx)(Eg,{chapters:e,currentTime:n,onSeek:i})]})]})}const Hi=K("block-video");function wH({audioVideoPlayhead:t,backgroundColor:e,blockId:n,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,chapters:i,courseId:c,cornerRadius:h,currentLocale:d,dataL10nId:m,enableVideoPlaybackSpeed:p,forwardSeekRestricted:f,id:v,isLearner:g,isLoaded:C,item:b,lessonId:x,loadMedia:y,mediaWidth:E,onLoad:L,onProgressChanged:T,poster:S,publishedAt:I,recordMediaPlayheadPosition:N,renderCaption:k,showChapters:M,subtitle:R,tenantId:A,transcriptEnabled:B,type:P,videoKey:O,videoSrc:D}){const[$,H]=(0,u.useState)(0),[F,W]=(0,u.useState)(0),de=(0,u.useRef)(null),fe=(0,u.useCallback)(ae=>{H(ae.currentTime),W(Z=>Math.max(Z,ae.currentTime)),T?.(ae)},[T]),Se=(0,u.useCallback)(ae=>{const Z=Hi("caption",{visible:C}).toString();return(0,s.jsx)(cs,{className:Z,value:ae.caption})},[C]),De=(0,u.useCallback)(ae=>{de.current?.seekToTime(ae)},[de]),Ie=B&&a&&a.length>0||M&&(!g||i&&i.length>0),Ne=Hi("item",{small:E==="0",medium:E==="1",full:E==="2"});return(0,s.jsxs)("div",{className:Ne,children:[(0,s.jsxs)("figure",{"data-l10n-id":m,children:[(0,s.jsxs)("div",{className:Hi("video-container"),children:[(0,s.jsx)("div",{className:Hi("figure-container"),children:y&&(0,s.jsx)(fm,{audioVideoPlayhead:t,canAdjustPlaybackSpeed:p,canRestrictSeek:f,captions:a,cornerRadius:h,id:`${x}-${n}-${v}-${d}`,onLoad:L,poster:S,progressChanged:fe,recordMediaPlayheadPosition:N,ref:de,src:D,subtitle:R,type:O?"video":P},`${x}-${n}-${v}-${d}-${S||""}`)}),Ie&&(0,s.jsx)("div",{className:Hi("side-panel-wrapper"),children:(0,s.jsx)(RH,{captions:a,chapters:i,currentTime:$,forwardSeekRestricted:f||!1,isLearner:g,maxTimeReached:F,onSeek:De,showChapters:M,showTranscript:B})})]}),C&&(0,s.jsx)("figcaption",{className:Hi("wrapper"),children:(k??Se)(b)})]}),r&&(0,s.jsx)(yg,{backgroundColor:e,blockId:n,courseId:c,partnerContent:o,publishedAt:I,tenantId:A})]})}var Rm=l(26372);function PH({backgroundColor:t,blockId:e,cornerRadius:n,courseId:o,enableVideoPlaybackSpeed:r,forwardSeekRestricted:a,isLearner:i,item:c,lessonId:h,loadMedia:d,mediaWidth:m,onStep:p,partnerContent:f,audioVideoPlayhead:v,publishedAt:g,recordMediaPlayheadPosition:C,renderCaption:b,showChapters:x,tenantId:y,transcriptEnabled:E,type:L,isVideoTraining:T}){const[S,I]=Rm.useState(!1),{currentLocale:N}=(0,jt.nY)(),k=In(),{id:M,media:R,partnerContentId:A}=c,B=k(R)??{},{customVideo:P={},tmp:O={},video:D={}}=B,$="poster"in D?D:{...D,...P},H=O.video&&"poster"in O.video?O.video:void 0,{captions:F,chapters:W,key:de,poster:fe,src:Se,subtitle:De}=(0,_e.Hm)()?$:H||$,Ie=W??[],Ne=de||Se,ae=f?.find(Ue=>A!=null&&(0,Ms.Gv)(Ue)&&"id"in Ue&&Ue.id===A),Z=ae!=null&&(0,Ms.Gv)(ae),ve=(0,Ms.Gv)(R)&&"l10nId"in R?R.l10nId:void 0,we=Rm.useCallback(()=>{I(!0)},[]),Me=Rm.useCallback(({percentComplete:Ue})=>{Ue>=100&&p?.({id:M})},[M,p]);if(!Ne)return(0,s.jsx)(dH,{mediaWidth:m});const Ae={audioVideoPlayhead:v,backgroundColor:t,blockId:e,blockPartnerContent:ae,blockPartnerContentExists:Z,captions:F,cornerRadius:n,courseId:o,currentLocale:N,dataL10nId:ve,enableVideoPlaybackSpeed:r,forwardSeekRestricted:a,id:M,isLoaded:S,item:c,lessonId:h,loadMedia:d,mediaWidth:m,onLoad:we,onProgressChanged:Me,poster:fe,publishedAt:g,recordMediaPlayheadPosition:C,renderCaption:b,subtitle:De,tenantId:y,type:L,videoKey:de,videoSrc:Ne};return T?(0,s.jsx)(wH,{...Ae,chapters:Ie,isLearner:i,showChapters:x,transcriptEnabled:E},de):(0,s.jsx)(mH,{...Ae},de)}const MH=K("block-video");function wm({animateBlockEntrance:t,blockId:e,courseId:n,enableVideoPlaybackSpeed:o,initiallyVisible:r,isDragPreview:a,isLearner:i,isSidebarPreview:c,items:h,lessonId:d,loadMedia:m,onStep:p,partnerContent:f,progress:v,publishedAt:g,recordMediaPlayheadPosition:C,renderCaption:b,settings:x,takingSnapshot:y,tenantId:E,type:L,isVideoTraining:T}){const S=h?.[0];if(S==null)return null;const I=MH({"no-animation":!x?.entranceAnimation}).toString(),N=(0,Ms.Gv)(x)&&"forwardSeekRestricted"in x?x.forwardSeekRestricted:void 0,k=(0,Ms.Gv)(x)&&"mediaWidth"in x?x.mediaWidth??"1":"1",M=(0,Ms.Gv)(x)&&"showTranscript"in x&&!!x.showTranscript,R=(0,Ms.Gv)(x)&&"showChapters"in x&&!!x.showChapters,A=y||a||c;return(0,s.jsx)(It,{className:I,children:(0,s.jsx)(Pt,{animateBlockEntrance:t,initiallyVisible:r,isLearner:i,children:A?(0,s.jsx)(lH,{item:S}):(0,s.jsx)(PH,{audioVideoPlayhead:v?.items?.[e]?.items?.[S.id]?.audioVideoPlayhead??0,backgroundColor:x?.backgroundColor,blockId:e,cornerRadius:x?.cornerRadius,courseId:n,enableVideoPlaybackSpeed:o,forwardSeekRestricted:N,isLearner:i,isVideoTraining:T,item:S,lessonId:d,loadMedia:m,mediaWidth:k,onStep:p,partnerContent:f,publishedAt:g,recordMediaPlayheadPosition:C,renderCaption:b,showChapters:R,tenantId:E,transcriptEnabled:M,type:L})})})}var Pm=l(26372);const Bu=K("block-audio"),Mm=K("block-embed"),Bn=K("block-attachment");class OH extends Pm.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)(cs,{className:o,value:e})}onLoad(){this.setState({loaded:!0})}renderItem(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,loadMedia:i,progress:c,recordMediaPlayheadPosition:h,renderCaption:d=this.renderCaptionDelegate,settings:m}=this.props,p="forwardSeekRestricted"in m?m.forwardSeekRestricted:!1,f=e.media,v=o(f)??{},{id:g}=e,C=v?.tmp?.audio?.key||v?.audio?.key,b=`${a}-${n}-${g}`,x=wt()(0,["items",n,"items",g,"audioVideoPlayhead"],c),y=vm({lessonId:a,refs:`items:${n}/items:${g}`});return(0,s.jsxs)("div",{className:Bu("item"),children:[i&&(0,s.jsx)(Y3,{audioVideoPlayhead:x,canRestrictSeek:!!p,id:b,item:e,labels:r,mediaSrc:C,onAIUploadFinish:this.props.onAIUploadFinish,onEnd:this.handleOnEnd.bind(this,g),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,e),onTranscriptClose:this.props.closeTranscript,onTranscriptUpdate:this.props.onTranscriptUpdate??void 0,recordMediaPlayheadPosition:h,refs:`items:${n}/items:${g}`,transcriptMedia:f,uploadId:y},b),d(e)]},g)}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,c=Bu({"no-animation":!i}).toString(),h=r.length>0?r.slice(0,1):[];return(0,s.jsx)(It,{className:c,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:Bu("wrapper"),children:h.map(d=>this.renderItem(d))})})})}}const BH=Uv(Jt(OH));class DH extends Pm.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:c,labels:h,settings:d}=this.props,{showMetaData:m}=r,{cardMode:p,showBorder:f=!0}=d,v=Mm("item",{border:f}).toString();return(0,s.jsx)(_s,{className:v,disabled:!f&&p==Gn.TRANSPARENT,tag:"section",children:c&&(0,s.jsx)(og,{data:i,id:`${n}-${o}`,isLesson:!0,labels:h,showMetaData:m})},o)}render(){const{animateBlockEntrance:e,blockId:n,getL10nValue:o,initiallyVisible:r,isLearner:a,items:i,settings:c}=this.props,{entranceAnimation:h,mediaWidth:d="0"}=c,m=o(i?.[0]?.media);if(!m)return null;const p=GO(m)!=="link",f=Mm({"no-animation":!h}).toString(),v=Mm("wrapper",{medium:p&&d==="1",full:p&&d==="2"}),g=i.length>0?i.slice(0,1):[];return(0,s.jsx)(It,{className:f,children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:v,children:g.map(C=>this.renderItem(C,n))})})})}}const HH=Jt(Ah()(DH));class FH extends Pm.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)(It,{children:(0,s.jsx)(Pt,{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:c,onLinkBlur:h,onLinkFocus:d,onLinkMouseEnter:m,onLinkMouseLeave:p}=this.props,f=(0,_e.o1)(e),v=c?"":void 0,g=c?void 0:f,C=c?void 0:"noopener noreferrer nofollow",b=c?"button":void 0,x=c?0:void 0,y=c?void 0:"_blank",E=Bn({}).mix("brandHover").toString(),L=Bn("info");return(0,s.jsxs)(_s,{"aria-labelledby":`attachment-name-${i} attachment-icon-${i}`,className:E,"data-external":v,download:o,href:g,id:c?a:void 0,onBlur:c?()=>h?.(a):void 0,onFocus:c?()=>d?.(a):void 0,onMouseEnter:c?()=>m?.(a):void 0,onMouseLeave:c?()=>p?.(a):void 0,rel:C,role:b,tabIndex:x,tag:"a",target:y,children:[(0,s.jsxs)("div",{className:Bn("main"),children:[(0,s.jsx)("div",{className:Bn("icon"),id:`attachment-icon-${i}`,children:this.fileIcon(n)}),(0,s.jsxs)("div",{className:L,children:[(0,s.jsx)(bt,{className:Bn("title").toString(),id:`attachment-name-${i}`,value:o}),(0,s.jsx)("div",{className:Bn("size").toString(),children:cH()(r,{round:1})})]})]}),(0,s.jsx)("div",{className:Bn("rest"),children:(0,s.jsx)(S9,{className:"brandHover__target--fill"})})]})}renderNoFile(){const e=Bn({none:!0}).toString(),n=Bn("info");return(0,s.jsx)(_s,{className:e,children:(0,s.jsxs)("div",{className:Bn("main"),children:[(0,s.jsx)("div",{className:Bn("icon"),children:(0,s.jsx)(u2,{"aria-label":"File"})}),(0,s.jsxs)("div",{className:n,children:[(0,s.jsx)("div",{className:Bn("title").toString(),children:"File Attachment Block"}),(0,s.jsx)("div",{className:Bn("size").toString(),children:"No file added"})]})]})})}fileIcon(e){const{labels:n}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,i=/powerpoint|presentation/,c=/rtf|richtext/,h=/zip/;return o.test(e)?(0,s.jsx)(s8,{"aria-label":n?.a11yExcelIcon}):r.test(e)?(0,s.jsx)(q9,{"aria-label":n?.a11yPDFIcon}):a.test(e)?(0,s.jsx)(Y9,{"aria-label":n?.a11yWordIcon}):i.test(e)?(0,s.jsx)(e8,{"aria-label":n?.a11yPPTIcon}):c.test(e)?(0,s.jsx)(t8,{"aria-label":n?.a11yRTFIcon}):h.test(e)?(0,s.jsx)(n8,{"aria-label":n?.a11yZipIcon}):(0,s.jsx)(u2,{"aria-label":n?.a11yFileIcon})}}function VH(t){const e=Ah()(t),n=Jt(e),o=bb(n);function r(a){const i=Ge(),c=a.externalLinksDisabled??(i&&"externalLinksDisabled"in i?i.externalLinksDisabled:!1);return(0,s.jsx)(o,{...a,externalLinksDisabled:c})}return r}const zH=VH(FH),So=K("block-step"),$H=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:h,mediaType:d,audioPosition:m}=t,{settings:p}=a,f=Rt(a.media)??{},v=d==="audio"&&f.audio,g=d==="embed"&&f.embed,C=d==="image"&&f.image,b=d==="video"&&f.video;if(!v&&!g&&!C&&!b&&!(d==="image-with-audio"&&r))return;const y=f.embed?ja(f.embed):void 0,E=!!f.image,L=!!f.audio,T=E?f.image.align:"center",S=So("media",{audio:L&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${T}`]:r&&!!T,"audio-on-bottom":L&&!r&&m==="bottom",linkEmbed:y==="link",videoEmbed:y==="video",visual:!r&&E||!rn()(f.video)}),I=p||{};return(0,s.jsx)("div",{className:S,children:(0,s.jsx)(Ys,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:h,media:f,mediaType:r?void 0:d,opts:{disableZoom:n,...I},shouldPause:!0})})},UH=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c,renderTitle:h,renderDescription:d,style:m}=t,{id:p}=o,f=So({active:r}),v=!!o.step,g=!!o.title,C=e||2,b=`h${C}`,x=`h${C+1}`,y=Rt(o.media),E=Eo(y,i,!0,"timeline"),L=Rt(o.description),T=(0,u.useMemo)(()=>!!Object.keys(y??{}).length||!!_1(L).value?.length,[y,L]),S=()=>{const I={audio:{item:{...o,media:E.audioOnlyMedia||y},mediaType:"audio"},image:{item:{...o,media:E.imageOnlyMedia||y},mediaType:"image"},video:{item:{...o,media:E.videoOnlyMedia||y},mediaType:"video"},embed:{item:{...o,media:E.embedOnlyMedia||y},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:E.renderOrder.map((N,k)=>{if(N==="text")return d?(0,s.jsx)("div",{className:So("description"),children:d(o)},`text-${k}`):(0,s.jsx)(bt,{className:So("description"),value:o.description},`text-${k}`);if(!y||!a)return null;const M=I[N];return M?(0,u.createElement)($H,{...t,...M,key:`${N}-${k}`}):null})})};return(0,s.jsx)(It,{children:(0,s.jsx)("div",{className:f,"data-id":p,ref:n,style:m,children:(0,s.jsx)(_s,{className:So("body"),onFocus:c,children:(0,s.jsxs)("div",{className:So("main-wrap"),children:[(0,s.jsxs)("div",{className:So("heading",{solo:!T}),children:[v&&(0,s.jsx)("div",{className:So("step"),children:(0,s.jsx)(b,{children:(0,s.jsx)(vs,{value:o.step})})}),(g||h)&&(0,s.jsx)("div",{className:So("title"),children:h?h(o):(0,s.jsx)(x,{children:(0,s.jsx)(bt,{value:o.title})})})]}),(0,s.jsx)("div",{className:So("main"),children:S()})]})})})})},_H=t=>{const{id:e,settings:n,items:o,onEnter:r,enableVideoPlaybackSpeed:a,initiallyVisible:i,isLearner:c,labels:h,lessonId:d,renderTitle:m,renderDescription:p}=t,f=o[0],v=n.audioPosition,g=!n.zoomOnClick,C=n.headingLevel,b=(0,u.useCallback)((y,E)=>{r?.({id:e,payload:{activeIndex:y,itemId:E}})},[e,r]),x=(0,s.jsx)(UH,{audioPosition:v,blockId:e,disableZoom:g,enableVideoPlaybackSpeed:a,headingLevel:C,isActive:!0,item:f,labels:h,lessonId:d,lessonNumber:e,loadMedia:!0,onFocus:b,renderDescription:p,renderTitle:m,style:{"--block-step-padding-top":`${n.paddingTop}rem`,"--block-step-padding-bottom":`${n.paddingBottom}rem`,"--block-step-corner-radius":`${n.cornerRadius??0}px`}});return c?(0,s.jsx)(Pt,{animateBlockEntrance:!0,className:So("animate").toString(),initiallyVisible:i,isLearner:!0,children:x}):x},WH=K("continue-btn"),Om=({href:t,onClick:e,text:n})=>{const o=`${WH()} brand--ui`;return t?(0,s.jsx)(Nn,{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,to:t,children:(0,s.jsx)(vs,{value:n})}):(0,s.jsx)("button",{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,type:"button",children:(0,s.jsx)(bt,{value:n})})},kg=({bgType:t,text:e,iconType:n="locked"})=>{const o=J()("continue-hint",{"continue-hint--bg-transparent":t==="transparent"});return(0,s.jsxs)("div",{className:o,"data-continue-btn":"",children:[n==="locked"&&(0,s.jsx)(Je,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,s.jsx)("div",{className:"continue-hint__content",children:(0,s.jsx)(vs,{value:e})})]})},Bm=K("block-text");function GH({blockId:t,animateBlockEntrance:e,canContinue:n=!1,isComplete:o,isLearner:r,isLastBlock:a=!1,isOnlyBlockInStep:i,items:c=[],labels:h,onStep:d=()=>{},skipContinue:m=!1,initiallyVisible:p}){const v=(0,u.useRef)(null),g=(0,Te.A)(o),[C,b]=u.useState(!1),{announcePolite:x}=xt(),[y,E]=u.useState(!1),L=on(),T=Ge(),S=Bc(),I=_2(S),N=Vr(),k=c[0],{id:M}=k,R=k.title??N?.label??Ln.G.blockContinueLabel,A=k.type??N?.completionType??Ln.G.blockContinueCompletionType,B=k.completeHint??N?.completeHint??Ln.G.blockContinueCompleteHint,P=!A||(m?y:n||i&&o),O=m||!o||i,D=L?.continueColor||S,$=!D||D===S,H=$&&T?.theme?.accentContrast===w.Em.AUTO?w.Em.AUTO:I,F=L?.continueColorContrast??H,W=L?.continueRadius??null,de=L?.continueWidth??76,fe=$s({backgroundColor:D,contrast:F}),Se={...!$&&{"--color-button-bg":D},...!$&&{"--color-button-text":fe},...!$&&{"--color-button-border":"transparent"},...W!=null&&{"--radius-button":`${Number(W)}px`},...de!=null&&{maxWidth:`${Number(de)}rem`}},De=(0,u.useCallback)(()=>{d({id:M}),b(!0),a?setTimeout(()=>{const Ie=document.querySelector("[data-lesson-id]"),Ne=document.querySelector("main"),ae=document.querySelector("h1.lesson-header__title, .lesson-header__title h1"),Z=Ie?.querySelector('.block-wrapper, [role="region"], .lesson-content > *:first-child');let ve=null;ae?ve=ae:Z&&Z!==v.current?.parentElement?ve=Z:Ie?ve=Ie:Ne&&(ve=Ne),ve&&(ve.setAttribute("tabindex","-1"),ve.focus({preventScroll:!0}))},200):setTimeout(()=>{const Ie=v.current;Ie&&Ie.focus()},100)},[M,d,a]);return(0,u.useEffect)(()=>{!g&&o&&(a||setTimeout(()=>{x?.(h?.a11yStatusAdditionalContent)},300))},[x,o,h,g,a]),(0,u.useEffect)(()=>{const Ie=Ne=>{const{path:ae}=Ne.detail,{blockId:Z,buttonId:ve}=mi(Ne.detail.path,["block","button"]);if(t==Z&&ve===k.id){const we=ae.at(-1);we==="title"?E(!0):we==="completeHint"&&E(!1)}};return window.addEventListener(Kt,Ie),()=>{window.removeEventListener(Kt,Ie)}},[t,k.id]),(0,s.jsxs)(s.Fragment,{children:[O&&(0,s.jsx)(It,{children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:p,isLearner:r,children:(0,s.jsx)("div",{className:Bm("container"),children:(0,s.jsx)("div",{className:Bm("row"),children:(0,s.jsxs)("div",{className:Bm("continue"),style:Se,children:[P&&(0,s.jsx)(Om,{onClick:De,text:R}),!P&&(0,s.jsx)(kg,{text:B})]})})})})}),C&&(0,s.jsx)("div",{"aria-live":"off",className:"visually-hidden-always",ref:v,role:"status",tabIndex:-1,children:h?.a11yStatusContinued||"Continued"})]})}var Dm=l(11580),KH=l(77842),Du=l.n(KH);const QH=K("flashcard");class ZH extends u.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,u.createRef)();render(){const{cardRef:e,handleFlip:n,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:i,backDescription:c,backMedia:h,backType:d,block:m,forceFlipped:p,frontDescription:f,frontMedia:v,frontType:g,id:C,index:b,isHidden:x,labels:y,lessonId:E,prefersKeyboardNavigation:L,settingShowHint:T,size:S,type:I,wrapElement:N,wrapRole:k},state:{areSidesReady:M,flipped:R,isMounted:A}}=this,B=p||R,P=QH({large:S==="large",small:S==="small",flipped:B,stack:I==="stack"});return(0,s.jsxs)(N,{"aria-hidden":!i,className:P,onClick:n,onTouchEnd:r,ref:e,role:k,children:[(0,s.jsx)(_s,{activeIndex:a,allowTabNavigation:i,blockId:m?.id,blockType:I,description:f,index:b,isActiveSide:!B,isAriaHidden:B&&A&&M,isFlipped:B,isHidden:x,itemId:C,labels:y,lessonId:E,media:v,onFlip:n,onReady:o,prefersKeyboardNavigation:L,settingShowHint:T,side:"front",size:S,tag:Rg,type:g}),(0,s.jsx)(_s,{activeIndex:a,allowTabNavigation:i,blockId:m?.id,blockType:I,description:c,index:b,isActiveSide:B,isAriaHidden:!B&&A&&M,isFlipped:B,isHidden:x,itemId:C,labels:y,lessonId:E,media:h,onFlip:n,onReady:o,prefersKeyboardNavigation:L,settingShowHint:T,side:"back",size:S,tag:YH,type:d})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(Kt,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(Kt,this.handleNavEvent)}handleNavEvent=e=>{const{path:n}=e.detail,{cardId:o}=mi(n,["block","card"]);if(o===this.props.id){let r=!1;n.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!lm(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=e=>{const{block:n,index:o}=this.props,r=window.getSelection(),a=r.toString()&&this.cardRef.current?.contains(r.anchorNode);if(e.detail>1&&r.empty(),e&&e.target.closest("a")||a)return;const i=!this.state.flipped;this.setState({areSidesReady:!1,flipped:i,hasFlippedOnce:!0});const c=i?"back":"front",h=n?.items?.[o],d=h?.[c]?.media,m=`items:${n?.id}/items:${h?.id}/${c}`;this.props.onTranscriptUpdate?.({audioPlayerId:Lo({refs:m}),transcriptMedia:d}),this.props.onFlip?.(this.props.index,i)};handleTouchEnd=e=>{e.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const Ag=Jd(Jt(ZH)),Fi=K("flashcard-side"),Hu=K("flashcard-side-flip");class Aa extends u.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:Aa.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=Aa.initialState;longBottomObserver=void 0;readyTimeout=void 0;refDescription=(0,u.createRef)();refDescriptionBottom=(0,u.createRef)();refSide=(0,u.createRef)();refBtnTimeoutMouseLeave=(0,u.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:c,itemId:h,media:d,isActiveSide:m,isAriaHidden:p,isFlipped:f,labels:v,lessonId:g,onFlip:C,prefersKeyboardNavigation:b,settingShowHint:x,side:y,size:E,style:L,type:T},refDescription:S,refDescriptionBottom:I,refSide:N,state:{isAtLongOverflowBottom:k,isLong:M,isLongOverflow:R,isTooltipVisible:A,scrollbarWidthOffset:B}}=this,P=y==="front",O=y==="back",D=E==="small",$=E==="large",H=T==="description",F=T==="fullimage",W=T==="image",de=P?v?.a11yBlockFlashcardFront:v?.a11yBlockFlashcardBack,fe=`items:${o?.id}/items:${h}/${P?"front":"back"}`,Se=Fi({back:O,flipped:f,front:P,fullimage:F}).mix(r),{image:De,audio:Ie}=i(d)??{},Ne=Fi("content",{small:D,large:$,front:P,fullimage:F,image:W,"long-overflow":R,"long-overflow-bottom":k,"has-audio":!!Ie}),ae=Hu({"audio-expansion":!0}),Z=Hu("btn",{"visually-hidden":!x,"prefers-keyboard":b,round:!0}),ve=Hu("icon"),we=Hu("tooltip",{visible:A}),Me=Fi("img",{small:D,large:$,centered:W,full:F}),Ae=Fi("description",{"has-audio":!!Ie,long:M&&!R,"long-overflow":R,short:!M,large:$}),Ue=Fi("description-bottom"),it=B==null?void 0:{right:B},rt=De?.alt??`Image ${c+1}`,vt=(0,Dt.ME)(De),ft=`${this.id}-click-to-flip-text`,ts=`${this.id}-image`,ln=`${this.id}-description`;return(0,s.jsxs)("div",{"aria-label":de,className:Se,inert:p,ref:N,role:"group",style:L,tabIndex:-1,children:[(0,s.jsxs)("div",{className:Ne,children:[(0,s.jsxs)("div",{className:ae,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:it,children:[(0,s.jsx)("button",{"aria-labelledby":`${ft} ${ln} ${ts}`,className:Z,id:`${h}-${c}-${y}-flip-btn`,onBlur:this.handleBtnBlur,onClick:C,onFocus:this.handleBtnFocus,tabIndex:n&&m?0:-1,type:"button",children:(0,s.jsx)(N7,{className:ve})}),(0,s.jsx)("div",{"aria-hidden":"true",className:we,id:ft,onClick:Br,children:v?.blocksClickToFlip})]}),(F||W)&&(0,s.jsx)(XH,{alt:rt,className:Me,imageId:ts,l10nId:Xt(d),url:vt}),H&&(0,s.jsxs)("div",{className:Ae,ref:S,tabIndex:m&&R?0:void 0,children:[(0,s.jsx)(bt,{allowTabNavigation:n&&!p,id:ln,value:a}),R&&(0,s.jsx)("div",{className:Ue,ref:I})]})]}),Ie&&(0,s.jsx)("div",{className:Fi("audio-player",{text:H,image:W}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,s.jsx)(Ys,{activeIndex:e,blockId:o.id,index:`${h}-${c}-${y}`,isOverlayAudio:F,item:{id:h,media:d},itemIndex:c,labels:v,lessonId:g,media:d,mediaType:"audio",refs:fe,shouldPause:!m,side:y})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=Du()(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:c,onReady:h,type:d}}=this;e.isHidden&&!c&&this.checkDescriptionSize(this.props),e.isFlipped!==a&&(i&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{h()},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=>{gn(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}=Aa.descriptionActionTypes,{props:{description:a,size:i,type:c,getL10nValue:h},state:{descriptionAction:d,isLong:m,isLongOverflow:p}}=this,f=h(a)?.length||0,v=h(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||c!==e.type||f!==v)&&this.checkDescriptionSize(e)};checkDescriptionSize=e=>{const{DELETING:n}=Aa.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:i,isLongOverflow:c}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?i&&!c?this.setState({isLongOverflow:!0}):!i&&!c&&this.setState({isLong:!0}):(a===n||o!==e.size)&&this.setState(Aa.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 Rg=Jd(Jt(t=>(0,s.jsx)(Aa,{...t}))),YH=t=>{const{cardMode:e,customBackgroundColorContrast:n}=on(),o=Ge()?.theme,r=qd(),a=Yo(),c=a===w.xj.IMAGE&&r?.overlayColor===w.df.LIGHT,h=kn(),d=o?.accentContrast,m=d===w.Em.AUTO,p=(0,u.useMemo)(()=>{let v="#fafafa";if(e===Gn.TRANSPARENT)switch(a){case w.xj.DARK:v="#525252";break;case w.xj.BLACK:v="#1a1a1a";break;case w.xj.IMAGE:c?v="rgba(0, 0, 0, 0.7)":v="rgba(255, 255, 255, 0.7)";break;case w.xj.ACCENT:case w.xj.COLOR:case w.xj.TINT:{let b=0;switch((0,ut.XC)(h)){case ut.lL.LIGHT:b=.5;break;case ut.lL.MED:b=-.35;break;case ut.lL.DARK:b=-.65;break;case ut.lL.NEAR_BLACK:b=.1;break}v=(0,ut.W8)(b,h)}}const g={"--color-background":v},C=a===w.xj.COLOR?n:d;if((a===w.xj.ACCENT||a===w.xj.COLOR)&&e===Gn.TRANSPARENT&&m){const b=$s({backgroundColor:v,contrast:C});g["--color-text"]=b}return g},[h,a,e,n,m,c,d]),f={...t,style:p};return(0,s.jsx)(Rg,{...f})},XH=({alt:t,className:e,imageId:n,l10nId:o,url:r})=>{const a=(0,Fe.Ll)(t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Rn,{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 JH extends u.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:c,lessonId:h,onStep:d,previewType:m,isRTL:p,settings:f,stack:v}=this.props,{activeIndex:g}=this.state,{prefersKeyboardNavigation:C}=this.state,{entranceAnimation:b,showHint:x}=f,y=J()("block-flashcards",{"block-flashcard--column":!v,"block-flashcard--stack":v,"block-flashcards--no-animation":!b}),L=f.flashcardSize==="1"?"small":f.flashcardSize==="2"?"large":i.length>2?"small":"large",T=m===et.o4.MOBILE_PORTRAIT||m===et.o4.MOBILE_LANDSCAPE;return(0,s.jsx)(It,{className:y,children:v?(0,s.jsx)(Pt,{animateBlockEntrance:n,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{className:"block-flashcard-carousel",children:(0,s.jsx)(ku,{blockId:e,items:i,children:({carouselRef:S})=>(0,s.jsx)(Nu,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:p,labelCarousel:c?.a11yBlockFlashcardStack,labelCarouselRoleDesc:c?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:c?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:c?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:c?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:c?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlideCounterPreposition:c?.blocksPreposition,labelSlidePreposition:c?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:c?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),ref:S,shouldMouseEmulateTouch:T,shouldUseCounter:!0,shouldUseGoToSlide:!1,children:i.map((I,N)=>(0,s.jsx)(Ag,{activeIndex:g,backDescription:I?.back?.description,backMedia:I?.back?.media,backType:I?.back?.type,frontDescription:I?.front?.description,frontMedia:I?.front?.media,frontType:I?.front?.type,id:I?.id,index:N,isHidden:r,labels:c,lessonId:h,onFlip:this.handleFlip.bind(this),onStep:d,prefersKeyboardNavigation:C,settingShowHint:x,size:"large",type:"stack",wrapElement:"div"},I?.id))})})})}):(0,s.jsx)(Pt,{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((S,I)=>(0,s.jsx)(Ag,{activeIndex:g,backDescription:S?.back?.description,backMedia:S?.back?.media,backType:S?.back?.type,blockId:e,frontDescription:S?.front?.description,frontMedia:S?.front?.media,frontType:S?.front?.type,id:S?.id,index:I,isHidden:r,labels:c,lessonId:h,onStep:d,prefersKeyboardNavigation:C,settingShowHint:x,size:L,type:"grid",wrapElement:"li",wrapRole:"listitem"},S?.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&&!FE(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,onTranscriptUpdate:o}=this.props,{flipStateMap:r}=this.state,a=r[e]?"back":"front",i=n.items?.[e],c=i?.[a]?.media,h=`items:${n?.id}/items:${i?.id}/${a}`;o?.({audioPlayerId:Lo({refs:h}),transcriptMedia:c}),this.setState({activeIndex:e})}}const wg=Cm(Jt(Jd(JH))),Pg=({canProceed:t,isReduceMotion:e,onNext:n,onSubmit:o,quizNext:r,quizSubmit:a,allowNext:i=!1})=>{const c=t?!0:void 0,h=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,u.useRef)(null),g=(0,Te.A)(t);(0,u.useEffect)(()=>{i&&!g&&t&&setTimeout(()=>{v.current?.focus?.({preventScroll:e})},0)},[i,t,e,g]);const C=J()("quiz-card__actions",{"quiz-card__actions--proceed":t}),b=J()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-always":!t});return(0,s.jsxs)("div",{className:C,children:[(0,s.jsx)("div",{className:"quiz-card__submit brand--ui",children:!c&&(0,s.jsx)("button",{className:"quiz-card__button","data-testid":"quiz-submit-button",onClick:h,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})})]})},qH=({children:t,isActive:e,isComplete:n,isTimedQuiz:o,style:r})=>(0,s.jsx)("div",{"aria-hidden":e?void 0:!0,className:eF({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})})})}),eF=({isActive:t,isComplete:e,isTimedQuiz:n})=>J()("quiz-card",{"quiz-card--active":t,"quiz-card--done":e,"quiz-card--timed":n}),Mg=qH;var ot=l(55332);const{FILL_IN_THE_BLANK:Og,MATCHING:tF,MULTIPLE_CHOICE:sF,MULTIPLE_RESPONSE:nF}=ot.UQ;function oF(t,e){return t.map(n=>String(e(n?.title)??"")).filter(Boolean).join(", ")}function rF(t,e,n){const o=e!=null?t.find(r=>r.id===e):t.find(r=>r.correct===!0);return String(n(o?.title)??"")}function aF(t,e,n){return String(n(t?.[e]?.title)??"")}function Bg(t,e,n){return e.filter(t).reduce((o,r,a)=>{const i=String(n(r?.title)??"");return a===0?i:o+", "+i},"")}function iF(t,e,n){return Bg(r=>Array.isArray(t)?t.includes(r.id):!!r.correct,e,n)}function cF(t,e,n){return Bg((r,a)=>e.includes(a),t,n)}function lF({answers:t,getL10nValue:e,selection:n,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:i}){const c=Object.fromEntries(Object.entries(n).map(([h,d])=>[d,h]));return t.map((h,d)=>{const m=String(e(h?.title)??""),p=String(e(h?.matchTitle)??""),f=c?.[d],v=String(e(t?.[Number(f)]?.title)??"");return i===ot.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===ot.iV.NONE?"":r===ot.iV.INCORRECT?`${o}: ${(0,$o.QZ)(e)}.`:`${n}: ${(0,$o.QZ)(t)}. ${o}: ${(0,$o.QZ)(e)}.`}function dF(t,e){return t.type===Og?e?.quizAcceptableResponses:e?.a11yCorrectLive}function uF({getL10nValue:t,isComplete:e,item:n,selection:o,labels:r,revealAnswers:a}){if(!n||!e)return null;const i=n?.answers??[],c=n?.correct,h=n?.corrects,d=dF(n,r),m=r?.a11yAnswerLive;switch(n.type){case tF:return lF({getL10nValue:t,answers:i,selection:o,correctLabel:d,userLabel:m,revealAnswers:a});case Og:return Hm({correctAnswer:oF(i,t),selectedAnswer:o,correctLabel:d,userLabel:m,revealAnswers:a});case sF:return Hm({correctAnswer:rF(i,c,t),selectedAnswer:aF(i,o,t),correctLabel:d,userLabel:m,revealAnswers:a});case nF:return Hm({correctAnswer:iF(h,i,t),selectedAnswer:cF(i,o,t),correctLabel:d,userLabel:m,revealAnswers:a})}return null}const Dg=({canProceed:t,feedbackRef:e,feedbackValue:n,isActive:o,isComplete:r,isCorrect:a,item:i,labels:c,quizCorrect:h,quizIncorrect:d,revealAnswers:m,selection:p})=>{const{announcePolite:f,clearAnnouncements:v}=xt(),g=(0,Te.A)(t),C=In(),x=!!Rt(n),y=a?h:d,E=(0,u.useCallback)(()=>{const S=uF({getL10nValue:C,isComplete:r,item:i,labels:c,revealAnswers:m,selection:p}),I=n?(0,$o.QZ)(C(n)):"",N=y+". "+S+" "+I;let k;return N&&(k=setTimeout(()=>{f(N)},250)),()=>{clearTimeout(k)}},[f,n,C,r,i,c,y,m,p]);(0,u.useLayoutEffect)(()=>{!g&&t&&m!==ot.iV.NONE&&E()},[t,g,E,m]),(0,u.useEffect)(()=>v,[v]);const L=J()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":x}),T=J()("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:L,ref:e,children:(0,s.jsx)("div",{className:"quiz-card__main--feedback",children:(0,s.jsxs)("div",{"aria-label":c?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,s.jsx)("div",{className:T,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)(bt,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:n})})]})})})})},{FILL_IN_THE_BLANK:hF}=ot.UQ,mF=({children:t,type:e})=>(0,s.jsx)("div",{className:pF({type:e}),children:t}),pF=({type:t})=>J()("quiz-card__interactive",{"quiz-card__interactive--no-border":[hF].includes(t)}),Hg=mF,_r=({allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:c,settings:h,shouldPause:d})=>c==null||!Object.keys(c).some(m=>m!=="tmp")?null:(0,s.jsx)("div",{className:"quiz-card__media",children:(0,s.jsx)(Ys,{allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:c,opts:h,shouldPause:d})}),fF=(t,e)=>{const n=Mn(),o=(0,Te.A)(e);(0,u.useEffect)(()=>{!o&&e&&t&&Bd()(t.focus)&&t.focus({preventScroll:n})},[e,n,o,t])},Fu=K("question-counter"),vF=({isActive:t=!1,labels:e,questionLabel:n,questionNumber:o,totalQuestions:r})=>{const a=(0,u.useRef)(null);fF(a.current,t);const i=`${e?.quizQuestion} ${o} ${e?.lessonPreposition} ${r}`,c=`${o3(o)}/${o3(r)}`;return(0,s.jsx)("div",{className:Fu(),children:(0,s.jsxs)("h1",{"aria-label":i,className:Fu("heading"),ref:a,tabIndex:-1,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:Fu("label"),children:n}),(0,s.jsx)("span",{"aria-hidden":"true",className:Fu("count"),children:c})]})})},gF=K("question-title"),CF=({allowTabNavigation:t,htmlId:e,value:n})=>(0,s.jsx)(bt,{allowTabNavigation:t,className:gF(),"data-testid":"quiz-question-title",id:e,value:n}),xF=({allowTabNavigation:t,correctAnswerColor:e,correctAnswerColorContrast:n,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:i,isCorrect:c,labels:h,onEnterToSubmit:d=Function.prototype,onChange:m=Function.prototype,options:p,questionHtmlId:f,quizAcceptableResponses:v,quizAnswerPlaceholder:g,revealAnswers:C,value:b})=>{const x=(0,u.useRef)(null),[y]=(0,u.useState)(()=>Ss()("fitb-")),E=In(),L=bF({options:p,getL10nValue:E}),T=`${y}-feedback`,S=`${y}-acceptable`,I=`${y}-input`,N=i?`${T} ${S}`:o||void 0,k=i?void 0:g,M=t?0:eu,R=C===ot.iV.ALL||C===ot.iV.INCORRECT,A=C===ot.iV.ALL||c&&C===ot.iV.INCORRECT,B=c?e:r,O=e&&r&&{"--fa-primary-color":$s({backgroundColor:B,contrast:c?n:a}),"--fa-secondary-color":B},D=r&&{backgroundColor:$s({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},$=J()("quiz-fill__icon",{"quiz-fill__icon--visible":i}),H=J()("quiz-fill__options",{"quiz-fill__options--visible":i}),F=(0,u.useCallback)(Se=>{m(Se.currentTarget.value)},[m]),W=(0,u.useCallback)(Se=>{Ti(Se)&&d(Se)},[d]),de=i?void 0:F,fe=i?void 0:W;return(0,s.jsxs)("div",{className:"quiz-fill",children:[(0,s.jsxs)("div",{className:"quiz-fill__container",children:[(0,s.jsx)("input",{"aria-describedby":N,"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:I,onChange:de,onKeyDown:fe,placeholder:k,readOnly:i,ref:x,tabIndex:M,type:"text",value:b}),R&&(0,s.jsxs)("div",{className:$,id:T,children:[c&&(0,s.jsx)(Je,{"aria-label":h?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...O}}),!c&&(0,s.jsx)(mx,{"aria-label":h?.quizIncorrect,style:D})]})]}),A&&i&&(0,s.jsx)("div",{className:H,id:S,children:(0,s.jsx)(bt,{value:`${v}: ${L}`})})]})},bF=({options:t,getL10nValue:e})=>t.map(o=>(e(o.title)??"").trim()).join(", "),Fg=xF;function yF({correctAnswerColor:t,correctAnswerColorContrast:e}){const n=qt(),o=$s({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)(Je,{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 Vi=l(26372);function LF({correctAnswerValue:t,incorrectAnswerColor:e,incorrectAnswerColorContrast:n,shouldRevealCorrectAnswer:o}){const[r,a]=Vi.useState(!0),[i,c]=Vi.useState(!1),h=Vi.useRef(null),m=`matching-text-${Vi.useId()}`,p=qt(),f=(0,Te.A)(t),v=Vi.useCallback(()=>{a(L=>!L)},[]);Vi.useLayoutEffect(()=>{if(f!==t){const L=h.current;L!=null&&L.scrollWidth>L.clientWidth&&c(!0)}},[f,t]);const g=$s({backgroundColor:e,contrast:n}),C=e?{"--fa-primary-color":g,"--fa-secondary-color":e}:void 0,b=J()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),x=J()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),y=J()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),E=J()("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)(Je,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:C}),!o&&(0,s.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,s.jsx)("span",{className:"matching-results-item-feedback-text-result",children:p?.quizIncorrect})}),o&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("span",{className:b,children:[(0,s.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[p?.quizIncorrect,"."]}),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)(Je,{className:x,name:"caret-down",style:C})}),(0,s.jsx)("span",{className:y,children:(0,s.jsxs)("span",{className:E,id:m,ref:h,children:[p?.quizCorrect,": ",(0,s.jsx)(vs,{value:t})]})})]})})]})}function EF({col1Id:t,col1Value:e,col2Id:n,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:i,height:c,incorrectAnswerColor:h,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:c?{height:c}: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)(vs,{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)(vs,{value:o})})})]})]}),v&&p&&(0,s.jsx)(yF,{correctAnswerColor:r,correctAnswerColorContrast:a}),v&&!p&&(0,s.jsx)(LF,{correctAnswerValue:i,incorrectAnswerColor:h,incorrectAnswerColorContrast:d,shouldRevealCorrectAnswer:f})]})}function TF({answers:t,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:i,revealAnswers:c,rows:h}){return(0,s.jsx)("div",{className:"matching-results",children:(0,s.jsx)("ul",{className:"matching-results-list",role:"list",children:h.map((d,m)=>{const[p,f]=d,v=e==="freezeFirst"?t.find(g=>g.id===p.id)?.matchTitle:t.find(g=>g.id===f.id)?.title;return(0,s.jsx)(EF,{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:c},m)})})})}function SF(t){return Object.keys(t).length===0}function IF(t,e){return e in t}function NF(t,e){return Object.values(t).includes(e)}function Fm(t,e){for(const n in t)if(t[n]===e)return n}function jF(t,e,n){return{...t,[e]:n}}function Vu(t,e){return e in t?(0,Ms.QD)(t,[e]):t}function kF(t,e){const n=Fm(t,e);return n===void 0?t:Vu(t,n)}function Vg(t,e,n){let o=Vu(t,e);return o=kF(o,n),jF(o,e,n)}function AF(t){return Object.keys(t).length}var RF=l(18077),Vm=l.n(RF);Vm().dynamicDrop(!0),Vm().pointerMoveTolerance(8);const qo=Vm();var zi=l(26372);function wF(t,{onStart:e,onMove:n,onEnd:o,isEnabled:r=!0}){const a=zi.useRef({x:0,y:0}),i=zi.useRef({x:0,y:0}),c=zi.useRef(!1),h=zi.useRef(null),d=zi.useRef(void 0);zi.useEffect(()=>{const m=t.current;if(!m||!r||c.current)return;h.current=TE(m);function p(){const f=h.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,g=f.y-i.current.y;(v!==0||g!==0)&&(a.current.x+=v,a.current.y+=g,t.current&&(t.current.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,n?.({...a.current})),i.current=f)},qo(m).draggable({inertia:!1,autoScroll:{container:h.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},i.current=p(),h.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="",h.current?.removeEventListener("scroll",d.current),setTimeout(()=>{o?.()},0)}}}),c.current=!0,()=>{qo(m).unset(),h.current?.removeEventListener("scroll",d.current),c.current=!1}},[t,e,n,o,r])}var zg=l(26372);function PF(t,{isEnabled:e=!0,onDrop:n,onEnter:o,onLeave:r,overlap:a=.015}){const i=zg.useRef(!1);zg.useEffect(()=>{const c=t.current;if(!(!c||!e||i.current))return qo(c).dropzone({overlap:a,listeners:{drop:()=>{n?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),i.current=!0,()=>{qo(c).unset(),i.current=!1}},[t,n,o,r,e,a])}var Jn=l(26372);const $g=Jn.memo(function({col:e,height:n,id:o,index:r,isActive:a,isFrozen:i,isMatched:c,isMoved:h,onClick:d,onDragEnd:m,onDragStart:p,onDrop:f,onDropZoneEnter:v,onDropZoneLeave:g,onKeyDown:C,value:b,valueOtherColumnActive:x,valueOtherColumnMatch:y}){const[E,L]=Jn.useState(!1),T=Jn.useRef(null),S=Jn.useRef(null),I=qt(),N=Jn.useCallback(()=>{d({col:e,id:o,value:b})},[e,o,d,b]),k=Jn.useCallback(()=>{L(!0),p({col:e,id:o,value:b})},[e,o,p,b]),M=Jn.useCallback(()=>{m(),L(!1)},[m]),R=Jn.useCallback(()=>{f({col:e,id:o,value:b})},[e,o,f,b]),A=Jn.useCallback(()=>{v({col:e,id:o,value:b})},[e,o,v,b]),B=Jn.useCallback(()=>{g()},[g]),P=Jn.useCallback(F=>{C(F,{col:e,index:r})},[e,r,C]);Jn.useEffect(()=>{e===1&&r===0||S.current?.setAttribute("tabindex","-1")},[]),wF(T,{isEnabled:!i,onStart:k,onEnd:M}),PF(T,{isEnabled:i,onDrop:R,onEnter:A,onLeave:B});const O=J()("matching-interaction-piece",{"matching-interaction-piece--matched":c,"matching-interaction-piece--moved":h}),D=y==null?null:(0,s.jsxs)(s.Fragment,{children:[I?.a11yMatchingItemMatchedWith," ",(0,s.jsx)(vs,{value:y})]}),$=x==null?(0,s.jsx)(s.Fragment,{children:I?.a11yMatchingItemSelectableItem}):(0,s.jsxs)(s.Fragment,{children:[I?.a11yMatchingItemMatchWith," ",(0,s.jsx)(vs,{value:x})]}),H=J()("matching-interaction-item",{draggable:!i,"draggable--dragging":!i&&E,droppable:i});return(0,s.jsx)("li",{className:H,ref:T,role:"listitem",children:(0,s.jsxs)("button",{"aria-pressed":a||c?!0:void 0,className:O,"data-state":a?"active":void 0,onClick:E?void 0:N,onKeyDown:P,ref:S,style:n?{height:n}:void 0,type:"button",children:[i?(0,s.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,s.jsx)(Je,{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)(vs,{value:b})})}),(0,s.jsx)("span",{className:"visually-hidden-always",children:D}),(0,s.jsx)("span",{className:"visually-hidden-always",children:$})]},o)})});var Vt=l(26372);function MF({answers:t,columnBehavior:e,isActive:n,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:i,onChangeRows:c,prefersKeyboardNavigation:h}){const d=(0,Te.A)(n),m=(0,Te.A)(e),p=(0,Te.A)(t),f=(0,Te.A)(r),v=qt(),[g,C]=Vt.useState(void 0),[b,x]=Vt.useState(void 0),[y,E]=Vt.useState(void 0),[L,T]=Vt.useState(!1),S=Vt.useRef(null),I=Vt.useRef(null),N=Vt.useRef(null),k=Vt.useRef(void 0),M=Vt.useRef(void 0),[R,A]=Vt.useState(()=>zu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),[B,P]=Vt.useState(()=>zu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})),O=Vt.useMemo(()=>t.map(Z=>({col:1,id:Z.id,value:Z.title})).toSorted((Z,ve)=>{const we=R.get(Z.id)??1/0,Me=R.get(ve.id)??1/0;return we-Me}),[t,R]),D=Vt.useMemo(()=>t.map(Z=>({col:2,id:Z.id,value:Z.matchTitle})).toSorted((Z,ve)=>{const we=B.get(Z.id)??1/0,Me=B.get(ve.id)??1/0;return we-Me}),[t,B]),$=Vt.useCallback(()=>{for(const ae of S.current?.querySelectorAll('button:not([tabindex="-1"])')??[])ae.setAttribute("tabindex","-1")},[]),H=Vt.useCallback(ae=>{const Z=Array.from(R),ve=Array.from(B);if(e==="freezeSecond"){const we=new Array(ve.length),Me=Z.map(it=>it[0]).filter(it=>!(it in ae));for(const[it,rt]of Object.entries(ae)){const vt=B.get(rt);we[vt]=[it,vt]}for(let it=0;it<we.length;it++)if(we[it]==null){const rt=Me.shift();we[it]=[rt,it]}const Ae=new Map(we),Ue=Ug(R,Ae);Ue.length>0&&x(Ue),A(Ae)}else{const we=new Array(Z.length),Me=new Set(Object.values(ae)),Ae=ve.map(rt=>rt[0]).filter(rt=>!Me.has(rt));for(const[rt,vt]of Object.entries(ae)){const ft=R.get(rt);we[ft]=[vt,ft]}for(let rt=0;rt<we.length;rt++)if(we[rt]==null){const vt=Ae.shift();we[rt]=[vt,rt]}const Ue=new Map(we),it=Ug(B,Ue);it.length>0&&E(it),P(Ue)}},[e,R,B]),F=Vt.useCallback(ae=>{k.current=ae},[]),W=Vt.useCallback(()=>{M.current==null&&(k.current=void 0)},[]),de=Vt.useCallback(ae=>{M.current=ae},[]),fe=Vt.useCallback(()=>{M.current=void 0},[]),Se=Vt.useCallback(ae=>{const Z=k.current;if(Z!=null){const ve=ae.col===1?ae.id:Z.id,we=ae.col===1?Z.id:ae.id,Me=Vg(r,ve,we);k.current=void 0,M.current=void 0,a(Me)}},[r,a]),De=Vt.useCallback(ae=>{let Z=null,ve=!1,we=g;if(ae.col===1&&ae.id in r)Z=Vu(r,ae.id),we=null;else if(ae.col===2&&Fm(r,ae.id)){const Me=Fm(r,ae.id);Z=Vu(r,Me),we=null}else g==null&&(we={col:ae.col,id:ae.id,value:ae.value},ve=!0);if(g!=null)if(g.col===ae.col)g.id===ae.id?we=null:we={col:ae.col,id:ae.id,value:ae.value};else{const Me=ae.col===1?ae.id:g.id,Ae=ae.col===1?g.id:ae.id;Z=Vg(r,Me,Ae),ve=!0,we=null}if(Z!=null&&a(Z),g!==we&&C(we),ve){const Ae=(ae.col===1?N:I).current?.querySelector('button:not([aria-pressed="true"])');Ae&&($(),Ae.removeAttribute("tabindex"),Ae.focus({preventScroll:!h}))}},[h,g,r,a,$]),Ie=Vt.useCallback((ae,{col:Z,index:ve})=>{const we=ae.currentTarget;let Me=!1,Ae=null;switch(ae.key){case"ArrowUp":Me=!0,Ae=we.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":Me=!0,Ae=we.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":Me=!0,Ae=Z===1?N.current?.children[ve]?.firstElementChild:void 0;break;case"ArrowLeft":Me=!0,Ae=Z===2?I.current?.children[ve]?.firstElementChild:void 0;break;case"Home":Me=!0,Ae=we.closest("ul").firstElementChild.firstElementChild;break;case"End":Me=!0,Ae=we.closest("ul").lastElementChild.firstElementChild;break}Me&&(ae.preventDefault(),ae.stopPropagation()),Ae&&($(),Ae.removeAttribute("tabindex"),Ae.focus())},[$]);Vt.useEffect(()=>{r!==f&&!SF(r)&&H(r)},[H,r,f]),Vt.useEffect(()=>{const ae=({shouldFocus:we})=>{const Me=g.col===1?I:N;$();const Ae=Me.current.querySelector('button[data-state="active"]');Ae?.removeAttribute("tabindex"),we&&Ae?.focus(),C(null)},Z=we=>{S.current?.contains(we.target)||ae({shouldFocus:!1})},ve=we=>{gn(we)&&g!=null&&ae({shouldFocus:!0})};return g==null?(document.removeEventListener("mousedown",Z),document.removeEventListener("keydown",ve)):(document.addEventListener("mousedown",Z),document.addEventListener("keydown",ve)),()=>{document.removeEventListener("mousedown",Z),document.removeEventListener("keydown",ve)}},[g,$]);const Ne=Vt.useCallback(()=>{const ae=Array.from(S.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]")??[]);if(ae.length===0)return;const Z=ae[0].closest("button");let ve=0,we;if(Z){const Ae=window.getComputedStyle(Z),Ue=parseFloat(Ae.paddingBlockStart)+parseFloat(Ae.paddingBlockEnd),it=parseFloat(Ae.borderTopWidth)+parseFloat(Ae.borderBottomWidth);ve=Ue+it,we=parseFloat(Ae.minHeight)}const Me=ae.reduce((Ae,Ue)=>Math.max(Ae,Ue.scrollHeight+ve),0);we&&we>=Me?i(void 0):i(Me)},[i]);return Vt.useEffect(()=>{(!d&&n||p!==t)&&Ne()},[d,n,t,p,Ne]),Vt.useEffect(()=>{const ae=S.current?.closest(".quiz-card");let Z;return ae!=null&&(Z=new ResizeObserver(()=>{Ne()}),Z.observe(ae)),()=>{ae!=null&&Z!=null&&Z.unobserve(ae)}},[Ne]),Vt.useEffect(()=>{let ae,Z;return b&&(ae=setTimeout(()=>{x(void 0)},1e3)),y&&(Z=setTimeout(()=>{E(void 0)},1e3)),()=>{clearTimeout(ae),clearTimeout(Z)}},[b,y]),Vt.useEffect(()=>{L&&m!==e&&(a({}),H({}),C(void 0),A(zu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),P(zu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})))},[L,e,m,t,a,H]),Vt.useEffect(()=>{if(O.length<=0)return;const ae=O.map((Z,ve)=>[Z,D[ve]]);c(ae)},[O,D,c]),Vt.useEffect(()=>{T(!0)},[]),(0,s.jsxs)("div",{className:"matching-interaction","data-testid":"matching-interaction",ref:S,children:[(0,s.jsx)("ul",{"aria-label":v?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1","data-col":"1",ref:I,role:"list",children:O.map((ae,Z)=>{const ve=IF(r,ae.id);return(0,s.jsx)($g,{col:1,height:o,id:ae.id,index:Z,isActive:g?.col===1&&g?.id===ae.id,isFrozen:e==="freezeFirst",isMatched:ve,isMoved:b?.map(we=>we.id).includes(ae.id)??!1,onClick:De,onDragEnd:W,onDragStart:F,onDrop:Se,onDropZoneEnter:de,onDropZoneLeave:fe,onKeyDown:Ie,value:ae.value,valueOtherColumnActive:g?.col===2?g?.value:void 0,valueOtherColumnMatch:ve?D[Z]?.value:void 0},ae.id)})}),(0,s.jsx)("ul",{"aria-label":v?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2","data-col":"2",ref:N,role:"list",children:D.map((ae,Z)=>{const ve=NF(r,ae.id);return(0,s.jsx)($g,{col:2,height:o,id:ae.id,index:Z,isActive:g?.col===2&&g?.id===ae.id,isFrozen:e==="freezeSecond",isMatched:ve,isMoved:y?.map(we=>we.id).includes(ae.id)??!1,onClick:De,onDragEnd:W,onDragStart:F,onDrop:Se,onDropZoneEnter:de,onDropZoneLeave:fe,onKeyDown:Ie,value:ae.value,valueOtherColumnActive:g?.col===1?g?.value:void 0,valueOtherColumnMatch:ve?O[Z]?.value:void 0},ae.id)})})]})}const zu=({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 Ug(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 $u=l(26372);function _g({columnBehavior:t="freezeSecond",...e}){const[n,o]=$u.useState([]),[r,a]=$u.useState(void 0),i=$u.useCallback(h=>{o(h)},[]),c=$u.useCallback(h=>{a(h)},[]);return e.isComplete?(0,s.jsx)(TF,{...e,columnBehavior:t,itemHeight:r,rows:n}):(0,s.jsx)(MF,{...e,columnBehavior:t,itemHeight:r,onChangeItemHeight:c,onChangeRows:i})}function Wg(t){return t==null||t===-1}function OF(t,e){return t===e}const BF=({allowTabNavigation:t,color:e,correctId:n,errorMessageId:o,isComplete:r,isCorrect:a,isReduceMotion:i,labels:c,onChange:h,onEnterToSubmit:d,options:m=[],questionHtmlId:p,renderOptionText:f,isRetaking:v,revealAnswers:g,selectedIndex:C,shouldFocusFirst:b,onFocusFirstComplete:x})=>{const y=Wg(C);return(0,s.jsx)(ju,{"aria-invalid":o?!0:void 0,"aria-labelledby":[p,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:m.map((E,L,T)=>(0,s.jsx)(DF,{allowTabNavigation:t,color:e,id:E.id,index:L,isComplete:r,isCorrect:a,isCorrectOption:n===E.id,isFirst:L===0,isFresh:y,isLast:L===T.length-1,isReduceMotion:i,isRetaking:v,isSelected:!v&&OF(C,L),labels:c,onChange:h,onEnterToSubmit:d,onFocusFirstComplete:x,questionHtmlId:p,renderOptionText:f,revealAnswers:g,shouldFocusFirst:b,title:E.title},E.id))})},DF=({allowTabNavigation:t,color:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isFresh:c,isSelected:h,isReduceMotion:d,labels:m,onChange:p,onEnterToSubmit:f,questionHtmlId:v,renderOptionText:g,isRetaking:C,revealAnswers:b,shouldFocusFirst:x,onFocusFirstComplete:y,title:E})=>{const[L]=(0,u.useState)(()=>Ss()("qmc-")),T=(0,u.useRef)(null),S=(0,Te.A)(h),I=!!r,N=t&&(h||c&&o===0)?0:eu,k=b===ot.iV.ALL,M=b==ot.iV.INCORRECT,R=k||M&&a,A=k||M&&a||M&&!a&&h,B=r&&i&&R,P=r&&!i&&A,O=(B||P)&&!C,D=O?`${L}-result`:void 0,$=J()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":B,"is-incorrect":P,"is-selected":h}),H=J()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":h&&!r}),F=J()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":B}),W=J()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":P}),de=J()("quiz-multiple-choice-option__border"),fe=(0,u.useCallback)(Ie=>{Ti(Ie)&&f(Ie)},[f]),Se=(0,u.useCallback)(()=>{p({selectedIndex:o})},[o,p]),De=r?void 0:fe;return(0,u.useEffect)(()=>{t&&T.current&&(!S&&h?T.current.focus({preventScroll:d}):x&&c&&o===0&&(T.current.focus({preventScroll:d}),y?.()))},[t,h,d,S,x,c,o,y]),(0,s.jsxs)("div",{"data-testid":"quiz-card-option",children:[(0,s.jsxs)("label",{"aria-describedby":D,className:$,ref:T,children:[(0,s.jsx)("input",{checked:h,className:"quiz-multiple-choice-option__input",disabled:I,name:v,onClick:r?void 0:Se,onKeyDown:De,tabIndex:N,type:"radio"}),(0,s.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:e},children:[(0,s.jsx)(Q4,{className:H,dataTestId:h&&!r?"selected-dot-active":"selected-dot"}),(0,s.jsx)(Jp,{className:F,"data-testid":B?"correct-check-active":"correct-check"}),(0,s.jsx)(d2,{"aria-hidden":"true",className:W,dataTestId:P?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,s.jsx)("div",{className:de}),(0,s.jsx)("div",{className:"quiz-multiple-choice-option__text","data-testid":"quiz-mc-option-text",children:g({optionId:n,title:E})})]}),O&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:D,children:[h&&i&&m?.a11yQuizReviewCorrectlySelected,h&&!i&&m?.a11yQuizReviewIncorrectlySelected,!h&&i&&m?.a11yQuizReviewIncorrectlyUnselected,!h&&!i&&m?.a11yQuizReviewCorrectlyUnselected]})]})},Gg=BF;function HF(t){return t.length===0}function FF(t,e){return t.includes(e)}function VF(t,e){return t.includes(e)?t.filter(n=>n!==e):[...t,e]}const zF=({allowTabNavigation:t,correctIds:e=[],errorMessageId:n,isComplete:o,isCorrect:r,labels:a,onChange:i,onEnterToSubmit:c,options:h=[],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:h.map((g,C)=>(0,s.jsx)($F,{allowTabNavigation:t,errorMessageId:n,id:g.id,index:C,isComplete:o,isCorrect:r,isCorrectOption:e.includes(g.id),isRetaking:p,isSelected:!p&&FF(v,C),labels:a,onChange:i,onEnterToSubmit:c,renderOptionText:m,revealAnswers:f,title:g.title},g.id))})}),$F=({allowTabNavigation:t,errorMessageId:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isSelected:c,labels:h,onChange:d,onEnterToSubmit:m,renderOptionText:p,isRetaking:f,revealAnswers:v,title:g})=>{const[C]=(0,u.useState)(()=>Ss()("qmr-")),b=r&&v===ot.iV.ALL&&!f,x=b?`${C}-result`:void 0,y=!!r,E=t?0:eu,L=v===ot.iV.ALL,T=v==ot.iV.INCORRECT,S=L||T&&a||T&&!a&&c,I=J()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":c,"quiz-multiple-response-option--correct":r&&i&&S,"quiz-multiple-response-option--incorrect":r&&!i&&S}),N=J()("quiz-multiple-response-option__border"),k=(0,u.useCallback)(A=>{Ti(A)&&m(A)},[m]),M=(0,u.useCallback)(()=>{d({optionIndex:o})},[o,d]),R=r?void 0:k;return(0,s.jsxs)("li",{children:[(0,s.jsxs)("label",{"aria-describedby":x,className:I,children:[(0,s.jsx)("input",{"aria-describedby":e||void 0,"aria-invalid":e?!0:void 0,checked:c,className:"quiz-multiple-response-option__input",disabled:y,onChange:r?void 0:M,onKeyDown:R,tabIndex:E,type:"checkbox"}),(0,s.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,s.jsx)(Jp,{className:"quiz-multiple-response-option__check"}),(0,s.jsx)(d2,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",overrideStyle:!0,width:"8"})]}),(0,s.jsx)("div",{className:N}),(0,s.jsx)("div",{className:"quiz-multiple-response-option__text",children:p({optionId:n,title:g})})]}),b&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:x,children:[c&&i&&h?.a11yQuizReviewCorrectlyChecked,c&&!i&&h?.a11yQuizReviewIncorrectlyChecked,!c&&i&&h?.a11yQuizReviewIncorrectlyUnchecked,!c&&!i&&h?.a11yQuizReviewCorrectlyUnchecked]})]})},Kg=zF;var UF=l(17193),Ra=l.n(UF),_F=l(37262),Qg=l.n(_F),WF,GF;const KF=Js()(Bt()("correct",!0)),Xne=t=>WF(GF(t),zm),QF=t=>({MATCHING:Ra(),FILL_IN_THE_BLANK:$m,MULTIPLE_CHOICE:Ra(),MULTIPLE_RESPONSE:Ra()})[t],zm=Xe()(Qg()("id"),KF),ZF=Xe()(Sn(),zm),$m=Js()(Bt()("correct",!0)),YF=Xe()(Gt()("id"),Sn()),Jne={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,s.jsx)(Z8,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,s.jsx)(Y8,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,s.jsx)(K0,{})},MATCHING:{label:"Matching",icon:(0,s.jsx)(G8,{})}};var XF=l(60238);const{FILL_IN_THE_BLANK:JF,MATCHING:Zg,MULTIPLE_CHOICE:qF,MULTIPLE_RESPONSE:eV}=ot.UQ;function Yg({type:t,text:e="",matches:n={},answersLength:o=0,selectedIndices:r=[],selectedIndex:a}){switch(t){case JF:return!(0,XF.h)(e);case Zg:return AF(n)===o;case eV:return!HF(r);case qF:default:return!Wg(a)}}function tV({answered:t=!1,...e}){return t&&e.type!==Zg?!1:Yg(e)}function Xg(t,e){const n=t.trim();return e?n:n.toLowerCase()}function Jg({answers:t,text:e,caseSensitive:n=!1,getL10nValue:o}){if(!e)return!1;const r=Xg(e,n);return t.some(a=>{const i=o(a.title);return typeof i!="string"?!1:Xg(i,n)===r})}function qg(t){return Object.entries(t).every(([e,n])=>e===String(n))}function sV(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 e6({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=sV(n);return a===i}function nV(t,e){return e.map(n=>t.indexOf(n))}function oV(t){return typeof t=="object"&&t!==null&&"id"in t?t.id:t}function rV(t){const e=t.answers??[],n=t.corrects??[];return n.length>0?n.map(a=>{const i=oV(a);return e.findIndex(c=>c.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 t6(t){return[...t].sort((e,n)=>e-n)}function s6({isShuffled:t=!1,item:e,selectedIndices:n,shuffledAnswerIndices:o}){if(!Array.isArray(n)||t&&!Array.isArray(o))return!1;const r=t?nV(o,n):n,a=rV(e),i=t6(r),c=t6(a);return i.length!==c.length?!1:i.every((h,d)=>h===c[d])}function n6({answers:t,feedback:e,feedbackCorrect:n,feedbackIncorrect:o,feedbackType:r,isCorrect:a,isShuffled:i=!1,selectedIndex:c,shuffledAnswerIndices:h}){switch(r){case"CHOICE":{if(c==null||!t)return;const d=i&&Array.isArray(h)?h.indexOf(c):c;return t[d]?.feedback}case"CORRECT_INCORRECT":return a?n:o;default:return e}}var qne=l(11253),eoe=l(68692),toe=l(51890),aV,iV,o6,cV,lV,dV,uV;const hV=(t,e,n=[])=>{const o=iV(dV("id",t),e),{parentId:r}=o||{},a=o?[o,...n]:n;return r?hV(r,e,a):a},Um="owner",r6="manager",a6="editor",i6=["viewer",a6,r6,Um],_m=({effectiveRole:t,requiredRole:e})=>{const n=o6(t,i6),o=o6(e,i6);return n>=o},mV=t=>({editor:_m({effectiveRole:t,requiredRole:a6}),manager:_m({effectiveRole:t,requiredRole:r6}),owner:_m({effectiveRole:t,requiredRole:Um})}),noe=(t,e,n)=>{const{authorId:o}=t,r=o===n,a=c=>r||c,i=pV(e);return lV(cV(["canChangePermissions","canMoveTo"]),aV({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(i)},pV=t=>{const{effectiveRole:e,type:n}=t||[],o=n!==uV?Um:e,{editor:r,manager:a,owner:i}=mV(o);return{canChangePermissions:a,canCreate:r,canDelete:i,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:i}};var fV,vV,Sl,gV,CV,xV,bV,c6,$i,yV,l6,d6,LV,EV,Il,TV,SV,u6,IV,Uu,NV,jV,h6,kV,m6,AV,RV,Ui;const wV={[ot.UQ.FILL_IN_THE_BLANK]:"fillin",[ot.UQ.MATCHING]:"matching",[ot.UQ.MULTIPLE_CHOICE]:"multiple choice",[ot.UQ.MULTIPLE_RESPONSE]:"multiple response"},_i="personal",p6="team",ooe=500,roe={id:null,deleted:!1,type:_i},aoe={id:"deleted",deleted:!0,type:_i},f6=({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},PV=t=>e=>e.type===_i||m6({effectiveRole:e.effectiveRole,requiredRole:t}),MV=({folders:t,requiredRole:e,teamAccount:n})=>Ui(t,h6,l6,$i(o=>PV(e)&&(n||o.type===_i))),ioe=({questionBanks:{folders:t,questionBanks:e},requiredRole:n=AV,teamAccount:o,term:r})=>{if(r&&EV(jV(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+kV(r)+")","i"),i=MV({folders:t,requiredRole:n,teamAccount:o}),c=u6("id",i),h=$i(m=>m.title.match(a)&&!m.deleted,i),d=$i(m=>(Il(m.folderId)||c6(m.folderId,c))&&m.title.match(a)&&!m.deleted,e);return{folders:h,questionBanks:d}},v6=(t,e,n=!1)=>Ui(e,LV(Sl(!Il(t)),IV(t),SV(h6,l6)),NV(Uu("deleted",!n))),OV=(t,e,n,o=!1)=>{const r=t===p6,a=t===_i,i=Ui(v6(p6,n),u6("id")),c=h=>!Il(h.folderId)&&c6(h.folderId,i);return Ui(e,$i(bV([[Sl(o),h=>h.deleted],[Sl(r),h=>!h.deleted&&c(h)],[Sl(a),h=>!h.deleted&&!c(h)],[Sl(Il(t)),h=>!h.deleted],[fV,d6]])))},BV=({type:t})=>t===_i,g6=({effectiveRole:t})=>m6({effectiveRole:t,requiredRole:RV}),DV=(t,e)=>({id:n})=>n?xV(gV(d6),TV(vV([Uu("folderId",n),Uu("authorId",t)])))(e):!1,HV=(t,e,n,o)=>Ui(v6(e,t),$i(CV([BV,g6,DV(o,n)]))),FV=(t,e)=>n=>{if(Il(n.folderId))return!0;const o=yV(Uu("id",n.folderId),t);if(!o)return!1;const r=g6(o),a=n.authorId===e;return r||a},VV=(t,e,n,o,r)=>Ui(OV(t,e,n),$i(FV(o,r))),coe=(t,e,n,o)=>{const r=HV(t,n,e,o),a=VV(n,e,t,r,o);return{folders:r,questionBanks:a}},{FILL_IN_THE_BLANK:Wi,MATCHING:_u,MULTIPLE_CHOICE:Wu,MULTIPLE_RESPONSE:Gu}=ot.UQ,zV={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},$V=wt()(null,[0,"type"]),Wm=Mn();class C6 extends u.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-${Ru()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.takeAgainRef=(0,u.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(Kt,this.previewOnly__forceShowFeedback),window.addEventListener(vh,this.previewOnly__clearOverrides),this.id=Ss()("kc-")}componentDidUpdate(e,n){n.answered&&!this.state.answered?this.getType()!==Wi&&Hh(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(Kt,this.previewOnly__forceShowFeedback),window.removeEventListener(vh,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",c=o.indexOf("answers"),h=o[c+1],d=c>-1&&typeof h!="string"?h.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 Wi:return this.state.fillInText;case _u:return this.state.matches;case Gu:return this.state.selectedIndices;case Wu: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:VF(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 Wi:this.wrapper?.querySelector("input")?.focus();break;case Gu:case Wu:this.wrapper?.querySelector("input")?.focus();break;case _u: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},()=>{!Wm&&this.getType()===Wi&&Hh(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&this.props.onRetryAttempt?.({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)(cs,{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:c,getL10nValue:h,labels:d,progress:m,renderQuestionTitle:p=this.renderQuestionTitle,settings:f}=this.props,{quizCorrect:v,quizIncorrect:g,quizRequireAnswer:C,quizSubmit:b,quizTakeAgain:x}=d,{id:y,type:E}=e,L=e.type!=="DRAW_FROM_QUESTION_BANK"?e.settings:{},T=h("media"in e?e.media:{}),S=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:e}),I=this.getCanSubmit({item:e}),N=f?.requireCorrectAnswer?S:!0,k=this.onSubmit.bind(this,y,I,N,e),M=this.getFeedback({item:e,isCorrect:S,selectedAnswer:a}),R=this.getSelection({item:e}),{columnBehavior:A,correctAnswerColor:B,correctAnswerColorContrast:P,incorrectAnswerColor:O,incorrectAnswerColorContrast:D}=f,$=S?B:O,H=d.knowledgeCheckCorrectAnswerRequiredBlock,F=d.knowledgeCheckRetriesAttemptsRemaining,W=d.knowledgeCheckMaxRetriesReached,de=m?.items?.[i]?.items?.[y]?.retryAttemptCount??0,fe=f?.retryCount!==0&&(f?.retryCount==null||f?.retryCount===-1||de<f?.retryCount),Se=f?.retryCount!=null||f?.retryCount===-1?f?.retryCount-de:-1,De=!S,Ie={"--color-feedback-icon":$,"--color-matching-feedback-bubble-bg":O,"--color-multiple-choice-complete-border":O,"--color-multiple-choice-correct-border":B,"--color-multiple-response-correct-border":B,"--color-multiple-response-incorrect-border":O,"--color-multiple-response-option-check":n?B:void 0,"--color-quiz-option-check":B,"--color-x-fill":O},ae=f?.revealCorrectAnswers!==!1&&(f.retryCount==null||f.retryCount===-1||!fe)?ot.iV.ALL:ot.iV.INCORRECT,Z=J()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":n,"block-knowledge__retake-container--active-attempts-left":n&&!r&&Se>0}),ve=J()("block-knowledge__retake",{"block-knowledge__retake--active":n&&!r&&fe}),we=J()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":n&&!r&&fe&&Se>0}),Me=J()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":n&&!r&&!fe}),Ae=!!T?.image,Ue=!!T?.audio,it=!!T?.video,rt=!!T?.embed;let vt=null;Ue&&Ae?vt=(0,s.jsx)(_r,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${y}-audio`,isOverlayAudio:!0,item:e,labels:d,media:T,settings:L}):Ue&&(it||rt)?vt=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_r,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${y}-audio`,item:e,labels:d,media:{audio:T.audio},settings:L}),(0,s.jsx)(_r,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${y}-video`,item:e,labels:d,media:it?{video:T.video}:{embed:T.embed},settings:L})]}):vt=(0,s.jsx)(_r,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${y}-audio`,item:e,labels:d,media:T,settings:L});const ft=J()("block-knowledge__media",{"block-knowledge__image-with-audio":Ue&&Ae});return(0,s.jsxs)(Mg,{isActive:!0,style:Ie,children:[f?.requireCorrectAnswer&&(n&&!S||!n)&&(0,s.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,s.jsx)(Je,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),H]}),p(e),(0,s.jsx)("div",{className:ft,children:vt}),(0,s.jsx)(Hg,{type:E,children:this.renderType({columnBehavior:A,correctAnswerColor:B,correctAnswerColorContrast:P,incorrectAnswerColor:O,incorrectAnswerColorContrast:D,isCorrect:S,item:e,onSubmit:k})}),(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)(Je,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:C})]})}),(0,s.jsx)(Pg,{canProceed:n,canSubmit:I,isReduceMotion:Wm,onSubmit:k,quizSubmit:b}),(0,s.jsx)(Dg,{canProceed:this.state.forceShowFeedback||n,feedbackValue:M,isActive:n,isComplete:n,isCorrect:S,item:e,labels:d,quizCorrect:v,quizIncorrect:g,revealAnswers:ae,selection:R}),(0,s.jsxs)("div",{"aria-hidden":!n,className:Z,children:[De&&(0,s.jsxs)(s.Fragment,{children:[fe?(0,s.jsx)(St.ArcButton,{className:ve,hierarchy:"secondary",icon:(0,s.jsx)(Je,{name:"arrow-rotate-left"}),onClick:this.handleRetake.bind(this,e),ref:this.takeAgainRef,size:"md",tabIndex:n?void 0:-1,text:x}):null,Se>0&&(0,s.jsxs)("div",{className:we,children:[F," ",Se]})]}),!fe&&!S&&(0,s.jsx)("div",{className:Me,children:W})]})]},y)}getIsCorrect({item:e}){const{fillInText:n,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:i}=e,c="answers"in e?e.answers:void 0,h="isCaseSensitive"in e?e.isCaseSensitive:!1;switch(i){case Wi:return Jg({answers:$m(c),text:n,caseSensitive:h,getL10nValue:this.props.getL10nValue});case _u:return qg(o);case Gu:return s6({item:{answers:c},selectedIndices:a});case Wu:default:return e6({item:{answers:c},selectedIndex:r})}}getType(){const{items:e}=this.props;return $V(e)}getCanSubmit({item:e}){const n="answers"in e?e.answers:void 0,{answered:o,fillInText:r,matches:a,selectedAnswer:i,selectedIndices:c}=this.state;return tV({type:e.type,text:r,matches:a,answersLength:n?.length??0,selectedIndices:c,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,c="feedbackType"in e?e.feedbackType:void 0,h="answers"in e?e.answers:void 0,d=this.state.forceShowFeedbackCorrect??n;return n6({answers:h,feedback:r,feedbackCorrect:a,feedbackIncorrect:i,feedbackType:c,isCorrect:d,selectedIndex:typeof o=="number"?o:null})}getTypeLabel(){const{labels:e}=this.props,n=this.getType(),o=zV[n];return o?e?.[o]:e?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(e,{title:n}){return(0,s.jsx)(cs,{className:"cursorAuto",value:n})}renderMultipleChoiceOptionText(e,{title:n}){return(0,s.jsx)(cs,{className:"quiz-multiple-choice-option__label cursorAuto",value:n})}renderType({columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:i,item:c,onSubmit:h}){const{isHidden:d,labels:m,prefersKeyboardNavigation:p,renderMultipleResponseOptionText:f=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:v=this.renderMultipleChoiceOptionText,settings:g,progress:C,blockId:b}=this.props,{answered:x,fillInText:y,isRetaking:E,matches:L,selectedAnswer:T,selectedIndices:S,shouldFocusFirst:I,questionHtmlId:N}=this.state,{id:k,type:M}=c,R="answers"in c?c.answers:[],{quizAcceptableResponses:A,quizAnswerPlaceholder:B}=m,P=C?.items?.[b]?.items?.[k]?.retryAttemptCount??0,O=g?.retryCount!==0&&(g?.retryCount==null||g?.retryCount===-1||P<g?.retryCount),$=g?.revealCorrectAnswers!==!1&&(g.retryCount==null||g.retryCount===-1||!O)?ot.iV.ALL:ot.iV.INCORRECT,H=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(M){case Wi:return(0,s.jsx)(Fg,{allowTabNavigation:!0,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:H,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:x,isCorrect:i,labels:m,onChange:this.handleFillIn,onEnterToSubmit:h,options:$m(R),questionHtmlId:N,quizAcceptableResponses:A,quizAnswerPlaceholder:B,revealAnswers:$,value:y});case _u:return(0,s.jsx)(_g,{answers:QF(M)(R),columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!d,isComplete:x,matches:L,onChange:this.handleMatchesChange,prefersKeyboardNavigation:p,revealAnswers:$});case Gu:return(0,s.jsx)(Kg,{allowTabNavigation:!0,correctIds:zm(R),errorMessageId:H,isComplete:x,isCorrect:i,isRetaking:E,labels:m,onChange:this.handleMultipleResponseChange,onEnterToSubmit:h,options:R,questionHtmlId:N,renderOptionText:f.bind(this,c),revealAnswers:$,selectedIndices:S});case Wu:default:return(0,s.jsx)(Gg,{allowTabNavigation:!0,correctId:ZF(R)||YF(R),errorMessageId:H,isComplete:x,isCorrect:i,isReduceMotion:Wm,isRetaking:E,labels:m,onChange:this.handleChoiceSelect,onEnterToSubmit:h,onFocusFirstComplete:this.resetShouldFocusFirst,options:R,questionHtmlId:N,renderOptionText:v.bind(this,c),revealAnswers:$,selectedIndex:T,shouldFocusFirst:I})}}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,variant:i}=this.props,{answered:c,isRetaking:h}=this.state,{entranceAnimation:d,knowledgeCheckWidth:m=76}=a,p=im(m),f=J()("block-knowledge",{"block-knowledge--answered":c,"block-knowledge--no-animation":!d,"block-knowledge--retake":h}),v=J()("block-knowledge__wrapper",`block-knowledge__wrapper--${i}`,{[`block-knowledge__container--custom-width-${p}`]:!0}),g=Array.isArray(r)&&r.length>0?r.slice(0,1):[];return(0,s.jsx)(It,{className:f,"data-testid":"block-kc-card",ref:C=>{this.block=C},style:this.getStyle(),children:(0,s.jsx)(Pt,{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)(_s,{"aria-label":this.getTypeLabel(),className:v,"data-testid":"block-knowledge-wrapper",ref:C=>{this.wrapper=C},children:g.map(C=>this.renderQuestion(C))})})})})})})}getStyle(){const{backgroundColor:e,settings:n}=this.props;if(n?.cardMode===Gn.TRANSPARENT)switch(n?.backgroundType){case w.xj.ACCENT:case w.xj.COLOR:case w.xj.TINT:switch((0,ut.XC)(e)){case ut.lL.LIGHT:return{"--color-background-choice-hover":(0,ut.W8)(.5,e),"--color-background-feedback-frame":(0,ut.W8)(.5,e)};case ut.lL.MED:return{"--color-background-choice-hover":(0,ut.W8)(-.3,e),"--color-background-feedback-frame":(0,ut.W8)(-.3,e)};case ut.lL.DARK:return{"--color-background-choice-hover":(0,ut.W8)(-.6,e),"--color-background-feedback-frame":(0,ut.W8)(-.6,e)};case ut.lL.NEAR_BLACK:return{"--color-background-choice-hover":(0,ut.W8)(.15,e),"--color-background-feedback-frame":(0,ut.W8)(.15,e)}}}}}const UV=t=>{const{blockId:e,items:[n]}=t,{questions:o}=n,[r,a]=(0,u.useState)(()=>f6({questions:o}));(0,u.useEffect)(()=>{if(!o)return;const c=h=>{const{path:d}=h.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(Kt,c),()=>window.removeEventListener(Kt,c)},[e,r,o]);const i=(0,u.useMemo)(()=>r?{variant:wV[r.type],items:[r]}:{},[r]);return r?(0,s.jsx)(C6,{...t,...i}):(0,s.jsx)("div",{})},_V=t=>t.variant==="draw from question bank",Gi=t=>{const e=kn()??"",n=on(),o=In(),r={...t,backgroundColor:e,getL10nValue:o,blockSettings:n};return _V(r)?(0,s.jsx)(UV,{...r}):(0,s.jsx)(C6,{...r})};var WV=l(61812),GV=l.n(WV);class KV extends u.Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(e){super(e),this.state={hasOverflow:!1},this.refWrap=(0,u.createRef)(),this.refBubbleTitle=(0,u.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=Pr()}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.onTranscriptUpdate?.({audioPlayerId:Lo({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:c,x:h,y:d}=this.props,m=J()("bubble",{"bubble--active":a}),p=ZV({x:h,y:d}),f=YV({hasOverflow:this.state.hasOverflow,x:h,y:d}),v={borderBottomColor:e},g=`${r}-title`,C=()=>{if(!i)return(0,s.jsx)(bt,{allowTabNavigation:a,className:"bubble__description",value:o});const x=this.props.getL10nValue(i)??{},y=Eo(x,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},L={audio:{media:y.audioOnlyMedia||x,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:y.imageOnlyMedia||x,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:y.videoOnlyMedia||x,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:y.embedOnlyMedia||x,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:x,isOverlayAudio:!0,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-overlay`}};return(0,s.jsx)(s.Fragment,{children:y.renderOrder.map((T,S)=>{if(T==="text")return(0,s.jsx)(bt,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${S}`);const I=L[T];return!I||T==="embed"&&!a?null:(0,s.jsx)("div",{className:"bubble__media",children:(0,s.jsx)("div",{className:"bubble__figure",children:(0,s.jsx)("div",{className:J()({"labeled-graphic-bubble-media-container--audio-bottom":T==="audio"&&this.props.audioPosition==="bottom"}),children:(0,s.jsx)(Ys,{...E,...I})})})},`${T}-${S}`)})})},b=(0,s.jsx)("div",{className:m,ref:this.refWrap,style:p,children:(0,s.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":g,"aria-modal":"false",className:f,id:r,onKeyDown:this.handleKeyDown,style:v,children:[(0,s.jsx)("h2",{className:"bubble__title",id:g,ref:this.refBubbleTitle,tabIndex:-1,children:(0,s.jsx)(vs,{value:c})}),(0,s.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,s.jsx)(Y4,{className:"bubble__close-icon"})}),(0,s.jsx)("div",{className:"bubble__content",ref:x=>{this.contentRef=x},children:C()}),n&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,go.createPortal)((0,s.jsx)(k3,{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=wu()(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=>{gn(e)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(e){const{allowNav:n,onNextClick:o,onPreviousClick:r}=this.props,a=KE(this.contentRef,this.state.hasOverflow),i=GV()(is()(n));Wn()([[i(Hr),r],[i(Fr),o],[_E,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 J()({"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 QV=Jt(KV),ZV=({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},YV=({hasOverflow:t,x:e,y:n})=>{const o=e<50;let r="top";return n>33&&(r=n>66?"bottom":"middle"),J()("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 XV=l(26372);const JV=t=>new URL(t).pathname.slice(1)+new URL(t).search;class qV extends XV.Component{imageEl;constructor(e){super(e),this.state={style:{}}}render(){const{canvasClassNames:e,children:n,cornerRadius:o,editable:r,editingDisabled:a,getL10nValue:i,imageLoaded:c,media:h,onCreateMarker:d,onShowAltDialog:m}=this.props,{style:p}=this.state,f=i(h)?.image??{},{alt:v,dimensions:g,key:C,src:b}=f,x=!!f.alt,y=(0,Fe.Ll)(v),E=(0,Fe.Zd)(f),L=J()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":r&&!a,"labeled-graphic-canvas__figure--editing-disabled":r&&a});let T;C?T=(0,Dt.ME)(f):b&&(T=(0,Dt.ME)({key:JV(b),...f}));const S=J()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":(0,Fe.sg)(T)}),I={...p,...o!=null&&{"--corner-radius":`${Number(o)}px`}},N=(0,s.jsx)(Rn,{alt:y,className:S,"data-l10n-id":Xt(h),height:g?.height||g?.originalHeight,onClick:d,onLoad:()=>this.setState({style:E}),ref:k=>{this.imageEl=k},src:T,style:I,width:g?.width||g?.originalWidth});return(0,s.jsx)("div",{className:e||"labeled-graphic-canvas",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,s.jsxs)("figure",{className:L,children:[x&&r&&(0,s.jsx)(St.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"})})}),c&&N,(0,s.jsx)("ol",{role:"list",children:n})]})})})})}}const ez=Jt(qV),tz={"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"},sz=(t,e)=>{const n=tz[e];return n?.startsWith("a11y")?t?.[n]||"":n||""};var nz=l(26372);const x6=K("labeled-graphic-marker");class oz extends nz.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:c,isVisible:h,labels:d,markerColor:m,markerColorContrast:p,onFocus:f,styles:v,useLocalStateForCompletion:g}=this.props,C=this.props.getL10nValue(this.props.title),b=sz(d,o),x=g?this.state.isComplete:a,y=!!m,E=(0,ut.cP)(m)?w.Em.LIGHT:w.Em.DARK,T=$s({backgroundColor:m,contrast:p??E}),S=y?m:"#ffffff",I=y?T:e,N=this.buildMarkerLabel({icon:b,label:d&&d.a11yLabeledGraphicButtonMarker||"",title:C,viewed:x}),k=x6({active:c,dragged:this.state.isDragged,visible:h,complete:x}),M={...v,"--color-lg-accent":S,"--color-lg-font":I},R=x6("pin",{selected:c,disabled:i});return(0,s.jsx)("button",{"aria-controls":n,"aria-expanded":r,"aria-label":N,className:k,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:A=>{this.marker=A},style:M,type:"button",children:(0,s.jsx)("span",{className:R,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}},c=new CustomEvent(a,i);document.dispatchEvent(c),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 rz=Jt(oz);class az extends u.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:c,getL10nValue:h,imageLoaded:d=!0,isBlock:m,isLearner:p,isLessonBlocksList:f,isPreview:v,initiallyVisible:g,items:C,labels:b,lessonId:x,media:y,onItemClear:E,onItemHint:L,onItemSelected:T,onNextClick:S,onPreviousClick:I,onShowAltDialog:N,parentId:k,progress:M,selected:R,settings:A={},showBubbles:B,enableVideoPlaybackSpeed:P}=this.props,{cornerRadius:O,markerColor:D,markerColorContrast:$}=A,{showMarkers:H}=this.state,W=D||(e||r),de=J()("map-item",{"map-item--animated":!c}),fe=n?"fadeIn":"none",Se=n?1:0,De=C.length>1;return(0,s.jsx)(u.Fragment,{children:(0,s.jsx)(Pt,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!v,animateIn:fe,duration:v?0:Se,initiallyVisible:g,isLearner:p,children:(0,s.jsx)(ez,{canvasClassNames:a,cornerRadius:O,editable:c,editingDisabled:i,imageLoaded:d,media:y,onCreateMarker:this.createMarker,onShowAltDialog:N,ref:Ie=>{this.canvas=Ie},children:C.map((Ie,Ne)=>{const{description:ae,id:Z,icon:ve,media:we,title:Me}=Ie,Ae=h(Ie.x),Ue=h(Ie.y),it={top:Ue+"%",left:Ae+"%"},rt=js()(["items",Z,"isComplete"],M),vt=R===Z,ft=`bubble-${o}-${Z}`;return(0,s.jsxs)("li",{className:de,role:"listitem",children:[(0,s.jsx)(rz,{accentColor:W,ariaControls:ft,editable:c,icon:ve,isActive:R===Z,isComplete:rt,isLessonBlocksList:f,isSelected:vt,isVisible:H,itemId:Z,labels:b,markerColor:D,markerColorContrast:$,onClick:()=>{T(Z)},onFocus:this.onMarkerFocus(Z),onHover:()=>{L()},onLeave:()=>{E()},onSetPosition:this.onSetPosition.bind(this,Ie),parentId:k,ref:ts=>{this.markerRefs[Z]=ts},styles:it,title:Me,useLocalStateForCompletion:m},Z),!c&&B&&(0,s.jsx)(QV,{accentColor:W,allowNav:De,audioPosition:A.audioPosition,blockId:o,description:ae,enableVideoPlaybackSpeed:P,htmlId:ft,index:Ne,isActive:vt,item:Ie,labels:b,lessonId:x,media:we,mediaOpts:{disableZoom:!A.zoomOnClick},onClose:this.onBubbleClose(Z),onNextClick:()=>{S(Ne)},onPreviousClick:()=>{I(Ne)},title:Me,x:Number(Ae),y:Number(Ue)},ft)]},Z)})})})})}createMarker(e){const{disableCreateMarker:n,editable:o,onCreateMarker:r}=this.props;if(!o||n)return;const{x:a,y:i}=this.findItemCoordinates({e}),c=this.props.items.length,d={description:"",hasMedia:!1,icon:"01",id:Ru()(),isActive:!1,title:"",x:String(a),y:String(i)};r({index:c,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:c,items:h}=a,{x:d,y:m}=this.findItemCoordinates({e:n,offsetX:o,offsetY:r}),p={x:String(d),y:String(m)};(0,Zt.uW)(e.x)&&(0,Zt.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:c,items:h,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}),c=this.findItemCoordinate({clientPos:e.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:i,y:c}}findItemCoordinate({clientPos:e,clientOffset:n,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const i=a/r*100,c=100-i;let h=(e+n-o)/r*100;return h>c?h=c:h<i&&(h=i),h}afterAnimatedIn(){const{isBlock:e}=this.props;e&&this.setState({showMarkers:!0})}}const iz=Jt(az);var cz=l(26372);const b6="page-wrap--noscroll";class lz extends cz.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(Kt,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(Kt,this.handleNavEvent)}render(){const{imageLoaded:e}=this.state,{initiallyVisible:n,isLessonBlocksList:o,isPreview:r,items:a,labels:i,parentId:c,settings:h={}}=this.props,{mediaWidth:d="2"}=h,m=r?a[0].id:this.state.selectedItemId,p=J()("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)(iz,{...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:c,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,Dt.ME)(e):o;a.src=i,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return J()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(e){const{blockId:n,items:o}=this.props,r=Gt()("id",o[Fo()(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=Gt()("id",o[wh()(e)]||o[wh()(us()(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),Xe()(a,Ks()(c=>c.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(b6)}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(b6)}document.getElementById(`bubble-${e}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const dz=Jt(lz),uz=t=>{const{blockId:e,progress:n,isLessonBlocksList:o=!1}=t,r=js()(["items",e],n);return(0,s.jsx)(It,{className:"block-labeled-graphic",children:(0,s.jsx)(dz,{...t,editable:!1,isBlock:!0,isLessonBlocksList:o,parentId:e,progress:r})})},Ot=K("block-survey"),hz=[{value:"bad",label:"Bad",icon:"face-frown"},{value:"fair",label:"Fair",icon:"face-smile"},{value:"great",label:"Great",icon:"face-laugh"}],y6={bad:1,fair:2,great:3},L6={1:"bad",2:"fair",3:"great"},Gm=t=>!t||t.trim()==="",mz=(t,e,n)=>{const o=n?.items?.[t]?.items??{};let r={};return e.forEach(a=>{let i=o?.[a.id]?.response;i!=null&&(a?.questionType==="RATING"&&(i=L6[i]),r=Object.assign({},r,{[a.id]:i}))}),r},pz=(t,e)=>e?.items?.[t]?.isSubmitted??!1;function fz({animateBlockEntrance:t,blockId:e,initiallyVisible:n,isLearner:o,items:r=[],onSurveySubmitted:a=Zs.lQ,onSurveyPartialResponse:i=Zs.lQ,lessonId:c,onStep:h,onSubmit:d,progress:m,settings:p={},title:f}){const[v,g]=(0,u.useState)(()=>mz(e,r,m)),[C,b]=(0,u.useState)(()=>pz(e,m)),[x,y]=(0,u.useState)(!1),[E]=(0,u.useState)(()=>r.map(()=>Ss()("survey-q-"))),[L,T]=(0,u.useState)(!1),[S,I]=(0,u.useState)(new Set),N=(0,u.useRef)(null),k=(0,u.useRef)(null),{announcePolite:M}=xt(),R=(0,Te.A)(C),A=p.cardMode==="TRANSPARENT",B=(0,u.useCallback)((H,F)=>{g(de=>({...de,[H]:F}));const W=y6[F];i({itemId:H,response:W}),S.has(H)&&(I(fe=>{const Se=new Set(fe);return Se.delete(H),Se}),r.find(fe=>fe.id===H)&&r.filter(Se=>Se.isRequired&&Se.id!==H&&Gm(v[Se.id])).length===0&&T(!1))},[S,r,i,v]),P=(0,u.useCallback)((H,F,W)=>{if(W&&F.length>W)return;const de=v[H]||"",fe=W&&F.length===W&&de.length<W;g(Se=>({...Se,[H]:F})),i({itemId:H,response:F}),fe&&M(`Character limit reached. ${W} characters maximum.`),S.has(H)&&F.trim()!==""&&(I(De=>{const Ie=new Set(De);return Ie.delete(H),Ie}),r.filter(De=>De.isRequired&&De.id!==H&&Gm(v[De.id])).length===0&&T(!1))},[M,r,i,v,S]),O=(0,u.useCallback)(async()=>{if(!e||!c){console.error("Missing blockId or lessonId");return}y(!0);try{const H=r.map(F=>{const W=v[F.id]||"",de={id:String(e),lessonId:String(c),itemId:F.id,questionTitle:String(F.question),surveyTitle:String(f||""),isUnfinished:!1};return F.questionType==="RATING"?{...de,ratingOptions:L6,type:F.questionType,response:y6[W]}:{...de,type:F.questionType,response:W}});window.Runtime?.reportUngradedAnswers&&await window.Runtime.reportUngradedAnswers(H),r.forEach(F=>h?.({id:F.id})),d?.(v),b(!0),a()}catch(H){console.error("Failed to submit survey:",H)}finally{y(!1)}},[e,c,r,v,h,d,f,a]),D=(0,u.useCallback)(H=>{if(H.preventDefault(),x)return;const W=r.filter(de=>de.isRequired).filter(de=>Gm(v[de.id]));if(W.length>0){T(!0),I(new Set(W.map(de=>de.id))),M("Please answer all required questions to continue"),k.current&&k.current.focus();return}O()},[x,O,r,v,M]);(0,u.useEffect)(()=>{x&&M("Submitting survey responses.")},[x,M]),(0,u.useEffect)(()=>{!R&&C&&(M("Thanks! Your responses were sent."),N.current&&N.current.focus())},[C,R,M]);const $=(H,F)=>{const W=v[H.id]||"",de=E[F],fe=`${de}-char-count`,Se=`${de}-error`,De=S.has(H.id),Ie=De&&F===r.findIndex(ve=>S.has(ve.id));if(H.questionType==="RATING"){const ve=J()(Ot("question"),{[Ot("question--error")]:De}),we=J()(Ot("rating-options"),{[Ot("rating-options--error")]:De}),Me=De?Se:void 0;return(0,s.jsxs)("fieldset",{"aria-describedby":Me,"aria-invalid":De?!0:void 0,"aria-required":H.isRequired?!0:void 0,className:ve,ref:Ie?k:void 0,children:[(0,s.jsxs)("legend",{className:Ot("question-text"),children:[String(H.question),H.isRequired&&(0,s.jsxs)("span",{className:Ot("required-indicator"),children:[" ",(0,s.jsx)(St.ArcIcon,{icon:"fa-solid fa-asterisk"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Required"})]})]}),(0,s.jsx)("div",{className:we,children:hz.map(Ae=>{const Ue=W===Ae.value,it=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{"aria-label":Ae.label,checked:Ue,className:Ot("rating-input"),name:`survey-${H.id}`,onChange:()=>B(H.id,Ae.value),type:"radio",value:Ae.value}),(0,s.jsx)(Je,{"aria-hidden":"true",className:Ot("rating-icon"),name:Ae.icon}),(0,s.jsx)("span",{"aria-hidden":"true",className:Ot("rating-label"),children:Ae.label})]}),rt=J()(Ot("rating-option"),{[Ot("rating-option--selected")]:Ue,[Ot("rating-option--error")]:De});return A?(0,s.jsx)(_s,{cardMode:"WHITE",className:rt,tag:"label",children:it},Ae.value):(0,s.jsx)("label",{className:rt,children:it},Ae.value)})}),De&&(0,s.jsxs)("div",{className:Ot("error-message"),id:Se,children:[(0,s.jsx)(Je,{"aria-hidden":"true",name:"alert-circle"})," Required"]})]},H.id)}if(H.questionType==="LINEAR_SCALE")return null;const Ne=J()(Ot("question"),{[Ot("question--error")]:De}),ae=J()(Ot("text-input"),{[Ot("text-input--error")]:De}),Z=[H.maxLength?fe:null,De?Se:null].filter(Boolean).join(" ")||void 0;return(0,s.jsxs)("div",{className:Ne,children:[(0,s.jsxs)("label",{className:Ot("question-text"),htmlFor:de,children:[String(H.question),H.isRequired&&(0,s.jsxs)("span",{className:Ot("required-indicator"),children:[" ",(0,s.jsx)(St.ArcIcon,{icon:"fa-solid fa-asterisk"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Required"})]})]}),(0,s.jsxs)("div",{className:Ot("text-response"),children:[(0,s.jsx)("textarea",{"aria-describedby":Z,"aria-invalid":De?!0:void 0,"aria-required":H.isRequired?!0:void 0,className:ae,id:de,maxLength:H.maxLength,onChange:ve=>P(H.id,ve.target.value,H.maxLength),placeholder:"Share your thoughts",ref:Ie?k:void 0,rows:H.questionType==="LONG_RESPONSE"?4:2,value:W}),H.maxLength&&(0,s.jsxs)("div",{className:Ot("character-count"),children:[(0,s.jsxs)("span",{"aria-hidden":"true",children:[W.length," / ",H.maxLength]}),(0,s.jsxs)("span",{className:"visually-hidden-always",id:fe,children:["Character count: ",W.length," of ",H.maxLength]})]})]}),De&&(0,s.jsxs)("div",{className:Ot("error-message"),id:Se,children:[(0,s.jsx)(Je,{name:"alert-circle"})," Required"]})]},H.id)};return(0,s.jsx)(Rh,{...p,children:(0,s.jsx)(It,{className:Ot(),children:(0,s.jsx)(Pt,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{children:(0,s.jsx)(_s,{className:Ot("container"),children:C?(0,s.jsx)("div",{className:Ot("confirmation"),ref:N,tabIndex:-1,children:(0,s.jsxs)("p",{className:Ot("confirmation-text"),children:[(0,s.jsx)(St.ArcIcon,{icon:"fa-regular fa-circle-check"})," Thanks! Your responses were sent."]})}):(0,s.jsxs)("form",{noValidate:!0,onSubmit:D,children:[f&&(0,s.jsx)("h2",{className:Ot("title"),children:String(f)}),(0,s.jsx)("div",{className:Ot("questions"),children:r.map((H,F)=>$(H,F))}),(0,s.jsxs)("div",{className:Ot("actions"),children:[L&&(0,s.jsxs)("div",{className:Ot("validation-error"),role:"alert",children:[(0,s.jsx)(Je,{"aria-hidden":"true",name:"alert-circle"})," Please answer all required questions to continue."]}),(0,s.jsx)("div",{className:`${Ot("submit")} brand--ui`,children:(0,s.jsx)("button",{"aria-busy":x,className:Ot("submit-button"),"data-testid":"survey-submit-button",disabled:x,type:"submit",children:x?"Submitting...":"Submit"})})]})]})})})})})})}const Km=K("block-process-card"),E6=({icon:t,isOverlayAudio:e=!1,onClick:n,text:o,variant:r})=>{const a=`${r}-btn`;return(0,s.jsxs)("button",{className:Km(a,{"audio-overlay":e}),onClick:n,type:"button",children:[(0,s.jsx)("span",{className:Km(`${a}-text`),children:o}),(0,s.jsx)(Je,{classNameIcon:Km(`${a}-icon`),name:t})]})},vz=K("block-process-card"),gz=({activeIndex:t,enableVideoPlaybackSpeed:e,id:n,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:i,labels:c,lessonId:h,media:d,onMediaLoad:m,settingZoomOnClick:p})=>{const{image:f}=d??{},v=a?f?.align??"center":"center",g=vz("media",{legacy:!1,"audio-overlay":a,[`audio-overlay-${v}`]:a,"intro-step":r}),C=t===o;return(0,s.jsx)("div",{className:g,children:(0,s.jsx)(Ys,{activeIndex:t,blockId:n,defaultAlign:"center",enableVideoPlaybackSpeed:e,hasPadding:!1,index:`${n}-${o}`,isOverlayAudio:a,item:i,itemIndex:o,labels:c,lessonId:h,media:d,onLoad:m,opts:{disableZoom:!p},shouldPause:!C})})};var Qm=l(26372);const Wr=K("block-process-card"),Cz=({text:t})=>{const e=Qm.useRef(null),{isInView:n}=xz({ref:e,threshold:.75});return(0,s.jsxs)("div",{className:Wr("swipe-badge",{animate:n}),ref:e,children:[(0,s.jsx)("span",{className:Wr("swipe-badge-text"),children:t}),(0,s.jsx)(Je,{className:Wr("swipe-badge-icon"),name:"chevron-right-solid"})]})};function xz({ref:t,rootMargin:e="0px",threshold:n=.1}){const[o,r]=Qm.useState(!1);return Qm.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 bz=({activeIndex:t,className:e,description:n,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:i,item:c,labels:h,lessonId:d,media:m,onClickRestart:p,onClickStart:f,settingAudioPosition:v,settingHeadingLevel:g=2,settingShowStepLabel:C=!0,settingStepLabel:b,settingZoomOnClick:x,showSwipeBadge:y,style:E,title:L,totalSteps:T,type:S})=>{const I=`h${g}`,N=S==="intro",k=S==="summary",M=S==="step",R=r?i:i+1,A=Rt(b)||h.processStepName,B=Rt(Array.isArray(m)?{}:m),P=Eo(B,v,!0,"process"),O=()=>{if(!m)return null;const D={activeIndex:t,blockId:a,enableVideoPlaybackSpeed:o,id:a,index:i,isIntroStep:N,labels:h,lessonId:d,media:m,onMediaLoad:()=>{},settingZoomOnClick:x,item:c},$={audio:{media:P.audioOnlyMedia||B,isOverlayAudio:!1},image:{media:P.imageOnlyMedia||B,isOverlayAudio:!1},video:{media:P.videoOnlyMedia||B},embed:{media:P.embedOnlyMedia||B,isOverlayAudio:!1},overlay:{media:B,isOverlayAudio:!1}};return P.renderOrder.map((H,F)=>{if(H==="text")return(0,s.jsx)(bt,{className:Wr("description"),value:n},`text-${F}`);const W=$[H];return W?(0,s.jsx)(gz,{...D,...W},`${H}-${F}`):null})};return(0,s.jsxs)("div",{className:Wr(null,{[S]:!0}).mix(e),style:E,children:[M&&C&&(0,s.jsx)("div",{className:Wr("number"),children:`${A} ${R}`}),(0,s.jsx)("div",{className:Wr("title"),children:(0,s.jsx)(I,{children:(0,s.jsx)(bt,{value:L})})}),O(),!m&&(0,s.jsx)(bt,{className:Wr("description"),value:n}),N&&T>1&&(0,s.jsx)(E6,{icon:"chevron-right-solid",isOverlayAudio:P.isOverlayAudio,onClick:f,text:h.processStart,variant:"start"}),k&&T>1&&(0,s.jsx)(E6,{icon:"arrow-rotate-left",isOverlayAudio:P.isOverlayAudio,onClick:p,text:h.processStartAgain,variant:"restart"}),y&&M&&(0,s.jsx)(Cz,{text:h.processSwipe})]})};var er=l(26372);const yz=K("block-process-carousel"),T6=t=>t?.type==="intro",Zm=t=>t?.type==="summary",Ym=t=>t?.type==="step",S6=t=>t?.isHidden,Lz=({animateBlockEntrance:t,enableVideoPlaybackSpeed:e,id:n,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:c,onStep:h,onTranscriptUpdate:d,previewType:m,processRef:p,settings:{audioPosition:f,headingLevel:v,stepLabel:g,showStepLabel:C,zoomOnClick:b}})=>{const x=ks(480),y=vn(),E=In(),L=er.useRef(null),[T,S]=er.useState(0),[I,N]=er.useState(!1),k=er.useMemo(()=>m===et.o4.MOBILE_PORTRAIT||m===et.o4.MOBILE_LANDSCAPE,[m]),M=er.useMemo(()=>{const W=a.filter(De=>!S6(De)),de=W.find(T6),fe=W.find(Zm),Se=W.filter(Ym);return[de,...Se,fe].filter(Boolean)},[a]),R=er.useMemo(()=>M.findIndex((W,de)=>Ym(W)&&(Ym(M[de+1])||Zm(M[de+1]))),[M]),A=T6(M[0]),B=Zm(M[M.length-1]),P=!!m;er.useEffect(()=>{h&&(a.forEach(W=>S6(W)&&h(W)),M.length>0&&h(M[0]))},[]);const O=er.useCallback(()=>{L.current?.navigateToSlide?.(0)},[]),D=er.useCallback(()=>{L.current?.navigateToSlide?.(1)},[]),$=er.useCallback(W=>{S(W);const de=p.current;P||de?.scrollIntoView({behavior:"smooth",block:"start"}),W!==R&&!I&&N(!0),h?.(M[W]);const fe=M[W]?.media;E(fe)?.audio&&d?.({audioPlayerId:Lo({refs:`items:${n}/items:${M[W]?.id}`}),transcriptMedia:fe})},[M,R,E,I,n,P,h,d,p]),H=({index:W,isActive:de,onClick:fe,onKeyDown:Se})=>{const De=A&&W===0,Ie=B&&W===M.length-1,Ne=A?W:W+1;let ae,Z;De?(ae=i?.a11yBlockProcessSlideControlsIntroduction,Z=(0,s.jsx)(Je,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):Ie?(ae=i?.a11yBlockProcessSlideControlsSummary,Z=(0,s.jsx)(Je,{name:"check-regular"})):(ae=Ne.toString(),Z=Ne.toString());const ve=`${i?.a11yBlockProcessSlideControlsGoToSlide} ${ae}`;return(0,s.jsx)(cg,{"aria-label":ve,ariaLabel:ve,className:"carousel-controls-item-btn",isActive:de,onClick:fe,onKeyDown:Se,children:Z},W)},F=t?"fadeIn":"none";return(0,s.jsx)(Pt,{animateBlockEntrance:P,animateIn:F,duration:P&&t?1:0,initiallyVisible:o,isLearner:r,children:(0,s.jsx)("div",{className:yz(),children:(0,s.jsx)(ku,{blockId:n,carouselRef:L,items:M,children:()=>(0,s.jsx)(Nu,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:y,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:$,ref:L,renderSlideIndicator:H,shouldMouseEmulateTouch:k,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:M.map((W,de)=>(0,s.jsx)(_s,{activeIndex:T,description:W.description,enableVideoPlaybackSpeed:e,hasIntro:A,id:n,index:de,isHidden:W.isHidden,item:W,labels:i,lessonId:c,media:W.media,onClickRestart:O,onClickStart:D,settingAudioPosition:f,settingHeadingLevel:v,settingShowStepLabel:C,settingStepLabel:g,settingZoomOnClick:b,showSwipeBadge:x&&!I&&de===R,tag:bz,title:W.title,totalSteps:M.length,type:W.type},W.id))})})})})};var Ez=l(26372);const Tz=t=>{const{blockId:e}=t,n=Ez.useRef(null);return(0,s.jsx)(It,{className:"block-process",ref:n,children:(0,s.jsx)(Lz,{id:e,processRef:n,...t})})};var Sz=l(33670),Iz=l.n(Sz),Nz=l(74469),I6=l.n(Nz),jz=l(33182),yr=l.n(jz),kz=l(60165),N6=l.n(kz),Az=l(76065),Rz=l.n(Az),wz=l(29894),Gr=l.n(wz);const j6=t=>({...t.responses[t.response],hasCharacter:t.hasCharacter,type:"response"}),Pz=(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}},Mz=t=>[j6(t)],Oz=t=>{const e=!!t.responses[t.response],n=j6(t),o=Pz(t,n);return e?[n,o]:[o]},Bz=t=>t.hasFeedback?[t,...Oz(t)]:t.response!=null?[t,...Mz(t)]:[t],Dz=(t,e)=>{if(!e)return;const{scene:n,slide:o}=e,r=t.findIndex(c=>c.id===n),i=(t[r]?.slides||[]).findIndex(c=>c.id===o);return{scene:r,slide:i}},k6=va()(Dz);var Hz=l(53994),Fz=l.n(Hz);const Vz=Ps()(Gt()("filters"),Js()(Bt()("name","rise_emotion")),nu()(xs())),zz=Ps()(Gt()("filters"),Ks()(Bt()("name","rise_emotion")),Gt()("value")),A6=t=>new URL(t).pathname.slice(1),$z=t=>Ps()(bo()("key",A6(t.src)),bo()("thumbnailKey",A6(t.thumbnail)))(t),Uz=Ps()(Gt()("poses"),Js()(Vz),vr()(t=>[zz(t),t]),Fz(),Ta()($z));var tr=l(26372);const Xm=t=>t===-1?null:t,R6=t=>yi()(rn(),Ra(),t),Ku=nu()(xs()),w6=nu()(rn()),Ki=gu()(w6,Ku),P6=Iz()(du()),M6=_e.BI?R6(Dt.dE):R6(Dt.bX),Jm=t=>Sn()(t);class _z extends tr.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=tr.createRef();responseItemRef=tr.createRef();scenarioRef=tr.createRef();blockContentRef=tr.createRef();endRef=tr.createRef();textRef=tr.createRef();refs=tr.createRef();dynamicRefs=tr.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")},c=new IntersectionObserver(i,{root:e,threshold:[0,1]}),h=()=>{};this.fadeObservers.set(e,{observer:c,scrollHandler:h}),c.observe(o)}componentDidMount(){const{initialState:e,items:n}=this.props,o=Xe()(nh()("poses"),Un()({},"character"),Jm);Ki(n)&&!o(n)&&this.fetchCharacters(),e||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(Kt,this.handleNavEvent)}handleNavEvent(e){const{path:n}=e.detail,{blockId:o,sceneId:r,slideId:a,responseId:i}=mi(n,["block","scene"]),c=n.at(-1)==="feedback";if(o!==this.props.blockId)return;const h=Xm(this.props.items.findIndex(p=>p.id===r)),d=h!==null?Xm(this.props.items[h].slides.findIndex(p=>p.id===a)):null,m=d!==null?Xm(this.props.items[h].slides[d].responses.findIndex(p=>p.id===i)):null;this.setState({activeScene:h??0,activeSlide:d??0},()=>{h!==null&&d!==null&&this.setState({slides:{...this.state.slides,[`${h}.${d}`]:{...this.state.slides[`${h}.${d}`],hasFeedback:c,response:m}}})})}componentDidUpdate(){const{items:e,onStep:n}=this.props,{activeScene:o,activeSlide:r}=this.state,a=wt()([],[o,"slides"],e),i=wt()(null,[r,"goTo"],a),c=wt()(null,[r,"type"],a);if(n&&(i==="end"&&c==="text"||!i&&!c)&&N6()(n,e),this.shouldFocus){this.shouldFocus=!1;const p=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');p?p.focus():Hh(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(Kt,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,c=r[n],h=`${e}.${n}`,d=[h,"response"],m=[h,"hasFeedback"],p=wt()(null,d,this.state.slides),f=wt()(!1,m,this.state.slides),v=Un()("neutral","emotion",c),g=yi()(is()(f),wt()(v,["responses",p,"emotion"]),is()(v)),C=Ps()(wt()(i?.poses?.neutral,["poses",g(c)]),M6);return{name:i?.name||"",pose:C(i)}}fetchCharacters(){const{getCharacter:e,items:n,onItemUpdate:o}=this.props,r=Vo()(["id","name","poses","src"]),a=c=>h=>o({itemId:c,payload:{character:h}}),i=({character:c,id:h})=>Ki(c)&&e(c.id).then(d=>bo()("poses",Uz(d),d)).then(r).then(a(h));n.map(i)}isCharacterHidden(){const{items:e}=this.props,{activeScene:n,activeSlide:o}=this.state,a=this.getActiveScene()?.slides?.[o],i=o===null,c=e[n];return i?!(c?.slidesHaveCharacterByDefault??!1):a&&!a.hasCharacter}getCharacterPose(){const{items:e}=this.props,{activeScene:n,activeSlide:o,prevScene:r,prevSlide:a}=this.state,i=wt()([],[n,"slides"],e),c=wt()(!0,[o,"hasCharacter"],i);return w6(r)&&ho()(c)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(n,o)}onClick(e,n){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:i}=this.state,c=this.getActiveScene()?.slides,h=Un()(null,"type",c?.[i])==="dialogue",d=a===o.length-1,m=i===(c?.length??0)-1,p={activeSlide:i+1},f={activeScene:a+1,activeSlide:0},v={activeSlide:null},g={activeScene:0,activeSlide:0},C=Ps()(k6(o),L=>({activeScene:L.scene,activeSlide:L.slide})),b=Wn()([[is()(m&&d),is()(v)],[is()(m&&!d),is()(f)],[ml(),is()(p)]]),x=yi()(is()(h),is()(v),is()(g)),y=Wn()([[yr()("slide"),Gr()(C,[n])],[yr()("next"),b],[yr()("end"),x]]),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&&N6()(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:c,blockId:h}=this.props,d=`${o}.${r}`,m=bo()("response",e),p=bo()("hasFeedback",!0),f=ol()({[`${d}`]:m}),v=ol()({[`${d}`]:p});n.media&&i(n.media)?.audio&&at.playerId===`audio-${c}-${h}`&&at.pause();const C=Xe()(v,f);this.setState({slides:f(a)},()=>{this.shouldFocus=!0,this.setState({slides:C(a)})})}onTryAgainClick(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=`${e}.${n}`,a=I6()({hasFeedback:null,response:null}),i=ol()({[`${r}`]:a});this.setState({slides:i(o)})}render(){const{blockId:e,getL10nValue:n,isPDF:o,items:r,labels:a}=this.props,{activeScene:i,activeSlide:c,initiated:h}=this.state,m=this.getActiveScene()?.slides?.[c],p=Xe()(Ku,Un()({},"character"),Jm),f=Xe()(nh()("poses"),Un()({},"character"),Jm),v=Xe()(xr(),wt()({},["character","poses"])),g=Xe()(tm(),xr(),vr()(v)),C=this.isCharacterHidden(),b=J()("scenario-block",{"scenario-block--initiated":h,"scenario-block--mobile":jn.isMobile,"scenario-block--loading":p(r)&&!f(r),"scenario-block--character-hidden":C}),x=`scenario-live-${e}`,y={"aria-label":a?.a11yGroupScenario,"aria-describedby":x,className:b,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:void 0},E=(0,Dt.ME)(n(r?.[0].background?.media)?.image),L=Wn()([[rn(),this.renderEnd],[Bt()("type","dialogue"),this.renderDialogues],[Bt()("type","text"),this.renderText],[ml(),is()(null)]]),T=J()("scenario-block__character",{"scenario-block__character--hidden":C}),S=`${i}.${c}`,I=this.state.slides[S],N=I?.hasFeedback?m?.responses?.[I?.response]?.alt:m?.alt,k=n(N);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{...y,"data-l10n-id":Xt(N),children:[(0,s.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:x,children:k}),(0,s.jsx)("div",{className:"scenario-block__spinner"}),(0,s.jsx)("div",{className:"scenario-block__background-wrapper",children:Ki(r)&&r.map(this.renderBackground)}),E&&(0,s.jsx)(Rn,{alt:"",onLoad:this.onInit,src:E}),(0,s.jsxs)("div",{className:"scenario-block__inner",children:[(0,s.jsx)("div",{className:T,children:f(r)&&g(r).map(this.renderPose)}),(0,s.jsx)(ys.F,{children:Ki(r)&&L(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,c=J()("scenario-block__background",{"scenario-block__background--active":o===n,"scenario-block__background--blur":a??!0}),h=(0,Dt.ME)(i);return h?(0,s.jsx)(Rn,{alt:"",className:c,src:h},r):(0,s.jsx)(s.Fragment,{})}renderButton(e){const{labels:n}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=n,{goTo:a,nextSlide:i}=e,c="action"in e?e.action:void 0,h={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},d=c==="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:c==="tryAgain"?Xe()(this.onFocus,this.onTryAgainClick):Xe()(this.onFocus,Gr()(this.onClick,[a,i]))};return(0,s.jsx)(ys.F,{children:(0,s.jsx)(ys.B1,{...h,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,c=(p,f)=>(0,s.jsxs)("span",{children:[p," ",(0,s.jsx)(v9,{})," ",f]},p),h=Ps()(k6(n),p=>`Scene ${p.scene+1} Slide ${p.slide+1}`),d=(p,{goTo:f,nextSlide:v})=>Wn()([[yr()("next"),Gr()(c,[p,"Next Slide"])],[yr()("end"),Gr()(c,[p,"End of Scenario"])],[ml(),Gr()(c,[p,h(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,c="type"in n?n.type:void 0,{count:h,firstKey:d,hasFeedback:m,slide:p,totalDialogues:f}=e,v=o===0?a:o,g=o===1?d:o-1,C=o===0&&h===1,b=o===h,x=c==="dialogue"&&(C||b),y=this.dynamicRefs.current[`dialogue-${v}`],E=b&&this.dynamicRefs.current[`dialogue-${g}`],L=y&&y.offsetHeight,T=b&&E&&E.offsetHeight,S=m?30:0,I=window.innerWidth<480?20:30,N=I*2+60+T-S,k=I+60-S,M=Rz()(L+S-60),R=tr.createRef(),{settings:A,getL10nValue:B}=this.props,P=A?.audioPosition,O=B(p.media),D=Eo(O,P),$=D.renderOrder.indexOf("audio")<D.renderOrder.indexOf("text"),H=!!O?.audio,F=m&&o===f-1,W=J()("scenario-block__dialogue",{"scenario-block__dialogue--response":c==="response","scenario-block__dialogue--feedback":F,"scenario-block__dialogue--done":o<h-1,"scenario-block__dialogue--audio-top":$&&H}),de=Wn()([[is()(C),is()(null)],[yr()(h),is()({top:`${N}px`})],[yr()(h-1),is()({top:`${k}px`})],[yr()(h-2),is()({top:`${M}px`})],[ml(),is()({top:`-${L+30}px`})]]),fe={className:W,ref:Z=>{this.dynamicRefs.current[`dialogue-${v}`]=Z},style:de(o)},Se={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:R,key:o,timeout:{enter:400,exit:400}},De=J()({"scenario-block__dialogue__bubble":i||c==="response","scenario-block__dialogue__pane":!i}),Ie=this.props.getL10nValue(r)||"",Ne=c!=="response"&&!F&&H&&$&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(p)}),ae=(0,s.jsxs)("div",{className:De,"data-scenario-focus":x?"":void 0,tabIndex:x?-1:void 0,children:[Ne,(0,s.jsxs)("div",{className:"scenario-block__dialogue__bubble__content",ref:this.setupFadeObserver,children:[c!=="response"&&!F?this.renderDialogueWithAudioPositioning(p,Ie,D):(0,s.jsx)(bt,{value:Ie}),(0,s.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})]});return(0,s.jsx)(ys.B1,{...Se,children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{...fe,children:Ki(r)&&ae})})})}renderDialogues(e){const{activeScene:n,activeSlide:o,slides:r}=this.state,{id:a,responses:i}=e,c=`${n}.${o}`,h=r[c]||{},m=Xe()(tm(),Bz,Or()(h))(e),{hasFeedback:p,response:f}=h,{feedback:v}=i[f]||{},g=rn()(f)&&Ku(i),C=p?m.length-1:m.length,b=(C===1&&xs()(i)||C===2&&Ku(i))&&p,x={count:C,firstKey:wt()(null,[0,"id"],m),hasFeedback:p&&Ki(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((L,T)=>this.renderResponse(L,e,T))})})})});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,x))})})}),g&&E,b&&this.renderButton(m[C-1])]})})},a)}renderEnd(){const{labels:e}=this.props,{scenarioComplete:n,scenarioStartOver:o}=e,r=Xe()(this.onFocus,Gr()(this.onClick,["end",null])),a=J()(["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=M6(e),c=gu()(Bt()("name","style")),h=c(Bt()("value","left_aligned")),d=c(Bt()("value","right_aligned")),m=J()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===i,"scenario-block__character__inner--right":Ks()(d,r),"scenario-block__character__inner--left":Ks()(h,r)});return(0,s.jsx)("div",{className:m,"data-pose-id":a,children:(0,s.jsx)(Rn,{alt:"",src:i})},`pose-${n}-${a}`)}renderResponse({description:e},n,o){const{isPDF:r}=this.props,a=r?Gz:Xe()(this.onFocus,Gr()(this.onResponseClick,[o,n])),i=v=>{const C=v.currentTarget.querySelector(".scenario-block__response__inner");if(C){const b=C.getBoundingClientRect();if(v.clientX>b.right-16){v.preventDefault();return}}a(v)},c=v=>{const C=v.currentTarget.querySelector(".scenario-block__response__inner");if(C){const b=C.getBoundingClientRect();v.clientX>b.right-16?C.classList.add("hovering-scrollbar"):C.classList.remove("hovering-scrollbar")}},h=v=>{const C=v.currentTarget.querySelector(".scenario-block__response__inner");C&&C.classList.remove("hovering-scrollbar")},d=J()(["scenario-block__response",`scenario-block__response--${o}`]),m=J()("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:h,onMouseMove:c,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)(bt,{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,c=this.props.getL10nValue(e.title),h=this.props.getL10nValue(n)||"",{labels:d,settings:m,getL10nValue:p}=this.props,{scenarioContinue:f,scenarioStartOver:v}=d,g=!n&&(c||"").length<22,C=m?.audioPosition,b=p(e.media),x=Eo(b,C),y=x.renderOrder.indexOf("audio")<x.renderOrder.indexOf("text"),E=!!b?.audio,L=J()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":g,"scenario-block__text--audio-top":y&&E}),T={classNames:"scenario-block__content-",nodeRef:this.textRef,timeout:{enter:0,exit:400}},S=m?.headingLevel,I=S?`h${S}`:"h2",N=`scenario-title-${a}`,k=`scenario-description-${a}`,M=`${N} ${k}`,R=J()("scenario-block__text__inner",{"scenario-block__text__inner--end":o==="end"}),A=J()("scenario-block__text__title",{"scenario-block__text__title--end":o==="end"}),B=(0,s.jsx)("div",{className:A,"data-l10n-id":Xt(e.title),id:N,children:(0,s.jsx)(I,{children:c})}),P=E&&y&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(e)}),O=(0,s.jsx)("div",{className:"scenario-block__text__description",id:k,ref:this.setupFadeObserver,children:this.renderTextWithAudioPositioning(e,h,x)}),D=Xe()(this.onFocus,Gr()(this.onClick,[o,i])),$=(0,s.jsx)("button",{"aria-describedby":M,className:"scenario-block__text__continue",onClick:D,type:"button",children:(0,s.jsx)("span",{children:f})}),H=(0,s.jsxs)("button",{"aria-describedby":M,className:"scenario-block__text__end",onClick:D,type:"button",children:[(0,s.jsx)("span",{children:v}),(0,s.jsx)("i",{className:"icon icon-reload"})]});return(0,s.jsx)(ys.B1,{...T,children:(0,s.jsx)("div",{className:L,children:(0,s.jsxs)("div",{className:R,"data-scenario-focus":"",tabIndex:-1,children:[c&&B,P,n&&O,o==="end"?H:$]})},a)},a)}renderAudioMedia(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,items:i,settings:c}=this.props,h=o(e.media),d=i?.[this.state.activeScene];return h?(0,s.jsx)(Ys,{blockId:n,index:n,item:e,labels:r,lessonId:a,lessonNumber:a,media:h,refs:`items:${n}/items:${d.id}/slides:${e.id}`,shouldPause:e.type!=="dialogue",volumeSliderPosition:c?.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)(bt,{value:n})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(e);return c?(0,s.jsx)("div",{children:c},`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)(bt,{value:n})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(e);return c?(0,s.jsx)("div",{children:c},`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:bo()(r,a,o)})}resetSlides(){const{items:e}=this.props,n=r=>(a,i,c)=>{const{type:h,responses:d=[]}=i,m=h==="dialogue"&&d.length===0;return bo()(`${r}.${c}`,{hasFeedback:m,response:null},a)},o=(r,a,i)=>Ps()(Un()([],"slides"),P6(n(i),{}),I6()(r))(a);this.setState({slides:P6(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]||{},c=`${e}.${n}`,h=bo()("hasFeedback",!0),d=ol()({[c]:h});i==="dialogue"&&xs()(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 Wz=t=>{const e=In();return(0,s.jsx)(_z,{...t,getL10nValue:e})};function Gz(){}var Kz=l(26372);class Qz extends Kz.Component{render(){const{animateBlockEntrance:e,isLearner:n,previewType:o,initiallyVisible:r}=this.props,a=!rn()(o),h={animateBlockEntrance:a,animateIn:e?"fadeIn":"none",duration:a&&e?1:0,initiallyVisible:r,isLearner:n};return(0,s.jsx)(It,{className:"block-scenario",children:(0,s.jsx)(Pt,{...h,children:(0,s.jsx)(Wz,{...this.props})})})}}var Zz=l(1492),Qu=l.n(Zz);function Yz(t){t&&(t.addEventListener("touchstart",Kr,!0),t.addEventListener("touchmove",Kr,!0),t.addEventListener("touchcancel",Kr,!0),t.addEventListener("touchend",Kr,!0))}function Xz(t){t&&(t.removeEventListener("touchstart",Kr,!0),t.removeEventListener("touchmove",Kr,!0),t.removeEventListener("touchcancel",Kr,!0),t.removeEventListener("touchend",Kr,!0))}function Kr(t){t?.stopPropagation?.()}const Qi=K("playing-card"),O6=({id:t,isDeckTopCard:e,title:n,ref:o})=>{const[r,a]=(0,u.useState)(!1),[i,c]=(0,u.useState)(!1),[h,d]=(0,u.useState)({x:0,y:0}),[m,p]=(0,u.useState)(!0),[f,v]=(0,u.useState)(!1),[g,C]=(0,u.useState)(0),b=on(),x=(0,u.useRef)(null),y=(0,u.useRef)(null),E=(0,u.useRef)(void 0),L=(0,u.useRef)(void 0),T=(0,u.useRef)(!1),S=(0,u.useCallback)(()=>{const{innerWidth:D}=window,$=x.current&&x.current.scrollHeight>x.current.clientHeight,H=D<g;$&&D>g&&C(D),v($||H)},[g]),I=(0,u.useRef)(()=>{a(!0),c(!1)}),N=(0,u.useRef)(()=>{a(!1)});(0,u.useImperativeHandle)(o,()=>({onStartSortAttempt:I.current,onEndSortAttempt:N.current})),(0,u.useEffect)(()=>{const D=setTimeout(()=>{p(!1)},300);return()=>clearTimeout(D)},[]),(0,u.useEffect)(()=>{const D=y.current;if(!D)return;const $=()=>{a(!0),c(!1)},H=({dx:W,dy:de})=>{d(fe=>({x:fe.x+W,y:fe.y+de}))},F=()=>{a(!1)};return I.current=$,N.current=F,Yz(D),qo(D).draggable({inertia:!0,autoScroll:!1,modifiers:[qo.modifiers.snap({targets:[(W,de)=>({x:W,y:de})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}).on("dragstart",$).on("dragmove",H).on("dragend",F),S(),E.current=Du()(S,250),window.addEventListener("resize",E.current),()=>{Xz(D),qo(D).off("dragstart",$).off("dragmove",H).off("dragend",F),E.current&&(E.current.cancel(),window.removeEventListener("resize",E.current)),clearTimeout(L.current)}},[S]),(0,u.useEffect)(()=>{S()},[t,S]),(0,u.useEffect)(()=>{const D=T.current;T.current=r,D&&!r&&(c(!0),clearTimeout(L.current),L.current=setTimeout(()=>{d({x:0,y:0}),c(!1)},300))},[r]);const k=b?.backgroundType===w.xj.ACCENT||b?.backgroundType===w.xj.IMAGE,M=`translate3d(${h.x}px, ${h.y}px, 0)`,R={WebkitTransform:M,transform:M},A=Qi("title",{"is-max-length":f}),B=Qi({draggable:!0,moving:r,fail:i,reset:m}),P=k?Qi("content"):Qi("content").mix("brand--border"),O=typeof n=="string"?n:n?.["en-US"]||"Card";return(0,s.jsxs)("div",{"aria-hidden":!e,className:B,id:t.toString(),onMouseDown:D=>{D.preventDefault()},ref:y,style:R,children:[e&&(0,s.jsxs)("div",{className:"visually-hidden-always",children:["Current item: ",O]}),(0,s.jsxs)(_s,{"aria-hidden":"true",className:P,children:[(0,s.jsx)(bt,{className:A,id:`card-title-${t}`,ref:x,value:n}),(0,s.jsx)("div",{className:Qi("handle")}),(0,s.jsx)("div",{className:Qi("status"),children:(0,s.jsx)("i",{className:"icon icon-check"})})]})]},`card-${t}`)},Zu=K("restart-button");function Jz({allowTabNavigation:t=!0,onClick:e,onFocus:n=Zs.lQ,ref:o,text:r}){const a=Zu({}).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:LA(t),type:"button",children:(0,s.jsxs)("div",{className:Zu("content"),children:[(0,s.jsx)("span",{className:Zu("text").mix("brand--ui"),children:r}),(0,s.jsx)("i",{"aria-hidden":"true",className:Zu("icon").mix("icon").mix("icon-reload")})]})})}const B6=Jz,Nl=K("deck"),qz=t=>t?.percentViewed===100,e$=(t,e)=>`${t?.correctlyAnswered??0}/${e}`,t$=(t,e)=>String(e?.lastIncorrectCardId)===String(t.id),s$=({count:t,items:e,labels:n,id:o,onReplay:r,progress:a,ref:i})=>{const c=(0,u.useRef)([]),h=(0,u.useRef)(null);(0,u.useImperativeHandle)(i,()=>({startKeyDrop(){c.current[0]?.onStartSortAttempt()},endKeyDrop(){c.current[0]?.onEndSortAttempt()},focusReplayButton(){h.current?.focus()}}));const d=qz(a),m=e$(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)(B6,{allowTabNavigation:d,onClick:p,ref:h,text:n.sortingReplay})]}),(0,s.jsx)("div",{className:Nl("content"),children:e.map((f,v)=>(0,s.jsx)(O6,{id:f.id,isDeckTopCard:c.current[v]===c.current[0],isIncorrect:t$(f,a),ref:g=>{c.current[v]=g},title:f.title},f.id))})]})},wa=K("pile"),n$=({id:t,lessonId:e,deckTopCard:n,nextCard:o,isComplete:r=!1,onCardDrop:a,onNavigateToNext:i,onNavigateToPrevious:c,onKeyDropStart:h,onKeyDropEnd:d,title:m,ref:p})=>{const[f,v]=(0,u.useState)(void 0),[g,C]=(0,u.useState)(!1),[b,x]=(0,u.useState)(!0),[y,E]=(0,u.useState)(!1),[L,T]=(0,u.useState)(!1),[S,I]=(0,u.useState)(0),N=(0,u.useRef)(null),k=(0,u.useRef)(null),M=(0,u.useRef)(null),R=(0,u.useRef)(void 0),A=(0,u.useRef)(void 0),B=(0,u.useRef)(void 0),P=(0,u.useRef)(void 0),O=(0,u.useRef)(void 0),{announcePolite:D}=xt(),$=(0,u.useEffectEvent)(()=>{if(r||!n)return;const Z=n.id.toString(),ve=n.pileId===t;a?.({id:e,itemId:Z,isCorrect:ve});const we=typeof n.title=="string"?n.title:n.title?.["en-US"]||"",Me=typeof m=="string"?m:m?.["en-US"]||"";if(ve){clearTimeout(A.current),clearTimeout(B.current),clearTimeout(P.current),v(n),C(!0),x(!1);const Ae=`Correct. ${we}, category: ${Me}`;D(Ae);const Ue=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";Ue&&(P.current=setTimeout(()=>{D(`Next item. ${Ue}`)},500)),A.current=setTimeout(()=>{v(void 0),C(!1)},1500),B.current=setTimeout(()=>{x(!0)},1300)}else clearTimeout(A.current),clearTimeout(B.current),clearTimeout(P.current),v(void 0),C(!1),x(!0),D("Incorrect. Choose another category.")});(0,u.useImperativeHandle)(p,()=>({focus(){k.current?.focus()}}));const H=(0,u.useCallback)(()=>{const{innerWidth:Z}=window,ve=N.current&&N.current.scrollHeight>(N.current.offsetParent?.clientHeight??0),we=Z<S;ve&&Z>S&&I(Z),T(ve||we)},[S]),F=(0,u.useCallback)(()=>{if(r||!n)return;h?.();const Z=n.id.toString(),ve=n.pileId===t;a?.({id:e,itemId:Z,isCorrect:ve});const we=typeof n.title=="string"?n.title:n.title?.["en-US"]||"Card",Me=typeof m=="string"?m:m?.["en-US"]||"Pile";if(ve){clearTimeout(A.current),clearTimeout(B.current),clearTimeout(P.current),v(n),C(!0),x(!1);const Ae=`Correct. ${we}, category: ${Me}`;D(Ae);const Ue=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";Ue&&(P.current=setTimeout(()=>{D(`Next item. ${Ue}`)},500)),A.current=setTimeout(()=>{v(void 0),C(!1)},1500),B.current=setTimeout(()=>{x(!0)},1300)}else clearTimeout(A.current),clearTimeout(B.current),clearTimeout(P.current),v(void 0),C(!1),x(!0),D("Incorrect. Choose another category.")},[r,n,o,t,e,m,h,a,D]),W=(0,u.useCallback)(Z=>{Hr(Z)?If(()=>c?.())(Z):Fr(Z)&&If(()=>i?.())(Z)},[c,i]),de=(0,u.useCallback)(()=>{r||(F(),clearTimeout(O.current),O.current=setTimeout(()=>d?.(),100))},[F,d,r]),fe=(0,u.useCallback)(()=>{E(!0)},[]),Se=(0,u.useCallback)(()=>{E(!1)},[]);(0,u.useEffect)(()=>{const Z=M.current;if(!Z)return;const ve=Ae=>{const Ue=qo.getElementRect(Ae.target),it={x:Ue.left+Ue.width/2,y:Ue.top+Ue.height/2};Ae.draggable.draggable({snap:{targets:[it]}})},we=Ae=>{Ae.draggable.draggable({snap:{targets:[(Ue,it)=>({x:Ue,y:it})]}})},Me=Ae=>{Ae.draggable.draggable({snap:{targets:[(Ue,it)=>({x:Ue,y:it})]}}),Ae.stopPropagation?.(),Ae.preventDefault?.(),$()};return qo(Z).dropzone({overlap:"pointer"}).on("dragenter",ve).on("dragleave",we).on("drop",Me),H(),R.current=Du()(H,250),window.addEventListener("resize",R.current),()=>{qo(Z).off("dragenter",ve).off("dragleave",we).off("drop",Me),clearTimeout(A.current),clearTimeout(B.current),clearTimeout(P.current),clearTimeout(O.current),R.current&&(R.current.cancel(),window.removeEventListener("resize",R.current))}},[]);const De=J()(wa(),{"drop-success":g,complete:r}),Ie=J()(wa("content"),{"drop-animating":!b&&!y}),Ne=wa("title",{"is-max-length":L}),ae=typeof m=="string"?m:m?.["en-US"]||"Category";return(0,s.jsx)("div",{className:De,ref:M,children:(0,s.jsx)("div",{className:wa("wrapwrap"),children:(0,s.jsxs)(_s,{className:wa("wrap"),overrideBackground:!0,children:[(0,s.jsx)("div",{"aria-hidden":"true",className:wa("message"),children:(0,s.jsx)(bt,{className:Ne,ref:N,value:m})}),(0,s.jsx)("button",{"aria-disabled":r,"aria-label":ae,className:Ie,disabled:r,onBlur:Se,onClick:de,onFocus:fe,onKeyDown:W,ref:k,type:"button",children:f&&(0,s.jsx)(O6,{id:f.id,title:f.title})}),(0,s.jsx)("div",{className:wa("background")})]})})})},qm=K("sorting"),o$=(t,e)=>!e||!e.items?t:t.filter(n=>!e.items?.[n.id]?.isViewed),r$=({id:t,labels:e,items:n,piles:o,onCardDrop:r,onReplay:a,progress:i})=>{const[c,h]=(0,u.useState)(()=>Qu()(n)),[d,m]=(0,u.useState)(!1),p=(0,u.useRef)([]),f=(0,u.useRef)(null),v=(0,u.useRef)(i?.retryAttempts),g=(0,u.useRef)(i?.percentViewed),C=(0,u.useRef)(void 0),b=(0,u.useRef)(void 0),x=(0,u.useRef)(void 0),{announcePolite:y}=xt(),E=(0,u.useEffectEvent)(()=>{p.current[0]?.focus()}),L=(0,u.useEffectEvent)(()=>{const A=i?.correctlyAnswered??0,B=n.length;y(`${A} of ${B} cards correct`)}),T=(0,u.useEffectEvent)(()=>{f.current?.focusReplayButton()});(0,u.useEffect)(()=>{const A=B=>{const{blockId:P,cardId:O}=mi(B.detail.path,["block","card"]);t!==P||!O||h(D=>{const $=D.find(F=>F.id===O),H=D.filter(F=>F.id!==O);return $?[$,...H]:D})};return window.addEventListener(Kt,A),()=>{window.removeEventListener(Kt,A)}},[t]),(0,u.useEffect)(()=>{const A=i?.retryAttempts,B=v.current;return A!==B?(v.current=A,h(Qu()(n)),clearTimeout(C.current),C.current=setTimeout(()=>{E()},100)):h(P=>{const O=n.filter(H=>!P.find(F=>F.id===H.id));return[...P.filter(H=>n.find(F=>F.id===H.id)).map(H=>{const F=n.find(W=>W.id===H.id);return F?{...H,...F}:H}),...O]}),()=>{clearTimeout(C.current)}},[n,i?.retryAttempts]),(0,u.useEffect)(()=>{const A=i?.percentViewed,B=g.current;return A===100&&B!==100&&(m(!0),clearTimeout(b.current),b.current=setTimeout(()=>{L()},500),clearTimeout(x.current),x.current=setTimeout(()=>{T()},100)),A!==100&&B===100&&m(!1),g.current=A,()=>{clearTimeout(b.current),clearTimeout(x.current)}},[y,i?.correctlyAnswered,i?.percentViewed,n.length]);const{sortingLandmark:S}=e,I=o$(c,i),N=S,k=I?.[0],M=k?typeof k.title=="string"?k.title:k.title?.["en-US"]||"":"",R=d?"Categories. Interaction completed.":M?`Categories. ${M}`:"Categories";return(0,s.jsxs)("div",{"aria-label":N,className:qm(),role:"group",children:[(0,s.jsx)("div",{className:qm("row"),children:(0,s.jsx)(s$,{count:c.length,id:t,items:I,labels:e,onReplay:a,progress:i,ref:f})}),(0,s.jsx)("ul",{"aria-label":R,className:qm("row"),role:"list",children:o.map((A,B)=>(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(n$,{deckTopCard:I?.[0],id:A.id,isComplete:d,lessonId:t,nextCard:I?.[1],onCardDrop:r,onKeyDropEnd:()=>{f.current?.endKeyDrop()},onKeyDropStart:()=>{f.current?.startKeyDrop()},onNavigateToNext:()=>EA({list:p.current,currentIndex:B}),onNavigateToPrevious:()=>TA({list:p.current,currentIndex:B}),ref:P=>{p.current[B]=P},title:A.title})},A.id))})]})},D6=()=>()=>{},a$=t=>{const{animateBlockEntrance:e,blockId:n,initiallyVisible:o,items:r,labels:a,onCardDrop:i=D6,onReplay:c=D6,piles:h,progress:d}=t;return(0,s.jsx)(It,{type:"sorting-activity",children:(0,s.jsx)(Pt,{animateBlockEntrance:e,initiallyVisible:o,isLearner:!0,children:(0,s.jsx)(r$,{id:n,items:r,labels:a,onCardDrop:i(t),onReplay:c(t),piles:h,progress:wt()({},["items",n],d)})})})};var H6=l(92991);class i$ extends u.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){H6.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 c$=i$,F6=(0,u.createContext)({translationHoveredPath:null});function l$(){return(0,u.use)(F6)}const d$=F6.Provider,u$=(0,u.lazy)(()=>l.e("webpack_container_remote_mondrian_learn-react").then(l.t.bind(l,4246,23))),h$={subscribe(t,e){const n=`mondrian:${t}`,o=()=>{at.isPlaying&&at.playerId!==n&&e()};return at.addChangeListener(o),()=>{at.removeChangeListener(o)}},play(t){const e=`mondrian:${t}`;at.playerId=e,at.isPlaying=!0}};function m$(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 p$({blockumentId:t,manifest:e}){let n=920,o=600;try{const r=e.blockuments?.[t];if(r){const a=e.items?.[r.children[0]?.id];if(a){const i=a.states[a.initialState];if(i){const c=i.width.value,h=i.height.value;typeof c=="number"&&typeof h=="number"&&(n=c,o=h)}}}}catch{}return(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-mondrian__fallback",height:o,width:n})}function f$({animateBlockEntrance:t=!0,initiallyVisible:e,blockumentId:n,isLearner:o=!1,settings:r,onStep:a,onTranscriptClose:i,onTranscriptOpen:c,onTranscriptUpdate:h,labels:d,transcriptPanelState:m}){const p=Ge(),f=p.mondrian,v=D1(),g={externalLinksDisabled:"externalLinksDisabled"in p?p.externalLinksDisabled:!1,isExternalLink:zn},{currentLocale:C}=(0,jt.nY)(),b=vo(),x=l$(),y=(0,u.useMemo)(()=>({active:C,source:b}),[C,b]),E=(0,u.useCallback)(k=>m?.audioPlayerIdOpen===Lo({refs:`items:${n}/items:${k}`}),[n,m?.audioPlayerIdOpen]),L=(0,u.useCallback)(({refocusTarget:k,itemId:M,transcript:R})=>{E(M)?i?.():c?.({audioPlayerId:Lo({refs:`items:${n}/items:${M}`}),focusing:!0,refocusTarget:k,transcriptMedia:{mondrianTranscript:R}})},[n,E,i,c]),T=(0,u.useCallback)(({itemId:k,transcript:M})=>{m?.audioPlayerIdOpen&&h?.({audioPlayerId:Lo({refs:`items:${n}/items:${k}`}),transcriptMedia:{mondrianTranscript:M}})},[n,h,m]),S=(0,u.useCallback)(k=>{h?.({audioPlayerId:Lo({refs:`items:${n}/items:${k}`}),focusing:!0})},[n,h]),I=(0,u.useMemo)(()=>({isPanelOpenForItem:E,focusPanel:S,togglePanel:L,updateTranscript:T}),[S,E,L,T]),N=(0,u.useCallback)(k=>{if(a)for(const M of Object.values(k))M.progress>=100&&a({id:M.itemId})},[a]);return(0,s.jsx)(It,{children:(0,s.jsx)(c$,{FallbackComponent:C$,children:(0,s.jsx)(Pt,{animateBlockEntrance:t,initiallyVisible:e,isLearner:o,children:(0,s.jsx)("div",{style:m$(r),children:(0,s.jsx)(u.Suspense,{fallback:(0,s.jsx)(p$,{blockumentId:n,manifest:f}),children:(0,s.jsx)(u$,{blockumentId:n,hoveredItemPath:x.translationHoveredPath,labels:d,linkRenderConfig:g,locale:y,manifest:f,mediaStoreAdapter:h$,onMediaProgress:N,runtimeInterface:window.Runtime,searchTerm:v?.term,transcriptPanelAdapter:I})})})})})})}const v$=(0,u.memo)(f$,g$);function g$(t,e){return t.blockumentId===e.blockumentId&&t.settings.backgroundType===e.settings.backgroundType&&t.settings.contentWidth===e.settings.contentWidth&&t.labels===e.labels&&t.transcriptPanelState?.audioPlayerIdOpen===e.transcriptPanelState?.audioPlayerIdOpen}function C$(){return null}const x$=K("block-ai-scenario"),b$=(0,u.lazy)(()=>l.e("webpack_container_remote_ai_scenario_player-react").then(l.t.bind(l,79812,23)));function y$({blockId:t,scenarioId:e,onExit:n,emptySlot:o}){const{currentLocale:r}=(0,jt.nY)(),a=vo(),i=(0,u.useMemo)(()=>({active:r,source:a}),[r,a]);return(0,s.jsx)(It,{className:x$("wrapper"),children:e?(0,s.jsx)(u.Suspense,{children:(0,s.jsx)(b$,{blockId:t,locale:i,onExit:n,scenarioId:e})}):o??null})}const L$=(0,u.memo)(y$);var V6=l(67750),ns=l(26372);const Ds=K("block-code"),E$=`${(0,_e._$)("CDN_URI")}/assets/rise/assets/blocks/code_block_unavailable.svg`;function z6(t,e){const n=$6(V6.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*$6(t){if(Array.isArray(t))for(const e of t)yield*$6(e);else yield t}function U6(t,e,n){return ns.useEffect(()=>{const r=new AbortController;return window.addEventListener("message",a=>{a.origin===window.origin&&e!=null&&t.current&&a.source===t.current.contentWindow&&z6(a,e)},{signal:r.signal}),()=>r.abort()},[e,t]),ns.useCallback(r=>{t.current?.contentWindow?.postMessage(r,n)},[t,n])}const T$=(t,e,n)=>U6(t,n,window.origin),S$=(t,e,n)=>U6(t,n,"*"),I$=(t,e,n)=>{const[o,r]=ns.useState(()=>new BroadcastChannel(e));return ns.useEffect(()=>()=>o.close(),[o]),ns.useEffect(()=>{o.name!==e&&r(new BroadcastChannel(e))},[o,e]),ns.useEffect(()=>{const i=new AbortController;return o.addEventListener("message",c=>z6(c,n),{signal:i.signal}),()=>i.abort()},[o,n]),ns.useCallback(i=>{o.postMessage(i)},[o])},N$=(0,_e.Hm)()?jn.isLocalFilesystem?S$:I$:T$,j$=window.location.origin==="";function k$(t){let e=j$?"":"lib/sandbox/sandbox.html";return e+=`#channel=${encodeURIComponent(t)}`,e}function A$(t){return typeof t=="number"?`${t/10}rem`:"-1px"}const R$={0:"small",1:"medium",2:"full"};function w$({editBlock:t,errors:e,isDragPreview:n,isLearn:o,isSidebarPreview:r,items:a,labels:i,onClearErrors:c,onError:h,onStep:d,previewType:m,settings:p}){const f=ns.useRef(null),g=Ge()?.htmlBlocksDisabled,C=n||r||!!m,[b]=a,x=Rt(b.srcdoc),y=Rt(b.media),E=y?.sandbox?.src==null?void 0:`${y.sandbox.src}/index.html`,L=p?.autoResize===!0,T=p?.width??"0",[S,I]=ns.useState("-1px");ns.useEffect(()=>{L||I(A$(p?.height))},[L,p?.height]);const[N,k]=ns.useState(0),[M,R]=ns.useState(!1),[A,B]=ns.useState(!1),[P]=ns.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),O=k$(P),D=ns.useCallback(()=>{d?.({id:b.id})},[b.id,d]),$=ns.useCallback(({message:Ne})=>{h?.({message:Ne}),B(!0),console.error("Sandbox Error",Ne)},[h,B]),H=ns.useCallback(()=>{c?.(),B(!1),k(Ne=>Ne+1)},[c]),F=ns.useCallback(()=>{R(N>0)},[N]),W=ns.useCallback(({height:Ne})=>{L&&I(`${Ne}px`)},[L]),de=ns.useMemo(()=>({oncomplete:D,onerror:$,onload:F,onready:H,onresize:W}),[D,$,H,F,W]),fe=N$(f,P,de),Se=ns.useCallback((Ne,ae)=>{if(f==null&&N===0)throw new Error("Attempted to send message to sandbox before it is ready");const Z=V6.format.notification(Ne,ae);fe(Z)},[N,f,fe]),De=ns.useCallback(()=>{window.location.reload()},[]),Ie=ns.useCallback(()=>{t?.()},[t]);return ns.useEffect(()=>{N&&Se("onupdate",{autoResize:L,src:E,srcDoc:x})},[L,N,Se,E,x]),o&&e!=null||A?(0,s.jsx)(It,{children:(0,s.jsxs)("div",{className:Ds("error-general",{learn:o}),children:[(0,s.jsx)("div",{className:Ds("error-message"),children:"Something went wrong"}),(0,s.jsx)("div",{className:Ds("error-message-subtitle"),children:"There was an error loading this code block. Please contact your admin if the issue continues."}),(0,s.jsx)(St.ArcButton,{className:Ds("error-button"),onClick:De,size:"lg",variant:"primary",children:"Refresh page"})]})}):e!=null&&Object.keys(e).length>0?(0,s.jsx)(It,{children:e[404]?(0,s.jsxs)("div",{className:Ds("error-404"),children:[(0,s.jsx)("div",{className:Ds("error-message"),children:"We couldn\u2019t find your file"}),(0,s.jsx)("div",{className:Ds("error-message-subtitle"),children:"Make sure your zip file contains an index.html file."}),(0,s.jsx)(St.ArcButton,{className:Ds("error-button"),onClick:Ie,size:"lg",variant:"primary",children:"Retry upload"})]}):(0,s.jsxs)("div",{className:Ds("error-general"),children:[(0,s.jsx)("div",{className:Ds("error-message"),children:"Something went wrong"}),(0,s.jsxs)("div",{className:Ds("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)(St.ArcButton,{className:Ds("error-button"),onClick:De,size:"lg",variant:"primary",children:"Refresh page"})]})}):g&&!C?(0,s.jsx)(It,{children:(0,s.jsx)("div",{className:Ds("restricted"),children:(0,s.jsxs)("div",{className:Ds("restricted-card"),children:[(0,s.jsx)($t,{alt:"",className:Ds("restricted-icon"),src:E$}),(0,s.jsx)("div",{className:Ds("restricted-title"),children:"Subscribe to unlock full access"}),(0,s.jsx)("div",{className:Ds("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)(It,{children:(0,s.jsx)("iframe",{allow:"fullscreen",className:Ds({"auto-resize":L,loaded:C||M,width:R$[T]}),"data-rise-frontend-sandbox":"",loading:"lazy",ref:f,sandbox:"allow-forms allow-popups allow-same-origin allow-scripts",scrolling:L?"no":void 0,src:O,style:{"--block-html-height":S},title:i?.a11yBlockCode},P)})}const Qr=K("timeline-card"),P$=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:h,mediaType:d,audioPosition:m}=t,{settings:p}=a,f=Rt(a.media)??{},v=d==="audio"&&f.audio,g=d==="embed"&&f.embed,C=d==="image"&&f.image,b=d==="video"&&f.video;if(!v&&!g&&!C&&!b&&!(d==="image-with-audio"&&r))return;const y=f.embed?ja(f.embed):void 0,E=!!f.image,L=!!f.audio,T=E?f.image.align:"center",S=Qr("media",{audio:L&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${T}`]:r&&!!T,"audio-on-bottom":L&&!r&&m==="bottom",linkEmbed:y==="link",videoEmbed:y==="video",visual:!r&&E||!rn()(f.video)}),I=p||{};return(0,s.jsx)("div",{className:S,children:(0,s.jsx)(Ys,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:h,media:f,mediaType:r?void 0:d,opts:{disableZoom:n,...I}})})},M$=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c}=t,{id:h}=o,d=Qr({active:r}),m=!!o.date,p=!!o.title,f=e||2,v=`h${f}`,g=`h${f+1}`,C=Rt(o.media)??{},b=Eo(C,i,!0,"timeline"),x=()=>{if(!C||!a)return null;const y={audio:{item:{...o,media:b.audioOnlyMedia||C},mediaType:"audio"},image:{item:{...o,media:b.imageOnlyMedia||C},mediaType:"image"},video:{item:{...o,media:b.videoOnlyMedia||C},mediaType:"video"},embed:{item:{...o,media:b.embedOnlyMedia||C},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:b.renderOrder.map((E,L)=>{if(E==="text")return(0,s.jsx)(bt,{className:Qr("description"),value:o.description},`text-${L}`);const T=y[E];return T?(0,u.createElement)(P$,{...t,...T,key:`${E}-${L}`}):null})})};return(0,s.jsx)("div",{className:d,"data-id":h,ref:n,children:(0,s.jsx)(_s,{className:Qr("body"),onFocus:c,children:(0,s.jsx)("div",{className:Qr("main-wrap"),children:(0,s.jsxs)("div",{className:Qr("main"),children:[m&&(0,s.jsx)("div",{className:Qr("date"),children:(0,s.jsx)(v,{children:(0,s.jsx)(vs,{value:o.date})})}),p&&(0,s.jsx)("div",{className:Qr("title"),children:(0,s.jsx)(g,{children:(0,s.jsx)(vs,{value:o.title})})}),x()]})})})})},jl=K("timeline"),O$=t=>{const{audioPosition:e,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,initiallyVisible:i,isBlock:c,isLearner:h,item:d,labels:m,lessonId:p,onFocus:f}=t,v=(0,s.jsx)(M$,{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 c?h?(0,s.jsx)(Pt,{animateBlockEntrance:!0,className:jl("animate").toString(),initiallyVisible:i,isLearner:!0,children:v}):v:null},B$=t=>{const{id:e,items:n,labels:o,onEnter:r=Function.prototype,settings:a={}}=t,i=(0,u.useRef)(null),c=(0,u.useCallback)((h,d)=>{r({id:e,payload:{activeIndex:h,itemId:d}})},[e,r]);return(0,u.useEffect)(()=>{function h(d){const{blockId:m,cardId:p}=mi(d.detail.path,["block","card"]);if(m!==e)return;const f=i.current.querySelector(`[data-id="${p}"]`);f&&!lm(f,"center")&&f.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(Kt,h),()=>{window.removeEventListener(Kt,h)}}),(0,s.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",ref:i,role:"group",children:(0,s.jsx)("div",{className:jl("wrapper"),children:(0,s.jsx)("div",{className:jl(),children:(0,s.jsx)("ul",{className:jl("container"),role:"list",children:n.map((h,d)=>(0,s.jsx)("li",{className:jl("card-wrapper"),role:"listitem",children:O$({index:d,item:h,onFocus:c,...t,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},d))})})})})},D$=({animateBlockEntrance:t,blockId:e,enableVideoPlaybackSpeed:n,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:c,settings:h})=>(0,s.jsx)(Pt,{animateBlockEntrance:t,animateIn:"fadeIn",initiallyVisible:o,isLearner:r,children:(0,s.jsx)(It,{type:"timeline",children:(0,s.jsx)(B$,{enableVideoPlaybackSpeed:n,id:e,initiallyVisible:o,isBlock:!0,isLearner:r,items:a,labels:i,lessonId:c,settings:h})})}),H$=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 xn=l(30467),F$=l(28565),_6=l(32584),V$=l(35534),W6=l.n(V$),G6=l(85291);const z$=matchMedia("(forced-colors: active)");function kl(){return z$.matches}const $$=({activeIndex:t,values:e,opts:n})=>{const{background:o,variant:r}=Bs(),{chartColor:a,lineCurve:i}=on(),c=kn(),h=Bc(),d=n?.defaultFontColor,m=Yo(),p=m===w.xj.IMAGE,v=Rt(o?.media)?.image?.overlayColor??w.df.DARK,g=kl();let C=a??h,b=c||"#fff";!a&&m===w.xj.ACCENT||a===b?C=d:p&&(C=v===w.df.DARK?"#fff":"#000",b=v===w.df.DARK?"#000":"#fff"),g&&(C="Highlight",b="Canvas");let x=C,y=Array(e.length).fill(C);if(t!=null&&!g){const E=p&&v===w.df.LIGHT?.2:.7,L=(0,G6.A)(C,b,E);x=L,y=Nw(L,C,e.length,t)}return r==="bar"?{backgroundColor:y,data:e,hoverBackgroundColor:y}:{borderColor:x,cubicInterpolationMode:i==="linear"?"default":"monotone",data:e,lineTension:i==="linear"?0:void 0,pointBackgroundColor:y,pointBorderColor:y,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:C,pointHoverBorderColor:C,pointHoverBorderWidth:0,pointRadius:4}};function U$({activeIndex:t,children:e,opts:n,values:o}){const r=$$({activeIndex:t,opts:n,values:o});return e(r)}class _$ extends u.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,c=J()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:c,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 W$=_$,G$=({activeIndex:t,labels:e,letters:n,onEvent:o,values:r})=>{const a=ou(n,ou(e,r));return a.length===0?null:(0,s.jsx)("dl",{className:"block-chart__cartesianLegend",children:a.map(([i,[c,h]],d)=>(0,s.jsx)(W$,{activeIndex:t,identifier:i,index:d,label:c,onEvent:o,value:h},i))})},K$=(0,u.memo)(G$);var Q$=l(5606),Z$=l.n(Q$);function Y$(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 X$={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:Y$,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function J$({values:t,contrastColor:e}){const n=Bs(),o=Yo(),r=o===w.xj.IMAGE,a=(0,u.useMemo)(()=>Iw(t),[t]);let i,c;const d=Rt(n?.background?.media)?.image?.overlayColor??w.df.DARK,m=r&&d===w.df.LIGHT;switch(o){case w.xj.LIGHT:case w.xj.GRAY:case w.xj.TINT:[i,c]=["#e1e1e1","#c9c9c9"];break;case w.xj.DARK:case w.xj.BLACK:case w.xj.IMAGE:[i,c]=["#ffffff80","#ffffffe9"];break;case w.xj.ACCENT:case w.xj.COLOR:{[i,c]=e==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&m&&([i,c]=["#00000080","#0000001a"]),a||(c=i),[i,c]}const q$=({onEvent:t,reduceMotion:e,shouldAnimate:n,values:o})=>{const r=kn(),{customBackgroundColorContrast:a}=on(),i=Ge(),c=Bc(),h=i?.theme?.accentContrast,d=Yo(),m=d===w.xj.IMAGE,p=Bs(),f=kl(),v=(0,ut.cP)(r)?w.Em.LIGHT:w.Em.DARK,g=!a&&p?.family==="chart",C=a??w.Em.DARK,b=g?v:C,y=Rt(p?.background?.media)?.image?.overlayColor??w.df.DARK,E=m&&y===w.df.LIGHT,L=d===w.xj.ACCENT||d===w.xj.COLOR,T=d===w.xj.ACCENT?c:r,S=d===w.xj.ACCENT?h:b,I=$s({backgroundColor:T,contrast:S}),[N,k]=J$({values:o,contrastColor:I}),M=(0,u.useCallback)(A=>f&&m?E?"#000000":"#FFFFFF":A.tick.value===0?k:N,[N,f,k,m,E]);return(0,u.useMemo)(()=>{let A="#000";if(f)m?A=E?"#000000":"#FFFFFF":A="FieldText";else{switch(d){case w.xj.DARK:case w.xj.BLACK:case w.xj.IMAGE:A="#fff";break}L&&(A=I),m&&E&&(A="#000")}const B=n&&!e?1e3:0;let P,O;f?m?(P=A,O=E?"#FFFFFF":"#000000"):(P="Highlight",O="HighlightText"):(P=A,O=A==="#000"||A==="#000000"||A===w.Em.DARK?"#FFFFFF":"#000000");const D=Z$()(X$);return D.animation.duration=B,D.defaultFontColor=A,D.onClick=t,D.onHover=t,D.plugins.tooltip.animation=!e,D.plugins.tooltip.backgroundColor=P,D.plugins.tooltip.titleColor=O,f&&!m?(D.scales.x.grid.color="FieldText",D.scales.y.grid.color="FieldText"):(D.scales.x.grid.color=N,D.scales.y.grid.color=M),D.scales.x.ticks.color=A,D.scales.y.ticks.color=A,f&&(m?D.plugins.legend.labels.color=E?"#000000":"#FFFFFF":D.plugins.legend.labels.color="FieldText"),D},[d,I,N,L,f,m,E,t,e,M,n])};function eU(t){const{children:e,onEvent:n,reduceMotion:o,shouldAnimate:r,values:a}=t,i=q$({onEvent:n,reduceMotion:o,shouldAnimate:r,values:a});return e(i)}var tU=l(63171),ep=l.n(tU);const sU=/<mark>|<\/mark>/gm,nU=t=>e=>{const n=t(e.type).replace(sU,"")??"";return{label:ep()(n,{length:30}),l10nId:Xt(e?.type)}},oU=t=>parseFloat(t.value??"0"),K6=(t,e)=>({labels:t.map(nU(e)),values:t.map(oU)}),Q6=(t,e,n)=>{const o=ep()(e,{length:t});return n?rw(o,n):o};function rU(){const[t,e]=u.useState(null),n=u.useRef(null),{announcePolite:o}=xt(),{a11yBlockChartPreposition:r}=qt()??{},a=u.useCallback(f=>{e(f)},[]),i=u.useCallback(()=>{n.current?.resize()},[]),c=u.useCallback(()=>{n.current?.update()},[]),h=u.useCallback(()=>{i(),c()},[i,c]),d=u.useCallback(()=>{const f=n.current;if(f==null)return;const v=f.getDatasetMeta(0),g=v.data;if(!g?.length)return;const C=0,x=[{datasetIndex:0,element:v.data[C],index:C}];f.setActiveElements(x),f.tooltip?.setActiveElements(x,{x:0,y:0}),f.update(),a(C);const y=f.data.labels[C],E=f.data.datasets[0].data[C];setTimeout(()=>{o(`${C+1} ${r??""} ${g.length} - ${y}: ${E}`)},0)},[r,o,n,a]),m=u.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=u.useCallback(f=>{const v=n.current;if(v==null)return;const g=v.getDatasetMeta(0),C=g.data;if(!C?.length)return;let b=!1,x=t;switch(f.key){case"ArrowLeft":b=!0,x=(t-1+C.length)%C.length;break;case"ArrowRight":b=!0,x=(t+1+C.length)%C.length;break;case"Home":b=!0,x=0;break;case"End":b=!0,x=C.length-1;break}if(b&&(f.stopPropagation(),f.preventDefault()),x!==t){const E=[{datasetIndex:0,element:g.data[x],index:x}];v.setActiveElements(E),v.tooltip?.setActiveElements(E,{x:0,y:0}),v.update(),a(x);const L=v.data.labels?.[x],T=v.data.datasets[0].data[x];o(`${x+1} ${r??""} ${C.length} - ${L}: ${T}`)}},[r,t,o,n,a]);return u.useEffect(()=>{n.current&&(n.current.resize(),n.current.update())},[]),u.useEffect(()=>{n.current&&n.current.update()},[t]),{activeIndex:t,chartRef:n,onBlur:m,onFocus:d,onKeyDown:p,onEvent:a,onResize:h}}function Z6(t){const e=n=>{const{activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:h,onResize:d}=rU();return(0,s.jsx)(t,{...n,activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:h,onResize:d})};return e.displayName=`withChartEvents(${t.displayName||t.name})`,e}const aU="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");class iU extends u.PureComponent{wrapRef;id;resizeObserver;constructor(e){super(e),this.wrapRef=(0,u.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??{};W6()(n)&&W6()(o)&&this.setState({labelYTop:`${(n+o)/2}px`})}};render(){const{props:{activeIndex:e,chartRef:n,getL10nValue:o,htmlIdBase:r,htmlIdTitle:a,onBlur:i,onFocus:c,onKeyDown:h,isDesktop:d,isVisible:m,items:p,itemsLabel:f,labels:v,onEvent:g,search:C,shouldAnimate:b,valuesLabel:x,variant:y},state:{labelYTop:E}}=this,L=Q6(80,o(f),C),T=Q6(30,o(x),C),S=K6(p,o),I=d?[]:aU.slice(0,p.length),N=d?S.labels:I.map(P=>({label:P})),k=m?S.values:n3(0,p.length),M=`${r}-type`,R=`${r}-instructions`,A=N.map(P=>P.label),B=N.map(P=>P.l10nId).join(",");return(0,s.jsxs)("div",{className:"block-chart__cartesian",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:R,children:v?.a11yBlockChartInstructions}),(0,s.jsxs)("div",{className:"block-chart__cartesianChart",ref:this.wrapRef,children:[T&&il(T)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":Xt(x),style:{insetInlineEnd:E},children:[T,(0,s.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisY})]}),L&&il(L)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelX","data-l10n-id":Xt(f),children:[L,(0,s.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisX})]}),(0,s.jsx)(eU,{onEvent:this.handleEvent,reduceMotion:Mn(),shouldAnimate:b,values:k,children:P=>(0,s.jsx)(U$,{activeIndex:e,opts:P,values:k,children:O=>(0,s.jsxs)("div",{"aria-describedby":R,"aria-labelledby":`${a} ${M}`,className:"block-chart__cartesian-canvas-wrap",onBlur:i,onFocus:c,onKeyDown:h,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:M,children:y==="bar"?v?.a11yBlockChartBar:v?.a11yBlockChartLine}),(0,s.jsx)(_6.Chart,{"aria-hidden":"true",data:{labels:A,datasets:[O]},"data-l10n-id":B,options:P,ref:n,role:"presentation",type:y,updateMode:"default"})]})})})]}),!d&&(0,s.jsx)(K$,{activeIndex:e,labels:S.labels,letters:I,onEvent:g,values:k})]})}}function cU(t){const e=Jt(t),n=nb(960,"isDesktop","Desktop")(e),o=Z6(n);function r(a){const c=D1()?.term??"";return(0,s.jsx)(o,{...a,search:c})}return r}const lU=cU(iU),tp=({valueType:t,value:e,values:n})=>t==="numeric"?String(e):jw(e/r3(n)),dU=t=>{if(kl())return"FieldText";const e=t.dataset.backgroundColor[t.dataIndex]??"#000";return(0,ut.xD)(e)===w.Em.DARK?et.S6.DARK:et.S6.LIGHT},uU=(t,e,n)=>tp({valueType:t,value:e,values:n.dataset.data}),hU=(t,e)=>{const{label:n,dataset:o,parsed:r}=e[0],a=tp({valueType:t,value:r,values:o.data});return`${n}: ${a}`},mU=(t,e)=>{const n=e.dataIndex,o=e.dataset.data??[1],r=o[n],a=t==null&&r/r3(o)>=.06;return t===n||a},pU=({activeIndex:t,onEvent:e,reduceMotion:n,settings:{valueType:o},shouldAnimate:r})=>{const a=kl();return{animation:{animateRotate:r&&!n,duration:r&&!n?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:e,onHover:e,maintainAspectRatio:!1,plugins:{datalabels:{color:dU,display:mU.bind(null,t),font:{size:12,weight:"bold"},formatter:uU.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!n,boxPadding:"14px 10px",callbacks:{label:()=>null,title:hU.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":et.S6.LIGHT,titleColor:a?"HighlightText":et.S6.DARK}},responsive:!1,rotation:130}},fU=({activeIndex:t,colors:e,hasBorder:n,values:o})=>{const r=kn(),a=kl(),i=t==null?e:e.map((c,h)=>h===t?c:(0,G6.A)(c,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 vU({activeIndex:t,children:e,colors:n,hasBorder:o,values:r}){const a=fU({activeIndex:t,colors:n,hasBorder:o,values:r});return e(a)}class gU extends u.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,c=J()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:c,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 CU=gU,xU=({activeIndex:t,colors:e,hasBorder:n,labels:o,onEvent:r,values:a,valueType:i="numeric"})=>{const c=ou(e,ou(o,a));if(c.length===0)return null;const h=J()("block-chart__circleLegend",{"block-chart__circleLegend--border":n});return(0,s.jsx)("dl",{className:h,children:c.map(([d,[m,p]],f)=>(0,s.jsx)(CU,{activeIndex:t,color:d,index:f,label:m,onEvent:r,value:tp({valueType:i,value:p,values:a})},m.label))})},bU=(0,u.memo)(xU),yU=(t,e)=>{const n=t.filter(a=>Number(a.value)>=0),o=K6(n,e),r=n.map(a=>a.color);return{...o,colors:r}};class LU extends u.PureComponent{wrapRef;id;resizeObserver;constructor(e){super(e),this.wrapRef=(0,u.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 pU({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:c,onFocus:h,onKeyDown:d,isVisible:m,items:p,labels:f,onEvent:v,settings:g}=this.props,{colors:C,labels:b,values:x}=yU(p,r),y=m?x:n3(0,p.length),E=this.buildOptions(),L=`${a}-type`,T=`${a}-instructions`,S=b.map(N=>N.label),I=C.includes(n);return(0,s.jsxs)("div",{className:"block-chart__circle",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:T,children:f?.a11yBlockChartInstructions}),(0,s.jsx)("div",{className:"block-chart__circleChart",ref:this.wrapRef,children:(0,s.jsx)(vU,{activeIndex:e,colors:C,hasBorder:I,values:y,children:N=>(0,s.jsxs)("div",{"aria-describedby":T,"aria-labelledby":`${i} ${L}`,className:"block-chart__circle-canvas-wrap",onBlur:c,onFocus:h,onKeyDown:d,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:L,children:f?.a11yBlockChartPie}),(0,s.jsx)(_6.Chart,{"aria-hidden":"true",data:{labels:S,datasets:[N]},options:E,ref:o,role:"presentation",type:"pie",updateMode:"default"})]})})}),(0,s.jsx)(bU,{activeIndex:e,colors:C,hasBorder:I,labels:b,onEvent:v,values:y,valueType:g?.valueType})]})}}function EU(t){const e=fA()(t),n=Z6(e);return Jt(n)}const TU=EU(LU);xn.Chart.register(xn.ArcElement,xn.BarController,xn.BarElement,xn.CategoryScale,F$.default,xn.Legend,xn.Legend,xn.LineController,xn.LineElement,xn.LinearScale,xn.PieController,xn.PointElement,xn.Title,xn.Tooltip);const SU=t=>(0,ut.cP)(t.backgroundColor);class IU extends u.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)(bt,{value:e})};render(){const{props:{animateBlockEntrance:e,children:n,editable:o,initiallyVisible:r,isLearner:a,items:i,itemsLabel:c,labels:h,settings:d,title:m,valuesLabel:p,variant:f,renderTitle:v=this.renderTitle},state:{isVisible:g}}=this,C=SU(d),b=d?.headingLevel,x=b?`h${b}`:"h2",y=this.id,E=`${y}-title`;return(0,s.jsx)(It,{type:"chart",children:(0,s.jsx)(Pt,{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)(x,{className:"block-chart__title",id:E,children:v()})}),(0,s.jsx)("div",{className:"block-chart__chart",children:u.cloneElement(u.Children.only(n),{hasDarkBgColor:C,htmlIdBase:y,htmlIdTitle:E,isVisible:g,items:i,itemsLabel:c,labels:h,settings:d,shouldAnimate:e,valuesLabel:p,variant:f})})]})})})})})})}}const NU=IU;function Y6(t){const e=n=>(0,s.jsx)(NU,{...n,children:(0,s.jsx)(t,{})});return e.displayName=`ChartWrap(${ew(t)})`,e}var jU=l(26372);const kU=Y6(lU),AU=Y6(TU),RU=Js()(Bt()("variant","storyline")),wU=Ps()(RU,us(),KP()(1));class PU extends jU.Component{render(){const{dividerNumber:e,family:n,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:i,initiallyVisible:c}=this.props,d={...Od()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:i,partnerContent:r,initiallyVisible:c};return Ke("text","paragraph",d)||Ke("text","table",d)?(0,s.jsx)(fB,{...d}):Ke("text","heading paragraph",d)?(0,s.jsx)(yB,{...d}):Ke("text","subheading paragraph",d)?(0,s.jsx)(LB,{...d}):Ke("text","heading",d)?(0,s.jsx)(xB,{...d}):Ke("text","subheading",d)?(0,s.jsx)(bB,{...d}):Ke("text","two column",d)?(0,s.jsx)(vB,{...d}):Ke("text","three column",d)?(0,s.jsx)(gB,{...d}):Ke("text","four column",d)?(0,s.jsx)(CB,{...d}):Ke("text","code",d)?(0,s.jsx)(ig,{...d}):Ke("impact","a",d)?(0,s.jsx)(OB,{...d}):Ke("impact","b",d)?(0,s.jsx)(BB,{...d}):Ke("impact","c",d)?(0,s.jsx)(DB,{...d}):Ke("impact","d",d)?(0,s.jsx)(HB,{...d}):Ke("impact","note",d)?(0,s.jsx)(FB,{...d}):Ke("quote","a",d)?(0,s.jsx)(KB,{...d}):Ke("quote","b",d)?(0,s.jsx)(QB,{...d}):Ke("quote","c",d)?(0,s.jsx)(ZB,{...d}):Ke("quote","d",d)?(0,s.jsx)(YB,{...d}):Ke("quote","background",d)?(0,s.jsx)(XB,{...d}):Ke("quote","carousel",d)?(0,s.jsx)(qB,{...d}):Ke("list","numbered",d)?(0,s.jsx)(nD,{...d}):Ke("list","checkboxes",d)?(0,s.jsx)(oD,{...d}):Ke("list","bulleted",d)?(0,s.jsx)(rD,{...d}):Ke("image","hero",d)?(0,s.jsx)(iD,{...d}):Ke("image","full",d)?(0,s.jsx)(Lm,{...d}):Ke("image","text aside",d)?(0,s.jsx)(dD,{...d}):Ke("image","text overlay",d)?(0,s.jsx)(hD,{...d}):Ke("image","banner",d)?(0,s.jsx)(mD,{...d}):Ke("gallery","centered",d)||Ke("gallery","full",d)?(0,s.jsx)(bD,{...d}):Ke("gallery","two column",d)?(0,s.jsx)(Tm,{...d}):Ke("gallery","three column",d)?(0,s.jsx)(Tm,{width:3,...d}):Ke("gallery","four column",d)?(0,s.jsx)(Tm,{width:4,...d}):Ke("divider","divider",d)?(0,s.jsx)(LD,{...d}):Ke("divider","numbered divider",d)?(0,s.jsx)(ED,{number:e,...d}):Ke("divider","spacing divider",d)?(0,s.jsx)(TD,{...d}):Ke("360","storyline",d)?(0,s.jsx)(sH,{...d,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):Ke("interactive","accordion",d)?(0,s.jsx)(RD,{...d}):Ke("interactive","tabs",d)?(0,s.jsx)($D,{...d}):Ke("interactive-fullscreen","labeledgraphic",d)?(0,s.jsx)(uz,{...d}):Ke("interactive-fullscreen","process",d)?(0,s.jsx)(Tz,{...d}):Ke("interactive-fullscreen","scenario",d)?(0,s.jsx)(Qz,{...d}):Ke("interactive-fullscreen","sorting",d)?(0,s.jsx)(a$,{...d}):Ke("buttons","button",d)?(0,s.jsx)(rH,{...d}):Ke("buttons","button stack",d)?(0,s.jsx)(aH,{...d}):Ke("flashcard","flashcard",d)?(0,s.jsx)(wg,{...d}):Ke("flashcard","stack",d)?(0,s.jsx)(wg,{stack:!0,...d}):Ke("knowledge","knowledge",d)?(0,s.jsx)(Gi,{...d}):Ke("continue","continue",d)?(0,s.jsx)(GH,{...d}):Ke("multimedia","step",d)?(0,s.jsx)(_H,{...d}):Ke("multimedia","audio",d)?(0,s.jsx)(BH,{...d}):Ke("multimedia","video",d)?(0,s.jsx)(wm,{...d}):Ke("multimedia","ai_avatar",d)?(0,s.jsx)(wm,{...d}):Ke("multimedia","custom video",d)?(0,s.jsx)(wm,{...d,type:"customVideo"}):Ke("multimedia","embed",d)?(0,s.jsx)(HH,{...d}):Ke("multimedia","attachment",d)?(0,s.jsx)(zH,{...d}):Ke("multimedia","code",d)?(0,s.jsx)(ig,{...d}):Ke("knowledgeCheck","multiple choice",d)?(0,s.jsx)(Gi,{...d}):Ke("knowledgeCheck","multiple response",d)?(0,s.jsx)(Gi,{...d}):Ke("knowledgeCheck","fillin",d)?(0,s.jsx)(Gi,{...d}):Ke("knowledgeCheck","matching",d)?(0,s.jsx)(Gi,{...d}):Ke("knowledgeCheck","draw from question bank",d)?(0,s.jsx)(Gi,{...d}):Ke("chart","bar",d)||Ke("chart","line",d)?(0,s.jsx)(kU,{...d}):Ke("chart","pie",d)?(0,s.jsx)(AU,{...d}):Ke("interactive-fullscreen","timeline",d)?(0,s.jsx)(D$,{...d}):Ke("ai-scenario","ai-scenario",d)?(0,s.jsx)(L$,{...d}):Ke("mondrian","mondrian",d)?(0,s.jsx)(v$,{...d}):Ke("textToVideo","textToVideo",d)?(0,s.jsx)(H$,{}):Ke("survey","survey",d)?(0,s.jsx)(fz,{...d}):Ke("html","inline",d)||Ke("html","cdn",d)||Ke("html","vibe",d)?(0,s.jsx)(w$,{...d}):`Unknown type: ${n} ${a}`}hasManySlBlocks(){const{items:e}=this.props;return e&&wU(e)}}function MU(t){return(0,s.jsx)(Sh,{block:t,children:(0,s.jsx)(PU,{...t})})}function Ke(t,e,n){return n.family===t&&n.variant===e}const OU=1e3,BU=150,DU="onscrollend"in window;function X6(t,e){const n=t.getBoundingClientRect(),o=e?.getBoundingClientRect(),r=o?.top??0,a=o?.bottom??window.innerHeight,i=(a-r)*.02,c=n.bottom>r-i&&n.top<a+i,h=n.bottom<r;return c||h}const sp={entries:new Map,scrollHandler:null,scrollEndHandler:null,scrollTarget:null,debounceTimer:null,register(t,e,n){const o=this.entries.size===0,r=e??window;if(this.entries.set(t,{el:t,scrollableParent:e,callback:n}),o){this.scrollTarget=r;const a=()=>{this.debounceTimer!=null&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.checkAll(),BU)};DU?(this.scrollEndHandler=()=>this.checkAll(),this.scrollTarget.addEventListener("scrollend",this.scrollEndHandler),this.scrollHandler=a,this.scrollTarget.addEventListener("scroll",this.scrollHandler)):(this.scrollHandler=a,this.scrollTarget.addEventListener("scroll",this.scrollHandler))}},unregister(t){this.entries.delete(t),this.entries.size===0&&(this.scrollEndHandler&&this.scrollTarget&&(this.scrollTarget.removeEventListener("scrollend",this.scrollEndHandler),this.scrollEndHandler=null),this.scrollHandler&&this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null),this.scrollTarget=null,this.debounceTimer!=null&&(clearTimeout(this.debounceTimer),this.debounceTimer=null))},checkAll(){requestAnimationFrame(()=>{const t=[];for(const e of this.entries.values())X6(e.el,e.scrollableParent)&&t.push(e);t.forEach(e=>e.callback())})}},J6=({children:t,onViewed:e})=>{const n=(0,u.useRef)(null),o=(0,u.useRef)(!1),r=(0,u.useRef)(e);return(0,u.useEffect)(()=>{r.current=e},[e]),(0,u.useEffect)(()=>{const a=n.current;if(!a||o.current)return;const i=D3(),c=()=>{o.current||(o.current=!0,h.disconnect(),clearTimeout(d),sp.unregister(a),r.current())},h=new IntersectionObserver(([m])=>{m!=null&&(m.isIntersecting||m.intersectionRatio>0)&&c()},{root:i,rootMargin:et.CY,threshold:0});h.observe(a);const d=setTimeout(()=>{!o.current&&X6(a,i)&&c()},OU);return sp.register(a,i,c),()=>{h.disconnect(),clearTimeout(d),sp.unregister(a)}},[]),(0,s.jsx)("div",{ref:n,children:t})};var np=l(26372);class HU extends np.PureComponent{render(){return(0,s.jsx)(J6,{onViewed:this.handleViewed,children:np.cloneElement(np.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}(FU.test(e.variant)||VU.test(e.family))&&e.items.length>0&&this.handleStep(e.items[0])}}const FU=/tabs|carousel/,VU=/gallery/,zU=["timeline"],$U=({family:t,variant:e})=>(/interactive|flashcard|knowledge|continue|360|survey/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(e))&&!zU.includes(e),UU=({family:t,settings:e})=>t==="html"&&e?.hasCustomCompletion,_U=({family:t,items:e})=>!!(t==="mondrian"&&e?.length),WU="draw from question bank",q6=t=>{const{animateBlockEntrance:e,block:n,className:o,color:r,courseId:a,courseTitle:i,defaultBackgroundColor:c,enableVideoPlaybackSpeed:h,handleNavigate:d,handleStorylineFullscreen:m,hideBlock:p,index:f,isLastBlock:v,isOnlyBlockInStep:g,isVideoTraining:C,labels:b,lessonId:x,lessonProgress:y,loadMedia:E,match:L,onContinue:T,partnerContent:S,prefersKeyboardNavigation:I,previewType:N,publishedAt:k,tenantId:M}=t,{blockId:R,family:A,items:B=[],variant:P,settings:O}=n,D=`block-${R}`,$=(0,U.wA)(),H=e4({blockId:String(R),lessonId:String(x)}),F=(0,u.useCallback)(vt=>{const ft=P===WU?B[0]:Ks()(Bt()("id",vt),B);$((0,yo.re)({blockId:R,lessonId:x,items:[ft]})),A==="continue"&&T(R,vt)},[R,$,A,B,x,T,P]),W=(0,u.useCallback)(()=>{$((0,yo.re)({blockId:R,lessonId:x,items:B}))},[R,$,B,x]),de=(0,u.useCallback)(vt=>{const ft=B?.[0],ts=ft&&"id"in ft?ft.id:void 0;ts&&$((0,yo.RA)({blockId:R,itemId:ts,lessonId:x,audioVideoPlayhead:vt}))},[R,$,x,B]),fe=(0,u.useCallback)(()=>{$((0,yo.b0)({blockId:R,lessonId:x,isSubmitted:!0}))},[R,$,x]),Se=(0,u.useCallback)(({itemId:vt,response:ft})=>{$((0,yo.u_)({blockId:R,itemId:vt,lessonId:x,response:ft}))},[R,$,x]),De=(0,u.useCallback)(vt=>{$((0,yo.Sw)(vt))},[$]),Ie=(0,u.useCallback)(()=>({itemId:vt,isCorrect:ft})=>$((0,yo.i$)({itemId:vt,lessonId:x,blockId:R,isCorrect:ft})),[R,$,x]),Ne=(0,u.useCallback)(()=>()=>$((0,yo.V9)({lessonId:x,blockId:R})),[R,$,x]),ae=hl(),Z=(0,u.useCallback)(vt=>{$(_v(vt))},[$]),ve=(0,u.useCallback)(()=>{$(al())},[$]),we=(0,u.useCallback)(vt=>{$(Gh(vt))},[$]),Me=Or()(n,{animateBlockEntrance:e,className:o?.toString(),color:r,courseId:a,courseTitle:i,defaultBackgroundColor:c,dividerNumber:H,enableVideoPlaybackSpeed:h,family:A,handleNavigate:d,handleStorylineFullscreen:m,onSurveySubmitted:fe,onSurveyPartialResponse:Se,initiallyVisible:f===0,isHidden:p,isLastBlock:v,isLearn:!0,isLearner:!0,isOnlyBlockInStep:g,isVideoTraining:C,labels:b,lessonId:x,loadMedia:E,match:L,onCardDrop:Ie,onReplay:Ne,onRetryAttempt:De,onTranscriptClose:ve,onTranscriptOpen:Z,onTranscriptUpdate:we,originalVariant:void 0,partnerContent:S,prefersKeyboardNavigation:I,previewType:N,progress:y,publishedAt:k,recordMediaPlayheadPosition:de,tenantId:M,transcriptPanelState:ae}),Ae=$U({family:A,variant:P})||UU({family:A,settings:O})||_U({family:A,items:B}),Ue=Vx(x,R),it=J()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":p}),rt=(0,s.jsx)(MU,{...Me});return(0,s.jsx)("div",{className:it,"data-block-id":R,"data-change-path":Ue,children:Ae?(0,s.jsx)(HU,{block:n,onStep:F,onViewed:W,children:rt}):(0,s.jsx)(J6,{onViewed:W,children:rt})},D)},GU=({slides:t,currentSlide:e},n)=>(e.push(n),n.settings?.attachedToNextBlock||(t.push(e),e=[]),{slides:t,currentSlide:e}),KU=t=>{const{slides:e}=du()(GU,{slides:[],currentSlide:[]},t);return e};function op(t,e,n,o){if(t.length){const a=t.slice(-1)[0];if(!Al(a.id,n))return t}const r=Sw(QU(n),e.slice(t.length)).map(ZU(o));return r.length?op(t.concat(r),e,n,o):t}const Al=(t,e)=>wt()(!1,["items",t,"isComplete"],e),QU=t=>({family:e,items:n})=>{const o=wt()({},0,n);return e==="continue"&&!Al(o.id,t)},ZU=t=>(e,n,o)=>{const r=o.slice(-1)[0]||{},{family:a}=r,i=a==="continue"?wt()(void 0,["items",0,"type"],r)??t?.blockContinueCompletionType??!1:!1;return e.family==="knowledgeCheck"&&e.settings?.requireCorrectAnswer?Or()(e,{requiresInteraction:!0}):e.variant!=="continue"&&(!i||i==="completeBlock"&&n!==o.length-1&&n!==o.length-2)?e:Or()(e,{requiresInteraction:!0})};function e5({id:t,...e},n,o,r,a){if(e.family==="continue"){const i=wt()(void 0,["items",0,"type"],e)??a?.blockContinueCompletionType??"";return Or()({blockId:t,...e},{skipContinue:r,canContinue:YU({continueType:i,blocks:n,progress:o}),lessonProgress:o,isComplete:Al(t,o)})}return{blockId:t,...e}}const YU=({continueType:t,blocks:e,progress:n})=>{switch(t){case"completeAll":return yr()(us()(e),e_(n));case"completeBlock":return e.length===0?!0:Al(t_(e),n);default:return!0}},XU=Xe()(xr(),Gt()("items")),JU=t=>Xe()(qU,XU)(t),qU=Js()(Bt()("isComplete",!0)),e_=Xe()(us(),JU),t_=Xe()(Gt()("id"),Hn()),s_=({family:t,variant:e,isComplete:n,requiresInteraction:o})=>t==="continue"&&e==="continue"&&o&&!n,n_=(t,e)=>!!t.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!e?.items?.[o?.id]?.isComplete}),o_=t=>t.length===0?!1:Zh()(s_,t),r_=(t,e)=>t.length===0?!1:n_(t,e),a_=({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}),t5=({blocks:t,lessonProgress:e,currentBlockIndex:n})=>{const o=a_({blocks:t,lessonProgress:e});return o>-1&&n>o},i_=(t,e)=>{const n=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(t)||n.includes(e)};function s5(){const{pathname:t}=new URL(window.location.href);return t.split("/")[1]==="review"}function c_(){const t=window.location.hash.slice(1),e=new URLSearchParams(t.split("?")[1]??"");return s5()&&!!e.get("locale")}function l_(t,e,n){if(!t||!e||!s5())return!1;if(dr(n,{l10n:e}))return!0;const{locales:o,defaultLocale:r}=e,a=o.find(i=>i.locale===r)?.id;return a&&a!==t}class d_ extends u.Component{ref=u.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(Kt,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(Kt,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=J()("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:op([],e,n,this.props.courseTheme)).map(this.buildBlock.bind(this,this.props.lessonProgress,a)).filter(E3.A)}handleContinue(e,n){const{blocks:o,handleNavigate:r,lessonId:a,lessonProgress:i,nextLesson:c}=this.props;Al(n,i)||(this.continueFromId=e),e===o[o.length-1]?.id&&c&&((0,U.JD)((0,yo.eQ)(a)),r(c))}buildBlock(e,n,o,r,a){const{animateBlockEntrance:i,blocks:c,color:h,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:v,isVideoTraining:g,labels:C,lessonId:b,loadMedia:x,match:y,partnerContent:E,prefersKeyboardNavigation:L,previewType:T,publishedAt:S,tenantId:I}=this.props,{isBlockActionsSidebarPreview:N}=this.state,k=e5(o,a.slice(0,-1),e,n,this.props.courseTheme),M=a.length-1,A=k.family==="continue"?o.id===c[c.length-1]?.id:r===M,B=!N&&t5({blocks:c,lessonProgress:e,currentBlockIndex:r});return(0,s.jsx)(q6,{animateBlockEntrance:i,block:k,color:h,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:v,hideBlock:B,index:r,isFirstLesson:!0,isLastBlock:A,isVideoTraining:g,labels:C,lessonId:b,lessonProgress:e,loadMedia:x,match:y,onContinue:this.handleContinue,partnerContent:E,prefersKeyboardNavigation:L,previewType:T,publishedAt:S,tenantId:I},k.blockId)}scrollIfContinued(){if(this.continueFromId){const{blocks:e}=this.props,n=Ho()(Bt()("id",this.continueFromId),e),o=Fo()(n),r=wt()(null,["blocks",o,"id"],this.props);if(r){const a=document.querySelector(".page-wrap"),i=a.querySelector(`[data-block-id="${r}"]`),c=i?i.getBoundingClientRect().top:0;rl.Ay.animateScroll.scrollTo(c+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 u_=(t,e)=>{const{currentLocale:n}=e;return{courseTheme:t.course?.theme,isOnePage:$a(t),isCourseLocalized:Ua(t),isVideoTraining:(0,ps.cZ)(Wt(t)),isLocalizedReviewMode:l_(t.course?.defaultLocaleId,t.l10n,n)}},n5=Xe()(Lh.A,jt.wZ,(0,U.Ng)(u_))(d_);function Yu({children:t}){const e=(0,u.useRef)(),n=(0,u.useCallback)(()=>{e.current?.focus?.()},[]);return Wj(n),(0,s.jsx)("main",{className:"lesson-main",ref:e,tabIndex:"-1",children:t})}const h_=K("page"),o5=({type:t,children:e})=>(0,s.jsx)("div",{className:h_({lessonTypeQuiz:t==="quiz"}),"data-page":!0,"data-type":t,children:e});o5.propTypes={type:ct().string.isRequired,children:ct().node.isRequired};const Rl=o5,Zi=({type:t,children:e})=>{const n=t==="video"||t==="embed"||t==="blocks"||t==="progress-summary",o=J()("page__wrapper",{"page__wrapper--white":n});return(0,s.jsx)("div",{className:o,children:e})};Zi.propTypes={type:ct().string.isRequired,children:ct().node.isRequired};const Yi=({className:t,type:e,children:n})=>{const o=J()("page__content",t,{"page__content--timeline":e==="timeline"});return(0,s.jsx)("div",{className:o,children:n})};Yi.propTypes={type:ct().string,children:ct().node.isRequired};const m_=({animateBlockEntrance:t,color:e,courseId:n,courseTitle:o,data:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,labels:h,lessonHeader:d,lessonHeaderWrapClasses:m,lessonHeaderWrapStyles:p,lessonProgress:f,loadMedia:v,match:g,nextLesson:C,partnerContent:b,prefersKeyboardNavigation:x,previewType:y,publishedAt:E,tenantId:L,hideLessonHeaders:T})=>{const{id:S,items:I,type:N}=r,k={animateBlockEntrance:t,blocks:I,color:e,courseId:n,courseTitle:o,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,isFirstLesson:!0,labels:h,lessonId:S,lessonProgress:f,loadMedia:v,match:g,nextLesson:C,partnerContent:b,previewType:y,prefersKeyboardNavigation:x,publishedAt:E,tenantId:L,type:N};return(0,s.jsx)(Rl,{type:N,children:(0,s.jsx)(Zi,{type:N,children:(0,s.jsxs)(Yu,{children:[(0,s.jsx)("div",{className:m,inert:T,style:p,children:d}),(0,s.jsx)(Yi,{children:(0,s.jsx)(n5,{...k})})]})})})},p_=t=>({partnerContent:wt()([],["partnerContent","content"],t)}),f_=(0,U.Ng)(p_)(m_);var v_=l(87194);const g_=({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 c=vn();if(rn()(e))return null;const h=Ii({percent:e,label:o,isRTL:c}),d=c?`%${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:h}),(0,s.jsxs)("div",{children:[r,"\xA0",(0,s.jsx)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:d})]})]})]}),(0,s.jsx)(r5,{labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:i,requirementMet:e<=t})]})},C_=({outOfAttempts:t,quizPassed:e,quizPassingScore:n,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:i="Quiz Requirement",labelScoreOf:c="Score of",labelScoreOfPreposition:h="% 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 g=vn();if(!a)return null;const C=Ii({percent:n,label:h,isRTL:g});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:[c," ",C," ",r]}),rn()(o)?(0,s.jsx)("div",{children:(0,s.jsx)(Nn,{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)(r5,{labelA11yRequirementCompleted:f,labelA11yRequirementNotCompleted:v,requirementMet:e})]})},r5=({requirementMet:t,labelA11yRequirementCompleted:e,labelA11yRequirementNotCompleted:n})=>t?(0,s.jsx)(Je,{"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"}),x_=({dueAt:t})=>t?(0,s.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:S1(t)}):null;var b_=l(39645),y_=l.n(b_),L_=l(26372);const E_=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class T_ extends L_.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)(y_(),{colors:E_,gravity:.4,height:window.innerHeight,numberOfPieces:500,recycle:e,run:n,width:window.innerWidth})})}}const S_=T_;var I_=l(45330),N_=l.n(I_),j_=l(92213),k_=l.n(j_),A_=l(6394);const a5=K("progress-summary-card"),R_=({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:J()("progress-summary-card__due-label",{"brand--color":n}),children:r}):null,w_=({cardImageKey:t=null,className:e,color:n="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:i=!1,enrolledAt:c=null,hidden:h=!1,imagesUri:d="",isLearningPath:m=!1,isUrgent:p=!1,labelAssignedToMe:f="",labelDue:v="",labelDuration:g="",labelLearningPath:C="",onClick:b=Zs.lQ,progress:x=0,title:y=""})=>{const E=(0,ht.useLabelsMap)(),L=vn(),T=o!==null,S=(0,u.useCallback)(()=>{a||b?.()},[a,b]),I=(0,u.useCallback)(P=>{lh(P)&&P.preventDefault(),!a&&Ti(P)&&b?.()},[a,b]),N=Ii({percent:Math.round(x),label:E?.progressSummaryPercentComplete||"% Complete",isRTL:L}),k=t||r,M=E?.progressSummaryCompleted||"Completed: ",R=`${fo()(new Date(o)).format("MM/DD/YY")}`,A=a5("card",{disabled:a}),B=a5("image-overlay",{"not-started":!(x||T),"in-progress-completed":x||T});return(0,s.jsxs)("div",{"aria-hidden":h,className:A,onClick:S,children:[(0,s.jsxs)("div",{className:"progress-summary-card__content",children:[(0,s.jsx)("button",{"aria-disabled":a,className:J()("progress-summary-card__title-button",{[e]:e}),onKeyDown:I,role:"link",tabIndex:h?-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:C}),c&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:f}),!!x&&!a&&!o&&(0,s.jsx)("span",{className:"progress-summary-card__hide",children:N}),!i&&!T&&(0,s.jsx)("div",{className:"progress-summary-card__duration",children:g}),(0,s.jsx)(R_,{completedDate:R,completeLabel:M,isComplete:T,isUrgent:p,labelDue:v})]})]}),(0,s.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,s.jsx)(A_.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:k,imagesUri:d,s:"cover",style:{backgroundColor:n},w:300}),(0,s.jsx)("div",{className:B}),(0,s.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!x&&!a&&!T&&(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:`${x}%`}})})})})]})]})},P_=(0,_e._$)("IMAGES_URI"),M_=["cardImageKey","color","coverImageKey","progress","score","title"],i5=(t,e)=>t===1?e:e.concat("s"),rp=wt()([],["course","course","lessons"]),O_=t=>Xe()(Sn(),vv()(Dr()(Bt()("type","section"),k_()(fa()(t3(),t),"id"))),rp),B_=t=>{const e=rp(t),{trackingQuizId:n}=t,{score:o}=t;if(n&&e.length){const r=Ks()(Bt()("id",n),e),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},D_=Xe()(Ks()(nu()(Bt()("type","section"))),rp),H_=oh()(2,t=>Xe()(Un()("","id"),Ks()(Boolean),N_()([O_(t),B_,D_]))),F_=t=>{const e=fo().duration(t),n=e.hours(),o=e.minutes(),r=`${n} ${i5(n,"hr")}`,a=`${o} min`;return n>=100?"100+ hrs":n>0&&o>0?[r,a].join(" "):n>0?r:a},V_=t=>{const{color:e,learningPathComplete:n,learningPathId:o,isSuccess:r,nextCourse:a,nextCourse:{dueAt:i,courseId:c="",lessonCount:h,lessonsCompleted:d=[],sourceType:m,timeToComplete:p}={}}=t,f=(0,ht.useLabelsMap)(),v=(0,u.useMemo)(()=>H_(d,a),[a,d]);rn()(a.color)&&(a.color=e);const g=Vo()(M_,a),C=(0,u.useCallback)(()=>{m==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",c),top.location.assign(`/learning-path/${o}`)):(0,ws.kT)(`${c}/lessons/${v}`)},[c,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)(Je,{"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)(w_,{imagesUri:P_,labelCount:`${h} ${i5(h,"lesson")}`,labelDue:S1(i),labelDuration:F_(p),noCertDownload:!0,noFavoriteBtn:!0,onClick:C,...g})})]})})},z_=Gt()("learningPathUpNext"),$_=(0,U.Ng)(z_)(V_),U_=`${(0,_e._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,__=Xe()(us(),Js()(Gt()("isComplete")),xr()),W_=t=>{const{color:e,course:n={},courseProgress:o={},fetchLpUpNext:r,lessons:a=[],learningPathComplete:i,lpHasFailedQuiz:c}=t,{lessons:h={},percentComplete:d}=o,{dueAt:m,certificateDownload:p,completionCelebration:f,lessonsOnly:v=[],riseComLearningPathId:g,trackingCompletionPercentage:C,trackingQuizId:b}=n,x=mn(),y=(0,ht.useLabelsMap)(),E=rn()(C)&&rn()(b),L=E?d===100:(0,Ye.As)(),T=v.length,S=__(h);(0,u.useEffect)(()=>{g&&r()},[]);const I=(0,u.useMemo)(()=>L?n.completedAt?n.completedAt:new Date:null,[n.completedAt,L]),N=(0,u.useMemo)(()=>Ks()(gu()(Bt()("type","quiz"),Bt()("id",b)),a),[b,a]),k=fs(N?.title),M=(0,u.useMemo)(()=>wt()(100,["settings","passingScore"],N),[N]),R=wt()(null,["lessons",b,"passed"],o),A=(0,u.useMemo)(()=>Xe()(yi()(Bt()("percentComplete",100),Gt()("score"),is()(null)),wt()({},["lessons",b]))(o),[o,b]),{outOfAttempts:B}=gc(o,N,b);let P=b?R:!0,O=Mn();const D=J()("progress-summary",{"progress-summary__no-req":E}),$=(0,ps.c3)(n),H=`You've completed ${S} of ${T} lessons.`,W=$?L?"Complete":"Incomplete":H;return(0,s.jsx)(ya,{title:sl(x+" - Progress Summary"),children:(0,s.jsxs)("div",{className:D,children:[L&&f&&P&&!O&&(0,s.jsx)(S_,{}),(0,s.jsxs)("header",{className:"progress-summary__header",children:[(0,s.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:L&&!E&&P?y?.progressSummaryCongratulations||"Congratulations!":y?.progressSummary||"Progress Summary"}),E?(0,s.jsx)("div",{className:"progress-summary__lessons-completed",children:W}):L?(0,s.jsxs)("div",{className:"progress-summary__header-completion-date",children:[P&&(0,s.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:U_}),fo()(I).format("MMMM Do, YYYY")]}):(0,s.jsx)(x_,{dueAt:m})]}),(0,s.jsxs)("section",{className:"progress-summary__section",children:[!E&&L&&(0,s.jsx)("div",{className:"progress-summary__requirements-met",children:y?.progressSummaryRequirementsMet||"You've met all the requirements."}),E?!g&&(0,s.jsxs)(Nn,{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)(g_,{labelA11yRequirementCompleted:y?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:y?.a11yProgressSummaryRequirementNotCompleted,labelCompletionRequirement:y?.progressSummaryCompletionRequirement,labelPercentCompletion:y?.progressSummaryPercentCompletion,labelYouCompleted:y?.progressSummaryYouCompleted,percentComplete:d,trackingCompletionPercentage:C}),(0,s.jsx)(C_,{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:B,quizPassed:R,quizPassingScore:M,quizScore:A,quizTitle:k,trackingQuizId:b})]}),(L||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:ws.NS,role:"link",type:"button",children:y?.progressSummaryBackToLearning||"Back to my learning"}),L&&(!g&&p||g&&i)&&p&&P&&!c&&(0,s.jsx)("span",{className:"progress-summary__completion-control",children:(0,s.jsx)(Cs,{})})]})]}),L&&!!g&&(0,s.jsx)($_,{color:e,learningPathId:g})]})})},G_=(t,{course:{riseComCourseId:e,riseComLearningPathId:n}})=>({fetchLpUpNext:Xe()(t,v_.R,is()({courseId:e,learningPathId:n}))}),K_=Xe()(Vo()(["learningPathComplete","lpHasFailedQuiz"]),Gt()("learningPathUpNext")),Q_=(0,U.Ng)(K_,G_)(W_),c5=({contentClassName:t,...e})=>(0,s.jsx)(Rl,{type:Xu.type,children:(0,s.jsx)(Zi,{type:Xu.type,children:(0,s.jsx)(Yu,{children:(0,s.jsx)(Yi,{className:t,type:Xu.type,children:(0,s.jsx)(Q_,{...e})})})})}),Xu={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"},l5=At("Progress"),Z_=t=>t===ot.IK.CONTINUE,Y_=({hasPassed:t,nextLessonId:e,shouldSkipOnPass:n,skipToLessonId:o})=>e&&n&&o&&t?o:e,X_=({isContinueBtn:t,isPreviewMode:e})=>t&&!e,J_=({canShowContinue:t,isExport:e,isRiseCom:n,nextLesson:o})=>t&&n&&!o&&!e,q_=t=>(0,Ms.Gv)(t)&&"id"in t&&"type"in t,eW=({item:t,question:e})=>{if(t.type===ot.UQ.DRAW_FROM_QUESTION_BANK){const n=String(e.id);return t.id===n.split("-")[0]}return t.id===e.id},tW=(t,e)=>!t||!e||t.length!==e.length?!1:t.some((n,o)=>e[n]?.id!==e[o]?.id),sW=(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},nW=({lesson:t,question:e})=>{const o=t?.items?.filter(q_)?.find(a=>eW({item:a,question:e}));if(o?.type!==ot.UQ.DRAW_FROM_QUESTION_BANK)return o;const r=String(e.id).split("-")[1];return o.questions.find(a=>a.id===r)},oW=K("quiz"),Ju=0,Xi=2,rW=t=>({start:t<Xi?0:t-Xi,end:t+Xi});function aW(t){return t+1}function iW(t){return t<Ju+Xi}function cW(t,e){const{start:n,end:o}=rW(e);return{items:t.slice(n,o),startOffset:n}}function ap({activeIndex:t,index:e}){return oW("card",{active:e===t,done:e<t,next:e===t+1,penultimate:e===t+Xi,future:e>t+Xi})}var Es=l(79526);function lW({settings:t}){const e=(0,U.wA)();return(0,u.useMemo)(()=>({onChoiceSelect:n=>{e((0,Es.Yu)(n))},onFillInChange:n=>{e((0,Es.Nj)(n))},onMatchSet:n=>{e((0,Es.NC)(n))},onResponseToggle:n=>{e((0,Es.mg)(n))},onSetIndex:n=>{e((0,Es.QI)(n))},onSubmit:n=>{const{skipLessonsIfPassed:o,skipToLessonId:r}=t||{};return e((0,Es.kK)({...n,passToContinue:n.passToContinue??!1,skipLessonsIfPassed:o??void 0,skipToLessonId:r??void 0}))}}),[e,t])}function d5(t){return t.type===ot.UQ.DRAW_FROM_QUESTION_BANK}function ip(t,e){return{...e,drawn:!0,id:`${t.id}-${e.id}`}}function dW(t,e){const n=e.map(o=>({question:t.questions[o],idx:o})).filter(o=>o.question!=null);return{items:n.map(({question:o})=>ip(t,o)),indices:n.map(({idx:o})=>o)}}function uW(t){const{questions:e}=t;if(c_())return{items:e.map(i=>ip(t,i)),indices:e.map((i,c)=>c)};const n=t.drawCount,o=[],r=[],a=[];for(let i=0;i<n;i++){const c=f6({questions:e,drawnQuestionIds:o});if(!c)break;r.push(ip(t,c)),a.push(e.findIndex(h=>h.id===c.id)),o.push(String(c.id))}return{items:r,indices:a}}function hW({sourceItems:t,progress:e,lessonId:n}){const o=e?.questionsDrawn?e.questionList:void 0,r=t.filter(d5).map((d,m)=>{const p=o?.[m];return p?dW(d,p):uW(d)});let a=0;const i=t.flatMap(d=>d5(d)?r[a++].items:[d]),c=r.map(d=>d.indices),h=mW({items:i,progress:e,questionIndexList:c});return{concreteItems:i,drawPayload:{lessonId:n,lessonProgress:h}}}function mW({items:t,progress:e,questionIndexList:n}){const o=e?.items??{},r=e?.originalItemProgress,a=new Map(Object.values(o).map(c=>[c.index,c])),i=Object.fromEntries(t.map((c,h)=>{const d=r?.[h]??{},m=a.get(h);return[c.id,{...d,...m,id:c.id,index:h}]}));return{...e,questionsDrawn:!0,questionList:n,items:i}}function cp(t,e){return!!e[t.id]?.isComplete}function pW({items:t,progress:e}){const n=e?.items??{};return[...t.filter(o=>cp(o,n)),...Qu()(t.filter(o=>!cp(o,n)))]}function fW(t){const e=t.answers??[],n=Qu()(e),o=n.map(r=>e.findIndex(a=>a.id===r.id));return Object.assign({},t,{answers:n,shuffledAnswerIndices:o})}function u5({items:t,settings:e,progress:n}){const o=e?.randomizeQuestionOrder?pW({items:t,progress:n}):t;if(!e?.shuffleAnswerChoices)return o;const r=n?.items??{};return o.map(a=>cp(a,r)?a:fW(a))}function vW({lessonId:t,sourceItems:e,progress:n,settings:o}){const{concreteItems:r,drawPayload:a}=hW({sourceItems:e,progress:n,lessonId:t});return{resolvedItems:u5({items:r,settings:o??void 0,progress:a.lessonProgress}),drawPayload:a}}function Poe(t){return u5({items:t.items,settings:t.settings,progress:t.progress})}function Moe({lessonIds:t,lessons:e}){return!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(a=>{const i=e[a];return i&&i.type!=null&&i.type!=="section"})})}function gW(t,e){const n=Vs(t),o=Tn(n)?n.settings:void 0,r=t?(0,Ye.GJ)({id:t,passingScore:e?.passingScore??ot.hB}):void 0;return(0,u.useMemo)(()=>o&&{...o,passingScore:r??o?.passingScore??ot.hB},[o,r])}const qu=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):void 0;function h5(){const[t,e]=(0,u.useState)(qu?.matches??!1);return(0,u.useEffect)(()=>{if(!qu)return;const n=o=>e(o.matches);return qu.addEventListener("change",n),()=>qu.removeEventListener("change",n)},[]),t}function CW({lessonId:t}){const e=(0,U.wA)(),n=Vs(t),o=Tn(n)?n:void 0,r=oi(t),a=(0,u.useMemo)(()=>o?.items??[],[o?.items]),i=gW(t,r),[{resolvedItems:c,drawPayload:h}]=(0,u.useState)(()=>vW({lessonId:t,progress:r,settings:i,sourceItems:a}));(0,u.useEffect)(()=>{e((0,Es.x6)({...h,lessonId:t}))},[]);const d=r?.activeIndex??0,m=h5();return xW({activeIndex:d,isReduceMotion:m,progress:r,resolvedItems:c,settings:i,sourceItems:a}),{activeIndex:d,progress:r,resolvedItems:c,retryAttempts:r?.retryAttempts??0,settings:i,sourceItems:a}}function xW({activeIndex:t,isReduceMotion:e,progress:n,resolvedItems:o,settings:r,sourceItems:a}){const i=(0,u.useRef)(t);(0,u.useEffect)(()=>{},[t])}const bW=t=>t.length===3,yW=t=>{const e=t.findIndex(n=>n==="answers");return e===-1?null:t[e+1]?.id},LW=t=>{const e=t.findIndex(n=>n==="questions");return e===-1?null:t[e+1]?.id},EW=t=>{const e=t.at(-1);return typeof e=="string"&&e.startsWith("feedback")},TW=({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},SW=(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)},IW=({lessonId:t,items:e})=>{const n=(0,U.wA)(),o=(0,u.useCallback)(({lessonId:a,progressId:i,question:c,answer:h},d=!0)=>{switch(c.type){case"MULTIPLE_CHOICE":n((0,Es.Yu)({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(h)}));break;case"MULTIPLE_RESPONSE":n((0,Es.mg)({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(h)}));break;case"FILL_IN_THE_BLANK":n((0,Es.Nj)({lessonId:a,itemId:i,text:typeof h.title=="string"?h.title:""}));break;case"MATCHING":n((0,Es.NC)({lessonId:a,itemId:i,matches:d?Object.fromEntries(c.answers.map(m=>[m.id,m.id])):{}}));break}},[n]),r=(0,u.useCallback)(({detail:a})=>{const{lessonId:i,path:c}=a,h=String(a.itemId);if(i!==t)return;if(bW(c)){n((0,Es.FU)(t));return}const d=LW(c),m=TW({items:e,itemId:h,questionBankQuestionId:d});if(!m)return;const p=d?`${h}-${d}`:h;if(n((0,Es.QI)({lessonId:t,progressId:p})),EW(c)){const f=yW(c),v=f?m.answers.find(({id:x})=>x===f)??null:null,g=c.at(-1),C=g==="feedbackCorrect",b=SW(v,m,g);m.type==="MULTIPLE_RESPONSE"&&n((0,Es.RW)({lessonId:t,itemId:p})),b.forEach(x=>{o({lessonId:t,question:m,progressId:p,answer:x},C)}),n((0,Es.kK)({finalRetryAttempt:!1,lessonId:t,isCorrect:C,itemId:p,passToContinue:!0}))}},[n,t,e,o]);(0,u.useEffect)(()=>(window.addEventListener(Kt,r),()=>{window.removeEventListener(Kt,r)}),[r])},NW=K("quiz-item");function jW({activeIndex:t,children:e,index:n,isActive:o,isComplete:r,isCorrect:a,isTimedQuiz:i,settings:c}){const h=c?.correctAnswerColor??void 0,d=c?.incorrectAnswerColor??void 0,f={"--color-feedback-icon":a?h:d,"--color-matching-feedback-bubble-bg":d,"--color-multiple-choice-complete-border":d,"--color-multiple-choice-correct-border":h,"--color-multiple-response-correct-border":h,"--color-multiple-response-incorrect-border":d,"--color-multiple-response-option-check":r?h:void 0,"--color-quiz-option-check":h,"--color-x-fill":d};return(0,s.jsx)("div",{className:ap({activeIndex:t,index:n}),"data-testid":"quiz-item-card",inert:o?void 0:!0,children:(0,s.jsx)("div",{className:NW("content"),children:(0,s.jsx)(Mg,{isActive:o,isComplete:r,isTimedQuiz:!!i,style:f,children:(0,s.jsx)("div",{hidden:!o&&!r,children:e})})})})}const kW=K("quiz-card");function AW({blockId:t,enableVideoPlaybackSpeed:e,index:n,isActive:o,item:r,labels:a,media:i}){const c=In();if(!i)return null;const h=c(i),{audio:d,image:m,video:p,embed:f}=h??{},v={allowTabNavigation:o,blockId:t,enableVideoPlaybackSpeed:e,item:r,labels:a};return d&&m?(0,s.jsx)("div",{className:`${kW("media",{"image-with-audio":!0})}`,children:(0,s.jsx)(_r,{...v,index:String(n),isOverlayAudio:!0,media:i})}):d&&(p||f)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_r,{...v,index:`${n}-audio`,media:{audio:d}}),(0,s.jsx)(_r,{...v,index:String(n),media:p?{video:p}:{embed:f},shouldPause:!o})]}):(0,s.jsx)(_r,{...v,index:String(n),media:i,shouldPause:!o})}function m5(t,e){if(t===void 0||!e)return;if(Array.isArray(t))return t.map(o=>e.indexOf(o)).filter(o=>o!==-1);const n=e.indexOf(t);return n===-1?void 0:n}const{FILL_IN_THE_BLANK:RW,MATCHING:wW,MULTIPLE_CHOICE:PW,MULTIPLE_RESPONSE:MW}=ot.UQ;function OW({color:t,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:h,isCorrect:d,isReduceMotion:m,isRetaking:p,isShuffled:f,item:v,itemProgress:g,labels:C,onChoiceSelect:b,onFillInChange:x,onMatchSet:y,onResponseToggle:E,onSubmit:L,prefersKeyboardNavigation:T,questionHtmlId:S,quizAcceptableResponses:I,quizAnswerPlaceholder:N,revealAnswers:k}){const{answers:M,type:R}=v,A=c&&!h,B=M??[],P=("correct"in v?v.correct:void 0)??"",O=("corrects"in v?v.corrects:void 0)??[],D=g?.text??"",$=g?.matches??{},H=(0,u.useCallback)(({title:W})=>(0,s.jsx)(bt,{allowTabNavigation:c,className:"quiz-multiple-choice-option__label",value:W}),[c]),F=(0,u.useCallback)(({title:W})=>(0,s.jsx)(bt,{allowTabNavigation:c,tagName:"span",value:W}),[c]);switch(R){case RW:return(0,s.jsx)(Fg,{allowTabNavigation:c,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isComplete:h,isCorrect:d,labels:C,onChange:x,onEnterToSubmit:L,options:B,questionHtmlId:S,quizAcceptableResponses:I,quizAnswerPlaceholder:N,revealAnswers:k,value:D});case wW:return(0,s.jsx)(_g,{answers:B,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:h,matches:$,onChange:y,prefersKeyboardNavigation:T,revealAnswers:k});case MW:{const W=g?.selectedIndices,de=g?.shuffledAnswerIndices??[],fe=f?m5(W,de):W;return(0,s.jsx)(Kg,{allowTabNavigation:c,correctIds:O,errorMessageId:r,isComplete:h,isCorrect:d,isRetaking:p,labels:C,onChange:E,onEnterToSubmit:L,options:B,questionHtmlId:S,renderOptionText:F,revealAnswers:k,selectedIndices:fe??[]})}case PW:default:{const W=g?.selectedIndex,de=g?.shuffledAnswerIndices??[],fe=f?m5(W,de):W;return(0,s.jsx)(Gg,{allowTabNavigation:A,color:t,correctId:P,errorMessageId:r,isComplete:h,isCorrect:d,isReduceMotion:m,isRetaking:p,labels:C,onChange:b,onEnterToSubmit:L,options:B,questionHtmlId:S,renderOptionText:H,revealAnswers:k,selectedIndex:fe??-1})}}}const Pa=K("quiz-card");function BW({color:t,enableVideoPlaybackSpeed:e,hasStart:n,index:o,interaction:r,isQuestionBankQuiz:a,isReduceMotion:i,isShuffled:c,item:h,items:d,labels:m,onTakeAgain:p,prefersKeyboardNavigation:f,progress:v,settings:g,showNextButton:C}){const{canProceed:b,canSubmit:x,errorIncomplete:y,feedbackRef:E,errorMessageId:L,feedbackValue:T,handleChoiceSelect:S,handleFillInChange:I,handleMatchSet:N,handleNextFeedbackClick:k,handleResponseToggle:M,handleSubmit:R,handleTakeAgain:A,isActive:B,isComplete:P,isCorrect:O,isRetaking:D,itemProgress:$,quizItemHtmlId:H,selection:F,wrapperRef:W}=r,de=n?o+1:o,fe=g?.revealAnswers===!0?ot.iV.ALL:g?.revealAnswers??ot.iV.NONE,Se=`q-${h.id}`,De=h.settings,Ie=g?.correctAnswerColor??void 0,Ne=g?.correctAnswerColorContrast??void 0,ae=g?.incorrectAnswerColor??void 0,Z=g?.incorrectAnswerColorContrast??void 0,ve=m?.quizQuestion??"",we=m?.quizAcceptableResponses??"",Me=m?.quizAnswerPlaceholder??"",Ae=m?.quizCorrect??"",Ue=m?.quizIncorrect??"",it=m?.quizSubmit??"",rt=v?.percentComplete===100&&a?m?.quizRestart??"":m?.quizNext??"";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(vF,{isActive:B,labels:m,questionLabel:ve,questionNumber:o+1,totalQuestions:d.length}),(0,s.jsx)(CF,{allowTabNavigation:B,htmlId:Se,value:h.title}),(0,s.jsx)(AW,{blockId:h.id,enableVideoPlaybackSpeed:e,index:de,isActive:B,item:h,labels:m,media:h.media}),(0,s.jsx)(Hg,{type:h.type,children:(0,s.jsx)("div",{ref:W,children:(0,s.jsx)(OW,{canSubmit:x,color:t,columnBehavior:De?.columnBehavior,correctAnswerColor:Ie,correctAnswerColorContrast:Ne,errorMessageId:L,incorrectAnswerColor:ae,incorrectAnswerColorContrast:Z,isActive:B,isComplete:P,isCorrect:O,isReduceMotion:i,isRetaking:D,isShuffled:c,item:h,itemProgress:$,labels:m,onChoiceSelect:S,onFillInChange:I,onMatchSet:N,onResponseToggle:M,onSubmit:R,prefersKeyboardNavigation:f,questionHtmlId:Se,quizAcceptableResponses:we,quizAnswerPlaceholder:Me,revealAnswers:fe})})}),(0,s.jsx)("div",{"aria-live":"assertive",children:y&&(0,s.jsxs)("div",{className:`${Pa("validations")}`,"data-testid":"quiz-validation-error",children:[(0,s.jsx)(Je,{className:`${Pa("validation-icon")}`,"data-testid":"quiz-validation-icon",name:"alert-circle"}),(0,s.jsx)("span",{id:`${H}-error-incomplete-message`,children:m?.quizRequireAnswer})]})}),(0,s.jsx)(Dg,{canProceed:b,feedbackRef:E,feedbackValue:T,isActive:B,isComplete:P,isCorrect:O,item:h,labels:m,quizCorrect:Ae,quizIncorrect:Ue,revealAnswers:fe,selection:F}),(0,s.jsx)(Pg,{allowNext:!p,canProceed:b,canSubmit:x,isReduceMotion:i,onNext:C?k:void 0,onSubmit:R,quizNext:rt,quizSubmit:it}),p&&(0,s.jsx)("div",{className:`${Pa("retake-container",{active:P})}`,children:(0,s.jsx)("button",{className:`${Pa("retake",{active:P})}`,onClick:A,type:"button",children:(0,s.jsxs)("div",{className:`${Pa("retake-content")}`,children:[(0,s.jsx)("div",{className:`${Pa("retake-text")}`,children:"TAKE AGAIN"}),(0,s.jsx)("i",{className:`${Pa("retake-icon")} icon icon-reload`})]})})})]})}const{FILL_IN_THE_BLANK:p5,MATCHING:f5,MULTIPLE_CHOICE:v5,MULTIPLE_RESPONSE:g5}=ot.UQ;function DW(t,e){return t?.items?.[e]??{}}function HW(t,e,n,o,r){switch(t.type){case p5:return Jg({answers:t.answers??[],text:e.text,caseSensitive:t.settings?.isCaseSensitive??!1,getL10nValue:r});case f5:return qg(e.matches??{});case g5:return s6({isShuffled:n,item:t,selectedIndices:e.selectedIndices,shuffledAnswerIndices:e.shuffledAnswerIndices});case v5:default:return e6({isCorrectAnswerUnshuffled:o,isShuffled:n,item:t,selectedIndex:e.selectedIndex,shuffledAnswerIndices:e.shuffledAnswerIndices})}}function FW(t,e){switch(t.type){case p5:return e.text;case f5:return e.matches;case g5:return e.selectedIndices;case v5:default:return e.selectedIndex}}const{FILL_IN_THE_BLANK:VW,MATCHING:zW,MULTIPLE_CHOICE:$W,MULTIPLE_RESPONSE:UW}=ot.UQ;function _W({hasStart:t=!1,id:e,index:n,isCorrectAnswerUnshuffled:o=!1,isShuffled:r=!1,item:a,onChoiceSelect:i,onFillInChange:c,onMatchSet:h,onResponseToggle:d,onTakeAgain:m,progress:p,reportAnswer:f,retryAttempts:v=0,setNextIndex:g,settings:C,submitAction:b,title:x}){const y=In(),E=V2(),[L,T]=(0,u.useState)(!1),[S,I]=(0,u.useState)(Date.now),[N,k]=(0,u.useState)(!1),M=(0,u.useRef)(null),R=(0,u.useRef)(null),A=(0,u.useId)(),B=(0,u.useRef)({canSubmit:!1,isCorrect:!1,item:a,itemId:String(a.id),itemProgress:{},retryAttempts:v,revealAnswers:ot.iV.NONE,settings:C,startTime:S,title:x}),P=t?n+1:n,O=p?.activeIndex??0,D=P===O,$=DW(p,a.id),H=$?.isComplete??!1,F=HW(a,$,r,o,y),W=C?.revealAnswers===!0?ot.iV.ALL:C?.revealAnswers??ot.iV.NONE,de=W===ot.iV.ALL||W===ot.iV.INCORRECT,fe=D&&H&&de,Se=D&&!H&&Yg({answersLength:a.answers?.length??0,matches:$?.matches,selectedIndex:$?.selectedIndex,selectedIndices:$?.selectedIndices,text:$?.text,type:a.type});B.current={canSubmit:Se,isCorrect:F,item:a,itemId:String(a.id),itemProgress:$,retryAttempts:v,revealAnswers:W,settings:C,startTime:S,title:x};const De=$?.selectedIndex,Ie=n6({answers:a.answers,feedback:"feedback"in a?a.feedback:void 0,feedbackCorrect:"feedbackCorrect"in a?a.feedbackCorrect:void 0,feedbackIncorrect:"feedbackIncorrect"in a?a.feedbackIncorrect:void 0,feedbackType:"feedbackType"in a?a.feedbackType:void 0,isCorrect:F,isShuffled:r,selectedIndex:De,shuffledAnswerIndices:a.shuffledAnswerIndices}),Ne=FW(a,$),ae=L?`${A}-error-incomplete-message`:void 0,Z=(0,u.useCallback)(()=>{T(!1)},[]),ve=String(a.id),we=(0,u.useCallback)(({selectedIndex:zt})=>{Z(),i?.({lessonId:e,itemId:ve,selectedIndex:zt,shuffledAnswerIndices:a.shuffledAnswerIndices})},[e,ve,a.shuffledAnswerIndices,i,Z]),Me=(0,u.useCallback)(zt=>{Z(),c?.({lessonId:e,itemId:ve,text:zt})},[e,ve,c,Z]),Ae=(0,u.useCallback)(zt=>{Z(),h?.({lessonId:e,itemId:ve,matches:zt})},[e,ve,h,Z]),Ue=(0,u.useCallback)(({optionIndex:zt})=>{Z(),d?.({lessonId:e,itemId:ve,selectedIndex:zt,shuffledAnswerIndices:a.shuffledAnswerIndices})},[e,ve,a.shuffledAnswerIndices,d,Z]),it=(0,u.useCallback)((zt=()=>{},Rs)=>{Rs&&zt(Rs),g?.({lessonId:e})},[e,g]),rt=(0,u.useCallback)((zt,Rs)=>{at.pause(),it(zt??(()=>{}),Rs)},[it]),vt=(0,u.useCallback)(()=>{D&&rt()},[D,rt]),ft=(0,u.useCallback)(zt=>{zt.preventDefault();const{canSubmit:Rs,isCorrect:ir,item:No,itemId:jo,itemProgress:cr,retryAttempts:so,revealAnswers:Er,settings:no,startTime:ko,title:nc}=B.current;if(!Rs){switch(T(!0),No.type){case VW:case UW:case $W:R.current?.querySelector("input")?.focus();break;case zW:R.current?.querySelector("button")?.focus();break;default:break}return}const Ba={startTime:ko,stopTime:Date.now()},{passToContinue:_t}=no??{},dn=no?.retryCount??-1,Ao=parseInt(String(dn),10),Tr=parseInt(String(so),10),Hl=Ao===Tr,oc=E({duration:Ba,id:e,isCorrect:ir,item:No,itemProgress:cr,retryAttempts:so,title:nc});f?.(oc);const Hs={finalRetryAttempt:Hl,lessonId:e,isCorrect:ir,itemId:jo,passToContinue:_t,revealAnswers:Er};if(Er===ot.iV.ALL||Er===ot.iV.INCORRECT){b?.(Hs);return}rt(b,Hs)},[E,rt,e,f,b]),ts=(0,u.useCallback)(()=>{k(!0),setTimeout(()=>{m?.(),k(!1)},50)},[m]),ln=(0,Te.A)(D)??!1,ar=(0,Te.A)(H)??!1;return(0,u.useEffect)(()=>{!ln&&D&&I(Date.now())},[D,ln]),{activeIndex:O,canProceed:fe,canSubmit:Se,feedbackRef:M,errorIncomplete:L,errorMessageId:ae,feedbackValue:Ie,handleChoiceSelect:we,handleFillInChange:Me,handleMatchSet:Ae,handleNextFeedbackClick:vt,handleResponseToggle:Ue,handleSubmit:ft,handleTakeAgain:ts,isActive:D,isComplete:H,isCorrect:F,isRetaking:N,itemProgress:$,prevIsActive:ln,prevIsComplete:ar,quizItemHtmlId:A,selection:Ne,wrapperRef:R}}const WW=3;function GW({feedbackRef:t,isActive:e,isComplete:n,isReduceMotion:o,prevIsActive:r,prevIsComplete:a,quizTop:i,revealAnswers:c,scrollId:h}){const d=(0,u.useRef)(void 0);(0,u.useEffect)(()=>()=>{clearTimeout(d.current)},[]),(0,u.useEffect)(()=>{if(!r&&e){const m=i??WW,p=o?"instant":"smooth";document.getElementById(h??"page-wrap")?.scrollTo({top:m,behavior:p})}},[e,r,o,i,h]),(0,u.useEffect)(()=>{if(!(!e||c===ot.iV.NONE||o))return!a&&n&&(clearTimeout(d.current),d.current=setTimeout(()=>{const m=t.current;if(!m)return;const p=m.offsetHeight+m.offsetTop,f=o?"instant":"smooth";document.getElementById(h??"page-wrap")?.scrollTo({top:p,behavior:f})},750)),()=>{clearTimeout(d.current)}},[t,e,n,o,a,c,h])}const KW=K("quiz-item");function QW({color:t,enableVideoPlaybackSpeed:e,hasStart:n=!1,id:o,index:r,isCard:a=!1,isCorrectAnswerUnshuffled:i,isQuestionBankQuiz:c=!1,isShuffled:h=!1,isTimedQuiz:d,item:m,items:p,labels:f={},onChoiceSelect:v,onFillInChange:g,onMatchSet:C,onResponseToggle:b,onTakeAgain:x,prefersKeyboardNavigation:y,progress:E,quizTop:L,reportAnswer:T,retryAttempts:S=0,scrollId:I,setNextIndex:N,settings:k={revealAnswers:ot.iV.ALL},showNextButton:M=!0,submitAction:R,title:A}){const B=h5(),P=_W({hasStart:n,id:o,index:r,isCorrectAnswerUnshuffled:i,isShuffled:h,item:m,onChoiceSelect:v,onFillInChange:g,onMatchSet:C,onResponseToggle:b,onTakeAgain:x,progress:E,reportAnswer:T,retryAttempts:S,setNextIndex:N,settings:k,submitAction:R,title:A}),{activeIndex:O,feedbackRef:D,isActive:$,isComplete:H,isCorrect:F,prevIsActive:W,prevIsComplete:de}=P,fe=k?.revealAnswers===!0?ot.iV.ALL:k?.revealAnswers??ot.iV.NONE;GW({feedbackRef:D,isActive:$,isComplete:H,isReduceMotion:B,prevIsComplete:de,prevIsActive:W,quizTop:L,revealAnswers:fe,scrollId:I});const Se=(0,s.jsx)(BW,{color:t,enableVideoPlaybackSpeed:e,hasStart:n,index:r,interaction:P,isQuestionBankQuiz:c,isReduceMotion:B,isShuffled:h,item:m,items:p,labels:f,onTakeAgain:x,prefersKeyboardNavigation:y,progress:E,settings:k,showNextButton:M});return a?(0,s.jsx)(jW,{activeIndex:O,index:n?r+1:r,isActive:$,isComplete:H,isCorrect:F,isTimedQuiz:d,settings:k,children:Se}):(0,s.jsx)("div",{className:KW("wrap"),children:Se})}const os=K("odometer"),C5=1e3,x5=2e3,ZW=4e3,YW=750,e0=200,lp=170,qn=e0/2,eo=lp/2,wl=70,b5=1.5,XW=2.5,JW=225,qW=135,y5=270,dp=7,Ji={start:{dx:-19,dy:8},mid:{dx:-5,dy:22},end:{dx:26,dy:-7}},Zr={size:12,topOffset:-3,bottomOffset:21};function eG(t){return t<.5?16*t**5:1+16*(t-1)**5}function tG(t){return t<.5?2*t**2:1-(-2*t+2)**2/2}function t0({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 up({centerX:t,centerY:e,counterClockwise:n=!1,endAngle:o,radius:r,startAngle:a}){const i=t0({angle:a,centerX:t,centerY:e,radius:r}),c=t0({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} ${c.x} ${c.y}`}function L5(t,e,n){return e+n*y5*t/100}function sG({hasPassed:t,isResultsVisible:e,isRTL:n,onAnimationDone:o,passingLabel:r,passingScore:a,score:i=0,scoreLabel:c,shouldAnimate:h}){const[d,m]=(0,u.useState)(0),[p,f]=(0,u.useState)(0),[v,g]=(0,u.useState)(!1),b=`hatch-pattern${(0,u.useId)()}`,x=(0,u.useRef)(null),y=(0,u.useRef)(!1),E=(0,u.useRef)([]),L=(0,u.useCallback)(()=>{E.current.forEach(clearTimeout),E.current=[]},[]),T=(0,u.useCallback)(()=>{x.current!==null&&(cancelAnimationFrame(x.current),x.current=null),L()},[L]);(0,u.useEffect)(()=>{e||(T(),y.current=!1,m(0),f(0),g(!1))},[e,T]),(0,u.useEffect)(()=>{if(!e||!h||y.current)return;y.current=!0;const Se=i,De=setTimeout(()=>{let Ie=null;const Ne=ae=>{Ie===null&&(Ie=ae);const Z=ae-Ie,ve=Math.min(Z/x5,1),we=eG(ve),Me=tG(ve);if(f(we),m(Math.round(Me*Se)),ve<1)x.current=requestAnimationFrame(Ne);else{f(1),m(Se);const Ae=setTimeout(()=>{g(!0);const Ue=setTimeout(()=>{o?.()},YW);E.current.push(Ue)},ZW-C5-x5);E.current.push(Ae)}};x.current=requestAnimationFrame(Ne)},C5);E.current.push(De)},[e,h,i,o]),(0,u.useEffect)(()=>()=>{T()},[T]);const S=n?qW:JW,I=n?-1:1,N=L5(a,S,I),k=L5(p*i,S,I),M=S+I*y5,R=t0({centerX:qn,centerY:eo,radius:wl,angle:k}),A=t0({centerX:qn,centerY:eo,radius:wl,angle:N}),B=p*i>=a,P=n?`%${a}`:`${a}%`,O=n?`%${d}`:`${d}%`,D=`${c} ${n?`%${i}`:`${i}%`}`,$=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:os("pass-mark-label"),children:r}),(0,s.jsx)("div",{className:os("pass-mark-percent"),children:P})]}),H=up({centerX:qn,centerY:eo,counterClockwise:n,radius:wl,startAngle:S,endAngle:M}),F=up({centerX:qn,centerY:eo,counterClockwise:n,radius:wl+3,startAngle:N,endAngle:M}),W=p>0?up({centerX:qn,centerY:eo,counterClockwise:n,radius:wl,startAngle:S,endAngle:k}):"",de={x:A.x+(n?-13:13),y:A.y-13},fe={x:de.x+(n?-13:13),y:de.y};return(0,s.jsxs)("div",{className:os(),children:[(0,s.jsxs)("svg",{"aria-hidden":"true",className:os("svg"),viewBox:`0 0 ${e0} ${lp}`,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:os("hatch-line"),x1:"0",x2:"0",y1:"0",y2:"1.5"})})}),(0,s.jsx)("path",{className:os("passing-zone"),d:F,fill:"none",stroke:`url(#${b})`,strokeWidth:"6"}),(0,s.jsxs)("g",{className:os("pass-mark-lines"),children:[(0,s.jsx)("line",{className:os("pass-mark-line"),x1:A.x,x2:de.x,y1:A.y,y2:de.y}),(0,s.jsx)("line",{className:os("pass-mark-line"),x1:de.x,x2:fe.x,y1:de.y,y2:fe.y})]}),(0,s.jsx)("path",{className:os("track"),d:H,fill:"none",strokeWidth:b5}),W&&(0,s.jsx)("path",{className:os("progress",{passing:B}),d:W,fill:"none",strokeWidth:b5}),p>0&&(0,s.jsx)("circle",{className:os("dot",{passing:B}),cx:R.x,cy:R.y,r:XW}),v&&(0,s.jsx)("g",{className:os("result-icon"),children:t?(0,s.jsx)("path",{className:os("checkmark"),d:`M ${qn+Ji.start.dx} ${eo+Ji.start.dy} L ${qn+Ji.mid.dx} ${eo+Ji.mid.dy} L ${qn+Ji.end.dx} ${eo+Ji.end.dy}`,fill:"none",strokeLinecap:"square",strokeLinejoin:"miter",strokeWidth:dp}):(0,s.jsxs)("g",{className:os("x-mark"),children:[(0,s.jsx)("path",{className:os("x-line",{first:!0}),d:`M ${qn-Zr.size} ${eo+Zr.topOffset} L ${qn+Zr.size} ${eo+Zr.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:dp}),(0,s.jsx)("path",{className:os("x-line",{second:!0}),d:`M ${qn+Zr.size} ${eo+Zr.topOffset} L ${qn-Zr.size} ${eo+Zr.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:dp})]})})]}),(0,s.jsxs)("div",{className:os("score",{pass:v&&t,fail:v&&!t}),children:[(0,s.jsx)("div",{className:os("score-label"),children:c}),(0,s.jsx)("div",{className:os("pass-label"),children:D}),(0,s.jsx)("div",{className:os("fail-label"),children:D}),(0,s.jsx)("div",{className:os("score-percent",{hidden:v}),children:O})]}),(0,s.jsx)("div",{className:os("pass-mark"),style:{"--pass-mark-x":`${(n?e0-fe.x:fe.x)/e0*100}%`,"--pass-mark-y":`${(fe.y+3)/lp*100}%`},children:$}),(0,s.jsx)("div",{className:os("pass-mark-mobile"),children:$})]})}var nG;const oG=t=>t===et.Yq.PREVIEW,Ooe=t=>t!==nG.HIDDEN,E5=(0,u.createContext)({handleExpiredQuiz:Zs.lQ,hideTimer:Zs.lQ,quizTime:0,resetQuizTimer:Zs.lQ,timerDuration:0,timerHidden:!1,timerRunning:!1});function rG({children:t,handleExpiredQuiz:e=()=>{},isTimedQuiz:n,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const i=(0,u.useRef)(void 0),[c,h]=(0,u.useState)(),[d,m]=(0,u.useState)(!1),[p,f]=(0,u.useState)(!1),[v,g]=(0,u.useState)(),C=(0,u.useMemo)(()=>Number(a),[a]),{activeIndex:b,endIndex:x,lessonId:y,lessonProgress:E,startIndex:L}=(0,u.useMemo)(()=>{const D=o?.currentLesson,$=o?.lessons?.[D],H=$?.activeIndex||0,F=Object.keys($?.items||{}).length+1;return{activeIndex:H,lessonId:D,endIndex:F,lessonProgress:$,startIndex:0}},[o]),T=(0,Te.A)(y),S=(0,Te.A)(b),I=(0,u.useCallback)(()=>{h(C*60)},[C]),N=(0,u.useCallback)(()=>{h(D=>D-1)},[h]),k=(0,u.useCallback)(()=>{m(!0),i.current||(i.current=setInterval(N,1e3))},[N,m]),M=(0,u.useCallback)(D=>{f(D!==void 0?D:!p)},[p]),R=(0,u.useCallback)(()=>{m(!1),i.current&&(i.current=clearInterval(i.current))},[m]),A=(0,u.useCallback)(()=>{c&&v!==void 0&&r({lessonId:v,timeRemaining:c})},[v,c,r]),B=(0,u.useCallback)(()=>{A(),h(void 0)},[h,A]),P=(0,u.useCallback)(()=>h(E.timeRemaining||C*60),[E,C,h]);(0,u.useEffect)(()=>{if(!n)return;const D=T!==y,$=D&&c,H=D&&n;n&&!D&&v!==y&&g(y),$&&B(),H&&P()},[n,v,y,T,c,P,B]),(0,u.useEffect)(()=>{if(n)switch(b){case L:R();break;case x:I(),R();break;default:k(),S!==b&&T===y&&A()}},[b,x,n,y,S,T,I,L,k,R,A]),(0,u.useEffect)(()=>{n&&c<1&&R()},[n,c,R]);const O=(0,u.useMemo)(()=>({handleExpiredQuiz:e,hideTimer:M,quizTime:c,resetQuizTimer:I,timerDuration:C,timerHidden:p,timerRunning:d}),[e,M,c,I,C,p,d]);return(0,s.jsx)(E5.Provider,{value:O,children:t})}const T5=()=>(0,u.useContext)(E5),aG=t=>t.isTimedQuiz?(0,s.jsx)(rG,{...t,children:t.children}):(0,s.jsx)(s.Fragment,{children:t.children}),iG={currentLesson:void 0,isRestricted:!1,isRestrictedCourse:!1,restrictingQuiz:{}};function cG(t){const e=Lt(),n=ss(),o=Vs(t??""),r=(0,u.useMemo)(()=>{if(!e||!n||!o)return iG;const h=ra({course:e,courseProgress:n});return ia({course:e,courseProgress:n,lesson:o,restrictingQuiz:h})},[e,n,o]),{restrictingQuiz:a}=r,i="title"in a?a.title:void 0,c=fs(i);return(0,u.useMemo)(()=>i?{...r,restrictingQuiz:{...a,title:c}}:r,[r,a,i,c])}const lG=K("quiz-results");function dG({isFooterVisible:t,isResultsVisible:e,onTryAgainFocus:n}){const o=(0,U.wA)(),{mode:r}=(0,se.g)(),a=oG(r),i=Kn(),c=oi(i),{passed:h=!1,retryAttempts:d=0}=c??{},{continueType:m,retryCount:p,skipLessonsIfPassed:f,skipToLessonId:v}=s4(i),{resetQuizTimer:g}=T5(),C=Z_(m),b=(0,ht.useLabelsMap)(),x=t4(i),y=cG(x),{isRestricted:E}=y,{courseFinish:L,quizContinue:T,quizTakeAgain:S}=b??{},I=Y_({hasPassed:h,nextLessonId:x,shouldSkipOnPass:f,skipToLessonId:v}),N=X_({isContinueBtn:C,isPreviewMode:a}),k=J_({canShowContinue:N,isExport:(0,Ye.Hm)(),isRiseCom:_e.BI,nextLesson:I}),M=(0,u.useCallback)(()=>{g(),o((0,Es.FU)(i))},[o,g,i]);return(0,s.jsxs)("div",{className:lG("footer",{active:e,hidden:!t}),"data-testid":"quiz-results-footer",children:[(p===-1||d<p)&&(0,s.jsx)(B6,{allowTabNavigation:e,onClick:M,onFocus:n,text:S}),N&&E&&I&&b&&(0,s.jsx)(kg,{bgType:"transparent",text:_l({labels:b,restrictions:y})}),N&&!E&&I&&(0,s.jsx)(Om,{href:(0,Tt.p1)(I),text:T}),k&&(0,s.jsx)(Om,{href:Tt.X1,text:L})]})}const qi=K("quiz-results");function uG({questionCount:t}){const e=Kn()??"",n=oi(e),{activeIndex:o=0,passed:r=!1,passingScore:a=ot.hB,reportResults:i=!1,score:c=0}=n??{},h=(0,ht.useLabelsMap)(),d=vn(),[m,p]=(0,u.useState)(!1),f=t+1===o,v=(0,u.useRef)(f),g=(0,u.useRef)(void 0),C=(0,u.useRef)(null),b=(0,u.useId)(),{a11yQuizFailed:x="",a11yQuizPassed:y="",quizPassing:E="",quizResults:L="",quizScore:T=""}=h??{},S=`quiz-results-desc-${b}`,I=(0,u.useCallback)(()=>{g.current=setTimeout(()=>{p(!0),window.dispatchEvent(new CustomEvent(Kd))},ot.R8)},[]),N=(0,u.useCallback)(()=>{clearTimeout(g.current),g.current=void 0,p(!0)},[]);return(0,u.useEffect)(()=>()=>{clearTimeout(g.current)},[]),(0,u.useEffect)(()=>{f!==v.current&&(f?C.current?.focus():p(!1),v.current=f)},[f]),(0,s.jsx)("div",{className:qi(),children:(0,s.jsx)("div",{className:qi("container"),children:(0,s.jsxs)("div",{className:qi("content",{active:f}),"data-testid":"quiz-results",children:[(0,s.jsxs)("div",{className:qi("header"),children:[(0,s.jsx)("h1",{"aria-describedby":S,className:qi("label").mix("noOutline"),ref:C,tabIndex:-1,children:L}),(0,s.jsxs)("div",{className:"visually-hidden-always",id:S,children:[(0,s.jsx)("div",{children:`${E}: ${a}%`}),(0,s.jsx)("div",{children:`${T}: ${c}%`}),(0,s.jsx)("div",{children:r?y:x})]})]}),(0,s.jsx)("div",{"aria-hidden":"true",className:qi("results"),children:(0,s.jsx)(sG,{hasPassed:r,isResultsVisible:f,isRTL:d,onAnimationDone:I,passingLabel:E,passingScore:a,score:c,scoreLabel:T,shouldAnimate:i})}),(0,s.jsx)(dG,{isFooterVisible:m,isResultsVisible:f,onTryAgainFocus:N})]})})})}const hG=5,mG=15,pG=30,fG=60,vG=180,S5=300,I5=600,N5=120,gG=t=>t<=hG?{regularInterval:fG,lowTimeThreshold:N5}:t<=mG?{regularInterval:vG,lowTimeThreshold:N5}:t<=pG?{regularInterval:S5,lowTimeThreshold:S5}:{regularInterval:I5,lowTimeThreshold:I5},CG=(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 sr=l(26372);const an=K("quiz-timer"),hp=(t,e)=>`${t.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`,xG=t=>{const e=Math.floor(t/60),n=t%60;return hp(e,n)},j5=t=>{const e=Math.floor(t/60),n=t%60;return hp(e,n)},bG=t=>hp(t,0),k5=({area:t,exitCourseEnabled:e=!1,isStartScreenActive:n=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:i,labelQuizTimerExpiredMessage:c,labelQuizTimerHide:h,labelQuizTimerLimit:d,labelQuizTimerMinute:m,labelQuizTimerMinutePlural:p,labelQuizTimerRemaining:f,labelQuizTimerShow:v,timerDisplay:g=ot.sS.REMAINING,timerEnabled:C=!1})=>{const[b,x]=sr.useState(!1),[y,E]=sr.useState(""),L=sr.useRef(null),T=sr.useRef(!1),{hideTimer:S,quizTime:I,timerDuration:N,timerHidden:k,timerRunning:M,handleExpiredQuiz:R}=T5(),A=N*60,{isCover:B,isHeader:P,isHidden:O}=sr.useMemo(()=>({isCover:t==="cover",isHeader:t==="header",isHidden:g===ot.sS.HIDE_TIMER}),[t,g]),D=n&&!B,$=sr.useMemo(()=>gG(N),[N]),H=sr.useMemo(()=>({expired:a||"Time expired",minute:m||"minute",minutePlural:p||"minutes",remaining:f||"Time left"}),[a,m,p,f]),F=()=>{x(!1),R()},W=sr.useCallback(()=>{const{regularInterval:De,lowTimeThreshold:Ie}=$,Ne=I<=Ie&&I>0&&!T.current,ae=L.current!==null&&L.current-I>=De,Z=L.current===null;if(Ne||ae){Ne&&(T.current=!0),L.current=I;const ve=CG(H.minute,H.minutePlural,H.remaining,I);E(ve)}Z&&(L.current=I)},[$,I,H]);if(sr.useEffect(()=>{C&&I!==0&&(B||W())},[W,B,C,M,I]),sr.useEffect(()=>{if(!C||I!==0||n)return;const De=setTimeout(()=>{x(!0)},1200);return()=>clearTimeout(De)},[I,C,n]),!C||D||o)return null;const de={"header-area":P,"cover-area":B,"hide-timer":O,"exit-course":e},fe={display:[B,P&&!n].some(Ra())?null:"none"},Se=()=>({[ot.sS.SUMMARY]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:an("label"),children:[d,":"]}),(0,s.jsxs)("div",{className:an("value"),children:[N," ",N===1?m:p]})]}),[ot.sS.REMAINING]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:an("label"),children:[f,":"]}),(0,s.jsx)("div",{className:an("value"),children:xG(I)})]}),[ot.sS.ELAPSED]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:an("label"),children:[r,":"]}),(0,s.jsx)("div",{className:an("value"),children:j5(A-I)})]}),[ot.sS.ELAPSED_TOTAL]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:an("label"),children:[r,":"]}),(0,s.jsxs)("div",{className:an("value"),children:[j5(A-I)," /"," ",bG(N)]})]})})[B?ot.sS.SUMMARY:g];return(0,s.jsxs)("div",{className:an(de),"data-testid":"quiz-timer",style:fe,children:[I!==0&&(0,s.jsx)("div",{"aria-atomic":"true","aria-live":"polite",className:"visually-hidden",role:"status",children:y}),I===0&&(0,s.jsx)("div",{className:"visually-hidden",role:"alert",children:a||"Time expired"}),P&&k?(0,s.jsxs)("button",{className:an("hide"),onClick:()=>S(!1),type:"button",children:[(0,s.jsx)(Je,{className:an("icon"),name:"stopwatch-regular"}),v]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:an("time"),children:[(0,s.jsx)(Je,{className:an("icon"),name:"stopwatch-regular"}),(0,s.jsx)("div",{className:an("desc"),children:Se()})]}),P&&(0,s.jsx)("button",{className:an("hide"),onClick:()=>S(!0),type:"button",children:h})]}),!B&&b&&go.createPortal((0,s.jsxs)(zh,{className:"quiz-timer-modal","data-testid":"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:F,onClose:F,onOverlayClick:()=>{},children:[(0,s.jsx)("p",{children:c}),(0,s.jsx)("button",{"data-testid":"quiz-view-results-button",onClick:F,type:"button",children:i})]}),Pr({childType:"dialog"}))]})},nr=K("quiz-start"),yG=t=>(t?.retryAttempts??0)>0;function LG({lessonId:t,isActive:e}){const n=(0,U.wA)(),o=(0,u.useRef)(null),r=oi(t),a=(0,ht.useLabelsMap)(),i=Lt(),c=M1(),h=Vs(t),d=Pp(),m=(0,U.d4)(E0),p=c?.authorName,f=c?.avatar,v=i?.theme?.showAuthor??!1,g=i?.theme?.showLessonCount??!1,C=d[t]??0,b=fs(h?.description),x=fs(h?.title),y=h?.settings?.timer,E=h?.settings?.asLesson!==!1,{a11yAuthorPrefix:L="",lessonName:T="",lessonPreposition:S="",quizStart:I="",quizTakeAgain:N="",quizTimerElapsed:k="",quizTimerExpired:M="",quizTimerExpiredAction:R="",quizTimerExpiredMessage:A="",quizTimerHide:B="",quizTimerLimit:P="",quizTimerMinute:O="",quizTimerMinutePlural:D="",quizTimerRemaining:$="",quizTimerShow:H=""}=a??{},F=yG(r),W=e&&F,de=F?"quiz-take-again-button":"quiz-start-button";(0,u.useEffect)(()=>{W&&o.current?.focus()},[W]);const fe=()=>{n((0,Es.QI)({lessonId:t}))},Se=F?N:I;return(0,s.jsx)("div",{"aria-hidden":!e,className:nr(),children:(0,s.jsx)("div",{className:nr("container"),children:(0,s.jsxs)("div",{className:nr("content"),children:[(0,s.jsxs)("div",{className:nr("header"),children:[(0,s.jsx)("div",{className:nr("counter"),children:E&&g&&(0,s.jsx)("div",{className:nr("count"),children:`${T} ${C} ${S} ${m}`})}),(0,s.jsx)("h1",{ref:o,tabIndex:-1,children:(0,s.jsx)(bt,{className:nr("title"),value:x})}),v&&f&&p?(0,s.jsxs)("div",{className:nr("author"),children:[(0,s.jsx)("img",{alt:"",src:(0,Ye.o1)(f)}),(0,s.jsxs)("span",{className:"visually-hidden",children:[L," ",p]}),(0,s.jsx)("span",{"aria-hidden":"true",children:p})]}):null]}),y&&(0,s.jsx)(k5,{area:"cover",exitCourseEnabled:i?.lmsOptions?.enableExitCourse,isStartScreenActive:e,labelQuizTimerElapsed:k,labelQuizTimerExpired:M,labelQuizTimerExpiredAction:R,labelQuizTimerExpiredMessage:A,labelQuizTimerHide:B,labelQuizTimerLimit:P,labelQuizTimerMinute:O,labelQuizTimerMinutePlural:D,labelQuizTimerRemaining:$,labelQuizTimerShow:H,timerEnabled:y}),(0,s.jsx)(bt,{allowTabNavigation:e,className:nr("description"),value:b}),(0,s.jsx)(St.ArcButton,{className:nr("start-button"),"data-testid":de,hierarchy:"plain",iconEnd:(0,s.jsx)(Je,{name:"chevron-right-solid"}),onClick:e?fe:Zs.lQ,size:"sm",tabIndex:e?void 0:-1,children:Se})]})})})}function EG(){const[t,e]=(0,u.useState)();return(0,u.useEffect)(()=>{const n=document.querySelector("[data-previous-lesson]");if(!n)return;e(n.clientHeight);const o=new ResizeObserver(([r])=>{e(r.target.clientHeight)});return o.observe(n),()=>{o.disconnect()}},[]),t}const A5=K("quiz");function TG(){const t=Kn();return t?(0,s.jsx)(SG,{lessonId:t}):null}function SG({lessonId:t}){const e=Lt(),n=e?.color,o=(0,ht.useLabelsMap)(),a=Zd()?.prefersKeyboardNavigation??!1,i=ri(t)??"",{activeIndex:c,progress:h,resolvedItems:d,retryAttempts:m,settings:p,sourceItems:f}=CW({lessonId:t}),v=lW({settings:p}),g=EG();IW({lessonId:t,items:f});const C=aW(d.length),b=iW(c),{items:x,startOffset:y}=cW(d,c);return(0,s.jsxs)("section",{className:A5(),"data-quiz":!0,"data-testid":"quiz",children:[p?.timer&&(0,s.jsx)(k5,{area:"header",exitCourseEnabled:e?.lmsOptions?.enableExitCourse,isEndScreenActive:c===C,isStartScreenActive:c===Ju,labelQuizTimerElapsed:o?.quizTimerElapsed,labelQuizTimerExpired:o?.quizTimerExpired,labelQuizTimerExpiredAction:o?.quizTimerExpiredAction,labelQuizTimerExpiredMessage:o?.quizTimerExpiredMessage,labelQuizTimerHide:o?.quizTimerHide,labelQuizTimerLimit:o?.quizTimerLimit,labelQuizTimerMinute:o?.quizTimerMinute,labelQuizTimerMinutePlural:o?.quizTimerMinutePlural,labelQuizTimerRemaining:o?.quizTimerRemaining,labelQuizTimerShow:o?.quizTimerShow,timerDisplay:p?.timerDisplay??void 0,timerEnabled:p?.timer}),(0,s.jsxs)("div",{className:A5("wrap"),children:[b&&(0,s.jsx)("div",{className:ap({activeIndex:c,index:Ju}),children:(0,s.jsx)(LG,{isActive:c===Ju,lessonId:t})}),x.map((E,L)=>{const T=E.type===ot.UQ.MULTIPLE_CHOICE;return(0,s.jsx)(QW,{color:n,hasStart:!0,id:t,index:L+y,isCard:!0,isCorrectAnswerUnshuffled:T?sW(E.shuffledAnswerIndices,E.answers,E.correct):void 0,isShuffled:tW(E.shuffledAnswerIndices,E.answers),isTimedQuiz:p?.timer,item:E,items:d,labels:o??{},onChoiceSelect:v.onChoiceSelect,onFillInChange:v.onFillInChange,onMatchSet:v.onMatchSet,onResponseToggle:v.onResponseToggle,prefersKeyboardNavigation:a,progress:h,quizTop:g,reportAnswer:Ye.bb,retryAttempts:m,scrollId:"page-wrap",setNextIndex:v.onSetIndex,settings:p??void 0,submitAction:v.onSubmit,title:i},`item-${E.id}`)}),(0,s.jsx)("div",{className:ap({activeIndex:c,index:C}),inert:C===c?void 0:!0,children:(0,s.jsx)(uG,{questionCount:d.length})})]})]})}const IG=({data:{type:t},lessonProgress:e})=>(0,s.jsx)(Rl,{type:t,children:(0,s.jsx)(Zi,{type:t,children:(0,s.jsx)(Yu,{children:(0,s.jsxs)(Yi,{className:void 0,type:t,children:[(0,s.jsx)(l5,{lessonProgress:e,type:"quiz"}),(0,s.jsx)(TG,{},e?.retryAttempts??0)]})})})});var NG=l(87690),mp=l.n(NG);function jG({authors:t,lessonAuthor:e,courseAuthor:n,selectedAuthorId:o}){if(o==="none")return{};if(o){const r=mp()(t,{id:o});if(r)return r}if(e){const r=mp()(t,{id:e});if(r)return r}if(n){const r=mp()(t,{id:n});if(r)return r}return{}}const R5={addEventListeners(t,e){t.addEventListener("animationend",e,!1)},removeEventListeners(t,e){t.removeEventListener("animationend",e,!1)}},kG=At("LessonHeader"),AG=K("lesson-header"),RG=({authorName:t,avatar:e,children:n,color:o,description:r,labels:{lessonName:a,lessonPreposition:i},lessonHeaderColor:c,lessonHeaderImageColor:h,lessonHeaderSize:d,lessonHeaderStyle:m,partnerContentAuthors:p,totalLessons:f,lessonNumber:v,showAuthor:g,showLessonCount:C,title:b})=>{const x=za(),y=Kn(),E=(0,ps.qg)(x),L=m===w.xj.IMAGE,T=AG("top-wrap"),{alpha:S,ariaLabel:I,media:N,role:k}=ha("lessonHeaderImage"),M=N?.image,R=(0,u.useMemo)(()=>{if(M&&L){const A=h===w.df.LIGHT?w.qH:w.KJ;return(0,kh.A)({alpha:S,color:A,url:(0,Dt.ME)(M)})}},[M,L,h,S]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(dy,{ariaLabel:L?I:void 0,imgRole:L?k:void 0,sectionStyles:R,topWrapClassName:T,children:(0,s.jsx)(kG,{authorName:t,avatar:e,color:o,description:r,lessonHeaderColor:c,lessonHeaderSize:d,lessonHeaderStyle:m,lessonId:y,lessonName:a,lessonNumber:v,lessonPreposition:i,partnerContentAuthors:p,showAuthor:g,showLessonCount:C&&!E,title:b,totalLessons:f})}),n]})},ec=K("one-page-authors");function wG({className:t}){const e=qt(),n=$2(),o=Xx(),r=qx();if(!o)return null;const a=n?.isPartnerContentAuthor&&r!=null,i=ec({}).mix(t);return a?(0,s.jsx)("div",{className:i,children:(0,s.jsx)("ul",{className:ec("list"),role:"list",children:r.map((c,h)=>(0,s.jsxs)("li",{className:ec("item"),role:"listitem",children:[(0,s.jsx)(w5,{avatarUrl:(0,Dt.ny)({width:76,height:76,imageKey:c?.image})}),(0,s.jsx)(P5,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:c?.name})]},h))})}):(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)(w5,{avatarUrl:(0,_e.o1)(o.avatar)}),(0,s.jsx)(P5,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:o.authorName})]})}function w5({avatarUrl:t}){return t?(0,s.jsx)("div",{className:ec("avatar"),style:{backgroundImage:`url(${t})`}}):(0,s.jsx)("div",{className:ec("avatar-fallback"),children:(0,s.jsx)(m1,{decorative:!0})})}function P5({a11yAuthorPrefix:t,name:e}){const n=e||"Unknown User",o=ec("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 M5=At("OnePageAuthors",wG),PG=K("one-page-title"),O5=At("OnePageTitle",({className:t,htmlId:e})=>{const n=Ge(),o=Rt(n.title),r=hi("title"),a=(0,Zt.uW)(n.title)?{"data-l10n-id":n.title.l10nId}:{"data-change-path":r},i=PG({}).mix(t);return(0,s.jsx)("h1",{...a,className:i,id:e,tabIndex:-1,children:o})}),pp=K("one-page-lesson-header-info");function MG(){const t=Ge(),e=pp({}),{accentContrast:n,coverImageColor:o,coverPageType:r}=t?.theme??{},c=r===w.BL.IMAGE&&o===w.df.LIGHT||n===w.Em.DARK||r===w.BL.WHITE||r===w.BL.VIDEO||r===w.BL.ACCENT&&!(0,ut.Wn)(t?.color);return(0,s.jsxs)("div",{className:e,children:[(0,s.jsx)(O5,{className:pp("title").toString(),hasDarkText:c}),(0,s.jsx)(M5,{className:pp("authors").toString(),hasDarkText:c})]})}const OG=At("OnePageCoverInfo",MG),BG=At("CoverSVG"),fp=K("one-page-lesson-header"),DG=K("page"),HG=fp("main").mix("lesson-header__main"),FG=fp("container").mix(DG("header-container")),B5=()=>{const t=Lt(),{alpha:e,media:n}=ha("coverImage"),o=t?.theme?.coverImageColor,r=t?.coverPageType===w.BL.WHITE,a=t?.coverPageType===w.BL.IMAGE,i=t?.coverPageType===w.BL.ACCENT,c=t?.coverPageType===w.BL.VIDEO,h=o===w.df.LIGHT,d=fp({accent:i,image:a,white:r||c,video:c,"overlay-light":a&&h}),m=a?(0,Ut.b9)({alpha:e,color:o,media:n}):{};return(0,s.jsxs)("header",{className:d,style:m,children:[(0,s.jsx)("div",{className:FG,children:(0,s.jsx)("div",{className:HG,children:(0,s.jsx)(OG,{})})}),(0,s.jsx)(BG,{coverPageType:"LEFT"})]})},vp=(0,u.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});vp.displayName="LessonContentContext";function VG({children:t}){const[e,n]=(0,u.useState)(()=>[]),o=(0,u.useCallback)(i=>{n(c=>c.concat(i))},[]),r=(0,u.useCallback)(i=>{n(c=>c.filter(h=>h!==i))},[]),a=(0,u.useMemo)(()=>({visibleLessons:e,registerLesson:o,unregisterLesson:r}),[e,o,r]);return(0,s.jsx)(vp.Provider,{value:a,children:t})}function zG(){return(0,u.useContext)(vp)}const{LARGE:$G,SMALL:UG}=w.OX,{ACCENT:_G,BLACK:WG,COLOR:D5,DARK:GG,GRAY:KG,IMAGE:H5,LIGHT:QG,TINT:ZG}=w.xj,YG=K("lesson-header-wrap");function XG({didNavigate:t,handleNavigate:e,handleStorylineFullscreen:n,isMobileHeader:o,isProgressSummary:r,lessonProgress:a,navigateDirection:i,onNavigateTransitionEnd:c,onPageReady:h,previewType:d,ref:m,registerLesson:p,unregisterLesson:f,visibleLessons:v}){const g=(0,u.useRef)(null),C=(0,u.useRef)(0),b=(0,u.useRef)(!1),x=In(),y=(0,se.g)(),E=pn(),L=O1(),T=qt(),{partnerContent:S}=zo(),I=Zd(),N=E?.theme?.themeId,[k,M]=(0,u.useState)(!1),R=y.mode||"",A=y.id,B=r?Xu:a?.index!=null?E?.lessons?.[a.index]??{}:{},P=r?null:si({course:E,lesson:B}),O=r?0:ti({course:E,lesson:B}),D=fc(E),$=(0,u.useCallback)((Hs,Gs)=>{const Sr=i(),gt=g.current;if(!gt){Gs();return}const Ts=`page ${Sr}-${Hs}`,rs=()=>{Hs==="enter"?gt.className=`page ${Sr}-complete`:gt.className="page",R5.removeEventListeners(gt,rs),window.dispatchEvent(new CustomEvent(rv)),c(),Gs()};gt.className=Ts,R5.addEventListeners(gt,rs)},[i,c]);(0,u.useImperativeHandle)(m,()=>({componentWillEnter(Hs){$("enter",Hs)},componentDidEnter(){M(!0)},componentWillExit(Hs){const Gs=document.getElementById("page-wrap"),Sr=Gs?.scrollTop??0;Gs&&(Gs.scrollTop=0),C.current=Sr,$("leave",Hs),window.dispatchEvent(new CustomEvent(ov)),g.current&&(g.current.scrollTop=C.current)},componentDidExit(){}}),[$]),(0,u.useEffect)(()=>(M(!0),r||((0,Ye.no)(A),(0,U.JD)((0,UP.B)(A))),p(A),()=>{f(A)}),[]),(0,u.useEffect)(()=>{t&&!b.current&&k&&h(),b.current=k},[t,k,h]);const H=(0,u.useMemo)(()=>{const{theme:Hs}=E??{},Gs=Hs?.customColorLessonHeaderContrast,Sr=Hs?.lessonHeaderColor,gt=(0,ut.xD)(Sr),Ts=!(0,ut.Wn)(Sr),rs=Gs===w.Em.DARK||Gs===w.Em.AUTO&&gt===w.Em.DARK;return!Gs&&Ts||rs?et.S6.DARK:et.S6.LIGHT},[E]),F=(Hs,Gs)=>{if(r)return(0,s.jsx)(c5,{...Gs,course:E,courseProgress:L,labels:T,lessons:E?.lessons,sessionPreferences:I});switch(Hs){case"blocks":return(0,s.jsx)(f_,{...Gs,animateBlockEntrance:E?.animateBlockEntrance,handleNavigate:e,isFirstLesson:qs({course:E,lesson:B})});case"quiz":return(0,s.jsx)(IG,{...Gs,course:E});default:return null}},W=B,{author:de,selectedAuthorId:fe,type:Se}=W,{prefersKeyboardNavigation:De}=I??{},{authors:Ie,color:Ne,enableVideoPlaybackSpeed:ae,id:Z,lessonHeaderImage:ve,showLessonCount:we,showNavigationButtons:Me,tenantId:Ae,theme:Ue}=E??{},{hideLessonHeaders:it,lessonHeaderColor:rt,lessonHeaderImageColor:vt,lessonHeaderSize:ft,lessonHeaderStyle:ts,navigationType:ln,showAuthor:ar}=Ue??{},zt=E?.publishedAt,Rs=S?.content??[],ir=Rs.length>0,No=ir?Rs.find(Hs=>Hs.id===fe):void 0,jo=ir?No?.data?.authors:void 0,{avatar:cr,authorName:so}=jG({authors:Ie,lessonAuthor:de,courseAuthor:E?.author,selectedAuthorId:fe}),Er=ra({course:E,courseProgress:L}),no=r?{}:ia({course:E,courseProgress:L,lesson:P,restrictingQuiz:Er}),ko=L3(B),Ba=(0,ps.c3)(E)?B5:RG,_t=(0,s.jsx)(Ba,{authorName:so,avatar:cr,color:Ne,course:E,description:W.description,labels:T,lessonHeaderColor:rt,lessonHeaderImage:ve,lessonHeaderImageColor:vt,lessonHeaderSize:ft,lessonHeaderStyle:ts,lessonNumber:O,partnerContentAuthors:jo,showAuthor:ar,showLessonCount:we,themeId:N,title:W.title,totalLessons:D,children:!r&&(0,s.jsx)(l5,{id:W.id,items:W.items,lessonProgress:a,navigationType:ln,scrollPosition:0,type:W.type})}),Ao=`image-${(vt??w.df.DARK).toLowerCase()}`,Tr=YG({[Ao]:ts===H5,accent:ts===_G,black:ts===WG,collapsed:it,custom:ts===D5,dark:ts===GG,gray:ts===KG,image:ts===H5,large:ft===$G&&!o,light:ts===QG,mobile:o,small:ft===UG&&!o,tint:ts===ZG}),Hl=ts===D5?{"--lesson-header-contrast-color":H,"--color-background":rt}:{},oc={authorName:so,avatar:cr,color:Ne,courseId:Z,courseTitle:x(E?.title),data:B,enableVideoPlaybackSpeed:ae,handleStorylineFullscreen:n,hideLessonHeaders:it,isLesson:(0,Tt.GG)(W),labels:T,lessonHeader:_t,lessonHeaderImage:ve,lessonHeaderWrapClasses:Tr,lessonHeaderWrapStyles:Hl,lessonHasContinues:ko,lessonNumber:O,lessonProgress:a,loadMedia:A===v[0],mode:R,nextLesson:P?.id??null,nextLessonRestrictions:no,partnerContent:Rs,publishedAt:zt,prefersKeyboardNavigation:De,previewType:d,scrollPosition:0,showAuthor:ar,showLessonCount:we,showNavigationButtons:Me,tenantId:Ae,totalLessons:D};return(0,s.jsx)(ya,{title:sl(`${x(W.title)} - ${oc.courseTitle}`),children:(0,s.jsx)("div",{"data-lesson-id":A,ref:g,children:F(Se,oc)})})}function JG(t){const{visibleLessons:e,registerLesson:n,unregisterLesson:o}=zG();return(0,s.jsx)(XG,{...t,registerLesson:n,unregisterLesson:o,visibleLessons:e})}const qG=JG;var F5=l(9560);function eK(t,e){const o=e.filter(r=>(0,Tt.GG)(r)).findIndex(r=>r.id===t);return o!==-1?o+1:null}function tK({defaultNextLesson:t,defaultNextLessonNumber:e,lesson:n,lessonProgress:o,lessonsOnly:r,skipTargetLesson:a}){const i=n?.type==="quiz",{skipLessonsIfPassed:c,skipToLessonId:h}=n?.settings??{},d=o&&"passed"in o&&o.passed;return i&&c&&h&&d&&a?{nextLesson:a,nextLessonNumber:eK(a.id,r)}:{nextLesson:t,nextLessonNumber:e}}function sK(t){const e=Vs(t),n=mo(t),o=Lt(),r=(0,ht.useLabelsMap)(),a=GC(t),i=KC(t),c=QC(),h=e?.settings?.skipToLessonId,d=Vs(h),{nextLesson:m,nextLessonNumber:p}=tK({defaultNextLesson:a,defaultNextLessonNumber:i,lesson:e,lessonProgress:n,lessonsOnly:o?.lessonsOnly??[],skipTargetLesson:h?d:void 0}),f=m?.id,v=xc(f),g=fs(v?.data);return{lessonNameLabel:r?.lessonName,lessonPrepositionLabel:r?.lessonPreposition,nextLesson:m,nextLessonNumber:p,restrictionData:f?g:void 0,restrictionType:f?v?.type:void 0,totalLessons:c}}const s0=K("lesson-nav");function nK({allowTooltip:t,lessonNameLabel:e,lessonPrepositionLabel:n,nextLesson:o,nextLessonNumber:r,onFocus:a,ref:i,restrictionData:c,restrictionType:h,totalLessons:d}){const m=o?.id,p=pa(),f=Ci(p),g=o&&(0,Tt.GG)(o)&&m,C=Rt(o?.title)||"",b=g?`${r} ${n} ${d} \u2014 ${C}`:C,x=f&&g?`${e} ${r}`:b;return(0,s.jsx)(xi,{allowTooltip:t,direction:"next",navLessonId:m,onFocus:a,ref:i,restrictionData:c,restrictionType:h,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:s0("link-text"),children:x}),(0,s.jsx)(zd,{className:s0("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(zd,{className:s0("link-icon")}),(0,s.jsx)("span",{className:s0("link-text"),children:x})]})})}const oK=At("LessonNavNext",nK);function V5({lessonId:t,...e}){const n=sK(t);return(0,s.jsx)(oK,{...e,...n})}const n0=K("lesson-nav"),rK=({allowTooltip:t,courseFinishLabel:e,onFocus:n,restrictionData:o,restrictionType:r},a)=>{const i=pa(),c=Ci(i);return(0,s.jsx)(xi,{allowTooltip:t,direction:"next",finish:!0,onFocus:n,ref:a,restrictionData:o,restrictionType:r,children:c?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:n0("link-text"),children:e}),(0,s.jsx)(zd,{className:n0("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(zd,{className:n0("link-icon")}),(0,s.jsx)("span",{className:n0("link-text"),children:e})]})})},aK=At("LessonNavFinish",(0,u.forwardRef)(rK));function iK(t,e){const{currentLocale:n}=e,o=Wt(t),r=(0,ht.selectLabelsMap)(n,t);return{buttonNavigationStyle:o.buttonNavigationStyle,courseFinishLabel:r?.courseFinish||"Finish"}}const gp=Xe()(jt.wZ,(0,U.Ng)(iK))(aK),o0=K("lesson-nav"),cK=({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:i,previousLessonNumber:c,totalLessons:h},d)=>{const m=i?.id,p=pa(),f=Ci(p),g=(0,Tt.GG)(i)&&m,C=fs(i?.title)||n,b=g?`${c} ${r} ${h} \u2014 ${C}`:C,x=f&&g?`${o} ${c}`:b;return(0,s.jsx)(xi,{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:o0("link-text"),children:x}),(0,s.jsx)(_f,{className:o0("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_f,{className:o0("link-icon")}),(0,s.jsx)("span",{className:o0("link-text"),children:x})]})})},lK=At("LessonNavPrevious",u.forwardRef(cK));function dK(){const t=Op(),e=WC();return(n,{lessonId:o,currentLocale:r})=>{const a=Wt(n),i=t(o,n)||{},c=e(o,n),h=(0,ht.selectLabelsMap)(r,n),d=E0(n);return{buttonNavigationStyle:a.buttonNavigationStyle,courseHomeLabel:h.courseHome,lessonNameLabel:h.lessonName,lessonPrepositionLabel:h.lessonPreposition,previousLesson:i,previousLessonNumber:c,totalLessons:d}}}const Cp=Xe()(jt.wZ,(0,U.Ng)(dK,null,null,{forwardRef:!0}))(lK),uK={threshold:0},r0=(t,e)=>{const[n,o]=(0,u.useState)(!1),r=(0,u.useRef)(null);return(0,u.useEffect)(()=>{r.current&&r.current.disconnect(),r.current=new IntersectionObserver(([i])=>{o(i.isIntersecting)},e||uK);const{current:a}=r;return t.current?a.observe(t.current):o(!1),()=>{a.disconnect()}},[t,e]),n},z5=K("navButtonsFull"),hK=()=>{const[t,e]=(0,u.useState)(!1);return(0,es.A)(ov,()=>e(!0)),(0,es.A)(rv,()=>e(!1)),t},mK=({isVisible:t})=>{(0,F5.A)(()=>window.dispatchEvent(new CustomEvent(gh))),(0,u.useEffect)(()=>{const e=t?av:gh;window.dispatchEvent(new CustomEvent(e))},[t])},pK=({isVisible:t})=>{(0,F5.A)(()=>window.dispatchEvent(new CustomEvent(Ch))),(0,u.useEffect)(()=>{const e=t?iv:Ch;window.dispatchEvent(new CustomEvent(e))},[t])},fK=({children:t,hideNavToHome:e,navNextEnabled:n,navFinishEnabled:o})=>{const r=(0,u.useRef)(null),a=(0,u.useRef)(null),i=(0,u.createRef)(null),c=(0,u.useRef)(),h=Kn(),d=r0(a),m=r0(i),p=hK(),f=(0,u.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),v=(0,u.useCallback)(()=>{const C=r.current?.scrollHeight;r.current?.scrollTo({top:C,behavior:"smooth"})},[]);(0,es.A)(Gd,f),(0,es.A)(Kd,v),mK({isVisible:d}),pK({isVisible:m}),(0,u.useEffect)(()=>{if(!p&&a.current){const b=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:b})}},[p,a]);const g=z5("navPrev",{visible:d,hide:p});return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,s.jsxs)("div",{className:z5(),children:[!e&&(0,s.jsx)("div",{className:g,children:(0,s.jsx)(Cp,{lessonId:h,ref:a})}),t,n&&(0,s.jsx)(V5,{lessonId:h,ref:i}),o&&(0,s.jsx)(gp,{lessonId:h,ref:c})]})})},Pl=K("navButtonsFloating"),$5=({transitionIn:t,buttonType:e,children:n})=>{const o=(0,u.useRef)(),r={entered:Pl(e,{entered:!0}),exiting:Pl(e,{exiting:!0}),exited:Pl(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})})},vK=250,U5={threshold:.2},gK=({topRef:t,bottomRef:e,pageWrapRef:n,currentLessonId:o})=>{const r=r0(t,U5),a=r0(e,U5),[i,c]=(0,u.useState)(!1),[h,d]=(0,u.useState)(!1),[m,p]=(0,u.useState)(!1),f=(0,u.useCallback)(()=>{n.current?.scrollTo({top:2,behavior:"smooth"})},[n]);return(0,Cu.A)(f),(0,u.useEffect)(()=>{c(!0);const v=setTimeout(()=>{f(),c(!1)},vK);return()=>{clearTimeout(v)}},[o,f]),(0,u.useEffect)(()=>{d(a&&!i),p(r&&!i)},[a,r,i]),{showPrev:m,showNext:h}},CK=({children:t,isCurrentLessonQuiz:e,navNextEnabled:n,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,u.useRef)(),i=(0,u.useRef)(),c=(0,u.useRef)(),h=(0,u.useRef)(),d=(0,u.useRef)(),m=(0,u.useRef)(),p=Kn(),{showNext:f,showPrev:v}=gK({topRef:d,bottomRef:m,pageWrapRef:a,currentLessonId:p}),g=(0,u.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),C=(0,u.useCallback)(()=>{const b=a.current?.scrollHeight;a.current?.scrollTo({top:b,behavior:"smooth"})},[]);return(0,es.A)(Gd,g),(0,es.A)(Kd,C),(0,u.useEffect)(()=>{e&&(n||r)&&C()},[e,n,r,C]),(0,s.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,s.jsx)("div",{className:Pl("top"),ref:d}),!o&&(0,s.jsx)($5,{buttonType:"prev",transitionIn:v,children:(0,s.jsx)(Cp,{lessonId:p,onFocus:g,ref:i})}),t,(0,s.jsx)($5,{buttonType:"next",transitionIn:f&&(n||r),children:n?(0,s.jsx)(V5,{lessonId:p,onFocus:C,ref:c}):r?(0,s.jsx)(gp,{lessonId:p,onFocus:C,ref:h}):null}),(0,s.jsx)("div",{className:Pl("bottom"),ref:m})]})};var a0=l(26372);class xK extends a0.Component{nodeRef=a0.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&&a0.cloneElement(a0.Children.only(e),{ref:this.nodeRef}))})}}const{FULL:bK,FLOATING:_5}=w.AY,yK=K("lessonNavigation"),LK=({children:t})=>{const e=(0,u.createRef)();return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:e,children:t})},EK=(t,e)=>t+(e?.drawCount??1),TK=(t=[])=>t.reduce(EK,0),SK=({children:t,isPreviewLesson:e})=>{const{buttonNavigationStyle:n}=Ge(),{pathname:o}=(0,se.zy)(),r=Ge(),{showNavigationButtons:a,lessonsOnly:i,lmsOptions:c={}}=r,h=(0,u.useRef)(),d=ks(480),m=Kn(),p=Vs(m)||{},f=mo(m)||{},[v,g]=(0,u.useState)(n),C=i[0].id,b=r?.exportSettings?.webExportSettings,x=!Xo.isInstantLink&&(c?.disableCoverPage||b?.disableCoverPage)&&C===m,y=!Xo.isInstantLink&&c?.disableCoverPage,E=c?.disableCoverPage?x:y;(0,u.useEffect)(()=>{n!==v&&(g(n),window.dispatchEvent(new CustomEvent(Gd)))},[n,v]);const L=L3(p)||(0,Tt.Sg)(p)?f.isComplete:!0,T=f.activeIndex===TK(p.items)+1,S=p.type==="quiz"&&!T||p.settings?.continueType==="continue",I=p&&si({course:r,lesson:p}),N=m==="progress-summary",k=window.isPublicShare,M=I&&!e&&L&&!S&&!N,R=!I&&L&&_e.BI&&!k&&!N&&!e&&!(0,Ye.Hm)()&&!S,A=yK("wrapper",{full:n===bK||d,floating:n===_5&&!d}),P=!a||e?LK:n===_5&&!d?CK:fK;return(0,u.useEffect)(()=>{const O=document.querySelector(".page__content");O&&O.classList.add("page__content--preview-nav")},[P]),(0,s.jsx)("div",{className:A,ref:h,children:(0,s.jsx)(P,{hideNavToHome:E,navFinishEnabled:R,navNextEnabled:M,children:(0,s.jsx)(VG,{children:(0,s.jsx)(ys.F,{component:"div",children:(0,s.jsx)(xK,{children:t},o)})})})})};var IK=l(44795),NK=l.n(IK),jK=l(80006),kK=l.n(jK),AK=l(63083),W5=l(75921);function RK(t){return t?.slidesUI?.slideDirection??et.fY.UP}function wK(){return(0,U.d4)(RK)}function PK(t){return t?.slidesUI?.exitingSlideOffset??0}function MK(){return(0,U.d4)(PK)}const Ma=K("blocks-lesson-slide"),G5="#fff",OK=["image full","image text overlay","quote background"],K5=({className:t})=>{const e=kn()||G5;return(0,s.jsx)("div",{className:t,style:{background:e}})},BK=({block:t})=>(0,s.jsx)(Sh,{block:t,children:(0,s.jsx)(K5,{className:Ma("background-top")})}),DK=({block:t})=>(0,s.jsx)(Sh,{block:t,children:(0,s.jsx)(K5,{className:Ma("background-bottom")})});function HK(t,e){const n=e.blocks?.length??1,o=n==1,r=n==2,a=e.blocks?.[0],i=e.blocks?.find(M=>M.settings.backgroundType===w.xj.IMAGE),c=t.settings.backgroundType===w.xj.IMAGE,h=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,g=document.querySelector(`[data-block-id="${t.id}"] [data-block-text]`)?.clientHeight>300,C=i_(t.family,t.variant)||g,b=document.querySelector("[data-continue-sr]")!=null,x=!C&&r&&b&&document.querySelector("[data-continue-btn]")==null,y=o&&c&&!x,E=c&&!x&&!C,L=d||p||m;return Ma("connected-blocks",{"min-half-height":i&&(r&&!x&&!C||v||E),"full-height":x||y,"top-block":h&&!o&&!C&&!L,"top-block-centered":h&&!o&&L})}const FK=({hasTransitioned:t,onContinue:e,prefersKeyboardNavigation:n,previewType:o,slide:r,transitionState:a},i)=>{const c=Lt(),h=Kn(),d=(0,ht.useLabelsMap)(),m=Dh(),p=mo(h),f=!0,{animateBlockEntrance:v,color:g,id:C,title:b,enableVideoPlaybackSpeed:x,publishedAt:y,tenantId:E}=c;(0,u.useImperativeHandle)(i,()=>L.current);const L=(0,u.useRef)(),T=wK(),S=MK(),I=`${a}-${T}`,N=Ma("wrapper",{exiting:a==="exiting"}),{blocks:k,lastBlock:M}=r,R=(0,u.useCallback)(Ne=>{Ne===M?.id&&e()},[M,e]),A=Ma("inner",{[I]:!0}),B=Ma("lesson",{slides:f,"touch-preview":dl(o)}).toString(),P=r.blocks.length==1,{settings:O,type:D,variant:$}=r.blocks?.[0]??{},H=P&&O.backgroundType===w.xj.IMAGE,F=P&&!H&&fa()(`${D} ${$}`,OK),W=F||H,de=r.blocks?.[0],fe=r.blocks?.[r.blocks.length-1],Se=de?.settings?.backgroundType!==w.xj.IMAGE,De=fe?.settings?.backgroundType!==w.xj.IMAGE,Ie=Ma("full-width-image",{legacy:F,background:H});return(0,s.jsx)("div",{className:N,style:{top:S},children:(0,s.jsxs)("div",{className:A,children:[Se&&(0,s.jsx)(BK,{block:de}),De&&(0,s.jsx)(DK,{block:fe}),(0,s.jsx)("div",{className:B,ref:L,children:k.map((Ne,ae)=>{const Z=P?!1:t5({blocks:r.blocks,lessonProgress:p,currentBlockIndex:ae}),ve=W?Ie:HK(Ne,r);return(0,s.jsx)(q6,{animateBlockEntrance:v,block:Ne,className:ve,color:g,courseId:C,courseTitle:b,defaultBackgroundColor:G5,enableVideoPlaybackSpeed:x,hideBlock:Z,index:ae,isFirstLesson:!0,isOnlyBlockInStep:P,labels:d,lessonId:h,lessonProgress:p,loadMedia:t,onContinue:R,partnerContent:m,prefersKeyboardNavigation:n,previewType:o,publishedAt:y,tenantId:E},Ne.blockId)})})]})})},VK=(0,u.forwardRef)(FK);var zK=l(68061),$K=l.n(zK);const Q5=K("blocks-slide-indicator-tooltip"),UK=({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)(Je,{classNameIcon:Q5("icon"),name:"lock"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,s.jsx)("div",{"aria-hidden":!r,className:Q5("wrapper",{disabled:t,visible:r}),ref:a,role:"tooltip",style:{left:e,top:o},children:i})},Z5=(0,u.forwardRef)(UK);Z5.propTypes={disabled:ct().bool.isRequired,left:ct().number,text:ct().string.isRequired,top:ct().number,visible:ct().bool.isRequired};const _K=Z5;function WK(t){const e=(0,u.useRef)();return e.current||=t(),e}const i0=K("blocks-slide-indicator"),GK=({active:t,blockNavigationStyle:e,disabled:n,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:i},c)=>{const{prefersKeyboardNavigation:h}=Zd()??{},[d,m]=(0,u.useState)(!1),[p,f]=(0,u.useState)(),v=(0,u.useRef)(),g=(0,u.useRef)(),C=(0,u.useRef)(),b=e===w.Dw.NUMBERS,x=i+1,y=`${x} / ${o}`,E=t?`Step ${x} of ${o}, current step`:`Go to step ${x} of ${o}`,L=WK(()=>document.getElementById("portal")),T=(0,u.useCallback)(()=>{if(v.current&&g.current){const $=v.current.getBoundingClientRect(),H=g.current.getBoundingClientRect(),F=$.left-H.width-18,W=Math.round($.top-H.height/2+$.height/2);f({left:F,top:W})}},[]),S=(0,u.useCallback)(()=>{C.current=setTimeout(()=>{T(),m(!0)},300)},[T]),I=(0,u.useCallback)(()=>{clearTimeout(C.current),m(!1)},[]),N=(0,u.useCallback)(()=>{a(i)},[a,i]),k=(0,u.useCallback)($=>{gn($)&&m(!1),r($)},[r]),M=(0,u.useCallback)(()=>{S()},[S]),R=(0,s.jsx)(_K,{disabled:n,left:p?.left,ref:g,text:y,top:p?.top,visible:d}),A=i0("button",{active:t,disabled:n,numbers:b}),B=i0("wrapper"),P=i0("circle",{active:t,disabled:n}),O=i0("number",{active:t,disabled:n}),D=b?(0,s.jsx)("span",{"aria-hidden":"true",className:O,children:x}):(0,s.jsx)(Je,{classNameIcon:P,name:"circle-solid"});return(0,s.jsxs)("div",{className:B,ref:c,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:A,"data-control":"",onBlur:I,onClick:n?void 0:N,onFocus:h?M:void 0,onKeyDown:k,onMouseEnter:S,onMouseLeave:I,ref:v,type:"button",children:D}),(0,go.createPortal)(R,L.current)]})},KK=(0,u.forwardRef)(GK),Oa=K("blocks-slide-controls"),Y5=38,QK=8,ZK=t=>{const{activeSlideIndex:e,blockNavigationStyle:n,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:i,previewType:c}=t,h=(0,u.useRef)(),d=(0,u.useRef)(),[m,p]=(0,u.useState)(!1),[f,v]=(0,u.useState)(!1),g=(0,u.useCallback)(y=>{let E=!1,L=-1;if(ga(y)||Hr(y)){if(e-1>=0)L=e-1;else{r();return}E=!0}else Ca(y)||Fr(y)?(e+1<=o-1&&(L=e+1),E=!0):zE(y)?(L=0,E=!0):VE(y)&&(L=o-1,i[L]&&(L=i.findLastIndex(T=>!T)),E=!0);L>=0&&!i[L]&&a(L),E&&(y.stopPropagation(),y.preventDefault())},[e,o,r,a,i]);(0,u.useEffect)(()=>{const y=h.current,E=d.current;if(y&&E){const L=y.getBoundingClientRect(),T=E.getBoundingClientRect(),S=L.bottom-Y5,I=L.top+Y5;T.bottom>S?y.scrollBy({top:T.bottom-S,left:0,behavior:"smooth"}):T.top<I&&y.scrollBy({top:T.top-I,left:0,behavior:"smooth"})}},[e]);const C=(0,u.useCallback)(()=>{const y=h.current;y&&(p(y.scrollTop>QK),v(y.clientHeight+y.scrollTop<y.scrollHeight))},[]);(0,Cu.A)(C);const b=(0,u.useCallback)(Du()(C,100),[C]);Qd(h.current,C);const x=Oa({"touch-preview":dl(c)});return(0,s.jsx)("div",{className:x,children:(0,s.jsx)("div",{className:Oa("page-control-wrapper"),children:(0,s.jsxs)("div",{className:Oa("page-control-inner-wrapper"),children:[(0,s.jsx)("div",{className:Oa("page-control"),onScroll:b,ref:h,children:(0,s.jsx)("div",{className:Oa("slide-dot-wrapper"),children:$K()(y=>{const E=y===e;return(0,s.jsx)(KK,{active:E,blockNavigationStyle:n,disabled:i[y],numberOfSlides:o,onClick:a,onKeyDown:g,ref:E?d:null,slideIndex:y},y)},o)})}),(0,s.jsx)("div",{className:Oa("overlay-top",{visible:m})}),(0,s.jsx)("div",{className:Oa("overlay-bottom",{visible:f})})]})})})},X5=100;var Ml=l(26372);const YK=50,XK=1e3,JK=({onSwipeDownHandler:t,onSwipeUpHandler:e,target:n,timeoutDuration:o=XK})=>{const[r,a]=Ml.useState(!1),i=Ml.useRef(void 0),c=Ml.useCallback(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>a(!1),o)},[o]),h=Ml.useCallback(d=>{const m=Math.abs(d.deltaY);if(r)m<YK?(i.current&&clearTimeout(i.current),a(!1)):c();else if(m>X5){const p=d.deltaY>0?t:e;a(!0),c(),p()}},[c,r,t,e]);Ml.useEffect(()=>{if(!(!n||!e||!t))return n.addEventListener("wheel",h,{passive:!0}),()=>{i.current&&clearTimeout(i.current),n?.removeEventListener?.("wheel",h,{passive:!0})}},[t,e,h,n])};var Yr=l(62262);const J5="rise-presenter-sync",Yoe="presenterMode",qK="NAVIGATE_TO_COVER",q5="NAVIGATE_TO_SLIDE",eC="SLIDE_CHANGE",Xoe="PRESENTER_VIEW_EXIT",to=K("lesson-one-page-slides"),eQ=K("page-wrap"),tC=100;function sC(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",c=["audio","video"].includes(e),h=o==="tab",d=document.querySelector(".quiz-card__interactive")?.contains?.(t)??!1;return a||i||c||h||d}const tQ=(t,e)=>(n,o,r)=>e5(n,r.slice(0,-1),t,void 0,e),sQ=(t,e)=>({disabled:n,slides:o},r)=>{const a=Ps()(Js()(d=>t[d.id]),vr()(d=>Or()(d,t[d.id])))(r),i=r[r.length-1],c=n||o_(a)||r_(a,e),h={blocks:a,lastBlock:i,disabled:n};return{disabled:c,slides:NK()(h,o)}},c0=t=>{let e=!1,n=!1;if(t){const{clientHeight:o,scrollHeight:r,scrollTop:a}=t,i=Math.max(0,a),c=r-i;e=c===r,n=c-5<=o}return{isAtTop:e,isAtBottom:n}},nQ=/,? +/,oQ=[],rQ=({lessonProgress:t,prefersKeyboardNavigation:e,previewType:n},o)=>{(0,u.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=xt(),i=(0,u.useRef)(),c=(0,u.useRef)(),h=(0,u.useRef)(),d=(0,u.useRef)(),m=(0,u.useRef)(),p=(0,u.useRef)(),f=(0,u.useRef)(),v=(0,u.useRef)(),g=(0,u.useRef)(null),C=(0,u.useRef)(null),b=(0,u.useRef)(null),x=(0,u.useRef)(0),y=(0,u.useRef)(0),E=(0,ke.Z)(),L=(0,U.wA)(),[T,S]=(0,u.useState)(0),[I,N]=(0,u.useState)(!0),[k,M]=(0,u.useState)(!1),R=(0,Te.A)(I),A=(0,Te.A)(k),B=(0,u.useRef)(),P=Mn(),O=P?.01:600,{lessons:D,...$}=Ge()||{},H=$?.theme?.blockNavigationStyle||w.Dw.DOTS,F=D[0],W=F?.items||oQ,de=(0,u.useCallback)(()=>{const gt=h.current?.scrollHeight>h.current?.clientHeight,{isAtBottom:Ts}=c0(h.current),rs=gt&&!I&&!Ts;rs!=k&&M(rs)},[k,I]);Qd(i.current,de),(0,u.useLayoutEffect)(de,[I]);const fe=(0,u.useCallback)(()=>{h.current?.scrollTo({top:0})},[]),Se=$?.theme,De=(0,u.useMemo)(()=>(0,Zs.Ve)(op([],W,t,Se).map(tQ(t,Se)),Js()(E3.A),kK()(Gt()("blockId"))),[W,t,Se]),Ie=(0,u.useCallback)(gt=>{const Ts={disabled:!1,slides:[]},{slides:rs}=du()(sQ(De,t),Ts,gt);return rs},[De,t]),Ne=(0,u.useMemo)(()=>(0,Zs.Ve)(W,KU,Ie),[W,Ie]),ae=(0,u.useMemo)(()=>Qg()("disabled",Ne),[Ne]),Z=(0,ps.No)($);(0,u.useEffect)(()=>{x.current=T},[T]),(0,u.useEffect)(()=>{y.current=Ne.length},[Ne.length]),(0,u.useEffect)(()=>{if(!(!Z||typeof BroadcastChannel>"u"))try{g.current||(g.current=new BroadcastChannel(J5));const gt=g.current,Ts=rs=>{if(rs.data.type===qK)C.current&&C.current();else if(rs.data.type===q5){const Ip=rs.data.slideIndex,Fl=Math.min(Ip-1,y.current-1);if(Fl>=0){const nY=Fl<x.current?et.fY.DOWN:et.fY.UP;L((0,Yr.zP)(nY)),b.current&&b.current(Fl)}}};return gt.addEventListener("message",Ts),()=>{gt.removeEventListener("message",Ts)}}catch{}},[Z,L]),(0,u.useEffect)(()=>{if(!(!Z||!g.current))try{const gt=T+1;g.current.postMessage({type:eC,slideIndex:gt})}catch{}},[Z,T]),(0,u.useEffect)(()=>()=>{g.current?.close(),g.current=null},[]);const ve=Ne.length,we=Ne[T],Me=dl(n),Ae=H!==w.Dw.NONE,Ue=T===ve-1,it=t?.isComplete,rt=k||Ue?!it||!_e.BI||window.isPublicShare:ae[T+1],vt=!k&&!Ue,ft=Ue&&!_e.BI,ts=(0,Te.A)(ft),ln=k&&!Ue,ar=(0,u.useCallback)(wu()(de,100),[de]);(0,u.useEffect)(()=>{const gt=h.current;return gt?.addEventListener("scroll",ar,{passive:!0}),()=>gt?.removeEventListener("scroll",ar,{passive:!0})},[ar]),(0,u.useEffect)(()=>{document.activeElement===p.current?!A&&k?m.current?.focus({preventScroll:!0}):!ts&&ft&&f.current?.focus({preventScroll:!0}):document.activeElement===m.current&&A&&!k&&p.current?.focus({preventScroll:!0})},[k,A,ts,R,ft,I]),(0,AK.A)(()=>{kv(),B.current=setTimeout(()=>{N(!1),h.current?.focus?.()},O+tC)},()=>{clearTimeout(B.current)});const zt=(0,u.useCallback)(gt=>{const Ts=i.current?.getBoundingClientRect()?.top??0;L((0,Yr.ty)(Ts));const rs=Math.max(0,Math.min(gt,Ne.length-1));S(rs),fe()},[L,fe,Ne.length]),Rs=(0,u.useCallback)(()=>{I||(N(!0),fr(()=>{E("/")},"lesson-to-one-page-cover-stepped"))},[E,I]),ir=$?.exportSettings?.webExportSettings,No=!Xo.isInstantLink&&($?.lmsOptions?.disableCoverPage||ir?.disableCoverPage),jo=(0,u.useCallback)(No?()=>{L((0,Yr.zP)(et.fY.DOWN)),zt(0)}:Rs,[No,zt,Rs,L,Yr.zP]);(0,u.useEffect)(()=>{C.current=jo},[jo]),(0,u.useEffect)(()=>{b.current=zt},[zt]);const cr=(0,u.useCallback)(()=>{I||(T>0?(L((0,Yr.zP)(et.fY.DOWN)),zt(T-1)):Rs())},[zt,L,T,I,Rs]),so=(0,u.useCallback)(()=>{I||(Ue&&_e.BI?E("/lessons/progress-summary"):(L((0,Yr.zP)(et.fY.UP)),zt(T+1)))},[zt,L,E,Ue,T,I]),Er=(0,u.useCallback)(()=>{(T<ve-1||Ue&&_e.BI)&&so()},[Ue,T,ve,so]),no=(0,u.useCallback)(()=>{const gt=h.current?.scrollTop??0,Ts=h.current?.clientHeight??0,rs=P?"instant":"smooth";h.current?.scrollTo({top:gt+Ts,behavior:rs})},[P]),ko=(0,u.useCallback)(()=>{so()},[so]),nc=(0,u.useCallback)(()=>{no()},[no]),Ba=(0,u.useCallback)(gt=>{if(gt===T||I)return;const Ts=gt<T?et.fY.DOWN:et.fY.UP;L((0,Yr.zP)(Ts)),zt(gt),queueMicrotask(()=>{d.current?.querySelectorAll("[data-control]")?.[gt]?.focus?.()})},[zt,L,T,I]),_t=(0,u.useCallback)(()=>N(!0),[]),dn=(0,u.useCallback)(()=>{N(!1),setTimeout(()=>{if(c.current&&d.current?.contains?.(document.activeElement)){const gt=ep()(c.current.innerText,{length:75,separator:nQ});a(),r(`Content preview: ${gt}`)}else h.current?.focus?.()},0)},[r,a]),Ao=(0,u.useCallback)(()=>{if(Me)return;const{isAtTop:gt}=c0(h.current);if(gt){T===0?jo():cr();return}},[Me,cr,T,jo]),Tr=(0,u.useCallback)(()=>{if(Me||Ue&&!_e.BI||rt)return;const{isAtBottom:gt}=c0(h.current);if(gt){ko();return}},[Ue,rt,Me,ko]),Hl=(0,u.useCallback)(()=>{const{isAtBottom:gt,isAtTop:Ts}=c0(h.current),rs=document.documentElement.clientWidth===window.innerWidth;return(gt||Ts)&&rs},[]),oc=(0,u.useCallback)(gt=>{!d.current?.contains?.(document.activeElement)&&!sC(gt.target)&&Ao()},[Ao]),Hs=(0,u.useCallback)(gt=>{!d.current?.contains?.(document.activeElement)&&!sC(gt.target)&&Tr()},[Tr]),Gs=(0,u.useCallback)(gt=>{const{itemId:Ts}=gt.detail,rs=Ne.findIndex(Ip=>Ip.blocks.find(Fl=>Fl.id===Ts));rs===-1||rs===T||(L((0,Yr.zP)(rs>T?et.fY.UP:et.fY.DOWN)),zt(rs))},[Ne,T,L,zt]);(0,u.useEffect)(()=>(window.addEventListener(Kt,Gs),()=>{window.removeEventListener(Kt,Gs)})),(0,W5.A)("ArrowUp",Ra(),oc),(0,W5.A)("ArrowDown",Ra(),Hs),JK({target:h.current,onSwipeUpHandler:Ao,onSwipeDownHandler:Tr,timeoutDuration:O+tC});const Sr=to("gradient",{visible:k});return(0,s.jsx)("div",{className:to({}),children:(0,s.jsx)("div",{className:eQ({transitioning:I}),id:"page-wrap",ref:h,tabIndex:"-1",children:(0,s.jsx)(Rl,{type:$.type,children:(0,s.jsx)(Zi,{type:$.type,children:(0,s.jsx)(Yi,{children:(0,s.jsx)(ya,{children:(0,s.jsxs)("div",{"data-lesson-id":F?.id,children:[(0,s.jsxs)("nav",{"aria-label":"Step navigation",className:to("controls",{"touch-preview":Me}),ref:d,children:[(0,s.jsxs)("button",{"aria-disabled":T===0&&No,"aria-hidden":T===0&&No,className:to("prev-btn",{"touch-preview":Me}),onClick:cr,type:"button",children:[(0,s.jsx)(Je,{classNameIcon:to("arrow-icon",{"touch-preview":Me}),name:"arrow-up"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),Ae&&(0,s.jsx)(ZK,{activeSlideIndex:T,blockNavigationStyle:H,numberOfSlides:ve,onGoToCover:Rs,onSlideClick:Ba,previewType:n,slideDisabledState:ae}),(0,s.jsxs)("div",{className:to("next-btns"),children:[(0,s.jsxs)("button",{"aria-disabled":!ln,"aria-hidden":!ln,className:to("page-down-btn",{"touch-preview":Me}),onClick:ln?nc:void 0,ref:m,tabIndex:ln?void 0:-1,type:"button",children:[(0,s.jsx)(Je,{classNameIcon:to("arrow-icon",{"touch-preview":Me}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!k&&(0,s.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),Ue&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":rt,"aria-hidden":!vt,className:to("next-btn",{"touch-preview":Me}),onClick:rt?void 0:ko,ref:p,tabIndex:Ue?-1:void 0,type:"button",children:[(0,s.jsx)(Je,{classNameIcon:to("arrow-icon",{"touch-preview":Me}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",rt&&(0,s.jsx)("span",{children:"(disabled until content is completed)"}),Ue&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":!ft,"aria-hidden":!ft,className:to("restart-btn",{"touch-preview":Me}),onClick:ft?jo:void 0,ref:f,tabIndex:Ue?void 0:-1,type:"button",children:[(0,s.jsx)(Je,{classNameIcon:to("restart-icon",{"touch-preview":Me}),name:"arrow-rotate-left"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,s.jsxs)(pu,{onShouldRecognizeGesture:Hl,onSwipeDown:Ao,onSwipeUp:Tr,children:[(0,s.jsx)("main",{"aria-describedby":"step-counter",ref:c,tabIndex:"0",children:(0,s.jsx)(ys.F,{children:(0,s.jsx)(ys.eB,{mountOnEnter:!0,nodeRef:v,onExited:dn,onExiting:_t,timeout:O,unmountOnExit:!0,children:gt=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:"step-counter",ref:v,children:`Step ${T+1} of ${ve}`}),(0,s.jsx)(VK,{hasTransitioned:!I,onContinue:Er,prefersKeyboardNavigation:e,previewType:n,ref:i,slide:we,transitionState:gt})]})},T)})}),(0,s.jsx)("div",{className:Sr})]})]})})})})})})})},aQ=(0,u.forwardRef)(rQ),nC=K("blocks-lesson-restart-button"),iQ=({className:t,onClick:e})=>{const n=nC.mix(t);return(0,s.jsx)("button",{className:n,onClick:e,type:"button",children:(0,s.jsx)(Je,{classNameIcon:nC("icon"),name:"arrow-rotate-left"})})},cQ=K("lesson-one-page-scroll"),lQ=({previewType:t,prefersKeyboardNavigation:e,lessonProgress:n})=>{const o=(0,u.useRef)(),[r,a]=(0,u.useState)(!1),{lessons:i,...c}=Ge()||{},{lmsOptions:h={}}=c||{},d=P1(),m=(0,ht.useLabelsMap)(),{match:p}=(0,se.zy)(),f=(0,ke.Z)(),v=i[0],g=v?.id,C=Dh(),b=v?.items||[],x=(0,ps.cZ)(c),y=n?.isComplete&&!_e.BI&&!x,E=n?.isComplete&&_e.BI,L=c?.exportSettings?.webExportSettings,T=!Xo.isInstantLink&&(h?.disableCoverPage||L?.disableCoverPage),S=(0,u.useCallback)(()=>{r||(T?o.current?.scrollTo({top:0,behavior:Mn()?"instant":"smooth"}):(a(!0),fr(()=>{f("/")},"lesson-to-one-page-cover-continuous").finally(()=>{a(!1)})))},[f,T,r]);return(0,s.jsx)("div",{className:cQ(),children:(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,s.jsx)(Rl,{type:c.type,children:(0,s.jsx)(Zi,{type:"blocks",children:(0,s.jsxs)(Yu,{children:[(0,s.jsx)(B5,{}),(0,s.jsx)(Yi,{children:(0,s.jsx)(ya,{children:(0,s.jsxs)("div",{"data-lesson-id":v?.id,children:[(0,s.jsx)(n5,{animateBlockEntrance:c?.animateBlockEntrance,blocks:b,color:c?.color,courseId:c?.id,courseTitle:d,enableVideoPlaybackSpeed:c?.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:m,lessonId:g,lessonProgress:n,loadMedia:!0,match:p,partnerContent:C,prefersKeyboardNavigation:e,previewType:t,publishedAt:c?.publishedAt,tenantId:c?.tenantId,type:c?.type}),y&&(0,s.jsx)(iQ,{onClick:S}),E&&(0,s.jsx)(gp,{lessonId:g})]})})})]})})})})})},oC=K("microlearning-progress-summary"),dQ=K("page-wrap"),uQ=({course:t,courseProgress:e,isStepped:n,lesson:o})=>{const r=(0,u.useRef)(),a=(0,u.useRef)(),[i,c]=(0,u.useState)(!1),h=oC("content",{stepped:n,mounted:i}).toString();return(0,Cu.A)(()=>{const d=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:d}),c(!0)}),(0,s.jsxs)("div",{className:dQ(),id:"page-wrap",ref:r,children:[(0,s.jsx)(Cp,{className:oC("previous").toString(),lessonId:o?.id,ref:a}),(0,s.jsx)(c5,{contentClassName:h,course:t,courseProgress:e})]})},hQ=t=>{const{isProgressSummary:e,courseProgress:n,lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}=t,i=Lt(),c=i?.theme?.blockNavigationType===w.HC.STEPPED;return e?(0,s.jsx)(uQ,{course:i,courseProgress:n,isStepped:c}):c?(0,s.jsx)(aQ,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}):(0,s.jsx)(lQ,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a})};var mQ=l(26372);function rC(){const t=(0,U.wA)();return mQ.useMemo(()=>({advanceQuizLessonToEnd:e=>t((0,Es.YC)(e)),submitQuizAnswer:e=>t((0,Es.kK)(e)),setQuizLessonTimeRemaining:e=>t((0,Es.hy)(e))}),[t])}var pQ=l(26372);const aC=-1,fQ="MULTIPLE_CHOICE";function vQ({allowedRetries:t,currentRetries:e}){return t===aC?!1:e>=t}function gQ({lesson:t,lessonProgress:e,getL10nRecursive:n}){const{advanceQuizLessonToEnd:o,submitQuizAnswer:r}=rC();return pQ.useCallback(()=>{if(!t||!Tn(t))return;const a=t.settings??{},i=a.passToContinue??!1,c=Number(a.retryCount??aC),h=Object.values(e?.items??{}).filter(d=>!d.isComplete);if(h.length>0){const d=e.retryAttempts??0,m=vQ({allowedRetries:c,currentRetries:d});h.forEach(p=>{const f=nW({lesson:t,question:p});if(!f)return;const v=f.type||fQ,g=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,Ye.bb)(g),r({finalRetryAttempt:m,isCorrect:!1,itemId:p.id,lessonId:t.id,passToContinue:i})})}o(t.id)},[o,n,e,t,r])}var iC=l(26372);function CQ({children:t}){const e=ss(),n=bs(),o=Vs(n),r=mo(n),a=V2(),{setQuizLessonTimeRemaining:i}=rC(),c=iC.useMemo(()=>r??{},[r]),h=gQ({lesson:o,lessonProgress:c,getL10nRecursive:a}),d=iC.useMemo(()=>wo(o)?o.settings:void 0,[o]),m=!!d?.timer,p=d?.timerDuration;return(0,s.jsx)(aG,{courseProgress:e,currentLessonId:n,handleExpiredQuiz:h,isTimedQuiz:m,setQuizLessonTimeRemaining:i,timerDuration:p,children:t})}const xQ=t=>t?"mondrianTranscript"in t?t.mondrianTranscript:"tmp"in t&&t.tmp?.audio?.transcript||t.audio?.transcript:null;var bQ=l(26372);const yQ=960,xp=K("transcript-panel");function LQ({enhancedLabels:t,lessonId:e,questionBankActiveIndex:n}){const o=(0,U.wA)(),{audioPlayerIdOpen:r,focusing:a,refocusTarget:i,transcriptMedia:c}=hl(),h=!!r,d=(0,u.useId)(),m=(0,U.d4)(Z=>e?Ct(e,Z):null),f=e?.startsWith("question-bank-")?n:m?.type==="quiz"?m.activeIndex:void 0,v=ks(yQ),[g,C]=(0,u.useState)(0),[b,x]=(0,u.useState)(!1),[y,E]=(0,u.useState)(!1),L=(0,u.useRef)(!1),T=(0,u.useRef)(null),S=(0,u.useRef)(null),I=(0,u.useRef)(c),N=(0,u.useRef)(e),k=(0,u.useRef)(f),M=qt()||t,R=(0,u.useRef)(null),A=(0,u.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),B=(0,u.useCallback)(Z=>{const we=A.current.panelHeight,Me=performance.now();E(!0);const Ae=Ue=>{const it=Ue-Me,rt=Math.min(it/300,1),vt=1-Math.pow(1-rt,3),ft=we+(Z-we)*vt;C(ft),A.current.panelHeight=ft,rt<1?requestAnimationFrame(Ae):(E(!1),x(!1),A.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(Ae)},[x,E,C]),P=(0,u.useCallback)(Z=>{const{startTime:ve,startY:we,startHeight:Me}=A.current;if(!v||we===null)return;const Ae=we-(Z?.clientY??Z?.touches?.[0]?.clientY??0),Ue=Me+Ae;if(C(Ue),A.current.panelHeight=Ue,ve!==null){const it=performance.now()-ve,rt=Ae/it;A.current.velocity=rt}},[v]),O=(0,u.useCallback)(Z=>{const{velocity:ve}=A.current;if(!ve)return;Object.assign(A.current,{startY:null,startHeight:null,startTime:null}),x(!1);const we=window.innerHeight*.66;let Me;Math.abs(ve)>.5?Me=ve>0?window.innerHeight:150:Me=g>=we?window.innerHeight:150,B(Me),Z instanceof MouseEvent&&(window.removeEventListener("mousemove",P),window.removeEventListener("mouseup",O))},[B,g,P]),D=(0,u.useCallback)(Z=>{!v||S.current.contains(Z.target)||T.current.contains(Z.target)||(Object.assign(A.current,{startY:Z?.clientY??Z?.touches?.[0]?.clientY??null,startHeight:R.current?.clientHeight??0,startTime:performance.now()}),x(!0),Z.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",P),window.addEventListener("mouseup",O)))},[P,O,v,x]);(0,u.useEffect)(()=>{let Z;const ve=()=>{R?.current?.style&&(R.current.style.transition="none",R.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Ae=>{Ae.style.transition="none"}))},we=()=>{clearTimeout(Z),Z=setTimeout(()=>{R?.current?.style&&(R.current.style.transition="",R.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Ae=>{Ae.style.transition=""}))},200)};return window.addEventListener("resize",ve),window.addEventListener("resize",we),()=>{window.removeEventListener("resize",ve),window.removeEventListener("resize",we),clearTimeout(Z)}},[]),(0,u.useEffect)(()=>{!h&&L.current&&C(0),a&&h&&R.current&&(R.current.focus(),o(Gh({audioPlayerId:r,focusing:!1}))),L.current=h},[r,o,a,h]),(0,u.useEffect)(()=>{h&&c!==I.current&&(I.current=c)},[h,c]),(0,u.useEffect)(()=>{h&&N.current!==e&&o(al()),N.current=e},[e,h,o]),(0,u.useEffect)(()=>{h&&k.current!==f&&k.current!==void 0&&o(al()),k.current=f},[f,h,o]);const $={role:"button",tabIndex:0,onMouseDown:D,onTouchStart:D,onTouchEnd:O,onTouchMove:P},[H,F]=bQ.useState(!1),W=Rt(H?I.current:c),de=xQ(W);let fe;h&&(fe=Kh(r));const Se=(0,u.useCallback)(()=>{const Z=i??document.getElementById(Wv(r));return Z?(Z.focus(),!0):!1},[r,i]),De=(0,u.useCallback)(Z=>{Z.stopPropagation(),Z.preventDefault(),o(al()),Se()},[o,Se]),Ie=(0,u.useCallback)(()=>{Se()||S.current.focus()},[Se]),Ne=(0,u.useCallback)(()=>{S.current.focus()},[]),ae=(0,u.useCallback)(Z=>{r&&Z.key==="Escape"&&De(Z)},[r,De]);return(0,s.jsxs)(s.Fragment,{children:[h?(0,s.jsx)("div",{onFocus:Ie,tabIndex:0}):null,(0,s.jsx)(ys.B1,{classNames:"transcript-panel",in:h,nodeRef:R,onEnter:()=>F(!1),onEntered:()=>F(!1),onEntering:()=>F(!1),onExit:()=>F(!0),onExited:()=>F(!1),onExiting:()=>F(!0),timeout:300,unmountOnExit:!0,children:(0,s.jsxs)("section",{"aria-hidden":!h,"aria-labelledby":d,className:J()(xp({isOpen:h,isAnimatingMobileSwipe:y,isDragging:b})),id:fe,onKeyDown:ae,ref:R,style:v&&h?{height:`${g/10}rem`,minHeight:g>0?"33vh":void 0}:{},tabIndex:-1,children:[(0,s.jsxs)("header",{...v?$:{},children:[(0,s.jsx)("h3",{id:d,ref:T,children:M?.audioTranscript}),(0,s.jsx)(St.ArcButton,{"aria-label":M?.audioHideTranscript,className:xp("close-button"),hierarchy:"tertiary",icon:(0,s.jsx)(Je,{name:"close"}),layout:"icon",onClick:De,ref:S})]}),(0,s.jsx)("section",{className:xp("transcript-text",{"not-available":!de}),children:de||M?.audioNoTranscriptAvailable})]})}),h?(0,s.jsx)("div",{onFocus:Ne,tabIndex:0}):null]})}var Ol=l(26372);const cC={FORWARD:"page-transition",BACK:"page-transition-back"},l0=({id:t,lessons:e})=>t==="progress-summary"?1/0:e.findIndex(n=>n.id===t),EQ=t=>{window.parent.postMessage({type:"preview:lessonChange",data:t},"*")};function TQ({currentLessonId:t,lessons:e,isProgressSummary:n}){const o=(0,ke.Z)(),r=Ol.useRef(!1),a=Ol.useRef(t),i=Ol.useCallback(()=>r.current?cC.FORWARD:cC.BACK,[]),c=Ol.useCallback(h=>{const d=l0({id:h,lessons:e});if(n)r.current=!1;else if(h==="progress-summary")r.current=!0;else{const m=l0({id:t,lessons:e});r.current=m<d}o(`/lessons/${encodeURIComponent(h)}`)},[o,e,n,t]);return Ol.useEffect(()=>{const h=l0({id:t,lessons:e}),d=l0({id:a.current,lessons:e});h!==d&&e.length>0&&(r.current=d<h),a.current=t,EQ(t)},[t,e]),{getNavigateDirection:i,handleNavigate:c}}const bp=({course:t,courseProgress:e,didNavigate:n,lessons:o=[],previewType:r,sessionPreferences:a})=>{const i=(0,se.g)(),c=(0,se.zy)(),h=_e.BI&&i.id==="progress-summary",[d]=(0,u.useState)(i.mode==="preview-lesson"),m=(0,u.useRef)(null),p=ks(480),{getNavigateDirection:f,handleNavigate:v}=TQ({currentLessonId:i.id,lessons:o,isProgressSummary:h}),g=(0,ps.c3)(t),C=(0,u.useCallback)(()=>{g||(t.theme?.hideLessonHeaders?document.querySelector("main"):document.querySelector("h1"))?.focus({preventScroll:!0})},[t,g]),b=J()("lesson",{"lesson--preview":d}),x=(0,U.wA)(),y=(0,u.useCallback)(({item:N,refs:k})=>{if(!N)return;const M="media"in N?N.media:null;x(_v({audioPlayerId:Lo({refs:k}),transcriptMedia:M}))},[x]),E=(0,u.useCallback)(()=>{x(al())},[x]),L=(0,u.useCallback)(N=>{x(Gh(N))},[x]),T=mo(i.id),S=(0,u.useMemo)(()=>T??{},[T]),I=(0,u.useMemo)(()=>({didNavigate:n,handleNavigate:v,handleStorylineFullscreen:Zs.lQ,isMobileHeader:p,isProgressSummary:h,lessonProgress:S,navigateDirection:f,onNavigateTransitionEnd:Zs.lQ,onPageReady:C,previewType:r}),[n,f,C,v,p,h,S,r]);return(0,s.jsxs)(CQ,{children:[(0,s.jsxs)("div",{className:"page-lesson-wrap",children:[!g&&(0,s.jsx)(_j,{}),(0,s.jsxs)("div",{className:"page-lesson",children:[(0,s.jsx)(jR,{closeTranscript:E,mode:"readonly",onTranscriptUpdate:L,openTranscript:y,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)($P,{isPreviewLesson:d,children:g?(0,s.jsx)(hQ,{courseProgress:e,isProgressSummary:h,lessonProgress:S,prefersKeyboardNavigation:a.prefersKeyboardNavigation,previewType:r}):(0,s.jsx)(SK,{isPreviewLesson:d,children:(0,s.jsx)(qG,{...I},c.pathname)})})})})})}),(0,s.jsx)(LQ,{lessonId:String(e.currentLesson)})]})]}),(0,s.jsx)(_h,{onClose:C})]})},SQ=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",c=a&&r?.disableCoverPage,h=i&&o?.disableCoverPage,d=!Xo.isInstantLink&&(c||h),m=e.lessonsOnly[0]?.id;return(0,s.jsxs)(se.BV,{children:[(0,s.jsx)(se.qh,{element:(0,s.jsx)(bp,{...t}),path:"/lessons/:id"}),(0,s.jsx)(se.qh,{element:(0,s.jsx)(bp,{...t}),path:"/lessons/:id/:mode"}),d?(0,s.jsx)(se.qh,{element:(0,s.jsx)(se.C5,{replace:!0,to:(0,Tt.p1)(m)}),index:!0}):(0,s.jsx)(se.qh,{element:(0,s.jsx)(zv,{...t}),index:!0}),d?(0,s.jsx)(se.qh,{element:(0,s.jsx)(se.C5,{replace:!0,to:(0,Tt.p1)(m)}),path:"/:mode"}):(0,s.jsx)(se.qh,{element:(0,s.jsx)(zv,{...t}),path:"/:mode"})]})},yp=K("one-page-cover-info");function IQ({htmlIdTitle:t}){const e=hi("title");return(0,s.jsxs)("div",{className:yp(),"data-change-path":e,children:[(0,s.jsx)(O5,{className:yp("title").toString(),htmlId:t}),(0,s.jsx)(M5,{className:yp("authors").toString()})]})}const NQ=At("OnePageCoverInfo",IQ);function jQ(t){const e=(0,Lh.A)(({forwardedRef:o,...r})=>(0,s.jsx)(t,{...r,ref:o})),n=(0,u.forwardRef)((o,r)=>(0,s.jsx)(e,{...o,forwardedRef:r}));return n.displayName=`withRouterRef(${t.displayName||t.name})`,n}const d0=K("one-page-cover"),kQ=K("cover");class AQ extends u.Component{constructor(e){super(e),this.refLink=(0,u.createRef)(),this.refMain=(0,u.createRef)(),this.transitioning=!1,this.broadcastChannel=null}componentDidMount(){if(kv(),this.focusMain(),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("wheel",this.onWheel,{passive:!0}),(0,ps.No)(this.props.course)&&typeof BroadcastChannel<"u")try{this.broadcastChannel=new BroadcastChannel(J5),this.broadcastChannel.postMessage({type:eC,slideIndex:0}),this.broadcastChannel.onmessage=e=>{e.data.type===q5&&e.data.slideIndex===1&&!this.transitioning&&(this.transitioning=!0,this.transitionToLessonContent())}}catch{}}componentDidEnter(){this.focusMain()}componentWillUnmount(){document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.broadcastChannel&&this.broadcastChannel.close()}focusMain=()=>{this.refMain.current?.focus?.()};getLessonPath=()=>{const e=this.props.lesson?.id;return e?(0,Tt.p1)(e):null};transitionToLessonContent=()=>{const e=this.getLessonPath();if(e!=null){const o=this.props.course?.theme?.blockNavigationType===w.HC.STEPPED?"one-page-cover-to-lesson-stepped":"one-page-cover-to-lesson-continuous";fr(()=>{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=>{dl(this.props.previewType)||this.transitioning||e.deltaY>X5&&(this.transitioning=!0,document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.transitionToLessonContent())};render(){const{props:{course:e}}=this,n=e?.coverPageType===w.BL.WHITE,o=e?.coverPageType===w.BL.VIDEO,r=e?.coverPageType===w.BL.IMAGE,a=e?.coverPageType===w.BL.ACCENT,i=e?.theme?.blockNavigationType===w.HC.STEPPED,c=e?.theme?.coverImageColor??w.df.DARK,h="title",m=`overlay-${c?.toLowerCase()}`,p=d0("wrapper",{[m]:r,accent:a,image:r,white:n||o,video:o}).mix(kQ("header-content"));return(0,s.jsxs)(pu,{onSwipeUp:this.transitionToLessonContent,children:[(0,s.jsxs)("main",{className:p,ref:this.refMain,tabIndex:"-1",children:[(0,s.jsx)(NQ,{htmlIdTitle:h}),i&&(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:d0("start-wrapper"),onClick:this.onClickStartArea,children:(0,s.jsx)(Nn,{"aria-label":"Start",className:d0("start-link"),onClick:this.onClickStartLink,ref:this.refLink,to:this.getLessonPath(),children:(0,s.jsx)(Je,{className:d0("start-icon"),name:"arrow-down"})})}),r&&(0,s.jsx)(K1,{})]}),(0,s.jsx)(_h,{onClose:this.focusMain})]})}}function RQ(t){const e=Wt(t),n=(0,Ut.Vu)(e);return{course:e,lesson:n}}const lC=Xe()(jQ,(0,U.Ng)(RQ,null,null,{forwardRef:!0}))(AQ),wQ=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",c=a&&r?.disableCoverPage,h=i&&o?.disableCoverPage,d=(0,ps.VJ)(e),m=(0,ps.cZ)(e);let p=!1;d||m?p=!0:Xo.isInstantLink?p=!1:p=c||h;const f=e.lessonsOnly[0].id;return(0,s.jsxs)(se.BV,{children:[(0,s.jsx)(se.qh,{element:(0,s.jsx)(bp,{...t}),path:"/lessons/:id"}),p?(0,s.jsx)(se.qh,{element:(0,s.jsx)(se.C5,{replace:!0,to:(0,Tt.p1)(f)}),index:!0}):(0,s.jsx)(se.qh,{element:(0,s.jsx)(lC,{}),index:!0}),p?(0,s.jsx)(se.qh,{element:(0,s.jsx)(se.C5,{replace:!0,to:(0,Tt.p1)(f)}),path:"/:mode"}):(0,s.jsx)(se.qh,{element:(0,s.jsx)(lC,{}),path:"/:mode"})]})};class PQ extends u.Component{constructor(e){super(e),this.passwordRef=(0,u.createRef)(),this.state={failAttempt:!1,shouldShake:!1}}static propTypes={onSubmit:ct().func.isRequired,failAttempt:ct().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=J()("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 MQ=t=>({isOnePage:$a(t)}),OQ=(0,U.Ng)(MQ)(PQ),Lp=K("lesson-navigation-dropdown"),dC=({lessonTitle:t})=>(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:Lp("option",{"ai-loading":!0}),children:[(0,s.jsx)(vs,{value:t||"Generating lesson..."}),(0,s.jsx)("div",{className:Lp("ai-loading-progress"),children:(0,s.jsx)("div",{className:Lp("spinner")})})]})});var uC=l(26372);const Bl=K("lesson-navigation-dropdown"),BQ=({disabled:t,index:e,option:n,selectedLessonId:o,onSelect:r,getLessonPath:a})=>{const[i,c]=uC.useState(!0),h=`lesson-navigation-dropdown-section-${e}`,d=uC.useCallback(p=>{p.stopPropagation(),p.preventDefault(),c(f=>!f)},[]),m=Bl("group-header-icon",{collapsed:!i});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":h,"aria-expanded":i,className:Bl("group-header"),onClick:d,type:"button",children:[(0,s.jsx)(Je,{className:m,name:"caret-down"}),(0,s.jsx)("span",{className:Bl("group-header-text"),children:(0,s.jsx)(vs,{value:n.label})})]}),(0,s.jsx)(el,{inert:!i,children:(0,s.jsx)("ol",{"aria-hidden":i?void 0:!0,className:Bl("group-list",{collapsed:!i}),id:h,children:n.options?.map((p,f)=>{const v=String(p.value),g=t||p.disabled;return p.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(dC,{lessonTitle:p.label},`${v}-${f}`):(0,s.jsx)("li",{children:(0,s.jsx)(qc,{className:Bl("option",{disabled:g,selected:p.value===o}),onClick:g?void 0:()=>r(v),to:g?void 0:a(v),children:(0,s.jsx)(vs,{value:p.label})})},`${v}-${f}`)})})})]})},DQ=(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:[]}),HQ=(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}=DQ(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(g=>g&&g.id).map(g=>({label:g.title||"Untitled Lesson",type:g.type,value:String(g.id),disabled:g.type===null,lesson:g}))}}).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 FQ(t="course-overview"){const e=Ge(),n=eb()??{},o=z2(n),r=e.id,a=o,i=e.lessons||Object.keys(n),c=X3,h=HQ,[d,m]=(0,u.useState)(t),p=(0,u.useMemo)(()=>Array.isArray(a)?a:i.map(y=>a[y]).filter(Boolean),[i,a]),{options:f,hasGrouping:v}=(0,u.useMemo)(()=>h(p,{sectionType:"section"}),[p,h]),g=(0,u.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]),C=(0,u.useMemo)(()=>{for(const y of f)if(y.value===d)return y.type??null;return null},[f,d]),b=(0,u.useCallback)(y=>{m(y),y==="course-stack"&&(window.location.href=c.courseLocales({courseId:r}))},[c,r]),x=(0,u.useCallback)(y=>{const E=typeof window<"u"&&window.location?.pathname?.includes("/authoring/");switch(y){case"course-overview":return E?c.course({courseId:r}):"/";case"course-stack":return c.courseLocales({courseId:r});default:return E?c.lesson({courseId:r,lessonId:y}):`/lessons/${y}`}},[r,c]);return{options:f,hasGrouping:v,selectedLessonId:d,selectedLessonType:C,selectedOptionLabel:g,onLessonChange:b,getLessonPath:x}}var Lr=l(26372);const Io=K("lesson-navigation-dropdown"),VQ=({disabled:t,options:e,selectedLessonId:n,handleOnSelect:o,getLessonPath:r})=>{const a=Ge(),i=(0,Zt.HX)(a);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:Io("course-nav-links"),children:[i&&(0,s.jsxs)(qc,{className:Io("option",{selected:n==="course-stack","with-icon":!0}),onClick:()=>o("course-stack"),to:r("course-stack"),children:[(0,s.jsx)(St.ArcIcon,{icon:"fa-regular fa-globe"}),(0,s.jsx)(vs,{value:"Course Stack"})]}),(0,s.jsxs)(qc,{className:Io("option",{disabled:t,selected:n==="course-overview","with-icon":!0}),onClick:()=>o("course-overview"),to:r("course-overview"),children:[(0,s.jsx)(St.ArcIcon,{className:Io("book-icon"),icon:"fa-regular fa-book-open"}),(0,s.jsx)(vs,{value:"Course Overview"})]})]}),(0,s.jsx)("div",{"aria-labelledby":"lesson-navigation-title",className:Io("list-header"),role:"group",children:(0,s.jsx)("div",{id:"lesson-navigation-title",children:(0,s.jsx)(vs,{value:"Lessons"})})}),(0,s.jsx)("ol",{className:Io("list"),children:e.map((c,h)=>{if(c.options&&c.options.length>0)return(0,s.jsx)("li",{children:(0,s.jsx)(BQ,{disabled:t,getLessonPath:r,index:h,onSelect:o,option:c,selectedLessonId:String(n)})},`${String(c.value)}-${h}`);{const d=String(c.value),m=t||c.disabled;return c.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(dC,{lessonTitle:String(c.label)},d):(0,s.jsx)("li",{children:(0,s.jsx)(qc,{className:Io("option",{disabled:m,selected:c.value===n}),onClick:m?void 0:()=>o(d),to:m?void 0:r(d),children:(0,s.jsx)(vs,{value:c.label})})},d)}})})]})},zQ=({currentLessonId:t,sendTrackingEvent:e})=>{const[n,o]=Lr.useState(!1),r=Lr.useRef(!1),a=Lr.useRef(null),{onLessonChange:i,options:c,selectedLessonId:h,selectedOptionLabel:d,getLessonPath:m}=FQ(t),p=Lr.useCallback(()=>{setTimeout(()=>{const y=document.querySelector("[popover]#lesson-navigation-dropdown");if(!y)return;const E=y.querySelector(`.${Io("option--selected")}`);E&&(E.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),E.focus())},100)},[]),f=Lr.useCallback(y=>{if(!n)return;const E=document.querySelector("[popover]#lesson-navigation-dropdown");if(!E)return;const L=E.querySelectorAll(`.${Io("option")}, .${Io("group-header")}`);if(L.length===0)return;const T=document.activeElement,S=Array.from(L).indexOf(T);let I=S;switch(y.key){case"ArrowDown":y.preventDefault(),I=S===-1?0:(S+1)%L.length;break;case"ArrowUp":y.preventDefault(),I=S===-1?L.length-1:(S-1+L.length)%L.length;break;case"Home":y.preventDefault(),I=0;break;case"End":y.preventDefault(),I=L.length-1;break;case"Escape":y.preventDefault(),St.ArcPopover.handlePopover("lesson-navigation-dropdown","hide");return;case"Enter":case" ":case"Space":y.preventDefault(),S>=0&&L[S]?.click();return;default:return}L[I]?.focus(),L[I]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[n]);Lr.useEffect(()=>{if(n)return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[n,f]);const v=Lr.useCallback(y=>{i(y),St.ArcPopover.handlePopover("lesson-navigation-dropdown","hide")},[i]),g=Lr.useCallback(y=>{n||(y.currentTarget.style.borderColor="var(--arc-color-border-stark)")},[n]),C=Lr.useCallback(y=>{y.currentTarget.style.borderColor="transparent"},[]),b={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"},x={fontSize:"1.1rem",fontWeight:"var(--arc-font-weight-600)",marginBlockStart:"var(--arc-space-0-25)"};return(0,s.jsx)("nav",{children:(0,s.jsx)(St.ArcPopover,{anchorAt:"bottom-start",anchorProps:{iconEnd:(0,s.jsx)("i",{className:"fa-regular fa-chevron-down",style:x}),layout:"hug",onMouseEnter:g,onMouseLeave:C,style:b,text:d,variant:"tertiary",ref:a},"aria-labelledby":"lesson-navigation-title",className:Io(),hasTail:!1,id:"lesson-navigation-dropdown",onToggle:y=>{const E=y.newState==="open";if(o(E),E)e();else{r.current=!1;return}r.current||(p(),r.current=!0)},variant:"common",children:(0,s.jsx)(VQ,{disabled:!1,getLessonPath:m,handleOnSelect:v,options:c,selectedLessonId:String(h)})})})},Dl=K("app-header"),$Q=({children:t,className:e="",currentLessonId:n,isArcButtonGroup:o=!1,isAIAssistantEnabled:r=!1,isBlockActionsSidebarOpen:a=!1,isMicrolearning:i=!1,localesDropdown:c=null,menuButton:h=null,sendLessonNavDropdownTrackingEvent:d=()=>{},snapshotDropdown:m=null,versionDropdown:p=null,title:f})=>{const v=Dl({v2:r}).mix(e),g=!!(m||c||p),b=n!=null&&n!=="course-overview"&&!_e.BI&&!i&&!a;return(0,s.jsxs)("div",{className:v,dir:"ltr",id:"app-header",children:[h,(0,s.jsxs)("div",{className:Dl("title-dropdowns"),children:[f&&!b&&(0,s.jsx)("div",{className:Dl("title"),"data-testid":"AppHeaderTitle",children:(0,s.jsx)(vs,{value:f})}),b&&(0,s.jsx)(zQ,{currentLessonId:n,sendTrackingEvent:d}),g&&(0,s.jsxs)("div",{className:Dl("dropdowns"),children:[m,c,p]})]}),(0,s.jsx)("div",{className:Dl("btn-group",{arc:o}),"data-testid":"AppHeaderButtonGroup",children:t})]})},UQ=t=>J()("button",{[t.className]:!rn()(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}),_Q=({icon:t})=>t?(0,s.jsx)("i",{className:`button__icon icon-${t}`}):null,WQ=({onlyIcon:t,children:e})=>u.Children.map(e,n=>t&&n.type===void 0?null:n),GQ=({accent:t,ariaControls:e,ariaExpanded:n,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:i,className:c,children:h,condensed:d,controls:m,controlsEnhanced:p,disabled:f,el:v,extraPadding:g,header:C,headerDone:b,icon:x,inverted:y,mode:E,next:L,onClick:T=Function.prototype,onlyIcon:S,onMouseDown:I=Function.prototype,outline:N,outlineTransparent:k,sidebar:M,tabIndex:R,type:A,...B})=>{const P=v||"button";return P==="button"&&!A&&(A="button"),(0,s.jsxs)(P,{"aria-controls":e,"aria-expanded":n,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:UQ({accent:t,branded:i,className:c,condensed:d,controls:m,controlsEnhanced:p,disabled:f,extraPadding:g,header:C,headerDone:b,inverted:y,mode:E,next:L,outline:N,outlineTransparent:k,sidebar:M}),disabled:f,onClick:T,onMouseDown:I,tabIndex:R,type:A,...B,children:[(0,s.jsx)(_Q,{icon:x}),WQ({onlyIcon:S,children:h})]})};var cn,hC,KQ,QQ,mC,ZQ,YQ,XQ,Ep,pC,JQ,qQ;const or=K("app-header"),fC=(0,_e._$)("CDN_URI"),eZ=({disabled:t,onClick:e})=>(0,s.jsx)("button",{className:or("promo-btn"),disabled:t,onClick:e,type:"button",children:"New"}),vC=({children:t,disabled:e=!1,done:n=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:i=!1,el:c="button",href:h=void 0,external:d=!1,capitalize:m=!0,...p})=>{const f=(0,ke.Z)(),v=(0,u.useCallback)(async C=>{e||(o&&await o(C),h&&(d?window.location.href=h:f(h)))},[f,h,o,e,d]),g=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(GQ,{disabled:e,el:h?"a":c,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)(eZ,{disabled:e,onClick:v}),a]});return(0,s.jsx)(St.ArcTooltip,{anchorAt:"left-center","data-testid":"AppHeaderButtonTooltipContainer",isEnabled:e&&!!r,text:r,children:g})};vC.propTypes={children:ct().node,disabled:ct().bool,done:ct().bool,el:ct().string,href:ct().string,onClick:ct().func,tooltipText:ct().string,dataBa:ct().string};const dre=()=>cn("div",{className:or("divider")}),ure=({href:t,label:e,onClick:n,xhref:o,...r})=>{const a=QQ(),i=mC(async c=>{if(o||c.preventDefault(),n)return n();t&&a(t)},[t,o,a,n]);return cn("div",{className:or("menu-btn"),...r,children:cn("a",{"aria-label":e,className:or("menu-close"),href:o,onClick:i,children:cn(XQ,{})})})},hre=({onClick:t,label:e,...n})=>{const o=qQ("rise-lesson-nav-dropdown-release"),r=JQ(),a=!!r?.defaultLocaleId,c=window.location.search.includes("fromDashboard")||!r?.id,h=r?.id?Ep.course({courseId:r.id}):null,d=mC(m=>{t&&t(m)},[t]);return cn(hC,{children:o?cn(hC,{children:a?KQ(pC,{className:or("menu-btn"),onClick:d,to:Ep.courseLocales,...n,children:[cn(YQ,{className:or("back-icon"),icon:"fa-regular fa-chevron-left"}),cn("div",{className:"visually-hidden-always",children:e})]}):c?cn("a",{className:or("menu-btn"),href:Ep.dashboard,onClick:d,...n,children:cn("img",{alt:e,src:`${fC}/assets/rise/assets/articulate-a-logo.svg`})}):cn(pC,{className:or("menu-btn"),onClick:d,to:h,...n,children:cn("img",{alt:e,src:`${fC}/assets/rise/assets/articulate-a-logo.svg`})})}):cn("div",{className:or("menu-btn"),children:cn(ZQ,{ariaLabel:e,icon:"up-level-2",onClick:t,...n})})})},mre=({children:t,...e})=>cn("div",{className:or("owner-label"),...e,children:t});var u0=l(26372);const Ws=K("curtain"),tZ=({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:c="Refresh",labelCurtainSomethingWrongTryAgain:h="Click to refresh and try again.",loadingText:d,showHeader:m,status:p})=>{const[f,v]=u0.useState(!1),g=()=>v(!0),C=u0.useRef(null);return u0.useEffect(()=>(C.current=setTimeout(g,1e4),()=>{C.current&&clearTimeout(C.current)}),[]),u0.useEffect(()=>{if(p==="error"){const b=new Error("There was a socket connection error. The renderReconnect curtain was displayed");H6.y.logger.error(b.message,b)}},[p]),p==="fatalError"?(0,s.jsx)(nZ,{labelCurtainSomethingWrong:i,labelCurtainSomethingWrongRefresh:c,labelCurtainSomethingWrongTryAgain:h,showHeader:m}):p==="error"&&f?(0,s.jsx)(rZ,{labelCurtainSessionTimedOut:o,labelCurtainSessionTimedOutRefresh:r,labelCurtainSessionTimedOutRestart:a,showHeader:m}):p==="error"?(0,s.jsx)(oZ,{labelCurtainOffline:e,labelCurtainOfflineReconnecting:n,showHeader:m}):(0,s.jsx)(sZ,{labelCurtainLoading:t,showHeader:m,text:d})},gC=()=>window.location.reload(),sZ=({labelCurtainLoading:t,showHeader:e,text:n})=>(0,s.jsx)("div",{className:Ws("container",{"show-header":e}),children:(0,s.jsxs)("div",{className:Ws(),children:[(0,s.jsx)("div",{className:Ws("spinner")}),(0,s.jsx)("div",{className:Ws("text"),children:n||t})]})}),nZ=({labelCurtainSomethingWrong:t,labelCurtainSomethingWrongRefresh:e,labelCurtainSomethingWrongTryAgain:n,showHeader:o})=>(0,s.jsx)("div",{className:Ws("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Ws(),children:[(0,s.jsx)("div",{className:Ws("title"),children:t}),(0,s.jsx)("div",{className:Ws("description"),children:n}),(0,s.jsx)(St.ArcButton,{onClick:gC,children:e})]})}),oZ=({labelCurtainOffline:t,labelCurtainOfflineReconnecting:e,showHeader:n})=>(0,s.jsx)("div",{className:Ws("container",{"show-header":n}),children:(0,s.jsxs)("div",{className:Ws(),children:[(0,s.jsx)("div",{className:Ws("spinner",{reconnect:!0})}),(0,s.jsx)("div",{className:Ws("title"),children:t}),(0,s.jsx)("div",{className:Ws("description"),children:e})]})}),rZ=({labelCurtainSessionTimedOut:t,labelCurtainSessionTimedOutRefresh:e,labelCurtainSessionTimedOutRestart:n,showHeader:o})=>(0,s.jsx)("div",{className:Ws("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Ws(),children:[(0,s.jsx)("div",{className:Ws("title"),children:t}),(0,s.jsx)("div",{className:Ws("description"),children:n}),(0,s.jsx)(St.ArcButton,{onClick:gC,children:e})]})}),CC=tZ;var aZ=l(61162);function iZ({children:t,locale:e,...n}){const o=(0,se.zy)(),r=vo(),a=(0,u.useMemo)(()=>{const i=e===r?"":e,c=new URLSearchParams(o.search);return c.set("locale",i),o.pathname+"?"+c.toString()+o.hash},[r,e,o]);return(0,s.jsx)(Nn,{...n,to:a,children:t})}const rr=K("locales-dropdown"),cZ=({backToStackCourseId:t,currentLocale:e,defaultLocale:n,locales:o,message:r,onChange:a,optionType:i,showMessageIndicator:c})=>{const h=(0,u.useRef)(null),d=(0,u.useRef)(null),[m,p]=(0,u.useState)(!1),[f,v]=(0,u.useState)(!1),g=(0,u.useMemo)(()=>o.filter(L=>L.localeCode!==n),[n,o]),C=(0,u.useMemo)(()=>o.find(L=>L.localeCode===n),[n,o]),b=(0,u.useMemo)(()=>o.find(L=>L.localeCode===e),[e,o]);(0,u.useLayoutEffect)(()=>{m&&f&&(h.current?.querySelector(`[data-locale="${e}"]`)?.focus(),v(!1))},[m,f,e]),(0,u.useEffect)(()=>{const L=T=>{gn(T)&&(d.current?.focus(),p(!1)),Hd(T)&&setTimeout(()=>{h.current.contains(document.activeElement)||p(!1)},0)};return m&&document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[m]);const x=(0,u.useCallback)(L=>{!m&&document.activeElement===L.currentTarget&&v(!0),p(!m)},[m]),y=(0,u.useCallback)(L=>{m&&!d.current?.contains(L?.target)&&p(!1)},[m]);(0,aZ.A)(h,y),(0,u.useEffect)(()=>{const L=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&y()},0);return window.addEventListener("blur",L),()=>window.removeEventListener("blur",L)},[y]);const E=(0,u.useCallback)(L=>{document.activeElement===L.currentTarget&&d.current?.focus(),p(!1),a?.(L.currentTarget.getAttribute("data-locale"))},[a]);return(0,s.jsxs)("div",{className:rr({isOpen:m}),children:[(0,s.jsx)("div",{className:rr("trigger-wrap"),children:(0,s.jsxs)("button",{className:rr("trigger"),onClick:x,ref:d,type:"button",children:[c&&(0,s.jsx)("div",{className:rr("message-indicator")}),(0,s.jsx)(Je,{name:"globe"}),b.displayName,(0,s.jsx)(Je,{name:"chevron-down"})]})}),(0,s.jsxs)("div",{className:rr("contents"),ref:h,children:[r,(0,s.jsx)("div",{className:rr("grouping-header"),children:"Source"}),(0,s.jsx)(xC,{checked:n===e,locale:C,onClick:E,type:i}),(0,s.jsx)("div",{className:rr("grouping-header"),children:"Translations"}),g.map(L=>(0,s.jsx)(xC,{checked:L.localeCode===e,locale:L,onClick:E,type:i},L.localeCode)),t&&(0,s.jsx)("a",{className:rr("stack-button"),href:`/manage/locales/${t}`,children:"Back to Stack"})]})]})},xC=({checked:t,locale:e,onClick:n,type:o})=>o==="link"?(0,s.jsx)(iZ,{className:rr("option",{checked:t}),"data-locale":e.localeCode,locale:e.localeCode,onClick:n,children:e.displayName},e.localeCode):(0,s.jsx)("button",{className:rr("option",{checked:t}),"data-locale":e.localeCode,onClick:n,type:"button",children:e.displayName},e.localeCode),lZ=({hideBackToStack:t,...e})=>{const n=Ge(),{currentLocale:o}=(0,jt.nY)(),r=R1(),a=vo(),i=Uh(),c=t?void 0:n?.id,h=(0,u.useMemo)(()=>r.map(d=>({localeCode:d.locale,displayName:i(d.locale)})),[i,r]);return(0,s.jsx)(cZ,{backToStackCourseId:c,currentLocale:o,defaultLocale:a,locales:h,optionType:"link",...e})},bC=window.location.origin,dZ=1e3,uZ="course:ready",yC="localizedSharePreview:ready",hZ="preview:selectLocale",Tp="localizedSharePreview:toggleCurtain",LC="localizedSharePreview:togglePreview",tc=K("localized-share-preview"),sc=!!window.frameElement,EC=t=>(0,Zt.HX)(t)&&(0,Ye.GS)(),mZ=t=>EC(t)&&!sc,pZ=(t,e)=>window.parent?.postMessage({type:t,data:e});let TC=null;const fZ=({children:t})=>{const e=(0,U.wA)(),n=(0,ke.Z)(),o=(0,se.zy)(),{currentLocale:r,setCurrentLocale:a}=(0,jt.nY)(),i=vo(),c=rc(),h=Lt(),m=!!(h&&"hasPassword"in h?h.hasPassword:void 0)||(0,Ye.og)(),p=(0,u.useRef)(null),[f,v]=(0,u.useState)(!1),[g,C]=(0,u.useState)(!1),[b,x]=(0,u.useState)(!m),y=(0,u.useMemo)(()=>`${bC}/share/${window.shareId}#/?locale=${r}`,[]),[E,L]=(0,u.useState)(null),[T,S]=(0,u.useState)(r),[I,N]=(0,u.useState)(!1),[k,M]=(0,u.useState)(!sc),R=(B,P)=>p.current?.contentWindow.postMessage({type:B,data:P});(0,u.useEffect)(()=>{sc||R(hZ,r)},[r]),(0,u.useEffect)(()=>{sc&&(pZ(yC),setTimeout(()=>N(!0),0))},[]),(0,u.useEffect)(()=>{const B=P=>{if(P.origin!==bC)return;const D=P.data?.type,$=P.data?.data;if(sc)switch(D){case Tp:{M($);break}case LC:{$?(S(r),L(o),e((0,$h.Wp)(!0)),a(i),n("/",{replace:!0})):(e((0,$h.Wp)(!1)),a(T),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(D){case uZ:{M(!1);break}case yC:{x(!0);break}}};return window.addEventListener("message",B),()=>{window.removeEventListener("message",B)}},[i,e,n,r,o,T,E,a]);const A=(0,u.useCallback)(()=>{const B=!f;clearTimeout(TC),C(!0),R(Tp,!0),TC=setTimeout(()=>{C(!1),R(Tp,!1),v(B)},dZ),setTimeout(()=>{R(LC,B)},0)},[f]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:tc("curtain",{hide:!k}),children:(0,s.jsx)(CC,{})}),sc?I&&t:(0,s.jsxs)("div",{className:tc(),children:[b&&(0,s.jsx)($Q,{className:tc("header"),localesDropdown:!f&&!g&&(0,s.jsx)(lZ,{hideBackToStack:!0}),title:c,children:(0,s.jsx)(vC,{capitalize:!1,className:tc("preview-button"),disabled:g,done:!0,onClick:A,children:f?"Close Learner Preview":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Je,{className:tc("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,s.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:tc("iframe"),ref:p,src:y})]})]})};function SC(t,e=window.location){const{defaultLocale:n,locales:o}=t??{},r=e.hash?(0,se.Rr)(e.hash.slice(1)):e;let i=new URLSearchParams(r.search).get("locale");const c=new URL(window.location.href);return c.pathname.startsWith("/view-pdf/")&&(i=c.searchParams.get("locale")),o?.find(d=>d.locale===i)?.locale||n}const IC=t=>t===window.location.origin||t==="articulate.com"||t.endsWith(".articulate.com");function vZ({children:t,course:e,courseProgress:n,labels:o,languageCode:r,partnerContent:a,search:i}){const c=Bo(),{currentLocale:h}=(0,jt.nY)(),d=h&&c?.localeLabelSets?.[h]?.labels||o,m=h&&c?.localeLabelSets?.[h]!=null?h:r;return(0,s.jsx)(_x,{course:e,courseProgress:n,labels:d,labelsLocale:m,partnerContent:a,search:i,children:t})}function gZ({course:t,locales:e,languageCode:n}){const{currentLocale:o}=(0,jt.nY)();return(0,u.useEffect)(()=>{document.documentElement.lang=o??n??""},[o,n]),(0,u.useEffect)(()=>{F2({course:t,locales:e,locale:o})?document.documentElement.dir="rtl":document.documentElement.dir=""},[t,e,o]),null}var CZ=l(78774);function xZ({children:t,l10n:e}){const n=(0,u.useMemo)(()=>({l10n:e==null?null:(0,CZ.omit)(["locales","defaultLocale"],e)}),[e]),o=e?.locales,r=e?.defaultLocale,a=e?.localeSelectorOptions,i=e?.languageCodeMetadata,c=(0,u.useMemo)(()=>o==null||r==null?{l10n:null}:{l10n:{locales:o,defaultLocale:r,localeSelectorOptions:a,languageCodeMetadata:i}},[o,r,a,i]);return(0,s.jsx)(Mc.Provider,{value:n,children:(0,s.jsx)(A1.Provider,{value:c,children:t})})}function bZ({defaultLocale:t,locales:e}){const n=(0,ke.Z)(),o=(0,se.zy)(),r=(0,u.useRef)(o);r.current=o;const a=(0,u.useMemo)(()=>SC({defaultLocale:t,locales:e},o),[t,e,o]),i=(0,u.useCallback)((c,h="replace")=>{const d=r.current,m=c===t?"":c,p=new URLSearchParams(d.search);p.set("locale",m);const f=d.pathname+"?"+p.toString()+d.hash;h==="push"?n(f):n(f,{replace:!0})},[t,n]);return{currentLocale:a,setCurrentLocale:i}}function yZ({children:t}){const e=Bo(),{currentLocale:n,setCurrentLocale:o}=bZ({defaultLocale:e?.defaultLocale,locales:e?.locales});return(0,s.jsx)(xZ,{l10n:e,children:(0,s.jsx)(jt.fH,{currentLocale:n,setCurrentLocale:o,children:t})})}function LZ(){const{setCurrentLocale:t}=(0,jt.nY)(),e=(0,u.useCallback)(n=>{if(!IC(n.origin))return;const r=[n.data].flat().find(a=>a?.type==="preview:selectLocale");r&&t(r.data,"replace")},[t]);(0,u.useEffect)(()=>(window.addEventListener("message",e),()=>window.removeEventListener("message",e)),[e])}function EZ(){return LZ(),null}const TZ=(0,u.lazy)(()=>l.e("_b106").then(l.t.bind(l,63744,23))),SZ=({children:t})=>{const e=Ge(),{setCurrentLocale:n,currentLocale:o}=(0,jt.nY)(),r=Rt(e?.title),a=Oc()?.l10n?.languageCodeMetadata??{},i=Object.entries(a).map(([c,h])=>({code:c,learnerDisplayName:h.learnerDisplayName})).sort((c,h)=>c.learnerDisplayName.localeCompare(h.learnerDisplayName));return(0,s.jsx)(u.Suspense,{fallback:null,children:(0,s.jsx)(TZ,{courseTitle:r,currentLocale:o,locales:i,setCurrentLocale:n,children:t})})};class IZ extends u.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 NZ=IZ;var jZ=l(50851);const kZ=(0,u.lazy)(()=>l.e("webpack_container_remote_learn_distribution_frontend_learn_ai-learner-popout").then(l.t.bind(l,68789,23))),AZ=()=>{const t=z2(Lt()),e=vn(),n=bs(),o=wC(),{currentLocale:r}=(0,jt.nY)(),a=window,i=a?.growth?.getSubscription?.()?.id||t?.tenantId||void 0,c=a?.growth?.getUser?.()?.id||`learner_${t.author}`,h=XC(),d=async()=>{try{await(0,jZ.wD)()}catch{}},m=Vs(n),p=o?"AI Tutor is disabled while a quiz is in progress.":void 0;return!t.settings?.aiTutorEnabled||m?.type==="quiz"||o?null:(0,s.jsx)(NZ,{FallbackComponent:()=>null,children:(0,s.jsx)(u.Suspense,{fallback:null,children:(0,s.jsx)(kZ,{apiKey:t.aiLearnerCourseApiKey,course:t,currentLessonId:n,currentLocale:r,disabled:o,disabledReason:p,resetSession:d,restrictedLessonIds:h,rtl:e,subscriptionId:i,userId:c})})})};var h0=l(26372);const NC=h0.createContext({typefaces:[]});function RZ({addTypefaces:t,children:e,typefaces:n=[]}){wZ(n);const o=h0.useMemo(()=>({addTypefaces:t,typefaces:n}),[t,n]);return(0,s.jsx)(NC.Provider,{value:o,children:e})}function fre(){return h0.useContext(NC)}function wZ(t){h0.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 e.insertRule('[data-rise-typeface-id="@@heading@@"] { font-family: var(--font-family-head); }'),e.insertRule('[data-rise-typeface-id="@@body@@"] { font-family: var(--font-family-body); }'),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(n=>n!==e)}},[t])}var PZ=l(26372);function MZ({children:t}){const e=(0,U.d4)(o=>o.fonts),n=PZ.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)(RZ,{typefaces:n,children:t})}const jC=Object.assign(document.createElement("div"),{id:"portal"});function kC(t){(t??document.body).appendChild(jC),jC.style.display=t?"":"none"}kC();const OZ=(t,e)=>!(t==="firstLesson"&&e.includes("/lessons/"))&&!(t==="cover"&&(e==="/"||e==="/preview")),BZ=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",fn.FOCUS,fn.TOGGLE,fn.CLEAR,fn.TRANSLATION_HOVERED,fn.TRANSLATION_HOVER_CLEAR].includes(t),DZ=({course:t,fonts:e,l10n:n})=>()=>((0,U.JD)((0,nl.V7)({course:t,fonts:e,l10n:n})),bi().Resolved()),HZ=()=>(window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin),bi().Resolved()),FZ=({course:t,fonts:e,l10n:n})=>bi()((o,r)=>{(0,vA.U2)(e,r)}).chain(DZ({course:t,fonts:e,l10n:n})).chain(HZ),VZ=t=>EC(t)?fZ:Xo.isInstantLink?SZ:u.Fragment;function zZ(t){const e=(0,se.zy)(),n=(0,u.useRef)(e);(0,u.useEffect)(()=>{n.current!==e&&(t(),n.current=e)},[e,t])}const $Z=()=>{let t=[],e=0;return n=>{clearTimeout(e);for(const o of n)t.push(o);e=setTimeout(()=>{const o=t;t=[],(0,U.JD)((0,nl.TJ)(o))},15)}};class UZ extends u.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.handleMessage=this.handleMessage.bind(this),this.handleLocationChange=this.handleLocationChange.bind(this),window.targetMode=Mx({locale:SC(e.l10n)})}handleLocationChange(){this.setState({didNavigate:!0})}UNSAFE_componentWillMount(){const{l10n:e}=this.props;jn.isIe11&&document.documentElement.classList.add("ie11"),jn.isSafari9&&document.documentElement.classList.add("safari9"),jn.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),jn.isSafari&&this.props.match.params.mode==="iframe"&&fk().enable(),window.addEventListener("message",this.handleMessage),window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:fn.STATUS,data:!!window.targetMode},"*"),(0,Ye.xr)()&&window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e?.defaultLocale,locales:e?.locales?.map(({locale:n})=>n)}}),bA(n=>(0,U.JD)((0,Sv.xi)(n)))}componentDidMount(){(0,ws.on)("favoriteAdded",this.onFavoriteAdded),(0,ws.on)("favoriteRemoved",this.onFavoriteRemoved),document.addEventListener("click",()=>{window.parent.postMessage("coursePreviewIframeClicked","*")})}updateConnectionStatus(e){(0,U.JD)((0,Iv.zq)(e))}componentDidUpdate(){this.state.didNavigate&&setTimeout(()=>{this.setState({didNavigate:!1})},0)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage),(0,ws.AU)("favoriteAdded",this.onFavoriteAdded),(0,ws.AU)("favoriteRemoved",this.onFavoriteRemoved)}handleMessage(e){const{data:n,origin:o}=e;if(!IC(o))return;const{navigate:r,location:a={}}=this.props,{pathname:i}=a,{course:{lessonsOnly:c}}=this.props;(0,uk.A)(n).forEach(({type:h,data:d})=>{if(BZ(h)){if(h===fn.TOGGLE&&window.targetMode(d,m=>{window.parent.postMessage({type:fn.HOVERED,data:m},"*")}).then(m=>{window.parent.postMessage({type:fn.SELECTED,data:m},"*")}).catch(()=>{window.parent.postMessage({type:fn.SELECTED,data:[]},"*")}),h==="preview:update"&&this.setState({previewType:d}),h==="preview:themeUpdate"&&this.handleThemePreviewUpdate(d),h==="preview:navigate"){let{type:m,lessonId:p,itemId:f,path:v,replace:g}=d;const C=g?b=>r(b,{replace:!0}):r;if(OZ(m,i)){if(Array.isArray(v)){const b=(0,lr.Ce)(v);if(b)({type:m,lessonId:p,itemId:f}=b);else if(v[0]==="mondrian"){const{course:x}=this.props;for(const y of x.lessons){const E=y.items.find(L=>L.blockumentId===v[1]);if(E){m="lesson",p=y.id,f=E.id;break}}}else return}if(m==="firstLesson")C(`/lessons/${c[0].id}`);else if(m==="cover"||m==="course")C("/");else if(m==="lesson"&&c.find(({id:x})=>x===p)!=null){const x=()=>{window.dispatchEvent(new CustomEvent(Kt,{detail:{lessonId:p,itemId:f,path:v}}))};`/lessons/${p}`!==i?(C(`/lessons/${p}`),setTimeout(x,1500)):x()}}}if(h===fn.CLEAR&&window.dispatchEvent(new CustomEvent(vh)),h==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(sv)),h==="preview:navClose"&&window.dispatchEvent(new CustomEvent(nv)),h==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(Gd)),h==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(Kd)),h==="preview:scrollto"&&typeof d.target=="string"){const m=document.querySelector(d.target);m&&(0,vk.A)(m,{behavior:"smooth",block:"start"})}h==="preview:replace"&&(0,U.JD)((0,nl.HC)(d)),h==="preview:changeset"&&this.applyChangesetDebounced(d),h===fn.FOCUS&&Dx(d.path),h===fn.TRANSLATION_HOVERED&&(this.setState({targetModeContext:{translationHoveredPath:d.path}}),Bx(d.path)),h===fn.TRANSLATION_HOVER_CLEAR&&(this.setState({targetModeContext:{translationHoveredPath:null}}),Px()),h==="preview:lessonUpdate"&&this.handleLessonPreviewUpdate(d)}})}cancelThemePreviewUpdate(){}handleThemePreviewUpdate({course:e,l10n:n,fonts:o,theme:r}){this.cancelThemePreviewUpdate();const{course:a}=this.props,i=bo()("theme",r,e),c=(0,gk.MT)({course:a,updates:i});this.cancelThemePreviewUpdate=FZ({course:c,fonts:o,l10n:n}).fork(console.warn,Zs.lQ)}handleLessonPreviewUpdate(e){(0,U.JD)((0,nl.YB)(e)),window.parent.postMessage({type:"preview:lessonUpdateComplete"},window.location.origin)}onSharePasswordSubmit(e){return(0,Ye.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,U.JD)((0,Tv.nF)())}onFavoriteRemoved(){(0,U.JD)((0,Tv.pp)())}applyChangesetDebounced=$Z();renderAppLayout(){if(!this.props.course)return null;const{course:e,course:{bodyTypeface:n,color:o,headingTypeface:r,themeId:a,theme:i,uiTypeface:c},courseProgress:h,l10n:d,labels:m,languageCode:p,lessons:f,partnerContent:v,search:g,sessionPreferences:C}=this.props,{didNavigate:b,previewType:x,targetModeContext:y}=this.state,E={course:e,courseProgress:h,didNavigate:b,lessons:f,previewType:x,sessionPreferences:C},L=i?.accentContrast,T=(0,ps.c3)(e),S={accentContrast:L,bodyTypeface:n,color:o,headingTypeface:r,isLegacyCourse:e?.isLegacyCourse,uiTypeface:c},I=J()("theme",a,{"one-page":T}),N=VZ(e),k=T?wQ:SQ;return(0,s.jsxs)(yZ,{children:[(0,s.jsx)(EZ,{}),(0,s.jsx)(gZ,{course:e,languageCode:p,locales:d?.locales}),(0,s.jsx)(vZ,{course:e,courseProgress:h,labels:m,languageCode:p,partnerContent:v,search:g,children:(0,s.jsx)(aS,{themeId:a,children:(0,s.jsx)(Rh,{courseColor:o,children:(0,s.jsx)(d$,{value:y,children:(0,s.jsx)(MZ,{children:(0,s.jsxs)("div",{className:I,id:"innerApp",ref:kC,children:[(0,s.jsx)(PA,{...S}),(0,s.jsx)(wv,{env:"runtime",children:(0,s.jsx)(N,{children:(0,s.jsxs)(ya,{children:[(0,s.jsx)(k,{...E}),(0,s.jsx)(AZ,{})]})})})]})})})})})})]})}showPasswordDialog(){const{isInvalidPassword:e}=this.state,{course:n}=this.props,{hasPassword:o}=n;return e&&(0,Ye.GS)()&&!mZ(n)&&(!!o||(0,Ye.og)())}render(){const{failAttempt:e}=this.state,{onSharePasswordSubmit:n}=this;return this.showPasswordDialog()?(0,s.jsx)(OQ,{failAttempt:e,onSubmit:n}):this.renderAppLayout()}}function _Z(t){const e=(0,u.useRef)(null);return zZ(()=>{e.current&&e.current.handleLocationChange()}),(0,s.jsx)(UZ,{...t,ref:e})}const WZ=(0,Lh.A)(_Z),Sp=K("not-found"),GZ=()=>(0,s.jsx)(ya,{title:sl(),children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:Sp(),children:(0,s.jsxs)("div",{className:Sp("copy"),children:[(0,s.jsx)("h1",{className:Sp("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 KZ=l(71918);function AC(){return(0,U.d4)(t=>{const{course:e,courseLabels:n,courseProgress:o,fonts:r,l10n:a,partnerContent:i,search:c,sessionPreferences:h,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:c,sessionPreferences:h,status:d}})}function QZ(){const t=(0,U.wA)();(0,u.useEffect)(()=>{t((0,nl.EL)()),t((0,Sv.pb)())},[t])}function ZZ(){const t=(0,U.wA)(),e=(0,u.useCallback)(()=>{t((0,Iv.$2)(!0))},[t]),n=AC(),o=fs(n.course?.coverImage?.media);(0,u.useEffect)(()=>{const{courseLoaded:r,coverLoaded:a}=n.status;if(r&&!a){const i=o?.image,{key:c,src:h}=i||{};if(c||h){const d=c?(0,Dt.ME)(i):h,m=setTimeout(e,5e3),p=new Image;return p.src=d,p.onload=()=>{clearTimeout(m),e()},()=>clearTimeout(m)}else e()}},[n,o,e])}function YZ(){QZ(),ZZ();const t=AC(),e=(0,U.wA)(),{fonts:n,labels:o,status:{courseLoaded:r,coverLoaded:a,fatalError:i,fontsLoaded:c,notFound:h,partnerContentLoaded:d}}=t,m=(0,Te.A)(r),p=r&&c&&a&&d,f=!p;return(0,u.useEffect)(()=>{!m&&r&&!c&&(n??[]).length>0&&e((0,KZ.r)(n))},[e,m,r,c,n]),(0,u.useEffect)(()=>{if(!p||window.parent===window)return;window.parent.postMessage({type:"course:ready"},window.location.origin);const v=g=>{g.key==="Escape"&&window.parent.postMessage({type:"preview:escape"},window.location.origin)};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[p]),h?(0,s.jsx)(GZ,{}):f?(0,s.jsx)(CC,{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:i?"fatalError":void 0}):(0,s.jsx)(WZ,{...t})}const XZ=YZ,m0=document.createElement("style");m0.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 JZ(){(0,u.useEffect)(()=>(m0.parentElement!==document.head&&document.head.prepend(m0),()=>{m0.remove()}),[])}const qZ=()=>{const t=(0,ke.Z)(),e=(0,se.zy)(),n=u.useRef(new Set),o=u.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,Ye.IV)(o.current)}return(0,u.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)(XZ,{})},eY=document.getElementById("app"),tY=(0,Q.createRoot)(eY),sY=({children:t})=>(JZ(),(0,s.jsx)(s.Fragment,{children:t}));tY.render((0,s.jsx)(u.Suspense,{fallback:null,children:(0,s.jsx)(U.Kq,{store:U.M_,children:(0,s.jsx)(sY,{children:(0,s.jsx)(tk,{children:(0,s.jsx)(dt,{children:(0,s.jsx)(dk,{children:(0,s.jsx)(se.I9,{unstable_useTransitions:!1,children:(0,s.jsx)(se.BV,{children:(0,s.jsx)(se.qh,{element:(0,s.jsx)(qZ,{}),path:"/*"})})})})})})})})}))},78137(Ze,Ce,l){"use strict";l.d(Ce,{Ay:()=>X,BW:()=>Oe,En:()=>j,Ig:()=>q,JG:()=>be,Ko:()=>_,M$:()=>Y,Pz:()=>ce,S$:()=>ye,WY:()=>ee,Wj:()=>le,Ze:()=>pe,ce:()=>ge,dg:()=>Re,eZ:()=>z,fd:()=>G,ft:()=>te,jF:()=>V,jw:()=>oe,l7:()=>re,mj:()=>s,p3:()=>Ee,pd:()=>Be,qX:()=>ze,sZ:()=>ne,w5:()=>xe});const j="a",_="n",z="t",re="c",te="ps",ee="p",pe="v",ne="r",oe="s",s="rr",Ee="pq",Be="qd",ge="ql",Y="qt",X="vp",xe="k",Re="is",le="v",G="i",Oe="pv",ze="m",V="sr",ce="s",q="x",be="sa",ye="t"},13061(Ze,Ce,l){"use strict";l.d(Ce,{AU:()=>te,G7:()=>ne,NS:()=>z,RR:()=>oe,gj:()=>pe,kT:()=>ee,on:()=>re});const{RiseDotCom:j}=window,_=s=>j&&j[s],z=()=>{_("exit")&&j.exit()},re=(...s)=>{_("on")&&j.on(...s)},te=(...s)=>{_("off")&&j.off(...s)},ee=(...s)=>{_("goToLearn")&&j.goToLearn(...s)},pe=(...s)=>{if(_("downloadCertificate"))return j.downloadCertificate(...s)},ne=(...s)=>{if(_("downloadCertificateCancel"))return j.downloadCertificateCancel(...s)},oe=(...s)=>{if(_("fetchLpUpNext"))return j.fetchLpUpNext(...s)}},86554(Ze,Ce,l){"use strict";l.d(Ce,{MJ:()=>Re,MT:()=>le,uK:()=>xe});var j=l(2949),_=l(50271),z=l(23677),re=l(5387);const te=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],ee=G=>G.theme?.colorAccent||G.color||z.G.colorAccent,pe=G=>G.theme?.navigationRestricted??z.G.navigationRestricted?re.b$.RESTRICTED:re.b$.FREE,ne=G=>G.theme?.sidebarStartsOpen??z.G.sidebarStartsOpen?re.RE.OPEN:re.RE.CLOSED,oe=G=>G.theme?.showLessonCount??G.showLessonCount??z.G.showLessonCount,s=({sidebarMode:G})=>G!==re.RE.HIDDEN,Ee=({navigationMode:G})=>G===re.b$.RESTRICTED,Be=({sidebarMode:G})=>G===re.RE.OPEN,ge=G=>G.coverImage?.media?.image?re.kY.LIGHT_IMAGE:re.kY.LIGHT,Y=G=>G.coverImage?.media?.image?re.BL.LEFT_OVERLAY:re.BL.LEFT,X=(G,Oe)=>Oe[G]??Oe.theme?.[G]??z.G[G],xe=G=>{const Oe=ne(G),ze=pe(G),V={allowSearch:X("allowSearch",G),animateBlockEntrance:X("animateBlockEntrance",G),bodyTypefaceId:G.bodyTypefaceId,colorAccent:(G.color||"").toLowerCase(),compactShowLessonCount:X("compactShowLessonCount",G),coverImageDefault:null,coverPageType:Y(G),enableVideoPlaybackSpeed:X("enableVideoPlaybackSpeed",G),headingTypefaceId:G.headingTypefaceId,markLessonsComplete:X("markComplete",G),navigation:s({sidebarMode:Oe}),navigationSectionsExpanded:X("navigationSectionsExpanded",G),navigationRestricted:Ee({navigationMode:ze}),navigationStyle:ge(G),showAuthor:X("showAuthor",G),showLessonCount:X("showLessonCount",G),showNavigationButtons:X("showNavigationButtons",G),sidebarStartsOpen:Be({sidebarMode:Oe}),uiTypefaceId:G.uiTypefaceId},ce={...z.G,...V};return{...G,theme:{...ce,isLegacyCourse:!0}}},Re=G=>{const Oe=ee(G),ze={allowSearch:G.theme?.allowSearch??z.G.allowSearch,animateBlockEntrance:G.theme?.animateBlockEntrance??z.G.animateBlockEntrance,buttonNavigationStyle:G.theme?.buttonNavigationStyle??z.G.buttonNavigationStyle,buttonScheme:G.theme?.buttonScheme??z.G.buttonScheme,color:Oe,colorAccentTint:Oe?(0,j.FB)(Oe):void 0,coverImage:(0,_.dM)(G),coverPageType:G.theme?.coverPageType??z.G.coverPageType,enableVideoPlaybackSpeed:G.theme?.enableVideoPlaybackSpeed??z.G.enableVideoPlaybackSpeed,lessonHeaderImage:(0,_.LI)(G),lessonHeaderSize:G.theme?.lessonHeaderSize??z.G.lessonHeaderSize,lessonHeaderStyle:G.theme?.lessonHeaderStyle??z.G.lessonHeaderStyle,markComplete:G.theme?.markLessonsComplete??z.G.markLessonsComplete,navigation:G.theme?.navigation??z.G.navigation,navigationSectionsExpanded:G.theme?.navigationSectionsExpanded??z.G.navigationSectionsExpanded,navigationMode:pe(G),navigationRestricted:G.theme?.navigationRestricted??z.G.navigationRestricted,navigationStyle:G.theme?.navigationStyle??z.G.navigationStyle,navigationType:G.theme?.navigationType??z.G.navigationType,progressIndicatorStyle:G.theme?.progressIndicatorStyle??re.Y2.THEME_DEFAULT,themeId:G.theme?.themeId??z.G.themeId,showAuthor:G.theme?.showAuthor??z.G.showAuthor,showLessonCount:oe(G),showStartButton:G.theme?.showStartButton??z.G.showStartButton,sidebarMode:ne(G),sidebarStartsOpen:G.theme?.sidebarStartsOpen??z.G.sidebarStartsOpen,showNavigationButtons:G.theme?.showNavigationButtons??z.G.showNavigationButtons};return{...G,...ze}},le=({course:G,updates:Oe})=>{const ze=Object.fromEntries(Object.entries(Oe||{}).filter(([ce])=>te.includes(ce))),V={...G,...ze};return Re(V)}},36584(Ze,Ce,l){"use strict";l.d(Ce,{A:()=>re});var j=l(16881),_=l(94036),z=l(63323);function re(te){function ee(pe){const ne=(0,_.zy)(),oe=(0,z.Z)(),s=(0,_.g)(),[Ee]=(0,_.ok)();return(0,j.jsx)(te,{...pe,location:ne,match:{params:s},navigate:oe,queryParams:Ee})}return ee.displayName=`withRouter(${te.displayName||te.name})`,ee}},28148(Ze,Ce,l){"use strict";l.d(Ce,{gf:()=>qe,Em:()=>Tt});var j={};l.r(j),l.d(j,{callbackComponent:()=>Js,callbackPath:()=>ea,errorPath:()=>za,getToken:()=>$a,initAuth:()=>ta,login:()=>mr,logout:()=>Xe,onFetchTokensThunk:()=>sa,refreshSession:()=>Ar,request:()=>st.Em});var _={};l.r(_),l.d(_,{callbackComponent:()=>ho,callbackPath:()=>mc,getToken:()=>js,initAuth:()=>pc,login:()=>zl,logout:()=>wt,refreshSession:()=>$l,request:()=>st.Em});var z=l(45025),re=l(44914),te=l.n(re),ee=l(31735),pe=l.n(ee),ne=l(5832),oe=l.n(ne),s=l(32050),Ee=l.n(s),Be=l(22713),ge=l.n(Be),Y=l(36330),X=l.n(Y),xe=l(26372),Re=l(36584),le=l(39919),G=l.n(le),Oe=l(53755),ze=l(81783),V=l.n(ze),ce=l(89831),q=l.n(ce),be=l(7334),ye=l.n(be),he=l(54811),u=l.n(he),Q=l(49034),se=l.n(Q),U=l(17193),Pe=l.n(U),me=l(65301),je=l.n(me),$e=l(51335),ue=l.n($e),Qe=l(97110),lt=l.n(Qe),tt=l(41211),dt=l.n(tt),xt=l(36087),Ye=l.n(xt),ke=l(58862),Fe=l.n(ke),mt=l(25068),yt=l(92991);const $t={"Content-Type":"application/json"},Qt=[(Le,We)=>(We.Authorization=`Bearer ${qe()}`,JSON.stringify(Le))],ls=je()(oe(),Pe(),lt()(["data","status","statusText"])),as=Ye()(lt()(["name","message","response"]),se()({response:ls})),Dn=({baseURL:Le,...We})=>pe()(ue()({headers:$t,transformRequest:Qt}),ue()(We),se()({url:u()(Le)})),ds=({data:Le,method:We,url:kt})=>fetch(kt,{body:JSON.stringify(Le),headers:{...$t,Authorization:`Bearer ${qe()}`},keepalive:!0,method:We}).then(hs=>hs.json()).then(dt()("data")),oo=V().fromPromise(ds),bn=Le=>({method:We,url:kt})=>`${We}:${Le}${kt}`,Ss=Le=>{const We=new Error("Nil token detected");return yt.L.addError(We,Le),V().Rejected(We)},Te=Le=>We=>Le.preRequest?Le.preRequest(We):We,ro=Le=>We=>Le.postRequest?Le.postRequest(We):We,J=()=>!z.BI&&oe()(qe()),ht=Le=>(We,kt)=>q()(We,bn(kt),ws(Tt,Le)),ws=(Le,We)=>kt=>(0,mt.Ve)(kt,Te(We),Dn(We),je()(J,Ss,Le),ye()(as,Fe()("data")),ro(We)),ao=Le=>({debounce:ht(Le),send:ws(Tt,Le),sendWithKeepAlive:ws(oo,Le)});var Ro=l(50283),Ir=l.n(Ro);const un=()=>document.visibilityState==="visible",yn=Le=>Ir()(un,()=>Le()),Xs=(Le=>{document.addEventListener("visibilitychange",yn(Le)),window.addEventListener("focus",()=>Le())});var io=l(48819),Nt=l.n(io),Cs=l(88747),co=l.n(Cs),Et=l(44522),Zt=l.n(Et),Ln=l(89239),ps=l.n(Ln),En=l(3983),wo=l(94158),Tn=l(63974);const w=(Le,We=null)=>{const kt={...Le,context:{locale:navigator.language,device:(0,Tn.Pf)(),channel:(0,Tn.c)(),userAgentData:(0,Tn.NO)(),page:(0,Tn.WE)(),userAgent:(0,Tn.$t)(),...Le.context},properties:{...We?(0,wo.yV)(We):{},...Le.properties}};return(0,En.Em)({method:"POST",url:`${(0,z._$)("RISE_RUNTIME_URI")}/analytics`,json:!0,data:kt})},jt=(0,z._$)("SUBSCRIPTIONS_ENDPOINT"),lr=(0,z._$)("THREESIXTY_FRONTEND_URI"),Po=Zt()(["error","status"],404),lo=pe()(dt()("error"),Fe()("response")),Mo=()=>window.location.href=lr,Da=[(Le,We)=>(We.Authorization=`Bearer ${qe()}`,Le)],pt=async Le=>{const We=`${jt}/users/authorized_status`,kt=await Tt({transformRequest:Da,url:We}).toPromise().catch(lo),hs=pe()(Le,X()(qs=>w({event:"Unexpected Logout",payload:{category:"auth",data:qs,detail:"Subscription Error"}})));return Nt()([[Po,Mo],[co()("error"),hs],[ps(),Fe()("data")]])(kt)};var Yt=l(41367),Is;const Fs=Le=>Le.status==="active",dr=Le=>Le.status==="inactive",hn=Le=>Le.plan==="individual",Xr=Le=>Le.features?.enable_review===!0,Ha=Le=>Le.features?.enable_rise===!0,Xt=Le=>Le.plan==="trial",Jr=Le=>Le.plan==="trial"&&Le.status==="inactive"&&Le.is_retrial_eligible===!1,Fa=Le=>Le.plan==="team"||Le.plan==="individual",Vl=Le=>Le.plan==="team"&&Le.is_team_admin===!0,Nr=Le=>Le.plan==="trial"&&Le.is_team_admin===!0,fs=Le=>{if(!Le.end_date)return 0;const We=new Date(Le.end_date);We.setUTCHours(0,0,0,0);const kt=We.setDate(We.getDate()+1);return kt&&(kt.valueOf()-new Date().setUTCHours(0,0,0,0))/Is||0};var st=l(50851),Ns=l(14930),Oo=l(68692),rc=l.n(Oo),Bo=l(2758),ac=l.n(Bo),jr=l(5811),uo=l.n(jr),kr=l(57819),Va=l.n(kr);const ur=(Le,We)=>`${(0,z._$)("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(Le)}?size=${We}`,ic=Le=>({large:ur(Le,"large"),medium:ur(Le,"medium"),micro:ur(Le,"micro"),mini:ur(Le,"mini"),small:ur(Le,"small")}),Wt=ac()({features:Va()({},"features"),subscription:Ee()(["features"])}),Lt=rc()([Jr,dr,uo()(Ha)]),Do="/auth-callback",qr="/auth-error",mn=()=>new Promise(Le=>{if(!window.Osano)return Le();if(window.Osano.cm.dialogOpen){const We=setTimeout(()=>{Le()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(kt,hs)=>{kt==="dialog"&&hs==="hide"&&(Le(),clearTimeout(We))})}else Le()}),ea=Do,za=qr,$a=Ns.rS,Ua=()=>window.location.pathname===ea;let _a=!1,pn=!1;const hr=Le=>{if(_a)return;const We=(0,Oe.A)();_a=!0,window.localStorage.setItem(We,Le);const kt=(0,st.xQ)({client_id:(0,z._$)("OKTA_CLIENT_ID"),issuer:(0,z._$)("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${ea}`,response_mode:"fragment",scope:(0,z._$)("OIDC_SCOPE"),state:We,prompt:null});mn().then(()=>{window.location.href=kt})},mr=()=>{const Le=new URLSearchParams(window.location.search),We=Le.has("redirect_url")?Le.get("redirect_url"):window.location.href;return hr(We)},Ar=()=>(0,st.uI)().catch(Le=>{Le.response?.status===404&&Xe({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),Wa=()=>{if(pn)return;const Le=(0,Ns.mA)(),We=(0,Ns.kn)();oe()(Le)?(w({event:"Unexpected Logout",payload:{category:"auth",userId:We,detail:"id from cookie was null"}}),yt.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:We,idFromCookie:Le,detail:"id from cookie was null"}),pn=!0,Xe({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):Le!==We&&(w({event:"Unexpected Logout",payload:{category:"auth",userId:Le,idFromToken:We,detail:"Session/Token ID Mismatch"}}),yt.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:We,idFromCookie:Le,detail:"Session/Token ID Mismatch"}),pn=!0,(0,st.wD)().then(()=>window.location.reload(!0)))},Ga=async Le=>{try{const[,We,kt,hs]=await(0,st.wD)(),{aid:ms,content_team_admin:qs}=hs;if(w({event:"Setting Session Cookie",payload:{category:"auth",userId:ms,detail:"Resuming existing session"}}),(0,Ns.ac)(ms),Ua()){Le();return}const{first_name:aa,last_name:Rr,launchdarkly:wr,staff:ia}=We,ei={avatars:ic(ms),first_name:aa,user_id:ms,last_name:Rr,staff:ia,content_team_admin:qs},ti={author:ms,profile:ei},si=()=>Xe({onLogout:te()(null)}),fc=vc=>Le({...ti,...Wt(vc),launchdarkly:wr,token:kt}),ni=await pt(si).then(X()(fc)).catch(()=>Le({...ti,token:kt}));if(Lt(ni)){w({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Ns.mA)(),subscription:ni,detail:"Invalid Subscription"}}),yt.L.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:(0,Ns.mA)(),detail:"Invalid Subscription"}),Xe({onLogout:()=>window.location=`${(0,z._$)("THREESIXTY_FRONTEND_URI")}/rise`});return}Xs(Wa)}catch(We){w({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Ns.mA)(),error:We,detail:"Error Resuming Session"}}),yt.L.addError(We,{type:"User Meta",userId:(0,Ns.mA)(),detail:"Error Resuming Session"}),Xe({onLogout:()=>window.location.reload(!0)})}},ta=({onFetchTokens:Le})=>{if(Ua()){Ga(Le);return}const We=(0,Ns.mA)(),kt=(0,Ns.kn)();if(oe()(We)||We!==kt){mn().then(mr);return}Ga(Le)},Xe=({onLogout:Le,reason:We})=>{We&&w({event:"Logout",payload:{category:"auth",userId:(0,Ns.mA)(),detail:We}});const kt=(0,z._$)("RISE_AUTHORING_URI"),hs=()=>z.BI?Promise.resolve():ao({baseURL:kt}).send({method:"DELETE",url:"/logout"}),ms=()=>{(0,Ns.sm)(),(0,Ns.gZ)(),(0,st.Vu)().then(Le)};hs().fork(qs=>{console.error("Failed to log out of rise-authoring-api",qs),ms()},ms)},cc=pe()(G().parse,ge()(1,1/0)),lc=(Le,We)=>{mn().then(()=>{const hs=window.localStorage.getItem(We)||"/",ms=hs===Le?"/":hs;window.localStorage.removeItem(We),window.location.href=ms})},Ka=Le=>()=>window.location.href=`${qr}?description=${Le}`,dc=({location:Le})=>()=>{const{hash:We,pathname:kt}=Le,{state:hs,error:ms,error_description:qs}=cc(We);ms?(yt.L.addError(ms,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:qs}),Xe({onLogout:Ka(qs),reason:`Error encountered when parsing auth callback. Error: ${ms}; description: ${qs}`})):ta({onFetchTokens:()=>lc(kt,hs)})},Qa=Le=>((0,xe.useEffect)(dc(Le),[]),null),Js=(0,Re.A)(Qa),sa=({dispatch:Le,loadProfileOKTA:We})=>kt=>{const hs=Ee()(["token"],kt);pe()(Le,We)(hs)};var Ks=l(32261),uc=l.n(Ks),Ho=l(56438),Za=l.n(Ho),Sn=l(16997),Ya=l.n(Sn),Fo=l(89837),hc=l.n(Fo),xs=l(34597),na=l.n(xs),Hn=l(15509),Xa=l.n(Hn);const us=async()=>{await mn();const[Le,We]=Ya()(encodeURIComponent,na()(["hash","pathname"],window.location));window.location.href=`/login#c=${We}${Le}`},oa=()=>{window.location.href="/"},ho=null,mc=null,js=Ns.rS,zl=us,wt=st.Vu,$l=()=>(0,st.uI)().catch(()=>wt()),Vo=Ye()(Va()([],"roles"),Xa()(Za()("author"),oa)),Ja=Ye()(hc()("",["subscription","status"]),Xa()(Za()(uc(),["active","in_trial","non_renewing"]),oa)),Gt=()=>window.location.reload(),pc=async({onFetchTokens:Le})=>{try{const[We,kt]=await(0,st.wD)(),{launchdarkly:hs,riseId:ms,sub:qs,staff:aa,subscription:Rr}=kt,wr={staff:aa,user_id:ms||qs};return Ja(kt),Le({author:wr.user_id,launchdarkly:hs,profile:wr,subscription:Rr,token:We}),(0,st.on)("change:roles",Vo),(0,st.on)("change:status",Ja),(0,st.on)("change:subdomain",Gt),(0,st.on)("unauthorized",us),(0,st.on)("session:closed",us),We}catch{us()}},{callbackComponent:Bt,callbackPath:qa,getToken:qe,initAuth:ra,logout:Ul,refreshSession:Ut,request:Tt}=z.BI?_:j},17272(Ze,Ce,l){"use strict";l.d(Ce,{A:()=>z});var j=l(240);const z=({alpha:re,color:te,url:ee})=>{const pe=(0,j.A)(te,re);return{backgroundImage:`linear-gradient(0deg,${pe},${pe}), url("${ee}")`}}},14930(Ze,Ce,l){"use strict";l.d(Ce,{EO:()=>V,O0:()=>ze,QJ:()=>q,W5:()=>oe,Xl:()=>xe,ac:()=>Ee,gZ:()=>ge,kn:()=>Oe,l6:()=>be,mA:()=>Y,rS:()=>X,sm:()=>Be});var j,_=l(57308),z=l.n(_),re=l(31675),te=l.n(re),ee=l(45025);const pe="_articulate_user_id",ne="_rise_authoring_api_session",oe=()=>ee.BI?(0,ee._$)("SESSION_COOKIE_NAME"):"_articulate_rise_",s=(ye,he)=>`${ye}=${he}; domain=${(0,ee._$)("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,Ee=ye=>document.cookie=s(pe,ye),Be=()=>document.cookie=`${s(pe,"")}; Max-Age=-99999999`,ge=()=>document.cookie=`${s(ne,"")}; Max-Age=-99999999`,Y=()=>z().load(pe),X=()=>z().load(oe()),xe=()=>X()?te()(X()).staff:!1,Re=()=>X()?j(X())?.staffRoles||[]:[],le=()=>X()?j(X())?.content_team_admin:!1,G=()=>Re().includes("content-team")||le(),Oe=()=>X()?te()(X()).riseId||te()(X()).sub||te()(X()).aid:"",ze=()=>X()?te()(X()).roles:[],V=()=>X()?te()(X()).tenantId:"",ce=()=>X()?te()(X()).subscription||{}:{},q=()=>ce().plan_id||"",be=()=>ce().status||""},2949(Ze,Ce,l){"use strict";l.d(Ce,{FB:()=>ht,FH:()=>ro,I8:()=>Qt,IO:()=>Te,L3:()=>Ss,Vu:()=>ls,b9:()=>$t,bQ:()=>as,jI:()=>io,yL:()=>ws,zH:()=>J,zh:()=>bn});var j,_,z=l(44914),re=l.n(z),te=l(31735),ee=l.n(te),pe=l(5811),ne=l.n(pe),oe=l(21863),s=l.n(oe),Ee=l(8486),Be=l.n(Ee),ge=l(33182),Y=l.n(ge),X=l(54708),xe=l.n(X),Re=l(19892),le=l.n(Re),G=l(54425),Oe=l.n(G),ze=l(65301),V=l.n(ze),ce=l(84134),q=l.n(ce),be=l(5832),ye=l.n(be),he=l(79443),u=l.n(he),Q=l(36087),se=l.n(Q),U=l(58862),Pe=l.n(U),me=l(77592),je=l.n(me),$e=l(92213),ue=l.n($e),Qe=l(99657),lt=l.n(Qe),tt=l(9391),dt=l.n(tt),xt=l(5768),Ye=l(17272),ke=l(5387),Fe=l(46193),mt=l(86534);const yt=ne()(je()("sidebarMode","hidden")),$t=({alpha:Nt,color:Cs=void 0,hasOverlay:co=!0,media:Et={}})=>{const{image:Zt={}}=Et,{key:Ln,src:ps}=Zt,En=Ln?(0,xt.ME)(Zt):ps,wo=Cs===ke.df.LIGHT?ke.qH:ke.KJ;return En?co?(0,Ye.A)({alpha:Nt/100,color:wo,url:En}):{backgroundImage:`url("${En}")`}:null},Qt=Nt=>[ke.Py.DARK,ke.Py.DARK_ACCENT,ke.Py.DARK_IMAGE,ke.qB.DARK,ke.kY.DARK,ke.kY.DARK_IMAGE].includes(Nt),ls=se()(Pe()("lessons"),Oe()),as=je()("navigationMode",ke.b$.RESTRICTED),Dn=ne()(je()("sidebarMode",ke.RE.HIDDEN)),ds=je()("navigationType",ke.br.SIDEBAR),oo=je()("navigationType",ke.br.COMPACT),bn=V()(ue()(ye(),"navigation"),Dn,je()("navigation",!0)),Ss=({course:Nt,search:Cs,isMobile:co})=>(0,Fe.c3)(Nt)?!1:(ds(Nt)||oo(Nt)&&!!co)&&bn(Nt)||Cs.active,Te=({course:Nt,isMobile:Cs})=>oo(Nt)&&bn(Nt)&&!Cs,ro=Nt=>[ke.Py.DARK_IMAGE,ke.Py.LIGHT_IMAGE,ke.qB.DARK_IMAGE,ke.qB.IMAGE,ke.kY.DARK_IMAGE,ke.kY.LIGHT_IMAGE].includes(Nt),J=Nt=>[ke.kY.DARK,ke.kY.LIGHT].includes(Nt),ht=mt.WA,ws=(Nt,Cs)=>{if(Nt===ke.V7.RISE_CLASSIC||Nt===ke.V7.HORIZON)switch(Cs){case ke.BL.SPLIT_LEFT_IMAGE:case ke.BL.SPLIT_RIGHT_IMAGE:case ke.BL.TWO_THIRDS_LEFT_IMAGE:case ke.BL.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(Nt===ke.V7.APEX)switch(Cs){case ke.BL.SPLIT_LEFT_IMAGE:case ke.BL.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},_e=(Nt,Cs)=>{switch(Nt){case j.RISE_CLASSIC:case j.APEX:case j.HORIZON:return Cs===_.CENTERED_OVERLAY||Cs===_.LEFT_OVERLAY||Cs===_.IMAGE;default:return!1}},ao=Be()(ye(),q()),Ro=Be()(ye(),Y()(!1)),Ir=ue()(Ro,"isComplete"),un=Be()(ue()(Y()(!1),"passed"),ue()(Ro,"isComplete")),yn=dt()(2,Nt=>xe()(V()(ee()(Y()(Nt),Oe()),ee()(un,u()),ee()(Ir,u())))),Xs=dt()(2,Nt=>se()(lt(),yn(Nt),s()([]),Oe())),io=le()(dt()(2,Nt=>V()(ao,re()(Nt),Xs(Nt))))},20614(Ze,Ce,l){"use strict";l.d(Ce,{QZ:()=>le,R9:()=>Re,aj:()=>xe});var j=l(44914),_=l.n(j),z=l(19892),re=l.n(z),te=l(17193),ee=l.n(te),pe=l(65301),ne=l.n(pe),oe=l(42117),s=l.n(oe);const Ee=re()(s()),Be=["a","b","blockquote","br","div","em","h1","h2","h3","h4","h5","h6","i","img","li","mark","ol","p","table","td","th","tbody","thead","tr","s","strong","span","sub","sup","u","ul","details","summary","rise-image","rise-math"],ge=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],Y=Ee({allowedAttributes:{"*":["aria-*","class","colspan","id","rowspan","slot","style"],a:["data-external","data-link-type","data-link-destination","href","target","rel"],img:["alt","src"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["data-translate-attrs","long-description","short-description","tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:Be}),X=Ee({allowedAttributes:{iframe:ge},allowedTags:["iframe"],allowedSchemes:["http","https"]}),xe=ne()(ee(),Y,_()("")),Re=ne()(ee(),X,_()("")),le=Ee({allowedTags:[],allowedAttributes:[]}),G=Ee({allowedAttributes:{"*":["aria-*","class","colspan","rowspan","style"],a:["data-external","data-link-type","data-link-destination","href","target","rel"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:Be.filter(ze=>ze!=="img")}),Oe=ze=>{const V=ze.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return le(V).replace(/\s{2,}/g," ")}},44148(Ze,Ce,l){"use strict";l.d(Ce,{U2:()=>Q});var j,_,z=l(31735),re=l.n(z),te=l(54811),ee=l.n(te),pe=l(19892),ne=l.n(pe),oe=l(57955),s=l.n(oe),Ee=l(2639),Be=l.n(Ee),ge=l(16997),Y=l.n(ge),X=l(98757),xe=l.n(X),Re=l(8833),le=l.n(Re),G=l(44310),Oe=l.n(G),ze=l(45025);const V=5e3,q=Y()(ne()(ee())(":n3,n4,i4,n7,n9")),be=re()(s()(","),Be()),ye=(Pe,me)=>{const je=new FontFace(me.name,Pe,{family:me.name,style:me.style,weight:me.weight});return je.load().then(()=>document.fonts.add(je))},he=(Pe,me)=>{const je=document.createElement("style");return je.innerText=`@font-face { font-family: '${me.name}'; src: ${Pe}; font-weight: ${me.weight}; font-style: ${me.style}; }`,document.head.appendChild(je),new(le())(me.name,{style:me.style,weight:me.weight}).load()},u=Pe=>{const me=`url(${(0,ze.PJ)(Pe)}) format('woff')`;return("fonts"in document?ye:he)(me,Pe)},Q=(Pe,me)=>{const je=Promise.all(Pe.map(u));let $e;const ue=new Promise(Qe=>{$e=setTimeout(Qe,V)});return Promise.race([je,ue]).catch(Qe=>{console.error("Failed to load learn course fonts:",{fonts:Pe,error:Qe.message||Qe})}).finally(()=>{clearTimeout($e),me()})},se=({baseUri:Pe,typefaces:me,onLoad:je,onError:$e})=>{const ue=j(me).join(", ");return _.load({active:je,fontinactive:(Qe,lt)=>{console.error("Individual font failed to load:",{familyName:Qe,fvd:lt,typefaces:me})},inactive:()=>{console.error("Failed to load course fonts:",{typefaces:me,typefaceList:ue}),$e?.(),je?.()},timeout:V,custom:{families:q(j(me)),urls:[`${Pe}/course_fonts.css?typefaceIds=${be(me)}`]}})},U=()=>_.load({google:{families:["Noto Sans Myanmar:300,400,500,600,700"]},timeout:V})},94158(Ze,Ce,l){"use strict";l.d(Ce,{yV:()=>z});var j,_=l(14930);const z=ne=>{const oe=ne.user,s=oe?.profile?.user_id,Ee=oe?.subscription?.subscription_id||oe?.subscription?.id;return{application_source:"360_rise",application_service:"authoring",user_role:(0,_.O0)()||"Creator",reach_user_id:void 0,a360_user_id:s,user_permissions:oe?.permissions||[],session_id:ne?.user?.session,subscription_id:oe?.subscription?.subscription_id||Ee,tenant_id:Ee,risecom_billing_id:void 0,...oe?.subscription?.plan&&{subscription:{plan:oe.subscription.plan,trial_type:oe.subscription.trial_type??null}},...ne.ai?.subscription&&{ai:{plan:ne.ai.subscription.plan,start_date:ne.ai.subscription.start_date,end_date:ne.ai.subscription.end_date,status:ne.ai.subscription.status}},...ne.l10nAuthoring?.subscription&&{localization:{end_date:ne.l10nAuthoring.subscription.end_date,plan:ne.l10nAuthoring.subscription.plan,start_date:ne.l10nAuthoring.subscription.start_date,status:ne.l10nAuthoring.subscription.status}}}},re=ne=>{const oe=ne.course;return{course_id:oe?.id,course_locale:oe?.locale||ne.l10n&&j(ne.l10n)||null,course_created_via:oe?.metadata?.createdVia??null,course_snapshot_id:oe?.metadata?.restoredFromSnapshotId??null,copied_course_id:oe?.copyOf??null}},te=(ne,oe)=>{if(!oe)return{};const s=ne?.lessons?.[oe];if(!s)return{};const Ee=ne?.course?.lessons?.indexOf(oe)+1||null;return{lesson_id:oe,lesson_type:s.type,lesson_position:Ee}},ee=(ne,oe,s)=>{if(!oe||!s)return{};const Be=(ne.lessons||{})[oe];if(!Be?.items)return{};const ge=Be.items.find(xe=>xe.id===s);if(!ge)return{};const X=Be.items.map(xe=>xe.id).indexOf(s)+1;return{block_id:s,block_type:ge.type,block_variant:ge.variant,block_family:ge.family,block_position:X,block_created_via:ge?.metadata?.createdVia??"manual"}},pe=({interactionSetId:ne,interactionSetWorkflowKey:oe,taskType:s,resourceType:Ee,hasSourceContent:Be}={})=>ne?{interaction_set_id:ne,...oe&&{interaction_set_workflow_key:oe},interaction_set_task_type:s,interaction_set_task_resource_type:Ee,interaction_set_has_source_content:Be}:{}},80303(Ze,Ce,l){"use strict";l.d(Ce,{fH:()=>re,nY:()=>te,wZ:()=>ee});var j=l(16881),_=l(26372);const z=(0,_.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function re({children:pe,currentLocale:ne,setCurrentLocale:oe}){const s=(0,_.useMemo)(()=>({currentLocale:ne,setCurrentLocale:oe}),[ne,oe]);return(0,j.jsx)(z.Provider,{value:s,children:pe})}function te(){return(0,_.useContext)(z)}function ee(pe){const ne=oe=>{const s=te();return(0,j.jsx)(pe,{...oe,...s})};return ne.displayName=`withCurrentLocale(${pe.displayName||pe.name})`,ne}},53845(Ze,Ce,l){"use strict";l.d(Ce,{B1:()=>Ee,BN:()=>ge,F:()=>ne,R6:()=>ee,eB:()=>s,q2:()=>pe});var j=l(16881),_=l(26372),z=l(26741),re=l(23233),te=l(98806);const ee=_.createContext(null),pe=_.createContext(!1),ne=Y=>(0,j.jsx)(pe.Provider,{value:!0,children:(0,j.jsx)(re.A,{...Y})});function oe(Y){return class extends _.Component{static displayName=`withStaleTransitionState(${Y.displayName||Y.name})`;static defaultProps={onEnter:()=>{},onEntered:()=>{},onEntering:()=>{},onExit:()=>{},onExited:()=>{},onExiting:()=>{}};nodeRef=_.createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor(xe){super(xe),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=(xe,...Re)=>{this.setState({transitionState:xe});const le="on"+xe[0].toUpperCase()+xe.slice(1),G=this.props[le];typeof G=="function"&&G(...Re)};render(){return(0,j.jsx)(ee.Provider,{value:this.state.transitionState,children:(0,j.jsx)(Y,{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=oe(te.Ay),Ee=oe(z.A);function Be(Y){const X=_.useContext(pe),xe=_.useContext(ee),Re=_.useRef(Y);return X&&xe?.startsWith?.("exit")||(Re.current=Y),Re.current}function ge(Y){const X=xe=>{const Re=Be(xe);return(0,j.jsx)(Y,{...Re,nodeRef:xe.ref,ref:xe.ref})};return X.displayName=`withTransitionableState(${Y.displayName||Y.name||"Component"})`,X}},31926(Ze,Ce,l){var j={"./en-au":65854,"./en-au.js":65854,"./en-ca":51940,"./en-ca.js":51940,"./en-gb":71753,"./en-gb.js":71753,"./en-ie":56566,"./en-ie.js":56566,"./en-il":25437,"./en-il.js":25437,"./en-in":61019,"./en-in.js":61019,"./en-nz":4208,"./en-nz.js":4208,"./en-sg":2930,"./en-sg.js":2930};function _(re){var te=z(re);return l(te)}function z(re){if(!l.o(j,re)){var te=new Error("Cannot find module '"+re+"'");throw te.code="MODULE_NOT_FOUND",te}return j[re]}_.keys=function(){return Object.keys(j)},_.resolve=z,Ze.exports=_,_.id=31926},54357(){},38954(){}}]);
