(window.webpackJsonp=window.webpackJsonp||[]).push([["3oEN"],{NVWR:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.JsonLd=function(e){O(e.schema);const t=(0,o.default)({"@context":c.safeLinkTo("https://schema.org")},e.schema);return s.createElement("script",{type:"application/ld+json","data-test-id":"jsonld",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},t._mapKeyMomentsToSchema=void 0,t.answerSchema=m,t.faqPageSchema=function({mainEntity:e}){const t={mainEntity:e.map((({name:e,acceptedAnswer:t})=>y({name:e,acceptedAnswer:t})))};return(0,o.default)({"@type":"FAQPage"},t)},t.learningVideoSchema=function(e,t){return(0,o.default)({},v(e),(e=>{const{standards:t,educationalLevel:n,learningResourceType:r}=null!=e?e:{};return(0,o.default)({"@type":"LearningResource"},null==e?void 0:e.fields,{educationalLevel:(0,i.values)(h).includes(n)?n:h.Intermediate,learningResourceType:(0,i.values)(w).includes(r)?r:w.ConceptOverview,educationalAlignment:null==t?void 0:t.map((e=>{const t={"@type":"AlignmentObject"};return null!=e&&e.setId&&null!=e&&e.standardId&&(t.targetName=`${e.setId}.CONTENT.${e.standardId}`,t.educationalFramework=(0,l.setIdToFramework)(e.setId),t.targetDescription=e.description),t}))})})(t),{"@type":["VideoObject","LearningResource"]})},t.questionSchema=y,t.sanitizeJsonLdSchema=O,t.videoObjectSchema=v;var a=r(n("8OQS")),o=r(n("pVnL")),s=f(n("q1tI")),i=n("sExA"),c=f(n("whzC")),u=n("bJrL"),l=n("riSM");const d=["potentialActionTargetUrl","contentUrl","keyMoments"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function m(e){return{"@type":"Answer",text:e.text}}function y(e){return{"@type":"Question",name:e.name,acceptedAnswer:m(e.acceptedAnswer)}}const h={Beginner:"Beginner",Intermediate:"Intermediate",Advanced:"Advanced"},w={ConceptOverview:"Concept overview",HowTo:"How-to",Tips:"Tips",ProblemWalkthrough:"Problem walkthrough"};function v(e){const{potentialActionTargetUrl:t,contentUrl:n,keyMoments:r}=e,s=(0,a.default)(e,d),i=(0,o.default)({"@type":"VideoObject"},s);return null==t||(null!=r&&r.length>0?i.hasPart=g(r,t):(i.contentUrl=n,i.potentialAction={"@type":"SeekToAction",target:`${t}?t={seek_to_second_number}`,"startOffset-input":"required name=seek_to_second_number"})),i}const g=(e,t)=>e.map((e=>({"@type":"Clip",url:`${t}?t=${e.startOffset}`,startOffset:e.startOffset,endOffset:e.endOffset,name:e.label})));t._mapKeyMomentsToSchema=g;function O(e){(0,i.keys)(e).forEach((t=>{if(null==e[t])delete e[t];else if("object"==typeof e[t])O(e[t]);else{if("number"==typeof e[t])return;e[t]=(0,u.escapeEntities)(e[t])}}))}},riSM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setIdToFramework=void 0;t.setIdToFramework=e=>{switch(!0){case e.startsWith("CCSS"):return"Common Core";case e.startsWith("NGSS"):return"Next Generation Science Standards";case e.startsWith("AP"):return"Advanced Placement";case e.startsWith("SAT"):return"Scholastic Aptitude Test";default:return null}}}}]);
//# sourceMappingURL=../../sourcemaps/en/3oEN.34e096eb4b8376335d59.js.map