@clickview/streamable-learning 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{999-streamable-learning-6ffd6ea55a.chunk.css → 5003-streamable-learning-b38d2ddbbe.chunk.css} +2 -3
- package/dist/css/{streamable-learning-ff2b622d70.css → streamable-learning-dd0c1095d5.css} +2 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1269-8170bb766e-streamable-learning.chunk.js +2 -0
- package/dist/scripts/{1457-615bda4d16-streamable-learning.chunk.js → 1457-836d537d71-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{3186-9ded9c4ee8-streamable-learning.chunk.js → 3186-d1a6ccffde-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/3322-10050fa868-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{4254-f3f34acc63-streamable-learning.chunk.js → 4254-bddb032519-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/4951-df701c6a8d-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5003-b30fdd96e6-streamable-learning.chunk.js +2 -0
- package/dist/scripts/5212-39e4b02cbb-streamable-learning.chunk.js +2 -0
- package/dist/scripts/{6979-6fffeca793-streamable-learning.chunk.js → 6979-ef9a3931a2-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/{7347-d429c9be75-streamable-learning.chunk.js → 7347-49d1a18d3b-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/7570-fba1ab7c45-streamable-learning.chunk.js +2 -0
- package/dist/scripts/8496-9c73c4dcb7-streamable-learning.chunk.js +2 -0
- package/dist/scripts/8601-709123e64a-streamable-learning.chunk.js +1 -0
- package/dist/scripts/8819-2a50dd6a9b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{9766-19226a0faa-streamable-learning.chunk.js → 9766-f64bf6f003-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/{9842-9643a38d47-streamable-learning.chunk.js → 9842-dd5d85c9e3-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/bundle-68f2acccc5.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/3322-7380367b8e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4951-4fadd0a4e3-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5155-404cbf5d81-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5212-da42d2c902-streamable-learning.chunk.js +0 -2
- package/dist/scripts/6856-012ec61ca6-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7570-f9114ba9ef-streamable-learning.chunk.js +0 -2
- package/dist/scripts/8496-6c749f822b-streamable-learning.chunk.js +0 -2
- package/dist/scripts/8601-0bc0d3340c-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8946-9b41fa1dee-streamable-learning.chunk.js +0 -1
- package/dist/scripts/999-c0994e758e-streamable-learning.chunk.js +0 -2
- package/dist/scripts/bundle-429bc74f5f.min.js +0 -2
- package/dist/css/{6856-streamable-learning-a12c4ebc99.chunk.css → 1269-streamable-learning-a12c4ebc99.chunk.css} +0 -0
- package/dist/css/{5212-streamable-learning-266b0b5d0b.chunk.css → 5212-streamable-learning-2605302fc2.chunk.css} +1 -1
- /package/dist/scripts/{5212-da42d2c902-streamable-learning.chunk.js.LICENSE.txt → 1269-8170bb766e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3057-4310511056-streamable-learning.chunk.js → 3057-58d4e05af1-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{3838-3bccb5f2a8-streamable-learning.chunk.js → 3838-d64b6c347a-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{6856-012ec61ca6-streamable-learning.chunk.js.LICENSE.txt → 5003-b30fdd96e6-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6979-6fffeca793-streamable-learning.chunk.js.LICENSE.txt → 5212-39e4b02cbb-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7570-f9114ba9ef-streamable-learning.chunk.js.LICENSE.txt → 6979-ef9a3931a2-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8496-6c749f822b-streamable-learning.chunk.js.LICENSE.txt → 7570-fba1ab7c45-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9766-19226a0faa-streamable-learning.chunk.js.LICENSE.txt → 8496-9c73c4dcb7-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{999-c0994e758e-streamable-learning.chunk.js.LICENSE.txt → 9766-f64bf6f003-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-429bc74f5f.min.js.LICENSE.txt → bundle-68f2acccc5.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[8946],{38946:(e,t,n)=>{n.d(t,{M2:()=>ce,TU:()=>pe});let s={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function r(e){s=e}const i={exec:()=>null};function l(e,t=""){let n="string"==typeof e?e:e.source;const s={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(o.caret,"$1"),n=n.replace(e,r),s},getRegex:()=>new RegExp(n,t)};return s}const o={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},a=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,c=/(?:[*+-]|\d{1,9}[.)])/,h=l(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),p=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,u=/(?!\s*\])(?:\\.|[^\[\]\\])+/,g=l(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",u).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),k=l(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,c).getRegex(),d="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",f=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,x=l("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",f).replace("tag",d).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),b=l(p).replace("hr",a).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",d).getRegex(),w={blockquote:l(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",b).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:g,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:a,html:x,lheading:h,list:k,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:b,table:i,text:/^[^\n]+/},m=l("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",a).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",d).getRegex(),y={...w,table:m,paragraph:l(p).replace("hr",a).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",m).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",d).getRegex()},$={...w,html:l("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",f).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:i,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:l(p).replace("hr",a).replace("heading"," *#{1,6} *[^\n]").replace("lheading",h).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},R=/^( {2,}|\\)\n(?!\s*$)/,S=/[\p{P}\p{S}]/u,T=/[\s\p{P}\p{S}]/u,z=/[^\s\p{P}\p{S}]/u,A=l(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,T).getRegex(),_=/(?!~)[\p{P}\p{S}]/u,P=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,I=l(P,"u").replace(/punct/g,S).getRegex(),L=l(P,"u").replace(/punct/g,_).getRegex(),C="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",B=l(C,"gu").replace(/notPunctSpace/g,z).replace(/punctSpace/g,T).replace(/punct/g,S).getRegex(),E=l(C,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,_).getRegex(),q=l("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,z).replace(/punctSpace/g,T).replace(/punct/g,S).getRegex(),v=l(/\\(punct)/,"gu").replace(/punct/g,S).getRegex(),Z=l(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),D=l(f).replace("(?:--\x3e|$)","--\x3e").getRegex(),M=l("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",D).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Q=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,N=l(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),O=l(/^!?\[(label)\]\[(ref)\]/).replace("label",Q).replace("ref",u).getRegex(),j=l(/^!?\[(ref)\](?:\[\])?/).replace("ref",u).getRegex(),G={_backpedal:i,anyPunctuation:v,autolink:Z,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:R,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:i,emStrongLDelim:I,emStrongRDelimAst:B,emStrongRDelimUnd:q,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:N,nolink:j,punctuation:A,reflink:O,reflinkSearch:l("reflink|nolink(?!\\()","g").replace("reflink",O).replace("nolink",j).getRegex(),tag:M,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:i},H={...G,link:l(/^!?\[(label)\]\((.*?)\)/).replace("label",Q).getRegex(),reflink:l(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Q).getRegex()},U={...G,emStrongRDelimAst:E,emStrongLDelim:L,url:l(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},X={...U,br:l(R).replace("{2,}","*").getRegex(),text:l(U.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},F={normal:w,gfm:y,pedantic:$},J={normal:G,gfm:U,breaks:X,pedantic:H},K={"&":"&","<":"<",">":">",'"':""","'":"'"},V=e=>K[e];function W(e,t){if(t){if(o.escapeTest.test(e))return e.replace(o.escapeReplace,V)}else if(o.escapeTestNoEncode.test(e))return e.replace(o.escapeReplaceNoEncode,V);return e}function Y(e){try{e=encodeURI(e).replace(o.percentDecode,"%")}catch{return null}return e}function ee(e,t){const n=e.replace(o.findPipe,(e,t,n)=>{let s=!1,r=t;for(;--r>=0&&"\\"===n[r];)s=!s;return s?"|":" |"}).split(o.splitPipe);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(o.slashPipe,"|");return n}function te(e,t,n){const s=e.length;if(0===s)return"";let r=0;for(;r<s&&e.charAt(s-r-1)===t;)r++;return e.slice(0,s-r)}function ne(e,t,n,s,r){const i=t.href,l=t.title||null,o=e[1].replace(r.other.outputLinkReplace,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:n,href:i,title:l,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:l,text:o}}class se{options;rules;lexer;constructor(e){this.options=e||s}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:te(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t,n){const s=e.match(n.other.indentCodeCompensation);if(null===s)return t;const r=s[1];return t.split("\n").map(e=>{const t=e.match(n.other.beginningSpace);if(null===t)return e;const[s]=t;return s.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=te(e,"#");this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:te(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=te(t[0],"\n").split("\n"),n="",s="";const r=[];for(;e.length>0;){let t=!1;const i=[];let l;for(l=0;l<e.length;l++)if(this.rules.other.blockquoteStart.test(e[l]))i.push(e[l]),t=!0;else{if(t)break;i.push(e[l])}e=e.slice(l);const o=i.join("\n"),a=o.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${o}`:o,s=s?`${s}\n${a}`:a;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(a,r,!0),this.lexer.state.top=c,0===e.length)break;const h=r.at(-1);if("code"===h?.type)break;if("blockquote"===h?.type){const t=h,i=t.raw+"\n"+e.join("\n"),l=this.blockquote(i);r[r.length-1]=l,n=n.substring(0,n.length-t.raw.length)+l.raw,s=s.substring(0,s.length-t.text.length)+l.text;break}if("list"!==h?.type);else{const t=h,i=t.raw+"\n"+e.join("\n"),l=this.list(i);r[r.length-1]=l,n=n.substring(0,n.length-h.raw.length)+l.raw,s=s.substring(0,s.length-t.raw.length)+l.raw,e=i.substring(r.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:r,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let l=!1;for(;e;){let n=!1,s="",o="";if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let a=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],h=!a.trim(),p=0;if(this.options.pedantic?(p=2,o=a.trimStart()):h?p=t[1].length+1:(p=t[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,o=a.slice(p),p+=t[1].length),h&&this.rules.other.blankLine.test(c)&&(s+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),r=this.rules.other.fencesBeginRegex(p),i=this.rules.other.headingBeginRegex(p),l=this.rules.other.htmlBeginRegex(p);for(;e;){const u=e.split("\n",1)[0];let g;if(c=u,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),g=c):g=c.replace(this.rules.other.tabCharGlobal," "),r.test(c))break;if(i.test(c))break;if(l.test(c))break;if(t.test(c))break;if(n.test(c))break;if(g.search(this.rules.other.nonSpaceChar)>=p||!c.trim())o+="\n"+g.slice(p);else{if(h)break;if(a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(r.test(a))break;if(i.test(a))break;if(n.test(a))break;o+="\n"+c}h||c.trim()||(h=!0),s+=u+"\n",e=e.substring(u.length+1),a=g.slice(p)}}r.loose||(l?r.loose=!0:this.rules.other.doubleBlankLine.test(s)&&(l=!0));let u,g=null;this.options.gfm&&(g=this.rules.other.listIsTask.exec(o),g&&(u="[ ] "!==g[0],o=o.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:s,task:!!g,checked:u,loose:!1,text:o,tokens:[]}),r.raw+=s}const o=r.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){const t=r.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));r.loose=n}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!this.rules.other.tableDelimiter.test(t[2]))return;const n=ee(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const e of s)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(const e of r)i.rows.push(ee(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;const t=te(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ne(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ne(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(!s[3]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!s[1]&&!s[2]||!n||this.rules.inline.punctuation.exec(n))){const n=[...s[0]].length-1;let r,i,l=n,o=0;const a="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(s=a.exec(t));){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(i=[...r].length,s[3]||s[4]){l+=i;continue}if((s[5]||s[6])&&n%3&&!((n+i)%3)){o+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+o);const t=[...s[0]][0].length,a=e.slice(0,n+s.index+t+i);if(Math.min(n,i)%2){const e=a.slice(1,-1);return{type:"em",raw:a,text:e,tokens:this.lexer.inlineTokens(e)}}const c=a.slice(2,-2);return{type:"strong",raw:a,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(e),s=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&s&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}}class re{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||s,this.options.tokenizer=this.options.tokenizer||new se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:o,block:F.normal,inline:J.normal};this.options.pedantic?(t.block=F.pedantic,t.inline=J.pedantic):this.options.gfm&&(t.block=F.gfm,this.options.breaks?t.inline=J.breaks:t.inline=J.gfm),this.tokenizer.rules=t}static get rules(){return{block:F,inline:J}}static lex(e,t){return new re(t).lex(e)}static lexInline(e,t){return new re(t).inlineTokens(e)}lex(e){e=e.replace(o.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(o.tabCharGlobal," ").replace(o.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some(n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const n=t.at(-1);1===s.raw.length&&void 0!==n?n.raw+="\n":t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.at(-1).src=n.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let r=e;if(this.options.extensions?.startBlock){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach(e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r))){const i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+="\n"+s.raw,i.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(s),n=r.length!==e.length,e=e.substring(s.raw.length)}else if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const n=t.at(-1);"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(s)}else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,s=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,s.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r=!1,i="";for(;e;){let s;if(r||(i=""),r=!1,this.options.extensions?.inline?.some(n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);const n=t.at(-1);"text"===s.type&&"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,n,i)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}let l=e;if(this.options.extensions?.startInline){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startInline.forEach(e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))}),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(s=this.tokenizer.inlineText(l)){e=e.substring(s.raw.length),"_"!==s.raw.slice(-1)&&(i=s.raw.slice(-1)),r=!0;const n=t.at(-1);"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s)}else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}}class ie{options;parser;constructor(e){this.options=e||s}space(e){return""}code({text:e,lang:t,escaped:n}){const s=(t||"").match(o.notSpaceStart)?.[0],r=e.replace(o.endingNewline,"")+"\n";return s?'<pre><code class="language-'+W(s)+'">'+(n?r:W(r,!0))+"</code></pre>\n":"<pre><code>"+(n?r:W(r,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let s="";for(let t=0;t<e.items.length;t++){const n=e.items[t];s+=this.listitem(n)}const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+s+"</"+r+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+W(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let s="";for(let t=0;t<e.rows.length;t++){const r=e.rows[t];n="";for(let e=0;e<r.length;e++)n+=this.tablecell(r[e]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${W(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n),r=Y(e);if(null===r)return s;let i='<a href="'+(e=r)+'"';return t&&(i+=' title="'+W(t)+'"'),i+=">"+s+"</a>",i}image({href:e,title:t,text:n}){const s=Y(e);if(null===s)return W(n);let r=`<img src="${e=s}" alt="${n}"`;return t&&(r+=` title="${W(t)}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:W(e.text)}}class le{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class oe{options;renderer;textRenderer;constructor(e){this.options=e||s,this.options.renderer=this.options.renderer||new ie,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new le}static parse(e,t){return new oe(t).parse(e)}static parseInline(e,t){return new oe(t).parseInline(e)}parse(e,t=!0){let n="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions?.renderers?.[r.type]){const e=r,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const i=r;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let r=i,l=this.renderer.text(r);for(;s+1<e.length&&"text"===e[s+1].type;)r=e[++s],l+="\n"+this.renderer.text(r);n+=t?this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):l;continue}default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions?.renderers?.[r.type]){const e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}const i=r;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}}class ae{options;block;constructor(e){this.options=e||s}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?re.lex:re.lexInline}provideParser(){return this.block?oe.parse:oe.parseInline}}class ce{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=oe;Renderer=ie;TextRenderer=le;Lexer=re;Tokenizer=se;Hooks=ae;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)n=n.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(s=>{const r=e[s].flat(1/0);n=n.concat(this.walkTokens(r,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=n.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){const t=this.defaults.renderer||new ie(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const s=n,r=e.renderer[s],i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new se(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const s=n,r=e.tokenizer[s],i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new ae;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const s=n,r=e.hooks[s],i=t[s];ae.passThroughHooks.has(n)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>i.call(t,e));const n=r.call(t,e);return i.call(t,n)}:t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(s.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return re.lex(e,t??this.defaults)}parser(e,t){return oe.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{const s={...n},r={...this.defaults,...s},i=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===s.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);const l=r.hooks?r.hooks.provideLexer():e?re.lex:re.lexInline,o=r.hooks?r.hooks.provideParser():e?oe.parse:oe.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then(e=>l(e,r)).then(e=>r.hooks?r.hooks.processAllTokens(e):e).then(e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>o(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(i);try{r.hooks&&(t=r.hooks.preprocess(t));let e=l(t,r);r.hooks&&(e=r.hooks.processAllTokens(e)),r.walkTokens&&this.walkTokens(e,r.walkTokens);let n=o(e,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+W(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}}const he=new ce;function pe(e,t){return he.parse(e,t)}pe.options=pe.setOptions=function(e){return he.setOptions(e),pe.defaults=he.defaults,r(pe.defaults),pe},pe.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},pe.defaults=s,pe.use=function(...e){return he.use(...e),pe.defaults=he.defaults,r(pe.defaults),pe},pe.walkTokens=function(e,t){return he.walkTokens(e,t)},pe.parseInline=he.parseInline,pe.Parser=oe,pe.parser=oe.parse,pe.Renderer=ie,pe.TextRenderer=le,pe.Lexer=re,pe.lexer=re.lex,pe.Tokenizer=se,pe.Hooks=ae,pe.parse=pe,pe.options,pe.setOptions,pe.use,pe.walkTokens,pe.parseInline,oe.parse,re.lex}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 999-c0994e758e-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[999],{40451:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),i=n(28825);const r={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(i.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 ".concat(null===(n=e.theme)||void 0===n?void 0:n.border," rounded-3 d-block fw-semibold ").concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(r.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(r.label," d-flex align-items-center justify-content-center")},e.label?e.label:a.createElement(a.Fragment,null," ")),a.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return r.bodyRange;case"day":return r.bodyDay;case"month":return r.bodyMonth}}()," ").concat(r.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(r.month)},e.month)))}},42923:(e,t,n)=>{n.d(t,{V:()=>r});var a=n(32735);const i={emoji:"d86p2"};function r(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:i.emoji},e.emoji),e.children)}},34864:(e,t,n)=>{n.d(t,{$:()=>w});var a=n(32735),i=n(57900),r=n(2948),o=n(92582),l=n(65858),c=n(11607),s=n(83914),d=n(96953),u=n(10038),m=n(35223),p=n(25104);const v={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function f(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var c=a&&a.prototype instanceof l?a:l,s=Object.create(c.prototype);return g(s,"_invoke",function(n,a,i){var r,l,c,s=0,d=i||[],u=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,c=e,m.n=n,o}};function p(n,a){for(l=n,c=a,t=0;!u&&s&&!i&&t<d.length;t++){var i,r=d[t],p=m.p,v=r[2];n>3?(i=v===a)&&(c=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,m.v=a,m.n=r[1]):p<v&&(i=n<3||r[0]>a||a>v)&&(r[4]=n,r[5]=a,m.n=v,l=0))}if(i||n>1)return o;throw u=!0,a}return function(i,d,v){if(s>1)throw TypeError("Generator is already running");for(u&&1===d&&p(d,v),l=d,c=v;(t=l<2?e:c)||!u;){r||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(s=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(u=m.n<0)?c:n.call(a,m))!==o)break}catch(t){r=e,l=1,c=t}finally{s=1}}return{value:t,done:u}}}(n,i,r),!0),s}var o={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var d=[][a]?t(t([][a]())):(g(t={},a,function(){return this}),t),u=s.prototype=l.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,g(e,i,"GeneratorFunction")),e.prototype=Object.create(u),e}return c.prototype=s,g(u,"constructor",s),g(s,"constructor",c),c.displayName="GeneratorFunction",g(s,i,"GeneratorFunction"),g(u),g(u,i,"Generator"),g(u,a,function(){return this}),g(u,"toString",function(){return"[object Generator]"}),(f=function(){return{w:r,m}})()}function g(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}g=function(e,t,n,a){if(t)i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n;else{var r=function(t,n){g(e,t,function(e){return this._invoke(t,n,e)})};r("next",0),r("throw",1),r("return",2)}},g(e,t,n,a)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t,n,a){return new(n||(n=Promise))(function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,l)}c((a=a.apply(e,t||[])).next())})},E="1.2rem",k=500;function w(e){var t=y((0,r.D)("should:expand:".concat(e.id),e.isBot,{storage:i.Z1.LocalStorage}),2),n=t[0],g=t[1],h=y(a.useState(n?"100%":E),2),w=h[0],L=h[1],C=y(a.useState(!n),2),x=C[0],S=C[1],N=y(a.useState(null),2),T=N[0],O=N[1],j=(0,d.F)(),P=a.useRef(null),D=a.useRef(null),A=a.useRef(null);function I(){L(E),g(!1),P.current=window.setTimeout(function(){S(!0)},k)}return a.useEffect(function(){!function(){b(this,void 0,void 0,f().m(function t(){var a;return f().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,p.R.parse(e.answer,{focusableLinks:n});case 1:if(a=t.v,j.current){t.n=2;break}return t.a(2);case 2:if(null!==T){t.n=3;break}return O(a),t.a(2);case 3:if(T!==a){t.n=4;break}return t.a(2);case 4:T&&n&&I(),O(a);case 5:return t.a(2)}},t)}))}()},[e.answer]),a.useEffect(function(){"100%"===w&&A.current&&L(A.current.clientHeight+"px")},[w]),(0,u.H)(function(){n&&I()},null,[n]),e.question&&T?a.createElement(c.L,{className:"".concat(v.question," rounded-3"),onClick:function(t){var a;p.R.isLink(t.target)||0===window.getSelection().toString().length&&(o.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{question:e.question,answer:e.answer}),Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Faq,actionType:l.Vw.Click,descriptor:n?l._S.Collapse:l._S.Expand,location:l.LZ.FaqQuestionWidget})),n?I():((a=document.createElement("p")).innerHTML=T,a.style.visibility="hidden",D.current.appendChild(a),L("".concat(a.clientHeight,"px")),D.current.removeChild(a),g(!0),window.clearTimeout(P.current),S(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(s.x,{svgName:n?m.vn.Minus:m.vn.Plus})),a.createElement("h2",{className:"h4 mb-0 clear-end"},e.question)),a.createElement("div",{className:v.description,style:{height:w}},a.createElement("p",{className:"mb-0 ".concat(x?"clamp-1":""," ").concat(p.R.getContainerClass()),dangerouslySetInnerHTML:{__html:T},ref:A}),a.createElement("div",{ref:D}))):a.createElement(a.Fragment,null)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),i=n(92802),r=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,i.u6)(),n=(0,l.l)(t);return a.createElement(r.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},11904:(e,t,n)=>{n.d(t,{n:()=>k,W:()=>w});var a=n(32735),i=n(80247),r=n(50132),o=n(92802),l=n(91967),c=n(1048),s=n(28825),d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=d(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(k,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v={getCustomFormControlClassName:function(e,t,n,a,i,r){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(r,a),(0,o.u9)(t,n)&&(0,o.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}},f=n(35223);function g(e){var t=(0,o.u6)().values,n=c.t.get(t,e.fieldName);return"string"!=typeof n?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},n.length,"/",e.limit," characters")}const y={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},E="shared.formField";function k(e){var t,n,r=e.children,s=e.showLoadingSpinner,d=b(e,["children","showLoadingSpinner"]),u=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=u[0],v=u[1],g=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==d.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),g),a.createElement("div",{className:y.spinner},a.createElement(i.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),g);var E="position-relative ".concat(y.passwordContainer);return d.className&&(E+=" ".concat(d.className)),d.disabled&&(E+=" ".concat(y.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize","type","className"]),{type:p,className:"".concat(y.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===d.type&&a.createElement(m.x,{svgName:"password"===p?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(y.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function w(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,d=e.infoTooltipPlacement,h=e.infoText,w=e.formSize,L=e.showOptionalLabel,C=e.formGroupClassname,x=e.labelClassName,S=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel","formGroupClassname","labelClassName"]),N=(0,o.u6)(),T=N.errors,O=N.touched,j=function(){};if("checkbox"===S.type){var P=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(P.onChange=j),a.createElement(u,Object.assign({},P))}var D=Object.assign(Object.assign({},S),{className:v.getCustomFormControlClassName(T,O,S.name,w,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(D.onChange=j),a.createElement(r.Z.Group,{className:"form-group ".concat(C)},!!t&&a.createElement(r.Z.Label,{htmlFor:S.id,className:"d-flex align-items-center ".concat(x)},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-secondary ".concat(y.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:d,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!i&&!!S.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:S.name,limit:S.maxLength}))),e.description&&a.createElement("p",null,e.description),a.createElement(k,Object.assign({},D,{"aria-errormessage":"".concat(S.name,"Error")})),!!h&&a.createElement(r.Z.Text,{className:"text-secondary"},h),a.createElement(o.Bc,{name:S.name},function(e){return a.createElement(r.Z.Control.Feedback,{id:"".concat(S.name,"Error"),type:"invalid",role:"status"},e)}))}k.defaultProps={autoComplete:"off"},w.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>d});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var s=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function d(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,c=e.initialValues,d=e.onSubmit,u=s(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach(function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])})}(t),t}(c)):c,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.J9,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;d(c,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.reset&&r(),e.errors)for(var t=0,n=Object.entries(e.errors);t<n.length;t++){var a=l(n[t],2),c=a[0],s=a[1];o(c,s)}i(!1)})},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,i.u6)()}d.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},1809:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(32735),i=n(68050),r=n(69111),o=n(9977),l=n(79967);const c={partialOptions:"Gufgq",partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return a.createElement(a.Fragment,null,Array(e.numVideos).fill(null).map(function(t,n){return a.createElement("div",{className:"d-flex",key:n},e.allowBulkActions&&a.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),a.createElement(d,Object.assign({},e)))}))}function d(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(i.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(r.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),a.createElement(i.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(r.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(r.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},39071:(e,t,n)=>{n.d(t,{L:()=>Vr});var a=n(32735),i=n(91967),r=n(20354),o=n(31453),l=n(110),c=n(92582),s=n(65858),d=n(83914),u=n(83345),m=n(54610),p=n(12778),v=n(67453),f=n(35223);const g="TTPKV",y="nF3tK";var h="shared.authorReviewerWidgetTemplate",b="MMMM D, YYYY";function E(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(g," h-100 rounded-2 d-flex flex-column"),n=e.person.externalUrl,i=p.o.getAuthorBlogUrl(e.person.blogSlug);return i||n?a.createElement("a",{href:n||i,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){c.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,externalUrl:n,blogUrl:i},{entity:s.py.Author,location:s.LZ.AuthorReviewerWidget,actionType:s.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function k(e){return e.person?a.createElement(E,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(y," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:v.j.getUrlById(e.imageCdnUrl,m.__.Avatars,e.person.imageId,m.h2.Medium),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(d.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?f.vn.Verified:f.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:"lwnZl"},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},l.O.format(e.lastUpdated,b))):a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},l.O.format(e.datePublished,b))," • ",a.createElement(u.x,{namespace:h,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},l.O.format(e.lastUpdated,b))))):a.createElement(a.Fragment,null)}function w(e){var t=e.content[0],n=t.reviewer,i=t.author,r=t.lastUpdated,o=t.datePublished;return i&&n?a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,{type:"author",person:i,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r}))):a.createElement(a.Fragment,null)}function L(){return a.createElement("div",{className:"".concat(g," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(y)}),a.createElement("div",{className:"w-75"},a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"90%",height:"21px"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"65%",height:"1rem"}}))),a.createElement("div",null,a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"100%",height:"1rem"}}),a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"75%",height:"1rem"}})),a.createElement("div",{className:"partial-loading-background",style:{width:"50%",height:"1rem"}}))}var C=n(5281),x=n(28825),S=n(7733),N=n(9085);var T=function(e){var t,n,i,r,l=v.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:m.h2.Medium}),c=null===(n=e.data.metadata)||void 0===n?void 0:n.colour,d=(0,N.x)(e.data.name,S.o),u=Object.assign(Object.assign({},e.analyticsData),{id:null===(i=e.data)||void 0===i?void 0:i.id,name:null===(r=e.data)||void 0===r?void 0:r.name}),p=Object.assign(Object.assign({},e.analyticsOptions),{location:s.LZ.CircleLogoSlidingListWidget,actionType:s.Vw.Click,entity:s.py.Company}),f={backgroundImage:l?"url('".concat(l,"')"):null,backgroundColor:c};return a.createElement(x.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:u,analyticsOptions:p},a.createElement("div",{className:(0,o.A)("rounded-circle w-100 h-100","vt0gx",!c&&d),style:f}))},O=n(58704),j=n(57401);function P(e){var t;return a.createElement(C.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Companies,collection:e.content,childComponent:T,extraChildComponentProps:{},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var D=n(55827),A=n(79967);var I=n(47770),M=n(68050),V=n(69111),F=n(9513),B=n(92802),R=n(23481),z=n(42923),W=n(23201),H=n(11904),_=n(82644),Z=n(74097),U=n(69883),G=n(5173),Y=G.Ry().shape({feedbackInput:G.Z_().max(5e3,function(){return R.T.getPhrase("shared.feedbackForm","tooLong")})});const q="UFm9h",K="na9Vb";function $(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var c=a&&a.prototype instanceof l?a:l,s=Object.create(c.prototype);return Q(s,"_invoke",function(n,a,i){var r,l,c,s=0,d=i||[],u=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,c=e,m.n=n,o}};function p(n,a){for(l=n,c=a,t=0;!u&&s&&!i&&t<d.length;t++){var i,r=d[t],p=m.p,v=r[2];n>3?(i=v===a)&&(c=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,m.v=a,m.n=r[1]):p<v&&(i=n<3||r[0]>a||a>v)&&(r[4]=n,r[5]=a,m.n=v,l=0))}if(i||n>1)return o;throw u=!0,a}return function(i,d,v){if(s>1)throw TypeError("Generator is already running");for(u&&1===d&&p(d,v),l=d,c=v;(t=l<2?e:c)||!u;){r||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(s=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(u=m.n<0)?c:n.call(a,m))!==o)break}catch(t){r=e,l=1,c=t}finally{s=1}}return{value:t,done:u}}}(n,i,r),!0),s}var o={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var d=[][a]?t(t([][a]())):(Q(t={},a,function(){return this}),t),u=s.prototype=l.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Q(e,i,"GeneratorFunction")),e.prototype=Object.create(u),e}return c.prototype=s,Q(u,"constructor",s),Q(s,"constructor",c),c.displayName="GeneratorFunction",Q(s,i,"GeneratorFunction"),Q(u),Q(u,i,"Generator"),Q(u,a,function(){return this}),Q(u,"toString",function(){return"[object Generator]"}),($=function(){return{w:r,m}})()}function Q(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Q=function(e,t,n,a){if(t)i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n;else{var r=function(t,n){Q(e,t,function(e){return this._invoke(t,n,e)})};r("next",0),r("throw",1),r("return",2)}},Q(e,t,n,a)}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var J="shared.feedbackForm";function ee(e){var t,n,r=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],l=r[1],c=(0,U.Z)();function s(t,n){return a=this,i=void 0,r=void 0,s=$().m(function a(){return $().w(function(a){for(;;)switch(a.n){case 0:return a.p=0,a.n=1,e.onSubmit({content:t.feedbackInput,type:"yes"===o?"positive":"negative"});case 1:l("done"),a.n=3;break;case 2:a.p=2,a.v,l("prompt"),c.error(R.T.getPhrase(J,"error"));case 3:return a.p=3,n({reset:!0}),a.f(3);case 4:return a.a(2)}},a,null,[[0,2,3,4]])}),new(r||(r=Promise))(function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof r?a:new r(function(e){e(a)})).then(n,o)}l((s=s.apply(a,i||[])).next())});var a,i,r,s}return i.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(q)},a.createElement(z.V,{emoji:"🔎"},a.createElement(u.x,{namespace:J,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(Z.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:f.vn.ThumbsUp},a.createElement(u.x,{namespace:J,phrase:"yes"})),a.createElement(Z.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:f.vn.ThumbsDown},a.createElement(u.x,{namespace:J,phrase:"no"})))):"yes"===o?a.createElement(_.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(B.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(z.V,{emoji:"👏"},a.createElement(u.x,{namespace:J,phrase:"happyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:R.T.getPhrase(J,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(u.x,{namespace:J,phrase:"back"})),a.createElement(W.A,{variant:"dark",submitText:R.T.getPhrase(J,"sendFeedback")})))):"no"===o?a.createElement(_.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(B.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(z.V,{emoji:"😢"},a.createElement(u.x,{namespace:J,phrase:"unhappyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:R.T.getPhrase(J,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(u.x,{namespace:J,phrase:"back"})),a.createElement(W.A,{variant:"dark",submitText:R.T.getPhrase(J,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(z.V,{emoji:"🙌"},a.createElement(u.x,{namespace:J,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const te={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function ne(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(M.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map(function(t){var n,i,r,o=v.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:m.h2.Small});return a.createElement(V.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(x.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(te.imageContainer," me-2")},a.createElement("div",{className:"".concat(te.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))}))),a.createElement(ee,{onSubmit:e.onSubmitFeedback}))}var ae=n(6714),ie=n(62400),re={actionType:s.Vw.Click,entity:s.py.Playlist,location:s.LZ.PlaylistListItem,descriptor:s._S.Cover};function oe(e){return a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map(function(t){var n,i;return a.createElement(V.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(ae.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:re}))})))}var le=n(19653),ce=n(43741),se=n(55171),de=n(78479),ue=n(42308),me=n(87114);function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ve(e){return e.reduce(function(e,t){return e+((null==t?void 0:t.totalVideos)||0)},0)}function fe(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ge(e){var t,n,i,r=function(e,t){var n,a,i,r,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===j.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:j.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:v.j.createUrl(null===(r=null===(i=e.classification)||void 0===i?void 0:i.cover)||void 0===r?void 0:r.url,{size:m.h2.Small})},metadata:{backgroundColor:null===(l=null===(o=e.classification)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.backgroundColor}}:(null===(c=e.metadata)||void 0===c?void 0:c.appLink)===j.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:v.j.getUrlById(e.imageCdnUrl,m.__.Covers,e.metadata.imageId,m.h2.Medium)},totalVideos:ve(t)}:(null===(s=e.metadata)||void 0===s?void 0:s.appLink)===j.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:v.j.createUrl(se.e.Images.STREAMABLE_TOPIC_COVER,{size:m.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===j.OL.ClassificationLatestReleases;return a.createElement(le.e,{id:e.id,collection:r?[r].concat((i=e.content,function(e){if(Array.isArray(e))return pe(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,i,r,l,c,s,d;return t.id===j.OL.ClassificationDirectory?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):t.id===j.OL.ExploreAllTopics?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===r?void 0:r.call(i,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,t)}(t)},childComponent:F.Vz,partialLoadingComponent:ce.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&me.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===ue.z.Classifications&&e.templateId===de.f.CoverSlidingPillListSmall&&(null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):null}(),getSubtitle:o?fe:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,childComponentProps:{highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,shouldHighlight:function(e){return e.id===j.OL.ClassificationDirectory}}})}var ye=n(65163),he=n(46279),be=R.T.encloseNamespace("search.searchExchangeArchiveDescription");function Ee(e){return a.createElement(a.Fragment,null,be("searchExchangeArchiveDescription")," ",a.createElement(x.F,{appLink:e.appLink,className:"info-link"},be("searchExchangeArchiveLink")))}var ke=n(87347);function we(e){var t,n;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!e.metadata.hideWidgetDescription&&(e.widgetTypeId===ue.z.SearchExchangeArchive?a.createElement(Ee,{appLink:e.appLinks.searchSettings()}):e.description),showSeeMoreLink:!!e.seeMoreLink&&[ue.z.SearchExchangeArchive,ue.z.SearchMySchoolLibraryVideos].includes(e.widgetTypeId),appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(ke.E4,{videos:e.content,getVideoAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.videoType,hasPermissions:e.hasPermissions,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,getAnalyticsData:e.getAnalyticsData,analyticsOptions:{location:s.LZ.ThumbnailVerticalListWidget,entity:s.py.Video}}))}function Le(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"bg-gray-100 p-3 rounded-3 mb-3"},a.createElement("h2",{className:"h6"},e.name),a.createElement(he.k,{code:e.metadata.curriculumLeafName,description:e.metadata.curriculumLeafDescription,id:null,locationContext:s.LZ.SearchCurriculumCodeWidget})),a.createElement(we,{metadata:{hideWidgetHeading:!0,hideWidgetDescription:!0},name:"",description:"",widgetTypeId:ue.z.SearchCurriculumCode,hasPermissions:e.hasPermissions,content:e.content,audiences:e.audiences,seeMoreLink:null,appLinks:e.appLinks,commonVideoProps:e.commonVideoProps,badgeComponent:null,settings:e.settings,getAnalyticsData:e.getAnalyticsData}))}var Ce=n(95685),xe=n.n(Ce),Se=n(80638),Ne=n(46304),Te=n(11858),Oe=n(35355),je=n(76e3),Pe=n(26664);const De=function(...e){return e.filter(e=>null!=e).reduce((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}},null)};var Ae=n(65169),Ie=n(35308),Me=n(74512);const Ve={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Fe(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],a=Ve[e];return n+parseInt((0,Te.Z)(t,a[0]),10)+parseInt((0,Te.Z)(t,a[1]),10)}const Be={[Oe.Wj]:"collapse",[Oe.Ix]:"collapsing",[Oe.d0]:"collapsing",[Oe.cn]:"collapse show"},Re=a.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:i,onExiting:r,className:o,children:l,dimension:c="height",in:s=!1,timeout:d=300,mountOnEnter:u=!1,unmountOnExit:m=!1,appear:p=!1,getDimensionValue:v=Fe,...f},g)=>{const y="function"==typeof c?c():c,h=(0,a.useMemo)(()=>De(e=>{e.style[y]="0"},e),[y,e]),b=(0,a.useMemo)(()=>De(e=>{const t=`scroll${y[0].toUpperCase()}${y.slice(1)}`;e.style[y]=`${e[t]}px`},t),[y,t]),E=(0,a.useMemo)(()=>De(e=>{e.style[y]=null},n),[y,n]),k=(0,a.useMemo)(()=>De(e=>{e.style[y]=`${v(y,e)}px`,(0,Ae.Z)(e)},i),[i,v,y]),w=(0,a.useMemo)(()=>De(e=>{e.style[y]=null},r),[y,r]);return(0,Me.jsx)(Ie.Z,{ref:g,addEndListener:Pe.Z,...f,"aria-expanded":f.role?s:null,onEnter:h,onEntering:b,onEntered:E,onExit:k,onExiting:w,childRef:(0,je.IV)(l),in:s,timeout:d,mountOnEnter:u,unmountOnExit:m,appear:p,children:(e,t)=>a.cloneElement(l,{...t,className:xe()(o,l.props.className,Be[e],"width"===y&&"collapse-horizontal")})})});function ze(e,t){return Array.isArray(e)?e.includes(t):e===t}const We=a.createContext({});We.displayName="AccordionContext";const He=We,_e=a.forwardRef(({as:e="div",bsPrefix:t,className:n,children:i,eventKey:r,...o},l)=>{const{activeEventKey:c}=(0,a.useContext)(He);return t=(0,Ne.vE)(t,"accordion-collapse"),(0,Me.jsx)(Re,{ref:l,in:ze(c,r),...o,className:xe()(n,t),children:(0,Me.jsx)(e,{children:a.Children.only(i)})})});_e.displayName="AccordionCollapse";const Ze=_e,Ue=a.createContext({eventKey:""});Ue.displayName="AccordionItemContext";const Ge=Ue,Ye=a.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:i,onEntering:r,onEntered:o,onExit:l,onExiting:c,onExited:s,...d},u)=>{t=(0,Ne.vE)(t,"accordion-body");const{eventKey:m}=(0,a.useContext)(Ge);return(0,Me.jsx)(Ze,{eventKey:m,onEnter:i,onEntering:r,onEntered:o,onExit:l,onExiting:c,onExited:s,children:(0,Me.jsx)(e,{ref:u,...d,className:xe()(n,t)})})});Ye.displayName="AccordionBody";const qe=Ye;function Ke(e,t){const{activeEventKey:n,onSelect:i,alwaysOpen:r}=(0,a.useContext)(He);return a=>{let o=e===n?null:e;r&&(o=Array.isArray(n)?n.includes(e)?n.filter(t=>t!==e):[...n,e]:[e]),null==i||i(o,a),null==t||t(a)}}const $e=a.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:i,...r},o)=>{t=(0,Ne.vE)(t,"accordion-button");const{eventKey:l}=(0,a.useContext)(Ge),c=Ke(l,i),{activeEventKey:s}=(0,a.useContext)(He);return"button"===e&&(r.type="button"),(0,Me.jsx)(e,{ref:o,onClick:c,...r,"aria-expanded":Array.isArray(s)?s.includes(l):l===s,className:xe()(n,t,!ze(s,l)&&"collapsed")})});$e.displayName="AccordionButton";const Qe=$e,Xe=a.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:a,children:i,onClick:r,...o},l)=>(n=(0,Ne.vE)(n,"accordion-header"),(0,Me.jsx)(e,{ref:l,...o,className:xe()(a,n),children:(0,Me.jsx)(Qe,{onClick:r,"aria-controls":t,children:i})})));Xe.displayName="AccordionHeader";const Je=Xe,et=a.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:i,...r},o)=>{t=(0,Ne.vE)(t,"accordion-item");const l=(0,a.useMemo)(()=>({eventKey:i}),[i]);return(0,Me.jsx)(Ge.Provider,{value:l,children:(0,Me.jsx)(e,{ref:o,...r,className:xe()(n,t)})})});et.displayName="AccordionItem";const tt=et,nt=a.forwardRef((e,t)=>{const{as:n="div",activeKey:i,bsPrefix:r,className:o,onSelect:l,flush:c,alwaysOpen:s,...d}=(0,Se.Ch)(e,{activeKey:"onSelect"}),u=(0,Ne.vE)(r,"accordion"),m=(0,a.useMemo)(()=>({activeEventKey:i,onSelect:l,alwaysOpen:s}),[i,l,s]);return(0,Me.jsx)(He.Provider,{value:m,children:(0,Me.jsx)(n,{ref:t,...d,className:xe()(o,u,c&&`${u}-flush`)})})});nt.displayName="Accordion";const at=Object.assign(nt,{Button:Qe,Collapse:Ze,Item:tt,Header:Je,Body:qe});function it(e){var t=a.useContext(He).activeEventKey,n=Ke(e.name),i=t===e.name;return a.createElement("button",{type:"button",onClick:n,className:"w-100 p-3 ".concat("AlqWW"," ").concat(i?"L8zQ5":"")},a.createElement("div",{className:"d-flex align-items-center justify-content-between"},a.createElement("h3",{className:"mb-0 h5 fw-normal"},e.name),a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(d.x,{svgName:i?f.vn.Minus:f.vn.Plus}))))}var rt=n(39323),ot=n(71740),lt=n(70872),ct=n(59908);const st={video:"uLiyf",thumbnail:"Yeh7O"};var dt="shared.curriculumAccordionVideoList";function ut(e){var t=!!e.outcome.name&&!!e.outcome.description;return a.createElement(a.Fragment,null,a.createElement("h4",{className:"h6"},a.createElement(u.x,{namespace:dt,phrase:"alignedVideos"})),a.createElement("ul",{className:"list-unstyled"},e.outcome.videos.map(function(t,n){var i={analyticsData:e.analyticsData,analyticsOptions:{entity:s.py.Video,actionType:s.Vw.Click,location:s.LZ.CurriculumResourcesAccordionWidget}};return a.createElement("li",{key:"".concat(e.outcomeIndex,":").concat(n),className:"".concat(st.video," d-flex")},a.createElement("div",{className:"".concat(st.thumbnail," me-2")},a.createElement(rt.u,Object.assign({appLink:e.getVideoAppLink(t,{}),video:t,type:"static",imageOptions:{size:m.h2.Medium},commonVideoProps:e.commonVideoProps,hideDuration:!0},i))),a.createElement("div",{className:"d-flex flex-column justify-content-between"},a.createElement("div",null,a.createElement(ct.$,Object.assign({},i,{video:t,appLink:e.getSeriesAppLink(t.series),type:"series"})),a.createElement(lt.u,Object.assign({},i,{video:t,appLink:e.getVideoAppLink(t,{}),size:"sm",titleClassName:"mb-0",yearGroups:e.commonVideoProps.yearGroups,showNewVideoIndicator:e.commonVideoProps.showNewVideoIndicator,showPadlock:!e.commonVideoProps.hasStudentExperience}))),a.createElement(ot.u,Object.assign({video:t,getVideoAppLink:e.getVideoAppLink,commonVideoProps:e.commonVideoProps,containerClassName:"d-flex justify-content-start align-items-center pt-sm-1 gap-1",responsiveClassName:st.responsiveGuidance},i))))})),a.createElement(x.F,{appLink:e.getOutcomeAppLink(e.outcome.name),className:"info-link mt-2 d-inline-block"},t?a.createElement(u.x,{namespace:dt,phrase:"viewAllVideosCode",options:{code:e.outcome.name}}):a.createElement(u.x,{namespace:dt,phrase:"viewAllVideosNoCode"})))}function mt(e){return a.createElement(at.Collapse,{eventKey:e.audience.name},a.createElement("div",{className:"".concat("dygFS"," px-3 pb-3")},a.createElement("ul",{className:"bg-white p-3 rounded-3 list-unstyled mb-0"},e.audience.areas.map(function(t,n){return a.createElement("li",{key:n,className:"xr2ol"},a.createElement("h3",{className:"h5 fw-normal mb-3"},t.name),a.createElement("ul",{className:"list-unstyled"},t.outcomes.map(function(t,n){return a.createElement("li",{key:n,className:"r0JiR"},a.createElement("h4",{className:"h6"},a.createElement(u.x,{namespace:"shared.audienceSection",phrase:"outcome"})),a.createElement("div",{className:"pb-2"},a.createElement(he.k,{id:t.id,code:t.name,description:t.description,getCodeAppLink:e.getSearchAppLink,locationContext:s.LZ.CurriculumResourcesAccordionWidget,uiContainsCodes:!0})),a.createElement(ut,{outcome:t,analyticsData:e.analyticsData,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:e.getSeriesAppLink,getOutcomeAppLink:e.getSearchAppLink,commonVideoProps:e.commonVideoProps,outcomeIndex:n}))})))}))))}var pt=n(85597);function vt(e){return function(e){if(Array.isArray(e))return yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=gt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}function gt(e,t){if(e){if("string"==typeof e)return yt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yt(e,t):void 0}}function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ht(e){var t=new Map;function n(e,a){if(e.type!==pt.k.Area)e.type===pt.k.Leaf&&(t.has(a)||t.set(a,{name:a,outcomes:[]}),t.get(a).outcomes.push(e));else{a.length&&(a+=" - "),a+=e.name;var i,r=ft(e.children);try{for(r.s();!(i=r.n()).done;)n(i.value,a)}catch(e){r.e(e)}finally{r.f()}}}var a,i=ft(e.children);try{for(i.s();!(a=i.n()).done;)n(a.value,"")}catch(e){i.e(e)}finally{i.f()}return Array.from(t.values())}function bt(e){var t=a.useMemo(function(){return function(e){var t,n=new Map,a=ft(e);try{for(a.s();!(t=a.n()).done;){var i,r=ft(t.value.children);try{for(r.s();!(i=r.n()).done;){var o,l=i.value;n.has(l.name)||n.set(l.name,{name:l.name,areas:[]}),(o=n.get(l.name).areas).push.apply(o,vt(ht(l)))}}catch(e){r.e(e)}finally{r.f()}}}catch(e){a.e(e)}finally{a.f()}return Array.from(n.values())}(e.content)},[e.content]);return a.createElement("div",null,a.createElement("div",{className:"d-flex align-items-end justify-content-between mb-2"},a.createElement("h2",{className:"h3 mb-0"},e.curriculums.preferredCurriculum.name),e.curriculums.availableCurriculums.length>1&&a.createElement(x.F,{appLink:e.appLinks.editCurriculum()},a.createElement(u.x,{namespace:"shared.curriculumResourcesAccordion",phrase:"changeCurriculum"}))),a.createElement(at,{className:"mb-n3"},t.map(function(t,n){return a.createElement("div",{className:"mb-3",key:n},a.createElement(it,{name:t.name}),a.createElement(mt,{audience:t,getSearchAppLink:e.appLinks.search,getVideoAppLink:e.appLinks.videoType,getSeriesAppLink:e.appLinks.series,commonVideoProps:e.commonVideoProps,analyticsData:e.analyticsData}))})))}var Et=function(){return a.createElement("div",{className:"partial-loading-background mb-3 rounded-3",style:{height:"3.5rem"}})},kt=n(98269),wt=n(1048),Lt=n(11607),Ct=n(17808),xt=n(1287),St=n(2102),Nt=n(83523),Tt=n(17027),Ot="shared.subjectWidgetItem",jt=a.forwardRef(function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(Tt.Z.name," h6");return e.multiline?r+=" clamp-3":(i+=" text-nowrap",r+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(Tt.Z.widgetItem," ").concat(Tt.Z.draggingItem),style:wt.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Tt.Z.widgetItem),style:wt.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Tt.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-secondary","\n ")},e.dragAttributes,e.dragListeners),a.createElement(d.x,{svgName:f.vn.Hamburger})),a.createElement("div",{className:i},a.createElement("label",{htmlFor:e.data.id,className:"".concat(r," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(Nt.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?R.T.getPhrase(Ot,e.isVisible?"hideFromDashboard":"showOnDashboard"):R.T.getPhrase(Ot,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))}),Pt=n(91028),Dt=n(16714),At=n(75896),It=n(49542);function Mt(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var c=a&&a.prototype instanceof l?a:l,s=Object.create(c.prototype);return Vt(s,"_invoke",function(n,a,i){var r,l,c,s=0,d=i||[],u=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,c=e,m.n=n,o}};function p(n,a){for(l=n,c=a,t=0;!u&&s&&!i&&t<d.length;t++){var i,r=d[t],p=m.p,v=r[2];n>3?(i=v===a)&&(c=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,m.v=a,m.n=r[1]):p<v&&(i=n<3||r[0]>a||a>v)&&(r[4]=n,r[5]=a,m.n=v,l=0))}if(i||n>1)return o;throw u=!0,a}return function(i,d,v){if(s>1)throw TypeError("Generator is already running");for(u&&1===d&&p(d,v),l=d,c=v;(t=l<2?e:c)||!u;){r||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(s=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(u=m.n<0)?c:n.call(a,m))!==o)break}catch(t){r=e,l=1,c=t}finally{s=1}}return{value:t,done:u}}}(n,i,r),!0),s}var o={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var d=[][a]?t(t([][a]())):(Vt(t={},a,function(){return this}),t),u=s.prototype=l.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Vt(e,i,"GeneratorFunction")),e.prototype=Object.create(u),e}return c.prototype=s,Vt(u,"constructor",s),Vt(s,"constructor",c),c.displayName="GeneratorFunction",Vt(s,i,"GeneratorFunction"),Vt(u),Vt(u,i,"Generator"),Vt(u,a,function(){return this}),Vt(u,"toString",function(){return"[object Generator]"}),(Mt=function(){return{w:r,m}})()}function Vt(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Vt=function(e,t,n,a){if(t)i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n;else{var r=function(t,n){Vt(e,t,function(e){return this._invoke(t,n,e)})};r("next",0),r("throw",1),r("return",2)}},Vt(e,t,n,a)}function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Rt="shared.editableCoverFixedPillListSmall";function zt(e){var t,n,i,r=Ft(a.useState(!1),2),o=r[0],l=r[1],d=Ft(a.useState(!1),2),m=d[0],p=d[1],v=It.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,e.preferences,[]).unfilteredContent,f=a.useMemo(function(){return v.every(function(e){var t,n;return!(null===(n=null===(t=e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)})},[v]),g=a.useMemo(function(){var e;return null!==(e=null==v?void 0:v.reduce(function(e,t,n){var a,i,r={id:t.id,hidden:!(null===(i=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===i?void 0:i.length)&&!f,index:n};return e[t.id]=r,e},{}))&&void 0!==e?e:{}},[e.preferences,f]),y=Ft(a.useState(g),2),h=y[0],b=y[1],E=Ft(a.useState(g),2),k=E[0],w=E[1],L=a.useMemo(function(){return o?v.filter(function(e){return!!k[e.id]}).sort(function(e,t){return k[e.id].index-k[t.id].index}):v.filter(function(e){var t;return!!h[e.id]&&!(null===(t=h[e.id])||void 0===t?void 0:t.hidden)}).sort(function(e,t){return h[e.id].index-h[t.id].index})},[v,k,h,o]),C=(0,U.Z)();a.useEffect(function(){l(!1)},[null===(t=e.presentation)||void 0===t?void 0:t.id]);var x=a.useMemo(function(){return!(o||!L.length)&&Object.values(k).some(function(e){return e.hidden})},[o,k]);function S(e){return k[e.id]?k[e.id].index:L.findIndex(function(t){return t.id===e.id})}function N(e){var t;return!(null===(t=k[e.id])||void 0===t?void 0:t.hidden)}function T(e){var t=Object.assign({},k),n=N(e);t[e.id]={id:e.id,hidden:n,index:S(e)},c.k.logUserAction({id:e.id,name:e.name},{location:s.LZ.EditableSubjectPreferencesWidget,entity:s.py.Classification,actionType:s.Vw.Hide,descriptor:n?s.DL.On:s.DL.Off}),w(t)}var O=a.useMemo(function(){return!wt.t.isEqual(g,k)},[g,k]),j={id:e.presentation.id,name:R.T.getPhrase(Rt,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},P=e.availablePresentations?e.availablePresentations.filter(function(t){var n;return t.id!==(null===(n=e.presentation)||void 0===n?void 0:n.id)}).map(function(e){return{id:e.id,name:R.T.getPhrase(Rt,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}}):[],D=!o&&P.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),A=e.hasLocalPermissions(Dt.E.ManageDiscoverPreferences),I={location:s.LZ.EditableSubjectPreferencesWidget};return L.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between"},a.createElement("div",{className:"col"},a.createElement("div",{className:"d-flex justify-content-between w-100 no-wrap flex-row mb-2"},a.createElement("h2",{className:"h4 mb-0 align-self-end flex-shrink-0"},o?R.T.getPhrase(Rt,"updating"):e.name),!o&&A&&a.createElement(Lt.L,{className:"hover-text-underline",onClick:function(){return l(!0)}},R.T.getPhrase(Rt,"edit"))),!!e.description&&!o&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),o&&a.createElement("p",{className:"description mb-2"},a.createElement(u.x,{namespace:Rt,phrase:"editingDescription"}))),o&&A&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(kt.Z,{variant:"link",className:"me-2",onClick:function(){w(h),l(!1)}},a.createElement(u.x,{namespace:Rt,phrase:"cancel"})),a.createElement(St.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=Mt().m(function t(){var n;return Mt().w(function(t){for(;;)switch(t.n){case 0:p(!0),n=f?v.map(function(e,t){return{id:e.id,hidden:!0,index:t}}):Object.values(h),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(k)).then(function(){b(k),p(!1),l(!1)}).catch(function(){p(!1),C.error(R.T.getPhrase(Rt,"error"))});case 1:return t.a(2)}},t)}),new(a||(a=Promise))(function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a(function(e){e(n)})).then(o,l)}c((i=i.apply(t,n||[])).next())});var t,n,a,i},showSpinner:m,disabled:!O},a.createElement(u.x,{namespace:Rt,phrase:"update"})))),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},x&&a.createElement(V.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Pt.V,{data:j,getChildAppLink:function(){var t,n;return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.allTopics)||void 0===n?void 0:n.call(t,e.presentation.id)},analyticsData:e.analyticsData,analyticsOptions:I,multiline:!0,highlightOnHover:null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}})),a.createElement(Ct.Q,{ids:L.map(function(e){return e.id}),getDragOverlay:function(e){var t=L.find(function(t){return t.id===e});return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(jt,{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!0,canToggle:!N(t)||Object.values(k).filter(function(e){return!e.hidden}).length>1}))},onSortStart:function(e){var t=L.find(function(t){return t.id.toString()===e.active.id.toString()}),n=L.findIndex(function(t){return t.id.toString()===e.active.id.toString()});c.k.logUserAction({id:t.id,name:t.name,index:n},{location:s.LZ.EditableSubjectPreferencesWidget,entity:s.py.Classification,actionType:s.Vw.Move,workflowPhase:s.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=S({id:t.id}),i=L.findIndex(function(e){return e.id.toString()===n.id.toString()});if(a!==i){var r=L[a];if(r){var o=Object.assign({},k);(function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var a=At.m.moveItem(e,t,n),i=n<e.length-1?a[n+1].id:null;return{reorderedItems:a,reorderRequest:{sourceMemberId:a[n].id,destinationMemberId:i}}})(L,a,i).reorderedItems.forEach(function(e,t){o[e.id]={id:e.id,index:t,hidden:!N(e)}}),w(o),c.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:s.LZ.EditableSubjectPreferencesWidget,entity:s.py.Classification,actionType:s.Vw.Move,workflowPhase:s.eu.Complete})}}},vertical:!1},L.map(function(t){var n,i;return a.createElement(V.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,o?a.createElement(xt.W,{id:t.id,childComponent:jt,childProps:{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!1,canToggle:!N(t)||Object.values(k).filter(function(e){return!e.hidden}).length>1,multiline:!0}}):a.createElement(Pt.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:I,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))})),D&&P.map(function(t){return a.createElement(V.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Pt.V,{data:t,getChildAppLink:function(){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===a?void 0:a.call(n,t.id)},getChildAppLinkOptions:function(){return{middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}}},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationId:t.id,presentationDescription:t.description}),analyticsOptions:Object.assign(Object.assign({},I),{entity:s.py.Presentation}),multiline:!0,highlightOnHover:!0,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}}))}))):a.createElement(a.Fragment,null)}var Wt=n(11518),Ht=n(15543),_t=n(40451);const Zt="k2Xse";function Ut(e){return a.createElement("div",{className:"".concat(Zt," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(x.F,{appLink:e.getAppLink(e.data),className:"text-decoration-none my-2 mx-1 rounded-3 d-block position-relative",analyticsData:e.analyticsData(e.data),analyticsOptions:e.analyticsOptions},a.createElement(Ht.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",getBackgroundColor:e.getBackgroundColor,getIconUrl:e.getIconUrl,hasInitialized:!0,responsiveText:!1,hideDay:!0})))}function Gt(e){var t=e.data,n=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Zt," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(_t.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.Url,actionType:s.Vw.Click,location:s.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(Ut,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getIconUrl:function(e){var t;return null===(t=e.company.logo)||void 0===t?void 0:t.url},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.content.id,name:t.content.name,startDateTime:t.content.startDateTime,endDateTime:t.content.endDateTime})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.SpecialEvent,actionType:s.Vw.Click,location:s.LZ.EventIconSlidingListWidget})})):a.createElement(Ut,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.backgroundColor},getIconUrl:function(e){return function(e){var t;return v.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:m.h2.Small})}(e)},getHardCodedEvent:function(e){return se.e.SpecialEvents[e.id]},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.specialEventId,name:t.name,startDate:t.startDate,endDate:t.endDate,classificationId:t.content.id,classificationName:t.content.name})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.SpecialEvent,actionType:s.Vw.Click,location:s.LZ.EventIconSlidingListWidget})}))}function Yt(e){return function(e){if(Array.isArray(e))return Kt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(e,t){if(e){if("string"==typeof e)return Kt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kt(e,t):void 0}}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var $t=R.T.encloseNamespace("widgets.eventIconSlidingList");function Qt(e){var t,n,i=a.useMemo(function(){return function(e,t){var n=Yt(t===j.VH.Livestream?e.map(function(e){return{id:e.id,startDate:l.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}):e).sort(function(e,t){return e.startDate.localeCompare(t.startDate)}),a=new Date,i=l.O.format(a,"YYYY-MM-DD"),r=l.O.format(l.O.add(i,1,"day"),"YYYY-MM-DD"),o=l.O.format(l.O.add(l.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=l.O.format(l.O.add(o,6,"days"),"YYYY-MM-DD"),s=l.O.format(l.O.startOf(a,"month"),"YYYY-MM-DD"),d=l.O.format(l.O.endOf(a,"month"),"YYYY-MM-DD"),u=l.O.format(l.O.startOf(l.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=l.O.format(l.O.endOf(l.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=l.O.format(l.O.startOf(l.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=l.O.format(l.O.add(a,1,"year"),"YYYY-MM-DD"),f=new Map;function g(e){if(f.has(e.group)){var t=f.get(e.group);f.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(Yt(t.events),[e.event])}))}else f.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach(function(e){if(e.startDate<=i)g({group:"today",startDate:i,endDate:null,event:e,body:{text:l.O.format(i,"DD"),type:"day"},monthLabel:l.O.format(i,"MMMM"),label:$t("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<o){var t=l.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:l.O.format(e.startDate,"MMMM"),body:{text:l.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=o&&e.startDate<=c?g({group:"nextWeek",startDate:o,endDate:c,event:e,monthLabel:l.O.isSame(o,c,"month")?l.O.format(o,"MMMM"):"".concat(l.O.format(o,"MMM")," - ").concat(l.O.format(c,"MMM")),body:{text:"".concat(l.O.format(o,"DD"),"-").concat(l.O.format(c,"DD")),type:"range"},label:$t("nextWeek")}):e.startDate>=s&&e.startDate<=d?g({group:"thisMonth",startDate:s,endDate:d,event:e,monthLabel:"",body:{text:l.O.format(e.startDate,"MMM"),type:"month"},label:$t("thisMonth")}):e.startDate>=u&&e.startDate<=m?g({group:"nextMonth",startDate:u,endDate:m,event:e,monthLabel:"",body:{text:l.O.format(e.startDate,"MMM"),type:"month"},label:$t("nextMonth")}):e.startDate>=p&&e.startDate<=v&&g({group:"later",startDate:p,endDate:v,event:e,monthLabel:"",body:{text:l.O.format(e.startDate,"MMM"),type:"month"},label:$t("later")});else g({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:l.O.format(r,"DD"),type:"day"},monthLabel:l.O.format(e.startDate,"MMMM"),label:$t("tomorrow")})});var y,h=[],b=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=qt(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){o=!0,i=e},f:function(){try{r||null==t.return||t.return()}finally{if(o)throw i}}}}(f.values());try{for(b.s();!(y=b.n()).done;){var E=y.value,k={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:l.O.format(E.startDate,"MMMM"),appLinkYear:l.O.format(E.startDate,"YYYY"),type:"date-widget-item"};h.push(k),E.events.forEach(function(e){h.push(e)})}}catch(e){b.e(e)}finally{b.f()}return h}(e.content,e.contentType)},[e.content]),r=e.contentType===j.VH.Livestream?{background:"bg-light-green",border:"border-light-green",backgroundSecondary:"bg-light-blue"}:{background:"bg-light-blue",border:"border-light-blue",backgroundSecondary:"bg-light-yellow"};return a.createElement(Wt.kM,{id:e.id,name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:j.l9.Row,contents:O.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.livestream)||void 0===r?void 0:r.call(i,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:i,childComponent:Gt,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var Xt=n(39202),Jt=n(37963);function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var tn=a.memo(function(e){var t,n,i=e.data,r=e.context,o=e.thumbnailSize,l=e.preloadImage,c=(t=(0,Jt.L)({className:"x7nyG",style:{transform:"scale(".concat((null==r?void 0:r.type)===j.l9.LargeRow?1.1:1.15,")")}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return en(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],d=c[1];a.useEffect(function(){e.onHover(d)},[d]);var u="eo8oY";return r.type===j.l9.LargeRow&&(u="lhqxB"),a.createElement("div",{ref:s,className:"px-1 flex-shrink-0 position-relative ".concat(u," ").concat("A7FeL")},a.createElement(rt.u,{video:e.data,type:"expandable",appLink:e.getAppLink(i),imageOptions:{size:o},preload:l,hovering:d,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,commonVideoProps:e.commonVideoProps}))});const nn="eSMIx",an="layDP";function rn(e){var t,n=It.d.getCustomAppLink(e),i=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?v.j.getUrlById(e.imageCdnUrl,m.__.Banners,e.metadata.imageId,m.h2.Medium):"";return a.createElement("div",null,a.createElement(x.F,{appLink:n,style:i?{backgroundImage:"url(".concat(i,")")}:{},className:"".concat(nn," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":an),analyticsData:{url:Xt.C$.getHref(n)},analyticsOptions:{actionType:s.Vw.Click,entity:s.py.Url,location:s.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(C.k,{id:e.id,type:j.l9.Row,contents:O.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},collection:e.content,childComponent:tn,extraChildComponentProps:{commonVideoProps:e.commonVideoProps},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var on=n(81993);function ln(e){return a.createElement(x.F,{appLink:e.getAppLink(e.data),className:"".concat(e.ratingsLength>4?"TzZuL":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.Rating,actionType:s.Vw.Click,location:s.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(on.u.mapRatingToClass(e.data.value)," py-3 rounded-3")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white text-shadow"},a.createElement(d.x,{svgName:f.vn.Search,size:d.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var cn=n(72639);function sn(e){var t,n=(t=e.presentation,me.i.getMappedPresentationLevel(t.learningLevel)===cn.p.Level_1?64:128),i=e.content.filter(function(e){return e.code&&e.value<n&&"E"!==e.code});return a.createElement(a.Fragment,null,a.createElement(C.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,i)},collection:i,childComponent:ln,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:i.length},prefetched:!0}))}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function un(e){return a.createElement("div",{className:"curated-widget-header"},a.createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&a.createElement("p",{className:"description curated-widget-description"},e.description))}const mn="iCyo4",pn="cgv_6";function vn(e){var t,n,i,r,o,l,c=(0,A.k)(),d={location:s.LZ.Classification,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Banner};return a.createElement(x.F,{appLink:function(){var t,n,a=At.m.first(e.content);return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,a)}(),analyticsData:e.analyticsData,analyticsOptions:d},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(mn),style:{backgroundImage:"url('".concat((l=At.m.first(e.content),v.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:m.__.Banners},{size:m.h2.Large})),"')")}},e.name&&a.createElement("div",{className:pn},a.createElement("p",{className:(o="text-white clamp-2",c.xs||c.sm?o+=" h4":c.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&a.createElement("div",{className:"BXwH2"},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(r=null===(i=e.metadata)||void 0===i?void 0:i.cta)||void 0===r?void 0:r.text))))}function fn(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(mn)},a.createElement("div",{className:"".concat(pn)}))}function gn(e){return gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gn(e)}function yn(e,t,n){return(t=function(e){var t=function(e){if("object"!=gn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn,bn,En;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(hn||(hn={})),function(e){e.Dark="dark",e.White="white"}(bn||(bn={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(En||(En={})),hn.H1,hn.H2,hn.H3,hn.H4,hn.H5,hn.H6,bn.Dark,bn.White,En.NewWindow;var kn=yn(yn(yn(yn({},En.NewWindow,f.vn.NewWindow),En.TopicDirectory,f.vn.Grid),En.TopicNewReleases,f.vn.Sparkle),En.CuratedTopic,f.vn.Rectangles),wn=yn(yn(yn(yn(yn(yn(yn(yn({},hn.H1,"h1"),hn.H2,"h2"),hn.H3,"h3"),hn.H4,"h4"),hn.H5,"h5"),hn.H6,"h6"),bn.Dark,"text-dark"),bn.White,"text-white");const Ln="b5ljD",Cn="dj_1H",xn="UBcVE",Sn="fGBlR",Nn="lkPfM";function Tn(e){var t,n,i,r=wn[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||hn.H6],o=wn[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||bn.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Ln)},a.createElement("div",{className:"".concat(Cn," ").concat(xn," d-flex"),style:{backgroundImage:"url('".concat(v.j.getUrlById(e.imageCdnUrl,m.__.Banners,e.metadata.imageId,m.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Nn," ").concat(e.widgetTypeId===ue.z.Blurb?xn:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(r," ").concat(o," mb-0")},e.name),(null===(i=e.metadata.cta)||void 0===i?void 0:i.text)&&a.createElement(Z.h,{svgName:f.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function On(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var i="btn btn-outline-dark text-nowrap me-3";return(null===(n=e.cta)||void 0===n?void 0:n.icon)?a.createElement(Z.h,{svgName:kn[e.cta.icon],className:i,openInNewTab:!0},e.cta.text):a.createElement("div",{className:i},e.cta.text)}function jn(e){return a.createElement(x.F,{appLink:e.appLink,className:"text-decoration-none",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("MQAsk")},a.createElement("div",{className:"".concat("Sk9ox"," d-flex justify-content-between align-items-center"),style:e.style},!!e.heading&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white text-shadow h4 clamp-1"},e.heading)),a.createElement(On,{cta:e.cta}))))}function Pn(e){var t,n,i,r=At.m.first(e.content),o={location:s.LZ.Classification,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Banner};return a.createElement(jn,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,r),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(v.j.createBannerUrl(r.banner,{fallbackBaseUrl:"",fallbackCategoryName:r.name,type:m.__.Banners},{size:m.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(i=e.metadata)||void 0===i?void 0:i.cta})}function Dn(e){var t=e.hasPermissions(Dt.C.ManageSubjectPreferences)||e.hasLocalPermissions(Dt.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l={entity:s.py.Presentation,actionType:s.Vw.Click,location:s.LZ.HeroBannerSmallWidget};return a.createElement(x.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:l},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Ln)},a.createElement("div",{className:"".concat(Cn," ").concat(Sn),style:{backgroundImage:"url('".concat(v.j.getUrlById(e.imageCdnUrl,m.__.Banners,e.metadata.imageId,m.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(Nn," ").concat(Sn," px-3")},a.createElement("p",{className:"h6 mb-0"},i," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map(function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")}),"or ",n(At.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function An(e){switch(e.widgetTypeId){case ue.z.Blurb:return a.createElement(Tn,Object.assign({},e,{content:e.content}));case ue.z.Presentations:return a.createElement(Dn,Object.assign({},e,{content:e.content}));default:return a.createElement(Pn,Object.assign({},e,{content:e.content}))}}function In(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Ln)},a.createElement("div",{className:"".concat(Nn)}))}function Mn(e){var t,n,i=At.m.first(e.content),r=(0,A.k)(),o={id:i.id,name:i.name,presentationId:i.presentationId},l={location:s.LZ.ClassificationListItem,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail};return a.createElement(jn,{heading:e.name,appLink:function(){var t,n,a,r,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case j.NK.TopicDirectory:return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===r?void 0:r.call(a,i);case j.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,i);case j.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,i)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=i.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:r.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function Vn(e){var t,n,i,r,o,l,c,d=null===(t=e.content)||void 0===t?void 0:t[0],u="thumbnail"in d&&v.j.createUrl(null===(n=d.thumbnail)||void 0===n?void 0:n.url,{size:m.h2.Medium}),p="metadata"in d&&(null===(i=d.metadata)||void 0===i?void 0:i.backgroundColor),f={backgroundColor:p,backgroundSize:"50%"};u&&(f.backgroundImage="url('".concat(u,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:"presentationId"in d&&d.presentationId}),y={location:s.LZ.ClassificationListItem,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail};return u&&p?a.createElement(jn,{heading:e.name,appLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===o?void 0:o.call(r,d),analyticsData:g,analyticsOptions:y,style:f,cta:Object.assign({text:R.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(c=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==c?c:{})}):a.createElement(An,Object.assign({},e))}var Fn=n(43306),Bn=n(2948),Rn=n(19476),zn=n(25925),Wn=n(21750),Hn=n(1666),_n=(n(99940),n(97395)),Zn=n(1651),Un=n(56050);function Gn(e){return Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gn(e)}function Yn(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,qn(a.key),a)}}function qn(e){var t=function(e){if("object"!=Gn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gn(t)?t:t+""}var Kn,$n,Qn=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)},(t=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,a=e.sort,i=e.cursor;n&&(this.id=n),a&&(this.sort=a),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return Zn.Ry.throw(new Un.H("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&Yn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Xn(e){return Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xn(e)}function Jn(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ea(a.key),a)}}function ea(e){var t=function(e){if("object"!=Xn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xn(t)?t:t+""}function ta(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ta=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},na(e)}function aa(e,t){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aa(e,t)}n(20588),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyUpdated="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa"}(Kn||(Kn={})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}($n||($n={}));var ia=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kn.Newest,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$n.OwnedByMe;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=na(t),function(e,t){if(t&&("object"==Xn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ta()?Reflect.construct(t,n||[],na(e).constructor):t.apply(e,n))}(this,t,[{collectionPrefix:"user:playlists",cursor:a,sort:n}])).type=i,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aa(e,t)}(t,e),n=t,(a=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&Jn(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(Qn),ra=n(62803),oa=(n(5960),n(4594)),la=(n(78417),n(17447)),ca=n(61699),sa=n(31949),da=n(22902),ua=n(37802),ma=n(75795);function pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var va={HIGH:.75,MODERATE:.5};function fa(e){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(e)}function ga(e,t,n){return(t=function(e){var t=function(e){if("object"!=fa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ya;!function(e){e.Small="small",e.Large="large",e.ExtraSmall="extraSmall"}(ya||(ya={}));var ha,ba=ga(ga(ga({},ya.ExtraSmall,{size:2}),ya.Small,{size:2}),ya.Large,{size:5.8});function Ea(e){var t=ba[e].size,n=e===ya.Large?.36:.2;return"".concat(t/2-2*n,"rem")}function ka(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:va;return e>=t.HIGH?"PXLNj":e>=t.MODERATE?"ZckRN":"slBRg"}function wa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:va;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function La(e,t){var n="d-inline-block ".concat("p8Vgz");return e===ya.Large&&(n+=" ".concat("N8KCI")),e===ya.ExtraSmall&&(n+=" ".concat("RPqZ2")),Ca(t)&&(n+=" ".concat("DKrcq")),n}function Ca(e){return"number"!=typeof e}function xa(e){var t=a.useCallback(function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,i=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=i.toString()}},[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:Ea(e.size),className:"asGGE"}),!Ca(e.percentage)&&a.createElement("circle",{ref:t,r:Ea(e.size),className:ka(e.percentage,e.scoreThresholds)}))}function Sa(e){var t,n,i=function(e){if(!Ca(e))return+e.toFixed(2)}(e.percentage),r=e.size||(e.layout===ha.LabelInside?ya.Large:ya.Small),o=e.customLabel||(Ca(n=i)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===ha.LabelOnly?a.createElement("span",{className:wa(i)},o):a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===ha.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:La(r,i)},a.createElement(xa,{percentage:i,size:r,scoreThresholds:e.scoreThresholds}),e.layout===ha.LabelInside&&a.createElement("span",{className:"tpmLR"},o)))}!function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(ha||(ha={})),Sa.defaultProps={layout:ha.CircleOnly};var Na=n(64818);var Ta="widgets.onboardingSteps",Oa=R.T.encloseNamespace(Ta);function ja(e){var t,n,i,o,l,c,m,p,v=function(e){var t,n,i,o,l,c,s,d,u=(s=(0,Bn.D)("has:playlist",null),d=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(s,d)||function(e,t){if(e){if("string"==typeof e)return pa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pa(e,t):void 0}}(s,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=u[0],p=u[1],v=r.a.useBasicFetch(sa.N.currentUser()),f=r.a.useBasicFetch((null===(t=v.data)||void 0===t?void 0:t.isAuthenticated)&&sa.N.user(v.data.id)),g=r.a.useBasicFetch((null===(n=v.data)||void 0===n?void 0:n.isAuthenticated)&&Hn.h.customer(v.data.customerId)),y=r.a.useBasicFetch(Wn.x.availablePresentations(zn.R.Subject)),h=r.a.useBasicFetch(Wn.x.presentation(zn.R.Subject)),b=r.a.useBasicFetch(Wn.x.availablePresentations(zn.R.Curriculum)),E=r.a.useBasicFetch((i=new ia,o=i.sort,l=i.type,c={sort:o,query:"{limit:100}".concat(ra.v.PLAYLIST_COLLECTION,",_isClickViewCurated,_liteOwner")},i.cursor&&(c.cursor=i.cursor),{url:_n._.urlBuilder("/api/domain/v2/me/playlists/".concat(l),c),key:i.toString()})),k=r.a.useBasicFetch(ca.o.mySubjectPreferences()),w=(0,da.T)().hasPermissions;a.useEffect(function(){var e,t,n,a;E.hasCompleted&&m!==!!(null===(t=null===(e=E.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&p(!!(null===(a=null===(n=E.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))},[E.hasCompleted]);var L=v.hasCompleted&&f.hasCompleted&&g.hasCompleted&&y.hasCompleted&&b.hasCompleted&&h.hasCompleted&&E.hasCompleted&&k.hasCompleted&&null!==m,C=(0,ua.r)(null).userSettings;return{getPathway:function(){var t,n,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.jobTitleOverride||(null===(a=null===(n=null===(t=f.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),o=i.preferredPresentationOverride||h.data;return L?Rn.m.getOnboardingPathway({jobTitle:r,userSettings:C.data,presentations:y.data,curriculums:b.data,preferredSubjects:k.data,preferredPresentation:o,appLink:ma.O.getCurrentRoute().appLink,appLinks:e,masterUser:f.data,customer:g.data,hasPlaylist:m,hasPermissions:w,currentUser:v.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:L}}(null!==(i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==i?i:{}),g=v.getPathway,y=v.hasLoadedPathway,h=y&&g(),b=Na.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||y&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(Dt.C.ViewOnboarding)&&!h.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var E=function(){if(e.isPreviewing)return{};var t=Fn.H[h.currentScreen],n=h.screens[h.currentScreen],a=null==n?void 0:n.next,i=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:i,progress:Rn.m.getProgress(h)},Rn.m.getOnboardingScreenStates(h))}(),k=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Rn.m.getProgress(h);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),w=k.overallPercentage,L=k.totalScreens,C=k.currentStepNumber;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative d-flex align-items-center ".concat("QU4re")},a.createElement("div",{className:"".concat("zmH98")},a.createElement("div",{className:"T9LAC"},a.createElement(Sa,{percentage:Math.round(w)/100,layout:ha.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(o=Fn.H["select-videos"])||void 0===o?void 0:o.getWidgetHeading(b):null===(l=Fn.H[h.currentScreen])||void 0===l?void 0:l.getWidgetHeading(b)),a.createElement("div",{className:"dTKo5"},a.createElement(d.x,{svgName:f.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var i=Fn.H[e];return t===n?"".concat(Oa("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat(Oa("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat(Oa("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":h.currentScreen,C,L,b))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(c=e.imageUrls)||void 0===c?void 0:c.onboardingTeacherBackground,"')")}},a.createElement(x.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.onboardingStep)||void 0===p?void 0:p.call(m,null==h?void 0:h.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:E,analyticsOptions:{actionType:s.Vw.Click,entity:s.py.User,location:s.LZ.OnboardingStepsWidget,descriptor:s.Ix.FinishPersonalising}},a.createElement(u.x,{namespace:Ta,phrase:"completeSetup"}))))}function Pa(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Da=n(31015),Aa=n(68626),Ia=n(80143);var Ma=a.memo(function(e){var t,n=e.data,r=e.context,o=e.thumbnailSize,l=e.preloadImage,c=e.presentationAudiences,s=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,d=(0,Ia.n)(s,c),u=(0,A.k)(),m="JSM4l";return r.type===j.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(rt.u,{video:e.data,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,type:e.preventPopout||u.xs?"static":"popout",textPosition:Aa.z.Below,appLink:e.getAppLink(n),imageOptions:{size:o},preload:l,audience:d,hideRating:!!d,hideDuration:!1,onClickRemove:i.q.isFunction(e.onClickRemoveItem)&&function(){return e.onClickRemoveItem(n.id,n.name)},removeButtonTooltip:e.removeButtonTooltip,commonVideoProps:e.commonVideoProps}))});function Va(e){var t,n,i,r,o,l,c,s,d,u=Da.u[e.widgetTypeId],m=It.d.getVideoContent(e.content);return a.createElement(C.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:m,childComponent:Ma,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectTitle,hideSeries:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectSeries,showVideoGuidance:la.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:It.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:It.d.showRemoveButton(e.widgetTypeId)?R.T.getPhrase("widgets.popoutThumbnailSlidingListLarge","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(c=null===(l=u.getCollectionAppLink)||void 0===l?void 0:l.call(u,e.appLinks,e.content))&&void 0!==c?c:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===d?void 0:d.call(s,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}function Fa(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Ba=R.T.encloseNamespace("shared.subjectStatsBadge");function Ra(e){return a.createElement("div",{className:function(){var t="fw-semibold d-inline-block rounded-pill px-2 ".concat("NWZxu");switch(e.badgeType){case"coming-soon":return t+" bg-light ps-1 d-inline-flex align-items-center";case"new-topic":return t+" ".concat("KLRzE");case"new-videos":return t+" ".concat("xozwy");default:return""}}()},"coming-soon"===e.badgeType&&a.createElement(d.x,{svgName:f.vn.Timer,className:"svg-container ".concat("G9W_I"),size:d.S.ExtraSmall}),function(){switch(e.badgeType){case"coming-soon":return Ba("comingSoon");case"new-topic":return Ba("new");case"new-videos":return Ba("newVideos",{smartCount:e.newVideoCount});default:return""}}())}function za(e){if(e.isTertiaryCustomerWithoutExchange||e.widgetTypeId!==ue.z.ClassificationLatestReleasedVideosV2||!e.classification)return a.createElement(a.Fragment,null);var t=me.i.getCounts(e.classification).childDashboardNewVideoCount;return t?a.createElement("div",{className:"ms-2"},a.createElement(Ra,{badgeType:"new-videos",newVideoCount:t})):a.createElement(a.Fragment,null)}function Wa(e){var t,n,i,r,o,l,c,s,d,u=Da.u[e.widgetTypeId],m=It.d.getVideoContent(e.content);return a.createElement(C.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.Row,contents:O.z.Videos,collection:m,childComponent:Ma,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectTitle,hideSeries:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectSeries,showVideoGuidance:la.M.showVideoGuidance(e.hasPermissions),preventPopout:e.preventPopout,showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:It.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:It.d.showRemoveButton(e.widgetTypeId)?R.T.getPhrase("widgets.popoutThumbnailSlidingListSmall","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(c=null===(l=u.getCollectionAppLink)||void 0===l?void 0:l.call(u,e.appLinks,e.content))&&void 0!==c?c:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===d?void 0:d.call(s,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,headingBadgeComponent:a.createElement(za,Object.assign({},e))})}function Ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var _a=function(e){var t,n,i=(t=(0,A.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(i),function(e){if(Array.isArray(e))return Ha(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ha(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat("hMoHO"," partial-loading-background rounded-3")}))})))},Za=n(56210);function Ua(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement("ul",{className:"list-unstyled mx-n1 mb-n2 row"},e.content.map(function(t){return a.createElement("li",{key:t.id,className:"px-1 col-lg-3 col-md-4 col-sm-6 col-xs-12"},a.createElement(x.F,{appLink:e.appLinks.series(t),className:"d-block mb-2",analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,name:t.name}),analyticsOptions:{entity:s.py.Series,actionType:s.Vw.Click,descriptor:s._S.TallPoster,location:s.LZ.PosterFixedListLargeWidget}},a.createElement(Za.r,{series:t,presentationAudiences:e.audiences,preloadImage:!1})))})))}function Ga(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),i=Object.assign(Object.assign({},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Series,descriptor:s._S.TallPoster});return a.createElement(x.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?"PQ2sv":"HZ00X"," "),analyticsData:n,analyticsOptions:i},a.createElement(Za.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function Ya(e){return a.createElement(C.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Series,collection:e.content,childComponent:Ga,extraChildComponentProps:{audiences:e.audiences,hasTableOfContents:e.hasTableOfContents},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},appLink:e.seeMoreLink,showSeeMoreLink:!!e.seeMoreLink,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,headingBadgeComponent:e.badgeComponent})}const qa="fgIje",Ka="CJwKL";var $a=function(e){return a.createElement("div",{className:"".concat(e.type===j.l9.Row?qa:Ka," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function Qa(e){for(var t,n,i=(t=e.type,(n=(0,A.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===j.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement($a,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(D.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var Xa=n(87611),Ja=n(26533);function ei(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.Classification,actionType:s.Vw.Click,descriptor:s._S.TallPoster});return a.createElement("div",{className:(t="VtrLt",e.context.type===j.l9.Row?t+=" ".concat(qa):t+=" ".concat(Ka),t)},a.createElement(Xa.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:m.__.TallPosters,preload:i,imageOptions:{size:m.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(Ja.oy,{type:Ja.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat("P16Yg")},n.name)))}function ti(e){return a.createElement(C.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Subjects,collection:e.content,childComponent:ei,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData})}function ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ai="explore-all-topics";function ii(e){var t,n=function(e){var t,n,a,i,r;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===j.OL.ExploreAllTopics?ai:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?v.j.getUrlById(e.imageCdnUrl,m.__.TallPosters,e.metadata.imageId,m.h2.Medium):""}}}(e),i=It.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(C.k,{id:e.id,name:e.name,appLink:i,description:e.description,type:j.l9.Row,contents:O.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return ni(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return ni(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ni(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,childComponent:ei,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===ai?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function ri(e){var t;return a.createElement("div",null,a.createElement(C.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.SmallSeries,collection:e.content,childComponent:Ga,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}var oi=n(34864);function li(e){var t=At.m.first(e.content),n=t.question,i=t.answer;return a.createElement(oi.$,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const ci="Jg3am";function si(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(ci," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}var di=n(57900),ui=n(96953),mi=n(10038),pi=n(25104);function vi(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var c=a&&a.prototype instanceof l?a:l,s=Object.create(c.prototype);return fi(s,"_invoke",function(n,a,i){var r,l,c,s=0,d=i||[],u=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,c=e,m.n=n,o}};function p(n,a){for(l=n,c=a,t=0;!u&&s&&!i&&t<d.length;t++){var i,r=d[t],p=m.p,v=r[2];n>3?(i=v===a)&&(c=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(l=0,m.v=a,m.n=r[1]):p<v&&(i=n<3||r[0]>a||a>v)&&(r[4]=n,r[5]=a,m.n=v,l=0))}if(i||n>1)return o;throw u=!0,a}return function(i,d,v){if(s>1)throw TypeError("Generator is already running");for(u&&1===d&&p(d,v),l=d,c=v;(t=l<2?e:c)||!u;){r||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(s=2,r){if(l||(i="next"),t=r[i]){if(!(t=t.call(r,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((t=(u=m.n<0)?c:n.call(a,m))!==o)break}catch(t){r=e,l=1,c=t}finally{s=1}}return{value:t,done:u}}}(n,i,r),!0),s}var o={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var d=[][a]?t(t([][a]())):(fi(t={},a,function(){return this}),t),u=s.prototype=l.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,fi(e,i,"GeneratorFunction")),e.prototype=Object.create(u),e}return c.prototype=s,fi(u,"constructor",s),fi(s,"constructor",c),c.displayName="GeneratorFunction",fi(s,i,"GeneratorFunction"),fi(u),fi(u,i,"Generator"),fi(u,a,function(){return this}),fi(u,"toString",function(){return"[object Generator]"}),(vi=function(){return{w:r,m}})()}function fi(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}fi=function(e,t,n,a){if(t)i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n;else{var r=function(t,n){fi(e,t,function(e){return this._invoke(t,n,e)})};r("next",0),r("throw",1),r("return",2)}},fi(e,t,n,a)}function gi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var hi=function(e,t,n,a){return new(n||(n=Promise))(function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,l)}c((a=a.apply(e,t||[])).next())})};function bi(e){var t,n,i,r=gi((0,Bn.D)("should:expand:".concat(e.id),e.isBot,{storage:di.Z1.LocalStorage}),2),o=r[0],l=r[1],u=gi(a.useState(o?"100%":"0px"),2),m=u[0],p=u[1],v=gi(a.useState(null),2),g=v[0],y=v[1],h=a.useRef(null),b=a.useRef(null),E=(0,ui.F)();function k(){var t;return hi(this,void 0,void 0,vi().m(function n(){var a;return vi().w(function(n){for(;;)switch(n.n){case 0:return p("0px"),l(!1),n.n=1,pi.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!1});case 1:if(a=n.v,E.current){n.n=2;break}return n.a(2);case 2:y(a);case 3:return n.a(2)}},n)}))}function w(){var e=document.createElement("p");e.innerHTML=g,e.style.visibility="hidden",e.classList.add("py-1"),h.current.appendChild(e),p("".concat(e.clientHeight-10,"px")),h.current.removeChild(e)}if(a.useEffect(function(){!function(){var t;hi(this,void 0,void 0,vi().m(function n(){var a;return vi().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,pi.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:o});case 1:if(a=n.v,E.current){n.n=2;break}return n.a(2);case 2:y(a),o&&w();case 3:return n.a(2)}},n)}))}()},[null===(t=e.faq)||void 0===t?void 0:t.answer]),(0,mi.H)(function(){o&&k()},null,[o]),!(null===(n=e.faq)||void 0===n?void 0:n.question)||!(null===(i=e.faq)||void 0===i?void 0:i.answer))return a.createElement(a.Fragment,null);var L="question-".concat(e.id),C="answer-".concat(e.id);return a.createElement(Lt.L,{onClick:function(t){pi.R.isLink(t.target)||0===window.getSelection().toString().length&&(c.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),{entity:s.py.Faq,actionType:s.Vw.Click,descriptor:o?s._S.Collapse:s._S.Expand,location:s.LZ.FaqQuestionAccordionWidget}),o?k():function(){var t;hi(this,void 0,void 0,vi().m(function n(){var a;return vi().w(function(n){for(;;)switch(n.n){case 0:return w(),l(!0),n.n=1,pi.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!0});case 1:if(a=n.v,E.current){n.n=2;break}return n.a(2);case 2:y(a);case 3:return n.a(2)}},n)}))}())},"aria-expanded":o,"aria-controls":C,className:"".concat("G1OXf"," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(ci)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(d.x,{svgName:o?f.vn.Minus:f.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal",id:L},e.faq.question)),a.createElement("div",{className:"".concat("z5LRc"),style:{height:m},id:C,"aria-labelledby":L,"aria-live":"polite","aria-hidden":!o},a.createElement("p",{className:"mb-0 py-1 ".concat(pi.R.getContainerClass()),dangerouslySetInnerHTML:{__html:g},ref:b}),a.createElement("div",{ref:h,"aria-hidden":!0,className:pi.R.getContainerClass()})))}function Ei(e){return e.content.length?a.createElement(a.Fragment,null,a.createElement("h2",{className:"curated-widget-heading"},e.name),a.createElement("ul",{className:"list-unstyled mb-n2"},e.content.map(function(t,n){return a.createElement("li",{className:"mb-2",key:n},a.createElement(bi,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))}))):a.createElement(a.Fragment,null)}const ki={container:"wzt8R",bellContainer:"X7Jgx",bell:"HoKe4",followed:"Pdmdk",bellOutline:"bEQDk",cover:"luOU3",fallbackImage:"ReXqz",subText:"p0kUV"};function wi(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(ki.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:ki.partialIcon},a.createElement(Ja.oy,{type:Ja.mS.Subject}))),a.createElement("div",{className:"d-inline-block",style:{flexBasis:"50%"}},a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"19px",width:"100%"}}),a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"16.5px",width:"75%"}})))}var Li=n(2284);function Ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var xi=R.T.encloseNamespace("shared.subjectStatsWidgetItem");function Si(e){var t,n,i,r,o,c,u=(o=a.useState(!1),c=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(o,c)||function(e,t){if(e){if("string"==typeof e)return Ci(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ci(e,t):void 0}}(o,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=u[0],v=u[1],g=(null===(t=e.classification)||void 0===t?void 0:t.status)===Li.W.ComingSoon,y=me.i.isFollowing(e.classification),h=me.i.getCounts(e.classification),b=h.dashboardNewVideosCount,E=h.childDashboardNewVideoCount,k=h.dashboardResourceCount,w=h.childDashboardResourceCount,L=h.dashboardVideoCount,C=h.childDashboardVideoCount,S=h.childClassificationCount,N=L+C,T=k+w,O=b+E,j=function(){if(e.classification.status===Li.W.ComingSoon||e.hideCounts)return"";var t="";if(N&&(t+="".concat(xi("videos",{smartCount:N})," ")),T&&(t+=" • ".concat(xi("resources",{smartCount:T}))),me.i.isTopLevelTopic(e.classification)&&S>0){if(!t)return xi("topics",{smartCount:S});t="".concat(xi("topics",{smartCount:S})," • ")+t}return t}();return a.createElement(x.F,{className:"d-flex no-decoration rounded ".concat(ki.container),appLink:null===(n=e.getAppLink)||void 0===n?void 0:n.call(e,e.classification),analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:null===(i=e.classification)||void 0===i?void 0:i.id,name:null===(r=e.classification)||void 0===r?void 0:r.name,presentationId:e.classification.presentationId,comingSoon:!!g,videoCount:N,resourceCount:T,newVideoCount:O,datePublished:e.classification.datePublished,countsHidden:!!e.hideCounts}),analyticsOptions:Object.assign(Object.assign({location:s.LZ.SubjectStatsWidgetItem},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Cover})},!p&&a.createElement(Ja.oy,{type:Ja.mS.Subject,extraClasses:"ms-2 rounded-end-lg ".concat(ki.fallbackImage)}),a.createElement("div",{className:"".concat(ki.cover," me-2 rounded overflow-hidden")},a.createElement(Xa.Z,{data:e.classification.cover,imageOptions:{size:m.h2.Medium},imageClassName:g?"opacity-50":"",onLoad:function(){return v(!0)}},e.canFollowTopics&&a.createElement(Lt.L,{onClick:function(t){var n;t.stopPropagation(),t.preventDefault(),e.canFollowTopics&&(null===(n=e.onToggleFollowClassification)||void 0===n||n.call(e,e.classification,s.LZ.SubjectStatsWidgetItem))},className:"\n align-items-center justify-content-center cursor-pointer\n ".concat(ki.bellContainer," ").concat(y?ki.followed:"","\n ")},a.createElement(d.x,{svgName:f.vn.BellFilled,className:"svg-container ".concat(ki.bell)}),a.createElement(d.x,{svgName:f.vn.Bell,className:"svg-container ".concat(ki.bellOutline)})))),a.createElement("div",null,a.createElement("h3",{className:"h6 mb-0 clamp-2 mt-1"},e.classification.name),!!j&&a.createElement("p",{className:"mb-0 ".concat(ki.subText)},j),a.createElement(Ra,{badgeType:function(){if(e.classification.status===Li.W.ComingSoon)return"coming-soon";var t=e.classification.datePublished;return t&&l.O.timeSince(t,"day")<=30?"new-topic":O>0&&!e.hideCounts?"new-videos":null}(),newVideoCount:O})))}function Ni(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(M.Z,{className:"mb-n2"},e.content.map(function(t){var n;return a.createElement(V.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(Si,{classification:t,analyticsData:e.analyticsData,getAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classification,onToggleFollowClassification:e.onToggleFollowClassification,canFollowTopics:!1,hideCounts:e.isTertiaryCustomerWithoutExchange}))})))}var Ti=n(63112);function Oi(){return a.createElement("div",{className:"me-2"},a.createElement(Ti.o,null))}var ji=n(30699);function Pi(e){return function(e){if(Array.isArray(e))return Di(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Di(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Di(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Di(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Ai(e){var t=e.getSelectedItems(e.widgetTypeId),n=e.content.filter(function(e){return!t.find(function(t){return t.id===e.id})}),i=[].concat(Pi(t),Pi(n));function r(t){Xt.C$.trigger(e.appLinks.tag(t))}return a.createElement(ye.eb,{collection:i,childComponent:function(e){return a.createElement(ji.a,Object.assign({},e,{selectedItems:t,onClick:r}))},partialLoadingComponent:Oi,partialLoadingOptions:{numItems:4}})}function Ii(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Mi(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Ii,null),a.createElement(Ii,null))}var Vi=n(84431);function Fi(e){var t,n,i=At.m.first(It.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(Vi.J,{video:i,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:la.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,commonVideoProps:e.commonVideoProps}))}var Bi=n(18967),Ri=n(88711);function zi(e){var t,n,i,r,o,l,c=e.folder.thumbnail?_n._.urlBuilder(e.folder.thumbnail.url,{size:m.h2.Small}):null,d=null===(r=null===(i=null===(n=null===(t=e.folder)||void 0===t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===i?void 0:i[0])||void 0===r?void 0:r.owner,u=e.showOwnerLogo&&(null===(o=null==d?void 0:d.logo)||void 0===o?void 0:o.url)?_n._.urlBuilder(d.logo.url,{size:m.h2.Small}):null,p=null===(l=e.getFolderActions)||void 0===l?void 0:l.call(e,e.folder),v=e.analyticsData?Object.assign({id:e.folder.id.toString(),name:e.folder.name},e.analyticsData):void 0,f=e.analyticsOptions?Object.assign({actionType:s.Vw.Click,entity:s.py.Folder},e.analyticsOptions):void 0;return a.createElement(Ri.j,{draggable:e.drag&&{id:e.folder.id,data:e.folder},droppable:e.drop&&{id:e.folder.id,data:e.folder},dropStye:"kvCLS",dragStyle:"md9Na"},a.createElement("div",{className:"position-relative"},a.createElement(x.F,{className:"rounded-3 d-block text-decoration-none",appLink:e.getAppLink(e.folder),title:e.folder.name,analyticsData:v,analyticsOptions:f},a.createElement(Xa.Z,{data:c,imageType:m.__.Thumbnails,imageClassName:"rounded-top-lg"},a.createElement(Ja.oy,{name:e.folder.name,type:Ja.mS.Folder,extraClasses:"rounded-top-lg"})),a.createElement("h3",{className:"bg-white border-start border-end border-bottom rounded-bottom-lg font-size-normal fw-semibold mb-0 p-2"},a.createElement("span",{className:"text-truncate d-block"},e.folder.name))),(null==p?void 0:p.length)&&a.createElement(Bi.e,{actions:p,className:"xM37V",actionsDropdownClassName:"cN3nB",dropdownToggleSvgSize:null}),!!u&&a.createElement("img",{src:u,className:"rounded-circle ".concat("g3JFo"),alt:"".concat(null==d?void 0:d.name," logo"),title:(null==d?void 0:d.name)||""})))}function Wi(e){function t(t){var n,a,i;if(e.widgetTypeId===ue.z.SearchMySchoolLibraryFolder){var r=null===(i=null===(a=null===(n=null==t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===a?void 0:a[0])||void 0===i?void 0:i.id;return e.appLinks.folder(t,{libraryId:r})}return e.appLinks.folder(t)}var n=e.widgetTypeId===ue.z.SearchMySchoolLibraryFolder;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map(function(i,r){var o="function"==typeof e.getAnalyticsData?e.getAnalyticsData(r):{};return a.createElement(V.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(zi,{folder:i,getAppLink:t,showOwnerLogo:n,analyticsData:o,analyticsOptions:{location:s.LZ.ThumbnailFixedListFolderSmallWidget}}))})))}function Hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function _i(e){var t,n={};return e.data.fallbackBackgroundColor&&(n.backgroundColor=e.data.fallbackBackgroundColor),e.data.backgroundColor&&(n.backgroundColor=e.data.backgroundColor),e.data.thumbnailUrl&&(n.backgroundImage="url('".concat(e.data.thumbnailUrl,"')")),a.createElement("div",{className:(0,o.A)("d-flex position-relative rounded-3 h-100","gKcbE",e.isLarge?"Ldth1":"z6ZxE"),style:n},a.createElement("div",{className:(0,o.A)("aOotU",!e.isLarge&&"justify-content-center")},a.createElement("div",{className:"".concat("w5WZ1")},e.data.preTitle&&e.data.preTitle.length&&a.createElement("p",{className:"".concat("ReAEa"," mb-1 text-white"),title:e.data.preTitle},e.data.preTitle),a.createElement("p",{title:e.data.name,className:(0,o.A)("h5 text-shadow hover-text-underline","bSXFz",e.isLarge?"mb-0 text-wrap clamp-2":"text-wrap clamp-3")},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start text-shadow ".concat("XjSFw")},a.createElement("p",{className:"clamp-3",title:e.data.description},e.data.description))),e.isLarge&&a.createElement("div",{className:"c28_J"},a.createElement("div",{className:(0,o.A)(!e.appLink&&"cursor-default","btn btn-outline-dark")},(null===(t=e.data)||void 0===t?void 0:t.buttonText)||R.T.getPhrase("shared.thumbnailWidgetItem","buttonLabel")))),!e.data.thumbnailUrl&&!!e.data.coverUrl&&a.createElement("div",{className:"".concat("liG0R"),style:{backgroundImage:"url('".concat(e.data.coverUrl,"')")}}))}var Zi=a.memo(function(e){return e.appLink?a.createElement(x.F,{className:"YtffT",appLink:e.appLink,appLinkOptions:e.appLinkOptions,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement(_i,Object.assign({},e))):a.createElement(_i,Object.assign({},e))}),Ui=R.T.encloseNamespace("shared.thumbnailFixedListLargeWidgetTemplate");function Gi(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map(function(t){return a.createElement(V.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(Zi,Object.assign({},function(e){var t,n,a,i,r,o,l,c,d,u={data:{name:e.item.name,description:e.item.description}},p=(null===(t=e.item)||void 0===t?void 0:t.status)===Li.W.ComingSoon,f=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!p}),g=Object.assign(Object.assign({location:s.LZ.ClassificationListItem},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail});return Object.assign(Object.assign({},u),{data:Object.assign(Object.assign({},u.data),{backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:v.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:m.h2.Small}),thumbnailUrl:v.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:m.h2.Medium}),buttonText:Ui("exploreTopic")}),appLink:null===(d=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===d?void 0:d.call(c,e.item),isLarge:!0,analyticsData:f,analyticsOptions:g})}({appLinks:e.appLinks,item:t,analyticsData:e.analyticsData}))))})))}const Yi="HwejH";var qi=function(){return a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"15rem"}}))},Ki=n(89452);function $i(e){var t,n,i,r=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),o=a.useRef(null),l={actionType:s.Vw.Click,entity:la.M.getAnalyticsEntity(e.video),location:s.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:s._S.Thumbnail},c=(0,Ia.n)(null===(i=e.video.subjectPresentationAudiences)||void 0===i?void 0:i.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:o},a.createElement(rt.u,{analyticsData:e.analyticsData,analyticsOptions:l,video:e.video,appLink:r,imageOptions:{size:m.h2.Medium},textPosition:Aa.z.Independent,type:"static",audience:c,hideRating:!!c,commonVideoProps:Object.assign(Object.assign({},e.commonVideoProps),{subTextType:"none"})})),a.createElement(Ki.h,{video:e.video,appLink:r,commonVideoProps:e.commonVideoProps}),la.M.showVideoGuidance(e.hasPermissions)&&a.createElement(ot.u,{commonVideoProps:e.commonVideoProps,video:e.video,analyticsData:e.analyticsData,analyticsOptions:l,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function Qi(e){var t=It.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map(function(t){return a.createElement($i,Object.assign({key:t.id,video:t},e))})))}function Xi(e){return a.createElement("h3",{title:e.title,className:"h6"},e.title)}function Ji(e){return e.appLink?a.createElement(x.F,{appLink:e.appLink,className:"".concat("OsWjL")},a.createElement(Xi,Object.assign({},e))):a.createElement(Xi,Object.assign({},e))}var er=n(26117),tr=n(45778);const nr="M4zat";var ar="shared.collectionThumbnail";function ir(e){var t,n,i,r,o=function(){var t,n=null===(t=e.collection)||void 0===t?void 0:t.videos;if(n){if(!n.count&&e.collection.typeId===oa.E.Playlist){var a=e.collection;a.clips.count&&(n=a.clips),a.interactives.count&&(n=a.interactives)}return At.m.first(n.data)}}(),l=function(){var t,n,a=0;if(e.collection.videos&&e.collection.videos.count&&(a+=e.collection.videos.count),e.collection.typeId===oa.E.Playlist){var i=e.collection;(null===(t=i.interactives)||void 0===t?void 0:t.count)&&(a+=i.interactives.count),(null===(n=i.clips)||void 0===n?void 0:n.count)&&(a+=i.clips.count)}return a}(),c=(null===(t=e.title)||void 0===t?void 0:t.length)||(null===(n=e.subText)||void 0===n?void 0:n.length),m=Object.assign({id:e.collection.id.toString(),name:e.collection.name},e.analyticsData),p=Object.assign({actionType:s.Vw.Click,entity:(r=e.collection,tr.G.isType(r,oa.E.Playlist)?s.py.Playlist:tr.G.isType(r,oa.E.Series)?s.py.Series:void 0)},e.analyticsOptions);return a.createElement("div",null,a.createElement("div",{className:"position-relative ".concat("uD9dz"," z-1")},a.createElement(x.F,{appLink:e.appLink,analyticsData:m,analyticsOptions:p,preventFocus:!0},e.showMask&&a.createElement("div",{className:"".concat("r0Ztg"," position-absolute w-100 h-100 rounded-3 bg-dark bg-gradient z-1 bg-opacity-50 pointer-events-none")},a.createElement("div",{className:"".concat(nr," d-flex align-items-center w-fit flex-grow-0 bg-dark rounded-pill ps-1 m-2")},a.createElement(d.x,{svgName:f.vn.Play,className:"svg-container text-white"}),a.createElement("p",{className:"d-inline fw-medium text-white mb-0"},(null===(i=e.hoverText)||void 0===i?void 0:i.length)?a.createElement("span",null,e.hoverText):a.createElement(u.x,{namespace:ar,phrase:"playAll"})))),o&&a.createElement(rt.u,{video:o,imageOptions:e.imageOptions,textPosition:Aa.z.Independent,type:"cosmetic",hideMask:!0,hideRating:!0,hideDuration:!0,hideVideoTypeBadge:!0}),!o&&a.createElement("div",{className:"ratio ratio-16x9 bg-light rounded-3"},a.createElement("div",{className:"d-flex justify-content-center align-items-center"},a.createElement(d.x,{svgName:f.vn.Play,className:"w-33 opacity-25 text-gray-400"}))),e.showVideoCount&&a.createElement("div",{className:"".concat(nr," d-flex align-items-center w-fit bg-dark bg-opacity-75 rounded-pill position-absolute bottom-0 end-0 ps-1 m-2")},a.createElement(d.x,{svgName:f.vn.Series,className:"svg-container text-white me-1"}),a.createElement("p",{className:"d-inline fw-semibold text-white mb-0"},e.onlyCount?a.createElement("span",null,l):a.createElement(u.x,{namespace:ar,phrase:"videos",options:{count:l,smartCount:l}}))))),c&&a.createElement("div",{className:"mt-2 d-flex flex-column"},e.subText&&a.createElement(er.m,{title:e.subText,appLink:e.subTextAppLink},e.subText),e.title&&a.createElement(Ji,{title:e.collection.name,appLink:e.titleAppLink})))}function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function or(e,t,n){return(t=function(e){var t=function(e){if("object"!=rr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lr=R.T.encloseNamespace("widgets.thumbnailFixedListMediaSmallWidgetTemplate");function cr(e){var t=or(or({},oa.E.Playlist,lr("playlist")),oa.E.Series,lr("series")),n=or(or({},oa.E.Playlist,lr("viewPlaylist")),oa.E.Series,lr("viewSeries"));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n3"},e.content.map(function(i,r){var o,l=(o=i,tr.G.isType(o,oa.E.Playlist)?e.appLinks.playlist(o):tr.G.isType(o,oa.E.Series)?e.appLinks.series(o):void 0),c=t[null==i?void 0:i.typeId],d=n[null==i?void 0:i.typeId];return a.createElement(V.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"mb-3 px-1"},a.createElement(ir,{collection:i,appLink:l,analyticsOptions:{location:s.LZ.ThumbnailFixedListMediaSmallWidget},analyticsData:e.getAnalyticsData(r),title:null==i?void 0:i.name,titleAppLink:l,imageOptions:{size:m.h2.Medium},subText:c,subTextAppLink:l,hoverText:d,showVideoCount:!0,showMask:!0}))})))}function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function dr(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},([ue.z.SearchRelevantTopics,ue.z.SearchCompanies].includes(e.widgetTypeId)||e.widgetTypeId!==ue.z.TrendingClassifications&&e.widgetTypeId!==ue.z.LatestReleasedClassifications?e.content:e.content.length<6?e.content.slice(0,3):e.content).map(function(t,n){var i="function"==typeof e.getAnalyticsData?e.getAnalyticsData(n):e.analyticsData,r=function(e){var t,n,a,i,r,o,l,c,d,u,p,f,g,y,h={data:{name:e.item.name,description:e.item.description}};if(tr.G.isType(e.item,oa.E.Subject)){var b=(null===(t=e.item)||void 0===t?void 0:t.status)===Li.W.ComingSoon,E=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!b}),k=Object.assign(Object.assign({location:s.LZ.ThumbnailFixedListSmallWidget},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail}),w=e.widgetTypeId===ue.z.SearchRelevantTopics&&function(e,t){if(e&&t){var n=t.find(function(t){return t.id&&t.id===e.presentationId});if(n)return n.name}}(e.item,e.availablePresentations);return Object.assign(Object.assign({},h),{data:Object.assign(Object.assign({},h.data),{preTitle:w,backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:v.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:m.h2.Small}),thumbnailUrl:v.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:m.h2.Medium})}),appLink:null===(d=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===d?void 0:d.call(c,e.item),analyticsData:E,analyticsOptions:k})}return tr.G.isType(e.item,oa.E.Company)?Object.assign(Object.assign({},h),{data:Object.assign(Object.assign({},h.data),{coverUrl:v.j.createUrl(null===(u=e.item.logo)||void 0===u?void 0:u.url,{size:m.h2.Small}),backgroundColor:null===(p=e.item.metadata)||void 0===p?void 0:p.colour}),appLink:null===(g=null===(f=e.appLinks)||void 0===f?void 0:f.company)||void 0===g?void 0:g.call(f,e.item),appLinkOptions:null===(y=e.appLinkOptions)||void 0===y?void 0:y.company(e.item)}):h}({item:t,widgetTypeId:e.widgetTypeId,appLinks:e.appLinks,analyticsData:i,availablePresentations:e.availablePresentations,appLinkOptions:e.appLinkOptions});return a.createElement(V.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(Zi,Object.assign({},r)))})))}function ur(e){var t,n,i,r,o,l,c=At.m.first(e.content),d=v.j.createUrl(null===(t=c.thumbnail)||void 0===t?void 0:t.url,{size:m.h2.Medium}),u=null===(n=c.metadata)||void 0===n?void 0:n.backgroundColor,p={backgroundColor:u};d&&(p.backgroundImage="url('".concat(d,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:c.id,name:c.name,presentationId:c.presentationId}),g={location:s.LZ.ClassificationListItem,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail};return d&&u?a.createElement(a.Fragment,null,a.createElement(x.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,c),className:"text-decoration-none",analyticsData:f,analyticsOptions:g},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:p},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},c.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||R.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(vn,Object.assign({},e))}var mr=n(45756);function pr(e){var t,n,i,r,o,l,c,d,u=At.m.first(It.d.getVideoContent(e.content)),p=a.useRef(null),v=(0,Ia.n)(null===(t=u.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),f=la.M.hasSeries(u)||It.d.isCompanyWidget(e.widgetTypeId),g={actionType:s.Vw.Click,entity:la.M.getAnalyticsEntity(u),location:s.LZ.ThumbnailHeroMediaWidget},y=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,h=la.M.getCanBeConsumed(u).canNavigate;return u?a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{ref:p},a.createElement(rt.u,{video:u,imageOptions:{size:m.h2.Large},type:"static",textPosition:Aa.z.Independent,analyticsOptions:g,audience:v,hideRating:!!v,appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.videoType)||void 0===r?void 0:r.call(i,u,{}),commonVideoProps:e.commonVideoProps})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,la.M.isVideo(u)&&a.createElement(ct.$,{type:It.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.commonVideoProps.subTextType,video:u,appLink:null===(l=(o=e.commonVideoProps).getSubTextAppLink)||void 0===l?void 0:l.call(o,u),analyticsOptions:g,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:f?"":"mt-2"},a.createElement(x.F,{appLink:null===(d=null===(c=e.appLinks)||void 0===c?void 0:c.videoType)||void 0===d?void 0:d.call(c,u,{}),analyticsData:{id:u.id,name:u.name},analyticsOptions:Object.assign(Object.assign({},g),{descriptor:s._S.Title}),className:"d-inline-block ".concat(h?"":"cursor-default text-decoration-none disabled"),disabled:!h},a.createElement(mr.O,{video:u,yearGroups:e.commonVideoProps.yearGroups,showNewVideoIndicator:y,showPadlock:!e.commonVideoProps.hasStudentExperience,titleSize:"h4",className:"mb-0"})))),la.M.showVideoGuidance(e.hasPermissions)&&a.createElement(ot.u,{video:u,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD"),commonVideoProps:e.commonVideoProps}))):a.createElement(a.Fragment,null)}function vr(e){var t,n;return a.createElement(C.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:e.content,childComponent:tn,extraChildComponentProps:{commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}function fr(e){var t,n;return a.createElement(C.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:tn,extraChildComponentProps:{commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}var gr=n(74237),yr=n(47198);var hr=a.memo(function(e){var t,n,i=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,r=(0,Ia.n)(i,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(rt.u,{video:e.data,preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,type:"static",appLink:e.getAppLink(e.data),imageOptions:{size:e.thumbnailSize},textPosition:Aa.z.Below,audience:r,hideRating:!!r,hideDuration:!1,commonVideoProps:e.commonVideoProps}))});function br(e){return la.M.isVideoType(e.data)?a.createElement(hr,Object.assign({},e)):a.createElement(yr.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),gr.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Er(e){var t,n,i=e.hasLocalPermissions(Dt.E.ViewVideoResourceItems);return a.createElement(C.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:br,extraChildComponentProps:{imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,location:"dashboard",titlePosition:"below",actionBehaviour:i?"normal":"public",presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,imageCdnUrl:e.commonVideoProps.imageCdnUrl},getChildAppLink:function(t){var n,a,r,o;return la.M.isVideoType(t)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{}):null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.resource)||void 0===o?void 0:o.call(r,t,t.parentId,i)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}var kr=n(1809);function wr(){return a.createElement(kr.S,{numVideos:3})}var Lr,Cr=n(12754),xr="shared.searchSuggestionsBlurbWidgetTemplate",Sr=R.T.encloseNamespace(xr);function Nr(e){return a.createElement(a.Fragment,null,'"',a.createElement(x.F,{appLink:e.appLink,appLinkOptions:{replace:!0}},a.createElement("span",{className:"text-info hover-text-underline cursor-pointer"},e.name)),'"')}function Tr(e){var t=e.content.splice(0,2);return t.length?a.createElement("div",{className:"rounded-2"},a.createElement(u.x,{phrase:"prompt",namespace:xr})," ",t.map(function(n,i){var r=t.length-1===i;return a.createElement(a.Fragment,{key:n.name},a.createElement(Nr,{appLink:e.appLinks.searchHome({query:n.name},{replace:!0}),name:n.name}),r?"?":a.createElement(a.Fragment,null," ",Sr("or")," "))})):a.createElement(a.Fragment,null)}function Or(e){return Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Or(e)}function jr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Or(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Or(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Or(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pr=(jr(jr(jr(jr(jr(jr(jr(jr(jr(jr(Lr={},de.f.ThumbnailHeroMedia,{getComponent:function(){return pr},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"KjaI4"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(Mi,null))))},icon:f.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){var t=e.targetType;return[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),de.f.PosterSlidingListLarge,{getComponent:function(){return Ya},partialLoading:_a,icon:f.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),de.f.PosterSlidingListMedium,{getComponent:function(){return ti},partialLoading:function(){return a.createElement(Qa,{type:j.l9.LargeRow})},icon:f.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),de.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case ue.z.CuratedClassifications:return ii;case ue.z.CuratedSeries:return ri;default:return ii}},partialLoading:function(){return a.createElement(Qa,{type:j.l9.Row})},icon:f.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Cr.x.StreamableLearning)return!1;switch(n){case ue.z.CuratedClassifications:return[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t);case ue.z.CuratedSeries:return[j.ku.MoviesAndTv,j.ku.Company].includes(t);default:return!1}},className:""}),de.f.ThumbnailFeaturedMedia,{getComponent:function(){return Fi},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(M.Z,null,a.createElement(V.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(V.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(Mi,null))))))},icon:f.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),de.f.CoverFixedPillListLarge,{getComponent:function(){return I.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(5).fill(null).map(function(e,t){return a.createElement(V.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(F.Ml,null)))})))},icon:f.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Cr.x.StreamableLearning?[j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.StatsCoverFixedPillListLarge,{getComponent:function(){return Ni},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(6).fill(null).map(function(e,t){return a.createElement(V.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(wi,null)))})))},icon:f.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory].includes(t)},className:""}),de.f.CoverFixedPillListXSmall,{getComponent:function(){return ne},partialLoading:function(){return a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),a.createElement(M.Z,{className:"mb-2 ".concat(te.row)},Array(8).fill(null).map(function(e,t){return a.createElement(V.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))})))},icon:f.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===Cr.x.StreamableLearning?[j.ku.Discover].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.CoverSlidingPillListSmall,{getComponent:function(){return ge},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ye.QL,{partialLoadingComponent:F.Qh}))},icon:f.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Cr.x.StreamableLearning?n!==ue.z.Classifications&&[j.ku.Discover,j.ku.Company,j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),de.f.CoverFixedTileList,{getComponent:function(){return oe},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ae.YA,{itemClassName:"columns-of-five"}))},icon:f.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),jr(jr(jr(jr(jr(jr(jr(jr(jr(jr(Lr,de.f.FeaturedThumbnailSlidingList,{getComponent:function(){return rn},partialLoading:function(e){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(nn," ").concat(an," mb-1 ")}),a.createElement(Wt.j7,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0,hideHeading:!0}))},icon:f.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.HeroBanner,{getComponent:function(){return vn},partialLoading:fn,icon:f.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.OnboardingSteps,{getComponent:function(){return ja},partialLoading:fn,icon:f.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),de.f.HeroBannerSmall,{getComponent:function(){return An},partialLoading:In,icon:f.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.HeroThumbnailSmall,{getComponent:function(){return Vn},partialLoading:function(){return a.createElement(In,null)},icon:f.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.HeroBlockColourSmall,{getComponent:function(){return Mn},partialLoading:function(){return a.createElement(In,null)},icon:f.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.ClassificationCurriculum].includes(t)},className:""}),de.f.ThumbnailFixedListXLarge,{getComponent:function(){return ur},partialLoading:function(){return a.createElement(fn,null)},icon:f.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.ThumbnailFixedListLarge,{getComponent:function(){return Gi},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return Hi(e)}(t=Array(2))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Hi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hi(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement("div",null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"mx-n1"},n.map(function(e,t){return a.createElement(V.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))})))},icon:f.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.ThumbnailFixedListSmall,{getComponent:function(){return dr},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return sr(e)}(t=Array(3))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return sr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:e.hideDescription}),a.createElement(M.Z,{className:"mx-n1 "},n.map(function(e,t){return a.createElement(V.Z,{key:t,xl:4,md:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))})))},icon:f.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.EditableCoverFixedPillListSmall,{getComponent:function(){return zt},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(M.Z,{className:"g-0"},Array(7).fill(null).map(function(e,t){return a.createElement(V.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(F.Qh,null)))})))},icon:f.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),jr(jr(jr(jr(jr(jr(jr(jr(jr(jr(Lr,de.f.Heading,{getComponent:function(){return un},partialLoading:function(){return a.createElement("div",{className:"curated-widget-header"},a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),a.createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:f.vn.WidgetTemplateHeading,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.Discover].includes(t)},className:"heading-widget-template"}),de.f.AuthorReviewer,{getComponent:function(){return w},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(L,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(L,null)))},icon:f.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.Question,{getComponent:function(){return li},partialLoading:function(){return a.createElement("div",{className:"".concat("QrLg2"," rounded-3")},a.createElement("div",{className:"mb-2 partial-loading-background",style:{height:"1.5rem",width:"75%"}}),a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"100%"}}))},icon:f.vn.WidgetTemplateQuestion,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.QuestionAccordion,{getComponent:function(){return Ei},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"2rem",width:"30%"}}),a.createElement("div",{className:"mb-n2"},a.createElement(si,null),a.createElement(si,null),a.createElement(si,null)))},icon:f.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Qi},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Yi," partial-loading-background rounded-3")}),a.createElement(qi,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Mi,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Yi," partial-loading-background rounded-3")}),a.createElement(qi,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Mi,null)))))},icon:f.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),de.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Va},partialLoading:function(e){return a.createElement(Wt.j7,{size:"lg",childComponent:Pa,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:f.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Wa},partialLoading:function(e){return a.createElement(Wt.j7,{size:"sm",childComponent:Fa,name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:e.hideDescription,hideHeading:e.hideHeading})},icon:f.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.product,a=e.isTopLevelClassification;return n===Cr.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):t===j.ku.Classification?a:[j.ku.MoviesAndTv,j.ku.Discover,j.ku.Company].includes(t)},className:""}),de.f.FilterSlidingPillListSmall,{getComponent:function(){return sn},partialLoading:function(e){var t,n=(0,A.k)();return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return dn(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return dn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e,t){return a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))})))},icon:f.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.MoviesAndTv].includes(t)},className:""}),de.f.CircleLogoSlidingList,{getComponent:function(){return P},partialLoading:function(e){var t=8,n=(0,A.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).fill(null).map(function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))})))},icon:f.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===Cr.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):[j.ku.MoviesAndTv].includes(t)},className:""}),de.f.EventIconSlidingList,{getComponent:function(){return Qt},partialLoading:function(e){var t,n=(t=(0,A.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).fill(null).map(function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))})))},icon:f.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===Cr.x.StreamableLearning?[j.ku.Discover,j.ku.Classification,j.ku.Company].includes(t):[j.ku.Discover,j.ku.Classification].includes(t)},className:""}),jr(jr(jr(jr(jr(jr(jr(jr(jr(jr(Lr,de.f.ThumbnailVerticalList,{getComponent:function(){return we},partialLoading:wr,icon:f.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Cr.x.StreamableLearning&&[j.ku.Company,j.ku.Classification].includes(t)},className:""}),de.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Er},partialLoading:Wt.j7,icon:f.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Cr.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.CurriculumResourcesAccordion,{getComponent:function(){return bt},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background mb-2 w-25",style:{height:"1.7325rem"}}),a.createElement("div",{className:"mb-n3"},a.createElement(Et,null),a.createElement(Et,null),a.createElement(Et,null),a.createElement(Et,null),a.createElement(Et,null),a.createElement(Et,null),a.createElement(Et,null)))},icon:null,predicate:function(){return!1},className:""}),de.f.ThumbnailFixedListMediaSmall,{getComponent:function(){return cr},partialLoading:Wt.j7,icon:null,predicate:function(){return!1},className:"thumbnail-fixed-list-media-small-widget-template"}),de.f.ThumbnailFixedListFolderSmall,{getComponent:function(){return Wi},partialLoading:Wt.j7,icon:null,predicate:function(){return!1},className:""}),de.f.TagSlidingList,{getComponent:function(){return Ai},partialLoading:function(e){var t="function"==typeof e.predicate&&e.predicate()||!1;return a.createElement(a.Fragment,null,a.createElement(ye.QL,{partialLoadingComponent:Oi,partialLoadingOptions:{numItems:4}}),t&&a.createElement("hr",null))},icon:null,predicate:function(){return!1},className:"tag-sliding-list-widget-template"}),de.f.CurriculumCodeSearchResults,{getComponent:function(){return Le},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background rounded-3 mb-3 w-100",style:{height:"5rem"}}),a.createElement(wr,null))},icon:null,predicate:function(){return!1},className:""}),de.f.PosterFixedListLarge,{getComponent:function(){return Ua},partialLoading:_a,icon:null,predicate:function(){return!1},className:"poster-fixed-list-large-widget-template"}),de.f.SearchSuggestionsBlurb,{getComponent:function(){return Tr},partialLoading:function(){return a.createElement("div",{className:"d-flex flex-row gap-1"},a.createElement("div",{className:"partial-loading-background",style:{width:"12rem",height:"1.25rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"3rem",height:"1.25rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"1rem",height:"1.25rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"4rem",height:"1.25rem"}}))},icon:null,predicate:function(){return!1},className:""}),de.f.ThumbnailSlidingListSmall,{getComponent:function(){return fr},partialLoading:Wt.j7,icon:f.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),jr(Lr,de.f.ThumbnailSlidingListLarge,{getComponent:function(){return vr},partialLoading:function(e){return a.createElement(Wt.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:f.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),Dr=n(65294);const Ar={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Ir(e,t){if(e){if("string"==typeof e)return Mr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(e,t):void 0}}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Vr(e){var t,n,l,c,s,d,u=a.createRef(),m=(s=a.useState([]),d=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(s,d)||Ir(s,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0],v=m[1],f=null===(t=e.lazyLoad)||void 0===t||t,g=(0,Dr.Y)({prevent:!f}),y=g.ref,h=g.inView,b=i.q.isFunction(e.getContentRequest),E=r.a.useBasicFetch(!(!h||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),k=It.d.useGetContent(e.content||(null===(n=E.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(l=E.data)||void 0===l?void 0:l.preferences,p).content,w=(0,A.k)(),L=function(e,t){return!(It.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,k),C=!It.d.canDisplayOnScreenSize(w,e.widgetTypeId,e.templateId);a.useEffect(function(){var t;b&&!E.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,L||C)},[E.hasCompleted,L,C,b,e.setIsEmpty]),a.useEffect(function(){e.isScrollToTargetWidget&&u.current&&u.current.scrollIntoView({behavior:"smooth",block:"start"})},[e.isScrollToTargetWidget,u.current]);var x=e.appLinks?Object.assign({},e.appLinks):null;(null==x?void 0:x.videoType)&&(x.videoType=function(t,n){var a;return null===(a=e.appLinks)||void 0===a?void 0:a.videoType(t,Object.assign(Object.assign({},n),{contextId:e.id,includeContext:n.includeContext}))});var S=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),N=b&&!E.hasCompleted||e.isEditing&&L,T=Pr[e.templateId];if(!T||!N&&(L||C))return a.createElement(a.Fragment,null);var O=T.partialLoading,j=T.getComponent(e.widgetTypeId),P=(0,o.A)(T.className,e.className);return a.createElement("div",{id:e.widgetTypeId===ue.z.ContinueWatching?"continue-watching-videos-widget":null,ref:u,className:"curated-widget ".concat(P," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(Ar.widgetHighlight," py-2 px-3 rounded-3"):""},It.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(Ar.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),N?a.createElement("div",{ref:y},a.createElement(O,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(j,Object.assign({},e,{appLinks:x,content:k,preferences:null===(c=E.data)||void 0===c?void 0:c.preferences,analyticsData:S,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing,onClickRemoveItem:function(t,n){if(e.onClickRemoveItem)return v([].concat(function(e){return function(e){if(Array.isArray(e))return Mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ir(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(p),[t])),e.onClickRemoveItem(t,n,e.id,e.widgetTypeId)}}))))}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),i=n(68050),r=n(69111),o=n(62400),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(i.Z,{className:"mb-n2"},e.content.map(function(t){var n;return a.createElement(r.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(l.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,isLarge:!0}))})))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q,eb:()=>a.e});var a=n(19653);n(14244)},80889:(e,t,n)=>{n.d(t,{_:()=>y});var a=n(99940),i=n(97395),r=n(75896),o=n(1048),l=n(49542),c=n(55171),s=n(78479),d=n(45778);function u(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var p=new Set([].concat(u(Object.values(c.e.Classifications.Twig.EnglandSecondary)),u(Object.values(c.e.Classifications.Twig.InternationalSecondary)),u(Object.values(c.e.Classifications.Twig.ScotlandSecondary)),u(Object.values(c.e.Classifications.Twig.NewZealandSecondary)))),v=new Set([].concat(u(Object.values(c.e.Classifications.Tigtag.EnglandPrimary)),u(Object.values(c.e.Classifications.Tigtag.InternationalPrimary)),u(Object.values(c.e.Classifications.Tigtag.ScotlandPrimary)),u(Object.values(c.e.Classifications.Tigtag.NewZealandPrimary))));function f(e){return Object.keys(e).map(function(t){return e[t]}).join(":")}function g(e){return f(o.t.pick(e,["audienceId"]))}var y={classificationDashboard:function(e,t,n,a){var o={target:"classification:".concat(e),status:n,userType:t};return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",o),publicUrl:i._.urlBuilder("/api/discover/dashboards",o),key:"classification:dashboard:".concat(e,":").concat(t,":").concat(a,":").concat(null==n?void 0:n.join(":")),formatData:function(e){var t;return a?null===(t=e.data)||void 0===t?void 0:t.find(function(e){return e.id.toString()===a.toString()}):r.m.first(e.data)}}},dashboardWidgetContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),t),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(e),t),key:"widget:".concat(e,":").concat(f(t)),formatData:function(e){var t=l.d.formatResponseData(e,a);if(!r.hideTigTag&&!r.hideTwig)return t;if(Array.isArray(t.content)){var n=t.content.filter(function(e){return!(d.G.isClassification(e)&&(v.has(e.id)?r.hideTigTag:p.has(e.id)&&r.hideTwig))});t.content=n}return t},normalizeOptions:{namespace:g(t)},normalize:n!==s.f.EditableCoverFixedPillListSmall}},getDashboard:function(e,t,n,a,o,l){var c={target:n,status:t,userType:e};(null==a?void 0:a.length)&&(c["widgets.curriculum"]=a);var s="dashboard:".concat(n,":").concat(e,":").concat(o,":").concat(t.join(":"));return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:i._.urlBuilder("/api/discover/dashboards",c),key:s,formatData:function(e){var t;return o?null===(t=e.data)||void 0===t?void 0:t.find(function(e){return e.id.toString()===o.toString()}):r.m.first(e.data)},success:l}},updateWidgetPreferences:function(e,t,n){return{url:"{gateway}/v1/discover/widgets/".concat(e,"/preferences"),key:"update:widget:preferences",invalidationKeys:["widget:".concat(e)],type:a.k.PUT,data:{userId:n.id,customerId:n.customerId,metadata:t}}}}},25104:(e,t,n)=>{n.d(t,{R:()=>v});var a=n(16951),i=n.n(a),r=n(38946);function o(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,a,i,r){var o=a&&a.prototype instanceof s?a:s,d=Object.create(o.prototype);return l(d,"_invoke",function(n,a,i){var r,o,l,s=0,d=i||[],u=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,o=0,l=e,m.n=n,c}};function p(n,a){for(o=n,l=a,t=0;!u&&s&&!i&&t<d.length;t++){var i,r=d[t],p=m.p,v=r[2];n>3?(i=v===a)&&(l=r[(o=r[4])?5:(o=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(o=0,m.v=a,m.n=r[1]):p<v&&(i=n<3||r[0]>a||a>v)&&(r[4]=n,r[5]=a,m.n=v,o=0))}if(i||n>1)return c;throw u=!0,a}return function(i,d,v){if(s>1)throw TypeError("Generator is already running");for(u&&1===d&&p(d,v),o=d,l=v;(t=o<2?e:l)||!u;){r||(o?o<3?(o>1&&(m.n=-1),p(o,l)):m.n=l:m.v=l);try{if(s=2,r){if(o||(i="next"),t=r[i]){if(!(t=t.call(r,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,o<2&&(o=0)}else 1===o&&(t=r.return)&&t.call(r),o<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),o=1);r=e}else if((t=(u=m.n<0)?l:n.call(a,m))!==c)break}catch(t){r=e,o=1,l=t}finally{s=1}}return{value:t,done:u}}}(n,i,r),!0),d}var c={};function s(){}function d(){}function u(){}t=Object.getPrototypeOf;var m=[][a]?t(t([][a]())):(l(t={},a,function(){return this}),t),p=u.prototype=s.prototype=Object.create(m);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,l(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return d.prototype=u,l(p,"constructor",u),l(u,"constructor",d),d.displayName="GeneratorFunction",l(u,i,"GeneratorFunction"),l(p),l(p,i,"Generator"),l(p,a,function(){return this}),l(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:r,m:v}})()}function l(e,t,n,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}l=function(e,t,n,a){if(t)i?i(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n;else{var r=function(t,n){l(e,t,function(e){return this._invoke(t,n,e)})};r("next",0),r("throw",1),r("return",2)}},l(e,t,n,a)}var c,s=function(e,t,n,a){return new(n||(n=Promise))(function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,l)}c((a=a.apply(e,t||[])).next())})},d="markdown-link",u=new r.M2,m=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,p=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;u.use({breaks:!0,async:!0,extensions:[{name:"inlineKatex",level:"inline",start:function(e){for(var t,n=e;n;){if(-1===(t=n.indexOf("$")))return;if((0===t||" "===n.charAt(t-1))&&n.substring(t).match(m))return t;n=n.substring(t+1).replace(/^\$+/,"")}},tokenizer:function(e){var t=e.match(m);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return c?c.renderToString(e.text,{displayMode:e.displayMode}):e.text}},{name:"blockKatex",level:"block",tokenizer:function(e){var t=e.match(p);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return c?c.renderToString(e.text,{displayMode:e.displayMode}):e.text}},{start:function(e){return e.indexOf("^")},name:"superscript",level:"inline",tokenizer:function(e){var t=e.match(/^\^([^\^]+?)\^/);if(t)return{type:"superscript",raw:t[0],text:t[1]}},renderer:function(e){return"<sup>".concat(e.text,"</sup>")}},{name:"subscript",level:"inline",start:function(e){return e.indexOf("~")},tokenizer:function(e){var t=e.match(/^\~([^\~]+?)\~/);if(t)return{type:"subscript",raw:t[0],text:t[1]}},renderer:function(e){return"<sub>".concat(e.text,"</sub>")}}],walkTokens:function(e){return s(void 0,void 0,void 0,o().m(function t(){var a,i;return o().w(function(t){for(;;)switch(t.n){case 0:if("inlineKatex"!==e.type&&"blockKatex"!==e.type){t.n=2;break}return t.n=1,Promise.all([n.e(8294),n.e(6356)]).then(n.bind(n,66356));case 1:a=t.v,i=a.katex,c=i;case 2:return t.a(2)}},t)}))}});var v={isLink:function(e){return e.classList.contains(d)},parse:function(e,t){return s(this,void 0,void 0,o().m(function n(){var a;return o().w(function(n){for(;;)switch(n.n){case 0:if(e){n.n=1;break}return n.a(2,"");case 1:return n.n=2,u.parse(e,{renderer:v.getRenderer(t)});case 2:return a=n.v,n.a(2,i().sanitize(a))}},n)}))},getRenderer:function(e){var t=new u.Renderer;return t.heading=function(e){var t=e.text,n=e.depth;return"<h".concat(n,' class="').concat({1:"h1",2:"h2",3:"h6",4:"h6",5:"h6",6:"h6"}[n],'">').concat(t,"</h").concat(n,">")},t.link=function(t){var n=t.href,a=t.text,i=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return'<a href="'.concat(n,'" target="_blank" class="info-link ').concat(d,'" ').concat(i,">").concat(a,"</a>")},t},getContainerClass:function(){return"AmtuH"}}},73688:(e,t,n)=>{n.d(t,{B:()=>c});var a=n(20354),i=n(80889),r=n(57401),o=n(21366),l=n(31700);function c(e){var t=a.a.useBasicFetch(l.g.streamablePresentation());return{dashboard:a.a.useBasicFetch(t.hasCompleted&&i._.getDashboard(r.Yv.Any,e.dashboardId?[r.GL.Published,r.GL.Draft]:[r.GL.Published],o.S.getUnknownDashboardTarget({targetType:e.targetType,presentationId:t.data.id,companyId:e.companyId,classificationId:e.classificationId}),null,e.dashboardId)),isPreviewing:!!e.dashboardId}}}}]);
|