/*! JW Player version 8.33.2 Copyright (c) 2024, JW Player, All Rights Reserved This source code and its use and distribution is subject to the terms and conditions of the applicable license agreement. https://www.jwplayer.com/tos/ This product includes portions of other software. For the full text of licenses, see https://ssl.p.jwpcdn.com/player/v/8.33.2/notice.txt */ "use strict";(self.webpackChunkjwplayer=self.webpackChunkjwplayer||[]).push([[63],{8698:(t,e,i)=>{i.r(e),i.d(e,{default:()=>S});var o=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};const n=function(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message};(n.prototype=Object.create(Error.prototype)).constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};const r=t=>{const e=(t,e,i,o)=>3600*(0|t)+60*(0|e)+(0|i)+(0|o)/1e3,i=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null},s={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},a={v:"title",lang:"lang"},h={rt:"ruby"},c=(t,e)=>{const i=()=>{if(!e)return null;const t=e.match(/^([^<]*)(<[^>]+>?)?/);return i=t[1]?t[1]:t[2],e=e.substr(i.length),i;var i},o=t=>s[t],n=t=>{let e;for(;e=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(e[0],o);return t},c=(t,e)=>!h[e.localName]||h[e.localName]===t.localName,p=(e,i)=>{const o=l[e];if(!o)return null;const n=t.document.createElement(o),r=a[e];return r&&i&&(n[r]=i.trim()),n},d=t.document.createElement("div");let u,f=d;const g=[];for(;null!==(u=i());)if("<"!==u[0])f.appendChild(t.document.createTextNode(n(u)));else{if("/"===u[1]){g.length&&g[g.length-1]===u.substr(2).replace(">","")&&(g.pop(),f=f.parentNode);continue}const e=r(u.substr(1,u.length-2));let i;if(e){i=t.document.createProcessingInstruction("timestamp",e),f.appendChild(i);continue}const o=u.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!o)continue;if(i=p(o[1],o[3]),!i)continue;if(!c(f,i))continue;o[2]&&(i.className=o[2].substr(1).replace("."," ")),g.push(o[1]),f.appendChild(i),f=i}return d},p=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]],d=t=>{for(let e=0;e=i[0]&&t<=i[1])return!0}return!1},u=(t,e)=>{for(let i=e.childNodes.length-1;i>=0;i--)t.push(e.childNodes[i])},f=t=>{if(!t||!t.length)return null;const e=t.pop(),i=e.textContent||e.innerText;if(i){const e=i.match(/^.*(\n|\r)/);return e?(t.length=0,e[0]):i}return"ruby"===e.tagName?f(t):e.childNodes?(u(t,e),f(t)):void 0},g=t=>{if(!t||!t.childNodes)return"ltr";const e=[];let i,o;for(u(e,t);i=f(e);)for(let t=0;tt.left&&this.topt.top},v.prototype.overlapsAny=function(t){for(let e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},v.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},v.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,paddingRight:t.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(t){const e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,o=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0,n=(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).height||e;return{left:t.left,right:t.right,top:t.top||o,height:n,bottom:t.bottom||o+n,width:t.width||i}};const b=(t,e,i,o,n)=>{const r=(t,e,n=0)=>{let s;const l=new v(t);let a,h=0;if(!t.height||!t.width)return l;for(let n=0;n{if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;const e=t.track,i=e.textTrackList;let o=0;for(let t=0;tc&&(r=r<0?-1:1,r*=Math.ceil(c/e)*e),a<0){r+=l.vertical?i.width:i.height;r-=n*e,h=h.slice().reverse()}r-=n,s.move(p,r)}else{const t=s.lineHeight/i.height*100;switch(l.lineAlign){case"middle":a-=t/2;break;case"end":a-=t}switch(l.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({paddingRight:e.formatStyle(a,"%")})}h=["+y","-x","+x","-y"],s=new v(e)}const c=r(s,h);e.move(c.toCSSCompatValues(i))},w=()=>{};w.StringDecoder=function(){return{decode(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},w.convertCueToDOMTree=function(t,e){return t&&e?c(t,e):null};w.processCues=function(t,e,i,o){if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);if(!e.length)return null;const n=t.document.createElement("div");if(n.className="jw-text-track-container jw-reset",n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),!(t=>{for(let e=0;es.width&&(a.cueDiv.style.whiteSpace="pre-wrap",a.div.style.left="0px"),b(0,a,s,r,l),l-=o.text.split("\n").length,o.displayState=a.div,r.push(v.getSimpleBoxPosition(a))}}()};const x=w;window.WebVTT||(window.WebVTT=x);const S=x}}]);