@vonage/vivid 5.28.1 → 5.29.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/bundled/definition17.cjs +1 -1
- package/bundled/definition17.js +1 -1
- package/bundled/definition18.cjs +1 -1
- package/bundled/definition18.js +1 -1
- package/bundled/definition25.cjs +4 -4
- package/bundled/definition25.js +4 -4
- package/bundled/definition5.cjs +1 -1
- package/bundled/definition5.js +1 -1
- package/bundled/numberConverter.cjs +1 -1
- package/bundled/numberConverter.js +1 -1
- package/bundled/picker-field.template.cjs +5 -3
- package/bundled/picker-field.template.js +20 -17
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +1 -1
- package/color-picker/index.cjs +1 -1
- package/color-picker/index.js +1 -1
- package/custom-elements.json +508 -334
- package/empty-state/index.cjs +2 -2
- package/empty-state/index.js +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -0
- package/lib/date-range-picker/date-range-picker.d.ts +2 -0
- package/lib/date-time-picker/date-time-picker.d.ts +4 -0
- package/lib/empty-state/definition.d.ts +1 -1
- package/lib/empty-state/empty-state.d.ts +3 -1
- package/lib/number-field/definition.d.ts +1 -1
- package/lib/number-field/number-field.d.ts +3 -1
- package/lib/rich-text-editor/rte/features/suggest.d.ts +7 -1
- package/lib/time-picker/time-picker.d.ts +2 -0
- package/listbox/index.cjs +1 -1
- package/listbox/index.js +1 -1
- package/locales/de-DE.cjs +1 -1
- package/locales/de-DE.js +1 -1
- package/locales/en-GB.cjs +1 -1
- package/locales/en-GB.js +1 -1
- package/locales/ja-JP.cjs +1 -1
- package/locales/ja-JP.js +1 -1
- package/locales/zh-CN.cjs +1 -1
- package/locales/zh-CN.js +1 -1
- package/number-field/index.cjs +16 -14
- package/number-field/index.js +49 -31
- package/package.json +16 -16
- package/rich-text-editor/index.cjs +14 -14
- package/rich-text-editor/index.js +1818 -1789
- package/shared/picker-field/mixins/calendar-picker.d.ts +1 -0
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +1 -0
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +1 -0
- package/shared/picker-field/mixins/single-date-picker.d.ts +1 -0
- package/shared/picker-field/mixins/single-value-picker.d.ts +1 -0
- package/shared/picker-field/mixins/time-selection-picker.d.ts +1 -0
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +2 -0
- package/shared/picker-field/picker-field.d.ts +38 -31
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/unbundled/definition16.cjs +1 -1
- package/unbundled/definition16.js +1 -1
- package/unbundled/definition2.cjs +4 -4
- package/unbundled/definition2.js +4 -4
- package/unbundled/definition28.cjs +5 -1
- package/unbundled/definition28.js +5 -1
- package/unbundled/definition29.cjs +1 -1
- package/unbundled/definition29.js +1 -1
- package/unbundled/definition30.cjs +1 -1
- package/unbundled/definition30.js +1 -1
- package/unbundled/definition42.cjs +3 -2
- package/unbundled/definition42.js +3 -2
- package/unbundled/definition50.cjs +1 -1
- package/unbundled/definition50.js +1 -1
- package/unbundled/definition55.cjs +41 -8
- package/unbundled/definition55.js +41 -8
- package/unbundled/definition6.cjs +1 -1
- package/unbundled/definition6.js +1 -1
- package/unbundled/definition63.cjs +43 -19
- package/unbundled/definition63.js +38 -14
- package/unbundled/definition76.cjs +1 -1
- package/unbundled/definition76.js +1 -1
- package/unbundled/en-US.cjs +1 -1
- package/unbundled/en-US.js +1 -1
- package/unbundled/numberConverter.cjs +1 -1
- package/unbundled/numberConverter.js +1 -1
- package/unbundled/picker-field.template.cjs +6 -1
- package/unbundled/picker-field.template.js +6 -1
- package/unbundled/vivid-element.cjs +1 -1
- package/unbundled/vivid-element.js +1 -1
- package/video-player/index.cjs +1 -1
- package/video-player/index.js +1 -1
- package/vivid.api.json +158 -3
package/video-player/index.cjs
CHANGED
|
@@ -14,7 +14,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14
14
|
`,nexist:`∄`,nexists:`∄`,Nfr:`𝔑`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`⋙̸`,ngsim:`≵`,nGt:`≫⃒`,ngt:`≯`,ngtr:`≯`,nGtv:`≫̸`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlArr:`⇍`,nlarr:`↚`,nldr:`‥`,nlE:`≦̸`,nle:`≰`,nLeftarrow:`⇍`,nleftarrow:`↚`,nLeftrightarrow:`⇎`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nLl:`⋘̸`,nlsim:`≴`,nLt:`≪⃒`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:`≪̸`,nmid:`∤`,NoBreak:``,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,nopf:`𝕟`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,notin:`∉`,notindot:`⋵̸`,notinE:`⋹̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nRightarrow:`⇏`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,Nscr:`𝒩`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:`≍⃒`,nVDash:`⊯`,nVdash:`⊮`,nvDash:`⊭`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwarhk:`⤣`,nwArr:`⇖`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,Ocirc:`Ô`,ocirc:`ô`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:`𝔒`,ofr:`𝔬`,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:`𝕆`,oopf:`𝕠`,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,Or:`⩔`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:`𝒪`,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,Otimes:`⨷`,otimes:`⊗`,otimesas:`⨶`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:`𝔓`,pfr:`𝔭`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,Popf:`ℙ`,popf:`𝕡`,pound:`£`,Pr:`⪻`,pr:`≺`,prap:`⪷`,prcue:`≼`,prE:`⪳`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,Prime:`″`,prime:`′`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportion:`∷`,Proportional:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:`𝒫`,pscr:`𝓅`,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:`𝔔`,qfr:`𝔮`,qint:`⨌`,Qopf:`ℚ`,qopf:`𝕢`,qprime:`⁗`,Qscr:`𝒬`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,QUOT:`"`,quot:`"`,rAarr:`⇛`,race:`∽̱`,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,Rang:`⟫`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,Rarr:`↠`,rArr:`⇒`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,rAtail:`⤜`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,RBarr:`⤐`,rBarr:`⤏`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,Re:`ℜ`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,REG:`®`,reg:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,Rfr:`ℜ`,rfr:`𝔯`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrow:`→`,Rightarrow:`⇒`,rightarrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:``,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,Ropf:`ℝ`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,Rscr:`ℛ`,rscr:`𝓇`,Rsh:`↱`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,Sc:`⪼`,sc:`≻`,scap:`⪸`,Scaron:`Š`,scaron:`š`,sccue:`≽`,scE:`⪴`,sce:`⪰`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,searhk:`⤥`,seArr:`⇘`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:`𝔖`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:``,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,SOFTcy:`Ь`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,Sopf:`𝕊`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,Square:`□`,square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squf:`▪`,srarr:`→`,Sscr:`𝒮`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,Sub:`⋐`,sub:`⊂`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,Subset:`⋐`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,Sum:`∑`,sum:`∑`,sung:`♪`,Sup:`⋑`,sup:`⊃`,sup1:`¹`,sup2:`²`,sup3:`³`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,Supset:`⋑`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swArr:`⇙`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:`𝔗`,tfr:`𝔱`,there4:`∴`,Therefore:`∴`,therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:` `,thinsp:` `,ThinSpace:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,Tilde:`∼`,tilde:`˜`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,Topf:`𝕋`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,TRADE:`™`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:`𝒯`,tscr:`𝓉`,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,Uarr:`↟`,uArr:`⇑`,uarr:`↑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`𝔘`,ufr:`𝔲`,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:`𝕌`,uopf:`𝕦`,UpArrow:`↑`,Uparrow:`⇑`,uparrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,Updownarrow:`⇕`,updownarrow:`↕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,upsi:`υ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTee:`⊥`,UpTeeArrow:`↥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:`𝒰`,uscr:`𝓊`,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,vArr:`⇕`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,Vbar:`⫫`,vBar:`⫨`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,VDash:`⊫`,Vdash:`⊩`,vDash:`⊨`,vdash:`⊢`,Vdashl:`⫦`,Vee:`⋁`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,Verbar:`‖`,verbar:`|`,Vert:`‖`,vert:`|`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,Vopf:`𝕍`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,Vscr:`𝒱`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,Wedge:`⋀`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,Wfr:`𝔚`,wfr:`𝔴`,Wopf:`𝕎`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:`𝒲`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:`𝔛`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,Xi:`Ξ`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:`𝕏`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,Xscr:`𝒳`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:`𝔜`,yfr:`𝔶`,YIcy:`Ї`,yicy:`ї`,Yopf:`𝕐`,yopf:`𝕪`,Yscr:`𝒴`,yscr:`𝓎`,YUcy:`Ю`,yucy:`ю`,Yuml:`Ÿ`,yuml:`ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:``,Zeta:`Ζ`,zeta:`ζ`,Zfr:`ℨ`,zfr:`𝔷`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,Zopf:`ℤ`,zopf:`𝕫`,Zscr:`𝒵`,zscr:`𝓏`,zwj:``,zwnj:``}),e.entityMap=e.HTML_ENTITIES})),Pe=e.r((e=>{var t=je().NAMESPACE,n=je().tagNamePattern,r=0,i=1,a=2,o=3,s=4,c=5,l=6,u=7;function d(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,d)}d.prototype=Error(),d.prototype.name=d.name;function f(){}f.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),y(t,t={}),p(e,t,n,r,this.errorHandler),r.endDocument()}};function p(e,r,i,a,o){function s(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function c(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:t.charAt(0)===`#`?s(parseInt(t.substr(1).replace(`x`,`0x`))):(o.error(`entity not found:`+e),e)}function l(t){if(t>E){var n=e.substring(E,t).replace(/&#?\w+;/g,c);C&&u(E),a.characters(n,0,t-E),E=t}}function u(t,n){for(;t>=p&&(n=y.exec(e));)f=n.index,p=f+n[0].length,C.lineNumber++;C.columnNumber=t-f+1}for(var f=0,p=0,y=/.*(?:\r\n?|\n)|.*$/g,C=a.locator,w=[{currentNSMap:r}],T={},E=0;;){try{var D=e.indexOf(`<`,E);if(D<0){if(!e.substr(E).match(/^\s*$/)){var O=a.doc,ee=O.createTextNode(e.substr(E));O.appendChild(ee),a.currentElement=ee}return}switch(D>E&&l(D),e.charAt(D+1)){case`/`:var te=e.indexOf(`>`,D+3),k=e.substring(D+2,te).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,`$1`),A=w.pop();te<0?(k=e.substring(D+2).replace(/[\s<].*/,``),o.error(`end tag name: `+k+` is not complete:`+A.tagName),te=D+1+k.length):k.match(/\s</)?(k=k.replace(/[\s<].*/,``),o.error(`end tag name: `+k+` maybe not complete`),te=D+1+k.length):/[ \t\n\r]/.test(k)&&n.test(k.split(/[ \t\n\r]/)[0])&&o.error(`end tag name is followed by whitespace and trailing content: "`+k+`"`);var ne=A.localNSMap,j=A.tagName==k;if(j||A.tagName&&A.tagName.toLowerCase()==k.toLowerCase()){if(a.endElement(A.uri,A.localName,k),ne)for(var re in ne)Object.prototype.hasOwnProperty.call(ne,re)&&a.endPrefixMapping(re);j||o.fatalError(`end tag name: `+k+` is not match the current start tagName:`+A.tagName)}else w.push(A);te++;break;case`?`:C&&u(D),te=x(e,D,a);break;case`!`:C&&u(D),te=b(e,D,a,o);break;default:C&&u(D);var M=new S,ie=w[w.length-1].currentNSMap,te=h(e,D,M,ie,c,o),ae=M.length;if(!M.closed&&v(e,te,M.tagName,T)&&(M.closed=!0,i.nbsp||o.warning(`unclosed xml attribute`)),C&&ae){for(var oe=m(C,{}),se=0;se<ae;se++){var ce=M[se];u(ce.offset),ce.locator=m(C,{})}a.locator=oe,g(M,a,ie)&&w.push(M),a.locator=C}else g(M,a,ie)&&w.push(M);t.isHTML(M.uri)&&!M.closed?te=_(e,te,M.tagName,c,a):te++}}catch(e){if(e instanceof d)throw e;o.error(`element parse error: `+e),te=-1}te>E?E=te:l(Math.max(D,E)+1)}}function m(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function h(e,n,d,f,p,m){function h(e,t,n){d.attributeNames.hasOwnProperty(e)&&m.fatalError(`Attribute `+e+` redefined`),d.addValue(e,t.replace(/[\t\n\r]/g,` `).replace(/&#?\w+;/g,p),n)}for(var g,_,v=++n,y=r;;){var b=e.charAt(v);if(y===r&&b===`<`)throw Error(`unexpected < in tag name: `+e.slice(n,v));switch(b){case`=`:if(y===i)g=e.slice(n,v),y=o;else if(y===a)y=o;else throw Error(`attribute equal must after attrName`);break;case`'`:case`"`:if(y===o||y===i){if(y===i&&(m.warning(`attribute value must after "="`),g=e.slice(n,v)),n=v+1,v=e.indexOf(b,n),v>0)_=e.slice(n,v),h(g,_,n-1),y=c;else throw Error(`attribute value no end '`+b+`' match`)}else if(y==s)_=e.slice(n,v),h(g,_,n),m.warning(`attribute "`+g+`" missed start quot(`+b+`)!!`),n=v+1,y=c;else throw Error(`attribute value must after "="`);break;case`/`:switch(y){case r:d.setTagName(e.slice(n,v));case c:case l:case u:y=u,d.closed=!0;case s:case i:break;case a:d.closed=!0;break;default:throw Error(`attribute invalid close char('/')`)}break;case``:return m.error(`unexpected end of input`),y==r&&d.setTagName(e.slice(n,v)),v;case`>`:switch(y){case r:d.setTagName(e.slice(n,v));case c:case l:case u:break;case s:case i:_=e.slice(n,v),_.slice(-1)===`/`&&(d.closed=!0,_=_.slice(0,-1));case a:y===a&&(_=g),y==s?(m.warning(`attribute "`+_+`" missed quot(")!`),h(g,_,n)):((!t.isHTML(f[``])||!_.match(/^(?:disabled|checked|selected)$/i))&&m.warning(`attribute "`+_+`" missed value!! "`+_+`" instead!!`),h(_,_,n));break;case o:throw Error(`attribute value missed!!`)}return v;case``:b=` `;default:if(b<=` `)switch(y){case r:d.setTagName(e.slice(n,v)),y=l;break;case i:g=e.slice(n,v),y=a;break;case s:var _=e.slice(n,v);m.warning(`attribute "`+_+`" missed quot(")!!`),h(g,_,n);case c:y=l}else switch(y){case a:d.tagName,(!t.isHTML(f[``])||!g.match(/^(?:disabled|checked|selected)$/i))&&m.warning(`attribute "`+g+`" missed value!! "`+g+`" instead2!!`),h(g,g,n),n=v,y=i;break;case c:m.warning(`attribute space is required"`+g+`"!!`);case l:y=i,n=v;break;case o:y=s,n=v;break;case u:throw Error(`elements closed character '/' and '>' must be connected to`)}}v++}}function g(e,n,r){for(var i=e.tagName,a=null,o=e.length;o--;){var s=e[o],c=s.qName,l=s.value,u=c.indexOf(`:`);if(u>0)var d=s.prefix=c.slice(0,u),f=c.slice(u+1),p=d===`xmlns`&&f;else f=c,d=null,p=c===`xmlns`&&``;s.localName=f,p!==!1&&(a??(a={},r=Object.create(r)),r[p]=a[p]=l,s.uri=t.XMLNS,n.startPrefixMapping(p,l))}for(var o=e.length;o--;){s=e[o];var d=s.prefix;d&&(d===`xml`&&(s.uri=t.XML),d!==`xmlns`&&(s.uri=r[d||``]))}var u=i.indexOf(`:`);u>0?(d=e.prefix=i.slice(0,u),f=e.localName=i.slice(u+1)):(d=null,f=e.localName=i);var m=e.uri=r[d||``];if(n.startElement(m,f,i,e),e.closed){if(n.endElement(m,f,i),a)for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&n.endPrefixMapping(d)}else return e.currentNSMap=r,e.localNSMap=a,!0}function _(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf(`</`+n+`>`,t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,r),i.characters(o,0,o.length),a)}return t+1}function v(e,t,n,r){var i=r[n];return i??(i=e.lastIndexOf(`</`+n+`>`),i<t&&(i=e.lastIndexOf(`</`+n)),r[n]=i),i<t}function y(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function b(e,t,n,r){switch(e.charAt(t+2)){case`-`:if(e.charAt(t+3)===`-`){var i=e.indexOf(`-->`,t+4);return i>t?(n.comment(e,t+4,i-t-4),i+3):(r.error(`Unclosed comment`),-1)}return-1;default:if(e.substr(t+3,6)==`CDATA[`){var i=e.indexOf(`]]>`,t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var a=C(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],c=!1,l=!1;o>3&&(/^public$/i.test(a[2][0])?(c=a[3][0],l=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var u=a[o-1];return n.startDTD(s,c,l),n.endDTD(),u.index+u[0].length}}return-1}function x(e,t,n){var r=e.indexOf(`?>`,t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function S(){this.attributeNames={}}S.prototype={setTagName:function(e){if(!n.test(e))throw Error(`invalid tagName:`+e);this.tagName=e},addValue:function(e,t,r){if(!n.test(e))throw Error(`invalid attribute:`+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function C(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);n=i.exec(e);)if(r.push(n),n[1])return r}e.XMLReader=f,e.ParseError=d})),Fe=e.r((e=>{var t=je(),n=Me(),r=Ne(),i=Pe(),a=n.DOMImplementation,o=t.NAMESPACE,s=i.ParseError,c=i.XMLReader;function l(e){return e.replace(/\r[\n\u0085]/g,`
|
|
15
15
|
`).replace(/[\r\u0085\u2028]/g,`
|
|
16
16
|
`)}function u(e){this.options=e||{locator:{}}}u.prototype.parseFromString=function(e,t){var n=this.options,i=new c,a=n.domBuilder||new f,s=n.errorHandler,u=n.locator,p=n.xmlns||{},m=/\/x?html?$/.test(t),h=m?r.HTML_ENTITIES:r.XML_ENTITIES;u&&a.setDocumentLocator(u),i.errorHandler=d(s,a,u),i.domBuilder=n.domBuilder||a,m&&(p[``]=o.HTML),p.xml=p.xml||o.XML;var g=n.normalizeLineEndings||l;return e&&typeof e==`string`?i.parse(g(e),p,h):i.errorHandler.error(`invalid doc source`),a.doc};function d(e,t,n){if(!e){if(t instanceof f)return t;e=t}var r={},i=e instanceof Function;n||={};function a(t){var a=e[t];!a&&i&&(a=e.length==2?function(n){e(t,n)}:e),r[t]=a&&function(e){a(`[xmldom `+t+`] `+e+m(n))}||function(){}}return a(`warning`),a(`error`),a(`fatalError`),r}function f(){this.cdata=!1}function p(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}f.prototype={startDocument:function(){this.doc=new a().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),o=r.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s<o;s++){var e=r.getURI(s),c=r.getValue(s),n=r.getQName(s),l=i.createAttributeNS(e,n);this.locator&&p(r.getLocator(s),l),l.value=l.nodeValue=c,a.setAttributeNode(l)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&p(this.locator,n),g(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=h.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&p(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=h.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&p(this.locator,r),g(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&p(this.locator,i),g(this,i),this.doc.doctype=i}},warning:function(e){console.warn(`[xmldom warning] `+e,m(this.locator))},error:function(e){console.error(`[xmldom error] `+e,m(this.locator))},fatalError:function(e){throw new s(e,this.locator)}};function m(e){if(e)return`
|
|
17
|
-
@`+(e.systemId||``)+`#[line:`+e.lineNumber+`,col:`+e.columnNumber+`]`}function h(e,t,n){return typeof e==`string`?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+``:e}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(e){f.prototype[e]=function(){return null}});function g(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}e.__DOMHandler=f,e.normalizeLineEndings=l,e.DOMParser=u})),Ie=e.r((e=>{var t=Me();e.DOMImplementation=t.DOMImplementation,e.XMLSerializer=t.XMLSerializer,e.DOMParser=Fe().DOMParser}))(),Le=e=>!!e&&typeof e==`object`,R=(...e)=>e.reduce((e,t)=>(typeof t==`object`&&Object.keys(t).forEach(n=>{e[n]=Array.isArray(e[n])&&Array.isArray(t[n])?e[n].concat(t[n]):Le(e[n])&&Le(t[n])?R(e[n],t[n]):t[n]}),e),{}),Re=e=>Object.keys(e).map(t=>e[t]),z=(e,t)=>{let n=[];for(let r=e;r<t;r++)n.push(r);return n},ze=e=>e.reduce((e,t)=>e.concat(t),[]),Be=e=>{if(!e.length)return[];let t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t},Ve=(e,t)=>e.reduce((e,n,r)=>(n[t]&&e.push(r),e),[]),He=(e,t)=>Re(e.reduce((e,n)=>(n.forEach(n=>{e[t(n)]=n}),e),{})),Ue={INVALID_NUMBER_OF_PERIOD:`INVALID_NUMBER_OF_PERIOD`,INVALID_NUMBER_OF_CONTENT_STEERING:`INVALID_NUMBER_OF_CONTENT_STEERING`,DASH_EMPTY_MANIFEST:`DASH_EMPTY_MANIFEST`,DASH_INVALID_XML:`DASH_INVALID_XML`,NO_BASE_URL:`NO_BASE_URL`,MISSING_SEGMENT_INFORMATION:`MISSING_SEGMENT_INFORMATION`,SEGMENT_TIME_UNSPECIFIED:`SEGMENT_TIME_UNSPECIFIED`,UNSUPPORTED_UTC_TIMING_SCHEME:`UNSUPPORTED_UTC_TIMING_SCHEME`},B=({baseUrl:e=``,source:t=``,range:n=``,indexRange:r=``})=>{let i={uri:t,resolvedUri:E(e||``,t)};if(n||r){let e=(n||r).split(`-`),t=b.default.BigInt?b.default.BigInt(e[0]):parseInt(e[0],10),a=b.default.BigInt?b.default.BigInt(e[1]):parseInt(e[1],10);t<2**53-1&&typeof t==`bigint`&&(t=Number(t)),a<2**53-1&&typeof a==`bigint`&&(a=Number(a));let o;o=typeof a==`bigint`||typeof t==`bigint`?b.default.BigInt(a)-b.default.BigInt(t)+b.default.BigInt(1):a-t+1,typeof o==`bigint`&&o<2**53-1&&(o=Number(o)),i.byterange={length:o,offset:t}}return i},We=e=>{let t;return t=typeof e.offset==`bigint`||typeof e.length==`bigint`?b.default.BigInt(e.offset)+b.default.BigInt(e.length)-b.default.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`},Ge=e=>(e&&typeof e!=`number`&&(e=parseInt(e,10)),isNaN(e)?null:e),Ke={static(e){let{duration:t,timescale:n=1,sourceDuration:r,periodDuration:i}=e,a=Ge(e.endNumber),o=t/n;return typeof a==`number`?{start:0,end:a}:typeof i==`number`?{start:0,end:i/o}:{start:0,end:r/o}},dynamic(e){let{NOW:t,clientOffset:n,availabilityStartTime:r,timescale:i=1,duration:a,periodStart:o=0,minimumUpdatePeriod:s=0,timeShiftBufferDepth:c=1/0}=e,l=Ge(e.endNumber),u=(t+n)/1e3,d=r+o,f=u+s-d,p=Math.ceil(f*i/a),m=Math.floor((u-d-c)*i/a),h=Math.floor((u-d)*i/a);return{start:Math.max(0,m),end:typeof l==`number`?l:Math.min(p,h)}}},qe=e=>t=>{let{duration:n,timescale:r=1,periodStart:i,startNumber:a=1}=e;return{number:a+t,duration:n/r,timeline:i,time:t*n}},Je=e=>{let{type:t,duration:n,timescale:r=1,periodDuration:i,sourceDuration:a}=e,{start:o,end:s}=Ke[t](e),c=z(o,s).map(qe(e));if(t===`static`){let e=c.length-1,t=typeof i==`number`?i:a;c[e].duration=t-n/r*e}return c},Ye=e=>{let{baseUrl:t,initialization:n={},sourceDuration:r,indexRange:i=``,periodStart:a,presentationTime:o,number:s=0,duration:c}=e;if(!t)throw Error(Ue.NO_BASE_URL);let l=B({baseUrl:t,source:n.sourceURL,range:n.range}),u=B({baseUrl:t,source:t,indexRange:i});if(u.map=l,c){let t=Je(e);t.length&&(u.duration=t[0].duration,u.timeline=t[0].timeline)}else r&&(u.duration=r,u.timeline=a);return u.presentationTime=o||a,u.number=s,[u]},Xe=(e,t,n)=>{let r=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,a=e.timeline||0,o=e.sidx.byterange,s=o.offset+o.length,c=t.timescale,l=t.references.filter(e=>e.referenceType!==1),u=[],d=e.endList?`static`:`dynamic`,f=e.sidx.timeline,p=f,m=e.mediaSequence||0,h;h=typeof t.firstOffset==`bigint`?b.default.BigInt(s)+t.firstOffset:s+t.firstOffset;for(let e=0;e<l.length;e++){let o=t.references[e],s=o.referencedSize,l=o.subsegmentDuration,g;g=typeof h==`bigint`?h+b.default.BigInt(s)-b.default.BigInt(1):h+s-1;let _=`${h}-${g}`,v=Ye({baseUrl:n,timescale:c,timeline:a,periodStart:f,presentationTime:p,number:m,duration:l,sourceDuration:i,indexRange:_,type:d})[0];r&&(v.map=r),u.push(v),h+=typeof h==`bigint`?b.default.BigInt(s):s,p+=l/c,m++}return e.segments=u,e},Ze=[`AUDIO`,`SUBTITLES`],Qe=1/60,$e=e=>He(e,({timeline:e})=>e).sort((e,t)=>e.timeline>t.timeline?1:-1),et=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},tt=e=>{let t=[];return Ae(e,Ze,(e,n,r,i)=>{t=t.concat(e.playlists||[])}),t},nt=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,n)=>{t.number=e.mediaSequence+n})},rt=({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach(t=>{t.discontinuitySequence=n.findIndex(function({timeline:e}){return e===t.timeline});let r=et(e,t.attributes.NAME);if(!r||t.sidx)return;let i=t.segments[0],a=r.segments.findIndex(function(e){return Math.abs(e.presentationTime-i.presentationTime)<Qe});if(a===-1){nt({playlist:t,mediaSequence:r.mediaSequence+r.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),(!r.segments.length&&t.timeline>r.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--;return}r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),nt({playlist:t,mediaSequence:r.segments[a].number})})},it=({oldManifest:e,newManifest:t})=>{let n=e.playlists.concat(tt(e)),r=t.playlists.concat(tt(t));return t.timelineStarts=$e([e.timelineStarts,t.timelineStarts]),rt({oldPlaylists:n,newPlaylists:r,timelineStarts:t.timelineStarts}),t},at=e=>e&&e.uri+`-`+We(e.byterange),ot=e=>{let t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{}),n=[];return Object.values(t).forEach(e=>{let t=Re(e.reduce((e,t)=>{let n=t.attributes.id+(t.attributes.lang||``);return e[n]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[n].segments.push(...t.segments)),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):(e[n]=t,e[n].attributes.timelineStarts=[]),e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));n=n.concat(t)}),n.map(e=>(e.discontinuityStarts=Ve(e.segments||[],`discontinuity`),e))},st=(e,t)=>{let n=at(e.sidx),r=n&&t[n]&&t[n].sidx;return r&&Xe(e,r,e.sidx.resolvedUri),e},ct=(e,t={})=>{if(!Object.keys(t).length)return e;for(let n in e)e[n]=st(e[n],t);return e},lt=({attributes:e,segments:t,sidx:n,mediaSequence:r,discontinuitySequence:i,discontinuityStarts:a},o)=>{let s={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:``,endList:e.type===`static`,timeline:e.periodStart,resolvedUri:e.baseUrl||``,targetDuration:e.duration,discontinuitySequence:i,discontinuityStarts:a,timelineStarts:e.timelineStarts,mediaSequence:r,segments:t};return e.contentProtection&&(s.contentProtection=e.contentProtection),e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),n&&(s.sidx=n),o&&(s.attributes.AUDIO=`audio`,s.attributes.SUBTITLES=`subs`),s},ut=({attributes:e,segments:t,mediaSequence:n,discontinuityStarts:r,discontinuitySequence:i})=>{t===void 0&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||``,duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);let a={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(a.CODECS=e.codecs);let o={attributes:a,uri:``,endList:e.type===`static`,timeline:e.periodStart,resolvedUri:e.baseUrl||``,targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:r,discontinuitySequence:i,mediaSequence:n,segments:t};return e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),o},dt=(e,t={},n=!1)=>{let r,i=e.reduce((e,i)=>{let a=i.attributes.role&&i.attributes.role.value||``,o=i.attributes.lang||``,s=i.attributes.label||`main`;if(o&&!i.attributes.label){let e=a?` (${a})`:``;s=`${i.attributes.lang}${e}`}e[s]||(e[s]={language:o,autoselect:!0,default:a===`main`,playlists:[],uri:``});let c=st(lt(i,n),t);return e[s].playlists.push(c),r===void 0&&a===`main`&&(r=i,r.default=!0),e},{});if(!r){let e=Object.keys(i)[0];i[e].default=!0}return i},ft=(e,t={})=>e.reduce((e,n)=>{let r=n.attributes.label||n.attributes.lang||`text`,i=n.attributes.lang||`und`;return e[r]||(e[r]={language:i,default:!1,autoselect:!1,playlists:[],uri:``}),e[r].playlists.push(st(ut(n),t)),e},{}),pt=e=>e.reduce((e,t)=>(t&&t.forEach(t=>{let{channel:n,language:r}=t;e[r]={autoselect:!1,default:!1,instreamId:n,language:r},t.hasOwnProperty(`aspectRatio`)&&(e[r].aspectRatio=t.aspectRatio),t.hasOwnProperty(`easyReader`)&&(e[r].easyReader=t.easyReader),t.hasOwnProperty(`3D`)&&(e[r][`3D`]=t[`3D`])}),e),{}),mt=({attributes:e,segments:t,sidx:n,discontinuityStarts:r})=>{let i={attributes:{NAME:e.id,AUDIO:`audio`,SUBTITLES:`subs`,RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:``,endList:e.type===`static`,timeline:e.periodStart,resolvedUri:e.baseUrl||``,targetDuration:e.duration,discontinuityStarts:r,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(i.attributes[`FRAME-RATE`]=e.frameRate),e.qualityRanking!==void 0&&(i.attributes.SCORE=1/(e.qualityRanking+1)),e.contentProtection&&(i.contentProtection=e.contentProtection),e.serviceLocation&&(i.attributes.serviceLocation=e.serviceLocation),n&&(i.sidx=n),i},ht=({attributes:e})=>e.mimeType===`video/mp4`||e.mimeType===`video/webm`||e.contentType===`video`,gt=({attributes:e})=>e.mimeType===`audio/mp4`||e.mimeType===`audio/webm`||e.contentType===`audio`,_t=({attributes:e})=>e.mimeType===`text/vtt`||e.contentType===`text`,vt=(e,t)=>{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})})},yt=e=>e?Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(r.playlists)},[]):[],bt=({dashPlaylists:e,locations:t,contentSteering:n,sidxMapping:r={},previousManifest:i,eventStream:a})=>{if(!e.length)return{};let{sourceDuration:o,type:s,suggestedPresentationDelay:c,minimumUpdatePeriod:l}=e[0].attributes,u=ot(e.filter(ht)).map(mt),d=ot(e.filter(gt)),f=ot(e.filter(_t)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),m={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:``,duration:o,playlists:ct(u,r)};l>=0&&(m.minimumUpdatePeriod=l*1e3),t&&(m.locations=t),n&&(m.contentSteering=n),s===`dynamic`&&(m.suggestedPresentationDelay=c),a&&a.length>0&&(m.eventStream=a);let h=m.playlists.length===0,g=d.length?dt(d,r,h):null,_=f.length?ft(f,r):null,v=u.concat(yt(g),yt(_));return m.timelineStarts=$e(v.map(({timelineStarts:e})=>e)),vt(v,m.timelineStarts),g&&(m.mediaGroups.AUDIO.audio=g),_&&(m.mediaGroups.SUBTITLES.subs=_),p.length&&(m.mediaGroups[`CLOSED-CAPTIONS`].cc=pt(p)),i?it({oldManifest:i,newManifest:m}):m},xt=(e,t,n)=>{let{NOW:r,clientOffset:i,availabilityStartTime:a,timescale:o=1,periodStart:s=0,minimumUpdatePeriod:c=0}=e,l=(r+i)/1e3,u=a+s,d=l+c-u;return Math.ceil((d*o-t)/n)},St=(e,t)=>{let{type:n,minimumUpdatePeriod:r=0,media:i=``,sourceDuration:a,timescale:o=1,startNumber:s=1,periodStart:c}=e,l=[],u=-1;for(let d=0;d<t.length;d++){let f=t[d],p=f.d,m=f.r||0,h=f.t||0;u<0&&(u=h),h&&h>u&&(u=h);let g;if(m<0){let s=d+1;g=s===t.length?n===`dynamic`&&r>0&&i.indexOf(`$Number$`)>0?xt(e,u,p):(a*o-u)/p:(t[s].t-u)/p}else g=m+1;let _=s+l.length+g,v=s+l.length;for(;v<_;)l.push({number:v,duration:p/o,time:u,timeline:c}),u+=p,v++}return l},Ct=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,wt=e=>(t,n,r,i)=>{if(t===`$$`)return`$`;if(e[n]===void 0)return t;let a=``+e[n];return n===`RepresentationID`||(i=r?parseInt(i,10):1,a.length>=i)?a:`${Array(i-a.length+1).join(`0`)}${a}`},Tt=(e,t)=>e.replace(Ct,wt(t)),Et=(e,t)=>!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?Je(e):St(e,t),Dt=(e,t)=>{let n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:r={sourceURL:``,range:``}}=e,i=B({baseUrl:e.baseUrl,source:Tt(r.sourceURL,n),range:r.range});return Et(e,t).map(t=>{n.Number=t.number,n.Time=t.time;let r=Tt(e.media||``,n),a=e.timescale||1,o=e.presentationTimeOffset||0,s=e.periodStart+(t.time-o)/a;return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:E(e.baseUrl||``,r),map:i,number:t.number,presentationTime:s}})},Ot=(e,t)=>{let{baseUrl:n,initialization:r={}}=e,i=B({baseUrl:n,source:r.sourceURL,range:r.range}),a=B({baseUrl:n,source:t.media,range:t.mediaRange});return a.map=i,a},kt=(e,t)=>{let{duration:n,segmentUrls:r=[],periodStart:i}=e;if(!n&&!t||n&&t)throw Error(Ue.SEGMENT_TIME_UNSPECIFIED);let a=r.map(t=>Ot(e,t)),o;return n&&(o=Je(e)),t&&(o=St(e,t)),o.map((t,n)=>{if(a[n]){let r=a[n],o=e.timescale||1,s=e.presentationTimeOffset||0;return r.timeline=t.timeline,r.duration=t.duration,r.number=t.number,r.presentationTime=i+(t.time-s)/o,r}}).filter(e=>e)},At=({attributes:e,segmentInfo:t})=>{let n,r;t.template?(r=Dt,n=R(e,t.template)):t.base?(r=Ye,n=R(e,t.base)):t.list&&(r=kt,n=R(e,t.list));let i={attributes:e};if(!r)return i;let a=r(n,t.segmentTimeline);if(n.duration){let{duration:e,timescale:t=1}=n;n.duration=e/t}else a.length?n.duration=a.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):n.duration=0;return i.attributes=n,i.segments=a,t.base&&n.indexRange&&(i.sidx=a[0],i.segments=[]),i},jt=e=>e.map(At),V=(e,t)=>Be(e.childNodes).filter(({tagName:e})=>e===t),Mt=e=>e.textContent.trim(),Nt=e=>parseFloat(e.split(`/`).reduce((e,t)=>e/t)),Pt=e=>{let t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;let[n,r,i,a,o,s]=t.slice(1);return parseFloat(n||0)*31536e3+parseFloat(r||0)*2592e3+parseFloat(i||0)*86400+parseFloat(a||0)*3600+parseFloat(o||0)*60+parseFloat(s||0)},Ft=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+=`Z`),Date.parse(e)),It={mediaPresentationDuration(e){return Pt(e)},availabilityStartTime(e){return Ft(e)/1e3},minimumUpdatePeriod(e){return Pt(e)},suggestedPresentationDelay(e){return Pt(e)},type(e){return e},timeShiftBufferDepth(e){return Pt(e)},start(e){return Pt(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return Nt(e)},startNumber(e){return parseInt(e,10)},timescale(e){return parseInt(e,10)},presentationTimeOffset(e){return parseInt(e,10)},duration(e){let t=parseInt(e,10);return isNaN(t)?Pt(e):t},d(e){return parseInt(e,10)},t(e){return parseInt(e,10)},r(e){return parseInt(e,10)},presentationTime(e){return parseInt(e,10)},qualityRanking(e){return parseInt(e,10)},qualityranking(e){return parseInt(e,10)},DEFAULT(e){return e}},Lt={qualityranking:`qualityRanking`},Rt=e=>e&&e.attributes?Be(e.attributes).reduce((e,t)=>{let n=It[t.name]||It.DEFAULT,r=Lt[t.name]||t.name;return e[r]=n(t.value),e},{}):{},zt={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":`org.w3.clearkey`,"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":`com.widevine.alpha`,"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":`com.microsoft.playready`,"urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":`com.adobe.primetime`,"urn:mpeg:dash:mp4protection:2011":`mp4protection`},Bt=(e,t)=>t.length?ze(e.map(function(e){return t.map(function(t){let n=Mt(t),r=E(e.baseUrl,n),i=R(Rt(t),{baseUrl:r});return r!==n&&!i.serviceLocation&&e.serviceLocation&&(i.serviceLocation=e.serviceLocation),i})})):e,Vt=e=>{let t=V(e,`SegmentTemplate`)[0],n=V(e,`SegmentList`)[0],r=n&&V(n,`SegmentURL`).map(e=>R({tag:`SegmentURL`},Rt(e))),i=V(e,`SegmentBase`)[0],a=n||t,o=a&&V(a,`SegmentTimeline`)[0],s=n||i||t,c=s&&V(s,`Initialization`)[0],l=t&&Rt(t);l&&c?l.initialization=c&&Rt(c):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});let u={template:l,segmentTimeline:o&&V(o,`S`).map(e=>Rt(e)),list:n&&R(Rt(n),{segmentUrls:r,initialization:Rt(c)}),base:i&&R(Rt(i),{initialization:Rt(c)})};return Object.keys(u).forEach(e=>{u[e]||delete u[e]}),u},Ht=(e,t,n)=>r=>{let i=Bt(t,V(r,`BaseURL`)),a=R(e,Rt(r)),o=Vt(r);return i.map(e=>({segmentInfo:R(n,o),attributes:R(a,e)}))},Ut=e=>e.reduce((e,t)=>{let n=Rt(t);n.schemeIdUri&&=n.schemeIdUri.toLowerCase();let r=zt[n.schemeIdUri];if(r){e[r]={attributes:n};let i=V(t,`cenc:pssh`)[0];if(i){let t=Mt(i);e[r].pssh=t&&ee(t)}}return e},{}),Wt=e=>{if(e.schemeIdUri===`urn:scte:dash:cc:cea-608:2015`)return(typeof e.value==`string`?e.value.split(`;`):[]).map(e=>{let t,n;return n=e,/^CC\d=/.test(e)?[t,n]=e.split(`=`):/^CC\d$/.test(e)&&(t=e),{channel:t,language:n}});if(e.schemeIdUri===`urn:scte:dash:cc:cea-708:2015`)return(typeof e.value==`string`?e.value.split(`;`):[]).map(e=>{let t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){let[n,r=``]=e.split(`=`);t.channel=n,t.language=e,r.split(`,`).forEach(e=>{let[n,r]=e.split(`:`);n===`lang`?t.language=r:n===`er`?t.easyReader=Number(r):n===`war`?t.aspectRatio=Number(r):n===`3D`&&(t[`3D`]=Number(r))})}else t.language=e;return t.channel&&=`SERVICE`+t.channel,t})},Gt=e=>ze(V(e.node,`EventStream`).map(t=>{let n=Rt(t),r=n.schemeIdUri;return V(t,`Event`).map(t=>{let i=Rt(t),a=i.presentationTime||0,o=n.timescale||1,s=i.duration||0,c=a/o+e.attributes.start;return{schemeIdUri:r,value:n.value,id:i.id,start:c,end:c+s/o,messageData:Mt(t)||i.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),Kt=(e,t,n)=>r=>{let i=Rt(r),a=Bt(t,V(r,`BaseURL`)),o=V(r,`Role`)[0],s=R(e,i,{role:Rt(o)}),c=V(r,`Accessibility`)[0],l=Wt(Rt(c));l&&(s=R(s,{captionServices:l}));let u=V(r,`Label`)[0];if(u&&u.childNodes.length){let e=u.childNodes[0].nodeValue.trim();s=R(s,{label:e})}let d=Ut(V(r,`ContentProtection`));Object.keys(d).length&&(s=R(s,{contentProtection:d}));let f=Vt(r),p=V(r,`Representation`),m=R(n,f);return ze(p.map(Ht(s,a,m)))},qt=(e,t)=>(n,r)=>{let i=Bt(t,V(n.node,`BaseURL`)),a=R(e,{periodStart:n.attributes.start});typeof n.attributes.duration==`number`&&(a.periodDuration=n.attributes.duration);let o=V(n.node,`AdaptationSet`),s=Vt(n.node);return ze(o.map(Kt(a,i,s)))},Jt=(e,t)=>{if(e.length>1&&t({type:`warn`,message:`The MPD manifest should contain no more than one ContentSteering tag`}),!e.length)return null;let n=R({serverURL:Mt(e[0])},Rt(e[0]));return n.queryBeforeStart=n.queryBeforeStart===`true`,n},Yt=({attributes:e,priorPeriodAttributes:t,mpdType:n})=>typeof e.start==`number`?e.start:t&&typeof t.start==`number`&&typeof t.duration==`number`?t.start+t.duration:!t&&n===`static`?0:null,Xt=(e,t={})=>{let{manifestUri:n=``,NOW:r=Date.now(),clientOffset:i=0,eventHandler:a=function(){}}=t,o=V(e,`Period`);if(!o.length)throw Error(Ue.INVALID_NUMBER_OF_PERIOD);let s=V(e,`Location`),c=Rt(e),l=Bt([{baseUrl:n}],V(e,`BaseURL`)),u=V(e,`ContentSteering`);c.type=c.type||`static`,c.sourceDuration=c.mediaPresentationDuration||0,c.NOW=r,c.clientOffset=i,s.length&&(c.locations=s.map(Mt));let d=[];return o.forEach((e,t)=>{let n=Rt(e),r=d[t-1];n.start=Yt({attributes:n,priorPeriodAttributes:r?r.attributes:null,mpdType:c.type}),d.push({node:e,attributes:n})}),{locations:c.locations,contentSteeringInfo:Jt(u,a),representationInfo:ze(d.map(qt(c,l))),eventStream:ze(d.map(Gt))}},Zt=e=>{if(e===``)throw Error(Ue.DASH_EMPTY_MANIFEST);let t=new Ie.DOMParser,n,r;try{n=t.parseFromString(e,`application/xml`),r=n&&n.documentElement.tagName===`MPD`?n.documentElement:null}catch{}if(!r||r&&r.getElementsByTagName(`parsererror`).length>0)throw Error(Ue.DASH_INVALID_XML);return r},Qt=e=>{let t=V(e,`UTCTiming`)[0];if(!t)return null;let n=Rt(t);switch(n.schemeIdUri){case`urn:mpeg:dash:utc:http-head:2014`:case`urn:mpeg:dash:utc:http-head:2012`:n.method=`HEAD`;break;case`urn:mpeg:dash:utc:http-xsdate:2014`:case`urn:mpeg:dash:utc:http-iso:2014`:case`urn:mpeg:dash:utc:http-xsdate:2012`:case`urn:mpeg:dash:utc:http-iso:2012`:n.method=`GET`;break;case`urn:mpeg:dash:utc:direct:2014`:case`urn:mpeg:dash:utc:direct:2012`:n.method=`DIRECT`,n.value=Date.parse(n.value);break;default:throw Error(Ue.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},$t=(e,t={})=>{let n=Xt(Zt(e),t);return bt({dashPlaylists:jt(n.representationInfo),locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})},en=e=>Qt(Zt(e)),tn=e.r(((e,t)=>{var n=2**32;t.exports={getUint64:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r;return t.getBigUint64?(r=t.getBigUint64(0),r<2**53-1?Number(r):r):t.getUint32(0)*n+t.getUint32(4)},MAX_UINT32:n}})),nn=e.r(((e,t)=>{var n=tn().getUint64;t.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;r.version===0?(r.earliestPresentationTime=t.getUint32(i),r.firstOffset=t.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(e.subarray(i)),r.firstOffset=n(e.subarray(i+8)),i+=16),i+=2;var a=t.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(e[i]&128)>>>7,referencedSize:t.getUint32(i)&2147483647,subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(e[i+8]&128),sapType:(e[i+8]&112)>>>4,sapDeltaTime:t.getUint32(i+8)&268435455});return r}})),rn=e.i(nn()),an=F([73,68,51]),on=function(e,t){t===void 0&&(t=0),e=F(e);var n=e[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(n&16)>>4?r+20:r+10},sn=function e(t,n){return n===void 0&&(n=0),t=F(t),t.length-n<10||!L(t,an,{offset:n})?n:(n+=on(t,n),e(t,n))};new Uint8Array([79,112,117,115,72,101,97,100]);var cn=function(e){return typeof e==`string`?Oe(e):e},ln=function(e){return Array.isArray(e)?e.map(function(e){return cn(e)}):[cn(e)]},un,dn=function(e){e=F(e);for(var t=[],n=0;e.length>n;){var r=e[n],i=0,a=0;a++;var o=e[a];for(a++;o&128;)i=(o&127)<<7,o=e[a],a++;i+=o&127;for(var s=0;s<un.length;s++){var c=un[s],l=c.id,u=c.parser;if(r===l){t.push(u(e.subarray(a,a+i)));break}}n+=i+a}return t};un=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:``};if(t.flags&128&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.flags&64){var n=e[t.size];t.url=De(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return t.flags&32&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=dn(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:dn(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var fn=function e(t,n,r){r===void 0&&(r=!1),n=ln(n),t=F(t);var i=[];if(!n.length)return i;for(var a=0;a<t.length;){var o=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0,s=t.subarray(a+4,a+8);if(o===0)break;var c=a+o;if(c>t.length){if(r)break;c=t.length}var l=t.subarray(a+8,c);L(s,n[0])&&(n.length===1?i.push(l):i.push.apply(i,e(l,n.slice(1),r))),a=c}return i},pn={EBML:F([26,69,223,163]),DocType:F([66,130]),Segment:F([24,83,128,103]),SegmentInfo:F([21,73,169,102]),Tracks:F([22,84,174,107]),Track:F([174]),TrackNumber:F([215]),DefaultDuration:F([35,227,131]),TrackEntry:F([174]),TrackType:F([131]),FlagDefault:F([136]),CodecID:F([134]),CodecPrivate:F([99,162]),VideoTrack:F([224]),AudioTrack:F([225]),Cluster:F([31,67,182,117]),Timestamp:F([231]),TimestampScale:F([42,215,177]),BlockGroup:F([160]),BlockDuration:F([155]),Block:F([161]),SimpleBlock:F([163])},mn=[128,64,32,16,8,4,2,1],hn=function(e){for(var t=1,n=0;n<mn.length&&!(e&mn[n]);n++)t++;return t},gn=function(e,t,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1);var i=hn(e[t]),a=e.subarray(t,t+i);return n&&(a=Array.prototype.slice.call(e,t,t+i),a[0]^=mn[i-1]),{length:i,value:Te(a,{signed:r}),bytes:a}},_n=function e(t){return typeof t==`string`?t.match(/.{1,2}/g).map(function(t){return e(t)}):typeof t==`number`?Ee(t):t},vn=function(e){return Array.isArray(e)?e.map(function(e){return _n(e)}):[_n(e)]},yn=function e(t,n,r){if(r>=n.length)return n.length;var i=gn(n,r,!1);if(L(t.bytes,i.bytes))return r;var a=gn(n,r+i.length);return e(t,n,r+a.length+a.value+i.length)},bn=function e(t,n){n=vn(n),t=F(t);var r=[];if(!n.length)return r;for(var i=0;i<t.length;){var a=gn(t,i,!1),o=gn(t,i+a.length),s=i+a.length+o.length;o.value===127&&(o.value=yn(a,t,s),o.value!==t.length&&(o.value-=s));var c=s+o.value>t.length?t.length:s+o.value,l=t.subarray(s,c);L(n[0],a.bytes)&&(n.length===1?r.push(l):r=r.concat(e(l,n.slice(1))));var u=a.length+o.length+l.length;i+=u}return r},xn=F([0,0,0,1]),Sn=F([0,0,1]),Cn=F([0,0,3]),wn=function(e){for(var t=[],n=1;n<e.length-2;)L(e.subarray(n,n+3),Cn)&&(t.push(n+2),n++),n++;if(t.length===0)return e;var r=e.length-t.length,i=new Uint8Array(r),a=0;for(n=0;n<r;a++,n++)a===t[0]&&(a++,t.shift()),i[n]=e[a];return i},Tn=function(e,t,n,r){r===void 0&&(r=1/0),e=F(e),n=[].concat(n);for(var i=0,a,o=0;i<e.length&&(o<r||a);){var s=void 0;if(L(e.subarray(i),xn)?s=4:L(e.subarray(i),Sn)&&(s=3),!s){i++;continue}if(o++,a)return wn(e.subarray(a,i));var c=void 0;t===`h264`?c=e[i+s]&31:t===`h265`&&(c=e[i+s]>>1&63),n.indexOf(c)!==-1&&(a=i+s),i+=s+(t===`h264`?1:2)}return e.subarray(0,0)},En=function(e,t,n){return Tn(e,`h264`,t,n)},Dn=function(e,t,n){return Tn(e,`h265`,t,n)},On={webm:F([119,101,98,109]),matroska:F([109,97,116,114,111,115,107,97]),flac:F([102,76,97,67]),ogg:F([79,103,103,83]),ac3:F([11,119]),riff:F([82,73,70,70]),avi:F([65,86,73]),wav:F([87,65,86,69]),"3gp":F([102,116,121,112,51,103]),mp4:F([102,116,121,112]),fmp4:F([115,116,121,112]),mov:F([102,116,121,112,113,116]),moov:F([109,111,111,118]),moof:F([109,111,111,102]),vtt:F([87,69,66,86,84,84])},kn={aac:function(e){return L(e,[255,16],{offset:sn(e),mask:[255,22]})},mp3:function(e){return L(e,[255,2],{offset:sn(e),mask:[255,6]})},webm:function(e){var t=bn(e,[pn.EBML,pn.DocType])[0];return L(t,On.webm)},mkv:function(e){var t=bn(e,[pn.EBML,pn.DocType])[0];return L(t,On.matroska)},mp4:function(e){if(kn[`3gp`](e)||kn.mov(e))return!1;if(L(e,On.mp4,{offset:4})||L(e,On.fmp4,{offset:4})||L(e,On.moof,{offset:4})||L(e,On.moov,{offset:4}))return!0},mov:function(e){return L(e,On.mov,{offset:4})},"3gp":function(e){return L(e,On[`3gp`],{offset:4})},ac3:function(e){var t=sn(e);return L(e,On.ac3,{offset:t})},vtt:function(e){return L(e,On.vtt)},ts:function(e){if(e.length<189&&e.length>=1)return e[0]===71;for(var t=0;t+188<e.length&&t<188;){if(e[t]===71&&e[t+188]===71)return!0;t+=1}return!1},flac:function(e){var t=sn(e);return L(e,On.flac,{offset:t})},ogg:function(e){return L(e,On.ogg)},avi:function(e){return L(e,On.riff)&&L(e,On.avi,{offset:8})},wav:function(e){return L(e,On.riff)&&L(e,On.wav,{offset:8})},h264:function(e){return En(e,7,3).length},h265:function(e){return Dn(e,[32,33],3).length}},An=Object.keys(kn).filter(function(e){return e!==`ts`&&e!==`h264`&&e!==`h265`}).concat([`ts`,`h264`,`h265`]);An.forEach(function(e){var t=kn[e];kn[e]=function(e){return t(F(e))}});var jn=kn,Mn=function(e){e=F(e);for(var t=0;t<An.length;t++){var n=An[t];if(jn[n](e))return n}return``},Nn=function(e){return fn(e,[`moof`]).length>0},Pn=e.r(((e,t)=>{var n=9e4,r=function(e){return e*n},i=function(e,t){return e*t},a=function(e){return e/n},o=function(e,t){return e/t};t.exports={ONE_SECOND_IN_TS:n,secondsToVideoTs:r,secondsToAudioTs:i,videoTsToSeconds:a,audioTsToSeconds:o,audioTsToVideoTs:function(e,t){return r(o(e,t))},videoTsToAudioTs:function(e,t){return i(a(e),t)},metadataTsToSeconds:function(e,t,n){return a(n?e:e-t)}}}))(),Fn=`8.24.0`,In={},Ln=function(e,t){return In[e]=In[e]||[],t&&(In[e]=In[e].concat(t)),In[e]},Rn=function(e,t){Ln(e,t)},zn=function(e,t){let n=Ln(e).indexOf(t);return n<=-1?!1:(In[e]=In[e].slice(),In[e].splice(n,1),!0)},Bn=function(e,t){Ln(e,[].concat(t).map(t=>{let n=(...r)=>(zn(e,n),t(...r));return n}))},Vn={prefixed:!0},Hn=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenEnabled`,`fullscreenchange`,`fullscreenerror`,`fullscreen`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitFullscreenEnabled`,`webkitfullscreenchange`,`webkitfullscreenerror`,`-webkit-full-screen`]],Un=Hn[0],Wn;for(let e=0;e<Hn.length;e++)if(Hn[e][1]in x.default){Wn=Hn[e];break}if(Wn){for(let e=0;e<Wn.length;e++)Vn[Un[e]]=Wn[e];Vn.prefixed=Wn[0]!==Un[0]}var Gn=[],Kn=(e,t,n)=>(r,i,a)=>{let o=t.levels[i],s=RegExp(`^(${o})$`),c=e;if(r!==`log`&&a.unshift(r.toUpperCase()+`:`),n&&(c=`%c${e}`,a.unshift(n)),a.unshift(c+`:`),Gn){Gn.push([].concat(a));let e=Gn.length-1e3;Gn.splice(0,e>0?e:0)}if(!b.default.console)return;let l=b.default.console[r];!l&&r===`debug`&&(l=b.default.console.info||b.default.console.log),!(!l||!o||!s.test(r))&&l[Array.isArray(a)?`apply`:`call`](b.default.console,a)};function qn(e,t=`:`,n=``){let r=`info`,i;function a(...e){i(`log`,r,e)}return i=Kn(e,a,n),a.createLogger=(r,i,a)=>{let o=i===void 0?t:i,s=a===void 0?n:a;return qn(`${e} ${o} ${r}`,o,s)},a.createNewLogger=(e,t,n)=>qn(e,t,n),a.levels={all:`debug|log|warn|error`,off:``,debug:`debug|log|warn|error`,info:`log|warn|error`,warn:`warn|error`,error:`error`,DEFAULT:r},a.level=e=>{if(typeof e==`string`){if(!a.levels.hasOwnProperty(e))throw Error(`"${e}" in not a valid log level`);r=e}return r},a.history=()=>Gn?[].concat(Gn):[],a.history.filter=e=>(Gn||[]).filter(t=>RegExp(`.*${e}.*`).test(t[0])),a.history.clear=()=>{Gn&&(Gn.length=0)},a.history.disable=()=>{Gn!==null&&(Gn.length=0,Gn=null)},a.history.enable=()=>{Gn===null&&(Gn=[])},a.error=(...e)=>i(`error`,r,e),a.warn=(...e)=>i(`warn`,r,e),a.debug=(...e)=>i(`debug`,r,e),a}var H=qn(`VIDEOJS`),Jn=H.createLogger,Yn=Object.prototype.toString,Xn=function(e){return Qn(e)?Object.keys(e):[]};function U(e,t){Xn(e).forEach(n=>t(e[n],n))}function Zn(e,t,n=0){return Xn(e).reduce((n,r)=>t(n,e[r],r),n)}function Qn(e){return!!e&&typeof e==`object`}function $n(e){return Qn(e)&&Yn.call(e)===`[object Object]`&&e.constructor===Object}function W(...e){let t={};return e.forEach(e=>{e&&U(e,(e,n)=>{if(!$n(e)){t[n]=e;return}$n(t[n])||(t[n]={}),t[n]=W(t[n],e)})}),t}function er(e={}){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(r)}return t}function tr(e,t,n,r=!0){let i=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0}),a={configurable:!0,enumerable:!0,get(){let e=n();return i(e),e}};return r&&(a.set=i),Object.defineProperty(e,t,a)}var nr=Object.freeze({__proto__:null,each:U,reduce:Zn,isObject:Qn,isPlain:$n,merge:W,values:er,defineLazyProperty:tr}),rr=!1,ir=null,ar=!1,or,sr=!1,cr=!1,lr=!1,ur=!1,dr=null,fr=null,pr=!!(b.default.cast&&b.default.cast.framework&&b.default.cast.framework.CastReceiverContext),mr=null,hr=!1,gr=!1,_r=!1,vr=!1,yr=!1,br=!1,xr=!1,Sr=!!(kr()&&(`ontouchstart`in b.default||b.default.navigator.maxTouchPoints||b.default.DocumentTouch&&b.default.document instanceof b.default.DocumentTouch)),Cr=b.default.navigator&&b.default.navigator.userAgentData;if(Cr&&Cr.platform&&Cr.brands&&(ar=Cr.platform===`Android`,cr=!!Cr.brands.find(e=>e.brand===`Microsoft Edge`),lr=!!Cr.brands.find(e=>e.brand===`Chromium`),ur=!cr&&lr,dr=fr=(Cr.brands.find(e=>e.brand===`Chromium`)||{}).version||null,gr=Cr.platform===`Windows`),!lr){let e=b.default.navigator&&b.default.navigator.userAgent||``;rr=/iPod/i.test(e),ir=function(){let t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),ar=/Android/i.test(e),or=function(){let t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;let n=t[1]&&parseFloat(t[1]),r=t[2]&&parseFloat(t[2]);return n&&r?parseFloat(t[1]+`.`+t[2]):n||null}(),sr=/Firefox/i.test(e),cr=/Edg/i.test(e),lr=/Chrome/i.test(e)||/CriOS/i.test(e),ur=!cr&&lr,dr=fr=function(){let t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),mr=function(){let t=/MSIE\s(\d+)\.\d/.exec(e),n=t&&parseFloat(t[1]);return!n&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(n=11),n}(),yr=/Tizen/i.test(e),br=/Web0S/i.test(e),xr=yr||br,hr=/Safari/i.test(e)&&!ur&&!ar&&!cr&&!xr,gr=/Windows/i.test(e),_r=/iPad/i.test(e)||hr&&Sr&&!/iPhone/i.test(e),vr=/iPhone/i.test(e)&&!_r}var wr=vr||_r||rr,Tr=(hr||wr)&&!ur,Er=Object.freeze({__proto__:null,get IS_IPOD(){return rr},get IOS_VERSION(){return ir},get IS_ANDROID(){return ar},get ANDROID_VERSION(){return or},get IS_FIREFOX(){return sr},get IS_EDGE(){return cr},get IS_CHROMIUM(){return lr},get IS_CHROME(){return ur},get CHROMIUM_VERSION(){return dr},get CHROME_VERSION(){return fr},IS_CHROMECAST_RECEIVER:pr,get IE_VERSION(){return mr},get IS_SAFARI(){return hr},get IS_WINDOWS(){return gr},get IS_IPAD(){return _r},get IS_IPHONE(){return vr},get IS_TIZEN(){return yr},get IS_WEBOS(){return br},get IS_SMART_TV(){return xr},TOUCH_ENABLED:Sr,IS_IOS:wr,IS_ANY_SAFARI:Tr});function Dr(e){return typeof e==`string`&&!!e.trim()}function Or(e){if(e.indexOf(` `)>=0)throw Error(`class has illegal whitespace characters`)}function kr(){return x.default===b.default.document}function Ar(e){return Qn(e)&&e.nodeType===1}function jr(){try{return b.default.parent!==b.default.self}catch{return!0}}function Mr(e){return function(t,n){if(!Dr(t))return x.default[e](null);Dr(n)&&(n=x.default.querySelector(n));let r=Ar(n)?n:x.default;return r[e]&&r[e](t)}}function G(e=`div`,t={},n={},r){let i=x.default.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){let n=t[e];e===`textContent`?Nr(i,n):(i[e]!==n||e===`tabIndex`)&&(i[e]=n)}),Object.getOwnPropertyNames(n).forEach(function(e){i.setAttribute(e,n[e])}),r&&Zr(i,r),i}function Nr(e,t){return e.textContent===void 0?e.innerText=t:e.textContent=t,e}function Pr(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Fr(e,t){return Or(t),e.classList.contains(t)}function Ir(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function Lr(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(H.warn(`removeClass was called with an element that doesn't exist`),null)}function Rr(e,t,n){return typeof n==`function`&&(n=n(e,t)),typeof n!=`boolean`&&(n=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,n)),e}function zr(e,t){Object.getOwnPropertyNames(t).forEach(function(n){let r=t[n];r==null||r===!1?e.removeAttribute(n):e.setAttribute(n,r===!0?``:r)})}function Br(e){let t={},n=[`autoplay`,`controls`,`playsinline`,`loop`,`muted`,`default`,`defaultMuted`];if(e&&e.attributes&&e.attributes.length>0){let r=e.attributes;for(let e=r.length-1;e>=0;e--){let i=r[e].name,a=r[e].value;n.includes(i)&&(a=a!==null),t[i]=a}}return t}function Vr(e,t){return e.getAttribute(t)}function Hr(e,t,n){e.setAttribute(t,n)}function Ur(e,t){e.removeAttribute(t)}function Wr(){x.default.body.focus(),x.default.onselectstart=function(){return!1}}function Gr(){x.default.onselectstart=function(){return!0}}function K(e){if(e&&e.getBoundingClientRect&&e.parentNode){let t=e.getBoundingClientRect(),n={};return[`bottom`,`height`,`left`,`right`,`top`,`width`].forEach(e=>{t[e]!==void 0&&(n[e]=t[e])}),n.height||=parseFloat(ni(e,`height`)),n.width||=parseFloat(ni(e,`width`)),n}}function Kr(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};let t=e.offsetWidth,n=e.offsetHeight,r=0,i=0;for(;e.offsetParent&&e!==x.default[Vn.fullscreenElement];)r+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{left:r,top:i,width:t,height:n}}function qr(e,t){let n={x:0,y:0};if(wr){let t=e;for(;t&&t.nodeName.toLowerCase()!==`html`;){let e=ni(t,`transform`);if(/^matrix/.test(e)){let t=e.slice(7,-1).split(/,\s/).map(Number);n.x+=t[4],n.y+=t[5]}else if(/^matrix3d/.test(e)){let t=e.slice(9,-1).split(/,\s/).map(Number);n.x+=t[12],n.y+=t[13]}if(t.assignedSlot&&t.assignedSlot.parentElement&&b.default.WebKitCSSMatrix){let e=b.default.getComputedStyle(t.assignedSlot.parentElement).transform,r=new b.default.WebKitCSSMatrix(e);n.x+=r.m41,n.y+=r.m42}t=t.parentNode||t.host}}let r={},i=Kr(t.target),a=Kr(e),o=a.width,s=a.height,c=t.offsetY-(a.top-i.top),l=t.offsetX-(a.left-i.left);return t.changedTouches&&(l=t.changedTouches[0].pageX-a.left,c=t.changedTouches[0].pageY+a.top,wr&&(l-=n.x,c-=n.y)),r.y=1-Math.max(0,Math.min(1,c/s)),r.x=Math.max(0,Math.min(1,l/o)),r}function Jr(e){return Qn(e)&&e.nodeType===3}function Yr(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Xr(e){return typeof e==`function`&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>{if(typeof e==`function`&&(e=e()),Ar(e)||Jr(e))return e;if(typeof e==`string`&&/\S/.test(e))return x.default.createTextNode(e)}).filter(e=>e)}function Zr(e,t){return Xr(t).forEach(t=>e.appendChild(t)),e}function Qr(e,t){return Zr(Yr(e),t)}function $r(e){return e.button===void 0&&e.buttons===void 0||e.button===0&&e.buttons===void 0||e.type===`mouseup`&&e.button===0&&e.buttons===0||e.type===`mousedown`&&e.button===0&&e.buttons===0||e.button===0&&e.buttons===1}var ei=Mr(`querySelector`),ti=Mr(`querySelectorAll`);function ni(e,t){if(!e||!t)return``;if(typeof b.default.getComputedStyle==`function`){let n;try{n=b.default.getComputedStyle(e)}catch{return``}return n?n.getPropertyValue(t)||n[t]:``}return``}function ri(e){[...x.default.styleSheets].forEach(t=>{try{let n=[...t.cssRules].map(e=>e.cssText).join(``),r=x.default.createElement(`style`);r.textContent=n,e.document.head.appendChild(r)}catch{let n=x.default.createElement(`link`);n.rel=`stylesheet`,n.type=t.type,n.media=t.media.mediaText,n.href=t.href,e.document.head.appendChild(n)}})}var ii=Object.freeze({__proto__:null,isReal:kr,isEl:Ar,isInFrame:jr,createEl:G,textContent:Nr,prependTo:Pr,hasClass:Fr,addClass:Ir,removeClass:Lr,toggleClass:Rr,setAttributes:zr,getAttributes:Br,getAttribute:Vr,setAttribute:Hr,removeAttribute:Ur,blockTextSelection:Wr,unblockTextSelection:Gr,getBoundingClientRect:K,findPosition:Kr,getPointerPosition:qr,isTextNode:Jr,emptyEl:Yr,normalizeContent:Xr,appendContent:Zr,insertContent:Qr,isSingleLeftClick:$r,$:ei,$$:ti,computedStyle:ni,copyStyleSheetsToWindow:ri}),ai=!1,oi,si=function(){if(oi.options.autoSetup===!1)return;let e=Array.prototype.slice.call(x.default.getElementsByTagName(`video`)),t=Array.prototype.slice.call(x.default.getElementsByTagName(`audio`)),n=Array.prototype.slice.call(x.default.getElementsByTagName(`video-js`)),r=e.concat(t,n);if(r&&r.length>0)for(let e=0,t=r.length;e<t;e++){let t=r[e];if(t&&t.getAttribute)t.player===void 0&&t.getAttribute(`data-setup`)!==null&&oi(t);else{ci(1);break}}else ai||ci(1)};function ci(e,t){kr()&&(t&&(oi=t),b.default.setTimeout(si,e))}function li(){ai=!0,b.default.removeEventListener(`load`,li)}kr()&&(x.default.readyState===`complete`?li():b.default.addEventListener(`load`,li));var ui=function(e){let t=x.default.createElement(`style`);return t.className=e,t},di=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},fi=new WeakMap,pi=3;function mi(){return pi++}function hi(e,t){if(!fi.has(e))return;let n=fi.get(e);n.handlers[t].length===0&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent(`on`+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),Object.getOwnPropertyNames(n).length===0&&fi.delete(e)}function gi(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function _i(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){let r=e||b.default.event;e={};let i=[`layerX`,`layerY`,`keyLocation`,`path`,`webkitMovementX`,`webkitMovementY`,`mozPressure`,`mozInputSource`];for(let t in r)i.includes(t)||t===`returnValue`&&r.preventDefault||(e[t]=r[t]);if(e.target||(e.target=e.srcElement||x.default),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,e.clientX!==null&&e.clientX!==void 0){let t=x.default.documentElement,n=x.default.body;e.pageX=e.clientX+(t&&t.scrollLeft||n&&n.scrollLeft||0)-(t&&t.clientLeft||n&&n.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||n&&n.scrollTop||0)-(t&&t.clientTop||n&&n.clientTop||0)}e.which=e.charCode||e.keyCode,e.button!==null&&e.button!==void 0&&(e.button=e.button&1?0:e.button&4?1:e.button&2?2:0)}return e.fixed_=!0,e}var vi,yi=function(){if(typeof vi!=`boolean`){vi=!1;try{let e=Object.defineProperty({},"passive",{get(){vi=!0}});b.default.addEventListener(`test`,null,e),b.default.removeEventListener(`test`,null,e)}catch{}}return vi},bi=[`touchstart`,`touchmove`];function xi(e,t,n){if(Array.isArray(t))return gi(xi,e,t,n);fi.has(e)||fi.set(e,{});let r=fi.get(e);if(r.handlers||={},r.handlers[t]||(r.handlers[t]=[]),n.guid||=mi(),r.handlers[t].push(n),r.dispatcher||=(r.disabled=!1,function(t,n){if(r.disabled)return;t=_i(t);let i=r.handlers[t.type];if(i){let r=i.slice(0);for(let i=0,a=r.length;i<a&&!t.isImmediatePropagationStopped();i++)try{r[i].call(e,t,n)}catch(e){H.error(e)}}}),r.handlers[t].length===1){if(e.addEventListener){let n=!1;yi()&&bi.indexOf(t)>-1&&(n={passive:!0}),e.addEventListener(t,r.dispatcher,n)}else e.attachEvent&&e.attachEvent(`on`+t,r.dispatcher)}}function Si(e,t,n){if(!fi.has(e))return;let r=fi.get(e);if(!r.handlers)return;if(Array.isArray(t))return gi(Si,e,t,n);let i=function(e,t){r.handlers[t]=[],hi(e,t)};if(t===void 0){for(let t in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},t)&&i(e,t);return}let a=r.handlers[t];if(a){if(!n){i(e,t);return}if(n.guid)for(let e=0;e<a.length;e++)a[e].guid===n.guid&&a.splice(e--,1);hi(e,t)}}function Ci(e,t,n){let r=fi.has(e)?fi.get(e):{},i=e.parentNode||e.ownerDocument;if(typeof t==`string`?t={type:t,target:e}:t.target||(t.target=e),t=_i(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&t.bubbles===!0)Ci.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){fi.has(t.target)||fi.set(t.target,{});let e=fi.get(t.target);t.target[t.type]&&(e.disabled=!0,typeof t.target[t.type]==`function`&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function wi(e,t,n){if(Array.isArray(t))return gi(wi,e,t,n);let r=function(){Si(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||mi(),xi(e,t,r)}function Ti(e,t,n){let r=function(){Si(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||mi(),xi(e,t,r)}var Ei=Object.freeze({__proto__:null,fixEvent:_i,on:xi,off:Si,trigger:Ci,one:wi,any:Ti}),Di=30,q=function(e,t,n){t.guid||=mi();let r=t.bind(e);return r.guid=n?n+`_`+t.guid:t.guid,r},Oi=function(e,t){let n=b.default.performance.now();return function(...r){let i=b.default.performance.now();i-n>=t&&(e(...r),n=i)}},ki=function(e,t,n,r=b.default){let i,a=()=>{r.clearTimeout(i),i=null},o=function(){let a=this,o=arguments,s=function(){i=null,s=null,n||e.apply(a,o)};!i&&n&&e.apply(a,o),r.clearTimeout(i),i=r.setTimeout(s,t)};return o.cancel=a,o},Ai=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Di,bind_:q,throttle:Oi,debounce:ki}),ji,Mi=class{on(e,t){let n=this.addEventListener;this.addEventListener=()=>{},xi(this,e,t),this.addEventListener=n}off(e,t){Si(this,e,t)}one(e,t){let n=this.addEventListener;this.addEventListener=()=>{},wi(this,e,t),this.addEventListener=n}any(e,t){let n=this.addEventListener;this.addEventListener=()=>{},Ti(this,e,t),this.addEventListener=n}trigger(e){let t=e.type||e;typeof e==`string`&&(e={type:t}),e=_i(e),this.allowedEvents_[t]&&this[`on`+t]&&this[`on`+t](e),Ci(this,e)}queueTrigger(e){ji||=new Map;let t=e.type||e,n=ji.get(this);n||(n=new Map,ji.set(this,n));let r=n.get(t);n.delete(t),b.default.clearTimeout(r);let i=b.default.setTimeout(()=>{n.delete(t),n.size===0&&(n=null,ji.delete(this)),this.trigger(e)},0);n.set(t,i)}};Mi.prototype.allowedEvents_={},Mi.prototype.addEventListener=Mi.prototype.on,Mi.prototype.removeEventListener=Mi.prototype.off,Mi.prototype.dispatchEvent=Mi.prototype.trigger;var Ni=e=>typeof e.name==`function`?e.name():typeof e.name==`string`?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,Pi=e=>e instanceof Mi||!!e.eventBusEl_&&[`on`,`one`,`off`,`trigger`].every(t=>typeof e[t]==`function`),Fi=(e,t)=>{Pi(e)?t():(e.eventedCallbacks||=[],e.eventedCallbacks.push(t))},Ii=e=>typeof e==`string`&&/\S/.test(e)||Array.isArray(e)&&!!e.length,Li=(e,t,n)=>{if(!e||!e.nodeName&&!Pi(e))throw Error(`Invalid target for ${Ni(t)}#${n}; must be a DOM node or evented object.`)},Ri=(e,t,n)=>{if(!Ii(e))throw Error(`Invalid event type for ${Ni(t)}#${n}; must be a non-empty string or array.`)},zi=(e,t,n)=>{if(typeof e!=`function`)throw Error(`Invalid listener for ${Ni(t)}#${n}; must be a function.`)},Bi=(e,t,n)=>{let r=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i,a,o;return r?(i=e.eventBusEl_,t.length>=3&&t.shift(),[a,o]=t):(i=t[0],a=t[1],o=t[2]),Li(i,e,n),Ri(a,e,n),zi(o,e,n),o=q(e,o),{isTargetingSelf:r,target:i,type:a,listener:o}},Vi=(e,t,n,r)=>{Li(e,e,t),e.nodeName?Ei[t](e,n,r):e[t](n,r)},Hi={on(...e){let{isTargetingSelf:t,target:n,type:r,listener:i}=Bi(this,e,`on`);if(Vi(n,`on`,r,i),!t){let e=()=>this.off(n,r,i);e.guid=i.guid;let t=()=>this.off(`dispose`,e);t.guid=i.guid,Vi(this,`on`,`dispose`,e),Vi(n,`on`,`dispose`,t)}},one(...e){let{isTargetingSelf:t,target:n,type:r,listener:i}=Bi(this,e,`one`);if(t)Vi(n,`one`,r,i);else{let e=(...t)=>{this.off(n,r,e),i.apply(null,t)};e.guid=i.guid,Vi(n,`one`,r,e)}},any(...e){let{isTargetingSelf:t,target:n,type:r,listener:i}=Bi(this,e,`any`);if(t)Vi(n,`any`,r,i);else{let e=(...t)=>{this.off(n,r,e),i.apply(null,t)};e.guid=i.guid,Vi(n,`any`,r,e)}},off(e,t,n){if(!e||Ii(e))Si(this.eventBusEl_,e,t);else{let r=e,i=t;Li(r,this,`off`),Ri(i,this,`off`),zi(n,this,`off`),n=q(this,n),this.off(`dispose`,n),r.nodeName?(Si(r,i,n),Si(r,`dispose`,n)):Pi(r)&&(r.off(i,n),r.off(`dispose`,n))}},trigger(e,t){if(Li(this.eventBusEl_,this,`trigger`),!Ii(e&&typeof e!=`string`?e.type:e))throw Error(`Invalid event type for ${Ni(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return Ci(this.eventBusEl_,e,t)}};function Ui(e,t={}){let{eventBusKey:n}=t;if(n){if(!e[n].nodeName)throw Error(`The eventBusKey "${n}" does not refer to an element.`);e.eventBusEl_=e[n]}else e.eventBusEl_=G(`span`,{className:`vjs-event-bus`});return Object.assign(e,Hi),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on(`dispose`,()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&fi.has(e)&&fi.delete(e)}),b.default.setTimeout(()=>{e.eventBusEl_=null},0)}),e}var Wi={state:{},setState(e){typeof e==`function`&&(e=e());let t;return U(e,(e,n)=>{this.state[n]!==e&&(t||={},t[n]={from:this.state[n],to:e}),this.state[n]=e}),t&&Pi(this)&&this.trigger({changes:t,type:`statechanged`}),t}};function Gi(e,t){return Object.assign(e,Wi),e.state=Object.assign({},e.state,t),typeof e.handleStateChanged==`function`&&Pi(e)&&e.on(`statechanged`,e.handleStateChanged),e}var Ki=function(e){return typeof e==`string`?e.replace(/./,e=>e.toLowerCase()):e},qi=function(e){return typeof e==`string`?e.replace(/./,e=>e.toUpperCase()):e},Ji=function(e,t){return qi(e)===qi(t)},Yi=Object.freeze({__proto__:null,toLowerCase:Ki,toTitleCase:qi,titleCaseEquals:Ji}),J=class e{constructor(e,t,n){if(this.player_=!e&&this.play?e=this:e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=W({},this.options_),t=this.options_=W(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){let t=e&&e.id&&e.id()||`no_player`;this.id_=`${t}_component_${mi()}`}this.name_=t.name||null,t.el?this.el_=t.el:t.createEl!==!1&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(` `).forEach(e=>this.addClass(e)),[`on`,`off`,`one`,`any`,`trigger`].forEach(e=>{this[e]=void 0}),t.evented!==!1&&(Ui(this,{eventBusKey:this.el_?`el_`:null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,`languagechange`,this.handleLanguagechange)),Gi(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,t.initChildren!==!1&&this.initChildren(),this.ready(n),t.reportTouchActivity!==!1&&this.enableTouchActivity()}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:`dispose`,bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&=(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e&&(this.options_=W(this.options_,e)),this.options_}el(){return this.el_}createEl(e,t,n){return G(e,t,n)}localize(e,t,n=e){let r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),a=i&&i[r],o=r&&r.split(`-`)[0],s=i&&i[o],c=n;return a&&a[e]?c=a[e]:s&&s[e]&&(c=s[e]),t&&(c=c.replace(/\{(\d+)\}/g,function(e,n){let r=t[n-1],i=r;return r===void 0&&(i=e),i})),c}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let n=0;n<e.length;n++)if(t=t.getChild(e[n]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;let n=`http://www.w3.org/2000/svg`,r=G(`span`,{className:`vjs-icon-placeholder vjs-svg-icon`},{"aria-hidden":`true`}),i=x.default.createElementNS(n,`svg`);i.setAttributeNS(null,`viewBox`,`0 0 512 512`);let a=x.default.createElementNS(n,`use`);return i.appendChild(a),a.setAttributeNS(null,`href`,`#vjs-icon-${e}`),r.appendChild(i),this.iconIsSet_?t.replaceChild(r,t.querySelector(`.vjs-icon-placeholder`)):t.appendChild(r),this.iconIsSet_=!0,r}addChild(t,n={},r=this.children_.length){let i,a;if(typeof t==`string`){a=qi(t);let r=n.componentClass||a;n.name=a;let o=e.getComponent(r);if(!o)throw Error(`Component ${r} does not exist`);if(typeof o!=`function`)return null;i=new o(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,typeof i.id==`function`&&(this.childIndex_[i.id()]=i),a||=i.name&&qi(i.name()),a&&(this.childNameIndex_[a]=i,this.childNameIndex_[Ki(a)]=i),typeof i.el==`function`&&i.el()){let e=null;this.children_[r+1]&&(this.children_[r+1].el_?e=this.children_[r+1].el_:Ar(this.children_[r+1])&&(e=this.children_[r+1])),this.contentEl().insertBefore(i.el(),e)}return i}removeChild(e){if(typeof e==`string`&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[qi(e.name())]=null,this.childNameIndex_[Ki(e.name())]=null;let n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){let t=this.options_.children;if(t){let n=this.options_,r=e=>{let t=e.name,r=e.opts;if(n[t]!==void 0&&(r=n[t]),r===!1)return;r===!0&&(r={}),r.playerOptions=this.options_.playerOptions;let i=this.addChild(t,r);i&&(this[t]=i)},i,a=e.getComponent(`Tech`);i=Array.isArray(t)?t:Object.keys(t),i.concat(Object.keys(this.options_).filter(function(e){return!i.some(function(t){return typeof t==`string`?e===t:e===t.name})})).map(e=>{let n,r;return typeof e==`string`?(n=e,r=t[n]||this.options_[n]||{}):(n=e.name,r=e),{name:n,opts:r}}).filter(t=>{let n=e.getComponent(t.opts.componentClass||qi(t.name));return n&&!a.isTech(n)}).forEach(r)}}buildCSSClass(){return``}ready(e,t=!1){if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}t?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){let e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger(`ready`)},1)}$(e,t){return ei(e,t||this.contentEl())}$$(e,t){return ti(e,t||this.contentEl())}hasClass(e){return Fr(this.el_,e)}addClass(...e){Ir(this.el_,...e)}removeClass(...e){Lr(this.el_,...e)}toggleClass(e,t){Rr(this.el_,e,t)}show(){this.removeClass(`vjs-hidden`)}hide(){this.addClass(`vjs-hidden`)}lockShowing(){this.addClass(`vjs-lock-showing`)}unlockShowing(){this.removeClass(`vjs-lock-showing`)}getAttribute(e){return Vr(this.el_,e)}setAttribute(e,t){Hr(this.el_,e,t)}removeAttribute(e){Ur(this.el_,e)}width(e,t){return this.dimension(`width`,e,t)}height(e,t){return this.dimension(`height`,e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,n){if(t!==void 0){(t===null||t!==t)&&(t=0),(``+t).indexOf(`%`)!==-1||(``+t).indexOf(`px`)!==-1?this.el_.style[e]=t:t===`auto`?this.el_.style[e]=``:this.el_.style[e]=t+`px`,n||this.trigger(`componentresize`);return}if(!this.el_)return 0;let r=this.el_.style[e],i=r.indexOf(`px`);return parseInt(i===-1?this.el_[`offset`+qi(e)]:r.slice(0,i),10)}currentDimension(e){let t=0;if(e!==`width`&&e!==`height`)throw Error(`currentDimension only accepts width or height value`);if(t=ni(this.el_,e),t=parseFloat(t),t===0||isNaN(t)){let n=`offset${qi(e)}`;t=this.el_[n]}return t}currentDimensions(){return{width:this.currentDimension(`width`),height:this.currentDimension(`height`)}}currentWidth(){return this.currentDimension(`width`)}currentHeight(){return this.currentDimension(`height`)}getPositions(){let e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(e.key!==`Tab`&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)&&e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,t=null,n;this.on(`touchstart`,function(r){r.touches.length===1&&(t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=b.default.performance.now(),n=!0)}),this.on(`touchmove`,function(e){if(e.touches.length>1)n=!1;else if(t){let r=e.touches[0].pageX-t.pageX,i=e.touches[0].pageY-t.pageY;Math.sqrt(r*r+i*i)>10&&(n=!1)}});let r=function(){n=!1};this.on(`touchleave`,r),this.on(`touchcancel`,r),this.on(`touchend`,function(r){t=null,n===!0&&b.default.performance.now()-e<200&&(r.preventDefault(),this.trigger(`tap`))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;let e=q(this.player(),this.player().reportUserActivity),t;this.on(`touchstart`,function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});let n=function(n){e(),this.clearInterval(t)};this.on(`touchmove`,e),this.on(`touchend`,n),this.on(`touchcancel`,n)}setTimeout(e,t){var n;return e=q(this,e),this.clearTimersOnDispose_(),n=b.default.setTimeout(()=>{this.setTimeoutIds_.has(n)&&this.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),b.default.clearTimeout(e)),e}setInterval(e,t){e=q(this,e),this.clearTimersOnDispose_();let n=b.default.setInterval(e,t);return this.setIntervalIds_.add(n),n}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),b.default.clearInterval(e)),e}requestAnimationFrame(e){this.clearTimersOnDispose_();var t;return e=q(this,e),t=b.default.requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=q(this,t);let n=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),b.default.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one(`dispose`,()=>{[[`namedRafs_`,`cancelNamedAnimationFrame`],[`rafIds_`,`cancelAnimationFrame`],[`setTimeoutIds_`,`clearTimeout`],[`setIntervalIds_`,`clearInterval`]].forEach(([e,t])=>{this[e].forEach((e,n)=>this[t](n))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return!!this.el_.disabled}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function t(e){let t=b.default.getComputedStyle(e,null),n=t.getPropertyValue(`visibility`);return t.getPropertyValue(`display`)!==`none`&&![`hidden`,`collapse`].includes(n)}function n(e){return!(!t(e.parentElement)||!t(e)||e.style.opacity===`0`||b.default.getComputedStyle(e).height===`0px`||b.default.getComputedStyle(e).width===`0px`)}function r(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;let t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(t.x<0||t.x>(x.default.documentElement.clientWidth||b.default.innerWidth)||t.y<0||t.y>(x.default.documentElement.clientHeight||b.default.innerHeight))return!1;let n=x.default.elementFromPoint(t.x,t.y);for(;n;){if(n===e)return!0;if(n.parentNode)n=n.parentNode;else return!1}}return e||=this.el(),!!(r(e)&&n(e)&&(!e.parentElement||e.tabIndex>=0))}static registerComponent(t,n){if(typeof t!=`string`||!t)throw Error(`Illegal component name, "${t}"; must be a non-empty string.`);let r=e.getComponent(`Tech`),i=r&&r.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(i||!a){let e;throw e=i?`techs must be registered using Tech.registerTech()`:`must be a Component subclass`,Error(`Illegal component, "${t}"; ${e}.`)}t=qi(t),e.components_||={};let o=e.getComponent(`Player`);if(t===`Player`&&o&&o.players){let e=o.players,t=Object.keys(e);if(e&&t.length>0){for(let n=0;n<t.length;n++)if(e[t[n]]!==null)throw Error(`Can not register Player component after player has been created.`)}}return e.components_[t]=n,e.components_[Ki(t)]=n,n}static getComponent(t){if(!(!t||!e.components_))return e.components_[t]}};J.registerComponent(`Component`,J);function Xi(e,t,n){if(typeof t!=`number`||t<0||t>n)throw Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${n}).`)}function Zi(e,t,n,r){return Xi(e,r,n.length-1),n[r][t]}function Qi(e){let t;return t=e===void 0||e.length===0?{length:0,start(){throw Error(`This TimeRanges object is empty`)},end(){throw Error(`This TimeRanges object is empty`)}}:{length:e.length,start:Zi.bind(null,`start`,0,e),end:Zi.bind(null,`end`,1,e)},b.default.Symbol&&b.default.Symbol.iterator&&(t[b.default.Symbol.iterator]=()=>(e||[]).values()),t}function $i(e,t){return Array.isArray(e)?Qi(e):e===void 0||t===void 0?Qi():Qi([[e,t]])}var ea=function(e,t){e=e<0?0:e;let n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n=`-`),i=i>0||o>0?i+`:`:``,r=((i||a>=10)&&r<10?`0`+r:r)+`:`,n=n<10?`0`+n:n,i+r+n},ta=ea;function na(e){ta=e}function ra(){ta=ea}function ia(e,t=e){return ta(e,t)}var aa=Object.freeze({__proto__:null,createTimeRanges:$i,createTimeRange:$i,setFormatTime:na,resetFormatTime:ra,formatTime:ia});function oa(e,t){let n=0,r,i;if(!t)return 0;(!e||!e.length)&&(e=$i(0,0));for(let a=0;a<e.length;a++)r=e.start(a),i=e.end(a),i>t&&(i=t),n+=i-r;return n/t}function sa(e){if(e instanceof sa)return e;typeof e==`number`?this.code=e:typeof e==`string`?this.message=e:Qn(e)&&(typeof e.code==`number`&&(this.code=e.code),Object.assign(this,e)),this.message||=sa.defaultMessages[this.code]||``}sa.prototype.code=0,sa.prototype.message=``,sa.prototype.status=null,sa.prototype.metadata=null,sa.errorTypes=[`MEDIA_ERR_CUSTOM`,`MEDIA_ERR_ABORTED`,`MEDIA_ERR_NETWORK`,`MEDIA_ERR_DECODE`,`MEDIA_ERR_SRC_NOT_SUPPORTED`,`MEDIA_ERR_ENCRYPTED`],sa.defaultMessages={1:`You aborted the media playback`,2:`A network error caused the media download to fail part-way.`,3:`The media playback was aborted due to a corruption problem or because the media used features your browser did not support.`,4:`The media could not be loaded, either because the server or network failed or because the format is not supported.`,5:`The media is encrypted and we do not have the keys to decrypt it.`},sa.MEDIA_ERR_CUSTOM=0,sa.prototype.MEDIA_ERR_CUSTOM=0,sa.MEDIA_ERR_ABORTED=1,sa.prototype.MEDIA_ERR_ABORTED=1,sa.MEDIA_ERR_NETWORK=2,sa.prototype.MEDIA_ERR_NETWORK=2,sa.MEDIA_ERR_DECODE=3,sa.prototype.MEDIA_ERR_DECODE=3,sa.MEDIA_ERR_SRC_NOT_SUPPORTED=4,sa.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,sa.MEDIA_ERR_ENCRYPTED=5,sa.prototype.MEDIA_ERR_ENCRYPTED=5;function ca(e){return e!=null&&typeof e.then==`function`}function la(e){ca(e)&&e.then(null,e=>{})}var ua=function(e){return[`kind`,`label`,`language`,`id`,`inBandMetadataTrackDispatchType`,`mode`,`src`].reduce((t,n,r)=>(e[n]&&(t[n]=e[n]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},da={textTracksToJson:function(e){let t=e.$$(`track`),n=Array.prototype.map.call(t,e=>e.track);return Array.prototype.map.call(t,function(e){let t=ua(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return n.indexOf(e)===-1}).map(ua))},jsonToTextTracks:function(e,t){return e.forEach(function(e){let n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(e=>n.addCue(e))}),t.textTracks()},trackToJson:ua},fa=`vjs-modal-dialog`,pa=class extends J{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=G(`div`,{className:`${fa}-content`},{role:`document`}),this.descEl_=G(`p`,{className:`${fa}-description vjs-control-text`,id:this.el().getAttribute(`aria-describedby`)}),Nr(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl(`div`,{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":`true`,"aria-label":this.label(),role:`dialog`,"aria-live":`polite`})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${fa} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||`Modal Window`)}description(){let e=this.options_.description||this.localize(`This is a modal window.`);return this.closeable()&&(e+=` `+this.localize(`This modal can be closed by pressing the Escape key or activating the close button.`)),e}open(){if(this.opened_){this.options_.fillAlways&&this.fill();return}let e=this.player();this.trigger(`beforemodalopen`),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on(`keydown`,this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute(`aria-hidden`,`false`),this.trigger(`modalopen`),this.hasBeenOpened_=!0}opened(e){return typeof e==`boolean`&&this[e?`open`:`close`](),this.opened_}close(){if(!this.opened_)return;let e=this.player();this.trigger(`beforemodalclose`),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off(`keydown`,this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute(`aria-hidden`,`true`),this.trigger({type:`modalclose`,bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if(typeof e==`boolean`){let t=this.closeable_=!!e,n=this.getChild(`closeButton`);if(t&&!n){let e=this.contentEl_;this.contentEl_=this.el_,n=this.addChild(`closeButton`,{controlText:`Close Modal Dialog`}),this.contentEl_=e,this.on(n,`close`,this.close_)}!t&&n&&(this.off(n,`close`,this.close_),this.removeChild(n),n.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){let t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger(`beforemodalfill`),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Qr(t,e),this.trigger(`modalfill`),r?n.insertBefore(t,r):n.appendChild(t);let i=this.getChild(`closeButton`);i&&n.appendChild(i.el_),this.trigger(`aftermodalfill`)}empty(){this.trigger(`beforemodalempty`),Yr(this.contentEl()),this.trigger(`modalempty`)}content(e){return e!==void 0&&(this.content_=e),this.content_}conditionalFocus_(){let e=x.default.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&=(this.previouslyActiveEl_.focus(),null)}handleKeyDown(e){if(this.trigger({type:`modalKeydown`,originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),e.key===`Escape`&&this.closeable()){e.preventDefault(),this.close();return}if(e.key!==`Tab`)return;let t=this.focusableEls_(),n=this.el_.querySelector(`:focus`),r;for(let e=0;e<t.length;e++)if(n===t[e]){r=e;break}x.default.activeElement===this.el_&&(r=0),e.shiftKey&&r===0?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&r===t.length-1&&(t[0].focus(),e.preventDefault())}focusableEls_(){let e=this.el_.querySelectorAll(`*`);return Array.prototype.filter.call(e,e=>(e instanceof b.default.HTMLAnchorElement||e instanceof b.default.HTMLAreaElement)&&e.hasAttribute(`href`)||(e instanceof b.default.HTMLInputElement||e instanceof b.default.HTMLSelectElement||e instanceof b.default.HTMLTextAreaElement||e instanceof b.default.HTMLButtonElement)&&!e.hasAttribute(`disabled`)||e instanceof b.default.HTMLIFrameElement||e instanceof b.default.HTMLObjectElement||e instanceof b.default.HTMLEmbedElement||e.hasAttribute(`tabindex`)&&e.getAttribute(`tabindex`)!==-1||e.hasAttribute(`contenteditable`))}};pa.prototype.options_={pauseOnOpen:!0,temporary:!0},J.registerComponent(`ModalDialog`,pa);var ma=class extends Mi{constructor(e=[]){super(),this.tracks_=[];for(let t=0;t<e.length;t++)this.addTrack(e[t])}get length(){return this.tracks_.length}addTrack(e){let t=this.tracks_.length;``+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:`addtrack`,target:this})),e.labelchange_=()=>{this.trigger({track:e,type:`labelchange`,target:this})},Pi(e)&&e.addEventListener(`labelchange`,e.labelchange_)}removeTrack(e){let t;for(let n=0,r=this.length;n<r;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:`removetrack`,target:this})}getTrackById(e){let t=null;for(let n=0,r=this.length;n<r;n++){let r=this[n];if(r.id===e){t=r;break}}return t}};ma.prototype.allowedEvents_={change:`change`,addtrack:`addtrack`,removetrack:`removetrack`,labelchange:`labelchange`};for(let e in ma.prototype.allowedEvents_)ma.prototype[`on`+e]=null;var ha=function(e,t){for(let n=0;n<e.length;n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].enabled=!1)},ga=class extends ma{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){ha(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&ha(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,ha(this,e),this.changing_=!1,this.trigger(`change`))},e.addEventListener(`enabledchange`,e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener(`enabledchange`,e.enabledChange_),e.enabledChange_=null)}},_a=function(e,t){for(let n=0;n<e.length;n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].selected=!1)},va=class extends ma{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){_a(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&_a(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,_a(this,e),this.changing_=!1,this.trigger(`change`))},e.addEventListener(`selectedchange`,e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener(`selectedchange`,e.selectedChange_),e.selectedChange_=null)}},ya=class extends ma{addTrack(e){super.addTrack(e),this.queueChange_||=()=>this.queueTrigger(`change`),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger(`selectedlanguagechange`)),e.addEventListener(`modechange`,this.queueChange_),[`metadata`,`chapters`].indexOf(e.kind)===-1&&e.addEventListener(`modechange`,this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener(`modechange`,this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener(`modechange`,this.triggerSelectedlanguagechange_))}toJSON(){return this.tracks_.map(e=>e.toJSON())}},ba=class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}addTrackElement_(e){let t=this.trackElements_.length;``+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t}removeTrackElement_(e){for(let t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&typeof this.trackElements_[t].track.off==`function`&&this.trackElements_[t].track.off(),typeof this.trackElements_[t].off==`function`&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},xa=class e{constructor(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){let t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;let i=function(e){``+e in this||Object.defineProperty(this,``+e,{get(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)}getCueById(e){let t=null;for(let n=0,r=this.length;n<r;n++){let r=this[n];if(r.id===e){t=r;break}}return t}},Sa={alternative:`alternative`,captions:`captions`,main:`main`,sign:`sign`,subtitles:`subtitles`,commentary:`commentary`},Ca={alternative:`alternative`,descriptions:`descriptions`,main:`main`,"main-desc":`main-desc`,translation:`translation`,commentary:`commentary`},wa={subtitles:`subtitles`,captions:`captions`,descriptions:`descriptions`,chapters:`chapters`,metadata:`metadata`},Ta={disabled:`disabled`,hidden:`hidden`,showing:`showing`},Ea=class extends Mi{constructor(e={}){super();let t={id:e.id||`vjs_track_`+mi(),kind:e.kind||``,language:e.language||``},n=e.label||``;for(let e in t)Object.defineProperty(this,e,{get(){return t[e]},set(){}});Object.defineProperty(this,"label",{get(){return n},set(e){e!==n&&(n=e,this.trigger(`labelchange`))}})}},Da=function(e){return new URL(e,x.default.baseURI)},Oa=function(e){return new URL(e,x.default.baseURI).href},ka=function(e){if(typeof e==`string`){let t=e.split(`?`)[0].replace(/\/+$/,``).match(/\.([^.\/]+)$/);return t?t[1].toLowerCase():``}return``},Aa=function(e,t=b.default.location){return Da(e).origin!==t.origin},ja=Object.freeze({__proto__:null,parseUrl:Da,getAbsoluteURL:Oa,getFileExtension:ka,isCrossOrigin:Aa}),Ma=function(e,t){let n=new b.default.WebVTT.Parser(b.default,b.default.vttjs,b.default.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:`loadeddata`,target:t})},n.parse(e),r.length>0&&(b.default.console&&b.default.console.groupCollapsed&&b.default.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),r.forEach(e=>H.error(e)),b.default.console&&b.default.console.groupEnd&&b.default.console.groupEnd()),n.flush()},Na=function(e,t){let n={uri:e},r=Aa(e);r&&(n.cors=r);let i=t.tech_.crossOrigin()===`use-credentials`;i&&(n.withCredentials=i),(0,S.default)(n,q(this,function(e,n,r){if(e)return H.error(e,n);t.loaded_=!0,typeof b.default.WebVTT==`function`?Ma(r,t):t.tech_&&t.tech_.any([`vttjsloaded`,`vttjserror`],e=>{if(e.type===`vttjserror`){H.error(`vttjs failed to load, stopping trying to process ${t.src}`);return}return Ma(r,t)})}))},Pa=class extends Ea{constructor(e={}){if(!e.tech)throw Error(`A tech was not provided.`);let t=W(e,{kind:wa[e.kind]||`subtitles`,language:e.language||e.srclang||``}),n=Ta[t.mode]||`disabled`,r=t.default;(t.kind===`metadata`||t.kind===`chapters`)&&(n=`hidden`),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;let i=new xa(this.cues_),a=new xa(this.activeCues_),o=!1;this.timeupdateHandler=q(this,function(e={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){e.type!==`timeupdate`&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,o&&=(this.trigger(`cuechange`),!1),e.type!==`timeupdate`&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}),this.tech_.one(`dispose`,()=>{this.stopTracking()}),n!==`disabled`&&this.startTracking(),Object.defineProperties(this,{default:{get(){return r},set(){}},mode:{get(){return n},set(e){Ta[e]&&n!==e&&(n=e,!this.preload_&&n!==`disabled`&&this.cues.length===0&&Na(this.src,this),this.stopTracking(),n!==`disabled`&&this.startTracking(),this.trigger(`modechange`))}},cues:{get(){return this.loaded_?i:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return a;let e=this.tech_.currentTime(),t=[];for(let n=0,r=this.cues.length;n<r;n++){let r=this.cues[n];r.startTime<=e&&r.endTime>=e&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(let e=0;e<t.length;e++)this.activeCues_.indexOf(t[e])===-1&&(o=!0);return this.activeCues_=t,a.setCues_(this.activeCues_),a},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||t.kind!==`subtitles`&&t.kind!==`captions`)&&Na(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on(`timeupdate`,this.timeupdateHandler)}stopTracking(){this.rvf_&&=(this.tech_.cancelVideoFrameCallback(this.rvf_),void 0),this.tech_.off(`timeupdate`,this.timeupdateHandler)}addCue(e){let t=e;if(!(`getCueAsHTML`in t)){t=new b.default.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(let n in e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}let n=this.tech_.textTracks();for(let e=0;e<n.length;e++)n[e]!==this&&n[e].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}toJSON(){return da.trackToJson(this)}removeCue(e){let t=this.cues_.length;for(;t--;){let n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}};Pa.prototype.allowedEvents_={cuechange:`cuechange`};var Fa=class extends Ea{constructor(e={}){let t=W(e,{kind:Ca[e.kind]||``});super(t);let n=!1;Object.defineProperty(this,"enabled",{get(){return n},set(e){typeof e==`boolean`&&e!==n&&(n=e,this.trigger(`enabledchange`))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}},Ia=class extends Ea{constructor(e={}){let t=W(e,{kind:Sa[e.kind]||``});super(t);let n=!1;Object.defineProperty(this,"selected",{get(){return n},set(e){typeof e==`boolean`&&e!==n&&(n=e,this.trigger(`selectedchange`))}}),t.selected&&(this.selected=t.selected)}},La=class e extends Mi{constructor(t={}){super();let n,r=new Pa(t);this.kind=r.kind,this.src=r.src,this.srclang=r.language,this.label=r.label,this.default=r.default,Object.defineProperties(this,{readyState:{get(){return n}},track:{get(){return r}}}),n=e.NONE,r.addEventListener(`loadeddata`,()=>{n=e.LOADED,this.trigger({type:`load`,target:this})})}};La.prototype.allowedEvents_={load:`load`},La.NONE=0,La.LOADING=1,La.LOADED=2,La.ERROR=3;var Ra={audio:{ListClass:ga,TrackClass:Fa,capitalName:`Audio`},video:{ListClass:va,TrackClass:Ia,capitalName:`Video`},text:{ListClass:ya,TrackClass:Pa,capitalName:`Text`}};Object.keys(Ra).forEach(function(e){Ra[e].getterName=`${e}Tracks`,Ra[e].privateName=`${e}Tracks_`});var za={remoteText:{ListClass:ya,TrackClass:Pa,capitalName:`RemoteText`,getterName:`remoteTextTracks`,privateName:`remoteTextTracks_`},remoteTextEl:{ListClass:ba,TrackClass:La,capitalName:`RemoteTextTrackEls`,getterName:`remoteTextTrackEls`,privateName:`remoteTextTrackEls_`}},Ba=Object.assign({},Ra,za);za.names=Object.keys(za),Ra.names=Object.keys(Ra),Ba.names=[].concat(za.names,Ra.names);function Va(e,t,n,r,i={}){let a=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;let o=new Ba.text.TrackClass(i);return a.addTrack(o),o}var Y=class e extends J{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on(`playing`,function(){this.hasStarted_=!0}),this.on(`loadstart`,function(){this.hasStarted_=!1}),Ba.names.forEach(t=>{let n=Ba[t];e&&e[n.getterName]&&(this[n.privateName]=e[n.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),[`Text`,`Audio`,`Video`].forEach(t=>{e[`native${t}Tracks`]===!1&&(this[`featuresNative${t}Tracks`]=!1)}),e.nativeCaptions===!1||e.nativeTextTracks===!1?this.featuresNativeTextTracks=!1:(e.nativeCaptions===!0||e.nativeTextTracks===!0)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=e.preloadTextTracks!==!1,this.autoRemoteTextTracks_=new Ba.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||`Unknown Tech`)}triggerSourceset(e){this.isReady_||this.one(`ready`,()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:`sourceset`})}manualProgressOn(){this.on(`durationchange`,this.onDurationChange_),this.manualProgress=!0,this.one(`ready`,this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off(`durationchange`,this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(q(this,function(){let e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger(`progress`),this.bufferedPercent_=e,e===1&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return $i(0,0)}bufferedPercent(){return oa(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on(`play`,this.trackCurrentTime_),this.on(`pause`,this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off(`play`,this.trackCurrentTime_),this.off(`pause`,this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(Ra.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){e=[].concat(e),e.forEach(e=>{let t=this[`${e}Tracks`]()||[],n=t.length;for(;n--;){let r=t[n];e===`text`&&this.removeRemoteTextTrack(r),t.removeTrack(r)}})}cleanupAutoTextTracks(){let e=this.autoRemoteTextTracks_||[],t=e.length;for(;t--;){let n=e[t];this.removeRemoteTextTrack(n)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return e!==void 0&&(this.error_=new sa(e),this.trigger(`error`)),this.error_}played(){return this.hasStarted_?$i(0,0):$i()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})}initTrackListeners(){Ra.names.forEach(e=>{let t=Ra[e],n=()=>{this.trigger(`${e}trackchange`)},r=this[t.getterName]();r.addEventListener(`removetrack`,n),r.addEventListener(`addtrack`,n),this.on(`dispose`,()=>{r.removeEventListener(`removetrack`,n),r.removeEventListener(`addtrack`,n)})})}addWebVttScript_(){if(!b.default.WebVTT){if(x.default.body.contains(this.el())){if(!this.options_[`vtt.js`]&&$n(C.default)&&Object.keys(C.default).length>0){this.trigger(`vttjsloaded`);return}let e=x.default.createElement(`script`);e.src=this.options_[`vtt.js`]||`https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js`,e.onload=()=>{this.trigger(`vttjsloaded`)},e.onerror=()=>{this.trigger(`vttjserror`)},this.on(`dispose`,()=>{e.onload=null,e.onerror=null}),b.default.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}}emulateTextTracks(){let e=this.textTracks(),t=this.remoteTextTracks(),n=t=>e.addTrack(t.track),r=t=>e.removeTrack(t.track);t.on(`addtrack`,n),t.on(`removetrack`,r),this.addWebVttScript_();let i=()=>this.trigger(`texttrackchange`),a=()=>{i();for(let t=0;t<e.length;t++){let n=e[t];n.removeEventListener(`cuechange`,i),n.mode===`showing`&&n.addEventListener(`cuechange`,i)}};a(),e.addEventListener(`change`,a),e.addEventListener(`addtrack`,a),e.addEventListener(`removetrack`,a),this.on(`dispose`,function(){t.off(`addtrack`,n),t.off(`removetrack`,r),e.removeEventListener(`change`,a),e.removeEventListener(`addtrack`,a),e.removeEventListener(`removetrack`,a);for(let t=0;t<e.length;t++)e[t].removeEventListener(`cuechange`,i)})}addTextTrack(e,t,n){if(!e)throw Error(`TextTrack kind is required but was not provided`);return Va(this,e,t,n)}createRemoteTextTrack(e){let t=W(e,{tech:this});return new za.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){let n=this.createRemoteTextTrack(e);return typeof t!=`boolean`&&(t=!1),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),t===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(n.track)),n}removeRemoteTextTrack(e){let t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){let t=mi();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one(`playing`,()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return``}static canPlayType(e){return``}static canPlaySource(t,n){return e.canPlayType(t.type)}static isTech(t){return t.prototype instanceof e||t instanceof e||t===e}static registerTech(t,n){if(e.techs_||={},!e.isTech(n))throw Error(`Tech ${t} must be a Tech`);if(!e.canPlayType)throw Error(`Techs must have a static canPlayType method on them`);if(!e.canPlaySource)throw Error(`Techs must have a static canPlaySource method on them`);return t=qi(t),e.techs_[t]=n,e.techs_[Ki(t)]=n,t!==`Tech`&&e.defaultTechOrder_.push(t),n}static getTech(t){if(t){if(e.techs_&&e.techs_[t])return e.techs_[t];if(t=qi(t),b.default&&b.default.videojs&&b.default.videojs[t])return H.warn(`The ${t} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),b.default.videojs[t]}}};Ba.names.forEach(function(e){let t=Ba[e];Y.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Y.prototype.featuresVolumeControl=!0,Y.prototype.featuresMuteControl=!0,Y.prototype.featuresFullscreenResize=!1,Y.prototype.featuresPlaybackRate=!1,Y.prototype.featuresProgressEvents=!1,Y.prototype.featuresSourceset=!1,Y.prototype.featuresTimeupdateEvents=!1,Y.prototype.featuresNativeTextTracks=!1,Y.prototype.featuresVideoFrameCallback=!1,Y.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){let r=e.sourceHandlers;r||=e.sourceHandlers=[],n===void 0&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){let n=e.sourceHandlers||[],r;for(let e=0;e<n.length;e++)if(r=n[e].canPlayType(t),r)return r;return``},e.selectSourceHandler=function(t,n){let r=e.sourceHandlers||[],i;for(let e=0;e<r.length;e++)if(i=r[e].canHandleSource(t,n),i)return r[e];return null},e.canPlaySource=function(t,n){let r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):``},[`seekable`,`seeking`,`duration`].forEach(function(e){let t=this[e];typeof t==`function`&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){let n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:H.error(`No source handler found for the current source.`)),this.disposeSourceHandler(),this.off(`dispose`,this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one(`dispose`,this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&=(this.clearTracks([`audio`,`video`]),null),this.cleanupAutoTextTracks(),this.sourceHandler_&&=(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),null)}},J.registerComponent(`Tech`,Y),Y.registerTech(`Tech`,Y),Y.defaultTechOrder_=[];var Ha={},Ua={},Wa={};function Ga(e,t){Ha[e]=Ha[e]||[],Ha[e].push(t)}function Ka(e,t,n){e.setTimeout(()=>io(t,Ha[t.type],n,e),1)}function qa(e,t){e.forEach(e=>e.setTech&&e.setTech(t))}function Ja(e,t,n){return e.reduceRight(eo(n),t[n]())}function Ya(e,t,n,r){return t[n](e.reduce(eo(n),r))}function Xa(e,t,n,r=null){let i=`call`+qi(n),a=e.reduce(eo(i),r),o=a===Wa,s=o?null:t[n](a);return to(e,n,s,o),s}var Za={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Qa={setCurrentTime:1,setMuted:1,setVolume:1},$a={play:1,pause:1};function eo(e){return(t,n)=>t===Wa?Wa:n[e]?n[e](t):t}function to(e,t,n,r){for(let i=e.length-1;i>=0;i--){let a=e[i];a[t]&&a[t](r,n)}}function no(e){Ua.hasOwnProperty(e.id())&&delete Ua[e.id()]}function ro(e,t){let n=Ua[e.id()],r=null;if(n==null)return r=t(e),Ua[e.id()]=[[t,r]],r;for(let e=0;e<n.length;e++){let[i,a]=n[e];i===t&&(r=a)}return r===null&&(r=t(e),n.push([t,r])),r}function io(e={},t=[],n,r,i=[],a=!1){let[o,...s]=t;if(typeof o==`string`)io(e,Ha[o],n,r,i,a);else if(o){let t=ro(r,o);if(!t.setSource)return i.push(t),io(e,s,n,r,i,a);t.setSource(Object.assign({},e),function(o,c){if(o)return io(e,s,n,r,i,a);i.push(t),io(c,e.type===c.type?s:Ha[c.type],n,r,i,a)})}else s.length?io(e,s,n,r,i,a):a?n(e,i):io(e,Ha[`*`],n,r,i,!0)}var ao={opus:`video/ogg`,ogv:`video/ogg`,mp4:`video/mp4`,mov:`video/mp4`,m4v:`video/mp4`,mkv:`video/x-matroska`,m4a:`audio/mp4`,mp3:`audio/mpeg`,aac:`audio/aac`,caf:`audio/x-caf`,flac:`audio/flac`,oga:`audio/ogg`,wav:`audio/wav`,m3u8:`application/x-mpegURL`,mpd:`application/dash+xml`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,png:`image/png`,svg:`image/svg+xml`,webp:`image/webp`},oo=function(e=``){return ao[ka(e).toLowerCase()]||``},so=(e,t)=>{if(!t)return``;if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;let n=e.cache_.sources.filter(e=>e.src===t);if(n.length)return n[0].type;let r=e.$$(`source`);for(let e=0;e<r.length;e++){let n=r[e];if(n.type&&n.src&&n.src===t)return n.type}return oo(t)},co=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(e){e=co(e),Array.isArray(e)?t=t.concat(e):Qn(e)&&t.push(e)}),e=t}else e=typeof e==`string`&&e.trim()?[lo({src:e})]:Qn(e)&&typeof e.src==`string`&&e.src&&e.src.trim()?[lo(e)]:[];return e};function lo(e){if(!e.type){let t=oo(e.src);t&&(e.type=t)}return e}var uo=`<svg xmlns="http://www.w3.org/2000/svg">
|
|
17
|
+
@`+(e.systemId||``)+`#[line:`+e.lineNumber+`,col:`+e.columnNumber+`]`}function h(e,t,n){return typeof e==`string`?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+``:e}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(e){f.prototype[e]=function(){return null}});function g(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}e.__DOMHandler=f,e.normalizeLineEndings=l,e.DOMParser=u})),Ie=e.r((e=>{var t=Me();e.DOMImplementation=t.DOMImplementation,e.XMLSerializer=t.XMLSerializer,e.DOMParser=Fe().DOMParser}))(),Le=e=>!!e&&typeof e==`object`,R=(...e)=>e.reduce((e,t)=>(typeof t==`object`&&Object.keys(t).forEach(n=>{e[n]=Array.isArray(e[n])&&Array.isArray(t[n])?e[n].concat(t[n]):Le(e[n])&&Le(t[n])?R(e[n],t[n]):t[n]}),e),{}),Re=e=>Object.keys(e).map(t=>e[t]),z=(e,t)=>{let n=[];for(let r=e;r<t;r++)n.push(r);return n},ze=e=>e.reduce((e,t)=>e.concat(t),[]),Be=e=>{if(!e.length)return[];let t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t},Ve=(e,t)=>e.reduce((e,n,r)=>(n[t]&&e.push(r),e),[]),He=(e,t)=>Re(e.reduce((e,n)=>(n.forEach(n=>{e[t(n)]=n}),e),{})),Ue={INVALID_NUMBER_OF_PERIOD:`INVALID_NUMBER_OF_PERIOD`,INVALID_NUMBER_OF_CONTENT_STEERING:`INVALID_NUMBER_OF_CONTENT_STEERING`,DASH_EMPTY_MANIFEST:`DASH_EMPTY_MANIFEST`,DASH_INVALID_XML:`DASH_INVALID_XML`,NO_BASE_URL:`NO_BASE_URL`,MISSING_SEGMENT_INFORMATION:`MISSING_SEGMENT_INFORMATION`,SEGMENT_TIME_UNSPECIFIED:`SEGMENT_TIME_UNSPECIFIED`,UNSUPPORTED_UTC_TIMING_SCHEME:`UNSUPPORTED_UTC_TIMING_SCHEME`},B=({baseUrl:e=``,source:t=``,range:n=``,indexRange:r=``})=>{let i={uri:t,resolvedUri:E(e||``,t)};if(n||r){let e=(n||r).split(`-`),t=b.default.BigInt?b.default.BigInt(e[0]):parseInt(e[0],10),a=b.default.BigInt?b.default.BigInt(e[1]):parseInt(e[1],10);t<2**53-1&&typeof t==`bigint`&&(t=Number(t)),a<2**53-1&&typeof a==`bigint`&&(a=Number(a));let o;o=typeof a==`bigint`||typeof t==`bigint`?b.default.BigInt(a)-b.default.BigInt(t)+b.default.BigInt(1):a-t+1,typeof o==`bigint`&&o<2**53-1&&(o=Number(o)),i.byterange={length:o,offset:t}}return i},We=e=>{let t;return t=typeof e.offset==`bigint`||typeof e.length==`bigint`?b.default.BigInt(e.offset)+b.default.BigInt(e.length)-b.default.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`},Ge=e=>(e&&typeof e!=`number`&&(e=parseInt(e,10)),isNaN(e)?null:e),Ke={static(e){let{duration:t,timescale:n=1,sourceDuration:r,periodDuration:i}=e,a=Ge(e.endNumber),o=t/n;return typeof a==`number`?{start:0,end:a}:typeof i==`number`?{start:0,end:i/o}:{start:0,end:r/o}},dynamic(e){let{NOW:t,clientOffset:n,availabilityStartTime:r,timescale:i=1,duration:a,periodStart:o=0,minimumUpdatePeriod:s=0,timeShiftBufferDepth:c=1/0}=e,l=Ge(e.endNumber),u=(t+n)/1e3,d=r+o,f=u+s-d,p=Math.ceil(f*i/a),m=Math.floor((u-d-c)*i/a),h=Math.floor((u-d)*i/a);return{start:Math.max(0,m),end:typeof l==`number`?l:Math.min(p,h)}}},qe=e=>t=>{let{duration:n,timescale:r=1,periodStart:i,startNumber:a=1}=e;return{number:a+t,duration:n/r,timeline:i,time:t*n}},Je=e=>{let{type:t,duration:n,timescale:r=1,periodDuration:i,sourceDuration:a}=e,{start:o,end:s}=Ke[t](e),c=z(o,s).map(qe(e));if(t===`static`){let e=c.length-1,t=typeof i==`number`?i:a;c[e].duration=t-n/r*e}return c},Ye=e=>{let{baseUrl:t,initialization:n={},sourceDuration:r,indexRange:i=``,periodStart:a,presentationTime:o,number:s=0,duration:c}=e;if(!t)throw Error(Ue.NO_BASE_URL);let l=B({baseUrl:t,source:n.sourceURL,range:n.range}),u=B({baseUrl:t,source:t,indexRange:i});if(u.map=l,c){let t=Je(e);t.length&&(u.duration=t[0].duration,u.timeline=t[0].timeline)}else r&&(u.duration=r,u.timeline=a);return u.presentationTime=o||a,u.number=s,[u]},Xe=(e,t,n)=>{let r=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,a=e.timeline||0,o=e.sidx.byterange,s=o.offset+o.length,c=t.timescale,l=t.references.filter(e=>e.referenceType!==1),u=[],d=e.endList?`static`:`dynamic`,f=e.sidx.timeline,p=f,m=e.mediaSequence||0,h;h=typeof t.firstOffset==`bigint`?b.default.BigInt(s)+t.firstOffset:s+t.firstOffset;for(let e=0;e<l.length;e++){let o=t.references[e],s=o.referencedSize,l=o.subsegmentDuration,g;g=typeof h==`bigint`?h+b.default.BigInt(s)-b.default.BigInt(1):h+s-1;let _=`${h}-${g}`,v=Ye({baseUrl:n,timescale:c,timeline:a,periodStart:f,presentationTime:p,number:m,duration:l,sourceDuration:i,indexRange:_,type:d})[0];r&&(v.map=r),u.push(v),h+=typeof h==`bigint`?b.default.BigInt(s):s,p+=l/c,m++}return e.segments=u,e},Ze=[`AUDIO`,`SUBTITLES`],Qe=1/60,$e=e=>He(e,({timeline:e})=>e).sort((e,t)=>e.timeline>t.timeline?1:-1),et=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},tt=e=>{let t=[];return Ae(e,Ze,(e,n,r,i)=>{t=t.concat(e.playlists||[])}),t},nt=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,n)=>{t.number=e.mediaSequence+n})},rt=({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach(t=>{t.discontinuitySequence=n.findIndex(function({timeline:e}){return e===t.timeline});let r=et(e,t.attributes.NAME);if(!r||t.sidx)return;let i=t.segments[0],a=r.segments.findIndex(function(e){return Math.abs(e.presentationTime-i.presentationTime)<Qe});if(a===-1){nt({playlist:t,mediaSequence:r.mediaSequence+r.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),(!r.segments.length&&t.timeline>r.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--;return}r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),nt({playlist:t,mediaSequence:r.segments[a].number})})},it=({oldManifest:e,newManifest:t})=>{let n=e.playlists.concat(tt(e)),r=t.playlists.concat(tt(t));return t.timelineStarts=$e([e.timelineStarts,t.timelineStarts]),rt({oldPlaylists:n,newPlaylists:r,timelineStarts:t.timelineStarts}),t},at=e=>e&&e.uri+`-`+We(e.byterange),ot=e=>{let t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{}),n=[];return Object.values(t).forEach(e=>{let t=Re(e.reduce((e,t)=>{let n=t.attributes.id+(t.attributes.lang||``);return e[n]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[n].segments.push(...t.segments)),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):(e[n]=t,e[n].attributes.timelineStarts=[]),e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));n=n.concat(t)}),n.map(e=>(e.discontinuityStarts=Ve(e.segments||[],`discontinuity`),e))},st=(e,t)=>{let n=at(e.sidx),r=n&&t[n]&&t[n].sidx;return r&&Xe(e,r,e.sidx.resolvedUri),e},ct=(e,t={})=>{if(!Object.keys(t).length)return e;for(let n in e)e[n]=st(e[n],t);return e},lt=({attributes:e,segments:t,sidx:n,mediaSequence:r,discontinuitySequence:i,discontinuityStarts:a},o)=>{let s={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:``,endList:e.type===`static`,timeline:e.periodStart,resolvedUri:e.baseUrl||``,targetDuration:e.duration,discontinuitySequence:i,discontinuityStarts:a,timelineStarts:e.timelineStarts,mediaSequence:r,segments:t};return e.contentProtection&&(s.contentProtection=e.contentProtection),e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),n&&(s.sidx=n),o&&(s.attributes.AUDIO=`audio`,s.attributes.SUBTITLES=`subs`),s},ut=({attributes:e,segments:t,mediaSequence:n,discontinuityStarts:r,discontinuitySequence:i})=>{t===void 0&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||``,duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);let a={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(a.CODECS=e.codecs);let o={attributes:a,uri:``,endList:e.type===`static`,timeline:e.periodStart,resolvedUri:e.baseUrl||``,targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:r,discontinuitySequence:i,mediaSequence:n,segments:t};return e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),o},dt=(e,t={},n=!1)=>{let r,i=e.reduce((e,i)=>{let a=i.attributes.role&&i.attributes.role.value||``,o=i.attributes.lang||``,s=i.attributes.label||`main`;if(o&&!i.attributes.label){let e=a?` (${a})`:``;s=`${i.attributes.lang}${e}`}e[s]||(e[s]={language:o,autoselect:!0,default:a===`main`,playlists:[],uri:``});let c=st(lt(i,n),t);return e[s].playlists.push(c),r===void 0&&a===`main`&&(r=i,r.default=!0),e},{});if(!r){let e=Object.keys(i)[0];i[e].default=!0}return i},ft=(e,t={})=>e.reduce((e,n)=>{let r=n.attributes.label||n.attributes.lang||`text`,i=n.attributes.lang||`und`;return e[r]||(e[r]={language:i,default:!1,autoselect:!1,playlists:[],uri:``}),e[r].playlists.push(st(ut(n),t)),e},{}),pt=e=>e.reduce((e,t)=>(t&&t.forEach(t=>{let{channel:n,language:r}=t;e[r]={autoselect:!1,default:!1,instreamId:n,language:r},t.hasOwnProperty(`aspectRatio`)&&(e[r].aspectRatio=t.aspectRatio),t.hasOwnProperty(`easyReader`)&&(e[r].easyReader=t.easyReader),t.hasOwnProperty(`3D`)&&(e[r][`3D`]=t[`3D`])}),e),{}),mt=({attributes:e,segments:t,sidx:n,discontinuityStarts:r})=>{let i={attributes:{NAME:e.id,AUDIO:`audio`,SUBTITLES:`subs`,RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:``,endList:e.type===`static`,timeline:e.periodStart,resolvedUri:e.baseUrl||``,targetDuration:e.duration,discontinuityStarts:r,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(i.attributes[`FRAME-RATE`]=e.frameRate),e.qualityRanking!==void 0&&(i.attributes.SCORE=1/(e.qualityRanking+1)),e.contentProtection&&(i.contentProtection=e.contentProtection),e.serviceLocation&&(i.attributes.serviceLocation=e.serviceLocation),n&&(i.sidx=n),i},ht=({attributes:e})=>e.mimeType===`video/mp4`||e.mimeType===`video/webm`||e.contentType===`video`,gt=({attributes:e})=>e.mimeType===`audio/mp4`||e.mimeType===`audio/webm`||e.contentType===`audio`,_t=({attributes:e})=>e.mimeType===`text/vtt`||e.contentType===`text`,vt=(e,t)=>{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})})},yt=e=>e?Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(r.playlists)},[]):[],bt=({dashPlaylists:e,locations:t,contentSteering:n,sidxMapping:r={},previousManifest:i,eventStream:a})=>{if(!e.length)return{};let{sourceDuration:o,type:s,suggestedPresentationDelay:c,minimumUpdatePeriod:l}=e[0].attributes,u=ot(e.filter(ht)).map(mt),d=ot(e.filter(gt)),f=ot(e.filter(_t)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),m={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:``,duration:o,playlists:ct(u,r)};l>=0&&(m.minimumUpdatePeriod=l*1e3),t&&(m.locations=t),n&&(m.contentSteering=n),s===`dynamic`&&(m.suggestedPresentationDelay=c),a&&a.length>0&&(m.eventStream=a);let h=m.playlists.length===0,g=d.length?dt(d,r,h):null,_=f.length?ft(f,r):null,v=u.concat(yt(g),yt(_));return m.timelineStarts=$e(v.map(({timelineStarts:e})=>e)),vt(v,m.timelineStarts),g&&(m.mediaGroups.AUDIO.audio=g),_&&(m.mediaGroups.SUBTITLES.subs=_),p.length&&(m.mediaGroups[`CLOSED-CAPTIONS`].cc=pt(p)),i?it({oldManifest:i,newManifest:m}):m},xt=(e,t,n)=>{let{NOW:r,clientOffset:i,availabilityStartTime:a,timescale:o=1,periodStart:s=0,minimumUpdatePeriod:c=0}=e,l=(r+i)/1e3,u=a+s,d=l+c-u;return Math.ceil((d*o-t)/n)},St=(e,t)=>{let{type:n,minimumUpdatePeriod:r=0,media:i=``,sourceDuration:a,timescale:o=1,startNumber:s=1,periodStart:c}=e,l=[],u=-1;for(let d=0;d<t.length;d++){let f=t[d],p=f.d,m=f.r||0,h=f.t||0;u<0&&(u=h),h&&h>u&&(u=h);let g;if(m<0){let s=d+1;g=s===t.length?n===`dynamic`&&r>0&&i.indexOf(`$Number$`)>0?xt(e,u,p):(a*o-u)/p:(t[s].t-u)/p}else g=m+1;let _=s+l.length+g,v=s+l.length;for(;v<_;)l.push({number:v,duration:p/o,time:u,timeline:c}),u+=p,v++}return l},Ct=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,wt=e=>(t,n,r,i)=>{if(t===`$$`)return`$`;if(e[n]===void 0)return t;let a=``+e[n];return n===`RepresentationID`||(i=r?parseInt(i,10):1,a.length>=i)?a:`${Array(i-a.length+1).join(`0`)}${a}`},Tt=(e,t)=>e.replace(Ct,wt(t)),Et=(e,t)=>!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?Je(e):St(e,t),Dt=(e,t)=>{let n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:r={sourceURL:``,range:``}}=e,i=B({baseUrl:e.baseUrl,source:Tt(r.sourceURL,n),range:r.range});return Et(e,t).map(t=>{n.Number=t.number,n.Time=t.time;let r=Tt(e.media||``,n),a=e.timescale||1,o=e.presentationTimeOffset||0,s=e.periodStart+(t.time-o)/a;return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:E(e.baseUrl||``,r),map:i,number:t.number,presentationTime:s}})},Ot=(e,t)=>{let{baseUrl:n,initialization:r={}}=e,i=B({baseUrl:n,source:r.sourceURL,range:r.range}),a=B({baseUrl:n,source:t.media,range:t.mediaRange});return a.map=i,a},kt=(e,t)=>{let{duration:n,segmentUrls:r=[],periodStart:i}=e;if(!n&&!t||n&&t)throw Error(Ue.SEGMENT_TIME_UNSPECIFIED);let a=r.map(t=>Ot(e,t)),o;return n&&(o=Je(e)),t&&(o=St(e,t)),o.map((t,n)=>{if(a[n]){let r=a[n],o=e.timescale||1,s=e.presentationTimeOffset||0;return r.timeline=t.timeline,r.duration=t.duration,r.number=t.number,r.presentationTime=i+(t.time-s)/o,r}}).filter(e=>e)},At=({attributes:e,segmentInfo:t})=>{let n,r;t.template?(r=Dt,n=R(e,t.template)):t.base?(r=Ye,n=R(e,t.base)):t.list&&(r=kt,n=R(e,t.list));let i={attributes:e};if(!r)return i;let a=r(n,t.segmentTimeline);if(n.duration){let{duration:e,timescale:t=1}=n;n.duration=e/t}else a.length?n.duration=a.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):n.duration=0;return i.attributes=n,i.segments=a,t.base&&n.indexRange&&(i.sidx=a[0],i.segments=[]),i},jt=e=>e.map(At),V=(e,t)=>Be(e.childNodes).filter(({tagName:e})=>e===t),Mt=e=>e.textContent.trim(),Nt=e=>parseFloat(e.split(`/`).reduce((e,t)=>e/t)),Pt=e=>{let t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;let[n,r,i,a,o,s]=t.slice(1);return parseFloat(n||0)*31536e3+parseFloat(r||0)*2592e3+parseFloat(i||0)*86400+parseFloat(a||0)*3600+parseFloat(o||0)*60+parseFloat(s||0)},Ft=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+=`Z`),Date.parse(e)),It={mediaPresentationDuration(e){return Pt(e)},availabilityStartTime(e){return Ft(e)/1e3},minimumUpdatePeriod(e){return Pt(e)},suggestedPresentationDelay(e){return Pt(e)},type(e){return e},timeShiftBufferDepth(e){return Pt(e)},start(e){return Pt(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return Nt(e)},startNumber(e){return parseInt(e,10)},timescale(e){return parseInt(e,10)},presentationTimeOffset(e){return parseInt(e,10)},duration(e){let t=parseInt(e,10);return isNaN(t)?Pt(e):t},d(e){return parseInt(e,10)},t(e){return parseInt(e,10)},r(e){return parseInt(e,10)},presentationTime(e){return parseInt(e,10)},qualityRanking(e){return parseInt(e,10)},qualityranking(e){return parseInt(e,10)},DEFAULT(e){return e}},Lt={qualityranking:`qualityRanking`},Rt=e=>e&&e.attributes?Be(e.attributes).reduce((e,t)=>{let n=It[t.name]||It.DEFAULT,r=Lt[t.name]||t.name;return e[r]=n(t.value),e},{}):{},zt={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":`org.w3.clearkey`,"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":`com.widevine.alpha`,"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":`com.microsoft.playready`,"urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":`com.adobe.primetime`,"urn:mpeg:dash:mp4protection:2011":`mp4protection`},Bt=(e,t)=>t.length?ze(e.map(function(e){return t.map(function(t){let n=Mt(t),r=E(e.baseUrl,n),i=R(Rt(t),{baseUrl:r});return r!==n&&!i.serviceLocation&&e.serviceLocation&&(i.serviceLocation=e.serviceLocation),i})})):e,Vt=e=>{let t=V(e,`SegmentTemplate`)[0],n=V(e,`SegmentList`)[0],r=n&&V(n,`SegmentURL`).map(e=>R({tag:`SegmentURL`},Rt(e))),i=V(e,`SegmentBase`)[0],a=n||t,o=a&&V(a,`SegmentTimeline`)[0],s=n||i||t,c=s&&V(s,`Initialization`)[0],l=t&&Rt(t);l&&c?l.initialization=c&&Rt(c):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});let u={template:l,segmentTimeline:o&&V(o,`S`).map(e=>Rt(e)),list:n&&R(Rt(n),{segmentUrls:r,initialization:Rt(c)}),base:i&&R(Rt(i),{initialization:Rt(c)})};return Object.keys(u).forEach(e=>{u[e]||delete u[e]}),u},Ht=(e,t,n)=>r=>{let i=Bt(t,V(r,`BaseURL`)),a=R(e,Rt(r)),o=Vt(r);return i.map(e=>({segmentInfo:R(n,o),attributes:R(a,e)}))},Ut=e=>e.reduce((e,t)=>{let n=Rt(t);n.schemeIdUri&&=n.schemeIdUri.toLowerCase();let r=zt[n.schemeIdUri];if(r){e[r]={attributes:n};let i=V(t,`cenc:pssh`)[0];if(i){let t=Mt(i);e[r].pssh=t&&ee(t)}}return e},{}),Wt=e=>{if(e.schemeIdUri===`urn:scte:dash:cc:cea-608:2015`)return(typeof e.value==`string`?e.value.split(`;`):[]).map(e=>{let t,n;return n=e,/^CC\d=/.test(e)?[t,n]=e.split(`=`):/^CC\d$/.test(e)&&(t=e),{channel:t,language:n}});if(e.schemeIdUri===`urn:scte:dash:cc:cea-708:2015`)return(typeof e.value==`string`?e.value.split(`;`):[]).map(e=>{let t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){let[n,r=``]=e.split(`=`);t.channel=n,t.language=e,r.split(`,`).forEach(e=>{let[n,r]=e.split(`:`);n===`lang`?t.language=r:n===`er`?t.easyReader=Number(r):n===`war`?t.aspectRatio=Number(r):n===`3D`&&(t[`3D`]=Number(r))})}else t.language=e;return t.channel&&=`SERVICE`+t.channel,t})},Gt=e=>ze(V(e.node,`EventStream`).map(t=>{let n=Rt(t),r=n.schemeIdUri;return V(t,`Event`).map(t=>{let i=Rt(t),a=i.presentationTime||0,o=n.timescale||1,s=i.duration||0,c=a/o+e.attributes.start;return{schemeIdUri:r,value:n.value,id:i.id,start:c,end:c+s/o,messageData:Mt(t)||i.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),Kt=(e,t,n)=>r=>{let i=Rt(r),a=Bt(t,V(r,`BaseURL`)),o=V(r,`Role`)[0],s=R(e,i,{role:Rt(o)}),c=V(r,`Accessibility`)[0],l=Wt(Rt(c));l&&(s=R(s,{captionServices:l}));let u=V(r,`Label`)[0];if(u&&u.childNodes.length){let e=u.childNodes[0].nodeValue.trim();s=R(s,{label:e})}let d=Ut(V(r,`ContentProtection`));Object.keys(d).length&&(s=R(s,{contentProtection:d}));let f=Vt(r),p=V(r,`Representation`),m=R(n,f);return ze(p.map(Ht(s,a,m)))},qt=(e,t)=>(n,r)=>{let i=Bt(t,V(n.node,`BaseURL`)),a=R(e,{periodStart:n.attributes.start});typeof n.attributes.duration==`number`&&(a.periodDuration=n.attributes.duration);let o=V(n.node,`AdaptationSet`),s=Vt(n.node);return ze(o.map(Kt(a,i,s)))},Jt=(e,t)=>{if(e.length>1&&t({type:`warn`,message:`The MPD manifest should contain no more than one ContentSteering tag`}),!e.length)return null;let n=R({serverURL:Mt(e[0])},Rt(e[0]));return n.queryBeforeStart=n.queryBeforeStart===`true`,n},Yt=({attributes:e,priorPeriodAttributes:t,mpdType:n})=>typeof e.start==`number`?e.start:t&&typeof t.start==`number`&&typeof t.duration==`number`?t.start+t.duration:!t&&n===`static`?0:null,Xt=(e,t={})=>{let{manifestUri:n=``,NOW:r=Date.now(),clientOffset:i=0,eventHandler:a=function(){}}=t,o=V(e,`Period`);if(!o.length)throw Error(Ue.INVALID_NUMBER_OF_PERIOD);let s=V(e,`Location`),c=Rt(e),l=Bt([{baseUrl:n}],V(e,`BaseURL`)),u=V(e,`ContentSteering`);c.type=c.type||`static`,c.sourceDuration=c.mediaPresentationDuration||0,c.NOW=r,c.clientOffset=i,s.length&&(c.locations=s.map(Mt));let d=[];return o.forEach((e,t)=>{let n=Rt(e),r=d[t-1];n.start=Yt({attributes:n,priorPeriodAttributes:r?r.attributes:null,mpdType:c.type}),d.push({node:e,attributes:n})}),{locations:c.locations,contentSteeringInfo:Jt(u,a),representationInfo:ze(d.map(qt(c,l))),eventStream:ze(d.map(Gt))}},Zt=e=>{if(e===``)throw Error(Ue.DASH_EMPTY_MANIFEST);let t=new Ie.DOMParser,n,r;try{n=t.parseFromString(e,`application/xml`),r=n&&n.documentElement.tagName===`MPD`?n.documentElement:null}catch{}if(!r||r&&r.getElementsByTagName(`parsererror`).length>0)throw Error(Ue.DASH_INVALID_XML);return r},Qt=e=>{let t=V(e,`UTCTiming`)[0];if(!t)return null;let n=Rt(t);switch(n.schemeIdUri){case`urn:mpeg:dash:utc:http-head:2014`:case`urn:mpeg:dash:utc:http-head:2012`:n.method=`HEAD`;break;case`urn:mpeg:dash:utc:http-xsdate:2014`:case`urn:mpeg:dash:utc:http-iso:2014`:case`urn:mpeg:dash:utc:http-xsdate:2012`:case`urn:mpeg:dash:utc:http-iso:2012`:n.method=`GET`;break;case`urn:mpeg:dash:utc:direct:2014`:case`urn:mpeg:dash:utc:direct:2012`:n.method=`DIRECT`,n.value=Date.parse(n.value);break;default:throw Error(Ue.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},$t=(e,t={})=>{let n=Xt(Zt(e),t);return bt({dashPlaylists:jt(n.representationInfo),locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})},en=e=>Qt(Zt(e)),tn=e.r(((e,t)=>{var n=2**32;t.exports={getUint64:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r;return t.getBigUint64?(r=t.getBigUint64(0),r<2**53-1?Number(r):r):t.getUint32(0)*n+t.getUint32(4)},MAX_UINT32:n}})),nn=e.r(((e,t)=>{var n=tn().getUint64;t.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;r.version===0?(r.earliestPresentationTime=t.getUint32(i),r.firstOffset=t.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(e.subarray(i)),r.firstOffset=n(e.subarray(i+8)),i+=16),i+=2;var a=t.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(e[i]&128)>>>7,referencedSize:t.getUint32(i)&2147483647,subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(e[i+8]&128),sapType:(e[i+8]&112)>>>4,sapDeltaTime:t.getUint32(i+8)&268435455});return r}})),rn=e.i(nn()),an=F([73,68,51]),on=function(e,t){t===void 0&&(t=0),e=F(e);var n=e[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(n&16)>>4?r+20:r+10},sn=function e(t,n){return n===void 0&&(n=0),t=F(t),t.length-n<10||!L(t,an,{offset:n})?n:(n+=on(t,n),e(t,n))};new Uint8Array([79,112,117,115,72,101,97,100]);var cn=function(e){return typeof e==`string`?Oe(e):e},ln=function(e){return Array.isArray(e)?e.map(function(e){return cn(e)}):[cn(e)]},un,dn=function(e){e=F(e);for(var t=[],n=0;e.length>n;){var r=e[n],i=0,a=0;a++;var o=e[a];for(a++;o&128;)i=(o&127)<<7,o=e[a],a++;i+=o&127;for(var s=0;s<un.length;s++){var c=un[s],l=c.id,u=c.parser;if(r===l){t.push(u(e.subarray(a,a+i)));break}}n+=i+a}return t};un=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:``};if(t.flags&128&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.flags&64){var n=e[t.size];t.url=De(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return t.flags&32&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=dn(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:dn(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var fn=function e(t,n,r){r===void 0&&(r=!1),n=ln(n),t=F(t);var i=[];if(!n.length)return i;for(var a=0;a<t.length;){var o=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0,s=t.subarray(a+4,a+8);if(o===0)break;var c=a+o;if(c>t.length){if(r)break;c=t.length}var l=t.subarray(a+8,c);L(s,n[0])&&(n.length===1?i.push(l):i.push.apply(i,e(l,n.slice(1),r))),a=c}return i},pn={EBML:F([26,69,223,163]),DocType:F([66,130]),Segment:F([24,83,128,103]),SegmentInfo:F([21,73,169,102]),Tracks:F([22,84,174,107]),Track:F([174]),TrackNumber:F([215]),DefaultDuration:F([35,227,131]),TrackEntry:F([174]),TrackType:F([131]),FlagDefault:F([136]),CodecID:F([134]),CodecPrivate:F([99,162]),VideoTrack:F([224]),AudioTrack:F([225]),Cluster:F([31,67,182,117]),Timestamp:F([231]),TimestampScale:F([42,215,177]),BlockGroup:F([160]),BlockDuration:F([155]),Block:F([161]),SimpleBlock:F([163])},mn=[128,64,32,16,8,4,2,1],hn=function(e){for(var t=1,n=0;n<mn.length&&!(e&mn[n]);n++)t++;return t},gn=function(e,t,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1);var i=hn(e[t]),a=e.subarray(t,t+i);return n&&(a=Array.prototype.slice.call(e,t,t+i),a[0]^=mn[i-1]),{length:i,value:Te(a,{signed:r}),bytes:a}},_n=function e(t){return typeof t==`string`?t.match(/.{1,2}/g).map(function(t){return e(t)}):typeof t==`number`?Ee(t):t},vn=function(e){return Array.isArray(e)?e.map(function(e){return _n(e)}):[_n(e)]},yn=function e(t,n,r){if(r>=n.length)return n.length;var i=gn(n,r,!1);if(L(t.bytes,i.bytes))return r;var a=gn(n,r+i.length);return e(t,n,r+a.length+a.value+i.length)},bn=function e(t,n){n=vn(n),t=F(t);var r=[];if(!n.length)return r;for(var i=0;i<t.length;){var a=gn(t,i,!1),o=gn(t,i+a.length),s=i+a.length+o.length;o.value===127&&(o.value=yn(a,t,s),o.value!==t.length&&(o.value-=s));var c=s+o.value>t.length?t.length:s+o.value,l=t.subarray(s,c);L(n[0],a.bytes)&&(n.length===1?r.push(l):r=r.concat(e(l,n.slice(1))));var u=a.length+o.length+l.length;i+=u}return r},xn=F([0,0,0,1]),Sn=F([0,0,1]),Cn=F([0,0,3]),wn=function(e){for(var t=[],n=1;n<e.length-2;)L(e.subarray(n,n+3),Cn)&&(t.push(n+2),n++),n++;if(t.length===0)return e;var r=e.length-t.length,i=new Uint8Array(r),a=0;for(n=0;n<r;a++,n++)a===t[0]&&(a++,t.shift()),i[n]=e[a];return i},Tn=function(e,t,n,r){r===void 0&&(r=1/0),e=F(e),n=[].concat(n);for(var i=0,a,o=0;i<e.length&&(o<r||a);){var s=void 0;if(L(e.subarray(i),xn)?s=4:L(e.subarray(i),Sn)&&(s=3),!s){i++;continue}if(o++,a)return wn(e.subarray(a,i));var c=void 0;t===`h264`?c=e[i+s]&31:t===`h265`&&(c=e[i+s]>>1&63),n.indexOf(c)!==-1&&(a=i+s),i+=s+(t===`h264`?1:2)}return e.subarray(0,0)},En=function(e,t,n){return Tn(e,`h264`,t,n)},Dn=function(e,t,n){return Tn(e,`h265`,t,n)},On={webm:F([119,101,98,109]),matroska:F([109,97,116,114,111,115,107,97]),flac:F([102,76,97,67]),ogg:F([79,103,103,83]),ac3:F([11,119]),riff:F([82,73,70,70]),avi:F([65,86,73]),wav:F([87,65,86,69]),"3gp":F([102,116,121,112,51,103]),mp4:F([102,116,121,112]),fmp4:F([115,116,121,112]),mov:F([102,116,121,112,113,116]),moov:F([109,111,111,118]),moof:F([109,111,111,102]),vtt:F([87,69,66,86,84,84])},kn={aac:function(e){return L(e,[255,16],{offset:sn(e),mask:[255,22]})},mp3:function(e){return L(e,[255,2],{offset:sn(e),mask:[255,6]})},webm:function(e){var t=bn(e,[pn.EBML,pn.DocType])[0];return L(t,On.webm)},mkv:function(e){var t=bn(e,[pn.EBML,pn.DocType])[0];return L(t,On.matroska)},mp4:function(e){if(kn[`3gp`](e)||kn.mov(e))return!1;if(L(e,On.mp4,{offset:4})||L(e,On.fmp4,{offset:4})||L(e,On.moof,{offset:4})||L(e,On.moov,{offset:4}))return!0},mov:function(e){return L(e,On.mov,{offset:4})},"3gp":function(e){return L(e,On[`3gp`],{offset:4})},ac3:function(e){var t=sn(e);return L(e,On.ac3,{offset:t})},vtt:function(e){return L(e,On.vtt)},ts:function(e){if(e.length<189&&e.length>=1)return e[0]===71;for(var t=0;t+188<e.length&&t<188;){if(e[t]===71&&e[t+188]===71)return!0;t+=1}return!1},flac:function(e){var t=sn(e);return L(e,On.flac,{offset:t})},ogg:function(e){return L(e,On.ogg)},avi:function(e){return L(e,On.riff)&&L(e,On.avi,{offset:8})},wav:function(e){return L(e,On.riff)&&L(e,On.wav,{offset:8})},h264:function(e){return En(e,7,3).length},h265:function(e){return Dn(e,[32,33],3).length}},An=Object.keys(kn).filter(function(e){return e!==`ts`&&e!==`h264`&&e!==`h265`}).concat([`ts`,`h264`,`h265`]);An.forEach(function(e){var t=kn[e];kn[e]=function(e){return t(F(e))}});var jn=kn,Mn=function(e){e=F(e);for(var t=0;t<An.length;t++){var n=An[t];if(jn[n](e))return n}return``},Nn=function(e){return fn(e,[`moof`]).length>0},Pn=e.r(((e,t)=>{var n=9e4,r=function(e){return e*n},i=function(e,t){return e*t},a=function(e){return e/n},o=function(e,t){return e/t};t.exports={ONE_SECOND_IN_TS:n,secondsToVideoTs:r,secondsToAudioTs:i,videoTsToSeconds:a,audioTsToSeconds:o,audioTsToVideoTs:function(e,t){return r(o(e,t))},videoTsToAudioTs:function(e,t){return i(a(e),t)},metadataTsToSeconds:function(e,t,n){return a(n?e:e-t)}}}))(),Fn=`8.24.1`,In={},Ln=function(e,t){return In[e]=In[e]||[],t&&(In[e]=In[e].concat(t)),In[e]},Rn=function(e,t){Ln(e,t)},zn=function(e,t){let n=Ln(e).indexOf(t);return n<=-1?!1:(In[e]=In[e].slice(),In[e].splice(n,1),!0)},Bn=function(e,t){Ln(e,[].concat(t).map(t=>{let n=(...r)=>(zn(e,n),t(...r));return n}))},Vn={prefixed:!0},Hn=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenEnabled`,`fullscreenchange`,`fullscreenerror`,`fullscreen`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitFullscreenEnabled`,`webkitfullscreenchange`,`webkitfullscreenerror`,`-webkit-full-screen`]],Un=Hn[0],Wn;for(let e=0;e<Hn.length;e++)if(Hn[e][1]in x.default){Wn=Hn[e];break}if(Wn){for(let e=0;e<Wn.length;e++)Vn[Un[e]]=Wn[e];Vn.prefixed=Wn[0]!==Un[0]}var Gn=[],Kn=(e,t,n)=>(r,i,a)=>{let o=t.levels[i],s=RegExp(`^(${o})$`),c=e;if(r!==`log`&&a.unshift(r.toUpperCase()+`:`),n&&(c=`%c${e}`,a.unshift(n)),a.unshift(c+`:`),Gn){Gn.push([].concat(a));let e=Gn.length-1e3;Gn.splice(0,e>0?e:0)}if(!b.default.console)return;let l=b.default.console[r];!l&&r===`debug`&&(l=b.default.console.info||b.default.console.log),!(!l||!o||!s.test(r))&&l[Array.isArray(a)?`apply`:`call`](b.default.console,a)};function qn(e,t=`:`,n=``){let r=`info`,i;function a(...e){i(`log`,r,e)}return i=Kn(e,a,n),a.createLogger=(r,i,a)=>{let o=i===void 0?t:i,s=a===void 0?n:a;return qn(`${e} ${o} ${r}`,o,s)},a.createNewLogger=(e,t,n)=>qn(e,t,n),a.levels={all:`debug|log|warn|error`,off:``,debug:`debug|log|warn|error`,info:`log|warn|error`,warn:`warn|error`,error:`error`,DEFAULT:r},a.level=e=>{if(typeof e==`string`){if(!a.levels.hasOwnProperty(e))throw Error(`"${e}" in not a valid log level`);r=e}return r},a.history=()=>Gn?[].concat(Gn):[],a.history.filter=e=>(Gn||[]).filter(t=>RegExp(`.*${e}.*`).test(t[0])),a.history.clear=()=>{Gn&&(Gn.length=0)},a.history.disable=()=>{Gn!==null&&(Gn.length=0,Gn=null)},a.history.enable=()=>{Gn===null&&(Gn=[])},a.error=(...e)=>i(`error`,r,e),a.warn=(...e)=>i(`warn`,r,e),a.debug=(...e)=>i(`debug`,r,e),a}var H=qn(`VIDEOJS`),Jn=H.createLogger,Yn=Object.prototype.toString,Xn=function(e){return Qn(e)?Object.keys(e):[]};function U(e,t){Xn(e).forEach(n=>t(e[n],n))}function Zn(e,t,n=0){return Xn(e).reduce((n,r)=>t(n,e[r],r),n)}function Qn(e){return!!e&&typeof e==`object`}function $n(e){return Qn(e)&&Yn.call(e)===`[object Object]`&&e.constructor===Object}function W(...e){let t={};return e.forEach(e=>{e&&U(e,(e,n)=>{if(!$n(e)){t[n]=e;return}$n(t[n])||(t[n]={}),t[n]=W(t[n],e)})}),t}function er(e={}){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(r)}return t}function tr(e,t,n,r=!0){let i=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0}),a={configurable:!0,enumerable:!0,get(){let e=n();return i(e),e}};return r&&(a.set=i),Object.defineProperty(e,t,a)}var nr=Object.freeze({__proto__:null,each:U,reduce:Zn,isObject:Qn,isPlain:$n,merge:W,values:er,defineLazyProperty:tr}),rr=!1,ir=null,ar=!1,or,sr=!1,cr=!1,lr=!1,ur=!1,dr=null,fr=null,pr=!!(b.default.cast&&b.default.cast.framework&&b.default.cast.framework.CastReceiverContext),mr=null,hr=!1,gr=!1,_r=!1,vr=!1,yr=!1,br=!1,xr=!1,Sr=!!(kr()&&(`ontouchstart`in b.default||b.default.navigator.maxTouchPoints||b.default.DocumentTouch&&b.default.document instanceof b.default.DocumentTouch)),Cr=b.default.navigator&&b.default.navigator.userAgentData;if(Cr&&Cr.platform&&Cr.brands&&(ar=Cr.platform===`Android`,cr=!!Cr.brands.find(e=>e.brand===`Microsoft Edge`),lr=!!Cr.brands.find(e=>e.brand===`Chromium`),ur=!cr&&lr,dr=fr=(Cr.brands.find(e=>e.brand===`Chromium`)||{}).version||null,gr=Cr.platform===`Windows`),!lr){let e=b.default.navigator&&b.default.navigator.userAgent||``;rr=/iPod/i.test(e),ir=function(){let t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),ar=/Android/i.test(e),or=function(){let t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;let n=t[1]&&parseFloat(t[1]),r=t[2]&&parseFloat(t[2]);return n&&r?parseFloat(t[1]+`.`+t[2]):n||null}(),sr=/Firefox/i.test(e),cr=/Edg/i.test(e),lr=/Chrome/i.test(e)||/CriOS/i.test(e),ur=!cr&&lr,dr=fr=function(){let t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),mr=function(){let t=/MSIE\s(\d+)\.\d/.exec(e),n=t&&parseFloat(t[1]);return!n&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(n=11),n}(),yr=/Tizen/i.test(e),br=/Web0S/i.test(e),xr=yr||br,hr=/Safari/i.test(e)&&!ur&&!ar&&!cr&&!xr,gr=/Windows/i.test(e),_r=/iPad/i.test(e)||hr&&Sr&&!/iPhone/i.test(e),vr=/iPhone/i.test(e)&&!_r}var wr=vr||_r||rr,Tr=(hr||wr)&&!ur,Er=Object.freeze({__proto__:null,get IS_IPOD(){return rr},get IOS_VERSION(){return ir},get IS_ANDROID(){return ar},get ANDROID_VERSION(){return or},get IS_FIREFOX(){return sr},get IS_EDGE(){return cr},get IS_CHROMIUM(){return lr},get IS_CHROME(){return ur},get CHROMIUM_VERSION(){return dr},get CHROME_VERSION(){return fr},IS_CHROMECAST_RECEIVER:pr,get IE_VERSION(){return mr},get IS_SAFARI(){return hr},get IS_WINDOWS(){return gr},get IS_IPAD(){return _r},get IS_IPHONE(){return vr},get IS_TIZEN(){return yr},get IS_WEBOS(){return br},get IS_SMART_TV(){return xr},TOUCH_ENABLED:Sr,IS_IOS:wr,IS_ANY_SAFARI:Tr});function Dr(e){return typeof e==`string`&&!!e.trim()}function Or(e){if(e.indexOf(` `)>=0)throw Error(`class has illegal whitespace characters`)}function kr(){return x.default===b.default.document}function Ar(e){return Qn(e)&&e.nodeType===1}function jr(){try{return b.default.parent!==b.default.self}catch{return!0}}function Mr(e){return function(t,n){if(!Dr(t))return x.default[e](null);Dr(n)&&(n=x.default.querySelector(n));let r=Ar(n)?n:x.default;return r[e]&&r[e](t)}}function G(e=`div`,t={},n={},r){let i=x.default.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){let n=t[e];e===`textContent`?Nr(i,n):(i[e]!==n||e===`tabIndex`)&&(i[e]=n)}),Object.getOwnPropertyNames(n).forEach(function(e){i.setAttribute(e,n[e])}),r&&Zr(i,r),i}function Nr(e,t){return e.textContent===void 0?e.innerText=t:e.textContent=t,e}function Pr(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Fr(e,t){return Or(t),e.classList.contains(t)}function Ir(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function Lr(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(H.warn(`removeClass was called with an element that doesn't exist`),null)}function Rr(e,t,n){return typeof n==`function`&&(n=n(e,t)),typeof n!=`boolean`&&(n=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,n)),e}function zr(e,t){Object.getOwnPropertyNames(t).forEach(function(n){let r=t[n];r==null||r===!1?e.removeAttribute(n):e.setAttribute(n,r===!0?``:r)})}function Br(e){let t={},n=[`autoplay`,`controls`,`playsinline`,`loop`,`muted`,`default`,`defaultMuted`];if(e&&e.attributes&&e.attributes.length>0){let r=e.attributes;for(let e=r.length-1;e>=0;e--){let i=r[e].name,a=r[e].value;n.includes(i)&&(a=a!==null),t[i]=a}}return t}function Vr(e,t){return e.getAttribute(t)}function Hr(e,t,n){e.setAttribute(t,n)}function Ur(e,t){e.removeAttribute(t)}function Wr(){x.default.body.focus(),x.default.onselectstart=function(){return!1}}function Gr(){x.default.onselectstart=function(){return!0}}function K(e){if(e&&e.getBoundingClientRect&&e.parentNode){let t=e.getBoundingClientRect(),n={};return[`bottom`,`height`,`left`,`right`,`top`,`width`].forEach(e=>{t[e]!==void 0&&(n[e]=t[e])}),n.height||=parseFloat(ni(e,`height`)),n.width||=parseFloat(ni(e,`width`)),n}}function Kr(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};let t=e.offsetWidth,n=e.offsetHeight,r=0,i=0;for(;e.offsetParent&&e!==x.default[Vn.fullscreenElement];)r+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{left:r,top:i,width:t,height:n}}function qr(e,t){let n={x:0,y:0};if(wr){let t=e;for(;t&&t.nodeName.toLowerCase()!==`html`;){let e=ni(t,`transform`);if(/^matrix/.test(e)){let t=e.slice(7,-1).split(/,\s/).map(Number);n.x+=t[4],n.y+=t[5]}else if(/^matrix3d/.test(e)){let t=e.slice(9,-1).split(/,\s/).map(Number);n.x+=t[12],n.y+=t[13]}if(t.assignedSlot&&t.assignedSlot.parentElement&&b.default.WebKitCSSMatrix){let e=b.default.getComputedStyle(t.assignedSlot.parentElement).transform,r=new b.default.WebKitCSSMatrix(e);n.x+=r.m41,n.y+=r.m42}t=t.parentNode||t.host}}let r={},i=Kr(t.target),a=Kr(e),o=a.width,s=a.height,c=t.offsetY-(a.top-i.top),l=t.offsetX-(a.left-i.left);return t.changedTouches&&(l=t.changedTouches[0].pageX-a.left,c=t.changedTouches[0].pageY+a.top,wr&&(l-=n.x,c-=n.y)),r.y=1-Math.max(0,Math.min(1,c/s)),r.x=Math.max(0,Math.min(1,l/o)),r}function Jr(e){return Qn(e)&&e.nodeType===3}function Yr(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Xr(e){return typeof e==`function`&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>{if(typeof e==`function`&&(e=e()),Ar(e)||Jr(e))return e;if(typeof e==`string`&&/\S/.test(e))return x.default.createTextNode(e)}).filter(e=>e)}function Zr(e,t){return Xr(t).forEach(t=>e.appendChild(t)),e}function Qr(e,t){return Zr(Yr(e),t)}function $r(e){return e.button===void 0&&e.buttons===void 0||e.button===0&&e.buttons===void 0||e.type===`mouseup`&&e.button===0&&e.buttons===0||e.type===`mousedown`&&e.button===0&&e.buttons===0||e.button===0&&e.buttons===1}var ei=Mr(`querySelector`),ti=Mr(`querySelectorAll`);function ni(e,t){if(!e||!t)return``;if(typeof b.default.getComputedStyle==`function`){let n;try{n=b.default.getComputedStyle(e)}catch{return``}return n?n.getPropertyValue(t)||n[t]:``}return``}function ri(e){[...x.default.styleSheets].forEach(t=>{try{let n=[...t.cssRules].map(e=>e.cssText).join(``),r=x.default.createElement(`style`);r.textContent=n,e.document.head.appendChild(r)}catch{let n=x.default.createElement(`link`);n.rel=`stylesheet`,n.type=t.type,n.media=t.media.mediaText,n.href=t.href,e.document.head.appendChild(n)}})}var ii=Object.freeze({__proto__:null,isReal:kr,isEl:Ar,isInFrame:jr,createEl:G,textContent:Nr,prependTo:Pr,hasClass:Fr,addClass:Ir,removeClass:Lr,toggleClass:Rr,setAttributes:zr,getAttributes:Br,getAttribute:Vr,setAttribute:Hr,removeAttribute:Ur,blockTextSelection:Wr,unblockTextSelection:Gr,getBoundingClientRect:K,findPosition:Kr,getPointerPosition:qr,isTextNode:Jr,emptyEl:Yr,normalizeContent:Xr,appendContent:Zr,insertContent:Qr,isSingleLeftClick:$r,$:ei,$$:ti,computedStyle:ni,copyStyleSheetsToWindow:ri}),ai=!1,oi,si=function(){if(oi.options.autoSetup===!1)return;let e=Array.prototype.slice.call(x.default.getElementsByTagName(`video`)),t=Array.prototype.slice.call(x.default.getElementsByTagName(`audio`)),n=Array.prototype.slice.call(x.default.getElementsByTagName(`video-js`)),r=e.concat(t,n);if(r&&r.length>0)for(let e=0,t=r.length;e<t;e++){let t=r[e];if(t&&t.getAttribute)t.player===void 0&&t.getAttribute(`data-setup`)!==null&&oi(t);else{ci(1);break}}else ai||ci(1)};function ci(e,t){kr()&&(t&&(oi=t),b.default.setTimeout(si,e))}function li(){ai=!0,b.default.removeEventListener(`load`,li)}kr()&&(x.default.readyState===`complete`?li():b.default.addEventListener(`load`,li));var ui=function(e){let t=x.default.createElement(`style`);return t.className=e,t},di=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},fi=new WeakMap,pi=3;function mi(){return pi++}function hi(e,t){if(!fi.has(e))return;let n=fi.get(e);n.handlers[t].length===0&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent(`on`+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),Object.getOwnPropertyNames(n).length===0&&fi.delete(e)}function gi(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function _i(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){let r=e||b.default.event;e={};let i=[`layerX`,`layerY`,`keyLocation`,`path`,`webkitMovementX`,`webkitMovementY`,`mozPressure`,`mozInputSource`];for(let t in r)i.includes(t)||t===`returnValue`&&r.preventDefault||(e[t]=r[t]);if(e.target||(e.target=e.srcElement||x.default),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,e.clientX!==null&&e.clientX!==void 0){let t=x.default.documentElement,n=x.default.body;e.pageX=e.clientX+(t&&t.scrollLeft||n&&n.scrollLeft||0)-(t&&t.clientLeft||n&&n.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||n&&n.scrollTop||0)-(t&&t.clientTop||n&&n.clientTop||0)}e.which=e.charCode||e.keyCode,e.button!==null&&e.button!==void 0&&(e.button=e.button&1?0:e.button&4?1:e.button&2?2:0)}return e.fixed_=!0,e}var vi,yi=function(){if(typeof vi!=`boolean`){vi=!1;try{let e=Object.defineProperty({},"passive",{get(){vi=!0}});b.default.addEventListener(`test`,null,e),b.default.removeEventListener(`test`,null,e)}catch{}}return vi},bi=[`touchstart`,`touchmove`];function xi(e,t,n){if(Array.isArray(t))return gi(xi,e,t,n);fi.has(e)||fi.set(e,{});let r=fi.get(e);if(r.handlers||={},r.handlers[t]||(r.handlers[t]=[]),n.guid||=mi(),r.handlers[t].push(n),r.dispatcher||=(r.disabled=!1,function(t,n){if(r.disabled)return;t=_i(t);let i=r.handlers[t.type];if(i){let r=i.slice(0);for(let i=0,a=r.length;i<a&&!t.isImmediatePropagationStopped();i++)try{r[i].call(e,t,n)}catch(e){H.error(e)}}}),r.handlers[t].length===1){if(e.addEventListener){let n=!1;yi()&&bi.indexOf(t)>-1&&(n={passive:!0}),e.addEventListener(t,r.dispatcher,n)}else e.attachEvent&&e.attachEvent(`on`+t,r.dispatcher)}}function Si(e,t,n){if(!fi.has(e))return;let r=fi.get(e);if(!r.handlers)return;if(Array.isArray(t))return gi(Si,e,t,n);let i=function(e,t){r.handlers[t]=[],hi(e,t)};if(t===void 0){for(let t in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},t)&&i(e,t);return}let a=r.handlers[t];if(a){if(!n){i(e,t);return}if(n.guid)for(let e=0;e<a.length;e++)a[e].guid===n.guid&&a.splice(e--,1);hi(e,t)}}function Ci(e,t,n){let r=fi.has(e)?fi.get(e):{},i=e.parentNode||e.ownerDocument;if(typeof t==`string`?t={type:t,target:e}:t.target||(t.target=e),t=_i(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&t.bubbles===!0)Ci.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){fi.has(t.target)||fi.set(t.target,{});let e=fi.get(t.target);t.target[t.type]&&(e.disabled=!0,typeof t.target[t.type]==`function`&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function wi(e,t,n){if(Array.isArray(t))return gi(wi,e,t,n);let r=function(){Si(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||mi(),xi(e,t,r)}function Ti(e,t,n){let r=function(){Si(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||mi(),xi(e,t,r)}var Ei=Object.freeze({__proto__:null,fixEvent:_i,on:xi,off:Si,trigger:Ci,one:wi,any:Ti}),Di=30,q=function(e,t,n){t.guid||=mi();let r=t.bind(e);return r.guid=n?n+`_`+t.guid:t.guid,r},Oi=function(e,t){let n=b.default.performance.now();return function(...r){let i=b.default.performance.now();i-n>=t&&(e(...r),n=i)}},ki=function(e,t,n,r=b.default){let i,a=()=>{r.clearTimeout(i),i=null},o=function(){let a=this,o=arguments,s=function(){i=null,s=null,n||e.apply(a,o)};!i&&n&&e.apply(a,o),r.clearTimeout(i),i=r.setTimeout(s,t)};return o.cancel=a,o},Ai=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Di,bind_:q,throttle:Oi,debounce:ki}),ji,Mi=class{on(e,t){let n=this.addEventListener;this.addEventListener=()=>{},xi(this,e,t),this.addEventListener=n}off(e,t){Si(this,e,t)}one(e,t){let n=this.addEventListener;this.addEventListener=()=>{},wi(this,e,t),this.addEventListener=n}any(e,t){let n=this.addEventListener;this.addEventListener=()=>{},Ti(this,e,t),this.addEventListener=n}trigger(e){let t=e.type||e;typeof e==`string`&&(e={type:t}),e=_i(e),this.allowedEvents_[t]&&this[`on`+t]&&this[`on`+t](e),Ci(this,e)}queueTrigger(e){ji||=new Map;let t=e.type||e,n=ji.get(this);n||(n=new Map,ji.set(this,n));let r=n.get(t);n.delete(t),b.default.clearTimeout(r);let i=b.default.setTimeout(()=>{n.delete(t),n.size===0&&(n=null,ji.delete(this)),this.trigger(e)},0);n.set(t,i)}};Mi.prototype.allowedEvents_={},Mi.prototype.addEventListener=Mi.prototype.on,Mi.prototype.removeEventListener=Mi.prototype.off,Mi.prototype.dispatchEvent=Mi.prototype.trigger;var Ni=e=>typeof e.name==`function`?e.name():typeof e.name==`string`?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,Pi=e=>e instanceof Mi||!!e.eventBusEl_&&[`on`,`one`,`off`,`trigger`].every(t=>typeof e[t]==`function`),Fi=(e,t)=>{Pi(e)?t():(e.eventedCallbacks||=[],e.eventedCallbacks.push(t))},Ii=e=>typeof e==`string`&&/\S/.test(e)||Array.isArray(e)&&!!e.length,Li=(e,t,n)=>{if(!e||!e.nodeName&&!Pi(e))throw Error(`Invalid target for ${Ni(t)}#${n}; must be a DOM node or evented object.`)},Ri=(e,t,n)=>{if(!Ii(e))throw Error(`Invalid event type for ${Ni(t)}#${n}; must be a non-empty string or array.`)},zi=(e,t,n)=>{if(typeof e!=`function`)throw Error(`Invalid listener for ${Ni(t)}#${n}; must be a function.`)},Bi=(e,t,n)=>{let r=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i,a,o;return r?(i=e.eventBusEl_,t.length>=3&&t.shift(),[a,o]=t):(i=t[0],a=t[1],o=t[2]),Li(i,e,n),Ri(a,e,n),zi(o,e,n),o=q(e,o),{isTargetingSelf:r,target:i,type:a,listener:o}},Vi=(e,t,n,r)=>{Li(e,e,t),e.nodeName?Ei[t](e,n,r):e[t](n,r)},Hi={on(...e){let{isTargetingSelf:t,target:n,type:r,listener:i}=Bi(this,e,`on`);if(Vi(n,`on`,r,i),!t){let e=()=>this.off(n,r,i);e.guid=i.guid;let t=()=>this.off(`dispose`,e);t.guid=i.guid,Vi(this,`on`,`dispose`,e),Vi(n,`on`,`dispose`,t)}},one(...e){let{isTargetingSelf:t,target:n,type:r,listener:i}=Bi(this,e,`one`);if(t)Vi(n,`one`,r,i);else{let e=(...t)=>{this.off(n,r,e),i.apply(null,t)};e.guid=i.guid,Vi(n,`one`,r,e)}},any(...e){let{isTargetingSelf:t,target:n,type:r,listener:i}=Bi(this,e,`any`);if(t)Vi(n,`any`,r,i);else{let e=(...t)=>{this.off(n,r,e),i.apply(null,t)};e.guid=i.guid,Vi(n,`any`,r,e)}},off(e,t,n){if(!e||Ii(e))Si(this.eventBusEl_,e,t);else{let r=e,i=t;Li(r,this,`off`),Ri(i,this,`off`),zi(n,this,`off`),n=q(this,n),this.off(`dispose`,n),r.nodeName?(Si(r,i,n),Si(r,`dispose`,n)):Pi(r)&&(r.off(i,n),r.off(`dispose`,n))}},trigger(e,t){if(Li(this.eventBusEl_,this,`trigger`),!Ii(e&&typeof e!=`string`?e.type:e))throw Error(`Invalid event type for ${Ni(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return Ci(this.eventBusEl_,e,t)}};function Ui(e,t={}){let{eventBusKey:n}=t;if(n){if(!e[n].nodeName)throw Error(`The eventBusKey "${n}" does not refer to an element.`);e.eventBusEl_=e[n]}else e.eventBusEl_=G(`span`,{className:`vjs-event-bus`});return Object.assign(e,Hi),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on(`dispose`,()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&fi.has(e)&&fi.delete(e)}),b.default.setTimeout(()=>{e.eventBusEl_=null},0)}),e}var Wi={state:{},setState(e){typeof e==`function`&&(e=e());let t;return U(e,(e,n)=>{this.state[n]!==e&&(t||={},t[n]={from:this.state[n],to:e}),this.state[n]=e}),t&&Pi(this)&&this.trigger({changes:t,type:`statechanged`}),t}};function Gi(e,t){return Object.assign(e,Wi),e.state=Object.assign({},e.state,t),typeof e.handleStateChanged==`function`&&Pi(e)&&e.on(`statechanged`,e.handleStateChanged),e}var Ki=function(e){return typeof e==`string`?e.replace(/./,e=>e.toLowerCase()):e},qi=function(e){return typeof e==`string`?e.replace(/./,e=>e.toUpperCase()):e},Ji=function(e,t){return qi(e)===qi(t)},Yi=Object.freeze({__proto__:null,toLowerCase:Ki,toTitleCase:qi,titleCaseEquals:Ji}),J=class e{constructor(e,t,n){if(this.player_=!e&&this.play?e=this:e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=W({},this.options_),t=this.options_=W(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){let t=e&&e.id&&e.id()||`no_player`;this.id_=`${t}_component_${mi()}`}this.name_=t.name||null,t.el?this.el_=t.el:t.createEl!==!1&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(` `).forEach(e=>this.addClass(e)),[`on`,`off`,`one`,`any`,`trigger`].forEach(e=>{this[e]=void 0}),t.evented!==!1&&(Ui(this,{eventBusKey:this.el_?`el_`:null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,`languagechange`,this.handleLanguagechange)),Gi(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,t.initChildren!==!1&&this.initChildren(),this.ready(n),t.reportTouchActivity!==!1&&this.enableTouchActivity()}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:`dispose`,bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&=(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e&&(this.options_=W(this.options_,e)),this.options_}el(){return this.el_}createEl(e,t,n){return G(e,t,n)}localize(e,t,n=e){let r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),a=i&&i[r],o=r&&r.split(`-`)[0],s=i&&i[o],c=n;return a&&a[e]?c=a[e]:s&&s[e]&&(c=s[e]),t&&(c=c.replace(/\{(\d+)\}/g,function(e,n){let r=t[n-1],i=r;return r===void 0&&(i=e),i})),c}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let n=0;n<e.length;n++)if(t=t.getChild(e[n]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;let n=`http://www.w3.org/2000/svg`,r=G(`span`,{className:`vjs-icon-placeholder vjs-svg-icon`},{"aria-hidden":`true`}),i=x.default.createElementNS(n,`svg`);i.setAttributeNS(null,`viewBox`,`0 0 512 512`);let a=x.default.createElementNS(n,`use`);return i.appendChild(a),a.setAttributeNS(null,`href`,`#vjs-icon-${e}`),r.appendChild(i),this.iconIsSet_?t.replaceChild(r,t.querySelector(`.vjs-icon-placeholder`)):t.appendChild(r),this.iconIsSet_=!0,r}addChild(t,n={},r=this.children_.length){let i,a;if(typeof t==`string`){a=qi(t);let r=n.componentClass||a;n.name=a;let o=e.getComponent(r);if(!o)throw Error(`Component ${r} does not exist`);if(typeof o!=`function`)return null;i=new o(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,typeof i.id==`function`&&(this.childIndex_[i.id()]=i),a||=i.name&&qi(i.name()),a&&(this.childNameIndex_[a]=i,this.childNameIndex_[Ki(a)]=i),typeof i.el==`function`&&i.el()){let e=null;this.children_[r+1]&&(this.children_[r+1].el_?e=this.children_[r+1].el_:Ar(this.children_[r+1])&&(e=this.children_[r+1])),this.contentEl().insertBefore(i.el(),e)}return i}removeChild(e){if(typeof e==`string`&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[qi(e.name())]=null,this.childNameIndex_[Ki(e.name())]=null;let n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){let t=this.options_.children;if(t){let n=this.options_,r=e=>{let t=e.name,r=e.opts;if(n[t]!==void 0&&(r=n[t]),r===!1)return;r===!0&&(r={}),r.playerOptions=this.options_.playerOptions;let i=this.addChild(t,r);i&&(this[t]=i)},i,a=e.getComponent(`Tech`);i=Array.isArray(t)?t:Object.keys(t),i.concat(Object.keys(this.options_).filter(function(e){return!i.some(function(t){return typeof t==`string`?e===t:e===t.name})})).map(e=>{let n,r;return typeof e==`string`?(n=e,r=t[n]||this.options_[n]||{}):(n=e.name,r=e),{name:n,opts:r}}).filter(t=>{let n=e.getComponent(t.opts.componentClass||qi(t.name));return n&&!a.isTech(n)}).forEach(r)}}buildCSSClass(){return``}ready(e,t=!1){if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}t?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){let e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger(`ready`)},1)}$(e,t){return ei(e,t||this.contentEl())}$$(e,t){return ti(e,t||this.contentEl())}hasClass(e){return Fr(this.el_,e)}addClass(...e){Ir(this.el_,...e)}removeClass(...e){Lr(this.el_,...e)}toggleClass(e,t){Rr(this.el_,e,t)}show(){this.removeClass(`vjs-hidden`)}hide(){this.addClass(`vjs-hidden`)}lockShowing(){this.addClass(`vjs-lock-showing`)}unlockShowing(){this.removeClass(`vjs-lock-showing`)}getAttribute(e){return Vr(this.el_,e)}setAttribute(e,t){Hr(this.el_,e,t)}removeAttribute(e){Ur(this.el_,e)}width(e,t){return this.dimension(`width`,e,t)}height(e,t){return this.dimension(`height`,e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,n){if(t!==void 0){(t===null||t!==t)&&(t=0),(``+t).indexOf(`%`)!==-1||(``+t).indexOf(`px`)!==-1?this.el_.style[e]=t:t===`auto`?this.el_.style[e]=``:this.el_.style[e]=t+`px`,n||this.trigger(`componentresize`);return}if(!this.el_)return 0;let r=this.el_.style[e],i=r.indexOf(`px`);return parseInt(i===-1?this.el_[`offset`+qi(e)]:r.slice(0,i),10)}currentDimension(e){let t=0;if(e!==`width`&&e!==`height`)throw Error(`currentDimension only accepts width or height value`);if(t=ni(this.el_,e),t=parseFloat(t),t===0||isNaN(t)){let n=`offset${qi(e)}`;t=this.el_[n]}return t}currentDimensions(){return{width:this.currentDimension(`width`),height:this.currentDimension(`height`)}}currentWidth(){return this.currentDimension(`width`)}currentHeight(){return this.currentDimension(`height`)}getPositions(){let e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(e.key!==`Tab`&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)&&e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,t=null,n;this.on(`touchstart`,function(r){r.touches.length===1&&(t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=b.default.performance.now(),n=!0)}),this.on(`touchmove`,function(e){if(e.touches.length>1)n=!1;else if(t){let r=e.touches[0].pageX-t.pageX,i=e.touches[0].pageY-t.pageY;Math.sqrt(r*r+i*i)>10&&(n=!1)}});let r=function(){n=!1};this.on(`touchleave`,r),this.on(`touchcancel`,r),this.on(`touchend`,function(r){t=null,n===!0&&b.default.performance.now()-e<200&&(r.preventDefault(),this.trigger(`tap`))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;let e=q(this.player(),this.player().reportUserActivity),t;this.on(`touchstart`,function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});let n=function(n){e(),this.clearInterval(t)};this.on(`touchmove`,e),this.on(`touchend`,n),this.on(`touchcancel`,n)}setTimeout(e,t){var n;return e=q(this,e),this.clearTimersOnDispose_(),n=b.default.setTimeout(()=>{this.setTimeoutIds_.has(n)&&this.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),b.default.clearTimeout(e)),e}setInterval(e,t){e=q(this,e),this.clearTimersOnDispose_();let n=b.default.setInterval(e,t);return this.setIntervalIds_.add(n),n}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),b.default.clearInterval(e)),e}requestAnimationFrame(e){this.clearTimersOnDispose_();var t;return e=q(this,e),t=b.default.requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=q(this,t);let n=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),b.default.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one(`dispose`,()=>{[[`namedRafs_`,`cancelNamedAnimationFrame`],[`rafIds_`,`cancelAnimationFrame`],[`setTimeoutIds_`,`clearTimeout`],[`setIntervalIds_`,`clearInterval`]].forEach(([e,t])=>{this[e].forEach((e,n)=>this[t](n))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return!!this.el_.disabled}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function t(e){let t=b.default.getComputedStyle(e,null),n=t.getPropertyValue(`visibility`);return t.getPropertyValue(`display`)!==`none`&&![`hidden`,`collapse`].includes(n)}function n(e){return!(!t(e.parentElement)||!t(e)||e.style.opacity===`0`||b.default.getComputedStyle(e).height===`0px`||b.default.getComputedStyle(e).width===`0px`)}function r(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;let t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(t.x<0||t.x>(x.default.documentElement.clientWidth||b.default.innerWidth)||t.y<0||t.y>(x.default.documentElement.clientHeight||b.default.innerHeight))return!1;let n=x.default.elementFromPoint(t.x,t.y);for(;n;){if(n===e)return!0;if(n.parentNode)n=n.parentNode;else return!1}}return e||=this.el(),!!(r(e)&&n(e)&&(!e.parentElement||e.tabIndex>=0))}static registerComponent(t,n){if(typeof t!=`string`||!t)throw Error(`Illegal component name, "${t}"; must be a non-empty string.`);let r=e.getComponent(`Tech`),i=r&&r.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(i||!a){let e;throw e=i?`techs must be registered using Tech.registerTech()`:`must be a Component subclass`,Error(`Illegal component, "${t}"; ${e}.`)}t=qi(t),e.components_||={};let o=e.getComponent(`Player`);if(t===`Player`&&o&&o.players){let e=o.players,t=Object.keys(e);if(e&&t.length>0){for(let n=0;n<t.length;n++)if(e[t[n]]!==null)throw Error(`Can not register Player component after player has been created.`)}}return e.components_[t]=n,e.components_[Ki(t)]=n,n}static getComponent(t){if(!(!t||!e.components_))return e.components_[t]}};J.registerComponent(`Component`,J);function Xi(e,t,n){if(typeof t!=`number`||t<0||t>n)throw Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${n}).`)}function Zi(e,t,n,r){return Xi(e,r,n.length-1),n[r][t]}function Qi(e){let t;return t=e===void 0||e.length===0?{length:0,start(){throw Error(`This TimeRanges object is empty`)},end(){throw Error(`This TimeRanges object is empty`)}}:{length:e.length,start:Zi.bind(null,`start`,0,e),end:Zi.bind(null,`end`,1,e)},b.default.Symbol&&b.default.Symbol.iterator&&(t[b.default.Symbol.iterator]=()=>(e||[]).values()),t}function $i(e,t){return Array.isArray(e)?Qi(e):e===void 0||t===void 0?Qi():Qi([[e,t]])}var ea=function(e,t){e=e<0?0:e;let n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n=`-`),i=i>0||o>0?i+`:`:``,r=((i||a>=10)&&r<10?`0`+r:r)+`:`,n=n<10?`0`+n:n,i+r+n},ta=ea;function na(e){ta=e}function ra(){ta=ea}function ia(e,t=e){return ta(e,t)}var aa=Object.freeze({__proto__:null,createTimeRanges:$i,createTimeRange:$i,setFormatTime:na,resetFormatTime:ra,formatTime:ia});function oa(e,t){let n=0,r,i;if(!t)return 0;(!e||!e.length)&&(e=$i(0,0));for(let a=0;a<e.length;a++)r=e.start(a),i=e.end(a),i>t&&(i=t),n+=i-r;return n/t}function sa(e){if(e instanceof sa)return e;typeof e==`number`?this.code=e:typeof e==`string`?this.message=e:Qn(e)&&(typeof e.code==`number`&&(this.code=e.code),Object.assign(this,e)),this.message||=sa.defaultMessages[this.code]||``}sa.prototype.code=0,sa.prototype.message=``,sa.prototype.status=null,sa.prototype.metadata=null,sa.errorTypes=[`MEDIA_ERR_CUSTOM`,`MEDIA_ERR_ABORTED`,`MEDIA_ERR_NETWORK`,`MEDIA_ERR_DECODE`,`MEDIA_ERR_SRC_NOT_SUPPORTED`,`MEDIA_ERR_ENCRYPTED`],sa.defaultMessages={1:`You aborted the media playback`,2:`A network error caused the media download to fail part-way.`,3:`The media playback was aborted due to a corruption problem or because the media used features your browser did not support.`,4:`The media could not be loaded, either because the server or network failed or because the format is not supported.`,5:`The media is encrypted and we do not have the keys to decrypt it.`},sa.MEDIA_ERR_CUSTOM=0,sa.prototype.MEDIA_ERR_CUSTOM=0,sa.MEDIA_ERR_ABORTED=1,sa.prototype.MEDIA_ERR_ABORTED=1,sa.MEDIA_ERR_NETWORK=2,sa.prototype.MEDIA_ERR_NETWORK=2,sa.MEDIA_ERR_DECODE=3,sa.prototype.MEDIA_ERR_DECODE=3,sa.MEDIA_ERR_SRC_NOT_SUPPORTED=4,sa.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,sa.MEDIA_ERR_ENCRYPTED=5,sa.prototype.MEDIA_ERR_ENCRYPTED=5;function ca(e){return e!=null&&typeof e.then==`function`}function la(e){ca(e)&&e.then(null,e=>{})}var ua=function(e){return[`kind`,`label`,`language`,`id`,`inBandMetadataTrackDispatchType`,`mode`,`src`].reduce((t,n,r)=>(e[n]&&(t[n]=e[n]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},da={textTracksToJson:function(e){let t=e.$$(`track`),n=Array.prototype.map.call(t,e=>e.track);return Array.prototype.map.call(t,function(e){let t=ua(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return n.indexOf(e)===-1}).map(ua))},jsonToTextTracks:function(e,t){return e.forEach(function(e){let n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(e=>n.addCue(e))}),t.textTracks()},trackToJson:ua},fa=`vjs-modal-dialog`,pa=class extends J{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=G(`div`,{className:`${fa}-content`},{role:`document`}),this.descEl_=G(`p`,{className:`${fa}-description vjs-control-text`,id:this.el().getAttribute(`aria-describedby`)}),Nr(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl(`div`,{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":`true`,"aria-label":this.label(),role:`dialog`,"aria-live":`polite`})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${fa} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||`Modal Window`)}description(){let e=this.options_.description||this.localize(`This is a modal window.`);return this.closeable()&&(e+=` `+this.localize(`This modal can be closed by pressing the Escape key or activating the close button.`)),e}open(){if(this.opened_){this.options_.fillAlways&&this.fill();return}let e=this.player();this.trigger(`beforemodalopen`),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on(`keydown`,this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute(`aria-hidden`,`false`),this.trigger(`modalopen`),this.hasBeenOpened_=!0}opened(e){return typeof e==`boolean`&&this[e?`open`:`close`](),this.opened_}close(){if(!this.opened_)return;let e=this.player();this.trigger(`beforemodalclose`),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off(`keydown`,this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute(`aria-hidden`,`true`),this.trigger({type:`modalclose`,bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if(typeof e==`boolean`){let t=this.closeable_=!!e,n=this.getChild(`closeButton`);if(t&&!n){let e=this.contentEl_;this.contentEl_=this.el_,n=this.addChild(`closeButton`,{controlText:`Close Modal Dialog`}),this.contentEl_=e,this.on(n,`close`,this.close_)}!t&&n&&(this.off(n,`close`,this.close_),this.removeChild(n),n.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){let t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger(`beforemodalfill`),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Qr(t,e),this.trigger(`modalfill`),r?n.insertBefore(t,r):n.appendChild(t);let i=this.getChild(`closeButton`);i&&n.appendChild(i.el_),this.trigger(`aftermodalfill`)}empty(){this.trigger(`beforemodalempty`),Yr(this.contentEl()),this.trigger(`modalempty`)}content(e){return e!==void 0&&(this.content_=e),this.content_}conditionalFocus_(){let e=x.default.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&=(this.previouslyActiveEl_.focus(),null)}handleKeyDown(e){if(this.trigger({type:`modalKeydown`,originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),e.key===`Escape`&&this.closeable()){e.preventDefault(),this.close();return}if(e.key!==`Tab`)return;let t=this.focusableEls_(),n=this.el_.querySelector(`:focus`),r;for(let e=0;e<t.length;e++)if(n===t[e]){r=e;break}x.default.activeElement===this.el_&&(r=0),e.shiftKey&&r===0?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&r===t.length-1&&(t[0].focus(),e.preventDefault())}focusableEls_(){let e=this.el_.querySelectorAll(`*`);return Array.prototype.filter.call(e,e=>(e instanceof b.default.HTMLAnchorElement||e instanceof b.default.HTMLAreaElement)&&e.hasAttribute(`href`)||(e instanceof b.default.HTMLInputElement||e instanceof b.default.HTMLSelectElement||e instanceof b.default.HTMLTextAreaElement||e instanceof b.default.HTMLButtonElement)&&!e.hasAttribute(`disabled`)||e instanceof b.default.HTMLIFrameElement||e instanceof b.default.HTMLObjectElement||e instanceof b.default.HTMLEmbedElement||e.hasAttribute(`tabindex`)&&e.getAttribute(`tabindex`)!==-1||e.hasAttribute(`contenteditable`))}};pa.prototype.options_={pauseOnOpen:!0,temporary:!0},J.registerComponent(`ModalDialog`,pa);var ma=class extends Mi{constructor(e=[]){super(),this.tracks_=[];for(let t=0;t<e.length;t++)this.addTrack(e[t])}get length(){return this.tracks_.length}addTrack(e){let t=this.tracks_.length;``+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:`addtrack`,target:this})),e.labelchange_=()=>{this.trigger({track:e,type:`labelchange`,target:this})},Pi(e)&&e.addEventListener(`labelchange`,e.labelchange_)}removeTrack(e){let t;for(let n=0,r=this.length;n<r;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:`removetrack`,target:this})}getTrackById(e){let t=null;for(let n=0,r=this.length;n<r;n++){let r=this[n];if(r.id===e){t=r;break}}return t}};ma.prototype.allowedEvents_={change:`change`,addtrack:`addtrack`,removetrack:`removetrack`,labelchange:`labelchange`};for(let e in ma.prototype.allowedEvents_)ma.prototype[`on`+e]=null;var ha=function(e,t){for(let n=0;n<e.length;n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].enabled=!1)},ga=class extends ma{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){ha(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&ha(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,ha(this,e),this.changing_=!1,this.trigger(`change`))},e.addEventListener(`enabledchange`,e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener(`enabledchange`,e.enabledChange_),e.enabledChange_=null)}},_a=function(e,t){for(let n=0;n<e.length;n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].selected=!1)},va=class extends ma{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){_a(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&_a(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,_a(this,e),this.changing_=!1,this.trigger(`change`))},e.addEventListener(`selectedchange`,e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener(`selectedchange`,e.selectedChange_),e.selectedChange_=null)}},ya=class extends ma{addTrack(e){super.addTrack(e),this.queueChange_||=()=>this.queueTrigger(`change`),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger(`selectedlanguagechange`)),e.addEventListener(`modechange`,this.queueChange_),[`metadata`,`chapters`].indexOf(e.kind)===-1&&e.addEventListener(`modechange`,this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener(`modechange`,this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener(`modechange`,this.triggerSelectedlanguagechange_))}toJSON(){return this.tracks_.map(e=>e.toJSON())}},ba=class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}addTrackElement_(e){let t=this.trackElements_.length;``+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t}removeTrackElement_(e){for(let t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&typeof this.trackElements_[t].track.off==`function`&&this.trackElements_[t].track.off(),typeof this.trackElements_[t].off==`function`&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},xa=class e{constructor(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){let t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;let i=function(e){``+e in this||Object.defineProperty(this,``+e,{get(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)}getCueById(e){let t=null;for(let n=0,r=this.length;n<r;n++){let r=this[n];if(r.id===e){t=r;break}}return t}},Sa={alternative:`alternative`,captions:`captions`,main:`main`,sign:`sign`,subtitles:`subtitles`,commentary:`commentary`},Ca={alternative:`alternative`,descriptions:`descriptions`,main:`main`,"main-desc":`main-desc`,translation:`translation`,commentary:`commentary`},wa={subtitles:`subtitles`,captions:`captions`,descriptions:`descriptions`,chapters:`chapters`,metadata:`metadata`},Ta={disabled:`disabled`,hidden:`hidden`,showing:`showing`},Ea=class extends Mi{constructor(e={}){super();let t={id:e.id||`vjs_track_`+mi(),kind:e.kind||``,language:e.language||``},n=e.label||``;for(let e in t)Object.defineProperty(this,e,{get(){return t[e]},set(){}});Object.defineProperty(this,"label",{get(){return n},set(e){e!==n&&(n=e,this.trigger(`labelchange`))}})}},Da=function(e){return new URL(e,x.default.baseURI)},Oa=function(e){return new URL(e,x.default.baseURI).href},ka=function(e){if(typeof e==`string`){let t=e.split(`?`)[0].replace(/\/+$/,``).match(/\.([^.\/]+)$/);return t?t[1].toLowerCase():``}return``},Aa=function(e,t=b.default.location){return Da(e).origin!==t.origin},ja=Object.freeze({__proto__:null,parseUrl:Da,getAbsoluteURL:Oa,getFileExtension:ka,isCrossOrigin:Aa}),Ma=function(e,t){let n=new b.default.WebVTT.Parser(b.default,b.default.vttjs,b.default.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:`loadeddata`,target:t})},n.parse(e),r.length>0&&(b.default.console&&b.default.console.groupCollapsed&&b.default.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),r.forEach(e=>H.error(e)),b.default.console&&b.default.console.groupEnd&&b.default.console.groupEnd()),n.flush()},Na=function(e,t){let n={uri:e},r=Aa(e);r&&(n.cors=r);let i=t.tech_.crossOrigin()===`use-credentials`;i&&(n.withCredentials=i),(0,S.default)(n,q(this,function(e,n,r){if(e)return H.error(e,n);t.loaded_=!0,typeof b.default.WebVTT==`function`?Ma(r,t):t.tech_&&t.tech_.any([`vttjsloaded`,`vttjserror`],e=>{if(e.type===`vttjserror`){H.error(`vttjs failed to load, stopping trying to process ${t.src}`);return}return Ma(r,t)})}))},Pa=class extends Ea{constructor(e={}){if(!e.tech)throw Error(`A tech was not provided.`);let t=W(e,{kind:wa[e.kind]||`subtitles`,language:e.language||e.srclang||``}),n=Ta[t.mode]||`disabled`,r=t.default;(t.kind===`metadata`||t.kind===`chapters`)&&(n=`hidden`),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;let i=new xa(this.cues_),a=new xa(this.activeCues_),o=!1;this.timeupdateHandler=q(this,function(e={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){e.type!==`timeupdate`&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,o&&=(this.trigger(`cuechange`),!1),e.type!==`timeupdate`&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}),this.tech_.one(`dispose`,()=>{this.stopTracking()}),n!==`disabled`&&this.startTracking(),Object.defineProperties(this,{default:{get(){return r},set(){}},mode:{get(){return n},set(e){Ta[e]&&n!==e&&(n=e,!this.preload_&&n!==`disabled`&&this.cues.length===0&&Na(this.src,this),this.stopTracking(),n!==`disabled`&&this.startTracking(),this.trigger(`modechange`))}},cues:{get(){return this.loaded_?i:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return a;let e=this.tech_.currentTime(),t=[];for(let n=0,r=this.cues.length;n<r;n++){let r=this.cues[n];r.startTime<=e&&r.endTime>=e&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(let e=0;e<t.length;e++)this.activeCues_.indexOf(t[e])===-1&&(o=!0);return this.activeCues_=t,a.setCues_(this.activeCues_),a},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||t.kind!==`subtitles`&&t.kind!==`captions`)&&Na(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on(`timeupdate`,this.timeupdateHandler)}stopTracking(){this.rvf_&&=(this.tech_.cancelVideoFrameCallback(this.rvf_),void 0),this.tech_.off(`timeupdate`,this.timeupdateHandler)}addCue(e){let t=e;if(!(`getCueAsHTML`in t)){t=new b.default.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(let n in e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}let n=this.tech_.textTracks();for(let e=0;e<n.length;e++)n[e]!==this&&n[e].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}toJSON(){return da.trackToJson(this)}removeCue(e){let t=this.cues_.length;for(;t--;){let n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}};Pa.prototype.allowedEvents_={cuechange:`cuechange`};var Fa=class extends Ea{constructor(e={}){let t=W(e,{kind:Ca[e.kind]||``});super(t);let n=!1;Object.defineProperty(this,"enabled",{get(){return n},set(e){typeof e==`boolean`&&e!==n&&(n=e,this.trigger(`enabledchange`))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}},Ia=class extends Ea{constructor(e={}){let t=W(e,{kind:Sa[e.kind]||``});super(t);let n=!1;Object.defineProperty(this,"selected",{get(){return n},set(e){typeof e==`boolean`&&e!==n&&(n=e,this.trigger(`selectedchange`))}}),t.selected&&(this.selected=t.selected)}},La=class e extends Mi{constructor(t={}){super();let n,r=new Pa(t);this.kind=r.kind,this.src=r.src,this.srclang=r.language,this.label=r.label,this.default=r.default,Object.defineProperties(this,{readyState:{get(){return n}},track:{get(){return r}}}),n=e.NONE,r.addEventListener(`loadeddata`,()=>{n=e.LOADED,this.trigger({type:`load`,target:this})})}};La.prototype.allowedEvents_={load:`load`},La.NONE=0,La.LOADING=1,La.LOADED=2,La.ERROR=3;var Ra={audio:{ListClass:ga,TrackClass:Fa,capitalName:`Audio`},video:{ListClass:va,TrackClass:Ia,capitalName:`Video`},text:{ListClass:ya,TrackClass:Pa,capitalName:`Text`}};Object.keys(Ra).forEach(function(e){Ra[e].getterName=`${e}Tracks`,Ra[e].privateName=`${e}Tracks_`});var za={remoteText:{ListClass:ya,TrackClass:Pa,capitalName:`RemoteText`,getterName:`remoteTextTracks`,privateName:`remoteTextTracks_`},remoteTextEl:{ListClass:ba,TrackClass:La,capitalName:`RemoteTextTrackEls`,getterName:`remoteTextTrackEls`,privateName:`remoteTextTrackEls_`}},Ba=Object.assign({},Ra,za);za.names=Object.keys(za),Ra.names=Object.keys(Ra),Ba.names=[].concat(za.names,Ra.names);function Va(e,t,n,r,i={}){let a=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;let o=new Ba.text.TrackClass(i);return a.addTrack(o),o}var Y=class e extends J{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on(`playing`,function(){this.hasStarted_=!0}),this.on(`loadstart`,function(){this.hasStarted_=!1}),Ba.names.forEach(t=>{let n=Ba[t];e&&e[n.getterName]&&(this[n.privateName]=e[n.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),[`Text`,`Audio`,`Video`].forEach(t=>{e[`native${t}Tracks`]===!1&&(this[`featuresNative${t}Tracks`]=!1)}),e.nativeCaptions===!1||e.nativeTextTracks===!1?this.featuresNativeTextTracks=!1:(e.nativeCaptions===!0||e.nativeTextTracks===!0)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=e.preloadTextTracks!==!1,this.autoRemoteTextTracks_=new Ba.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||`Unknown Tech`)}triggerSourceset(e){this.isReady_||this.one(`ready`,()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:`sourceset`})}manualProgressOn(){this.on(`durationchange`,this.onDurationChange_),this.manualProgress=!0,this.one(`ready`,this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off(`durationchange`,this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(q(this,function(){let e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger(`progress`),this.bufferedPercent_=e,e===1&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return $i(0,0)}bufferedPercent(){return oa(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on(`play`,this.trackCurrentTime_),this.on(`pause`,this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off(`play`,this.trackCurrentTime_),this.off(`pause`,this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(Ra.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){e=[].concat(e),e.forEach(e=>{let t=this[`${e}Tracks`]()||[],n=t.length;for(;n--;){let r=t[n];e===`text`&&this.removeRemoteTextTrack(r),t.removeTrack(r)}})}cleanupAutoTextTracks(){let e=this.autoRemoteTextTracks_||[],t=e.length;for(;t--;){let n=e[t];this.removeRemoteTextTrack(n)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return e!==void 0&&(this.error_=new sa(e),this.trigger(`error`)),this.error_}played(){return this.hasStarted_?$i(0,0):$i()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})}initTrackListeners(){Ra.names.forEach(e=>{let t=Ra[e],n=()=>{this.trigger(`${e}trackchange`)},r=this[t.getterName]();r.addEventListener(`removetrack`,n),r.addEventListener(`addtrack`,n),this.on(`dispose`,()=>{r.removeEventListener(`removetrack`,n),r.removeEventListener(`addtrack`,n)})})}addWebVttScript_(){if(!b.default.WebVTT){if(x.default.body.contains(this.el())){if(!this.options_[`vtt.js`]&&$n(C.default)&&Object.keys(C.default).length>0){this.trigger(`vttjsloaded`);return}let e=x.default.createElement(`script`);e.src=this.options_[`vtt.js`]||`https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js`,e.onload=()=>{this.trigger(`vttjsloaded`)},e.onerror=()=>{this.trigger(`vttjserror`)},this.on(`dispose`,()=>{e.onload=null,e.onerror=null}),b.default.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}}emulateTextTracks(){let e=this.textTracks(),t=this.remoteTextTracks(),n=t=>e.addTrack(t.track),r=t=>e.removeTrack(t.track);t.on(`addtrack`,n),t.on(`removetrack`,r),this.addWebVttScript_();let i=()=>this.trigger(`texttrackchange`),a=()=>{i();for(let t=0;t<e.length;t++){let n=e[t];n.removeEventListener(`cuechange`,i),n.mode===`showing`&&n.addEventListener(`cuechange`,i)}};a(),e.addEventListener(`change`,a),e.addEventListener(`addtrack`,a),e.addEventListener(`removetrack`,a),this.on(`dispose`,function(){t.off(`addtrack`,n),t.off(`removetrack`,r),e.removeEventListener(`change`,a),e.removeEventListener(`addtrack`,a),e.removeEventListener(`removetrack`,a);for(let t=0;t<e.length;t++)e[t].removeEventListener(`cuechange`,i)})}addTextTrack(e,t,n){if(!e)throw Error(`TextTrack kind is required but was not provided`);return Va(this,e,t,n)}createRemoteTextTrack(e){let t=W(e,{tech:this});return new za.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){let n=this.createRemoteTextTrack(e);return typeof t!=`boolean`&&(t=!1),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),t===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(n.track)),n}removeRemoteTextTrack(e){let t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){let t=mi();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one(`playing`,()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return``}static canPlayType(e){return``}static canPlaySource(t,n){return e.canPlayType(t.type)}static isTech(t){return t.prototype instanceof e||t instanceof e||t===e}static registerTech(t,n){if(e.techs_||={},!e.isTech(n))throw Error(`Tech ${t} must be a Tech`);if(!e.canPlayType)throw Error(`Techs must have a static canPlayType method on them`);if(!e.canPlaySource)throw Error(`Techs must have a static canPlaySource method on them`);return t=qi(t),e.techs_[t]=n,e.techs_[Ki(t)]=n,t!==`Tech`&&e.defaultTechOrder_.push(t),n}static getTech(t){if(t){if(e.techs_&&e.techs_[t])return e.techs_[t];if(t=qi(t),b.default&&b.default.videojs&&b.default.videojs[t])return H.warn(`The ${t} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),b.default.videojs[t]}}};Ba.names.forEach(function(e){let t=Ba[e];Y.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Y.prototype.featuresVolumeControl=!0,Y.prototype.featuresMuteControl=!0,Y.prototype.featuresFullscreenResize=!1,Y.prototype.featuresPlaybackRate=!1,Y.prototype.featuresProgressEvents=!1,Y.prototype.featuresSourceset=!1,Y.prototype.featuresTimeupdateEvents=!1,Y.prototype.featuresNativeTextTracks=!1,Y.prototype.featuresVideoFrameCallback=!1,Y.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){let r=e.sourceHandlers;r||=e.sourceHandlers=[],n===void 0&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){let n=e.sourceHandlers||[],r;for(let e=0;e<n.length;e++)if(r=n[e].canPlayType(t),r)return r;return``},e.selectSourceHandler=function(t,n){let r=e.sourceHandlers||[],i;for(let e=0;e<r.length;e++)if(i=r[e].canHandleSource(t,n),i)return r[e];return null},e.canPlaySource=function(t,n){let r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):``},[`seekable`,`seeking`,`duration`].forEach(function(e){let t=this[e];typeof t==`function`&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){let n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:H.error(`No source handler found for the current source.`)),this.disposeSourceHandler(),this.off(`dispose`,this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one(`dispose`,this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&=(this.clearTracks([`audio`,`video`]),null),this.cleanupAutoTextTracks(),this.sourceHandler_&&=(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),null)}},J.registerComponent(`Tech`,Y),Y.registerTech(`Tech`,Y),Y.defaultTechOrder_=[];var Ha={},Ua={},Wa={};function Ga(e,t){Ha[e]=Ha[e]||[],Ha[e].push(t)}function Ka(e,t,n){e.setTimeout(()=>io(t,Ha[t.type],n,e),1)}function qa(e,t){e.forEach(e=>e.setTech&&e.setTech(t))}function Ja(e,t,n){return e.reduceRight(eo(n),t[n]())}function Ya(e,t,n,r){return t[n](e.reduce(eo(n),r))}function Xa(e,t,n,r=null){let i=`call`+qi(n),a=e.reduce(eo(i),r),o=a===Wa,s=o?null:t[n](a);return to(e,n,s,o),s}var Za={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Qa={setCurrentTime:1,setMuted:1,setVolume:1},$a={play:1,pause:1};function eo(e){return(t,n)=>t===Wa?Wa:n[e]?n[e](t):t}function to(e,t,n,r){for(let i=e.length-1;i>=0;i--){let a=e[i];a[t]&&a[t](r,n)}}function no(e){Ua.hasOwnProperty(e.id())&&delete Ua[e.id()]}function ro(e,t){let n=Ua[e.id()],r=null;if(n==null)return r=t(e),Ua[e.id()]=[[t,r]],r;for(let e=0;e<n.length;e++){let[i,a]=n[e];i===t&&(r=a)}return r===null&&(r=t(e),n.push([t,r])),r}function io(e={},t=[],n,r,i=[],a=!1){let[o,...s]=t;if(typeof o==`string`)io(e,Ha[o],n,r,i,a);else if(o){let t=ro(r,o);if(!t.setSource)return i.push(t),io(e,s,n,r,i,a);t.setSource(Object.assign({},e),function(o,c){if(o)return io(e,s,n,r,i,a);i.push(t),io(c,e.type===c.type?s:Ha[c.type],n,r,i,a)})}else s.length?io(e,s,n,r,i,a):a?n(e,i):io(e,Ha[`*`],n,r,i,!0)}var ao={opus:`video/ogg`,ogv:`video/ogg`,mp4:`video/mp4`,mov:`video/mp4`,m4v:`video/mp4`,mkv:`video/x-matroska`,m4a:`audio/mp4`,mp3:`audio/mpeg`,aac:`audio/aac`,caf:`audio/x-caf`,flac:`audio/flac`,oga:`audio/ogg`,wav:`audio/wav`,m3u8:`application/x-mpegURL`,mpd:`application/dash+xml`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,png:`image/png`,svg:`image/svg+xml`,webp:`image/webp`},oo=function(e=``){return ao[ka(e).toLowerCase()]||``},so=(e,t)=>{if(!t)return``;if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;let n=e.cache_.sources.filter(e=>e.src===t);if(n.length)return n[0].type;let r=e.$$(`source`);for(let e=0;e<r.length;e++){let n=r[e];if(n.type&&n.src&&n.src===t)return n.type}return oo(t)},co=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(e){e=co(e),Array.isArray(e)?t=t.concat(e):Qn(e)&&t.push(e)}),e=t}else e=typeof e==`string`&&e.trim()?[lo({src:e})]:Qn(e)&&typeof e.src==`string`&&e.src&&e.src.trim()?[lo(e)]:[];return e};function lo(e){if(!e.type){let t=oo(e.src);t&&(e.type=t)}return e}var uo=`<svg xmlns="http://www.w3.org/2000/svg">
|
|
18
18
|
<defs>
|
|
19
19
|
<symbol viewBox="0 0 48 48" id="vjs-icon-play">
|
|
20
20
|
<path d="M16 10v28l22-14z"></path>
|
package/video-player/index.js
CHANGED
|
@@ -6702,7 +6702,7 @@ var Ln = Fn, Rn = function(e) {
|
|
|
6702
6702
|
return a(n ? e : e - t);
|
|
6703
6703
|
}
|
|
6704
6704
|
};
|
|
6705
|
-
})))(), Vn = "8.24.
|
|
6705
|
+
})))(), Vn = "8.24.1", Hn = {}, Un = function(e, t) {
|
|
6706
6706
|
return Hn[e] = Hn[e] || [], t && (Hn[e] = Hn[e].concat(t)), Hn[e];
|
|
6707
6707
|
}, Wn = function(e, t) {
|
|
6708
6708
|
Un(e, t);
|