(globalThis.wpRiseJsonp=globalThis.wpRiseJsonp||[]).push([["learn_main_tsx-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349($c){$c.exports=function(ii){ii||(ii={});var __t,__p="";with(ii)__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}},54131($c,ii,f){"use strict";var Yo={};f.r(Yo),f.d(Yo,{callbackComponent:()=>LS,callbackPath:()=>L0,errorPath:()=>hS,getToken:()=>mS,initAuth:()=>A2,login:()=>j2,logout:()=>ir,onFetchTokensThunk:()=>SS,onSessionExpired:()=>gS,refreshSession:()=>fS,request:()=>Kb});var xo={};f.r(xo),f.d(xo,{CoverDescription:()=>TD,CoverDetailsContentHeading:()=>i_,CoverDueDate:()=>kD,CoverHeader:()=>L$,CoverLayout:()=>k$,LessonHeader:()=>M$,LessonNavFinish:()=>_$,LessonNavNext:()=>U$,LessonNavPrevious:()=>W$,LessonProgressGraphic:()=>J$,NavCompactHeaderCounter:()=>c_,NavCompactHeaderProgress:()=>l_,NavCompactOutline:()=>d_,OverviewListItem:()=>u_,OverviewListSectionTitle:()=>h_,Progress:()=>a_});var $r={};f.r($r),f.d($r,{AlignLeft:()=>f_,ArrowDown:()=>cm,ArrowLeft:()=>m_,ArrowRight:()=>p_,ArrowUp:()=>H5,Category:()=>lH,ChevronDown:()=>g_,ChevronUp:()=>v_,Favorite:()=>Eh,LessonsComplete:()=>xd,LessonsRequirement:()=>e5,QuestionBox:()=>C_,QuizFailed:()=>z5,QuizPassed:()=>xd,QuizRequirement:()=>K6,Search:()=>x_,ToggleDown:()=>b_,Touch:()=>y_,VideoCamera:()=>L_,X:()=>S_});var zs={};f.r(zs),f.d(zs,{components:()=>xo,icons:()=>$r});var bo={};f.r(bo),f.d(bo,{CoverCourseInfo:()=>N_,CoverDetailsSection:()=>w_,CoverHeader:()=>__,CoverLayout:()=>W_,LessonHeader:()=>Y_,LessonProgressGraphic:()=>tU,NavSidebarHeader:()=>sU,OverviewListItemLinkContent:()=>iU,Progress:()=>cU});var Ku={};f.r(Ku),f.d(Ku,{ArrowDown:()=>Y5,ArrowLeft:()=>dU,ArrowRight:()=>lU,ArrowUp:()=>Y5,ChevronDown:()=>X5,ChevronUp:()=>X5,Favorite:()=>Eh,LessonsComplete:()=>q5,LessonsRequirement:()=>J5,QuizFailed:()=>hU,QuizPassed:()=>q5,QuizRequirement:()=>J5,Search:()=>uU,ToggleDown:()=>mU,X:()=>pU});var Qu={};f.r(Qu),f.d(Qu,{components:()=>bo,icons:()=>Ku});var Zu={};f.r(Zu),f.d(Zu,{CoverDescription:()=>vU,CoverDetails:()=>xU,CoverGraphic:()=>nc,CoverHeader:()=>EU,CoverLayout:()=>AU,CoverProgress:()=>RU,CoverSVG:()=>Er,LessonHeader:()=>BU,LessonProgressGraphic:()=>zU,NavSidebarHeaderProgress:()=>_U});var Yu={};f.r(Yu),f.d(Yu,{AlignLeft:()=>QU,ArrowDown:()=>UU,ArrowLeft:()=>GU,ArrowRight:()=>WU,ArrowUp:()=>KU,ChevronDown:()=>cC,ChevronUp:()=>ZU,Favorite:()=>Eh,LessonsComplete:()=>xd,LessonsRequirement:()=>e5,QuestionBox:()=>YU,QuizFailed:()=>z5,QuizPassed:()=>xd,QuizRequirement:()=>K6,Search:()=>XU,ToggleDown:()=>cC,Touch:()=>qU,VideoCamera:()=>JU,X:()=>eG});var Xu={};f.r(Xu),f.d(Xu,{components:()=>Zu,icons:()=>Yu});var n=f(34158),Jde=f(28900),eue=f(19800),tue=f(46530),sue=f(53920),nue=f(94756),oue=f(53373),rue=f(73853),aue=f(34555),iue=f(81258),cue=f(84381),lue=f(90460),due=f(30803),uue=f(42247),hue=f(21855),mue=f(79302),pue=f(76032),fue=f(96795),u=f(82920),jx=f(94265),je=f(2422),wx=f(55676),_c=f(18398),Xo=f(18442),Ax=f(40412),Rx=f(36202),Px=f(18484);const qu=u.createContext(null),Ju=u.createContext(!1),qo=e=>(0,n.jsx)(Ju.Provider,{value:!0,children:(0,n.jsx)(Ax.A,{...e})});function xf(e){return class extends u.Component{static displayName=`withStaleTransitionState(${e.displayName||e.name})`;static defaultProps={onEnter:()=>{},onEntered:()=>{},onEntering:()=>{},onExit:()=>{},onExited:()=>{},onExiting:()=>{}};nodeRef=u.createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor(s){super(s),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=(s,...o)=>{this.setState({transitionState:s});const r="on"+s[0].toUpperCase()+s.slice(1),a=this.props[r];typeof a=="function"&&a(...o)};render(){return(0,n.jsx)(qu.Provider,{value:this.state.transitionState,children:(0,n.jsx)(e,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntered:this.onEnteredDelegate,onEntering:this.onEnteringDelegate,onExit:this.onExitDelegate,onExited:this.onExitedDelegate,onExiting:this.onExitingDelegate})})}}}const Uc=xf(Rx.Ay),Yn=xf(Px.A);function Mx(e){const t=u.useContext(Ju),s=u.useContext(qu),o=u.useRef(e);return t&&s?.startsWith?.("exit")||(o.current=e),o.current}function Ox(e){const t=s=>{const o=Mx(s);return(0,n.jsx)(e,{...o,nodeRef:s.ref,ref:s.ref})};return t.displayName=`withTransitionableState(${e.displayName||e.name||"Component"})`,t}const bf=e=>e!=null&&typeof e=="object"&&"map"in e&&typeof e.map=="function",Bx=e=>e!=null&&typeof e=="object"&&"run"in e&&typeof e.run=="function",yf=e=>e!=null&&typeof e=="object"&&"then"in e&&typeof e.then=="function",Dx=e=>e!=null&&typeof e=="object"&&"fork"in e&&typeof e.fork=="function",Lf=e=>e!=null&&typeof e=="function",Sf=(e,t)=>{const s=o=>Sf(o,t);if(typeof e=="object"&&"type"in e&&typeof e.type=="string"){const o="meta"in e&&typeof e.meta=="object"?e.meta:void 0;return{...e,meta:{...o,origin:t}}}if("bimap"in e&&typeof e.bimap=="function")return e.bimap(s,s);if(bf(e))return e.map(s);if(yf(e))return e.then(s);if(Lf(e))return function(r,a){return e(i=>r(s(i)),a)}};function Hx(){return({dispatch:e,getState:t})=>s=>o=>{if(Lf(o))return o(e,t);if(yf(o))return o.then(e);if(Dx(o)){o.fork(e,e);return}return Bx(o)?e(o.run()):bf(o)?o.map(e):s(o)}}function Fx(){return[Hx()]}var Gc=f(82920);const Vx=_c.Zz;function zx(e,t){const s=(0,_c.y$)(e,t,Vx((0,_c.Tw)(...Fx()))),o=$x(),r=_x(),a=Ux(),i=Gx(),c=Wx();return{Provider:Xo.Kq,connect:o,connectBase:r,dispatch:s.dispatch,store:s,useDispatch:a,useDispatchWithOrigin:i,useSelector:c}}function $x(){return function(t,s,o,r){return function(a){return(0,Xo.Ng)(t,s,o,r)(Ox(a))}}}function _x(){return function(t,s,o,r){return function(a){return(0,Xo.Ng)(t,s,o,r)(a)}}}function Ux(){return Xo.wA}function Gx(){return function(t){const s=(0,Xo.wA)();return Gc.useCallback(r=>s(Sf(r,t)),[s,t])}}function Wx(){return function(t,s=Xo.bN){const o=Gc.useContext(Ju),r=Gc.useContext(qu),a=Gc.useRef(void 0),i=(0,wx.S)(),c=(0,Xo.d4)(t,s),l=!i&&o&&r?.startsWith?.("exit");return l||(a.current=c),l&&a.current!==void 0?a.current:c}}var _r=f(62151),Kx=f(81395),Jo=f.n(Kx),fe=f(15368),Qx;function Zx(){return fe.action}function gue(){return Qx}var er=f(47371),Yx=f(58166),Me=f.n(Yx),Xx=f(46776),Wc=f.n(Xx),qx=f(68325),Ie=f.n(qx),Jx=f(94057),ss=f.n(Jx),eb=f(42117),e0=f.n(eb);const Kc=Wc()(e0()),Tf=["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"],tb=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],sb=Kc({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:Tf}),nb=Kc({allowedAttributes:{iframe:tb},allowedTags:["iframe"],allowedSchemes:["http","https"]}),t0=ss()(Ie(),sb,Me()("")),kf=ss()(Ie(),nb,Me()("")),ws=Kc({allowedTags:[],allowedAttributes:[]}),vue=Kc({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:Tf.filter(e=>e!=="img")}),Cue=e=>{const t=e.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return ws(t).replace(/\s{2,}/g," ")},{Runtime:ns}=window,Ee=e=>window.env?.[e],xue=!1,bue=null,Nf="Rise 360",ob=e=>`${Ee("CDN_USER_CONTENT_URI")}/${e}`,Ct=e=>{const t=e||"",s=ns?.resolvePath!=null?ns.resolvePath.bind(ns):ob;return t.startsWith("http")||t.startsWith("data:")||t.startsWith("//")?t:s(t)||t},rb=e=>ns?.resolveFontPath!=null?ns.resolveFontPath(e):`${e.default?Ee("CDN_URI"):Ee("CDN_USER_CONTENT_URI")}/${e.key}`,If=()=>{ns?.exit!=null&&ns.exit()},ab=()=>ns?.isComplete!=null?ns.isComplete():null,ci=()=>ns?.isExport!=null?ns.isExport():!1;function ib(){if(ns?.isExport!=null){const e=window.partnerContent?.content;return ns.isExport()&&!!e}return!1}const Ef=()=>{if(ns?.sendTouch!=null)return ns.sendTouch()};var cb=f(43923),me=f.n(cb),lb=f(19086),Xn=f.n(lb),db=f(39405),kn=f.n(db),ub=f(49329),li=f.n(ub),hb=f(57065),lt=f.n(hb),mb=f(37223),As=f.n(mb),pb=f(21217),jf=f.n(pb),fb=f(11786),s0=f.n(fb),gb=f(89658),Ae=f.n(gb),vb=f(2572),He=f.n(vb),Cb=f(70057),Zt=f.n(Cb);const Qc=e=>me()(ws,e),wf=e=>Xn()({[e]:ws}),xb=({startTime:e,stopTime:t})=>t-e,bb=e=>{switch(e.type){case"FILL_IN_THE_BLANK":return Of(e);case"MATCHING":return Vf(e);default:return Ur(e)}},yb=e=>{switch(e.type){case"FILL_IN_THE_BLANK":return Of(e);case"MATCHING":return Vf(e);case"MULTIPLE_CHOICE":return Bf(e);case"MULTIPLE_RESPONSE":return Tb(e);default:return Bf(e)}},Lb=({isUnfinished:e,item:t,itemProgress:s})=>{switch(t.type){case"FILL_IN_THE_BLANK":return Sb(e)(s);case"MATCHING":return Eb(t,e)(s);case"MULTIPLE_CHOICE":return Df(t,e)(s);case"MULTIPLE_RESPONSE":return kb(t,e)(s);default:return Df(t,e)(s)}},Af=e=>[e],Ur=e=>{const t=e.answers||[];if(e.shuffledAnswerIndices&&Array.isArray(e.shuffledAnswerIndices)){const s=[];return t.forEach((o,r)=>{const a=e.shuffledAnswerIndices[r];s[a]=o}),s.map(wf("title"))}return t.map(wf("title"))},n0=Qc(Ae()("id")),Rf=Qc(Ae()("title")),Pf=e=>t=>kn()(He()("id",t),Ur(e)),Mf=e=>Wc()(jf())(Ur(e)),Of=me()(s0()("title"),Ur),Sb=e=>ss()(Me()(e),Me()(""),Qc(Ae()("text"))),Bf=e=>me()(Pf(e),Ae()("correct"))(e),Df=(e,t)=>ss()(Me()(t),Me()([]),s=>{const o=Ae()("selectedIndex",s);return o===void 0?[]:Af(Mf(e)(o))}),Tb=e=>me()(li(),lt()(Pf(e)),Ae()("corrects"))(e),kb=(e,t)=>ss()(Me()(t),Me()([]),s=>{const o=Ae()("selectedIndices",s)||[];return li()(o.map(r=>Af(Mf(e)(r))))}),Hf=({sourceId:e,sourceTitle:t,targetId:s,targetTitle:o})=>({source:{id:`source_${e}`,title:t},target:{id:`target_${s}`,title:o}}),Ff=Qc(Ae()("matchTitle")),Nb=e=>{const t=n0(e);return Hf({sourceId:t,sourceTitle:Rf(e),targetId:t,targetTitle:Ff(e)})},Ib=e=>(t,s)=>{const o=Ur(e),r=o.find(i=>i.id===s),a=o.find(i=>i.id===t);return Hf({sourceId:n0(r),sourceTitle:Rf(r),targetId:n0(a),targetTitle:Ff(a)})},Vf=me()(lt()(Nb),Ur),Eb=(e,t)=>ss()(Me()(t),Me()([]),me()(Zt(),As()(Ib(e)),Ae()("matches")));var jb=f(99552),zf=f.n(jb),wb=f(30208),$f=f.n(wb),Ab=f(22775),tr=f.n(Ab),_f,yue;const o0="_articulate_user_id",Rb="_rise_authoring_api_session",Uf=()=>"_articulate_rise_",r0=(e,t)=>`${e}=${t}; domain=${Ee("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,Pb=e=>document.cookie=r0(o0,e),Mb=()=>document.cookie=`${r0(o0,"")}; Max-Age=-99999999`,Ob=()=>document.cookie=`${r0(Rb,"")}; Max-Age=-99999999`,sr=()=>$f().load(o0),xt=()=>$f().load(Uf()),Bb=()=>xt()?tr()(xt()).staff:!1,Db=()=>xt()?_f(xt())?.staffRoles||[]:[],Hb=()=>xt()?_f(xt())?.content_team_admin:!1,Lue=()=>Db().includes("content-team")||Hb(),a0=()=>xt()?tr()(xt()).riseId||tr()(xt()).sub||tr()(xt()).aid:"",Fb=()=>xt()?tr()(xt()).roles:[],Vb=()=>xt()?tr()(xt()).tenantId:"",Gf=()=>xt()?tr()(xt()).subscription||{}:{},zb=()=>Gf().plan_id||"",$b=()=>Gf().status||"";var _b=f(87266),Ub=f(87155),Nn=f.n(Ub);const Gb=Nn()(window.env,{ACCESS_COOKIE_NAME:Uf(),REDIRECT_URI:window.location.origin+"/auth-callback"}),yo=(0,_b.A)(Gb),Wf=yo.closeSession,Gr=yo.on,Wb=yo.off,Kb=yo.request,Kf=yo.refreshSession,di=yo.resetSession,Qb=yo.getAuthorizationUrl,Sue=yo.fetch;var qn=f(78964);const Zc=(e,t)=>((...s)=>{try{return e(...s)}catch(o){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(o),qn.L2.addError(o),t(o)}}),Zb=e=>{const t=e.getResponseHeader("content-type")||"",s=t.includes("application/json");if(!(s||t.includes("text/")))return e.response;try{const r=new TextDecoder("utf-8").decode(e.response);try{return s?JSON.parse(r):r}catch{return r}}catch{return e.response}};function Yb(e,t){const s=t.indexOf(":"),o=t.substr(0,s).trim().toLowerCase(),r=t.substr(s+1).trim();return o&&(e[o]=e[o]?e[o]+", "+r:r),e}function Xb(e){return e?e.split(`
`).reduce(Yb,{}):{}}function Qf(e){const t=[];for(const s in e){const o=e[s];if(!Array.isArray(o)){t.push(encodeURIComponent(s)+"="+encodeURIComponent(o));continue}for(const r of o)t.push(Qf(r))}return t.join("&")}function i0(e){let t,s=!1;const o=new Promise(function r(a,i){const c=e.signal;if(c?.aborted){i(new DOMException("Aborted","AbortError"));return}const l=w=>{throw i(w),w},d=()=>{t.abort(),i(new DOMException("Aborted","AbortError"))},h=e.data;let m=Zc(e.deserialize??zf(),l);const p=e.headers??{},v=e.json??!1,C=e.jwt??!1,g=e.token??null,x=e.method??"GET",S=e.reviewEnv??!1,L=e.onUploadProgress;let b=Zc(e.serialize??zf(),l),y=e.url;const T=e.withCredentials??!1,k=e.file,N=e.timeout??3e3;t=new XMLHttpRequest;const I=setTimeout(()=>{t.abort(),i({error:"request timed out"})},N);if(v&&(m=Zc(JSON.parse,i),b=Zc(JSON.stringify,i),p["Content-Type"]="application/json"),x==="GET"&&h&&(y+="?"+Qf(h)),C){const w=g||xt();p.Authorization="Bearer "+w}c?.addEventListener("abort",d),t.withCredentials=T,t.addEventListener("abort",i),t.addEventListener("error",i),t.addEventListener("load",function(){t.status>=400?[401,403].includes(t.status)?s?i({error:"Unable to resume session",status:t.status}):di().then(()=>{r(a,i),s=!0}).catch(w=>{qn.L2.addError(w),i({error:"Unable to resume session",status:t.status})}):e.arrayBuffer?i(Zb(t)):i(m(t.response)):(a({body:t.status===204?void 0:m(t.response),headers:Xb(t.getAllResponseHeaders()),status:t.status}),c?.removeEventListener("abort",d)),clearTimeout(I)}),t.upload&&typeof L=="function"&&t.upload.addEventListener("progress",L),t.open(x,y),e.arrayBuffer&&(t.responseType="arraybuffer");for(const w in p)t.setRequestHeader(w,p[w]);x!=="GET"&&h?t.send(b(h)):k?t.send(k):t.send()});return o.abort=(...r)=>t.abort(...r),o}function qb(e){return e.status===200||e.status===201?e.body:Promise.reject(e.body)}const Zf=(e,t=!0)=>t?`${e}s`:e;var c0=null;const Tue=null,Yf=null,kue=(e,t="short")=>{const o=Object.keys(c0).reverse().find(c=>e>=c0[c]);if(!o)return`${e} ${Zf("byte",e>1)}`;const r=e/c0[o],a=r%1===0?r.toFixed(0):r.toFixed(2),i=t==="long"?Zf(Yf[o].long,r>1):Yf[o].short;return`${a} ${i}`};var Jb=f(12413),ey=f.n(Jb);const gs=e=>!!e&&e.type==="quiz",In=e=>!!e&&e.type==="blocks",bt=({courseProgress:e,lessonId:t,updatedLessonProgress:s})=>({...e,lessons:{...e.lessons,[t]:s}});function yt({lessonId:e,nextCourseProgress:t,prevCourseProgress:s}){const o=t.lessons[e],r=s.lessons[e];if(o&&!ey()(o,r)&&(bT(o),ty({lessonId:e,courseProgress:t,prevCourseProgress:s})),sy({lessonId:e,prevCourseProgress:s,nextCourseProgress:t})){const a=qf(s),i=qf(t),c=i!==a,l={...t,percentComplete:i};return c&&(ny({courseProgress:l,lessonProgress:o}),l.percentComplete!=null&&LT(l.percentComplete)),l}return t}function ty({courseProgress:e,prevCourseProgress:t,lessonId:s}){const o=e.lessons?.[s],r=t.lessons?.[s];if(o?.percentComplete===100&&r?.percentComplete!==100){const a=Xf(o);a&&xT(a)}}function sy({lessonId:e,nextCourseProgress:t,prevCourseProgress:s}){const o=t.lessons?.[e];if(!o)return!1;const r=s.lessons?.[e]?.percentComplete===100,a=o.percentComplete===100,i=r!==a,c=t.currentLesson!=null&&gs(t.lessons[t.currentLesson])&&t.lessons[t.currentLesson]?.percentComplete===100;return i||c}function Xf(e){const{id:t}=e;if(!t)throw new Error("Cannot create lesson payload: lesson.id is missing");if(gs(e)){const{passed:s,score:o,passingScore:r=0}=e;return{id:t,...s!==void 0&&{passed:s},...o!==void 0&&{score:o},passingScore:r}}return{id:t}}function qf(e){const{lessons:t={}}=e,s=Object.keys(t).length;if(s===0)return 0;const o=Object.values(t).filter(r=>r.isComplete).length;return Math.round(o/s*100)}function ny({courseProgress:e,lessonProgress:t}){if(!e||!t)return;const s=Xf(t);s&&yT(e,s)}const oy=e=>e.reduce((t,s,o)=>("id"in s&&(t[s.id]={id:s.id,index:o}),t),{}),l0=e=>({...e,percentComplete:d0({items:e.items,key:"isComplete"})}),Jf=e=>({...e,percentComplete:d0({items:e.items,key:"isComplete"})}),e2=e=>({...e,percentViewed:d0({items:e.items,key:"isViewed"})});function Nue({itemId:e,isCorrect:t,progress:s}){const o={...s,items:{...s.items,[e]:{...s.items?.[e],id:e,index:s.items?.[e]?.index??0,isComplete:t,isViewed:t,...s.items?.[e].isCorrect===void 0?{isCorrect:t}:{}}}};o.items[e]?.isCorrect===!1&&(o.lastIncorrectCardId=e);const r=ry(o),a=r.percentComplete!==100?Jf(r):r,i=e2(a);return i.percentComplete===100?{...i,isComplete:!0}:i}function d0({items:e,key:t}){const s=e??{},o=Object.keys(s).length,r=Object.values(s).filter(a=>a?.[t]).length;return o===0?0:Math.round(r/o*100)}function ry(e){const s=Object.values(e.items||{}).filter(o=>o.isCorrect===!0).length;return{...e,correctlyAnswered:s}}var u0=f(44944),ay,iy;const Jn=e=>!!e&&Object.prototype.toString.call(e)==="[object Object]",t2=Array.isArray,Iue=(e,t)=>Object.fromEntries(Object.entries(t).map(e)),s2=(e,t,s)=>{const o={};for(const r in s)o[e(r)]=t(s[r]);return o},cy=e=>e.map(n2),ly=e=>e.map(o2),dy=e=>s2(ay,n2,e),uy=e=>s2(iy,o2,e),n2=e=>Jn(e)?dy(e):t2(e)?cy(e):e,o2=e=>Jn(e)?uy(e):t2(e)?ly(e):e,Ft=(e,t)=>{const s=new Set(t),o={};for(const r in e)s.has(r)||(o[r]=e[r]);return o},Lo=(e,t)=>Object.fromEntries(Object.entries(e).map(([s,o])=>t(s,o)));function r2(e,t){const s=e.lessons[t];if(!In(s))return e;const o={...h0(s),id:t},r=bt({courseProgress:e,lessonId:t,updatedLessonProgress:o});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:r})}function hy(e,t){const{lessonId:s,blockId:o,itemId:r}=t,a=e.lessons[s];if(!In(a))return e;const i=a.items[o],c=Ly({blockProgress:i,itemId:r}),l=nr({lessonProgress:a,blockId:o,updatedProgressBlock:c}),d=l0(l),h=bt({courseProgress:e,lessonId:s,updatedLessonProgress:d});return yt({lessonId:s,prevCourseProgress:e,nextCourseProgress:h})}function my(e,t){const s=e.lessons[t];if(!In(s))return e;const o=Ty(s),r=bt({courseProgress:e,lessonId:t,updatedLessonProgress:o});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:r})}function py(e,{blockId:t,lessonId:s}){const o=e.lessons[s];if(!In(o))return e;const r=ky(o.items[t]),a=nr({lessonProgress:o,blockId:t,updatedProgressBlock:r}),i=bt({courseProgress:e,lessonId:s,updatedLessonProgress:a});return yt({lessonId:s,prevCourseProgress:e,nextCourseProgress:i})}function fy(e,t){const{lessonId:s,blockId:o,items:r}=t,a=e.lessons[s];if(!In(a))return e;const i=yy({blockId:o,lessonProgress:a,items:r}),c=bt({courseProgress:e,lessonId:s,updatedLessonProgress:i});return yt({lessonId:s,prevCourseProgress:e,nextCourseProgress:c})}function gy(e,t){const{lessonId:s,blockId:o,itemId:r,audioVideoPlayhead:a}=t,i=e.lessons[s],c=i?.items?.[o];if(!In(i)||!c||!("items"in c)||!c.items||!c.items[r])return e;const d={...c.items[r],audioVideoPlayhead:a},h={...c,items:{...c.items,[r]:d}},m=nr({lessonProgress:i,blockId:o,updatedProgressBlock:h}),p=bt({courseProgress:e,lessonId:s,updatedLessonProgress:m});return yt({lessonId:s,prevCourseProgress:e,nextCourseProgress:p})}function vy(e,t){const{lessonId:s,blockId:o,itemId:r,isCorrect:a}=t,i=e.lessons[s];if(!In(i))return e;const c=Ny({itemId:r,isCorrect:a,blockProgress:i.items[o]}),l=l0(nr({lessonProgress:i,blockId:o,updatedProgressBlock:c})),d=bt({courseProgress:e,lessonId:s,updatedLessonProgress:l});return yt({lessonId:s,prevCourseProgress:e,nextCourseProgress:d})}function Cy(e,t){const{lessonId:s,blockId:o,itemId:r,response:a}=t,i=e.lessons[s],c=i?.items?.[o];if(!In(i)||!c||!("items"in c)||!c.items||!c.items[r])return e;const d={...c.items[r],response:a},h={...c,items:{...c.items,[r]:d}},m=nr({lessonProgress:i,blockId:o,updatedProgressBlock:h}),p=bt({courseProgress:e,lessonId:s,updatedLessonProgress:m});return yt({lessonId:s,prevCourseProgress:e,nextCourseProgress:p})}function xy(e,t){const{lessonId:s,blockId:o,isSubmitted:r}=t,a=e.lessons[s];if(!In(a))return e;const i=a?.items?.[o]??{},c=Lo(i?.items??{},(m,p)=>[m,Ft(p,["response"])]),l={...i,items:c,isSubmitted:r},d=nr({lessonProgress:a,blockId:o,updatedProgressBlock:l}),h=bt({courseProgress:e,lessonId:s,updatedLessonProgress:d});return yt({lessonId:s,prevCourseProgress:e,nextCourseProgress:h})}const by=e=>Object.values(e).length>0&&Object.values(e).every(t=>t.isComplete),h0=e=>{const t=Lo(e.items,(s,o)=>{const r=Lo(o.items??{},(a,i)=>[a,{...i,isComplete:!0,id:i.id,index:i.index}]);return[s,{...o,items:r,isComplete:!0}]});return{...e,isComplete:!0,items:t,percentComplete:100}},yy=({blockId:e,items:t,lessonProgress:s})=>{const o=s.items?.[e]??{items:{}},r=new Set(t.map(d=>String(d.id))),a=Lo(o.items??{},(d,h)=>{const m=r.has(d);return[d,{...h,isComplete:h.isComplete||m,id:h.id,index:h.index}]}),c=Object.keys(a).length===0||by(a),l={...o,id:e,items:a,...c&&{isComplete:!0}};return Sy(nr({lessonProgress:s,blockId:e,updatedProgressBlock:l}))},Ly=({blockProgress:e,itemId:t})=>{if(!e.items)return e;const s=e.items[t];return{...e,items:{...e.items,[t]:{...s,retryAttemptCount:(s?.retryAttemptCount??0)+1}}}},Sy=e=>{const t=l0(e);return t.percentComplete===100?{...t,isComplete:!0}:t},nr=({blockId:e,lessonProgress:t,updatedProgressBlock:s})=>({...t,items:{...t.items,[e]:s}}),Ty=e=>{const t=Lo(e.items,(s,o)=>{const r=Lo(o.items??{},(a,i)=>[a,Ft(i,["isComplete","isCorrect","isViewed"])]);return[s,{id:o.id,index:o.index,items:r}]});return{...Ft(e,["isComplete","percentComplete"]),items:t}},ky=e=>({...Ft(e,["percentViewed","correctlyAnswered"]),id:e.id,index:e.index,items:Lo(e.items??{},(t,s)=>[t,Ft(s,["isViewed","isCorrect"])]),retryAttempts:(e.retryAttempts??0)+1}),Ny=({isCorrect:e,itemId:t,blockProgress:s})=>{if(!s.items)return s;const o=s.items[t],r={...o,isComplete:e,isViewed:e,...o?.isCorrect===void 0&&{isCorrect:e}},a={...s.items,[t]:r},i=Object.values(a).filter(m=>m.isCorrect).length,c={...s,items:a,correctlyAnswered:i,...!e&&{lastIncorrectCardId:t}},l=e2(c),d=Jf(l),h=d.percentComplete===100;return{...d,...h&&{isComplete:!0}}};function a2(e){return e.trim()===""}function Iy(e,{lessonId:t,progressId:s}){const o=e.lessons[t];if(!gs(o))return e;const r=o.activeIndex??0,a=s?(o.items[s]?.index??r)+1:r+1,i=Object.keys(o.items).length+1,c=Math.min(a,i),l={...o,activeIndex:c},d=bt({courseProgress:e,lessonId:t,updatedLessonProgress:l});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:d})}function Ey(e,t){const s=e.lessons[t];if(!gs(s))return e;const o=Object.keys(s?.items)?.length,r={...s,activeIndex:o+1},a=bt({courseProgress:e,lessonId:t,updatedLessonProgress:r});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:a})}function jy(e,{lessonId:t,itemId:s}){const o=e.lessons[t];if(!gs(o))return e;const r=o.items[s];if(!r)return e;const a={...r,selectedIndices:[]},i=ui({lessonProgress:o,itemId:s,updatedProgressQuizItem:a}),c=bt({courseProgress:e,lessonId:t,updatedLessonProgress:i});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:c})}function wy(e,{lessonId:t,lessonProgress:s}){return{...e,lessons:{...e.lessons,[t]:s}}}function Ay(e,{lessonId:t,itemId:s,text:o}){const r=e.lessons[t];if(!gs(r))return e;const a=r.items[s];if(!a)return e;const i=typeof o=="string"&&a2(o)?Ft(a,["text"]):{...a,text:o},c=ui({lessonProgress:r,itemId:s,updatedProgressQuizItem:i}),l=bt({courseProgress:e,lessonId:t,updatedLessonProgress:c});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:l})}function Ry(e,t){const s=e.lessons[t];if(!gs(s))return e;const o=Lo(s.items,(c,l)=>{const d={id:l.id,index:l.index};return[c,d]}),a={...Ft(s,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...s.passed!==!1&&{passed:s.passed},...s.isComplete!==!1&&{isComplete:s.isComplete},retryAttempts:(s.retryAttempts??0)+1,items:o},i=bt({courseProgress:e,lessonId:t,updatedLessonProgress:a});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:i})}function Py(e,{lessonId:t,itemId:s,selectedIndex:o,shuffledAnswerIndices:r}){const a=e.lessons[t];if(!gs(a))return e;const i=a.items[s];if(!i)return e;const c=r??i.shuffledAnswerIndices;if(o==null)return e;const l=Array.isArray(c)&&c[o]!=null?c[o]:o,d={...i,selectedIndex:l,...Array.isArray(c)&&{shuffledAnswerIndices:c}},h=ui({lessonProgress:a,itemId:s,updatedProgressQuizItem:d}),m=bt({courseProgress:e,lessonId:t,updatedLessonProgress:h});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:m})}function My(e,{lessonId:t,itemId:s,matches:o}){const r=e.lessons[t];if(!gs(r))return e;const a=r.items[s];if(!a)return e;const i={...a,matches:o},c=ui({lessonProgress:r,itemId:s,updatedProgressQuizItem:i}),l=bt({courseProgress:e,lessonId:t,updatedLessonProgress:c});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:l})}function Oy(e,{lessonId:t,timeRemaining:s}){const o=e.lessons[t];if(!gs(o))return e;const r={...o,timeRemaining:s},a=bt({courseProgress:e,lessonId:t,updatedLessonProgress:r});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:a})}function By(e,{lessonId:t,itemId:s,isCorrect:o,finalRetryAttempt:r,passToContinue:a}){const i=e.lessons[t];if(!gs(i))return e;const c=i.passingScore??80,l=i.items[s];if(!l)return e;const d={...l,isCorrect:o,isComplete:!0},h={...i.items,[s]:d},m=Object.keys(h).length,p=Object.values(h).filter(L=>L.isCorrect).length,v=Object.values(h).filter(L=>L.isComplete).length,C=Math.round(p/m*100),g=Math.round(v/m*100);let x={...i,items:h,score:C,percentComplete:g};if(g===100){const L=C>=c,b=a?L:!0;Q2(L,C,t,r),x={...x,passed:L,isComplete:b,reportResults:!0}}const S=bt({courseProgress:e,lessonId:t,updatedLessonProgress:x});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:S})}function Dy(e,{lessonId:t,itemId:s,selectedIndex:o,shuffledAnswerIndices:r}){const a=e.lessons[t];if(!gs(a))return e;const i=a.items[s];if(!i)return e;const c=r??i.shuffledAnswerIndices;if(o==null)return e;const l=Array.isArray(c)&&c[o]!=null?c[o]:o,d=i.selectedIndices??[],m=d.includes(l)?d.filter(S=>S!==l):[...d,l],{selectedIndices:p,...v}=i,C=m.length>0?{...v,selectedIndices:m,...Array.isArray(c)&&{shuffledAnswerIndices:c}}:{...v,...Array.isArray(c)&&{shuffledAnswerIndices:c}},g=ui({lessonProgress:a,itemId:s,updatedProgressQuizItem:C}),x=bt({courseProgress:e,lessonId:t,updatedLessonProgress:g});return yt({lessonId:t,prevCourseProgress:e,nextCourseProgress:x})}function ui({itemId:e,lessonProgress:t,updatedProgressQuizItem:s}){return{...t,items:{...t.items,[e]:s}}}function Hy(e,t){const{id:s,passed:o,passingScore:r,score:a,retryAttempts:i}=t,c=[o,i,a];if(!(c.length===3&&c.every(C=>C!=null)))return e;const d=e.lessons?.[s]?.items??{},h=Object.keys(d).length+1,m=e.lessons?.[s];if(!m)return e;const p={...m,isComplete:!0,activeIndex:h,reportResults:!0,passed:o,passingScore:r,percentComplete:100,retryAttempts:i,score:a};return{...e,lessons:{...e.lessons,[s]:p}}}function Fy(e,{quizId:t,destinationId:s}){const o=Object.keys(e.lessons),r=o.findIndex(c=>c===t),a=o.findIndex(c=>c===s);return r===-1||a===-1||a<=r?e:o.slice(r+1,a).reduce((c,l)=>{const d=c.lessons[l];if(!d||d.isComplete)return c;const h=gs(d)?Vy(d):h0(d),m=bt({courseProgress:c,lessonId:l,updatedLessonProgress:h});return yt({lessonId:l,prevCourseProgress:c,nextCourseProgress:m})},e)}function Vy(e){const t=Object.fromEntries(Object.entries(e.items||{}).map(([s,o])=>[s,{...o,isComplete:!0,isCorrect:!0}]));return Q2(!0,100,e.id,!1),{...e,items:t,isComplete:!0,passed:!0,percentComplete:100,reportResults:!0,score:100}}var zy=f(74278),$y=f(3911),eo=f.n($y);const _y=e=>e!==void 0,i2=eo()(_y,me()(JSON.parse,zy.Base64.decode)),Uy=(e,t)=>window.courseData?e(window.courseData):window.course?{course:e(window.course),media:[]}:t;var Gy=f(72231),on=f.n(Gy),Wy=f(43396),Yt=f.n(Wy),Ky=f(56724),at=f.n(Ky),Qy=f(51390),Wr=f.n(Qy),Zy=f(869),Yy=f.n(Zy),Xy=f(62910),c2=f.n(Xy);const qy=["fromDashboard","locale","embed"];function Jy(e,t){const s=typeof e=="function"?e(t):e;return typeof s=="string"?(0,je.Rr)(s):s}function m0(e,t){const s=Jy(e,t),o=new URLSearchParams(t?.search||""),r=new URLSearchParams(s?.search||"");for(const a of qy){const i=o.get(a);i&&!r.has(a)?r.set(a,i):r.has(a)&&!r.get(a)&&r.delete(a)}return{...s,search:r.toString()}}function os(){const e=(0,je.Zp)(),t=(0,je.zy)();return(0,u.useCallback)((s,o)=>{if(typeof s=="number")return e(s);const r=m0(s,t),a=r.pathname+(r.search?`?${r.search}`:"")+(r.hash||"");return e(a,o)},[e,t])}function eL(e){function t(s){const o=(0,je.zy)(),r=os(),a=(0,je.g)(),[i]=(0,je.ok)();return(0,n.jsx)(e,{...s,location:o,match:{params:a},navigate:r,queryParams:i})}return t.displayName=`withRouter(${e.displayName||e.name})`,t}var tL=f(85547),sL=f.n(tL),l2=f(17734),nL=f(12387),d2=f.n(nL),oL=f(84218),p0=f.n(oL),rL=f(6778),En=f.n(rL),aL=f(90767),Kr=f.n(aL),iL=f(63203),dt=f.n(iL),cL=f(50306),lL=f.n(cL),dL=f(82247),So=f.n(dL),wue=f(12227),uL;function hL(...e){return me()(...lL()(1,e))(So()(e))}function f0(e,...t){return dt()(...t)(e)}function Aue(e,...t){return uL(...t)(e)}const vs=()=>{};var mL=f(14264);const Rue="datadoghq.com",Pue=Ee("SERVICE_ENV"),Mue=Ee("RISE_FRONTEND_SHA"),Oue=Ee("RISE_FRONTEND_LOCAL_DEV")==="true"||window.location.hostname==="rise.dev.articulate.zone",Bue=window.Cypress!=null,Due=[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone)(?!\/api\/rise-business-content\/).*/],u2={"Content-Type":"application/json"},pL=[(e,t)=>(t.Authorization=`Bearer ${mi()}`,JSON.stringify(e))],fL=ss()(at(),Ie(),En()(["data","status","statusText"])),gL=dt()(En()(["name","message","response"]),Xn()({response:fL})),vL=({baseURL:e,...t})=>me()(Nn()({headers:u2,transformRequest:pL}),Nn()(t),Xn()({url:on()(e)})),CL=({data:e,method:t,url:s})=>fetch(s,{body:JSON.stringify(e),headers:{...u2,Authorization:`Bearer ${mi()}`},keepalive:!0,method:t}).then(o=>o.json()).then(Kr()("data")),xL=Jo().fromPromise(CL),bL=e=>({method:t,url:s})=>`${t}:${e}${s}`,yL=e=>{const t=new Error("Nil token detected");return qn.L2.addError(t,e),Jo().Rejected(t)},LL=e=>t=>e.preRequest?e.preRequest(t):t,SL=e=>t=>e.postRequest?e.postRequest(t):t,TL=()=>at()(mi()),kL=e=>(t,s)=>d2()(t,bL(s),g0(pi,e)),g0=(e,t)=>s=>f0(s,LL(t),vL(t),ss()(TL,yL,e),p0()(gL,Ae()("data")),SL(t)),NL=e=>({debounce:kL(e),send:g0(pi,e),sendWithKeepAlive:g0(xL,e)}),IL=()=>document.visibilityState==="visible",EL=e=>eo()(IL,()=>e()),h2=(e=>{document.addEventListener("visibilitychange",EL(e)),window.addEventListener("focus",()=>e())});f.dn(h2);var jL=f(42431),Cs=f.n(jL),wL=f(37159),Qr=f.n(wL),AL=f(13758),RL=f.n(AL),PL=f(21435),or=f.n(PL);const ML=e=>({user_role:e?.is_business_creator?"Business Creator":"Creator",is_admin:!!e?.is_team_admin});var OL;const m2=e=>{const t=e.user,s=t?.profile?.user_id,o=t?.subscription?.subscription_id||t?.subscription?.id,{user_role:r,is_admin:a}=ML(t?.subscription);return{application_source:"360_rise",application_service:"authoring",user_role:r,is_admin:a,reach_user_id:void 0,a360_user_id:s,user_permissions:t?.permissions||[],session_id:e?.user?.session,subscription_id:t?.subscription?.subscription_id||o,tenant_id:o,risecom_billing_id:void 0,...t?.subscription?.plan&&{subscription:{plan:t.subscription.plan,trial_type:t.subscription.trial_type??null}},...e.ai?.subscription&&{ai:{plan:e.ai.subscription.plan,start_date:e.ai.subscription.start_date,end_date:e.ai.subscription.end_date,status:e.ai.subscription.status}},...e.l10nAuthoring?.subscription&&{localization:{end_date:e.l10nAuthoring.subscription.end_date,plan:e.l10nAuthoring.subscription.plan,start_date:e.l10nAuthoring.subscription.start_date,status:e.l10nAuthoring.subscription.status,billing_model:e.l10nAuthoring.subscription.billing_model}}}},Fue=e=>{const t=e.course;return{course_id:t?.id,course_locale:t?.locale||e.l10n&&OL(e.l10n)||null,course_created_via:t?.metadata?.createdVia??null,course_snapshot_id:t?.metadata?.restoredFromSnapshotId??null,copied_course_id:t?.copyOf??null}},Vue=(e,t)=>{if(!t)return{};const s=e?.lessons?.[t];if(!s)return{};const o=e?.course?.lessons?.indexOf(t)+1||null;return{lesson_id:t,lesson_type:s.type,lesson_position:o}},zue=(e,t,s)=>{if(!t||!s)return{};const r=(e.lessons||{})[t];if(!r?.items)return{};const a=r.items.find(l=>l.id===s);if(!a)return{};const c=r.items.map(l=>l.id).indexOf(s)+1;return{block_id:s,block_type:a.type,block_variant:a.variant,block_family:a.family,block_position:c,block_created_via:a?.metadata?.createdVia??"manual"}},$ue=({interactionSetId:e,interactionSetWorkflowKey:t,taskType:s,resourceType:o,hasSourceContent:r}={})=>e?{interaction_set_id:e,...t&&{interaction_set_workflow_key:t},interaction_set_task_type:s,interaction_set_task_resource_type:o,interaction_set_has_source_content:r}:{},BL=()=>{if(!navigator.userAgent)return"unknown";const t=new er.UAParser(navigator.userAgent).getResult();return t.device?.model?t.device.model:t.os?.name?t.os.name:t.browser?.name?t.browser.name:"unknown"},DL=()=>{if(!navigator.userAgent)return"unknown";const t=new er.UAParser(navigator.userAgent).getResult();return t.device?.model&&t.os?.version?t.os.version:t.browser?.version?t.browser.version:"unknown"},HL=()=>{if(!navigator.userAgent)return"desktop";const t=new er.UAParser(navigator.userAgent).getResult();return t.device?.type==="mobile"?"mobile":t.device?.type==="tablet"?"tablet":"desktop"},FL=()=>{if(!navigator.userAgent)return"unknown";const t=new er.UAParser(navigator.userAgent).getResult();if(t.device?.vendor)return t.device.vendor;if(t.os?.name)switch(t.os.name){case"Mac OS":case"iOS":return"Apple";case"Windows":return"Microsoft";case"Android":return"Google"}return"unknown"},VL=()=>{if(!navigator.userAgent)return"unknown";const t=new er.UAParser(navigator.userAgent).getResult();return t.device?.model?t.device.model:"unknown"},p2=()=>{if(!navigator.userAgent)return"browser";const t=new er.UAParser(navigator.userAgent).getResult();return t.device?.type==="mobile"?"mobile":t.device?.type==="tablet"?"tablet":"browser"};function zL(e){return"userAgentData"in e}const f2=()=>{if(zL(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},g2=()=>({name:BL(),version:DL(),type:HL(),manufacturer:FL(),model:VL()}),v2=()=>{const t=new URLSearchParams(window.location.search).get("query");return{referrer:document.referrer||null,search:t||null,url:window.location.href,path:window.location.pathname+window.location.search+window.location.hash}},C2=()=>navigator.userAgent||null,rr=(e,t=null)=>{const s={...e,context:{locale:navigator.language,device:g2(),channel:p2(),userAgentData:f2(),page:v2(),userAgent:C2(),...e.context},properties:{...t?m2(t):{},...e.properties}};return i0({method:"POST",url:`${Ee("RISE_RUNTIME_URI")}/analytics`,json:!0,data:s})},$L=Ee("SUBSCRIPTIONS_ENDPOINT"),_L=Ee("THREESIXTY_FRONTEND_URI"),UL=RL()(["error","status"],404),GL=me()(Kr()("error"),Ae()("response")),WL=()=>window.location.href=_L,KL=[(e,t)=>(t.Authorization=`Bearer ${mi()}`,e)],QL=async e=>{const t=`${$L}/users/authorized_status`,s=await pi({transformRequest:KL,url:t}).toPromise().catch(GL),o=me()(e,c2()(a=>rr({event:"Unexpected Logout",payload:{category:"auth",data:a,detail:"Subscription Error"}})));return Cs()([[UL,WL],[Qr()("error"),o],[or(),Ae()("data")]])(s)};var ZL=f(61915),$s=f.n(ZL);const x2=e=>e===S2,To=e=>x2(e?.type),Uue=(e,t)=>s=>To(s)?e:t,YL=null,v0={guide:"Guide",presentation:"Presentation",video:"Video Training",scenario:"Scenario",microlearning:"Microlearning"},b2=e=>Object.prototype.hasOwnProperty.call(v0,e),Yc=e=>{const t=e?.outputType;return typeof t=="string"&&b2(t)?t:void 0},Xc=(e,t)=>e===S2&&t!==void 0,y2=e=>{const t=Yc(e?.experiments);return Xc(e?.type,t)&&t==="guide"},Zr=e=>{const t=Yc(e?.experiments);return Xc(e?.type,t)&&t==="presentation"},C0=e=>{const t=Yc(e?.experiments);return Xc(e?.type,t)&&t==="video"},x0=e=>{const t=Yc(e?.experiments);return Xc(e?.type,t)&&t==="scenario"},Gue=e=>typeof e=="string"&&b2(e)?v0[e]:v0.microlearning,Wue=e=>e?YL.includes(e):!1;var XL,qL;const Kue=null,_s={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},qc={EDITOR:1,MANAGER:2,OWNER:3},JL={[qc.EDITOR]:"Author",[qc.MANAGER]:"Admin",[qc.OWNER]:"Owner"},Que=Object.values(qc).map(e=>({id:e,title:JL[e]})),Zue=({name:e,isOnePage:t,outputType:s})=>{const o=t?qL(s):null,r={Admin:o?`${o} manager`:"Manager",Author:o?`${o} editor`:"Editor",Owner:o?`${o} owner`:"Owner"},a={Admin:o?`${o} manager`:"Course manager",Author:o?`${o} collaborator`:"Course collaborator",Owner:o?`${o} owner`:"Course owner"};return XL?r[e]:a[e]},Yue="questionBanks",L2="2% 0px 2% 0px",Xue=9,que=13,Jue=27,e0e=32,t0e=38,s0e=40,o0e=864e5*3,r0e=100,S2="onePage",rn={UP:"up",DOWN:"down"},ko=$s()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),ar={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},a0e=Object.values(ar),i0e=null,Lt={DARK:"#000",LIGHT:"#fff"},b0={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}},T2=["embed","map","process","sorting","timeline","video","screencast","slidecast"];var eS;const c0e=e=>e.status==="active",tS=e=>e.status==="inactive",l0e=e=>e.plan==="individual",d0e=e=>e.features?.enable_review===!0,sS=e=>e.features?.enable_rise===!0,u0e=e=>e.plan==="trial",nS=e=>e.plan==="trial"&&e.status==="inactive"&&e.is_retrial_eligible===!1,h0e=e=>e.plan==="team"||e.plan==="individual",m0e=e=>e.plan==="team"&&e.is_team_admin===!0,p0e=e=>e.plan==="trial"&&e.is_team_admin===!0,f0e=e=>{if(!e.end_date)return 0;const t=new Date(e.end_date);t.setUTCHours(0,0,0,0);const s=t.setDate(t.getDate()+1);return s&&(s.valueOf()-new Date().setUTCHours(0,0,0,0))/eS||0};var oS=f(75928),y0=f.n(oS),rS=f(34370),k2=f.n(rS),aS=f(59783),Yr=f.n(aS),iS=f(47951),jt=f.n(iS);const hi=(e,t)=>`${Ee("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(e)}?size=${t}`,cS=e=>({large:hi(e,"large"),medium:hi(e,"medium"),micro:hi(e,"micro"),mini:hi(e,"mini"),small:hi(e,"small")}),lS=k2()({features:jt()({},"features"),subscription:Wr()(["features"])}),dS=y0()([nS,tS,Yr()(sS)]),uS="/auth-callback",N2="/auth-error",Jc=()=>new Promise(e=>{if(!window.Osano)return e();if(window.Osano.cm.dialogOpen){const t=setTimeout(()=>{e()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(s,o)=>{s==="dialog"&&o==="hide"&&(e(),clearTimeout(t))})}else e()}),L0=uS,hS=N2,mS=xt,I2=()=>window.location.pathname===L0;let E2=!1,S0=!1;const pS=e=>{if(E2)return;const t=(0,l2.A)();E2=!0,window.localStorage.setItem(t,e);const s=Qb({client_id:Ee("OKTA_CLIENT_ID"),issuer:Ee("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${L0}`,response_mode:"fragment",scope:Ee("OIDC_SCOPE"),state:t,prompt:null});Jc().then(()=>{window.location.href=s})},j2=()=>{const e=new URLSearchParams(window.location.search),t=e.has("redirect_url")?e.get("redirect_url"):window.location.href;return pS(t)},fS=()=>Kf().catch(e=>{e.response?.status===404&&ir({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),gS=e=>(Gr("unauthorized",e),()=>{Wb("unauthorized",e)}),vS=()=>{if(S0)return;const e=sr(),t=a0();at()(e)?(rr({event:"Unexpected Logout",payload:{category:"auth",userId:t,detail:"id from cookie was null"}}),qn.L2.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:t,idFromCookie:e,detail:"id from cookie was null"}),S0=!0,ir({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):e!==t&&(rr({event:"Unexpected Logout",payload:{category:"auth",userId:e,idFromToken:t,detail:"Session/Token ID Mismatch"}}),qn.L2.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:t,idFromCookie:e,detail:"Session/Token ID Mismatch"}),S0=!0,di().then(()=>window.location.reload(!0)))},w2=async e=>{try{const[,t,s,o]=await di(),{aid:r,content_team_admin:a}=o;if(rr({event:"Setting Session Cookie",payload:{category:"auth",userId:r,detail:"Resuming existing session"}}),Pb(r),I2()){e();return}const{first_name:i,last_name:c,launchdarkly:l,staff:d}=t,m={avatars:cS(r),first_name:i,user_id:r,last_name:c,staff:d,content_team_admin:a},p={author:r,profile:m},v=()=>ir({onLogout:Me()(null)}),C=x=>e({...p,...lS(x),launchdarkly:l,token:s}),g=await QL(v).then(c2()(C)).catch(()=>e({...p,token:s}));if(dS(g)){rr({event:"Unexpected Logout",payload:{category:"auth",userId:sr(),subscription:g,detail:"Invalid Subscription"}}),qn.L2.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:sr(),detail:"Invalid Subscription"}),ir({onLogout:()=>window.location=`${Ee("THREESIXTY_FRONTEND_URI")}/rise`});return}h2(vS)}catch(t){rr({event:"Unexpected Logout",payload:{category:"auth",userId:sr(),error:t,detail:"Error Resuming Session"}}),qn.L2.addError(t,{type:"User Meta",userId:sr(),detail:"Error Resuming Session"}),ir({onLogout:()=>window.location.reload(!0)})}},A2=({onFetchTokens:e})=>{if(I2()){w2(e);return}const t=sr(),s=a0();if(at()(t)||t!==s){Jc().then(j2);return}w2(e)},ir=({onLogout:e,reason:t})=>{t&&rr({event:"Logout",payload:{category:"auth",userId:sr(),detail:t}});const s=Ee("RISE_AUTHORING_URI"),o=()=>NL({baseURL:s}).send({method:"DELETE",url:"/logout"}),r=()=>{Mb(),Ob(),Wf().then(e)};o().fork(a=>{console.error("Failed to log out of rise-authoring-api",a),r()},r)},CS=me()(sL().parse,Yy()(1,1/0)),xS=(e,t)=>{Jc().then(()=>{const o=window.localStorage.getItem(t)||"/",r=o===e?"/":o;window.localStorage.removeItem(t),window.location.href=r})},bS=e=>()=>window.location.href=`${N2}?description=${e}`,yS=({location:e})=>()=>{const{hash:t,pathname:s}=e,{state:o,error:r,error_description:a}=CS(t);r?(qn.L2.addError(r,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:a}),ir({onLogout:bS(a),reason:`Error encountered when parsing auth callback. Error: ${r}; description: ${a}`})):A2({onFetchTokens:()=>xS(s,o)})},LS=eL(e=>((0,u.useEffect)(yS(e),[]),null)),SS=({dispatch:e,loadProfileOKTA:t})=>s=>{const o=Wr()(["token"],s);me()(e,t)(o)};var TS=f(49497),R2=f.n(TS),kS=f(77786),jn=f.n(kS),NS=f(93361),_e=f.n(NS),IS=f(29545),P2=f.n(IS),ES=f(77177),Us=f.n(ES);const el=async()=>{await Jc();const[e,t]=lt()(encodeURIComponent,P2()(["hash","pathname"],window.location));window.location.href=`/login#c=${t}${e}`},M2=()=>{window.location.href="/"},v0e=null,C0e=null,x0e=xt,b0e=el,jS=Wf,y0e=()=>Kf().catch(()=>jS()),L0e=()=>vs,wS=dt()(jt()([],"roles"),Us()(jn()("author"),M2)),O2=dt()(_e()("",["subscription","status"]),Us()(jn()(R2(),["active","in_trial","non_renewing"]),M2)),AS=()=>window.location.reload(),S0e=async({onFetchTokens:e})=>{try{const[t,s]=await di(),{launchdarkly:o,riseId:r,sub:a,staff:i,subscription:c}=s,l={staff:i,user_id:r||a};return O2(s),e({author:l.user_id,launchdarkly:o,profile:l,subscription:c,token:t}),Gr("change:roles",wS),Gr("change:status",O2),Gr("change:subdomain",AS),Gr("unauthorized",el),Gr("session:closed",el),t}catch{el()}};var T0e;const{callbackComponent:k0e,callbackPath:N0e,getToken:mi,initAuth:I0e,login:E0e,logout:j0e,onSessionExpired:w0e,refreshSession:A0e,request:pi}=Yo;var B2,D2;const H2=`${Ee("RBC_URI")}/api/partner_content`,RS=null,PS=on()(`${H2}/`),T0={transformRequest:[(e,t)=>(t.Authorization=`Bearer ${mi()}`,e)],headers:{"Content-Type":"application/json"}},M0e=()=>D2({...T0,url:RS}).toPromise().then(B2(["data","types"])),O0e=e=>D2({...T0,url:PS(e)}).toPromise().then(B2(["data","content"])),MS=e=>pi({method:"POST",url:H2,data:JSON.stringify({ids:e}),...T0}).map(Yt()(["data","content"]));var OS=f(97759),cr=f.n(OS);const F2=Ee("SERVICE_ENV")==="prod",tl=F2?"com":"zone",BS=dt()(JSON.stringify,cr()(new RegExp(`https://images.riseusercontent.${tl}/`,"g"),`${Ee("IMAGES_URI")}/`),cr()(new RegExp(`https://riseusercontent.${tl}/`,"g"),`${Ee("CDN_USER_CONTENT_URI")}/`),cr()(new RegExp(`https://video.rise.${tl}/`,"g"),`https://video.riseusercontent.${tl}/`),eo()(Me()(!F2),cr()(new RegExp("https://video.rise.com/","g"),"https://video.riseusercontent.zone/")),JSON.parse);var DS=f(59969),HS=f.n(DS),FS=f(27728),xs=f.n(FS),VS=f(37373),bs=f.n(VS),zS=f(49946),St=f.n(zS),$S=f(56187),sl=f.n($S),_S=f(12814),US=f.n(_S),GS=f(77980),Xr=f.n(GS),WS=f(34159),KS=f.n(WS);const fi=e=>!!e,k0={a:["activeIndex",Ie()],vp:["audioVideoPlayhead",Number],c:["isComplete",fi],n:["correctlyAnswered",Ie()],p:["percentComplete",Ie()],r:["retryAttempts",Ie()],s:["score",Ie()],t:["currentTime",Ie()],v:["percentViewed",Ie()],rr:["reportResults",Ie()],pq:["passed",Ie()],ps:["passingScore",Ie()],qd:["questionsDrawn",Ie()],ql:["questionList",lt()(lt()(Ie()))],qt:["timeRemaining",Number]},QS=e=>(t,s)=>xs()([bs()(k0[s])],So()(k0[s])(t),e),V2=e=>(t,s)=>{let o=So()($2[s])(t);return s==="i"&&(o=o(Ae()("items",e))),{[bs()($2[s])]:o}},ZS=e=>t=>{const s=e?.[t.index];return Us()(()=>at()(s),()=>me()(Nn()(t),Xr(),Zt(),As()(V2(t)))(s))(t)},z2=e=>lt()(ZS(e)),YS=me()(Xr(),Zt(),As()(V2(null))),XS=e=>t=>{const s=Ae()("i",e),o=Ae()("items",t);return me()(eo()(()=>HS()([Qr()("ql"),He()("qd",!0),()=>!at()(s)])(e),r=>{const a=lt()(YS,s);return xs()("originalItemProgress",a,r)}),Nn()(t),Us()(()=>St()(s),KS()(US()("items"),z2(s)(o))),Xr(),Zt(),As()(QS(t)))(En()(sl()(k0),e))};function qS(e,t){const s=Ae()("lessons",t),o=r=>{const a=Ae()(r.index,s);return Us()(()=>at()(a),XS(a))(r)};return Us()(()=>St()(s),me()(xs()("percentComplete",jt()(0,"p",t)),Xn()({lessons:lt()(o)})))(e)}const $2={vp:["audioVideoPlayhead",Number],n:["correctlyAnswered",Ie()],c:["isComplete",fi],k:["isCorrect",fi],is:["isSubmitted",fi],v:["isViewed",fi],i:["items",z2],pv:["percentViewed",Ie()],m:["matches",Ie()],sr:["response",Ie()],r:["retryAttemptCount",Number],s:["selectedIndex",Ie()],x:["selectedIndices",Ie()],sa:["shuffledAnswerIndices",Ie()],t:["text",Ie()]};var JS=f(39906),wn=f.n(JS),eT=f(88120),N0=f.n(eT);const I0={activeIndex:["a",Ie()],audioVideoPlayhead:["vp",Number],correctlyAnswered:["n",Ie()],currentTime:["t",Ie()],isComplete:["c",Number],passingScore:["ps",Ie()],percentComplete:["p",Ie()],percentViewed:["v",Ie()],retryAttempts:["r",Ie()],score:["s",Ie()],questionsDrawn:["qd",Ie()],questionList:["ql",lt()(lt()(Ie()))],reportResults:["rr",Ie()],passed:["pq",Ie()],timeRemaining:["qt",Number]},tT=(e,t)=>({[bs()(E0[t])]:So()(E0[t])(e)}),sT=e=>me()(Us()(St(),Kr()(Ae()("index",e))),Xr(),Zt(),As()(tT))(N0()(St(),En()(sl()(E0),e))),_2=me()(Xr(),Zt(),lt()(sT)),nT=(e,t)=>({[bs()(I0[t])]:So()(I0[t])(e)});function oT(e){const t=Ae()("items",e),s=Ae()("index",e),o=Us()(wn()(at(),St()),_2)(t);return me()(Kr()(s),Us()(()=>wn()(at(),St())(o),xs()("i",o)),Xr(),Zt(),As()(nT))(En()(sl()(I0),e))}const rT=me()(Kr()("p"),jt()(0,"percentComplete")),E0={audioVideoPlayhead:["vp",Number],correctlyAnswered:["n",Ie()],isComplete:["c",Number],isCorrect:["k",Number],isSubmitted:["is",Ie()],isViewed:["v",Number],items:["i",_2],matches:["m",Ie()],percentViewed:["pv",Ie()],retryAttemptCount:["r",Number],selectedIndex:["s",Ie()],selectedIndices:["x",lt()(Number)],shuffledAnswerIndices:["sa",lt()(Number)],text:["t",Ie()],response:["sr",Ie()]},aT=e=>`${Ee("CDN_USER_CONTENT_URI")}/${e}`,iT=()=>!!window.shareId,U2=()=>!!window.contentId,G2=()=>!!window.snapshotId,cT=()=>!!window.shareId&&!!window.hasPassword,lT=U2()?BS:e=>e,dT={fetch:()=>j0.isExport?.()||window.courseData||window.course?Uy(i2,{}):i0({method:"GET",url:window.shareId?`${Ee("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:U2()?`${Ee("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:G2()?`${Ee("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${Ee("RISE_RUNTIME_URI")}/boot/${window.courseId}`,json:!0,withCredentials:!0,timeout:3e4}).then(qb).then(t=>typeof t=="object"?t:i2(t)).then(lT),fetchPartnerContent:e=>j0.isExport?.()||window.partnerContent?window.partnerContent.content:MS(e).toPromise(),getEnv:Ee,isPasswordProtected:cT,isShare:iT,isSnapshotPreview:G2,resolvePath:aT,verifySharePassword:e=>i0({method:"POST",url:`${Ee("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:e},json:!0}).then(t=>t.body)},uT=(e,{id:t,type:s,...o})=>s==="quiz"?Hy(e,{id:t,...o}):r2(e,t),hT=(e,t)=>e+((t||{}).c||0),mT=(e,t)=>(s,{id:o,type:r,...a})=>t.lessons[o]?{...s,...e(uT(t,{id:o,type:r,...a}).lessons[o])}:s,pT=(e,t,s)=>{const o=t.reduce(mT(e,s),{}),r=Object.keys(s.lessons||{}).length,a=Object.values(o).reduce(hT,0),i=Math.round(a/r*100);return{lessons:o,p:i}};window.Rise=Object.assign(window.Rise||{},{completeLessons:pT,decodeCourseProgress:qS,encodeCourseProgress:rT,encodeLessonProgress:oT});const j0={...dT,...window.Runtime??{}},Le=j0,fT=e=>Le.getMasteryScore!=null?Le.getMasteryScore(e):e.passingScore,gT=e=>{if(Le.onCreateHistory!=null)return Le.onCreateHistory(e)},W2=(e={},t)=>Le.fetch!=null?Promise.resolve(t==null?Le.fetch():Le.fetch(t)):Promise.resolve(e),vT=(e=[])=>{if(Le.fetchPartnerContent!=null)return Le.fetchPartnerContent(e)},CT=e=>{if(Le.bookmark!=null)return Le.bookmark(e)},K2=e=>Le.getProgress!=null?Le.getProgress(e):e,xT=e=>Le.setLessonComplete!=null?Le.setLessonComplete(e):e,bT=e=>Le.setLessonProgress!=null?Le.setLessonProgress(e):e,yT=(e,t)=>Le.setCourseProgress!=null?Le.setCourseProgress(e,t):e,LT=e=>{if(Le.finish!=null)return Le.finish(e)},Q2=(e,t,s,o)=>{Le.finishQuiz!=null&&Le.finishQuiz(e,t,s,o)},ST=(e,t,s,o)=>{Le.finishStoryline!=null&&Le.finishStoryline(e,t,s,o)},Z2=()=>Le.isComplete!=null?Le.isComplete():null,TT=()=>Le.isExport!=null?Le.isExport():!1;function Y2(){if(Le.isExport!=null){const e=window.partnerContent?.content;return Le.isExport()&&!!e}return!1}const X2=()=>Le.isShare!=null?Le.isShare():!1,kT=()=>Le.isSnapshotPreview!=null?Le.isSnapshotPreview():!1,q2=()=>Le.isPasswordProtected!=null?Le.isPasswordProtected():!1,J2=e=>{const t=e||"";return Le.resolvePath!=null?t.startsWith("http")||t.startsWith("data:")||t.startsWith("//")?t:Le.resolvePath(t):t.startsWith("data:")||t.startsWith("http")||t.startsWith("//")?t:`/${t}`},NT=e=>Le.verifySharePassword!=null?Le.verifySharePassword(e):Promise.resolve({isValid:!0}),eg=e=>{if(Le.reportAnswer!=null){const{id:t,isCorrect:s,isUnfinished:o=!1,item:r,itemProgress:a,duration:i,retryAttempts:c,title:l}=e,{id:d,title:h,type:m}=r;return Le.reportAnswer({id:t,type:m,isCorrect:s,itemId:d,questionTitle:ws(h),quizTitle:ws(l),retryAttempts:c,answers:bb(r),correctResponse:yb(r),response:Lb({isUnfinished:o,item:r,itemProgress:a}),isUnfinished:o,latency:xb(i)})}return!1},IT=e=>{if(Le.startLesson!=null)return Le.startLesson(e)},ET=()=>{if(Le.getLocale!=null)return Le.getLocale()},jT=e=>{if(Le.setLocale!=null)return Le.setLocale(e)},{browser:tg,os:sg}=new er.UAParser(window.navigator.userAgent).getResult(),wT=e=>{if(Le.sendTelemetry!=null)return Le.sendTelemetry({...e,browser:{name:tg.name??"",version:tg.version??""},os:{name:sg.name??"",version:sg.version??""}})};var ng=f(70080),AT=f(99931),RT=f(99914),PT=f(35450),MT=f(93063),OT=f(56747),w0=f(29411),A0=f(211),BT=f(47688);ng.A.register(AT.A),ng.A.register(RT.A);function qr(...e){try{return(0,PT.Ay)(...e)}catch{return null}}const an=(e,t)=>{const s=qr(t);return s==null?null:(0,A0.A)((0,w0.jh)(s,qr("#ffffff"),e),{format:"hex",collapse:!1})},R0=e=>an(.9,e);var DT=f(51962),rs=f.n(DT),HT=f(23492),FT=f.n(HT),VT=f(78399),P0=f.n(VT),Xt=f(65787);const zT=me()(jn()(".svg"),e=>e??"",jt()("","originalUrl")),$T=ss()(zT,Me()({width:"500rem"}),Me()({})),No=e=>{if(e){const t=e.trim();if(t!==""&&t!=='""')return e}return""},og=e=>No(e)||void 0,rg=e=>e?"img":void 0,ag=e=>dt()(jt()("","originalUrl"),t=>t??"",P0()("."),So(),rs()(e)),_T=ag("svg"),V0e=ag("gif"),UT=/\.svg$/i,ig=e=>UT.test(e),GT=null,z0e=e=>GT[e]||"left",WT=(e,t)=>{const s=FT()(e,t);return s.media.image.key===t.media.image.key&&Object.assign(s.media.image,{crushedKey:t.media.image.key,useCrushedKey:!0}),s},KT=({src:e,alpha:t})=>({alpha:t,media:{image:{key:QT(e),src:e}}}),QT=e=>typeof e!="string"?"":e.startsWith("http")?new URL(e).pathname.slice(1):e,ZT=(({coverImageAlpha:e,coverImage:t})=>({alpha:e,src:t})),YT=(({lessonHeaderImageAlpha:e,lessonHeaderImage:t})=>({alpha:e,src:t})),cg=(e,t)=>(s,o)=>{const r=s[t];if(s?.theme){const a=o?o(r?.media):r?.media;if((0,Xt.uW)(a))return r;const i={...r,media:{...a}},c=KT(e(s.theme));return WT(i,c)}else return r},lg=cg(ZT,"coverImage"),dg=cg(YT,"lessonHeaderImage"),$0e=async e=>{const t=new Image;return t.src=e,await t.decode(),t};function cn(e){return $s()(e)}class XT extends Error{constructor(t="Assert Error",s){super(t,s)}}function _0e(e,t="Assertion Error"){if(!e)throw new XT(t)}const nl={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},qT="#ff631e",U0e=3,G0e=17,W0e=32,K0e=24,Q0e=50,Z0e=.6,Y0e="right",JT="rounded",ek=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],X0e="#ffffff",q0e=s0()("color",ek),J0e="#000",e1e="#fff",t1e="Rise",ne=cn({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),gi=cn({LARGE:null,MEDIUM:null,SMALL:null}),ol=cn({STEPPED:null,CONTINOUS:null}),M0=$s()({NUMBERS:null,DOTS:null,NONE:null}),lr=cn({COMPACT:null,OVERLAY:null,SIDEBAR:null}),to=$s()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),dr=$s()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),Io={FREE:"free",RESTRICTED:"restricted"},ur=$s()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),st=$s()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),vi=cn({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),so=cn({FULL:null,FLOATING:null,FLOATING_FULL:null}),ce=cn({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}),Ci=cn({TOP_LEFT:null,TOP_RIGHT:null,BOTTOM_LEFT:null,BOTTOM_RIGHT:null}),tk={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},s1e=!0,sk=Ci.BOTTOM_RIGHT,n1e=[{text:"Top left",type:Ci.TOP_LEFT},{text:"Top right",type:Ci.TOP_RIGHT},{text:"Bottom left",type:Ci.BOTTOM_LEFT},{text:"Bottom right",type:Ci.BOTTOM_RIGHT}],o1e={default:[{text:"Centered",type:ce.CENTERED},{text:"Centered overlay",type:ce.CENTERED_OVERLAY},{text:"Left",type:ce.LEFT},{text:"Left overlay",type:ce.LEFT_OVERLAY},{text:"Split left image",type:ce.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ce.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:ce.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:ce.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:ce.CENTERED},{text:"Centered overlay",type:ce.CENTERED_OVERLAY},{text:"Left",type:ce.LEFT},{text:"Left overlay",type:ce.LEFT_OVERLAY},{text:"Split left image",type:ce.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ce.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:ce.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:ce.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:ce.CENTERED},{text:"Centered overlay",type:ce.CENTERED_OVERLAY},{text:"Left",type:ce.LEFT},{text:"Left overlay",type:ce.LEFT_OVERLAY},{text:"Split left",type:ce.SPLIT_LEFT},{text:"Split right",type:ce.SPLIT_RIGHT},{text:"Split left image",type:ce.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ce.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:ce.CENTERED},{text:"Centered overlay",type:ce.CENTERED_OVERLAY},{text:"Centered image",type:ce.CENTERED_IMAGE},{text:"Centered accent tint",type:ce.CENTERED_ACCENT_TINT},{text:"Split left image",type:ce.SPLIT_LEFT_IMAGE},{text:"Split right image",type:ce.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:ce.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:ce.TWO_THIRDS_RIGHT_IMAGE}]},r1e=null,a1e=null,i1e=[{text:"Image",type:ce.IMAGE},{text:"Accent",type:ce.ACCENT},{text:"White",type:ce.WHITE}],Jr={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},ye=cn({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),nk=cn({ROUNDED:null,SQUARED:null}),ok=$s()({ROUNDED:null,SQUARED:null}),rk=$s()({FLOATING:null,FULL:null}),it=$s()({ACCENT:null,DARK:null,LIGHT:null}),c1e=[{value:ye.AUTO,label:"Auto"},{value:ye.DARK,label:"Dark"},{value:ye.LIGHT,label:"Light"}],Xe={accentContrast:ye.AUTO,allowSearch:!0,animateBlockEntrance:!0,blockBackgroundColor:null,blockBackgroundColorContrast:ye.AUTO,blockBackgroundType:ne.LIGHT,blockContinueCompletionType:"",blockContinueCompleteHint:"Complete the content above before moving on.",blockContinueLabel:"Continue",blockCorners:nk.ROUNDED,blockPaddingEnd:3,blockPaddingStart:3,blockTextBackgroundColor:null,blockTextBackgroundColorContrast:ye.AUTO,blockTextBackgroundType:ne.LIGHT,blockTextBodyFontSize:17,blockTextHeadingFontSize:32,blockTextPaddingEnd:3,blockTextPaddingStart:3,blockTextSubheadingFontSize:24,buttonInlineStyle:ok.ROUNDED,buttonNavigationStyle:rk.FULL,buttonScheme:vi.LIGHT,colorAccent:qT,compactShowLessonCount:!0,coverImageAlpha:50,coverPageType:ce.SPLIT_LEFT_IMAGE,customColorLessonHeaderContrast:ye.AUTO,enableVideoPlaybackSpeed:!0,lessonHeaderImageAlpha:.6,lessonHeaderImageColor:it.DARK,lessonHeaderSize:gi.MEDIUM,lessonHeaderStyle:ne.LIGHT,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,navigationSectionsExpanded:!0,navigationStyle:to.LIGHT,navigationType:lr.SIDEBAR,progressIndicatorStyle:st.THEME_DEFAULT,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,showStartButton:!0,sidebarStartsOpen:!0,themeId:nl.RISE_CLASSIC},l1e=null,ak=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],ik=e=>e.theme?.colorAccent||e.color||Xe.colorAccent,ug=e=>e.theme?.navigationRestricted??Xe.navigationRestricted?Io.RESTRICTED:Io.FREE,hg=e=>e.theme?.sidebarStartsOpen??Xe.sidebarStartsOpen?Jr.OPEN:Jr.CLOSED,ck=e=>e.theme?.showLessonCount??e.showLessonCount??Xe.showLessonCount,lk=({sidebarMode:e})=>e!==Jr.HIDDEN,dk=({navigationMode:e})=>e===Io.RESTRICTED,uk=({sidebarMode:e})=>e===Jr.OPEN,hk=e=>e.coverImage?.media?.image?to.LIGHT_IMAGE:to.LIGHT,mk=e=>e.coverImage?.media?.image?ce.LEFT_OVERLAY:ce.LEFT,no=(e,t)=>t[e]??t.theme?.[e]??Xe[e],mg=e=>{const t=hg(e),s=ug(e),o={allowSearch:no("allowSearch",e),animateBlockEntrance:no("animateBlockEntrance",e),bodyTypefaceId:e.bodyTypefaceId,colorAccent:(e.color||"").toLowerCase(),compactShowLessonCount:no("compactShowLessonCount",e),coverImageDefault:null,coverPageType:mk(e),enableVideoPlaybackSpeed:no("enableVideoPlaybackSpeed",e),headingTypefaceId:e.headingTypefaceId,markLessonsComplete:no("markComplete",e),navigation:lk({sidebarMode:t}),navigationSectionsExpanded:no("navigationSectionsExpanded",e),navigationRestricted:dk({navigationMode:s}),navigationStyle:hk(e),showAuthor:no("showAuthor",e),showLessonCount:no("showLessonCount",e),showNavigationButtons:no("showNavigationButtons",e),sidebarStartsOpen:uk({sidebarMode:t}),uiTypefaceId:e.uiTypefaceId},r={...Xe,...o};return{...e,theme:{...r,isLegacyCourse:!0}}},O0=e=>{const t=ik(e),s={allowSearch:e.theme?.allowSearch??Xe.allowSearch,animateBlockEntrance:e.theme?.animateBlockEntrance??Xe.animateBlockEntrance,buttonNavigationStyle:e.theme?.buttonNavigationStyle??Xe.buttonNavigationStyle,buttonScheme:e.theme?.buttonScheme??Xe.buttonScheme,color:t,colorAccentTint:t?R0(t):void 0,coverImage:lg(e),coverPageType:e.theme?.coverPageType??Xe.coverPageType,enableVideoPlaybackSpeed:e.theme?.enableVideoPlaybackSpeed??Xe.enableVideoPlaybackSpeed,lessonHeaderImage:dg(e),lessonHeaderSize:e.theme?.lessonHeaderSize??Xe.lessonHeaderSize,lessonHeaderStyle:e.theme?.lessonHeaderStyle??Xe.lessonHeaderStyle,markComplete:e.theme?.markLessonsComplete??Xe.markLessonsComplete,navigation:e.theme?.navigation??Xe.navigation,navigationSectionsExpanded:e.theme?.navigationSectionsExpanded??Xe.navigationSectionsExpanded,navigationMode:ug(e),navigationRestricted:e.theme?.navigationRestricted??Xe.navigationRestricted,navigationStyle:e.theme?.navigationStyle??Xe.navigationStyle,navigationType:e.theme?.navigationType??Xe.navigationType,progressIndicatorStyle:e.theme?.progressIndicatorStyle??st.THEME_DEFAULT,themeId:e.theme?.themeId??Xe.themeId,showAuthor:e.theme?.showAuthor??Xe.showAuthor,showLessonCount:ck(e),showStartButton:e.theme?.showStartButton??Xe.showStartButton,sidebarMode:hg(e),sidebarStartsOpen:e.theme?.sidebarStartsOpen??Xe.sidebarStartsOpen,showNavigationButtons:e.theme?.showNavigationButtons??Xe.showNavigationButtons};return{...e,...s}},pk=({course:e,updates:t})=>{const s=Object.fromEntries(Object.entries(t||{}).filter(([r])=>ak.includes(r))),o={...e,...s};return O0(o)},fk={padding:"medium",alignment:"left"},gk={embed:{aspectRatio:"16:9"},video:{},labeledgraphic:{hotspotStyle:"numbers"},process:{navigation:"stepped"},sorting:{feedback:"immediate"},timeline:{orientation:"vertical"},paragraph:{fontSize:"medium"}},ln=(e,t=0)=>`item_${e}_${t}`,pg=(e,t)=>[{id:ln(`${t}_placeholder`,0),placeholder:!0,type:e,title:`Add ${e} content`}],hr=e=>({...fk,...gk[e]??{}}),vk=e=>typeof e=="string"?e.replace(/<p><br><\/p>/g,""):e,fg=e=>e.map(t=>{if(t&&typeof t=="object"&&!Array.isArray(t)){const s={};for(const[o,r]of Object.entries(t))s[o]=vk(r);return s}return t}),Ck=e=>["Introduction","Summary"].map((t,s)=>({id:ln(`${e}_process`,s),title:t,type:t.toLowerCase(),description:null,isHidden:!0})),xk=(e,t)=>[{id:ln(`${t}_text`,0),paragraph:e}],bk=(e,t)=>[...Ck(t),...e],yk=(e,t)=>[{id:ln(`${t}_video`,0),caption:"",media:e}],Lk=(e=[],t)=>({family:"multimedia",id:ln(`${t}_embed`,0),items:e.length?e:pg("embed",t),media:{},settings:hr("embed"),type:"multimedia",variant:"embed"}),Sk=(e,t,s)=>({family:"interactive-fullscreen",id:ln(`${s}_labeledgraphic`,0),items:e,media:t,settings:hr("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),Tk=(e,t)=>({family:"interactive-fullscreen",id:ln(`${t}_process`,0),items:fg(e),media:{},settings:hr("process"),type:"interactive",variant:"process"}),kk=({items:e,piles:t},s)=>({family:"interactive-fullscreen",id:ln(`${s}_sorting`,0),items:e,media:{},piles:t,settings:hr("sorting"),type:"interactive",variant:"sorting"}),Nk=(e,t)=>({family:"text",id:ln(`${t}_text`,0),items:fg(e),settings:hr("paragraph"),type:"text",variant:"paragraph"}),Ik=(e,t)=>({family:"interactive-fullscreen",id:ln(`${t}_timeline`,0),items:e,media:{},settings:hr("timeline"),type:"interactive",variant:"timeline"}),Ek=(e,t={},s)=>({family:"multimedia",id:ln(`${s}_video`,0),items:e?.video?yk(e,s):pg("video",s),media:{},settings:{...t,...hr("video")},type:"multimedia",variant:"video"}),jk=({items:e=[]},t)=>Lk(e.map(({icon:s,...o})=>o),t),wk=({items:e=[],media:t},s)=>Sk(e.map(({hasMedia:o,...r})=>r),t,s),Ak=({items:e=[]},t)=>{const s=e.map(o=>({...o,isHidden:!1,type:"step"}));return Tk(bk(s,t),t)},Rk=({items:e=[]},t)=>Ik(e.map(({linePosition:s,...o})=>o),t),Pk=(e,t)=>Nk(xk(e,t),t),Mk=(e,t)=>{switch(e.type){case"embed":return jk(e,t);case"map":return wk(e,t);case"process":return Ak(e,t);case"sorting":return kk(e,t);case"timeline":return Rk(e,t);case"screencast":case"slidecast":case"video":return Ek(e.media,e.settings,t);default:throw new Error(`Unknown legacy lesson type: ${e.type}`)}},gg=e=>typeof e?.type=="string"&&T2.includes(e.type),Ok=e=>{if(!gg(e))return e;const t=String(e.id),s={description:"",icon:"Article",type:"blocks"},o=[Mk(e,t)],r=typeof e.description=="string"?e.description.trim():"";return r&&o.unshift(Pk(r,`${t}_desc`)),{...e,...s,items:o,media:{}}},vg=e=>`rise/rise-com/${e}`,Cg=vg("FAVORITE_ADDED"),xg=vg("FAVORITE_REMOVED"),Bk=()=>(0,fe.action)(Cg,void 0),Dk=()=>(0,fe.action)(xg,void 0),bg=(e=>`rise/partnerContent/${e}`)("SET_ALL_PARTNER_CONTENT"),mr=(e=>`rise/status/${e}`)("SET_LOADED"),Hk=(e,t)=>({...e,...t}),Fk={connection:"connected",courseLoaded:!1,fatalError:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},Vk=(0,fe.handle)(Fk,{[mr]:Hk}),zk=(e=!1)=>(0,fe.action)(mr,{fontsLoaded:e}),$k=(e=!1)=>(0,fe.action)(mr,{courseLoaded:e}),_k=(e=!1)=>(0,fe.action)(mr,{coverLoaded:e}),Uk=(e=!1)=>(0,fe.action)(mr,{notFound:e}),Gk=(e=!1)=>(0,fe.action)(mr,{fatalError:e}),yg=(e=!1)=>(0,fe.action)(mr,{partnerContentLoaded:e}),Wk=(e=[],t)=>t?.partnerContentId?e.concat(t.partnerContentId):e,Kk=(e,t)=>t?.items?.reduce(Wk,e)??e,Qk=(e,t)=>t?.items?.reduce(Kk,e)??e,Zk=({course:e,lessons:t})=>{const s=t?.reduce(Qk,[])||[],o=e?.partnerContentId||null,r=o?[o]:[],a=new Set([...s,...r]);return Array.from(a)},Yk=e=>typeof e=="string"&&e.length>0,h1e=`${Ee("CDN_URI")}/assets/rise/assets/themes/thumbnails/sample-avatar.jpeg`,m1e=$s()({ACTIVE:null,PREVIEW:null}),p1e=({themeCoverImage:e,coverImageDefault:t})=>Yk(t)?t:e,Xk=e=>({...e,theme:{...e?.theme,hideLessonHeaders:e?.theme?.hideLessonHeaders??!1,showStartButton:e?.theme?.showStartButton??!0}}),as={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"},pr={SUMMARY:"SUMMARY",REMAINING:"REMAINING",ELAPSED:"ELAPSED",ELAPSED_TOTAL:"ELAPSED_TOTAL",HIDE_TIMER:"HIDE_TIMER"},qk={CONTINUE:"continue",NONE:""},Pe={ALL:"all",NONE:"none",INCORRECT:"incorrect"},f1e=10,g1e=80,v1e=500;var C1e;const Jk=Cs()([[y0()([rs()(!0),rs()(Pe.ALL)]),Me()(Pe.ALL)],[y0()([rs()(!1),rs()(Pe.NONE)]),Me()(Pe.NONE)],[rs()(Pe.INCORRECT),Me()(Pe.INCORRECT)],[or(),Me()(Pe.ALL)]]),x1e="draw from question bank",b1e="fillin",y1e="matching",L1e="multiple choice",S1e="multiple response",T1e=null;var eN=f(47874),B0=f.n(eN);const D0={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},ea={KNOWLEDGE_CHECK:"KNOWLEDGE_CHECK",ORDER:"ORDER",QUIZ:"QUIZ"},Gs=e=>`/lessons/${encodeURIComponent(e)}`,tN="/lessons/progress-summary",H0="lesson:",rl="#/lessons/",F0="/lessons/",k1e=e=>`${rl}${e}`,N1e=e=>e.startsWith(H0)||e.startsWith(rl)||e.startsWith(F0),I1e=e=>e.startsWith(H0)?e.slice(H0.length):e.startsWith(rl)?e.slice(rl.length).split("/")[0]:e.startsWith(F0)?e.slice(F0.length).split("/")[0]:e,sN=e=>e.type===D0.SECTION,nN=e=>e.type===D0.QUIZ,oN=e=>e.settings?.passToContinue===!0,Lg=e=>e?.items?.find(t=>t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer),fr=e=>e!=null&&(e.type!=="quiz"||e.settings?.asLesson!==!1),rN=e=>e!=null&&e.type==="blocks",aN=e=>{const t=B0()(e);return t!=null&&Array.isArray(t.items)&&(t.items=t.items.reduce((s,o)=>(o!=null&&s.push(iN(o)),s),[])),t},iN=e=>{const t=B0()(e);return t!=null&&Array.isArray(t.items)&&(t.items=t.items.filter(Boolean)),t};var cN=f(69098),lN=f.n(cN);const Sg="^1.6.0";class V0 extends Error{}function dN(e){try{if(e==null)return;if(typeof e!="object"||!("version"in e)||typeof e.version!="string")throw new V0("Missing Runtime.version");if(!lN()(e.version,Sg))throw new V0(`Runtime.version ${e.version} does not satisfy ${Sg}`)}catch(t){console.warn(t)}}const ta="rise/course/LOAD_COURSE",uN="rise/course/UPDATE_COMPLETED_AT",al="rise/course/UPDATE_COURSE_PREVIEW",Tg="rise/course/UPDATE_LESSON_PREVIEW",z0="rise/course/APPLY_CHANGESET";let $0;(async()=>{try{({applyReviewDataToManifest:$0}=await f.e("webpack_container_remote_mondrian_learn-react").then(f.t.bind(f,4246,23)))}catch{}})();const xi=Zx(),hN=e=>{if("settings"in e&&e.settings&&Jn(e.settings)&&"revealAnswers"in e.settings){const s=e.settings;return{...e,settings:{...e.settings,revealAnswers:Jk(s.revealAnswers)}}}return e},mN=e=>rN(e)?aN(e):e,kg=e=>mN(hN(e)),pN=e=>({...e,lessons:e.lessons?.map(kg)||[]}),fN=e=>{const t=e.lessons?.filter(s=>s.type!=="section")||[];return{...e,lessonsOnly:t}},gN=e=>e.theme==null,vN=e=>O0(mg(e)),CN=e=>gN(e)?vN(e):O0(e),xN=e=>Xk(CN(e)),bN=(e,t)=>{let s=(0,_r.TJ)(["course"],t,e).result;const o=(0,_r.TJ)(["lessons"],t,s.lessons).result;return t.some(r=>r.path[0]==="mondrian")&&s.mondrian&&$0&&(s={...s,mondrian:$0(s.mondrian,t)}),{...s,lessons:o}},yN=e=>({...e,lessons:e.lessons?.map(Ok)||[]}),LN=(e,{completedAt:t,course:s,favoritedAt:o,riseComCurrentUser:r,riseComCourseId:a,riseComEnrollmentType:i,riseComLearningPathId:c})=>{const l=pN(s),d=fN(l),h={...d,theme:d.theme??mg(d).theme};return{...xN(h),completedAt:t,favoritedAt:o,riseComCourseId:a,riseComEnrollmentType:i,riseComCurrentUser:r,riseComLearningPathId:c}},SN=e=>({...e,favoritedAt:new Date}),TN=e=>({...e,favoritedAt:null}),kN=e=>({...e,completedAt:new Date().toISOString()}),NN={[Cg]:SN,[xg]:TN,[ta]:LN,[uN]:kN,[al]:(e,{course:t})=>t,[Tg]:(e,{lessons:t})=>({...e,lessons:t.map(kg)}),[z0]:bN},IN=(0,fe.handle)({},NN),Ng=e=>t=>{RN(t)?e(Uk(!0)):t instanceof V0&&(e(Gk(!0)),console.error(t))},EN=e=>t=>t([{type:bg,payload:e},yg(!0)]),jN=Jo().fromPromise(async(...e)=>await vT(...e)),wN=e=>e.length===0?yg(!0):jN(e).map(EN),AN=e=>il(e)===401||_0(e)&&il(e.response)===401,RN=e=>il(e)===404||_0(e)&&il(e.response)===404,il=e=>_0(e)?e.status??e.statusCode:void 0,_0=e=>e!=null&&typeof e=="object",PN=e=>t=>{const{course:s}=t,o=yN(s),r=Zk({course:o,lessons:o.lessons});e([xi(ta,{...t,course:o,_originalLessons:s.lessons}),$k(!0),wN(r)])},MN=e=>async t=>{let s;try{dN(window.Runtime),s=e?.password!=null?await W2(void 0,{password:e.password}):await W2()}catch(o){if(e?.onUnauthorized!=null&&AN(o)){e.onUnauthorized();return}e?.onError?.(),await Ng(t)(o);return}e?.onAuthorized?.();try{PN(t)(s),wT(s)}catch(o){await Ng(t)(o)}},ON=xi(ta),BN=xi(al),DN=xi(Tg),HN=xi(z0),FN=(e,{labelSet:t})=>({...e,...t}),VN=(0,fe.handle)({},{[ta]:FN}),oo=e=>`rise/course/${e}`,Ig=oo("BLOCKS_LESSON_COMPLETE"),Eg=oo("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),jg=oo("BLOCKS_LESSON_RESET"),wg=oo("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),Ag=oo("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),Rg=oo("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),Pg=oo("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),Mg=oo("BLOCKS_LESSON_SET_SURVEY_PARTIAL"),Og=oo("BLOCKS_LESSON_SET_SURVEY_SUBMITTED"),Bg=(0,fe.action)(Ig),zN=(0,fe.action)(Eg),$N=(0,fe.action)(jg),_N=(0,fe.action)(wg),Dg=(0,fe.action)(Ag),UN=(0,fe.action)(Rg),GN=(0,fe.action)(Pg),WN=(0,fe.action)(Mg),KN=(0,fe.action)(Og),Ws=e=>`rise/course/${e}`,Hg=Ws("QUIZ_LESSON_ADVANCE_STEP"),Fg=Ws("QUIZ_LESSON_APPLY_SKIP"),Vg=Ws("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),zg=Ws("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),$g=Ws("QUIZ_LESSON_RESTART"),_g=Ws("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),Ug=Ws("QUIZ_LESSON_SET_ANSWER_MATCHES"),Gg=Ws("QUIZ_LESSON_SET_ANSWER_TEXT"),Wg=Ws("QUIZ_LESSON_ADVANCE_TO_END"),Kg=Ws("QUIZ_LESSON_SET_TIME_REMAINING"),Qg=Ws("QUIZ_LESSON_SUBMIT_ANSWER"),Zg=Ws("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),U0=(0,fe.action)(Hg),QN=(0,fe.action)(Wg),Yg=(0,fe.action)($g),ZN=(0,fe.action)(Fg),Xg=(0,fe.action)(_g),qg=(0,fe.action)(Gg),Jg=(0,fe.action)(Zg),YN=(0,fe.action)(Kg),ev=(0,fe.action)(Ug),G0=(0,fe.action)(Qg),XN=(0,fe.action)(Vg),qN=(0,fe.action)(zg),W0=e=>e&&typeof e=="object"&&e.type&&T2.includes(e.type),JN=(e,t)=>{const s=new Map;return e.forEach(o=>{if(gg(o)){const r=t.find(a=>String(a.id)===String(o.id));r&&r.type==="blocks"&&s.set(String(o.id),String(r.id))}}),s},eI=(e,t)=>{const s={id:String(e.id),index:e.index,type:"blocks",items:{}};return typeof e.isComplete=="boolean"&&(s.isComplete=e.isComplete),typeof e.percentComplete=="number"&&(s.percentComplete=e.percentComplete),t.type==="blocks"&&t.items&&t.items.forEach((o,r)=>{if(o?.id!=null&&(s.items[o.id]={id:o.id,index:r,isComplete:e.isComplete===!0&&r===0,items:o.items?{}:void 0},o.items&&Array.isArray(o.items))){const a={};o.items.forEach((i,c)=>{i?.id!=null&&(a[i.id]={id:i.id,index:c,isComplete:e.isComplete===!0})}),Object.keys(a).length>0&&(s.items[o.id].items=a)}}),s},tI=(e,t)=>{const s=new Set(t.map(r=>String(r.id))),o=[];return Object.values(e.lessons).forEach(r=>{W0(r)&&(s.has(String(r.id))||o.push(r))}),o},sI=(e,t,s)=>{const o={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},r={...e,lessons:{...e.lessons}},a=tI(e,s);o.totalLegacyLessons=a.length;const i=JN(t,s),c=[];return a.forEach(l=>{try{const d=i.get(String(l.id))||String(l.id),h=s.find(m=>String(m.id)===d);if(h&&h.type==="blocks"){const m=eI(l,h);r.lessons[String(h.id)]=m,String(l.id)!==String(h.id)&&delete r.lessons[String(l.id)],o.successfulMigrations++}else c.push(String(l.id)),o.failedMigrations++}catch(d){console.warn(`Failed to migrate legacy lesson progress for lesson ${l.id}:`,d),c.push(String(l.id)),o.failedMigrations++}}),{migratedProgress:r,orphanedLessonIds:c,migrationSummary:o}},tv=e=>Object.values(e.lessons).some(W0),E1e=e=>{let t=0,s=0;const o=[];return Object.values(e.lessons).forEach(r=>{s++,W0(r)&&(t++,o.includes(r.type)||o.push(r.type))}),{legacyCount:t,totalCount:s,legacyTypes:o,hasLegacyProgress:t>0}},nI=(e,t,s)=>{if(!tv(e))return e;const o=sI(e,t,s);return o.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",o.orphanedLessonIds),o.migratedProgress},K0=e=>`rise/course/${e}`,sv=K0("BOOKMARK_LESSON"),oI=K0("LOAD_COURSE"),nv=K0("PREVIEW_COMPLETE_PRECEDING_LESSONS"),rI=(0,fe.action)(sv),aI=(0,fe.action)(nv),iI={lessons:{},percentComplete:0},cI=(0,fe.handle)(iI,{[Ig]:r2,[Eg]:hy,[jg]:my,[wg]:py,[Ag]:fy,[Rg]:gy,[Pg]:vy,[Mg]:Cy,[Og]:xy,[Hg]:Iy,[Wg]:Ey,[Fg]:Fy,[Vg]:jy,[zg]:wy,[$g]:Ry,[_g]:Py,[Ug]:My,[Gg]:Ay,[Kg]:Oy,[Qg]:By,[Zg]:Dy,[sv]:dI,[oI]:lI,[nv]:uI});function lI(e,t){const s=t.course?.lessons??[],o=t._originalLessons??s,r=K2(gI(s));if(typeof r!="object"||r===null)return e;const a={...e,...r};return tv(e)&&o!==s?nI(a,o,s):a}function dI(e,t){return CT(t),{...e,currentLesson:t}}function uI(e,{targetLessonId:t,lessons:s}){const o=e.lessons[t];if(!o)return e;let r=o.index;for(const i of s){if(i.type!=="quiz")continue;const c=e.lessons[i.id];if(!c||c.index>=r)continue;const l=i.settings;if(!l?.skipLessonsIfPassed||!l.skipToLessonId)continue;const d=e.lessons[l.skipToLessonId];d&&d.index>r&&(r=d.index)}const a=Object.fromEntries(Object.entries(e.lessons).map(([i,c])=>c.index>=r||c.isComplete?[i,c]:[i,hI(c)]));return{...e,lessons:a}}function hI(e){return In(e)?h0(e):gs(e)?mI(e):e}function mI(e){const t=Object.fromEntries(Object.entries(e.items??{}).map(([o,r])=>[o,{...r,isComplete:!0,isCorrect:!0}])),s=Object.keys(t).length;return{...e,items:t,activeIndex:s+1,isComplete:!0,passed:!0,passingScore:e.passingScore??80,percentComplete:100,reportResults:!0,score:100}}const pI=({index:e,lessonId:t,settings:s,type:o})=>o==="quiz"?{id:t,index:e,type:o,items:{},passingScore:Number(s?.passingScore??80)}:{id:t,index:e,type:"blocks",items:{}};function fI(e){return e.type==="quiz"&&"settings"in e}function gI(e){return{lessons:e.reduce((s,o,r)=>fI(o)?ov({index:r,items:o.items,lessonId:o.id,lessonProgress:s,settings:o.settings,type:o.type}):o.type==="blocks"?ov({index:r,items:o.items,lessonId:o.id,lessonProgress:s,type:o.type}):s,{})}}function ov(e){const{lessonId:t,index:s,items:o,lessonProgress:r={},settings:a,type:i}=e,c=pI({lessonId:t,index:s,settings:a,type:i});if(o.length===0)return{...r,[t]:c};const l=i==="quiz"?CI(o):vI(o);return{...r,[t]:{...c,items:l}}}function vI(e){return e.reduce((t,s,o)=>{const r=s.id,a=s.items??[],i=oy(a);return t[r]={id:r,index:o,items:i},t},{})}function CI(e){return e.reduce((t,s,o)=>(t[s.id]={id:s.id,index:o},t),{})}var xI=f(65191),sa=f.n(xI),bI=f(62981),yI=f.n(bI),j1e=f(55066),rv,av;const Q0=5e3,LI=lt()(Wc()(on())(":n3,n4,i4,n7,n9")),SI=me()(sa()(","),sl()),TI=(e,t)=>{const s=new FontFace(t.name,e,{family:t.name,style:t.style,weight:t.weight});return s.load().then(()=>document.fonts.add(s))},kI=(e,t)=>{const s=document.createElement("style");return s.innerText=`@font-face { font-family: '${t.name}'; src: ${e}; font-weight: ${t.weight}; font-style: ${t.style}; }`,document.head.appendChild(s),new(yI())(t.name,{style:t.style,weight:t.weight}).load()},NI=e=>{const t=`url(${rb(e)}) format('woff')`;return("fonts"in document?TI:kI)(t,e)},iv=(e,t)=>{const s=Promise.all(e.map(NI));let o;const r=new Promise(a=>{o=setTimeout(a,Q0)});return Promise.race([s,r]).catch(a=>{console.error("Failed to load learn course fonts:",{fonts:e,error:a.message||a})}).finally(()=>{clearTimeout(o),t()})},A1e=({baseUri:e,typefaces:t,onLoad:s,onError:o})=>{const r=rv(t).join(", ");return av.load({active:s,fontinactive:(a,i)=>{console.error("Individual font failed to load:",{familyName:a,fvd:i,typefaces:t})},inactive:()=>{console.error("Failed to load course fonts:",{typefaces:t,typefaceList:r}),o?.(),s?.()},timeout:Q0,custom:{families:LI(rv(t)),urls:[`${e}/course_fonts.css?typefaceIds=${SI(t)}`]}})},R1e=()=>av.load({google:{families:["Noto Sans Myanmar:300,400,500,600,700"]},timeout:Q0}),II=(e,{fonts:t})=>[...e,...t],EI=(e,{fonts:t})=>t,jI=(0,fe.handle)([],{[ta]:II,[al]:EI}),wI=e=>t=>{iv(e,()=>{t(zk(!0))})},AI={isPreview:window.viewType==="preview"},cv=((e=AI)=>e);f.dn(cv);const lv="rise/l10n/TOGGLE_LOCALE_SELECTOR",dv=(e,{l10n:t})=>t?{...e,...t}:e,RI=(e,t)=>(0,_r.TJ)(["l10n"],t,e).result,Z0=(0,fe.action)(lv),PI=(e,t)=>e&&{...e,...!t&&{localeSelectorOptions:void 0},showLocaleSelector:t},MI=(0,fe.handle)(null,{[ta]:dv,[al]:dv,[z0]:RI,[lv]:PI});var OI=f(4051),cl=f.n(OI);const BI=cl()(2,e=>p0()((0,fe.error)(e),(0,fe.action)(e))),{RiseDotCom:ro}=window,gr=e=>ro&&ro[e],DI=()=>{gr("exit")&&ro.exit()},uv=(...e)=>{gr("on")&&ro.on(...e)},hv=(...e)=>{gr("off")&&ro.off(...e)},HI=(...e)=>{gr("goToLearn")&&ro.goToLearn(...e)},FI=(...e)=>{if(gr("downloadCertificate"))return ro.downloadCertificate(...e)},VI=(...e)=>{if(gr("downloadCertificateCancel"))return ro.downloadCertificateCancel(...e)},zI=(...e)=>{if(gr("fetchLpUpNext"))return ro.fetchLpUpNext(...e)},mv="rise/learningPathUpNext/FETCH_LP_UP_NEXT",pv="rise/learningPathUpNext/FETCH_LP_UP_NEXT_PENDING",$I={isPending:!1,isSuccess:!1,learningPathComplete:!1,nextCourse:{}},_I=e=>!("id"in e),UI=(e,t)=>{const s=_I(t);return{...e,isPending:!1,isSuccess:!0,learningPathComplete:s,lpHasFailedQuiz:t.lpHasFailedQuiz,nextCourse:s?{}:t}},GI=e=>({...e,isPending:!0}),M1e=(0,fe.handle)($I,{[mv]:(0,fe.onSuccess)(UI),[pv]:GI}),WI=e=>[(0,fe.action)(pv),BI(mv)(Jo().fromPromise(zI)(e))],KI=(e,t)=>{const s=e.content.findIndex(r=>r.id===t.id),o=[...e.content];return s===-1?o.push(t):o[s]=t,{...e,content:o}},QI=(e,t)=>t.reduce(KI,e),ZI={[bg]:QI},YI=(0,fe.handle)({content:[]},ZI),fv="rise/search/RESET_SEARCH",gv="rise/search/SET_SEARCH_ACTIVE",vv="rise/search/SET_SEARCH_ACTIVE_LESSONS",Cv="rise/search/SET_SEARCH_TRANSLATIONS",xv="rise/search/SET_SEARCH_LESSONS",bv="rise/search/SET_SEARCH_TERM",yv={active:!1,activeLessons:[],translations:{},lessons:[],term:null},XI=(e,t)=>t?{...yv,active:e.active}:e,qI=(e,t)=>({...e,active:t}),JI=(e,t)=>({...e,activeLessons:t}),eE=(e,t)=>({...e,translations:t}),tE=(e,t)=>({...e,lessons:t}),sE=(e,t)=>({...e,term:t}),nE=(0,fe.handle)(yv,{[fv]:XI,[gv]:qI,[vv]:JI,[Cv]:eE,[xv]:tE,[bv]:sE}),na=e=>(0,fe.action)(e),Lv=na(fv),bi=na(gv),Sv=na(vv),Tv=na(Cv),kv=na(xv),vr=na(bv),Y0=e=>`rise/sessionPreferences/${e}`,Nv=Y0("LOAD_SESSION_PREFERENCES"),Iv=Y0("SET_PREFERS_KEYBOARD_NAVIGATION"),oE=Y0("SET_STARTING_COURSE_LESSON_SELECTED"),rE={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},aE=(e,t)=>({...e,prefersKeyboardNavigation:t}),iE=(e,t)=>({...e,startedCourseWithLessonSelected:t}),cE=(0,fe.handle)(rE,{[Nv]:(e,t)=>({...e,...t}),[Iv]:aE,[oE]:iE}),lE=()=>(0,fe.action)(Nv,null),dE=(0,fe.action)(Iv),Ev="rise/slidesUI/SET_SLIDE_DIRECTION",jv="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",uE={slideDirection:rn.UP,exitingSlideOffset:0},hE=(0,fe.handle)(uE,{[Ev]:(e,t)=>({...e,slideDirection:t}),[jv]:(e,t)=>({...e,exitingSlideOffset:t})}),Cr=(0,fe.action)(Ev),mE=(0,fe.action)(jv),X0=on()("rise/transcriptPanel/"),wv=X0("OPEN_TRANSCRIPT_PANEL"),Av=X0("CLOSE_TRANSCRIPT_PANEL"),Rv=X0("UPDATE_TRANSCRIPT_PANEL"),pE={audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null},fE=(e,t)=>t.audioPlayerId?{...e,audioPlayerIdOpen:t.audioPlayerId,focusing:t.focusing??!1,refocusTarget:t.refocusTarget??null,transcriptMedia:t.transcriptMedia??null}:e,Pv=()=>({audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null}),gE=(e,t)=>e.audioPlayerIdOpen?t.audioPlayerId?{...e,audioPlayerIdOpen:t.audioPlayerId,focusing:t.focusing??e.focusing,transcriptMedia:t.transcriptMedia??e.transcriptMedia}:Pv():e,vE={[wv]:fE,[Av]:Pv,[Rv]:gE},CE=(0,fe.handle)(pE,vE),Mv=(e=>`rise/ui/${e}`)("SET_SKIP_TO_NAV_BUTTON_UI"),xE={skipToNavButton:null},bE=(0,fe.handle)(xE,{[Mv]:(e,t)=>({...e,skipToNavButton:t})}),q0=(0,fe.action)(Mv);var B1e;const yE={},LE=(0,_c.HY)({course:IN,courseLabels:VN,courseProgress:cI,fonts:jI,global:cv,l10n:MI,partnerContent:YI,search:nE,sessionPreferences:cE,slidesUI:hE,status:Vk,transcriptPanel:CE,ui:bE,...yE}),{Provider:SE,dispatch:ys,store:Ov,useDispatch:ut,useSelector:he}=zx(LE),Bv="_course_token",J0=new URLSearchParams(window.location.hash.substr(1)),Dv=J0.get(Bv);Dv&&(J0.delete(Bv),window.history.replaceState(null,null,`#${J0.toString()}`));const TE=e=>{const{data:{method:t,id:s,jsonrpc:o}}=e;if(o==="2.0"&&t==="getBearerToken"){const r=Dv||xt();navigator.serviceWorker.ready.then(a=>{a.active.postMessage({id:s,jsonrpc:"2.0",method:t,result:{token:r}})})}};navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",TE);const Hv=(0,u.createContext)({});function kE(e,{type:t,message:s}){switch(t){case"polite":return{...e,politeMessage1:e.alternatePolite?s:"",politeMessage2:e.alternatePolite?"":s,alternatePolite:!e.alternatePolite};case"assertive":return{...e,assertiveMessage1:e.alternateAssertive?s:"",assertiveMessage2:e.alternateAssertive?"":s,alternateAssertive:!e.alternateAssertive};default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function ll({ariaLive:e,message:t}){return(0,n.jsx)("div",{"aria-atomic":"true","aria-live":e,"aria-relevant":"additions text",className:"visually-hidden-always",role:"log",children:t})}function NE({children:e}){const[{politeMessage1:t,politeMessage2:s,assertiveMessage1:o,assertiveMessage2:r},a]=(0,u.useReducer)(kE,{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,n.jsxs)(Hv.Provider,{value:i,children:[(0,n.jsx)(ll,{ariaLive:"polite",id:"polite-announcer1",message:t}),(0,n.jsx)(ll,{ariaLive:"polite",id:"polite-announcer2",message:s}),(0,n.jsx)(ll,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,n.jsx)(ll,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),e]})}function An(){return(0,u.useContext)(Hv)}var IE=f(25048),G=f.n(IE),qe=f(12140);const Fv={BLOCKS:"blocks",QUIZ:"quiz",SECTION:"section"},Vv=e=>e?.type===Fv.QUIZ,e1=e=>e?.type===Fv.QUIZ,t1=({locales:e,course:t,locale:s})=>!!(e?.find(a=>a.locale===s)?.rightToLeft||t?.experiments?.rtl),zv=(0,u.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function EE({children:e,currentLocale:t,setCurrentLocale:s}){const o=(0,u.useMemo)(()=>({currentLocale:t,setCurrentLocale:s}),[t,s]);return(0,n.jsx)(zv.Provider,{value:o,children:e})}function ct(){return(0,u.useContext)(zv)}function jE(e){const t=s=>{const o=ct();return(0,n.jsx)(e,{...s,...o})};return t.displayName=`withCurrentLocale(${e.displayName||e.name})`,t}const yi=(e,t,s)=>(0,Xt.uW)(e)&&t?s?.[t]?.[e.l10nId]:void 0,dl=(e,t,s,o)=>{if(!(0,Xt.uW)(e))return e;if(!t||!s||!o)return;const r=yi(e,t,o);if(r!==void 0)return r;const a=yi(e,s,o);if(a!==void 0)return a;const i=$v(e,o);return i.length>0?i[0].value:void 0},s1=new WeakMap,n1=(e,t)=>{if(e&&t in e)return e[t]},o1=(e,t,s,o)=>{if(!t||!s||!o||!e)return e;if(typeof e=="object"){const d=s1.get(e)?.get(o);if(d&&d.locale===t&&d.defaultLocale===s)return d.result}const r=o[t],a=o[s],i=Object.values(o).filter(d=>d!==r&&d!==a);function c(d){let h;if(h=n1(r,d),h!==void 0||(h=n1(a,d),h!==void 0))return h;for(const m of i)if(h=n1(m,d),h!==void 0)return h}let l;if(!Array.isArray(e)&&typeof e=="object"&&typeof e.l10nId=="string")l=c(e.l10nId);else{l=structuredClone(e);for(const{mutate:d,l10nId:h}of(0,_r.pr)(l))d(c(h))}if(typeof e=="object"){let d=s1.get(e);d||(d=new WeakMap,s1.set(e,d)),d.set(o,{locale:t,defaultLocale:s,result:l})}return l},D1e=(e,t,s)=>o1(e,t,oa(s),Eo(s)),H1e=(e,t,s)=>dl(e,t,oa(s),Eo(s)),F1e=(e,t,s)=>yi(e,t,Eo(s));function V1e(e,t){return t?.find(s=>s.locale===e)}function wE(e){return e?.l10n?.locales??[]}function oa(e){return e?.l10n?.defaultLocale}function AE(e,t){const s=oa(t);return!!(e&&s&&e!==s)}function Eo(e){return e?.l10n?.translations??{}}function $v(e,t){return(0,Xt.uW)(e)?Object.keys(t).flatMap(s=>{const o=yi(e,s,t);return o?{locale:s,value:o}:[]}):[]}const z1e=(e,t)=>$v(e,Eo(t)),wt=e=>(0,Xt.uW)(e)?e.l10nId:void 0;function RE(e){return e?.l10n?.localeSelectorOptions}function r1(e){return e?.l10n?.languageCodeMetadata}function PE(e){return e?.l10n?.showLocaleSelector}function a1(e,t="#ffffff"){if(e==null||e.trim()==="")return null;const s=qr(e);if(s==null)return null;const o=s.alpha??1,r=qr(t),a=o<1&&r!=null?(0,w0.jh)(r,{...s,alpha:1},o,{space:"srgb"}):s;return(0,BT.A)(a,"srgb")}function ME(e,t){const s=a1(t);if(s==null)return 1;const o=a1(e,(0,A0.A)(s));return o==null?1:(0,MT.A)(o,s,"WCAG21")}const Rs=e=>e==null?ye.DARK:ME("#fff",e)>=4.5?ye.LIGHT:ye.DARK,i1=(0,u.createContext)(null);i1.displayName="CourseContext";function OE({children:e,course:t,courseProgress:s,labels:o,labelsLocale:r,lessons:a,partnerContent:i,search:c}){const l=(0,u.useMemo)(()=>({course:t,courseProgress:s,labels:o,labelsLocale:r,lessons:a,partnerContent:i,search:c}),[t,s,o,r,a,i,c]);return(0,n.jsx)(i1.Provider,{value:l,children:e})}function ra(){return(0,u.useContext)(i1)}function ze(){return ra()?.course}function _v(){return Oe(ze()?.title)}function At(){const{labels:e}=ra()??{};return e}function c1(){return ra().search}function Uv(e){const o=ze()?.theme?.accentContrast;return typeof o!="string"?ye.LIGHT:o===ye.AUTO?Rs(e):o}function Li(){const e=ze();return e?.theme?.colorAccent??e?.color}function l1(){const{currentLocale:e}=ct(),t=ul(),s=ze();return s?t1({course:s,locales:t,locale:e}):!1}function $1e(){const{lessons:e}=ra();return e}const Si=(0,u.createContext)({l10n:null});Si.displayName="TranslationContext";const d1=(0,u.createContext)({l10n:null});d1.displayName="LocalesContext";function Rt(){const{currentLocale:e}=ct(),t=dn(),s=hl();return(0,u.useCallback)(o=>dl(o,e,t,s),[e,t,s])}function Gv(){const{currentLocale:e}=ct(),t=dn(),s=hl();return(0,u.useCallback)(o=>o1(o,e,t,s),[e,t,s])}function Oe(e,t){const{currentLocale:s}=ct(),o=dn();let r=hl();const a=DE();return a&&Object.keys(a).length&&s&&r&&(r={...r,[s]:a}),dl(e,t??s,o,r)}function BE(e){const{currentLocale:t}=ct(),s=dn(),o=hl();return(0,u.useMemo)(()=>o1(e,t,s,o),[t,s,e,o])}function aa(){return(0,u.use)(d1)}function ul(){const e=aa();return wE(e)}function dn(){const e=aa();return oa(e)}function hl(){const e=(0,u.use)(Si);return Eo(e)}function DE(){return ra()?.search?.translations}function HE(){const e=(0,u.use)(Si);return PE(e)}function FE(){const e=(0,u.use)(Si);return RE(e)}const VE=()=>(0,qe.Mz)(t=>t,(t,s)=>s,(t,s,o)=>oa(o),(t,s,o)=>Eo(o),dl);function ht(e){const{currentLocale:t}=ct(),s=(0,u.useMemo)(()=>VE(),[]);return he(o=>s(e,t,o))}const zE=(0,qe.Mz)(e=>e,(e,t)=>Eo(t),(e,t)=>t?.[e]);function Wv(){const{currentLocale:e}=ct();return he(t=>zE(e,t))}const $E=(0,qe.Mz)(e=>e.course?.title,oa,Eo,(e,t,s)=>{if(e)return yi(e,t,s)});function _E(){return he($E)}function ml(){return he(e=>e.l10n)}var UE=f(82920);function Kv(e){return e?.search}function jo(){return he(Kv)}function GE(e){return Kv(e)?.activeLessons}const WE=(0,qe.Mz)(GE,e=>e?e.reduce((t,s)=>(s?.id&&(t[s.id]=s),t),{}):{});function KE(){return(0,qe.Mz)(e=>e,(e,t)=>WE(t),(e,t)=>t?.[e])}function QE(e){const t=UE.useMemo(()=>KE(),[]);return he(s=>t(e,s))}function Ps(e){return e.course}function re(){return he(Ps)}function ZE(e){return Ps(e)?.navigationMode}function u1(e){return Ps(e)?.trackingQuizId}function ia(){const e=re();return ht(e?.title)}function YE(e){return Ps(e)?.type}function XE(){return he(e=>YE(e))}function h1(e){const t=Ps(e);return To(t)}function Qv(){return he(h1)}function qE(e){const t=Ps(e);return C0(t)}function JE(){return he(qE)}const ej=e=>e.filter(t=>t.type!=="section");function Ti(){const e=re(),t=jo();return(0,u.useMemo)(()=>t?.active&&t?.lessons?.length>0?{...e,lessons:t.lessons,lessonsOnly:ej(t.lessons)}:e,[e,t?.active,t?.lessons])}const tj=(0,qe.Mz)(Ps,e=>(e?.lessons??[]).filter(Vv).some(t=>t.settings?.skipLessonsIfPassed&&t.settings?.skipToLessonId));function m1(e){const t=ZE(e);return tj(e)?Io.RESTRICTED:t??Io.FREE}function pl(){return he(m1)}function sj(e){return Ps(e)?.theme?.buttonNavigationStyle??Xe.buttonNavigationStyle}function nj(){return he(sj)}function p1(){const e=re();return e?.selectedAuthorId==="none"||!("authors"in(e??{}))?null:e?.selectedAuthorId?e?.authors?.find(t=>t.id===e.selectedAuthorId):e?.authors?.find(t=>t.id===e?.author)}function Zv(){return re()?.theme?.coverImageColor??it.DARK}function Yv(){return re()?.lessonsOnly?.[0]}function oj(){const e=re(),{selectedAuthorId:t}=e?.lessons?.[0]??{};return t==="none"||!t?null:e?.authors?.find(s=>s.id===t)??null}function un(){const{currentLocale:e}=ct(),t=ul(),s=re();return s?t1({course:s,locales:t,locale:e}):!1}function Xv(){const t=re()?.lessons;return(0,u.useMemo)(()=>Array.isArray(t)?t.filter(({type:s})=>s!=="section").length:0,[t])}class rj extends u.Component{static defaultProps={scope:"error-boundary"};constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return console.error(t),{hasError:!0,error:t}}render(){const{hasError:t,error:s}=this.state,{FallbackComponent:o}=this.props;return t||s?(0,n.jsx)(o,{}):this.props.children}}const aj=rj;var ij=f(40889),cj=f.n(ij),lj=f(3199),dj=f.n(lj),uj=f(13840),Ks=f.n(uj),hj=f(37754),qv=f.n(hj),mj=f(27315),ca=f.n(mj),pj=f(97491),is=f.n(pj),fj=f(80690),ki=f.n(fj),gj=f(85434),vj=f.n(gj);const f1=({course:e,courseProgress:t})=>!e||!t?{}:e.lessons.filter(r=>!!r.settings?.passToContinue).filter(r=>!t.lessons[String(r.id)]?.passed)[0]??{},Cj=({courseProgress:e,lesson:t,restrictingQuiz:s})=>{if(!e)return{};const o=c=>e.lessons[String(c)]?.index,r=o(t.id),a="id"in s?s.id:void 0,i=a!=null?o(a):void 0;return r!==void 0&&i!==void 0&&r>i?s:{}};var xj=f(94209),Jv=f.n(xj),bj=f(26507),g1=f.n(bj);const wo=Ee("CDN_USER_CONTENT_URI"),e3=Ee("CDN_URI"),Ni=Qr()("useCrushedKey"),hn=Ee("IMAGES_URI"),yj=g1()(/-stock[-_]image.jpg/),v1=Ee("RBC_IMAGES_URI"),Lj=Ee("ASSETS_URI"),Sj=g1()(new RegExp(`^${wo}/review`)),t3=Ee("CDN_US_URI"),Ii=e=>{const{crushedKey:t,key:s,useCrushedKey:o,src:r}=e;return Ni(e)?Ct(o&&t?t:s):Ct(r)},s3=(e,t)=>{if(!e||!e.key)return"";const{crushedKey:s,key:o,useCrushedKey:r}=e;return hn?Ni(e)&&r&&s?`${hn}/${t}/${s}`:`${hn}/${t}/${o}`:Ii(e)},_1e=e=>`${wo}/${e}`,U1e=e=>!e||!e.key?"":`${v1}/b:fff,f:jpg,s:cover,w:550,h:296/${e.key}`,G1e=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o}=e;return Ni(e)&&o?t?`${hn}/f:jpg,b:fff,s:cover,w:340/${t}`:"":`${hn}/f:jpg,b:fff,s:cover,w:340/${s}`},C1=e=>s3(e,"f:png,a:retain,s:cover,t:true,w:340"),W1e=e=>s3(e?{...e,src:e.src??e.key}:void 0,"a:retain,f:png,s:contain,w:64,h:64"),mt=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o,sourcedFrom:r}=e;if(!hn)return Ii(e);const a=r==="AI",i=r==="LIBRARY",c=r==="EXTRACTED";return yj(s)||a||i?`${hn}/f:jpg,a:retain,b:fff,w:1680,q:90/${s}`:Ni(e)?o&&t?`${wo}/${t}`:`${wo}/${s}`:c&&e.src||Sj(e.src)?e.src:`${hn}/f:jpg|png,a:retain,b:fff/${s}`},K1e=(e,t="src")=>{const{key:s,src:o,thumbnail:r,thumbnailKey:a}=e,i=wo?`${wo}/${s}`:Ii({key:s,src:o}),c=wo?`${wo}/${a}`:Ii({key:a,src:r});return t==="src"?i:c},Q1e=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o}=e;return Ni(e)&&o&&t?`${hn}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${t}`:`${hn}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${s}`},la=({height:e,imageKey:t,width:s})=>{if(v1){const o=encodeURIComponent(t);return`${v1}/b:fff,f:jpg,s:cover,w:${s},h:${e}/${o}`}return Ct(`partnerContent/${t}`)},Tj=()=>{const e=Lj||hn,t="NBIC_logo_light_bulb.png";return e?`${e}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${t}`:Ct(`partnerContent/${t}`)},kj=()=>{const e="NBIC_logo_blue.svg";return e3?`${e3}/assets/rise/assets/partner-content/${e}`:Ct(`partnerContent/${e}`)},Nj=e=>{const{key:t,src:s}=e;return t3?`${t3}/${t}`:Ii({key:t,src:s})};var Ij=f(17945);const fl=({alpha:e,color:t,url:s})=>{const o=(0,Ij.A)(t,e);return{backgroundImage:`linear-gradient(0deg,${o},${o}), url("${s}")`}};var x1,b1;const Y1e=Yr()(He()("sidebarMode","hidden")),da=({alpha:e,color:t=void 0,hasOverlay:s=!0,media:o={}})=>{const{image:r={}}=o,{key:a,src:i}=r,c=a?mt(r):i,l=t===it.LIGHT?"#fff":"#000";return c?s?fl({alpha:e/100,color:l,url:c}):{backgroundImage:`url("${c}")`}:null},Ao=e=>[dr.DARK,dr.DARK_ACCENT,dr.DARK_IMAGE,ur.DARK,to.DARK,to.DARK_IMAGE].includes(e),Ej=dt()(Ae()("lessons"),bs()),jj=He()("navigationMode",Io.RESTRICTED),wj=Yr()(He()("sidebarMode",Jr.HIDDEN)),Aj=He()("navigationType",lr.SIDEBAR),n3=He()("navigationType",lr.COMPACT),y1=ss()(Jv()(at(),"navigation"),wj,He()("navigation",!0)),Rj=({course:e,search:t,isMobile:s})=>To(e)?!1:(Aj(e)||n3(e)&&!!s)&&y1(e)||t.active,Pj=({course:e,isMobile:t})=>n3(e)&&y1(e)&&!t,Ei=e=>[dr.DARK_IMAGE,dr.LIGHT_IMAGE,ur.DARK_IMAGE,ur.IMAGE,to.DARK_IMAGE,to.LIGHT_IMAGE].includes(e),Mj=e=>[to.DARK,to.LIGHT].includes(e),Oj=(e,t)=>{if(e===nl.RISE_CLASSIC||e===nl.HORIZON)switch(t){case ce.SPLIT_LEFT_IMAGE:case ce.SPLIT_RIGHT_IMAGE:case ce.TWO_THIRDS_LEFT_IMAGE:case ce.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(e===nl.APEX)switch(t){case ce.SPLIT_LEFT_IMAGE:case ce.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},X1e=(e,t)=>{switch(e){case x1.RISE_CLASSIC:case x1.APEX:case x1.HORIZON:return t===b1.CENTERED_OVERLAY||t===b1.LEFT_OVERLAY||t===b1.IMAGE;default:return!1}},o3=e=>e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1,mn=e=>!o3(e),r3=me()(kn()(fr),Ae()("lessonsOnly")),Bj=({course:e,courseProgress:t})=>Ks()(Dj(t))(e.lessonsOnly),Dj=e=>t=>ki()(Yt()(["lessons",t.id,"isComplete"],e)),Hj=({lesson:e,currentLesson:t})=>e&&He()("id",e.id,t),Fj=({course:e,lesson:t})=>He()("id",t.id,bs()(Ae()("lessonsOnly",e))),Vj=({course:e,lesson:t})=>He()("id",t.id,So()(Ae()("lessonsOnly",e))),a3=me()(ki(),He()("type","section")),zj=({lesson:e,courseProgress:t})=>_e()(!1,["lessons",e.id,"isComplete"],t),L1=({course:e,courseProgress:t,lesson:s,restrictingQuiz:o})=>{const r=Cj({courseProgress:t,lesson:s,restrictingQuiz:o}),a=jj(e),i=a||mn(r),c=Bj({course:e,courseProgress:t}),l=a3(s)&&ki()(zj({lesson:s,courseProgress:t}));return{isRestricted:i&&l&&ki()(Hj({lesson:s,currentLesson:c})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:c}},$j=({labels:e,restrictions:t})=>{const{lessonRestricted:s,quizRequirePassingScore:o}=e,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:i}=t,c=i&&dj()("id",a,i);return!r||r&&c?a.title?o.replace("quiz",`"${a.title}"`):o:s},i3=cj()(e=>qv()(vj()(En()(["id"],e||{})))),_j=({course:e,lesson:t})=>me()(ca(),i3(t),r3)(e),c3=({course:e,lesson:t})=>!Vj({course:e,lesson:t})&&e.lessonsOnly[ca()(i3(t,e.lessonsOnly))],Uj=me()(is(),r3),Gj=e=>typeof e=="object"&&Object.keys(e).length>0,Wj=e=>e==null||e===!1,Kj=e=>Wj(e?.isComplete),Qj=e=>e.find(([,t])=>Kj(t)),Zj=e=>{const t=Object.entries(e),[s]=Qj(t)||[];return s},Yj=(e,t)=>Gj(e)?Zj(e):t,l3=(e,t,s)=>{if(!s)return{outOfAttempts:!1,quizPassed:!0};const o=Yt()(["lessons",s],e),r=_e()(-1,["settings","retryCount"],t),a=_e()(0,["retryAttempts"],o),i=Yt()(["passed"],o);return{outOfAttempts:Yt()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:i}};function S1(e){return e.courseProgress}function Xj(e){return e.courseProgress?.currentLesson??""}function qj(e){return e.courseProgress?.percentComplete??0}const d3=(0,qe.Mz)(u1,Ps,(e,t)=>{const{lessons:s}=t;return Array.isArray(s)?s.find(({id:o,type:r})=>r==="quiz"&&o===e)??null:null}),Jj=(0,qe.Mz)(S1,d3,(e,t)=>t?l3(e,t,t.id):null);function u3(e){const t=S1(e);return Y2()?t?.percentComplete===100:!!Z2()}function ua(e){return e.courseProgress?.lessons}function ji(e,t){if(e!=null)return ua(t)?.[e]}function Ro(){return he(S1)}function gl(){return he(Xj)}function ha(){return he(qj)}function ew(){return he(d3)}function T1(){return he(Jj)??{outOfAttempts:!1,quizPassed:!1}}function tw(){return he(u3)}function Po(e){return he(t=>ji(e,t))}function vl(e){const t=Po(e);if(t?.type==="quiz")return t}const sw=(0,qe.Mz)(ua,e=>e?Object.values(e).some(t=>t.type==="quiz"&&t.activeIndex!==void 0&&!t.isComplete):!1);function nw(){return he(sw)}const h3=e=>e>9999?1:e,ow=({current:e,restart:t,restartValue:s})=>{const o=Number(s),r=h3(Number.isInteger(o)&&o>0?o:1),a=t?r:e+1;return h3(a)},rw=(e,t)=>{if(t.family==="divider"&&t.variant==="numbered divider"){const s=t.settings??{},o=ow({current:e.currentNumber,restart:s.restartNumbering,restartValue:s.restartNumberingValue});return{map:{...e.map,[t.id]:o},currentNumber:o}}return e},m3=e=>sN(e),Cl=e=>nN(e),aw=e=>oN(e),iw=e=>!!Lg(e);function ma(){return(0,qe.Mz)(e=>e,(e,t)=>v3(t),(e,t)=>t[String(e)])}function Vt(e){const t=(0,u.useMemo)(()=>ma(),[]);return he(s=>t(e,s))}function pa(e){const t=Vt(e);return ht(t?.title)}function cw(){const e=ma();return(0,qe.Mz)(e,t=>m3(t))}function p3(){const e=xl();return(0,qe.Mz)(t=>t,(t,s)=>e(s),(t,s)=>m1(s),(t,s)=>fw(s),(t,s)=>gw(s),(t,s)=>ua(s),(t,s,o,r,a,i)=>{const c=i?.[t],l=i?.[s];if(t!==s&&!c?.isComplete&&c?.index>l?.index){const d=i?.[r?.id]?.index??1/0,h=o==="restricted"?l?.index??1/0:i?.[a?.id]?.index??1/0;if(c?.index>Math.min(d,h))return h<d?o==="restricted"?{type:ea.ORDER}:{type:ea.KNOWLEDGE_CHECK}:{type:ea.QUIZ,data:r.title}}return null})}function wi(e){const t=(0,u.useMemo)(()=>p3(),[]);return he(s=>t(e,s))}function xl(){return(0,qe.Mz)(ua,u1,(e,t)=>Yj(e,t))}function lw(){const e=(0,u.useMemo)(()=>xl(),[]);return he(t=>e(t))}function dw(){const e=xl();return(0,qe.Mz)(e,v3,(t,s)=>{if(!(!t||!s[t]))return s[String(t)]})}function uw(){const e=ma();return(0,qe.Mz)(e,ji,(t,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&(!r||Cl(t)&&!a)})}function f3(e){const t=(0,u.useMemo)(()=>uw(),[]);return he(s=>t(e,s))}function hw(){const e=ma();return(0,qe.Mz)(e,ji,(t,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&r&&(!Cl(t)||a)})}function g3(e){const t=(0,u.useMemo)(()=>hw(),[]);return he(s=>t(e,s))}const k1=(0,qe.Mz)(Ps,e=>e?.lessons??[]),v3=(0,qe.Mz)(k1,e=>e.reduce((t,s)=>(s?.id&&(t[s.id]=s),t),{})),fa=(0,qe.Mz)(Ps,e=>e?.lessonsOnly??[]),mw=(0,qe.Mz)(fa,e=>e.reduce((t,s,o)=>(t[s.id]=o+1,t),{}));function C3(){return he(e=>mw(e))}const N1=(0,qe.Mz)(fa,e=>e.filter(t=>fr(t))),x3=(0,qe.Mz)(N1,e=>e.length),pw=(0,qe.Mz)(k1,e=>e.reduce((t,s)=>{const o=t[t.length-1];return m3(s)||o==null?t.push([s.id]):o.push(s.id),t},[])),fw=(0,qe.Mz)(fa,ua,(e,t)=>e.find(s=>Cl(s)&&aw(s)&&!t?.[s.id]?.isComplete)),gw=(0,qe.Mz)(fa,ua,(e,t)=>e.find(s=>!Cl(s)&&iw(s)&&!t?.[s.id]?.isComplete));function bl(e){const t=(0,u.useMemo)(cw,[]);return he(s=>t(e[0],s))}function I1(e){const t=(0,u.useMemo)(()=>ma(),[]),s=(0,u.useMemo)(()=>p3(),[]),o=pl();return he(r=>{const a=Ps(r),i=t(e,r),c=ji(e,r),d=s(e,r)?.type!=null;return o!==Io.RESTRICTED&&a?.markComplete&&!d&&i?.type!==D0.QUIZ&&!0})}const yl=(e,t)=>t.findIndex(s=>s.id===e);function b3(){return(0,qe.Mz)(e=>e,(e,t)=>fa(t),(e,t)=>{if(e==="progress-summary")return t[t.length-1];const o=yl(e,t)-1;return t[o]})}function y3(){return(0,qe.Mz)(e=>e,(e,t)=>fa(t),(e,t)=>{const o=yl(e,t)+1;return t[o]})}function L3(e){return(0,qe.Mz)((s,o)=>e(s,o),(s,o)=>N1(o),(s,o)=>yl(s?.id||"",o)+1)}function vw(){return L3(y3())}function Cw(){return L3(b3())}function xw(e){const t=(0,u.useMemo)(()=>y3(),[]);return he(s=>t(String(e),s))}function bw(e){const t=(0,u.useMemo)(()=>vw(),[]);return he(s=>t(String(e),s))}function yw(e){return he(t=>{if(!e)return 0;const s=N1(t);return yl(String(e),s)+1})}function E1(){return he(x3)}function Ll(){return he(e=>pw(e))}function Lw(){const e=xl();return(0,qe.Mz)(u3,e,u1,(t,s,o)=>{const r=!!s,a=o!=null;return t||!r&&!a})}function Sw(){const e=(0,u.useMemo)(()=>Lw(),[]);return he(t=>e(t))}function Tw(){const e=re(),t=Ro();return(0,u.useMemo)(()=>{if(!e||!t||!e.lessonsOnly)return[];const s=f1({course:e,courseProgress:t});return e.lessonsOnly.filter(o=>{const{isRestricted:r}=L1({course:e,courseProgress:t,lesson:o,restrictingQuiz:s});return r}).map(o=>o.id)},[e,t])}const kw=e=>e?.items?.reduce?.(rw,{map:{},currentNumber:0})?.map||{},Nw=e=>{const t=(0,u.useMemo)(()=>ma(),[]),s=he(o=>t(e,o));return(0,u.useMemo)(()=>kw(s),[s])},Iw=({blockId:e,lessonId:t})=>Nw(t)?.[e];function Ew(e){const s=re()?.lessonsOnly??[],o=s.findIndex(a=>a.id===e);return(o>=0?s[o+1]:void 0)?.id??null}function j1(e){const t=Vt(e),s=re(),o=t?.settings,r=s?.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,skipLessonsOptional:o?.skipLessonsOptional??!0,skipToLessonId:i}},[o,r])}function jw(){return he(k1)}function ww(e){const t=(0,u.useMemo)(()=>b3(),[]);return he(s=>t(e,s))}function Aw(e){const t=(0,u.useMemo)(()=>Cw(),[]);return he(s=>t(e,s))}function Rw(){const e=(0,u.useMemo)(()=>dw(),[]);return he(e)}function S3(){const e=Rw();return ht(e?.title)}function Ms(){return(0,je.RQ)("/lessons/:currentLessonId")?.params?.currentLessonId}function Pw(e){return e.courseLabels}function Mw(){return he(Pw)}function Ow(e,t){return t?.l10n?.localeLabelSets?.[e]?.labels||t?.courseLabels?.labels}function xe(){const{currentLocale:e}=ct();return he(t=>Ow(e,t))}function Bw({isCourseComplete:e,percentCourseComplete:t}){const s=xe()??{},{courseResume:o,courseStart:r,processStartAgain:a}=s;return{courseCTALabel:e?a:t>0?o:r}}function w1(){const{pathname:e}=new URL(window.location.href);return e.split("/")[1]==="review"}function Dw(){const e=window.location.hash.slice(1),t=new URLSearchParams(e.split("?")[1]??"");return w1()&&!!t.get("locale")}const Hw=(0,u.lazy)(()=>f.e("webpack_container_remote_learn_distribution_frontend_learn_ai-learner-popout").then(f.t.bind(f,68789,23))),Fw=()=>{const{currentLocale:e}=ct(),t=BE(re()),s=un(),o=nw(),r=gl(),a=Vt(Ms()),i=xe(),c=window,l=c?.growth?.getSubscription?.()?.id||t?.tenantId||void 0,d=c?.growth?.getUser?.()?.id||(t?`learner_${t.author}`:void 0),h=Tw(),m=async()=>{try{await di()}catch{}},p=t?.aiTutorConfig?.image?.media?.image,v=mt(p)||null,C=ht(t?.aiTutorConfig?.name)??null,[g,x]=(0,u.useState)(!1),S=`rise_ai_tutor_nudge_${d}`,L=(0,u.useCallback)(()=>{localStorage.setItem(S,"1")},[S]);(0,u.useEffect)(()=>{if(localStorage.getItem(S))return;let T=null;const k=setTimeout(()=>{const N=document.getElementById("page-wrap");if(!N)return;const I=()=>{if(localStorage.getItem(S)){N.removeEventListener("scroll",I);return}const{scrollTop:w,scrollHeight:R,clientHeight:E}=N,j=R-E,O=j>0?w/j:0;j<=0||O>=.75&&(localStorage.setItem(S,"1"),x(!0),N.removeEventListener("scroll",I))};N.addEventListener("scroll",I,{passive:!0}),T=()=>N.removeEventListener("scroll",I),I()},0);return()=>{clearTimeout(k),T?.()}},[d,S,r]);const b=o||a?.type==="quiz",y=b?i?.aiTutorDisabledWhileQuiz??"AI Tutor is disabled while a quiz is in progress.":void 0;return(0,n.jsx)(Hw,{aiTutorImageUrl:v,aiTutorName:C,apiKey:t.aiLearnerCourseApiKey??null,course:t,currentLessonId:r||null,currentLocale:e,disabled:b,disabledReason:y,labels:i,onOpen:L,resetSession:m,resolveAssetUrl:J2,restrictedLessonIds:h,rtl:s,scrollTriggered:g,subscriptionId:l,userId:d})},Vw=()=>{const e=re();return!w1()&&!!e?.settings?.aiTutorEnabled?(0,n.jsx)(aj,{FallbackComponent:()=>null,children:(0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(Fw,{})})}):null},T3=(0,u.createContext)(null);function zw({appType:e,children:t}){return(0,n.jsx)(T3.Provider,{value:e,children:t})}function $w(){const e=(0,u.useContext)(T3);if(e==null)throw new Error("useAppType must be used within an AppTypeProvider");return e}function A1(){return $w()==="author"}const R1=Object.assign((0,u.createContext)(void 0),{displayName:"BlockContext"});function P1({block:e,children:t}){const[s,o]=(0,u.useState)(e);return e!=null&&e!==s&&o(e),(0,n.jsx)(R1.Provider,{value:s,children:(0,n.jsx)(H1,{...s?.settings,children:t})})}const q1e=R1.Consumer;function Pt(){return(0,u.useContext)(R1)}function Sl(e){return function(s){const o=Pt();return(0,n.jsx)(e,{...s,block:o})}}const _w={text:{backgroundType:"blockTextBackgroundType",backgroundColor:"blockTextBackgroundColor",backgroundColorContrast:"blockTextBackgroundColorContrast",paddingStart:"blockTextPaddingStart",paddingEnd:"blockTextPaddingEnd",bodyFontSize:"blockTextBodyFontSize",headingFontSize:"blockTextHeadingFontSize",subheadingFontSize:"blockTextSubheadingFontSize"},continue:{completionType:"blockContinueCompletionType",label:"blockContinueLabel",completeHint:"blockContinueCompleteHint"}},J1e=null;function Uw(e,t){if(!e||!t)return null;const s=_w[e];if(!s)return null;const o=r=>r?t[r]:void 0;return{backgroundType:o(s.backgroundType),backgroundColor:o(s.backgroundColor),backgroundColorContrast:o(s.backgroundColorContrast),paddingStart:o(s.paddingStart),paddingEnd:o(s.paddingEnd),bodyFontSize:o(s.bodyFontSize),headingFontSize:o(s.headingFontSize),subheadingFontSize:o(s.subheadingFontSize),completionType:o(s.completionType),label:o(s.label),completeHint:o(s.completeHint)}}function Mo(){const e=Pt(),t=ze(),s=e?.family,o=t?.theme;return(0,u.useMemo)(()=>Uw(s,o),[s,o])}var Gw=f(20348),Ww=f.n(Gw);const Rn=(e,t)=>{const s=qr(t);return s==null?null:(0,A0.A)((0,w0.jh)(s,qr("#000000"),e),{format:"hex",collapse:!1})};function Kw(e){if(e==null)return 0;const t=a1(e);return t==null?0:(0,OT.J1)(t)}const pt=cn({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),ga=e=>{const t=Kw(e);return t<=.01?pt.NEAR_BLACK:t<=.05?pt.DARK:t<=.35?pt.MED:pt.LIGHT},Qw=e=>{switch(ga(e)){case pt.NEAR_BLACK:return an(.1,e);case pt.DARK:return Rn(.4,e);case pt.MED:return Rn(.2,e);case pt.LIGHT:return an(.3,e)}};var Zw,Yw,Xw,M1,k3,Oo;const N3=2,ehe=(e,t,s)=>e??t??s,I3=(e,t,s,o)=>e??t??s??o,Qs=$s()({WHITE:null,TRANSPARENT:null}),qw={markerColorContrast:ye.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:ye.AUTO},Jw={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 eA(e,t){return Jw[e]?.includes(t)??!1}const tA={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{process:"#f5f5f5",sorting:"#f5f5f5",timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function O1(e,t){const s=tA[e]?.[t];return s==null?{}:{backgroundColor:s,backgroundType:ne.COLOR}}const sA=null;function the(e,t){return sA[e]?.includes(t)??!1?.1:.5}function nA(e){switch(e.backgroundType){case ne.COLOR:return e.backgroundColor;case ne.ACCENT:return e.courseColor;case ne.TINT:return R0(e.courseColor);case ne.LIGHT:return"#ffffff";case ne.GRAY:return"#fafafa";case ne.DARK:return"#303030";case ne.BLACK:return"#000000"}}const oA={multimedia:{embed(e){return{cardMode:e.showBorder===!1?Qs.TRANSPARENT:Qs.WHITE}}}};function rA(e,t,s){return aA(e,t,s)}function aA(e,t,s){const o=O1(e,t);if(s.v==null||s.v<N3){s=iA(s);const l=o.backgroundColor,d=s.backgroundColor?.toLowerCase(),h=l!=null&&d===l.toLowerCase(),m=l==null&&d==="#ffffff";d&&(h||m)&&(s=Ww()("backgroundColor",s))}const r=oA[e]?.[t]?.(s),a=s.backgroundColor&&s.backgroundType==null?{backgroundType:ne.COLOR}:{};return[{accentColor:null},qw,r,s,a,{v:N3}].reduce((l,d)=>d==null?l:{...l,...N0()(o3,d)},{})}function iA(e){return{...e,backgroundType:null,cardMode:null,v:1}}const cA=null;function she(e,t){return!cA[e]?.includes(t)}const lA=null;function nhe(e,t){return!lA[e]?.includes(t)}function dA(e){return e===Xw.LIGHT?Oo.LIGHT:Oo.DARK}function uA(e,t){if(t===M1.AUTO){if(!e)return Oo.DARK;const s=Zw(e);return Yw(s)===M1.DARK?Oo.DARK:Oo.LIGHT}else return t===M1.LIGHT?Oo.LIGHT:Oo.DARK}function ohe(e,t,s,o,r){const a=e?.backgroundType;return e?.cardMode===Qs.TRANSPARENT?a===k3.IMAGE?dA(t?.overlayColor):o&&a!==k3.ACCENT?r:uA(s,e?.customBackgroundColorContrast):o?r:Oo.DARK}const hA=null;function rhe(e,t){return hA[e]?.includes(t)??!1}const mA=new RegExp(/^#([a-f0-9]{8}|[a-f0-9]{6}|[a-f0-9]{3})$/,"i"),B1=(e,t)=>t!=null&&mA.test(t)?t:e;function zt(e){const{contrast:t=ye.AUTO,backgroundColor:s="#fff"}=e,o=B1("#fff",s),r=Rs(o);return t===ye.DARK||t===ye.AUTO&&r===ye.DARK?Lt.DARK:Lt.LIGHT}const pA=e=>e.blockBackgroundType??e.familyBackgroundType??e.courseBackgroundType??e.blockTypeFallbackType??ne.LIGHT,fA=e=>e.effectiveBackgroundType===ne.COLOR?e.blockBackgroundColor||e.familyBackgroundColor||e.courseBackgroundColor||e.blockTypeFallbackColor||null:e.settingsBackgroundColor??null,gA=e=>e.blockCustomContrast??e.familyBackgroundColorContrast??e.courseBackgroundColorContrast??ye.AUTO,E3=e=>{const{family:t,variant:s,customBackgroundColorContrast:o}=e;return!o&&(t==="image"&&s!=="text aside"||t==="chart"||s==="sorting")},vA=e=>{const{backgroundType:t,backgroundColor:s,accentColor:o,customBackgroundColorContrast:r,accentContrast:a,family:i,variant:c}=e;if(!(t===ne.ACCENT||t===ne.COLOR))return null;const d=t===ne.ACCENT?o:s;let h;return t===ne.ACCENT?h=a:E3({family:i,variant:c,customBackgroundColorContrast:r})?h=Rs(s):h=r??ye.DARK,zt({backgroundColor:d??void 0,contrast:h})},CA=e=>vA(e)===Lt.LIGHT,xA=e=>{const t=e.blockBackgroundType!=null||e.familyBackgroundType!=null||e.courseBackgroundType!=null,s=e.blockCustomContrast!=null||e.familyBackgroundColorContrast!=null||e.courseBackgroundColorContrast!=null;return!t&&!s},bA=e=>{const{backgroundColor:t,family:s,variant:o,blockCustomContrast:r,familyBackgroundColorContrast:a,courseBackgroundColorContrast:i}=e,c=r??a??i??ye.AUTO,d=E3({family:s,variant:o,customBackgroundColorContrast:c})?Rs(t):c;return zt({backgroundColor:t??void 0,contrast:d})};var yA=f(81884),va=f.n(yA);const LA=e=>{const{effectiveBackgroundType:t,blockImage:s}=e;return t!==ne.IMAGE?null:s??null},SA=e=>og(e?.alt),TA=e=>{if(!e)return null;const{alpha:t,overlayColor:s=it.DARK}=e,o=mt(e),r=s===it.LIGHT?"#fff":"#000";return fl({alpha:t,color:r,url:o})};function Pn(){const e=ze(),t=Mo(),s=cs(),o=Pt(),r=o?O1(o.family,o.variant):{};return pA({blockBackgroundType:s?.backgroundType,familyBackgroundType:t?.backgroundType,courseBackgroundType:e?.theme?.blockBackgroundType,blockTypeFallbackType:r.backgroundType})}function kA(){return Pn().toLowerCase()}function Tl(){const e=Pt(),t=Pn(),s=e?.background,o=Oe(s?.media)?.image;return LA({effectiveBackgroundType:t,blockImage:o})}function NA(){const e=Tl();return SA(e)}function IA(){const e=Tl();return TA(e)}function EA(){const e=Tl();return!!e&&e?.overlayColor===it.LIGHT}function jA(){const e=Pt(),t=e?.family,s=e?.variant,o=eA(t,s),r=e?.settings?.cardMode??Qs.WHITE;return o?r.toLowerCase():null}function wA(){const e=Os(),t=e?ga(e):pt.LIGHT;return va()(t.toLowerCase())}function AA(){const e=Pt(),t=ze(),s=Mo();return gA({blockCustomContrast:e?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:s?.backgroundColorContrast,courseBackgroundColorContrast:t?.theme?.blockBackgroundColorContrast})}function RA(){const e=ze(),t=cs(),s=Os(),o=Pt(),r=Pn(),a=AA(),i=t.accentColor||e?.theme?.colorAccent;return CA({accentColor:i,accentContrast:e?.theme?.accentContrast,backgroundColor:s,backgroundType:r,customBackgroundColorContrast:a,family:o?.family,variant:o?.variant})}function PA(){const e=Pt(),t=ze(),s=Os(),o=Mo();return bA({backgroundColor:s,blockCustomContrast:e?.settings?.customBackgroundColorContrast,courseBackgroundColorContrast:t?.theme?.blockBackgroundColorContrast,family:e?.family,familyBackgroundColorContrast:o?.backgroundColorContrast,variant:e?.variant})}function MA(){const e=Pt(),t=ze(),s=Mo();return xA({blockBackgroundType:e?.settings?.backgroundType,familyBackgroundType:s?.backgroundType,courseBackgroundType:t?.theme?.blockBackgroundType,blockCustomContrast:e?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:s?.backgroundColorContrast,courseBackgroundColorContrast:t?.theme?.blockBackgroundColorContrast})}function OA(){const e=kA(),t=wA(),s=jA(),o=RA(),r=EA(),a=MA(),i=Os(),c=IA(),l=NA();return{backgroundColor:i,backgroundImageAlt:l,backgroundImageCss:c,backgroundTypeLowercase:e,cardMode:s,colorRange:t,isContrastLight:o,isLegacyBackground:a,isOverlayLight:r}}var j3=f(82920);const w3=Object.assign((0,u.createContext)({}),{displayName:"BlockSettingsContext"});function cs(){return(0,u.useContext)(w3)}const BA="settings";function D1(e){return t=>{const s=j3.forwardRef((o,r)=>{const a=cs(),i={...o,[e??BA]:a};return(0,n.jsx)(t,{...i,ref:r})});return s.displayName=`withBlockSettings(${t.displayName||t.name})`,s}}function Os(){const e=ze(),t=cs(),s=Mo(),o=Pn(),r=Pt();if(t==null)return null;const a=r?O1(r.family,r.variant):{},i=fA({effectiveBackgroundType:o,blockBackgroundColor:t.backgroundColor,familyBackgroundColor:s?.backgroundColor,courseBackgroundColor:e?.theme?.blockBackgroundColor,blockTypeFallbackColor:a.backgroundColor,settingsBackgroundColor:t.backgroundColor}),c={...t,backgroundType:o,backgroundColor:i};return nA(c)}const DA="backgroundColor";function HA(e){return t=>{const s=j3.forwardRef((o,r)=>{const a=Os(),i={...o,[e??DA]:a};return(0,n.jsx)(t,{ref:r,...i})});return s.displayName=`withBackgroundColor(${t.displayName||t.name})`,s}}function H1({children:e,...t}){const s=Pt(),o=cs(),r=Li(),a=(0,u.useMemo)(()=>{const i=s==null?t:rA(s.family,s.variant,t);return{courseColor:r,...o,...i}},[s,t,r,o]);return(0,n.jsx)(w3.Provider,{value:a,children:e})}const Mn={get isInstantLink(){return!!window.InstantLinks?.publicId}};var FA=f(46505);const z=(0,FA.setup)({el:"__",mod:"--",modValue:"-"});var kl=f(82920);const Tt=z("curtain"),VA={curtainLoading:"Your content is loading.",curtainOffline:"Your computer is offline.",curtainOfflineReconnecting:"Attempting to reconnect\u2026",curtainSessionTimedOut:"Your session has timed out.",curtainSessionTimedOutRefresh:"Refresh",curtainSessionTimedOutRestart:"Click refresh to restart your session.",curtainSomethingWrong:"Something went wrong.",curtainSomethingWrongRefresh:"Refresh",curtainSomethingWrongTryAgain:"Click to refresh and try again."},zA=({labels:e,loadingText:t,showHeader:s,status:o})=>{const r={...VA,...e},[a,i]=kl.useState(!1),c=()=>i(!0),l=kl.useRef(null);return kl.useEffect(()=>(l.current=setTimeout(c,1e4),()=>{l.current&&clearTimeout(l.current)}),[]),kl.useEffect(()=>{if(o==="error"){const d=new Error("There was a socket connection error. The renderReconnect curtain was displayed");mL.yf.logger.info(d.message,d)}},[o]),o==="fatalError"?(0,n.jsx)(_A,{labelCurtainSomethingWrong:r.curtainSomethingWrong,labelCurtainSomethingWrongRefresh:r.curtainSomethingWrongRefresh,labelCurtainSomethingWrongTryAgain:r.curtainSomethingWrongTryAgain,showHeader:s}):o==="error"&&a?(0,n.jsx)(GA,{labelCurtainSessionTimedOut:r.curtainSessionTimedOut,labelCurtainSessionTimedOutRefresh:r.curtainSessionTimedOutRefresh,labelCurtainSessionTimedOutRestart:r.curtainSessionTimedOutRestart,showHeader:s}):o==="error"?(0,n.jsx)(UA,{labelCurtainOffline:r.curtainOffline,labelCurtainOfflineReconnecting:r.curtainOfflineReconnecting,showHeader:s}):(0,n.jsx)($A,{labelCurtainLoading:r.curtainLoading,showHeader:s,text:t})},A3=()=>window.location.reload(),$A=({labelCurtainLoading:e,showHeader:t,text:s})=>(0,n.jsx)("div",{className:Tt("container",{"show-header":t}),children:(0,n.jsxs)("div",{className:Tt(),children:[(0,n.jsx)("div",{className:Tt("spinner")}),(0,n.jsx)("div",{className:Tt("text"),children:s||e})]})}),_A=({labelCurtainSomethingWrong:e,labelCurtainSomethingWrongRefresh:t,labelCurtainSomethingWrongTryAgain:s,showHeader:o})=>(0,n.jsx)("div",{className:Tt("container",{"show-header":o}),children:(0,n.jsxs)("div",{className:Tt(),children:[(0,n.jsx)("div",{className:Tt("title"),children:e}),(0,n.jsx)("div",{className:Tt("description"),children:s}),(0,n.jsx)("button",{className:Tt("button"),onClick:A3,type:"button",children:t})]})}),UA=({labelCurtainOffline:e,labelCurtainOfflineReconnecting:t,showHeader:s})=>(0,n.jsx)("div",{className:Tt("container",{"show-header":s}),children:(0,n.jsxs)("div",{className:Tt(),children:[(0,n.jsx)("div",{className:Tt("spinner",{reconnect:!0})}),(0,n.jsx)("div",{className:Tt("title"),children:e}),(0,n.jsx)("div",{className:Tt("description"),children:t})]})}),GA=({labelCurtainSessionTimedOut:e,labelCurtainSessionTimedOutRefresh:t,labelCurtainSessionTimedOutRestart:s,showHeader:o})=>(0,n.jsx)("div",{className:Tt("container",{"show-header":o}),children:(0,n.jsxs)("div",{className:Tt(),children:[(0,n.jsx)("div",{className:Tt("title"),children:e}),(0,n.jsx)("div",{className:Tt("description"),children:s}),(0,n.jsx)("button",{className:Tt("button"),onClick:A3,type:"button",children:t})]})}),R3=zA;var P3=f(74512),WA=f(10489),KA=f(91902),QA=f(96545),ZA=f(92529),YA=f(92937),XA=f(66039),qA=f(64246),JA=f(40136),eR=f(64171),tR=f(63365),sR=f(79965),nR=f(56401),oR=f(90147),rR=f(39636),aR=f(17534),iR=f(67234),cR=f(23026),lR=f(60218),dR=f(54666),uR=f(21270),hR=f(94835),mR=f(45635),pR=f(71812),fR=f(28916),gR=f(28054),vR=f(59590),CR=f(14133),xR=f(99841),bR=f(42716),yR=f(29400),LR=f(94043),SR=f(82765),TR=f(7769),kR=f(84404),NR=f(130),IR=f(11413),ER=f(72539),jR=f(96464),wR=f(68687),AR=f(35941),RR=f(15238),PR=f(98446),MR=f(14198),OR=f(23095),BR=f(49951),DR=f(78942),HR=f(33789),FR=f(34133),VR=f(45160),zR=f(73181),$R=f(23561),_R=f(36402),UR=f(9065),GR=f(31444),WR=f(68303),KR=f(78718),QR=f(99881),ZR=f(53683),YR=f(69131),XR=f(70473),qR=f(3718),JR=f(9544),eP=f(66307),tP=f(83692),sP=f(62585),nP=f(55424),oP=f(23007),rP=f(81591),aP=f(20783),iP=f(12461),cP=f(37956),lP=f(69386),dP=f(30304),uP=f(79366),hP=f(76361),mP=f(53419),pP=f(53745),fP=f(51992),gP=f(98414),vP=f(64142),CP=f(79205),xP=f(2545),bP=f(43779),yP=f(72108),LP=f(18558),SP=f(40615),TP=f(56444),kP=f(8240),NP=f(81499),IP=f(69369),EP=f(10934),jP=f(48206),wP=f(66407),AP=f(198),RP=f(67151),PP=f(8917),MP=f(11653),OP=f(56562),M3=f(83176),BP=f(91732),DP=f(2197),HP=f(60689),FP=f(17482),VP=f(88667),zP=f(36108),$P=f(78891),_P=f(29813),UP=f(65663),GP=f(8820),WP=f(37185),KP=f(71656),QP=f(7772),ZP=f(77868),YP=f(78387),XP=f(67296),qP=f(60345),JP=f(17438),eM=f(98312),tM=f(99717),sM=f(12478),nM=f(81163),oM=f(2585),rM=f(82669),aM=f(71386),iM=f(47932),cM=f(97493),lM=f(40908),dM=f(26854),uM=f(42300),hM=f(12241),mM=f(12615),pM=f(47519),fM=f(35739),gM=f(90300),vM=f(76595),CM=f(35359),xM=f(79963),bM=f(53765),yM=f(43237),LM=f(39143),SM=f(72314),TM=f(42692),kM=f(39729),NM=f(58513),IM=f(69554),EM=f(95970),jM=f(8848),wM=f(90113),AM=f(33750),RM=f(35926),PM=f(24443),MM=f(37116),OM=f(88552),BM=f(15081),O3=f(3331),DM=f(1177),HM=f(81538),FM=f(22400),VM=f(2120),zM=f(70626),$M=f(47556),_M=f(89509),UM=f(69545),GM=f(18445),WM=f(47230),KM=f(80883),QM=f(92434),ZM=f(27397),YM=f(87423),XM=f(69112),qM=f(976),JM=f(82386),eO=f(30466),tO=f(21258),sO=f(34265),nO=f(93085),oO=f(9554),rO=f(65039),aO=f(30325),iO=f(73541),cO=f(54674),lO=f(26371),dO=f(8791),uO=f(77145),hO=f(16918),mO=f(25543),pO=f(24108),fO=f(24618);const gO={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"]},vO={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"]]},CO={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"]},xO={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"]},bO={prefix:"fab",iconName:"flask-outline",icon:[20,20,[],"e001","M6 2.75C6 2.34375 6.34375 2 6.75 2H13.25C13.6562 2 14 2.34375 14 2.75C14 3.15625 13.6562 3.5 13.25 3.5H13V8.8125L16.7812 15.4062C16.9375 15.6562 17 15.9688 17 16.25C17 17.2188 16.2188 18 15.25 18H4.75C3.78125 18 3 17.2188 3 16.25C3 15.9688 3.09375 15.6562 3.21875 15.4062L7 8.8125V3.5H6.75C6.34375 3.5 6 3.15625 6 2.75ZM8.5 3.5V9C8.5 9.125 8.46875 9.25 8.40625 9.375L7.1875 11.5H12.8125L11.5938 9.375C11.5312 9.25 11.5 9.125 11.5 9V3.5H8.5ZM6.34375 13L4.53125 16.1562C4.5 16.1875 4.5 16.2188 4.5 16.25C4.5 16.4062 4.59375 16.5 4.75 16.5H15.25C15.4062 16.5 15.5 16.4062 15.5 16.25C15.5 16.2188 15.5 16.1875 15.4688 16.1562L13.6875 13H6.34375Z"]},yO={prefix:"fas",iconName:"language",icon:[640,640,[],"f1ab","M192 64C209.7 64 224 78.3 224 96L224 128L352 128C369.7 128 384 142.3 384 160C384 177.7 369.7 192 352 192L342.4 192L334 215.1C317.6 260.3 292.9 301.6 261.8 337.1C276 345.9 290.8 353.7 306.2 360.6L356.6 383L418.8 243C423.9 231.4 435.4 224 448 224C460.6 224 472.1 231.4 477.2 243L605.2 531C612.4 547.2 605.1 566.1 589 573.2C572.9 580.3 553.9 573.1 546.8 557L526.8 512L369.3 512L349.3 557C342.1 573.2 323.2 580.4 307.1 573.2C291 566 283.7 547.1 290.9 531L330.7 441.5L280.3 419.1C257.3 408.9 235.3 396.7 214.5 382.7C193.2 399.9 169.9 414.9 145 427.4L110.3 444.6C94.5 452.5 75.3 446.1 67.4 430.3C59.5 414.5 65.9 395.3 81.7 387.4L116.2 370.1C132.5 361.9 148 352.4 162.6 341.8C148.8 329.1 135.8 315.4 123.7 300.9L113.6 288.7C102.3 275.1 104.1 254.9 117.7 243.6C131.3 232.3 151.5 234.1 162.8 247.7L173 259.9C184.5 273.8 197.1 286.7 210.4 298.6C237.9 268.2 259.6 232.5 273.9 193.2L274.4 192L64.1 192C46.3 192 32 177.7 32 160C32 142.3 46.3 128 64 128L160 128L160 96C160 78.3 174.3 64 192 64zM448 334.8L397.7 448L498.3 448L448 334.8z"]},LO={"alert-circle-solid":nP.lE,"alert-circle":M3.lE,"alert-diamond":XP.xG,"angle-right":lP.vm,"arrow-down-from-line":uP.xZ,"arrow-down-to-bracket":hP.a_,"arrow-down-to-line":mP.yH,"arrow-down":dP.B0,"arrow-left":pP.Ce,"arrow-right-from-line":gP.Pe,"arrow-right":fP.dm,"arrow-rotate-left-light":aR.V3,"arrow-rotate-left":vP.V3,"arrow-up-from-bracket":xP.MN,"arrow-up-from-line":bP.s8,"arrow-up-right-from-square":yP.faArrowUpRightFromSquare,"arrow-up":CP.IN,"arrows-two-from-center":WA.A1,"arrows-two-to-center":KA.hL,"badge-check":jR.Zs,"bar-chart":LP.X8,bars:wR.ck,"bars-regular":SP.ck,"block-selector":rP.iH,"book-open":kP.Re,"book-sparkles":NP.E4,book:TP.LB,"browser-light":YA.c9,browser:IP.c9,building:QA.UR,"building-regular":ZA.UR,"cards-blank":EP.Xm,"caret-down":RR.xB,"caret-right":PR.fU,"chart-column":ER.q9,"check-regular":iP.e6,check:AR.e6,"chevron-down-solid":MR.Jt,"chevron-down":jP.Jt,"chevron-left-light":XA.Wz,"chevron-left-solid":BR.Wz,"chevron-left":wP.Wz,"chevron-right-light":qA.Xk,"chevron-right-solid":DR.Xk,"chevron-right":AP.Xk,"chevron-up-solid":OR.w2,"chevron-up":RP.w2,"circle-arrow-right":VR.Ni,"circle-arrow-up":FR.yi,"circle-check-regular":MP.QR,"circle-check-solid":zR.QR,"circle-check":CR.QR,"circle-dot":OP.pp,"circle-half-stroke":BP.B2,"circle-exclamation":M3.lE,"circle-info":DP.faCircleInfo,"circle-notch":VP.s4,"circle-plus-duotone":xR.q_,"circle-plus-regular":HP.q_,"circle-plus":$R.q_,"circle-small-solid":_R.ZP,"circle-small":FP.ZP,"circle-solid":HR.GE,"circle-x":UR.Ub,"circle-xmark":zP.bn,"circle-xmark-solid":GR.bn,"circle-xmark-duotone":bR.bn,circle:PP.GE,"clipboard-list-check":$P.S3,"clock-rotate-left":_P.Yj,clone:GP.$3,close:WP.yY,"closed-captioning":UP.UM,"code-fork-duotone":yR.zt,"code-fork-regular":KP.zt,code:pO.jT,comment:QP.DN,copy:ZP.jP,crop:YP.K1,"edit-regular":qP.MT,"ellipsis-regular":JP.Dw,"ellipsis-vertical-regular":eM.nx,envelope:tM.y_,"external-link":sM.vM,"eye-slash":eR.k6,eye:JA.pS,"face-anguished":iR.xX,"face-anguished-regular":cR.xX,"face-frown":lR.Ho,"face-frown-regular":dR.Ho,"face-grin-regular":uR.pj,"face-laugh":hR.ou,"face-laugh-regular":mR.ou,"face-meh":pR.Lz,"face-meh-regular":fR.Lz,"face-smile":gR.H8,"face-smile-regular":vR.H8,"file-audio":oM.qe,"file-duotone":LR.A4,"file-export-light":sR.o1,"file-export":rM.o1,"file-import":aM.$M,"file-lines":iM.bL,"file-pdf-light":tR.O_,"file-pdf":cM.O_,file:nM.A4,"folder-image":lM.JK,"folder-open":SR.Uj,gear:dM.BH,globe:uM.Bw,"graduation-cap":hM.eS,"grid-2":mM.Qy,"grid-solid":WR.Qy,"grip-dots-vertical":pM.IM,"hand-pointer":fM.A8,"image-landscape":vM.oC,"image-portrait":CM.E4,image:gM.jb,"photo-film":xM._Z,"info-circle":bM.iW,"layers-solid":sP.qI,"link-simple-slash":SM.r2,"link-simple":LM.wi,"link-slash":TM.TH,link:yM.CQ,list:kM.IT,"list-check":NM.UN,"location-dot":oR.gK,"lock-keyhole-light":nR.Yp,lock:KR.DW,"magnifying-glass-plus":EM.bM,"magnifying-glass":IM.$U,megaphone:oP.OR,"message-quote":jM.ps,"minus-solid":QR.EZ,minus:wM.EZ,paintbrush:TR.ue,palette:AM.fy,paste:RM.R9,pause:PM.G1,"pause-solid":ZR.G1,"pen-line":MM.pg,"pen-nib":BM.us,"pen-to-square":OM.faPenToSquare,"pencil-duotone":kR.zL,"pencil-regular":cP.zL,"pencil-thin":fO.zL,pencil:rR.zL,"play-regular":O3.ij,"play-solid":YR.ij,play:O3.ij,"plus-regular":DM.QL,plus:HM.TS,"quote-left":FM.$7,"rectangle-history-circle-plus":zM.Hu,"rectangle-regular":VM.vt,"rectangle-vertical-history":$M.Lt,rocket:_M.KM,"ruler-horizontal":UM.Si,"ruler-triangle":GM.cb,"sliders-simple":XR.AD,"sparkles-solid":qR.p7,sparkles:WM.p7,"spinner-third":KM.sq,"square-arrow-down":ZM.Y1,"square-arrow-right":YM.mT,"square-arrow-up-right":XM.fL,"square-check-solid":JR.Dn,"square-check":qM.Dn,"square-duo":NR.Nf,"square-info":JM.Lg,"square-plus":eO.Vd,square:QM.Nf,"stopwatch-regular":tO.nw,table:sO.w9,tag:nO._2,text:oO.jw,"trash-can":aO.sj,trash:rO.yL,"user-group":eP.US,"users-regular":iO.gd,users:IR.gd,video:cO.n2,volume:lO.eF,volumeHigh:dO.AI,volumeLow:uO.gN,volumeXmark:hO.H_,"wand-magic-sparkles":mO.Ys,"waveform-lines":aP.Wx,xmark:tP.Jy},SO={"audio-plus":CO,"clone-plus":xO,"flask-outline":bO,language:yO,reach:vO,"rise-com":gO},ie=(0,u.memo)(function({"aria-label":t,className:s,classNameIcon:o,color:r,"data-testid":a,name:i,rotation:c,spin:l,style:d,styleIcon:h}){return(0,n.jsx)("span",{className:s,"data-testid":a,style:{color:r,...d},children:(0,n.jsx)(P3.g,{"aria-label":t,className:o,icon:LO[i],rotation:c,spin:l,style:h})})}),ahe=(0,u.memo)(function({className:t,classNameIcon:s,color:o,name:r,style:a,styleIcon:i}){return(0,n.jsx)("span",{className:t,style:{color:o,...a},children:(0,n.jsx)(P3.g,{className:s,icon:SO[r],style:i})})}),TO=({value:e,fallback:t})=>{const s=Oe(e),o=wt(e);return t?(0,n.jsx)("span",{"data-l10n-id":o,children:s||t}):(0,n.jsx)("span",{"data-l10n-id":o,children:s})};function kO({value:e,children:t}){const s=Oe(e);return t(s)}const Ls=TO,B3=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),NO=(e,t)=>{const s=e?.toLowerCase();try{return t?.[s]?.authorDisplayName??B3.of(e)}catch(o){return console.warn(`Language ${e} invalid`,o),e}},IO=(e,t)=>{try{return t?.[e]?.learnerDisplayName??B3.of(e)}catch(s){return console.warn(`Language ${e} invalid`,s),e}},F1=()=>{const e=aa(),t=r1(e);return(0,u.useCallback)(o=>NO(o,t),[t])},EO=()=>{const e=aa(),t=r1(e);return(0,u.useCallback)(o=>IO(o,t),[t])};var jO=f(27526);function ls(e){const{to:t,children:s}=e,o=(0,je.zy)(),r=(0,u.useMemo)(()=>m0(t,o),[o,t]);return(0,n.jsx)(je.N_,{...e,to:r,children:s})}function wO({children:e,locale:t,...s}){const o=(0,je.zy)(),r=dn(),a=(0,u.useMemo)(()=>{const i=t===r?"":t,c=new URLSearchParams(o.search);return c.set("locale",i),o.pathname+"?"+c.toString()+o.hash},[r,t,o]);return(0,n.jsx)(ls,{...s,to:a,children:e})}var On=f(63572),AO=f(21208),Nl=f.n(AO);const RO={keys:["End"],keyCode:On.KEY_END},PO={keys:["Enter"],keyCode:On.KEY_RETURN},MO={keys:["Home"],keyCode:On.KEY_HOME},OO={keys:["Tab"],keyCode:On.KEY_TAB},BO={keys:[" "],keyCode:On.KEY_SPACE},DO={keys:["Escape","Esc"],keyCode:On.KEY_ESCAPE},HO={keys:["ArrowUp"],keyCode:On.KEY_UP},FO={keys:["ArrowDown"],keyCode:On.KEY_DOWN},VO={keys:["ArrowLeft"],keyCode:On.KEY_LEFT},zO={keys:["ArrowRight"],keyCode:On.KEY_RIGHT},Bn=({keyCode:e,keys:t})=>s=>s.keyCode?s.keyCode===e:jn()(s.key,t),$O=e=>e.altKey||e.ctrlKey||e.metaKey,D3=Bn(RO),Ca=Bn(PO),H3=Bn(MO),Il=Bn(OO),V1=Bn(BO),Ss=Bn(DO),xr=Bn(HO),br=Bn(FO),ao=Bn(VO),io=Bn(zO),Ai=wn()(V1,Ca),ihe=wn()(Il,Ca),_O=wn()(io,xr),UO=wn()(ao,br),GO=wn()(xr,br),F3=eo()(Ai),V3=25,WO=Nl()((e,t)=>{e.scrollTop!==0&&(t.preventDefault(),e.scrollTop-=V3)}),KO=Nl()((e,t,s)=>{t&&(s.preventDefault(),e.scrollTop+=V3)}),QO=(e,t)=>s=>{const o=KO(e,t),r=WO(e);Cs()([[br,o],[xr,r]])(s)},Dn=z("locales-dropdown"),ZO=({backToStackCourseId:e,currentLocale:t,defaultLocale:s,locales:o,message:r,onChange:a,optionType:i,showMessageIndicator:c})=>{const l=(0,u.useRef)(null),d=(0,u.useRef)(null),[h,m]=(0,u.useState)(!1),[p,v]=(0,u.useState)(!1),C=(0,u.useMemo)(()=>o.filter(y=>y.localeCode!==s),[s,o]),g=(0,u.useMemo)(()=>o.find(y=>y.localeCode===s),[s,o]),x=(0,u.useMemo)(()=>o.find(y=>y.localeCode===t),[t,o]);(0,u.useLayoutEffect)(()=>{h&&p&&(l.current?.querySelector(`[data-locale="${t}"]`)?.focus(),v(!1))},[h,p,t]),(0,u.useEffect)(()=>{const y=T=>{Ss(T)&&(d.current?.focus(),m(!1)),Il(T)&&setTimeout(()=>{l.current.contains(document.activeElement)||m(!1)},0)};return h&&document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[h]);const S=(0,u.useCallback)(y=>{!h&&document.activeElement===y.currentTarget&&v(!0),m(!h)},[h]),L=(0,u.useCallback)(y=>{h&&!d.current?.contains(y?.target)&&m(!1)},[h]);(0,jO.A)(l,L),(0,u.useEffect)(()=>{const y=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&L()},0);return window.addEventListener("blur",y),()=>window.removeEventListener("blur",y)},[L]);const b=(0,u.useCallback)(y=>{document.activeElement===y.currentTarget&&d.current?.focus(),m(!1),a?.(y.currentTarget.getAttribute("data-locale"))},[a]);return(0,n.jsxs)("div",{className:Dn({isOpen:h}),children:[(0,n.jsx)("div",{className:Dn("trigger-wrap"),children:(0,n.jsxs)("button",{className:Dn("trigger"),onClick:S,ref:d,type:"button",children:[c&&(0,n.jsx)("div",{className:Dn("message-indicator")}),(0,n.jsx)(ie,{name:"globe"}),x.displayName,(0,n.jsx)(ie,{name:"chevron-down"})]})}),(0,n.jsxs)("div",{className:Dn("contents"),ref:l,children:[r,(0,n.jsx)("div",{className:Dn("grouping-header"),children:"Source"}),(0,n.jsx)(z3,{checked:s===t,locale:g,onClick:b,type:i}),(0,n.jsx)("div",{className:Dn("grouping-header"),children:"Translations"}),C.map(y=>(0,n.jsx)(z3,{checked:y.localeCode===t,locale:y,onClick:b,type:i},y.localeCode)),e&&(0,n.jsx)("a",{className:Dn("stack-button"),href:`/manage/locales/${e}`,children:"Back to Stack"})]})]})},z3=({checked:e,locale:t,onClick:s,type:o})=>o==="link"?(0,n.jsx)(wO,{className:Dn("option",{checked:e}),"data-locale":t.localeCode,locale:t.localeCode,onClick:s,children:t.displayName},t.localeCode):(0,n.jsx)("button",{className:Dn("option",{checked:e}),"data-locale":t.localeCode,onClick:s,type:"button",children:t.displayName},t.localeCode),YO=({hideBackToStack:e,...t})=>{const s=ze(),{currentLocale:o}=ct(),r=ul(),a=dn(),i=F1(),c=e?void 0:s?.id,l=(0,u.useMemo)(()=>r.map(d=>({localeCode:d.locale,displayName:i(d.locale)})),[i,r]);return(0,n.jsx)(ZO,{backToStackCourseId:c,currentLocale:o,defaultLocale:a,locales:l,optionType:"link",...t})},$3=window.location.origin,XO=1e3,qO="course:ready",_3="localizedSharePreview:ready",JO="preview:selectLocale",z1="localizedSharePreview:toggleCurtain",U3="localizedSharePreview:togglePreview",pn=z("localized-share-preview"),xa=!!window.frameElement,G3=e=>(0,Xt.HX)(e)&&X2(),eB=e=>G3(e)&&!xa,tB=(e,t)=>window.parent?.postMessage({type:e,data:t});let W3=null;const sB=({children:e,localesDropdown:t,title:s})=>(0,n.jsxs)("div",{className:pn("header"),dir:"ltr",children:[(0,n.jsxs)("div",{className:pn("header-title-dropdowns"),children:[(0,n.jsx)("div",{className:pn("header-title"),children:(0,n.jsx)("span",{className:pn("header-title-text"),children:(0,n.jsx)(Ls,{value:s})})}),t&&(0,n.jsx)("div",{className:pn("header-dropdowns"),children:t})]}),(0,n.jsx)("div",{className:pn("header-btn-group"),children:e})]}),nB=({children:e,className:t,disabled:s=!1,onClick:o})=>(0,n.jsx)("button",{className:G()("button button--default button--header-done",t,{"button--disabled":s}),disabled:s,onClick:o,style:{fontSize:"1.4rem",fontWeight:600,letterSpacing:0,textTransform:"none"},type:"button",children:e}),oB=({children:e})=>{const t=ut(),s=os(),o=(0,je.zy)(),{currentLocale:r,setCurrentLocale:a}=ct(),i=dn(),c=_E(),l=re(),h=!!(l&&"hasPassword"in l?l.hasPassword:void 0)||q2(),m=(0,u.useRef)(null),[p,v]=(0,u.useState)(!1),[C,g]=(0,u.useState)(!1),[x,S]=(0,u.useState)(!h),L=(0,u.useMemo)(()=>{const O=new URLSearchParams(window.location.search),A=new URLSearchParams;for(const M of["from"])O.has(M)&&A.set(M,O.get(M));const P=A.toString();return`${$3}/share/${window.shareId}${P?`?${P}`:""}#/?locale=${r}`},[]),[b,y]=(0,u.useState)(null),[T,k]=(0,u.useState)(r),[N,I]=(0,u.useState)(!1),[w,R]=(0,u.useState)(!xa),E=(O,A)=>m.current?.contentWindow.postMessage({type:O,data:A});(0,u.useEffect)(()=>{xa||E(JO,r)},[r]),(0,u.useEffect)(()=>{xa&&(tB(_3),setTimeout(()=>I(!0),0))},[]),(0,u.useEffect)(()=>{const O=A=>{if(A.origin!==$3)return;const M=A.data?.type,F=A.data?.data;if(xa)switch(M){case z1:{R(F);break}case U3:{F?(k(r),y(o),t(Z0(!0)),a(i),s("/",{replace:!0})):(t(Z0(!1)),a(T),s(b.pathname+b.search+b.hash||"/",{replace:!0})),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(M){case qO:{R(!1);break}case _3:{S(!0);break}}};return window.addEventListener("message",O),()=>{window.removeEventListener("message",O)}},[i,t,s,r,o,T,b,a]);const j=(0,u.useCallback)(()=>{const O=!p;clearTimeout(W3),g(!0),E(z1,!0),W3=setTimeout(()=>{g(!1),E(z1,!1),v(O)},XO),setTimeout(()=>{E(U3,O)},0)},[p]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:pn("curtain",{hide:!w}),children:(0,n.jsx)(R3,{status:"loading"})}),xa?N&&e:(0,n.jsxs)("div",{className:pn(),children:[x&&(0,n.jsx)(sB,{localesDropdown:!p&&!C&&(0,n.jsx)(YO,{hideBackToStack:!0}),title:c,children:(0,n.jsx)(nB,{className:pn("preview-button"),disabled:C,onClick:j,children:p?"Close Learner Preview":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{className:pn("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,n.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:pn("iframe"),ref:m,src:L})]})]})},rB=(0,u.lazy)(()=>f.e("_b106").then(f.t.bind(f,63744,23))),aB=({children:e})=>{const t=re(),{setCurrentLocale:s,currentLocale:o}=ct(),r=Oe(t?.title),a=aa()?.l10n?.languageCodeMetadata??{},i=Object.entries(a).map(([c,l])=>({code:c,learnerDisplayName:l.learnerDisplayName})).sort((c,l)=>c.learnerDisplayName.localeCompare(l.learnerDisplayName));return(0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(rB,{courseTitle:r,currentLocale:o,locales:i,setCurrentLocale:s,children:e})})};function iB({children:e}){const t=re();return t&&G3(t)?(0,n.jsx)(oB,{children:e}):Mn.isInstantLink?(0,n.jsx)(aB,{children:e}):(0,n.jsx)(n.Fragment,{children:e})}const $1=(0,u.createContext)(void 0);$1.displayName="RiseComPartnerTrackingContext";function cB({children:e,onTrack:t}){return(0,n.jsx)($1.Provider,{value:t,children:e})}function K3(){return(0,u.useContext)($1)}var lB=f(24332),dB=f.n(lB),uB=f(53802),hB=f.n(uB);class co{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 t=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,s=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),o=/CriOS/.test(window.navigator.userAgent);return t&&s&&!o}static get isSafari9(){if(!window||!window.navigator)return!1;const t=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),s=/version\/9./i.test(window.navigator.userAgent);return t&&s}static get isIe11(){return!!(window&&Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject)}static get isEdge(){return!window||!window.navigator?!1:/Edge/.test(window.navigator.userAgent)}static get isMobile(){return!window||!window.navigator?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static get isLocalFilesystem(){return!window||!window.navigator?!1:/file:/.test(window.location.protocol)}static get isFirefox(){return window?.navigator?.userAgent.includes("Firefox")??!1}static get isBrave(){return globalThis?.navigator?typeof globalThis.navigator.brave?.isBrave=="function":!1}static get isChromium(){if(!globalThis?.navigator)return!1;const t=globalThis.navigator.userAgentData?.brands;return t?.length?t.some(({brand:s})=>/Chromium/i.test(s)):/Chrome|CriOS/.test(globalThis.navigator.userAgent)}static get isGoogleChrome(){if(!globalThis?.navigator||this.isBrave)return!1;const t=globalThis.navigator.userAgentData?.brands;if(t?.length)return t.some(({brand:a})=>/Google Chrome/i.test(a));const{userAgent:s,vendor:o}=globalThis.navigator,r=/Edg\/|OPR\/|SamsungBrowser|Vivaldi|Brave/.test(s);return/Chrome/.test(s)&&/Google Inc/.test(o)&&!r}}const mB=Wc()(on()),Q3=e=>t=>`${e}/${t.id}`,pB=(e,t)=>k2()({data:(0,fe.action)(t),method:"POST",url:hL(mB(`/${t}`),Ae()("url"),e),...En()(["headers","withCredentials"],e)}),fB=e=>(t,s)=>d2()(t,Q3(s),_1(e,s)),gB=e=>dt()(_e()({},["response","data"]),Us()(Ae()("type"),(0,fe.error)(e))),vB=(e,t)=>s=>e.postRequest?e.postRequest(t,s):s,Z3=e=>t=>s=>o=>f0(o,pB(t,s),e,p0()(gB(s),eo()(Qr()("data"),Ae()("data"))),hB()(ss()(Ae()("error"),Jo().Rejected,Jo().of)),vB(t,{type:s,payload:o})),CB=({url:e,method:t,data:s,headers:o})=>{if(co.isFirefox){const r=new Blob([JSON.stringify(s)],{type:"application/json"}),a=window.navigator.sendBeacon(e,r);return Promise.resolve({type:s.type,payload:{...s.payload,queued:a}})}return fetch(e,{method:t,credentials:"include",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(s),keepalive:!0}).then(r=>r.json()).then(Kr()("data"))},xB=Jo().fromPromise(CB),_1=cl()(3,Z3(pi)),bB=cl()(3,Z3(xB)),yB=e=>(t,s)=>dB()(t,Q3(s),_1(e,s)),LB=e=>({debounce:fB(e),send:_1(e),fetchWithKeepAlive:bB(e),throttle:yB(e)}),SB=`${Ee("RISE_RUNTIME_URI")}/ducks`,TB=LB({headers:()=>({"x-rise-authoring-client":"b963da2122ed35345af35070f45ec7044bb467e5"}),postRequest:(e,t)=>t,url:SB,withCredentials:!0});var kB=f(5951),NB=f.n(kB);const hhe=NB()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:Bb(),userRole:Fb(),subId:Vb(),subPlan:zb(),subStatus:$b()}}),IB=on()("rise/track/")("TRACK");var phe;const EB=e=>({...e,context:{locale:navigator.language,device:g2(),channel:p2(),userAgentData:f2(),page:v2(),userAgent:C2(),...e.context}}),jB=(e,t)=>({...e,properties:{...m2(t),...e.properties}}),Y3=e=>(t,s)=>{const o=s(),r=a0();let a=EB(e);return a=jB(a,o),a.userId=a.userId??r,a.author=a.author??r,t(TB.send(IB)(a))};function wB({children:e}){const t=ut(),s=(0,u.useCallback)(o=>t(Y3(o)),[t]);return(0,n.jsx)(cB,{onTrack:s,children:e})}var X3,q3,El;const J3=(0,u.createContext)({enabled:!0,isActive:!1,onAuthorized:()=>{},onError:()=>{},onSubmitPassword:()=>{},onUnauthorized:()=>{},status:"authorized"});let fhe;function ghe(){}function AB(){return(0,u.useContext)(J3)}function RB({children:e}){if(!Mn.isInstantLink)return(0,n.jsx)(n.Fragment,{children:e});const t=void 0;return t==null?(0,n.jsx)(n.Fragment,{children:e}):(0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(t,{children:e})})}function vhe({children:e,PasswordGate:t}){const s=window.InstantLinks?.isPasswordProtected?.()===!0,[o,r]=q3(),[a,i]=q3(s?"required":"authorized"),c=El(()=>{i("authorized")},[]),l=El(()=>{i("error")},[]),d=El(p=>{r(p),i("validating")},[]),h=El(()=>{i("unauthorized")},[]),m=a==="authorized"||a==="validating";return X3(t,{onSubmitPassword:d,status:a,children:X3(J3.Provider,{value:{enabled:m,isActive:!0,onAuthorized:c,onError:l,onSubmitPassword:d,onUnauthorized:h,password:o,status:a},children:e})})}const lo=({id:e="portal",childType:t="other",attributes:s}={})=>{const o=document.querySelector('dialog[open][aria-modal="true"]');let r,a;if(o!=null&&t!=="dialog"?(e=`${e}-dialog`,r=o.querySelector(`#${e}`),a=o):(r=document.querySelector(`#${e}`),a=document.body),r==null&&(r=document.createElement("div"),r.setAttribute("id",e),a.appendChild(r)),s)for(const[i,c]of Object.entries(s))r.setAttribute(i,c);return r},e6=lo();function PB(e){e?e.appendChild(e6):document.body.appendChild(e6)}function MB(e){return function({Default:s,className:o,...r}){const a=`brand--${e}`,i=o?`${o} ${a}`:a;return(0,n.jsx)(s,{...r,className:i})}}const ba=MB("ui"),U1=e=>e==="<p><br></p>"?"":e,G1="data-change-path",W1="data-l10n-id",t6=(e,t)=>{if(e)return t?["l10n","translations",t,e.getAttribute(W1)]:JSON.parse(e.getAttribute(G1))};let uo;const OB=()=>{const e=ya();e&&e.classList.add("selected")},jl=()=>{ya()&&uo&&Ri(uo)},BB=(e,t)=>s=>{const o=document.elementsFromPoint(s.clientX,s.clientY),r=t?o.find(a=>a.getAttribute(W1)):o.find(a=>a.getAttribute(G1));r!=null&&(e&&uo!==r&&(uo=r,e(t6(r,t))),Ri(r))},DB=(e,t)=>s=>{s.stopPropagation(),s.preventDefault();const o=document.elementsFromPoint(s.clientX,s.clientY),r=t?o.find(a=>a.getAttribute(W1)):o.find(a=>a.getAttribute(G1));if(r){Ri(r),n6();const a=t6(r,t);a&&(e(a),OB())}},K1=()=>document.getElementById("target-container"),ya=()=>document.getElementById("target-highlight"),s6=()=>{if(K1())return;const t=document.createElement("div");t.classList.add("target-container"),t.id="target-container",document.body.appendChild(t);const s=document.createElement("div");s.classList.add("target-highlight"),s.id="target-highlight",t.appendChild(s)},n6=()=>{const e=ya();e&&e.classList.add("selected")},HB=({top:e,left:t,width:s,height:o})=>{const r=document.querySelector("[data-page=true]")?.getBoundingClientRect().width??window.innerWidth-20;return s<r&&(e=e-10,o=o+20,t=t-20,s=s+40),{top:e,left:t,width:s,height:o}},Ri=e=>{const{top:t,left:s,width:o,height:r}=HB(e.getBoundingClientRect()),a=ya();a&&(e!==uo&&a.classList.contains("selected")&&a.classList.remove("selected"),a.classList.add("active"),Object.assign(a.style,{top:`${t}px`,left:`${s}px`,width:`${o}px`,height:`${r}px`}),uo=e)},FB=()=>{window.removeEventListener("scroll",jl,{capture:!0}),wl()},wl=()=>{ya()?.classList?.remove("active"),ya()?.classList?.remove("selected")};let La,Al;const VB=({locale:e})=>({isActive:t},s)=>{const o=!!K1();if(t){if(La)return La;s6();const r=BB(s,e);let a;return La=new Promise((i,c)=>{a=DB(i,e),Al=c,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",wl,!0),window.addEventListener("scroll",jl,!0)}).finally(()=>{La=null,Al=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",wl,!0),window.removeEventListener("scroll",jl,!0)}),La}else wl(),K1()?.remove(),uo=null;return o&&Al!=null&&Al(new Error("cancelled")),Promise.resolve()},zB=e=>{let t=e.findIndex(s=>s==="items");return t===-1?e:e.slice(0,t+2)},o6=e=>{const t=(0,_r.Ce)(e);return t?t.type==="translation"||t.type==="caption"&&t.l10nId?document.querySelector(`[data-l10n-id='${t.l10nId}']`)??document.querySelector(`[data-l10n-id*='${t.l10nId}']`):document.querySelector(`[data-change-path='${JSON.stringify(zB(e))}']`):null},$B=e=>{s6(),window.addEventListener("scroll",jl,{capture:!0}),document.body.classList.add("target-mode");const t=o6(e);t&&Ri(t)},_B=e=>{if(!La)return;const t=o6(e);t&&(uo!==t&&(uo=t),Ri(t),n6(),t.scrollIntoView({behavior:"smooth",block:"center"}))},UB=e=>["course",e],r6=(e,t)=>["lessons",{id:e},t],GB=(e,t)=>[...r6(e,"items"),{id:t}],Sa=e=>JSON.stringify(UB(e)),a6=(e,t)=>JSON.stringify(r6(e,t)),WB=(e,t)=>JSON.stringify(GB(e,t)),Ts={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"},Ta=(e,t)=>{const s={};for(let o=0;o<e.length;o++){const r=e[o];if(typeof r=="object"&&r.id){const a=e[o-1],i=a==="items"?t.shift():a.replace(/s$/,"");s[`${i??"item"}Id`]=r.id}}return s};function Q1(e,t){const s=(0,u.useMemo)(()=>matchMedia(`(${e}: ${t*.0625}em)`),[e,t]),[o,r]=(0,u.useState)(s.matches);return(0,u.useEffect)(()=>{const a=s.addEventListener??s.addListener,i=s.removeEventListener??s.removeListener;return a.call(s,"change",c),()=>i.call(s,"change",c);function c(){r(s.matches)}},[s]),o}const KB="matches";function QB(e,t,s,o="withPxToEmMedia"){return r=>{function a(i){const c=Q1(e,t);return(0,n.jsx)(r,{...i,[s??KB]:c})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function kt(e){return Q1("max-width",e-1)}function Che(e){return Q1("min-width",e)}function ZB(e,t,s){return QB("min-width",e,t,s)}const YB=()=>kt(1200),XB=()=>kt(768),Z1=()=>kt(480),Y1=z("cover");function qB(e,t,s){return e===1?t:s}function JB(){const e=Xv(),t=xe(),s=qB(e,t?.coverLesson||"Lesson",t?.coverLessons||"Lessons");return(0,n.jsxs)("li",{className:Y1("num-lessons"),role:"listitem",children:[(0,n.jsx)("span",{className:Y1("num-lessons-value"),children:e}),"\xA0",(0,n.jsx)("span",{className:Y1("num-lessons-units"),children:s})]})}var eD=f(39031),fn=f.n(eD);const tD=36e5,X1=z("cover");function sD(e){return Math.round(10*e)/10}function i6(e,t,s){return e===1?t:s}function nD(){const{showTimeToComplete:e,timeToComplete:t}=re(),s=xe();if(!e)return null;const o=t>=tD,r=o?sD(fn().duration(t).asHours()):fn().duration(t).asMinutes(),a=o?i6(r,s?.coverHour||"Hour",s?.coverHours||"Hours"):i6(r,s?.coverMinute||"Minute",s?.coverMinutes||"Minutes");return(0,n.jsxs)("li",{className:X1("time-to-complete"),role:"listitem",children:[(0,n.jsx)("span",{className:X1("time-to-complete-value"),children:r}),"\xA0",(0,n.jsx)("span",{className:X1("time-to-complete-units"),children:a})]})}const q1=z("cover");function c6(){const e=xe();return null}const oD=z("cover"),rD="MMMM D, YYYY";function l6({format:e=rD}){const{publishedAt:t}=re(),s=xe(),o=oD("details-content-published-at");if(!t)return null;const r=fn()(t);return r.isValid()?(0,n.jsxs)("div",{className:o,children:[s?.coverPublished||"Published"," ",r.format(e)]}):null}var aD=f(21135),Pi=f.n(aD);const d6=Pi()(async()=>(await f.e("math").then(f.bind(f,79078))).browserAdaptor(),{promise:!0}),u6=Pi()(async()=>{const[{TeX:e},{AllPackages:t}]=await Promise.all([f.e("math").then(f.t.bind(f,33710,23)),f.e("math").then(f.bind(f,18415))]);return new e({packages:t})}),h6=Pi()(async()=>{const e=await f.e("math").then(f.t.bind(f,83390,23));return new e.SVG({fontCache:"local"})},{promise:!0}),m6=Pi()(async()=>{const[e,t,s,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([d6(),u6(),h6(),f.e("math").then(f.bind(f,81991)),f.e("math").then(f.bind(f,55633))]);return o(e),r.document(document,{InputJax:t,OutputJax:s})},{promise:!0}),iD=Pi()(async e=>{const t=new CSSStyleSheet;e.adoptedStyleSheets.push(t);const[s,o]=await Promise.all([h6(),m6()]),r=s.styleSheet(o);r instanceof HTMLStyleElement&&await t.replace(r.innerText)},{promise:!0});class cD extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=iD(this.ownerDocument)}get longDescription(){return this.getAttribute("long-description")??null}set longDescription(t){t==null?this.removeAttribute("long-description"):this.setAttribute("long-description",t)}get shortDescription(){return this.getAttribute("short-description")??null}set shortDescription(t){t==null?this.removeAttribute("short-description"):this.setAttribute("short-description",t)}get tex(){return this.getAttribute("tex")??""}set tex(t){this.setAttribute("tex",t)}disconnectedCallback(){this._renderController?.abort()}attributeChangedCallback(t){t==="tex"?this._renderTex():this._renderAria()}async _renderTex(){this._renderController?.abort();const t=this._renderController=new AbortController,[s,o,r]=await Promise.all([m6(),d6(),u6(),this._ready]);if(t.signal.aborted)return;r.reset();const{tex:a}=this,i=a.includes("begin{")?a:String.raw`\begin{align*}${a}\end{align*}`,c=s.convert(i),l=o.firstChild(c),d=document.evaluate("//@data-mjx-error",l,null,XPathResult.STRING_TYPE).stringValue;if(d.length>0){let h=d;if(d===String.raw`Missing \begin{align*} or extra \end{align*}`){const m=s.convert(a),p=o.firstChild(m);h=document.evaluate("//@data-mjx-error",p,null,XPathResult.STRING_TYPE).stringValue??"An error occured"}this.dispatchEvent(new lD("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:h}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(l);await this._renderAria()}async _renderAria(){if(await this._ready,this._renderController?.signal.aborted||this.firstElementChild==null)return;const t=[this.shortDescription,this.longDescription].filter(s=>(s?.length??0)>0).join(`

`);this.firstElementChild.ariaLabel=t.trim().length===0?null:t}}customElements.define("rise-math",cD);class lD extends CustomEvent{}var gn=f(55116);function J1(e){if(e==null)return{value:e};let t;if(typeof e=="string"?t=e:t=e.innerHTML,!t.includes("data-editor-id"))return{value:e};const s=t.match(/^<[^>]+data-editor-id=["']([^"']+)["'][^>]*>/);if(s){const o=s[1],r=t.match(/^<[^>]*>(.*)<\/[^>]*>$/s),a=r?r[1]:t;return{editorId:o,value:typeof e=="string"?a:e}}return{value:e}}const p6=(e="")=>e.split(".").slice(-2).join("."),f6=me()(p6,Ee),dD=e=>e.includes("#/lessons/"),Zs=e=>{if(!e||uD(e)||dD(e))return!1;e.slice(0,2)==="//"&&(e=`https:${e}`);try{const{hostname:t}=new URL(e),s=p6(t);return s!==f6("ARTICULATE_DOMAIN")&&s!==f6("RISE_DOMAIN")}catch{return!1}},uD=e=>e?e.slice(0,7)==="mailto:":!1;var vn=f(89060);const eh=z("external-link-disabled-popover");function Rl(e={}){const{delay:t=200}=e,s=u.useRef(new Map),o=u.useCallback(c=>{const l=s.current.get(c);l&&clearTimeout(l);const d=setTimeout(()=>{const h=`trial-external-link-popover-${c}`;vn.ArcPopover.handlePopover(h,"show"),s.current.delete(c)},t);s.current.set(c,d)},[t]),r=u.useCallback(c=>{const l=s.current.get(c);l&&clearTimeout(l);const d=setTimeout(()=>{const h=`trial-external-link-popover-${c}`;vn.ArcPopover.handlePopover(h,"hide"),s.current.delete(c)},t);s.current.set(c,d)},[t]),a=u.useCallback(c=>{const l=`trial-external-link-popover-${c}`;vn.ArcPopover.handlePopover(l,"show")},[]),i=u.useCallback(c=>{const l=`trial-external-link-popover-${c}`;vn.ArcPopover.handlePopover(l,"hide")},[]);return u.useEffect(()=>{const c=s.current;return()=>{c.forEach(l=>clearTimeout(l)),c.clear()}},[]),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}}function hD(e){return t=>{const{handleMouseEnter:s,handleMouseLeave:o,handleFocus:r,handleBlur:a}=Rl(),i=u.useId();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e,{...t,attachmentId:i,onLinkBlur:a,onLinkFocus:r,onLinkMouseEnter:s,onLinkMouseLeave:o}),t.externalLinksDisabled&&(0,n.jsx)(Pl,{anchorId:i})]})}}const Pl=({anchorId:e})=>{const t=`trial-external-link-popover-${e}`;return u.useEffect(()=>{const s=o=>{o.key==="Escape"&&vn.ArcPopover.handlePopover(t,"hide")};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}},[t]),(0,n.jsx)(vn.ArcPopover,{alternateAnchorId:e,anchorAt:"top-center",boundary:"flip",className:eh(),hasTail:!0,headerSlot:(0,n.jsx)("div",{className:eh("header"),children:"Subscribe to unlock full access"}),hidePopoverButton:!0,id:t,offset:8,popover:"manual",variant:"common",children:(0,n.jsx)("div",{className:eh("content"),children:"To protect learners from phishing, scams, or malicious redirects, external links are disabled when sharing with Quick Share during your trial."})})},mD=({allowTabNavigation:e=!0,className:t="","data-testid":s,id:o,ref:r,tagName:a="div",value:i})=>{const c=ze(),l=c&&"externalLinksDisabled"in c?c.externalLinksDisabled:!1,d=At(),h=(0,u.useRef)(null),m=Oe(i),[p,v]=(0,u.useState)([]),{handleMouseEnter:C,handleMouseLeave:g,handleFocus:x,handleBlur:S}=Rl(),{currentLocale:L}=ct(),b=dn(),y=(0,u.useMemo)(()=>{const T=t0(m),k=Array.prototype.concat(LD,SD,vD,fD,gD(L,b),l?CD:[],e?bD:xD,yD(d?.a11yNoticeLinkNewTab));return pD(k,T)},[e,L,b,l,d,m]);return(0,u.useLayoutEffect)(()=>{if(!l||!h.current){v([]);return}const T=[];h.current.querySelectorAll("[data-tooltip-target]").forEach((N,I)=>{const w=N.nextElementSibling;if(w?.hasAttribute("data-external")){const R=w.getAttribute("data-external-text")||"",E=w.getAttribute("data-external-id")||`link-${I}`;T.push({placeholder:N,text:R,id:E})}}),v(T)},[y,l]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"aria-hidden":e?void 0:!0,className:`${t} brand--linkColor`,"data-l10n-id":wt(i),"data-testid":s,id:o,ref:T=>{h.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:y}),[y])})}),p.map(({placeholder:T,text:k,id:N})=>(0,n.jsxs)(u.Fragment,{children:[(0,gn.createPortal)((0,n.jsx)("span",{id:N,onBlur:()=>S(N),onFocus:()=>x(N),onMouseEnter:()=>C(N),onMouseLeave:()=>g(N),role:"button",style:{cursor:"pointer",color:"var(--arc-color-text-disabled)",textDecoration:"underline"},tabIndex:0,children:k}),T),(0,n.jsx)(Pl,{anchorId:N})]},N))]})};function pD(e,t){const s=document.createElement("div");s.innerHTML=t;for(const o of e)o(s);return s.innerHTML}const g6=e=>e.getAttribute("data-link-type")==="lesson"?!0:(e.getAttribute("href")??"").startsWith("#/lessons/");function fD(e){for(const t of e.querySelectorAll("a")){g6(t)?t.removeAttribute("target"):t.setAttribute("target","_blank");const o=new Set((t.getAttribute("rel")??"").split(/\s+/));o.delete("opener"),o.add("noopener"),o.add("noreferrer"),o.add("nofollow"),t.setAttribute("rel",Array.from(o).join(" "))}}function gD(e,t){return s=>{if(!(!e||e===t)){for(const o of s.querySelectorAll("a"))if(g6(o)){const r=o.getAttribute("href");if(r){const a=r.includes("?")?"&":"?";o.setAttribute("href",`${r}${a}locale=${encodeURIComponent(e)}`)}}}}}function vD(e){for(const t of e.querySelectorAll("table"))if(!t.parentElement.classList.contains("rise-table-wrap")){const s=document.createElement("div");s.className="rise-table-wrap",t.parentNode.replaceChild(s,t),s.appendChild(t)}}function CD(e){let t=0;const s=[];for(const o of e.querySelectorAll("a"))if(Zs(o.href)){const r=o.textContent||"",a=`external-link-anchor-${Date.now()}-${t++}`;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),s.push({placeholder:i,text:r,id:a})}return s}function xD(e){for(const t of e.querySelectorAll("a"))t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}function bD(e){for(const t of e.querySelectorAll("a"))t.removeAttribute("aria-hidden"),t.hasAttribute("data-external")?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}function yD(e="(opens in a new tab)"){return t=>{for(const s of t.querySelectorAll('a[target="_blank"]')){const o=document.createElement("span");o.className="visually-hidden-always",o.textContent=e,s.appendChild(o)}}}function LD(e){return J1(e).value}function SD(e){for(const t of e.querySelectorAll("rise-math")){const{shortDescription:s,longDescription:o}=t,r=t.querySelector('[slot="short-description"]'),a=t.querySelector('[slot="long-description"]');s==null&&r!=null&&(t.shortDescription=r.textContent),o==null&&a!=null&&(t.longDescription=a.textContent)}return e}const ke=mD,v6=z("cover");function TD(){const e=re(),t=YB(),s=Oe(e?.description);if(!s)return null;const o=Sa("description"),r=(0,Xt.uW)(e?.description)?{"data-l10n-id":e?.description?.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:v6("details-content-section"),children:[t?(0,n.jsx)(c6,{}):(0,n.jsx)(l6,{}),(0,n.jsx)(ke,{className:v6("details-content-description"),value:U1(s)},"text")]})})}const th=e=>{if(!e)return"";const t=fn()(e),s=fn()(),o=fn()(s).add(24,"hours");return t.isBefore(s)?"Overdue":t.isBefore(o)?`Due in ${s.to(t,!0)}`:`Due ${t.format("MMM D")}`},C6=e=>fn()(e).isSameOrBefore(fn()().add(3,"d"),"days");function kD({Default:e,...t}){const{dueAt:s}=t,r=s&&C6(s)?"brand--background":"brand--color";return(0,n.jsx)(e,{...t,className:r})}const ND=({children:e,disabled:t,onClick:s,to:o,...r},a)=>t?(0,n.jsx)("a",{"aria-disabled":"true",ref:a,role:"link",...r,children:e}):(0,n.jsx)(ls,{onClick:s,ref:a,to:o,...r,children:e}),ID=(0,u.forwardRef)(ND);function ED(){return!(typeof document>"u"||!("startViewTransition"in document)||co.isFirefox)}function jD(e){if(!ED()){const t=e();return Promise.resolve(t)}return new Promise(t=>{try{document.startViewTransition(async()=>{await e()}).finished.then(()=>t()).catch(()=>t())}catch{const s=e();Promise.resolve(s).then(()=>t()).catch(()=>t())}})}let sh=!1;function ho(e,t="default"){return sh?Promise.resolve():(sh=!0,jD(()=>{document.documentElement.classList.add(`transition-${t}`),e()}).then(()=>{document.documentElement.classList.remove(`transition-${t}`)}).finally(()=>{sh=!1}))}const x6=z("cover"),ds=De("CoverAction",()=>{const e=re(),{trackingQuizId:t,theme:s}=e,o=os(),r=window.viewType==="preview",a=Yv(),i=lw(),c=ha(),l=a?.id,d=s?.showStartButton??!0,h=ib()?c===100:ab(),p=i!=null?i:l,v=!r&&!1,{courseCTALabel:C}=Bw({isCourseComplete:h,percentCourseComplete:c}),g=G()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":v}),x=S=>{S.preventDefault(),ho(()=>{o(Gs(p))},"cover-to-lesson")};return d&&C?(0,n.jsx)("div",{className:x6("header-content-action-wrapper"),children:(0,n.jsx)(ID,{className:g,onClick:x,to:Gs(p),children:(0,n.jsx)("span",{className:x6("header-content-action-link-text"),children:C})})}):null});function qt(e){return(0,n.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e})}var b6,wD;const yhe=e=>b6(wD,{...e,viewBox:"0 0 8 8",children:b6("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 "})}),Lhe=null;var nh,AD,RD;const She=e=>nh(RD,{viewBox:"0 0 10 10",...e,children:AD("g",{fillRule:"evenodd",children:[nh("path",{d:"M0 4.107h10v2H0z"}),nh("path",{d:"M4 0h2v10H4z"})]})}),The=null;var oh,PD;const khe=({width:e="18",height:t="18",className:s})=>oh("svg",{"aria-hidden":"true",className:PD("i i-alert",s),focusable:"false",height:t,viewBox:"0 0 18 18",width:e,children:oh("g",{fill:"none",fillRule:"evenodd",stroke:"#DE1D1D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:oh("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),Nhe=null;function MD(e){return(0,n.jsxs)(qt,{viewBox:"0 0 16 12",...e,children:[(0,n.jsx)("path",{d:"M8.4148147,12 L1.05185184,12 C0.471229623,12 0,11.552 0,11 C0,10.448 0.471229623,10 1.05185184,10 L8.4148147,10 C8.99543692,10 9.46666654,10.448 9.46666654,11 C9.46666654,11.552 8.99543692,12 8.4148147,12"}),(0,n.jsx)("path",{d:"M12.2500002,2 L0.816666683,2 C0.365866674,2 0,1.552 0,1 C0,0.448 0.365866674,0 0.816666683,0 L12.2500002,0 C12.7008002,0 13.0666669,0.448 13.0666669,1 C13.0666669,1.552 12.7008002,2 12.2500002,2"}),(0,n.jsx)("path",{d:"M15,7 L1,7 C0.448,7 0,6.552 0,6 C0,5.448 0.448,5 1,5 L15,5 C15.552,5 16,5.448 16,6 C16,6.552 15.552,7 15,7"})]})}var OD,Ml;const Ihe=({width:e="20",height:t="20"})=>OD("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:t,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[Ml("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"}),Ml("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"}),Ml("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"}),Ml("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"})]}),Ehe=null;var y6,BD;const jhe=({width:e="15",height:t="15",className:s})=>y6("svg",{"aria-hidden":"true",className:BD("i i-all-blocks",s),focusable:"false",height:t,viewBox:"0 0 15 15",width:e,children:y6("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"})}),whe=null;var L6,DD;const Ahe=e=>L6(DD,{...e,viewBox:"0 0 15 15",children:L6("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"})}),Rhe=null;var HD,S6,FD;const Phe=({width:e="24",height:t="16",leftMovement:s="0",className:o})=>HD("svg",{"aria-hidden":"true",className:FD("i i-alt",o),focusable:"false",height:t,style:{marginLeft:s},viewBox:"0 0 24 16",width:e,children:[S6("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"}),S6("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"})]}),Mhe=null;var VD,T6;const Ohe=({className:e,width:t="20",height:s="20",focusable:o="false"})=>VD("svg",{className:e,fill:"none",focusable:o,height:s,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[T6("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"}),T6("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"})]}),Bhe=null;var zD,rh,$D;const Dhe=({title:e="Export",desc:t="An arrow bending itself to the right",width:s="16",height:o="13",className:r,focusable:a="false"})=>zD("svg",{className:$D("i",r),focusable:a,height:o,viewBox:"0 0 16 13",width:s,children:[rh("title",{children:e}),rh("desc",{children:t}),rh("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"})]}),Hhe=null;var k6,_D;function Fhe(e){return k6(_D,{viewBox:"0 0 384 512",...e,children:k6("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 UD,N6,GD;function Vhe(e){return UD(GD,{viewBox:"0 0 22 22",...e,children:[N6("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"}),N6("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 WD,ah,KD;const zhe=({title:e="Export",desc:t="An arrow pointing right",width:s="16",height:o="8",className:r,focusable:a="false",decorative:i})=>WD("svg",{"aria-hidden":i?"true":"false",className:KD("i",r),focusable:a,height:o,viewBox:"0 0 16 8",width:s,children:[ah("title",{children:e}),ah("desc",{children:t}),ah("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"})]}),$he=null;var I6,QD;function _he(e){return I6(QD,{viewBox:"0 0 384 512",...e,children:I6("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 ZD,E6,YD;function Uhe(e){return ZD(YD,{viewBox:"0 0 22 22",...e,children:[E6("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"}),E6("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 j6,XD;const Ghe=e=>j6(XD,{viewBox:"0 0 10 12",...e,children:j6("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"})}),Whe=null;var w6,Mi,qD;const Khe=({title:e="Background Image",desc:t="Background Image",width:s="18",height:o="18",className:r,focusable:a="false"})=>w6("svg",{className:qD("i i-background-image",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[Mi("title",{children:e}),Mi("desc",{children:t}),w6("g",{children:[" ",Mi("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"})," ",Mi("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"})," ",Mi("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"})," "]})]}),Qhe=null;var JD,ih,eH;const Zhe=({title:e="Bank",desc:t="A building with four columns",width:s="16",height:o="16",className:r,focusable:a="false"})=>JD("svg",{className:eH("i i-bank",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[ih("title",{children:e}),ih("desc",{children:t}),ih("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"})]}),Yhe=null;var tH,A6,sH;function Xhe(e){return tH(sH,{fill:"none",viewBox:"0 0 14 14",...e,children:[A6("rect",{height:"8.3",stroke:"currentColor",strokeWidth:"1.5",width:"8.3",x:"0.75",y:"0.75"}),A6("rect",{height:"8.3",rx:"1.35",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",width:"8.3",x:"4.9502",y:"4.9502"})]})}var nH,Oi,oH;function qhe(e){return nH(oH,{viewBox:"0 0 14 15",...e,children:[Oi("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"}),Oi("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"}),Oi("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"}),Oi("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"}),Oi("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 rH,Ol,aH;const Jhe=({title:e="All Authors",desc:t="A circle with the outline of the head and shoulders of two people inside",width:s="30",height:o="30",className:r,focusable:a="false"})=>rH("svg",{className:aH("i i-blockTemplateAllAuthors",r),focusable:a,height:o,viewBox:"0 0 30 30",width:s,children:[Ol("title",{children:e}),Ol("desc",{children:t}),Ol("circle",{cx:"14.963",cy:"14.963",fill:"#E9E9E9",r:"14.963"}),Ol("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"})]}),eme=null;var Bl,Cn,iH;const tme=({title:e="Check Mark",desc:t="A circle with a check mark inside",width:s="112",height:o="112",className:r,focusable:a="false"})=>Bl("svg",{className:iH("i i-blockTemplateCheckMark",r),focusable:a,height:o,viewBox:"0 0 112 112",width:s,children:[Cn("title",{children:e}),Cn("desc",{children:t}),Cn("defs",{children:Bl("filter",{filterUnits:"objectBoundingBox",height:"186.1%",id:"a",width:"186.1%",x:"-43.1%",y:"-40.3%",children:[Cn("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),Cn("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),Cn("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"}),Bl("feMerge",{children:[Cn("feMergeNode",{in:"shadowMatrixOuter1"}),Cn("feMergeNode",{in:"SourceGraphic"})]})]})}),Bl("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[Cn("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"}),Cn("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),Cn("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"})]})]}),sme=null;var R6,Dl,cH;const nme=({title:e="Folder Outline",desc:t="Outline of a folder",width:s="42",height:o="42",className:r,focusable:a="false"})=>R6("svg",{className:cH("i i-blockTemplateFolder",r),focusable:a,height:o,viewBox:"0 0 42 42",width:s,children:[Dl("title",{children:e}),Dl("desc",{children:t}),R6("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[Dl("path",{d:"M34.043 6.971a.87.87 0 0 0-.87-.87h-17.53l.7.354-3.756-5.101a.87.87 0 0 0-.7-.354H1.87a.87.87 0 0 0-.87.87v34.434C1 38.894 3.067 41 5.626 41a.87.87 0 1 0 0-1.74c-1.59 0-2.887-1.32-2.887-2.956V1.87l-.87.87h10.018l-.7-.355 3.756 5.102a.87.87 0 0 0 .7.354h17.53l-.869-.87v7.652a.87.87 0 1 0 1.74 0V6.971z"}),Dl("path",{d:"M9.116 36.348a2.906 2.906 0 0 1-2.899 2.913V41h30.145A4.645 4.645 0 0 0 41 36.348V14.913a.87.87 0 0 0-.87-.87H9.986a.87.87 0 0 0-.87.87v21.435zm.87-20.565H40.13l-.87-.87v21.435a2.906 2.906 0 0 1-2.898 2.913H6.217c-1.159 0-1.159 1.739 0 1.739a4.645 4.645 0 0 0 4.638-4.652V14.913l-.87.87z"})]})]}),ome=null,lH=({width:e="17",height:t="15",title:s="Book",desc:o="Book",focusable:r="false",className:a})=>(0,n.jsxs)("svg",{className:a,focusable:r,height:t,viewBox:"0 0 17 15",width:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:s}),(0,n.jsx)("desc",{children:o}),(0,n.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 dH,ch,uH;const ame=({title:e="Building",desc:t="Building with windows",width:s="18",height:o="18",className:r,focusable:a="false"})=>dH("svg",{className:uH("icon",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[ch("title",{children:e}),ch("desc",{children:t}),ch("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"})]}),ime=null;var lh,Bi,hH;const cme=({title:e="Captions",desc:t="Two capital letter C inside a square",width:s="24",height:o="16",className:r,focusable:a="false"})=>lh("svg",{className:hH("i i-captions",r),focusable:a,height:o,viewBox:"0 0 24 16",width:s,children:[Bi("title",{children:e}),Bi("desc",{children:t}),lh("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[Bi("rect",{height:"13.25",rx:"1",stroke:"#000",strokeWidth:"1.75",width:"18.25",x:"1.447",y:"1.402"}),lh("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[Bi("tspan",{x:"4.222",y:"11.5",children:"C"})," ",Bi("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),lme=null;var mH,dh;const dme=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>mH("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&dh("title",{children:i}),o&&dh("desc",{children:o}),dh("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"})]}),ume=null;var pH,uh,fH;const hme=({title:e="Character",desc:t="Character",width:s="13",height:o="16",className:r,focusable:a="false"})=>pH("svg",{className:fH("i i-character",r),focusable:a,height:o,viewBox:"0 0 13 16",width:s,children:[uh("title",{children:e}),uh("desc",{children:t}),uh("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"})]}),mme=null;function P6(e){return(0,n.jsx)(qt,{viewBox:"0 0 11 8",...e,children:(0,n.jsx)("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"})})}var gH,hh,vH;const pme=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="21",role:a="img",title:i,width:c="21"})=>gH("svg",{"aria-hidden":e,"aria-label":t,className:vH("i i-checkMarkFilled",s),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&hh("title",{children:i}),o&&hh("desc",{children:o}),hh("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"})]}),fme=null;var M6,CH;function gme(e){return M6(CH,{viewBox:"0 0 7 5",...e,children:M6("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 O6,xH;const vme=({width:e="16",height:t="16",className:s,focusable:o="false"})=>O6("svg",{"aria-hidden":"true",className:xH("i i-chevronLeft",s),focusable:o,height:t,viewBox:"0 0 16 16",width:e,children:O6("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),Cme=null;var B6,bH;const xme=e=>B6(bH,{viewBox:"0 0 6 10",...e,children:B6("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"})}),bme=null,yH=({className:e,dataTestId:t})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:e,"data-testid":t,fill:"currentColor",focusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"5",cy:"5",r:"5"})});var D6,Hl,LH;const Lme=({title:e="Clock",desc:t="Image of a clock with two hands",width:s="14",height:o="13",className:r,focusable:a="false"})=>D6("svg",{className:LH("i",r),focusable:a,height:o,viewBox:"0 0 14 13",width:s,children:[Hl("title",{children:e}),Hl("desc",{children:t}),D6("g",{children:[Hl("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"}),Hl("path",{d:"M7.81299 3.25H6.18799V7.313H10.25V5.688H7.81199L7.81299 3.25Z"})]})]}),Sme=null,SH=({className:e})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",foocusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z"})});var TH,H6,kH;function kme(e){return TH(kH,{viewBox:"0 0 16 16",...e,children:[H6("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"}),H6("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 NH,Ys;const Nme=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="18",role:a="img",title:i,width:c="18"})=>NH("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Ys("title",{children:i}),o&&Ys("desc",{children:o}),Ys("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),Ys("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),Ys("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),Ys("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),Ys("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),Ys("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),Ys("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),Ys("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),Ys("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),Ys("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),Ime=null;var IH,mh,EH;const Eme=({title:e="Continue Block",desc:t="Continue Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>IH("svg",{className:EH("i i-continue-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[mh("title",{children:e}),mh("desc",{children:t}),mh("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"})]}),jme=null;var jH,ph,wH;const wme=({title:e="Convert",desc:t="Convert to block",width:s="14",height:o="12",className:r,focusable:a="false"})=>jH("svg",{className:wH("i i-convert",r),focusable:a,height:o,viewBox:"0 0 14 12",width:s,children:[ph("title",{children:e}),ph("desc",{children:t}),ph("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"})]}),Ame=null;var AH,F6,RH;function Rme(e){return AH(RH,{...e,viewBox:"0 0 16 16",children:[F6("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"}),F6("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 PH,fh,MH;const Pme=({title:e="Copy",desc:t="A document stacked on top of another one",width:s="15",height:o="18",className:r=null,focusable:a="false"})=>PH("svg",{className:MH("i i-stack",r),focusable:a,height:o,viewBox:"0 0 15 18",width:s,children:[fh("title",{children:e}),fh("desc",{children:t}),fh("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"})]}),Mme=null;var OH,gh,BH;const Ome=({title:e="Copy lesson",desc:t="Copy lesson",width:s="15",height:o="15",className:r,focusable:a="false"})=>OH("svg",{className:BH("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[gh("title",{children:e}),gh("desc",{children:t}),gh("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"})]}),Bme=null;var DH,Fl;const Dme=({title:e="Corner up-right",desc:t="An arrow moving up & to the right",width:s="16",height:o="16",className:r,focusable:a="false"})=>DH("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:s,xmlns:"http://www.w3.org/2000/svg",children:[Fl("title",{children:e}),Fl("desc",{children:t}),Fl("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"}),Fl("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"})]}),Hme=null;var HH,vh,FH;const Fme=e=>{const{className:t,desc:s="Crop",focusable:o="false",height:r="19",title:a="Crop",width:i="19"}=e,c={className:FH("i i-crop",t),focusable:o,height:r,viewBox:`0 0 ${i} ${r}`,width:i};return HH("svg",{...c,children:[vh("title",{children:a}),vh("desc",{children:s}),vh("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"})]})},Vme=null;var VH,Ch,zH;const zme=({"aria-hidden":e,"aria-label":t="Dash mark",className:s,desc:o,height:r="3",role:a="img",title:i,width:c="7"})=>VH("svg",{"aria-hidden":e,"aria-label":t,className:zH("i i-dashMark",s),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Ch("title",{children:i}),o&&Ch("desc",{children:o}),Ch("rect",{height:"3",width:"7"})]}),$me=null;var $H,V6;const _me=({width:e="20",height:t="20",focusable:s="false"})=>$H("svg",{fill:"none",focusable:s,height:t,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[V6("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"}),V6("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"})]}),Ume=null,_H=({title:e="DestinationArrow",desc:t="DestinationArrow",width:s="13",height:o="10",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:G()("i i-destinationArrow",r),focusable:a,height:o,viewBox:"0 0 13 10",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("path",{d:"M0 5c0 .345.264.625.59.625h10.393L7.855 8.933a.65.65 0 0 0 0 .884.573.573 0 0 0 .418.183.573.573 0 0 0 .418-.183l4.136-4.374a.66.66 0 0 0 0-.885L8.691.183a.568.568 0 0 0-.836 0 .65.65 0 0 0 0 .884l3.128 3.308H.591C.264 4.375 0 4.655 0 5"})]});var UH,xh,GH;const Wme=({title:e="Dialogue Slide",desc:t="Dialogue Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>UH("svg",{className:GH("i i-dialogue-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[xh("title",{children:e}),xh("desc",{children:t}),xh("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"})]}),Kme=null;var WH,Di;const Qme=({title:e="Disk",desc:t="An old floppy disk",width:s="16",height:o="16",className:r,focusable:a="false"})=>WH("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:s,xmlns:"http://www.w3.org/2000/svg",children:[Di("title",{children:e}),Di("desc",{children:t}),Di("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"}),Di("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"}),Di("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"})]}),Zme=null;var KH,Yme;class Xme extends null{render(){return KH("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 qme=null;var z6,QH;const Jme=({width:e=20,height:t=20,...s})=>z6(QH,{height:t,width:e,...s,viewBox:"0 0 20 20",children:z6("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"})}),epe=null;var ZH,bh,YH;const tpe=({title:e="Vertical Dots",desc:t="Vertical Dots",width:s="4",height:o="24",className:r=null,focusable:a="false"})=>ZH("svg",{className:YH("i i-dotsVertical",r),focusable:a,height:o,viewBox:"0 0 4 24",width:s,children:[bh("title",{children:e}),bh("desc",{children:t}),bh("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"})]}),spe=null,XH=({title:e="Download",desc:t="Arrow down with horizontal line beneath it",width:s="16",height:o="19",className:r,focusable:a="false"},i)=>(0,n.jsxs)("svg",{className:G()("i i-download",r),focusable:a,height:o,ref:i,viewBox:"0 0 16 19",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("rect",{height:"2",rx:"1",width:"16",y:"17"}),(0,n.jsx)("path",{d:"M4.464 8.293A1 1 0 1 0 3.05 9.707l4.24 4.24c.4.4 1.028.392 1.42 0l4.24-4.24a1 1 0 1 0-1.414-1.414L8 4.757 4.464 8.293zm0 0L8 4.757l3.536 3.536L8 11.828 4.464 8.293z"}),(0,n.jsx)("path",{d:"M7 0h2v12H7z"})]}),qH=(0,u.forwardRef)(XH);var JH,Hi,eF;const npe=({title:e="Download Circle",desc:t="Arrow down with horizontal line beneath it wrapped up in a circle",width:s="51",height:o="51",className:r,focusable:a="false"})=>JH("svg",{className:eF("i i-downloadCircle",r),focusable:a,height:o,viewBox:"0 0 51 51",width:s,children:[Hi("title",{children:e}),Hi("desc",{children:t}),Hi("g",{fill:"none",stroke:"none",children:Hi("g",{fill:"#000",transform:"translate(-695, -227)",children:Hi("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"})})})]}),ope=null;var tF,$6,sF;function rpe(e){return tF(sF,{viewBox:"0 0 13 13",...e,children:[$6("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"}),$6("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 nF,Vl,oF;const ape=({title:e="Draw",desc:t="Arrow down with horizontal line beneath it",width:s="15",height:o="15",className:r,focusable:a="false"})=>nF("svg",{className:oF("i i-drawFromQuestionBank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[Vl("title",{children:e}),Vl("desc",{children:t}),Vl("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"}),Vl("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"})]}),ipe=null;var rF,yh,aF;const cpe=e=>rF(aF,{height:"16",viewBox:"0 0 16 4",width:"4",...e,children:[yh("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"}),yh("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"}),yh("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"})]}),lpe=null;var iF,Fi,cF;const dpe=({title:e="More",desc:t="Three dots next to one another",width:s="16",height:o="4",className:r=null,focusable:a="false"})=>iF("svg",{className:cF("i",r),focusable:a,height:o,viewBox:"0 0 16 4",width:s,children:[Fi("title",{children:e}),Fi("desc",{children:t}),Fi("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"}),Fi("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"}),Fi("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"})]}),upe=null;var _6,Vi,lF;const hpe=({title:e="Draggable",desc:t="Three dots stacked on top of one another",width:s="4",height:o="14",className:r,focusable:a="false"})=>_6("svg",{className:lF("i i-ellipsis--vert",r),focusable:a,height:o,viewBox:"0 0 4 14",width:s,children:[Vi("title",{children:e}),Vi("desc",{children:t}),_6("g",{transform:"translate(.158 .445)",children:[Vi("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),Vi("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),Vi("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),mpe=null;var dF,Lh,uF;const ppe=({title:e="Embed",desc:t="Embed icon",width:s="16",height:o="15",className:r,focusable:a="false"})=>dF("svg",{className:uF("i i-embed",r),focusable:a,height:o,viewBox:"0 0 16 15",width:s,children:[Lh("title",{children:e}),Lh("desc",{children:t}),Lh("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"})]}),fpe=null;var hF,zl,mF;const gpe=({title:e="Empty folder",desc:t="Empty folder",width:s="46",height:o="46",className:r,focusable:a="false"})=>hF("svg",{className:mF("i i-emptyFolder",r),focusable:a,height:o,viewBox:"0 0 46 46",width:s,children:[zl("title",{children:e}),zl("desc",{children:t}),zl("path",{d:"M38 6.867a1 1 0 0 0-1-1H16.84l.805.407-4.32-5.867A1 1 0 0 0 12.52 0H1a1 1 0 0 0-1 1v39.6C0 43.578 2.377 46 5.32 46a1 1 0 0 0 0-2C3.49 44 2 42.482 2 40.6V1L1 2h11.52l-.805-.407 4.32 5.867a1 1 0 0 0 .805.407H37l-1-1v8.8a1 1 0 0 0 2 0v-8.8z"}),zl("path",{d:"M9.333 40.65A3.341 3.341 0 0 1 6 44v2h34.667C43.613 46 46 43.604 46 40.65V16a1 1 0 0 0-1-1H10.333a1 1 0 0 0-1 1v24.65zm1-23.65H45l-1-1v24.65A3.341 3.341 0 0 1 40.667 44H6c-1.333 0-1.333 2 0 2 2.947 0 5.333-2.396 5.333-5.35V16l-1 1z"})]}),vpe=null;var pF,$l,fF;const Cpe=({title:e="End Slide",desc:t="End Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>pF("svg",{className:fF("i i-end-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,children:[$l("title",{children:e}),$l("desc",{children:t}),$l("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"}),$l("rect",{fillRule:"evenodd",height:"14",width:"2",x:"14"})]}),xpe=null;var U6,_l,gF;const bpe=({title:e="Envelope",desc:t="Envelope",width:s="17",height:o="14",className:r,focusable:a="false"})=>U6("svg",{className:gF("i i-envelope",r),focusable:a,height:o,viewBox:"0 0 17 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[_l("title",{children:e}),_l("desc",{children:t}),U6("g",{fillRule:"nonzero",children:[_l("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"}),_l("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"})]})]}),ype=null;var vF,Ul,CF;const Lpe=({title:e="Error",desc:t="An x with a circle",width:s="50",height:o="50",className:r,focusable:a="false"})=>vF("svg",{className:CF("i i-error",r),focusable:a,height:o,viewBox:"0 0 50 50",width:s,children:[Ul("title",{children:e}),Ul("desc",{children:t}),Ul("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"}),Ul("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"})]}),Spe=null;var xF,Gl,bF;const Tpe=({title:e="Error Alert",desc:t="A red circle with a white exclamation point in the middle",width:s="18",height:o="18",className:r,focusable:a="false"})=>xF("svg",{className:bF("i i-errorAlert",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[Gl("title",{children:e}),Gl("desc",{children:t}),Gl("circle",{cx:"9",cy:"9",r:"9"}),Gl("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"})]}),kpe=null,G6=({"aria-hidden":e,"aria-label":t="X mark",className:s,dataTestId:o="x-mark",desc:r,height:a="10",overrideStyle:i=!1,role:c="img",title:l,width:d="10"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:G()(s,{"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:[l&&(0,n.jsx)("title",{children:l}),r&&(0,n.jsx)("desc",{children:r}),(0,n.jsx)("path",{d:"M5,4.17,9.17,0,10,.83,5.83,5,10,9.17,9.17,10,5,5.83.83,10,0,9.17,4.17,5,0,.83.83,0Z"})]});var yF,Wl,LF;const Ipe=({title:e="Export",desc:t="Export",width:s="12",height:o="15",className:r,focusable:a="false"})=>yF("svg",{className:LF("i i-export",r),focusable:a,height:o,viewBox:"0 0 12 15",width:s,children:[Wl("title",{children:e}),Wl("desc",{children:t}),Wl("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),Wl("rect",{height:"2",width:"10",x:"1",y:"12"})]}),Epe=null,W6=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,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,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#DFE1E2",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#C7CACC",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"})]}),SF=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,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,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#C3CEED",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M14.8355 26.9904C14.8355 27.5698 14.7346 28.1051 14.533 28.5964C14.335 29.0841 14.0545 29.5076 13.6915 29.8669C13.3285 30.2226 12.8903 30.5013 12.377 30.7029C11.8673 30.9009 11.3008 30.9999 10.6775 30.9999H7.56445V22.9864H10.6775C11.3008 22.9864 11.8673 23.0873 12.377 23.2889C12.8903 23.4906 13.3285 23.7693 13.6915 24.1249C14.0545 24.4806 14.335 24.9041 14.533 25.3954C14.7346 25.8831 14.8355 26.4148 14.8355 26.9904ZM12.9325 26.9904C12.9325 26.5944 12.8811 26.2369 12.7785 25.9179C12.6758 25.5989 12.5273 25.3294 12.333 25.1094C12.1423 24.8858 11.9076 24.7153 11.629 24.5979C11.3503 24.4769 11.0331 24.4164 10.6775 24.4164H9.43445V29.5699H10.6775C11.0331 29.5699 11.3503 29.5113 11.629 29.3939C11.9076 29.2729 12.1423 29.1024 12.333 28.8824C12.5273 28.6588 12.6758 28.3874 12.7785 28.0684C12.8811 27.7494 12.9325 27.3901 12.9325 26.9904Z",fill:"#0C3092"}),(0,n.jsx)("path",{d:"M24.6375 26.9904C24.6375 27.5698 24.5367 28.1088 24.335 28.6074C24.137 29.1061 23.8565 29.5406 23.4935 29.9109C23.1305 30.2776 22.6923 30.5654 22.179 30.7744C21.6693 30.9834 21.1028 31.0879 20.4795 31.0879C19.8562 31.0879 19.2878 30.9834 18.7745 30.7744C18.2612 30.5654 17.8212 30.2776 17.4545 29.9109C17.0915 29.5406 16.8092 29.1061 16.6075 28.6074C16.4095 28.1088 16.3105 27.5698 16.3105 26.9904C16.3105 26.4111 16.4095 25.8721 16.6075 25.3734C16.8092 24.8748 17.0915 24.4421 17.4545 24.0754C17.8212 23.7088 18.2612 23.4209 18.7745 23.2119C19.2878 23.0029 19.8562 22.8984 20.4795 22.8984C21.1028 22.8984 21.6693 23.0048 22.179 23.2174C22.6923 23.4264 23.1305 23.7143 23.4935 24.0809C23.8565 24.4476 24.137 24.8803 24.335 25.3789C24.5367 25.8776 24.6375 26.4148 24.6375 26.9904ZM22.7345 26.9904C22.7345 26.5944 22.6832 26.2388 22.5805 25.9234C22.4779 25.6044 22.3293 25.3349 22.135 25.1149C21.9443 24.8949 21.7097 24.7263 21.431 24.6089C21.1523 24.4916 20.8352 24.4329 20.4795 24.4329C20.1202 24.4329 19.7993 24.4916 19.517 24.6089C19.2383 24.7263 19.0018 24.8949 18.8075 25.1149C18.6168 25.3349 18.4702 25.6044 18.3675 25.9234C18.2648 26.2388 18.2135 26.5944 18.2135 26.9904C18.2135 27.3901 18.2648 27.7494 18.3675 28.0684C18.4702 28.3838 18.6168 28.6514 18.8075 28.8714C19.0018 29.0914 19.2383 29.2601 19.517 29.3774C19.7993 29.4911 20.1202 29.5479 20.4795 29.5479C20.8352 29.5479 21.1523 29.4911 21.431 29.3774C21.7097 29.2601 21.9443 29.0914 22.135 28.8714C22.3293 28.6514 22.4779 28.3838 22.5805 28.0684C22.6832 27.7494 22.7345 27.3901 22.7345 26.9904Z",fill:"#0C3092"}),(0,n.jsx)("path",{d:"M31.9109 28.9264C31.9549 28.9264 31.9989 28.9356 32.0429 28.9539C32.0869 28.9686 32.129 28.9961 32.1694 29.0364L32.9064 29.8119C32.5837 30.2336 32.1785 30.5526 31.6909 30.7689C31.2069 30.9816 30.633 31.0879 29.9694 31.0879C29.3607 31.0879 28.8144 30.9853 28.3304 30.7799C27.85 30.5709 27.4412 30.2849 27.1039 29.9219C26.7702 29.5553 26.5135 29.1226 26.3339 28.6239C26.1542 28.1216 26.0644 27.5771 26.0644 26.9904C26.0644 26.3928 26.167 25.8446 26.3724 25.3459C26.5777 24.8436 26.8637 24.4109 27.2304 24.0479C27.6007 23.6849 28.0425 23.4026 28.5559 23.2009C29.0692 22.9993 29.6357 22.8984 30.2554 22.8984C30.556 22.8984 30.8384 22.9259 31.1024 22.9809C31.37 23.0323 31.6194 23.1056 31.8504 23.2009C32.0814 23.2926 32.294 23.4044 32.4884 23.5364C32.6827 23.6648 32.855 23.8078 33.0054 23.9654L32.3784 24.8069C32.338 24.8583 32.2904 24.9059 32.2354 24.9499C32.1804 24.9903 32.1034 25.0104 32.0044 25.0104C31.9384 25.0104 31.876 24.9958 31.8174 24.9664C31.7587 24.9371 31.6964 24.9023 31.6304 24.8619C31.5644 24.8179 31.491 24.7721 31.4104 24.7244C31.3334 24.6731 31.2399 24.6273 31.1299 24.5869C31.0235 24.5429 30.897 24.5063 30.7504 24.4769C30.6074 24.4476 30.4387 24.4329 30.2444 24.4329C29.907 24.4329 29.599 24.4934 29.3204 24.6144C29.0417 24.7318 28.8015 24.9023 28.5999 25.1259C28.4019 25.3459 28.246 25.6136 28.1324 25.9289C28.0224 26.2443 27.9674 26.5981 27.9674 26.9904C27.9674 27.4011 28.0224 27.7659 28.1324 28.0849C28.246 28.4039 28.3982 28.6734 28.5889 28.8934C28.7832 29.1098 29.0087 29.2748 29.2654 29.3884C29.522 29.5021 29.797 29.5589 30.0904 29.5589C30.259 29.5589 30.413 29.5516 30.5524 29.5369C30.6917 29.5186 30.82 29.4893 30.9374 29.4489C31.0584 29.4086 31.172 29.3573 31.2784 29.2949C31.3884 29.2289 31.4984 29.1483 31.6084 29.0529C31.6524 29.0163 31.7 28.9869 31.7514 28.9649C31.8027 28.9393 31.8559 28.9264 31.9109 28.9264Z",fill:"#0C3092"})]});var TF,Kl,kF;const Ape=({title:e="No File",desc:t="Paper icon with one corner bent inwards",width:s="40",height:o="50",className:r,focusable:a="false"})=>TF("svg",{className:kF("i i-fileNone",r),focusable:a,height:o,viewBox:"0 0 40 50",width:s,children:[Kl("title",{children:e}),Kl("desc",{children:t}),Kl("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),Kl("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"})]}),Rpe=null,NF=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,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,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#F5D0CE",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M10.8678 28.3213V30.9998H9.00879V22.9863H11.8358C12.4005 22.9863 12.8845 23.0542 13.2878 23.1898C13.6948 23.3218 14.0285 23.5052 14.2888 23.7398C14.5528 23.9745 14.7471 24.2513 14.8718 24.5703C14.9965 24.8893 15.0588 25.234 15.0588 25.6043C15.0588 26.004 14.9946 26.3707 14.8663 26.7043C14.738 27.038 14.5418 27.324 14.2778 27.5623C14.0138 27.8007 13.6783 27.9877 13.2713 28.1233C12.868 28.2553 12.3895 28.3213 11.8358 28.3213H10.8678ZM10.8678 26.9188H11.8358C12.3198 26.9188 12.6681 26.8033 12.8808 26.5723C13.0935 26.3413 13.1998 26.0187 13.1998 25.6043C13.1998 25.421 13.1723 25.2542 13.1173 25.1038C13.0623 24.9535 12.978 24.8252 12.8643 24.7188C12.7543 24.6088 12.6131 24.5245 12.4408 24.4658C12.2721 24.4072 12.0705 24.3778 11.8358 24.3778H10.8678V26.9188Z",fill:"#771D18"}),(0,n.jsx)("path",{d:"M24.2944 26.9903C24.2944 27.5697 24.1936 28.105 23.9919 28.5963C23.7939 29.084 23.5134 29.5075 23.1504 29.8668C22.7874 30.2225 22.3493 30.5012 21.8359 30.7028C21.3263 30.9008 20.7598 30.9998 20.1364 30.9998H17.0234V22.9863H20.1364C20.7598 22.9863 21.3263 23.0872 21.8359 23.2888C22.3493 23.4905 22.7874 23.7692 23.1504 24.1248C23.5134 24.4805 23.7939 24.904 23.9919 25.3953C24.1936 25.883 24.2944 26.4147 24.2944 26.9903ZM22.3914 26.9903C22.3914 26.5943 22.3401 26.2368 22.2374 25.9178C22.1348 25.5988 21.9863 25.3293 21.7919 25.1093C21.6013 24.8857 21.3666 24.7152 21.0879 24.5978C20.8093 24.4768 20.4921 24.4163 20.1364 24.4163H18.8934V29.5698H20.1364C20.4921 29.5698 20.8093 29.5112 21.0879 29.3938C21.3666 29.2728 21.6013 29.1023 21.7919 28.8823C21.9863 28.6587 22.1348 28.3873 22.2374 28.0683C22.3401 27.7493 22.3914 27.39 22.3914 26.9903Z",fill:"#771D18"}),(0,n.jsx)("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"})]}),IF=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,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,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#FBDACC",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.2115 28.3213V30.9998H9.35254V22.9863H12.1795C12.7442 22.9863 13.2282 23.0542 13.6315 23.1898C14.0385 23.3218 14.3722 23.5052 14.6325 23.7398C14.8965 23.9745 15.0909 24.2513 15.2155 24.5703C15.3402 24.8893 15.4025 25.234 15.4025 25.6043C15.4025 26.004 15.3384 26.3707 15.21 26.7043C15.0817 27.038 14.8855 27.324 14.6215 27.5623C14.3575 27.8007 14.022 27.9877 13.615 28.1233C13.2117 28.2553 12.7332 28.3213 12.1795 28.3213H11.2115ZM11.2115 26.9188H12.1795C12.6635 26.9188 13.0119 26.8033 13.2245 26.5723C13.4372 26.3413 13.5435 26.0187 13.5435 25.6043C13.5435 25.421 13.516 25.2542 13.461 25.1038C13.406 24.9535 13.3217 24.8252 13.208 24.7188C13.098 24.6088 12.9569 24.5245 12.7845 24.4658C12.6159 24.4072 12.4142 24.3778 12.1795 24.3778H11.2115V26.9188Z",fill:"#7C2B0E"}),(0,n.jsx)("path",{d:"M19.2262 28.3213V30.9998H17.3672V22.9863H20.1942C20.7589 22.9863 21.2429 23.0542 21.6462 23.1898C22.0532 23.3218 22.3869 23.5052 22.6472 23.7398C22.9112 23.9745 23.1055 24.2513 23.2302 24.5703C23.3549 24.8893 23.4172 25.234 23.4172 25.6043C23.4172 26.004 23.353 26.3707 23.2247 26.7043C23.0964 27.038 22.9002 27.324 22.6362 27.5623C22.3722 27.8007 22.0367 27.9877 21.6297 28.1233C21.2264 28.2553 20.7479 28.3213 20.1942 28.3213H19.2262ZM19.2262 26.9188H20.1942C20.6782 26.9188 21.0265 26.8033 21.2392 26.5723C21.4519 26.3413 21.5582 26.0187 21.5582 25.6043C21.5582 25.421 21.5307 25.2542 21.4757 25.1038C21.4207 24.9535 21.3364 24.8252 21.2227 24.7188C21.1127 24.6088 20.9715 24.5245 20.7992 24.4658C20.6305 24.4072 20.4289 24.3778 20.1942 24.3778H19.2262V26.9188Z",fill:"#7C2B0E"}),(0,n.jsx)("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"})]}),EF=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,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,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.6738 28.0355V31H9.81476V22.9865H12.4218C13.0011 22.9865 13.4943 23.047 13.9013 23.168C14.3119 23.2853 14.6456 23.4503 14.9023 23.663C15.1626 23.8757 15.3514 24.1268 15.4688 24.4165C15.5861 24.7062 15.6448 25.0215 15.6448 25.3625C15.6448 25.6228 15.6099 25.8685 15.5403 26.0995C15.4706 26.3305 15.3661 26.545 15.2268 26.743C15.0911 26.9373 14.9224 27.1115 14.7208 27.2655C14.5228 27.4195 14.2936 27.546 14.0333 27.645C14.1579 27.7073 14.2734 27.7843 14.3798 27.876C14.4898 27.9677 14.5851 28.0795 14.6658 28.2115L16.3708 31H14.6878C14.3761 31 14.1524 30.8827 14.0168 30.648L12.6858 28.3215C12.6271 28.2188 12.5574 28.1455 12.4768 28.1015C12.3998 28.0575 12.2898 28.0355 12.1468 28.0355H11.6738ZM11.6738 26.754H12.4218C12.6748 26.754 12.8893 26.7228 13.0653 26.6605C13.2449 26.5945 13.3916 26.5047 13.5053 26.391C13.6189 26.2773 13.7014 26.1453 13.7528 25.995C13.8041 25.841 13.8298 25.676 13.8298 25.5C13.8298 25.148 13.7143 24.873 13.4833 24.675C13.2559 24.477 12.9021 24.378 12.4218 24.378H11.6738V26.754Z",fill:"#144E6C"}),(0,n.jsx)("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),(0,n.jsx)("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"})]}),jF=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,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,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#D1E5D1",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M11.8861 26.8804L9.40564 22.9864H11.2646C11.3856 22.9864 11.4736 23.0029 11.5286 23.0359C11.5873 23.0653 11.6386 23.1166 11.6826 23.1899L13.2776 25.8904C13.296 25.8428 13.3161 25.7969 13.3381 25.7529C13.3638 25.7089 13.3913 25.6631 13.4206 25.6154L14.8176 23.2174C14.9093 23.0634 15.034 22.9864 15.1916 22.9864H16.9736L14.4601 26.7979L17.0286 30.9999H15.1696C15.0486 30.9999 14.9496 30.9706 14.8726 30.9119C14.7993 30.8533 14.7406 30.7836 14.6966 30.7029L13.0906 27.8979C13.0613 27.9786 13.0283 28.0483 12.9916 28.1069L11.4956 30.7029C11.4516 30.7799 11.393 30.8496 11.3196 30.9119C11.2463 30.9706 11.1546 30.9999 11.0446 30.9999H9.30664L11.8861 26.8804Z",fill:"#265026"}),(0,n.jsx)("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),(0,n.jsx)("path",{d:"M29.9128 24.6144C29.8578 24.7024 29.7991 24.7684 29.7368 24.8124C29.6781 24.8564 29.6011 24.8784 29.5058 24.8784C29.4215 24.8784 29.3298 24.8528 29.2308 24.8014C29.1355 24.7464 29.0255 24.6859 28.9008 24.6199C28.7798 24.5539 28.6405 24.4953 28.4828 24.4439C28.3251 24.3889 28.1455 24.3614 27.9438 24.3614C27.5955 24.3614 27.3351 24.4366 27.1628 24.5869C26.9941 24.7336 26.9098 24.9334 26.9098 25.1864C26.9098 25.3478 26.9611 25.4816 27.0638 25.5879C27.1665 25.6943 27.3003 25.7859 27.4653 25.8629C27.634 25.9399 27.8246 26.0114 28.0373 26.0774C28.2536 26.1398 28.4736 26.2113 28.6973 26.2919C28.921 26.3689 29.1391 26.4606 29.3518 26.5669C29.5681 26.6733 29.7588 26.8089 29.9238 26.9739C30.0925 27.1389 30.2281 27.3406 30.3308 27.5789C30.4335 27.8136 30.4848 28.0978 30.4848 28.4314C30.4848 28.8018 30.4206 29.1483 30.2923 29.4709C30.164 29.7936 29.977 30.0759 29.7313 30.3179C29.4893 30.5563 29.1886 30.7451 28.8293 30.8844C28.4736 31.0201 28.0685 31.0879 27.6138 31.0879C27.3645 31.0879 27.1096 31.0623 26.8493 31.0109C26.5926 30.9596 26.3433 30.8881 26.1013 30.7964C25.8593 30.7011 25.632 30.5893 25.4193 30.4609C25.2066 30.3326 25.0215 30.1896 24.8638 30.0319L25.4138 29.1629C25.4541 29.0969 25.511 29.0438 25.5843 29.0034C25.6576 28.9631 25.7365 28.9429 25.8208 28.9429C25.9308 28.9429 26.0408 28.9778 26.1508 29.0474C26.2645 29.1171 26.391 29.1941 26.5303 29.2784C26.6733 29.3628 26.8365 29.4398 27.0198 29.5094C27.2031 29.5791 27.4195 29.6139 27.6688 29.6139C28.0061 29.6139 28.2683 29.5406 28.4553 29.3939C28.6423 29.2436 28.7358 29.0071 28.7358 28.6844C28.7358 28.4974 28.6845 28.3453 28.5818 28.2279C28.4791 28.1106 28.3435 28.0134 28.1748 27.9364C28.0098 27.8594 27.821 27.7916 27.6083 27.7329C27.3956 27.6743 27.1775 27.6101 26.9538 27.5404C26.7301 27.4671 26.512 27.3791 26.2993 27.2764C26.0866 27.1701 25.896 27.0326 25.7273 26.8639C25.5623 26.6916 25.4285 26.4789 25.3258 26.2259C25.2231 25.9693 25.1718 25.6539 25.1718 25.2799C25.1718 24.9793 25.2323 24.6859 25.3533 24.3999C25.4743 24.1139 25.6521 23.8591 25.8868 23.6354C26.1215 23.4118 26.4093 23.2339 26.7503 23.1019C27.0913 22.9663 27.4818 22.8984 27.9218 22.8984C28.1675 22.8984 28.4058 22.9186 28.6368 22.9589C28.8715 22.9956 29.0933 23.0524 29.3023 23.1294C29.5113 23.2028 29.7056 23.2926 29.8853 23.3989C30.0686 23.5016 30.2318 23.6189 30.3748 23.7509L29.9128 24.6144Z",fill:"#265026"})]}),wF=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,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,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M16.8968 22.9863V23.6573C16.8968 23.7527 16.8802 23.8462 16.8472 23.9378C16.8179 24.0295 16.7757 24.1157 16.7207 24.1963L12.9587 29.5698H16.7758V30.9998H10.5938V30.2848C10.5938 30.2005 10.6084 30.118 10.6377 30.0373C10.6671 29.953 10.7074 29.876 10.7587 29.8063L14.5317 24.4163H10.9017V22.9863H16.8968Z",fill:"#124F6E"}),(0,n.jsx)("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),(0,n.jsx)("path",{d:"M25.1301 28.3213V30.9998H23.2711V22.9863H26.0981C26.6627 22.9863 27.1467 23.0542 27.5501 23.1898C27.9571 23.3218 28.2907 23.5052 28.5511 23.7398C28.8151 23.9745 29.0094 24.2513 29.1341 24.5703C29.2587 24.8893 29.3211 25.234 29.3211 25.6043C29.3211 26.004 29.2569 26.3707 29.1286 26.7043C29.0002 27.038 28.8041 27.324 28.5401 27.5623C28.2761 27.8007 27.9406 27.9877 27.5336 28.1233C27.1302 28.2553 26.6517 28.3213 26.0981 28.3213H25.1301ZM25.1301 26.9188H26.0981C26.5821 26.9188 26.9304 26.8033 27.1431 26.5723C27.3557 26.3413 27.4621 26.0187 27.4621 25.6043C27.4621 25.421 27.4346 25.2542 27.3796 25.1038C27.3246 24.9535 27.2402 24.8252 27.1266 24.7188C27.0166 24.6088 26.8754 24.5245 26.7031 24.4658C26.5344 24.4072 26.3327 24.3778 26.0981 24.3778H25.1301V26.9188Z",fill:"#124F6E"})]});var AF,Ql,RF;const Hpe=({title:e="More",desc:t="Filled caret pointing right",width:s="7",height:o="5",className:r,focusable:a="false"})=>AF("svg",{className:RF("i i-filledChevronRight",r),focusable:a,height:o,viewBox:"0 0 5 7",width:s,children:[Ql("title",{children:e}),Ql("desc",{children:t}),Ql("g",{children:Ql("path",{d:"M4 3.625L1 1v5.25z",strokeLinecap:"round",strokeLinejoin:"round"})})]}),Fpe=null,K6=({title:e="Fill in the Blank",desc:t="Pencil writing on a surface",width:s="15",height:o="15",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:G()("i i-fillInTheBlank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("path",{d:"M2.488 8.246l5.25-5.25 1.4 1.4-5.25 5.25h-1.4v-1.4zm-.875 3.15h2.625a.794.794 0 0 0 .613-.262l6.125-6.125a.846.846 0 0 0 0-1.225L8.35 1.159a.846.846 0 0 0-1.225 0L1 7.284a.794.794 0 0 0-.263.612v2.625c0 .525.35.875.875.875zM.739 13.146h14v1.75h-14z"})]});var PF,Sh;const zpe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>PF("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Sh("title",{children:i}),o&&Sh("desc",{children:o}),Sh("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"})]}),$pe=null;var MF,Th,OF;const _pe=({title:e="Flashcard Block",desc:t="Flashcard Block",width:s="16",height:o="15",className:r,focusable:a="false"})=>MF("svg",{className:OF("i i-flashcard-block",r),focusable:a,height:o,viewBox:"0 0 16 15",width:s,children:[Th("title",{children:e}),Th("desc",{children:t}),Th("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"})]}),Upe=null;var Q6,BF;const Gpe=e=>Q6(BF,{viewBox:"0 0 15 15",...e,children:Q6("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"})}),Wpe=null;var DF,Z6,HF;function Kpe(e){return DF(HF,{...e,viewBox:"0 0 16 14",children:[Z6("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"}),Z6("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 FF,Zl,VF;const Qpe=({title:e="Folder Empty",desc:t="Folder outline empty",width:s="47",height:o="47",className:r,focusable:a="false"})=>FF("svg",{className:VF("i i-folder--empty",r),focusable:a,height:o,viewBox:"0 0 47 47",width:s,children:[Zl("title",{children:e}),Zl("desc",{children:t}),Zl("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"}),Zl("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"})]}),Zpe=null;var zF,kh,$F;const Ype=({title:e="Folder Outline",desc:t="Outline of a folder",width:s="24",height:o="24",className:r,focusable:a="false"})=>zF("svg",{className:$F("i",r),focusable:a,height:o,viewBox:"0 0 24 24",width:s,children:[kh("title",{children:e}),kh("desc",{children:t}),kh("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"})]}),Xpe=null;var _F,Nh,UF;const qpe=({title:e="FolderSort",desc:t="Sort by Folders",width:s="13",height:o="13",className:r,focusable:a="false"})=>_F("svg",{className:UF("i",r),focusable:a,height:o,viewBox:"0 0 13 13",width:s,children:[Nh("title",{children:e}),Nh("desc",{children:t}),Nh("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"})]}),Jpe=null;var GF,Ih,WF;const efe=({title:e="Font",desc:t="A capital letter T with a second smaller capital T to the right",width:s="35",height:o="27",className:r,focusable:a="false"})=>GF("svg",{className:WF("i",r),focusable:a,height:o,viewBox:"0 0 35 27",width:s,children:[Ih("title",{children:e}),Ih("desc",{children:t}),Ih("path",{d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z",fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2"})]}),tfe=null;var KF,Yl,QF;const sfe=e=>KF(QF,{...e,viewBox:"0 0 16 16",children:[Yl("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"}),Yl("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"}),Yl("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"}),Yl("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"})]}),nfe=null;var ZF,Xl,YF;const ofe=({title:e="Group",desc:t="Silhouettes of two people",width:s="18",height:o="17",className:r,focusable:a="false"})=>ZF("svg",{className:YF("i",r),focusable:a,height:o,viewBox:"0 0 18 17",width:s,children:[Xl("title",{children:e}),Xl("desc",{children:t}),Xl("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"}),Xl("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"})]}),rfe=null;var Y6,XF;function afe(e){return Y6(XF,{viewBox:"0 0 20 14",...e,children:Y6("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const Eh=({className:e,decorative:t=!0,desc:s="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:i="Heart",width:c="16"})=>(0,n.jsxs)("svg",{"aria-hidden":t,className:G()(`i i-heart${a?"Filled":"Outline"}`,e),focusable:o,height:r,viewBox:"0 0 16 16",width:c,children:[(0,n.jsx)("title",{children:i}),(0,n.jsx)("desc",{children:s}),(0,n.jsx)("path",{d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"})]});var qF,jh,JF;const cfe=({title:e="Hidden",desc:t="Eye crossed out",width:s="16",height:o="14",className:r=null,focusable:a="false"})=>qF("svg",{className:JF("i i-hidden",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,children:[jh("title",{children:e}),jh("desc",{children:t}),jh("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"})]}),lfe=null;var eV,wh,tV;const dfe=({title:e="Image Block",desc:t="Image Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>eV("svg",{className:tV("i i-image-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[wh("title",{children:e}),wh("desc",{children:t}),wh("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"})]}),ufe=null;var sV,Ah,nV;const hfe=({title:e="Labeled Graphic Block",desc:t="Labeled Graphic Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>sV("svg",{className:nV("i i-labeled-graphic-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[Ah("title",{children:e}),Ah("desc",{children:t}),Ah("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"})]}),mfe=null;var oV,ql,rV;const pfe=({title:e="Label Set",desc:t="Label Set",width:s="17",height:o="17",className:r,focusable:a="false"})=>oV("svg",{className:rV("i i-labelSet",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[ql("title",{children:e}),ql("desc",{children:t}),ql("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"}),ql("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"})]}),ffe=null;var aV,Rh,iV;function gfe(e){return aV(iV,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...e,children:[Rh("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"}),Rh("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),Rh("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"})]})}var cV,Ph;const vfe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>cV("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Ph("title",{children:i}),o&&Ph("desc",{children:o}),Ph("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"})]}),Cfe=null;var lV,Mh,dV;const xfe=({title:e="Lesson",desc:t="Lesson Icon",width:s="23",height:o="17",className:r,focusable:a="false"})=>lV("svg",{className:dV("i i-lesson",r),focusable:a,height:o,viewBox:"0 0 23 17",width:s,children:[Mh("title",{children:e}),Mh("desc",{children:t}),Mh("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"})]}),bfe=null;var uV,Oh,hV;const yfe=e=>uV(hV,{...e,viewBox:"0 0 16 16",children:[Oh("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"}),Oh("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"}),Oh("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"})]}),Lfe=null;var mV,Bh,pV;const Sfe=({title:e="List Block",desc:t="List Block",width:s="16",height:o="13",className:r,focusable:a="false"})=>mV("svg",{className:pV("i i-list-block",r),focusable:a,height:o,viewBox:"0 0 16 13",width:s,children:[Bh("title",{children:e}),Bh("desc",{children:t}),Bh("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"})]}),Tfe=null;var fV,Jl;const kfe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r,role:a="img",title:i,width:c})=>fV("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Jl("title",{children:i}),o&&Jl("desc",{children:o}),Jl("path",{clipRule:"evenodd",d:"M24 23C24 24.5064 23.1673 25.8183 21.9371 26.5005C21.9782 26.6602 22 26.8275 22 27V30C22 31.1046 21.1046 32 20 32C18.8954 32 18 31.1046 18 30V27C18 26.8275 18.0218 26.6602 18.0629 26.5005C16.8327 25.8183 16 24.5064 16 23C16 20.7909 17.7909 19 20 19C22.2091 19 24 20.7909 24 23ZM20 25C21.1046 25 22 24.1046 22 23C22 21.8954 21.1046 21 20 21C18.8954 21 18 21.8954 18 23C18 24.1046 18.8954 25 20 25Z",fill:"#000",fillRule:"evenodd"}),Jl("path",{clipRule:"evenodd",d:"M12 10V13C8.68629 13 6 15.6863 6 19V32C6 35.3137 8.68629 38 12 38H28C31.3137 38 34 35.3137 34 32V19C34 15.6863 31.3137 13 28 13V10C28 5.58172 24.4183 2 20 2C15.5817 2 12 5.58172 12 10ZM20 4C16.6863 4 14 6.68629 14 10V13H26V10C26 6.68629 23.3137 4 20 4ZM8 19C8 16.7909 9.79086 15 12 15H28C30.2091 15 32 16.7909 32 19V32C32 34.2091 30.2091 36 28 36H12C9.79086 36 8 34.2091 8 32V19Z",fill:"#000",fillRule:"evenodd"})]}),Nfe=null;var X6,gV;function Ife(e){return X6(gV,{viewBox:"0 0 20 22",...e,children:X6("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 vV,ed,CV;const Efe=({title:e="Mail",desc:t="Mail",width:s="14",height:o="12",className:r,focusable:a="false"})=>vV("svg",{className:CV("i",r),focusable:a,height:o,viewBox:"0 0 14 12",width:s,children:[ed("title",{children:e}),ed("desc",{children:t}),ed("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"}),ed("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"})]}),jfe=null;var xV,Dh,bV;const wfe=({title:e="Matching",desc:t="Two rows of stacked squares",width:s="15",height:o="15",className:r,focusable:a="false"})=>xV("svg",{className:bV("i i-matching",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[Dh("title",{children:e}),Dh("desc",{children:t}),Dh("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"})]}),Afe=null;var yV,zi,LV;const Rfe=({title:e="Move to Folder",desc:t="Folder with an arrow",width:s="15",height:o="15",className:r,focusable:a="false"})=>yV("svg",{className:LV("i i-move",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[zi("title",{children:e}),zi("desc",{children:t}),zi("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"}),zi("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),zi("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"})]}),Pfe=null;var SV,td,TV;const Mfe=({title:e="Multiple Choice",desc:t="Stacked circles to the left of stacked lines",width:s="16",height:o="16",className:r,focusable:a="false"})=>SV("svg",{className:TV("i i-multipleChoice",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[td("title",{children:e}),td("desc",{children:t}),td("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"}),td("circle",{cx:"7.904",cy:"7.904",r:"1.904"})]}),Ofe=null;var kV,Hh,NV;const Bfe=({title:e="Multiple Response",desc:t="A box with a checkmark in it",width:s="16",height:o="16",className:r,focusable:a="false"})=>kV("svg",{className:NV("i i-multipleResponse",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[Hh("title",{children:e}),Hh("desc",{children:t}),Hh("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"})]}),Dfe=null;var IV,Fh,EV;const Hfe=({"aria-hidden":e,title:t="New Folder",desc:s="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:i="false"})=>IV("svg",{"aria-hidden":e,className:EV("i i-newFolder",a),focusable:i,height:r,viewBox:"0 0 14 14",width:o,children:[t&&Fh("title",{children:t}),Fh("desc",{children:s}),Fh("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"})]}),Ffe=null;var jV,sd,wV;const Vfe=({title:e="New Slide",desc:t="New Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>jV("svg",{className:wV("i i-new-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[sd("title",{children:e}),sd("desc",{children:t}),sd("path",{d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z",fillRule:"evenodd"}),sd("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"})]}),zfe=null;var AV,Vh,RV;const $fe=({title:e="Next Slide",desc:t="Next Slide",width:s="16",height:o="13.4",className:r,focusable:a="false"})=>AV("svg",{className:RV("i i-next-slide",r),focusable:a,height:o,viewBox:"0 0 16 13.4",width:s,children:[Vh("title",{children:e}),Vh("desc",{children:t}),Vh("path",{d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0",fillRule:"evenodd"})]}),_fe=null;var PV,zh,MV;const Ufe=({title:e="Not Allowed",desc:t="A circle with a slanted line through it",width:s="12",height:o="12",className:r,focusable:a="false"})=>PV("svg",{className:MV("i i-notAllowed",r),focusable:a,height:o,viewBox:"0 0 12 12",width:s,children:[zh("title",{children:e}),zh("desc",{children:t}),zh("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"})]}),Gfe=null;var OV,q6;const Wfe=({className:e})=>OV("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",children:[q6("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"}),q6("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"})]}),Kfe=null;var BV,$i,DV;const Qfe=({title:e="Hide",desc:t="Shape of an eye with a stroke through it",width:s="20",height:o="16",className:r,focusable:a="false"})=>BV("svg",{className:DV("i",r),focusable:a,height:o,viewBox:"0 0 20 16",width:s,children:[$i("title",{children:e}),$i("desc",{children:t}),$i("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"}),$i("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"}),$i("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"})]}),Zfe=null;var HV,J6,FV;const Yfe=e=>HV(FV,{viewBox:"0 0 16 16",...e,children:[J6("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"}),J6("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"})]}),Xfe=null;var VV,$h,zV;const qfe=({title:e="Edit",desc:t="Pencil",width:s="11",height:o="11",className:r,focusable:a="false"})=>VV("svg",{className:zV("i i-pencil",r),focusable:a,height:o,viewBox:"0 0 10 10",width:s,children:[$h("title",{children:e}),$h("desc",{children:t}),$h("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"})]}),Jfe=null;var $V,_h;const e2e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>$V("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&_h("title",{children:i}),o&&_h("desc",{children:o}),_h("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"})]}),t2e=null;var _V,nd,UV;const s2e=({title:e="Person",desc:t="Person outline",width:s="16",height:o="18",className:r,focusable:a="false"})=>_V("svg",{className:UV("i",r),focusable:a,height:o,viewBox:"0 0 16 18",width:s,children:[nd("title",{children:e}),nd("desc",{children:t}),nd("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"}),nd("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"})]}),n2e=null;var GV=f(61919),yr=f.n(GV);class Uh extends u.Component{constructor(...t){super(...t),this.maskId=`person-unknown-mask-${yr()()}`,this.pathId=`person-unknown-path-${yr()()}`}render(){const{title:t="Person Unknown",desc:s,width:o="38",height:r="38",className:a,decorative:i,focusable:c="false"}=this.props;return(0,n.jsxs)("svg",{"aria-hidden":i,className:G()("i i-person-unknown",a),focusable:c,height:r,viewBox:"0 0 38 38",width:o,children:[t&&(0,n.jsx)("title",{children:t}),s&&(0,n.jsx)("desc",{children:s}),(0,n.jsx)("defs",{children:(0,n.jsx)("circle",{cx:"19",cy:"19",id:this.pathId,r:"19"})}),(0,n.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,n.jsx)("mask",{fill:"#fff",id:this.maskId,children:(0,n.jsx)("use",{href:`#${this.pathId}`})}),(0,n.jsx)("use",{fill:"#D8D8D8",href:`#${this.pathId}`}),(0,n.jsx)("path",{d:"M15.1239928,24 C12.6645753,22.6352711 11,20.0120267 11,17 C11,12.581722 14.581722,9 19,9 C23.418278,9 27,12.581722 27,17 C27,20.0120267 25.3354247,22.6352711 22.8760072,24 L23,24 C27.4182847,24 31,27.5817153 31,32 L31,43 C31,43.5522847 30.5522847,44 30,44 L8,44 C7.44771525,44 7,43.5522847 7,43 L7,32 C7,27.5817153 10.5817153,24 15,24 L15.1239928,24 Z",fill:"#ADAEAF",fillRule:"nonzero",mask:`url(#${this.maskId})`})]})]})}}const e5=({title:e="Pick One",desc:t="Pick One",width:s="16",height:o="14",className:r,focusable:a="false","aria-hidden":i})=>(0,n.jsxs)("svg",{"aria-hidden":i,className:G()("i i-pickOne",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsxs)("g",{fillRule:"evenodd",children:[(0,n.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,n.jsx)("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})]})]});var WV,od,KV;const r2e=({title:e="Play",desc:t="Triangle facing right that will play the media",width:s="16",height:o="22",className:r,focusable:a="false"})=>WV("svg",{className:KV("i",r),focusable:a,height:o,viewBox:"0 0 16 22",width:s,children:[od("desc",{children:t}),od("title",{children:e}),od("g",{transform:"translate(-124 -107)",children:od("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"})})]}),a2e=null;var QV,Gh,ZV;const i2e=({title:e="Process Block",desc:t="Process Block",width:s="29",height:o="17",className:r,focusable:a="false"})=>QV("svg",{className:ZV("i i-process-block",r),focusable:a,height:o,viewBox:"0 0 29 17",width:s,children:[Gh("title",{children:e}),Gh("desc",{children:t}),Gh("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"})]}),c2e=null;function YV(e){return(0,n.jsxs)(qt,{viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("path",{d:"M14,14 L2,14 L2,2 L14,2 L14,14 Z M15,0 L1,0 C0.4,0 0,0.4 0,1 L0,15 C0,15.6 0.4,16 1,16 L15,16 C15.6,16 16,15.6 16,15 L16,1 C16,0.4 15.6,0 15,0 L15,0 Z"}),(0,n.jsx)("path",{d:"M7.9997,11 C8.5517,11 8.9997,11.448 8.9997,12 C8.9997,12.552 8.5517,13 7.9997,13 C7.4477,13 6.9997,12.552 6.9997,12 C6.9997,11.448 7.4477,11 7.9997,11"}),(0,n.jsx)("path",{d:"M7.0997,5.5 C7.2997,5.2 7.5997,5 7.9997,5 C8.5997,5 8.9997,5.4 8.9997,6 C8.9997,6.3 8.8997,6.4 8.3997,6.7 C7.7997,7.1 6.9997,7.7 6.9997,9 L6.9997,10 L8.9997,10 L8.9997,9 C8.9997,8.8 8.9997,8.7 9.4997,8.4 C10.0997,8 10.9997,7.4 10.9997,6 C10.9997,4.3 9.6997,3 7.9997,3 C6.8997,3 5.8997,3.6 5.3997,4.5 L4.8997,5.4 L6.5997,6.4 L7.0997,5.5 Z"})]})}var XV,Wh,qV;const l2e=({title:e="Quiz",desc:t="Quiz Icon",width:s="25",height:o="25",className:r,focusable:a="false"})=>XV("svg",{className:qV("i i-quiz",r),focusable:a,height:o,viewBox:"0 0 25 25",width:s,children:[Wh("title",{children:e}),Wh("desc",{children:t}),Wh("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"})]}),d2e=null;var t5,JV;const u2e=e=>t5(JV,{...e,viewBox:"0 0 10 13",children:t5("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"})}),h2e=null;var ez,s5,tz;function m2e(e){return ez(tz,{viewBox:"0 0 15 14",...e,children:[s5("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"}),s5("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 n5,sz;function p2e(e){return n5(sz,{viewBox:"0 0 28 28",...e,children:n5("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 nz,Kh;const f2e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>nz("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Kh("title",{children:i}),o&&Kh("desc",{children:o}),Kh("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"})]}),g2e=null;function oz(e){return(0,n.jsx)(qt,{viewBox:"0 0 23 17",...e,children:(0,n.jsx)("path",{d:"M19.347 8.275l1.88 1.714a.727.727 0 0 0 .98-1.074l-3.225-2.941a.727.727 0 0 0-1.027.047l-2.94 3.224a.727.727 0 0 0 1.075.98l1.802-1.976a6.545 6.545 0 0 1-11.56 4.288.727.727 0 1 0-1.114.935 8 8 0 0 0 14.129-5.197zm-16.039.162l-1.79-1.633a.727.727 0 1 0-.98 1.074l3.223 2.94c.297.272.757.25 1.028-.046l2.94-3.224a.727.727 0 0 0-1.075-.98L4.768 8.636a6.545 6.545 0 0 1 11.555-4.482.727.727 0 1 0 1.114-.936A8 8 0 0 0 3.308 8.437z",fillRule:"nonzero"})})}var o5,rz;const v2e=({width:e="16",height:t="16",className:s})=>o5("svg",{"aria-hidden":"true",className:rz("i i-search",s),fill:"currentColor",focusable:"false",height:t,viewBox:"0 0 15.6 14.7",width:e,children:o5("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"})}),C2e=null;var r5,az;const x2e=e=>r5(az,{...e,viewBox:"0 0 15 15",children:r5("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"})}),b2e=null;var iz,_i,cz;const y2e=({title:e="Share Folder",desc:t="Share folder",width:s="14",height:o="14",className:r,focusable:a="false"})=>iz("svg",{className:cz("i",r),focusable:a,height:o,viewBox:"0 0 14 14",width:s,children:[_i("title",{children:e}),_i("desc",{children:t}),_i("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"}),_i("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"}),_i("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),L2e=null;var a5,lz;const S2e=e=>a5(lz,{viewBox:"0 0 16 16",...e,children:a5("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"})}),T2e=null;var dz,Ui,uz;const k2e=({title:e="Sortable",desc:t="Three horizontal lines stacked on top of each other",width:s="22",height:o="7",className:r,focusable:a="false"})=>dz("svg",{className:uz("i i-sortable",r),focusable:a,height:o,viewBox:"0 0 22 7",width:s,children:[Ui("title",{children:e}),Ui("desc",{children:t}),Ui("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"0"}),Ui("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"3"}),Ui("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"6"})]}),N2e=null;var hz,Qh,mz;const I2e=({title:e="Sorting Block",desc:t="Sorting Block",width:s="22",height:o="15",className:r,focusable:a="false"})=>hz("svg",{className:mz("i i-sorting-block",r),focusable:a,height:o,viewBox:"0 0 22 15",width:s,children:[Qh("title",{children:e}),Qh("desc",{children:t}),Qh("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"})]}),E2e=null,i5=({title:e="Spinner",desc:t="Hollow circle fading from transparent to gray",width:s="21",height:o="20",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:G()("i i-spinner",r),focusable:a,height:o,viewBox:"0 0 21 20",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("defs",{children:(0,n.jsxs)("radialGradient",{cx:"89.364%",cy:"24.157%",fx:"89.364%",fy:"24.157%",gradientTransform:"rotate(69.991 .842 .205) scale(1 .69785)",id:"spinner-radial-gradient",r:"45.607%",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#979797"})]})}),(0,n.jsx)("path",{d:"M74.5 3c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10a9.957 9.957 0 0 0-1.477-5.233 1 1 0 0 0-1.703 1.048A8 8 0 1 1 74.5 5a1 1 0 0 0 0-2z",fill:"url(#spinner-radial-gradient)",fillRule:"nonzero",transform:"rotate(-159 42.222 17.43)"})]});var c5,rd,pz;const w2e=({title:e="SquareIcon",desc:t="Outline of a square",width:s="30",height:o="30",className:r,focusable:a="false"})=>c5("svg",{className:pz("i i-square-outline",r),focusable:a,height:o,viewBox:"0 0 30 30",width:s,children:[rd("title",{children:e}),rd("desc",{children:t}),c5("g",{fill:"none",fillRule:"evenodd",children:[rd("rect",{className:"overlay",fill:"none",fillRule:"evenodd",height:"28",rx:"2",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"}),rd("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"})]})]}),A2e=null;var l5,Lr,fz;const Zh="overlay",R2e=({title:e="Stack",desc:t="Three horizontal bars stacked",width:s="30",height:o="30",className:r,focusable:a="false"})=>l5("svg",{className:fz("i i-stack",r),focusable:a,height:o,viewBox:"0 0 30 30",width:s,children:[Lr("title",{children:e}),Lr("desc",{children:t}),l5("g",{fill:"none",fillRule:"evenodd",children:[Lr("rect",{className:Zh,height:"8.824",rx:"1",width:"30"}),Lr("rect",{className:Zh,height:"8.824",rx:"1",width:"30",y:"10.588"}),Lr("rect",{className:Zh,height:"8.824",rx:"1",width:"30",y:"21.176"}),Lr("rect",{fill:"#FFF",fillOpacity:"0.63",height:"8.824",rx:"1",width:"30"}),Lr("rect",{fill:"#FFF",fillOpacity:"0.4",height:"8.824",rx:"1",width:"30",y:"10.588"})]})]}),P2e=null;var d5,gz;function M2e(e){return d5(gz,{viewBox:"0 0 16 16",...e,children:d5("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 vz,ad,Cz;const O2e=({title:e="Success",desc:t="Checkmark with a circle",width:s="51",height:o="51",className:r=null,focusable:a="false"})=>vz("svg",{className:Cz("i",r),focusable:a,height:o,viewBox:"0 0 51 51",width:s,children:[ad("title",{children:e}),ad("desc",{children:t}),ad("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"}),ad("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"})]}),B2e=null;var xz,Yh,bz;const D2e=({title:e="Text Block",desc:t="Text Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>xz("svg",{className:bz("i i-text-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[Yh("title",{children:e}),Yh("desc",{children:t}),Yh("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"})]}),H2e=null;var u5,id,yz;const F2e=({title:e="Text Slide",desc:t="Text Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>u5("svg",{className:yz("i i-text-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,children:[id("title",{children:e}),id("desc",{children:t}),u5("g",{fillRule:"evenodd",children:[id("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"}),id("path",{d:"M4 8h8v2H4z"})]})]}),V2e=null;var Lz,Xh,Sz;const z2e=({title:e="TitleSort",desc:t="Letters A and Z next to a downard arrow",width:s="17",height:o="11",className:r,focusable:a="false"})=>Lz("svg",{className:Sz("i",r),focusable:a,height:o,viewBox:"0 0 17 11",width:s,children:[Xh("title",{children:e}),Xh("desc",{children:t}),Xh("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"})]}),$2e=null;function Tz(e){return(0,n.jsxs)(qt,{viewBox:"0 0 15 16",...e,children:[(0,n.jsx)("path",{d:"M8.69169169,1.65459164 C7.42998802,0.732912554 5.79691384,0.425404591 4.21164279,0.810071145 C2.01180284,1.34426767 0.429519485,3.32166778 0.449238273,5.51223961 C0.454317355,6.09008425 0.560978072,6.64511922 0.766531499,7.16185651 C0.884545458,7.45866364 1.19914976,7.66620336 1.53138146,7.66620336 C1.60756769,7.66620336 1.72289272,7.66620336 1.80027403,7.62903206 C2.21496611,7.48682371 2.41812939,7.05879065 2.26276924,6.65638325 C2.09725092,6.18836289 2.02345485,5.8315748 2.02345485,5.49928598 C2.02345485,4.55873965 2.44860388,3.66071502 3.19044858,3.03527987 C3.94334777,2.40027029 4.91763516,2.10993997 5.93524413,2.21694824 C6.90415367,2.31888769 7.79388929,2.81901053 8.37648985,3.58890684 C8.96058425,4.36077436 9.17300938,5.31962473 8.9590904,6.21962057 C8.94235931,6.29002074 8.92204298,6.35957612 8.89754388,6.42913149 C8.84436291,6.5969655 8.8709534,6.79042518 8.97074242,6.9599488 C9.07979329,7.14524206 9.26204269,7.2823816 9.47088259,7.33616734 C9.67285078,7.38770027 9.89573284,7.36517221 10.0812687,7.27308878 C10.2742738,7.17762614 10.4108115,7.01936655 10.4654863,6.83041248 C10.6062067,6.40012662 10.6773139,5.94111748 10.6773139,5.4666203 C10.6773139,3.96597018 9.95369412,2.57655233 8.69169169,1.65459164"}),(0,n.jsx)("path",{d:"M12.4033641,9.43002363 L7.46962051,8.60458861 L7.42312479,5.65704834 C7.42257778,4.87028142 6.91659487,4.17992696 6.16391111,3.93838024 C5.57177436,3.74839098 4.94490256,3.83320301 4.44493675,4.1709044 C3.94633846,4.50757465 3.64849231,5.04841246 3.64849231,5.61734909 L3.64849231,12.0692503 L3.27543248,11.4577787 C3.01177436,11.0154157 2.60233846,10.7096799 2.12288547,10.5967691 C1.65355214,10.4859205 1.14620171,10.5673813 0.72637265,10.8220752 C0.0398769231,11.2721719 -0.184396581,12.1996907 0.158577778,13.1957809 C0.165415385,13.210217 0.18237265,13.2532675 0.209176068,13.3208077 C0.319671795,13.5979291 0.578406838,14.2475532 0.952013675,15.0616455 L0.999603419,15.1523867 C1.20227009,15.608928 1.48534701,15.7290569 1.72739829,15.7290569 C1.84445812,15.7290569 1.95139829,15.7009581 2.03563761,15.6692503 C2.21204786,15.6022256 2.33922735,15.4880258 2.40322735,15.3387669 C2.47816752,15.1637293 2.46285128,14.9407433 2.36356923,14.7319356 C2.32992821,14.653826 1.5422359,12.8165757 1.50968889,12.7477465 C1.36828718,12.295072 1.41396239,11.9890784 1.49437265,11.9455124 C1.58845812,11.9011729 1.69403077,11.8869946 1.7730735,11.9009151 C1.9133812,11.9449968 1.98832137,12.0042879 2.05697094,12.1321504 L3.53963761,14.292666 C3.71905641,14.5633426 4.15146667,14.7654479 4.59946667,14.6061353 C4.93888547,14.4857487 5.12568889,14.2596692 5.12568889,13.9699162 L5.12568889,5.69416971 C5.12568889,5.5072739 5.23317607,5.33739205 5.39317607,5.27114071 C5.54469744,5.20927175 5.70797949,5.21984103 5.84117607,5.3018174 C5.97546667,5.38456713 6.05560342,5.52196778 6.05560342,5.66916434 L6.05560342,9.09129108 C6.05560342,9.4367261 6.34715897,9.7540623 6.69232137,9.78396563 L6.6942359,9.78396563 L12.1632274,10.6988528 C12.7868171,10.8042879 13.2397402,11.3141912 13.2397402,11.9112266 L13.2397402,15.0784017 C13.2397402,15.434406 13.5457915,15.72287 13.9235009,15.72287 C14.3009368,15.72287 14.6072615,15.434406 14.6072615,15.0784017 L14.6072615,11.9112266 C14.6072615,10.6893147 13.6809026,9.64579162 12.4033641,9.43002363"})]})}var kz,qh,Nz;const _2e=({title:e="Remove",desc:t="Trash can",width:s="10",height:o="13",className:r=null,focusable:a="false"})=>kz("svg",{className:Nz("i i-trash",r),focusable:a,height:o,viewBox:"0 0 10 13",width:s,children:[qh("title",{children:e}),qh("desc",{children:t}),qh("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"})]}),U2e=null;var Iz,Jh,Ez;const G2e=({title:e="Trash Folder",desc:t="Solid trash can",width:s="16",height:o="17",className:r,focusable:a="false"})=>Iz("svg",{className:Ez("i i-trashFolder",r),focusable:a,height:o,viewBox:"0 0 16 17",width:s,children:[Jh("title",{children:e}),Jh("desc",{children:t}),Jh("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"})]}),W2e=null;var jz,ka;const K2e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="16",role:a="img",title:i,width:c="14"})=>jz("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&ka("title",{children:i}),o&&ka("desc",{children:o}),ka("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"}),ka("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"}),ka("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"}),ka("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"})]}),Q2e=null;var wz,em,Az;const Z2e=({title:e="Remove",desc:t="Trash can",width:s="13.3",height:o="16",className:r,focusable:a="false"})=>wz("svg",{className:Az("i",r),focusable:a,height:o,viewBox:"0 0 13.3 16",width:s,children:[em("title",{children:e}),em("desc",{children:t}),em("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"})]}),Y2e=null;var Rz,cd,Pz;const X2e=({title:e="Upload",desc:t="Upload icon",width:s="15",height:o="15",className:r="",focusable:a="false"})=>Rz("svg",{className:Pz("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[cd("title",{children:e}),cd("desc",{children:t}),cd("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"}),cd("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"})]}),q2e=null;var Mz,Gi;const J2e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="14",role:a="img",title:i,width:c="14"})=>Mz("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Gi("title",{children:i}),o&&Gi("desc",{children:o}),Gi("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"}),Gi("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"}),Gi("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"})]}),ege=null;var Oz,ld,Bz;const tge=({title:e="UploadXml",desc:t="UploadXml",width:s="18",height:o="21",className:r,focusable:a="false"})=>Oz("svg",{className:Bz("i i-uploadXml",r),focusable:a,height:o,viewBox:"0 0 18 21",width:s,children:[ld("title",{children:e}),ld("desc",{children:t}),ld("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"}),ld("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"})]}),sge=null;var Dz,tm,Hz;const nge=({title:e="Video Block",desc:t="Video Block",width:s="17",height:o="13",className:r,focusable:a="false"})=>Dz("svg",{className:Hz("i i-video-block",r),focusable:a,height:o,viewBox:"0 0 17 13",width:s,children:[tm("title",{children:e}),tm("desc",{children:t}),tm("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"})]}),oge=null;function Fz(e){return(0,n.jsx)(qt,{viewBox:"0 0 16 12",...e,children:(0,n.jsx)("g",{transform:"translate(-1 -2)",children:(0,n.jsx)("path",{d:"M11,14 L2,14 C1.4,14 1,13.6 1,13 L1,3 C1,2.4 1.4,2 2,2 L11,2 C11.6,2 12,2.4 12,3 L12,4.5 L15.6,3 C16.3,2.8 17,3.3 17,4 L17,12 C17,12.7 16.3,13.2 15.6,12.9 L12,11.5 L12,13 C12,13.6 11.6,14 11,14 L11,14 L11,14 Z M3,12 L10,12 L10,10 C10,9.3 10.7,8.8 11.4,9.1 L15,10.6 L15,5.6 L11.4,7.1 C10.7,7.2 10,6.7 10,6 L10,4 L3,4 L3,12 L3,12 L3,12 Z"})})})}var Vz,h5,zz;function rge(e){return Vz(zz,{...e,viewBox:"0 0 14 10",children:[h5("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"}),h5("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 m5,dd,$z;const age=({title:e="Visible",desc:t="Eye",width:s="16",height:o="12",className:r=null,focusable:a="false"})=>m5("svg",{className:$z("i i-visible",r),focusable:a,height:o,viewBox:"0 0 16 12",width:s,children:[dd("title",{children:e}),dd("desc",{children:t}),m5("g",{children:[dd("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"}),dd("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),ige=null,_z=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="20",role:a="img",title:i="",style:c,width:l="20"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:G()("i i-xMarkFilled",s),focusable:"false",height:r,role:a,style:c,viewBox:"0 0 20 20",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.jsx)("path",{d:"M10 9.08L6.904 5.986a.65.65 0 1 0-.92.92L9.082 10l-3.096 3.096a.65.65 0 0 0 .92.92L10 10.918l3.096 3.096a.65.65 0 0 0 .92-.92L10.918 10l3.096-3.096a.65.65 0 1 0-.92-.92L10 9.082zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"})]}),Wi=on()("partner-content-course-author__"),Uz=({partnerContentAuthors:e,darkText:t,isImage:s,learn:o,lesson:r,isOnePage:a,selectedContentId:i})=>{const c=Ks()(He()("id",i),e),l=Yt()(["data","authors"],c),h=(r?l:e).filter(g=>g.name),m=G()(Wi("author-container"),{[Wi("author-container-padding-top")]:t}),p=G()({[Wi("gray-text")]:!o&&!a}),v=G()(Wi("author-image")),C=g=>`url(${la({width:"76",height:"76",imageKey:g.image})})`;return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,n.jsx)("ol",{className:m,"data-testid":"partner-content-course-author-container",role:"list",children:h.map(g=>(0,n.jsxs)("li",{className:Wi("author"),"data-testid":"partner-content-course-author",role:"listitem",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:v,"data-testid":"partner-content-course-author-image",disabled:s,style:{backgroundImage:C(g)}}),(0,n.jsx)("span",{className:p,children:g.name})]},g.name))})]})};function Gz(e){return e.partnerContent}function Wz(){return he(Gz)}function Kz(e){return e?.partnerContent?.content??[]}function Sr(){return he(Kz)}function sm(){const t=re()?.selectedAuthorId,s=Sr();return(0,u.useMemo)(()=>s?.find(o=>o.id===t),[s,t])}function Qz(){const e=sm();return(0,u.useMemo)(()=>e?.data?.authors??null,[e])}function Zz(){return Sr()?.[0]?.data?.authors}const Na=z("cover"),dge=()=>{const e=p1();if(e==null)return null;const{avatar:t,authorName:s,title:o}=e;return(0,n.jsxs)("div",{className:Na("author-with-title"),children:[(0,n.jsx)(p5,{avatar:t}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:Na("author-name"),children:s}),(0,n.jsx)("div",{className:Na("author-title"),children:o})]})]})},p5=({avatar:e})=>{const t=Na("header-content-authors-avatar");return e?(0,n.jsx)("div",{className:t,"data-testid":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${Ct(e)})`}}):(0,n.jsx)("div",{className:t,"data-testid":"cover-header-content-authors-avatar",children:(0,n.jsx)(Uh,{decorative:!0})})},Hn=De("CoverAuthors",({className:e})=>{const{color:t,partnerContentId:s,selectedAuthorId:o,theme:r,themeId:a}=re(),{accentContrast:i,coverPageType:c}=r??{},{authorName:l,avatar:d}=p1()??{},h=xe(),m=Qz(),p=!!s&&!!m,C=kt(768)&&Oj(a,c),g=c===ce.LEFT_OVERLAY||c===ce.CENTERED_OVERLAY||C;if(o==="none")return null;const x=l||"Unknown User",S=Na("header-content-authors").mix(e),L=Na("header-content-authors-name");return p?(0,n.jsx)("div",{className:S,"data-testid":"cover-authors",children:(0,n.jsx)(Uz,{accentContrast:i,color:t,isImage:g,learn:!0,partnerContentAuthors:m})}):(0,n.jsxs)("div",{className:S,"data-testid":"cover-authors",children:[(0,n.jsx)(p5,{avatar:d,isImage:g}),(0,n.jsxs)("div",{className:L,"data-testid":"cover-header-content-authors-name",children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:h?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:x})]})]})}),Yz=z("cover"),Xs=De("CoverContentNoImage",({children:e})=>{const t=Yz("header-content");return(0,n.jsx)("div",{className:t,"data-testid":"cover-header-content",children:e})}),Tr=e=>{const t=ze(),s=Rt();return Xz(t,e,s)},Xz=(e,t,s)=>{const{media:o,alpha:r}=t==="coverImage"?lg(e,s):dg(e,s),a="image"in o?og(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:rg(a)}},qz=z("cover"),nm=()=>{const e=Zv(),{alpha:t,ariaLabel:s,media:o,role:r}=Tr("coverImage"),a=qz("header-image"),i=da({alpha:t,color:e,media:o});return(0,n.jsx)("div",{"aria-label":s,className:a,role:r,style:i})},Jz=z("cover"),om=({children:e})=>{const t=Zv(),s=`overlay-${t.toLowerCase()}`,o=Jz("header-content",{[s]:!!t});return(0,n.jsxs)("div",{className:o,"data-testid":"cover-header-content",children:[e,(0,n.jsx)(nm,{})]})},e$=z("cover"),Ki=({hasOverlay:e=!1})=>{const{alpha:t,ariaLabel:s,media:o,role:r}=Tr("coverImage"),a=da({alpha:t,hasOverlay:e,media:o}),i=e$("header-graphic",{"dot-com":!1});return(0,n.jsx)("div",{"aria-label":s,className:i,"data-testid":"cover-header-graphic",role:r,style:a})},t$=z("cover");function us({children:e}){const t=!!sm(),s=t$("header-content-info",{rbc:t,"rise-com":!1});return(0,n.jsx)("div",{className:s,"data-testid":"cover-header-content-info",children:e})}const f5=Mt("AlignLeft"),ud=Mt("ArrowDown"),rm=Mt("ArrowRight"),g5=Mt("ArrowUp"),s$=Mt("Category"),n$=Mt("ChevronDown"),o$=Mt("ChevronUp"),r$=Mt("LessonsComplete"),a$=Mt("LessonsRequirement"),i$=Mt("QuestionBox"),c$=Mt("QuizFailed"),l$=Mt("QuizPassed"),d$=Mt("QuizRequirement"),Qi=Mt("Search"),v5=Mt("ToggleDown"),u$=Mt("Touch"),h$=Mt("VideoCamera"),hd=Mt("X"),m$=e=>{const t=e.indexOf("-");return t===-1?e:e.slice(0,t)},gge=(e,t)=>{const s=m$(e);return t.find(({iso639Code:o})=>o===e)||t.find(({iso639Code:o})=>o===s)||t.find(({defaultId:o,defaultSet:r})=>r&&o===1)},Ia=({percent:e,label:t,isRTL:s})=>{if(t.includes("%")){const o=s?`%${e}`:`${e}%`;return t.replace("%",o)}return`${e} ${t}`},kr=z("cover"),p$=De("CoverProgress",({percentComplete:e})=>{const t=un(),s=xe(),o=S3();return e===0||window.isPublicShare,null;const r=Ia({percent:e,label:s.progressSummaryPercentComplete,isRTL:t});return(0,n.jsxs)("div",{className:kr("progress"),children:[(0,n.jsx)("div",{className:kr("progress-text"),children:r}),(0,n.jsx)("div",{className:kr("progress-outer"),children:(0,n.jsx)("div",{className:kr("progress-inner"),style:{width:`${e}%`}})}),o&&(0,n.jsxs)("div",{className:kr("progress-next-lesson"),children:[(0,n.jsx)(rm,{className:kr("progress-next-lesson-icon").toString(),decorative:"true"}),(0,n.jsx)("span",{"aria-hidden":"true",className:kr("progress-next-lesson-text"),children:o}),(0,n.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",o]})]})]})});function $t(){const e=ha();return(0,n.jsx)(p$,{percentComplete:e})}const f$=z("cover"),hs=De("CoverTitle",()=>{const e=re(),t=Oe(e.title),s=f$("header-content-title"),o=Sa("title"),r=(0,Xt.uW)(e.title)?{"data-l10n-id":e.title.l10nId}:{"data-change-path":o};return(0,n.jsx)("h1",{...r,className:s,"data-testid":"cover-header-content-title",tabIndex:-1,children:t})}),g$={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function C5(){const e=re(),t=XB(),s=e?.theme?.coverPageType||"CENTERED";return t?g$[s]??s:s}const v$=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(om,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)(Hn,{}),(0,n.jsx)(hs,{}),(0,n.jsx)($t,{}),(0,n.jsx)(ds,{})]})})}),C$=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)(Hn,{}),(0,n.jsx)(hs,{}),(0,n.jsx)($t,{}),(0,n.jsx)(ds,{})]})})}),x$=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ki,{}),(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)(Hn,{}),(0,n.jsx)(hs,{}),(0,n.jsx)($t,{}),(0,n.jsx)(ds,{})]})})]}),b$=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)(Hn,{}),(0,n.jsx)(hs,{}),(0,n.jsx)($t,{}),(0,n.jsx)(ds,{})]})}),(0,n.jsx)(Ki,{})]});function y$(){switch(C5()){default:case ce.LEFT_OVERLAY:case ce.CENTERED_OVERLAY:return(0,n.jsx)(v$,{});case ce.LEFT:case ce.CENTERED:return(0,n.jsx)(C$,{});case ce.SPLIT_LEFT_IMAGE:case ce.TWO_THIRDS_LEFT_IMAGE:return(0,n.jsx)(b$,{});case ce.SPLIT_RIGHT_IMAGE:case ce.TWO_THIRDS_RIGHT_IMAGE:return(0,n.jsx)(x$,{})}}function L$(){return(0,n.jsx)("header",{className:"cover__header","data-testid":"cover-header",children:(0,n.jsx)(y$,{})})}var S$=f(82920);const T$=z("cover");function k$({children:e}){const t=re(),{themeId:s}=t?.theme??{},o=C5(),r=S$.useMemo(()=>va()(o),[o]),a=T$({layout:r});return(0,n.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":s,id:"cover",children:e})}var N$=f(51246),Fe=f.n(N$),x5=f(82920);class I$ extends x5.Component{static propTypes={id:Fe().any.isRequired,lessonProgress:Fe().object.isRequired,type:Fe().string.isRequired,items:Fe().array};refProgressWrap=x5.createRef(null);constructor(t){super(t),this.state={isSticky:!1},this.portal=lo()}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 t=document.getElementsByClassName("page-wrap")[0],s=t.scrollTop,o=t.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,c=s>i;this.state.isSticky!==c&&this.setState({isSticky:c})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:t,lessonProgress:s}=this.props,o=jt()(-1,"activeIndex",s),r=is()(t);return o===-1?0:ca()(o)===r?100:cr()("%","",Yt()([o,"linePosition"],t))}processProgressValue(){const{items:t,lessonProgress:s}=this.props,o=jt()(0,"activeIndex",s),r=is()(t);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:t,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return jt()(0,"percentViewed",t);case"timeline":return this.timelineProgressValue();default:return jt()(0,"percentComplete",t)}}render(){const{type:t,items:s}=this.props,{isSticky:o}=this.state,r=G()("progress-wrap",{}),a=G()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),i=G()("progress",{"progress--timeline":t==="timeline","progress--video":t==="video"}),c=this.progressValue(),l=t==="timeline"&&s&&s.map(h=>{const m=G()("progress__marker",{"progress__marker--active brand--background":parseInt(c)>=parseInt(h.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:m,style:{left:h.linePosition}},h.id)}),d=(0,n.jsx)("div",{className:r,children:(0,n.jsx)("div",{className:i,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${c}% * var(--dir-x)),0px,0px)`}}),l]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[d,(0,gn.createPortal)((0,n.jsx)("div",{className:a,children:d}),this.portal)]})}}const am=z("lesson-header"),Fn=De("LessonHeaderAuthor",({avatar:e,authorName:t,className:s=""})=>{const o=xe();return(0,n.jsxs)("div",{className:`lesson-header__author ${s}`,children:[(0,n.jsx)("img",{alt:"",className:"lesson-header__author-img",src:Ct(e)}),(0,n.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,n.jsx)("span",{className:"lesson-header__author-name",children:t})]})}),Zi=({showPartnerContent:e=!1})=>(0,n.jsx)("div",{className:am("author",{"partner-content":e})}),Vn=()=>(0,n.jsx)("div",{className:"lesson-header__counter"}),zn=({lessonName:e,lessonPreposition:t,totalLessons:s,lessonNumber:o,showPartnerContent:r=!1})=>{const{lmsOptions:a}=re();return(0,n.jsx)("div",{className:am("counter",{"partner-content":r}),children:(0,n.jsx)("div",{className:am("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${e} ${o} ${t} ${s}`})})},Nr=({description:e})=>(0,n.jsx)(ke,{className:"lesson-header__description",value:e}),E$=({children:e})=>(0,n.jsx)("div",{className:"lesson-header__grouped-row",children:e}),j$=({ariaLabel:e,imgRole:t,children:s,sectionStyles:o,topWrapClassName:r})=>(0,n.jsxs)("header",{className:"page__header",children:[(0,n.jsx)("div",{className:"page__header-limit",children:(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)("div",{className:"lesson-header",children:(0,n.jsx)("div",{className:r,children:s})})})})})}),(0,n.jsx)("div",{"aria-label":e,className:"page__header-bg",role:t,style:o})]}),$n=({title:e,id:t})=>{const s=a6(t,"title");return(0,n.jsx)("h1",{className:"lesson-header__title","data-change-path":s,tabIndex:-1,children:(0,n.jsx)(ke,{value:e})})},w$=e=>{const{authorName:t,avatar:s,color:o,description:r,labels:a,lessonHeaderStyle:i,lessonId:c,lessonNumber:l,partnerContentAuthors:d,showAuthor:h,showLessonCount:m,title:p,totalLessons:v}=e,{lessonName:C,lessonPreposition:g}=a,x=b=>`url(${la({width:"76",height:"76",imageKey:b.image})})`,S=i===ne.TINT?{color:o}:null,L=s&&t&&h&&!d;return(0,n.jsxs)("div",{className:"lesson-header",children:[(0,n.jsxs)("div",{className:"lesson-header__top-wrap",style:S,children:[(0,n.jsx)($n,{id:c,title:p}),d&&(0,n.jsx)("div",{className:"lesson-header__partner-content",children:d.map(b=>(0,n.jsxs)("div",{className:"lesson-header__partner-content-author",children:[(0,n.jsx)("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:x(b)}}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:a?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:b.name})]})]},b.name))}),(0,n.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[L?(0,n.jsx)(Fn,{authorName:t,avatar:s}):(0,n.jsx)(Zi,{}),m?(0,n.jsx)(zn,{lessonName:C,lessonNumber:l,lessonPreposition:g,totalLessons:v}):(0,n.jsx)(Vn,{})]})]}),r&&(0,n.jsx)(Nr,{description:r})]})};class bge extends u.Component{static propTypes={authorName:Fe().string,avatar:Fe().string,description:Fe().string,showLessonCount:Fe().bool,steps:Fe().number,title:Fe().string.isRequired,type:Fe().string.isRequired};render(){const{children:t}=this.props;return(0,n.jsx)("section",{className:"page__header",children:(0,n.jsxs)("div",{className:"page__header-limit",children:[(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)(w$,{...this.props})})})}),u.Children.map(t,s=>s&&s.type!==I$?null:s)]})})}}const Bo=z("lesson-header"),b5=e=>`url(${la({width:"76",height:"76",imageKey:e?.image})})`,im=({partnerContentAuthors:e})=>{const t=e.map(o=>o.name).join(", "),s=e.length===1;return(0,n.jsxs)("div",{className:Bo("partner-content",{mobile:!0}),children:[(0,n.jsx)("div",{className:Bo("partner-content-author",{single:s}),children:e.map(o=>(0,n.jsx)("div",{className:Bo("partner-content-author-img",{single:s}),style:{backgroundImage:b5(o)}},o.name))}),(0,n.jsx)("span",{"aria-hidden":"true",className:Bo("author-name"),children:t})]})},Ea=({partnerContentAuthors:e})=>{const t=xe();return(0,n.jsx)("div",{className:Bo("partner-content"),children:e.map(s=>(0,n.jsxs)("div",{className:Bo("partner-content-author"),children:[(0,n.jsx)("div",{className:Bo("partner-content-author-img"),style:{backgroundImage:b5(s)}}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{className:"visually-hidden",children:[t?.a11yAuthorPrefix," ",s.name]}),(0,n.jsx)("span",{"aria-hidden":"true",className:Bo("author-name"),tag:"span",children:s.name})]})]},s.name))})};var y5=f(82920);const ja=z("lesson-header"),A$=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:l,title:d,totalLessons:h,lessonId:m})=>{const p=i!=null&&c,v=t&&e&&c&&!p,C=v||p||l,g=l&&(v||p);return(0,n.jsxs)("div",{className:ja("content"),children:[C&&(0,n.jsxs)("div",{className:ja("info-row"),children:[v?(0,n.jsx)(Fn,{authorName:e,avatar:t}):(0,n.jsx)(Zi,{}),p&&(0,n.jsx)(Ea,{partnerContentAuthors:i}),g&&(0,n.jsx)("span",{"aria-hidden":"true",className:ja("info-row--divider"),children:"|"}),l?(0,n.jsx)(zn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Vn,{})]}),(0,n.jsxs)("div",{className:ja("title-wrapper",{"no-info":!C}),children:[(0,n.jsx)($n,{id:m,title:d}),s&&(0,n.jsx)(Nr,{description:s})]})]})},R$=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:l,title:d,totalLessons:h,lessonId:m})=>{const p=i!=null,v=y5.useMemo(()=>t&&e&&c&&!p,[t,e,c,p]);return(0,n.jsxs)("div",{className:ja("content"),children:[l?(0,n.jsx)(zn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Vn,{}),v&&(0,n.jsx)(Fn,{authorName:e,avatar:t}),c&&p&&(0,n.jsx)(im,{partnerContentAuthors:i}),(0,n.jsx)($n,{id:m,title:d}),s&&(0,n.jsx)(Nr,{description:s})]})},P$=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:l,title:d,totalLessons:h,lessonId:m})=>{const p=i!=null,v=y5.useMemo(()=>t&&e&&c&&!p,[t,e,c,p]);return(0,n.jsxs)("div",{className:ja("content"),children:[l?(0,n.jsx)(zn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Vn,{}),(0,n.jsx)($n,{id:m,title:d}),v?(0,n.jsx)(Fn,{authorName:e,avatar:t}):(0,n.jsx)(Zi,{showPartnerContent:p}),c&&p&&(0,n.jsx)(Ea,{partnerContentAuthors:i}),s&&(0,n.jsx)(Nr,{description:s})]})};function M$(e){const t=Z1();return e.lessonHeaderSize===gi.SMALL&&!t?(0,n.jsx)(A$,{...e}):t?(0,n.jsx)(R$,{...e}):(0,n.jsx)(P$,{...e})}const wa=e=>e===so.FLOATING||e===so.FLOATING_FULL;function Ir(){const e=nj();return kt(480)&&e===so.FLOATING?so.FLOATING_FULL:e}function cm({className:e,ref:t}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:"15",ref:t,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M2.34315 7.34315L8 13L13.6569 7.34315",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",width:"2",x:"7",y:"1"})]})}function L5({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",ref:t,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 13.6569L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function O$(e){const{to:t,children:s}=e,o=(0,je.zy)(),r=(0,u.useMemo)(()=>m0(t,o),[o,t]);return(0,n.jsx)(je.k2,{...e,to:r,children:s})}var tt=f(59928);const S5="focus-lesson-content",Lge="preview-nav-to-first-lesson",Sge="preview-nav-to-cover-page",Ze="preview-nav-to-lesson-item",Tge="preview-scroll-to-nav-prev",kge="preview-scroll-to-header",lm="preview-clear-state",md="preview-show-nav-prev",pd="preview-show-nav-next",T5="preview-nav-open",k5="preview-nav-close",N5="event-lesson-transition-start",I5="event-lesson-transition-end",E5="event-lesson-nav-prev-visible",dm="event-lesson-nav-prev-hidden",j5="event-lesson-nav-next-visible",um="event-lesson-nav-next-hidden",hm=new WeakMap,w5=new ResizeObserver(e=>{requestAnimationFrame(()=>{for(const t of e)hm.get(t.target)?.(t)})});function fd(e,t){(0,u.useEffect)(()=>{if(e)return hm.set(e,t),()=>hm.delete(e)},[e,t]),(0,u.useEffect)(()=>{if(e)return w5.observe(e),()=>w5.unobserve(e)},[e])}function B$(){const e=ut(),[t,s]=(0,u.useState)(null),o=xe(),r=(0,u.useCallback)(a=>{e(q0({offsetHeight:a.target.offsetHeight}))},[e]);return(0,u.useLayoutEffect)(()=>{if(t)return e(q0({offsetHeight:t.offsetHeight})),()=>e(q0(null))},[e,t]),fd(t,r),(0,n.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:A5,ref:s,type:"button",children:(0,n.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,n.jsx)(ie,{"aria-hidden":"true",classNameIcon:"btn-skip-to-lesson__icon",name:"arrow-right"})]})})}function D$(e){(0,tt.A)(S5,e,document)}function A5(){document.dispatchEvent(new CustomEvent(S5))}function gd(e,t){const s=[];if(e){let o=e.parentElement;for(;o&&(t?.limit==null||s.length<t.limit);){if(o===document.body){s.push(window);break}const r=window.getComputedStyle(o);(r.overflowX==="auto"||r.overflowX==="scroll"||r.overflowY==="auto"||r.overflowY==="scroll")&&s.push(o),o=o.parentElement}}return s}function R5(e){return gd(e,{limit:1})[0]??null}function P5(e,t){(0,u.useLayoutEffect)(()=>{let s=e.current;const o=gd(s);for(const r of o)r?.addEventListener("scroll",t);return()=>{for(const r of o)r?.removeEventListener("scroll",t)}},[t,e])}const M5=(0,u.createContext)(!1);function vd({children:e,inert:t}){const s=mm();return(0,n.jsx)(M5.Provider,{value:s||t,children:e})}function mm(){return(0,u.useContext)(M5)}function H$(e){return e?.sessionPreferences}function Yi(){return he(H$)}const F$=(0,u.forwardRef)((e,t)=>{const{children:s,className:o="lesson-link-item-tooltip",dark:r,visible:a}=e,i=(0,u.useMemo)(()=>z(o),[o]),c=(0,n.jsx)("div",{"aria-hidden":"true",ref:t,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:i({visible:a}),children:(0,n.jsx)("div",{className:i("inner",{dark:r,light:!r}),children:s})})})});return(0,gn.createPortal)(c,document.getElementById("portal"))});function O5(e){const{children:t,className:s,dark:o,restriction:r,tooltipClassName:a,style:i}=e,{prefersKeyboardNavigation:c}=Yi()??{},l=(0,u.useRef)(null),d=(0,u.useRef)(null),h=(0,u.useRef)(null),m=xe(),p=mm(),[v,C]=(0,u.useState)(!1),g=(0,u.useCallback)(()=>C(!0),[]),x=(0,u.useCallback)(()=>C(!1),[]),S=(0,u.useCallback)(()=>{setTimeout(g,0)},[g]),L=(0,u.useCallback)(()=>{c===!0&&x()},[x,c]),b=(0,u.useCallback)(w=>{Ss(w)&&v&&(w.stopPropagation(),x())},[x,v]),y=(0,u.useCallback)(()=>{document.activeElement===l.current&&(h.current!=null&&clearTimeout(h.current),g())},[g]),T=(0,u.useCallback)(()=>{h.current=setTimeout(x,150)},[x]),k=(0,u.useCallback)(()=>{if(v&&l.current&&d.current){const w=l.current.getBoundingClientRect(),R=d.current.offsetParent?.getBoundingClientRect()??w,{height:E,width:j}=w,O=w.left-R.left,A=w.top-R.top;Object.assign(d.current.style,{transform:`translate(${O}px, ${A}px)`,width:`${j}px`,height:`${E}px`})}},[v]);(0,u.useEffect)(()=>{p&&C(!1)},[p]),(0,u.useLayoutEffect)(()=>k(),[k]),(0,tt.A)("resize",k,window),(0,tt.A)("keydown",b,document),P5(l,x);const N=ht(r?.data);let I;return r?.type===ea.QUIZ?I=`${m?.quizRequirePassingScore}: "${N}"`:r?.type===ea.ORDER?I=m?.lessonRestricted:r?.type===ea.KNOWLEDGE_CHECK&&(I=m?.knowledgeCheckCorrectAnswerRequiredNav),(0,n.jsxs)("div",{"aria-disabled":!0,className:s,onBlur:L,onFocus:S,onMouseEnter:y,onMouseLeave:T,ref:l,role:"link",style:i,tabIndex:p?-1:0,children:[t,(0,n.jsx)("div",{className:"visually-hidden-always",children:m?.a11yRestrictedNav}),(0,n.jsx)("div",{className:"visually-hidden-always",children:I}),(0,n.jsx)(F$,{className:a,dark:o,ref:d,visible:v,children:I})]})}function V$(e){const{b:t,children:s,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:i,onClick:c=()=>{},onFocus:l,onHideProgressTooltip:d,onNavigate:h=()=>{},onShowProgressTooltip:m,restriction:p,showProgressDelay:v,style:C}=e,g=mm(),L=(re()?.theme?.progressIndicatorStyle??st.THEME_DEFAULT)===st.THEME_DEFAULT,b=(0,u.useCallback)(j=>{c(j),r?(j.preventDefault(),A5()):h(i)},[i,r,c,h]),[y,T]=(0,u.useState)(!1),k=(0,u.useCallback)(j=>{!y&&a&&(v!=null?setTimeout(()=>m?.(),v):m?.()),l?.(j)},[y,l,v,m,a]),N=(0,u.useCallback)(j=>{a&&Ss(j)&&d?.()},[d,a]),I=(0,u.useCallback)(()=>{a===!0&&T(!0)},[a]),w=(0,u.useCallback)(()=>{a===!0&&T(!1)},[a]),R=p?.type!=null,E=t("link",{active:r,restricted:R,"theme-default":L}).toString();return R?(0,n.jsx)(O5,{className:E,dark:e.dark,restriction:p,style:C,tooltipClassName:e.tooltipClassName,children:s}):(0,n.jsx)(O$,{"aria-current":"page",className:E.toString(),"data-direction":o,"data-nav-item":"",onBlur:a?d:void 0,onClick:b,onFocus:k,onKeyDown:N,onMouseDown:I,onMouseUp:w,style:C,tabIndex:g?-1:void 0,to:Gs(i),children:s})}function Xi(e){const{className:t="lesson-link-item",isCurrentLesson:s,last:o,lessonId:r,style:a}=e,i=(0,u.useMemo)(()=>z(t),[t]),c=wi(r),l=c?.type!=null,{isComplete:d=!1}=Po(r)??{},h=i({active:s,complete:d,last:o,restricted:l});return(0,n.jsx)("div",{className:h,children:(0,n.jsx)(V$,{...e,b:i,isCurrentLesson:s,restriction:c,style:a})})}const z$=z("lesson-nav");function $$(e){const{children:t,finish:s,lessonId:o,onFocus:r}=e,a=os();if(o)return(0,n.jsx)(Xi,{className:"lesson-nav-link","data-direction":e["data-direction"],lessonId:String(o),onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",children:t});const i=s?"/lessons/progress-summary":"/",c=l=>{l.preventDefault(),ho(()=>{a(i)},i==="/"?"lesson-to-cover":"default")};return(0,n.jsx)("span",{className:"lesson-nav-link",children:(0,n.jsx)(ls,{className:"lesson-nav-link__link","data-direction":e["data-direction"],onClick:c,onFocus:r,to:i,children:t})})}function Aa({children:e,className:t,direction:s,finish:o,navLessonId:r,onFocus:a,ref:i,restrictionType:c}){const d=Ti()?.theme?.buttonScheme,h=c!=null,m=Ir(),v={className:z$(null,{[s]:!0,accent:d===vi.ACCENT,dark:d===vi.DARK,floating:m===so.FLOATING,"floating-full":m===so.FLOATING_FULL,finish:o,full:m===so.FULL,light:d===vi.LIGHT,restricted:h,tint:d===vi.TINT}).mix(t),[`data-${s}-lesson`]:!0};return(0,n.jsx)("div",{ref:i,...v,children:(0,n.jsx)($$,{"data-direction":s,finish:o,lessonId:r,onFocus:a,children:e})})}const B5=z("lesson-nav");function _$({allowTooltip:e,courseFinishLabel:t,onFocus:s,nextLesson:o,restrictionData:r,restrictionType:a,ref:i}){const c=o?.id,l=Ir(),d=wa(l),h=d?cm:L5;return(0,n.jsxs)(Aa,{allowTooltip:e,direction:"next",finish:!0,isFloating:d,navLessonId:c,onFocus:s,ref:i,restrictionData:r,restrictionType:a,children:[(0,n.jsx)("span",{className:B5("link-text").mix("brand--ui"),children:t}),(0,n.jsx)(h,{className:B5("link-icon")})]})}const D5=z("lesson-nav");function U$({allowTooltip:e,lessonNameLabel:t,nextLesson:s,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:i,restrictionType:c}){const l=s?.id,d=Ir(),h=wa(d),p=fr(s)&&l,v=Oe(s?.title)||"",C=h?cm:L5,g=p?`${t} ${o} - `:"",x=h&&p?`${t} ${o}`:`${g}${v}`;return(0,n.jsxs)(Aa,{allowTooltip:e,direction:"next",isFloating:h,navLessonId:l,onFocus:r,ref:a,restrictionData:i,restrictionType:c,children:[(0,n.jsx)("span",{className:D5("link-text").mix("brand--ui"),children:x}),(0,n.jsx)(C,{className:D5("link-icon")})]})}function H5({className:e,ref:t}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:"15",ref:t,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M13.6569 7.65685L8 2L2.34315 7.65686",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",transform:"rotate(180 9 14)",width:"2",x:"9",y:"14"})]})}function G$({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",ref:t,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 2.34315L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const Cd=z("lesson-nav");function W$({allowTooltip:e,className:t,courseHomeLabel:s,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:i,ref:c}){const l=a?.id,d=Ir(),h=wa(d),p=fr(a)&&l,v=Oe(a?.title)||s,C=h?H5:G$,g=p?`${o} ${i} - ${v}`:v,x=p&&h?`${o} ${i}`:g;return(0,n.jsx)(Aa,{allowTooltip:e,className:t,direction:"previous",isFloating:h,navLessonId:l,onFocus:r,ref:c,children:h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Cd("link-text").mix("brand--ui"),children:x}),(0,n.jsx)(C,{className:Cd("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C,{className:Cd("link-icon")}),(0,n.jsx)("span",{className:Cd("link-text").mix("brand--ui"),children:x})]})})}var Be=f(70547);function K$({className:e,cx:t,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,value:l=0}){const d=(0,u.useRef)(null),h=`mask-${(0,l2.A)()}`,m=(100-l)/100*(2*a);return(0,tt.A)("transitionend",r,d.current),(0,n.jsxs)("svg",{height:o,viewBox:`0 0 ${o} ${o}`,width:o,children:[(0,n.jsx)("defs",{children:(0,n.jsx)("mask",{id:h,children:(0,n.jsx)("rect",{fill:"white",height:2.3*a,width:2.3*a,x:"0",y:l===0?100:m})})}),(0,n.jsx)("circle",{className:e,cx:t,cy:s,fill:"none",mask:`url(#${h})`,r:a,ref:d,strokeLinecap:i,strokeWidth:c})]})}const pm=K$;function Q$({className:e,cx:t,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,transform:l,value:d=0}){const h=(0,u.useRef)(null),m=Math.PI*(Number(o)-Number(c)),p=m*(100-d)/100;return(0,tt.A)("transitionend",r,h.current),(0,n.jsx)("circle",{className:e,cx:t,cy:s,fill:"transparent",r:a,ref:h,strokeDasharray:m,strokeDashoffset:p,strokeLinecap:i,strokeWidth:c,transform:l})}const F5=Q$;var fm=f(82920);const{COMPACT:Z$,COVER:Y$,OVERLAY:X$,SIDEBAR:q$}=ko,qi=z("progress-circle");function J$({"aria-hidden":e,"aria-label":t,isCurrent:s,isFailed:o,isPassed:r,scope:a,value:i}){const[c,l]=fm.useState(i===100),d=(0,Be.A)(i),{theme:h}=re()??{},m=h?.progressIndicatorStyle??st.THEME_DEFAULT,p=a===Y$,v=a===X$,C=m===st.THEME_DEFAULT,g=m===st.CIRCULAR_FILL,x=m===st.INCOMPLETE_COMPLETE,S=qi({compact:a===Z$,cover:p,current:s,sidebar:a===q$,overlay:v}),L=qi("track",{"circular-fill":!v&&g,"incomplete-complete":p&&x}),b=qi("runner",{"circular-fill":g,done:c,failed:o,passed:r,unstarted:i===0}),y=qi("pass",{done:c,visible:r}),T=qi("fail",{done:c,visible:o}),k=fm.useMemo(()=>g||i===100?i:0,[g,i]);return fm.useEffect(()=>{if(i!==100&&d===100)l(!1);else if(i===100&&!c&&!x){const N=setTimeout(()=>l(!0),300);return clearTimeout.bind(null,N)}else i===100&&!c&&x&&l(!0)},[c,x,d,i]),(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:S,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:L,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),C?(0,n.jsx)(F5,{className:b,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:i}):(0,n.jsx)(pm,{className:b,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:k}),(0,n.jsx)("path",{className:y,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className: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 gm=(0,u.createContext)(null);gm.displayName="CourseNavContext";function e_(e){const{children:t,isCourseNavOpen:s}=e;return(0,n.jsx)(gm.Provider,{value:{isCourseNavOpen:s},children:t})}function t_(){return(0,u.useContext)(gm)}const s_=960;function Ji(){return kt(s_)}function n_(){const e=ze(),t=Ji(),s=c1();return Rj({course:e,isMobile:t,search:s})}function o_(){const e=ze(),t=Ji();return Pj({course:e,isMobile:t})}var V5=f(82920);class r_ extends V5.Component{refProgressWrap=V5.createRef();timeoutScroll;portal;constructor(t){super(t),this.state={isSticky:!1},this.portal=lo()}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 t=document.getElementsByClassName("page-wrap")[0],s=t.scrollTop,o=t.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,c=s>i&&s>0;this.state.isSticky!==c&&this.setState({isSticky:c})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:t,lessonProgress:s}=this.props,o=s.activeIndex??-1,r=t?.length??0;return o===-1?0:o+1===r?100:t?.[o]?.linePosition?.replace("%","")??"0"}processProgressValue(){const{items:t,lessonProgress:s}=this.props,o=s.activeIndex??0,r=t?.length??0;return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:t,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return t.percentViewed??0;case"timeline":return this.timelineProgressValue();default:return t.percentComplete??0}}render(){const{type:t,items:s,sidebarAvailable:o,isCourseNavOpen:r,isMobile:a}=this.props,{isSticky:i}=this.state,c=G()("progress-wrap",{}),l=r,d=r&&a,h=G()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":i&&!d,"lesson--open":l&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&d&&!this.isLessonPreview()}),m=G()("progress",{"progress--timeline":t==="timeline","progress--video":t==="video"}),p=this.progressValue(),v=t==="timeline"&&s&&s.map(g=>{const x=G()("progress__marker",{"progress__marker--active brand--background":parseInt(String(p))>=parseInt(g.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:x,style:{left:g.linePosition}},g.id)}),C=(0,n.jsx)("div",{className:c,children:(0,n.jsx)("div",{className:m,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${p}% * var(--dir-x)),0px,0px)`}}),v]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[C,(0,gn.createPortal)((0,n.jsx)("div",{"aria-hidden":"true",className:h,children:C}),this.portal)]})}}const a_=e=>{const t=n_(),{isCourseNavOpen:s}=t_()??{},o=kt(480);return(0,n.jsx)(r_,{...e,isCourseNavOpen:s,isMobile:o,sidebarAvailable:t})},i_=ba,c_=ba,l_=ba,d_=ba,u_=ba,h_=ba;function Nt({children:e,className:t,height:s,width:o,viewBox:r}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:e})}function m_(e){return(0,n.jsxs)(Nt,{viewBox:"0 0 24 24",...e,children:[(0,n.jsx)("path",{d:"M1 10.9609L10 19.9609",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M1 11.9609L10 2.96094",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M2 11.5H23",stroke:"currentColor",strokeWidth:"1.5"})]})}function p_({className:e}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:"8",role:"img",viewBox:"0 0 16 8",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 f_(e){return(0,n.jsx)(Nt,{height:"12",viewBox:"0 0 18 12",width:"18",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.666992 1.00002C0.666992 0.539783 1.04009 0.166687 1.50033 0.166687H14.0003C14.4606 0.166687 14.8337 0.539783 14.8337 1.00002C14.8337 1.46026 14.4606 1.83335 14.0003 1.83335H1.50033C1.04009 1.83335 0.666992 1.46026 0.666992 1.00002ZM0.666992 6.00002C0.666992 5.53978 1.04009 5.16669 1.50033 5.16669H16.5003C16.9606 5.16669 17.3337 5.53978 17.3337 6.00002C17.3337 6.46026 16.9606 6.83335 16.5003 6.83335H1.50033C1.04009 6.83335 0.666992 6.46026 0.666992 6.00002ZM0.666992 11C0.666992 10.5398 1.04009 10.1667 1.50033 10.1667H10.667C11.1272 10.1667 11.5003 10.5398 11.5003 11C11.5003 11.4603 11.1272 11.8334 10.667 11.8334H1.50033C1.04009 11.8334 0.666992 11.4603 0.666992 11Z",fill:"currentColor",fillRule:"evenodd"})})}function g_(e){return(0,n.jsx)(Nt,{height:"6",viewBox:"0 0 10 6",width:"10",...e,children:(0,n.jsx)("path",{d:"M9 1L5 5L1 1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function v_(e){return(0,n.jsx)(Nt,{height:"6",viewBox:"0 0 10 6",width:"10",...e,children:(0,n.jsx)("path",{d:"M1 5L5 1L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function C_(e){return(0,n.jsxs)(Nt,{height:"21",viewBox:"0 0 20 21",width:"20",...e,children:[(0,n.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}function z5(e){const t=Ft(e,["Default"]);return(0,n.jsx)(qt,{...t,fill:"none",viewBox:"1 1 18 18",children:(0,n.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 xd(e){const t=Ft(e,["Default"]);return(0,n.jsxs)(qt,{...t,fill:"none",viewBox:"0 0 18 18",children:[(0,n.jsx)("circle",{cx:"9",cy:"9",fill:"#74BF44",r:"9"}),(0,n.jsx)("path",{d:"M6.43994 9.12061L8.43994 11.1206L11.9399 7.62061",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}function x_(e){return(0,n.jsx)(Nt,{height:"12",viewBox:"0 0 12 12",width:"12",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M5.325 9.01843C3.225 9.01843 1.5 7.37868 1.5 5.29172C1.5 3.20476 3.225 1.49048 5.325 1.49048C7.425 1.49048 9.15 3.20476 9.15 5.29172C9.15 7.37868 7.425 9.01843 5.325 9.01843ZM9.525 8.42236C10.2 7.52795 10.575 6.48447 10.575 5.29193C10.575 2.38509 8.25 0 5.325 0C2.4 0 0 2.38509 0 5.29193C0 8.19876 2.4 10.5839 5.325 10.5839C6.525 10.5839 7.65 10.2112 8.475 9.54037L10.725 11.7764C10.875 11.9255 11.1 12 11.25 12C11.4 12 11.625 11.9255 11.775 11.7764C12.075 11.4783 12.075 11.0311 11.775 10.7329L9.525 8.42236Z",fill:"currentColor",fillRule:"evenodd"})})}function b_(e){return(0,n.jsx)(Nt,{height:"5",viewBox:"0 0 10 5",width:"10",...e,children:(0,n.jsx)("path",{d:"M5.56569 4.75592L8.76601 1.42259C9.27003 0.897618 8.91306 0 8.20027 0L1.79963 0C1.08683 0 0.729863 0.897618 1.23389 1.42259L4.43421 4.75592C4.74666 5.08136 5.25324 5.08136 5.56569 4.75592Z",fill:"currentColor"})})}function y_(e){return(0,n.jsxs)(Nt,{height:"18",viewBox:"0 0 18 18",width:"18",...e,children:[(0,n.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function L_(e){return(0,n.jsxs)(Nt,{height:"14",viewBox:"0 0 20 14",width:"20",...e,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function S_(e){return(0,n.jsx)(Nt,{height:"10",viewBox:"0 0 10 10",width:"10",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z",fill:"currentColor",fillRule:"evenodd"})})}const T_=z("cover"),bd=De("CoverDetailsSection",({children:e,type:t})=>(0,n.jsx)("section",{className:T_("details-content-section",{type:t}),children:e})),vm=e=>Rs(e)===ye.LIGHT;var Ege;const ms=on()("partner-content-book-info__"),$5=e=>{const{authors:t,backgroundColor:s,bookImage:o,bookTitle:r,buyLink:a,block:i,trackingInfo:c}=e,d=ze()?.publishedAt,h=K3(),m=t.filter(I=>!St()(I.name)),p=lt()(I=>I.name,m),v=p.length>1?sa()(" & ",p):p[0],C=v.slice(-1)==="s"?"":"s",g=vm(s),x=G()({[ms("book-image-block")]:i&&!g},{[ms("book-image-block")&&ms("dark-theme-book-image")]:i&&g},{[ms("book-image-course")]:!i}),S=ms(i?"flex-block":"flex-course"),L=ms(i?"image-container-block":"image-container-course"),b=G()(ms("small-text"),{[ms("dark-theme")]:g}),y=G()(ms("black-text"),{[ms("dark-theme")]:g}),T=G()(ms("button"),{[ms("dark-theme-button")]:g}),k=la({height:"210",width:"140",imageKey:o}),N=(0,u.useCallback)(()=>{},[d,h,c]);return(0,n.jsxs)("section",{className:S,children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:L,children:o?(0,n.jsx)("img",{alt:"",className:x,src:k}):(0,n.jsx)("div",{className:x})}),(0,n.jsxs)("div",{className:ms("text-container"),children:[(0,n.jsxs)("p",{className:b,children:["From ",v,"'",C]}),(0,n.jsx)("p",{className:y,children:r}),(0,n.jsx)("a",{className:T,href:a,onClick:N,rel:"noopener noreferrer",target:"_blank",children:"Buy the book"})]})]})};var wge;const qs=on()("partner-content-partner-info__"),_5=({backgroundColor:e,block:t,link:s,trackingInfo:o})=>{const a=ze()?.publishedAt,i=K3(),c=t?Tj():kj(),l=qs(t?"nbic-logo-light-bulb":"nbic-logo"),d=qs(t?"block-logo-container":"logo-container"),h=vm(e),m=G()(qs("small-text"),{[qs("dark-theme")]:h}),p=G()(qs("black-text"),{[qs("dark-theme")]:h}),v=G()(qs("button"),{[qs("dark-theme-button")]:h}),C=(0,u.useCallback)(()=>{},[a,i,o]);return(0,n.jsxs)("section",{className:qs("flex"),children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:d,children:(0,n.jsx)("img",{alt:"",className:l,src:c})}),(0,n.jsxs)("div",{className:qs("text-container"),children:[(0,n.jsx)("p",{className:m,children:"In partnership with"}),(0,n.jsx)("p",{className:p,children:"Next Big Idea Club"}),(0,n.jsx)("a",{className:v,href:s,onClick:C,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},Ra=on()("partner-content-author-card__"),U5=e=>{const{partnerContent:t}=e,s=ze(),{id:o,tenantId:r}=s??{},{data:a,type:i}=t,{authors:c,bookImage:l,bookTitle:d,buyLink:h,internalId:m,nbicLink:p}=a,v=c.filter(L=>L.name),C={courseId:o,partnerContentId:t.id,partnerContentInternalId:m,tenantId:r,contentSubtype:i},g=G()(Ra("flex"),Ra("author-container")),x=L=>la({width:"122",height:"122",imageKey:L}),S=(L,b)=>(0,n.jsx)("div",{"aria-hidden":"true",className:Ra("image-container"),children:L?(0,n.jsx)("img",{alt:b,className:Ra("author-image"),src:x(L)}):(0,n.jsx)("div",{className:Ra("author-image")})});return(0,n.jsxs)("ol",{className:"partner-content-author-card","data-testid":"partner-content-author-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),v.map(L=>(0,n.jsxs)("li",{className:g,children:[S(L.image,L.name),(0,n.jsx)("p",{className:Ra("author-name-text"),children:L.name})]},L.name))]})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)($5,{authors:c,bookImage:l,bookTitle:d,buyLink:h,trackingInfo:C})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(_5,{link:p,trackingInfo:C})})]})},k_=z("cover");function N_(e){const{coursePartnerContent:t,hasLogo:s,hasPartnerContent:o}=e;if(!o)return null;const r=k_("details-content-aside",{logo:s});return(0,n.jsx)("div",{className:r,children:(0,n.jsx)(bd,{type:"partner-content",children:(0,n.jsx)(U5,{partnerContent:t})})})}const I_=z("cover"),E_=De("CoverDetailsContentHeading",({className:e="",type:t,...s})=>{const o=Wr()(["Default"],s);return(0,n.jsx)("header",{...o,className:I_("details-content-heading",{type:t}).mix(e)})}),j_=z("cover");function w_({children:e,title:t,type:s}){const o=re(),{description:r,media:a,partnerContentId:i}=o??{},c=!!i,d=(a&&"image"in a?a.image?.key:null)!=null,m=s==="outline"?r?!d&&!c?"outline-no-logo":c&&!d?"outline-has-partner-content":c&&d?"outline-has-pc-and-logo":"outline":"outline-no-description":s;return(0,n.jsxs)("section",{className:j_("details-content-section",{type:m}),children:[(0,n.jsx)(E_,{type:s,children:(0,n.jsx)("h2",{children:t})}),e]})}const A_=z("cover");function ec(){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:A_("header-star"),fill:"none",height:"18",viewBox:"0 0 18 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M9 0V18",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M18 9H0",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M15.3 15.3002L2.69995 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M2.69995 15.3002L15.3 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}const R_=()=>kt(480),P_=()=>kt(768),M_={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function G5(){const e=re(),t=P_(),s=e?.theme?.coverPageType||"CENTERED";return t?M_[s]??s:s}const O_=z("cover"),B_=()=>null,D_=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(om,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)($t,{}),(0,n.jsx)(ec,{}),(0,n.jsx)(Hn,{}),(0,n.jsx)(hs,{}),(0,n.jsx)(ds,{})]})})}),H_=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)($t,{}),(0,n.jsx)(ec,{}),(0,n.jsx)(Hn,{}),(0,n.jsx)(hs,{}),(0,n.jsx)(ds,{})]})})}),F_=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ki,{}),(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)($t,{}),(0,n.jsx)(ec,{}),(0,n.jsx)(Hn,{}),(0,n.jsx)(hs,{}),(0,n.jsx)(ds,{})]})})]}),V_=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)($t,{}),(0,n.jsx)(ec,{}),(0,n.jsx)(Hn,{}),(0,n.jsx)(hs,{}),(0,n.jsx)(ds,{})]})}),(0,n.jsx)(Ki,{})]}),z_=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)($t,{}),(0,n.jsx)(ec,{}),(0,n.jsx)(Hn,{}),(0,n.jsx)(hs,{}),(0,n.jsx)(ds,{})]})}),(0,n.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,n.jsx)(Ki,{})})]});function $_(){switch(G5()){default:case"CENTERED_IMAGE":return(0,n.jsx)(z_,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,n.jsx)(H_,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,n.jsx)(V_,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,n.jsx)(F_,{});case"CENTERED_OVERLAY":return(0,n.jsx)(D_,{})}}function __(){return(0,n.jsxs)("header",{className:O_("header",{meta:!1}),"data-testid":"cover-header",children:[(0,n.jsx)($_,{}),(0,n.jsx)(u.Suspense,{children:(0,n.jsx)(B_,{})})]})}var U_=f(82920);const G_=z("cover");function W_({children:e}){const t=re(),{themeId:s}=t?.theme??{},o=G5(),r=U_.useMemo(()=>va()(o),[o]),a=G_(null,{layout:r});return(0,n.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":s,id:"cover",children:e})}var W5=f(82920);const Cm=z("lesson-header"),K_=({authorName:e,avatar:t,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:l,totalLessons:d,lessonId:h})=>{const m=a!=null&&i,p=t&&e&&i&&!m,v=p||m||c,C=c&&(p||m);return(0,n.jsxs)("div",{className:Cm("content"),children:[v&&(0,n.jsxs)("div",{className:Cm("info-row"),children:[p?(0,n.jsx)(Fn,{authorName:e,avatar:t}):(0,n.jsx)(Zi,{}),m&&(0,n.jsx)(Ea,{partnerContentAuthors:a}),C&&(0,n.jsx)("span",{"aria-hidden":"true",className:Cm("info-row--divider"),children:"|"}),c?(0,n.jsx)(zn,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,n.jsx)(Vn,{})]}),(0,n.jsx)("div",{children:(0,n.jsx)($n,{id:h,title:l})})]})},Q_=({authorName:e,avatar:t,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:l,totalLessons:d,lessonId:h})=>{const m=a!=null,p=W5.useMemo(()=>t&&e&&i&&!m,[t,e,i,m]);return(0,n.jsxs)(n.Fragment,{children:[c?(0,n.jsx)(zn,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,n.jsx)(Vn,{}),p&&(0,n.jsx)(Fn,{authorName:e,avatar:t}),i&&m&&(0,n.jsx)(im,{partnerContentAuthors:a}),(0,n.jsx)($n,{id:h,title:l})]})},Z_=({authorName:e,avatar:t,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:l,totalLessons:d,lessonId:h})=>{const m=a!=null,p=W5.useMemo(()=>t&&e&&i&&!m,[t,e,i,m]);return(0,n.jsxs)(n.Fragment,{children:[p?(0,n.jsx)(Fn,{authorName:e,avatar:t}):(0,n.jsx)(Zi,{}),i&&m&&(0,n.jsx)(Ea,{partnerContentAuthors:a}),(0,n.jsx)($n,{id:h,title:l}),c?(0,n.jsx)(zn,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,n.jsx)(Vn,{})]})};function Y_(e){const t=R_();return e.lessonHeaderSize===gi.SMALL&&!t?(0,n.jsx)(K_,{...e}):t?(0,n.jsx)(Q_,{...e}):(0,n.jsx)(Z_,{...e})}var xm=f(82920);const{COMPACT:X_,COVER:q_,OVERLAY:J_,SIDEBAR:eU}=ko,Pa=z("progress-circle");function tU({"aria-hidden":e,"aria-label":t,isFailed:s,isPassed:o,scope:r,value:a}){const[i,c]=xm.useState(a===100),l=(0,Be.A)(a),{theme:d}=re()??{},h=d?.progressIndicatorStyle??st.THEME_DEFAULT,m=r===q_,p=r===J_,v=h===st.THEME_DEFAULT,C=h===st.CIRCULAR_FILL,g=h===st.INCOMPLETE_COMPLETE,x=Pa("default",{failed:s,passed:o}),S=Pa({compact:r===X_,cover:m,overlay:p,sidebar:r===eU}),L=Pa("track",{"circular-fill":!p&&C,"incomplete-complete":m&&g}),b=Pa("fill",{"circular-fill":C,done:i,failed:s,passed:o,unstarted:a===0}),y=Pa("pass",{done:i,visible:o}),T=Pa("fail",{done:i,visible:s}),k=xm.useMemo(()=>C||a===100?a:0,[C,a]);return xm.useEffect(()=>{if(a!==100&&l===100)c(!1);else if(a===100&&!i&&!g){const N=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,N)}else a===100&&!i&&g&&c(!0)},[i,g,l,a]),(0,n.jsx)(n.Fragment,{children:v?(0,n.jsx)("svg",{"aria-hidden":e,"aria-label":t,className:x,focusable:"false",viewBox:"0 0 7 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"3.5",cy:"3.5",r:"2.5"})}):(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:S,fill:"none",focusable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:L,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,n.jsx)(pm,{className:b,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:k}),(0,n.jsx)("path",{className:y,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className: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 sU({Default:e,...t}){return(0,n.jsx)(e,{...t,hasOverlay:!1})}var nU=f(97127),yd=f.n(nU);const K5=e=>t=>(e(t),t.preventDefault()),Do=e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},xn=e=>t=>{e(t),t.preventDefault(),Do(t)},Ld=z("lesson-progress"),{COMPACT:bm,COVER:tc,OVERLAY:ym,SIDEBAR:sc}=ko;function oU({canComplete:e,color:t,hasRestriction:s,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:i,isFailed:c,isLegacy:l=void 0,isPassed:d,isTooltipVisible:h,navigationStyle:m,onHideTooltip:p,onMarkComplete:v=void 0,onMarkReset:C=void 0,onShowTooltip:g,percentComplete:x,progressGraphic:S,scope:L,labels:b}){const y=(0,u.useRef)(),T=(0,u.useRef)(),k=(0,u.useRef)(),N=(0,u.useRef)(),{theme:{progressIndicatorStyle:I=st.THEME_DEFAULT}}=ze(),w=I===st.THEME_DEFAULT,R=Ld({compact:L===bm,cover:L===tc&&!l,"legacy-cover":L===tc&&l,inactive:s,overlay:L===ym,sidebar:L===sc&&!l,"legacy-sidebar":L===sc&&l,"theme-default":w}),E=Ld("graphic",{compact:L===bm,cover:L===tc&&!l,"legacy-cover":L===tc&&l,overlay:L===ym,sidebar:L===sc&&!l,"legacy-sidebar":L===sc&&l}),j=Ld("tooltip",{legacy:l}).toString(),O=(0,u.useCallback)(()=>{o?C?.():v?.()},[o,v,C]),A=(0,u.useCallback)(H=>{yd()(p)&&Ss(H)&&h&&p()},[p,h]),P=(0,u.useCallback)(()=>{clearTimeout(k.current),!s&&yd()(g)&&(T.current=setTimeout(g,600))},[s,g]),M=(0,u.useCallback)(()=>{clearTimeout(T.current),yd()(p)&&(k.current=setTimeout(p,150))},[p]),F=(0,u.useCallback)(()=>{setTimeout(()=>{if(h){const H=y.current.getBoundingClientRect(),V=N.current.offsetParent.getBoundingClientRect(),{height:K,width:U}=H,X=H.left-V.left,oe=H.top-V.top;Object.assign(N.current.style,{transform:`translate(${X}px, ${oe}px)`,width:`${U}px`,height:`${K}px`})}},0)},[h]);if((0,u.useLayoutEffect)(()=>F(),[F]),(0,tt.A)("resize",F,window),(0,tt.A)("keydown",A,document),P5(y,M),e){const V=rU({labels:b,percentComplete:x,canReset:!0}),K=!i||!1,U=Ld("action",{disabled:K});return(0,n.jsx)("span",{className:R,"data-testid":"lesson-progress",children:(0,n.jsx)("button",{"aria-label":V,className:U,disabled:K,onBlur:p,onClick:O,onFocus:g,type:"button",children:(0,n.jsxs)("span",{className:E,onMouseEnter:P,onMouseLeave:M,ref:y,children:[(0,n.jsx)(S,{"aria-hidden":"true",color:t,isCurrent:r,isDark:a,isFailed:c,isPassed:d,navigationStyle:m,scope:L,value:x}),i&&!s&&(0,n.jsx)(Q5,{className:j,dark:a,ref:N,scope:L,visible:h,children:V})]})})})}const B=aU({labels:b,isFailed:c,percentComplete:x});return(0,n.jsx)("span",{className:R,"data-testid":"lesson-progress",children:(0,n.jsxs)("span",{className:E,onMouseEnter:P,onMouseLeave:M,ref:y,children:[(0,n.jsx)(S,{"aria-label":B,color:t,isCurrent:r,isDark:a,isFailed:c,isPassed:d,navigationStyle:m,scope:L,value:x}),i&&!s&&(0,n.jsx)(Q5,{className:j,dark:a,ref:N,scope:L,visible:h,children:B})]})})}const Q5=(0,u.forwardRef)((e,t)=>{const{children:s,className:o,dark:r,scope:a,visible:i}=e,c=(0,u.useMemo)(()=>z(o),[o]),l=c({compact:a===bm,cover:a===tc,overlay:a===ym,sidebar:a===sc,visible:i}),d=c("inner",{dark:r,light:!r}),h=(0,n.jsx)("div",{"aria-hidden":"true",onClick:Do,ref:t,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:l,children:(0,n.jsx)("div",{className:d,children:s})})})});return(0,gn.createPortal)(h,lo())});function rU({labels:e,canReset:t,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:i,progressPieClickToReset:c}=e;return o&&t?`${r}. ${c}`:s===100&&!t?r:s===0?`${a}. ${i}`:`${s}% ${r}. ${i}`}function aU({labels:e,isFailed:t,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:i}=e;return t?i:o?r:s===0?a:`${s}% ${r}`}const Z5=u.memo(oU);function iU({color:e,hasRestriction:t,isComplete:s,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:i,lessonTitle:c,navigationStyle:l,onHideTooltip:d,onShowTooltip:h,percentComplete:m,progressGraphic:p,scope:v,labels:C}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"overview-list-item__progress",children:(0,n.jsx)(Z5,{canComplete:!1,color:e,hasRestriction:t,isComplete:s,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:i,labels:C,navigationStyle:l,onHideTooltip:d,onShowTooltip:h,percentComplete:m,progressGraphic:p,scope:v})}),(0,n.jsx)("span",{className:"overview-list-item__title",children:c})]})}function cU(){return null}function Y5({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",ref:t,viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M3.33177 4.1487L6.48034 1.00013M9.6289 4.14869L6.48034 1.00013M6.48034 1.00013L6.47966 11.9601"})})}function lU(e){const t=Ft(e,["Default"]);return(0,n.jsxs)(qt,{...t,fill:"none",viewBox:"0 3 16 10",children:[(0,n.jsx)("path",{d:"M1.51472 7.99993H14.4853",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M9.50008 12.4994L14.5004 7.99932L9.50008 3.99973",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}function dU(e){const t=Ft(e,["Default"]);return(0,n.jsx)(qt,{viewBox:"0 0 25 16",...t,children:(0,n.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 X5(e){return(0,n.jsx)(Nt,{height:"8",viewBox:"0 0 14 8",width:"14",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M13 1L7 7L1 1",stroke:"currentColor"})})}function q5(e){const t=Ft(e,["Default"]);return(0,n.jsxs)(qt,{...t,fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M5 7.71429L7.54545 10L11.5 5.5",stroke:"white"})]})}function J5(e){const t=Ft(e,["Default"]);return(0,n.jsxs)(qt,{...t,fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("path",{d:"M8.00085 5.20305L5.14081 8.06339C5.14079 8.06341 5.14077 8.06343 5.14075 8.06345C5.00146 8.20273 4.92319 8.39163 4.92314 8.58861V8.5887V9.93926C4.92314 10.1851 5.12244 10.3844 5.36829 10.3844H6.71884H6.71894C6.91593 10.3844 7.10484 10.3061 7.24413 10.1668C7.24414 10.1668 7.24415 10.1667 7.24416 10.1667L10.104 7.30664C10.104 7.30657 10.1041 7.3065 10.1042 7.30643L10.1042 7.30638C10.1043 7.30631 10.1044 7.30622 10.1044 7.30615L10.9465 6.46442C11.03 6.38095 11.0769 6.26773 11.0769 6.14966C11.0769 6.0316 11.03 5.91836 10.9466 5.83487L9.47304 4.36105C9.29924 4.18722 9.01746 4.18716 8.84359 4.36091L8.00111 5.20279C8.0011 5.2028 8.0011 5.2028 8.0011 5.2028L8.00085 5.20305Z",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"0.890284"}),(0,n.jsx)("circle",{cx:"8",cy:"7.5293",r:"7",stroke:"white"})]})}function uU({className:e}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"6",cy:"6",r:"5"}),(0,n.jsx)("path",{d:"M9.5 9.5L14 14"})]})}function hU(e){const t=Ft(e,["Default"]);return(0,n.jsxs)(qt,{...t,fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M10 6L6 10",stroke:"white"}),(0,n.jsx)("path",{d:"M6 6L10 10",stroke:"white"})]})}function mU({className:e}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",viewBox:"0 0 10 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M1 1.40002L5 5.40002L9 1.40002",strokeWidth:"1.6"})})}function pU(e){const t=Ft(e,["Default"]);return(0,n.jsxs)(qt,{viewBox:"0 0 12 12",...t,children:[(0,n.jsx)("path",{d:"M10.7425 0.742189L11.4496 1.4493L1.55012 11.3488L0.843012 10.6417L10.7425 0.742189Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M11.1571 10.6417L10.45 11.3488L0.550537 1.44929L1.25764 0.742188L11.1571 10.6417Z",fill:"currentColor"})]})}const fU=()=>kt(1200),gU=()=>kt(768),Lm=()=>kt(480),eC=z("cover");function vU(){const e=re(),t=fU(),s=Oe(e?.description);if(!s)return null;const o=Sa("description"),r=(0,Xt.uW)(e?.description)?{"data-l10n-id":e?.description?.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:eC("details-content-section"),children:[t&&(0,n.jsx)(c6,{}),(0,n.jsx)(ke,{className:eC("details-content-description"),value:U1(s)},"text")]})})}const CU={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function Sm(){const e=re(),t=gU(),s=e?.theme?.coverPageType||"CENTERED";return t?CU[s]??s:s}function xU({Default:e,...t}){const s=Sm(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(s);return(0,n.jsx)(e,{...t,reverseColumns:o})}const tC=z("cover");function nc({accentColor:e,hasOverlay:t=!1,isShape:s=!1}){const{alpha:o,ariaLabel:r,media:a,role:i}=Tr("coverImage"),c=s?{backgroundColor:e}:da({alpha:o,hasOverlay:t,media:a});return(0,n.jsx)("div",{className:tC("header-graphic-container"),children:(0,n.jsx)("div",{"aria-label":r,className:tC("header-graphic"),"data-testid":"cover-header-graphic",role:i,style:c})})}const sC=e=>(0,n.jsx)(Sd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.jsx)("path",{d:"M0.319,0.998 L1,0.899 V0 H0 V0.899 L0.192,0.98 C0.234,0.998,0.277,1,0.319,0.998"})})}),nC=e=>(0,n.jsx)(Sd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.jsx)("path",{d:"M0.661,0.963 L1,0.804 V0 H0 V0.804 L0.339,0.963 C0.445,1,0.555,1,0.661,0.963"})})}),oC=e=>(0,n.jsx)(Sd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.jsx)("path",{d:"M0.481,0.991 L0.908,0.825 C0.99,0.793,1,0.694,0.982,0.616 L0.68,0.075 C0.636,-0.003,0.534,-0.023,0.465,0.033 L0.055,0.364 C-0.007,0.414,-0.017,0.505,0.031,0.568 L0.316,0.944 C0.355,0.995,0.422,1,0.481,0.991"})})}),rC=e=>(0,n.jsx)(Sd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.jsx)("path",{d:"M0.519,0.991 L0.093,0.825 C0.01,0.793,-0.025,0.694,0.019,0.616 L0.321,0.075 C0.364,-0.003,0.466,-0.023,0.536,0.033 L0.946,0.364 C1,0.414,1,0.505,0.97,0.568 L0.685,0.944 C0.646,0.995,0.579,1,0.519,0.991"})})}),bU={LEFT_OVERLAY:sC,LEFT:sC,CENTERED:nC,CENTERED_OVERLAY:nC,SPLIT_LEFT:oC,SPLIT_LEFT_IMAGE:oC,SPLIT_RIGHT:rC,SPLIT_RIGHT_IMAGE:rC},Sd=({children:e,className:t="svgPath",height:s,width:o,viewBox:r})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:e});function Er({className:e,coverPageType:t}){const s=t?bU[t]:null;return s?(0,n.jsx)(s,{className:e}):null}const aC=z("cover"),Ma=()=>(0,n.jsxs)("div",{className:aC("author-published-wrap"),children:[(0,n.jsx)(Hn,{}),(0,n.jsx)(l6,{})]}),yU=({coverPageType:e})=>{const t=Lm();return(0,n.jsxs)(om,{children:[(0,n.jsx)(Er,{coverPageType:e}),(0,n.jsxs)(us,{children:[!t&&(0,n.jsx)($t,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(hs,{}),t&&(0,n.jsx)($t,{}),(0,n.jsx)(ds,{})]})]})},LU=({coverPageType:e})=>{const t=Lm();return(0,n.jsxs)(Xs,{children:[(0,n.jsx)(Er,{coverPageType:e}),(0,n.jsxs)(us,{children:[!t&&(0,n.jsx)($t,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(hs,{}),t&&(0,n.jsx)($t,{}),(0,n.jsx)(ds,{})]})]})},SU=({coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Er,{coverPageType:e}),(0,n.jsx)(nc,{}),(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)($t,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(hs,{}),(0,n.jsx)(ds,{})]})})]}),TU=({accentColor:e,coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)($t,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(hs,{}),(0,n.jsx)(ds,{})]})}),(0,n.jsx)(Er,{coverPageType:t}),(0,n.jsx)(nc,{accentColor:e,isShape:!0})]}),kU=({coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)($t,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(hs,{}),(0,n.jsx)(ds,{})]})}),(0,n.jsx)(Er,{coverPageType:e}),(0,n.jsx)(nc,{})]}),NU=({accentColor:e,coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Er,{coverPageType:t}),(0,n.jsx)(nc,{accentColor:e,isShape:!0}),(0,n.jsx)(Xs,{children:(0,n.jsxs)(us,{children:[(0,n.jsx)($t,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(hs,{}),(0,n.jsx)(ds,{})]})})]});function IU(e){const t=Sm(),s={...e,coverPageType:t};switch(t){default:case ce.LEFT_OVERLAY:case ce.CENTERED_OVERLAY:return(0,n.jsx)(yU,{...s});case ce.LEFT:case ce.CENTERED:return(0,n.jsx)(LU,{...s});case ce.SPLIT_LEFT:return(0,n.jsx)(TU,{...s});case ce.SPLIT_LEFT_IMAGE:return(0,n.jsx)(kU,{...s});case ce.SPLIT_RIGHT:return(0,n.jsx)(NU,{...s});case ce.SPLIT_RIGHT_IMAGE:return(0,n.jsx)(SU,{...s})}}function EU(e){const{partnerContentId:t}=re()??{},s=sm(),r=!!(!!t&&!!s);return(0,n.jsx)("header",{className:aC("header",{"with-info":r}),"data-testid":"cover-header",children:(0,n.jsx)(IU,{...e})})}var jU=f(82920);const wU=z("cover");function AU({children:e}){const t=re(),{themeId:s}=t?.theme??{},o=Sm(),r=jU.useMemo(()=>va()(o),[o]),a=wU(null,{layout:r});return(0,n.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":s,id:"cover",children:e})}const mo=z("cover");function RU({percentComplete:e}){const t=Lm(),s=un(),o=xe(),r=S3();return null}var iC=f(82920);const Td=z("lesson-header"),Tm=()=>(0,n.jsx)("div",{className:Td("author--hidden")}),PU=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:l,title:d,totalLessons:h,lessonId:m})=>{const p=i!=null&&c,v=t&&e&&c&&!p,C=v||p||l,g=l&&(v||p);return(0,n.jsxs)("div",{className:Td("content"),children:[C&&(0,n.jsxs)("div",{className:Td("info-row"),children:[v?(0,n.jsx)(Fn,{authorName:e,avatar:t}):(0,n.jsx)(Tm,{}),p&&(0,n.jsx)(Ea,{partnerContentAuthors:i}),g&&(0,n.jsx)("span",{"aria-hidden":"true",className:Td("info-row--divider"),children:"|"}),l?(0,n.jsx)(zn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(Vn,{})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)($n,{id:m,title:d}),s&&(0,n.jsx)(Nr,{description:s})]})]})},MU=e=>{const{authorName:t,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:l,showLessonCount:d,title:h,totalLessons:m,lessonId:p}=e,v=c!=null,C=iC.useMemo(()=>s&&t&&l&&!v,[s,t,l,v]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($n,{id:p,title:h}),(0,n.jsxs)(E$,{children:[C?(0,n.jsx)(Fn,{authorName:t,avatar:s}):(0,n.jsx)(Tm,{}),l&&v&&(0,n.jsx)(Ea,{partnerContentAuthors:c}),d?(0,n.jsx)(zn,{lessonName:r,lessonNumber:a,lessonPreposition:i,showPartnerContent:v,totalLessons:m}):(0,n.jsx)(Vn,{})]}),o&&(0,n.jsx)(Nr,{description:o})]})},OU=e=>{const{authorName:t,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:l,showLessonCount:d,title:h,totalLessons:m,lessonId:p}=e,v=c!=null,C=iC.useMemo(()=>s&&t&&l&&!v,[s,t,l,v]);return(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)(zn,{lessonName:r,lessonNumber:a,lessonPreposition:i,totalLessons:m}):(0,n.jsx)(Vn,{}),C?(0,n.jsx)(Fn,{authorName:t,avatar:s}):(0,n.jsx)(Tm,{}),l&&v&&(0,n.jsx)(im,{partnerContentAuthors:c}),(0,n.jsx)($n,{id:p,title:h}),o&&(0,n.jsx)(Nr,{description:o})]})};function BU(e){const t=Z1();return e.lessonHeaderSize===gi.SMALL&&!t?(0,n.jsx)(PU,{...e}):t?(0,n.jsx)(OU,{...e}):(0,n.jsx)(MU,{...e})}var kd=f(82920);const{COMPACT:DU,COVER:HU,OVERLAY:FU,SIDEBAR:VU}=ko,oc=z("progress-circle");function zU({"aria-hidden":e,"aria-label":t,isFailed:s,isPassed:o,scope:r,value:a}){const[i,c]=kd.useState(a===100),l=(0,Be.A)(a),{theme:d}=re()??{},h=d?.progressIndicatorStyle??st.THEME_DEFAULT,m=r===HU,p=r===FU,v=h===st.THEME_DEFAULT,C=h===st.CIRCULAR_FILL,g=h===st.INCOMPLETE_COMPLETE,x=oc({compact:r===DU,cover:m,sidebar:r===VU,overlay:p}),S=oc("track",{"circular-fill":!p&&C,"incomplete-complete":m&&g}),L=oc("runner",{"circular-fill":C,done:i,failed:s,passed:o,unstarted:a===0}),b=oc("pass",{done:i,visible:o}),y=oc("fail",{done:i,visible:s}),T=kd.useMemo(()=>C||a===100?a:0,[C,a]);kd.useEffect(()=>{if(a!==100&&l===100)c(!1);else if(a===100&&!i&&!g){const N=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,N)}else a===100&&!i&&g&&c(!0)},[i,g,l,a]);const k=kd.useCallback(()=>{a===100&&c(!0)},[a]);return(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:x,fill:"none",focusable:"false",role:"img",viewBox:"0 0 15 15",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:S,cx:"7.5",cy:"7.5",fill:"transparent",r:"6.5",strokeWidth:"2",transform:"rotate(-89.9 7.5 7.5)"}),v?(0,n.jsx)(F5,{className:L,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:k,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,n.jsx)(pm,{className:L,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:k,r:6.5,strokeLinecap:"round",strokeWidth:2,value:T}),(0,n.jsx)("path",{className:b,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,n.jsx)("path",{className:y,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 Nd=({"aria-hidden":e=void 0,"aria-label":t=void 0,progress:s=0,runnerClass:o,trackClass:r})=>(0,n.jsx)("div",{"aria-hidden":e,"aria-label":t,className:r,role:"img",children:(0,n.jsx)("div",{className:o,style:{width:`${s}%`}})}),$U=z("nav-sidebar-header");function _U(e){const{classProgressRunner:t,classProgressText:s,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=e;return(0,n.jsxs)("div",{className:$U("progress"),"data-testid":"nav-sidebar-progress",children:[(0,n.jsx)("div",{className:s,children:a}),(0,n.jsx)(Nd,{"aria-hidden":"true",progress:r,runnerClass:t,trackClass:o})]})}function UU({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",height:"17",ref:t,role:"img",viewBox:"0 0 17 17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 GU(e){return(0,n.jsx)(qt,{...e,viewBox:"0 0 16 8",children:(0,n.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 WU(e){const t=Ft(e,["Default"]);return(0,n.jsx)(qt,{...t,viewBox:"0 0 16 8",children:(0,n.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 KU({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",ref:t,version:"1.1",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 QU(e){return(0,n.jsx)(Nt,{height:"12",viewBox:"0 0 16 12",width:"16",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M9.6665 2H0.666504V0H9.6665V2ZM12.6665 6H0.666504V4H12.6665V6ZM0.666504 10H7.6665V8H0.666504V10Z",fill:"currentColor",fillRule:"evenodd"})})}function cC(e){return(0,n.jsx)(Nt,{height:"8",viewBox:"0 0 12 8",width:"12",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M6.00008 7.91406L11.7072 2.20696L10.293 0.792742L6.00007 5.08564L1.70718 0.792742L0.292969 2.20696L6.00008 7.91406Z",fill:"currentColor",fillRule:"evenodd"})})}function ZU(e){return(0,n.jsx)(Nt,{height:"8",viewBox:"0 0 12 8",width:"12",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M5.99992 0.0859375L0.292818 5.79304L1.70703 7.20726L5.99993 2.91436L10.2928 7.20726L11.707 5.79304L5.99992 0.0859375Z",fill:"currentColor",fillRule:"evenodd"})})}function YU(e){return(0,n.jsxs)(Nt,{height:"21",viewBox:"0 0 20 21",width:"20",...e,children:[(0,n.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}function XU(e){return(0,n.jsx)(Nt,{height:"15",viewBox:"0 0 16 15",width:"16",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M2 6.51982C2 4.02359 4.02359 2 6.51982 2C9.01605 2 11.0396 4.02359 11.0396 6.51982C11.0396 9.01605 9.01605 11.0396 6.51982 11.0396C4.02359 11.0396 2 9.01605 2 6.51982ZM6.51982 0C2.91902 0 0 2.91902 0 6.51982C0 10.1206 2.91902 13.0396 6.51982 13.0396C8.06462 13.0396 9.48394 12.5024 10.6011 11.6045L13.9964 14.9998L15.4106 13.5856L11.9518 10.1268C12.6391 9.09384 13.0396 7.8536 13.0396 6.51982C13.0396 2.91902 10.1206 0 6.51982 0Z",fill:"currentColor",fillRule:"evenodd"})})}function qU(e){return(0,n.jsxs)(Nt,{height:"18",viewBox:"0 0 18 18",width:"18",...e,children:[(0,n.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function JU(e){return(0,n.jsxs)(Nt,{height:"14",viewBox:"0 0 20 14",width:"20",...e,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,n.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function eG(e){return(0,n.jsx)(Nt,{height:"14",viewBox:"0 0 14 14",width:"14",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M13.4646 2.46462L11.8484 0.848376L7.00023 5.69652L2.15186 0.848143L0.535612 2.46439L5.38399 7.31276L0.534668 12.1621L2.15091 13.7783L7.00023 8.92901L11.8493 13.7781L13.4656 12.1619L8.61648 7.31276L13.4646 2.46462Z",fill:"currentColor",fillRule:"evenodd"})})}var lC=f(82920);const dC=zs,tG={classic:zs,default:zs,imaginative:Qu,organic:Xu},uC=Object.assign(lC.createContext(dC),{displayName:"ThemeContext"});function sG(){return lC.useContext(uC)}function nG({themeId:e,...t}){return(0,n.jsx)(uC.Provider,{...t,value:tG[e]??dC})}function oG(e){return(0,n.jsx)(n.Fragment,{children:e.children})}function rG(){return null}function hC(e,t,s){function o(r){const i=sG()?.[e]?.[t]??s;return(0,n.jsx)(i,{...r,Default:s})}return o.displayName=`ThemeComponent(${t})`,o}function De(e,t=oG){return hC("components",e,t)}function Mt(e){return hC("icons",e,rG)}var Id=f(82920);const mC=Id.createContext({typefaces:[]});function aG({addTypefaces:e,children:t,typefaces:s=[]}){iG(s);const o=Id.useMemo(()=>({addTypefaces:e,typefaces:s}),[e,s]);return(0,n.jsx)(mC.Provider,{value:o,children:t})}function Oge(){return Id.useContext(mC)}function iG(e){Id.useEffect(()=>{const t=new CSSStyleSheet;for(const s of e){const o=`[data-rise-typeface-id="${CSS.escape(s.id)}"] { font-family: "${CSS.escape(s.name)}"; }`;t.insertRule(o)}return t.insertRule('[data-rise-typeface-id="@@heading@@"] { font-family: var(--font-family-head); }'),t.insertRule('[data-rise-typeface-id="@@body@@"] { font-family: var(--font-family-body); }'),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(s=>s!==t)}},[e])}function cG(e){return e.fonts}function pC(){return he(cG)}var lG=f(82920);function dG({children:e}){const t=pC(),s=lG.useMemo(()=>{const o=new Map;for(const r of t)o.set(r.id,{id:String(r.id),name:r.name,default:r.default});return Array.from(o.values())},[t]);return(0,n.jsx)(aG,{typefaces:s,children:e})}function uG(){const e=re();return{accentContrast:e.theme?.accentContrast,bodyTypeface:e.bodyTypeface,color:e.color,headingTypeface:e.headingTypeface,isLegacyCourse:e.isLegacyCourse,uiTypeface:e.uiTypeface}}function hG(){const e=os(),t=(0,je.zy)(),s=(0,u.useRef)(e),o=(0,u.useRef)(new Set),r=(0,u.useRef)(window.location.href),a=(0,u.useRef)(null);s.current=e,a.current==null&&(a.current={push:(...i)=>s.current(...i),replace:i=>s.current(i,{replace:!0}),go:i=>s.current(i),goBack:()=>s.current(-1),goForward:()=>s.current(1),listen:i=>(o.current.add(i),()=>{o.current.delete(i)}),location:t}),(0,u.useEffect)(()=>{a.current&&gT(a.current)},[]),(0,u.useEffect)(()=>{if(!a.current)return;a.current.location=t,o.current.forEach(l=>l(t));const i=r.current,c=window.location.href;r.current=c,window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:i,newURL:c}))},[t])}var Oa=f(58893),mG=f(30349),pG=f.n(mG);const fG=Us()(g1()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),Me()("#FFF")),gG=Xn()({color:fG}),vG=({accentContrast:e,bodyTypeface:t,color:s,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const i=(0,u.useMemo)(()=>{const d=Rs(s),h=e??d;return!r&&(h===ye.DARK||h===ye.AUTO&&d===ye.DARK)?[Lt.DARK,Lt.LIGHT]:[Lt.LIGHT,Lt.DARK]},[e,s,r]),[c,l]=i;return(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:pG()({bodyTypeface:t,colorThemeRGB:(0,Oa.A)(s)?.slice(0,3),colorTheme:s,colorThemeContrast:c,colorThemeContrastComplementary:l,colorThemeContrastComplementaryRGB:(0,Oa.A)(l)?.slice(0,3),colorThemeContrastRGB:(0,Oa.A)(c)?.slice(0,3),colorThemeTint:R0(s),colorThemeTransparent:s+"1A",headingTypeface:o,uiTypeface:a})}})},km=me()(vG,gG);km.displayName="Branding",km.propTypes={bodyTypeface:Fe().string,color:Fe().string.isRequired,headingTypeface:Fe().string,uiTypeface:Fe().string};const CG=(0,u.memo)(km),xG=e=>e?`${e} | ${Nf}`:Nf,rc=e=>ci()?e:xG(e);let Nm=!1;function jr({children:e,title:t,isExplicit:s=!1}){const o=rc(_v()),r=t??o;return u.useEffect(()=>{if(s)return Nm=!0,document.title=r,()=>{Nm=!1};Nm||(document.title=r)},[r,s]),(0,n.jsx)(n.Fragment,{children:e})}function bG(e,t){const s=ml(),{currentLocale:o}=ct(),r=o&&s?.localeLabelSets?.[o]?.labels||e,a=o&&s?.localeLabelSets?.[o]!=null?o:t;return{labels:r,labelsLocale:a}}function yG({children:e}){const t=re(),s=Ro(),{labels:o,iso639Code:r}=Mw(),a=Wz(),i=jo(),c=t?.locale??r,{labels:l,labelsLocale:d}=bG(o,c);return(0,n.jsx)(OE,{course:t,courseProgress:s,labels:l,labelsLocale:d,partnerContent:a,search:i,children:e})}var LG=f(56050);function SG({children:e,l10n:t}){const s=(0,u.useMemo)(()=>({l10n:t==null?null:(0,LG.omit)(["locales","defaultLocale"],t)}),[t]),o=t?.locales,r=t?.defaultLocale,a=t?.localeSelectorOptions,i=t?.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,n.jsx)(Si.Provider,{value:s,children:(0,n.jsx)(d1.Provider,{value:c,children:e})})}function fC(e,t=window.location){const{defaultLocale:s,locales:o}=e??{};let r=new URLSearchParams(t.search).get("locale");if(r==null&&t.hash){const c=(0,je.Rr)(t.hash.slice(1));r=new URLSearchParams(c.search).get("locale")}const a=new URL(window.location.href);return a.pathname.startsWith("/view-pdf/")&&(r=a.searchParams.get("locale")),o?.find(c=>c.locale===r)?.locale||s}function TG({defaultLocale:e,locales:t}){const s=os(),o=(0,je.zy)(),r=(0,u.useRef)(o);r.current=o;const a=(0,u.useMemo)(()=>fC({defaultLocale:e,locales:t},o),[e,t,o]),i=(0,u.useCallback)((c,l="replace")=>{const d=r.current,h=c===e?"":c,m=new URLSearchParams(d.search);m.set("locale",h);const p=d.pathname+"?"+m.toString()+d.hash;l==="push"?s(p):s(p,{replace:!0})},[e,s]);return{currentLocale:a,setCurrentLocale:i}}const gC=e=>e===window.location.origin||e==="articulate.com"||e.endsWith(".articulate.com");function kG(e,t){const s=re(),o=ml(),r=he(l=>l.courseLabels.iso639Code),a=s?.locale??r,i=o?.locales;(0,u.useEffect)(()=>{document.documentElement.lang=e??a??""},[e,a]),(0,u.useEffect)(()=>{s&&t1({course:s,locales:i,locale:e})?document.documentElement.dir="rtl":document.documentElement.dir=""},[s,i,e]);const c=(0,u.useCallback)(l=>{if(!gC(l.origin))return;const h=[l.data].flat().find(m=>m?.type==="preview:selectLocale");h&&t(h.data,"replace")},[t]);(0,u.useEffect)(()=>(window.addEventListener("message",c),()=>window.removeEventListener("message",c)),[c])}function NG({children:e}){const t=ml(),{currentLocale:s,setCurrentLocale:o}=TG({defaultLocale:t?.defaultLocale,locales:t?.locales});return kG(s,o),(0,n.jsx)(SG,{l10n:t,children:(0,n.jsx)(EE,{currentLocale:s,setCurrentLocale:o,children:e})})}function IG(e){const t=e,s=t?.exportSettings?.webExportSettings,o=t?.exportSettings?.exportType==="raw",r=t?.exportSettings?.exportType==="lms";return!!(o&&s?.disableCoverPage||r&&t?.lmsOptions?.disableCoverPage)}function vC(e){return!Mn.isInstantLink&&IG(e)}function EG(e){return y2(e)||C0(e)||Zr(e)||x0(e)?!0:vC(e)}function CC(e){return e.lessonsOnly[0]?.id}const xC=(0,u.createContext)({translationHoveredPath:null});function jG(){return(0,u.use)(xC)}const wG=xC.Provider,AG=new Set(["preview:lessonUpdate","preview:navigate","preview:scrollto","preview:showLessonNavNext","preview:showLessonNavPrev","preview:themeUpdate","preview:update","preview:navOpen","preview:navClose","preview:replace","preview:changeset","preview:selectLocale",Ts.FOCUS,Ts.TOGGLE,Ts.CLEAR,Ts.TRANSLATION_HOVERED,Ts.TRANSLATION_HOVER_CLEAR]),RG=(e,t)=>!(e==="firstLesson"&&t.includes("/lessons/"))&&!(e==="cover"&&(t==="/"||t==="/preview"));function PG({course:e,fonts:t,l10n:s}){let o=!1;return iv(t,()=>{o||(ys(BN({course:e,fonts:t,l10n:s})),window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin))}),{cancel(){o=!0}}}function MG(){let e=[],t=0;return s=>{clearTimeout(t);for(const o of s)e.push(o);t=window.setTimeout(()=>{const o=e;e=[],ys(HN(o))},15)}}function OG(){const e=os(),t=(0,je.zy)(),s=he(S=>S.course),[o,r]=(0,u.useState)(""),[a,i]=(0,u.useState)({translationHoveredPath:null}),[c,l]=(0,u.useState)(!1),[d,h]=(0,u.useState)(!1),m=(0,u.useRef)(e);m.current=e;const p=(0,u.useRef)(t);p.current=t;const v=(0,u.useRef)(s);v.current=s;const C=(0,u.useRef)(null),g=(0,u.useRef)(MG()),x=(0,u.useRef)(t);return(0,u.useEffect)(()=>{x.current!==t&&(h(!0),x.current=t)},[t]),(0,u.useEffect)(()=>{if(d){const S=setTimeout(()=>{h(!1),l(!1)},0);return()=>clearTimeout(S)}},[d]),(0,u.useEffect)(()=>{const S=L=>{const{data:b,origin:y}=L;if(!gC(y))return;const T=m.current,N=p.current.pathname,I=v.current,w=I?.lessonsOnly,R=Array.isArray(b)?b:[b];for(const{type:E,data:j,options:O}of R)if(AG.has(E)){if(E===Ts.TOGGLE&&window.targetMode?.(j,P=>{window.parent.postMessage({type:Ts.HOVERED,data:P},"*")})?.then(P=>{window.parent.postMessage({type:Ts.SELECTED,data:P},"*")}).catch(()=>{window.parent.postMessage({type:Ts.SELECTED,data:[]},"*")}),E==="preview:update"&&r(j),E==="preview:themeUpdate"){C.current?.();const{course:A,l10n:P,fonts:M,theme:F}=j,B={...A,theme:F},H=pk({course:I,updates:B}),{cancel:V}=PG({course:H,fonts:M,l10n:P});C.current=V}if(E==="preview:navigate"){let{type:A,lessonId:P,itemId:M}=j;const{path:F,replace:B}=j,H=B?V=>T(V,{replace:!0}):T;if(RG(A,N)){if(Array.isArray(F)){const V=(0,_r.Ce)(F);if(V)({type:A,lessonId:P,itemId:M}=V);else if(F[0]==="mondrian")for(const K of I?.lessons??[]){const U=K.items?.find(X=>"blockumentId"in X&&X.blockumentId===F[1]);if(U){A="lesson",P=K.id,M=U.id;break}}else continue}if(A==="firstLesson"&&w?.[0])H(`/lessons/${w[0].id}`);else if(A==="cover"||A==="course")H("/");else if(A==="lesson"&&w?.find(({id:K})=>K===P)!=null&&(m1(Ov.getState())===Io.RESTRICTED&&ys(aI({targetLessonId:P,lessons:I?.lessons??[]})),`/lessons/${P}`!==N&&H(`/lessons/${P}`),M||F)){const U=()=>{window.dispatchEvent(new CustomEvent(Ze,{detail:{lessonId:P,itemId:M,path:F}}))};`/lessons/${P}`!==N?setTimeout(U,1500):U()}}}if(E===Ts.CLEAR&&window.dispatchEvent(new CustomEvent(lm)),E==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(T5)),E==="preview:navClose"&&window.dispatchEvent(new CustomEvent(k5)),E==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(md)),E==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(pd)),E==="preview:scrollto"&&typeof j.target=="string"){const A=document.querySelector(j.target);A&&A.scrollIntoView({behavior:"smooth",block:"start"})}E==="preview:replace"&&ys(ON(j)),E==="preview:changeset"&&g.current(j),E===Ts.FOCUS&&_B(j.path),E===Ts.TRANSLATION_HOVERED&&(i({translationHoveredPath:j.path}),$B(j.path)),E===Ts.TRANSLATION_HOVER_CLEAR&&(i({translationHoveredPath:null}),FB()),E==="preview:lessonUpdate"&&(ys(DN(j)),window.parent.postMessage({type:"preview:lessonUpdateComplete"},window.location.origin)),E==="preview:selectLocale"&&O?.shouldRetainParentFocus&&l(!0)}};return window.addEventListener("message",S),()=>window.removeEventListener("message",S)},[]),{previewType:o,targetModeContext:a,didNavigate:d,shouldSkipAutoFocusOnNavigate:c}}const bC=(0,u.createContext)(null);function Im(){const e=(0,u.useContext)(bC);if(e==null)throw new Error("usePreviewState must be used within PreviewRuntimeProvider");return e}function BG({children:e}){const{previewType:t,targetModeContext:s,didNavigate:o,shouldSkipAutoFocusOnNavigate:r}=OG(),a=(0,u.useMemo)(()=>({previewType:t||void 0,didNavigate:o,shouldSkipAutoFocusOnNavigate:r}),[t,o,r]);return(0,n.jsx)(wG,{value:s,children:(0,n.jsx)(bC,{value:a,children:e})})}const Ba=z("cover");function Dge(){const{categories:e}=re();return!Array.isArray(e)||e.length===0?null:(0,n.jsxs)("section",{className:Ba("categories-section"),children:[(0,n.jsx)("h2",{className:Ba("categories-title"),children:"Topics"}),(0,n.jsx)("ul",{className:Ba("categories-list"),role:"list",children:e.map(t=>(0,n.jsxs)("li",{className:Ba("categories-item"),role:"listitem",children:[(0,n.jsx)(s$,{className:Ba("categories-icon")}),(0,n.jsx)("span",{className:Ba("categories-item-wrap"),children:t})]},t))})]})}var DG=f(24756);const HG=`${Ee("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,FG=`${Ee("CDN_URI")}/assets/rise/assets/error_x.svg`,VG=`${Ee("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,ac="downloading",Da="error",wr="ok",Em="contained",yC=({type:e})=>{const[t]=(0,u.useState)(()=>yr()("certdownload-")),[s,o]=(0,u.useState)(wr),r=(0,Be.A)(s),a=(0,u.useRef)(),i=xe(),c=`${t}-live`,l=G()("certificateDownload",{certificateDownloadContained:e===Em}),d=(0,u.useCallback)(()=>{o(ac)},[]);return(0,u.useEffect)(()=>(s===ac&&r!==ac&&FI().then(()=>{o(wr)}).catch(h=>{(0,DG.FZ)(h)?o(wr):o(Da)}),()=>{VI()}),[r,s]),(0,u.useEffect)(()=>{a.current&&(s===Da&&r!==Da||s===wr&&(r===Da||r===ac))&&a.current.focus()},[r,s]),(0,n.jsxs)("div",{className:l,children:[(0,n.jsxs)("div",{"aria-live":"polite",id:c,role:"status",children:[s===ac&&(0,n.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,n.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:VG,width:"15"}),i?.certificateDownloadInProgress||"Downloading..."]}),s===Da&&(0,n.jsxs)("span",{className:"certificateDownload__error",children:[(0,n.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:FG,width:"15"}),(0,n.jsx)("span",{className:"visually-hidden",children:i?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(s===wr||s===Da)&&(0,n.jsxs)("button",{"aria-controls":c,className:"certificateDownload__btn",onClick:d,ref:a,type:"button",children:[s===wr&&e===Em&&(0,n.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:HG,width:"15"}),s===wr?i?.certificateDownload||"Download certificate":i?.certificateRetryDownload||"Retry download"]})]})},zG=()=>(0,n.jsx)(yC,{type:Em}),$G=(0,u.memo)(yC);var _G=f(39475),UG=f.n(_G),GG=f(28731),WG=f.n(GG);const KG=dt()(UG()({}),P2()(["first_name","last_name"]),sa()(" "),WG()),QG=({className:e,decorative:t,size:s,...o})=>{const r=Yt()(["avatars","medium"],o),a=t?"":KG(o)||"Unknown User";return r?(0,n.jsx)("img",{alt:a,className:e||"user-avatar",src:r,style:{height:s,width:s}}):(0,n.jsx)(Uh,{decorative:t,height:s,title:a,width:s})},ZG=`${Ee("CDN_URI")}/assets/rise/assets/trophy.svg`,Ed=z("cover");function Fge(){const{certificateDownload:e,riseComCurrentUser:t}=re(),s=xe(),o=Sw(),a=T1()?.quizPassed??!0;return!(o&&a&&!Y2())||window.viewType==="preview"?null:(0,n.jsxs)("div",{className:Ed("completed-info"),children:[(0,n.jsxs)("div",{className:Ed("completed-info-avatar"),children:[(0,n.jsx)(QG,{...t,decorative:!0}),(0,n.jsx)("img",{alt:"",className:Ed("completed-info-trophy"),src:ZG})]}),(0,n.jsxs)("div",{className:Ed("completed-info-label"),children:[(0,n.jsx)("span",{"aria-hidden":"true",children:s?.coverCompleted||"Completed"}),(0,n.jsx)("span",{className:"visually-hidden",children:s?.a11yCoverCourseCompleted||"Course Completed"})]}),e&&(0,n.jsx)($G,{})]})}const YG=z("cover");function XG({className:e="",dueAt:t}){const s=tw(),o=T1(),r=o==null||o.quizPassed||o.outOfAttempts,a=C6(t),i=YG("due-date",{urgent:a}).mix(e);return!t||s&&r?null:(0,n.jsx)("div",{className:i,tag:"div",children:th(t)})}const qG=De("CoverDueDate",XG);function Vge(e){const{dueAt:t}=Ti()??{};return(0,n.jsx)(qG,{...e,dueAt:t})}const LC=({failed:e,complete:t})=>{const s=xe();return(0,n.jsxs)("span",{className:"visually-hidden-always",children:[e?s?.a11yCoverRequirementFailed||"Requirement failed":t?s?.a11yCoverRequirementComplete||"Requirement complete":s?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},bn=z("cover");function $ge(){const e=re(),t=xe(),{trackingCompletionPercentage:s,trackingQuizId:o}=e;return s==null&&!o?null:(0,n.jsxs)("section",{className:bn("requirements-section"),children:[(0,n.jsx)("h2",{className:bn("requirements-title"),children:t?.coverCourseRequirements||"Course Requirements"}),(0,n.jsxs)("ul",{className:bn("requirements-list"),children:[(0,n.jsx)(JG,{}),(0,n.jsx)(tW,{})]})]})}function JG(){const{trackingCompletionPercentage:e}=re(),t=Xv(),s=ha(),o=xe(),r=Math.ceil(e/100*t),a=r===t;if(e==null||r==null)return null;const i=s>=e,c=i?r$:a$;return(0,n.jsxs)("li",{className:bn("lesson-requirement"),role:"listitem",children:[(0,n.jsx)(c,{"aria-hidden":"true",className:bn("lesson-requirement-icon",{complete:i}).toString()}),(0,n.jsxs)("span",{className:bn("lesson-requirement-text"),children:[(0,n.jsx)(LC,{complete:i}),a?o?.coverCompleteAllLessons||"Complete all lessons in this course":[o?.coverCompleteLessonsName||"Complete",r,o?.coverCompleteLessonsPreposition||"of",t,o?.coverCompleteLessonsInCourse||"lessons in this course"].join(" ")]})]})}const eW={passed:l$,failed:c$,requirement:d$};function tW(){const e=xe(),t=ew(),s=T1(),o=un(),r=ht(t?.title),a=t?.settings?.passingScore;if(!r||!s)return null;const{outOfAttempts:i,quizPassed:c}=s,l=!c&&i;let d="requirement";c?d="passed":l&&(d="failed");const h=eW[d],m=Ia({percent:a,label:e?.coverQuizPercentOrHigher||"% or higher",isRTL:o});return(0,n.jsxs)("li",{className:bn("quiz-requirement"),role:"listitem",children:[(0,n.jsx)(h,{"aria-hidden":"true",className:bn("quiz-requirement-icon",{type:d}).toString()}),(0,n.jsxs)("span",{className:bn("quiz-requirement-text"),children:[(0,n.jsx)(LC,{complete:c,failed:l}),r,a!=null&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:bn("quiz-requirement-seperator"),children:"\xA0|\xA0"}),e?.coverQuizScoreOf||"Score of"," ",m]}),l&&(0,n.jsx)("div",{className:bn("quiz-requirement-no-attempts"),children:e?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}const sW=z("cover"),nW=e=>{const{coursePartnerContent:t,hasPartnerContent:s}=e;return s?(0,n.jsx)(bd,{type:"partner-content",children:(0,n.jsx)(U5,{partnerContent:t})}):null},oW=De("CoverCourseInfo",e=>{const{coursePartnerContent:t,hasLogo:s,hasPartnerContent:o}=e,r=sW("details-content-aside",{logo:s});return(0,n.jsxs)("div",{className:r,children:[!1,(0,n.jsx)(nW,{coursePartnerContent:t,hasPartnerContent:o}),!1,!1]})}),rW=z("cover"),aW=De("CoverDescription",()=>{const e=re(),{navigation:t}=e,s=Oe(e.description),o=t?"description":"description-no-outline";if(!s)return null;const r=Sa("description"),a=(0,Xt.uW)(e.description)?{"data-l10n-id":e.description.l10nId}:{"data-change-path":r};return(0,n.jsx)("div",{...a,children:(0,n.jsx)(bd,{type:o,children:(0,n.jsx)(ke,{className:rW("details-content-description"),value:U1(s)},"text")})})}),SC=z("cover"),jm=({className:e=SC("details-logo"),imageClassName:t=SC("details-logo-image")})=>{const s=re()??{},o=Oe(s.media)?.image??{},{height:r,key:a,width:i,scalar:c=b0.SMALL.value}=o,l={width:i*c,height:r*c};if(!a)return null;const d=mt(o);return(0,n.jsx)("div",{className:e,"data-testid":"cover-details-logo",children:(0,n.jsx)("img",{alt:"",className:t,"data-testid":"cover-details-logo-image",height:l.height,src:d,width:l.width})})},iW=(e,t)=>{const s=Yt()(["lessons",t],e),o=_e()(0,["percentComplete"],s),r=Yt()(["passed"],s);return{isComplete:Yt()(["isComplete"],s),percentComplete:o,passedQuiz:r}};function cW({icon:e,...t}){switch(e){case _s.ARTICLE:return(0,n.jsx)(MD,{...t});case _s.INTERACTION:return(0,n.jsx)(Tz,{...t});case _s.QUIZ:return(0,n.jsx)(YV,{...t});case _s.VIDEO:return(0,n.jsx)(Fz,{...t});default:return(0,n.jsx)("i",{className:"icon icon-Master-02"})}}var ic=f(31188);const lW=De("LessonProgressGraphic");function jd({canComplete:e,id:t,isDark:s,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:i,scope:c}){const{color:l,navigationStyle:d}=re(),h=Po(t),m=Ms(),p=f3(t),v=g3(t),C=wi(t),g=xe(),x=C?.type!=null,S=h?.isComplete,L=t===m,b=h?.percentComplete??0,y=(0,u.useCallback)(()=>{ys(Bg(t))},[t]),T=(0,u.useCallback)(()=>{ys($N(t))},[t]);return(0,n.jsx)(Z5,{canComplete:e,color:l,hasRestriction:x,isComplete:S,isCurrentLesson:L,isDark:s,isEnabled:o,isFailed:p,isPassed:v,isTooltipVisible:r,labels:g,navigationStyle:d,onHideTooltip:a,onMarkComplete:y,onMarkReset:T,onShowTooltip:i,percentComplete:b,progressGraphic:lW,scope:c})}const dW=z("overview-list-item");function uW({className:e,id:t,last:s}){const o=os(),r=Ms(),{color:a,isLegacyCourse:i,navigationStyle:c,theme:l}=re(),{accentContrast:d}=l,{icon:h,title:m}=Vt(t)??{},p=ht(m),v=Po(t),C=f3(t),g=g3(t),x=wi(t),S=xe(),L=(0,Xt.uW)(m)?{"data-l10n-id":m.l10nId}:{"data-change-path":a6(t,"title")},b=v?.isComplete,y=v?.percentComplete??0,T=x?.type!=null,[k,N]=(0,u.useState)(!1),I=(0,u.useCallback)(()=>N(!0),[]),w=(0,u.useCallback)(()=>N(!1),[]),R=G()("overview-list__li",{"overview-list__li--last":s}),E=G()(e,"overview-list-item"),j=(0,u.useCallback)(O=>{const{currentTarget:{hash:A}}=O;O.preventDefault(),ic.Ay.Events.scrollEvent.register("end",()=>{ho(()=>{o(A.slice(1))},"cover-to-lesson"),ic.Ay.Events.scrollEvent.remove("end")}),ic.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,n.jsx)("li",{...L,className:R,"data-testid":`overview-list-item-${t}`,role:"listitem",children:(0,n.jsx)(Xi,{className:E,isTooltipEnabled:!0,lessonId:t,onBlur:w,onClick:j,onHideProgressTooltip:w,onShowProgressTooltip:I,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,n.jsx)(pW,{accentContrast:d,color:a,hasRestriction:T,isComplete:b,isCurrentLesson:t===r,isFailed:C,isLegacyCourse:i,isPassed:g,isTooltipVisible:k,labels:S,lessonIcon:h,lessonId:t,lessonTitle:p,navigationStyle:c,onHideTooltip:w,onShowTooltip:I,percentComplete:y,progressGraphic:hW,scope:ko.COVER})})})}const hW=De("LessonProgressGraphic");function mW({isTooltipVisible:e,lessonIcon:t,lessonId:s,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:i}){const c=dW("progress-circle");return(0,n.jsxs)("div",{className:c,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,n.jsx)(cW,{icon:t})}),(0,n.jsx)("span",{className:"overview-list-item__title","data-testid":`overview-list-item-title-${s}`,children:o}),(0,n.jsx)(jd,{canComplete:!1,id:s,isDark:!1,isEnabled:!0,isTooltipVisible:e,onHideTooltip:r,onShowTooltip:a,scope:i})]})}const pW=De("OverviewListItemLinkContent",mW),fW=z("overview-list"),gW=e=>e.reduce((t,s)=>(s.type==="section"?t.push([s]):t[t.length-1]?t[t.length-1].push(s):t.push([s]),t),[]),vW=De("OverviewListSectionTitle",({className:e="",...t})=>{const s=Wr()(["Default"],t);return(0,n.jsx)("h2",{...s,className:`${e} overview-list__section-title`})}),CW=()=>{const e=Ro(),t=jw(),s=xe(),o=gW(t);return(0,n.jsx)("nav",{"aria-label":s?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[i={},...c]=r,{title:l,type:d}=i,h=d==="section",m=h?c:r,p=fW("list",{sectionless:!h});return(0,n.jsxs)("section",{children:[h&&l&&(0,n.jsx)(vW,{children:(0,n.jsx)(Ls,{value:l})}),(0,n.jsx)("ol",{className:p,role:"list",children:m.map((v,C)=>{const{passedQuiz:g}=iW(e,v.id);return(0,n.jsx)(uW,{id:v.id,last:m.length>1&&C===m.length-1,passedQuiz:g},v.id)})})]},a)})})},xW=(0,u.memo)(CW),bW=e=>Object.values(b0).find(t=>t.value==e);function yW(e){return(0,u.useMemo)(()=>bW(e)??b0.SMALL,[e])?.label.toLowerCase()}const Ha=z("cover"),LW=De("CoverDetails",({reverseColumns:e})=>{const t=kt(1200),{description:s,media:o,navigation:r,partnerContentId:a,publishedAt:i,selectedAuthorId:c}=re(),l=Sr(),d=Ks()(He()("id",c),l),h=!!a&&d,m=ht(o)?.image,p=!St()(m),v=!s||!r,C=!s&&!r,g=!!h,x=Ha("details",{"rise-com":!1,"rise-com-authoring":!1}),S=Ha("details-content-wrap",{columns:g,logo:p}),L=Ha("details-content",{"no-description-or-outline":v}),b=Ha("details-logo",{centered:C,"no-description-or-outline":v,"has-partner-content":!!a}),y=g&&(0,n.jsx)(oW,{coursePartnerContent:d,hasLogo:p,hasPartnerContent:h}),T=yW(m?.scalar),k=Ha("details-logo-image",{[T]:!0}),N=Ha("details-description-outline");return(0,n.jsx)("section",{className:x,"data-testid":"cover-details",children:(0,n.jsxs)("div",{className:S,children:[!t&&e&&y,(0,n.jsxs)("div",{className:L,children:[(0,n.jsx)(jm,{className:b,imageClassName:k}),(0,n.jsxs)("div",{className:N,children:[s&&(0,n.jsx)(aW,{}),t&&y,r&&(0,n.jsx)(bd,{type:"outline",children:(0,n.jsx)(xW,{})})]})]}),!t&&!e&&y]})})}),SW=De("CoverHeader"),TW=De("CoverLayout"),kW=["[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(e=>`${e}:not([tabindex="-1"]):not([hidden]):not([aria-hidden="true"])`).join(", "),TC=(e,t=!1)=>s=>{const o=kC(s);if(o.length===0)return;const r=e>=o.length&&t?0:e;return jf()(r,o)},kC=e=>e?Array.from(e.querySelectorAll(kW)).filter(t=>window.getComputedStyle(t).display!=="none"):[],NC=TC(0),NW=TC(-1),wm=e=>NC(e)?.focus?.();function IW(){const e=(0,u.useRef)(null);function t(s){const o=NC(e.current),r=NW(e.current);Il(s)&&(s.shiftKey?document.activeElement===o&&(r.focus(),s.preventDefault()):document.activeElement===r&&(o.focus(),s.preventDefault()))}return(0,u.useEffect)(()=>{const s=e?.current;return s?.addEventListener("keydown",t),()=>{s?.removeEventListener("keydown",t)}},[]),e}var Am;const Rm=u.createContext(null);Rm.displayName="UndoManagerContext";function Yge(e){return Am(Rm.Provider,{value:e.undoManager,children:e.children})}function IC(){return u.useContext(Rm)}function Xge(e){function t(s){const o=IC();return Am(e,{...s,undoManager:o})}return t.displayName=`withUndoManager(${e.displayName||e.name})`,t}function EC(){const e=IC();u.useEffect(()=>{if(e!=null)return e.disable(),()=>e.enable()},[e])}function qge(e){function t(s){return EC(),Am(e,{...s})}return t.displayName=`withDisableUndoManager(${e.displayName||e.name})`,t}const Jt=z("modal"),wd=u.forwardRef((e,t)=>{const{children:s,className:o,"data-testid":r,darkOverlay:a,disableBackgroundScroll:i,disableCloseOnOverlayClick:c,disableCloseOnEscape:l=!1,focusFirstInput:d=!0,focusOnOpen:h=!0,footer:m,forceToTop:p=!1,fullscreen:v=!1,heading:C,hideCloseButton:g=!1,hideHeader:x=!1,skipDialogClose:S=!1,useTopLayer:L=!0,onCancel:b,onClose:y=vs,onClickBack:T,onCloseBubbles:k=!1,onOverlayClick:N,scroll:I=!1,subHeading:w,subText:R,width:E}=e;EC();const j=IW(),O=(0,u.useRef)(null),A=(0,u.useCallback)(()=>{const B=j.current;!S&&B?.open&&B.close(),y()},[y,j,S]);(0,u.useEffect)(()=>{const B=H=>{Ss(H)&&!l&&(H.preventDefault(),H.stopPropagation(),b?.(H),A())};return document.addEventListener("keydown",B,!k),()=>{document.removeEventListener("keydown",B,!k)}},[l,b,A,k]),(0,u.useEffect)(()=>{const B=j.current;if(B)return L?B.showModal():B.show(),h||setTimeout(()=>{B.contains(document.activeElement)&&document.activeElement?.blur()},0),()=>{B.close()}},[j,L,h]),(0,u.useEffect)(()=>{if(d&&j.current){const H=kC(j.current).find(K=>K.tagName==="INPUT"||K.tagName==="TEXTAREA"||K.tagName==="SELECT"),V=H||O?.current;V?.focus(),V instanceof HTMLTextAreaElement&&V.setSelectionRange(V.value.length,V.value.length)}},[d,j]),(0,u.useEffect)(()=>(i&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{i&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[i,j]);const P=Jt({"force-to-top":p}).mix(o),M=Jt("content",{"with-footer":!!m,"force-scroll":!!I}),F=Jt("overlay",{dark:!!a});return(0,n.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:P.toString(),"data-testid":r,onClose:A,ref:B=>{j.current=B,t&&(t.current=B)},role:"dialog",children:[(0,n.jsx)("div",{id:"modal-portal"}),(0,n.jsx)("div",{className:F,onClick:c?void 0:N||A}),(0,n.jsxs)("div",{className:Jt("dialog",{fullscreen:v}),style:E&&!v?{width:E}:{},children:[(!x||!g)&&(0,n.jsxs)("div",{className:Jt("heading-wrapper"),children:[(0,n.jsxs)("div",{className:Jt("heading-flexbox"),children:[!x&&(0,n.jsxs)("div",{className:Jt("header"),children:[T&&(0,n.jsx)("button",{"aria-label":"back to previous page",className:Jt("back"),onClick:T,type:"button",children:(0,n.jsx)(ie,{className:Jt("back-icon"),name:"arrow-left"})}),(0,n.jsxs)("h1",{className:Jt("heading"),id:"modal-heading",children:[C,(0,n.jsx)("span",{className:Jt("subheading"),children:w})]})]}),!g&&(0,n.jsx)("button",{"aria-label":"close dialog",className:Jt("close"),onClick:A,ref:O,type:"button",children:(0,n.jsx)(ie,{className:Jt("close-icon"),name:"close"})})]}),R?(0,n.jsx)("h2",{className:Jt("subtitle"),children:R}):[]]}),(0,n.jsx)("div",{className:M,children:s}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Jt("footer-shadow")}),(0,n.jsx)("div",{className:Jt("footer"),children:m})]})]})]})}),Fa=z("locale-selector"),Pm=({onClose:e})=>{const t=(0,je.zy)(),s=re(),o=HE(),r=ul(),a=FE(),i=a?.length?a:o&&r?r?.map(T=>T.locale):void 0,[c,l]=(0,u.useState)(!1),d=c&&(i?.length||0)>1,h=(0,Be.A)(d),m=ht(s?.title),{currentLocale:p,setCurrentLocale:v}=ct(),C=EO(),g=xe(),[x,S]=(0,u.useState)(!1),L=(0,u.useCallback)(T=>{jT(T),v(T)},[v]),b=()=>{ys(Z0(!1))};(0,u.useEffect)(()=>{h&&!d&&e?.()},[e,h,d]),(0,u.useEffect)(()=>{if(!i||x||o===void 0||!r)return;if(i.length===1){L(i[0]),S(!0);return}const T=K2(void 0),k=ET()??"";if(k!==""){L(k),S(!0),l(!1);return}T?.p==null&&k===""?l(!0):(l(!1),b());const I=(navigator.language??"en-US").toLowerCase(),w=i.find(R=>R.toLowerCase()===I);L(w?I:i[0]),S(!0)},[i,t,L,x,o,r,l]);const y=T=>{T.preventDefault();const k=T.target.value;L(k)};return!d||o===void 0||!r?null:(0,n.jsx)(Yn,{classNames:"modal",timeout:400,children:(0,n.jsx)(wd,{className:Fa("modal"),disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:b,children:(0,n.jsxs)("div",{className:Fa("container"),children:[(0,n.jsx)("div",{className:Fa("heading"),children:g.l10nChooseLanguage}),(0,n.jsx)("div",{className:Fa("course-title"),children:m}),(0,n.jsx)("div",{className:Fa("selector"),children:(0,n.jsx)("select",{onChange:y,value:p,children:i.map(T=>(0,n.jsx)("option",{value:T,children:C(T)},T))})}),(0,n.jsx)("div",{className:Fa("footer"),children:(0,n.jsx)(vn.ArcButton,{onClick:b,size:"lg",children:g.l10nChooseLanguageContinue})})]})})})};var EW=f(82920);const jW=z("cover-container"),jC=()=>document.querySelector("h1")?.focus({preventScroll:!0});function wW(){const{didNavigate:e,shouldSkipAutoFocusOnNavigate:t}=Im(),o=xe()?.overviewPageTitleSuffix,r=ia();return EW.useEffect(()=>{t||e&&jC()},[e,t]),(0,n.jsxs)(jr,{title:rc(`${r} - ${o}`),children:[(0,n.jsx)("main",{children:(0,n.jsx)("div",{className:jW({}),children:(0,n.jsxs)(TW,{children:[(0,n.jsx)(SW,{}),(0,n.jsx)(LW,{})]})})}),(0,n.jsx)(Pm,{onClose:jC})]})}const wC=wW,AW=/^([^/\s]+)\/([^/\s]+)$/;function RW(e){const t=AW.exec(e.trim());return t?{lessonId:t[1],blockId:t[2]}:null}function tve(e,t){return`${e}/${t}`}const AC="blockId";function sve(e,t){return`#/lessons/${e}?${AC}=${t}`}const RC=(0,u.createContext)(void 0);function Ad(){const e=(0,u.useContext)(RC);return e||(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 PC(e){function t(s){const o=Ad();return(0,n.jsx)(e,{...s,...o})}return t.displayName=`WithMediaContextWrapper(${e.name})`,t}function PW({children:e,lessonId:t,mode:s="readonly",openTranscript:o,closeTranscript:r,onTranscriptUpdate:a,disableTranscriptButton:i=!1}){const c={mode:s,lessonId:t||"",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,n.jsx)(RC.Provider,{value:c,children:e})}const MC=(0,u.createContext)(void 0),MW=MC.Provider;function cc(){return(0,u.useContext)(MC)}function OW({children:e}){const t=he(s=>s.transcriptPanel);return(0,n.jsx)(MW,{value:t,children:e})}const OC=(0,fe.action)(wv),lc=(0,fe.action)(Av),Mm=(0,fe.action)(Rv);function yn(e){return e.refs?va()("audio-id__refs_"+e.refs.toLowerCase()):""}function Om(e){if(e)return`audio-transcript--${e}`}function BC(e){if(e)return`audio-player-transcript-toggle--${e}`}const DC=z("course-exit");function HC(e){const t=xe(),{className:s,lmsOptions:o,style:r}=e;return o?.enableExitCourse?(0,n.jsx)("div",{className:DC("wrapper"),children:(0,n.jsx)("button",{className:DC("button").mix(s),onClick:If,style:r,type:"button",children:t?.courseExit})}):null}const Bm=z("nav-control"),BW=()=>{const[e,t]=(0,u.useState)(!1);return(0,tt.A)(E5,()=>t(!0)),(0,tt.A)(dm,()=>t(!1)),e},DW=({"aria-controls":e,isNavOpen:t,toggleNav:s,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:i,...c}=re(),l=(0,u.useRef)(null),[d,h]=(0,u.useState)(0),m=xe(),p=Ji(),v=gl(),C=BW(),g=(0,u.useMemo)(()=>c.lessons?.find(k=>k.id===v),[c.lessons,v]),x=g?.type==="quiz"&&!!g.settings?.timer,S=a?.enableExitCourse,L=x||S,b=c.navigationType===lr.COMPACT,y=b?"fixed-course-exit":void 0;(0,u.useEffect)(()=>{l.current=document.querySelector(".page-wrap");const N=document.querySelector(".lesson-nav--previous")?.clientHeight??60,I=!i||r===so.FLOATING&&!p;function w({target:R}){const E=R instanceof HTMLElement?R.scrollTop:0,j=N-E;h(j)}return C&&!I?l.current.scrollTop===0?h(N):l.current.addEventListener("scroll",w):h(0),()=>l.current.removeEventListener("scroll",w)},[r,p,C,i]);const T=(0,u.useCallback)(()=>{const k=document.getElementsByClassName("nav-control__menu--top-nav-bar").item(0),N=k instanceof HTMLElement?k:null;if(l.current&&N){const I=l.current.offsetWidth-l.current.clientWidth||0;N.style.maxWidth=`calc(100% - ${I}px)`}},[]);return(0,u.useLayoutEffect)(()=>{L&&T()},[L,T]),(0,n.jsx)("div",{className:Bm("wrapper"),children:(0,n.jsxs)("div",{className:Bm("menu",{"is-timed-quiz":x,"nav-off":o,"top-nav-bar":L}),style:{marginTop:d},children:[!o&&(!b||p)&&(0,n.jsx)("button",{"aria-controls":e,"aria-expanded":t,"aria-label":t?m?.a11yNavigationMenuClose:m?.a11yNavigationMenuOpen,className:Bm("button"),onClick:s,type:"button",children:(0,n.jsx)(ie,{classNameIcon:"page-menu-toggle__icon",name:"bars-regular"})}),(0,n.jsx)(HC,{className:y,lmsOptions:a})]})})},FC=z("nav-compact"),HW=De("NavCompactHeaderCounter",e=>{const{lessonPosition:t,labelLessonName:s,labelLessonPreposition:o,totalLessons:r}=e;return t<=0?null:(0,n.jsx)("div",{className:FC("header-counter"),"data-testid":"nav-compact-counter",children:`${s} ${t} ${o} ${r}`})}),FW=De("NavCompactHeaderProgress",e=>{const{classProgressRunner:t,classProgressText:s,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:i}=e;return(0,n.jsxs)("div",{className:FC("header-progress"),"data-testid":"nav-compact-progress",children:[(0,n.jsx)("div",{className:s,children:a}),(0,n.jsx)(Nd,{"aria-hidden":i,"aria-label":a,progress:r,runnerClass:t,trackClass:o})]})}),VW=({closeNav:e,isExpanded:t,openNav:s})=>{const o=os(),r=ut(),a=Ti(),i=re(),c=ia(),l=ha(),d=xe(),h=jo(),m=pl(),p=gl(),v=C3(),C=(0,u.useMemo)(()=>i?.lessonsOnly?.length??0,[i?.lessonsOnly]),g=(0,u.useMemo)(()=>v[p]??-1,[v,p]),x=a?.navigationStyle,S=(0,u.useMemo)(()=>Ei(x),[x]),L=(0,u.useCallback)(()=>{t?e():s()},[t,s,e]),b=a?.exportSettings?.webExportSettings,y=!Mn.isInstantLink&&(a?.lmsOptions?.disableCoverPage||b?.disableCoverPage),T=(0,u.useCallback)(oe=>{oe.preventDefault(),ho(()=>{o("/")},"lesson-to-cover")},[o]),I=`${un()?`%${l}`:`${l}%`} ${d?.lessonComplete??""}`,{alpha:w,ariaLabel:R,media:E,role:j}=Tr("coverImage"),O=(0,u.useMemo)(()=>da({alpha:w,color:a?.theme?.coverImageColor??void 0,media:E}),[w,a?.theme?.coverImageColor,E]),A=G()("nav-compact__header",{"nav-compact__header--collapsed":!t}),P=G()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!t}),M="nav-compact__header-inner",F="nav-compact__header-control",B=G()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!t}),H=G()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!t}),V=G()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!t}),K=G()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!t}),U="nav-compact__header-strip",X=(0,u.useCallback)(()=>{r(bi(!h?.active))},[r,h?.active]);return(0,n.jsxs)("section",{"aria-label":"Course Information",className:A,"data-testid":"nav-compact-header",children:[S&&O&&(0,n.jsx)("div",{"aria-label":R,className:P,role:j,style:O}),(0,n.jsxs)("div",{className:M,children:[(0,n.jsxs)("div",{className:U,children:[(0,n.jsxs)("div",{className:"nav-compact__header-controls",children:[a?.allowSearch&&m!=="restricted"&&t&&(0,n.jsx)("button",{"aria-label":d?.a11ySearchOpen,className:`${F} nav-compact__header-search`,"data-testid":"nav-compact-search",onClick:X,type:"button",children:(0,n.jsx)(Qi,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,n.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-expanded":t,"aria-label":t?d?.a11yNavigationMenuClose:d?.a11yNavigationMenuOpen,className:`${F} nav-compact__header-toggle`,"data-testid":"nav-compact-toggle",onClick:L,type:"button",children:[t&&(0,n.jsx)(n$,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!t&&(0,n.jsx)(o$,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,n.jsx)(HW,{labelLessonName:d?.lessonName??"",labelLessonPreposition:d?.lessonPreposition??"",lessonPosition:g,totalLessons:C})]}),(0,n.jsx)("div",{className:"nav-compact__header-title","data-testid":"nav-compact-title",children:y?(0,n.jsx)("span",{className:B,children:c}):(0,n.jsx)(ls,{className:B,onClick:T,to:"/",children:c})}),(0,n.jsx)(FW,{classProgressRunner:K,classProgressText:H,classProgressTrack:V,navExpanded:t,percentComplete:l,percentCompleteText:I})]})]})};var zW=f(65196),$W=f.n(zW),_W=f(34872),UW=f.n(_W),GW=f(98641),WW=f.n(GW),KW,QW,ZW,YW,XW;function VC(e,t,s="..."){const o=e?e.toString():"";return o.length>t?o.substr(0,t-1)+s:o}const ive=e=>XW(t=>QW(t)>e,ZW(0,e)),qW=new RegExp(/^[0-9]+$/),JW=e=>qW.test(e),eK=e=>e>=0,tK=e=>e<=100,cve=e=>e==="",lve=e=>JW(e)&&tK(e)&&eK(e),dve=e=>String(Number(e)),zC=me()(sa()(""),$W()(UW(),0)),uve=me()(sa()(" "),lt()(zC),P0()(" ")),$C=me()(sa()(" "),P0()(/(?=[A-Z]|^)/)),hve=e=>e?KW(zC,YW,$C)(e):"",mve=me()(WW(),$C);function _C({id:e,isEnabled:t,isSectionLesson:s,last:o}){const{navigationStyle:r}=re(),{settings:a}=Vt(e)??{},i=pa(e),c=Ms(),l=I1(e),d=(0,u.useMemo)(()=>Ao(r),[r]),h=e===c,m=a?.isGeneratingAIContent===!0,p=VC(i||"",45),[v,C]=(0,u.useState)(!1),g=(0,u.useCallback)(()=>C(!0),[]),x=(0,u.useCallback)(()=>C(!1),[]),S=s?"nav-compact__outline-section-item":"nav-compact__outline-item",L=`${S}__link`,b=(0,n.jsx)(jd,{canComplete:l,id:e,isDark:d,isEnabled:t,isTooltipVisible:v,onHideTooltip:x,onShowTooltip:g,scope:ko.COMPACT});return(0,n.jsx)("li",{className:"nav-compact__outline-list-item","data-testid":`nav-compact-lesson-${e}`,role:"listitem",children:m?(0,n.jsx)("div",{className:S,children:(0,n.jsx)("span",{"aria-disabled":"true",className:`${L} ${L}--generating`,"data-testid":`nav-compact-lesson-${e}-generating`,children:p})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(Xi,{className:S,dark:d,isCurrentLesson:h,isTooltipEnabled:!l,last:o,lessonId:e,onHideProgressTooltip:x,onShowProgressTooltip:g,showProgressDelay:0,tooltipClassName:`${S}-tooltip`,children:[p,!l&&b]}),l&&b]})})}const sK=z("nav-compact"),nK=({id:e})=>{const t=Vt(e),s=ht(t?.title),o=sK("outline-section-empty");return(0,n.jsx)("div",{className:o,children:(0,n.jsx)("span",{children:s})})};var Va=f(82920);const oK=({index:e,isEnabled:t,lessonIds:s,id:o})=>{const r=re(),a=r?.theme,i=r?.themeId,c=a?.navigationSectionsExpanded??!0,l=Vt(String(o)),d=ht(l?.title),[h,m]=Va.useState(c);Va.useEffect(()=>{m(c)},[c]);const[p,v]=Va.useState(),C=Va.useRef(null),g=`sublistCompact-${e}`,x=String(i),S=G()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!h}),L=G()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!h}),b=G()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!h}),y=Va.useCallback(()=>{m(T=>!T)},[]);return Va.useLayoutEffect(()=>{const T=setTimeout(()=>{C.current&&v(C.current.scrollHeight)},0);return()=>{clearTimeout(T)}},[s.length,x]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":g,"aria-expanded":h,className:b,onClick:y,tabIndex:t?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:d}),(0,n.jsx)(v5,{className:S})]}),(0,n.jsx)(vd,{inert:!h,children:(0,n.jsx)("ol",{"aria-hidden":h?void 0:!0,className:L,id:g,ref:C,role:"list",style:{maxHeight:p},children:s.map((T,k)=>(0,n.jsx)(_C,{id:T,isEnabled:t&&h,isSectionLesson:!0,last:k===s.length-1},T))})})]})},rK=({index:e,isEnabled:t,lessonIds:s})=>{const[o,...r]=s,a="nav-compact__outline-item nav-compact__outline-section";return St()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(nK,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(oK,{id:o,index:e,isEnabled:t,lessonIds:r})})},aK=({index:e,isEnabled:t,lessonIds:s})=>bl(s)?(0,n.jsx)(rK,{index:e,isEnabled:t,lessonIds:s}):s.map((r,a)=>(0,n.jsx)(_C,{id:r,isEnabled:t,isSectionLesson:!1,last:a===s.length-1},r)),iK=De("NavCompactOutline",({className:e="",isEnabled:t})=>{const s=Ll(),o=xe(),r=G()(e,"nav-compact__outline",{"nav-compact__outline--collapsed":!t});return(0,n.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,"data-testid":"nav-compact-outline",id:"nav-compact-outline",children:mn(s)&&(0,n.jsx)("ol",{className:"nav-compact__outline-list","data-testid":"nav-compact-outline-list",role:"list",children:s.map((a,i)=>St()(a)?null:(0,n.jsx)(aK,{index:i,isEnabled:t,lessonIds:a},i))})})});var cK=f(82920);const lK=()=>{const[e,t]=cK.useState(!1);return(0,tt.A)(j5,()=>t(!0)),(0,tt.A)(um,()=>t(!1)),e},UC=z("nav-compact"),GC="nav-content-compact",dK=(0,u.forwardRef)(({closeNav:e,isExpanded:t,openNav:s},o)=>{const r=Ti(),{navigationStyle:a,theme:i}=r??{},c=i?.coverImageColor,l=i?.progressIndicatorStyle,d=he(y=>y.course?.theme?.buttonNavigationStyle==="FULL"?Math.round(-(y.ui.lessonNavNextButton?.intersectionRect?.height??0)):0),h=(0,u.useMemo)(()=>Ao(a),[a]),m=(0,u.useMemo)(()=>a===dr.LIGHT_ACCENT||a===dr.DARK_ACCENT,[a]),p=lK(),v=(0,u.useMemo)(()=>Ei(a),[a]),C=l===st.CIRCULAR_FILL,g=l===st.INCOMPLETE_COMPLETE,x=(0,u.useMemo)(()=>v&&c===it.LIGHT,[v,c]),S=UC({accent:m,dark:h,light:!h,"image-dark-overlay":v&&!x,"image-light-overlay":v&&x,"progress-circular-fill":C,"progress-incomplete-complete":g,collapsed:!t,navNextIsVisible:p}),L=UC("wrap",{collapsed:!t}),b={transform:`translateY(${d}px)`};return(0,n.jsx)("div",{className:S,"data-testid":"nav-compact",id:GC,ref:o,style:b,children:(0,n.jsxs)("div",{className:L,children:[(0,n.jsx)(VW,{closeNav:e,isExpanded:t,openNav:s}),(0,n.jsx)(vd,{inert:!t,children:(0,n.jsx)(iK,{isEnabled:t})})]})})});function WC(e,t){const[s,o]=(0,u.useState)(null),{root:r,rootMargin:a,threshold:i}=t;return(0,u.useEffect)(()=>{if(e&&typeof IntersectionObserver=="function"){const c=new IntersectionObserver(l=>{o(l[0])},{root:r,rootMargin:a,threshold:i});return c.observe(e),()=>{o(null),c.disconnect()}}return()=>{}},[e,r,a,i]),s}const uK={closeNav:()=>{},openNav:()=>{},openSearch:()=>{},closeSearch:()=>{},searchActive:!1},KC=Object.assign((0,u.createContext)(uK),{displayName:"OverlayNavControlContext"});function hK(e){const{children:t,closeNav:s,openNav:o}=e,[r,a]=(0,u.useState)(!1),i=(0,u.useCallback)(()=>{a(!0)},[]),c=(0,u.useCallback)(()=>{a(!1)},[]);return(0,n.jsx)(KC.Provider,{value:{closeNav:s,openNav:o,openSearch:i,closeSearch:c,searchActive:r},children:t})}const Rd=()=>(0,u.useContext)(KC),Pd=z("nav-overlay"),mK=({className:e})=>{const t=xe(),s=un(),o=ha(),a=`${s?`%${o}`:`${o}%`} ${t?.lessonComplete??""}`,i=Pd("header-progress-runner"),c=Pd("header-progress-text"),l=Pd("header-progress-track");return(0,n.jsxs)("div",{className:Pd("header-progress").mix(e),"data-testid":"nav-overlay-progress",children:[(0,n.jsx)(Nd,{"aria-hidden":!0,progress:o,runnerClass:i,trackClass:l}),(0,n.jsx)("div",{className:c,children:a})]})},po=z("nav-overlay"),pK=()=>{const e=re(),t=os(),s=ia(),{allowSearch:o,lmsOptions:r}=e,a=pl(),i=xe(),c=Rd(),l=(0,u.useRef)(null),d=po("header-control-btn"),h=e?.exportSettings?.webExportSettings,m=!Mn.isInstantLink&&(r?.disableCoverPage||h?.disableCoverPage),p=v=>{v.preventDefault(),ho(()=>{t("/")},"lesson-to-cover")};return(0,n.jsx)("section",{"aria-label":"Course Information","data-testid":"nav-overlay-header",children:(0,n.jsxs)("div",{className:po("header-container"),children:[(0,n.jsxs)("div",{className:po("header-controls"),children:[(0,n.jsx)("button",{"aria-label":i?.a11yNavigationMenuClose,className:d,"data-testid":"nav-overlay-close",onClick:c.closeNav,ref:l,type:"button",children:(0,n.jsx)(hd,{className:po("header-close-icon")})}),o&&a!=="restricted"&&(0,n.jsx)("button",{"aria-label":i?.a11ySearchOpen,className:d,"data-testid":"nav-overlay-search",onClick:c.openSearch,type:"button",children:(0,n.jsx)(Qi,{className:po("header-search-icon")})})]}),(0,n.jsxs)("div",{className:po("header-title-progress-container"),children:[(0,n.jsx)("h1",{className:po("header-title"),"data-testid":"nav-overlay-title",id:"nav-overlay-title",children:m?(0,n.jsx)("span",{className:po("header-title"),children:s}):(0,n.jsx)(ls,{className:po("header-title-link"),onClick:p,to:"/",children:s})}),(0,n.jsx)(mK,{})]})]})})},Md=({className:e,icon:t})=>{switch(t){case _s.INTERACTION:return(0,n.jsx)(u$,{className:e,icon:t});case _s.QUIZ:return(0,n.jsx)(i$,{className:e,icon:t});case _s.VIDEO:return(0,n.jsx)(h$,{className:e,icon:t});case _s.ARTICLE:return(0,n.jsx)(f5,{className:e,icon:t});default:return(0,n.jsx)(f5,{className:e,icon:t})}},fo=z("nav-overlay"),QC=De("NavOverlayOutlineLesson",({first:e,id:t,isEnabled:s,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=re(),{icon:i,settings:c}=Vt(t)??{},l=pa(t),d=Rd(),h=I1(t),m=Ao(a),p=c?.isGeneratingAIContent===!0,v=fo("outline-item",{section:o}),C=`${fo("outline-item")}__link`,g=fo("outline-item-link-icon",{quiz:i==="Quiz"}),x=(0,u.useCallback)(()=>{d.closeNav()},[d]),[S,L]=(0,u.useState)(!1),b=(0,u.useCallback)(()=>L(!0),[]),y=(0,u.useCallback)(()=>L(!1),[]),T=(0,n.jsx)(jd,{canComplete:h,id:t,isDark:m,isEnabled:s,isTooltipVisible:S,onHideTooltip:y,onShowTooltip:b,scope:ko.OVERLAY});return(0,n.jsx)("li",{className:fo("outline-list-item",{first:e,last:r}),"data-testid":`nav-overlay-lesson-${t}`,role:"listitem",children:p?(0,n.jsx)("div",{className:v.toString(),children:(0,n.jsxs)("span",{"aria-disabled":"true",className:`${C} ${C}--generating`,"data-testid":`nav-overlay-lesson-${t}-generating`,children:[(0,n.jsx)("span",{className:fo("outline-icon-wrap"),children:(0,n.jsx)(Md,{className:g,icon:i??_s.ARTICLE})}),(0,n.jsx)("span",{className:fo("outline-lesson-title"),children:l})]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(Xi,{className:v.toString(),dark:m,isTooltipEnabled:!h,lessonId:t,onHideProgressTooltip:y,onNavigate:x,onShowProgressTooltip:b,showProgressDelay:null,tooltipClassName:fo("outline-item-tooltip").toString(),children:[(0,n.jsx)("span",{className:fo("outline-icon-wrap"),children:(0,n.jsx)(Md,{className:g,icon:i??_s.ARTICLE})}),(0,n.jsx)("span",{className:fo("outline-lesson-title"),children:l}),!h&&T]}),h&&T]})})}),fK=z("nav-overlay"),gK=({id:e})=>{const t=Vt(e),s=ht(t?.title);return(0,n.jsx)("span",{className:fK("outline-section-text"),children:s})},ZC=z("nav-overlay"),vK=({isEnabled:e,lessonIds:t})=>{const s=(0,u.useRef)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:ZC("outline-section-divider")}),(0,n.jsx)("ol",{className:ZC("outline-section-list"),ref:s,role:"list",children:t.map((o,r)=>(0,n.jsx)(QC,{id:o,isEnabled:e,isSectionLesson:!0,last:r===t.length-1},o))})]})},CK=z("nav-overlay"),xK=({index:e,isEnabled:t,lessonIds:s})=>{const[o,...r]=s,a=CK("outline-item").mix("nav-overlay__outline-section");return St()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(gK,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(vK,{index:e,isEnabled:t,lessonIds:r})})},bK=({index:e,isEnabled:t,lessonIds:s})=>{const o=bl(s),r=pa(s[0]),a=z("nav-overlay");return o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:a("outline-section-text"),children:r}),(0,n.jsx)("ol",{className:a("outline-list"),"data-testid":"nav-overlay-outline-list",role:"list",children:(0,n.jsx)(xK,{index:e,isEnabled:t,lessonIds:s})})]}):s.map((i,c)=>(0,n.jsx)(QC,{first:c===0,id:i,isEnabled:t,isSectionLesson:!1,last:c===s.length-1},i))},yK=z("nav-overlay"),LK=De("NavOverlayOutline",({isEnabled:e})=>{const t=Ll(),s=xe();return(0,n.jsx)("section",{"aria-label":s?.a11yRegionNavOverview,className:yK("outline"),"data-testid":"nav-overlay-outline",id:"nav-overlay-outline",children:mn(t)&&(0,n.jsx)(n.Fragment,{children:t.map((o,r)=>St()(o)?null:(0,n.jsx)(bK,{index:r,isEnabled:e,lessonIds:o},`lessonIdGroup-${r}`))})})});var SK=f(59776),Od=f.n(SK),Ar=f(47100),TK=f(99962),Bd=f.n(TK);const Dm=Array.isArray,kK=e=>typeof e=="number",Dd=e=>!at()(e)&&typeof e=="object",Hm=e=>typeof e=="string",NK=(e,t,s)=>(o,r)=>{const a=jn()(r,e);if((0,Xt.uW)(o)){const i=s[o.l10nId];return typeof i!="string"?!1:!St()(Bd()(t,(0,Ar.htmlDecode)(i)))}else return Dd(o)?YC(e,t,s)(o):a&&Hm(o)?!St()(Bd()(t,(0,Ar.htmlDecode)(o))):!1},YC=(e,t,s)=>o=>dt()(As(),Zt(),jn()(!0))(NK(e,t,s),o),IK=YC;var EK=f(89560),Fm=f.n(EK),jK=f(79537),Vm=f.n(jK);const wK=(e,t,s)=>(o,r)=>{const a=jn()(r,e);return Dm(o)?Zt()(zm(e,t,s)(o)):(0,Xt.uW)(o)?typeof s[o.l10nId]!="string"?0:is()(Bd()(t,(0,Ar.htmlDecode)(s[o.l10nId]))):Dd(o)?zm(e,t,s)(o):a&&Hm(o)?is()(Bd()(t,(0,Ar.htmlDecode)(o))):0},zm=(e,t,s)=>o=>As()(wK(e,t,s),o),$m=e=>{if(Dm(e))return lt()($m,e);if(Dd(e))return $m(Zt()(e));if(kK(e))return e},AK=(e,t,s)=>o=>dt()(zm(e,t,s),Zt(),lt()($m),li(),Vm()(Fm(),0),r=>xs()("results",r,o))(o),RK=(e,t,s)=>(o,r)=>{const a=jn()(r,e);return Dm(o)?Zt()(_m(e,t,s)(o)):Dd(o)?_m(e,t,s)(o):a&&Hm(o)?cr()(t,s,o):o},_m=(e,t,s)=>o=>As()(RK(e,t,s),o),XC=_m,qC=(e,t,s,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title"];if(St()(e))return!1;const i=e.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),c=new RegExp(`(${i})(?![^<]*>)`,"ig"),l=S=>`<mark>${S}</mark>`,d=XC(a,c,l),h=XC(Object.keys(s),c,l),m=lt()(d,t),p=o?o(e):{},v=h(s),C=S=>p[S.id]>0||IK(a,c,s)(S),g=AK(a,c,s),x=dt()(kn()(C),lt()(g))(t);x.forEach(S=>{S.results+=p[S.id]??0}),r(e,x,v,m)};function PK(e){if(!e)return!0;for(const t in e)return!1;return!0}function JC(){const{lessons:e,mondrian:t}=re(),{currentLocale:s}=ct(),[o,r]=(0,u.useState)(null);return(0,u.useEffect)(()=>{PK(t)||f.e("webpack_container_remote_mondrian_learn-react").then(f.t.bind(f,4246,23)).then(a=>r(()=>a.searchItemsByLesson))},[t]),(0,u.useCallback)(a=>o?.(a,e,t,s)??{},[o,e,t,s])}const MK=ic.Ay.animateScroll,Js=z("nav-overlay"),OK=()=>{const e=ut(),t=Wv(),s=Rd(),{lessons:o}=re(),[r,a]=(0,u.useState)(""),i=JC(),c=(0,u.useRef)(null),l=xe(),d=Js("search-close-btn"),h=Js("search-clear-btn"),m=(0,u.useCallback)(()=>{s.closeSearch(),s.closeNav(),e([Lv(!0),bi(!1),vr(null)])},[e,s]),p=(0,u.useCallback)(()=>{a(""),c.current?.focus?.()},[]);(0,u.useEffect)(()=>{c.current?.focus?.()},[]);const v=(0,u.useCallback)(x=>{Ss(x)&&!Od()(r)?(x.preventDefault(),a(""),e(vr(null))):Ss(x)&&Od()(r)&&m()},[e,m,r]);(0,tt.A)("keydown",v);const C=(0,u.useCallback)(x=>{a(x.target.value)},[]),g=(0,u.useCallback)(x=>{if(x.preventDefault(),r){const S=(L,b,y,T)=>{e([vr(L),Sv(b),Tv(y),kv(T),bi(!0)]),MK.scrollToTop({duration:500,smooth:!0})};s.closeNav(),s.closeSearch(),qC(r,o,t??{},i,S)}},[r,i,s,o,t,e]);return(0,n.jsxs)("div",{className:Js("search"),"data-testid":"nav-overlay-search-container",children:[(0,n.jsx)("div",{className:Js("search-header"),children:(0,n.jsx)("button",{"aria-label":l?.a11ySearchClose,className:d,"data-testid":"nav-overlay-search-close",onClick:m,type:"button",children:(0,n.jsx)(hd,{className:Js("search-close-icon")})})}),(0,n.jsx)("div",{className:Js("search-body"),children:(0,n.jsxs)("form",{autoComplete:"off",onSubmit:g,children:[(0,n.jsxs)("div",{className:Js("search-container"),children:[(0,n.jsx)(Qi,{className:Js("search-icon")}),(0,n.jsx)("input",{"aria-label":l?.a11ySearchInput,className:Js("search-input").mix("brand--ui"),"data-testid":"nav-overlay-search-input",name:"search",onChange:C,placeholder:l?.search,ref:c,type:"input",value:r}),r&&(0,n.jsx)("button",{"aria-label":l?.a11ySearchInputClear,className:h,"data-testid":"nav-overlay-search-clear",onClick:p,type:"button",children:(0,n.jsx)(hd,{className:Js("search-clear-icon").toString()})})]}),(0,n.jsx)("div",{className:Js("search-actions"),children:(0,n.jsx)("button",{className:Js("search-submit-btn").mix("brand--ui"),"data-testid":"nav-overlay-search-submit",type:"submit",children:l?.search})})]})})]})},Um=z("nav-overlay"),e4="nav-content-overlay",BK=({isExpanded:e,outlineRef:t})=>{const o=Ll()[0],r=bl(o),a=Um("body",{section:r});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(pK,{}),(0,n.jsx)("div",{className:a,ref:t,children:(0,n.jsx)(LK,{isEnabled:e})})]})},DK=({children:e,isImage:t,hasStickyHeader:s})=>{const o=Um("content",{graphic:t,"has-sticky-header":s});return(0,n.jsxs)("div",{className:o,"data-nav-scrollable":!0,"data-testid":"nav-overlay-content",children:[e,t&&(0,n.jsx)(nm,{})]})},HK=({isExpanded:e})=>{const t=(0,u.useRef)(null),[s,o]=(0,u.useState)(null),r=re(),a=Rd(),i=(0,Be.A)(e),c=r?.navigationStyle,l=r?.theme?.progressIndicatorStyle,d=r?.theme?.coverImageColor,h=c===ur.ACCENT,m=c===ur.TINT,p=Ao(c),v=c===ur.GRAY,C=c===ur.LIGHT,g=Ei(c),x=l===st.CIRCULAR_FILL,S=l===st.INCOMPLETE_COMPLETE,[L,b]=(0,u.useState)(!0),{isIntersecting:y=!1}=WC(s,{root:t?.current,threshold:1})||{},T=(0,Be.A)(y),k=(0,u.useMemo)(()=>g&&d===it.LIGHT,[g,d]),N=Um({"accent-tint":m,accent:h,dark:p,gray:v,"image-dark-overlay":g&&!k,"image-light-overlay":g&&k,light:C,"progress-circular-fill":x,"progress-incomplete-complete":S,closing:i&&!e});return(0,u.useEffect)(()=>{e?t.current?.showModal():setTimeout(()=>{t.current?.close()},500)},[e]),(0,u.useEffect)(()=>{const I=w=>{Ss(w)&&!a.searchActive&&(w.preventDefault(),a.closeNav())};return e?document.addEventListener("keydown",I):document.removeEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[e,a]),(0,u.useEffect)(()=>{!L&&y?b(!0):T&&!y&&b(!1)},[y,L,T,b]),(0,n.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:N,"data-testid":"nav-overlay",id:e4,ref:t,children:(0,n.jsx)(DK,{hasStickyHeader:L,isImage:g,children:a.searchActive?(0,n.jsx)(OK,{}):(0,n.jsx)(BK,{isExpanded:e,outlineRef:o})})})},dc=z("nav-sidebar-search"),FK=De("NavSidebarSearch",({className:e="",isEnabled:t})=>{const s=ut(),o=Wv(),r=(0,Be.A)(t),{lessons:a}=re(),i=jo(),c=xe(),l=(0,u.useRef)(null),d=dc({disabled:!t}).mix(e),h=dc("icon"),m=dc("input"),p=dc("close"),v=dc("close-icon"),C=i?.term,g=!t,[x,S]=(0,u.useState)(""),L=JC(),b=(0,u.useCallback)(()=>{s([Lv(!0),bi(!1),vr(null)]),S("")},[s]),y=(0,u.useCallback)(N=>{Ss(N)&&!Od()(x)?(N.preventDefault(),S(""),s(vr(null))):Ss(N)&&Od()(x)&&b()},[s,b,x]),T=(0,u.useCallback)(N=>{C!=null&&s(vr(null)),S(N.target.value)},[s,C]),k=(0,u.useCallback)(N=>{N.preventDefault(),qC(x,a,o??{},L,(w,R,E,j)=>s([vr(w),Sv(R),Tv(E),kv(j)]))},[s,a,o,x,L]);return(0,u.useEffect)(()=>{!r&&t&&setTimeout(()=>{l.current?.focus()},50)},[t,r]),(0,u.useEffect)(()=>{C&&C!==x&&S(C)},[x,C]),(0,n.jsxs)("form",{autoComplete:"off",className:d,"data-testid":"nav-sidebar-search",onSubmit:k,children:[(0,n.jsx)(Qi,{className:h}),(0,n.jsx)("input",{"aria-label":c?.a11ySearchInput,className:m,disabled:g,name:"search",onChange:T,onKeyDown:y,placeholder:c?.search,ref:l,type:"search",value:x}),(0,n.jsx)("button",{"aria-label":c?.a11ySearchClose,className:p,onClick:b,type:"reset",children:(0,n.jsx)(hd,{className:v})})]})}),en=z("nav-sidebar-header"),VK=z("nav-sidebar-header-ghost"),zK=()=>he(e=>e.ui.skipToNavButton?.offsetHeight??0),$K=De("NavSidebarHeaderProgress",e=>{const{classProgressRunner:t,classProgressText:s,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=e;return(0,n.jsxs)("div",{className:en("progress"),"data-testid":"nav-sidebar-progress",children:[(0,n.jsx)(Nd,{"aria-hidden":"true",progress:r,runnerClass:t,trackClass:o}),(0,n.jsx)("div",{className:s,children:a})]})}),_K=De("NavSidebarHeader",({className:e,isCompact:t,isEnabled:s,navRefWidth:o,setIsCompact:r})=>{const a=ut(),i=os(),[c,l]=(0,u.useState)(""),[d,h]=(0,u.useState)({height:0,width:0}),[m,p]=(0,u.useState)(d),[v,C]=(0,u.useState)(d),g=zK(),[x,S]=(0,u.useState)(null),L=(0,u.useRef)(null),b=(0,u.useRef)(null),[y,T]=(0,u.useState)(null),k=re(),N=ia(),I=xe(),w=ha(),R=jo(),E=Z1(),j=un(),O=pl(),A=k?.exportSettings?.webExportSettings,P=!Mn.isInstantLink&&(k?.lmsOptions?.disableCoverPage||A?.disableCoverPage),M=k?.allowSearch&&O!=="restricted",F=k?.theme?.coverImageColor,B=k?.navigationStyle,H=(0,u.useMemo)(()=>Ei(B),[B]),V=!!o_(),K=(0,Be.A)(R),U=(R?.active||V)??!1,[X,oe]=(0,u.useState)(!0),[Z,_]=(0,u.useState)(null),D=en({compact:t,searching:U,transition:X}).mix(e),$=en("inner",{compact:t}),Q=en("content",{compact:t,hidden:U}),Y=en("graphic",{image:H}),q=en("progress-runner"),J=en("progress-text",{compact:t}),ee=en("progress-track"),te=en("search-area",{hidden:!U}),se=en("search-btn",{hidden:U}),Te=en("search-icon"),W=en("title",{compact:t}),de=VK({compact:t,searching:U}),pe=`${j?`%${w}`:`${w}%`} ${I?.lessonComplete}`,le=s&&!U?void 0:-1,Se=s&&!U?void 0:-1,{alpha:ve,media:Ke}=Tr("coverImage"),Wt=(0,u.useMemo)(()=>{const be={};return H&&Object.assign(be,da({alpha:ve,color:F??void 0,media:Ke})),U&&(be.height=m.height),be},[ve,F,Ke,H,U,m.height]),ts=(0,u.useMemo)(()=>{const be={};return t&&(be.bottom=`calc(100% - ${g}px)`,be.width=o||0,be.transition="width 0.3s",s||(be.transition="width 0.3s",be.width="0rem")),d.height&&(be.height=d.height,be.overflow="hidden",t&&(be.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),be},[t,s,o,d.height,g]);(0,u.useEffect)(()=>{l(t&&E?VC(N??"",45):N)},[N,t,E]);const It=U?void 0:{height:v.height},Dt=(0,u.useCallback)(()=>{p(d),a(bi(!0))},[a,d]),Tn=(0,u.useCallback)(be=>{be.preventDefault(),ho(()=>{i("/")},"lesson-to-cover")},[i]);(0,u.useLayoutEffect)(()=>{_(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:Qe=!1}=WC(x,{root:Z,threshold:0})||{},Ht=(0,Be.A)(Qe);(0,u.useEffect)(()=>{const be=y!=null&&window.innerHeight*.4>=y.offsetHeight;Ht&&!Qe&&be?r(!0):!Ht&&Qe&&r(!1)},[Qe,Ht,y,r]);const Et=(0,u.useCallback)(({target:be})=>{const we={height:be?.scrollHeight??0,width:o??0};h(we),p(we),t||C(we)},[t,o]);fd(y,Et),(0,u.useLayoutEffect)(()=>{const be=Z?.scrollTop??0;(Z||be>0)&&Z&&(Z.scrollTop=0);const we={height:y?.scrollHeight??0,width:o??0};h(we),p(we),C(we)},[Z,o,y]),(0,u.useEffect)(()=>{M&&K?.active&&!R?.active&&L?.current?.focus()},[M,R,K]),(0,u.useEffect)(()=>{U?oe(!0):t&&oe(!1)},[U,t]);const Kt=(0,u.useCallback)(be=>{const we=be.target;if(!(we instanceof HTMLElement)||!we.hasAttribute("data-nav-item")||!t||!y||!Z)return;const et=y.getBoundingClientRect(),Qt=we.getBoundingClientRect();et.bottom>Qt.top&&(Z.scrollTop-=et.height-Qt.top+5)},[Z,t,y]);return(0,tt.A)("focusin",Kt,Z),(0,u.useEffect)(()=>l(N),[N]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:de,ref:S,style:It}),(0,n.jsx)("div",{className:D,"data-testid":"nav-sidebar-header",ref:b,style:ts,children:(0,n.jsxs)("div",{className:$,ref:T,children:[(0,n.jsx)("div",{className:Y,style:Wt}),M&&(0,n.jsx)("button",{"aria-label":I?.a11ySearchOpen,className:se,onClick:Dt,tabIndex:le,type:"button",children:(0,n.jsx)(Qi,{className:Te})}),(0,n.jsx)("div",{className:te,children:(0,n.jsx)(FK,{isEnabled:s&&U})}),(0,n.jsxs)("div",{className:Q,children:[P?(0,n.jsx)("span",{className:W,"data-testid":"nav-sidebar-title",tabIndex:Se,children:c}):(0,n.jsx)(ls,{className:W,"data-testid":"nav-sidebar-title",onClick:Tn,tabIndex:Se,to:"/",children:c}),(0,n.jsx)($K,{classProgressRunner:q,classProgressText:J,classProgressTrack:ee,percentComplete:w,percentCompleteText:pe})]})]})})]})}),UK=z("nav-sidebar");function t4({closeNav:e,id:t,isEnabled:s,isSectionLesson:o,last:r}){const a=String(t),{navigationStyle:i}=re(),{icon:c,settings:l}=Vt(t)??{},d=pa(t),h=Ms(),m=Ji(),p=I1(a),v=t===h,C=l?.isGeneratingAIContent===!0,g=(0,u.useMemo)(()=>Ao(i),[i]),x=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",S=`${x}__link`,L=G()(`${x}-link-icon`),b=(0,n.jsx)(Md,{className:L,icon:c??_s.ARTICLE}),[y,T]=(0,u.useState)(!1),k=(0,u.useCallback)(()=>T(!0),[]),N=(0,u.useCallback)(()=>T(!1),[]),I=(0,n.jsx)(jd,{canComplete:p,id:t,isDark:g,isEnabled:s,isTooltipVisible:y,onHideTooltip:N,onShowTooltip:k,scope:ko.SIDEBAR}),w=()=>{e&&m&&e()};return(0,n.jsx)("li",{className:UK("outline-list-item",{last:r}),"data-testid":`nav-outline-lesson-${t}`,role:"listitem",children:C?(0,n.jsx)("div",{className:x,children:(0,n.jsxs)("span",{"aria-disabled":"true",className:G()(S,`${S}--generating`),"data-testid":`nav-outline-lesson-${t}-generating`,children:[b,d]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(Xi,{className:x,dark:g,isCurrentLesson:v,isTooltipEnabled:!p,lessonId:a,onHideProgressTooltip:N,onNavigate:w,onShowProgressTooltip:k,showProgressDelay:0,tooltipClassName:`${x}-tooltip`,children:[b,d,!p&&I]}),p&&I]})})}const GK=({id:e})=>{const t=Vt(e),s=ht(t?.title);return(0,n.jsx)("span",{className:"nav-sidebar__outline-section-text",children:s})};var za=f(82920);const WK=({closeNav:e,id:t,index:s,isEnabled:o,lessonIds:r})=>{const a=re(),i=a?.theme,c=a?.themeId,l=i?.navigationSectionsExpanded??!0,d=pa(String(t)),[h,m]=za.useState(l);za.useEffect(()=>{m(l)},[l]);const[p,v]=za.useState(),C=za.useRef(null),g=`sidebar-sublist-${s}`,x=C.current?.clientWidth,S=String(c),L=G()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!h}),b=G()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!h}),y=za.useCallback(()=>{m(T=>!T)},[]);return za.useLayoutEffect(()=>{const T=setTimeout(()=>{C.current&&v(C.current.scrollHeight)},0);return()=>{clearTimeout(T)}},[r.length,x,S]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":g,"aria-expanded":h,className:"nav-sidebar__outline-section-toggle","data-nav-item":"",onClick:y,tabIndex:o?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:d}),(0,n.jsx)(v5,{className:L})]}),(0,n.jsx)(vd,{inert:!h,children:(0,n.jsx)("ol",{"aria-hidden":h?void 0:!0,className:b,id:g,ref:C,role:"list",style:{maxHeight:p},children:r.map((T,k)=>(0,n.jsx)(t4,{closeNav:e,id:T,isEnabled:o&&h,isSectionLesson:!0,last:k===r.length-1},T))})})]})},KK=({closeNav:e,index:t,isEnabled:s,lessonIds:o})=>{const[r,...a]=o,i="nav-sidebar__outline-item nav-sidebar__outline-section";return St()(a)?(0,n.jsx)("li",{className:i,role:"listitem",children:(0,n.jsx)(GK,{id:r})}):(0,n.jsx)("li",{className:i,role:"listitem",children:(0,n.jsx)(WK,{closeNav:e,id:r,index:t,isEnabled:s,lessonIds:a})})},QK=({closeNav:e,index:t,isEnabled:s,lessonIds:o})=>bl(o.map(String))?(0,n.jsx)(KK,{closeNav:e,index:t,isEnabled:s,lessonIds:o}):o.map((a,i)=>(0,n.jsx)(t4,{closeNav:e,id:a,isEnabled:s,isSectionLesson:!1,last:i===o.length-1},a)),ZK=De("NavSidebarOutline",({className:e="",closeNav:t,isEnabled:s})=>{const o=Ll(),[r,a]=(0,u.useState)(!s),i=xe(),c=(0,u.useRef)(null),l=(0,u.useRef)(null),d=G()(e,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":r,"nav-sidebar__outline--safari":co.isSafari}),h=G()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!s,"nav-sidebar__outline-list--hidden":r});return(0,u.useEffect)(()=>(s?(clearTimeout(l.current??void 0),a(!1)):l.current=setTimeout(()=>{a(!0)},350),()=>{clearTimeout(l.current??void 0)}),[s]),(0,n.jsx)("section",{"aria-label":i?.a11yRegionNavOverview,className:d,"data-testid":"nav-sidebar-outline",id:"nav-sidebar-outline",children:mn(o)&&(0,n.jsx)("ol",{className:h,"data-testid":"nav-sidebar-outline-list",ref:c,role:"list",children:o.map((m,p)=>St()(m)?null:(0,n.jsx)(QK,{closeNav:t,index:p,isEnabled:s,lessonIds:m},p))})})});var YK=f(10036);const $a=z("nav-sidebar-result"),s4=({result:e})=>{const t=xe(),s=e?.icon??_s.ARTICLE,o=ht(e?.title),r=e?.results??0,a=r===1?t?.result:t?.results,i=$a("icon"),c=$a("title"),l=$a("count");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Md,{className:i,icon:s}),(0,n.jsx)("span",{className:c,children:o}),(0,n.jsx)("span",{className:l,children:`${r} ${a}`})]})},XK=({id:e,index:t,isEnabled:s,onSelectResult:o})=>{const r=re(),a=(0,je.RQ)("/lessons/:id"),i=QE(String(e)),c=a?.params.id===String(e),l=c?"page":void 0,d=r?.color,h=r?.navigationStyle,m=s?void 0:-1,p={animationDelay:`${t/10}s`},v=i?.id,C=wi(v==null?void 0:String(v)),g=(0,u.useMemo)(()=>Ao(h),[h]),x=$a(),S=$a("inner",{active:c}),L=$a("link",{dark:g,light:!g});return(0,n.jsx)("li",{className:x,role:"listitem",style:p,children:(0,n.jsx)("div",{className:S,style:{color:d},children:s&&C==null?(0,n.jsx)(ls,{"aria-current":l,className:L,onClick:o,tabIndex:m,to:Gs(e),children:(0,n.jsx)(s4,{result:i})}):(0,n.jsx)(O5,{className:L,restriction:C,tooltipClassName:"lesson-nav-link-tooltip",children:(0,n.jsx)(s4,{result:i})})})})},Hd=z("nav-sidebar-results"),qK=[],JK=({closeNav:e,isEnabled:t})=>{const{announcePolite:s}=An(),o=re(),r=jo(),a=xe(),c=(r?.activeLessons??qK).filter(a3),l=r?.term,d=mn(c),h=(0,YK.A)(l),m=a?.noResults??"",p=o?.navigationStyle,v=(0,u.useMemo)(()=>Ao(p),[p]),C=Hd(),g=Hd("message",{dark:v,light:!v}),x=Hd("term"),S=Hd("list"),L=kt(960),b=u.useCallback(()=>{L&&e()},[e,L]);return(0,u.useEffect)(()=>{if(h){const y=c.length===1?a?.result:a?.results,T=d?`${c.length} ${y}`:`${a?.noResults} ${l}`;s?.(T)}},[s,d,h,c,a,l]),(0,n.jsxs)("div",{className:C,"data-testid":"nav-sidebar-results",children:[!d&&h&&(0,n.jsxs)("div",{className:g,children:[m," ",(0,n.jsxs)("span",{className:x,children:['"',l,'"']})]}),d&&h&&(0,n.jsx)("ol",{className:S,"data-testid":"nav-sidebar-results-list",role:"list",children:c.map((y,T)=>(0,n.jsx)(XK,{id:y.id,index:T,isEnabled:t,onSelectResult:b},y.id))})]})},Fd=z("nav-sidebar"),n4="nav-content-sidebar",eQ=({isExpanded:e,closeNav:t})=>{const s=re(),o=jo(),[r,a]=(0,u.useState)(!1),[i,c]=(0,u.useState)(0),l=(0,u.useRef)(null),d=(0,u.useRef)(null),h=s?.color,m=s?.theme?.coverImageColor,p=s?.isLegacyCourse,v=s?.navigationStyle,C=s?.theme?.accentContrast,g=s?.theme?.progressIndicatorStyle,x=o?.active??!1,S=x||e?void 0:"true";(0,u.useLayoutEffect)(()=>{l&&l?.current&&c(l.current?.scrollWidth)},[r,e,l,x,c]);const L=(0,u.useMemo)(()=>Mj(v),[v]),b=(0,u.useMemo)(()=>Ao(v),[v]),y=(0,u.useMemo)(()=>Ei(v),[v]),T=y&&m===it.LIGHT,k=Rs(h),N=g===st.CIRCULAR_FILL,I=g===st.INCOMPLETE_COMPLETE,w=C?C===ye.DARK||C===ye.AUTO&&k===ye.DARK:k===ye.DARK,R=Fd("header"),E=Fd("body"),j=Fd("content"),O=Fd({accent:L,"dark-contrast":!y&&w,"light-contrast":!y&&!w,"legacy-pre-themes":p,"image-dark-overlay":y&&!T,"image-light-overlay":y&&T,"progress-circular-fill":N,"progress-incomplete-complete":I,collapsed:!e,dark:b,light:!b,searching:x});return(0,n.jsx)(vd,{inert:!e,children:(0,n.jsx)(qo,{children:(0,n.jsx)(Uc,{in:e,mountOnEnter:!0,nodeRef:d,timeout:300,unmountOnExit:!0,children:(0,n.jsx)("div",{"aria-hidden":S,className:O,"data-testid":"nav-sidebar",ref:d,children:(0,n.jsxs)("div",{className:j,"data-nav-scrollable":!0,id:n4,children:[(0,n.jsx)(_K,{className:R,isCompact:r,isEnabled:e,navRefWidth:i,setIsCompact:a}),(0,n.jsxs)("div",{className:E,"data-testid":"nav-sidebar-body",ref:l,children:[(0,n.jsx)(ZK,{closeNav:t,isEnabled:e&&!x}),(0,n.jsx)(JK,{closeNav:t,isEnabled:e&&x})]})]})})})})})},Rr={x:null,y:null},Vd={passive:!0};function o4({children:e,onSwipeDown:t,onSwipeLeft:s,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:i=100,thresholdY:c=100}){const l=(0,u.useRef)(),[d,h]=(0,u.useState)(Rr),[m,p]=(0,u.useState)(Rr),v=(0,u.useCallback)(S=>{const L=S.touches?.length??0,b=S.targetTouches[0],y=a?a():!0;L==1&&b&&y?h({x:b.clientX,y:b.clientY}):h(Rr)},[a]),C=(0,u.useCallback)(S=>{const L=S.targetTouches[0];L&&p({x:L.clientX,y:L.clientY})},[]),g=(0,u.useCallback)(()=>{h(Rr),p(Rr)},[]),x=(0,u.useCallback)(S=>{const L=S.touches?.length??0;if(d.x==null||d.y==null||m.x==null||m.y==null||L>0)return;const b=m.x-d.x,y=m.y-d.y;Math.abs(b)>Math.abs(y)?Math.abs(b)>i&&(b<0?s?.():o?.()):Math.abs(y)>c&&(y<0?r?.():t?.()),h(Rr),p(Rr)},[t,s,o,r,i,c,m,d]);return(0,tt.A)("touchstart",v,l.current,Vd),(0,tt.A)("touchcancel",g,l.current,Vd),(0,tt.A)("touchmove",C,l.current,Vd),(0,tt.A)("touchend",x,l.current,Vd),(0,n.jsx)("div",{ref:l,children:e})}o4.propTypes={children:Fe().oneOfType([Fe().arrayOf(Fe().element),Fe().element]).isRequired,onShouldRecognizeGesture:Fe().func,onSwipeDown:Fe().func,onSwipeLeft:Fe().func,onSwipeRight:Fe().func,onSwipeUp:Fe().func,thresholdX:Fe().number.isRequired,thresholdY:Fe().number.isRequired};function zd({isEnabled:e=!0,...t}){return e?(0,n.jsx)(o4,{...t}):(0,n.jsx)("div",{children:t.children})}zd.propTypes={children:Fe().oneOfType([Fe().arrayOf(Fe().element),Fe().element]).isRequired,isEnabled:Fe().bool.isRequired};const $d={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},tQ=[$d.TABLET_PORTRAIT,$d.TABLET_LANDSCAPE,$d.MOBILE_PORTRAIT,$d.MOBILE_LANDSCAPE],uc=e=>tQ.includes(e),sQ=e=>(0,u.useMemo)(()=>{const t=window.matchMedia("(pointer: coarse)").matches,s=uc(e);return t||s},[e]),r4=z("course-navigation"),{COMPACT:_d,OVERLAY:Gm,SIDEBAR:Pr}=lr,nQ={[_d]:GC,[Pr]:n4,[Gm]:e4},oQ=({hasSearchResults:e,courseNavType:t,openNav:s,closeNav:o})=>{const[r,a]=(0,u.useState)(e);return(0,u.useEffect)(()=>{r&&!e&&!(t===Pr)?(o(),a(!1)):r&&t===Gm?s():a(e)},[e,t,s,o,r]),r},rQ=({activeNavType:e,beginWithSidebarOpen:t,isNavOpen:s,isTablet:o,openNav:r,closeNav:a})=>{const[i,c]=(0,u.useState)();(0,u.useEffect)(()=>{e===Pr&&t&&(!i&&o&&s?a():i===!0&&!o&&!s&&r(),c(o))},[e,t,s,o,r,a,i])},aQ=({beginWithSidebarOpen:e,children:t,closeNav:s,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:i,openNav:c,previewType:l,toggleNav:d,hideNav:h})=>{const m=(0,u.useRef)(null),p=(0,u.useRef)(null),{active:v=!1}=jo()??{},C=xe(),g=oQ({hasSearchResults:v,courseNavType:o,openNav:c,closeNav:s}),x=(0,u.useMemo)(()=>g||o===_d&&a?Pr:o,[o,g,a]);rQ({activeNavType:x,beginWithSidebarOpen:e,closeNav:s,openNav:c,isNavOpen:r,isTablet:a}),(0,u.useEffect)(()=>{const k=I=>{I.relatedTarget instanceof Node&&p.current?.contains(I.relatedTarget)===!0&&s()},N=()=>{p.current?.removeEventListener("click",s),p.current?.removeEventListener("keypress",s),p.current?.removeEventListener("blur",k,!0)};return x===_d&&r?(p.current?.addEventListener("click",s),p.current?.addEventListener("keypress",s),p.current?.addEventListener("blur",k,!0)):N(),N},[x,r,s]);const S=sQ(l),L=(0,u.useCallback)(()=>{const k=x===lr.SIDEBAR;S&&k&&r&&s()},[s,r,S,x]),b=(0,u.useMemo)(()=>x!=null?nQ[x]:void 0,[x]),y=r4(x?.toLowerCase()??null,{"nav-open":r,"search-open":v&&r,"course-nav-type":o?.toLowerCase()}),T=r4("lessonNav",{type:i?.toLowerCase()});return(0,n.jsx)(e_,{isCourseNavOpen:r,children:(0,n.jsx)("div",{className:y,children:(0,n.jsx)(zd,{isEnabled:x===lr.SIDEBAR,onSwipeLeft:L,children:(0,n.jsxs)("div",{className:T,children:[(0,n.jsxs)("nav",{"aria-label":C?.a11yRegionNavLesson,children:[(0,n.jsx)(DW,{"aria-controls":b,hideNav:h,isNavOpen:r,toggleNav:d}),x===Pr&&(0,n.jsx)(eQ,{closeNav:s,isExpanded:r}),x===_d&&(0,n.jsx)(dK,{closeNav:s,isExpanded:r,openNav:c,ref:m}),x===Gm&&(0,n.jsx)(hK,{closeNav:s,openNav:c,children:(0,n.jsx)(HK,{isExpanded:r})})]}),(0,n.jsx)("div",{ref:p,children:t})]})})})})},iQ=({children:e,isLessonOnlyEmbed:t,...s})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...i}=re(),c=Ji(),l=y1(i)===!0,d=!c,h=i.sidebarMode===Jr.OPEN,m=l&&r===Pr&&h&&d,p=To(i),v=p&&i?.theme?.blockNavigationType===ol.CONTINOUS,[C,g]=(0,u.useState)(m),x=(0,u.useCallback)(()=>{g(!0)},[]),S=(0,u.useCallback)(()=>{g(!1)},[]),L=(0,u.useCallback)(()=>C?S():x(),[C,S,x]);(0,tt.A)(T5,x),(0,tt.A)(k5,S);const b=p||t===!0,y=b?"fixed-course-exit":void 0,T=v?{marginInlineEnd:"2rem"}:void 0,k=l?r:void 0;return b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(HC,{className:y,lmsOptions:a,style:T}),e]}):(0,n.jsx)(aQ,{...s,beginWithSidebarOpen:h,closeNav:S,courseNavType:k,hideNav:!l,isNavOpen:C,isTablet:c,lessonNavType:o,openNav:x,toggleNav:L,children:e})};var cQ=f(789),a4=f.n(cQ),lQ=f(28676),Ud=f.n(lQ);const dQ=Ud()(He()("family","continue"),He()("variant","continue")),i4=me()(a4()(dQ),jt()([],"items"));var uQ=f(27462),hQ=f(27824),mQ=f.n(hQ);function pQ(e){return e==="a"?46.5:7.6}function fQ(e){return e==="d"?2:3.2}function gQ(e){switch(e){case"a":return 30;case"c":case"d":return 92;default:return 76}}function c4(e){switch(e){case"b":return 95;case"background":return 52;default:return 76}}function Wm(e){switch(e){case"a":case"b":case"carousel":default:return 6.4;case"c":return 18.6;case"d":return 8;case"background":return 6}}function vQ(e){return .3}function Yve(e){switch(e){case 3:return"three";case 4:return"four";default:return"two"}}function CQ(e){return e==="light"?"#fff":"#000"}function Xve(e){switch(e){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 qve(e){return e==="b"?[52,76,95]:[52,76,92]}function Jve(e){return e==="a"?[30,76,92]:[52,76,92]}function e3e(e){return e==="d"?[2,4.8,5.6]:[3.2,4.8,5.6]}function t3e(e){return e==="a"?[46.5,78,120]:[7.6,20,32]}function xQ(e){switch(e){case 3:return"sm";case 10:return"lg";default:return"med"}}function Km(e,t){switch(t){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 e==="c"?"sm":"med"}}function bQ(e){switch(e){case 52:return"sm";case 76:return"med";default:return"lg"}}function l4(e){switch(e){case 52:return"sm";case 76:return"med";default:return"lg"}}function d4(e){switch(e){case 4:return"med";case 6:return"lg";default:return"sm"}}function Gd(e){switch(e){case 52:return"sm";case 92:return"lg";default:return"med"}}function yQ(e){switch(e){case 30:case 52:return"sm";case 92:return"lg";default:return"med"}}function LQ(e){switch(e){case 4.8:return"med";case 5.6:return"lg";default:return"sm"}}function SQ(e){switch(e){case 20:case 78:return"med";case 32:case 120:return"lg";default:return"sm"}}function TQ(e){switch(e){case 1:return"sm";case 3:return"lg";default:return"med"}}function kQ(e){switch(e){case 3.2:return"med";case 5.6:return"lg";default:return"sm"}}const Ye=({value:e,className:t,allowTabNavigation:s=!0,tagName:o,id:r})=>{const{value:a}=J1(Oe(e));return a?(0,n.jsx)(ke,{allowTabNavigation:s,className:t,id:r,tagName:o,value:e}):null};function NQ(e,t){const{className:s="",tag:o="div",style:r={},...a}=e,{backgroundColor:i}=cs(),c=PA(),l=c===Lt.DARK?Lt.LIGHT:Lt.DARK;return i!==""&&Object.assign(r,{"--color-background-contrast":c,"--color-background-contrast-complementary":l,"--color-background-contrast-rgb":(0,Oa.A)(c)?.slice(0,3)}),(0,n.jsx)(o,{...a,className:s,ref:t,style:r})}const u4=(0,u.forwardRef)(NQ),IQ=10,h4=e=>`${e}rem`,Qm=e=>e!=null?`${e/IQ}rem`:void 0,EQ=["image full","image text overlay","quote background"];function jQ(e){const{family:t,variant:s,backgroundType:o,isOnlyBlockInStep:r,isOnePage:a}=e;if(!a||!r)return!1;if(o===ne.IMAGE)return!0;if(!t||!s)return!1;const i=`${t} ${s}`;return EQ.some(c=>c===i)}const wQ={paddingBottom:"0rem",paddingTop:"0rem"},AQ=e=>{const{blockSettings:t,familyTheme:s,courseTheme:o,isFullWidthImage:r}=e;if(r)return wQ;const a=h4(Number(I3(t?.paddingTop,s?.paddingStart,o?.blockPaddingStart,3)));return{paddingBottom:h4(Number(I3(t?.paddingBottom,s?.paddingEnd,o?.blockPaddingEnd,3))),paddingTop:a}},RQ={},PQ=e=>e?{bodyFontSize:Qm(e.bodyFontSize),headingFontSize:Qm(e.headingFontSize),subheadingFontSize:Qm(e.subheadingFontSize)}:RQ;function MQ(){const e=Pt(),t=ze(),s=Mo(),o=To(t),r=jQ({backgroundType:e?.settings?.backgroundType,family:e?.family,isOnePage:o,isOnlyBlockInStep:e?.isOnlyBlockInStep,variant:e?.variant});return AQ({blockSettings:e?.settings,courseTheme:t?.theme,familyTheme:s,isFullWidthImage:r})}function OQ(){const e=Mo();return PQ(e)}function BQ(){const e=MQ();return{fontSize:OQ(),padding:e}}const DQ=Wr()(["settings"]),m4=z("block-wrapper"),HQ=z("bg"),FQ=(e,t)=>{const{children:s,className:o,defaultBackgroundColor:r="",style:a,tag:i,type:c,...l}=e,d=Pt(),h=OA(),m=BQ(),p=B1(r,h.backgroundColor),v=p||"transparent",C=d?.className,g={...a,...h.backgroundImageCss,"--color-background":p,...m.fontSize.bodyFontSize&&{"--block-text-body-font-size":m.fontSize.bodyFontSize},...m.fontSize.headingFontSize&&{"--block-text-heading-font-size":m.fontSize.headingFontSize},...m.fontSize.subheadingFontSize&&{"--block-text-subheading-font-size":m.fontSize.subheadingFontSize},boxShadow:`0px 1px 0px ${v} `,paddingBottom:m.padding.paddingBottom,paddingTop:m.padding.paddingTop},x=G()(o,{"bg--legacy-background":h.isLegacyBackground,[`block-${c}`]:!!c}),S=HQ({card:h.cardMode,range:h.colorRange,type:h.backgroundTypeLowercase,"overlay-light":h.isOverlayLight,"contrast-light":h.isContrastLight}),L=C?m4({}).mix(S).mix(C):m4({}).mix(S),b=[x,L.toString()].join(" ");return(0,n.jsxs)(u4,{...DQ(l),className:b,ref:t,style:g,tag:i,children:[(0,n.jsx)("span",{"aria-label":h.backgroundImageAlt,role:rg(h.backgroundImageAlt)}),s]})},Re=(0,u.forwardRef)(FQ);var VQ=f(82920);function zQ(e,t){const s=ig(e.src),o=e.width&&e.height&&!s,r=o?"async":void 0,a=o?"lazy":void 0,i=o?e.width:void 0,c=o?e.height:void 0;return(0,n.jsx)("img",{...e,decoding:r,height:c,loading:a,ref:t,width:i})}const Zm=VQ.forwardRef(zQ),p4=(0,u.createContext)(Zm);function $Q({children:e,ImageEagerOrLazy:t}){return(0,n.jsx)(p4,{value:t,children:e})}function _Q(){return(0,u.use)(p4)}function ks(e){const t=_Q();return(0,n.jsx)(t,{...e})}var UQ=f(89342),n3e=f(62586);function f4(e){return(0,n.jsx)(UQ.i,{IconUnzoom:WQ,IconZoom:GQ,...e})}const GQ=()=>(0,n.jsx)(ie,{name:"arrows-two-from-center"}),WQ=()=>(0,n.jsx)(ie,{name:"arrows-two-to-center"}),g4=z("block-text");function KQ({children:e,item:t,labels:s}){const o="media"in t?t.media:void 0,r=Oe(o)?.image,a=mt(r),i=No(r?.alt??""),l=Pt()?.settings,d=l?.images,h=l?.zoomOnClick,m=(0,u.useRef)(void 0);let p=(0,n.jsx)(ks,{alt:i,"data-l10n-id":wt(o),ref:m,src:a});return h&&(p=(0,n.jsx)(f4,{a11yNameButtonUnzoom:s?.a11yUnzoomImage,a11yNameButtonZoom:s?.a11yZoomImage,children:p})),(0,n.jsxs)("div",{className:g4("col"),children:[d&&r&&(0,n.jsx)("div",{className:g4("image"),children:p}),e]})}var QQ=f(29639),ZQ=f.n(QQ),YQ=f(12842),Wd=f(32633);const XQ=z("portal-tooltip"),_t={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},qQ=(e,t,s)=>{const o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=window.visualViewport;let i=s;(i===_t.ABOVE||i===_t.BELOW)&&(o.bottom-r.height<0&&(i=_t.BELOW),r.height+o.top>a.height&&(i=_t.ABOVE)),(i===_t.LEFT||i===_t.RIGHT)&&(r.left<0&&(i=_t.RIGHT),r.width+o.left>a.width&&(i=_t.LEFT));const c={left:0,right:0,top:0,bottom:0};i===_t.ABOVE&&(c.top=o.top-r.height-25),i===_t.BELOW&&(c.top=o.top+o.height),i===_t.RIGHT&&(c.left=o.left+o.width+70),i===_t.LEFT&&(c.left=o.left-r.width-25),(i===_t.LEFT||i===_t.RIGHT)&&(c.top=o.top-o.height/2),(i===_t.ABOVE||i===_t.BELOW)&&(c.left=o.left+o.width/2);const l=o.left+o.width/2,d=r.width/2+l>a.width,h=r.width/2>l;d?t.classList.add("portal-tooltip__tooltip--offset-right"):h&&t.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(c).map(m=>c[m]===0?t.style.removeProperty(m):t.style.setProperty(m,`${c[m]}px`)),t.classList.add(`portal-tooltip__tooltip--${i.toLowerCase()}`)};function JQ({children:e,className:t,direction:s=_t.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:i,renderInModalWhenPresent:c=!1}){const[l,d]=(0,u.useState)(!1),[h]=(0,u.useState)(!1),m=(0,u.useRef)(null),p=(0,u.useRef)(null),[v,C]=(0,YQ.A)((()=>e)),g=(0,u.useCallback)(()=>d(!0),[d]),x=(0,u.useCallback)(()=>d(!1),[d]);return(0,u.useEffect)(()=>(document.addEventListener("scroll",g),document.addEventListener("scrollend",x),()=>{document.removeEventListener("scroll",g),document.removeEventListener("scrollend",x)})),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:m,children:v}),a&&(C||h||o)&&!l&&(0,n.jsx)(Yn,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,n.jsx)(eZ,{buttonRef:m,className:t,direction:s,elementFocused:o,hovering:C,message:a,portalRef:p,renderInModalWhenPresent:c,style:i})})]})}function eZ({buttonRef:e,className:t,direction:s,elementFocused:o,hovering:r,message:a,portalRef:i,style:c,renderInModalWhenPresent:l=!1}){const d=(0,u.useCallback)(()=>qQ(e.current,i.current,s),[e,s,i]),h=(0,u.useCallback)(()=>{i.current&&d()},[i,d]),m=()=>{!r&&!o&&i.current&&(i.current.style=null)};return(0,Wd.A)(h),(0,gn.createPortal)((0,n.jsx)("div",{"aria-hidden":!r||!o,className:XQ("tooltip").mix(t).toString(),onTransitionEnd:m,ref:i,style:c,children:a}),l?lo({id:"portal",childType:"other"}):document.getElementById("portal"))}const Ho=JQ,v4=z("audio-player-actions"),tZ=({audioPlayerId:e,condensed:t=!1,transcriptMedia:s,onDelete:o,onTranscriptClick:r,onTranscriptClose:a})=>{const{mode:i,disableTranscriptButton:c}=Ad(),l=cc(),[d,h]=(0,u.useState)(!1),[m,p]=(0,u.useState)(!1),v=Oe(s)?.audio?.transcript,C=(0,u.useCallback)(()=>h(!0),[]),g=(0,u.useCallback)(()=>h(!1),[]),x=(0,u.useCallback)(()=>p(!0),[]),S=(0,u.useCallback)(()=>p(!1),[]),L=At(),b=l?.audioPlayerIdOpen&&l.audioPlayerIdOpen===e,y=c?"Transcripts are only available in lesson previews":b?L?.audioHideTranscript:i==="edit"?"Edit transcript":L?.audioShowTranscript,T=(0,u.useCallback)(()=>{const w=document.getElementById(Om(e));w&&w.focus()},[e]),[k,N]=(0,u.useState)(!1);function I(){c||(b?a?.():(r?.(),N(!0)))}return(0,u.useEffect)(()=>{k&&(N(!1),T())},[k,T]),(0,n.jsxs)(n.Fragment,{children:[o&&(0,n.jsx)(Ho,{elementFocused:d,message:"Remove audio",children:(0,n.jsx)("button",{"aria-label":"Remove audio",className:v4("button",{condensed:t}),onBlur:g,onClick:o,onFocus:C,onMouseOut:g,onMouseOver:C,type:"button",children:(0,n.jsx)(ie,{name:"trash"})})}),(i==="edit"||v)&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Ho,{elementFocused:m,message:y,renderInModalWhenPresent:i==="readonly",style:{whiteSpace:"nowrap"},children:(0,n.jsx)("button",{"aria-disabled":c,"aria-label":y,className:v4("button",{condensed:t}),id:i==="readonly"?BC(e):void 0,onBlur:S,onClick:I,onFocus:x,onMouseOut:S,onMouseOver:x,style:c?{opacity:.5}:void 0,type:"button",children:(0,n.jsx)(ie,{name:"file-audio"})})})})]})};var sZ=f(10382);const C4="change";class nZ extends sZ.EventEmitter{_isMuted;_isPlaying;_playerId;constructor(t){super(),this.setMaxListeners(t)}get isPlaying(){return this._isPlaying}set isPlaying(t){this._isPlaying=t,this.emit("change")}set playerId(t){this._playerId=t}get playerId(){return this._playerId}pause(){this.isPlaying=!1}addChangeListener(t){this.on(C4,t)}removeChangeListener(t){this.removeListener(C4,t)}}const Ce=new nZ(1/0),oZ=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(e=>({value:e,label:`${e}x`})),a3e=.05,x4=z("audio-player-icon"),Mr=({x:e,width:t,height:s,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:i,pulseY:c,delay:l="0s"})=>(0,n.jsx)("rect",{className:x4("bar"),height:s,rx:1,style:{"--base-height":`${s/10}rem`,"--base-y":`${o/10}rem`,"--pulse-base-height":r&&`${r/10}rem`,"--pulse-base-y":a&&`${a/10}rem`,"--pulse-height":`${i/10}rem`,"--pulse-y":`${c/10}rem`,"--delay":l},width:t,x:e,y:o}),b4=({animating:e})=>(0,n.jsx)("span",{className:x4({animating:e}),children:(0,n.jsxs)("svg",{"aria-hidden":"true",height:"16",viewBox:"0 0 20 16",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)(Mr,{delay:"0s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:0,y:7}),(0,n.jsx)(Mr,{delay:"0.1s",height:4,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,width:2,x:3,y:6}),(0,n.jsx)(Mr,{delay:"0.2s",height:10,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,width:2,x:6,y:3}),(0,n.jsx)(Mr,{delay:"0.3s",height:16,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,width:2,x:9,y:0}),(0,n.jsx)(Mr,{delay:"0.4s",height:8,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,width:2,x:12,y:4}),(0,n.jsx)(Mr,{delay:"0.5s",height:11,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,width:2,x:15,y:2.5}),(0,n.jsx)(Mr,{delay:"0.6s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:18,y:7})]})});var rZ;function y4(){return document.getElementById("page-wrap")}const c3e=e=>{const t=e.value.length;e.focus(),e.setSelectionRange(t,t)},l3e=e=>{const t=rZ(["current","editor"],e);if(!t)return null;const s=t.value.length;return t.focus(),t.setSelectionRange(s,s),e};function Ym(e,t){const s=e.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(t==="start")return s.top>=0;if(t==="center"){if(s.height>o)return s.top<=0&&s.bottom>=o;const a=o/2,i=s.top+s.height/2,c=o*.25;return Math.abs(a-i)<c}return t==="end"?s.bottom<=o:s.top>=0&&s.left>=0&&s.bottom<=o&&s.right<=r}function aZ(e,{behavior:t="smooth",offsetTop:s=0}={}){const o=R5(e);if(!o||!("getBoundingClientRect"in o)){const r=e.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:Math.max(0,r-s),behavior:t})}else{const r=o.getBoundingClientRect().top,a=e.getBoundingClientRect().top-r,i=Math.max(0,o.scrollTop+a-s);o.scrollTo({top:i,behavior:t})}}function d3e(e){let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>{cancelAnimationFrame(t)}}function L4({anchor:e,popover:t,positionX:s}){if(!e||!t)return null;const o=e.getBoundingClientRect(),a=window.getComputedStyle(e).direction==="rtl",i=window.getComputedStyle(t),c=parseFloat(i.marginTop),l=t.offsetWidth,d=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},h=o.top+o.height+t.offsetHeight+c>d.height?o.top-(c*2+t.offsetHeight):o.top+o.height;let m;if(s==="center"){const p=o.left+o.width/2;m=a?d.width-p-l/2:p-l/2}else s==="right"?m=a?d.width-o.left-l:o.right-l:m=Math.min(a?d.width-o.right:o.left,d.width-l);return{left:m,top:h}}var iZ,Ue=f(82920);const Kd=Ue.createContext(null);function cZ({children:e,isDisabled:t,onClose:s,onOpen:o,onSelect:r,positionX:a="left"}){const[i,c]=Ue.useState(!1),l=(0,Be.A)(i),[d,h]=Ue.useState(null),m=Ue.useRef(null),p=Ue.useRef(null),v=Ue.useRef(null),x=`${`menu-${Ue.useId()}`}-content`,S=Ue.useCallback(({direction:A,predFn:P=()=>!0})=>{if(!v.current)return;const M=Array.from(v.current.querySelectorAll('[role="menuitem"]')),F=M.length,B=M.findIndex(U=>U===document.activeElement);let H,V,K;switch(A){case"start":H=0,V=1;break;case"end":H=F-1,V=-1;break;case"backwards":H=B-1,V=-1;break;case"forwards":H=B+1,V=1;break;default:H=B+1,V=1}for(let U=0;U<=F;U++){H>=F?H=0:H<0&&(H=F-1);const X=M[H];if(X!=null&&uZ(X)&&P(X)){K=X;break}else H=H+V}K&&K.focus()},[]),L=Ue.useCallback(()=>{S({direction:"start"})},[S]),b=Ue.useCallback(()=>{S({direction:"end"})},[S]),y=Ue.useCallback(()=>{S({direction:"backwards"})},[S]),T=Ue.useCallback(()=>{S({direction:"forwards"})},[S]),k=Ue.useCallback(A=>{S({direction:"forwards",predFn:P=>hZ(P,A)})},[S]),N=Ue.useCallback(()=>{i?c(!1):(c(!0),setTimeout(T,25))},[T,i]),I=Ue.useCallback(()=>{p.current?.focus(),c(!1)},[]),w=Ue.useCallback(()=>{c(!0),setTimeout(T,25)},[T]),R=Ue.useCallback(()=>{c(!0),setTimeout(y,25)},[y]),E=Ue.useCallback(()=>{const{left:A,top:P}=L4({anchor:p.current,popover:v.current,positionX:a});h({transform:`translate3d(${A}px, ${P}px, 0)`,visibility:"visible"})},[a]),j=Ue.useCallback(A=>{const P=A.currentTarget;S4(P)||(r?.(P.getAttribute("data-name")),I())},[I,r]),O=Ue.useCallback(A=>{const P=A.key;if(A.altKey||A.ctrlKey||A.metaKey)return;let M=!1;if(A.shiftKey)P==="Tab"?y():P.trim()!==""&&k(P),M=!0;else switch(P){case" ":case"Enter":j(A),M=!0;break;case"Esc":case"Escape":I(),M=!0;break;case"ArrowUp":y(),M=!0;break;case"Tab":case"ArrowDown":T(),M=!0;break;case"Home":case"PageUp":L(),M=!0;break;case"End":case"PageDown":b(),M=!0;break;default:k(P);break}M&&(A.stopPropagation(),A.preventDefault())},[I,j,k,L,b,T,y]);return Ue.useEffect(()=>{const A=P=>{i&&m.current!=null&&v.current!=null&&!m.current.contains(P.target)&&!v.current.contains(P.target)&&c(!1)};return i?document.addEventListener("click",A):document.removeEventListener("click",A),()=>{document.removeEventListener("click",A)}},[i]),Ue.useEffect(()=>(i?window.addEventListener("resize",E):window.removeEventListener("resize",E),()=>{window.removeEventListener("resize",E)}),[E,i]),Ue.useEffect(()=>{const A=gd(m.current);for(const P of A)i?P?.addEventListener("scroll",E,{passive:!0}):P?.removeEventListener("scroll",E);return()=>{for(const P of A)P?.removeEventListener("scroll",E)}},[E,i]),Ue.useEffect(()=>{i?E():h(null)},[E,i]),Ue.useEffect(()=>{if(l&&!i)s?.();else if(!l&&i&&(o?.(),m.current)){const A=new CustomEvent("menuopen",{bubbles:!0,detail:{target:m.current}});m.current.dispatchEvent(A)}},[l,i,s,o]),Ue.useEffect(()=>{const A=P=>{P.detail.target!==m.current&&c(!1)};return document.addEventListener("menuopen",A),()=>{document.removeEventListener("menuopen",A)}},[]),(0,n.jsx)(Kd.Provider,{value:{htmlIdContent:x,isExpanded:i,onCloseFocusTrigger:I,onExpandFocusMenuItemNext:w,onExpandFocusMenuItemPrevious:R,onFocusMenuItemByPrefix:k,onFocusMenuItemFirst:L,onFocusMenuItemLast:b,onFocusMenuItemNext:T,onFocusMenuItemPrevious:y,onItemClick:j,onItemKeyDown:O,onTriggerClick:N,refContent:v,refTrigger:p,styleContent:d},children:(0,n.jsx)("div",{"aria-owns":x,inert:t?!0:void 0,ref:m,children:e})})}function lZ({as:e,children:t,label:s,labelledBy:o,...r}){const{htmlIdContent:a,isExpanded:i,onTriggerClick:c,onCloseFocusTrigger:l,onExpandFocusMenuItemNext:d,onExpandFocusMenuItemPrevious:h,refTrigger:m}=Ue.useContext(Kd),p=Ue.useCallback(C=>{let g=!1;switch(C.key){case" ":case"Enter":case"ArrowDown":case"Down":d(),g=!0;break;case"Esc":case"Escape":l(),g=!0;break;case"Up":case"ArrowUp":h(),g=!0;break;default:break}g&&(C.stopPropagation(),C.preventDefault())},[l,d,h]),v=e??"button";return(0,n.jsx)(v,{...r,"aria-controls":a,"aria-expanded":i,"aria-haspopup":"menu","aria-label":s,"aria-labelledby":o,"data-menu-trigger":"",onClick:c,onKeyDown:p,ref:m,type:"button",children:t})}function dZ({children:e,className:t}){const{htmlIdContent:s,isExpanded:o,refContent:r,styleContent:a}=Ue.useContext(Kd);return o?gn.createPortal((0,n.jsx)("div",{className:t,"data-menu-content":"",hidden:o?void 0:!0,id:s,ref:r,role:"menu",style:a,children:e}),lo()):null}function Qd({children:e,className:t,isDisabled:s,name:o,tooltipId:r}){const{onItemClick:a,onItemKeyDown:i}=Ue.useContext(Kd),c=Ue.useCallback(l=>{l.currentTarget?.focus()},[]);return(0,n.jsx)("button",{"aria-describedby":r,"aria-disabled":s,className:t,"data-menu-item":"","data-name":o,onClick:s?void 0:a,onKeyDown:i,onMouseOver:c,role:"menuitem",tabIndex:s?-1:void 0,type:"button",children:e})}function u3e({children:e}){return iZ("span",{"data-menu-item-icon":"",children:e})}function S4(e){return e!=null&&e.getAttribute("disabled")!=null||e.getAttribute("aria-disabled")==="true"}function uZ(e){return e!=null&&e.tagName==="BUTTON"&&!S4(e)}function hZ(e,t){return e?.textContent.toLowerCase().startsWith(t?.toLowerCase())}const _a=z("audio-player-actions-condensed"),Fo=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript",RevertToSource:"revert-audio-to-source"}),mZ=({audioPlayerId:e,condensed:t=!1,transcriptMedia:s,onTranscriptClick:o,onTranscriptClose:r,item:a,side:i,refs:c})=>{const{mode:l,isVariantLocale:d,handleOpenMediaModal:h,handleDelete:m,handleRevertToSource:p}=Ad(),v=cc(),C=Pt(),g=Rt(),x=a&&"media"in a&&a.media?g(a.media):void 0,S=x&&"audio"in x?x.audio.aiAudioSettings:void 0,L=dn(),b=F1(),y=L?b(L):"",[T,k]=(0,u.useState)(!1),N=(0,u.useCallback)(()=>k(!0),[]),I=(0,u.useCallback)(()=>k(!1),[]),w=S?.l10nAutoGenStatus==="reverted-to-source",R=d&&"audio"in x&&x.audio?.sourceType==="ai-audio"&&S?.l10nAutoGenStatus!=="unsupported-locale",E=At(),j=v?.audioPlayerIdOpen===e,O=j?E?.audioHideTranscript:l==="edit"?"Edit transcript":E?.audioShowTranscript;function A(M){switch(M){case Fo.DeleteAudio:m(C.id,a,c);break;case Fo.EditTranscript:j?r?.():o?.();break;case Fo.EditAudio:h(C,a,c,i,{triggeredFrom:"block_audio_button"});break;case Fo.RevertToSource:p(C.id,a);break}}const P=!!g(s)?.audio?.transcript;return h||m||P?(0,n.jsx)(Ho,{elementFocused:T,message:"Options",children:(0,n.jsxs)(cZ,{onSelect:A,positionX:"left",children:[(0,n.jsx)(lZ,{className:_a("trigger",{condensed:t}),label:"Options",onBlur:I,onFocus:N,onMouseEnter:N,onMouseLeave:I,children:(0,n.jsx)(ie,{name:"ellipsis-regular"})}),(0,n.jsxs)(dZ,{className:_a("content"),children:[h?(0,n.jsx)(Qd,{className:_a("menu-item"),name:Fo.EditAudio,children:"Edit audio"}):null,l==="edit"||P?(0,n.jsx)(Qd,{className:_a("menu-item"),name:Fo.EditTranscript,children:O}):null,m&&C?.variant!=="audio"?(0,n.jsx)(Qd,{className:_a("menu-item"),name:Fo.DeleteAudio,children:"Remove audio"}):null,p&&R?(0,n.jsx)(Ho,{message:w?"Audio currently synced to source":void 0,children:(0,n.jsxs)(Qd,{className:_a("menu-item"),isDisabled:w,name:Fo.RevertToSource,children:["Revert to source audio (",y,")"]})}):null]})]})}):null};var pZ,fZ,Ge=f(82920);const hc=Ge.createContext(null);function gZ({children:e,className:t,isDisabled:s,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:i,portalArgs:c,positionX:l="left",value:d}){const[h,m]=Ge.useState(null),p=(0,Be.A)(h),[v,C]=Ge.useState(!1),g=(0,Be.A)(v),[x,S]=Ge.useState(null),L=Ge.useRef(null),b=Ge.useRef(null),y=Ge.useRef(null),k=`select-${Ge.useId()}`,N=`${k}-content`,I=h?.id,w=Ge.useCallback(P=>{const M=P.currentTarget;T4(M)||(C(!1),m(M),i(M.getAttribute("data-value")),P.stopPropagation())},[i]),R=Ge.useCallback(P=>{m(P)},[]),E=Ge.useCallback(()=>{C(P=>!P)},[]),j=Ge.useCallback(()=>{const{left:P,top:M}=L4({anchor:b.current,popover:y.current,positionX:l}),H=window.getComputedStyle(b.current).direction==="rtl"?-P:P;S({transform:`translate3d(${H}px, ${M}px, 0)`,visibility:"visible",width:`${b.current?.offsetWidth}px`})},[l]),O=Ge.useCallback(P=>{const M=Array.from(y.current?.querySelectorAll("[data-select-item]")??[]),F=M.length,B=M.findIndex(K=>K.getAttribute("data-select-item")==="current");let H,V=B+1;for(let K=0;K<F;K++){V>=F&&(V=0);const U=M[K];if(U!=null&&!T4(U)&&bZ(U,P)){H=K;break}else V=F-1}H&&(m(M[H]),M[H]?.scrollIntoView({block:"center"}))},[]),A=Ge.useCallback(P=>{const M=P.key;if(P.ctrlKey||P.metaKey)return;let F=!1;const B=Array.from(y.current?.querySelectorAll("[data-select-item]")??[]),H=B.findIndex(V=>V.getAttribute("data-select-item")==="current");if(v)if(M.length===1&&M!==" "&&!P.altKey&&!P.ctrlKey&&!P.metaKey)O(M);else switch(M){case" ":case"Enter":C(!1),B[H]!=null&&i(B[H].getAttribute("data-value")),F=!0;break;case"Esc":case"Escape":C(!1),m(B.find(V=>V.getAttribute("aria-selected")==="true")),F=!0;break;case"ArrowUp":P.altKey?(C(!1),B[H]!=null&&i(B[H].getAttribute("data-value")??"")):H>0&&(m(B[H-1]),B[H-1].scrollIntoView({block:"center"})),F=!0;break;case"ArrowDown":H<B.length-1&&(m(B[H+1]),B[H+1].scrollIntoView({block:"center"})),F=!0;break;case"Home":m(B[0]),B[0]?.scrollIntoView({block:"center"}),F=!0;break;case"End":m(B[B.length-1]),B[B.length-1]?.scrollIntoView({block:"center"}),F=!0;break;case"PageUp":m(B[0]),B[0]?.scrollIntoView({block:"center"}),F=!0;break;case"PageDown":m(B[B.length-1]),B[B.length-1]?.scrollIntoView({block:"center"}),F=!0;break;case"Tab":C(!1),B[H]!=null&&i(B[H].getAttribute("data-value"));break}else if(M.length===1&&M!==" "&&!P.altKey&&!P.ctrlKey&&!P.metaKey)C(!0),O(M);else switch(M){case" ":case"Enter":C(!0),F=!0;break;case"ArrowUp":C(!0),m(B[0]),F=!0;break;case"ArrowDown":C(!0),F=!0;break;case"Home":C(!0),m(B[0]),F=!0;break;case"End":C(!0),m(B[B.length-1]),F=!0;break}F&&(P.stopPropagation(),P.preventDefault())},[O,v,i]);return Ge.useEffect(()=>{const P=y.current?.querySelector('[data-select-item][aria-selected="true"]');m(P)},[]),Ge.useEffect(()=>{const P=y.current?.querySelector(`[data-select-item][data-value="${d}"]`);m(P)},[d]),Ge.useEffect(()=>{const P=M=>{v&&L.current!=null&&y.current!=null&&!L.current.contains(M.target)&&!y.current.contains(M.target)&&C(!1)};return v?document.addEventListener("click",P):document.removeEventListener("click",P),()=>{document.removeEventListener("click",P)}},[v]),Ge.useEffect(()=>(v?window.addEventListener("resize",j):window.removeEventListener("resize",j),()=>{window.removeEventListener("resize",j)}),[j,v]),Ge.useEffect(()=>{const P=gd(L.current);for(const M of P)v?M?.addEventListener("scroll",j,{passive:!0}):M?.removeEventListener("scroll",j);return()=>{for(const M of P)M?.removeEventListener("scroll",j)}},[j,v]),Ge.useEffect(()=>{v?j():S(null)},[j,v]),Ge.useEffect(()=>{v&&p!=null&&p!==h&&r?.({value:h.getAttribute("data-value")})},[v,p,h,r]),Ge.useEffect(()=>{if(g&&!v)o?.();else if(!g&&v&&(a?.(),L.current)){const P=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:L.current}});L.current.dispatchEvent(P)}},[g,v,o,a]),Ge.useEffect(()=>{const P=M=>{M.detail.target!==L.current&&C(!1)};return document.addEventListener("comboboxopen",P),()=>{document.removeEventListener("comboboxopen",P)}},[]),(0,n.jsx)(hc.Provider,{value:{activeEl:h,htmlIdActiveDescendant:I,htmlIdBase:k,htmlIdContent:N,isExpanded:v,onItemClick:w,onItemHover:R,onTriggerClick:E,onTriggerKeyDown:A,portalArgs:c,refContent:y,refTrigger:b,selectedValue:d,styleContent:x},children:(0,n.jsx)("div",{"aria-owns":N,className:t,inert:s?!0:void 0,ref:L,children:e})})}function vZ({children:e,className:t,labelledBy:s,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:i,isExpanded:c,onTriggerClick:l,onTriggerKeyDown:d,refTrigger:h}=Ge.useContext(hc),m=!!o,p=o??"button";return(0,n.jsxs)(p,{"aria-activedescendant":a,"aria-controls":i,"aria-expanded":c,"aria-haspopup":"listbox","aria-labelledby":s,className:t,"data-select-trigger":m?void 0:"",onClick:l,onKeyDown:d,ref:h,role:"combobox",type:"button",...r,children:[(0,n.jsx)("span",{"data-select-trigger-text":"",children:e}),(0,n.jsx)("span",{"data-select-trigger-icon":"",children:c?(0,n.jsx)(ie,{name:"chevron-up"}):(0,n.jsx)(ie,{name:"chevron-down"})})]})}function CZ({children:e,className:t,label:s,labelledBy:o,style:r={}}){const{htmlIdContent:a,isExpanded:i,portalArgs:c,refContent:l,styleContent:d}=Ge.useContext(hc);return gn.createPortal((0,n.jsx)("div",{"aria-label":s,"aria-labelledby":o,className:t,"data-select-content":"",hidden:i?void 0:!0,id:a,ref:l,role:"listbox",style:{...d,...r},children:e}),lo(c))}function m3e({children:e,className:t,labelText:s}){const{htmlIdBase:o}=Ge.useContext(hc),r=Ge.useId(),a=`${o}-group-label-${r}`;return pZ("div",{"aria-labelledby":a,className:t,"data-select-group":"",role:"group",children:[fZ("div",{"data-select-group-label":"",id:a,role:"presentation",children:s}),e]})}function xZ({children:e,className:t,labelledBy:s,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:i,onItemClick:c,onItemHover:l,selectedValue:d}=Ge.useContext(hc),h=Ge.useRef(null),m=Ge.useId(),p=h.current===a,v=r===d,C=`${i}-option-${m}`,g=Ge.useCallback(()=>{l(h.current)},[l]);return(0,n.jsxs)("div",{"aria-disabled":o,"aria-labelledby":s,"aria-selected":v,className:t,"data-select-item":p?"current":"","data-value":r,id:C,onClick:o?void 0:c,onMouseEnter:g,ref:h,role:"option",children:[e,v&&(0,n.jsx)("span",{"data-select-item-selected":"",children:(0,n.jsx)(ie,{name:"check"})})]})}function T4(e){return e!=null&&e.getAttribute("disabled")!=null||e.getAttribute("aria-disabled")==="true"}function bZ(e,t){return e?.textContent.toLowerCase().startsWith(t?.toLowerCase())}const Xm=z("playback-speed-menu"),yZ=({onChange:e,condensed:t=!1,speed:s})=>{const o=At(),[r,a]=(0,u.useState)(!1),i=(0,u.useCallback)(()=>a(!0),[]),c=(0,u.useCallback)(()=>a(!1),[]);return(0,n.jsx)(Ho,{elementFocused:r,message:o?.audioPlaySpeed,children:(0,n.jsxs)(gZ,{className:Xm(),onOpen:c,onSelect:l=>e(parseFloat(l)),portalArgs:{id:"portal",childType:"other"},value:String(s),children:[(0,n.jsxs)(vZ,{"aria-label":o?.audioPlaySpeed,as:vn.ArcButton,className:Xm("trigger"),hierarchy:"tertiary",labelledBy:void 0,layout:"hug",onBlur:c,onFocus:i,onMouseEnter:i,onMouseLeave:c,shape:"square",size:t?"sm":"md",children:[s,"x"]}),(0,n.jsx)(CZ,{className:Xm("content"),label:o?.audioPlaySpeed,children:oZ.map((l,d)=>(0,n.jsx)(xZ,{value:String(l.value??""),children:l.label},d))})]})})};function LZ(e=!1,t=200){const s=(0,u.useRef)(void 0),[o,r]=(0,u.useState)(e),a=(0,u.useCallback)(()=>{s.current&&clearTimeout(s.current),r(!0)},[]),i=(0,u.useCallback)(c=>{s.current&&clearTimeout(s.current),c?r(!1):s.current=setTimeout(()=>{r(!1)},t)},[t]);return(0,u.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]),{isActive:o,setActive:a,setInactive:i}}const qm=z("audio-player-volume"),SZ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function TZ(e,t){return t||e<=0?"volumeXmark":e<=1/3?"volumeLow":e<=2/3?"volume":"volumeHigh"}function kZ({condensed:e=!1,muted:t,onChange:s,onMute:o,volume:r}){const a=At(),i=(0,u.useRef)(null),c=(0,u.useRef)(null),l=(0,u.useRef)(null),{isActive:d,setActive:h,setInactive:m}=LZ(!1,200),p=t?0:r;function v(g){if(SZ.includes(g.code)){const L=window.getComputedStyle(g.currentTarget).direction==="rtl"?"ArrowLeft":"ArrowRight",b=g.code==="ArrowUp"||g.code===L?Math.min(p+.05,1):Math.max(p-.05,0);s(b),g.stopPropagation(),g.preventDefault()}else g.code==="KeyM"&&(o(),g.stopPropagation(),g.preventDefault())}(0,u.useEffect)(()=>{l.current.style.setProperty("--slider-volume",`${p*100}%`)},[p]);const C=`${Math.round(p*100)}%`;return(0,n.jsxs)("div",{className:qm(),onKeyDown:v,onMouseEnter:h,onMouseLeave:()=>m(!1),ref:i,children:[(0,n.jsx)("button",{"aria-label":p<=0?a?.a11yMediaUnmute:a?.a11yMediaMute,className:qm("button",{condensed:e}),onClick:o,ref:c,type:"button",children:(0,n.jsx)(ie,{name:TZ(p,t)})}),(0,n.jsx)("input",{"aria-label":a?.a11yMediaVolume,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":p*100,"aria-valuetext":C,className:qm("slider").mix(d?"":"visually-hidden"),max:100,min:0,onChange:g=>s(g.currentTarget.valueAsNumber/100),ref:l,type:"range",value:p*100})]})}const Bs=z("audio-player"),Zd=({currentTime:e,duration:t})=>Math.round(e/t*100)||0,k4=e=>{if(!e)return{hours:0,minutes:0,seconds:0};const t=Math.floor(e/3600),s=Math.floor(e%3600/60),o=e%60;return{hours:t,minutes:s,seconds:o}},N4=e=>{const{minutes:t,seconds:s}=k4(e);let o="";return t>0&&(o+=`${new Intl.NumberFormat(void 0,{style:"unit",unit:"minute",unitDisplay:"long"}).format(t)} `),o+=new Intl.NumberFormat(void 0,{style:"unit",unit:"second",unitDisplay:"long"}).format(Math.round(s)),o},NZ=e=>{const{hours:t,minutes:s,seconds:o}=k4(e);function r(c,l,d){return(new Array(d+1).join(l)+c).slice(-d)}const a=r(s,"0",2),i=r(o,"0",2);return t>0?`${t}:${a}:${i}`:`${s}:${i}`};class Ua extends u.Component{audio;play;playerControls;seekSlider;onDelete;constructor(t){super(t),this.state={condensed:!1,currentTime:0,playheadPositionSaveThrottle:0,playbackSpeed:1,playerExpanded:!0,shouldLoadPlayheadPosition:!0,volume:1,muted:!1,maxTime:t.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(t){return Math.round(t*1e3)}keySeek(t){const{canRestrictSeek:s}=this.props,{currentTime:o,duration:r}=this.audio,{maxTime:a}=this.state;let i=o+t;s&&i>a&&(i=a);const c=Math.max(0,r-.01);this.audio.currentTime=t<0?Math.max(i,0):Math.min(i,c)}changeVolume=t=>{this.audio.volume=Math.round(t*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=t=>{const s=t<0?Math.max(this.audio.volume+t,0):Math.min(this.audio.volume+t,1);this.changeVolume(s)};componentDidMount(){Ce.addChangeListener(this.handleChange)}componentDidUpdate(t,s){const r=this.props.activeIndex!=null&&this.props.itemIndex!=null&&t.activeIndex!==this.props.activeIndex&&this.props.activeIndex!==this.props.itemIndex;(!t.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),Ce.isPlaying&&Ce.playerId===this.props.id&&Ce.pause()),s.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:t,id:s}=this.props;Ce.playerId===s&&Ce.pause(),Ce.removeChangeListener(this.handleChange),t&&t(Zd(this.audio))}handleClickInsideAudioPlayer=t=>{t.stopPropagation(),t.preventDefault()};handleChange(){Ce.playerId===this.props.id?this.audio&&(Ce.isPlaying&&this.audio.paused?this.audio.play():!Ce.isPlaying&&!this.audio.paused&&this.audio.pause(),this.forceUpdate()):Ce.isPlaying&&(this.audio.pause(),this.forceUpdate())}containerResizeRef=t=>{const s=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:t.getBoundingClientRect().width<256}),s.observe(t),()=>{s.disconnect()}};render(){const{allowTabNavigation:t,id:s,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:i,mode:c,onDelete:l,onTranscriptClick:d,onTranscriptClose:h,transcriptMedia:m,item:p,side:v,refs:C,transcriptAudioPlayerIdOpen:g}=this.props,x=Ce.isPlaying&&Ce.playerId===s,{currentTime:S,playerExpanded:L}=this.state,b=this.audio?.duration??0,y=Number.isNaN(b)?0:b,T=Math.round(y-S),k=NZ(T),N=N4(T),I=N4(S),w=t?0:-1,R=!o,{a11yGroupAudioPlayer:E,a11yMediaPlay:j,a11yMediaPause:O,a11yMediaSeek:A}=a??{},P=Bs({overlay:r,collapsed:r&&!L,expanded:!r||L,"volume-slider-below":this.props.volumeSliderPosition==="below"}),M=o||c==="edit"?"Collapse audio player":a?.audioCollapsePlayer,F=o||c==="edit"?"Expand audio player":a?.audioExpandPlayer,B=L?M:F,H=yn({refs:C}),K=g===H?Om(g):void 0;return(0,n.jsx)("div",{className:Bs("container"),onClick:this.handleClickInsideAudioPlayer,ref:this.containerResizeRef,children:(0,n.jsxs)("div",{className:P,id:s,children:[R&&(0,n.jsx)("div",{className:Bs("waveform"),children:r?(0,n.jsx)(Ho,{message:B,children:(0,n.jsx)("button",{"aria-label":B,className:Bs("waveform-icon"),onClick:this.onTogglePlayer,type:"button",children:(0,n.jsx)(b4,{animating:x})})}):(0,n.jsx)("div",{className:Bs("waveform-icon",{disabled:!0}),children:(0,n.jsx)(b4,{animating:x})})}),(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":E,"aria-owns":K,className:Bs("housing",{"with-border":R}),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:"group",tabIndex:w,children:[(0,n.jsxs)("div",{className:Bs("play-timer-housing"),children:[(0,n.jsx)(vn.ArcButton,{"aria-label":x?O:j,className:Bs("play"),hierarchy:"tertiary",icon:(0,n.jsx)(ie,{className:Bs("icon"),name:x?"pause-solid":"play-solid"}),layout:"icon",onClick:this.onPlayClick,ref:U=>{this.play=U},shape:"square",size:this.state.condensed?"sm":"md",tabIndex:w,type:"button"}),(0,n.jsx)("input",{"aria-label":A,"aria-valuemax":y,"aria-valuemin":0,"aria-valuenow":S,"aria-valuetext":I,className:Bs("seek-slider"),max:y,min:0,onChange:this.onSeekSliderChange.bind(this),ref:U=>{this.seekSlider=U},step:.01,style:{"--seek-slider-percent":`${this.state.sliderPercent}%`},type:"range",value:S}),(0,n.jsx)("div",{"aria-label":N,className:Bs("timer").mix(this.state.condensed?"visually-hidden-always":""),role:"timer",children:k})]}),(0,n.jsxs)("div",{className:Bs("player-controls"),ref:U=>{this.playerControls=U},children:[(0,n.jsx)(yZ,{condensed:this.state.condensed,onChange:U=>{this.setState({playbackSpeed:U})},speed:this.state.playbackSpeed}),(0,n.jsx)(kZ,{condensed:this.state.condensed,muted:this.state.muted,onChange:this.changeVolume,onMute:this.muteToggle,volume:this.state.volume}),c==="readonly"||o?(0,n.jsx)(tZ,{audioPlayerId:H,condensed:this.state.condensed,onDelete:l,onTranscriptClick:d,onTranscriptClose:h,transcriptMedia:m}):(0,n.jsx)(mZ,{audioPlayerId:H,condensed:this.state.condensed,item:p,onTranscriptClick:d,onTranscriptClose:h,refs:C,side:v,transcriptMedia:m})]})]}),(0,n.jsx)("audio",{className:Bs("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:U=>{this.audio=U},src:Ct(`${i}`)},"audio-"+s)]},`player-${s}`)})}onKeyDown(t){const o=xn(this.onPlayClick),r=xn(()=>this.keySeek(5)),a=xn(()=>this.keySeek(-5)),i=xn(()=>this.changeVolumeDelta(.05)),c=xn(()=>this.changeVolumeDelta(-.05)),l=xn(()=>this.muteToggle()),d=g=>g.target===this.play,h=g=>g.target===this.seekSlider,m=g=>this.playerControls===g.target||this.playerControls.contains(g.target),p=Cs()([[Ai,o],[io,Do],[ao,Do],[br,Do],[xr,Do]]),v=Cs()([[Ai,o],[_O,r],[UO,a]]),C=Cs()([[Ai,o],[io,r],[ao,a],[xr,i],[br,c],[g=>g.code==="KeyM",l]]);Cs()([[d,p],[h,v],[m,Do],[or(),C]])(t)}onPlayClick(t){t.stopPropagation(),t.preventDefault();const{audioVideoPlayhead:s}=this.props,{duration:o,paused:r}=this.audio;r&&s&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=o*s/100||0),r?this.audio.play():this.audio.pause()}onAudioPlayPause=t=>{const{id:s,onPause:o,onPlay:r,onTranscriptUpdate:a,recordMediaPlayheadPosition:i,refs:c,transcriptMedia:l}=this.props,{paused:d,currentTime:h,duration:m}=t.currentTarget;if(d)d&&Ce.playerId===s&&(Ce.isPlaying=!1,o(Ua.timeMs(h)),i&&i(Zd({currentTime:h,duration:m})));else{Ce.playerId=s,Ce.isPlaying=!0,r(Ua.timeMs(h));const p=yn({refs:c});a?.({audioPlayerId:p,transcriptMedia:l})}this.setState({shouldLoadPlayheadPosition:!1})};onVolumeChangeHandler=t=>{const{volume:s,muted:o}=t.currentTarget;this.setState({volume:s,muted:o})};onSeekSliderChange(t){const{canRestrictSeek:s}=this.props,{maxTime:o}=this.state;let r=t.currentTarget.valueAsNumber;s&&r>o&&(r=o),this.audio.currentTime=r}onLoadedMetadata(t){const{currentTime:s,duration:o,muted:r,volume:a}=t.currentTarget,i=s/o*100;this.setState({currentTime:s,muted:r,volume:a,sliderPercent:i});const{onLoad:c}=this.props;c()}onEnded(t){const s=t.currentTarget;this.audio.currentTime=0,this.setState({currentTime:s.currentTime}),Ce.isPlaying=!1,this.props.onEnd(Ua.timeMs(s.currentTime)),this.forceUpdate()}onSeeked(t){const{id:s,onSeek:o,recordMediaPlayheadPosition:r}=this.props,{currentTime:a,duration:i}=t.currentTarget;Ce.isPlaying&&Ce.playerId!==s&&(Ce.isPlaying=!1),Ce.playerId=s,o(Ua.timeMs(a)),r&&r(Zd({currentTime:a,duration:i}))}onTimeUpdate(t){const s=t.currentTarget,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=s,i=Math.floor(r);r>this.state.maxTime&&this.setState({maxTime:r});const c=r/a*100;Ef(),this.setState({currentTime:r,sliderPercent:c}),i%5===0&&this.state.playheadPositionSaveThrottle!==i&&o&&(o(Zd(s)),this.setState({playheadPositionSaveThrottle:i}))}onTogglePlayer(t){this.setState(({playerExpanded:s})=>({playerExpanded:!s})),t.preventDefault(),t.stopPropagation()}}const IZ=Ua,go=e=>t=>t!=null&&typeof t=="object"&&"status"in t&&typeof t.status=="string"&&e.includes(t.status),EZ=go(["uploading","processing","cropping","crushing"]),f3e=go(["canceled"]),I4=go(["complete"]),jZ=go(["cropping"]),wZ=go(["crushing"]),AZ=go(["uploading"]),RZ=go(["processing"]),PZ=go(["errored"]),E4=go(["cropping","crushing","errored","processing","uploading"]);function MZ(e){return e==null||typeof e!="object"?0:Object.values(e).filter(EZ).length}function g3e(e){return Math.round(e.loaded*100/e.total)}const v3e=e=>e?.file?.name||e?.opts?.filename||"";function C3e(e){return e==null||typeof e!="object"?!1:Object.keys(e).length>0&&MZ(e)>0}const Yd=e=>G()("upload-progress__wrapper",e),j4=(0,u.createContext)(null);function w4(){return(0,u.useContext)(j4)}const x3e=j4.Provider;function OZ(e){function t(s){const o=w4();return o?(0,n.jsx)(e,{...s,getUpload:o.getUpload,handleUploadDismiss:o.handleUploadDismiss}):(0,n.jsx)(e,{...s})}return t.displayName=`withUploadStatusContext(${e.displayName||e.name})`,t}const Xd=({onClick:e,text:t})=>(0,n.jsxs)("button",{className:"upload-action-button",onClick:e,type:"button",children:[t,(0,n.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),Jm=20,mc=Jm/2,ep=mc-2,A4=+(2*Math.PI*ep).toFixed(3),BZ=e=>A4*(100-e)/100;function R4({classes:e,percent:t}){return(0,n.jsxs)("svg",{className:G()("upload-progress__pie",e),focusable:"false",height:`${Jm}px`,width:`${Jm}px`,children:[(0,n.jsx)("circle",{className:"upload-progress__border",cx:mc,cy:mc,r:ep}),(0,n.jsx)("circle",{className:"upload-progress__progress",cx:mc,cy:mc,r:ep,strokeDasharray:A4,strokeDashoffset:BZ(t)})]})}const DZ=({text:e})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(R4,{classes:"upload-progress__pie--processing",percent:70}),(0,n.jsx)("div",{className:"upload-progress__text",children:e})]}),HZ=({percentage:e,text:t="Uploading\u2026"})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(R4,{percent:e}),(0,n.jsx)("div",{className:"upload-progress__text",children:t})]}),tp=({classes:e,jobId:t,onCancel:s,text:o})=>(0,n.jsxs)("div",{className:Yd(e),children:[(0,n.jsx)(DZ,{text:o}),t&&(0,n.jsx)(Xd,{onClick:s,text:"Cancel"})]}),FZ=({classes:e,onCancel:t,percentage:s,text:o})=>(0,n.jsxs)("div",{className:Yd(e),children:[(0,n.jsx)(HZ,{percentage:s,text:o}),(0,n.jsx)(Xd,{onClick:t,text:"Cancel"})]}),VZ=({message:e="Error"})=>(0,n.jsxs)("div",{className:"upload-error",children:[(0,n.jsx)(ie,{name:"circle-exclamation"}),(0,n.jsx)("div",{className:"upload-error__text",children:e})]}),zZ=({classes:e,message:t,onClick:s})=>(0,n.jsxs)("div",{className:Yd(e),children:[(0,n.jsx)(VZ,{message:t}),(0,n.jsx)(Xd,{onClick:s,text:"Dismiss"})]}),$Z=({message:e="Success"})=>(0,n.jsxs)("div",{className:"upload-success",children:[(0,n.jsx)(ie,{name:"check-regular"}),(0,n.jsx)("div",{className:"upload-success__text",children:e})]}),_Z=({classes:e,message:t,onClick:s})=>(0,n.jsxs)("div",{className:Yd(e),children:[(0,n.jsx)($Z,{message:t}),s?(0,n.jsx)(Xd,{onClick:s,text:"Dismiss"}):null]}),UZ=e=>{const{classes:t,data:s={},errorMessage:o,jobId:r,progress:a,onCancelUpload:i,onCancelProcess:c,onErrorDismiss:l,onSuccessDismiss:d,successMessage:h,uploadType:m}=e;return PZ(e)?(0,n.jsx)(zZ,{classes:t,message:o||s?.message,onClick:l}):AZ(e)?(0,n.jsx)(FZ,{classes:t,onCancel:i,percentage:a,text:`Uploading ${m}\u2026`}):RZ(e)?(0,n.jsx)(tp,{classes:t,jobId:r,onCancel:c,text:`Processing ${m}\u2026`}):wZ(e)?(0,n.jsx)(tp,{classes:t,onCancel:c,text:`Uploading ${m}\u2026`}):jZ(e)?(0,n.jsx)(tp,{classes:t,onCancel:c,text:"Cropping image\u2026"}):I4(e)&&h?(0,n.jsx)(_Z,{classes:t,message:h,onClick:d}):(0,n.jsx)("div",{})},sp=z("audio-player"),GZ=sp("upload-state");function P4({uploadId:e,onAIUploadFinish:t,volumeSliderPosition:s,...o}){const r=w4(),{mode:a}=Ad(),i=cc(),c=r&&e?r.getUpload(e):null,l=(0,u.useMemo)(()=>c&&c.mediaType==="audio"&&E4(c),[c]),d=(0,Be.A)(l);if((0,u.useEffect)(()=>{!l&&d&&t?.()},[l,d,t]),l){const{jobId:h,status:m,progress:p,data:v}=c,C=x=>()=>r?.handleUploadDismiss(x,c),g=sp({overlay:o.isOverlayAudio,static:o.isOverlayAudio});return(0,n.jsx)("div",{className:sp("container"),children:(0,n.jsx)("div",{className:g,children:(0,n.jsx)(UZ,{classes:GZ,errorMessage:v?.message,jobId:h,onCancelProcess:C("process"),onCancelUpload:C("upload"),onErrorDismiss:C("error"),progress:p,status:m,successMessage:"Processing\u2026",uploadType:"audio"})})})}return(0,n.jsx)(IZ,{...o,mode:a,transcriptAudioPlayerIdOpen:i?.audioPlayerIdOpen??null,volumeSliderPosition:s})}var WZ=f(88868),KZ=f.n(WZ),QZ=f(56248),ZZ=f.n(QZ);const YZ={course:({courseId:e})=>`/authoring/${e}`,courseLocales:({courseId:e})=>`/manage/locales/${e}`,dashboard:"/manage/all-content",lesson:({courseId:e,lessonId:t})=>`/authoring/${e}/lesson/${t}`};function XZ(){const t=ze()?.id,s=A1();return(0,u.useCallback)(o=>s&&t!=null?YZ.lesson({courseId:t,lessonId:o}):`/lessons/${o}`,[t,s])}var qZ=f(86309),JZ=f(73426),eY=f.n(JZ);const tY=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,sY=e=>typeof e=="string"&&e.replace(tY,""),Ns=eY()(sY,qZ.J),nY="about:blank",oY=e=>{const t=e?.trim();if(!t)return null;const s=Ns(t);return s===nY?null:/^(https?:\/\/|mailto:)/i.test(s)||/^(\.?\/|[#?])/.test(s)?s:`http://${s.replace(/^\/\//,"")}`},Ga=u.memo(({align:e,alt:t,allowTabNavigation:s=!0,cornerRadius:o,disableZoom:r,getLessonPath:a,height:i,l10nId:c,labels:l,link:d,maxHeight:h=380,onLoad:m,shouldFillWidth:p,src:v,width:C})=>{const g=XZ(),x=a??g,S=No(t),L=d?.type==="url"&&d.destination?oY(d.destination):null,b=d?.type==="block"?RW(d.destination):null,y=d?.type==="lesson"&&!!d.destination||b!=null||!!L,T=s&&!r&&!y,k=G()("img-img",{"img-img--left":e==="left","img-img--right":e==="right","img-img--center":!e||e==="center","img-img--fill":p});let N={};o!=null&&(N["--corner-radius"]=`${Number(o)}px`),C>0&&i>0&&i>h?(C=Math.round(C*h/i),i=h):h&&(!C||!i)&&(N={maxHeight:h});let I=(0,n.jsx)(ks,{alt:S,className:k,"data-l10n-id":c,height:i,onLoad:m,src:v,style:N,width:C});return y&&d?d.type==="lesson"?I=(0,n.jsx)(ls,{className:"img__link",to:x(d.destination),children:I}):d.type==="block"&&b?I=(0,n.jsx)(ls,{className:"img__link",to:`${x(b.lessonId)}?blockId=${b.blockId}`,children:I}):L&&(I=(0,n.jsx)("a",{className:"img__link",href:L,rel:"noopener noreferrer nofollow",target:"_blank",children:I})):T&&(I=(0,n.jsx)(f4,{a11yNameButtonUnzoom:l?.a11yUnzoomImage,a11yNameButtonZoom:l?.a11yZoomImage,children:I})),(0,n.jsx)("div",{className:"img",children:I})});var I3e=f(81651),rY=f(7776),aY=f.n(rY);const iY=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,cY=/\.[a-z]{2,}\.?$/i,lY=(e,t)=>e===0||e===10||e===127||e===100&&t>=64&&t<=127||e===169&&t===254||e===172&&t>=16&&t<=31||e===192&&t===168||e>=224,dY=e=>np(e);function E3e(e){try{if(dY(e))return new URL(e);throw new Error("invalid URL")}catch{return}}const np=e=>{if(typeof e!="string")return!1;let t;try{t=e.startsWith("//")?new URL(e,"https://placeholder.invalid"):new URL(e)}catch{return!1}if(t.protocol!=="http:"&&t.protocol!=="https:")return!1;const{hostname:s}=t;if(!s)return!1;const o=iY.exec(s);return o?!lY(Number(o[1]),Number(o[2])):cY.test(s)},uY=/^<iframe\b[^>]*\ssrc="([^"]+)"[^>]*><\/iframe>$/,hY=e=>{if(typeof e!="string")return!1;const t=uY.exec(e);return t?np(t[1]):!1};var mY,pY,fY,gY,vY;const M4=xs()("type","embed"),CY=aY()("type","embedType"),xY=cr()(/http:/i,"https:"),bY=e=>({embedType:"iframe",originalUrl:e,src:e}),yY=e=>Or(e.embed),Or=e=>e?.embedType||e?.type,j3e=e=>fY([[gY,mY(M4,bY,xY)],[vY,pY(M4,CY,e)]]),w3e=wn()(me()(hY,kf),np),A3e="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var Br=f(82920);const O4=e=>{const t=Ee("CDN_USER_CONTENT_URI"),s=new RegExp(Ee("CDN_URI"),"g");return ci()?e:s.test(e)?`${t}${new URL(e).pathname}${new URL(e).search}`:e},LY=e=>{const t=new window.URL("https:"+e);return t.searchParams.set("src",t.searchParams.get("src")+"&disable-auto-focus=true"),t.toString().replace("https:","")},SY=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,TY=e=>SY.test(e),kY=/^\/\//,B4=e=>e?.replace(kY,"https://"),qd=e=>{try{if(e===!1)return e;const t=new URL(B4(e));if(t.host==="cdn.embedly.com"&&t.pathname==="/widgets/media.html"){const s=new URL("https://embed.articulateusercontent.com/media/");return s.search=t.search,s.searchParams.set("v","1"),s.href}return t.href}catch(t){const s=new Error("Could not parse embed url",{cause:t});return console.warn(s),e}},NY=me()(qd,B4,eo()(TY,LY),eo()(Boolean,Ct),Ns),IY=e=>{const{paddingBottom:t,ref:s,value:o}=e;return(0,n.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:Br.useMemo(()=>({__html:o}),[o]),ref:s,style:{paddingBottom:t}})};class EY extends Br.Component{player;refIframeContainer=Br.createRef();refIframePlayer=Br.createRef();state={duration:0,isReady:!1};static get defaultProps(){return{allowTabNavigation:!0,shouldPause:!1,showMetaData:!0}}componentDidUpdate(t){!t.shouldPause&&this.props.shouldPause&&Ce.isPlaying&&(this.player?.pause(),Ce.isPlaying=!1)}componentWillUnmount(){Or(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}),Ce.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:t}=this.props;Ce.isPlaying&&Ce.playerId!==t&&(Ce.isPlaying=!1),Ce.playerId=t,Ce.isPlaying=!0};handlePlayerUpdate=t=>{this.props.progressChanged?.({done:t.seconds/t.duration*100})};handlePlayerChange=()=>{const{id:t}=this.props;Ce.playerId===t&&(Ce.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(KZ()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{Ce.isPlaying=!1,Ce.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=t=>{const s=o=>this.player.supports("method",o);return ZZ()(s)(t)};togglePlay=()=>{this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",()=>{this.player.getPaused(t=>{t?this.player.play():this.player.pause()})})};keySeek=t=>{this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",()=>{this.player.getCurrentTime(s=>{this.player.setCurrentTime(s+t)})})};changeVolume=t=>{this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(s=>{this.player.setVolume(s+t)})};onKeyDown=t=>{const r=xn(this.togglePlay),a=xn(()=>this.keySeek(5)),i=xn(()=>this.keySeek(-5)),c=xn(()=>this.changeVolume(10)),l=xn(()=>this.changeVolume(-10));Cs()([[V1,r],[io,a],[ao,i],[xr,c],[br,l]])(t)};renderProvider=()=>{const{allowTabNavigation:t,embedId:s,externalLinksDisabled:o,onLinkBlur:r,onLinkFocus:a,onLinkMouseEnter:i,onLinkMouseLeave:c,showMetaData:l,data:d}=this.props,{providerUrl:h,provider:m,favicon:p}=d;if(!(l&&h))return null;const v=qd(Ns(h)),C=o&&Zs(v),g=`${s}-provider`,x=C?"":void 0,S=C?void 0:v,L=C?void 0:"noopener noreferrer",b=C?"button":void 0,y=C?void 0:"_blank";return(0,n.jsx)("h2",{className:"embed__provider",children:(0,n.jsxs)("a",{className:"brand--hoverColor","data-external":x,href:S,id:C?g:void 0,onBlur:C?()=>r?.(g):void 0,onFocus:C?()=>a?.(g):void 0,onMouseEnter:C?()=>i?.(g):void 0,onMouseLeave:C?()=>c?.(g):void 0,rel:L,role:b,style:C?{display:"inline-block"}:void 0,tabIndex:t?0:-1,target:y,children:[(0,n.jsx)(ks,{alt:p?m:"",className:"embed__providerIcon",src:p}),(0,n.jsx)("span",{className:"embed__providerName",children:m})]})})};renderMetaData=()=>{const{allowTabNavigation:t,data:s,embedId:o,externalLinksDisabled:r,labels:a,onLinkBlur:i,onLinkFocus:c,onLinkMouseEnter:l,onLinkMouseLeave:d,showMetaData:h}=this.props,{src:m,title:p,description:v,provider:C}=s,g=Or(s);if(!h&&g!=="link")return null;const x=qd(Ns(m)),S=r&&Zs(x),L=`${o}-metadata-title`,b=`${o}-metadata-readmore`,y=T=>({"data-external":S?"":void 0,href:S?void 0:x,id:S?T:void 0,onBlur:S?()=>i?.(T):void 0,onFocus:S?()=>c?.(T):void 0,onMouseEnter:S?()=>l?.(T):void 0,onMouseLeave:S?()=>d?.(T):void 0,rel:S?void 0:"noopener noreferrer nofollow",role:S?"button":void 0,style:S?{display:"inline-block"}:void 0,tabIndex:t?0:-1,target:S?void 0:"_blank"});return(0,n.jsxs)("div",{className:"embed__meta__content",children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...y(L),children:(0,n.jsx)(ke,{value:p})})}),(0,n.jsx)(ke,{className:"embed__description",value:v}),(0,n.jsxs)("a",{className:"embed__readMore brand--hoverColor",...y(b),children:[g==="link"?`${a?.embedReadMore} ${C}`:`${a?.embedViewOn} ${C}`,(0,n.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:t,data:s,embedId:o,externalLinksDisabled:r,isLesson:a,labels:i,onLinkBlur:c,onLinkFocus:l,onLinkMouseEnter:d,onLinkMouseLeave:h,showMetaData:m}=this.props,{useRelativePath:p}=s??{},{description:v,originalUrl:C,src:g,thumbnail:x,title:S}=s,L=Or(s);if(L==="iframe"){const b=document.createElement("div");b.innerHTML=kf(g);const y=b.firstChild,T=y&&y.tagName&&y.tagName.toLowerCase()==="iframe";let k=100,N=32;if(this.props.isAuthoring&&p)return(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"embed__relativeUrl--iframe",children:"Embedded iframe with a relative url"}),(0,n.jsx)("p",{className:"embed__relativeUrl--title",children:S}),(0,n.jsx)("p",{className:"embed__relativeUrl--url",children:C})]});if(T){const j=y.width.match(/%/),O=parseInt(y.width);y.src=Ns(y.src),k=j?700*(O/100):O||16,N=parseInt(y.height)}const I=N/k,w=T?`${I*100}%`:"3rem";let R=null;try{R=new URL(y.src)}catch{}if(R){const{hostname:j}=R,O=j==="typeform.com"||j.endsWith(".typeform.com"),A=j==="forms.office.com";O&&(R.searchParams.append("disable-auto-focus","true"),y.src=R.toString()),A&&(R.searchParams.append("embed","true"),y.src=R.toString())}const E=T?y.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.embedPlayerGroup,className:"embed",role:"group",children:[p&&(0,n.jsx)("div",{className:"embed__title embed--iframe__title",children:S}),(0,n.jsx)(IY,{paddingBottom:w,ref:this.refIframeContainer,value:E})]})}else if(a){const b=p?g:qd(Ns(g)),y=r&&Zs(b),T=`${o}-lesson-title`,k=`${o}-lesson-url`,N=y?"":void 0,I=y?void 0:b,w=y?void 0:"noopener noreferrer nofollow",R=y?"button":void 0,E=y?void 0:"_blank";if(p){const j={"data-external":y?"":void 0,href:b,id:y?T:void 0,onBlur:y?()=>c?.(T):void 0,onFocus:y?()=>l?.(T):void 0,onMouseEnter:y?()=>d?.(T):void 0,onMouseLeave:y?()=>h?.(T):void 0,rel:y?void 0:"noopener noreferrer nofollow",role:y?"button":void 0,tabIndex:t?0:-1,target:y?void 0:"_blank"};return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:"group",children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...j,children:(0,n.jsx)(ke,{value:S})})}),["link","photo"].includes(L)?(0,n.jsxs)("a",{className:"embed__relativeUrl--url","data-external":N,href:I,id:y?k:void 0,onBlur:y?()=>c?.(k):void 0,onFocus:y?()=>l?.(k):void 0,onMouseEnter:y?()=>d?.(k):void 0,onMouseLeave:y?()=>h?.(k):void 0,rel:w,role:R,tabIndex:t?0:-1,target:E,children:[b,L==="photo"?(0,n.jsx)("div",{className:"embed__relativeUrl--image",children:(0,n.jsx)(ks,{alt:x?S:"",className:"embed__img",src:b})}):null]}):this.renderEmbedIframe({allowTabNavigation:t,labels:i,src:g,thumbnail:x,title:S,type:L})]})}return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:"group",children:[this.renderProvider(),["link","photo"].includes(L)?(0,n.jsx)("a",{"data-external":N,href:I,id:y?k:void 0,onBlur:y?()=>c?.(k):void 0,onFocus:y?()=>l?.(k):void 0,onMouseEnter:y?()=>d?.(k):void 0,onMouseLeave:y?()=>h?.(k):void 0,rel:w,role:R,tabIndex:t?0:-1,target:E,children:(0,n.jsx)(ks,{alt:x?S:"",className:"embed__img",src:O4(x)})}):this.renderEmbedIframe({allowTabNavigation:t,labels:i,src:g,thumbnail:x,title:S,type:L}),this.renderMetaData()]})}else if(L==="link"){const b=p?g:Ns(g),y=p||r&&Zs(b),T=`${o}-link-readmore`,k=y?"":void 0,N=y?void 0:b,I=y?void 0:"noopener noreferrer nofollow",w=y?"button":void 0,R=y?void 0:"_blank";return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.embedLinkGroup,className:"embed embed--link brand--linkColor",role:"group",children:[(0,n.jsx)(ke,{className:"embed__title",value:S}),(0,n.jsx)(ke,{className:"embed__description",value:v}),(0,n.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":k,href:N,id:y?T:void 0,onBlur:y?()=>c?.(T):void 0,onFocus:y?()=>l?.(T):void 0,onMouseEnter:y?()=>d?.(T):void 0,onMouseLeave:y?()=>h?.(T):void 0,rel:I,role:w,target:R,children:i?.embedReadMore})]})}else return(0,n.jsxs)("div",{className:"embed embed--media",children:[m?(0,n.jsx)(ke,{"aria-hidden":!t,className:"embed__title",value:S}):null,this.renderEmbedIframe({allowTabNavigation:t,labels:i,src:g,thumbnail:x,title:S,type:L})]})}renderEmbedIframe=t=>{const{allowTabNavigation:s,labels:o,src:r,thumbnail:a,title:i,type:c}=t,{useRelativePath:l}=this.props.data??{};if(c==="photo")return(0,n.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,n.jsx)(Ga,{allowTabNavigation:s,labels:o,src:O4(a)})});{const d=co.isIe11||co.isEdge,h=G()("embed__media-wrap",{"embed__media-wrap--ms_browser":d});return(0,n.jsxs)("figure",{"aria-hidden":!s,"aria-label":o?.embedPlayerGroup,className:h,onKeyDown:this.onKeyDown,ref:this.refIframeContainer,tabIndex:s?0:-1,children:[(0,n.jsx)("meta",{content:"origin",name:"referrer"}),(0,n.jsx)("iframe",{allowFullScreen:!0,className:"embed__media",frameBorder:"0",inert:s?void 0:!0,loading:"lazy",onLoad:this.setupPlayer,ref:this.refIframePlayer,scrolling:l?"yes":"no",src:l?r:NY(r),title:i})]})}}}const D4=e=>{const t=A1(),s=ze(),o=e.externalLinksDisabled??(s&&"externalLinksDisabled"in s?s.externalLinksDisabled:!1),{handleMouseEnter:r,handleMouseLeave:a,handleFocus:i,handleBlur:c}=Rl(),[l,d]=Br.useState([]),h=Br.useId();return Br.useEffect(()=>{if(!o||!e.data){d([]);return}const m=[],{providerUrl:p,src:v,useRelativePath:C}=e.data,g=Or(e.data);e.isLesson&&v&&Zs(Ns(v))&&(m.push(`${h}-lesson-title`),["link","photo"].includes(g)&&m.push(`${h}-lesson-url`),g!=="iframe"&&(m.push(`${h}-metadata-title`),m.push(`${h}-metadata-readmore`)),p&&Zs(Ns(p))&&m.push(`${h}-provider`)),!e.isLesson&&e.showMetaData&&p&&Zs(Ns(p))&&m.push(`${h}-provider`),!e.isLesson&&e.showMetaData&&v&&Zs(Ns(v))&&g!=="iframe"&&(m.push(`${h}-metadata-title`),m.push(`${h}-metadata-readmore`)),g==="link"&&(C||v&&Zs(Ns(v)))&&m.push(`${h}-link-readmore`),d(m)},[o,e.data,e.showMetaData,e.isLesson,h]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(EY,{...e,embedId:h,externalLinksDisabled:o,isAuthoring:t,onLinkBlur:c,onLinkFocus:i,onLinkMouseEnter:r,onLinkMouseLeave:a}),l.map(m=>(0,n.jsx)(Pl,{anchorId:m},m))]})};var jY=f(52974);const op=e=>e.toString().padStart(2,"0");function pc(e){const t=Math.floor(e),s=Math.floor(t/3600),o=Math.floor(t%3600/60),r=t%60;return s>0?`${s}:${op(o)}:${op(r)}`:`${o}:${op(r)}`}function P3e(e=[]){return e.map(({time:t,title:s})=>`${pc(t)} ${s}`).join(`
`)}const wY=e=>{const[t,s,o]=e.split(":").reverse();return parseInt(t,10)+parseInt(s,10)*60+parseInt(o||"0",10)*3600},AY=/^(\d*:)?\d{1,2}:\d{2}$/,M3e=(e,t)=>{const s=e.split(`
`).filter(r=>r.trim()!==""),o=[];for(const r of s){const[a,...i]=r.split(" ");if(!AY.test(a))throw new Error("Chapters must use the format M:SS or H:MM:SS. Chapters will not display.");o.push({time:wY(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(t!=null){for(const r of o)if(r.time>=t)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:t)-o[r].time<10)throw new Error("Chapters must be at least 10 seconds long. Chapters will not display.")}return o},RY={hovered:null,setHovered:vs},rp=(0,u.createContext)(null);function PY({children:e}){const t=(0,u.useContext)(rp),[s,o]=(0,u.useState)(null),r=(0,u.useMemo)(()=>({hovered:s,setHovered:o}),[s]);return t!=null?(0,n.jsx)(n.Fragment,{children:e}):(0,n.jsx)(rp.Provider,{value:r,children:e})}const H4=()=>(0,u.useContext)(rp)??RY,MY=.001,ap=(e,t,s)=>e!=null&&e.kind===t&&Math.abs(e.time-s)<MY,F4=z("video-seek-bar-overlay"),ip=e=>Math.max(0,Math.min(100,e)),V4=e=>{const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?Math.max(0,t):null},OY=(e,t)=>{if(!Number.isFinite(t)||t<=0)return[];const s=e.map(o=>{const r=V4(o.time);return r==null||r>=t?null:{chapter:o,startTime:r}}).filter(o=>o!=null).sort((o,r)=>o.startTime-r.startTime);return s.map((o,r)=>{const a=s[r+1],i=a!=null?a.startTime:t;return i<=o.startTime?null:{chapter:o.chapter,endTime:i,leftPercent:ip(o.startTime/t*100),startTime:o.startTime,widthPercent:ip((i-o.startTime)/t*100)}}).filter(o=>o!=null)},BY=(e,t)=>{if(!Number.isFinite(t)||t<=0)return[];const s=new Set;return e.forEach(o=>{const r=V4(o);r==null||r>=t||s.add(r)}),[...s].sort((o,r)=>o-r).map(o=>({leftPercent:ip(o/t*100),time:o}))};function DY({chapters:e,checkpointTimesSeconds:t,durationSeconds:s,onSeekToTime:o}){const r=At(),a=u.useMemo(()=>OY(e,s),[e,s]),i=u.useMemo(()=>BY(t,s),[t,s]),{hovered:c,setHovered:l}=H4(),d=r?.videoCheckpointDefaultTitle||"Checkpoint",h=u.useMemo(()=>{const m=a.filter(v=>v.leftPercent>0).map(v=>({kind:"chapter",element:"chapter",time:v.startTime,leftPercent:v.leftPercent,label:v.chapter.title,key:`chapter-${v.startTime}-${v.chapter.title}`})),p=i.map(v=>({kind:"checkpoint",element:"marker",time:v.time,leftPercent:v.leftPercent,label:`${d} ${pc(v.time)}`,key:`checkpoint-${v.time}`}));return[...m,...p].sort((v,C)=>v.time-C.time||(v.kind===C.kind?0:v.kind==="chapter"?-1:1))},[a,i,d]);return h.length===0?null:(0,n.jsx)("div",{className:F4("markers"),role:"presentation",children:h.map(m=>(0,n.jsx)("button",{"aria-label":m.label,className:F4(m.element,{hovered:ap(c,m.kind,m.time)}),onBlur:()=>l(null),onClick:()=>o?.(m.time),onFocus:()=>l({kind:m.kind,time:m.time}),onPointerEnter:()=>l({kind:m.kind,time:m.time}),onPointerLeave:()=>l(null),style:{left:`${m.leftPercent}%`},type:"button"},m.key))})}const HY=()=>{const e=aa();return r1(e)},z4=(e,t)=>e in t?"Articulate":e.length===2?"ISO-639-1":e.length===3?"ISO-639-3":null,FY=e=>Object.entries(e).reduce((t,[,s])=>(s.ISO639_1&&(t.iso1Map[s.ISO639_1]=t.iso1Map[s.ISO639_1]||[],t.iso1Map[s.ISO639_1].push(s)),s.ISO639_3&&(t.iso3Map[s.ISO639_3]=t.iso3Map[s.ISO639_3]||[],t.iso3Map[s.ISO639_3].push(s)),t),{iso1Map:{},iso3Map:{}}),VY=(e,t,s)=>{let o=e,r="",a=s??z4(e,t);return!a&&e.includes("-")&&([o,r]=e.split("-"),a=z4(o,t),a&&(e=o)),{languageCode:o,code:e,regionCode:r,standard:a??"Articulate"}},fc=(e,t,s={})=>{const{code:o,standard:r}=VY(e.toLowerCase(),t,s.standard),{location:a,script:i,variant:c}=s;if(r!=="Articulate"){const{iso1Map:l,iso3Map:d}=FY(t),h=r==="ISO-639-1"?l[o]??null:d[o]??null;return h?h.length===1?h[0]:h.find(m=>{const p=c&&"variant"in m&&m.variant?m.variant.toLocaleLowerCase()===c.toLocaleLowerCase():!1,v=a&&"location"in m&&m.location?m.location.toLocaleLowerCase()===a.toLocaleLowerCase():!1,C=i&&"script"in m&&m.script?m.script.toLocaleLowerCase()===i.toLocaleLowerCase():!1;return p||v||C})||h[0]||null:null}return t[o]??null},O3e=(e,t,s={})=>fc(e,t,{standard:"Articulate",...s})?.ISO639_1||null,B3e=(e,t,s={})=>fc(e,t,{standard:"Articulate",...s})?.ISO639_3||null,D3e=(e,t,s={})=>fc(e,t,{standard:"ISO-639-1",...s})?.code||null,H3e=(e,t,s={})=>fc(e,t,{standard:"ISO-639-3",...s})?.code||null,$4=e=>!!(e&&"video"in e&&e.video&&"key"in e.video&&e.video.key),_4=e=>!!(e&&"customVideo"in e&&e.customVideo&&"src"in e.customVideo&&e.customVideo.src),U4=e=>!!(e&&"customVideo"in e&&e.customVideo&&"key"in e.customVideo&&e.customVideo.key),zY=(e,t)=>{const s=$4(e)&&$4(t)&&e.video.key===t.video.key,o=_4(e)&&_4(t)&&e.customVideo.src===t.customVideo.src,r=U4(e)&&U4(t)&&e.customVideo.key===t.customVideo.key;return s||o||r},$Y=e=>!!(e&&"video"in e&&e.video&&"captions"in e.video&&e.video.captions?.length),_Y=e=>{const t=dn(),{currentLocale:s}=ct(),o=Oe(e,t),r=Oe(e,s),a=HY();return(0,u.useMemo)(()=>{if(!!(s&&s!==t)&&a&&zY(o,r)&&$Y(r))return r.video.captions.find(l=>fc(l.code,a)?.code===s)?.id},[t,s,o,r,a])},UY=2,GY=1,WY=()=>({previousTime:0,triggeredTimes:new Set}),KY=(e,t,s)=>{const{previousTime:o}=s;t>o+UY&&e.filter(a=>a<=t).forEach(a=>s.triggeredTimes.add(a)),t<o-GY&&(s.triggeredTimes=new Set(e.filter(a=>a<=t))),s.previousTime=t;const r=e.find(a=>t>=a&&!s.triggeredTimes.has(a));return r==null?null:(s.triggeredTimes.add(r),r)};function QY({checkpointTimesSeconds:e,isLoaded:t,getMediaElement:s,onCheckpointReached:o}){const r=(0,u.useRef)(o);r.current=o;const a=(0,u.useMemo)(()=>Array.from(new Set(e)).sort((i,c)=>i-c),[e]);(0,u.useEffect)(()=>{if(!t||a.length===0)return;const i=s();if(i==null)return;const c=WY();c.previousTime=i.currentTime,a.filter(p=>p<=i.currentTime).forEach(p=>c.triggeredTimes.add(p));let l=0;const d=()=>{const p=KY(a,i.currentTime,c);p!=null&&r.current?.(p),l=requestAnimationFrame(d)},h=()=>{l===0&&(l=requestAnimationFrame(d))},m=()=>{l!==0&&(cancelAnimationFrame(l),l=0)};return i.addEventListener("play",h),i.addEventListener("playing",h),i.addEventListener("pause",m),i.addEventListener("ended",m),i.paused||h(),()=>{m(),i.removeEventListener("play",h),i.removeEventListener("playing",h),i.removeEventListener("pause",m),i.removeEventListener("ended",m)}},[s,t,a])}function G4(e){return Number.isFinite(e)&&e>0?e:0}function cp({allowTabNavigation:e=!0,audioVideoPlayhead:t,canAdjustPlaybackSpeed:s,canRestrictSeek:o,captions:r,chapters:a=[],checkpointTimesSeconds:i=[],cornerRadius:c,id:l,media:d,onCheckpointReached:h,onLoad:m,poster:p,progressChanged:v,recordMediaPlayheadPosition:C,ref:g,shouldPause:x,src:S,style:L,subtitle:b,type:y}){const T=u.useRef(null),[k,N]=u.useState(0),I=u.useCallback(ee=>{T.current=ee,typeof g=="function"?g(ee):g&&(g.current=ee)},[g]),w=(0,Be.A)(x),R=A1(),E=At(),j=F1(),O=_Y(d),A=y==="customVideo",P=u.useCallback(()=>T.current?.containerElement?.querySelector("video")??null,[]),M=u.useCallback(ee=>{T.current?.seekToTime(ee)},[]),F=u.useCallback(ee=>{Ef(),N(G4(ee.duration)),v?.(ee)},[v]),B=u.useCallback(ee=>{C?.(ee)},[C]),H=u.useCallback(()=>{Ce.playerId=l,Ce.isPlaying=!0},[l]),V=u.useCallback(()=>{Ce.playerId===l&&(Ce.isPlaying=!1)},[l]),[K,U]=u.useState(!1),X=u.useRef(!1),oe=u.useCallback(()=>{U(!0);const ee=T.current;if(ee){const{duration:te}=ee.getProgress();N(G4(te)),m?.({player:ee})}},[m]);QY({checkpointTimesSeconds:i,isLoaded:K,getMediaElement:P,onCheckpointReached:h}),u.useEffect(()=>{X.current||K&&(t!=null&&t>0&&T.current?.seekToPercent(t),X.current=!0)},[K,t]),u.useEffect(()=>{!w&&x&&T.current?.pause()},[w,x]),u.useEffect(()=>{const ee=()=>{(!Ce.isPlaying||Ce.playerId!==l)&&T.current?.pause()};return Ce.addChangeListener(ee),()=>{Ce.removeChangeListener(ee)}},[l]);const Z=u.useMemo(()=>{const ee=typeof c=="number"||typeof c=="string"?{"--ov-corner-radius":`${Number(c)}px`}:void 0;if(!(ee==null&&L==null))return{...ee,...L}},[c,L]),_=p==null?void 0:A?p:Ct(p),D=K&&k>0&&(a.length>0||i.length>0),$=`${A?S:Ct(S)}?v=1`,Q=A?"application/x-mpegURL":void 0,Y=u.useMemo(()=>[{src:$,type:Q??"video/mp4"}],[$,Q]),q=u.useMemo(()=>{const ee=[];if(r==null&&b&&ee.push({kind:"captions",label:"English",src:A?b:Ct(b),srcLang:"en"}),r!=null)for(const te of r){const se=te.url||(te.key!=null?Ct(te.key):void 0);se&&ee.push({default:te.id===O?!0:void 0,kind:"captions",label:te.name||j?.(te.code)||te.code,src:se,srcLang:te.code})}return ee},[r,b,A,j,O]);return(0,n.jsx)(jY.L,{crossOrigin:co.isLocalFilesystem?void 0:"anonymous",enableDownload:R,enablePlaybackSpeed:s??void 0,enableSeek:o==null?void 0:!o,inert:!e,labelBackToMoreOptions:E?.a11yMediaMoreOptionsBack,labelCaptions:E?.a11yMediaCaptions,labelCaptionsOff:E?.a11yMediaCaptionsOff,labelContainer:E?.a11yGroupVideoPlayer??"Video player",labelCurrentTime:E?.a11yMediaCurrentTime,labelDownload:E?.a11yMediaDownload,labelDuration:E?.a11yMediaDuration,labelError:E?.a11yMediaErrorVideo,labelExitFullscreen:E?.a11yMediaExitFullscreen,labelExitPictureInPicture:E?.a11yMediaExitPictureInPicture,labelFullscreen:E?.a11yMediaFullscreen,labelMoreOptions:E?.a11yMediaMoreOptions,labelMute:E?.a11yMediaMute,labelPause:E?.a11yMediaPause,labelPictureInPicture:E?.a11yMediaPictureInPicture,labelPlay:E?.a11yMediaPlay,labelPlaybackRate:E?.a11yMediaPlaybackRate,labelPlaybackRateNormal:E?.a11yMediaPlaybackRateNormal,labelPlayVideo:E?.a11yMediaPlayVideo,labelReplay:E?.a11yMediaReplay,labelSeek:E?.a11yMediaSeek,labelSeekDisabled:E?.a11yMediaSeekDisabled,labelUnmute:E?.a11yMediaUnmute,labelVolume:E?.a11yMediaVolume,onPause:V,onPlay:H,onPlayheadSave:B,onReady:oe,onTimeUpdate:F,poster:_,ref:I,seekOverlay:D?(0,n.jsx)(DY,{chapters:a,checkpointTimesSeconds:i,durationSeconds:k,onSeekToTime:M}):null,sources:Y,style:Z,timeUpdateInterval:1e3,tracks:q})}var ZY=f(82920);function Je(e){const t=ZY.forwardRef((s,o)=>{const r=Rt();return(0,n.jsx)(e,{...s,getL10nValue:r,ref:o})});return t.displayName=`withLocalizedLookup(${e.displayName||e.name})`,t}var YY=f(65307),W4=f.n(YY),XY=f(54318),qY=f.n(XY);const JY=e=>({...e,courseId:e.courseId||Yt()(["course","id"],e)}),eX=e=>({...e,lessonId:e.lessonId||Yt()(["lesson","id"],e)}),tX=({id:e,courseId:t,lessonId:s,refs:o})=>e||(o&&s?`${s}-${o}`:s||t),lp=me()(tX,eX,JY),F3e=dt()(Us()(Ae()("id"),W4()("id",lp)),wn()(qY()(Ae(),[Ae()("id"),Ae()("uploads")]),En()(["id"])),W4()("isUploading",He()("status","uploading")));function V3e(e){const t=e.match(/^(.*\/)?([^/]+)$/);if(!t)return encodeURIComponent(e);const s=t[1]??"",o=t[2],r=encodeURIComponent(o);return`${s}${r}`}function sX(e){return e.replace(/%2F/g,"/")}var nX=f(82920);const dp=e=>!!(e&&("key"in e&&e.key||"src"in e&&e.src)),Jd=e=>dp(e)&&!e.isProcessing&&!e.error,oX=(e,t)=>t?.mediaType==="audio"?!!e&&(dp(e)||E4(t)||I4(t)&&!dp(e)):Jd(e),rX=e=>eo()(Me()(!!e),ZQ()(`-${e}`));class aX extends nX.Component{constructor(t){super(t),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:t,blockId:s,openTranscript:o,refs:r}=this.props,a=t?.items?.length===1?t.items[0]:void 0,i=this.props.item??a;let c=s;try{t!=null&&typeof t=="object"&&!Array.isArray(t)?"blockId"in t?c=t.blockId:"id"in t&&(c=t.id):t?.id&&(c=t.id)}catch{c=s}let l="";try{i!=null&&typeof i=="object"&&!Array.isArray(i)&&"id"in i&&(l=String(i.id))}catch{l=""}const d=r??`items:${c||""}/items:${l}`;if((t||s)&&i&&o)return o({blockId:t?.id??s,item:i,refs:d})}renderAudio(t,s){const{activeIndex:o,allowTabNavigation:r,block:a,blockId:i,getL10nValue:c,index:l,isOverlayAudio:d,item:h,itemIndex:m,labels:p,lessonNumber:v,shouldPause:C,side:g}=this.props,{audio:x}=c(t),S=a&&typeof a=="object"&&"blockId"in a?a.blockId:a?.id||i||"",L=h&&typeof h=="object"&&"id"in h?h.id:"",b=this.props.refs??`items:${S}/items:${L}`,y=`audio-${v}-${l}`;return(0,n.jsx)(P4,{activeIndex:o,allowTabNavigation:r,id:y,isOverlayAudio:d,item:h,itemIndex:m,labels:p,mediaSrc:x.key,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript??void 0,onTranscriptUpdate:this.props.onTranscriptUpdate,refs:b,shouldPause:x.pause||C,side:g,transcriptMedia:t,uploadId:s,volumeSliderPosition:this.props.volumeSliderPosition},y)}renderImage(t){const{allowTabNavigation:s,cornerRadius:o,defaultAlign:r,imageMaxHeight:a,index:i,labels:c,onLoad:l,opts:d}=this.props,h=t?.align??r,m=t?.dimensions,p=`image-${i}`,{disableZoom:v}=d??{};return(0,n.jsx)(Ga,{align:h,allowTabNavigation:s,alt:t?.alt,cornerRadius:o,disableZoom:v,height:m?.height||m?.originalHeight,labels:c,link:t?.link,maxHeight:a,onLoad:l,shouldFillWidth:t?.fillWidth,src:mt(t),width:m?.width||m?.originalWidth},p)}renderVideo(t,s){const{allowTabNavigation:o,blockId:r,lessonNumber:a,index:i,enableVideoPlaybackSpeed:c,shouldPause:l}=this.props,d=t.skipProcess?sX(t.poster):t.poster,h=rX(r)(`video-${a}-${i}-${d||""}`);return(0,n.jsx)(cp,{allowTabNavigation:o,canAdjustPlaybackSpeed:c,captions:t.captions,id:h,media:s,poster:d,shouldPause:t.pause||l,src:t.key},h)}renderEmbed(t){const{allowTabNavigation:s,embedClass:o,labels:r,opts:a,shouldPause:i}=this.props,{fullEmbed:c,showMetaData:l=!0}=a,d=`embed-${this.props.index}`;return(0,n.jsx)("div",{className:o,children:(0,n.jsx)(D4,{allowTabNavigation:s,data:t,id:d,isLesson:c,labels:r,shouldPause:t.pause||i,showMetaData:l},d)})}render(){const{blockId:t,hasPadding:s,item:o,lessonId:r,mediaType:a}=this.props,i=o&&typeof o=="object"&&"id"in o?o.id:"",c=this.props.refs??`items:${t??""}/items:${i}`,l=this.props.media,d=G()({"media-group":s}),{audio:h,embed:m,image:p,video:v}=this.props.getL10nValue(l)??{},C=lp({lessonId:r,refs:c}),g=this.props.getUpload?this.props.getUpload(C):null;return(0,n.jsxs)("div",{className:d,"data-l10n-id":wt(l),children:[(!a||a==="image")&&Jd(p)&&this.renderImage(p),(!a||a==="audio")&&oX(h,g)&&this.renderAudio(l,C),(!a||a==="video")&&Jd(v)&&this.renderVideo(v,l),(!a||a==="embed")&&Jd(m)&&this.renderEmbed(m)]})}}const es=OZ(Sl(PC(Je(aX))));function Ln(e,t,s,o){const a=t==="bottom"||!s&&t!=="top"?"bottom":"top",i={renderOrder:["text"],isOverlayAudio:!1};if(!e)return i;const c=!!e.audio,l=!!e.image,d=!!e.video,h=!!e.embed,m=l||d,p=()=>{const g=l?"image":"video",x={top:c?["audio","text",g]:["text",g],bottom:c?["text","audio",g]:["text",g],legacyTop:c?["audio",g,"text"]:[g,"text"],legacyBottom:c?[g,"text","audio"]:[g,"text"]};return s&&o==="timeline"&&!t?x.top:s&&o!=="timeline"?a==="bottom"?x.legacyBottom:x.legacyTop:a==="bottom"?x.bottom:x.top},v=()=>{const g={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 s&&o==="timeline"&&!t?g.legacyTop:s&&o!=="timeline"?a==="bottom"?g.legacyBottom:g.legacyTop:a==="bottom"?g.bottom:g.top},C=()=>a==="bottom"?["text","audio"]:["audio","text"];return c&&!m&&!h?{...i,renderOrder:C()}:m&&!c&&!h?{...i,renderOrder:p()}:h&&!c&&!m?{...i,renderOrder:v()}:c&&m&&!h?o==="statement"?{...i,renderOrder:C()}:o==="labeled-graphic"||a==="top"||o==="process"?{...i,renderOrder:p(),audioOnlyMedia:{audio:e.audio},imageOnlyMedia:{image:e.image},videoOnlyMedia:{video:e.video}}:{...i,renderOrder:e.video?["text","video","audio"]:["text","overlay"],audioOnlyMedia:{audio:e.audio},imageOnlyMedia:{image:e.image},videoOnlyMedia:{video:e.video},isOverlayAudio:!e.video}:c&&h&&!m?{...i,renderOrder:v(),audioOnlyMedia:{audio:e.audio},embedOnlyMedia:{embed:e.embed}}:i}var iX=f(82920);const _n=z("block-text"),cX=class extends iX.Component{renderHeadingDelegate;renderTextDelegate;constructor(e){super(e),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:e}=this.props;return e?e==="heading"?"h2":"h3":"div"};renderHeading(e){const t="heading"in e?e.heading:null;return(0,n.jsx)(ke,{value:t})}renderText(e){const{labels:t,takingSnapshot:s,variant:o}=this.props,r=o?.includes("column"),a="paragraph"in e?e.paragraph:void 0;return r||s?(0,n.jsx)(KQ,{item:e,labels:t,children:(0,n.jsx)(Ye,{value:a||""})}):(0,n.jsx)(Ye,{className:_n("col"),value:a||""})}render(){const{blockId:e,columns:t,defaultBackgroundColor:s,heading:o,isLearner:r,items:a,labels:i,lessonId:c,media:l,settings:d,type:h,variant:m,renderText:p=this.renderTextDelegate,renderHeading:v=this.renderHeadingDelegate,getL10nValue:C}=this.props,g=C(l),x=Object.keys(g?.audio??{}).length>0,{audioPosition:S,entranceAnimation:L,cellPadding:b=1.5,tableWidth:y=76,textPadding:T=.8,textWidth:k=76}=d,N=m==="table",I=t===1,w=t>1,R=N?y:k,E=!N&&I,j=N,O=TQ(b),A=kQ(T),P=Gd(R),M=_n({[h]:!E&&!j||w,[`${h}-custom-width`]:!w,[`${h}-custom-width-table-${P}`]:j,[`${h}-custom-width-text-${P}`]:E,[`heading-custom-text-padding-${A}`]:E,[`${h}-custom-cell-padding-${O}`]:j,"no-animation":!L}),F=t>2?_n("container-wide"):_n("container",{authoring:!r}),B=this.getHeadingComponent(),H=C(Array.isArray(l)?{}:l),V=Ln(H,S);return(0,n.jsx)(Re,{className:M.toString(),defaultBackgroundColor:s,children:(0,n.jsxs)("div",{className:F,"data-block-id":e,"data-block-text":"",children:[(0,n.jsx)("div",{className:_n("row"),children:o!==""?a.slice(0,1).map((K,U)=>(0,n.jsx)("div",{className:_n("col"),children:(0,n.jsx)("div",{className:_n("heading"),children:(0,n.jsx)(B,{children:v(K)})})},"id"in K?K.id:U)):null}),V.renderOrder.map((K,U)=>{if(K==="text")return(0,n.jsx)("div",{className:_n("row"),children:h!=="heading"?a.slice(0,t).map((X,oe)=>(0,n.jsx)(u.Fragment,{children:p(X)},"id"in X?X.id:oe)):null},`text-${U}`);if(K==="audio"&&x){const X=V.renderOrder.indexOf("audio")<V.renderOrder.indexOf("text");return(0,n.jsx)("div",{className:_n("row",{media:!0,top:X,bottom:!X,hasHeading:m==="heading paragraph"||m==="subheading paragraph"}),children:(0,n.jsx)("div",{className:_n("col",{media:!0}),children:(0,n.jsx)(es,{blockId:e,hasPadding:!1,index:e,item:{id:e,media:l},labels:i,lessonId:c,media:l,refs:`items:${e}`})})},`audio-${U}`)}})]})})}},Vo=Je(cX),lX=Vo,dX=e=>(0,n.jsx)(Vo,{columns:2,type:"twocol",...e}),uX=e=>(0,n.jsx)(Vo,{columns:3,type:"threecol",...e}),hX=e=>(0,n.jsx)(Vo,{columns:4,type:"fourcol",...e}),mX=e=>(0,n.jsx)(Vo,{heading:"heading",type:"heading",...e}),pX=e=>(0,n.jsx)(Vo,{heading:"subheading",type:"heading",...e}),fX=e=>(0,n.jsx)(Vo,{heading:"heading",...e}),gX=e=>(0,n.jsx)(Vo,{heading:"subheading",...e});var gc=f(82920);const vX=1e3,CX={fadeInGrow:"scale(0.95)",fadeInLeft:"translateX(-50px)",fadeInLeftSmall:"translateX(-25px)",fadeInRight:"translateX(50px)",fadeInUp:"translateY(25px)"},xX=e=>{const{afterAnimatedIn:t,animateIn:s="fadeIn",children:o,className:r,duration:a=1,initiallyVisible:i,siblingDelay:c=0}=e,l=gc.useRef(null),[d,h]=gc.useState(!1);gc.useEffect(()=>{const p=l.current;if(i&&p){h(!0);return}if(d||!p||typeof window>"u")return;const v=y4(),C=new IntersectionObserver(([x])=>{x!=null&&(x.isIntersecting||x.intersectionRatio>0)&&(h(!0),C.unobserve(x.target))},{root:v,rootMargin:L2,threshold:0});C.observe(p);const g=setTimeout(()=>{h(x=>{if(x)return x;const S=l.current;if(!S)return x;const L=S.getBoundingClientRect(),b=v?.getBoundingClientRect(),y=b?.top??0,T=b?.bottom??window.innerHeight,k=(T-y)*.1;return L.bottom>y-k&&L.top<T+k?!0:x})},vX);return()=>{C.disconnect(),clearTimeout(g)}},[i,d]),gc.useEffect(()=>{const p=l.current;if(!p||!t)return;const v=C=>{C.target instanceof Element&&C.target.parentElement===p&&C.propertyName==="opacity"&&t()};return p.addEventListener("transitionend",v),()=>{p.removeEventListener("transitionend",v)}},[t]),gc.useEffect(()=>{const p=l.current;if(!p||!Array.isArray(o))return;Array.from(p.children).forEach((C,g)=>{C instanceof HTMLElement&&C.style.setProperty("--idx",String(g))})},[o]);const m={"--scroll-animation-step":`${c}s`,"--scroll-animation-duration":s==="none"?"0s":`${a}s`,"--scroll-animation-from":CX[s]??"translateY(0)"};return(0,n.jsx)("div",{className:G()("scroll-animation",r,{"scroll-animation--in":d}),ref:l,style:m,children:o})},bX=matchMedia("(prefers-reduced-motion: reduce)");function Ds(){return bX.matches}const Ve=e=>{const{afterAnimatedIn:t,animateBlockEntrance:s,animateIn:o,children:r,className:a,duration:i,initiallyVisible:c,isLearner:l,siblingDelay:d}=e;return l&&s&&!Ds()?(0,n.jsx)(xX,{afterAnimatedIn:t,animateIn:o,className:a,duration:i,initiallyVisible:c,siblingDelay:d,children:r}):Array.isArray(r)?(0,n.jsx)("div",{children:r}):r},$3e="group",yX="tablist",LX="tabpanel",_3e="tab",U3e="radio",vc=({caption:e,editable:t,id:s,isOverlayType:o,getL10nValue:r})=>{const a=!!(!o&&!t&&r(e));return{figcaptionId:a?`figcaption-${s}`:void 0,isFigure:a,role:a?"figure":void 0,tagName:a?"figure":"div"}};var K4=f(82920);const SX=K4.lazy(async()=>{const[e,t]=await Promise.all([f.e("ace").then(f.t.bind(f,46036,23)),f.e("ace").then(f.bind(f,52104)),f.e("ace").then(f.t.bind(f,82091,23)),f.e("ace").then(f.t.bind(f,29614,23)),f.e("ace").then(f.t.bind(f,83546,23)),f.e("ace").then(f.t.bind(f,21994,23)),f.e("ace").then(f.t.bind(f,83546,23)),f.e("ace").then(f.t.bind(f,70989,23)),f.e("ace").then(f.t.bind(f,58242,23)),f.e("ace").then(f.t.bind(f,53567,23)),f.e("ace").then(f.t.bind(f,2433,23)),f.e("ace").then(f.t.bind(f,9603,23)),f.e("ace").then(f.t.bind(f,11507,23)),f.e("ace").then(f.t.bind(f,17146,23)),f.e("ace").then(f.t.bind(f,80170,23)),f.e("ace").then(f.t.bind(f,60681,23)),f.e("ace").then(f.t.bind(f,50661,23)),f.e("ace").then(f.t.bind(f,31628,23)),f.e("ace").then(f.t.bind(f,43159,23)),f.e("ace").then(f.t.bind(f,8916,23)),f.e("ace").then(f.t.bind(f,74243,23)),f.e("ace").then(f.t.bind(f,59014,23))]);return{default:t.default}}),TX=({classNames:e,code:t})=>{const[s,o]=(0,u.useState)(!1),{announcePolite:r}=An(),a=async()=>{const i=(0,Ar.htmlDecode)(t);await navigator.clipboard.writeText(i),o(!0),setTimeout(()=>o(!1),1e3),r("Copied!")};return(0,n.jsx)("div",{className:e,children:(0,n.jsx)(Ho,{message:s?"Copied!":"Copy",children:(0,n.jsx)("button",{"aria-label":s?"Copied!":"Copy",className:"block-code-snippet-copy",onClick:a,type:"button",children:(0,n.jsx)(ie,{name:s?"check":"copy"})})})})};class kX extends K4.Component{renderCaptionDelegate;constructor(t){super(t),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:t}){return(0,n.jsx)(Ye,{className:"block-text__code-caption",value:t||""})}render(){const{animateBlockEntrance:t,defaultBackgroundColor:s="",getL10nValue:o,initiallyVisible:r,isLearner:a,items:i,labels:c,settings:l,renderCaption:d=this.renderCaptionDelegate}=this.props,{entranceAnimation:h,language:m,paddingBottom:p,paddingTop:v,snippetBackgroundColor:C,snippetColorContrast:g,theme:x,useAdvancedEditor:S,wrapWords:L}=l,b=G()("block-text block-text--code",{"block-text--padding-top":Number(v)===2,"block-text--padding-bottom":Number(p)===2,"block-text--no-animation":!h}),y={backgroundColor:C},T=C==="#fafafa"||at()(C),k=g??ye.DARK;if(!T){const N=zt({backgroundColor:C,contrast:k});Object.assign(y,{"--color-snippet-contrast":N})}return(0,n.jsx)(Re,{className:b,defaultBackgroundColor:s,children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:"block-text__container",children:i.slice(0,1).map(N=>{const I=vc({...N,getL10nValue:o});return(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{"aria-label":c?.a11yBlockCodeSnippet,className:"block-text__col",role:"group",children:(0,n.jsxs)("figure",{"aria-labelledby":I.figcaptionId,className:"block-text__figure block-text__figure--with-copy",role:"figure",children:[(0,n.jsx)(kO,{value:N.code,children:w=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(TX,{classNames:"block-text__copy-button",code:w}),S?(0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(SX,{editorProps:{$blockScrolling:!0},maxLines:25,mode:m,name:String(N.id),readOnly:!0,setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:x,value:(0,Ar.htmlDecode)(t0(w)),width:"100%",wrapEnabled:L})}):(0,n.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:t0(w)},dir:"ltr",style:y})]})}),N.caption&&(0,n.jsx)("figcaption",{id:I.figcaptionId,children:d(N)})]})})},N.id)})})})})}}const Q4=Je(kX);function NX({accentColor:e,backgroundType:t,blockBackgroundColor:s,noteColor:o,imageBackgroundDefault:r="#ffffff"}){return o!=null&&o!==""?o:IX({accentColor:e,backgroundType:t,blockBackgroundColor:s,imageBackgroundDefault:r})}function IX({accentColor:e,backgroundType:t,blockBackgroundColor:s,imageBackgroundDefault:o="#ffffff"}){if(t!==ne.IMAGE&&s==null)return"#000000b3";switch(t){case ne.IMAGE:return o;case ne.LIGHT:case ne.GRAY:return an(.9,e);case ne.DARK:return"#494949";case ne.BLACK:return"#333333";default:{if(!s)return e;switch(ga(s)){case pt.LIGHT:return an(.3,s);case pt.MED:return Rn(.2,s);case pt.DARK:case pt.NEAR_BLACK:return Rn(.4,s);default:return e}}}}function EX(e,t){const s=cs(),{cardMode:o,className:r="",children:a,disabled:i=!1,tag:c="div",overrideBackground:l=!1,style:d={},...h}=e,{cardMode:m,customBackgroundColorContrast:p}=s,C=ze()?.theme,g=Pn(),x=o??m??Qs.WHITE,S=Os()??"#ffffff",L=x===Qs.WHITE,b=g===ne.COLOR,y=g===ne.ACCENT,T=C?.accentContrast,k=g===ne.ACCENT||g===ne.COLOR,N=T===ye.AUTO&&y||p===ye.AUTO&&b,I=g===ne.COLOR?p:T,w=[r,"block-card"];if(L)w.push("bg--range-light","block-card--white");else if(i){w.push("block-card--disabled");const R=zt({backgroundColor:S,contrast:I});N&&(d["--color-text"]=R,d["--color-text-opposite"]=R===Lt.DARK?Lt.LIGHT:Lt.DARK)}else{w.push("block-card--transparent");const E=Qw(S)??S??"#ffffff";switch(g){case ne.LIGHT:case ne.GRAY:w.push("bg--range-light");break;case ne.IMAGE:w.push("bg--range-dark");break;case ne.DARK:case ne.BLACK:w.push("bg--range-dark"),d["--color-background-rgb"]=(0,Oa.A)(E)?.slice(0,3);break;default:{const O=d["--color-background"]??(l?S:E),A=zt({backgroundColor:O,contrast:I});k&&A==Lt.LIGHT&&w.push("block-card--contrast-light");const P=ga(O);w.push(`bg--range-${va()(P.toLowerCase())}`),d["--color-background"]=O,d["--color-background-rgb"]=(0,Oa.A)(O)?.slice(0,3);break}}}return(0,n.jsx)(c,{...h,className:w.join(" "),ref:t,style:d,children:a})}const Ut=(0,u.forwardRef)(EX);var jX=f(82920);const Hs=z("block-statement");class wX extends jX.Component{renderTextDelegate;constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this)}static get defaultProps(){return{items:[],type:"a",getL10nValue:()=>{}}}getEntranceAnimationType(){const{type:t}=this.props;switch(t){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}getEntranceAnimationDuration(){const{type:t}=this.props;switch(t){case"a":return 1;case"b":case"c":case"d":return .75;case"note":return .5}}renderText({blockId:t,getL10nValue:s,type:o,labels:r,lessonId:a,media:i,settings:c},{paragraph:l}){const d=o==="note",h=s(Array.isArray(i)?{}:i),m=!!h?.audio,p=Ln(h,c.audioPosition,!1,"statement"),v=(0,n.jsx)("div",{className:Hs("quote"),children:p.renderOrder.map((C,g)=>{if(C==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(Ye,{value:l})},`text-${g}`);if(C==="audio"&&m){const x=p.renderOrder.indexOf("audio")<p.renderOrder.indexOf("text");return(0,n.jsx)("div",{className:Hs("audio-container",{top:x,bottom:!x}),children:(0,n.jsx)(es,{blockId:t,hasPadding:!1,index:t,item:{media:i,id:t},labels:r,lessonId:a,media:i,mediaType:"audio",refs:`items:${t}`})},`audio-${g}`)}return null})});return d?(0,n.jsx)(BX,{getL10nValue:s,media:i,children:v}):v}render(){const{animateBlockEntrance:t,isLearner:s,items:o,renderText:r=this.renderTextDelegate,settings:a,type:i,initiallyVisible:c}=this.props,{entranceAnimation:l,divider:d=!0,dividerPadding:h=fQ(i),dividerSize:m=pQ(i),noteIcon:p=!0,noteSize:v="sm",statementWidth:C=gQ(i)}=a,g=yQ(C),x=LQ(h),S=SQ(m),L=v,b=i==="a"||i==="b"||i==="d",y=i==="note",T=Hs({[i]:!0,[`${i}-custom-width-${g}`]:!0,[`${i}-divider-off`]:b&&!d,[`${i}-divider-padding-${x}`]:b&&d,[`${i}-divider-size-${S}`]:b&&d,[`note-size-${L}`]:y,[`note-size-${L}-no-icon`]:y&&!p,"no-animation":!l});return(0,n.jsx)(Re,{className:T.toString(),children:(0,n.jsx)("div",{className:Hs("wrap"),children:(0,n.jsx)("div",{className:Hs("container"),children:(0,n.jsx)("div",{className:Hs("row"),children:o.slice(0,1).map(k=>(0,n.jsx)(Ve,{animateBlockEntrance:t,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),initiallyVisible:c,isLearner:s,children:(0,n.jsxs)("div",{className:Hs("col"),children:[(0,n.jsx)("div",{className:Hs("divider-top-container"),children:(0,n.jsx)("div",{className:Hs("divider-top")})}),r(this.props,k),(0,n.jsx)("div",{className:Hs("divider-bottom")})]})},k.id))})})})})}}const Cc=Je(wX),AX=Cc,RX=e=>(0,n.jsx)(Cc,{type:"b",...e}),PX=e=>(0,n.jsx)(Cc,{type:"c",...e}),MX=e=>(0,n.jsx)(Cc,{type:"d",...e}),OX=e=>(0,n.jsx)(Cc,{type:"note",...e}),BX=({children:e,getL10nValue:t,media:s})=>{const o=cs(),{accentColor:r,cardMode:a,cornerRadius:i,courseColor:c,customBackgroundColorContrast:l,noteIcon:d=!0,noteIconColor:h}=o,m=o.noteColor,p=o.noteColorContrast,{theme:v}=ze(),C=Os(),g=Pn(),x=g===ne.COLOR,S=g===ne.ACCENT,L=v?.accentContrast,b=g===ne.DARK||g===ne.BLACK,y=m!=null&&m!=="",k=x||S||b||y?Qs.TRANSPARENT:a,N=y&&(p??ye.AUTO)===ye.AUTO||L===ye.AUTO&&S||l===ye.AUTO&&x,I=(0,u.useMemo)(()=>NX({accentColor:r??c,backgroundType:g,blockBackgroundColor:C,noteColor:m,imageBackgroundDefault:""}),[r,g,C,c,m]),w=y?p??ye.AUTO:g===ne.COLOR?l:L,R=zt({backgroundColor:I,contrast:w}),E={"--color-background":I,...(N||y)&&{"--color-text":R},...i&&{"--corner-radius":`${Number(i)}px`},...h&&{"--color-theme-decorative":h},...y&&{"--color-theme":m}},j=Hs("note-icon",{off:!d}),A=(t?t(Array.isArray(s)?{}:s):void 0)?.image,P=A?.key&&Object.keys(A).length>0,M=P?_T(A)?Ct(A.key):mt(A):null,F=()=>d?P&&M?(0,n.jsx)("div",{"aria-hidden":!0,className:Hs("note-icon__custom"),style:{WebkitMaskImage:`url('${M}')`,maskImage:`url('${M}')`}}):(0,n.jsx)(ie,{name:"circle-info"}):null;return(0,n.jsxs)(Ut,{cardMode:k,className:Hs("note-card"),style:E,children:[(0,n.jsx)("div",{className:j,children:F()}),e]})};var ft=f(82920);function Z4({ariaLabel:e,children:t,className:s="carousel-controls-item-btn",isActive:o,onClick:r,onKeyDown:a}){return(0,n.jsx)("li",{className:"carousel-controls-item",role:"listitem",children:(0,n.jsx)("button",{"aria-current":o,"aria-label":e,className:s,onClick:r,onKeyDown:a,tabIndex:o?0:-1,type:"button",children:t})})}function eu({children:e,iconNameLeft:t="chevron-left-light",iconNameRight:s="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:i="Carousel",labelSlideControls:c="Slide controls",labelSlideControlsGoToNext:l="Go to next slide",labelSlideControlsGoToPrevious:d="Go to previous slide",labelSlideControlsGoToSlide:h="Go to slide",labelSlideCounterPreposition:m="of",labelSlidePreposition:p="of",labelSlideRoleDesc:v="Slide",onChange:C,ref:g,renderSlideIndicator:x,shouldMouseEmulateTouch:S=!1,shouldUseCounter:L=!1,shouldUseGoToSlide:b=!0}){const y=ft.useId(),[T,k]=ft.useState(0),N=(0,Be.A)(T)??0,I=ft.useRef(null),w=ft.useRef(null),R=ft.useRef(!1),E=ft.useRef(!1),j=ft.useRef(void 0),O=ft.useRef(void 0),A=`carousel-${y}`,P=ft.Children.count(e),M=(0,Be.A)(P),F=ft.useMemo(()=>Array.from({length:P}),[P]),B=P>1;ft.useImperativeHandle(g,()=>({navigateToSlide:(Z,_=!0)=>{k(Z);const D=I.current?.children?.[Z]?.firstElementChild;_&&D?.focus()}}),[]);const H=ft.useCallback(({activeIndex:Z,dir:_})=>{const D=o?Z-1>=0?Z-1:P-1:Math.max(0,Z-1),$=o?Z+1<=P-1?Z+1:0:Math.min(P-1,Z+1);return _==="left"?r?$:D:r?D:$},[o,r,P]),V=ft.useCallback(()=>{k(Z=>H(r?{activeIndex:Z,dir:"right"}:{activeIndex:Z,dir:"left"}))},[H,r]),K=ft.useCallback(()=>{k(Z=>H(r?{activeIndex:Z,dir:"left"}:{activeIndex:Z,dir:"right"}))},[H,r]),U=ft.useCallback(Z=>{const _=I.current?.children?.[Z],D=I.current;if(_&&D){const $=_.getBoundingClientRect(),Q=D.getBoundingClientRect(),Y=$.left+$.width/2,q=Q.left+Q.width/2,J=Y-q;D.scrollBy({left:J,behavior:"smooth"})}},[]),X=ft.useCallback(Z=>{let _=!1,D=T;switch(Z.key){case"ArrowLeft":_=!0,D=H({activeIndex:T,dir:"left"});break;case"ArrowRight":_=!0,D=H({activeIndex:T,dir:"right"});break;case"Home":_=!0,D=0;break;case"End":_=!0,D=P-1;break}_&&(Z.stopPropagation(),Z.preventDefault()),T!==D&&(I.current?.children?.[D]?.firstChild?.focus(),U(D),k(D))},[T,H,U,P]);ft.useEffect(()=>{N!==T&&C?.(T)},[T,C,N]),ft.useEffect(()=>{P<M&&T>P-1&&k(P-1)},[T,M,P]),ft.useEffect(()=>{const Z=J=>{J.target.tagName==="IMG"&&J.preventDefault(),j.current=J.screenX},_=J=>{const ee=window.visualViewport?.scale??1,te=window.getSelection().toString()!=="";if(!E.current&&ee<=1.01&&!te&&j.current!=null){O.current=J.screenX;const se=O.current-j.current;Math.abs(se)>50&&(window.getSelection().empty(),R.current=!0,j.current=void 0,O.current=void 0,se<0?k(W=>H({activeIndex:W,dir:"right"})):k(W=>H({activeIndex:W,dir:"left"})))}},D=J=>{R.current&&J.stopPropagation(),R.current=!1,E.current=!1,j.current=void 0,O.current=void 0},$=J=>{if(J.touches.length>1){E.current=!0;return}J.changedTouches.length===1&&J.changedTouches[0]&&(j.current=J.changedTouches[0].screenX)},Q=J=>{const ee=window.visualViewport?.scale??1,te=window.getSelection().toString()!=="";if(!E.current&&ee<=1.01&&!te&&j.current!=null&&J.changedTouches[0]){O.current=J.changedTouches[0].screenX;const se=O.current-j.current;Math.abs(se)>50&&(R.current=!0,j.current=void 0,O.current=void 0,se<0?k(W=>H({activeIndex:W,dir:"right"})):k(W=>H({activeIndex:W,dir:"left"})))}},Y=()=>{R.current=!1,E.current=!1,j.current=void 0,O.current=void 0},q=w.current;return S&&(q?.addEventListener("mousedown",Z,{capture:!0}),q?.addEventListener("mousemove",_,{capture:!0}),q?.addEventListener("click",D,{capture:!0})),q?.addEventListener("touchstart",$,{passive:!0}),q?.addEventListener("touchmove",Q,{passive:!0}),q?.addEventListener("touchend",Y,{passive:!0}),q?.addEventListener("touchcancel",Y,{passive:!0}),()=>{S&&(q?.removeEventListener("mousedown",Z),q?.removeEventListener("mousemove",_),q?.removeEventListener("mouseup",Y)),q?.removeEventListener("touchstart",$),q?.removeEventListener("touchmove",Q),q?.removeEventListener("touchend",Y),q?.removeEventListener("touchcancel",Y)}},[H,S,P]);const oe=ft.useCallback(Z=>()=>{U(Z),k(Z)},[U]);return(0,n.jsxs)("div",{"aria-label":a,"aria-roledescription":i,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":T},children:[B&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{"aria-label":c,className:"carousel-controls",role:"group",children:[b&&(0,n.jsx)("ul",{className:"carousel-controls-items",ref:I,role:"list",children:F.map((Z,_)=>{const D=T===_,$=oe(_);return x?x({index:_,isActive:D,onClick:$,onKeyDown:X}):(0,n.jsx)(Z4,{ariaLabel:h+" "+(_+1),isActive:D,onClick:$,onKeyDown:X,children:(0,n.jsx)(ie,{className:"carousel-controls-item-btn-icon",name:D?"circle":"circle-solid"})},_)})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:T===0,"aria-label":d,className:"carousel-controls-prev",onClick:!o&&T===0?void 0:V,type:"button",children:(0,n.jsx)(ie,{className:"carousel-controls-prev-icon",name:r?s:t})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:T===P-1,"aria-label":l,className:"carousel-controls-next",onClick:!o&&T===P-1?void 0:K,type:"button",children:(0,n.jsx)(ie,{className:"carousel-controls-next-icon",name:r?t:s})}),L&&(0,n.jsxs)("div",{className:"carousel-controls-counter",children:[(0,n.jsx)("div",{className:"carousel-controls-counter-text",children:`${T+1} ${m} ${P}`}),(0,n.jsx)("div",{className:"carousel-controls-counter-line",children:(0,n.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((T+1)/P).toFixed(2))*100}%`}})})]})]})}),(0,n.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:w,children:ft.Children.map(e,(Z,_)=>{const D=`${A}-${_}-counter`;return(0,n.jsxs)("div",{"aria-labelledby":D,"aria-roledescription":v,className:"carousel-slide",hidden:T!==_,inert:T!==_,role:"group",children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:D,children:`${_+1} ${p} ${P}`}),Z]})})})]})}var xc=f(82920);const DX="div",Y4=xc.createContext(void 0);function HX({children:e,element:t,...s},o){const[r,a]=xc.useState(null);return(0,n.jsx)(Y4.Provider,{value:r,children:xc.createElement(t??DX,{...s,ref:o},e,(0,n.jsx)("div",{ref:a}))})}const bc=xc.forwardRef(HX);function G3e(){return xc.useContext(Y4)}function up(e){const t=s=>{const o=l1();return(0,n.jsx)(e,{...s,isRTL:o})};return t.displayName=`withRTL(${e.displayName||e.name})`,t}const tu=({blockId:e,carouselRef:t,children:s,items:o})=>{const r=(0,u.useRef)(null),a=t??r;return(0,u.useEffect)(()=>{const i=c=>{const{path:l}=c.detail,{blockId:d,cardId:h}=Ta(l,["block","card"]);if(d===e){const m=o.findIndex(p=>p.id===h);m>=0&&a.current?.navigateToSlide?.(m,!1)}};return window.addEventListener(Ze,i),()=>{window.removeEventListener(Ze,i)}},[o,e,a]),(0,n.jsx)(n.Fragment,{children:s({carouselRef:t})})},$e=z("block-quote"),yc=({avatar:e,alt:t,l10nId:s,showAvatar:o})=>o?(0,n.jsx)(ks,{alt:No(t),className:$e("avatar"),"data-l10n-id":s,src:e}):null,X4=(e,{paragraph:t})=>{const s=t||"",o=$e("text",{blank:t===""}).toString();return(0,n.jsx)(Ye,{className:o,value:s})},q4=(e,{name:t})=>{const s=$e("caption",{blank:t===""}).toString();return(0,n.jsx)(Ye,{className:s,value:t})},J4=({avatar:e,blockProps:t,getL10nValue:s,item:o,renderCaption:r,renderText:a})=>{const i=o?.avatar?.media,c=s(i)?.image,l=c?.alt,d=C1(c),h=wt(i);return(0,n.jsx)("div",{className:$e("slide"),children:(0,n.jsxs)("figure",{className:$e("figure"),children:[d&&e?(0,n.jsx)(yc,{alt:l??"",avatar:d,l10nId:h,showAvatar:!!e}):null,(0,n.jsx)("blockquote",{className:$e("quote-body"),children:a(t,o)}),(0,n.jsx)("figcaption",{children:r(t,o)})]})})},FX=({alt:e,animateBlockEntrance:t,avatar:s,children:o,l10nId:r,initiallyVisible:a,isAuthorBlank:i=!1,isLearner:c,showAvatar:l,type:d})=>{const h=$e("col",{"no-avatar":!s}),m=s?(0,n.jsx)("div",{className:$e("image"),children:(0,n.jsx)("div",{className:$e("avatar-wrap"),children:d==="c"?(0,n.jsx)(Ve,{animateBlockEntrance:t,animateIn:"fadeInLeftSmall",initiallyVisible:a,isLearner:c,children:(0,n.jsx)(yc,{alt:e,avatar:s,l10nId:r,showAvatar:l})}):(0,n.jsx)(yc,{alt:e,avatar:s,l10nId:r,showAvatar:l})})}):null;return(0,n.jsx)("div",{className:$e("container"),children:(0,n.jsx)("div",{className:$e("row"),children:(0,n.jsxs)("div",{className:h,children:[(0,n.jsx)("div",{className:$e("divider-top")}),(0,n.jsxs)("div",{className:$e("figure",{"no-author":i,"no-avatar":!i&&!l}),children:[m,o]}),(0,n.jsx)("div",{className:$e("divider-bottom")})]})})})},VX=({avatar:e,children:t,alt:s,l10nId:o,showAvatar:r})=>(0,n.jsx)("div",{className:$e("figure"),children:(0,n.jsx)("div",{className:$e("container"),children:(0,n.jsxs)("div",{className:$e("row"),children:[(0,n.jsx)("div",{className:$e("col"),children:e&&r?(0,n.jsx)(yc,{alt:s,avatar:e,l10nId:o,showAvatar:r}):null}),(0,n.jsx)("div",{className:$e("col"),children:t})]})})}),zX=({background:e,avatar:t,children:s,alt:o,l10nId:r,showAvatar:a})=>(0,n.jsx)("div",{className:$e("background"),style:{backgroundImage:e??""},children:(0,n.jsx)("div",{className:$e("container"),children:(0,n.jsx)("div",{className:$e("row"),children:(0,n.jsx)("div",{className:$e("col"),children:(0,n.jsxs)("div",{className:$e("figure"),children:[t&&a?(0,n.jsx)(yc,{alt:o,avatar:t,l10nId:r,showAvatar:a}):null,s]})})})})});class $X extends u.Component{renderTextDelegate;renderCaptionDelegate;constructor(t){super(t),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:t}=this.props;switch(t){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}getBackgroundImageUrl(t,s){const o=t?.alpha??vQ(s),r=mt(t),a=CQ(s);return fl({alpha:o,color:a,url:r})?.backgroundImage}renderText(t,{paragraph:s}){const o=s||"",r=$e("text",{blank:o===""}).toString();return(0,n.jsx)(Ye,{className:r,value:o})}renderCaption(t,{name:s}){const o=$e("caption",{blank:s===""}).toString();return(0,n.jsx)(Ye,{className:o,value:s})}render(){const{animateBlockEntrance:t,getL10nValue:s,initiallyVisible:o,isLearner:r,items:a,settings:i,type:c,renderText:l=this.renderTextDelegate,renderCaption:d=this.renderCaptionDelegate}=this.props,h=92,{avatarSize:m=Wm(c),divider:p=!0,dividerSize:v=h,entranceAnimation:C,quoteAlignment:g="left",quoteIcon:x=!0,quotesInline:S,quotePadding:L=2,quoteWidth:b=c4(c)}=i,[y]=a,{avatar:T,background:k}=y,N=s(T?.media)?.image,I=C1(N),w=N?.alt,R=wt(T.media),E=s(k?.media)?.image,j=E?.overlayColor,O=this.getBackgroundImageUrl(E,j),A=i?.avatar??I!=="",P=I&&I!=="",M=c==="background",F=M&&j==="light",B=l4(b),H=d4(L),V=Km(c,m),K=bQ(v),U=c==="a",X=c==="c"||M,oe=c!=="b"&&!M,Z=y?.name==="",_=y?.paragraph==="",D=$e(null,{[c]:!0,[`${c}-custom-width-${B}`]:!0,[`${c}-divider-off`]:U&&!p,[`${c}-divider-size-${K}`]:U&&p,[`${c}-quote-padding-${H}`]:!0,[`${c}-align-${g}`]:M,[`${c}-${B}-no-avatar`]:!I||!A,[`${c}-avatar-size-${V}`]:A&&P,[`${c}-quote-icon-off`]:X&&!x,[`${c}-legacy-quote-mark`]:oe&&!S,[`${c}-overlay-legacy`]:!j,[`${c}-overlay-light`]:F,"no-animation":!C}).toString(),$=(0,n.jsx)("div",{className:$e("wrap",{blank:Z||_}),children:(0,n.jsx)(Ve,{animateBlockEntrance:t,animateIn:this.getQuoteEntranceAnimationType(),initiallyVisible:o,isLearner:r,siblingDelay:.15,children:(0,n.jsxs)("figure",{children:[(0,n.jsx)("blockquote",{children:l(this.props,y)}),(0,n.jsx)("figcaption",{children:d(this.props,y)})]})})});let Q;switch(c){case"d":Q=(0,n.jsx)(VX,{alt:w,avatar:I,initiallyVisible:o,l10nId:R,showAvatar:A,type:c,children:$});break;case"background":Q=(0,n.jsx)(zX,{alt:w,avatar:I,background:O,initiallyVisible:o,l10nId:R,showAvatar:A,type:c,children:$});break;default:Q=(0,n.jsx)(FX,{alt:w,animateBlockEntrance:t,avatar:I,initiallyVisible:o,isAuthorBlank:Z,isLearner:r,l10nId:R,showAvatar:A,type:c,children:$})}return(0,n.jsx)(Re,{className:D,children:Q})}}const Lc=Je($X),e9=(e=>(0,n.jsx)(Lc,{...e}));f.dn(e9);const _X=e=>(0,n.jsx)(Lc,{type:"b",...e}),UX=e=>(0,n.jsx)(Lc,{type:"c",...e}),GX=e=>(0,n.jsx)(Lc,{type:"d",...e}),WX=e=>(0,n.jsx)(Lc,{type:"background",...e});class KX extends u.Component{static get defaultProps(){return{type:"carousel",items:[],onStep:Function.prototype,getL10nValue:()=>{}}}handleChangeCarousel=t=>{this.props.onStep?.(this.props.items[t])};render(){const{blockId:t,animateBlockEntrance:s,editable:o,getL10nValue:r,initiallyVisible:a=!1,isRTL:i,isLearner:c,isLessonBlocksList:l=!1,items:d,labels:h,previewType:m,settings:p,renderText:v=X4,renderCaption:C=q4,type:g}=this.props,{avatar:x=!0,avatarSize:S=Wm(g),entranceAnimation:L,quotesInline:b,quotePadding:y=2,quoteWidth:T=c4(g),showBorder:k=!0}=p,I=g!=="b"&&!(g==="background"),w=l4(T),R=d4(y),E=Km(g,S),j=m==="mobile-portrait"||m==="mobile-landscape",O=$e({[g]:!0,[`${g}-custom-width-${w}`]:!0,[`${g}-quote-padding-${R}`]:!0,[`${g}-${w}-no-avatar`]:!x,[`${g}-avatar-size-${E}`]:x,[`${g}-legacy-quote-mark`]:!l&&I&&!b,"no-animation":!L,"hide-border":!k,editable:o}).toString(),A=d.map(P=>(0,n.jsx)(J4,{avatar:x,blockProps:this.props,getL10nValue:r,item:P,renderCaption:C,renderText:v},P.id));return(0,n.jsx)("div",{className:$e("slider-container"),children:(0,n.jsx)(Re,{className:O,children:(0,n.jsx)(bc,{className:$e("wrap"),children:(0,n.jsx)("div",{className:$e("container"),children:(0,n.jsx)("div",{className:$e("col"),children:(0,n.jsx)(Ut,{className:$e("box"),children:(0,n.jsx)(Ve,{animateBlockEntrance:s,animateIn:"fadeInUp",initiallyVisible:a,isLearner:c,children:(0,n.jsx)(tu,{blockId:t,items:d,children:({carouselRef:P})=>(0,n.jsx)(eu,{isRTL:i,labelCarousel:h?.a11yBlockQuoteCarousel,labelCarouselRoleDesc:h?.a11yBlockQuoteCarouselRoleDescription,labelSlideControls:h?.a11yBlockQuoteCarouselSlideControls,labelSlideControlsGoToNext:h?.a11yBlockQuoteCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:h?.a11yBlockQuoteCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:h?.a11yBlockQuoteCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:h?.blocksPreposition,labelSlidePreposition:h?.a11yBlockQuoteCarouselSlidePreposition,labelSlideRoleDesc:h?.a11yBlockQuoteCarouselSlideRoleDescription,onChange:this.handleChangeCarousel,ref:P,shouldMouseEmulateTouch:j,children:A})})})})})})})})})}}const QX=up(Je(KX)),su=z("block-quote"),ZX=e=>{const{animateBlockEntrance:t,initiallyVisible:s=!1,isLearner:o,items:r=[],settings:a,renderText:i=X4,renderCaption:c=q4,type:l="stacked"}=e,d=Rt(),{avatar:h=!0,entranceAnimation:m}=a,p=a.avatarSize??Wm(l),v=Km(l,p),C=su({[l]:!0,[`${l}-avatar-size-${v}`]:!0,"no-animation":!m}).toString(),g=r.map(x=>(0,n.jsx)(J4,{avatar:h,blockProps:e,getL10nValue:d,item:x,renderCaption:c,renderText:i},x.id));return(0,n.jsx)(Re,{className:C,children:(0,n.jsx)(bc,{className:su("wrap"),children:(0,n.jsx)("div",{className:su("container"),children:(0,n.jsx)(Ve,{animateBlockEntrance:t,animateIn:"fadeInUp",initiallyVisible:s,isLearner:o,siblingDelay:.15,children:(0,n.jsx)("div",{className:su("row"),children:g})})})})})};var t9=f(82920);const Is=z("block-list"),YX=class extends t9.Component{static get defaultProps(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered",getL10nValue:()=>{}}}nextNumber(e){const{items:t}=this.props,o=t.length>0?t[e].number:null;let r;return!isNaN(o)&&o!==""&&(r=parseInt(o,10)+1),(r<1||r>99)&&(r=null),r}render(){const{animateBlockEntrance:e,blockId:t,defaultBackgroundColor:s,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:l,lessonId:d,media:h,onStep:m,settings:p,type:v}=this.props,{audioPosition:C,bulletPadding:g,entranceAnimation:x,listItemColor:S,listItemColorContrast:L,listWidth:b}=p,y=r(Array.isArray(h)?{}:h),T=Ln(y,C),k=xQ(g),N=Gd(b),I=Is({[v]:!0,[`${v}-custom-width-${N}`]:!0,[`${v}-bullet-padding-${k}`]:!0,"no-animation":!x}),w=v==="numbered"?"ol":"ul";return(0,n.jsx)(Re,{className:I.toString(),defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:Is("container"),children:(0,n.jsx)("div",{className:Is("row"),children:(0,n.jsx)(bc,{className:Is("col"),children:(0,n.jsx)("div",{className:"blocks-list__container",children:T.renderOrder.map((R,E)=>{if(R==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(w,{className:Is("list"),role:"list",children:(0,n.jsx)(Ve,{animateBlockEntrance:e,animateIn:"fadeInRight",className:Is("animated-item").toString(),initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map((j,O)=>{const A={key:j.id,index:O,lessonId:d,blockId:t,type:v,editable:o,nextNumber:this.nextNumber.bind(this),onStep:m,listItemColor:S,listItemColorContrast:L,...j};return this.props.renderItem?this.props.renderItem(A):(0,u.createElement)(XX,{...A,key:A.key})})})})},`text-${E}`);if(R==="audio")return(0,n.jsx)("div",{className:G()("block-list__media",{"audio-on-top":T.renderOrder[0]==="audio","audio-on-bottom":T.renderOrder[0]!=="audio"}),children:(0,n.jsx)(es,{blockId:t,hasPadding:!1,index:t,item:{media:h,id:t},labels:l,lessonId:d,media:h,refs:`items:${t}`})},`${R}-${E}`)})})})})})})}};class XX extends t9.Component{renderTextDelegate;animateRef=null;static get defaultProps(){return{className:""}}constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this)}renderText(t){return(0,n.jsx)(Ye,{...t})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:t,id:s,index:o,number:r,paragraph:a,editable:i,className:c,renderText:l=this.renderTextDelegate,style:d,listItemColor:h,listItemColorContrast:m}=this.props,p={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:i,id:s,value:a};return(0,n.jsxs)("li",{className:G()("block-list__item",`block-list__item--${t}`,c),ref:v=>{this.animateRef=v},role:"listitem",style:d,children:[t==="numbered"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Is("number"),style:h?{backgroundColor:h,color:zt({contrast:m||ye.AUTO,backgroundColor:h})}:void 0,children:r||o+1}),l(p)]}),t==="bulleted"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,n.jsx)(ie,{className:Is("bullet"),name:"circle-solid",style:h?{color:h}:void 0}),l(p)]}),t==="icon"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Is("icon"),style:h?{"--color-background":h}:void 0,children:(0,n.jsx)("span",{"aria-hidden":"true",className:Is("icon-glyph",{placeholder:!0}),children:"\u2B50\uFE0F"})}),l(p)]}),t==="checkboxes"&&(0,n.jsxs)("label",{className:Is("option"),children:[(0,n.jsx)("input",{className:Is("checkbox-input"),onChange:this.handleChangeCheckbox,type:"checkbox"}),(0,n.jsx)("div",{className:Is("checkbox"),style:h?{borderColor:h,"--color-background":h}:void 0,children:(0,n.jsx)(ie,{className:Is("checkbox__icon"),name:"check",style:h?{color:zt({contrast:m||ye.AUTO,backgroundColor:h})}:void 0})}),l(p)]})]})}}const qX=Je(YX),nu=e=>(0,n.jsx)(qX,{...e}),JX=nu,eq=e=>(0,n.jsx)(nu,{type:"checkboxes",...e}),tq=e=>(0,n.jsx)(nu,{type:"bulleted",...e}),sq=e=>(0,n.jsx)(nu,{type:"icon",...e});var hp=f(82920);const mp=e=>["hero","full","aside"].includes(e);class nq extends hp.Component{renderCaptionDelegate;constructor(t){super(t),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{type:"hero",editable:!1,getL10nValue:()=>{},lessonId:"",blockId:"",items:[]}}renderCaption(t,s){return(0,n.jsx)(Ye,{className:"block-image__caption",value:s})}render(){const{aiMagicIcon:t,aiOverlay:s,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:i,getL10nValue:c,initiallyVisible:l,isLearner:d,items:h,type:m,labels:p,lessonId:v,settings:C,renderCaption:g=this.renderCaptionDelegate}=this.props,{entranceAnimation:x,cornerRadius:S,zoomOnClick:L}=C,b=G()(`block-image block-image--${m}`,"block-image--flag-dimensions",{"block-image--no-animation":!x}),y=h[0],{id:T,caption:k}=y,{image:N,audio:I}=c(y.media)??{},w=N?.alt,R=mt(N),E=N?.dimensions,j=E?.width||E?.originalWidth,O=E?.height||E?.originalHeight,A=vc({caption:k,editable:i,id:T,getL10nValue:c}),P=!d&&!R,M=j&&O?j/O:void 0,F=N?.link?c(N.link.destination):void 0,B=N?.link&&typeof F=="string"?{type:N.link.type,destination:F}:void 0,H=G()("block-image__image",{"block-image__image--audio-overlay":!!I});return(0,n.jsx)(Re,{className:b,defaultBackgroundColor:a,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(Ve,{animateBlockEntrance:o,initiallyVisible:l,isLearner:d,children:(0,n.jsxs)(A.tagName,{"aria-labelledby":A.figcaptionId,className:"block-image__figure",role:A.role,children:[(0,n.jsxs)("div",{className:H,children:[P?(0,n.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:M},children:[(0,n.jsx)("div",{children:t}),(0,n.jsx)("div",{className:"block-image__waiting-text",children:"Waiting for image\u2026"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ga,{alt:w,cornerRadius:S,disableZoom:!L,height:O,l10nId:wt(y.media),labels:p,link:B,maxHeight:m==="full"?380:900,src:R,width:j}),I&&mp(m)&&(0,n.jsx)(es,{blockId:r,cornerRadius:S,index:`${r}-${T}-0`,isOverlayAudio:!0,item:y,labels:p,lessonId:v,media:y.media,mediaType:"audio"})]}),s&&(0,n.jsx)("div",{className:"block-image__ai-overlay",children:s})]}),(i||k)&&(0,n.jsx)("figcaption",{id:A.figcaptionId,children:g(T,k)})]})})})})})})}}const oq=Je(nq),rq=(e,t,s,o,r)=>t?r:(0,n.jsx)(Ve,{animateBlockEntrance:e,initiallyVisible:s,isLearner:o,children:r});class aq extends hp.Component{renderCaptionDelegate;renderParagraphDelegate;constructor(t){super(t),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(t,s){return(0,n.jsx)(Ye,{className:"block-image__text",value:s})}renderCaption(t,s){return(0,n.jsx)(Ye,{className:"block-image__caption",value:s})}renderImage(t,s,o,r){const{blockId:a,editable:i,lessonId:c,renderCaption:l=this.renderCaptionDelegate,getL10nValue:d}=this.props,h=d(o.media),m=h?.image,p=h?.audio,v=m?.alt,C=mt(m),g=m?.dimensions,x=g?.width||g?.originalWidth,S=g?.height||g?.originalHeight,L=vc({caption:s,editable:i,id:t,getL10nValue:d}),{animateBlockEntrance:b,initiallyVisible:y,isLearner:T,labels:k,settings:{cornerRadius:N,zoomOnClick:I}}=this.props,w=G()("block-image__image",{"block-image__image--audio-overlay":!!p}),R=m?.link?d(m.link.destination):void 0,E=m?.link&&typeof R=="string"?{type:m.link.type,destination:R}:void 0;return(0,n.jsx)(Ve,{animateBlockEntrance:b,animateIn:r==="right"?"fadeInRight":"fadeInLeft",initiallyVisible:y,isLearner:T,children:(0,n.jsxs)(L.tagName,{"aria-labelledby":L.figcaptionId,className:"block-image__figure",role:L.role,children:[(0,n.jsxs)("div",{className:w,children:[(0,n.jsx)(Ga,{alt:v,cornerRadius:N,disableZoom:!I,height:S,l10nId:wt(o?.media),labels:k,link:E,maxHeight:900,src:C,width:x}),p&&mp("aside")&&(0,n.jsx)(es,{blockId:a,cornerRadius:N,index:`${a}-${t}-0`,isOverlayAudio:!0,item:o,labels:k,lessonId:c,media:o.media,mediaType:"audio"})]}),(i||s)&&(0,n.jsx)("figcaption",{id:L.figcaptionId,children:l(t,s)})]})})}render(){const{defaultBackgroundColor:t,items:s,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:i,imagePosition:c,imageSize:l}=r,d=c==="right",h=G()(`block-image block-image--${a}`,{"block-image--small":l==="small","block-image--large":l==="large","block-image--reverse":d,"block-image--no-animation":!i}),m=s[0],{id:p,caption:v}=m,C="paragraph"in m?m.paragraph:void 0;return(0,n.jsx)(Re,{className:h,defaultBackgroundColor:t,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsxs)("div",{className:"block-image__row",children:[(0,n.jsx)("div",{className:"block-image__col",children:d?o(p,C):this.renderImage(p,v,m,"left")}),(0,n.jsx)("div",{className:"block-image__col",children:d?this.renderImage(p,v,m,"right"):o(p,C)})]})})})}}const iq=Je(aq);class cq extends hp.Component{renderCaptionDelegate;renderOverlayDelegate;constructor(t){super(t),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(t,s){return(0,n.jsx)(Ye,{className:"block-image__caption",value:s})}renderOverlay(t,s){return(0,n.jsx)(Ye,{className:"block-image__paragraph",value:s})}renderOverlayCaption(t,s){const{animateBlockEntrance:o,initiallyVisible:r,isLearner:a,renderOverlay:i=this.renderOverlayDelegate}=this.props;return(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(Ve,{animateBlockEntrance:o,animateIn:"fadeInUp",duration:1,initiallyVisible:r,isLearner:a,children:i(t,s)})})})})}render(){const{animateBlockEntrance:t,blockId:s,defaultBackgroundColor:o,editable:r,getL10nValue:a,initiallyVisible:i,isLearner:c,items:l,labels:d,lessonId:h,settings:m,type:p,renderCaption:v=this.renderCaptionDelegate}=this.props,{entranceAnimation:C,opacity:g,opacityColor:x}=m,S=B1(m?.backgroundColor,o),L=G()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!C,"block-image--dark":vm(S)}),b={opacity:g||.6,backgroundColor:x||"transparent"},y=l[0],{id:T,caption:k}=y,N=a(y.media),I=N?.image,w=N?.audio,R=I?.key,E=mt(I),j=I?.dimensions,O=j?.width||j?.originalWidth,A=j?.height||j?.originalHeight,P=No(I?.alt),M=p==="overlay",F=vc({caption:k,editable:r,id:T,isOverlayType:M,getL10nValue:a});return(0,n.jsxs)(Re,{"aria-labelledby":F.figcaptionId,className:L,defaultBackgroundColor:o,role:F.role,tag:F.tagName,children:[rq(t,M,i,c,(0,n.jsxs)("div",{className:"block-image__figure",children:[R&&(0,n.jsxs)("div",{className:"block-image__image","data-l10n-id":wt(y?.media),style:{backgroundImage:`url('${E}')`},children:[(0,n.jsx)(ks,{alt:P,height:A,src:E,width:O}),(0,n.jsx)("div",{className:"block-image__overlay",style:b}),w&&mp(p)&&(0,n.jsx)(es,{blockId:s,index:`${s}-${T}-0`,isOverlayAudio:!0,item:y,labels:d,lessonId:h,media:y.media,mediaType:"audio"})]}),M?this.renderOverlayCaption(T,k):null]})),!M&&(r||k)&&(0,n.jsx)("figcaption",{className:"block-image__container",id:F.figcaptionId,children:v(T,k)})]})}}const pp=Je(cq),lq=e=>(0,n.jsx)(pp,{type:"overlay",...e}),dq=e=>(0,n.jsx)(pp,{type:"banner",...e});var uq=f(82920);function s9(e){class t extends uq.Component{static displayName=`withGalleryCaption(${e.displayName||e.name})`;renderCaptionDelegate;constructor(o){super(o),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption(o,r,a=!0){return(0,n.jsx)(Ye,{allowTabNavigation:a,className:"block-gallery__caption",value:r})}render(){const{renderCaption:o=this.renderCaptionDelegate}=this.props;return(0,n.jsx)(e,{...this.props,renderCaption:o})}}return t}var ou=f(82920);const n9=z("block-gallery-carousel");function hq({blockId:e,animateBlockEntrance:t,defaultBackgroundColor:s,editable:o,initiallyVisible:r,isLearner:a,labels:i,lessonId:c,items:l,onStep:d,previewType:h,renderCaption:m,settings:p}){l||=[];const[v,C]=ou.useState(0),g=ou.useCallback(b=>{C(b),d?.(l[b])},[l,d]),x=h===ar.MOBILE_PORTRAIT||h===ar.MOBILE_LANDSCAPE,S=n9({noAnimation:!p?.entranceAnimation||Ds()}).toString(),L=l1();return(0,n.jsx)(Re,{className:S,defaultBackgroundColor:s,children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)(bc,{className:n9("container").toString(),children:(0,n.jsx)(tu,{blockId:e,items:l,children:({carouselRef:b})=>(0,n.jsx)(eu,{isRTL:L,labelCarousel:i?.a11yBlockImageCarousel,labelCarouselRoleDesc:i?.a11yBlockImageCarouselRoleDescription,labelSlideControls:i?.a11yBlockImageCarouselSlideControls,labelSlideControlsGoToNext:i?.a11yBlockImageCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockImageCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockImageCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockImageCarouselSlidePreposition,labelSlideRoleDesc:i?.a11yBlockImageCarouselSlideRoleDescription,onChange:g,ref:b,shouldMouseEmulateTouch:x,children:l.map((y,T)=>(0,n.jsx)(pq,{activeIndex:v,blockId:e,editable:o,index:T,item:y,labels:i,lessonId:c,renderCaption:m,settings:p},y.id))})})})})})}const mq=s9(hq),fp=z("block-gallery-carousel-item");function pq({activeIndex:e,blockId:t,editable:s,index:o,item:r,labels:a,lessonId:i,renderCaption:c,settings:l}){const[d,h]=ou.useState(!1),{image:m,audio:p}=Oe(r.media),v=Oe(m?.link?.destination),C=m?.dimensions,g=ou.useCallback(()=>{h(!0)},[]);return(0,n.jsxs)("figure",{className:fp(),children:[s&&!d&&(0,n.jsx)("div",{className:fp("loading"),children:"Loading image..."}),(0,n.jsxs)("div",{className:fp("image-container",{"audio-overlay":!!p}),children:[(0,n.jsx)(Ga,{alt:m?.alt,cornerRadius:l?.cornerRadius,disableZoom:!l?.zoomOnClick,height:C?.height||C?.originalHeight,l10nId:wt(r?.media),labels:a,link:m?.link&&typeof v=="string"?{type:m.link.type,destination:v}:void 0,maxHeight:900,onLoad:g,src:mt(m),width:C?.width||C?.originalWidth}),p&&(0,n.jsx)(es,{blockId:t,cornerRadius:l?.cornerRadius,index:`${t}-${r.id}-${o}`,isOverlayAudio:!0,item:r,labels:a,lessonId:i,media:r.media,mediaType:"audio",shouldPause:e!==o})]}),(s||r.caption)&&d&&(0,n.jsx)("figcaption",{children:c(r.id,r.caption)})]})}const fq=({alt:e,cornerRadius:t,disableZoom:s,height:o,l10nId:r,labels:a,link:i,src:c,width:l})=>(0,n.jsx)("div",{className:"block-gallery__image",children:(0,n.jsx)(Ga,{alt:e,cornerRadius:t,disableZoom:s,height:o,l10nId:r,labels:a,link:i,maxHeight:900,src:c,width:l})}),gq=e=>{switch(e){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function vq(e){return(0,n.jsx)(mq,{...e})}class Cq extends u.Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:t,defaultBackgroundColor:s,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:l,renderCaption:d,settings:h,width:m}=this.props,{entranceAnimation:p,cornerRadius:v,zoomOnClick:C}=h,g=G()(`block-gallery block-gallery--${gq(m)}`,{"block-gallery--no-animation":!p||Ds()});return(0,n.jsx)(Re,{className:g,defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:"block-gallery__container",children:(0,n.jsx)("div",{className:"block-gallery__row",children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map(x=>{const{id:S}=x,L=x.caption,b=r(x.media)?.image,y=b?.alt,T=b?.key,k=b?.dimensions,N=k?.width||k?.originalWidth,I=k?.height||k?.originalHeight,w=mt(b),R=r(b?.link?.destination),E=vc({caption:L,editable:o,id:S,getL10nValue:this.props.getL10nValue});return(0,n.jsx)("div",{className:"block-gallery__col",children:(0,n.jsxs)(E.tagName,{"aria-labelledby":E.figcaptionId,className:"block-gallery__figure",role:E.role,children:[T&&(0,n.jsx)(fq,{alt:y,cornerRadius:v,disableZoom:!C,height:I,l10nId:wt(x?.media),labels:l,link:b?.link&&typeof R=="string"?{type:b.link.type,destination:R}:void 0,src:w,width:N}),(o||L)&&(0,n.jsx)("figcaption",{id:E.figcaptionId,children:d(S,L)})]})},S)})})})})})}}const gp=s9(Je(Cq)),vp=z("block-divider"),Cp=({isLearner:e,labels:{numberedDividerGroup:t},number:s,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,i=r==="numbered",l=vp({authoring:!e,spacing:r==="spacing",numbered:i,"no-animation":!a}).toString(),d=i?(0,n.jsxs)("div",{className:vp("wrap__number"),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:t}),s]}):null;return(0,n.jsx)(Re,{className:l,children:(0,n.jsx)("div",{className:vp("wrap",{authoring:!e&&!i}),children:d})})},xq=Cp,bq=e=>(0,n.jsx)(Cp,{type:"numbered",...e}),yq=e=>(0,n.jsx)(Cp,{type:"spacing",...e});var Lq=f(8608),Sq=f.n(Lq),Tq=f(48451),o9=f.n(Tq),kq=f(98334),ru=f.n(kq),Nq=f(99969),au=f.n(Nq),iu=f(82920);const Iq=30,r9=D1("blockSettings");class Eq extends iu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],lessonId:"",onStep:()=>{}};render(){const{animateBlockEntrance:t,blockId:s,editable:o,initiallyVisible:r,isLearner:a,items:i,labels:c,lessonId:l,onStep:d,settings:h,enableVideoPlaybackSpeed:m}=this.props,{entranceAnimation:p,accordionBehavior:v="keepOpen"}=h,C=G()("blocks-accordion",{"blocks-accordion--no-animation":!p});return(0,n.jsx)(Re,{className:C,"data-block-id":s,children:(0,n.jsx)(Ve,{animateBlockEntrance:t,duration:.75,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:"blocks-accordion__container",children:(0,n.jsx)("div",{className:"blocks-accordion__row",children:(0,n.jsx)("div",{className:"blocks-accordion__col",children:(0,n.jsx)(Oq,{blockId:s,editable:o,enableVideoPlaybackSpeed:m,items:i,keepOpen:v==="keepOpen",labels:c,lessonId:l,onStep:d,settings:h})})})})})})}}const jq={isOpen:!1,isActive:!1},wq=e=>(t,{id:s})=>Object.assign({},t,{[s]:e[s]||jq}),a9=(e,t)=>t.reduce(wq(e),{}),Aq=(e,t)=>(s,o)=>{const r=e==o,a=r?!s.isOpen:s.isOpen,i=r&&!s.isOpen;return{isOpen:t?a:i,isActive:r}},Rq=e=>(t,s)=>{const o=s==e;return{isOpen:o,isActive:o}},Pq=e=>(t,s)=>({isOpen:s==e,isActive:t.isActive});class Mq extends iu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(t){super(t);const{items:s}=this.props;this.state={itemStatusMap:a9({},s)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(Ze,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(Ze,this.handleNavtoTab)}handleNavtoTab(t){const s=t.detail.path[t.detail.path.indexOf("items")+1]?.id,o=t.detail.path[t.detail.path.lastIndexOf("items")+1]?.id;if(s===this.props.blockId){const r=this.props.items.findIndex(({id:h})=>h===o),{items:a,onStep:i}=this.props,{itemStatusMap:c}=this.state,l=a[r].id,d=Rq(l);this.setState({itemStatusMap:As()(d,c)}),open&&i(a[r])}}UNSAFE_componentWillReceiveProps(t){const s=t.items,o=is()(s)!==is()(this.props.items);!t.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference():o&&this.rebuildItemStatusMap(s)}updateMapForOneAtATimePreference(){const{itemStatusMap:t}=this.state,{items:s}=this.props,o=Sq()(a=>t[a.id].isOpen,s);if(!o)return;const r=Pq(o.id);this.setState({itemStatusMap:As()(r,t)})}rebuildItemStatusMap(t){const s=this.state.itemStatusMap;this.setState({itemStatusMap:a9(s,t)})}handleItemClick(t){const{items:s,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,i=s[t].id,c=Aq(i,o);this.setState({itemStatusMap:As()(c,a)}),open&&r(s[t])}render(){const{items:t,settings:s,editable:o,labels:r,lessonId:a,blockId:i,enableVideoPlaybackSpeed:c}=this.props,{itemStatusMap:l}=this.state,{zoomOnClick:d}=s,h=Object.values(l)?.find(m=>m.isOpen)?"open":"closed";return(0,n.jsx)("div",{className:"blocks-accordion__wrapper","data-accordion-status":h,children:t.map((m,p)=>(0,n.jsx)(Dq,{blockId:i,disableZoom:!d,editable:o,focused:l[m.id].isActive,index:p,item:{...m,enableVideoPlaybackSpeed:c},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,p),open:l[m.id].isOpen},m.id))})}}const Oq=r9(Mq);class Bq extends iu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(t){super(t),this.id=ru()(),this.toggle=this.toggle.bind(this),this.renderDescription=this.renderDescription.bind(this),this.renderTitle=this.renderTitle.bind(this)}componentDidUpdate(t){if(!this.props.open)return;const s=this.content;if(s&&(s.classList.add("blocks-accordion__content--visible"),!t.open&&this.props.open)){const o=s.parentElement,r=o?.getBoundingClientRect()?.top,a=r!=null&&r>0&&r<window.innerHeight,i=Ds()?"instant":"smooth";a||o.scrollIntoView({behavior:i,block:"start"})}}toggle(t){const{blockId:s,index:o}=this.props,r=Ce.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(s.toString())&&a.test(r)&&Ce.pause(),this.props.onClick(),t.preventDefault()}renderTitle(t){const{title:s}=this.props.item;return(0,n.jsx)(ke,{className:"blocks-accordion__title",id:t,value:s})}renderDescription(t){const{description:s=""}=this.props.item;return(0,n.jsx)(Ye,{className:"blocks-accordion__description",value:s||""},t)}render(){const{blockId:t,blockSettings:s,editable:o,disableZoom:r,getL10nValue:a,index:i,item:c,focused:l,labels:d,lessonId:h,open:m,renderDescription:p=this.renderDescription,renderTitle:v=this.renderTitle}=this.props,{settings:C={},enableVideoPlaybackSpeed:g}=c,x=a(c.media)??{},S=Ln(x,s.audioPosition),L=Object.assign({},C,{disableZoom:r,fullEmbed:!0}),b=s?.backgroundType===ne.ACCENT||s?.backgroundType===ne.IMAGE,y=G()("blocks-accordion__item",{"blocks-accordion__item--closed":!m}),T=G()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":m&&l&&!b}),k=G()("blocks-accordion__content",{"blocks-accordion__content--will-enter":m,"brand--border":m&&l&&!b}),N=`title-${this.id}`,I=`panel-${this.id}`,w=s?.headingLevel,R=w?`h${w}`:"h2";let E=(0,n.jsxs)("button",{"aria-controls":I,"aria-expanded":m,className:T,onClick:this.toggle,onKeyDown:!o&&F3(this.toggle)||void 0,type:"button",children:[v(N),(0,n.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,n.jsx)(ie,{className:"blocks-accordion__toggler",name:m?"minus":"plus"})})]});return o&&(E=(0,n.jsxs)("div",{className:T,children:[v(N),(0,n.jsx)("button",{"aria-controls":I,"aria-expanded":m,"aria-label":m?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,n.jsx)(ie,{className:"blocks-accordion__toggler",name:m?"minus":"plus"})})]})),(0,n.jsxs)(Ut,{className:y,tag:"section",children:[(0,n.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,n.jsx)(R,{children:E})}),(0,n.jsx)("section",{"aria-labelledby":N,className:k,id:I,ref:j=>{this.content=j},children:S.renderOrder.map((j,O)=>{if(j==="text")return p(`text-${O}`);const A={blockId:t,hasPadding:!1,imageMaxHeight:1e3,item:c,labels:d,lessonId:h,enableVideoPlaybackSpeed:g,opts:L,shouldPause:!m},P=xp(x),M=P==="image-with-audio",F=M?"left":"center",H={audio:{media:S.audioOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-audio`,className:"blocks-accordion__audio"},image:{media:S.imageOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-image`,className:G()(`blocks-accordion__${P}`,{[`blocks-accordion__${P}--${F}`]:M})},video:{media:S.videoOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-video`,className:G()(`blocks-accordion__${P}`,{[`blocks-accordion__${P}--${F}`]:M})},embed:{media:S.embedOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-embed`,className:G()(`blocks-accordion__${P}`,{[`blocks-accordion__${P}--${F}`]:M})},overlay:{media:x,isOverlayAudio:!0,index:`${t}-${i}-overlay`,className:G()(`blocks-accordion__${P}`,{[`blocks-accordion__${P}--${F}`]:M})}}[j];if(!H)return null;const{className:V,...K}=H;return(0,n.jsx)("div",{className:G()(V,{"audio-on-top":this.props.blockSettings.audioPosition==="top"}),children:(0,n.jsx)("div",{className:"blocks-accordion__figure",children:(0,n.jsx)(es,{...A,...K})})},`${j}-${O}`)})})]})}getMediaContainerClasses(t,s){const o=this.props.getL10nValue(this.props.item.media)??{},r=xp(o),a=r==="image-with-audio",i=a&&!Array.isArray(o)?o?.image?.align:"left";return G()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${i}`]:a,"blocks-accordion__media-container":t,"blocks-accordion__media-container--audio-overlay":s})}}const Dq=r9(Je(e=>(0,n.jsx)(Bq,{...e}))),xp=e=>{const{image:t,embed:s,video:o,audio:r}=e;return t&&!r?"image":s&&!r?"embed":o?"video":r&&!t&&!s?"audio":t&&r?"image-with-audio":r&&s?"audio-and-embed":"image"};class Hq extends iu.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(t){super(t),this.renderDescription=this.renderDescription.bind(this);const s=this.props.activeIndex;this.state={activeIndex:s,activeTouch:!1,activeMouse:!1},this.tabs=[],this.id=ru()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=au()(this.handleControls.bind(this),100)),window.addEventListener(Ze,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=au()(this.handleControls.bind(this),50))}handleNavtoTab(t){const s=t.detail.path[t.detail.path.indexOf("items")+1]?.id,o=t.detail.path[t.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&(this.tabsHeaderEl.scrollIntoView({behavior:"smooth",block:"start"}),this.setState({activeIndex:this.props.items.findIndex(({id:r})=>r===o)},()=>{Ym(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(Ze,this.handleNavtoTab)}setActive(t){this.setState({activeIndex:t});const{blockId:s}=this.props,o=Ce.playerId;this.state.activeIndex!=t&&o&&o.includes(s.toString())&&Ce.pause(),this.props.onStep?.(this.props.items[t])}handleControls(){const{isRTL:t}=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)*(t?-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(t){const{isRTL:s}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,i=(t==="next"?s?o9():Fm():s?Fm():o9())(r,o*.8);this.tabsHeaderEl.scrollTo({left:i,behavior:"smooth"})}arrowPrevInset(t){const s=this.arrowPrevEl.getBoundingClientRect(),o=s.right-t,r=s.left-t;return o+r}focusTab(t){t.currentTarget?.scrollIntoView({behavior:"smooth",block:"nearest"})}handleTabKeyDown(t,s){const{isRTL:o}=this.props;let r=!1,a;ao(s)?(r=!0,a=o?t+1>this.tabs.length-1?0:t+1:t-1>=0?t-1:this.tabs.length-1):io(s)&&(r=!0,a=o?t-1>=0?t-1:this.tabs.length-1:t+1>this.tabs.length-1?0:t+1),r&&s.preventDefault(),a!=null&&(this.tabs[a]?.focus(),this.setActive(a))}renderHeader(t,s){const{activeIndex:o,activeTouch:r,activeMouse:a}=this.state,i=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,c=G()("blocks-tabs__header-wrap",{touch:r,mouse:a&&i});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onTouchStart:this.handleTouchStart.bind(this),children:[(0,n.jsx)("div",{className:"blocks-tabs__header",ref:l=>{this.tabsHeaderEl=l},role:yX,children:t.map(({title:l},d)=>{const h=t.length===1||d===o,m=t.length>1&&d+1===o,p=t.length>1&&d-1===o,v=G()("blocks-tabs__header-item",{"brand--color":h&&!s,"blocks-tabs__header-item--active":h,"blocks-tabs__header-item--before-active":m,"blocks-tabs__header-item--after-active":p}),C=`tab-${this.id}-${d}`,g=`tabpanel-${this.id}-${d}`;return(0,n.jsx)("button",{"aria-controls":g,"aria-selected":h,className:v,id:C,onClick:this.setActive.bind(this,d),onFocus:this.focusTab.bind(this),onKeyDown:this.handleTabKeyDown.bind(this,d),ref:x=>{this.tabs[d]=x},role:"tab",tabIndex:h?void 0:-1,type:"button",children:(0,n.jsx)(ke,{value:l})},C)})}),(0,n.jsxs)("div",{className:"blocks-tabs__controls",ref:l=>{this.tabControls=l},children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",onClick:this.scrollTabs.bind(this,"previous"),ref:l=>{this.arrowPrevEl=l},children:(0,n.jsx)(ie,{className:"blocks-tabs__arrow-icon",name:"chevron-right-solid"})}),(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",onClick:this.scrollTabs.bind(this,"next"),ref:l=>{this.arrowNextEl=l},children:(0,n.jsx)(ie,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:t}){return(0,n.jsx)(Ye,{className:"blocks-tabs__description",value:t})}renderItem(t,s,o){const{blockId:r,getL10nValue:a,labels:i,lessonId:c,renderDescription:l=this.renderDescription}=this.props,{activeIndex:d}=this.state,h=d===s,{settings:m={},enableVideoPlaybackSpeed:p}=t,v=a(t.media)??{},C=Ln(v,this.props.settings.audioPosition,!1),g=G()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":h}),x=Object.assign({},m,{disableZoom:o,fullEmbed:!0}),S=`tabpanel-${this.id}-${s}`,L=`tab-${this.id}-${s}`,b=xp(v),y=b==="image-with-audio",T=b==="audio-and-embed",k=y?v?.image?.align:"left",N=T?"embed-border":void 0;return(0,n.jsx)("div",{"aria-labelledby":L,className:g,id:S,role:LX,tabIndex:h?0:void 0,children:C.renderOrder.map((I,w)=>{if(I==="text")return(0,n.jsx)("div",{className:"blocks-tabs__description",children:l(t)},`text-${w}`);const R={blockId:r,embedClass:N,hasPadding:!1,imageMaxHeight:1e3,item:t,labels:i,lessonId:c,enableVideoPlaybackSpeed:p,opts:x,shouldPause:!h},j={audio:{media:C.audioOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-audio`,className:"blocks-tabs__audio"},image:{media:C.imageOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-image`,className:G()(`blocks-tabs__${b}`,{[`blocks-tabs__${b}--${k}`]:y})},video:{media:C.videoOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-video`,className:G()(`blocks-tabs__${b}`,{[`blocks-tabs__${b}--${k}`]:y})},embed:{media:C.embedOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-embed`,className:G()(`blocks-tabs__${b}`,{[`blocks-tabs__${b}--${k}`]:y})},overlay:{media:v,isOverlayAudio:!0,index:`${r}-${s}-overlay`,className:G()(`blocks-tabs__${b}`,{[`blocks-tabs__${b}--${k}`]:y})}}[I];if(!j)return null;const{className:O,...A}=j;return(0,n.jsx)("div",{className:G()(O,{"audio-on-top":this.props.settings.audioPosition==="top"}),children:(0,n.jsx)("div",{className:"blocks-tabs__figure",children:(0,n.jsx)(es,{...R,...A})})},`${I}-${w}`)})},S)}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a,enableVideoPlaybackSpeed:i}=this.props,{backgroundType:c,cardMode:l,entranceAnimation:d,zoomOnClick:h}=a,m=G()("blocks-tabs",{"blocks-tabs--no-animation":!d}),p=r.length>0?r.slice(0,Iq):[],v=l===Qs.TRANSPARENT&&(c===ne.ACCENT||c===ne.IMAGE),C=G()("blocks-tabs__container",{"blocks-tabs--single":p.length===1});return(0,n.jsx)(Re,{className:m,children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:C,children:(0,n.jsx)("div",{className:"blocks-tabs__row",children:(0,n.jsx)("div",{className:"blocks-tabs__col",children:(0,n.jsx)("div",{className:"blocks-tabs__wrapper",ref:g=>{this.container=g},children:(0,n.jsxs)(Ut,{children:[this.renderHeader(p,v),(0,n.jsx)("div",{className:"blocks-tabs__content",children:p.map((g,x)=>this.renderItem({...g,enableVideoPlaybackSpeed:i},x,!h))})]})})})})})})})}}const Fq=up(Je(e=>(0,n.jsx)(Hq,{...e}))),Vq=_e()(null,["payload","result"]),zq=e=>{if(e.meta?.thumbnail)return`${e.contentPrefix}/${e.meta.thumbnail}`},$q=e=>e.meta?.version,i9=e=>e.src??null,_q=e=>e.processing,Uq=Yt()(["payload","result","completion"]),Gq=_e()(!1,["payload","result","score"]),Wq=Nl()((e,t)=>{if(!t)return!1;const{majorLimit:s,minorLimit:o}=e,[r,a]=t.split("."),i=parseInt(r)===s&&Number(a)>=o;return Number(r)>s||i}),Kq={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},Qq=e=>{const t=bs()(e.split("-"));return Kq[t]},Zq=Wq({majorLimit:3,minorLimit:13}),Yq=(e,t,s,o)=>{const r=t&&Qq(s),a=r?`${e}${r}`:`${e}?rise=true`;if(o){const i=a.includes("?")?"&":"?";return`${a}${i}locale=${o}`}return a},c9="about:blank",Xq="https://example.invalid",l9=new Set(["http:","https:"]),d9=e=>{if(e)try{const t=new URL(e);return l9.has(t.protocol)?t.href:void 0}catch{return}},qq=()=>d9(Ee("CDN_USER_CONTENT_URI"))??d9(window.location.origin)??Xq,u9=e=>{try{return l9.has(new URL(e,qq()).protocol)}catch{return!1}},h9=e=>{const t=Ns(e);return typeof t=="string"?t:""},Jq=e=>{const t=h9(e);if(!t||t===c9||!u9(t))return;const s=h9(Ct(t));return s&&s!==c9&&u9(s)?s:void 0};var eJ=f(82920);class tJ extends eJ.Component{constructor(t){super(t),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:t,items:s,onStep:o}=this.props,r=bs()(s),a=t(r?.media)?.storyline??{},i=$q(a);Zq(i)||o(r)}canFullscreen(t){const{blockId:s,hasManySlBlocks:o}=this.props,{windowName:r}=t;return s===r||!o()}handleMessages(t){const{data:s}=t,{type:o}=s,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[o];r&&r(s)}handleCourseUpdate(t){const{items:s,onFinishStoryline:o,onStep:r,blockId:a}=this.props,i=bs()(s),{windowName:c}=t;if(a===c&&Uq(t)){const{score:l,success:d}=Vq(t);if(Gq(t)){const h=l.scaled*100;o?.(a,d,!0,h)}else o?.(a,!0,!1);r(i)}}handleFullscreenEnter(t){const{menuOpen:s,handleStorylineFullscreen:o}=this.props;this.canFullscreen(t)&&(s&&o(!0),this.setState({fullscreen:!0,reopenMenu:s}))}handleFullscreenExit(t){const{handleStorylineFullscreen:s}=this.props,{reopenMenu:o}=this.state;this.canFullscreen(t)&&(o&&s(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}render(){const{animateBlockEntrance:t,getL10nValue:s,initiallyVisible:o,isLesson:r,isLearner:a,isOnlyBlockInStep:i,items:c,labels:{a11yBlockStoryline:l},settings:d,takingSnapshot:h}=this.props,m=bs()(c),p=s(m?.media)?.storyline??{},{mediaWidth:v="0"}=d,C=i?{}:{display:r&&!i9(p)?"none":"block"},g=G()("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":h});return(0,n.jsx)(Re,{className:"blocks-storyline",style:C,children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:o,isLearner:a,children:(0,n.jsx)("div",{"aria-label":l,className:g,role:"group",children:h?this.renderThumbnail(p):this.renderStorylineBlock(p)})})})}renderStorylineBlock(t){return _q(t)?this.renderProcessing():i9(t)?this.renderItem(t):this.renderEmpty()}renderThumbnail(t){const s=zq(t),o=`${Ee("CDN_USER_CONTENT_URI")}/${s}`;return(0,n.jsx)("img",{alt:"Thumbnail",src:o})}renderEmpty(){const{renderEmpty:t}=this.props;return typeof t=="function"?t():null}renderItem(t){const{fullscreen:s}=this.state,{blockId:o,currentLocale:r,isLesson:a,previewType:i,settings:c}=this.props,{cornerRadius:l}=c,{src:d,meta:h,title:m}=t,{player:p}=h,v=Yq(d,a,i,r),C=Jq(v),x={paddingBottom:`${p.height/p.width*100}%`,...l!=null&&{"--corner-radius":`${Number(l)}px`}},S=G()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":s});return(0,n.jsx)("div",{className:"blocks-storyline__item",style:x,children:(0,n.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",className:S,loading:"lazy",name:o.toString(),ref:L=>{this.iframe=L},src:C,title:m})})}renderProcessing(){const{renderProcessing:t}=this.props;return typeof t=="function"?t():null}}const sJ=jE(Je(tJ));var nJ=f(27447),bp=f.n(nJ);const m9=":focus{outline: none}",oJ=":focus:not(:focus-visible){outline: none}",p9="focus-ring-style",yp=()=>document.getElementById(p9)||rJ(),rJ=()=>{const e=document.createElement("style");return e.id=p9,document.head.appendChild(e),e},aJ=0,iJ=-1,cJ=e=>{const t=yp();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=m9},0),e?.(!1)}),window.addEventListener("keydown",s=>{lJ(s,e)})},lJ=(e,t)=>{const s=e.target,o=yp();(Il(e)||Ai(e)&&!s.classList.contains("ignore-prefers"))&&(o.innerHTML="",t?.(!0))},f9=({focusVisible:e}={})=>yp().innerHTML=e?oJ:m9,dJ=e=>e?aJ:iJ,g9=({list:e,index:t})=>{t>=0&&t<is()(e)&&e[t].focus()},uJ=({list:e,currentIndex:t})=>{const s=ca()(t||0),o=s<is()(e)?s:0;return g9({list:e,index:o}),o},hJ=({list:e,currentIndex:t})=>{const s=bp()(t||is()(e));return g9({list:e,index:s}),s};var v9=f(82920);const cu=z("blocks-button"),C9=JT,mJ=({description:e})=>(0,n.jsx)(ke,{className:cu("description"),value:e}),pJ=({color:e,destination:t,editBlock:s,handleNavigate:o,isEditable:r,label:a,type:i})=>{const c=_v(),l=ze()?.externalLinksDisabled,d=ze()?.theme,h=Li(),{mode:m}=(0,je.g)(),p=cs(),v=At(),C=Oe(t),g=(0,Ar.htmlDecode)(ws(Oe(a))),x=i==="email",S=i==="exit-course",L=i==="lesson",b=i==="relative-url",y=cu("button"),T=!e||e===""||e===h,k=e??h,N={},I=Uv(h),w=T&&d?.accentContrast===ye.AUTO?ye.AUTO:I,R=p?.buttonColorContrast??w,E=p?.buttonRadius??null,j=p?.buttonWidth??null,O=zt({backgroundColor:k,contrast:R});Object.assign(N,{...!T&&{"--color-button-bg":k},...!T&&{"--color-button-text":O},...!T&&{"--color-button-border":"transparent"},...E!=null&&{"--radius-button":`${Number(E)}px`},...j!=null&&{"--width-button":`${Number(j)}rem`}});const A=l&&Zs(C),{handleMouseEnter:P,handleMouseLeave:M,handleFocus:F,handleBlur:B}=Rl(),H=v9.useId(),V=(0,u.useCallback)(()=>{if(r)s();else{if(A)return;if(S)return If()}},[s,A,r,S]),K=(0,u.useCallback)(()=>{o(C)},[C,o]);if(r||A||S){const U=(0,n.jsx)("button",{"aria-label":g,className:y,id:A?H:void 0,onBlur:A?()=>B(H):void 0,onClick:V,onFocus:A?()=>F(H):void 0,onKeyDown:F3(V),onMouseEnter:A?()=>P(H):void 0,onMouseLeave:A?()=>M(H):void 0,style:N,tabIndex:0,type:"button",children:g});return A?(0,n.jsxs)(n.Fragment,{children:[U,(0,n.jsx)(Pl,{anchorId:H})]}):U}else if(L){const U=m?`/${m}`:"",X=`/lessons/${C}${U}`,oe=C===""?"#":X;return(0,n.jsx)(ls,{"aria-label":g,className:y,onClick:K,style:N,to:oe,children:g})}else{const U=b?C:Ns(C),X=x?`mailto:${C}?subject=${c}`:U,oe=co.isIphoneSafari?"_top":"_self",Z=x?oe:"_blank",_=Z==="_blank",D=_?"noopener noreferrer nofollow":void 0,$=v?.a11yNoticeLinkNewTab||"(opens in a new tab)",Q=_?`${g} ${$}`:g;return(0,n.jsx)("a",{"aria-label":Q,className:y,href:X,rel:D,style:N,tabIndex:0,target:Z,children:g})}},x9=e=>{const{animateBlockEntrance:t,editable:s,editBlock:o=()=>{},handleNavigate:r,initiallyVisible:a,isLearner:i,items:c=[],renderDescription:l=mJ,settings:d}=e,{buttonAlignment:h="right",buttonColor:m,buttonShowDescription:p=!0,buttonStack:v,entranceAnimation:C}=d,g=cu(null,{"no-animation":!C,description:p==!0,center:h==="center",left:h==="left",right:h==="right",rounded:C9==="rounded"}),x=c?.map(({id:S,description:L,...b})=>{const y=(0,n.jsx)(pJ,{...b,color:m,editBlock:o,handleNavigate:r,isEditable:s}),T=p&&l({id:S,description:L});return(0,n.jsx)("section",{className:cu("container"),children:h==="left"&&p?(0,n.jsxs)(n.Fragment,{children:[y,T]}):(0,n.jsxs)(n.Fragment,{children:[T,y]})},S)})??null;if(v){const{paddingBottom:S,paddingTop:L}=d,b={...L!=null&&{paddingTop:`${Number(L)}rem`},...S!=null&&{paddingBottom:`${Number(S)}rem`}};return(0,n.jsx)("div",{className:g.toString(),style:b,children:x})}return(0,n.jsx)(Re,{className:g.toString(),children:(0,n.jsx)(Ve,{animateBlockEntrance:t,animateIn:"fadeIn",initiallyVisible:a,isLearner:i,children:(0,n.jsx)("div",{className:"blocks-button",children:x})})})},fJ=x9;class gJ extends v9.Component{renderButtonDelegate;constructor(t){super(t),this.renderButtonDelegate=this.renderButton.bind(this)}static get defaultProps(){return{items:[],lessonId:"",blockId:"",editBlock:()=>{}}}renderButton(t,s){const{blockId:o,editable:r,editBlock:a,handleNavigate:i,isLearner:c,lessonId:l,initiallyVisible:d}=this.props;return(0,n.jsx)(x9,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,handleNavigate:i,initiallyVisible:d,isLearner:c,items:[t],lessonId:l,settings:s,type:"right"})}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a,renderButton:i=this.renderButtonDelegate}=this.props,{entranceAnimation:c,buttonShowDescription:l=!0,buttonAlignment:d="right",buttonSpacing:h=3}=a,m=G()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!c,"blocks-button--description":l==!0,"blocks-button--center":d==="center","blocks-button--left":d==="left","blocks-button--right":d==="right","blocks-button--rounded":C9==="rounded"});return(0,n.jsx)(Re,{className:m,children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:r.map((p,v)=>{const C=v===0,g={buttonColor:a.buttonColor||this.props.color,buttonStyle:a.buttonStyle,buttonStack:!0,buttonShowDescription:l,buttonAlignment:d,...C?{}:{paddingTop:h}};return(0,n.jsx)(u.Fragment,{children:i(p,g)},p.id)})})})}}var vJ=f(92496),CJ=f.n(vJ);const lu=z("block-video");function xJ({item:e}){const t=Rt(),{media:s}=e,o=t(s)??{},{customVideo:r={},tmp:a={},video:i={}}=o,c="poster"in i?i:{...i,...r},l=a.video&&"poster"in a.video?a.video:void 0,{poster:d}=ci()?c:l||c,h=d?Ct(d):void 0;return(0,n.jsxs)("div",{className:lu("poster-container"),children:[(0,n.jsx)(ks,{alt:"Video Poster",className:lu("poster"),src:h}),(0,n.jsx)("div",{className:lu("play-overlay"),children:(0,n.jsxs)("svg",{className:lu("play-icon"),fill:"currentColor",height:"80",viewBox:"0 0 24 24",width:"80",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",fill:"rgba(0,0,0,0.6)",r:"12"}),(0,n.jsx)("polygon",{fill:"white",points:"10,8 10,16 16,12"})]})})]})}const b9=z("block-video");function bJ({mediaWidth:e}){const t=b9("item",{small:e==="0",medium:e==="1",full:e==="2"});return(0,n.jsx)("div",{className:t,children:(0,n.jsx)("div",{className:b9("placeholder")})})}const yJ=on()("partner-content-block-card__"),y9=e=>{const{backgroundColor:t,blockId:s,partnerContent:o}=e,r=ze(),{id:a,tenantId:i}=r??{},{data:c,type:l}=o,{authors:d,bookImage:h,bookTitle:m,buyLink:p,internalId:v,nbicLink:C}=c,g={blockId:s,courseId:a,partnerContentId:v,tenantId:i,contentSubtype:l};return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"More Info"}),(0,n.jsxs)("ol",{className:"partner-content-block-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)($5,{authors:d,backgroundColor:t,block:!0,bookImage:h,bookTitle:m,buyLink:p,trackingInfo:g})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)("div",{className:yJ("divider")})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(_5,{backgroundColor:t,block:!0,link:C,trackingInfo:g})})]})]})};var Lp=f(82920);const du=z("block-video"),LJ={"--ov-width":"100%","--ov-max-height":"none"},SJ={"--ov-height":"100%","--ov-max-height":"none"};function TJ({audioVideoPlayhead:e,backgroundColor:t,blockId:s,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,cornerRadius:i,currentLocale:c,dataL10nId:l,enableVideoPlaybackSpeed:d,forwardSeekRestricted:h,id:m,isLoaded:p,item:v,lessonId:C,loadMedia:g,media:x,mediaWidth:S,onLoad:L,onProgressChanged:b,poster:y,recordMediaPlayheadPosition:T,renderCaption:k,renderPostVideoSlot:N,subtitle:I,type:w,videoKey:R,videoSrc:E}){const j=S==="2",[O,A]=Lp.useState(null),P=du("item",{small:S==="0",medium:S==="1",full:j}),M=Lp.useCallback(({player:H})=>{const V=H.containerElement?.querySelector("video");if(V){const K=V.videoWidth/V.videoHeight>=1.7777777777777777;A(K?"landscape":"portrait")}L?.({player:H})},[L]),F=O==="landscape"?LJ:O==="portrait"?SJ:void 0,B=Lp.useCallback(H=>{const V=du("caption",{visible:p}).toString();return(0,n.jsx)(Ye,{className:V,value:H.caption})},[p]);return(0,n.jsxs)("div",{className:P,children:[(0,n.jsxs)("figure",{"data-l10n-id":l,children:[(0,n.jsx)("div",{className:du("aspect-container"),children:g&&(0,n.jsx)(cp,{audioVideoPlayhead:e,canAdjustPlaybackSpeed:d,canRestrictSeek:h,captions:a,cornerRadius:i,id:`${C}-${s}-${m}-${c}`,media:x,onLoad:M,poster:y,progressChanged:b,recordMediaPlayheadPosition:T,src:E,style:F,subtitle:I,type:R?"video":w},`${C}-${s}-${m}-${c}-${y||""}`)}),p&&(0,n.jsxs)(n.Fragment,{children:[N?.(),(0,n.jsx)("figcaption",{className:du("wrapper"),children:(k??B)(v)})]})]}),r&&(0,n.jsx)(y9,{backgroundColor:t,blockId:s,partnerContent:o})]})}const nt=z("video-chapters-panel");function L9({activeIndex:e,chapters:t,isGeneratingChapters:s,onCheckpointClick:o,onSeek:r,overview:a}){const i=(0,u.useRef)(null),c=At(),{hovered:l,setHovered:d}=H4(),h=(0,u.useCallback)(C=>{const g=Number(C.currentTarget.dataset.time);Number.isNaN(g)||r?.(g)},[r]),m=(0,u.useCallback)(C=>{const{markerId:g}=C.currentTarget.dataset;g!=null&&o?.(g)},[o]);(0,u.useEffect)(()=>{i.current&&i.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[e]);const p=a??t,v=a!=null;return p.length===0?s?(0,n.jsxs)("div",{className:nt("empty-state"),children:[(0,n.jsx)(i5,{className:nt("empty-state-spinner"),height:24,width:24}),(0,n.jsx)("p",{className:nt("empty-state-title"),children:"Generating chapters\u2026"})]}):(0,n.jsxs)("div",{className:nt("empty-state"),children:[(0,n.jsx)("i",{className:`fa-regular fa-clapperboard ${nt("empty-state-icon")}`}),(0,n.jsx)("p",{className:nt("empty-state-title"),children:c?.videoNoChapters||"No chapters yet"}),(0,n.jsx)("p",{className:nt("empty-state-body"),children:c?.videoNoChaptersMessage||"Add timestamps in the block settings to organize your video."})]}):(0,n.jsx)("div",{className:nt(),children:(0,n.jsx)("ul",{className:nt("list"),role:"list",children:p.map((C,g)=>(0,n.jsxs)("li",{ref:g===e?i:void 0,children:[(0,n.jsxs)("button",{"aria-current":g===e?"true":void 0,className:nt("item",{active:g===e,highlighted:ap(l,"chapter",C.time)}),"data-chapter-button":!0,"data-time":C.time,onBlur:()=>d(null),onClick:h,onFocus:()=>d({kind:"chapter",time:C.time}),onMouseEnter:()=>d({kind:"chapter",time:C.time}),onMouseLeave:()=>d(null),type:"button",children:[(0,n.jsxs)("span",{className:nt("thumbnail"),children:[(C.thumbnailStatus==null||C.thumbnailStatus==="done")&&C.thumbnail&&(0,n.jsx)("img",{alt:"",className:nt("thumbnail-img"),src:C.thumbnail}),C.thumbnailStatus==="processing"&&(0,n.jsx)("span",{"aria-hidden":"true",children:(0,n.jsx)(i5,{className:nt("thumbnail-spinner"),height:30,width:30})}),!v&&(0,n.jsx)("span",{className:nt("timestamp"),children:pc(C.time)})]}),(0,n.jsx)("span",{className:nt("info"),children:(0,n.jsx)("span",{className:nt("title"),children:C.title})}),v&&(0,n.jsx)("span",{className:nt("chapter-timestamp"),children:pc(C.time)})]}),(C.checkpoints??[]).length>0&&(0,n.jsx)("ul",{className:nt("checkpoints"),role:"list",children:C.checkpoints.map(x=>(0,n.jsx)("li",{children:(0,n.jsxs)("button",{className:nt("checkpoint",{highlighted:ap(l,"checkpoint",x.timeSeconds)}),"data-marker-id":x.markerId,onBlur:()=>d(null),onClick:m,onFocus:()=>d({kind:"checkpoint",time:x.timeSeconds}),onMouseEnter:()=>d({kind:"checkpoint",time:x.timeSeconds}),onMouseLeave:()=>d(null),type:"button",children:[(0,n.jsx)("span",{"aria-hidden":"true",className:nt("checkpoint-icon"),children:(0,n.jsx)(ie,{name:"location-dot"})}),(0,n.jsxs)("span",{className:nt("checkpoint-info"),children:[(0,n.jsx)("span",{className:nt("checkpoint-title"),children:x.title}),(0,n.jsx)("span",{className:nt("checkpoint-sub"),children:x.blockSummary})]}),(0,n.jsx)("span",{className:nt("checkpoint-timestamp"),children:x.timestamp})]})},x.markerId))})]},C.time))})})}const kJ={allowedTags:["b","i","u","c","ruby","rt","v","lang"],allowedAttributes:{c:["class"],v:["title"],lang:["lang"],ruby:[],rt:[]},disallowedTagsMode:"escape",allowedSchemes:[]};function NJ(e){return e.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 IJ(e){return e.replace(/<!--SCRIPT_START-->(.*?)<!--SCRIPT_END-->/g,"$1").replace(/<!--IFRAME_START-->(.*?)<!--IFRAME_END-->/g,"$1").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&amp;/g,"&")}function Es(e,t={}){if(!e)return"";let s;if(t.allowVTTTags!==!1){const o=NJ(e),r=e0()(o,kJ);s=IJ(r)}else s=e0()(e,{allowedTags:[],allowedAttributes:{}});return t.preserveWhitespace||(s=s.replace(/\s+/g," ").trim()),s}function Sc(){return typeof window<"u"?window.crypto.randomUUID():`cue_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}function EJ(e){return e.map(t=>({...t,stableId:t.stableId||Sc()}))}function zo(e){return e?/^(\d{2}:)?\d{2}:\d{2}\.\d{3}\s*-->\s*(\d{2}:)?\d{2}:\d{2}\.\d{3}/.test(e):!1}function S9(e){let t=e.match(/^(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/);if(t){const[,s,o,r,a]=t;return parseInt(s)*36e5+parseInt(o)*6e4+parseInt(r)*1e3+parseInt(a)}if(t=e.match(/^(\d{2}):(\d{2})\.(\d{3})$/),t){const[,s,o,r]=t;return parseInt(s)*6e4+parseInt(o)*1e3+parseInt(r)}throw new Error(`Invalid timestamp format: ${e}`)}function jJ(e,t=!1){const s=Math.round(e),o=Math.floor(s/36e5),r=Math.floor(s%36e5/6e4),a=Math.floor(s%6e4/1e3),i=s%1e3;if(t){const c=a.toString().padStart(2,"0");if(o>0){const l=r.toString().padStart(2,"0");return`${o}:${l}:${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 T9(e){const t={};if(!e)return t;const s=e.match(/\S+/g)||[];for(const o of s){const r=o.indexOf(":");if(r>0){const a=Es(o.substring(0,r),{allowVTTTags:!1}),i=Es(o.substring(r+1),{allowVTTTags:!1});t[a]=i}}return t}function wJ(e){const t=e.match(/^<v\s+/);if(t){let a=0,i=-1;for(let c=t[0].length;c<e.length;c++)if(e[c]==="<")a++;else if(e[c]===">")if(a===0){i=c;break}else a--;if(i!==-1){const c=e.substring(t[0].length,i).trim(),l=e.substring(i+1).trim();return{speaker:Es(c,{allowVTTTags:!1}),text:l}}}const s=e.match(/^<v>\s*(.*)$/s);if(s)return{text:s[1]};const o=e.match(/^\[([^\]]+)\]:\s*(.*)$/s);if(o)return{speaker:Es(o[1].trim(),{allowVTTTags:!1}),text:o[2]};const r=e.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:Es(a,{allowVTTTags:!1}),text:r[2]}}return{text:e}}function Sp(e){return Es(e,{preserveWhitespace:!1,allowVTTTags:!0})}function AJ(e){const t=Es(e.substring(6).trim(),{allowVTTTags:!1}),s=T9(t);return{id:s.id,width:s.width,lines:s.lines,regionanchor:s.regionanchor,viewportanchor:s.viewportanchor,scroll:s.scroll,...s}}function RJ(e){const t=[...new Set(e.map(s=>s.speaker).filter(Boolean))];return{cueCount:e.length,speakerCount:t.length,speakers:t,lastModified:new Date}}function*PJ(e){const t=e.cues,s=e.totalDuration;for(let o=0;o<t.length;o++){const r=t[o],a=o>0?t[o-1]:void 0,i=o<t.length-1?t[o+1]:void 0,c=a?Math.max(0,r.startTimeMs-a.endTimeMs):r.startTimeMs,l=i?Math.max(0,i.startTimeMs-r.endTimeMs):Math.max(0,s-r.endTimeMs),d=s>0?r.startTimeMs/s*100:0,h=s>0?r.endTimeMs/s*100:0,m=h-d;yield{cue:r,index:o,isFirst:o===0,isLast:o===t.length-1,previousCue:a,nextCue:i,gapBefore:c,gapAfter:l,relativeStartPercent:d,relativeEndPercent:h,relativeWidthPercent:m}}}function Y3e(e){return Array.from(PJ(e))}function MJ(e,t,s,o,r,a,i,c){const l=[],d=/<v\s+([^>]+)>([^<]*)<\/v>/g;let h,m=0;for(;(h=d.exec(e))!==null;){const[g,x,S]=h,L={stableId:Sc(),startTime:t,endTime:s,startTimeMs:o,endTimeMs:r,duration:a,text:Sp(S.trim()),settings:i,index:0,speaker:Es(x.trim(),{allowVTTTags:!1})};c&&(L.id=c),i.position&&(L.position=i.position),i.align&&(L.align=i.align),i.line&&(L.line=i.line),i.size&&(L.size=i.size),i.vertical&&(L.vertical=i.vertical),i.region&&(L.region=i.region),l.push(L),m=h.index+g.length}const p=/<v\s+([^>]+)>([^<]*)$/,C=e.substring(m).match(p);if(C){const[,g,x]=C,S={stableId:Sc(),startTime:t,endTime:s,startTimeMs:o,endTimeMs:r,duration:a,text:Sp(x.trim()),settings:i,index:0,speaker:Es(g.trim(),{allowVTTTags:!1})};c&&(S.id=c),i.position&&(S.position=i.position),i.align&&(S.align=i.align),i.line&&(S.line=i.line),i.size&&(S.size=i.size),i.vertical&&(S.vertical=i.vertical),i.region&&(S.region=i.region),l.push(S)}return l}function OJ(e,t){let s=t,o;!zo(e[s])&&zo(e[s+1])&&(o=Es(e[s],{allowVTTTags:!1}),s++);const r=e[s];if(!zo(r))return{cues:[],nextIndex:s+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:s+1};const[,i,c,l]=a,d=T9(l.trim());s++;const h=[];for(;s<e.length&&e[s]!==""&&!zo(e[s]);)h.push(e[s]),s++;const m=S9(i),p=S9(c),v=p-m,C=[];if(h.length===0){const g={stableId:Sc(),startTime:i,endTime:c,startTimeMs:m,endTimeMs:p,duration:v,text:"",settings:d,index:0};o&&(g.id=o),d.position&&(g.position=d.position),d.align&&(g.align=d.align),d.line&&(g.line=d.line),d.size&&(g.size=d.size),d.vertical&&(g.vertical=d.vertical),d.region&&(g.region=d.region),C.push(g)}else for(const g of h)if(g.includes("<v ")&&(g.includes("</v>")||g.match(/<v\s+[^>]+>[^<]*$/))){const x=MJ(g,i,c,m,p,v,d,o);C.push(...x)}else{const x=h.join(`
`),{text:S,speaker:L}=wJ(x),b={stableId:Sc(),startTime:i,endTime:c,startTimeMs:m,endTimeMs:p,duration:v,text:Sp(S),settings:d,index:0};o&&(b.id=o),L&&(b.speaker=L),d.position&&(b.position=d.position),d.align&&(b.align=d.align),d.line&&(b.line=d.line),d.size&&(b.size=d.size),d.vertical&&(b.vertical=d.vertical),d.region&&(b.region=d.region),C.push(b);break}return{cues:C,nextIndex:s}}function BJ(e){const t=e.split(`
`).map(a=>a.trim()),s=t.find(a=>a.length>0);if(!s||!s.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<t.length&&t[r]==="";)r++;if(r<t.length&&t[r].startsWith("WEBVTT"))for(o.header=Es(t[r],{allowVTTTags:!1}),r++;r<t.length&&t[r]==="";)r++;else throw new Error("Invalid WebVTT file: Missing or malformed WEBVTT header");for(;r<t.length;){const a=t[r];if(a===""){r++;continue}if(a.startsWith("NOTE")){const i=[Es(a.substring(4).trim(),{preserveWhitespace:!0,allowVTTTags:!1})];for(r++;r<t.length&&t[r]!==""&&!zo(t[r]);)i.push(Es(t[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.notes?.push(i.join(`
`));continue}if(a.startsWith("STYLE")){const i=[];for(r++;r<t.length&&t[r]!==""&&!zo(t[r]);)i.push(Es(t[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.styles?.push(i.join(`
`));continue}if(a.startsWith("REGION")){const i=AJ(a);o.regions?.push(i),r++;continue}if(zo(a)||zo(t[r+1])){const i=OJ(t,r);i.cues&&i.cues.length>0&&o.cues.push(...i.cues),r=i.nextIndex;continue}r++}return o.cues=EJ(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=RJ(o.cues),o}function X3e(e){let t="";if(e.header?t+=e.header.trim()+`
`:t+=`WEBVTT
`,t+=`
`,e.notes&&e.notes.length>0)for(const s of e.notes)t+="NOTE",s&&s.length>0&&(t+=" "+s),t+=`

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

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

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

`}return t.replace(/\s+$/,"")+`
`}const Tc=z("video-transcript-panel"),DJ=({cue:e,isCurrent:t,onSeek:s,forwardSeekRestricted:o,maxTimeReached:r})=>{const a=(0,u.useCallback)(()=>{const c=e.startTimeMs/1e3;o&&c>r||s?.(c)},[e,s,o,r]),i=(0,u.useMemo)(()=>o&&e.startTimeMs/1e3>r,[o,e.startTimeMs,r]);return(0,n.jsxs)("button",{"aria-current":t?"true":void 0,"aria-disabled":i,className:Tc("line",{current:t,disabled:i}),onClick:i?void 0:a,tabIndex:i?-1:0,type:"button",children:[(0,n.jsx)("span",{className:Tc("timestamp"),children:jJ(e.startTimeMs,!0)}),(0,n.jsx)("span",{className:Tc("text"),children:e.text})]})},k9=({captions:e,currentTime:t=0,forwardSeekRestricted:s=!1,maxTimeReached:o=0,onSeek:r})=>{const[a,i]=(0,u.useState)([]);(0,u.useEffect)(()=>{if(!e||e.length===0)return;const l=new AbortController;return(async()=>{try{const h=e[0];if(!h)return;const m=h.url||(h.key?Ct(h.key):null);if(!m)return;const p=await fetch(m,{signal:l.signal});if(!p.ok)return;const v=await p.text(),C=BJ(v);i(C.cues)}catch(h){console.error("Error loading transcript:",h)}})(),()=>{l.abort()}},[e]);const c=(0,u.useMemo)(()=>{const l=t*1e3;return a.findIndex(d=>l>=d.startTimeMs&&l<d.endTimeMs)},[a,t]);return a.length===0?null:(0,n.jsx)("div",{className:Tc(),children:(0,n.jsx)("div",{className:Tc("lines"),children:a.map((l,d)=>(0,n.jsx)(DJ,{cue:l,forwardSeekRestricted:s,isCurrent:d===c,maxTimeReached:o,onSeek:r},l.stableId))})})},Fs=z("video-side-panel");function HJ(e,t){for(let s=e.length-1;s>=0;s--)if(t>=e[s].time)return s;return-1}const Tp=4;function FJ({captions:e,chapters:t=[],cornerRadius:s,currentTime:o=0,forwardSeekRestricted:r=!1,headingLevel:a,isGeneratingChapters:i,isLearner:c=!1,maxTimeReached:l=0,onSeek:d,showChapters:h=!0,showTranscript:m=!0}){const p=At(),v=(0,u.useMemo)(()=>h&&(!c||t.length>0)||i,[t.length,i,c,h]),C=p?.videoChapters||"Chapters",g=(0,u.useMemo)(()=>{const D=[];return v&&D.push({id:"chapters",label:C}),m&&D.push({id:"transcript",label:p?.videoTranscript||"Transcript"}),D},[v,C,m,p]),[x,S]=(0,u.useState)(g[0]??null),[L,b]=(0,u.useState)(!1),[y,T]=(0,u.useState)(!1),k=(0,u.useRef)(null),N=(0,u.useRef)(null),I=(0,u.useRef)(null),w=(0,u.useRef)(!1),R=(0,u.useId)(),E=(0,u.useMemo)(()=>g.find(D=>D.id===x?.id)??g[0]??null,[g,x]),j=(0,u.useMemo)(()=>g.findIndex(D=>D.id===E?.id),[g,E]),O=(0,u.useCallback)(D=>{const $=D.currentTarget.dataset.tabId,Q=g.find(Y=>Y.id===$);Q&&S(Q)},[g]),A=(0,u.useCallback)(D=>{const $=g.length-1;let Q=null;ao(D)?Q=j===0?$:j-1:io(D)?Q=j===$?0:j+1:H3(D)?Q=0:D3(D)&&(Q=$),Q!==null&&(D.preventDefault(),S(g[Q]),k.current?.querySelectorAll('[role="tab"]')[Q]?.focus())},[j,g]);(0,u.useEffect)(()=>{g.length>0&&!g.some(D=>D.id===x?.id)&&S(g[0])},[g,x]);const P=kt(768),M=(0,u.useCallback)(()=>b(!0),[]),F=(0,u.useCallback)(()=>b(!1),[]),B=(0,u.useCallback)(()=>T(D=>!D),[]);(0,u.useEffect)(()=>{let D=0;return y&&N.current?(w.current=!0,D=requestAnimationFrame(()=>{N.current?.querySelectorAll("[data-chapter-button]")?.[Tp]?.focus()})):!y&&w.current&&(D=requestAnimationFrame(()=>{I.current?.focus()})),()=>cancelAnimationFrame(D)},[y]);const H=(0,u.useMemo)(()=>HJ(t,o),[t,o]),V=y?t:t.slice(0,Tp),K=t.length>Tp,U=a??2,X=`h${U}`,oe=s!=null?{"--side-panel-corner-radius":`${Number(s)}px`}:{};if(P)return(0,n.jsxs)("div",{className:Fs("mobile"),style:oe,children:[v&&(0,n.jsxs)("div",{className:Fs("mobile-section"),ref:N,children:[(0,n.jsx)(X,{className:Fs("mobile-heading",{[`h${U}`]:!0}),children:C}),(0,n.jsx)(L9,{activeIndex:H,chapters:V,isGeneratingChapters:i,onSeek:d}),K&&(0,n.jsxs)("button",{"aria-expanded":y,className:Fs("mobile-expand"),onClick:B,ref:I,type:"button",children:[y?p?.videoShowLessChapters||"Show less chapters":p?.videoShowMoreChapters||"Show more chapters",(0,n.jsx)("i",{"aria-hidden":"true",className:`fa-solid fa-chevron-${y?"up":"down"}`})]})]}),m&&(0,n.jsxs)("div",{className:Fs("mobile-section"),children:[(0,n.jsx)(X,{className:Fs("mobile-heading",{[`h${U}`]:!0}),children:p?.videoTranscript||"Transcript"}),(0,n.jsxs)("button",{className:Fs("view-transcript-button"),onClick:M,type:"button",children:[(0,n.jsx)(ie,{name:"list"}),p?.videoViewTranscript||"View transcript"]}),L&&(0,n.jsx)(wd,{className:Fs("video-transcript-modal"),heading:p?.videoTranscript||"Transcript",onClose:F,children:(0,n.jsx)(k9,{captions:e,currentTime:o,forwardSeekRestricted:r,maxTimeReached:l,onSeek:d})})]})]});const Z=D=>{const $={className:Fs("content"),hidden:E?.id!==D};return g.length<=1?$:{...$,"aria-labelledby":`tab-${D}-${R}`,id:`tabpanel-${D}-${R}`,role:"tabpanel",tabIndex:0}},_=g.length===1?(0,n.jsx)(X,{className:Fs("title",{[`h${U}`]:!0}),children:g[0].label}):(0,n.jsx)("div",{"aria-label":p?.a11yBlockVideoSidePanelTablist,className:Fs("tabs"),ref:k,role:"tablist",children:g.map(D=>(0,n.jsx)("button",{"aria-controls":`tabpanel-${D.id}-${R}`,"aria-selected":E?.id===D.id,className:Fs("tab",{active:E?.id===D.id}),"data-tab-id":D.id,id:`tab-${D.id}-${R}`,onClick:O,onKeyDown:A,role:"tab",tabIndex:E?.id===D.id?0:-1,type:"button",children:D.label},D.id))});return(0,n.jsxs)("div",{className:Fs(),style:oe,children:[_,v&&(0,n.jsx)("div",{...Z("chapters"),children:(0,n.jsx)(L9,{activeIndex:H,chapters:t,isGeneratingChapters:i,onSeek:d})}),m&&(0,n.jsx)("div",{...Z("transcript"),children:(0,n.jsx)(k9,{captions:e,currentTime:o,forwardSeekRestricted:r,maxTimeReached:l,onSeek:d})})]})}const N9=(0,u.createContext)(null),VJ=N9.Provider;function zJ(){return(0,u.useContext)(N9)}var $J,I9,E9,_J;function q3e(){let e=null;const t=new Set;return{registerPlayer(s){e=s},onTimeUpdate(){t.forEach(s=>{s()})},getPosition(){return e?.getProgress().currentTime??0},subscribe(s){return t.add(s),()=>{t.delete(s)}},seekToTime(s){e?.seekToTime(s)}}}const UJ=Object.freeze({registerPlayer(){},onTimeUpdate(){},getPosition:()=>0,subscribe:()=>()=>{},seekToTime(){}}),j9=(0,u.createContext)(UJ),GJ=j9.Provider;function uu(){return(0,u.useContext)(j9)}function J3e(){const e=uu(),t=I9(e);return t.current=e,E9(()=>()=>t.current.getPosition(),[])}function e6e(e){const t=uu();return _J(t.subscribe,()=>e(t.getPosition()),()=>e(0))}function t6e(){const e=uu(),t=I9(e);return t.current=e,E9(()=>s=>t.current.seekToTime(s),[])}function s6e({store:e,children:t}){return $J(GJ,{value:e,children:t})}var WJ,KJ;const hu=[];function n6e(){let e=hu;const t=new Set;return{setChapters(s){s!==e&&(e=s,t.forEach(o=>{o()}))},getChapters(){return e},subscribe(s){return t.add(s),()=>{t.delete(s)}}}}const QJ=Object.freeze({setChapters(){},getChapters:()=>hu,subscribe:()=>()=>{}}),w9=(0,u.createContext)(QJ),ZJ=w9.Provider;function A9(){return(0,u.useContext)(w9)}function o6e(){const e=A9();return KJ(e.subscribe,e.getChapters,()=>hu)}function r6e({store:e,children:t}){return WJ(ZJ,{value:e,children:t})}const kc=z("block-video");function YJ({audioVideoPlayhead:e,backgroundColor:t,blockId:s,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,chapters:i,cornerRadius:c,currentLocale:l,dataL10nId:d,enableVideoPlaybackSpeed:h,forwardSeekRestricted:m,headingLevel:p,id:v,isGeneratingChapters:C,isLearner:g,isLoaded:x,item:S,lessonId:L,loadMedia:b,media:y,mediaWidth:T,onLoad:k,onProgressChanged:N,poster:I,recordMediaPlayheadPosition:w,renderCaption:R,renderPostVideoSlot:E,showChapters:j,subtitle:O,transcriptEnabled:A,type:P,videoKey:M,videoSrc:F,shouldPause:B}){const H=zJ(),V=uu(),K=A9(),[U,X]=(0,u.useState)(0),[oe,Z]=(0,u.useState)(0),_=(0,u.useRef)(null),D=(0,u.useCallback)(W=>{X(W.currentTime),Z(de=>Math.max(de,W.currentTime)),V.onTimeUpdate(W.currentTime),N?.(W)},[N,V]),$=(0,u.useCallback)(W=>{const de=kc("caption",{visible:x}).toString();return(0,n.jsx)(Ye,{className:de,value:W.caption})},[x]),Q=(0,u.useCallback)(W=>{_.current?.seekToTime(W)},[_]),Y=H?.setVideoPlayerRef,q=(0,u.useCallback)(W=>{_.current=W,Y?.(W),V.registerPlayer(W)},[Y,V]),J=A&&a&&a.length>0||j&&(!g||i&&i.length>0)||C;(0,u.useEffect)(()=>{K.setChapters(i??hu)},[K,i]);const ee=kc("item",{small:T==="0",medium:T==="1",full:T==="2","video-training":!0,"no-side-panel":!J}),te=H?.wrapVideo,se=b?(0,n.jsx)(cp,{audioVideoPlayhead:e,canAdjustPlaybackSpeed:h,canRestrictSeek:m,captions:a,chapters:i,checkpointTimesSeconds:H?.checkpointMarkerTimes,cornerRadius:c,id:`${L}-${s}-${v}-${l}`,media:y,onCheckpointReached:H?.onCheckpointReached,onLoad:k,poster:I,progressChanged:D,recordMediaPlayheadPosition:w,ref:q,shouldPause:B,src:F,subtitle:O,type:M?"video":P},`${L}-${s}-${v}-${l}-${I||""}`):null;return(0,n.jsxs)("div",{className:ee,children:[(0,n.jsxs)("figure",{"data-l10n-id":d,children:[(0,n.jsx)("div",{className:kc("figure-container"),children:te?te(se):se}),J&&(0,n.jsx)("div",{className:kc("side-panel-wrapper"),children:(0,n.jsx)(FJ,{captions:a,chapters:i,cornerRadius:c,currentTime:U,forwardSeekRestricted:m||!1,headingLevel:p,isGeneratingChapters:C,isLearner:g,maxTimeReached:oe,onSeek:Q,showChapters:j,showTranscript:A})}),x&&(0,n.jsxs)(n.Fragment,{children:[E?.(),(0,n.jsx)("figcaption",{className:kc("wrapper"),children:(R??$)(S)})]})]}),r&&(0,n.jsx)(y9,{backgroundColor:t,blockId:s,partnerContent:o})]})}var kp=f(82920);function XJ({backgroundColor:e,blockId:t,cornerRadius:s,enableVideoPlaybackSpeed:o,forwardSeekRestricted:r,headingLevel:a,isGeneratingChapters:i,isLearner:c,item:l,lessonId:d,loadMedia:h,mediaWidth:m,onStep:p,partnerContent:v,audioVideoPlayhead:C,recordMediaPlayheadPosition:g,renderCaption:x,renderPostVideoSlot:S,showChapters:L,transcriptEnabled:b,type:y,isVideoTraining:T,shouldPause:k}){const[N,I]=kp.useState(!1),{currentLocale:w}=ct(),R=Rt(),{id:E,media:j,partnerContentId:O}=l,A=R(j)??{},{customVideo:P={},tmp:M={},video:F={}}=A,B="poster"in F?F:{...F,...P},H=M.video&&"poster"in M.video?M.video:void 0,{captions:V,chapters:K,key:U,poster:X,src:oe,subtitle:Z}=ci()?B:H||B,_=L?K??[]:[],D=U||oe,Q=(Array.isArray(v)?v:v?.content)?.find(se=>O!=null&&Jn(se)&&"id"in se&&se.id===O),Y=Q!=null&&Jn(Q),q=Jn(j)&&"l10nId"in j?j.l10nId:void 0,J=kp.useCallback(()=>{I(!0)},[]),ee=kp.useCallback(({percentComplete:se})=>{se>=100&&p?.({id:E})},[E,p]);if(!D)return(0,n.jsx)(bJ,{mediaWidth:m});const te={audioVideoPlayhead:C,backgroundColor:e,blockId:t,blockPartnerContent:Q,blockPartnerContentExists:Y,captions:V,chapters:_,cornerRadius:s,currentLocale:w,dataL10nId:q,enableVideoPlaybackSpeed:o,forwardSeekRestricted:r,id:E,isLoaded:N,item:l,lessonId:d,loadMedia:h,media:j,mediaWidth:m,onLoad:J,onProgressChanged:ee,poster:X,recordMediaPlayheadPosition:g,renderCaption:x,renderPostVideoSlot:S,subtitle:Z,type:y,videoKey:U,videoSrc:D,shouldPause:k};return T?(0,n.jsx)(YJ,{...te,chapters:_,headingLevel:a,isGeneratingChapters:i,isLearner:c,showChapters:L,transcriptEnabled:b},U):(0,n.jsx)(TJ,{...te},U)}const qJ=z("block-video");function Np({animateBlockEntrance:e,blockId:t,enableVideoPlaybackSpeed:s,initiallyVisible:o,isDragPreview:r,isLearner:a,isSidebarPreview:i,items:c,lessonId:l,loadMedia:d,onStep:h,partnerContent:m,progress:p,recordMediaPlayheadPosition:v,renderCaption:C,renderPostVideoSlot:g,settings:x,takingSnapshot:S,type:L,isGeneratingChapters:b,isVideoTraining:y,shouldPause:T}){const k=c?.[0];if(k==null)return null;const N=qJ({"no-animation":!x?.entranceAnimation}).toString(),I=y?"2":"1",w=S||r||i;return(0,n.jsx)(Re,{className:N,children:(0,n.jsx)(Ve,{animateBlockEntrance:e,initiallyVisible:o,isLearner:a,children:w?(0,n.jsx)(xJ,{item:k}):(0,n.jsx)(PY,{children:(0,n.jsx)(XJ,{audioVideoPlayhead:p?.items?.[t]?.items?.[k.id]?.audioVideoPlayhead??0,backgroundColor:x?.backgroundColor,blockId:t,cornerRadius:x?.cornerRadius,enableVideoPlaybackSpeed:s,forwardSeekRestricted:x?.forwardSeekRestricted&&!p?.isComplete,headingLevel:x?.headingLevel,isGeneratingChapters:b,isLearner:a,isVideoTraining:y,item:k,lessonId:l,loadMedia:d,mediaWidth:x?.mediaWidth??I,onStep:h,partnerContent:m,recordMediaPlayheadPosition:v,renderCaption:C,renderPostVideoSlot:g,shouldPause:T,showChapters:!!x?.showChapters,transcriptEnabled:!!x?.showTranscript,type:L})})})})}var Ip=f(82920);const mu=z("block-audio"),Ep=z("block-embed"),Vs=z("block-attachment");class JJ extends Ip.Component{renderCaptionDelegate;constructor(t){super(t),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:t}){const{loaded:s}=this.state,o=mu("caption",{hidden:!s}).toString();return(0,n.jsx)(Ye,{className:o,value:t})}onLoad(){this.setState({loaded:!0})}renderItem(t){const{blockId:s,getL10nValue:o,labels:r,lessonId:a,loadMedia:i,progress:c,recordMediaPlayheadPosition:l,renderCaption:d=this.renderCaptionDelegate,settings:h}=this.props,m="forwardSeekRestricted"in h?h.forwardSeekRestricted:!1,p=t.media,v=o(p)??{},{id:C}=t,g=v?.tmp?.audio?.key||v?.audio?.key,x=`${a}-${s}-${C}`,S=_e()(0,["items",s,"items",C,"audioVideoPlayhead"],c),L=lp({lessonId:a,refs:`items:${s}/items:${C}`});return(0,n.jsxs)("div",{className:mu("item"),children:[i&&(0,n.jsx)(P4,{audioVideoPlayhead:S,canRestrictSeek:!!m&&!c?.isComplete,id:x,item:t,labels:r,mediaSrc:g,onAIUploadFinish:this.props.onAIUploadFinish,onEnd:this.handleOnEnd.bind(this,C),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,t),onTranscriptClose:this.props.closeTranscript,onTranscriptUpdate:this.props.onTranscriptUpdate??void 0,recordMediaPlayheadPosition:l,refs:`items:${s}/items:${C}`,transcriptMedia:p,uploadId:L},x),d(t)]},C)}handleOnEnd(t){this.props.onStep({id:t})}onTranscriptClick(t){const{blockId:s}=this.props;return this.props.openTranscript?.({blockId:s,item:t,refs:`items:${s}/items:${t.id}`})}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:i}=a,c=mu({"no-animation":!i}).toString(),l=r.length>0?r.slice(0,1):[];return(0,n.jsx)(Re,{className:c,children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:mu("wrapper"),children:l.map(d=>this.renderItem(d))})})})}}const eee=PC(Je(JJ));class tee extends Ip.Component{static get defaultProps(){return{items:[],editable:!1,lessonId:"",blockId:"",settings:{}}}renderItem(t,s){const{id:o,settings:r={}}=t,a=this.props.getL10nValue(t.media)??{},i="embed"in a?a.embed:void 0,{loadMedia:c,labels:l,settings:d}=this.props,{showMetaData:h}=r,{cardMode:m,showBorder:p=!0}=d,v=Ep("item",{border:p}).toString();return(0,n.jsx)(Ut,{className:v,disabled:!p&&m==Qs.TRANSPARENT,tag:"section",children:c&&(0,n.jsx)(D4,{data:i,id:`${s}-${o}`,isLesson:!0,labels:l,showMetaData:h})},o)}render(){const{animateBlockEntrance:t,blockId:s,getL10nValue:o,initiallyVisible:r,isLearner:a,items:i,settings:c}=this.props,{entranceAnimation:l,mediaWidth:d="0"}=c,h=o(i?.[0]?.media);if(!h)return null;const m=yY(h)!=="link",p=Ep({"no-animation":!l}).toString(),v=Ep("wrapper",{medium:m&&d==="1",full:m&&d==="2"}),C=i.length>0?i.slice(0,1):[];return(0,n.jsx)(Re,{className:p,children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:v,children:C.map(g=>this.renderItem(g,s))})})})}}const see=Je(D1()(tee));class nee extends Ip.Component{get attachment(){const t=this.props.items[0].media;return this.props.getL10nValue(t)?.attachment??{}}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o}=this.props;return(0,n.jsx)(Re,{children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:"block-text--onecol",children:(0,n.jsx)("div",{className:"block-text__container",children:(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{className:"block-text__col",children:this.renderAttachment(this.attachment)})})})})})})}renderAttachment(t){return t.key?this.renderDownload(t):this.renderNoFile()}renderDownload({key:t,mimeType:s,originalUrl:o,size:r}){const{attachmentId:a,blockId:i,externalLinksDisabled:c,onLinkBlur:l,onLinkFocus:d,onLinkMouseEnter:h,onLinkMouseLeave:m}=this.props,p=Ct(t),v=c?"":void 0,C=c?void 0:p,g=c?void 0:"noopener noreferrer nofollow",x=c?"button":void 0,S=c?0:void 0,L=c?void 0:"_blank",b=Vs({}).mix("brandHover").toString(),y=Vs("info");return(0,n.jsxs)(Ut,{"aria-labelledby":`attachment-name-${i} attachment-icon-${i}`,className:b,"data-external":v,download:o,href:C,id:c?a:void 0,onBlur:c?()=>l?.(a):void 0,onFocus:c?()=>d?.(a):void 0,onMouseEnter:c?()=>h?.(a):void 0,onMouseLeave:c?()=>m?.(a):void 0,rel:g,role:x,tabIndex:S,tag:"a",target:L,children:[(0,n.jsxs)("div",{className:Vs("main"),children:[(0,n.jsx)("div",{className:Vs("icon"),id:`attachment-icon-${i}`,children:this.fileIcon(s)}),(0,n.jsxs)("div",{className:y,children:[(0,n.jsx)(ke,{className:Vs("title").toString(),id:`attachment-name-${i}`,value:o}),(0,n.jsx)("div",{className:Vs("size").toString(),children:CJ()(r,{round:1})})]})]}),(0,n.jsx)("div",{className:Vs("rest"),children:(0,n.jsx)(qH,{className:"brandHover__target--fill"})})]})}renderNoFile(){const t=Vs({none:!0}).toString(),s=Vs("info");return(0,n.jsx)(Ut,{className:t,children:(0,n.jsxs)("div",{className:Vs("main"),children:[(0,n.jsx)("div",{className:Vs("icon"),children:(0,n.jsx)(W6,{"aria-label":"File"})}),(0,n.jsxs)("div",{className:s,children:[(0,n.jsx)("div",{className:Vs("title").toString(),children:"File Attachment Block"}),(0,n.jsx)("div",{className:Vs("size").toString(),children:"No file added"})]})]})})}fileIcon(t){const{labels:s}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,i=/powerpoint|presentation/,c=/rtf|richtext/,l=/zip/;return o.test(t)?(0,n.jsx)(jF,{"aria-label":s?.a11yExcelIcon}):r.test(t)?(0,n.jsx)(NF,{"aria-label":s?.a11yPDFIcon}):a.test(t)?(0,n.jsx)(SF,{"aria-label":s?.a11yWordIcon}):i.test(t)?(0,n.jsx)(IF,{"aria-label":s?.a11yPPTIcon}):c.test(t)?(0,n.jsx)(EF,{"aria-label":s?.a11yRTFIcon}):l.test(t)?(0,n.jsx)(wF,{"aria-label":s?.a11yZipIcon}):(0,n.jsx)(W6,{"aria-label":s?.a11yFileIcon})}}function oee(e){const t=D1()(e),s=Je(t),o=hD(s);function r(a){const i=ze(),c=a.externalLinksDisabled??(i&&"externalLinksDisabled"in i?i.externalLinksDisabled:!1);return(0,n.jsx)(o,{...a,externalLinksDisabled:c})}return r}const ree=oee(nee),Sn=z("block-step"),aee=e=>{const{blockId:t,disableZoom:s,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:l,mediaType:d,audioPosition:h}=e,{settings:m}=a,p=Oe(a.media)??{},v=d==="audio"&&p.audio,C=d==="embed"&&p.embed,g=d==="image"&&p.image,x=d==="video"&&p.video;if(!v&&!C&&!g&&!x&&!(d==="image-with-audio"&&r))return;const L=p.embed?Or(p.embed):void 0,b=!!p.image,y=!!p.audio,T=b?p.image.align:"center",k=Sn("media",{audio:y&&!r,"audio-and-embed":!!(p.audio&&p.embed),"image-with-audio":r,[`image-with-audio-${T}`]:r&&!!T,"audio-on-bottom":y&&!r&&h==="bottom",linkEmbed:L==="link",videoEmbed:L==="video",visual:!r&&b||!at()(p.video)}),N=m||{};return(0,n.jsx)("div",{className:k,children:(0,n.jsx)(es,{blockId:t,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:l,media:p,mediaType:r?void 0:d,opts:{disableZoom:s,...N},shouldPause:!0})})},iee=e=>{const{headingLevel:t,innerRef:s,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c,renderTitle:l,renderDescription:d,style:h}=e,{id:m}=o,p=Sn({active:r}),v=!!o.step,C=!!o.title,g=t||2,x=`h${g}`,S=`h${g+1}`,L=Oe(o.media),b=Ln(L,i,!0,"timeline"),y=Oe(o.description),T=(0,u.useMemo)(()=>!!Object.keys(L??{}).length||!!J1(y).value?.length,[L,y]),k=()=>{const N={audio:{item:{...o,media:b.audioOnlyMedia||L},mediaType:"audio"},image:{item:{...o,media:b.imageOnlyMedia||L},mediaType:"image"},video:{item:{...o,media:b.videoOnlyMedia||L},mediaType:"video"},embed:{item:{...o,media:b.embedOnlyMedia||L},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,n.jsx)(n.Fragment,{children:b.renderOrder.map((I,w)=>{if(I==="text")return d?(0,n.jsx)("div",{className:Sn("description"),children:d(o)},`text-${w}`):(0,n.jsx)(ke,{className:Sn("description"),value:o.description},`text-${w}`);if(!L||!a)return null;const R=N[I];return R?(0,u.createElement)(aee,{...e,...R,key:`${I}-${w}`}):null})})};return(0,n.jsx)(Re,{children:(0,n.jsx)("div",{className:p,"data-id":m,ref:s,style:h,children:(0,n.jsx)(Ut,{className:Sn("body"),onFocus:c,children:(0,n.jsxs)("div",{className:Sn("main-wrap"),children:[(0,n.jsxs)("div",{className:Sn("heading",{solo:!T}),children:[v&&(0,n.jsx)("div",{className:Sn("step"),children:(0,n.jsx)(x,{children:(0,n.jsx)(Ls,{value:o.step})})}),(C||l)&&(0,n.jsx)("div",{className:Sn("title"),children:l?l(o):(0,n.jsx)(S,{children:(0,n.jsx)(ke,{value:o.title})})})]}),(0,n.jsx)("div",{className:Sn("main"),children:k()})]})})})})},cee=e=>{const{id:t,settings:s,items:o,onEnter:r,enableVideoPlaybackSpeed:a,initiallyVisible:i,isLearner:c,labels:l,lessonId:d,renderTitle:h,renderDescription:m}=e,p=o[0],v=s.audioPosition,C=!(s.zoomOnClick??!0),g=s.headingLevel,x=(0,u.useCallback)((L,b)=>{r?.({id:t,payload:{activeIndex:L,itemId:b}})},[t,r]),S=(0,n.jsx)(iee,{audioPosition:v,blockId:t,disableZoom:C,enableVideoPlaybackSpeed:a,headingLevel:g,isActive:!0,item:p,labels:l,lessonId:d,lessonNumber:t,loadMedia:!0,onFocus:x,renderDescription:m,renderTitle:h,style:{"--block-step-padding-top":"1rem","--block-step-padding-bottom":"1rem","--block-step-corner-radius":s.cornerRadius!=null?`${s.cornerRadius}px`:"var(--arc-border-radius-lg)"}});return c?(0,n.jsx)(Ve,{animateBlockEntrance:!0,className:Sn("animate").toString(),initiallyVisible:i,isLearner:!0,children:S}):S},R9=z("continue-btn"),pu=({children:e,className:t,href:s,onClick:o,text:r,testId:a="continue-btn"})=>{const i=t?`${R9()} ${t}`:R9();return s?(0,n.jsx)(ls,{className:i,"data-continue-btn":"","data-testid":a,onClick:o,to:s,children:e??(0,n.jsx)(Ls,{value:r})}):(0,n.jsx)("button",{className:i,"data-continue-btn":"","data-testid":a,onClick:o,type:"button",children:e??(0,n.jsx)(ke,{value:r})})},P9=({bgType:e,text:t,iconType:s="locked"})=>{const o=G()("continue-hint",{"continue-hint--bg-transparent":e==="transparent"});return(0,n.jsxs)("div",{className:o,"data-continue-btn":"",children:[s==="locked"&&(0,n.jsx)(ie,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,n.jsx)("div",{className:"continue-hint__content",children:(0,n.jsx)(Ls,{value:t})})]})},jp=z("block-text");function lee({blockId:e,animateBlockEntrance:t,canContinue:s=!1,isComplete:o,isLearner:r,isLastBlock:a=!1,isOnlyBlockInStep:i,items:c=[],labels:l,onStep:d=()=>{},skipContinue:h=!1,initiallyVisible:m}){const v=(0,u.useRef)(null),C=(0,Be.A)(o),[g,x]=u.useState(!1),{announcePolite:S}=An(),[L,b]=u.useState(!1),y=cs(),T=ze(),k=Li(),N=Uv(k),I=Mo(),w=c[0],{id:R}=w,E=w.title??I?.label??Xe.blockContinueLabel,j=w.type??I?.completionType??Xe.blockContinueCompletionType,O=w.completeHint??I?.completeHint??Xe.blockContinueCompleteHint,A=!j||(h?L:s||i&&o),P=h||!o||i,M=y?.continueColor||k,F=!M||M===k,B=F&&T?.theme?.accentContrast===ye.AUTO?ye.AUTO:N,H=y?.continueColorContrast??B,V=y?.continueRadius??null,K=y?.continueWidth??76,U=zt({backgroundColor:M,contrast:H}),X={...!F&&{"--color-button-bg":M},...!F&&{"--color-button-text":U},...!F&&{"--color-button-border":"transparent"},...V!=null&&{"--radius-button":`${Number(V)}px`},...K!=null&&{maxWidth:`${Number(K)}rem`}},oe=(0,u.useCallback)(()=>{d({id:R}),x(!0),a?setTimeout(()=>{const Z=document.querySelector("[data-lesson-id]"),_=document.querySelector("main"),D=document.querySelector("h1.lesson-header__title, .lesson-header__title h1"),$=Z?.querySelector('.block-wrapper, [role="region"], .lesson-content > *:first-child');let Q=null;D?Q=D:$&&$!==v.current?.parentElement?Q=$:Z?Q=Z:_&&(Q=_),Q&&(Q.setAttribute("tabindex","-1"),Q.focus({preventScroll:!0}))},200):setTimeout(()=>{const Z=v.current;Z&&Z.focus()},100)},[R,d,a]);return(0,u.useEffect)(()=>{!C&&o&&(a||setTimeout(()=>{S?.(l?.a11yStatusAdditionalContent)},300))},[S,o,l,C,a]),(0,u.useEffect)(()=>{const Z=_=>{const{path:D}=_.detail,{blockId:$,buttonId:Q}=Ta(_.detail.path,["block","button"]);if(e==$&&Q===w.id){const Y=D.at(-1);Y==="title"?b(!0):Y==="completeHint"&&b(!1)}};return window.addEventListener(Ze,Z),()=>{window.removeEventListener(Ze,Z)}},[e,w.id]),(0,n.jsxs)(n.Fragment,{children:[P&&(0,n.jsx)(Re,{children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:m,isLearner:r,children:(0,n.jsx)("div",{className:jp("container"),children:(0,n.jsx)("div",{className:jp("row"),children:(0,n.jsxs)("div",{className:jp("continue"),style:X,children:[A&&(0,n.jsx)(pu,{onClick:oe,text:E}),!A&&(0,n.jsx)(P9,{text:O})]})})})})}),g&&(0,n.jsx)("div",{"aria-live":"off",className:"visually-hidden-always",ref:v,role:"status",tabIndex:-1,children:l?.a11yStatusContinued||"Continued"})]})}var dee=f(70318),fu=f.n(dee);const uee=z("flashcard");class hee 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:t,handleFlip:s,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:i,backDescription:c,backMedia:l,backType:d,block:h,forceFlipped:m,frontDescription:p,frontMedia:v,frontType:C,id:g,index:x,isHidden:S,labels:L,lessonId:b,prefersKeyboardNavigation:y,settingShowHint:T,size:k,type:N,wrapElement:I,wrapRole:w},state:{areSidesReady:R,flipped:E,isMounted:j}}=this,O=m||E,A=uee({large:k==="large",small:k==="small",flipped:O,stack:N==="stack"});return(0,n.jsxs)(I,{"aria-hidden":!i,className:A,onClick:s,onTouchEnd:r,ref:t,role:w,children:[(0,n.jsx)(Ut,{activeIndex:a,allowTabNavigation:i,blockId:h?.id,blockType:N,description:p,index:x,isActiveSide:!O,isAriaHidden:O&&j&&R,isFlipped:O,isHidden:S,itemId:g,labels:L,lessonId:b,media:v,onFlip:s,onReady:o,prefersKeyboardNavigation:y,settingShowHint:T,side:"front",size:k,tag:O9,type:C}),(0,n.jsx)(Ut,{activeIndex:a,allowTabNavigation:i,blockId:h?.id,blockType:N,description:c,index:x,isActiveSide:O,isAriaHidden:!O&&j&&R,isFlipped:O,isHidden:S,itemId:g,labels:L,lessonId:b,media:l,onFlip:s,onReady:o,prefersKeyboardNavigation:y,settingShowHint:T,side:"back",size:k,tag:mee,type:d})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(Ze,this.handleNavEvent)}componentDidUpdate(t,s){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:i}}=this;!s.hasFlippedOnce&&i&&a({id:r}),t.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener(Ze,this.handleNavEvent)}handleNavEvent=t=>{const{path:s}=t.detail,{cardId:o}=Ta(s,["block","card"]);if(o===this.props.id){let r=!1;s.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!Ym(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=t=>{const{block:s,index:o}=this.props,r=window.getSelection(),a=r.toString()&&this.cardRef.current?.contains(r.anchorNode);if(t.detail>1&&r.empty(),t&&t.target.closest("a")||a)return;const i=!this.state.flipped;this.setState({areSidesReady:!1,flipped:i,hasFlippedOnce:!0});const c=i?"back":"front",l=s?.items?.[o],d=l?.[c]?.media,h=`items:${s?.id}/items:${l?.id}/${c}`;this.props.onTranscriptUpdate?.({audioPlayerId:yn({refs:h}),transcriptMedia:d}),this.props.onFlip?.(this.props.index,i)};handleTouchEnd=t=>{t.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const M9=Sl(Je(hee)),Wa=z("flashcard-side"),gu=z("flashcard-side-flip");class Dr extends u.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:Dr.descriptionActionTypes.INITIAL,isAtLongOverflowBottom:!1,isLong:!1,isLongOverflow:!1,isTooltipVisible:!1,scrollbarWidthOffset:void 0};id;constructor(t){super(t),this.handleMouseEnterAudio=this.handleMouseEnterAudio.bind(this),this.handleMouseLeaveAudio=this.handleMouseLeaveAudio.bind(this),this.id=(0,u0.uniqueId)("flashcard-side")}state=Dr.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:t,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${t}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="0.6")};handleMouseLeaveAudio=()=>{const{itemId:t,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${t}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="1")};render(){const{props:{activeIndex:t,allowTabNavigation:s,block:o,className:r,description:a,getL10nValue:i,index:c,itemId:l,media:d,isActiveSide:h,isAriaHidden:m,isFlipped:p,labels:v,lessonId:C,onFlip:g,prefersKeyboardNavigation:x,settingShowHint:S,side:L,size:b,style:y,type:T},refDescription:k,refDescriptionBottom:N,refSide:I,state:{isAtLongOverflowBottom:w,isLong:R,isLongOverflow:E,isTooltipVisible:j,scrollbarWidthOffset:O}}=this,A=L==="front",P=L==="back",M=b==="small",F=b==="large",B=T==="description",H=T==="fullimage",V=T==="image",K=A?v?.a11yBlockFlashcardFront:v?.a11yBlockFlashcardBack,U=`items:${o?.id}/items:${l}/${A?"front":"back"}`,X=Wa({back:P,flipped:p,front:A,fullimage:H}).mix(r),{image:oe,audio:Z}=i(d)??{},_=Wa("content",{small:M,large:F,front:A,fullimage:H,image:V,"long-overflow":E,"long-overflow-bottom":w,"has-audio":!!Z}),D=gu({"audio-expansion":!0}),$=gu("btn",{"visually-hidden":!S,"prefers-keyboard":x,round:!0}),Q=gu("icon"),Y=gu("tooltip",{visible:j}),q=Wa("img",{small:M,large:F,centered:V,full:H}),J=Wa("description",{"has-audio":!!Z,long:R&&!E,"long-overflow":E,short:!R,large:F}),ee=Wa("description-bottom"),te=O==null?void 0:{right:O},se=oe?.alt??`Image ${c+1}`,Te=mt(oe),W=`${this.id}-click-to-flip-text`,de=`${this.id}-image`,ge=`${this.id}-description`;return(0,n.jsxs)("div",{"aria-label":K,className:X,inert:m,ref:I,role:"group",style:y,tabIndex:-1,children:[(0,n.jsxs)("div",{className:_,children:[(0,n.jsxs)("div",{className:D,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:te,children:[(0,n.jsx)("button",{"aria-labelledby":`${W} ${ge} ${de}`,className:$,id:`${l}-${c}-${L}-flip-btn`,onBlur:this.handleBtnBlur,onClick:g,onFocus:this.handleBtnFocus,tabIndex:s&&h?0:-1,type:"button",children:(0,n.jsx)(oz,{className:Q})}),(0,n.jsx)("div",{"aria-hidden":"true",className:Y,id:W,onClick:Do,children:v?.blocksClickToFlip})]}),(H||V)&&(0,n.jsx)(pee,{alt:se,className:q,imageId:de,l10nId:wt(d),url:Te}),B&&(0,n.jsxs)("div",{className:J,ref:k,tabIndex:h&&E?0:void 0,children:[(0,n.jsx)(ke,{allowTabNavigation:s&&!m,id:ge,value:a}),E&&(0,n.jsx)("div",{className:ee,ref:N})]})]}),Z&&(0,n.jsx)("div",{className:Wa("audio-player",{text:B,image:V}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,n.jsx)(es,{activeIndex:t,blockId:o.id,index:`${l}-${c}-${L}`,isOverlayAudio:H,item:{id:l,media:d},itemIndex:c,labels:v,lessonId:C,media:d,mediaType:"audio",refs:U,shouldPause:!h,side:L})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=fu()(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(t,s){const{props:{allowTabNavigation:o,blockType:r,isFlipped:a,isActiveSide:i,isHidden:c,onReady:l,type:d}}=this;t.isHidden&&!c&&this.checkDescriptionSize(this.props),t.isFlipped!==a&&(i&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{l()},700)):clearTimeout(this.readyTimeout)),d==="description"&&this.handleUpdatesDescription(t,s),r==="stack"&&i&&!t.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=t=>{Ss(t)&&this.state.isTooltipVisible&&this.setState({isTooltipVisible:!1})};handleUpdatesDescription=(t,s)=>{const{props:{isFlipped:o,isActiveSide:r},state:{isLongOverflow:a}}=this;t.isFlipped!==o&&r&&this.scrollDescriptionToTop(),this.handleUpdatesDescriptionSize(t,s),!s.isLongOverflow&&a?(this.setLongBottomObserver(),this.setScrollbarWidth()):s.isLongOverflow&&!a&&this.cleanupLongBottomObserver()};handleUpdatesDescriptionSize=(t,s)=>{const{INSERTING:o,DELETING:r}=Dr.descriptionActionTypes,{props:{description:a,size:i,type:c,getL10nValue:l},state:{descriptionAction:d,isLong:h,isLongOverflow:m}}=this,p=l(a)?.length||0,v=l(t.description)?.length||0;d!==o&&p>v?this.setState({descriptionAction:o}):d!==r&&p<v?this.setState({descriptionAction:r}):(d!==s.descriptionAction||h!==s.isLong||m!==s.isLongOverflow||i!==t.size||c!==t.type||p!==v)&&this.checkDescriptionSize(t)};checkDescriptionSize=t=>{const{DELETING:s}=Dr.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===s||o!==t.size)&&this.setState(Dr.initialState)};scrollDescriptionToTop=()=>{const t=this.refDescription.current;this.state.isLong&&t&&(t.scrollTop=0)};setLongBottomObserver=()=>{const t=this.refDescriptionBottom.current;if(t&&this.longBottomObserver==null){const s=o=>{const r=o?.[0]?.isIntersecting??!1;this.setState({isAtLongOverflowBottom:!r})};this.longBottomObserver=new IntersectionObserver(s,{threshold:[0,1]}),this.longBottomObserver.observe(t)}};cleanupLongBottomObserver=()=>{this.longBottomObserver?.disconnect?.(),this.longBottomObserver=void 0};setScrollbarWidth=()=>{const t=this.refDescription.current;if(t){const s=t.offsetWidth-t.clientWidth;s>0&&this.setState({scrollbarWidthOffset:s})}}}const O9=Sl(Je(e=>(0,n.jsx)(Dr,{...e}))),mee=e=>{const{cardMode:t,customBackgroundColorContrast:s}=cs(),o=ze()?.theme,r=Tl(),a=Pn(),c=a===ne.IMAGE&&r?.overlayColor===it.LIGHT,l=Os(),d=o?.accentContrast,h=d===ye.AUTO,m=(0,u.useMemo)(()=>{let v="#fafafa";if(t===Qs.TRANSPARENT)switch(a){case ne.DARK:v="#525252";break;case ne.BLACK:v="#1a1a1a";break;case ne.IMAGE:c?v="rgba(0, 0, 0, 0.7)":v="rgba(255, 255, 255, 0.7)";break;case ne.ACCENT:case ne.COLOR:case ne.TINT:if(l!=null)switch(ga(l)){case pt.LIGHT:v=an(.5,l);break;case pt.MED:v=Rn(.35,l);break;case pt.DARK:v=Rn(.65,l);break;case pt.NEAR_BLACK:v=an(.1,l);break}}const C={"--color-background":v},g=a===ne.COLOR?s:d;if((a===ne.ACCENT||a===ne.COLOR)&&t===Qs.TRANSPARENT&&h){const x=zt({backgroundColor:v,contrast:g});C["--color-text"]=x}return C},[l,a,t,s,h,c,d]),p={...e,style:m};return(0,n.jsx)(O9,{...p})},pee=({alt:e,className:t,imageId:s,l10nId:o,url:r})=>{const a=No(e);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ks,{alt:a,className:t,"data-l10n-id":o,id:s,src:r}),!a&&(0,n.jsx)("span",{className:"visually-hidden-always",children:"No image alternative text"})]})};class fee extends u.Component{static defaultProps={editable:!1,isRTL:!1,items:[],onStep:()=>{},stack:!1};state={activeIndex:0,flipStateMap:{},prefersKeyboardNavigation:!0};render(){const{blockId:t,animateBlockEntrance:s,initiallyVisible:o,isHidden:r,isLearner:a,items:i,labels:c,lessonId:l,onStep:d,previewType:h,isRTL:m,settings:p,stack:v}=this.props,{activeIndex:C}=this.state,{prefersKeyboardNavigation:g}=this.state,{entranceAnimation:x,showHint:S}=p,L=G()("block-flashcards",{"block-flashcard--column":!v,"block-flashcard--stack":v,"block-flashcards--no-animation":!x}),y=p.flashcardSize==="1"?"small":p.flashcardSize==="2"?"large":i.length>2?"small":"large",T=h===ar.MOBILE_PORTRAIT||h===ar.MOBILE_LANDSCAPE;return(0,n.jsx)(Re,{className:L,children:v?(0,n.jsx)(Ve,{animateBlockEntrance:s,initiallyVisible:o,isLearner:a,children:(0,n.jsx)("div",{className:"block-flashcard-carousel",children:(0,n.jsx)(tu,{blockId:t,items:i,children:({carouselRef:k})=>(0,n.jsx)(eu,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:m,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:k,shouldMouseEmulateTouch:T,shouldUseCounter:!0,shouldUseGoToSlide:!1,children:i.map((N,I)=>(0,n.jsx)(M9,{activeIndex:C,backDescription:N?.back?.description,backMedia:N?.back?.media,backType:N?.back?.type,frontDescription:N?.front?.description,frontMedia:N?.front?.media,frontType:N?.front?.type,id:N?.id,index:I,isHidden:r,labels:c,lessonId:l,onFlip:this.handleFlip.bind(this),onStep:d,prefersKeyboardNavigation:g,settingShowHint:S,size:"large",type:"stack",wrapElement:"div"},N?.id))})})})}):(0,n.jsx)(Ve,{animateBlockEntrance:s,className:"block-flashcards__animation",initiallyVisible:o,isLearner:a,siblingDelay:.25,children:(0,n.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:i.map((k,N)=>(0,n.jsx)(M9,{activeIndex:C,backDescription:k?.back?.description,backMedia:k?.back?.media,backType:k?.back?.type,blockId:t,frontDescription:k?.front?.description,frontMedia:k?.front?.media,frontType:k?.front?.type,id:k?.id,index:N,isHidden:r,labels:c,lessonId:l,onStep:d,prefersKeyboardNavigation:g,settingShowHint:S,size:y,type:"grid",wrapElement:"li",wrapRole:"listitem"},k?.id))})})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("mousedown",this.handleMouseDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mousedown",this.handleMouseDown)}handleKeyDown=t=>{!this.state.prefersKeyboardNavigation&&!$O(t)&&this.setState({prefersKeyboardNavigation:!0})};handleMouseDown=()=>{this.state.prefersKeyboardNavigation&&this.setState({prefersKeyboardNavigation:!0})};handleFlip(t,s){this.setState(o=>({flipStateMap:{...o.flipStateMap,[t]:s}}))}handleCarouselChange(t){const{block:s,onTranscriptUpdate:o}=this.props,{flipStateMap:r}=this.state,a=r[t]?"back":"front",i=s.items?.[t],c=i?.[a]?.media,l=`items:${s?.id}/items:${i?.id}/${a}`;o?.({audioPlayerId:yn({refs:l}),transcriptMedia:c}),this.setState({activeIndex:t})}}const B9=up(Je(Sl(fee))),wp=z("pill-button");function D9({allowTabNavigation:e=!0,ariaLabel:t,children:s,className:o,href:r,onClick:a=()=>{},onFocus:i,ref:c,size:l="sm",testId:d,variant:h="plain"}){const m=wp({[h]:!0,[l]:!0}).mix(o),p=!e;return r?(0,n.jsx)(ls,{"aria-hidden":p,"aria-label":t,className:m,"data-testid":d,onClick:a,onFocus:i,tabIndex:e?void 0:-1,to:r,children:(0,n.jsx)("span",{className:wp("content"),children:s})}):(0,n.jsx)("button",{"aria-hidden":p,"aria-label":t,className:m,"data-testid":d,onClick:a,onFocus:i,ref:c,tabIndex:e?void 0:-1,type:"button",children:(0,n.jsx)("span",{className:wp("content"),children:s})})}const H9=({allowNext:e=!1,canProceed:t=!1,isReduceMotion:s=!1,onNext:o,onSubmit:r,quizNext:a,quizSubmit:i})=>{const c=t?!0:void 0,l=t?void 0:r,d=t?-1:void 0,h=t?void 0:!0,m=t?o:void 0,p=t?void 0:-1,v=(0,u.useRef)(null),C=(0,Be.A)(t);(0,u.useEffect)(()=>{e&&!C&&t&&setTimeout(()=>{v.current?.focus?.({preventScroll:s})},0)},[e,t,s,C]);const g=G()("quiz-card__actions",{"quiz-card__actions--proceed":t}),x=G()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-always":!t});return(0,n.jsxs)("div",{className:g,children:[(0,n.jsx)("div",{className:"quiz-card__submit brand--ui",children:!c&&(0,n.jsx)("button",{className:"quiz-card__button","data-testid":"quiz-submit-button",onClick:l,tabIndex:d,type:"button",children:i})}),(0,n.jsx)("br",{className:"visually-hidden-always",role:"presentation"}),e&&(0,n.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,n.jsx)("button",{"aria-disabled":h,"aria-hidden":h,className:x,"data-testid":"quiz-next-button",onClick:m,ref:v,tabIndex:p,type:"button",children:a})})]})},gee=({children:e,isActive:t,isComplete:s,isTimedQuiz:o,style:r})=>(0,n.jsx)("div",{"aria-hidden":t?void 0:!0,className:vee({isActive:t,isComplete:s,isTimedQuiz:o}),"data-testid":"quiz-card",inert:t?void 0:!0,style:r,children:(0,n.jsx)("div",{className:"quiz-card__container",children:(0,n.jsx)("div",{className:"quiz-card__row",children:(0,n.jsx)("div",{className:"quiz-card__main",children:e})})})}),vee=({isActive:e,isComplete:t,isTimedQuiz:s})=>G()("quiz-card",{"quiz-card--active":e,"quiz-card--done":t,"quiz-card--timed":s}),F9=gee,{FILL_IN_THE_BLANK:V9,MATCHING:Cee,MULTIPLE_CHOICE:xee,MULTIPLE_RESPONSE:bee}=as;function yee(e,t){return e.map(s=>String(t(s?.title)??"")).filter(Boolean).join(", ")}function Lee(e,t,s){const o=t!=null?e.find(r=>r.id===t):e.find(r=>r.correct===!0);return String(s(o?.title)??"")}function See(e,t,s){return String(s(e?.[t]?.title)??"")}function z9(e,t,s){return t.filter(e).reduce((o,r,a)=>{const i=String(s(r?.title)??"");return a===0?i:o+", "+i},"")}function Tee(e,t,s){return z9(r=>Array.isArray(e)?e.includes(r.id):!!r.correct,t,s)}function kee(e,t,s){return z9((r,a)=>t.includes(a),e,s)}function Nee({answers:e,getL10nValue:t,selection:s,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:i}){const c=Object.fromEntries(Object.entries(s).map(([l,d])=>[d,l]));return e.map((l,d)=>{const h=String(t(l?.title)??""),m=String(t(l?.matchTitle)??""),p=c?.[d],v=String(t(e?.[Number(p)]?.title)??"");return i===Pe.INCORRECT?`${a}${m}. ${r}: ${v}.`:`${a}${m}. ${o}: ${h}. ${r}: ${v}.`}).join(" ")}function Ap({correctAnswer:e,selectedAnswer:t,correctLabel:s,userLabel:o,revealAnswers:r}){return!e||!t||r===Pe.NONE?"":r===Pe.INCORRECT?`${o}: ${ws(t)}.`:`${s}: ${ws(e)}. ${o}: ${ws(t)}.`}function Iee(e,t){return e.type===V9?t?.quizAcceptableResponses:t?.a11yCorrectLive}function Eee({getL10nValue:e,isComplete:t,item:s,selection:o,labels:r,revealAnswers:a}){if(!s||!t)return null;const i=s?.answers??[],c=s?.correct,l=s?.corrects,d=Iee(s,r),h=r?.a11yAnswerLive;switch(s.type){case Cee:return Nee({getL10nValue:e,answers:i,selection:o,correctLabel:d,userLabel:h,revealAnswers:a});case V9:return Ap({correctAnswer:yee(i,e),selectedAnswer:o,correctLabel:d,userLabel:h,revealAnswers:a});case xee:return Ap({correctAnswer:Lee(i,c,e),selectedAnswer:See(i,o,e),correctLabel:d,userLabel:h,revealAnswers:a});case bee:return Ap({correctAnswer:Tee(l,i,e),selectedAnswer:kee(i,o,e),correctLabel:d,userLabel:h,revealAnswers:a})}return null}const $9=({canProceed:e,feedbackRef:t,feedbackValue:s,isActive:o,isComplete:r,isCorrect:a,item:i,labels:c,quizCorrect:l,quizIncorrect:d,revealAnswers:h,selection:m})=>{const{announcePolite:p,clearAnnouncements:v}=An(),C=(0,Be.A)(e),g=Rt(),S=!!Oe(s),L=a?l:d,b=(0,u.useCallback)(()=>{const k=Eee({getL10nValue:g,isComplete:r,item:i,labels:c,revealAnswers:h,selection:m}),N=s?ws(g(s)):"",I=L+". "+k+" "+N;let w;return I&&(w=setTimeout(()=>{p(I)},250)),()=>{clearTimeout(w)}},[p,s,g,r,i,c,L,h,m]);(0,u.useLayoutEffect)(()=>{!C&&e&&h!==Pe.NONE&&b()},[e,C,b,h]),(0,u.useEffect)(()=>v,[v]);const y=G()("quiz-card__feedback",{"quiz-card__feedback--active":e,"quiz-card__feedback--frame":S}),T=G()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct":a});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{"aria-hidden":o?void 0:!0,className:y,ref:t,tabIndex:o?-1:void 0,children:(0,n.jsx)("div",{className:"quiz-card__main--feedback",children:(0,n.jsxs)("div",{"aria-label":c?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,n.jsx)("div",{className:T,children:(0,n.jsx)("i",{"aria-hidden":"true",className:a?"icon icon-Master-05":"icon icon-Master-06"})}),(0,n.jsx)("div",{className:"quiz-card__feedback-label",children:L}),s&&(0,n.jsx)("div",{children:(0,n.jsx)(ke,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:s})})]})})})})},{FILL_IN_THE_BLANK:jee}=as,wee=({children:e,type:t})=>(0,n.jsx)("div",{className:Aee({type:t}),children:e}),Aee=({type:e})=>G()("quiz-card__interactive",{"quiz-card__interactive--no-border":[jee].includes(e)}),_9=wee,$o=({allowTabNavigation:e,blockId:t="",enableVideoPlaybackSpeed:s,index:o,isOverlayAudio:r,item:a,labels:i={},media:c,settings:l,shouldPause:d})=>c==null||!Object.keys(c).some(h=>h!=="tmp")?null:(0,n.jsx)("div",{className:"quiz-card__media",children:(0,n.jsx)(es,{allowTabNavigation:e,blockId:t,enableVideoPlaybackSpeed:s,index:o,isOverlayAudio:r,item:a,labels:i,media:c,opts:l,shouldPause:d})}),h6e=(e,t)=>s=>s>=e&&s<t,U9=e=>e<10?`0${e}`:String(e),Ree=e=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(e),G9=e=>e.reduce((t,s)=>s==null||isNaN(s)?t:t+s,0),Pee=(e,t)=>{const s=Ds(),o=(0,Be.A)(t);(0,u.useEffect)(()=>{!o&&t&&e&&yd()(e.focus)&&e.focus({preventScroll:s})},[t,s,o,e])},vu=z("question-counter"),Mee=({isActive:e=!1,labels:t,questionLabel:s,questionNumber:o,totalQuestions:r})=>{const a=(0,u.useRef)(null);Pee(a.current,e);const i=`${t?.quizQuestion} ${o} ${t?.lessonPreposition} ${r}`,c=`${U9(o)}/${U9(r)}`;return(0,n.jsx)("div",{className:vu(),children:(0,n.jsxs)("h1",{"aria-label":i,className:vu("heading"),ref:a,tabIndex:-1,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:vu("label"),children:s}),(0,n.jsx)("span",{"aria-hidden":"true",className:vu("count"),children:c})]})})},Oee=z("question-title"),Bee=({allowTabNavigation:e,htmlId:t,value:s})=>(0,n.jsx)(ke,{allowTabNavigation:e,className:Oee(),"data-testid":"quiz-question-title",id:t,value:s}),Dee=({allowTabNavigation:e=!1,correctAnswerColor:t,correctAnswerColorContrast:s,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:i,isCorrect:c=!1,labels:l,onEnterToSubmit:d=()=>{},onChange:h=()=>{},options:m,questionHtmlId:p="",quizAcceptableResponses:v="",quizAnswerPlaceholder:C,revealAnswers:g=Pe.NONE,value:x=""})=>{const S=(0,u.useRef)(null),[L]=(0,u.useState)(()=>yr()("fitb-")),b=Rt(),y=Hee({options:m,getL10nValue:b}),T=`${L}-feedback`,k=`${L}-acceptable`,N=`${L}-input`,I=i?`${T} ${k}`:o||void 0,w=i?void 0:C,R=e?0:-1,E=g===Pe.ALL||g===Pe.INCORRECT,j=g===Pe.ALL||c&&g===Pe.INCORRECT,O=c?t:r,P=t&&r&&{"--fa-primary-color":zt({backgroundColor:O,contrast:c?s:a}),"--fa-secondary-color":O},M=r&&{backgroundColor:zt({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},F=G()("quiz-fill__icon",{"quiz-fill__icon--visible":i}),B=G()("quiz-fill__options",{"quiz-fill__options--visible":i}),H=(0,u.useCallback)(X=>{h(X.currentTarget.value)},[h]),V=(0,u.useCallback)(X=>{Ca(X)&&d(X)},[d]),K=i?void 0:H,U=i?void 0:V;return(0,n.jsxs)("div",{className:"quiz-fill",children:[(0,n.jsxs)("div",{className:"quiz-fill__container",children:[(0,n.jsx)("input",{"aria-describedby":I,"aria-hidden":!e,"aria-invalid":o?!0:void 0,"aria-labelledby":p,"aria-readonly":i,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:N,onChange:K,onKeyDown:U,placeholder:w,readOnly:i,ref:S,tabIndex:R,type:"text",value:x}),E&&(0,n.jsxs)("div",{className:F,id:T,children:[c&&(0,n.jsx)(ie,{"aria-label":l?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...P}}),!c&&(0,n.jsx)(_z,{"aria-label":l?.quizIncorrect,style:M})]})]}),j&&i&&(0,n.jsx)("div",{className:B,id:k,children:(0,n.jsx)(ke,{value:`${v}: ${y}`})})]})},Hee=({options:e,getL10nValue:t})=>e.map(o=>(t(o.title)??"").trim()).join(", "),W9=Dee;function Fee({correctAnswerColor:e,correctAnswerColorContrast:t}){const s=At(),o=zt({backgroundColor:e,contrast:t}),r=e?{"--fa-primary-color":o,"--fa-secondary-color":e}:void 0;return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(ie,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--correct",name:"circle-check",style:r}),(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:s?.quizCorrect})})]})}var Ka=f(82920);function Vee({correctAnswerValue:e,incorrectAnswerColor:t,incorrectAnswerColorContrast:s,shouldRevealCorrectAnswer:o}){const[r,a]=Ka.useState(!0),[i,c]=Ka.useState(!1),l=Ka.useRef(null),h=`matching-text-${Ka.useId()}`,m=At(),p=(0,Be.A)(e),v=Ka.useCallback(()=>{a(y=>!y)},[]);Ka.useLayoutEffect(()=>{if(p!==e){const y=l.current;y!=null&&y.scrollWidth>y.clientWidth&&c(!0)}},[p,e]);const C=zt({backgroundColor:t,contrast:s}),g=t?{"--fa-primary-color":C,"--fa-secondary-color":t}:void 0,x=G()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),S=G()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),L=G()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),b=G()("matching-results-item-feedback-text-extra-text",{"matching-results-item-feedback-text-extra-text--collapsed":r});return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(ie,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:g}),!o&&(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:m?.quizIncorrect})}),o&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{className:x,children:[(0,n.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[m?.quizIncorrect,"."]}),i&&(0,n.jsx)("button",{"aria-controls":h,"aria-expanded":!r,"aria-label":r?m?.a11yMatchingItemShowMore:m?.a11yMatchingItemShowLess,className:"matching-results-item-feedback-text-btn",onClick:v,type:"button",children:(0,n.jsx)(ie,{className:S,name:"caret-down",style:g})}),(0,n.jsx)("span",{className:L,children:(0,n.jsxs)("span",{className:b,id:h,ref:l,children:[m?.quizCorrect,": ",(0,n.jsx)(Ls,{value:e})]})})]})})]})}function zee({col1Id:e,col1Value:t,col2Id:s,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:i,height:c,incorrectAnswerColor:l,incorrectAnswerColorContrast:d,revealAnswers:h}){const m=e===s,p=h!=="incorrect",v=h!=="none";return(0,n.jsxs)("li",{className:"matching-results-item",role:"listitem",children:[(0,n.jsxs)("div",{className:"matching-results-item-pieces",children:[(0,n.jsxs)("div",{className:"matching-results-item-piece",style:c?{height:c}:void 0,children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(Ls,{value:t})})})]}),(0,n.jsxs)("div",{className:"matching-results-item-piece",children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(Ls,{value:o})})})]})]}),v&&m&&(0,n.jsx)(Fee,{correctAnswerColor:r,correctAnswerColorContrast:a}),v&&!m&&(0,n.jsx)(Vee,{correctAnswerValue:i,incorrectAnswerColor:l,incorrectAnswerColorContrast:d,shouldRevealCorrectAnswer:p})]})}function $ee({answers:e,columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:i,revealAnswers:c,rows:l}){return(0,n.jsx)("div",{className:"matching-results",children:(0,n.jsx)("ul",{className:"matching-results-list",role:"list",children:l.map((d,h)=>{const[m,p]=d,v=t==="freezeFirst"?e.find(C=>C.id===m.id)?.matchTitle:e.find(C=>C.id===p.id)?.title;return(0,n.jsx)(zee,{col1Id:m.id,col1Value:m.value,col2Id:p.id,col2Value:p.value,correctAnswerColor:s,correctAnswerColorContrast:o,correctAnswerValue:v,height:i,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:c},h)})})})}function _ee(e){return Object.keys(e).length===0}function Uee(e,t){return t in e}function Gee(e,t){return Object.values(e).includes(t)}function Rp(e,t){for(const s in e)if(e[s]===t)return s}function Wee(e,t,s){return{...e,[t]:s}}function Cu(e,t){return t in e?Ft(e,[t]):e}function Kee(e,t){const s=Rp(e,t);return s===void 0?e:Cu(e,s)}function K9(e,t,s){let o=Cu(e,t);return o=Kee(o,s),Wee(o,t,s)}function Qee(e){return Object.keys(e).length}var Zee=f(93481),Pp=f.n(Zee);Pp().dynamicDrop(!0),Pp().pointerMoveTolerance(8);const Un=Pp();var Qa=f(82920);function Yee(e,{onStart:t,onMove:s,onEnd:o,isEnabled:r=!0}){const a=Qa.useRef({x:0,y:0}),i=Qa.useRef({x:0,y:0}),c=Qa.useRef(!1),l=Qa.useRef(null),d=Qa.useRef(void 0);Qa.useEffect(()=>{const h=e.current;if(!h||!r||c.current)return;l.current=R5(h);function m(){const p=l.current;return p instanceof Window?{x:window.scrollX,y:window.scrollY}:{x:p.scrollLeft,y:p.scrollTop}}return d.current=()=>{const p=m(),v=p.x-i.current.x,C=p.y-i.current.y;(v!==0||C!==0)&&(a.current.x+=v,a.current.y+=C,e.current&&(e.current.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})),i.current=p)},Un(h).draggable({inertia:!1,autoScroll:{container:l.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},i.current=m(),l.current?.addEventListener("scroll",d.current,{passive:!0}),t?.()},move:p=>{a.current.x+=p.dx,a.current.y+=p.dy,h.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})},end:()=>{a.current={x:0,y:0},h.style.transform="",l.current?.removeEventListener("scroll",d.current),setTimeout(()=>{o?.()},0)}}}),c.current=!0,()=>{Un(h).unset(),l.current?.removeEventListener("scroll",d.current),c.current=!1}},[e,t,s,o,r])}var Q9=f(82920);function Xee(e,{isEnabled:t=!0,onDrop:s,onEnter:o,onLeave:r,overlap:a=.015}){const i=Q9.useRef(!1);Q9.useEffect(()=>{const c=e.current;if(!(!c||!t||i.current))return Un(c).dropzone({overlap:a,listeners:{drop:()=>{s?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),i.current=!0,()=>{Un(c).unset(),i.current=!1}},[e,s,o,r,t,a])}var tn=f(82920);const Z9=tn.memo(function({col:t,height:s,id:o,index:r,isActive:a,isFrozen:i,isMatched:c,isMoved:l,onClick:d,onDragEnd:h,onDragStart:m,onDrop:p,onDropZoneEnter:v,onDropZoneLeave:C,onKeyDown:g,value:x,valueOtherColumnActive:S,valueOtherColumnMatch:L}){const[b,y]=tn.useState(!1),T=tn.useRef(null),k=tn.useRef(null),N=At(),I=tn.useCallback(()=>{d({col:t,id:o,value:x})},[t,o,d,x]),w=tn.useCallback(()=>{y(!0),m({col:t,id:o,value:x})},[t,o,m,x]),R=tn.useCallback(()=>{h(),y(!1)},[h]),E=tn.useCallback(()=>{p({col:t,id:o,value:x})},[t,o,p,x]),j=tn.useCallback(()=>{v({col:t,id:o,value:x})},[t,o,v,x]),O=tn.useCallback(()=>{C()},[C]),A=tn.useCallback(H=>{g(H,{col:t,index:r})},[t,r,g]);tn.useEffect(()=>{t===1&&r===0||k.current?.setAttribute("tabindex","-1")},[]),Yee(T,{isEnabled:!i,onStart:w,onEnd:R}),Xee(T,{isEnabled:i,onDrop:E,onEnter:j,onLeave:O});const P=G()("matching-interaction-piece",{"matching-interaction-piece--matched":c,"matching-interaction-piece--moved":l}),M=L==null?null:(0,n.jsxs)(n.Fragment,{children:[N?.a11yMatchingItemMatchedWith," ",(0,n.jsx)(Ls,{value:L})]}),F=S==null?(0,n.jsx)(n.Fragment,{children:N?.a11yMatchingItemSelectableItem}):(0,n.jsxs)(n.Fragment,{children:[N?.a11yMatchingItemMatchWith," ",(0,n.jsx)(Ls,{value:S})]}),B=G()("matching-interaction-item",{draggable:!i,"draggable--dragging":!i&&b,droppable:i});return(0,n.jsx)("li",{className:B,ref:T,role:"listitem",children:(0,n.jsxs)("button",{"aria-pressed":a||c?!0:void 0,className:P,"data-state":a?"active":void 0,onClick:b?void 0:I,onKeyDown:A,ref:k,style:s?{height:s}:void 0,type:"button",children:[i?(0,n.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,n.jsx)(ie,{className:"matching-interaction-piece-decoration",name:"grip-dots-vertical"}),t===2?(0,n.jsx)("span",{className:"matching-interaction-piece-jigsaw"}):null,(0,n.jsx)("span",{className:"matching-interaction-piece-content",children:(0,n.jsx)("span",{"data-matching-interaction-piece-content-inline":"",children:(0,n.jsx)(Ls,{value:x})})}),(0,n.jsx)("span",{className:"visually-hidden-always",children:M}),(0,n.jsx)("span",{className:"visually-hidden-always",children:F})]},o)})});var We=f(82920);function qee({answers:e,columnBehavior:t,isActive:s,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:i,onChangeRows:c,prefersKeyboardNavigation:l}){const d=(0,Be.A)(s),h=(0,Be.A)(t),m=(0,Be.A)(e),p=(0,Be.A)(r),v=At(),[C,g]=We.useState(void 0),[x,S]=We.useState(void 0),[L,b]=We.useState(void 0),[y,T]=We.useState(!1),k=We.useRef(null),N=We.useRef(null),I=We.useRef(null),w=We.useRef(void 0),R=We.useRef(void 0),[E,j]=We.useState(()=>xu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeSecond"})),[O,A]=We.useState(()=>xu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeFirst"})),P=We.useMemo(()=>e.map($=>({col:1,id:$.id,value:$.title})).toSorted(($,Q)=>{const Y=E.get($.id)??1/0,q=E.get(Q.id)??1/0;return Y-q}),[e,E]),M=We.useMemo(()=>e.map($=>({col:2,id:$.id,value:$.matchTitle})).toSorted(($,Q)=>{const Y=O.get($.id)??1/0,q=O.get(Q.id)??1/0;return Y-q}),[e,O]),F=We.useCallback(()=>{for(const D of k.current?.querySelectorAll('button:not([tabindex="-1"])')??[])D.setAttribute("tabindex","-1")},[]),B=We.useCallback(D=>{const $=Array.from(E),Q=Array.from(O);if(t==="freezeSecond"){const Y=new Array(Q.length),q=$.map(te=>te[0]).filter(te=>!(te in D));for(const[te,se]of Object.entries(D)){const Te=O.get(se);Y[Te]=[te,Te]}for(let te=0;te<Y.length;te++)if(Y[te]==null){const se=q.shift();Y[te]=[se,te]}const J=new Map(Y),ee=Y9(E,J);ee.length>0&&S(ee),j(J)}else{const Y=new Array($.length),q=new Set(Object.values(D)),J=Q.map(se=>se[0]).filter(se=>!q.has(se));for(const[se,Te]of Object.entries(D)){const W=E.get(se);Y[W]=[Te,W]}for(let se=0;se<Y.length;se++)if(Y[se]==null){const Te=J.shift();Y[se]=[Te,se]}const ee=new Map(Y),te=Y9(O,ee);te.length>0&&b(te),A(ee)}},[t,E,O]),H=We.useCallback(D=>{w.current=D},[]),V=We.useCallback(()=>{R.current==null&&(w.current=void 0)},[]),K=We.useCallback(D=>{R.current=D},[]),U=We.useCallback(()=>{R.current=void 0},[]),X=We.useCallback(D=>{const $=w.current;if($!=null){const Q=D.col===1?D.id:$.id,Y=D.col===1?$.id:D.id,q=K9(r,Q,Y);w.current=void 0,R.current=void 0,a(q)}},[r,a]),oe=We.useCallback(D=>{let $=null,Q=!1,Y=C;if(D.col===1&&D.id in r)$=Cu(r,D.id),Y=null;else if(D.col===2&&Rp(r,D.id)){const q=Rp(r,D.id);$=Cu(r,q),Y=null}else C==null&&(Y={col:D.col,id:D.id,value:D.value},Q=!0);if(C!=null)if(C.col===D.col)C.id===D.id?Y=null:Y={col:D.col,id:D.id,value:D.value};else{const q=D.col===1?D.id:C.id,J=D.col===1?C.id:D.id;$=K9(r,q,J),Q=!0,Y=null}if($!=null&&a($),C!==Y&&g(Y),Q){const J=(D.col===1?I:N).current?.querySelector('button:not([aria-pressed="true"])');J&&(F(),J.removeAttribute("tabindex"),J.focus({preventScroll:!l}))}},[l,C,r,a,F]),Z=We.useCallback((D,{col:$,index:Q})=>{const Y=D.currentTarget;let q=!1,J=null;switch(D.key){case"ArrowUp":q=!0,J=Y.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":q=!0,J=Y.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":q=!0,J=$===1?I.current?.children[Q]?.firstElementChild:void 0;break;case"ArrowLeft":q=!0,J=$===2?N.current?.children[Q]?.firstElementChild:void 0;break;case"Home":q=!0,J=Y.closest("ul").firstElementChild.firstElementChild;break;case"End":q=!0,J=Y.closest("ul").lastElementChild.firstElementChild;break}q&&(D.preventDefault(),D.stopPropagation()),J&&(F(),J.removeAttribute("tabindex"),J.focus())},[F]);We.useEffect(()=>{r!==p&&!_ee(r)&&B(r)},[B,r,p]),We.useEffect(()=>{const D=({shouldFocus:Y})=>{const q=C.col===1?N:I;F();const J=q.current.querySelector('button[data-state="active"]');J?.removeAttribute("tabindex"),Y&&J?.focus(),g(null)},$=Y=>{k.current?.contains(Y.target)||D({shouldFocus:!1})},Q=Y=>{Ss(Y)&&C!=null&&D({shouldFocus:!0})};return C==null?(document.removeEventListener("mousedown",$),document.removeEventListener("keydown",Q)):(document.addEventListener("mousedown",$),document.addEventListener("keydown",Q)),()=>{document.removeEventListener("mousedown",$),document.removeEventListener("keydown",Q)}},[C,F]);const _=We.useCallback(()=>{const D=Array.from(k.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]")??[]);if(D.length===0)return;const $=D[0].closest("button");let Q=0,Y;if($){const J=window.getComputedStyle($),ee=parseFloat(J.paddingBlockStart)+parseFloat(J.paddingBlockEnd),te=parseFloat(J.borderTopWidth)+parseFloat(J.borderBottomWidth);Q=ee+te,Y=parseFloat(J.minHeight)}const q=D.reduce((J,ee)=>Math.max(J,ee.scrollHeight+Q),0);Y&&Y>=q?i(void 0):i(q)},[i]);return We.useEffect(()=>{(!d&&s||m!==e)&&_()},[d,s,e,m,_]),We.useEffect(()=>{const D=k.current?.closest(".quiz-card");let $;return D!=null&&($=new ResizeObserver(()=>{_()}),$.observe(D)),()=>{D!=null&&$!=null&&$.unobserve(D)}},[_]),We.useEffect(()=>{let D,$;return x&&(D=setTimeout(()=>{S(void 0)},1e3)),L&&($=setTimeout(()=>{b(void 0)},1e3)),()=>{clearTimeout(D),clearTimeout($)}},[x,L]),We.useEffect(()=>{y&&h!==t&&(a({}),B({}),g(void 0),j(xu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeSecond"})),A(xu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeFirst"})))},[y,t,h,e,a,B]),We.useEffect(()=>{if(P.length<=0)return;const D=P.map(($,Q)=>[$,M[Q]]);c(D)},[P,M,c]),We.useEffect(()=>{T(!0)},[]),(0,n.jsxs)("div",{className:"matching-interaction","data-testid":"matching-interaction",ref:k,children:[(0,n.jsx)("ul",{"aria-label":v?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1","data-col":"1",ref:N,role:"list",children:P.map((D,$)=>{const Q=Uee(r,D.id);return(0,n.jsx)(Z9,{col:1,height:o,id:D.id,index:$,isActive:C?.col===1&&C?.id===D.id,isFrozen:t==="freezeFirst",isMatched:Q,isMoved:x?.map(Y=>Y.id).includes(D.id)??!1,onClick:oe,onDragEnd:V,onDragStart:H,onDrop:X,onDropZoneEnter:K,onDropZoneLeave:U,onKeyDown:Z,value:D.value,valueOtherColumnActive:C?.col===2?C?.value:void 0,valueOtherColumnMatch:Q?M[$]?.value:void 0},D.id)})}),(0,n.jsx)("ul",{"aria-label":v?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2","data-col":"2",ref:I,role:"list",children:M.map((D,$)=>{const Q=Gee(r,D.id);return(0,n.jsx)(Z9,{col:2,height:o,id:D.id,index:$,isActive:C?.col===2&&C?.id===D.id,isFrozen:t==="freezeSecond",isMatched:Q,isMoved:L?.map(Y=>Y.id).includes(D.id)??!1,onClick:oe,onDragEnd:V,onDragStart:H,onDrop:X,onDropZoneEnter:K,onDropZoneLeave:U,onKeyDown:Z,value:D.value,valueOtherColumnActive:C?.col===1?C?.value:void 0,valueOtherColumnMatch:Q?P[$]?.value:void 0},D.id)})})]})}const xu=({answers:e,columnBehavior:t,columnBehaviorToShuffle:s})=>{let o=e.map(r=>r.id);return t===s&&(o=(0,u0.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function Y9(e,t){const s=[];for(const[o,r]of e){const a=t.get(o);a!==r&&s.push({id:o,from:r,to:a})}return s}var bu=f(82920);function X9({columnBehavior:e="freezeSecond",matches:t={},onChange:s=()=>{},revealAnswers:o="none",...r}){const[a,i]=bu.useState([]),[c,l]=bu.useState(void 0),d=bu.useCallback(m=>{i(m)},[]),h=bu.useCallback(m=>{l(m)},[]);return r.isComplete?(0,n.jsx)($ee,{...r,columnBehavior:e,itemHeight:c,revealAnswers:o,rows:a}):(0,n.jsx)(qee,{...r,columnBehavior:e,itemHeight:c,matches:t,onChange:s,onChangeItemHeight:h,onChangeRows:d})}function q9(e){return e==null||e===-1}function Jee(e,t){return e===t}const ete=({allowTabNavigation:e=!1,color:t,correctId:s="",errorMessageId:o,isComplete:r,isCorrect:a=!1,isReduceMotion:i=!1,labels:c,onChange:l=()=>{},onEnterToSubmit:d=()=>{},options:h=[],questionHtmlId:m="",renderOptionText:p,isRetaking:v,revealAnswers:C=Pe.NONE,selectedIndex:g=-1,shouldFocusFirst:x,onFocusFirstComplete:S})=>{const L=q9(g);return(0,n.jsx)(bc,{"aria-invalid":o?!0:void 0,"aria-labelledby":[m,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:h.map((b,y,T)=>(0,n.jsx)(tte,{allowTabNavigation:e,color:t,id:b.id,index:y,isComplete:r,isCorrect:a,isCorrectOption:s===b.id,isFirst:y===0,isFresh:L,isLast:y===T.length-1,isReduceMotion:i,isRetaking:v,isSelected:!v&&Jee(g,y),labels:c,onChange:l,onEnterToSubmit:d,onFocusFirstComplete:S,questionHtmlId:m,renderOptionText:p,revealAnswers:C,shouldFocusFirst:x,title:b.title},b.id))})},tte=({allowTabNavigation:e,color:t,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isFresh:c,isSelected:l,isReduceMotion:d,labels:h,onChange:m,onEnterToSubmit:p,questionHtmlId:v,renderOptionText:C,isRetaking:g,revealAnswers:x,shouldFocusFirst:S,onFocusFirstComplete:L,title:b})=>{const[y]=(0,u.useState)(()=>yr()("qmc-")),T=(0,u.useRef)(null),k=(0,Be.A)(l),N=!!r,I=e&&(l||c&&o===0)?0:-1,w=x===Pe.ALL,R=x==Pe.INCORRECT,E=w||R&&a,j=w||R&&a||R&&!a&&l,O=r&&i&&E,A=r&&!i&&j,P=(O||A)&&!g,M=P?`${y}-result`:void 0,F=G()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":O,"is-incorrect":A,"is-selected":l}),B=G()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":l&&!r}),H=G()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":O}),V=G()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":A}),K=G()("quiz-multiple-choice-option__border"),U=(0,u.useCallback)(_=>{Ca(_)&&p(_)},[p]),X=(0,u.useCallback)(()=>{m({selectedIndex:o})},[o,m]),oe=(0,u.useCallback)(()=>{l&&m({selectedIndex:o})},[o,l,m]),Z=r?void 0:U;return(0,u.useEffect)(()=>{e&&T.current&&(!k&&l?T.current.focus({preventScroll:d}):S&&c&&o===0&&(T.current.focus({preventScroll:d}),L?.()))},[e,l,d,k,S,c,o,L]),(0,n.jsxs)("div",{"data-testid":"quiz-card-option",children:[(0,n.jsxs)("label",{"aria-describedby":M,className:F,ref:T,children:[(0,n.jsx)("input",{checked:l,className:"quiz-multiple-choice-option__input",disabled:N,name:v,onChange:X,onClick:r?void 0:oe,onKeyDown:Z,tabIndex:I,type:"radio"}),(0,n.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:t},children:[(0,n.jsx)(yH,{className:B,dataTestId:l&&!r?"selected-dot-active":"selected-dot"}),(0,n.jsx)(P6,{className:H,"data-testid":O?"correct-check-active":"correct-check"}),(0,n.jsx)(G6,{"aria-hidden":"true",className:V,dataTestId:A?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,n.jsx)("div",{className:K}),(0,n.jsx)("div",{className:"quiz-multiple-choice-option__text","data-testid":"quiz-mc-option-text",children:C({optionId:s,title:b})})]}),P&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:M,children:[l&&i&&h?.a11yQuizReviewCorrectlySelected,l&&!i&&h?.a11yQuizReviewIncorrectlySelected,!l&&i&&h?.a11yQuizReviewIncorrectlyUnselected,!l&&!i&&h?.a11yQuizReviewCorrectlyUnselected]})]})},J9=ete;function ste(e){return e.length===0}function nte(e,t){return e.includes(t)}function ote(e,t){return e.includes(t)?e.filter(s=>s!==t):[...e,t]}const rte=({allowTabNavigation:e=!1,correctIds:t=[],errorMessageId:s,isComplete:o,isCorrect:r=!1,labels:a,onChange:i=()=>{},onEnterToSubmit:c=()=>{},options:l=[],questionHtmlId:d="",renderOptionText:h,isRetaking:m,revealAnswers:p=Pe.NONE,selectedIndices:v=[]})=>(0,n.jsx)("div",{"aria-labelledby":[d,s].filter(Boolean).join(" "),role:"group",children:(0,n.jsx)("ul",{children:l.map((C,g)=>(0,n.jsx)(ate,{allowTabNavigation:e,errorMessageId:s,id:C.id,index:g,isComplete:o,isCorrect:r,isCorrectOption:t.includes(C.id),isRetaking:m,isSelected:!m&&nte(v,g),labels:a,onChange:i,onEnterToSubmit:c,renderOptionText:h,revealAnswers:p,title:C.title},C.id))})}),ate=({allowTabNavigation:e,errorMessageId:t,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isSelected:c,labels:l,onChange:d,onEnterToSubmit:h,renderOptionText:m,isRetaking:p,revealAnswers:v,title:C})=>{const[g]=(0,u.useState)(()=>yr()("qmr-")),x=r&&v===Pe.ALL&&!p,S=x?`${g}-result`:void 0,L=!!r,b=e?0:-1,y=v===Pe.ALL,T=v==Pe.INCORRECT,k=y||T&&a||T&&!a&&c,N=G()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":c,"quiz-multiple-response-option--correct":r&&i&&k,"quiz-multiple-response-option--incorrect":r&&!i&&k}),I=G()("quiz-multiple-response-option__border"),w=(0,u.useCallback)(j=>{Ca(j)&&h(j)},[h]),R=(0,u.useCallback)(()=>{d({optionIndex:o})},[o,d]),E=r?void 0:w;return(0,n.jsxs)("li",{children:[(0,n.jsxs)("label",{"aria-describedby":S,className:N,children:[(0,n.jsx)("input",{"aria-describedby":t||void 0,"aria-invalid":t?!0:void 0,checked:c,className:"quiz-multiple-response-option__input",disabled:L,onChange:r?void 0:R,onKeyDown:E,tabIndex:b,type:"checkbox"}),(0,n.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,n.jsx)(P6,{className:"quiz-multiple-response-option__check"}),(0,n.jsx)(G6,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",overrideStyle:!0,width:"8"})]}),(0,n.jsx)("div",{className:I}),(0,n.jsx)("div",{className:"quiz-multiple-response-option__text",children:m({optionId:s,title:C})})]}),x&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:S,children:[c&&i&&l?.a11yQuizReviewCorrectlyChecked,c&&!i&&l?.a11yQuizReviewIncorrectlyChecked,!c&&i&&l?.a11yQuizReviewIncorrectlyUnchecked,!c&&!i&&l?.a11yQuizReviewCorrectlyUnchecked]})]})},e8=rte;var g6e,ite,cte,v6e,C6e,x6e,b6e;const lte=kn()(He()("correct",!0)),y6e=e=>ite(cte(e),Mp),dte=e=>({MATCHING:Ie(),FILL_IN_THE_BLANK:Op,MULTIPLE_CHOICE:Ie(),MULTIPLE_RESPONSE:Ie()})[e],Mp=me()(s0()("id"),lte),ute=me()(bs(),Mp),Op=kn()(He()("correct",!0)),hte=me()(Ae()("id"),bs()),L6e=null,{FILL_IN_THE_BLANK:mte,MATCHING:t8,MULTIPLE_CHOICE:pte,MULTIPLE_RESPONSE:fte}=as;function s8({type:e,text:t="",matches:s={},answersLength:o=0,selectedIndices:r=[],selectedIndex:a}){switch(e){case mte:return!a2(t);case t8:return Qee(s)===o;case fte:return!ste(r);case pte:default:return!q9(a)}}function gte({answered:e=!1,...t}){return e&&t.type!==t8?!1:s8(t)}function n8(e,t){const s=e.trim();return t?s:s.toLowerCase()}function o8({answers:e,text:t,caseSensitive:s=!1,getL10nValue:o}){if(!t)return!1;const r=n8(t,s);return e.some(a=>{const i=o(a.title);return typeof i!="string"?!1:n8(i,s)===r})}function r8(e){return Object.entries(e).every(([t,s])=>t===String(s))}function vte(e){const t=e.answers??[],s=e.correct;if(s!=null)return t.findIndex(r=>r.id===s);const o=t.findIndex(r=>r.correct===!0);return o===-1?0:o}function a8({isCorrectAnswerUnshuffled:e=!1,isShuffled:t=!1,item:s,selectedIndex:o,shuffledAnswerIndices:r}){if(o==null||t&&!Array.isArray(r))return!1;const a=t&&!e?r.indexOf(o):o,i=vte(s);return a===i}function Cte(e,t){return t.map(s=>e.indexOf(s))}function xte(e){return typeof e=="object"&&e!==null&&"id"in e?e.id:e}function bte(e){const t=e.answers??[],s=e.corrects??[];return s.length>0?s.map(a=>{const i=xte(a);return t.findIndex(c=>c.id===i)}).filter(a=>a>=0).sort((a,i)=>a-i):t.map((r,a)=>r.correct===!0?a:-1).filter(r=>r>=0).sort((r,a)=>r-a)}function i8(e){return[...e].sort((t,s)=>t-s)}function c8({isShuffled:e=!1,item:t,selectedIndices:s,shuffledAnswerIndices:o}){if(!Array.isArray(s)||e&&!Array.isArray(o))return!1;const r=e?Cte(o,s):s,a=bte(t),i=i8(r),c=i8(a);return i.length!==c.length?!1:i.every((l,d)=>l===c[d])}function l8({answers:e,feedback:t,feedbackCorrect:s,feedbackIncorrect:o,feedbackType:r,isCorrect:a,isShuffled:i=!1,selectedIndex:c,shuffledAnswerIndices:l}){switch(r){case"CHOICE":{if(c==null||!e)return;const d=i&&Array.isArray(l)?l.indexOf(c):c;return e[d]?.feedback}case"CORRECT_INCORRECT":return a?s:o;default:return t}}var yte=f(19199),Lte=f.n(yte),S6e=f(75318),Ste,Tte,d8,kte,Nte,Ite,Ete;const jte=(e,t,s=[])=>{const o=Tte(Ite("id",e),t),{parentId:r}=o||{},a=o?[o,...s]:s;return r?jte(r,t,a):a},u8="owner",wte="manager",Ate="editor",T6e="viewer",h8=null,Bp=({effectiveRole:e,requiredRole:t})=>{const s=d8(e,h8),o=d8(t,h8);return s>=o},Rte=e=>({editor:Bp({effectiveRole:e,requiredRole:Ate}),manager:Bp({effectiveRole:e,requiredRole:wte}),owner:Bp({effectiveRole:e,requiredRole:u8})}),k6e=(e,t,s)=>{const{authorId:o}=e,r=o===s,a=c=>r||c,i=Pte(t);return Nte(kte(["canChangePermissions","canMoveTo"]),Ste({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(i)},Pte=e=>{const{effectiveRole:t,type:s}=e||[],o=s!==Ete?u8:t,{editor:r,manager:a,owner:i}=Rte(o);return{canChangePermissions:a,canCreate:r,canDelete:i,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:i}};var Mte,Ote,Nc,Bte,Dte,Hte,Fte,m8,Za,Vte,p8,f8,zte,$te,Ic,_te,Ute,g8,Gte,yu,Wte,Kte,v8,Qte,C8,Zte,Yte,Ya;const Xte={[as.FILL_IN_THE_BLANK]:"fillin",[as.MATCHING]:"matching",[as.MULTIPLE_CHOICE]:"multiple choice",[as.MULTIPLE_RESPONSE]:"multiple response"},Lu="personal",x8="team",N6e=500,I6e=null,E6e=null,b8=({questions:e=[],drawnQuestionIds:t=[]})=>{const s=a=>!t.some(i=>i.includes(a.id)),o=e.filter(s),r=Math.floor(Math.random()*o.length);return o[r]??null},qte=e=>t=>t.type===Lu||C8({effectiveRole:t.effectiveRole,requiredRole:e}),Jte=({folders:e,requiredRole:t,teamAccount:s})=>Ya(e,v8,p8,Za(o=>qte(t)&&(s||o.type===Lu))),j6e=({questionBanks:{folders:e,questionBanks:t},requiredRole:s=Zte,teamAccount:o,term:r})=>{if(r&&$te(Kte(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+Qte(r)+")","i"),i=Jte({folders:e,requiredRole:s,teamAccount:o}),c=g8("id",i),l=Za(h=>h.title.match(a)&&!h.deleted,i),d=Za(h=>(Ic(h.folderId)||m8(h.folderId,c))&&h.title.match(a)&&!h.deleted,t);return{folders:l,questionBanks:d}},y8=(e,t,s=!1)=>Ya(t,zte(Nc(!Ic(e)),Gte(e),Ute(v8,p8)),Wte(yu("deleted",!s))),ese=(e,t,s,o=!1)=>{const r=e===x8,a=e===Lu,i=Ya(y8(x8,s),g8("id")),c=l=>!Ic(l.folderId)&&m8(l.folderId,i);return Ya(t,Za(Fte([[Nc(o),l=>l.deleted],[Nc(r),l=>!l.deleted&&c(l)],[Nc(a),l=>!l.deleted&&!c(l)],[Nc(Ic(e)),l=>!l.deleted],[Mte,f8]])))},tse=({type:e})=>e===Lu,L8=({effectiveRole:e})=>C8({effectiveRole:e,requiredRole:Yte}),sse=(e,t)=>({id:s})=>s?Hte(Bte(f8),_te(Ote([yu("folderId",s),yu("authorId",e)])))(t):!1,nse=(e,t,s,o)=>Ya(y8(t,e),Za(Dte([tse,L8,sse(o,s)]))),ose=(e,t)=>s=>{if(Ic(s.folderId))return!0;const o=Vte(yu("id",s.folderId),e);if(!o)return!1;const r=L8(o),a=s.authorId===t;return r||a},rse=(e,t,s,o,r)=>Ya(ese(e,t,s),Za(ose(o,r))),w6e=(e,t,s,o)=>{const r=nse(e,s,t,o),a=rse(s,t,e,r,o);return{folders:r,questionBanks:a}},ase=(e,t,s=[])=>{const o=t[e],{parentId:r}=o||{},{type:a}=t?.[r]||{},i=o?[o,...s]:s;return!r||o.type!==a?i:ase(r,t,i)},{FILL_IN_THE_BLANK:Xa,MATCHING:Su,MULTIPLE_CHOICE:Tu,MULTIPLE_RESPONSE:ku}=as,ise={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},cse=_e()(null,[0,"type"]),Dp=Ds();class S8 extends u.Component{static get defaultProps(){return{items:[],lessonId:"",blockId:"",onStep:Function.prototype}}retakeAnimationStageOne;retakeAnimationStageTwo;feedbackRef;takeAgainRef;block;wrapper;id;constructor(t){super(t),this.state={errorIncomplete:!1,selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillInText:"",matches:{},questionHtmlId:`q-${ru()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.feedbackRef=(0,u.createRef)(),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(Ze,this.previewOnly__forceShowFeedback),window.addEventListener(lm,this.previewOnly__clearOverrides),this.id=yr()("kc-")}componentDidUpdate(t,s){s.answered&&!this.state.answered?this.getType()!==Xa&&wm(this.wrapper):!s.answered&&this.state.answered&&setTimeout(()=>{this.takeAgainRef.current?this.takeAgainRef.current.focus():this.feedbackRef.current?.focus()},0)}componentWillUnmount(){this.retakeAnimationStageOne&&(clearTimeout(this.retakeAnimationStageOne),this.retakeAnimationStageOne=null),this.retakeAnimationStageTwo&&(clearTimeout(this.retakeAnimationStageTwo),this.retakeAnimationStageTwo=null),window.removeEventListener(Ze,this.previewOnly__forceShowFeedback),window.removeEventListener(lm,this.previewOnly__clearOverrides)}previewOnly__forceShowFeedback(t){const{itemId:s,path:o}=t.detail,{getL10nValue:r}=this.props;if(s!==this.props.blockId)return;const a=o.at(-1);if(typeof a=="string"&&a.startsWith?.("feedback")){const i=a==="feedbackCorrect",c=o.indexOf("answers"),l=o[c+1],d=c>-1&&typeof l!="string"?l.id:null,h={forceShowFeedback:!0,forceShowFeedbackCorrect:i,forceShowFeedbackMessage:""};if(d&&"answers"in this.props.items[0]){const m=this.props.items[0].answers.find(({id:v})=>v===d),p=m&&"feedback"in m?m?.feedback:void 0;h.forceShowFeedbackCorrect=m?.correct??!1,h.forceShowFeedbackMessage=r(p)}this.setState(h)}}previewOnly__clearOverrides(){this.setState({forceShowFeedback:!1,forceShowFeedbackCorrect:!1})}getSelection({item:t}){switch(t.type){case Xa:return this.state.fillInText;case Su:return this.state.matches;case ku:return this.state.selectedIndices;case Tu:default:return this.state.selectedAnswer}}handleMatchesChange=t=>{this.setState({errorIncomplete:!1,matches:t})};handleMultipleResponseChange({optionIndex:t}){const{selectedIndices:s}=this.state;this.setState({errorIncomplete:!1,selectedIndices:ote(s,t)})}handleChoiceSelect({selectedIndex:t}){const{answered:s}=this.state;s||this.setState({errorIncomplete:!1,selectedAnswer:t,chosen:!0})}onSubmit(t,s,o,r,a){if(!s){switch(this.setState({errorIncomplete:!0}),r.type){case Xa:this.wrapper?.querySelector("input")?.focus();break;case ku:case Tu:this.wrapper?.querySelector("input")?.focus();break;case Su:default:break}return}a?.preventDefault(),this.setState({answered:!0,isRetaking:!1}),o&&this.props.onStep({id:t})}handleFillIn(t){this.setState({errorIncomplete:!1,fillInText:t})}handleRetake(t){const{blockId:s,lessonId:o,settings:r}=this.props,{id:a}=t;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},()=>{!Dp&&this.getType()===Xa&&wm(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&this.props.onRetryAttempt?.({blockId:s,itemId:a,lessonId:o})},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}resetShouldFocusFirst=()=>{this.state.shouldFocusFirst&&this.setState({shouldFocusFirst:!1})};renderQuestionTitle({title:t}){return(0,n.jsx)(Ye,{className:"quiz-card__title",id:this.state.questionHtmlId,value:t})}renderQuestion(t){const{answered:s,errorIncomplete:o,isRetaking:r,selectedAnswer:a}=this.state,{blockId:i,enableVideoPlaybackSpeed:c,getL10nValue:l,labels:d,progress:h,renderQuestionTitle:m=this.renderQuestionTitle,settings:p}=this.props,{quizCorrect:v,quizIncorrect:C,quizRequireAnswer:g,quizSubmit:x,quizTakeAgain:S}=d,{id:L,type:b}=t,y=t.type!=="DRAW_FROM_QUESTION_BANK"?t.settings:{},T=l("media"in t?t.media:{}),k=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:t}),N=this.getCanSubmit({item:t}),I=p?.requireCorrectAnswer?k:!0,w=this.onSubmit.bind(this,L,N,I,t),R=this.getFeedback({item:t,isCorrect:k,selectedAnswer:a}),E=this.getSelection({item:t}),{columnBehavior:j,correctAnswerColor:O,correctAnswerColorContrast:A,incorrectAnswerColor:P,incorrectAnswerColorContrast:M}=p,F=k?O:P,B=d.knowledgeCheckCorrectAnswerRequiredBlock,H=d.knowledgeCheckRetriesAttemptsRemaining,V=d.knowledgeCheckMaxRetriesReached,K=h?.items?.[i]?.items?.[L]?.retryAttemptCount??0,U=p?.retryCount!==0&&(p?.retryCount==null||p?.retryCount===-1||K<p?.retryCount),X=p?.retryCount!=null||p?.retryCount===-1?p?.retryCount-K:-1,oe=!k,Z={"--color-feedback-icon":F,"--color-matching-feedback-bubble-bg":P,"--color-multiple-choice-complete-border":P,"--color-multiple-choice-correct-border":O,"--color-multiple-response-correct-border":O,"--color-multiple-response-incorrect-border":P,"--color-multiple-response-option-check":s?O:void 0,"--color-quiz-option-check":O,"--color-x-fill":P},D=p?.revealCorrectAnswers!==!1&&(p.retryCount==null||p.retryCount===-1||!U)?Pe.ALL:Pe.INCORRECT,$=G()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":s,"block-knowledge__retake-container--active-attempts-left":s&&!r&&X>0}),Q=G()("block-knowledge__retake",{"block-knowledge__retake--active":s&&!r&&U}),Y=G()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":s&&!r&&U&&X>0}),q=G()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":s&&!r&&!U}),J=!!T?.image,ee=!!T?.audio,te=!!T?.video,se=!!T?.embed;let Te=null;ee&&J?Te=(0,n.jsx)($o,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${L}-audio`,isOverlayAudio:!0,item:t,labels:d,media:T,settings:y}):ee&&(te||se)?Te=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($o,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${L}-audio`,item:t,labels:d,media:{audio:T.audio},settings:y}),(0,n.jsx)($o,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${L}-video`,item:t,labels:d,media:te?{video:T.video}:{embed:T.embed},settings:y})]}):Te=(0,n.jsx)($o,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${L}-audio`,item:t,labels:d,media:T,settings:y});const W=G()("block-knowledge__media",{"block-knowledge__image-with-audio":ee&&J});return(0,n.jsxs)(F9,{isActive:!0,style:Z,children:[p?.requireCorrectAnswer&&(s&&!k||!s)&&(0,n.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,n.jsx)(ie,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),B]}),m(t),(0,n.jsx)("div",{className:W,children:Te}),(0,n.jsx)(_9,{type:b,children:this.renderType({columnBehavior:j,correctAnswerColor:O,correctAnswerColorContrast:A,incorrectAnswerColor:P,incorrectAnswerColorContrast:M,isCorrect:k,item:t,onSubmit:w})}),(0,n.jsx)("div",{"aria-live":"assertive",children:o&&(0,n.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,n.jsx)("span",{"data-testid":"quiz-validation-icon",children:(0,n.jsx)(ie,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,n.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:g})]})}),(0,n.jsx)(H9,{canProceed:s,canSubmit:N,isReduceMotion:Dp,onSubmit:w,quizSubmit:x}),(0,n.jsx)($9,{canProceed:this.state.forceShowFeedback||s,feedbackRef:this.feedbackRef,feedbackValue:R,isActive:s,isComplete:s,isCorrect:k,item:t,labels:d,quizCorrect:v,quizIncorrect:C,revealAnswers:D,selection:E}),(0,n.jsxs)("div",{"aria-hidden":!s,className:$,children:[oe&&(0,n.jsxs)(n.Fragment,{children:[U?(0,n.jsxs)(D9,{allowTabNavigation:s,className:Q,onClick:this.handleRetake.bind(this,t),ref:this.takeAgainRef,size:"md",variant:"outlined",children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"arrow-rotate-left"}),S]}):null,X>0&&(0,n.jsxs)("div",{className:Y,children:[H," ",X]})]}),!U&&!k&&(0,n.jsx)("div",{className:q,children:V})]})]},L)}getIsCorrect({item:t}){const{fillInText:s,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:i}=t,c="answers"in t?t.answers:void 0,l="isCaseSensitive"in t?t.isCaseSensitive:!1;switch(i){case Xa:return o8({answers:Op(c),text:s,caseSensitive:l,getL10nValue:this.props.getL10nValue});case Su:return r8(o);case ku:return c8({item:{answers:c},selectedIndices:a});case Tu:default:return a8({item:{answers:c},selectedIndex:r})}}getType(){const{items:t}=this.props;return cse(t)}getCanSubmit({item:t}){const s="answers"in t?t.answers:void 0,{answered:o,fillInText:r,matches:a,selectedAnswer:i,selectedIndices:c}=this.state;return gte({type:t.type,text:r,matches:a,answersLength:s?.length??0,selectedIndices:c,selectedIndex:i,answered:o})}getFeedback({item:t,isCorrect:s,selectedAnswer:o}){if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;const r="feedback"in t?t.feedback:void 0,a="feedbackCorrect"in t?t.feedbackCorrect:void 0,i="feedbackIncorrect"in t?t.feedbackIncorrect:void 0,c="feedbackType"in t?t.feedbackType:void 0,l="answers"in t?t.answers:void 0,d=this.state.forceShowFeedbackCorrect??s;return l8({answers:l,feedback:r,feedbackCorrect:a,feedbackIncorrect:i,feedbackType:c,isCorrect:d,selectedIndex:typeof o=="number"?o:null})}getTypeLabel(){const{labels:t}=this.props,s=this.getType(),o=ise[s];return o?t?.[o]:t?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(t,{title:s}){return(0,n.jsx)(Ye,{className:"cursorAuto",value:s})}renderMultipleChoiceOptionText(t,{title:s}){return(0,n.jsx)(Ye,{className:"quiz-multiple-choice-option__label cursorAuto",value:s})}renderType({columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:i,item:c,onSubmit:l}){const{isHidden:d,labels:h,prefersKeyboardNavigation:m,renderMultipleResponseOptionText:p=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:v=this.renderMultipleChoiceOptionText,settings:C,progress:g,blockId:x}=this.props,{answered:S,fillInText:L,isRetaking:b,matches:y,selectedAnswer:T,selectedIndices:k,shouldFocusFirst:N,questionHtmlId:I}=this.state,{id:w,type:R}=c,E="answers"in c?c.answers:[],{quizAcceptableResponses:j,quizAnswerPlaceholder:O}=h,A=g?.items?.[x]?.items?.[w]?.retryAttemptCount??0,P=C?.retryCount!==0&&(C?.retryCount==null||C?.retryCount===-1||A<C?.retryCount),F=C?.revealCorrectAnswers!==!1&&(C.retryCount==null||C.retryCount===-1||!P)?Pe.ALL:Pe.INCORRECT,B=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(R){case Xa:return(0,n.jsx)(W9,{allowTabNavigation:!0,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:B,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:S,isCorrect:i,labels:h,onChange:this.handleFillIn,onEnterToSubmit:l,options:Op(E),questionHtmlId:I,quizAcceptableResponses:j,quizAnswerPlaceholder:O,revealAnswers:F,value:L});case Su:return(0,n.jsx)(X9,{answers:dte(R)(E),columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!d,isComplete:S,matches:y,onChange:this.handleMatchesChange,prefersKeyboardNavigation:m,revealAnswers:F});case ku:return(0,n.jsx)(e8,{allowTabNavigation:!0,correctIds:Mp(E),errorMessageId:B,isComplete:S,isCorrect:i,isRetaking:b,labels:h,onChange:this.handleMultipleResponseChange,onEnterToSubmit:l,options:E,questionHtmlId:I,renderOptionText:p.bind(this,c),revealAnswers:F,selectedIndices:k});case Tu:default:return(0,n.jsx)(J9,{allowTabNavigation:!0,correctId:ute(E)||hte(E),errorMessageId:B,isComplete:S,isCorrect:i,isReduceMotion:Dp,isRetaking:b,labels:h,onChange:this.handleChoiceSelect,onEnterToSubmit:l,onFocusFirstComplete:this.resetShouldFocusFirst,options:E,questionHtmlId:I,renderOptionText:v.bind(this,c),revealAnswers:F,selectedIndex:T,shouldFocusFirst:N})}}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a,variant:i}=this.props,{answered:c,isRetaking:l}=this.state,{entranceAnimation:d,knowledgeCheckWidth:h=76}=a,m=Gd(h),p=G()("block-knowledge",{"block-knowledge--answered":c,"block-knowledge--no-animation":!d,"block-knowledge--retake":l}),v=G()("block-knowledge__wrapper",`block-knowledge__wrapper--${i}`,{[`block-knowledge__container--custom-width-${m}`]:!0}),C=Array.isArray(r)&&r.length>0?r.slice(0,1):[];return(0,n.jsx)(Re,{className:p,"data-testid":"block-kc-card",ref:g=>{this.block=g},style:this.getStyle(),children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:"block-knowledge__container",children:(0,n.jsx)("div",{className:"block-knowledge__row",children:(0,n.jsx)("div",{className:`block-knowledge__col--custom-width-${m}`,children:(0,n.jsx)(Ut,{"aria-label":this.getTypeLabel(),className:v,"data-testid":"block-knowledge-wrapper",ref:g=>{this.wrapper=g},children:C.map(g=>this.renderQuestion(g))})})})})})})}getStyle(){const{backgroundColor:t,settings:s}=this.props;if(s?.cardMode===Qs.TRANSPARENT)switch(s?.backgroundType){case ne.ACCENT:case ne.COLOR:case ne.TINT:if(t)switch(ga(t)){case pt.LIGHT:return{"--color-background-choice-hover":an(.5,t),"--color-background-feedback-frame":an(.5,t)};case pt.MED:return{"--color-background-choice-hover":Rn(.3,t),"--color-background-feedback-frame":Rn(.3,t)};case pt.DARK:return{"--color-background-choice-hover":Rn(.6,t),"--color-background-feedback-frame":Rn(.6,t)};case pt.NEAR_BLACK:return{"--color-background-choice-hover":an(.15,t),"--color-background-feedback-frame":an(.15,t)}}}}}const lse=e=>{const{blockId:t,items:[s]}=e,{questions:o}=s,[r,a]=(0,u.useState)(()=>b8({questions:o}));(0,u.useEffect)(()=>{if(!o)return;const c=l=>{const{path:d}=l.detail;if(d[d.indexOf("items")+1]?.id!==t)return;const m=d[d.lastIndexOf("questions")+1]?.id;if(m===r?.id)return;const p=o.find(({id:v})=>v===m);p&&a(p)};return window.addEventListener(Ze,c),()=>window.removeEventListener(Ze,c)},[t,r,o]);const i=(0,u.useMemo)(()=>r?{variant:Xte[r.type],items:[r]}:{},[r]);return r?(0,n.jsx)(S8,{...e,...i}):(0,n.jsx)("div",{})},dse=e=>e.variant==="draw from question bank",qa=e=>{const t=Os()??"",s=cs(),o=Rt(),r={...e,backgroundColor:t,getL10nValue:o,blockSettings:s};return dse(r)?(0,n.jsx)(lse,{...r}):(0,n.jsx)(S8,{...r})};var use=f(49976),hse=f.n(use);class mse extends u.Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(t){super(t),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=lo()}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(t){t.isActive&&setTimeout(this.renderOverflowMask,100)}componentDidUpdate(t){if(!t.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 s=this.props.media;this.props.onTranscriptUpdate?.({audioPlayerId:yn({refs:`items:${this.props.blockId}/items:${this.props.item?.id}`}),transcriptMedia:s})}else t.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:t,allowNav:s,description:o,headingLevel:r,htmlId:a,isActive:i,media:c,title:l,x:d,y:h}=this.props,m=r?`h${r}`:"h2",p=G()("bubble",{"bubble--active":i}),v=fse({x:d,y:h}),C=gse({hasOverflow:this.state.hasOverflow,x:d,y:h}),g={borderBottomColor:t},x=`${a}-title`,S=()=>{if(!c)return(0,n.jsx)(ke,{allowTabNavigation:i,className:"bubble__description",value:o});const b=this.props.getL10nValue(c)??{},y=Ln(b,this.props.audioPosition,!0,"labeled-graphic"),T={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:!i},k={audio:{media:y.audioOnlyMedia||b,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:y.imageOnlyMedia||b,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:y.videoOnlyMedia||b,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:y.embedOnlyMedia||b,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:b,isOverlayAudio:!0,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-overlay`}};return(0,n.jsx)(n.Fragment,{children:y.renderOrder.map((N,I)=>{if(N==="text")return(0,n.jsx)(ke,{allowTabNavigation:i,className:"bubble__description",value:o},`text-${I}`);const w=k[N];return!w||N==="embed"&&!i?null:(0,n.jsx)("div",{className:"bubble__media",children:(0,n.jsx)("div",{className:"bubble__figure",children:(0,n.jsx)("div",{className:G()({"labeled-graphic-bubble-media-container--audio-bottom":N==="audio"&&this.props.audioPosition==="bottom"}),children:(0,n.jsx)(es,{...T,...w})})})},`${N}-${I}`)})})},L=(0,n.jsx)("div",{className:p,ref:this.refWrap,style:v,children:(0,n.jsxs)("dialog",{"aria-hidden":!i,"aria-labelledby":x,"aria-modal":"false",className:C,id:a,onKeyDown:this.handleKeyDown,style:g,children:[(0,n.jsx)(m,{className:"bubble__title",id:x,ref:this.refBubbleTitle,tabIndex:-1,children:(0,n.jsx)(Ls,{value:l})}),(0,n.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,n.jsx)(SH,{className:"bubble__close-icon"})}),(0,n.jsx)("div",{className:"bubble__content",ref:b=>{this.contentRef=b},children:S()}),s&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,gn.createPortal)((0,n.jsx)(u4,{children:L}),this.portal):L}renderControls(){const{accentColor:t,labels:s}=this.props,o={"--color-lg-accent":t};return(0,n.jsxs)("div",{className:"bubble__controls",style:o,children:[(0,n.jsx)("button",{"aria-label":s?.a11yCarouselPrevious,className:"bubble__prev",onClick:this.handlePreviousClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-left"})}),(0,n.jsx)("button",{"aria-label":s?.a11yCarouselNext,className:"bubble__next",onClick:this.handleNextClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-right"})})]})}renderOverflowMask(){if(!this.contentRef)return;const t=this.contentRef,s=t.offsetHeight;t.scrollHeight>s?(t.addEventListener("scroll",this.scrollRef=au()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(t.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}handleDocumentClick=t=>{if(!this.props.isActive)return;const s=t.composedPath();this.refWrap.current!=null&&s.includes(this.refWrap.current)||Array.from(document.querySelectorAll("dialog[open]")).some(r=>s.includes(r))||this.props.onClose({shouldFocusMarker:!1})};handleDocumentKeyDown=t=>{Ss(t)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(t){const{allowNav:s,onNextClick:o,onPreviousClick:r}=this.props,a=QO(this.contentRef,this.state.hasOverflow),i=hse()(Me()(s));Cs()([[i(ao),r],[i(io),o],[GO,a]])(t)}handleCloseClick=()=>{this.props.onClose()};handleNextClick(t){this.props.onNextClick(t)}handlePreviousClick(t){this.props.onPreviousClick(t)}handleScroll(){const t=this.contentRef,s=t.scrollTop,o=t.scrollHeight,r=t.offsetHeight;s>=o-r-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}getMediaContainerClasses(t,s){return G()({"labeled-graphic-bubble-media-container":t,"labeled-graphic-bubble-media-container--audio-overlay":s,"labeled-graphic-bubble-media-container--audio-on-bottom":t&&this.props.audioPosition==="bottom"})}}const pse=Je(mse),fse=({x:e,y:t})=>{const s={top:"initial",bottom:"initial",left:"0",right:"0"};return e>50?s.right=100-e+"%":s.left=e+"%",t>50?s.bottom=100-t+"%":s.top=t+"%",s},gse=({hasOverflow:e,x:t,y:s})=>{const o=t<50;let r="top";return s>33&&(r=s>66?"bottom":"middle"),G()("bubble__body","bg--range-light",{"bubble__body--has-overflow":e,"bubble__body--left":o,"bubble__body--right":!o,"bubble__body--top":r==="top","bubble__body--middle":r==="middle","bubble__body--bottom":r==="bottom"})};var vse=f(82920);const Cse=e=>new URL(e).pathname.slice(1)+new URL(e).search;class xse extends vse.Component{imageEl;constructor(t){super(t),this.state={style:{}}}render(){const{canvasClassNames:t,children:s,cornerRadius:o,editable:r,editingDisabled:a,getL10nValue:i,imageLoaded:c,media:l,onCreateMarker:d,onShowAltDialog:h}=this.props,{style:m}=this.state,p=i(l)?.image??{},{alt:v,dimensions:C,key:g,src:x}=p,S=!!p.alt,L=No(v),b=$T(p),y=G()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":r&&!a,"labeled-graphic-canvas__figure--editing-disabled":r&&a});let T;g?T=mt(p):x&&(T=mt({key:Cse(x),...p}));const k=G()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":ig(T)}),N={...m,...o!=null&&{"--corner-radius":`${Number(o)}px`}},I=(0,n.jsx)(ks,{alt:L,className:k,"data-l10n-id":wt(l),height:C?.height||C?.originalHeight,onClick:d,onLoad:()=>this.setState({style:b}),ref:w=>{this.imageEl=w},src:T,style:N,width:C?.width||C?.originalWidth});return(0,n.jsx)("div",{className:t||"labeled-graphic-canvas",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,n.jsxs)("figure",{className:y,children:[S&&r&&(0,n.jsx)(Ho,{message:"Edit alt text",children:(0,n.jsx)("div",{className:"item-media__tooltip",children:(0,n.jsx)("button",{className:"labeled-graphic-canvas__alt-tag",onClick:h,type:"button",children:"ALT"})})}),c&&I,(0,n.jsx)("ol",{role:"list",children:s})]})})})})}}const bse=Je(xse),yse={"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"},Lse=(e,t)=>{const s=yse[t];return s?.startsWith("a11y")?e?.[s]||"":s||""};var Sse=f(82920);const T8=z("labeled-graphic-marker");class Tse extends Sse.Component{marker;onMouseMove;onMouseLeave;constructor(t){super(t),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 t=this.parentCanvasElement();t.addEventListener("mousemove",this.onMouseMove=s=>{this.onItemDrag(s)}),t.addEventListener("mouseleave",this.onMouseLeave=s=>{this.onItemRelease(s)})}componentWillUnmount(){const t=this.parentCanvasElement();t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mouseleave",this.onMouseLeave)}UNSAFE_componentWillReceiveProps(t){const{isSelected:s,useLocalStateForCompletion:o}=t;s&&o&&!this.state.isComplete&&this.setState({isComplete:!0})}buildMarkerLabel=({icon:t,label:s,title:o,viewed:r})=>{const{labels:a}=this.props;return[].concat(s||[]).concat(o||[]).concat(t||[]).concat(r?a?.a11yLabeledGraphicViewed:a?.a11yLabeledGraphicUnviewed).join(", ")};render(){const{accentColor:t,ariaControls:s,icon:o,isActive:r,isComplete:a,isLessonBlocksList:i,isSelected:c,isVisible:l,labels:d,markerColor:h,markerColorContrast:m,onFocus:p,styles:v,useLocalStateForCompletion:C}=this.props,g=this.props.getL10nValue(this.props.title),x=Lse(d,o),S=C?this.state.isComplete:a,L=!!h,b=Rs(h),T=zt({backgroundColor:h,contrast:m??b}),k=L?h:"#ffffff",N=L?T:t,I=this.buildMarkerLabel({icon:x,label:d&&d.a11yLabeledGraphicButtonMarker||"",title:g,viewed:S}),w=T8({active:c,dragged:this.state.isDragged,visible:l,complete:S}),R={...v,"--color-lg-accent":k,"--color-lg-font":N},E=T8("pin",{selected:c,disabled:i});return(0,n.jsx)("button",{"aria-controls":s,"aria-expanded":r,"aria-label":I,className:w,onClick:this.onClick,onContextMenu:this.onItemRelease.bind(this),onFocus:p,onMouseDown:this.onItemGrab.bind(this),onMouseEnter:this.onHover.bind(this),onMouseLeave:this.onLeave.bind(this),onMouseUp:this.onItemRelease.bind(this),ref:j=>{this.marker=j},style:R,type:"button",children:(0,n.jsx)("span",{className:E,children:(0,n.jsx)("i",{className:`icon icon-Master-${o}`})})})}focus(){this.marker&&this.marker.focus&&this.marker.focus()}onHover(){this.state.wasDragged&&this.props.onHover(),this.setState({hovering:!0})}onLeave(){this.props.onLeave(),this.setState({hovering:!1})}onClick(){const{editable:t,itemId:s,onClick:o,parentId:r}=this.props,a="labeledGraphicMarkerClick",i={detail:{itemId:s,parentId:r}},c=new CustomEvent(a,i);document.dispatchEvent(c),t||o()}onItemGrab(t){const{editable:s}=this.props;if(!s)return;const o=this.marker.getBoundingClientRect(),r=o.left-t.clientX+this.marker.offsetWidth/2,a=o.top-t.clientY+this.marker.offsetHeight/2;this.setState({posX:t.clientX,posY:t.clientY,offsetX:r,offsetY:a,isDragged:!0})}onItemDrag(t){if(this.state.isDragged){const s=t.clientX-this.state.posX,o=t.clientY-this.state.posY;this.marker.style.transform=`translate3d(${s}px, ${o}px, 0)`}}onItemRelease(t){const{editable:s}=this.props,o={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===t.clientX&&this.state.posY===t.clientY?this.props.onClick():s&&t.currentTarget instanceof HTMLElement&&t.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(t,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(o.offsetX=0,o.offsetY=0),this.setState(o)}}const kse=Je(Tse);class Nse extends u.Component{static get defaultProps(){return{animateBlockEntrance:!1,editable:!0,getL10nValue:(t=>t),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(t){super(t);const{isLearner:s}=t;this.afterAnimatedIn=this.afterAnimatedIn.bind(this),this.createMarker=this.createMarker.bind(this),this.onBubbleClose=this.onBubbleClose.bind(this),this.onMarkerFocus=this.onMarkerFocus.bind(this),this.markerRefs={},this.state={showMarkers:!s||Ds()}}componentDidMount(){const{isBlock:t,isLearner:s,isPreview:o,markerDelay:r}=this.props;s&&!t&&(this.timeout=setTimeout(()=>this.setState({showMarkers:!0}),o?0:r))}componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.entranceDoneTimeout)}render(){const{accentColor:t,animateBlockEntrance:s,blockId:o,color:r,canvasClassNames:a,disableCreateMarker:i,editable:c,getL10nValue:l,imageLoaded:d=!0,isBlock:h,isLearner:m,isLessonBlocksList:p,isPreview:v,initiallyVisible:C,items:g,labels:x,lessonId:S,media:L,onItemClear:b,onItemHint:y,onItemSelected:T,onNextClick:k,onPreviousClick:N,onShowAltDialog:I,parentId:w,progress:R,selected:E,settings:j={},showBubbles:O,enableVideoPlaybackSpeed:A}=this.props,{cornerRadius:P,headingLevel:M,markerColor:F,markerColorContrast:B}=j,{showMarkers:H}=this.state,K=F||(t||r),U=G()("map-item",{"map-item--animated":!c}),X=s?"fadeIn":"none",oe=s?1:0,Z=g.length>1;return(0,n.jsx)(u.Fragment,{children:(0,n.jsx)(Ve,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!v,animateIn:X,duration:v?0:oe,initiallyVisible:C,isLearner:m,children:(0,n.jsx)(bse,{canvasClassNames:a,cornerRadius:P,editable:c,editingDisabled:i,imageLoaded:d,media:L,onCreateMarker:this.createMarker,onShowAltDialog:I,ref:_=>{this.canvas=_},children:g.map((_,D)=>{const{description:$,id:Q,icon:Y,media:q,title:J}=_,ee=l(_.x),te=l(_.y),se={top:te+"%",left:ee+"%"},Te=Yt()(["items",Q,"isComplete"],R),W=E===Q,de=`bubble-${o}-${Q}`;return(0,n.jsxs)("li",{className:U,role:"listitem",children:[(0,n.jsx)(kse,{accentColor:K,ariaControls:de,editable:c,icon:Y,isActive:E===Q,isComplete:Te,isLessonBlocksList:p,isSelected:W,isVisible:H,itemId:Q,labels:x,markerColor:F,markerColorContrast:B,onClick:()=>{T(Q)},onFocus:this.onMarkerFocus(Q),onHover:()=>{y()},onLeave:()=>{b()},onSetPosition:this.onSetPosition.bind(this,_),parentId:w,ref:ge=>{this.markerRefs[Q]=ge},styles:se,title:J,useLocalStateForCompletion:h},Q),!c&&O&&(0,n.jsx)(pse,{accentColor:K,allowNav:Z,audioPosition:j.audioPosition,blockId:o,description:$,enableVideoPlaybackSpeed:A,headingLevel:M,htmlId:de,index:D,isActive:W,item:_,labels:x,lessonId:S,media:q,mediaOpts:{disableZoom:!j.zoomOnClick},onClose:this.onBubbleClose(Q),onNextClick:()=>{k(D)},onPreviousClick:()=>{N(D)},title:J,x:Number(ee),y:Number(te)},de)]},Q)})})})})}createMarker(t){const{disableCreateMarker:s,editable:o,onCreateMarker:r}=this.props;if(!o||s)return;const{x:a,y:i}=this.findItemCoordinates({e:t}),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(t){const{onClose:s}=this.props;return(o={shouldFocusMarker:!0})=>{const r=this.markerRefs[t];o.shouldFocusMarker&&r?.focus?.(),s()}}onMarkerFocus(t){return()=>{const{onClose:s,selected:o}=this.props;o&&o!==t&&s()}}onSetPosition(t,s,o,r){if(!this.props.editable)return;const{lesson:a,onSetMarkerPosition:i}=this.props,{id:c,items:l}=a,{x:d,y:h}=this.findItemCoordinates({e:s,offsetX:o,offsetY:r}),m={x:String(d),y:String(h)};(0,Xt.uW)(t.x)&&(0,Xt.uW)(t.y)?(this.props.updateL10n({l10n:t.x,value:m.x}),this.props.updateL10n({l10n:t.y,value:m.y})):i({itemId:t.id,lessonId:c,items:l,payload:m})}findItemCoordinates({e:t,offsetX:s=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,i=this.findItemCoordinate({clientPos:t.clientX,clientOffset:s,rectSubtractor:r.left,rectDivisor:r.width,validOffsetAmount:a}),c=this.findItemCoordinate({clientPos:t.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:i,y:c}}findItemCoordinate({clientPos:t,clientOffset:s,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const i=a/r*100,c=100-i;let l=(t+s-o)/r*100;return l>c?l=c:l<i&&(l=i),l}afterAnimatedIn(){const{isBlock:t}=this.props;t&&this.setState({showMarkers:!0})}}const Ise=Je(Nse);var Ese=f(82920);const k8="page-wrap--noscroll";class jse extends Ese.Component{static get defaultProps(){return{onItemSelected:Function.prototype,onStep:Function.prototype,getL10nValue:()=>{}}}constructor(t){super(t),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(Ze,this.handleNavEvent)}handleNavEvent(t){const s=t.detail.path[t.detail.path.indexOf("items")+1]?.id,o=t.detail.path[t.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&this.state.selectedItemId!==o&&this.onItemSelected(o)}componentWillUnmount(){this.props.readOnly||document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.removeEventListener(Ze,this.handleNavEvent)}render(){const{imageLoaded:t}=this.state,{initiallyVisible:s,isLessonBlocksList:o,isPreview:r,items:a,labels:i,parentId:c,settings:l={}}=this.props,{mediaWidth:d="2"}=l,h=r?a[0].id:this.state.selectedItemId,m=G()("view-labeled-graphic",{"view-labeled-graphic--small":d==="0","view-labeled-graphic--medium":d==="1","view-labeled-graphic--full":d==="2"});return(0,n.jsx)("div",{"aria-label":i?.a11yLabeledGraphicBlock,className:m,role:"group",children:(0,n.jsx)(Ise,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:t,initiallyVisible:s,isLessonBlocksList:o,labels:i,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:c,selected:h})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const t=this.props.getL10nValue(this.props.media)?.image,{key:s,src:o}=t??{};if(!s&&!o)return;const r=setTimeout(this.setImageLoaded,1e3),a=new Image,i=s?mt(t):o;a.src=i,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return G()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(t){const{blockId:s,items:o}=this.props,r=Ae()("id",o[ca()(t)]||o[0]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onPreviousClick(t){const{blockId:s,items:o}=this.props,r=Ae()("id",o[bp()(t)]||o[bp()(is()(o))]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onItemSelected(t){const{editBlock:s,items:o,onItemSelected:r,onStep:a}=this.props,{selectedItemId:i}=this.state;s&&window.matchMedia("(max-width: 768px)").matches||(i===t?this.closeOpenedBubble():(this.openBubble(t),me()(a,Ks()(c=>c.id===t))(o)),r(t))}handleMarkerClick(t){const{itemId:s,parentId:o}=t.detail,{selectedItemId:r}=this.state;(o!==this.props.parentId||r!==s)&&this.closeOpenedBubble()}openBubble(t){const{blockId:s}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const r=document.querySelector(".page-wrap");r&&r.classList.add(k8)}this.setState({selectedItemId:t}),document.getElementById(`bubble-${s}-${t}`).show()}closeOpenedBubble(){const{blockId:t}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const o=document.querySelector(".page-wrap");o&&o.classList.remove(k8)}document.getElementById(`bubble-${t}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const wse=Je(jse),Ase=e=>{const{blockId:t,progress:s,isLessonBlocksList:o=!1}=e,r=Yt()(["items",t],s);return(0,n.jsx)(Re,{className:"block-labeled-graphic",children:(0,n.jsx)(wse,{...e,editable:!1,isBlock:!0,isLessonBlocksList:o,parentId:t,progress:r})})},ue=z("block-survey"),Hp={2:[{value:"bad",icon:"face-anguished",defaultLabel:"Bad"},{value:"great",icon:"face-laugh",defaultLabel:"Great"}],3:[{value:"bad",icon:"face-anguished",defaultLabel:"Bad"},{value:"fair",icon:"face-meh",defaultLabel:"Fair"},{value:"great",icon:"face-laugh",defaultLabel:"Great"}],4:[{value:"bad",icon:"face-anguished",defaultLabel:"Bad"},{value:"fair",icon:"face-meh",defaultLabel:"Fair"},{value:"good",icon:"face-smile",defaultLabel:"Good"},{value:"great",icon:"face-laugh",defaultLabel:"Great"}],5:[{value:"bad",icon:"face-anguished",defaultLabel:"Bad"},{value:"poor",icon:"face-frown",defaultLabel:"Poor"},{value:"fair",icon:"face-meh",defaultLabel:"Fair"},{value:"good",icon:"face-smile",defaultLabel:"Good"},{value:"great",icon:"face-laugh",defaultLabel:"Great"}]},N8=Hp[5].map(e=>e.defaultLabel),Nu=e=>{const t=j8(e.labels?.length);return Hp[t]??Hp[Iu]},I8=(e,t)=>{const s=Nu(e).findIndex(o=>o.value===t);return s===-1?void 0:s+1},Rse=(e,t)=>Nu(e)[t-1]?.value,Pse=2,Mse=10,E8=5,Ose=7,Iu=3,Bse=5,j8=e=>e===2||e===3||e===4||e===5?e:Iu,Ec=null,P6e=e=>(Ec[e]??Ec[Iu]).map(t=>N8[t]),M6e=(e,t)=>{const s=j8(e?.length),o=Ec[s]??Ec[Iu],r=Ec[t],a=[...N8];return e?.forEach((i,c)=>{const l=o[c];l!==void 0&&(a[l]=i)}),r.map(i=>a[i])},Ja=e=>Array.isArray(e)?e.length===0:!e||e.trim()==="",Dse=(e,t,s)=>{const o=s?.items?.[e]?.items??{};return t.reduce((r,a)=>{const i=o?.[a.id]?.response;if(i==null)return r;if(a.questionType==="RATING"){const c=Rse(a,Number(i));c!=null&&(r[a.id]=c)}else r[a.id]=String(i);return r},{})},Hse=(e,t)=>t?.items?.[e]?.isSubmitted??!1,w8=(e,t)=>(0,n.jsx)(Ye,{className:"block-survey__question-title",id:t,value:e.question}),Fse=e=>(0,n.jsx)(Ye,{value:e.startLabel}),Vse=e=>(0,n.jsx)(Ye,{value:e.endLabel}),zse=(e,t)=>(0,n.jsx)(Ye,{className:"block-survey__rating-label",value:e.labels?.[t]});function $se({animateBlockEntrance:e,blockId:t,initiallyVisible:s,isLearner:o,items:r=[],labels:a,onSurveySubmitted:i=vs,onSurveyPartialResponse:c=vs,lessonId:l,onStep:d,onSubmit:h,progress:m,renderLinearScaleEndLabel:p=Vse,renderLinearScaleStartLabel:v=Fse,renderQuestionTitle:C=w8,renderRatingLabel:g=zse,settings:x={},title:S}){const L=Rt(),[b,y]=(0,u.useState)(()=>Dse(t,r,m)),[T,k]=(0,u.useState)(()=>Hse(t,m)),[N,I]=(0,u.useState)(!1),[w,R]=(0,u.useState)(!1),[E,j]=(0,u.useState)(new Set),[O,A]=(0,u.useState)(0),P=(0,u.useRef)(null),M=(0,u.useRef)(null),F=(0,u.useRef)(!1),B=(0,u.useCallback)(W=>{M.current=W},[]),{announcePolite:H}=An(),V=(0,Be.A)(T),K=x.cardMode==="TRANSPARENT",U=`validation-error-${t}`,X=x.surveyWidth??76,oe=Gd(X),Z=(0,u.useCallback)((W,de)=>{y(le=>({...le,[W]:de}));const ge=r.find(le=>le.id===W),pe=ge?.questionType==="RATING"?I8(ge,de):void 0;c({itemId:W,response:pe}),E.has(W)&&(j(Se=>{const ve=new Set(Se);return ve.delete(W),ve}),r.find(Se=>Se.id===W)&&r.filter(ve=>ve.isRequired&&ve.id!==W&&Ja(b[ve.id])).length===0&&R(!1))},[E,r,c,b]),_=(0,u.useCallback)((W,de)=>{y(ge=>({...ge,[W]:de})),c({itemId:W,response:de}),E.has(W)&&(j(pe=>{const le=new Set(pe);return le.delete(W),le}),r.filter(pe=>pe.isRequired&&pe.id!==W&&Ja(b[pe.id])).length===0&&R(!1))},[E,r,c,b]),D=(0,u.useCallback)((W,de)=>{y(ge=>{const pe=ge[W],le=Array.isArray(pe)?pe:[],Se=le.includes(de)?le.filter(ve=>ve!==de):[...le,de];return{...ge,[W]:Se}}),E.has(W)&&(j(pe=>{const le=new Set(pe);return le.delete(W),le}),r.filter(pe=>pe.isRequired&&pe.id!==W&&Ja(b[pe.id])).length===0&&R(!1))},[E,r,b]),$=(0,u.useCallback)((W,de)=>{y(ge=>({...ge,[W]:de})),c({itemId:W,response:Number(de)}),E.has(W)&&(j(pe=>{const le=new Set(pe);return le.delete(W),le}),r.find(pe=>pe.id===W)&&r.filter(le=>le.isRequired&&le.id!==W&&Ja(b[le.id])).length===0&&R(!1))},[E,r,c,b]),Q=(0,u.useCallback)((W,de,ge)=>{if(ge&&de.length>ge)return;const pe=b[W]||"",le=ge&&de.length===ge&&pe.length<ge;y(Se=>({...Se,[W]:de})),c({itemId:W,response:de}),le&&H(`Character limit reached. ${ge} characters maximum.`),E.has(W)&&de.trim()!==""&&(j(ve=>{const Ke=new Set(ve);return Ke.delete(W),Ke}),r.filter(ve=>ve.isRequired&&ve.id!==W&&Ja(b[ve.id])).length===0&&R(!1))},[H,r,c,b,E]),Y=(0,u.useCallback)(async()=>{if(!t||!l){console.error("Missing blockId or lessonId");return}I(!0);try{const W=r.flatMap(de=>{const ge=b[de.id],pe=Array.isArray(ge)?"":ge||"",le=L(de.question)??"",Se={id:String(t),lessonId:String(l),itemId:de.id,questionTitle:ws(String(le)),surveyTitle:ws(String(L(S)??"")),isUnfinished:!1};if(de.questionType==="RATING"){const ve=I8(de,pe);if(ve===void 0)return[];const Ke=Nu(de),Wt=Object.fromEntries(Ke.map((ts,It)=>[It+1,L(de.labels?.[It])??ts.defaultLabel]));return[{...Se,ratingOptions:Wt,type:de.questionType,response:ve}]}if(de.questionType==="LINEAR_SCALE")return[{...Se,type:"LINEAR_SCALE",response:pe===""?void 0:Number(pe)}];if(de.questionType==="MULTIPLE_CHOICE"||de.questionType==="MULTIPLE_RESPONSE"){const ve=de.choices??[],Wt=(Array.isArray(ge)?ge:ge?[ge]:[]).flatMap(ts=>{const It=ve.find(Dt=>Dt.id===ts);return It?[{id:It.id,title:ws(String(L(It.title)??""))}]:[]});return[{...Se,type:de.questionType,response:Wt}]}return[{...Se,type:de.questionType==="SHORT_RESPONSE"?"SHORT_RESPONSE":"LONG_RESPONSE",response:pe}]});window.Runtime?.reportUngradedAnswers&&await window.Runtime.reportUngradedAnswers(W),r.forEach(de=>d?.({id:de.id})),h?.(b),k(!0),i()}catch(W){console.error("Failed to submit survey:",W)}finally{I(!1)}},[t,l,r,b,d,h,S,L,i]),q=(0,u.useCallback)(W=>{if(W.preventDefault(),N)return;const ge=r.filter(pe=>pe.isRequired).filter(pe=>Ja(b[pe.id]));if(ge.length>0){R(!0),j(new Set(ge.map(pe=>pe.id))),F.current=!0,A(pe=>pe+1);return}Y()},[N,Y,r,b]);(0,u.useEffect)(()=>{F.current&&M.current&&(M.current.focus(),F.current=!1)},[O]),(0,u.useEffect)(()=>{!V&&T&&P.current&&P.current.focus()},[T,V]);const J=(0,u.useRef)(null),ee=(0,u.useRef)(new Map),te=(0,u.useCallback)((W,de)=>{const ge=ee.current;de?ge.set(String(W),de):ge.delete(String(W))},[]),se=C!==w8;(0,u.useEffect)(()=>{if(!se)return;const W=J.current;if(!W)return;const de=`.${String(ue("question-text"))}`,ge=pe=>{if(pe.button!==0)return;const le=pe.target;if(!(le instanceof HTMLElement))return;const Se=le.closest(de);if(!(Se instanceof HTMLElement)||le.closest('[contenteditable="true"]'))return;const ve=Se.dataset.surveyItemId,Ke=ve==null?void 0:ee.current.get(ve);Ke&&(pe.preventDefault(),Ke.setFocus())};return W.addEventListener("mousedown",ge),()=>W.removeEventListener("mousedown",ge)},[se]);const Te=(W,de)=>{const ge=b[W.id]||"",pe=`survey-q-${W.id}`,le=`${pe}-char-count`,Se=`${pe}-error`,ve=E.has(W.id),Ke=ve&&de===r.findIndex(Qe=>E.has(Qe.id));if(W.questionType==="LINEAR_SCALE"){const Qe=Math.min(Mse,Math.max(Pse,W.scaleMax??Bse)),Ht=Array.from({length:Qe},(be,we)=>we+1),Et=ue("linear-scale-options",{wide:Qe<=E8,medium:Qe>E8&&Qe<=Ose}),Kt=ue("linear-scale",{error:ve});return(0,n.jsxs)("fieldset",{"aria-describedby":ve?Se:void 0,className:ue("question",{error:ve}),ref:Ke?B:void 0,tabIndex:-1,children:[(0,n.jsxs)("legend",{className:ue("question-text"),"data-survey-item-id":String(W.id),children:[C(W,pe,te),W.isRequired&&(0,n.jsxs)("span",{className:ue("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRequired})]})]}),(0,n.jsx)("div",{className:ue("interactive"),children:(0,n.jsxs)("div",{className:Kt,children:[(0,n.jsx)("div",{className:ue("linear-scale-label"),children:v(W)}),(0,n.jsx)("div",{className:Et,children:Ht.map(be=>{const we=ge===String(be);return(0,n.jsxs)("label",{className:ue("linear-scale-option"),children:[(0,n.jsx)("span",{className:ue("linear-scale-number"),children:be}),(0,n.jsx)("div",{className:ue("linear-scale-indicator"),children:(0,n.jsx)(ie,{className:ue("linear-scale-dot",{active:we}),"data-testid":we?"linear-scale-dot-active":"linear-scale-dot",name:"circle-solid"})}),(0,n.jsx)("input",{checked:we,className:ue("linear-scale-input"),name:`survey-${W.id}`,onChange:()=>$(W.id,String(be)),type:"radio",value:String(be)})]},be)})}),(0,n.jsx)("div",{className:ue("linear-scale-label"),children:p(W)})]})}),ve&&(0,n.jsxs)("div",{className:ue("error-message"),id:Se,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyRatingRequired]})]},W.id)}if(W.questionType==="RATING"){const Qe=Nu(W).map((be,we)=>({value:be.value,label:W.labels?.[we],icon:be.icon})),Ht=ue("question",{error:ve}),Et=ue("rating-options",{error:ve}),Kt=ve?Se:void 0;return(0,n.jsxs)("fieldset",{"aria-describedby":Kt,className:Ht,ref:Ke?B:void 0,tabIndex:-1,children:[(0,n.jsxs)("legend",{className:ue("question-text"),"data-survey-item-id":String(W.id),children:[C(W,pe,te),W.isRequired&&(0,n.jsxs)("span",{className:ue("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRequired})]})]}),(0,n.jsx)("div",{className:ue("interactive"),children:(0,n.jsx)("div",{className:Et,children:Qe.map((be,we)=>{const et=ge===be.value,Qt=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{checked:et,className:ue("rating-input"),name:`survey-${W.id}`,onChange:()=>Z(W.id,be.value),type:"radio",value:be.value}),(0,n.jsx)(ie,{"aria-hidden":"true",className:ue("rating-icon"),name:be.icon}),g(W,we)]}),fs=ue("rating-option",{selected:et,error:ve,"two-options":Qe.length===2,"three-options":Qe.length===3,"four-options":Qe.length===4,"five-options":Qe.length===5});return K?(0,n.jsx)(Ut,{cardMode:"WHITE",className:fs,tag:"label",children:Qt},be.value):(0,n.jsx)("label",{className:fs,children:Qt},be.value)})})}),ve&&(0,n.jsxs)("div",{className:ue("error-message"),id:Se,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyRatingRequired]})]},W.id)}if(W.questionType==="MULTIPLE_CHOICE"){const Qe=W.choices??[],Ht=ue("choices",{error:ve});return(0,n.jsxs)("fieldset",{"aria-describedby":ve?Se:void 0,className:ue("question",{error:ve}),ref:Ke?B:void 0,tabIndex:-1,children:[(0,n.jsxs)("legend",{className:ue("question-text"),"data-survey-item-id":String(W.id),children:[C(W,pe,te),W.isRequired&&(0,n.jsxs)("span",{className:ue("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRequired})]})]}),(0,n.jsx)("div",{className:ue("interactive"),children:(0,n.jsx)("ul",{className:Ht,children:Qe.map(Et=>{const Kt=ge===Et.id;return(0,n.jsx)("li",{className:ue("choice"),children:(0,n.jsxs)("label",{className:ue("choice-option",{selected:Kt}),children:[(0,n.jsx)("input",{checked:Kt,className:ue("choice-input"),name:`survey-${W.id}`,onChange:()=>_(W.id,Et.id),type:"radio",value:Et.id}),(0,n.jsx)("span",{"aria-hidden":"true",className:ue("choice-indicator"),children:(0,n.jsx)(ie,{className:ue("choice-dot",{active:Kt}),name:"circle-solid"})}),(0,n.jsx)("span",{className:ue("choice-text"),children:(0,n.jsx)(Ye,{allowTabNavigation:!1,value:Et.title})})]})},Et.id)})})}),ve&&(0,n.jsxs)("div",{className:ue("error-message"),id:Se,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyMultipleChoiceRequired]})]},W.id)}if(W.questionType==="MULTIPLE_RESPONSE"){const Qe=W.choices??[],Ht=b[W.id],Et=Array.isArray(Ht)?Ht:[],Kt=ue("choices",{error:ve});return(0,n.jsxs)("fieldset",{"aria-describedby":ve?Se:void 0,className:ue("question",{error:ve}),ref:Ke?B:void 0,tabIndex:-1,children:[(0,n.jsxs)("legend",{className:ue("question-text"),"data-survey-item-id":String(W.id),children:[C(W,pe,te),W.isRequired&&(0,n.jsxs)("span",{className:ue("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRequired})]})]}),(0,n.jsx)("div",{className:ue("interactive"),children:(0,n.jsx)("ul",{className:Kt,children:Qe.map(be=>{const we=Et.includes(be.id);return(0,n.jsx)("li",{className:ue("choice"),children:(0,n.jsxs)("label",{className:ue("choice-option",{selected:we}),children:[(0,n.jsx)("input",{checked:we,className:ue("choice-input"),name:`survey-${W.id}`,onChange:()=>D(W.id,be.id),type:"checkbox",value:be.id}),(0,n.jsx)("span",{"aria-hidden":"true",className:ue("choice-indicator",{checkbox:!0}),children:(0,n.jsx)(ie,{className:ue("choice-check",{active:we}),name:"check"})}),(0,n.jsx)("span",{className:ue("choice-text"),children:(0,n.jsx)(Ye,{allowTabNavigation:!1,value:be.title})})]})},be.id)})})}),ve&&(0,n.jsxs)("div",{className:ue("error-message"),id:Se,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyMultipleResponseRequired]})]},W.id)}const Wt=Array.isArray(ge)?"":ge,ts=ue("question",{error:ve}),It=ue("text-input",{error:ve}),Dt=W.questionType==="SHORT_RESPONSE"||W.questionType==="LONG_RESPONSE"?W.maxLength:void 0,Tn=[ve?Se:null,Dt?le:null].filter(Boolean).join(" ")||void 0;return(0,n.jsxs)("div",{className:ts,children:[(0,n.jsxs)("div",{className:ue("question-text"),"data-survey-item-id":String(W.id),children:[C(W,pe,te),W.isRequired&&(0,n.jsxs)("span",{className:ue("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRequired})]})]}),(0,n.jsx)("div",{className:ue("interactive"),children:(0,n.jsxs)("div",{className:ue("text-response"),children:[(0,n.jsx)("textarea",{"aria-describedby":Tn,"aria-invalid":ve?!0:void 0,"aria-labelledby":pe,"aria-required":W.isRequired?!0:void 0,className:It,maxLength:Dt,onChange:Qe=>Q(W.id,Qe.target.value,Dt),ref:Ke?B:void 0,rows:W.questionType==="LONG_RESPONSE"?4:2,value:Wt}),Dt&&(0,n.jsxs)("div",{className:ue("character-count"),children:[(0,n.jsxs)("span",{"aria-hidden":"true",children:[Wt.length," / ",Dt]}),(0,n.jsx)("span",{className:"visually-hidden-always",id:le,children:`${a.a11yBlockSurveyCharCount} ${Wt.length} ${a.a11yPreposition} ${Dt}`})]})]})}),ve&&(0,n.jsxs)("div",{className:ue("error-message"),id:Se,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyFreeResponseRequired]})]},W.id)};return(0,n.jsx)(H1,{...x,children:(0,n.jsx)(Re,{className:ue(),children:(0,n.jsx)(Ve,{animateBlockEntrance:e,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{children:(0,n.jsx)(Ut,{className:ue("container",{[`custom-width-${oe}`]:!0}),children:T?(0,n.jsx)("div",{className:ue("confirmation"),ref:P,tabIndex:-1,children:(0,n.jsxs)("p",{className:ue("confirmation-text"),children:[(0,n.jsx)(ie,{name:"circle-check-regular"})," ",a.surveyConfirmation]})}):(0,n.jsxs)("form",{noValidate:!0,onSubmit:q,children:[S&&(0,n.jsx)(Ye,{className:ue("title"),tagName:"h2",value:S}),(0,n.jsx)("div",{className:ue("questions"),ref:J,children:r.map((W,de)=>Te(W,de))}),(0,n.jsxs)("div",{className:ue("actions"),children:[(0,n.jsx)("div",{className:ue("validation-error",{visible:w}),id:`validation-error-${t}`,role:"alert",children:w&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyValidationError]})}),(0,n.jsx)("div",{className:`${ue("submit")} brand--ui`,children:(0,n.jsx)("button",{"aria-describedby":w?U:void 0,className:ue("submit-button"),"data-testid":"survey-submit-button",disabled:N,type:"submit",children:N?a.surveySubmitting:a.surveySubmit})})]})]})})})})})})}const Fp=z("block-process-card"),A8=({icon:e,isOverlayAudio:t=!1,onClick:s,text:o,variant:r})=>{const a=`${r}-btn`;return(0,n.jsxs)("button",{className:Fp(a,{"audio-overlay":t}),onClick:s,type:"button",children:[(0,n.jsx)("span",{className:Fp(`${a}-text`),children:o}),(0,n.jsx)(ie,{classNameIcon:Fp(`${a}-icon`),name:e})]})},_se=z("block-process-card"),Use=({activeIndex:e,enableVideoPlaybackSpeed:t,id:s,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:i,labels:c,lessonId:l,media:d,onMediaLoad:h,settingZoomOnClick:m})=>{const{image:p}=d??{},v=a?p?.align??"center":"center",C=_se("media",{legacy:!1,"audio-overlay":a,[`audio-overlay-${v}`]:a,"intro-step":r}),g=e===o;return(0,n.jsx)("div",{className:C,children:(0,n.jsx)(es,{activeIndex:e,blockId:s,defaultAlign:"center",enableVideoPlaybackSpeed:t,hasPadding:!1,index:`${s}-${o}`,isOverlayAudio:a,item:i,itemIndex:o,labels:c,lessonId:l,media:d,onLoad:h,opts:{disableZoom:!m},shouldPause:!g})})};var Vp=f(82920);const _o=z("block-process-card"),Gse=({text:e})=>{const t=Vp.useRef(null),{isInView:s}=Wse({ref:t,threshold:.75});return(0,n.jsxs)("div",{className:_o("swipe-badge",{animate:s}),ref:t,children:[(0,n.jsx)("span",{className:_o("swipe-badge-text"),children:e}),(0,n.jsx)(ie,{className:_o("swipe-badge-icon"),name:"chevron-right-solid"})]})};function Wse({ref:e,rootMargin:t="0px",threshold:s=.1}){const[o,r]=Vp.useState(!1);return Vp.useEffect(()=>{if(!e.current||o)return;const a=new IntersectionObserver(([i])=>{i.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:t,threshold:s});return a.observe(e.current),()=>a.disconnect()},[o,e,t,s]),{isInView:o}}const Kse=({activeIndex:e,className:t,description:s,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:i,item:c,labels:l,lessonId:d,media:h,onClickRestart:m,onClickStart:p,settingAudioPosition:v,settingHeadingLevel:C=2,settingShowStepLabel:g=!0,settingStepLabel:x,settingZoomOnClick:S,showSwipeBadge:L,style:b,title:y,totalSteps:T,type:k})=>{const N=`h${C}`,I=k==="intro",w=k==="summary",R=k==="step",E=r?i:i+1,j=Oe(x)||l.processStepName,O=Oe(Array.isArray(h)?{}:h),A=Ln(O,v,!0,"process"),P=()=>{if(!h)return null;const M={activeIndex:e,blockId:a,enableVideoPlaybackSpeed:o,id:a,index:i,isIntroStep:I,labels:l,lessonId:d,media:h,onMediaLoad:()=>{},settingZoomOnClick:S,item:c},F={audio:{media:A.audioOnlyMedia||O,isOverlayAudio:!1},image:{media:A.imageOnlyMedia||O,isOverlayAudio:!1},video:{media:A.videoOnlyMedia||O},embed:{media:A.embedOnlyMedia||O,isOverlayAudio:!1},overlay:{media:O,isOverlayAudio:!1}};return A.renderOrder.map((B,H)=>{if(B==="text")return(0,n.jsx)(ke,{className:_o("description"),value:s},`text-${H}`);const V=F[B];return V?(0,n.jsx)(Use,{...M,...V},`${B}-${H}`):null})};return(0,n.jsxs)("div",{className:_o(null,{[k]:!0}).mix(t),style:b,children:[R&&g&&(0,n.jsx)("div",{className:_o("number"),children:`${j} ${E}`}),(0,n.jsx)("div",{className:_o("title"),children:(0,n.jsx)(N,{children:(0,n.jsx)(ke,{value:y})})}),P(),!h&&(0,n.jsx)(ke,{className:_o("description"),value:s}),I&&T>1&&(0,n.jsx)(A8,{icon:"chevron-right-solid",isOverlayAudio:A.isOverlayAudio,onClick:p,text:l.processStart,variant:"start"}),w&&T>1&&(0,n.jsx)(A8,{icon:"arrow-rotate-left",isOverlayAudio:A.isOverlayAudio,onClick:m,text:l.processStartAgain,variant:"restart"}),L&&R&&(0,n.jsx)(Gse,{text:l.processSwipe})]})};var Gn=f(82920);const Qse=z("block-process-carousel"),R8=e=>e?.type==="intro",zp=e=>e?.type==="summary",$p=e=>e?.type==="step",P8=e=>e?.isHidden,Zse=({animateBlockEntrance:e,enableVideoPlaybackSpeed:t,id:s,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:c,onStep:l,onTranscriptUpdate:d,previewType:h,processRef:m,settings:{audioPosition:p,headingLevel:v,stepLabel:C,showStepLabel:g,zoomOnClick:x}})=>{const S=kt(480),L=l1(),b=Rt(),y=Gn.useRef(null),[T,k]=Gn.useState(0),[N,I]=Gn.useState(!1),w=Gn.useMemo(()=>h===ar.MOBILE_PORTRAIT||h===ar.MOBILE_LANDSCAPE,[h]),R=Gn.useMemo(()=>{const V=a.filter(oe=>!P8(oe)),K=V.find(R8),U=V.find(zp),X=V.filter($p);return[K,...X,U].filter(Boolean)},[a]),E=Gn.useMemo(()=>R.findIndex((V,K)=>$p(V)&&($p(R[K+1])||zp(R[K+1]))),[R]),j=R8(R[0]),O=zp(R[R.length-1]),A=!!h;Gn.useEffect(()=>{l&&(a.forEach(V=>P8(V)&&l(V)),R.length>0&&l(R[0]))},[]);const P=Gn.useCallback(()=>{y.current?.navigateToSlide?.(0)},[]),M=Gn.useCallback(()=>{y.current?.navigateToSlide?.(1)},[]),F=Gn.useCallback(V=>{if(k(V),m.current){const X=m.current.closest("[data-block-id]")??m.current;aZ(X,{offsetTop:document.getElementById("app-header")?.offsetHeight??0})}V!==E&&!N&&I(!0),l?.(R[V]);const K=R[V]?.media;b(K)?.audio&&d?.({audioPlayerId:yn({refs:`items:${s}/items:${R[V]?.id}`}),transcriptMedia:K})},[R,E,b,N,s,l,d,m]),B=({index:V,isActive:K,onClick:U,onKeyDown:X})=>{const oe=j&&V===0,Z=O&&V===R.length-1,_=j?V:V+1;let D,$;oe?(D=i?.a11yBlockProcessSlideControlsIntroduction,$=(0,n.jsx)(ie,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):Z?(D=i?.a11yBlockProcessSlideControlsSummary,$=(0,n.jsx)(ie,{name:"check-regular"})):(D=_.toString(),$=_.toString());const Q=`${i?.a11yBlockProcessSlideControlsGoToSlide} ${D}`;return(0,n.jsx)(Z4,{"aria-label":Q,ariaLabel:Q,className:"carousel-controls-item-btn",isActive:K,onClick:U,onKeyDown:X,children:$},V)},H=e?"fadeIn":"none";return(0,n.jsx)(Ve,{animateBlockEntrance:A,animateIn:H,duration:A&&e?1:0,initiallyVisible:o,isLearner:r,children:(0,n.jsx)("div",{className:Qse(),children:(0,n.jsx)(tu,{blockId:s,carouselRef:y,items:R,children:()=>(0,n.jsx)(eu,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:L,labelCarousel:i?.a11yBlockProcessCarousel,labelCarouselRoleDesc:i?.a11yBlockProcessRoleDescription,labelSlideControls:i?.a11yBlockProcessSlideControls,labelSlideControlsGoToNext:i?.a11yBlockProcessSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockProcessSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockProcessSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockProcessSlidePreposition,labelSlideRoleDesc:i?.a11yBlockProcessSlideRoleDescription,onChange:F,ref:y,renderSlideIndicator:B,shouldMouseEmulateTouch:w,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:R.map((V,K)=>(0,n.jsx)(Ut,{activeIndex:T,description:V.description,enableVideoPlaybackSpeed:t,hasIntro:j,id:s,index:K,isHidden:V.isHidden,item:V,labels:i,lessonId:c,media:V.media,onClickRestart:P,onClickStart:M,settingAudioPosition:p,settingHeadingLevel:v,settingShowStepLabel:g,settingStepLabel:C,settingZoomOnClick:x,showSwipeBadge:S&&!N&&K===E,tag:Kse,title:V.title,totalSteps:R.length,type:V.type},V.id))})})})})};var Yse=f(82920);const Xse=e=>{const{blockId:t}=e,s=Yse.useRef(null);return(0,n.jsx)(Re,{className:"block-process",ref:s,children:(0,n.jsx)(Zse,{id:t,processRef:s,...e})})};var qse=f(11842),Jse=f.n(qse),ene=f(41569),M8=f.n(ene),tne=f(61417),O8=f.n(tne),sne=f(10285),nne=f.n(sne),one=f(39602),Uo=f.n(one);const B8=e=>({...e.responses[e.response],hasCharacter:e.hasCharacter,type:"response"}),rne=(e,t)=>{const s=e.responses[e.response],o={emotion:t.emotion,goTo:t.goTo,nextSlide:t.nextSlide},r="action"in t?{action:t.action}:{};return{...o,...r,description:s?.feedback||"",type:"dialogue",hasCharacter:e.hasCharacter}},ane=e=>[B8(e)],ine=e=>{const t=!!e.responses[e.response],s=B8(e),o=rne(e,s);return t?[s,o]:[o]},cne=e=>e.hasFeedback?[e,...ine(e)]:e.response!=null?[e,...ane(e)]:[e],lne=(e,t)=>{if(!t)return;const{scene:s,slide:o}=t,r=e.findIndex(c=>c.id===s),i=(e[r]?.slides||[]).findIndex(c=>c.id===o);return{scene:r,slide:i}},D8=Nl()(lne);var dne=f(41182),une=f.n(dne);const hne=dt()(Ae()("filters"),kn()(He()("name","rise_emotion")),Yr()(St())),mne=dt()(Ae()("filters"),Ks()(He()("name","rise_emotion")),Ae()("value")),H8=e=>new URL(e).pathname.slice(1),pne=e=>dt()(xs()("key",H8(e.src)),xs()("thumbnailKey",H8(e.thumbnail)))(e),fne=dt()(Ae()("poses"),kn()(hne),lt()(e=>[mne(e),e]),une(),As()(pne));var B6e,Wn=f(82920);const _p=e=>e===-1?null:e,gne=e=>ss()(at(),Ie(),e),F8=Yr()(at()),ei=Ud()(F8,mn),V8=Jse()(Vm()),z8=gne(Nj),Up=e=>bs()(e);class vne extends Wn.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=Wn.createRef();responseItemRef=Wn.createRef();scenarioRef=Wn.createRef();blockContentRef=Wn.createRef();endRef=Wn.createRef();textRef=Wn.createRef();refs=Wn.createRef();dynamicRefs=Wn.createRef();fadeObservers=new Map;shouldFocus=!1;constructor(t){super(t);const s={activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:{}};this.refs.current={},this.state=t.initialState||s,this.fetchCharacters=this.fetchCharacters.bind(this),this.fetchCharacterPose=this.fetchCharacterPose.bind(this),this.getCharacterPose=this.getCharacterPose.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onClick=this.onClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onInit=this.onInit.bind(this),this.onResize=this.onResize.bind(this),this.onResponseClick=this.onResponseClick.bind(this),this.onTryAgainClick=this.onTryAgainClick.bind(this),this.renderBackground=this.renderBackground.bind(this),this.renderButton=this.renderButton.bind(this),this.renderDetails=this.renderDetails.bind(this),this.renderDialogues=this.renderDialogues.bind(this),this.renderEnd=this.renderEnd.bind(this),this.renderPose=this.renderPose.bind(this),this.renderResponse=this.renderResponse.bind(this),this.renderText=this.renderText.bind(this),this.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(t){if(!t)return;const s=this.fadeObservers.get(t);s&&(s.observer.disconnect(),t.removeEventListener("scroll",s.scrollHandler),this.fadeObservers.delete(t));const o=Array.from(t.children).find(d=>d.className.includes("-bottom"));if(!o)return;const r=t.parentElement?.classList.contains("scenario-block__dialogue__bubble")||t.parentElement?.classList.contains("scenario-block__dialogue__pane")?t.parentElement:t,a=()=>{const{scrollHeight:d,clientHeight:h}=t;return d>h+2},i=d=>{const h=d?.[0]?.isIntersecting??!1,m=a();m?r.classList.add("has-overflow"):r.classList.remove("has-overflow"),!h&&m?r.classList.add("show-fade"):r.classList.remove("show-fade")},c=new IntersectionObserver(i,{root:t,threshold:[0,1]}),l=()=>{};this.fadeObservers.set(t,{observer:c,scrollHandler:l}),c.observe(o)}componentDidMount(){const{initialState:t,items:s}=this.props,o=me()(Qr()("poses"),jt()({},"character"),Up);ei(s)&&!o(s)&&this.fetchCharacters(),t||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(Ze,this.handleNavEvent)}handleNavEvent(t){const{path:s}=t.detail,{blockId:o,sceneId:r,slideId:a,responseId:i}=Ta(s,["block","scene"]),c=s.at(-1)==="feedback";if(o!==this.props.blockId)return;const l=_p(this.props.items.findIndex(m=>m.id===r)),d=l!==null?_p(this.props.items[l].slides.findIndex(m=>m.id===a)):null,h=d!==null?_p(this.props.items[l].slides[d].responses.findIndex(m=>m.id===i)):null;this.setState({activeScene:l??0,activeSlide:d??0},()=>{l!==null&&d!==null&&this.setState({slides:{...this.state.slides,[`${l}.${d}`]:{...this.state.slides[`${l}.${d}`],hasFeedback:c,response:h}}})})}componentDidUpdate(){const{items:t,onStep:s}=this.props,{activeScene:o,activeSlide:r}=this.state,a=_e()([],[o,"slides"],t),i=_e()(null,[r,"goTo"],a),c=_e()(null,[r,"type"],a);if(s&&(i==="end"&&c==="text"||!i&&!c)&&O8()(s,t),this.shouldFocus){this.shouldFocus=!1;const m=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');m?m.focus():wm(this.scenarioRef.current)}this.fadeObservers.forEach(({observer:m,scrollHandler:p},v)=>{document.contains(v)||(m.disconnect(),v.removeEventListener("scroll",p),this.fadeObservers.delete(v))})}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener(Ze,this.handleNavEvent),this.fadeObservers.forEach(({observer:t,scrollHandler:s},o)=>{t.disconnect(),o.removeEventListener("scroll",s)}),this.fadeObservers.clear()}getActiveScene(){return this.getScene(this.state.activeScene)}getScene(t){const{items:s}=this.props;return s&&t>=0&&t<s.length?s[t]:null}fetchCharacterPose(t,s){const o=this.getScene(t),r=o?.slides,a=r&&s>=0&&s<r.length;if(!o||!r||!a)return{name:"",pose:null};const{character:i}=o,c=r[s],l=`${t}.${s}`,d=[l,"response"],h=[l,"hasFeedback"],m=_e()(null,d,this.state.slides),p=_e()(!1,h,this.state.slides),v=jt()("neutral","emotion",c),C=ss()(Me()(p),_e()(v,["responses",m,"emotion"]),Me()(v)),g=dt()(_e()(i?.poses?.neutral,["poses",C(c)]),z8);return{name:i?.name||"",pose:g(i)}}fetchCharacters(){const{getCharacter:t,items:s,onItemUpdate:o}=this.props,r=En()(["id","name","poses","src"]),a=c=>l=>o({itemId:c,payload:{character:l}}),i=({character:c,id:l})=>ei(c)&&t(c.id).then(d=>xs()("poses",fne(d),d)).then(r).then(a(l));s.map(i)}isCharacterHidden(){const{items:t}=this.props,{activeScene:s,activeSlide:o}=this.state,a=this.getActiveScene()?.slides?.[o],i=o===null,c=t[s];return i?!(c?.slidesHaveCharacterByDefault??!1):a&&!a.hasCharacter}getCharacterPose(){const{items:t}=this.props,{activeScene:s,activeSlide:o,prevScene:r,prevSlide:a}=this.state,i=_e()([],[s,"slides"],t),c=_e()(!0,[o,"hasCharacter"],i);return F8(r)&&ki()(c)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(s,o)}onClick(t,s){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:i}=this.state,c=this.getActiveScene()?.slides,l=jt()(null,"type",c?.[i])==="dialogue",d=a===o.length-1,h=i===(c?.length??0)-1,m={activeSlide:i+1},p={activeScene:a+1,activeSlide:0},v={activeSlide:null},C={activeScene:0,activeSlide:0},g=dt()(D8(o),y=>({activeScene:y.scene,activeSlide:y.slide})),x=Cs()([[Me()(h&&d),Me()(v)],[Me()(h&&!d),Me()(p)],[or(),Me()(m)]]),S=ss()(Me()(l),Me()(v),Me()(C)),L=Cs()([[rs()("slide"),Uo()(g,[s])],[rs()("next"),x],[rs()("end"),S]]),b=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,i),0),this.setState({prevScene:a,prevSlide:i}),this.setState(L(t),b),t==="end"&&this.resetSlides(),t==="end"&&r&&O8()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}onResponseClick(t,s){const{activeScene:o,activeSlide:r,slides:a}=this.state,{getL10nValue:i,lessonId:c,blockId:l}=this.props,d=`${o}.${r}`,h=xs()("response",t),m=xs()("hasFeedback",!0),p=Xn()({[`${d}`]:h}),v=Xn()({[`${d}`]:m});s.media&&i(s.media)?.audio&&Ce.playerId===`audio-${c}-${l}`&&Ce.pause();const g=me()(v,p);this.setState({slides:p(a)},()=>{this.shouldFocus=!0,this.setState({slides:g(a)})})}onTryAgainClick(){const{activeScene:t,activeSlide:s,slides:o}=this.state,r=`${t}.${s}`,a=M8()({hasFeedback:null,response:null}),i=Xn()({[`${r}`]:a});this.setState({slides:i(o)})}render(){const{blockId:t,getL10nValue:s,isPDF:o,items:r,labels:a}=this.props,{activeScene:i,activeSlide:c,initiated:l}=this.state,h=this.getActiveScene()?.slides?.[c],m=me()(mn,jt()({},"character"),Up),p=me()(Qr()("poses"),jt()({},"character"),Up),v=me()(Zt(),_e()({},["character","poses"])),C=me()(li(),Zt(),lt()(v)),g=this.isCharacterHidden(),x=G()("scenario-block",{"scenario-block--initiated":l,"scenario-block--mobile":co.isMobile,"scenario-block--loading":m(r)&&!p(r),"scenario-block--character-hidden":g}),S=`scenario-live-${t}`,L={"aria-label":a?.a11yGroupScenario,"aria-describedby":S,className:x,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:void 0},b=mt(s(r?.[0].background?.media)?.image),y=Cs()([[at(),this.renderEnd],[He()("type","dialogue"),this.renderDialogues],[He()("type","text"),this.renderText],[or(),Me()(null)]]),T=G()("scenario-block__character",{"scenario-block__character--hidden":g}),k=`${i}.${c}`,N=this.state.slides[k],I=N?.hasFeedback?h?.responses?.[N?.response]?.alt:h?.alt,w=s(I);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{...L,"data-l10n-id":wt(I),children:[(0,n.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:S,children:w}),(0,n.jsx)("div",{className:"scenario-block__spinner"}),(0,n.jsx)("div",{className:"scenario-block__background-wrapper",children:ei(r)&&r.map(this.renderBackground)}),b&&(0,n.jsx)(ks,{alt:"",onLoad:this.onInit,src:b}),(0,n.jsxs)("div",{className:"scenario-block__inner",children:[(0,n.jsx)("div",{className:T,children:p(r)&&C(r).map(this.renderPose)}),(0,n.jsx)(qo,{children:ei(r)&&y(h)})]})]}),o&&h&&this.renderDetails(h)]})}renderBackground(t,s){const{activeScene:o}=this.state,{id:r,blurBackground:a}=t,i=this.props.getL10nValue(t?.background?.media)?.image,c=G()("scenario-block__background",{"scenario-block__background--active":o===s,"scenario-block__background--blur":a??!0}),l=mt(i);return l?(0,n.jsx)(ks,{alt:"",className:c,src:l},r):(0,n.jsx)(n.Fragment,{})}renderButton(t){const{labels:s}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=s,{goTo:a,nextSlide:i}=t,c="action"in t?t.action:void 0,l={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},d=c==="tryAgain"?(0,n.jsxs)("span",{children:[r," ",(0,n.jsx)("i",{className:"icon icon-reload"})]}):(0,n.jsx)("span",{children:o}),m={className:"scenario-block__dialogue__button",key:"button",onClick:c==="tryAgain"?me()(this.onFocus,this.onTryAgainClick):me()(this.onFocus,Uo()(this.onClick,[a,i]))};return(0,n.jsx)(qo,{children:(0,n.jsx)(Yn,{...l,children:(0,n.jsx)("button",{...m,type:"button",children:d})})})}renderDetails(t){const{items:s}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:i}=t,c=(m,p)=>(0,n.jsxs)("span",{children:[m," ",(0,n.jsx)(_H,{})," ",p]},m),l=dt()(D8(s),m=>`Scene ${m.scene+1} Slide ${m.slide+1}`),d=(m,{goTo:p,nextSlide:v})=>Cs()([[rs()("next"),Uo()(c,[m,"Next Slide"])],[rs()("end"),Uo()(c,[m,"End of Scenario"])],[or(),Uo()(c,[m,l(v||{})])]])(p),h=i==="text"?d("Continue",t):a.map((m,p)=>d(p,m));return(0,n.jsxs)("div",{className:"scenario-block__pdf-details",children:[(0,n.jsxs)("h3",{children:["Scene ",o+1," Slide ",r+1]}),h]})}renderDialogue(t,s,o){const{description:r,id:a,hasCharacter:i}=s,c="type"in s?s.type:void 0,{count:l,firstKey:d,hasFeedback:h,slide:m,totalDialogues:p}=t,v=o===0?a:o,C=o===1?d:o-1,g=o===0&&l===1,x=o===l,S=c==="dialogue"&&(g||x),L=this.dynamicRefs.current[`dialogue-${v}`],b=x&&this.dynamicRefs.current[`dialogue-${C}`],y=L&&L.offsetHeight,T=x&&b&&b.offsetHeight,k=h?30:0,N=window.innerWidth<480?20:30,I=N*2+60+T-k,w=N+60-k,R=nne()(y+k-60),E=Wn.createRef(),{settings:j,getL10nValue:O}=this.props,A=j?.audioPosition,P=O(m.media),M=Ln(P,A),F=M.renderOrder.indexOf("audio")<M.renderOrder.indexOf("text"),B=!!P?.audio,H=h&&o===p-1,V=G()("scenario-block__dialogue",{"scenario-block__dialogue--response":c==="response","scenario-block__dialogue--feedback":H,"scenario-block__dialogue--done":o<l-1,"scenario-block__dialogue--audio-top":F&&B}),K=Cs()([[Me()(g),Me()(null)],[rs()(l),Me()({top:`${I}px`})],[rs()(l-1),Me()({top:`${w}px`})],[rs()(l-2),Me()({top:`${R}px`})],[or(),Me()({top:`-${y+30}px`})]]),U={className:V,ref:$=>{this.dynamicRefs.current[`dialogue-${v}`]=$},style:K(o)},X={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:E,key:o,timeout:{enter:400,exit:400}},oe=G()({"scenario-block__dialogue__bubble":i||c==="response","scenario-block__dialogue__pane":!i}),Z=this.props.getL10nValue(r)||"",_=c!=="response"&&!H&&B&&F&&(0,n.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(m)}),D=(0,n.jsxs)("div",{className:oe,"data-scenario-focus":S?"":void 0,tabIndex:S?-1:void 0,children:[_,(0,n.jsxs)("div",{className:"scenario-block__dialogue__bubble__content",ref:this.setupFadeObserver,children:[c!=="response"&&!H?this.renderDialogueWithAudioPositioning(m,Z,M):(0,n.jsx)(ke,{value:Z}),(0,n.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})]});return(0,n.jsx)(Yn,{...X,children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{...U,children:ei(r)&&D})})})}renderDialogues(t){const{activeScene:s,activeSlide:o,slides:r}=this.state,{id:a,responses:i}=t,c=`${s}.${o}`,l=r[c]||{},h=me()(li(),cne,Nn()(l))(t),{hasFeedback:m,response:p}=l,{feedback:v}=i[p]||{},C=at()(p)&&mn(i),g=m?h.length-1:h.length,x=(g===1&&St()(i)||g===2&&mn(i))&&m,S={count:g,firstKey:_e()(null,[0,"id"],h),hasFeedback:m&&ei(v),slide:t,totalDialogues:h.length},L={classNames:"scenario-block__content-",nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},b=(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom__inner",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__responses",children:(0,n.jsx)(qo,{component:"ol",role:"list",children:i.map((y,T)=>this.renderResponse(y,t,T))})})})});return(0,n.jsx)(Yn,{...L,children:(0,n.jsx)("div",{className:"scenario-block__dialogues scenario-block__content",children:(0,n.jsxs)("div",{className:"scenario-block__dialogues__inner",children:[(0,n.jsx)("div",{className:"scenario-block__dialogues__top",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__top__inner",children:(0,n.jsx)(qo,{children:h.map(this.renderDialogue.bind(this,S))})})}),C&&b,x&&this.renderButton(h[g-1])]})})},a)}renderEnd(){const{labels:t}=this.props,{scenarioComplete:s,scenarioStartOver:o}=t,r=me()(this.onFocus,Uo()(this.onClick,["end",null])),a=G()(["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,n.jsx)(Yn,{...i,children:(0,n.jsx)("div",{className:a,children:(0,n.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[(0,n.jsx)("div",{className:"scenario-block__text__title",children:(0,n.jsx)("h2",{children:s})}),(0,n.jsxs)("button",{className:"scenario-block__text__end",onClick:r,type:"button",children:[(0,n.jsx)("span",{children:o}),(0,n.jsx)("i",{className:"icon icon-reload"})]})]})},"end")},"end")}renderPose(t,s){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=t,i=z8(t),c=Ud()(He()("name","style")),l=c(He()("value","left_aligned")),d=c(He()("value","right_aligned")),h=G()("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()(l,r)});return(0,n.jsx)("div",{className:h,"data-pose-id":a,children:(0,n.jsx)(ks,{alt:"",src:i})},`pose-${s}-${a}`)}renderResponse({description:t},s,o){const{isPDF:r}=this.props,a=r?xne:me()(this.onFocus,Uo()(this.onResponseClick,[o,s])),i=v=>{const g=v.currentTarget.querySelector(".scenario-block__response__inner");if(g){const x=g.getBoundingClientRect();if(v.clientX>x.right-16){v.preventDefault();return}}a(v)},c=v=>{const g=v.currentTarget.querySelector(".scenario-block__response__inner");if(g){const x=g.getBoundingClientRect();v.clientX>x.right-16?g.classList.add("hovering-scrollbar"):g.classList.remove("hovering-scrollbar")}},l=v=>{const g=v.currentTarget.querySelector(".scenario-block__response__inner");g&&g.classList.remove("hovering-scrollbar")},d=G()(["scenario-block__response",`scenario-block__response--${o}`]),h=G()("scenario-block__response-item",`scenario-block__response-item--${o}`),m={appear:!0,classNames:"scenario-block__response-item-",nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},p=(0,n.jsx)("button",{className:d,onClick:i,onMouseLeave:l,onMouseMove:c,type:"button",children:(0,n.jsxs)("div",{className:"scenario-block__response__inner",ref:this.setupFadeObserver,children:[(0,n.jsx)("div",{className:"scenario-block__response__number",children:o+1}),(0,n.jsx)(ke,{value:t}),(0,n.jsx)("div",{className:"scenario-block__response__inner-bottom"})]})});return(0,n.jsx)(Yn,{...m,children:(0,n.jsx)("li",{className:h,role:"listitem",children:p})},o)}renderText(t){const{description:s,goTo:o,hasCharacter:r,id:a,nextSlide:i}=t,c=this.props.getL10nValue(t.title),l=this.props.getL10nValue(s)||"",{labels:d,settings:h,getL10nValue:m}=this.props,{scenarioContinue:p,scenarioStartOver:v}=d,C=!s&&(c||"").length<22,g=h?.audioPosition,x=m(t.media),S=Ln(x,g),L=S.renderOrder.indexOf("audio")<S.renderOrder.indexOf("text"),b=!!x?.audio,y=G()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":C,"scenario-block__text--audio-top":L&&b}),T={classNames:"scenario-block__content-",nodeRef:this.textRef,timeout:{enter:0,exit:400}},k=h?.headingLevel,N=k?`h${k}`:"h2",I=`scenario-title-${a}`,w=`scenario-description-${a}`,R=`${I} ${w}`,E=G()("scenario-block__text__inner",{"scenario-block__text__inner--end":o==="end"}),j=G()("scenario-block__text__title",{"scenario-block__text__title--end":o==="end"}),O=(0,n.jsx)("div",{className:j,"data-l10n-id":wt(t.title),id:I,children:(0,n.jsx)(N,{children:c})}),A=b&&L&&(0,n.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(t)}),P=(0,n.jsx)("div",{className:"scenario-block__text__description",id:w,ref:this.setupFadeObserver,children:this.renderTextWithAudioPositioning(t,l,S)}),M=me()(this.onFocus,Uo()(this.onClick,[o,i])),F=(0,n.jsx)("button",{"aria-describedby":R,className:"scenario-block__text__continue",onClick:M,type:"button",children:(0,n.jsx)("span",{children:p})}),B=(0,n.jsxs)("button",{"aria-describedby":R,className:"scenario-block__text__end",onClick:M,type:"button",children:[(0,n.jsx)("span",{children:v}),(0,n.jsx)("i",{className:"icon icon-reload"})]});return(0,n.jsx)(Yn,{...T,children:(0,n.jsx)("div",{className:y,children:(0,n.jsxs)("div",{className:E,"data-scenario-focus":"",tabIndex:-1,children:[c&&O,A,s&&P,o==="end"?B:F]})},a)},a)}renderAudioMedia(t){const{blockId:s,getL10nValue:o,labels:r,lessonId:a,items:i,settings:c}=this.props,l=o(t.media),d=i?.[this.state.activeScene];return l?(0,n.jsx)(es,{blockId:s,index:s,item:t,labels:r,lessonId:a,lessonNumber:a,media:l,refs:`items:${s}/items:${d.id}/slides:${t.id}`,shouldPause:t.type!=="dialogue",volumeSliderPosition:c?.audioPosition==="top"?"below":"above"}):null}renderDialogueWithAudioPositioning(t,s,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,n.jsxs)(n.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(ke,{value:s})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(t);return c?(0,n.jsx)("div",{children:c},`audio-${i}`):null}return null}),(0,n.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})}renderTextWithAudioPositioning(t,s,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,n.jsxs)(n.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(ke,{value:s})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(t);return c?(0,n.jsx)("div",{children:c},`audio-${i}`):null}return null}),(0,n.jsx)("div",{className:"scenario-block__text__description-bottom"})]})}resetSlide(t,s){const{slides:o}=this.state,r=`${t}.${s}`,a={hasFeedback:!1,response:null};this.setState({slides:xs()(r,a,o)})}resetSlides(){const{items:t}=this.props,s=r=>(a,i,c)=>{const{type:l,responses:d=[]}=i,h=l==="dialogue"&&d.length===0;return xs()(`${r}.${c}`,{hasFeedback:h,response:null},a)},o=(r,a,i)=>dt()(jt()([],"slides"),V8(s(i),{}),M8()(r))(a);this.setState({slides:V8(o,{},t)})}setNextSlide(){const{activeScene:t,activeSlide:s,slides:o}=this.state,r=this.getActiveScene()?.slides;if(!r)return;const{responses:a=[],type:i}=r[s]||{},c=`${t}.${s}`,l=xs()("hasFeedback",!0),d=Xn()({[c]:l});i==="dialogue"&&St()(a)&&(this.shouldFocus=!0,this.setState({slides:d(o)}))}shouldComponentUpdate(t,s){return t.items!==this.props.items||t.settings!==this.props.settings||s.activeScene!==this.state.activeScene||s.activeSlide!==this.state.activeSlide||s.initiated!==this.state.initiated||s.resizes!==this.state.resizes||s.slides!==this.state.slides||t.labels!==this.props.labels}}const Cne=e=>{const t=Rt();return(0,n.jsx)(vne,{...e,getL10nValue:t})};function xne(){}var bne=f(82920);class yne extends bne.Component{render(){const{animateBlockEntrance:t,isLearner:s,previewType:o,initiallyVisible:r}=this.props,a=!at()(o),l={animateBlockEntrance:a,animateIn:t?"fadeIn":"none",duration:a&&t?1:0,initiallyVisible:r,isLearner:s};return(0,n.jsx)(Re,{className:"block-scenario",children:(0,n.jsx)(Ve,{...l,children:(0,n.jsx)(Cne,{...this.props})})})}}var Lne=f(10608),Eu=f.n(Lne);function Sne(e){e&&(e.addEventListener("touchstart",Go,!0),e.addEventListener("touchmove",Go,!0),e.addEventListener("touchcancel",Go,!0),e.addEventListener("touchend",Go,!0))}function Tne(e){e&&(e.removeEventListener("touchstart",Go,!0),e.removeEventListener("touchmove",Go,!0),e.removeEventListener("touchcancel",Go,!0),e.removeEventListener("touchend",Go,!0))}function Go(e){e?.stopPropagation?.()}const ti=z("playing-card"),$8=({id:e,isDeckTopCard:t,title:s,ref:o})=>{const[r,a]=(0,u.useState)(!1),[i,c]=(0,u.useState)(!1),[l,d]=(0,u.useState)({x:0,y:0}),[h,m]=(0,u.useState)(!0),[p,v]=(0,u.useState)(!1),[C,g]=(0,u.useState)(0),x=At(),S=Rt(),L=cs(),b=(0,u.useRef)(null),y=(0,u.useRef)(null),T=(0,u.useRef)(void 0),k=(0,u.useRef)(void 0),N=(0,u.useRef)(!1),I=(0,u.useCallback)(()=>{const{innerWidth:B}=window,H=b.current&&b.current.scrollHeight>b.current.clientHeight,V=B<C;H&&B>C&&g(B),v(H||V)},[C]),w=(0,u.useRef)(()=>{a(!0),c(!1)}),R=(0,u.useRef)(()=>{a(!1)});(0,u.useImperativeHandle)(o,()=>({onStartSortAttempt:w.current,onEndSortAttempt:R.current})),(0,u.useEffect)(()=>{const B=setTimeout(()=>{m(!1)},300);return()=>clearTimeout(B)},[]),(0,u.useEffect)(()=>{const B=y.current;if(!B)return;const H=()=>{a(!0),c(!1)},V=({dx:U,dy:X})=>{d(oe=>({x:oe.x+U,y:oe.y+X}))},K=()=>{a(!1)};return w.current=H,R.current=K,Sne(B),Un(B).draggable({inertia:!0,autoScroll:!1,modifiers:[Un.modifiers.snap({targets:[(U,X)=>({x:U,y:X})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}).on("dragstart",H).on("dragmove",V).on("dragend",K),I(),T.current=fu()(I,250),window.addEventListener("resize",T.current),()=>{Tne(B),Un(B).off("dragstart",H).off("dragmove",V).off("dragend",K),T.current&&(T.current.cancel(),window.removeEventListener("resize",T.current)),clearTimeout(k.current)}},[I]),(0,u.useEffect)(()=>{I()},[e,I]),(0,u.useEffect)(()=>{const B=N.current;N.current=r,B&&!r&&(c(!0),clearTimeout(k.current),k.current=setTimeout(()=>{d({x:0,y:0}),c(!1)},300))},[r]);const E=L?.backgroundType===ne.ACCENT||L?.backgroundType===ne.IMAGE,j=`translate3d(${l.x}px, ${l.y}px, 0)`,O={WebkitTransform:j,transform:j},A=ti("title",{"is-max-length":p}),P=ti({draggable:!0,moving:r,fail:i,reset:h}),M=E?ti("content"):ti("content").mix("brand--border"),F=S(s)??"";return(0,n.jsxs)("div",{"aria-hidden":!t,className:P,id:e.toString(),onMouseDown:B=>{B.preventDefault()},ref:y,style:O,children:[t&&(0,n.jsx)("div",{className:"visually-hidden-always",children:`${x?.a11ySortingCurrentItem}: ${F}`}),(0,n.jsxs)(Ut,{"aria-hidden":"true",className:M,children:[(0,n.jsx)(ke,{className:A,id:`card-title-${e}`,ref:b,value:s}),(0,n.jsx)("div",{className:ti("handle")}),(0,n.jsx)("div",{className:ti("status"),children:(0,n.jsx)("i",{className:"icon icon-check"})})]})]},`card-${e}`)},ju=z("restart-button");function kne({allowTabNavigation:e=!0,onClick:t,onFocus:s=vs,ref:o,text:r}){const a=ju({}).mix("button");return(0,n.jsx)("button",{"aria-hidden":!e,className:a,"data-testid":"quiz-take-again-button",onClick:t,onFocus:s,ref:o,tabIndex:dJ(e),type:"button",children:(0,n.jsxs)("div",{className:ju("content"),children:[(0,n.jsx)("span",{className:ju("text").mix("brand--ui"),children:r}),(0,n.jsx)("i",{"aria-hidden":"true",className:ju("icon").mix("icon").mix("icon-reload")})]})})}const Nne=kne,jc=z("deck"),Ine=e=>e?.percentViewed===100,Ene=(e,t)=>`${e?.correctlyAnswered??0}/${t}`,jne=(e,t)=>String(t?.lastIncorrectCardId)===String(e.id),wne=({count:e,items:t,id:s,onReplay:o,progress:r,ref:a})=>{const i=At(),c=(0,u.useRef)([]),l=(0,u.useRef)(null);(0,u.useImperativeHandle)(a,()=>({startKeyDrop(){c.current[0]?.onStartSortAttempt()},endKeyDrop(){c.current[0]?.onEndSortAttempt()},focusReplayButton(){l.current?.focus()}}));const d=Ine(r),h=Ene(r,e),m=()=>{o?.({id:s})};return(0,n.jsxs)("div",{className:jc({complete:r?.percentViewed===100}),children:[(0,n.jsx)("div",{className:jc("spacer")}),d&&(0,n.jsxs)("div",{className:jc("cardholder"),children:[(0,n.jsxs)("div",{className:jc("title").mix("brand--ui"),children:[h," ",i?.sortingCardsCorrect]}),(0,n.jsx)(Nne,{allowTabNavigation:d,onClick:m,ref:l,text:i?.sortingReplay??""})]}),(0,n.jsx)("div",{className:jc("content"),children:t.map((p,v)=>(0,n.jsx)($8,{id:p.id,isDeckTopCard:c.current[v]===c.current[0],isIncorrect:jne(p,r),ref:C=>{c.current[v]=C},title:p.title},p.id))})]})},Hr=z("pile"),Ane=({id:e,lessonId:t,deckTopCard:s,nextCard:o,isComplete:r=!1,onCardDrop:a,onNavigateToNext:i,onNavigateToPrevious:c,onKeyDropStart:l,onKeyDropEnd:d,title:h,ref:m})=>{const[p,v]=(0,u.useState)(void 0),[C,g]=(0,u.useState)(!1),[x,S]=(0,u.useState)(!0),[L,b]=(0,u.useState)(!1),[y,T]=(0,u.useState)(!1),[k,N]=(0,u.useState)(0),I=(0,u.useRef)(null),w=(0,u.useRef)(null),R=(0,u.useRef)(null),E=(0,u.useRef)(void 0),j=(0,u.useRef)(void 0),O=(0,u.useRef)(void 0),A=(0,u.useRef)(void 0),P=(0,u.useRef)(void 0),M=At(),F=Rt(),{announcePolite:B}=An(),H=(0,u.useEffectEvent)(()=>{if(r||!s)return;const Y=s.id.toString(),q=s.pileId===e;a?.({id:t,itemId:Y,isCorrect:q});const J=F(s.title)??"",ee=F(h)??"";if(q){clearTimeout(j.current),clearTimeout(O.current),clearTimeout(A.current),v(s),g(!0),S(!1),B(`${M?.a11ySortingCorrect}. ${J}, ${M?.a11ySortingCategory}: ${ee}`);const te=F(o?.title)??"";te&&(A.current=setTimeout(()=>{B(`${M?.a11ySortingNextItem}. ${te}`)},500)),j.current=setTimeout(()=>{v(void 0),g(!1)},1500),O.current=setTimeout(()=>{S(!0)},1300)}else clearTimeout(j.current),clearTimeout(O.current),clearTimeout(A.current),v(void 0),g(!1),S(!0),B(M?.a11ySortingIncorrect??"")});(0,u.useImperativeHandle)(m,()=>({focus(){w.current?.focus()}}));const V=(0,u.useCallback)(()=>{const{innerWidth:Y}=window,q=I.current&&I.current.scrollHeight>(I.current.offsetParent?.clientHeight??0),J=Y<k;q&&Y>k&&N(Y),T(q||J)},[k]),K=(0,u.useCallback)(()=>{if(r||!s)return;l?.();const Y=s.id.toString(),q=s.pileId===e;a?.({id:t,itemId:Y,isCorrect:q});const J=F(s.title)??"",ee=F(h)??"";if(q){clearTimeout(j.current),clearTimeout(O.current),clearTimeout(A.current),v(s),g(!0),S(!1),B(`${M?.a11ySortingCorrect}. ${J}, ${M?.a11ySortingCategory}: ${ee}`);const te=F(o?.title)??"";te&&(A.current=setTimeout(()=>{B(`${M?.a11ySortingNextItem}. ${te}`)},500)),j.current=setTimeout(()=>{v(void 0),g(!1)},1500),O.current=setTimeout(()=>{S(!0)},1300)}else clearTimeout(j.current),clearTimeout(O.current),clearTimeout(A.current),v(void 0),g(!1),S(!0),B(M?.a11ySortingIncorrect??"")},[r,s,o,e,t,M,h,F,l,a,B]),U=(0,u.useCallback)(Y=>{ao(Y)?K5(()=>c?.())(Y):io(Y)&&K5(()=>i?.())(Y)},[c,i]),X=(0,u.useCallback)(()=>{r||(K(),clearTimeout(P.current),P.current=setTimeout(()=>d?.(),100))},[K,d,r]),oe=(0,u.useCallback)(()=>{b(!0)},[]),Z=(0,u.useCallback)(()=>{b(!1)},[]);(0,u.useEffect)(()=>{const Y=R.current;if(!Y)return;const q=te=>{const se=Un.getElementRect(te.target),Te={x:se.left+se.width/2,y:se.top+se.height/2};te.draggable.draggable({snap:{targets:[Te]}})},J=te=>{te.draggable.draggable({snap:{targets:[(se,Te)=>({x:se,y:Te})]}})},ee=te=>{te.draggable.draggable({snap:{targets:[(se,Te)=>({x:se,y:Te})]}}),te.stopPropagation?.(),te.preventDefault?.(),H()};return Un(Y).dropzone({overlap:"pointer"}).on("dragenter",q).on("dragleave",J).on("drop",ee),V(),E.current=fu()(V,250),window.addEventListener("resize",E.current),()=>{Un(Y).off("dragenter",q).off("dragleave",J).off("drop",ee),clearTimeout(j.current),clearTimeout(O.current),clearTimeout(A.current),clearTimeout(P.current),E.current&&(E.current.cancel(),window.removeEventListener("resize",E.current))}},[]);const _=G()(Hr(),{"drop-success":C,complete:r}),D=G()(Hr("content"),{"drop-animating":!x&&!L}),$=Hr("title",{"is-max-length":y}),Q=F(h)??M?.a11ySortingCategories??"Categories";return(0,n.jsx)("div",{className:_,ref:R,children:(0,n.jsx)("div",{className:Hr("wrapwrap"),children:(0,n.jsxs)(Ut,{className:Hr("wrap"),overrideBackground:!0,children:[(0,n.jsx)("div",{"aria-hidden":"true",className:Hr("message"),children:(0,n.jsx)(ke,{className:$,ref:I,value:h})}),(0,n.jsx)("button",{"aria-disabled":r,"aria-label":Q,className:D,disabled:r,onBlur:Z,onClick:X,onFocus:oe,onKeyDown:U,ref:w,type:"button",children:p&&(0,n.jsx)($8,{id:p.id,title:p.title})}),(0,n.jsx)("div",{className:Hr("background")})]})})})},Gp=z("sorting"),Rne=(e,t)=>!t||!t.items?e:e.filter(s=>!t.items?.[s.id]?.isViewed),Pne=({id:e,items:t,piles:s,onCardDrop:o,onReplay:r,progress:a})=>{const[i,c]=(0,u.useState)(()=>Eu()(t)),[l,d]=(0,u.useState)(!1),h=(0,u.useRef)([]),m=(0,u.useRef)(null),p=(0,u.useRef)(a?.retryAttempts),v=(0,u.useRef)(a?.percentViewed),C=(0,u.useRef)(void 0),g=(0,u.useRef)(void 0),x=(0,u.useRef)(void 0),S=At(),L=Rt(),{announcePolite:b}=An(),y=(0,u.useEffectEvent)(()=>{h.current[0]?.focus()}),T=(0,u.useEffectEvent)(()=>{const j=a?.correctlyAnswered??0,O=t.length;b(`${j} ${S?.a11ySortingCompleteOf} ${O} ${S?.a11ySortingComplete}`)}),k=(0,u.useEffectEvent)(()=>{m.current?.focusReplayButton()});(0,u.useEffect)(()=>{const j=O=>{const{blockId:A,cardId:P}=Ta(O.detail.path,["block","card"]);e!==A||!P||c(M=>{const F=M.find(H=>H.id===P),B=M.filter(H=>H.id!==P);return F?[F,...B]:M})};return window.addEventListener(Ze,j),()=>{window.removeEventListener(Ze,j)}},[e]),(0,u.useEffect)(()=>{const j=a?.retryAttempts,O=p.current;return j!==O?(p.current=j,c(Eu()(t)),clearTimeout(C.current),C.current=setTimeout(()=>{y()},100)):c(A=>{const P=t.filter(B=>!A.find(H=>H.id===B.id));return[...A.filter(B=>t.find(H=>H.id===B.id)).map(B=>{const H=t.find(V=>V.id===B.id);return H?{...B,...H}:B}),...P]}),()=>{clearTimeout(C.current)}},[t,a?.retryAttempts]),(0,u.useEffect)(()=>{const j=a?.percentViewed,O=v.current;return j===100&&O!==100&&(d(!0),clearTimeout(g.current),g.current=setTimeout(()=>{T()},500),clearTimeout(x.current),x.current=setTimeout(()=>{k()},100)),j!==100&&O===100&&d(!1),v.current=j,()=>{clearTimeout(g.current),clearTimeout(x.current)}},[b,a?.correctlyAnswered,a?.percentViewed,t.length]);const N=Rne(i,a),I=S?.sortingLandmark??"",w=N?.[0],R=w?L(w.title)??"":"",E=l?S?.a11ySortingCategoriesComplete:R?`${S?.a11ySortingCategories}. ${R}`:S?.a11ySortingCategories;return(0,n.jsxs)("div",{"aria-label":I,className:Gp(),role:"group",children:[(0,n.jsx)("div",{className:Gp("row"),children:(0,n.jsx)(wne,{count:i.length,id:e,items:N,onReplay:r,progress:a,ref:m})}),(0,n.jsx)("ul",{"aria-label":E,className:Gp("row"),role:"list",children:s.map((j,O)=>(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(Ane,{deckTopCard:N?.[0],id:j.id,isComplete:l,lessonId:e,nextCard:N?.[1],onCardDrop:o,onKeyDropEnd:()=>{m.current?.endKeyDrop()},onKeyDropStart:()=>{m.current?.startKeyDrop()},onNavigateToNext:()=>uJ({list:h.current,currentIndex:O}),onNavigateToPrevious:()=>hJ({list:h.current,currentIndex:O}),ref:A=>{h.current[O]=A},title:j.title})},j.id))})]})},_8=()=>()=>{},Mne=e=>{const{animateBlockEntrance:t,blockId:s,initiallyVisible:o,items:r,onCardDrop:a=_8,onReplay:i=_8,piles:c,progress:l}=e;return(0,n.jsx)(Re,{type:"sorting-activity",children:(0,n.jsx)(Ve,{animateBlockEntrance:t,initiallyVisible:o,isLearner:!0,children:(0,n.jsx)(Pne,{id:s,items:r,onCardDrop:a(e),onReplay:i(e),piles:c,progress:_e()({},["items",s],l)})})})};class One extends u.Component{static defaultProps={scope:"error-boundary"};constructor(t){super(t),this.state={hasError:!1,prevScope:t.scope}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}static getDerivedStateFromProps(t,s){return s.prevScope!==t.scope?{hasError:!1,error:void 0,prevScope:t.scope}:s}componentDidCatch(t){qn.L2.addError(t,{scope:this.props.scope},"source")}render(){const{hasError:t,error:s}=this.state,{FallbackComponent:o}=this.props;return t||s?(0,n.jsx)(o,{}):this.props.children}}const U8=One,Bne=[{name:"Abkhazian",code:"ab"},{name:"Afar",code:"aa"},{name:"Afrikaans",code:"af"},{name:"Akan",code:"ak"},{name:"Albanian",code:"sq"},{name:"American Sign Language",code:"sgn-us"},{name:"Amharic",code:"am"},{name:"Arabic",code:"ar"},{name:"Aramaic",code:"sam"},{name:"Armenian",code:"hy"},{name:"Assamese",code:"as"},{name:"Aymara",code:"ay"},{name:"Azerbaijani",code:"az"},{name:"Bangla",code:"bn"},{name:"Bashkir",code:"ba"},{name:"Basque",code:"eu"},{name:"Belarusian",code:"be"},{name:"Bhojpuri",code:"bho"},{name:"Bislama",code:"bi"},{name:"Bosnian",code:"bs"},{name:"Breton",code:"br"},{name:"Bulgarian",code:"bg"},{name:"Burmese",code:"my"},{name:"Cantonese (Hong Kong)",code:"yue"},{name:"Catalan",code:"ca"},{name:"Cherokee",code:"chr"},{name:"Chinese",code:"zh"},{name:"Chinese (China)",code:"zh-cn"},{name:"Chinese (Hong Kong)",code:"zh-hk"},{name:"Chinese (Simplified)",code:"zh-hans"},{name:"Chinese (Singapore)",code:"zh-sg"},{name:"Chinese (Taiwan)",code:"zh-tw"},{name:"Chinese (Traditional)",code:"zh-hant"},{name:"Choctaw",code:"cho"},{name:"Corsican",code:"co"},{name:"Croatian",code:"hr"},{name:"Czech",code:"cs"},{name:"Danish",code:"da"},{name:"Dutch",code:"nl"},{name:"Dutch (Belgium)",code:"nl-be"},{name:"Dutch (Netherlands)",code:"nl-nl"},{name:"Dzongkha",code:"dz"},{name:"English",code:"en"},{name:"English (Canada)",code:"en-ca"},{name:"English (Ireland)",code:"en-ie"},{name:"English (United Kingdom)",code:"en-gb"},{name:"English (United States)",code:"en-us"},{name:"Esperanto",code:"eo"},{name:"Estonian",code:"et"},{name:"Faroese",code:"fo"},{name:"Fijian",code:"fj"},{name:"Filipino",code:"fil"},{name:"Finnish",code:"fi"},{name:"French",code:"fr"},{name:"French (Belgium)",code:"fr-be"},{name:"French (Canada)",code:"fr-ca"},{name:"French (France)",code:"fr-fr"},{name:"French (Switzerland)",code:"fr-ch"},{name:"Fulah",code:"ff"},{name:"Galician",code:"gl"},{name:"Georgian",code:"ka"},{name:"German",code:"de"},{name:"German (Austria)",code:"de-at"},{name:"German (Germany)",code:"de-de"},{name:"German (Switzerland)",code:"de-ch"},{name:"Greek",code:"el"},{name:"Guarani",code:"gn"},{name:"Gujarati",code:"gu"},{name:"Haitian Creole",code:"ht"},{name:"Hakka Chinese",code:"hak"},{name:"Hakka Chinese (Taiwan)",code:"htia"},{name:"Hausa",code:"ha"},{name:"Hebrew",code:"he"},{name:"Hindi",code:"hi"},{name:"Hungarian",code:"hu"},{name:"Icelandic",code:"is"},{name:"Igbo",code:"ig"},{name:"Indonesian",code:"id"},{name:"Interlingua",code:"ia"},{name:"Interlingue",code:"ie"},{name:"Inuktitut",code:"iu"},{name:"Inupiaq",code:"ipk"},{name:"Irish",code:"ga"},{name:"Italian",code:"it"},{name:"Japanese",code:"ja"},{name:"Javanese",code:"jv"},{name:"Kalaallisut",code:"kl"},{name:"Kannada",code:"kn"},{name:"Kashmiri",code:"ks"},{name:"Kazakh",code:"kk"},{name:"Khmer",code:"km"},{name:"Kinyarwanda",code:"rw"},{name:"Klingon",code:"tlh"},{name:"Korean",code:"ko"},{name:"Kurdish",code:"ku"},{name:"Kyrgyz",code:"ky"},{name:"Lao",code:"lo"},{name:"Latin",code:"la"},{name:"Latvian",code:"lv"},{name:"Lingala",code:"ln"},{name:"Lithuanian",code:"lt"},{name:"Luxembourgish",code:"lb"},{name:"Macedonian",code:"mk"},{name:"Malagasy",code:"mg"},{name:"Malay",code:"ms"},{name:"Malayalam",code:"ml"},{name:"Maltese",code:"mt"},{name:"Manipuri",code:"mni"},{name:"Maori",code:"mi"},{name:"Marathi",code:"mr"},{name:"Masai",code:"mas"},{name:"Min Nan Chinese",code:"nan"},{name:"Min Nan Chinese (Taiwan)",code:"nan-tw"},{name:"Mizo",code:"lus"},{name:"Mongolian",code:"mn"},{name:"Nauru",code:"na"},{name:"Navajo",code:"nv"},{name:"Nepali",code:"ne"},{name:"Norwegian",code:"no"},{name:"Norwegian Bokm\xE5l",code:"nb"},{name:"Nyanja",code:"ny"},{name:"Occitan",code:"oc"},{name:"Odia",code:"or"},{name:"Oromo",code:"om"},{name:"Pashto",code:"ps"},{name:"Persian",code:"fa"},{name:"Persian (Afghanistan)",code:"fa-af"},{name:"Persian (Farsi)",code:"fa-ir"},{name:"Persian (Iran)",code:"pes"},{name:"Polish",code:"pl"},{name:"Portuguese",code:"pt"},{name:"Portuguese (Brazil)",code:"pt-br"},{name:"Portuguese (Portugal)",code:"pt-pt"},{name:"Punjabi",code:"pa"},{name:"Quechua",code:"qu"},{name:"Romanian",code:"ro"},{name:"Romansh",code:"rm"},{name:"Rundi",code:"rn"},{name:"Russian",code:"ru"},{name:"Samoan",code:"sm"},{name:"Sango",code:"sg"},{name:"Sanskrit",code:"sa"},{name:"Sardinian",code:"sc"},{name:"Scottish Gaelic",code:"gd"},{name:"Serbian",code:"sr"},{name:"Serbian (Cyrillic)",code:"sr-ba"},{name:"Serbian (Latin)",code:"sr-sp"},{name:"Sherdukpen",code:"sdp"},{name:"Shona",code:"sn"},{name:"Sicilian",code:"scn"},{name:"Sindhi",code:"sd"},{name:"Sinhala",code:"si"},{name:"Slovak",code:"sk"},{name:"Slovenian",code:"sl"},{name:"Somali",code:"so"},{name:"Southern Sotho",code:"st"},{name:"Spanish",code:"es"},{name:"Spanish (Latin America)",code:"es-419"},{name:"Spanish (Mexico)",code:"es-mx"},{name:"Spanish (Spain)",code:"es-es"},{name:"Spanish (United States)",code:"es-us"},{name:"Sundanese",code:"su"},{name:"Swahili",code:"sw"},{name:"Swati",code:"ss"},{name:"Swedish",code:"sv"},{name:"Tagalog",code:"tl"},{name:"Tajik",code:"tg"},{name:"Tamil",code:"ta"},{name:"Tatar",code:"tt"},{name:"Telugu",code:"te"},{name:"Tetum",code:"tet"},{name:"Thai",code:"th"},{name:"Tibetan",code:"bo"},{name:"Tigrinya",code:"ti"},{name:"Tongan",code:"to"},{name:"Tsonga",code:"ts"},{name:"Tswana",code:"tn"},{name:"Turkish",code:"tr"},{name:"Ukrainian",code:"uk"},{name:"Urdu",code:"ur"},{name:"Uzbek",code:"uz"},{name:"Vietnamese",code:"vi"},{name:"Volap\xFCk",code:"vo"},{name:"Voro",code:"vor"},{name:"Welsh",code:"cy"},{name:"Western Frisian",code:"fy"},{name:"Wolof",code:"wo"},{name:"Xhosa",code:"xh"},{name:"Yiddish",code:"yi"},{name:"Yoruba",code:"yo"},{name:"Zulu",code:"zu"}],Dne=(0,u.lazy)(()=>f.e("webpack_container_remote_mondrian_learn-react").then(f.t.bind(f,4246,23))),Hne={subscribe(e,t){const s=`mondrian:${e}`,o=()=>{Ce.isPlaying&&Ce.playerId!==s&&t()};return Ce.addChangeListener(o),()=>{Ce.removeChangeListener(o)}},play(e){const t=`mondrian:${e}`;Ce.playerId=t,Ce.isPlaying=!0}};function Fne(e){const t={};return e.backgroundType==="IMAGE"&&(t["--color-background"]="transparent"),t.maxWidth=(e.contentWidth??9999)+"rem",t.minWidth="0",t.margin="0 auto",t.width="100%",t}function Vne({blockumentId:e,manifest:t}){let s=920,o=600;try{const r=t.blockuments?.[e];if(r){const a=t.items?.[r.children[0]?.id];if(a){const i=a.states[a.initialState];if(i){const c=i.width.value,l=i.height.value;typeof c=="number"&&typeof l=="number"&&(s=c,o=l)}}}}catch{}return(0,n.jsx)("svg",{"aria-hidden":"true",className:"block-mondrian__fallback",height:o,width:s})}function zne({animateBlockEntrance:e=!0,initiallyVisible:t,blockumentId:s,isLearner:o=!1,settings:r,onStep:a,onTranscriptClose:i,onTranscriptOpen:c,onTranscriptUpdate:l,labels:d,transcriptPanelState:h}){const m=ze(),p=m.mondrian,v=c1(),C={externalLinksDisabled:"externalLinksDisabled"in m?m.externalLinksDisabled:!1,isExternalLink:Zs},{currentLocale:g}=ct(),x=dn(),S=jG(),L=(0,u.useMemo)(()=>({active:g,source:x}),[g,x]),b=(0,u.useCallback)(w=>h?.audioPlayerIdOpen===yn({refs:`items:${s}/items:${w}`}),[s,h?.audioPlayerIdOpen]),y=(0,u.useCallback)(({refocusTarget:w,itemId:R,transcript:E})=>{b(R)?i?.():c?.({audioPlayerId:yn({refs:`items:${s}/items:${R}`}),focusing:!0,refocusTarget:w,transcriptMedia:{mondrianTranscript:E}})},[s,b,i,c]),T=(0,u.useCallback)(({itemId:w,transcript:R})=>{h?.audioPlayerIdOpen&&l?.({audioPlayerId:yn({refs:`items:${s}/items:${w}`}),transcriptMedia:{mondrianTranscript:R}})},[s,l,h]),k=(0,u.useCallback)(w=>{l?.({audioPlayerId:yn({refs:`items:${s}/items:${w}`}),focusing:!0})},[s,l]),N=(0,u.useMemo)(()=>({isPanelOpenForItem:b,focusPanel:k,togglePanel:y,updateTranscript:T}),[k,b,y,T]),I=(0,u.useCallback)(w=>{if(a)for(const R of Object.values(w))R.progress>=100&&a({id:R.itemId})},[a]);return(0,n.jsx)(Re,{children:(0,n.jsx)(U8,{FallbackComponent:Une,children:(0,n.jsx)(Ve,{animateBlockEntrance:e,initiallyVisible:t,isLearner:o,children:(0,n.jsx)("div",{style:Fne(r),children:(0,n.jsx)(u.Suspense,{fallback:(0,n.jsx)(Vne,{blockumentId:s,manifest:p}),children:(0,n.jsx)(Dne,{blockumentId:s,hoveredItemPath:S.translationHoveredPath,labels:d,languages:Bne,linkRenderConfig:C,locale:L,manifest:p,mediaStoreAdapter:Hne,onMediaProgress:I,runtimeInterface:window.Runtime,searchTerm:v?.term,transcriptPanelAdapter:N})})})})})})}const $ne=(0,u.memo)(zne,_ne);function _ne(e,t){return e.blockumentId===t.blockumentId&&e.settings.backgroundType===t.settings.backgroundType&&e.settings.contentWidth===t.settings.contentWidth&&e.labels===t.labels&&e.transcriptPanelState?.audioPlayerIdOpen===t.transcriptPanelState?.audioPlayerIdOpen}function Une(){return null}const Gne=z("block-ai-scenario"),Wne=(0,u.lazy)(()=>f.e("webpack_container_remote_ai_scenario_learner-player-react").then(f.t.bind(f,58812,23)));function Kne({scenarioId:e,onExit:t}){return(0,n.jsx)(Re,{className:Gne("wrapper"),children:(0,n.jsx)(U8,{FallbackComponent:Zne,children:(0,n.jsx)(u.Suspense,{children:(0,n.jsx)(Wne,{onExit:t,scenarioId:e})})})})}const Qne=(0,u.memo)(Kne);function Zne(){return null}var G8=f(67750),ot=f(82920);const Ot=z("block-code"),Yne=`${Ee("CDN_URI")}/assets/rise/assets/blocks/code_block_unavailable.svg`;function W8(e,t){const s=K8(G8.parse(e.data));for(const o of s)if(o.type==="notification")t[o.method]?.(o.params);else throw new Error(`Unsupported RPC type "${o.type}"`)}function*K8(e){if(Array.isArray(e))for(const t of e)yield*K8(t);else yield e}function Q8(e,t,s){return ot.useEffect(()=>{const r=new AbortController;return window.addEventListener("message",a=>{a.origin===window.origin&&t!=null&&e.current&&a.source===e.current.contentWindow&&W8(a,t)},{signal:r.signal}),()=>r.abort()},[t,e]),ot.useCallback(r=>{e.current?.contentWindow?.postMessage(r,s)},[e,s])}const Xne=(e,t,s)=>Q8(e,s,window.origin),qne=(e,t,s)=>Q8(e,s,"*"),Jne=(e,t,s)=>{const[o,r]=ot.useState(()=>new BroadcastChannel(t));return ot.useEffect(()=>()=>o.close(),[o]),ot.useEffect(()=>{o.name!==t&&r(new BroadcastChannel(t))},[o,t]),ot.useEffect(()=>{const i=new AbortController;return o.addEventListener("message",c=>W8(c,s),{signal:i.signal}),()=>i.abort()},[o,s]),ot.useCallback(i=>{o.postMessage(i)},[o])},eoe=ci()?co.isLocalFilesystem?qne:Jne:Xne,toe=window.location.origin==="";function soe(e){let t=toe?"":"lib/sandbox/sandbox.html";return t+=`#channel=${encodeURIComponent(e)}`,t}function noe(e){return typeof e=="number"?`${e/10}rem`:"-1px"}const ooe={0:"small",1:"medium",2:"full"};function roe({editBlock:e,errors:t,isDragPreview:s,isLearn:o,isSidebarPreview:r,items:a,labels:i,onClearErrors:c,onError:l,onStep:d,previewType:h,settings:m}){const p=ot.useRef(null),C=ze()?.htmlBlocksDisabled,g=s||r||!!h,[x]=a,S=Oe(x.srcdoc),L=Oe(x.media),b=L?.sandbox?.src==null?void 0:`${L.sandbox.src}/index.html`,y=m?.autoResize===!0,T=m?.width??"0",[k,N]=ot.useState("-1px");ot.useEffect(()=>{y||N(noe(m?.height))},[y,m?.height]);const[I,w]=ot.useState(0),[R,E]=ot.useState(!1),[j,O]=ot.useState(!1),[A]=ot.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),P=soe(A),M=ot.useCallback(()=>{d?.({id:x.id})},[x.id,d]),F=ot.useCallback(({message:_})=>{l?.({message:_}),O(!0),console.error("Sandbox Error",_)},[l,O]),B=ot.useCallback(()=>{c?.(),O(!1),w(_=>_+1)},[c]),H=ot.useCallback(()=>{E(I>0)},[I]),V=ot.useCallback(({height:_})=>{y&&N(`${_}px`)},[y]),K=ot.useMemo(()=>({oncomplete:M,onerror:F,onload:H,onready:B,onresize:V}),[M,F,B,H,V]),U=eoe(p,A,K),X=ot.useCallback((_,D)=>{if(p==null&&I===0)throw new Error("Attempted to send message to sandbox before it is ready");const $=G8.format.notification(_,D);U($)},[I,p,U]),oe=ot.useCallback(()=>{window.location.reload()},[]),Z=ot.useCallback(()=>{e?.()},[e]);return ot.useEffect(()=>{I&&X("onupdate",{autoResize:y,src:b,srcDoc:S})},[y,I,X,b,S]),o&&t!=null||j?(0,n.jsx)(Re,{children:(0,n.jsxs)("div",{className:Ot("error-general",{learn:o}),children:[(0,n.jsx)("div",{className:Ot("error-message"),children:"Something went wrong"}),(0,n.jsx)("div",{className:Ot("error-message-subtitle"),children:"There was an error loading this code block. Please contact your admin if the issue continues."}),(0,n.jsx)("button",{className:Ot("error-button"),onClick:oe,type:"button",children:"Refresh page"})]})}):t!=null&&Object.keys(t).length>0?(0,n.jsx)(Re,{children:t[404]?(0,n.jsxs)("div",{className:Ot("error-404"),children:[(0,n.jsx)("div",{className:Ot("error-message"),children:"We couldn\u2019t find your file"}),(0,n.jsx)("div",{className:Ot("error-message-subtitle"),children:"Make sure your zip file contains an index.html file."}),(0,n.jsx)("button",{className:Ot("error-button"),onClick:Z,type:"button",children:"Retry upload"})]}):(0,n.jsxs)("div",{className:Ot("error-general"),children:[(0,n.jsx)("div",{className:Ot("error-message"),children:"Something went wrong"}),(0,n.jsxs)("div",{className:Ot("error-message-subtitle"),children:["Try refreshing the page or entering your code again. If the issue isn't fixed,"," ",(0,n.jsx)("a",{href:"https://community.articulate.com/group/code-block",rel:"noopener noreferrer",target:"_blank",children:"visit our community"}),"."]}),(0,n.jsx)("button",{className:Ot("error-button"),onClick:oe,type:"button",children:"Refresh page"})]})}):C&&!g?(0,n.jsx)(Re,{children:(0,n.jsx)("div",{className:Ot("restricted"),children:(0,n.jsxs)("div",{className:Ot("restricted-card"),children:[(0,n.jsx)(Zm,{alt:"",className:Ot("restricted-icon"),src:Yne}),(0,n.jsx)("div",{className:Ot("restricted-title"),children:"Subscribe to unlock full access"}),(0,n.jsx)("div",{className:Ot("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,n.jsx)(Re,{children:(0,n.jsx)("iframe",{allow:"fullscreen",className:Ot({"auto-resize":y,loaded:g||R,width:ooe[T]}),"data-rise-frontend-sandbox":"",loading:"lazy",ref:p,sandbox:"allow-forms allow-popups allow-same-origin allow-scripts",scrolling:y?"no":void 0,src:P,style:{"--block-html-height":k},title:i?.a11yBlockCode},A)})}const Wo=z("timeline-card"),aoe=e=>{const{blockId:t,disableZoom:s,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:l,mediaType:d,audioPosition:h}=e,{settings:m}=a,p=Oe(a.media)??{},v=d==="audio"&&p.audio,C=d==="embed"&&p.embed,g=d==="image"&&p.image,x=d==="video"&&p.video;if(!v&&!C&&!g&&!x&&!(d==="image-with-audio"&&r))return;const L=p.embed?Or(p.embed):void 0,b=!!p.image,y=!!p.audio,T=b?p.image.align:"center",k=Wo("media",{audio:y&&!r,"audio-and-embed":!!(p.audio&&p.embed),"image-with-audio":r,[`image-with-audio-${T}`]:r&&!!T,"audio-on-bottom":y&&!r&&h==="bottom",linkEmbed:L==="link",videoEmbed:L==="video",visual:!r&&b||!at()(p.video)}),N=m||{};return(0,n.jsx)("div",{className:k,children:(0,n.jsx)(es,{blockId:t,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:l,media:p,mediaType:r?void 0:d,opts:{disableZoom:s,...N}})})},ioe=e=>{const{headingLevel:t,innerRef:s,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c}=e,{id:l}=o,d=Wo({active:r}),h=!!o.date,m=!!o.title,p=t||2,v=`h${p}`,C=`h${p+1}`,g=Oe(o.media)??{},x=Ln(g,i,!0,"timeline"),S=()=>{if(!g||!a)return null;const L={audio:{item:{...o,media:x.audioOnlyMedia||g},mediaType:"audio"},image:{item:{...o,media:x.imageOnlyMedia||g},mediaType:"image"},video:{item:{...o,media:x.videoOnlyMedia||g},mediaType:"video"},embed:{item:{...o,media:x.embedOnlyMedia||g},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,n.jsx)(n.Fragment,{children:x.renderOrder.map((b,y)=>{if(b==="text")return(0,n.jsx)(ke,{className:Wo("description"),value:o.description},`text-${y}`);const T=L[b];return T?(0,u.createElement)(aoe,{...e,...T,key:`${b}-${y}`}):null})})};return(0,n.jsx)("div",{className:d,"data-id":l,ref:s,children:(0,n.jsx)(Ut,{className:Wo("body"),onFocus:c,children:(0,n.jsx)("div",{className:Wo("main-wrap"),children:(0,n.jsxs)("div",{className:Wo("main"),children:[h&&(0,n.jsx)("div",{className:Wo("date"),children:(0,n.jsx)(v,{children:(0,n.jsx)(Ls,{value:o.date})})}),m&&(0,n.jsx)("div",{className:Wo("title"),children:(0,n.jsx)(C,{children:(0,n.jsx)(Ls,{value:o.title})})}),S()]})})})})},wc=z("timeline"),coe=e=>{const{audioPosition:t,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,initiallyVisible:i,isBlock:c,isLearner:l,item:d,labels:h,lessonId:m,onFocus:p}=e,v=(0,n.jsx)(ioe,{audioPosition:t,blockId:a,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:d,labels:h,lessonId:m,lessonNumber:a,loadMedia:!0,onFocus:p});return c?l?(0,n.jsx)(Ve,{animateBlockEntrance:!0,className:wc("animate").toString(),initiallyVisible:i,isLearner:!0,children:v}):v:null},loe=e=>{const{id:t,items:s,labels:o,onEnter:r=Function.prototype,settings:a={}}=e,i=(0,u.useRef)(null),c=(0,u.useCallback)((l,d)=>{r({id:t,payload:{activeIndex:l,itemId:d}})},[t,r]);return(0,u.useEffect)(()=>{function l(d){const{blockId:h,cardId:m}=Ta(d.detail.path,["block","card"]);if(h!==t)return;const p=i.current.querySelector(`[data-id="${m}"]`);p&&!Ym(p,"center")&&p.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(Ze,l),()=>{window.removeEventListener(Ze,l)}}),(0,n.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",ref:i,role:"group",children:(0,n.jsx)("div",{className:wc("wrapper"),children:(0,n.jsx)("div",{className:wc(),children:(0,n.jsx)("ul",{className:wc("container"),role:"list",children:s.map((l,d)=>(0,n.jsx)("li",{className:wc("card-wrapper"),role:"listitem",children:coe({index:d,item:l,onFocus:c,...e,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},d))})})})})},doe=({animateBlockEntrance:e,blockId:t,enableVideoPlaybackSpeed:s,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:c,settings:l})=>(0,n.jsx)(Ve,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:o,isLearner:r,children:(0,n.jsx)(Re,{type:"timeline",children:(0,n.jsx)(loe,{enableVideoPlaybackSpeed:s,id:t,initiallyVisible:o,isBlock:!0,isLearner:r,items:a,labels:i,lessonId:c,settings:l})})}),Ko=z("block-sequence"),uoe=({label:e})=>(0,n.jsx)("span",{className:Ko("indicator-label"),children:Oe(e)??""}),hoe=e=>(0,n.jsx)(uoe,{label:e.label}),moe=e=>(0,n.jsx)(ke,{className:Ko("description").toString(),value:e.description}),poe=e=>{const{color:t,defaultBackgroundColor:s,items:o,renderDescription:r=moe,renderLabel:a=hoe,variant:i}=e,c=t?{"--block-sequence-color":t,"--block-sequence-on-color":Rs(t)===ye.LIGHT?"#fff":"#000"}:void 0;return(0,n.jsx)(Re,{className:Ko({[i]:!0}).toString(),defaultBackgroundColor:s,style:c,children:(0,n.jsx)("div",{className:Ko("container"),children:(0,n.jsx)("ol",{className:Ko("list"),"data-step-count":o.length,children:o.map((l,d)=>(0,n.jsxs)("li",{className:Ko("step"),"data-step-id":l.id,children:[(0,n.jsx)("div",{className:Ko("indicator"),children:a(l,d)}),(0,n.jsx)("div",{className:Ko("text"),children:r(l,d)})]},l.id))})})})},Kn=z("block-team"),foe=e=>(0,n.jsx)(ke,{className:Kn("name").toString(),value:e.name}),goe=e=>(0,n.jsx)(ke,{className:Kn("role").toString(),value:e.description}),voe=({item:e,index:t,renderName:s,renderDescription:o})=>{const r=e.avatar?.image,a=C1(r);return(0,n.jsxs)("li",{className:Kn("card"),children:[(0,n.jsx)("div",{className:Kn("avatar-wrap"),children:a?(0,n.jsx)(ks,{alt:No(r?.alt),className:Kn("avatar").toString(),src:a}):(0,n.jsx)("div",{className:Kn("avatar",{placeholder:!0}).toString()})}),(0,n.jsxs)("div",{className:Kn("body"),children:[s(e,t),o(e,t)]})]})},Coe=e=>{const{defaultBackgroundColor:t,items:s,renderName:o=foe,renderDescription:r=goe}=e;return(0,n.jsx)(Re,{className:Kn().toString(),defaultBackgroundColor:t,children:(0,n.jsx)("div",{className:Kn("container"),children:(0,n.jsx)("ul",{className:Kn("list"),"data-count":s.length,children:s.map((a,i)=>(0,n.jsx)(voe,{index:i,item:a,renderDescription:r,renderName:o},a.id))})})})},xoe=e=>(0,n.jsx)("div",{className:"unsupported-block",...e,children:(0,n.jsxs)("span",{children:["We no longer support this block, so you can safely delete it. If you have any questions, please"," ",(0,n.jsx)("a",{href:"https://access.articulate.com/support/contact",children:"contact Articulate Support."})]})});var js=f(30467),boe=f(28565),Z8=f(70721),yoe=f(90090),Y8=f.n(yoe);const Y6e=(e,t)=>s=>{const o=s.findIndex(a=>a.id==t);if(o===-1)return s;const r=s.slice();return r[o]=e(s[o]),r},X6e=e=>t=>t.filter(s=>s.id!=e),q6e=(e,t)=>s=>{const o=s.slice(),[r]=o.splice(e,1);return o.splice(t,0,r),o};function Loe(e,t){const s=[];for(const o of t)if(s.push(o),e(o))break;return s}const Soe=e=>e.some(t=>t<0),X8=e=>Array.from(Array(e)),q8=(e,t)=>X8(t).map(()=>e),Toe=(e,t,s,o)=>X8(s).map((r,a)=>a===o?t:e),J6e=(e,t,s)=>s.some(o=>o[e]==t);function e5e(e,t,s){if(t>=s.length)return s.slice(0);const o=Math.floor(t/2),r=Math.ceil(t/2),a=e-o,i=e+r;return i>s.length?s.slice(s.length-t):a>=0?s.slice(a,i):s.slice(0,t)}const wu=(e,t)=>{const s=Math.min(e.length,t.length),o=new Array(s);for(let r=0;r<s;r++)o[r]=[e[r],t[r]];return o};var J8=f(94382);const koe=matchMedia("(forced-colors: active)");function Ac(){return koe.matches}const Noe=({activeIndex:e,values:t,opts:s})=>{const{background:o,variant:r}=Pt(),{chartColor:a,lineCurve:i}=cs(),c=Os(),l=Li(),d=s?.defaultFontColor,h=Pn(),m=h===ne.IMAGE,v=Oe(o?.media)?.image?.overlayColor??it.DARK,C=Ac();let g=a??l,x=c||"#fff";!a&&h===ne.ACCENT||a===x?g=d:m&&(g=v===it.DARK?"#fff":"#000",x=v===it.DARK?"#000":"#fff"),C&&(g="Highlight",x="Canvas");let S=g,L=Array(t.length).fill(g);if(e!=null&&!C){const b=m&&v===it.LIGHT?.2:.7,y=(0,J8.A)(g,x,b);S=y,L=Toe(y,g,t.length,e)}return r==="bar"?{backgroundColor:L,data:t,hoverBackgroundColor:L}:{borderColor:S,cubicInterpolationMode:i==="linear"?"default":"monotone",data:t,lineTension:i==="linear"?0:void 0,pointBackgroundColor:L,pointBorderColor:L,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:g,pointHoverBorderColor:g,pointHoverBorderWidth:0,pointRadius:4}};function Ioe({activeIndex:e,children:t,opts:s,values:o}){const r=Noe({activeIndex:e,opts:s,values:o});return t(r)}class Eoe extends u.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:t,identifier:s,index:o,label:r,value:a}=this.props,i=t!=null&&t!==o,c=G()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":i});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsx)("dt",{className:"block-chart__cartesianLegendTerm",children:`${s}.`}),(0,n.jsxs)("dd",{className:"block-chart__cartesianLegendDefn","data-l10n-id":r.l10nId,children:[r.label,(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnPipe",role:"separator",children:"|"}),(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const joe=Eoe,woe=({activeIndex:e,labels:t,letters:s,onEvent:o,values:r})=>{const a=wu(s,wu(t,r));return a.length===0?null:(0,n.jsx)("dl",{className:"block-chart__cartesianLegend",children:a.map(([i,[c,l]],d)=>(0,n.jsx)(joe,{activeIndex:e,identifier:i,index:d,label:c,onEvent:o,value:l},i))})},Aoe=(0,u.memo)(woe);function Roe(e){const t=this.getLabelForValue(e),s=15,o=t.split(" "),r=[];let a="";return o.forEach(i=>{(a+i).length>s?(r.push(a),a=i):a+=(a.length>0?" ":"")+i}),r.push(a),r}const Poe={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:e=>{const{label:t,formattedValue:s}=e[0];return`${t}: ${s}`}},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom"}},responsive:!1,scales:{x:{border:{display:!1},grid:{display:!1,offset:!0},offset:!0,ticks:{autoSkip:!1,callback:Roe,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function Moe({values:e,contrastColor:t}){const s=Pt(),o=Pn(),r=o===ne.IMAGE,a=(0,u.useMemo)(()=>Soe(e),[e]);let i,c;const d=Oe(s?.background?.media)?.image?.overlayColor??it.DARK,h=r&&d===it.LIGHT;switch(o){case ne.LIGHT:case ne.GRAY:case ne.TINT:[i,c]=["#e1e1e1","#c9c9c9"];break;case ne.DARK:case ne.BLACK:case ne.IMAGE:[i,c]=["#ffffff80","#ffffffe9"];break;case ne.ACCENT:case ne.COLOR:{[i,c]=t==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&h&&([i,c]=["#00000080","#0000001a"]),a||(c=i),[i,c]}const Ooe=({onEvent:e,reduceMotion:t,shouldAnimate:s,values:o})=>{const r=Os(),{customBackgroundColorContrast:a}=cs(),i=ze(),c=Li(),l=i?.theme?.accentContrast,d=Pn(),h=d===ne.IMAGE,m=Pt(),p=Ac(),v=Rs(r),C=!a&&m?.family==="chart",g=a??ye.DARK,x=C?v:g,L=Oe(m?.background?.media)?.image?.overlayColor??it.DARK,b=h&&L===it.LIGHT,y=d===ne.ACCENT||d===ne.COLOR,T=d===ne.ACCENT?c:r,k=d===ne.ACCENT?l:x,N=zt({backgroundColor:T,contrast:k}),[I,w]=Moe({values:o,contrastColor:N}),R=(0,u.useCallback)(j=>p&&h?b?"#000000":"#FFFFFF":j.tick.value===0?w:I,[I,p,w,h,b]);return(0,u.useMemo)(()=>{let j="#000";if(p)h?j=b?"#000000":"#FFFFFF":j="FieldText";else{switch(d){case ne.DARK:case ne.BLACK:case ne.IMAGE:j="#fff";break}y&&(j=N),h&&b&&(j="#000")}const O=s&&!t?1e3:0;let A,P;p?h?(A=j,P=b?"#FFFFFF":"#000000"):(A="Highlight",P="HighlightText"):(A=j,P=j==="#000"||j==="#000000"||j===ye.DARK?"#FFFFFF":"#000000");const M=B0()(Poe);return M.animation.duration=O,M.defaultFontColor=j,M.onClick=e,M.onHover=e,M.plugins.tooltip.animation=!t,M.plugins.tooltip.backgroundColor=A,M.plugins.tooltip.titleColor=P,p&&!h?(M.scales.x.grid.color="FieldText",M.scales.y.grid.color="FieldText"):(M.scales.x.grid.color=I,M.scales.y.grid.color=R),M.scales.x.ticks.color=j,M.scales.y.ticks.color=j,p&&(h?M.plugins.legend.labels.color=b?"#000000":"#FFFFFF":M.plugins.legend.labels.color="FieldText"),M},[d,N,I,y,p,h,b,e,t,R,s])};function Boe(e){const{children:t,onEvent:s,reduceMotion:o,shouldAnimate:r,values:a}=e,i=Ooe({onEvent:s,reduceMotion:o,shouldAnimate:r,values:a});return t(i)}var Doe=f(29783),Wp=f.n(Doe);const Hoe=/<mark>|<\/mark>/gm,Foe=e=>t=>{const s=e(t.type).replace(Hoe,"")??"";return{label:Wp()(s,{length:30}),l10nId:wt(t?.type)}},Voe=e=>parseFloat(e.value??"0"),e7=(e,t)=>({labels:e.map(Foe(t)),values:e.map(Voe)});function zoe(e,t,s){const o=[];let r=0;return s.replace(e,function(...a){const i=a.length,c=a[0],l=a[i-1],d=a[i-2],h=l.slice(r,d),m=typeof t=="function"?t(...a):t;return o.push(h,m),r=d+c.length,""}),o.push(s.slice(r)),o}const $oe=(e,t)=>(0,n.jsx)("mark",{children:e},t),_oe=(e,t)=>zoe(new RegExp(Lte()(t),"igm"),$oe,e),t7=(e,t,s)=>{const o=Wp()(t,{length:e});return s?_oe(o,s):o};function Uoe(){const[e,t]=u.useState(null),s=u.useRef(null),{announcePolite:o}=An(),{labels:r,course:a}=ra()??{},{a11yBlockChartPreposition:i}=r??{},c=Zr(a),l=u.useCallback(g=>{t(g)},[]),d=u.useCallback(()=>{const g=s.current;if(!g)return;const x=c?g.canvas?.parentElement:null;x&&g.width?g.resize(x.clientWidth,x.clientWidth*(g.height/g.width)):g.resize()},[c]),h=u.useCallback(()=>{s.current?.update()},[]),m=u.useCallback(()=>{d(),h()},[d,h]),p=u.useCallback(()=>{const g=s.current;if(g==null)return;const x=g.getDatasetMeta(0),S=x.data;if(!S?.length)return;const L=0,y=[{datasetIndex:0,element:x.data[L],index:L}];g.setActiveElements(y),g.tooltip?.setActiveElements(y,{x:0,y:0}),g.update(),l(L);const T=g.data.labels[L],k=g.data.datasets[0].data[L];setTimeout(()=>{o(`${L+1} ${i??""} ${S.length} - ${T}: ${k}`)},0)},[i,o,s,l]),v=u.useCallback(()=>{const g=s.current;if(g==null)return;const x=[];g.setActiveElements(x),g.tooltip?.setActiveElements(x,{x:0,y:0}),g.update(),l(null),o(null)},[o,s,l]),C=u.useCallback(g=>{const x=s.current;if(x==null)return;const S=x.getDatasetMeta(0),L=S.data;if(!L?.length)return;let b=!1,y=e;switch(g.key){case"ArrowLeft":b=!0,y=(e-1+L.length)%L.length;break;case"ArrowRight":b=!0,y=(e+1+L.length)%L.length;break;case"Home":b=!0,y=0;break;case"End":b=!0,y=L.length-1;break}if(b&&(g.stopPropagation(),g.preventDefault()),y!==e){const k=[{datasetIndex:0,element:S.data[y],index:y}];x.setActiveElements(k),x.tooltip?.setActiveElements(k,{x:0,y:0}),x.update(),l(y);const N=x.data.labels?.[y],I=x.data.datasets[0].data[y];o(`${y+1} ${i??""} ${L.length} - ${N}: ${I}`)}},[i,e,o,s,l]);return u.useEffect(()=>{d(),h()},[d,h]),u.useEffect(()=>{s.current&&s.current.update()},[e]),{activeIndex:e,chartRef:s,onBlur:v,onFocus:p,onKeyDown:C,onEvent:l,onResize:m}}function s7(e){const t=s=>{const{activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:l,onResize:d}=Uoe();return(0,n.jsx)(e,{...s,activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:l,onResize:d})};return t.displayName=`withChartEvents(${e.displayName||e.name})`,t}const Goe="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");class Woe extends u.PureComponent{wrapRef;id;resizeObserver;constructor(t){super(t),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=(t,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};handleResize=()=>{requestAnimationFrame(()=>{this.props.onResize(),this.setLabelYTop()})};setLabelYTop=()=>{const t=this.props.chartRef.current;if(t){const{bottom:s,top:o}=t?.scales?.y??{};Y8()(s)&&Y8()(o)&&this.setState({labelYTop:`${(s+o)/2}px`})}};render(){const{props:{activeIndex:t,chartRef:s,getL10nValue:o,htmlIdBase:r,htmlIdTitle:a,onBlur:i,onFocus:c,onKeyDown:l,isDesktop:d,isVisible:h,items:m,itemsLabel:p,labels:v,onEvent:C,search:g,shouldAnimate:x,valuesLabel:S,variant:L},state:{labelYTop:b}}=this,y=t7(80,o(p),g),T=t7(30,o(S),g),k=e7(m,o),N=d?[]:Goe.slice(0,m.length),I=d?k.labels:N.map(A=>({label:A})),w=h?k.values:q8(0,m.length),R=`${r}-type`,E=`${r}-instructions`,j=I.map(A=>A.label),O=I.map(A=>A.l10nId).join(",");return(0,n.jsxs)("div",{className:"block-chart__cartesian",children:[(0,n.jsx)("p",{className:"visually-hidden-always",id:E,children:v?.a11yBlockChartInstructions}),(0,n.jsxs)("div",{className:"block-chart__cartesianChart",ref:this.wrapRef,children:[T&&mn(T)&&(0,n.jsxs)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":wt(S),style:{insetInlineEnd:b},children:[T,(0,n.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisY})]}),y&&mn(y)&&(0,n.jsxs)("div",{className:"block-chart__cartesianLabelX","data-l10n-id":wt(p),children:[y,(0,n.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisX})]}),(0,n.jsx)(Boe,{onEvent:this.handleEvent,reduceMotion:Ds(),shouldAnimate:x,values:w,children:A=>(0,n.jsx)(Ioe,{activeIndex:t,opts:A,values:w,children:P=>(0,n.jsxs)("div",{"aria-describedby":E,"aria-labelledby":`${a} ${R}`,className:"block-chart__cartesian-canvas-wrap",onBlur:i,onFocus:c,onKeyDown:l,role:"application",tabIndex:0,children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:R,children:L==="bar"?v?.a11yBlockChartBar:v?.a11yBlockChartLine}),(0,n.jsx)(Z8.Chart,{"aria-hidden":"true",data:{labels:j,datasets:[P]},"data-l10n-id":O,options:A,ref:s,role:"presentation",type:L,updateMode:"default"})]})})})]}),!d&&(0,n.jsx)(Aoe,{activeIndex:t,labels:k.labels,letters:N,onEvent:C,values:w})]})}}function Koe(e){const t=Je(e),s=ZB(960,"isDesktop","Desktop")(t),o=s7(s);function r(a){const c=c1()?.term??"";return(0,n.jsx)(o,{...a,search:c})}return r}const Qoe=Koe(Woe),Kp=({valueType:e,value:t,values:s})=>e==="numeric"?String(t):Ree(t/G9(s)),Zoe=e=>{if(Ac())return"FieldText";const t=e.dataset.backgroundColor[e.dataIndex]??"#000";return Rs(t)===ye.DARK?Lt.DARK:Lt.LIGHT},Yoe=(e,t,s)=>Kp({valueType:e,value:t,values:s.dataset.data}),Xoe=(e,t)=>{const{label:s,dataset:o,parsed:r}=t[0],a=Kp({valueType:e,value:r,values:o.data});return`${s}: ${a}`},qoe=(e,t)=>{const s=t.dataIndex,o=t.dataset.data??[1],r=o[s],a=e==null&&r/G9(o)>=.06;return e===s||a},Joe=({activeIndex:e,onEvent:t,reduceMotion:s,settings:{valueType:o},shouldAnimate:r})=>{const a=Ac();return{animation:{animateRotate:r&&!s,duration:r&&!s?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:t,onHover:t,maintainAspectRatio:!1,plugins:{datalabels:{color:Zoe,display:qoe.bind(null,e),font:{size:12,weight:"bold"},formatter:Yoe.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!s,boxPadding:"14px 10px",callbacks:{label:()=>null,title:Xoe.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":Lt.LIGHT,titleColor:a?"HighlightText":Lt.DARK}},responsive:!1,rotation:130}},ere=({activeIndex:e,colors:t,hasBorder:s,values:o})=>{const r=Os(),a=Ac(),i=e==null?t:t.map((c,l)=>l===e?c:(0,J8.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,...s&&{borderWidth:1,borderColor:"#000"}}};function tre({activeIndex:e,children:t,colors:s,hasBorder:o,values:r}){const a=ere({activeIndex:e,colors:s,hasBorder:o,values:r});return t(a)}class sre extends u.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:t,color:s,index:o,label:r,value:a}=this.props,i=t!=null&&t!==o,c=G()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":i});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsxs)("dt",{className:"block-chart__circleLegendTerm",children:[(0,n.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:s,focusable:"false",role:"presentation",viewBox:"0 0 10 10",children:(0,n.jsx)("rect",{height:"10",rx:"1.5",width:"10"})}),(0,n.jsx)("span",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]}),(0,n.jsx)("dd",{className:"visually-hidden-always",children:a})]})}}const nre=sre,ore=({activeIndex:e,colors:t,hasBorder:s,labels:o,onEvent:r,values:a,valueType:i="numeric"})=>{const c=wu(t,wu(o,a));if(c.length===0)return null;const l=G()("block-chart__circleLegend",{"block-chart__circleLegend--border":s});return(0,n.jsx)("dl",{className:l,children:c.map(([d,[h,m]],p)=>(0,n.jsx)(nre,{activeIndex:e,color:d,index:p,label:h,onEvent:r,value:Kp({valueType:i,value:m,values:a})},h.label))})},rre=(0,u.memo)(ore),are=(e,t)=>{const s=e.filter(a=>Number(a.value)>=0),o=e7(s,t),r=s.map(a=>a.color);return{...o,colors:r}};class ire extends u.PureComponent{wrapRef;id;resizeObserver;constructor(t){super(t),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:t,settings:s,shouldAnimate:o}=this.props;return Joe({activeIndex:t,onEvent:this.handleEvent,reduceMotion:Ds(),settings:s,shouldAnimate:o})};handleEvent=(t,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};render(){const{activeIndex:t,backgroundColor:s,chartRef:o,getL10nValue:r,htmlIdBase:a,htmlIdTitle:i,onBlur:c,onFocus:l,onKeyDown:d,isVisible:h,items:m,labels:p,onEvent:v,settings:C}=this.props,{colors:g,labels:x,values:S}=are(m,r),L=h?S:q8(0,m.length),b=this.buildOptions(),y=`${a}-type`,T=`${a}-instructions`,k=x.map(I=>I.label),N=g.includes(s);return(0,n.jsxs)("div",{className:"block-chart__circle",children:[(0,n.jsx)("p",{className:"visually-hidden-always",id:T,children:p?.a11yBlockChartInstructions}),(0,n.jsx)("div",{className:"block-chart__circleChart",ref:this.wrapRef,children:(0,n.jsx)(tre,{activeIndex:t,colors:g,hasBorder:N,values:L,children:I=>(0,n.jsxs)("div",{"aria-describedby":T,"aria-labelledby":`${i} ${y}`,className:"block-chart__circle-canvas-wrap",onBlur:c,onFocus:l,onKeyDown:d,role:"application",tabIndex:0,children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:y,children:p?.a11yBlockChartPie}),(0,n.jsx)(Z8.Chart,{"aria-hidden":"true",data:{labels:k,datasets:[I]},options:b,ref:o,role:"presentation",type:"pie",updateMode:"default"})]})})}),(0,n.jsx)(rre,{activeIndex:t,colors:g,hasBorder:N,labels:x,onEvent:v,values:L,valueType:C?.valueType})]})}}function cre(e){const t=HA()(e),s=s7(t);return Je(s)}const lre=cre(ire);js.Chart.register(js.ArcElement,js.BarController,js.BarElement,js.CategoryScale,boe.default,js.Legend,js.Legend,js.LineController,js.LineElement,js.LinearScale,js.PieController,js.PointElement,js.Title,js.Tooltip);const dre=e=>e.displayName||e.name||"Component";class ure extends u.PureComponent{id;constructor(t){super(t),this.state={isVisible:!1},this.id=(0,u0.uniqueId)("chart-")}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||Ds()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:t}=this.props;return(0,n.jsx)(ke,{value:t})};render(){const{props:{animateBlockEntrance:t,children:s,editable:o,initiallyVisible:r,isLearner:a,items:i,itemsLabel:c,labels:l,settings:d,title:h,valuesLabel:m,variant:p,renderTitle:v=this.renderTitle},state:{isVisible:C}}=this,g=d?.headingLevel,x=g?`h${g}`:"h2",S=this.id,L=`${S}-title`;return(0,n.jsx)(Re,{type:"chart",children:(0,n.jsx)(Ve,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:"block-chart__container",children:(0,n.jsx)("div",{className:"block-chart__row",children:(0,n.jsx)("div",{className:"block-chart__rowInner",children:(0,n.jsxs)("figure",{children:[(!o&&h||o)&&(0,n.jsx)("figcaption",{children:(0,n.jsx)(x,{className:"block-chart__title",id:L,children:v()})}),(0,n.jsx)("div",{className:"block-chart__chart",children:u.cloneElement(u.Children.only(s),{htmlIdBase:S,htmlIdTitle:L,isVisible:C,items:i,itemsLabel:c,labels:l,settings:d,shouldAnimate:t,valuesLabel:m,variant:p})})]})})})})})})}}const hre=ure;function n7(e){const t=s=>(0,n.jsx)(hre,{...s,children:(0,n.jsx)(e,{})});return t.displayName=`ChartWrap(${dre(e)})`,t}var mre=f(82920);const pre=n7(Qoe),fre=n7(lre),gre=kn()(He()("variant","storyline")),vre=dt()(gre,is(),mQ()(1));class Cre extends mre.Component{render(){const{dividerNumber:t,family:s,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:i,initiallyVisible:c}=this.props,d={...Wr()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:i,partnerContent:r,initiallyVisible:c};return ae("text","paragraph",d)||ae("text","table",d)?(0,n.jsx)(lX,{...d}):ae("text","heading paragraph",d)?(0,n.jsx)(fX,{...d}):ae("text","subheading paragraph",d)?(0,n.jsx)(gX,{...d}):ae("text","heading",d)?(0,n.jsx)(mX,{...d}):ae("text","subheading",d)?(0,n.jsx)(pX,{...d}):ae("text","two column",d)?(0,n.jsx)(dX,{...d}):ae("text","three column",d)?(0,n.jsx)(uX,{...d}):ae("text","four column",d)?(0,n.jsx)(hX,{...d}):ae("text","code",d)?(0,n.jsx)(Q4,{...d}):ae("impact","a",d)?(0,n.jsx)(AX,{...d}):ae("impact","b",d)?(0,n.jsx)(RX,{...d}):ae("impact","c",d)?(0,n.jsx)(PX,{...d}):ae("impact","d",d)?(0,n.jsx)(MX,{...d}):ae("impact","note",d)?(0,n.jsx)(OX,{...d}):ae("quote","a",d)?(0,n.jsx)(e9,{...d}):ae("quote","b",d)?(0,n.jsx)(_X,{...d}):ae("quote","c",d)?(0,n.jsx)(UX,{...d}):ae("quote","d",d)?(0,n.jsx)(GX,{...d}):ae("quote","background",d)?(0,n.jsx)(WX,{...d}):ae("quote","carousel",d)?(0,n.jsx)(QX,{...d}):ae("quote","stacked",d)?(0,n.jsx)(ZX,{...d}):ae("list","numbered",d)?(0,n.jsx)(JX,{...d}):ae("list","checkboxes",d)?(0,n.jsx)(eq,{...d}):ae("list","bulleted",d)?(0,n.jsx)(tq,{...d}):ae("list","icon",d)?(0,n.jsx)(sq,{...d}):ae("image","hero",d)?(0,n.jsx)(oq,{...d}):ae("image","full",d)?(0,n.jsx)(pp,{...d}):ae("image","text aside",d)?(0,n.jsx)(iq,{...d}):ae("image","text overlay",d)?(0,n.jsx)(lq,{...d}):ae("image","banner",d)?(0,n.jsx)(dq,{...d}):ae("gallery","centered",d)||ae("gallery","full",d)?(0,n.jsx)(vq,{...d}):ae("gallery","two column",d)?(0,n.jsx)(gp,{...d}):ae("gallery","three column",d)?(0,n.jsx)(gp,{width:3,...d}):ae("gallery","four column",d)?(0,n.jsx)(gp,{width:4,...d}):ae("divider","divider",d)?(0,n.jsx)(xq,{...d}):ae("divider","numbered divider",d)?(0,n.jsx)(bq,{number:t,...d}):ae("divider","spacing divider",d)?(0,n.jsx)(yq,{...d}):ae("360","storyline",d)?(0,n.jsx)(sJ,{...d,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):ae("interactive","accordion",d)?(0,n.jsx)(Eq,{...d}):ae("interactive","tabs",d)?(0,n.jsx)(Fq,{...d}):ae("interactive-fullscreen","labeledgraphic",d)?(0,n.jsx)(Ase,{...d}):ae("interactive-fullscreen","process",d)?(0,n.jsx)(Xse,{...d}):ae("interactive-fullscreen","scenario",d)?(0,n.jsx)(yne,{...d}):ae("interactive-fullscreen","sorting",d)?(0,n.jsx)(Mne,{...d}):ae("buttons","button",d)?(0,n.jsx)(fJ,{...d}):ae("buttons","button stack",d)?(0,n.jsx)(gJ,{...d}):ae("flashcard","flashcard",d)?(0,n.jsx)(B9,{...d}):ae("flashcard","stack",d)?(0,n.jsx)(B9,{stack:!0,...d}):ae("knowledge","knowledge",d)?(0,n.jsx)(qa,{...d}):ae("continue","continue",d)?(0,n.jsx)(lee,{...d}):ae("multimedia","step",d)?(0,n.jsx)(cee,{...d}):ae("multimedia","audio",d)?(0,n.jsx)(eee,{...d}):ae("multimedia","video",d)?(0,n.jsx)(Np,{...d}):ae("multimedia","ai_avatar",d)?(0,n.jsx)(Np,{...d}):ae("multimedia","custom video",d)?(0,n.jsx)(Np,{...d,type:"customVideo"}):ae("multimedia","embed",d)?(0,n.jsx)(see,{...d}):ae("multimedia","attachment",d)?(0,n.jsx)(ree,{...d}):ae("multimedia","code",d)?(0,n.jsx)(Q4,{...d}):ae("knowledgeCheck","multiple choice",d)?(0,n.jsx)(qa,{...d}):ae("knowledgeCheck","multiple response",d)?(0,n.jsx)(qa,{...d}):ae("knowledgeCheck","fillin",d)?(0,n.jsx)(qa,{...d}):ae("knowledgeCheck","matching",d)?(0,n.jsx)(qa,{...d}):ae("knowledgeCheck","draw from question bank",d)?(0,n.jsx)(qa,{...d}):ae("chart","bar",d)||ae("chart","line",d)?(0,n.jsx)(pre,{...d}):ae("chart","pie",d)?(0,n.jsx)(fre,{...d}):ae("interactive-fullscreen","timeline",d)?(0,n.jsx)(doe,{...d}):ae("ai-scenario","ai-scenario",d)?(0,n.jsx)(Qne,{...d}):ae("mondrian","mondrian",d)?(0,n.jsx)($ne,{...d}):ae("videoCheckpoint","videoCheckpoint",d)?null:ae("textToVideo","textToVideo",d)?(0,n.jsx)(xoe,{}):ae("survey","survey",d)?(0,n.jsx)($se,{...d}):ae("sequence","arrows",d)||ae("sequence","pyramid",d)||ae("sequence","timeline",d)?(0,n.jsx)(poe,{...d}):ae("team","people",d)?(0,n.jsx)(Coe,{...d}):ae("html","inline",d)||ae("html","cdn",d)||ae("html","vibe",d)?(0,n.jsx)(roe,{...d}):`Unknown type: ${s} ${a}`}hasManySlBlocks(){const{items:t}=this.props;return t&&vre(t)}}function xre(e){return(0,n.jsx)(P1,{block:e,children:(0,n.jsx)(Cre,{...e})})}function ae(e,t,s){return s.family===e&&s.variant===t}const bre=1e3,yre=150,Lre="onscrollend"in window;function o7(e,t){const s=e.getBoundingClientRect(),o=t?.getBoundingClientRect(),r=o?.top??0,a=o?.bottom??window.innerHeight,i=(a-r)*.02,c=s.bottom>r-i&&s.top<a+i,l=s.bottom<r;return c||l}const Qp={entries:new Map,scrollHandler:null,scrollEndHandler:null,scrollTarget:null,debounceTimer:null,register(e,t,s){const o=this.entries.size===0,r=t??window;if(this.entries.set(e,{el:e,scrollableParent:t,callback:s}),o){this.scrollTarget=r;const a=()=>{this.debounceTimer!=null&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.checkAll(),yre)};Lre?(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(e){this.entries.delete(e),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 e=[];for(const t of this.entries.values())o7(t.el,t.scrollableParent)&&e.push(t);e.forEach(t=>t.callback())})}},r7=({children:e,onViewed:t})=>{const s=(0,u.useRef)(null),o=(0,u.useRef)(!1),r=(0,u.useRef)(t);return(0,u.useEffect)(()=>{r.current=t},[t]),(0,u.useEffect)(()=>{const a=s.current;if(!a||o.current)return;const i=y4(),c=()=>{o.current||(o.current=!0,l.disconnect(),clearTimeout(d),Qp.unregister(a),r.current())},l=new IntersectionObserver(([h])=>{h!=null&&(h.isIntersecting||h.intersectionRatio>0)&&c()},{root:i,rootMargin:L2,threshold:0});l.observe(a);const d=setTimeout(()=>{!o.current&&o7(a,i)&&c()},bre);return Qp.register(a,i,c),()=>{l.disconnect(),clearTimeout(d),Qp.unregister(a)}},[]),(0,n.jsx)("div",{ref:s,children:e})};var Zp=f(82920);class Sre extends Zp.PureComponent{render(){return(0,n.jsx)(r7,{onViewed:this.handleViewed,children:Zp.cloneElement(Zp.Children.only(this.props.children),{onStep:this.handleStep})})}handleStep=t=>{t!=null&&"id"in t&&!t.isDone&&this.props.onStep(t.id)};handleViewed=()=>{const{block:t}=this.props;if(!t.items?.length){this.props.onViewed();return}if(!t.requiresInteraction){this.props.onViewed();return}(Tre.test(t.variant)||kre.test(t.family))&&t.items.length>0&&this.handleStep(t.items[0])}}const Tre=/tabs|carousel/,kre=/gallery/,Nre=["timeline"],Ire=({family:e,variant:t})=>(/interactive|flashcard|knowledge|continue|360|survey/.test(e)||/carousel|centered|checkboxes|audio|video|storyline/.test(t))&&!Nre.includes(t),Ere=({family:e,settings:t})=>e==="html"&&t?.hasCustomCompletion,jre=({family:e,items:t})=>!!(e==="mondrian"&&t?.length),wre="draw from question bank",Yp=e=>{const{animateBlockEntrance:t,block:s,className:o,color:r,courseTitle:a,defaultBackgroundColor:i,enableVideoPlaybackSpeed:c,handleNavigate:l,handleStorylineFullscreen:d,hideBlock:h,index:m,isLastBlock:p,isOnlyBlockInStep:v,labels:C,lessonId:g,lessonProgress:x,loadMedia:S,match:L,onContinue:b,partnerContent:y,prefersKeyboardNavigation:T,previewType:k,shouldPause:N}=e,{blockId:I,family:w,items:R=[],variant:E,settings:j}=s,O=`block-${I}`,A=ut(),P=JE(),M=Iw({blockId:String(I),lessonId:String(g)}),F=(0,u.useCallback)(te=>{const se=E===wre?R[0]:Ks()(He()("id",te),R);A(Dg({blockId:I,lessonId:g,items:[se]})),w==="continue"&&b(I,te)},[I,A,w,R,g,b,E]),B=(0,u.useCallback)(()=>{A(Dg({blockId:I,lessonId:g,items:R}))},[I,A,R,g]),H=(0,u.useCallback)(te=>{const se=R?.[0],Te=se&&"id"in se?se.id:void 0;Te&&A(UN({blockId:I,itemId:Te,lessonId:g,audioVideoPlayhead:te}))},[I,A,g,R]),V=(0,u.useCallback)(()=>{A(KN({blockId:I,lessonId:g,isSubmitted:!0}))},[I,A,g]),K=(0,u.useCallback)(({itemId:te,response:se})=>{A(WN({blockId:I,itemId:te,lessonId:g,response:se}))},[I,A,g]),U=(0,u.useCallback)(te=>{A(zN(te))},[A]),X=(0,u.useCallback)(()=>({itemId:te,isCorrect:se})=>A(GN({itemId:te,lessonId:g,blockId:I,isCorrect:se})),[I,A,g]),oe=(0,u.useCallback)(()=>()=>A(_N({lessonId:g,blockId:I})),[I,A,g]),Z=cc(),_=(0,u.useCallback)(te=>{A(OC(te))},[A]),D=(0,u.useCallback)(()=>{A(lc())},[A]),$=(0,u.useCallback)(te=>{A(Mm(te))},[A]),Q=Nn()(s,{animateBlockEntrance:t,className:o?.toString(),color:r,courseTitle:a,defaultBackgroundColor:i,dividerNumber:M,enableVideoPlaybackSpeed:c,family:w,handleNavigate:l,handleStorylineFullscreen:d,onFinishStoryline:ST,onSurveySubmitted:V,onSurveyPartialResponse:K,initiallyVisible:m===0,isHidden:h,isLastBlock:p,isLearn:!0,isLearner:!0,isOnlyBlockInStep:v,isVideoTraining:P,labels:C,lessonId:g,loadMedia:S,match:L,onCardDrop:X,onReplay:oe,onRetryAttempt:U,onTranscriptClose:D,onTranscriptOpen:_,onTranscriptUpdate:$,originalVariant:void 0,partnerContent:y,prefersKeyboardNavigation:T,previewType:k,progress:x,recordMediaPlayheadPosition:H,shouldPause:N,transcriptPanelState:Z}),Y=Ire({family:w,variant:E})||Ere({family:w,settings:j})||jre({family:w,items:R}),q=WB(g,I),J=G()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":h}),ee=(0,n.jsx)(xre,{...Q});return(0,n.jsx)("div",{className:J,"data-block-id":I,"data-change-path":q,children:Y?(0,n.jsx)(Sre,{block:s,onStep:F,onViewed:B,children:ee}):(0,n.jsx)(r7,{onViewed:B,children:ee})},O)},Are=({slides:e,currentSlide:t},s)=>(t.push(s),s.settings?.attachedToNextBlock||(e.push(t),t=[]),{slides:e,currentSlide:t}),Rre=e=>{const{slides:t}=Vm()(Are,{slides:[],currentSlide:[]},e);return t};function Xp(e,t,s,o){if(e.length){const a=e.slice(-1)[0];if(!Rc(a.id,s))return e}const r=Loe(Pre(s),t.slice(e.length)).map(Mre(o));return r.length?Xp(e.concat(r),t,s,o):e}const Rc=(e,t)=>_e()(!1,["items",e,"isComplete"],t),Pre=e=>({family:t,items:s})=>{const o=_e()({},0,s);return t==="continue"&&!Rc(o.id,e)},Mre=e=>(t,s,o)=>{const r=o.slice(-1)[0]||{},{family:a}=r,i=a==="continue"?_e()(void 0,["items",0,"type"],r)??e?.blockContinueCompletionType??!1:!1;return t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer?Nn()(t,{requiresInteraction:!0}):t.variant!=="continue"&&(!i||i==="completeBlock"&&s!==o.length-1&&s!==o.length-2)?t:Nn()(t,{requiresInteraction:!0})};function a7({id:e,...t},s,o,r,a){if(t.family==="continue"){const i=_e()(void 0,["items",0,"type"],t)??a?.blockContinueCompletionType??"";return Nn()({blockId:e,...t},{skipContinue:r,canContinue:Ore({continueType:i,blocks:s,progress:o}),lessonProgress:o,isComplete:Rc(e,o)})}return{blockId:e,...t}}const Ore=({continueType:e,blocks:t,progress:s})=>{switch(e){case"completeAll":return rs()(is()(t),Fre(s));case"completeBlock":return t.length===0?!0:Rc(Vre(t),s);default:return!0}},Bre=me()(Zt(),Ae()("items")),Dre=e=>me()(Hre,Bre)(e),Hre=kn()(He()("isComplete",!0)),Fre=me()(is(),Dre),Vre=me()(Ae()("id"),So()),zre=({family:e,variant:t,isComplete:s,requiresInteraction:o})=>e==="continue"&&t==="continue"&&o&&!s,$re=(e,t)=>!!e.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!t?.items?.[o?.id]?.isComplete}),_re=e=>e.length===0?!1:a4()(zre,e),Ure=(e,t)=>e.length===0?!1:$re(e,t),Gre=({blocks:e,lessonProgress:t})=>e.findIndex(s=>{const o=t?.items?.[s?.id],r=o&&o?.isComplete==null;return s?.family==="knowledgeCheck"&&s?.settings?.requireCorrectAnswer&&r}),i7=({blocks:e,lessonProgress:t,currentBlockIndex:s})=>{const o=Gre({blocks:e,lessonProgress:t});return o>-1&&s>o},Wre=(e,t)=>{const s=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(e)||s.includes(t)};function Kre(e,t,s){if(!e||!t||!w1())return!1;if(AE(s,{l10n:t}))return!0;const{locales:o,defaultLocale:r}=t,a=o.find(i=>i.locale===r)?.id;return a&&a!==e}function Qre({animateBlockEntrance:e,blocks:t,className:s,color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,isLessonEntering:l,isLessonExiting:d,labels:h,lessonId:m,lessonProgress:p,loadMedia:v,nextLesson:C,partnerContent:g,prefersKeyboardNavigation:x,previewType:S}){const L=(0,u.useRef)(null),b=(0,u.useRef)(null),y=(0,u.useRef)(null),[T,k]=(0,u.useState)(!1),{currentLocale:N}=ct(),I=(0,je.g)(),w=(0,u.useMemo)(()=>({params:I}),[I]),R=he(Z=>Z.course?.theme),E=he(h1),j=he(Z=>Z.course?.defaultLocaleId),O=he(Z=>Z.l10n),A=Kre(j,O,N),P=(0,Be.A)(l),M=(0,u.useRef)(d),F=(0,u.useRef)(l),B=(0,u.useRef)(m);M.current=d,F.current=l,B.current=m,(0,u.useEffect)(()=>{const Z=_=>{if(_.origin!==window.location.origin)return;(Array.isArray(_.data)?_.data:[_.data]).forEach($=>{$?.type==="preview:lessonUpdate"&&k(!0)})};return window.addEventListener("message",Z),()=>window.removeEventListener("message",Z)},[]),(0,u.useEffect)(()=>{const Z=_=>{if(M.current||_.detail.lessonId!==B.current)return;const D=_.detail.itemId,$=_.detail.align??"nearest";D==null?L.current?.closest(".page")?.scrollIntoView({behavior:"smooth",block:"start"}):F.current?y.current={blockId:D,align:$}:H(D,$)};return window.addEventListener(Ze,Z),()=>window.removeEventListener(Ze,Z)},[]),(0,u.useEffect)(()=>{if(P&&!l&&y.current!=null){const{blockId:Z,align:_}=y.current;H(Z,_),y.current=null}},[l,P]),(0,u.useLayoutEffect)(()=>{V()});function H(Z,_="nearest"){const $=document.querySelector(".page-wrap")?.querySelector(`[data-block-id="${Z}"]`);$?.scrollIntoView({behavior:"smooth",block:_})}function V(){if(b.current){const Z=qv()(He()("id",b.current),t),_=ca()(Z),D=_e()(null,[_,"id"],t);if(D){const $=document.querySelector(".page-wrap"),Q=$?.querySelector(`[data-block-id="${D}"]`),Y=Q?Q.getBoundingClientRect().top:0;ic.Ay.animateScroll.scrollTo(Y+$.scrollTop,{smooth:!0,containerId:"page-wrap"})}b.current=null}}const K=(0,u.useCallback)((Z,_)=>{Rc(_,p)||(b.current=Z),Z===t[t.length-1]?.id&&C&&(ys(Bg(m)),i(C))},[i,t,m,p,C]),U=A||T,X=U?t:Xp([],t,p,R),oe=G()("blocks-lesson",s,{"blocks-lesson--one-page":E});return(0,n.jsx)("section",{className:oe,ref:L,children:X.map((Z,_,D)=>{const $=a7(Z,D.slice(0,-1),p,U,R),Q=D.length-1,q=$.family==="continue"?Z.id===t[t.length-1]?.id:_===Q,J=!T&&i7({blocks:X,lessonProgress:p,currentBlockIndex:_});return(0,n.jsx)(Yp,{animateBlockEntrance:e,block:$,color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,hideBlock:J,index:_,isFirstLesson:!0,isLastBlock:q,labels:h,lessonId:m,lessonProgress:p,loadMedia:v,match:w,onContinue:K,partnerContent:g,prefersKeyboardNavigation:x,previewType:S},$.blockId)}).filter(uQ.A)})}const qp=Qre;function Au({children:e}){const t=(0,u.useRef)(null),s=(0,u.useCallback)(()=>{t.current?.focus?.()},[]);return D$(s),(0,n.jsx)("main",{className:"lesson-main",ref:t,tabIndex:-1,children:e})}const Zre=({animateBlockEntrance:e,color:t,courseTitle:s,data:o,enableVideoPlaybackSpeed:r,handleNavigate:a,handleStorylineFullscreen:i,labels:c,lessonHeader:l,lessonHeaderWrapClasses:d,lessonHeaderWrapStyles:h,lessonProgress:m,loadMedia:p,match:v,nextLesson:C,prefersKeyboardNavigation:g,previewType:x,hideLessonHeaders:S})=>{const L=Sr(),{id:b,items:y,type:T}=o,k={animateBlockEntrance:e,blocks:y,color:t,courseTitle:s,enableVideoPlaybackSpeed:r,handleNavigate:a,handleStorylineFullscreen:i,isFirstLesson:!0,labels:c,lessonId:b,lessonProgress:m,loadMedia:p,match:v,nextLesson:C,partnerContent:L,previewType:x,prefersKeyboardNavigation:g,type:T};return(0,n.jsx)("div",{className:"page","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper page__wrapper--white",children:(0,n.jsxs)(Au,{children:[(0,n.jsx)("div",{className:d,inert:S,style:h,children:l}),(0,n.jsx)("div",{className:"page__content",children:(0,n.jsx)(qp,{...k})})]})})})},Yre=({percentComplete:e,trackingCompletionPercentage:t,labelCompletionRequirement:s="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:i="Requirement not completed, empty square"})=>{const c=un();if(at()(t))return null;const l=Ia({percent:t,label:o,isRTL:c}),d=c?`%${e}`:`${e}%`;return(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:s}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsx)("div",{children:l}),(0,n.jsxs)("div",{children:[r,"\xA0",(0,n.jsx)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:d})]})]})]}),(0,n.jsx)(c7,{labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:i,requirementMet:t<=e})]})},Xre=({outOfAttempts:e,quizPassed:t,quizPassingScore:s,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:i="Quiz Requirement",labelScoreOf:c="Score of",labelScoreOfPreposition:l="% on",labelViewQuiz:d="View quiz",labelYouScored:h="You scored",labelNoAttemptsRemaining:m="No attempts remaining.",labelA11yRequirementCompleted:p="Requirement completed, check mark",labelA11yRequirementNotCompleted:v="Requirement not completed, empty square"})=>{const C=un();if(!a)return null;const g=Ia({percent:s,label:l,isRTL:C});return(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:i}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsxs)("div",{children:[c," ",g," ",r]}),at()(o)?(0,n.jsx)("div",{children:(0,n.jsx)(ls,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:d})}):(0,n.jsxs)("div",{children:[h,"\xA0",(0,n.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[o,"%"]})]})]}),e&&(0,n.jsx)("span",{className:"progress-summary__requirement-no-attempts",children:m})]}),(0,n.jsx)(c7,{labelA11yRequirementCompleted:p,labelA11yRequirementNotCompleted:v,requirementMet:t})]})},c7=({requirementMet:e,labelA11yRequirementCompleted:t,labelA11yRequirementNotCompleted:s})=>e?(0,n.jsx)(ie,{"aria-label":t,classNameIcon:"progress-summary__requirement-checkbox-checked",name:"square-check"}):(0,n.jsx)("div",{"aria-label":s,className:"progress-summary__requirement-checkbox-empty",role:"img"}),qre=({dueAt:e})=>e?(0,n.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:th(e)}):null;var Jre=f(68508),eae=f.n(Jre),tae=f(82920);const sae=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class nae extends tae.Component{constructor(...t){super(...t),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(t,s){return s.recycle!==this.state.recycle||s.run!==this.state.run}componentWillUnmount(){clearTimeout(this.timeout)}render(){const{state:{recycle:t,run:s}}=this;return(0,n.jsx)("div",{className:"progress-summary__confetti",children:(0,n.jsx)(eae(),{colors:sae,gravity:.4,height:window.innerHeight,numberOfPieces:500,recycle:t,run:s,width:window.innerWidth})})}}const oae=nae;var rae=f(5366),aae=f.n(rae),iae=f(15029);const l7=z("progress-summary-card"),cae=({completeLabel:e,isComplete:t,isUrgent:s,completedDate:o,labelDue:r})=>t?(0,n.jsxs)("div",{className:"progress-summary-card__completed-label",children:[e,(0,n.jsx)("span",{className:"progress-summary-card__completed-date",children:o})]}):r?(0,n.jsx)("div",{className:G()("progress-summary-card__due-label",{"brand--color":s}),children:r}):null,lae=({cardImageKey:e=null,className:t,color:s="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:i=!1,enrolledAt:c=null,hidden:l=!1,imagesUri:d="",isLearningPath:h=!1,isUrgent:m=!1,labelAssignedToMe:p="",labelDue:v="",labelDuration:C="",labelLearningPath:g="",onClick:x=vs,progress:S=0,title:L=""})=>{const b=xe(),y=un(),T=o!==null,k=(0,u.useCallback)(()=>{a||x?.()},[a,x]),N=(0,u.useCallback)(A=>{V1(A)&&A.preventDefault(),!a&&Ca(A)&&x?.()},[a,x]),I=Ia({percent:Math.round(S),label:b?.progressSummaryPercentComplete||"% Complete",isRTL:y}),w=e||r,R=b?.progressSummaryCompleted||"Completed: ",E=`${fn()(new Date(o)).format("MM/DD/YY")}`,j=l7("card",{disabled:a}),O=l7("image-overlay",{"not-started":!(S||T),"in-progress-completed":S||T});return(0,n.jsxs)("div",{"aria-hidden":l,className:j,onClick:k,children:[(0,n.jsxs)("div",{className:"progress-summary-card__content",children:[(0,n.jsx)("button",{"aria-disabled":a,className:G()("progress-summary-card__title-button",{[t]:t}),onKeyDown:N,role:"link",tabIndex:l?-1:void 0,type:"button",children:(0,n.jsx)("span",{className:"progress-summary-card__title",children:L||b?.progressSummaryNoTitle||"(No Title)"})}),(0,n.jsxs)("div",{className:"progress-summary-card__course-info",children:[h&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:g}),c&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:p}),!!S&&!a&&!o&&(0,n.jsx)("span",{className:"progress-summary-card__hide",children:I}),!i&&!T&&(0,n.jsx)("div",{className:"progress-summary-card__duration",children:C}),(0,n.jsx)(cae,{completedDate:E,completeLabel:R,isComplete:T,isUrgent:m,labelDue:v})]})]}),(0,n.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,n.jsx)(iae.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:w,imagesUri:d,s:"cover",style:{backgroundColor:s},w:300}),(0,n.jsx)("div",{className:O}),(0,n.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!S&&!a&&!T&&(0,n.jsx)("div",{"aria-hidden":"true",className:"progress-summary-card__progress-bar-wrap",children:(0,n.jsx)("div",{className:"progress-summary-card__wrap-light",children:(0,n.jsx)("div",{className:"progress-summary-card__progress-bar",style:{width:`${S}%`}})})})})]})]})},dae=Ee("IMAGES_URI"),uae=["cardImageKey","color","coverImageKey","progress","score","title"],d7=(e,t)=>e===1?t:t.concat("s"),Jp=_e()([],["course","course","lessons"]),hae=e=>me()(bs(),N0()(wn()(He()("type","section"),Jv()(jn()(R2(),e),"id"))),Jp),mae=e=>{const t=Jp(e),{trackingQuizId:s}=e,{score:o}=e;if(s&&t.length){const r=Ks()(He()("id",s),t),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},pae=me()(Ks()(Yr()(He()("type","section"))),Jp),fae=cl()(2,e=>me()(jt()("","id"),Ks()(Boolean),aae()([hae(e),mae,pae]))),gae=e=>{const t=fn().duration(e),s=t.hours(),o=t.minutes(),r=`${s} ${d7(s,"hr")}`,a=`${o} min`;return s>=100?"100+ hrs":s>0&&o>0?[r,a].join(" "):s>0?r:a},vae=({color:e,learningPathId:t})=>{const{learningPathComplete:s,isSuccess:o,nextCourse:r}=he(x=>x.learningPathUpNext??{}),{dueAt:a,courseId:i="",lessonCount:c,lessonsCompleted:l=[],sourceType:d,timeToComplete:h}=r??{},m=xe(),p=(0,u.useMemo)(()=>fae(l,r),[r,l]),v=r?.color??e,C=En()(uae,{...r,color:v}),g=(0,u.useCallback)(()=>{d==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",i),top.location.assign(`/learning-path/${t}`)):HI(`${i}/lessons/${p}`)},[i,t,p,d]);return o&&!s&&(0,n.jsx)("div",{className:"progress-summary__lp-next",children:(0,n.jsxs)("div",{className:"progress-summary__lp-next-inner",children:[(0,n.jsxs)("div",{className:"progress-summary__lp-next-label",children:[m?.progressSummaryNextUp||"Next up"," ",(0,n.jsx)(ie,{"aria-hidden":"true",classNameIcon:"progress-summary__lp-next-label-icon",name:"arrow-right"})]}),(0,n.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,n.jsx)(lae,{imagesUri:dae,labelCount:`${c} ${d7(c,"lesson")}`,labelDue:th(a),labelDuration:gae(h),noCertDownload:!0,noFavoriteBtn:!0,onClick:g,...C})})]})})},Cae=`${Ee("CDN_URI")}/assets/rise/assets/trophy.svg`,xae=me()(is(),kn()(Ae()("isComplete")),Zt()),bae=e=>{const{color:t,course:s={},courseProgress:o={},lessons:r=[]}=e,a=ut(),{learningPathComplete:i,lpHasFailedQuiz:c}=he(X=>X.learningPathUpNext??{}),{lessons:l={},percentComplete:d}=o,{dueAt:h,certificateDownload:m,completionCelebration:p,lessonsOnly:v=[],riseComCourseId:C,riseComLearningPathId:g,trackingCompletionPercentage:x,trackingQuizId:S}=s,L=ia(),b=xe(),y=at()(x)&&at()(S),T=y?d===100:Z2(),k=v.length,N=xae(l),I=(0,u.useCallback)(()=>{a(WI({courseId:C,learningPathId:g}))},[a,C,g]);(0,u.useEffect)(()=>{g&&I()},[]);const w=(0,u.useMemo)(()=>T?s.completedAt?s.completedAt:new Date:null,[s.completedAt,T]),R=(0,u.useMemo)(()=>Ks()(Ud()(He()("type","quiz"),He()("id",S)),r),[S,r]),E=ht(R?.title),j=(0,u.useMemo)(()=>_e()(100,["settings","passingScore"],R),[R]),O=_e()(null,["lessons",S,"passed"],o),A=(0,u.useMemo)(()=>me()(ss()(He()("percentComplete",100),Ae()("score"),Me()(null)),_e()({},["lessons",S]))(o),[o,S]),{outOfAttempts:P}=l3(o,R,S);let M=S?O:!0,F=Ds();const B=G()("progress-summary",{"progress-summary__no-req":y}),H=To(s),V=`You've completed ${N} of ${k} lessons.`,U=H?T?"Complete":"Incomplete":V;return(0,n.jsx)(jr,{title:rc(L+" - Progress Summary"),children:(0,n.jsxs)("div",{className:B,children:[T&&p&&M&&!F&&(0,n.jsx)(oae,{}),(0,n.jsxs)("header",{className:"progress-summary__header",children:[(0,n.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:T&&!y&&M?b?.progressSummaryCongratulations||"Congratulations!":b?.progressSummary||"Progress Summary"}),y?(0,n.jsx)("div",{className:"progress-summary__lessons-completed",children:U}):T?(0,n.jsxs)("div",{className:"progress-summary__header-completion-date",children:[M&&(0,n.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:Cae}),fn()(w).format("MMMM Do, YYYY")]}):(0,n.jsx)(qre,{dueAt:h})]}),(0,n.jsxs)("section",{className:"progress-summary__section",children:[!y&&T&&(0,n.jsx)("div",{className:"progress-summary__requirements-met",children:b?.progressSummaryRequirementsMet||"You've met all the requirements."}),y?!g&&(0,n.jsxs)(ls,{className:"progress-summary__start-over",to:"/",children:[b?.progressSummaryStartOver||"Start Over",(0,n.jsx)("i",{className:"progress-summary__start-over-icon icon icon-reload"})]}):(0,n.jsxs)("div",{className:"progress-summary__requirements",children:[(0,n.jsx)(Yre,{labelA11yRequirementCompleted:b?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:b?.a11yProgressSummaryRequirementNotCompleted,labelCompletionRequirement:b?.progressSummaryCompletionRequirement,labelPercentCompletion:b?.progressSummaryPercentCompletion,labelYouCompleted:b?.progressSummaryYouCompleted,percentComplete:d,trackingCompletionPercentage:x}),(0,n.jsx)(Xre,{labelA11yRequirementCompleted:b?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:b?.a11yProgressSummaryRequirementNotCompleted,labelNoAttemptsRemaining:b?.progressSummaryNoAttemptsRemaining,labelQuizRequirement:b?.progressSummaryQuizRequirement,labelScoreOf:b?.progressSummaryScoreOf,labelScoreOfPreposition:b?.progressSummaryScoreOfPreposition,labelViewQuiz:b?.progressSummaryViewQuiz,labelYouScored:b?.progressSummaryYouScored,outOfAttempts:P,quizPassed:O,quizPassingScore:j,quizScore:A,quizTitle:E,trackingQuizId:S})]}),(T||y)&&(0,n.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,n.jsx)("button",{className:"progress-summary__btn-back progress-summary__completion-control",onClick:DI,role:"link",type:"button",children:b?.progressSummaryBackToLearning||"Back to my learning"}),T&&(!g&&m||g&&i)&&m&&M&&!c&&(0,n.jsx)("span",{className:"progress-summary__completion-control",children:(0,n.jsx)(zG,{})})]})]}),T&&!!g&&(0,n.jsx)(vae,{color:t,learningPathId:g})]})})},u7=({contentClassName:e,...t})=>(0,n.jsx)("div",{className:"page","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper page__wrapper--white",children:(0,n.jsx)(Au,{children:(0,n.jsx)("div",{className:e?`page__content ${e}`:"page__content",children:(0,n.jsx)(bae,{...t})})})})}),yae={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"},h7=De("Progress"),Lae=e=>e===qk.CONTINUE,Sae=({canShowContinue:e,isExport:t,isRiseCom:s,nextLesson:o})=>e&&s&&!o&&!t,Tae=e=>Jn(e)&&"id"in e&&"type"in e,kae=({item:e,question:t})=>{if(e.type===as.DRAW_FROM_QUESTION_BANK){const s=String(t.id);return e.id===s.split("-")[0]}return e.id===t.id},Nae=(e,t)=>!e||!t||e.length!==t.length?!1:e.some((s,o)=>t[s]?.id!==t[o]?.id),Iae=(e,t,s)=>{if(!Array.isArray(e)||!Array.isArray(t)||!s)return!1;const o=e.map(i=>t[i]),r=t.findIndex(i=>i.id===s),a=o.findIndex(i=>i.id===s);return r===a},Eae=({lesson:e,question:t})=>{const o=e?.items?.filter(Tae)?.find(a=>kae({item:a,question:t}));if(o?.type!==as.DRAW_FROM_QUESTION_BANK)return o;const r=String(t.id).split("-")[1];return o.questions.find(a=>a.id===r)},jae=z("quiz"),wae=0,si=2,Aae=e=>({start:e<si?0:e-si,end:e+si});function Rae(e){return e+1}function Pae(e){return e<wae+si}function Mae(e,t){const{start:s,end:o}=Aae(t);return{items:e.slice(s,o),startOffset:s}}function ef({activeIndex:e,index:t}){return jae("card",{active:t===e,done:t<e,next:t===e+1,penultimate:t===e+si,future:t>e+si})}function Oae({settings:e}){const t=ut();return(0,u.useMemo)(()=>({onChoiceSelect:s=>{t(Xg(s))},onFillInChange:s=>{t(qg(s))},onMatchSet:s=>{t(ev(s))},onResponseToggle:s=>{t(Jg(s))},onSetIndex:s=>{t(U0(s))},onSubmit:s=>{const{skipLessonsIfPassed:o,skipToLessonId:r}=e||{};return t(G0({...s,passToContinue:s.passToContinue??!1,skipLessonsIfPassed:o??void 0,skipToLessonId:r??void 0}))}}),[t,e])}function m7(e){return e.type===as.DRAW_FROM_QUESTION_BANK}function tf(e,t){return{...t,drawn:!0,id:`${e.id}-${t.id}`}}function Bae(e,t){const s=t.map(o=>({question:e.questions[o],idx:o})).filter(o=>o.question!=null);return{items:s.map(({question:o})=>tf(e,o)),indices:s.map(({idx:o})=>o)}}function Dae(e){const{questions:t}=e;if(Dw())return{items:t.map(i=>tf(e,i)),indices:t.map((i,c)=>c)};const s=e.drawCount,o=[],r=[],a=[];for(let i=0;i<s;i++){const c=b8({questions:t,drawnQuestionIds:o});if(!c)break;r.push(tf(e,c)),a.push(t.findIndex(l=>l.id===c.id)),o.push(String(c.id))}return{items:r,indices:a}}function Hae({sourceItems:e,progress:t,lessonId:s}){const o=t?.questionsDrawn?t.questionList:void 0,r=e.filter(m7).map((d,h)=>{const m=o?.[h];return m?Bae(d,m):Dae(d)});let a=0;const i=e.flatMap(d=>m7(d)?r[a++].items:[d]),c=r.map(d=>d.indices),l=Fae({items:i,progress:t,questionIndexList:c});return{concreteItems:i,drawPayload:{lessonId:s,lessonProgress:l}}}function Fae({items:e,progress:t,questionIndexList:s}){const o=t?.items??{},r=t?.originalItemProgress,a=new Map(Object.values(o).map(c=>[c.index,c])),i=Object.fromEntries(e.map((c,l)=>{const d=r?.[l]??{},h=a.get(l);return[c.id,{...d,...h,id:c.id,index:l}]}));return{...t,questionsDrawn:!0,questionList:s,items:i}}function sf(e,t){return!!t[e.id]?.isComplete}function Vae({items:e,progress:t}){const s=t?.items??{};return[...e.filter(o=>sf(o,s)),...Eu()(e.filter(o=>!sf(o,s)))]}function zae(e){const t=e.answers??[],s=Eu()(t),o=s.map(r=>t.findIndex(a=>a.id===r.id));return Object.assign({},e,{answers:s,shuffledAnswerIndices:o})}function p7({items:e,settings:t,progress:s}){const o=t?.randomizeQuestionOrder?Vae({items:e,progress:s}):e;if(!t?.shuffleAnswerChoices)return o;const r=s?.items??{};return o.map(a=>sf(a,r)?a:zae(a))}function $ae({lessonId:e,sourceItems:t,progress:s,settings:o}){const{concreteItems:r,drawPayload:a}=Hae({sourceItems:t,progress:s,lessonId:e});return{resolvedItems:p7({items:r,settings:o??void 0,progress:a.lessonProgress}),drawPayload:a}}function p5e(e){return p7({items:e.items,settings:e.settings,progress:e.progress})}const _ae=e=>e!=null&&e.type!=null&&e.type!=="section";function f5e({lessonIds:e,lessons:t}){return!Array.isArray(e)||!t?!1:e.some((s,o)=>{const r=t[s];return r?.type!=="quiz"||r.settings?.skipLessonsIfPassed!==!0?!1:e.slice(o+1).some(a=>_ae(t[a]))})}function Uae(e,t){const s=Vt(e),o=e1(s)?s.settings:void 0,r=e?fT({id:e,passingScore:t?.passingScore??80}):void 0;return(0,u.useMemo)(()=>o&&{...o,passingScore:r??o?.passingScore??80},[o,r])}const Ru=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):void 0;function f7(){const[e,t]=(0,u.useState)(Ru?.matches??!1);return(0,u.useEffect)(()=>{if(!Ru)return;const s=o=>t(o.matches);return Ru.addEventListener("change",s),()=>Ru.removeEventListener("change",s)},[]),e}function Gae({lessonId:e}){const t=ut(),s=Vt(e),o=e1(s)?s:void 0,r=vl(e),a=(0,u.useMemo)(()=>o?.items??[],[o?.items]),i=Uae(e,r),[{resolvedItems:c,drawPayload:l}]=(0,u.useState)(()=>$ae({lessonId:e,progress:r,settings:i,sourceItems:a}));(0,u.useLayoutEffect)(()=>{t(qN({...l,lessonId:e}))},[]);const d=r?.activeIndex??0,h=f7();return Wae({activeIndex:d,isReduceMotion:h,progress:r,resolvedItems:c,settings:i,sourceItems:a}),{activeIndex:d,progress:r,resolvedItems:c,retryAttempts:r?.retryAttempts??0,settings:i,sourceItems:a}}function Wae({activeIndex:e,isReduceMotion:t,progress:s,resolvedItems:o,settings:r,sourceItems:a}){const i=(0,u.useRef)(e);(0,u.useEffect)(()=>{},[e])}const Kae=e=>e.length===3,Qae=e=>{const t=e.findIndex(s=>s==="answers");return t===-1?null:e[t+1]?.id},Zae=e=>{const t=e.findIndex(s=>s==="questions");return t===-1?null:e[t+1]?.id},Yae=e=>{const t=e.at(-1);return typeof t=="string"&&t.startsWith("feedback")},Xae=({items:e,itemId:t,questionBankQuestionId:s})=>{const o=e.find(({id:r})=>r===t);return o?"questions"in o?s?o.questions.find(({id:r})=>r===s):null:o:null},qae=(e,t,s)=>{const o=s==="feedbackCorrect";return e?[e]:s==="feedback"?t.answers.slice(0,1):s==="feedbackIncorrect"&&t.type==="FILL_IN_THE_BLANK"?[{title:""}]:t.answers.filter(r=>"correct"in r?r.correct===o:"corrects"in t?t.corrects.includes(r.id)===o:t.answers)},Jae=({lessonId:e,items:t})=>{const s=ut(),o=(0,u.useCallback)(({lessonId:a,progressId:i,question:c,answer:l},d=!0)=>{switch(c.type){case"MULTIPLE_CHOICE":s(Xg({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(l)}));break;case"MULTIPLE_RESPONSE":s(Jg({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(l)}));break;case"FILL_IN_THE_BLANK":s(qg({lessonId:a,itemId:i,text:typeof l.title=="string"?l.title:""}));break;case"MATCHING":s(ev({lessonId:a,itemId:i,matches:d?Object.fromEntries(c.answers.map(h=>[h.id,h.id])):{}}));break}},[s]),r=(0,u.useCallback)(({detail:a})=>{const{lessonId:i,path:c}=a,l=String(a.itemId);if(i!==e)return;if(Kae(c)){s(Yg(e));return}const d=Zae(c),h=Xae({items:t,itemId:l,questionBankQuestionId:d});if(!h)return;const m=d?`${l}-${d}`:l;if(s(U0({lessonId:e,progressId:m})),Yae(c)){const p=Qae(c),v=p?h.answers.find(({id:S})=>S===p)??null:null,C=c.at(-1),g=C==="feedbackCorrect",x=qae(v,h,C);h.type==="MULTIPLE_RESPONSE"&&s(XN({lessonId:e,itemId:m})),x.forEach(S=>{o({lessonId:e,question:h,progressId:m,answer:S},g)}),s(G0({finalRetryAttempt:!1,lessonId:e,isCorrect:g,itemId:m,passToContinue:!0}))}},[s,e,t,o]);(0,u.useEffect)(()=>(window.addEventListener(Ze,r),()=>{window.removeEventListener(Ze,r)}),[r])},eie=z("quiz-item");function tie({activeIndex:e,children:t,index:s,isActive:o,isComplete:r,isCorrect:a,isTimedQuiz:i,settings:c}){const l=c?.correctAnswerColor??void 0,d=c?.incorrectAnswerColor??void 0,p={"--color-feedback-icon":a?l:d,"--color-matching-feedback-bubble-bg":d,"--color-multiple-choice-complete-border":d,"--color-multiple-choice-correct-border":l,"--color-multiple-response-correct-border":l,"--color-multiple-response-incorrect-border":d,"--color-multiple-response-option-check":r?l:void 0,"--color-quiz-option-check":l,"--color-x-fill":d};return(0,n.jsx)("div",{className:ef({activeIndex:e,index:s}),"data-testid":"quiz-item-card",inert:o?void 0:!0,children:(0,n.jsx)("div",{className:eie("content"),children:(0,n.jsx)(F9,{isActive:o,isComplete:r,isTimedQuiz:!!i,style:p,children:(0,n.jsx)("div",{hidden:!o&&!r,children:t})})})})}const sie=z("quiz-card");function nie({blockId:e,enableVideoPlaybackSpeed:t,index:s,isActive:o,item:r,labels:a,media:i}){const c=Rt();if(!i)return null;const l=c(i),{audio:d,image:h,video:m,embed:p}=l??{},v={allowTabNavigation:o,blockId:e,enableVideoPlaybackSpeed:t,item:r,labels:a};return d&&h?(0,n.jsx)("div",{className:`${sie("media",{"image-with-audio":!0})}`,children:(0,n.jsx)($o,{...v,index:String(s),isOverlayAudio:!0,media:i})}):d&&(m||p)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($o,{...v,index:`${s}-audio`,media:{audio:d}}),(0,n.jsx)($o,{...v,index:String(s),media:m?{video:m}:{embed:p},shouldPause:!o})]}):(0,n.jsx)($o,{...v,index:String(s),media:i,shouldPause:!o})}function g7(e,t){if(e===void 0||!t)return;if(Array.isArray(e))return e.map(o=>t.indexOf(o)).filter(o=>o!==-1);const s=t.indexOf(e);return s===-1?void 0:s}const{FILL_IN_THE_BLANK:oie,MATCHING:rie,MULTIPLE_CHOICE:aie,MULTIPLE_RESPONSE:iie}=as;function cie({color:e,columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:l,isCorrect:d,isReduceMotion:h,isRetaking:m,isShuffled:p,item:v,itemProgress:C,labels:g,onChoiceSelect:x,onFillInChange:S,onMatchSet:L,onResponseToggle:b,onSubmit:y,prefersKeyboardNavigation:T,questionHtmlId:k,quizAcceptableResponses:N,quizAnswerPlaceholder:I,revealAnswers:w}){const{answers:R,type:E}=v,j=c&&!l,O=R??[],A=("correct"in v?v.correct:void 0)??"",P=("corrects"in v?v.corrects:void 0)??[],M=C?.text??"",F=C?.matches??{},B=(0,u.useCallback)(({title:V})=>(0,n.jsx)(ke,{allowTabNavigation:c,className:"quiz-multiple-choice-option__label",value:V}),[c]),H=(0,u.useCallback)(({title:V})=>(0,n.jsx)(ke,{allowTabNavigation:c,tagName:"span",value:V}),[c]);switch(E){case oie:return(0,n.jsx)(W9,{allowTabNavigation:c,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isComplete:l,isCorrect:d,labels:g,onChange:S,onEnterToSubmit:y,options:O,questionHtmlId:k,quizAcceptableResponses:N,quizAnswerPlaceholder:I,revealAnswers:w,value:M});case rie:return(0,n.jsx)(X9,{answers:O,columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:l,matches:F,onChange:L,prefersKeyboardNavigation:T,revealAnswers:w});case iie:{const V=C?.selectedIndices,K=C?.shuffledAnswerIndices??[],U=p?g7(V,K):V;return(0,n.jsx)(e8,{allowTabNavigation:c,correctIds:P,errorMessageId:r,isComplete:l,isCorrect:d,isRetaking:m,labels:g,onChange:b,onEnterToSubmit:y,options:O,questionHtmlId:k,renderOptionText:H,revealAnswers:w,selectedIndices:U??[]})}case aie:default:{const V=C?.selectedIndex,K=C?.shuffledAnswerIndices??[],U=p?g7(V,K):V;return(0,n.jsx)(J9,{allowTabNavigation:j,color:e,correctId:A,errorMessageId:r,isComplete:l,isCorrect:d,isReduceMotion:h,isRetaking:m,labels:g,onChange:x,onEnterToSubmit:y,options:O,questionHtmlId:k,renderOptionText:B,revealAnswers:w,selectedIndex:U??-1})}}}const Fr=z("quiz-card");function lie({color:e,enableVideoPlaybackSpeed:t,hasStart:s,index:o,interaction:r,isQuestionBankQuiz:a,isReduceMotion:i,isShuffled:c,item:l,items:d,labels:h,onTakeAgain:m,prefersKeyboardNavigation:p,progress:v,settings:C,showNextButton:g}){const{canProceed:x,canSubmit:S,errorIncomplete:L,feedbackRef:b,errorMessageId:y,feedbackValue:T,handleChoiceSelect:k,handleFillInChange:N,handleMatchSet:I,handleNextFeedbackClick:w,handleResponseToggle:R,handleSubmit:E,handleTakeAgain:j,isActive:O,isComplete:A,isCorrect:P,isRetaking:M,itemProgress:F,quizItemHtmlId:B,selection:H,wrapperRef:V}=r,K=s?o+1:o,U=C?.revealAnswers===!0?Pe.ALL:C?.revealAnswers??Pe.NONE,X=`q-${l.id}`,oe=l.settings,Z=C?.correctAnswerColor??void 0,_=C?.correctAnswerColorContrast??void 0,D=C?.incorrectAnswerColor??void 0,$=C?.incorrectAnswerColorContrast??void 0,Q=h?.quizQuestion??"",Y=h?.quizAcceptableResponses??"",q=h?.quizAnswerPlaceholder??"",J=h?.quizCorrect??"",ee=h?.quizIncorrect??"",te=h?.quizSubmit??"",se=v?.percentComplete===100&&a?h?.quizRestart??"":h?.quizNext??"";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Mee,{isActive:O,labels:h,questionLabel:Q,questionNumber:o+1,totalQuestions:d.length}),(0,n.jsx)(Bee,{allowTabNavigation:O,htmlId:X,value:l.title}),(0,n.jsx)(nie,{blockId:l.id,enableVideoPlaybackSpeed:t,index:K,isActive:O,item:l,labels:h,media:l.media}),(0,n.jsx)(_9,{type:l.type,children:(0,n.jsx)("div",{ref:V,children:(0,n.jsx)(cie,{canSubmit:S,color:e,columnBehavior:oe?.columnBehavior,correctAnswerColor:Z,correctAnswerColorContrast:_,errorMessageId:y,incorrectAnswerColor:D,incorrectAnswerColorContrast:$,isActive:O,isComplete:A,isCorrect:P,isReduceMotion:i,isRetaking:M,isShuffled:c,item:l,itemProgress:F,labels:h,onChoiceSelect:k,onFillInChange:N,onMatchSet:I,onResponseToggle:R,onSubmit:E,prefersKeyboardNavigation:p,questionHtmlId:X,quizAcceptableResponses:Y,quizAnswerPlaceholder:q,revealAnswers:U})})}),(0,n.jsx)("div",{"aria-live":"assertive",children:L&&(0,n.jsxs)("div",{className:`${Fr("validations")}`,"data-testid":"quiz-validation-error",children:[(0,n.jsx)(ie,{className:`${Fr("validation-icon")}`,"data-testid":"quiz-validation-icon",name:"alert-circle"}),(0,n.jsx)("span",{id:`${B}-error-incomplete-message`,children:h?.quizRequireAnswer})]})}),(0,n.jsx)($9,{canProceed:x,feedbackRef:b,feedbackValue:T,isActive:O,isComplete:A,isCorrect:P,item:l,labels:h,quizCorrect:J,quizIncorrect:ee,revealAnswers:U,selection:H}),(0,n.jsx)(H9,{allowNext:!m,canProceed:x,canSubmit:S,isReduceMotion:i,onNext:g?w:void 0,onSubmit:E,quizNext:se,quizSubmit:te}),m&&(0,n.jsx)("div",{className:`${Fr("retake-container",{active:A})}`,children:(0,n.jsx)("button",{className:`${Fr("retake",{active:A})}`,onClick:j,type:"button",children:(0,n.jsxs)("div",{className:`${Fr("retake-content")}`,children:[(0,n.jsx)("div",{className:`${Fr("retake-text")}`,children:"TAKE AGAIN"}),(0,n.jsx)("i",{className:`${Fr("retake-icon")} icon icon-reload`})]})})})]})}const{FILL_IN_THE_BLANK:v7,MATCHING:C7,MULTIPLE_CHOICE:x7,MULTIPLE_RESPONSE:b7}=as;function die(e,t){return e?.items?.[t]??{}}function uie(e,t,s,o,r){switch(e.type){case v7:return o8({answers:e.answers??[],text:t.text,caseSensitive:e.settings?.isCaseSensitive??!1,getL10nValue:r});case C7:return r8(t.matches??{});case b7:return c8({isShuffled:s,item:e,selectedIndices:t.selectedIndices,shuffledAnswerIndices:t.shuffledAnswerIndices});case x7:default:return a8({isCorrectAnswerUnshuffled:o,isShuffled:s,item:e,selectedIndex:t.selectedIndex,shuffledAnswerIndices:t.shuffledAnswerIndices})}}function hie(e,t){switch(e.type){case v7:return t.text;case C7:return t.matches;case b7:return t.selectedIndices;case x7:default:return t.selectedIndex}}const{FILL_IN_THE_BLANK:mie,MATCHING:pie,MULTIPLE_CHOICE:fie,MULTIPLE_RESPONSE:gie}=as;function vie({hasStart:e=!1,id:t,index:s,isCorrectAnswerUnshuffled:o=!1,isShuffled:r=!1,item:a,onChoiceSelect:i,onFillInChange:c,onMatchSet:l,onResponseToggle:d,onTakeAgain:h,progress:m,reportAnswer:p,retryAttempts:v=0,setNextIndex:C,settings:g,submitAction:x,title:S}){const L=Rt(),b=Gv(),[y,T]=(0,u.useState)(!1),[k,N]=(0,u.useState)(Date.now),[I,w]=(0,u.useState)(!1),R=(0,u.useRef)(null),E=(0,u.useRef)(null),j=(0,u.useId)(),O=(0,u.useRef)({canSubmit:!1,isCorrect:!1,item:a,itemId:String(a.id),itemProgress:{},retryAttempts:v,revealAnswers:Pe.NONE,settings:g,startTime:k,title:S}),A=e?s+1:s,P=m?.activeIndex??0,M=A===P,F=die(m,a.id),B=F?.isComplete??!1,H=uie(a,F,r,o,L),V=g?.revealAnswers===!0?Pe.ALL:g?.revealAnswers??Pe.NONE,K=V===Pe.ALL||V===Pe.INCORRECT,U=M&&B&&K,X=M&&!B&&s8({answersLength:a.answers?.length??0,matches:F?.matches,selectedIndex:F?.selectedIndex,selectedIndices:F?.selectedIndices,text:F?.text,type:a.type});O.current={canSubmit:X,isCorrect:H,item:a,itemId:String(a.id),itemProgress:F,retryAttempts:v,revealAnswers:V,settings:g,startTime:k,title:S};const oe=F?.selectedIndex,Z=l8({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:H,isShuffled:r,selectedIndex:oe,shuffledAnswerIndices:a.shuffledAnswerIndices}),_=hie(a,F),D=y?`${j}-error-incomplete-message`:void 0,$=(0,u.useCallback)(()=>{T(!1)},[]),Q=String(a.id),Y=(0,u.useCallback)(({selectedIndex:le})=>{$(),i?.({lessonId:t,itemId:Q,selectedIndex:le,shuffledAnswerIndices:a.shuffledAnswerIndices})},[t,Q,a.shuffledAnswerIndices,i,$]),q=(0,u.useCallback)(le=>{$(),c?.({lessonId:t,itemId:Q,text:le})},[t,Q,c,$]),J=(0,u.useCallback)(le=>{$(),l?.({lessonId:t,itemId:Q,matches:le})},[t,Q,l,$]),ee=(0,u.useCallback)(({optionIndex:le})=>{$(),d?.({lessonId:t,itemId:Q,selectedIndex:le,shuffledAnswerIndices:a.shuffledAnswerIndices})},[t,Q,a.shuffledAnswerIndices,d,$]),te=(0,u.useCallback)((le=()=>{},Se)=>{Se&&le(Se),C?.({lessonId:t})},[t,C]),se=(0,u.useCallback)((le,Se)=>{Ce.pause(),te(le??(()=>{}),Se)},[te]),Te=(0,u.useCallback)(()=>{M&&se()},[M,se]),W=(0,u.useCallback)(le=>{le.preventDefault();const{canSubmit:Se,isCorrect:ve,item:Ke,itemId:Wt,itemProgress:ts,retryAttempts:It,revealAnswers:Dt,settings:Tn,startTime:Qe,title:Ht}=O.current;if(!Se){switch(T(!0),Ke.type){case mie:case gie:case fie:E.current?.querySelector("input")?.focus();break;case pie:E.current?.querySelector("button")?.focus();break;default:break}return}O.current.canSubmit=!1;const Et={startTime:Qe,stopTime:Date.now()},{passToContinue:Kt}=Tn??{},be=Tn?.retryCount??-1,we=parseInt(String(be),10),et=parseInt(String(It),10),Qt=we===et,fs=b({duration:Et,id:t,isCorrect:ve,item:Ke,itemProgress:ts,retryAttempts:It,title:Ht});p?.(fs);const ai={finalRetryAttempt:Qt,lessonId:t,isCorrect:ve,itemId:Wt,passToContinue:Kt,revealAnswers:Dt};if(Dt===Pe.ALL||Dt===Pe.INCORRECT){x?.(ai);return}se(x,ai)},[b,se,t,p,x]),de=(0,u.useCallback)(()=>{w(!0),setTimeout(()=>{h?.(),w(!1)},50)},[h]),ge=(0,Be.A)(M)??!1,pe=(0,Be.A)(B)??!1;return(0,u.useEffect)(()=>{!ge&&M&&N(Date.now())},[M,ge]),{activeIndex:P,canProceed:U,canSubmit:X,feedbackRef:R,errorIncomplete:y,errorMessageId:D,feedbackValue:Z,handleChoiceSelect:Y,handleFillInChange:q,handleMatchSet:J,handleNextFeedbackClick:Te,handleResponseToggle:ee,handleSubmit:W,handleTakeAgain:de,isActive:M,isComplete:B,isCorrect:H,isRetaking:I,itemProgress:F,prevIsActive:ge,prevIsComplete:pe,quizItemHtmlId:j,selection:_,wrapperRef:E}}const Cie=3;function xie({feedbackRef:e,isActive:t,isComplete:s,isReduceMotion:o,prevIsActive:r,prevIsComplete:a,quizTop:i,revealAnswers:c,scrollId:l}){const d=(0,u.useRef)(void 0);(0,u.useEffect)(()=>()=>{clearTimeout(d.current)},[]),(0,u.useEffect)(()=>{if(!r&&t){const h=i??Cie,m=o?"instant":"smooth";document.getElementById(l??"page-wrap")?.scrollTo({top:h,behavior:m})}},[t,r,o,i,l]),(0,u.useEffect)(()=>{if(!(!t||c===Pe.NONE||o))return!a&&s&&(clearTimeout(d.current),d.current=setTimeout(()=>{const h=e.current;if(!h)return;const m=h.offsetHeight+h.offsetTop,p=o?"instant":"smooth";document.getElementById(l??"page-wrap")?.scrollTo({top:m,behavior:p})},750)),()=>{clearTimeout(d.current)}},[e,t,s,o,a,c,l])}const bie=z("quiz-item");function yie({color:e,enableVideoPlaybackSpeed:t,hasStart:s=!1,id:o,index:r,isCard:a=!1,isCorrectAnswerUnshuffled:i,isQuestionBankQuiz:c=!1,isShuffled:l=!1,isTimedQuiz:d,item:h,items:m,labels:p={},onChoiceSelect:v,onFillInChange:C,onMatchSet:g,onResponseToggle:x,onTakeAgain:S,prefersKeyboardNavigation:L,progress:b,quizTop:y,reportAnswer:T,retryAttempts:k=0,scrollId:N,setNextIndex:I,settings:w={revealAnswers:Pe.ALL},showNextButton:R=!0,submitAction:E,title:j}){const O=f7(),A=vie({hasStart:s,id:o,index:r,isCorrectAnswerUnshuffled:i,isShuffled:l,item:h,onChoiceSelect:v,onFillInChange:C,onMatchSet:g,onResponseToggle:x,onTakeAgain:S,progress:b,reportAnswer:T,retryAttempts:k,setNextIndex:I,settings:w,submitAction:E,title:j}),{activeIndex:P,feedbackRef:M,isActive:F,isComplete:B,isCorrect:H,prevIsActive:V,prevIsComplete:K}=A,U=w?.revealAnswers===!0?Pe.ALL:w?.revealAnswers??Pe.NONE;xie({feedbackRef:M,isActive:F,isComplete:B,isReduceMotion:O,prevIsComplete:K,prevIsActive:V,quizTop:y,revealAnswers:U,scrollId:N});const X=(0,n.jsx)(lie,{color:e,enableVideoPlaybackSpeed:t,hasStart:s,index:r,interaction:A,isQuestionBankQuiz:c,isReduceMotion:O,isShuffled:l,item:h,items:m,labels:p,onTakeAgain:S,prefersKeyboardNavigation:L,progress:b,settings:w,showNextButton:R});return a?(0,n.jsx)(tie,{activeIndex:P,index:s?r+1:r,isActive:F,isComplete:B,isCorrect:H,isTimedQuiz:d,settings:w,children:X}):(0,n.jsx)("div",{className:bie("wrap"),children:X})}const rt=z("odometer"),y7=300,L7=700,Lie=300,Sie=500,Pu=200,Tie=170,S7=145,sn=Pu/2,nn=Tie/2,Pc=70,T7=1.5,kie=2.5,Nie=225,Iie=135,k7=270,nf=7,ni={start:{dx:-19,dy:8},mid:{dx:-5,dy:22},end:{dx:26,dy:-7}},Qo={size:12,topOffset:-3,bottomOffset:21};function Eie(e){return e<.5?16*e**5:1+16*(e-1)**5}function jie(e){return e<.5?2*e**2:1-(-2*e+2)**2/2}function Mu({angle:e,centerX:t,centerY:s,radius:o}){const r=(e-90)*Math.PI/180;return{x:t+o*Math.cos(r),y:s+o*Math.sin(r)}}function of({centerX:e,centerY:t,counterClockwise:s=!1,endAngle:o,radius:r,startAngle:a}){const i=Mu({angle:a,centerX:e,centerY:t,radius:r}),c=Mu({centerX:e,centerY:t,radius:r,angle:o}),d=Math.abs(o-a)>180?"1":"0",h=s?"0":"1";return`M ${i.x} ${i.y} A ${r} ${r} 0 ${d} ${h} ${c.x} ${c.y}`}function N7(e,t,s){return t+s*k7*e/100}function wie({hasPassed:e,isResultsVisible:t,isRTL:s,onAnimationDone:o,passingLabel:r,passingScore:a,score:i=0,scoreLabel:c,shouldAnimate:l}){const[d,h]=(0,u.useState)(0),[m,p]=(0,u.useState)(0),[v,C]=(0,u.useState)(!1),x=`hatch-pattern${(0,u.useId)()}`,S=(0,u.useRef)(null),L=(0,u.useRef)(!1),b=(0,u.useRef)([]),y=(0,u.useCallback)(()=>{b.current.forEach(clearTimeout),b.current=[]},[]),T=(0,u.useCallback)(()=>{S.current!==null&&(cancelAnimationFrame(S.current),S.current=null),y()},[y]);(0,u.useEffect)(()=>{t||(T(),L.current=!1,h(0),p(0),C(!1))},[t,T]),(0,u.useEffect)(()=>{if(!t||!l||L.current)return;L.current=!0;const X=i,oe=setTimeout(()=>{let Z=null;const _=D=>{Z===null&&(Z=D);const $=D-Z,Q=Math.min($/L7,1),Y=Eie(Q),q=jie(Q);if(p(Y),h(Math.round(q*X)),Q<1)S.current=requestAnimationFrame(_);else{p(1),h(X);const J=setTimeout(()=>{C(!0);const ee=setTimeout(()=>{o?.()},Sie);b.current.push(ee)},Lie-y7-L7);b.current.push(J)}};S.current=requestAnimationFrame(_)},y7);b.current.push(oe)},[t,l,i,o]),(0,u.useEffect)(()=>()=>{T()},[T]);const k=s?Iie:Nie,N=s?-1:1,I=N7(a,k,N),w=N7(m*i,k,N),R=k+N*k7,E=Mu({centerX:sn,centerY:nn,radius:Pc,angle:w}),j=Mu({centerX:sn,centerY:nn,radius:Pc,angle:I}),O=m*i>=a,A=s?`%${a}`:`${a}%`,P=s?`%${d}`:`${d}%`,M=`${c} ${s?`%${i}`:`${i}%`}`,F=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:rt("pass-mark-label"),children:r}),(0,n.jsx)("div",{className:rt("pass-mark-percent"),children:A})]}),B=of({centerX:sn,centerY:nn,counterClockwise:s,radius:Pc,startAngle:k,endAngle:R}),H=of({centerX:sn,centerY:nn,counterClockwise:s,radius:Pc+3,startAngle:I,endAngle:R}),V=m>0?of({centerX:sn,centerY:nn,counterClockwise:s,radius:Pc,startAngle:k,endAngle:w}):"",K={x:j.x+(s?-13:13),y:j.y-13},U={x:K.x+(s?-13:13),y:K.y};return(0,n.jsxs)("div",{className:rt(),children:[(0,n.jsxs)("svg",{"aria-hidden":"true",className:rt("svg"),viewBox:`0 0 ${Pu} ${S7}`,children:[(0,n.jsx)("defs",{children:(0,n.jsx)("pattern",{height:"1.5",id:x,patternTransform:"rotate(45)",patternUnits:"userSpaceOnUse",width:"1.5",children:(0,n.jsx)("line",{className:rt("hatch-line"),x1:"0",x2:"0",y1:"0",y2:"1.5"})})}),(0,n.jsx)("path",{className:rt("passing-zone"),d:H,fill:"none",stroke:`url(#${x})`,strokeWidth:"6"}),(0,n.jsxs)("g",{className:rt("pass-mark-lines"),children:[(0,n.jsx)("line",{className:rt("pass-mark-line"),x1:j.x,x2:K.x,y1:j.y,y2:K.y}),(0,n.jsx)("line",{className:rt("pass-mark-line"),x1:K.x,x2:U.x,y1:K.y,y2:U.y})]}),(0,n.jsx)("path",{className:rt("track"),d:B,fill:"none",strokeWidth:T7}),V&&(0,n.jsx)("path",{className:rt("progress",{passing:O}),d:V,fill:"none",strokeWidth:T7}),m>0&&(0,n.jsx)("circle",{className:rt("dot",{passing:O}),cx:E.x,cy:E.y,r:kie}),v&&(0,n.jsx)("g",{className:rt("result-icon"),children:e?(0,n.jsx)("path",{className:rt("checkmark"),d:`M ${sn+ni.start.dx} ${nn+ni.start.dy} L ${sn+ni.mid.dx} ${nn+ni.mid.dy} L ${sn+ni.end.dx} ${nn+ni.end.dy}`,fill:"none",strokeLinecap:"square",strokeLinejoin:"miter",strokeWidth:nf}):(0,n.jsxs)("g",{className:rt("x-mark"),children:[(0,n.jsx)("path",{className:rt("x-line",{first:!0}),d:`M ${sn-Qo.size} ${nn+Qo.topOffset} L ${sn+Qo.size} ${nn+Qo.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:nf}),(0,n.jsx)("path",{className:rt("x-line",{second:!0}),d:`M ${sn+Qo.size} ${nn+Qo.topOffset} L ${sn-Qo.size} ${nn+Qo.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:nf})]})})]}),(0,n.jsxs)("div",{className:rt("score",{pass:v&&e,fail:v&&!e}),children:[(0,n.jsx)("div",{className:rt("score-label"),children:c}),(0,n.jsx)("div",{className:rt("pass-label"),children:M}),(0,n.jsx)("div",{className:rt("fail-label"),children:M}),(0,n.jsx)("div",{className:rt("score-percent",{hidden:v}),children:P})]}),(0,n.jsx)("div",{className:rt("pass-mark"),style:{"--pass-mark-x":`${(s?Pu-U.x:U.x)/Pu*100}%`,"--pass-mark-y":`${(U.y+3)/S7*100}%`},children:F}),(0,n.jsx)("div",{className:rt("pass-mark-mobile"),children:F})]})}const I7=(0,u.createContext)({handleExpiredQuiz:vs,hideTimer:vs,quizTime:0,resetQuizTimer:vs,timerDuration:0,timerHidden:!1,timerRunning:!1});function Aie({children:e,handleExpiredQuiz:t=()=>{},isTimedQuiz:s,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const i=(0,u.useRef)(void 0),[c,l]=(0,u.useState)(),[d,h]=(0,u.useState)(!1),[m,p]=(0,u.useState)(!1),[v,C]=(0,u.useState)(),g=(0,u.useMemo)(()=>Number(a),[a]),{activeIndex:x,endIndex:S,lessonId:L,lessonProgress:b,startIndex:y}=(0,u.useMemo)(()=>{const M=o?.currentLesson,F=o?.lessons?.[M],B=F?.activeIndex||0,H=Object.keys(F?.items||{}).length+1;return{activeIndex:B,lessonId:M,endIndex:H,lessonProgress:F,startIndex:0}},[o]),T=(0,Be.A)(L),k=(0,Be.A)(x),N=(0,u.useCallback)(()=>{l(g*60)},[g]),I=(0,u.useCallback)(()=>{l(M=>M-1)},[l]),w=(0,u.useCallback)(()=>{h(!0),i.current||(i.current=setInterval(I,1e3))},[I,h]),R=(0,u.useCallback)(M=>{p(M!==void 0?M:!m)},[m]),E=(0,u.useCallback)(()=>{h(!1),i.current&&(i.current=clearInterval(i.current))},[h]),j=(0,u.useCallback)(()=>{c&&v!==void 0&&r({lessonId:v,timeRemaining:c})},[v,c,r]),O=(0,u.useCallback)(()=>{j(),l(void 0)},[l,j]),A=(0,u.useCallback)(()=>l(b.timeRemaining||g*60),[b,g,l]);(0,u.useEffect)(()=>{if(!s)return;const M=T!==L,F=M&&c,B=M&&s;s&&!M&&v!==L&&C(L),F&&O(),B&&A()},[s,v,L,T,c,A,O]),(0,u.useEffect)(()=>{if(s)switch(x){case y:E();break;case S:N(),E();break;default:w(),k!==x&&T===L&&j()}},[x,S,s,L,k,T,N,y,w,E,j]),(0,u.useEffect)(()=>{s&&c<1&&E()},[s,c,E]);const P=(0,u.useMemo)(()=>({handleExpiredQuiz:t,hideTimer:R,quizTime:c,resetQuizTimer:N,timerDuration:g,timerHidden:m,timerRunning:d}),[t,R,c,N,g,m,d]);return(0,n.jsx)(I7.Provider,{value:P,children:e})}const E7=()=>(0,u.useContext)(I7),Rie=e=>e.isTimedQuiz?(0,n.jsx)(Aie,{...e,children:e.children}):(0,n.jsx)(n.Fragment,{children:e.children}),Pie={currentLesson:void 0,isRestricted:!1,isRestrictedCourse:!1,restrictingQuiz:{}};function Mie(e){const t=re(),s=Ro(),o=Vt(e??""),r=(0,u.useMemo)(()=>{if(!t||!s||!o)return Pie;const l=f1({course:t,courseProgress:s});return L1({course:t,courseProgress:s,lesson:o,restrictingQuiz:l})},[t,s,o]),{restrictingQuiz:a}=r,i="title"in a?a.title:void 0,c=ht(i);return(0,u.useMemo)(()=>i?{...r,restrictingQuiz:{...a,title:c}}:r,[r,a,i,c])}const j7=z("quiz-results");function Oie({skipToLessonId:e}){const t=xe(),s=yw(e),o=E1(),{lessonPreposition:r,quizSkipAhead:a}=t??{},i=s>0&&a&&r?`${a} ${s} ${r} ${o}`:a;return i?(0,n.jsxs)(pu,{className:"continue-btn--flex",href:Gs(e),testId:"quiz-skip-ahead-btn",children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"arrow-right-from-line"}),i]}):null}function Bie({isFooterVisible:e,isResultsVisible:t,onTryAgainFocus:s}){const o=ut(),r=Ms(),a=vl(r),{passed:i=!1,retryAttempts:c=0}=a??{},{continueType:l,retryCount:d,skipLessonsIfPassed:h,skipLessonsOptional:m,skipToLessonId:p}=j1(r),{resetQuizTimer:v}=E7(),C=Lae(l),g=xe(),x=Ew(r),S=Mie(x),{isRestricted:L}=S,{courseFinish:b,quizContinue:y,quizTakeAgain:T}=g??{},k=h&&i&&!!p,N=C,I=Sae({canShowContinue:N,isExport:TT(),isRiseCom:!1,nextLesson:x}),w=(0,u.useCallback)(()=>{v(),o(Yg(r))},[o,v,r]),R=N&&L&&x&&g&&(0,n.jsx)(P9,{bgType:"transparent",text:$j({labels:g,restrictions:S})}),E=N&&!L&&x&&(!k||m)&&y&&(0,n.jsx)(pu,{className:k?"continue-btn--outline":void 0,href:Gs(x),text:y}),j=I&&b&&(0,n.jsx)(pu,{href:tN,text:b}),O=(d===-1||c<d)&&(0,n.jsxs)(D9,{allowTabNavigation:t,onClick:w,onFocus:s,size:"lg",testId:"quiz-take-again-button",children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"arrow-rotate-left"}),T]});return(0,n.jsx)("div",{className:j7("footer",{active:t}),"data-testid":"quiz-results-footer",children:(0,n.jsxs)("div",{className:j7("footer-items",{hidden:!e}),inert:e?void 0:!0,children:[k&&(0,n.jsx)(Oie,{skipToLessonId:p}),R,E,j,O]})})}const oi=z("quiz-results");function Die({questionCount:e}){const t=ut(),s=Ms()??"",o=vl(s),{activeIndex:r=0,passed:a=!1,passingScore:i=80,reportResults:c=!1,score:l=0}=o??{},d=xe(),h=un(),{skipLessonsIfPassed:m,skipToLessonId:p}=j1(s),[v,C]=(0,u.useState)(!1),g=e+1===r,x=(0,u.useRef)(g),S=(0,u.useRef)(void 0),L=(0,u.useRef)(void 0),b=(0,u.useRef)(null),y=(0,u.useId)(),{a11yQuizFailed:T="",a11yQuizPassed:k="",quizPassing:N="",quizResults:I="",quizScore:w=""}=d??{},R=`quiz-results-desc-${y}`,E=(0,u.useCallback)(()=>{L.current=setTimeout(()=>{C(!0),window.dispatchEvent(new CustomEvent(pd))},500)},[]),j=(0,u.useCallback)(()=>{clearTimeout(L.current),L.current=void 0,C(!0)},[]);return(0,u.useEffect)(()=>()=>{clearTimeout(L.current)},[]),(0,u.useEffect)(()=>{g!==x.current&&(g?b.current?.focus():C(!1),x.current=g)},[g]),(0,u.useEffect)(()=>{if(!g||!a||!m||!p){S.current=void 0;return}const O=`${s}:${p}`;S.current!==O&&(S.current=O,t(ZN({quizId:s,destinationId:p})))},[t,a,g,s,m,p]),(0,n.jsx)("div",{className:oi(),children:(0,n.jsx)("div",{className:oi("container"),children:(0,n.jsxs)("div",{className:oi("content",{active:g}),"data-testid":"quiz-results",children:[(0,n.jsxs)("div",{className:oi("header"),children:[(0,n.jsx)("h1",{"aria-describedby":R,className:oi("label").mix("noOutline"),ref:b,tabIndex:-1,children:I}),(0,n.jsxs)("div",{className:"visually-hidden-always",id:R,children:[(0,n.jsx)("div",{children:`${N}: ${i}%`}),(0,n.jsx)("div",{children:`${w}: ${l}%`}),(0,n.jsx)("div",{children:a?k:T})]})]}),(0,n.jsx)("div",{"aria-hidden":"true",className:oi("results"),children:(0,n.jsx)(wie,{hasPassed:a,isResultsVisible:g,isRTL:h,onAnimationDone:E,passingLabel:N,passingScore:i,score:l,scoreLabel:w,shouldAnimate:c})}),(0,n.jsx)(Bie,{isFooterVisible:v,isResultsVisible:g,onTryAgainFocus:j})]})})})}const Hie=5,Fie=15,Vie=30,zie=60,$ie=180,w7=300,A7=600,R7=120,_ie=e=>e<=Hie?{regularInterval:zie,lowTimeThreshold:R7}:e<=Fie?{regularInterval:$ie,lowTimeThreshold:R7}:e<=Vie?{regularInterval:w7,lowTimeThreshold:w7}:{regularInterval:A7,lowTimeThreshold:A7},Uie=(e,t,s,o)=>{const r=Math.floor(o/60),a=o%60,i=r===1?e:t;if(r>0&&a>0)return`${s}: ${r} ${i} and ${a} seconds`;if(r>0&&a===0)return`${s}: ${r} ${i}`;if(r===0&&a>0)return`${s}: ${a} seconds`};var Qn=f(82920);const ps=z("quiz-timer"),rf=(e,t)=>`${e.toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`,Gie=e=>{const t=Math.floor(e/60),s=e%60;return rf(t,s)},P7=e=>{const t=Math.floor(e/60),s=e%60;return rf(t,s)},Wie=e=>rf(e,0),M7=({area:e,exitCourseEnabled:t=!1,isStartScreenActive:s=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:i,labelQuizTimerExpiredMessage:c,labelQuizTimerHide:l,labelQuizTimerLimit:d,labelQuizTimerMinute:h,labelQuizTimerMinutePlural:m,labelQuizTimerRemaining:p,labelQuizTimerShow:v,timerDisplay:C=pr.REMAINING,timerEnabled:g=!1})=>{const[x,S]=Qn.useState(!1),[L,b]=Qn.useState(""),y=Qn.useRef(null),T=Qn.useRef(!1),{hideTimer:k,quizTime:N,timerDuration:I,timerHidden:w,timerRunning:R,handleExpiredQuiz:E}=E7(),j=I*60,{isCover:O,isHeader:A,isHidden:P}=Qn.useMemo(()=>({isCover:e==="cover",isHeader:e==="header",isHidden:C===pr.HIDE_TIMER}),[e,C]),M=s&&!O,F=Qn.useMemo(()=>_ie(I),[I]),B=Qn.useMemo(()=>({expired:a||"Time expired",minute:h||"minute",minutePlural:m||"minutes",remaining:p||"Time left"}),[a,h,m,p]),H=()=>{S(!1),E()},V=Qn.useCallback(()=>{const{regularInterval:oe,lowTimeThreshold:Z}=F,_=N<=Z&&N>0&&!T.current,D=y.current!==null&&y.current-N>=oe,$=y.current===null;if(_||D){_&&(T.current=!0),y.current=N;const Q=Uie(B.minute,B.minutePlural,B.remaining,N);b(Q)}$&&(y.current=N)},[F,N,B]);if(Qn.useEffect(()=>{g&&N!==0&&(O||V())},[V,O,g,R,N]),Qn.useEffect(()=>{if(!g||N!==0||s)return;const oe=setTimeout(()=>{S(!0)},1200);return()=>clearTimeout(oe)},[N,g,s]),!g||M||o)return null;const K={"header-area":A,"cover-area":O,"hide-timer":P,"exit-course":t},U={display:[O,A&&!s].some(Ie())?null:"none"},X=()=>({[pr.SUMMARY]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ps("label"),children:[d,":"]}),(0,n.jsxs)("div",{className:ps("value"),children:[I," ",I===1?h:m]})]}),[pr.REMAINING]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ps("label"),children:[p,":"]}),(0,n.jsx)("div",{className:ps("value"),children:Gie(N)})]}),[pr.ELAPSED]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ps("label"),children:[r,":"]}),(0,n.jsx)("div",{className:ps("value"),children:P7(j-N)})]}),[pr.ELAPSED_TOTAL]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ps("label"),children:[r,":"]}),(0,n.jsxs)("div",{className:ps("value"),children:[P7(j-N)," /"," ",Wie(I)]})]})})[O?pr.SUMMARY:C];return(0,n.jsxs)("div",{className:ps(K),"data-testid":"quiz-timer",style:U,children:[N!==0&&(0,n.jsx)("div",{"aria-atomic":"true","aria-live":"polite",className:"visually-hidden",role:"status",children:L}),N===0&&(0,n.jsx)("div",{className:"visually-hidden",role:"alert",children:a||"Time expired"}),A&&w?(0,n.jsxs)("button",{className:ps("hide"),onClick:()=>k(!1),type:"button",children:[(0,n.jsx)(ie,{className:ps("icon"),name:"stopwatch-regular"}),v]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ps("time"),children:[(0,n.jsx)(ie,{className:ps("icon"),name:"stopwatch-regular"}),(0,n.jsx)("div",{className:ps("desc"),children:X()})]}),A&&(0,n.jsx)("button",{className:ps("hide"),onClick:()=>k(!0),type:"button",children:l})]}),!O&&x&&gn.createPortal((0,n.jsxs)(wd,{className:"quiz-timer-modal","data-testid":"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:H,onClose:H,onOverlayClick:()=>{},children:[(0,n.jsx)("p",{children:c}),(0,n.jsx)("button",{"data-testid":"quiz-view-results-button",onClick:H,type:"button",children:i})]}),lo({childType:"dialog"}))]})},Zn=z("quiz-start"),Kie=e=>(e?.retryAttempts??0)>0;function Qie({lessonId:e,isActive:t}){const s=ut(),o=(0,u.useRef)(null),r=vl(e),a=xe(),i=re(),c=p1(),l=Vt(e),d=C3(),h=he(x3),m=c?.authorName,p=c?.avatar,v=i?.theme?.showAuthor??!1,C=i?.theme?.showLessonCount??!1,g=d[e]??0,x=ht(l?.description),S=ht(l?.title),L=l?.settings?.timer,b=l?.settings?.asLesson!==!1,{a11yAuthorPrefix:y="",lessonName:T="",lessonPreposition:k="",quizStart:N="",quizTakeAgain:I="",quizTimerElapsed:w="",quizTimerExpired:R="",quizTimerExpiredAction:E="",quizTimerExpiredMessage:j="",quizTimerHide:O="",quizTimerLimit:A="",quizTimerMinute:P="",quizTimerMinutePlural:M="",quizTimerRemaining:F="",quizTimerShow:B=""}=a??{},H=Kie(r),V=t&&H,K=H?"quiz-take-again-button":"quiz-start-button";(0,u.useEffect)(()=>{V&&o.current?.focus()},[V]);const U=()=>{s(U0({lessonId:e}))},X=H?I:N;return(0,n.jsx)("div",{"aria-hidden":!t,className:Zn(),children:(0,n.jsx)("div",{className:Zn("container"),children:(0,n.jsxs)("div",{className:Zn("content"),children:[(0,n.jsxs)("div",{className:Zn("header"),children:[(0,n.jsx)("div",{className:Zn("counter"),children:b&&C&&(0,n.jsx)("div",{className:Zn("count"),children:`${T} ${g} ${k} ${h}`})}),(0,n.jsx)("h1",{ref:o,tabIndex:-1,children:(0,n.jsx)(ke,{className:Zn("title"),value:S})}),v&&p&&m?(0,n.jsxs)("div",{className:Zn("author"),children:[(0,n.jsx)("img",{alt:"",src:J2(p)}),(0,n.jsxs)("span",{className:"visually-hidden",children:[y," ",m]}),(0,n.jsx)("span",{"aria-hidden":"true",children:m})]}):null]}),L&&(0,n.jsx)(M7,{area:"cover",exitCourseEnabled:i?.lmsOptions?.enableExitCourse,isStartScreenActive:t,labelQuizTimerElapsed:w,labelQuizTimerExpired:R,labelQuizTimerExpiredAction:E,labelQuizTimerExpiredMessage:j,labelQuizTimerHide:O,labelQuizTimerLimit:A,labelQuizTimerMinute:P,labelQuizTimerMinutePlural:M,labelQuizTimerRemaining:F,labelQuizTimerShow:B,timerEnabled:L}),(0,n.jsx)(ke,{allowTabNavigation:t,className:Zn("description"),value:x}),(0,n.jsx)(vn.ArcButton,{className:Zn("start-button"),"data-testid":K,hierarchy:"plain",iconEnd:(0,n.jsx)(ie,{name:"chevron-right-solid"}),onClick:t?U:vs,size:"sm",tabIndex:t?void 0:-1,children:X})]})})})}function Zie(){const[e,t]=(0,u.useState)();return(0,u.useEffect)(()=>{const s=document.querySelector("[data-previous-lesson]");if(!s)return;t(s.clientHeight);const o=new ResizeObserver(([r])=>{t(r.target.clientHeight)});return o.observe(s),()=>{o.disconnect()}},[]),e}const O7=z("quiz");function Yie(){const e=Ms();return e?(0,n.jsx)(Xie,{lessonId:e}):null}function Xie({lessonId:e}){const t=re(),s=t?.color,o=xe(),a=Yi()?.prefersKeyboardNavigation??!1,i=pa(e)??"",{activeIndex:c,progress:l,resolvedItems:d,retryAttempts:h,settings:m,sourceItems:p}=Gae({lessonId:e}),v=Oae({settings:m}),C=Zie();Jae({lessonId:e,items:p});const g=Rae(d.length),x=Pae(c),{items:S,startOffset:L}=Mae(d,c);return(0,n.jsxs)("section",{className:O7(),"data-quiz":!0,"data-testid":"quiz",children:[m?.timer&&(0,n.jsx)(M7,{area:"header",exitCourseEnabled:t?.lmsOptions?.enableExitCourse,isEndScreenActive:c===g,isStartScreenActive:c===0,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:m?.timerDisplay??void 0,timerEnabled:m?.timer}),(0,n.jsxs)("div",{className:O7("wrap"),children:[x&&(0,n.jsx)("div",{className:ef({activeIndex:c,index:0}),children:(0,n.jsx)(Qie,{isActive:c===0,lessonId:e})}),S.map((b,y)=>{const T=b.type===as.MULTIPLE_CHOICE;return(0,n.jsx)(yie,{color:s,hasStart:!0,id:e,index:y+L,isCard:!0,isCorrectAnswerUnshuffled:T?Iae(b.shuffledAnswerIndices,b.answers,b.correct):void 0,isShuffled:Nae(b.shuffledAnswerIndices,b.answers),isTimedQuiz:m?.timer,item:b,items:d,labels:o??{},onChoiceSelect:v.onChoiceSelect,onFillInChange:v.onFillInChange,onMatchSet:v.onMatchSet,onResponseToggle:v.onResponseToggle,prefersKeyboardNavigation:a,progress:l,quizTop:C,reportAnswer:eg,retryAttempts:h,scrollId:"page-wrap",setNextIndex:v.onSetIndex,settings:m??void 0,submitAction:v.onSubmit,title:i},`item-${b.id}`)}),(0,n.jsx)("div",{className:ef({activeIndex:c,index:g}),inert:g===c?void 0:!0,children:(0,n.jsx)(Die,{questionCount:d.length})})]})]})}const qie=({lessonProgress:e})=>(0,n.jsx)("div",{className:"page page--lessonTypeQuiz","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper",children:(0,n.jsx)(Au,{children:(0,n.jsxs)("div",{className:"page__content",children:[(0,n.jsx)(h7,{lessonProgress:e,type:"quiz"}),(0,n.jsx)(Yie,{},e?.retryAttempts??0)]})})})});var Jie=f(89950),af=f.n(Jie);f.dn(B7);function B7({authors:e,lessonAuthor:t,courseAuthor:s,selectedAuthorId:o}){if(o==="none")return{};if(o){const r=af()(e,{id:o});if(r)return r}if(t){const r=af()(e,{id:t});if(r)return r}if(s){const r=af()(e,{id:s});if(r)return r}return{}}const D7={addEventListeners(e,t){e.addEventListener("animationend",t,!1)},removeEventListeners(e,t){e.removeEventListener("animationend",t,!1)}},ece=De("LessonHeader"),tce=z("lesson-header"),sce=({authorName:e,avatar:t,children:s,color:o,description:r,labels:{lessonName:a,lessonPreposition:i},lessonHeaderColor:c,lessonHeaderImageColor:l,lessonHeaderSize:d,lessonHeaderStyle:h,partnerContentAuthors:m,totalLessons:p,lessonNumber:v,showAuthor:C,showLessonCount:g,title:x})=>{const S=XE(),L=Ms(),b=x2(S),y=h===ne.IMAGE,T=tce("top-wrap"),{alpha:k,ariaLabel:N,media:I,role:w}=Tr("lessonHeaderImage"),R=I?.image,E=(0,u.useMemo)(()=>{if(R&&y){const j=l===it.LIGHT?"#fff":"#000";return fl({alpha:k,color:j,url:mt(R)})}},[R,y,l,k]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j$,{ariaLabel:y?N:void 0,imgRole:y?w:void 0,sectionStyles:E,topWrapClassName:T,children:(0,n.jsx)(ece,{authorName:e,avatar:t,color:o,description:r,lessonHeaderColor:c,lessonHeaderSize:d,lessonHeaderStyle:h,lessonId:L,lessonName:a,lessonNumber:v,lessonPreposition:i,partnerContentAuthors:m,showAuthor:C,showLessonCount:g&&!b,title:x,totalLessons:p})}),s]})},ri=z("one-page-authors");function nce({className:e}){const t=xe(),s=Yv(),o=oj(),r=Zz();if(!o)return null;const a=s?.isPartnerContentAuthor&&r!=null,i=ri({}).mix(e);return a?(0,n.jsx)("div",{className:i,children:(0,n.jsx)("ul",{className:ri("list"),role:"list",children:r.map((c,l)=>(0,n.jsxs)("li",{className:ri("item"),role:"listitem",children:[(0,n.jsx)(H7,{avatarUrl:c?.image?la({width:76,height:76,imageKey:c.image}):void 0}),(0,n.jsx)(F7,{a11yAuthorPrefix:t?.a11yAuthorPrefix,name:c?.name})]},l))})}):(0,n.jsxs)("div",{className:i,children:[(0,n.jsx)(H7,{avatarUrl:Ct(o.avatar)}),(0,n.jsx)(F7,{a11yAuthorPrefix:t?.a11yAuthorPrefix,name:o.authorName})]})}function H7({avatarUrl:e}){return e?(0,n.jsx)("div",{className:ri("avatar"),style:{backgroundImage:`url(${e})`}}):(0,n.jsx)("div",{className:ri("avatar-fallback"),children:(0,n.jsx)(Uh,{decorative:!0})})}function F7({a11yAuthorPrefix:e,name:t}){const s=t||"Unknown User",o=ri("name");return(0,n.jsxs)("div",{className:o.toString(),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:e}),(0,n.jsx)("span",{children:s})]})}const V7=De("OnePageAuthors",nce),oce=z("one-page-title"),z7=De("OnePageTitle",({className:e,htmlId:t})=>{const s=re(),o=Oe(s?.title),r=Sa("title"),a=(0,Xt.uW)(s?.title)?{"data-l10n-id":s?.title?.l10nId}:{"data-change-path":r},i=oce({}).mix(e);return(0,n.jsx)("h1",{...a,className:i,id:t,tabIndex:-1,children:o})}),Mc=z("one-page-lesson-header-info");function rce(){const e=re(),t=Mc({}),{accentContrast:s,coverImageColor:o,coverPageType:r}=e?.theme??{},c=r===ce.IMAGE&&o===it.LIGHT||s===ye.DARK||r===ce.WHITE||r===ce.VIDEO||r===ce.ACCENT&&Rs(e?.color)===ye.DARK;return(0,n.jsxs)("div",{className:t,children:[(y2(e)||x0(e))&&(0,n.jsx)(jm,{className:Mc("logo"),imageClassName:Mc("logo-image")}),(0,n.jsx)(z7,{className:Mc("title").toString(),hasDarkText:c}),(0,n.jsx)(V7,{className:Mc("authors").toString(),hasDarkText:c})]})}const ace=De("OnePageCoverInfo",rce),ice=De("CoverSVG"),cf=z("one-page-lesson-header"),cce=z("page"),lce=cf("main").mix("lesson-header__main"),dce=cf("container").mix(cce("header-container")),$7=()=>{const e=re(),{alpha:t,media:s}=Tr("coverImage"),o=e?.theme?.coverImageColor,r=e?.coverPageType===ce.WHITE,a=e?.coverPageType===ce.IMAGE,i=e?.coverPageType===ce.ACCENT,c=e?.coverPageType===ce.VIDEO,l=o===it.LIGHT,d=cf({accent:i,image:a,white:r||c,video:c,"overlay-light":a&&l}),h=a?da({alpha:t,color:o,media:s}):{};return(0,n.jsxs)("header",{className:d,style:h,children:[(0,n.jsx)("div",{className:dce,children:(0,n.jsx)("div",{className:lce,children:(0,n.jsx)(ace,{})})}),(0,n.jsx)(ice,{coverPageType:"LEFT"})]})},lf=(0,u.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});lf.displayName="LessonContentContext";function uce({children:e}){const[t,s]=(0,u.useState)(()=>[]),o=(0,u.useCallback)(i=>{s(c=>c.concat(i))},[]),r=(0,u.useCallback)(i=>{s(c=>c.filter(l=>l!==i))},[]),a=(0,u.useMemo)(()=>({visibleLessons:t,registerLesson:o,unregisterLesson:r}),[t,o,r]);return(0,n.jsx)(lf.Provider,{value:a,children:e})}function hce(){return(0,u.useContext)(lf)}const{LARGE:mce,SMALL:pce}=gi,{ACCENT:fce,BLACK:gce,COLOR:_7,DARK:vce,GRAY:Cce,IMAGE:U7,LIGHT:xce,TINT:bce}=ne,yce=z("lesson-header-wrap");function Lce({handleNavigate:e,handleStorylineFullscreen:t,isMobileHeader:s,isProgressSummary:o,lessonProgress:r,navigateDirection:a,onNavigateTransitionEnd:i,onPageReady:c,ref:l,registerLesson:d,unregisterLesson:h,visibleLessons:m}){const{didNavigate:p,previewType:v}=Im(),C=(0,u.useRef)(null),g=(0,u.useRef)(0),x=(0,u.useRef)(!1),S=Rt(),L=(0,je.g)(),b=Ti(),y=Ro(),T=xe(),k=Sr(),N=Yi(),I=b?.theme?.themeId,[w,R]=(0,u.useState)(!1),E=L.mode||"",j=L.id,O=o?yae:r?.index!=null?b?.lessons?.[r.index]??{}:{},A=o?null:c3({course:b,lesson:O}),P=o?0:_j({course:b,lesson:O}),M=Uj(b),F=(0,u.useCallback)((we,et)=>{const Qt=a(),fs=C.current;if(!fs){et();return}const ai=`page ${Qt}-${we}`,Vc=()=>{we==="enter"?fs.className=`page ${Qt}-complete`:fs.className="page",D7.removeEventListeners(fs,Vc),window.dispatchEvent(new CustomEvent(I5)),i(),et()};fs.className=ai,D7.addEventListeners(fs,Vc)},[a,i]);(0,u.useImperativeHandle)(l,()=>({componentWillEnter(we){F("enter",we)},componentDidEnter(){R(!0)},componentWillExit(we){const et=document.getElementById("page-wrap"),Qt=et?.scrollTop??0;et&&(et.scrollTop=0),g.current=Qt,F("leave",we),window.dispatchEvent(new CustomEvent(N5)),C.current&&(C.current.scrollTop=g.current)},componentDidExit(){}}),[F]),(0,u.useEffect)(()=>(R(!0),o||(IT(j),ys(rI(j))),d(j),()=>{h(j)}),[]),(0,u.useEffect)(()=>{p&&!x.current&&w&&c(),x.current=w},[p,w,c]);const B=(0,u.useMemo)(()=>{const{theme:we}=b??{},et=Rs(we?.lessonHeaderColor),Qt=we?.customColorLessonHeaderContrast??et;return(Qt===ye.AUTO?et:Qt)===ye.DARK?Lt.DARK:Lt.LIGHT},[b]),H=(we,et)=>{if(o)return(0,n.jsx)(u7,{...et,course:b,courseProgress:y,labels:T,lessons:b?.lessons,sessionPreferences:N});switch(we){case"blocks":return(0,n.jsx)(Zre,{...et,animateBlockEntrance:b?.animateBlockEntrance,handleNavigate:e,isFirstLesson:Fj({course:b,lesson:O})});case"quiz":return(0,n.jsx)(qie,{...et,course:b});default:return null}},V=O,{author:K,selectedAuthorId:U,type:X}=V,{prefersKeyboardNavigation:oe}=N??{},{authors:Z,color:_,enableVideoPlaybackSpeed:D,lessonHeaderImage:$,showLessonCount:Q,showNavigationButtons:Y,theme:q}=b??{},{hideLessonHeaders:J,lessonHeaderColor:ee,lessonHeaderImageColor:te,lessonHeaderSize:se,lessonHeaderStyle:Te,navigationType:W,showAuthor:de}=q??{},ge=k.length>0,pe=ge?k.find(we=>we.id===U):void 0,le=ge?pe?.data?.authors:void 0,{avatar:Se,authorName:ve}=B7({authors:Z,lessonAuthor:K,courseAuthor:b?.author,selectedAuthorId:U}),Ke=f1({course:b,courseProgress:y}),Wt=o?{}:L1({course:b,courseProgress:y,lesson:A,restrictingQuiz:Ke}),ts=i4(O),Dt=To(b)?$7:sce,Tn=(0,n.jsx)(Dt,{authorName:ve,avatar:Se,color:_,course:b,description:V.description,labels:T,lessonHeaderColor:ee,lessonHeaderImage:$,lessonHeaderImageColor:te,lessonHeaderSize:se,lessonHeaderStyle:Te,lessonNumber:P,partnerContentAuthors:le,showAuthor:de,showLessonCount:Q,themeId:I,title:V.title,totalLessons:M,children:!o&&(0,n.jsx)(h7,{id:V.id,items:V.items,lessonProgress:r,navigationType:W,scrollPosition:0,type:V.type})}),Ht=`image-${(te??it.DARK).toLowerCase()}`,Et=yce({[Ht]:Te===U7,accent:Te===fce,black:Te===gce,collapsed:J,custom:Te===_7,dark:Te===vce,gray:Te===Cce,image:Te===U7,large:se===mce&&!s,light:Te===xce,mobile:s,small:se===pce&&!s,tint:Te===bce}),Kt=Te===_7?{"--lesson-header-contrast-color":B,"--color-background":ee}:{},be={authorName:ve,avatar:Se,color:_,courseTitle:S(b?.title),data:O,enableVideoPlaybackSpeed:D,handleStorylineFullscreen:t,hideLessonHeaders:J,isLesson:fr(V),labels:T,lessonHeader:Tn,lessonHeaderImage:$,lessonHeaderWrapClasses:Et,lessonHeaderWrapStyles:Kt,lessonHasContinues:ts,lessonNumber:P,lessonProgress:r,loadMedia:j===m[0],mode:E,nextLesson:A?.id??null,nextLessonRestrictions:Wt,partnerContent:k,prefersKeyboardNavigation:oe,previewType:v,scrollPosition:0,showAuthor:de,showLessonCount:Q,showNavigationButtons:Y,totalLessons:M};return(0,n.jsx)(jr,{title:rc(`${S(V.title)} - ${be.courseTitle}`),children:(0,n.jsx)("div",{className:"page page-transition-complete","data-lesson-id":j,ref:C,children:H(X,be)})})}function Sce(e){const{visibleLessons:t,registerLesson:s,unregisterLesson:o}=hce();return(0,n.jsx)(Lce,{...e,registerLesson:s,unregisterLesson:o,visibleLessons:t})}const Tce=Sce;var G7=f(56668);function kce(e){const t=xe(),s=xw(e),o=bw(e),r=E1(),a=s?.id,i=wi(a),c=ht(i?.data);return{lessonNameLabel:t?.lessonName,lessonPrepositionLabel:t?.lessonPreposition,nextLesson:s,nextLessonNumber:o,restrictionData:a?c:void 0,restrictionType:a?i?.type:void 0,totalLessons:r}}const Ou=z("lesson-nav");function Nce({allowTooltip:e,lessonNameLabel:t,lessonPrepositionLabel:s,nextLesson:o,nextLessonNumber:r,onFocus:a,ref:i,restrictionData:c,restrictionType:l,totalLessons:d}){const h=o?.id,m=Ir(),p=wa(m),C=o&&fr(o)&&h,g=Oe(o?.title)||"",x=C?`${r} ${s} ${d} \u2014 ${g}`:g,S=p&&C?`${t} ${r}`:x;return(0,n.jsx)(Aa,{allowTooltip:e,direction:"next",navLessonId:h,onFocus:a,ref:i,restrictionData:c,restrictionType:l,children:p?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Ou("link-text"),children:S}),(0,n.jsx)(ud,{className:Ou("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ud,{className:Ou("link-icon")}),(0,n.jsx)("span",{className:Ou("link-text"),children:S})]})})}const Ice=De("LessonNavNext",Nce);function W7({lessonId:e,...t}){const s=kce(e);return(0,n.jsx)(Ice,{...t,...s})}const Bu=z("lesson-nav");function Ece({allowTooltip:e,courseFinishLabel:t,onFocus:s,ref:o,restrictionData:r,restrictionType:a}){const i=Ir(),c=wa(i);return(0,n.jsx)(Aa,{allowTooltip:e,direction:"next",finish:!0,onFocus:s,ref:o,restrictionData:r,restrictionType:a,children:c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Bu("link-text"),children:t}),(0,n.jsx)(ud,{className:Bu("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ud,{className:Bu("link-icon")}),(0,n.jsx)("span",{className:Bu("link-text"),children:t})]})})}const jce=De("LessonNavFinish",Ece);function df(e){const s=xe()?.courseFinish??"Finish";return(0,n.jsx)(jce,{...e,courseFinishLabel:s})}const Du=z("lesson-nav");function wce({allowTooltip:e,className:t,courseHomeLabel:s,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:i,previousLessonNumber:c,ref:l,totalLessons:d}){const h=i?.id,m=Ir(),p=wa(m),C=fr(i)&&h!=null,g=ht(i?.title)??s,x=C?`${c} ${r} ${d} \u2014 ${g}`:g,S=p&&C?`${o} ${c}`:x;return(0,n.jsx)(Aa,{allowTooltip:e,className:t,direction:"previous",navLessonId:h,onFocus:a,ref:l,children:p?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Du("link-text"),children:S}),(0,n.jsx)(g5,{className:Du("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g5,{className:Du("link-icon")}),(0,n.jsx)("span",{className:Du("link-text"),children:S})]})})}const Ace=De("LessonNavPrevious",wce);function uf({lessonId:e,...t}){const s=ww(e),o=Aw(e),r=E1(),a=xe();return(0,n.jsx)(Ace,{...t,courseHomeLabel:a?.courseHome,lessonNameLabel:a?.lessonName,lessonPrepositionLabel:a?.lessonPreposition,previousLesson:s,previousLessonNumber:o,totalLessons:r})}const Rce={threshold:0},Hu=(e,t)=>{const[s,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)},t||Rce);const{current:a}=r;return e.current?a.observe(e.current):o(!1),()=>{a.disconnect()}},[e,t]),s},K7=z("navButtonsFull"),Pce=()=>{const[e,t]=(0,u.useState)(!1);return(0,tt.A)(N5,()=>t(!0)),(0,tt.A)(I5,()=>t(!1)),e},Mce=({isVisible:e})=>{(0,G7.A)(()=>window.dispatchEvent(new CustomEvent(dm))),(0,u.useEffect)(()=>{const t=e?E5:dm;window.dispatchEvent(new CustomEvent(t))},[e])},Oce=({isVisible:e})=>{(0,G7.A)(()=>window.dispatchEvent(new CustomEvent(um))),(0,u.useEffect)(()=>{const t=e?j5:um;window.dispatchEvent(new CustomEvent(t))},[e])},Bce=({children:e,hideNavToHome:t,navNextEnabled:s,navFinishEnabled:o})=>{const r=(0,u.useRef)(null),a=(0,u.useRef)(null),i=(0,u.useRef)(null),c=(0,u.useRef)(null),l=Ms(),d=Hu(a),h=Hu(i),m=Pce(),p=(0,u.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),v=(0,u.useCallback)(()=>{const g=r.current?.scrollHeight;r.current?.scrollTo({top:g,behavior:"smooth"})},[]);(0,tt.A)(md,p),(0,tt.A)(pd,v),Mce({isVisible:d}),Oce({isVisible:h}),(0,u.useEffect)(()=>{if(!m&&a.current){const x=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:x})}},[m]);const C=K7("navPrev",{visible:d,hide:m});return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,n.jsxs)("div",{className:K7(),children:[!t&&l&&(0,n.jsx)("div",{className:C,children:(0,n.jsx)(uf,{lessonId:l,ref:a})}),e,s&&l&&(0,n.jsx)(W7,{lessonId:l,ref:i}),o&&(0,n.jsx)(df,{lessonId:l,ref:c})]})})},Oc=z("navButtonsFloating"),Q7=({transitionIn:e,buttonType:t,children:s})=>{const o=(0,u.useRef)(null),r={entered:Oc(t,{entered:!0}),exiting:Oc(t,{exiting:!0}),exited:Oc(t,{exited:!0})};return(0,n.jsx)(Uc,{in:e,nodeRef:o,timeout:250,children:a=>(0,n.jsx)("div",{className:r[a],ref:o,children:s})})},Dce=250,Z7={threshold:.2},Hce=({topRef:e,bottomRef:t,pageWrapRef:s,currentLessonId:o})=>{const r=Hu(e,Z7),a=Hu(t,Z7),[i,c]=(0,u.useState)(!1),[l,d]=(0,u.useState)(!1),[h,m]=(0,u.useState)(!1),p=(0,u.useCallback)(()=>{s.current?.scrollTo({top:2,behavior:"smooth"})},[s]);return(0,Wd.A)(p),(0,u.useEffect)(()=>{c(!0);const v=setTimeout(()=>{p(),c(!1)},Dce);return()=>{clearTimeout(v)}},[o,p]),(0,u.useEffect)(()=>{d(a&&!i),m(r&&!i)},[a,r,i]),{showPrev:h,showNext:l}},Fce=({children:e,isCurrentLessonQuiz:t,navNextEnabled:s,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,u.useRef)(null),i=(0,u.useRef)(null),c=(0,u.useRef)(null),l=(0,u.useRef)(null),d=(0,u.useRef)(null),h=(0,u.useRef)(null),m=Ms(),{showNext:p,showPrev:v}=Hce({topRef:d,bottomRef:h,pageWrapRef:a,currentLessonId:m}),C=(0,u.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),g=(0,u.useCallback)(()=>{const x=a.current?.scrollHeight;a.current?.scrollTo({top:x,behavior:"smooth"})},[]);return(0,tt.A)(md,C),(0,tt.A)(pd,g),(0,u.useEffect)(()=>{t&&(s||r)&&g()},[t,s,r,g]),(0,n.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,n.jsx)("div",{className:Oc("top"),ref:d}),!o&&m&&(0,n.jsx)(Q7,{buttonType:"prev",transitionIn:v,children:(0,n.jsx)(uf,{lessonId:m,onFocus:C,ref:i})}),e,(0,n.jsx)(Q7,{buttonType:"next",transitionIn:p&&!!(s||r),children:s&&m?(0,n.jsx)(W7,{lessonId:m,onFocus:g,ref:c}):r?(0,n.jsx)(df,{lessonId:m,onFocus:g,ref:l}):null}),(0,n.jsx)("div",{className:Oc("bottom"),ref:h})]})};var Fu=f(82920);class Vce extends Fu.Component{nodeRef=Fu.createRef();constructor(t){super(t),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(t){const s=this.transitionState;s==="entering"?this.onEnter(t):s==="exiting"&&this.onExit(t)}onEnter(t){const s=this.nodeRef.current;s&&s.componentWillEnter?s.componentWillEnter(t):t()}onEntered(){const t=this.nodeRef.current;t&&t.componentDidEnter&&t.componentDidEnter()}onExit(t){const s=this.nodeRef.current;s&&s.componentWillExit?s.componentWillExit(t):t()}onExited(){const t=this.nodeRef.current;t&&t.componentDidExit&&t.componentDidExit()}render(){const{children:t}=this.props;return(0,n.jsx)(Uc,{addEndListener:this.handleTransition,nodeRef:this.nodeRef,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,...this.props,children:s=>(this.transitionState=s,t&&Fu.cloneElement(Fu.Children.only(t),{ref:this.nodeRef}))})}}const{FULL:zce,FLOATING:Y7}=so,$ce=z("lessonNavigation"),_ce=({children:e})=>{const t=(0,u.useRef)(null);return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:t,children:e})},Uce=(e,t)=>typeof t=="object"&&t!==null&&"drawCount"in t&&typeof t.drawCount=="number"?e+t.drawCount:e+1,Gce=(e=[])=>e.reduce(Uce,0),Wce=({children:e,isLessonOnlyEmbed:t})=>{const{pathname:s}=(0,je.zy)(),o=re(),r=o.buttonNavigationStyle,{showNavigationButtons:a,lessonsOnly:i,lmsOptions:c}=o,l=(0,u.useRef)(null),d=kt(480),h=Ms(),m=Vt(h),p=Po(h),[v,C]=(0,u.useState)(r),g=i?.[0]?.id,x=o.exportSettings?.webExportSettings?.disableCoverPage===!0,S=!Mn.isInstantLink&&(c?.disableCoverPage===!0||x)&&g===h,L=!Mn.isInstantLink&&c?.disableCoverPage===!0,b=c?.disableCoverPage===!0?S:L;(0,u.useEffect)(()=>{r!==v&&(C(r),window.dispatchEvent(new CustomEvent(md)))},[r,v]);const y=m!=null&&m.type!=null?m:void 0,T=y!=null&&(i4(y)||Lg(y))?p?.isComplete===!0:!0,k=y?.type==="quiz",N=p?.type==="quiz"?p.activeIndex:void 0,I=k&&N!=null&&N===Gce(y.items)+1,{skipLessonsIfPassed:w,skipLessonsOptional:R,skipToLessonId:E}=j1(h),j=p?.type==="quiz"&&p.passed===!0,O=k&&j&&w&&!R&&!!E,A=k&&!I||y?.settings?.continueType==="continue"||O,P=m!=null?c3({course:o,lesson:m}):void 0,M=P!=null&&P!==!1,F=h==="progress-summary",B=window.isPublicShare===!0,H=M&&t!==!0&&T&&!A&&!F,V=!M&&T&&!1,K=$ce("wrapper",{full:r===zce||d,floating:r===Y7&&!d}),X=a!==!0||t===!0?_ce:r===Y7&&!d?Fce:Bce;return(0,u.useEffect)(()=>{const oe=document.querySelector(".page__content");oe&&oe.classList.add("page__content--preview-nav")},[X]),(0,n.jsx)("div",{className:K,ref:l,children:(0,n.jsx)(X,{hideNavToHome:b,navFinishEnabled:V,navNextEnabled:H,children:(0,n.jsx)(uce,{children:(0,n.jsx)(qo,{component:"div",children:(0,n.jsx)(Vce,{children:e},s)})})})})};var Kce=f(20855),X7=f(65577);function Qce(e){return e?.slidesUI?.slideDirection??rn.UP}function Zce(){return he(Qce)}function Yce(e){return e?.slidesUI?.exitingSlideOffset??0}function Xce(){return he(Yce)}var qce;const Jce=1024,ele=16/9,q7=Jce/ele,tle=e=>typeof e=="string"||typeof e=="number",sle=e=>qce(e)&&e.type==="slide"&&Array.isArray(e.items),Bc=e=>{if(!(!Jn(e)||!Jn(e.experiments)))return e.experiments},nle=(e,t)=>!Array.isArray(e)||!t?[]:e.filter(tle).map(s=>t[String(s)]).filter(sle),N5e=(e,t)=>nle(e,t).map(s=>s.id),ole=e=>Bc(e)?.showTitle!==!1,J7=e=>Bc(e)?.imageTextLayout,ex=e=>e!==void 0,rle=e=>ex(J7(e)),ale=e=>rle(e)&&Bc(e)?.showDescription!==!1,ile=e=>({imagePosition:e==="insetRight"||e==="bleedRight"?"right":"left",isFullBleed:e==="bleedLeft"||e==="bleedRight"||e==="overlay",isOverlay:e==="overlay"}),cle=e=>Bc(e)?.titleVariant,I5e=e=>e&&Bc(e)?.speakerNotes||"",tx=z("presentation-logo"),lle=()=>{const e=re(),t=e?.theme?.showLogo??!0;if(!Zr(e)||t===!1)return null;const s=e?.theme?.logoPosition??sk;return(0,n.jsx)(jm,{className:tx({[tk[s]]:!0}),imageClassName:tx("image")})};function dle(e,{designHeight:t,fit:s="width"}={}){const o=(0,u.useRef)(null),[r,a]=(0,u.useState)(1),i=(0,u.useRef)(null);(0,u.useLayoutEffect)(()=>{const l=o.current;if(!l)return;const d=(p,v)=>{const C=p>0?p/e:1,g=s==="contain"&&t?Math.min(C,v>0?v/t:1):C;a(x=>x===g?x:g)},h=l.getBoundingClientRect();d(h.width,h.height);const m=new ResizeObserver(p=>{i.current!=null&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{const v=p[0];v&&d(v.contentRect.width,v.contentRect.height)})});return m.observe(l),()=>{m.disconnect(),i.current!=null&&cancelAnimationFrame(i.current)}},[e,t,s]);const c={transform:`scale3d(${r}, ${r}, 1)`,transformOrigin:s==="contain"?"center":"top left"};return{containerRef:o,scale:r,scaleStyle:c}}const sx=z("presentation-slide-frame");function ule({children:e}){const{containerRef:t,scaleStyle:s}=dle(1024,{designHeight:q7,fit:"contain"});return(0,n.jsx)("div",{className:sx(),ref:t,children:(0,n.jsx)("div",{className:sx("canvas"),style:{width:1024,height:q7,...s},children:e})})}const Gt=z("blocks-lesson-slide"),nx="#fff",hle=["image full","image text overlay","quote background"],ox=({className:e})=>{const t=Os()||nx;return(0,n.jsx)("div",{className:e,style:{background:t}})},mle=({block:e})=>(0,n.jsx)(P1,{block:e,children:(0,n.jsx)(ox,{className:Gt("background-top")})}),ple=({block:e})=>(0,n.jsx)(P1,{block:e,children:(0,n.jsx)(ox,{className:Gt("background-bottom")})});function fle(e,t){const s=t.blocks?.length??1,o=s==1,r=s==2,a=t.blocks?.[0],i=t.blocks?.find(E=>E.settings.backgroundType===ne.IMAGE),c=e.settings.backgroundType===ne.IMAGE,l=e.id===a?.id,d=e.family==="multimedia",h=e.family==="mondrian",m=e.family==="survey",p=e.family==="buttons",C=e.variant==="accordion"&&document.querySelector(`[data-block-id="${e.id}"] [data-accordion-status="closed"]`)!=null,g=document.querySelector(`[data-block-id="${e.id}"] [data-block-text]`)?.clientHeight>300,x=Wre(e.family,e.variant)||g,S=document.querySelector("[data-continue-sr]")!=null,L=!x&&r&&S&&document.querySelector("[data-continue-btn]")==null,b=o&&c&&!L,y=c&&!L&&!x,T=d||p||h||m;return Gt("connected-blocks",{"min-half-height":i&&(r&&!L&&!x||C||y),"full-height":L||b,"top-block":l&&!o&&!x&&!T,"top-block-centered":l&&!o&&T})}const gle=({hasTransitioned:e,onContinue:t,prefersKeyboardNavigation:s,previewType:o,slide:r,transitionState:a},i)=>{const c=re(),l=Ms(),d=xe(),h=Sr(),m=Po(l),p=!0,{animateBlockEntrance:v,color:C,title:g,enableVideoPlaybackSpeed:x}=c,S=(0,u.useRef)();(0,u.useImperativeHandle)(i,()=>S.current);const L=Zce(),b=Xce(),y=r?.lastBlock,T=(0,u.useCallback)(le=>{le===y?.id&&t()},[y,t]);if(!r)return null;const k=`${a}-${L}`,N=Gt("wrapper",{exiting:a==="exiting"}),{blocks:I,lessonTitle:w,lessonDescription:R,shouldShowAnimation:E=v,shouldShowTitle:j=!0,shouldShowDescription:O=!0,imageTextLayout:A,titleVariant:P}=r,M=Zr(c),F=Gt("inner",{[k]:!0,presentation:M}),B=Gt("lesson-title",{heading:P==="heading",subheading:P==="subheading"}).toString(),H=Gt("lesson",{slides:p,"touch-preview":uc(o)}).toString(),V=r.blocks.length==1,{settings:K,type:U,variant:X}=r.blocks?.[0]??{},oe=V&&K.backgroundType===ne.IMAGE,Z=V&&!oe&&jn()(`${U} ${X}`,hle),_=!M&&(Z||oe),D=r.blocks?.[0],$=r.blocks?.[r.blocks.length-1],Q=D?.settings?.backgroundType!==ne.IMAGE,Y=$?.settings?.backgroundType!==ne.IMAGE,q=Gt("full-width-image",{legacy:Z,background:oe}),J=j&&w,ee=ex(A)&&O&&R,te=(J||ee)&&(0,n.jsxs)("div",{className:Gt("lesson-header"),children:[J&&(0,n.jsx)(ke,{className:B,tagName:"h1",value:w}),ee&&(0,n.jsx)(ke,{className:Gt("lesson-description").toString(),value:R})]}),se=A?ile(A):void 0,Te=!se&&E,W=se?.imagePosition==="left",de=I.map((le,Se)=>{const ve=V?!1:i7({blocks:r.blocks,lessonProgress:m,currentBlockIndex:Se}),Ke=_?q:fle(le,r);return(0,n.jsx)(Yp,{animateBlockEntrance:Te,block:le,className:Ke,color:C,courseTitle:g,defaultBackgroundColor:nx,enableVideoPlaybackSpeed:x,hideBlock:ve,index:Se,isFirstLesson:!0,isOnlyBlockInStep:V,labels:d,lessonId:l,lessonProgress:m,loadMedia:e,onContinue:T,partnerContent:h,prefersKeyboardNavigation:s,previewType:o},le.blockId)}),ge=se?.isOverlay?(0,n.jsxs)("div",{className:Gt("composition",{overlay:!0,bleed:!0}),children:[(0,n.jsx)("div",{className:Gt("composition-image"),children:de}),(J||ee)&&(0,n.jsxs)("div",{className:Gt("composition-overlay-text"),children:[J&&(0,n.jsx)(ke,{className:B,tagName:"h1",value:w}),ee&&(0,n.jsx)(ke,{className:Gt("lesson-description").toString(),value:R})]})]}):se?(0,n.jsx)("div",{className:Gt("composition",{bleed:se.isFullBleed,"image-left":se.imagePosition==="left","image-right":se.imagePosition==="right"}),children:(W?["image","text"]:["text","image"]).map(le=>le==="image"?(0,n.jsx)("div",{className:Gt("composition-image"),children:de},"image"):(0,n.jsx)("div",{className:Gt("composition-text"),children:te},"text"))}):(0,n.jsxs)(n.Fragment,{children:[te,de]}),pe=(0,n.jsxs)("div",{className:F,children:[D&&Q&&(0,n.jsx)(mle,{block:D}),$&&Y&&(0,n.jsx)(ple,{block:$}),(0,n.jsx)("div",{className:H,ref:S,children:ge}),(0,n.jsx)(lle,{})]});return M?(0,n.jsx)(ule,{children:pe}):(0,n.jsx)("div",{className:N,style:{top:b},children:pe})},vle=(0,u.forwardRef)(gle);var Cle=f(27009),xle=f.n(Cle);const rx=z("blocks-slide-indicator-tooltip"),ble=({disabled:e,left:t,text:s,top:o,visible:r},a)=>{let i=(0,n.jsx)("span",{"aria-hidden":"true",children:s});return e&&(i=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{classNameIcon:rx("icon"),name:"lock"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,n.jsx)("div",{"aria-hidden":!r,className:rx("wrapper",{disabled:e,visible:r}),ref:a,role:"tooltip",style:{left:t,top:o},children:i})},ax=(0,u.forwardRef)(ble);ax.propTypes={disabled:Fe().bool.isRequired,left:Fe().number,text:Fe().string.isRequired,top:Fe().number,visible:Fe().bool.isRequired};const yle=ax;function Lle(e){const t=(0,u.useRef)();return t.current||=e(),t}const Vu=z("blocks-slide-indicator"),Sle=({active:e,blockNavigationStyle:t,disabled:s,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:i},c)=>{const{prefersKeyboardNavigation:l}=Yi()??{},[d,h]=(0,u.useState)(!1),[m,p]=(0,u.useState)(),v=(0,u.useRef)(),C=(0,u.useRef)(),g=(0,u.useRef)(),x=t===M0.NUMBERS,S=i+1,L=`${S} / ${o}`,b=e?`Step ${S} of ${o}, current step`:`Go to step ${S} of ${o}`,y=Lle(()=>document.getElementById("portal")),T=(0,u.useCallback)(()=>{if(v.current&&C.current){const F=v.current.getBoundingClientRect(),B=C.current.getBoundingClientRect(),H=F.left-B.width-18,V=Math.round(F.top-B.height/2+F.height/2);p({left:H,top:V})}},[]),k=(0,u.useCallback)(()=>{g.current=setTimeout(()=>{T(),h(!0)},300)},[T]),N=(0,u.useCallback)(()=>{clearTimeout(g.current),h(!1)},[]),I=(0,u.useCallback)(()=>{a(i)},[a,i]),w=(0,u.useCallback)(F=>{Ss(F)&&h(!1),r(F)},[r]),R=(0,u.useCallback)(()=>{k()},[k]),E=(0,n.jsx)(yle,{disabled:s,left:m?.left,ref:C,text:L,top:m?.top,visible:d}),j=Vu("button",{active:e,disabled:s,numbers:x}),O=Vu("wrapper"),A=Vu("circle",{active:e,disabled:s}),P=Vu("number",{active:e,disabled:s}),M=x?(0,n.jsx)("span",{"aria-hidden":"true",className:P,children:S}):(0,n.jsx)(ie,{classNameIcon:A,name:"circle-solid"});return(0,n.jsxs)("div",{className:O,ref:c,children:[(0,n.jsx)("button",{"aria-current":e?"page":void 0,"aria-disabled":s,"aria-label":b+(s?" (unavailable until previous content is completed)":""),className:j,"data-control":"",onBlur:N,onClick:s?void 0:I,onFocus:l?R:void 0,onKeyDown:w,onMouseEnter:k,onMouseLeave:N,ref:v,type:"button",children:M}),(0,gn.createPortal)(E,y.current)]})},Tle=(0,u.forwardRef)(Sle),Vr=z("blocks-slide-controls"),ix=38,kle=8,Nle=e=>{const{activeSlideIndex:t,blockNavigationStyle:s,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:i,previewType:c}=e,l=(0,u.useRef)(),d=(0,u.useRef)(),[h,m]=(0,u.useState)(!1),[p,v]=(0,u.useState)(!1),C=(0,u.useCallback)(L=>{let b=!1,y=-1;if(xr(L)||ao(L)){if(t-1>=0)y=t-1;else{r();return}b=!0}else br(L)||io(L)?(t+1<=o-1&&(y=t+1),b=!0):H3(L)?(y=0,b=!0):D3(L)&&(y=o-1,i[y]&&(y=i.findLastIndex(T=>!T)),b=!0);y>=0&&!i[y]&&a(y),b&&(L.stopPropagation(),L.preventDefault())},[t,o,r,a,i]);(0,u.useEffect)(()=>{const L=l.current,b=d.current;if(L&&b){const y=L.getBoundingClientRect(),T=b.getBoundingClientRect(),k=y.bottom-ix,N=y.top+ix;T.bottom>k?L.scrollBy({top:T.bottom-k,left:0,behavior:"smooth"}):T.top<N&&L.scrollBy({top:T.top-N,left:0,behavior:"smooth"})}},[t]);const g=(0,u.useCallback)(()=>{const L=l.current;L&&(m(L.scrollTop>kle),v(L.clientHeight+L.scrollTop<L.scrollHeight))},[]);(0,Wd.A)(g);const x=(0,u.useCallback)(fu()(g,100),[g]);fd(l.current,g);const S=Vr({"touch-preview":uc(c)});return(0,n.jsx)("div",{className:S,children:(0,n.jsx)("div",{className:Vr("page-control-wrapper"),children:(0,n.jsxs)("div",{className:Vr("page-control-inner-wrapper"),children:[(0,n.jsx)("div",{className:Vr("page-control"),onScroll:x,ref:l,children:(0,n.jsx)("div",{className:Vr("slide-dot-wrapper"),children:xle()(L=>{const b=L===t;return(0,n.jsx)(Tle,{active:b,blockNavigationStyle:s,disabled:i[L],numberOfSlides:o,onClick:a,onKeyDown:C,ref:b?d:null,slideIndex:L},L)},o)})}),(0,n.jsx)("div",{className:Vr("overlay-top",{visible:h})}),(0,n.jsx)("div",{className:Vr("overlay-bottom",{visible:p})})]})})})};var Dc=f(82920);const Ile=50,Ele=1e3,jle=({onSwipeDownHandler:e,onSwipeUpHandler:t,target:s,timeoutDuration:o=Ele})=>{const[r,a]=Dc.useState(!1),i=Dc.useRef(void 0),c=Dc.useCallback(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>a(!1),o)},[o]),l=Dc.useCallback(d=>{const h=Math.abs(d.deltaY);if(r)h<Ile?(i.current&&clearTimeout(i.current),a(!1)):c();else if(h>100){const m=d.deltaY>0?e:t;a(!0),c(),m()}},[c,r,e,t]);Dc.useEffect(()=>{if(!(!s||!t||!e))return s.addEventListener("wheel",l,{passive:!0}),()=>{i.current&&clearTimeout(i.current),s?.removeEventListener?.("wheel",l,{passive:!0})}},[e,t,l,s])},wle="rise-presenter-sync",A5e="presenterMode",Ale="slide",Rle="NAVIGATE_TO_SLIDE",Ple="SLIDE_CHANGE",R5e="PRESENTER_VIEW_EXIT";function Mle(e){const t=new URLSearchParams(e).get(Ale);if(t==null)return 0;const s=Number(t);return Number.isFinite(s)&&s>=0?s:0}function cx(){const e=window.location.hash.split("?")[1]||"";return Mle(e)}const Bt=z("lesson-one-page-slides"),Ole=z("page-wrap"),lx=e=>e,dx=100,Ble=e=>{if(e!=null&&"blockNavigationStyle"in e){const t=e.blockNavigationStyle;return typeof t=="string"?t:void 0}};function ux(e){if(!(e instanceof HTMLElement))return!1;const t=e.tagName.toLowerCase(),s=e.getAttribute("type"),o=e.getAttribute("role"),r=e.tabIndex,a=t==="button"||["div","span"].includes(t)&&(o==="button"||r===0),i=t==="input"&&["radio","text"].includes(s??"")||t==="textarea"||o==="radio",c=["audio","video"].includes(t),l=o==="tab",d=document.querySelector(".quiz-card__interactive")?.contains?.(e)??!1;return a||i||c||l||d}const hx=(e,t)=>(s,o,r)=>a7(s,r.slice(0,-1),e,void 0,t),Dle=(e,t)=>({disabled:s,slides:o},r)=>{const a=r.filter(d=>e[d.id]!=null).map(d=>({...d,...e[d.id]})),i=r[r.length-1],c=s||_re(a)||Ure(a,t),l={blocks:a,lastBlock:i,disabled:s};return{disabled:c,slides:[...o,l]}},zu=e=>{let t=!1,s=!1;if(e){const{clientHeight:o,scrollHeight:r,scrollTop:a}=e,i=Math.max(0,a),c=r-i;t=c===r,s=c-5<=o}return{isAtTop:t,isAtBottom:s}},Hle=/,? +/,Fle=[],Vle=({lessonProgress:e,prefersKeyboardNavigation:t,previewType:s})=>{const{announcePolite:o,clearAnnouncements:r}=An(),a=(0,u.useRef)(null),i=(0,u.useRef)(null),c=(0,u.useRef)(null),l=(0,u.useRef)(null),d=(0,u.useRef)(null),h=(0,u.useRef)(null),m=(0,u.useRef)(null),p=(0,u.useRef)(null),v=(0,u.useRef)(null),C=(0,u.useRef)(null),g=(0,u.useRef)(0),x=(0,u.useRef)(0),S=os(),L=ut(),[b,y]=(0,u.useState)(()=>cx()),[T,k]=(0,u.useState)(!0),[N,I]=(0,u.useState)(!1),w=(0,Be.A)(T),R=(0,Be.A)(N),E=(0,u.useRef)(void 0),j=Ds(),{lessons:O,...A}=re()||{},P=Zr(A),M=j||P?.01:600,F=Ble(A?.theme)||M0.DOTS,B=O?.[0],H=B?.items||Fle,V=(0,u.useCallback)(()=>{const Ne=(c.current?.scrollHeight??0)>(c.current?.clientHeight??0),{isAtBottom:gt}=zu(c.current),vt=Ne&&!T&&!gt;vt!=N&&I(vt)},[N,T]);fd(a.current,V),(0,u.useLayoutEffect)(V,[T]);const K=(0,u.useCallback)(()=>{c.current?.scrollTo({top:0})},[]),U=A?.theme,X=(0,u.useMemo)(()=>{const vt=Xp([],H,e,U).map(hx(e,U)).filter(Zo=>Zo!==null);return Object.fromEntries(vt.map(Zo=>[Zo.blockId,Zo]))},[H,e,U]),oe=(0,u.useCallback)(Ne=>{const gt={disabled:!1,slides:[]},{slides:vt}=Ne.reduce(Dle(X,e),gt);return vt},[X,e]),Z=(0,u.useMemo)(()=>P?(O??[]).filter(Ne=>Ne?.type==="slide"):[],[P,O]),_=(0,u.useMemo)(()=>P?Z.map(Ne=>{const gt=Ne.items.map(hx(e,U));return{blocks:gt,lastBlock:gt[gt.length-1],lessonTitle:Ne?.title,lessonDescription:Ne?.description,shouldShowTitle:ole(Ne),shouldShowDescription:ale(Ne),shouldShowAnimation:Ne?.experiments?.showAnimation??!0,imageTextLayout:J7(Ne),titleVariant:cle(Ne),disabled:!1}}):f0(H,Rre,oe),[P,Z,H,oe,e,U]),D=(0,u.useMemo)(()=>_.map(Ne=>Ne.disabled),[_]);(0,u.useEffect)(()=>{g.current=b},[b]),(0,u.useEffect)(()=>{x.current=_.length,_.length>0&&b>=_.length&&y(_.length-1)},[_.length,b]),(0,u.useEffect)(()=>{if(!(!P||typeof BroadcastChannel>"u"))try{v.current||(v.current=new BroadcastChannel(wle));const Ne=v.current,gt=vt=>{if(vt.data.type===Rle){const Zo=vt.data.slideIndex,zc=Math.min(Zo,x.current-1);if(zc>=0){const qde=zc<g.current?rn.DOWN:rn.UP;L(Cr(qde)),C.current&&C.current(zc)}}};return Ne.addEventListener("message",gt),()=>{Ne.removeEventListener("message",gt)}}catch{}},[P,L,S]),(0,u.useEffect)(()=>{if(!(!P||!v.current))try{v.current.postMessage({type:Ple,slideIndex:b})}catch{}},[P,b]),(0,u.useEffect)(()=>()=>{v.current?.close(),v.current=null},[]);const $=_.length,Q=$>0?Math.min(b,$-1):0,Y=_[Q],q=uc(s),J=F!==M0.NONE,ee=b===$-1,te=e?.isComplete,se=N||ee?!te||!0:D[b+1],Te=!N&&!ee,W=ee&&!0,de=(0,Be.A)(W),ge=N&&!ee,pe=(0,u.useCallback)(au()(V,100),[V]);(0,u.useEffect)(()=>{const Ne=c.current;return Ne?.addEventListener("scroll",pe,{passive:!0}),()=>Ne?.removeEventListener("scroll",pe)},[pe]),(0,u.useEffect)(()=>{document.activeElement===h.current?!R&&N?d.current?.focus({preventScroll:!0}):!de&&W&&m.current?.focus({preventScroll:!0}):document.activeElement===d.current&&R&&!N&&h.current?.focus({preventScroll:!0})},[N,R,de,w,W,T]),(0,Kce.A)(()=>{f9(),E.current=setTimeout(()=>{k(!1),c.current?.focus?.()},M+dx)},()=>{clearTimeout(E.current)});const le=(0,u.useCallback)(Ne=>{const gt=a.current?.getBoundingClientRect()?.top??0;L(mE(gt));const vt=Math.max(0,Math.min(Ne,_.length-1));y(vt),K()},[L,K,_.length]),Se=(0,u.useCallback)(()=>{T||(k(!0),ho(()=>{S("/")},"lesson-to-one-page-cover-stepped"))},[S,T]),ve=A?.exportSettings?.webExportSettings,Ke=P||!!(!Mn.isInstantLink&&(A?.lmsOptions?.disableCoverPage||ve?.disableCoverPage)),Wt=(0,u.useCallback)(Ke?()=>{L(Cr(rn.DOWN)),le(0)}:Se,[Ke,le,Se,L,Cr]);(0,u.useEffect)(()=>{C.current=le},[le]);const ts=(0,u.useCallback)(()=>{T||(b>0?(L(Cr(rn.DOWN)),le(b-1)):Se())},[le,L,b,T,Se]),It=(0,u.useCallback)(()=>{T||(L(Cr(rn.UP)),le(b+1))},[le,L,S,ee,b,T]),Dt=(0,u.useCallback)(()=>{(b<$-1||ee&&!1)&&It()},[ee,b,$,It]),Tn=(0,u.useCallback)(()=>{const Ne=c.current?.scrollTop??0,gt=c.current?.clientHeight??0,vt=j?"instant":"smooth";c.current?.scrollTo({top:Ne+gt,behavior:vt})},[j]),Qe=(0,u.useCallback)(()=>{It()},[It]),Ht=(0,u.useCallback)(()=>{Tn()},[Tn]),Et=(0,u.useCallback)(Ne=>{if(Ne===b||T)return;const gt=Ne<b?rn.DOWN:rn.UP;L(Cr(gt)),le(Ne),queueMicrotask(()=>{l.current?.querySelectorAll("[data-control]")?.[Ne]?.focus?.()})},[le,L,b,T]),Kt=(0,u.useCallback)(()=>k(!0),[]),be=(0,u.useCallback)(()=>{k(!1),setTimeout(()=>{if(i.current&&l.current?.contains?.(document.activeElement)){const Ne=Wp()(i.current.innerText,{length:75,separator:Hle});r(),o(`Content preview: ${Ne}`)}else c.current?.focus?.()},0)},[o,r]),we=(0,u.useCallback)(()=>{if(q)return;const{isAtTop:Ne}=zu(c.current);if(Ne){b===0?Wt():ts();return}},[q,ts,b,Wt]),et=(0,u.useCallback)(()=>{if(q||ee||se)return;const{isAtBottom:Ne}=zu(c.current);if(Ne){Qe();return}},[ee,se,q,Qe]),Qt=(0,u.useCallback)(()=>{const{isAtBottom:Ne,isAtTop:gt}=zu(c.current),vt=document.documentElement.clientWidth===window.innerWidth;return(Ne||gt)&&vt},[]),fs=(0,u.useCallback)(Ne=>{!l.current?.contains?.(document.activeElement)&&!ux(Ne.target)&&we()},[we]),ai=(0,u.useCallback)(Ne=>{!l.current?.contains?.(document.activeElement)&&!ux(Ne.target)&&et()},[et]),Vc=(0,u.useCallback)(Ne=>{const{itemId:gt}=Ne.detail,vt=_.findIndex(Zo=>Zo.blocks.find(zc=>zc.id===gt));vt===-1||vt===b||(L(Cr(vt>b?rn.UP:rn.DOWN)),le(vt))},[_,b,L,le]);(0,u.useEffect)(()=>(window.addEventListener(Ze,Vc),()=>{window.removeEventListener(Ze,Vc)})),(0,X7.A)("ArrowUp",lx,fs),(0,X7.A)("ArrowDown",lx,ai),jle({target:c.current,onSwipeUpHandler:we,onSwipeDownHandler:et,timeoutDuration:M+dx});const Yde=Bt("gradient",{visible:N}),Xde=(0,n.jsxs)("nav",{"aria-label":"Slide navigation",className:Bt("presentation-controls"),ref:l,children:[(0,n.jsxs)("button",{"aria-disabled":b===0&&Ke,"aria-hidden":b===0&&Ke,className:Bt("presentation-btn"),onClick:ts,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Bt("presentation-arrow-icon"),name:"chevron-left"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),(0,n.jsx)("span",{"aria-hidden":!0,className:Bt("counter"),children:`${b+1} / ${$}`}),(0,n.jsxs)("button",{"aria-disabled":se,"aria-hidden":!Te,className:Bt("presentation-btn"),onClick:se?void 0:Qe,ref:h,tabIndex:ee?-1:void 0,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Bt("presentation-arrow-icon"),name:"chevron-right"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Go to next step"})]})]});return(0,n.jsx)("div",{className:Bt({}),children:(0,n.jsx)("div",{className:Ole({transitioning:T}),id:"page-wrap",ref:c,tabIndex:-1,children:(0,n.jsx)("div",{className:"page","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper",children:(0,n.jsx)("div",{className:"page__content",children:(0,n.jsx)(jr,{title:void 0,children:(0,n.jsxs)("div",{"data-lesson-id":B?.id,children:[P?Xde:(0,n.jsxs)("nav",{"aria-label":"Step navigation",className:Bt("controls",{"touch-preview":q}),ref:l,children:[(0,n.jsxs)("button",{"aria-disabled":b===0&&Ke,"aria-hidden":b===0&&Ke,className:Bt("prev-btn",{"touch-preview":q}),onClick:ts,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Bt("arrow-icon",{"touch-preview":q}),name:"arrow-up"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),J&&(0,n.jsx)(Nle,{activeSlideIndex:b,blockNavigationStyle:F,numberOfSlides:$,onGoToCover:Se,onSlideClick:Et,previewType:s,slideDisabledState:D}),(0,n.jsxs)("div",{className:Bt("next-btns"),children:[(0,n.jsxs)("button",{"aria-disabled":!ge,"aria-hidden":!ge,className:Bt("page-down-btn",{"touch-preview":q}),onClick:ge?Ht:void 0,ref:d,tabIndex:ge?void 0:-1,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Bt("arrow-icon",{"touch-preview":q}),name:"arrow-down"}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!N&&(0,n.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),ee&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-disabled":se,"aria-hidden":!Te,className:Bt("next-btn",{"touch-preview":q}),onClick:se?void 0:Qe,ref:h,tabIndex:ee?-1:void 0,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Bt("arrow-icon",{"touch-preview":q}),name:"arrow-down"}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",se&&(0,n.jsx)("span",{children:"(disabled until content is completed)"}),ee&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-disabled":!W,"aria-hidden":!W,className:Bt("restart-btn",{"touch-preview":q}),onClick:W?Wt:void 0,ref:m,tabIndex:ee?void 0:-1,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Bt("restart-icon",{"touch-preview":q}),name:"arrow-rotate-left"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,n.jsxs)(zd,{onShouldRecognizeGesture:Qt,onSwipeDown:we,onSwipeUp:et,children:[(0,n.jsx)("main",{"aria-describedby":"step-counter",ref:i,tabIndex:0,children:(0,n.jsx)(qo,{children:(0,n.jsx)(Uc,{mountOnEnter:!0,nodeRef:p,onExited:be,onExiting:Kt,timeout:M,unmountOnExit:!0,children:Ne=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:"step-counter",ref:p,children:`Step ${b+1} of ${$}`}),(0,n.jsx)(vle,{hasTransitioned:!T,onContinue:Dt,prefersKeyboardNavigation:t,previewType:s,ref:a,slide:Y,transitionState:Ne})]})},b)})}),(0,n.jsx)("div",{className:Yde})]})]})})})})})})})},zle=e=>!!e&&e.type==="videoCheckpoint"&&e.family==="videoCheckpoint"&&e.variant==="videoCheckpoint",hf=1e3,$le=3,_le=/^\d+(?:\.\d+)?$/,mx=/^\d+$/,Ule=/^\d{2}(?:\.\d{1,3})?$/,$u=e=>{if(!Number.isFinite(e))return 0;const t=10**$le;return Math.max(0,Math.round(e*t)/t)},mf=e=>e.toString().padStart(2,"0"),Gle=e=>e!=null&&typeof e=="object"?e.time:void 0,M5e=e=>{const t=Math.round($u(e)*hf),s=Math.floor(t/36e5),o=Math.floor(t%36e5/6e4),r=Math.floor(t%6e4/1e3),a=t%hf,i=a===0?"":`.${a.toString().padStart(3,"0")}`;return s>0?`${s}:${mf(o)}:${mf(r)}${i}`:`${Math.floor(t/6e4)}:${mf(r)}${i}`},Wle=e=>{const t=e.split(":");if(t.length!==2&&t.length!==3)return null;const[s,o,r]=t.length===3?[t[0],t[1],t[2]]:[null,t[0],t[1]];if(s!=null&&!mx.test(s)||!mx.test(o)||!Ule.test(r))return null;const a=s==null?0:Number.parseInt(s,10),i=Number.parseInt(o,10),[c,l=""]=r.split("."),d=Number.parseInt(c,10);if(t.length===3&&i>=60||d>=60)return null;const h=l.length===0?0:Number.parseInt(l.padEnd(3,"0"),10)/hf;return $u(a*3600+i*60+d+h)},O5e=e=>{const t=e.trim();return t.length===0?null:_le.test(t)?$u(Number.parseFloat(t)):Wle(t)},vo=e=>{let t;e!=null&&"checkpoint"in e?t=Gle(e.checkpoint):e!=null&&"time"in e&&(t=e.time);const s=typeof t=="number"?t:Number.parseFloat(String(t));return $u(s)},Kle=null,B5e=e=>e.family==="interactive-fullscreen"||e.family==="360"?!1:!(e.family==="multimedia"&&Kle.has(e.variant)),Qle=(e,t)=>{if(typeof e=="string"){const s=e.trim();if(s.length>0)return s}return t},Zle=e=>{const t=e.map((o,r)=>({id:o.checkpoint.id,time:vo(o),documentIndex:r})).sort((o,r)=>o.time-r.time||o.documentIndex-r.documentIndex),s=new Map;return t.forEach((o,r)=>{s.set(o.id,r+1)}),s},Yle=e=>[...new Set(e.map(t=>vo(t)))].sort((t,s)=>t-s),D5e=(e,t)=>{const s=[...e].sort((o,r)=>vo(o)-vo(r)).find(o=>vo(o)>t);return{insertBeforeItemId:s?.checkpoint.id??null,insertAtEnd:s==null}},Xle=e=>{const t=e[0]??null,s=t==null?e:e.slice(1),o=[],r=[];let a=null;s.forEach(c=>{if(zle(c)){a!=null&&r.push(a),a={checkpoint:c,blocks:[]};return}if(a!=null){a.blocks.push(c);return}o.push(c)}),a!=null&&r.push(a);const i=r.length===0?e:[...t==null?[]:[t],...o];return{videoBlock:t,leadingBlocks:o,checkpointGroups:r,inlineBlocks:i}},Hc=z("video-checkpoint-player");function qle({activeGroup:e,animateBlockEntrance:t,checkpointGroups:s,color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,labels:l,lessonId:d,lessonProgress:h,loadMedia:m,onCheckpointCompleted:p,partnerContent:v,prefersKeyboardNavigation:C,previewType:g}){const x=(0,je.g)(),S=(0,u.useMemo)(()=>({params:x}),[x]),L=(0,u.useRef)(!1),b=(0,u.useMemo)(()=>Zle(s),[s]),y=(0,u.useCallback)(()=>{e==null||L.current||(L.current=!0,p?.(e))},[e,p]);if((0,u.useEffect)(()=>{e!=null&&(L.current=!1)},[e]),e==null)return null;const T=vo(e),k=pc(T),N=b.get(e.checkpoint.id),I=`${l?.videoCheckpointDefaultTitle||"Checkpoint"} ${N}`,w=Qle(e.checkpoint?.title,I),R=e.blocks??[];return(0,n.jsx)(wd,{className:Hc(),darkOverlay:!0,"data-testid":"video-checkpoint-overlay",footer:(0,n.jsxs)("button",{"aria-label":`${l?.videoCheckpointResume||"Resume video"} \u2014 ${w}`,className:Hc("resume"),onClick:y,type:"button",children:[l?.videoCheckpointResume||"Resume video",(0,n.jsx)(rm,{className:Hc("resume-icon"),decorative:"true"})]}),heading:w,onClose:y,subText:`${l?.videoCheckpointPausedAt||"Paused at"} ${k}`,children:(0,n.jsx)("div",{className:Hc("blocks"),"data-testid":"video-checkpoint-content",children:R.length===0?(0,n.jsx)("p",{className:Hc("empty"),children:l?.videoCheckpointNoContent||"No content added to this checkpoint."}):R.map((E,j)=>(0,n.jsx)(Yp,{animateBlockEntrance:t,block:{...E,blockId:E.id},color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,hideBlock:!1,index:j,isLastBlock:j===R.length-1,labels:l,lessonId:d,lessonProgress:h,loadMedia:m,match:S,onContinue:vs,partnerContent:v,prefersKeyboardNavigation:C,previewType:g},`checkpoint-overlay-${E.id}`))})})}const px=(e,t,s)=>{ys(Y3({event:e,properties:{checkpoint_id:t.checkpoint.id,checkpoint_time:vo(t),lesson_id:s}}))};function Jle(e,t){const s=(0,u.useRef)(null),[o,r]=(0,u.useState)(null),a=(0,u.useRef)([]),i=(0,u.useMemo)(()=>Yle(e),[e]),c=(0,u.useCallback)(h=>{s.current?.seekToTime?.(vo(h)),s.current?.pause?.(),r(h),px("Video Checkpoint Viewed",h,t)},[t]),l=(0,u.useCallback)(h=>{px("Video Checkpoint Completed",h,t);const m=a.current.shift();if(m!=null){c(m);return}r(null),s.current?.play?.()},[t,c]);return{contextValue:(0,u.useMemo)(()=>({checkpointMarkerTimes:i,setVideoPlayerRef:h=>{s.current=h},onCheckpointReached:h=>{const m=e.filter(C=>vo(C)===h);if(m.length===0)return;const[p,...v]=m;a.current=v,c(p)}}),[i,e,c]),activeCheckpointGroup:o,handleCheckpointCompleted:l}}function ede({animateBlockEntrance:e,checkpointGroups:t,children:s,color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,labels:l,lessonId:d,lessonProgress:h,loadMedia:m,partnerContent:p,prefersKeyboardNavigation:v,previewType:C}){const{contextValue:g,activeCheckpointGroup:x,handleCheckpointCompleted:S}=Jle(t,d);return(0,n.jsxs)(VJ,{value:g,children:[s,t.length>0&&(0,n.jsx)(qle,{activeGroup:x,animateBlockEntrance:e,checkpointGroups:t,color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,labels:l,lessonId:d,lessonProgress:h,loadMedia:m,onCheckpointCompleted:S,partnerContent:p,prefersKeyboardNavigation:v,previewType:C})]})}const tde=ede;function sde(e){const{inlineBlocks:t,checkpointGroups:s}=(0,u.useMemo)(()=>Xle(e.blocks),[e.blocks]);return(0,n.jsx)(tde,{...e,checkpointGroups:s,children:(0,n.jsx)(qp,{...e,blocks:t})})}const nde=sde,fx=z("blocks-lesson-restart-button"),ode=({className:e,onClick:t})=>{const s=fx.mix(e);return(0,n.jsx)("button",{className:s,onClick:t,type:"button",children:(0,n.jsx)(ie,{classNameIcon:fx("icon"),name:"arrow-rotate-left"})})},rde=z("lesson-one-page-scroll"),ade=({previewType:e,prefersKeyboardNavigation:t,lessonProgress:s})=>{const o=(0,u.useRef)(null),[r,a]=(0,u.useState)(!1),{lessons:i,...c}=re(),{lmsOptions:l}=c,d=ia(),h=xe(),m=os(),p=i?.[0],v=p?.type==="blocks"?p:void 0,C=p?.id??"",g=Sr(),x=v?.items??[],S=s?.type==="blocks"?s:void 0,L=C0(c),b=x0(c),y=L?nde:qp,T=s?.isComplete&&!0&&!L&&!b,k=s?.isComplete&&!1,N=c?.exportSettings?.webExportSettings,I=!Mn.isInstantLink&&(l?.disableCoverPage||N?.disableCoverPage),w=(0,u.useCallback)(()=>{r||(I?o.current?.scrollTo({top:0,behavior:Ds()?"instant":"smooth"}):(a(!0),ho(()=>{m("/")},"lesson-to-one-page-cover-continuous").finally(()=>{a(!1)})))},[m,I,r]);return(0,n.jsx)("div",{className:rde(),children:(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,n.jsx)("div",{className:"page","data-page":!0,children:(0,n.jsx)("div",{className:"page__wrapper page__wrapper--white",children:(0,n.jsxs)(Au,{children:[(0,n.jsx)($7,{}),(0,n.jsx)("div",{className:"page__content",children:(0,n.jsx)(jr,{title:void 0,children:(0,n.jsxs)("div",{"data-lesson-id":p?.id,children:[(0,n.jsx)(y,{animateBlockEntrance:c?.animateBlockEntrance,blocks:x,className:void 0,color:c?.color,courseTitle:d,enableVideoPlaybackSpeed:c?.enableVideoPlaybackSpeed,handleNavigate:void 0,handleStorylineFullscreen:void 0,isLessonEntering:void 0,isLessonExiting:void 0,labels:h,lessonId:C,lessonProgress:S,loadMedia:!0,nextLesson:void 0,partnerContent:g,prefersKeyboardNavigation:t,previewType:e}),T&&(0,n.jsx)(ode,{className:void 0,onClick:w}),k&&(0,n.jsx)(df,{lessonId:C})]})})})]})})})})})},gx=z("microlearning-progress-summary"),ide=z("page-wrap"),cde=({course:e,courseProgress:t,isStepped:s,lesson:o})=>{const r=(0,u.useRef)(),a=(0,u.useRef)(),[i,c]=(0,u.useState)(!1),l=gx("content",{stepped:s,mounted:i}).toString();return(0,Wd.A)(()=>{const d=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:d}),c(!0)}),(0,n.jsxs)("div",{className:ide(),id:"page-wrap",ref:r,children:[(0,n.jsx)(uf,{className:gx("previous").toString(),lessonId:o?.id,ref:a}),(0,n.jsx)(u7,{contentClassName:l,course:e,courseProgress:t})]})},lde=({isProgressSummary:e,lessonProgress:t})=>{const s=re(),o=Ro(),{prefersKeyboardNavigation:r}=Yi(),{previewType:a}=Im(),i=s?.theme?.blockNavigationType===ol.STEPPED;return e?(0,n.jsx)(cde,{course:s,courseProgress:o,isStepped:i}):i?(0,n.jsx)(Vle,{lessonProgress:t,prefersKeyboardNavigation:r,previewType:a}):(0,n.jsx)(ade,{lessonProgress:t,prefersKeyboardNavigation:r,previewType:a})};var dde=f(82920);function vx(){const e=ut();return dde.useMemo(()=>({advanceQuizLessonToEnd:t=>e(QN(t)),submitQuizAnswer:t=>e(G0(t)),setQuizLessonTimeRemaining:t=>e(YN(t))}),[e])}const Cx=-1,ude="MULTIPLE_CHOICE";function hde({allowedRetries:e,currentRetries:t}){return e===Cx?!1:t>=e}function mde({lesson:e,lessonProgress:t,getL10nRecursive:s,quizActions:o,reportAnswer:r}){if(!e||!e1(e))return;const a=e.settings??{},i=a.passToContinue??!1,c=Number(a.retryCount??Cx),l=Object.values(t?.items??{}).filter(d=>!d.isComplete);if(l.length>0){const d=t?.retryAttempts??0,h=hde({allowedRetries:c,currentRetries:d});l.forEach(m=>{const p=Eae({lesson:e,question:m});if(!p)return;const v=p.type||ude,C=s({duration:{startTime:0,stopTime:0},id:e.id,isCorrect:!1,isUnfinished:!0,item:{id:String(p.id||""),title:String(p.title||""),type:v},itemProgress:m,retryAttempts:d,title:e.title});r(C),o.submitQuizAnswer({finalRetryAttempt:h,isCorrect:!1,itemId:m.id,lessonId:e.id,passToContinue:i})})}o.advanceQuizLessonToEnd(e.id)}var pde=f(82920);function fde({lesson:e,lessonProgress:t,getL10nRecursive:s}){const o=vx();return pde.useCallback(()=>{mde({lesson:e,lessonProgress:t,getL10nRecursive:s,quizActions:o,reportAnswer:eg})},[e,t,s,o])}var xx=f(82920);function gde({children:e}){const t=Ro(),s=gl(),o=Vt(s),r=Po(s),a=Gv(),{setQuizLessonTimeRemaining:i}=vx(),c=xx.useMemo(()=>r??{},[r]),l=fde({lesson:o,lessonProgress:c,getL10nRecursive:a}),d=xx.useMemo(()=>Vv(o)?o.settings:void 0,[o]),h=!!d?.timer,m=d?.timerDuration;return(0,n.jsx)(Rie,{courseProgress:t,currentLessonId:s,handleExpiredQuiz:l,isTimedQuiz:h,setQuizLessonTimeRemaining:i,timerDuration:m,children:e})}var vde=f(82920);const Cde=960,pf=z("transcript-panel"),xde=e=>{const{currentLocale:t}=ct();return(0,u.useMemo)(()=>e?"mondrianTranscript"in e?typeof e.mondrianTranscript=="string"?e.mondrianTranscript:(t?e.mondrianTranscript[t]:void 0)??e.mondrianTranscript.default:"tmp"in e&&e.tmp?.audio?.transcript||e.audio?.transcript:null,[e,t])};function bde({enhancedLabels:e,lessonId:t,questionBankActiveIndex:s}){const o=ut(),{audioPlayerIdOpen:r,focusing:a,refocusTarget:i,transcriptMedia:c}=cc(),l=!!r,d=(0,u.useId)(),h=he(_=>t?ji(t,_):null),p=t?.startsWith("question-bank-")?s:h?.type==="quiz"?h.activeIndex:void 0,v=kt(Cde),[C,g]=(0,u.useState)(0),[x,S]=(0,u.useState)(!1),[L,b]=(0,u.useState)(!1),y=(0,u.useRef)(!1),T=(0,u.useRef)(null),k=(0,u.useRef)(null),N=(0,u.useRef)(c),I=(0,u.useRef)(t),w=(0,u.useRef)(p),R=xe()||e,E=(0,u.useRef)(null),j=(0,u.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),O=(0,u.useCallback)(_=>{const $=j.current.panelHeight,Q=performance.now();b(!0);const Y=q=>{const J=q-Q,ee=Math.min(J/300,1),te=1-Math.pow(1-ee,3),se=$+(_-$)*te;g(se),j.current.panelHeight=se,ee<1?requestAnimationFrame(Y):(b(!1),S(!1),j.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(Y)},[S,b,g]),A=(0,u.useCallback)(_=>{const{startTime:D,startY:$,startHeight:Q}=j.current;if(!v||$===null)return;const Y=$-(_?.clientY??_?.touches?.[0]?.clientY??0),q=Q+Y;if(g(q),j.current.panelHeight=q,D!==null){const J=performance.now()-D,ee=Y/J;j.current.velocity=ee}},[v]),P=(0,u.useCallback)(_=>{const{velocity:D}=j.current;if(!D)return;Object.assign(j.current,{startY:null,startHeight:null,startTime:null}),S(!1);const $=window.innerHeight*.66;let Q;Math.abs(D)>.5?Q=D>0?window.innerHeight:150:Q=C>=$?window.innerHeight:150,O(Q),_ instanceof MouseEvent&&(window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",P))},[O,C,A]),M=(0,u.useCallback)(_=>{!v||k.current.contains(_.target)||T.current.contains(_.target)||(Object.assign(j.current,{startY:_?.clientY??_?.touches?.[0]?.clientY??null,startHeight:E.current?.clientHeight??0,startTime:performance.now()}),S(!0),_.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",A),window.addEventListener("mouseup",P)))},[A,P,v,S]);(0,u.useEffect)(()=>{let _;const D=()=>{E?.current?.style&&(E.current.style.transition="none",E.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Y=>{Y.style.transition="none"}))},$=()=>{clearTimeout(_),_=setTimeout(()=>{E?.current?.style&&(E.current.style.transition="",E.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Y=>{Y.style.transition=""}))},200)};return window.addEventListener("resize",D),window.addEventListener("resize",$),()=>{window.removeEventListener("resize",D),window.removeEventListener("resize",$),clearTimeout(_)}},[]),(0,u.useEffect)(()=>{!l&&y.current&&g(0),a&&l&&E.current&&(E.current.focus(),o(Mm({audioPlayerId:r,focusing:!1}))),y.current=l},[r,o,a,l]),(0,u.useEffect)(()=>{l&&c!==N.current&&(N.current=c)},[l,c]),(0,u.useEffect)(()=>{l&&I.current!==t&&o(lc()),I.current=t},[t,l,o]),(0,u.useEffect)(()=>{l&&w.current!==p&&w.current!==void 0&&o(lc()),w.current=p},[p,l,o]);const F={role:"button",tabIndex:0,onMouseDown:M,onTouchStart:M,onTouchEnd:P,onTouchMove:A},[B,H]=vde.useState(!1),V=Oe(B?N.current:c),K=xde(V);let U;l&&(U=Om(r));const X=(0,u.useCallback)(()=>{const _=i??document.getElementById(BC(r));return _?(_.focus(),!0):!1},[r,i]),oe=(0,u.useCallback)(_=>{_.stopPropagation(),_.preventDefault(),o(lc()),X()},[o,X]),Z=(0,u.useCallback)(_=>{r&&_.key==="Escape"&&oe(_)},[r,oe]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Yn,{classNames:"transcript-panel",in:l,nodeRef:E,onEnter:()=>H(!1),onEntered:()=>H(!1),onEntering:()=>H(!1),onExit:()=>H(!0),onExited:()=>H(!1),onExiting:()=>H(!0),timeout:300,unmountOnExit:!0,children:(0,n.jsxs)("section",{"aria-hidden":!l,"aria-labelledby":d,className:G()(pf({isOpen:l,isAnimatingMobileSwipe:L,isDragging:x})),id:U,onKeyDown:Z,ref:E,style:v&&l?{height:`${C/10}rem`,minHeight:C>0?"33vh":void 0}:{},tabIndex:-1,children:[(0,n.jsxs)("header",{...v?F:{},children:[(0,n.jsx)("h3",{id:d,ref:T,children:R?.audioTranscript}),(0,n.jsx)(vn.ArcButton,{"aria-label":R?.audioHideTranscript,className:pf("close-button"),hierarchy:"tertiary",icon:(0,n.jsx)(ie,{name:"close"}),layout:"icon",onClick:oe,ref:k})]}),(0,n.jsx)("section",{className:pf("transcript-text",{"not-available":!K}),children:K||R?.audioNoTranscriptAvailable})]})})})}var Fc=f(82920);const bx={FORWARD:"page-transition",BACK:"page-transition-back"},_u=({id:e,lessons:t})=>e==="progress-summary"?1/0:t.findIndex(s=>s.id===e),yde=e=>{window.parent.postMessage({type:"preview:lessonChange",data:e},"*")};function Lde({currentLessonId:e,lessons:t,isProgressSummary:s}){const o=os(),r=Fc.useRef(!1),a=Fc.useRef(e),i=Fc.useCallback(()=>r.current?bx.FORWARD:bx.BACK,[]),c=Fc.useCallback(l=>{const d=_u({id:l,lessons:t});if(s)r.current=!1;else if(l==="progress-summary")r.current=!0;else{const h=_u({id:e,lessons:t});r.current=h<d}o(`/lessons/${encodeURIComponent(l)}`)},[o,t,s,e]);return Fc.useEffect(()=>{const l=_u({id:e,lessons:t}),d=_u({id:a.current,lessons:t});l!==d&&t.length>0&&(r.current=d<l),a.current=e,yde(e)},[e,t]),{getNavigateDirection:i,handleNavigate:c}}const yx=()=>{const e=re(),t=Ro(),s=e?.lessons??[],o=(0,je.g)(),r=(0,je.zy)(),[a]=(0,je.ok)(),i=a.get("embed")==="lesson-only",c=!1,l=a.get(AC),d=o.id;(0,u.useEffect)(()=>{!l||!d||window.dispatchEvent(new CustomEvent(Ze,{detail:{lessonId:d,itemId:l,path:["lessons",{id:d},"items",{id:l}],align:"start"}}))},[d,l]);const h=(0,u.useRef)(null),m=kt(480),{getNavigateDirection:p,handleNavigate:v}=Lde({currentLessonId:o.id,lessons:s,isProgressSummary:c}),C=To(e),g=(0,u.useCallback)(()=>{C||(e.theme?.hideLessonHeaders?document.querySelector("main"):document.querySelector("h1"))?.focus({preventScroll:!0})},[e,C]),x=G()("lesson",{"lesson--preview":i}),S=ut(),L=(0,u.useCallback)(({item:I,refs:w})=>{if(!I)return;const R="media"in I?I.media:null;S(OC({audioPlayerId:yn({refs:w}),transcriptMedia:R}))},[S]),b=(0,u.useCallback)(()=>{S(lc())},[S]),y=(0,u.useCallback)(I=>{S(Mm(I))},[S]),T=Po(o.id),k=(0,u.useMemo)(()=>T??{},[T]),N=(0,u.useMemo)(()=>({handleNavigate:v,handleStorylineFullscreen:vs,isMobileHeader:m,isProgressSummary:c,lessonProgress:k,navigateDirection:p,onNavigateTransitionEnd:vs,onPageReady:g}),[p,g,v,m,c,k]);return(0,n.jsxs)(gde,{children:[(0,n.jsxs)("div",{className:"page-lesson-wrap",children:[!C&&(0,n.jsx)(B$,{}),(0,n.jsx)("div",{className:"page-lesson",children:(0,n.jsxs)(OW,{children:[(0,n.jsx)(PW,{closeTranscript:b,mode:"readonly",onTranscriptUpdate:y,openTranscript:L,children:(0,n.jsx)("div",{className:x,"data-lesson":!0,ref:h,children:(0,n.jsx)("div",{className:"lesson__content",children:(0,n.jsx)("div",{className:"page-view page-view--visible",children:(0,n.jsx)(iQ,{isLessonOnlyEmbed:i,children:C?(0,n.jsx)(lde,{isProgressSummary:c,lessonProgress:k}):(0,n.jsx)(Wce,{isLessonOnlyEmbed:i,children:(0,n.jsx)(Tce,{...N},r.pathname)})})})})})}),(0,n.jsx)(bde,{lessonId:t?.currentLesson?.toString()})]})})]}),(0,n.jsx)(Pm,{onClose:g})]})};function Sde(){const e=re(),t=vC(e),s=CC(e);return(0,n.jsxs)(je.BV,{children:[(0,n.jsx)(je.qh,{element:(0,n.jsx)(yx,{}),path:"/lessons/:id"}),t?(0,n.jsx)(je.qh,{element:(0,n.jsx)(je.C5,{replace:!0,to:Gs(s)}),index:!0}):(0,n.jsx)(je.qh,{element:(0,n.jsx)(wC,{}),index:!0}),t?(0,n.jsx)(je.qh,{element:(0,n.jsx)(je.C5,{replace:!0,to:Gs(s)}),path:"/:mode"}):(0,n.jsx)(je.qh,{element:(0,n.jsx)(wC,{}),path:"/:mode"})]})}const ff=z("one-page-cover-info");function Tde({htmlIdTitle:e}){const t=Sa("title");return(0,n.jsxs)("div",{className:ff(),"data-change-path":t,children:[(0,n.jsx)(z7,{className:ff("title").toString(),htmlId:e}),(0,n.jsx)(V7,{className:ff("authors").toString()})]})}const kde=De("OnePageCoverInfo",Tde),Uu=z("one-page-cover"),Nde=z("cover");function Ide({previewType:e}={}){const t=(0,u.useRef)(null),s=(0,u.useRef)(null),o=(0,u.useRef)(!1),r=os(),a=he(Ps),i=Ej(a),c=(0,u.useCallback)(()=>{const I=i?.id;return I?Gs(I):null},[i?.id]),l=(0,u.useCallback)(()=>{const I=c();if(I!=null){const R=a?.theme?.blockNavigationType===ol.STEPPED?"one-page-cover-to-lesson-stepped":"one-page-cover-to-lesson-continuous";ho(()=>{r(I)},R)}},[a?.theme?.blockNavigationType,c,r]),d=(0,u.useRef)(l);d.current=l;const h=(0,u.useRef)(e);h.current=e;const m=(0,u.useCallback)(()=>{s.current?.focus?.()},[]);(0,u.useEffect)(()=>{f9(),s.current?.focus?.()},[]),(0,u.useEffect)(()=>{const I=w=>{(w.key==="ArrowDown"||w.key==="ArrowRight")&&!o.current&&(o.current=!0,document.removeEventListener("keyup",I),d.current())};return document.addEventListener("keyup",I),()=>document.removeEventListener("keyup",I)},[]),(0,u.useEffect)(()=>{const I=w=>{uc(h.current)||o.current||w.deltaY>100&&(o.current=!0,document.removeEventListener("wheel",I,{passive:!0}),d.current())};return document.addEventListener("wheel",I,{passive:!0}),()=>document.removeEventListener("wheel",I,{passive:!0})},[]);const p=(0,u.useCallback)(I=>{!t.current?.contains?.(I.target)&&!o.current&&(o.current=!0,l())},[l]),v=(0,u.useCallback)(I=>{I.preventDefault(),o.current||(o.current=!0,l())},[l]),C=a?.coverPageType===ce.WHITE,g=a?.coverPageType===ce.VIDEO,x=a?.coverPageType===ce.IMAGE,S=a?.coverPageType===ce.ACCENT,L=a?.theme?.blockNavigationType===ol.STEPPED,b=a?.theme?.coverImageColor??it.DARK,y="title",k=`overlay-${b?.toLowerCase()}`,N=Uu("wrapper",{[k]:x,accent:S,image:x,white:C||g,video:g}).mix(Nde("header-content"));return(0,n.jsxs)(zd,{onSwipeUp:l,children:[(0,n.jsxs)("main",{className:N,ref:s,tabIndex:"-1",children:[(0,n.jsx)(kde,{htmlIdTitle:y}),L&&(0,n.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,n.jsx)("div",{className:Uu("start-wrapper"),onClick:p,children:(0,n.jsx)(ls,{"aria-label":"Start",className:Uu("start-link"),onClick:v,ref:t,to:c(),children:(0,n.jsx)(ie,{className:Uu("start-icon"),name:"arrow-down"})})}),x&&(0,n.jsx)(nm,{})]}),(0,n.jsx)(Pm,{onClose:m})]})}const Lx=Ide;function Ede(){const e=re(),t=EG(e),s=CC(e),o=Zr(e),r=cx(),a=o&&r>0,i=()=>{const c=window.location.hash.split("?")[1],l=new URLSearchParams(c||"");return l.set("slide",String(r)),`${Gs(s)}?${l}`};return(0,n.jsxs)(je.BV,{children:[(0,n.jsx)(je.qh,{element:(0,n.jsx)(yx,{}),path:"/lessons/:id"}),t||a?(0,n.jsx)(je.qh,{element:(0,n.jsx)(je.C5,{replace:!0,to:a?i():Gs(s)}),index:!0}):(0,n.jsx)(je.qh,{element:(0,n.jsx)(Lx,{}),index:!0}),t||a?(0,n.jsx)(je.qh,{element:(0,n.jsx)(je.C5,{replace:!0,to:a?i():Gs(s)}),path:"/:mode"}):(0,n.jsx)(je.qh,{element:(0,n.jsx)(Lx,{}),path:"/:mode"})]})}function jde(){return Qv()?(0,n.jsx)(Ede,{}):(0,n.jsx)(Sde,{})}const gf=z("not-found"),wde=()=>(0,n.jsx)(jr,{title:rc(),children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:gf(),children:(0,n.jsxs)("div",{className:gf("copy"),children:[(0,n.jsx)("h1",{className:gf("copy",{heading:!0}),tabIndex:-1,children:"Hmm..."}),(0,n.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});var Co=f(82920);const zr=z("share-password-dialog");function Ade({failAttempt:e,onSubmit:t}){const s=he(h1),o=Co.useRef(null),r=Co.useRef(null),[a,i]=Co.useState(!1),c=Co.useRef(!1),{announceAssertive:l}=An();Co.useEffect(()=>{r.current?.showModal()},[]),Co.useEffect(()=>{e&&!c.current&&(i(!0),l("Incorrect password. Please try again.")),c.current=e},[l,e]),Co.useEffect(()=>{const p=r.current;if(!p)return;const v=()=>i(!1);return p.addEventListener("animationend",v),()=>{p.removeEventListener("animationend",v)}},[]);const d=Co.useCallback(p=>{p.preventDefault(),o.current&&t(o.current)},[t]),h=Co.useCallback(p=>{p.preventDefault()},[]),m=s?"You need a password to view this microlearning. If you don\u2019t know it, ask the person who shared this with you.":"You need a password to view this course. If you don\u2019t know it, ask the person who shared this with you.";return(0,n.jsxs)("dialog",{"aria-describedby":"share-password-instructions share-password-constraint","aria-labelledby":"share-password-title",className:`${zr({shaking:a})} brand--border`,onCancel:h,ref:r,children:[(0,n.jsx)("h1",{className:zr("heading"),id:"share-password-title",children:"Enter Password"}),(0,n.jsx)("p",{className:zr("instructions"),id:"share-password-instructions",children:m}),(0,n.jsx)("p",{className:"visually-hidden-always",id:"share-password-constraint",children:"This dialog requires a password to proceed and cannot be dismissed."}),(0,n.jsxs)("form",{onSubmit:d,children:[(0,n.jsx)("label",{className:zr("label"),htmlFor:"share-password",children:"password"}),(0,n.jsx)("input",{className:zr("input"),id:"share-password",ref:o,type:"password"}),(0,n.jsx)("div",{className:zr("toolbar"),children:(0,n.jsx)("button",{className:`${zr("button")} brand--background`,type:"submit",children:"View"})})]})]})}const Rde=Ade;function Pde(){const e=ml();(0,u.useEffect)(()=>{window.targetMode=VB({locale:fC(e)})},[e]),(0,u.useEffect)(()=>{window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:Ts.STATUS,data:!!window.targetMode},"*"),cJ(s=>ys(dE(s)))},[]);const t=(0,u.useRef)(!1);(0,u.useEffect)(()=>{t.current||!e||!kT()||(t.current=!0,window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e.defaultLocale,locales:e.locales?.map(({locale:s})=>s)}}))},[e]),(0,u.useEffect)(()=>{const s=()=>ys(Bk()),o=()=>ys(Dk()),r=()=>window.parent.postMessage("coursePreviewIframeClicked","*");return uv("favoriteAdded",s),uv("favoriteRemoved",o),document.addEventListener("click",r),()=>{hv("favoriteAdded",s),hv("favoriteRemoved",o),document.removeEventListener("click",r)}},[])}const Gu=document.createElement("style");Gu.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 Mde(){(0,u.useEffect)(()=>(Gu.parentElement!==document.head&&document.head.prepend(Gu),()=>{Gu.remove()}),[])}function Ode(e){return e.status}function Sx(){return he(Ode)}function Bde({enabled:e=!0,onAuthorized:t,onError:s,onUnauthorized:o,password:r}){const a=ut();(0,u.useEffect)(()=>{e&&(a(MN({onAuthorized:t,onError:s,onUnauthorized:o,password:r})),a(lE()))},[a,e,t,s,o,r])}function Dde(){const e=ut(),{courseLoaded:t,coverLoaded:s}=Sx(),o=he(i=>i.course?.coverImage?.media),r=ht(o),a=(0,u.useCallback)(()=>{e(_k(!0))},[e]);(0,u.useEffect)(()=>{if(t&&!s){const i=r?.image,{key:c,src:l}=i||{};if(c||l){const d=c?mt(i):l,h=setTimeout(a,5e3),m=new Image;return m.src=d,m.onload=()=>{clearTimeout(h),a()},()=>{clearTimeout(h),m.onload=null}}else a()}},[t,s,r,a])}function Hde(e={}){Bde(e),Dde();const t=ut(),s=pC(),o=he(p=>p.courseLabels.labels),{courseLoaded:r,coverLoaded:a,fatalError:i,fontsLoaded:c,notFound:l,partnerContentLoaded:d}=Sx(),h=(0,Be.A)(r),m=r&&c&&a&&d;return(0,u.useEffect)(()=>{!h&&r&&!c&&(s??[]).length>0&&t(wI(s))},[t,h,r,c,s]),(0,u.useEffect)(()=>{if(!m||window.parent===window)return;window.parent.postMessage({type:"course:ready"},window.location.origin);const p=v=>{v.key==="Escape"&&window.parent.postMessage({type:"preview:escape"},window.location.origin)};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[m]),{isLoaded:!!m,notFound:!!l,fatalError:!!i,curtainLabels:o}}function Fde({course:e}){const[t,s]=(0,u.useState)(!0),[o,r]=(0,u.useState)(!1),a=e&&"hasPassword"in e?!!e.hasPassword:!1,i=!!(t&&X2()&&e&&!eB(e)&&(a||q2())),c=(0,u.useCallback)(l=>(r(!1),NT(l.value).then(({isValid:d})=>{d?s(!1):(l.value="",r(!0),s(!0))}).catch(d=>console.error("Verify password error",d))),[]);return{showPasswordDialog:i,failAttempt:o,onSharePasswordSubmit:c}}function Vde(){return hG(),Mde(),(0,n.jsx)(BG,{children:(0,n.jsx)(zde,{})})}function zde(){return(0,n.jsx)(RB,{children:(0,n.jsx)($de,{})})}function $de(){const{enabled:e,isActive:t,onAuthorized:s,onError:o,onUnauthorized:r,password:a}=AB(),{isLoaded:i,notFound:c,fatalError:l,curtainLabels:d}=Hde({enabled:e,onAuthorized:t?s:void 0,onError:t?o:void 0,onUnauthorized:t?r:void 0,password:t?a:void 0}),h=re(),m=Qv(),p=uG();Pde();const{showPasswordDialog:v,failAttempt:C,onSharePasswordSubmit:g}=Fde({course:h}),x=!t&&v;if(c)return(0,n.jsx)(wde,{});if(!i)return(0,n.jsx)(R3,{labels:d,status:l?"fatalError":"loading"});if(x)return(0,n.jsx)(Rde,{failAttempt:C,onSubmit:g});if(!h)return null;const{themeId:S}=h,L=G()("theme",S,{"one-page":m});return(0,n.jsx)(zw,{appType:"learn",children:(0,n.jsx)(NG,{children:(0,n.jsx)(yG,{children:(0,n.jsx)(wB,{children:(0,n.jsx)(nG,{themeId:S,children:(0,n.jsx)(H1,{children:(0,n.jsx)(dG,{children:(0,n.jsxs)("div",{className:L,id:"innerApp",ref:PB,children:[(0,n.jsx)(CG,{...p}),(0,n.jsx)(iB,{children:(0,n.jsxs)(jr,{title:void 0,children:[(0,n.jsx)(jde,{}),(0,n.jsx)(Vw,{})]})})]})})})})})})})})}function _de({children:e}){return(0,n.jsx)($Q,{ImageEagerOrLazy:Zm,children:e})}var Tx;const kx={"rise-course-navigation":!0},Ude={"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,"rise-ai-avatar-prompt-testing":!1,"rise-com-360-upsell":!0,"ai-quiz-generation-toggle-prototype":!1,"ai-concept-to-course-images-disabled-override":!1},vf=(0,u.createContext)(kx);vf.displayName="FeatureFlagsContext";const{Provider:Gde}=vf;function Wde({children:e,value:t}){const s=(0,u.useMemo)(()=>({...Ude,...t,...kx}),[t]);return(0,n.jsx)(Gde,{value:s,children:e})}function Cf(){return(0,u.useContext)(vf)}function Kde(e){return Cf()[e]}function U5e(e){function t(s){const o=Cf();return Tx(e,{...s,flags:o})}return t.displayName=`withFeatureFlags(${e.displayName||e.name})`,t}function G5e(e,t){return function(s){const o=r=>{const a=Kde(e),i={...r,[t]:a};return Tx(s,{...i})};return o.displayName=`withFeatureFlag(${s.displayName||s.name})`,o}}const Nx=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});Nx.displayName="On";const Ix=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});Ix.displayName="Off";const Wu=({children:e,featureFlags:t})=>{const s=Cf(),o=(0,u.useMemo)(()=>{const i=[].concat(t??[]);return i.length&&i.every(c=>s[c])},[t,s]),{on:r=null,off:a=null}=(0,u.useMemo)(()=>{const i={};return u.Children.forEach(e,c=>{switch(c.type.displayName){case Wu.On.displayName:i.on=c;break;case Wu.Off.displayName:i.off=c;break;default:i.on=e}}),i},[e]);return o?r:a};Wu.On=Nx,Wu.Off=Ix;const Qde={};function Zde({children:e}){const s=re()?.features??Qde;return(0,n.jsx)(Wde,{value:s,children:e})}const Ex=document.getElementById("app");if(!Ex)throw new Error("Root element #app not found");(0,jx.createRoot)(Ex).render((0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(SE,{store:Ov,children:(0,n.jsx)(_de,{children:(0,n.jsx)(NE,{children:(0,n.jsx)(Zde,{children:(0,n.jsx)(je.I9,{useTransitions:!1,children:(0,n.jsx)(je.BV,{children:(0,n.jsx)(je.qh,{element:(0,n.jsx)(Vde,{}),path:"/*"})})})})})})})}))},31926($c,ii,f){const Yo={"./en-au":52378,"./en-au.js":52378,"./en-ca":44232,"./en-ca.js":44232,"./en-gb":63301,"./en-gb.js":63301,"./en-ie":17282,"./en-ie.js":17282,"./en-il":70761,"./en-il.js":70761,"./en-in":43623,"./en-in.js":43623,"./en-nz":99308,"./en-nz.js":99308,"./en-sg":56270,"./en-sg.js":56270};function xo(zs){const bo=$r(zs);return f(bo)}function $r(zs){if(!f.o(Yo,zs)){const bo=new Error("Cannot find module '"+zs+"'");throw bo.code="MODULE_NOT_FOUND",bo}return Yo[zs]}xo.keys=function(){return Object.keys(Yo)},xo.resolve=$r,$c.exports=xo,xo.id=31926},38954(){}}]);
