;OATH = window.OATH || {};OATH.VideoPlatform = OATH.VideoPlatform || {};OATH.VideoPlatform.PlayerHosting = {"app":"omega","bucket":null,"colo":"bf1","dbColo":"us-east-2","env":"prod","ver":"8.5.54","config":null,"expiry":600,"req":{"ypv":null,"path":"/p/oath/js/1/huffingtonpost.com.au","usm":{"bucket":null,"config":null}},"type":"oath-player-desktop.js","g":[],"gv":2,"lang":"en-us"};

/*! For license information please see oath-player-desktop.js.LICENSE.txt */
(function(){var __webpack_modules__={78364:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(){this.uploadType="individual",this.expCount=0,this.pending={},this.complete=0}return t.runExperiment=function(){(new t)._()},t.sendBeacon=function(){this.runExperiment()},t.prototype.O=function(t){var i="";return i="[",["startTime","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd"].forEach((function(n){i+=t[n]+","})),i=i.slice(0,-1)+"]"},t.prototype.S=function(t,i){if(0==i.length)return"{}";var n="{";return i.forEach((function(i){n+='"'+i+'":"'+t.getResponseHeader(i)+'",'})),n=n.slice(0,-1)+"}"},t.prototype._=function(){var t=this,i=!1;new Promise((function(t,n){var e=setTimeout((function(){i=!0,n(new Error("Work Order Request Timed Out"))}),2e3);fetch("https://edge-mcdn.secure.yahoo.com/dms/exp.json").then((function(n){clearTimeout(e),i||t(n)})).catch((function(t){i||n(t)}))})).then((function(t){return t.json()})).then((function(i){t.A(i)})).catch((function(t){}))},t.prototype.A=function(t){var i=t.expCount,n=t.selection;this.uploadType=t.uploadType;var e=[],r=[];if(0!==i){if(i>=t.expList.length)r=t.expList;else if("random"===n)for(var s=0;s<i;s++){(o=Math.floor(Math.random()*(t.expList.length+1)))===t.expList.length&&(o-=1),r.push(t.expList[o])}else if("ordered"===n){(o=Math.floor(Math.random()*(t.expList.length+1)))===t.expList.length&&(o-=1);for(s=0;s<i;s++)o+s>=t.expList.length&&(o=-1*s),r.push(t.expList[o+s])}else if("individual"===n)for(var o=100*Math.random(),u=0,a=t.expList;u<a.length;u++){var c=a[u];t.runProb<o&&r.push(c)}for(var h=0,f=r;h<f.length;h++)for(c=f[h],s=0;s<c.trials;s++){o=Math.ceil(99999999999999*Math.random()).toString(36);var l=c.target.replace("<RAND>",o),v=new RegExp(c.beaconRegex,"gi").exec(l),d=[],p=[];c.requestHeaders&&(d=c.requestHeaders),c.parseHeaders&&(p=c.parseHeaders),null!==v&&null!==v[1]?e.push([l,v[1],c.timeout,d,p,c.name,c.uploadEndpoints]):e.push([l,c.name,c.timeout,d,p,c.name,c.uploadEndpoints]),this.expCount++}this.T(e)}},t.prototype.T=function(t){for(var i=this,n=function(){this.startTime=0,this.endTime=0,this.source="default"},e=function(t,e,r,s,o,u,a){if(o.length>0||s.length>0){var c,h=new n,f=!1;new Promise((function(i,n){var e=setTimeout((function(){f=!0,n(new Error("Header Request Timed Out"))}),r);(c=new XMLHttpRequest).open("GET",t,!0),c.onload=function(){clearTimeout(e),f||i()},c.onerror=function(){clearTimeout(e),f||i()},s.forEach((function(t){var i=t.split(":");2==i.length&&c.setRequestHeader(i[0],i[1])})),h.startTime=Date.now(),c.send()})).then((function(){if("performance"in window&&"getEntriesByType"in window.performance){h.endTime=Date.now(),h.source="ajax";var n=window.performance.getEntriesByName(t);i.expCount=n.length>1?i.expCount+n.length-1:i.expCount;for(var r=0,s=n;r<s.length;r++){var f=s[r];i.M("0",e,f,i.S(c,o),u,a,h)}}else i.M("6",e,null,i.S(c,o),u,a,h)})).catch((function(t){f?i.M("5",e,null,"",u,a,h):i.M("4",e,null,"",u,a,h)}))}else{var l=!1,v=new n;new Promise((function(i,n){var e=setTimeout((function(){l=!0,n(new Error("Experiment Timed Out"))}),r),s=new Image;s.onload=function(){clearTimeout(e),l||i()},s.onerror=function(){clearTimeout(e),l||i()},v.startTime=Date.now(),s.src=t})).then((function(){if("performance"in window&&"getEntriesByType"in window.performance){v.endTime=Date.now(),v.source="image";var n=window.performance.getEntriesByName(t);i.expCount=n.length>1?i.expCount+n.length-1:i.expCount;for(var r=0,s=n;r<s.length;r++){var o=s[r];i.M("0",e,o,"",u,a,v)}}else i.M("3",e,null,"",u,a,v)})).catch((function(t){l?i.M("2",e,null,"",u,a,v):i.M("1",e,null,"",u,a,v)}))}},r=0,s=t;r<s.length;r++){var o=s[r];e(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}},t.prototype.M=function(t,i,n,e,r,s,o){var u=this;if(0!==s.length){var a=function(t,i){var n=0;new Promise((function(n,e){var r=new Image;r.onload=function(){return n()},r.onerror=function(){return e()},r.src=t[0]+i})).catch((function(e){(n+=1)<t.length&&a(t[n],i)}))},c="{";null!=r&&(c+='"n":"'+r+'",'),c+=null===n?'"m":[],':'"m":'+this.O(n)+",",c+='"r":'+t+",",c+='"s":'+o.startTime+",",c+='"e":'+o.endTime+",",c+='"q":"'+o.source+'",',""!=e&&(c+='"h":'+e+","),c+='"b":"'+i+'"}';var h="",f=[];s.forEach((function(t){h+=t.replace("<BEACON>",i),f.push(t.replace("<BEACON>",i))})),"group"==this.uploadType?(h in this.pending||(this.pending[h]=[]),this.pending[h].push([c,f]),this.complete++,this.complete==this.expCount&&Object.keys(this.pending).forEach((function(t){var i,n="[";u.pending[t].forEach((function(t){n+=t[0]+",",i=t[1]})),n=n.slice(0,-1)+"]",a(i,btoa(n))}))):(c="["+c+"]",a(f,btoa(c)))}},t}();i.default=n},12073:function(t,i){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,i=0,n=arguments.length;i<n;i++)t+=arguments[i].length;var e=Array(t),r=0;for(i=0;i<n;i++)for(var s=arguments[i],o=0,u=s.length;o<u;o++,r++)e[r]=s[o];return e};Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function t(t){void 0===t&&(t="anonymous"),this.name=t,this.N={},this.I=0}return t.prototype.destroy=function(){this.N={}},t.prototype.addEventListener=function(t,i,n){return this.N?this.R(t,i,n):""},t.prototype.addEventListeners=function(t,i,n){var e=this,r={};return this.N&&t.length?(t.forEach((function(t){var s=i.bind(n,t);r[t]=e.R(t,s,n)})),r):r},t.prototype.on=function(t,i,n){return Array.isArray(t)?this.addEventListeners(t,i,n):this.addEventListener(t,i,n)},t.prototype.removeEventListener=function(t,i){this.N&&t in this.N&&Object.prototype.hasOwnProperty.call(this.N[t],i)&&delete this.N[t][i]},t.prototype.removeEventListeners=function(t){if(this.N&&t)for(var i=0,n=Object.keys(t);i<n.length;i++){var e=n[i],r=t[e];e in this.N&&Object.prototype.hasOwnProperty.call(this.N[e],r)&&(delete this.N[e][r],delete t[e])}},t.prototype.once=function(t,i,n){var e=this,r=this.addEventListener(t,(function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];i.apply(n,Array.prototype.slice.call(s,0)),e.removeEventListener(t,r)}),this);return r},t.prototype.publish=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.N){if(t in this.N){var e=this.N[t];e&&this.L(e,t,!1,i)}var r=this.N["*"];r&&this.L(r,t,!0,i)}},t.prototype.L=function(t,i,e,r){for(var s=0,o=Object.keys(t);s<o.length;s++){var u=t[o[s]];if(u)try{var a=u.listener;a&&(e?a.apply(u.subscriber,n([i],r)):a.apply(u.subscriber,r))}catch(t){}}},t.prototype.R=function(t,i,n){this.N[t]||(this.N[t]={});var e=t+"_"+ ++this.I;return this.N[t][e]={subscriber:n,listener:i},e},t}();i.default=e},81409:function(t,i,n){t.exports=n(12073)},43661:function(t,i,n){"use strict";var e=n(6837);function r(t,i){var n=this;n.C=[],n.length=0,n.D=t||Uint8Array,i&&n.set(i)}t.exports=r,r.prototype.destroy=function(){this.C=[],this.length=0},r.prototype.set=function(t){var i=this;i.C.push(t),i.length=i.length+t.length},r.prototype.get=function(t){var i=this;if(e.isNullOrUndefined(t)||t<0||t>i.length)throw new Error("[DataManager] Array position out of bounds");for(var n=0,r=0,s=null,o=0;o<i.C.length;o++){var u=i.C[o];if(t<(n+=u.length)){s=u[t-r];break}r+=u.length}return s},r.prototype.subArray=function(t,i){var n=this;if((e.isNullOrUndefined(i)||i>n.length)&&(i=n.length),e.isNullOrUndefined(t)&&(t=0),t>=i)return new n.D(0);for(var r=i-t,s=new n.D(r),o=0,u=0,a=0,c=0;c<n.C.length;c++){var h=n.C[c];if(a+=h.length,o>0){if(i<=a){s.set(h.subarray(0,r-o),o);break}s.set(h.subarray(0),o),o+=h.length}else{if(t<a&&i<=a){s=h.subarray(t-u,i-u);break}if(t<a){var f=t-u;s.set(h.subarray(f)),o=h.length-f}}u+=h.length}return s}},42999:function(t){"use strict";function i(t){var i=this;i.name=t||"unnamed",i.N={},i.I=0}t.exports=i,i.prototype.addEventListener=function(t,i,n){var e=this;if(e.N){e.N[t]||(e.N[t]={});var r=t+"_"+ ++e.I;return e.N[t][r]={subscriber:n,cb:i},r}},i.prototype.removeEventListener=function(t,i){var n=this;n.N&&t in n.N&&n.N[t].hasOwnProperty(i)&&delete n.N[t][i]},i.prototype.removeEventListeners=function(t){var i=this;i.N&&t&&Object.keys(t).forEach((function(n){var e=t[n];n in i.N&&i.N[n].hasOwnProperty(e)&&(delete i.N[n][e],delete t[n])}))},i.prototype.publish=function(t){var i=this;if(i.N&&t in i.N){var n=i.N[t],e=arguments;Object.keys(n).forEach((function(t){var i=n[t];if(i)try{i.cb&&"function"==typeof i.cb&&i.cb.apply(i.subscriber,Array.prototype.slice.call(e,1))}catch(t){}}))}},i.prototype.destroy=function(){this.N=null}},42990:function(t){"use strict";var i=t.exports={};i.inherits=function(t,i){t.super_=i,t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},i.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},i.base64ToBuffer=function(t){return new Uint8Array(atob(t).split("").map((function(t){return t.charCodeAt(0)})))},i.arrayToUint8Array=function(t){for(var i=t.length,n=new Uint8Array(i),e=new DataView(n.buffer),r=0;r<i;r++)e.setUint8(r,t[r]);return n},i.isDrmItemContained=function(t,i){if(!t||!i||0===i.length)return!1;for(var n=0;n<i.length;n++)if(t.widevine.pssh===i[n].widevine.pssh)return!0;return!1},i.isAbsoluteUrl=function(t){return 0===t.indexOf("http")},i.isUplynk=function(t){return!(!t||!t.length)&&((t=t.toLowerCase()).indexOf("uplynk.com")>-1||t.indexOf("downlynk.com")>-1||t.indexOf("uplynk.localhost")>-1||t.indexOf("downlynk.localhost")>-1)},i.isYXS=function(t){return!(!t||!t.length)&&((t=t.toLowerCase()).indexOf("manifest.sapi.yahoo.com")>-1||t.indexOf("manifest-stage.sapi.yahoo.com")>-1)},i.isWithCreds=function(t){return t&&t.length&&(i.isUplynk(t)&&t.indexOf("expand=finance")>-1||i.isYXS(t))},i.getParentDir=function(t){return t.substring(0,t.lastIndexOf("/")+1)}},6837:function(t,i){i.isArray=function(t){return Array.isArray(t)},i.isBoolean=function(t){return"boolean"==typeof t},i.isNullOrUndefined=function(t){return null==t},i.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},i.isString=function(t){return"string"==typeof t},i.isObject=function(t){return"[object Object]"===(i=t,Object.prototype.toString.call(i));var i},i.isFunction=function(t){return"function"==typeof t},i.deepCopy=function(t){var n={};return i.isNullOrUndefined(t)?t:(Object.keys(t).forEach((function(e){i.isArray(t[e])?n[e]=t[e].slice():i.isObject(t[e])?n[e]=i.deepCopy(t[e]):n[e]=t[e]})),n)}},32576:function(t,i){"use strict";function n(){var t=this;try{t.U=t.getWindow()}catch(i){t.U=null}t.B=!1,t.U&&t.U.performance&&"function"==typeof t.U.performance.clearResourceTimings&&"function"==typeof t.U.performance.getEntriesByName&&(t.B=!0,t.U.performance.onresourcetimingbufferfull=t.V.bind(t))}t.exports=n,i.entryTypes=["mark","measure","navigation","frame","resource","server"],n.prototype.getWindow=function(){return window},n.prototype.V=function(){this.B&&this.U.performance.clearResourceTimings()},n.prototype.getPerformanceTiming=function(t,n,e){var r,s=this,o={};if(!t||!n&&!e)return null;if(e&&i.entryTypes.indexOf(e)<0)return null;if(!s.B)return null;if(!(r=n?s.U.performance.getEntriesByName(n,e||void 0):s.U.performance.getEntriesByType(e))||!r.length)return null;var u=r[r.length-1];return t.forEach((function(t){o[t]=u[t]})),o},n.prototype.destroy=function(){var t=this;t.B&&t.U&&(t.U.performance.onresourcetimingbufferfull=null),t.U=null,t.B=!1}},10729:function(t){"use strict";function i(){var t=this;t.LOCALSTORAGE_PREFIX="com.yahoo.yep",t.G=t.H()}t.exports=i,i.prototype.H=function(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}},i.prototype.writeProperty=function(t,i){this.G&&(i=JSON.stringify(i),t=this.LOCALSTORAGE_PREFIX+"."+t,window.localStorage.setItem(t,i))},i.prototype.readProperty=function(t){if(!t||!t.length)return null;if(this.G){t=this.LOCALSTORAGE_PREFIX+"."+t;var i=JSON.parse(window.localStorage.getItem(t));return i||null}return null}},71598:function(t){"use strict";var i=t.exports={};i.getContainerFormat=function(t,i){var n=null;return t&&t.length?t.indexOf(".ts")>-1?n="ts":t.indexOf(".mp4")>-1||t.indexOf(".m4s")>-1?n="mp4":t.indexOf(".aac")>-1?n="aac":t.indexOf(".vtt")>-1&&(n="vtt"):i&&(i.indexOf("mp2t")>-1?n="ts":i.indexOf("mp4")>-1?n="mp4":i.indexOf("aac")>-1?n="aac":i.indexOf("vtt")>-1&&(n="vtt")),n},i.copySegmentInfo=function(t){var i={};i.discontinuity=t.discontinuity,i.sequenceNum=t.sequenceNum,i.startTime=t.startTime,i.programDateTime=t.programDateTime,i.brStartOffset=t.brStartOffset,i.brEndOffset=t.brEndOffset,i.containerFormat=t.containerFormat,i.levelIndex=t.levelIndex,i.url=t.url,i.duration=t.duration;var n=t.encryptionData;n&&(i.encryptionData={keyUri:n.keyUri,method:n.method,initVector:n.initVector});var e=t.initSegment;return e&&(i.initSegment={url:e.url},e.range&&(i.initSegment.range={start:e.range.start,end:e.range.end})),i},i.extractURL=function(t,i){var n=null;return"http://"===t.substr(0,7)||"https://"===t.substr(0,8)?t:(i.indexOf("?")>-1&&(i=i.substr(0,i.indexOf("?"))),"/"===t.substr(0,1)?i.substr(0,i.indexOf("//")+2)+(n=i.substr(i.indexOf("//")+2)).substr(0,n.indexOf("/"))+t:i.substr(0,i.lastIndexOf("/")+1)+t)}},62849:function(t,i,n){"use strict";var e=n(13576);i.apply=function(){r()};var r=function(){function t(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var n=window.document.createEvent("CustomEvent");return n.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),n}!e.ie&&window.CustomEvent||(t.prototype=window.Event.prototype,window.CustomEvent=t)}},30902:function(t,i,n){"use strict";t.exports=r;var e=n(42999);function r(t,i){var n=this;if(!t||isNaN(t))throw new Error("Invalid Argument: No delay");e.call(n,n.constructor.name),n.delay=Math.max(t,20),n.repeatCount=i>0?i:Number.POSITIVE_INFINITY,n.currentCount=0,n.running=!1,n.startTime=0,n.Y=null,n.X={},n.K={}}n(42990).inherits(r,e),r.prototype.destroy=function(){var t=this;t.reset(),t.X={},e.prototype.removeEventListeners.call(t,t.K),e.prototype.destroy.call(t)},r.prototype.addEventListener=function(t,i){if(!i)throw new Error("Invalid Argument: No context");var n=e.prototype.addEventListener.call(this,"timedOut",t,i);this.K.timedOut=n},r.prototype.removeEventListener=function(t,i){if(!i)throw new Error("Invalid Argument: No context");e.removeEventListeners(this.K)},r.prototype.start=function(){var t=this;t.Y||t.running||(t.Y=setInterval((function(){t.currentCount++,t.currentCount>=t.repeatCount&&t.stop(),t.publish("timedOut"),t.startTime=Date.now()}),t.delay),t.startTime=Date.now(),t.running=!0)},r.prototype.stop=function(){var t=this;t.Y&&t.running&&(clearInterval(t.Y),t.Y=null,t.running=!1,t.startTime=0)},r.prototype.reset=function(){var t=this;t.stop(),t.currentCount=0,t.startTime=0}},13576:function(t,i,n){"use strict";t.exports=n(39451).userAgent},21426:function(t,i,n){"use strict";t.exports=r;var e=n(94702);function r(){var t=this;t.J=[],t.J.push(new e.BandwidthRule),t.J.push(new e.BufferRule),t.J.push(new e.ResolutionRule)}r.prototype.destroy=function(){this.J=[]},r.prototype.getNextStreamIndex=function(t){if(!e.validateAbrInput(t))return-1;var i=Number.MAX_VALUE;return this.J.forEach((function(n){var e=n.getNextStreamIndex(t);e<0||(i=Math.min(i,e))})),i===Number.MAX_VALUE?-1:i}},94702:function(t,i){"use strict";function n(){this.PIXEL_THRESHOLD_FACTOR=.5}function e(){var t=this;t.BANDWIDTH_FACTOR_LOW=1.3,t.BANDWIDTH_FACTOR_HIGH=1.6,t.MIN_BW_FOR_LOW_FACTOR=25e5,t.MIN_BUFFER_TO_SWITCH_DOWN=10}function r(){var t=this;t.BANDWIDTH_FACTOR_LOW=1.3,t.BANDWIDTH_FACTOR_HIGH=1.6,t.MIN_BW_FOR_LOW_FACTOR=25e5,t.MIN_BUFFER_TO_SWITCH_UP=6,t.MIN_LENGTH_DATA=2,t.ALLOWED_LOAD_TIME=500}function s(){var t=this;t.MAX_WIDTH_240P=427,t.MAX_HEIGHT_240P=240,t.MAX_BITRATE_240P=9e5,t.MAX_BITRATE_LIMIT=2e7,t.PIXEL_RATIO_360=6}t.exports.StartupRule=n,t.exports.BandwidthRule=e,t.exports.BufferRule=r,t.exports.ResolutionRule=s,i.validateAbrInput=function(t){return!(!t||"object"!=typeof t||!t.bitrateList||!t.bitrateList.length||"number"!=typeof t.estimatedBandwidthInBps||isNaN(t.estimatedBandwidthInBps)||void 0===t.currentIndex||null===t.currentIndex||isNaN(t.currentIndex)||void 0===t.bufferLength||isNaN(t.bufferLength)||void 0===t.displayWidth||isNaN(t.displayWidth)||t.displayWidth<=0||void 0===t.displayHeight||isNaN(t.displayHeight)||t.displayHeight<=0||void 0===t.streams||t.streams.length<=0)},n.prototype.getNextStreamIndex=function(t){if(!i.validateAbrInput(t))return-1;for(var n,e=t.displayWidth*t.displayHeight*this.PIXEL_THRESHOLD_FACTOR,r=t.streams.length-1;r>=0;r--){var s=t.streams[r].width*t.streams[r].height;if(!n&&s<e&&(n=s),n&&s<n)return r+1}return 0},e.prototype.getNextStreamIndex=function(t){if(!i.validateAbrInput(t))return-1;for(var n=0,e=t.estimatedBandwidthInBps||0,r=this.tt(e),s=0;s<t.bitrateList.length&&!(e<r*t.bitrateList[s]);s++)n=s;return n<t.currentIndex&&t.bufferLength>this.MIN_BUFFER_TO_SWITCH_DOWN&&(n=t.currentIndex),n},e.prototype.tt=function(t){var i=this;return t>=i.MIN_BW_FOR_LOW_FACTOR?i.BANDWIDTH_FACTOR_LOW:i.BANDWIDTH_FACTOR_HIGH},r.prototype.getNextStreamIndex=function(t){var n=this;if(!i.validateAbrInput(t))return-1;var e=t.segmentLength?Math.min(t.segmentLength,n.MIN_BUFFER_TO_SWITCH_UP):n.MIN_BUFFER_TO_SWITCH_UP;return 0===t.bufferLength?n.nt(t):t.bufferLength<e?t.currentIndex:t.bitrateList.length-1},r.prototype.nt=function(t){for(var i=this,n=0,e=t.estimatedBandwidthInBps||t.bwHistory,r=i.tt(e),s=i.ALLOWED_LOAD_TIME/1e3,o=0;o<t.bitrateList.length&&!(r*t.bitrateList[o]*i.MIN_LENGTH_DATA/e>s);o++)n=o;return n},r.prototype.tt=function(t){var i=this;return t>=i.MIN_BW_FOR_LOW_FACTOR?i.BANDWIDTH_FACTOR_LOW:i.BANDWIDTH_FACTOR_HIGH},s.prototype.getNextStreamIndex=function(t){var n=this;if(!i.validateAbrInput(t))return-1;var e=t.pixelRatio||n.getPixelRatio(t),r=t.displayWidth,s=t.displayHeight;!isNaN(e)&&e>1&&(r*=e,s*=e);for(var o=0,u=0;u<t.streams.length&&!(t.streams[u].width>r||t.streams[u].height>s);u++)o=u;var a=t.streams[o].width,c=t.streams[o].height,h=r<=n.MAX_WIDTH_240P||s<=n.MAX_HEIGHT_240P?n.MAX_BITRATE_240P:n.MAX_BITRATE_LIMIT;if((o=n.st(t,a,c,h))<t.streams.length-1&&t.bitrateList[o+1]<h){var f=t.streams[o+1].width,l=t.streams[o+1].height,v=t.streams[o].height;Math.abs(l-s)<=Math.abs(v-s)&&(o=n.st(t,f,l,h))}return o},s.prototype.st=function(t,i,n,e){var r=0;return t.streams.forEach((function(s,o){var u=t.bitrateList[o];s&&s.width===i&&s.height===n&&u<=e&&o>r&&u>t.bitrateList[r]&&(r=o)})),r},s.prototype.getPixelRatio=function(t){var i=1;try{window&&(i=window.devicePixelRatio)}catch(t){i=1}return i||(i=1),t.is360&&(i*=this.PIXEL_RATIO_360),i}},63799:function(t){"use strict";function i(t){var i=this;i.COLLECTION_INTERVAL=100,i.MIN_SAMPLE_SIZE=5e4,i.SAMPLE_QUEUE_LENGTH=40,i.INSTANCE_SAMPLE_QUEUE_LENGTH=15,i.BW_ADJUSTMENT_FACTOR=.8,i.ot=[],i.ut=[],i.averageBandwidth=t||0,i.instantaneousBandwidth=t||0}t.exports=i,i.prototype.destroy=function(){var t=this;t.ot=[],t.ut=[],t.averageBandwidth=0,t.instantaneousTotalBandwidth=0},i.prototype.addSample=function(t){var i=this;if(t&&!(t.time<=0)){i.ht(t);var n=0,e=i.ot.length,r=e*(e+1)/2,s=1/r;i.ot.forEach((function(t,i){n+=(i+1)*s*t.bandwidth})),i.averageBandwidth=i.BW_ADJUSTMENT_FACTOR*n,n=0,e=i.ut.length,s=1/(r=e*(e+1)/2),i.ut.forEach((function(t,i){n+=(i+1)*s*t.bandwidth})),i.instantaneousBandwidth=i.BW_ADJUSTMENT_FACTOR*n}},i.prototype.ht=function(t){var i=this;!t||t.time<=0||(t.bandwidth=t.size/t.time*.008,t.bandwidth=Math.min(60,t.bandwidth),i.ot.push(t),i.ut.push(t),i.ot.length>i.SAMPLE_QUEUE_LENGTH&&i.ot.shift(),i.ut.length>i.INSTANCE_SAMPLE_QUEUE_LENGTH&&i.ut.shift())},i.prototype.replaceSamples=function(t,i){var n=this,e=t&&i?t/i*.008:0;if(e>0){n.averageBandwidth=e,n.ot=[];for(var r=Math.min(Math.ceil(i/n.COLLECTION_INTERVAL),n.SAMPLE_QUEUE_LENGTH),s=0;s<r;s++){var o={bandwidth:e};n.ot.push(o)}}}},7027:function(t,i,n){"use strict";t.exports={Command:n(62701),MediaLoadCommand:n(47745),StreamLoadCommand:n(95867),LicenseLoadCommand:n(58158),SegmentLoadCommand:n(28913),Mp4InitSegmentLoadCommand:n(58893),SubtitleSegmentLoadCommand:n(50558),ErrorHandleCommand:n(86219)}},21726:function(t,i,n){"use strict";var e=n(62701).CmdNames,r=n(7027);t.exports.create=function(t,i,n){for(var s in e){if(e.hasOwnProperty(s))if(e[s]===t)return new(0,r[t+"Command"])(i,n)}return null}},258:function(t,i,n){"use strict";t.exports=a;var e=n(62701),r=e.CmdEvents,s=e.CmdNames,o=n(21726),u=n(42990);function a(){var t=this;for(var i in t.ft={},t.K={},s)s.hasOwnProperty(i)&&(t.ft[s[i]]={})}a.prototype.destroy=function(){this.removeAllCommands(),this.ft=null},a.prototype.executeCommand=function(t,i,n){i&&(i.controller=this.__controller);var e=this.createCommand(t,i,n);return e&&e.execute(),e},a.prototype.createCommand=function(t,i,n){var e;try{e=o.create(t,i,n)}catch(t){e=null}if(!e)return null;for(var s in e.key=u.guid(),r)if(r.hasOwnProperty(s)){var a=r[s],c="on"+t+a;n[c]&&(this.K[a+t+e.key]=e.addEventListener(a,n[c],n))}return this.ft[t][e.key]=e,e},a.prototype.removeCommand=function(t){var i=this;if(t){var n=i.ft[t.name];if(n[t.key]===t){if(delete n[t.key],t.client)for(var e in r)if(r.hasOwnProperty(e)){var s=r[e],o="on"+t.name+s;t.client[o]&&(t.removeEventListener(s,i.K[s+t.name+t.key]),delete i.K[s+t.name+t.key])}t.destroy()}}},a.prototype.removeRelatedCommands=function(t){var i=this;if(i.ft.hasOwnProperty(t)){var n=i.ft[t];for(var e in n)if(n.hasOwnProperty(e)){var r=n[e];r&&i.removeCommand(r)}}},a.prototype.removeAllCommands=function(){var t=this;for(var i in t.ft)t.ft.hasOwnProperty(i)&&t.removeRelatedCommands(i)},a.prototype.getCommand=function(t){var i=this.ft[t];if(!i)return null;var n=Object.keys(i);return n.length<1?null:i[n[n.length-1]]}},62701:function(t,i,n){"use strict";t.exports.Command=s;var e=n(42999),r=n(42990);function s(t,i){var n=this;n.data=t,n.client=i,e.call(n,n.constructor.name)}t.exports.CmdNames={CMD_MEDIA_LOAD:"MediaLoad",CMD_STREAM_LOAD:"StreamLoad",CMD_LICENSE_LOAD:"LicenseLoad",CMD_SEGMENT_LOAD:"SegmentLoad",CMD_MP4_INIT_SEGMENT_LOAD:"Mp4InitSegmentLoad",CMD_SUBTITLE_SEGMENT_LOAD:"SubtitleSegmentLoad",CMD_ERROR_HANDLE:"ErrorHandle"},t.exports.CmdEvents={CMD_COMPLETE:"Complete",CMD_PROGRESS:"Progress",CMD_ERROR:"Error"},r.inherits(s,e),s.prototype.destroy=function(){this.data=null,e.prototype.destroy.call(this)},s.prototype.execute=function(){},s.prototype.cancel=function(){}},86219:function(t,i,n){"use strict";t.exports=l;var e=n(42990),r=n(62701),s=r.Command,o=r.CmdNames,u=r.CmdEvents,a=n(30902),c=n(10574).AbrModes,h=n(6837),f=n(57572);function l(t,i){var n=this;if(!t||h.isNullOrUndefined(t.streamIndex)||!t.controller)throw new Error("Invalid argument: data argument of the command is not complete");s.call(n,t,i),n.name=o.CMD_ERROR_HANDLE,n.__controller=n.data.controller,n.vt=n.__controller.model,n.ERR_INTERVAL_AFTER_BUFFER_EMPTY=1e4,n.dt=new a(n.ERR_INTERVAL_AFTER_BUFFER_EMPTY,1),n.dt.addEventListener((function(){n.dt.destroy(),n.bt()}),n),n.yt(t.streamIndex),n.gt=-1}e.inherits(l,s),l.prototype.destroy=function(){var t=this;t.dt&&t.dt.destroy(),s.prototype.destroy.call(t)},l.prototype.execute=function(t){var i=this;if(!i.dt.running||-1===i.gt||t===i.gt)if(i.data.error&&i.data.error.code===f.ERR_XHR_LOAD_FORBIDDEN[0])i.bt();else{if(i.vt.getABRMode()===c.AUTO){if(i.wt.length){var n=i.wt.shift();return i.publish(u.CMD_PROGRESS,i,{index:n}),void(i.gt=n)}if(0!==i.vt.currentLoadingStreamIndex)return i.publish(u.CMD_PROGRESS,i,{index:0}),void(i.gt=0)}i.vt.bufferLength>.15||i.dt.start()}},l.prototype.cancel=function(){},l.prototype.yt=function(t){var i=this;if(i.wt=[],!(t<0||t>=i.vt.streams.length)){var n,e=t;for(n=e-1;n>=0;n--)i.wt.push(n);for(n=e+1;n<i.vt.streams.length;n++)i.wt.push(n)}},l.prototype.bt=function(){this.publish(u.CMD_ERROR,this)}},58158:function(t,i,n){"use strict";t.exports=c;var e=n(42990),r=n(94939).Events,s=n(62701),o=s.Command,u=s.CmdNames,a=s.CmdEvents;function c(t,i){var n=this;if(!t||!t.controller)throw new Error("Invalid argument: data argument of the command is not complete");o.call(n,t,i),n._t=1,n.Et=[403],n.name=u.CMD_LICENSE_LOAD,n.Ot=t.controller.services.getNewLoader(n.St())}e.inherits(c,o),c.prototype.destroy=function(){this.Ot.destroy(),o.prototype.destroy.call(this)},c.prototype.execute=function(){var t=this,i=t.data.url;t.Ot.addEventListener(r.COMPLETE,(function(i){t.publish(a.CMD_COMPLETE,t,i)}),t),t.Ot.addEventListener(r.ERROR,(function(i){t.publish(a.CMD_ERROR,t,i)}),t),t.Ot.load(i,t.data.challenge)},c.prototype.cancel=function(){},c.prototype.St=function(){var t=this;return{method:"POST",responseType:"arraybuffer",headerFields:t.data.headerFields,url:t.data.url,maxRetries:t._t,retryExclusion:t.Et}}},47745:function(t,i,n){"use strict";t.exports=c;var e=n(42990),r=n(94939).Events,s=n(62701),o=s.Command,u=s.CmdNames,a=s.CmdEvents;function c(t,i){var n=this;if(!t||!t.url||!t.controller)throw new Error("Invalid argument: data argument of the command is not complete");o.call(n,t,i),n.name=u.CMD_MEDIA_LOAD,n.Ot=t.controller.services.getNewLoader(t)}e.inherits(c,o),c.prototype.destroy=function(){this.Ot.destroy(),o.prototype.destroy.call(this)},c.prototype.execute=function(){var t=this,i=t.data.url;t.Ot.addEventListener(r.COMPLETE,(function(i){t.publish(a.CMD_COMPLETE,t,i)}),t),t.Ot.addEventListener(r.ERROR,(function(i){t.publish(a.CMD_ERROR,t,i)}),t),t.Ot.load(i)},c.prototype.cancel=function(){}},58893:function(t,i,n){"use strict";t.exports=a;var e=n(42990),r=n(62701),s=r.CmdNames,o=r.CmdEvents,u=n(28913);function a(t,i){var n=this;n.At=t.stream,n.Tt=[],n.Mt=t.initSegment,n.jt=t.cached,n.Nt=n.constructor.super_.prototype,n.constructor.super_.call(n,t,i),n.It=t.initSegment.url,n.name=s.CMD_MP4_INIT_SEGMENT_LOAD}e.inherits(a,u),a.prototype.destroy=function(){var t=this;t.Tt=[],t.Nt.destroy.call(t)},a.prototype.kt=function(t){if(!(t&&t.controller&&t.stream&&t.initSegment&&t.initSegment.url))throw new Error("Invalid argument: data argument of the command is not complete")},a.prototype.St=function(){var t=this,i={responseType:"arraybuffer",isChunkedLoad:!0,minChunkSize:1e3,headerFields:{}};t.Tt.push(t.Mt);var n=-1,e=-1;if(t.Tt.length){var r=t.Tt[0].range,s=t.Tt[t.Tt.length-1].range;r&&s&&(n=r.start,e=s.end)}return n>=0&&e>=0&&(i.headerFields.Range="bytes="+n+"-"+e,t.Rt=e-n+1),i},a.prototype.Lt=function(){},a.prototype.Ct=function(){var t=this;t.jt&&t.Mt.loaded?t.Dt():t.Nt.Ct.call(t)},a.prototype.Pt=function(t,i){var n=this;if(t){i!==n.xt&&n.Ut(i);var e=n.Tt[0];e&&!e.loaded&&e.append(t),n.publish(o.CMD_PROGRESS,n,{chunk:e,stream:n.At,comboLoad:!1})}},a.prototype.Dt=function(){var t=this,i=t.Tt[0];i&&(i.loaded=!0,t.publish(o.CMD_PROGRESS,t,{chunk:i,stream:t.At,comboLoad:!1}),t.publish(o.CMD_COMPLETE,t,{stream:t.At,comboLoad:!1})),t.Nt.Dt.call(t)},a.prototype.Ft=function(){return 0}},28913:function(t,i,n){"use strict";t.exports=d;var e=n(42990),r=n(94939).Events,s=n(54169),o=n(74641),u=n(32576),a=n(30902),c=n(47650).HLSEvent,h=n(62701),f=h.Command,l=h.CmdNames,v=h.CmdEvents;function d(t,i){var n=this;if(n.kt(t),f.call(n,t,i),n.name=l.CMD_SEGMENT_LOAD,n.Bt=t.segment,n.At=t.stream,n.__controller=n.data.controller,n.vt=n.__controller.model,n.It=n.Bt?n.Bt.url:t.url,n.zt=n.Bt?n.Bt.streamIndex:t.stream.index,n.Vt=n.Bt?n.Bt.encryptionData:null,t.nel&&e.isUplynk(n.It)){var r=n.It.indexOf("?")>=0?"&":"?";n.It=n.It+r+"nel=true"}n.Gt=!1,n.Ht=new u,n.xt=0,n.Yt=null;var s=t.controller.services;n.Et=[403],n.Ot=s.getNewLoader(n.St()),n.Vt&&n.Vt.keyUri&&(n.qt=s.getNewLoader(n.Wt())),n.Qt=n.__controller.services.bandwidthEstimator,n.Zt=new a(n.Qt.COLLECTION_INTERVAL),n.Zt.addEventListener(n.$t,n),n.Lt()}e.inherits(d,f),d.prototype.destroy=function(){var t=this;t.cancel(),t.Ot.destroy(),t.Zt.destroy(),t.Ht.destroy(),t.qt&&t.qt.destroy(),t.Xt&&t.Xt.destroy(),f.prototype.destroy.call(t)},d.prototype.kt=function(t){if(!(t&&t.segment&&t.stream&&t.controller))throw new Error("Invalid argument: data argument of the command is not complete")},d.prototype.Wt=function(){var t=this,i={responseType:"arraybuffer",isChunkedLoad:!1,headerFields:{},retryExclusion:t.Et};return t.vt.metadata.skt&&(i.headerFields.skt=t.vt.metadata.skt),i},d.prototype.St=function(){var t=this,i={responseType:"arraybuffer",isChunkedLoad:!0,headerFields:{},retryExclusion:t.Et},n=t.Bt?t.Bt.bitrate*t.Bt.duration/8:0;return t.Bt.brStartOffset>=0&&t.Bt.brEndOffset>=0&&(i.headerFields.Range="bytes="+t.Bt.brStartOffset+"-"+t.Bt.brEndOffset,n=t.Bt.brEndOffset-t.Bt.brStartOffset+1),i.minChunkSize=.025*n,0===t.Bt.streamIndex&&(i.timeout=1e4),i},d.prototype.Lt=function(){var t=this,i=t.Kt();i.containerFormat=t.Bt.containerFormat,i.encryptionData=t.Vt;var n=t.__controller.create(s,i);n&&(n.addEventListener(o.DATA_PROCESS_PROGRESS,t.Jt,t),n.addEventListener(o.DATA_PROCESS_COMPLETE,t.ti,t),n.addEventListener(o.DATA_PROCESS_ERROR,t.ii,t),t.Xt=n)},d.prototype.Kt=function(){var t=this;return{seqNum:t.Bt.seqNum,discontinuity:t.Bt.discontinuity,demux:t.vt.config.demux,width:t.At?t.At.width:640,height:t.At?t.At.height:360,timescale:t.At.timescale?t.At.timescale:t.vt.timescale,duration:t.vt.duration,segDuration:t.Bt.duration?t.Bt.duration:-1,pcr:t.vt.getPCR(),frameRate:t.At?t.At.frameRate:30,mp4State:t.data.state?t.data.state.mp4:null,startOffsetTimestamp:t.vt.startOffsetTimestamp,startTime:t.Bt.startTime,lastChunkEndTs:t.data.state?t.data.state.lastChunkEndTs:null,lastFrameDuration:t.data.state?t.data.state.lastFrameDuration:null,prevSegEndTimeStamps:t.vt.getPrevSegEndTimestamps(t.At,t.Bt),isAltAudioActive:!!t.data.state&&t.data.state.isAltAudioActive,live:t.vt.live,onlyMetadata:t.data.onlyMetadata,useEditBox:!0,userAgent:t.vt.userAgent,dash:t.vt.isDash(),type:t.At.type}},d.prototype.execute=function(){var t=this;t.xt=0,t.ni=!1,t.Gt=!0,t.ei=Date.now(),t.si=0,t.oi=0,t.Bt&&(t.Bt.totalDownloadTime=0,t.Bt.timeToFirstByte=0),t.ai=Date.now(),t.Zt.start(),t.Vt&&t.qt&&t.ci(),t.Ct()},d.prototype.cancel=function(){this.li(),this.Ot.reset()},d.prototype.li=function(){var t=this;t.Zt.reset(),t.Xt&&t.Xt.close(),t.Gt=!1},d.prototype.ci=function(){var t=this;if(t.Vt&&t.qt){var i=t.At.lastKey,n=t.Vt.keyUri;if(i&&i.keyUri&&i.key&&i.keyUri===n)t.di(i.key);else{t.qt.addEventListener(r.COMPLETE,(function(i){t.di(i)}),t),t.qt.addEventListener(r.ERROR,(function(i){t.publish(v.CMD_ERROR,t,i)}),t),t.qt.load(n)}}},d.prototype.Ct=function(){var t=this;if(t.Ot){var i=t.It;t.Ot.addEventListener(r.COMPLETE,(function(){t.Dt()}),t),t.Ot.addEventListener(r.PROGRESS,(function(i,n){t.Pt(i,n)}),t),t.Ot.addEventListener(r.ERROR,(function(i){t.publish(v.CMD_ERROR,t,i)}),t),t.Ot.addEventListener(r.BYTES_LOADED,(function(i,n){t.Ut(i,n)}),t),t.Ot.load(i)}},d.prototype.Ut=function(t,i){var n=this;n.Bt&&0===n.Bt.timeToFirstByte&&(n.Bt.timeToFirstByte=Date.now()-n.ai,n.__controller.sendEvent(c.SEGMENT_FIRST_BYTE_LOADED,i),n.publish(v.CMD_PROGRESS,n,{position:"firstByte"})),n.si+=Math.max(t-n.xt,0),n.xt=t},d.prototype.Pt=function(t,i){var n=this;i!==n.xt&&n.Ut(i),n.Xt&&n.Xt.append(t)},d.prototype.Dt=function(){var t=this;t.$t(),t.Zt.stop();var i=t.Ft();t.Xt&&t.Xt.endOfSegment(),i>0&&t.Qt.replaceSamples(t.xt,i)},d.prototype.di=function(t){var i=this;t.type="key",t.initVector=i.Vt.initVector,t.seqNum=i.Bt.seqNum,i.Bt.encryptionData.key=t,i.At.lastKey=i.Vt,i.Xt.append(t)},d.prototype.Jt=function(t){var i=this;t&&(i.Yt&&(t.perfInfo=i.Yt),t.bytesTotal=i.xt,i.publish(v.CMD_PROGRESS,i,t))},d.prototype.ti=function(t){this.publish(v.CMD_COMPLETE,this,t)},d.prototype.ii=function(){},d.prototype.$t=function(){var t=this,i=Math.max(t.si,0),n=Date.now();t.oi=n-t.ei,t.Zt.reset(),t.Qt&&t.oi>10&&(t.ei=n,t.Bt&&(t.Bt.totalDownloadTime+=t.oi),t.si=0,t.Qt.addSample({size:i,time:t.oi})),t.Zt.start()},d.prototype.Ft=function(){var t=this,i=t.Ht?t.Ht.getPerformanceTiming(["startTime","requestStart","responseStart","responseEnd","secureConnectionStart","fetchStart","connectStart","domainLookupStart"],t.It):null;return t.Yt=i,i&&i.responseEnd&&i.startTime?i.responseEnd-i.startTime:null}},95867:function(t,i,n){"use strict";t.exports=c;var e=n(42990),r=n(94939).Events,s=n(62701),o=s.Command,u=s.CmdNames,a=s.CmdEvents;function c(t,i){var n=this;if(!(t&&t.stream&&t.stream.url&&t.controller))throw new Error("Invalid argument: data argument of the command is not complete");o.call(n,t,i),n.name=u.CMD_STREAM_LOAD,n.Ot=t.controller.services.getNewLoader(t.retryOpts,t.stream.url)}e.inherits(c,o),c.prototype.destroy=function(){this.Ot.destroy(),o.prototype.destroy.call(this)},c.prototype.execute=function(){var t=this,i=t.data.stream.url;t.Ot.addEventListener(r.COMPLETE,(function(n){t.publish(a.CMD_COMPLETE,t,{data:n.data,headers:n.headers,streamUrl:i,stream:t.data.stream})}),t),t.Ot.addEventListener(r.ERROR,(function(i){t.publish(a.CMD_ERROR,t,i)}),t),t.Ot.load(i)},c.prototype.cancel=function(){}},50558:function(t,i,n){"use strict";t.exports=h;var e=n(42990),r=n(94939).Events,s=n(47650).HLSEvent,o=n(62701),u=o.Command,a=o.CmdNames,c=o.CmdEvents;function h(t,i){var n=this;if(!(t&&t.controller&&t.subtitleStream&&t.segment))throw new Error("Invalid Argument: data arg is incomplete");u.call(n,t,i),n.name=a.CMD_SUBTITLE_SEGMENT_LOAD,n.At=t.subtitleStream,n.__controller=t.controller,n.Bt=t.segment||null,n.K={},n.pi()}e.inherits(h,u),h.prototype.destroy=function(){var t=this;t.Ot.destroy(),t.__controller.removeEventListeners(t.K),u.prototype.destroy.call(t)},h.prototype.execute=function(){var t=this;t.Bt&&t.Ot&&t.Ot.load(t.Bt.url)},h.prototype.cancel=function(){},h.prototype.pi=function(){var t=this;t.Ot=t.__controller.services.getNewLoader();t.Ot.addEventListener(r.COMPLETE,(function(i){t.Dt(i)}),t),t.Ot.addEventListener(r.ERROR,(function(i){t.publish(c.CMD_ERROR,t,i)}),t)},h.prototype.Dt=function(t){var i=this;if(i.Bt){i.Bt.data=t.data;var n=i.Bt.pcr();null!=n?i.bi():i.__controller.addEventListener(s.PCR_AVAILABLE,i.bi,i)}},h.prototype.bi=function(){var t=this;t.Bt.parseSegment(),t.publish(c.CMD_COMPLETE,t,{data:t.Bt.toObject(),url:t.Bt.url})}},46244:function(t,i,n){"use strict";t.exports=s;var e=n(63878),r=n(57572);function s(){var t=this;t._node=t.mi.node,t.yi=t.mi.mediaSource,t.gi=null,t.wi=[],t._i=!1,t.vt=t.mi.appModel,t.Ei=t.vt.config.pastBufferLengthLimit}s.prototype.destroy=function(){this.Oi(),this.wi=[]},s.prototype.setSwitchManager=function(t){this.gi=t},s.prototype.process=function(){var t=this;t.Si()&&"open"===t.yi.readyState&&t.yi.endOfStream()},s.prototype.onError=function(){this._i=!0},s.prototype.onSeeking=function(t,i){t&&this.Oi(),i&&this.Ai()},s.prototype.Ti=function(t){for(var i=this,n=0;n<i.wi.length;n++)if(t===i.wi[n].type)return i.wi[n];return null},s.prototype.setMinimumBufferTime=function(t){this.wi.forEach((function(i){i.setMinBufferTime(t)}))},s.prototype.createSourceBuffer=function(t,i,n){var s=this;if(!s.yi||s._i||"open"!==s.yi.readyState)return null;var o=s.Ti(t);if(!o)if(s.mi.isMimetypeSupported(i)){try{o=s.mi.create(e,s.yi,t,i),s.wi.push(o)}catch(t){return null}var u=s.vt.config.minBufferTime,a=isNaN(n)?s.vt.live?u.live:u.vod:n;s.setMinimumBufferTime(a)}else{var c=new r.Error(r.ERR_MIMETYPE_NOT_SUPPORTED);s.mi.notifyError(c)}return o},s.prototype.Mi=function(){var t=this;if(t.yi&&!t._i)for(;t.wi.length>0;){t.wi.shift().destroy()}},s.prototype.Ai=function(){var t=this,i=[];t.yi&&!t._i&&"open"===t.yi.readyState&&(t.wi.forEach((function(t){i.push({type:t.type,mimeType:t.mimeType})})),t.Mi(),i.forEach((function(i){t.createSourceBuffer(i.type,i.mimeType,NaN)})))},s.prototype.Oi=function(){var t=this;t.yi&&!t._i&&t.wi.forEach((function(t){t.abort()}))},s.prototype.clear=function(t,i){var n=this;if(n.yi&&!n._i)if(t){if(!(t&&t.end-t.start<10)&&i){i.clearBuffer(t.start,t.end,(function(t){}))}}else n.wi.forEach((function(t){t.clearAll()}))},s.prototype.clearSrcBuffer=function(t,i){var n=this.Ti(t);if(n)if(i){n.clearBuffer(i.start,i.end,(function(t){}))}else n.clearAll()},s.prototype.appendBuffer=function(t,i){var n=this,e=n.createSourceBuffer(t.type,t.mimeType);e&&!n._i&&t.data&&t.data.length&&e.appendBuffer(t.data,t.startTime,t.endTime,t.onlyMetadata,(function(t,e){n.ji(t,e),i(t,e)}))},s.prototype.endOfStream=function(t){this.wi.forEach((function(i){i.setEndOfStream(t)}))},s.prototype.Si=function(){if(!this.wi.length)return!1;var t=!0;return this.wi.forEach((function(i){t=t&&"closed"===i.state})),t},s.prototype.getPendingBufferLength=function(){var t=0;return this.wi.forEach((function(i){var n=i.getTotalPendingBufferLength();t<n&&(t=n)})),t},s.prototype.getBufferedAndPending=function(){var t={};return this.wi.forEach((function(i){var n=i.getTotalPendingBufferLength(),e=i.getBufferLength();-1!==i.mimeType.indexOf("video")?t.video={buffered:e,pending:n,mimeType:i.mimeType}:t.audio={buffered:e,pending:n,mimeType:i.mimeType}})),t},s.prototype.resetReadyState=function(){this.wi.forEach((function(t){t.ready=!1}))},s.prototype.areSrcBuffersReady=function(){for(var t=0;t<this.wi.length;t++)if(!this.wi[t].ready)return!1;return!0},s.prototype.ji=function(t,i){var n=this;i&&(n.clear(n.Ni(i),i),n.clear(n.Ii(i),i))},s.prototype.Ni=function(t){var i=this,n=i._node.currentTime,e=null;try{e=t.buffer.buffered}catch(t){e=null}var r=0,s=0,o=i.vt.live?i.Ei.live:i.Ei.vod;return e&&e.length&&(r=e.start(0),s=Math.max(n-o,0)),{start:r,end:s}},s.prototype.Ii=function(t){var i=this,n=i._node.currentTime,e=null;try{e=t.buffer.buffered}catch(t){e=null}var r=i.vt.live?i.Ei.live:i.Ei.vod,s={start:0,end:0};return e&&e.length>1&&n+r<e.start(1)&&(s.start=e.start(1),s.end=e.end(1)),s}},84460:function(t,i,n){"use strict";t.exports=_;var e=n(35557),r=e.MessageIds,s=e.MessageTypes,o=n(42990),u=n(6837),a=n(30902),c=n(76769),h=n(22053),f=n(46244),l=n(47650).HLSEvent,v=n(99719),d=n(23789),p=n(10729),b=n(62350).SynchTypes,m=n(98630).W,y=n(74998).aU,g=n(74998).sS,w={SYNCH_BEGIN:"synchBegin",SYNCH_METADATA_READY:"synchMetadataReady",SYNCH_DONE:"synchDone"};function _(t){var i=this;i.ki="Controller",i.Ri=o.guid(),i._node=i.mi.node,i.yi=i.mi.mediaSource,i.vt=i.mi.appModel,i.mediaLoaded=!1,i.Li=!1,i.Ci=null,i.Di=t?t.sessionId:null,i.Pi=t?t.contentId:null,i.xi=new h(i._node,i.mi.mediaSource,i),i.Ui=i.mi.create(f),i.Fi=i.mi.create(v),i.Bi=new p,i.zi=new a(250),i.zi.addEventListener(i.Vi,i),i.vt.shouldSynchronizePlayers()&&(i.Gi=new y(i._node,i.Hi()),i.Yi()),i.qi=[];var n={userAgent:i.vt.userAgent,metadata:t,config:i.vt.config};if(n.config.bwHistory=i.Wi(),i.Qi=i.Zi(n),i.Qi){if(i.$i=i.Xi(i.ki),i.$i)return n.config.inWorkerScope=!0,i.$i.addEventListener("message",i.Ki.bind(i)),void i.Ji(r.CREATE,[n]);i.vt.config.useWorker=!1}i.tn=new c(n,i.nn.bind(i)),i.Qi=!1,i.rn=!1,i.sn=!1,i.un=null,i.Ci=null,i.an=w.SYNCH_DONE,i.cn=null,i.hn=!1}_.prototype.destroy=function(){var t=this;t.xi.destroy(),t.Ui.destroy(),t.Fi.destroy(),t.qi=[],t.fn&&t.fn.destroy(),t.zi&&(t.zi.destroy(),t.zi=null),t.Gi&&t.Gi.destroy(),t.Qi&&t.$i?(t.Ji(r.DESTROY),t.$i.terminate()):t.tn.destroy()},_.prototype.Yi=function(){var t=this;Object.values(g).forEach((function(i){t.Gi.on(i,(function(n){(n=n||{}).bufferLength=t.vt.getBufferLength();var e=i===g.SYNCH_STRATEGY_APPLIED;t.tn.setIgnoreBuffering(e),t.mi.sendEvent("stream"+i,n)}))}))},_.prototype.Zi=function(t){var i=t?t.userAgent:null,n=!t||!t.config||t.config.useWorker;if(!i)return n;if(i.chrome&&!i.win7)return!1;if(i.safariDesktop)return!1;var e=t?t.metadata:null;return!(e&&e.url&&e.url.indexOf(".mpd")>-1)&&(!(i.firefox&&e&&e.streams&&e.streams.length&&"m3u8:fmp4"===e.streams[0].format)&&((!this.ln(e)||!(i.safari||i.edge||i.ie))&&n))},_.prototype.ln=function(t){if(!t)return!1;var i=t.url,n=t.streams&&t.streams.length?this.vn(t.streams[0]):null;return o.isUplynk(i||n)},_.prototype.vn=function(t){if(!t)return null;var i=t.url;return!i&&t.host&&t.path&&(i=t.host+t.path),i},_.prototype.sendVideoEvent=function(t){var i=this;if(t)switch(t.type){case"play":i.dn();break;case"playing":i.pn();break;case"pause":i.mn();break;case"seeking":i.yn(t);break;case"seeked":i.gn(t);break;case"ended":i.wn();break;case"error":i._n();break;case"timeupdate":i.En(t);break;case"resize":i.On(t)}},_.prototype.onMediaSourceOpen=function(){var t=this;t.mediaLoaded&&(t.zi.reset(),t.zi.start(),t.qi.length&&t.Sn())},_.prototype.play=function(t){var i=this;if(!i.yi||"closed"!==i.yi.readyState&&i.mediaLoaded){var n=i.vt.live?i._node.currentTime:i.vt.duration,e=t>0&&t<=n?t:null;e&&i.An(e,b.INIT),i.Tn()}else i.qi.push([i,i.play,[t]])},_.prototype.pause=function(){var t=this;!t.yi||"closed"!==t.yi.readyState&&t.mediaLoaded?t._node.pause():t.qi.push([t,t.pause])},_.prototype.preload=function(t){var i=this;!i.yi||"closed"!==i.yi.readyState&&i.mediaLoaded?i.Mn("preload",[t]):i.qi.push([i,i.preload,[t]])},_.prototype.setABRMode=function(t){this.Mn("setABRMode",[t])},_.prototype.setSeedStreamIndex=function(t){this.Mn("setSeedStreamIndex",[t])},_.prototype.setPlaybackRate=function(t){var i=this;!i.yi||"closed"!==i.yi.readyState&&i.mediaLoaded?i._node.playbackRate=t:i.qi.push([i,i.setPlaybackRate,[t]])},_.prototype.setAudioLanguage=function(t){this.Mn("setAudioLanguage",[t])},_.prototype.suspendStreaming=function(){this.Mn("suspendStreaming")},_.prototype.resumeStreaming=function(){this.Mn("resumeStreaming")},_.prototype.getSegInfo=function(t){var i=this,n={mode:"sync",segInfo:null,bufferLen:null,sessionId:i.Di};return i.Qi&&i.$i?(n.mode="async",i.Ji(r.CALL_METHOD,null,"getSegInfo")):n.segInfo=i.tn.getSegInfo(t),n.bufferLen=i.vt.getBufferLength(),n},_.prototype.getSyncOffset=function(){return this.Gi?this.Gi.getSyncOffset():NaN},_.prototype.startSync=function(){this.Gi&&this.Gi.startSync()},_.prototype.stopSync=function(){this.Gi&&this.Gi.stopSync()},_.prototype.getSyncState=function(){return this.Gi?this.Gi.getSyncState():-1},_.prototype.dn=function(){var t=this;if(t.vt.setDimensions(),!t.yi||"closed"!==t.yi.readyState&&t.mediaLoaded){var i=t.Ci;t.un&&(i=t.un,t.un=null),t.rn=!1,t.Mn("onPlay",[i]),t.Fi.onPlay()}else t.qi.push([t,t.dn])},_.prototype.pn=function(){this.Mn("onPlaying"),this.Fi.onPlaying()},_.prototype.mn=function(){var t=this;t.rn=!0,t.Mn("onPause"),t.Fi.onPause()},_.prototype.yn=function(t){var i=this,n=t.target.currentTime,e=!i.vt.live,r=!1,s=i.vt.userAgent;s&&s.safariDesktop&&(r=!i.vt.live||i.hn),i.Ui.onSeeking(e,r),i.hn=!1,i.Mn("onSeeking",[n])},_.prototype.gn=function(t){var i=t.target.currentTime;this.Mn("onSeeked",[i])},_.prototype.wn=function(){this.zi.stop(),this.Mn("onComplete")},_.prototype._n=function(){var t=this,i=t._node.error?t._node.error.code:null;t.Mn("onError",[i]),t.Ui.onError()},_.prototype.On=function(){this.vt.setDimensions()},_.prototype.En=function(){this.jn("onTimeUpdate")},_.prototype.Vi=function(){this.mediaLoaded&&this.jn("onUpdate")},_.prototype.jn=function(t){var i=this;i.Ui.process();var n={currentTime:i._node.currentTime,bufferedAndPending:i.Ui.getBufferedAndPending(),bufferLength:i.vt.getBufferLength(),pendingBufferLength:i.Ui.getPendingBufferLength(),bufferedRanges:i.vt.getBufferedDto(),dimensions:i.vt.getDimensions(),pixelRatio:i.vt.getPixelRatio(),frameStats:i.Fi.getFpsStats()};i.Mn(t,[n])},_.prototype.Nn=function(){var t=this;t.mediaLoaded=!0,t.yi&&"closed"===t.yi.readyState||(t.zi.start(),t.qi.length&&t.Sn())},_.prototype.An=function(t,i){var n=this;n.Ci=t,n.an=w.SYNCH_BEGIN,n.cn=i,n.vt.live&&(n.Ui.resetReadyState(),n.Ui.clear())},_.prototype.In=function(t){var i=this;i.Ci=null,i.an=w.SYNCH_DONE,i.cn=null,i.vt.live&&i.Mn("onSynchComplete",[t])},_.prototype.Sn=function(){var t=this.qi;this.qi=[],t.forEach((function(t){var i=t[0],n=t[1],e=t.length>2?t[2]:null;n&&"function"==typeof n&&n.apply(i,e)}))},_.prototype.Mn=function(t,i){var n=this;n.Qi&&n.$i?n.Ji(r.CALL_METHOD,i,t):n.tn[t].apply(n.tn,i)},_.prototype.Xi=function(){return null},_.prototype.Ki=function(t){var i=this;if(t){var n=t.data?new d(t.data):t;if(n&&n.instanceId===i.Ri){var e=n.getParam("media");if(e&&(i.vt.update(e),i.Gi&&i.Rn(e)),n.type!==s.EVENT)switch(n.id){case r.CREATE_SRC_BUFFER:i.Ln(n.getParam("tracks"));break;case r.APPEND_SRC_BUFFER:i.Cn(n.getParam("tracks"));break;case r.SAVE_AVG_BANDWIDTH:i.Dn(n.getParam("avgBwInfo"));break;case r.END_OF_STREAM:n.args&&n.args.length&&(i.Ui.endOfStream(n.getParam("endOfStream")),i.mi.sendEvent(l.CONTENT_LOAD_FINISHED,n.args[0]));break;case r.PAUSE_BEFORE_STREAM_CHANGE:i.Pn(n.getParam("streamType"));break;case r.PLAY_AFTER_STREAM_CHANGE:i.xn();break;case r.DRM_INIT:i.fn||(i.fn=new m(i.tn,i._node,i.mi));for(var o=0;o<i.vt.drmInfo.length;o++)i.fn.addDrmItem(i.vt.drmInfo[o]);break;case r.DRM_LICENSE_INFO:i.fn&&i.fn.addDrmItem(n.getParam("drmItem"));break;case r.SKIP_GAP:i._node.currentTime=n.getParam("seekPosition")}else i.Un(n.id,n.getParam("eventData"))}}},_.prototype.nn=function(t){t.instanceId=this.Ri,this.Ki(t)},_.prototype.Rn=function(t){var i=this;if(i.Gi){var n=t.streams&&t.streams[t.currentLoadingStreamIndex],e=t.currentLoadingSeqNum;if(n&&!u.isNullOrUndefined(e))n.segments.forEach((function(t){t.seqNum===e&&i.Gi.addSegmentInfo({startTime:t.startTime,endTime:t.startTime+t.duration,pdt:t.programDateTime,seqNum:e})})),i.Gi.updateDateRanges(n.dateRanges)}},_.prototype.Un=function(t,i){var n=this;if(t){switch(t){case l.MEDIA_LOADED:n.Nn();break;case l.WAITING:var e=i?i.minBufferTime:0;n.Ui.setMinimumBufferTime(e),n.Fi.updateBufferingInfo(i);break;case l.LIVE_SYNCH:var r=i?i.synchPosition:null,s=i?i.synchType:b.INIT;n.An(r,s);break;case l.SEG_INFO_METRICS_AVAILABLE:i={segInfo:i,bufferLen:n.vt.getBufferLength(),sessionId:n.Di};break;case l.VTT_SEGMENT_LOADED:i&&(i.sessionId=n.Di);break;case l.MEDIA_METADATA_LOADED:i=n.vt.streams;break;case l.ERROR:return i.error=new Error(i.message,i.code),void n.mi.notifyError(i)}n.mi.sendEvent(t,i)}},_.prototype.Ln=function(t){var i=this;t&&(!i.yi||"closed"!==i.yi.readyState&&i.mediaLoaded?(i.Fn(),t.forEach((function(t){i.Ui.createSourceBuffer(t.type,t.mimeType,t.minBufferTime)}))):i.qi.push([i,i.Ln,[t]]))},_.prototype.Fn=function(){var t=this;t.yi&&!t.yi.duration&&t.vt.duration>0&&(t.yi.duration=t.vt.duration)},_.prototype.Cn=function(t){var i=this;t&&(t.forEach((function(t){i.Ui.appendBuffer(t,(function(t,n){i.ji(t,n)}))})),i.vt.preloading&&!i.Li&&(i.mi.sendEvent(l.PRELOAD_PROGRESS),i.Li=!0))},_.prototype.ji=function(){var t=this;if(!t.vt.live&&t.an===w.SYNCH_BEGIN){if(!t.Ui.areSrcBuffersReady())return;return t.Ui.onSeeking(!0),t.an=w.SYNCH_METADATA_READY,void t.Mn("onSynchMetadataReady",[t.Ci])}if(t.Ci&&t.Ui.areSrcBuffersReady()){var i=t.Bn(t._node),n=t._node.buffered;if(i.length&&n.length){var e=i.start(i.length-1),r=i.end(i.length-1),s=t.vt.TIMESTAMP_COMPARE_EPSILON;if(t.Ci+s>=e&&t.Ci<=r){for(var o=t.Ci,u=0;u<n.length;u++)if(!(o>n.end(u))&&o<n.start(u)){o=n.start(u);break}var a=t.vt.userAgent;t.hn=a&&a.safariDesktop&&t.vt.live&&t.cn===b.TIME_GAP;try{t._node.currentTime=o}catch(t){}t.In(o)}}}},_.prototype.Ji=function(t,i,n){var e=this;if(e.$i&&t){var r={type:s.MESSAGE,id:t,moduleName:e.ki,instanceId:e.Ri,funcName:n,args:i,timestamp:Date.now()};e.$i.postMessage(r)}},_.prototype.Wi=function(){var t=this.Bi.readProperty("avgBW"),i=t?t.avgBWtimestamp:null;if((i?Date.now()-parseInt(i):Number.MAX_VALUE)<1e3*this.vt.config.bwHistoryMaxAge&&t){var n=t.avgBW;return n?parseInt(n):0}return 0},_.prototype.Dn=function(t){t&&this.Bi&&this.Bi.writeProperty("avgBW",t)},_.prototype.xn=function(){var t=this;t.sn&&(t.Tn(),t.sn=!1,t.mi.sendEvent(l.WAITING,{value:!1,bufferInit:!1}))},_.prototype.Pn=function(t){var i=this,n=i._node.currentTime,e=i.vt.live;e&&"audio"===t?i.Ui.clearSrcBuffer(t):i.Ui.clear(),i.rn||(i.mi.sendEvent(l.WAITING,{value:!0,bufferInit:!1}),i._node.pause(),i.sn=!0),e?i.un=n:i._node.currentTime=n},_.prototype.Tn=function(){var t=this;if(t._node){var i=t._node.play();return i&&"function"==typeof i.catch&&i.catch((function(){t._node.paused&&t.mi.sendEvent(l.PLAY_BLOCKED)})),i}},_.prototype.getCurrentDate=function(){return this.vt.getCurrentDate()},_.prototype.Bn=function(t){var i=this.vt.userAgent;return this.vt.live&&i.edge&&i.edge>=17&&i.edge<18?t.buffered:t.seekable},_.prototype.Hi=function(){var t=this.vt.config.streamSync,i={};if(!(t&&t.enabled))return null;void 0!==t.pauseOnAhead&&(i.pauseOnAhead=t.pauseOnAhead),void 0!==t.syncPoint&&(i.syncPoint=t.syncPoint),void 0!==t.syncThreshold&&(i.syncThreshold=t.syncThreshold),void 0!==t.variableRateChange&&(i.variableRateChange=t.variableRateChange)},_.prototype.clearBuffer=function(){this.Ui.clear()}},90867:function(t){"use strict";t.exports={ERROR:-1,INITIAL:0,MEDIA_METADATA_LOADING:1,MEDIA_METADATA_LOADED:2,STREAM_METADATA_LOADING:3,STREAM_METADATA_LOADED:4,MEDIA_LOADED:5,PRELOADING:6,PLAY_REQUESTED:7,PLAYING:8,PAUSED:9,PLAY_COMPLETE:10}},63878:function(t){"use strict";t.exports=e;var i="append",n="remove";function e(t,i,n){var e=this;e._node=e.mi.node,e.zn=!1,e.type=i,e.mimeType=n,e.yi=t,e.buffer=t.addSourceBuffer(n),e.Vn=[],e.Gn=[],e.Hn=[],e.Yn=!1,e.qn=0,e.ready=!1,e.TIMESTAMP_COMPARE_EPSILON=.065,e.GOP_LENGTH=2,e.Wn=e.Qn.bind(e),e.buffer.addEventListener("updateend",e.Wn),e.Zn=function(){e.abort()},e.buffer.addEventListener("error",e.Zn),e.state="open"}e.prototype.destroy=function(){var t=this;t.remove(),t.Vn=[],t.Gn=[],t.Hn=[],t.state="closed"},e.prototype.remove=function(){var t=this;t.zn||(t.zn=!0,t.abort(),t.buffer.removeEventListener("updateend",t.Wn),t.buffer.removeEventListener("error",t.Zn),"closed"!==t.yi.readyState&&t.yi.removeSourceBuffer(t.buffer))},e.prototype.setMinBufferTime=function(t){this.qn=Math.max(0,t)},e.prototype.appendBuffer=function(t,n,e,r,s){var o=this;if(!o.zn){var u={type:i,cb:s,buffer:t,startTime:n,endTime:e,time:e-n,onlyMetadata:r||!1};o.Vn.push(u),o.$n()}},e.prototype.clearBuffer=function(t,i,e){var r=this;if(r.zn||t>=i)return e("["+r.constructor.name+"] Invalid remove buffer call");var s={type:n,cb:e,startTime:t,endTime:Math.round(1e3*parseFloat(i))/1e3};r.Gn.push(s),r.$n()},e.prototype.abort=function(){var t=this;if("open"===t.yi.readyState&&!t.zn){t.Vn=[],t.Gn=[],t.Hn=[];try{t.buffer.abort()}catch(t){}}},e.prototype.clearAll=function(){var t=this;if("closed"!==t.yi.readyState&&!t.zn){t.abort();try{var i=t.buffer.buffered,n=i.length?i.start(0):0,e=i.length?i.end(i.length-1):0;e>n&&t.buffer.remove(n,e)}catch(t){}}},e.prototype.setEndOfStream=function(t){var i=this;i.Yn=t,i.zn||(t?(i.Xn(),i.$n()):i.state=i.Vn.length?i.state:"empty")},e.prototype.Xn=function(){var t=this;t.Yn&&"empty"===t.state&&!t.Hn.length&&(t.state="closed")},e.prototype.Qn=function(){var t=this;if(!t.zn){if(t.ready=!0,t.Hn.length)t.Hn.shift().cb(null,t);t.Vn.length||(t.state="empty"),t.$n(),t.Xn()}},e.prototype.$n=function(){for(var t=this;t.Gn.length;){if(t.buffer.updating)return;t.Kn(t.Gn.shift())}for(;t.Vn.length;){if(t.buffer.updating)return;var i=t.getBufferLength()+t.getTotalPendingBufferLength(),n=t.Vn.length&&t.Vn[0]&&t.Vn[0].onlyMetadata;if(!t.Yn&&i<t.qn&&!n)return;t.Kn(t.Vn.shift())}},e.prototype.Kn=function(t){var e=this;if(t&&t.type)try{t.type===i?e.buffer.appendBuffer(t.buffer):t.type===n&&e.buffer.remove(t.startTime,t.endTime),e.Hn.push(t),e.state="updating"}catch(n){if("QuotaExceededError"===n.name)e.Jn()&&t.type===i&&e.Vn.unshift(t)}},e.prototype.Jn=function(){var t=this,i=t._node.buffered,n=i.length>0?i.start(0):NaN,e=t._node.currentTime-t.GOP_LENGTH;return e>n&&(t.buffer.remove(n,e),!0)},e.prototype.getTotalPendingBufferLength=function(){var t=0;return this.Vn.forEach((function(i){i&&i.time&&(t+=i.time)})),t},e.prototype.getBufferLength=function(){var t,i=this,n=i.mi.node,e=i.TIMESTAMP_COMPARE_EPSILON,r=0,s=n.currentTime,o=null;try{o=i.buffer.buffered;for(var u=0;o&&u<o.length;u++)if(s+e>=o.start(u)&&s<o.end(u)){t=u;break}t>=0&&o&&o.length&&(r=o.end(t)-s)}catch(t){}return r}},22053:function(t){"use strict";function i(t,i,n){var e=this;t&&i&&n&&(e._node=t,e.ne=n,e.yi=i,e.ee())}t.exports=i,i.prototype.destroy=function(){this.re()},i.prototype.ee=function(){var t=this;t.xi=t.se.bind(t),t.oe=["play","playing","pause","seeking","seeked","ended","error","timeupdate"],t.oe.forEach((function(i){t._node.addEventListener(i,t.xi)})),t.ue=t.ae.bind(t),t.yi.addEventListener("sourceopen",t.ue),window.addEventListener("resize",t.xi)},i.prototype.re=function(){var t=this;t.oe.forEach((function(i){t._node.removeEventListener(i,t.xi)})),t.yi.removeEventListener("sourceopen",t.ue),window.removeEventListener("resize",t.xi)},i.prototype.se=function(t){this.ne.sendVideoEvent(t)},i.prototype.ae=function(t){this.ne.onMediaSourceOpen(t)}},84033:function(t,i,n){"use strict";t.exports.AacStreamer=a,t.exports.AacLiveStreamer=c;var e=n(42990),r=n(62350).Streamer,s=n(7980),o=n(35557),u=n(6837);function a(t,i){this.ce(t,i)}function c(t,i){this.ce(t,i)}e.inherits(a,r),e.inherits(c,s),c.prototype.ce=a.prototype.ce=function(t,i){var n=this;n.constructor.super_.call(n,t,i),n.Nt=n.constructor.super_.prototype,n.processOnlyMetadata=!1,n.lastAudioTimestamp=NaN,n.lastAudioFrameDuration=NaN,n.primary=!1,n.fe="mp4a.40.2",n.le="audio",n.ve(),n.vt.setCodec("audio","aac");var e=[{type:n.le,mimeType:n.le+'/mp4; codecs="'+n.fe+'"',minBufferTime:n.__controller.getMinimumBufferTime()}];n.__controller.sendMessage(o.MessageIds.CREATE_SRC_BUFFER,[e],["tracks"]),n.pe=n.STATES.INITIALIZED},c.prototype.destroy=a.prototype.destroy=function(){this.Nt.destroy.call(this)},c.prototype.onSeeking=a.prototype.onSeeking=function(t){var i=this;i.lastAudioTimestamp=NaN,i.Nt.onSeeking.call(i,t)},c.prototype.onSwitchBegin=a.prototype.onSwitchBegin=function(){var t=this;t.ve(),t.Nt.onSwitchBegin.call(t)},c.prototype.onManualStreamChange=a.prototype.onManualStreamChange=function(){var t=this;t.ve(),t.lastAudioTimestamp=NaN,t.Nt.onManualStreamChange.call(t)},c.prototype.be=a.prototype.be=function(){this.ve()},c.prototype.me=a.prototype.me=function(t){var i=this;if(!i.isActive())return null;var n=i.ye;return{segment:n.getSegmentfromSeqNum(t),stream:n,state:{mp4:i.ge,lastChunkEndTs:{audio:i.lastAudioTimestamp,video:NaN},lastFrameDuration:{audio:i.lastAudioFrameDuration,video:NaN}},onlyMetadata:i.processOnlyMetadata}},c.prototype.onSegmentLoadProgress=a.prototype.onSegmentLoadProgress=function(t,i,n){var e=this;if(i){var r=i.getParam?i.getParam("parsedInfo"):null;r&&(r.lastChunkEndTs&&u.isNumber(r.lastChunkEndTs.audio)&&(e.lastAudioTimestamp=r.lastChunkEndTs.audio),r.lastFrameDuration&&u.isNumber(r.lastFrameDuration.audio)&&(e.lastAudioFrameDuration=r.lastFrameDuration.audio)),e.Nt.onSegmentLoadProgress.call(e,t,i,n)}},c.prototype.ve=a.prototype.ve=function(){this.ge={video:{shouldInit:!0,seqNum:0},audio:{shouldInit:!0,seqNum:0}}},c.prototype.we=a.prototype.we=function(t,i){},c.prototype._e=function(t){var i=this;i.lastAudioTimestamp=NaN,i.isActive()&&i.Nt._e.call(i,t)}},20039:function(t,i,n){"use strict";t.exports=s;var e=n(47650).HLSEvent,r=n(35557);function s(){var t=this;t.vt=t.__controller.model,t.Ee=!1,t._i=!1,t.Oe=NaN,t.Se=NaN,t.Ae={},t.rn=!0,t.Te=-1,t.MIN_BUFFER_TO_PLAY=1,t.MIN_TIME_TO_BUFFER_CHECK=150,t.BUFFER_REPORT_THRESHOLD=20,t.MIN_BUFFER_TIME_UPPER_BOUND=5,t.WEIGHT=.5,t.CHROME_BUFFER_GAP_EPSILON=.15,t.je=!0,t.Ne=!1,t.Ie()}s.prototype.onPlayRequested=function(){this.ke()},s.prototype.destroy=function(){},s.prototype.checkBuffering=function(t){var i=this,n=i.vt.bufferLength,e=i.vt.currentTime,r=i.vt.duration;if(!(i.rn||isFinite(r)&&e+.05>r)){var s=i.Re();!t&&s<i.MIN_TIME_TO_BUFFER_CHECK||(!(n<=.02||i.Le===e&&n<i.MIN_BUFFER_TO_PLAY)||i.rn||i.vt.preloading||i.Ee?!isNaN(i.Oe)&&e>i.Oe+this.BUFFER_REPORT_THRESHOLD/1e3?i.Ce():!i.rn&&i.Le===e&&i.vt.getTotalBufferLength()>i.MIN_BUFFER_TO_PLAY&&i.De():i.ke(),i.Le=e,i.Pe=Date.now())}},s.prototype.onPlaying=function(){this.rn=!1},s.prototype.onPause=function(){var t=this;t.rn=!0,t.Ee&&(t.Ae.bufferInit=!0,t.Ce()),t.Pe=null},s.prototype.onSeeking=function(){this.Ne=!0},s.prototype.onSeeked=function(){this.Ne=!1},s.prototype.onTimeUpdate=function(){this.Ee&&this.checkBuffering(!0)},s.prototype.onVideoSync=function(t){this.Le=t},s.prototype.onError=function(){this.Ee&&this.Ce()},s.prototype.onComplete=function(){var t=this;t.Ee&&t.Ce(),t.Ie()},s.prototype.setIgnoreBuffering=function(t){this.je=t},s.prototype.De=function(){var t=this;if(!(t.vt.bufferedRanges.length<2)){var i=t.vt.TIMESTAMP_COMPARE_EPSILON,n=t.vt.currentTime;t.vt.userAgent&&t.vt.userAgent.chrome&&(n-=3);for(var s=t.vt.bufferedRanges.ranges,o=0;o<s.length-1;o++){var u=s[o],a=s[o+1],c=u.end-i-(t.vt.userAgent.chrome?t.CHROME_BUFFER_GAP_EPSILON:0),h=a.start;if(n>c&&n<h){if(a.start-u.end>t.vt.config.skipGapLimit&&!t.Ne){t.vt.currentTime!==t.Se&&(t.__controller.sendEvent(e.BUFFER_GAP_DETECTED,a.start-u.end),t.Se=t.vt.currentTime);continue}t.__controller.sendMessage(r.MessageIds.SKIP_GAP,[a.start],["seekPosition"]);break}}}},s.prototype.ke=function(){var t=this;if(!t.Ee){t.Ee=!0;var i=t.getMinimumBufferTime();t.xe(),t.Oe=t.vt.currentTime,t.Ne&&(t.je=!0),t.Ae={value:t.Ee,bufferInit:t.je,minBufferTime:i},t.__controller.sendEvent(e.WAITING,t.Ae)}},s.prototype.Ce=function(){var t=this;t.Ee&&(t.Ee=!1,t.Oe=NaN,t.Ae={value:!1,waitTime:t.Ue(),bufferInit:t.je,minBufferTime:t.getMinimumBufferTime()},t.__controller.sendEvent(e.WAITING,t.Ae),t.Ae={},t.je=!1)},s.prototype.getMinimumBufferTime=function(){var t=this,i=t.__controller.services.bandwidthEstimator.instantaneousBandwidth,n=t.vt.getCurrentLoadingStream(),e=n?n.bitrate/1e6:0,r=t.vt.config.minBufferTime;return r=t.vt.live?r.live:r.vod,t.vt.config.variableMinBuffer&&e&&!isNaN(i)?t.Fe(i/e,r):r},s.prototype.Fe=function(t,i){var n=this.MIN_BUFFER_TIME_UPPER_BOUND;if(i>=n)return i;var e=Math.max(i,0);if(t>=1)return e;var r=t*n;return 1*Math.max(e,n-r*this.WEIGHT).toFixed(1)},s.prototype.Re=function(){var t=this,i=Date.now();return t.Pe=t.Pe||i,i-t.Pe},s.prototype.xe=function(){var t=this,i=t.Re(),n=t.Be();t.ze=Date.now()-Math.max(i-n,0)},s.prototype.Ue=function(){var t=this,i=t.Be(),n=Math.max(Date.now()-t.ze-i,0);return t.Ae.bufferInit||n<t.BUFFER_REPORT_THRESHOLD?0:n},s.prototype.Be=function(){var t=this,i=0;return t.Le&&(i=1e3*(t.vt.currentTime-t.Le).toFixed(3)),i},s.prototype.Ie=function(){this.Pe=null,this.Le=null},s.prototype.isBuffering=function(){return this.Ee}},76769:function(t,i,n){"use strict";t.exports=w;var e=n(47650).HLSEvent,r=n(57572),s=n(26972),o=s.StreamingController,u=s.Events,a=n(20039),c=n(62701).CmdNames,h=n(258),f=n(30902),l=n(90867),v=n(42999),d=n(42990),p=n(10574).Model,b=n(5212),m=n(35557),y=n(23789),g=n(39451).userAgent;function w(t,i){var n=this;v.call(n,n.constructor.name),n.Ve=t,n.Ge=i,n.model=n.create(p,t),n.services=n.create(b),n.He=n.services.metadataParser,n.Ye=n.create(h),n.qe=n.create(o),n.We=n.create(a),n.pe=l.INITIAL,n.K={},n.Qe=n.Ve.config.inWorkerScope,n.ee(),n.Ne=!1,n.Ze=!1,n.$e=new f(250),n.$e.addEventListener(n.Xe,n),n.initialize()}d.inherits(w,v),w.prototype.create=function(){var t=Array.prototype.slice.call(arguments),i=t.shift(),n=Object.create(i.prototype);return n.__controller=this,i.apply(n,t),n},w.prototype.destroy=function(){var t=this;t.qe&&(t.qe.destroy(),t.qe=null),t.We&&(t.We.destroy(),t.We=null),t.Ye&&(t.Ye.destroy(),t.Ye=null),t.services&&(t.services.destroy(),t.services=null),t.$e&&(t.$e.destroy(),t.$e=null),t.pe=l.INITIAL,t.removeEventListeners(t.K),v.prototype.destroy.call(t)},w.prototype.initialize=function(){this.Ke()},w.prototype.getSegInfo=function(t){var i=this;if(!i.qe)return null;var n=i.qe.getMetrics(t);return i.Qe&&i.sendEvent(e.SEG_INFO_METRICS_AVAILABLE,n),n},w.prototype.sendEvent=function(t,i){var n=this;n.publish(t,i);var e=n.create(y,{type:m.MessageTypes.EVENT,id:t,args:[i],argNames:["eventData"]});n.Je(e)},w.prototype.sendMessage=function(t,i,n,e){var r=this.create(y,{type:m.MessageTypes.MESSAGE,id:t,args:i,argNames:n});this.Je(r,e)},w.prototype.notifyError=function(t){var i=this;i.error=t;var n=i.pe;n!==l.ERROR&&i.ir(l.ERROR),n!==l.PAUSED&&i.sendEvent(e.ERROR,"HlsError"===i.error.constructor.name?i.error.dto():i.error)},w.prototype.Je=function(t,i){t&&this.Ge&&(t.addMedia(),this.Ge(t,i))},w.prototype.ee=function(){var t=this;t.qe.addEventListener(u.STREAM_METADATA_LOADED,t.nr,t),t.qe.addEventListener(u.STREAM_METADATA_LOAD_ERROR,t.er,t),t.qe.addEventListener(u.PRELOAD_COMPLETE,t.rr,t),t.qe.addEventListener(u.SEG_LOAD_PROGRESS,t.sr,t)},w.prototype.cr=function(t){},w.prototype.ir=function(t,i){var n=this;n.cr(t),n.pe=t,n.sendEvent(e.STATE_CHANGED,t),n.lr(i)},w.prototype.getState=function(){return this.pe},w.prototype.lr=function(t){var i=this;switch(i.pe){case l.MEDIA_METADATA_LOADING:i.vr();break;case l.MEDIA_METADATA_LOADED:if(i.sendEvent(e.MEDIA_METADATA_LOADED),i.model.isDash()){i.sendMessage(m.MessageIds.DRM_INIT),i.ir(l.MEDIA_LOADED);break}i.ir(l.STREAM_METADATA_LOADING);break;case l.STREAM_METADATA_LOADING:i.qe.loadStream(i.model.getCurrentLoadingStream());break;case l.STREAM_METADATA_LOADED:i.ir(l.MEDIA_LOADED);break;case l.MEDIA_LOADED:if(g.android&&g.chrome&&i.model.drmInfo&&i.model.drmInfo.length)return;i.dr();break;case l.PRELOADING:i.qe.onPreloadBegin(),i.sendEvent(e.PRELOAD_START),i.$e.start();break;case l.PLAY_REQUESTED:i.$e.start(),i.qe.onPlay(t),i.Ze||(i.We.onPlayRequested(),i.Ze=!0);break;case l.PLAYING:i.qe.onPlaying();break;case l.PLAY_COMPLETE:i.$e.stop(),i.qe.onComplete(),i.We.onComplete();break;case l.ERROR:i.$e.stop(),i.qe.onError(),i.Ye.removeAllCommands(),i.We.onError()}},w.prototype.Ke=function(){this.pe===l.INITIAL&&this.ir(l.MEDIA_METADATA_LOADING)},w.prototype.Xe=function(){var t=this;t.pe<l.MEDIA_LOADED||(t.We.checkBuffering(),t.qe.process())},w.prototype.onPlay=function(t){var i=this;i.pe===l.ERROR&&i.error&&i.notifyError(i.error),i.pe<l.MEDIA_LOADED||(i.pe===l.PRELOADING&&(i.qe.onPreloadEnd(),this.sendEvent(e.PRELOAD_COMPLETE)),i.ir(l.PLAY_REQUESTED,t))},w.prototype.onPlaying=function(){var t=this;t.pe<l.MEDIA_LOADED||(t.ir(l.PLAYING),t.We.onPlaying())},w.prototype.onPause=function(){var t=this;t.pe<l.MEDIA_LOADED||(t.qe.onPause(),t.We.onPause(),t.ir(l.PAUSED))},w.prototype.onSeeking=function(t){var i=this;i.pe<l.MEDIA_LOADED||(i.Ne=!0,i.qe.onSeeking(t),i.We.onSeeking())},w.prototype.onSeeked=function(t){var i=this;i.pe<l.MEDIA_LOADED||(i.Ne=!1,i.qe.onSeeked(t),i.We.onSeeked())},w.prototype.onComplete=function(){this.pe<l.MEDIA_LOADED||this.ir(l.PLAY_COMPLETE)},w.prototype.onError=function(t){this.ir(l.ERROR)},w.prototype.onTimeUpdate=function(t){var i=this;i.pr(t),i.We.onTimeUpdate(),i.qe.onTimeUpdate(i.model.currentTime)},w.prototype.onUpdate=function(t){this.pr(t),this.We.onTimeUpdate()},w.prototype.onSynchComplete=function(t){this.qe.onSynchComplete(),this.We.onVideoSync(t)},w.prototype.onSynchMetadataReady=function(t){this.qe.onSynchMetadataReady(t)},w.prototype.pr=function(t){var i=this;t&&(i.model.currentTime=t.currentTime,i.model.bufferedAndPending=t.bufferedAndPending,i.model.bufferLength=t.bufferLength,i.model.pendingBufferLength=t.pendingBufferLength,i.model.bufferedRanges=t.bufferedRanges,i.model.dimensions=t.dimensions,i.model.pixelRatio=t.pixelRatio,i.services.segmentMetrics.updateFrameStats(t.frameStats))},w.prototype.vr=function(){var t=this,i=t.model.getMediaUrl(),n=i&&-1!==i.indexOf(".mpd"),e={url:i,withResponseHeaders:n};t.Ye.executeCommand(c.CMD_MEDIA_LOAD,e,t)},w.prototype.onMediaLoadComplete=function(t,i){var n=this;if(t)if(i){var e={rawData:i.data,headers:i.headers,url:t.data?t.data.url:"",cdn:n.model.getMediaCdn()};n.model.build(n.He.parse(e)),n.Ye.removeCommand(t),n.ir(l.MEDIA_METADATA_LOADED)}else n.Ye.removeCommand(t)},w.prototype.onMediaLoadError=function(t,i){var n=this;t&&n.Ye.removeCommand(t),i&&1===i.code&&(n.ir(l.ERROR),n.notifyError(new r.Error(r.ERR_PLAYLIST_LOAD)))},w.prototype.nr=function(){this.pe<l.MEDIA_LOADED&&this.ir(l.STREAM_METADATA_LOADED)},w.prototype.er=function(){this.ir(l.ERROR),this.notifyError(new r.Error(r.ERR_PLAYLIST_LOAD))},w.prototype.rr=function(){var t=this;t.pe===l.PRELOADING&&(t.ir(l.MEDIA_LOADED),t.sendEvent(e.PRELOAD_COMPLETE)),t.$e.reset()},w.prototype.sr=function(){this.We.isBuffering()&&this.sendEvent(e.BUFFER_GROWTH_DETECTED)},w.prototype.br=function(t){for(var i=Object.keys(l),n=0;n<i.length;n++)if(t===l[i[n]])return i[n]},w.prototype.preload=function(t){var i=this;t&&(i.model.config.preloadBufferLimit=t,i.model.bufferLength+i.model.pendingBufferLength<t&&i.pe===l.MEDIA_LOADED&&i.ir(l.PRELOADING))},w.prototype.setABRMode=function(t){this.pe<l.MEDIA_LOADED||this.qe.setABRMode(t)},w.prototype.setSeedStreamIndex=function(t){this.qe.setSeedStreamIndex(t)},w.prototype.setAudioLanguage=function(t){this.pe<l.MEDIA_LOADED||this.qe.setAudioLanguage(t)},w.prototype.setIgnoreBuffering=function(t){this.We.setIgnoreBuffering(t)},w.prototype.getMinimumBufferTime=function(){return this.We.getMinimumBufferTime()},w.prototype.suspendStreaming=function(){this.$e.stop(),this.qe.suspendStreaming()},w.prototype.resumeStreaming=function(){var t=this;t.pe!==l.PRELOADING&&t.pe!==l.PLAY_REQUESTED&&t.pe!==l.PLAYING&&t.pe!==l.PAUSED||(t.qe.resumeStreaming(),t.$e.start())},w.prototype.dr=function(){var t=this;t.qe.isInitialized()||(t.qe.init(),t.sendEvent(e.MEDIA_LOADED),!t.model.live&&t.model.bufferLength+t.model.pendingBufferLength<t.model.config.preloadBufferLimit&&t.ir(l.PRELOADING))},w.prototype.onGenerateRequestComplete=function(){this.dr()}},65902:function(t,i,n){"use strict";t.exports.Fmp4Streamer=h,t.exports.Fmp4LiveStreamer=f;var e=n(42990),r=n(7980),s=n(62350).Streamer,o=n(62701).CmdNames,u=n(12503).StreamTypes,a=n(35557),c=n(6837);function h(t,i){var n=this;s.call(n,t,i),n.Nt=n.constructor.super_.prototype,n.yr=null,n.yt(t)}function f(t,i){var n=this;r.call(n,t,i),n.Nt=n.constructor.super_.prototype,n.yr=null,n.yt(t),n.SEGMENT_OFFSET=7}e.inherits(h,s),e.inherits(f,r),h.prototype.destroy=function(){s.prototype.destroy.call(this)},f.prototype.destroy=function(){r.prototype.destroy.call(this)},f.prototype.yt=h.prototype.yt=function(t){var i=this;i.gr(t);var n=[{type:i.le,mimeType:i.le+'/mp4; codecs="'+i.fe+'"',minBufferTime:i.__controller.getMinimumBufferTime()}];i.__controller.sendMessage(a.MessageIds.CREATE_SRC_BUFFER,[n],["tracks"])},f.prototype.gr=h.prototype.gr=function(t){var i=this;t.type===u.AUDIO?(i.fe=i.vt.userAgent.android?"mp4a.40.2":t.audioCodec||"mp4a.40.2",i.le="audio"):(i.fe=t.videoCodec||"avc1.640021",i.le="video"),i.vt.setCodec(i.le,i.fe)},f.prototype.setCurrentStream=h.prototype.setCurrentStream=function(t){var i=this;t&&i.ye&&!t.equals(i.ye)&&(i.ye=t,i.pe===i.STATES.LOADING&&i.abortCurrentSegment(i.wr),i.isStreamReady()||(i.pe=i.STATES.NONE))},f.prototype._r=h.prototype._r=function(t,i){var n=this,e=n.ye;n.Ye.removeRelatedCommands(o.CMD_MP4_INIT_SEGMENT_LOAD);var r={stream:e,initSegment:t,cached:i};n.Ye.executeCommand(o.CMD_MP4_INIT_SEGMENT_LOAD,r,n)},f.prototype.Er=h.prototype.Er=function(t){var i=this;if(!(i.pe>=i.STATES.INITIALIZING)){var n=c.isNullOrUndefined(t)?i.Or(i.Sr):t,e=i.ye,r=e.getSegmentfromSeqNum(n);if(r){var s=e.getInitSegment(r),o=!c.isNullOrUndefined(s);o||(s=e.addInitSegment(r.initSegment)),i.pe=i.STATES.INITIALIZING,r&&r.periodId!==i.yr&&i.Ar(r.periodId),i.Tr(r?r.periodId:null),i._r(s,o)}}},f.prototype.onMp4InitSegmentLoadProgress=h.prototype.onMp4InitSegmentLoadProgress=function(t,i){var n=this,e=n.ye;if(i&&e){var r=i.chunk,s=i.stream;if(r&&s){var o=s.getInitSegment();s.setMp4Timescale(o),e.equals(s)&&s.isReady()&&(n.Mr(o),n.pe=n.STATES.INITIALIZED)}}},f.prototype.onMp4InitSegmentLoadComplete=h.prototype.onMp4InitSegmentLoadComplete=function(t,i){var n=this;i&&(n.pe<n.STATES.INITIALIZED&&n.ye.equals(i.stream)&&(n.pe=n.STATES.INITIALIZED),n.Ye.removeCommand(t))},f.prototype.onMp4InitSegmentLoadError=h.prototype.onMp4InitSegmentLoadError=function(t,i){this.Ye.removeCommand(t)},f.prototype.onSegmentLoadProgress=h.prototype.onSegmentLoadProgress=function(t,i){var n=this,e=n.ye;if(i&&e){var r=i.stream;if(!r||e.equals(r)){if("firstByte"!==i.position){var o={data:new Uint8Array(i.data),codec:n.fe,type:n.le,minBufferTime:n.__controller.getMinimumBufferTime(),frames:i.samples,startTime:e.timescale>0?i.baseTime/e.timescale:NaN,endTime:e.timescale>0?(i.baseTime+i.totalDuration)/e.timescale:NaN};n.jr([o])}s.prototype.onSegmentLoadProgress.call(n,t,i)}}},f.prototype.Ar=h.prototype.Ar=function(t){var i=this;if(i.yr!==t){i.yr=t;var n=i.ye;"MAIN"!==i.type&&"AUDIO"!==i.type||i.Nr(t,n),i.Tr(t)}},f.prototype.Nr=h.prototype.Nr=function(t,i){for(var n=this.vt.streams,e=(this.type,0);e<n.length;e++)n[e].groupId;i.groupId},f.prototype.Tr=h.prototype.Tr=function(t){var i=this,n=i.ye;n&&n.drmInfo&&!c.isNullOrUndefined(t)&&n.drmInfo.forEach((function(n){n.periodId===t&&i.__controller.sendMessage(a.MessageIds.DRM_LICENSE_INFO,[n],["drmItem"])}))},f.prototype.Mr=h.prototype.Mr=function(t){var i=this,n=i.ye;if(t){var e=t.data;if(e){var r={data:new Uint8Array(e.buffer),codec:i.fe,type:i.le,minBufferTime:i.__controller.getMinimumBufferTime(),onlyMetadata:!0};i.jr([r]),n.activeInitSegment=t}}},f.prototype.we=h.prototype.we=function(t,i){},f.prototype.be=h.prototype.be=function(t){var i=this,n=i.ye.getSegmentfromSeqNum(t);n&&n.periodId!==i.yr&&i.Ar(n.periodId),i.pe=i.STATES.NONE,i.Ir=!0,i.kr=t,i.Er(t)},h.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0},f.prototype._e=function(t){var i=this;i.lastChunkEndTs={audio:NaN,video:NaN},i.Nt._e.call(i,t)}},86888:function(t,i,n){"use strict";t.exports.Fmp4SubtitleStreamer=c,t.exports.Fmp4SubtitleLiveStreamer=h;var e=n(42990),r=n(65902).Fmp4Streamer,s=n(65902).Fmp4LiveStreamer,o=n(92835),u=n(6837),a=n(47650).HLSEvent;function c(t){r.call(this,t),this.yt()}function h(t){s.call(this,t),this.yt()}e.inherits(c,r),e.inherits(h,s),c.prototype.destroy=function(){var t=this;t.Rr=null,t.C="",r.prototype.destroy.call(t)},h.prototype.destroy=function(){var t=this;t.Rr=null,t.C="",s.prototype.destroy.call(t)},h.prototype.yt=c.prototype.yt=function(){var t=this;t.le="subtitle",t.Rr=new o,t.Lr()},h.prototype.be=c.prototype.be=function(t){this.Lr(),r.prototype.be.call(this,t)},h.prototype.onSegmentLoadProgress=c.prototype.onSegmentLoadProgress=function(t,i){var n=this,e=n.ye;if(i&&e&&e.timescale){var r=i.stream;if((!r||e.equals(r))&&"firstByte"!==i.position){var s=n.Rr.extractVttCaptions(i.data);if(s.length){var o=n.Rr.parse(i.data,"trun"),u=o?o.sampleData:[];if(u.length===s.length){var a=n.Rr.parse(i.data,"tfdt"),c=a?a.baseMediaDecodeTime:0,h=c=1e3*c/e.timescale;s.forEach((function(t,i){var r=u[i],s=r?1e3*r.sampleDuration/e.timescale:0;if(t.cueText){var o=n.Cr(t.cueTime)+c,a=null!==o?o+s:h+s;n.C+="\n"+n.Dr(o)+" --\x3e "+n.Dr(a),n.C+="\n"+t.cueText+"\n"}h+=s})),n.C+="\n"}}}}},h.prototype.onSegmentLoadComplete=c.prototype.onSegmentLoadComplete=function(t,i){var n=this,e=n.ye;if(e){var r=e.getSegmentfromSeqNum(n.kr);r&&n.__controller.sendEvent(a.VTT_SEGMENT_LOADED,n.Pr(r))}n.Nt.onSegmentLoadComplete.call(n,t,i),n.C=""},h.prototype.Lr=c.prototype.Lr=function(){this.C="WEBVTT\nX-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:0\n\n"},h.prototype.Cr=c.prototype.Cr=function(t){var i=null;if(!t)return i;var n=t.split(":");if(n&&n.length>=3){var e=n[2].split("."),r=0,s=0;e&&e.length>=2&&(r=parseInt(e[0]),s=parseInt(e[1])),i=1e3*(3600*n[0]+60*n[1]+r)+s}return i},h.prototype.Dr=c.prototype.Dr=function(t){var i="";if(u.isNullOrUndefined(t))return i;function n(t){return t<10?"0"+t:""+t}var e=Math.floor(t/1e3),r=Math.floor(t-1e3*e),s=Math.floor(e/3600);e-=3600*s;var o,a=Math.floor(e/60);return e-=60*a,i=n(s)+":"+n(a)+":"+n(e)+"."+((o=r)<10?"00"+o:o<100?"0"+o:""+o)},h.prototype.Pr=c.prototype.Pr=function(t){var i={};return t&&(i.discontinuity=t.discontinuity,i.sequenceNum=t.seqNum,i.startTime=t.startTime,i.programDateTime=t.programDateTime,i.url=t.url,i.duration=t.duration,i.clockReference=0,i.localCueTime=0,i.mpegTSTime=0,i.data=this.C,i.offset=0,i.adjustedTime=0),i},h.prototype.we=c.prototype.we=function(){},h.prototype.Mr=c.prototype.Mr=function(t){this.ye.activeInitSegment=t},h.prototype.Tr=c.prototype.Tr=function(){}},98630:function(t,i,n){"use strict";t.exports.W=a;var e=n(42990),r=n(57572),s=n(258),o=n(62701).CmdNames,u=n(30902);function a(t,i,n){var e=this;e.Ur=o.CMD_LICENSE_LOAD,e.LICENSE_TYPE_NONE=0,e.LICENSE_TYPE_WIDEVINE=1,e.LICENSE_TYPE_PLAYREADY=2,e.Fr=0,e.playreadyKeySystem={keySystem:"com.microsoft.playready",supportedConfig:[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"',robustness:""}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"',robustness:""}]}]},e.widevineKeySystem={keySystem:"com.widevine.alpha",supportedConfig:[{label:"foo",initDataTypes:["cenc"],sessionTypes:["temporary"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.5"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.640028"',robustness:"HW_SECURE_ALL"},{contentType:'video/mp4; codecs="avc1.640028"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.4d001f"',robustness:"HW_SECURE_ALL"},{contentType:'video/mp4; codecs="avc1.4d001f"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.42000d"',robustness:"HW_SECURE_ALL"},{contentType:'video/mp4; codecs="avc1.42000d"',robustness:"SW_SECURE_CRYPTO"}]}]},e.LICENSE_STATUS_DONE="DONE",e.LICENSE_STATUS_LOADING="LOADING",e.LICENSE_STATUS_NEW="NEW_REQ",e.Ye=t.create(s),e.Br=[],window.addEventListener("beforeunload",e.zr.bind(e)),e.Vr=i,e.mi=n,e.Gr=null,e.Hr=null,e.Yr=null,e.qr=[],e.Wr=new u(250),e.Wr.addEventListener(e.Qr,e),e.Zr=0,e.tn=t,e.$r()}a.prototype.addDrmItem=function(t){var i=this;e.isDrmItemContained(t,i.qr)||(t.status=i.LICENSE_STATUS_NEW,i.qr.push(t),i.Xr(i))},a.prototype.$r=function(){var t=this;t.Hr=null,navigator.requestMediaKeySystemAccess?navigator.requestMediaKeySystemAccess(t.widevineKeySystem.keySystem,t.widevineKeySystem.supportedConfig).then((function(i){t.Fr=t.LICENSE_TYPE_WIDEVINE,t.mi.appModel.licenseType="widevine",i.createMediaKeys().then((function(i){t.Kr(t,i)}),(function(){t.Yr={type:r.ERR_DRM_INIT,message:"LicenseManager - createMediaKeys() failed for Widevine"}}))}),(function(){navigator.requestMediaKeySystemAccess(t.playreadyKeySystem.keySystem,t.playreadyKeySystem.supportedConfig).then((function(i){t.Fr=t.LICENSE_TYPE_PLAYREADY,t.mi.appModel.licenseType="playready",i.createMediaKeys().then((function(i){t.Kr(t,i)}),(function(){t.Yr={type:r.ERR_DRM_INIT,message:"LicenseManager - createMediaKeys() failed for PlayReady"}}))}),(function(){t.Yr={type:r.ERR_DRM_CONFIG,message:"LicenseManager - Your browser/system does not support the requested configurations for playing DRM protected content."}}))})):t.Yr={type:r.ERR_DRM_EME_MISSING,message:"LicenseManager - Browser EME components not detected! (also check URL for HTTPS)"}},a.prototype.Kr=function(t,i){t.Hr=i,t.Wr.start()},a.prototype.Qr=function(){var t=this;t.Vr.mediaKeys||(t.Wr.stop(),t.Vr.setMediaKeys(t.Hr).then((function(){t.Xr(t)}),(function(i){t.Yr={type:r.ERR_DRM_INIT,message:"LicenseManager - "+i}})))},a.prototype.Xr=function(t){if(null===t.Hr&&null!==t.Yr)return t.Jr(t.Yr.type,t.Yr.message),void(t.Yr=null);if(null!==t.Hr)for(var i=0;i<t.qr.length;i++){var n=t.qr[i];n.status===t.LICENSE_STATUS_NEW&&(t.Fr===t.LICENSE_TYPE_WIDEVINE?(n.widevine.initData=e.base64ToBuffer(n.widevine.pssh),n.widevine.initDataType="cenc",n.status=t.LICENSE_STATUS_LOADING,t.ns(t,n.widevine)):t.Fr===t.LICENSE_TYPE_PLAYREADY&&(n.playready.initData=e.base64ToBuffer(n.playready.pssh),n.playready.initDataType="cenc",n.status=t.LICENSE_STATUS_LOADING,t.ns(t,n.playready)))}},a.prototype.ns=function(t,i){var n=t.Hr.createSession("temporary");t.Br.push(n),n.addEventListener("message",(function(n){t.us(t,i,n)}),!1);var e=n.generateRequest(i.initDataType,i.initData);e.then((function(){t.Zr++,t.Zr===t.qr.length&&t.tn.onGenerateRequestComplete()})),e.catch((function(i){t.Jr(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - keySession.generateRequest() failed: "+i)}))},a.prototype.hs=function(t,i){return t.Fr===t.LICENSE_TYPE_PLAYREADY?i.prefix+"/pr":t.Fr===t.LICENSE_TYPE_WIDEVINE?i.prefix+"/wv":""},a.prototype.us=function(t,i,n){var e=t.hs(t,i),r=t.fs(t,n.message);t.Ye.executeCommand(t.Ur,{challenge:r.challenge,headerFields:r.headerFields,url:e,drmInfo:i,event:n},t)},a.prototype.fs=function(t,i){var n,s={};if(t.Fr===t.LICENSE_TYPE_PLAYREADY){var o=(new DOMParser).parseFromString(String.fromCharCode.apply(null,new Uint16Array(i)),"application/xml");o.getElementsByTagName("Challenge")[0]?n=e.base64ToBuffer(o.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue).buffer:t.Jr(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - Cannot find <Challenge> in key message");var u=o.getElementsByTagName("name"),a=o.getElementsByTagName("value");u.length!==a.length&&t.Jr(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - Playready: Mismatched header <name>/<value> pair in key message");for(var c=0;c<u.length;c++)s[u[c].childNodes[0].nodeValue]=a[c].childNodes[0].nodeValue}else t.Fr===t.LICENSE_TYPE_WIDEVINE&&(n=i);return{challenge:n,headerFields:s}},a.prototype.onLicenseLoadComplete=function(t,i){var n=this,e=t.data?t.data.event:null,s=t.data?t.data.drmInfo:null;e.target.update(i.data).catch((function(t){n.Jr(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - call to MediaKeySession.update() failed: "+t)}));for(var o=0;o<n.qr.length;o++)n.qr[o].widevine.pssh!==s.pssh&&n.qr[o].playready.pssh!==s.pssh||(n.qr[o].status=n.LICENSE_STATUS_DONE)},a.prototype.onLicenseLoadError=function(){this.Jr(r.ERR_XHR_LOAD,"LicenseManager - XHR failed")},a.prototype.Jr=function(t,i){var n=new r.Error(t,i);this.mi.notifyError(n)},a.prototype.zr=function(){for(var t=this,i=0;i<t.Br.length;i++)t.Br[i].close().then((function(){}));t.Br=[]},a.prototype.destroy=function(){var t=this;t.ds=null,t.Hr=null,t.qr=[],t.zr(),t.Wr.destroy()}},7980:function(t,i,n){"use strict";t.exports=l;var e=n(42990),r=n(62350),s=r.Streamer,o=r.Events,u=r.SynchTypes,a=n(30902),c=n(47650).HLSEvent,h=n(12503).StreamTypes,f=n(6837);function l(t,i){var n=this;s.call(n,t,i),n.K={},n.K[c.MEDIA_LOADED]=n.__controller.addEventListener(c.MEDIA_LOADED,n.Nn,n),n.DEFAULT_STREAM_UPDATE_INTERVAL=8e3,n.MAX_STREAM_UPDATE_INTERVAL=1e4,n.PAST_BUFFER_LENGTH_LIMIT=n.vt.config.pastBufferLengthLimit.live,n.LONG_PAUSE_INTERVAL=24e3,n.bs=new a(n.DEFAULT_STREAM_UPDATE_INTERVAL),n.bs.addEventListener(n.ys,n),n.Ci=null,n.gs=null,n.ws=!1,n._s=new a(n.LONG_PAUSE_INTERVAL,1),n._s.addEventListener(n.Es,n)}e.inherits(l,s),l.prototype.destroy=function(){var t=this;t.bs.destroy(),t._s.destroy(),t.__controller.removeEventListeners(t.K),s.prototype.destroy.call(t)},l.prototype.onPlay=function(t){var i=this;if(i.Os(),i.Ss()){var n=i.gs?u.TIME_GAP:u.INIT;i._e(n),i.process(i.Sr),i.gs=null}else i.As&&(i.Sr=t,i.rn=!1,i.process(i.Sr),i.gs=null);s.prototype.onPlay.call(i),i._s.stop()},l.prototype.onPause=function(){var t=this;t.gs=Date.now(),t._s.start(),s.prototype.onPause.call(t)},l.prototype.onSeeking=function(t){var i=this;i.Ts(!1),i.ws&&(i.Ms(),i.process(t))},l.prototype.onSynchComplete=function(){var t=this;t.Ci=null,t.Sr=null,t.type===h.MAIN&&t.vt.setLivePlaybackStartTime(null)},l.prototype.suspendStreaming=function(){this.bs&&this.bs.stop()},l.prototype.resumeStreaming=function(){this.bs&&this.bs.start()},l.prototype.Ss=function(){var t=this;if(!t.gs)return!0;if(this.vt.config.streamSync)return!1;var i=t.ye,n=i&&i.targetDuration?3*i.targetDuration*1e3:t.LONG_PAUSE_INTERVAL;return Date.now()-t.gs>n},l.prototype._e=function(t){var i=this;if(i.vt.hasEndlist)i.Ts(!0);else{var n=i.ye;if(n.segments.length&&!f.isNullOrUndefined(n.endSeqNum)&&!f.isNullOrUndefined(n.startSeqNum)){var e=i.js(),r=n.getSegmentfromSeqNum(e);i.Sr=r?r.startTime:null,i.Ci=i.Sr,n.type===h.MAIN&&i.vt.setLivePlaybackStartTime(i.Ci);var s=i.vt.userAgent;i.ws=s&&s.safariDesktop&&t===u.TIME_GAP,i.publish(o.LIVE_SYNCH,i,{synchPosition:i.Ci,synchType:t})}}},l.prototype.Es=function(){},l.prototype.Ns=function(){var t=this;return!t.Is&&t.pe!==t.STATES.LOADING&&!t.rn&&!t.ks()},l.prototype.Rs=function(){var t=this;t.isActive()&&(!t.Ls&&t.pe!==t.STATES.INITIALIZING||t.Cs||(t.ys(),t.Os()))},l.prototype.js=function(){var t=this,i=t.ye,n=t.vt.getLivePlaybackStartTime();return i.type===h.MAIN||f.isNullOrUndefined(n)?Math.max(i.endSeqNum-t.SEGMENT_OFFSET,i.startSeqNum):i.getSeqNumBeforePosition(n)},l.prototype.Ds=function(t){return t},l.prototype.onStreamLoaded=function(t){this.Os(),s.prototype.onStreamLoaded.call(this,t)},l.prototype.Nn=function(){this.Os()},l.prototype.Os=function(){var t,i,n=this;n.vt.hasEndlist||n.ye.isDash()&&n.type!==h.MAIN?n.bs.destroy():(t=n.bs.startTime>0?Date.now()-n.bs.startTime:0,n.bs.reset(),i=n.vt.getStreamRefreshInterval()||n.DEFAULT_STREAM_UPDATE_INTERVAL,i-=t,i=Math.max(i,100),i=Math.min(i,n.MAX_STREAM_UPDATE_INTERVAL),n.bs.delay=i,n.bs.start())},l.prototype.Ps=function(){var t=this,i={url:t.ye.url,withResponseHeaders:t.vt.isDash()};return t.rn&&(i.stopStreamLoadOnError=!0,i.maxRetries=1),i},l.prototype.stopStreamUpdate=function(){this.bs.reset()},l.prototype.canSwitch=function(t){var i=this;return!i.Ci&&("mid-segment"!==t||i.pe===i.STATES.LOADING)},l.prototype.xs=function(){var t=this,i=t.ye;i&&i.endSeqNum===t.kr&&t.vt.hasEndlist&&t.Ts(!0)}},2440:function(t,i,n){"use strict";var e=n(10027),r=n(65985),s=n(65902),o=n(84033),u=n(89172),a=n(86888),c=n(12503).StreamTypes,h=e.TsStreamer,f=e.TsLiveStreamer,l=r.SubtitleStreamer,v=r.SubtitleLiveStreamer,d=s.Fmp4Streamer,p=s.Fmp4LiveStreamer,b=o.AacStreamer,m=o.AacLiveStreamer,y=u.WebmStreamer,g=a.Fmp4SubtitleStreamer,w=a.Fmp4SubtitleLiveStreamer;t.exports.create=function(t,i,n){if(!t||!i||"function"!=typeof t.create)return null;var e,r=i.type===c.SUBTITLES;switch(i.containerFormat){case"vtt":e=n?v:l;break;case"aac":e=n?m:b;break;case"mp4":e=r?n?w:g:n?p:d;break;case"webm":if(n)return null;e=y;break;case"ts":e=n?f:h}return e?t.create(e,i):null}},62350:function(t,i,n){"use strict";t.exports.Streamer=m;var e=n(42990),r=n(42999),s=n(62701).CmdNames,o=n(57572),u=n(47650).HLSEvent,a=n(44361),c=a.StreamLoader,h=a.Events,f=n(35557),l=n(258),v=n(12503).StreamTypes,d=n(25877),p=t.exports.Events={SEG_LOAD_START:"streamerSegLoadStart",SEG_LOAD_PROGRESS:"streamerSegLoadProgress",SEG_LOAD_COMPLETE:"streamerSegLoadComplete",SEG_LOAD_ERROR:"streamerSegLoadError",PRELOAD_COMPLETE:"streamerPreloadComplete",STREAM_LOAD_COMPLETE:"StreamLoadComplete",STREAM_LOAD_ERROR:"StreamLoadError",LIVE_SYNCH:"streamerLiveSynch"},b=t.exports.SynchTypes={INIT:"synchAtInit",TIME_GAP:"synchAtTimeGap"};function m(t){var i=this,n=i.__controller;r.call(i,i.constructor.name),i.vt=n.model,i.Us=n.services,i.Ye=n.create(l),i.Fs=n.create(c,i.Ye),i.Fs.addEventListener(h.STREAM_LOADED,i.onStreamLoaded,i),i.Fs.addEventListener(h.STREAM_LOAD_ERROR,i.onStreamLoadError,i),i.AVG_BW_MEASUREMENT_INTERVAL=30,i.Bs=0,i.zs=0,i.Ur=s.CMD_SEGMENT_LOAD,i.ye=t,i.type=t?t.type:null;var e=t.altRenditionGroups&&t.altRenditionGroups.SUBTITLES&&t.altRenditionGroups.SUBTITLES.hasStreams();i.type&&i.type!==v.VIDEO&&i.type!==v.MAIN||e||(i.Vs=[],i.Gs=new d(i.sendVttEventCB.bind(i))),i.STATES={ERROR:-1,NONE:0,INITIALIZING:1,INITIALIZED:2,LOADING:3},i.pe=i.STATES.NONE,i.Cs=!1,i.Hs=!1,i.kr=NaN,i.Yn=!1,i.Sr=null,i.rn=!1,i.Ys=i.vt.config.maxBuffer,i.Ws=i.vt.live,i.Qs=!1,i.As=!1,i.Zs={audio:NaN,video:NaN},i.Ls=!1,i.Et=[403]}e.inherits(m,r),m.prototype.destroy=function(){var t=this;t.Fs.destroy(),t.pe=t.STATES.NONE,t.ye=null,t.Ye&&(t.Ye.destroy(),t.Ye=null),r.prototype.destroy.call(t)},m.prototype.setCurrentStream=function(t){var i=this;t&&!t.equals(i.ye)&&(i.ye=t,i.onSwitchBegin())},m.prototype.isActive=function(){var t=this;return t.ye&&t.ye.url&&t.ye.url.length>0},m.prototype.setAltAudioActive=function(t){this.Qs=t},m.prototype.getCurrentStream=function(){return this.ye},m.prototype.process=function(t,i){var n=this;if("number"==typeof t&&(n.Sr=t),n.isStreamReady()||n.pe===n.STATES.ERROR){if(n.Ns()){var e=n.Or(n.Sr,i),r=n.$s(e);"empty"!==r?"ahead"!==r&&("behind"!==r?n.Ns()&&(n.Sr=null,n.Xs(e)):n._e(b.TIME_GAP)):n.Rs()}}else n.Er()},m.prototype.suspendStreaming=m.prototype.resumeStreaming=function(){},m.prototype.onPlay=function(t){var i=this;i.rn=!1,i.Ys=i.vt.config.maxBuffer,t&&i.onSynchBegin()},m.prototype.onPlaying=function(){this.As=!1},m.prototype.onPause=function(){this.rn=!0},m.prototype.onSeeking=function(t){var i=this;i.Ms(),i.Ts(!1),i.process(t)},m.prototype.onSeeked=function(){},m.prototype.onError=function(){this.Ye&&this.Ye.removeAllCommands()},m.prototype.onComplete=function(){},m.prototype.onTimeUpdate=function(t){var i=this;if(i.zs){var n=t-i.zs;n>0&&(i.Bs+=n)}i.Bs>i.AVG_BW_MEASUREMENT_INTERVAL&&(i.Dn(i.Us.bandwidthEstimator.averageBandwidth),i.Bs=0),i.zs=t},m.prototype.onPreloadBegin=function(){var t=this;t.Hs=!0,t.Ys=t.vt.config.preloadBufferLimit},m.prototype.onPreloadEnd=function(){this.Hs=!1},m.prototype.resetState=function(){var t=this;if(t.pe===t.STATES.ERROR){var i=t.ye;t.pe=i&&i.isReady()?t.STATES.INITIALIZED:t.STATES.NONE}},m.prototype._e=function(){},m.prototype.isStreamReady=function(){var t=this,i=t.ye;return i&&i.isReady()&&t.pe>=t.STATES.INITIALIZED},m.prototype.Er=function(){var t=this;t.isActive()&&(t.pe=t.STATES.INITIALIZING,t.Rs())},m.prototype.Ns=function(){var t=this,i=t.ks(),n=t.vt.config.stopBufferingOnPause;return t.Hs&&i&&t.publish(p.PRELOAD_COMPLETE,t),!t.Yn&&t.pe!==t.STATES.LOADING&&((!t.rn||!n)&&(!i&&!t.Ks()))},m.prototype.$s=function(t){var i=this.ye;if(!i||i.isEmpty()||isNaN(t))return"empty";if(!i.contains(t)){if(t<i.startSeqNum)return"behind";if(t>i.endSeqNum)return"ahead"}return"available"},m.prototype.ks=function(){var t=this;if(t.type&&t.vt.bufferedAndPending){var i={buffered:0,pending:0},n=t.vt.bufferedAndPending.video||i;return t.type!==v.MAIN&&t.type!==v.VIDEO&&(n=t.vt.bufferedAndPending.audio||i),n.buffered+n.pending>=t.Ys}return t.vt.bufferLength+t.vt.pendingBufferLength>=t.Ys},m.prototype.Ks=function(){var t=this.vt;return t.getTotalBufferLength()>=t.config.maxTotalBuffer},m.prototype.onSwitchBegin=function(){this.Ls=!0,this.Rs()},m.prototype.onSwitchEnd=function(){this.Ls=!1},m.prototype.Rs=function(){this.Cs||this.ys()},m.prototype.ys=function(){var t=this;t.isActive()&&(t.Cs=!0,t.Fs.load(t.ye,t.Ps()))},m.prototype.Ps=function(){var t=this;return{url:t.ye.url,retryExclusion:t.Et,withResponseHeaders:t.vt.isDash()}},m.prototype.onStreamLoaded=function(t){var i=this;i.pe===i.STATES.INITIALIZING&&(i.pe=i.STATES.INITIALIZED),i.Cs=!1,i.publish(p.STREAM_LOAD_COMPLETE,i,{stream:t.dto()})},m.prototype.onStreamLoadError=function(t,i){var n=this;i.code===o.ERR_XHR_LOAD_LIVE_PAUSE[0]&&n.stopStreamUpdate(),n.publish(p.STREAM_LOAD_ERROR,n,{err:i,stream:t}),n.pe=n.STATES.ERROR,n.Cs=!1,n.process()},m.prototype.Or=function(t,i){var n=this,e=n.ye,r=NaN;return r="number"==typeof t?e.getSeqNumBeforePosition(t+n.vt.TIMESTAMP_COMPARE_EPSILON):isNaN(n.kr)?n.js():n.pe===n.STATES.ERROR||n.Ir?n.kr:n.kr+1,i||(r=n.Ds(r)),n.Ws||(r=Math.max(r,e.startSeqNum),r=Math.min(r,e.endSeqNum)),r},m.prototype.Ds=function(t){var i=this,n=i.ye,e=i.vt.bufferedRanges,r=e.length,s=i.Js(t),o=i.vt.userAgent;if(o&&o.safariDesktop)return t;if(i.vt.isDash())return t;if(s>=0&&r&&s<r){var u=e.ranges[s].end;return!i.Ws&&u>=i.vt.duration?(i.Ts(!0),n.endSeqNum):n.getSeqNumBeforePosition(u)}return t},m.prototype.js=function(){return this.ye.getSeqNumBeforePosition(0)},m.prototype.Js=function(t){var i=this,n=i.ye.getSegmentfromSeqNum(t);if(!n)return-1;for(var e=i.vt.TIMESTAMP_COMPARE_EPSILON,r=i.vt.bufferedRanges,s=0;s<r.length;s++){var o=r.ranges[s],u=o.start-e,a=o.end+e;if(u=0===n.startTime&&u<.1?0:u,n.startTime>=u&&n.startTime+n.duration<=a)return s}return-1},m.prototype.be=function(){},m.prototype.Xs=function(t){var i=this;if(i.be(t),!(i.pe<i.STATES.INITIALIZED)){i.Ms(),i.pe=i.STATES.LOADING,i.kr=t,i.Ir=!1,i.vt.updateCurrentLoadingSeqNum(i.kr);var n=i.io(i.kr);n&&(i.we(n,i.ye),i.publish(p.SEG_LOAD_START,i),i.no(t))}},m.prototype.no=function(){},m.prototype.io=function(t){var i=this,n=i.me(t),e=n?n.segment:null;return e?(i.wr=i.Ye.executeCommand(i.Ur,n,i),e):null},m.prototype.me=function(t){var i=this.ye;return i?{segment:i.getSegmentfromSeqNum(t),stream:i}:null},m.prototype.onSegmentLoadProgress=function(t,i){var n=this;if(i)if(i.timedMetadata)n.vt.updateTimedMetadata(i.timedMetadata,n.kr);else{var e=i.tracks,r=i.perfInfo,s=i.bytesTotal||0,o=i.parsedInfo,u=i.cea608TrackData,a=o?o.position:i.position;switch(n.publish(p.SEG_LOAD_PROGRESS,n,{seqNum:n.kr,position:a,bytesTotal:s,inWorkerScope:!1,perfInfo:r}),n.vt.preloading=n.Hs,a){case"firstByte":return;case"start":break;case"end":n.pe===n.STATES.LOADING&&(n.pe=n.STATES.INITIALIZED)}if(e){var c=[];e.forEach((function(t){t.minBufferTime=n.__controller.getMinimumBufferTime(),n.Zs[t.type]=t.endTimestamp,c.push(t.data.buffer)})),n.jr(e,c)}if(n.Vs&&u&&u.length>0)for(var h=0;h<u.length;h++)n.Vs.push(u[h]);"end"===a&&(n.vt.setSegEndTimeStamps(n.type,n.ye.groupId,n.kr,n.Zs),n.Zs.audio=NaN,n.Zs.video=NaN)}},m.prototype.onSegmentLoadComplete=function(t){var i=this;if(i.pe===i.STATES.LOADING&&(i.pe=i.STATES.INITIALIZED),i.Vs&&i.Vs.length>0){for(var n=[],e=0;e<i.Vs.length;e++){for(var r=i.Vs[e],s=0;s<n.length&&r.pts>=n[s].pts;)s++;n.splice(s,0,r)}var o=i.ye.getSegmentfromSeqNum(i.kr);i.Gs.parse(n,o),i.Vs=[]}i.Ye.removeCommand(t),i.xs(),i.publish(p.SEG_LOAD_COMPLETE,i,{stream:i.ye}),i.wr=null},m.prototype.onSegmentLoadError=function(t,i){var n=this;n.abortCurrentSegment(t),n.wr=null;var e=i&&i.code===o.ERR_XHR_LOAD[0]?new o.Error(o.ERR_SEGMENT_LOAD):i;n.publish(p.SEG_LOAD_ERROR,n,{seqNum:n.kr,err:e,stream:n.ye})},m.prototype.abortCurrentSegment=function(t){var i=this;return i.pe!==i.STATES.LOADING?null:(t&&i.Ye.removeCommand(t),i.pe===i.STATES.LOADING&&(i.pe=i.STATES.INITIALIZED),i.Ir=!0,i.Zs.audio=NaN,i.Zs.video=NaN,i.kr)},m.prototype.Ms=function(){var t=this;t.pe===t.STATES.LOADING&&(t.pe=t.STATES.INITIALIZED),t.Zs.audio=NaN,t.Zs.video=NaN,t.Ye.removeRelatedCommands(t.Ur)},m.prototype.jr=function(t,i){t&&this.__controller.sendMessage(f.MessageIds.APPEND_SRC_BUFFER,[t],["tracks"],i)},m.prototype.Ts=function(t){var i=this;i.Yn=t,i.Zs.audio=NaN,i.Zs.video=NaN,i.type===v.MAIN&&i.__controller.sendMessage(f.MessageIds.END_OF_STREAM,[t],["endOfStream"])},m.prototype.xs=function(){var t=this,i=t.ye;i&&i.endSeqNum===t.kr&&t.Ts(!0)},m.prototype.Dn=function(t){var i={avgBWtimestamp:Date.now(),avgBW:t};this.type===v.MAIN&&this.__controller.sendMessage(f.MessageIds.SAVE_AVG_BANDWIDTH,[i],["avgBwInfo"])},m.prototype.onManualStreamChange=function(){var t=this;t.Ts(!1),t.As=!0,t.Ms(),t.Fs.cancel(),t.Cs=!1,t.pe=t.pe!==t.STATES.ERROR?t.STATES.INITIALIZING:t.pe,t.Rs()},m.prototype.midSegUpSwitch=function(){var t=this;t.wr&&t.abortCurrentSegment(t.wr),t.Fs.cancel(),t.Cs=!1,t.Rs(),t.process(t.zs,!0)},m.prototype.onSynchBegin=function(){},m.prototype.onSynchComplete=function(){},m.prototype.onSynchMetadataReady=function(t){var i=this;i.Ms(),i.Ts(!1),i.process(t)},m.prototype.canSwitch=function(t){return"mid-segment"!==t||this.pe===this.STATES.LOADING},m.prototype.isInError=function(){return this.pe===this.STATES.ERROR},m.prototype.getSegLoadCommand=function(){return this.Ye.getCommand(this.Ur)},m.prototype.we=function(){},m.prototype.sendVttEventCB=function(t){this.__controller.sendEvent(u.VTT_SEGMENT_LOADED,t)}},26972:function(t,i,n){"use strict";t.exports.StreamingController=g;var e=n(62350).Events,r=n(2440),s=n(64571),o=n(41811),u=n(30902),a=n(44361),c=a.StreamLoader,h=a.Events,f=n(12503).StreamTypes,l=n(42990),v=n(42999),d=n(47650).HLSEvent,p=n(258),b=n(10574).AbrModes,m=n(35557),y=t.exports.Events={STREAM_METADATA_LOADED:"streamMetadataLoaded",STREAM_METADATA_LOAD_ERROR:"streamMetadataLoadError",PRELOAD_COMPLETE:"preloadComplete",SEG_LOAD_PROGRESS:"streamingControllerSegLoadProgress"};function g(){var t=this;v.call(t,t.constructor.name),t.vt=t.__controller.model,t.Us=t.__controller.services,t.Ye=t.__controller.create(p),t.eo=t.Us.segmentMetrics,t.so={},t.oo=0,t.uo=0,t.ao={},t.co=null,t.ho=0,t.FAST_UP_SWITCH_INTERVAL=.3,t.Zn=t.__controller.create(o,t.Ye),t.Zn.addEventListener(t.Zn.SWITCH_ON_ERROR,t.fo,t),t.gi=t.__controller.create(s),t.gi.addEventListener(t.gi.SWITCH_BEGIN,t.lo,t),t.gi.addEventListener(t.gi.SWITCH_END,t.vo,t),t.do=new u(1e3*t.vt.config.segmentLoadMonitorInterval),t.do.addEventListener(t.po,t),t.bo=new u(1e3*t.FAST_UP_SWITCH_INTERVAL),t.bo.addEventListener(t.mo,t),t.yo={},t.qi=[],t.rn=!1,t.Ls=!1,t.As=!1,t.wo=t.gi.SCENARIOS.STARTUP,t.STATES={ERROR:-1,INITIAL:0,STREAM_METADATA_LOADED:1,INITIALIZED:2},t.pe=t.STATES.INITIAL}l.inherits(g,v),g.prototype.loadStream=function(t){var i=this;t&&i.pe===i.STATES.INITIAL&&(i._o(t).load(t),i.oo++,Object.keys(t.altRenditionGroups).forEach((function(n){var e=t.getAlternateStream(n);e&&e.url&&(i._o(e).load(e),i.oo++)})))},g.prototype._o=function(t){var i=this,n=i.__controller.create(c,i.Ye);return n.addEventListener(h.STREAM_LOADED,i.Eo,i),n.addEventListener(h.STREAM_LOAD_ERROR,i.Oo,i),i.so[t.url]=n,t.type===f.SUBTITLES&&i.uo++,n},g.prototype.So=function(){var t=this;Object.keys(t.so).forEach((function(i){var n=t.so[i];n&&n.destroy()})),t.so={},t.oo=0},g.prototype.Eo=function(t){var i=this;if(t){var n=i.so[t.url];if(n){if(i.pe>=i.STATES.STREAM_METADATA_LOADED)return n.destroy(),delete i.so[t.url],void i.vt.synchStreamTimelines(t.type);t.type!==f.SUBTITLES&&i.uo++,i.uo>=i.oo&&(i.pe=i.STATES.STREAM_METADATA_LOADED,i.vt.synchStreamTimelines(),i.publish(y.STREAM_METADATA_LOADED)),n.destroy(),delete i.so[t.url]}}},g.prototype.Oo=function(t,i){var n=this;t&&t.type===f.SUBTITLES||(n.pe=n.STATES.ERROR,n.publish(y.STREAM_METADATA_LOAD_ERROR,i))},g.prototype.init=function(){var t=this;if(t.pe!==t.STATES.ERROR&&t.pe!==t.STATES.INITIALIZED){var i=t.vt.getCurrentLoadingStream();if(i){t.uo=0;var n=t.Ao(i);n.addEventListener(e.PRELOAD_COMPLETE,t.rr,t),n.addEventListener(e.LIVE_SYNCH,t.An,t),t.ao.MAIN=n,t.co=n,t.ho++,Object.keys(i.altRenditionGroups).forEach((function(n){var e=i.getAlternateStream(n);if(e){var r=t.Ao(e);r&&(t.ao[n]=r,t.ho++)}})),t.To(),t.Mo(),t.pe=t.STATES.INITIALIZED}}},g.prototype.isInitialized=function(){return this.pe>=this.STATES.INITIALIZED},g.prototype.Ao=function(t){var i=this;if(!t)return null;var n=r.create(i.__controller,t,i.vt.live);return i.jo(n),n},g.prototype.No=function(){var t=this;Object.keys(t.ao).forEach((function(i){t.ao[i].destroy()})),t.ao={},t.co=null},g.prototype.jo=function(t){var i=this;if(t){var n={};n[e.SEG_LOAD_START]=i.Io,n[e.SEG_LOAD_PROGRESS]=i.sr,n[e.SEG_LOAD_COMPLETE]=i.Ro,n[e.SEG_LOAD_ERROR]=i.Lo,n[e.STREAM_LOAD_ERROR]=i.Co,n[e.STREAM_LOAD_COMPLETE]=i.Do,Object.keys(e).forEach((function(r){var s=e[r];t.addEventListener(s,n[s],i)}))}},g.prototype.To=function(){var t=this,i=t.ao.AUDIO;t.co&&t.co.setAltAudioActive(i&&i.isActive())},g.prototype.Po=function(){var t=this,i=Array.prototype.slice.call(arguments),n=i.shift(),e=t.co;e&&e[n]&&"function"==typeof e[n]&&e[n].apply(e,i),Object.keys(t.ao).forEach((function(r){r!==f.MAIN&&(e=t.ao[r])&&e[n]&&"function"==typeof e[n]&&e[n].apply(e,i)}))},g.prototype.process=function(){var t=this;t.Po("process"),t.wo=t.gi.SCENARIOS.LOAD},g.prototype.suspendStreaming=function(){this.Po("suspendStreaming")},g.prototype.resumeStreaming=function(){this.Po("resumeStreaming")},g.prototype.setABRMode=function(t){var i=this,n=i.vt;n.setABRMode(t)&&n.getABRMode()!==b.AUTO&&(i.xo("video"),i.Ls=!1,i.Mo())},g.prototype.setSeedStreamIndex=function(t){this.vt.getABRMode()===b.AUTO&&this.gi.setSeedStreamIndex(t)},g.prototype.xo=function(t){var i=this;i.As=!0,i.__controller.sendMessage(m.MessageIds.PAUSE_BEFORE_STREAM_CHANGE,[t],["streamType"]),i.Po("onManualStreamChange")},g.prototype.setAudioLanguage=function(t){var i=this,n=i.vt;if(n.setAudioLanguage(t)){i.xo("audio");var e=f.AUDIO,r=n.getCurrentLoadingStream(),s=r?r.getAlternateStream(e):null,o=i.ao[e];s&&o&&o.setCurrentStream(s),i.To()}},g.prototype.getMetrics=function(t){return t?this.eo.getAllMetrics():this.eo.getMetrics()},g.prototype.onPlay=function(t){var i=this;i.do.start(),i.Uo(),i.Bo()?(i.Po("onPlay",t),i.rn=!1,i.As=!1):i.qi.push([i,i.onPlay,[t]])},g.prototype.onPlaying=function(){this.Po("onPlaying")},g.prototype.onPause=function(){var t=this;t.do.stop(),t.Po("onPause"),t.rn=!0},g.prototype.onSeeking=function(t){var i=this;i.vt.live||i.Mo(),i.Po("onSeeking",t)},g.prototype.onSeeked=function(t){this.Po("onSeeked",t)},g.prototype.onComplete=function(){this.eo.onComplete(),this.Po("onComplete")},g.prototype.onError=function(){this.Po("onError")},g.prototype.onTimeUpdate=function(t){this.Po("onTimeUpdate",t),this.eo.onTimeUpdate(t)},g.prototype.onSynchMetadataReady=function(t){this.Mo(),this.Po("onSynchMetadataReady",t)},g.prototype.onSynchComplete=function(){this.Po("onSynchComplete")},g.prototype.onPreloadBegin=function(){this.Po("onPreloadBegin")},g.prototype.onPreloadEnd=function(){this.Po("onPreloadEnd")},g.prototype.fo=function(t){var i=this;i.Ls=!1,i.Mo(i.gi.SCENARIOS.ERROR,{index:t})},g.prototype.lo=function(){var t=this,i=t.vt.getCurrentLoadingStream();t.Ls=!0,t.co.setCurrentStream(i),Object.keys(i.altRenditionGroups).forEach((function(n){var e=i.getAlternateStream(n);e&&t.ao[n]&&t.ao[n].setCurrentStream(e)})),t.To()},g.prototype.vo=function(){this.Ls=!1,this.Po("onSwitchEnd")},g.prototype.po=function(){var t=this,i=t.co?t.co.getSegLoadCommand():null;i&&t.Mo(t.gi.SCENARIOS.MIDSEGMENT,{command:i,position:i.position})},g.prototype.mo=function(){var t=this;t.Ls=!1,t.Mo(),t.zo()&&(t.bo.reset(),t.Po("midSegUpSwitch"))},g.prototype.zo=function(){var t=this,i=t.vt.getCurrentPlayingStream(),n=t.vt.getCurrentLoadingStream(),e=i.getSeqNumBeforePosition(t.vt.currentTime),r=i?i.getSegmentfromSeqNum(e):null,s=n?n.getSegmentfromSeqNum(e):null,o=!1;return r&&s&&r.duration===s.duration&&(o=!0),n.bitrate>i.bitrate&&o},g.prototype.Vo=function(t,i,n,e,r){var s=this,o=s.vt.getCurrentLoadingStream(),u=o?o.getSegmentfromSeqNum(i):null,a={bitrateIndex:o?o.index:0,frameRate:o?o.frameRate:30,bytesTotal:n};"firstByte"===t?(a.beginTime=u?u.startTime:NaN,a.switchReason="none",a.observedBitrate=s.Us.bandwidthEstimator.averageBandwidth,a.timeToFirstByte=u?u.timeToFirstByte:NaN,a.endTime=u?u.startTime+u.duration:NaN,a.programDateTime=u?u.programDateTime:NaN,s.eo.segmentLoadBegin(i,a)):"end"===t&&(a.perfInfo=r,a.timeToDownload=u?u.totalDownloadTime:NaN,a.segmentInWorker=!!e,s.eo.segmentLoadEnd(i,a))},g.prototype.Go=function(){var t=this;t.do.reset(),t.rn||t.Zn.running||t.do.start()},g.prototype.Uo=function(){var t=this;t.rn&&Object.keys(t.ao).forEach((function(i){var n=t.ao[i];n&&n.isInError()&&n.resetState()}))},g.prototype.Mo=function(t,i){var n=this;if(t=t||n.wo,!n.Ls)if(t!==n.gi.SCENARIOS.MIDSEGMENT){var e=i?i.index:null;n.gi.switchStream(t,null,e)}else{var r=i?i.command:null,s=i?i.position:null;n.Ho(t,r,s)}},g.prototype.Ho=function(t,i,n){var e=this;if("end"!==n&&(e.co&&e.co.canSwitch(t)&&e.gi.switchStream(t,"down"))){var r=e.co.abortCurrentSegment(i);r&&e.Vo("end",r),e.process()}},g.prototype.Io=function(){this.Go()},g.prototype.sr=function(t,i){var n=this;if(n.Yo(t)&&i){n.publish(y.SEG_LOAD_PROGRESS,i.bytesTotal),"firstByte"===i.position&&n.gi.switchComplete();var e=i.position,r=i.bytesTotal,s=i.inWorkerScope,o=i.perfInfo,u=i.seqNum;n.Vo(e,u,r,s,o),n.Go()}},g.prototype.Ro=function(t){var i=this;i.qo(),i.Yo(t)&&i.Mo()},g.prototype.Lo=function(t,i){var n=this;n.Yo(t)&&n.Vo("end",i.seqNum),n.Wo(i.err,i.stream)},g.prototype.Do=function(t,i){var n=this;if(n.qo(),n.Yo(t)||n.vt.synchStreamTimelines(t.type),n.__controller.sendEvent(d.STREAM_UPDATED,i),n.qi.length>0&&n.Sn(),n.As){for(var e=0,r=Object.keys(n.ao),s=0;s<n.ho;s++)n.ao[r[s]].isActive()&&e++;++n.uo>=e&&(n.uo=0,n.__controller.sendMessage(m.MessageIds.PLAY_AFTER_STREAM_CHANGE))}},g.prototype.Co=function(t,i){this.Wo(i.err,i.stream)},g.prototype.Wo=function(t,i){this.do.stop(),this.Zn.handle(t,i)},g.prototype.qo=function(){var t=this,i=!0;t.Zn.running&&(Object.keys(t.ao).forEach((function(n){var e=t.ao[n],r=e?e.getCurrentStream():null;r&&r.type!==f.SUBTITLES&&(i=i&&!e.isInError())})),i&&(t.Zn.onLoadComplete(),t.Go()))},g.prototype.rr=function(){this.onPreloadEnd(),this.publish(y.PRELOAD_COMPLETE)},g.prototype.An=function(t,i){this.Yo(t)&&this.__controller.sendEvent(d.LIVE_SYNCH,i)},g.prototype.Yo=function(t){return t&&t.type===f.MAIN},g.prototype.Bo=function(){var t=this;if(t.pe!==t.STATES.INITIALIZED)return!1;var i=!0;return Object.keys(t.ao).forEach((function(n){if(n!==f.SUBTITLES){var e=t.ao[n];i=i&&(!e.isActive()||e.isStreamReady())}})),i},g.prototype.Sn=function(){var t=this.qi;this.qi=[],t.forEach((function(t){var i=t[0],n=t[1],e=t.length>2?t[2]:null;n&&"function"==typeof n&&n.apply(i,e)}))},g.prototype.destroy=function(){var t=this;t.No(),t.So(),t.Zn&&(t.Zn.destroy(),t.Zn=null),t.Ye&&(t.Ye.destroy(),t.Ye=null),t.gi&&(t.gi.destroy(),t.gi=null),t.bo&&(t.bo.destroy(),t.bo=null),t.eo&&(t.eo.destroy(),t.eo=null),t.do.destroy(),t.qi=[],v.prototype.destroy.call(t)}},65985:function(t,i,n){"use strict";t.exports.SubtitleStreamer=a,t.exports.SubtitleLiveStreamer=c;var e=n(42990),r=n(62350).Streamer,s=n(7980),o=n(62701).CmdNames,u=n(47650).HLSEvent;function a(t,i){this.ce(t,i)}function c(t,i){this.ce(t,i)}e.inherits(a,r),e.inherits(c,s),c.prototype.ce=a.prototype.ce=function(t,i){var n=this;n.constructor.super_.call(n,t,i),n.Nt=n.constructor.super_.prototype,n.Qo={},n.Ur=o.CMD_SUBTITLE_SEGMENT_LOAD,n.primary=!1,n.pe=t.isReady()?n.STATES.INITIALIZED:n.STATES.NONE},c.prototype.destroy=a.prototype.destroy=function(){var t=this;t.Qo={},t.Nt.destroy.call(t)},c.prototype.onPlay=a.prototype.onPlay=function(t){this.Nt.onPlay.call(this,t)},c.prototype.onTimeUpdate=a.prototype.onTimeUpdate=function(t){this.zs=t},c.prototype.ks=a.prototype.ks=function(){var t=this;return t.Zo(t.zs)>=t.Ys},c.prototype.Ks=a.prototype.Ks=function(){return this.Zo()>=this.vt.config.maxTotalBuffer},c.prototype.me=a.prototype.me=function(t){var i=this.ye;return i?{subtitleStream:i,segment:i.getSegmentfromSeqNum(t),live:this.vt.live}:{}},c.prototype.onSubtitleSegmentLoadComplete=a.prototype.onSubtitleSegmentLoadComplete=function(t,i){var n=this;if(i){var e=i.data;n.__controller.sendEvent(u.VTT_SEGMENT_LOADED,e),n.Qo[e.sequenceNum]={start:e.startTime,end:e.startTime+e.duration}}n.Nt.onSegmentLoadComplete.call(n,t)},c.prototype.onSubtitleSegmentLoadError=a.prototype.onSubtitleSegmentLoadError=function(t){var i=this;i.pe=i.STATES.NONE,i.Ye.removeCommand(t)},c.prototype.Ds=a.prototype.Ds=function(t){var i=this,n=i.ye,e=t;if(!isNaN(e))for(;i.Qo[e];)e++;return!i.Ws&&e>n.endSeqNum?(i.Ts(!0),n.endSeqNum):e},c.prototype.Zo=a.prototype.Zo=function(t){var i=this.ye,n=i.getSeqNumBeforePosition(t);if(isNaN(n))return 0;for(var e=0;n<=i.endSeqNum;n++){var r=this.Qo[n];if(!r)break;e=r.end-t}return e},c.prototype.$o=a.prototype.$o=function(){var t=this,i=0;return Object.keys(t.Qo).forEach((function(n){var e=t.Qo[n];e&&(i+=e.end-e.start)})),i},c.prototype.we=a.prototype.we=function(){this.ye},c.prototype.Js=a.prototype.Js=function(){},c.prototype.jr=a.prototype.jr=function(){},c.prototype.onSynchMetadataReady=a.prototype.onSynchMetadataReady=function(){},c.prototype.setABRMode=a.prototype.setABRMode=function(){},c.prototype.canSwitch=a.prototype.canSwitch=function(){return!0}},64571:function(t,i,n){"use strict";t.exports=a;var e=n(21426),r=n(10574).AbrModes,s=n(42999),o=n(42990),u=n(47650).HLSEvent;function a(){var t=this;t.vt=t.__controller.model,t.Xo=t.__controller.create(e),t.Ko={estimatedBandwidthInBps:0,bitrateList:[],currentIndex:0,bufferLength:0},t.K={},t.Nn(),t.SWITCH_BEGIN="switchBegin",t.SWITCH_END="switchEnd",t.SCENARIOS={STARTUP:"startup",LOAD:"load",ERROR:"error",MIDSEGMENT:"mid-segment"},t.switching=!0,t.seedStreamIndex=-1,s.call(t,t.constructor.name),t.K[u.MEDIA_LOADED]=t.__controller.addEventListener(u.MEDIA_LOADED,t.Nn,t)}o.inherits(a,s),a.prototype.destroy=function(){var t=this;t.Xo.destroy(),t.__controller.removeEventListeners(t.K),s.prototype.destroy.call(t)},a.prototype.switchStream=function(t,i,n){var e=this;e.vt.getABRMode()!==r.AUTO&&e.vt.streams.forEach((function(t,i){e.vt.getUserReqBitrate()===t.bitrate&&(n=i)}));var s,o=e.vt.currentLoadingStreamIndex,u=e.Jo();return-1!==this.seedStreamIndex?(s=this.seedStreamIndex,this.seedStreamIndex=-1):s=e.tu(n,u),!(s<0)&&(s!==o&&((!i||!("up"===i&&s<o||"down"===i&&s>o))&&(e.vt.setCurrentLoadingStream(s),e.switching=!0,e.publish(e.SWITCH_BEGIN,s),!0)))},a.prototype.tu=function(t,i){return"number"==typeof t?t:this.Xo.getNextStreamIndex(i)},a.prototype.switchComplete=function(){var t=this;t.switching=!1,t.publish(t.SWITCH_END)},a.prototype.Jo=function(){var t=this;t.iu();var i=t.Ko,n=t.__controller.services.bandwidthEstimator,e=t.vt.dimensions;return i.estimatedBandwidthInBps=1e3*n.averageBandwidth*1e3,i.currentIndex=t.vt.currentLoadingStreamIndex,i.bufferLength=t.vt.bufferLength,i.displayWidth=isNaN(e.width)?640:e.width,i.displayHeight=isNaN(e.height)?360:e.height,i.pixelRatio=t.vt.pixelRatio,i.is360=t.vt.is360,i.streams=t.vt.streams,i.segmentLength=t.vt.getSegmentLength(),i},a.prototype.Nn=function(){this.iu()},a.prototype.iu=function(){var t=this;t.vt.streams&&!t.Ko.bitrateList.length&&(t.Ko.bitrateList=[],t.vt.streams.forEach((function(i){t.Ko.bitrateList.push("VBR"===i.rcMode.toUpperCase()?i.avgBitrate:i.bitrate)})))},a.prototype.setSeedStreamIndex=function(t){this.seedStreamIndex=t}},10027:function(t,i,n){"use strict";t.exports.TsStreamer=l,t.exports.TsLiveStreamer=v;var e=n(42990),r=n(62350).Streamer,s=n(7980),o=n(62701).CmdNames,u=n(6837),a=n(35557),c=n(12503).StreamTypes,h="mp4a.40.2",f="avc1.640021";function l(t,i){this.ce(t,i)}function v(t,i){this.ce(t,i),this.SEGMENT_OFFSET=2}e.inherits(l,r),e.inherits(v,s),v.prototype.ce=l.prototype.ce=function(t,i){var n=this;n.constructor.super_.call(n,t,i),n.Nt=n.constructor.super_.prototype,n.type=t?t.type:null,n.processOnlyMetadata=!1,n.lastChunkEndTs={audio:NaN,video:NaN},n.lastFrameDuration={audio:NaN,video:NaN},n.ve(),n.Ur=o.CMD_SEGMENT_LOAD,n.primary=!0;var e=n.__controller.getMinimumBufferTime(),r=[];n.type!==c.MAIN&&n.type!==c.VIDEO||(r.push({codec:f,type:"video",mimeType:'video/mp4; codecs="'+f+'"',minBufferTime:e}),n.vt.setCodec("video",f)),t&&t.hasAudio&&(r.push({codec:h,type:"audio",mimeType:'audio/mp4; codecs="'+h+'"',minBufferTime:e}),n.vt.setCodec("audio",h)),n.__controller.sendMessage(a.MessageIds.CREATE_SRC_BUFFER,[r],["tracks"]),n.pe=n.STATES.INITIALIZED},v.prototype.destroy=l.prototype.destroy=function(){var t=this;t.ve(),t.Nt.destroy.call(t)},v.prototype.onSeeking=l.prototype.onSeeking=function(t){var i=this;i.lastChunkEndTs={audio:NaN,video:NaN},i.Nt.onSeeking.call(i,t)},v.prototype.onSwitchBegin=l.prototype.onSwitchBegin=function(){var t=this;t.ve(),t.Nt.onSwitchBegin.call(t)},v.prototype.be=l.prototype.be=function(){this.ve()},v.prototype.me=l.prototype.me=function(t){var i=this;return{segment:i.ye?i.ye.getSegmentfromSeqNum(t):null,stream:i.ye,state:{mp4:i.ge,lastChunkEndTs:i.lastChunkEndTs,lastFrameDuration:i.lastFrameDuration,isAltAudioActive:i.Qs},onlyMetadata:i.processOnlyMetadata,nel:i.vt.config.nel}},v.prototype.onSegmentLoadProgress=l.prototype.onSegmentLoadProgress=function(t,i,n){var e=this;if(i){var r=i.parsedInfo;r&&(u.isNumber(r.pcr)&&e.vt.setPCR(r.pcr),u.isNumber(r.frameRate)&&e.ye.setFrameRate(r.frameRate),u.isNumber(r.startOffsetTimestamp)&&e.vt.setStartOffset(r.startOffsetTimestamp),r.lastChunkEndTs&&(e.lastChunkEndTs=r.lastChunkEndTs),r.lastFrameDuration&&(e.lastFrameDuration=r.lastFrameDuration)),e.Nt.onSegmentLoadProgress.call(e,t,i,n)}},v.prototype.jr=l.prototype.jr=function(t,i){var n=this;t&&(n.Nt.jr.call(n,t,i),t.forEach((function(t){n.ye&&!n.ye.audioCodec&&"audio"===t.type&&n.vt.setCodec("audio",h),n.ge[t.type].shouldInit=!1})))},v.prototype.onSynchMetadataReady=l.prototype.onSynchMetadataReady=function(t){var i=this;i.processOnlyMetadata=!1,i.Nt.onSynchMetadataReady.call(i,t)},v.prototype.onManualStreamChange=l.prototype.onManualStreamChange=function(){var t=this;t.ve(),t.lastChunkEndTs={audio:NaN,video:NaN},t.Nt.onManualStreamChange.call(t)},v.prototype.midSegUpSwitch=l.prototype.midSegUpSwitch=function(){var t=this;t.ve(),t.lastChunkEndTs={audio:NaN,video:NaN},t.Nt.midSegUpSwitch.call(t)},v.prototype.ve=l.prototype.ve=function(){this.ge={audio:{shouldInit:!0,seqNum:0},video:{shouldInit:!0,seqNum:0}}},v.prototype.we=l.prototype.we=function(t,i){},l.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0},v.prototype._e=function(t){var i=this;i.lastChunkEndTs={audio:NaN,video:NaN},i.Nt._e.call(i,t)}},89172:function(t,i,n){"use strict";t.exports.WebmStreamer=c;var e=n(42990),r=n(62350).Streamer,s=n(62701).CmdNames,o=n(12503).StreamTypes,u=n(35557),a=n(6837);function c(t,i){var n=this;n.constructor.super_.call(n,t,i),n.Nt=n.constructor.super_.prototype,n.yr=null;var e=n.vt.config;e.variableMinBuffer=!1,e.minBufferTime={live:0,vod:0},n.yt(t)}e.inherits(c,r),c.prototype.destroy=function(){this.Nt.destroy.call(this)},c.prototype.yt=function(t){var i=this;i.gr(t);var n=[{type:i.le,mimeType:i.le+'/webm; codecs="'+i.fe+'"',minBufferTime:i.__controller.getMinimumBufferTime()}];i.__controller.sendMessage(u.MessageIds.CREATE_SRC_BUFFER,[n],["tracks"])},c.prototype.gr=function(t){var i=this;t.type===o.AUDIO?(i.fe=t.audioCodec||"opus",i.le="audio"):(i.fe=t.videoCodec||"vp9",i.le="video"),i.vt.setCodec(i.le,i.fe)},c.prototype.setCurrentStream=function(t){var i=this;t&&i.ye&&!t.equals(i.ye)&&(i.ye=t,i.pe===i.STATES.LOADING&&i.abortCurrentSegment(i.wr),i.pe=i.STATES.NONE)},c.prototype.midSegUpSwitch=function(){var t=this,i=t.vt.userAgent;i&&(i.chrome||i.edge)||t.Nt.midSegUpSwitch.call(t)},c.prototype.ys=function(){var t=this;t.Cs||t.pe!==t.STATES.INITIALIZED||(t.pe=t.STATES.NONE)},c.prototype._r=function(t,i){var n=this,e=n.ye;n.Ye.removeRelatedCommands(s.CMD_MP4_INIT_SEGMENT_LOAD);var r={stream:e,initSegment:t,cached:i};n.Ye.executeCommand(s.CMD_MP4_INIT_SEGMENT_LOAD,r,n)},c.prototype.Er=function(t){var i=this;if(!(i.pe>=i.STATES.INITIALIZING)){var n=a.isNullOrUndefined(t)?i.Or(i.Sr):t,e=i.ye,r=e.getSegmentfromSeqNum(n);if(r){var s=e.getInitSegment(r),o=!a.isNullOrUndefined(s);o||(s=e.addInitSegment(r.initSegment)),i.pe=i.STATES.INITIALIZING,r&&r.periodId!==i.yr&&i.Ar(r.periodId),i._r(s,o)}}},c.prototype.onMp4InitSegmentLoadProgress=function(t,i){var n=this,e=n.ye;if(i&&e){var r=i.chunk,s=i.stream;if(r&&s){var o=s.getInitSegment();s.setMp4Timescale(o),e.equals(s)&&s.isReady()&&(n.Mr(o),n.pe=n.STATES.INITIALIZED)}}},c.prototype.onMp4InitSegmentLoadComplete=function(t,i){var n=this;i&&(n.pe<n.STATES.INITIALIZED&&n.ye.equals(i.stream)&&(n.pe=n.STATES.INITIALIZED),n.Ye.removeCommand(t))},c.prototype.onMp4InitSegmentLoadError=function(t,i){this.Ye.removeCommand(t)},c.prototype.onSegmentLoadProgress=function(t,i){var n=this,e=n.ye;if(i&&e){var s=i.stream;if(!s||e.equals(s)){if("firstByte"!==i.position){var o={data:new Uint8Array(i.data),codec:n.fe,type:n.le,minBufferTime:n.__controller.getMinimumBufferTime(),frames:i.samples,startTime:e.timescale>0?i.baseTime/e.timescale:NaN,endTime:e.timescale>0?(i.baseTime+i.totalDuration)/e.timescale:NaN};n.jr([o])}r.prototype.onSegmentLoadProgress.call(n,t,i)}}},c.prototype.Ar=function(t){var i=this;if(i.yr!==t){i.yr=t;var n=i.ye;"MAIN"!==i.type&&"AUDIO"!==i.type||i.Nr(t,n)}},c.prototype.Nr=function(t,i){for(var n=this.vt.streams,e=(this.type,0);e<n.length;e++)n[e].groupId;i.groupId},c.prototype.Mr=function(t){var i=this,n=i.ye;if(t){var e=t.data;if(e){var r={data:new Uint8Array(e.buffer),codec:i.fe,type:i.le,minBufferTime:i.__controller.getMinimumBufferTime(),onlyMetadata:!0};i.jr([r]),n.activeInitSegment=t}}},c.prototype.we=function(t,i){},c.prototype.be=function(t){var i=this,n=i.ye,e=n.getSegmentfromSeqNum(t);if(e&&e.periodId!==i.yr&&i.Ar(e.periodId),i.isStreamReady()){var r=n.getInitSegment(e);if(r&&r.equals(n.activeInitSegment))return}i.pe=i.STATES.NONE,i.Ir=!0,i.kr=t,i.Er(t)},c.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0}},57572:function(t){"use strict";var i="api",n="network",e="decode";function r(t,i){var n=this;n.code=t[0],n.message=t[1],n.type=t[2],n.isDrm=t[3],i&&(n.message+=": "+i),n.error=new Error(n.message,n.code)}t.exports={Error:r,ERR_XHR_LOAD:[11,"Failed to load xhr request",n,!1],ERR_PLAYLIST_LOAD:[12,"Failed to load Playlist",n,!1],ERR_SUBS_LOAD:[13,"Failed to load Subtitle",n,!1],ERR_SEGMENT_LOAD:[14,"Failed to load Segment",n,!1],ERR_PARTIAL_LOAD:[15,"Loader failed to load complete data",n,!1],ERR_MASTER_PLAYLIST_PARSE:[16,"Failed to parse Master Playlist",e,!1],ERR_MEDIA_PLAYLIST_PARSE:[17,"Failed to parse Media Playlist",e,!1],ERR_SEGMENT_PARSE:[18,"Failed to parse segment data",e,!1],ERR_API_NO_NODE:[19,"No video node is being set",i,!1],ERR_MIMETYPE_NOT_SUPPORTED:[20,"Mimetype is not supported in current browser",e,!1],ERR_XHR_LOAD_LIVE_PAUSE:[21,"Failed to load xhr request during live pause",n,!1],ERR_DRM_EME_MISSING:[22,"Browser EME components not detected or HTTPS required",e,!0],ERR_DRM_INIT:[23,"Failed to initialize DRM components",e,!0],ERR_DRM_CONFIG:[24,"Browser/system does not support the requested DRM configurations",e,!0],ERR_DRM_LICENSE_REQUEST:[25,"Failed to get DRM license",e,!0],ERR_XHR_LOAD_FORBIDDEN:[27,"Forbidden to load xhr request",n,!1]},r.prototype.dto=function(){var t=this;return{code:t.code,message:t.message,type:t.type,isDrm:t.isDrm}}},47650:function(t,i){"use strict";i.HLSEvent={STATE_CHANGED:"stateChanged",PRELOAD_PROGRESS:"preloadProgress",MEDIA_LOADED:"mediaLoaded",MEDIA_METADATA_LOADED:"mediaMetadataLoaded",STREAM_UPDATED:"streamUpdated",INFO_UPDATE:"infoUpdate",SEGMENT_FIRST_BYTE_LOADED:"segmentFirstByteLoaded",SEGMENT_RENDERED:"segmentRendered",VTT_SEGMENT_LOADED:"vttSegmentLoaded",PCR_AVAILABLE:"pcrAvailable",STREAM_SWITCHED:"streamSwitched",LIVE_LOADING_LATE:"liveLoadingLate",LIVE_SYNCH:"liveSynch",WAITING:"hlsWaiting",CUEPOINT_DETECTED:"cuepointDetected",CUEPOINT_STARTED:"cuepointStarted",ABR_DATA_UPDATED:"abrDataUpdated",ERROR:"error",SEG_INFO_METRICS_AVAILABLE:"segInfoMetricsAvailable",CONTENT_LOAD_FINISHED:"contentLoadFinished",PRELOAD_START:"preloadStart",PRELOAD_COMPLETE:"preloadComplete",CC_VTT_AVAILABLE:"ccVttAvailable",BUFFER_GROWTH_DETECTED:"bufferGrowthDetected",MULTI_LANGUAGES_AVAILABLE:"multiLanguagesAvailable",TIMED_METADATA_READY:"timedMetadataReady",PLAY_BLOCKED:"playbackBlocked",BUFFER_GAP_DETECTED:"bufferGapDetected",DATE_RANGE_STARTED:"daterangeStarted",DATE_RANGE_ENDED:"daterangeEnded",STREAM_SYNCH_COMPLETE:"streamsynchComplete",STREAM_SYNCH_STRATEGY_APPLIED:"streamsynchStrategyApplied"},i.ExternalEvents=[i.HLSEvent.MEDIA_LOADED,i.HLSEvent.MEDIA_METADATA_LOADED,i.HLSEvent.INFO_UPDATE,i.HLSEvent.VTT_SEGMENT_LOADED,i.HLSEvent.SEGMENT_FIRST_BYTE_LOADED,i.HLSEvent.SEGMENT_RENDERED,i.HLSEvent.STREAM_SWITCHED,i.HLSEvent.LIVE_LOADING_LATE,i.HLSEvent.STREAM_UPDATED,i.HLSEvent.WAITING,i.HLSEvent.CUEPOINT_DETECTED,i.HLSEvent.CUEPOINT_STARTED,i.HLSEvent.ABR_DATA_UPDATED,i.HLSEvent.PRELOAD_PROGRESS,i.HLSEvent.SEG_INFO_METRICS_AVAILABLE,i.HLSEvent.CONTENT_LOAD_FINISHED,i.HLSEvent.PRELOAD_START,i.HLSEvent.PRELOAD_COMPLETE,i.HLSEvent.CC_VTT_AVAILABLE,i.HLSEvent.BUFFER_GROWTH_DETECTED,i.HLSEvent.MULTI_LANGUAGES_AVAILABLE,i.HLSEvent.TIMED_METADATA_READY,i.HLSEvent.PLAY_BLOCKED,i.HLSEvent.BUFFER_GAP_DETECTED,i.HLSEvent.DATE_RANGE_STARTED,i.HLSEvent.DATE_RANGE_ENDED,i.HLSEvent.STREAM_SYNCH_COMPLETE,i.HLSEvent.STREAM_SYNCH_STRATEGY_APPLIED]},43713:function(t,i,n){"use strict";t.exports=s;var e=n(42990),r=n(24892);function s(t,i){var n=this;t.noDemux=!0,n.constructor.super_.call(n,t,i),n.Nt=n.constructor.super_.prototype}e.inherits(s,r),s.prototype.destroy=function(){this.Nt.destroy.call(this)}},41811:function(t,i,n){"use strict";t.exports=u;var e=n(42999),r=n(42990),s=n(62701).CmdNames,o=n(12503).StreamTypes;function u(t){var i=this;i.vt=i.__controller.model,i.Ye=t,i.SWITCH_ON_ERROR="switchOnError",i._i=null,e.call(i,i.constructor.name),i.running=!1}r.inherits(u,e),u.prototype.destroy=function(){var t=this;t.vt=null,t.Ye=null,t._i=null,t.running=!1},u.prototype.handle=function(t,i){var n=this;if(t&&i&&i.type!==o.SUBTITLES){var e=i.index;n._i=t;var r={streamIndex:e,error:t};n.running=!0;var u=n.Ye.getCommand(s.CMD_ERROR_HANDLE);u?u.execute(e):n.Ye.executeCommand(s.CMD_ERROR_HANDLE,r,n)}},u.prototype.onErrorHandleProgress=function(t,i){this.publish(this.SWITCH_ON_ERROR,i.index)},u.prototype.onErrorHandleError=function(t){var i=this;i.running=!1,i.Ye.removeCommand(t),i.__controller.notifyError(i._i)},u.prototype.onLoadComplete=function(){var t=this;t.running=!1;var i=t.Ye.getCommand(s.CMD_ERROR_HANDLE);t.Ye.removeCommand(i)}},24892:function(t,i,n){"use strict";t.exports=o;var e=n(58457),r=n(25328),s=n(6837);function o(t,i){var n=this;n.Ve=t,n.Ge=i,n.nu=t.noDemux?null:new e(t.demux,n.processSegmentData.bind(n)),n.eu=new r,n.DEFAULT_WIDTH=640,n.DEFAULT_HEIGHT=360,n.GAP_EPSILON=100,n.su=n.Ve.startOffsetTimestamp,n.ou=n.Ve.lastChunkEndTs||{audio:NaN,video:NaN},n.uu=n.Ve.lastFrameDuration||{audio:NaN,video:NaN},n.Qs=n.Ve.isAltAudioActive,n.au=n.Ve.prevSegEndTimeStamps;var s=n.Ve.mp4State;n.cu={audio:!s||!s.audio||s.audio.shouldInit,video:!s||!s.video||s.video.shouldInit},n.fu={audio:0,video:0},n.lu={audio:{dts:NaN,pts:NaN},video:{dts:NaN,pts:NaN}}}o.prototype.destroy=function(){var t=this;t.nu&&(t.nu.destroy(),t.nu=null),t.eu.destroy()},o.prototype.close=function(){this.nu&&this.nu.destroy()},o.prototype.append=function(t){this.nu&&this.nu.append(t)},o.prototype.endOfSegment=function(){this.nu&&this.nu.endOfSegment()},o.prototype.processSegmentData=function(t){var i=this;if(t&&!t.error){var n=t.avData,e=t.pos,r=t.timedMetadata,s=i.Ve.startTime,o=i.Ve.timescale,u=0,a={};if(n){var c=i.Ve.pcr;(null==c||isNaN(c))&&(i.Ve.pcr=c=n.pcr-s*o);var h=[],f=n.audio,l=n.video,v=null,d=[];if(f&&f.frames&&f.frames.length&&!i.Qs&&(f.type="audio",f.config.timescale=o,f.config.duration=i.Ve.duration*f.config.timescale,f.config.useEditBox=i.Ve.useEditBox,u=i.vu("audio",f.frames[0],c,s,o),f.frames.forEach((function(t){t.dts-=u,t.pts-=u})),f.startTime=f.frames[0].dts,f.endTime=f.frames[f.frames.length-1].dts,h.push(f)),l&&l.frames&&l.frames.length){if(l.type="video",l.config.timescale=o,l.config.duration=i.Ve.duration*l.config.timescale,l.config.width=i.Ve.width||i.DEFAULT_WIDTH,l.config.height=i.Ve.height||i.DEFAULT_HEIGHT,l.config.useEditBox=i.Ve.useEditBox,l.frames.length>1){var p=l.frames[1].dts-l.frames[0].dts;l.config.frameRate=l.config.timescale/p,i.Ve.frameRate=l.config.frameRate}u=i.vu("video",l.frames[0],c,s,o),l.frames.forEach((function(t){t.dts-=u,t.pts-=u})),l.startTime=l.frames[0].dts,l.endTime=l.frames[l.frames.length-1].dts,v=l.frames[0].pts,h.push(l);for(var b=0;b<l.frames.length;b++)for(var m=0;m<l.frames[b].cea608Data.length;m++){var y=l.frames[b].cea608Data[m];y.pts=l.frames[b].pts,y.dts=l.frames[b].dts,y.timescale=l.config.timescale,d.push(y)}}var g={};g.position=i.position=e,g.pcr=c,g.frameRate=i.Ve.frameRate,"number"!=typeof i.su&&"number"==typeof v&&(i.su=v),g.startOffsetTimestamp=i.su;var w=i.du(h);g.lastChunkEndTs=i.ou,g.lastFrameDuration=i.uu,a.parsedInfo=g,w&&w.tracks&&(a.tracks=w.tracks,d&&d.length>0&&(a.cea608TrackData=d))}else{if(!r)return;var _=r.pts-i.Ve.pcr;u=this.pu(_,s,o),r.timestamp=(_-u)/o,delete r.pts,a.timedMetadata=r}i.Ge&&i.Ge(a)}},o.prototype.vu=function(t,i,n,e,r){var s=this,o=s.lu[t];isNaN(o.dts)&&isNaN(o.pts)&&(s.lu[t]={dts:i.dts-n,pts:i.pts-n});var u=s.fu[t];return 0!==u?u+n:(s.fu[t]=s.pu(s.lu[t].dts,e,r),s.fu[t]+n)},o.prototype.pu=function(t,i,n){var e=this;if(!e.Ve.discontinuity)return 0;var r=e.au?e.au.audio:NaN;return t-(i=isNaN(r)?i*n:r)},o.prototype.du=function(t){var i=this;if(t&&t.length){var n={tracks:[]};return t.forEach((function(t){if(t){t.config.offset=i.Ve.live?0:i.su;var e=i.Ve.mp4State,r=i.cu[t.type];t.config.shouldInit=s.isNullOrUndefined(r)?"start"===i.position:r,t.config.seqNum=e[t.type]?e[t.type].seqNum++:0,"video"===t.type?t.config.defaultFrameDuration=i.Ve.timescale/i.Ve.frameRate:"audio"===t.type&&(t.config.defaultFrameDuration=Math.ceil(1024*i.Ve.timescale/t.config.samplingFreq)),i.bu(t.type,t.frames,t.config.defaultFrameDuration),i.cu[t.type]=!1,i.Ve.onlyMetadata&&(t.frames=[]);var o=i.eu.generate(t);o.onlyMetadata=i.Ve.onlyMetadata,n.tracks.push(o)}})),n}},o.prototype.bu=function(t,i,n){var e=this;if(i&&i.length){var r=i[i.length-1].dts,o=i[0].dts;if(s.isNumber(e.ou[t])&&!isNaN(e.ou[t])){var u=o-e.ou[t],a=Math.ceil(2*e.uu[t])-e.GAP_EPSILON,c=Math.ceil(10*e.uu[t]);if(u>a);else if(u<e.uu[t]-e.GAP_EPSILON&&"audio"===t){var h=e.ou[t]+e.uu[t];h-o>n&&(h=o+n-1),i[0].pts=h,i[0].dts=i[0].pts}if(u>a&&u<c)for(var f=Math.floor(u/n),l=0;l<f;l++){var v=i[0].pts,d=i[0].dts;i.unshift(s.deepCopy(i[0])),i[0].pts=v-n,i[0].dts=d-n}}e.ou[t]=r,e.uu[t]=n}}},96473:function(t){"use strict";t.exports=i;function i(){}i.prototype.mu=function(t,i){for(var n=this,e=i,r=0;n.yu(t,i);)r+=10,r+=n.wu(t,i+6),n._u(t,i+10)&&(r+=10),i+=r;return r>0?t.subarray(e,e+r):null},i.prototype.yu=function(t,i){return i+10<=t.length&&73===t[i]&&68===t[i+1]&&51===t[i+2]&&t[i+3]<255&&t[i+4]<255&&t[i+6]<128&&t[i+7]<128&&t[i+8]<128&&t[i+9]<128},i.prototype._u=function(t,i){return i+10<=t.length&&51===t[i]&&68===t[i+1]&&73===t[i+2]&&t[i+3]<255&&t[i+4]<255&&t[i+6]<128&&t[i+7]<128&&t[i+8]<128&&t[i+9]<128},i.prototype.wu=function(t,i){var n=(127&t[i])<<21;return n|=(127&t[i+1])<<14,n|=(127&t[i+2])<<7,n|=127&t[i+3]},i.prototype.getString=function(t){var i=this.mu(t,0);if(!i||!i.length)return null;for(var n="",e=0;e<i.length;e++)n+=String.fromCharCode(i[e]);return n},i.prototype.Eu=function(t){return 100===t[5]?self.wu(t,10):0},i.prototype.Ou=function(t,i){var n=t.subarray(i,i+4);return String.fromCharCode.apply(null,n)},i.prototype.getID3Payload=function(t){var i=this,n=i.mu(t,0);if(!n||!n.length)return null;var e=10+i.Eu(n);return{key:i.Ou(n,e),data:n.subarray(e+10)}},i.prototype.extractID3FromMessage=function(t){if(!t)return null;t=new Uint8Array(t);for(var i=0;!this.yu(t,i);)i++;return i+10>t.length?null:t.subarray(i)}},44361:function(t,i,n){"use strict";t.exports.StreamLoader=a;var e=n(62701).CmdNames,r=n(57572),s=n(42990),o=n(42999),u=t.exports.Events={STREAM_LOADED:"streamLoaded",STREAM_LOAD_ERROR:"streamLoadError"};function a(t){var i=this;o.call(i,i.constructor.name),i.vt=i.__controller.model,i.Ye=t,i.He=i.__controller.services.metadataParser,i.stream=null,i.loaded=!1}s.inherits(a,o),a.prototype.destroy=function(){o.prototype.destroy.call(this)},a.prototype.load=function(t,i){var n=this;t&&(n.stream=t,n.loaded=!1,n.Ye.executeCommand(e.CMD_STREAM_LOAD,{stream:t,retryOpts:i},n))},a.prototype.cancel=function(){this.Ye.removeRelatedCommands(e.CMD_STREAM_LOAD)},a.prototype.onStreamLoadComplete=function(t,i){var n=this;if(t)if(i&&i.stream){var e=i.stream,r={rawData:i.data,headers:i.headers,streamType:e.type,groupId:e.groupId,name:e.name,url:i.streamUrl,index:e.index};n.vt.build(n.He.parse(r)),n.Ye.removeCommand(t),n.loaded=!0,n.publish(u.STREAM_LOADED,e)}else n.Ye.removeCommand(t)},a.prototype.onStreamLoadError=function(t,i){var n=this;n.Ye.removeCommand(t);var e=i.code===r.ERR_XHR_LOAD[0]?new r.Error(r.ERR_PLAYLIST_LOAD):i;n.publish(u.STREAM_LOAD_ERROR,n.stream,e)}},82191:function(t,i,n){"use strict";t.exports=r;var e=n(6837);function r(){var t=this;t.Su={},t.Au=Number.NaN,t.Tu=!1,t.Mu=NaN,t.ju=[]}r.prototype.destroy=function(){this.Su={},this.ju=[]},r.prototype.addStream=function(t){var i=this;i.ju.push(t),i.ju.length&&(i.Au=i.ju[0].endSeqNum)},r.prototype.update=function(t){var i=this;if(t){var n=i.Nu(t);if(n){var e=i.__controller.model.live;if(e&&(t=n.isDash()?i.Iu(t,n):i.ku(t)),n.updateConfig(t),i.Ru(t),e&&!n.isDash()&&i.Au>=n.endSeqNum){var r=1e3*n.targetDuration,s=!isNaN(r)&&r>0?r:n.refreshInterval;n.refreshInterval=.5*s}i.Au=n.endSeqNum}}},r.prototype.Nu=function(t){var i=this;if(!t||!i.ju.length)return null;for(var n=0;n<i.ju.length;n++)if(i.ju[n].equals(t))return i.ju[n];return null},r.prototype.Ru=function(t){var i=this;if(t&&t.segmentInfoList&&t.segmentInfoList[0].programDateTime&&i.ju.length)for(var n,e=t.segmentInfoList[0],r=0;r<i.ju.length;r++){var s=i.ju[r],o=s.segments;if(s.index!==t.index){for(n=0;o&&n<o.length;n++)if(o[n].seqNum===e.sequenceNum){o[n].programDateTime=e.programDateTime;break}}else for(n=1;n<t.segmentInfoList.length;n++){var u=o[n],a=o[n-1];u.programDateTime=a.programDateTime+1e3*a.duration}}},r.prototype.ku=function(t){var i=this;if(!t)return t;var n=t.segmentInfoList;if(!n||!n.length)return t;Object.keys(i.Su).length||(i.Su[n[0].sequenceNum]={startTime:n[0].startTime,programDateTime:n[0].programDateTime});var e,r,s,o,u=i.Su[n[0].sequenceNum];if(u&&"number"==typeof u.startTime)e=i.Su[n[0].sequenceNum].startTime;else{var a=Object.keys(i.Su),c=parseInt(a[a.length-1]);n[n.length-1].sequenceNum;var h=0;for(r=1;r<n.length;r++)if(-1!==a.indexOf(n[r].sequenceNum.toString())){h=r;break}if(h)for(e=i.Su[n[h].sequenceNum].startTime,r=h-1;r>=0;r--)e-=n[r].duration;else{if(n[0].sequenceNum>c)s=parseInt(a[a.length-1]),o=i.Su[s];else for(r=n[n.length-1].sequenceNum;r<=c;){if(-1!==a.indexOf(r.toString())){s=r,o=i.Su[s];break}r++}e="number"==typeof o.programDateTime?o.startTime+(n[0].programDateTime-o.programDateTime)/1e3:o.startTime+(n[0].sequenceNum-s)*n[0].duration}}var f=0;return n.forEach((function(t){t.startTime=e+f,f+=t.duration,!i.Tu&&t.discontinuity&&(i.Tu=!0,i.Mu=t.startTime),i.Tu&&!isNaN(i.Mu)&&(t.discontinuity=t.startTime>=i.Mu),i.Su[t.sequenceNum]||(i.Su[t.sequenceNum]={startTime:t.startTime,programDateTime:t.programDateTime})})),t},r.prototype.Iu=function(t,i){if(!t||!i)return t;var n=t.segmentInfoList;if(!n||!n.length)return t;var e=i.segments;if(!e||!e.length)return t;for(var r=0,s=!1,o=0;o<e.length;o++)if(r=e[o].seqNum,e[o].startTime>=n[0].startTime){s=!0;break}s||r++;for(var u=0;u<n.length;u++)n[u].sequenceNum=r,r++;return t},r.prototype.adjustStartTime=function(t,i,n){var r=this;if(t&&!e.isNullOrUndefined(n)&&!e.isNullOrUndefined(i)){var s=Object.keys(r.Su),o=s.length?s[0]:null,u=o?r.Su[o]:null,a=u?(u.programDateTime-n)/1e3-(u.startTime-i):0;a?(s.forEach((function(t){(u=r.Su[t]).startTime+=a})),t.segments.forEach((function(t){u=r.Su[t.seqNum],t.startTime=u?u.startTime:t.startTime+a})),t.adjusted=!0):t.adjusted=!0}}},45514:function(t,i,n){"use strict";t.exports=c;var e=n(84460),r=n(42999),s=n(47650),o=n(42990),u=n(39451).userAgent,a=n(78734);function c(t,i,n,e){var s=this;r.call(s,s.constructor.name),s.node=i,s.window=t,s.mediaSource=new t.MediaSource,s.qi=[],s.Lu=!1,s.node.mediaKeys?(s.node.src="",s.node.setMediaKeys(null).then((function(){s.yt(t,i,n,e)}))):s.yt(t,i,n,e)}o.inherits(c,r),c.prototype.yt=function(t,i,n,r){var s=this;s.node.src=t.URL.createObjectURL(s.mediaSource),(r=r||{}).userAgent=u,r.inWorkerScope=!1,r.metadata=n,s.appModel=s.create(a,r),s.controller=s.create(e,n),s.Lu=!0,s.node.load(),this.Sn()},c.prototype.create=function(){var t=Array.prototype.slice.call(arguments),i=t.shift(),n=Object.create(i.prototype);return n.mi=this,i.apply(n,t),n},c.prototype.sendEvent=function(t,i){var n=this;n.publish(t,i),t&&s.ExternalEvents.indexOf(t)>=0&&n.node.dispatchEvent(n.Cu(t,i))},c.prototype.getSegInfo=function(t){return this.controller?this.controller.getSegInfo(t):null},c.prototype.notifyError=function(t){var i=this;i.error=t;var n=i.error.type||"decode";"open"===i.mediaSource.readyState&&i.mediaSource.endOfStream(n),i.controller&&i.controller.destroy()},c.prototype.isMimetypeSupported=function(t){return this.window.MediaSource.isTypeSupported(t)},c.prototype.Cu=function(t,i){return new this.window.CustomEvent(t,{detail:i,bubbles:!1,cancelable:!1})},c.prototype.setABRMode=function(t){var i=this;i.controller?i.controller.setABRMode(t):i.qi.push(["setABRMode",[t]])},c.prototype.setSeedStreamIndex=function(t){var i=this;i.controller?i.controller.setSeedStreamIndex(t):i.qi.push(["setSeedStreamIndex",[t]])},c.prototype.setAudioLanguage=function(t){var i=this;i.controller?i.controller.setAudioLanguage(t):i.qi.push(["setAudioLanguage",[t]])},c.prototype.play=function(t){var i=this;i.controller?i.controller.play(t):i.qi.push(["play",[t]])},c.prototype.pause=function(){var t=this;t.controller?t.controller.pause():t.qi.push(["pause"])},c.prototype.preload=function(t){var i=this;i.controller?i.controller.preload(t):i.qi.push(["preload",[t]])},c.prototype.setPlaybackRate=function(t){var i=this;i.controller?i.controller.setPlaybackRate(t):i.qi.push(["setPlaybackRate",[t]])},c.prototype.getCurrentDate=function(){return this.controller?this.controller.getCurrentDate():null},c.prototype.clearBuffer=function(){this.controller&&this.controller.clearBuffer()},c.prototype.suspendStreaming=function(){var t=this;t.controller&&(t.Lu=!1,t.controller.suspendStreaming())},c.prototype.resumeStreaming=function(){var t=this;t.controller&&!t.Lu&&(t.controller.resumeStreaming(),t.Lu=!0)},c.prototype.getSyncOffset=function(){return this.controller?this.controller.getSyncOffset():NaN},c.prototype.startSync=function(){this.controller&&this.controller.startSync()},c.prototype.stopSync=function(){this.controller&&this.controller.stopSync()},c.prototype.getSyncState=function(){return this.controller?this.controller.getSyncState():-1},c.prototype.destroy=function(){var t=this;t.controller&&t.controller.destroy(),t.appModel&&t.appModel.destroy(),t.mediaSource=null,t.Lu=!1,r.prototype.destroy.call(t)},c.prototype.Sn=function(){var t=this,i=t.qi;t.qi=[],i.forEach((function(i){var n=t.controller,e=n[i[0]],r=i.length>1?i[1]:null;e&&"function"==typeof e&&e.apply(n,r)}))}},51842:function(t,i,n){"use strict";t.exports=o;var e=n(45514),r=n(57572),s=n(62849);function o(t,i){var n=this;n.Du=i||{},n._node="string"==typeof t?document.querySelector(t):t||null,Object.defineProperty(n,"error",{enumerable:!0,get:function(){return n.mi?n.mi.error:null}}),s.apply()}o.prototype.setSrc=function(t){var i=this;if(!i._node)throw new r.Error(r.ERR_API_NO_NODE).error;if(t){if(t!==i.Pu){i.Pu=t,i.mi&&i.unload();try{i.mi=new e(window,i._node,i.Pu,i.Du)}catch(t){}}}else i._node.src=""},o.prototype.getSegInfo=function(t){try{return this.mi?this.mi.getSegInfo(t):null}catch(t){return null}},o.prototype.setQuality=function(t){try{this.mi.setABRMode(t)}catch(t){}},o.prototype.setSeedStreamIndex=function(t){try{this.mi.setSeedStreamIndex(t)}catch(t){}},o.prototype.setAudioLanguage=function(t){try{this.mi.setAudioLanguage(t)}catch(t){}},o.prototype.unload=function(){var t=this;t.mi&&t.mi.destroy(),t.mi=null},o.prototype.play=function(t){this.mi&&this.mi.play(t)},o.prototype.pause=function(){var t=this;t.mi?t.mi.pause():t._node&&t._node.pause()},o.prototype.preload=function(t){this.mi&&this.mi.preload(t)},o.prototype.setPlaybackRate=function(t){isNaN(t)||(t=Math.max(Math.min(t,2),.5),this.mi&&this.mi.setPlaybackRate(t))},o.prototype.getCurrentDate=function(){if(this.mi)return this.mi.getCurrentDate()||null},o.prototype.clearBuffer=function(){this.mi&&this.mi.clearBuffer()},o.prototype.suspendStreaming=function(){this.mi&&this.mi.suspendStreaming()},o.prototype.resumeStreaming=function(){this.mi&&this.mi.resumeStreaming()},o.prototype.getSyncOffset=function(){return this.mi?this.mi.getSyncOffset():NaN},o.prototype.startSync=function(){this.mi&&this.mi.startSync()},o.prototype.stopSync=function(){this.mi&&this.mi.stopSync()},o.prototype.getSyncState=function(){return this.mi?this.mi.getSyncState():-1},o.prototype.destroy=function(){var t=this;t.mi&&t.mi.destroy(),t.mi=null,t.Pu=null,t.Du=null,t._node=null}},92807:function(t){"use strict";t.exports={useWorker:!0,maxRetries:5,maxBuffer:60,maxTotalBuffer:300,requestTimeout:10,chunkedRequestTimeout:5,pastBufferLengthLimit:{vod:180,live:10},segmentLoadMonitorInterval:1,preloadBufferLimit:0,skipGapLimit:.5,variableMinBuffer:!0,minBufferTime:{vod:.1,live:4},sendAbrAnalytics:!1,demux:{startChunkWithKeyFrame:!0},stopBufferingOnPause:!1,dimensions:{width:640,height:360},bwHistoryMaxAge:300,streamSync:{enabled:!1,syncPoint:3e4,pauseOnAhead:!0,pauseToPullbackThreshold:5e3,syncThreshold:50,variableRateChange:!1},nel:!1}},78734:function(t,i,n){"use strict";t.exports=u;var e=n(92807),r=n(6837),s=n(42990),o=n(10574).StreamingMode;function u(t){var i=this;if(!t||!t.userAgent)throw new Error("Invalid/incomplete configuration to AppModel");i.configure(t),i.streams=[],i.altRenditionGroups=[],i.live=!1,i.duration=0,i.timescale=9e4,i.TIMESTAMP_COMPARE_EPSILON=.065,i.PIXEL_RATIO_360=6,i.currentPlayingStreamIndex=0,i.currentLoadingStreamIndex=0,i.preloading=!1,i.currentKbps=0,i.infoUpdateSent=!0,i.streamingMode=o.HLS,i.drmRequired=!1,i.drmInfo=[],i.licenseType="none",i.is360=t.metadata&&t.metadata.is360||!1,i.setDimensions(t.dimensions)}u.prototype.destroy=function(){var t=this;t.config=null,t.streams=[],t.altRenditionGroups=[]},u.prototype.configure=function(t){var i=this;i.config=i.config||r.deepCopy(e),i.userAgent=t.userAgent,t&&Object.keys(t).forEach((function(n){i.config.hasOwnProperty(n)&&(i.config[n]=t[n])})),i.config.demux.startChunkWithKeyFrame=!0,i.config.demux.useTimer=!(i.userAgent.chrome||i.userAgent.ie||i.userAgent.edge);var n=i.config.streamSync||{},s=t.metadata,o=s&&s.syncPoint?1e3*s.syncPoint:null;n.syncPoint=n.syncPoint||o,i.config.streamSync=n},u.prototype.ln=function(t){if(!t)return!1;var i=t.url,n=t.streams&&t.streams.length?this.vn(t.streams[0]):null;return s.isUplynk(i||n)},u.prototype.vn=function(t){if(!t)return null;var i=t.url;return!i&&t.host&&t.path&&(i=t.host+t.path),i},u.prototype.update=function(t){var i=this;t&&(Object.keys(t).forEach((function(n){("currentKbps"!==n||t.currentKbps||i.infoUpdateSent)&&i.hasOwnProperty(n)&&(i[n]=t[n])})),i.infoUpdateSent=!1)},u.prototype.setDimensions=function(t){var i=this.mi.node;this.xu=t||{width:i?i.clientWidth:0,height:i?i.clientHeight:0}},u.prototype.getBufferLength=function(){var t,i,n=this,e=n.mi.node,r=e.buffered,s=0,o=e.currentTime;if(0===o){for(t=0;t<r.length;t++)s+=r.end(t)-r.start(t);return s}var u=n.mi.mediaSource;s=1/0;for(var a=0;a<u.activeSourceBuffers.length;a++){var c=n.Uu(o,u.activeSourceBuffers[a]);c>=0&&(s=Math.min(s,c))}for(t=0;t<r.length;t++)if(o>=r.start(t)&&o<r.end(t)){i=t;break}return i>=0&&r.length&&(s=Math.min(r.end(i)-o,s)),s===1/0&&(s=0),s},u.prototype.Uu=function(t,i){if(!i)return-1;for(var n,e=i.buffered,r=0,s=0;s<e.length;s++)if(t>=e.start(s)&&t<e.end(s)){n=s;break}return n>=0&&e.length&&(r=e.end(n)-t),r},u.prototype.getBufferedDto=function(){for(var t=this.mi.node.buffered,i={length:t.length,ranges:[]},n=0;n<t.length;n++)i.ranges[n]={start:t.start(n),end:t.end(n)};return i},u.prototype.getCurrentPlayingStream=function(){var t=this;return t.streams&&t.streams.length&&t.currentPlayingStreamIndex>=0&&t.currentPlayingStreamIndex<t.streams.length?t.streams[t.currentPlayingStreamIndex]:null},u.prototype.getDimensions=function(){return this.xu},u.prototype.getPixelRatio=function(){var t=1;try{window&&(t=window.devicePixelRatio)}catch(i){t=1}return t||(t=1),this.is360&&(t*=this.PIXEL_RATIO_360),t},u.prototype.getCurrentDate=function(){var t=this.getCurrentPlayingStream(),i=this.mi.node.currentTime,n=t?t.segments:null;if(n)for(var e=n.length-1;e>=0;e--)if(n[e].programDateTime>0&&i>=n[e].startTime){var r=parseInt(1e3*(i-n[e].startTime));return n[e].programDateTime+r}},u.prototype.shouldSynchronizePlayers=function(){return this.config.streamSync.enabled}},10676:function(t,i,n){"use strict";t.exports=u;var e=n(38776),r=n(47650).HLSEvent,s=n(12503).StreamTypes,o=n(82191);function u(t,i,n,u){var a=this;if(a.type=t,a.groupId=i,a.Fu=[],a.Bu=a.__controller.create(o),n){(n=a.zu(n)).forEach((function(t){var i=a.__controller.create(e,t);a.Fu.push(i),a.Bu.addStream(i)}));var c=a.Vu("default");c||(c=a.Vu("autoSelect")),c&&(a.setCurrentStream(c),c.type===s.SUBTITLES&&a.__controller.sendEvent(r.CC_VTT_AVAILABLE,{sessionId:a.__controller.model.sessionId})),t===s.AUDIO&&(u&&a.setCurrentStreamWithName(u),a.Gu())}a.Hu()}u.prototype.Vu=function(t){for(var i=this,n=0;n<i.Fu.length;n++)if(i.Fu[n][t])return i.Fu[n];return null},u.prototype.destroy=function(){var t=this;t.Fu.forEach((function(t){t.destroy()})),t.Fu=[],t.Bu.destroy()},u.prototype.getCurrentStream=function(){return this.ye},u.prototype.setCurrentStream=function(t){t&&(this.ye=t)},u.prototype.setCurrentStreamWithName=function(t){var i=this;if(!t||!i.ye||t===i.ye.name)return!1;for(var n=0;n<i.Fu.length;n++){var e=i.Fu[n];if(t===e.name)return i.setCurrentStream(e),!0}return!1},u.prototype.update=function(t){this.Bu.update(t)},u.prototype.adjustStartTime=function(t,i){var n=this;n.Fu.forEach((function(e){e.adjusted||n.Bu.adjustStartTime(e,t,i)}))},u.prototype.getContainerFormat=function(){return this.ye?this.ye.containerFormat:null},u.prototype.setContainerFormat=function(t){this.Fu.forEach((function(i){i.containerFormat||(i.containerFormat=t)}))},u.prototype.getDrmInfo=function(){for(var t=[],i=0;i<this.Fu.length;i++){var n=this.Fu[i].drmInfo;if(!n)break;for(var e=0;e<n.length;e++)t.push(n[e])}return t},u.prototype.hasStreams=function(){return this.Fu.length>0},u.prototype.Hu=function(){return!0},u.prototype.Gu=function(){var t=this,i={},n=[];t.Fu.forEach((function(e){i[e.name]||(i[e.name]=1,n.push({name:e.name,language:e.language,selected:t.ye&&e.name===t.ye.name}))})),n.length>1&&t.__controller.sendEvent(r.MULTI_LANGUAGES_AVAILABLE,{sessionId:t.__controller.model.sessionId,languages:n})},u.prototype.zu=function(t){return t?t.filter((function(t){return!!t.url})):t}},38776:function(t,i,n){"use strict";t.exports=f;var e=n(77988),r=n(27159),s=n(42990),o=n(6837),u=n(12503),a=u.Stream,c=u.StreamTypes,h=n(10574).StreamingMode;function f(t){var i=this;i.constructor.super_.call(i),i.Nt=i.constructor.super_.prototype,i.segments=[],t&&i.updateConfig(t)}s.inherits(f,a),f.prototype.destroy=function(){var t=this;t.segments=[],t.Nt.destroy.call(t)},f.prototype.updateConfig=function(t){var i=this;i.Nt.updateConfig.call(i,t),t&&(i.type=t.type||i.type,i.groupId=t.groupId||i.groupId,i.language=t.language||i.language,i.name=t.name||i.name,i.default=o.isNullOrUndefined(t.default)?i.default:t.default,i.autoSelect=o.isNullOrUndefined(t.autoSelect)?i.autoSelect:t.autoSelect,i.forced=o.isNullOrUndefined(t.forced)?i.forced:t.forced);var n=e;i.type===c.SUBTITLES&&(n=i.streamingMode===h.DASH&&"mp4"===t.containerFormat?e:r),t.segmentInfoList&&t.segmentInfoList.length&&(i.segments=t.segmentInfoList.map((function(t){return t.bitrate=i.bitrate,t.sessionId=i.sessionId,t.cdn=i.cdn,i.__controller.create(n,t)}))),i.segments.length&&(i.startSeqNum=i.segments[0].seqNum,i.endSeqNum=i.segments[i.segments.length-1].seqNum),i.adjusted=i.type===c.MAIN||i.adjusted},f.prototype.equals=function(t){var i=this;return!!t&&(i.url===t.url&&i.groupId===t.groupId&&i.name===t.name)},f.prototype.setStreamIndex=function(){},f.prototype.dto=function(){}},35086:function(t){"use strict";function i(t){var i=this;t&&(i.startSeqNum=t.startSeqNum,i.startTime=t.startTime,i.cuepointDuration=t.cuepointDuration,i.isCueOutFired=!1,i.isCueOutDetectedFired=!1)}t.exports=i,i.prototype.setCueOutFiredState=function(t){this.isCueOutFired=t},i.prototype.setCueOutDetectedState=function(t){this.isCueOutDetectedFired=t},i.prototype.setCueOutStartTime=function(t){this.startTime=t},i.prototype.dto=function(){var t=this,i={};return Object.keys(t).forEach((function(n){i[n]=t[n]})),i}},30087:function(t,i,n){"use strict";t.exports=r;var e=n(7166);function r(){this.Yu={}}r.prototype.destroy=function(){var t=this;Object.keys(t.Yu).forEach((function(i){var n=t.Yu[i];n&&n.destroy()})),t.Yu={}},r.prototype.add=function(t){var i=this;if(!t||!t.url)return null;var n=i.qu(t);return i.Yu[n]||(i.Yu[n]=new e({name:"init",url:t.url,range:t.range})),i.Yu[n]},r.prototype.remove=function(t){var i=this;if(t&&t.url){var n=i.qu(t);(t=i.Yu[n])&&(t.destroy(),delete i.Yu[n])}},r.prototype.get=function(t){if(!t||!t.url)return null;var i=this.qu(t);return this.Yu[i]},r.prototype.getFirst=function(){var t=Object.keys(this.Yu);return t&&t.length?this.Yu[t[0]]:null},r.prototype.qu=function(t){var i=t.range,n=i?"_"+i.start+"_"+i.end:"";return t.url+n}},10574:function(t,i,n){"use strict";i.Model=d;var e=i.StreamingMode={DASH:"dash",HLS:"hls"};i.MetadataTypes={RAW:"raw",RAW_SUBTITLE:"rawSubtitle",STRUCTURED:"structured"};var r=i.AbrModes={AUTO:"auto",LOW:"low",MID:"medium",HIGH:"high"},s=n(12503),o=s.Stream,u=s.StreamTypes,a=n(10676),c=n(47650).HLSEvent,h=n(92807),f=n(6837),l=n(42990),v=n(82191);function d(t){var i=this;if(!(t&&t.userAgent&&t.config&&t.metadata))throw new Error("Incomplete input parameters to Model");i.configure(t.config,t.userAgent),i.Wu={},i.streams=[],i.altRenditionGroups=[],i.Qu=i.__controller.create(v),i.Zu(t.metadata),i.live=t.metadata&&t.metadata.live,i.hasEndlist=!1,i.duration=0,i.bufferLength=0,i.pendingBufferLength=0,i.bufferedRanges={length:0,ranges:[]},i.currentTime=0,i.timescale=9e4,i.TIMESTAMP_COMPARE_EPSILON=.065,i.preloading=!1,i.timedMetadataStore={},i.dimensions=t.config.dimensions?t.config.dimensions:{width:NaN,height:NaN},i.pixelRatio=1,i.bwHistory=t.config.bwHistory,i.$u=r.AUTO,i.Xu=0,i.Su={},i.currentLoadingStreamIndex=-1,i.currentLoadingSeqNum=-1,i.Ku=null,i.Ju=null,i.ia=t.metadata.url&&-1!==t.metadata.url.indexOf(".mpd")?e.DASH:e.HLS,i.drmRequired=!1,i.drmInfo=[]}d.prototype.destroy=function(){var t=this;t.config=null,t.streams&&(t.streams.forEach((function(t){t.destroy()})),t.streams=[]),t.altRenditionGroups&&(t.altRenditionGroups.forEach((function(t){t.destroy()})),t.altRenditionGroups=[]),t.Su={},t.Qu.destroy(),t.timedMetadataStore=null},d.prototype.configure=function(t,i){var n=this;n.config=n.config||f.deepCopy(h),n.userAgent=i,t&&(Object.keys(t).forEach((function(i){n.config.hasOwnProperty(i)&&(n.config[i]=t[i])})),n.inWorkerScope=t.inWorkerScope),f.isNullOrUndefined(n.config.demux.startChunkWithKeyFrame)&&n.userAgent&&(n.config.demux.startChunkWithKeyFrame=!(n.userAgent.chrome&&n.userAgent.chrome>=50))},d.prototype.build=function(t){var i=this;if(t){t.streamingMode===e.DASH&&(i.ia=t.streamingMode,i.drmRequired=t.drm,i.na=t,i.live=!(!t.type||"dynamic"!==t.type.toLowerCase()));var n=i.ea(t.renditionGroups);i.ra(t.streamInfoList,n)}},d.prototype.sa=function(t){var i,n,e,r;for(i=0;i<t.length&&(e=t[i].getDrmInfo());i++)for(n=0;n<e.length;n++)r=e[n],l.isDrmItemContained(r,this.drmInfo)||this.drmInfo.push(r)},d.prototype.ea=function(t){var i=this;return t?(Object.keys(t).forEach((function(n){var e=t[n];e&&Object.keys(e).forEach((function(t){var r=i.oa(n,t),s=e[t];s&&s.length&&(i.aa(s[0]),r?i.ca(n,t,s):i.ha(n,t,s))}))})),i.sa(i.altRenditionGroups),i.altRenditionGroups):i.altRenditionGroups},d.prototype.oa=function(t,i){for(var n=0;n<this.altRenditionGroups.length;n++){var e=this.altRenditionGroups[n];if(e.type===t&&e.groupId===i)return e}return null},d.prototype.ha=function(t,i,n){var e=this,r=e.metadata&&e.metadata.currLang,s=e.__controller.create(a,t,i,n,r);e.altRenditionGroups.push(s)},d.prototype.ca=function(t,i,n){if(n&&n.length){var e=this.oa(t,i);n.forEach((function(t){e.update(t)}))}},d.prototype.ra=function(t,i){var n=this;t&&t.length&&((t=n.zu(t)).forEach((function(t){t.sessionId=n.sessionId,t.type=u.MAIN,n.aa(t);for(var e=!1,r=n.isDash()?"groupId":"url",s=0;s<n.streams.length;s++){if(n.streams[s][r]===t[r]){n.updateStream(s,t),e=!0;break}}e||n.addStream(t,i)})),n.sa(n.streams),n.fa(),n.duration=n.live||!t.length?NaN:t[0].duration)},d.prototype.zu=function(t){return t&&t.length?(this.userAgent.firefox&&t[0].channels&&(t=this.la(t)),t=t.filter((function(t){if(!t.url)return!1;var i=t.codecs;if(!i)return!0;for(var n=0;n<i.length;n++)if(-1===i[n].indexOf("avc1")&&-1===i[n].indexOf("mp4a")&&-1===i[n].indexOf("aac")&&-1===i[n].indexOf("vp09"))return!1;return!0}))):t},d.prototype.la=function(t){for(var i=!1,n=t[0].channels,e=1;e<t.length;e++)if(t[e].channels&&n!==t[e].channels){i=!0;break}return i?t.filter((function(t){return 1!==t.channels})):t},d.prototype.isDash=function(){return this.ia===e.DASH},d.prototype.addStream=function(t,i){var n=this,e=n.__controller.create(o,t,i);n.streams.push(e),e.setStreamIndex(n.streams.length-1),n.Qu.addStream(e),1===n.streams.length&&n.setCurrentLoadingStream(e.index)},d.prototype.updateStream=function(t,i){var n=this;t>=n.streams.length||(!0===i.hasEndList&&(n.hasEndlist=!0),n.Qu.update(i))},d.prototype.synchStreamTimelines=function(t){var i=this,n=i.getCurrentLoadingStream();if(n&&i.live&&n.segments.length){var e=n.segments[0].programDateTime,r=n.segments[0].startTime;f.isNullOrUndefined(e)||f.isNullOrUndefined(r)||i.altRenditionGroups.forEach((function(i){t&&i.type!==t||i.adjustStartTime(r,e)}))}},d.prototype.getCurrentLoadingStream=function(){return this.getStreamByIndex(this.currentLoadingStreamIndex)},d.prototype.setCurrentLoadingStream=function(t){var i=this;i.streams&&i.streams.length&&(t<0||t>=i.streams.length||(i.currentLoadingStreamIndex=t))},d.prototype.getCurrentPlayingStream=function(){return this.getStreamByIndex(this.currentPlayingStreamIndex)},d.prototype.setCurrentPlayingStream=function(t){var i=this;i.streams&&i.streams.length&&(t<0||t>=i.streams.length||(i.currentPlayingStreamIndex=t))},d.prototype.getTotalBufferLength=function(){for(var t=this.bufferedRanges,i=0,n=0;n<t.length;n++)i+=t.ranges[n].end-t.ranges[n].start;return i},d.prototype.setPCR=function(t){var i=this;(null===i.Ku||void 0===i.Ku||isNaN(i.Ku))&&(i.Ku=t,i.__controller.sendEvent(c.PCR_AVAILABLE,t))},d.prototype.getPCR=function(){return this.Ku},d.prototype.setLivePlaybackStartTime=function(t){this.Ju=t},d.prototype.getLivePlaybackStartTime=function(){return this.Ju},d.prototype.setStartOffset=function(t){var i=this;i.startOffsetTimestamp&&!isNaN(i.startOffsetTimestamp)||(i.startOffsetTimestamp=t)},d.prototype.setSegEndTimeStamps=function(t,i,n,e){if(t&&e){var r=t===u.MAIN?this.streams:this.oa(t,i);r&&r.length&&r.forEach((function(t){var i=t.getSegmentfromSeqNum(n);i&&(i.endTimestamps.audio=e.audio,i.endTimestamps.video=e.video)}))}},d.prototype.getPrevSegEndTimestamps=function(t,i){if(!t||!i)return null;var n=t.getIndexFromSeqNum(i.seqNum);return n>=1&&t.segments&&n<t.segments.length?t.segments[n-1].endTimestamps:null},d.prototype.getStreamRefreshInterval=function(){var t=this.getCurrentLoadingStream();return t?t.refreshInterval:null},d.prototype.Zu=function(t){var i=this;if(t){i.sessionId=t?t.sessionId:null,i.contentId=t?t.contentId:null,i.is360=!!t&&t.is360,i.metadata=t;var n=t.streams,e=t.altStreams;i.metadata.hasMediaMetadata||i.metadata.hasStreamMetadata||(i.Wu=n&&1===n.length?n[0]:t),e&&e.length&&(i.metadata.hasAltStreamMetadata=!0)}},d.prototype.fa=function(){this.streams.sort((function(t,i){return t.bitrate-i.bitrate})),this.streams.forEach((function(t,i){t.index=i,t.segments.forEach((function(t){t.setStreamIndex(i)}))}))},d.prototype.getSegment=function(t,i){return t<0||t>=this.streams.length?null:this.streams[t].getSegmentfromSeqNum(i)},d.prototype.va=function(t){var i=[];return this.streams.forEach((function(n){n.index!==t&&i.push({index:n.index,url:n.url})})),i},d.prototype.setABRMode=function(t){var i=this,n=i.$u;return i.$u=r.AUTO,Object.keys(r).forEach((function(n){r[n]===t.preference&&(i.$u=t.preference)})),i.Xu=1e3*t.stream.bitrate,n!==i.$u},d.prototype.getABRMode=function(){return this.$u},d.prototype.setAudioLanguage=function(t){var i=!1;return this.altRenditionGroups.forEach((function(n){n.type===u.AUDIO&&(i=n.setCurrentStreamWithName(t)||i)})),i},d.prototype.getMediaDto=function(){var t=this,i={streams:[],altRenditionGroups:[],live:t.live,duration:t.duration,currentPlayingStreamIndex:t.currentPlayingStreamIndex,currentLoadingStreamIndex:t.currentLoadingStreamIndex,currentLoadingSeqNum:t.currentLoadingSeqNum,preloading:t.preloading,currentKbps:t.__controller.services.segmentMetrics.getMetricsBandwidthInfo(),abrMode:t.$u,streamingMode:t.ia,drmRequired:t.drmRequired,drmInfo:t.drmInfo};return t.streams.forEach((function(t){i.streams.push(t.dto())})),i},d.prototype.updateCurrentLoadingSeqNum=function(t){return this.currentLoadingSeqNum=t},d.prototype.getUserReqBitrate=function(){return this.Xu},d.prototype.aa=function(t){t&&t.segmentInfoList&&!f.isNullOrUndefined(t.hasEndList)&&f.isNullOrUndefined(this.live)&&(this.live=!t.hasEndList)},d.prototype.getMediaUrl=function(){var t=this,i=t.Wu.url||"";return!i.length&&t.Wu.host&&t.Wu.path&&(i=t.Wu.host+t.Wu.path),i},d.prototype.getMediaCdn=function(){return this.Wu.cdn||""},d.prototype.getStreamByIndex=function(t){var i=this;return i.streams&&i.streams.length&&t>=0&&t<i.streams.length?i.streams[t]:null},d.prototype.getSegmentLength=function(){var t=this;return t.streams&&t.streams.length?t.streams[0].targetDuration:NaN},d.prototype.setCodec=function(t,i){this.streams&&this.streams.forEach((function(n){"video"===t?n.videoCodec=i:n.audioCodec=i}))},d.prototype.updateTimedMetadata=function(t,i){var n=this;if(t&&t.payload){n.timedMetadataStore[i]=n.timedMetadataStore[i]||[];for(var e=n.timedMetadataStore[i].length,r=0;r<n.timedMetadataStore[i].length;r++){var s=n.timedMetadataStore[i][r];if(Math.abs(s.timestamp-t.timestamp)<=.1&&n.pa(s.payload,t.payload))return!1;if(t.timestamp<s.timestamp){e=r;break}}return n.timedMetadataStore[i].splice(e,0,t),!0}},d.prototype.pa=function(t,i){return!(t.key!==i.key||!t.data||!i.data||t.data.byteLength!==i.data.byteLength)&&t.data.every((function(t,n){return t===i.data[n]}))}},7166:function(t){"use strict";function i(t){var i=this;t&&(i.url=t.url,i.name=t.name,i.range=t.range);var n=i.range;i.loaded=!1,i.data=n&&n.end>=0&&n.start>=0&&n.end>n.start?new Uint8Array(n.end-n.start+1):null,i.ba=0,i.si=i.data?i.data.byteLength:0}t.exports=i,i.prototype.destroy=function(){this.data=null},i.prototype.append=function(t){var i=this;if(i.loaded||!t)return 0;var n=0;if(i.si&&i.data){n=Math.min(t.byteLength,i.si-i.ba);for(var e=0;e<n;e++)i.data[i.ba+e]=t[e];i.ba+=n,i.ba>=i.si&&(i.loaded=!0)}else{var r=t.byteLength;if(!r)return;var s=null,o=0;i.data&&(o=(s=i.data).length),n=o+r,i.data=new Uint8Array(n),s&&i.data.set(s),i.data.set(t,o),i.ba+=n}return n},i.prototype.equals=function(t){var i=this;return!!t&&(i.url===t.url&&i.name===t.name&&(!i.range||!t.range||i.range.start===t.range.start&&i.range.end===t.range.end))}},77988:function(t){"use strict";function i(t){var i=this;t&&(i.duration=t.duration,i.url=t.url,i.initSegment=t.initSegment,i.seqNum=t.sequenceNum,i.startTime=t.startTime,i.discontinuity=t.discontinuity,i.programDateTime=t.programDateTime,i.streamIndex=t.levelIndex,i.bitrate=t.bitrate,i.sessionId=t.sessionId,i.cdn=t.cdn,i.ma=i.streamIndex+"_"+i.seqNum,i.brStartOffset=t.brStartOffset,i.brEndOffset=t.brEndOffset,i.containerFormat=t.containerFormat,i.encryptionData=t.encryptionData,i.endTimestamps=t.endTimestamps,i.periodId=t.periodId),i.endTimestamps||(i.endTimestamps={audio:NaN,video:NaN}),i.totalDownloadTime=0,i.timeToFirstByte=0,i.ya=0}t.exports=i,i.prototype.setStreamIndex=function(t){var i=this;i.streamIndex=t,i.ma=i.streamIndex+"_"+i.seqNum},i.prototype.dto=function(){var t=this,i={};return Object.keys(t).forEach((function(n){"__controller"!==n&&(i[n]=t[n])})),i}},12503:function(t,i,n){"use strict";t.exports.Stream=h;var e=i.StreamTypes={MAIN:"MAIN",AUDIO:"AUDIO",VIDEO:"VIDEO",SUBTITLES:"SUBTITLES",CLOSED_CAPTIONS:"CLOSED_CAPTIONS"},r=n(77988),s=n(35086),o=n(7166),u=n(10574).StreamingMode,a=n(92835),c=n(30087);function h(t,i){var n=this;n.segments=[],n.cuepoints=[],n.dateRanges={},n.type=e.MAIN,n.videoCodec=null,n.audioCodec=null,n.mp4Chunks={sidx:null,first:null},n.adjusted=!1,n.ga=new c(n),n.activeInitSegment=null,t&&(n.wa(t,i),n.updateConfig(t)),n.Rr=new a}h.prototype.destroy=function(){var t=this;t.segments=[],t.cuepoints=[],t.dateRanges={},"mp4"===t.containerFormat&&Object.keys(t.mp4Chunks).forEach((function(i){var n=t.mp4Chunks[i];n&&n.destroy()})),t.ga.destroy()},h.prototype.wa=function(t,i){var n=this;if(n.altRenditionGroups={},i)for(var e=0;e<i.length;e++){var r=i[e];r.groupId===t.audioGroupId?(n.altRenditionGroups.AUDIO=r,n.audioGroupId=t.audioGroupId):r.groupId===t.videoGroupId?(n.altRenditionGroups.VIDEO=r,n.videoGroupId=t.videoGroupId):r.groupId===t.subtitlesGroupId?(n.altRenditionGroups.SUBTITLES=r,n.subtitlesGroupId=t.subtitlesGroupId):r.groupId===t.ccGroupId&&(n.altRenditionGroups.CLOSED_CAPTIONS=r,n.ccGroupId=t.ccGroupId)}},h.prototype.getAlternateStream=function(t){if(this.altRenditionGroups[t])return this.altRenditionGroups[t].getCurrentStream()},h.prototype.setAlternateStream=function(t,i){this.altRenditionGroups[t]&&this.altRenditionGroups[t].setCurrentStream(i)},h.prototype.updateConfig=function(t){var i=this,n=i.audioCodec&&i.audioCodec.length>0;if(t&&(i.streamingMode=t.streamingMode||i.streamingMode,i.bitrate=t.bitrate||i.bitrate,i.avgBitrate=t.avgBitrate||i.avgBitrate,i.url=t.url||i.url,i.containerFormat=t.containerFormat||i.containerFormat,i.cdn=t.cdn||i.cdn,i.rcMode=t.rcMode||"cbr",i.channels=t.channels>=0?t.channels:i.channels,i.width=t.width>=0?t.width:i.width,i.height=t.height>=0?t.height:i.height,i.index=t.index>=0?t.index:i.index,i.targetDuration=t.targetDuration||NaN,i.sessionId=t.sessionId||null,i.audioCodec=t.audioCodec||i.audioCodec,i.videoCodec=t.videoCodec||i.videoCodec,i.type=t.type||e.MAIN,i.sidxOffset=t.sidxOffset>=0?t.sidxOffset:i.sidxOffset,i.sidxLength=t.sidxLength>=0?t.sidxLength:i.sidxLength,i.firstSegOffset=t.firstSegOffset>=0?t.firstSegOffset:i.firstSegOffset,i.firstSegLength=t.firstSegLength>=0?t.firstSegLength:i.firstSegLength,i.hasAudio=t.hasAudio||n||i.channels>0||i.hasAudio,i.groupId=t.groupId||null,void 0!==t.hasEndList&&null!==t.hasEndList&&(i.hasEndList=t.hasEndList),t.drmInfo&&(i.drmInfo=t.drmInfo),i._a(t.dateRanges)),i.url&&i.url.length&&i.url.indexOf("_60fps")>=0?i.frameRate=60:i.frameRate="AUDIO"===i.type?0:30,t&&t.segmentInfoList){var o=[];i.Ea(i.segments,t.segmentInfoList),t.segmentInfoList.forEach((function(t){t.levelIndex=i.index,t.bitrate=i.bitrate,t.sessionId=i.sessionId,t.cdn=i.cdn;var n=i.getSegmentfromSeqNum(t.sequenceNum);n&&(t.endTimestamps=n.endTimestamps),o.push(i.__controller.create(r,t))})),o.length&&(i.segments=o,i.startSeqNum=o[0].seqNum,i.endSeqNum=o[o.length-1].seqNum,t.cuepointList&&t.cuepointList.length&&(t.cuepointList.forEach((function(t){i.hasCuepoint(t.startSeqNum)||i.cuepoints.push(new s(t))})),i.updateCuepointTime()))}i.segments&&i.segments.length&&(i.refreshInterval=1e3*i.segments[i.segments.length-1].duration);var u=i.altRenditionGroups?i.altRenditionGroups.AUDIO:null;i.type===e.MAIN&&u&&i.containerFormat&&!u.getContainerFormat()&&u.setContainerFormat("ts"===i.containerFormat?"aac":"mp4")},h.prototype.Ea=function(t,i){t&&t.length&&t.forEach((function(t){t.seqNum!==i[0].sequenceNum||(i[0].programDateTime=t.programDateTime)}))},h.prototype.addInitSegment=function(t){var i=this;return"mp4"===i.containerFormat||"webm"===i.containerFormat?i.ga.add(t):null},h.prototype.getInitSegment=function(t){var i=this;if(!t){if(!i.segments.length)return null;t=i.segments[0]}return i.ga.get(t.initSegment)},h.prototype.Oa=function(t,i,n,e){var r,s=this.mp4Chunks[t];return s||("mp4"===this.containerFormat&&e?(i>=0&&n>=0&&(r={start:i,end:i+n-1}),new o({name:t,url:e,range:r})):null)},h.prototype.getMp4Chunk=function(t){return"mp4"===this.containerFormat?this.mp4Chunks[t]:null},h.prototype.dto=function(){var t=this,i={segments:[],cuepoints:[]},n=["segments","__controller","cuepoints","altRenditionGroups","_initSegmentCache","activeInitSegment"];return Object.keys(t).forEach((function(e){n.indexOf(e)>=0||(i[e]=t[e])})),t.segments.forEach((function(t){i.segments.push(t.dto())})),t.cuepoints.forEach((function(t){i.cuepoints.push(t.dto())})),i},h.prototype.setStreamIndex=function(t){this.index=t,this.segments.forEach((function(i){i.setStreamIndex(t)}))},h.prototype.getSeqNumBeforePosition=function(t){var i=this;if(!i.segments.length)return NaN;if(t<i.segments[0].startTime)return i.startSeqNum;for(var n=0;n<i.segments.length;n++){var e=i.segments[n];if(e&&e.startTime<=t&&e.startTime+e.duration>t)return i.startSeqNum+n}var r=i.segments[i.segments.length-1];return r&&r.startTime+r.duration===t?i.endSeqNum:NaN},h.prototype.getSegmentfromSeqNum=function(t){var i=this,n=i.getIndexFromSeqNum(t);return n>=0&&n<i.segments.length?i.segments[n]:null},h.prototype.getIndexFromSeqNum=function(t){var i=this;if(t>=i.startSeqNum&&t<=i.endSeqNum)for(var n=0;n<i.segments.length;n++)if(i.segments[n]&&i.segments[n].seqNum===t)return n;return-1},h.prototype.contains=function(t){return t>=this.startSeqNum&&t<=this.endSeqNum},h.prototype.isEmpty=function(){return 0===this.segments.length},h.prototype.isReady=function(){var t=this;if("mp4"!==t.containerFormat&&"webm"!==t.containerFormat)return t.url&&t.segments.length>0;var i=t.ga.getFirst();return i&&i.loaded&&t.segments.length>0},h.prototype.hasCuepoint=function(t){for(var i=this.cuepoints.length-1;i>=0;i--)if(this.cuepoints[i].startSeqNum===t)return!0;return!1},h.prototype.updateCuepointTime=function(){for(var t,i=this,n=0;n<i.cuepoints.length;n++)(t=i.getSegmentfromSeqNum(i.cuepoints[n].startSeqNum))&&i.cuepoints[n].setCueOutStartTime(t.startTime)},h.prototype.equals=function(t){var i=this;return!!t&&(i.url===t.url&&i.type===t.type&&(i.isDash()?i.groupId===t.groupId:i.index===t.index))},h.prototype.setMp4Timescale=function(t){var i=this;if("mp4"===i.containerFormat&&t&&t.loaded&&t.data){var n=i.Rr.parse(t.data,"mdhd");if(n&&n.timescale>0)i.timescale=n.timescale;else{var e=i.Rr.parse(t.data,"mvhd");i.timescale=e.timescale}}},h.prototype.isDash=function(){return this.streamingMode===u.DASH},h.prototype.setFrameRate=function(t){t&&(this.frameRate=t)},h.prototype.getDrmInfo=function(){return this.drmInfo},h.prototype._a=function(t){var i=this;t&&t.forEach((function(t){var n=t.id+"-"+t.startDate;i.dateRanges[n]=t}))}},27159:function(t){"use strict";function i(t){var i=this;t&&(i.discontinuity=t.discontinuity,i.seqNum=t.sequenceNum,i.startTime=t.startTime,i.programDateTime=t.programDateTime,i.url=t.url,i.duration=t.duration),i.clockReference=0,i.localCueTime=0,i.mpegTSTime=0,i.offset=0,i.adjustedTime=0}t.exports=i,i.prototype.destroy=function(){this.data=null},i.prototype.toObject=function(){var t=this,i={};return i.discontinuity=t.discontinuity,i.sequenceNum=t.seqNum,i.startTime=t.startTime,i.programDateTime=t.programDateTime,i.url=t.url,i.duration=t.duration,i.playlistUrl=t.playlistUrl,i.clockReference=t.clockReference,i.localCueTime=t.localCueTime,i.mpegTSTime=t.mpegTSTime,i.data=t.data,i.offset=t.offset,i.adjustedTime=t.adjustedTime,i},i.prototype.parseSegment=function(){var t=this;if(t.data){var i=t.data.split("\n");if(!(i.length<=0)&&0===i[0].indexOf("WEBVTT")){for(var n=Math.floor((Math.pow(2,33)-1)/90),e=0,r=0,s=1;s<i.length;s++){var o=i[s].trim();if(0===o.indexOf("X-TIMESTAMP-MAP")){var u=new RegExp(/LOCAL[:=]([^,]+)/),a=new RegExp(/MPEGTS[:=]([^,]+)/);r=0,e=0;var c=u.exec(o);if(c&&c.length>=2){var h=c[1].split(":");if(h&&h.length>=3){var f=h[2].split("."),l=0,v=0;f&&f.length>=2&&(l=parseInt(f[0]),v=parseInt(f[1])),r=1e3*(3600*h[0]+60*h[1]+l)+v,r%=n}}var d=a.exec(o);d&&d.length>=2&&(e=parseFloat(d[1]),e=Math.round(e/90)),t.clockReference=t.pcr(),t.localCueTime=r,t.mpegTSTime=e,null===t.clockReference||t.clockReference}else if(o.indexOf("--\x3e")>=0){var p=o.split("--\x3e");if(p){var b=p[0].split(":");if(b){var m=1e3*(3600*parseInt(b[0])+60*parseInt(b[1])+parseFloat(b[2]));null!==t.clockReference&&void 0!==t.clockReference||(t.clockReference=m%n+t.mpegTSTime)}}break}}t.adjustedTime=e-r-t.clockReference+t.offset}}},i.prototype.pcr=function(){var t=this;if(!t.__controller)return 0;var i=t.__controller.model,n=i.getPCR();if("number"!=typeof n)return null;if(n=n/t.__controller.model.timescale*1e3,i.live&&n<0){var e=-Math.floor(Math.pow(2,32)/90),r=Math.floor((Math.pow(2,32)-1)/90);n=Math.abs(n-e)+r}return n},i.prototype.isBuffered=function(){return!!this.data}},92835:function(t,i,n){"use strict";t.exports=s;var e=n(43288),r=n(6837);function s(){this.Sa=0}s.prototype.destroy=function(){this.Sa=0},s.prototype.parse=function(t,i,n){var s=this;if(!t||!i||!e[i])return null;s.Sa=0;var o=new DataView(t.buffer);if(r.isNullOrUndefined(n)?(n=s.findBoxOffset(o,i),s.Sa=n):s.Sa=n,s.Sa<0)return null;var u=s.parseHeader(o,i,s.Sa);return!u||u.boxSize>o.byteLength?null:"sidx"===u.boxType?s.Aa(o,u,n):s.bi(o,u)},s.prototype.Ta=function(t){var i=this,n=[];if(!t)return n;i.Sa=0;for(var r=new DataView(t.buffer);i.Sa+8<=r.byteLength;){var s=i.Sa,o=i.Ma(r.getUint32(s+4),4);if(e[o]){var u=i.parseHeader(r,o,s);u&&("sidx"===u.boxType?n.push(i.Aa(r,u)):n.push(i.bi(r,u)))}else i.Sa++}return n},s.prototype.parseHeader=function(t,i,n){var r=this,s={boxOffset:n};r.Sa=n;var o=r.Na(t,s);return-1===o||s.boxType!==i||e[i].fullBox&&-1===(o=r.Ia(t,s))?null:s},s.prototype.extractVttCaptions=function(t){var i=this,n=[];if(i.Sa=0,!t)return n;var e=new DataView(t.buffer),r=i.findBoxOffset(e,"mdat");if(r<0)return n;var s=t.slice(r+8),o=i.Ta(s);if(!o.length)return n;for(var u=0;u<o.length;u++){var a=o[u];if(a)if("vttc"===a.boxType){i.Sa=0;var c=s.slice(a.boxOffset+8,a.boxOffset+a.boxSize),h=i.Ta(c);n.push(i.ka(h))}else"vtte"===a.boxType&&n.push({})}return n},s.prototype.bi=function(t,i,n){var r=this;if(!t||!i||i.boxSize>t.byteLength)return i;var s=e[i.boxType],o=s.properties;if(!o)return r.Sa+=i.boxSize-(s.fullBox?12:8),i;for(var u=Object.keys(o),a=0;a<u.length;a++){var c=u[a],h=o[c];if(r.Ra(h.validator,i[h.validationProperty]||i.flags,h.validationResult))if("array"===h.type){i[c]=[];var f=h.length||h.lengthField&&i[h.lengthField],l=h.itemSchema;if(!l)break;f?r.La(i,c,t,f,l,n):r.Ca(i,c,t,l)}else r.Da(t,h,n,c),i[c]=r.Pa(i,h,t)}return i},s.prototype.Da=function(t,i,n,e,r,s){if(n&&i){var o=!n.pos||n.pos&&n.pos===r||r===s-1&&-1===n.pos;n.name&&e===n.name&&n.length&&i.length&&n.length===i.length&&o&&this.xa(t,n)}},s.prototype.La=function(t,i,n,e,r,s){for(var o,u=this,a=0;a<e;a++){if(r.length)o=u.Pa(t,r,n);else{o={};for(var c=Object.keys(r),h=0;h<c.length;h++){var f=c[h],l=r[f];u.Ra(l.validator,t.flags)&&(u.Da(n,l,s,f,a,e),o[f]=u.Pa(t,l,n))}}t[i].push(o)}},s.prototype.Ca=function(t,i,n,e){for(var r;this.Sa<t.boxOffset+t.boxSize;)r=this.Pa(t,e,n),t[i].push(r)},s.prototype.Ra=function(t,i,n){return!t||(n?(i&t)===n:i&t)},s.prototype.Pa=function(t,i,n){var e,r=this;return i.length&&(e=r.Ua(n,i.length),r.Sa+=e.readBytes,e.readBytes===i.length/8)?"string"===i.type?r.Ma(e.value,4):e.value:"string"===i.type?r.Fa(t,n):"boxstring"===i.type?r.Ba(t,n):null},s.prototype.Ua=function(t,i){var n=this,e={value:0,readBytes:0},r=i/8;if(n.Sa+r<=t.byteLength){switch(i){case 8:e.value=t.getUint8(n.Sa);break;case 16:e.value=t.getUint16(n.Sa);break;case 32:e.value=t.getUint32(n.Sa);break;case 64:for(var s=new Uint8Array(8),o=0;o<8;o++)s[o]=t.getUint8(n.Sa+o);e.value=s}e.readBytes=r}return e},s.prototype.xa=function(t,i){var n=this,e=i.value;switch(i.length){case 8:t.setUint8(n.Sa,e);break;case 16:t.setUint16(n.Sa,e);break;case 32:t.setUint32(n.Sa,e)}},s.prototype.Fa=function(t,i){var n=this,e="",r=n.Ua(i,8);for(n.Sa+=r.readBytes;r.readBytes>0&&r.value>0&&n.Sa<t.boxOffset+t.boxSize;)e+=String.fromCharCode(r.value),r=n.Ua(i,8),n.Sa+=r.readBytes;return e},s.prototype.Ba=function(t,i){var n=this,e=t.boxSize-(n.Sa-t.boxOffset),r=String.fromCharCode.apply(null,new Uint8Array(i.buffer,n.Sa,e));return n.Sa+=e,r},s.prototype.findBoxOffset=function(t,i){if(!t||t.byteLength<8)return-1;var n,r=e[i].parents,s=0;if(r&&r.length>0){for(var o=!1,u=0;u<r.length;u++){var a=r[u];if((n=this.findBoxOffset(t,a))>=0){s=n+(e[a].fullBox?12:8);var c=e[a].payload;c&&(s+=c),o=!0;break}}if(!o)return-1}for(;s+8<=t.byteLength;){if(this.Ma(t.getUint32(s+4),4)===i)return s;var h=t.getUint32(s);if(!(h>0))break;s+=h}return-1},s.prototype.Na=function(t,i){var n=this;if(!t||!i||t.byteLength<8)return-1;i.boxSize=t.getUint32(n.Sa),n.Sa+=4;var e=t.getUint32(n.Sa);return i.boxType=n.Ma(e,4),n.Sa+=4,1===i.boxSize&&(i.boxSize=n.za(t),n.Sa+=8),0},s.prototype.Ia=function(t,i){if(!t||!i)return-1;var n=t.getUint32(this.Sa);return i.boxVersion=n>>24,i.flags=16777215&n,this.Sa+=4,0},s.prototype.Aa=function(t,i,n){var e,r=this;if(!t||!i)return null;n=n||0,r.Sa+=4,r.Sa+=4,0===i.boxVersion?(t.getUint32(r.Sa),r.Sa+=4,e=t.getUint32(r.Sa),r.Sa+=4):(r.za(t),r.Sa+=8,e=r.za(t),r.Sa+=8),r.Sa+=2;var s=t.getUint16(r.Sa);r.Sa+=2;for(var o=i.boxOffset+i.boxSize+e,u=[],a=0;a<s;a++){var c=t.getUint32(r.Sa);if(r.Sa+=4,1===c>>>31)return null;var h=2147483647&c;r.Sa+=8,u.push({brStartOffset:o+n,brEndOffset:o+n+h-1}),o+=h}return u},s.prototype.setSingleProp=function(t,i,n){var e=this;if(t&&i){var r=new DataView(t.buffer),s=e.findBoxOffset(r,i);if(!(s<0)){e.Sa=s;var o=e.parseHeader(r,i,s);o&&e.bi(r,o,n)}}},s.prototype.Ma=function(t,i){if(!t||!i)return"";for(var n=new Array(i),e=i-1;e>=0;e--){var r=255&t;n[e]=String.fromCharCode(r),t>>>=8}return n.join("")},s.prototype.za=function(t){var i=this.Sa,n=t.getUint32(i);i+=4;var e=t.getUint32(i);return n*Math.pow(2,32)+e},s.prototype.ka=function(t){for(var i={},n=0;n<t.length;n++){var e=t[n];if(e)switch(e.boxType){case"vsid":i.sourceId=e.sourceId;break;case"ctim":i.cueTime=e.cueTime;break;case"payl":i.cueText=e.cueText}}return i}},43288:function(t){"use strict";t.exports={ftyp:{fullBox:!1,properties:{majorBrand:{length:32,type:"string"},minorVersion:{length:32},compatibleBrands:{type:"array",itemSchema:{length:32,type:"string"}}}},moov:{fullBox:!1},styp:{fullBox:!1,properties:{majorBrand:{length:32,type:"string"},minorVersion:{length:32},compatibleBrands:{type:"array",itemSchema:{length:32,type:"string"}}}},moof:{fullBox:!1},mdat:{fullBox:!1},sidx:{fullBox:!0,properties:{referenceId:{length:32},timescale:{length:32},earliestPresentationTime:{length:32},firstOffset:{length:32},reserved:{length:16},referenceCount:{length:16},referenceData:{type:"array",lengthField:"referenceCount",itemSchema:{referenceType:{length:1},referencedSize:{length:31},subsegmentDuration:{length:32},startsWithSAP:{length:1},sapType:{length:3},sapDeltaTime:{length:28}}}}},emsg:{fullBox:!0,properties:{schemeIdUri:{type:"string"},value:{type:"string"},timescale:{length:32},presentationTimeDelta:{length:32},eventDuration:{length:32},id:{length:32},message:{type:"array",itemSchema:{length:8}}}},trak:{fullBox:!1,parents:["moov"]},mdia:{fullBox:!1,parents:["trak"]},mvhd:{fullBox:!0,parents:["moov"],properties:{creationTime:{length:32},modificationTime:{length:32},timescale:{length:32},duration:{length:32},rate:{length:32},volume:{length:16},reserved:{length:80},matrix:{type:"array",length:9,itemSchema:{length:32}},preDefined:{length:192},nextTrackId:{length:32}}},mdhd:{fullBox:!0,parents:["mdia"],properties:{creationTime:{length:32},modificationTime:{length:32},timescale:{length:32},duration:{length:32},language:{length:16},preDefined:{length:16}}},esds:{fullBox:!0,parents:["mp4a","enca"],properties:{descriptorTag:{length:8},descriptorLength:{length:8},esId:{length:16},streamPriority:{length:8},decoderConfigDesc:{length:8},decoderConfigLength:{length:8},codecTag:{length:8},streamType:{length:8},bufferSize:{length:8},bufferSize2:{length:16},maxBitrate:{length:32},avgBitrate:{length:32},decoderInfoDescriptor:{length:8},decoderInfoDescriptorLength:{length:8},audioSpecificConfig0:{length:8},audioSpecificConfig1:{length:8},audioSpecificConfig2:{length:8,validator:248,validationProperty:"audioSpecificConfig0",validationResult:40},audioSpecificConfig3:{length:8,validator:248,validationProperty:"audioSpecificConfig0",validationResult:40},slDescriptor:{length:8},slDescriptorLength:{length:8},slValue:{length:8}}},mp4a:{fullBox:!1,parents:["stsd"],payload:28,properties:{reserved0:{length:48},dataReferenceIndex:{length:16},reserved1:{length:32},reserved2:{length:32},channelCount:{length:16},sampleSize:{length:16},predefined:{length:16},reserved3:{length:16},sampleRate:{length:32}}},enca:{fullBox:!1,parents:["stsd"],payload:28,properties:{reserved0:{length:48},dataReferenceIndex:{length:16},reserved1:{length:32},reserved2:{length:32},channelCount:{length:16},sampleSize:{length:16},predefined:{length:16},reserved3:{length:16},sampleRate:{length:32}}},stsd:{fullBox:!0,parents:["stbl"],payload:4,properties:{entryCount:{length:32}}},stbl:{fullBox:!1,parents:["minf"]},minf:{fullBox:!1,parents:["mdia"]},traf:{fullBox:!1,parents:["moof"]},tfdt:{fullBox:!0,parents:["traf"],properties:{baseMediaDecodeTime:{length:32}}},tfhd:{fullBox:!0,parents:["traf"],properties:{trackId:{length:32},baseDataOffset:{length:64,validator:1},sampleDescriptionIndex:{length:32,validator:2},defaultSampleDuration:{length:32,validator:8},defaultSampleSize:{length:32,validator:16},defaultSampleFlags:{length:32,validator:32}}},trun:{fullBox:!0,parents:["traf"],properties:{sampleCount:{length:32},dataOffset:{validator:1,length:32},firstSampleFlags:{validator:4,length:32},sampleData:{type:"array",lengthField:"sampleCount",itemSchema:{sampleDuration:{validator:256,length:32},sampleSize:{validator:512,length:32},sampleFlags:{validator:1024,length:32},sampleCompositionTimeOffset:{validator:2048,length:32}}}}},vttc:{fullBox:!1},vtte:{fullBox:!1},vsid:{fullBox:!1,parents:["vttc"],properties:{sourceId:{length:32}}},ctim:{fullBox:!1,parents:["vttc"],properties:{cueTime:{type:"boxstring"}}},payl:{fullBox:!1,parents:["vttc"],properties:{cueText:{type:"boxstring"}}},iden:{fullBox:!1,parents:["vttc"],properties:{cueId:{type:"boxstring"}}},sttg:{fullBox:!1,parents:["vttc"],properties:{settings:{type:"boxstring"}}}}},89730:function(t){"use strict";t.exports=i;function i(){}i.prototype.initSegment=function(t,i){var n=this.ftyp(i),e=this.moov(t),r=new Uint8Array(n.byteLength+e.byteLength);return r.set(n),r.set(e,n.byteLength),r},i.prototype.ftyp=function(t){t=t||"avc1";var i=new Uint8Array([105,115,111,109]),n=new Uint8Array([0,0,0,1]),e=new Uint8Array([t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);return this.Va("ftyp",[i,n,e])},i.prototype.moov=function(t){var i=this,n=[];n.push(i.Ga(t[0].config.duration,t[0].config.timescale));for(var e=0;e<t.length;e++)n.push(i.Ha(t[e]));return n.push(i.Ya(t)),i.Va("moov",n)},i.prototype.moof=function(t,i){var n=this,e=[];e.push(n.qa(t));for(var r=0;r<i.length;r++){var s=n.Wa(i[r]);e.push(s)}return n.Va("moof",e)},i.prototype.mdat=function(t){var i=[];if(t&&t.frames)for(var n=0;n<t.frames.length;n++)i.push(t.frames[n].data);return this.Va("mdat",i)},i.prototype.qa=function(t){var i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,t),this.Qa("mfhd",0,new Uint8Array(3),[i])},i.prototype.Wa=function(t){if(t){var i,n,e=this,r=[],s=32,o=e.Za(t);return s+=o.length,r.push(o),t.frames&&t.frames.length&&(s+=(i=e.$a(t.frames[0].dts)).length,r.push(i)),"video"===t.type&&(s+=(n=e.Xa(t)).length),r.push(e.Ka(t,s)),n&&r.push(n),e.Va("traf",r)}},i.prototype.Za=function(t){var i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,t.streamId),this.Qa("tfhd",0,new Uint8Array([0,0,0]),[i])},i.prototype.$a=function(t){var i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,Math.max(0,t)),this.Qa("tfdt",0,new Uint8Array([0,0,0]),[i])},i.prototype.Ka=function(t,i){var n=this,e=t.frames||[],r=e.length,s=n.Ja(e),o=0,u=s[1],a=0;for(a=0;a<4;a++)o+=u&1<<a?1:0;var c=new Uint8Array(4*o*r),h=new DataView(c.buffer);i+=20+c.length+8;var f=n.tc(r,i),l=0;for(a=0;a<r;a++){var v=e[a];if(1&u&&(h.setUint32(l,v.duration),l+=4),2&u&&(h.setUint32(l,v.size),l+=4),4&u){var d=(v.flags.isLeading<<2|v.flags.dependsOn)<<24|(v.flags.isDependedOn<<6|v.flags.hasRedundancy<<4|v.flags.paddingValue<<1|v.flags.isNonSyncSample)<<16|(240&v.flags.degradationPriority)<<8|15&v.flags.degradationPriority;h.setUint32(l,d),l+=4}8&u&&(h.setUint32(l,v.pts-v.dts),l+=4)}return n.Qa("trun",0,s,[f,c])},i.prototype.Xa=function(t){for(var i=t.frames||[],n=i.length,e=new Uint8Array(n),r=0;r<n;r++){var s=i[r];s.flags&&(e[r]=s.flags.isLeading<<6|s.flags.dependsOn<<4|s.flags.isDependedOn<<2|s.flags.hasRedundancy)}return this.Qa("sdtp",0,new Uint8Array(3),[e])},i.prototype.tc=function(t,i){var n=new Uint8Array(8),e=new DataView(n.buffer);return e.setUint32(0,t),e.setInt32(4,i),n},i.prototype.Ja=function(t){var i=t.length,n=new Uint8Array(3);return n[2]=1,i&&(void 0!==t[0].duration&&(n[1]|=1),void 0!==t[0].size&&(n[1]|=2),void 0!==t[0].flags&&(n[1]|=4),void 0!==t[0].pts&&(n[1]|=8)),n},i.prototype.Ga=function(t,i){var n=new Uint8Array(96),e=new DataView(n.buffer);e.setUint32(0,1),e.setUint32(4,2);var r=i||9e4;return e.setUint32(8,r),t&&e.setUint32(12,t),e.setUint32(16,65536),e.setUint16(20,256),e.setUint32(32,65536),e.setUint32(48,65536),e.setUint32(64,1073741824),e.setUint32(92,4294967295),this.Qa("mvhd",0,new Uint8Array(3),[n])},i.prototype.Ha=function(t){var i=this;t.config.duration=t.config.duration||4294967295;var n=[i.ic(t)];return t.config.useEditBox&&n.push(i.ec(t)),n.push(i.rc(t)),i.Va("trak",n)},i.prototype.ic=function(t){var i=new Uint8Array(80),n=new DataView(i.buffer);return n.setUint32(8,t.streamId),n.setUint32(16,t.config.duration),n.setUint8(32,"audio"===t.type?1:0),n.setUint32(36,65536),n.setUint32(52,65536),n.setUint32(68,1073741824),n.setUint16(72,t.config.width),n.setUint16(76,t.config.height),this.Qa("tkhd",0,new Uint8Array([0,0,7]),[i])},i.prototype.ec=function(t){return this.Va("edts",[this.sc(t)])},i.prototype.sc=function(t){var i=new Uint8Array(16),n=new DataView(i.buffer);return n.setUint32(0,1),n.setUint32(4,0),n.setUint32(8,t.config.offset),n.setUint16(12,1),n.setUint16(14,0),this.Qa("elst",0,new Uint8Array(3),[i])},i.prototype.rc=function(t){var i=this;return i.Va("mdia",[i.oc(t),i.uc(t.type),i.ac(t)])},i.prototype.oc=function(t){var i=new Uint8Array(20),n=new DataView(i.buffer);n.setUint32(0,2),n.setUint32(4,3);var e=t.config.timescale||9e4;return n.setUint32(8,e),n.setUint32(12,t.config.duration),n.setUint16(16,21956),this.Qa("mdhd",0,new Uint8Array(3),[i])},i.prototype.uc=function(t){var i={video:1986618469,audio:1936684398,hint:1751740020},n=new Uint8Array(32),e=new DataView(n.buffer);return e.setUint32(4,i[t]),e.setUint32(20,i[t]),e.setUint32(24,1214344804),e.setUint32(28,1818587648),this.Qa("hdlr",0,new Uint8Array(3),[n])},i.prototype.ac=function(t){var i=this,n="audio"===t.type?i.cc():i.hc();return i.Va("minf",[n,i.fc(),i.lc(t)])},i.prototype.hc=function(){var t=new Uint8Array(8);return this.Qa("vmhd",0,new Uint8Array([0,0,1]),[t])},i.prototype.cc=function(){var t=new Uint8Array(4);return this.Qa("smhd",0,new Uint8Array(3),[t])},i.prototype.fc=function(){return this.Va("dinf",[this.vc()])},i.prototype.vc=function(){var t=new Uint8Array([0,0,0,1]),i=[];return i.push(t),i.push(this.It(new Uint8Array([0,0,1]))),this.Qa("dref",0,new Uint8Array(3),i)},i.prototype.It=function(t){return this.Qa("url ",0,t,[])},i.prototype.dc=function(t){return this.Qa("urn ",0,t,[])},i.prototype.lc=function(t){var i=this;return i.Va("stbl",[i.bc(t),i.mc(),i.yc(),i.gc(),i.wc()])},i.prototype.bc=function(t){var i=this,n="audio"===t.type?i._c(t):i.Ec(t),e=new Uint8Array([0,0,0,1]);return i.Qa("stsd",0,new Uint8Array(3),[e,n])},i.prototype.Ec=function(t){var i=this,n=[];n.push((65280&t.config.ppsLength)>>>8),n.push(255&t.config.ppsLength);try{t.config.ppsLength>0&&(n=n.concat(Array.prototype.slice.call(t.config.pps)))}catch(t){}var e=[];e.push((65280&t.config.spsLength)>>>8),e.push(255&t.config.spsLength);try{t.config.spsLength>0&&(e=e.concat(Array.prototype.slice.call(t.config.sps)))}catch(t){}var r=new Uint8Array(78),s=new DataView(r.buffer);return s.setUint16(6,1),s.setUint16(24,t.config.width),s.setUint16(26,t.config.height),s.setUint32(28,4718592),s.setUint32(32,4718592),s.setUint16(40,1),s.setUint32(42,259613032),s.setUint32(46,1869557110),s.setUint32(50,1768187247),s.setUint32(54,761818227),s.setUint16(74,24),s.setUint16(76,65535),i.Va("avc1",[r,i.Va("avcC",[new Uint8Array([1,t.config.profileIndication,t.config.profileCompatibility,t.config.levelIndication,255].concat([255&t.config.numOfSPS|224]).concat(e).concat([255&t.config.numOfPPS]).concat(n))]),i.Oc()])},i.prototype.Oc=function(){var t=new Uint8Array(12);return new DataView(t.buffer).setUint32(0,1875072),this.Va("btrt",[t])},i.prototype._c=function(t){var i=new Uint8Array(8),n=new DataView(i.buffer);n.setUint16(6,1);var e=new Uint8Array(20);return(n=new DataView(e.buffer)).setUint16(8,t.config.channels),n.setUint16(10,t.config.sampleSize),n.setUint16(16,t.config.samplingFreq),this.Va("mp4a",[i,e,this.Sc(t)])},i.prototype.Sc=function(t){var i=new Uint8Array(27),n=new DataView(i.buffer);return n.setUint8(0,3),n.setUint8(1,25),n.setUint8(5,4),n.setUint8(6,17),n.setUint8(7,64),n.setUint8(8,21),n.setUint16(10,1536),n.setUint8(20,5),n.setUint8(21,2),n.setUint8(22,t.config.audioObjectTypeIndex<<3|t.config.samplingFreqIndex>>>1),n.setUint8(23,t.config.samplingFreqIndex<<7|t.config.channels<<3),n.setUint8(24,6),n.setUint8(25,1),n.setUint8(26,2),this.Qa("esds",0,new Uint8Array(3),[i])},i.prototype.mc=function(){var t=new Uint8Array(4);return this.Qa("stts",0,new Uint8Array(3),[t])},i.prototype.yc=function(){var t=new Uint8Array(4);return this.Qa("stsc",0,new Uint8Array(3),[t])},i.prototype.gc=function(){var t=new Uint8Array(8);return this.Qa("stsz",0,new Uint8Array(3),[t])},i.prototype.wc=function(){var t=new Uint8Array(4);return this.Qa("stco",0,new Uint8Array(3),[t])},i.prototype.Ya=function(t){for(var i=[],n=0;n<t.length;n++)i.push(this.Ac(t[n]));return this.Va("mvex",i)},i.prototype.Ac=function(t){var i=new Uint8Array(20),n=new DataView(i.buffer);return n.setUint32(0,t.streamId),n.setUint32(4,1),n.setUint32(16,65537),"video"!==t.type&&(i[i.length-1]=0),this.Qa("trex",0,new Uint8Array(3),[i])},i.prototype.Qa=function(t,i,n,e){var r=new Uint8Array(1);r[0]=i;var s=[r,n];return s=s.concat(e),this.Va(t,s)},i.prototype.Va=function(t,i){var n=0,e=new Uint8Array([t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]),r=0,s=0;for(s=0;s<i.length;s++)r+=i[s].length;var o=new Uint8Array(r+8);for(new DataView(o.buffer,o.byteOffset,o.byteLength).setUint32(0,o.byteLength),o.set(e,4),n=8,s=0;s<i.length;s++)o.set(i[s],n),n+=i[s].length;return o}},25328:function(t,i,n){"use strict";t.exports=r;var e=n(89730);function r(){this.Tc=null,this.Mc=new e}r.prototype.destroy=function(){this.Tc=null},r.prototype.generate=function(t){if(!t)return null;var i=this,n=[t],e=null,r=null,s=null,o=0;if(t.config.shouldInit){var u="audio"===t.type?"mp41":"avc1";o+=(e=i.jc(n,u))?e.length:0}t.frames.length&&(o+=(r=i.Nc(n))?r.length:0,o+=(s=i.Ic(n))?s.length:0),i.Tc=new Uint8Array(o);var a=0;e&&(i.Tc.set(e,a),a+=e.length),r&&(i.Tc.set(r,a),a+=r.length),s&&(i.Tc.set(s,a),a+=s.length);var c=t.frames.length>0?t.frames[t.frames.length-1].duration:0,h=t.endTime+c;return{data:i.Tc,type:t.type,codec:t.config.codec,mimeType:t.type+'/mp4; codecs="'+t.config.codec+'"',startTime:t.frames.length?t.startTime/t.config.timescale:0,endTime:t.frames.length?h/t.config.timescale:0,endTimestamp:h}},r.prototype.jc=function(t,i){if(!t||!t.length)return null;var n=this.Mc.initSegment(t,i);return n||null},r.prototype.Nc=function(t){var i=this,n=0;return t&&t.length?(t.forEach((function(t){n=t.config.seqNum,t.frames&&t.frames.length&&t.frames.forEach((function(n,e,r){n.size=n.nalUnitSize?n.nalUnitSize+4*n.nalUnits.length:n.data?n.data.length:0,e<r.length-1?n.duration=t.frames[e+1].dts-n.dts:n.duration=e>0?n.dts-t.frames[e-1].dts:t.config.defaultFrameDuration||i.kc(t.type,t.config.timescale),n.duration}))})),i.Mc.moof(n,t)):null},r.prototype.Ic=function(t){var i=this;if(!t||!t.length)return null;var n,e=[],r=0;t.forEach((function(t){"video"===t.type&&t.frames.forEach((function(t){t.normalizedData=new Uint8Array(t.nalUnitSize+4*t.nalUnits.length);var i=new DataView(t.normalizedData.buffer),n=0;t.nalUnits.forEach((function(e){i.setUint32(n,e.data.byteLength),n+=4,t.normalizedData.set(e.data,n),n+=e.data.byteLength})),t.data=t.normalizedData})),(n=i.Mc.mdat(t))&&n.length&&(e.push(n),r+=n.length)}));var s=new Uint8Array(r),o=0;return e.forEach((function(t){s.set(t,o),o+=t.length})),s},r.prototype.kc=function(t,i){return("audio"===t?.0232199546:.0333333333)*i}},14838:function(t,i,n){"use strict";t.exports=h;var e=n(43713),r=n(42990),s=n(6837),o=n(42999),u=n(74641),a=n(27279).AACStream,c=n(47650).HLSEvent.PCR_AVAILABLE;function h(t){var i=this;o.call(i,i.constructor.name),i.Rc=t,i.C=null,i.Lc="start",i.At=new a,i.Cc=!1,i.K={},i.Dc=i.__controller.create(e,t,i.Pc.bind(i)),i.xc=t.lastChunkEndTs?t.lastChunkEndTs.audio:NaN,i.Uc=t.lastFrameDuration?t.lastFrameDuration.audio:NaN,s.isNullOrUndefined(i.Rc.pcr)&&(i.K[c]=i.__controller.addEventListener(c,i.Fc,i))}r.inherits(h,o),h.prototype.destroy=function(){var t=this;t.close(),t.Dc.destroy(),t.At.destroy(),o.prototype.destroy.call(t)},h.prototype.setSource=function(t){this.Bc=t,this.ee()},h.prototype.ee=function(){var t=this;t.Bc&&(t.Bc.addEventListener(u.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.Bc.addEventListener(u.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.Bc.addEventListener(u.DATA_PROCESS_ERROR,(function(i){t.publish(u.DATA_PROCESS_ERROR,i)}),t))},h.prototype.close=function(){var t=this;t.C=null,t.__controller.removeEventListener(c,t.K[c]),t.Dc.close()},h.prototype.append=function(t){var i=this;if(t){var n=t.length;if(n){var e=null,r=0;i.C&&(r=(e=i.C).length);var s=r+n;i.C=new Uint8Array(s),e&&i.C.set(e),i.C.set(t,r),i.bi()}}},h.prototype.Fc=function(t){var i=this;i.Rc.pcr=t,i.bi(),i.__controller.removeEventListener(c,i.K[c])},h.prototype.bi=function(){var t=this,i=t.Rc.pcr;if(!s.isNullOrUndefined(i)){if(t.C&&t.C.length>0){var n;n=t.xc&&t.Uc?i+t.xc+t.Uc:i+t.Rc.startTime*t.Rc.timescale;var e=t.At.readFramesFromBitstream(t.C,n);t.C=t.C.subarray(e)}var r=t.At.getLastFrameDetails();r&&(t.xc=r.timestamp-i,t.Uc=r.duration),(t.At.ready||t.Cc)&&t.zc()}},h.prototype.zc=function(){var t=this,i=t.At.getFrames(),n=i&&i.length>0;if("end"===t.Lc||n){var e=n?i[0].dts:null,r={audio:{frames:i,config:t.At.getConfig()},pcr:e};t.Dc.processSegmentData({avData:r,pos:t.Lc}),"start"===t.Lc&&(t.Lc="middle")}},h.prototype.endOfSegment=function(){var t=this;t.Lc="end",t.Cc=!0,t.bi(),t.Dc.endOfSegment()},h.prototype.Pc=function(t,i){var n;t&&(this.publish(u.DATA_PROCESS_PROGRESS,t,i),t.getParam&&(n=t.getParam("parsedInfo")),"end"===(n?n.position:t.position)&&this.publish(u.DATA_PROCESS_COMPLETE))}},55619:function(t,i,n){"use strict";t.exports=c,t.exports.KEY_METHODS={AES_128:"AES-128",NONE:"NONE"};var e=n(74641),r=n(42990),s=n(42999),o="AES-CBC",u="Key Import is rejected",a="Decryption is rejected";function c(){var t=this;t.Vc=t.__controller.model.userAgent,s.call(t,t.constructor.name),"undefined"==typeof window?t.Gc=crypto||msCrypto:t.Gc=window.crypto||window.msCrypto,t.Gc=t.Gc.subtle||t.Gc.webkitSubtle,t.C=null,t.Hc=null,t.Yc={name:o,length:128,iv:null}}r.inherits(c,s),c.prototype.destroy=function(){this.close(),s.prototype.destroy.call(this)},c.prototype.close=function(){var t=this;t.C=null,t.qc=null,t.Hc=null,t.Wc=null},c.prototype.append=function(t){t&&("key"===t.type?this.Qc(t):this.Zc(t))},c.prototype.Zc=function(t){var i=this;if(t)if(i.qc){var n=new Uint8Array(i.qc.byteLength+t.byteLength);n.set(new Uint8Array(i.qc),0),n.set(new Uint8Array(t),i.qc.byteLength),i.qc=n}else i.qc=t},c.prototype.Qc=function(t){var i=this;t&&(t.initVector||(t.initVector=i.$c(t.seqNum)),i.Hc=t,i.Yc.iv=i.Xc(t.initVector).buffer,11!==i.Vc.ie?i.Gc.importKey("raw",t.data,i.Yc,!0,["decrypt"]).then((function(t){i.Wc=t,i.Kc()}),(function(t){i._n(u,t)})):i.Jc(t))},c.prototype.Jc=function(t){var i=this,n=i.Gc.importKey("raw",t.data,i.Yc,!0,["decrypt"]);n?(n.onerror=function(t){i._n(u,t)},n.oncomplete=function(t){i.Wc=t&&t.target?t.target.result:null,i.Kc()}):i._n("Key Import operation is not created in IE-11")},c.prototype.Kc=function(){var t=this;if(t.Wc&&t.qc&&t.qc.byteLength&&t.Cc){var i=t.qc.buffer,n=i.byteLength-i.byteLength%16,e=i.slice(0,n);t.qc=new Uint8Array(i.slice(n)),11!==t.Vc.ie?t.Gc.decrypt(t.Yc,t.Wc,e).then((function(i){t.ih(i)}),(function(i){t._n(a,i)})).catch((function(i){t._n("Exception",i.toString())})):t.nh(e)}},c.prototype.nh=function(t){var i=this;if(i.Wc&&t){var n=i.Gc.decrypt(i.Yc,i.Wc,t);n?(n.onerror=function(t){i._n(a,t)},n.oncomplete=function(t){t&&t.target&&i.ih(t.target.result)}):i._n("Decryption operation is not created in IE-11")}},c.prototype.ih=function(t){var i=this;i.publish(e.DATA_PROCESS_PROGRESS,new Uint8Array(t)),i.Cc&&(0===i.qc.byteLength?i.publish(e.DATA_PROCESS_COMPLETE):i.Kc())},c.prototype.Xc=function(t){for(var i=[],n=0,e=(t=t.substr(2)).length;n<e;n+=2)i.push(parseInt(t.substr(n,2),16));return new Uint8Array(i)},c.prototype.endOfSegment=function(){var t=this;t.Cc=!0,t.Hc&&t.Wc&&t.Kc()},c.prototype._n=function(t,i){this.publish(e.DATA_PROCESS_ERROR)},c.prototype.$c=function(t){for(var i="0x",n=(t=t||0).toString(16),e=n.length<32?32-n.length:0,r=0;r<e;r++)i+="0";return i+=n}},35267:function(t,i,n){"use strict";t.exports=d;var e=n(6837),r=n(42990),s=n(42999),o=n(74641),u=n(92835),a=n(96473),c=n(35557),h=n(23789),f=n(11849),l=n(27279).NAL_UNIT_TYPES,v=n(12503).StreamTypes;function d(t){var i=this;s.call(i,i.constructor.name),i.C=null,i.Rc=t,i.eh=new a,i.Rr=new u,i.rh=new f}r.inherits(d,s),d.prototype.destroy=function(){var t=this;t.C=null,t.Rr.destroy(),t.rh.destroy(),s.prototype.destroy.call(t)},d.prototype.setSource=function(t){this.Bc=t,this.ee()},d.prototype.ee=function(){var t=this;t.Bc&&(t.Bc.addEventListener(o.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.Bc.addEventListener(o.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.Bc.addEventListener(o.DATA_PROCESS_ERROR,(function(i){t.publish(o.DATA_PROCESS_ERROR,i)}),t))},d.prototype.close=function(){this.C=null},d.prototype.append=function(t){var i=this;if(t){var n=t.length;if(n){var e=null,r=0;i.C&&(r=(e=i.C).length);var s=r+n;i.C=new Uint8Array(s),e&&i.C.set(e),i.C.set(t,r),i.sh()}}},d.prototype.sh=function(){for(var t=this;t.C&&t.C.length>=8;){var i=t.C.length,n=new DataView(t.C.buffer),e=t.Rr.parse(t.C,"styp"),r=t.Rr.parse(t.C,"emsg"),s=t.Rr.parse(t.C,"moof"),u=t.Rr.parse(t.C,"ftyp"),a=t.Rr.parse(t.C,"moov");if(u&&a){t.Rc.userAgent.android&&t.oh();var c=[];u&&c.push(u),a&&c.push(a);var h=t.uh(c),f=t.ah(c),l=new Uint8Array(t.C.buffer.slice(h,f));t.publish(o.DATA_PROCESS_PROGRESS,{position:"init",data:l}),t.C.length>f?t.C=new Uint8Array(t.C.buffer.slice(f)):t.C=null}else{if(!s)return;var d=t.Rr.findBoxOffset(n,"mdat");if(d<0)return;var p=t.Rr.parseHeader(n,"mdat",d),b=[];e&&b.push(e),r&&b.push(r),s&&b.push(s),p&&b.push(p);var m=t.uh(b),y=t.ah(b);if(i<y)return;var g=t.hh(),w=t.Rc.timescale,_=t.fh(),E=t.lh(),O=t.dh(_,g);if(t.Rc.dash){var S=Math.round(t.Rc.startTime*w),A=t.Rc.segDuration*w;E!==S&&(E=S,t.ph(E)),O!==A&&(t.bh(_,A),O=A)}var T=null;t.Rc.type!==v.MAIN&&t.Rc.type!==v.VIDEO||(T=t.mh(d,_,E,w));var M=new Uint8Array(t.C.buffer.slice(m,y));t.Lc="firstByte"===t.Lc?"start":"middle",t.publish(o.DATA_PROCESS_PROGRESS,{position:t.Lc,data:M,cea608TrackData:T,baseTime:E,defaultSampleDuration:g,totalDuration:O,samples:_.samples}),t.Rc.dash&&r&&t.yh(r),t.C.length>y?t.C=new Uint8Array(t.C.buffer.slice(y)):t.C=null}}},d.prototype.endOfSegment=function(){this.sh(),this.publish(o.DATA_PROCESS_COMPLETE)},d.prototype.uh=function(t){if(!t||!t.length)return 0;var i=Number.POSITIVE_INFINITY;return t.forEach((function(t){i=Math.min(i,t.boxOffset)})),i},d.prototype.ah=function(t){if(!t||!t.length)return 0;var i=0,n=t[0];return t.forEach((function(t){i<t.boxOffset&&(i=t.boxOffset,n=t)})),n.boxOffset+n.boxSize},d.prototype.lh=function(){var t=this.Rr.parse(this.C,"tfdt");return t?t.baseMediaDecodeTime:0},d.prototype.ph=function(t){this.Rr.setSingleProp(this.C,"tfdt",{name:"baseMediaDecodeTime",value:t,length:32})},d.prototype.bh=function(t,i){if(t&&t.totalDuration){var n=i-t.totalDuration,e=t.samples[t.samples.length-1].duration+n;e<0&&(e=0),this.Rr.setSingleProp(this.C,"trun",{name:"sampleDuration",value:e,length:32,pos:-1})}},d.prototype.hh=function(){var t=this.Rr.parse(this.C,"tfhd");return t&&t.defaultSampleDuration>0?t.defaultSampleDuration:0},d.prototype.dh=function(t,i){return t.totalDuration?t.totalDuration:t.samples.length*i},d.prototype.fh=function(){var t=[],i=0,n=this.Rr.parse(this.C,"trun");if(n&&n.sampleData)for(var r=n.sampleData.length,s=n.sampleData,o=0;o<r;o++){var u={};s[o].sampleDuration&&(u.duration=s[o].sampleDuration,i+=u.duration),s[o].sampleSize&&(u.size=s[o].sampleSize),s[o].sampleFlags&&(u.flags=s[o].sampleFlags),e.isNullOrUndefined(s[o].sampleCompositionTimeOffset)||(u.cto=s[o].sampleCompositionTimeOffset),t.push(u)}return{samples:t,totalDuration:i}},d.prototype.yh=function(t){var i=this;if(t){var n=i.gh(t.presentationTimeDelta,t.timescale),e=t.message&&i.eh.extractID3FromMessage(t.message),r={payload:e&&i.eh.getID3Payload(e),timestamp:i.Rc.startTime+n},s=new h({type:c.MessageTypes.MESSAGE,id:c.MessageIds.TIMED_METADATA});s.putParam("timedMetadata",r),i.publish(o.DATA_PROCESS_PROGRESS,s)}},d.prototype.gh=function(t,i){return 0===i?0:t/i},d.prototype.oh=function(){var t=this,i=t.Rr.parse(t.C,"esds");if(i){var n=i.audioSpecificConfig0>>3,e=i.audioSpecificConfig0<<1&14|i.audioSpecificConfig1>>7&1,r=i.audioSpecificConfig1>>3&7;if(5===n){var s=(n=2)<<3|(14&e)>>1,o=(1&e)<<7|r<<3;t.Rr.setSingleProp(t.C,"esds",{name:"audioSpecificConfig0",value:s,length:8}),t.Rr.setSingleProp(t.C,"esds",{name:"audioSpecificConfig1",value:o,length:8}),t.Rr.setSingleProp(t.C,"esds",{name:"audioSpecificConfig2",value:0,length:8}),t.Rr.setSingleProp(t.C,"esds",{name:"audioSpecificConfig3",value:0,length:8})}}},d.prototype.mh=function(t,i,n,e){for(var r=[],s=this.C.slice(t+8),o=n,u=0,a=0,c=0;c<i.samples.length;c++){var h=i.samples[c];for(a+=h.size;u<a&&u<s.length;){var f=s[u]<<24|s[u+1]<<16|s[u+2]<<8|s[u+3];if((15&s[u+=4])===l.AD_INFO_SEI)for(var v=this.rh.parse(s,u+1),d=0;d<v.length;d++){var p=v[d];p.pts=o+h.cto,p.dts=o,p.timescale=e,r.push(p)}u+=f}o+=h.duration}return r}},54169:function(t,i,n){"use strict";t.exports=c;var e=n(48169),r=n(74641),s=n(42990),o=n(42999),u=n(55619),a=n(55619).KEY_METHODS;function c(t){if(!t)throw new Error("Invalid argument: data argument of the ProcessorChain is not complete");var i=this;i.Rc=t,i._h=null,i.Eh=null,o.call(i,i.constructor.name),t.encryptionData&&t.encryptionData.method!==a.NONE&&(i._h=i.__controller.create(u,t.encryptionData)),i.Eh=e.create(i.__controller,t.containerFormat,t),i._h&&i.Eh.setSource(i._h),i.Oh=i._h||i.Eh,i.Sh=i.Eh,i.Sh&&(i.Sh.addEventListener(r.DATA_PROCESS_PROGRESS,(function(t,n){i.publish(r.DATA_PROCESS_PROGRESS,t,n)}),i),i.Sh.addEventListener(r.DATA_PROCESS_COMPLETE,(function(t){i.publish(r.DATA_PROCESS_COMPLETE,t)}),i),i.Sh.addEventListener(r.DATA_PROCESS_ERROR,(function(){i.publish(r.DATA_PROCESS_ERROR)}),i))}s.inherits(c,o),c.prototype.destroy=function(){var t=this;t._h&&(t._h.destroy(),t._h=null),t.Eh&&(t.Eh.destroy(),t.Eh=null),t.Oh=null,t.Sh=null,o.prototype.destroy.call(t)},c.prototype.append=function(t){this.Oh&&this.Oh.append(t)},c.prototype.close=function(){this.Oh&&this.Oh.close()},c.prototype.endOfSegment=function(){this.Oh&&this.Oh.endOfSegment()}},74641:function(t){"use strict";t.exports={DATA_PROCESS_PROGRESS:"dataProcessProgress",DATA_PROCESS_ERROR:"dataProcessError",DATA_PROCESS_COMPLETE:"dataProcessComplete"}},48169:function(t,i,n){"use strict";var e=n(48520),r=n(14838),s=n(35267),o=n(841);t.exports.create=function(t,i,n){if(!t||!i||"function"!=typeof t.create)return null;var u;switch(i){case"mp4":u=s;break;case"aac":u=r;break;case"webm":u=o;break;default:u=e}return t.create(u,n)}},48520:function(t,i,n){"use strict";t.exports=u;var e=n(24892),r=n(42990),s=n(42999),o=n(74641);function u(t){var i=this;s.call(i,i.constructor.name),i.Rc=t,i.Ah=i.__controller.create(e,t,i.Pc.bind(i))}r.inherits(u,s),u.prototype.destroy=function(){this.Ah.destroy(),s.prototype.destroy.call(this)},u.prototype.setSource=function(t){this.Bc=t,this.ee()},u.prototype.ee=function(){var t=this;t.Bc&&(t.Bc.addEventListener(o.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.Bc.addEventListener(o.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.Bc.addEventListener(o.DATA_PROCESS_ERROR,(function(i){t.publish(o.DATA_PROCESS_ERROR,i)}),t))},u.prototype.close=function(){this.Ah.close()},u.prototype.append=function(t){this.Ah.append(t)},u.prototype.endOfSegment=function(){this.Ah.endOfSegment()},u.prototype.Pc=function(t){if(t){this.publish(o.DATA_PROCESS_PROGRESS,t);var i=t.parsedInfo;i&&"end"===i.position&&this.publish(o.DATA_PROCESS_COMPLETE,t)}}},841:function(t,i,n){"use strict";t.exports=o;var e=n(42990),r=n(42999),s=n(74641);function o(t){var i=this;r.call(i,i.constructor.name),i.C=null,i.Rc=t}e.inherits(o,r),o.prototype.destroy=function(){this.C=null,r.prototype.destroy.call(this)},o.prototype.setSource=function(t){this.Bc=t,this.ee()},o.prototype.ee=function(){var t=this;t.Bc&&(t.Bc.addEventListener(s.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.Bc.addEventListener(s.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.Bc.addEventListener(s.DATA_PROCESS_ERROR,(function(i){t.publish(s.DATA_PROCESS_ERROR,i)}),t))},o.prototype.close=function(){this.C=null},o.prototype.append=function(t){if(t&&t.length){var i=new Uint8Array(t);this.publish(s.DATA_PROCESS_PROGRESS,{position:this.Lc,data:i})}},o.prototype.endOfSegment=function(){this.publish(s.DATA_PROCESS_COMPLETE)}},25877:function(t){"use strict";function i(t){var i=this;i.Th=t,i.Bt=null,i.Mh=!1,i.jh=0,i.Nh=[],i.Ih=null,i.kh=0,i.Rh=0,i.Lh=0,i.Ch=[],i.Dh=0,i.Ph=0,i.xh=0,i.Uh=!1,i.Fh=4}t.exports=i,i.prototype.destroy=function(){this.Th=null},i.prototype.parse=function(t,i){var n=this;n.Bt=i;for(var e=0;e<t.length;e++)n.Bh(t[e]);n.Bt=null},i.prototype.Bh=function(t){var i=this;if(i.zh(t.data1)&&i.zh(t.data2)&&(i.xh=t.pts/t.timescale,t.data1&=127,t.data2&=127,0!==t.data1||0!==t.data2))if(t.data1>=1&&t.data1<=14&&1===t.fieldType&&(i.Mh=!0),15===t.data1&&i.Mh&&1===t.fieldType)i.Mh=!1;else{if(t.data1>=16&&t.data1<31){if(i.Vh(t.data1,t.data2))return;if(8!=(8&t.data1)&&0===t.fieldType?i.Gh(0):8==(8&t.data1)&&0===t.fieldType?i.Gh(1):8!=(8&t.data1)&&1===t.fieldType?i.Gh(2):8==(8&t.data1)&&1===t.fieldType&&i.Gh(3),null===i.Ih)return;i.Hh(t),i.Yh(t),i.qh(t);var n=119&t.data1;17===n&&48==(112&t.data2)?i.Wh(15&t.data2):18!==n&&26!==n||64&t.data2?19!==n&&27!==n||64&t.data2||i.Qh(63&t.data2):i.Zh(63&t.data2)}else{if(i.Mh&&1===t.fieldType)return;if(t.data1>=32&&t.data1<=126){if(0===t.fieldType&&2===i.jh?i.Gh(0):0===t.fieldType&&3===i.jh?i.Gh(1):1===t.fieldType&&0===i.jh?i.Gh(2):1===t.fieldType&&1===i.jh&&i.Gh(3),null===i.Ih)return;var e=i.$h(t.data1);if(i.Ih.appendChar(e),t.data2>=32&&t.data2<=126){var r=i.$h(t.data2);i.Ih.appendChar(r)}}}i.kh=t.data1,i.Rh=t.data2}},i.prototype.Hh=function(t){var i=this,n=119&t.data1,e=96&t.data2;17===n&&64===e?(i.Ih.startNewRow(1),i.Xh(t.data2)):17===n&&96===e?(i.Ih.startNewRow(2),i.Xh(t.data2)):18===n&&64===e?(i.Ih.startNewRow(3),i.Xh(t.data2)):18===n&&96===e?(i.Ih.startNewRow(4),i.Xh(t.data2)):21===n&&64===e?(i.Ih.startNewRow(5),i.Xh(t.data2)):21===n&&96===e?(i.Ih.startNewRow(6),i.Xh(t.data2)):22===n&&64===e?(i.Ih.startNewRow(7),i.Xh(t.data2)):22===n&&96===e?(i.Ih.startNewRow(8),i.Xh(t.data2)):23===n&&64===e?(i.Ih.startNewRow(9),i.Xh(t.data2)):23===n&&96===e?(i.Ih.startNewRow(10),i.Xh(t.data2)):16===n&&64===e?(i.Ih.startNewRow(11),i.Xh(t.data2)):19===n&&64===e?(i.Ih.startNewRow(12),i.Xh(t.data2)):19===n&&96===e?(i.Ih.startNewRow(13),i.Xh(t.data2)):20===n&&64===e?(i.Ih.startNewRow(14),i.Xh(t.data2)):20===n&&96===e&&(i.Ih.startNewRow(15),i.Xh(t.data2))},i.prototype.Yh=function(t){17===(119&t.data1)&&32==(112&t.data2)&&(this.Xh(t.data2),this.Ih.appendChar(" "))},i.prototype.qh=function(t){var i=this,e=119&t.data1;20===e&&32===t.data2?i.Ih.setMode(n.POP_ON_MODE):20===e&&33===t.data2?i.Ih.backspace():20===e&&36===t.data2?i.Ih.clearEndOfRow():20===e&&37===t.data2?i.Ih.setMode(n.ROLL_UP_MODE,2):20===e&&38===t.data2?i.Ih.setMode(n.ROLL_UP_MODE,3):20===e&&39===t.data2?i.Ih.setMode(n.ROLL_UP_MODE,4):20===e&&41===t.data2?i.Ih.setMode(n.PAINT_ON_MODE):20===e&&44===t.data2?i.Ih.eraseDisplayMemory():20===e&&45===t.data2?i.Ih.linebreak():20===e&&46===t.data2?i.Ih.eraseNondisplayMemory():20===e&&47===t.data2?i.Ih.endOfCaption():23===e&&33===t.data2?i.Ih.setIndent(1):23===e&&34===t.data2?i.Ih.setIndent(2):23===e&&35===t.data2&&i.Ih.setIndent(3)},i.prototype.Wh=function(t){var i=["®","°","½","¿","™","¢","£","♪","à"," ","è","â","ê","î","ô","û"],n=t;n<0||n>=i.length||this.Ih.appendChar(i[n])},i.prototype.Zh=function(t){var i=["Á","É","Ó","Ú","Ü","ü","´","¡","*","'","-","©","℠","·",'"','"',"À","Â","Ç","È","Ê","Ë","ë","Î","Ï","ï","Ô","Ù","ù","Û","«","»"],n=t-32;n<0||n>=i.length||this.Ih.appendChar(i[n])},i.prototype.Qh=function(t){var i=["Ã","ã","Í","Ì","ì","Ò","ò","Õ","õ","{","}","\\","^","_","|","~","Ä","ä","Ö","ö","ß","¥","¤","¦","Å","å","Ø","ø","┌","┐","└","┘"],n=t-32;n<0||n>=i.length||this.Ih.appendChar(i[n])},i.prototype.zh=function(t){return[0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0][t]},i.prototype.$h=function(t){return 42===t?"á":92===t?"é":94===t?"í":95===t?"ó":96===t?"ú":123===t?"ç":124===t?"÷":125===t?"Ñ":126===t?"ñ":String.fromCharCode(t)},i.prototype.Vh=function(t,i){return this.kh===t&&this.Rh===i},i.prototype.Xh=function(t){var i=this;if(16==(16&t)){var n=0;0==(14&t)?n=0:2==(14&t)?n=4:4==(14&t)?n=8:6==(14&t)?n=12:8==(14&t)?n=16:10==(14&t)?n=20:12==(14&t)?n=24:14==(14&t)&&(n=28),i.Ih.setColumn(n)}else 14==(14&t)&&i.Ih.setItalic();1==(1&t)&&i.Ih.setUnderlined()},i.prototype.Gh=function(t){var i=this;i.Nh[t]||(i.Nh[t]=new e(t,i.onFlipMemories.bind(this),i.onEraseDisplayMemory.bind(this),i.onLinebreak.bind(this))),i.jh=t,i.Ih=i.Nh[t]},i.prototype.getChannel=function(t){return this.Nh[t]},i.prototype.translate608RowToVTTLine=function(t){var i=[10,15.33,20.66,26,31.33,36.66,42,47.33,52.66,58,63.33,68.66,74,79.33,84.66];return t<1||t>i.length?i[0]:i[t-1]},i.prototype.translate608ColumnToVTTPosition=function(t){var i=0;return t<=4?i=10:t>=5&&t<=8?i=20:t>=9&&t<=12?i=30:t>=13&&t<=16?i=40:t>=17&&t<=20?i=50:t>=21&&t<=24?i=60:t>=25&&t<=29?i=70:t>=29&&(i=80),i},i.prototype.onFlipMemories=function(t){var i=this;i.Uh&&i.onEraseDisplayMemory(t);var e=i.getChannel(t);if(e.getMode()===n.POP_ON_MODE){if(i.Dh=i.xh,t===i.Lh){var r=i.Ch;i.Ch=e.getCaptionRows(),e.setCaptionRows(r);for(var s=0;s<i.Ch.length;s++)i.Ch[s]&&i.Ch[s].hasCaptionData()&&(i.Uh=!0)}e.eraseNondisplayMemory()}},i.prototype.Kh=function(t,i){var n=[];n.push("snapToLines:false"),n.push("align:start");var e="line:"+this.translate608RowToVTTLine(i)+"%";n.push(e);var r="position:"+this.translate608ColumnToVTTPosition(t)+"%";return n.push(r),n},i.prototype.Jh=function(t,i,n){for(var e=i[t].toString();t<i.length-1;){var r=i[t+1];if(r&&r.hasCaptionData()){var s=r.toString();s.length>0&&(e+="\n"+s),n&&r.reset(),t++}else t++}return{rowIdx:t,rowText:e}},i.prototype.onEraseDisplayMemory=function(t){var i=this,e=i.getChannel(t),r=e.getMode();if(t===i.Lh){if(r===n.POP_ON_MODE){i.Ph=i.xh;for(var s=0;s<i.Ch.length;s++){var o=i.Ch[s];if(o&&o.hasCaptionData()){var u=o.getStartPosition(),a=i.Kh(u,s+1),c=i.Jh(s,i.Ch,!0);s=c.rowIdx;var h=c.rowText;i.Ph-i.Dh>i.Fh&&(i.Ph=i.Dh+i.Fh),i.tf(h,a),i.Dh+=.001,o.reset()}}}else r===n.ROLL_UP_MODE||r===n.PAINT_ON_MODE?(-1!==i.Dh&&0!==i.Dh||(i.Dh=i.xh),i.Ph>i.Dh&&(i.Dh=i.Ph),i.nf(t),e.eraseNondisplayMemory()):r&&e.eraseNondisplayMemory();i.Uh=!1}else e.eraseNondisplayMemory()},i.prototype.onLinebreak=function(t){var i=this;if(t===i.Lh){var e=i.getChannel(t).getMode();e!==n.ROLL_UP_MODE&&e!==n.PAINT_ON_MODE||(-1!==i.Dh&&0!==i.Dh||(i.Dh=i.xh),i.Ph>i.Dh&&(i.Dh=i.Ph),i.nf(t))}},i.prototype.nf=function(t){for(var i=this,n=i.getChannel(t).getCaptionRows(),e=0;e<n.length;e++){var r=n[e];if(r&&r.hasCaptionData()){var s=i.Kh(12,e),o=i.Jh(e,n,!1);e=o.rowIdx;var u=o.rowText;i.Ph=i.Dh+1.5,i.tf(u,s),i.Dh+=.001}}i.Dh=-1},i.prototype.tf=function(t,i){var n=this,e="WEBVTT\nX-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:0\n\n";e+=n.ef(n.Dh),e+=" --\x3e ",e+=n.ef(n.Ph);for(var r=0;r<i.length;r++)e+=" "+i[r];if(e+="\n",e+=t+"\n",n.Th){var s={discontinuity:n.Bt.discontinuity,sequenceNum:n.Bt.seqNum,startTime:n.Bt.startTime,programDateTime:n.Bt.programDateTime,url:n.Bt.url,duration:n.Bt.duration,clockReference:0,localCueTime:0,mpegTSTime:0,data:e,offset:0,adjustedTime:0};n.Th(s)}},i.prototype.ef=function(t){var i=this,n=Math.floor(t/60/60);n=i.rf(n);var e=Math.floor(t/60%60);e=i.rf(e);var r=(t%60).toFixed(3);return n+":"+e+":"+(r=i.rf(r))},i.prototype.rf=function(t){return t<10&&(t="0"+t),t};var n={POP_ON_MODE:0,ROLL_UP_MODE:1,PAINT_ON_MODE:3};function e(t,i,n,e){var r=this;r.sf=t,r.uf=0,r.af=[],r.cf=null,r.hf=null,r.ff=null,r.lf=i,r.vf=n,r.df=e}function r(){var t=this;t.pf=32,t.bf=-1,t.mf=!1,t.yf=!1,t.gf=0,t.wf=[],t.MAX_CHARS=32}function s(){var t=this;t.character="",t.isUnderlined=!1,t.isItalic=!1}e.prototype.setMode=function(t,i){this.ff=t,i<2?i=2:i>4&&(i=4),this.uf=i},e.prototype.getMode=function(){return this.ff},e.prototype._f=function(t){var i=this;if(!(t<1||t>15)){(t<i.uf||null===i.cf)&&(i.cf=i.uf);for(var n=i.af[0],e=0;e<i.af.length;e++)e<i.af.length-1?i.af[e]=i.af[e+1]:i.af[e]=n,(e>i.cf||i.cf-i.uf>0&&e<i.cf-i.uf)&&i.af[e]&&i.af[e].reset()}},e.prototype.Ef=function(){var t=this;t.df&&t.df(t.sf)},e.prototype.startNewRow=function(t){if(!(t<1||t>15)){var i=this;i.ff===n.ROLL_UP_MODE?i._f(t):i.ff===n.PAINT_ON_MODE&&i.Ef(),i.cf=t,i.hf=i.getCaptionRow(t),i.hf.reset()}},e.prototype.getCaptionRows=function(){return this.af},e.prototype.setCaptionRows=function(t){this.af=t},e.prototype.setIndent=function(t){this.hf&&this.hf.tabIndex(t)},e.prototype.setColumn=function(t){this.hf&&this.hf.columnIndex(t)},e.prototype.setItalic=function(){this.hf&&this.hf.setIsItalic(!0)},e.prototype.setUnderlined=function(){this.hf&&this.hf.setIsUnderlined(!0)},e.prototype.appendChar=function(t){this.hf&&this.hf.writeChar(t)},e.prototype.linebreak=function(){var t=this;t.df&&t.df(t.sf)},e.prototype.eraseNondisplayMemory=function(){for(var t=this,i=0;i<t.af.length;i++)t.af[i]&&t.af[i].reset()},e.prototype.clearEndOfRow=function(){this.hf&&this.hf.clearToEnd()},e.prototype.backspace=function(){this.hf&&this.hf.backspace()},e.prototype.eraseDisplayMemory=function(){this.vf(this.sf)},e.prototype.endOfCaption=function(){this.lf(this.sf)},e.prototype.getCaptionRow=function(t){var i=this;if(t<1||t>15)return null;var n=t-1;return i.af[n]||(i.af[n]=new r),i.af[n]},r.prototype.reset=function(){var t=this;t.yf=!1,t.mf=!1;for(var i=0;i<t.wf.length;i++)t.wf[i]&&t.wf[i].reset();t.gf=0,t.pf=32,t.bf=-1},r.prototype.clearToEnd=function(){for(var t=this,i=t.gf;i<t.wf.length;i++)t.wf[i]&&t.wf[i].reset()},r.prototype.columnIndex=function(t){t<0||t>=this.MAX_CHARS||(this.gf=t)},r.prototype.tabIndex=function(t){this.Of(t)},r.prototype.writeChar=function(t){var i=this,n=i.wf[i.gf];n||(i.wf[i.gf]=new s,n=i.wf[i.gf]),n.setValue(t,i.yf,i.mf),i.gf<i.pf&&(i.pf=i.gf),i.gf>i.bf&&(i.bf=i.gf),i.Of(1)},r.prototype.backspace=function(){var t=this;t.gf>0&&(t.wf[t.gf].reset(),t.gf--)},r.prototype.Of=function(t){var i=this;i.gf+t<i.MAX_CHARS?i.gf+=t:i.gf=i.MAX_CHARS-1},r.prototype.setIsItalic=function(t){this.yf=t},r.prototype.setIsUnderlined=function(t){this.mf=t},r.prototype.hasCaptionData=function(){return 32!==this.pf||-1!==this.bf},r.prototype.getCharacterAt=function(t){return t<0||t>=this.MAX_CHARS?null:this.wf[t]},r.prototype.getStartPosition=function(){return this.pf},r.prototype.getEndPosition=function(){return this.bf},r.prototype.toString=function(){var t=this,i="",n=!1,e=!1;if(t.hasCaptionData())for(var r=t.pf;r<=t.bf;r++){var s=t.getCharacterAt(r);s.isItalic&&!e?(i+="<i>",e=!0):e&&!s.isItalic&&(i+="</i>",e=!1),s.isUnderlined&&!n?(i+="<u>",n=!0):n&&!s.isUnderlined&&(i+="</u>",n=!1),"&"===s.character?i+="&amp;":"<"===s.character?i+="&lt;":">"===s.character?i+="&gt;":i+=s.character}return n&&(i+="</u>",n=!1),e&&(i+="</i>",e=!1),i},s.prototype.reset=function(){var t=this;t.character="",t.isItalic=!1,t.isUnderlined=!1},s.prototype.setValue=function(t,i,n){var e=this;e.character=t,e.isItalic=i,e.isUnderlined=n}},94939:function(t,i,n){"use strict";i.Loader=l,i.LoadRequest=function(t){var i=this;if(!t||e.isNullOrUndefined(t.maxRetries)||e.isNullOrUndefined(t.requestTimeout)||e.isNullOrUndefined(t.chunkedRequestTimeout))throw new Error("[LoadRequest] Invalid Arguments: Request details are not complete");i.method=t.method||"GET",i.chunked=t.isChunkedLoad||!1,i.useMSStream=t.useMSStream||!1,i.maxRetries=t.maxRetries,i.retryExclusion=t.retryExclusion,i.requestTimeout=1e3*t.requestTimeout,i.chunkedRequestTimeout=1e3*t.chunkedRequestTimeout,i.responseType=t.responseType||"text",i.headerFields=t.headerFields,i.minChunkSize=e.isNullOrUndefined(t.minChunkSize)?1e5:t.minChunkSize,i.stopStreamLoadOnError=t.stopStreamLoadOnError,i.url=t.url,i.withCredentials=t.withCredentials||!1,i.withResponseHeaders=t.withResponseHeaders||!1},i.Events={COMPLETE:"complete",ERROR:"error",PROGRESS:"progress",BYTES_LOADED:"bytesLoaded"};var e=n(6837),r=n(42990),s=n(42999),o=n(57572),u=n(30902),a=0,c=3,h=4,f=1;function l(t,i,n){var e=this;if(!t)throw new Error("[Loader] Invalid Arguments: Loader created without a load request");s.call(e,"Loader"),e.request=t,e.Qe=n,e.window=e.Qe?null:i||window,e.Sf=null,e.Af={},e.Tf=[1e3,1e3,2e3,2e3,3e3,3e3,5e3],e.Mf=5e3,e.jf=new u(1e3,1),e.jf.addEventListener(e.load,e),e.MIN_TIMEOUT=2e3,e.MAX_TIMEOUT=15e3,e.Nf=0,e._t=t.maxRetries,e.If=new u(e.kf(),1),e.If.addEventListener(e.Rf,e)}function v(t,i,n){l.call(this,t,i,n)}function d(t,i,n){v.call(this,t,i,n)}i.getLoader=function(t,i,n){if(!t)throw new Error("[LoaderFactory] Invalid Arguments: Loader created without a load request");return t.chunked?t.useMSStream?new d(t,i,n):new v(t,i,n):new l(t,i,n)},r.inherits(l,s),r.inherits(v,l),r.inherits(d,v),l.prototype.load=function(t,n){var e=this;if(!e.request)throw new Error("[Loader] InvalidStateError: load called without a request");if(e.url=t||e.request.url,!e.url)return e.publish(i.Events.ERROR,new o.Error(o.ERR_XHR_LOAD));e.Lf(),e.Sf=e.Qe?new XMLHttpRequest:new e.window.XMLHttpRequest,e.Sf.Cf=0,e.Sf.Df=!1,e.Pf(),e.Sf.withCredentials=e.request.withCredentials,e.Sf.open(e.request.method,e.url,!0),e.xf=e.request.headerFields,e.xf&&Object.keys(e.xf).forEach((function(t){e.Sf.setRequestHeader(t,e.xf[t])})),e.Uf(),e.If.reset(),e.If.start(),e.Sf.send(n)},l.prototype.Uf=function(){this.Sf.responseType=this.request.responseType},l.prototype.Pf=function(){var t=this;t.Sf.onerror=t.Wo.bind(t),t.Sf.onreadystatechange=function(){if(t.Sf&&t.Sf.readyState===h&&!t.Sf.Df){if(!t.Ff(t.Sf.status))return t.If.stop(),t.Wo();t.Sf.Df=!0;var n={data:t.Sf.response};if(t.request.withResponseHeaders){var e=t.Sf.getAllResponseHeaders();if(e){var r=e.trim().split(/[\r\n]+/),s=[];r.forEach((function(t){var i=t.split(": "),n=i.shift(),e=i.join(": ");s.push({name:n,value:e})})),n.headers=s}}t.publish(i.Events.COMPLETE,n),t.If.stop()}}},l.prototype.Bf=function(t){var i=new RegExp(t+": (.*)","ig"),n=this.Sf.getAllResponseHeaders(),e=i.exec(n);return e&&e.length>1?e[1]:""},l.prototype.Ff=function(t){return t>=200&&t<300},l.prototype.zf=function(){Date.now(),this.Vf;this.If.stop()},l.prototype.Rf=function(){this.zf(),this.Wo()},l.prototype.Gf=function(){this.reset(),this.Hf(o.ERR_PARTIAL_LOAD)},l.prototype.Yf=function(){var t=this,i=t.Tf.length,n=t.Nf;return n<i?t.Tf[n]:t.Tf[i-1]+t.Mf*(n-i+1)},l.prototype.Wo=function(){var t=this;t.Lf(),t.Nf<t._t&&(!t.request.retryExclusion||-1===t.request.retryExclusion.indexOf(t.Sf.status))?(t.Nf++,t.jf.delay=t.Yf(),t.jf.reset(),t.jf.start(),t.request.headerFields&&t.Sf.readyState===h&&0===t.Sf.status&&(t.request.headerFields=null)):t.request.stopStreamLoadOnError?t.Hf(o.ERR_XHR_LOAD_LIVE_PAUSE):403===t.Sf.status?t.Hf(o.ERR_XHR_LOAD_FORBIDDEN):t.Hf(o.ERR_XHR_LOAD)},l.prototype.Hf=function(t){this.publish(i.Events.ERROR,new o.Error(t))},l.prototype.Lf=function(){var t=this;t.Sf&&t.Sf.readyState!==h&&t.Sf.readyState!==a&&(t.Sf.Df=!0,t.Sf.abort()),t.jf.stop(),t.If.stop()},l.prototype.kf=function(){var t=this,i=t.request,n=i.chunked?i.chunkedRequestTimeout:i.requestTimeout;return isNaN(n)||n<t.MIN_TIMEOUT||n>t.MAX_TIMEOUT?t.MAX_TIMEOUT:n},l.prototype.reset=function(){var t=this;t.Lf(),t.Sf=null,t.request=null},l.prototype.destroy=function(){var t=this;t.reset(),t.jf.destroy(),t.If.destroy(),s.prototype.destroy.call(t)},v.prototype.destroy=function(){l.prototype.destroy.call(this)},v.prototype.Pf=function(){var t=this,n=function(){if(t.Sf&&!t.Sf.Df&&(t.Sf.readyState===h||t.Sf.readyState===c)){if(!t.Ff(t.Sf.status))return t.If.stop(),0===t.Sf.Cf?t.Wo():void t.Gf();var n=t.Sf.responseText,e=n.length-t.Sf.Cf;if(e>0&&(t.If.stop(),t.publish(i.Events.BYTES_LOADED,n.length,t.Af)),e>t.request.minChunkSize||t.Sf.readyState===h){for(var r=new Uint8Array(e),s=0;s<e;s++)r[s]=255&n.charCodeAt(s+t.Sf.Cf);t.Sf.Cf=n.length,t.publish(i.Events.PROGRESS,r,n.length)}t.If.start(),t.Sf.readyState===h&&(t.Sf.Df=!0,t.publish(i.Events.COMPLETE),t.If.stop())}};t.Sf.onreadystatechange=n,t.Sf.onprogress=n},v.prototype.Rf=function(){var t=this;t.zf(),t.Sf.Cf>0&&t.Sf.readyState===c?t.Gf():t.Wo()},v.prototype.Uf=function(){this.Sf.overrideMimeType("text/plain; charset=x-user-defined")},d.prototype.destroy=function(){v.prototype.destroy.call(this)},d.prototype.Pf=function(){var t=this;t.Sf.onreadystatechange=function(){if(t.Sf.readyState===c){if(!t.Ff(t.Sf.status))return t.If.stop(),t.Wo();var n=t.Sf.response;if(t.qf||(t.qf=t.Qe?new MSStreamReader:new t.window.MSStreamReader),t.qf.readyState===f)return;t.qf.readAsArrayBuffer(n),t.qf.onprogress=function(){t.If.stop();var n=t.qf.result;n.byteLength>0&&t.publish(i.Events.BYTES_LOADED,n.byteLength,t.Af);var e=new Uint8Array(n.slice(t.Sf.Cf,n.byteLength));t.Sf.Cf=n.byteLength,t.publish(i.Events.PROGRESS,e,n.byteLength),t.If.start()},t.qf.onload=function(){t.If.stop(),t.publish(i.Events.COMPLETE)},t.qf.onerror=function(){t.If.stop()}}}},d.prototype.Uf=function(){this.Sf.responseType="ms-stream"},d.prototype.reset=function(){var t=this;l.prototype.reset.call(t),t.qf&&t.qf.abort()}},1788:function(t,i,n){"use strict";t.exports=m;var e=n(71598),r=n(10574).StreamingMode,s=n(12503).StreamTypes,o="#EXT-X-STREAM-INF:",u="#EXT-X-MEDIA:",a="#EXTINF:",c="#EXT-X-MEDIA-SEQUENCE:",h="#EXT-X-DISCONTINUITY-SEQUENCE:",f="#EXT-X-TARGETDURATION:",l="#EXT-X-PROGRAM-DATE-TIME:",v="#EXT-X-DATERANGE:",d="#EXT-X-BYTERANGE:",p="#EXT-X-MAP",b="#EXT-X-KEY";function m(){this.Wf=[],this.ERRORS={INVALID_M3U8:1,EMPTY_DATA:2,NO_SEGMENTS:3}}m.prototype.parse=function(t){if(!t)return null;var i=this,n={},e=t.rawData;if(""===e||!e)return n.error=i.ERRORS.EMPTY_DATA,n;var r=e.split("\n");return 0!==r[0].indexOf("#EXTM3U")?(n.error=i.ERRORS.INVALID_M3U8,n):e.indexOf(a)>0?i.Qf(r,t):e.indexOf(o)>0?i.Zf(r,t):(n.error=i.ERRORS.INVALID_M3U8,n)},m.prototype.Zf=function(t,i){for(var n=this,r=[],s={},a=i.url,c=i.cdn,h=0;h<t.length;h++){var f=null,l=t[h].trim();if(0===l.indexOf(o)){f=n.$f(n.Xf(l.substr(18)));do{l=t[++h]}while(l.match(/^\s*$/));f.url=e.extractURL(l,a),f.cdn=c,r.push(f)}else 0===l.indexOf(u)&&(l=l.replace(/"/g,""),f=n.Kf(n.Xf(l.substr(13)),a),n.Jf(s,f))}return{streamInfoList:r,renditionGroups:s}},m.prototype.Jf=function(t,i){if(i.type&&i.groupId){var n=t[i.type];n||(n=t[i.type]={});var e=n[i.groupId];e&&e.length?e.push(i):n[i.groupId]=[i]}},m.prototype.Xf=function(t){for(var i={},n=t.indexOf("=");-1!==n;){var e=t.substr(0,n),r=0;'"'===(t=t.substr(n+1)).charAt(0)?(r=t.substr(1).indexOf('"'),i[e]=t.substr(1,r),t=t.substr(r+3)):(r=-1===(r=t.indexOf(","))?t.length:r,i[e]=t.substr(0,r),t=t.substr(r+1)),n=t.indexOf("=")}return i},m.prototype.Qf=function(t,i){var n=this,o={},u={},m=[],y=[],g={streamInfoList:[],renditionGroups:{}};if(!t||!t.length)return g;var w=i.url,_=i.index;u.discontinuity=!1,u.sequenceNum=0,u.startTime=0,u.programDateTime=0,u.brStartOffset=-1,u.brEndOffset=-1,u.levelIndex=_,o.discontinuitySeqNum=0,o.index=_,o.targetDuration=0,o.hasEndList=!1,o.url=w,o.duration=0,o.containerFormat="",o.streamingMode=r.HLS,o.dateRanges=[];for(var E=0;E<t.length;E++){var O=t[E].trim();if(!O.match(/^\s*$/)){if(0===O.indexOf(c)&&(o.seqNum=parseInt(O.substr(22)),u.sequenceNum=o.seqNum),0===O.indexOf(h))o.discontinuitySeqNum=parseInt(O.substr(30));else if(0===O.indexOf("#EXT-X-DISCONTINUITY"))u.discontinuity=!0;else if(0===O.indexOf(f))o.targetDuration=parseFloat(O.substr(22));else if(0===O.indexOf(p)){var S=n.tl(O,w);u.initSegment=S}else if(0===O.indexOf(b))u.encryptionData=n.il(O,w);else if(0===O.indexOf(l))u.programDateTime=n.rl(O);else if(0===O.indexOf(v)){var A=n.ol(O);A&&o.dateRanges.push(A)}else if(0===O.indexOf(a)){var T=O.indexOf(",");u.duration=-1===T?parseFloat(O.substr(8)):parseFloat(O.substr(8,T-8)),o.duration+=u.duration;do{O=t[++E].trim()}while(O.match(/^\s*$/));if(0===O.indexOf(d)){var M=O.substr(17,O.length-17),j=M.indexOf("@");u.brStartOffset=parseInt(M.substr(j+1,M.length-j-1)),u.brEndOffset=u.brStartOffset+parseInt(M.substr(0,j))-1;do{O=t[++E].trim()}while(O.match(/^\s*$/))}u.url=e.extractURL(O,w),u.containerFormat=e.getContainerFormat(u.url),o.containerFormat=u.containerFormat,m.push(e.copySegmentInfo(u)),u.startTime+=u.duration,u.sequenceNum++,u.programDateTime=0,u.brStartOffset=-1,u.brEndOffset=-1,u.encryptionData&&(u.encryptionData.initVector=null)}else 0===O.indexOf("#EXT-X-ENDLIST")&&(o.hasEndList=!0);if(O.indexOf("#EXT-X-CUE-OUT:")>=0){var N=n.ul(u.sequenceNum,O);y.push(N)}}}if(m.length&&(o.segmentInfoList=m,o.initSegment=m[0].initSegment),y.length&&(o.cuepointList=y),i.streamType&&i.streamType!==s.MAIN){var I=g.renditionGroups;o.type=i.streamType,o.groupId=i.groupId,o.name=i.name,n.Jf(I,o)}else g.streamInfoList.push(o);return g},m.prototype.$f=function(t){if(!t)return null;var i={streamingMode:r.HLS};return Object.keys(t).forEach((function(n){var e=t[n];switch(n){case"BANDWIDTH":i.bitrate=1*e;break;case"AVERAGE-BANDWIDTH":i.avgBitrate=1*e;break;case"RESOLUTION":var r=e.split("x");i.width=parseInt(r[0]),i.height=parseInt(r[1]);break;case"CODECS":i.codecs=e.split(","),i.hasAudio=-1!==e.indexOf("mp4a");break;case"AUDIO":i.audioGroupId=e.replace(/"/g,"");break;case"VIDEO":i.videoGroupId=e.replace(/"/g,"");break;case"SUBTITLES":i.subtitlesGroupId=e.replace(/"/g,"");break;case"CLOSED-CAPTIONS":i.ccGroupId=e.replace(/"/g,"")}})),i.audioGroupId&&(i.hasAudio=!1),i},m.prototype.Kf=function(t,i){if(!t)return null;var n={streamingMode:r.HLS};return Object.keys(t).forEach((function(r){var o=t[r];switch(r){case"TYPE":n.type=o,n.type===s.SUBTITLES&&(n.containerFormat="vtt"),n.type===s.AUDIO&&(n.hasAudio=!0);break;case"GROUP-ID":n.groupId=o;break;case"LANGUAGE":n.language=o;break;case"NAME":n.name=o;break;case"AUTOSELECT":n.autoSelect="YES"===o;break;case"DEFAULT":n.default="YES"===o;break;case"FORCED":n.forced="YES"===o;break;case"URI":n.url=e.extractURL(o,i)}})),n},m.prototype.al=function(t){var i={};return i.discontinuity=t.discontinuity,i.sequenceNum=t.sequenceNum,i.startTime=t.startTime,i.programDateTime=t.programDateTime,i.url=t.url,i.duration=t.duration,i},m.prototype.tl=function(t,i){if(!t)return null;for(var n={},r=t.substr(11).split(","),s=0;s<r.length;s++){var o=r[s].split("=");if(0===o[0].indexOf("URI"))n.url=e.extractURL(r[s].substr(5,r[s].length-6),i);else if(0===o[0].indexOf("BYTERANGE")){var u=o[1].indexOf("@");n.range={start:parseInt(o[1].substr(u+1,o[1].length-u-2)),end:parseInt(o[1].substr(1,u-1)-1)}}}return n},m.prototype.il=function(t,i){if(!t)return null;for(var n={},r=t.substr(11).split(","),s=0;s<r.length;s++){var o=r[s].split("=");0===o[0].indexOf("URI")?n.keyUri=e.extractURL(r[s].substr(5,r[s].length-6),i):0===o[0].indexOf("METHOD")?n.method=o[1]:0===o[0].indexOf("IV")&&(n.initVector=o[1])}return n},m.prototype.rl=function(t){return t?this.hl(t.substr(25)):0},m.prototype.hl=function(t){if(!t)return 0;var i,n,e=t.split("T"),r=e[0].split("-"),s=parseInt(r[0]),o=parseInt(r[1])-1,u=parseInt(r[2]),a=e[1],c=0;if(a.indexOf("Z")>=0)i=a.substr(0,a.indexOf("Z")).split(":");else if(a.indexOf("+")>=0){var h=a.split("+");i=h[0].split(":"),n=h[1].split(":"),c=-1}else if(a.indexOf("-")>=0){var f=a.split("-");i=f[0].split(":"),n=f[1].split(":"),c=1}else a.indexOf(".")>=0&&(i=a.split(":"));var l=0,v=0,d=0;(i&&(l=parseInt(i[0]),v=parseInt(i[1]),d=parseFloat(i[2])),n)&&(l=(24+l+c*parseInt(n[0]))%24,(v+=c*parseInt(n[1]))>=60?(l++,v-=60):v<0&&(l--,v+=60));return new Date(Date.UTC(s,o,u,l,v,d)).getTime()},m.prototype.ol=function(t){var i=this;if(!t)return null;var n=(t=t.replace(/"/g,"")).substr(17).split(","),e={};return n&&n.length&&n.forEach((function(t){var n=t.split("=")[1];t.indexOf("ID")>-1?e.id=n:t.indexOf("START-DATE")>-1?e.startDate=i.hl(n):t.indexOf("DURATION")>-1?e.duration=parseInt(n):t.indexOf("END-DATE")>-1?e.endDate=i.hl(n):t.indexOf("CLASS")>-1?e.className=n:t.indexOf("X-DATA")>-1&&(e.rawData=atob(n))})),"urn:uplynk:content-data:watchtogether"===e.className&&e.rawData&&e.rawData.length&&(e.jsonData=JSON.parse(e.rawData)),e},m.prototype.ll=function(t){var i=t.split(":"),n=0;return i.length>1&&(n=1e3*parseFloat(i[1])),n},m.prototype.ul=function(t,i){var n=t;if(!(n<0)){var e=this.ll(i),r={};return r.startSeqNum=n,r.startTime=NaN,r.cuepointDuration=e,r}}},7580:function(t,i,n){"use strict";t.exports=a;var e=n(10574).StreamingMode,r=n(12503).StreamTypes,s=n(42990),o="BaseURL",u="$RepresentationID$";function a(){var t=this;t.Wf=[],t.vl=null,t.dl="blah",t.bl=null,t.yl=null,t.ERRORS={INVALID_MPD:1,EMPTY_DATA:2,NO_SEGMENTS:3}}a.prototype.destroy=function(){},a.prototype.gl=function(t){return t?Date.parse(t):0},a.prototype.wl=function(t){var i=0;if(t&&"P"===t.charAt(0)){t.match(/[\d|.|\+]+[A-Z]/g).forEach((function(t){var n=t.charAt(t.length-1),e=parseFloat(t,10);"S"===n?e*=1e3:"M"===n?e*=6e4:"H"===n&&(e*=36e5),i+=e}))}else t&&!isNaN(t)&&(i=parseFloat(t,10));return i},a.prototype._l=function(t,i){if(void 0===t||void 0===i)return"";if("08d"===t){for(var n=i.toString();n.length<8;)n="0"+n;return n}return i},a.prototype.El=function(t,i,n,e,r,s,o,u,a){var c=this,h={brEndOffset:a||-1,brStartOffset:u||-1,containerFormat:r||"mp4",discontinuity:0,duration:t/1e3,levelIndex:0,periodId:i,sequenceNum:n,startTime:e/1e3,url:s,initSegment:o};return null===c.yl?(c.yl=h.startTime,h.startTime=0):(h.startTime-=c.yl,h.startTime=Math.round(1e3*h.startTime)/1e3),h},a.prototype.Ol=function(t,i,n,s,o,u,a,c){var h=this,f=h.Sl(i,n),l=h.Al(n),v=h.Tl(n),d=o>v?o/l:v/l,p={groupId:n.id,bitrate:parseInt(n.bandwidth),codecs:[n.codecs],containerFormat:this.Ml(n.mimeType),mimeType:n.mimeType,drmInfo:[],duration:s/1e3,hasAudio:f===r.AUDIO,hasEndList:!o&&s>0,segmentInfoList:[],type:f,width:f===r.VIDEO?parseInt(n.width):0,height:f===r.VIDEO?parseInt(n.height):0,frameRate:n.frameRate,streamingMode:e.DASH,initSegment:{url:c},url:a,targetDuration:d};if(f===r.AUDIO?(p.audioCodec=n.codecs,p.language=i.lang,p.autoSelect=!1,p.default=!1,p.groupId=n.id,p.channels=n.audioChannnelConfiguration?n.audioChannnelConfiguration.value:0):f===r.VIDEO?(p.audioGroupId="audio",p.subtitlesGroupId="subs",p.videoCodec=n.codecs):f===r.SUBTITLES&&(p.language=i.lang,p.groupId=n.id,p.codec=n.codecs,p.autoSelect=!1,p.subtitlesCodec=n.codecs),i.drm.length>0){for(var b={},m=0;m<i.drm.length;m++){var y=i.drm[m];b.periodId=t.id;var g={prefix:null!==h.bl?h.bl:"",pssh:y.pssh};"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===y.schemeIdUri?(g.type="wv",b.widevine=g):"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"===y.schemeIdUri&&(g.type="pr",g.pro=y.pro,b.playready=g)}p.drmInfo.push(b)}return p},a.prototype.Al=function(t){return t.segmentList?parseInt(t.segmentList.timescale,10):t.segmentTemplate?parseInt(t.segmentTemplate.timescale,10):1e3},a.prototype.Tl=function(t){var i=this.Al(t);if(t.segmentList)return 1e3*parseInt(t.segmentList.duration,10)/i;if(t.segmentTemplate){var n=t.segmentTemplate;if(n.duration)return 1e3*parseInt(n.duration,10)/i}return 0},a.prototype.jl=function(t,i,n,e,r,o,a,c){var h=this,f=new RegExp(/\$Number%([\d|.|\+]*[a-zA-Z])\$/),l=t.startMS,v=t.durationMS,d=h.Tl(i),p=[],b="",m=null,y=this.Ml(i.mimeType);if(i.segmentList)for(var g=0;g<i.segmentList.segments.length;g++){var w=i.segmentList.segments[g],_=Math.min(d,v);v-=_,b=n&&!s.isAbsoluteUrl(w)?n+w:w,p.push(h.El(_,t.id,g,l,y,b,{url:e})),l+=_}else if(i.segmentTemplate){var E=i.segmentTemplate;if(E.segmentTimeline)for(var O=E.segmentTimeline.sElements,S=parseInt(E.startNumber),A=l,T=this.Al(i),M=0;M<O.length;M++)for(var j=O[M],N=j.r?parseInt(j.r)+1:1,I=1e3*parseInt(j.t)/T||A,k=1e3*parseInt(j.d)/T,R=0;R<N;R++){var L=n+E.media.replace("$Number$",S);p.push(h.El(k,t.id,S++,I,y,L,{url:e})),A+=k,I+=k}else{var C=parseInt(E.startNumber,10),D=0,P=Math.ceil(t.durationMS/d),x=0,U=0,F=0;if("dynamic"===c?(x=Math.min(Math.floor((o-t.startMS)/d),P),U=Math.max(Math.floor((o-t.startMS-a)/d),1)):(x=P,U=1),x<=0||U>x)D=0;else{var B=U-1;C+=B,D=x===U?1:x-U+1,F=t.startMS+B*d,v-=B*d,D<0&&(D=0)}for(var z=E.media.replace(u,i.id),V=f.test(z)?z.match(f)[1]:"",G=C;G<D+C;G++){var H=z.replace(f,h._l(V,G)),Y=Math.min(d,v);v-=Y,b=n&&!s.isAbsoluteUrl(H)?n+H:H,m=h.El(Y,t.id,G-C,F,y,b,{url:e}),p.push(m),F+=Y}}}return p},a.prototype.Ml=function(t){return t?t.split("/")[1]:"mp4"},a.prototype.Nl=function(t,i){var n=null;if(t.segmentList)n=t.segmentList.initialization.sourceURL;else if(t.segmentTemplate){var e=t.segmentTemplate.initialization;n=e.indexOf(u)>-1?t.segmentTemplate.initialization.replace(u,t.id):e}return i&&!s.isAbsoluteUrl(n)?i+n:n},a.prototype.Il=function(t){return(new DOMParser).parseFromString(t,"application/xml")},a.prototype.parse=function(t){var i=this,n={};if(!t)return null;var o=i.Il(t.rawData);if(null===o||null===o.documentElement||void 0===o.documentElement)return n.error=i.ERRORS.INVALID_MPD,n;if("MPD"!==o.documentElement.nodeName)return n.error=i.ERRORS.INVALID_MPD,n;t.headers&&t.headers.length>0&&t.headers.forEach((function(t){"x-uplynk-prefix"===t.name&&(i.bl=t.value)})),i.vl=o,i.kl(o.documentElement,n);var u=i.gl(n.publishTime),a=i.Rl(u);n.streamingMode=e.DASH,n.drm=!1,n.reloadUrl=t.url;for(var c=[],h=o.documentElement.childNodes,f=0;f<h.length;f++){var l=h[f];if(1===l.nodeType)if("Period"===l.nodeName){var v=i.Ll(l);null!==v&&c.push(v)}else"Location"===l.nodeName&&(n.reloadUrl=l.childNodes[0].nodeValue)}for(var d=[],p=[],b=[],m=i.wl(n.mediaPresentationDuration),y=i.wl(n.minimumUpdatePeriod),g=i.wl(n.suggestedPresentationDelay),w=i.gl(n.availabilityStartTime),_=0,E=-1,O=0;O<c.length;O++){var S=c[O];S.startMS=i.Cl(S,w,_),-1===E&&(E=S.startMS);var A=O+1<c.length?c[O+1]:null;S.endMS=i.Dl(S,S.startMS,w,A,E,m,y,a),S.durationMS=S.endMS-S.startMS;for(var T=0;T<S.adaptationSets.length;T++)for(var M=S.adaptationSets[T],j=0;j<M.representations.length;j++){var N=M.representations[j],I=i.Sl(M,N),k=N.baseURL||M.baseURL||s.getParentDir(n.reloadUrl),R=i.Nl(N,k),L=i.Ol(S,M,N,m,y,n.type,n.reloadUrl,R),C=i.jl(S,N,k,R,E,a,g,n.type);C.length>0&&(Array.prototype.push.apply(L.segmentInfoList,C),I===r.VIDEO?i.Pl(d,L):I===r.AUDIO?i.Pl(p,L):I===r.SUBTITLES&&i.Pl(b,L)),M.drm.length>0&&(n.drm=!0)}_+=S.durationMS}this.xl(p),this.xl(b);var D={AUDIO:{audio:p},SUBTITLES:{subs:b}};return n.streamInfoList=d,n.renditionGroups=D,n},a.prototype.xl=function(t){t&&t.length>0&&(t[0].autoSelect=!0,t[0].default=!0)},a.prototype.Pl=function(t,i){for(var n=0;n<t.length;n++)if(t[n].groupId===i.groupId)return void this.Ul(t[n],i);i.index=t.length,t.push(i)},a.prototype.Sl=function(t,i){var n=t.mimeType||i.mimeType,e=t.contentType;return n?-1!==n.indexOf("video")?r.VIDEO:-1!==n.indexOf("audio")?r.AUDIO:"application/mp4"===n&&"text"===e?r.SUBTITLES:r.VIDEO:r.VIDEO},a.prototype.Ul=function(t,i){for(var n=t.segmentInfoList[t.segmentInfoList.length-1].sequenceNum+1,e=0;e<i.segmentInfoList.length;e++){var r=i.segmentInfoList[e];r.sequenceNum=n+e,t.segmentInfoList.push(r)}for(var s=0;s<i.drmInfo.length;s++)t.drmInfo.push(i.drmInfo[s]);i.bitrate>t.bitrate&&(t.bitrate=i.bitrate)},a.prototype.kl=function(t,i){for(var n=t.attributes,e=0;e<n.length;e++)i[n[e].nodeName]=n[e].nodeValue;return n.length},a.prototype.Ll=function(t){var i=this,n={adaptationSets:[]};i.kl(t,n);for(var e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];if(1===r.nodeType)if("AssetIdentifier"===r.nodeName){var s={};i.kl(r,s),n.assetIdentifier=s}else if("AdaptationSet"===r.nodeName){var o=i.Fl(r);null!==o&&n.adaptationSets.push(o)}}return n},a.prototype.Fl=function(t){var i=this,n={representations:[],drm:[]};i.kl(t,n);for(var e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];if(1===r.nodeType)if("Role"===r.nodeName){var s={};i.kl(r,s),n.role=s}else if(r.nodeName===o)n.baseURL=r.childNodes[0].nodeValue;else if("ContentProtection"===r.nodeName){var u=i.Bl(r);null!==u&&n.drm.push(u)}else if("Representation"===r.nodeName){var a=i.zl(r);null!==a&&n.representations.push(a)}else r.nodeName}return n},a.prototype.Bl=function(t){var i={};this.kl(t,i);for(var n=0;n<t.childNodes.length;n++){var e=t.childNodes[n];if(1===e.nodeType)if(-1!==e.nodeName.indexOf("pssh"))i.pssh=e.childNodes[0].nodeValue;else if("mspr:pro"===e.nodeName)i.pro=e.childNodes[0].nodeValue;else if("ms:laurl"===e.nodeName){var r={};this.kl(e,r),i.laurl=r}}return i},a.prototype.zl=function(t){var i=this,n={};i.kl(t,n);for(var e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];if(1===r.nodeType)if("AudioChannelConfiguration"===r.nodeName){var s={};i.kl(r,s),n.audioChannnelConfiguration=s}else if(r.nodeName===o)n.baseURL=r.childNodes[0].nodeValue;else if("SegmentTemplate"===r.nodeName){var u=i.Vl(r);n.segmentTemplate=u}else if("SegmentList"===r.nodeName){var a=i.Gl(r);null!==a&&(n.segmentList=a)}}return n},a.prototype.Vl=function(t){var i={};this.kl(t,i);for(var n=0;n<t.childNodes.length;n++){var e=t.childNodes[n];if(1===e.nodeType&&"SegmentTimeline"===e.nodeName){var r=this.Hl(e);i.segmentTimeline=r}}return i},a.prototype.Hl=function(t){var i={sElements:[]};this.kl(t,i);for(var n=0;n<t.childNodes.length;n++){var e=t.childNodes[n];if(1===e.nodeType&&"S"===e.nodeName){var r={};this.kl(e,r),i.sElements.push(r)}}return i},a.prototype.Gl=function(t){var i={segments:[]};this.kl(t,i);for(var n=0;n<t.childNodes.length;n++){var e=t.childNodes[n];if(1===e.nodeType)if("Initialization"===e.nodeName){var r={};this.kl(e,r),i.initialization=r}else if("SegmentURL"===e.nodeName){var s=e.getAttribute("media");null!==s&&i.segments.push(s)}}return i},a.prototype.Cl=function(t,i,n){return t.start?i+this.wl(t.start):n},a.prototype.Dl=function(t,i,n,e,r,s,o,u){return t.duration?i+this.wl(t.duration):e&&e.start?n+this.wl(e.start):s?n+r+s:o+u},a.prototype.Rl=function(t){var i=this,n=Date.now();return i.Yl||(i.Yl=n-t),n-i.Yl}},99719:function(t,i,n){"use strict";t.exports=s;var e=n(47650).HLSEvent,r=n(30902);function s(){var t=this;t.vt=t.mi.appModel,t._node=t.mi.node,t.ql={currentStreamBitrate:0,frameDrop:0,frameRateSum:0,frameRateSampleCount:0,currentKbps:0,deliveryProtocol:t.Wl(),bufferingCount:0,totalBufferingTime:0,streamingMode:t.vt.streamingMode,vcodec:"",acodec:""},t.FRAMERATE_SAMPLE_SIZE=4,t.Ql={prevTotalFrames:0,prevTotalDroppedFrames:0,prevFrameRateMeasuredTime:0,frameRateSampleCollector:[],currentFrameRate:0},t.Wr=new r(1e3),t.Wr.addEventListener(t.Zl,t)}s.prototype.destroy=function(){this.ql=null,this.Wr.destroy()},s.prototype.onPlay=function(){this.Wr.start()},s.prototype.onPlaying=function(){this.Zl()},s.prototype.onPause=function(){this.Wr.stop()},s.prototype.updateBufferingInfo=function(t){t&&(t.value||t.bufferInit||(this.ql.bufferingCount++,this.ql.totalBufferingTime+=t.waitTime))},s.prototype.Zl=function(){var t=this,i=t.vt.streams,n=t.ql,r=t.vt.getCurrentPlayingStream(),s=t.getFpsStats();r&&(n.currentStreamIndex=t.vt.currentPlayingStreamIndex,n.currentStreamBitrate=r.bitrate/1e3,n.mediaWidth=r.width,n.mediaHeight=r.height,n.vcodec=t.$l(r.videoCodec),n.acodec=t.$l(r.audioCodec)),i.length&&(n.qualityLevels=i.length,n.minBitRate=i[0].bitrate,n.maxBitRate=i[n.qualityLevels-1].bitrate),n.bufferLength=t.vt.getBufferLength().toFixed(2),n.frameRate=s.frameRate.toFixed(2),n.droppedFrames=s.droppedFrames,n.currentKbps=(1e3*t.vt.currentKbps).toFixed(0),n.streamingMode=t.vt.streamingMode,n.drm=t.vt.drmRequired,n.drmsys=t.vt.licenseType,t.vt.infoUpdateSent=!0,t.mi.sendEvent(e.INFO_UPDATE,{mediaInfo:t.ql})},s.prototype.$l=function(t){return t?t.indexOf("avc")>=0?"avc1":t.indexOf("mp4a")>=0?"mp4a":t.indexOf("vp9")>=0||t.indexOf("vp09")>=0?"vp9":t.indexOf("aac")>=0?"aac":t.indexOf("vorbis")>=0?"vorbis":t.indexOf("opus")>=0?"opus":t:t},s.prototype.getWindow=function(){return window},s.prototype.Wl=function(){var t=this.getWindow();return t&&t.location&&t.location.protocol?t.location.protocol.slice(0,-1):"http"},s.prototype.getFpsStats=function(){var t,i,n=this,e=n._node,r=0,s=n.Ql,o=e.currentTime-s.prevFrameRateMeasuredTime,u=n.Xl(),a=0;return(u.isWebKitFpsAvailable||u.isNonWebKitFpsAvailable)&&(t=u.isWebKitFpsAvailable?e:e.getVideoPlaybackQuality(),i=u.isWebKitFpsAvailable?t.webkitDecodedFrameCount:t.totalVideoFrames,a=u.isWebKitFpsAvailable?t.webkitDroppedFrameCount:t.droppedVideoFrames,(r=s.prevFrameRateMeasuredTime>0&&0!==o?(i-s.prevTotalFrames-(a-s.prevTotalDroppedFrames))/o:s.currentFrameRate)&&s.frameRateSampleCollector.push(r),n.Kl(),s.prevTotalFrames=i,s.prevTotalDroppedFrames=a,s.prevFrameRateMeasuredTime=e.currentTime),{frameRate:s.currentFrameRate,droppedFrames:a}},s.prototype.Xl=function(){var t=this._node;return{isWebKitFpsAvailable:void 0!==t.webkitDecodedFrameCount,isNonWebKitFpsAvailable:"function"==typeof t.getVideoPlaybackQuality}},s.prototype.Kl=function(){var t=this,i=t.Ql.frameRateSampleCollector;if(i.length>=t.FRAMERATE_SAMPLE_SIZE){var n=i.reduce((function(t,i){return t+i}));t.Ql.currentFrameRate=n/i.length,i.splice(0,i.length)}}},52175:function(t,i,n){"use strict";t.exports=o;var e=n(10574).StreamingMode,r=n(7580),s=n(1788);function o(){this.ERRORS={INVALID_M3U8:1,EMPTY_DATA:2,NO_SEGMENTS:3},this.mpdParser=new r}o.prototype.destroy=function(){this.mpdParser.destroy()},o.prototype.parse=function(t){if(!t)return null;var i=this,n={},r=t.rawData;return""!==r&&r?-1!==r.indexOf("<MPD")?(t.streamingMode=e.DASH,i.mpdParser.parse(t)):-1!==r.indexOf("#EXTM3U")?(t.streamingMode=e.HLS,(new s).parse(t)):(n.error=i.ERRORS.INVALID_M3U8,n):(n.error=i.ERRORS.EMPTY_DATA,n)}},75409:function(t,i,n){"use strict";t.exports=r;var e=n(47650).HLSEvent;function r(){var t=this;t.vt=t.__controller.model,t.Jl=!1,t.Ee=!1,t.nv=[],t.ev=[],t.rv=null,t.ov=null,t.K={},t.uv=NaN,t.av(),t.cv=0,t.hv=0,t.fv=0,t.vv=!0,t.currentDateranges=[]}function s(){var t=this;t.programDateTime=NaN,t.seqNum=-1,t.beginTime=NaN,t.endTime=NaN,t.bitrateIndex=-1,t.switchReason="none",t.bufferCount=0,t.bufferTime=0,t.timeToFirstByte=0,t.timeToDownload=0,t.timeToRequest=0,t.observedBitrate=0,t.actualBitrate=0,t.frameDrop=0,t.frameRateSum=0,t.frameRateSampleCount=0,t.frameRate=30}r.prototype.destroy=function(){var t=this;t.nv=[],t.ev=[],t.ov=null,t.rv=null,t.dv()},r.prototype.av=function(){var t=this;t.K[e.WAITING]=t.__controller.addEventListener(e.WAITING,t.pv,t)},r.prototype.dv=function(){this.__controller.removeEventListeners(this.K)},r.prototype.onComplete=function(){this.segmentRenderNext()},r.prototype.onTimeUpdate=function(t){var i=this,n=i.vt.getCurrentPlayingStream();if(i.cv=t,i.updateRenderState(i.ov,i.cv),i.vt.live&&n&&n.cuepoints.length>0&&i.cuepointEventDispatcher(i.cv,n.cuepoints),n&&i.bv(n,i.cv),t>0&&i.ov){var r=i.yv();r&&i.__controller.sendEvent(e.TIMED_METADATA_READY,r.payload)}},r.prototype.bv=function(t,i){var n=this,e=Object.values(t.dateRanges);n.ov&&e.length&&n.wv(n.ov,e,i)},r.prototype.wv=function(t,i,n){for(var r=this,s=t.programDateTime+1e3*(n-t.beginTime),o=0;o<i.length;o++){var u=i[o],a=null;!u.endDate&&u.duration?a=u.startDate+1e3*u.duration:u.endDate&&(a=u.endDate);var c=r.currentDateranges.indexOf(u.id),h=c>-1;!h&&u.startDate&&s>=u.startDate&&(!a||s<a)?(r.__controller.sendEvent(e.DATE_RANGE_STARTED,u),r.currentDateranges.push(u.id)):h&&a&&s>a&&(r.__controller.sendEvent(e.DATE_RANGE_ENDED,u),r.currentDateranges.splice(c,1))}},r.prototype.yv=function(){var t=this,i=t.ov.seqNum,n=t.vt.timedMetadataStore[i],e=t.cv;if(!n||!n.length)return null;t.vt.live&&Object.keys(t.vt.timedMetadataStore).forEach((function(n){if(!(n>i)){var r=t.vt.timedMetadataStore[n].every((function(i){return e-i.timestamp>=t.vt.config.pastBufferLengthLimit.live}));r&&delete t.vt.timedMetadataStore[n]}}));if(e<n[0].timestamp||e>n[n.length-1].timestamp+.6)return null;for(var r=null,s=n.length-1;s>=0;s--){var o=n[s],u=(1e4*e-1e4*o.timestamp)/1e4;if(u>=0&&u<=.6){if(o.recent)continue;r=o;break}}return r&&(r.recent=!0,setTimeout((function(){delete r.recent}),600)),r},r.prototype.pv=function(t){t&&(t.bufferInit||(t.value?this._v():this.Ev(t.waitTime)))},r.prototype.segmentLoadBegin=function(t,i){if(i){var n=this,r=new s;if(r.seqNum=t,r.beginTime=i.beginTime,r.timeToFirstByte=i.timeToFirstByte,r.bitrateIndex=Math.max(0,i.bitrateIndex),r.switchReason=i.switchReason,r.frameRate=i.frameRate,r.observedBitrate=1e3*i.observedBitrate,r.endTime=i.endTime,r.perfInfo={},r.actualBitrate=i.endTime!==i.beginTime?.008*i.bytesTotal/(i.endTime-i.beginTime):0,r.programDateTime=i.programDateTime,n.rv&&n.nv.push(n.rv),n.rv=r,n.ov&&t===n.ov.seqNum||!n.ov){if(n.ov&&r.bitrateIndex!==n.ov.bitrateIndex){var o=n.vt.streams,u={bitrate:Math.round(o[r.bitrateIndex].bitrate/1e3),reason:"fast-up",oldFrameRate:n.ov.frameRate,newFrameRate:r.frameRate};n.__controller.sendEvent(e.STREAM_SWITCHED,u)}n.segmentRenderNext(r)}}},r.prototype.segmentLoadEnd=function(t,i){var n=this,e=n.rv;e&&e.seqNum===t&&(i&&(e.timeToDownload=i.timeToDownload,e.perfInfo=i.perfInfo,e.segmentInWorker=i.segmentInWorker,e.actualBitrate=e.endTime!==e.beginTime?.008*i.bytesTotal/(e.endTime-e.beginTime):0),n.nv.push(e),n.rv=null)},r.prototype.segmentRenderNext=function(t){var i=this;i.ov&&(i.ev.push(i.ov),i.ov=null,i.__controller.sendEvent(e.SEGMENT_RENDERED)),t&&(i.ov=t,i.vt.setCurrentPlayingStream(t.bitrateIndex))},r.prototype.updateRenderState=function(t,i){var n=this;if(!(isNaN(i)||i<=0)&&(t||(t=n.Ov(i))&&n.segmentRenderNext(t),t&&(n.Sv&&(t.frameDrop=n.Sv.frameDrop,t.frameRateSum+=Number(n.Sv.frameRate.toFixed(2)),t.frameRateSampleCount++),!(i>=t.beginTime&&i<t.endTime)))){var r=n.Ov(i);if(r&&(n.segmentRenderNext(r),r.bitrateIndex!==t.bitrateIndex)){var s=n.vt.streams,o={bitrate:Math.round(s[r.bitrateIndex].bitrate/1e3),reason:r.switchReason,oldFrameRate:t.frameRate,newFrameRate:r.frameRate};n.__controller.sendEvent(e.STREAM_SWITCHED,o)}}},r.prototype.updateFrameStats=function(t){t&&(this.Sv=t)},r.prototype.Ov=function(t){var i=this;if(i.rv&&t>=i.rv.beginTime&&t<i.rv.endTime)return i.rv;if(i.nv.length)for(var n=i.nv.length-1;n>=0;n--)if(t>=i.nv[n].beginTime&&t<i.nv[n].endTime)return i.nv[n];return null},r.prototype._v=function(){var t=this;t.Ee||(t.Ee=!0,t.Av=Date.now(),t.ov,t.rv)},r.prototype.Ev=function(t){var i=this;if(i.Ee){i.Av=NaN,i.Ee=!1;var n=i.ov,e=n&&!isNaN(t)&&t>0;n&&(n.bufferTime+=e?t:0,n.bufferCount+=e?1:0)}},r.prototype.getMetrics=function(){var t=this,i=t.ov,n=[];if(t.ev.length){for(var e=0;e<t.ev.length;e++)n.push(t.Pr(t.ev[e]));t.ev=[]}return i&&(n.push(t.Pr(i)),i.bufferCount=0,i.bufferTime=0,i.timeToFirstByte=NaN,i.timeToDownload&&(i.timeToDownload=NaN)),n},r.prototype.getAllMetrics=function(){var t=this;return t.Ee&&t.Ev(Date.now()-t.Av),t.getMetrics()},r.prototype.Pr=function(t){if(!t)return null;var i=this.vt.streams;t.bitrateIndex=i.length>0?Math.min(t.bitrateIndex,i.length-1):0;var n=i[t.bitrateIndex].bitrate/1e3,e=i[t.bitrateIndex].avgBitrate/1e3;return t.bufferTime>0&&!t.bufferCount?t.bufferCount=1:!t.bufferTime&&t.bufferCount>0&&(t.bufferCount=0),{seq_num:t.seqNum,max_b:n,avg_b:e,ib:n,ob:t.observedBitrate.toFixed(2),ab:Math.round(t.actualBitrate),num_buf:t.bufferCount,buf_dur:t.bufferTime,req_t:t.timeToRequest,fb_dl_t:t.timeToFirstByte,req_dl_t:t.timeToDownload,drop_f:t.frameDrop,avg_fr:(t.frameRateSum/t.frameRateSampleCount).toFixed(2)}},r.prototype.getMetricsBandwidthInfo=function(){var t=this,i=t.__controller.services.bandwidthEstimator,n=i.averageBandwidth===t.uv?0:i.averageBandwidth;return t.uv!==i.averageBandwidth&&(t.uv=i.averageBandwidth),n},r.prototype.cuepointEventDispatcher=function(t,i){var n,r=this,s=i.length,o=s-1;if(s>0){if(r.shouldFireCueDetectedEvent(t,i[o]))return i[o].setCueOutDetectedState(!0),n={cuepointDuration:i[o].cuepointDuration,timeGapBeforeCUEOUT:i[o].startTime-t},void r.__controller.sendEvent(e.CUEPOINT_DETECTED,n);if(r.shouldFireCueOutEvent(t,i[o]))return i[o].setCueOutFiredState(!0),n={cuepointDuration:i[o].cuepointDuration,cuepointPlayedTime:t-i[o].startTime},void r.__controller.sendEvent(e.CUEPOINT_STARTED,n)}},r.prototype.shouldFireCueDetectedEvent=function(t,i){return!!i.startTime&&(!i.isCueOutDetectedFired&&i.startTime>t)},r.prototype.shouldFireCueOutEvent=function(t,i){if(!i.startTime)return!1;var n=this.Tv(t);return!i.isCueOutFired&&n===i.startSeqNum&&t>i.startTime},r.prototype.Tv=function(t){var i=this.vt.getCurrentPlayingStream(),n=i?i.segments:null;if(n){if(1===n.length)return n[0].seqNum;for(var e=n.length-1;e>=0;e--)if(t>=n[e].startTime)return n[e].seqNum}return null}},5212:function(t,i,n){"use strict";t.exports=c;var e=n(52175),r=n(92835),s=n(63799),o=n(75409),u=n(94939),a=n(42990);function c(){var t=this;t.vt=t.__controller.model,t.Mv={},t.bandwidthEstimator=new s(t.vt.bwHistory),t.segmentMetrics=t.__controller.create(o),t.metadataParser=t.__controller.create(e),t.mp4BoxParser=new r}c.prototype.destroy=function(){var t=this;t.bandwidthEstimator.destroy(),t.segmentMetrics.destroy(),t.metadataParser.destroy(),t.Mv&&Object.keys(t.Mv).forEach((function(i){t.Mv[i].terminate()}))},c.prototype.getNewLoader=function(t,i){var n=this.vt,e=n.config,r=n.userAgent,s=n.inWorkerScope,o=!!r&&(r.edge>0&&r.edge<79);(t=t||{}).maxRetries=t.maxRetries||e.maxRetries,t.requestTimeout=t.requestTimeout||e.requestTimeout,t.chunkedRequestTimeout=t.chunkedRequestTimeout||e.chunkedRequestTimeout,t.useMSStream=!!r&&(r.ie||o),t.stopStreamLoadOnError=t.stopStreamLoadOnError||e.stopStreamLoadOnError,t.withCredentials=a.isWithCreds(i||t.url)||!1;var c=null;try{c=u.getLoader(new u.LoadRequest(t),t.window,s)}catch(t){c=null}return c},c.prototype.getWorker=function(){return null}},27279:function(t,i,n){"use strict";t.exports.AACStream=c,t.exports.AVCStream=h;var e=n(11849),r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],s=["Null","Main","LC","SSR","LTP"],o=9e4,u=.033,a=t.exports.NAL_UNIT_TYPES={NON_IDR:1,IDR:5,AD_INFO_SEI:6,SPS:7,PPS:8,AUD:9};function c(t){var i=this;i.jv=[],i.Nv=t||{},i.Rc={},i.ready=!1,i.Iv=0}function h(t){var i=this;i.jv=[],i.Nv=t||{},i.Rc={},i.kv=0,i.ready=!1,i.Rv=0,i.Iv=u*o,i.rh=new e}c.prototype.destroy=function(){this.jv=[]},c.prototype.readFrames=function(t){t&&t.packetInfo&&this.readFramesFromBitstream(t.packetInfo.streamData,t.packetInfo.pts)},c.prototype.readFramesFromBitstream=function(t,i){var n=this;if(!t||t.length<6)return 0;for(var e=0,r=0,s=0;e<t.length;){var o=0,u=(t[e++]<<8)+t[e++],a=1&u;if(65520==(65520&u)&&0===(6&u)){n.Lv(t.subarray(e,e+2)),n.Rc.codec="mp4a.40.2",e++;var c=(t[e++]<<16)+(t[e++]<<8)+t[e++];for(c=(262112&c)>>>5,r=1+(3&t[e++]),a?c-=7:(c-=9,e+=2);o<r&&e<t.length;){var h=i+s*n.Iv;n.jv.push({data:t.subarray(e,e+c),dts:h,pts:h,keyframe:!1,flags:{isLeading:!1,dependsOn:!0,isDependedOn:!1,hasRedundancy:!1,paddingValue:!1,isNonSyncSample:!1,degradationPriority:1}}),e+=c,o++,s++}}else e--}return n.ready=n.Cv(),e},c.prototype.Lv=function(t){var i=this;if(t&&!(t.length<2)){var n=1+((192&t[0])>>>6);n=n>4?4:n,i.Rc.audioObjectTypeIndex=n,i.Rc.audioObjectType=s[n],n=(n=(60&t[0])>>>2)<13?n:0,i.Rc.samplingFreqIndex=n,i.Rc.samplingFreq=r[n],i.Rc.channels=(1&t[0])<<2|(192&t[1])>>>6,i.Rc.sampleSize=16,i.Iv=1024*o/i.Rc.samplingFreq}},c.prototype.Cv=function(){var t=this,i=t.jv.length;return(i>0?t.jv[i-1].pts-t.jv[0].pts+t.Iv:0)>=.1*o},c.prototype.getFrames=function(){var t=this;return t.ready=!1,t.jv.splice(0,t.jv.length)},c.prototype.getConfig=function(){return this.Rc},c.prototype.getLastFrameDetails=function(){var t=this;return t.jv.length?{timestamp:t.jv[t.jv.length-1].dts,duration:t.Iv}:null},h.prototype.destroy=function(){this.jv=[],this.rh.destroy()},h.prototype.readFrames=function(t){var i=this;if(t&&t.packetInfo){var n=t.packetInfo.streamData;if(n&&!(n.length<4)){for(var e,r,s=0,o=0,u=0,c=s,h={nalUnits:[],nalUnitSize:0,dts:t.packetInfo.dts,pts:t.packetInfo.pts,keyframe:!1,data:n,cea608Data:[],flags:{isLeading:0,dependsOn:0,isDependedOn:0,hasRedundancy:0,paddingValue:0,isNonSyncSample:!1,degradationPriority:0}},f=4294967295,l=!1;s<n.length;){if(r=NaN,1===(f=f<<8|n[s++])&&(r=4),1===(16777215&f)){if(!l&&s>r&&i.jv&&i.jv.length&&i.Dv(n,0,s-r),l=!0,f=4294967295,r=r||3,(o=h.nalUnits.length)>=1&&null===h.nalUnits[o-1].data)switch(u=s-c-r,e=n.subarray(c,c+u),h.nalUnitSize+=u,h.nalUnits[o-1].data=e,h.nalUnits[o-1].type){case a.SPS:i.Rc.profileIndication=e[1],i.Rc.profileCompatibility=e[2],i.Rc.levelIndication=e[3],i.Rc.numOfSPS=1,i.Rc.spsLength=e.length,i.Rc.sps=e;break;case a.PPS:i.Rc.numOfPPS=1,i.Rc.ppsLength=e.length,i.Rc.pps=e}c=s,u=0;var v=31&n[s++];if(v<a.AUD&&h.nalUnits.push({data:null,type:v}),v===a.IDR)i.kv=i.jv.length,h.keyframe=!0,h.flags.dependsOn=2,i.Rv++;else if(v===a.NON_IDR)h.keyframe=!1,h.flags.dependsOn=1,h.flags.isNonSyncSample=!0;else if(v===a.AD_INFO_SEI)for(var d=i.rh.parse(n,s),p=0;p<d.length;p++)h.cea608Data.push(d[p])}}0===t.packetInfo.dataAlignment&&!l&&i.jv.length?i.Dv(n,0,s):((o=h.nalUnits.length)>=1&&null===h.nalUnits[o-1].data&&c<n.length&&(u=s-c,h.nalUnits[o-1].data=n.subarray(c,c+u),h.nalUnitSize+=u),h.nalUnitSize>0&&i.jv.push(h)),i.Rc.codec=i.Pv(i.Rc),i.ready=i.Cv()}}},h.prototype.Dv=function(t,i,n){var e=this;if(e.jv&&e.jv.length){var r=e.jv[e.jv.length-1],s=r.nalUnits,o=s[s.length-1];if(o){var u,a=n-i;r.nalUnitSize+=a,o.data?((u=new Uint8Array(o.data.byteLength+a)).set(o.data,0),u.set(t.subarray(i,a),o.data.byteLength)):(u=new Uint8Array(a)).set(t.subarray(i,a),0),o.data=u;var c=new Uint8Array(r.data.byteLength+a);c.set(r.data,0),c.set(t.subarray(i,a),r.data.byteLength),r.data=c}}},h.prototype.Cv=function(){var t=this,i=t.jv.length,n=i>0?t.jv[i-1].pts-t.jv[0].pts+t.Iv:0,e=.1*o;return t.Nv.startChunkWithKeyFrame?t.Rv>=2:i>1&&n>=e},h.prototype.getFrames=function(t){var i=this,n=t&&t.keyFrameBoundary,e=i.Nv.startChunkWithKeyFrame&&n,r=n?i.jv.length-1:i.jv.length;if(n&&r<=1)return null;e&&(r=i.kv,i.Rv=1,i.ready=!1);var s=i.jv.splice(0,r);return i.kv=0,s},h.prototype.getConfig=function(){return this.Rc},h.prototype.Pv=function(t){var i=t&&t.profileIndication||66;return"avc1."+((i=Math.max(i,66))<<16|(t&&t.profileCompatibility||0)<<8|(t&&t.levelIndication||10)).toString(16)}},72887:function(t,i,n){"use strict";t.exports=a;var e=n(27279),r=n(43661),s=n(96473),o=e.AACStream,u=e.AVCStream;function a(t,i,n){var e=this;e.streamType=t,e.streamId=i,e.xv=[],e.Cc=!1,e.Nv=n,e.Uv=null,e.Fv=new s,"audio"===t?e.At=new o(e.Nv):"video"===t&&(e.At=new u(e.Nv))}function c(t){this.C=new r(Uint8Array,t),this.complete=!1}a.prototype.destroy=function(){var t=this;t.xv=[],t.At&&(t.At.destroy(),t.At=null)},a.prototype.isReady=function(){var t=this,i=!!t.At&&t.At.ready;return t.Cc||i},a.prototype.addPacket=function(t){var i=this;i.xv.length&&i.Bv(),i.xv.push(new c(t))},a.prototype.append=function(t){var i=this.xv.length;t&&i&&this.xv[i-1].append(t)},a.prototype.endOfSegment=function(){this.Cc=!0,this.Bv()},a.prototype.getFrames=function(t){return this.At?this.At.getFrames(t):null},a.prototype.getTimedMetadata=function(){return this.Uv?this.Uv:null},a.prototype.getConfig=function(){return this.At?this.At.getConfig():null},a.prototype.Bv=function(){var t=this,i=t.xv.length;if(i){var n=t.xv[i-1];n.complete=!0,0===n.parse()&&("id3"===t.streamType?t.Uv={payload:t.Fv.getID3Payload(n.packetInfo.streamData),pts:t.xv.length&&t.xv[0].packetInfo.pts}:t.At&&t.At.readFrames(n),t.xv.pop())}},c.prototype.append=function(t){this.C&&this.C.set(t)},c.prototype.parse=function(){var t=this;if(t.packetInfo={},!t.complete||!t.C||!t.C.length)return t.packetInfo.result=-1,-1;if(t.C.length<6)return t.packetInfo.result=-2,-2;var i=0;if(1!==(t.C.get(i++)<<16)+(t.C.get(i++)<<8)+t.C.get(i++))return t.packetInfo.result=-3,-3;t.packetInfo.streamId=t.C.get(i++);var n=(t.C.get(i++)<<8)+t.C.get(i++),e=(t.C.length,t.C.get(i++));t.packetInfo.dataAlignment=e>>2&1;var r=t.C.get(i++),s=(192&r)>>6,o=t.C.get(i++);return 2!==s&&3!==s||(t.packetInfo.pts=t.zv(t.C.subArray(i,i+5)),t.packetInfo.dts=t.packetInfo.pts,i+=5,o-=5,3===s&&(t.packetInfo.dts=t.zv(t.C.subArray(i,i+5)),i+=5,o-=5)),i+=o,t.packetInfo.streamData=t.C.subArray(i),t.packetInfo.result=0,0},c.prototype.zv=function(t){if(!t||!t.length)return 0;var i=0,n=(14&t[i++])>>>1,e=(t[i++]<<8)+(254&t[i++])>>>1,r=(4&n)>>2,s=2*((n&=3)<<29)+(e<<=15)+((t[i++]<<8)+t[i++]>>>1);return r?-1*Math.pow(2,32)+s:s}},11849:function(t){"use strict";function i(){}t.exports=i,i.prototype.destroy=function(){},i.prototype.parse=function(t,i){for(var n=[],e=0;255===t[i];)e+=255,i++;if(e+=t[i],!(++i>=t.length)){for(var r=0;255===t[i];)r+=255,i++;if(r+=t[i],i++,4===e){var s=t[i],o=t[i+1]<<8|t[i+2],u=t[i+3]<<24|t[i+4]<<16|t[i+5]<<8|t[i+6],a=t[i+7];if(181===s&&49===o&&1195456820===u&&3===a){var c=31&t[i+8];i+=9;var h,f,l=0;for(i++;l<c;){if(h=(4&t[i])>>2,f=3&t[i],h&&(0===f||1===f)){var v={fieldType:f,data1:t[i+1],data2:t[i+2]};n.push(v)}i+=3,l++}}}return i+=r,n}}},58457:function(t,i,n){"use strict";t.exports=o;var e=n(72887),r=n(57572),s=188;function o(t,i){var n=this;n.C=null,n.Nv=t||{},n.Vv=i,n.Gv=0,n.Hv=NaN,n.Yv={},n.qv={},n.Wv=[],n.pe="initial",n.Lc="start",n.Cc=!1}o.prototype.destroy=function(){var t=this;t.C=null,t.Wv=[],t.pe="initial",t.Lc="start";var i=t.qv;for(var n in i)i.hasOwnProperty(n)&&i[n].destroy();t.qv={}},o.prototype.append=function(t){var i=this;if(t){var n=t.length;if(n){var e=null,s=0;i.C&&(s=(e=i.C).length);var o=s+n;return i.C=new Uint8Array(o),e&&i.C.set(e),i.C.set(t,s),-2===i.bi()?{error:r.ERR_SEGMENT_PARSE}:void 0}}},o.prototype.endOfSegment=function(){var t=this;t.Cc=!0,t.C&&t.C.length<s&&t.Qv()},o.prototype.bi=function(){var t=this;if(!t.C)return-1;for(var i=0;t.C.length;){var n=t.Bv(t.C.subarray(0,s));if(0===n)i++,t.C=t.C.subarray(s),i>=2e3&&(t.Zv(),i=0);else{if(-2!==n)break;var e=t.$v(t.C);if(!(e>=0))break;t.C=t.C.subarray(e)}}return t.Cc&&0===t.C.length?t.Qv():t.Zv(),0},o.prototype.Bv=function(t){var i=this;if(!t||t.length<1)return-1;var n=0,e={};if(71!==t[n++])return-2;if(!t||t.length<s)return-1;var r=t[n++];(e.startIndicator=(64&r)>>6,e.pid=((31&r)<<8)+t[n++],r=t[n++],e.adaptationFieldExists=(32&r)>>5,e.payloadExists=(16&r)>>4,e.adaptationFieldLength=0,e.adaptationFieldExists)&&(e.adaptationFieldLength=t[n++],16&t[n++]&&e.pid===i.Gv&&e.adaptationFieldLength>=7&&i.Xv(t.subarray(n,n+6)),n+=e.adaptationFieldLength-1);return!e.payloadExists||e.adaptationFieldLength>=183||i.Kv(t.subarray(n),e),0},o.prototype.Xv=function(t){if(t&&!(t.length<6)){var i=0,n=t[i++],e=(128&n)>>>7;n=((n&=127)<<24)+(t[i++]<<16)+(t[i++]<<8)+t[i++];var r=t[i++];i++;var s=2*n+((128&r)>>>7),o=e?-1*Math.pow(2,32)+s:s;this.Jv||(this.Jv=o)}},o.prototype.Kv=function(t,i){var n,e,r,s=this;if(t&&i&&!isNaN(i.pid)&&(s.Yv.aac&&(n=s.Yv.aac),s.Yv.avc&&(e=s.Yv.avc),s.Yv.id3&&(r=s.Yv.id3),!(i.pid>=1&&i.pid<=15||8191===i.pid)))switch(i.pid){case 0:s.td(t,i);break;case s.Hv:s.nd(t,i);break;case n:s.ed("audio",n,t,i);break;case e:s.ed("video",e,t,i);break;case r:s.ed("id3",r,t,i),s.rd();break;default:s.sd(t,i)}},o.prototype.td=function(t,i){if(t){var n=0;if(i.startIndicator){var e=t[n++];n+=e}t[n++];n+=4,n+=3,(t[n++]<<8)+t[n++]>0&&(this.Hv=((31&t[n++])<<8)+t[n++]),this.pe="patParsed"}},o.prototype.nd=function(t,i){var n=this;if(t){var e=0;if(i&&i.startIndicator){var r=t[e++];e+=r}t[e++];var s=((15&t[e++])<<8)+t[e++],o=e;e+=2,e+=3,n.Gv=((31&t[e++])<<8)+t[e++];var u=((15&t[e++])<<8)+t[e++];e+=u;for(var a=null,c=null,h=0;e-o<s-4;)switch(a=t[e++],c=((31&t[e++])<<8)+t[e++],h=((15&t[e++])<<8)+t[e++],e+=h,a){case 3:case 4:n.Yv.mp3=c;break;case 15:n.Yv.aac=c;break;case 27:n.Yv.avc=c;break;case 21:n.Yv.id3=c}n.pe="pmtParsed"}},o.prototype.ed=function(t,i,n,r){if(n){var s=this.qv,o=s[i];r.startIndicator?(o||(s[i]=new e(t,i,this.Nv),o=s[i]),o.addPacket(n)):o&&o.append(n)}},o.prototype.sd=function(t,i){var n=this;if(t&&!(t.length<4)&&i.startIndicator){var e=0,r=(t[0]<<16)+(t[1]<<8)+t[2],s=t[e++];e+=s;var o=t.length>e?t[e]:NaN;if(1===r){var u=t[3]>>>4;14===u?(n.Yv.avc=i.pid,n.ed("video",n.Yv.avc,t,i)):12!==u&&13!==u||(n.Yv.aac=i.pid,n.ed("audio",n.Yv.aac,t,i))}else 2===o&&n.nd(t,i)}},o.prototype.od=function(){var t=this,i=!0;for(var n in t.Yv)if("id3"!==n&&t.Yv.hasOwnProperty(n)){var e=t.Yv[n];t.qv[e]&&(i=i&&t.qv[e].isReady())}return i},o.prototype.Zv=function(){var t=this;if(t.od()){var i={},n=!1,e=!1,r=t.qv,s=Number.POSITIVE_INFINITY;for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];if(u){var a={frames:u.getFrames({keyFrameBoundary:"end"!==t.Lc}),config:u.getConfig(),streamId:u.streamId};"audio"===u.streamType&&o===t.Yv.aac.toString()?(i.audio=a,n=i.audio.frames&&i.audio.frames.length):"video"===u.streamType&&o===t.Yv.avc.toString()&&(i.video=a,e=i.video.frames&&i.video.frames.length)}}n&&(s=Math.min(s,i.audio.frames[0].dts)),e&&(s=Math.min(s,i.video.frames[0].dts)),s!==Number.POSITIVE_INFINITY&&(i.pcr=s),("end"===t.Lc||n||e)&&(t.Vv&&t.Vv({pos:t.Lc,avData:i}),"start"===t.Lc&&(t.Lc="middle"))}},o.prototype.rd=function(){var t=this,i=t.qv,n=null;Object.keys(i).forEach((function(e){var r=i[e];r&&"id3"===r.streamType&&e===t.Yv.id3.toString()&&(n=r.getTimedMetadata())})),n&&t.Vv&&t.Vv({pos:"timedMetadata",timedMetadata:n})},o.prototype.$v=function(t){if(!t)return-1;for(var i=0;i<t.length;i++)if(71===t[i])return i;return-1},o.prototype.Qv=function(){var t=this;t.Lc="end";var i=t.qv;for(var n in i)i.hasOwnProperty(n)&&(i[n].endOfSegment(),"id3"===i[n].streamType&&t.rd());t.Zv()}},23789:function(t){"use strict";function i(t){var i=this;t&&(i.type=t.type,i.id=t.id,i.moduleName=t.moduleName,i.instanceId=t.instanceId,i.funcName=t.funcName,i.timestamp=t.timestamp||Date.now(),i.args=t.args||[],i.argNames=t.argNames||[],i.transferables=t.transferables)}t.exports=i,i.prototype.putParam=function(t,i){i&&(this.args.push(i),this.argNames.push(t||""))},i.prototype.getParam=function(t){if(!t)return null;var i=this.argNames.indexOf(t);return i>=0?this.args[i]:null},i.prototype.dto=function(){var t=this,i={};return Object.keys(t).forEach((function(n){"__controller"!==n&&(i[n]=t[n])})),i},i.prototype.addMedia=function(){var t,i=this;return i.__controller&&(t=i.__controller.model.getMediaDto(),i.putParam("media",t)),t}},35557:function(t,i,n){"use strict";t.exports.WorkerDefs={HlsTransformer:n(24892),Controller:n(76769)},t.exports.MessageTypes={EVENT:"event",MESSAGE:"message"},t.exports.MessageIds={CREATE:"create",DESTROY:"destroy",CALL_METHOD:"callMethod",EVENT:"eventPublish",CREATE_SRC_BUFFER:"createSrcBuffer",APPEND_SRC_BUFFER:"appendSrcBuffer",TIMED_METADATA:"timedMetadata",CLEAR_SRC_BUFFER:"clearSrcBuffer",END_OF_STREAM:"endOfStream",SAVE_AVG_BANDWIDTH:"saveAvgBandwidth",PLAY_AFTER_STREAM_CHANGE:"playAfterStreamChange",PAUSE_BEFORE_STREAM_CHANGE:"pauseBeforeStreamChange",DRM_INIT:"drmInit",DRM_LICENSE_INFO:"drmLicenseInfo",SKIP_GAP:"skipGap"}},12645:function(module){var factory;self,factory=function(){return function(){"use strict";var __webpack_modules__={4772:function(t,i,n){n.d(i,{Q:function(){return u}});var e="prod",r="log.adaptv.advertising.com",s="1.1.44",o="65841884",u={SERVER_URL:"https://s.yimg.com/rx/martini/builds"+(o?"/".concat(o):""),BUILD_ENV:e,ADAPTV_SERVER:r,MARTINI_VERSION:s,MARTINI_CLIENT_NAME:"martini"}},2311:function(__unused_webpack_module,__nested_webpack_exports__,__nested_webpack_require_1316__){var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_1316__(8855),_utils_window_utils__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_1316__(6165),MoatIvtHelper=function(){function MoatIvtHelper(){}return MoatIvtHelper.checkUseStrict=function(){var evalState;try{evalState=function(){var res=!1,func;eval('func = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{func()}catch(t){res=!0}return res}()}catch(t){evalState=0}return evalState},MoatIvtHelper.checkUndefinedFunction=function(){var t=!1;try{({}).f()}catch(i){t=!0}return t},MoatIvtHelper.checkDetuneProperty=function(){var t=(0,_utils_window_utils__WEBPACK_IMPORTED_MODULE_1__.Jj)();if((0,_utils_browser_utils__WEBPACK_IMPORTED_MODULE_0__.P)(t.AudioContext)){var i=new t.AudioContext,n=(0,_utils_browser_utils__WEBPACK_IMPORTED_MODULE_0__.P)(i.createBufferSource)&&i.createBufferSource()||void 0;return!!(n&&n.detune&&Object.prototype.hasOwnProperty.call(n.detune,"value"))&&(n.detune.value=100,100===n.detune.value)}return!1},MoatIvtHelper.checkCanvas=function(){try{var t=document.createElement("canvas");t.width=1,t.height=1;var i=t.getContext("2d");i.globalCompositeOperation="multiply",i.fillStyle="rgb(0,255,255)",i.fillRect(0,0,1,1),i.fill(),i.fillStyle="rgb(255,255,0)",i.fillRect(0,0,1,1),i.fill();var n=i.getImageData(0,0,1,1).data;return n[0]===n[2]&&n[1]===n[3]}catch(t){return!1}},MoatIvtHelper.checkSetAttribute=function(){try{var t=document.createElement("input");return t.setAttribute("type","range"),"text"!==t.type}catch(t){return!1}},MoatIvtHelper.checkForOf=function(){try{return eval("1 == [for (item of [1,2,3]) item][0]")}catch(t){return!1}},MoatIvtHelper.checkCollatorOptions=function(){var t=(0,_utils_window_utils__WEBPACK_IMPORTED_MODULE_1__.Jj)();try{return"object"==typeof t.Intl.Collator().resolvedOptions()}catch(t){return!1}},MoatIvtHelper.checkUintArray=function(){var t=(0,_utils_window_utils__WEBPACK_IMPORTED_MODULE_1__.Jj)();try{return 0===new t.Uint16Array(1)[0]}catch(t){return!1}},MoatIvtHelper.checkActiveXObject=function(){var t=(0,_utils_window_utils__WEBPACK_IMPORTED_MODULE_1__.Jj)();try{return t.ActiveXObject&&-1===t.ActiveXObject.toString().indexOf("native")}catch(t){return!1}},MoatIvtHelper.checkElementConstructor=function(){var t=(0,_utils_window_utils__WEBPACK_IMPORTED_MODULE_1__.Jj)();try{return-1===Object.prototype.toString.call(t.HTMLElement).indexOf("Constructor")}catch(t){return!1}},MoatIvtHelper.btoa=function(t,i){void 0===i&&(i=!1);var n=(0,_utils_window_utils__WEBPACK_IMPORTED_MODULE_1__.Jj)();if(!(0,_utils_browser_utils__WEBPACK_IMPORTED_MODULE_0__.P)(n.btoa)||i){for(var e=String(t),r=0,s="",o=0,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.charAt(0|o)||(u="=",o%1);s+=u.charAt((63&r>>8)-o%1*8)){var a=e.charCodeAt(o+=3/4);if(a>255)return"";r=r<<8|a}return s}return n.btoa(t)},MoatIvtHelper.checkAnimateReverse=function(t){try{return t&&t.animate&&(0,_utils_browser_utils__WEBPACK_IMPORTED_MODULE_0__.QC)(t.animate([{easing:"ease-in",transform:"scale(1)"},{easing:"ease-in",transform:"scale(1.3)"}],{duration:1300,iterations:1}).reverse)?1:0}catch(t){return 0}},MoatIvtHelper}();__nested_webpack_exports__.Z=MoatIvtHelper},547:function(t,i,n){var e;n.d(i,{P:function(){return e}}),function(t){t.AD_PARSE_RESULT="AD_PARSE_RESULT",t.PLAY_COMPLETE="PLAY_COMPLETE",t.MUTE_CHANGED="MUTE_CHANGED",t.VOLUME_CHANGED="VOLUME_CHANGED",t.PLAYING="PLAYING",t.SET_SIZE="SET_SIZE",t.PAUSED="PAUSED",t.BREAK_ENDED="BREAK_ENDED",t.AD_METRICS="AD_METRICS",t.CLOSED_CAPTIONS_LOADED="CLOSED_CAPTIONS_LOADED",t.TIME_UPDATE="TIME_UPDATE",t.AD_SUBTITLES_NOT_FOUND="ad-plugin--subtitles-not-found"}(e||(e={}))},8855:function(t,i,n){n.d(i,{P:function(){return f},QC:function(){return h},TS:function(){return o},i7:function(){return a},pD:function(){return l},w1:function(){return c}});var e=n(8330),r=function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},s=function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};function o(){return r(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,(i=(0,e.az)("div",[{key:"class",value:"video-ad"}]),(0,e.GR)(i,document.body),i.style.height="1px",i.style.width="1px",new Promise((function(t){setTimeout((function(){t(0===i.offsetHeight),(0,e.bX)(i)}),100)})))];case 1:return[2,t.sent()]}var i}))}))}function u(){var t=navigator.userAgent;return t.indexOf("Firefox")>-1?"Mozilla Firefox":t.indexOf("SamsungBrowser")>-1?"Samsung Internet":t.indexOf("Opera")>-1||t.indexOf("OPR")>-1?"Opera":t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1?"Microsoft Internet Explorer":t.indexOf("Edge")>-1?"Microsoft Edge":t.indexOf("Chrome")>-1?"Google Chrome or Chromium":t.indexOf("Safari")>-1?"Apple Safari":"unknown"}function a(){return u().indexOf("Chrome")>=0}function c(){return u().indexOf("Internet Explorer")>=0}function h(t){return!(!t||"function"!=typeof t)&&(String(Function.prototype.toString).indexOf("[native code]")<0?t!==Function.prototype.toString&&null:!!(String(t).indexOf("[native code]")>=0))}function f(t){var i,n=window;try{if(t&&"function"==typeof t)if(t instanceof n.Function)i=!0;else{var e=t.toString();e&&(i=!(!(e=new t.constructor("return window; ")())||!e.top))}}catch(t){}return!!i}function l(){try{return window&&window.MediaSource&&"function"==typeof window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}catch(t){return!1}}},8330:function(t,i,n){function e(t,i){var n;n=t.id,document.getElementById(n)||i.appendChild(t)}function r(t){return!!(t&&t.parentElement&&t.parentElement.removeChild(t))}function s(t,i,n){void 0===i&&(i=[]);var e=document.createElement(t);return i.forEach((function(t){e.setAttribute(t.key,t.value)})),n&&n.appendChild(e),e}n.d(i,{GR:function(){return e},az:function(){return s},bX:function(){return r}})},4235:function(t,i,n){var e;function r(t){return Object.keys(t).forEach((function(i){void 0!==t[i]&&"undefined"!==t[i]||(t[i]="")})),t}n.d(i,{s5:function(){return r}}),function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE"}(e||(e={}))},5070:function(t,i,n){function e(t){var i=document.createElement("a");return i.href=t,{host:i.host,pathname:i.pathname}}function r(t,i,n){void 0===i&&(i=location.href),void 0===n&&(n=!0),t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[?&]".concat(t,"=([^&#]*)")).exec(i);return e?n?decodeURIComponent(e[1].replace(/\+/g," ")):e[1]:""}n.d(i,{Fo:function(){return s},ak:function(){return r},en:function(){return e}});var s=function(t){var i=/(?:(?:[\w]+:)?\/\/)?([^?#\/:]+)/.exec(t);return i?i[1]:""}},6165:function(t,i,n){function e(){return window}function r(t){try{return t.location?t:t.contentWindow}catch(t){}return null}function s(){return document}n.d(i,{Jj:function(){return e},Me:function(){return s},Ww:function(){return r}})}},__webpack_module_cache__={};function __nested_webpack_require_25663__(t){var i=__webpack_module_cache__[t];if(void 0!==i)return i.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](n,n.exports,__nested_webpack_require_25663__),n.exports}__nested_webpack_require_25663__.d=function(t,i){for(var n in i)__nested_webpack_require_25663__.o(i,n)&&!__nested_webpack_require_25663__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},__nested_webpack_require_25663__.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},__nested_webpack_require_25663__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __nested_webpack_exports__={};return function(){__nested_webpack_require_25663__.r(__nested_webpack_exports__),__nested_webpack_require_25663__.d(__nested_webpack_exports__,{MartiniPlugin:function(){return zi}});var t,i=function(t,i,n,e){this.id=t,this.offset=i,this.adConfigType=n,this.type=e,this.isSSAI=!1,this.refId="",this.isPlayed=!1,this.pods=[],this.resolvedAds=[],this.mimetype="adplugin/martini",this.numberRetry=0,this.stopped=!1},n=function(){this.sources=[],this.resolved=!1,this.slotType="AVAIL"},e=function(){this.network="",this.sequence=1,this.type="VAST",this.resolved=!1,this.slotType="AVAIL"},r=(t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)},function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),s=function(t){function i(i){var n=t.call(this)||this;return n.url=i.url,n.network=i.vendor||"simplified_ad_config",n.type=i.format||"VAST",n.adMarkup=i.vastXml,n.duration=i.duration,n.position=i.position,n}return r(i,t),i}(e),o=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),u=new Map([["PREROLL","PREROLL"],["MIDROLL","MIDROLL"],["POSTROLL","POSTROLL"],["OVERLAY","OVERLAY"]]),a=function(t){function i(i){var n,e,r=this;return(r=t.call(this)||this).sources.push(new s(i)),r.type=null!==(e=u.get(null===(n=i.type)||void 0===n?void 0:n.toUpperCase()))&&void 0!==e?e:"PREROLL",r}return o(i,t),i}(n),c=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),h=function(t){function i(i,n,e,r){var s,o=this;return(o=t.call(this,i,r,2,"OVERLAY"===(null===(s=n.type)||void 0===s?void 0:s.toUpperCase())?"nonlinear":"linear")||this).refId=e,o.pods.push(new a(n)),o}return c(i,t),i}(i),f=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),l=function(t){function i(i,n,e){void 0===e&&(e=0);var r=t.call(this)||this;return r.name=i.name,r.url=i.url,r.network=i.vendorName,r.sequence=n,r.type="GEMINI"==i.adEngineType.toUpperCase()?"GEMINI":"VAST",r.ruleId=i.rid,r.position=i.position,r.adMarkup=i.vastXml,r.ruleWeight=i.weight,r.skipVastRequestRetry=!(e>0)&&i.skipVastRequestRetry,r}return f(i,t),i}(e),v=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),d=function(t){function i(i,n,e){void 0===e&&(e=0);var r=t.call(this)||this;return i.aeg.forEach((function(t,i){t.forEach((function(t){r.sources.push(new l(t,i+1,e))}))})),r.type=i.type,r.podSequence=n,r.slotType=i.slot,r.noAdsId=i.noAdsId,r}return v(i,t),i}(n),p=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),b=function(t){function i(i,n,e,r,s,o,u){void 0===o&&(o=0),void 0===u&&(u=-1);var a=t.call(this,i,r,0,"OVERLAY"===s.type?"nonlinear":"linear")||this;return a.refId=e,s.slots.forEach((function(t,i){a.pods.push(new d(t,i+1,o))})),a.autoplay=n.autoplay,a.duration=u,a}return p(i,t),i}(i),m=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),y=function(t){function i(i){var n=t.call(this)||this;return n.adMarkup=JSON.stringify(i),n.network="standalone_gemini_native",n.type="GEMINI",n}return m(i,t),i}(e),g=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),w=function(t){function i(i){var n=t.call(this)||this,e=n.convertToGeminiPreroll(i.standaloneAd);return n.sources.push(new y(e)),n.type="PREROLL",n}return g(i,t),i.prototype.convertToGeminiPreroll=function(t){return{ads:[{actionUrls:t.beacons,rules:t.rules,tag:JSON.stringify(this.getAdTag(t.gemini)),creativeId:t.creativeId}]}},i.prototype.getAdTag=function(t){return{assets:[{mediaInfo:t.mediaInfo,usageType:"VIDEO_PRIMARY"}],callToAction:t.callToAction||"",clickUrl:t.clickUrl,disableAdCountdown:!!t.disableAdCountdown,headline:t.headline||"",source:t.source||"",ctaConfig:t.ctaConfig||{}}},i}(n),_=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},t(i,n)};return function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),E=function(t){function i(i,n,e){var r=t.call(this,i,"adonly",1,"linear")||this;return r.refId=e,r.pods.push(new w(n)),r}return _(i,t),i}(i),O=function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||(e||(e=Array.prototype.slice.call(i,0,r)),e[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};function S(t,i){void 0===i&&(i=0);var n=function(t,i){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];return new Promise((function(e,r){setTimeout.apply(void 0,O([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i?r():e(t)},t],n,!1))}))}(i,!0);return Promise.race([t,n])}function A(t){for(var i=(null!=t?t:"").replace(",",".").split("."),n=i[0],e=i[1],r=0,s=n.split(":"),o=[3600,60,1],u=0;u<s.length;u++)r+=+s[u]*o[u];return 0!=+r||e?parseInt(r+(e||"000")):0}var T,M,j=new Map([["PREROLL","pre"],["MIDROLL","mid"],["POSTROLL","post"]]),N=function(){function t(){this.ud={}}return t.prototype.parse=function(t,i,n){var e=i.YVAP,r=i.url||i.vastXml;return this.ud[t]=this.ud[t]||0,e?this.parseGeminiNative(t,i.YVAP):r?this.hd(t,i,n):this.fd(t,i,n)},t.prototype.parseGeminiNative=function(t,i){var n=[];return n.push(new E(++this.ud[t],i,t)),n},t.prototype.fd=function(t,i,n){var e,r=this,s=[];return null===(e=i.schema)||void 0===e||e.pods.forEach((function(e){r.ld(e.type,n,!1,e.time).forEach((function(o){s.push(new b(++r.ud[t],i,t,o.offset,e,n.playlistPosition,o.duration))}))})),s},t.prototype.hd=function(t,i,n){var e=this,r=[];return this.ld(i.type,n,i.adOnly).forEach((function(n){r.push(new h(++e.ud[t],i,t,n.offset))})),r},t.prototype.ld=function(t,i,n,e){var r;void 0===t&&(t="PREROLL"),void 0===n&&(n=!1);var s=t.toUpperCase();return n?[{offset:"adonly"}]:"OVERLAY"===s?e?[{offset:(A(e)/1e3).toFixed(1)}]:i.overlayOffsets||[]:"MIDROLL"===s?i.midrollOffsets||[{offset:"mid"}]:[{offset:null!==(r=j.get(s))&&void 0!==r?r:"pre"}]},t}(),I=__nested_webpack_require_25663__(4235),k=__nested_webpack_require_25663__(4772),R=1,L=2,C=3,D="ad_req",P="ad_call",x="ad_callf",U="ad_dlvf",F="ad_err",B="ad_prog",z="ad_oppty",V="ad_view",G="ad_comp",H="ad_init",Y="ad_dlv",q="ad_beg",W="ad_paused_plg",Q="ad_skip",Z="ad_pberr",$="ad_click",X="ad_unhandled_exception",K="ad_break_ended",J=__nested_webpack_require_25663__(5070),tt=5130,it="General wrapper error.";!function(t){t.ADXIMA="ADXIMA",t.ADXTPC="ADXTPC",t.DOUBLECLICK="DOUBLECLICK",t.DSP="DSP",t.FREEWHEEL="FREEWHEEL",t.GEMINI="GEMINI",t.OTHER="OTHER",t.RUBICON="RUBICON",t.SSP="SSP",t.TREMOR="TREMOR",t.VSSP="VSSP",t.YAHOO="YAHOO"}(T||(T={}));var nt=((M={})["ima3vpaid.appspot.com"]=T.ADXIMA,M["tpc.googlesyndication.com"]=T.ADXTPC,M["pubads.g.doubleclick.net"]=T.DOUBLECLICK,M["pmp.ybp.yahoo.com"]=T.DSP,M[".v.fwmrm.net"]=T.FREEWHEEL,M["gemini.yahoo.com"]=T.GEMINI,M["rubiconproject.com"]=T.RUBICON,M[".ssp.yahoo.com"]=T.SSP,M["tremorhub.com"]=T.TREMOR,M[".adaptv.advertising.com"]=T.VSSP,M[".yahoo.com"]=T.YAHOO,M);function et(t,i,n){if(void 0===n&&(n=!1),n){var e=(0,J.ak)("adTagUrl",t)||(0,J.ak)("adtagurl",t);if(!e)return"";var r=decodeURI(unescape(e));return(0,J.ak)(i,r)}return(0,J.ak)(i,t,!1)}function rt(t){if(!t)return"";var i=t.sourceUrl;if(!i)return ot(t);var n,e,r=(0,J.en)(i),s=function(t,n){return et(i,t,n)},o="";switch(function(t){for(var i in nt)if(t.includes(i))return nt[i];return T.OTHER}(r.host)){case T.ADXIMA:o=s("client",!0);break;case T.ADXTPC:o=s("iu",!0);break;case T.DOUBLECLICK:o=s("iu");break;case T.DSP:n=r.pathname,o=(e=n.split("/"))[e.length-1];break;case T.FREEWHEEL:o=function(t){return t?t.split(";")[0]:""}(s("prof"));break;case T.GEMINI:o=s("se");break;case T.RUBICON:o="".concat(s("account_id"),"-").concat(s("site_id"),"-").concat(s("zone_id"));break;case T.SSP:o="".concat(s("plcid"));break;case T.TREMOR:o=s("adCode")}return o}var st,ot=function(t){var i,n="posi",e=null===(i=t.impressions)||void 0===i?void 0:i.find((function(t){return t.includes(".ssp.yahoo.com")&&t.includes("/admax/adEvent.do")&&et(t,n)}));return e?et(e,n):""},ut=function(){return ut=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},ut.apply(this,arguments)},at=function(){function t(t,i,n){this.vd=t,this.dd=i,this.bd=n,this.md=0}return t.prototype.createAdRequestReport=function(t){var i=this.yd(D,void 0,t);return"VAST"===t.sourceType&&(i.ad_url=t.sourceUrl),i},t.prototype.createAdCallReport=function(t){var i,n,e=this.yd(P,void 0,t);return e.estring=null===(i=t.error)||void 0===i?void 0:i.description,e.icons=!!(null===(n=this.vd.icons)||void 0===n?void 0:n.length),e.adcnt=t.totalAdsInResponse,e},t.prototype.createAdCallFallbackReport=function(t){var i=this.createAdCallReport(t);return i.evt=x,i},t.prototype.createAdInitReport=function(t){return this.yd(H,t)},t.prototype.createAdPausedReport=function(t){return this.yd(W,t)},t.prototype.createAdOpportunityReport=function(){var t,i=this.yd(z,void 0,this.vd.actualSource),n=null===(t=this.vd.actualSource)||void 0===t?void 0:t.slotType;return"AVAIL"===n?(i.taken=1,i.ntwk=this.vd.actualSource.network):(i.taken=2,i.ntwk="Plugin Communicator",i.slot=n),i},t.prototype.createAdDeliverySuccessReport=function(t){this.gd=t.mediaStartLatency;var i=this.yd(Y,t);return i.ms_lat=this.gd,i},t.prototype.createAdViewReport=function(t){var i=this.yd(V,t);return ut(ut({},i),this.wd(2))},t.prototype.createAdPlaybackErrorReport=function(t,i,n){void 0===t&&(t=""),void 0===n&&(n=!1);var e=this.yd(Z),r=n?"600-2":"600-4";return e.ecode="".concat(r).concat(/A future version/.test(t)?"w":"e"),e.estring=t,e.ms_lat=i,e},t.prototype.createAdBeginReport=function(t){return this.yd(q,t)},t.prototype.createAdClickReport=function(t){var i=this.yd($,t);return i.cd=this.vd.clickThroughUrl,i},t.prototype.createAdSkipReport=function(t){var i=this.yd(Q,t);return ut(ut({},i),this.wd(t.currentTime))},t.prototype.createAdErrorReport=function(t){var i=this.yd(F);return i.ms_lat=this.gd,i.a_dlv_err=t.batsCode,i.estring=t.description,i},t.prototype.createAdDeliveryFailureReport=function(t){var i,n,e=this.yd(U,t);return e.a_dlv_err=null===(i=t.error)||void 0===i?void 0:i.batsCode,e.estring=null===(n=t.error)||void 0===n?void 0:n.description,e},t.prototype.createAdProgressReport=function(t,i){var n=this.yd(B,i);return n.q=100*t,ut(ut({},n),this.wd(i.currentTime))},t.prototype.createPlayCompletedReport=function(t){var i=this.yd(G,t);return ut(ut({},i),this.wd(t.currentTime))},t.prototype.createBreakEndedReport=function(t,i,n){var e=this.yd(K);return ut({ref_id:t,break_id:i,has_error:n,_V:"test"},e)},t.prototype.yd=function(t,i,n){var e,r,s,o=n||this.vd,u=o.sourceUrls||[],a=i?i.mediaFileIndex:0,c=o.mediaFiles[a],h=+(!!this.vd.skipOffset||!isNaN(null==i?void 0:i.skipOffsetInSecs)),f=ut(ut({},o.mediaFormatCounts),((e={evt:t,pos:null===(r=o.podType)||void 0===r?void 0:r.toLowerCase(),ntwk:o.network,adseq:o.sourceSequence,adclt:k.Q.MARTINI_CLIENT_NAME,vrmsdk:k.Q.MARTINI_VERSION,at:0,tmout:this.dd,vptm:this.bd,ecode:o.error?o.error.errorCode:""}).r_code=o.error?o.error.batsCode||tt:2,e.r_code_desc=encodeURI(o.error?o.error.description||it:"ok"),e.r_type=c&&c.isVpaid?"vpaid":o.responseType,e.medT=o.isAdMarkup?2:1,e.medS=o.isAdMarkup?o.containsEmbeddedAd?L:C:R,e.adl=o.sourceLatency,e.ad_lng=this._d(i),e.num_rtry=this.vd.numberRetry,e.f_call=(0,J.Fo)(o.sourceUrl),e.f_hop=(0,J.Fo)(u.length>1&&u[1]||""),e.n_hop=u.length>1?u.length-1:0,e.crd=o.crd,e.ibn=o.sourceName,e.vsl=null==i?void 0:i.vpaidScriptLoadLatency,e.vil=null==i?void 0:i.vpaidAdLoadedLatency,e.vst=null==i?void 0:i.vpaidAdStartedLatency,e.crid=o.creativeId,e.v_cr_id=o.creativeId,e.mf_url=null==c?void 0:c.url,e.mf_bit=null==c?void 0:c.bitrate,e.mtype=null==c?void 0:c.mimeType,e.adfmt=null==c?void 0:c.adFormat,e.ad_sys=o.adSystemName,e.plcid=rt(n||this.vd.actualSource)||o.placementId,e.rule=o.ruleId,e.adReplay=this.vd.adReplay,e.brl=this.vd.resolveLatency,e.rlength=(null==n?void 0:n.responseLength)||0,e.skippable=h,e.adlbl=h?"skippable":"",e.skp_cfg=this.vd.skipOffset,e.skp_actual=null==i?void 0:i.skipOffsetInSecs,e)),l=n?n.sourceType:null===(s=this.vd.successfulSource)||void 0===s?void 0:s.sourceType;if(l&&"VAST"===l){var v=this.vd,d=n?n.rootCreativeId:v.successfulSource.rootCreativeId;f.adid=o.adId,f.uadid=v.universalAdId,d&&(f.crid=d)}else"GEMINI"===l&&(v=this.vd,f.apt=v.priceType,f.adv_id=v.advertiserId);var p=(0,I.s5)(f);return f.f_hop||delete f.f_hop,p},t.prototype.wd=function(t){var i,n=Math.floor(t);return(i={dur:n}).dur_d=this.Ed(n),i},t.prototype._d=function(t){var i;return((null==t?void 0:t.duration)?Math.round(t.duration):"")||(null===(i=this.vd.actualSource)||void 0===i?void 0:i.durationInSeconds)||""},t.prototype.Ed=function(t){var i=t-this.md;return this.md=t,i},t}(),ct=function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||(e||(e=Array.prototype.slice.call(i,0,r)),e[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))},ht=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return ct([],t,!0).flat().filter((function(t){return null!=t}))},ft=__nested_webpack_require_25663__(8855);!function(t){t.CJS="cjs",t.CM3U8="cm3u8",t.CSWF="cswf",t.C3GPP="c3gpp",t.CFLV="cflv",t.CMP4="cmp4",t.CWEBM="cwebm",t.COGG="cogg",t.COTHER="cother"}(st||(st={}));var lt,vt=document.createElement("video"),dt=["application/x-shockwave-flash","video/x-flv"],pt={},bt=((lt={})["application/javascript"]=st.CJS,lt["text/javascript"]=st.CJS,lt["application/x-javascript"]=st.CJS,lt["application/vnd.apple.mpegurl"]=st.CM3U8,lt["application/x-mpegurl"]=st.CM3U8,lt["application/x-shockwave-flash"]=st.CSWF,lt["uplynk/m3u8"]=st.CM3U8,lt["video/3gpp"]=st.C3GPP,lt["video/x-flv"]=st.CFLV,lt["video/mp4"]=st.CMP4,lt["video/webm"]=st.CWEBM,lt["video/ogg"]=st.COGG,lt),mt="vpaid",yt=function(t){return(t.type||t.contentType||"").toLowerCase()},gt=function(t){return t.content||t.url||""},wt=function(t){var i=pt[t];return void 0===i&&(i=function(t){try{return"function"==typeof vt.canPlayType&&""!==vt.canPlayType(t)&&!((0,ft.i7)()&&t.indexOf("video/3gpp")>=0)}catch(t){return!1}}(t),pt[t]=i),i},_t=function(t){return t.reduce((function(t,i){var n,e=yt(i);return function(t){return dt.indexOf(t)>=0}(e)?t.ignored.push(i):Mt(i)?t.vpaid.push(i):wt(e)?"video/mp4"===e?t.mp4.push(i):t.otherNative.push(i):(n=gt(i),/\.mp4/i.test(n)?t.mp4.push(i):function(t){return/\.m3u8/i.test(t)}(gt(i))&&(0,ft.pD)()&&t.nonNativeHls.push(i)),t}),{mp4:[],nonNativeHls:[],otherNative:[],vpaid:[],ignored:[]})},Et=function(t,i){var n=function(t,n){return void 0===n&&(n=!1),t.sort((function(t,e){var r=t.bitrate||t.minBitrate,s=e.bitrate||e.minBitrate;return r===s?t.width>=i?e.width>=i?t.width-e.width:-1:e.width-t.width:n?s-r:r-s}))},e=function(t){return t.reduce((function(t,i){return i.bitrate?i.bitrate<=900?t.low.push(i):t.high.push(i):i.minBitrate?i.minBitrate<=900?t.low.push(i):t.high.push(i):t.missing.push(i),t}),{high:[],low:[],missing:[]})}(t);return n(e.low,!0).concat(n(e.high)).concat(n(e.missing))};function Ot(t,i,n){var e=function(t){return t.reduce((function(t,i){var n=Mt(i)?mt:"".concat(i.height/i.width);return t[n]=t[n]||[],t[n].push(i),t}),{})}(t),r=n/i;return Object.keys(e).sort((function(t,i){return i==mt?-1:Math.abs(+t-r)-Math.abs(+i-r)})).reduce((function(t,n){var r=_t(e[n]);return t.concat(Et(r.mp4,i)).concat(Et(r.otherNative,i)).concat(Et(r.nonNativeHls,i)).concat(r.vpaid)}),[])}function St(t){var i=t.reduce((function(t,i){var n,e=bt[yt(i)]||st.COTHER;return t[e]=(null!==(n=t[e])&&void 0!==n?n:0)+1,t}),{});return i}var At,Tt,Mt=function(t){var i;return"vpaid"===(null===(i=t.apiFramework)||void 0===i?void 0:i.toLowerCase())};!function(t){t.CREATIVE_VIEW="creativeView",t.START="start",t.FIRST_QUARTILE="firstQuartile",t.MIDPOINT="midpoint",t.THIRD_QUARTILE="thirdQuartile",t.COMPLETE="complete",t.MUTE="mute",t.UNMUTE="unmute",t.PAUSE="pause",t.REWIND="rewind",t.RESUME="resume",t.FULLSCREEN="fullscreen",t.EXIT_FULLSCREEN="exitFullscreen",t.EXPAND="expand",t.COLLAPSE="collapse",t.ACCEPT_INVITATION="acceptInvitation",t.CLOSE="close",t.ACCEPT_INVITATION_LINEAR="acceptInvitationLinear",t.CLOSE_LINEAR="closeLinear",t.SKIP="skip",t.PROGRESS="progress",t.PLAYER_EXPAND="playerExpand",t.PLAYER_COLLAPSE="playerCollapse",t.NOT_USED="notUsed",t.LOADED="loaded",t.AD_EXPAND="adExpand",t.AD_COLLAPSE="adCollapse",t.MINIMIZE="minimize",t.OVERLAY_VIEW_DURATION="overlayViewDuration",t.OTHER_AD_INTERACTION="otherAdInteraction",t.INTERACTIVE_START="interactiveStart",t.VERIFICATION_NOT_EXECUTED="verificationNotExecuted",t.CLICK_TROUGH="clickThru",t.TRACK_ERROR="trackError"}(At||(At={})),function(t){t.VIEWABILITY_RULES="ViewabilityRules",t.VIEWABILITY_3P="Viewability3P",t.AD_VERIFICATIONS="AdVerifications"}(Tt||(Tt={}));var jt,Nt=function(t){var i,n,e;return{Od:t.model,hasModel:!!t.model,containsEmbeddedAd:!!t.isEmbedded&&!!t.model,responseType:"no-ad",sourceSequence:null!==(i=t.sourceSequence)&&void 0!==i?i:1,sourceUrl:null!==(n=t.sourceUrl)&&void 0!==n?n:"",podType:t.podType,sourceType:t.sourceType,podSequence:t.podSequence,sourceName:t.sourceName,ruleId:t.ruleId,sourceLatency:t.sourceLatency,responseLength:t.responseLength||0,slotType:t.slotType,duration:t.duration,position:t.position,network:t.network,isAdMarkup:t.isAdMarkup,error:t.error,opportunityBeacons:t.opportunityBeacons,sourceUrls:(null===(e=t.resolvedSourceHops)||void 0===e?void 0:e.map((function(t){return t.url})))||[],viewabilityBeacons:t.viewabilityBeacons,creativeId:"",clickThroughUrl:"",crd:t.crd,adId:"",adSystemName:"",adConfigType:t.adConfigType,placementId:"",totalAdsInResponse:t.totalAdsInResponse,mediaFiles:[],mediaFormatCounts:[],ccFiles:[],durationInSeconds:t.duration?t.duration/1e3:void 0,isImage:!1}},It=function(t){var i,n,e,r,s,o,u,a,c=t.url?"GEMINI":"VAST",h="VAST"===c?t:null,f="GEMINI"===c?t:null,l=null!==(i=t.bitrate)&&void 0!==i?i:0,v="".concat(t.width||0,"x").concat(t.height||0);return{D:c,Sd:h,Ad:f,width:t.width,height:t.height,dimensions:v,bitrate:l,adFormat:"".concat(v,":").concat(l),mimeType:null!==(e=null!==(n=null==f?void 0:f.contentType)&&void 0!==n?n:h.type)&&void 0!==e?e:"",apiFramework:null!==(r=null==h?void 0:h.apiFramework)&&void 0!==r?r:"",url:null!==(o=null!==(s=null==f?void 0:f.url)&&void 0!==s?s:h.content)&&void 0!==o?o:"",id:null!==(u=null==h?void 0:h.id)&&void 0!==u?u:"",isVpaid:!!h&&Mt(h),isImage:(a=t,yt(a).includes("image")),length:null==f?void 0:f.length}},kt=function(){return kt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},kt.apply(this,arguments)},Rt=function(t,i,n){var e,r,s,o,u,a,c,h,f,l,v,d,p,b,m,y,g=Nt(t),w=t.model,_=ht(null===(r=null===(e=null==w?void 0:w.inLine)||void 0===e?void 0:e.creatives)||void 0===r?void 0:r.creative),E=_.find((function(t){return t.linear})),O=ht(null===(o=null===(s=null==E?void 0:E.linear)||void 0===s?void 0:s.mediaFiles)||void 0===o?void 0:o.mediaFile),S=Ot(O,i,n).map((function(t){return It(t)})),A=ht(null===(u=null==w?void 0:w.inLine)||void 0===u?void 0:u.impression).map((function(t){return t.content})).filter((function(t){return!!t})),T=ht(null===(c=null===(a=null==w?void 0:w.inLine)||void 0===a?void 0:a.extensions)||void 0===c?void 0:c.extension),M=T.find((function(t){return t.type==Tt.AD_VERIFICATIONS})),j=null==E?void 0:E.universalAdId;(null===(h=null==w?void 0:w.inLine)||void 0===h?void 0:h.error)&&(y=ht(w.inLine.error).map((function(t){return{event:At.TRACK_ERROR,content:t.content}})));for(var N="",I=0;I<A.length;I++){var R=A[I];R.includes(k.Q.ADAPTV_SERVER)&&!N&&(N=(0,J.ak)("5",R))}return kt(kt({},g),{mediaFiles:S,mediaFormatCounts:O.length>0?St(O):{},vastAd:w,creatives:_,creative:E,extensions:T,impressions:A,responseType:S.length?"ad":"no-ad",creativeId:null==E?void 0:E.id,universalAdId:j?encodeURIComponent("".concat(j.idRegistry," ").concat(j.content)):"",inlineError:y,verifications:ht(null===(l=null===(f=null==w?void 0:w.inLine)||void 0===f?void 0:f.adVerifications)||void 0===l?void 0:l.verification,null===(v=null==M?void 0:M.adVerifications)||void 0===v?void 0:v.verification),adId:(null==w?void 0:w.inLine)&&w.id?w.id:"",adSystemName:null!==(b=null===(p=null===(d=null==w?void 0:w.inLine)||void 0===d?void 0:d.adSystem)||void 0===p?void 0:p.content)&&void 0!==b?b:"",viewableImpression:null===(m=null==w?void 0:w.inLine)||void 0===m?void 0:m.viewableImpression,placementId:N})};!function(t){t.PROGRESSIVE="progressive",t.STREAMING="streaming"}(jt||(jt={}));var Lt,Ct=function(){return Ct=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Ct.apply(this,arguments)};!function(t){t.MULTI_IMAGE="MULTI_IMAGE",t.VIDEO_PREVIEW="VIDEO_PREVIEW",t.VIDEO_PRIMARY="VIDEO_PRIMARY"}(Lt||(Lt={}));var Dt=function(){return Dt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Dt.apply(this,arguments)},Pt=function(){return Pt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Pt.apply(this,arguments)};function xt(t,i,n){var e;return"OVERLAY"===(null===(e=t.podType)||void 0===e?void 0:e.toUpperCase())?function(t){var i,n,e,r,s,o,u,a,c,h,f,l,v,d,p,b,m,y=t.model,g=ht(null===(n=null===(i=null==y?void 0:y.inLine)||void 0===i?void 0:i.creatives)||void 0===n?void 0:n.creative).find((function(t){return!!t.nonLinearAds})),w=ht(null===(e=null==g?void 0:g.nonLinearAds)||void 0===e?void 0:e.nonLinear)[0],_=null!==(r=null==w?void 0:w.width)&&void 0!==r?r:0,E=null!==(s=null==w?void 0:w.height)&&void 0!==s?s:0,O=null!==(u=null===(o=null==w?void 0:w.staticResource)||void 0===o?void 0:o.content)&&void 0!==u?u:"",S=null!==(c=null===(a=null==w?void 0:w.staticResource)||void 0===a?void 0:a.creativeType)&&void 0!==c?c:"",A=w?[It({apiFramework:w.apiFramework,content:O,delivery:jt.PROGRESSIVE,height:E,maintainAspectRatio:w.maintainAspectRatio,scalable:w.scalable,type:S,width:_})]:[],T=Rt(t,_,E);return Ct(Ct({},T),{mediaFiles:A,width:_,height:E,url:O,creative:g,isImage:!!(null===(h=A[0])||void 0===h?void 0:h.isImage),mediaFormatCounts:{},adParameters:null!==(l=null===(f=null==w?void 0:w.adParameters)||void 0===f?void 0:f.content)&&void 0!==l?l:"",trackings:ht(null!==(p=null===(d=null===(v=null==g?void 0:g.nonLinearAds)||void 0===v?void 0:v.trackingEvents)||void 0===d?void 0:d.tracking)&&void 0!==p?p:[],T.inlineError),responseType:A.length?"ad":"no-ad",clickThroughUrl:null!==(m=null===(b=null==w?void 0:w.nonLinearClickThrough)||void 0===b?void 0:b.content)&&void 0!==m?m:"",nonLinearAd:w})}(t):"GEMINI"===t.sourceType?function(t,i,n){var e,r,s,o,u=Nt(t),a=t.model,c=null==a?void 0:a.tag,h=null===(e=null==c?void 0:c.assets)||void 0===e?void 0:e.find((function(t){return t.usageType===Lt.VIDEO_PRIMARY})),f=null!==(r=null==h?void 0:h.mediaInfo)&&void 0!==r?r:[],l=f.length>0?St(f):{},v=Ot(f,i,n).map((function(t){return It(t)}));return Dt(Dt({},u),{primaryAsset:h,mediaFiles:v,Td:f,ctaConfig:null==c?void 0:c.ctaConfig,callToAction:null==c?void 0:c.callToAction,headline:null==c?void 0:c.headline,source:null==c?void 0:c.source,clickThroughUrl:null!==(s=null==c?void 0:c.clickUrl)&&void 0!==s?s:"",type:"GEMINI",creativeId:null==a?void 0:a.creativeId,priceType:null==a?void 0:a.priceType,advertiserId:null==c?void 0:c.advertiser_id,actionUrls:(null==a?void 0:a.actionUrls)||{},impBeacon:null==a?void 0:a.beacon,rules:null==a?void 0:a.rules,responseType:(null===(o=v[0])||void 0===o?void 0:o.url)?"ad":"no-ad",mediaFormatCounts:l})}(t,i,n):function(t,i,n){var e,r,s,o,u,a,c,h,f,l,v,d,p,b,m,y,g,w,_,E,O,S,T,M,j=Rt(t,i,n),N=t.model,I=ht(null===(r=null===(e=null==N?void 0:N.inLine)||void 0===e?void 0:e.creatives)||void 0===r?void 0:r.creative).find((function(t){return!!t.linear})),k=null===(o=null===(s=null==I?void 0:I.linear)||void 0===s?void 0:s.duration)||void 0===o?void 0:o.content,R=null===(c=null===(a=null===(u=null==I?void 0:I.linear)||void 0===u?void 0:u.mediaFiles)||void 0===a?void 0:a.closedCaptionFiles)||void 0===c?void 0:c.closedCaptionFile,L=k?A(k):void 0,C=null!==(f=null===(h=null==I?void 0:I.linear)||void 0===h?void 0:h.skipoffset)&&void 0!==f?f:"",D=null!==(d=null===(v=null===(l=null==I?void 0:I.linear)||void 0===l?void 0:l.adParameters)||void 0===v?void 0:v.content)&&void 0!==d?d:"",P=ht(null!==(m=null===(b=null===(p=null==I?void 0:I.linear)||void 0===p?void 0:p.trackingEvents)||void 0===b?void 0:b.tracking)&&void 0!==m?m:[],j.inlineError),x=null===(_=ht(null!==(w=null===(g=null===(y=null==I?void 0:I.linear)||void 0===y?void 0:y.videoClicks)||void 0===g?void 0:g.clickTracking)&&void 0!==w?w:[])[0])||void 0===_?void 0:_.content,U=R?ht(R):[],F=null!==(T=null===(S=null===(O=null===(E=null==I?void 0:I.linear)||void 0===E?void 0:E.videoClicks)||void 0===O?void 0:O.clickThrough)||void 0===S?void 0:S.content)&&void 0!==T?T:"",B=null===(M=(t.resolvedSourceHops||[])[0])||void 0===M?void 0:M.creativeId;return Pt(Pt({},j),{ccFiles:U,duration:L,skipOffset:C,adParameters:D,trackings:P,clickTracking:x,clickThroughUrl:F,rootCreativeId:B})}(t,i,n)}var Ut=function(t,i,n){var e,r,s,o,u,a,c=[],h=(null===(e=t.unsuccessfulSources)||void 0===e?void 0:e.map((function(t){return xt(t,i,n)})))||[];c.push.apply(c,h),t.successfulSource&&(a=xt(t.successfulSource,i,n),c.push(a));var f=[];c.forEach((function(t){t.opportunityBeacons&&f.push.apply(f,t.opportunityBeacons)}),[]);var l=null!=a?a:h[h.length-1],v={};return c.forEach((function(t){return v[t.sourceSequence]=t})),{actualSource:l,adReplay:t.adReplay,autoplay:t.autoplay,breakId:t.breakId,ccFiles:null==a?void 0:a.ccFiles,clickThroughUrl:null!==(r=null==a?void 0:a.clickThroughUrl)&&void 0!==r?r:"",containsEmbeddedAd:!!(null==a?void 0:a.containsEmbeddedAd),crd:null==a?void 0:a.crd,creativeId:null==a?void 0:a.creativeId,distinctSourcesBySequence:Object.values(v),duration:null==a?void 0:a.duration,durationInSeconds:null==a?void 0:a.durationInSeconds,error:null==a?void 0:a.error,hasModel:!!a,hasUnresolvedSources:t.hasUnresolvedSources,height:n,isAdMarkup:null==a?void 0:a.isAdMarkup,mediaFiles:(null==l?void 0:l.mediaFiles)||[],mediaFormatCounts:(null==l?void 0:l.mediaFormatCounts)||{},network:null==a?void 0:a.network,numberRetry:t.numberRetry,opportunityBeacons:f,podSequence:null==a?void 0:a.podSequence,podType:null==a?void 0:a.podType,position:null==a?void 0:a.position,refId:t.refId,resolveLatency:t.resolveLatency,responseType:null!==(s=null==a?void 0:a.responseType)&&void 0!==s?s:"no-ad",ruleId:null==a?void 0:a.ruleId,slotType:null==l?void 0:l.slotType,adConfigType:null==l?void 0:l.adConfigType,sourceLatency:null==a?void 0:a.sourceLatency,sourceName:null==a?void 0:a.sourceName,sources:c,sourceSequence:null!==(o=null==a?void 0:a.sourceSequence)&&void 0!==o?o:1,sourceUrl:(null==a?void 0:a.sourceUrl)||"",sourceUrls:null===(u=t.resolvedSourceHops)||void 0===u?void 0:u.map((function(t){return t.url})),successfulSource:a,type:"VAST",unsuccessfulSources:h,viewabilityBeacons:null==a?void 0:a.viewabilityBeacons,width:i,isImage:null==a?void 0:a.isImage}},Ft=function(){return Ft=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Ft.apply(this,arguments)},Bt=function(){return Bt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Bt.apply(this,arguments)},zt=function(t,i,n){var e,r,s,o,u=Ut(t,i,n),a=u.successfulSource;return Bt(Bt({},u),{adId:null!==(e=null==a?void 0:a.adId)&&void 0!==e?e:"",adParameters:"",adSystemName:null!==(r=null==a?void 0:a.adSystemName)&&void 0!==r?r:"",creative:null==a?void 0:a.creative,creativeId:null==a?void 0:a.creativeId,impressions:(null==a?void 0:a.impressions)||[],placementId:null!==(s=null==a?void 0:a.placementId)&&void 0!==s?s:"",trackings:[],universalAdId:null!==(o=null==a?void 0:a.universalAdId)&&void 0!==o?o:"",viewableImpression:null==a?void 0:a.viewableImpression})},Vt=function(){return Vt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Vt.apply(this,arguments)},Gt=function(){return Gt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Gt.apply(this,arguments)};function Ht(t,i,n){var e,r,s;return"OVERLAY"===(null===(r=null===(e=t.successfulSource)||void 0===e?void 0:e.podType)||void 0===r?void 0:r.toUpperCase())?function(t,i,n){var e,r,s,o,u,a,c,h,f=zt(t,i,n),l=f.successfulSource,v=3e4;if(null==l?void 0:l.duration)v=1e3*l.duration;else{var d=null===(r=null===(e=null==l?void 0:l.nonLinearAd)||void 0===e?void 0:e.minSuggestedDuration)||void 0===r?void 0:r.toString();d&&(v=A(d))}return Vt(Vt({},f),{adParameters:null!==(s=null==l?void 0:l.adParameters)&&void 0!==s?s:"",clickThroughUrl:null!==(o=null==l?void 0:l.clickThroughUrl)&&void 0!==o?o:"",creative:null==l?void 0:l.creative,duration:v,height:null!==(u=null==l?void 0:l.height)&&void 0!==u?u:0,position:(null==l?void 0:l.position)||"FULL",trackings:null!==(a=null==l?void 0:l.trackings)&&void 0!==a?a:[],url:null!==(c=null==l?void 0:l.url)&&void 0!==c?c:"",width:null!==(h=null==l?void 0:l.width)&&void 0!==h?h:0})}(t,i,n):"GEMINI"===(null===(s=t.successfulSource)||void 0===s?void 0:s.sourceType)?function(t,i,n){var e,r=Ut(t,i,n),s=r.successfulSource;return Ft(Ft({},r),{actionUrls:(null==s?void 0:s.actionUrls)||{},advertiserId:null==s?void 0:s.advertiserId,callToAction:null==s?void 0:s.callToAction,clickThroughUrl:null!==(e=null==s?void 0:s.clickThroughUrl)&&void 0!==e?e:"",creativeId:null==s?void 0:s.creativeId,ctaConfig:null==s?void 0:s.ctaConfig,headline:null==s?void 0:s.headline,impBeacon:null==s?void 0:s.impBeacon,priceType:null==s?void 0:s.priceType,rules:null==s?void 0:s.rules,source:null==s?void 0:s.source,type:null==s?void 0:s.type})}(t,i,n):function(t,i,n){var e,r,s,o,u,a,c,h,f,l,v=zt(t,i,n),d=v.successfulSource;return Gt(Gt({},v),{adParameters:null!==(e=null==d?void 0:d.adParameters)&&void 0!==e?e:"",ccFiles:null!==(r=null==d?void 0:d.ccFiles)&&void 0!==r?r:[],clickThroughUrl:null!==(s=null==d?void 0:d.clickThroughUrl)&&void 0!==s?s:"",clickTracking:null==d?void 0:d.clickTracking,duration:null==d?void 0:d.duration,icons:ht(null===(a=null===(u=null===(o=null==d?void 0:d.creative)||void 0===o?void 0:o.linear)||void 0===u?void 0:u.icons)||void 0===a?void 0:a.icon),responseType:null!==(c=null==d?void 0:d.responseType)&&void 0!==c?c:"no-ad",skipOffset:null!==(h=null==d?void 0:d.skipOffset)&&void 0!==h?h:"",trackings:null!==(f=null==d?void 0:d.trackings)&&void 0!==f?f:[],verifications:null!==(l=null==d?void 0:d.verifications)&&void 0!==l?l:[]})}(t,i,n)}var Yt,qt=function(){return qt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},qt.apply(this,arguments)},Wt=function(){function t(t){this.Md=t,this.jd=!1,this.Nd=!1}return Object.defineProperty(t.prototype,"batsReportingController",{get:function(){return this.Id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.jd},enumerable:!1,configurable:!0}),t.prototype.prepare=function(t,i,n,e,r){var s,o,u=Ht(t,i,n);this.Nd=!u.actualSource||u.actualSource.podType!==(null===(o=null===(s=this.kd)||void 0===s?void 0:s.actualSource)||void 0===o?void 0:o.podType),this.kd=u,this.Id=new at(this.kd,e,r),this.jd=!1},t.prototype.sendAdRequestReport=function(){var t,i,n=this,e=[];(null!==(i=null===(t=this.kd)||void 0===t?void 0:t.distinctSourcesBySequence.filter((function(t){return"VAST"===t.sourceType})))&&void 0!==i?i:[]).forEach((function(t){return e.push(n.batsReportingController.createAdRequestReport(t))})),this.Md.sendBatsReports(e)},t.prototype.sendPlayStartReports=function(){var t=[],i=0,n=[];this.kd&&(i=(n=this.kd.distinctSourcesBySequence).length-1);for(var e=0;e<i;++e)t.push(this.batsReportingController.createAdCallFallbackReport(n[e]));var r=this.batsReportingController.createAdCallReport(n[i]);t.push(r),this.Md.sendBatsReports(t)},t.prototype.sendPlayCompleteEvent=function(t){if(this.kd){var i=this.kd.refId,n=this.kd.breakId,e=this.batsReportingController.createPlayCompletedReport(t);this.Md.sendPlayCompleteEvent(i,n,e)}},t.prototype.sendMediaLoadedReport=function(t){var i,n;if(null===(n=null===(i=this.kd)||void 0===i?void 0:i.mediaFiles[t.mediaFileIndex])||void 0===n?void 0:n.isVpaid){var e=[this.batsReportingController.createAdInitReport(t)];this.Md.sendBatsReports(e)}},t.prototype.sendPauseReport=function(t){this.Md.sendPauseEvent(this.batsReportingController.createAdPausedReport(t))},t.prototype.sendFailedAdOpportunityReport=function(t,i,n){var e={evt:z,medS:1,medT:1,ntwk:"Plugin Communicator",pos:null==t?void 0:t.toLowerCase(),slot:i,taken:2,rule:n};this.Md.sendBatsReports([e])},t.prototype.sendBreakEndedReport=function(t,i,n){var e=this.batsReportingController.createBreakEndedReport(t,i,n);this.Md.sendBatsReports([e])},t.prototype.sendUnhandledExceptionReport=function(t){var i=qt({evt:X,_V:"test"},t);this.Md.sendBatsReports([i])},t.prototype.sendAdOpportunityReport=function(){this.Nd&&this.Md.sendBatsReports([this.batsReportingController.createAdOpportunityReport()])},t.prototype.sendAdClickReport=function(t){this.Md.sendBatsReports([this.batsReportingController.createAdClickReport(t)])},t.prototype.sendAdSkipReport=function(t){this.Md.sendBatsReports([this.batsReportingController.createAdSkipReport(t)]),this.kd&&this.Md.sendPlayCompleteEvent(this.kd.refId,this.kd.breakId)},t.prototype.sendAdDeliveryFailureReport=function(t){var i=this.batsReportingController.createAdDeliveryFailureReport(t);this.Md.sendBatsReports([i])},t.prototype.sendErrorReport=function(t){var i=this.isStarted?this.batsReportingController.createAdPlaybackErrorReport(t.description):this.batsReportingController.createAdErrorReport(t);this.Md.sendBatsReports([i]),this.kd&&this.Md.sendPlayCompleteEvent(this.kd.refId,this.kd.breakId)},t.prototype.sendQuartileReport=function(t,i){var n=this.batsReportingController.createAdProgressReport(t,i);this.Md.sendBatsReports([n])},t.prototype.sendAdViewReport=function(t){this.Md.sendBatsReports([this.batsReportingController.createAdViewReport(t)])},t.prototype.sendStartedReports=function(t){var i,n;this.jd=!0;var e=this.Id?[this.Id.createAdDeliverySuccessReport(t)]:[];(null===(n=null===(i=this.kd)||void 0===i?void 0:i.mediaFiles[t.mediaFileIndex])||void 0===n?void 0:n.isVpaid)&&e.push(this.batsReportingController.createAdBeginReport(t)),this.Md.sendBatsReports(e)},t.prototype.sendAdInterventionReport=function(t){var i=this.batsReportingController.createAdPlaybackErrorReport(t.errMsg,t.mediaStartLatency,!0);this.Md.sendBatsReports([i])},t.prototype.reset=function(){this.jd=!1,this.Nd=!1,this.kd=void 0},t}();!function(t){t.CACHE_BUSTING="[CACHEBUSTING]",t.ERROR_CODE="[ERRORCODE]",t.OMID_PARTNER="[OMIDPARTNER]",t.REASON="[REASON]",t.TIMESTAMP="[TIMESTAMP]"}(Yt||(Yt={}));var Qt,Zt=function(){function t(t){this.Rd=t}return t.prototype.resolve=function(t,i){return void 0===i&&(i=new Map),i.forEach((function(i,n){return t=t.replace(n,encodeURIComponent(i))})),this.Rd.forEach((function(i,n){t=t.replace(n,encodeURIComponent("function"==typeof i?i():i))})),t},t.prototype.set=function(t,i){this.Rd.set(t,i)},t}();!function(t){t.AD_BREAK_ID="[AD_BREAK_ID]",t.AD_BREAK_INDEX="[AD_BREAK_INDEX]",t.AD_BREAK_DURATION="[AD_BREAK_DURATION]",t.CONTAINER_HEIGHT="[CONTAINER_HEIGHT]",t.CONTAINER_WIDTH="[CONTAINER_WIDTH]",t.SS_REQ="[SS_REQ]"}(Qt||(Qt={}));var $t,Xt=new Zt(new Map([[Yt.CACHE_BUSTING,function(){return Math.random().toString().slice(2,10)}],[Yt.TIMESTAMP,function(){return(new Date).getTime()}],[Qt.CONTAINER_HEIGHT,function(){return window.innerHeight}],[Qt.CONTAINER_WIDTH,function(){return window.innerWidth}],[Yt.OMID_PARTNER,"unknown"],[Qt.SS_REQ,0]])),Kt={resolve:Xt.resolve.bind(Xt),set:Xt.set.bind(Xt)};!function(t){t.S_VIEW_TYPE="$(S_VIEW_TYPE)",t.V_AUD_INFO="$(V_AUD_INFO)",t.V_AUD_TIME_INVIEW_100="$(V_AUD_TIME_INVIEW_100)",t.V_AUTOPLAYED="$(V_AUTOPLAYED)",t.V_EXPANDED="$(V_EXPANDED)",t.V_IS_INVIEW_100_HALFTIME="$(V_IS_INVIEW_100_HALFTIME)",t.V_MOAT_IVT="$(V_MOAT_IVT)",t.V_PLAYER_HEIGHT="$(V_PLAYER_HEIGHT)",t.V_PLAYER_WIDTH="$(V_PLAYER_WIDTH)",t.V_SKIP_AVAIL="$(V_SKIP_AVAIL)",t.V_TIME_INVIEW_50="$(V_TIME_INVIEW_50)",t.V_TIME_INVIEW_50_MAX_CONTINUOUS="$(V_TIME_INVIEW_50_MAX_CONTINUOUS)",t.V_VIEW_INFO="$(V_VIEW_INFO)",t.V_VIEW_TYPE="$(V_VIEW_TYPE)"}($t||($t={}));var Jt,ti,ii=function(){function t(){}return t.prototype.setAdInitTime=function(t){var i;this.Ld=null!==(i=this.Ld)&&void 0!==i?i:t},Object.defineProperty(t.prototype,"mediaStartLatency",{get:function(){if(this.Cd&&this.Ld)return this.Cd-this.Ld},enumerable:!1,configurable:!0}),t.prototype.setMediaStartTime=function(t){var i;this.Cd=null!==(i=this.Cd)&&void 0!==i?i:t},Object.defineProperty(t.prototype,"vpaidScriptLoadLatency",{get:function(){if(this.Dd&&this.Ld)return this.Dd-this.Ld},enumerable:!1,configurable:!0}),t.prototype.setVpaidScriptLoadTime=function(t){var i;this.Dd=null!==(i=this.Dd)&&void 0!==i?i:t},Object.defineProperty(t.prototype,"vpaidAdLoadedLatency",{get:function(){if(this.Pd&&this.Dd)return this.Pd-this.Dd},enumerable:!1,configurable:!0}),t.prototype.setVpaidAdLoadedTime=function(t){var i;this.Pd=null!==(i=this.Pd)&&void 0!==i?i:t},Object.defineProperty(t.prototype,"vpaidAdStartedLatency",{get:function(){if(this.xd&&this.Pd)return this.xd-this.Pd},enumerable:!1,configurable:!0}),t.prototype.setVpaidAdStartedTime=function(t){var i;this.xd=null!==(i=this.xd)&&void 0!==i?i:t},t}(),ni=function(){function t(){}return Object.defineProperty(t,"adState",{get:function(){return{volume:t.volume,isMuted:t.isMuted,currentTime:t.currentTime,duration:t.duration,skipOffsetInSecs:t.skipOffsetInSecs,executionStatus:t.executionStatus,mediaFileIndex:t.mediaFileIndex,error:t.error,mediaStartLatency:t.reportingParameters.mediaStartLatency,vpaidScriptLoadLatency:t.reportingParameters.vpaidScriptLoadLatency,vpaidAdLoadedLatency:t.reportingParameters.vpaidAdLoadedLatency,vpaidAdStartedLatency:t.reportingParameters.vpaidAdStartedLatency}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"playRequestId",{get:function(){return this.Ud},set:function(t){this.Ud=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"stopRequestId",{get:function(){return this.Fd},set:function(t){this.Fd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"volume",{get:function(){return this.Bd},set:function(t){this.Bd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"isMuted",{get:function(){return this.zd},set:function(t){this.zd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"isStarted",{get:function(){return this.jd},set:function(t){this.jd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"error",{get:function(){return this._i},set:function(t){this._i=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"executionStatus",{get:function(){return this.Vd},set:function(t){this.Vd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"isFullscreen",{get:function(){return this.Gd},set:function(t){this.Gd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"quartilesTrackedCache",{get:function(){return this.Hd},set:function(t){this.Hd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentDecile",{get:function(){return this.Yd},set:function(t){this.Yd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"rendererState",{get:function(){return this.qd},set:function(t){this.qd=t},enumerable:!1,configurable:!0}),t.hasQuartile=function(t){return this.quartilesTrackedCache.indexOf(t)>=0},Object.defineProperty(t,"viewablePercent",{get:function(){return this.Wd},set:function(t){this.Wd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"duration",{get:function(){return this.Qd},set:function(t){this.Qd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentTime",{get:function(){return this.Zd},set:function(t){this.Zd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"skipOffsetInSecs",{get:function(){return this.$d},set:function(t){this.$d=t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"containerWidth",{get:function(){return window.innerWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t,"containerHeight",{get:function(){return window.innerHeight},enumerable:!1,configurable:!0}),t.reportingParameters=new ii,t.demoMode=!1,t.mediaFileIndex=0,t.adBlockerDetected=!1,t.qd="idle",t.Yd=0,t.Hd=[],t.zd=!1,t.jd=!1,t.Gd=!1,t.Bd=1,t.Ud="",t.Fd="",t.Wd=0,t.Vd="PLAYED",t.Zd=0,t}(),ei=function(){function t(){this.Xd=0,this.Kd=0}return t.prototype.getResult=function(){return this.Kd},t.prototype.append=function(t){return this.Kd=this.Kd|(t?1:0)<<this.Xd++,this},t}(),ri=__nested_webpack_require_25663__(2311),si=__nested_webpack_require_25663__(6165),oi=__nested_webpack_require_25663__(8330),ui=function(){function t(){this.Jd={};var t=(0,si.Me)();this.tp=0,this.ip=0,this.np=t&&t.body&&t.body.style?t.body.style:{},this.sp=t&&t.documentElement&&t.documentElement.style?t.documentElement.style:{},this.op=(0,si.Jj)(),this.up=this.op.CSS,this.ap=this.op.navigator,this.cp=this.op.performance,this.hp=!(!this.op.CSS||!this.op.CSS.supports),this.fp=this.lp(),this.dp()}return t.prototype.getIvtSignals=function(){var t=this,i=[];return Object.keys(this.Jd).forEach((function(n){try{var e=t.Jd[n]();i.push("".concat(n,"=").concat(e))}catch(t){}})),i.join("&")},t.prototype.pp=function(){return 1},t.prototype.bp=function(){return Date.now()},t.prototype.mp=function(){var t=(new Date).getTime(),i=document,n=i.createElement("template"),e=i.createElement("details"),r=i.createElement("img");return(new ei).append(this.op.chrome&&this.op.chrome.webstore).append(i.documentMode).append(i.fonts&&i.fonts.ready).append(1&t).append(this.op.ActiveXObject).append(this.op.chrome).append(this.ap.serviceWorker).append(this.op.opera).append(this.op.sidebar).append(!1).append(2&t).append(!this.op.ActiveXObject).append(this.yp("-ms-ime-align")).append(this.yp("-ms-scroll-limit")).append(this.gp("-webkit-font-feature-settings")).append(4&t).append(this.op.ActiveXObject).append(this.yp("-moz-appearance")||this.yp("mozAppearance")).append(this.op.wp).append(this.op.callPhantom).append(Object.prototype.hasOwnProperty.call(n,"content")).append(this.op.performance&&Object.prototype.hasOwnProperty.call(this.op.performance,"getEntriesByType")).append(8&t).append(this.gp("image-rendering")).append(this.gp("object-fit")).append(Object.prototype.hasOwnProperty.call(e,"open")).append(this.op.screen&&Object.prototype.hasOwnProperty.call(this.op.screen,"orientation")).append(this.op.performance).append(this.gp("shape-image-threshold")).append(this.fp[0]).append(Object.prototype.hasOwnProperty.call(r,"srcset")).append(this.tp).getResult()},t.prototype._p=function(){var t=(new Date).getTime(),i=ri.Z.checkCanvas(),n=document;return(new ei).append(this.ip).append(32&t).append(this.fp[1]).append(this.fp[2]).append(ri.Z.checkUseStrict()).append(ri.Z.checkUndefinedFunction()).append(ri.Z.checkDetuneProperty()).append(64&t).append(i||(0,ft.QC)(this.ap.vibrate)?1:0).append(i).append(this.fp[3]).append(ri.Z.checkSetAttribute()).append(this.Ep("image-rendering","pixelated")).append((0,ft.QC)(n.elementsFromPoint)).append(this.Ep("object-fit","inherit")).append(this.Ep("shape-image-threshold",.9)).append(this.Ep("word-break","keep-all")).append(ri.Z.checkForOf()).append(this.hp&&(0,ft.QC)(this.up.supports)).append(this.op.Intl&&(0,ft.QC)(this.op.Intl.Collator)).append((0,ft.QC)(n.createElement("dialog").show)).append(256&t).append(this.fp[4]).append(this.fp[5]).append(n.documentElement&&(0,ft.QC)(n.documentElement.webkitRequestFullScreen)).append((0,ft.QC)(this.ap.getBattery)).append(this.ap.permissions&&(0,ft.QC)(this.ap.permissions.query)).append(this.op.AudioContext&&(0,ft.QC)((new this.op.AudioContext).createBuffer)).append(this.fp[6]).append(this.op.webkitRequestAnimationFrame&&(0,ft.QC)(this.op.webkitRequestAnimationFrame)).append(this.op.BroadcastChannel&&(0,ft.QC)(this.op.BroadcastChannel.call)).getResult()},t.prototype.Op=function(){var t=(new Date).getTime(),i=document;return(new ei).append((0,ft.QC)(this.op.FontFace)).append((0,ft.QC)(this.op.Gamepad)).append(1024&t).append((0,ft.QC)(this.op.MutationEvent)).append((0,ft.QC)(this.op.MutationObserver)).append(this.op.crypto&&(0,ft.QC)(this.op.crypto.getRandomValues)).append((0,ft.QC)(i.body.createShadowRoot)).append((0,ft.QC)(i.body.webkitCreateShadowRoot)).append((0,ft.QC)(this.op.fetch)).append((0,ft.QC)(this.op.createImageBitmap)).append(this.ap.serviceWorker&&(0,ft.QC)(this.ap.serviceWorker.register)).append((0,ft.QC)(this.ap.webkitGetGamepads)).append(this.op.speechSynthesis&&(0,ft.QC)(this.op.speechSynthesis.speak)).append((0,ft.QC)(this.op.webkitRTCPeerConnection)).append(this.Ep("--fake-var",0)).append(4096&t).append(this.Ep("cursor","grab")).append(this.Ep("cursor","zoom-in")).append(this.Ep("image-orientation","270deg")).append((0,ft.QC)(this.op.Proxy)).append(this.Ep("position","sticky")).append(void 0===i.createElement("style").scoped).append(this.cp&&this.cp.getEntriesByType&&this.cp.getEntriesByType("resource")instanceof Array).append(void 0===this.op.InstallTrigger).append(ri.Z.checkCollatorOptions()).append("boolean"==typeof this.ap.onLine).append(16384&t).append(void 0===this.ap.webkitGamepads).append(this.cp&&this.cp.now&&"number"==typeof this.cp.now()).append(ri.Z.checkUintArray()).append(ri.Z.checkActiveXObject()).append(ri.Z.checkElementConstructor()).getResult()},t.prototype.Sp=function(){return this.fp[7]},t.prototype.Ap=function(){return(new Date).getTimezoneOffset()},t.prototype.Tp=function(){var t=(0,si.Me)(),i=this.op.innerWidth||t.documentElement.clientWidth||t.body.clientWidth,n=this.op.innerHeight||t.documentElement.clientHeight||t.body.clientHeight;return"".concat(i,"x").concat(n)},t.prototype.Mp=function(){var t=(0,si.Me)(),i=this.op.outerWidth||document&&t.body&&t.body.offsetWidth,n=this.op.outerHeight||document&&t.body&&t.body.offsetHeight;return"".concat(i,"x").concat(n)},t.prototype.jp=function(){var t=this.op.screen.availWidth,i=this.op.screen.availHeight;return"".concat(t,"x").concat(i)},t.prototype.Np=function(){var t=this.op.screen.width,i=this.op.screen.height;return"".concat(t,"x").concat(i)},t.prototype.Ip=function(){return ri.Z.btoa(this.ap.userAgent)},t.prototype.kp=function(){return ri.Z.btoa(this.ap.platform)},t.prototype.Rp=function(){return ri.Z.btoa(this.ap.vendor)},t.prototype.gp=function(t){return this.np&&Object.prototype.hasOwnProperty.call(this.np,t)},t.prototype.yp=function(t){return this.sp&&Object.prototype.hasOwnProperty.call(this.sp,t)},t.prototype.Ep=function(t,i){return this.hp&&this.up.supports(t,i)},t.prototype.dp=function(){this.Jd={a:this.pp,b:this.bp,c:this.mp.bind(this),d:this._p.bind(this),e:this.Op.bind(this),i:this.Sp.bind(this),j:this.Ap,k:this.Tp.bind(this),l:this.Mp.bind(this),m:this.jp.bind(this),n:this.Np.bind(this),o:this.Ip.bind(this),p:this.kp.bind(this),q:this.Rp.bind(this)}},t.prototype.lp=function(){var t=(0,oi.az)("div"),i={};if(!t.style)return i;t.style.wordSpacing="10%",i[0]="10%"===t.style.wordSpacing?1:0,t.style.width="1px",t.style.width="-webkit-min-content",t.style.width="min-content",i[1]="1px"===t.style.width?0:1,t.style.width="1px",t.style.width="calc(1px - 1px)",t.style.width="-webkit-calc(1px - 1px)",i[2]="1px"===t.style.width?0:1,i[3]=(0,ft.QC)(t.matches),i[4]=ri.Z.checkAnimateReverse(t),i[5]=t.animate&&(0,ft.QC)(t.animate)?1:0,t.style.fontStretch="ultra-condensed",i[6]="ultra-condensed"===t.style.fontStretch?1:0;var n=null,e=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];if((0,ft.w1)())try{t.addBehavior("#default#clientCaps");for(var r=0;r<e.length;r++)if(n=t.getComponentVersion(e[r],"componentid").replace(/,/g,".")){i[7]=n.split(".")[0];break}}catch(t){}return i[7]=i[7]||0,i},t}();!function(t){t.VIDEO_VIEW="viewabilityDefVideo",t.VIDEO_VIEW_3P="viewabilityDefVideo3P",t.GEMINI_IMP="viewabilityDefStatic",t.STATIC_VIEW="viewabilityDefStatic",t.STATIC_VIEW_3P="viewabilityDefStatic3P"}(Jt||(Jt={}));var ai,ci=new Zt(new Map([[$t.V_PLAYER_HEIGHT,function(){return window.innerHeight}],[$t.V_PLAYER_WIDTH,function(){return window.innerWidth}],[$t.V_EXPANDED,function(){return ni.isFullscreen}],[$t.V_AUD_INFO,function(){return ni.isMuted?2:1}],[$t.V_VIEW_INFO,function(){return encodeURIComponent(ni.viewablePercent<50?2:1)}],[$t.V_AUTOPLAYED,!0],[$t.V_SKIP_AVAIL,!1],[$t.V_MOAT_IVT,function(){return encodeURIComponent((ti||(ti=new ui),encodeURIComponent(ti.getIvtSignals())))}]])),hi={resolve:ci.resolve.bind(ci),set:ci.set.bind(ci),getViewableTypePlaceholderRule:function(t,i){return function(t,i){var n=new Map;switch(i){case Jt.VIDEO_VIEW_3P:n.set($t.V_VIEW_TYPE,t);break;case Jt.STATIC_VIEW_3P:n.set($t.S_VIEW_TYPE,t)}return n}(t,i)}},fi=function(t,i){hi.set($t.V_PLAYER_WIDTH,t),hi.set($t.V_PLAYER_HEIGHT,i),Kt.set(Qt.CONTAINER_WIDTH,t),Kt.set(Qt.CONTAINER_HEIGHT,i)},li=function(t){void 0===t&&(t=!0),hi.set($t.V_AUTOPLAYED,t)};!function(t){t.AD_BLOCKER_DETECTED="abd",t.AD_CALL_TIMEOUT="act",t.DEMO_MODE="demo",t.MAX_HOPS="mh",t.PLAYBACK_TIMEOUT="pbt",t.PLAYER_GUID="pg",t.RUNNER_INDEX="idx"}(ai||(ai={}));var vi,di=function(){function t(){var t=this;this.Lp=new Promise((function(i){t.Cp=i}))}return t.prototype.getPromise=function(){return this.Lp},t.prototype.resolve=function(t){this.Cp&&this.Cp(t)},t}(),pi=0,bi=function(t,i,n,e,r){this.payload=t,this.type=i,this.originName=n,this.targetName=e,this.id=r||"martini-msg-".concat(this.originName,"-").concat(this.targetName,"-").concat(++pi),this.createdAt=Date.now(),this.receivedAt=0},mi=function(){function t(){}return t.create=function(t,i,n,e,r){return new bi(t,i,n,e,r)},t.stringify=function(t){return JSON.stringify(t)},t.resolve=function(t,i){if("string"!=typeof t)return null;try{var n=JSON.parse(t);if(i===n.targetName)return n}catch(t){}return null},t}(),yi=function(){function t(t){var i=this;this.Dp=t,this.Pp=!1,this.promise=new Promise((function(t){i.Pp=!0,i.Cp=t}))}return Object.defineProperty(t.prototype,"id",{get:function(){return this.Dp.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPending",{get:function(){return this.Pp},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){return this.Pp=!1,this.Cp&&this.Cp(t)},t}(),gi=function(){function t(t){this.xp=t,this.Up=[]}return t.prototype.create=function(t,i){var n=new yi(t);return this.Up.push(n),this.xp.setListener(i,this.resolve.bind(this)),n.promise},t.prototype.pull=function(t){return function(t,i){for(var n in t)if(i(t[n]))return t.splice(Number(n),1)[0];return null}(this.Up,(function(i){return i.id===t}))},t.prototype.resolve=function(t){var i=this.pull(t.id);i&&i.resolve(t)},t}(),wi=function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},_i=function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},Ei=function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||(e||(e=Array.prototype.slice.call(i,0,r)),e[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))},Oi=function(){function t(t){this.Fp=t,this.Bp={},this.zp=new gi(this),this.Vp=!1,this.Gp=new di,this.Hp=this.Hp.bind(this)}return t.prototype.init=function(t,i,n,e){var r=this;this.Yp=n,this.qp=i,this.Wp=e,this.Qp=t;var s=(0,si.Ww)(t),o="";if(s)try{o=s.location.origin}catch(t){}if(window.location.origin===o&&(this.Vp=!0,window["martini-message-handler-".concat(this.Yp)]=function(t){return r.Hp(t)}),this.Zp(),this.Gp.resolve(),this.Fp&&t.location&&s&&window.performance){var u=[];this.$p=setInterval((function(){var t=window.performance.getEntriesByType("navigation"),i=window.performance.getEntriesByType("resource"),n=Ei(Ei([],t,!0),i,!0).reduce((function(t,i){return u.some((function(t){return t.name===i.name&&t.startTime===i.startTime}))||(u.push({name:i.name,startTime:i.startTime}),t.push(i.name)),t}),[]);if(n.length>0){var e=mi.create(n,"martini-network-requests",r.Yp,r.Wp),o=mi.stringify(e);s.postMessage(o,r.qp)}}),1e3)}},t.prototype.dispatch=function(t,i,n){return wi(this,void 0,void 0,(function(){var e,r,s,o;return _i(this,(function(u){switch(u.label){case 0:return[4,this.Gp.getPromise()];case 1:return u.sent(),e=mi.create(i,t,this.Yp,this.Wp,n),r=mi.stringify(e),(s=(0,si.Ww)(this.Qp))&&(this.Vp?(o=s["martini-message-handler-".concat(this.Wp)])&&o({data:r}):s.postMessage(r,this.qp)),[2,e]}}))}))},t.prototype.setListener=function(t,i){var n;this.Bp[t]=null!==(n=this.Bp[t])&&void 0!==n?n:[],this.Bp[t]=i},t.prototype.dispatchAndPromisify=function(t,i){return wi(this,void 0,void 0,(function(){var n;return _i(this,(function(e){switch(e.label){case 0:return[4,this.dispatch(t,i)];case 1:return n=e.sent(),[4,this.zp.create(n,t)];case 2:return[2,e.sent()]}}))}))},t.prototype.addAsyncReply=function(t,i){var n=this,e=function(e){return wi(n,void 0,void 0,(function(){var n;return _i(this,(function(r){switch(r.label){case 0:return[4,i(e)];case 1:return n=r.sent(),this.dispatch(t,n,e.id),[2,n]}}))}))};return this.setListener(t,e),e},t.prototype.destroy=function(){for(var t in this.Bp)delete this.Bp[t];delete this.qp,delete this.Qp,this.Vp?delete window["martini-message-handler-".concat(this.Yp)]:window.removeEventListener("message",this.Hp),this.Fp&&this.$p&&clearInterval(this.$p)},t.prototype.Zp=function(){window.addEventListener("message",this.Hp)},t.prototype.Hp=function(t){var i=mi.resolve(t.data,this.Yp);if(i){i.receivedAt=Date.now();var n=this.Bp[i.type];n&&n(i)}},t}(),Si=function(){function t(t,i,n,e,r,s){var o=this;this.Xp=(0,oi.az)("iframe"),this.Kp=0,this.Jp=0,this.Xp.onload=function(){return s(o)},this.Xp.src=t,this.Xp.setAttribute("allow","autoplay; fullscreen"),this.Xp.setAttribute("data-id",e),this.Xp.setAttribute("name",JSON.stringify(i)),r&&(this.Xp.style.width="100%",this.Xp.style.height="100%",this.Xp.style.border="none"),this.hide(),(0,oi.GR)(this.Xp,n)}return Object.defineProperty(t.prototype,"domElement",{get:function(){return this.Xp},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.Xp.style.display="inline-block"},t.prototype.hide=function(){this.Xp.style.display="none"},t.prototype.destroy=function(){(0,oi.bX)(this.Xp)},t.prototype.positionView=function(t,i,n){this.Xp.style.width="100%",this.Xp.style.height="100%",this.Kp=this.Xp.offsetWidth,this.Jp=this.Xp.offsetHeight,fi(this.Kp,this.Jp);var e=this.calculateOverlayBounds(t,i,n);this.Xp.style.width="".concat(e.width,"px"),this.Xp.style.height="".concat(e.height,"px"),this.Xp.style.top=e.y,this.Xp.style.left=e.x,this.Xp.style.position="absolute"},t.prototype.calculateOverlayBounds=function(t,i,n){void 0===n&&(n="FULL");var e={height:i,width:t,x:"calc(50% - ".concat(t/2,"px)"),y:"calc(50% - ".concat(i/2,"px)")};switch(n){case"TOP":e.y="0px";break;case"RIGHT":e.x="calc(100% - ".concat(t,"px)");break;case"BOTTOM":e.y="calc(100% - ".concat(i,"px)");break;case"LEFT":e.x="0px"}return e},t}(),Ai=function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},Ti=function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},Mi=function(){function t(t,i){this.Yp=t,this.tb=!1,this.eb="",this.rb=0,this.sb={},this.xp=new Oi(i)}return t.prototype.createIframe=function(t,i,n){return void 0===i&&(i=this.ub),void 0===n&&(n=this.tb),Ai(this,void 0,void 0,(function(){var e,r,s,o=this;return Ti(this,(function(u){return this.ub=i,this.tb=n,this.eb="".concat(this.Yp,"-").concat(++this.rb,"-").concat(~~(1e4*Math.random())),t[ai.RUNNER_INDEX]=this.rb,e="".concat(k.Q.SERVER_URL,"/").concat(this.Yp,".html"),r="".concat(this.Yp,"-").concat(t[ai.PLAYER_GUID],"-").concat(this.rb),s="plugin-".concat(r),[2,this.hb(this.eb,e,t,i,n).then((function(t){return o.xp.init(t.domElement,k.Q.SERVER_URL,s,r)})).then((function(){return o.eb}))]}))}))},t.prototype.dispatch=function(t,i){return Ai(this,void 0,void 0,(function(){return Ti(this,(function(n){return[2,this.xp.dispatch(t,i)]}))}))},t.prototype.dispatchAndPromisify=function(t,i){return Ai(this,void 0,void 0,(function(){return Ti(this,(function(n){switch(n.label){case 0:return[4,this.xp.dispatchAndPromisify(t,i)];case 1:return[2,n.sent().payload]}}))}))},t.prototype.setListener=function(t,i){this.xp.setListener(t,(function(t){if(t.payload.item1){var n=[];n.push(t.payload.item1),t.payload.item2&&n.push(t.payload.item2),t.payload.item3&&n.push(t.payload.item3),i.apply(void 0,n)}else i(t.payload)}))},t.prototype.setSize=function(t,i,n){this.fb(this.eb).positionView(t,i,n)},t.prototype.destroy=function(t){var i=this,n=this.eb;this.lb(n),this.xp.destroy(),t?this.vb(n):setTimeout((function(){return i.vb(n)}),5e3)},t.prototype.hb=function(t,i,n,e,r){return Ai(this,void 0,void 0,(function(){var s=this;return Ti(this,(function(o){return[2,new Promise((function(o){var u=new Si(i,n,e,t,r,o);s.sb[t]=u}))]}))}))},t.prototype.show=function(){this.fb(this.eb).show()},t.prototype.lb=function(t){this.fb(t).hide()},t.prototype.vb=function(t){this.fb(t).destroy(),delete this.sb[t]},t.prototype.fb=function(t){var i=this.sb[t];if(!i)throw new Error("No matching runner found for id: ".concat(t));return i},t}(),ji=function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},Ni=function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},Ii=function(){function t(t,i,n){this.pe=t,this.pb=i,this.bb=new di,this.Rc={},this.mb=n,this.yb=new Wt(this.pb),this.gb=new Mi("executor",this.pe.demoMode)}return t.prototype.prepare=function(t,i){var n,e=this;void 0===i&&(i=!1);var r=((n={})[ai.AD_BLOCKER_DETECTED]=+this.pe.adBlockerDetected,n[ai.DEMO_MODE]=+this.pe.demoMode,n[ai.PLAYER_GUID]=t.playerGuid,n[ai.PLAYBACK_TIMEOUT]=t.playbackTimeout,n);return this.Rc=t,this.ub=i?t.nonlinearContainer:t.pluginContainer,this.ub.classList.add(this.containerClass),this.dd=t.adCallTimeout,this.bd=t.playbackTimeout,this.pe.isFullscreen=this.isFullscreen,this.wb(),this.gb.createIframe(r,this.ub,!0).then((function(){e.bb.resolve()})),this.gb.setListener("AD_STATE",this.handleAdStateReceived.bind(this)),this.gb.setListener("PAUSE_SUCCESS",this.handlePaused.bind(this)),this.gb.setListener("PLAY_COMPLETE",this.handlePlayCompleted.bind(this)),this.gb.setListener("CLOSED_CAPTIONS_LOADED",this.handleCcLoaded.bind(this)),this.gb.setListener("MEDIA_LOADED",this.handleMediaLoaded.bind(this)),this.gb.setListener("CLICK",this.handleAdClick.bind(this)),this.gb.setListener("resume",this.handleResume.bind(this)),this.gb.setListener("QUARTILE",this.handleQuartileProgress.bind(this)),this.gb.setListener("VIEW_SUCCESS",this.handleViewSuccess.bind(this)),this.gb.setListener("STARTED",this.handleStarted.bind(this)),this.gb.setListener("AD_INTERVENTION",this.handleAdIntervention.bind(this)),this.gb.setListener("UNHANDLED_EXCEPTION",this._b.bind(this)),this.gb.setListener("SET_SIZE",(function(t,i,n){e.gb.setSize(t,i,n),e.handleSetSize()})),this.bb.getPromise()},t.prototype.play=function(t,i,n,e){var r,s,o,u,a,c,h,f;return void 0===n&&(n=!1),ji(this,void 0,void 0,(function(){var l,v,d,p,b,m;return Ni(this,(function(y){switch(y.label){case 0:return this.pe.activeAdBreak=t,(l=this.pe.getNextResolvedAd(n))?(v="nonlinear"===t.type,d=null!==(s=null===(r=this.ub)||void 0===r?void 0:r.clientWidth)&&void 0!==s?s:0,p=null!==(u=null===(o=this.ub)||void 0===o?void 0:o.clientHeight)&&void 0!==u?u:0,b=Ht(l,d,p),v?[4,this.Eb(!0)]:[3,2]):(0===t.resolvedAds.length&&t.pods[0]&&this.yb.sendFailedAdOpportunityReport(t.pods[0].type,t.pods[0].slotType,t.pods[0].noAdsId),this.handleBreakEnded(e),[2]);case 1:return y.sent(),this.Rc.nonlinearContainer.style.display="inline-block",this.Rc.pluginContainer.style.display="none",b.isImage&&(this.Rc.nonlinearContainer.style.visibility="hidden"),[3,3];case 2:this.Rc.nonlinearContainer.style.display="none",this.Rc.pluginContainer.style.display="inline-block",y.label=3;case 3:return l.executed=!0,this.pe.activeAd=l,li(l.autoplay),this.Ob(l,d,p),"no-ad"===b.actualSource.responseType?(this.handleBreakEnded(),[2]):(m={adAdapter:b,volume:null!==(c=null!==(a=null==i?void 0:i.volume)&&void 0!==a?a:this.pe.volume)&&void 0!==c?c:1,mute:null!==(f=null!==(h=null==i?void 0:i.mute)&&void 0!==h?h:this.pe.isMuted)&&void 0!==f&&f,fullscreen:this.pe.isFullscreen},[4,this.bb.getPromise()]);case 4:return y.sent(),"GEMINI"===m.adAdapter.type&&this.pb.sendAdSubtitlesNotFound(),this.gb.show(),[4,this.gb.dispatch("PLAY",m)];case 5:return y.sent(),[2]}}))}))},t.prototype.resume=function(){return ji(this,void 0,void 0,(function(){return Ni(this,(function(t){switch(t.label){case 0:return[4,this.bb.getPromise()];case 1:return t.sent(),this.gb.dispatch("resume"),[2]}}))}))},t.prototype.Ob=function(t,i,n){this.yb.prepare(t,i,n,this.dd,this.bd),this.yb.sendAdOpportunityReport(),this.yb.sendPlayStartReports()},t.prototype.pause=function(){return ji(this,void 0,void 0,(function(){return Ni(this,(function(t){switch(t.label){case 0:return[4,this.bb.getPromise()];case 1:return t.sent(),this.gb.dispatch("PAUSE_REQUEST"),[2]}}))}))},t.prototype.stop=function(t){return ji(this,void 0,void 0,(function(){var i;return Ni(this,(function(n){switch(n.label){case 0:return this.pe.stopAdBreaks(),this.pe.activeAdBreak?[4,this.Sb(t)]:[2];case 1:return i=n.sent(),this.Ab((null==i?void 0:i.error)||t),[2,i]}}))}))},t.prototype.Sb=function(t){return ji(this,void 0,void 0,(function(){return Ni(this,(function(i){switch(i.label){case 0:return[4,S(this.gb.dispatchAndPromisify("stop",t),1e3).catch((function(){}))];case 1:return[2,i.sent()]}}))}))},t.prototype.Ab=function(t){t&&this.yb.sendErrorReport(t),this.handleBreakEnded(t),this.Eb()},t.prototype.destroy=function(t){return void 0===t&&(t=!0),ji(this,void 0,void 0,(function(){return Ni(this,(function(i){switch(i.label){case 0:return[4,this.bb.getPromise()];case 1:return i.sent(),this.pe.stopAdBreaks(),this.gb.destroy(t),this.Tb&&(document.removeEventListener("fullscreenchange",this.Tb),delete this.Tb),[2]}}))}))},t.prototype.mute=function(t){return ji(this,void 0,void 0,(function(){return Ni(this,(function(i){switch(i.label){case 0:return[4,this.bb.getPromise()];case 1:return i.sent(),this.gb.dispatch("mute",t),[2]}}))}))},t.prototype.setVolume=function(t){return ji(this,void 0,void 0,(function(){return Ni(this,(function(i){switch(i.label){case 0:return[4,this.bb.getPromise()];case 1:return i.sent(),this.gb.dispatch("SET_VOLUME",t),[2]}}))}))},t.prototype.handleAdStateReceived=function(t){this.pe.currentTime!==t.currentTime&&(this.pe.currentTime=t.currentTime,this.pb.sendTimeUpdateEvent(t.currentTime)),this.pe.duration!==t.duration&&(this.pe.duration=t.duration),this.pe.isMuted!==t.isMuted&&(this.pe.isMuted=t.isMuted,this.pb.sendMuteChangedEvent(t.isMuted)),this.pe.volume!==t.volume&&(this.pe.volume=t.volume,this.pb.sendVolumeChangedEvent(t.volume))},t.prototype.handlePlayCompleted=function(t,i,n){var e;return ji(this,void 0,void 0,(function(){var r,s,o;return Ni(this,(function(u){switch(u.label){case 0:switch(r=!1,s=!1,n.executionStatus){case"SKIP":this.pe.activeAdBreak&&(this.pe.activeAdBreak.isPlayed=!0),this.yb.sendAdSkipReport(n);break;case"FAILED_PLAY":r=!0,o=!this.pe.hasFallbackAds&&(null===(e=this.pe.activeAd)||void 0===e?void 0:e.hasUnresolvedSources)?this.pe.activeAd.successfulSource:void 0,this.yb.isStarted||!this.pe.hasFallbackAds&&!o?this.yb.sendErrorReport(n.error):this.yb.sendAdDeliveryFailureReport(n);break;case"PLAYED":this.pe.activeAdBreak&&(this.pe.activeAdBreak.isPlayed=!0),this.yb.sendPlayCompleteEvent(n);break;case"NOAD":case"TIMEOUT":s=!0,n.error&&this.yb.sendErrorReport(n.error)}return delete this.pe.activeAd,s&&this.handleBreakEnded(n.error),[4,this.Eb()];case 1:return u.sent(),s||(o?this.Mb(t,i,o):this.play(this.pe.activeAdBreak,void 0,r,n.error)),[2]}}))}))},t.prototype.Mb=function(t,i,n){var e={podIndex:n.podSequence-1,startingSourceIndex:n.sourceSequence};this.mb(t,i,e)},t.prototype.Eb=function(t){var i;return void 0===t&&(t=!1),ji(this,void 0,void 0,(function(){return Ni(this,(function(n){switch(n.label){case 0:return[4,this.destroy(!1)];case 1:return n.sent(),null===(i=this.ub)||void 0===i||i.classList.remove(this.containerClass),this.bb=new di,this.prepare(this.Rc,t),[2]}}))}))},t.prototype.handlePaused=function(t){this.yb.sendPauseReport(t)},t.prototype.setCcLanguage=function(t){return ji(this,void 0,void 0,(function(){return Ni(this,(function(i){switch(i.label){case 0:return[4,this.bb.getPromise()];case 1:return i.sent(),this.gb.dispatch("SET_CLOSED_CAPTIONS_LANGUAGE",t),[2]}}))}))},t.prototype.setCcStyle=function(t){return ji(this,void 0,void 0,(function(){return Ni(this,(function(i){switch(i.label){case 0:return[4,this.bb.getPromise()];case 1:return i.sent(),this.gb.dispatch("SET_CLOSED_CAPTIONS_STYLE",t),[2]}}))}))},t.prototype.showCaptions=function(t){return ji(this,void 0,void 0,(function(){return Ni(this,(function(i){switch(i.label){case 0:return[4,this.bb.getPromise()];case 1:return i.sent(),this.gb.dispatch("SHOW_CAPTIONS",t),[2]}}))}))},t.prototype.setFullscreen=function(t){return ji(this,void 0,void 0,(function(){return Ni(this,(function(i){switch(i.label){case 0:return[4,this.bb.getPromise()];case 1:return i.sent(),this.gb.dispatch("SET_FULLSCREEN",t),[2]}}))}))},t.prototype.handleCcLoaded=function(t){this.pb.onCcLoadedEvent(t)},t.prototype.handleBreakEnded=function(t){var i=this.pe.activeAdBreak,n=i.refId,e=i.id,r=i.isPlayed;this.pe.getResolvedAds(!0).forEach((function(t){t.executed=!1,t.adReplay++})),this.pe.clear(),this.yb.sendBreakEndedReport(n,e,!!t),this.pb.sendBreakEndedEvent(n,e,r),this.yb.reset()},t.prototype.handleMediaLoaded=function(t){this.yb.sendMediaLoadedReport(t)},t.prototype.handleAdClick=function(t){this.yb.sendAdClickReport(t)},t.prototype.handleResume=function(t,i){this.pb.sendPlayingEvent(t,i)},t.prototype.handleQuartileProgress=function(t,i){this.yb.sendQuartileReport(t,i)},t.prototype.handleViewSuccess=function(t){this.yb.sendAdViewReport(t)},t.prototype.handleStarted=function(t,i,n){this.yb.sendStartedReports(n),this.pb.sendPlayingEvent(t,i)},t.prototype.handleAdIntervention=function(t){this.yb.sendAdInterventionReport(t)},t.prototype.handleSetSize=function(){this.Rc.nonlinearContainer.style.visibility=""},Object.defineProperty(t.prototype,"containerClass",{get:function(){return"ad-executor-".concat(this.Rc.playerGuid)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFullscreen",{get:function(){return!(!document.fullscreenElement||!document.fullscreenElement.getElementsByClassName(this.containerClass).length)},enumerable:!1,configurable:!0}),t.prototype._b=function(t){this.yb.sendUnhandledExceptionReport(t)},t.prototype.wb=function(){var t=this;this.Tb=function(){return ji(t,void 0,void 0,(function(){return Ni(this,(function(t){switch(t.label){case 0:return this.pe.isFullscreen=this.isFullscreen,[4,this.setFullscreen(this.isFullscreen)];case 1:return t.sent(),[2]}}))}))},document.addEventListener("fullscreenchange",this.Tb)},t}(),ki=function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},Ri=function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},Li=function(){function t(t,i){this.pe=t,this.pb=i,this.jb=0,this.Nb=0,this.bb=new di,this.yb=new Wt(this.pb),this.gb=new Mi("resolver",this.pe.demoMode)}return t.prototype.prepare=function(t){var i,n=this,e=((i={})[ai.AD_BLOCKER_DETECTED]=+this.pe.adBlockerDetected,i[ai.AD_CALL_TIMEOUT]=t.adCallTimeout,i[ai.DEMO_MODE]=+this.pe.demoMode,i[ai.MAX_HOPS]=t.maxHops,i[ai.PLAYER_GUID]=t.playerGuid,i);return this.jb=t.pluginContainer.clientWidth,this.Nb=t.pluginContainer.clientHeight,this.dd=t.adCallTimeout,this.bd=t.playbackTimeout,this.gb.createIframe(e,t.pluginContainer,!1).then((function(){return n.bb.resolve()})),this.gb.setListener("UNHANDLED_EXCEPTION",this._b.bind(this)),this.gb.setListener("RESOLVED_AD",this.Ib.bind(this)),this.kb},t.prototype.resolveAdBreak=function(t,i){return ki(this,void 0,void 0,(function(){var n;return Ri(this,(function(e){switch(e.label){case 0:return i&&(delete t.resolveAdBreakPromise,delete t.resolveStartTime),t.resolveStartTime||(t.resolveStartTime=Date.now()),[4,this.kb];case 1:return e.sent(),t.resolveAdBreakPromise||(n={adBreak:t,deliveryRetry:i},t.resolveAdBreakPromise=this.gb.dispatchAndPromisify("RESOLVE_BREAK",n)),[2,t.resolveAdBreakPromise]}}))}))},t.prototype.Ib=function(t){var i=this.pe.getAdBreak(t.refId,t.breakId);i&&this.Rb(t,i),this.yb.prepare(t,this.jb,this.Nb,this.dd,this.bd),t.numberRetry=this.pe.numberRetry,this.yb.sendAdRequestReport()},t.prototype._b=function(t){this.yb.sendUnhandledExceptionReport(t)},Object.defineProperty(t.prototype,"kb",{get:function(){return this.bb.getPromise()},enumerable:!1,configurable:!0}),t.prototype.Rb=function(t,i){t.isDeliveryRetry?t.resolveLatency=Date.now()-i.resolveStartTime:(0===i.resolvedAds.length&&(i.resolveLatency=Date.now()-i.resolveStartTime),t.resolveLatency=i.resolveLatency),i.resolvedAds.push(t),i.resolvedAds.sort((function(t,i){var n,e,r,s,o,u,a,c;return"".concat(null!==(e=null===(n=t.successfulSource)||void 0===n?void 0:n.podSequence)&&void 0!==e?e:1).concat(null!==(s=null===(r=t.successfulSource)||void 0===r?void 0:r.sourceSequence)&&void 0!==s?s:1)<"".concat(null!==(u=null===(o=i.successfulSource)||void 0===o?void 0:o.podSequence)&&void 0!==u?u:1).concat(null!==(c=null===(a=i.successfulSource)||void 0===a?void 0:a.sourceSequence)&&void 0!==c?c:1)?-1:1}))},t}(),Ci=function(){function t(){this.Lb=[],this.isFullscreen=!1,this.isMuted=null,this.duration=null,this.volume=null,this.currentTime=null,this.numberRetry=0,this.adBlockerDetected=!1,this.demoMode=!1}return t.prototype.addAdBreak=function(t){this.Lb.push(t)},t.prototype.getAdBreak=function(t,i){return this.Lb.find((function(n){return n.refId===t&&n.id===i}))},t.prototype.stopAdBreaks=function(){this.Lb.forEach((function(t){return t.stopped=!0}))},t.prototype.getAdBreakByRefId=function(t){return this.Lb.find((function(i){return i.refId===t}))},t.prototype.getResolvedAds=function(t){var i,n;return void 0===t&&(t=!1),null!==(n=null===(i=this.activeAdBreak)||void 0===i?void 0:i.resolvedAds.filter((function(i){return t?i.executed:!i.executed})))&&void 0!==n?n:[]},t.prototype.getLastSource=function(t){return t.successfulSource||t.unsuccessfulSources.slice(-1)[0]},t.prototype.getLastExecutedSource=function(){var t=this.getResolvedAds(!0).slice(-1)[0];return this.getLastSource(t)},t.prototype.getNextResolvedAd=function(t){void 0===t&&(t=!1);var i=this.getResolvedAds(!1);if(0!==i.length){if(t){var n=i.find((function(t){return t.fallback}));if(n)return n}return i.find((function(t){return!t.fallback}))}},Object.defineProperty(t.prototype,"hasFallbackAds",{get:function(){return this.getResolvedAds(!1).some((function(t){return t.fallback}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeAdBreak",{get:function(){return this.Cb},set:function(t){this.Cb!==t&&(this.numberRetry=0,this.Cb=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeAd",{get:function(){return this.Db},set:function(t){this.Db!==t&&(t&&++this.numberRetry,this.Db=t)},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.activeAd=void 0,this.activeAdBreak=void 0,this.currentTime=null,this.duration=null,this.isMuted=null,this.volume=null},t}(),Di=__nested_webpack_require_25663__(547),Pi=function(){function t(){this.N={}}return t.prototype.addEventListener=function(t,i){this.N[t]||(this.N[t]=[]),this.N[t].push(i)},t.prototype.removeEventListener=function(t,i){this.N[t]&&this.N[t].length&&(this.N[t]=this.N[t].filter((function(t){return t!==i})))},t.prototype.sendParseResultEvent=function(t,i){this.dispatchEvent(Di.P.AD_PARSE_RESULT,{refId:t,breaks:i})},t.prototype.sendPauseEvent=function(t){this.dispatchEvent(Di.P.PAUSED),this.sendBatsReports([t])},t.prototype.sendPlayingEvent=function(t,i){this.dispatchEvent(Di.P.PLAYING,{refId:t,breakId:i,ad:{}})},t.prototype.sendBreakEndedEvent=function(t,i,n){this.dispatchEvent(Di.P.BREAK_ENDED,{refId:t,breakId:i,isPlayed:n})},t.prototype.sendPlayCompleteEvent=function(t,i,n){this.dispatchEvent(Di.P.PLAY_COMPLETE,{refId:t,breakId:i}),n&&this.sendBatsReports([n])},t.prototype.sendMuteChangedEvent=function(t){this.dispatchEvent(Di.P.MUTE_CHANGED,{muted:t})},t.prototype.sendVolumeChangedEvent=function(t){this.dispatchEvent(Di.P.VOLUME_CHANGED,{volume:t})},t.prototype.onCcLoadedEvent=function(t){this.dispatchEvent(Di.P.CLOSED_CAPTIONS_LOADED,{langList:t})},t.prototype.sendAdSubtitlesNotFound=function(){this.dispatchEvent(Di.P.AD_SUBTITLES_NOT_FOUND)},t.prototype.sendBatsReports=function(t){var i=this;void 0===t&&(t=[]),t.filter((function(t){return!!t})).forEach((function(t){k.Q.BUILD_ENV,i.dispatchEvent(Di.P.AD_METRICS,t)}))},t.prototype.dispatchEvent=function(t,i){void 0===i&&(i={});var n=this.N[t];null==n||n.forEach((function(t){return t(i)}))},t.prototype.sendTimeUpdateEvent=function(t){this.dispatchEvent(Di.P.TIME_UPDATE,t)},t}(),xi=function(){return xi=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},xi.apply(this,arguments)},Ui=function(t){var i,n,e,r,s;this.pluginContainer=t.pluginContainer,this.nonlinearContainer=t.nonlinearContainer,this.playerGuid=t.playerGuid,this.playerState=t.playerState,this.adCallTimeout=t.adCallTimeout?1e3*t.adCallTimeout:3e3,this.playbackTimeout=t.playbackTimeout?1e3*t.playbackTimeout:12e3,this.maxHops=null!==(i=t.maxHops)&&void 0!==i?i:3,this.featureFlag={disableAdCallRetry:null!==(e=null===(n=t.featureFlag)||void 0===n?void 0:n.disableAdCallRetry)&&void 0!==e&&e},this.privacy=xi(xi({},t.privacy),{isGdprApplies:null!==(s=null===(r=t.privacy)||void 0===r?void 0:r.isGdprApplies)&&void 0!==s&&s})};!function(t){t.CONTENT_STARTED="media-item-playback-started",t.CONTENT_ENDED="media-item-playback-ended",t.CONTENT_PROGRESS="media-item-playback-progress",t.PLAYER_RENDERED="player-rendered"}(vi||(vi={}));var Fi=function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},Bi=function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},zi=function(){function t(t){void 0===t&&(t=!1),this.type="ad-plugin",this.mimetype="adplugin/martini",this.pe=new Ci,this.Pb=new N,this.Md=new Pi,this.xb=!1,this.pe.demoMode=t,this.Ub=new Li(this.pe,this.Md),this.Fb=new Ii(this.pe,this.Md,this.play.bind(this)),this.yb=new Wt(this.Md)}return t.prototype.addEventListener=function(t,i){this.Md.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.Md.removeEventListener(t,i)},t.prototype.prepare=function(t){return Fi(this,void 0,void 0,(function(){var i,n,e;return Bi(this,(function(r){switch(r.label){case 0:return this.xb?[2]:(this.xb=!0,this.Rc=new Ui(t),i=this.pe,[4,(0,ft.TS)()]);case 1:return i.adBlockerDetected=r.sent(),n=this.Ub.prepare(this.Rc),e=this.Fb.prepare(this.Rc,!1),[2,Promise.all([n,e])]}}))}))},t.prototype.parse=function(t,i,n){var e=this,r=this.Pb.parse(t,i,n);r.forEach((function(t){return e.pe.addAdBreak(t)}));var s=r.filter((function(t){var i;return null===(i=t.pods)||void 0===i?void 0:i.some((function(t){return"MIDROLL"===t.type||"OVERLAY"===t.type||"NOADS"!==t.slotType}))}));return this.Md.sendParseResultEvent(t,s),s},t.prototype.cleanup=function(){this.stop()},t.prototype.preload=function(t,i){var n=this.pe.getAdBreak(t,i.breakId);return n?this.Ub.resolveAdBreak(n):Promise.resolve()},t.prototype.play=function(t,i,n){return Fi(this,void 0,void 0,(function(){var e;return Bi(this,(function(r){switch(r.label){case 0:return t&&i?(e=this.pe.getAdBreak(t,i))?!this.pe.activeAdBreak||n?[3,3]:e===this.pe.activeAdBreak?[3,2]:[4,this.stop()]:[2]:[3,5];case 1:return r.sent(),[3,3];case 2:return this.Fb.resume(),[2];case 3:return e.stopped=!1,e.isPlayed=!1,[4,this.Ub.resolveAdBreak(e,n)];case 4:return r.sent(),e.stopped||this.Fb.play(e,this.Rc.playerState),[3,6];case 5:this.Fb.resume(),r.label=6;case 6:return[2]}}))}))},t.prototype.pause=function(){this.Fb.pause()},t.prototype.stop=function(t){return Fi(this,void 0,void 0,(function(){return Bi(this,(function(i){switch(i.label){case 0:return[4,this.Fb.stop(t)];case 1:return[2,i.sent()]}}))}))},t.prototype.destroy=function(){return Fi(this,void 0,void 0,(function(){return Bi(this,(function(t){switch(t.label){case 0:return[4,this.Fb.destroy()];case 1:return t.sent(),this.xb=!1,[2]}}))}))},t.prototype.mute=function(t){this.Rc&&(this.Rc.playerState.mute=t),this.Fb.mute(t)},t.prototype.onPlayerEvent=function(t){for(var i=this,n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];if(t===vi.CONTENT_STARTED||t===vi.CONTENT_ENDED){var r=this.pe.getAdBreakByRefId(n[0].refId);("pre"===(null==r?void 0:r.offset)&&t===vi.CONTENT_STARTED||"post"===(null==r?void 0:r.offset)&&t===vi.CONTENT_ENDED)&&r.pods.forEach((function(t){"NOADS"===t.slotType&&i.yb.sendFailedAdOpportunityReport(t.type,t.slotType,t.noAdsId)}))}},t.prototype.getCurrentTime=function(){return this.pe.currentTime},t.prototype.getDuration=function(){return this.pe.duration},t.prototype.getVolume=function(){return this.pe.volume},t.prototype.isMuted=function(){return this.pe.isMuted},t.prototype.isFullscreen=function(){return this.pe.isFullscreen},t.prototype.setVolume=function(t){this.Rc&&(this.Rc.playerState.volume=t),this.Fb.setVolume(t)},t.prototype.setCcLanguage=function(t){this.Fb.setCcLanguage(t)},t.prototype.setCcStyle=function(t){this.Fb.setCcStyle(t)},t.prototype.showCaptions=function(t){this.Fb.showCaptions(t)},t.prototype.setNonlinearAdContainer=function(t){this.Rc&&(this.Rc.nonlinearContainer=t)},t}()}(),__nested_webpack_exports__}()},module.exports=factory()},39451:function(t,i,n){"use strict";t.exports={userAgent:n(23028),capabilities:n(97492)}},97492:function(t,i,n){"use strict";var e=n(23028),r={wifi:!0,broadband:!0,dsl:!0,cable:!0};function s(){if("undefined"!=typeof navigator)return(navigator&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)||{}).type}function o(){if(!e.mobile)return!0;var t=e.android&&e.chrome>=50,i=e.ios&&!e.iosWebView&&e.safari>=10;return t||i}t.exports={getConnectionType:s,isAutoplaySupported:o,isAutoplayAllowed:function(t){return!e.mobile||!(!(t=(s()||t||"").replace(/^cs_/i,"").toLowerCase())||!r[t])&&o()}}},23028:function(t,i,n){"use strict";var e="undefined"!=typeof window?window:void 0!==n.g&&n.g.window?n.g.window:{},r=e.navigator?e.navigator:"undefined"!=typeof navigator?navigator:{},s=r.userAgent?r.userAgent.toLowerCase().replace(/<[A-Za-z]+.*?(\/>|>.*?<\/[A-Za-z]+>)|javascript:/g,""):"",o=r.userAgentData,u=function(t){if(!o)return NaN;var i,n=o.brands;try{t=t.toLowerCase(),i=n.find((function(i){if(i.brand.toLowerCase().indexOf(t)>=0)return!0}))}catch(t){return NaN}return i?parseFloat(i.version):NaN},a=function(t){if(!o)return!1;var i;try{i=o.platform.toLowerCase().indexOf(t.toLowerCase())}catch(t){return!1}return i>=0},c=function(t){if(null===t)return!1;var i=t[1];return parseFloat(i.replace("_",".").split(".",2).join("."))||1},h=function(t){for(var i=(e&&e.location&&e.location.search&&e.location.search.substring(1)||"").split("&"),n=0;n<i.length;n++){var r=i[n].split("=");if(decodeURIComponent(r[0])===t)return decodeURIComponent(r[1])}return null};if(i.ua=s,i.clientHints=u,i.clientHintsPlatform=a,i.chromium=u("chromium")||c(/chromium\/([^\s]*)/.exec(s)),i.edge=u("edge")||c(/edge\/([^\s]*)/.exec(s)),i.opera=u("opera")||/opr\/|opera\//.test(s),i.chrome=u("chrome")||!i.chromium&&!i.edge&&!i.opera&&(c(/chrome\/([^\s]*)/.exec(s))||c(/crios\/([^\s]*)/.exec(s))),i.ie=c(/msie ([^;]*)/.exec(s))||c(/trident.*; rv:([0-9.]+)/.exec(s)),i.firefox=!i.ie&&c(/firefox\/([^\s]*)/.exec(s)),i.android=a("android")||/android/.test(s),i.androidTablet=i.android&&!/mobile/.test(s),i.htc_one=/htc_one/.test(s),i.vizio=/vizio/.test(s)||"vizio"===h("man"),i.tivo=/tivo/.test(s),i.presto=i.opera&&/presto/i.test(s),i.fios=/verizon.*(stb|vms|ipc)/.test(s),i.philips=/philipstv/.test(s),i.toshiba=/tsb/.test(s),i.amazon=i.android&&/amazonwebappplatform/.test(s)&&/aft/.test(s),i.lg=/web0s/.test(s),i.tizen=/tizen/.test(s),i.orsay=/smarttv/.test(s)&&!i.tizen&&!i.lg&&!i.philips,i.samsung=i.orsay||i.tizen,i.sony=/sony|bravia/.test(s),i.playstation=/(playstation)/.test(s),i.ios=/(ipad|iphone|ipod)/.test(s),i.iphone=/(iphone|ipod)/.test(s)&&!/ipad/.test(s),i.ipad=i.ios&&!i.iphone,i.androidBrowser=!i.chrome&&/android/.test(s),i.chromecast=/crkey/.test(s),i.androidVersion=c(/android\s([0-9.]*)/.exec(s)),i.safari=!i.chrome&&!i.chromium&&!i.android&&/safari\/([^\s]*)/.test(s)&&c(/version\/([^\s]*)/.exec(s)),i.iosWebView=i.ios&&!navigator.standalone&&!i.safari,i.iosVersion=i.ios&&c(/\bos ((\d+_?){2,3})\s/.exec(s)),i.mobile=o&&o.mobile||i.ios||i.android&&!i.amazon,i.safariDesktop=!i.mobile&&i.safari,i.tv=i.vizio||i.tivo||i.amazon||i.samsung||i.sony||i.playstation||i.lg||i.fios||i.philips||i.toshiba,i.desktop=!i.mobile&&!i.tv,i.phantomJS=e.window&&e.window.wp,i.tv){var f=void 0!==f?f:void 0!==n.g&&n.g.tv?n.g.tv:{};if(i.class=i.ua,i.vizio)i.os="vizio",i.class=h("class")||h("soc"),f&&f.tts&&(i.class+="-tts");else if(i.tivo)i.os="tivo",/tcd849/.test(s)?i.class="TCD849":/tcd8d9/.test(s)?i.class="TCD8D9":/tcd8f9/.test(s)?i.class="TCD8F9":/tcd8/.test(s)?i.class="TCD8":/tcdd/.test(s)?i.class="TCDD":/tcd7/.test(s)?i.class="TCD7":/tcda9/.test(s)&&(i.class="TCDA9");else if(i.amazon)i.os="amazon",/aftb/.test(s)?i.class="AFTB":/afts/.test(s)?i.class="AFTS":/aftm/.test(s)?i.class="AFTM":/aftn/.test(s)?i.class="AFTN":/aftrs/.test(s)?i.class="AFTRS":/aftt/.test(s)&&(i.class="AFTT");else if(i.lg)i.os="lg",/qtwebengine/.test(s)?i.class="3":/safari\/537/.test(s)?i.class="1":/safari\/538/.test(s)&&(i.class="2");else if(i.samsung){i.os="samsung";var l="default";if(i.tizen){var v=void 0!==v?v:e.tizen;v&&v.systeminfo&&(i.version=v.systeminfo.getCapability("http://tizen.org/feature/platform.version"));var d=void 0!==d?d:e.webapis;if(d&&d.productinfo&&d.productinfo.getRealModel)try{var p=d.productinfo.getRealModel(),b=p.substr(4,isNaN(Number(p[5]))?2:1);l=b+p.substr(1===b.length?5:6,1)}catch(t){l="default"}}else l="orsay";i.class=l}else i.roku||i.chromecast||i.toshiba||i.philips||i.appletv||i.xbox||(i.sony?(i.os="sony",/bdp/.test(s)?i.class="BDP":/bravia|sony-kj/.test(s)?i.class="BRAVIA":i.class="default"):i.playstation?(i.os="playstation",/4pro/.test(s)?i.class="4PRO":/playstation 4/.test(s)?i.class="4":/vita/i.test(s)&&(i.class="VITA")):i.fios?(i.os="fios",/stb/.test(s)?i.class="STB":/vms/.test(s)?i.class="VMS":/ipc/.test(s)&&(i.class="IPC")):i.os=null)}else i.ios?i.os="ios":i.android?i.os="android":/windows|win32/.test(s)?(i.os="windows",i.winXP=/(windows nt 5\.[1-3])/.test(s),i.class=i.winXP?"XP":i.class,i.winVista=/(windows nt 6\.0)/.test(s),i.class=i.winVista?"VISTA":i.class,i.win7=/(windows nt 6\.1)/.test(s),i.class=i.win7?"7":i.class,i.win8=/(windows nt 6\.2)/.test(s),i.class=i.win8?"8":i.class,i.win8_1=/(windows nt 6\.3)/.test(s),i.class=-1*i.win?"8_1":i.class,i.win10=/(windows nt 10\.0)/.test(s),i.class=i.win10?"10":i.class,i.win64=/(wow64|win64)/.test(s),i.architecture=i.win64?"64":"32"):/macintosh|mac_powerpc/.test(s)?i.os="macintosh":/symbos/.test(s)?i.os="symbos":/linux/.test(s)?i.os="linux":i.os=null},95109:function(t,i,n){"use strict";var e=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||(e||(e=Array.prototype.slice.call(i,0,r)),e[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0});var r=n(44422),s=n(62542),o=n(93755),u=n(66342),a=n(40514),c=n(41279),h=n(1954),f=n(52974);function l(t){return u.default.classList(t)}var v=function(){function t(){this.version="0.5.65",this.mimetype=t.mimetype,this.type=c.PluginType.AD,this.Bb=!1,this.zb=new r.default("DefaultAdPlugin"),this.Vb={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this.Gb=null,this.Hb=null,this.Yb=null,this.qb=null,this.Wb&&this.Wb.destroy(),this.Vb=null,this.Bb=!1,this.zb.destroy()},t.prototype.canRenderUI=function(t){return!0},t.prototype.renderUI=function(t,i){var n=i.position,e=void 0===n?0:n,r=i.adBreakItems,s=this.Qb();if(this.Bb=!0,t.interactionConfig&&t.interactionConfig.clickUrl?(this.Gb=t.interactionConfig.clickUrl,l(this.Hb).remove("vp-hidden")):(this.Gb=null,l(this.Hb).add("vp-hidden")),l(this.Yb.parentElement).add("vp-hidden"),t.type===o.AdBreakItemType.BUMPER)return this.Zb=t.duration,s;var a=this.$b(r,e),c=a.position,f=a.totalAds,v=a.duration;if(this.Zb=v,this.Xb=u.default.strSubstitute(1===f?h.default.ADV_SHORT:h.default.ADV_MULT_SHORT,{position:c+1,total:f}),this.Kb=u.default.strSubstitute(1===f?h.default.ADV_LONG:h.default.ADV_MULT_LONG,{position:c+1,total:f}),0===c){var d=this.Xb.split("{")[0];this.Yb.innerText=d}return s},t.prototype.unrenderUI=function(){this.Bb=!1,this.Jb()},t.prototype.onPlayerEvent=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];t===c.PluginPlayerEvent.AD_PLAYBACK_STARTED&&this.Bb&&(i[0].type!==o.AdBreakItemType.BUMPER&&l(this.Yb.parentElement).remove("vp-hidden"));if(t===c.PluginPlayerEvent.AD_PLAYBACK_PROGRESS&&this.Bb){var e=i[0];this.tm(e)}},t.prototype.addEventListener=function(t,i){var n=this.zb.addEventListener(t,i,null);this.Vb[t]=this.Vb[t]||[],this.Vb[t].push([i,n])},t.prototype.removeEventListener=function(t,i){this.Vb[t]=this.Vb[t]||[];for(var n=0,e=this.Vb[t];n<e.length;n++){var r=e[n],s=r[0],o=r[1];if(s===i)return void this.zb.removeEventListener(t,o)}},t.prototype.Jb=function(){this.Gb=null,this.Yb&&(this.Yb.innerText="")},t.prototype.tm=function(t){if(this.Yb){var i=t.currentTime,n=t.duration;if(n){var e=Math.round(n-i);this.Yb.innerText=u.default.strSubstitute(this.Xb,{remaining:e})}}},t.prototype.$b=function(t,i){if(i<0||i>t.length-1)return{position:0,totalAds:0,duration:0};if(t[i].type===o.AdBreakItemType.BUMPER)return{position:0,totalAds:1,duration:t[i].duration};for(var n=-1,e=i-1;e>=0;e--){if((a=t[e]).type===o.AdBreakItemType.BUMPER){n=e;break}}var r=n+1,s=0,u=0;for(e=r;e<t.length;e++){var a;if((a=t[e]).type===o.AdBreakItemType.BUMPER)break;s++,u+=a.duration}return{position:i-r,totalAds:s,duration:u}},t.prototype.im=function(t){for(var i,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(i=this.zb).publish.apply(i,e([t],n,!1))},t.prototype.Qb=function(){var t=this;return this.qb?(this.Jb(),this.qb):(this.qb=u.default.render(f,h.default),this.Yb=this.qb.querySelector(".vp-adbreak-progress span"),this.Hb=this.qb.querySelector(".vp-adbreakitem-cta"),this.Wb=new a.default(this.Hb,(function(i){t.Gb&&(window.open(t.Gb,"_blank"),t.im(s.AdPluginUIEvent.CTA_TRIGGERED))})),this.Jb(),this.qb)},t.mimetype="adplugin/default-ad-view",t}();i.default=v},93840:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.IframeMessageType=i.NielsenEvents=i.NielsenAdType=i.NIELSEN_IAB_VENDOR_ID=void 0;var e=n(53072),r=n(30954),s=n(66342),o=n(53872),u="",a="";if("0.5.65".indexOf("local")>-1)a="https://assets.video.yahoo.net/builds/0.2.174/nielsen-iframe.html";else{a=(u="https://assets.video.yahoo.net")+"/builds/0.5.65/nielsen-iframe.html"}var c,h,f,l="vp-nielsen-iframe";i.NIELSEN_IAB_VENDOR_ID=373,function(t){t.linear="1",t.dynamic="2"}(c=i.NielsenAdType||(i.NielsenAdType={})),function(t){t.LOAD_METADATA="loadMetadata",t.SEND_ID3="sendID3",t.END="end"}(h=i.NielsenEvents||(i.NielsenEvents={})),function(t){t.INITIALIZE="initialize",t.SEND_BEACON="sendBeacon"}(f=i.IframeMessageType||(i.IframeMessageType={}));var v=function(){function t(t,i){this.nm=t,this.rm=null,this.sm="",this.om=!1,this.um=!1,this.am=!1,this.hm=[],this.fm=!1,this.lm="",this.vm=!1,this.dm=[{evt:e.ExternalEvt.PLAYBACK_START,cb:this.pm.bind(this)},{evt:e.ExternalEvt.TIMED_METADATA_RECEIVED,cb:this.bm.bind(this)},{evt:e.ExternalEvt.PLAYBACK_COMPLETE,cb:this.ym.bind(this)},{evt:e.ExternalEvt.PLAYBACK_STOPPED,cb:this.ym.bind(this)},{evt:e.ExternalEvt.MEDIA_ITEM_ERROR,cb:this.ym.bind(this)}],this.gm="P77FED7E1-92A2-4B10-A9AA-16756377EB20",t&&(o.Privacy.initIframeForGDPR(),this.wm(),this.sm="vp-player-"+Math.floor(1e4*Math.random()),i&&i.length&&(this.gm=i),this._m(),this.Em={},this.Om(),this.Sm(),this.lm=this.nm.addEventListener(e.ExternalEvt.NIELSEN_REQUIRED,this.Sm.bind(this),this))}return t.prototype.destroy=function(){this.rm&&(this.nm.removeEventListeners(this.Em),window.removeEventListener("message",this.Am),this.rm=null,this.hm=null,this.Em={},this.nm.removeEventListener(e.ExternalEvt.NIELSEN_REQUIRED,this.lm))},t.prototype.Sm=function(){this.am||(this.Tm(),this.um=!1,this.om=!1,this.am=!0)},t.prototype.Mm=function(){this.am&&(this.nm.removeEventListeners(this.Em),window.removeEventListener("beforeunload",this.ym.bind(this)),this.um=!0,this.am=!1)},t.prototype._m=function(){var t=this;this.rm=document.getElementById(l),this.rm?(this.jm(),this.fm=!0):(this.rm=document.createElement("iframe"),this.rm.id=l,this.rm.style.display="none",this.rm.onload=function(){t.jm(),t.fm=!0,t.vm&&t.Nm()},this.rm.src=a,document.body.appendChild(this.rm))},t.prototype.jm=function(){this.Im(f.INITIALIZE,null,{appid:this.gm})},t.prototype.Im=function(t,i,n){if(this.rm&&this.rm.contentWindow){var e={messageType:t,nielsenEvent:i,payload:n,playerid:this.sm};this.rm.contentWindow.postMessage(e,u)}},t.prototype.Tm=function(){var t=this;window.addEventListener("beforeunload",this.ym.bind(this)),this.dm.forEach((function(i){t.Em[i.evt]=t.nm.addEventListener(i.evt,i.cb,t)}))},t.prototype.Om=function(){window.addEventListener&&window.addEventListener("message",this.Am.bind(this))},t.prototype.Am=function(t){if(t.origin===u){var i=t.data&&t.data.messageType,n=t.data&&t.data.success||!1;if(i&&!n)return;i===f.SEND_BEACON&&n&&(this.om=!0)}},t.prototype.km=function(t,i){var n=this;this.hm.push((function(){n.Im(f.SEND_BEACON,t,i)})),this.rm&&this.fm&&this.vm&&this.Nm()},t.prototype.Nm=function(){this.hm.forEach((function(t){t()})),this.hm=[]},t.prototype.pm=function(t){var i=this.nm.getCurrentMediaItem(),n=i&&i.id,e={type:"content",channelName:t&&t.brandingData&&t.brandingData.branding&&t.brandingData.branding.providerId?n+";"+t.brandingData.branding.providerId:n,adModel:c.linear};this.km(h.LOAD_METADATA,e)},t.prototype.ym=function(){if(this.om&&!this.um){var t=Date.now()/1e3;this.km(h.END,t),this.om=!1,this.Mm()}},t.prototype.bm=function(t){var i=s.default.detectRegexPattern(r.ID3_MATCH_PATTERN.NIELSEN,t);i&&this.om&&this.km(h.SEND_ID3,i)},t.prototype.wm=function(){var t=this;o.Privacy.getVendorConsent(i.NIELSEN_IAB_VENDOR_ID,(function(i,n){if(n){var e=null==i?void 0:i.gdprApplies;t.vm=!e||!!(null==i?void 0:i.hasConsent),t.vm||t.Mm()}else t.Mm()}))},t}();i.default=v},19154:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PARAMS=i.PROGRESS_BEACON_INTERVALS=i.BEACONS=i.PLAYLIST_POSITION=i.DEFAULT_SPACE_ID=i.MAX_SEG_INFO_ENTRIES_PER_BEACON=void 0,i.MAX_SEG_INFO_ENTRIES_PER_BEACON=15,i.DEFAULT_SPACE_ID="1197809794",function(t){t.HERO="hero",t.NONE="none"}(i.PLAYLIST_POSITION||(i.PLAYLIST_POSITION={})),i.BEACONS={VIDEO_REQUEST:{evt:"v_request",type:"pb",payloadParams:["prefetch"],params:[{key:"es",value:"endscreen"}]},PLAYBACK_RESUMED:{evt:"p_resm",type:"pb"},PLAYBACK_STALLED:{evt:"v_stall",type:"pb",payloadParams:["value"]},PLAYBACK_BLOCKED:{evt:"v_play_blocked",type:"pb"},BITRATE_CHANGE:{evt:"v_btrt",type:"pb"},PLAYER_INFO:{evt:"info",type:"pb"},CMS_API_CALLED:{evt:"v_api",type:"pb"},RENDERER_READY:{evt:"renderer_ready",type:"pb",payloadParams:["rtype","shouldplay"]},PLAYER_ERROR:{evt:"error",type:"pb"},PLAYER_WARNING:{evt:"warn",type:"pb"},PLAYBACK_START:{evt:"v_start",type:"pb"},PLAYBACK_STREAM_START:{evt:"v_strm_view",type:"pb"},PLAYBACK_PROGRESS:{evt:"v_prog",type:"pb"},PLAYBACK_COMPLETE:{evt:"v_comp",type:"pb"},STREAM_SYNCH_STRATEGY_APPLIED:{evt:"v_sync",type:"pb"},STREAM_SYNCH_DATERANGE_ENDED:{evt:"v_syncp",type:"pb"},STREAM_SYNCH_COMPLETE:{evt:"v_sync_comp",type:"pb"},STREAM_SYNCH_INVALID_OFFSET:{evt:"v_sync_io",type:"pb"},INCOMPLETE_EXIT:{evt:"v_ncomp",type:"pb",payloadParams:["ext_resn"],params:[{key:"prt",value:"prt"},{key:"pbst",value:"pbst"},{key:"rcvr_status",value:"rcvr_status"},{key:"type",value:"type"}]},CTRL_SEEK:{evt:"ui_seek",type:"ctrl",payloadParams:["value_e"],params:[{key:"value",value:"lastKnownPlaybackTime"}]},CTRL_PLAYPAUSE:{evt:"ui_pp",type:"ctrl",payloadParams:["value"],params:[{key:"req_type",value:"requestType"},{key:"req_action",value:"requestAction"}]},CTRL_VOLUME:{evt:"ui_cv",type:"ctrl",payloadParams:["value"],params:[{key:"value_e",value:"volume"}]},CTRL_REPLAY:{evt:"ui_esrpl",type:"ctrl"},CTRL_PLAYREQUEST:{evt:"ui_pb_req",type:"ctrl",payloadParams:["req_type"]},CTRL_SETTINGS:{evt:"ui_stgs",type:"ctrl"},CTRL_CUSTOM_ELEMENT:{evt:"ui_ce",type:"ctrl",payloadParams:["cust_ctrl_data"]},CONTROLS_AUDIO_CHANGE:{evt:"ui_aslng",type:"ctrl",payloadParams:["value","value_e"]},THREE_SIXTY_INTERACT:{evt:"ui_360_interact",type:"ctrl"},THREE_SIXTY_PIE_INTERACT:{evt:"ui_360_pie_interact",type:"ctrl"},AIRPLAY_CONNECTION_STATE_CHANGE:{evt:"ui_airp",type:"ctrl"},UI_INTERACT:{evt:"none",type:"ctrl"},CC_TOGGLE:{evt:"ui_cctog",type:"ctrl"},CC_LANGUAGE_CHANGE:{evt:"ui_cclng",type:"ctrl",payloadParams:["value"]},CC_UPDATE_STYLE:{evt:"ui_ccstl",type:"ctrl",payloadParams:["value"]},CC_SETTINGS:{evt:"ui_ccstg",type:"ctrl"},FULLSCREEN_CHANGE:{evt:"ui_fs",type:"ctrl"}},i.PROGRESS_BEACON_INTERVALS=[{time:3,beacon:i.BEACONS.PLAYBACK_STREAM_START,key:"vstrm-view"},{time:10,beacon:i.BEACONS.PLAYBACK_PROGRESS,key:"vprog--initial"},{time:30,beacon:i.BEACONS.PLAYBACK_PROGRESS,recurring:!0,key:"vprog--recurring"}],i.PARAMS=["_V","type","ss","vid","pstaid","prt","cprt","vs","vlng","pver","host","_w","_R","pls","pltype","auto","snd","deos","deom","play_pos","psz","ccav","cdn","smpl","cont","replay","focus","view","expm","bit","acodec","vcodec","drm","drmsys","_sqno","ts","pbst","pbstd","pl_type","viewd","soe","siteadspref","preload","s"]},6243:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(30954),r=n(28103),s=n(26120),o=n(64685),u=n(40531),a=n(66342),c=n(19154),h=function(){function t(t){this.nm=t,this.viewability={value:0,timestamp:0,rect:{top:null,bottom:null,height:null},windowHeight:null,isVisible:0,invisibleElement:""},this.progressBeaconsInfo={timeLastSent:{}},this.SKIP_PARAM_IN_BEACON="___skip_param_in_beacon___",this.expm="na",this.pltype="core",this.pl_type="",this._w=document.location.href,this._R=document.referrer,this.s=c.DEFAULT_SPACE_ID,this.Rm=0,this._V="V",this.type="",this.ss="",this.vid="",this.pstaid="",this.prt="none",this.cprt="none",this.vs="",this.vlng="none",this.pver="",this.host=document.location.host,this.pls="",this.auto="",this.snd="",this.deos="",this.deom="",this.psz="",this.ccav="",this.cdn="uncalculated",this.smpl="",this.cont=1,this.replay=0,this.focus="",this.bit=0,this.endscreen=0,this.drmsys="none",this.drm=!1,this._sqno=0,this.ts=0,this.pbst="",this.pbstd="",this.soe="",this.siteadspref=0,this.an={},this.apiPlay=!1,this.preload=!1,this.acodec="",this.vcodec="",this.resetProgressBeaconsState()}return t.getStreamType=function(i,n,e){return Object.values(r.AdBreakOffset).includes(n)?t.getAdType(n):Object.values(s.MediaItemType).includes(n)?t.getContentType(n,n,e):i===o.PlaybackMode.AD?"ad":n},t.getContentType=function(i,n,e){if(i===r.AdBreakOffset.ADONLY)return"ad native";switch(n){case s.MediaItemType.VOD:return 0===e?"":e>t.LONG_VOD_DURATION?"vod long":"vod short";case s.MediaItemType.LIVE_EVENT:case s.MediaItemType.LIVE_CHANNEL:return"live";case s.MediaItemType.CONTAINER:return"streamurl"}return""},t.getAdType=function(t){switch(t){case r.AdBreakOffset.PRE:return"ad pre-roll";case r.AdBreakOffset.MID:return"ad mid-roll";case r.AdBreakOffset.POST:return"ad post-roll";case r.AdBreakOffset.OVERLAY:return"ad non-linear";case r.AdBreakOffset.ADONLY:return"ad native"}return""},t.prototype.destroy=function(){this.pls="",this._sqno=0},t.prototype.update=function(i){this.requestType=i.requestType||"",this.requestAction=i.requestAction||"none",this.audioLanguage=i.audioLanguage||"",this.Lm=i.playerRootElement||this.Lm,this.playbackMode=i.playbackMode,this.adParams=this.playbackMode!==o.PlaybackMode.AD?null:this.adParams,this.type=t.getContentType(i.currentMediaType,i.contentType,i.videoLength)||"",this.pls=this.nm.guid,this.ss=this.Cm(i.currentMediaType)||this.ss,this.vid=i.videoId||this.vid,this.pstaid=i.videoId||this.pstaid,this.prt=this.Dm(i.rendererType)||this.prt,this.cprt=this.Dm(i.mediaItemRendererType)||this.cprt,this.vs=i.sessionId||this.vs,this.vlng=i.videoLength&&parseFloat(i.videoLength.toFixed(2)).toString()||this.vlng,this.pver="0.5.65"===i.playerVersion?"local":i.playerVersion,this.auto=this.apiPlay?"vm":!0===i.autoPlay?"true":"false",this.apiPlay||(this.apiPlay=this.requestAction===e.REQUEST_TYPES.PLAY&&this.requestType===e.REQUEST_TYPES.API),this.snd=!0===i.mute?"m":"um",this.deos=i.docking&&!0===i.docking.enableOnScrollDown?"1":"0",this.deom=i.docking&&!0===i.docking.enableOnMuted?"1":"0",this.psz=i.uiState&&i.uiState.width&&i.uiState.height?i.uiState.width+"x"+i.uiState.height:this.psz,this.ccav=!0===i.isCCAvailable?"1":"0",this.cdn=i.cdn||this.cdn,this.smpl=u.isNullOrUndefined(i.samplingId)?this.smpl:i.samplingId.toString(),this.focus=a.default.isPlayerInBackground()?"0":"1",this.expm=this.Pm(i.uiState),this.endscreen=i.showEndScreen?1:0,this.drmsys=i.drmsys,this.drm=i.drm,this.ts=i.currentTs-this.nm.getInitTime(),this.pbst=i.pbst,this.pbstd=i.pbstd,this.pl_type=this.xm(),this.soe=i.soe,this.siteadspref=i.firstItemAdsSitePrefetched?1:0,this.recv_status=i.recv_status,this.preload=!!i.isPreloaded,this.acodec=i.acodec,this.vcodec=i.vcodec},t.prototype.updateSynchState=function(t){var i=this;Object.keys(t).forEach((function(n){i.an[n]=t[n]||i.an[n]}))},t.prototype.updateTs=function(t){this.ts=t-this.nm.getInitTime()},t.prototype.getCommonParams=function(){var t=this,i={t:Math.random()};return c.PARAMS.forEach((function(n){i[n]=t[n]})),i},t.prototype.onVideoRequest=function(t,i){this.Um&&(i.videoId===this.Um?this.replay++:this.cont++),this.Um=i.videoId,this.bitrate=0},t.prototype.onBeaconSent=function(){this._sqno++},t.prototype.resetProgressBeaconsState=function(){this.progressBeaconsInfo.timeLastSent=c.PROGRESS_BEACON_INTERVALS.reduce((function(t,i){return t[i.key]=-1,t}),{})},Object.defineProperty(t.prototype,"synchState",{get:function(){return this.an},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.nm.getCurrentTime()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"volume",{get:function(){var t=this.nm.volume;return t&&t>0&&t.toString()||"0"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bitrate",{get:function(){return this.Rm},set:function(t){this.Rm=Math.round(t),this.bit=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"programDateTimeLatency",{get:function(){var t=this.nm.getCurrentDate(),i=(new Date).getTime();return t>0?(i-t).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"play_pos",{get:function(){var t=this.currentTime||0;return parseFloat(t.toFixed(2)).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"view",{get:function(){return this.Fm(this.Lm).toString()+"%"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewd",{get:function(){var t=this.viewability;return JSON.stringify({ts:this.viewability.timestamp,t:u.isNullOrUndefined(t.rect.top)?"":t.rect.top,b:u.isNullOrUndefined(t.rect.bottom)?"":t.rect.bottom,h:u.isNullOrUndefined(t.rect.height)?"":t.rect.height,wh:this.viewability.windowHeight||"",v:this.viewability.isVisible,i:this.viewability.invisibleElement})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jsdt",{get:function(){return"na"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssdt",{get:function(){return f},enumerable:!1,configurable:!0}),t.prototype.Dm=function(t){if(!t)return"";switch(t){case o.RendererType.HTML5_HLS:return"html5-hls";case o.RendererType.HTML5_HLS_360:return"html5-hls-360";case o.RendererType.HTML5_RAW_360:return"html-360";case o.RendererType.AD_PLUGIN:case o.RendererType.HTML5_RAW:case o.RendererType.HTML5_TV:case o.RendererType.HTML5_TV_TIZEN:case o.RendererType.HTML5_TV_ORSAY:default:return"html"}},t.prototype.Cm=function(t){return t===s.MediaItemType.LIVE_EVENT||t===s.MediaItemType.LIVE_CHANNEL?"live":"vod"},t.prototype.Fm=function(t){var i=(new Date).getTime();if(t&&i-this.viewability.timestamp>1e3){var n=t&&void 0!==t.getElementsByClassName?t.getElementsByClassName(e.VIDEO_MAIN_ELEMENT_CLASS):null;n&&n.length&&(this.viewability.value=a.default.getElementViewability(n[0]),this.viewability.timestamp=i,this.viewability.rect=n[0].getBoundingClientRect(),this.viewability.windowHeight=window.innerHeight,this.viewability.isVisible=null!==n[0].offsetParent?1:0,this.viewability.invisibleElement=this.viewability.isVisible?"":this.Bm(n[0]))}return this.viewability.value},t.prototype.Pm=function(t){return t?t.isPIP?"picture_in_picture":t.isFullScreen?"fullscreen":t.isDocked?"docked":"na":"na"},t.prototype.Bm=function(t){return t?t.parentElement&&"none"!==t.style.display?this.Bm(t.parentElement):JSON.stringify({n:t.nodeName,i:t.id,cl:t.classList}):""},t.prototype.xm=function(){var t,i,n,r,s,o,u=this.nm.config,a=!0===(null===(i=null===(t=null==u?void 0:u.ui)||void 0===t?void 0:t.playlist)||void 0===i?void 0:i.show)&&(null===(r=null===(n=null==u?void 0:u.ui)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.position);return a!==e.PLAYLIST_POS.RIGHT||(null===(o=null===(s=null==u?void 0:u.ui)||void 0===s?void 0:s.playlist)||void 0===o?void 0:o.inStream)?a||c.PLAYLIST_POSITION.NONE:c.PLAYLIST_POSITION.HERO},t.LONG_VOD_DURATION=600,t}();i.default=h;var f=a.default.getResourceLoadTime(/video-player\.css/);f=u.isNumber(f)?Math.round(f).toString():"na"},74299:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.RecoveryStatus=i.ProgressEvent=void 0;var s,o,u=n(44422),a=n(53072),c=n(64685),h=n(40531),f=n(19154),l=n(66342);!function(t){t.VIDEO_PROGRESS="video-progress"}(s=i.ProgressEvent||(i.ProgressEvent={})),function(t){t.RECOVERING="recovering",t.RECOVERED="recovered",t.ABORTED="aborted",t.ERROR="error",t.IDLE=""}(o=i.RecoveryStatus||(i.RecoveryStatus={}));var v=function(t){function i(i,n){var e=t.call(this,"AnalyticsProgressManager")||this;return e.nm=i,e.vt=n,e.zm=0,e.Em={},e.Vm=[],e.Ne=!1,e.Gm=0,e.Hm=o.IDLE,e.Ym=[],e.qm=null,[{evt:a.ExternalEvt.VIDEO_REQUEST,cb:e.Wm},{evt:a.ExternalEvt.SEG_INFO_AVAILABLE,cb:e.Qm},{evt:a.ExternalEvt.PLAYBACK_TIME_UPDATE,cb:e.En},{evt:a.ExternalEvt.PLAYBACK_SEEKING,cb:e.yn},{evt:a.ExternalEvt.PLAYBACK_SEEK_COMPLETE,cb:e.Zm},{evt:a.ExternalEvt.RECOVERY_START,cb:e.$m},{evt:a.ExternalEvt.RECOVERING,cb:e.Xm},{evt:a.ExternalEvt.RECOVERED,cb:e.Km},{evt:a.ExternalEvt.RECOVERY_DISABLED,cb:e.Jm},{evt:a.ExternalEvt.PLAYER_MUTE_CHANGE,cb:e.ty},{evt:a.ExternalEvt.AD_PLAYBACK_STARTED,cb:e.iy}].forEach((function(t){e.Em[t.evt]=e.nm.addEventListener(t.evt,t.cb,e)})),e}return r(i,t),i.prototype.destroy=function(){this.nm.removeEventListeners(this.Em),this.ny()},i.prototype.onSessionComplete=function(t,i){this.Hm===o.RECOVERING&&this.ey(i),this.updatePlaybackStats(t),this.sy()},i.prototype.updatePlaybackStats=function(t){var i,n=this.oy();if(t.dur=Math.floor(this.zm)||"",t.dur_d=Math.floor(this.zm)-Math.floor(this.Gm)||0,t.buff_info=n.segInfo||"",t.buf_dur=n.bufDur||0,this.updateRecoveryStats(t),null===(i=this.Ym)||void 0===i?void 0:i.length)try{t.reason=JSON.stringify(this.Ym)}catch(t){}},i.prototype.updateRecoveryStats=function(t){var i;this.Hm!==o.IDLE&&(t.rcvr_status=this.Hm,t.rcvr_at=(null===(i=this.qm)||void 0===i?void 0:i.attemptCount)||0)},Object.defineProperty(i.prototype,"totalWatchTime",{get:function(){return this.zm},enumerable:!1,configurable:!0}),i.prototype.Wm=function(t,i){this.ny()},i.prototype.yn=function(t,i){this.Ne=!0,this.qm=i,t&&this.Ym.push(t)},i.prototype.Zm=function(t){this.Ne=!1,this.qm=t,this.vt.lastKnownPlaybackTime=this.vt.currentTime,this.Ym.length&&this.uy(f.BEACONS.PLAYBACK_PROGRESS),this.Ym=[]},i.prototype.Qm=function(t){this.Vm=this.Vm.concat(t.val),this.Vm=this.hy()},i.prototype.hy=function(){if(this.Vm.length<=0)return this.Vm;for(var t=[this.Vm[0]],i=1;i<this.Vm.length;i++){var n=this.Vm[i];1===Object.keys(n).length&&void 0!==n.buf_dur?t[t.length-1].buf_dur+=n.buf_dur:t.push(n)}return t},i.prototype.En=function(t,i){if(!(this.Ne||h.isNullOrUndefined(t)||t<0||i.playbackMode===c.PlaybackMode.AD))if(h.isNullOrUndefined(this.vt.lastKnownPlaybackTime))this.vt.lastKnownPlaybackTime=t;else{var n=t-this.vt.lastKnownPlaybackTime;this.vt.lastKnownPlaybackTime=t,n>0&&(this.zm+=n),this.ly()}},i.prototype.ly=function(){var t=this;f.PROGRESS_BEACON_INTERVALS.forEach((function(i){var n=t.zm,e=t.vt.progressBeaconsInfo.timeLastSent[i.key],r=-1===e?0:e;(i.recurring&&n>r+i.time||!i.recurring&&-1===e&&n>i.time)&&(t.vt.progressBeaconsInfo.timeLastSent[i.key]=Math.floor(n),t.uy(i.beacon))}))},i.prototype.uy=function(t){this.publish(s.VIDEO_PROGRESS,t),this.Gm=Math.floor(this.zm)},i.prototype.ny=function(){this.Vm=[],this.zm=0,this.Gm=0,this.vt.lastKnownPlaybackTime=null,this.vt.resetProgressBeaconsState(),this.Hm=o.IDLE},i.prototype.oy=function(){var t,i;return i=this.Hm!==o.IDLE?[{buf_dur:(null===(t=this.qm)||void 0===t?void 0:t.rebufferingTime)||0}]:this.Vm.splice(0,Math.min(f.MAX_SEG_INFO_ENTRIES_PER_BEACON,this.Vm.length)),{segInfo:JSON.stringify({seg:i}),bufDur:i.reduce((function(t,i){return i.buf_dur+t}),0)}},i.prototype.$m=function(t){this.qm=t,(null==t?void 0:t.reason)&&this.Ym.push(null==t?void 0:t.reason),this.uy(f.BEACONS.PLAYBACK_PROGRESS),this.Hm=o.RECOVERING},i.prototype.Xm=function(t){this.qm=t,(null==t?void 0:t.reason)&&this.Ym.push(null==t?void 0:t.reason)},i.prototype.Km=function(t){this.qm=t,this.Hm=o.RECOVERED,this.uy(f.BEACONS.PLAYBACK_PROGRESS),this.sy()},i.prototype.ey=function(t){this.qm=t,this.Hm=o.ERROR},i.prototype.Jm=function(t,i){this.qm=t,this.Hm===o.RECOVERING&&(this.Hm=o.ABORTED),i!==c.PlaybackMode.AD&&this.uy(f.BEACONS.PLAYBACK_PROGRESS),this.sy()},i.prototype.sy=function(){this.Ym=[],this.Hm=o.IDLE},i.prototype.ty=function(t,i){this.uy(f.BEACONS.PLAYBACK_PROGRESS),this.vt.update(i)},i.prototype.iy=function(t){l.default.isMidrollAdBreak(t)&&this.uy(f.BEACONS.PLAYBACK_PROGRESS)},i}(u.default);i.default=v},7262:function(t,i,n){"use strict";var e=this&&this.__assign||function(){return e=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},e.apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var r=n(51750),s=n(50101),o=function(){function t(t){if(this.Em={},!t)throw Error("[InStreamAdAnalytics] Cannot initialize InStreamAdAnalytics. Bad instreamAdManager instance!");this.vy=t,this.Tm()}return t.prototype.destroy=function(){this.vy.destroy(),this.Em={}},t.prototype.Tm=function(){var t=this,i=e({},s.InstreamAdManagerEvent);Object.keys(i).forEach((function(i){t.Em[s.InstreamAdManagerEvent[i]]=t.vy.on(s.InstreamAdManagerEvent[i],t.py,t)}))},t.prototype.py=function(t){t&&t.forEach((function(t){return r.default.sendImageBeacon(t)}))},t}();i.default=o},51750:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(66342),r=n(39451),s=function(){function t(){}return t.sendImageBeacon=function(t){var i;if(!(null===(i=r.userAgent.ua)||void 0===i?void 0:i.includes("+https://www.comscore.com/web-crawler"))){t=e.default.fixProtocol(t);var n=new Image;n.onload=n.onabort=n.onerror=function(){n.onload=n.onabort=n.onerror=null,n=null},n.src=t}},t.sendUnloadBeacon=function(i){return i=e.default.fixProtocol(i),navigator&&navigator.sendBeacon?navigator.sendBeacon(i,null):t.sendImageBeacon(i),!0},t.sendIframeBeacon=function(i){i=e.default.fixProtocol(i);var n=Math.random(),r="vp-beacons",s=document.querySelector("#"+r),o=r+"-"+n;s||(s=t.createBeaconsIframe(document,r),document.body.appendChild(s));var u=t.createBeaconsIframe(s.contentDocument,o);return u.src=i,"complete"===s.contentDocument.readyState?s.contentDocument.body.appendChild(u):s.contentDocument.body.onload=function(){s.contentDocument.body.appendChild(u)},!0},t.createBeaconsIframe=function(t,i){var n=t.createElement("iframe");return n.frameBorder=0,n.width=0,n.height=0,n.marginwidth=0,n.marginheight=0,n.hspace=0,n.vspace=0,n.frameborder=0,n.scrolling="no",n.id=i,n.style.display="none",n.title="",n},t.prepareApiInfo=function(t,i){(i=i||{}).url=t,i.instrument=i.instrument||"none",i.perfInfo="na",i.source="player";var n=i.resourceTiming;if(n){var e={};["connectEnd","connectStart","domainLookupEnd","domainLookupStart","duration","fetchStart","redirectEnd","redirectStart","requestStart","responseEnd","responseStart","startTime"].forEach((function(t){e[t]=n[t].toFixed(2)})),i.latency=e&&e.duration||"",i.perfInfo=JSON.stringify(e)}return i},t}();i.default=s},41880:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2694),r=n(53072),s=n(64685),o=n(40531),u=n(66342),a=n(19154),c=n(6243),h=n(74299),f=n(51750),l=["ad_play","ad_play_complete","ad_iframe_load","ad_iframe_loaded","ad_play_plg","ad_prepare_pb_plg","ad_fetch_plg","ad_eng_load_plg","ad_non_vpaid_emptied_plg","ad_media_loaded_plg","ad_media_resolved_plg","ad_non_vpaid_play_plg","ad_non_vpaid_load_plg","ad_stop_player_plg","ad_non_vpaid_loaded_plg","ad_non_vpaid_start_plbck_plg","ad_non_vpaid_video_load_plg","ad_non_vpaid_load_data_plg","ad_comp_plg","ad_non_vpaid_suspended_plg","ad_pause_player_plg","ad_stop_by_error_plg","ad_vpaid_stop_plg","ad_vpaid_init_plg","vpaid_initialising_plg","ad_vpaid_err_plg","ad_vpaid_start_playback_plg","ad_paused_plg","ad_fetch","ad_fetched","s_load","renderer_playing","renderer_ready","v_play_apr","v_play_rdr","v_plcomp","v_plprog","v_plstart"],v=function(){function t(t){this.nm=t,this.by=!1,this.my=!1,this.dm=[{evt:r.ExternalEvt.VIDEO_REQUEST,cb:this.yy.bind(this,"VIDEO_REQUEST")},{evt:r.ExternalEvt.PLAYBACK_RESUMED,cb:this.yy.bind(this,"PLAYBACK_RESUMED")},{evt:r.ExternalEvt.PLAYBACK_STALLED,cb:this.yy.bind(this,"PLAYBACK_STALLED")},{evt:r.ExternalEvt.PLAYBACK_BLOCKED,cb:this.yy.bind(this,"PLAYBACK_BLOCKED")},{evt:r.ExternalEvt.CTRL_SEEK,cb:this.yy.bind(this,"CTRL_SEEK")},{evt:r.ExternalEvt.CTRL_VOLUME,cb:this.yy.bind(this,"CTRL_VOLUME")},{evt:r.ExternalEvt.CTRL_PLAYPAUSE,cb:this.yy.bind(this,"CTRL_PLAYPAUSE")},{evt:r.ExternalEvt.CTRL_REPLAY,cb:this.yy.bind(this,"CTRL_REPLAY")},{evt:r.ExternalEvt.CTRL_PLAYREQUEST,cb:this.yy.bind(this,"CTRL_PLAYREQUEST")},{evt:r.ExternalEvt.CTRL_SETTINGS,cb:this.yy.bind(this,"CTRL_SETTINGS")},{evt:r.ExternalEvt.CTRL_CUSTOM_ELEMENT,cb:this.yy.bind(this,"CTRL_CUSTOM_ELEMENT")},{evt:r.ExternalEvt.CONTROLS_AUDIO_CHANGE,cb:this.yy.bind(this,"CONTROLS_AUDIO_CHANGE")},{evt:r.ExternalEvt.THREE_SIXTY_INTERACT,cb:this.yy.bind(this,"THREE_SIXTY_INTERACT")},{evt:r.ExternalEvt.RENDERER_READY,cb:this.yy.bind(this,"RENDERER_READY")},{evt:r.ExternalEvt.THREE_SIXTY_PIE_INTERACT,cb:this.yy.bind(this,"THREE_SIXTY_PIE_INTERACT")},{evt:r.ExternalEvt.CC_LANGUAGE_CHANGE,cb:this.yy.bind(this,"CC_LANGUAGE_CHANGE")},{evt:r.ExternalEvt.CC_UPDATE_STYLE,cb:this.yy.bind(this,"CC_UPDATE_STYLE")},{evt:r.ExternalEvt.CC_SETTINGS,cb:this.yy.bind(this,"CC_SETTINGS")},{evt:r.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,cb:this.gy},{evt:r.ExternalEvt.BITRATE_CHANGE,cb:this.wy},{evt:r.ExternalEvt.UI_INTERACT,cb:this._y},{evt:r.ExternalEvt.CC_UI_TOGGLE,cb:this.Ey},{evt:r.ExternalEvt.PLAYER_FULLSCREEN_CHANGE,cb:this.Oy},{evt:r.ExternalEvt.PLAYER_PIP_MODE_CHANGE,cb:this.Sy},{evt:r.ExternalEvt.PLAYER_INFO,cb:this.Ay},{evt:r.ExternalEvt.CMS_API_CALLED,cb:this.Ty},{evt:r.ExternalEvt.PLAYER_ERROR,cb:this._n},{evt:r.ExternalEvt.PLAYER_WARNING,cb:this.My},{evt:r.ExternalEvt.PLAYBACK_START,cb:this.jy},{evt:r.ExternalEvt.PLAYBACK_COMPLETE,cb:this.Ny},{evt:r.ExternalEvt.AD_METRICS,cb:this.Iy},{evt:r.ExternalEvt.STREAM_SYNCH_STRATEGY_APPLIED,cb:this.ky},{evt:r.ExternalEvt.STREAM_SYNCH_COMPLETE,cb:this.Ry},{evt:r.ExternalEvt.DATERANGE_ENDED,cb:this.Ly},{evt:r.ExternalEvt.INVALID_SYNC_OFFSET,cb:this.Cy},{evt:r.ExternalEvt.VA_METRICS,cb:this.Dy}],this.nm&&(this.vt=this.Py(this.nm),this.xy=new h.default(this.nm,this.vt),this.Em={},this.Tm())}return t.prototype.destroy=function(){this.Uy("destroy"),this.nm.removeEventListeners(this.Em),this.xy.destroy(),this.vt.destroy(),this.Em={}},t.prototype.jy=function(t){var i=this.nm.getPlaybackStartDto();t.ad=this.by?1:0,t.rsm=i.isResume||"",t.pdtl=this.vt.programDateTimeLatency,this.Fy(t,i),this.By(t,a.BEACONS.PLAYBACK_START),this.py(t)},t.prototype.Py=function(t){return new c.default(t)},t.prototype.Iy=function(t,i){if(t&&t.evt){t.evt=t.evt.toLowerCase(),"ad_dlv"===t.evt&&(this.by=!0,this.Fy(i,this.nm.getPlaybackStartDto())),this.vt.adParams=t;for(var n=["string","number","boolean","undefined"],e=0,r=Object.getOwnPropertyNames(t);e<r.length;e++){var s=r[e];(n.indexOf(typeof t[s])>=0||null===t[s])&&o.isNullOrUndefined(i[s])&&(i[s]=t[s])}var u=t.adReplay;u&&+u>0&&(i.replay=u),i.V_sec="pb",this.py(i),"ad_comp"===t.evt&&(this.vt.adParams=null)}},t.prototype.Dy=function(t,i){t&&t.evt&&(t.evt=t.evt.toLowerCase(),this.py(this.zy(t,i)))},t.prototype.Tm=function(){var t=this;this.nm.addEventListener(r.ExternalEvt.VIDEO_REQUEST,this.Wm,this),this.xy.addEventListener(h.ProgressEvent.VIDEO_PROGRESS,this.Vy,this),this.dm.forEach((function(i){t.Em[i.evt]=t.nm.addEventListener(i.evt,t.Gy.bind(t,i),t)})),this.nm.once(r.ExternalEvt.VIDEO_REQUEST,this.Hy,this)},t.prototype.Gy=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var e=i.length-1,r=i[e]||{};this.vt.update(r);var s=this.vt.getCommonParams(),u=o.isObject(i[e])?Array.prototype.slice.call(i,0,e):i;t.cb.apply(this,u.concat([s]))},t.prototype.Hy=function(){window.addEventListener("unload",this.Yy.bind(this))},t.prototype.yy=function(t){for(var i=this,n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];var r=t&&a.BEACONS[t]||null,s=n[n.length-1];if(r){var o=Array.prototype.slice.call(n,0,n.length-1),u=r.payloadParams;if(o.length&&u&&u.length===o.length)for(var c=0;c<o.length;c++)s[u[c]]=o[c].toString();else if(u&&u.length)return;r.params&&r.params.forEach((function(t){s[t.key]=i.vt[t.value]})),this.By(s,r),this.xy.updateRecoveryStats(s),s.dur=Math.round(this.xy.totalWatchTime)||"",this.py(s)}},t.prototype.py=function(t){this.qy(t);var i="https://bats.video.yahoo.com/p?"+u.default.querystring(this.Wy(t),"&","=",(function(t){return encodeURIComponent(t).replace(/[!'()]/g,escape).replace(/\*/g,"%2A")}));f.default.sendImageBeacon(i),this.vt.onBeaconSent()},t.prototype.Wy=function(t){var i=t;return l.includes(t.evt)&&(i._V="test"),i},t.prototype.qy=function(t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&t[i]===this.vt.SKIP_PARAM_IN_BEACON&&delete t[i]},t.prototype.Wm=function(t,i){this.by=!1,this.my=!1,this.vt.onVideoRequest(t,i)},t.prototype.wy=function(t,i,n){this.By(n,a.BEACONS.BITRATE_CHANGE),n.value=t.toString(),n.value_e=this.vt.bitrate,n.reason=i.reason||"",n.fr=i.newFrameRate||"",n.fr_old=i.oldFrameRate||"",this.py(n),this.vt.bitrate=t},t.prototype.gy=function(t,i){t.isInitialEvt||(this.By(i,a.BEACONS.AIRPLAY_CONNECTION_STATE_CHANGE),i.value=t.connected?"1":"0",this.py(i))},t.prototype._y=function(t,i){this.By(i,a.BEACONS.UI_INTERACT),i.evt=["ui_pl_nxt_clk","ui_pl_nxt_hvr","ui_pl_scrl","ui_pl_thmb_clk"].indexOf(t.srcElement)>-1?"ui_pl":i.evt,i.V_slk=t.srcElement,this.py(i)},t.prototype.Ey=function(t,i,n){this.By(n,a.BEACONS.CC_TOGGLE),n.value=t?"1":"0",this.py(n)},t.prototype.Oy=function(t,i){this.By(i,a.BEACONS.FULLSCREEN_CHANGE),i.value=t?"ON":"OFF",this.py(i)},t.prototype.Sy=function(t,i){},t.prototype.Ay=function(t,i){this.By(i,a.BEACONS.PLAYER_INFO),i.ecode=t.codeString||"",i.estring=t.debugMessage||t.message||"",this.py(i),this.Uy("error",t)},t.prototype.Ty=function(t,i){var n=f.default.prepareApiInfo(t.url,t.perfObj);this.By(i,a.BEACONS.CMS_API_CALLED),i.source=n.source||"na",i.url=n.url||"",i.latency=n.latency||"",i.http_code=n.http_code||"na",i.resp_len=n.resp_len||"na",i.instrument=n.instrument||"",i.perf_info=n.perfInfo||"",this.py(i)},t.prototype._n=function(t,i){t.isRecoverable||(this.By(i,a.BEACONS.PLAYER_ERROR),i.ecode=t.codeString||"",i.estring=t.debugMessage||t.message||"",i.dur=Math.round(this.xy.totalWatchTime)||"",this.py(i),this.Uy("error",t))},t.prototype.My=function(t,i,n){var e;this.By(n,a.BEACONS.PLAYER_WARNING);var r=null===(e=null==t?void 0:t.details)||void 0===e?void 0:e.recoveryMetrics;n&&(n.ecode=t.codeString||"",n.estring=t.debugMessage||t.message||"",n.rcvr_state=(null==i?void 0:i.recoveryState)||"",r&&r.status!==h.RecoveryStatus.IDLE&&(n.rcvr_status=r.status,n.rcvr_at=r.attemptCount)),this.py(n)},t.prototype.Ny=function(t,i){this.Qy(a.BEACONS.PLAYBACK_COMPLETE,i)},t.prototype.Yy=function(){this.Uy("unload")},t.prototype.Uy=function(t,i){var n;this.vt.updateTs(Date.now());var e=this.vt.getCommonParams();e&&(e.ext_resn=t||"na");var r=null===(n=null==i?void 0:i.details)||void 0===n?void 0:n.recoveryMetrics;this.Qy(a.BEACONS.INCOMPLETE_EXIT,e,r),0===this.nm.getCurrentTime()&&this.xy.destroy()},t.prototype.Qy=function(t,i,n){this.my||(this.my=!0,this.By(i,t),i.pdtl=this.vt.programDateTimeLatency,i.alang=this.vt.audioLanguage,this.vt.playbackMode===s.PlaybackMode.AD?this.Zy(i):this.xy.onSessionComplete(i,n),this.py(i))},t.prototype.Vy=function(t){this.vt.updateTs(Date.now());var i=this.vt.getCommonParams();this.By(i,t),this.xy.updatePlaybackStats(i),this.py(i)},t.prototype.ky=function(t,i){this.$y(i,t,a.BEACONS.STREAM_SYNCH_STRATEGY_APPLIED),this.py(i)},t.prototype.Ry=function(t,i){this.Xy(i,t,a.BEACONS.STREAM_SYNCH_COMPLETE),this.py(i)},t.prototype.Ly=function(t,i){if(t.className.indexOf("content-data:watchtogether")>-1){var n={};n.startDate=t.startDate,n.contentDate=e.default.getData(t).latency_ts||"",this.$y(i,n,a.BEACONS.STREAM_SYNCH_DATERANGE_ENDED),this.py(i)}},t.prototype.Cy=function(t){this.By(t,a.BEACONS.STREAM_SYNCH_INVALID_OFFSET),this.py(t)},t.prototype.Ky=function(t){return t&&o.isNumber(t.timeDiff)&&t.timeDiff.toString()||""},t.prototype.Jy=function(t,i){return t&&t.startTime&&i&&(i+t.startTime).toString()||""},t.prototype.tg=function(t,i){return t&&o.isNumber(t.timeDiff)&&i&&o.isNumber(i.timeDiff)?(t.timeDiff-i.timeDiff).toString():this.Ky(t)},t.prototype.By=function(t,i){t&&i&&(t.evt=i.evt,t.V_sec=i.type)},t.prototype.$y=function(t,i,n){if(t&&i){i.playbackRate=o.isNumber(i.playbackRate)&&i.playbackRate.toString(),i.bufferLength=o.isNumber(i.bufferLength)&&i.bufferLength.toString();var e=this.vt.synchState;t.evt=n.evt,t.V_sec=n.type,t._V="test",t.syn_mode=i.syncMode||e.syncMode,t.syn_src=i.syncSource||e.syncSource,t.syn_st=i.strategy&&("rateChange"===i.strategy?"pr":i.strategy)||e.strategy,t.syn_t=i.syncDuration||e.syncDuration,t.syn_ps=i.playbackRate||e.playbackRate,t.syn_tl=i.targetLatency||e.targetLatency,t.syn_ll=i.liveLatency||e.liveLatency,t.buf_len=i.bufferLength||e.bufferLength,t.syn_os=i.synchOffset||e.synchOffset,t.ntp_t=Date.now(),t.sys_t=Date.now(),t.syn_pdt=this.nm.getCurrentDate(),i.startDate&&(t.dr_start=i.startDate),i.contentDate&&(t.dr_ct=i.contentDate),this.vt.updateSynchState(i)}},t.prototype.Xy=function(t,i,n){t&&i&&(t.evt=n.evt,t.V_sec=n.type,t._V="test",t.syn_mode=i.syncMode,t.syn_src=i.syncSource,t.syn_sts=JSON.stringify(i.strategies),t.syn_t=i.syncDuration,t.comp_cause=i.cause)},t.prototype.Zy=function(t){var i=this.nm.getCurrentTime(),n=this.vt.adParams&&this.vt.adParams.pos,e=this.vt.adParams&&this.vt.adParams.dur||null;t.pos=n||"ad",t.dur=i>0?Math.floor(i):0,t.dur_d=o.isNumber(e)&&i>e&&Math.floor(i-e)||0,t.buff_info="",t.buf_dur=0},t.prototype.Fy=function(t,i){t.apallwd=i.autoPlayAllowed||"",t.jsdt=this.vt.jsdt,t.cssdt=this.vt.cssdt,t.req_type=this.vt.requestType||"",t.req_action=this.vt.requestAction||"",t.apl=this.tg(i.autoPlayLatency,i.deferringPlaybackLatency),t.bgl=this.Ky(i.deferringPlaybackLatency),t.s_apl=this.Jy(i.autoPlayLatency,i.initTime),t.ucl=this.Ky(i.clickToPlayLatency),t.tpb=this.Ky(i.playbackStartLatency),t.s_tpb=this.Jy(i.playbackStartLatency,i.initTime),t.tmeta_call=this.Ky(i.cmsLatency),t.s_tsapic=this.Jy(i.cmsLatency,i.initTime),t.tsrc_call=this.Ky(i.cmsSourceLatency),t.s_tssrcapic=this.Jy(i.cmsSourceLatency,i.initTime),t.tadp=this.Ky(i.adPluginLatency),t.s_tadpc=this.Jy(i.adPluginLatency,i.initTime),t.strml=this.Ky(i.streamReqToRenderLatency),t.s_strml=this.Jy(i.streamReqToRenderLatency,i.initTime),t.tadbetce=this.Ky(i.adBreakEndToClientEnd),t.tadcetrr=this.Ky(i.adClientEndToRendererReady),t.trrtpbs=this.Ky(i.rendererReadyToPlaybackStart)},t.prototype.zy=function(t,i){for(var n=["string","number","boolean","undefined"],e=0,r=Object.getOwnPropertyNames(t);e<r.length;e++){var s=r[e];(n.indexOf(typeof t[s])>=0||null===t[s])&&o.isNullOrUndefined(i[s])&&(i[s]=t[s])}return i},t}();i.default=v},10655:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(26120),r=n(41279),s=function(){function t(){this.version="0.5.65",this.mimetype=e.MediaItemMimeType.CONTAINER,this.type=r.PluginType.METADATA}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.resolve=function(t,i,n){var r=t.map((function(t){return t.metadata=t.metadata||{},t.metadata.type=e.MediaItemType.CONTAINER,t}));n.onComplete(r)},t.prototype.recover=function(t,i,n){},t.prototype.cancel=function(){},t}();i.default=s},59939:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s=n(26120),o=n(41279),u=function(t){function i(){var i=t.call(this)||this;return i.mimetype=s.MediaItemMimeType.CONTAINER,i.type=o.PluginType.SOURCE_METADATA,i}return r(i,t),i}(n(10655).default);i.default=u},40830:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(53872),r=n(26120),s=n(41279),o="content.uplynk.com",u={title:"",description:"",posterUrl:"",thumbnail:"",duration:0,type:r.MediaItemType.VOD},a=function(){function t(){this.version="0.5.65",this.mimetype=r.MediaItemMimeType.UPLYNK,this.type=s.PluginType.METADATA,this.ig=[],this.ng={},e.Loader.preconnect("preconnect-uplynk","//"+o)}return t.prototype.prepare=function(){},t.prototype.resolve=function(t,i,n){var e=this;if(Array.isArray(t)&&0!==t.length){var r=t.map((function(t){return new Promise((function(i,r){e.eg(t,i,r,n)}))}));this.rg=!1;var s=function(){e.rg=!0};this.ig.push(s),Promise.all(r).then((function(t){e.rg||(e.sg(s),n.onComplete(t))})).catch((function(t){if(!e.rg){e.sg(s);var i={code:"1",message:t.toString()};n.onError(i)}}))}},t.prototype.recover=function(t,i,n){},t.prototype.cancel=function(){this.ig.forEach((function(t){t()})),this.ig=[]},t.prototype.destroy=function(){this.cancel()},t.prototype.eg=function(t,i,n,e){var s=this,o=t.id,a=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=t&&t.length?t[0]:null,o=t.length?t[4]:null,u=t.length?t[5]:null;s.rg||e.onApiCallInfo({url:u&&u.url||null,perfObj:o}),n(r)},c=function(n,r,a,c){t.metadata=t.metadata||{},t.metadata.title=n.meta&&n.meta.title||n.desc||u.title,t.metadata.description=n.desc||u.description,t.metadata.posterUrl=n.poster_url||u.posterUrl,t.metadata.thumbnail=n.poster_url||u.thumbnail,t.metadata.duration=n.duration||u.duration,t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/uplynk"},t.visualSeekData.assetInfo={maxSlice:n.max_slice,sliceDuration:n.slice_dur,thumbPrefix:n.thumb_prefix,thumbs:n.thumbs},s.ng[o]=!0,s.rg||e.onApiCallInfo({url:c&&c.url||null,perfObj:a}),i(t)};!function(){var n=t.metadata;if(!n||n.type!==r.MediaItemType.LIVE_CHANNEL&&n.type!==r.MediaItemType.LIVE_EVENT||s.og(t),s.ug(t)||s.ng[o])return i(t);s.ag(t,c,a)}()},t.prototype.ag=function(t,i,n){var e=t.customConfig&&t.customConfig.sid,r="https://"+o+"/player/assetinfo/{assetid}.json".replace("{assetid}",t.id)+(e?"?pbs="+e:"");this.cg(r,i,n)},t.prototype.cg=function(t,i,n){var r=this,s=e.Loader.ajax(t,{context:this,successHandler:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r.sg(s),i.apply(void 0,t)},failureHandler:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];r.sg(s),n.apply(void 0,t)},withCookie:!1,responseTypeJson:!0,collectPerfData:!0});this.ig.push(s)},t.prototype.sg=function(t){if(t){var i=this.ig.indexOf(t);i>=0&&this.ig.splice(i,1)}},t.prototype.og=function(t){for(var i in t.metadata=t.metadata||{},u)void 0===t.metadata[i]&&(t.metadata[i]=u[i])},t.prototype.ug=function(t){return!(!t||!t.metadata||void 0===t.metadata.title||void 0===t.metadata.description||void 0===t.metadata.thumbnail||void 0===t.metadata.posterUrl||void 0===t.metadata.duration)},t}();i.default=a},1032:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(40660),r=n(53872),s=n(28103),o=n(93755),u=n(26120),a=n(41279),c=n(40531),h="content.uplynk.com",f={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{playURL:{type:"string"}},required:["playURL"]},l=function(){function t(){this.version="0.5.65",this.mimetype=u.MediaItemMimeType.UPLYNK,this.type=a.PluginType.SOURCE_METADATA,this.ig=[],this.hg={},this.fg=!1,this.rg=!1,r.Loader.preconnect("preconnect-uplynk","//"+h)}return t.prototype.prepare=function(){},t.prototype.resolve=function(t,i,n){var e=this;if(Array.isArray(t)&&0!==t.length){this.hg=this.vg(i.privacyConsent);var r=t.map((function(t){return new Promise((function(i,r){e.eg(t,i,r,n)}))}));this.rg=!1;var s=function(){e.rg=!0};this.ig.push(s),Promise.all(r).then((function(t){e.rg||(e.sg(s),n.onComplete(t))})).catch((function(t){if(!e.rg){e.sg(s);var i={code:"1",message:t.toString()};n.onError(i)}})),this.fg=!1}},t.prototype.recover=function(t,i,n){t&&(this.fg=!0,this.resolve([t],i,n))},t.prototype.cancel=function(){this.ig.forEach((function(t){t()})),this.ig=[]},t.prototype.destroy=function(){this.cancel()},t.prototype.eg=function(t,i,n,r){var s=this;this.dg(t)&&!this.fg?i(t):this.pg(t,(function(o,a,c,h){var l=o&&(0,e.validate)(o,f);if(!l||!l.valid)return n("Invalid preplay response");var v=o.sid,d=t.metadata,p=d&&(d.type===u.MediaItemType.LIVE_EVENT||d.type===u.MediaItemType.LIVE_CHANNEL);t.source={streams:[{url:o.playURL,live:p}]},t.customConfig=t.customConfig||{},t.customConfig.sid=v,t.customConfig.prefix=o.prefix,o.ads&&o.ads.breaks&&o.ads.breaks.length>0&&(t.adBreaks=s.mg(o.ads.breaks,o.ads.breakOffsets),t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/uplynk"},t.visualSeekData.adBreaks=t.adBreaks),s.rg||r.onApiCallInfo({url:h&&h.url||null,perfObj:c}),i(t)}),(function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var e=t&&t.length?t[0]:null,o=t.length?t[4]:null,u=t.length?t[5]:null;s.rg||r.onApiCallInfo({url:u&&u.url||null,perfObj:o}),n(e)}))},t.prototype.pg=function(t,i,n){var e="/api/v3/preplay/{assetid}.json",r=t.metadata;r&&r.type===u.MediaItemType.LIVE_CHANNEL?e="/api/v3/preplay/channel/{assetid}.json":r&&r.type===u.MediaItemType.LIVE_EVENT&&(e="/api/v3/preplay/event/{assetid}.json");var s=t.customConfig||{},o="https://"+h+e.replace("{assetid}",t.id)+(s.preplay&&s.preplay.qs?"?"+s.preplay.qs:"");this.cg(o,i,n)},t.prototype.cg=function(t,i,n){var e=this,s=r.Loader.ajax(t,{context:this,successHandler:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.sg(s),i.apply(void 0,t)},failureHandler:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e.sg(s),n.apply(void 0,t)},withCookie:!1,responseTypeJson:!0,collectPerfData:!0});this.ig.push(s)},t.prototype.sg=function(t){if(t){var i=this.ig.indexOf(t);i>=0&&this.ig.splice(i,1)}},t.prototype.dg=function(t){return!!(t.source&&t.source.streams&&t.source.streams.length)},t.prototype.mg=function(t,i){var n=this;return t.map((function(t){var e=i&&i.find((function(i){if(i&&i.timeOffset===t.timeOffset)return!0}))||{};return{id:t.breakId||"",duration:t.duration||0,type:s.AdBreakType.LINEAR,offset:n.yg(t.position),adBreakItems:n.gg(t.ads),customInfo:{index:e.index},active:!1,replay:t.replay||0}}))},t.prototype.gg=function(t){return t.map((function(t){return{adBreakItemId:t.creative||"",duration:t.duration||0,type:o.AdBreakItemType.AD,instream:!0,resolvedState:o.ResolvedState.RESOLVED,interactionConfig:{allowSeek:!1,allowSkipOffset:0,chromeless:!1},customInfo:{}}}))},t.prototype.yg=function(t){return"preroll"===t?s.AdBreakOffset.PRE:"postroll"===t?s.AdBreakOffset.POST:null},t.prototype.vg=function(t){return{gdpr:t&&!c.isNullOrUndefined(t.gdprApplies)?t.gdprApplies:"",euconsent:t&&t.gdprConsentData||""}},t}();i.default=l},54354:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(39451),r=n(30954),s=n(41279),o=n(40531),u=n(66342),a=n(44180),c=function(){function t(){this.version="0.5.65",this.mimetype="playlist/simple",this.type=s.PluginType.PLAYLIST}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.create=function(t,i,n){var e=this.wg(t,i),r=document.createElement("div");return r.innerHTML=a.render({items:e,strings:n}),Array.prototype.slice.call(r.children)},t.prototype._g=function(t){return t&&o.isNumber(t)?u.default.formatTime(t):""},t.prototype.Eg=function(t){var i=e.userAgent.chrome>43;return t?t.length>40&&!i?t.substring(0,40)+"...":t:""},t.prototype.Og=function(t,i){return t===r.PLAYLIST_POS.RIGHT&&i&&i.branding&&i.branding.providerName?i.branding.providerName:""},t.prototype.wg=function(t,i){var n=this,e=[];return i.forEach((function(i){i&&i.metadata&&i.metadata.thumbnail&&e.push({id:i.id,title:n.Eg(i.metadata.title),thumbnail:i.metadata.thumbnail,duration:n._g(i.metadata.duration),provider:n.Og(t,i.brandingData)})})),e},t}();i.default=c},44180:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.s(e.f("items",t,i,1),t,i,0,10,583,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("<li class='vp-playlist-item' data-id='"),e.b(e.v(e.f("id",t,i,0))),e.b("' tabindex='0'>"),e.b("\n"+n),e.b("    <img class='vp-playlist-item-image' src='"),e.b(e.v(e.f("thumbnail",t,i,0))),e.b("' alt='' />"),e.b("\n"+n),e.b("    <div class='vp-playlist-border'></div>"),e.b("\n"+n),e.b("    <div class='vp-playlist-item-gradient'>"),e.b("\n"+n),e.b("        <div class='vp-pl-meta'>"),e.b("\n"+n),e.b("            <span class='vp-pl-title'>"),e.b(e.v(e.f("title",t,i,0))),e.b("</span>"),e.b("\n"+n),e.b("            <span class='vp-now-playing'>"),e.b(e.v(e.d("strings.NOW_PLAYING",t,i,0))),e.b("</span>"),e.b("\n"+n),e.s(e.f("provider",t,i,1),t,i,0,413,491,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("                <span class='vp-pl-provider'>"),e.b(e.v(e.f("provider",t,i,0))),e.b("</span>"),e.b("\n"+n)})),t.pop()),e.b("        </div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-pl-dur'>"),e.b(e.v(e.f("duration",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("</li>"),e.b("\n"+n)})),t.pop()),e.fl()},partials:{},subs:{}})},80649:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(41279),r=n(40531),s=n(66342),o=function(){function t(){this.version="0.5.65",this.type=e.PluginType.VISUAL_SEEK,this.mimetype="visualseek/uplynk",this.Sg={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this.Sg={}},t.prototype.canSeek=function(t){return t&&!!this.Sg[t]},t.prototype.update=function(t,i){var n=this.Sg[t]||{};n.assetInfo=i&&i.assetInfo||n.assetInfo,n.adBreaks=i&&i.adBreaks||n.adBreaks,this.Sg[t]=n},t.prototype.getThumbnailData=function(t,i,n){if(!r.isString(t)||!r.isNumber(i))return null;var e=this.Sg[t].assetInfo;if(!(e&&e.thumbs&&e.thumbPrefix&&e.sliceDuration&&e.maxSlice))return null;var s=this.getUrl(t,i,n);return{isAd:"AD"===s,url:s,width:this.getWidth(t,n),height:this.getHeight(t,n)}},t.prototype.getUrl=function(t,i,n){var e=this.Sg[t].assetInfo,r=e.thumbPrefix,o=this.getThumbInfo(t,n),u=i,a=Math.floor(u/e.sliceDuration);a=Math.min(a,e.maxSlice);var c=s.default.decimalToHexString(a,8,"0");return r+o.prefix+c+".jpg"},t.prototype.getWidth=function(t,i){return this.getThumbInfo(t).width},t.prototype.getHeight=function(t,i){return this.getThumbInfo(t).height},t.prototype.getThumbInfo=function(t,i){void 0===i&&(i=128);var n=this.Sg[t].assetInfo.thumbs;return n&&n.length?1===n.length?n[0]:n.find((function(t){return t.width===i}))||n[0]:{width:0,height:0,prefix:""}},t}();i.default=o},30460:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.RendererType=i.Plugin=i.Playlist=i.Player=i.MediaItemInterfaces=i.Events=i.Analytics=void 0;var e=n(6243),r=n(41880),s=n(53072);Object.defineProperty(i,"Events",{enumerable:!0,get:function(){return s.ExternalEvt}});var o=n(42079);i.Playlist=o.default;var u=n(62542),a=n(26120);i.MediaItemInterfaces=a;var c=n(41279);i.Plugin=c;var h=n(64685);Object.defineProperty(i,"RendererType",{enumerable:!0,get:function(){return h.RendererType}});var f=n(41560);i.Player=f.default;n.g.replaceCorePlayerSrc=function(t){var i=t.substring(t.lastIndexOf("/")+1),n=i.substring(0,i.indexOf("."));if(!t.includes("assets.video.yahoo.net"))return"/".concat(i);switch(n){case"vendors~three":return"https://assets.video.yahoo.net/three/THREE_VERSION/"+i;case"vendors~vida-plugin":return"https://assets.video.yahoo.net/vida-plugin/VIDA_PLUGIN_VERSION/"+i;default:return t}},c.AdPluginEvent=u.AdPluginEvent,c.AdPluginPlaybackCapability=u.AdPluginPlaybackCapability,window.YAHOO=window.YAHOO||{},window.YAHOO.CorePlayer=window.YAHOO.CorePlayer||{},window.YAHOO.CorePlayer.Player=f.default,window.YAHOO.CorePlayer.Plugin=c,window.YAHOO.CorePlayer.Event=s.ExternalEvt;var l={CoreAnalytics:r.default,AnalyticsModel:e.default};i.Analytics=l},9987:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(64685),r=n(66342),s=function(){function t(t){this.tn=t}return t.prototype.getCurrentAdBreak=function(){var t=this.tn.getPlayingItem();return r.default.getPlaybackMode(t)===e.PlaybackMode.AD?t:null},t}();i.default=s},84141:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(30954),r=n(35244),s=n(66342),o=function(){function t(t){this.tn=t}return t.prototype.play=function(t,i){void 0===t&&(t=0),this.tn.getPlaybackState()===r.States.INIT&&t>0&&t<this.getDuration()&&(this.tn.startTime=t),this.tn.play(this.Ag(i,e.REQUEST_TYPES.PLAY))},t.prototype.pause=function(t){this.tn.pause(this.Ag(t,e.REQUEST_TYPES.PAUSE))},t.prototype.preload=function(){this.tn.preload()},t.prototype.seek=function(t){this.tn.seek(t)},t.prototype.disableControls=function(){this.tn.disableControls()},t.prototype.enableControls=function(){this.tn.enableControls()},t.prototype.enableCC=function(t){this.tn.enableCC(t)},t.prototype.disableCC=function(){this.tn.disableCC()},t.prototype.isPlayMode=function(){return this.tn.isPlayMode()},t.prototype.getPlaybackState=function(){return this.tn.getPlaybackState()},t.prototype.isLoading=function(){return this.tn.isLoading()},t.prototype.getDuration=function(){return this.tn.duration},t.prototype.getRawDuration=function(){return this.tn.rawDuration},t.prototype.getCurrentTime=function(){return this.tn.currentTime},t.prototype.getRawCurrentTime=function(){return this.tn.rawCurrentTime},t.prototype.getTimeRemaining=function(){return this.getDuration()-this.getCurrentTime()},t.prototype.setFullscreen=function(t){this.tn.fullscreen=t},t.prototype.getFullscreen=function(){return this.tn.fullscreen},t.prototype.setVolume=function(t,i){void 0===i&&(i=!1),t=(t=t<0?0:t)>1?1:t,this.tn.setVolume(t,i)},t.prototype.getVolume=function(){return this.tn.volume},t.prototype.setMute=function(t){this.tn.mute=t},t.prototype.getMute=function(){return this.tn.mute},t.prototype.setLoop=function(t){this.tn.loop=t},t.prototype.setContinuousPlay=function(t){this.tn.continuousPlay=t},t.prototype.resumeContinuousPlay=function(){this.tn.resumeContinuousPlay(this.Ag(null,e.REQUEST_TYPES.CONTINUOUS))},t.prototype.setPlaybackRate=function(t){this.tn.setPlaybackRate(t)},t.prototype.getCurrentDate=function(){return this.tn.currentDate},t.prototype.setAudioLanguage=function(t){throw new Error("setAudioLanguage is unimplemented!")},t.prototype.Ag=function(t,i){(t=t||{}).requestAction=t.requestAction||i;var n=t&&s.default.isValidRequestAction(t.requestAction);return{type:e.REQUEST_TYPES.API,action:n?t.requestAction:null}},t}();i.default=o},53072:function(t,i,n){"use strict";var e,r=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||(e||(e=Array.prototype.slice.call(i,0,r)),e[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.ExternalEvtAPI=i.ExternalEvt=void 0;var s,o=n(21962),u=n(21962);!function(t){t.AD_BREAK_ENDED="adBreakEnded",t.AD_BREAK_ITEM_CURRENT="adBreakItemCurrent",t.AD_PLAYBACK_STARTED="adBreakItemPlaybackStarted",t.AD_PLAYBACK_ENDED="adBreakItemEnded",t.AD_BREAK_ITEM_ERROR="adBreakItemError",t.AD_BREAK_ITEM_SKIPPED="adBreakItemSkipped",t.AD_CLICKED="adBreakItemClicked",t.AD_BREAK_STARTED="adBreakStarted",t.AD_METRICS="adMetrics",t.AIRPLAY_AVAILABILITY_CHANGE="airplayAvailabilityChange",t.AIRPLAY_CONNECTION_STATE_CHANGE="airplayConnectionStateChange",t.BEACON_SEND="beaconSend",t.BITRATE_CHANGE="bitrateChange",t.BUFFERING_START="bufferingStart",t.BUFFERING_END="bufferingEnd",t.CAST_AVAILABILITY_CHANGE="castAvailabilityChange",t.CAST_CONNECTED_STATE_CHANGE="castConnectedStateChange",t.CC_AVAILABLE="mediaItemCcAvailable",t.CC_UI_TOGGLE="ccUiToggle",t.CC_LANGUAGE_CHANGE="ccLanguageChange",t.CC_UPDATE_STYLE="ccUpdateStyle",t.CC_SETTINGS="ccSettings",t.CMS_API_CALLED="cmsApiCalled",t.CONTROLS_AUDIO_CHANGE="controlsAudioChange",t.CTRL_PLAYPAUSE="ctrlPlayPause",t.CTRL_SEEK="ctrlSeek",t.CTRL_VOLUME="ctrlVolume",t.CTRL_SETTINGS="ctrlSettings",t.CTRL_CUSTOM_ELEMENT="ctrlCustomElem",t.CTRL_PLAYREQUEST="ctrlPlayRequest",t.CTRL_REPLAY="ctrlReplay",t.CUEPOINT_STARTED="cuepointStarted",t.CUEPOINT_STOPPED="cuepointStopped",t.CUEPOINT_DETECTED="cuepointDetected",t.DURATION_CHANGE="durationChange",t.KEY_CHANGE_VOLUME="keyChangeVolume",t.LOADING_BEGIN="loadingBegin",t.LOADING_END="loadingEnd",t.MARKERS_RECEIVED="markersReceived",t.MEDIA_ITEM_ADDED="mediaItemAdded",t.MEDIA_ITEM_CURRENT="mediaItemCurrent",t.MEDIA_ITEM_COMPLETE="mediaItemComplete",t.MEDIA_ITEM_ERROR="mediaItemError",t.MEDIA_ITEM_METADATA="mediaItemMetadata",t.MEDIA_ITEM_NEED_SOURCE="mediaItemNeedSource",t.MEDIA_ITEM_REMOVED="mediaItemRemoved",t.METADATA_READY="metadataReady",t.MULTI_AUDIO_AVAILABLE="multiAudioAvailable",t.NIELSEN_REQUIRED="nielsenRequired",t.PLAYBACK_COMPLETE="playbackComplete",t.PLAYBACK_STOPPED="playbackStopped",t.PLAYBACK_ERROR="playbackError",t.PLAYBACK_PAUSE="playbackPause",t.PLAYBACK_BLOCKED="playbackBlocked",t.PLAYBACK_PROGRESS="playbackProgress",t.PLAYBACK_READY="playbackReady",t.PLAYBACK_REQUEST="playbackRequest",t.PLAYBACK_RESUMED="playbackResumed",t.PLAYBACK_SEEK_COMPLETE="playbackSeek",t.PLAYBACK_SEEKING="playbackSeeking",t.PLAYBACK_START="playbackStart",t.PLAYBACK_STALLED="playbackStalled",t.PLAYBACK_TIME_UPDATE="playbackTimeUpdate",t.PLAYBACK_PLAYING="playbackPlaying",t.PLAYBACK_TIMEOUT="playbackTimeout",t.PLAYER_DOCKED_CHANGE="playerDockedChange",t.PLAYER_DIMENSION_CHANGE="playerDimensionChange",t.PLAYER_ERROR="playerError",t.PLAYER_FULLSCREEN_CHANGE="fullscreenChange",t.PLAYER_PIP_MODE_CHANGE="pipModeChange",t.PLAYER_INFO="playerInfo",t.PLAYER_MUTE_CHANGE="muteChange",t.PLAYER_READY="playerReady",t.PLAYER_RENDERED="render",t.PLAYER_VIEWPORT_CHANGE="playerViewportChange",t.PLAYER_VOLUME_CHANGE="volumeChange",t.PLAYER_WARNING="playerWarning",t.PLAYLIST_POSITION_CHANGE="playlistPositionChange",t.PLAYLIST_COMPLETE="playlistComplete",t.RECOVERY_START="recoveryStart",t.RECOVERY_DISABLED="recoveryDisabled",t.RECOVERING="recovering",t.RECOVERED="recovered",t.START_SCREEN_RENDERED="startScreenRenderered",t.UI_INTERACT="uiInteract",t.VIDEO_STARTED="video-started",t.VIDEO_REQUEST="videoRequest",t.SEG_INFO_AVAILABLE="segInfoAvailable",t.SEGMENT_FIRST_BYTE_LOADED="segmentFirstByteLoaded",t.THREE_SIXTY_INTERACT="threeSixtyInteract",t.THREE_SIXTY_PIE_INTERACT="threeSixtyPieInteract",t.TIMED_METADATA_RECEIVED="timedMetadataReceived",t.RENDERER_READY="rendererReady",t.STREAM_SYNCH_COMPLETE="streamsynchComplete",t.STREAM_SYNCH_STRATEGY_APPLIED="streamsynchStrategyApplied",t.DATERANGE_STARTED="daterangestarted",t.DATERANGE_ENDED="daterangeended",t.INVALID_SYNC_OFFSET="invalidSyncOffset",t.VA_METRICS="vaMetrics",t.VA_PASSTHROUGH="vaPassthrough"}(s=i.ExternalEvt||(i.ExternalEvt={}));var a=((e={})[s.AD_BREAK_ENDED]=o.AD_BREAK_ENDED,e[s.AD_CLICKED]=o.AD_CLICKED,e[s.AD_PLAYBACK_STARTED]=o.AD_PLAYBACK_STARTED,e[s.AD_PLAYBACK_ENDED]=o.AD_PLAYBACK_ENDED,e[s.AD_BREAK_STARTED]=o.AD_BREAK_STARTED,e[s.AD_METRICS]=o.AD_METRICS,e[s.CC_LANGUAGE_CHANGE]=o.CCEvent.LANGUAGE_CHANGE,e[s.CC_SETTINGS]=o.CCEvent.SETTINGS,e[s.CC_UI_TOGGLE]=o.CCEvent.UI_TOGGLE,e[s.CC_UPDATE_STYLE]=o.CCEvent.UPDATE_STYLE,e[s.CMS_API_CALLED]=o.API_CALLED,e[s.CONTROLS_AUDIO_CHANGE]=o.CONTROLS_AUDIO_CHANGE,e[s.CTRL_PLAYPAUSE]=o.CTRL_PLAYPAUSE,e[s.CTRL_PLAYREQUEST]=o.CTRL_PLAYREQUEST,e[s.CTRL_REPLAY]=o.CTRL_REPLAY,e[s.CTRL_SEEK]=o.CTRL_SEEK,e[s.CTRL_SETTINGS]=o.CTRL_SETTINGS,e[s.CTRL_VOLUME]=o.CTRL_VOLUME,e[s.MEDIA_ITEM_ADDED]=o.MEDIA_ITEM_ADDED,e[s.MEDIA_ITEM_CURRENT]=o.MEDIA_ITEM_CURRENT,e[s.MEDIA_ITEM_COMPLETE]=o.MEDIA_ITEM_COMPLETE,e[s.MEDIA_ITEM_ERROR]=o.MEDIA_ITEM_ERROR,e[s.MEDIA_ITEM_METADATA]=o.MEDIA_ITEM_METADATA,e[s.MEDIA_ITEM_NEED_SOURCE]=o.MEDIA_ITEM_NEED_SOURCE,e[s.MEDIA_ITEM_REMOVED]=o.MEDIA_ITEM_REMOVED,e[s.METADATA_READY]=o.METADATA_AVAILABLE,e[s.MULTI_AUDIO_AVAILABLE]=o.MULTI_LANGUAGES_AVAILABLE,e[s.PLAYBACK_COMPLETE]=o.PLAYBACK_COMPLETE,e[s.PLAYBACK_STOPPED]=o.PLAYBACK_STOPPED,e[s.PLAYBACK_PAUSE]=u.VideoEvent.PAUSE,e[s.PLAYBACK_BLOCKED]=u.VideoEvent.BLOCKED,e[s.PLAYBACK_PROGRESS]=o.PLAYBACK_PROGRESS,e[s.PLAYBACK_REQUEST]=o.PLAYBACK_REQUEST,e[s.PLAYBACK_RESUMED]=o.PLAYBACK_RESUMED,e[s.PLAYBACK_SEEKING]=u.VideoEvent.SEEKING,e[s.PLAYBACK_START]=o.PLAYBACK_STARTED,e[s.PLAYBACK_STALLED]=o.PLAYBACK_STALLED,e[s.PLAYBACK_TIME_UPDATE]=u.VideoEvent.TIMEUPDATE,e[s.PLAYBACK_PLAYING]=u.VideoEvent.PLAYING,e[s.PLAYER_DIMENSION_CHANGE]=o.PLAYER_DIMENSION_CHANGE,e[s.PLAYER_ERROR]=o.INTERNAL_ERROR,e[s.PLAYER_FULLSCREEN_CHANGE]=o.FULLSCREEN_CHANGE,e[s.PLAYER_PIP_MODE_CHANGE]=o.PIP_MODE_CHANGE,e[s.PLAYER_INFO]=o.INTERNAL_INFO,e[s.PLAYER_WARNING]=o.WARNING,e[s.RECOVERY_START]=o.RECOVERY_START,e[s.RECOVERY_DISABLED]=o.RECOVERY_DISABLED,e[s.RECOVERING]=o.RECOVERING,e[s.RECOVERED]=o.RECOVERED,e[s.SEG_INFO_AVAILABLE]=o.SEG_INFO_AVAILABLE,e[s.SEGMENT_FIRST_BYTE_LOADED]=o.SEGMENT_FIRST_BYTE_LOADED,e[s.START_SCREEN_RENDERED]=o.START_SCREEN_RENDERED,e[s.THREE_SIXTY_INTERACT]=o.THREE_SIXTY_INTERACT,e[s.THREE_SIXTY_PIE_INTERACT]=o.THREE_SIXTY_PIE_INTERACT,e[s.TIMED_METADATA_RECEIVED]=o.TIMED_METADATA_RECEIVED,e[s.VIDEO_REQUEST]=o.VIDEO_REQUEST,e[s.DATERANGE_STARTED]=o.DATERANGE_STARTED,e[s.DATERANGE_ENDED]=o.DATERANGE_ENDED,e[s.INVALID_SYNC_OFFSET]=o.INVALID_SYNC_OFFSET,e[s.VA_METRICS]=o.VA_METRICS,e[s.VA_PASSTHROUGH]=o.VA_PASSTHROUGH,e[o.OPSS_VISIBILITY_CHANGED]=o.OPSS_VISIBILITY_CHANGED,e[o.PLAYLIST_BOTTOM_HEIGHT_CHANGE]=o.PLAYLIST_BOTTOM_HEIGHT_CHANGE,e),c=function(){function t(t,i,n){this.nm=t,this.tn=i,this.zb=n,Object.keys(s).forEach((function(t){var i=s[t];a[i]||(a[i]=i)}))}return t.prototype.enablePublish=function(){var t=this;Object.keys(a).forEach((function(i){var n=a[i];t.zb.addEventListener(n,(function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var s=Array.prototype.slice.call(n,0),o=t.tn.getEventsDto();s.push(o),setTimeout((function(){var n;(n=t.nm).publish.apply(n,r([i],s,!1))}))}),t)}))},t.prototype.getAllExternalEvtNames=function(){return Object.keys(a)},t}();i.ExternalEvtAPI=c},80726:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(t){this.tn=t,this.Tg=this.tn.getPlaylist()}return t.prototype.getMediaItems=function(){return this.Tg.getItems()},t.prototype.removeAllMediaItems=function(){var t=this.Tg.size;this.Tg.removeItems(0,t)},t.prototype.removeMediaItems=function(t){var i=this;t.forEach((function(t){var n=i.Tg.getItemPosition(t.id);i.Tg.removeItems(n,1)}))},t.prototype.insertMediaItems=function(t,i){if(Array.isArray(t)){for(var n=this.Mg(t),e=i,r=0,s=t;r<s.length;r++){var o=s[r];this.Tg.addItemAtIndex(o,e),e++}n&&this.tn.fetchMetadata()}},t.prototype.appendMediaItems=function(t){if(Array.isArray(t)){var i=this.Mg(t);this.Tg.addItems(t),i&&this.tn.fetchMetadata()}},t.prototype.getCurrentMediaItem=function(){return this.Tg.getCurrentItem()},t.prototype.getMediaItemMarkers=function(t){var i=this.tn.mediaStore.getById(t);return i&&i.getMarkers()},t.prototype.setCurrentMediaItem=function(t){if(this.tn.mediaStore.get(t.id)){var i=this.Tg.getItemPosition(t.id);this.Tg.setPosition(i)}else this.Tg.addItems([t]),this.tn.fetchMetadata(),this.Tg.setPosition(this.Tg.size-1)},t.prototype.setMediaItemTitle=function(t,i){var n=this.Tg.getMediaItemById(t);n&&(n.title=i)},t.prototype.Mg=function(t){var i=this.tn.mediaStore;return t.filter((function(t){var n=t.id;return null===i.get(n)})).length>0},t}();i.default=n},42079:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(30954),r=function(){function t(t){this.tn=t}return t.prototype.getSize=function(){return this.jg().length},t.prototype.getPosition=function(){var t=this.tn.getPlaylist();return t?t.position:-1},t.prototype.sendPrefetchInfo=function(t){return this.tn.sendPrefetchInfo(t)},t.prototype.setPosition=function(t){this.Ng(t,"setPosition");var i=this.tn.autoplay,n=i?{type:e.REQUEST_TYPES.API,action:e.REQUEST_TYPES.AUTOPLAY}:null;this.tn.setPlaylistPosition(t,i,n)},t.prototype.setPositionById=function(t){var i=this.Ig(t,"setPositionById"),n=this.tn.autoplay,r=n?{type:e.REQUEST_TYPES.API,action:e.REQUEST_TYPES.AUTOPLAY}:null;this.tn.setPlaylistPosition(i,n,r)},t.prototype.addItem=function(t){this.addItems([t])},t.prototype.addItems=function(t,i){if(Array.isArray(t)){var n=this.tn.getPlaylist();i&&n.removeItems(0,n.size),n.addItems(t);var e=t.map((function(t){var i=t.id;return n.getMediaItemById(i)}));e.length>0&&this.tn.fetchMetadata(e)}},t.prototype.setItems=function(t){this.addItems(t,!0)},t.prototype.getItems=function(){return this.kg()},t.prototype.getItemId=function(t){return this.Ng(t,"getItemId"),this.kg()[t]},t.prototype.getCurrentItemId=function(){var t=this.tn.getCurrentMediaItem();return t?t.id:null},t.prototype.getCurrentItem=function(){var t=this.tn.getCurrentMediaItem();return t?this.getItemById(t.id):null},t.prototype.getCurrentItemTitle=function(){var t=this.getCurrentItem();return t?t.title:null},t.prototype.getCurrentItemLiveStatus=function(){var t=this.getCurrentItem();return t?t.isLive:null},t.prototype.getCurrentItemDescription=function(){var t=this.getCurrentItem();return t?t.description:null},t.prototype.getCurrentItemProviderName=function(){var t=this.getCurrentItem();return t&&t.provider?t.provider.name:null},t.prototype.getCurrentItemMarkers=function(){var t=this.tn.getCurrentMediaItem();return t&&t.videoMarkers||null},t.prototype.getItem=function(t){return this.Ng(t,"getItem"),this.getItemById(this.kg()[t])},t.prototype.getItemById=function(t){var i=this,n=this.tn.mediaStore;if(!n)return null;var e=n.getById(t);return e?{id:e.id,mimetype:e.mimetype,title:e.title,description:e.description,duration:e.duration,publishTime:e.publishTime,provider:e.provider,credits:e.credits,shareUrl:e.shareUrl,setShareUrl:function(t){i.shareUrl=t,e.shareUrl=t},thumbnail:e.thumbnail,visualSeek:e.visualSeek,isLive:e.isLive(),closedCaptions:e.closedCaptions,streams:e.streams,videoMarkers:e.videoMarkers,viewCount:e.viewCount,languages:e.getMultiLanguages(),license:e.license}:null},t.prototype.getIndexForId=function(t){return this.kg().indexOf(t)},t.prototype.removeItem=function(t){this.Ng(t,"removeItem"),this.tn.removePlaylistItems(t,1)},t.prototype.removeItems=function(t,i){var n=this.jg();if(!(t in n)||!(t+i-1 in n))throw new Error("removeItems called with invalid position/count");this.tn.removePlaylistItems(t,i)},t.prototype.removeItemById=function(t){var i=this.Ig(t,"removeItemById");this.tn.removePlaylistItems(i,1)},t.prototype.removeItemsById=function(t){var i=this;t.forEach((function(t){i.removeItemById(t)}))},t.prototype.clear=function(){this.tn.removePlaylistItems(0,this.jg().length)},t.prototype.jg=function(){return this.tn.getPlaylistItems()},t.prototype.kg=function(){return this.tn.getPlaylistItemIds()},t.prototype.Ng=function(t,i){if(!(t in this.jg()))throw new Error(i+" called with invalid position")},t.prototype.Ig=function(t,i){var n=this.kg().indexOf(t);if(-1===n)throw new Error(i+" called with id not in playlist");return n},t}();i.default=r},9539:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.CCParserFactory=i.VTTParser=i.SRTParser=void 0;var s=n(23454),o=n(91958),u=n(39451),a=Math.floor((Math.pow(2,33)-1)/90),c=/\r\n|\r|\n/,h=" --\x3e ",f=function(){function t(){}return t.parse=function(t,i,n){return void 0===i&&(i=0),void 0===n&&(n=!1),null},t}();i.default=f;var l=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.parse=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var e=[],r=t.split(c);try{if(r.length<=1)throw new Error("Invalid SRT document: no data found");var s=void 0,u=void 0,a=void 0,f=void 0,l=0;for(s=0;s<r.length;s++){var v={},d=f=+(u=r[s]);if(""!==u)if(!isNaN(d)&&l<d)if(-1!==(u=r[++s]).indexOf(h)){if(a=u.split(h),v.begin=a[0].trim(),v.end=a[1].trim(),(u=r[++s])&&""!==u){v.text=u,r[s+1]&&""!==r[s+1]&&(v.text+="<br />"+r[s+1],s++);var p=v.begin,b=void 0;for(v.end&&(b=v.end),e.push({begin:o.default.formatTime(p),end:o.default.formatTime(b),text:v.text});""!==r[s]&&s<r.length;)s++;l=f}}else for(;""!==r[s]&&s<r.length;)s++;else for(;""!==r[s]&&s<r.length;)s++}}catch(t){}return e},i}(f);i.SRTParser=l;var v=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.parse=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);for(var e,r,s,h,f=t.split(c),l=f.length,v=/((?:\d{2,}:)?\d{2}:\d{2}\.\d{2,3})\s+.+\s+((?:\d{2,}:)?\d{2}:\d{2}\.\d{2,3})/,d=[],p=0,b=0,m=0;m<l;m++)if(v.test(f[m])){if(b>0){for(s=f[r=m-1]&&f[r].trim(),h=f[r-1]&&f[r-1].trim(),""!==s&&""===h&&r--,e=b;e<=r;e++)d[p].text+=f[e]+(e+1<=r?"<br/>":"");p++}var y=f[m].match(v);if(!y)continue;!n||this.Rg||u.userAgent.tizen||(this.Rg=1e3*o.default.formatTime(y[1]));var g=1e3*o.default.formatTime(y[1]),w=1e3*o.default.formatTime(y[2]);n&&!u.userAgent.tizen?(g-=this.Rg,w-=this.Rg):(g=(g+i)%a,w=(w+i)%a),d[p]={begin:g/1e3,end:w/1e3,text:""},b=m+1;for(var _=[],E=f[m].split(/\s+/).filter((function(t){return t.length>0})),O=3;O<E.length;O++)_.push(E[O]);_.length>0&&(d[p].settings=_)}if(b>0&&b<l)for(e=b;e<l;e++)d[p].text+=f[e]+(e+2<l?"<br/>":"");return d},i}(f);i.VTTParser=v;var d=function(){function t(){}return t.getParser=function(t){switch(t){case s.CaptionsFormats.srt:return l;case s.CaptionsFormats.vtt:return v;default:return null}},t}();i.CCParserFactory=d},91958:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CC_LOCAL_STORAGE_KEY=void 0;var e=n(53872);i.CC_LOCAL_STORAGE_KEY="yvpCC";var r={id:"Bahasa Indonesia",ms:"Bahasa Melayu",cs:"čeština",da:"dansk",de:"Deutsch",et:"eesti",en:"English",es:"español",fil:"Filipino",fr:"français",hr:"hrvatski",it:"italiano",lv:"latviešu",lt:"lietuvių",hu:"magyar",nl:"Nederlands",nb:"norsk bokmål",pl:"polski",pt:"português",ro:"română",sk:"slovenčina",sl:"slovenščina",fi:"suomi",sv:"svenska",vi:"Tiếng Việt",tr:"Türkçe",el:"Ελληνικά",bg:"български",ru:"русский","sr-cyrl":"Српски",uk:"українська",he:"‎עברית‏‎",ar:"‎العربية‏‎",mr:"मराठी",hi:"हिन्दी",bn:"বাংলা",gu:"ગુજરાતી",ta:"தமிழ்",te:"తెలుగు",kn:"ಕನ್ನಡ",ml:"മലയാളം",th:"ไทย",ur:"اردو زبان",ko:"한국어","zh-hans":"简体中文","zh-hant":"繁體中文",ja:"日本人"},s=function(){function t(){}return t.formatTime=function(t){var i,n,e=0;if(t=t.replace(",","."))for(var r=(n=(i=t.split(":")).length)-1;r>=0;r--)e+=i[n-1-r]*Math.pow(60,r);return e},t.getLanguageForCode=function(t){var i="en",n=t.toLowerCase().split("-");return 1===n.length&&(i=n[0]),n.length>1&&(n.pop(),i=n.join("-")),r[i]},t.saveCCSettingsToLocalStorage=function(t){var n=e.LocalStorage.get(i.CC_LOCAL_STORAGE_KEY)||{};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);e.LocalStorage.put(i.CC_LOCAL_STORAGE_KEY,n)},t.getCCSettingsFromLocalStorage=function(t){var n;return(null===(n=e.LocalStorage.get(i.CC_LOCAL_STORAGE_KEY))||void 0===n?void 0:n[t])||null},t}();i.default=s},23454:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.CCController=i.CCControllerEvent=i.CaptionsFormats=void 0;var s,o,u=n(44422),a=n(39451),c=n(21962),h=n(64685),f=n(53872),l=n(40531),v=n(9539),d=n(91958),p=n(13792),b="en-us";!function(t){t.srt="srt",t.vtt="vtt"}(s=i.CaptionsFormats||(i.CaptionsFormats={})),function(t){t.CC_AVAILABILITY_UPDATE="ccAvailabilityUpdate",t.CC_LIST_FETCHED="ccListFetched",t.CC_LIST_FETCHED_MOBILE="ccListFetchedMobile",t.CC_SHOW_EXTERNAL="ccShowExternal"}(o=i.CCControllerEvent||(i.CCControllerEvent={}));var m=function(t){function i(i,n,e){var r=t.call(this,"CC Controller")||this;return r.Lg={},r.Cg=null,r.Dg=null,r.Pg=[],r.xg=null,r.Ug=!1,r.Fg=!1,r.Bg=[],r.zb=i,r.vt=n,r.userPreferences=r.zg(),r.zb.addEventListener(c.VTT_SEGMENT_LOADED,r.Vg,r),r.Gg(),r.Hg=new p.default(e,r.vt,r.Lg),r}return r(i,t),i.prototype.onMediaItemLoaded=function(t){if(t&&(this.Dg&&this.Dg.id!==t.id&&delete this.Lg[this.Dg.id],this.Dg=t,this.Yg=t.isLive(),!this.Lg[t.id])){var i={ccAvailable:!1,vttPresent:!1,parsedCaptions:null};this.Lg[t.id]=i,this.qg(t)?(i.vttPresent=!0,this.Wg(!0)):(i.ccAvailable=!0,i.vttPresent=!1,this.xg=null,this.publish(o.CC_AVAILABILITY_UPDATE,!0),this.Qg(t.closedCaptions))}},i.prototype.destroy=function(){this.Lg=null},i.prototype.toggleFromUI=function(t,i){t?this.enable(null,i):this.disable(i)},i.prototype.onAdPlaybackStarted=function(t){var i=this;a.userAgent.tv||window.setTimeout((function(){i.Cg=t}),0)},i.prototype.onPlaybackProgress=function(t,i,n){var e,r=(null===(e=this.Dg)||void 0===e?void 0:e.id)||null;r&&!this.Cg&&(this.Yg?this.Zg(r,i):this.$g(r,i,n))},i.prototype.onAdSubtitleTrackAdded=function(t){var i=this;this.Lg[t.itemId]={ccAvailable:!1,vttPresent:!1,parsedCaptions:null},this.Pg.push(t.track),this.publish(o.CC_AVAILABILITY_UPDATE,!0),this.publish(o.CC_LIST_FETCHED,{langList:[t.track.lang],selectedLang:t.track.lang}),this.Xg(t.track,(function(n){i.xg=i.Kg(t.track.lang),i.xg.ccAvailable=!0,i.Hg.updateCCVisibility(!0),i.Lg[t.itemId]=i.xg,i.Jg(),i.tw({show:!0,lang:i.xg.lang},!1),i.enable(t.track.lang)}))},i.prototype.onSubtitleTrackReceived=function(t){if(t&&t.itemId){var i=t.itemId,n=this.Lg[i];n||(n={ccAvailable:!1,vttPresent:!1,parsedCaptions:null,tracks:[]},this.Lg[i]=n);var e=t.track;e&&(e.mode="hidden",n.ccAvailable=!0,n.tracks||(n.tracks=[]),n.tracks.unshift(e));var r=this.vt.getItemId();r&&r===i&&this.Jg()}},i.prototype.onAdPlaybackProgress=function(t){var i=t.currentTime,n=t.duration;if(this.Cg){var e=this.Cg.adId||this.Cg.id||null;e&&this.$g(e,i,n)}},i.prototype.onAdBreakEnded=function(){this.iw()||this.Wg(!0),this.nw()},i.prototype.nw=function(){this.Fg=!1,this.Bg=[],this.Cg=null,this.iw()&&this.Jg()},i.prototype.onMediaItemPlaybackStarted=function(){this.nw()},i.prototype.onMediaItemPlaybackEnded=function(){this.disable()},i.prototype.onLanguageChange=function(t){this.enable(t,!0)},i.prototype.updateCCStyle=function(){var t;null===(t=this.Hg)||void 0===t||t.updateCCStyle()},i.prototype.enableExternalRenderer=function(t){var i,n;this.Fg=!0,this.Bg=t.langList,this.Hg.updateCCVisibility(!0),this.Hg.updateClosedCaptionButtonState(!0),this.publish(o.CC_AVAILABILITY_UPDATE,!0),this.publish(o.CC_LIST_FETCHED,{langList:this.Bg,selectedLang:(null===(i=this.xg)||void 0===i?void 0:i.lang)||this.userPreferences.lang}),this.enable((null===(n=this.xg)||void 0===n?void 0:n.lang)||this.userPreferences.lang,!0),this.publish(o.CC_SHOW_EXTERNAL,{preferences:this.userPreferences})},i.prototype.enable=function(t,i){var n=this;void 0===t&&(t=null),void 0===i&&(i=!1);var e=this.vt.getItemId(),r=e?this.Lg[e]:null;if(this.Fg&&this.publish(o.CC_SHOW_EXTERNAL,{lang:t}),!r||!r.ccAvailable)return!1;var s=function(){var e=r.tracks||[];return!(!e||e.length<1)&&(n.ew=n.rw(r,t),!!n.ew&&(e.forEach((function(t){t===n.ew?t.mode="showing":t.mode="hidden"})),n.tw({show:!0,lang:n.ew.language},i),!0))};if(r.vttPresent||a.userAgent.ios){if(this.Hg.updateCCVisibility(!0),this.Hg.updateCCLiveView(this.Yg),r&&r.hasNonNativeCC)return this.tw({show:!0,lang:b},i),!0;var u=s();return u||this.publish(o.CC_AVAILABILITY_UPDATE,!1),u}return this.xg=this.sw(t),!(!a.userAgent.desktop&&!a.userAgent.android)&&(this.Xg(this.xg,(function(t){var e,o;t?(r.parsedCaptions=null===(e=n.xg)||void 0===e?void 0:e.parsedCC,n.Hg.updateCCVisibility(!0),n.tw({show:!0,lang:null===(o=n.xg)||void 0===o?void 0:o.lang},i)):s()})),!0)},i.prototype.disable=function(t){void 0===t&&(t=!1);var i=this.ow(),n=i?this.Lg[i]:null;return this.Fg&&this.publish(o.CC_SHOW_EXTERNAL,!1),this.tw({show:!1},t),this.Yg&&!this.vt.playbackState.ad||!n||n.vttPresent||(n.parsedCaptions=null),n&&n.tracks&&n.tracks.forEach((function(t){t.mode="hidden"})),this.Hg.updateCCVisibility(!1),!0},i.prototype.ccPositionFloat=function(t){this.Hg.floatCCPosition(t)},i.prototype.adjustCCSizeToScreen=function(t){this.Hg.adjustCCSizeToScreen(t)},i.prototype.sw=function(t){var i=this.Kg(t);return i||(i=this.Kg(this.userPreferences.lang)),!i&&this.Pg.length&&(i=this.Pg[0]),i},i.prototype.zg=function(){var t=this.vt.ccUserPreferences||{},i=d.default.getCCSettingsFromLocalStorage("ccSettings");if(!i)return t;for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&!l.isNullOrUndefined(i[n])&&(t[n]=i[n]);return t},i.prototype.Gg=function(){this.vt.ccOnMute&&this.vt.mute&&(this.Ug=!0)},i.prototype.uw=function(){var t,i=[b];return(null===(t=this.Pg)||void 0===t?void 0:t.length)&&(i=this.Pg.map((function(t){return t.lang}))),i},i.prototype.Jg=function(){var t,i,n=this.Bg.length>0?this.Bg:this.uw(),e=this.ow(),r=e?this.Lg[e]:null,s=(null===(t=this.xg)||void 0===t?void 0:t.lang)||this.userPreferences.lang;if(r&&!r.hasNonNativeCC){var u=r&&r.tracks||null;u&&u.length&&(n=u.map((function(t){return t.language})),s=(null===(i=this.ew)||void 0===i?void 0:i.language)||this.userPreferences.lang)}this.publish(o.CC_LIST_FETCHED,{langList:n,selectedLang:s}),this.Hg.updateClosedCaptionButtonState(this.aw()),this.publish(o.CC_AVAILABILITY_UPDATE,!0),this.aw()&&this.enable()},i.prototype.aw=function(){return this.userPreferences.show||this.Ug},i.prototype.ow=function(){var t,i,n=this.vt.playbackState;return n&&n.playingItem&&n.playingItem.adBreakItemId?t=n.playingItem.adBreakItemId:(i=this.vt.playlist.getCurrentItem())&&(t=i&&i.id),t},i.prototype.Kg=function(t){for(var i,n,e=null==t?void 0:t.toLowerCase().replace("_","-"),r=0,s=this.Pg;r<s.length;r++){var o=s[r];if(t&&(null===(i=o.lang)||void 0===i?void 0:i.toLowerCase())===e)return o;o.lang!==b&&"en"!==o.lang||(n=o)}return n},i.prototype.Xg=function(t,i){var n=this;if(t){var e=this.vt.getItemId(),r=e?this.Lg[e]:null,o=t.format||s.vtt;if(r&&t){var u={url:t.url};if(a.userAgent.ie&&a.userAgent.ie<10&&(u.cors=!0),t.parsedCC)return i&&i(!0);f.Loader.ajax(t.url,{context:this,failureHandler:function(t){n.Wg(),i&&i(!1)},successHandler:function(e){var s;r.parsedCaptions=t.parsedCC=null===(s=v.CCParserFactory.getParser(o))||void 0===s?void 0:s.parse(e||""),r.parsedCaptions&&(r.hasNonNativeCC=!0,n.Dg&&n.Dg.setCCAvailability(!0),i&&i(!0)),i&&i(!1)}})}else i&&i(!1)}else i&&i(!1)},i.prototype.Wg=function(t){if(void 0===t&&(t=!1),this.publish(o.CC_AVAILABILITY_UPDATE,!1),this.xg=null,this.ew=null,this.disable(),t){var i=this.vt.getItemId(),n=i?this.Lg[i]:null;n&&(n.ccAvailable=!1),this.Pg=[]}},i.prototype.tw=function(t,i){t||(t={});var n=t&&t.show,e=t&&t.lang;this.zb.publish(c.CCEvent.TOGGLE,n),i&&(l.isBoolean(n)&&(this.userPreferences.show=n,this.Ug=n),e&&l.isString(e)&&(this.userPreferences.lang=e),d.default.saveCCSettingsToLocalStorage({ccSettings:this.userPreferences}))},i.prototype.Zg=function(t,i){var n=this;if(t){var e=this.Lg[t];if(e&&e.hasNonNativeCC&&this.cw(e),e&&e.parsedCaptions&&e.parsedCaptions.length){for(var r=0;r<e.parsedCaptions.length&&e.parsedCaptions[r].end<i;)r++;if(r>0&&(setTimeout((function(){e.parsedCaptions.splice(0,r)}),100),r>=e.parsedCaptions.length))return;var s=!1;if(e.parsedCaptions[r]&&(s=i>=e.parsedCaptions[r].begin&&i<=e.parsedCaptions[r].end),s){var o=e.parsedCaptions[r].text||"";this.Hg.updateCCContent(o,e.parsedCaptions[r].settings)}else this.hw||(this.hw=setTimeout((function(){n.Hg.updateCCContent(""),clearTimeout(n.hw),n.hw=null}),1e3))}else this.Hg.updateCCContent("")}},i.prototype.$g=function(t,i,n){if(t){var e=this.Lg[t];if(e&&e.hasNonNativeCC&&this.cw(e),e&&e.ccAvailable&&e.parsedCaptions&&e.parsedCaptions.length){for(var r=i/n,s=e.parsedCaptions.length,o=Math.floor(r*s);o>0&&o<s&&i<e.parsedCaptions[o].begin;)o--;for(;o<s&&i>e.parsedCaptions[o].end;)o++;var u=o>=0&&o<s;if(u=u&&e.parsedCaptions[o].begin<=i&&i<=e.parsedCaptions[o].end&&!!e.parsedCaptions[o].text){var a=e.parsedCaptions[o].text||"";this.Hg.updateCCContent(a,e.parsedCaptions[o].settings)}else this.Hg.updateCCContent("")}else this.Hg.updateCCContent("")}},i.prototype.cw=function(t){(t&&t.tracks||[]).forEach((function(t){t.mode="hidden"}))},i.prototype.Vg=function(t,i){if(t){var n=t.itemId;if(n){var e=this.Lg[n];if(e||(e={ccAvailable:!1,vttPresent:!1,parsedCaptions:null},this.Lg[n]=e),e.hasNonNativeCC=!0,!e.parsedCaptions||!e.ccAvailable){e.parsedCaptions=e.parsedCaptions||[],e.vttPresent=!0,e.ccAvailable=!0;var r=this.vt.playlist.getMediaItemById(n);r&&r.setCCAvailability(!0);var s=this.vt.getItemId();s&&s===n&&this.Jg()}if(e.vttPresent){var o=t.adjustedTime?t.adjustedTime:0,u=v.VTTParser.parse(t.data||"",o,i);e.parsedCaptions=this.fw(e.parsedCaptions,u)}}}},i.prototype.fw=function(t,i){if(t&&i){if(!t.length)return i;for(var n=0;n<i.length;){for(var e=t.length-1;e>=0;){if(t[e].begin===i[n].begin){t.splice(e,1,i[n]);break}if(!(t[e].begin>i[n].begin)){t.splice(e+1,0,i[n]);break}e--}-1===e&&t[0].begin>i[n].begin&&t.unshift(i[n]),n++}return t}},i.prototype.qg=function(t){if(!t)return!1;if(this.Yg||!this.Yg&&t.rendererType===h.RendererType.HTML5_HLS){var i=t.getSubtitleStreams();if(i&&i.length>0)return!0}return!t.closedCaptions||!t.closedCaptions.length},i.prototype.Qg=function(t){var i,n=t.filter((function(t){return"text/vtt"===t.content_type}));if(this.Pg=n,this.Pg.length){var e=this.userPreferences.lang,r=a.userAgent.mobile?o.CC_LIST_FETCHED_MOBILE:o.CC_LIST_FETCHED,s=this.Bg.length>0?this.Bg:a.userAgent.mobile?this.Pg:this.uw();this.publish(r,{langList:s,selectedLang:e}),a.userAgent.mobile||null===(i=this.Dg)||void 0===i||i.setCCAvailability(!0),this.aw()?this.enable(e):this.disable()}else this.Wg(!0)},i.prototype.rw=function(t,i){var n,e=t&&t.tracks||[],r=function(t){e.some((function(i){var e=i.language;return!(!e||!t||e.toLowerCase()!==t.toLowerCase())&&(n=i,!0)}))};return r(i=i||this.userPreferences.lang||b),!n&&this.userPreferences.lang&&r(this.userPreferences.lang),!n&&e[0]&&(n=e[0]),n},i.prototype.iw=function(){var t=this.Dg?this.Lg[this.Dg.id]:null;return t&&t.ccAvailable||!1},i}(u.default);i.CCController=m},76618:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MoreItemsLoadCommand=i.SourceMetadataLoadCommand=i.MetadataLoadCommand=i.CmdName=i.CmdEvent=i.Command=void 0;var e=n(33493);i.Command=e.default;var r=n(78619);i.MetadataLoadCommand=r.default;var s=n(24033);i.MoreItemsLoadCommand=s.default;var o,u,a=n(57196);i.SourceMetadataLoadCommand=a.default,function(t){t.CMD_SOURCE_METADATA_LOAD="SourceMetadataLoad",t.CMD_METADATA_LOAD="MetadataLoad",t.CMD_MORE_ITEMS_LOAD="MoreItemsLoad"}(o||(o={})),i.CmdName=o,function(t){t.CMD_COMPLETE="Complete",t.CMD_PROGRESS="Progress",t.CMD_ERROR="Error",t.CMD_INFO="Info"}(u||(u={})),i.CmdEvent=u},34802:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.create=void 0;var e=n(76618);i.create=function(t,i,n){var r=e[t+"Command"];return r?new r(i,n):null}},94138:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(66342),r=n(76618),s=n(34802),o=function(){function t(t){for(var i in this.lw=t,this.ft={},this.K={},r.CmdName)if(Object.prototype.hasOwnProperty.call(r.CmdName,i)){var n=r.CmdName[i];this.ft[n]={}}}return t.prototype.destroy=function(){this.removeAllCommands(),this.ft={}},t.prototype.executeCommand=function(t,i,n){var e=this.createCommand(t,i,n);return e&&e.execute(),e},t.prototype.createCommand=function(t,i,n){var o;try{(o=s.create(t,i,n))&&(o.pluginManager=this.lw)}catch(t){o=null}if(!o)return null;for(var u in o.key=e.default.guid(),r.CmdEvent)if(Object.prototype.hasOwnProperty.call(r.CmdEvent,u)){var a=r.CmdEvent[u],c="on"+t+a;n[c]&&(this.K[a+t+o.key]=o.addEventListener(a,n[c],n))}return this.ft[t][o.key]=o,o},t.prototype.removeCommand=function(t){if(t){var i=this.ft[t.cmdName];if(i[t.key]===t){if(delete i[t.key],t.client)for(var n in r.CmdEvent)if(Object.prototype.hasOwnProperty.call(r.CmdEvent,n)){var e=r.CmdEvent[n],s="on"+t.cmdName+e;t.client[s]&&(t.removeEventListener(e,this.K[e+t.cmdName+t.key]),delete this.K[e+t.cmdName+t.key])}t.destroy()}}},t.prototype.removeRelatedCommands=function(t){if(Object.prototype.hasOwnProperty.call(this.ft,t)){var i=this.ft[t];for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var e=i[n];e&&this.removeCommand(e)}}},t.prototype.removeAllCommands=function(){for(var t in this.ft)Object.prototype.hasOwnProperty.call(this.ft,t)&&this.removeRelatedCommands(t)},t.prototype.getCommand=function(t){var i=this.ft[t];if(!i)return null;var n=Object.keys(i);return n.length<1?null:i[n[n.length-1]]},t}();i.default=o},33493:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s=function(t){function i(i,n){var e=t.call(this,"Command")||this;return e.cmdName="Command",e.data=i,e.client=n,e}return r(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this),this.data=null},Object.defineProperty(i.prototype,"pluginManager",{set:function(t){this.lw=t},enumerable:!1,configurable:!0}),i}(n(44422).default);i.default=s},78619:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0});var u=n(76389),a=n(26120),c=n(41279),h=n(33493),f=n(76618),l=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.cmdName=f.CmdName.CMD_METADATA_LOAD,e.Gt=!1,e.zn=!1,e}return r(i,t),i.prototype.destroy=function(){this.zn=!0,this.cancel(),t.prototype.destroy.call(this)},i.prototype.execute=function(){return s(this,void 0,void 0,(function(){var t,i,n,e,r,s,h,l,v,d,p,b,m,y;return o(this,(function(o){switch(o.label){case 0:return this.Gt||this.zn?[2]:(t=this.data,i=t.autoplay,n=t.failoverCount,e=t.privacyConsent,r=t.mimetype,s=t.mediaItemDataArr,h=t.rendererCapabilities,l=t.rendererTypes,v=t.sessionId,d=t.thumbnailDimensions,p=t.tryCount,[4,this.lw.getPlugin(c.PluginType.METADATA,r)]);case 1:return b=o.sent(),m={autoplay:i,failoverCount:n,privacyConsent:e,rendererCapabilities:h,rendererTypes:l,sessionId:v,thumbnailDimensions:d,tryCount:p},b?(this.dw=b,this.Gt=!0,this.publish(f.CmdEvent.CMD_PROGRESS,this,s,a.ItemState.FETCHING),b.resolve(s,m,this),[2]):(y="No metadata plugin found for mimetype = "+r,this.publish(f.CmdEvent.CMD_ERROR,this,new u.default(u.E_PLAYER,u.PLAYER_CODES.E_NO_PLUGIN_FOUND,y)),[2])}}))}))},i.prototype.cancel=function(){this.dw&&this.Gt&&(this.dw.cancel(),this.Gt=!1)},i.prototype.onProgress=function(t){this.Gt&&!this.zn&&this.publish(f.CmdEvent.CMD_PROGRESS,this,t)},i.prototype.onComplete=function(t){this.Gt&&!this.zn&&(this.Gt=!1,this.publish(f.CmdEvent.CMD_COMPLETE,this,t))},i.prototype.onError=function(t){this.Gt&&!this.zn&&(this.Gt=!1,t.code&&t.code.length&&this.publish(f.CmdEvent.CMD_ERROR,this,new u.default(t.category||u.E_PLAYER,t.code||u.PLAYER_CODES.E_CMS_XHR_RESPONSE_ABSENT,t.message)))},i.prototype.onApiCallInfo=function(t){t&&this.publish(f.CmdEvent.CMD_INFO,this,t)},i}(h.default);i.default=l},24033:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0});var u=n(76389),a=n(41279),c=n(33493),h=n(76618),f=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.cmdName=h.CmdName.CMD_MORE_ITEMS_LOAD,e.pw=null,e.Gt=!1,e.zn=!1,e}return r(i,t),i.prototype.destroy=function(){this.zn=!0,this.cancel(),t.prototype.destroy.call(this)},i.prototype.execute=function(){return s(this,void 0,void 0,(function(){var t,i,n,e,r,s,u;return o(this,(function(o){switch(o.label){case 0:return this.Gt||this.zn?[2]:(t=this.data,i=t.cb,n=t.mimetype,e=t.reason,r=t.start,[4,this.lw.getPlugin(a.PluginType.MORE_ITEMS,n)]);case 1:return s=o.sent(),this.pw=i,u={mimetype:n,reason:e,start:r},s?(this.dw=s,this.Gt=!0,s.resolve(u,this),[2]):[2]}}))}))},i.prototype.cancel=function(){this.dw&&this.Gt&&(this.dw.cancel(),this.Gt=!1)},i.prototype.onComplete=function(t){this.Gt&&!this.zn&&(this.Gt=!1,this.publish(h.CmdEvent.CMD_COMPLETE,this,t))},i.prototype.onError=function(t){this.Gt&&!this.zn&&(this.Gt=!1,t&&t.code&&t.code.length&&this.publish(h.CmdEvent.CMD_ERROR,this,new u.default(t.category||u.E_PLAYER,t.code,t.message,"more items load failed")))},i.prototype.onApiCallInfo=function(t){t&&this.publish(h.CmdEvent.CMD_INFO,this,t)},i.prototype.onPromisesResolved=function(t){this.pw&&this.pw(t)},i}(c.default);i.default=f},57196:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0});var u=n(76389),a=n(26120),c=n(41279),h=n(33493),f=n(76618),l=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.cmdName=f.CmdName.CMD_SOURCE_METADATA_LOAD,e.Gt=!1,e.zn=!1,e}return r(i,t),i.prototype.destroy=function(){this.zn=!0,this.cancel(),t.prototype.destroy.call(this)},i.prototype.execute=function(){return s(this,void 0,void 0,(function(){var t,i,n,e,r,s,h,l,v,d,p,b,m,y,g,w;return o(this,(function(o){switch(o.label){case 0:return this.Gt||this.zn?[2]:(t=this.data,i=t.autoplay,n=t.failoverCount,e=t.privacyConsent,r=t.mimetype,s=t.mediaItemDataArr,h=t.rendererCapabilities,l=t.rendererTypes,v=t.sessionId,d=t.recovering,p=t.thumbnailDimensions,b=t.tryCount,m=t.playlistPosition,[4,this.lw.getPlugin(c.PluginType.SOURCE_METADATA,r)]);case 1:return y=o.sent(),g={autoplay:i,failoverCount:n,privacyConsent:e,rendererCapabilities:h,rendererTypes:l,sessionId:v,thumbnailDimensions:p,tryCount:b,playlistPosition:m},y?(this.dw=y,this.Gt=!0,this.publish(f.CmdEvent.CMD_PROGRESS,this,s,a.SourceState.FETCHING),!0===d?y.recover(s[0],g,this):y.resolve(s,g,this),[2]):(w="No source metadata plugin found for mimetype = "+r,this.publish(f.CmdEvent.CMD_ERROR,this,new u.default(u.E_PLAYER,u.PLAYER_CODES.E_NO_PLUGIN_FOUND,w)),[2])}}))}))},i.prototype.cancel=function(){this.dw&&this.Gt&&(this.dw.cancel(),this.Gt=!1)},i.prototype.onProgress=function(t){this.Gt&&!this.zn&&this.publish(f.CmdEvent.CMD_PROGRESS,this,t)},i.prototype.onComplete=function(t){this.Gt&&!this.zn&&(this.Gt=!1,this.publish(f.CmdEvent.CMD_COMPLETE,this,t))},i.prototype.onError=function(t){this.Gt&&!this.zn&&(this.Gt=!1,t.code&&t.code.length&&this.publish(f.CmdEvent.CMD_ERROR,this,this.data.mediaItemDataArr,new u.default(t.category||u.E_PLAYER,t.code,t.message)))},i.prototype.onApiCallInfo=function(t){t&&this.publish(f.CmdEvent.CMD_INFO,this,t)},i}(h.default);i.default=l},30954:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.REBUFFERING_REASON=i.VIDEO_MAIN_ELEMENT_CLASS=i.HideBreakpointDimensions=i.PLAYLIST_POS=i.ID3_MATCH_PATTERN=i.PLAYBACK_RATES=i.LocalStorageKey=i.REQUEST_TYPES=i.CHROMECAST_RECEIVER_ID=void 0,i.CHROMECAST_RECEIVER_ID="84BB6CBA",function(t){t.CLICK="click",t.AUTOPLAY="autoplay",t.API="api",t.CONTINUOUS="continuous",t.HOVER="hover",t.PLAY="play",t.PAUSE="pause",t.SCROLL="scroll",t.SWIPE="swipe",t.BACKGROUND="background"}(i.REQUEST_TYPES||(i.REQUEST_TYPES={})),function(t){t.VOLUME="yvpVolume"}(i.LocalStorageKey||(i.LocalStorageKey={})),i.PLAYBACK_RATES=[.5,.75,1,1.25,1.5,1.75,2],i.ID3_MATCH_PATTERN={JSON:/\{([\S\s]*)\}/,NIELSEN:/\bwww.nielsen.com.*(\/\d+){3}/},function(t){t.BOTTOM="bottom",t.RIGHT="right",t.HIDDEN="hidden"}(i.PLAYLIST_POS||(i.PLAYLIST_POS={})),function(t){t[t.WIDTH=604]="WIDTH",t[t.HEIGHT=340]="HEIGHT"}(i.HideBreakpointDimensions||(i.HideBreakpointDimensions={})),i.VIDEO_MAIN_ELEMENT_CLASS="vp-main",function(t){t.LONG_PAUSE="long_pause"}(i.REBUFFERING_REASON||(i.REBUFFERING_REASON={}))},20460:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.AdPlaybackController=i.AdPlaybackControllerEvent=void 0;var u,a=n(44422),c=n(53872),h=n(21962),f=n(62542),l=n(23277),v=n(74839),d=n(28103),p=n(41279),b=n(40531),m=n(66342);!function(t){t.AD_BREAK_PLAY="adBreakItemPlay",t.AD_BREAK_STARTED="adBreakStarted",t.AD_BREAK_ENDED="adBreakEnded",t.AD_PLAYBACK_STARTED="adBreakItemStarted",t.AD_PLAYBACK_ENDED="adBreakItemEnded",t.AD_CLIENT_COMPLETED="adClientCompleted",t.AD_CLIENT_TIMEOUT="adClientTimeout",t.CREATE_OVERLAY_CONTAINER="createOverlayContainer",t.AD_METRICS="adMetrics",t.AD_DIAGNOSTICS="adDiagnostics"}(u=i.AdPlaybackControllerEvent||(i.AdPlaybackControllerEvent={}));var y=function(t){function i(i,n){var e=t.call(this,"AdPlaybackController")||this;e.vt=i,e.bw=n,e.mw={},e.yw={},e.gw={},e.ww={};var r=e.vt.config.ads.timeout,s=r.load+r.start;return e.Ew={},e.Ow=null,e.Sw=new c.Timer(1e3*s,e.Aw,e,1),e}return r(i,t),i.prototype.prepareAdsForItem=function(t){return s(this,void 0,void 0,(function(){var i,n,e,r,s,u,a;return o(this,(function(o){switch(o.label){case 0:return i=t.refPlaybackId,t.adConfig&&t.adConfig.mimetype?[4,this.bw.getPlugin(p.PluginType.AD,t.adConfig.mimetype)]:(this.Tw(i,null),[2]);case 1:return n=o.sent(),e=this.Tw(i,n),n&&e?(b.isAdPreloadAdPlugin(n)&&(r=this.vt.playlist.position,s=t.midrolls||[],u=s.map((function(t){return{offset:m.default.secondsToISOTime(t.offset),duration:t.duration}})),a={playlistPosition:r,midrollOffsets:u},this.Ew[i]={item:t,beginTS:Date.now()},this.Mw({evt:"ad_fetch"},t),n.parse(i,t.adConfig.value,a)),[2]):[2]}}))}))},i.prototype.startTracking=function(t){var i=this,n=t.refPlaybackId;if(n!==this.jw&&(this.Nw(),this.Iw(t),this.mw[n]={},this.yw[n]={},this.kw=null,this.Rw=!1,this.Lw=null,this.Cw=null,this.Dw.adBreaks.length>0)){this.Sw.reset(),this.Dw.adBreaks.forEach((function(n){i.Pw(t,n)}));for(var e=0;e<=this.Dw.adBreaks.length;e++){var r=this.Dw.adBreaks[e];if(r&&m.default.isMidrollAdBreak(r)){this.Ow=r;break}}}},Object.defineProperty(i.prototype,"nextMidrollCandidate",{get:function(){return this.Ow},set:function(t){this.Ow=t},enumerable:!1,configurable:!0}),i.prototype.resolveAdBreak=function(t,i){var n=t.refPlaybackId,e=this.mw[n]&&this.mw[n][i],r=this.gw[n];b.isAdPreloadAdPlugin(r)&&e&&(r.preload(n,new v.default(e.id,i)),this.handleAdBreakResolved(t,e))},i.prototype.onMediaItemPlaybackEnded=function(t){return s(this,void 0,void 0,(function(){var i;return o(this,(function(n){switch(n.label){case 0:return t&&t.adConfig&&t.adConfig.mimetype?[4,this.bw.getPlugin(p.PluginType.AD,t.adConfig.mimetype)]:[3,2];case 1:i=n.sent(),b.isAdPreloadAdPlugin(i)&&i.stop(),n.label=2;case 2:return[2]}}))}))},i.prototype.playClientAdBreaks=function(t,i,n){var e=this;if(this.Dw===t){var r=Object.keys(this.Ew).map((function(t){return e.Ew[t].item})).some((function(t){return t===e.Dw}));if(this.xw(i,t),!r){var s,o,a,c=t.refPlaybackId,h=this.mw[c];if(h&&i===d.AdBreakOffset.OVERLAY&&!isNaN(n)?s=(o=Object.keys(h).find((function(t){return+t<n})))&&h[o]:h&&i===d.AdBreakOffset.MID&&!isNaN(n)&&this.Ow?s=(a=this.Ow.offset)&&h[a]:h&&(s=h[i],this.vt.playbackState.currentMediaType=i),!s&&i!==d.AdBreakOffset.OVERLAY&&i!==d.AdBreakOffset.MID)return this.Nw(),void this.publish(u.AD_CLIENT_COMPLETED,i,t);this.Uw(t,o||a||i)}}},i.prototype.pauseClientAdStartTimer=function(){this.Sw&&this.Sw.stop()},i.prototype.resumeClientAdStartTimer=function(){var t=this.Fw(),i=this.Sw;t&&i&&!i.running&&i.start()},i.prototype.handleAdBreakResolved=function(t,i){t&&i&&this.Bw(t,[i])&&this.Uw(t,i.offset)},i.prototype.handleAdPlaybackStarted=function(t){this.zw(),this.publish(u.AD_PLAYBACK_STARTED,t)},i.prototype.handleAdBreakEnded=function(t,i){this.Vw(t,!1,i)},i.prototype.handleAdPlaybackEnded=function(t){this.Gw(t,!1)},i.prototype.handleAdBreakError=function(t){this.Vw(t,!0)},i.prototype.stopCurrentPlayback=function(t){this.publish(u.AD_BREAK_ENDED,t||null)},i.prototype.destroy=function(){var i=this;t.prototype.destroy.call(this),this.Sw.destroy(),this.Sw=null,Object.keys(this.ww).forEach((function(t){i.ww[t]()})),this.Ew=null},i.prototype.Gw=function(t,i){this.publish(u.AD_PLAYBACK_ENDED,t)},i.prototype.Vw=function(t,i,n){void 0===n&&(n=!0),this.kw=null;var e=t.mediaItem;!i&&n||!this.vt.loop||t.offset!==d.AdBreakOffset.ADONLY||(this.vt.loop=!1,this.vt.showStartScreen=!0),!i&&this.vt.loop&&t.offset===d.AdBreakOffset.ADONLY||this.publish(u.AD_BREAK_ENDED,t),i||(this.Rw=!1,this.Uw(e,t.offset))},i.prototype.Pw=function(t,i){var n=i.offset,e=t.refPlaybackId;this.mw[e]=this.mw[e]||{},this.mw[e][n]=i},i.prototype.Nw=function(){if(this.zw(),this.Dw){var t=this.jw;this.Ew&&this.Ew[t]&&delete this.Ew[t]}this.Rw=!1},i.prototype.Uw=function(t,i){if(!this.Rw){var n,e=t.refPlaybackId,r=this.mw[e]&&this.mw[e][i]||{},s=this.yw[e]&&this.yw[e][i]||{};if(s.replay++,i===d.AdBreakOffset.ADONLY&&this.vt.loop?n=s.state?s:r:r.id!==s.id&&(n=r),!n||0===Object.keys(n).length)return this.Nw(),void this.publish(u.AD_CLIENT_COMPLETED,i,this.Dw);delete this.mw[e][i],this.Rw=!0,this.yw[e]=this.yw[e]||{},this.yw[e][i]=n,m.default.isMidrollAdBreak(n)||this.publish(u.AD_BREAK_STARTED,n),this.Mw({evt:"ad_play",adReplay:s.replay},t),this.kw=n,this.publish(u.AD_BREAK_PLAY,n)}},i.prototype.xw=function(t,i){this.zw(),this.Lw=t,this.Cw=i,this.Sw.start()},i.prototype.Aw=function(){var t=this.Lw,i=this.Cw;this.kw&&this.Vw(this.kw,!0),this.Nw(),this.publish(u.AD_CLIENT_TIMEOUT,t,i)},i.prototype.zw=function(){this.Sw.reset(),this.Lw=null,this.Cw=null},i.prototype.Bw=function(t,i){var n=this;return!(t!==this.Dw||t!==this.Cw||!this.Sw)&&i.some((function(t){return t.offset===n.Lw}))},i.prototype.Hw=function(t,i){return!(t!==this.Dw||t!==this.Cw||!this.Sw)},i.prototype.Fw=function(){return!!this.Lw},i.prototype.Yw=function(t,i){for(var n,e=this,r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];switch(i){case f.AdPluginEvent.AD_SUBTITLES_FOUND:this.publish(h.AD_SUBTITLE_TRACK_ADDED,r[0]);break;case f.AdPluginEvent.AD_SUBTITLES_NOT_FOUND:this.publish(h.AD_SUBTITLE_NOT_FOUND);break;case f.AdPluginEvent.AD_PARSE_RESULT:var o=r[0],a=this.Ew[o.refId];if(delete this.Ew[o.refId],a&&(n=a.item,this.Mw({evt:"ad_fetched",latency:Date.now()-a.beginTS},n)),!a||!n||!o.refId)return;var c=n.addAdBreaks(o.breaks);c.forEach((function(t){e.Pw(n,t)})),n.adBreaks.some((function(t){return t.type===d.AdBreakType.NON_LINEAR}))&&b.isAdOverlayRendererAdPlugin(t)&&this.publish(u.CREATE_OVERLAY_CONTAINER,(function(i){i&&t.setNonlinearAdContainer(i)})),this.Hw(n,c)?this.playClientAdBreaks(n,this.Lw):this.resolveAdBreak(n,d.AdBreakOffset.PRE);break;case f.AdPluginEvent.DIAGNOSTICS:var l=r[0];this.publish(u.AD_DIAGNOSTICS,l);break;case f.AdPluginEvent.METRICS:var v=r&&r[0],p=v&&v.evt;if("string"==typeof p){var m="object"==typeof v?Object.assign({},v):{evt:p};this.Mw(m,this.Dw)}}},i.prototype.Tw=function(t,i){return!this.gw[t]&&(this.gw[t]=i,i&&(this.ww[i.mimetype]||(this.ww[i.mimetype]=(0,l.listenEventDispatcherEvts)(i,Object.keys(f.AdPluginEvent).map((function(t){return f.AdPluginEvent[t]})),this.Yw.bind(this)))),!0)},i.prototype.Iw=function(t){this.Dw=t,this.jw=t.refPlaybackId},i.prototype.Mw=function(t,i){void 0===t&&(t={}),i&&(t.prefetch=i.adConfigPrefetched?1:0),this.publish(u.AD_METRICS,t)},i}(a.default);i.AdPlaybackController=y},67993:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__assign||function(){return s=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},s.apply(this,arguments)},o=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},u=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.AnnotationController=i.AnnotationControllerEvent=i.VAPluginEvent=void 0;var a,c,h=n(44422),f=n(41279),l=n(40531),v=n(23277);!function(t){t.METRICS="va-plugin-metrics",t.PASSTHROUGH="va-plugin-passthrough",t.PLAYER_API="va-player-api"}(a=i.VAPluginEvent||(i.VAPluginEvent={})),function(t){t.VA_METRICS="vaMetrics",t.VA_PASSTHROUGH="vaPassthrough",t.VA_PLAYER_API="vaPlayerApi"}(c=i.AnnotationControllerEvent||(i.AnnotationControllerEvent={}));var d=function(t){function i(i,n){var e=t.call(this,"AnnotationController")||this;return e.vt=i,e.bw=n,e.qw={},e.Qw={},e}return r(i,t),i.prototype.prepare=function(t){return o(this,void 0,void 0,(function(){var i;return u(this,(function(n){switch(n.label){case 0:return t.annotationConfig&&t.annotationConfig.mimetype?[4,this.bw.getPlugin(f.PluginType.VA,t.annotationConfig.mimetype)]:[2];case 1:return(i=n.sent())&&l.isVAPlugin(i)?(this.Zw(t.refPlaybackId,i),[2]):[2]}}))}))},i.prototype.load=function(t){return o(this,void 0,void 0,(function(){var i,n,e;return u(this,(function(r){switch(r.label){case 0:return i=t.refPlaybackId,t.annotationConfig&&t.annotationConfig.mimetype?(n={playerId:this.vt.guid,vs:t.videoSession,videoId:t.id,videoMetadata:t,playerMuted:this.vt.mute},(e=this.$w(i))?[3,2]:[4,this.prepare(t)]):[2];case 1:r.sent(),e=this.$w(i),r.label=2;case 2:return e&&(this.bw.showPlugin(t.annotationConfig.mimetype,f.ContainerType.VA),e.load(i,t.annotationConfig.value,n)),[2]}}))}))},i.prototype.onMediaItemPlaybackEnded=function(t){t.annotationConfig&&t.annotationConfig.mimetype&&this.bw.hidePlugin(t.annotationConfig.mimetype,f.ContainerType.VA)},i.prototype.onMediaItemPlaybackStarted=function(t){t.annotationConfig&&t.annotationConfig.mimetype&&this.bw.showPlugin(t.annotationConfig.mimetype,f.ContainerType.VA)},i.prototype.destroy=function(){this.qw={},Object.values(this.Qw).forEach((function(t){t&&t()}))},i.prototype.Zw=function(t,i){return!this.qw[t]&&(this.qw[t]=i,i&&(this.Qw[i.mimetype]||(this.Qw[i.mimetype]=(0,v.listenEventDispatcherEvts)(i,Object.keys(a).map((function(t){return a[t]})),this.Xw.bind(this)))),!0)},i.prototype.$w=function(t){return this.qw[t]||null},i.prototype.Xw=function(t,i){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var r=n&&n[0],o="object"==typeof r?s({},r):{};switch(i){case a.METRICS:var u=r&&r.evt;"string"==typeof u&&this.Kw("object"==typeof r?s({},r):{evt:u});break;case a.PASSTHROUGH:this.Jw(o);break;case a.PLAYER_API:this.t_(o)}},i.prototype.Kw=function(t){void 0===t&&(t={}),this.publish(c.VA_METRICS,t)},i.prototype.Jw=function(t){void 0===t&&(t={}),this.publish(c.VA_PASSTHROUGH,t)},i.prototype.t_=function(t){void 0===t&&(t={}),this.publish(c.VA_PLAYER_API,t)},i}(h.default);i.AnnotationController=d},71372:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0});var s=n(12645),o=n(39451),u=n(53072),a=n(23454),c=n(94138),h=n(30954),f=n(76389),l=n(21962),v=n(51960),d=n(50440),p=n(26120),b=n(32341),m=n(22334),y=n(74536),g=n(41279),w=n(64685),_=n(35244),E=n(53872),O=n(62912),S=n(31204),A=n(40531),T=n(66342),M=n(29241),j=n(28103),N=n(94046),I=n(58903),k=n(17549),R=n(30083),L=n(95109),C=n(4797),D=n(10655),P=n(59939),x=n(52559),U=n(67343),F=n(40830),B=n(1032),z=n(54354),V=n(80649),G=n(67993),H=n(16132),Y=function(){function t(t,i,n,e,r){this.i_=[],this.n_=[],this.e_=null,this.Rc=t,this.r_=r,this.zb=e,this.zb.publish(l.PROFILE_START,[l.METRICS.VP_CONSTRUCTOR]),this.vt=new m.default(t,i,n),this.s_=this.vt.mediaStore,this.o_(),this.u_=[],this.lw=new y.default,this.Ye=new c.default(this.lw),this.a_=new k.default(this.zb),this.c_(),this.h_(),this.f_=new I.PlaybackController(this.vt,this.zb,this.lw,this.l_),this.v_(),this.d_=new G.AnnotationController(this.vt,this.lw),this.p_(),A.isFunction(H.default)&&(this.e_=new H.default,this.b_()),this.vt.autoplay&&this.zb.publish(l.PROFILE_START,l.METRICS.INIT_TO_START),this.Tm(),this.zb.publish(l.PROFILE_END,l.METRICS.VP_CONSTRUCTOR),this.zb.publish(l.PROFILE_START,l.METRICS.INIT_RENDER_GAP),this.m_(),this.y_()}return t.prototype.initialize=function(){this.g_||(this.g_=new N.MetadataController(this.Ye,this.vt),this.w_(),this.fetchMetadata())},t.prototype.fetchMetadata=function(t){var i;null===(i=this.g_)||void 0===i||i.loadMetadata(t)},t.prototype.destroy=function(){var t,i,n,e,r,s;null===(t=this.__)||void 0===t||t.destroy(),this.E_(),null===(i=this.zb)||void 0===i||i.destroy(),null===(n=this.O_)||void 0===n||n.destroy(),null===(e=this.vt)||void 0===e||e.destroy(),null===(r=this.g_)||void 0===r||r.destroy(),null===(s=this.f_)||void 0===s||s.destroy(),this.S_(),this.lw.destroy(),this.Ye.destroy()},t.prototype.render=function(t){this.zb.publish(l.PROFILE_END,l.METRICS.INIT_RENDER_GAP),this.zb.publish(l.PROFILE_START,l.METRICS.CREATE_RENDERER);var i=A.isString(t)?document.querySelector(t):t;if(null===i&&this.zb.publish(l.ERROR,new f.default(f.E_PLAYER,f.PLAYER_CODES.E_INVALID_CONFIG,"Invalid DOM node/CSS selector specified. Cannot render player")),this.__=new M.default(i,this.vt,this.zb,this.r_,this.lw,this.f_,this.e_),this.A_(),this.vt.playerRootElement=i,this.__.render(),this.T_=this.__.getPlaylistController(),A.isFunction(a.CCController)&&(this.O_=new a.CCController(this.zb,this.vt,this.__),this.M_()),this.vt.firstCriticalError)this._n(this.vt.firstCriticalError);else{if(this.j_=!1,this.__.syncViewState(),this.vt.autoplay){var n={type:h.REQUEST_TYPES.AUTOPLAY,action:h.REQUEST_TYPES.AUTOPLAY};this.play(n)}else{var e=this.getCurrentMediaItem();this.a_.setPreloadItem(e),e.isLive()||this.a_.startPreload()}this.zb.publish(u.ExternalEvt.PLAYER_RENDERED),this.zb.publish(l.PROFILE_END,l.METRICS.CREATE_RENDERER),this.__.setTheme(this.Rc.cssTheme),this.lw.publishToPlugin(g.PluginPlayerEvent.PLAYER_RENDERED,{rootElem:i})}},Object.defineProperty(t.prototype,"model",{get:function(){return this.vt},enumerable:!1,configurable:!0}),t.prototype.registerPlugin=function(t){this.N_(t,!1)},t.prototype.registerLazyPlugin=function(t){this.N_(t,!0)},t.prototype.N_=function(t,i){var n=this.vt.config,e=n.pluginConfigs&&n.pluginConfigs[t.type]&&n.pluginConfigs[t.type][t.mimetype];switch(t.type){case g.PluginType.AD:var r=this.vt.privacyConsent;e=Object.assign({autoplay:n.autoplay,playerGuid:this.vt.guid,adCallTimeout:n.ads.timeout.load,playbackTimeout:n.ads.timeout.start,privacy:{isGdprApplies:r.gdprApplies,gdprConsentData:r.gdprConsentData,uspData:r.uspString,gpp:r.gpp,gppSid:r.gppSid}},e),"adplugin/martini"===t.mimetype&&(e=Object.assign({featureFlag:{disableAdCallRetry:!1},playerState:{fullscreen:!1,volume:this.volume,mute:this.mute}},e)),e.playerName=e.playerName||"CorePlayer";break;case g.PluginType.MORE_ITEMS:this.I_=t.mimetype}i?this.lw.registerLazy(t,e):this.lw.register(t,e)},Object.defineProperty(t.prototype,"rootElement",{get:function(){return this.vt.rendered?this.__.getRootElement():null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoElement",{get:function(){return this.vt.rendered?this.__.getVideoElement():null},enumerable:!1,configurable:!0}),t.prototype.supportSendBeacon=function(){return!(o.userAgent.ie||o.userAgent.safari||o.userAgent.ios)},t.prototype.play=function(t){void 0===t&&(t=null),this.f_.startPlayback(t),this.zb.publish(l.CTRL_PLAYPAUSE,"play")},t.prototype.pause=function(t){!this.vt.isPaused()&&this.k_.shouldPlay&&(this.f_.pause(t),this.zb.publish(l.CTRL_PLAYPAUSE,"pause"))},t.prototype.seek=function(t){this.f_.seek(t)},t.prototype.recover=function(){var t;null===(t=this.l_)||void 0===t||t.recover()},t.prototype.preload=function(){this.a_.startPreload()},t.prototype.stopPreload=function(){this.a_.stopPreload()},t.prototype.disableControls=function(){this.vt.rendered&&this.__.disableControls()},t.prototype.enableControls=function(){this.vt.rendered&&this.__.enableControls()},t.prototype.enableCC=function(t){var i;null===(i=this.O_)||void 0===i||i.enable(t)},t.prototype.disableCC=function(){var t;null===(t=this.O_)||void 0===t||t.disable()},t.prototype.isPlayMode=function(){var t=this.vt.getState();return(t===_.default.VIDEO||t===_.default.WAITING)&&!this.vt.isPaused()},t.prototype.isLoading=function(){return this.k_.videoLoading()},t.prototype.setCustomError=function(t,i,n,e){if(/^player-/.test(t)||(t="player-"+t),-1===[l.ERROR,l.WARNING,l.INFO].indexOf(t))throw new Error("invalid error level");this.zb.publish(t,new f.default(i,n,e))},Object.defineProperty(t.prototype,"fullscreen",{get:function(){return!!this.vt.rendered&&this.__.getFullscreen()},set:function(t){this.vt.rendered&&this.__.setFullscreen(t)},enumerable:!1,configurable:!0}),t.prototype.isAd=function(){return this.model.isAd()},t.prototype.setVolume=function(t,i){void 0===i&&(i=!1),i||(t>0&&!this.vt.muteMode&&(this.vt.mute=!1),E.LocalStorage.put(h.LocalStorageKey.VOLUME,{volume:t,mute:this.vt.mute})),this.vt.rendered&&this.f_.setVolume(t,i),this.__.updateVolumeUI(t,null,i)},Object.defineProperty(t.prototype,"volume",{get:function(){return this.vt.volume},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.vt.rendered?this.f_.getCurrentTime():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawCurrentTime",{get:function(){return this.vt.rendered?this.f_.getRawCurrentTime():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mute",{get:function(){return this.vt.mute},set:function(t){this.vt.muteMode&&this.vt.mute||(E.LocalStorage.put(h.LocalStorageKey.VOLUME,{volume:this.vt.volume,mute:t}),this.vt.rendered&&this.f_.setMute(t),this.__.updateVolumeUI(this.vt.volume,t))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{set:function(t){this.vt.loop=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){return this.vt.continuousPlay},set:function(t){this.vt.continuousPlay=t},enumerable:!1,configurable:!0}),t.prototype.resumeContinuousPlay=function(t){this.f_.resumeContinuousPlay(t)},Object.defineProperty(t.prototype,"autoplay",{get:function(){return this.vt.autoplay},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mediaStore",{get:function(){return this.vt.mediaStore},enumerable:!1,configurable:!0}),t.prototype.getPlaybackState=function(){return this.vt.getState()},t.prototype.getCurrentMediaItem=function(){return this.Tg.getCurrentItem()},t.prototype.getPlaylistItems=function(){return this.Tg.getItems().map((function(t){return{id:t.id,mimetype:t.mimetype}}))},t.prototype.getPlaylistItemIds=function(){return this.Tg.getItemIds()},t.prototype.getPlaylist=function(){return this.Tg},Object.defineProperty(t.prototype,"rendered",{get:function(){return this.vt.rendered},enumerable:!1,configurable:!0}),t.prototype.updateCurrentItemTitle=function(t){this.__.updateCurrentItemTitle(t)},t.prototype.addCustomControlElement=function(t){return this.__.addCustomControlElement(t)},t.prototype.setPlaylistPosition=function(t,i,n){this.f_.setPlaylistPosition(t,i,n)},t.prototype.sendPrefetchInfo=function(t){var i={url:t.url,source:t.source,latency:t.latency||"na",http_code:t.http_code||"na",resp_len:t.resp_len||"na",instrument:t.instrument||"na",perfInfo:t.perfInfo||"na",perfStack:t.perfStack||"na"};return!(!i.source||!i.url)&&(this.zb.publish(l.API_CALLED,i),!0)},t.prototype.removePlaylistItems=function(t,i){this.Tg.removeItems(t,i)},t.prototype.error=function(t){t&&this.zb.publish(l.ERROR,new f.default(f.E_PLAYER,t.code,t.msg))},Object.defineProperty(t.prototype,"docked",{get:function(){return!!this.vt.rendered&&this.__.isDocked()},enumerable:!1,configurable:!0}),t.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.vt.rendered&&this.__.updateDockingConfig(t,i,n,e,r,s)},t.prototype.dockVideoPlayer=function(){this.vt.rendered&&this.__.dockVideoPlayer()},t.prototype.undockVideoPlayer=function(t){this.vt.rendered&&this.__.undockVideoPlayer(t)},t.prototype.initNewPlayback=function(){var t=this.getCurrentMediaItem();this.f_.initNewPlayback(t)},Object.defineProperty(t.prototype,"startTime",{set:function(t){this.vt.startTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentDate",{get:function(){return this.vt.rendered?this.f_.getCurrentDate():0},enumerable:!1,configurable:!0}),t.prototype.getEventsDto=function(){return this.vt.getEventsDto()},t.prototype.getPlayingItem=function(){return this.f_.getPlayingItem()},t.prototype.getSyncOffset=function(){return this.f_.getSyncOffset()},t.prototype.startSync=function(){this.f_.startSync()},t.prototype.setPlaybackRate=function(t){var i,n;null===(i=this.f_)||void 0===i||i.setPlaybackRate(t),null===(n=this.__)||void 0===n||n.onSetPlaybackRate(t)},t.prototype.stopSync=function(){this.f_.stopSync()},Object.defineProperty(t.prototype,"duration",{get:function(){return this.f_.getDuration()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawDuration",{get:function(){return this.f_.getRawDuration()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Tg",{get:function(){return this.vt.playlist},enumerable:!1,configurable:!0}),t.prototype.Tm=function(){var t=this;this.zb.addEventListener(l.ERROR,this._n,this),this.zb.addEventListener(l.INFO,this._n,this),this.zb.addEventListener(l.WARNING,this.My,this),this.zb.addEventListener(l.RELATED_ITEM_CLICK,this.R_,this),this.zb.addEventListener(l.TOGGLE_PLAY_PAUSE,this.L_,this),this.zb.addEventListener(l.CONTROLS_SEEK_START,this.C_,this),this.zb.addEventListener(l.CONTROLS_SEEK_END,this.D_,this),this.zb.addEventListener(l.CONTROLS_SEEKING,this.P_,this),this.zb.addEventListener(l.PLAYBACK_REQUEST,this.x_,this),this.zb.addEventListener(l.PLAYER_DIMENSION_CHANGE,this.U_,this),this.zb.addEventListener(u.ExternalEvt.BITRATE_CHANGE,this.wy,this),this.zb.addEventListener(u.ExternalEvt.PLAYBACK_TIMEOUT,this.F_,this),this.zb.addEventListener(l.KEYDOWN,this.B_,this),this.zb.addEventListener(l.ER_READY,this.z_,this),this.zb.addEventListener(l.CONTENT_LOAD_FINISHED,this.V_,this),this.zb.addEventListener(l.LIVE_RELOAD_MEDIA,this.G_,this),this.zb.addEventListener(l.STREAM_SYNCH_STRATEGY_APPLIED,this.H_,this),this.zb.addEventListener(l.STREAM_SYNCH_COMPLETE,this.Ry,this),this.vt.waitingForUserTap&&this.zb.once(l.TOUCH_TO_PLAY_RESTRICTION_REMOVED,(function(){t.vt.waitingForUserTap=!1}),this),this.zb.addEventListener(l.PLAYBACK_INFO,(function(i){var n=t.getCurrentMediaItem();n&&(n.videoCodec=i.vcodec,n.audioCodec=i.acodec)}),this)},t.prototype.m_=function(){var t=this;this.i_.push(new B.default),this.i_.push(new F.default),this.i_.push(new V.default),this.i_.push(new L.default),this.i_.push(new D.default),this.i_.push(new P.default),this.i_.push(new s.MartiniPlugin),this.i_.push(new z.default),this.vt.isLocal()&&(this.i_.push(new C.default),this.i_.push(new x.default),this.i_.push(new U.default)),this.i_.forEach((function(i){t.registerPlugin(i)})),this.lw.defaultPlugins=this.i_},t.prototype.y_=function(){var t=this;this.n_.push({mimetype:g.PluginMimeType.VIDA_WEB,type:g.PluginType.VA}),this.n_.forEach((function(i){t.registerLazyPlugin(i)}))},t.prototype.S_=function(){this.i_.forEach((function(t){t.destroy()})),this.i_=[]},t.prototype.h_=function(){this.l_||(this.l_=new R.default(this.vt),this.Y_())},t.prototype.q_=function(){this.W_||(this.zb.publish(l.PROFILE_END,[l.METRICS.INIT_TO_START,l.METRICS.CLICK_TO_START]),this.zb.publish(u.ExternalEvt.VIDEO_STARTED),this.W_=!0),this.Q_()},t.prototype.p_=function(){var t=this,i=this.d_;i.on(G.AnnotationControllerEvent.VA_METRICS,(function(i){t.zb.publish(l.VA_METRICS,i)}),this),i.on(G.AnnotationControllerEvent.VA_PASSTHROUGH,(function(i){t.zb.publish(l.VA_PASSTHROUGH,i)}),this),i.on(G.AnnotationControllerEvent.VA_PLAYER_API,(function(i){switch(i.action){case"playpause":t.vt.getState()===_.default.INIT?t.play():t.L_();break;case"mute":t.mute=!t.mute}}),this)},t.prototype.L_=function(){var t;return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return(null===(t=this.vt.castState)||void 0===t?void 0:t.connected)||this.vt.getState()!==_.default.VIDEO?[2]:this.vt.isPaused()?[4,this.f_.startPlayback({type:h.REQUEST_TYPES.CLICK,action:h.REQUEST_TYPES.PLAY})]:[3,2];case 1:return i.sent(),this.zb.publish(l.CTRL_PLAYPAUSE,"play"),[3,3];case 2:this.f_.pause({type:h.REQUEST_TYPES.CLICK,action:h.REQUEST_TYPES.PAUSE}),this.zb.publish(l.CTRL_PLAYPAUSE,"pause"),i.label=3;case 3:return[2]}}))}))},t.prototype.B_=function(t){var i=t.keyCode,n="key-"+i;32!==i&&38!==i&&40!==i||(t.preventDefault(),this.zb.publish(u.ExternalEvt.UI_INTERACT,{srcElement:n}))},t.prototype.x_=function(){this.Z_(),this.X_()},t.prototype.Z_=function(){var t=this,i=this.getCurrentMediaItem();!this.bd&&i&&i.state!==p.ItemState.ERROR&&(this.bd=window.setTimeout((function(){t.f_.stopAdPlayback(i),t.zb.publish(u.ExternalEvt.PLAYBACK_TIMEOUT,new f.default(f.E_WARNING,f.WARNING_CODES.E_PLAYBACK_TIMEOUT,"No playback after 10 seconds of requesting to play on player"))}),1e4))},t.prototype.X_=function(){var t=this.getCurrentMediaItem();(null==t?void 0:t.rendererType)===w.RendererType.HTML5_HLS&&this.zb.publish(l.CONVIVA_READY_FOR_SESSION_CREATION,t)},t.prototype.Q_=function(){this.bd&&clearTimeout(this.bd)},t.prototype.U_=function(t){var i,n;this.vt.uiState.width=t.width,this.vt.uiState.height=t.height,this.vt.uiState.videoWidth=t.videoWidth,this.vt.uiState.videoHeight=t.videoHeight,null===(n=null===(i=this.__)||void 0===i?void 0:i.controls)||void 0===n||n.onPlayerResize(t)},t.prototype.K_=function(){return e(this,void 0,void 0,(function(){var t;return r(this,(function(i){switch(i.label){case 0:return o.userAgent.mobile&&S.default.autoplaySupported&&this.k_.mute&&!this.vt.muteMode&&!this.vt.config.mute&&(this.mute=!1),this.zb.publish(l.CTRL_PLAYREQUEST,"ctp"),t={type:h.REQUEST_TYPES.CLICK,action:h.REQUEST_TYPES.CLICK},[4,this.f_.startPlayback(t)];case 1:return i.sent(),this.__.getContentNode().focus(),S.default.hasLoadRestriction&&this.vt.autoplay&&O.default&&(this.vt.waitingForUserTap=!1),[2]}}))}))},t.prototype.J_=function(){var t;return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return this.zb.publish(l.CTRL_PLAYREQUEST,"ctp"),[4,null===(t=this.e_)||void 0===t?void 0:t.handlePlay(this.f_,this.__)];case 1:return i.sent(),[2]}}))}))},t.prototype.R_=function(t,i,n){var e=this.Tg,r={srcElement:"next-vid-"+i},s=-1===i?l.CTRL_REPLAY:l.CTRL_ENDSCREEN_VID;-1===i&&(r.srcElement="es-rpl"),i>-2&&this.zb.publish(u.ExternalEvt.UI_INTERACT,r),this.zb.publish(s,{vid:t,vindex:i});var o={type:h.REQUEST_TYPES.CONTINUOUS,action:n?h.REQUEST_TYPES.AUTOPLAY:h.REQUEST_TYPES.CLICK},a=e.getItemPosition(t);this.setPlaylistPosition(a,!0,o)},t.prototype._n=function(t){var i;this.vt.firstCriticalError||(null===(i=this.l_)||void 0===i||i.onError(t),t.isRecoverable||this.tE(t))},t.prototype.tE=function(t){var i,n=this;null===(i=this.f_.getActiveRenderer())||void 0===i||i.updateSegInfo(!0);var e=t.type===f.E_INFO?l.INTERNAL_INFO:l.INTERNAL_ERROR;this.zb.publish(e,t);try{throw new Error("Stack Trace")}catch(t){}this.vt.errors.push(t),this.iE((function(){var t,i,e=n.vt.firstCriticalError;e&&(null===(t=n.l_)||void 0===t||t.endRecovery(),n.f_.handleCriticalError(e),n.nE(e),n.disableCC(),null===(i=n.__)||void 0===i||i.syncViewState())}))},t.prototype.My=function(t,i){(null==i?void 0:i.shouldRenderErrorScreen)&&this._n(t)},t.prototype.nE=function(t){var i=f.PLAYER_CODES,n=function(){o.userAgent.desktop&&(t.type=f.E_PLAYER,t.code=i.E_PLAYER_NOT_ENABLED)};switch(t.type){case f.E_SAPI_ABSTRACT:case f.E_SAPI_STREAM:case f.E_SAPI_PLAYLIST:case f.E_SAPI_RELATED:case f.E_SAPI_POPULAR:var e=f.INFO_CODES;switch(t.code){case e.E_SAPI_UNSUPPORTED_LIVE_ON_HTML:o.userAgent.android?(t.type=f.E_INFO,t.code=e.E_PLAYER_ANDROID_CHROME_REQUIRED):n();break;case f.SAPI_CODES.E_DRM_RESTRICTED:o.userAgent.desktop&&n()}break;case f.E_PLAYER:if(t.code===i.E_NATIVE_ENCRYPT_MEDIA)n()}},t.prototype.C_=function(){this.vt.isSeeking()||(this.vt.setSeeking(!0),this.__.syncViewState())},t.prototype.D_=function(){this.vt.isSeeking()&&(this.vt.isPaused()||this.f_.playCurrent(),this.vt.setSeeking(!1),this.__.syncViewState())},t.prototype.P_=function(t){this.vt.castState&&this.vt.castState.connected||this.f_.seekCurrent(t)},t.prototype.wy=function(t){this.vt.bitrate=t},t.prototype.F_=function(t,i){this.zb.publish(l.WARNING,t,i)},t.prototype.$m=function(t,i){this.vt.isLoading()||(this.vt.setLoading(!0),this.__.syncViewState());var n=this.getCurrentMediaItem();n&&(t===l.RECOVERY_START&&this.eE({value:!1,ignoreBuffering:!1},!1),this.g_.recover(n),this.zb.publish(t,i))},t.prototype.rE=function(t){return e(this,void 0,void 0,(function(){var i;return r(this,(function(n){switch(n.label){case 0:return this.l_.recovering?(i=this.vt.getState(),this.f_.getCurrentTime()>0&&(this.vt.startTime=this.f_.getCurrentTime()),this.l_.onRecoveryMetadataReady(),this.f_.setSeedStreamIndex(0),[4,this.f_.handleSourceAvailable(t)]):(this.l_.setItemRecoveryStatus(t,p.ItemRecoveryStatus.NOT_RECOVERING),[2]);case 1:return n.sent(),this.l_.setItemRecoveryStatus(t,p.ItemRecoveryStatus.RECOVERED),i!==_.default.VIDEO||this.k_.paused||this.f_.playCurrent(this.vt.startTime),[2]}}))}))},t.prototype.z_=function(t){},t.prototype.E_=function(){this.l_&&(this.l_.destroy(),this.l_=null)},t.prototype.iE=function(t){var i=this,n=this.vt&&this.Tg&&this.getCurrentMediaItem();switch((null==n?void 0:n.is360Video())&&(this.vt.skipOnError=v.SkipOnError.TIMEBASED),this.vt.skipOnError){case v.SkipOnError.ALWAYS:this.sE(t);break;case v.SkipOnError.TIMEBASED:t(),window.setTimeout((function(){i.sE()}),1e4);break;case v.SkipOnError.NEVER:default:t()}},t.prototype.sE=function(t){var i,n=this.Tg.getNextPosition(!0,this.vt.loop),e=this.Tg.position,r=this.vt.autoplay||this.vt.continuousPlay&&this.k_.hasStartedPlayback;-1!==n&&n!==e?(this.setPlaylistPosition(n,r),null===(i=this.__)||void 0===i||i.syncViewState()):-1===n&&this.oE(g.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR)},t.prototype.oE=function(t){var i=this;this.g_.loadMoreItems(t,(function(t){var n=i.Tg.getNextPosition(!0,i.vt.loop),e=i.uE();i.continuousPlay&&(i.vt.autoplay=!0);var r=!i.vt.showUpNextScreen&&(i.vt.autoplay||i.continuousPlay&&i.k_.hasStartedPlayback||e);t||-1===n?(i.vt.setState(_.default.END),i.k_.criticalError=i.vt.firstCriticalError,i.__&&i.__.syncViewState()):i.setPlaylistPosition(n,r)}),this.I_)},t.prototype.V_=function(t){var i=this;t&&this.g_.loadMoreItems(g.MoreItemsReason.CONTENT_LOAD_FINISHED,(function(){var t,n=i.Tg,e=n.getCurrentPosition(),r=n.getNextPosition(true,i.vt.loop);-1!==r&&r!==e&&(t=n.getMediaItemAt(r))&&(t.mayUpdateVideoSession(),i.a_.setPreloadItem(t),i.a_.startPreload())}),this.I_)},t.prototype.G_=function(){this.l_.recover(R.RECOVERY_STATES.RESUME)},t.prototype.H_=function(t){this.__.updateStreamSyncUI(!0,(null==t?void 0:t.strategy)||"")},t.prototype.Ry=function(){this.__.updateStreamSyncUI(!1)},t.prototype.o_=function(){var t=this,i=this.s_;i.on(b.MediaStoreEvent.MEDIA_ITEM_ADDED,(function(i){t.zb.publish(l.MEDIA_ITEM_ADDED,i)}),this),i.on(b.MediaStoreEvent.MEDIA_ITEM_REMOVED,(function(i){t.zb.publish(l.MEDIA_ITEM_REMOVED,i)}),this)},t.prototype.aE=function(t){return t?{id:t.id,title:t.title,description:t.description,duration:t.duration,refId:t.refPlaybackId}:null},t.prototype.v_=function(){var t=this,i=this.f_;i.on(I.PlaybackEvent.PLAY_CAST,(function(){}),this),i.on(I.PlaybackEvent.PAUSE_CAST,(function(){}),this),i.on(I.PlaybackEvent.SEEK_CAST,(function(){}),this),i.on(I.PlaybackEvent.PLAYBACK_REQUEST,(function(){t.zb.publish(l.PLAYBACK_REQUEST)}),this),i.on(I.PlaybackEvent.PLAYBACK_ERROR_BEFORE_METADATA_READY,(function(){t.zb.publish(l.INFO,new f.default(f.E_WARNING,f.PLAYER_CODES.E_NATIVE_PREMATURE_PLAY,"Cannot play before metadata is available"))}),this),i.on(I.PlaybackEvent.AD_CC_LOADED,(function(i){t.O_.enableExternalRenderer(i)}),this),i.on(I.PlaybackEvent.PLAYLIST_NO_MORE_ITEM_TO_PLAY,(function(){t.E_()}),this),i.on(I.PlaybackEvent.PLAYLIST_COMPLETE,(function(){t.oE(g.MoreItemsReason.PLAYLIST_COMPLETE),t.zb.publish(u.ExternalEvt.PLAYLIST_COMPLETE)}),this),i.on(I.PlaybackEvent.PLAYBACK_LOADING,(function(i){t.__.syncViewState(),t.vt.fullscreen&&t.__.setFullscreen(!0)}),this),i.on(I.PlaybackEvent.PLAYBACK_PAUSING,(function(){t.__.syncViewState()}),this),i.on(I.PlaybackEvent.AD_BREAK_STARTED,(function(i){var n,e,r;null===(n=t.__)||void 0===n||n.onAdBreakStarted(i),null===(e=t.__)||void 0===e||e.syncViewState(),null===(r=t.T_)||void 0===r||r.onAdBreakStarted(),t.zb.publish(l.AD_BREAK_STARTED,i)}),this),i.on(I.PlaybackEvent.AD_BREAK_ENDED,(function(i){t.Q_(),t.__.onAdBreakEnded(i),t.__.syncViewState(),t.T_.onAdBreakEnded(),t.O_.onAdBreakEnded(),t.zb.publish(l.AD_BREAK_ENDED,i),i.offset===j.AdBreakOffset.PRE&&t.zb.publish(l.PROFILE_START,l.METRICS.PLAYBACK_START,l.METRICS.AD_BREAK_END_TO_CLIENT_END);var n=null==i?void 0:i.mediaItem;null==n||n.updateCompletedAdBreak(i)}),this),i.on(I.PlaybackEvent.AD_PLAYBACK_STARTED,(function(i){t.q_(),t.__.syncViewState(),t.__.onAdPlaybackStarted(i),t.O_.onAdPlaybackStarted(i),t.lw.publishToPlugin(g.PluginPlayerEvent.AD_PLAYBACK_STARTED,i),t.a_.setPreloadItem(i.mediaItem),t.zb.publish(l.AD_PLAYBACK_STARTED,i)}),this),i.on(I.PlaybackEvent.AD_PLAYBACK_RESUMED,(function(i){t.zb.publish(l.PLAYBACK_RESUMED,i?i.id:null)}),this),i.on(I.PlaybackEvent.AD_PLAYBACK_ENDED,(function(i){t.__.onAdPlaybackEnded(i),t.zb.publish(l.AD_PLAYBACK_ENDED,i)}),this),i.on(I.PlaybackEvent.AD_PLAYBACK_PROGRESS,(function(i){t.__.onAdPlaybackProgress(i);var n=t.k_;t.lw.publishToPlugin(g.PluginPlayerEvent.AD_PLAYBACK_PROGRESS,{currentTime:n.currentTime,duration:n.duration}),n.duration&&n.currentTime&&n.duration-n.currentTime<t.a_.LIVE_PRELOAD_TIME_SPAN&&t.a_.startPreload(),t.O_.onAdPlaybackProgress(i)}),this),i.on(l.AD_SUBTITLE_TRACK_ADDED,(function(i){t.O_.onAdSubtitleTrackAdded(i)}),this),i.on(l.AD_SUBTITLE_NOT_FOUND,(function(){t.__.updateClosedCaptionUI(!1)}),this),i.on(I.PlaybackEvent.MEDIA_ITEM_CURRENT,(function(i){return e(t,void 0,void 0,(function(){var t,n,e;return r(this,(function(r){switch(r.label){case 0:return null===(t=this.__)||void 0===t||t.onMediaItemCurrent(i),null===(n=this.O_)||void 0===n||n.onMediaItemLoaded(i),[4,null===(e=this.T_)||void 0===e?void 0:e.onMediaItemCurrent(i)];case 1:return r.sent(),this.zb.publish(l.MEDIA_ITEM_CURRENT,i),[2]}}))}))}),this),i.on(I.PlaybackEvent.MEDIA_ITEM_PLAYBACK_STARTED,(function(i){t.f_.setPlaybackRate(t.vt.playbackRate),t.q_(),t.zb.publish(l.PROFILE_END,[l.METRICS.PLAYBACK_START,l.METRICS.RENDERER_READY_TO_PLAYBACK_START]),t.__.onMediaItemPlaybackStarted(i),t.O_.onMediaItemPlaybackStarted(),t.lw.publishToPlugin(g.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_STARTED,t.aE(i)),t.d_.onMediaItemPlaybackStarted(i),t.zb.publish(l.PLAYBACK_STARTED),t.g_.loadMoreItems(g.MoreItemsReason.PLAYBACK_STARTED)}),this),i.on(I.PlaybackEvent.MEDIA_ITEM_PLAYBACK_RESUMED,(function(i){t.zb.publish(l.PLAYBACK_RESUMED,i?i.id:null)}),this),i.on(I.PlaybackEvent.MEDIA_ITEM_PLAYBACK_PROGRESS,(function(i){t.__.syncViewState(),t.__.onMediaItemPlaybackProgress(i),i&&i.currentTime&&t.lw.publishToPlugin(g.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_PROGRESS,i.currentTime,t.aE(i.playingItem))}),this),i.on(I.PlaybackEvent.PLAYBACK_RESUME,(function(i){t.zb.publish(l.PLAYBACK_RESUMED,i?i.id:null),t.__.syncViewState()}),this),i.on(I.PlaybackEvent.PLAYBACK_ERROR,(function(i){t.zb.publish(l.PLAYBACK_ERROR,i)}),this),i.on(I.PlaybackEvent.PLAYBACK_INFO,(function(i){t.zb.publish(l.INFO,i)}),this),i.on(I.PlaybackEvent.MEDIA_ITEM_ERROR,(function(i,n){t.zb.publish(l.MEDIA_ITEM_ERROR,i),t.zb.publish(l.ERROR,n)}),this),i.on(I.PlaybackEvent.WAITING,(function(i){var n,e;if(i){t.eE(i,null===(n=t.l_)||void 0===n?void 0:n.recovering),null===(e=t.l_)||void 0===e||e.toggleRecoverer(i);var r=!0===i.value?u.ExternalEvt.BUFFERING_START:u.ExternalEvt.BUFFERING_END;t.zb.publish(r)}}),this),i.on(I.PlaybackEvent.END_FULLSCREEN,(function(){t.__.setFullscreen(!1),t.__.handleFullscreenChange(!1)}),this),i.on(I.PlaybackEvent.ENTER_FULLSCREEN,(function(){t.__.setFullscreen(!0),t.__.handleFullscreenChange(!0)}),this),i.on(I.PlaybackEvent.PLAYBACK_ERROR_NO_VALID_STREAM,(function(){t.zb.publish(l.ERROR,new f.default(f.E_SAPI_STREAM,f.SAPI_CODES.E_NO_PLAYABLE_STREAMS))}),this),i.on(I.PlaybackEvent.PLAYBACK_ERROR_NO_RENDERER,(function(i){t.zb.publish(l.ERROR,i)}),this),i.on(I.PlaybackEvent.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED,(function(i){t.zb.publish(l.INFO,i)}),this),i.on(I.PlaybackEvent.PLAYBACK_SYNC_VIEW,(function(){var i;null===(i=t.__)||void 0===i||i.syncViewState()}),this),i.on(I.PlaybackEvent.MUTE_CHANGED,(function(i){t.vt.mute=i,t.__.updateVolumeUI(t.vt.volume,t.vt.mute)}),this),i.on(I.PlaybackEvent.VOLUME_CHANGED,(function(i){t.vt.volume=i,t.__.updateVolumeUI(t.vt.volume,t.vt.mute),t.zb.publish(l.VideoEvent.VOLUMECHANGE)}),this),i.on(I.PlaybackEvent.PLAYBACK_START_BLOCKED,(function(){t.k_.paused=!0,t.k_.loading=!1,t.__.syncViewState(),t.zb.publish(l.VideoEvent.BLOCKED),t.zb.publish(l.VideoEvent.PAUSE),t.l_.onPlaybackStartBlocked()}),this),i.on(I.PlaybackEvent.PLAYBACK_START_NOT_BLOCKED,(function(){t.l_.onPlaybackStartNotBlocked()}),this),i.on(I.PlaybackEvent.RENDERER_SWITCH,(function(i,n){o.userAgent.mobile&&t.__.getFullscreen()&&i!==n&&n&&n.exitFullScreen&&n.exitFullScreen(),t.__.onRendererSwitch(i,n)}),this),i.on(I.PlaybackEvent.RENDERER_TIMEOUT,(function(){t.__.syncViewState()}),this),i.on(I.PlaybackEvent.RENDERER_CREATED,(function(i){t.__.addRendererNode(i.create())}),this),i.on(I.PlaybackEvent.MEDIA_ITEM_PLAYBACK_STOPPED,(function(i){var n;null===(n=t.l_)||void 0===n||n.endRecovery(),t.__.syncViewState(),t.vt.continuousPlay||t.__.setFullscreen(!1),t.zb.publish(l.PLAYBACK_STOPPED,i)}),this),i.on(I.PlaybackEvent.PLAYLIST_POSITION_HAS_CHANGED,(function(i){i&&(t.__.resetState(),t.zb.publish(u.ExternalEvt.PLAYLIST_POSITION_CHANGE,t.Tg.position))}),this),i.on(I.PlaybackEvent.PLAYBACK_ERROR_INCONSISTENT_METADATA,(function(){t.zb.publish(l.WARNING,new f.default(f.E_WARNING,f.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE),{shouldRenderErrorScreen:!0})}),this),i.on(I.PlaybackEvent.MEDIA_ITEM_IS_LOADED,(function(i){t.h_(),t.__.onMediaItemLoaded(i),t.O_&&t.O_.onMediaItemLoaded(i);var n=i.customConfig,e=t.Rc.nielsenConfig;((null==n?void 0:n.nielsenRequired)||(null==e?void 0:e.enableNielsen))&&t.zb.publish(u.ExternalEvt.NIELSEN_REQUIRED),t.zb.publish(l.MEDIA_ITEM_METADATA,i)}),this),i.on(I.PlaybackEvent.SEEKING,(function(){var i,n=l.VideoEvent.SEEKING;t.__.onVideoEvent(n);var e=null===(i=t.l_)||void 0===i?void 0:i.onSeeking(t.vt.rebufferReason);t.zb.publish(n,t.vt.rebufferReason,e)}),this),i.on(I.PlaybackEvent.SEEKED,(function(){var n,e;t.vt.rebufferReason=null,t.__.onVideoEvent(l.VideoEvent.SEEKED),null===(n=i.getActiveRenderer())||void 0===n||n.updateSegInfo();var r=null===(e=t.l_)||void 0===e?void 0:e.onSeeked();t.zb.publish(u.ExternalEvt.PLAYBACK_SEEK_COMPLETE,r)}),this),i.on(I.PlaybackEvent.MEDIA_ITEM_PLAYBACK_ENDED,(function(i,n){t.__.destroyAdsOverlay(),t.O_.onMediaItemPlaybackEnded(),t.zb.publish(l.PLAYBACK_COMPLETE,i),t.d_.onMediaItemPlaybackEnded(i),t.zb.publish(l.MEDIA_ITEM_COMPLETE,i),t.lw.publishToPlugin(g.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_ENDED,t.aE(i))}),this),i.on(I.PlaybackEvent.STALLED,(function(){t.zb.publish(l.VideoEvent.STALLED)}),this),i.on(I.PlaybackEvent.LOADSTART,(function(){t.zb.publish(l.VideoEvent.LOADSTART)}),this),i.on(I.PlaybackEvent.LOADEDDATA,(function(){t.zb.publish(l.VideoEvent.LOADEDDATA)}),this),i.on(I.PlaybackEvent.LOADEDMETADATA,(function(){t.zb.publish(l.VideoEvent.LOADEDMETADATA)}),this),i.on(I.PlaybackEvent.PLAY,(function(){t.zb.publish(l.VideoEvent.PLAY)}),this),i.on(I.PlaybackEvent.PLAYING,(function(i){var n=l.VideoEvent.PLAYING;t.l_.onPlaying(),t.__.onVideoEvent(n,i),t.zb.publish(n)}),this),i.on(I.PlaybackEvent.PAUSE,(function(){var i=l.VideoEvent.PAUSE;t.__.onVideoEvent(i),t.zb.publish(i)}),this),i.on(I.PlaybackEvent.SRC_SWITCHING,(function(){t.zb.publish(l.VideoEvent.SRC_SWITCHING)}),this),i.on(I.PlaybackEvent.SRC_SWITCHED,(function(){t.zb.publish(l.VideoEvent.SRC_SWITCHED)}),this),i.on(I.PlaybackEvent.TIMEUPDATE,(function(i){t.zb.publish(l.VideoEvent.TIMEUPDATE,i&&i.currentTime),t.__.onPlaybackTimeUpdate()}),this),i.on(I.PlaybackEvent.CLICK,(function(){return e(t,void 0,void 0,(function(){var t;return r(this,(function(i){switch(i.label){case 0:return this.zb.publish(u.ExternalEvt.UI_INTERACT,{srcElement:"video-click"}),o.userAgent.desktop&&(null===(t=this.__)||void 0===t?void 0:t.controls)?[4,this.L_()]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))}),this),i.on(I.PlaybackEvent.PLAYBACK_PROGRESS,(function(i){var n=i.currentItem,e=i.currentTime,r=i.duration,s=i.buffered,o=t.__.getPlayerDimensions();T.default.areDimensionsEqual(o,t.vt.uiState)||t.zb.publish(l.PLAYER_DIMENSION_CHANGE,o),t.O_.onPlaybackProgress(n.id,e,r),t.zb.publish(l.PLAYBACK_PROGRESS,n.id,e,r,s)}),this),i.on(I.PlaybackEvent.PLAYBACK_NEED_MEDIA_ITEM_METADATA,(function(i){t.g_.loadItem(i)}),this),i.on(I.PlaybackEvent.PLAYBACK_NEED_MEDIA_ITEM_SOURCE,(function(i){t.g_.loadSource(i),t.zb.publish(l.MEDIA_ITEM_NEED_SOURCE,i)}),this),i.on(I.PlaybackEvent.AD_METRICS,(function(i){t.zb.publish(l.AD_METRICS,i)}),this),i.on(I.PlaybackEvent.CREATE_OVERLAY_CONTAINER,(function(i){i(t.__.createAdsOverlay())}),this),i.on(I.PlaybackEvent.SUBTITLE_TRACK_RECEIVED,(function(i){t.O_.onSubtitleTrackReceived(i)}),this),i.on(I.PlaybackEvent.ENTERPICTUREINPICTURE,(function(){var i;null===(i=t.__)||void 0===i||i.onEnterPictureInPicture()}),this),i.on(I.PlaybackEvent.LEAVEPICTUREINPICTURE,(function(){var i;null===(i=t.__)||void 0===i||i.onLeavePictureInPicture()}),this),this.cE(i)},t.prototype.A_=function(){var t=this,i=this.__;i.on(M.ViewEvent.SYNC_PLAYBACK_STATE,(function(){t.f_.syncPlaybackState()}),this),i.on(M.ViewEvent.SYNC_SHOW_AIRPLAY_TARGET_MENU,(function(){t.f_.showAirplayTargetMenu()}),this),i.on(M.ViewEvent.SEEK,(function(i){t.f_.seekCurrent(i)}),this),i.on(M.ViewEvent.SET_VOLUME,(function(i){t.setVolume(i)}),this),i.on(M.ViewEvent.SET_MUTE,(function(i){t.mute=i}),this),i.on(M.ViewEvent.TOGGLE_CC,(function(i,n){t.zb.publish(l.CCEvent.UI_TOGGLE,i,n),t.O_.toggleFromUI(i,n)}),this),i.on(M.ViewEvent.SET_AUDIO_LANGUAGE,(function(i,n){t.zb.publish(l.CONTROLS_AUDIO_CHANGE,i,n);var e=t.getCurrentMediaItem();null==e||e.setCurrLanguage(i),t.f_.setAudioLanguage(i)}),this),i.on(M.ViewEvent.UI_INTERACT,(function(i){t.zb.publish(u.ExternalEvt.UI_INTERACT,i)}),this),i.on(M.ViewEvent.SCROLLED_TO_END,(function(){t.g_.loadMoreItems(g.MoreItemsReason.SCROLLED_TO_END)}),this),i.on(M.ViewEvent.PLAYLIST_BOTTOM_HEIGHT_CHANGE,(function(i){t.zb.publish(l.PLAYLIST_BOTTOM_HEIGHT_CHANGE,i)}),this),i.on(M.ViewEvent.TOGGLE_PLAY_PAUSE,(function(){return e(t,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.L_()];case 1:return t.sent(),[2]}}))}))}),this),i.on(M.ViewEvent.START_SCREEN_CLICK,(function(){return e(t,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.K_()];case 1:return t.sent(),[2]}}))}))}),this),i.on(M.ViewEvent.CC_LANGUAGE_CHANGE,(function(i){t.O_.onLanguageChange(i),t.f_.showExternalCC({preferences:t.O_.userPreferences})}),this),i.on(M.ViewEvent.CC_STYLE_CHANGE,(function(i){t.O_.updateCCStyle(),i&&t.zb.publish(l.CCEvent.UPDATE_STYLE,i),t.f_.showExternalCC({preferences:t.O_.userPreferences})}),this),i.on(M.ViewEvent.OPSS_VISIBILITY_CHANGED,(function(i,n){t.zb.publish(l.OPSS_VISIBILITY_CHANGED,i,n)}),this),i.on(M.ViewEvent.FORWARD_SEEK,(function(){var i=t.f_.getCurrentTime(),n=Math.min(i+t.vt.seekControls.offset,t.duration-1);t.f_.seekCurrent(n)}),this),i.on(M.ViewEvent.BACKWARD_SEEK,(function(){var i=t.f_.getCurrentTime()-t.vt.seekControls.offset;t.f_.seekCurrent(i)}),this),i.on(M.ViewEvent.CUSTOM_ELEMENT,(function(i,n){var e={action:i,label:n};t.zb.publish(u.ExternalEvt.CTRL_CUSTOM_ELEMENT,JSON.stringify(e))}),this),i.on(M.ViewEvent.KEY_CHANGE_VOLUME,(function(i){t.zb.publish(u.ExternalEvt.KEY_CHANGE_VOLUME,i)}),this),i.on(M.ViewEvent.CC_POSITION_FLOAT,(function(i){var n;null===(n=t.O_)||void 0===n||n.ccPositionFloat(i)}),this),i.on(M.ViewEvent.PLAYER_VIEWPORT_CHANGE,(function(i){t.zb.publish(u.ExternalEvt.PLAYER_VIEWPORT_CHANGE,i),t.O_.adjustCCSizeToScreen(i)}),this),i.on(M.ViewEvent.FULLSCREEN_CHANGE,(function(i){t.zb.publish(l.FULLSCREEN_CHANGE,i),t.O_.adjustCCSizeToScreen(i)}),this),i.on(M.ViewEvent.SET_PLAYBACK_RATE,(function(i){t.setPlaybackRate(i)}),this),i.on(M.ViewEvent.PIP_TOGGLE,(function(i){t.hE(i)}),this)},t.prototype.b_=function(){var t=this,i=this.e_;i.on(H.UpNextControllerEvent.UI_INTERACT,(function(i){t.zb.publish(u.ExternalEvt.UI_INTERACT,i)}),this),i.on(H.UpNextControllerEvent.PLAY_REQUEST,this.J_,this)},t.prototype.hE=function(t){this.f_.togglePIP(t)},t.prototype.Y_=function(){var t=this,i=this.l_;i.on(l.ERROR,(function(i){t.tE(i)}),this),i.on(l.WARNING,(function(i,n){t.zb.publish(l.WARNING,i,n)}),this),i.on(R.RecovererEvent.RECOVERY_START,(function(i){var n;null===(n=t.f_.getActiveRenderer())||void 0===n||n.updateSegInfo(!0),t.$m(l.RECOVERY_START,i)}),this),i.on(R.RecovererEvent.RECOVERING,(function(i){t.$m(l.RECOVERING,i)}),this),i.on(R.RecovererEvent.RECOVERED,(function(i){t.zb.publish(l.RECOVERED,i)}),this),i.on(R.RecovererEvent.RECOVERY_DISABLED,(function(i){var n;t.zb.publish(l.RECOVERY_DISABLED,i,null===(n=t.k_)||void 0===n?void 0:n.playbackMode)}),this)},t.prototype.M_=function(){var t=this,i=this.O_;i.on(a.CCControllerEvent.CC_AVAILABILITY_UPDATE,(function(i){t.__.updateClosedCaptionUI(i)}),this),i.on(a.CCControllerEvent.CC_LIST_FETCHED,(function(i){var n,e;null===(e=null===(n=t.__)||void 0===n?void 0:n.controls)||void 0===e||e.updateAvailableLanguages(i)}),this),i.on(a.CCControllerEvent.CC_LIST_FETCHED_MOBILE,(function(i){t.f_.enableMobileNativeCC(i)}),this),i.on(a.CCControllerEvent.CC_SHOW_EXTERNAL,(function(i){t.f_.showExternalCC(i)}),this)},t.prototype.w_=function(){var t=this,i=this.g_;i.on(l.ERROR,(function(i){t.zb.publish(l.ERROR,i)}),this),i.on(l.WARNING,(function(i,n){t.zb.publish(l.WARNING,i,n)}),this),i.on(N.MetadataEvent.METADATA_AVAILABLE,(function(i){return e(t,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return this.getCurrentMediaItem().equals(i)&&this.__&&this.__.syncViewState(),this.zb.publish(l.METADATA_AVAILABLE,i.id),this.j_||(this.j_=!0,this.zb.publish(u.ExternalEvt.PLAYER_READY)),this.T_?[4,this.T_.onMediaItemLoaded()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}),this),i.on(N.MetadataEvent.SOURCE_AVAILABLE,(function(i){return e(t,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return this.g_.loadMoreItems(g.MoreItemsReason.SOURCE_LOAD_COMPLETE),[4,this.fE(i)];case 1:return t.sent(),[2]}}))}))}),this),i.on(N.MetadataEvent.SOURCE_LOAD_FAILED,(function(i,n){var e=t.getCurrentMediaItem();(null==e?void 0:e.key)===d.default.createKey(i.id,i.mimetype)&&(t.lE(e)&&(t.l_.setItemRecoveryStatus(e,p.ItemRecoveryStatus.NOT_RECOVERING),t.l_.onMetadataLoadFailed()),t.zb.publish(l.ERROR,n))}),this),i.on(N.MetadataEvent.API_INFO_AVAILABLE,(function(i){t.zb.publish(l.API_CALLED,i)}),this),this.cE(this.g_)},t.prototype.cE=function(t){var i=this;[l.PROFILE_START,l.PROFILE_END].forEach((function(n){t.addEventListener(n,(function(t){i.zb.publish(n,t)}),i)}))},t.prototype.c_=function(){var t=this,i=this.a_;i.on(k.PreloadEvent.START_PRELOAD,(function(i){t.g_.loadSource(i),i.isPreloaded=!0}),this),i.on(k.PreloadEvent.PLAYER_IDLE,(function(){}),this)},t.prototype.fE=function(t){return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return this.vE(t),this.lE(t)?[4,this.rE(t)]:[3,2];case 1:case 5:return i.sent(),[2];case 2:return[4,this.d_.prepare(t)];case 3:return i.sent(),[4,this.d_.load(t)];case 4:return i.sent(),[4,this.f_.handleSourceAvailable(t)]}}))}))},t.prototype.lE=function(t){var i=this.getCurrentMediaItem();return t.isRecovering()&&!!i&&i.equals(t)},t.prototype.eE=function(t,i){if(!t.ignoreBuffering&&!i){var n=t.value,e=n?l.PROFILE_START:l.PROFILE_END;if(this.zb.publish(e,l.METRICS.PLAYBACK_STALLED),!n){var r=this.r_.getItem(l.METRICS.PLAYBACK_STALLED);r&&(this.zb.publish(l.PLAYBACK_STALLED,r.timeDiff?r.timeDiff/1e3:""),this.r_.removeItem(r))}}},t.prototype.vE=function(t){!(!(t&&t.customConfig&&t.customConfig.meta)||t.customConfig.meta.castable)&&o.userAgent.android&&"dash"===t.streams[0].getType()&&this.zb.publish(l.INFO,new f.default(f.E_INFO,f.INFO_CODES.E_DRM_UNSUPPORTED_OS,null,"not castable stream on android"))},t.prototype.uE=function(){var t,i=this.vt.config;return"media/container"===i.mediaItems[0].mimetype&&!!(null===(t=i.playlist)||void 0===t?void 0:t.id)&&!i.autoplay},Object.defineProperty(t.prototype,"k_",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),t}();i.default=Y},50101:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.InstreamAdManagerEvent=void 0;var s,o=n(44422),u=n(40531),a=n(2007),c=n(7262),h=n(2694);!function(t){t.AD_VIDEO_START="AdVideoStart",t.AD_VIDEO_FIRST_QUARTILE="AdVideoFirstQuartile",t.AD_VIDEO_MIDPOINT="AdVideoMidPoint",t.AD_VIDEO_THIRD_QUARTILE="AdVideoThirdQuartile",t.AD_VIDEO_COMPLETE="AdVideoComplete",t.AD_VIDEO_CLICK="AdVideoClick"}(s=i.InstreamAdManagerEvent||(i.InstreamAdManagerEvent={}));var f=[s.AD_VIDEO_FIRST_QUARTILE,s.AD_VIDEO_MIDPOINT,s.AD_VIDEO_THIRD_QUARTILE],l=function(t){function i(){var i=t.call(this,"InstreamAdManager")||this;return i.dE={},i.pE="",i.bE=null,i.bE=new c.default(i),i}return r(i,t),i.prototype.onDateRangeStarted=function(t,i){var n=this.mE(t);n&&this.yE(n,i)},i.prototype.onDateRangeEnded=function(t,i){var n=this.mE(t);n&&this.gE(n,i)},i.prototype.onClick=function(){if(this.wE()&&this._E()){this.EE();var t=this.OE();u.isString(t)&&window.open(t,"_blank")}},i.prototype.onActiveRendererTimeupdate=function(t){var i=this.dE[this.pE];if(i&&!i.status.completes){var n=i.duration,e=i.startTime;if(u.isNumber(t)||u.isNumber(e)||u.isNumber(n))if(t>e+n)this.pE="";else{var r=t-e,s=Math.round(r/n*100)/100;this.SE("firstquartiles",1,s,i),this.SE("midpoints",2,s,i),this.SE("thirdquartiles",3,s,i)}}},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.dE={}},i.prototype.mE=function(t){var i=h.default.parseRawDataFromAllowedDaterange(t,h.ADS_DATE_RANGE_CLASSNAMES_ALLOWLIST);return i?(i.adID=(null==i?void 0:i.adID)||(null==t?void 0:t.id),i.duration=(null==i?void 0:i.duration)||(null==t?void 0:t.duration),i.events=(null==i?void 0:i.customer_events)||(null==i?void 0:i.events)||{},i):null},i.prototype.yE=function(t,i){var n=t&&t.adID;if(n){this.pE=n;var e=new a.default(t,i);this.dE[n]=e;var r=e.events.impressions||[];r.length>0&&(e.status.impressions=!0,this.publish(s.AD_VIDEO_START,r))}},i.prototype.gE=function(t,i){var n=t&&t.adID;if(n){var e=this.dE[n];if(e&&!e.status.completes){var r=e.events.completes||[];e.status.completes=!0,e.endTime=i,this.publish(s.AD_VIDEO_COMPLETE,r)}}},i.prototype.EE=function(){var t=this.dE[this.pE],i=t.events,n=(null==i?void 0:i.clicktrackings)||[];n.length>0&&(t.status.clicktrackings=!0,this.publish(s.AD_VIDEO_CLICK,n))},i.prototype.wE=function(){var t,i;return!1===(null===(i=null===(t=this.dE[this.pE])||void 0===t?void 0:t.status)||void 0===i?void 0:i.completes)},i.prototype._E=function(){var t,i,n=this.dE[this.pE],e=(null==n?void 0:n.events)||{};return(null===(t=null==e?void 0:e.clicktrackings)||void 0===t?void 0:t.length)>0||(null===(i=null==e?void 0:e.clickthroughs)||void 0===i?void 0:i.length)>0},i.prototype.OE=function(){var t,i=this.dE[this.pE],n=(null==i?void 0:i.events)||{};return(null===(t=null==n?void 0:n.clickthroughs)||void 0===t?void 0:t[0])||null},i.prototype.SE=function(t,i,n,e){var r,s=null===(r=this.dE[this.pE])||void 0===r?void 0:r.status;s&&!s[t]&&n>=.25*i&&(s[t]=!0,this.publish(f[Math.min(i,3)-1],e.events[t]))},i}(o.default);i.default=l},94046:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__assign||function(){return s=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},s.apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.MetadataController=i.MetadataEvent=void 0;var o,u=n(44422),a=n(76618),c=n(76389),h=n(21962),f=n(26120),l=n(40531),v=n(66342);!function(t){t.METADATA_AVAILABLE="metadata-available",t.SOURCE_AVAILABLE="metadata-source-available",t.SOURCE_LOAD_FAILED="metadata-source-load-failed",t.API_INFO_AVAILABLE="api-info-available",t.MORE_ITEMS_LOADED="more-items-loaded"}(o=i.MetadataEvent||(i.MetadataEvent={}));var d=function(t){function i(i,n){var e=t.call(this,"MetadataController")||this;return e.Ye=i,e.vt=n,e.s_=n.mediaStore,e}return r(i,t),i.prototype.destroy=function(){this.Ye.removeRelatedCommands(a.CmdName.CMD_METADATA_LOAD),this.Ye.removeRelatedCommands(a.CmdName.CMD_SOURCE_METADATA_LOAD),t.prototype.destroy.call(this)},i.prototype.loadItem=function(t){var i=t.rawItemData;this.Ye.executeCommand(a.CmdName.CMD_METADATA_LOAD,s({mimetype:t.mimetype,mediaItemDataArr:[i]},this.AE()),this)},i.prototype.loadSource=function(t){var i=t.rawItemData;if(t.sourceState!==f.SourceState.FETCHING)if(t.hasSource()||t.isStreamContainer())this.publish(o.SOURCE_AVAILABLE,t);else if(!t.isContainer()){var n=this.Tg.getItemPosition(t.id)+1;this.publish(h.PROFILE_START,h.METRICS.CMS_SOURCE_REQUEST),this.Ye.executeCommand(a.CmdName.CMD_SOURCE_METADATA_LOAD,s({mimetype:t.mimetype,mediaItemDataArr:[i],playlistPosition:n},this.AE()),this)}},i.prototype.recover=function(t){var i=t.rawItemData;this.Ye.executeCommand(a.CmdName.CMD_SOURCE_METADATA_LOAD,s({mimetype:t.mimetype,mediaItemDataArr:[i],recovering:!0},this.AE()),this)},i.prototype.loadMetadata=function(t){var i,n=this;if((i=t&&t.length?t:this.Tg.getItems())&&i.length){var e=[];i.forEach((function(t){e.push(t.rawItemData)}));var r={};e.forEach((function(t){var i=t.mimetype;r[i]||(r[i]=[]),r[i].push(t)})),this.TE(e)&&this.publish(h.PROFILE_START,h.METRICS.CMS_REQUEST),Object.keys(r).forEach((function(t){n.Ye.executeCommand(a.CmdName.CMD_METADATA_LOAD,s({mimetype:t,mediaItemDataArr:r[t]},n.AE()),n)}))}},i.prototype.loadMoreItems=function(t,i,n){var e=this.Tg.getItems();e&&e.length&&(this.publish(h.PROFILE_START,h.METRICS.CMS_MORE_ITEMS_REQUEST),this.Ye.executeCommand(a.CmdName.CMD_MORE_ITEMS_LOAD,{cb:i,mimetype:n||e[0].mimetype,reason:t,start:this.Tg.playlistFetchIndex},this))},i.prototype.onSourceMetadataLoadComplete=function(t,i){var n=this;this.publish(h.PROFILE_END,h.METRICS.CMS_SOURCE_REQUEST),this.Ye.removeCommand(t),this.Tg.update(i).forEach((function(t){t.setSourceState(f.SourceState.HAS_DATA),n.publish(o.SOURCE_AVAILABLE,t)}))},i.prototype.onSourceMetadataLoadProgress=function(t,i,n){n&&this.Tg.updateMediaItemsSourceState(i,n)},i.prototype.onSourceMetadataLoadInfo=function(t,i){i&&this.publish(o.API_INFO_AVAILABLE,i)},i.prototype.onSourceMetadataLoadError=function(t,i,n){var e=this;this.Ye.removeCommand(t),i.forEach((function(t){e.publish(o.SOURCE_LOAD_FAILED,t,n)}))},i.prototype.onMetadataLoadComplete=function(t,i){var n=this;this.Ye.removeCommand(t),this.ME(i),this.TE(i)&&this.publish(h.PROFILE_END,h.METRICS.CMS_REQUEST),this.Tg.update(i).forEach((function(t){t.setState(f.ItemState.HAS_DATA),n.publish(o.METADATA_AVAILABLE,t)}))},i.prototype.onMetadataLoadProgress=function(t,i,n){n&&this.Tg.updateMediaItemsState(i,n)},i.prototype.onMetadataLoadInfo=function(t,i){i&&this.publish(o.API_INFO_AVAILABLE,i)},i.prototype.onMetadataLoadError=function(t,i){this.Ye.removeCommand(t),this.publish(h.WARNING,new c.default(c.E_WARNING,i.code,i.message))},i.prototype.onMoreItemsLoadComplete=function(t,i){this.Ye.removeCommand(t),this.publish(h.PROFILE_END,h.METRICS.CMS_MORE_ITEMS_REQUEST);var n=this.Tg;n.playlistFetchIndex+=i.length,n.addItems(i);var e=i.map((function(t){var i=t.id;return n.getMediaItemById(i)}));e.length>0&&this.loadMetadata(e)},i.prototype.onMoreItemsLoadInfo=function(t,i){i&&this.publish(o.API_INFO_AVAILABLE,i)},i.prototype.onMoreItemsLoadError=function(t,i){this.Ye.removeCommand(t),this.publish(h.INFO,i)},i.prototype.TE=function(t){var i=this.Tg.getCurrentItem();return i&&t&&t.length&&t.some((function(t){return t.id===i.id}))},i.prototype.AE=function(){var t=this.vt,i={autoplay:t.autoplay,privacyConsent:t.consent,rendererCapabilities:t.capabilities,rendererTypes:t.rendererTypes,thumbnailDimensions:t.thumbnailDimensions},n=this.Tg.getCurrentItem();return n&&(n.videoSession&&(i.sessionId=n.videoSession),(0,l.isNumber)(n.tryCount)&&(i.tryCount=n.tryCount),(0,l.isNumber)(n.failoverCount)&&(i.failoverCount=n.failoverCount)),i},i.prototype.ME=function(t){t&&t.forEach((function(t){t.metadata&&(t.metadata.title=v.default.sanitizeAndUnescape(t.metadata.title),t.metadata.description=v.default.sanitizeAndUnescape(t.metadata.description))}))},Object.defineProperty(i.prototype,"Tg",{get:function(){return this.vt.playlist},enumerable:!1,configurable:!0}),i}(u.default);i.MetadataController=d},12657:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.PauseHandlerEvents=void 0;var u,a=n(44422),c=n(39451),h=n(53872),f=n(30954),l=n(22334),v=5e3,d=2e4;!function(t){t.SUSPEND_STREAMING="suspendStreaming",t.RESUME_STREAMING="resumeStreaming",t.CTRL_PLAYPAUSE="ctrlPlayPause"}(u=i.PauseHandlerEvents||(i.PauseHandlerEvents={}));var p=function(t){function i(i,n){var e=t.call(this,"pauseHandler")||this;if(e.tn=i,e.vt=n,!e.tn||!e.vt)throw new Error("[PauseHandler] Invalid arguments");var r=e.jE=Object.assign({},e.vt.backgroundPause);return e.jE.timeToPause=r.timeToPause?1e3*r.timeToPause:v,e.NE=r.onMute||r.onUnmute,e.jE.suspendStreamingTime=r.suspendStreamingTime?1e3*r.suspendStreamingTime:d,e.jE.backgroundSuspendStreaming=!0,e.IE=new h.Timer(r.timeToPause,e.kE,e,1),e.RE=new h.Timer(r.suspendStreamingTime,e.LE,e,1),e.CE=!1,e}return r(i,t),i.prototype.destroy=function(){this.IE.destroy(),this.RE.destroy()},i.prototype.onPlaybackPlaying=function(t){t||!this.DE()?this.vt.getPauseReason()===l.PauseReason.BACKGROUND&&c.userAgent.chrome&&this.tn.seek(this.tn.getCurrentTime()):this.PE()},i.prototype.onVisibilityChange=function(t){return s(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return t?(this.IE.reset(),this.RE.reset(),[4,this.xE()]):(this.DE()&&(this.vt.isAd()||this.tn.recovering?this.PE():this.UE()),[2]);case 1:return i.sent(),[2]}}))}))},i.prototype.suspendStreaming=function(){this.Yg()&&(this.CE=!0,this.vt.rebufferReason=f.REBUFFERING_REASON.LONG_PAUSE,this.publish(u.SUSPEND_STREAMING))},i.prototype.resumeStreaming=function(){this.RE.reset(),this.Yg()&&this.CE&&(this.publish(u.RESUME_STREAMING),this.CE=!1)},i.prototype.scheduleSuspend=function(){this.jE.backgroundSuspendStreaming&&this.RE.start()},i.prototype.LE=function(){this.RE.reset(),this.suspendStreaming()},i.prototype.DE=function(){if(!this.NE)return!1;var t=this.vt.mute;return!(t&&!this.jE.onMute||!t&&!this.jE.onUnmute)},i.prototype.FE=function(){return!(!this.NE||this.vt.isMediaPlaying())&&this.vt.getPauseReason()===l.PauseReason.BACKGROUND},i.prototype.UE=function(){this.IE.start()},i.prototype.kE=function(){this.IE.reset(),this.PE()},i.prototype.PE=function(){this.vt.isPaused()||(this.tn.pause({type:f.REQUEST_TYPES.API,action:f.REQUEST_TYPES.BACKGROUND}),this.publish(u.CTRL_PLAYPAUSE,"pause"))},i.prototype.xE=function(){return s(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return this.FE()?(this.resumeStreaming(),[4,this.tn.startPlayback({type:f.REQUEST_TYPES.API,action:f.REQUEST_TYPES.BACKGROUND})]):[2];case 1:return t.sent(),this.publish(u.CTRL_PLAYPAUSE,"play"),[2]}}))}))},i.prototype.Yg=function(){var t=this.vt.playlist.getCurrentItem();return!!t&&t.isLive()},i}(a.default);i.default=p},58903:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__assign||function(){return s=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},s.apply(this,arguments)},o=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},u=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.PlaybackController=i.PlaybackEvent=void 0;var a,c=n(44422),h=n(39451),f=n(20460),l=n(89489),v=n(53072),d=n(30954),p=n(21962),b=n(10595),m=n(28103),y=n(50440),g=n(73353),w=n(50101),_=n(35244),E=n(90727),O=n(2694),S=n(31204),A=n(2878),T=n(40531),M=n(66342),j=n(12657),N=n(14411),I=n(26120);!function(t){t.PLAY_CAST="playCast",t.PAUSE_CAST="pauseCast",t.SEEK_CAST="seekCast",t.SRC_SWITCHING="pbcSrcSwitching",t.SRC_SWITCHED="pbcSrcSwitched",t.CLICK="pbcVideoClick",t.PAUSE="pbcPaused",t.PLAYBACK_ERROR="pbcError",t.PLAYBACK_INFO="pbcInfo",t.LOADEDMETADATA="pbcLoadedMetadata",t.LOADEDDATA="pbcLoadedData",t.STALLED="pbcStalled",t.LOADSTART="pbcLoadstart",t.PLAY="pbcPlay",t.PLAYING="pbcPlaying",t.SEEKING="pbcSeeking",t.SEEKED="pbcSeeked",t.WAITING="pbcWaiting",t.TIMEUPDATE="pbcTimeUpdate",t.MUTE_CHANGED="pbcMuteChanged",t.VOLUME_CHANGED="pbcVolumeChanged",t.END_FULLSCREEN="pbcEndFullscreen",t.ENTER_FULLSCREEN="pbcEnterFullscreen",t.PLAYBACK_START_NOT_ALLOWED="pbcStartNotAllowed",t.PLAYBACK_START_BLOCKED="pbcPlayBlocked",t.PLAYBACK_START_NOT_BLOCKED="pbcPlayNotBlocked",t.PLAYBACK_RESUME="pbcResume",t.PLAYBACK_NEW_ATTEMPT="pbcNewAttempt",t.PLAYBACK_REQUEST="pbcRequest",t.PLAYBACK_LOADING="pbcLoading",t.PLAYBACK_PAUSING="pbcPausing",t.PLAYBACK_STARTED="pbcStarted",t.PLAYBACK_ERROR_NO_VALID_STREAM="pbcErrorNoValidStream",t.PLAYBACK_ERROR_BEFORE_METADATA_READY="pbcErrorBeforeMetadataReady",t.PLAYBACK_ERROR_INCONSISTENT_METADATA="pbcErrorInconsistentMetadata",t.PLAYBACK_ERROR_NO_RENDERER="pbcErrorNoRenderer",t.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED="pbcErrorFlashNotSupported",t.PLAYBACK_SYNC_VIEW="pbcSyncView",t.PLAYBACK_PROGRESS="pbcProgress",t.PLAYBACK_NEED_MEDIA_ITEM_METADATA="pbcNeedMediaItemMetadata",t.PLAYBACK_NEED_MEDIA_ITEM_SOURCE="pbcNeedMediaItemSource",t.MODE_CHANGE="pbcModeChange",t.RENDERER_SWITCH="pbcRendererSwitch",t.RENDERER_TIMEOUT="pbcRendererTimeout",t.RENDERER_CREATED="pbcRendererCreated",t.SET_PLAYLIST_POSITION_BEFORE="pbcSetPlaylistPositionBefore",t.STOP_CURRENT_PLAYBACK="pbcStopCurrentPlayback",t.MEDIA_ITEM_IS_LOADED="pbcMediaItemIsLoaded",t.MEDIA_ITEM_CURRENT="pbcMediaItemCurrent",t.MEDIA_ITEM_PLAYBACK_STARTED="pbcMediaItemStarted",t.MEDIA_ITEM_PLAYBACK_RESUMED="pbcMediaItemResumed",t.MEDIA_ITEM_PLAYBACK_PROGRESS="pbcMediaItemProgress",t.MEDIA_ITEM_PLAYBACK_ENDED="pbcMediaItemEnded",t.MEDIA_ITEM_PLAYBACK_STOPPED="pbcMediaItemStopped",t.MEDIA_ITEM_ERROR="pbcMediaItemError",t.PLAYLIST_POSITION_HAS_CHANGED="pbcPlaylistPositionChanged",t.PLAYLIST_NO_MORE_ITEM_TO_PLAY="pbcPlaylistNoMoreItemToPlay",t.PLAYLIST_COMPLETE="pbcPlaylistComplete",t.AD_BREAK_STARTED="pbcAdBreakStarted",t.AD_BREAK_ENDED="pbcAdBreakEnded",t.AD_PLAYBACK_STARTED="pbcAdBreakItemStarted",t.AD_PLAYBACK_RESUMED="pbcAdBreakItemResumed",t.AD_PLAYBACK_PROGRESS="pbcAdBreakItemProgress",t.AD_PLAYBACK_ENDED="pbcAdPlaybackEnded",t.AD_BREAK_ERROR="pbcAdBreakItemError",t.AD_CC_LOADED="pbcAdCCLoaded",t.CREATE_OVERLAY_CONTAINER="pbcCreateOverlayContainer",t.AD_METRICS="adMetrics",t.SUBTITLE_TRACK_RECEIVED="pbcSubtitleTrackReceived",t.IN_STREAM_AD_CLICK="pbcInStreamAdClick",t.ENTERPICTUREINPICTURE="pbcEnterPictureInPicture",t.LEAVEPICTUREINPICTURE="pbcLeavePictureInPicture"}(a=i.PlaybackEvent||(i.PlaybackEvent={}));var k=function(t){function i(i,n,e,r){var s=t.call(this,"PlaybackController")||this;return s.BE=!1,s.zE=!0,s.VE=!1,s.GE=!1,s.HE=!1,s.YE=!1,s.qE=!1,s.WE=null,s.QE=null,s.ZE=!1,s.$E=!1,s.vt=i,s.zb=n,s.XE={},s.KE=new l.RendererController(i,n,e,r),s.JE(),s.k_=new g.default,s.vt.setPlaybackState(s.k_),s.tO=new f.AdPlaybackController(i,e),s.iO(),s.nO=new j.default(s,s.vt),s.eO(),s.rO=new N.default(s.vt),s.sO(),s.qi=new E.default(s),s.l_=r,s}return r(i,t),Object.defineProperty(i.prototype,"Tg",{get:function(){return this.vt.playlist},enumerable:!1,configurable:!0}),i.prototype.startPlayback=function(t){return void 0===t&&(t=null),o(this,void 0,void 0,(function(){var i,n=this;return u(this,(function(e){switch(e.label){case 0:return this.k_.criticalError?[2]:this.rO.isPlayerVisible()||this.vt.backgroundPause.startInBackground?(this.k_.shouldPlay=!0,this.nO.resumeStreaming(),this.vt.getState()===_.default.VIDEO?(this.getPlayingItem()instanceof b.default&&!this.k_.hasCurrentItemPlayed&&this.tO.resumeClientAdStartTimer(),this.oO(0),[2]):(i=this.uO())&&this.vt.rendered&&!this.k_.attemptingPlayback()?(this.vt.autoplay||this.BE||(this.BE=!0,this.publish(p.PROFILE_START,p.METRICS.CLICK_TO_START)),this.vt.castState&&this.vt.castState.connected?(this.publish(a.PLAY_CAST),[2]):(t&&(this.vt.requestType=t.type,t.action&&M.default.isValidRequestAction(t.action)&&(this.vt.requestAction=t.action)),this.aO()?this.vt.waitingForUserTap?(this.YE||(this.YE=!0,this.cO=this.once(p.TOUCH_TO_PLAY_RESTRICTION_REMOVED,(function(){return o(n,void 0,void 0,(function(){return u(this,(function(i){switch(i.label){case 0:return this.YE=!1,[4,this.startPlayback(t)];case 1:return i.sent(),[2]}}))}))}),this)),[2]):(this.hO=null,this.vt.isPaused()?(this.playCurrent(),[2]):S.default.autoplaySupported||i.fetchFinished()?[4,this.fO(i)]:(this.publish(a.PLAYBACK_ERROR_BEFORE_METADATA_READY),[2])):(this.vt.showStartScreen=!0,this.vt.autoplay=!1,this.enterInitState(),[2]))):[2]):(this.zb.publish(p.PROFILE_START,p.METRICS.DEFERRING_PLAYBACK),this.qi.enQueue(this.startPlayback,t),this.k_.shouldPlay=!1,[2]);case 1:return e.sent(),[2]}}))}))},i.prototype.playCurrent=function(t){this.vt.setState(_.default.VIDEO),this.l_.enable()||this.KE.play(t)},i.prototype.handleSourceAvailable=function(t){return o(this,void 0,void 0,(function(){var i;return u(this,(function(n){switch(n.label){case 0:return(i=this.uO())&&t?i.equals(t)?this.k_.playingItem instanceof b.default?[4,this.KE.handleAdvancePreparePreloadNextRenderer(t)]:[3,2]:[3,6]:[2];case 1:return n.sent(),[3,5];case 2:return[4,this.tO.prepareAdsForItem(t)];case 3:return n.sent(),[4,this.lO(t)];case 4:n.sent(),n.label=5;case 5:return[3,8];case 6:return[4,this.KE.handleAdvancePreparePreloadNextRenderer(t)];case 7:n.sent(),n.label=8;case 8:return[2]}}))}))},i.prototype.handleAdBreakResolved=function(t,i){this.tO.handleAdBreakResolved(t,i)},i.prototype.getRendererController=function(){return this.KE},i.prototype.handleCriticalError=function(t){this.Q_(),this.k_.criticalError=t,this.vO(),this.KE.endVideo(),this.KE.stopMedia()},i.prototype.pause=function(t){if(this.k_.shouldPlay=!1,this.k_.hasRendererPlayCalled&&this.vt.rendered)if(!1!==this.k_.hasRendererPlaybackStarted){var i=this.vt.castState;if(i&&i.connected&&!i.paused)this.publish(a.PAUSE_CAST);else{if(this.cO)return this.removeEventListener(p.TOUCH_TO_PLAY_RESTRICTION_REMOVED,this.cO),void delete this.cO;if(this.vt.setRequestInfo(t),this.k_.attemptingPlayback())this.getPlayingItem()instanceof b.default&&!this.k_.hasCurrentItemPlayed&&this.tO.pauseClientAdStartTimer(),this.pauseCurrent(),this.Q_(),this.k_.hasCurrentItemPlayed&&this.nO.scheduleSuspend()}}else this.$E=!0},i.prototype.pauseCurrent=function(){this.l_.disable(),this.KE.pause()},i.prototype.seek=function(t){this.vt.rendered&&(this.vt.castState&&this.vt.castState.connected?this.publish(a.SEEK_CAST,t):this.vt.getState()===_.default.VIDEO&&this.KE.seek(t))},i.prototype.seekCurrent=function(t){if(this.vt.rendered&&this.vt.getState()===_.default.VIDEO){var i=this.dO(t);this.seek(i)}},i.prototype.syncPlaybackState=function(){this.KE.syncPlaybackState()},i.prototype.getRawCurrentTime=function(){return this.KE.getCurrentTime()},i.prototype.getCurrentTime=function(){return this.Zd||0},i.prototype.getCurrentDate=function(){return this.KE.getCurrentDate()},i.prototype.rewindAfterEnd=function(t){this.KE.rewindAfterEnd(t)},i.prototype.getRawDuration=function(){return this.KE.getDuration()},i.prototype.getDuration=function(){var t=this.getPlayingItem();if(!t){var i=this.uO();return i?i.duration:NaN}if(t instanceof y.default)return t.duration;if(t instanceof b.default){var n=this.getRawDuration();return isNaN(n)?t.duration:n}return NaN},i.prototype.showAirplayTargetMenu=function(){this.KE.showAirplayTargetMenu()},i.prototype.setQuality=function(t){this.KE.setQuality(t)},i.prototype.setVolume=function(t,i){if(void 0===i&&(i=!1),i)this.KE.setVolume(t);else{var n=this.vt.volume;this.vt.volume=t,this.KE.setVolume(t),this.zb.publish(p.CTRL_VOLUME,n),this.zb.publish(v.ExternalEvt.PLAYER_VOLUME_CHANGE,t)}},i.prototype.setMute=function(t){this.vt.mute=t,this.KE.setMute(t),this.zb.publish(v.ExternalEvt.PLAYER_MUTE_CHANGE,t)},i.prototype.setAudioLanguage=function(t){this.KE.setAudioLanguage(t)},i.prototype.stopMedia=function(){this.KE.stopMedia()},i.prototype.enableMobileNativeCC=function(t){this.KE.enableMobileNativeCC(t)},i.prototype.showExternalCC=function(t){this.KE.showExternalCC(t)},i.prototype.resumeContinuousPlay=function(t){return o(this,void 0,void 0,(function(){var i,n;return u(this,(function(e){switch(e.label){case 0:return this.vt.continuousPlay=!0,i={skipWatchedVideos:this.vt.skipWatchedVideos},this.vt.getState()!==_.default.END?[3,2]:-1===(n=this.Tg.getNextPosition(this.vt.continuousPlay,this.vt.loop,i))?[3,2]:[4,this.setPlaylistPosition(n,!0,t)];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},i.prototype.setPlaylistPosition=function(t,i,n){return o(this,void 0,void 0,(function(){var e,r,s,o;return u(this,(function(u){switch(u.label){case 0:return this.vt.rendered?(e=this.Tg,r=this.uO(),s=e.getMediaItemAt(t),r&&r.equals(s)&&this.k_.isInitializing()?[2]:(this.stopCurrentPlayback(n),this.vt.errors=[],this.k_.criticalError=null,e.position=t,(o=this.uO())?(this.initNewPlayback(o),i?[4,this.startPlayback(n)]:[3,2]):[3,3])):[2];case 1:u.sent(),u.label=2;case 2:return this.publish(a.PLAYLIST_POSITION_HAS_CHANGED,o),[3,4];case 3:this.publish(a.PLAYLIST_NO_MORE_ITEM_TO_PLAY),u.label=4;case 4:return this.publish(a.PLAYBACK_SYNC_VIEW),[2]}}))}))},i.prototype.initNewPlayback=function(t){this.enterInitState(),this.pO(t)},i.prototype.enterInitState=function(){this.vt.setState(_.default.INIT),this.vt.resetPlaybackStates(),this.vt.rebufferReason=null,this.publish(a.PLAYBACK_SYNC_VIEW)},i.prototype.getPlayingItem=function(){return this.bO()},i.prototype.setSeedStreamIndex=function(t){this.KE.setSeedStreamIndex(t)},Object.defineProperty(i.prototype,"recovering",{get:function(){return this.l_.recovering},enumerable:!1,configurable:!0}),i.prototype.stopCurrentPlayback=function(t){var i,n=this.getPlayingItem();n instanceof b.default&&n.offset!==m.AdBreakOffset.POST&&n.mediaItem&&"media/container"!==(null===(i=n.mediaItem)||void 0===i?void 0:i.mimetype)?this.tO.handleAdBreakEnded(n):n instanceof y.default&&(!t||t.type===d.REQUEST_TYPES.CONTINUOUS&&t.action!==d.REQUEST_TYPES.CLICK||this.publish(a.MEDIA_ITEM_PLAYBACK_STOPPED,n),n.position=0,this.k_.looped=!1,this.vt.startTime=NaN,this.vO(n)),this.k_.playingItem=null;var e=this.uO(),r=e&&e.getStreamType()||null;this.mO(r),this.yO(),this.KE.endVideo(),this.KE.stopMedia()},i.prototype.getActiveRenderer=function(){return this.KE.getActiveRenderer()},i.prototype.suspendStreaming=function(){var t;null===(t=this.KE)||void 0===t||t.suspendStreaming()},i.prototype.togglePIP=function(t){var i;null===(i=this.KE)||void 0===i||i.togglePIP(t)},i.prototype.resumeStreaming=function(){var t;null===(t=this.KE)||void 0===t||t.resumeStreaming()},i.prototype.handleVisibilityChange=function(t){return o(this,void 0,void 0,(function(){return u(this,(function(i){switch(i.label){case 0:return this.zb.publish(p.PROFILE_END,p.METRICS.DEFERRING_PLAYBACK),this.qi.deQueue(this.startPlayback,!0),[4,this.nO.onVisibilityChange(t)];case 1:return i.sent(),[2]}}))}))},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.tO.destroy(),this.nO.destroy(),this.KE&&this.KE.destroy(),this.rO&&this.rO.destroy(),this.vy&&this.vy.destroy()},i.prototype.onActiveRendererClick=function(){var t;null===(t=this.vy)||void 0===t||t.onClick(),this.publish(a.CLICK)},i.prototype.onActiveRendererPlaying=function(t){this.publish(p.PROFILE_END,p.METRICS.AD_PLUGIN),this.k_.hasCurrentItemPlayed=!0,this.k_.hasRendererPlaybackStarted=!0;var i=this.getPlayingItem();i instanceof b.default&&(i.duration=t&&t.dur||0),this.k_.playingItem=i,this.QE=null,this.k_.videoLoading()&&(h.userAgent.android||(this.vt.setLoading(!1),this.publish(a.PLAYBACK_SYNC_VIEW))),this.vt.isPaused()&&(this.vt.setPaused(!1),this.gO&&clearTimeout(this.gO),i instanceof y.default?this.publish(a.MEDIA_ITEM_PLAYBACK_RESUMED,i):i instanceof b.default&&(this.k_.shouldPlay=!0,this.publish(a.AD_PLAYBACK_RESUMED,i))),i&&!this.XE[i.id]&&this.wO(i),this.nO.onPlaybackPlaying(this.rO.isPlayerVisible()),this.publish(a.PLAYING,i),!0===this.$E&&(this.pause(),this.$E=!1)},i.prototype.onActiveRendererTimeupdate=function(t){return o(this,void 0,void 0,(function(){var i,n,e,r,s,o,c;return u(this,(function(u){switch(u.label){case 0:return i=t.currentTime,n=t.duration,e=t.buffered,h.userAgent.android&&!this.GE&&(this.vt.setLoading(!1),this.publish(a.PLAYBACK_SYNC_VIEW),this.GE=!0),r=this.getPlayingItem(),this.k_.playingItem=r,this.k_.currentRawTime=i,r?(this._O(r,i),r instanceof y.default&&(r.position=i),r instanceof y.default&&r.adBreaks.length>0&&null===this.QE&&this.tO.nextMidrollCandidate&&!1===this.tO.nextMidrollCandidate.isResolved&&i>=M.default.ISOTimeStampToSeconds(this.tO.nextMidrollCandidate.offset)-5&&(this.tO.nextMidrollCandidate.setIsResolved(!0),this.tO.resolveAdBreak(r,this.tO.nextMidrollCandidate.offset)),r instanceof y.default&&r.adBreaks.length>0&&null===this.QE&&this.tO.nextMidrollCandidate&&(s=M.default.ISOTimeStampToSeconds(this.tO.nextMidrollCandidate.offset),o=s+2,i>=s&&i<=o&&(this.pauseCurrent(),this.tO.playClientAdBreaks(r,m.AdBreakOffset.MID,i))),!T.isNumber(i)||!T.isNumber(n)||i>n+1?[2]:(r.getDuration()||r.isLive()||r.setDuration(n),this.k_.duration=this.getDuration(),this.vt.isLoading()&&(!h.userAgent.safari||h.userAgent.safari<6)?(1.5,this.hO?i-this.hO>=1.5&&(this.hO=null,this.vt.setLoading(!1),this.publish(a.PLAYBACK_SYNC_VIEW)):this.hO=i):this.hO=null,c={playingItem:r,currentTime:i,duration:n,buffered:e},r instanceof y.default?(this.publish(a.MEDIA_ITEM_PLAYBACK_PROGRESS,c),this.vy&&this.vy.onActiveRendererTimeupdate(this.Zd),[3,3]):[3,1])):[2];case 1:return r instanceof b.default?[4,this.publish(a.AD_PLAYBACK_PROGRESS,c)]:[3,3];case 2:u.sent(),u.label=3;case 3:return isNaN(this.getSyncOffset())&&-1!==this.getSyncState()&&this.ZE&&this.zb.publish(p.INVALID_SYNC_OFFSET),this.publish(a.PLAYBACK_PROGRESS,{currentItem:r,currentTime:i,duration:n,buffered:e}),this.publish(a.TIMEUPDATE,t),r.getRecoveryStatus()===I.ItemRecoveryStatus.RECOVERED&&(this.vt.rebufferReason=null),[2]}}))}))},i.prototype.onActiveRendererSeeking=function(t){null===this.QE&&(this.QE=this.k_.currentRawTime),this.vt.setLoading(!0),this.publish(a.SEEKING,t)},i.prototype.onActiveRendererSeeked=function(t){this.vt.setLoading(!1),this.hO=null,this.QE=null,this.WE||this.publish(a.SEEKED,t)},i.prototype.onActiveRendererPlaybackEnded=function(){var t=this.getPlayingItem();t instanceof b.default&&this.tO.handleAdPlaybackEnded(t),this.k_.hasRendererPlaybackStarted=!1},i.prototype.onActiveRendererEnded=function(t){return o(this,void 0,void 0,(function(){var i;return u(this,(function(n){switch(n.label){case 0:return this.k_.playingItem=null,i=this.getPlayingItem(),this._O(i,0),i instanceof y.default?M.default.hasPostrollOffset(i)?(this.vt.setState(_.default.END),[4,this.tO.prepareAdsForItem(i)]):[3,2]:[3,5];case 1:return n.sent(),this.tO.startTracking(i),this.tO.playClientAdBreaks(i,m.AdBreakOffset.POST),[3,4];case 2:return[4,this.EO(i)];case 3:n.sent(),n.label=4;case 4:return[3,6];case 5:i instanceof b.default&&(i.offset===m.AdBreakOffset.ADONLY&&this.yO(),this.tO.handleAdBreakEnded(i,t)),n.label=6;case 6:return[2]}}))}))},i.prototype.onActiveRendererPause=function(){this.vt.onRendererPause()&&this.publish(a.PAUSE)},i.prototype.onActiveRendererPlayComplete=function(t){this.publish(a.AD_METRICS,t)},i.prototype.onActiveRendererError=function(t){var i=this.getPlayingItem();i instanceof y.default?this.publish(a.MEDIA_ITEM_ERROR,i,t):i instanceof b.default&&this.OO(i,t)},i.prototype.onActiveRendererInfo=function(t){this.publish(a.PLAYBACK_INFO,t)},i.prototype.onActiveRendererWaiting=function(t){if(t){if(!h.userAgent.tv){var i=t.value;this.vt.setLoading(i),this.publish(a.PLAYBACK_SYNC_VIEW)}this.publish(a.WAITING,t)}},i.prototype.onActiveRendererStalled=function(){this.publish(a.STALLED)},i.prototype.onActiveRendererLoadStart=function(){this.publish(a.LOADSTART)},i.prototype.onActiveRendererPlay=function(){this.publish(a.PLAY)},i.prototype.onActiveRendererVolumeChange=function(t){var i=this.KE,n=t&&T.isBoolean(t.mute)?t.mute:i.getMuted(),e=t&&T.isNumber(t.volume)?t.volume:i.getVolume();n!==this.vt.mute&&this.publish(a.MUTE_CHANGED,n),e!==this.vt.volume&&this.publish(a.VOLUME_CHANGED,e)},i.prototype.onActiveRendererLoadedData=function(){this.publish(a.LOADEDDATA)},i.prototype.onActiveRendererLoadedMetadata=function(){this.publish(a.LOADEDMETADATA)},i.prototype.onActiveRendererSrcSwitching=function(){this.publish(a.SRC_SWITCHING)},i.prototype.onActiveRendererSrcSwitched=function(){this.publish(a.SRC_SWITCHED)},i.prototype.onActiveRendererPlayBlocked=function(){this.publish(a.PLAYBACK_START_BLOCKED)},i.prototype.onActiveRendererPlayNotBlocked=function(){this.publish(a.PLAYBACK_START_NOT_BLOCKED)},i.prototype.onActiveRendererEndFullscreen=function(){this.publish(a.END_FULLSCREEN)},i.prototype.onActiveRendererEnterFullscreen=function(){this.publish(a.ENTER_FULLSCREEN)},i.prototype.onActiveRendererAdCCLoaded=function(t){this.publish(a.AD_CC_LOADED,t)},i.prototype.onActiveRendererPipModeChanged=function(t){var i;(null===(i=this.Dg)||void 0===i?void 0:i.pip)&&(this.vt.uiState.isPIP="picture-in-picture"===t,this.zb.publish(p.PIP_MODE_CHANGE,t))},i.prototype.onActiveRendererDaterangeStarted=function(t){this.zb.publish(p.DATERANGE_STARTED,t),this.ZE=O.default.isInWatchTogetherDateRange(t),this.vy||(this.vy=new w.default),this.vy.onDateRangeStarted(t,this.Zd)},i.prototype.onActiveRendererDaterangeEnded=function(t){this.zb.publish(p.DATERANGE_ENDED,t),this.ZE=!1,this.vy&&this.vy.onDateRangeEnded(t,this.Zd)},i.prototype.onActiveRendererSubtitleTrackReceived=function(t){this.publish(a.SUBTITLE_TRACK_RECEIVED,t)},i.prototype.onActiveRendererEnterPictureInPicture=function(){this.publish(a.ENTERPICTUREINPICTURE)},i.prototype.onActiveRendererLeavePictureInPicture=function(){this.publish(a.LEAVEPICTUREINPICTURE)},i.prototype.getSyncOffset=function(){return this.KE.getSyncOffset()},i.prototype.getSyncState=function(){return this.KE.getSyncState()},i.prototype.startSync=function(){this.KE.startSync()},i.prototype.stopSync=function(){this.KE.stopSync()},i.prototype.setPlaybackRate=function(t){var i;this.vt.playbackRate=t,null===(i=this.KE)||void 0===i||i.setPlaybackRate(t)},i.prototype.stopAdPlayback=function(t){this.tO.onMediaItemPlaybackEnded(t)},i.prototype.SO=function(t){this.vt.resetPlaybackStates(),this.vt.setState(_.default.VIDEO),this.vt.setLoading(!0),this.publish(a.PLAYBACK_LOADING,t)},i.prototype.AO=function(){this.vt.setPaused(!0),this.publish(a.PLAYBACK_PAUSING)},i.prototype.fO=function(t){return o(this,void 0,void 0,(function(){var i;return u(this,(function(n){switch(n.label){case 0:return this.Dg=t,this.TO(),this.vt.resetPlaybackStates(),this.publish(p.PROFILE_START,p.METRICS.PLAYBACK_START),t.isAdContainer()?(this.tO.startTracking(t),t.adBreaks&&t.adBreaks.length||!t.adConfig?[3,2]:(i=t.hasStreams()?m.AdBreakOffset.PRE:m.AdBreakOffset.ADONLY,[4,this.tO.prepareAdsForItem(t)])):[3,7];case 1:return n.sent(),this.tO.playClientAdBreaks(t,i),this.publish(a.PLAYBACK_SYNC_VIEW),[3,6];case 2:return t.hasNativeAd()?(this.tO.playClientAdBreaks(t,m.AdBreakOffset.ADONLY),[3,6]):[3,3];case 3:return t.hasStreams()?[4,this.Tn(t)]:[3,5];case 4:return n.sent(),[3,6];case 5:n.label=6;case 6:return this.publish(a.PLAYBACK_SYNC_VIEW),[2];case 7:return t.hasSource()?[4,this.Tn(t)]:[3,9];case 8:return n.sent(),this.publish(a.PLAYBACK_SYNC_VIEW),[2];case 9:return this.vt.setState(_.default.WAITING),this.vt.setLoading(!0),this.HE=!0,this.publish(a.PLAYBACK_NEED_MEDIA_ITEM_SOURCE,t),this.publish(a.PLAYBACK_SYNC_VIEW),[2]}}))}))},i.prototype.bO=function(){var t=this.KE.getActiveRenderer();return t?t.getPlayableItem():null},i.prototype.lO=function(t){return o(this,void 0,void 0,(function(){var i,n,e,r=this;return u(this,(function(s){switch(s.label){case 0:if(t.hasLiveStreams()&&t.hasLiveStateForVod())return this.publish(a.PLAYBACK_ERROR_INCONSISTENT_METADATA),[2];if(this.k_.loadedItem=t,t.customConfig&&t.customConfig.meta&&t.customConfig.meta.videoMarkers&&(i=t.customConfig.meta.videoMarkers.markers)&&i.length>0&&this.zb.publish(v.ExternalEvt.MARKERS_RECEIVED,((e={})[t.id]=i,e)),t.hasMetadata())this.k_.attemptingPlayback()||this.qE||this.vt.firstCriticalError||this.enterInitState();else if(!(this.vt&&this.Tg&&this.uO()).equals(t))return[2];return n=t.position||this.vt.startTime,[4,this.KE.prepareNextRenderer(t,(function(i){return o(r,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return i?(this.Q_(),A.default.isHtml5MseAvailable()?this.publish(a.PLAYBACK_ERROR_NO_RENDERER,i):this.publish(a.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED,i),[2]):(this.VE=!1,[4,this.KE.setItemNextRenderer(t,n)]);case 1:return e.sent()?this.HE?(this.HE=!1,this.aO()?[4,this.Tn(t)]:(this.publish(a.PLAYBACK_START_NOT_ALLOWED),[2])):[3,3]:(this.publish(a.PLAYBACK_ERROR_NO_VALID_STREAM),[2]);case 2:return e.sent(),[3,4];case 3:this.KE.preloadNextRenderer(),e.label=4;case 4:return[2]}}))}))}))];case 1:return s.sent(),this.publish(a.MEDIA_ITEM_IS_LOADED,t),this.qE=!1,[2]}}))}))},i.prototype.Tn=function(t){return o(this,void 0,void 0,(function(){return u(this,(function(i){switch(i.label){case 0:return t!==this.uO()||this.MO()?[2]:(this.vt.setState(_.default.VIDEO),this.vt.setLoading(!0),this.publish(a.PLAYBACK_REQUEST,t.id),this.k_.hasStartedPlayback=!0,this.zE=!1,[4,this.tO.prepareAdsForItem(t)]);case 1:return i.sent(),this.tO.startTracking(t),this.publish(p.PROFILE_START,p.METRICS.AD_PLUGIN),this.tO.playClientAdBreaks(t,m.AdBreakOffset.PRE),this.publish(a.PLAYBACK_SYNC_VIEW),[2]}}))}))},i.prototype.jO=function(t){return o(this,void 0,void 0,(function(){var i,n=this;return u(this,(function(e){switch(e.label){case 0:return this.TO(),t!==this.uO()?[2]:(this.mO(t.getStreamType()),this.publish(p.PROFILE_END,[p.METRICS.AD_PLUGIN,p.METRICS.AD_BREAK_END_TO_CLIENT_END]),this.publish(p.PROFILE_START,p.METRICS.AD_CLIENT_END_TO_RENDERER_READY),t.restartIfNeeded(),i=this.vt.startTime||0,t.isLongForm()&&isNaN(this.vt.startTime)&&t.position>0&&(this.vt.isResumingFromSavedPosition=!0,i=t.position),[4,this.KE.prepareNextRenderer(t,(function(e){return o(n,void 0,void 0,(function(){return u(this,(function(n){switch(n.label){case 0:return e?(this.Q_(),[2]):[4,this.KE.setItemNextRenderer(t,i)];case 1:return n.sent()?(this.KE.switchAndPlayNextRenderer(i),[2]):(this.publish(a.PLAYBACK_ERROR_NO_VALID_STREAM),[2])}}))}))}))]);case 1:return e.sent(),[2]}}))}))},i.prototype.NO=function(t){return o(this,void 0,void 0,(function(){var i=this;return u(this,(function(n){switch(n.label){case 0:return[4,this.KE.prepareNextRenderer(t,(function(n){return o(i,void 0,void 0,(function(){return u(this,(function(i){switch(i.label){case 0:return[4,this.KE.setItemNextRenderer(t)];case 1:return i.sent()?(t.type===m.AdBreakType.LINEAR?this.KE.switchAndPlayNextRenderer(void 0,!1,M.default.isMidrollAdBreak(t)):this.KE.playNextRendererInParallel(),[2]):(this.OO(t),[2])}}))}))}))];case 1:return n.sent(),[2]}}))}))},i.prototype.oO=function(t){this.playCurrent(t),this.KE.setPIPMode(this.Dg.pip),this.k_.hasCurrentItemPlayed||this.k_.state===_.default.END||this.SO(t),this.k_.hasRendererPlayCalled=!0},i.prototype.aO=function(){if(!this.zE)return!0;var t=this.uO();return!(this.vt.requestType===d.REQUEST_TYPES.AUTOPLAY&&this.vt.autoplay&&t&&t.blockAutoplay)&&(!h.userAgent.mobile||this.IO())},i.prototype.IO=function(t){return void 0===t&&(t={}),!(this.vt.requestType!==d.REQUEST_TYPES.CLICK&&!this.vt.isAutoplayAllowed())},i.prototype.TO=function(){var t=this.k_;t.hasCurrentItemPlayed=!1,t.hasRendererPlayCalled=!1,t.hasRendererPlaybackStarted=!1},i.prototype.MO=function(){for(var t=0,i=this.vt.errors;t<i.length;t++){var n=i[t];if(n.type||n.code)return n}return null},i.prototype.Q_=function(){this.bd&&clearTimeout(this.bd)},i.prototype.eO=function(){var t=this;this.nO.on(j.PauseHandlerEvents.RESUME_STREAMING,(function(){t.resumeStreaming()}),this),this.nO.on(j.PauseHandlerEvents.SUSPEND_STREAMING,(function(){t.suspendStreaming()}),this),this.nO.on(j.PauseHandlerEvents.CTRL_PLAYPAUSE,(function(i){t.zb.publish(p.CTRL_PLAYPAUSE,i)}),this)},i.prototype.JE=function(){var t=this;this.KE.on(l.RendererControllerEvent.RENDERER_SWITCH,(function(i,n){t.publish(a.RENDERER_SWITCH,i,n)}),this),this.KE.on(l.RendererControllerEvent.RENDERER_TIMEOUT,(function(){t.publish(a.RENDERER_TIMEOUT)}),this),this.KE.on(l.RendererControllerEvent.RENDERER_CREATED,(function(i){t.publish(a.RENDERER_CREATED,i)}),this),this.KE.on(l.RendererControllerEvent.RENDERER_READY_TO_PLAY,(function(i,n){void 0===n&&(n=!1),t.zb.publish(v.ExternalEvt.RENDERER_READY,t.KE.activeRendererType,t.k_.shouldPlay),t.publish(p.PROFILE_END,p.METRICS.AD_CLIENT_END_TO_RENDERER_READY),t.publish(p.PROFILE_START,p.METRICS.RENDERER_READY_TO_PLAYBACK_START),n||(t.k_.shouldPlay?t.oO(i):(t.AO(),t.tO.pauseClientAdStartTimer()))}),this),this.kO(),this.RO()},i.prototype.yO=function(){this.XE={}},i.prototype.pO=function(t){t&&(t.mayUpdateVideoSession(),t.useVideoSession(),this.zb.publish(p.VIDEO_REQUEST,!1),this.publish(a.MEDIA_ITEM_CURRENT,t))},i.prototype.vO=function(t){t&&(t.position=0,this.k_.previousItem=t,this.rewindAfterEnd(t.isLive())),this.vt.setState(_.default.END),this.vt.endVideo(),this.vt.resetPlaybackStates()},i.prototype.wO=function(t){if(this.GE=!1,this.XE[t.id]=!0,this.k_.duration=this.getDuration(),t instanceof y.default){this.WE=null,this.vt.startTime=NaN;var i=this.getRawDuration();t.setRawDuration(i),this.publish(a.MEDIA_ITEM_PLAYBACK_STARTED,t,this.getCurrentTime())}else t instanceof b.default&&this.tO.handleAdPlaybackStarted(t)},i.prototype.OO=function(t,i){this.publish(a.AD_BREAK_ERROR,t,i),this.tO.handleAdBreakError(t)},i.prototype._O=function(t,i){var n;t instanceof y.default&&(n=this.LO(t,i),this.tO.playClientAdBreaks(t,m.AdBreakOffset.OVERLAY,n)),t instanceof b.default&&(n=this.CO(t,i)),this.Zd=n,this.k_.currentTime=n},i.prototype.LO=function(t,i){return i},i.prototype.CO=function(t,i){return i},i.prototype.dO=function(t){return t},i.prototype.EO=function(t){return o(this,void 0,void 0,(function(){var i,n,e,r,s,o,c,h,f,l;return u(this,(function(u){switch(u.label){case 0:return this.yO(),this.WE=null,i=this.Tg,(n=this.uO())&&n===t?(this.tO.onMediaItemPlaybackEnded(t),e=this.vt.continuousPlay,r=this.vt.loop,s=this.vt.showUpNextScreen,o=this.vt.playlistLoop,c={playlistLoop:o,skipWatchedVideos:this.vt.skipWatchedVideos,looped:!1,ended:!1},h=i.getNextPosition(e,r,c),this.publish(a.MEDIA_ITEM_PLAYBACK_ENDED,t,c),this.vt.stopAtLastFrame?(this.pauseCurrent(),this.onActiveRendererPause(),[2]):(this.vO(n),-1===h?[3,2]:(l=void 0,(f=!s&&(e||r))&&(l={type:d.REQUEST_TYPES.CONTINUOUS,action:d.REQUEST_TYPES.AUTOPLAY}),[4,this.setPlaylistPosition(h,f,l)]))):[2];case 1:return u.sent(),this.k_.looped=c.looped,[3,3];case 2:this.publish(a.PLAYLIST_COMPLETE),u.label=3;case 3:return this.publish(a.PLAYBACK_SYNC_VIEW),[2]}}))}))},i.prototype.kO=function(){for(var t=0,i=Object.values(l.ActiveRendererEvent);t<i.length;t++){var n=i[t],e="on"+n;this.KE.on(n,this[e],this)}},i.prototype.RO=function(){var t=this.KE;t.on(l.NextRendererEvent.ERROR,this.DO,this),t.on(l.NextRendererEvent.INFO,this.PO,this),t.on(l.NextRendererEvent.SUBTITLE_TRACK_RECEIVED,this.xO,this)},i.prototype.DO=function(t){this.KE.stopNextRenderer(t)},i.prototype.PO=function(t){this.KE.stopNextRenderer(t)},i.prototype.xO=function(t){this.publish(a.SUBTITLE_TRACK_RECEIVED,t)},i.prototype.iO=function(){var t=this,i=this.tO;i.on(f.AdPlaybackControllerEvent.AD_BREAK_PLAY,(function(i){return o(t,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.NO(i)];case 1:return t.sent(),[2]}}))}))}),this),i.on(f.AdPlaybackControllerEvent.AD_CLIENT_COMPLETED,(function(i,n){return o(t,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:switch(i){case m.AdBreakOffset.PRE:return[3,1];case m.AdBreakOffset.ADONLY:return[3,3]}return[3,4];case 1:return[4,this.jO(n)];case 2:return t.sent(),[3,4];case 3:return[3,4];case 4:return[2]}}))}))}),this),i.on(p.AD_SUBTITLE_TRACK_ADDED,(function(i){t.publish(p.AD_SUBTITLE_TRACK_ADDED,s(s({},i),{itemId:t.getPlayingItem().adBreakId}))}),this),i.on(p.AD_SUBTITLE_NOT_FOUND,(function(){t.publish(p.AD_SUBTITLE_NOT_FOUND)}),this),i.on(f.AdPlaybackControllerEvent.AD_CLIENT_TIMEOUT,(function(i,n){return o(t,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return i===m.AdBreakOffset.PRE?[3,1]:[3,3];case 1:return[4,this.jO(n)];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))}),this),i.on(f.AdPlaybackControllerEvent.AD_BREAK_STARTED,(function(i){t.publish(a.AD_BREAK_STARTED,i)}),this),i.on(f.AdPlaybackControllerEvent.AD_BREAK_ENDED,(function(i,n){return void 0===n&&(n=!0),o(t,void 0,void 0,(function(){var t,e,r=this;return u(this,(function(s){switch(s.label){case 0:return t=i.offset,i.setActive(!1),t!=m.AdBreakOffset.ADONLY?[3,2]:[4,this.EO(i.mediaItem)];case 1:s.sent(),s.label=2;case 2:return this.publish(a.AD_BREAK_ENDED,i),this.WE&&(this.seek(this.WE.deferredSeekTime),this.WE=null),M.default.isMidrollAdBreak(i)?n?(this.vt.startTime=i.mediaItem.position,[4,this.jO(i.mediaItem)]):[3,4]:[3,5];case 3:s.sent(),s.label=4;case 4:e=i.mediaItem.adBreaks.find((function(t){return M.default.isMidrollAdBreak(t)&&M.default.ISOTimeStampToSeconds(t.offset)>r.vt.startTime})),this.tO.nextMidrollCandidate=e||null,s.label=5;case 5:return i.offset!==m.AdBreakOffset.POST?[3,7]:[4,this.EO(i.mediaItem)];case 6:s.sent(),s.label=7;case 7:return[2]}}))}))}),this),i.on(f.AdPlaybackControllerEvent.AD_PLAYBACK_STARTED,(function(i){t.k_.playingItem=i,t.publish(a.AD_PLAYBACK_STARTED,i)}),this),i.on(f.AdPlaybackControllerEvent.AD_PLAYBACK_ENDED,(function(i){t.publish(a.AD_PLAYBACK_ENDED,i)}),this),i.on(f.AdPlaybackControllerEvent.AD_METRICS,(function(i){t.publish(a.AD_METRICS,i)}),this),i.on(f.AdPlaybackControllerEvent.CREATE_OVERLAY_CONTAINER,(function(i){t.publish(a.CREATE_OVERLAY_CONTAINER,i)}),this)},i.prototype.sO=function(){var t=this;this.rO.on(N.VisibilityEvent.PAGE_VISIBILITY_CHANGED,(function(i){return o(t,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.handleVisibilityChange(i)];case 1:return t.sent(),[2]}}))}))}),this)},i.prototype.mO=function(t){this.k_.currentMediaType=t},i.prototype.uO=function(){return this.Tg.getCurrentItem()},i}(c.default);i.PlaybackController=k},36589:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.PlaylistController=i.PlaylistEvent=void 0;var u,a=n(44422),c=n(39451),h=n(26120),f=n(30954),l=n(21962),v=n(21962),d=n(66342),p=n(29554),b=n(40514),m=n(78430),y=f.PLAYLIST_POS.BOTTOM,g=f.PLAYLIST_POS.RIGHT,w=f.PLAYLIST_POS.HIDDEN,_={hidden:200,bottom:540,right:627};function E(t){return d.default.classList(t)}!function(t){t.UI_INTERACT="playlistUiInteract",t.SCROLLED_TO_END="playlistScrolledToEnd",t.BOTTOM_HEIGHT_CHANGE="bottomHeightChange"}(u=i.PlaylistEvent||(i.PlaylistEvent={}));var O=function(t){function i(i,n){var e=t.call(this,"PlaylistController")||this;return e.__=i,e.lw=n,e.UO=i.getRootElement(),e.FO=i.getMainElement(),e.BO=i.getContentNode(),e.vt=i.getModel(),e.zb=i.getEventBus(),e.zO={},e.yt(),e.VO(),e.GO(),e}return r(i,t),i.prototype.destroy=function(){this.HO&&(window.removeEventListener("resize",this.HO),this.HO=null),this.YO&&(this.YO.destroy(),this.YO=null),this.qO(),this.zO&&(this.zb.removeEventListeners(this.zO),this.zO={})},i.prototype.attachUpNextMouseEvents=function(){var t=this;this.WO&&this.WO.addEventListener("mouseover",(function(){E(t.QO).contains("vp-bottom-upnext")||(E(t.QO).add("vp-bottom-upnext"),t.ZO.style.top=t.$O()+"px",t.publish(u.UI_INTERACT,{srcElement:"ctrl-next-hover"}),t.publish(u.UI_INTERACT,{srcElement:"ui_pl_nxt_hvr"}))})),this.WO&&this.WO.addEventListener("mouseout",(function(){window.setTimeout((function(){parseInt(window.getComputedStyle(t.XO).zIndex,10)<0&&(E(t.QO).remove("vp-bottom-upnext"),t.ZO&&t.ZO.removeAttribute("style"))}),100)}))},i.prototype.detachUpNextMouseEvents=function(){var t=this;this.WO&&this.WO.addEventListener("mouseover",(function(){E(t.QO).remove("vp-bottom-upnext"),t.ZO&&t.ZO.removeAttribute("style")}))},i.prototype.togglePlaylistUI=function(t){if(!this.__.getFullscreen()&&this.KO&&this.JO!==w){var i=".vp-playlist-mode-"+this.JO,n=this.BO&&this.BO.querySelector(i);switch(t?E(n).add("vp-hide-playlist"):this.BO.clientWidth>_[this.JO]&&E(n).remove("vp-hide-playlist"),this.JO){case g:!0===t?this.FO&&this.FO.removeAttribute("style"):this.tS();break;case y:!0===t?this.BO&&(this.BO.style.height=this.iS.rootElem.height+"px"):(this.BO&&(this.BO.style.height=this.iS.contentElem.height+"px"),this.UO&&(this.UO.style.height=this.iS.rootElem.height+"px"))}}},i.prototype.getPlaylistRootElement=function(){return this.nS},i.prototype.getPlaylistUIPosition=function(){return this.JO},i.prototype.isPlaylistInStream=function(){return this.eS},i.prototype.isPlaylistShown=function(){return this.KO},i.prototype.onMediaItemLoaded=function(){return s(this,void 0,void 0,(function(){var t;return o(this,(function(i){switch(i.label){case 0:return this.KO?this.rS?[4,this.oS.syncView()]:[3,2]:[3,5];case 1:return i.sent(),[3,5];case 2:return t=this.Tg.getItems().every((function(t){return t.state===h.ItemState.HAS_DATA})),t?[4,this.uS()]:[3,4];case 3:i.sent(),i.label=4;case 4:i.label=5;case 5:return[2]}}))}))},i.prototype.onMediaItemPlaybackStarted=function(t){var i;null===(i=this.oS)||void 0===i||i.syncPgBtns()},i.prototype.onMediaItemCurrent=function(t){this.KO&&(this.aS(),this.oS&&this.oS.onMediaItemCurrent())},i.prototype.onAdBreakStarted=function(){this.KO&&this.cS(!1)},i.prototype.onAdBreakEnded=function(){this.aS()},i.prototype.VO=function(){this.KO&&(this.vt.continuousPlay=!0,this.hS(),this.zO[l.FULLSCREEN_CHANGE]=this.zb.addEventListener(l.FULLSCREEN_CHANGE,this.fS,this),this.zO[v.VideoEvent.ENDED]=this.zb.addEventListener(v.VideoEvent.ENDED,this.lS,this)),this.vS&&(this.YO=new b.default(this.vS,this.dS.bind(this)),d.default.bindKeyboardOutlineEvents(this.vS))},i.prototype.lS=function(){this.cS(!1)},i.prototype.aS=function(){this.KO&&(this.Tg.isEndOfPlaylist()?this.cS(!1):this.cS(!0))},i.prototype.cS=function(t){if(this.KO&&this.pS!==t&&this.WO){var i=this.Tg,n=i?i.getCurrentItem():null;t&&n&&!n.isLive()?E(this.WO).remove("disabled"):E(this.WO).add("disabled"),this.pS=t}},i.prototype.dS=function(){if(c.userAgent.mobile&&this.bS)return this.bS.style.display="block",void(E(this.bS).contains("open")?(E(this.QO).remove("vp-bottom-upnext"),E(this.bS).remove("open"),this.ZO&&this.ZO.removeAttribute("style")):(E(this.bS).add("open"),this.ZO&&(this.ZO.style.top=this.$O()+"px"),E(this.QO).add("vp-bottom-upnext")));this.oS.upNextBtnTapHandler()},i.prototype.mS=function(){var t=this,i=this.__.controls;return!!i&&(this.QO=i&&i.getBottomBar(),this.ZO=this.QO.querySelector(".vp-bottom-container"),this.vS=this.QO.querySelector(".vp-upnext-btn"),this.bS=this.QO.querySelector(".vp-upnext-playlist"),this.WO=this.QO.querySelector(".vp-upnext-container"),i.on(m.ControlsEvent.UP_NEXT_KEYBOARD_ACTION,this.dS.bind(this),this),i.on(m.ControlsEvent.PLAYLIST_KEYBOARD_ACTION,(function(i){var n;null===(n=t.oS)||void 0===n||n.yS(i)}),this),!0)},i.prototype.yt=function(){var t,i=this.vt.playlistUIConfig;if(this.rS=!1,this.JO=null,this.eS=!1,this.KO=!1,i&&!0===i.show&&(this.JO=i.position,!0===i.inStream&&this.JO===g&&(this.eS=!0),!c.userAgent.mobile)){t=this.UO&&this.UO.clientWidth;var n=_[this.JO];t&&t>=n&&(this.KO=!0)}this.KO&&(this.mS()||(this.KO=!1))},i.prototype.hS=function(){var t,i,n,e=this;if(this.KO&&this.JO!==w){switch(this.iS={rootElem:{height:null,width:null},contentElem:{height:null,width:null},mainElem:{height:null,width:null}},this.JO){case y:t=this.UO?this.UO.clientHeight:0,i=t+83,this.UO&&(this.UO.style.height=i+"px"),this.BO&&(this.BO.style.height=t+"px"),this.gS=t+"px",this.iS.rootElem.height=i,this.iS.rootElem.width=this.UO?this.UO.clientWidth:0,this.iS.contentElem.height=this.BO?this.BO.clientHeight:0,setTimeout((function(){e.publish(u.BOTTOM_HEIGHT_CHANGE,{height:i})}));break;case g:n=(this.BO?this.BO.clientWidth:0)-(this.eS?276:318),this.FO&&(this.FO.style.width=n+"px"),this.iS.rootElem.width=this.UO?this.UO.clientWidth:0,this.iS.mainElem.width=n}this.zb.publish(l.PLAYER_DIMENSION_CHANGE,this.__.getPlayerDimensions())}},i.prototype.qO=function(){var t;if(this.KO&&this.JO===y)t=(this.UO?this.UO.clientHeight:0)-83,this.UO&&(this.UO.style.height=t+"px"),this.iS.rootElem.height=t,this.publish(u.BOTTOM_HEIGHT_CHANGE,{height:t})},i.prototype.$O=function(){return(this.BO?this.BO.clientHeight:0)-(this.ZO?this.ZO.clientHeight:0)},i.prototype.uS=function(){return s(this,void 0,void 0,(function(){var t,i,n,e,r;return o(this,(function(s){switch(s.label){case 0:if(c.userAgent.mobile&&this.JO!==w)return[2];switch(this.oS=new p.default(this.zb,this.__,this.vt,this.lw),this.wS(),this.JO){case w:return[3,1];case y:return[3,3];case g:return[3,6]}return[3,9];case 1:return t=this,[4,this.oS.create(w)];case 2:return t.nS=s.sent(),this.XO=this.nS,this.bS&&this.bS.appendChild(this.XO),E(this.WO).remove("hide"),c.userAgent.mobile||this.attachUpNextMouseEvents(),[3,9];case 3:return i=this,[4,this.oS.create(w)];case 4:return i.XO=s.sent(),n=this,[4,this.oS.create(y)];case 5:return n.nS=s.sent(),this.bS&&this.bS.appendChild(this.XO),this.BO&&this.BO.appendChild(this.nS),E(this.WO).remove("hide"),E(this.bS).add("hide"),[3,9];case 6:return e=this,[4,this.oS.create(w)];case 7:return e.XO=s.sent(),r=this,[4,this.oS.create(g)];case 8:return r.nS=s.sent(),this.bS&&this.bS.appendChild(this.XO),this.BO&&this.BO.appendChild(this.nS),E(this.WO).remove("hide"),E(this.bS).add("hide"),[3,9];case 9:return this.oS.setPlaylistViewSize(),this.rS=!0,[2]}}))}))},i.prototype.fS=function(){this.__.isDocked()||this.JO!==w&&(!0===this.__.getFullscreen()?this.JO===y?this.BO&&(this.BO.style.height="100%"):this.JO===g&&this.FO&&this.FO.style&&(this.FO&&(this.FO.style.width="100%"),this.FO&&(this.FO.style.zIndex="1")):this.JO===y?this.BO&&(this.BO.style.height=this.gS):this.JO===g&&(this.FO&&(this.FO.style.width=this.iS.mainElem.width),this.FO&&(this.FO.style.zIndex="auto")))},i.prototype.tS=function(){if(!this.__.getFullscreen())if(this.rS){var t=this.BO?this.BO.clientWidth:0,i=_[this.JO];switch(this.JO){case g:var n=t-(this.eS?276:318);t>=i?(this.FO.style.width=n+"px",this.iS.mainElem.width=n,E(this.nS).remove("vp-hide-playlist")):(this.FO.style.width=t+"px",this.iS.mainElem.width=t,E(this.nS).add("vp-hide-playlist"));break;case y:this.oS&&this.oS.syncPgBtns(),t>=i?E(this.nS).remove("vp-hide-playlist"):E(this.nS).add("vp-hide-playlist")}var e=this.__.getPlayerDimensions();d.default.areDimensionsEqual(e,this.vt.uiState)||this.zb.publish(l.PLAYER_DIMENSION_CHANGE,e)}else this.yt(),this.VO(),this.KO&&this.uS()},i.prototype.wS=function(){var t=this;this.oS.on(p.PlaylistViewEvent.UI_INTERACT,(function(i){t.publish(u.UI_INTERACT,i)}),this),this.oS.on(p.PlaylistViewEvent.SCROLLED_TO_END,(function(){t.publish(u.SCROLLED_TO_END)}),this)},i.prototype.GO=function(){this.HO=this.tS.bind(this),window.addEventListener("resize",this.HO)},Object.defineProperty(i.prototype,"Tg",{get:function(){return this.vt.playlist},enumerable:!1,configurable:!0}),i}(a.default);i.PlaylistController=O},17549:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.PreloadEvent=i.PreloadState=void 0;var s,o,u=n(44422),a=n(21962);!function(t){t.PRELOADING="preloading",t.IDLE="idle"}(s=i.PreloadState||(i.PreloadState={})),function(t){t.START_PRELOAD="startPreload",t.PLAYER_IDLE="playerIdle"}(o=i.PreloadEvent||(i.PreloadEvent={}));var c=function(t){function i(i){var n=t.call(this,"PreloadManager")||this;return n.zb=i,n._S=s.IDLE,n.ES=null,n.LIVE_PRELOAD_TIME_SPAN=6,n.zb.addEventListener(a.PRELOAD_START,n.SS,n),n.zb.addEventListener(a.PRELOAD_COMPLETE,n.rr,n),n}return r(i,t),i.prototype.destroy=function(){this.ES=null,this._S=s.IDLE},i.prototype.startPreload=function(){if(this._S===s.IDLE){var t=this.AS();this.publish(o.START_PRELOAD,t)}},i.prototype.stopPreload=function(){},i.prototype.setPreloadItem=function(t){this.ES=t},i.prototype.AS=function(){return this.ES},i.prototype.SS=function(){this._S=s.PRELOADING},i.prototype.rr=function(){this._S=s.IDLE,this.publish(o.PLAYER_IDLE)},i}(u.default);i.default=c},30083:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.RecoveryMetrics=i.RecovererEvent=i.RECOVERY_STATES=void 0;var s,o=n(44422),u=n(53872),a=n(76389),c=n(21962),h=n(26120),f=n(35244),l=n(40531),v=n(66342),d=n(30954),p=["200","400","501","430","410"],b=["7","57","304","307","903"],m=["700","701","710","711","720","721","722","730","731","732","740","750","760"],y=["103","500","502","503","550","403","404","504"],g=["3","11","12","13","14","27"],w=["3",a.PLAYER_DRM_CODES.E_LICENSE_REQUEST];!function(t){t[t.INIT_OR_PLAYING=0]="INIT_OR_PLAYING",t[t.BUFFERING=1]="BUFFERING",t[t.ERROR=2]="ERROR",t[t.API=3]="API",t[t.RESUME=4]="RESUME",t[t.SRC=5]="SRC",t[t.DRM_KEYSESSION=6]="DRM_KEYSESSION",t[t.DRM_LICENSE=7]="DRM_LICENSE",t[t.DRM_CERT=8]="DRM_CERT",t[t.SAPI=9]="SAPI"}(s=i.RECOVERY_STATES||(i.RECOVERY_STATES={}));var _,E=Object.keys(s);!function(t){t.RECOVERY_START="recoveryStart",t.RECOVERY_DISABLED="recoveryDisabled",t.RECOVERING="recoveryRecovering",t.RECOVERED="recoveryRecovered"}(_=i.RecovererEvent||(i.RecovererEvent={}));var O=function(t){function i(i){var n=t.call(this,"Recoverer")||this;return n.vt=i,n.fg=!1,n.MS=0,n.jS=null,n.NS=!1,n.IS=!1,n.kS=s.INIT_OR_PLAYING,n.Ee=!1,n.Ne=!1,n.eo=new S,n.RS(),n}return r(i,t),i.prototype.enable=function(){return this.kS===s.INIT_OR_PLAYING||this.IS?(this.IS=!0,!1):(this.IS=!0,this.LS(this.kS),!0)},i.prototype.disable=function(){this.IS=!1,this.CS(),this.publish(_.RECOVERY_DISABLED,this.eo.onRecoveryAbort())},i.prototype.recover=function(t){if(this.IS){var i=this.k_;if(!i.ad&&!v.default.isAdBreakOffset(i.currentMediaType)&&!(this.fg&&this.kS!==t||this.NS)){this.DS(this.PS),this.PS=null;var n,e=this.vt.rebufferReason,r=null;this.fg?(r=this.eo.onRecoveryContinue(e),n=_.RECOVERING):(this.fg=!0,r=this.eo.onRecoveryStart(e),this.xS(r),n=_.RECOVERY_START),t===s.RESUME&&this.US(a.WARNING_CODES.E_RECOVER_LONG_PAUSE,null,"Recovering from long pause on live"),this.kS=t||s.API,this.kS!==s.ERROR&&(this.jS=null);var o=this.uO();o&&(o.failoverCount++,o.recoveryStatus=h.ItemRecoveryStatus.RECOVERING,this.publish(n,r))}}else this.kS=t},i.prototype.destroy=function(){this.endRecovery()},i.prototype.stopTimers=function(){this.DS(this.PS),this.PS=null,this.DS(this.FS),this.FS=null},i.prototype.toggleRecoverer=function(t){if(this.Ee=t&&t.value,this.Ee)this.LS(s.BUFFERING);else{if(this.fg&&this.IS){var i=this.eo.onRecovered();this.US(a.WARNING_CODES.E_RECOVERY_STATUS,null,i.status,{recoveryMetrics:i}),this.publish(_.RECOVERED,i)}this.endRecovery()}},i.prototype.onRecoveryMetadataReady=function(){if(this.kS)this.US(a.WARNING_CODES.E_PLAYBACK_FROZEN_DETECTED,null,this.BS()),this.vt.getState()===f.default.VIDEO&&this.IS?this.RS():this.zS();else{var t=this.uO();t&&t.failoverCount--}},i.prototype.onMetadataLoadFailed=function(){this.IS?this.fg&&this.kS===s.BUFFERING&&this.VS():this.nw()},i.prototype.onPlaybackStartBlocked=function(){this.Ne||(this.NS=!0,this.zS(),this.publish(_.RECOVERY_DISABLED,this.eo.onRecoveryAbort()))},i.prototype.onPlaybackStartNotBlocked=function(){this.NS=!1},i.prototype.setItemRecoveryStatus=function(t,i){t.recoveryStatus=i},Object.defineProperty(i.prototype,"recovering",{get:function(){return this.fg},enumerable:!1,configurable:!0}),i.prototype.onPlaying=function(){this.Ne=!1,this.Ee||this.endRecovery()},i.prototype.onSeeking=function(t){return this.Ne=!0,this.eo.onSeeking(t)},i.prototype.onSeeked=function(){return this.Ne=!1,this.eo.onSeeked()},i.prototype.endRecovery=function(){this.zS(),this.CS()},i.prototype.CS=function(){this.DS(this.GS),this.GS=null,this.MS=0},i.prototype.onError=function(t){var i=this;if(t.isRecoverable=!this.HS(t),t.isRecoverable)if(this.MS>10)this.YS();else{var n=this.qS(t);if(this.MS++,this.jS=t,"400"===t.type.toString()&&"7"===t.code.toString())return this.DS(this.FS),this.FS=new u.Timer(1e4*Math.random(),(function(){i.LS(n)}),this,1),void this.FS.start();this.LS(n)}else this.fg&&(t.details.recoveryMetrics=this.eo.onRecoveryError(),this.endRecovery())},i.prototype.getMetrics=function(){return this.eo.getMetrics()},i.prototype.qS=function(t){var i=s.ERROR,n=t.code.toString();y.indexOf(n)>0?i=s.SAPI:n!==a.PLAYER_CODES.E_NATIVE_SRC_NOT_SUPPORTED&&n!==a.PLAYER_CODES.E_NATIVE_ABORTED||(i=s.SRC);var e=a.DRM_DEBUG_CODES;switch(t.debugMessage){case e.KEY_SESSION_FAILED:i=s.DRM_KEYSESSION;break;case e.LICENSE_REQUEST_FAILED:i=s.DRM_LICENSE;break;case e.CERT_LOAD_FAILED:i=s.DRM_CERT}return i},i.prototype.HS=function(t){var i,n,e,r=null===(i=t.type)||void 0===i?void 0:i.toString(),s=p.indexOf(r);s<0&&(e=!0);var o=null===(n=t.code)||void 0===n?void 0:n.toString();switch(p[s]){case a.E_WARNING:e=b.indexOf(o)<0;break;case a.E_PLAYER:e=b.indexOf(o)<0&&m.indexOf(o)<0;break;case a.E_SAPI_STREAM:e=y.indexOf(o)<0;break;case a.E_PLAYER_JS_HLS:e=g.indexOf(o)<0;break;case a.E_PLAYER_DRM:e=w.indexOf(o)<0}return e},i.prototype.RS=function(){this.WS=5e3*Math.random()+1e4,this.QS=2e3,this.DS(this.PS),this.PS=null},i.prototype.uO=function(){return this.vt.playlist?this.vt.playlist.getCurrentItem():null},i.prototype.LS=function(t){if(this.IS&&this.ZS(),t===s.BUFFERING)return this.WS=this.vt.rebufferReason===d.REBUFFERING_REASON.LONG_PAUSE?3e4:this.WS,void this.$S(this.WS);this.recover(t)},i.prototype.zS=function(){this.kS=s.INIT_OR_PLAYING,this.jS=null,this.nw()},i.prototype.nw=function(){this.RS(),this.stopTimers(),this.fg=!1},i.prototype.$S=function(t){var i=this;this.DS(this.PS),this.PS=new u.Timer(t,(function(){i.recover(i.kS?i.kS:s.BUFFERING)}),this,1),this.PS.start()},i.prototype.VS=function(t){(t=!!l.isNullOrUndefined(t)||t)&&(this.WS+=this.QS,this.QS*=2),this.$S(this.WS)},i.prototype.ZS=function(){var t=this;this.GS||(this.GS=new u.Timer(1e3*this.vt.recoveryFailureTimeout,(function(){t.YS()}),this,1),this.GS.start())},i.prototype.YS=function(){var t=new a.default(a.E_PLAYER,a.PLAYER_CODES.E_RECOVERY_FAILURE,null,this.BS(),{prefetch:!1,recoveryMetrics:this.eo.onRecoveryError()});this.publish(c.ERROR,t),this.endRecovery()},i.prototype.DS=function(t){t&&t.destroy(),t=null},i.prototype.BS=function(){var t=this.jS,i=this.kS;return i===s.ERROR?i+"-"+(null==t?void 0:t.codeString)+"-"+(null==t?void 0:t.message):i.toString()},i.prototype.XS=function(t){var i=E.length/2;return E[t+i]},Object.defineProperty(i.prototype,"k_",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),i.prototype.xS=function(t){var i,n,e="recovering;"+((null===(i=this.jS)||void 0===i?void 0:i.codeString)||"")+";"+((null===(n=this.jS)||void 0===n?void 0:n.message)||"");this.US(a.WARNING_CODES.E_RECOVERY_STATUS,null,e,{recoveryMetrics:t})},i.prototype.US=function(t,i,n,e){this.publish(c.WARNING,new a.default(a.E_WARNING,t,i,n,e),{recoveryState:this.XS(this.kS)})},i}(o.default);i.default=O;var S=function(){function t(){this.ze=null,this.KS=0,this.Hm=h.ItemRecoveryStatus.NOT_RECOVERING,this.JS=0,this.tA=""}return t.prototype.getMetrics=function(){return{startTime:this.ze,attemptCount:this.KS,status:this.Hm,rebufferingTime:this.JS,reason:this.tA}},t.prototype.onSeeking=function(t){return this.tA=t,this.iA()},t.prototype.onSeeked=function(){return this.getMetrics()},t.prototype.onRecoveryStart=function(t){return this.tA=t,this.ze=Date.now(),this.JS=0,this.KS++,this.Hm=h.ItemRecoveryStatus.RECOVERING,this.getMetrics()},t.prototype.onRecoveryContinue=function(t){return this.tA=t,this.Hm=h.ItemRecoveryStatus.RECOVERING,this.iA()},t.prototype.onRecovered=function(){this.Hm=h.ItemRecoveryStatus.RECOVERED;var t=this.iA();return this.nw(),t},t.prototype.onRecoveryAbort=function(){var t=this.iA();return this.nw(),t},t.prototype.onRecoveryError=function(){var t=this.iA();return this.nw(),t},t.prototype.nw=function(){this.ze=null,this.Hm=h.ItemRecoveryStatus.NOT_RECOVERING,this.tA="",this.JS=0},t.prototype.iA=function(){return this.ze&&(this.JS=Date.now()-this.ze),this.getMetrics()},t}();i.RecoveryMetrics=S},89489:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.RendererController=i.NextRendererEvent=i.ActiveRendererEvent=i.RendererControllerEvent=void 0;var u,a,c,h=n(44422),f=n(39451),l=n(76389),v=n(50440),d=n(10595),p=n(31204),b=n(2878),m=n(40531),y=n(66342),g=n(41279),w=n(33891),_=n(78259),E=n(98696),O=n(56125),S=n(42758),A=n(41600),T=n(79038),M=n(64685),j=n(16103);!function(t){t.RENDERER_SWITCH="rendererSwitch",t.RENDERER_CREATED="rendererCreated",t.RENDERER_TIMEOUT="errorTimeout",t.RENDERER_READY_TO_PLAY="rendererReadyToPlay",t.PLAY_CALLED="playCalled"}(u=i.RendererControllerEvent||(i.RendererControllerEvent={})),function(t){t.CLICK="ActiveRendererClick",t.SRC_SWITCHING="ActiveRendererSrcSwitching",t.SRC_SWITCHED="ActiveRendererSrcSwitched",t.PLAYBACK_START_BLOCKED="ActiveRendererPlayBlocked",t.PLAYBACK_START_NOT_BLOCKED="ActiveRendererPlayNotBlocked",t.SKIPPED="ActiveRendererSkipped",t.PAUSE="ActiveRendererPause",t.ENDED="ActiveRendererEnded",t.PLAYBACK_ENDED="ActiveRendererPlaybackEnded",t.ERROR="ActiveRendererError",t.INFO="ActiveRendererInfo",t.LOADEDMETADATA="ActiveRendererLoadedMetadata",t.LOADEDDATA="ActiveRendererLoadedData",t.STALLED="ActiveRendererStalled",t.LOADSTART="ActiveRendererLoadStart",t.PLAY="ActiveRendererPlay",t.PLAYING="ActiveRendererPlaying",t.SEEKING="ActiveRendererSeeking",t.SEEKED="ActiveRendererSeeked",t.TIMEUPDATE="ActiveRendererTimeupdate",t.VOLUMECHANGE="ActiveRendererVolumechange",t.WAITING="ActiveRendererWaiting",t.END_FULLSCREEN="ActiveRendererEndFullscreen",t.ENTER_FULLSCREEN="ActiveRendererEnterFullscreen",t.PIP_MODE_CHANGED="ActiveRendererPipModeChanged",t.PLAY_COMPLETE="ActiveRendererPlayComplete",t.DATERANGE_STARTED="ActiveRendererDaterangeStarted",t.DATERANGE_ENDED="ActiveRendererDaterangeEnded",t.AD_CC_LOADED="ActiveRendererAdCCLoaded",t.SUBTITLE_TRACK_RECEIVED="ActiveRendererSubtitleTrackReceived",t.ENTERPICTUREINPICTURE="ActiveRendererEnterPictureInPicture",t.LEAVEPICTUREINPICTURE="ActiveRendererLeavePictureInPicture"}(a=i.ActiveRendererEvent||(i.ActiveRendererEvent={})),function(t){t.SRC_SWITCHING="NextRendererSrcSwitching",t.SRC_SWITCHED="NextRendererSrcSwitched",t.PAUSE="NextRendererPaused",t.ENDED="NextRendererEnded",t.ERROR="NextRendererVideoError",t.INFO="NextRendererVideoInfo",t.LOADEDMETADATA="NextRendererLoadedMetadata",t.LOADEDDATA="NextRendererLoadedData",t.STALLED="NextRendererStalled",t.LOADSTART="NextRendererLoadStart",t.PLAY="NextRendererPlay",t.PLAYING="NextRendererPlaying",t.SEEKING="NextRendererSeeking",t.SEEKED="NextRendererSeeked",t.TIMEUPDATE="NextRendererTimeupdate",t.VOLUMECHANGE="NextRendererVolumechange",t.WAITING="NextRendererWaiting",t.SUBTITLE_TRACK_RECEIVED="NextRendererSubtitleTrackReceived"}(c=i.NextRendererEvent||(i.NextRendererEvent={}));var N=function(t){function i(i,n,e,r){var s=t.call(this,"RendererController")||this;return s.lw=e,s.vt=i,s.zb=n,s.l_=r,s.nA=null,s.eA=null,s.rA=null,s.sA=null,s.oA=null,s.uA={},s.aA={},s.cA={},s.hA=s.fA(),s.lA=!1,s}return r(i,t),Object.defineProperty(i.prototype,"activeRendererType",{get:function(){var t,i;return(null===(i=null===(t=this.nA)||void 0===t?void 0:t.type)||void 0===i?void 0:i.toLowerCase())||""},enumerable:!1,configurable:!0}),i.prototype.prepareNextRenderer=function(t,i){var n,e,r;return s(this,void 0,void 0,(function(){var a,c,h,d,p,m,y=this;return o(this,(function(g){switch(g.label){case 0:return i||(i=function(){return s(this,void 0,void 0,(function(){return o(this,(function(t){return[2]}))}))}),t?[3,2]:[4,i(new Error("no playable item to be rendered"))];case 1:case 4:case 6:case 8:return g.sent(),[2];case 2:return[4,this.vA(t)];case 3:return a=g.sent(),c=a?M.RendererType.AD_PLUGIN:t.rendererType,f.userAgent.safari&&t instanceof v.default&&(!t.isLive()||(null===(n=null==t?void 0:t.license)||void 0===n?void 0:n.isDrm))&&(c=M.RendererType.HTML5_RAW),c?[3,5]:(h=void 0,d=void 0,p=void 0,b.default.isHtml5MseAvailable()?(h=l.E_PLAYER,d=l.PLAYER_CODES.E_NO_RENDERER_FOUND,p="no renderer type is applicable for the playable item"):(h=l.E_INFO,d=l.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED,p="flash renderer is not supported for the playable item"),[4,i(new l.default(h,d,"",p))]);case 5:return m=this.dA(t),this.sA!==m?[3,7]:this.lA?[2]:[4,i()];case 7:return!this.hA&&(null===(e=this.nA)||void 0===e?void 0:e.type)===c&&(null===(r=this.nA)||void 0===r?void 0:r.type)!==M.RendererType.AD_PLUGIN||t.isRecovering()&&this.nA?this.rA=this.nA:(this.rA=c===M.RendererType.AD_PLUGIN?this.pA(a):this.bA(c),this.mA(this.rA)),this.sA=m,this.lA=!0,[4,this.rA.waitForReady((function(t){return s(y,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return this.lA=!1,t&&(this.publish(u.RENDERER_TIMEOUT),this.rA&&this.yA(this.rA)),[4,i(t)];case 1:return n.sent(),[2]}}))}))}))]}}))}))},i.prototype.setItemNextRenderer=function(t,i){return void 0===i&&(i=0),s(this,void 0,void 0,(function(){var n,e,r,u,a=this;return o(this,(function(c){switch(c.label){case 0:return t?(n=this.dA(t),this.sA===n?[3,2]:[4,this.prepareNextRenderer(t,(function(n){return s(a,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return n?[2]:[4,this.setItemNextRenderer(t,i)];case 1:return e.sent(),[2]}}))}))}))]):[2,!1];case 1:return c.sent(),[2,!0];case 2:return e=this.dA(t,i),this.oA===e?[2,!0]:this.rA?(this.oA=e,r=this.rA.getSyncState(),u=this.rA.setPlayableItem(t,i,this.l_.recovering),-1!==r&&this.l_.recovering&&this.rA.startSync(),[2,u]):[2,!1]}}))}))},i.prototype.preloadNextRenderer=function(t){var i;if(null===(i=this.rA)||void 0===i?void 0:i.preload){var n=this.rA.getPlayableItem();if(n&&(this.vt.preload||t)&&this.rA.type===M.RendererType.HTML5_HLS){var e={startOffset:n.customConfig&&n.customConfig.playbackStart||NaN,bufferLimit:this.vt.preloadBufferSize||30};this.rA.preload(e)}}},i.prototype.setSeedStreamIndex=function(t){var i;null===(i=this.nA)||void 0===i||i.setSeedStreamIndex(t)},i.prototype.switchAndPlayNextRenderer=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),this.switchToNextRenderer(i,n),this.publish(u.RENDERER_READY_TO_PLAY,t,n)},i.prototype.playNextRendererInParallel=function(){this.rA&&(delete this.uA[this.rA.type],this.gA(this.rA),this.wA(this.rA),this.sA=null,this.oA=null)},i.prototype.switchToNextRenderer=function(t,i){var n=this;void 0===t&&(t=!1),void 0===i&&(i=!1),this.rA&&(delete this.uA[this.rA.type],this.gA(this.rA),i?(this.rA.once(M.RendererEvent.PLAYING,(function(t){n.pause(),n.switchToRenderer(n.rA,!1),n.publish(a.PLAYING,t)}),this),this.rA.play()):this.switchToRenderer(this.rA,t),this.sA=null,this.oA=null)},i.prototype.didRendererTimeOut=function(){var t;return!!(null===(t=this.nA)||void 0===t?void 0:t.timedOut)},i.prototype.getActiveRenderer=function(){return this.nA},i.prototype.getNextRendererNode=function(){var t;return(null===(t=this.rA)||void 0===t?void 0:t.node)||null},i.prototype.syncPlaybackState=function(){this.nA&&(this.nA.paused=this.vt.isPaused(),this.nA.seeking=this.vt.isSeeking())},i.prototype.rewindAfterEnd=function(t){if(this.nA)if(t)switch(this.nA.type){case M.RendererType.HTML5_RAW:case M.RendererType.HTML5_HLS:this.nA.node&&(this.nA.node.src="")}else this.nA.seek(0)},i.prototype.play=function(t){this.publish(u.PLAY_CALLED),this.nA&&this.nA.play(t),this.eA&&this.eA.play(t)},i.prototype.pause=function(){var t;this.eA&&m.isFunction(this.eA.pause)&&this.eA.pause(),this.nA&&(this.nA.type===M.RendererType.HTML5_TV_TIZEN||this.nA.type===M.RendererType.HTML5_TV_ORSAY||(m.isFunction(this.nA.pause)?this.nA.pause():null===(t=this.nA.node)||void 0===t||t.pause()))},i.prototype.getCurrentDate=function(){return this.nA&&this.nA.getCurrentDate()||0},i.prototype.endVideo=function(){var t=this.nA;t&&!t.ended&&(t.ended=!0,t.type===M.RendererType.HTML5_TV_TIZEN||t.type===M.RendererType.HTML5_TV_ORSAY||(m.isFunction(t.stop)?t.stop():t.node&&t.node.pause()))},i.prototype.seek=function(t){var i;null===(i=this.nA)||void 0===i||i.seek(t)},i.prototype.getCurrentTime=function(){return this.nA?this.nA.getCurrentTime():0},i.prototype.getDuration=function(){return this.nA?this.nA.getDuration():NaN},i.prototype.getMuted=function(){var t;return null===(t=this.nA)||void 0===t?void 0:t.getMuted()},i.prototype.getVolume=function(){return this.nA?this.nA.getVolume():NaN},i.prototype.setQuality=function(t){var i;null===(i=this.nA)||void 0===i||i.setQuality(t)},i.prototype.showAirplayTargetMenu=function(){var t;(null===(t=this.nA)||void 0===t?void 0:t.showAirplayTargetMenu)&&this.nA.showAirplayTargetMenu()},i.prototype.setPIPMode=function(t){var i;null===(i=this.nA)||void 0===i||i.setPIPMode(t)},i.prototype.setVolume=function(t){var i;null===(i=this.nA)||void 0===i||i.setVolume(t)},i.prototype.setMute=function(t){var i;null===(i=this.nA)||void 0===i||i.setMute(!!t)},i.prototype.setAudioLanguage=function(t){var i;(null===(i=this.nA)||void 0===i?void 0:i.setAudioLanguage)&&this.nA.setAudioLanguage(t)},i.prototype.stopMedia=function(){var t,i;return null===(t=this.nA)||void 0===t||t.detachNode(),null===(i=this.nA)||void 0===i?void 0:i.stopMedia()},i.prototype.stopNextRenderer=function(t){var i,n,e;return null===(i=this.rA)||void 0===i||i.setError(t),null===(n=this.rA)||void 0===n||n.detachNode(),null===(e=this.rA)||void 0===e?void 0:e.stopMedia()},i.prototype.switchToRenderer=function(t,i){this._A(this.nA);var n=this.nA,e=n&&n!==t;e&&f.userAgent.mobile&&b.default.exitFullscreen(n.node),this.EA(t),this.vt.playbackState.rendererType=t.type,this.setVolume(this.vt.volume),this.setMute(this.vt.mute),this.OA(this.nA),e&&(n.type===M.RendererType.HTML5_HLS_360||n.type===M.RendererType.HTML5_RAW_360||n.type===M.RendererType.AD_PLUGIN?y.default.classList(n.container).remove("vp-renderer-active"):n.node&&y.default.classList(n.node).remove("vp-renderer-active"),i?this.yA(n):this.SA(n)),this.AA(t,!0),t.type===M.RendererType.HTML5_HLS_360||t.type===M.RendererType.HTML5_RAW_360||t.type===M.RendererType.AD_PLUGIN?y.default.classList(t.container).add("vp-renderer-active"):t.node&&y.default.classList(t.node).add("vp-renderer-active"),this.publish(u.RENDERER_SWITCH,n,t)},i.prototype.wA=function(t){var i=this;this.eA=t,this.eA.on(M.RendererEvent.ENDED,(function(){i.AA(i.eA,!1),i.eA=null}),this),t.setActive(!0),t.play()},i.prototype.enableMobileNativeCC=function(t){var i;(null===(i=this.nA)||void 0===i?void 0:i.enableMobileNativeCC)&&this.nA.enableMobileNativeCC(t)},i.prototype.showExternalCC=function(t){var i;(null===(i=this.nA)||void 0===i?void 0:i.showExternalCC)&&this.nA.showExternalCC(t)},i.prototype.handleAdvancePreparePreloadNextRenderer=function(t){return s(this,void 0,void 0,(function(){var i=this;return o(this,(function(n){switch(n.label){case 0:return t?t.rendererType!==M.RendererType.HTML5_HLS?[2]:[4,this.prepareNextRenderer(t,(function(n){return s(i,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return n||this.rA===this.nA?[3,2]:[4,this.setItemNextRenderer(t,0)];case 1:i.sent(),this.preloadNextRenderer(!0),i.label=2;case 2:return[2]}}))}))}))]:[2];case 1:return n.sent(),[2]}}))}))},i.prototype.suspendStreaming=function(){var t;null===(t=this.nA)||void 0===t||t.suspendStreaming()},i.prototype.resumeStreaming=function(){var t;null===(t=this.nA)||void 0===t||t.resumeStreaming()},i.prototype.getSyncOffset=function(){return this.nA?this.nA.getSyncOffset():NaN},i.prototype.getSyncState=function(){return this.nA?this.nA.getSyncState():-1},i.prototype.startSync=function(){var t;null===(t=this.nA)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.nA)||void 0===t||t.stopSync()},i.prototype.setPlaybackRate=function(t){var i;null===(i=this.nA)||void 0===i||i.setPlaybackRate(t)},i.prototype.togglePIP=function(t){var i;null===(i=this.nA)||void 0===i||i.togglePIP(t)},i.prototype.destroy=function(){var t,i;null===(t=this.nA)||void 0===t||t.destroy(),null===(i=this.rA)||void 0===i||i.destroy()},i.prototype.OA=function(t){t&&(this.TA(t,M.CustomRendererEvent,a,this.aA),this.TA(t,M.RendererEvent,a,this.aA))},i.prototype._A=function(t){t&&(t.removeEventListeners(this.aA),this.aA={})},i.prototype.mA=function(t){t&&t!==this.nA&&this.TA(t,M.RendererEvent,c,this.cA)},i.prototype.gA=function(t){t&&(t.removeEventListeners(this.cA),this.cA={})},i.prototype.TA=function(t,i,n,e){var r=this;if(e)for(var s=function(s){if(i[s]){var u=i[s];e[u]=t.on(u,(function(t){n[s]&&r.publish.call(r,n[s],t)}),o)}},o=this,u=0,a=Object.keys(i);u<a.length;u++){s(a[u])}},i.prototype.MA=function(t){var i=this.vt,n=this.zb,e=this.uA[t];if(e)return e.bindCustomEvents(),e;switch(t){case M.RendererType.HTML5_HLS:e=new w.default(n,i);break;case M.RendererType.HTML5_RAW_360:e=new O.default(n,i);break;case M.RendererType.HTML5_HLS_360:e=new _.default(n,i);break;case M.RendererType.AD_PLUGIN:e=new T.default(this.lw.getContainer(g.PluginMimeType.MARTINI,g.ContainerType.LINEAR));break;case M.RendererType.HTML5_TV:e=new S.default(n,i);break;case M.RendererType.HTML5_TV_ORSAY:e=new A.default(n,i);break;case M.RendererType.HTML5_TV_TIZEN:e=new j.default(n,i);break;case M.RendererType.HTML5_RAW:default:e=new E.default(n,i)}return this.publish(u.RENDERER_CREATED,e),this.jA(e,t),e},i.prototype.bA=function(t){return this.MA(t)},i.prototype.pA=function(t){var i;if((null===(i=this.nA)||void 0===i?void 0:i.type)===M.RendererType.AD_PLUGIN&&this.nA.getAdPluginPlayer()===t)return this.nA;var n=this.bA(M.RendererType.AD_PLUGIN);return n.setAdPluginPlayer(t),n},i.prototype.SA=function(t){var i=[M.RendererType.HTML5_RAW_360,M.RendererType.HTML5_HLS_360,M.RendererType.AD_PLUGIN];if(t){var n=t.type;this.AA(t,!1),this.uA[n]||-1!==i.indexOf(n)?t.destroy():this.jA(t,n)}},i.prototype.AA=function(t,i){t&&(i?(t.detachNode&&t.detachNode(),t.reattachNode&&t.reattachNode()):(t.detachNode&&t.detachNode(),t.stopMedia&&t.stopMedia()))},i.prototype.vA=function(t){return s(this,void 0,void 0,(function(){var i;return o(this,(function(n){switch(n.label){case 0:return t instanceof d.default&&t.mimetype?[4,this.lw.getPlugin(g.PluginType.AD,t.mimetype)]:[2,null];case 1:return(i=n.sent())&&m.isAdPluginPlayer(i)?[2,i]:[2,null]}}))}))},i.prototype.dA=function(t,i){var n,e=[];return i||(i=0),e.push(t.rendererType),e.push(i),t instanceof d.default?(e.push("ad"),e.push(t.id),t.mimetype&&e.push(t.mimetype)):t instanceof v.default&&(e.push("mediaItem"),e.push(t.id),(n=t.streams)&&n.length>0&&e.push(n[0].url)),e.join("|")},i.prototype.fA=function(){var t=f.userAgent.mobile&&!p.default.hasNativeAutoplaySupport;return!(f.userAgent.tv||f.userAgent.ios||t)},i.prototype.yA=function(t){return delete this.uA[t.type],t.destroy()},i.prototype.EA=function(t){t&&(this.nA=t,t.setActive(!0))},i.prototype.jA=function(t,i){t&&(this.uA[i]=t,t.setActive(!1))},i}(h.default);i.RendererController=N},14411:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.VisibilityEvent=void 0;var s,o=n(44422),u=n(30954);!function(t){t.PAGE_VISIBILITY_CHANGED="pageVisibilityChanged"}(s=i.VisibilityEvent||(i.VisibilityEvent={}));var a=[{prop:"hidden",name:"visibilitychange"},{prop:"mozHidden",name:"mozvisibilitychange"},{prop:"webkitHidden",name:"webkitvisibilitychange"},{prop:"msHidden",name:"msvisibilitychange"}],c=function(t){function i(i){var n=t.call(this,"VisibilityManager")||this;return n.vt=i,n.NA=null,n.IA="hidden",n.kA=null,n.NA=n.RA(),n.NA&&(n.LA=n.LA.bind(n),document.addEventListener(n.NA,n.LA,!1)),n}return r(i,t),i.prototype.destroy=function(){this.NA&&(document.removeEventListener(this.NA,this.LA,!1),this.NA=null)},i.prototype.isPlayerVisible=function(){var t=this.CA();return!(document[this.IA]||t&&null===t.offsetParent||!1)},i.prototype.RA=function(){var t=a.filter((function(t){return t.prop in document})),i=t&&t[0];return i?(this.IA=i.prop,i.name):null},i.prototype.CA=function(){if(this.kA)return this.kA;var t=this.vt.playerRootElement,i=t&&void 0!==t.getElementsByClassName&&t.getElementsByClassName(u.VIDEO_MAIN_ELEMENT_CLASS);return this.kA=i&&i.length&&i[0]||null,this.kA},i.prototype.LA=function(){this.publish(s.PAGE_VISIBILITY_CHANGED,this.isPlayerVisible())},i}(o.default);i.default=c},41560:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s=n(44422),o=n(39451),u=n(93840),a=n(9987),c=n(84141),h=n(53072),f=n(80726),l=n(42079),v=n(71372),d=n(21962),p=n(67029),b=n(92759),m=n(12663),y=n(95125),g=n(21080),w=n(65549),_=n(89740),E=n(11594),O=n(40531),S=n(66342),A=n(30954),T=n(41880),M=n(40660).Validator,j="e87cdb6eaf",N=function(t){function i(i,n){var e=t.call(this,"CorePlayer")||this;return e.DA=!1,e.version="0.5.65",e.playerType="PLAYER_TYPE",e.language="SCRIPT_LANGUAGE_I18N",e.config=i,e.mediaStore=n,e.PA(i),e.guid=i.playerId||S.default.generateGuid(),e.xA(),e.hb(i,n),e}return r(i,t),i.prototype.destroy=function(){var i;t.prototype.destroy.call(this),null===(i=this.r_)||void 0===i||i.destroy(),this.tn&&(this.tn.destroy(),this.tn=null),this.UA(),window.removeEventListener("pageshow",this.FA,!1)},i.prototype.initialize=function(){this.tn&&this.tn.initialize()},i.prototype.render=function(t){return this.BA(),this.zA=t,this.tn&&this.tn.render(t),this},i.prototype.getMediaItems=function(){return this.GA.getMediaItems()},i.prototype.removeAllMediaItems=function(){this.GA.removeAllMediaItems()},i.prototype.removeMediaItems=function(t){this.GA.removeMediaItems(t)},i.prototype.insertMediaItems=function(t,i){this.GA.insertMediaItems(t,i)},i.prototype.appendMediaItems=function(t){this.GA.appendMediaItems(t)},i.prototype.getCurrentMediaItem=function(){return this.GA.getCurrentMediaItem()},i.prototype.setCurrentMediaItem=function(t){this.GA.setCurrentMediaItem(t)},i.prototype.setMediaItemTitle=function(t,i){this.GA.setMediaItemTitle(t,i);var n=this.getCurrentMediaItem();(null==n?void 0:n.id)===t&&this.tn.updateCurrentItemTitle(i)},i.prototype.getMediaItemMarkers=function(t){return this.GA.getMediaItemMarkers(t)},i.prototype.getCurrentAdBreak=function(){return this.HA.getCurrentAdBreak()},i.prototype.play=function(t,i){this.YA.play(t,i)},i.prototype.pause=function(t){this.YA.pause(t)},i.prototype.mute=function(){this.YA.setMute(!0)},i.prototype.unMute=function(){this.YA.setMute(!1)},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),O.isNumber(t)&&this.YA.setVolume(t,i)},i.prototype.seek=function(t){this.YA.seek(t)},i.prototype.registerPlugin=function(t){var i;null===(i=this.tn)||void 0===i||i.registerPlugin(t)},i.prototype.getVideoElement=function(){var t;return this.BA(),(null===(t=this.tn)||void 0===t?void 0:t.videoElement)||null},i.prototype.getRootElement=function(){var t;return this.BA(),(null===(t=this.tn)||void 0===t?void 0:t.rootElement)||null},i.prototype.suspendState=function(){if(!o.userAgent.desktop&&!this.isSuspended()){this.BA();var t={boundEvents:this.N,currentTime:this.YA.getCurrentTime(),mediaStore:this.getMediaStore(),playlist:this.tn.getPlaylistItems(),position:this.qA.getPosition(),selector:this.zA};return this.DA=!0,this.destroy(),t}},i.prototype.resumeState=function(t){this.isSuspended()&&t&&(this.DA=!1,this.hb(this.config,t.mediaStore),this.qA.setItems(t.playlist),this.qA.setPosition(t.position),this.tn.startTime=t.currentTime,this.N=t.boundEvents)},i.prototype.isSuspended=function(){return this.DA},i.prototype.isRendered=function(){var t;return this.BA(),(null===(t=this.tn)||void 0===t?void 0:t.rendered)||!1},i.prototype.preload=function(){this.YA.preload()},i.prototype.disableControls=function(){this.YA.disableControls()},i.prototype.enableControls=function(){this.YA.enableControls()},i.prototype.enableCC=function(t){this.YA.enableCC(t)},i.prototype.disableCC=function(){this.YA.disableCC()},i.prototype.isPlayMode=function(){return this.tn.isPlayMode()},i.prototype.isLoading=function(){return this.tn.isLoading()},i.prototype.getPlaybackState=function(){return this.YA.getPlaybackState()},i.prototype.getCurrentTime=function(){return this.YA.getCurrentTime()},i.prototype.getRawCurrentTime=function(){return this.YA.getRawCurrentTime()},i.prototype.getDuration=function(){return this.YA.getDuration()},i.prototype.getRawDuration=function(){return this.YA.getRawDuration()},i.prototype.getTimeRemaining=function(){return this.YA.getTimeRemaining()},i.prototype.setFullscreen=function(t){void 0===t&&(t=!0),this.YA.setFullscreen(t)},i.prototype.getFullscreen=function(){return this.YA.getFullscreen()},i.prototype.getVolume=function(){return this.YA.getVolume()},i.prototype.isAd=function(){return this.tn.isAd()},i.prototype.setMute=function(t){void 0===t&&(t=!0),this.YA.setMute(t)},i.prototype.getMute=function(){return this.YA.getMute()},i.prototype.addCustomControlElement=function(t){return this.tn.addCustomControlElement(t)},i.prototype.setLoop=function(t){this.YA.setLoop(t)},i.prototype.setContinuousPlay=function(t){void 0===t&&(t=!0),this.YA.setContinuousPlay(t)},i.prototype.resumeContinuousPlay=function(){this.YA.resumeContinuousPlay()},i.prototype.setPlaybackRate=function(t){var i;void 0===t&&(t=1),A.PLAYBACK_RATES.includes(t)&&(null===(i=this.YA)||void 0===i||i.setPlaybackRate(t))},i.prototype.getCurrentDate=function(){return this.YA.getCurrentDate()},i.prototype.setStartInBackground=function(t){this.tn.model.startInBackground=t},i.prototype.addItems=function(t,i){this.qA.addItems(t,i)},i.prototype.addMetricsEventListener=function(t,i){var n=this.WA.getAllExternalEvtNames();return this.addEventListeners(n,t,i)},i.prototype.setAudioLanguage=function(t){this.YA.setAudioLanguage(t)},i.prototype.getPlaylist=function(){return this.qA},i.prototype.getMediaStore=function(){return this.BA(),{QA:this.tn.mediaStore}},i.prototype.getPlaybackStartDto=function(){var t,i=null===(t=this.tn)||void 0===t?void 0:t.model,n=this.r_;return i&&n?{isResume:i.isResumingFromSavedPosition,initTime:n.startTime,cmsLatency:n.getItem(d.METRICS.CMS_REQUEST),cmsSourceLatency:n.getItem(d.METRICS.CMS_SOURCE_REQUEST),playbackStartLatency:n.getItem(d.METRICS.PLAYBACK_START),autoPlayLatency:n.getItem(d.METRICS.INIT_TO_START),deferringPlaybackLatency:n.getItem(d.METRICS.DEFERRING_PLAYBACK),autoPlayAllowed:i.isAutoplayAllowed(),clickToPlayLatency:n.getItem(d.METRICS.CLICK_TO_START),adPluginLatency:n.getItem(d.METRICS.AD_PLUGIN),streamReqToRenderLatency:n.getItem(d.METRICS.STREAM_REQUEST_TO_RENDER),adBreakEndToClientEnd:n.getItem(d.METRICS.AD_BREAK_END_TO_CLIENT_END),adClientEndToRendererReady:n.getItem(d.METRICS.AD_CLIENT_END_TO_RENDERER_READY),rendererReadyToPlaybackStart:n.getItem(d.METRICS.RENDERER_READY_TO_PLAYBACK_START)}:{}},i.prototype.getInitTime=function(){return this.r_.startTime},i.prototype.__setError=function(t,i,n,e,r){var s;this.BA(),null===(s=this.tn)||void 0===s||s.setCustomError(t,n,e,r)},i.prototype.__getSyncOffset=function(){var t;return(null===(t=this.tn)||void 0===t?void 0:t.getSyncOffset())||NaN},i.prototype.startSync=function(){var t;null===(t=this.tn)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.tn)||void 0===t||t.stopSync()},i.prototype.isDocked=function(){return this.BA(),this.tn&&this.tn.docked},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.BA(),this.tn.updateDockingConfig(t,i,n,e,r,s)},i.prototype.undockVideoPlayer=function(t){this.BA(),this.tn.undockVideoPlayer(t)},i.prototype.PA=function(t){try{var i=new M;i.addSchema(y.streamSchema,"/streamSchema"),i.addSchema(m.sourceSchema,"/sourceSchema"),i.addSchema(b.mediaItemSchema,"/mediaItemSchema"),i.addSchema(w.uiSchema,"/uiSchema"),i.addSchema(_.vrmSchema,"/vrmSchema"),i.addSchema(g.streamSynchSchema,"/streamSynchSchema"),i.validate(t,p.configSchema,{throwError:!0})}catch(t){var n="Invalid player config: ".concat(t.property," ").concat(t.message);throw new Error(n)}},i.prototype.hb=function(t,i){this.zb=new s.default("internal"),this.ZA();var n=null;i&&(n=i.QA||null),this.$A(),this.r_=new E.Profiler(this.zb),this.tn=new v.default(t,n,this.guid,this.zb,this.r_),this.WA=new h.ExternalEvtAPI(this,this.tn,this.zb),this.WA.enablePublish(),this.tn.initNewPlayback(),this.YA=new c.default(this.tn),this.qA=new l.default(this.tn),this.GA=new f.default(this.tn),this.HA=new a.default(this.tn)},i.prototype.$A=function(){var t=this;this.FA=function(i){i.persisted&&t.XA()},o.userAgent.safari&&window.addEventListener("pageshow",this.FA,!1)},i.prototype.BA=function(){if(this.isSuspended()||!this.tn)throw new Error("INVALID_STATE_ERR: Player instance no longer usable");return!0},i.prototype.XA=function(){this.destroy(),this.hb(this.config,this.mediaStore),this.render(this.zA)},i.prototype.UA=function(){this.KA.forEach((function(t){t.destroy()})),this.KA=[]},i.prototype.ZA=function(){var t=this;this.KA=this.KA||[],!0===this.config.analytics&&this.KA.push(new T.default(this));var i=!1;this.zb.addEventListener(h.ExternalEvt.NIELSEN_REQUIRED,(function(){if(!i){var n=(t.config.nielsenConfig||{}).nielsenAppId||null;t.KA.push(new u.default(t,n)),i=!0}}),this)},i.prototype.xA=function(){var t=this.config.cssTheme,i=S.default.getCssBuildUrl(j.indexOf("local")>-1,j,t);S.default.loadCssAsset("vp-css",i,(function(){S.default.setSingleton("isCSSLoaded",!0)}),(function(){S.default.setSingleton("isCSSError",!0)}))},i}(s.default);i.default=N},28110:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CERT_DATA=void 0,i.CERT_DATA=new Uint8Array([48,130,4,203,48,130,3,179,160,3,2,1,2,2,8,13,86,142,88,131,182,234,139,48,13,6,9,42,134,72,134,247,13,1,1,5,5,0,48,127,49,11,48,9,6,3,85,4,6,19,2,85,83,49,19,48,17,6,3,85,4,10,12,10,65,112,112,108,101,32,73,110,99,46,49,38,48,36,6,3,85,4,11,12,29,65,112,112,108,101,32,67,101,114,116,105,102,105,99,97,116,105,111,110,32,65,117,116,104,111,114,105,116,121,49,51,48,49,6,3,85,4,3,12,42,65,112,112,108,101,32,75,101,121,32,83,101,114,118,105,99,101,115,32,67,101,114,116,105,102,105,99,97,116,105,111,110,32,65,117,116,104,111,114,105,116,121,48,30,23,13,49,56,48,51,50,57,49,57,51,57,49,53,90,23,13,50,48,48,51,50,57,49,57,51,57,49,53,90,48,98,49,11,48,9,6,3,85,4,6,19,2,85,83,49,20,48,18,6,3,85,4,10,12,11,89,97,104,111,111,47,32,73,110,99,46,49,19,48,17,6,3,85,4,11,12,10,50,65,82,78,74,89,51,56,70,87,49,40,48,38,6,3,85,4,3,12,31,70,97,105,114,80,108,97,121,32,83,116,114,101,97,109,105,110,103,58,32,89,97,104,111,111,47,32,73,110,99,46,48,129,159,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,129,141,0,48,129,137,2,129,129,0,188,20,145,11,182,224,114,206,51,252,37,198,52,3,54,245,37,134,121,169,73,236,52,112,24,241,70,22,210,115,167,90,251,200,152,188,188,122,248,143,243,225,173,191,185,30,115,239,103,231,218,198,227,19,127,170,241,201,173,213,94,209,56,9,94,211,3,7,194,64,210,84,119,83,195,185,15,252,8,33,33,15,107,215,254,95,9,86,83,212,175,88,26,254,114,126,151,63,228,22,210,127,45,230,42,171,74,61,159,64,71,40,184,184,17,128,230,57,139,130,231,123,92,174,174,146,237,49,2,3,1,0,1,163,130,1,234,48,130,1,230,48,29,6,3,85,29,14,4,22,4,20,127,187,42,2,137,89,223,166,117,128,127,189,93,223,97,53,42,199,159,128,48,12,6,3,85,29,19,1,1,255,4,2,48,0,48,31,6,3,85,29,35,4,24,48,22,128,20,99,228,71,84,203,133,113,89,70,44,131,172,204,68,49,100,103,3,44,190,48,129,226,6,3,85,29,32,4,129,218,48,129,215,48,129,212,6,9,42,134,72,134,247,99,100,5,1,48,129,198,48,129,195,6,8,43,6,1,5,5,7,2,2,48,129,182,12,129,179,82,101,108,105,97,110,99,101,32,111,110,32,116,104,105,115,32,99,101,114,116,105,102,105,99,97,116,101,32,98,121,32,97,110,121,32,112,97,114,116,121,32,97,115,115,117,109,101,115,32,97,99,99,101,112,116,97,110,99,101,32,111,102,32,116,104,101,32,116,104,101,110,32,97,112,112,108,105,99,97,98,108,101,32,115,116,97,110,100,97,114,100,32,116,101,114,109,115,32,97,110,100,32,99,111,110,100,105,116,105,111,110,115,32,111,102,32,117,115,101,44,32,99,101,114,116,105,102,105,99,97,116,101,32,112,111,108,105,99,121,32,97,110,100,32,99,101,114,116,105,102,105,99,97,116,105,111,110,32,112,114,97,99,116,105,99,101,32,115,116,97,116,101,109,101,110,116,115,46,48,53,6,3,85,29,31,4,46,48,44,48,42,160,40,160,38,134,36,104,116,116,112,58,47,47,99,114,108,46,97,112,112,108,101,46,99,111,109,47,107,101,121,115,101,114,118,105,99,101,115,46,99,114,108,48,14,6,3,85,29,15,1,1,255,4,4,3,2,5,32,48,49,6,11,42,134,72,134,247,99,100,6,13,1,3,1,1,255,4,31,1,112,116,53,108,106,117,104,50,102,111,115,108,106,116,102,103,109,114,122,117,100,104,103,116,112,122,121,51,117,116,48,55,6,11,42,134,72,134,247,99,100,6,13,1,4,1,1,255,4,37,1,97,100,110,104,120,103,103,98,117,98,103,100,105,120,122,115,105,51,122,103,98,48,116,104,112,120,49,117,101,120,105,102,49,120,102,56,48,13,6,9,42,134,72,134,247,13,1,1,5,5,0,3,130,1,1,0,155,63,179,107,215,161,134,119,228,77,138,78,87,241,189,105,187,60,231,127,57,73,95,133,174,62,237,222,209,0,87,24,52,128,67,149,102,150,113,197,14,188,171,149,139,249,109,9,94,21,47,226,21,186,199,199,183,95,27,14,202,148,181,196,237,147,238,206,58,104,48,21,239,155,201,207,146,89,111,98,114,120,193,63,127,204,58,30,122,74,170,83,58,218,54,92,98,255,74,171,27,195,3,239,143,161,92,75,81,98,37,58,220,215,222,215,65,8,159,71,5,63,30,149,177,185,23,77,219,37,13,43,28,51,163,18,29,63,243,65,129,133,169,25,169,114,68,171,130,246,187,8,133,177,113,25,188,2,220,47,116,87,59,255,169,121,192,200,89,36,15,30,160,154,5,20,196,147,241,130,22,197,154,202,213,75,142,195,70,202,227,211,81,54,249,97,142,239,1,169,235,126,188,40,24,173,192,157,190,90,231,88,101,46,186,209,207,188,109,86,204,175,64,171,101,210,40,93,76,13,4,161,110,242,65,13,0,202,238,19,197,227,71,30,11,210,211,158,62,49,218,231,185,172,166,120])},14593:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(53872),r=n(76389),s=n(66342),o=n(28110),u="https://assets.video.yahoo.net/fairplay.cer",a=r.PLAYER_DRM_CODES,c=function(){function t(t,i,n,e){this.JA=null,this.Vr=t,this.tT=i||u,this.JA=this.tT===u?o.CERT_DATA:null,this.iT=n,this.nT=e,this.eT=this.rT.bind(this),this.sT=this.oT.bind(this),this.uT=this.aT.bind(this),this.init()}return t.prototype.destroy=function(){this.Vr.removeEventListener("webkitneedkey",this.eT),this.cT&&(this.hT(),this.cT=null)},t.prototype.init=function(){this.Vr.addEventListener("webkitneedkey",this.eT)},t.prototype.hT=function(){this.cT.removeEventListener("webkitkeymessage",this.sT),this.cT.removeEventListener("webkitkeyerror",this.uT)},t.prototype.fT=function(){var t=this;null!==this.tT&&""!==this.tT?void 0!==window.WebKitMediaKeys?this.JA?this.lT():e.Loader.ajax(this.tT,{method:"GET",context:this,headers:{Pragma:"Cache-Control: no-cache","Cache-Control":"max-age=0"},responseType:"arraybuffer",successHandler:function(i){t.JA=new Uint8Array(i),t.JA.length?t.lT():t.vT(a.E_CERT_NO_DATA)},failureHandler:function(i){t.vT(a.E_CERT_LOAD_FAILED,i.toString())},timeout:1e4}):this.vT(r.INFO_CODES.E_DRM_UNSUPPORTED_BROWSER):this.vT(a.E_CERTPATH_MISSING)},t.prototype.lT=function(){var t=this.dT(this.pT),i=this.bT(t),n=this.mT(this.pT,i,this.JA);if(!this.Vr.webkitKeys){var e=this.yT();this.Vr.webkitSetMediaKeys(new WebKitMediaKeys(e))}this.Vr.webkitKeys?(this.cT&&(this.hT(),this.cT.close()),this.cT=this.Vr.webkitKeys.createSession("video/mp4",n),this.cT?(this.cT.contentId=i,this.cT.destinationURL=t,this.cT.addEventListener("webkitkeymessage",this.sT),this.cT.addEventListener("webkitkeyadded",(function(t){})),this.cT.addEventListener("webkitkeyerror",this.uT)):this.vT(a.E_KEY_SESSION_FAILED)):this.vT(a.E_KEY_CREATION_FAILED)},t.prototype.rT=function(t){this.iT(),null!==t.initData?(this.pT=t.initData,this.fT()):this.vT(a.E_INIT)},t.prototype.oT=function(t){this.gT(t.target,t.message)},t.prototype.aT=function(t){this.vT(a.E_KEY_ERROR,t.currentTarget.error.code+"-"+t.currentTarget.error.systemCode)},t.prototype.bT=function(t){var i=document.createElement("a");i.href=t;var n=i.search.substr(1).split("&").filter((function(t){return t.length>2&&"b"===t[0]&&"="===t[1]}));return n.length?n[0].split("=")[1]:""},t.prototype.dT=function(t){var i=s.default.array16ToString(t).replace("skd://","https://");return i=i.substring(1,i.length)},t.prototype.mT=function(t,i,n){"string"==typeof i&&(i=s.default.stringToArray16(i));var e=0,r=new ArrayBuffer(t.byteLength+4+i.byteLength+4+n.byteLength),o=new DataView(r);new Uint8Array(r,e,t.byteLength).set(t),e+=t.byteLength,o.setUint32(e,i.byteLength,!0),e+=4;var u=new Uint8Array(r,e,i.byteLength);return u.set(i),e+=u.byteLength,o.setUint32(e,n.byteLength,!0),e+=4,new Uint8Array(r,e,n.byteLength).set(n),new Uint8Array(r,0,r.byteLength)},t.prototype.yT=function(){return WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4")?"com.apple.fps.1_0":(this.vT(a.E_NO_KEY_SYSTEM),null)},t.prototype.gT=function(t,i){var n=this,o={spc:s.default.base64EncodeUint8Array(i),assetId:t.contentId};e.Loader.ajax(t.destinationURL,{method:"POST",body:JSON.stringify(o),context:this,responseTypeJson:!0,beforeSend:function(i){i.session=t},successHandler:function(t,i,e,r){n.wT(t,r.session)},failureHandler:function(t,i,e){var s=403===e?r.INFO_CODES.E_DRM_FORBIDDEN_LICENSE:a.E_LICENSE_REQUEST;n.vT(s)},timeout:1e4})},t.prototype.wT=function(t,i){i.update(s.default.base64DecodeUint8Array(t.ckc))},t.prototype.vT=function(t,i){var n,e;r.default.isInfoCode(t)?(n=r.E_INFO,e=r.INFO_CODES):(n=r.E_PLAYER_DRM,e=a);Object.keys(e)[parseInt(t,10)-1];this.nT(n,t,"",i),this.destroy()},t}();i.default=c},76389:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DRM_DEBUG_CODES=i.CAST_CODES=i.SAPI_CODES=i.PLAYER_JS_HLS_CODES=i.PLAYER_DRM_CODES=i.PLAYER_CODES=i.WARNING_CODES=i.INFO_CODES=i.E_PLAYER_JS_HLS=i.E_PLAYER_DRM=i.E_PLAYER_FAILOVER=i.E_PLAYER=i.E_CAST=i.E_SAPI_CLOSEDCAPTION=i.E_SAPI_POPULAR=i.E_SAPI_RELATED=i.E_SAPI_PLAYLIST=i.E_SAPI_STREAM=i.E_SAPI_ABSTRACT=i.E_YVAP=i.E_WARNING=i.E_INFO=void 0;var e=n(39451),r=n(1954),s=n(53872).errorCodes,o=["305","306","307"];i.E_INFO=s.E_INFO,i.E_WARNING=s.E_WARNING,i.E_YVAP=s.E_YVAP,i.E_SAPI_ABSTRACT=s.E_SAPI_ABSTRACT,i.E_SAPI_STREAM=s.E_SAPI_STREAM,i.E_SAPI_PLAYLIST=s.E_SAPI_PLAYLIST,i.E_SAPI_RELATED=s.E_SAPI_RELATED,i.E_SAPI_POPULAR=s.E_SAPI_POPULAR,i.E_SAPI_CLOSEDCAPTION=s.E_SAPI_CLOSEDCAPTION,i.E_CAST=s.E_CAST,i.E_PLAYER=s.E_PLAYER,i.E_PLAYER_FAILOVER=s.E_PLAYER_FAILOVER,i.E_PLAYER_DRM=s.E_PLAYER_DRM,i.E_PLAYER_JS_HLS=s.E_PLAYER_JS_HLS,i.INFO_CODES=s.INFO_CODES,i.WARNING_CODES=s.WARNING_CODES,i.PLAYER_CODES=s.PLAYER_CODES,i.PLAYER_DRM_CODES=s.PLAYER_DRM_CODES,i.PLAYER_JS_HLS_CODES=s.PLAYER_JS_HLS_CODES,i.SAPI_CODES=s.SAPI_CODES,i.CAST_CODES=s.CAST_CODES;var u=i.INFO_CODES,a=i.WARNING_CODES,c=i.PLAYER_CODES,h=i.SAPI_CODES;!function(t){t.KEY_SESSION_FAILED="1",t.LICENSE_REQUEST_FAILED="2",t.CERT_LOAD_FAILED="3"}(i.DRM_DEBUG_CODES||(i.DRM_DEBUG_CODES={}));var f=function(){function t(t,i,n,e,r){if(!t||!i)throw new Error("Error must be created with a type and code");this.details=r||{},this.type=t,this.code=i,this._T=n||null,this.debugMessage=e||null,this.prefetch=(null==r?void 0:r.prefetch)||!1,this.isRecoverable=!1}return t.isInfoCode=function(t){for(var i in u)if(Object.prototype.hasOwnProperty.call(u,i)&&u[i]===t)return!0;return!1},Object.defineProperty(t.prototype,"codeString",{get:function(){return this.type+"-"+this.code},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return g.getTitle(this.type,this.code)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._T||g.getMessage(this.type,this.code,this.Yg())},enumerable:!1,configurable:!0}),t.prototype.Yg=function(){var t=this.details,i=t?t.playbackState:null,n=i?i.loadedItem:null;return n&&n.isLive()},t}();i.default=f;var l=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE,v=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO,d=r.default.ERR_TITLE_SOMETHING_WENT_WRONG,p=r.default.ERR_GENERAL_ERROR,b=r.default.ERR_UNAVAILABLE,m=r.default.ERR_TECH_DIFFICULTIES,y=r.default.ERR_BROWSER_UNSUPPORTED,g=function(){function t(){}return t.getTitle=function(t,n){switch(t){case i.E_INFO:switch(n){case u.E_SAPI_LICENSE_ERROR:case u.E_SAPI_GEO:case u.E_SAPI_BLACKOUT:return l}return v;case i.E_WARNING:return n===a.E_LIVE_PLAYBACK_COMPLETE?l:d;case i.E_PLAYER:case i.E_PLAYER_FAILOVER:switch(n){case c.E_NATIVE_SRC_NOT_SUPPORTED:return l;case c.E_NATIVE_ABORTED:return v}return d;case i.E_PLAYER_DRM:return v;case i.E_SAPI_ABSTRACT:case i.E_SAPI_STREAM:case i.E_SAPI_PLAYLIST:case i.E_SAPI_RELATED:case i.E_SAPI_POPULAR:case i.E_SAPI_CLOSEDCAPTION:switch(n){case h.E_INCOMPATIBLE_FORMAT:return d;case h.E_UNAUTHORIZED_USER:case h.E_DRM_RESTRICTED:case h.E_RESTRICTED_TO_INTERNAL:return v}return l}return d},t.getMessage=function(t,n,s){switch(t){case i.E_INFO:return this.ET(n);case i.E_WARNING:return n===a.E_LIVE_PLAYBACK_COMPLETE?r.default.ERR_LIVE_PLAYBACK_COMPLETE:p;case i.E_PLAYER:case i.E_PLAYER_FAILOVER:return-1!==o.indexOf(n)&&s&&(e.userAgent.android||e.userAgent.ios)?r.default.ERR_LIVE_IOS_PLAYBACK:n===c.E_NATIVE_NETWORK_FAILURE?r.default.ERR_NETWORK_ISSUE:p;case i.E_SAPI_ABSTRACT:case i.E_SAPI_STREAM:case i.E_SAPI_PLAYLIST:case i.E_SAPI_RELATED:case i.E_SAPI_POPULAR:case i.E_SAPI_CLOSEDCAPTION:switch(n){case h.E_UNAUTHORIZED_USER:case h.E_RESTRICTED_TO_INTERNAL:return b;case h.E_INCOMPATIBLE_FORMAT:case h.E_NO_STREAMS:return p}return r.default.ERR_MISSING_OR_DAMAGED}return m},t.ET=function(t){switch(t){case u.E_SAPI_LICENSE_ERROR:return b;case u.E_SAPI_GEO:return r.default.ERR_GEO;case u.E_SAPI_BLACKOUT:return r.default.ERR_BLACKOUT;case u.E_SAPI_DEVICE:return r.default.ERR_DEVICE;case u.E_SAPI_EMBED:return r.default.ERR_EMBED;case u.E_PLAYER_ANDROID_CHROME_REQUIRED:return r.default.ERR_ANDROID_LIVE_CHROME_REQUIRED;case u.E_PLAYER_NO_COMPATIBLE_FORMAT:case u.E_FLASH_RENDERER_NOT_SUPPORTED:return y;case u.E_PLAYER_360_IS_NOT_SUPPORTED:return r.default.ERR_BROWSER_UNSUPPORTED_SKIP_IN_10;case u.E_DRM_UNSUPPORTED_OS:return e.userAgent.ios?r.default.ERR_DRM_IOS_UNSUPPORTED_OS_VER:m;case u.E_DRM_UNSUPPORTED_BROWSER:if(e.userAgent.android)return r.default.ERR_DRM_ANDROID_UNSUPPORTED_BROWSER;if(e.userAgent.ios)return r.default.ERR_DRM_IOS_UNSUPPORTED_BROWSER}return m},t}()},21962:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.TOUCH_TO_PLAY_RESTRICTION_REMOVED=i.RENDERER_SWITCHED=i.MORE_ITEMS_LOADED=i.METADATA_AVAILABLE=i.PLAYLIST_BOTTOM_HEIGHT_CHANGE=i.PLAYER_DIMENSION_CHANGE=i.PIP_MODE_CHANGE=i.FULLSCREEN_CHANGE=i.CONTROLS_SET_MUTE=i.CONTROLS_SET_VOLUME=i.CONTROLS_SEEKING=i.CONTROLS_SEEK_END=i.CONTROLS_SEEK_START=i.TOGGLE_PLAY_PAUSE=i.SEEK_BAR_MOUSEOUT=i.SEEK_BAR_MOUSEOVER=i.UP_NEXT_PG_CLICK=i.RELATED_ITEM_CLICK=i.CTRL_ENDSCREEN_VID=i.END_SCREEN_RENDERED=i.START_SCREEN_CLICK=i.START_SCREEN_RENDERED=i.WINDOW_ON_BLUR=i.WINDOW_ON_FOCUS=i.KEYDOWN=i.INTERNAL_ERROR=i.INTERNAL_INFO=i.INFO=i.WARNING=i.ERROR=i.TIMED_METADATA_RECEIVED=i.VA_PLAYER_API=i.VA_PASSTHROUGH=i.VA_METRICS=i.OPSS_VISIBILITY_CHANGED=i.AD_METRICS=i.AD_CLICKED=i.AD_PLAYBACK_ENDED=i.AD_PLAYBACK_STARTED=i.AD_BREAK_ENDED=i.AD_BREAK_STARTED=i.MEDIA_ITEM_COMPLETE=i.MEDIA_ITEM_CURRENT=i.MEDIA_ITEM_REMOVED=i.MEDIA_ITEM_ADDED=i.MEDIA_ITEM_METADATA=i.MEDIA_ITEM_ERROR=i.MEDIA_ITEM_NEED_SOURCE=i.STREAM_SYNCH_STRATEGY_APPLIED=i.STREAM_SYNCH_COMPLETE=void 0,i.CTRL_VOLUME=i.CTRL_SEEK=i.CTRL_PLAYPAUSE=i.API_CALLED=i.PLAYBACK_ERROR=i.PLAYBACK_STOPPED=i.PLAYBACK_COMPLETE=i.PLAYBACK_STALLED=i.PLAYBACK_PROGRESS=i.PLAYBACK_RESUMED=i.PLAYBACK_STARTED=i.PLAYBACK_REQUEST=i.VIDEO_REQUEST=i.VideoEvent=i.BUFFER_GROWTH_DETECTED=i.PRELOAD_COMPLETE=i.PRELOAD_PROGRESS=i.PRELOAD_START=i.CONTENT_LOAD_FINISHED=i.SEG_INFO_AVAILABLE=i.HLSVideoEvent=i.INVALID_SYNC_OFFSET=i.DATERANGE_ENDED=i.DATERANGE_STARTED=i.LIVE_RELOAD_MEDIA=i.PAGE_VISIBILITY_CHANGED=i.AD_SUBTITLE_NOT_FOUND=i.AD_SUBTITLE_TRACK_ADDED=i.SUBTITLE_TRACK_RECEIVED=i.PLAYBACK_INFO=i.CONVIVA_READY_FOR_SESSION_CREATION=i.ER_ERROR=i.ER_READY=i.RECOVERED=i.RECOVERING=i.RECOVERY_DISABLED=i.RECOVERY_START=i.LIVE_LOADING_LATE=i.SUBTITLE_PLAYLIST_UPDATED=i.MEDIA_PLAYLIST_UPDATED=i.SEGMENT_FIRST_BYTE_LOADED=i.VTT_SEGMENT_LOADED=i.PLAYER_RESIZE=i.THREE_SIXTY_PIE_INTERACT=i.THREE_SIXTY_INTERACT=i.THREE_SIXTY_READY=i.MULTI_LANGUAGES_AVAILABLE=i.CONTROLS_AUDIO_CHANGE=i.CAST=i.RENDER_PLAYLIST_FIRST_BATCH=void 0,i.PROFILE_END=i.PROFILE_START=i.Device=i.METRICS=i.BEFORE_INCOMPLETE_EXIT=i.BEFORE_PROGRESS_BEACON=i.CTV=i.CCEvent=i.CTRL_PLAYREQUEST=i.CTRL_REPLAY=i.CTRL_SETTINGS=i.CTRL_FULLSCREEN=void 0,i.STREAM_SYNCH_COMPLETE="streamsynchComplete",i.STREAM_SYNCH_STRATEGY_APPLIED="streamsynchStrategyApplied",i.MEDIA_ITEM_NEED_SOURCE="mediaItemNeedSource",i.MEDIA_ITEM_ERROR="mediaItemError",i.MEDIA_ITEM_METADATA="mediaItemMetadata",i.MEDIA_ITEM_ADDED="mediaItemAdded",i.MEDIA_ITEM_REMOVED="mediaItemRemoved",i.MEDIA_ITEM_CURRENT="mediaItemCurrent",i.MEDIA_ITEM_COMPLETE="mediaItemComplete",i.AD_BREAK_STARTED="adBreakStarted",i.AD_BREAK_ENDED="adBreakEnded",i.AD_PLAYBACK_STARTED="adPlaybackStarted",i.AD_PLAYBACK_ENDED="adBreakItemEnded",i.AD_CLICKED="adBreakItemClicked",i.AD_METRICS="adMetrics",i.OPSS_VISIBILITY_CHANGED="opssVisibilityChanged",i.VA_METRICS="vaMetrics",i.VA_PASSTHROUGH="vaPassthrough",i.VA_PLAYER_API="vaPlayerApi",i.TIMED_METADATA_RECEIVED="timedMetadataReceived",i.ERROR="player-error",i.WARNING="player-warning",i.INFO="player-info",i.INTERNAL_INFO="playerInternalInfo",i.INTERNAL_ERROR="playerInternalError",i.KEYDOWN="keydown",i.WINDOW_ON_FOCUS="focus",i.WINDOW_ON_BLUR="blur",i.START_SCREEN_RENDERED="startScreenRendered",i.START_SCREEN_CLICK="startScreenClick",i.END_SCREEN_RENDERED="endScreenRendered",i.CTRL_ENDSCREEN_VID="selectedEndscreenVideo",i.RELATED_ITEM_CLICK="relatedItemClick",i.UP_NEXT_PG_CLICK="upNextPgClick",i.SEEK_BAR_MOUSEOVER="seekBarMouseover",i.SEEK_BAR_MOUSEOUT="seekBarMouseout",i.TOGGLE_PLAY_PAUSE="togglePlayPause",i.CONTROLS_SEEK_START="controlsSeekStart",i.CONTROLS_SEEK_END="controlsSeekEnd",i.CONTROLS_SEEKING="controlsSeeking",i.CONTROLS_SET_VOLUME="controlsSetVolume",i.CONTROLS_SET_MUTE="controlsSetMute",i.FULLSCREEN_CHANGE="fullscreenChange",i.PIP_MODE_CHANGE="pipModeChange",i.PLAYER_DIMENSION_CHANGE="playerDimensionChange",i.PLAYLIST_BOTTOM_HEIGHT_CHANGE="playlistBottomHeightChange",i.METADATA_AVAILABLE="metadataAvailable",i.MORE_ITEMS_LOADED="moreItemsLoaded",i.RENDERER_SWITCHED="rendererSwitched",i.TOUCH_TO_PLAY_RESTRICTION_REMOVED="mobileTouchPlayRestrictionRemoved",i.RENDER_PLAYLIST_FIRST_BATCH="renderPlaylistFirstBatch",function(t){t.TOGGLE_PLAYING="cTogglePlaying",t.BUFFERING="cBuffering",t.MEDIA_CHANGED="cMediaChanged",t.PLAYBACK_PROGRESS="cPlaybackProgress",t.VIDEO_ENDED="cVideoEnded",t.PLAYLIST_ENDED="cPlaylistEnded",t.CONNECTION_STATUS_CHANGED="cConnChanged",t.VOLUME_CHANGED="cReceiverVolumeChanged",t.MUTE_CHANGED="cReceiverMuteChanged",t.CAPTION_AVAILABILITY_CHANGED="cCaptionsAvailabilityChanged"}(i.CAST||(i.CAST={})),i.CONTROLS_AUDIO_CHANGE="controlsAudioChange",i.MULTI_LANGUAGES_AVAILABLE="multiLanguagesAvailable",i.THREE_SIXTY_READY="360Ready",i.THREE_SIXTY_INTERACT="360Interact",i.THREE_SIXTY_PIE_INTERACT="360PieInteract",i.PLAYER_RESIZE="playerResize",i.VTT_SEGMENT_LOADED="vttSegmentLoaded",i.SEGMENT_FIRST_BYTE_LOADED="segmentFirstByteLoaded",i.MEDIA_PLAYLIST_UPDATED="mediaPlaylistUpdated",i.SUBTITLE_PLAYLIST_UPDATED="subtitlePlaylistUpdated",i.LIVE_LOADING_LATE="liveLoadingLate",i.RECOVERY_START="recoveryStart",i.RECOVERY_DISABLED="recoveryDisabled",i.RECOVERING="recovering",i.RECOVERED="recovered",i.ER_READY="erReady",i.ER_ERROR="erError",i.CONVIVA_READY_FOR_SESSION_CREATION="convivaReadyForSessionCreation",i.PLAYBACK_INFO="playbackInfo",i.SUBTITLE_TRACK_RECEIVED="subtitleTrackReceived",i.AD_SUBTITLE_TRACK_ADDED="adSubtitleTrackAdded",i.AD_SUBTITLE_NOT_FOUND="adSubtitleNotFound",i.PAGE_VISIBILITY_CHANGED="pageVisibilityChanged",i.LIVE_RELOAD_MEDIA="reloadMedia",i.DATERANGE_STARTED="daterangeStarted",i.DATERANGE_ENDED="daterangeEnded",i.INVALID_SYNC_OFFSET="invalidSyncOffset",function(t){t.INFO_UPDATE="infoUpdate",t.SEGMENT_FIRST_BYTE_LOADED="segmentFirstByteLoaded",t.SEGMENT_RENDERED="segmentRendered",t.VTT_SEGMENT_LOADED="vttSegmentLoaded",t.STREAM_SWITCHED="streamSwitched",t.LIVE_LOADING_LATE="liveLoadingLate",t.STREAM_UPDATED="streamUpdated",t.HLS_WAITING="hlsWaiting",t.CUEPOINT_DETECTED="cuepointDetected",t.CUEPOINT_STARTED="cuepointStarted",t.SUBTITLE_STREAM_UPDATED="subtitleStreamUpdated",t.PRELOAD_PROGRESS="preloadProgress",t.SEGINFO_METRICS_AVAILABLE="segInfoMetricsAvailable",t.CONTENT_LOAD_FINISHED="contentLoadFinished",t.PRELOAD_START="preloadStart",t.PRELOAD_COMPLETE="preloadComplete",t.BUFFER_GROWTH_DETECTED="bufferGrowthDetected",t.BUFFER_GAP_DETECTED="bufferGapDetected",t.CC_VTT_AVAILABLE="ccVttAvailable",t.MULTI_LANGUAGES_AVAILABLE="multiLanguagesAvailable",t.TIMED_METADATA_READY="timedMetadataReady",t.MEDIA_METADATA_LOADED="mediaMetadataLoaded",t.DATERANGE_STARTED="daterangeStarted",t.DATERANGE_ENDED="daterangeEnded",t.INVALID_SYNC_OFFSET="invalidSyncOffset",t.STREAM_SYNCH_COMPLETE="streamsynchComplete",t.STREAM_SYNCH_STRATEGY_APPLIED="streamsynchStrategyApplied"}(i.HLSVideoEvent||(i.HLSVideoEvent={})),i.SEG_INFO_AVAILABLE="segInfoAvailable",i.CONTENT_LOAD_FINISHED="contentLoadFinished",i.PRELOAD_START="preloadStart",i.PRELOAD_PROGRESS="preloadProgress",i.PRELOAD_COMPLETE="preloadComplete",i.BUFFER_GROWTH_DETECTED="bufferGrowthDetected",function(t){t.SRC_SWITCHING="videoSrcSwitching",t.SRC_SWITCHED="videoSrcSwitched",t.CLICK="videoClick",t.PAUSE="pause",t.ENDED="ended",t.ERROR="error",t.LOADEDMETADATA="loadedmetadata",t.LOADEDDATA="loadeddata",t.STALLED="stalled",t.LOADSTART="loadstart",t.PLAY="play",t.PLAYING="playing",t.SEEKING="seeking",t.SEEKED="seeked",t.TIMEUPDATE="timeupdate",t.VOLUMECHANGE="volumechange",t.WAITING="waiting",t.BLOCKED="blocked"}(i.VideoEvent||(i.VideoEvent={})),i.VIDEO_REQUEST="videoRequest",i.PLAYBACK_REQUEST="playbackRequest",i.PLAYBACK_STARTED="playbackStarted",i.PLAYBACK_RESUMED="playbackResumed",i.PLAYBACK_PROGRESS="playbackProgress",i.PLAYBACK_STALLED="playbackStalled",i.PLAYBACK_COMPLETE="playbackComplete",i.PLAYBACK_STOPPED="playbackStopped",i.PLAYBACK_ERROR="playbackError",i.API_CALLED="apiCalled",i.CTRL_PLAYPAUSE="ctrlPlayPause",i.CTRL_SEEK="ctrlSeek",i.CTRL_VOLUME="ctrlVolume",i.CTRL_FULLSCREEN="ctrlFullscreen",i.CTRL_SETTINGS="ctrlSettings",i.CTRL_REPLAY="ctrlReplay",i.CTRL_PLAYREQUEST="ctrlPlayRequest",function(t){t.SETTINGS="ccSettings",t.TOGGLE="ccToggle",t.UI_TOGGLE="ccUiToggle",t.REQUEST_UI_DATA_FOR_MEDIA_ITEM="ccRequestUiDataForMediaItem",t.REMOVED="ccDestroy",t.SHOW_CONTROLS="ccShowControls",t.LANGUAGE_CHANGE="ccLangChange",t.CC_OPTIONS_LANGUAGE_CHANGE="ccOptionsLangChange",t.FONT_SIZE_CHANGE="ccFontSizeChange",t.FONT_FACE_CHANGE="ccFontFaceChange",t.BG_OPACITY_CHANGE="ccBgOpacityChange",t.USER_STYLE_PREFERENCES_CHANGE="ccUserStylePrefChange",t.UPDATE_STYLE="ccUpdateStyle",t.POSITION_CHANGE="ccPosChange",t.POSITION_FLOAT="ccPosFloat"}(i.CCEvent||(i.CCEvent={})),function(t){t.GET_BITRATE_FOR_OPSS="ctvGetBitrateForOpss"}(i.CTV||(i.CTV={})),i.BEFORE_PROGRESS_BEACON="beforeProgressBeacon",i.BEFORE_INCOMPLETE_EXIT="beforeIncompleteExit",i.METRICS={INIT_TO_STARTSCREEN:{type:"titssc"},CLICK_TO_START:{type:"ttsapf"},INIT_TO_START:{type:"ttsapt"},PLAYBACK_START:{type:"tpb"},INIT_CONT_PLAY_START:{type:"tcps"},PLAYBACK_STALLED:{type:"tps"},LOAD_TO_LOADED_DATA:{type:"tltld"},CMS_REQUEST:{type:"tsapic"},CMS_SOURCE_REQUEST:{type:"tssrcapic"},CMS_MORE_ITEMS_REQUEST:{type:"tsmiapic"},INIT_RENDER_GAP:{type:"tirg"},SET_WATCH_HISTORY:{type:"tsetwh"},VP_CONSTRUCTOR:{type:"tcons"},GET_USER_PREFS:{type:"tgetcc"},CREATE_RENDERER:{type:"trcreate"},STREAM_REQUEST_TO_RENDER:{type:"treqtr"},STREAM_PLAY_TO_RENDER:{type:"tsltps"},AD_PLUGIN:{type:"tadp"},DEFERRING_PLAYBACK:{type:"tdpb"},AD_BREAK_END_TO_CLIENT_END:{type:"tadbetce"},AD_CLIENT_END_TO_RENDERER_READY:{type:"tadcetrr"},RENDERER_READY_TO_PLAYBACK_START:{type:"trrtpbs"}},function(t){t.ORIENTATION_CHANGE="deviceOrientationChange"}(i.Device||(i.Device={})),i.PROFILE_START="profileStart",i.PROFILE_END="profileEnd"},28103:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdBreakMimeType=i.AdBreakOffset=i.AdBreakType=void 0,function(t){t.LINEAR="linear",t.NON_LINEAR="nonlinear"}(i.AdBreakType||(i.AdBreakType={})),function(t){t.PRE="pre",t.MID="mid",t.POST="post",t.ADONLY="adonly",t.OVERLAY="overlay"}(i.AdBreakOffset||(i.AdBreakOffset={})),function(t){t.DUMMY="ad/dummy"}(i.AdBreakMimeType||(i.AdBreakMimeType={}))},93755:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdBreakItemType=i.ResolvedState=void 0,function(t){t.NOT_RESOLVED="notResolved",t.RESOLVING="resolving",t.RESOLVED="resolved",t.RESOLVED_ERROR="resolvedError"}(i.ResolvedState||(i.ResolvedState={})),function(t){t.AD="ad",t.BLACKOUT="blackout",t.BUMPER="bumper"}(i.AdBreakItemType||(i.AdBreakItemType={}))},62542:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdPluginPlaybackCapability=i.AdPlayerEvent=i.AdPluginEvent=i.AdPluginOverlayAdEvent=i.AdPluginUIEvent=i.AdPluginMetadataEvent=i.AdPluginMetricsEvent=void 0;var e=n(64685);Object.defineProperty(i,"AdPluginPlaybackCapability",{enumerable:!0,get:function(){return e.ExternalPlayerCapability}}),Object.defineProperty(i,"AdPlayerEvent",{enumerable:!0,get:function(){return e.AdPluginEvent}});var r,s,o,u,a=n(66342).default.mergeStringEnums;!function(t){t.METRICS="AD_METRICS",t.DIAGNOSTICS="ad-plugin--diagnostics"}(r=i.AdPluginMetricsEvent||(i.AdPluginMetricsEvent={})),function(t){t.AD_PARSE_RESULT="AD_PARSE_RESULT",t.AD_BREAK_PLAYING="ad-plugin--break-playing",t.AD_SUBTITLES_FOUND="ad-plugin--subtitles-found",t.AD_SUBTITLES_NOT_FOUND="ad-plugin--subtitles-not-found"}(s=i.AdPluginMetadataEvent||(i.AdPluginMetadataEvent={})),function(t){t.CTA_TRIGGERED="ad-plugin-ui-cta-triggered",t.SKIP_AD="ad-plugin-ui-skip-ad",t.CLICKED="ad-plugin-ui-clicked"}(o=i.AdPluginUIEvent||(i.AdPluginUIEvent={})),function(t){t.NONLINEAR_AD_RENDERED="ad-plugin-nonlinear-ad-rendered",t.NONLINEAR_AD_CLEARED="ad-plugin-nonlinear-ad-cleared",t.NONLINEAR_AD_DISMISSED="ad-plugin-nonlinear-ad-dismissed",t.NONLINEAR_AD_CLICKED="ad-plugin-nonlinear-ad-clicked"}(u=i.AdPluginOverlayAdEvent||(i.AdPluginOverlayAdEvent={})),i.AdPluginEvent=a(s,a(r,a(u,a(o,e.AdPluginEvent))))},23277:function(t,i){"use strict";var n=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||(e||(e=Array.prototype.slice.call(i,0,r)),e[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.listenEventDispatcherEvts=void 0,i.listenEventDispatcherEvts=function(t,i,e){var r={},s=Array.isArray(i)?i:[i];return s.forEach((function(i){var s=function(i){return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];e.apply(void 0,n([t,i],r,!1))}}(i);t.addEventListener(i,s),r[i]=s})),function(){r&&(s.forEach((function(i){var n=r[i];t.removeEventListener(i,n)})),s=r=null)}}},26120:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MediaItemMimeType=i.ItemRecoveryStatus=i.SourceState=i.ItemState=i.MediaItemType=i.VIDEO_TYPE=void 0,function(t){t.THREE_SIXTY="360"}(i.VIDEO_TYPE||(i.VIDEO_TYPE={})),function(t){t.VOD="vod",t.LIVE_EVENT="liveEvent",t.LIVE_CHANNEL="liveChannel",t.CONTAINER="container"}(i.MediaItemType||(i.MediaItemType={})),function(t){t.NO_DATA="no-data",t.FETCHING="fetching",t.HAS_DATA="has-data",t.ERROR="error"}(i.ItemState||(i.ItemState={})),function(t){t.NO_DATA="noSourceData",t.FETCHING="fetchingSource",t.HAS_DATA="hasSourceData",t.ERROR="sourceError"}(i.SourceState||(i.SourceState={})),function(t){t.NOT_RECOVERING="notRecovering",t.RECOVERING="recovering",t.RECOVERED="recovered"}(i.ItemRecoveryStatus||(i.ItemRecoveryStatus={})),function(t){t.UPLYNK="media/uplynk",t.SAPI="media/sapi",t.CONTAINER="media/container"}(i.MediaItemMimeType||(i.MediaItemMimeType={}))},41279:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VisualSeekType=i.MoreItemsReason=i.PluginPlayerEvent=i.ContainerType=i.PluginMimeType=i.PluginType=void 0,function(t){t.BASE="plugin",t.METADATA="metadata-plugin",t.SOURCE_METADATA="source-metadata-plugin",t.MORE_ITEMS="more-items",t.AD="ad-plugin",t.VISUAL_SEEK="visual-seek",t.BRANDING="branding",t.PLAYLIST="playlist",t.VA="va-plugin"}(i.PluginType||(i.PluginType={})),function(t){t.MARTINI="adplugin/martini",t.VIDA_WEB="va/vidaweb"}(i.PluginMimeType||(i.PluginMimeType={})),function(t){t.LINEAR="linear",t.NON_LINEAR="nonLinear",t.VA="videoAnnotation"}(i.ContainerType||(i.ContainerType={})),function(t){t.MEDIA_ITEM_PLAYBACK_STARTED="media-item-playback-started",t.MEDIA_ITEM_PLAYBACK_ENDED="media-item-playback-ended",t.MEDIA_ITEM_PLAYBACK_PROGRESS="media-item-playback-progress",t.AD_PLAYBACK_PROGRESS="ad-playback-progress",t.AD_PLAYBACK_STARTED="ad-playback-started",t.PLAYER_RENDERED="player-rendered"}(i.PluginPlayerEvent||(i.PluginPlayerEvent={})),function(t){t.PLAYBACK_STARTED="playbackStarted",t.PLAYLIST_COMPLETE="playlistComplete",t.PLAYLIST_COMPLETE_ON_ERROR="playlistCompleteOnError",t.SCROLLED_TO_END="scrolledToEnd",t.PLAYLISTID_NEED_RESOLVE="playlistNeedResolve",t.SOURCE_LOAD_COMPLETE="sourceLoadComplete",t.CONTENT_LOAD_FINISHED="ContentLoadFinished"}(i.MoreItemsReason||(i.MoreItemsReason={})),function(t){t.IMAGE="image",t.SPRITE="sprite"}(i.VisualSeekType||(i.VisualSeekType={}))},10595:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s=n(66342),o=n(33529),u=n(53872),a=function(t){function i(i,n){var e=t.call(this)||this;return e.Dw=i,n.id=n.id||s.default.generateGuid(),e.id=n.id,e.duration=n.duration||0,e.type=n.type,e.offset=n.offset,e.mimetype=n.mimetype||"",e.active=n.active||!0,e.replay=n.replay||0,e.isResolved=!1,e}return r(i,t),i.prototype.setActive=function(t){u.TypeChecker.isBoolean(t)&&(this.active=t)},Object.defineProperty(i.prototype,"mediaItem",{get:function(){return this.Dw},enumerable:!1,configurable:!0}),i.prototype.setIsResolved=function(t){u.TypeChecker.isBoolean(t)&&(this.isResolved=t)},i}(o.PlayableItem);i.default=a},51960:function(t,i){"use strict";var n;Object.defineProperty(i,"__esModule",{value:!0}),i.defaultConfigs=i.SkipOnError=void 0,function(t){t.ALWAYS="always",t.TIMEBASED="timebased",t.NEVER="never"}(n=i.SkipOnError||(i.SkipOnError={})),i.defaultConfigs={adPlaybackOnly:!1,analytics:!0,autoplay:!1,casting:!0,continuousPlay:!1,enableRecovery:!0,fullscreen:!1,height:0,lang:"",loop:!1,mute:!1,preload:!0,region:"",site:"",skipOnError:n.NEVER,stopAtLastFrame:!1,stopBufferingOnPause:!1,liveUnloadOnPause:!0,enableDash:!0,ads:{timeout:{load:3,start:10},preferExternalPlayback:!0},ui:{ccOnMute:!1,chromeless:!1,docking:{enableOnMuted:!0,enableOnScrollDown:!1,enableOnScrollUp:!1,fadeInAnimation:!0,closeButtonFadeIn:!1,height:180,position:{bottom:20,left:-1,right:20,top:-1},showInfoCard:!0,threshold:50,width:320},endScreen:{show:!1},logos:{network:null,provider:null,rating:null},playlist:{inStream:!1,show:!1,position:"hidden",theme:"dark",mimetype:"playlist/simple",numberOfItems:12},seekControls:{show:!1,offset:10},showControls:!0,showFullscreenButton:!0,disableFullscreenButton:!1,disabledFullscreenButtonAria:"fullscreen button disabled",showPlayButton:!0,showPlayButtonOnPause:!1,sliderColor:"",startScreen:{show:!0,showButton:!0,showDescription:!0,showProvider:!0,showTitle:!0,showThumbnail:!0},title:{showOnHover:!0,showOnStart:""},upNextScreen:{show:!1}},backgroundPause:{onMute:!0,onUnmute:!1,timeToPause:5,suspendStreamingTime:20,backgroundSuspendStreaming:!0,startInBackground:!1},streamSync:{enabled:!1},volume:1,width:0,iframeRender:!1,pauseLiveVideo:!1,pauseVODVideo:!1,preloadBufferSize:32}},2007:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(t,i){var n=this;this.events={completes:[],firstquartiles:[],impressions:[],midpoints:[],thirdquartiles:[],clicktrackings:[]},this.adID=t.adID||"",this.duration=t.duration||-1;var e=t.events;Object.keys(e).forEach((function(t){n.events[t]=e[t]||[]})),this.startTime=i,this.endTime=-1,this.status={impressions:!1,firstquartiles:!1,midpoints:!1,thirdquartiles:!1,completes:!1,clicktrackings:!1}};i.default=n},50440:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s=n(82394),o=n(40531),u=n(66342),a=n(10595),c=n(28103),h=n(26120),f=n(33529),l=n(92759),v=n(12663),d=n(95125),p=n(24339),b=n(40660).Validator,m={id:"",mimetype:h.MediaItemMimeType.UPLYNK,metadata:{description:"",duration:0,title:"",thumbnail:"",type:h.MediaItemType.VOD,videoTypes:[],pip:!0,syncPoint:NaN},source:{},customConfig:null,adConfig:null,useVrmAds:!1},y=function(t){function i(i,n,e,r){var s=t.call(this)||this;return s.adConfigPrefetched=!1,s.skt="",s.isPreloaded=!1,s.state=h.ItemState.NO_DATA,s.sourceState=h.SourceState.NO_DATA,s.recoveryStatus=h.ItemRecoveryStatus.NOT_RECOVERING,s.tryCount=1,s.failoverCount=0,s.isCCAvailable=!1,s.languages=[],s.altStreams=[],s.streamProfiles=[],s.blockAutoplay=!1,s.adBreaks=[],s.useVrmAds=!1,s.Lc=0,s.ju=[],s.OT=NaN,s.ST={},s.AT=u.default.deepCopy(i),s.build(i,n,e,r),s}return r(i,t),i.createKey=function(t,i){return t+"#"+i},i.normalizeKey=function(t){t.id||(t.id=u.default.generateGuid()),t.mimetype||(t.mimetype=h.MediaItemMimeType.CONTAINER)},Object.defineProperty(i.prototype,"key",{get:function(){return this.Hc},enumerable:!1,configurable:!0}),i.prototype.hasStreams=function(){return 0!==this.ju.length},i.prototype.equals=function(t){return!!t&&this.key===t.key},i.prototype.getPlayableItemType=function(){return f.PlayableItemType.MEDIA_ITEM},i.prototype.getDuration=function(){return this.duration},i.prototype.setDuration=function(t){this.duration=t},i.prototype.isRecovering=function(){return this.recoveryStatus===h.ItemRecoveryStatus.RECOVERING},i.prototype.getRecoveryStatus=function(){return this.recoveryStatus},i.prototype.isConsistentMetadata=function(){return!this.hasLiveStreams()||!this.hasLiveStateForVod()},i.prototype.getStreamType=function(){var t;return(null===(t=this.metadata)||void 0===t?void 0:t.type)||h.MediaItemType.VOD},i.prototype.getMarkers=function(){var t,i,n;return(null===(n=null===(i=null===(t=this.customConfig)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.videoMarkers)||void 0===n?void 0:n.markers)||null},Object.defineProperty(i.prototype,"liveLabel",{get:function(){return this.metadata.liveLabel},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pip",{get:function(){return void 0===this.metadata.pip||this.metadata.pip},enumerable:!1,configurable:!0}),i.prototype.isLive=function(){return!!this.hasLiveStreams()},i.prototype.is360Video=function(){var t=this.metadata?this.metadata.videoTypes:null;return!(!t||!t.length)&&-1!==t.indexOf(h.VIDEO_TYPE.THREE_SIXTY)},i.prototype.build=function(t,i,n,e){t&&(this.TT=n,this.MT=e,this.jT=u.default.deepCopy(t),this.NT(t),t.source&&t.source.streams&&this.ra(t.source.streams,i,e),t.adBreaks&&this.IT(t.adBreaks))},i.prototype.hasNativeAd=function(){return!!this.isContainer()&&!(!this.adBreaks||!this.adBreaks.length||this.adBreaks[0].offset!==c.AdBreakOffset.ADONLY)},i.prototype.isContainer=function(){return this.metadata&&this.metadata.type===h.MediaItemType.CONTAINER||this.mimetype===h.MediaItemMimeType.CONTAINER},i.prototype.isStreamContainer=function(){return this.isContainer()&&this.hasStreams()},i.prototype.isAdContainer=function(){return this.isContainer()&&!this.isStreamContainer()&&(this.hasNativeAd()||Boolean(this.adConfig))},i.prototype.getRawDuration=function(){return this.OT},i.prototype.setRawDuration=function(t){this.OT=t},Object.defineProperty(i.prototype,"rawItemData",{get:function(){return this.jT},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"description",{get:function(){return this.metadata?this.metadata.description:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"liveState",{get:function(){return this.metadata.liveState},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"duration",{get:function(){var t;return o.isNumber(null===(t=this.metadata)||void 0===t?void 0:t.duration)?this.metadata.duration:NaN},set:function(t){this.metadata&&(this.metadata.duration=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"shareUrl",{get:function(){return this.metadata&&o.isString(this.metadata.shareUrl)?this.metadata.shareUrl:""},set:function(t){this.metadata&&(this.metadata.shareUrl=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this.metadata?this.metadata.title:void 0},set:function(t){this.metadata&&(this.metadata.title=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"posterUrl",{get:function(){return this.metadata?this.metadata.posterUrl:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"thumbnail",{get:function(){return this.metadata?this.metadata.thumbnail:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return this.Lc},set:function(t){this.Lc=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"refPlaybackId",{get:function(){return this.Hc+"#"+this.videoSession},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"samplingId",{get:function(){return this.kT},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"streams",{get:function(){return this.ju},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"visualSeekData",{get:function(){return this.RT},set:function(t){this.RT=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"brandingData",{get:function(){return this.LT},set:function(t){this.LT=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"viewCount",{get:function(){return this.metadata&&!isNaN(this.metadata.viewCount)?this.metadata.viewCount:NaN},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"syncPoint",{get:function(){return this.metadata.syncPoint||m.metadata.syncPoint},enumerable:!1,configurable:!0}),i.prototype.updateAdBreak=function(t,i,n,e){var r=this;void 0===e&&(e=null);var s=null;return t?(this.adBreaks.forEach((function(i,n){t.id===i.id&&(s=new a.default(r,t),e&&(s.error=e),r.adBreaks[n]=s)})),s):null},i.prototype.removeAdBreaks=function(t){var i=this;if(Array.isArray(t)){t.forEach((function(t){var n,e,r=(n=t.id,i.adBreaks.some((function(t,i){return t.id===n?(e=i,!0):(e=-1,!1)})),e);-1!==r&&i.adBreaks.splice(r,1)}))}},i.prototype.addAdBreaks=function(t){var i=this,n=[];if(!Array.isArray(t))return n;return t.forEach((function(t){if(r=t.id,!i.adBreaks.some((function(t){return t.id===r}))){var e=new a.default(i,t);i.adBreaks.push(e),n.push(e)}var r})),n},i.prototype.getRecoveryStatusForBeacon=function(){var t=this.recoveryStatus===h.ItemRecoveryStatus.RECOVERED;return t&&(this.recoveryStatus=h.ItemRecoveryStatus.NOT_RECOVERING),t},i.prototype.fetchFinished=function(){return this.state===h.ItemState.HAS_DATA||this.state===h.ItemState.ERROR},i.prototype.isLongForm=function(){return!(!this.metadata||!this.metadata.duration)&&this.metadata.duration>600},i.prototype.restartIfNeeded=function(){this.position+10>this.duration&&(this.position=0)},i.prototype.getCDN=function(){return this.ju.length>0?this.ju[0].cdn:null},i.prototype.hasLiveStreams=function(){for(var t=0,i=this.ju;t<i.length;t++){if(i[t].live)return!0}return!1},i.prototype.hasLiveStateForVod=function(){return!1},i.prototype.hasThumbnail=function(){var t=this.metadata&&this.metadata.thumbnail;return void 0!==t&&t.length>0},i.prototype.generateVSid=function(){for(var t=[],i="abcdefghijklmnopqrstuvwxyz123456789",n=0;n<8;n++)t.push(i.charAt(Math.floor(35*Math.random())));return t.join("")},i.prototype.generateSamplingId=function(){return Math.floor(10*Math.random())},i.prototype.getType=function(){return this.hasStreams()?this.ju[0].getType():"none"},i.prototype.getStreamProtocol=function(){return this.hasStreams()?this.ju[0].streamProtocol:"none"},i.prototype.getSubtitleStreams=function(){return this.altStreams.filter((function(t){return"SUBTITLES"===t.type}))},i.prototype.mayUpdateVideoSession=function(){this.CT||this.DT()},i.prototype.useVideoSession=function(){this.CT=!1},i.prototype.setCCAvailability=function(t){o.isBoolean(t)&&(this.isCCAvailable=t)},i.prototype.setMultiLanguages=function(t){this.languages=t},i.prototype.getMultiLanguages=function(){return this.languages},i.prototype.setCurrLanguage=function(t){if(this.languages&&this.languages.length)for(var i=0,n=this.languages;i<n.length;i++){var e=n[i];e.name===t?(this.PT=e,e.selected=!0):e.selected=!1}},i.prototype.getCurrLanguage=function(){return this.PT},i.prototype.getCurrentAudioLanguage=function(){if(!this.isMultiAudioAvailable())return null;var t=this.languages||[];return(t=t.filter((function(t){return!!t.selected}))).length?t[0].name:null},i.prototype.isMultiAudioAvailable=function(){return Array.isArray(this.languages)&&this.languages.length>=2},i.prototype.updateVideoSession=function(){this.videoSession=this.generateVSid(),this.CT=!0,this.kT=this.generateSamplingId()},i.prototype.getAspectRatio=function(){return this.ju.length>0?this.ju[0].aspectRatio:null},i.prototype.updateCompletedAdBreak=function(t){t&&(this.removeAdBreaks([t]),this.ST[this.videoSession]=this.ST[this.videoSession]||[],this.ST[this.videoSession].push(t))},i.prototype.IT=function(t){var i=this;this.adBreaks=t.map((function(t){return new a.default(i,t)}))},i.prototype.NT=function(t){this.PA(t);var n=u.default.deepCopy(t);n=u.default.mergeObjects(n,m),u.default.mergeObjects(this,n,!0),u.default.mergeObjects(this,this.AT,!0),this.Hc=i.createKey(this.id,this.mimetype)},i.prototype.PA=function(t){try{var i=new b;i.addSchema(d.streamSchema,"/streamSchema"),i.addSchema(v.sourceSchema,"/sourceSchema"),i.validate(t,l.mediaItemSchema,{throwError:!0})}catch(t){var n="Invalid media item config: ".concat(t.property," ").concat(t.message);throw new Error(n)}},i.prototype.ra=function(t,i,n){var e=this;if(t&&t.length){this.ju=[];for(var r=t.map((function(t){return Object.prototype.hasOwnProperty.call(t,"live")||(t.live=e.metadata&&(e.metadata.type===h.MediaItemType.LIVE_CHANNEL||e.metadata.type===h.MediaItemType.LIVE_EVENT)),new p.default(t)})),o=0,u=i;o<u.length;o++){var a=u[o],c=n[a];if(!(!c||this.is360Video()&&!c.is360Renderer||!this.is360Video()&&c.is360Renderer)){var f=s.default.findAcceptedStreams(r,c);if(0!==f.length){this.rendererType=a,this.ju=f;break}}}return this.ju.length>0?(this.ju.sort((function(t,i){return t.videoMetadata.bitrate-i.videoMetadata.bitrate})),void(this.ju[0].duration&&(this.duration=this.ju[0].duration))):void 0}},i.prototype.DT=function(){this.updateVideoSession(),this.xT()},i.prototype.xT=function(){this.setSourceState(h.SourceState.NO_DATA)},i}(f.PlayableItem);i.default=y},32341:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.MediaStoreEvent=void 0;var s=n(44422),o=n(50440),u={"adplugin/vrm":"adplugin/martini"};!function(t){t.METADATA_AVAILABLE="mstMetadataAvailable",t.SOURCE_AVAILABLE="mstSourceAvailable",t.MEDIA_ITEM_ADDED="mstMediaItemAdded",t.MEDIA_ITEM_REMOVED="mstMediaItemRemoved"}(i.MediaStoreEvent||(i.MediaStoreEvent={}));var a=function(t){function i(i,n,e){var r=t.call(this,"MediaStore")||this;return r.UT={},r.FT=i,r.TT=n,r.MT=e,r}return r(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.addItems=function(t){for(var i=0,n=t;i<n.length;i++){var e=n[i];this.addItem(e)}},i.prototype.addItem=function(t){o.default.normalizeKey(t);var i=o.default.createKey(t.id,t.mimetype);if(this.UT[i])return i;if(t.adConfig){var n=t.adConfig.mimetype;t.adConfig.mimetype=u[n]||n}var e=new o.default(t,this.FT,this.TT,this.MT);return this.UT[e.key]=e,e.key},i.prototype.updateItem=function(t){if(!t||!t.id||!t.mimetype)return null;var i=o.default.createKey(t.id,t.mimetype),n=this.UT[i];return n?n.build(t,this.FT,this.TT,this.MT):(n=new o.default(t,this.FT,this.TT,this.MT)).updateVideoSession(),this.UT[n.key]=n,n},i.prototype.updateItemState=function(t,i){if(t){var n=this.getByData(t);n&&n.state!==i&&n.setState(i)}},i.prototype.updateItemSourceState=function(t,i){if(t){var n=this.getByData(t);n&&n.sourceState!==i&&n.setSourceState(i)}},i.prototype.get=function(t){return t&&this.UT[t]||null},i.prototype.getById=function(t){if(!t)return null;for(var i in this.UT)if(0===i.indexOf(t))return this.UT[i];return null},i.prototype.getByData=function(t){if(!t)return null;var i=o.default.createKey(t.id,t.mimetype);return this.UT[i]||null},i.prototype.getBySessionId=function(t){if(!t)return null;for(var i=0,n=Object.keys(this.UT);i<n.length;i++){var e=n[i],r=this.UT[e];if(r&&r.videoSession===t)return r}return null},i}(s.default);i.default=a},22334:function(t,i,n){"use strict";var e=this&&this.__assign||function(){return e=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},e.apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.PauseReason=void 0;var r,s,o=n(39451),u=n(30954),a=n(28103),c=n(26669),h=n(35244),f=n(53872),l=n(31204),v=n(40531),d=n(66342),p=n(51960),b=n(32341),m=n(17189),y=n(24926);!function(t){t[t.NONE=0]="NONE",t[t.CONTROL=1]="CONTROL",t[t.API=2]="API",t[t.BACKGROUND=3]="BACKGROUND"}(r=i.PauseReason||(i.PauseReason={})),function(t){t.ID="playlist_id",t.ID_AND_ITEMS="playlist_id_and_mediaItems",t.ONLY_ITEMS="mediaItems"}(s||(s={}));var g=function(){function t(i,n,e){this.consent={gdprApplies:null,gdprConsentData:null,uspString:null,gpp:null,gppSid:"-1"},this.rebufferReason=null,this.playbackRate=1,this.BT="0.5.65",this.zT="1.2.63",this.VT=!1,this.GT="none",this.HT=!1,this.YT=r.NONE,this.qT=new y.default,this.qT.width=i&&i.width||this.qT.width,this.qT.height=i&&i.height||this.qT.height,this.qT.videoWidth=this.qT.width,this.qT.videoHeight=this.qT.height,this.WT={desiredBitrate:t.DESIRED_BITRATE,mp4Abr:!1,bitrate:0,bitrates:[],heights:[],startTime:NaN,preconnect:!0,skipFormats:[],isResumingFromSavedPosition:!1,requestType:null,requestAction:null,playlistLoop:!1},this.QT=e,this.ZT=[],this.Rc=i,this.$T=this.NT(i),this.XT(),this.KT(),this.JT(),this.tM(n),this.iM(),this.nM(),this.$T.mediaItems&&this.$T.mediaItems.length&&(this.firstItemAdsSitePrefetched=!!this.$T.mediaItems[0].adConfig),this.playlist=new m.default(this.s_),this.$T.mediaItems&&this.$T.mediaItems.forEach((function(t){t.adConfigPrefetched=!!t.adConfig})),this.playlist.addItems(this.$T.mediaItems),this.ccUserPreferences={show:!1,lang:"en-US",fontSize:24,fontName:"Arial, Helvetica, sans-serif",fontColor:"#ffffff",fontOpacity:1,fontEffect:"none",bgColor:"#000000",bgOpacity:.75,ccPos:"bottom",isAvailable:!1},this.rendered=!1}return t.prototype.destroy=function(){this.playlist.destroy(),this.rendererTypes=[],this.adsRendererTypes=[]},Object.defineProperty(t.prototype,"config",{get:function(){return this.$T},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return this.$T.site||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this.$T.region||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lang",{get:function(){return this.$T.lang||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recoveryFailureTimeout",{get:function(){return t.RECOVERY_FAILURE_TIMEOUT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ccOnMute",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.ccOnMute;return t&&void 0!==t.ccOnMute?t.ccOnMute:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chromeless",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.chromeless;return t&&void 0!==t.chromeless?t.chromeless:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"docking",{get:function(){var t=this.$T.ui;return(null==t?void 0:t.docking)||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logos",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.logos;return(null==t?void 0:t.logos)||i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showControls",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.showControls;return t&&void 0!==t.showControls?t.showControls:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startScreenConfig",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.startScreen;return(null==t?void 0:t.startScreen)||i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitleOnStart",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.title.showOnStart;return t&&t.title?t.title.showOnStart:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitleOnHover",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.title.showOnHover;return t&&t.title&&void 0!==t.title.showOnHover?t.title.showOnHover:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showStartScreen",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.startScreen.show;return t&&t.startScreen&&void 0!==t.startScreen.show?t.startScreen.show:i},set:function(t){var i=this.$T.ui;i&&i.startScreen&&(i.startScreen.show=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFullscreenButton",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.showFullscreenButton;return t&&void 0!==t.showFullscreenButton?t.showFullscreenButton:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disableFullscreenButton",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.disableFullscreenButton;return t&&void 0!==t.disableFullscreenButton?t.disableFullscreenButton:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabledFullscreenButtonAria",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.disabledFullscreenButtonAria;return t&&void 0!==t.disabledFullscreenButtonAria?t.disabledFullscreenButtonAria:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sliderColor",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.sliderColor;return t&&void 0!==t.sliderColor?t.sliderColor:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showEndScreen",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.endScreen.show;return!t||!t.endScreen&&void 0===t.endScreen.show?i:t.endScreen.show},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showUpNextScreen",{get:function(){var t;if(!o.userAgent.mobile)return!1;var i=this.$T.ui,n=p.defaultConfigs.ui.endScreen.show;return void 0!==(null===(t=null==i?void 0:i.upNextScreen)||void 0===t?void 0:t.show)?i.upNextScreen.show:n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stopAtLastFrame",{get:function(){var t=this.$T.stopAtLastFrame;return void 0===t?p.defaultConfigs.stopAtLastFrame:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thumbnailDimensions",{get:function(){return{width:this.uiState.videoWidth,height:this.uiState.videoHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vttIndex",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistUIConfig",{get:function(){var t=p.defaultConfigs.ui.playlist,i=this.$T.ui;return i?i.playlist:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){var t=this.$T.continuousPlay;return void 0===t?p.defaultConfigs.continuousPlay:t},set:function(t){this.$T.continuousPlay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"adPlaybackOnly",{get:function(){var t=this.$T.adPlaybackOnly;return void 0===t?p.defaultConfigs.adPlaybackOnly:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoplay",{get:function(){var t=this.$T.autoplay;return void 0===t?p.defaultConfigs.autoplay:t},set:function(t){this.$T.autoplay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stopBufferingOnPause",{get:function(){var t=this.$T.stopBufferingOnPause;return void 0===t?p.defaultConfigs.stopBufferingOnPause:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preload",{get:function(){var t=this.$T.preload;return void 0===t?p.defaultConfigs.preload:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullscreen",{get:function(){var t=this.$T.fullscreen;return void 0===t?p.defaultConfigs.fullscreen:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"skipWatchedVideos",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bitrate",{get:function(){return this.WT.bitrate},set:function(t){this.WT.bitrate=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bitrates",{get:function(){return this.WT.bitrates},set:function(t){this.WT.bitrates=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"heights",{get:function(){return this.WT.heights},set:function(t){this.WT.heights=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mp4Abr",{get:function(){return this.WT.mp4Abr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startTime",{get:function(){return this.WT.startTime},set:function(t){this.WT.startTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preconnect",{get:function(){return this.WT.preconnect},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isResumingFromSavedPosition",{set:function(t){this.WT.isResumingFromSavedPosition=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requestType",{get:function(){return this.WT.requestType},set:function(t){this.WT.requestType=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requestAction",{get:function(){return this.WT.requestAction},set:function(t){this.WT.requestAction=t},enumerable:!1,configurable:!0}),t.prototype.setRequestInfo=function(t){if(t&&(this.requestType=t.type,d.default.isValidRequestAction(t.action))){if(this.requestAction=t.action,t.action===u.REQUEST_TYPES.PAUSE)switch(t.type){case u.REQUEST_TYPES.CLICK:this.YT=r.CONTROL;break;case u.REQUEST_TYPES.API:this.YT=r.API}t.action===u.REQUEST_TYPES.BACKGROUND&&t.type===u.REQUEST_TYPES.API&&(this.YT=r.BACKGROUND)}},Object.defineProperty(t.prototype,"playlistLoop",{get:function(){return this.WT.playlistLoop},set:function(t){this.WT.playlistLoop=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"desiredBitrate",{get:function(){return this.WT.desiredBitrate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uiState",{get:function(){return this.qT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playbackState",{get:function(){return this.k_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitingForUserTap",{get:function(){return this.VT},set:function(t){this.VT=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preloadBufferSize",{get:function(){var t=this.$T.preloadBufferSize;return void 0===t?p.defaultConfigs.preloadBufferSize:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userPreferences",{get:function(){return{closedCaptions:{show:!1,lang:"en-US",fontSize:24,fontName:"Arial, Helvetica, sans-serif",fontColor:"#ffffff",fontOpacity:1,fontEffect:"none",bgColor:"#000000",bgOpacity:.75,ccPos:"bottom",isAvailable:!1},isAdult:null,isAuthenticated:!0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"skipOnError",{get:function(){var t;return(null===(t=this.playlist.getCurrentItem())||void 0===t?void 0:t.isLive())?p.SkipOnError.NEVER:this.$T.skipOnError||p.SkipOnError.NEVER},set:function(t){this.$T.skipOnError=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"liveUnloadOnPause",{get:function(){return this.$T.liveUnloadOnPause||!0},set:function(t){this.$T.liveUnloadOnPause=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDrmAvailable",{set:function(t){this.HT=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"drmSystem",{set:function(t){t&&(this.GT=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"muteMode",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this.BT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jshlsVersion",{get:function(){return this.zT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"casting",{get:function(){return void 0===this.$T.casting||this.$T.casting},enumerable:!1,configurable:!0}),t.prototype.setShowStartScreen=function(){(!this.autoplay||this.playbackState&&this.waitingForUserTap)&&!this.chromeless&&(this.showStartScreen=!0)},Object.defineProperty(t.prototype,"guid",{get:function(){return this.QT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputConfig",{get:function(){return this.Rc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.ZT},set:function(t){this.ZT=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstCriticalError",{get:function(){for(var t=0,i=this.errors;t<i.length;t++){var n=i[t];if(n.type||n.code)return n}return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"privacyConsent",{get:function(){return this.consent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPlayButton",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.showPlayButton;return t&&void 0!==t.showPlayButton?t.showPlayButton:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPlayButtonOnPause",{get:function(){var t=this.$T.ui,i=p.defaultConfigs.ui.showPlayButtonOnPause;return t&&void 0!==t.showPlayButtonOnPause?t.showPlayButtonOnPause:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPIPButton",{get:function(){var t,i;return!o.userAgent.mobile&&!o.userAgent.firefox&&((null===(i=null===(t=this.$T)||void 0===t?void 0:t.ui)||void 0===i?void 0:i.showPIPControls)||!1)},enumerable:!1,configurable:!0}),t.prototype.setPlaybackState=function(t){if(this.k_)throw new Error("playbackState is already set");this.k_=t,this.eM(),this.rM()},t.prototype.isPlaylistStructured=function(){return!1},t.prototype.isLocal=function(){return this.BT.indexOf("local")>-1},t.prototype.isMobileStrmInlineExpr=function(){return(o.userAgent.ios||o.userAgent.android)&&l.default.canPlayInline},t.prototype.isAutoplayAllowed=function(){var t=!0!==l.default.network.mobile;return!o.userAgent.mobile||l.default.autoplaySupported&&t},t.prototype.isMobileWebAutoplayCase=function(){return o.userAgent.mobile&&(this.autoplay||this.isMobileStrmInlineExpr())},t.prototype.isMediaPlaying=function(){var t=this.playbackState;return!!t&&(t.state===h.States.VIDEO&&!t.paused&&!t.loading)},t.prototype.isAd=function(){return d.default.isAdBreakOffset(this.playbackState.currentMediaType)},t.prototype.endVideo=function(){this.WT.bitrate=0},Object.defineProperty(t.prototype,"loop",{get:function(){var t=this.$T.loop;return void 0===t&&(t=p.defaultConfigs.loop),(this.getPlaylistRenderingType()===s.ONLY_ITEMS||!(!this.playlist.isEndOfPlaylist()&&t))&&t},set:function(t){v.isBoolean(t)&&(this.$T.loop=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mute",{get:function(){return this.k_&&this.k_.mute},set:function(t){this.k_&&v.isBoolean(t)&&(this.k_.mute=t)},enumerable:!1,configurable:!0}),t.prototype.getState=function(){return this.playbackState.state},t.prototype.setState=function(t){this.k_&&(Object.keys(h.States).indexOf(t.toUpperCase())>-1&&(this.playbackState.state=t))},Object.defineProperty(t.prototype,"volume",{get:function(){return this.k_&&this.k_.volume},set:function(t){this.k_&&v.isNumber(t)&&t>=0&&t<=1&&(this.k_.volume=t)},enumerable:!1,configurable:!0}),t.prototype.isPaused=function(){return this.playbackState&&this.playbackState.paused},t.prototype.setPaused=function(t){this.playbackState&&v.isBoolean(t)&&(this.playbackState.paused=t,t?this.setLoading(!1):this.YT=r.NONE)},t.prototype.onRendererPause=function(){var t=this.getState();return t!==h.States.INIT&&t!==h.States.END&&(this.setPaused(!0),!0)},t.prototype.isSeeking=function(){return this.playbackState&&this.playbackState.seeking},t.prototype.setSeeking=function(t){this.playbackState&&v.isBoolean(t)&&(this.playbackState.seeking=t)},t.prototype.isLoading=function(){return this.playbackState&&this.playbackState.loading},t.prototype.setLoading=function(t){this.playbackState&&v.isBoolean(t)&&(this.playbackState.loading=t)},t.prototype.resetPlaybackStates=function(){this.setPaused(!1),this.setSeeking(!1),this.setLoading(!1)},t.prototype.getPauseReason=function(){return this.YT},t.prototype.getPlaylistRenderingType=function(){var t=this.playlist&&this.playlist.playlistId,i=this.Rc&&this.Rc.playlist,n=i&&i.mediaItems||[];return t?0===n.length?s.ID:s.ID_AND_ITEMS:s.ONLY_ITEMS},Object.defineProperty(t.prototype,"mediaStore",{get:function(){return this.s_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seekControls",{get:function(){return this.$T.ui&&this.$T.ui.seekControls||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPlaybackRateControls",{get:function(){var t;return!!(null===(t=this.$T.ui)||void 0===t?void 0:t.showPlaybackRateControls)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundPause",{get:function(){return this.$T.backgroundPause?this.$T.backgroundPause:p.defaultConfigs.backgroundPause},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startInBackground",{set:function(t){this.$T.backgroundPause||(this.$T.backgroundPause=p.defaultConfigs.backgroundPause),this.$T.backgroundPause.startInBackground=t},enumerable:!1,configurable:!0}),t.prototype.shouldSynchronize=function(){var t,i;return(null===(i=null===(t=this.config)||void 0===t?void 0:t.streamSync)||void 0===i?void 0:i.enabled)||!1},t.prototype.synchronizeConfig=function(){var t,i=null===(t=this.config)||void 0===t?void 0:t.streamSync,n={};return i?(void 0!==(null==i?void 0:i.pauseOnAhead)&&(n.pauseOnAhead=i.pauseOnAhead),void 0!==(null==i?void 0:i.targetLiveOffsetMs)&&(n.syncPoint=i.targetLiveOffsetMs),void 0!==(null==i?void 0:i.syncAccuracyMs)&&(n.syncThreshold=i.syncAccuracyMs),void 0!==(null==i?void 0:i.variableRateChange)&&(n.variableRateChange=i.variableRateChange),n):null},t.prototype.getEventsDto=function(){var t={rendererType:this.playbackState&&this.playbackState.rendererType,playerVersion:this.BT,autoPlay:this.autoplay,mute:this.mute,paused:this.isPaused(),docking:this.docking,requestType:this.requestType,requestAction:this.requestAction,playerRootElement:this.playerRootElement,uiState:{width:this.uiState.width,height:this.uiState.height,isFullScreen:this.uiState.isFullscreen,isDocked:this.uiState.isDocked,isPIP:this.uiState.isPIP},showEndScreen:this.showEndScreen,firstItemAdsSitePrefetched:this.firstItemAdsSitePrefetched,drmsys:this.GT,drm:this.HT,playbackMode:this.playbackState&&this.playbackState.playbackMode,currentMediaType:this.playbackState&&this.playbackState.currentMediaType,currentTs:Date.now(),pbst:this.getState(),pbstd:this.sM(),soe:this.skipOnError},i=this.playlist.getCurrentItem();return i?e(e(e({},t),{videoId:i.id,sessionId:i.videoSession,videoLength:parseFloat(i.duration.toString()),isLive:i.isLive(),isCCAvailable:i.isCCAvailable,cdn:i.getCDN(),samplingId:i.samplingId,audioLanguage:i.getCurrentAudioLanguage(),mediaItemRendererType:i.rendererType,customConfig:i.customConfig,brandingData:i.brandingData,streamProtocol:i.getStreamProtocol(),license:i.license,title:i.title,contentType:i.getStreamType(),description:i.description,aspectRatio:this.getAspectRatio(),recv_status:i.recoveryStatus,isPreloaded:i.isPreloaded,acodec:i.audioCodec,vcodec:i.videoCodec}),"bcp"===i.getCDN()&&{bcp:i.metadata.bcp}):t},t.prototype.getAspectRatio=function(){var t=null,i=this.playlist.getCurrentItem();if(i&&(t=i.getAspectRatio()),!t&&this.qT.videoWidth&&this.qT.videoHeight){var n=this.qT.videoWidth/this.qT.videoHeight;t=isNaN(n)?null:n.toFixed(2)}return t||null},t.prototype.getItemId=function(){var t,i,n=this.playbackState;return(null===(t=null==n?void 0:n.playingItem)||void 0===t?void 0:t.adBreakItemId)?n.playingItem.adBreakItemId||null:(null===(i=this.playlist.getCurrentItem())||void 0===i?void 0:i.id)||null},t.prototype.NT=function(t){var i=d.default.deepCopy(t);return i=d.default.mergeObjects(i,p.defaultConfigs),i=this.oM(i)},t.prototype.sM=function(){var t=h.States.INIT,i=this.uM(this.playbackState.currentMediaType);return this.playbackState.state!==h.States.VIDEO&&this.playbackState.state!==h.States.END||!i||(t=this.isAd()?this.isMediaPlaying()||this.isPaused()?h.States.VIDEO:h.States.INIT:h.States.VIDEO),t},t.prototype.oM=function(t){if(!t)return t;var i=t.ui;i&&i.chromeless&&(i.startScreen&&(i.startScreen.show=!1),i.endScreen&&(i.endScreen.show=!1),i.showControls=!1);var n=t.connectionType;return n&&n.raw&&"boolean"==typeof n.mobile&&l.default.updateNetwork(n.mobile,n.raw),t},t.prototype.XT=function(){!f.LocalStorage.get("vp-dont-autoplay")&&this.isAutoplayAllowed()||(this.autoplay=!1)},t.prototype.rM=function(){if(this.muteMode)this.mute=!0;else if(o.userAgent.desktop&&this.autoplay){var t=l.default.needsGestureToPlayUnmuted&&(o.userAgent.firefox>=66||o.userAgent.chrome>=66||o.userAgent.edge>=17);(o.userAgent.safari>=11||t)&&(this.mute=!0)}},t.prototype.eM=function(){if(o.userAgent.mobile&&l.default.autoplaySupported)return this.volume=1,void(this.mute=!0);var t=p.defaultConfigs.volume,i=p.defaultConfigs.mute,n=f.LocalStorage.get(u.LocalStorageKey.VOLUME);n&&(t=n.volume,i=n.mute);var e=this.Rc.volume;v.isNumber(e)&&e>=0&&e<=1&&(t=e),v.isBoolean(this.Rc.mute)&&(i=this.$T.mute),this.volume=t,this.mute=i},t.prototype.JT=function(){(!this.autoplay||this.playbackState&&this.waitingForUserTap)&&!this.chromeless&&(this.showStartScreen=!0)},t.prototype.aM=function(){this.rendererTypes=c.default.getRendererTypes(),this.adsRendererTypes=c.default.getAdRendererTypes(),this.capabilities=c.default.getCapabilities({enableDash:this.config.enableDash,skipFormats:this.WT.skipFormats})},t.prototype.tM=function(t){this.aM(),this.s_=t||new b.default(this.rendererTypes,this.adsRendererTypes,this.capabilities)},t.prototype.iM=function(){var t={},i=d.default.getSingleton("PlayerHosting");i&&i.ver&&i.ver===this.version&&(t.bucket=i.bucket,t.env=i.env,t.colo=i.colo,t.config=i.config&&"object"==typeof i.config?i.config:null,t.log=i.req&&i.req.usm&&i.req.usm.config&&i.req.usm.config.log||""),this.playerHostingConfig=t},t.prototype.KT=function(){l.default.canPlayInline&&l.default.autoplayByUIEvtOnly&&this.autoplay&&(this.waitingForUserTap=!0)},t.prototype.nM=function(){var t=this;f.Privacy.getGDPRConsentData((function(i,n){n&&(t.consent.gdprApplies=null==i?void 0:i.gdprApplies,t.consent.gdprConsentData=null==i?void 0:i.gdprConsentData)})),f.Privacy.getUSPrivacyConsent((function(i,n){n&&(t.consent.uspString=null==i?void 0:i.uspString,t.consent.gpp=null==i?void 0:i.gpp,t.consent.gppSid=(null==i?void 0:i.gppSid)||"-1")}))},t.prototype.uM=function(t){switch(t){case a.AdBreakOffset.PRE:return"preroll";case a.AdBreakOffset.MID:return"midroll";case a.AdBreakOffset.POST:return"postroll";case a.AdBreakOffset.OVERLAY:return"overlay";case a.AdBreakOffset.ADONLY:return"adonly"}return t},t.DESIRED_BITRATE=900,t.RECOVERY_FAILURE_TIMEOUT=120,t}();i.default=g},33529:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PlayableItem=i.PlayableItemType=void 0;var e=n(26120);!function(t){t.MEDIA_ITEM="media-item",t.AD_BREAK_ITEM="ad-break-item"}(i.PlayableItemType||(i.PlayableItemType={}));var r=function(){function t(){this.state=e.ItemState.NO_DATA,this.sourceState=e.SourceState.NO_DATA}return t.prototype.setState=function(t){this.state=t},t.prototype.setSourceState=function(t){this.sourceState=t},t.prototype.hasError=function(){return this.state===e.ItemState.ERROR},t.prototype.hasMetadata=function(){return this.state===e.ItemState.HAS_DATA},t.prototype.hasNoMetadata=function(){return this.state===e.ItemState.NO_DATA},t.prototype.hasExpiredMetadata=function(){return!1},t.prototype.isConsistentMetadata=function(){return!0},t.prototype.hasStreams=function(){return!1},t.prototype.hasSource=function(){return this.sourceState===e.SourceState.HAS_DATA},t.prototype.equals=function(t){return t&&t.id===this.id},t.prototype.getPlayableItemType=function(){return null},t.prototype.setDuration=function(t){},t.prototype.getDuration=function(){return NaN},t.prototype.isRecovering=function(){return!1},t.prototype.getStreamType=function(){return null},t.prototype.isReadyToPlay=function(){return this.hasMetadata()&&this.hasSource()&&this.hasStreams()&&!this.hasError()},t.prototype.isLive=function(){return!1},t.prototype.is360Video=function(){return!1},t.prototype.getRecoveryStatus=function(){return e.ItemRecoveryStatus.NOT_RECOVERING},t}();i.PlayableItem=r},73353:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(35244),r=n(66342),s=function(){function t(){this.mute=!1,this.volume=.5,this.ad=null,this.state=e.States.INIT,this.paused=!1,this.seeking=!1,this.loading=!0,this.criticalError=null,this.previousItem=null,this.looped=!1,this.loadedItem=null,this.loadedAdBreak=null,this.rendererType=null,this.hasStartedPlayback=!1,this.hasCurrentItemPlayed=!1,this.hasRendererPlayCalled=!1,this.hasRendererPlaybackStarted=!1,this.cM=null,this.shouldPlay=!0}return Object.defineProperty(t.prototype,"playingItem",{get:function(){return this.hM},set:function(t){this.hM=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.Zd},set:function(t){this.Zd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentRawTime",{get:function(){return this.fM},set:function(t){this.fM=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.Qd},set:function(t){this.Qd=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playbackMode",{get:function(){return r.default.getPlaybackMode(this.hM)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMediaType",{get:function(){return this.cM},set:function(t){this.cM=t},enumerable:!1,configurable:!0}),t.prototype.attemptingPlayback=function(){return this.isVideoPlaying()||this.state===e.States.WAITING},t.prototype.isVideoPlaying=function(){return this.videoSet()&&!this.paused},t.prototype.videoSet=function(){return this.state===e.States.VIDEO},t.prototype.isOnCriticalError=function(){return!(this.state!==e.States.END||!this.criticalError)},t.prototype.isInitializing=function(){return this.state===e.States.INIT||this.state===e.States.WAITING},t.prototype.videoLoading=function(){return this.videoSet()&&this.loading},t.prototype.isAdPlaying=function(){return!(!this.videoSet()||!this.ad)},t}();i.default=s},17189:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(40531),r=n(32341),s=function(){function t(t){this.position=-1,this.lM=[],this.vM=0,this.s_=t}return t.prototype.destroy=function(){this.lM=[],this.position=-1},t.prototype.addItems=function(t){if(t&&t.length){for(var i=0,n=t;i<n.length;i++){var e=n[i],s=this.s_.addItem(e);this.contains(s)||(this.lM.push(s),this.s_.publish(r.MediaStoreEvent.MEDIA_ITEM_ADDED,s))}this.lM.length&&-1===this.position&&(this.position=0)}},t.prototype.addItemAtIndex=function(t,i){if(t&&void 0!==i&&!(i<0)){var n=this.s_.addItem(t);this.contains(n)||(this.lM.splice(i,0,n),this.s_.publish(r.MediaStoreEvent.MEDIA_ITEM_ADDED,n)),this.lM.length&&-1===this.position&&(this.position=0)}},t.prototype.removeItems=function(t,i){var n=this;this.lM.slice(t,t+i).forEach((function(t){return n.s_.publish(r.MediaStoreEvent.MEDIA_ITEM_REMOVED,t)})),this.lM.splice(t,i),this.position>=t+i?this.position-=i:t<=this.position&&this.position<t+i&&(this.position=-1)},t.prototype.update=function(t){var i=this,n=[];return t&&t.length?(t.forEach((function(t){i.s_.getByData(t)&&n.push(i.s_.updateItem(t))})),n):n},t.prototype.updateMediaItemsState=function(t,i){var n=this;null==t||t.forEach((function(t){n.s_.updateItemState(t,i)}))},t.prototype.updateMediaItemsSourceState=function(t,i){var n=this;null==t||t.forEach((function(t){n.s_.updateItemSourceState(t,i)}))},t.prototype.contains=function(t){return this.lM.indexOf(t)>=0},t.prototype.getMediaItemAt=function(t){return t<0||t>=this.lM.length?null:this.s_.get(this.lM[t])},t.prototype.getMediaItemById=function(t){return t?this.s_.getById(t):null},t.prototype.getMediaItemBySessionId=function(t){return t?this.s_.getBySessionId(t):null},t.prototype.getCurrentItem=function(){return this.getMediaItemAt(this.position)},t.prototype.appendItem=function(t){if(t){var i=this.lM.length;return this.lM.push(t.key),i}return-1},t.prototype.getItems=function(){for(var t=[],i=0;i<this.lM.length;i++){var n=this.getMediaItemAt(i);n&&t.push(n)}return t},t.prototype.getItemIds=function(){for(var t=[],i=0;i<this.lM.length;i++){var n=this.getMediaItemAt(i);n&&t.push(n.id)}return t},t.prototype.getItemPosition=function(t){for(var i=0,n=0,e=this.lM;n<e.length;n++){if(0===e[n].indexOf(t))return i;i++}return-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.lM.length},enumerable:!1,configurable:!0}),t.prototype.setPosition=function(t){e.isNumber(t)&&(this.position=t)},t.prototype.getNextPosition=function(t,i,n){if((n=n||{}).looped=!1,n.ended=!1,-1===this.position)return-1;if(!this.lM.length)return-1;var e=this.position+1;if(n.playlistLoop&&e===this.lM.length)return n.looped=!0,0;if(t){if(e<this.lM.length)return e;if(i&&e===this.lM.length)return n.looped=!0,0}return!t&&i?(n.looped=!0,this.position):(n.ended=!0,-1)},t.prototype.getCurrentPosition=function(){return this.position},t.prototype.isEndOfPlaylist=function(){return this.position===this.lM.length-1},Object.defineProperty(t.prototype,"playlistId",{get:function(){return this.dM},set:function(t){this.dM=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistFetchIndex",{get:function(){return this.vM},set:function(t){this.vM=t},enumerable:!1,configurable:!0}),t}();i.default=s},74839:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(t,i){this.breakId=t,this.offset=i};i.default=n},67029:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.configSchema=void 0,i.configSchema={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{adPlaybackOnly:{type:"boolean"},analytics:{type:"boolean"},autoplay:{type:"boolean"},casting:{type:"boolean"},continuousPlay:{type:"boolean"},enableRecovery:{type:"boolean"},fullscreen:{type:"boolean"},height:{type:"number"},lang:{type:"string"},loop:{type:"boolean"},mediaItems:{type:"array",items:[{$ref:"/mediaItemSchema"}],minItems:1},mute:{type:"boolean"},playerId:{type:["string","null"]},preload:{type:"boolean"},region:{type:"string"},site:{type:"string"},skipOnError:{type:"string",enum:["always","timebased","never"]},stopAtLastFrame:{type:"boolean"},stopBufferingOnPause:{type:"boolean"},ui:{$ref:"/uiSchema"},width:{type:"number"},backgroundPause:{type:"object",properties:{onMute:{type:"boolean",default:!0},onUnmute:{type:"boolean",default:!1},timeToPause:{type:"number",default:5},suspendStreamingTime:{type:"number",default:20},backgroundSuspendStreaming:{type:"boolean",default:!0},startInBackground:{type:"boolean",default:!1}}},ads:{type:"object",properties:{timeout:{type:"object",properties:{load:{type:"number",minimum:1},start:{type:"number",minimum:1}}}}},vrmConfig:{$ref:"/vrmSchema"},streamSync:{$ref:"/streamSynchSchema"}},required:["mediaItems"]}},92759:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.mediaItemSchema=void 0;var e=n(26120);i.mediaItemSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/mediaItemSchema",type:"object",properties:{adConfig:{type:"object",properties:{mimetype:{type:"string"},value:{type:{}}},required:["mimetype","value"]},customConfig:{type:"object"},id:{type:"string"},metadata:{type:"object",properties:{description:{type:"string"},duration:{type:"number"},title:{type:"string"},thumbnail:{type:"string"},posterUrl:{type:"string"},type:{type:"string",enum:Object.keys(e.MediaItemType).map((function(t){return e.MediaItemType[t]}))},videoTypes:{type:"array"}}},mimetype:{type:"string"},source:{$ref:"/sourceSchema"}},dependencies:{mimetype:["id"]}}},12663:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.sourceSchema=void 0,i.sourceSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/sourceSchema",type:"object",properties:{streams:{type:"array",items:{$ref:"/streamSchema"},minItems:0}}}},95125:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.streamSchema=void 0,i.streamSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/streamSchema",type:"object",properties:{audioMetadata:{type:"object",properties:{autoSelect:{type:"boolean"},bitrate:{type:"number"},channels:{type:"number"},default:{type:"boolean"},forced:{type:"boolean"},samplingRate:{type:"number"}}},cdn:{type:"string"},fairplayCertificatePath:{type:"string"},live:{type:"boolean"},manifest:{type:"string"},mimeType:{type:"string"},rcMode:{type:"string"},type:{type:"string"},url:{type:"string"},videoMetadata:{type:"object",properties:{avgBitrate:{type:"number"},bitrate:{type:"number"},framerate:{type:"number"},height:{type:"number"},profile:{type:"string"},width:{type:"number"}}}},required:["url"]}},21080:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.streamSynchSchema=void 0,i.streamSynchSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/streamSynchSchema",type:"object",properties:{enabled:{type:"boolean",default:!1},targetLiveOffsetMs:{type:"number"},pauseOnAhead:{type:"boolean"},pauseToPullbackThresholdMs:{type:"number"},seekToCatchup:{type:"boolean"},seekForwardThresholdMs:{type:"number"},syncAccuracyMs:{type:"number"},fastForwardRate:{type:"number"},slowDownRate:{type:"number"},streamRefreshThresholdMs:{type:"number"},variableRateChange:{type:"boolean"}},required:["enabled"]}},65549:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.uiSchema=void 0,i.uiSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/uiSchema",type:"object",properties:{ccOnMute:{type:"boolean"},chromeless:{type:"boolean"},docking:{type:"object",properties:{enableOnMuted:{type:"boolean"},enableOnScrollDown:{type:"boolean"},enableOnScrollUp:{type:"boolean"},fadeInAnimation:{type:"boolean"},closeButtonFadeIn:{type:"boolean"},height:{type:"number"},position:{type:"object",properties:{bottom:{type:"number"},left:{type:"number"},right:{type:"number"},top:{type:"number"}}},showInfoCard:{type:"boolean"},threshold:{type:"number"},width:{type:"number"}}},endScreen:{type:"object",properties:{show:{type:"boolean"}}},playlist:{type:"object",properties:{inStream:{type:"boolean"},show:{type:"boolean"},position:{type:"string",enum:["right","bottom","hidden"]},theme:{type:"string",enum:["dark","light"]}}},showControls:{type:"boolean"},showFullscreenButton:{type:"boolean"},disableFullscreenButton:{type:"boolean"},disabledFullscreenButtonAria:{type:"string"},showPlayButton:{type:"boolean"},showPlayButtonOnPause:{type:"boolean"},showPlaybackRateControls:{type:"boolean"},startScreen:{type:"object",properties:{show:{type:"boolean"},showButton:{type:"boolean"},showDescription:{type:"boolean"},showProvider:{type:"boolean"},showTitle:{type:"boolean"},showThumbnail:{type:"boolean"}}},seekControls:{type:"object",properties:{show:{type:"boolean"},offset:{type:"number",maximum:99,minimum:0}}},sliderColor:{type:"string"},title:{type:"object",properties:{showOnHover:{type:"boolean"},showOnStart:{type:"string"}}}}}},89740:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.vrmSchema=void 0,i.vrmSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/vrmSchema",type:"object",properties:{companyId:{type:"string"},playerId:{type:"string"}}}},24339:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(40531),r=n(66342),s=n(95125),o=n(40660).Validator,u={audioMetadata:{bitrate:0,channels:1},videoMetadata:{avgBitrate:0,bitrate:0,framerate:0,height:0,width:0,duration:0},live:!1,manifest:"",url:"",aspectRatio:""},a=function(){function t(t){this.NT(t),"subtitle"===this.type&&(this.type="SUBTITLES")}return t.prototype.isRTMP=function(){var t=/^rtmp(?:e|t|te|s)?:\/\//;return t.test(this.host)||t.test(this.url)},t.prototype.isRTX=function(){return this.url.indexOf("/rtx/")>-1},t.prototype.isUplynk=function(){if(this.url&&this.url.length){var t=this.url.toLowerCase();return t.indexOf("uplynk.com")>-1||t.indexOf("downlynk.com")>-1||t.indexOf("uplynk.localhost")>-1||t.indexOf("downlynk.localhost")>-1}return!1},t.prototype.getType=function(){var t="unknown",i=this.url,n=this.pM();return"m3u8:fmp4"===this.format?t="hls-fmp4":i&&(n&&(n.indexOf("rtmp")>-1||n.indexOf("rtsp")>-1)?t=n:/\/*\.f4m/i.test(i)?t=this.isRTX()?"rtx-hds":"hds":/\/*\.m3u8/i.test(i)||i.length>0&&i.indexOf("content=hls")>-1?t=this.isRTX()?"rtx-hls":"hls":/\/*\.mp4/i.test(i)?t="mp4":/\/*\.webm/i.test(i)?t="webm":/\/*\.mpd/i.test(i)&&(t="dash")),t},Object.defineProperty(t.prototype,"bitrate",{get:function(){var t,i;return(null===(t=this.videoMetadata)||void 0===t?void 0:t.bitrate)||(null===(i=this.audioMetadata)||void 0===i?void 0:i.bitrate)||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"avgBitrate",{get:function(){var t;return(null===(t=this.videoMetadata)||void 0===t?void 0:t.avgBitrate)||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var t;return(null===(t=this.videoMetadata)||void 0===t?void 0:t.width)||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var t;return(null===(t=this.videoMetadata)||void 0===t?void 0:t.height)||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"framerate",{get:function(){var t;return(null===(t=this.videoMetadata)||void 0===t?void 0:t.framerate)||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){var t;return(null===(t=this.videoMetadata)||void 0===t?void 0:t.duration)||NaN},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"profile",{get:function(){var t;return(null===(t=this.videoMetadata)||void 0===t?void 0:t.profile)||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"channels",{get:function(){var t;return(null===(t=this.audioMetadata)||void 0===t?void 0:t.channels)>=0?this.audioMetadata.channels:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"forced",{get:function(){var t;return null===(t=this.audioMetadata)||void 0===t?void 0:t.forced},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"default",{get:function(){var t;return null===(t=this.audioMetadata)||void 0===t?void 0:t.default},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoSelect",{get:function(){var t;return null===(t=this.audioMetadata)||void 0===t?void 0:t.autoSelect},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"streamProtocol",{get:function(){return this.pM()},enumerable:!1,configurable:!0}),t.prototype.NT=function(t){this.PA(t);var i=r.default.deepCopy(t);if(i=r.default.mergeObjects(i,u),r.default.mergeObjects(this,i,!0),e.isString(this.url)&&0!==this.url.length||this.host&&this.path&&(this.url=this.host+this.path),this.type&&(this.format=this.type),this.format||(this.format=r.default.getFormat(this.url)),!this.host&&e.isString(this.url)&&this.url.length>0){this.host=this.pM()+"://"+r.default.getHostname(this.url);var n=this.url.split(this.host);n.length>=2&&(this.path=n[1])}this.cdn&&this.cdn.length||(this.cdn=this.bM(this.url))},t.prototype.PA=function(t){try{(new o).validate(t,s.streamSchema,{throwError:!0})}catch(t){var i="Invalid stream config: ".concat(t.property," ").concat(t.message);throw new Error(i)}},t.prototype.pM=function(){var t="http",i=this.url.split(":");return i.length>1&&(t=i[0]),t},t.prototype.bM=function(t){var i="unknown";return t&&t.length>0&&(i=t.indexOf("akamai")>-1?"akamai":t.indexOf("yahoo.com")>-1||t.indexOf("yimg.com")>-1?"atlas":t.indexOf("llnwd.net")>-1?"limelight":t.indexOf("fastly.com")>-1?"fastly":t.indexOf("edgecast.com")>-1?"edgecast":r.default.parseRootHost(t)),i},t}();i.default=a},24926:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){this.width=640,this.height=360,this.startScreenRendered=!1,this.isDocked=!1,this.isCSSLoaded=!1,this.deviceOrientation=null,this.isFullscreen=!1,this.isPIP=!1};i.default=n},74536:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},s=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||(e||(e=Array.prototype.slice.call(i,0,r)),e[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0});var o=n(41279),u=n(40531),a=n(66342),c=function(){function t(){this.mM={},this.yM={},this.gM={},this.i_=[],this.u_=[],this.wM={}}return t.prototype.destroy=function(){this.mM={},this.i_=[]},t.prototype.register=function(t,i){var n,e;if(void 0===i&&(i={}),u.isNullOrUndefined(t))throw new Error("Plugin instance is null");if(!this._M(t))throw new Error("Plugin interface is invalid or incomplete");var r=t.type,s=t.mimetype;if(!this.mM[r]||!this.mM[r].some((function(t){return t.mimetype===s}))){var c;switch(s){case o.PluginMimeType.MARTINI:this.wM[o.PluginMimeType.MARTINI]=((n={})[o.ContainerType.LINEAR]=document.createElement("div"),n[o.ContainerType.NON_LINEAR]=document.createElement("div"),n),i.pluginContainer=this.wM[s][o.ContainerType.LINEAR],i.nonlinearContainer=this.wM[s][o.ContainerType.NON_LINEAR];break;case o.PluginMimeType.VIDA_WEB:c=document.createElement("div"),a.default.classList(c).add("va-plugin"),this.wM[o.PluginMimeType.VIDA_WEB]=((e={})[o.ContainerType.VA]=c,e),i.pluginContainer=this.wM[s][o.ContainerType.VA],i.customConfig=i}this.mM[t.type]||(this.mM[t.type]=[]),this.mM[t.type].push(t);try{t.prepare(i)}catch(t){}u.isPlayerPluginEventListener(t)&&this.u_.push(t)}},t.prototype.registerLazy=function(t,i){if(u.isNullOrUndefined(t))throw new Error("Plugin instance is null");if(!this.EM(t))throw new Error("Plugin interface is invalid or incomplete");var n=t.type,e=t.mimetype;this.yM[n]=this.yM[n]||[],this.yM[n].push(t),this.gM[n]=this.gM[n]||{},this.gM[n][e]=i},t.prototype.publishToPlugin=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];for(var e=function(n){setTimeout((function(){try{n.onPlayerEvent.apply(n,s([t],i,!1))}catch(t){}}),0)},r=0,o=this.u_;r<o.length;r++){e(o[r])}},Object.defineProperty(t.prototype,"defaultPlugins",{get:function(){return this.i_},set:function(t){this.i_=t},enumerable:!1,configurable:!0}),t.prototype.getExternalPlugins=function(){var t=this,i={},n=function(n){if(Object.prototype.hasOwnProperty.call(e.mM,n)){var r=e.mM[n].filter((function(i){return!function(i){return t.i_.some((function(t){return i.mimetype===t.mimetype&&i.type===t.type}))}(i)}));i[n]||(i[n]=[]),r.forEach((function(t){i[n].push(t)}))}},e=this;for(var r in this.mM)n(r);return i},t.prototype.getPlugin=function(t,i){return e(this,void 0,void 0,(function(){var n,e,s,o,u,a,c,h,f;return r(this,(function(r){switch(r.label){case 0:if(n=this.mM[t])for(e=0,s=n;e<s.length;e++)if((o=s[e])&&o.mimetype===i)return[2,o];if(!(u=this.yM[t]))return[3,4];a=0,c=u,r.label=1;case 1:return a<c.length?(h=c[a])&&h.mimetype===i?(f=this.gM[t][i],[4,this.OM(h,f)]):[3,3]:[3,4];case 2:return[2,r.sent()];case 3:return a++,[3,1];case 4:return[2,null]}}))}))},t.prototype.OM=function(t,i){return e(this,void 0,void 0,(function(){var e=this;return r(this,(function(r){switch(r.label){case 0:return t.mimetype===o.PluginMimeType.VIDA_WEB?[3,1]:[3,3];case 1:return[4,n.e(377).then(function(){var r=new(n(22377).VidaAPI),s=e.yM[t.type];return s&&s.splice(s.indexOf(t),1),e.register(r,i),e.lazyRender(t),r}.bind(null,n)).catch((function(t){return null}))];case 2:return r.sent(),[3,4];case 3:case 4:return[2,null]}}))}))},t.prototype._M=function(t){if(!t||u.isNullOrUndefined(t.mimetype)||!u.isString(t.mimetype)||u.isNullOrUndefined(t.type)||!this.SM(t.type)||u.isNullOrUndefined(t.prepare)||!u.isFunction(t.prepare)||u.isNullOrUndefined(t.destroy)||!u.isFunction(t.destroy))return!1;switch(t.type){case o.PluginType.METADATA:return this.AM(t);case o.PluginType.SOURCE_METADATA:return this.TM(t);case o.PluginType.MORE_ITEMS:return this.MM(t);case o.PluginType.AD:return u.isAdPlugin(t);case o.PluginType.VISUAL_SEEK:return this.jM(t);case o.PluginType.BRANDING:return this.NM(t);case o.PluginType.PLAYLIST:return this.IM(t);case o.PluginType.VA:return u.isVAPlugin(t)}return!1},t.prototype.EM=function(t){return!(!t||u.isNullOrUndefined(t.mimetype)||!u.isString(t.mimetype)||u.isNullOrUndefined(t.type)||!this.SM(t.type))},t.prototype.SM=function(t){return[o.PluginType.METADATA,o.PluginType.SOURCE_METADATA,o.PluginType.MORE_ITEMS,o.PluginType.AD,o.PluginType.VISUAL_SEEK,o.PluginType.BRANDING,o.PluginType.PLAYLIST,o.PluginType.VA].indexOf(t)>-1},t.prototype.AM=function(t){return!(!t||u.isNullOrUndefined(t.resolve)||!u.isFunction(t.resolve)||u.isNullOrUndefined(t.recover)||!u.isFunction(t.recover)||u.isNullOrUndefined(t.cancel)||!u.isFunction(t.cancel))},t.prototype.TM=function(t){return!(!t||u.isNullOrUndefined(t.resolve)||!u.isFunction(t.resolve)||u.isNullOrUndefined(t.recover)||!u.isFunction(t.recover)||u.isNullOrUndefined(t.cancel)||!u.isFunction(t.cancel))},t.prototype.MM=function(t){return!(!t||u.isNullOrUndefined(t.resolve)||!u.isFunction(t.resolve)||u.isNullOrUndefined(t.cancel)||!u.isFunction(t.cancel))},t.prototype.jM=function(t){return!(!t||u.isNullOrUndefined(t.getThumbnailData)||u.isNullOrUndefined(t.update)||!u.isFunction(t.getThumbnailData)||!u.isFunction(t.update))},t.prototype.NM=function(t){return!(!t||u.isNullOrUndefined(t.create)||!u.isFunction(t.create))},t.prototype.IM=function(t){return!(!t||!u.isFunction(t.create))},t.prototype.render=function(t){var i=this;Object.keys(this.wM).forEach((function(n){Object.keys(i.wM[n]).forEach((function(e){t.appendChild(i.wM[n][e])}))})),Object.keys(this.yM).forEach((function(n){i.yM[n].forEach((function(i){i.parentElem=t}))}))},t.prototype.lazyRender=function(t){var i=this.wM[t.mimetype],n=Object.keys(i),e=t.parentElem;e&&n&&n.length&&n.forEach((function(t){e.appendChild(i[t])}))},t.prototype.getContainer=function(t,i){return this.wM[t]&&this.wM[t][i]},t.prototype.showPlugin=function(t,i){var n=this.getContainer(t,i);n&&a.default.classList(n).add("vp-plugin-active")},t.prototype.hidePlugin=function(t,i){var n=this.getContainer(t,i);n&&a.default.classList(n).remove("vp-plugin-active")},t}();i.default=c},79038:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};this&&this.__spreadArray;Object.defineProperty(i,"__esModule",{value:!0});var u=n(23277),a=n(66342),c=n(64685),h=function(t){function i(n){var e=t.call(this,"ad-plugin-renderer")||this;return e.type=i.type,e.timedOut=!1,e.kM=a.default.noop,null==n||n.setAttribute("id",a.default.generateGuid()),a.default.classList(n).add("vp-adplugin-video"),e.container=n,e}return r(i,t),i.canUse=function(){return!0},Object.defineProperty(i.prototype,"mimetype",{get:function(){return this.nm?this.nm.mimetype:void 0},enumerable:!1,configurable:!0}),i.prototype.create=function(t){return null},i.prototype.getAdPluginPlayer=function(){return this.nm},i.prototype.setAdPluginPlayer=function(t){this.nm&&this.nm!==t&&this.RM(),this.nm=t,this.LM()},i.prototype.play=function(t){if(this.nm&&this.CM){var i=this.CM.mediaItem.refPlaybackId;this.paused?this.nm.play():this.nm.play(i,this.CM.id)}},i.prototype.preload=function(t){},i.prototype.showExternalCC=function(t){(null==t?void 0:t.preferences)?this.nm.setCcStyle(t.preferences):((null==t?void 0:t.lang)&&this.nm.setCcLanguage(t.lang),this.nm.showCaptions(!!t))},i.prototype.setPlayableItem=function(t,i,n){return void 0===i&&(i=0),void 0===n&&(n=!1),!(!t||!this.nm)&&(this.DM=null,this.CM=t,!0)},i.prototype.waitForReady=function(t){return s(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return t?[4,t()]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},i.prototype.seek=function(t){},i.prototype.pause=function(){this.nm&&this.nm.pause()},i.prototype.getCurrentDate=function(){return null},i.prototype.getCurrentTime=function(){return this.nm?this.nm.getCurrentTime():0},i.prototype.getDuration=function(){return this.nm?this.nm.getDuration():0},i.prototype.getMuted=function(){return!(!this.nm||!this.nm.isMuted())},i.prototype.getVolume=function(){return this.nm?this.nm.getVolume():NaN},i.prototype.setQuality=function(t){},i.prototype.setSeedStreamIndex=function(t){},i.prototype.setError=function(t){},i.prototype.setVolume=function(t){this.nm&&this.nm.setVolume(t)},i.prototype.setMute=function(t){this.nm&&this.nm.mute(t)},i.prototype.setAudioLanguage=function(t){},i.prototype.stopMedia=function(){return!!this.nm&&(this.nm.stop(),!0)},i.prototype.bindCustomEvents=function(){},i.prototype.destroy=function(){this.nm&&(this.RM(),this.nm=null)},i.prototype.detachNode=function(){},i.prototype.reattachNode=function(){},i.prototype.setActive=function(t){this.PM=t},i.prototype.showAirplayTargetMenu=function(){},i.prototype.setPIPMode=function(t){},i.prototype.suspendStreaming=function(){},i.prototype.resumeStreaming=function(){},i.prototype.getSyncOffset=function(){return NaN},i.prototype.startSync=function(){},i.prototype.stopSync=function(){},i.prototype.setPlaybackRate=function(t){},i.prototype.getSyncState=function(){return-1},i.prototype.togglePIP=function(){},i.prototype.LM=function(){this.nm&&(this.kM=(0,u.listenEventDispatcherEvts)(this.nm,Object.keys(c.AdPluginEvent).map((function(t){return c.AdPluginEvent[t]})),this.xM.bind(this)))},i.prototype.RM=function(){this.kM(),this.kM=a.default.noop},i.prototype.xM=function(t,i){for(var n,e,r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];c.AdPluginEvent.TIME_UPDATE;var o=this.nm;switch(i){case c.AdPluginEvent.MUTE_CHANGED:case c.AdPluginEvent.VOLUME_CHANGED:this.publish(c.RendererEvent.VOLUMECHANGE,{volume:o.getVolume(),mute:o.isMuted()});break;case c.AdPluginEvent.CLOSED_CAPTIONS_LOADED:this.publish(c.RendererEvent.AD_CC_LOADED,r[0]);break;case c.AdPluginEvent.PLAYING:this.paused=!1,this.ended=!1,this.publish(c.RendererEvent.PLAYING,{dur:o.getDuration()});break;case c.AdPluginEvent.TIME_UPDATE:this.publish(c.RendererEvent.TIMEUPDATE,{currentTime:o.getCurrentTime(),duration:o.getDuration()});break;case c.AdPluginEvent.PAUSED:this.paused=!0,this.publish(c.RendererEvent.PAUSE);break;case c.AdPluginEvent.PLAY_COMPLETE:this.publish(c.CustomRendererEvent.PLAY_COMPLETE,{evt:"ad_play_complete",adReplay:(null===(n=this.CM)||void 0===n?void 0:n.replay)||0}),this.publish(c.RendererEvent.PLAYBACK_ENDED);break;case c.AdPluginEvent.BREAK_ENDED:this.ended=!0,this.publish(c.RendererEvent.ENDED,null===(e=r[0])||void 0===e?void 0:e.isPlayed)}},i.type=c.RendererType.AD_PLUGIN,i}(c.Renderer);i.default=h},15132:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0});var u,a,c=n(39451),h=n(53072),f=n(76389),l=n(21962),v=n(15658),d=n(62912),p=n(31204),b=n(66342),m=n(40514),y=n(64685);p.default.hasTouchRestrictions&&(u=v.default.getPool()),function(t){t.INLINE="inline",t.PIP="picture-in-picture",t.FULLSCREEN="fullscreen"}(a||(a={}));var g=function(t){function i(n,e){var r=t.call(this,"html-renderer")||this;return r.type=i.type,r.UM=!1,r.FM={},r.zb=n,r.vt=e,r}return r(i,t),i.canUse=function(){return!0},i.prototype.create=function(t){var i=this;return this.node=t instanceof HTMLVideoElement?t:u?u.get():b.default.createVideoNode(),this.node||(this.node=b.default.createVideoNode()),this.vt.preload||this.node.setAttribute("preload","metadata"),this.BM()&&(this.node.controls=!0),this.node.setAttribute("id",b.default.generateGuid()),b.default.classList(this.node).add("vp-html5-video"),this.Tm(),this.zM(this.node),c.userAgent.mobile&&p.default.autoplayByUIEvtOnly&&this.vt.autoplay&&d.default&&(this.VM=d.default.setupTouchToPlayRestrictionRemoval(this.node,(function(){i.VM=null,i.zb.publish(l.TOUCH_TO_PLAY_RESTRICTION_REMOVED)}))),this.PM=!1,this.node},i.prototype.destroy=function(){var t;this.GM(),this.node&&(u&&u.discard(this.node),this.node.pause(),this.node.src="",this.node.load(),null===(t=this.node.parentNode)||void 0===t||t.removeChild(this.node),delete this.node),this.VM&&(this.VM(),this.VM=null),this._i=null},i.prototype.detachNode=function(){var t;this.GM(),(null===(t=this.node)||void 0===t?void 0:t.pause)&&this.node.pause()},i.prototype.getCurrentDate=function(){return null},i.prototype.getCurrentTime=function(){var t;return(null===(t=this.node)||void 0===t?void 0:t.currentTime)||0},i.prototype.getDuration=function(){return this.node?this.node.duration:0},i.prototype.getMuted=function(){var t;return(null===(t=this.node)||void 0===t?void 0:t.muted)||!1},i.prototype.getVolume=function(){var t;return(null===(t=this.node)||void 0===t?void 0:t.volume)||NaN},i.prototype.isAirplaying=function(){var t;return!!(null===(t=this.node)||void 0===t?void 0:t.webkitCurrentPlaybackTargetIsWireless)},i.prototype.reattachNode=function(){this.Tm()},i.prototype.seek=function(t){var i=this;if(this.node)try{this.node.currentTime=t}catch(e){if("InvalidStateError"===e.name)var n=this.on(y.RendererEvent.LOADEDMETADATA,(function(){i.node&&(i.node.currentTime=t,i.removeEventListener(y.RendererEvent.LOADEDMETADATA,n))}),this)}},i.prototype.setActive=function(t){this.PM=t},i.prototype.setMute=function(t){this.node&&"boolean"==typeof t&&(c.userAgent.mobile&&p.default.autoplaySupported&&d.default?d.default.setMuteSafe(this.node,t):this.node.muted=t)},i.prototype.setVolume=function(t){this.node&&this.node.volume!==t&&(this.node.volume=t)},i.prototype.setError=function(t){this._i=t},i.prototype.showAirplayTargetMenu=function(){var t;"function"==typeof(null===(t=this.node)||void 0===t?void 0:t.webkitShowPlaybackTargetPicker)&&this.node.webkitShowPlaybackTargetPicker()},i.prototype.waitForReady=function(t){return s(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,t()];case 1:return i.sent(),[2]}}))}))},i.prototype.reportError=function(t,i,n,e){var r=t===f.E_INFO?y.RendererEvent.INFO:y.RendererEvent.ERROR;this.publish(r,new f.default(t,i,n,e))},i.prototype.enableMobileNativeCC=function(t){if(this.node){var i=document.createDocumentFragment();this.HM(),t.langList.forEach((function(n){var e=document.createElement("track");e.setAttribute("label","English"),e.setAttribute("srclang",n.lang),e.setAttribute("kind","subtitles"),e.setAttribute("type","text/vtt"),n.lang===t.selectedLang&&e.setAttribute("default","true"),e.src=n.url,e.track&&(e.track.mode="hidden"),i.appendChild(e)})),this.node.appendChild(i)}},i.prototype.setPIPMode=function(t){var i=this,n=this.node;c.userAgent.safari&&n.webkitSupportsPresentationMode&&(n.onwebkitpresentationmodechanged=function(){if(t||n.webkitPresentationMode!==a.PIP||setTimeout((function(){n.webkitSetPresentationMode(a.INLINE)}),100),i.publish(y.CustomRendererEvent.PIP_MODE_CHANGED,n.webkitPresentationMode),n.webkitPresentationMode===a.INLINE){i.node.removeEventListener("webkitendfullscreen",(function(){i.publish(y.CustomRendererEvent.END_FULLSCREEN)})),i.publish(y.CustomRendererEvent.END_FULLSCREEN)}})},i.prototype.togglePIP=function(t){t?this.node.requestPictureInPicture&&this.node.requestPictureInPicture():document.exitPictureInPicture&&document.exitPictureInPicture()},i.prototype.Tm=function(){var t=this;if(this.node){this.YM=function(i){if(!t.ended){var n=i.type,e=y.RendererEvent[n.toUpperCase()];n===y.NativeVideoEvent.PLAYING&&t.node.paused||(n===y.NativeVideoEvent.VOLUMECHANGE&&t.publish(y.RendererEvent.VOLUMECHANGE,{volume:t.node.volume,mute:t.node.muted}),c.userAgent.iosWebView&&n===y.NativeVideoEvent.PAUSE&&t.qM(),t.Gy(n,e))}}.bind(this),Object.keys(y.NativeVideoEvent).forEach((function(i){t.node.addEventListener(y.NativeVideoEvent[i],t.YM)})),c.userAgent.iphone&&!p.default.canPlayInline||(this.WM=new m.default(this.node,(function(){t.publish(y.CustomRendererEvent.CLICK)}))),c.userAgent.safari>=8&&this.QM(),c.userAgent.ios&&this.ZM(),p.default.airplaySupported&&this.vt.casting&&this.$M(),this.K={},this.K[l.FULLSCREEN_CHANGE]=this.zb.addEventListener(l.FULLSCREEN_CHANGE,(function(){t.node&&t.zb.publish(l.PLAYER_RESIZE,t.node.clientWidth,t.node.clientHeight)}),this)}},i.prototype.XM=function(){var t=this;if(this.node){var i=this.node.play();return"function"==typeof(null==i?void 0:i.catch)&&i.catch((function(i){t.node.paused})),i}},i.prototype.HM=function(){if(this.node)for(var t=this.node.querySelectorAll("track"),i=0;i<t.length;i++)this.node.removeChild(t[i])},i.prototype.KM=function(t){var i=f.PLAYER_CODES.E_NATIVE_ERROR;if(!(t&&t instanceof MediaError))return i;switch(t.code){case MediaError.MEDIA_ERR_ABORTED:return f.PLAYER_CODES.E_NATIVE_ABORTED;case MediaError.MEDIA_ERR_NETWORK:return f.PLAYER_CODES.E_NATIVE_NETWORK_FAILURE;case MediaError.MEDIA_ERR_DECODE:return f.PLAYER_CODES.E_NATIVE_DECODE_ERROR;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:return f.PLAYER_CODES.E_NATIVE_SRC_NOT_SUPPORTED}return i},i.prototype.$M=function(){var t=this;if(p.default.airplaySupported&&this.node){var i=function(i){t.zb.publish(h.ExternalEvt.AIRPLAY_AVAILABILITY_CHANGE,"available"===i.availability)},n=function(){t.zb.publish(h.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,{connected:t.isAirplaying(),isInitialEvt:!t.JM}),t.JM||(t.JM=!0)};this.node.addEventListener("webkitplaybacktargetavailabilitychanged",i),this.node.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",n),this.tj=function(){t.node&&(t.node.removeEventListener("webkitplaybacktargetavailabilitychanged",i),t.node.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",n))}}},i.prototype.QM=function(){var t,i=this;if(null===(t=this.node)||void 0===t?void 0:t.textTracks){var n=function(t){var n=t.track;if(n)if("metadata"===n.kind)n.mode="hidden",n.addEventListener("cuechange",(function(t){var n,e,r=t.target,s=null==r?void 0:r.activeCues[0],o=null===(n=null==s?void 0:s.value)||void 0===n?void 0:n.data,u=null===(e=null==s?void 0:s.value)||void 0===e?void 0:e.info;if(u)o=u;else if("string"==typeof o)try{o=JSON.parse(o)}catch(t){}else o=o instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint8Array(o)):{};i.zb.publish(l.TIMED_METADATA_RECEIVED,o),i.ij(r)}));else if(("subtitles"===n.kind||"captions"===n.kind)&&i.UM){var e={itemId:i.CM.id,track:n};i.publish(y.RendererEvent.SUBTITLE_TRACK_RECEIVED,e)}},e=function(t){for(var i=0,n=null==t?void 0:t.srcElement;i<n.length;i++){var e=n[i];"metadata"===e.kind&&"disabled"===e.mode&&(e.mode="hidden")}};this.node.textTracks.addEventListener("addtrack",n),this.node.textTracks.addEventListener("change",e),this.nj=function(){var t;(null===(t=i.node)||void 0===t?void 0:t.textTracks)&&(i.node.textTracks.removeEventListener("addtrack",n),i.node.textTracks.removeEventListener("change",e))}}},i.prototype.ZM=function(){var t=this;if(this.node){var i=function(){t.publish(y.CustomRendererEvent.END_FULLSCREEN)};this.node.addEventListener("webkitendfullscreen",i),this.ej=function(){t.ej=null,t.node.removeEventListener("webkitendfullscreen",i)};var n=function(){t.publish(y.CustomRendererEvent.ENTER_FULLSCREEN)};this.node.addEventListener("webkitbeginfullscreen",n),this.rj=function(){t.rj=null,t.node.removeEventListener("webkitbeginfullscreen",n)}}},i.prototype.GM=function(){var t=this;this.nj&&this.nj(),this.ej&&this.ej(),this.rj&&this.rj(),this.tj&&this.tj(),Object.keys(y.NativeVideoEvent).forEach((function(i){var n;null===(n=t.node)||void 0===n||n.removeEventListener(y.NativeVideoEvent[i],t.YM)})),this.WM&&(this.WM.destroy(),this.WM=null),this.zb.removeEventListeners(this.K)},Object.defineProperty(i.prototype,"Tg",{get:function(){return this.vt.playlist},enumerable:!1,configurable:!0}),i.prototype.uO=function(){return this.Tg.getCurrentItem()},Object.defineProperty(i.prototype,"k_",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),i.prototype.ij=function(t){for(var i,n,e=!1,r=0;r<t.activeCues.length;r++){var s=t.activeCues[r],o=null==s?void 0:s.value.key,u=null===(i=null==s?void 0:s.value)||void 0===i?void 0:i.data;try{u=atob(u)}catch(t){continue}if("X-DATA"===o){var a=null;try{a=JSON.parse(u)}catch(t){continue}var c=a.dr_start_date||a.startDate||a["START-DATE"];c&&(c=c.includes("Z")?c:c+"Z");var h=null===(n=new Date(c))||void 0===n?void 0:n.getTime(),f=a.dr_id||a.id||a.ID;if(0===Object.keys(a).length||!f||!h)continue;var l=f+"-"+h;if(this.FM[l])continue;var v=a.dr_end_date||a.endDate;v&&(v=v.includes("Z")?v:v+"Z");var d=new Date(v).getTime(),p=a.dr_duration||a.duration,b=void 0;p?b=new Date(p).getTime():d&&(b=d-h),b&&!d&&(d=1e3*b+h);var m={startDate:h,endDate:d,duration:b,id:f,rawData:u,jsonData:a,className:a.dr_class||a.class||"",endOnNext:"YES"===a.endOnNext||"YES"===a["END-ON-NEXT"]};e=!0,this.FM[l]=m}}e&&this.sj(this.FM)},i.prototype.zM=function(t){var i=this;t.__play||(t.__play=t.play.bind(t),t.play=function(){var n=t.__play();return n&&"function"==typeof n.then&&n.then((function(t){i.publish(y.CustomRendererEvent.PLAYBACK_START_NOT_BLOCKED)}),(function(n){t.paused&&i.publish(y.CustomRendererEvent.PLAYBACK_START_BLOCKED)})),n})},i.prototype.qM=function(){if(this.node){var t=this.node;!this.BM()&&t.controls&&(t.controls=!1)}},i.prototype.BM=function(){return this.vt.showControls&&!p.default.canPlayInline},i.type=y.RendererType.HTML5_RAW,i}(y.Renderer);i.default=g},78259:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0});var u,a=n(39451),c=n(21962),h=n(64685),f=n(2878),l=n(66342),v=n(43),d=n(33891),p=16/9,b=function(t){function i(n,e){var r=t.call(this,n,e)||this;return r.type=i.type,r}return r(i,t),i.canUse=function(){return!a.userAgent.tv&&(f.default.is360Supported()&&t.canUse.call(this))},i.getCapabilities=function(t){var i=d.default.getCapabilities(t);return{acceptedProtocols:i.acceptedProtocols,preferredFormats:i.preferredFormats,acceptedFormats:i.acceptedFormats,is360Renderer:!0,canDecryptAES:i.canDecryptAES}},i.prototype.create=function(i){return t.prototype.create.call(this,i),this.oj(),this.container},i.prototype.destroy=function(){this.uj(),t.prototype.destroy.call(this)},i.prototype.waitForReady=function(t){return s(this,void 0,void 0,(function(){var i=this;return o(this,(function(n){switch(n.label){case 0:return this.od?(this.aj(),[4,t()]):[3,2];case 1:return n.sent(),[3,3];case 2:this.cj=this.zb.addEventListener(c.THREE_SIXTY_READY,(function(){return s(i,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return this.aj(),[4,t()];case 1:return i.sent(),[2]}}))}))}),this),n.label=3;case 3:return[2]}}))}))},i.prototype.oj=function(){var t=this;this.od=!1,this.node&&(this.node.setAttribute("crossorigin","anonymous"),this.node.style.visibility="hidden",this.hj=document.createElement("div"),this.hj.classList.add("vp-360-node"),this.hj.style.position="absolute",this.container=document.createElement("div"),this.container.setAttribute("id",l.default.generateGuid()),this.container.classList.add("vp-360-video"),this.container.appendChild(this.node),this.container.appendChild(this.hj),this.fj().then((function(){t.lj()})).catch((function(t){})))},i.prototype.sj=function(t){},i.prototype.fj=function(){return new Promise((function(t,i){n.e(232).then(function(){u=n(85232),t(u)}.bind(null,n)).catch((function(t){i(t)}))}))},i.prototype.lj=function(){this.vj=new u.PerspectiveCamera(70,p,.01,1e3),this.vj.target=new u.Vector3(0,0,0);var t=new u.SphereBufferGeometry(500,64,32);t.scale(-1,1,1);var i=new u.VideoTexture(this.node);i.minFilter=u.NearestFilter;var n=new u.MeshBasicMaterial({map:i}),e=new u.Mesh(t,n);this.dj=new u.Scene,this.dj.add(e),this.pj=new u.WebGLRenderer,this.pj.setPixelRatio(window.devicePixelRatio),this.hj&&this.hj.appendChild(this.pj.domElement),this.bj=new v.default(this.container),this.mj=0,this.yj=0,this.gj=!0,this.wj(),this.od=!0,this.zb.publish(c.THREE_SIXTY_READY)},i.prototype.wj=function(){var t,i=this;this._j=this.Ej.bind(this),this.Oj=this.Sj.bind(this),this.Aj=this.Tj.bind(this),this.Mj=this.jj.bind(this),this.Nj=this.Ij.bind(this),this.HO=this.On.bind(this),this.container&&(this.container.addEventListener("mousedown",this._j,!1),this.container.addEventListener("mousemove",this.Oj,!1),this.container.addEventListener("mouseup",this.Aj,!1),this.container.addEventListener("mouseover",this.Mj,!1),this.container.addEventListener("mouseout",this.Nj,!1),this.container.addEventListener("resize",this.HO,!1)),this.kE=this.mn.bind(this),this.kj=this.pn.bind(this),this.Rj=this.gn.bind(this),this.node&&(this.node.addEventListener("pause",this.kE),this.node.addEventListener("playing",this.kj),this.node.addEventListener("seeked",this.Rj)),null===(t=this.bj)||void 0===t||t.addClickListener(this.Lj.bind(this)),this.Cj={},this.Cj[c.PLAYER_RESIZE]=this.zb.addEventListener(c.PLAYER_RESIZE,(function(t,n){window.setTimeout((function(){i.Gd&&(t=window.screen.width,n=window.screen.height),i.Dj(t,n)}),1)}),this),this.Cj[c.FULLSCREEN_CHANGE]=this.zb.addEventListener(c.FULLSCREEN_CHANGE,(function(t){i.Gd=!!t}),this),this.Cj[c.PLAYER_DIMENSION_CHANGE]=this.zb.addEventListener(c.PLAYER_DIMENSION_CHANGE,(function(){var t,n,e;i.node&&i.node.parentNode&&((t=window.getComputedStyle(i.node.parentNode))&&(n=parseInt(t.getPropertyValue("width"),10),e=parseInt(t.getPropertyValue("height"),10)),n&&!isNaN(n)&&e&&!isNaN(e)&&i.Dj(n,e))}),this)},i.prototype.Lj=function(){var t;this.mj=0,this.yj=0,this.Vi(),null===(t=this.bj)||void 0===t||t.update(this.mj),this.zb.publish(c.THREE_SIXTY_PIE_INTERACT)},i.prototype.Pj=function(){var t,i,n,e,r,s,o,u,a,h=this;this.Cj&&Object.keys(this.Cj).forEach((function(t){h.zb.removeEventListener(t,h.Cj[t])})),this._j&&(null===(t=this.container)||void 0===t||t.removeEventListener("mousedown",this._j,!1),this._j=null),this.Oj&&(null===(i=this.container)||void 0===i||i.removeEventListener("mousemove",this.Oj,!1),this.Oj=null),this.Aj&&(null===(n=this.container)||void 0===n||n.removeEventListener("mouseup",this.Aj,!1),this.Aj=null),this.Mj&&(null===(e=this.container)||void 0===e||e.removeEventListener("mouseover",this.Mj,!1),this.Mj=null),this.HO&&(null===(r=this.container)||void 0===r||r.removeEventListener("resize",this.HO,!1),this.HO=null),this.Nj&&(null===(s=this.container)||void 0===s||s.removeEventListener("mouseout",this.Nj,!1),this.Nj=null),this.kE&&(null===(o=this.node)||void 0===o||o.removeEventListener("pause",this.kE),this.kE=null),this.kj&&(null===(u=this.node)||void 0===u||u.removeEventListener("playing",this.kj),this.kj=null),this.Rj&&(null===(a=this.node)||void 0===a||a.removeEventListener("seeked",this.Rj),this.Rj=null),this.cj&&(this.zb.removeEventListener(c.THREE_SIXTY_READY,this.cj),this.cj=null)},i.prototype.xj=function(){var t,i;this.Uj=!1,null===(t=this.container)||void 0===t||t.classList.remove("grabbing-360"),null===(i=this.container)||void 0===i||i.classList.add("over-360"),this.Fj&&(this.Fj=!1,this.gj=!0)},i.prototype.Dj=function(t,i){var n,e,r,s=t,o=i;i*p>t&&(o=t/p),null===(n=this.vj)||void 0===n||n.setViewOffset(t,i,t-s,i-o,s,o),null===(e=this.vj)||void 0===e||e.updateProjectionMatrix(),null===(r=this.pj)||void 0===r||r.setSize(t,i)},i.prototype.Bj=function(){var t=this.Bj.bind(this);if(this.gj&&this.zj)return window.cancelAnimationFrame(this.zj),void(this.zj=null);this.zj=window.requestAnimationFrame(t),this.Vi()},i.prototype.Vi=function(){this.yj=Math.max(-85,Math.min(85,this.yj));var t=u.Math.degToRad(90+this.yj),i=u.Math.degToRad(this.mj);this.vj&&(this.vj.position.x=500*Math.sin(t)*Math.cos(i),this.vj.position.y=500*Math.cos(t),this.vj.position.z=500*Math.sin(t)*Math.sin(i),this.vj.lookAt(this.vj.target),this.vj.position.copy(this.vj.target).negate(),this.dj&&this.pj&&this.pj.render(this.dj,this.vj))},i.prototype.uj=function(){var t,i;this.zj&&window.cancelAnimationFrame(this.zj),this.gj=!0,this.Pj(),this.bj&&(this.bj.destroy(),this.bj=null),this.hj&&(this.hj.parentNode&&this.hj.parentNode.removeChild(this.hj),this.hj=null),null===(i=null===(t=this.container)||void 0===t?void 0:t.parentNode)||void 0===i||i.removeChild(this.container),this.vj=null,this.dj=null,this.pj=null},i.prototype.mn=function(){this.Vj=!0,this.gj=!0},i.prototype.pn=function(){this.Vj=!1,this.gj=!1,this.Bj()},i.prototype.gn=function(){this.Vi()},i.prototype.jj=function(){var t;null===(t=this.container)||void 0===t||t.classList.add("over-360")},i.prototype.Ej=function(t){var i,n;this.Gj=!1,null===(i=this.container)||void 0===i||i.classList.remove("over-360"),null===(n=this.container)||void 0===n||n.classList.add("grabbing-360"),this.Uj=!0,this.Hj=t.clientX,this.Yj=t.clientY,this.qj=this.mj,this.Wj=this.yj},i.prototype.Sj=function(t){var i;this.Uj&&(this.Vj&&!this.Fj&&(this.Fj=!0,this.gj=!1,this.Bj()),this.Gj=!0,this.mj=.1*(this.Hj-t.clientX)+this.qj,this.yj=.1*(t.clientY-this.Yj)+this.Wj,null===(i=this.bj)||void 0===i||i.update(this.mj))},i.prototype.Tj=function(){this.Uj&&(this.xj(),this.Gj?this.zb.publish(c.THREE_SIXTY_INTERACT):this.zb.publish(c.TOGGLE_PLAY_PAUSE)),this.Gj=!1},i.prototype.Ij=function(){this.xj()},i.prototype.On=function(){this.container&&this.Dj(this.container.offsetWidth,this.container.offsetHeight)},i.prototype.aj=function(){this.cj&&(this.zb.removeEventListener(c.THREE_SIXTY_READY,this.cj),this.cj=null),!this.Qj&&this.pj&&this.container&&(this.pj.setSize(this.container.offsetWidth,this.container.offsetHeight),this.Qj=!0)},i.type=h.RendererType.HTML5_HLS_360,i}(d.default);i.default=b},33891:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0});var u=n(51842),a=n(39451),c=n(53072),h=n(30954),f=n(76389),l=n(21962),v=n(21962),d=n(50440),p=n(64685),b=n(2878),m=n(40531),y=n(66342),g=function(t){function i(n,e){var r=t.call(this,n,e)||this;return r.type=i.type,r.Zj(),r}return r(i,t),i.canUse=function(){return b.default.useHtml5MseDefault()&&b.default.isHtml5MseAvailable()},i.getCapabilities=function(t){var i={acceptedProtocols:["http"],preferredFormats:[],acceptedFormats:[],is360Renderer:!1,canDecryptAES:!0};return i.preferredFormats=["m3u8"],i.acceptedFormats=["m3u8","m3u8_playlist","m3u8:fmp4"],(null==t?void 0:t.enableDash)&&!a.userAgent.safari&&(i.preferredFormats.unshift("mpd"),i.acceptedFormats.unshift("mpd")),(null==t?void 0:t.skipFormats)&&t.skipFormats.length&&t.skipFormats.length>0&&(i.preferredFormats=i.preferredFormats.filter((function(i){return-1===t.skipFormats.indexOf(i)})),i.acceptedFormats=i.acceptedFormats.filter((function(i){return-1===t.skipFormats.indexOf(i)}))),i},i.prototype.create=function(i){this.node=t.prototype.create.call(this,i);var n=this.$j();return this.Xj=new u(this.node,n),this.node},i.prototype.play=function(t){void 0===t&&(t=0),this.ended=!1,this.seeking=!1,this.zb.publish(l.PROFILE_START,v.METRICS.STREAM_PLAY_TO_RENDER),this.Xj.play(t)},i.prototype.pause=function(){this.Xj.pause()},i.prototype.preload=function(t){!t||m.isNumber(t.startOffset)&&t.startOffset>0||this.Xj.preload(t.bufferLimit)},i.prototype.setPlayableItem=function(t,i,n){var e=this;if(void 0===i&&(i=0),void 0===n&&(n=!1),!t)return!1;this.Zj(),this.ff=y.default.getPlaybackMode(t);var r,s=t.isLive(),o=t.streamProfiles;if(o&&o.length||(o=t.streams),!o)return!1;var u=[];if(o.forEach((function(t){var i,n;(null===(i=null==t?void 0:t.format)||void 0===i?void 0:i.indexOf("m3u8"))>=0?(t.hls_info=t.hlsInfo,u.push(t),e.Kj="hls"):(null===(n=null==t?void 0:t.format)||void 0===n?void 0:n.indexOf("mpd"))>=0&&(r=t.url,e.Kj="dash")})),"hls"===this.Kj){var c=[];if(t.altStreams&&(t.altStreams=this.tN(t.altStreams),t.altStreams.forEach((function(t){c.push(t)}))),this.zb.publish(l.PROFILE_START,v.METRICS.STREAM_REQUEST_TO_RENDER),this.ff===p.PlaybackMode.VIDEO&&this.zb.publish(l.PROFILE_START,v.METRICS.LOAD_TO_LOADED_DATA),u.length>0)return this.Xj.setSrc({streams:u,altStreams:c,sessionId:t.videoSession,contentId:t.id,cdn:t instanceof d.default?t.getCDN():"",currLang:t&&t.getCurrLanguage(),is360:t.is360Video(),live:s,skt:t instanceof d.default?t.skt:"",syncPoint:t.syncPoint}),this.CM=t,!0}else if("dash"===this.Kj){if(59===a.userAgent.firefox){var h=new f.default(f.E_PLAYER_JS_HLS,f.PLAYER_JS_HLS_CODES.MEDIA_ERR_DECODE);return this.publish(p.RendererEvent.ERROR,h),!1}if(null!==r)return this.Xj.setSrc({url:r,sessionId:t.videoSession,contentId:t.id,cdn:t instanceof d.default?t.getCDN():"",currLang:t&&t.getCurrLanguage(),is360:t.is360Video(),live:s}),this.CM=t,!0}return!1},i.prototype.waitForReady=function(t){return s(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,t()];case 1:return i.sent(),[2]}}))}))},i.prototype.getCurrentDate=function(){return this.Xj.getCurrentDate()},i.prototype.setQuality=function(t){this.Xj.setQuality(t)},i.prototype.setSeedStreamIndex=function(t){this.Xj.setSeedStreamIndex(t)},i.prototype.setAudioLanguage=function(t){this.Xj.setAudioLanguage(t)},i.prototype.stopMedia=function(){this.Xj.unload()},i.prototype.bindCustomEvents=function(){var t=this;if(this.node){this.unbindCustomEvents();this.iN=function(i){var n=i.type;t.nN(n,i)}.bind(this),Object.keys(v.HLSVideoEvent).forEach((function(i){t.node&&t.node.addEventListener(v.HLSVideoEvent[i],t.iN)}))}},i.prototype.unbindCustomEvents=function(){var t=this;this.node&&Object.keys(v.HLSVideoEvent).forEach((function(i){t.node&&t.node.removeEventListener(v.HLSVideoEvent[i],t.iN)}))},i.prototype.bindPlaybackEvents=function(){},i.prototype.unbindPlaybackEvents=function(){},i.prototype.suspendStreaming=function(){var t;null===(t=this.Xj)||void 0===t||t.suspendStreaming()},i.prototype.resumeStreaming=function(){var t;null===(t=this.Xj)||void 0===t||t.resumeStreaming()},i.prototype.getSyncOffset=function(){return this.Xj?this.Xj.getSyncOffset():NaN},i.prototype.startSync=function(){var t;null===(t=this.Xj)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.Xj)||void 0===t||t.stopSync()},i.prototype.setPlaybackRate=function(t){var i;this.node.playbackRate!==t&&(null===(i=this.Xj)||void 0===i||i.setPlaybackRate(t))},i.prototype.getSyncState=function(){return this.Xj?this.Xj.getSyncState():-1},i.prototype.updateSegInfo=function(t){void 0===t&&(t=!1);var i=this.Xj.getSegInfo(t);(null==i?void 0:i.segInfo)&&this.eN(i)},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.Xj&&this.Xj.destroy()},i.prototype.Tm=function(){t.prototype.Tm.call(this),this.bindCustomEvents()},i.prototype.GM=function(){t.prototype.GM.call(this),this.unbindCustomEvents()},i.prototype.sj=function(t){},i.prototype.Gy=function(t,i){switch(t===p.NativeVideoEvent.PLAYING&&this.zb.publish(l.PROFILE_END,[v.METRICS.STREAM_PLAY_TO_RENDER,v.METRICS.STREAM_REQUEST_TO_RENDER]),t){case p.NativeVideoEvent.SEEKING:case p.NativeVideoEvent.SEEKED:this.node&&this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered});break;case p.NativeVideoEvent.ERROR:if(!this.node)return;var n=this.node.error,e=this.Xj.error||{},r=void 0,s=void 0;m.isNumber(e.code)?(r=e.code.toString(),s=e.message):(r=n.code.toString(),s=n.message);var o=new f.default(f.E_PLAYER_JS_HLS,r,null,s);this.rN(o),this.publish(p.RendererEvent.ERROR,o);break;case p.NativeVideoEvent.ENDED:if(this.ended=!0,!this.uO())return;this.publish(i);break;case p.NativeVideoEvent.PAUSE:if(this.ended)break;if(this.seeking)break;this.publish(i);break;case p.NativeVideoEvent.PLAY:this.sN=!1,this.publish(i);break;case p.NativeVideoEvent.PLAYING:this.sN=!0,this.publish(i);break;case p.NativeVideoEvent.TIMEUPDATE:if(!this.node)return;this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.sN||(this.sN=!0,this.publish(p.RendererEvent.PLAYING));break;case p.NativeVideoEvent.LOADEDDATA:this.zb.publish(l.PROFILE_END,v.METRICS.LOAD_TO_LOADED_DATA),this.publish(i);break;case p.NativeVideoEvent.WAITING:case p.NativeVideoEvent.VOLUMECHANGE:break;case p.NativeVideoEvent.ENTERPICTUREINPICTURE:case p.NativeVideoEvent.LEAVEPICTUREINPICTURE:default:this.publish(i)}},i.prototype.nN=function(t,i){var n,e;switch(t){case v.HLSVideoEvent.INFO_UPDATE:if(this.PM){var r=i.detail.mediaInfo,s=r.currentStreamBitrate;0===this.vt.bitrate&&s>0&&this.zb.publish(c.ExternalEvt.BITRATE_CHANGE,s,{}),r.drmsys&&r.drm&&(this.vt.isDrmAvailable=r.drm,this.vt.drmSystem=r.drmsys),this.zb.publish(l.PLAYBACK_INFO,r)}break;case v.HLSVideoEvent.STREAM_SWITCHED:var o=i.detail.bitrate,u={reason:i.detail.reason,oldFrameRate:i.detail.oldFrameRate,newFrameRate:i.detail.newFrameRate};this.zb.publish(c.ExternalEvt.BITRATE_CHANGE,o,u);break;case v.HLSVideoEvent.HLS_WAITING:m.isNullOrUndefined(null===(n=null==i?void 0:i.detail)||void 0===n?void 0:n.bufferInit)||this.publish(p.RendererEvent.WAITING,{value:i.detail.value,ignoreBuffering:i.detail.bufferInit});break;case v.HLSVideoEvent.SEGMENT_FIRST_BYTE_LOADED:this.zb.publish(l.SEGMENT_FIRST_BYTE_LOADED,i.detail);break;case v.HLSVideoEvent.SEGMENT_RENDERED:this.updateSegInfo();break;case v.HLSVideoEvent.VTT_SEGMENT_LOADED:var a=this.vt?this.Tg:null;if(i.detail&&a){var d=void 0;if(this.k_.ad)d=this.CM.id;else{var b=a.getMediaItemBySessionId(i.detail.sessionId);d=b?b.id:null}i.detail.itemId=d}this.zb.publish(l.VTT_SEGMENT_LOADED,i.detail);break;case v.HLSVideoEvent.LIVE_LOADING_LATE:this.zb.publish(l.LIVE_LOADING_LATE);break;case v.HLSVideoEvent.STREAM_UPDATED:this.zb.publish(l.MEDIA_PLAYLIST_UPDATED);break;case v.HLSVideoEvent.CUEPOINT_DETECTED:this.zb.publish(c.ExternalEvt.CUEPOINT_DETECTED,i.detail.cuepointDuration,i.detail.timeGapBeforeCUEOUT);break;case v.HLSVideoEvent.CUEPOINT_STARTED:this.zb.publish(c.ExternalEvt.CUEPOINT_STARTED,i.detail.cuepointDuration,i.detail.cuepointPlayedTime);break;case v.HLSVideoEvent.SUBTITLE_STREAM_UPDATED:this.zb.publish(l.SUBTITLE_PLAYLIST_UPDATED);break;case v.HLSVideoEvent.PRELOAD_PROGRESS:this.zb.publish(l.PROFILE_END,v.METRICS.STREAM_REQUEST_TO_RENDER),this.zb.publish(l.PRELOAD_PROGRESS);break;case v.HLSVideoEvent.SEGINFO_METRICS_AVAILABLE:this.eN(i.detail);break;case v.HLSVideoEvent.CONTENT_LOAD_FINISHED:this.zb.publish(l.CONTENT_LOAD_FINISHED,i.detail);break;case v.HLSVideoEvent.PRELOAD_START:this.zb.publish(l.PRELOAD_START);break;case v.HLSVideoEvent.PRELOAD_COMPLETE:this.zb.publish(l.PRELOAD_COMPLETE);break;case v.HLSVideoEvent.BUFFER_GROWTH_DETECTED:this.zb.publish(l.BUFFER_GROWTH_DETECTED,i.detail);break;case v.HLSVideoEvent.CC_VTT_AVAILABLE:null==(e=this.Tg.getMediaItemBySessionId(i.detail.sessionId))||e.setCCAvailability(!0);break;case v.HLSVideoEvent.MULTI_LANGUAGES_AVAILABLE:null==(e=this.Tg.getMediaItemBySessionId(i.detail.sessionId))||e.setMultiLanguages(i.detail.languages),this.zb.publish(l.MULTI_LANGUAGES_AVAILABLE);break;case v.HLSVideoEvent.MEDIA_METADATA_LOADED:var g=this.vt.bitrates,w=this.vt.heights;this.vt.bitrates=(null==g?void 0:g.length)?g:i.detail.map((function(t){return t.bitrate/1e3})),this.vt.heights=(null==w?void 0:w.length)?w:i.detail.map((function(t){return t.height}));break;case v.HLSVideoEvent.TIMED_METADATA_READY:var _=y.default.extractID3Data(i.detail.data);if(_){var E=y.default.detectRegexPattern(h.ID3_MATCH_PATTERN.JSON,_);if(E)try{_=JSON.parse(E)}catch(t){}this.zb.publish(l.TIMED_METADATA_RECEIVED,_)}break;case v.HLSVideoEvent.BUFFER_GAP_DETECTED:var O=new f.default(f.E_WARNING,f.WARNING_CODES.E_BUFFER_GAP);this.zb.publish(l.WARNING,O,{shouldRenderErrorScreen:!0});break;case v.HLSVideoEvent.DATERANGE_STARTED:this.publish(p.RendererEvent.DATERANGE_STARTED,i.detail);break;case v.HLSVideoEvent.DATERANGE_ENDED:this.publish(p.RendererEvent.DATERANGE_ENDED,i.detail);break;case v.HLSVideoEvent.STREAM_SYNCH_STRATEGY_APPLIED:this.zb.publish(l.STREAM_SYNCH_STRATEGY_APPLIED,i.detail);break;case v.HLSVideoEvent.STREAM_SYNCH_COMPLETE:this.zb.publish(l.STREAM_SYNCH_COMPLETE,i.detail)}},i.prototype.rN=function(t){switch(t.type=f.E_PLAYER_DRM,t.code){case f.PLAYER_JS_HLS_CODES.ERR_DRM_EME_MISSING:t.code=f.PLAYER_DRM_CODES.E_EME_MISSING;break;case f.PLAYER_JS_HLS_CODES.ERR_DRM_INIT:t.code=f.PLAYER_DRM_CODES.E_INIT;break;case f.PLAYER_JS_HLS_CODES.ERR_DRM_CONFIG:t.code=f.PLAYER_DRM_CODES.E_CONFIG;break;case f.PLAYER_JS_HLS_CODES.ERR_DRM_LICENSE_REQUEST:t.code=f.PLAYER_DRM_CODES.E_LICENSE_REQUEST}},i.prototype.$j=function(){var t;return{useWorker:!1,sendAbrAnalytics:!1,stopBufferingOnPause:this.vt.stopBufferingOnPause,dimensions:{width:this.vt.uiState.width,height:this.vt.uiState.height},streamSync:{enabled:(null===(t=this.vt.config.streamSync)||void 0===t?void 0:t.enabled)||!1}}},i.prototype.oN=function(){var t=document.getElementsByClassName(h.VIDEO_MAIN_ELEMENT_CLASS);return!y.default.isPlayerInBackground()&&(null==t?void 0:t.length)>0&&0!==y.default.getElementViewability(t[0])},i.prototype.tN=function(t){if(!t)return t;var i={};return t.filter((function(t){var n=t.type+"_"+t.host+t.path;return!i[n]&&(i[n]=1,!0)}))},i.prototype.eN=function(t){var i=t.segInfo,n=t.sessionId,e=this.oN();i.forEach((function(t){t.vis=e})),this.zb.publish(l.SEG_INFO_AVAILABLE,{val:i,session:n,bufferLen:t.bufferLen})},i.prototype.Zj=function(){this.CM=null,this.Kj=null,this.ff=p.PlaybackMode.VIDEO,this.sN=!0,this.seeking=!1,this.ended=!1},i.type=p.RendererType.HTML5_HLS,i}(n(15132).default);i.default=g},56125:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0});var u,a=n(39451),c=n(21962),h=n(64685),f=n(2878),l=n(66342),v=n(43),d=n(98696),p=16/9,b=function(t){function i(n,e){var r=t.call(this,n,e)||this;return r.type=i.type,r.MT=e.capabilities[h.RendererType.HTML5_RAW_360],r}return r(i,t),i.canUse=function(){return!a.userAgent.tv&&(f.default.is360Supported()&&t.canUse.call(this))},i.getCapabilities=function(t){var i=d.default.getCapabilities(t);return{acceptedProtocols:i.acceptedProtocols,preferredFormats:i.preferredFormats,acceptedFormats:i.acceptedFormats,is360Renderer:!0,canDecryptAES:i.canDecryptAES}},i.prototype.create=function(i){return t.prototype.create.call(this,i),this.oj(),this.container},i.prototype.destroy=function(){this.uj(),t.prototype.destroy.call(this)},i.prototype.waitForReady=function(t){return s(this,void 0,void 0,(function(){var i=this;return o(this,(function(n){switch(n.label){case 0:return this.od?(this.aj(),[4,t()]):[3,2];case 1:return n.sent(),[3,3];case 2:this.cj=this.zb.addEventListener(c.THREE_SIXTY_READY,(function(){return s(i,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return this.aj(),[4,t()];case 1:return i.sent(),[2]}}))}))}),this),n.label=3;case 3:return[2]}}))}))},i.prototype.oj=function(){var t=this;this.od=!1,this.node&&(this.node.setAttribute("crossorigin","anonymous"),this.node.style.visibility="hidden",this.hj=document.createElement("div"),this.hj.classList.add("vp-360-node"),this.hj.style.position="absolute",this.container=document.createElement("div"),this.container.setAttribute("id",l.default.generateGuid()),this.container.classList.add("vp-360-video"),this.container.appendChild(this.node),this.container.appendChild(this.hj),this.fj().then((function(){t.lj()})).catch((function(t){})))},i.prototype.fj=function(){return new Promise((function(t,i){n.e(232).then(function(){u=n(85232),t(u)}.bind(null,n)).catch((function(t){i(t)}))}))},i.prototype.lj=function(){this.vj=new u.PerspectiveCamera(70,p,.01,1e3),this.vj.target=new u.Vector3(0,0,0);var t=new u.SphereBufferGeometry(500,64,32);t.scale(-1,1,1);var i=new u.VideoTexture(this.node);i.minFilter=u.NearestFilter;var n=new u.MeshBasicMaterial({map:i}),e=new u.Mesh(t,n);this.dj=new u.Scene,this.dj.add(e),this.pj=new u.WebGLRenderer,this.pj.setPixelRatio(window.devicePixelRatio),this.hj&&this.hj.appendChild(this.pj.domElement),this.bj=new v.default(this.container),this.mj=0,this.yj=0,this.gj=!0,this.wj(),this.od=!0,this.zb.publish(c.THREE_SIXTY_READY)},i.prototype.wj=function(){var t,i=this;this._j=this.Ej.bind(this),this.Oj=this.Sj.bind(this),this.Aj=this.Tj.bind(this),this.Mj=this.jj.bind(this),this.Nj=this.Ij.bind(this),this.HO=this.On.bind(this),this.container&&(this.container.addEventListener("mousedown",this._j,!1),this.container.addEventListener("mousemove",this.Oj,!1),this.container.addEventListener("mouseup",this.Aj,!1),this.container.addEventListener("mouseover",this.Mj,!1),this.container.addEventListener("mouseout",this.Nj,!1),this.container.addEventListener("resize",this.HO,!1)),this.kE=this.mn.bind(this),this.kj=this.pn.bind(this),this.Rj=this.gn.bind(this),this.node&&(this.node.addEventListener("pause",this.kE),this.node.addEventListener("playing",this.kj),this.node.addEventListener("seeked",this.Rj)),null===(t=this.bj)||void 0===t||t.addClickListener(this.Lj.bind(this)),this.Cj={},this.Cj[c.PLAYER_RESIZE]=this.zb.addEventListener(c.PLAYER_RESIZE,(function(t,n){window.setTimeout((function(){i.Gd&&(t=window.screen.width,n=window.screen.height),i.Dj(t,n)}),1)}),this),this.Cj[c.FULLSCREEN_CHANGE]=this.zb.addEventListener(c.FULLSCREEN_CHANGE,(function(t){i.Gd=!!t}),this),this.Cj[c.PLAYER_DIMENSION_CHANGE]=this.zb.addEventListener(c.PLAYER_DIMENSION_CHANGE,(function(){var t,n,e;i.node&&i.node.parentNode&&((t=window.getComputedStyle(i.node.parentNode))&&(n=parseInt(t.getPropertyValue("width"),10),e=parseInt(t.getPropertyValue("height"),10)),n&&!isNaN(n)&&e&&!isNaN(e)&&i.Dj(n,e))}),this)},i.prototype.Lj=function(){var t;this.mj=0,this.yj=0,this.Vi(),null===(t=this.bj)||void 0===t||t.update(this.mj),this.zb.publish(c.THREE_SIXTY_PIE_INTERACT)},i.prototype.Pj=function(){var t,i,n,e,r,s,o,u,a,h=this;this.Cj&&Object.keys(this.Cj).forEach((function(t){h.zb.removeEventListener(t,h.Cj[t])})),this._j&&(null===(t=this.container)||void 0===t||t.removeEventListener("mousedown",this._j,!1),this._j=null),this.Oj&&(null===(i=this.container)||void 0===i||i.removeEventListener("mousemove",this.Oj,!1),this.Oj=null),this.Aj&&(null===(n=this.container)||void 0===n||n.removeEventListener("mouseup",this.Aj,!1),this.Aj=null),this.Mj&&(null===(e=this.container)||void 0===e||e.removeEventListener("mouseover",this.Mj,!1),this.Mj=null),this.HO&&(null===(r=this.container)||void 0===r||r.removeEventListener("resize",this.HO,!1),this.HO=null),this.Nj&&(null===(s=this.container)||void 0===s||s.removeEventListener("mouseout",this.Nj,!1),this.Nj=null),this.kE&&(null===(o=this.node)||void 0===o||o.removeEventListener("pause",this.kE),this.kE=null),this.kj&&(null===(u=this.node)||void 0===u||u.removeEventListener("playing",this.kj),this.kj=null),this.Rj&&(null===(a=this.node)||void 0===a||a.removeEventListener("seeked",this.Rj),this.Rj=null),this.cj&&(this.zb.removeEventListener(c.THREE_SIXTY_READY,this.cj),this.cj=null)},i.prototype.xj=function(){var t,i;this.Uj=!1,null===(t=this.container)||void 0===t||t.classList.remove("grabbing-360"),null===(i=this.container)||void 0===i||i.classList.add("over-360"),this.Fj&&(this.Fj=!1,this.gj=!0)},i.prototype.Dj=function(t,i){var n,e,r,s=t,o=i;i*p>t&&(o=t/p),null===(n=this.vj)||void 0===n||n.setViewOffset(t,i,t-s,i-o,s,o),null===(e=this.vj)||void 0===e||e.updateProjectionMatrix(),null===(r=this.pj)||void 0===r||r.setSize(t,i)},i.prototype.Bj=function(){var t=this.Bj.bind(this);if(this.gj&&this.zj)return window.cancelAnimationFrame(this.zj),void(this.zj=null);this.zj=window.requestAnimationFrame(t),this.Vi()},i.prototype.Vi=function(){this.yj=Math.max(-85,Math.min(85,this.yj));var t=u.Math.degToRad(90+this.yj),i=u.Math.degToRad(this.mj);this.vj&&(this.vj.position.x=500*Math.sin(t)*Math.cos(i),this.vj.position.y=500*Math.cos(t),this.vj.position.z=500*Math.sin(t)*Math.sin(i),this.vj.lookAt(this.vj.target),this.vj.position.copy(this.vj.target).negate(),this.dj&&this.pj&&this.pj.render(this.dj,this.vj))},i.prototype.uj=function(){var t,i;this.zj&&window.cancelAnimationFrame(this.zj),this.gj=!0,this.Pj(),this.bj&&(this.bj.destroy(),this.bj=null),this.hj&&(this.hj.parentNode&&this.hj.parentNode.removeChild(this.hj),this.hj=null),null===(i=null===(t=this.container)||void 0===t?void 0:t.parentNode)||void 0===i||i.removeChild(this.container),this.vj=null,this.dj=null,this.pj=null},i.prototype.mn=function(){this.Vj=!0,this.gj=!0},i.prototype.pn=function(){this.Vj=!1,this.gj=!1,this.Bj()},i.prototype.gn=function(){this.Vi()},i.prototype.jj=function(){var t;null===(t=this.container)||void 0===t||t.classList.add("over-360")},i.prototype.Ej=function(t){var i,n;this.Gj=!1,null===(i=this.container)||void 0===i||i.classList.remove("over-360"),null===(n=this.container)||void 0===n||n.classList.add("grabbing-360"),this.Uj=!0,this.Hj=t.clientX,this.Yj=t.clientY,this.qj=this.mj,this.Wj=this.yj},i.prototype.Sj=function(t){var i;this.Uj&&(this.Vj&&!this.Fj&&(this.Fj=!0,this.gj=!1,this.Bj()),this.Gj=!0,this.mj=.1*(this.Hj-t.clientX)+this.qj,this.yj=.1*(t.clientY-this.Yj)+this.Wj,null===(i=this.bj)||void 0===i||i.update(this.mj))},i.prototype.Tj=function(){this.Uj&&(this.xj(),this.Gj?this.zb.publish(c.THREE_SIXTY_INTERACT):this.zb.publish(c.TOGGLE_PLAY_PAUSE)),this.Gj=!1},i.prototype.Ij=function(){this.xj()},i.prototype.On=function(){this.container&&this.Dj(this.container.offsetWidth,this.container.offsetHeight)},i.prototype.aj=function(){this.cj&&(this.zb.removeEventListener(c.THREE_SIXTY_READY,this.cj),this.cj=null),!this.Qj&&this.pj&&this.container&&(this.pj.setSize(this.container.offsetWidth,this.container.offsetHeight),this.Qj=!0)},i.type=h.RendererType.HTML5_RAW_360,i}(d.default);i.default=b},40268:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.RebufferingEvent=void 0;var s,o,u=n(44422),a=n(39451),c=n(53872);!function(t){t.WAITING="waiting",t.SEG_INFO_AVAILABLE="segInfoAvailable"}(s=i.RebufferingEvent||(i.RebufferingEvent={})),function(t){t[t.HAVE_NOTHING=0]="HAVE_NOTHING",t[t.HAVE_METADATA=1]="HAVE_METADATA",t[t.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",t[t.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",t[t.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA"}(o||(o={}));var h=function(t){function i(){var i=t.call(this,"Html5RawRebufferingManager")||this;return i.uN=null,i.aN=0,i.ze=null,i.cN=0,i.reset(),i}return r(i,t),i.prototype.destroy=function(){this.hN()},i.prototype.init=function(t,i){void 0===i&&(i=!1),t&&(this._node=t,i&&this.onRecoveryStart(),this.reset(),this.fN())},i.prototype.onSeeking=function(){this.lN()},i.prototype.onRecoveryStart=function(){this.vN(),this.eN()},i.prototype.onEnded=function(){this.hN()},i.prototype.onPause=function(){this.vN(),this.Pe=null},i.prototype.reset=function(){this.Jl=!0,this.playbackStuck=!1,this.Oe=NaN,this.dN=0,this.Pe=null,this.aN=0,this.cN=0,this.ze=null},i.prototype.publishWaitingEvent=function(t){if((!this.playbackStuck||!t)&&(this.playbackStuck||t)){var i={type:"waiting",value:t,ignoreBuffering:this.Jl};this.publish(s.WAITING,i),this.playbackStuck=t,t?(this.Oe=this._node&&this._node.currentTime||0,this.Jl||(this.ze=Date.now())):(this.Jl=!1,this.Oe=NaN,this.vN())}},i.prototype.fN=function(){this.hN(),this.uN=new c.Timer(250,this.pN,this),this.uN.start()},i.prototype.vN=function(){this.ze&&(this.aN+=Date.now()-this.ze,this.ze=null)},i.prototype.pN=function(){this.lN(),this.bN()>5e3&&(this.eN(),this.cN=0)},i.prototype.lN=function(t){if(void 0===t&&(t=!1),this&&this._node){if(!this._node.paused){var i=this.Re();if(t||!(i<150)){var n=this._node.currentTime,e=!1;if(a.userAgent.safari>=6){var r=0;this._node.buffered&&this._node.buffered.length>0&&(r=this._node.buffered.end(this._node.buffered.length-1)),e=this._node.readyState!==o.HAVE_ENOUGH_DATA||r>0&&r+1<this._node.duration&&r<n}n!==this.dN&&!e||this._node.paused?!isNaN(this.Oe)&&n>this.Oe&&this.publishWaitingEvent(!1):this.playbackStuck||(this.Jl=n<=.02,this.publishWaitingEvent(!0)),this.dN=n,this.Pe=Date.now()}}}else this.hN()},i.prototype.Re=function(){var t=Date.now();return this.Pe=this.Pe||t,t-this.Pe},i.prototype.bN=function(){var t=Date.now();return this.cN=this.cN||t,t-this.cN},i.prototype.eN=function(){this.publish(s.SEG_INFO_AVAILABLE,{val:[{buf_dur:this.aN}]}),this.aN=0},i.prototype.hN=function(){this.uN&&(this.uN.destroy(),this.uN=null)},i}(u.default);i.default=h},98696:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s,o=n(39451),u=n(14593),a=n(76389),c=n(21962),h=n(21962),f=n(64685),l=n(35244),v=n(99452),d=n(31204),p=n(2878),b=n(82394),m=n(40531),y=n(66342),g=n(15132),w=n(40268),_=[1,5],E=(!(s=p.default.canPlayType('application/vnd.apple.mpegURL; codecs="avc1.42E01E, mp4a.40.2"'))&&o.userAgent.tv&&(s=p.default.canPlayType("application/vnd.apple.mpegurl")),o.userAgent.tv&&(window.noHLS&&(s=!1),window.hls&&(s=!0)),s),O=p.default.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),S=function(){var t=p.default.canPlayType('video/webm; codecs="vp8, vorbis"');return o.userAgent.tv&&(t=!1),t}(),A=!o.userAgent.safari,T=function(){var t=[];return o.userAgent.android&&t.push("mp4b"),(E||o.userAgent.android&&p.default.isAndroidVersionAbove4())&&t.push("m3u8"),(A||o.userAgent.android&&p.default.isAndroidVersionAbove4())&&t.push("mpd"),O&&t.push("mp4"),S&&t.push("webm"),t}(),M=function(){var t=T.slice(),i=t.indexOf("mp4b");return i>-1&&t.splice(i+1,0,"mp4"),t.push(""),t}(),j=function(t){function i(n,e){var r=t.call(this,n,e)||this;return r.type=i.type,r.mN={},r.MT=e.capabilities[f.RendererType.HTML5_RAW],r.Zj(),(o.userAgent.desktop||o.userAgent.mobile&&d.default.hasNativeAutoplaySupport)&&(r.UM=!0),r.yN=new w.default,r.yN.on(w.RebufferingEvent.WAITING,r.pv,r),r.yN.on(w.RebufferingEvent.SEG_INFO_AVAILABLE,r.Qm,r),r}return r(i,t),i.canUse=function(){return!o.userAgent.tv},i.getCapabilities=function(t){var i={acceptedProtocols:["http"],preferredFormats:T,acceptedFormats:M,is360Renderer:!1,canDecryptAES:!0};return i.preferredFormats=i.preferredFormats.filter((function(t){return"mpd"!==t})),i.acceptedFormats=i.acceptedFormats.filter((function(t){return"mpd"!==t})),i},i.prototype.destroy=function(){this.gN&&this.gN.destroy(),t.prototype.destroy.call(this)},i.prototype.play=function(t){if(void 0===t&&(t=0),this.ended=!1,this.node){if(this._i)return this.publish(f.RendererEvent.ERROR,this._i),void(this._i=null);if(this.zE){if(!d.default.autoplaySupported){if(o.userAgent.ios){var i=this.node.src;this.node.src="",this.node.load(),this.node.src=i}o.userAgent.mobile&&this.node.load()}}else{var n=this.uO(),e=isNaN(this.node.duration)?n&&n.duration:this.node.duration;e||(e=0),m.isNumber(t)&&t>0&&t<e&&(this.node.currentTime=t)}this.zE=!1,this.zb.publish(h.PROFILE_START,c.METRICS.STREAM_PLAY_TO_RENDER),this.XM(),this.wN||(this.yN.publishWaitingEvent(!0),this.wN=!0)}},i.prototype.preload=function(t){},i.prototype.setPlayableItem=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=!1),this.Zj(),this.ff=y.default.getPlaybackMode(t);var e=t.streams||[],r=!1,s=null;this.ju=e,this._N=e.slice(0),this.yN.init(this.node,n),(o.userAgent.safari>=6||o.userAgent.tv)&&e.forEach((function(t){t.format&&t.format.indexOf("m3u8")>-1&&(t.isPrimary||t.is_primary||!s)&&(s=t,r=!0)}));var u=[];if(r){if(s)return this.EN(s,i),this.CM=t,!0}else{e.forEach((function(t){u.push(parseInt(t.videoMetadata.bitrate+"",10))})),u=u.sort(),this.SN=new v.default(this.node,u);var a=this.SN.getTargetBitrate();if(s=this.AN(a))return this.EN(s,i),this.TN(s),this.vt.mp4Abr&&u.length>1&&(this.MN=this.on(f.RendererEvent.TIMEUPDATE,this.tm,this),this.jN=0),this.CM=t,!0}return!1},i.prototype.setQuality=function(t){this.NN(t.stream.url),this.TN(t.stream)},i.prototype.setSeedStreamIndex=function(t){},i.prototype.retryStreams=function(t){var i=this,n=this.ye;if(n&&this.IN<=2)window.setTimeout((function(){i.kN(n,t)}),1e3*_[this.IN-1]);else{this.IN=0;var e=this._N.indexOf(n);if(this._N.splice(e,1),0===this._N.length)return n;var r=b.default.findStreamByProperty(this._N,b.default.BITRATE,this.SN.getTargetBitrate(),this.MT);this.kN(r,t)}return null},i.prototype.stopMedia=function(){this.node.removeAttribute("src"),this.node.load()},i.prototype.bindCustomEvents=function(){},i.prototype.unbindCustomEvents=function(){},i.prototype.unbindPlaybackEvents=function(){},i.prototype.suspendStreaming=function(){this.stopMedia()},i.prototype.resumeStreaming=function(){this.zb.publish(h.LIVE_RELOAD_MEDIA)},i.prototype.getSyncOffset=function(){return this.Gi?this.Gi.getSyncOffset():NaN},i.prototype.startSync=function(){var t;null===(t=this.Gi)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.Gi)||void 0===t||t.stopSync()},i.prototype.setPlaybackRate=function(t){this.node.playbackRate!==t&&(this.node.playbackRate=t)},i.prototype.getSyncState=function(){return this.Gi?this.Gi.getSyncState():-1},i.prototype.setAudioLanguage=function(t){if(this.node&&this.node.audioTracks&&this.node.audioTracks.length){for(var i,n=-1,e=0;e<this.node.audioTracks.length;e++)(i=this.node.audioTracks[e]).enabled=!1,i.label===t&&-1===n&&(n=e);n>-1&&(this.node.audioTracks[n].enabled=!0)}},i.prototype.sj=function(t){var i;null===(i=this.Gi)||void 0===i||i.updateDateRanges(t)},i.prototype.Gy=function(t,i){var n=this;if(this.node)switch(t===f.NativeVideoEvent.PLAYING&&this.zb.publish(h.PROFILE_END,[c.METRICS.STREAM_PLAY_TO_RENDER,c.METRICS.STREAM_REQUEST_TO_RENDER]),t){case f.NativeVideoEvent.TIMEUPDATE:this.yN.playbackStuck||(this.RN||(this.RN=!0,this.publish(f.RendererEvent.PLAYING)),this.seeking&&(this.publish(f.RendererEvent.SEEKED,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.seeking=!1));var e=this.node.currentTime;if(o.userAgent.android){if(!this.LN&&o.userAgent.chrome<33&&e>1&&e<2)(b=this.uO())&&b.isLive()?(this.node.pause(),this.XM()):this.seek(0),this.LN=!0;!this.CN&&o.userAgent.androidVersion<=4.4&&this.node.addEventListener("webkitfullscreenchange",(function(){if(n.node){var t=n.node.currentTime;n.CN=!0,n.node.load();var i=n.on(f.RendererEvent.LOADEDMETADATA,(function(){if(n.node){n.XM();var e=n.uO();e&&e.isLive()&&(n.node.currentTime=parseInt(t+"",10)),n.removeEventListener(f.RendererEvent.LOADEDMETADATA,i)}}),n)}}),!1)}this.DN||this.yN.playbackStuck||this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.PN=this.node.currentTime;var r=this.node.getStartDate&&this.node.getStartDate(),s=r&&new Date(r).getTime();if(!s)break;Object.keys(this.FM).forEach((function(t){var i=n.FM[t],e=1e3*n.node.currentTime;if(i.endDate||i.duration||i.endOnNext){var r=e>=i.startDate-s&&(e<=i.endDate-s||i.endOnNext);r&&!(t in n.mN)?(Object.keys(n.mN).forEach((function(t){n.mN[t]&&n.FM[t].endOnNext&&(n.mN[t]=!1,n.publish(f.RendererEvent.DATERANGE_ENDED,n.FM[t]))})),n.mN[t]=!0,n.publish(f.RendererEvent.DATERANGE_STARTED,i)):!r&&t in n.mN&&!0===n.mN[t]&&(n.mN[t]=!1,n.publish(f.RendererEvent.DATERANGE_ENDED,i))}}));break;case f.NativeVideoEvent.SEEKING:this.seeking=!0,this.yN.onSeeking(),this.DN||this.yN.playbackStuck||this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.PN=this.node.currentTime;break;case f.NativeVideoEvent.SEEKED:this.DN?this.xN():this.yN.playbackStuck||(this.seeking=!1,this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered})),this.PN=this.node.currentTime;break;case f.NativeVideoEvent.ERROR:var u=this.node.error,l=this.KM(u),v=this._N.length<=1&&this.IN>=2,d=v?a.E_PLAYER:a.E_WARNING,p=new a.default(d,l,null,this.node.src);if(this.ff!==f.PlaybackMode.VIDEO){p.type=a.E_PLAYER,this.publish(f.RendererEvent.ERROR,p);break}if(parseInt(p.code,10)>=303&&parseInt(p.code,10)<=308){this.IN++,v||this.zb.publish(h.WARNING,p);var b,m=null;return(m=(b=this.uO())&&!b.isLive()?this.retryStreams(this.PN):this.retryStreams(0))?void y.default.getUrlStatus(m.url,(function(t){var i;401===t?i=a.PLAYER_CODES.E_NATIVE_UNAUTHORIZED_URL:404===t&&(i=a.PLAYER_CODES.E_NATIVE_URL_NOT_FOUND),p.code=i,p.type=a.E_PLAYER,n.publish(f.RendererEvent.ERROR,p)})):void 0}p.type=a.E_PLAYER,this.publish(f.RendererEvent.ERROR,p);break;case f.NativeVideoEvent.ENDED:this.ended=!0,this.LN=!1,this.yN.onEnded(),this.yN.playbackStuck&&this.yN.publishWaitingEvent(!1),this.publish(i);break;case f.NativeVideoEvent.LOADEDDATA:if(this.DN){this.UN();break}this.zb.publish(h.PROFILE_END,c.METRICS.LOAD_TO_LOADED_DATA),this.publish(i),this.node.audioTracks&&this.node.audioTracks.length>1&&this.FN();break;case f.NativeVideoEvent.PAUSE:if(this.ended||this.node.ended)break;if(this.seeking)break;if(!this.node.paused)break;this.yN.onPause(),this.yN.playbackStuck&&this.yN.publishWaitingEvent(!1),this.publish(i);break;case f.NativeVideoEvent.PLAY:case f.NativeVideoEvent.PLAYING:if(this.DN){t===f.NativeVideoEvent.PLAYING&&this.BN();break}this.yN.playbackStuck||(this.RN=t===f.NativeVideoEvent.PLAYING,this.publish(i));break;case f.NativeVideoEvent.WAITING:case f.NativeVideoEvent.VOLUMECHANGE:break;case f.NativeVideoEvent.ENTERPICTUREINPICTURE:case f.NativeVideoEvent.LEAVEPICTUREINPICTURE:default:this.publish(i)}},i.prototype.zN=function(t,i){return t.indexOf(i)>-1},i.prototype.VN=function(t,i){return this.zN(t,"mp4")&&this.zN(i,"m3u8")||this.zN(t,"m3u8")&&this.zN(i,"mp4")},i.prototype.Zj=function(){this.DN=!1,this.GN="",this.ye=null,this.IN=0,this._N=[],this.HN=null,this.wN=!1,this.PN=0,this.RN=!1,this.CM=null,this.ff=f.PlaybackMode.VIDEO,this.LN=!1,this.CN=!1,this.jN=0,this.MN&&(this.removeEventListener(f.RendererEvent.TIMEUPDATE,this.MN),this.MN=null),this.seeking=!1,this.ended=!1},i.prototype.YN=function(){var t=null;if(this.ju)for(var i=0,n=this.ju;i<n.length;i++){var e=n[i];if(e.isPrimary){t=e;break}}return t},i.prototype.AN=function(t){var i=this.YN();return i||(i=b.default.findStreamByProperty(this.ju,"bitrate",t,this.MT)),!i&&this.ju&&this.ju.length>0&&(i=this.ju[0]),i},i.prototype.tm=function(t){if(t-this.jN>10){this.jN=t;var i=this.AN(this.SN.getRecommendedBitrate());i&&(this.NN(i.url),this.TN(i))}},i.prototype.TN=function(t){this.SN&&(this.SN.currentBitrate=t.videoMetadata.bitrate),this.zb.publish(h.PLAYBACK_INFO,{currentStreamBitrate:t.videoMetadata.bitrate,qualityLevels:this.ju.length})},i.prototype.EN=function(t,i,n){var e=this;if(this.node){var r=this.uO();if(r.license&&r.license.isDrm&&!d.default.drmSupported){var s=void 0;return o.userAgent.ios&&o.userAgent.iosVersion<11.2||o.userAgent.android&&!o.userAgent.chrome?s=a.INFO_CODES.E_DRM_UNSUPPORTED_OS:o.userAgent.ios&&!o.userAgent.safari&&(s=a.INFO_CODES.E_DRM_UNSUPPORTED_BROWSER),void this.zb.publish(h.INFO,new a.default(a.E_INFO,s,null,this.node.src))}if(o.userAgent.safari&&(this.gN?r.isRecovering()&&this.gN.init():this.gN=new u.default(this.node,t.fairplayCertificatePath,this.qN.bind(this),this.reportError.bind(this))),this.ended=!1,this.LN=!1,this.node.src!==t.url||n){if(o.userAgent.iphone&&Object.prototype.hasOwnProperty.call(this.node,"webkitDisplayingFullscreen")&&!this.node.webkitDisplayingFullscreen&&t.format&&this.VN(t.format,this.GN)){var v=this.node.parentNode;this.destroy(),v&&v.appendChild(this.create())}if(o.userAgent.safari&&o.userAgent.ios&&this.vt.shouldSynchronize()&&(this.Gi&&this.Gi.onSetSrc(),this.Gi),o.userAgent.android&&t.live&&(o.userAgent.chrome&&o.userAgent.chrome<30||!p.default.isAndroidVersionAbove4())){var b=new a.default(a.E_INFO,a.INFO_CODES.E_PLAYER_ANDROID_CHROME_REQUIRED);return void this.zb.publish(h.INFO,b)}if(this.HM(),this.zb.publish(h.PROFILE_START,c.METRICS.STREAM_REQUEST_TO_RENDER),this.node.src=t.url,i)var m=this.on(f.RendererEvent.LOADEDMETADATA,(function(){e.node&&(e.node.currentTime=i),e.removeEventListener(f.RendererEvent.LOADEDMETADATA,m)}),this);this.zE=!0,this.GN=t.format||"",this.ye=t,this.ff===f.PlaybackMode.VIDEO&&this.zb.publish(h.PROFILE_START,c.METRICS.LOAD_TO_LOADED_DATA),o.userAgent.mobile?d.default.hasNativeAutoplaySupport&&this.node.load():(this.node.load(),this.vt.getState()===l.States.VIDEO&&this.play())}}},i.prototype.WN=function(){if(!this.node)return{};var t=this.node.videoWidth/this.node.videoHeight,i=this.node.clientWidth,n=this.node.clientHeight,e=0,r=0;return i/n>t?(r=parseInt(n.toFixed(2),10),e=parseInt((t*n).toFixed(2),10)):(e=parseInt(i.toFixed(2),10),r=parseInt((i/t).toFixed(2),10)),{width:e,height:r,left:Math.max((i-e)/2,0),top:Math.max((n-r)/2,0)}},i.prototype.UN=function(){this.seek(this.Zd)},i.prototype.qN=function(){this.vt.isDrmAvailable=!0,this.vt.drmSystem="fairplay"},i.prototype.xN=function(){if(this.node){this.XM();var t=this.QN.parentNode;t&&t.removeChild(this.QN)}},i.prototype.BN=function(){this.publish(f.CustomRendererEvent.SRC_SWITCHED),this.DN=!1},i.prototype.NN=function(t,i){if(this.node){var n=this.node.clientWidth,e=this.node.clientHeight;if(this.node.src===t)return this.publish(f.CustomRendererEvent.SRC_SWITCHING),void this.publish(f.CustomRendererEvent.SRC_SWITCHED);this.DN=!0,this.node.pause(),this.Zd=this.node.currentTime;var r=document.createElement("canvas");this.QN=r,r.className="vp-switching-canvas",r.width=n,r.height=e;var s=this.WN();r.style.cssText="width:"+s.width+"px;height:"+s.height+"px;left:"+s.left+"px;top:"+s.top+"px";var o=this.node.parentNode;o&&o.appendChild(r);var u=r.getContext("2d");u&&u.drawImage(this.node,0,0,n,e),this.publish(f.CustomRendererEvent.SRC_SWITCHING),this.node.src=t}},i.prototype.kN=function(t,i){this.EN(t,i,!0),this.TN(t)},i.prototype.FN=function(){if(this.node&&this.node.audioTracks&&!(this.node.audioTracks.length<2)){var t=Array.prototype.slice.call(this.node.audioTracks).map((function(t){return{name:t.label,language:t.language,selected:t.enabled}})),i=this.uO();i&&(i.setMultiLanguages(t),this.zb.publish(h.MULTI_LANGUAGES_AVAILABLE))}},i.prototype.pv=function(t){t.value&&(this.RN=!1),t.ignoreBuffering=t.ignoreBuffering||this.seeking,this.publish(f.RendererEvent.WAITING,t)},i.prototype.Qm=function(t){this.zb.publish(h.SEG_INFO_AVAILABLE,t)},i.type=f.RendererType.HTML5_RAW,i}(g.default);i.default=j},64685:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.Renderer=i.AdPluginEvent=i.ExternalPlayerCapability=i.CustomRendererEvent=i.RendererEvent=i.NativeVideoEvent=i.PlaybackMode=i.RendererType=void 0;var s,o=n(44422);!function(t){t.AD_PLUGIN="AD_PLUGIN",t.HTML5_HLS="HTML5_HLS",t.HTML5_RAW="HTML5_RAW",t.HTML5_RAW_360="HTML5_RAW_360",t.HTML5_HLS_360="HTML5_HLS_360",t.HTML5_TV="HTML5_TV",t.HTML5_TV_TIZEN="HTML5_TV_TIZEN",t.HTML5_TV_ORSAY="HTML5_TV_ORSAY",t.UNKNOWN="UNKNOWN"}(s=i.RendererType||(i.RendererType={})),function(t){t.VIDEO="video",t.AD="ad"}(i.PlaybackMode||(i.PlaybackMode={})),function(t){t.ENDED="ended",t.ERROR="error",t.LOADEDMETADATA="loadedmetadata",t.LOADEDDATA="loadeddata",t.PAUSE="pause",t.STALLED="stalled",t.LOADSTART="loadstart",t.PLAY="play",t.PLAYING="playing",t.SEEKING="seeking",t.SEEKED="seeked",t.TIMEUPDATE="timeupdate",t.VOLUMECHANGE="volumechange",t.WAITING="waiting",t.ENTERPICTUREINPICTURE="enterpictureinpicture",t.LEAVEPICTUREINPICTURE="leavepictureinpicture"}(i.NativeVideoEvent||(i.NativeVideoEvent={})),function(t){t.PAUSE="pause",t.ENDED="ended",t.PLAYBACK_ENDED="playbackended",t.ERROR="error",t.INFO="info",t.LOADEDMETADATA="loadedmetadata",t.LOADEDDATA="loadeddata",t.STALLED="stalled",t.LOADSTART="loadstart",t.PLAY="play",t.PLAYING="playing",t.SEEKING="seeking",t.SEEKED="seeked",t.TIMEUPDATE="timeupdate",t.VOLUMECHANGE="volumechange",t.WAITING="waiting",t.DATERANGE_STARTED="daterangestarted",t.DATERANGE_ENDED="daterangeended",t.AD_CC_LOADED="adccloaded",t.SUBTITLE_TRACK_RECEIVED="subtitleTrackReceived",t.ENTERPICTUREINPICTURE="enterpictureinpicture",t.LEAVEPICTUREINPICTURE="leavepictureinpicture"}(i.RendererEvent||(i.RendererEvent={})),function(t){t.SRC_SWITCHING="srcSwitching",t.SRC_SWITCHED="srcSwitched",t.CLICK="rendererClick",t.PLAYBACK_START_BLOCKED="playBlocked",t.PLAYBACK_START_NOT_BLOCKED="playNotBlocked",t.SKIPPED="rendererItemSkipped",t.END_FULLSCREEN="endFullscreen",t.ENTER_FULLSCREEN="enterFullscreen",t.PLAY_COMPLETE="playComplete",t.PIP_MODE_CHANGED="pipModeChanged"}(i.CustomRendererEvent||(i.CustomRendererEvent={})),function(t){t.RENDER_PDL="1",t.RENDER_VPAID="2",t.RENDER_HLS="3"}(i.ExternalPlayerCapability||(i.ExternalPlayerCapability={})),function(t){t.BREAK_ENDED="BREAK_ENDED",t.PLAYING="PLAYING",t.PAUSED="PAUSED",t.PLAY_COMPLETE="PLAY_COMPLETE",t.TIME_UPDATE="TIME_UPDATE",t.MUTE_CHANGED="MUTE_CHANGED",t.VOLUME_CHANGED="VOLUME_CHANGED",t.CLOSED_CAPTIONS_LOADED="CLOSED_CAPTIONS_LOADED"}(i.AdPluginEvent||(i.AdPluginEvent={}));var u=function(t){function i(n){void 0===n&&(n="renderer");var e=t.call(this,n)||this;return e.type=i.type,e.CM=null,e}return r(i,t),i.canUse=function(){return!1},i.getCapabilities=function(t){return{acceptedProtocols:[],preferredFormats:[],acceptedFormats:[],is360Renderer:!1,canDecryptAES:!1}},i.prototype.getPlayableItem=function(){return this.CM},i.prototype.updateSegInfo=function(t){void 0===t&&(t=!1)},i.type=s.UNKNOWN,i}(o.default);i.Renderer=u,i.default=u},26669:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(33891),r=n(78259),s=n(98696),o=n(56125),u=n(42758),a=n(41600),c=n(16103),h=[e.default,s.default,r.default,o.default,c.default,a.default,u.default],f=[e.default,s.default,c.default,a.default,u.default],l=function(){function t(){}return t.getRendererTypes=function(){for(var t=[],i=0,n=h;i<n.length;i++){var e=n[i];e&&e.canUse()&&t.push(e.type)}return t},t.getAdRendererTypes=function(){for(var t=[],i=0,n=f;i<n.length;i++){var e=n[i];e&&e.canUse()&&t.push(e.type)}return t},t.getCapabilities=function(t){for(var i=[],n=0,e=h;n<e.length;n++){var r=e[n];r&&r.canUse()&&i.push(r)}var s={};return i.forEach((function(i){var n=i.getCapabilities(t);s[i.type]=n})),s},t}();i.default=l},15658:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(39451),r=n(62912),s=n(31204),o=n(66342),u=function(){function t(){this.ZN=[],this.$N=[],this.XN=null,this.KN=s.default.hasTouchRestrictions,this.JN=1,this.fill()}return t.getPool=function(){return t.tI||(t.tI=new t),t.tI},t.prototype.get=function(){this.ZN.length<=2&&this.fill();var t=this.ZN.shift();if(t)return r.default.isUnmuteRestrictionRemoved(t)||this.$N.push(t),t.setAttribute("data-vp-ridx",this.JN+""),t.__rendererIndex=this.JN,this.JN++,t},t.prototype.fill=function(){this.iI(10-this.ZN.length)},t.prototype.discard=function(t){r.default.cleanupVideoNode(t);var i=this.$N.indexOf(t);-1!==i&&this.$N.splice(i,1)},t.prototype.destroy=function(){this.XN&&this.XN(),this.ZN.length=0,this.$N.length=0,this.$N=this.ZN=[],this.XN=null},t.prototype.iI=function(t){for(var i=0;i<t;i++){var n=e.userAgent.mobile?r.default.createMobileVideoNode():o.default.createVideoNode();this.ZN.push(n)}this.KN&&this.nI()},t.prototype.nI=function(){var t=this;this.XN||(this.XN=r.default.waitForValidUserGestureEvent((function(){t.XN=null,t.$N.forEach(r.default.removeUnmuteRestriction),t.ZN.forEach(r.default.removeUnmuteRestriction),t.$N.forEach(r.default.removeTouchToPlayRestriction),t.ZN.forEach(r.default.removeTouchToPlayRestriction),t.$N.length=0})))},t}();i.default=u},35244:function(t,i){"use strict";var n;Object.defineProperty(i,"__esModule",{value:!0}),i.States=void 0,function(t){t.INIT="init",t.WAITING="waiting",t.VIDEO="video",t.END="end"}(n=i.States||(i.States={})),i.default=n},1954:function(t,i,n){"use strict";var e,r,s,o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},o.apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var u=n(95986),a=n(19068),c=o(o({},u),a),h=(null===(s=null===(r=null===(e=window.YAHOO)||void 0===e?void 0:e.CorePlayer)||void 0===r?void 0:r.i18n)||void 0===s?void 0:s.strings)||c;i.default=h},99452:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(53872),r="yvpTargetBitrate",s=function(){function t(t,i,n,e){var r=this;this.eI=t,this.rI=i?i.sort((function(t,i){return t-i})):[],this.reservoirLength=n||10,this.cushionLength=e||20,this.currentBitrate=0,this.sI={},this.rI.forEach((function(t){r.sI[t]=0})),t&&t.addEventListener("waiting",(function(){r.sI[r.currentBitrate]=r.sI[r.currentBitrate]+1}),!1)}return t.prototype.setTargetBitrate=function(t){e.LocalStorage.put(r,t)},t.prototype.getTargetBitrate=function(){var t=e.LocalStorage.get(r);return(t=parseInt(t,10))||(t=900,this.setTargetBitrate(900)),t},t.prototype.getBufferOccupancy=function(){for(var t=this.eI.buffered,i=this.eI.currentTime,n=0,e=0;e<t.length;e++){var r=t.start(e),s=t.end(e);return r<=i&&s>=i&&(n=s-i)>=this.eI.length-i?Number.MAX_VALUE:n}return n},t.prototype.getRecommendedBitrate=function(t,i,n){i=i||this.rI,n=void 0===n?this.getBufferOccupancy():n,t=void 0===t?i.indexOf(this.currentBitrate):t;var e=i[t],r=i[0],s=i[i.length-1],o=e===s?s:i[t+1],u=e===r?r:i[t-1],a=this.oI(i,n),c=e;return a>=o?c=this.uI(i,a):a<=u&&(c=this.aI(i,a)),c},t.prototype.getNumberOfBufferingsForBitrate=function(t){return this.sI[t]},t.prototype.oI=function(t,i){if(i===Number.MAX_VALUE)return this.currentBitrate;var n=t[0];if(i>this.reservoirLength){var e=t[0],r=(t[t.length-1]-e)/this.cushionLength;n=(i-this.reservoirLength)*r+e}return n},t.prototype.uI=function(t,i){for(var n=t.length-1;n>=0;n--){var e=t[n];if(e<=i)return e}return t[0]},t.prototype.aI=function(t,i){for(var n=0,e=t;n<e.length;n++){var r=e[n];if(r>=i)return r}return t[t.length-1]},t}();i.default=s},2694:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DATE_RANGE_WATCHTOGETHER_CLASS=i.DATE_RANGE_CLASSNAMES_ALLOWLIST=i.ADS_DATE_RANGE_CLASSNAMES_ALLOWLIST=void 0,i.ADS_DATE_RANGE_CLASSNAMES_ALLOWLIST=["urn:yxs:ad-data","urn:uplynk:ad-data"],i.DATE_RANGE_CLASSNAMES_ALLOWLIST=["urn:uplynk:content-data:watchtogether"].concat(i.ADS_DATE_RANGE_CLASSNAMES_ALLOWLIST),i.DATE_RANGE_WATCHTOGETHER_CLASS="content-data:watchtogether";var n=function(){function t(){}return t.getData=function(n){return t.parseRawDataFromAllowedDaterange(n,i.DATE_RANGE_CLASSNAMES_ALLOWLIST)},t.parseRawDataFromAllowedDaterange=function(t,i){if(!t)return null;var n=t.className;if(!i.some((function(t){return n.indexOf(t)>-1})))return null;try{return JSON.parse(t.rawData)}catch(t){return null}},t.isInWatchTogetherDateRange=function(t){return t.className.indexOf(i.DATE_RANGE_WATCHTOGETHER_CLASS)>-1},t}();i.default=n},90727:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(t){this.ne=t,this.cI=new Array}return t.prototype.destroy=function(){this.flush(!1)},t.prototype.enQueue=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.cI.push({args:i,job:t})},t.prototype.flush=function(t){var i=this;void 0===t&&(t=!1);var n=this.cI;this.cI=new Array,t&&n.forEach((function(t){if(i.ne){var n=t.job,e=t.args;n.apply(i.ne,e)}}))},t.prototype.deQueue=function(t,i){if(void 0===i&&(i=!1),t)for(var n=0;n<this.cI.length;n++){var e=this.cI[n],r=e.job,s=e.args;if(r===t){i&&this.ne&&r.apply(this.ne,s),this.cI.splice(n,1);break}}},t.prototype.getLength=function(){return this.cI.length},t}();i.default=n},62912:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(39451),r=n(40514),s=n(31204),o=n(66342),u=function(){function t(){}return t.hasFirstPlaybackStartHappened=function(t){return!0===t.__hasPlayedVideo},t.onceFirstPlaybackStarts=function(i,n){s.default.hasMuteAtFirstPlayRestriction&&(n="function"==typeof n?n:void 0,t.hasFirstPlaybackStartHappened(i)?n&&n():(i.__firstPlaybackStartCb&&(i.__firstPlaybackStartCb=null,delete i.__firstPlaybackStartCb),n&&(i.__firstPlaybackStartCb=n)))},t.waitForValidUserGestureEvent=function(t){if("function"!=typeof t)return o.default.noop;var i,n=["keydown","mousedown"];e.userAgent.mobile&&(s.default.autoplayByUIEvtOnly?n.push("touchend"):(n.push("tap"),i=new r.default(window)));var u=function(){a&&a(),t()},a=function(){i&&i.destroy(),n&&n.forEach((function(t){u&&window.removeEventListener(t,u,!0)})),n=i=u=a=null};return n.forEach((function(t){u&&window.addEventListener(t,u,!0)})),a},t.isUnmuteRestrictionRemoved=function(t){return!!t&&("boolean"!=typeof t.__userTouchRestrictionRemoved||t.__userTouchRestrictionRemoved)},t.removeUnmuteRestriction=function(i){if(i&&!t.isUnmuteRestrictionRemoved(i)){var n=i.muted;i.muted=!1,i.__userTouchRestrictionRemoved=!0,i.setAttribute("data-restricted","false"),i.muted!==n&&(i.muted=n)}},t.removeTouchToPlayRestriction=function(i){i&&s.default.autoplayByUIEvtOnly&&!t.isTouchToPlayRestrictionRemoved(i)&&(i.load(),i.__userTouchToPlayRestrictionRemoved=!0)},t.isTouchToPlayRestrictionRemoved=function(t){return!!t&&(!s.default.autoplayByUIEvtOnly||!!t.__userTouchToPlayRestrictionRemoved)},t.setupTouchToPlayRestrictionRemoval=function(i,n){return!s.default.autoplayByUIEvtOnly||t.isTouchToPlayRestrictionRemoved(i)?(n(),o.default.noop):t.waitForValidUserGestureEvent((function(){t.removeTouchToPlayRestriction(i),n()}))},t.createMobileVideoNode=function(){var t=o.default.createVideoNode();return e.userAgent.mobile&&s.default.autoplaySupported?(t.controlsList&&"function"==typeof t.controlsList.add&&t.controlsList.add("nodownload"),s.default.canPlayInline&&t.setAttribute("playsinline","true"),t.muted=!0,t.__userTouchRestrictionRemoved=!1,t.setAttribute("data-restricted","true"),s.default.autoplayByUIEvtOnly&&(t.__userTouchToPlayRestrictionRemoved=!1),s.default.hasMuteAtFirstPlayRestriction&&(t.__onPlaying=function(){t.__hasPlayedVideo=!0,t.__firstPlaybackStartCb&&(t.__firstPlaybackStartCb(),delete t.__firstPlaybackStartCb),t.__onPlaying&&(t.removeEventListener("playing",t.__onPlaying),delete t.__onPlaying)},t.__hasPlayedVideo=!1,t.addEventListener("playing",t.__onPlaying)),t):t},t.setMuteSafe=function(i,n){i.muted!==n&&t.isUnmuteRestrictionRemoved(i)&&(s.default.hasMuteAtFirstPlayRestriction&&!t.hasFirstPlaybackStartHappened(i)?t.onceFirstPlaybackStarts(i,(function(){i.muted=n})):i.muted=n)},t.cleanupVideoNode=function(t){t.__firstPlaybackStartCb&&(t.__firstPlaybackStartCb=null,delete t.__firstPlaybackStartCb),t.__onPlaying&&(t.removeEventListener("playing",t.__onPlaying),delete t.__onPlaying)},t.available=!0,t}();i.default=u},31204:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(39451),r=function(){function t(){}return Object.defineProperty(t,"deviceType",{get:function(){return e.userAgent.mobile?e.userAgent.ipad||e.userAgent.androidTablet?"tablet":"phone":e.userAgent.tv?"tv":"desktop"},enumerable:!1,configurable:!0}),Object.defineProperty(t,"canPlayInline",{get:function(){return!e.userAgent.mobile||(e.userAgent.android&&e.userAgent.chrome>=50||e.userAgent.ios&&e.userAgent.iosVersion>=10)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"hasMuteAtFirstPlayRestriction",{get:function(){return e.userAgent.android&&e.userAgent.chrome>=56},enumerable:!1,configurable:!0}),Object.defineProperty(t,"hasLoadRestriction",{get:function(){return e.userAgent.ios&&e.userAgent.iosVersion>=11},enumerable:!1,configurable:!0}),Object.defineProperty(t,"hasTouchRestrictions",{get:function(){return e.userAgent.mobile&&(t.hasNativeAutoplaySupport||t.hasLoadRestriction)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"needsGestureToPlay",{get:function(){return t.hI(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"needsGestureToPlayUnmuted",{get:function(){return t.hI(!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoplaySupported",{get:function(){return t.canPlayInline&&t.isAutoplaySupported()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"drmSupported",{get:function(){return e.userAgent.ios?!(!(e.userAgent.iosVersion>11.2&&e.userAgent.safari)||e.userAgent.iosWebView||e.userAgent.chrome||e.userAgent.firefox):e.userAgent.android?!!e.userAgent.chrome:!!e.userAgent.desktop},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoplayByUIEvtOnly",{get:function(){return t.autoplaySupported&&t.canAutoplayByUIEvtOnly()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"hasNativeAutoplaySupport",{get:function(){return t.autoplaySupported&&!t.autoplayByUIEvtOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t,"airplaySupported",{get:function(){return!1},enumerable:!1,configurable:!0}),t.updateNetwork=function(i,n){n&&!t.network.available&&(t.network.mobile=i,t.network.connectionType=n,t.network.available=!0)},t.update=function(t,i){"boolean"==typeof t&&i&&!this.network.available&&(this.network.mobile=t,this.network.connectionType=i,this.network.available=!0)},t.isAutoplaySupported=function(){return!e.userAgent.mobile||(e.userAgent.android&&e.userAgent.chrome>=50||e.userAgent.ios&&e.userAgent.iosVersion>=10||!1)},t.canAutoplayByUIEvtOnly=function(){return!!(e.userAgent.android&&e.userAgent.chrome>=50&&e.userAgent.chrome<53||e.userAgent.iosVersion>=10&&t.needsGestureToPlay)},t.hI=function(t){var i=window.document.createElement("video");i.muted=t,i.setAttribute("playsinline","true");var n=i.play&&i.play();n&&n.catch((function(t){}));var e=i.paused;return i=null,e},t.network={available:!1,connectionType:"unknown",mobile:!1},t}();i.default=r},2878:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(39451),r=n(40531),s=n(33891),o=n(31204),u=document.createElement("video"),a=function(){function t(){}return t.isHtml5MseAvailable=function(){return!!r.isFunction(s.default)&&(!!t.isMSEAvailable()&&(t.isMSECompatible('video/mp4; codecs="avc1.640010"')&&t.isMSECompatible('audio/mp4; codecs="mp4a.40.2"')))},t.useHtml5MseDefault=function(){return e.userAgent.tv?!(e.userAgent.tizen||e.userAgent.orsay||e.userAgent.firetv||e.userAgent.presto)&&!!t.isHtml5MseAvailable():e.userAgent.mobile?!!(e.userAgent.android&&e.userAgent.chrome&&o.default.hasNativeAutoplaySupport):!e.userAgent.winXP&&!e.userAgent.winVista&&(e.userAgent.chrome>=47||e.userAgent.firefox>=44||e.userAgent.ie>=11||e.userAgent.edge>=12||e.userAgent.safari>=14||e.userAgent.chromium>=100)},t.is360Supported=function(){return!!e.userAgent.desktop&&!!(e.userAgent.chrome||e.userAgent.firefox||e.userAgent.opera||e.userAgent.safari)},t.isMSEAvailable=function(){return"undefined"!=typeof MediaSource},t.isMSECompatible=function(t){var i=MediaSource;return i&&!i.isTypeSupported?!(!u||!u.canPlayType(t)):!(!i||!i.isTypeSupported(t))},t.isAndroidVersionAbove4=function(){return!!e.userAgent.androidVersion&&parseInt(e.userAgent.androidVersion,10)>=4},t.canPlayType=function(t){var i;try{i=!!u.canPlayType&&"probably"===u.canPlayType(t)}catch(t){i=!1}return i},t.enterFullscreen=function(t){var i=this.fI(t);if(i)try{i.call(t)}catch(t){}},t.exitFullscreen=function(t){var i=this.lI();if(i)try{this.vI()&&i.call(document)}catch(t){}else if(t&&t.webkitExitFullscreen)try{t.webkitExitFullscreen()}catch(t){}},t.isFullscreenOnMobile=function(t){var i=document,n=e.userAgent.mobile&&(i.isFullScreen||i.webkitIsFullScreen),r=e.userAgent.ios&&t&&t.webkitDisplayingFullscreen;return n||r},t.fI=function(t){return t?t.requestFullscreen||t.webkitRequestFullscreen||t.webkitEnterFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen:null},t.lI=function(){var t=document;return t.exitFullscreen||t.webkitExitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen},t.vI=function(){var t=document;return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement},t}();i.default=a},11594:function(t,i,n){"use strict";var e=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||(e||(e=Array.prototype.slice.call(i,0,r)),e[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.Profiler=void 0;var r=n(21962),s=n(40531),o=function(){function t(t){this.startTime=Date.now(),this.dI=[],this.zb=t,this.K={},this.pI()}return t.prototype.getItem=function(t){var i=this.bI(t);return i>-1?this.dI[i]:null},t.prototype.removeItem=function(t){var i=this.bI(t);i>-1&&this.dI.splice(i,1)},t.prototype.destroy=function(){this.zb.removeEventListeners(this.K)},t.prototype.bI=function(t){for(var i=0;i<this.dI.length;i++){var n=this.dI[i];if(t.type===n.type)return i}return-1},t.prototype.pI=function(){var t=this;this.K[r.PROFILE_START]=this.zb.addEventListener(r.PROFILE_START,(function(i){void 0===i&&(i=[]),(i=(0,s.isArray)(i)?i:[i]).forEach((function(i){t.mI(i)}))}),this),this.K[r.PROFILE_END]=this.zb.addEventListener(r.PROFILE_END,(function(i){void 0===i&&(i=[]);for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(i=(0,s.isArray)(i)?i:[i]).forEach((function(i){t.yI.apply(t,e([i],n,!1))}))}),this)},t.prototype.mI=function(t){this.removeItem(t),this.dI.push({type:t.type,startTime:Date.now()-this.startTime,endTime:void 0})},t.prototype.yI=function(t,i,n){void 0===i&&(i=Date.now()),void 0===n&&(n=!0);var e=this.getItem(t);i||(i=Date.now(),n=!0),e&&void 0===e.endTime&&(e.endTime=n?i-this.startTime:i,e.timeDiff=e.endTime-(e.startTime||0))},t}();i.Profiler=o},82394:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(){}return t.isFormatInAcceptedFormats=function(t,i){return i.some((function(i){return t===i}))},t.isProtocolInAcceptedProtocols=function(t,i){var n=!1;return i.forEach((function(i){t.indexOf(i)>-1&&(n=!0)})),n},t.findAcceptedStreams=function(i,n){return i.filter((function(i){return!!t.isFormatInAcceptedFormats(i.format,n.acceptedFormats)&&(!(i.isUplynk()&&"m3u8"===i.format&&!n.canDecryptAES)&&!!t.isProtocolInAcceptedProtocols(i.streamProtocol,n.acceptedProtocols))}))},t.findStreamByProperty=function(i,n,e,r){return i=t.findAcceptedStreams(i,r).sort((function(t,i){return t[n]-i[n]})),"resolution"===n&&(n="height"),t.findStream(i,e,n)},t.filterStreamByResolution=function(t,i,n){return t.filter((function(t){var e=t&&t.height;if(e){if(i&&e<i)return!1;if(n&&e>n)return!1}return!0}))},t.isHlsLive=function(t){return t.url.match(/\.m3u8/)&&t.live||!1},t.mapStreamsToQualities=function(t){var i={low:null,medium:null,high:null};return t.forEach((function(t){var n=1*t.bitrate+2*t.height;n<=1500?i.low?n>i.low.bitrate+2*i.low.height&&(i.low=t):i.low=t:n<=2500?i.medium?n>i.medium.bitrate+2*i.medium.height&&(i.medium=t):i.medium=t:i.high?n>i.high.bitrate+2*i.high.height&&(i.high=t):i.high=t})),i},t.findStream=function(t,i,n){var e;return t&&t.forEach((function(t){e?t[n]<=i&&(e=t):e=t})),e},t.BITRATE="bitrate",t.RESOLUTION="resolution",t}();i.default=n},40531:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isAdPlugin=i.isAdPreloadAdPlugin=i.isVAPlugin=i.isAdViewAdPlugin=i.isAdOverlayRendererAdPlugin=i.isAdPlayerAdPlugin=i.isAdPluginPlayer=i.isEventDispatcher=i.isPlugin=i.isPlayerPluginEventListener=i.isNonEmptyString=i.isObject=i.isString=i.isNumber=i.isNullOrUndefined=i.isFunction=i.isBoolean=i.isArray=void 0;var e=n(41279),r=n(53872),s=r.TypeChecker.isArray;i.isArray=s;var o=r.TypeChecker.isBoolean;i.isBoolean=o;var u=r.TypeChecker.isFunction;i.isFunction=u;var a=r.TypeChecker.isNullOrUndefined;i.isNullOrUndefined=a;var c=r.TypeChecker.isNumber;i.isNumber=c;var h=r.TypeChecker.isString;i.isString=h;var f=r.TypeChecker.isObject;i.isObject=f;var l=r.TypeChecker.isNonEmptyString;function v(t){return!!t&&u(t.onPlayerEvent)}function d(t){return!!t&&((t.type===e.PluginType.METADATA||t.type===e.PluginType.SOURCE_METADATA||t.type===e.PluginType.AD||t.type===e.PluginType.VISUAL_SEEK||t.type===e.PluginType.BRANDING||t.type===e.PluginType.PLAYLIST||t.type===e.PluginType.VA)&&h(t.mimetype)&&u(t.prepare)&&u(t.destroy))}function p(t){return!!t&&u(t.addEventListener)&&u(t.removeEventListener)}function b(t){return p(t)&&["play","pause","stop","mute","isMuted","setVolume","getVolume","getCurrentTime","getDuration"].every((function(i){return u(t[i])}))}function m(t){return!!t&&b(t)}function y(t){return!!t&&p(t)&&["setNonlinearAdContainer"].every((function(i){return u(t[i])}))}function g(t){return p(t)&&v(t)&&["canRenderUI","renderUI","unrenderUI"].every((function(i){return u(t[i])}))}function w(t){return!!t&&u(t.parse)&&u(t.preload)&&p(t)}i.isNonEmptyString=l,i.isPlayerPluginEventListener=v,i.isPlugin=d,i.isEventDispatcher=p,i.isAdPluginPlayer=b,i.isAdPlayerAdPlugin=m,i.isAdOverlayRendererAdPlugin=y,i.isAdViewAdPlugin=g,i.isVAPlugin=function(t){return!!t&&u(t.load)&&d(t)&&v(t)},i.isAdPreloadAdPlugin=w,i.isAdPlugin=function(t){return!!t&&d(t)&&(w(t)||g(t)||m(t)||y(t))}},66342:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(39451),r=n(30954),s=n(10595),o=n(28103),u=n(64685),a=n(40531),c=n(1954),h=[{unit:"s",floor:1e3},{unit:"m",floor:6e4},{unit:"h",floor:36e5},{unit:"d",floor:864e5},{unit:"w",floor:6048e5},{unit:"mo",floor:2592e6},{unit:"y",floor:31104e6}],f=function(){function t(){}return t.getWindow=function(){return window},t.getCssBuildUrl=function(i,n,e){var r="core-video-player",s=r+".css",o=t.getWindow();return e&&"fuji"!==e&&(s=r+"-"+e+".css"),i?"//"+o.location.host+"/"+s:"prod"===n?t.assetDomainHttps+"/prod/"+s:t.assetDomainHttps+"/builds/"+n+"/"+s},t.loadCssAsset=function(t,i,n,e){if(!document.getElementById(t)){var r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("id",t),r.setAttribute("href",i),r.addEventListener("load",n),r.addEventListener("error",e),document.head.appendChild(r)}},t.generateGuid=function(i){return i?(0|16*Math.random()).toString(16):"10000000-1000-4000-8000-100000000000".replace(/1|0/g,t.generateGuid)},t.isValidRequestAction=function(t){return[null,r.REQUEST_TYPES.CLICK,r.REQUEST_TYPES.AUTOPLAY,r.REQUEST_TYPES.HOVER,r.REQUEST_TYPES.PLAY,r.REQUEST_TYPES.PAUSE,r.REQUEST_TYPES.SCROLL,r.REQUEST_TYPES.SWIPE,r.REQUEST_TYPES.BACKGROUND].indexOf(t)>-1},t.isValidRequestType=function(t){return[null,r.REQUEST_TYPES.CLICK,r.REQUEST_TYPES.AUTOPLAY,r.REQUEST_TYPES.API,r.REQUEST_TYPES.CONTINUOUS].indexOf(t)>-1},t.sanitizeAndUnescape=function(t){if(a.isNullOrUndefined(t))return"";var i=t.toString().replace(/<\/?[^>]+>/g,""),n=document.createElement("div");return n.innerHTML=i,n.textContent},t.getHostname=function(t){var i=document.createElement("a");return i.href=t,i.hostname},t.getFormat=function(t){var i=null;return t=t.toLowerCase(),["mpd","mp4","m3u8","webm","flv","f4m","mp4b","m3u8_playlist","m3u8_master","m3u8:fmp4"].forEach((function(n){-1!==t.indexOf(n)&&(i=n)})),i},t.extend=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return a.isObject(t)||(t={}),i.forEach((function(i){if(i)for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])})),t},t.mergeStringEnums=function(t,i){return Object.assign({},t,i)},t.formatTime=function(t){var i=Math.floor(t/3600),n=Math.floor((t-3600*i)/60),e=Math.floor(t-3600*i-60*n),r=e<10?"0".concat(e):e.toString(),s="";if(i>0){var o=n<10?"0".concat(n):n.toString();s=i.toString()+":"+o+":"+r}else a.isNumber(n)&&(s=n.toString()+":"+r);return s},t.formatPastTime=function(t){var i,n=new Date(t).valueOf(),e=Date.now()-n;if(e<h[0].floor)return c.default.NOW;for(var r=0;r<h.length;r++){var s=h[r],o=s.unit,u=s.floor,a=(null===(i=h[r+1])||void 0===i?void 0:i.floor)||null;if(!a||e<a)return"".concat(Math.floor(e/u)).concat(o," ").concat(c.default.AGO)}return""},t.findClosest=function(t,i,n){for(var e=n||document,r=t.matches||t.msMatchesSelector||t.webkitMatchesSelector;t&&t!==e;t=t.parentNode)if(r.call(t,i))return t;return null},t.getOffsetLeftFromEl=function(t,i){for(var n=0;t;)isNaN(t.offsetLeft)||(n+=t.offsetLeft),t=t.offsetParent,i&&this.classList(t).contains(i)&&(t=null);return n},t.getOffsetLeftFromDocument=function(t){var i=document.body,n=document.documentElement,e=0,r=window.pageXOffset||n.scrollLeft||i.scrollLeft,s=n.clientLeft||i.clientLeft||0;try{var o=t.getBoundingClientRect();e=o?o.left:0}catch(t){}return Math.round(e+r-s)},t.getScriptUrl=function(i,n,e){var r,s=t.scriptType;t.scriptType||(s="min");var o="-"+s+".js";i?r="/"+e+o:r=("https:"===document.location.protocol?t.assetDomainHttps:t.assetDomainHttp)+"/rx/builds/"+n+"/"+e+o;return r},t.insertCssIntoHead=function(t){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.appendChild(document.createTextNode(t)),i.appendChild(n)},t.classList=function(t){if(t&&t.classList)return t.classList;function i(i){return function(n){var e=t&&a.isString(t.className)?t.className.split(/\s+/):[],r=e.indexOf(n),s=i(e,r,n);return t&&a.isString(t.className)&&(t.className=e.join(" ")),s}}return{add:i((function(t,i,n){~i||t.push(n)})),remove:i((function(t,i){~i&&t.splice(i,1)})),toggle:i((function(t,i,n){~i?t.splice(i,1):t.push(n)})),contains:i((function(t,i){return!!~i}))}},t.render=function(t,i,n){var e=document.createElement("div");return e.innerHTML=t.render(i,n),e.children[0]},t.getFullscreenElement=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},t.fixProtocol=function(t){return e.userAgent.samsung&&0===t.indexOf("//")?"https:"+t:t},t.setSingleton=function(t,i){window.YAHOO=window.YAHOO||{},window.YAHOO.CorePlayer=window.YAHOO.CorePlayer||{},window.YAHOO.CorePlayer.VideoPlayer=window.YAHOO.CorePlayer.VideoPlayer||{},window.YAHOO.CorePlayer.VideoPlayer[t]=i},t.getSingleton=function(t){var i,n,e;return(null===(e=null===(n=null===(i=null===window||void 0===window?void 0:window.YAHOO)||void 0===i?void 0:i.CorePlayer)||void 0===n?void 0:n.VideoPlayer)||void 0===e?void 0:e[t])||null},t.getAssetUrl=function(i,n,e){var r="https:"===t.getWindow().location.protocol?t.assetDomainHttps:t.assetDomainHttp;return i?"/"+e:r+"/rx/builds/"+n+"/assets/"+e},t.parseDomain=function(t){var i=/^https?:\/\/([A-Za-z0-9\.\-]*)(?:$|\/|:)/.exec(t);return i?i[1]:null},t.getElementViewability=function(t){try{var i=t.getBoundingClientRect();if(!i||0===i.height||0===i.width)return 0;var n=void 0,e=window.innerHeight;return n=i.top>=0?i.bottom>e?e-i.top>0?e-i.top:0:i.height:i.bottom>e?e:i.bottom<0?0:i.bottom,Math.round(n/i.height*100)}catch(t){return 0}},t.hasUnwatchedClips=function(t){return!1},t.isIFrame=function(){var i=t.getWindow();try{return i.top!==i.self}catch(t){return!0}},t.isPlayerInBackground=function(){return this.hidden||(void 0!==document.hidden?this.hidden="hidden":void 0!==document.mozHidden?this.hidden="mozHidden":void 0!==document.msHidden?this.hidden="msHidden":void 0!==document.webkitHidden?this.hidden="webkitHidden":this.hidden="unsupported"),"unsupported"===this.hidden?!document.hasFocus():document[this.hidden]},t.isAdBreakOffset=function(t){return t===o.AdBreakOffset.PRE||t===o.AdBreakOffset.MID||t===o.AdBreakOffset.POST||t===o.AdBreakOffset.OVERLAY||t===o.AdBreakOffset.ADONLY},t.strSubstitute=function(t,i){return t.replace(/\{([^\{\}]*)\}/g,(function(t,n){var e="function"==typeof i?i(n):i[n];return a.isNullOrUndefined(e)?t:e}))},t.querystring=function(i,n,e,r){return n=n||"&",e=e||"=",r=r||encodeURIComponent,i?(a.isObject(i)&&(i=[i]),i.map((function(i){return Object.keys(i).map((function(s){var o=r(t.stringifyPrimitive(s));return null===i[s]?o:(o+=e,a.isArray(i[s])?i[s].map((function(i){return o+r(t.stringifyPrimitive(i))})).join(n):o+r(t.stringifyPrimitive(i[s])))})).join(n)})).join(n)):""},t.getHostUrl=function(){var t=document.referrer;try{window.top.location.href&&(t=window.top.location.href)}catch(t){}return t},t.stringifyPrimitive=function(t){return a.isString(t)?t:a.isBoolean(t)||a.isNumber(t)&&isFinite(t)?t.toString():""},t.uniquifyArray=function(t){return t.filter((function(t,i,n){return n.indexOf(t)===i}))},t.replaceStrParam=function(t,i,n){return t.replace(new RegExp(i+"=\\w*"),i+"="+n)},t.parseRootHost=function(i){var n=t.parseDomain(i),e="";if(n){var r=n.split(".");e=r.length>=2?r[r.length-2]:n}return e},t.redirect=function(t,i){try{i?window.top.location.replace(t):window.top.location.assign(t)}catch(t){window.DOMException}},t.noop=function(){},t.createVideoNode=function(){var t=document.createElement("div");return e.userAgent.tv?t.innerHTML='<video preload="metadata" crossorigin="anonymous"><source/></video>':t.innerHTML="<video preload></video>",t.children[0]},t.getUrlStatus=function(t,i){var n=new XMLHttpRequest;n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&i(n.status)},n.send()},t.bucketize=function(){return Math.floor(100*Math.random())},t.once=function(t){var i=this,n=function(){var e=Array.prototype.slice.call(arguments);return n.called||(n.called=!0,n.value=t.apply(i,e)),n.value};return n.called=!1,n},t.appendQueryString=function(t,i){var n=-1===t.indexOf("?")?"?":"&",e=[];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.push(r+"="+i[r]);return t+n+e.join("&")},t.cssHexToRgb=function(t){var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null},t.decimalToHexString=function(t,i,n){var e=Number(t).toString(16).toUpperCase();return i?e.padStart(i,n):e},t.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},t.deepCopy=function(t){var i=this;if(a.isNullOrUndefined(t))return t;var n={};return Object.keys(t).forEach((function(e){a.isArray(t[e])?n[e]=t[e].slice():a.isObject(t[e])?n[e]=i.deepCopy(t[e]):n[e]=t[e]})),n},t.mergeObjects=function(i,n,e){if(void 0===e&&(e=!1),a.isNullOrUndefined(i))return n;for(var r in n)if(a.isObject(i[r]))i[r]=this.mergeObjects(i[r],n[r],e);else if(void 0===i[r]||e){var s=n[r];a.isArray(s)?i[r]=s.slice():a.isObject(s)?i[r]=t.deepCopy(s):i[r]=s}return i},t.stringToArray16=function(t){for(var i=new ArrayBuffer(2*t.length),n=new Uint16Array(i),e=0,r=t.length;e<r;e++)n[e]=t.charCodeAt(e);return n},t.array16ToString=function(t){var i=new Uint16Array(t.buffer);return String.fromCharCode.apply(null,i)},t.base64DecodeUint8Array=function(t){for(var i=window.atob(t),n=i.length,e=new Uint8Array(new ArrayBuffer(n)),r=0;r<n;r++)e[r]=i.charCodeAt(r);return e},t.base64EncodeUint8Array=function(t){for(var i,n,e,r,s,o,u,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",h=0;h<t.length;)r=(i=t[h++])>>2,s=(3&i)<<4|(n=h<t.length?t[h++]:Number.NaN)>>4,o=(15&n)<<2|(e=h<t.length?t[h++]:Number.NaN)>>6,u=63&e,isNaN(n)?o=u=64:isNaN(e)&&(u=64),c+=a.charAt(r)+a.charAt(s)+a.charAt(o)+a.charAt(u);return c},t.getResourceLoadTime=function(t){if(window.performance&&window.performance.getEntriesByType){var i=window.performance.getEntriesByType("resource"),n=void 0;for(n in i)if(i[n]&&i[n].name&&i[n].name.match(t))return i[n].duration}return null},t.getPlaybackMode=function(t){return t instanceof s.default?u.PlaybackMode.AD:u.PlaybackMode.VIDEO},t.detectRegexPattern=function(t,i){var n=new RegExp(t).exec(i);return n&&n[0]?n[0]:null},t.extractID3Data=function(t){if(!t||!t.length)return null;var i=0;for(i=0;i<t.length&&!(t[i]>31);i++);var n=0;for(n=t.length-1;n>=0&&!(t[n]<=31);n--);n=n<i?t.length:n;var e=t.subarray(i,n);return String.fromCharCode.apply(null,e)},t.areDimensionsEqual=function(t,i){return t.width===i.width&&t.height===i.height&&t.videoWidth===i.videoWidth&&t.videoHeight===i.videoHeight},t.isOldIeBrowser=function(){return!!(e.userAgent.ie&&e.userAgent.ie<=10)},t.isDisplayed=function(t){return!!t&&"none"!==window.getComputedStyle(t).getPropertyValue("display")},t.secondsToISOTime=function(t){var i=new Date(0);return i.setSeconds(t),i.toISOString().slice(11,23)},t.ISOTimeStampToSeconds=function(t){var i=new Date("January 01, 29 ".concat(t));return 60*i.getHours()*60+60*i.getMinutes()+i.getSeconds()},t.isMidrollAdBreak=function(t){var i=new RegExp("[0-2][0-9]:[0-5][0-9]:[0-5][0-9].[0-9][0-9][0-9]");return t.type===o.AdBreakType.LINEAR&&i.test(t.offset)},t.hasPostrollOffset=function(t){return t.adBreaks.some((function(t){return t.offset===o.AdBreakOffset.POST}))},t.bindKeyboardOutlineEvents=function(t){var i=this;if(t){var n=!1,e=!1,r=function(){n||(e=!0)},s=function(){n=!0,e||i.classList(t).add("vp-ally-focus-outline")},o=function(r){r.stopPropagation(),n=!1,document.hasFocus()&&(e=!1),i.classList(t).remove("vp-ally-focus-outline")};t.addEventListener("mousedown",r),t.addEventListener("focus",s),t.addEventListener("focusout",o);return function(){t.removeEventListener("mousedown",r),t.removeEventListener("focus",s),t.removeEventListener("focusout",o)}}},t.assetDomainHttp="http://assets.video.yahoo.net",t.assetDomainHttps="https://assets.video.yahoo.net",t.scriptType="PLAYER_DEBUG_TYPE",t.yuiAdded=!1,t}();i.default=f},40611:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s=n(44422),o=n(66342);function u(t){return o.default.classList(t)}var a=function(t){function i(){return t.call(this,"AdsView")||this}return r(i,t),Object.defineProperty(i.prototype,"node",{get:function(){return this.gI},enumerable:!1,configurable:!0}),i.prototype.create=function(){return this.gI||(this.gI=document.createElement("div"),u(this.gI).add("vp-adview-wrapper"),u(this.gI).add("vp-hidden")),this.gI},i.prototype.onAdBreakStart=function(t){this.wI()},i.prototype.onAdBreakEnd=function(t){this.lb(),this._I()},i.prototype.enableClickBlocking=function(t){this.gI&&u(this.gI)[t?"add":"remove"]("vp-block-pointer-evts")},i.prototype.destroy=function(){this.lb(),this._I(),this.gI=null},i.prototype.wI=function(){this.gI&&u(this.gI).remove("vp-hidden")},i.prototype.lb=function(){this.gI&&u(this.gI).add("vp-hidden")},i.prototype._I=function(){if(this.gI)for(;this.gI.firstChild;)this.gI.removeChild(this.gI.firstChild)},i}(s.default);i.default=a},19257:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0});var s=n(53072),o=n(30954),u=n(21962),a=n(41279),c=n(35244),h=function(){function t(t,i,n,e){this.zb=t,this.__=i,this.vt=n,this.lw=e,this.EI=!1}return t.prototype.syncState=function(){var t=this.vt.getState();t===c.States.INIT||t===c.States.WAITING||t===c.States.VIDEO?this.uS():t===c.States.END&&this.OI()},t.prototype.destroy=function(){this.OI()},t.prototype.uS=function(){return e(this,void 0,void 0,(function(){var t,i,n;return r(this,(function(e){switch(e.label){case 0:return t=this.vt.playlist&&this.vt.playlist.getCurrentItem(),this.lw&&t&&t.brandingData&&!this.SI?[4,this.lw.getPlugin(a.PluginType.BRANDING,t.brandingData.mimetype)]:[2];case 1:return i=e.sent(),(n=i&&i.create(t.brandingData))?(!0===this.EI||(this.SI=n,this.SI.style.visibility="hidden",this.AI(),this.TI=this.SI.offsetHeight,this.MI(),this.SI.style.visibility=null,this.pI(),this.EI=!0),[2]):[2]}}))}))},t.prototype.AI=function(){var t=this.__.getContentNode(),i=this.__.getPlaylistController(),n=i.getPlaylistRootElement(),e=i.isPlaylistShown(),r=i.getPlaylistUIPosition();e&&r===o.PLAYLIST_POS.BOTTOM&&n?n.parentNode.insertBefore(this.SI,n):t.appendChild(this.SI)},t.prototype.pI=function(){var t=this;this.jI||(this.jI=this.zb.on([s.ExternalEvt.PLAYER_DOCKED_CHANGE,u.FULLSCREEN_CHANGE],(function(i){t.NI&&(window.clearTimeout(t.NI),t.NI=null),i===u.FULLSCREEN_CHANGE?t.NI=window.setTimeout((function(){t.NI=null,t.MI()}),700):t.MI()}),this))},t.prototype.OI=function(){var t=this.__.getMainElement();t&&(t.style.height="100%"),this.SI&&(this.SI.parentNode.removeChild(this.SI),this.SI=null,this.TI=null,this.EI=!1,this.II())},t.prototype.II=function(){this.jI&&(this.zb.removeEventListeners(this.jI),this.jI=null)},t.prototype.MI=function(){var t=this.__.getContentNode(),i=this.__.getMainElement();this.SI&&this.TI&&t&&i&&(i.style.height="calc(100% - "+this.TI+"px)")},t}();i.default=h},63641:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ACTIVATION_CLASSES=i.DEFAULT_CC_DATA=i.ExtraSettingsDefaultValues=i.CCBackgroundTransparency=i.CCBackgroundColor=i.CCFontColor=i.CCFontFamily=i.CCFontSize=i.CCPosition=i.CCEffects=i.ItemClasses=i.SettingsSubContainers=void 0;var e,r,s,o,u,a,c,h,f,l=n(91958),v=n(30954),d=n(1954),p=n(66342),b=n(78430),m=n(40514),y={Plain:d.default.PLAIN,Dropshadow:d.default.DROPSHADOW,Raised:d.default.RAISED,Depressed:d.default.DEPRESSED,Uniform:d.default.UNIFORM,"Extra Small":d.default.SIZE_EXTRA_SMALL,"Extra Large":d.default.SIZE_EXTRA_LARGE,Small:d.default.SIZE_SMALL,Medium:d.default.SIZE_MEDIUM,Large:d.default.SIZE_LARGE,White:d.default.WHITE,Gray:d.default.GRAY,"Light Gray":d.default.LIGHT_GRAY,"Dark Gray":d.default.DARK_GRAY,Black:d.default.BLACK,Red:d.default.RED,Green:d.default.GREEN,Blue:d.default.BLUE,Cyan:d.default.CYAN,Yellow:d.default.YELLOW,Magenta:d.default.MAGENTA,Transparent:d.default.TRANSPARENT,Top:d.default.TOP,Bottom:d.default.BOTTOM,Effects:d.default.EFFECTS,Position:d.default.POSITION,"Font Size":d.default.FONT_SIZE,"Font Family":d.default.FONT_FAMILY,"Font Color":d.default.FONT_COLOR,"Background Color":d.default.BACKGROUND_COLOR,"Background Transparency":d.default.BACKGROUND_TRANSPARENCY,Language:d.default.LANGUAGE};!function(t){t.Main=".vp-ccs-main",t.Extra=".vp-ccs-extra",t.Options=".vp-ccs-options"}(e=i.SettingsSubContainers||(i.SettingsSubContainers={})),function(t){t.Toggle=".vp-ccs-toggle",t.ToggleLabel='.vp-ccs-listitem[data-item-type="Closed Captions"] .vp-ccs-value',t.LanguageListItem='.vp-ccs-listitem[data-item-type="Caption Languages"]',t.HeaderListItem='.vp-ccs-listitem[data-item-type="header"]',t.Item=".vp-ccs-item",t.Value=".vp-ccs-value",t.ListItem=".vp-ccs-listitem",t.ListOptions=".vp-ccs-listoptions",t.Pointer=".vp-ccs-pointer",t.CheckMark=".vp-ccs-checkmark",t.Preview="vp-ccs-preview"}(r=i.ItemClasses||(i.ItemClasses={})),function(t){t.Plain="none",t.Dropshadow="dropshadow",t.Raised="raised",t.Depressed="depressed",t.Uniform="uniform"}(s=i.CCEffects||(i.CCEffects={})),function(t){t.Top="top",t.Bottom="bottom"}(o=i.CCPosition||(i.CCPosition={})),function(t){t["Extra Small"]="16",t.Small="20",t.Medium="24",t.Large="28",t["Extra Large"]="32"}(u=i.CCFontSize||(i.CCFontSize={})),function(t){t.Georgia="Georgia, serif",t["Palatino Linotype"]='"Palatino Linotype", "Book Antiqua", Palatino, serif',t["Times New Roman"]='"Times New Roman", Times, serif',t.Helvetica="Helvetica, sans-serif",t.Arial="Arial, Helvetica, sans-serif",t["Arial Black"]='"Arial Black", Gadget, sans-serif',t["Comic Sans MS"]='"Comic Sans MS", cursive, sans-serif',t.Impact="Impact, Charcoal, sans-serif",t["Lucida Sans Unicode"]='"Lucida Sans Unicode", "Lucida Grande", sans-serif',t.Tahoma="Tahoma, Geneva, sans-serif",t["Trebuchet MS"]='"Trebuchet MS", Helvetica, sans-serif',t.Verdana="Verdana, Geneva, sans-serif",t["Courier New"]='"Courier New", Courier, monospace',t["Lucida Console"]='"Lucida Console", Monaco, monospace'}(a=i.CCFontFamily||(i.CCFontFamily={})),function(t){t.White="#FFFFFF",t.Grey="#E7E7E7",t.Black="#000000",t.Red="#FC2525",t.Green="#29FD2F",t.Blue="#2524FB",t.Cyan="#2CFEFE",t.Yellow="#FEF149",t.Magenta="#EC369C"}(c=i.CCFontColor||(i.CCFontColor={})),function(t){t.White="#FFFFFF",t["Light Gray"]="#c7c7c7",t.Gray="#919191",t["Dark Gray"]="#5b5b5b",t.Black="#000000",t.Red="#FC2424",t.Green="#29FD2F",t.Blue="#2424FB",t.Cyan="#2CFDFD",t.Yellow="#FDF048",t.Magenta="#EC359B"}(h=i.CCBackgroundColor||(i.CCBackgroundColor={})),function(t){t.Transparent="0",t["25%"]="25",t["50%"]="50",t["75%"]="75",t["100%"]="100"}(f=i.CCBackgroundTransparency||(i.CCBackgroundTransparency={}));var g={Effects:s,Position:o,"Font Size":u,"Font Family":a,"Font Color":c,"Background Color":h,"Background Transparency":f};i.ExtraSettingsDefaultValues={Effects:"Plain",Position:"Bottom","Font Size":"Medium","Font Family":"Helvetica","Font Color":"White","Background Color":"Black","Background Transparency":"75%"},i.DEFAULT_CC_DATA={selectedLang:"en-us",langList:["en-us"]},i.ACTIVATION_CLASSES={OPEN:"vp-open",VISBILITYHIDDEN:"vp-vis-hide",VISBILITYSHOW:"vp-vis-show",ACTIVE:"vp-active",ON:"vp-on"};var w=n(3217),_=n(29319);function E(t){return p.default.classList(t)}var O=function(){function t(t,i){this.kI=t,this.vt=i}return t.prototype.create=function(){this.RI(),this.LI=p.default.render(w,{strings:d.default}),this.CI(),this.DI=this.xI,this.UI(),this.FI=null,this.updateAvailableLanguages(i.DEFAULT_CC_DATA),this.BI=document.createElement("div"),this.BI.innerText=d.default.CC_PREVIEW_MESSAGE,E(this.BI).add(r.Preview),E(this.BI).add("vp-vis-hidden");var t=this.kI.getMainElement();return t&&t.appendChild(this.BI),this.syncMenuUI(),this.onPlayerResize(this.vt.uiState),this.LI},t.prototype.syncMenuUI=function(){this.zI(),this.VI(),this.GI()},t.prototype.showActiveContainer=function(t){this.HI&&clearTimeout(this.HI),this.DI&&E(t).add(i.ACTIVATION_CLASSES.OPEN),this.DI&&E(this.DI).add(i.ACTIVATION_CLASSES.OPEN)},t.prototype.hideActiveContainer=function(t){var n=this;this.DI&&E(this.DI).remove(i.ACTIVATION_CLASSES.OPEN),this.DI&&E(t).remove(i.ACTIVATION_CLASSES.OPEN),this.HI&&clearTimeout(this.HI),this.HI=window.setTimeout((function(){n.DI=n.xI}),1e4)},t.prototype.updateCCToggleState=function(t){var n=this.YI.ccToggleNode,e=this.YI.ccToggleLabel;t?E(n).add(i.ACTIVATION_CLASSES.ON):E(n).remove(i.ACTIVATION_CLASSES.ON),e.innerText=(t?d.default.ON:d.default.OFF).toUpperCase()},t.prototype.destroy=function(){this.qI.forEach((function(t){return t.destroy()})),this.WI.forEach((function(t){return t.destroy()})),this.qI=null,this.WI=null,this.FI=null,this.QI=null,this.ZI=null,this.$I=null,this.YI=null,this.XI=null,this.LI=null,this.xI=null,this.KI=null,this.JI=null,this.DI=null},t.prototype.updateAvailableLanguages=function(t){this.ZI=this.ZI||[],this.$I=t.selectedLang||this.$I,t&&t.langList&&t.langList.length&&(this.ZI=t.langList),this.GI()},t.prototype.onPlayerResize=function(t){t&&t.width&&t.height&&(t.width>=v.HideBreakpointDimensions.WIDTH&&t.height>=v.HideBreakpointDimensions.HEIGHT?this.LI&&E(this.LI).remove(i.ACTIVATION_CLASSES.VISBILITYHIDDEN):this.LI&&E(this.LI).add(i.ACTIVATION_CLASSES.VISBILITYHIDDEN))},t.prototype.tk=function(){var t=this;if(this.ik=this.kI.getCCElement(),this.ik){var n=this.ik.querySelector("span").style,e=this.ik.style;this.BI.style.fontFamily=e.fontFamily,this.BI.style.fontSize=e.fontSize,this.BI.style.top=this.vt.ccUserPreferences.ccPos===o.Top?"5%":"",this.BI.style.bottom=this.vt.ccUserPreferences.ccPos===o.Bottom?"16%":"",this.BI.style.left=e.left||"2.5%",this.BI.style.color=e.color,this.BI.style.textShadow=e.textShadow,this.BI.style.backgroundColor=n.backgroundColor,this.ik.style.visibility="hidden",E(this.BI).add(i.ACTIVATION_CLASSES.ACTIVE),this.nk&&clearTimeout(this.nk),this.nk=window.setTimeout((function(){t.ik.style.visibility="visible",E(t.BI).remove(i.ACTIVATION_CLASSES.ACTIVE)}),2e3)}},t.prototype.RI=function(){var t=l.default.getCCSettingsFromLocalStorage("ccSettingsMenu");t||l.default.saveCCSettingsToLocalStorage({ccSettingsMenu:i.ExtraSettingsDefaultValues}),this.QI=t||i.ExtraSettingsDefaultValues},t.prototype.GI=function(){var t=l.default.getLanguageForCode(this.$I),i=this.YI.languageNode.querySelector(r.Value);i&&(i.innerText=t),this.FI&&"Language"===this.FI&&this.ek(t)},t.prototype.VI=function(){if(this.FI){var t=this.QI[this.FI];this.ek(t)}},t.prototype.ek=function(t){var n=this.JI.querySelectorAll(r.ListItem);Array.prototype.forEach.call(n,(function(n){var e=n.querySelector(r.CheckMark);n.dataset.itemType!==t?(E(n).remove(i.ACTIVATION_CLASSES.ACTIVE),E(e).remove(i.ACTIVATION_CLASSES.VISBILITYSHOW)):(E(n).add(i.ACTIVATION_CLASSES.ACTIVE),E(e).add(i.ACTIVATION_CLASSES.VISBILITYSHOW))}))},t.prototype.zI=function(){var t=this,i=this.KI.querySelectorAll(r.ListItem);Array.prototype.forEach.call(i,(function(i){var n,e=i.dataset.itemType;"header"!==e&&(i.querySelector(r.Value).innerHTML=(n=t.rk(t.QI[e]))&&n.replace(/\s/g,"&nbsp;"))}))},t.prototype.CI=function(){this.xI=this.LI.querySelector(e.Main),this.YI={headerNode:this.xI.querySelector(r.HeaderListItem),ccToggleNode:this.xI.querySelector(r.Toggle),ccToggleLabel:this.xI.querySelector(r.ToggleLabel),languageNode:this.xI.querySelector(r.LanguageListItem)},this.ck()},t.prototype.ck=function(){var t=this;this.qI=[],this.qI.push(new m.default(this.YI.headerNode,(function(){t.hk(e.Extra)}))),this.qI.push(new m.default(this.YI.languageNode,(function(){t.fk(),t.hk(e.Options)}))),this.qI.push(new m.default(this.YI.ccToggleNode,this.lk.bind(this)))},t.prototype.fk=function(){var t=this;this.vk(this.rk("Language"),e.Main);var i=this.JI.querySelector(r.ListOptions);this.ZI.forEach((function(n){var e=l.default.getLanguageForCode(n),r=t.dk(!1,e,null);i.appendChild(r),t.WI.push(new m.default(r,(function(){t.pk(n)})))})),this.FI="Language",this.GI()},t.prototype.pk=function(t){this.$I=t,this.kI.onlanguageChange(t),this.kI.updateClosedCaptionButtonState(!0),this.GI()},t.prototype.lk=function(){var t=E(this.YI.ccToggleNode).contains(i.ACTIVATION_CLASSES.ON)||!1;this.kI.publish(b.ControlsEvent.TOGGLE_CC,!t,!0),this.kI.updateClosedCaptionButtonState(!t)},t.prototype.UI=function(){var t=this;this.KI=this.LI.querySelector(e.Extra),this.JI=this.LI.querySelector(e.Options),this.XI={headerNode:this.JI.querySelector(r.HeaderListItem),headerValue:this.JI.querySelector(r.Item)},this.qI.push(new m.default(this.KI.firstElementChild,(function(){t.hk(e.Main)})));var i=this.KI.querySelector(r.ListOptions);Object.keys(this.QI).forEach((function(n){var r=t.dk(!0,n,t.rk(t.QI[n]));i.appendChild(r);var s=r.dataset.itemType;t.qI.push(new m.default(r,(function(){t.hk(e.Options),t.bk(s)})))}))},t.prototype.dk=function(t,i,n){var e=this.rk(i);return p.default.render(_,{caratRequired:t,itemContent:e,itemType:i,valueContent:n,valueRequired:!!n})},t.prototype.hk=function(t){var n=this;Object.keys(e).map((function(r){var s=n.LI.querySelector(e[r]);e[r]===t?(E(s).add(i.ACTIVATION_CLASSES.OPEN),n.DI=s):E(s).remove(i.ACTIVATION_CLASSES.OPEN)}))},t.prototype.vk=function(t,i){var n=this;this.WI&&this.WI.length&&this.WI.forEach((function(t){return t.destroy()})),this.WI=[];var e=this.JI.querySelector(r.ListOptions),s=e.querySelectorAll(r.ListItem);Array.prototype.forEach.call(s,(function(t){"header"!==t.dataset.itemType&&e.removeChild(t)})),this.WI.push(new m.default(this.XI.headerNode,(function(){n.hk(i)}))),this.XI.headerValue.innerText=t},t.prototype.rk=function(t){return y[t]||t},t.prototype.bk=function(t){var i=this;this.vk(this.rk(t),e.Extra);var n=g[t],s=this.JI.querySelector(r.ListOptions);Object.keys(n).map((function(e){var r=i.dk(!1,e,null);s.appendChild(r),i.WI.push(new m.default(r,(function(){var r=n[e];i.mk(t,r,e)})))})),this.FI=t,this.ek(this.QI[t])},t.prototype.mk=function(t,i,n){if(this.vt.ccUserPreferences){var e,r=this.vt.ccUserPreferences;switch(t){case"Effects":r.fontEffect=i;break;case"Position":r.ccPos=i;break;case"Font Size":r.fontSize=Number(i),e="size: "+i;break;case"Font Family":r.fontName=i,e="font: "+i;break;case"Font Color":r.fontColor=i;break;case"Background Color":r.bgColor=i;break;case"Background Transparency":try{var s=Number(i);r.bgOpacity=s/100,e="opacity: "+s}catch(t){return}}this.kI.updateClosedCaptionStyle(e),this.QI[t]=n,l.default.saveCCSettingsToLocalStorage({ccSettings:r,ccSettingsMenu:this.QI}),this.syncMenuUI(),this.tk()}},t}();i.default=O},13792:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(39451),r=n(66342),s=n(23535),o={none:"",dropshadow:"2px 1px 1px rgba(0, 0, 0, 1)",raised:"3px 3px 4px rgba(0, 0, 0, 0.75)",depressed:"0px -4px 4px rgba(0, 0, 0, 0.54)",uniform:"-2px -2px 0 #000, -2px 2px 0 #000, -2px 0 0 #000, 2px -2px 0 #000, 2px 2px 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000"},u=function(){function t(t,i,n){this.__=t,this.vt=i,this.Lg=n,this.yk="",this.gk=null,this.wk=new s.default(document.createElement("span")),this.ik=new s.default(document.createElement("div")).add("vp-cc-element").appendView(this.wk),this.updateCCStyle();var e=this.__.getMainElement();e&&e.appendChild(this.ik.node)}return t.prototype.updateCCVisibility=function(t){this.ik.addOrRemove("vp-show",t).addOrRemove("vp-hide",!t)},t.prototype.updateCCLiveView=function(t){this.ik.addOrRemove("vp-live-cc",t)},t.prototype.updateClosedCaptionButtonState=function(t){var i;null===(i=this.__.controls)||void 0===i||i.updateClosedCaptionButtonState(t)},t.prototype.updateCCContent=function(t,i){if(t!==this.yk){this.yk=t;var n=this.ik;if(t){if(this.wk.innerHTML=e.userAgent.tv?t:this._k(t),i)for(var r=0,s=i;r<s.length;r++){var o=s[r].split(":"),u=o[0],a=o[1];"align"===u&&"start"===a?n.setStyleAttr("textAlign","left"):"line"!==u||this.vt.ccUserPreferences.ccPos?"position"===u&&(n.setStyleAttr("left",a),this.Ek(),n.setStyleAttr("right","")):n.setStyleAttr("top",a)}}else this.wk.innerHTML=""}},t.prototype.updateCCStyle=function(){var t=this.vt.ccUserPreferences;if(this.ik){var i=this.ik,n=r.default.cssHexToRgb(t.bgColor)||{r:0,g:0,b:0},s=0===t.bgOpacity?"transparent":"rgba("+n.r+","+n.g+","+n.b+","+t.bgOpacity+")",u=o[t.fontEffect];i.setStyleAttr("fontFamily",t.fontName),this.adjustCCSizeToScreen(),i.setStyleAttr("color",t.fontColor),this.wk.setStyleAttr("backgroundColor",s),i.setStyleAttr("textShadow",u),this.Ok("top"===t.ccPos),e.userAgent.tv&&Object.assign(i.node.style,{position:"absolute",width:"100%",textAlign:"center",bottom:"14%",zIndex:"30"})}},t.prototype.floatCCPosition=function(t){var i=this.ik,n=this.vt.getItemId(),e=n?this.Lg[n]:null;e&&e.ccAvailable&&!i.contains("vp-hide")&&("bottom"===this.vt.ccUserPreferences.ccPos&&i.addOrRemove("float",!t).addOrRemove("bottom",!t))},t.prototype.adjustCCSizeToScreen=function(t){var i=this,n=this.vt.ccUserPreferences,r=0,s=this.__.getMainElement();s&&(r=s.offsetWidth);var o=Math.ceil(n.fontSize*(r/640));if(r>640?o=Math.ceil(.8*o):r<640?o<10&&(o=10):o=n.fontSize,this.Sk=o,this.ik.setStyleAttr("fontSize",this.Sk+"px"),e.userAgent.ios){var u=this.vt.getItemId(),a=u?this.Lg[u]:null,c=null==a?void 0:a.tracks;if(!0===t){if(!c||0===c.length)return;this.gk=null,this.gk=setInterval((function(){var t=!1;c.forEach((function(i){t="showing"===i.mode})),i.updateClosedCaptionButtonState(t)}),1e3)}else!1===t&&(this.gk&&window.clearInterval(this.gk),this.gk=null)}},t.prototype.Ok=function(t){this.ik.addOrRemove("top",t).addOrRemove("bottom",!t)},t.prototype._k=function(t){var i;if(t){var n=t.split("<br/>");if(n.length>1){for(i=0;i<n.length;i++)n[i].trim()&&(n[i]="&nbsp;"+n[i]+"&nbsp;",i<n.length-1&&(n[i]+="<br/>"));return n.join("")}t=t.trim(),this.wk.innerHTML=t;var e=Math.floor(this.wk.node.offsetHeight/(this.Sk+2)),r=[],s=0,o=void 0,u=void 0;for(i=0;i<e;i++)(o=i===e-1)?u=t.length:(u=Math.floor(t.length/e*(i+1)),/\s/.test(t.charAt(u))||(u=t.indexOf(" ",t.lastIndexOf(" ",u)))),u>s&&r.push("&nbsp;"+t.substring(s,u)+"&nbsp;"+(o?"":"<br/>")),s=u+1;return r.join("")}return t},t.prototype.Ek=function(){var t=parseInt(getComputedStyle(this.ik.node).left,10),i=this.vt.uiState.videoWidth-t-10+"px";this.ik.setStyleAttr("width",i)},t}();i.default=u},78430:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.Controls=i.ControlsEvent=void 0;var u,a=n(44422),c=n(39451),h=n(53072),f=n(30954),l=n(21962),v=n(41279),d=n(64685),p=n(1954),b=n(31204),m=n(40531),y=n(66342),g=n(63641),w=n(30297),_=n(40514),E=n(35244),O=n(57884),S=n(54915),A=n(39865),T="vp-on",M=p.default.ADV_SHORT.split("{")[0];function j(t){return y.default.classList(t)}!function(t){t.BACKWARD_SEEK="ceBackwardSeek",t.CUSTOM_ELEMENT="ceCustomElem",t.FORWARD_SEEK="ceForwardSeek",t.LOGO_CLICK="ceLogoClick",t.SEEK="ceSeek",t.SET_AUDIO_LANGUAGE="ceSetAudio",t.SET_MUTE="ceSetMute",t.SET_QUALITY="ceQualitySet",t.SET_VOLUME="ceSetVolume",t.TOGGLE_CC="ceToggleCc",t.TOGGLE_PLAY_PAUSE="ceTogglePlayPause",t.UI_INTERACT="ceUiInteract",t.KEY_CHANGE_VOLUME="ceKeyChangeVolume",t.SET_PLAYBACK_RATE="ceSetPbRate",t.PIP_TOGGLE="cePIPToggle",t.BOTTOM_BAR_FOCUS="bottomBarFocus",t.UP_NEXT_KEYBOARD_ACTION="upNextKeyboardAction",t.PLAYLIST_KEYBOARD_ACTION="playlistKeyboardAction"}(u=i.ControlsEvent||(i.ControlsEvent={}));var N=function(t){function i(i,n,e,r){var s=t.call(this,"Controls")||this;return s.zb=i,s.__=n,s.vt=e,s.lw=r,s.Ak=!0,s.zb.addEventListener(l.VideoEvent.PLAYING,s.Tk,s),s.zb.addEventListener(l.CAST.CAPTION_AVAILABILITY_CHANGED,s.updateClosedCaptionUI,s),s.zb.addEventListener(l.RELATED_ITEM_CLICK,s.R_,s),s.zb.addEventListener(l.FULLSCREEN_CHANGE,(function(t){var i="boolean"==typeof t?t:s.__.getFullscreen();s.Mk(i)}),s),s.zb.addEventListener(h.ExternalEvt.AIRPLAY_AVAILABILITY_CHANGE,(function(t){s.jk&&j(s.jk)[t?"remove":"add"]("vp-hidden")}),s),s.zb.addEventListener(h.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,(function(t){s.jk&&j(s.jk)[t.connected?"add":"remove"]("vp-airplay-on")}),s),s.zb.addEventListener(l.KEYDOWN,s.B_,s),s.zb.addEventListener(h.ExternalEvt.PLAYER_DOCKED_CHANGE,s.Nk,s),s.zb.addEventListener(l.CCEvent.TOGGLE,s.updateClosedCaptionButtonState,s),s}return r(i,t),i.prototype.create=function(){var t=this,i=y.default.render(S,{isMobile:c.userAgent.mobile,strings:p.default}),n={logoContainer:i.querySelector(".vp-logos"),multiAudioList:i.querySelector(".vp-multi-audio"),bottomBar:i.querySelector(".vp-bottom-bar"),topBar:i.querySelector(".vp-top-bar"),titleBar:i.querySelector(".vp-playing-item-title"),muteIndicator:i.querySelector(".vp-mute-indicator"),objectOverlay:i.querySelector(".vp-object-overlay"),largePlayBtn:i.querySelector(".vp-large-play-btn")};this.QO=n.bottomBar,this.Ik=this.QO.querySelector(".vp-slider"),this.kk=this.QO.querySelector(".vp-buffer-bar"),this.Rk=this.QO.querySelector(".vp-time-container"),this.Lk=this.QO.querySelector(".vp-menu-controls"),this.Ck=this.QO.querySelector(".vp-current-time"),this.Dk=this.QO.querySelector(".vp-total-time"),this.Pk=this.QO.querySelector(".vp-handle"),this.xk=this.QO.querySelector(".vp-playback-bar"),this.Uk=this.QO.querySelector(".vp-play-btn"),this.Fk=this.QO.querySelector(".vp-forward-btn"),this.Bk=this.QO.querySelector(".vp-backward-btn"),this.zk(),this.Vk=this.QO.querySelector(".vp-seek"),this.Gk=this.QO.querySelector(".vp-visual-seek"),this.Hk=this.QO.querySelector(".vp-cc-btn"),this.Yk=this.QO.querySelector(".vp-cc-pointer"),this.jk=this.QO.querySelector(".vp-airplay-btn"),this.qk=this.QO.querySelector(".vp-fullscreen-btn"),this.Wk=this.QO.querySelector(".vp-volume-btn"),this.Qk=this.QO.querySelector(".vp-volume-bar-container"),this.Zk=this.QO.querySelector(".vp-volume-level"),this.$k=this.QO.querySelector(".vp-volume-bar"),this.Xk=this.QO.querySelector(".vp-volume-value"),this.Kk=this.QO.querySelector(".vp-volume-handle"),this.Jk=n.multiAudioList,this.tR=this.QO.querySelector(".vp-multiaudio-btn"),this.iR=this.QO.querySelector(".vp-pip-btn"),this.nR=n.logoContainer,this.eR=n.muteIndicator,this.rR=n.largePlayBtn,this.vS=this.QO.querySelector(".vp-upnext-btn"),this.vt.showPlayButtonOnPause&&(j(this.rR).remove("vp-hide"),this.sR=new _.default(this.rR,(function(i){i.stopPropagation(),t.publish(u.TOGGLE_PLAY_PAUSE)}))),this.oR=n.titleBar,this.uR=this.QO&&this.QO.parentNode.querySelector(".vp-playing-item-title-header"),this.aR=n.topBar,this.Kj=this.aR&&this.aR.querySelector(".vp-content-type"),this.cR=this.vt.showTitleOnHover;var e=this.qk&&y.default.isOldIeBrowser()&&y.default.isIFrame();if(e=e||!this.vt.showFullscreenButton){var r=document.createElement("div");j(r).add("vp-fullscreen-btn-replacement"),this.qk&&(this.qk.parentNode.insertBefore(r,this.qk),this.qk.parentNode.removeChild(this.qk),this.qk=null)}return this.vt.disableFullscreenButton?j(this.qk).add("vp-disable"):j(this.qk).remove("vp-disable"),this.vt.showPlayButton||(this.Uk.parentNode.removeChild(this.Uk),this.Uk=null),b.default.airplaySupported&&this.vt.casting||this.jk&&this.jk.parentNode&&(this.jk.parentNode.removeChild(this.jk),delete this.jk),this.hR(),!y.default.isOldIeBrowser()&&this.fR(),this.lR(),this.vt.showPlaybackRateControls&&this.vR(),this.vt.showPIPButton&&j(this.iR).remove("vp-hide"),this.Tm(),this.Hk&&(!c.userAgent.mobile||c.userAgent.ios||c.userAgent.chrome&&b.default.hasNativeAutoplaySupport||(this.Hk.style.display="none")),c.userAgent.mobile||delete n.multiAudioList,this.dR(),this.pR(),n},i.prototype.syncAriaState=function(){var t;this.Uk&&this.Uk.setAttribute("aria-label",this.vt.isPaused()||(null===(t=this.k_)||void 0===t?void 0:t.state)===E.default.END?p.default.PLAY_VIDEO:p.default.PAUSE_VIDEO),this.qk&&(this.__.getFullscreen()?this.qk.setAttribute("aria-label",p.default.GO_TO_NORMAL_SCREEN):this.qk.setAttribute("aria-label",p.default.GO_TO_FULLSCREEN),this.vt.disableFullscreenButton&&this.qk.setAttribute("aria-label",this.vt.disabledFullscreenButtonAria)),this.Wk&&(j(this.Wk).contains("muted")?this.Wk.setAttribute("aria-label",p.default.UNMUTE):this.Wk.setAttribute("aria-label",p.default.MUTE))},i.prototype.getBottomBar=function(){return this.QO},i.prototype.onMediaItemLoaded=function(t){this.Yg=t.isLive(),this.bR=t.liveState,this.Kj.innerHTML="",this.Kj.setAttribute("aria-label",""),j(this.Kj).add("hide"),"chrome"===t.liveLabel&&j(this.Kj).add("vp-nonpersistent"),this.Yg?this.mR():this.yR()},i.prototype.updateVolumeUI=function(t,i,n){void 0===n&&(n=!1),n||("boolean"!=typeof i||m.isNullOrUndefined(i)?this.gR(!t):(this.gR(i),t=i?0:t),this.wR(t))},i.prototype.updateClosedCaptionUI=function(t){this.Ak=t,t?(j(this.Hk).remove("vp-hide"),j(this.ER).remove("vp-hide")):(j(this.Hk).add("vp-hide"),j(this.ER).add("vp-hide"))},i.prototype.updateClosedCaptionButtonState=function(t){t?j(this.Hk).add(T):j(this.Hk).remove(T),this.OR&&this.OR.updateCCToggleState(t)},i.prototype.updateAvailableLanguages=function(t){this.OR&&this.OR.updateAvailableLanguages(t)},i.prototype.onPlayerResize=function(t){var i;this.OR&&this.OR.onPlayerResize(t),null===(i=this.SR)||void 0===i||i.onPlayerResize(t),t.width<=f.HideBreakpointDimensions.WIDTH&&t.height<=f.HideBreakpointDimensions.HEIGHT?j(this.AR).add("vp-hide"):j(this.AR).remove("vp-hide"),this.TR&&this.TR.onPlayerResize(t,this.MR)},i.prototype.onlanguageChange=function(t){this.__&&this.__.onlanguageChange(t)},i.prototype.updateClosedCaptionStyle=function(t){this.__&&this.__.updateClosedCaptionStyle(t)},i.prototype.onMediaItemCurrent=function(t){},i.prototype.onMediaItemPlaybackStarted=function(t){this.Yg?this.mR():this.yR(),this.pR(),this.jR(),this.dR(),this.NR(),this.Jk&&this.IR(),this.TR&&this.TR.onPlaybackStarted(t);var i=this.vt.uiState.width<=f.HideBreakpointDimensions.WIDTH&&this.vt.uiState.height<=f.HideBreakpointDimensions.HEIGHT;this.TR&&this.TR.shouldEnableSettings()&&!i?j(this.AR).remove("vp-hide"):j(this.AR).add("vp-hide")},i.prototype.onMediaItemPlaybackProgress=function(t){var i=this.k_,n=t.buffered,e=i.currentTime,r=i.playbackMode;n&&this.kR(n),void 0!==e&&r===d.PlaybackMode.VIDEO&&this.RR(e)},i.prototype.onAdBreakStarted=function(){j(this.Ik).add("vp-disable"),j(this.Fk).add("vp-disable"),j(this.Bk).add("vp-disable")},i.prototype.onAdBreakEnded=function(){this.vt.seekControls.show&&(j(this.Fk).remove("vp-disable"),j(this.Bk).remove("vp-disable")),j(this.Ik).remove("vp-disable")},i.prototype.onAdPlaybackStarted=function(t){void 0===t&&(t=!0),this.pR(),t&&(this.LR(),this.CR(),this.DR(),j(this.Ik).add("vp-disable"),j(this.Kj).add("hide"),j(this.AR).add("vp-hide"),this.TR&&this.TR.isOpen()&&this.TR.toggleSettings(this.MR))},i.prototype.onAdPlaybackEnded=function(){this.NR(),this.vt.seekControls.show&&(j(this.Fk).remove("vp-disable"),j(this.Bk).remove("vp-disable")),j(this.Ik).remove("vp-disable"),this.TR&&this.TR.shouldEnableSettings()&&j(this.AR).remove("vp-hide")},i.prototype.onAdPlaybackProgress=function(t){var i=t.currentTime,n=t.duration;i&&n&&this.RR(i,!0)},i.prototype.onControlsBarChange=function(t){!this.cR||this.__.isDocked()&&this.vt.docking.showInfoCard||(t?this.PR():(this.xR(),j(this.Pk).remove("active"),j(this.Ik).remove("vp-thick-slider"),this.CR()))},i.prototype.getCCElement=function(){return this.__?this.__.getCCElement():null},i.prototype.getMainElement=function(){return this.__.getMainElement()},i.prototype.updateCurrentItemTitle=function(t){this.oR.innerHTML=t},i.prototype.onSetPlaybackRate=function(t){var i;null===(i=this.SR)||void 0===i||i.activateItem(t),this.UR&&(this.UR.innerText=t+"x")},i.prototype.addCustomControlElement=function(t){var i=this,n=t.icon||"",e=t.label||"",r=t.className||"",s=document.createElement("div");s.setAttribute("class",r),s.setAttribute("style",'background-image: url("'+n+'")'),s.setAttribute("aria-label",e),s.setAttribute("role","button"),s.setAttribute("tabindex","0"),j(s).add("vp-button"),this.Lk.insertBefore(s,this.Lk.firstChild),this.publish(u.CUSTOM_ELEMENT,"create",e);return this.FR=new _.default(s,(function(t){t.stopPropagation(),i.publish(u.CUSTOM_ELEMENT,"click",e)})),s},i.prototype.onEnterPictureInPicture=function(){this.iR&&j(this.iR).add("vp-pip-enabled")},i.prototype.onLeavePictureInPicture=function(){this.iR&&j(this.iR).remove("vp-pip-enabled")},i.prototype.destroy=function(){this.BR&&this.BR.destroy(),this.zR&&this.zR.destroy(),this.VR&&this.VR.destroy(),this.HR&&this.HR.destroy(),this.YR&&this.YR.destroy(),this.qR&&this.Uk&&(this.qR.destroy(),this.qk&&this.WR&&this.WR.destroy(),this.QR&&this.QR.destroy(),this.ZR&&this.ZR.destroy(),this.$R&&this.$R.destroy(),this.DR(),this.XR()),this.sR&&this.sR.destroy(),this.YO&&(this.vS.removeEventListener("tap",this.dS),this.YO.destroy()),this.KR&&this.KR.destroy(),this.FR&&this.FR.destroy(),this.JR&&this.JR.destroy(),this.tL&&this.tL.destroy(),this.eR&&this.iL(),this.__.getContentNode().removeEventListener("keydown",this.nL,!1),this.eL&&this.eL.destroy(),this.SR&&this.SR.destroy()},i.prototype.Nk=function(){var t=this,i=this.vt.logos;i&&!j(this.nR).contains("vp-hide")&&this.nR.querySelector(".vp-logo")&&Object.keys(i).forEach((function(n){var e=t.nR.querySelector(".vp-logo-type-".concat(n," img"));t.rL(e,i[n])}))},i.prototype.dR=function(){var t=this,i=this.vt.logos;this.nR&&i&&(Object.keys(i).forEach((function(n){i[n]&&t.sL(i[n],n)})),j(this.nR).remove("vp-hide"))},i.prototype.zk=function(){if(this.QO){c.userAgent.android&&(this.Fk.querySelector("svg").setAttribute("transform","scale(1.5, 1.5) translate(4.5, 4.5)"),this.Bk.querySelector("svg").setAttribute("transform","scale(1.5, 1.5) translate(4.5, 4.5)"));var t=this.Fk.querySelector(".vp-forward-time"),i=this.Bk.querySelector(".vp-backward-time");t.innerHTML=i.innerHTML=this.vt.seekControls.offset,this.vt.seekControls.offset<10&&(t.setAttribute("transform","translate(2, 0.4)"),i.setAttribute("transform","translate(1.8, 0.4)"))}},i.prototype.sL=function(t,i){var n=this;if(t&&t.url){var e=this.nR.querySelector(".vp-logo-type-"+i);e||((e=document.createElement("div")).innerHTML="<img />",e.setAttribute("class","vp-logo vp-logo-type-".concat(i)),this.KR=new _.default(e,(function(){return n.publish(u.LOGO_CLICK)})),this.nR.appendChild(e));var r=e.querySelector("img"),s=["bottomLeft","bottomRight","topRight","topLeft","off"],o=t.position&&s.indexOf(t.position)>-1?t.position:"bottomRight",a=j(e),c="vp-logo-";s.forEach((function(t){t!==o&&a.contains(c+t)&&a.remove(c+t)})),t.fadeOut&&/^\d+\.?\d*s$/.test(t.fadeOut)&&(a.add("vp-logo-fadeout"),e.setAttribute("data-fadeout",t.fadeOut)),a.contains(o)||a.add(c+o),t.url&&r.src!==t.url&&(r.src=t.url,this.rL(r,t))}},i.prototype.lR=function(){var t=this;this.TR=new w.default(this.vt),this.AR=this.QO.querySelector(".vp-setting-btn"),this.MR=this.QO.querySelector(".vp-setting-pointer"),this.AR&&(this.VR=new _.default(this.AR,(function(){t.oL()}))),this.LI=this.TR.create(),this.Lk.parentNode.insertBefore(this.LI,this.Lk.nextSibling),this.TR.on(w.SettingsEvent.SET_QUALITY,(function(i){t.publish(u.SET_QUALITY,i)}),this),this.TR.on(w.SettingsEvent.UI_INTERACT,(function(i){t.publish(u.UI_INTERACT,i)}),this)},i.prototype.vR=function(){var t=this;this.uL=this.QO.querySelector(".vp-pbrate-btn"),this.UR=this.QO.querySelector(".vp-pbrate-txt"),this.aL=this.QO.querySelector(".vp-pbrate-pointer"),this.uL&&(j(this.uL).remove("vp-hide"),this.SR=new O.default(this.vt),this.HR=new _.default(this.uL,(function(){var i;(null===(i=t.TR)||void 0===i?void 0:i.isOpen())&&t.TR.toggleSettings(t.MR),t.OR.hideActiveContainer(t.Yk),t.SR.openContainer(!t.SR.isOpen()),t.SR.isOpen()?j(t.aL).remove("vp-hide"):j(t.aL).add("vp-hide")})),this.cL=this.SR.create(),this.Lk.parentNode.insertBefore(this.cL,this.Lk.nextSibling),this.SR.on(O.PlaybackRateEvents.SET_PLAYBACK_RATE,(function(i){t.publish(u.SET_PLAYBACK_RATE,i)}),this))},i.prototype.rL=function(t,i){var n=this.__.isDocked();i&&i.height&&t&&(t.height=n?Math.min(i.height,this.vt.docking.height/10):i.height),i&&i.width&&t&&(t.width=n?Math.min(i.width,this.vt.docking.width/10):i.width)},i.prototype.LR=function(){this.nR&&j(this.nR).add("vp-hide")},i.prototype.hL=function(){var t=this.nR.querySelectorAll(".vp-logo-fadeout");if(!(t.length<1))for(var i=0,n=t;i<n.length;i++){var e=n[i],r=e&&e.getAttribute("data-fadeout");r&&Object.assign(e.style,{opacity:0,transition:"visibility ".concat(r," ease-in-out ").concat(r,", opacity ").concat(r," ease-in-out"),visibility:"hidden"})}},i.prototype.fL=function(t){var i=this;!this.vt.autoplay||this.__.isDocked()&&this.vt.docking.showInfoCard||(j(this.oR).add("vp-title-standard"),this.lL(!0),this.vL=window.setTimeout((function(){j(i.oR).add("vp-hide"),i.dL(t)}),6e3))},i.prototype.jR=function(){this.vL&&clearTimeout(this.vL),this.pL=null;var t=this.uO(),i=t&&t.title||"";switch(this.bL(),this.updateCurrentItemTitle(i),j(this.oR).remove("vp-title-standard"),j(this.oR).remove("vp-secondary"),j(this.oR).remove("vp-hide"),this.vt.showTitleOnStart||""){case"fadeoutall":this.fL(!0);break;case"standard":this.fL(!1)}},i.prototype.bL=function(){var t=this.uR;if(this.mL()){var i=this.pL,n=i&&i.open_label||i&&i.label||"";t.innerHTML=this.yL(n)}else t&&""!==t.innerHTML&&(t.innerHTML="",j(t).add("vp-hide"))},i.prototype.lL=function(t){if(this.mL()){var i=j(this.uR);i.remove("vp-hide"),i.add("vp-title-header-standard"),j(this.oR).add("vp-secondary"),t?i.add("vp-title-shown"):i.remove("vp-title-shown")}},i.prototype.dL=function(t){var i=this;if(this.gL&&clearTimeout(this.gL),this.wL&&clearTimeout(this.wL),this.mL()){var n=this.uR,e=j(n);e.remove("vp-title-shown"),e.add("vp-hide");var r=this.pL,s=r&&r.label||"";this.gL=window.setTimeout((function(){n.innerHTML=i.yL(s),e.remove("vp-hide"),t&&(i.wL=window.setTimeout((function(){n.innerHTML="",e.add("vp-hide")}),5e3))}),300)}},i.prototype.mL=function(){return!(!this.uR||!this.pL)},i.prototype.yL=function(t){if(!t||""===t)return"";return t.replace(/\*\*([^\*]+(\s[^\*]+)*)\*\*/gi,"<strong>$1</strong>")},i.prototype.PR=function(){j(this.oR).add("vp-title-standard"),j(this.oR).remove("vp-hide"),this.lL(!0)},i.prototype.xR=function(){j(this.oR).add("vp-title-standard"),j(this.oR).add("vp-hide"),this.lL(!1)},i.prototype.mR=function(){j(this.Ik).add("vp-disable"),j(this.Fk).add("vp-disable"),j(this.Bk).add("vp-disable"),j(this.Rk).add("vp-hide"),this.bR&&"live"===this.bR&&(this.Kj.innerHTML=p.default.LIVE,this.Kj.setAttribute("aria-label",p.default.LIVE),j(this.Kj).remove("hide"),j(this.oR).add("vp-live"))},i.prototype.yR=function(){j(this.Ik).remove("vp-disable"),this.vt.seekControls.show?(j(this.Fk).remove("vp-disable"),j(this.Bk).remove("vp-disable")):(j(this.Fk).add("vp-disable"),j(this.Bk).add("vp-disable")),j(this.Rk).remove("vp-hide"),j(this.oR).remove("vp-live")},i.prototype.Tm=function(){var t=this;if(this.Uk){this.qR=new _.default(this.Uk,(function(i){i.stopPropagation(),t._L()}))}if(this.qk){this.WR=new _.default(this.qk,(function(i){i.stopPropagation(),t.__.toggleFullscreen(),t.publish(u.UI_INTERACT,{srcElement:"ctrl-fullscr-btn"})}))}this.EL=new _.default(this.QO,(function(t){t.stopPropagation()})),this.jk&&(this.zR=new _.default(this.jk,(function(){t.__.showAirplayTargetMenu(),t.publish(u.UI_INTERACT,{srcElement:"ctrl-airplay-btn"})}))),this.tR&&(this.tL=new _.default(this.tR,(function(){j(t.Jk).remove("vp-hidden"),t.publish(u.UI_INTERACT,{srcElement:"ctrl-multi-audio-btn"})}))),this.iR&&(this.YR=new _.default(this.iR,(function(){var i=!!document.pictureInPictureElement;t.publish(u.PIP_TOGGLE,!i)}))),this.OL(),this.nL=function(i){t.zb.publish(l.KEYDOWN,{keyCode:i.keyCode,shiftDown:i.shiftKey,ctrlDown:i.ctrlKey,altDown:i.altKey,target:i.target,preventDefault:function(){i.preventDefault()}})},this.__.getContentNode().addEventListener("keydown",this.nL,!1),this.eL=new _.default(this.Ik,(function(t){t.stopPropagation()})),this.NR(),this.SL(),this.AL(),this.TL(),this.ML()},i.prototype._L=function(){var t=this.__.getCurrentViewState(),i=this.uO(),n=i&&i.id,e=this.vt.isPaused()?"ctrl-play-btn":"ctrl-pause-btn";"end-screen"===t?(this.zb.publish(l.RELATED_ITEM_CLICK,n,-1,!1,!1),this.jL()):(this.publish(u.UI_INTERACT,{srcElement:e}),this.publish(u.TOGGLE_PLAY_PAUSE))},i.prototype.NL=function(){if(this.Ak){var t=!j(this.Hk).contains(T),i="cc-"+(t?"on":"off")+(!(!this.vt.castState||!this.vt.castState.connected)?"-cast":"");this.publish(u.UI_INTERACT,{srcElement:i}),this.publish(u.TOGGLE_CC,t,!0),this.updateClosedCaptionButtonState(t)}},i.prototype.oL=function(){var t,i=this.__.getAdsOverlayNode();this.TR&&this.TR.toggleSettings(this.MR),i&&j(i).toggle("vp-ads-overlay-bg"),this.OR.hideActiveContainer(this.Yk),null===(t=this.SR)||void 0===t||t.openContainer(!1),j(this.aL).add("vp-hide")},i.prototype.fR=function(){this.OR=new g.default(this,this.vt),this.ER=this.OR.create(),c.userAgent.mobile&&j(this.ER).add("vp-hide"),this.Lk.parentNode.insertBefore(this.ER,this.Lk.nextSibling)},i.prototype.OL=function(){var t=this;this.Hk&&(this.BR=new _.default(this.Hk,(function(i){i.stopPropagation(),t.NL()})),this.OR&&this.IL())},i.prototype.IL=function(){var t=this;this.kL=null;this.RL=function(i){var n=t.__.getAdsOverlayNode();c.userAgent.mobile||t.TR&&t.TR.isOpen()||(t.LL(i),t.OR.showActiveContainer(t.Yk),n&&j(n).add("vp-ads-overlay-bg"),j(t.Qk).remove("open"))},this.CL=function(i){var n=t.__.getAdsOverlayNode();t.LL(i),t.kL&&clearTimeout(t.kL),t.kL=window.setTimeout((function(){t.OR.hideActiveContainer(t.Yk),n&&j(n).remove("vp-ads-overlay-bg")}),1e3)},this.DL=function(i){c.userAgent.mobile||(t.LL(i),t.kL&&clearTimeout(t.kL))},this.PL(this.Hk,this.RL,this.CL),this.PL(this.ER,this.DL,this.CL)},i.prototype.R_=function(){var t=this.uO(),i=t&&t.title||"";this.jL(),this.bL(),this.updateCurrentItemTitle(i)},i.prototype.jL=function(){this.Ck.innerHTML="0:00",this.Dk.innerHTML="0:00"},i.prototype.Mk=function(t){this.qk&&(t?(j(this.qk).add("fullscreen"),this.xL(p.default.EXIT_FULLSCREEN)):(j(this.qk).remove("fullscreen"),this.xL(p.default.FULLSCREEN_SPACE))),this.UL(t),this.syncAriaState()},i.prototype.xL=function(t){if(this.qk){var i=this.qk.querySelector(".vp-tooltip-content");i&&(i.innerHTML=t)}},i.prototype.SL=function(){var t=this;if(this.vt.seekControls.show){this.ZR=new _.default(this.Fk,(function(i){i.stopPropagation(),t.publish(u.FORWARD_SEEK),t.publish(u.UI_INTERACT,{srcElement:"ctrl-forward-seek-btn"})}));this.$R=new _.default(this.Bk,(function(i){i.stopPropagation(),t.publish(u.BACKWARD_SEEK),t.publish(u.UI_INTERACT,{srcElement:"ctrl-backward-seek-btn"})}))}},i.prototype.NR=function(){var t=this;this.Vk&&(this.QR=new _.default(this.Vk,(function(i){i.stopPropagation();var n=t.Vk,e=(i.clientX||i.touches&&i.touches[0]&&i.touches[0].clientX||i.pageX)-(n&&n.getBoundingClientRect().left||0),r=n?e/n.clientWidth:1,s=Math.min(r*t.Qd,Math.max(t.Qd-1,0));t.publish(u.SEEK,s)}))),this.FL=function(i){return s(t,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=this.__.getAdsOverlayNode(),this.zb.publish(l.SEEK_BAR_MOUSEOVER,i),j(this.Pk).add("active"),j(this.Ik).add("vp-thick-slider"),t&&j(t).add("vp-ads-overlay-bg"),[4,this.BL(i)];case 1:return n.sent(),this.LL(i),[2]}}))}))},this.zL=function(i){var n=t.__.getAdsOverlayNode();t.zb.publish(l.SEEK_BAR_MOUSEOUT,i),j(t.Pk).remove("active"),j(t.Ik).remove("vp-thick-slider"),n&&j(n).remove("vp-ads-overlay-bg"),t.CR(),t.LL(i)},this.PL(this.Ik,this.FL,this.zL),this.VL=function(i){return s(t,void 0,void 0,(function(){var t,n;return o(this,(function(e){switch(e.label){case 0:return isNaN(this.Qd)?[2]:(j(this.Pk).add("active"),this.LL(i),this.Ne=!0,this.zb.publish(l.CONTROLS_SEEK_START),t=this.GL(i),n=Math.min(t*this.Qd,Math.max(this.Qd-1,0)),this.zb.publish(l.CTRL_SEEK,Math.round(n)),[4,this.HL(i)]);case 1:return e.sent(),[2]}}))}))},this.HL=function(i){return s(t,void 0,void 0,(function(){var t,n,e;return o(this,(function(r){switch(r.label){case 0:return this.Ne?(this.LL(i),j(this.QO).add("vp-drag"),j(this.Pk).add("active"),j(this.Ik).add("vp-thick-slider"),[4,this.BL(i)]):[2];case 1:return r.sent(),t=this.GL(i),n=(n=Math.min(t*this.Qd,Math.max(this.Qd-1,0)))>1?n:1,e="",e=this.vt.sliderColor?"width: ".concat(100*t,"%; background-color: ").concat(this.vt.sliderColor,";"):"width: ".concat(100*t,"%;"),this.xk.setAttribute("style",e),this.kk.setAttribute("style","width: 0%;"),this.Pk.setAttribute("style","left: "+100*t+"%;"),this.zb.publish(l.CONTROLS_SEEKING,n),[2]}}))}))},this.YL=function(i){t.Ne&&(j(t.QO).remove("vp-drag"),j(t.Pk).remove("active"),j(t.Ik).remove("vp-thick-slider"),t.CR(),t.LL(i),t.Ne=!1,t.zb.publish(l.CONTROLS_SEEK_END))},this.qL(this.Ik,this.VL,this.HL,this.YL)},i.prototype.DR=function(){this.WL(this.Ik,this.FL,this.zL),this.QL(this.Ik,this.VL,this.HL,this.YL)},i.prototype.LL=function(t){-1!==t.type.indexOf("touch")&&t.preventDefault()},i.prototype.Tk=function(){this.hL()},i.prototype.B_=function(t){var i,n=this.k_,e=this.vt.volume,r=n.currentTime,s=this.Qd,o=n.playbackMode;switch(t.keyCode){case 13:case 32:32===t.keyCode&&(t.preventDefault(),t.target!==this.__.getMainElement()&&t.target!==this.__.getContentNode()||this.zb.publish(l.TOGGLE_PLAY_PAUSE)),t.target===this.Uk&&this._L(),t.target===this.AR&&this.oL(),t.target===this.Hk&&this.NL(),t.target===this.Wk&&this.publish(u.SET_MUTE,!this.vt.mute),t.target===this.qk&&this.__.toggleFullscreen(),t.target===this.vS&&this.publish(u.UP_NEXT_KEYBOARD_ACTION),j(t.target).contains("vp-playlist-item")&&this.publish(u.PLAYLIST_KEYBOARD_ACTION,t);break;case 27:this.__.updateViewOnEscPress();break;case 37:t.preventDefault(),o!==d.PlaybackMode.VIDEO||this.Yg||(i=r-5,this.zb.publish(l.CONTROLS_SEEKING,i>=0?i:0));break;case 38:t.preventDefault();var a=e+.05,c=a>1?1:a;this.ZL(c);break;case 39:t.preventDefault(),o!==d.PlaybackMode.VIDEO||this.Yg||(i=r+5,this.publish(u.SEEK,i<=s?i:s));break;case 40:t.preventDefault();var h=e-.05;c=h<0?0:h;this.ZL(c);break;case 67:if(this.Hk&&y.default.isDisplayed(this.Hk)){var f=!j(this.Hk).contains(T);this.publish(u.TOGGLE_CC,f,!0)}break;case 70:this.qk&&y.default.isDisplayed(this.qk)&&this.__.toggleFullscreen();break;case 77:this.publish(u.SET_MUTE,!this.vt.mute)}if(t.keyCode>=48&&t.keyCode<=57){var v=(t.keyCode-48)/10;s>0&&this.zb.publish(l.CONTROLS_SEEKING,s*v)}},i.prototype.RR=function(t,i){var n=Math.min(t/this.Qd*100,100);if(this.Ck&&m.isNumber(t)&&m.isNumber(this.Qd)&&(this.Ck.innerHTML=(i?M:"")+y.default.formatTime(t)),this.Dk&&m.isNumber(this.Qd)&&(this.Dk.innerHTML=y.default.formatTime(this.Qd)),m.isNumber(t)&&m.isNumber(this.Qd)){var e="";e=this.vt.sliderColor?"width: ".concat(n,"%; background-color: ").concat(this.vt.sliderColor,";"):"width: ".concat(n,"%;"),this.xk.setAttribute("style",e),this.Ne||this.Pk.setAttribute("style","left: "+n+"%;"),this.Ik.setAttribute("aria-valuemax",this.Qd.toString()),this.Ik.setAttribute("aria-valuenow",t.toString()),this.Ik.setAttribute("aria-valuetext",y.default.formatTime(t)+" of "+y.default.formatTime(this.Qd))}},i.prototype.kR=function(t){var i=0;t.length>0&&(i=t.end(0)/this.Qd*100),this.kk.setAttribute("style","width: "+i+"%;")},i.prototype.$L=function(t,i){return s(this,void 0,void 0,(function(){var n;return o(this,(function(e){switch(e.label){case 0:return this.lw&&t&&i&&i.mimetype?this.XL?[3,2]:[4,this.lw.getPlugin(v.PluginType.VISUAL_SEEK,i.mimetype)]:[2,null];case 1:n=e.sent(),this.XL=n,e.label=2;case 2:return this.XL&&!this.XL.canSeek(t)&&this.XL.update(t,i),[2,this.XL]}}))}))},i.prototype.BL=function(t){return s(this,void 0,void 0,(function(){var i,n,e,r,s,u,a,c,h,f,l,d,p,b,m,g,w,_,E,O=this;return o(this,(function(o){switch(o.label){case 0:return i=this.uO(),[4,this.$L(i.id,i.visualSeekData)];case 1:return(n=o.sent())?(e=this.GL(t),r=e*i.getRawDuration(),s=e*i.duration,(u=n.getThumbnailData(i.id,r))&&u.url?j(this.__.getContentNode()).contains("vp-hide-controls")?[2]:(a=e<.09?.09:e>.91?.91:e,this.Gk.style.display="block",this.Gk.style.left=100*a+"%",(c=this.Gk.querySelector(".vp-vs-time"))&&(c.innerHTML=y.default.formatTime(s)),h=u.height,f=u.index,l=u.url,d=u.width,p=u.isAd,b=this.Gk.querySelector(".vp-vs-thumbnail"),p||(b.innerHTML="",n.visualSeekType===v.VisualSeekType.SPRITE?(b.style.background="url(".concat(l,")"),10,10,100,g=(m=f%100)%10,w=Math.floor(m/10),_=g*d,E=w*h,b.style.backgroundPosition="-"+_+"px -"+E+"px"):(this.KL=l,this.JL=this.JL||setTimeout((function(){var t=O.Gk.querySelector(".vp-vs-thumbnail");O.KL&&(t.style.background="url(".concat(O.KL,")")),clearTimeout(O.JL),O.JL=null}),50))),[2]):[2]):[2]}}))}))},i.prototype.qL=function(t,i,n,e){["mousedown","touchstart"].forEach((function(n){t.addEventListener(n,i)})),["mousemove","touchmove"].forEach((function(t){document.addEventListener(t,n)})),["mouseup","touchend"].forEach((function(t){document.addEventListener(t,e)}))},i.prototype.QL=function(t,i,n,e){["mousedown","touchstart"].forEach((function(n){t.removeEventListener(n,i)})),["mousemove","touchmove"].forEach((function(t){document.removeEventListener(t,n)})),["mouseup","touchend"].forEach((function(t){document.removeEventListener(t,e)}))},i.prototype.PL=function(t,i,n){["mouseenter","touchstart"].forEach((function(n){t.addEventListener(n,i)})),["mousemove","touchmove"].forEach((function(n){t.addEventListener(n,i)})),["mouseleave","touchend"].forEach((function(i){t.addEventListener(i,n)}))},i.prototype.WL=function(t,i,n){["mouseenter","touchstart"].forEach((function(n){t.removeEventListener(n,i)})),["mousemove","touchmove"].forEach((function(n){t.removeEventListener(n,i)})),["mouseleave","touchend"].forEach((function(i){t.removeEventListener(i,n)}))},i.prototype.pR=function(){this.Wk&&this.updateVolumeUI(this.vt.volume,this.vt.mute)},i.prototype.tC=function(){var t=this;this.iC=new _.default(this.Wk,(function(i){if(!t.nC){i.stopPropagation(),t.eC(),t.__.clearAutoHideTimeout(),t.rC&&clearTimeout(t.rC);var n=!t.vt.mute;t.publish(u.UI_INTERACT,{srcElement:"ctrl-mute-btn-"+(n?"on":"off")}),t.publish(u.SET_MUTE,n),t.sC(n)}}))},i.prototype.oC=function(){var t=this,i=function(i){var n,e=function(i){var n;return n=t.__.getFullscreen()&&(c.userAgent.chrome||c.userAgent.safari)?i.pageX-y.default.getOffsetLeftFromEl(t.Zk,f.VIDEO_MAIN_ELEMENT_CLASS):i.pageX-y.default.getOffsetLeftFromDocument(t.Zk),t.Zk.getBoundingClientRect().left?Math.max(0,Math.min(1,n/t.Zk.clientWidth)):0}(i);n=0===e,t.vt.mute!==n&&(t.publish(u.UI_INTERACT,{srcElement:"ctrl-mute-btn-"+(n?"on":"off")}),t.publish(u.SET_MUTE,n)),t.publish(u.SET_VOLUME,e),t.publish(u.UI_INTERACT,{srcElement:"ctrl-volume-bar",volume:e})};this.uC=new _.default(this.Zk,(function(n){n.stopPropagation(),t.eC(),i(n)})),this.aC=function(i){t.LL(i),t.nC=!0,t.eC(),t.cC(i)},this.cC=function(n){t.nC&&(t.LL(n),t.eC(),i(n),t.hC(n))},this.fC=function(i){t.nC&&(t.LL(i),t.nC=!1)},this.qL(this.Zk,this.aC,this.cC,this.fC)},i.prototype.TL=function(){var t,i=this;this.lC=function(n){n.stopPropagation(),t||(t=window.setTimeout((function(){i.publish(u.UI_INTERACT,{srcElement:"ctrl-mute-btn-off"}),t=null}),600))},this.eR&&(["mouseenter","touchstart"].forEach((function(t){i.eR.addEventListener(t,i.lC)})),["mousemove","touchmove"].forEach((function(t){i.eR.addEventListener(t,i.lC)})))},i.prototype.iL=function(){var t=this;this.eR&&(["mouseenter","touchstart"].forEach((function(i){t.eR.removeEventListener(i,t.lC)})),["mousemove","touchmove"].forEach((function(i){t.eR.removeEventListener(i,t.lC)})))},i.prototype.ML=function(){var t,i=this;null===(t=this.QO)||void 0===t||t.addEventListener("focusin",(function(t){i.publish(u.BOTTOM_BAR_FOCUS)})),[this.Ik,this.Uk,this.Bk,this.Fk,this.AR,this.Hk,this.Wk,this.qk].forEach((function(t,i){y.default.bindKeyboardOutlineEvents(t)}))},i.prototype.sC=function(t){this.vt.ccOnMute&&(t?this.publish(u.TOGGLE_CC,!0,!1):this.publish(u.TOGGLE_CC,!1,!1),this.updateClosedCaptionButtonState(t))},i.prototype.eC=function(){this.Kk&&j(this.Kk).add("show")},i.prototype.vC=function(){var t=this;this.rC=null;var i=!1;this.hC=function(n){var e=t.__.getAdsOverlayNode();t.LL(n),t.TR&&t.TR.isOpen()||t.SR&&t.SR.isOpen()||(j(t.Qk).add("open"),e&&j(e).add("vp-ads-overlay-bg"),i||(t.pR(),i=!0),t.eC(),t.OR&&t.OR.hideActiveContainer(t.Yk))},this.dC=function(i){var n=t.__.getAdsOverlayNode();t.LL(i),t.rC&&clearTimeout(t.rC),t.rC=window.setTimeout((function(){j(t.Qk).remove("open"),n&&j(n).remove("vp-ads-overlay-bg")}),500)},this.pC=function(i){t.LL(i),t.rC&&clearTimeout(t.rC)},this.PL(this.Wk,this.hC,this.dC),this.PL(this.Qk,this.pC,this.dC)},i.prototype.AL=function(){var t=this;this.Wk&&this.tC(),this.Qk&&this.Wk&&(this.oC(),this.vC()),this.Jk&&(this.JR=new _.default(this.Jk,(function(i){i.stopPropagation();var n=y.default.findClosest(i.eventTarget,".vp-audio-item",t.Jk);if(n){var e=t.Jk.querySelector(".vp-audio-item-selected"),r=e&&e.getAttribute("data-name");e&&j(e).remove("vp-audio-item-selected"),j(n).add("vp-audio-item-selected"),t.publish(u.SET_AUDIO_LANGUAGE,n.getAttribute("data-name"),r)}else"close"===i.eventTarget.getAttribute("data-action")&&j(t.Jk).add("vp-hidden")})))},i.prototype.XR=function(){this.Wk&&this.iC.destroy(),this.Qk&&(this.uC.destroy(),this.QL(this.Qk,this.aC,this.cC,this.fC),this.WL(this.Wk,this.hC,this.dC),this.WL(this.Qk,this.pC,this.dC))},i.prototype.gR=function(t){var i=this.__.getContentNode();this.Wk&&(t?(j(this.Wk).add("muted"),j(i).add("vp-muted")):(j(this.Wk).remove("muted"),j(i).remove("vp-muted"))),this.syncAriaState()},i.prototype.wR=function(t){if(this.$k){var i=Math.ceil(100*t),n=100-i;this.$k.setAttribute("style","width:"+i+"%"),this.Xk.setAttribute("style","width:"+n+"%")}if(this.Kk){var e=0;try{e=parseInt(window.getComputedStyle(this.Zk).width,10)}catch(t){}var r=Math.ceil(t*(e-this.Kk.offsetWidth/2));this.Kk.setAttribute("style","left:"+r+"px")}},i.prototype.IR=function(){var t=this.uO();t&&t.isMultiAudioAvailable()?(this.bC(),j(this.Qk).add("vp-multi-audio-available"),this.tR&&j(this.tR).remove("vp-hidden")):(j(this.Qk).remove("vp-multi-audio-available"),this.tR&&j(this.tR).add("vp-hidden"),this.Jk.innerHTML="")},i.prototype.bC=function(){var t=this.uO(),i=y.default.render(A,{isMobile:c.userAgent.mobile,items:t&&t.languages||[],Strings:p.default});this.Jk.appendChild(i)},i.prototype.GL=function(t){var i=((t.clientX||t.touches&&t.touches[0]&&t.touches[0].clientX||t.pageX)-this.Ik.getBoundingClientRect().left)/this.Ik.clientWidth;return Math.max(0,Math.min(1,i))},i.prototype.CR=function(){this.Gk.style.display="none",this.KL=""},i.prototype.UL=function(t){var i=this.__.getContentNode(),n=this.__.isStreamMode()||this.__.isMiniStreamMode(),e=this.__.isMiniStreamMode()?"vp-ministream":"vp-stream";n&&(t?j(i).remove(e):j(i).add(e))},i.prototype.hR=function(){this.Uk&&this.Uk.setAttribute("aria-label",p.default.PLAY_VIDEO),this.Ik.setAttribute("aria-label",p.default.SEEK_SLIDER),this.Ik.setAttribute("aria-valuemin","0"),this.qk&&this.qk.setAttribute("aria-label",p.default.GO_TO_FULLSCREEN),this.Wk&&(j(this.Wk).contains("muted")?this.Wk.setAttribute("aria-label",p.default.UNMUTE):this.Wk.setAttribute("aria-label",p.default.MUTE))},Object.defineProperty(i.prototype,"Qd",{get:function(){return this.k_.duration},enumerable:!1,configurable:!0}),i.prototype.uO=function(){return this.vt.playlist.getCurrentItem()},Object.defineProperty(i.prototype,"k_",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),i.prototype.ZL=function(t){this.publish(u.SET_VOLUME,t),this.publish(u.KEY_CHANGE_VOLUME,{volume:t})},i}(a.default);i.Controls=N},69541:function(t,i){"use strict";var n;Object.defineProperty(i,"__esModule",{value:!0}),function(t){t.UP="up",t.DOWN="down",t.LEFT="left",t.RIGHT="right",t.TAP="tap"}(n||(n={}));var e={NORMAL:[{combination:[79,80,83,83]}]},r={NORMAL:[n.UP,n.DOWN,n.LEFT,n.RIGHT,n.TAP,n.TAP]},s=function(){function t(t,i,n){this.mC=[],this.yC=0,this.gC=0,this.wC=[],this.pw=i,this.D=t,this._C=e[this.D],this.EC(),this.OC(),this.BO=n,this.SC()}return t.prototype.destroy=function(){document.removeEventListener("keydown",this.AC,!1),document.removeEventListener("touchstart",this.TC,!1),document.removeEventListener("touchmove",this.MC,!1),document.removeEventListener("touchend",this.jC,!1),this.BO.removeEventListener("touchstart",this.NC,!1),this.BO.removeEventListener("touchend",this.IC,!1)},t.prototype.OC=function(){var t=this;this.yC=0,this.gC=0,this._C.forEach((function(i){i.length=i.combination.length,i.value=i.length?i.combination.toString():null,i.length>t.gC&&(t.gC=i.length)})),this.AC=this.B_.bind(this),document.addEventListener("keydown",this.AC,!1)},t.prototype.B_=function(t){var i=this;this.yC=t.altDown||t.altKey?this.yC+1:0,this.wC.push(t.keyCode),this.wC.length>this.gC&&this.wC.shift(),this._C.some((function(t){var n=i.wC.slice(Math.max(i.wC.length-t.length,0)).toString()===t.value;return t.alt?n&&i.yC>t.length:n}))&&this.pw()},t.prototype.TC=function(t){this.kC=t.changedTouches[0].pageX,this.RC=t.changedTouches[0].pageY,this.LC=0,this.CC=0},t.prototype.MC=function(t){if(1===t.touches.length){var i=t.touches[0];this.LC=i.pageX,this.CC=i.pageY}},t.prototype.jC=function(){var t,i=r[this.D];this.LC||this.CC?t=Math.abs(this.kC-this.LC)>Math.abs(this.RC-this.CC)?this.kC-this.LC<0?n.RIGHT:n.LEFT:this.RC-this.CC<0?n.DOWN:n.UP:t=n.TAP;this.mC.push(t),this.mC.length>i.length&&this.mC.shift(),this.mC.length===i.length&&this.mC.every((function(t,n){return t===i[n]}))&&this.pw()},t.prototype.EC=function(){this.TC=this.TC.bind(this),this.MC=this.MC.bind(this),this.jC=this.jC.bind(this),document.addEventListener("touchstart",this.TC,!1),document.addEventListener("touchmove",this.MC,!1),document.addEventListener("touchend",this.jC,!1)},t.prototype.NC=function(t){var i=this;this.DC||2!==t.touches.length||(this.DC=window.setTimeout((function(){i.pw(),i.DC=null}),3e3))},t.prototype.IC=function(){this.DC&&(window.clearTimeout(this.DC),this.DC=null)},t.prototype.SC=function(){this.NC=this.NC.bind(this),this.IC=this.IC.bind(this),this.BO.addEventListener("touchstart",this.NC,!1),this.BO.addEventListener("touchend",this.IC,!1)},t}();i.default=s},1225:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.OpssEvent=void 0;var s,o=n(39451),u=n(53872),a=n(21962),c=n(64685),h=n(1954),f=n(31204),l=n(40531),v=n(96609),d=n(23535),p=n(69215),b=n(40446),m=1e3,y="<span class='vp-details'>",g=": </span>",w=".vp-opss-";!function(t){t.VISIBILITY_CHANGED="visibility-changed"}(s=i.OpssEvent||(i.OpssEvent={}));var _=function(){function t(t,i){void 0===t&&(t="");var n=this;this.Yp=t,this.zA=".vp-section-expand-",this.PC=w+"current-",this.zA+=this.Yp,this.PC+=this.Yp,this.xC=i.select(this.zA),this.UC=i.select(this.PC),this.xC.onTap((function(){var t="vp-hide",i="vp-expanded",e="vp-collapsed",r=n.UC.contains(t);n.UC.addOrRemove(t,!r),n.xC.remove(r?i:e).add(r?e:i)}))}return t.prototype.render=function(t){},t.prototype.destroy=function(){this.UC.destroy(),this.xC.destroy()},t}(),E=function(t){function i(i){return t.call(this,"hosting",i)||this}return r(i,t),i.prototype.render=function(t){var i,n,e,r=(null===(e=null===(n=null===(i=null===window||void 0===window?void 0:window.YAHOO)||void 0===i?void 0:i.CorePlayer)||void 0===n?void 0:n.VideoPlatform)||void 0===e?void 0:e.PlayerHosting)||"local";this.UC.select(w+this.Yp).innerHTML=JSON.stringify(r,void 0,2)},i}(_),O=function(t){function i(i){return t.call(this,"plugins",i)||this}return r(i,t),i.prototype.render=function(t){var i="",n=t.plugins,e=function(t){Object.prototype.hasOwnProperty.call(n,t)&&n[t].forEach((function(n){i+="<div>"+y+t+g+n.mimetype+" - "+n.version+"</div>"}))};for(var r in n)e(r);this.UC.select(w+this.Yp).innerHTML=i},i}(_),S=function(t){function i(i){return t.call(this,"context",i)||this}return r(i,t),i.prototype.render=function(t){var i=this.UC,n=t.config||{};i.select(w+"expSiteName").innerHTML=y+"site"+g+n.site,i.select(w+"expName").innerHTML=y+"expName"+g+n.expName,i.select(w+"expBucketName").innerHTML=y+"expBucket"+g+n.expBucket,i.select(w+"expType").innerHTML=y+"expType"+g+n.expType},i}(_),A=function(t){function i(i){return t.call(this,"config",i)||this}return r(i,t),i.prototype.render=function(t){this.UC.select(w+"profile").innerHTML=JSON.stringify(t.config,void 0,2)},i}(_),T=function(){function t(t){this.Yp=t,this.C=[],this.FC=[]}return t.prototype.push=function(t,i){this.C.push(parseFloat(t)),this.FC.push(i)},t.prototype.render=function(t){if(this.C.some((function(t){return l.isNumber(t)}))){var i=new d.default(document.createElement("div"));i.innerText=this.Yp;var n=new d.default(document.createElement("div")).add("vp-opss-graph").appendView(i),e=document.createElement("canvas");e.width=150,e.height=60,n.appendChild(e),t.select(w+"graphs").appendView(n),this.BC(e,150,60)}},t.prototype.BC=function(t,i,n){var e=t.getContext("2d");if(e){for(var r=this.C.length-1,s=0,o=this.FC[r],u=this.C[r],a=u,c=r-1;c>=0;c--)if(u=Math.min(u,this.C[c]),a=Math.max(a,this.C[c]),c>0&&o-this.FC[c-1]>45){s=c;break}var h=this.FC[s];u>0&&(u=0),u===a&&(a=u+1),e.save(),e.translate(40,n),e.scale((i-40)/45,-1*n/(a-u)),e.beginPath(),e.moveTo(0,this.C[s]-u);for(var f=s+1;f<this.C.length;f++)e.lineTo(this.FC[f]-h,this.C[f]-u);e.restore(),e.lineWidth=1,e.lineCap="round",e.lineJoin="round",e.strokeStyle="white",e.stroke(),e.font="8pt Monospace",e.fillStyle="white",e.fillText(a.toFixed(1),0,10),e.fillText(u.toFixed(1),0,60)}},t}(),M=function(t){function i(i,n){var e=t.call(this,p,{version:i.version,strings:h.default})||this;return e.zC=[],e.vt=i,e.VC=n,e.GC={},e.HC={bitrate:new T("Bit Rate History"),speed:new T("Download Speed History"),bufferLength:new T("Buffer Length History"),frameRate:new T("Frame Rate History")},e.YC(),e.qC=e.WC(w+"close-btn",(function(){e.close()})),e.ZC=e.WC(".vp-profile-btn",(function(){e.$C(e.vt.inputConfig)})),e.XC(),e.zC.push(new A(e.view)),e.zC.push(new O(e.view)),e.zC.push(new E(e.view)),e.zC.push(new S(e.view)),e.KC="invalid",e}return r(i,t),i.prototype.render=function(t){this.JC(t);var i={plugins:this.VC,config:this.vt.inputConfig};this.zC.forEach((function(t){return t.render(i)})),this.tD(),this.iD(),this.view.setDisplay("block"),this.publish(s.VISIBILITY_CHANGED,!0,this.view)},i.prototype.isOpen=function(){return"none"!==this.view.node.style.display},i.prototype.close=function(){this.view.setDisplay("none"),this.publish(s.VISIBILITY_CHANGED,!1,this.view),this.nD()},i.prototype.onPlaybackInfo=function(t){this.GC=t;var i=Date.now()/m;this.HC.bitrate.push(t.currentStreamBitrate,i),this.HC.speed.push(t.currentKbps,i),this.HC.bufferLength.push(t.bufferLength,i),this.HC.frameRate.push(t.frameRate?t.frameRate:0,i),this.iD()},i.prototype.onTimeUpdate=function(t,i){var n,e=o.userAgent.firefox?200:50;n=-1===i?"disabled":isNaN(t)||l.isNullOrUndefined(t)?"invalid":Math.abs(t)>e?Math.floor(Math.abs(t))+" ms "+(t>0?"ahead":"behind"):"in sync",this.KC=n,this.iD()},i.prototype.onPlaylistPositionChange=function(){this.tD()},i.prototype.onRendererSwitch=function(t,i){this.JC(i),this.tD(),this.iD()},i.prototype.onVideoEvent=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];switch(t){case a.VideoEvent.PLAYING:case a.VideoEvent.PAUSE:case a.VideoEvent.SEEKING:case a.VideoEvent.SEEKED:this.eD(w+"playback",t)}},i.prototype.destroy=function(){this.nD(),this.qC&&this.qC.destroy(),this.ZC&&this.ZC.destroy(),this.rD.destroy(),this.sD.destroy(),this.oD.destroy(),this.zC.forEach((function(t){return t.destroy()})),t.prototype.destroy.call(this)},i.prototype.uD=function(t){return this.view.select(t)},i.prototype.YC=function(){var t=this;this.rD=new u.Timer(m,(function(){t.eD(w+"network",["network empty","network idle","network loading","network no source"][t.aD.networkState])}),this),this.sD=new u.Timer(m,(function(){t.eD(w+"state",t.vt.getState())}),this),this.oD=new u.Timer(m,(function(){t.eD(w+"ready",["have nothing","have metadata","have current data","have future data","have enough data"][t.aD.readyState])}),this)},i.prototype.eD=function(t,i){var n=this.uD(t);n&&(n.innerHTML=i)},i.prototype.WC=function(t,i){return this.uD(t).onTap((function(t){t.stopPropagation(),i()}))},i.prototype.JC=function(t){t&&(this.aD=t.node,this.cD()&&this.hD())},i.prototype.fD=function(t,i,n){this.uD(t).innerHTML=y+i+g+n},i.prototype.$C=function(t){var i;try{i=JSON.parse(JSON.stringify(t))}catch(t){i={}}var n=d.default.build(b,{config:JSON.stringify(i,null,2)}).node.innerHTML;if(o.userAgent.mobile)document.write(n);else{var e=window.open();null==e||e.document.write(n)}},i.prototype.cD=function(){return o.userAgent.tv||o.userAgent.safari},i.prototype.lD=function(t){var i="";return Object.keys(t).forEach((function(n){var e=t[n];i+="<div>"+y+n+g+e+"</div>"})),i},i.prototype.vD=function(t){return'<div class="vp-opss-title">'+t+"</div>"},i.prototype.XC=function(){var t={OS:o.userAgent.os,Mobile:o.userAgent.mobile,"User Agent":o.userAgent.ua};if(o.userAgent.mobile){t["Can Play Inline"]=f.default.canPlayInline,t["Autoplay Supported"]=f.default.autoplaySupported,f.default.autoplaySupported&&(t["Has Native Autoplay Support"]=f.default.hasNativeAutoplaySupport);var i=f.default.network;t["Network Info Available"]=i.available,t["Network Connection Type (SAPI)"]=i.connectionType,t["Network Connection Type (User Agent)"]=o.capabilities.getConnectionType()||"n/a",t["Is Mobile Network"]="boolean"==typeof i.mobile?i.mobile:"n/a"}this.eD(w+"platform",this.lD(t))},i.prototype.tD=function(){var t=this.vt.playlist.getCurrentItem(),i="",n="none",e=this.aD?this.aD.currentSrc:"";t&&(i=t.id,n=t.videoSession),this.fD(w+"uuid","UUID",i),this.fD(".vp-sessionId","SessionId",n),this.cD()&&this.eD(w+"url","Current Source URL : "+e)},i.prototype.iD=function(){var t,i=this.vt.playlist.getCurrentItem(),n=this.GC,e=n.deliveryProtocol;for(var r in i&&(e+=" / "+i.getType()),this.eD(w+"graphs",""),this.HC)this.HC[r].render(this.view);var s={"Total Quality Levels":n.qualityLevels,"Encoding Method":(null===(t=null==i?void 0:i.streams)||void 0===t?void 0:t.length)>0?i.streams[0].rcMode:"na","Current Bitrate":n.currentStreamBitrate+" kbps",Protocol:e,Codec:n.vcodec+" , "+n.acodec,CDN:i?i.getCDN():"","Recovery count":i?i.failoverCount:0,"Buffer Length":n.bufferLength+" secs","Frame Rate":n.frameRate,"Download Speed":n.currentKbps+" kbps","Dropped Frames":n.droppedFrames,"Media Size":n.mediaWidth+" x "+n.mediaHeight,"Buffering Count":0,"Total buffering time":"",Protected:n.drm?"Yes":"No","Sync State":this.KC};(null==i?void 0:i.rendererType)===c.RendererType.HTML5_HLS&&(s["Buffering Count"]=n.bufferingCount,s["Total buffering time"]=n.totalBufferingTime+" ms");var o=this.vt.playbackState.rendererType||"(no renderer yet)";o=o===c.RendererType.HTML5_HLS?o+" "+this.vt.jshlsVersion:o,this.eD(w+"detail",this.lD(s)),this.fD(w+"renderertype","Renderer Type",o)},i.prototype.hD=function(){var t=this.uD(w+"tv");if(t){var i='<div class="vp-opss-url"></div>'+this.vD("HTML5 Video States"),n='<span class="vp-opss-',e='"></span>',r={"Playback State":n+"playback"+e,"Player State":n+"state"+e,"Network State":n+"network"+e,"Ready State":n+"ready"+e};i+=this.lD(r),t.innerHTML=i,this.dD()}},i.prototype.dD=function(){this.sD.start(),o.userAgent.samsung||(this.rD.start(),this.oD.start())},i.prototype.nD=function(){this.sD.stop(),this.rD.stop(),this.oD.stop()},i}(v.default);i.default=M},43:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(23535),r=function(){function t(t){this.QN=new e.default(document.createElement("canvas")),this.bD=this.QN.node.getContext("2d"),this.QN.setSize("80","80").add("vp-360-pie"),t.appendChild(this.QN.node),this.mD=1,this.BC()}return t.prototype.addClickListener=function(t){this.yD=function(i){i.preventDefault(),i.stopPropagation(),t&&t()},this.gD=function(t){t.preventDefault(),t.stopPropagation()},this.QN.addEventListener("click",this.yD,!1).addEventListener("mousedown",this.gD,!1).addEventListener("mouseup",this.gD,!1)},t.prototype.update=function(t){var i=t%360;i<0&&(i=360+i),i*=-1,this.mD=i/90+Math.PI/4-3.79,this.BC()},t.prototype.destroy=function(){this.QN.removeEventListener("click",this.yD,!1).removeEventListener("mousedown",this.gD,!1).removeEventListener("mouseup",this.gD,!1).removeFromParent().destroy()},t.prototype.BC=function(){var t=this.bD;if(t){t.clearRect(0,0,80,80),t.beginPath(),t.arc(40,40,28,0,2*Math.PI),t.shadowColor="rgba(18, 23, 23, 0.5)",t.shadowBlur=10,t.lineWidth=4,t.strokeStyle="#fff",t.stroke(),t.beginPath(),t.arc(40,3,2,0,2*Math.PI),t.fillStyle="#fff",t.fill();var i=-.5*Math.PI*this.mD;t.beginPath(),t.arc(40,40,28,Math.PI/4+i,-Math.PI/4+i,!0),t.lineTo(40,40),t.fillStyle="rgba(255, 255, 255, 0.6)",t.fill()}},t}();i.default=r},57884:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__assign||function(){return s=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},s.apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.PlaybackRateEvents=void 0;var o,u=n(44422),a=n(30954),c=n(23535),h=n(83363),f=n(48829);!function(t){t.SET_PLAYBACK_RATE="pbRateSet"}(o=i.PlaybackRateEvents||(i.PlaybackRateEvents={}));var l=function(t){function i(i){var n=t.call(this,"playback-rate")||this;return n.vt=i,n.wD={},n._D={},a.PLAYBACK_RATES.forEach((function(t){n.wD[t]={rate:t,className:"vp-pr-"+t.toString().replace(".","_")}})),n}return r(i,t),i.prototype.create=function(){return this._node=c.default.build(h,{}),this.ED=this.vt.playbackRate,this.OD(),this.activateItem(this.vt.playbackRate),this._node.node},i.prototype.activateItem=function(t){var i=this.wD,n=this._node.select("."+i[this.ED].className),e=this._node.select("."+i[t].className);n.remove("vp-active"),e.add("vp-active"),this.ED=t},i.prototype.openContainer=function(t){t?this._node.show():this._node.hide()},i.prototype.isOpen=function(){return!this._node.contains("vp-hide")},i.prototype.onPlayerResize=function(t){t&&t.width&&t.height&&(this._node.setStyleSize(this._node.node.style.width,t.height-75),t.height<360?this._node.setStyleAttr("overflow","scroll"):this._node.setStyleAttr("overflow",""))},i.prototype.destroy=function(){var t=this;a.PLAYBACK_RATES.forEach((function(i){t._D[i].destroy(),delete t._D[i],delete t.wD[i]})),this._node.destroy()},i.prototype.OD=function(){var t=this;a.PLAYBACK_RATES.reverse().forEach((function(i,n){var e=c.default.build(f,s(s({},t.wD[i]),{tabIndex:n+1}));t._node.appendChild(e.node),t._D[i]=e.onTap((function(n){n.stopPropagation(),t.publish(o.SET_PLAYBACK_RATE,i)}))}))},i}(u.default);i.default=l},29554:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n||(n=Promise))((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,e&&(r=2&u[0]?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],e=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.PlaylistViewEvent=void 0;var u,a=n(44422),c=n(39451),h=n(30954),f=n(30954),l=n(21962),v=n(41279),d=n(1954),p=n(66342),b=n(40514),m=n(51462);function y(t){return p.default.classList(t)}!function(t){t.UI_INTERACT="playlistViewUiInteract",t.SCROLLED_TO_END="playlistViewScrolledToEnd"}(u=i.PlaylistViewEvent||(i.PlaylistViewEvent={}));var g=function(t){function i(i,n,e,r){var s=t.call(this,"PlaylistView")||this;return s.SD=[],s.zb=i,s.__=n,s.vt=e,s.lw=r,s.zb.addEventListener(l.PLAYER_DIMENSION_CHANGE,s.U_,s),s.zb.addEventListener(l.FULLSCREEN_CHANGE,s.Tb,s),s.T_=s.__.getPlaylistController(),s.yS=s.TD.bind(s),s}return r(i,t),i.prototype.create=function(t){return s(this,void 0,void 0,(function(){var i,n;return o(this,(function(e){switch(e.label){case 0:return-1===[h.PLAYLIST_POS.BOTTOM,h.PLAYLIST_POS.RIGHT,h.PLAYLIST_POS.HIDDEN].indexOf(t)?[2,null]:(i="vp-playlist-mode-"+t,this.MD=0,this.jD=[],this.ND=this.kD(t),this.ff=t,n=p.default.render(m,{strings:d.default,modeClass:i,isHiddenMode:t===h.PLAYLIST_POS.HIDDEN||!1,theme:this.ND,streamModeClass:this.RD.inStream?"vp-playlist-in-stream":""}),this.vt.uiState&&this.vt.uiState.isCSSLoaded&&y(n).remove("vp-vis-hidden"),this.LD(n),[4,this.CD()]);case 1:return e.sent(),this.Tm(!0),[2,n]}}))}))},i.prototype.syncView=function(){return s(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.CD()];case 1:return t.sent(),[2]}}))}))},i.prototype.upNextBtnTapHandler=function(){var t=this.DD();if(!t.isEndOfPlaylist()){var i=t.position+1,n=t.getMediaItemAt(i).id;this.publish(u.UI_INTERACT,{srcElement:"ctrl-next-click"}),this.publish(u.UI_INTERACT,{srcElement:"ui_pl_nxt_clk"}),this.zb.publish(l.RELATED_ITEM_CLICK,n,i,!1);var e=this.ff===h.PLAYLIST_POS.RIGHT;this.PD(this.ff,e)}},i.prototype.syncPgBtns=function(){this.xD.scrollWidth<=this.xD.scrollLeft+this.xD.offsetWidth?this.UD=!0:this.UD=!1,this.xD.scrollLeft<=0?this.FD=!0:this.FD=!1,this.FD?y(this.BD).add("disabled"):y(this.BD).remove("disabled"),this.UD?y(this.zD).add("disabled"):y(this.zD).remove("disabled")},i.prototype.destroy=function(){var t=this;(this.VD(),this.jD&&this.jD.forEach((function(t){t.destroy()})),this.jD=[],this.GD(),this.Tg)&&this.HD().forEach((function(i){i.removeEventListener("tap",t.yS)}))},i.prototype.setPlaylistViewSize=function(){var t=Math.floor(this.xD.offsetWidth/134);this.UD=t>=this.DD().getItems().length,this.syncPgBtns()},i.prototype.onMediaItemCurrent=function(){var t=this.__.getFullscreen()?h.PLAYLIST_POS.HIDDEN:this.ff;this.PD(t,!0)},i.prototype.TD=function(t){y(this._node).remove("open");var i=this.HD().indexOf(t.target);this.zb.publish(l.RELATED_ITEM_CLICK,t.target.getAttribute("data-id"),i,!1),this.publish(u.UI_INTERACT,{srcElement:"ui_pl_thmb_clk"}),this.onMediaItemCurrent()},i.prototype.CD=function(){return s(this,void 0,void 0,(function(){var t;return o(this,(function(i){switch(i.label){case 0:return(t=this.DD().getItems())&&0!==t.length?(this.jD=[],[4,this.YD(t)]):[2];case 1:return i.sent(),this.xD.scrollLeft=this.MD,this.syncPgBtns(),[2]}}))}))},i.prototype.Tm=function(t){var i=this;if(this.qD=new b.default(this.BD,(function(){i.WD(!1)})),this.QD=new b.default(this.zD,(function(){i.WD(!0)})),this.ff===h.PLAYLIST_POS.RIGHT&&!c.userAgent.mobile){this.Tg.addEventListener("scroll",(function(){t&&i.Tg.scrollTop+i.Tg.offsetHeight>=i.Tg.scrollHeight&&i.publish(u.SCROLLED_TO_END)}));var n=function(t){var n=i.Tg.scrollTop,e=i.Tg.scrollHeight,r=i.Tg.offsetHeight,s="DOMMouseScroll"===t.type?-40*t.detail:t.wheelDelta,o=s>0,u=function(){return t.stopPropagation(),t.preventDefault(),t.returnValue=!1,!1};return!o&&-s>e-r-n?(i.Tg.scrollTop=e,u()):!(o&&s>n)||(i.Tg.scrollTop=0,u())};this.xD.addEventListener("mousewheel",n),this.xD.addEventListener("DOMMouseScroll",n)}},i.prototype.YD=function(t){return s(this,void 0,void 0,(function(){var i,n,e,r,s=this;return o(this,(function(o){switch(o.label){case 0:return[4,this.lw.getPlugin(v.PluginType.PLAYLIST,this.RD.mimetype)];case 1:return(i=o.sent())?(n=t&&t.filter((function(t){var i='.vp-playlist-item[data-id="'+t.id+'"]';return!s.Tg.querySelector(i)}))||[],e=i.create(this.ff,n,this.xD,d.default),r=document.createDocumentFragment(),e.forEach((function(t,i){if(s.jD.push(new b.default(t,i)),t.addEventListener("tap",s.yS),s.ff!==f.PLAYLIST_POS.HIDDEN){t.tabIndex=0;var n=p.default.bindKeyboardOutlineEvents(t);s.SD.push(n)}else t.tabIndex=-1;r.appendChild(t)})),this.Tg.appendChild(r),this.setPlaylistViewSize(),y(this.ZD).remove("vp-pl-loading"),this.__.getFullscreen()||this.PD(this.ff,!1),[2]):[2]}}))}))},i.prototype.WD=function(t){var i=this.__.getFullscreen();if((this.ff!==h.PLAYLIST_POS.RIGHT||i)&&!(this.UD&&t||this.FD&&!t)){t&&this.xD.scrollWidth-2*this.xD.offsetWidth<=this.xD.scrollLeft&&this.publish(u.SCROLLED_TO_END),this.zb.publish(l.UP_NEXT_PG_CLICK);var n="next-";n=t?n+"right":n+"left",this.publish(u.UI_INTERACT,{srcElement:n});var e=148*Math.floor(this.xD.offsetWidth/148);t?this.xD.scrollLeft=Math.min(this.xD.scrollLeft+e,this.xD.scrollWidth-this.xD.offsetWidth):t||(this.xD.scrollLeft=Math.max(this.xD.scrollLeft-e,0)),this.MD=this.xD.scrollLeft,this.syncPgBtns()}},i.prototype.PD=function(t,i){var n=this.DD().getCurrentItem(),e=n&&n.id,r=this.Tg.querySelector(".vp-currently-playing"),s='.vp-playlist-item[data-id="'+e+'"]',o=this.Tg.querySelector(s);if(r&&(y(r).remove("vp-currently-playing"),t!==h.PLAYLIST_POS.RIGHT)){var u=r.querySelector(".vp-pl-title"),a=r.querySelector(".vp-pl-dur"),c=r.querySelector(".vp-playlist-item-gradient"),f=r.querySelector(".vp-now-playing");y(u).remove("vp-show"),y(a).remove("vp-hide"),y(c).remove("vp-playlist-item-gradient-duration"),y(f).remove("vp-show")}if(o){var l=o.offsetLeft,v=o.offsetWidth,d='[data-label-for-id="'+e+'"]',p=this.Tg.querySelector(d);if(y(o).add("vp-currently-playing"),t!==h.PLAYLIST_POS.RIGHT){var b=o.querySelector(".vp-pl-dur"),m=o.querySelector(".vp-playlist-item-gradient"),g=o.querySelector(".vp-now-playing");y(b).add("vp-hide"),y(m).add("vp-playlist-item-gradient-duration"),y(g).add("vp-show");var w=v+14;l=t===h.PLAYLIST_POS.HIDDEN?l+w:l,this.Tg.parentElement.scrollLeft=l}else if(t===h.PLAYLIST_POS.RIGHT&&i){var _=o.offsetTop;this.Tg.scrollTop=p?p.offsetTop:_-5}this.syncPgBtns()}},i.prototype.kD=function(t){var i,n="dark",e=this.RD&&this.RD.theme||n;switch(t){case h.PLAYLIST_POS.BOTTOM:case h.PLAYLIST_POS.RIGHT:i=e;break;case h.PLAYLIST_POS.HIDDEN:default:i=n}return i},i.prototype.LD=function(t){this._node=t,this.Tg=t.querySelector(".vp-playlist-strip-list"),this.xD=t.querySelector(".vp-playlist-strip"),this.ZD=t,this.BD=t.querySelector(".vp-playlist-pg-btn-prev"),this.zD=t.querySelector(".vp-playlist-pg-btn-next")},i.prototype.Tb=function(){var t,i,n,e,r,s,o=this,u=this.__.getFullscreen(),a=this.__.getContentNode();if(this.U_(),this.T_.isPlaylistShown()&&this.setPlaylistViewSize(),this.ff===h.PLAYLIST_POS.BOTTOM||this.ff===h.PLAYLIST_POS.RIGHT){if(r=a.querySelector(".vp-upnext-playlist"),t=a.querySelector(".vp-playlist-mode-hidden"),i=a.querySelector(".vp-playlist-mode-"+this.ff),n=t.querySelector(".vp-playlist-strip-list"),e=i.querySelector(".vp-playlist-strip-list"),u)n.innerHTML=e.innerHTML,e.innerHTML="",y(r).remove("hide"),y(t).remove("vp-pl-loading"),this.LD(t),this.T_&&this.T_.attachUpNextMouseEvents(),setTimeout((function(){o.PD(h.PLAYLIST_POS.HIDDEN,!0)}),500);else{e.innerHTML=n.innerHTML,n.innerHTML="",s=this.ff===h.PLAYLIST_POS.RIGHT,y(r).add("hide"),this.LD(i),this.T_&&this.T_.detachUpNextMouseEvents();var c=this.Tg.querySelector(".vp-currently-playing");c&&y(c).remove("vp-hide"),setTimeout((function(){o.PD(o.ff,s)}),500)}this.VD(),this.jD&&this.jD.forEach((function(t){t.destroy()})),this.jD=[],this.GD(),this.Tm(!1),this.HD().forEach((function(t){if(o.jD.push(new b.default(t)),t.addEventListener("tap",o.yS),u)t.tabIndex=-1;else{t.tabIndex=0;var i=p.default.bindKeyboardOutlineEvents(t);o.SD.push(i)}}))}},i.prototype.U_=function(){var t=this;this.T_.isPlaylistShown()&&(this.MD=0,setTimeout((function(){t.setPlaylistViewSize()}),1e3))},i.prototype.VD=function(){this.QD&&this.zD&&(this.QD.destroy(),this.zD.removeEventListener("tap",this.WD)),this.qD&&this.BD&&(this.qD.destroy(),this.BD.removeEventListener("tap",this.WD))},i.prototype.GD=function(){this.SD.forEach((function(t){t()})),this.SD=[]},i.prototype.HD=function(){return Array.prototype.slice.call(this.Tg.querySelectorAll(".vp-playlist-item"),0)},i.prototype.DD=function(){return this.vt.playlist},Object.defineProperty(i.prototype,"RD",{get:function(){return this.vt.playlistUIConfig},enumerable:!1,configurable:!0}),i}(a.default);i.default=g},96609:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.AdsOverlay=i.StartScreen=i.StartScreenEvent=i.ErrorScreen=i.LoadingScreen=void 0;var s=n(44422),o=n(39451),u=n(1954),a=n(23535),c=n(57372),h=n(9426),f=n(95445),l=n(31107);var v=function(t){function i(i,n){var e=t.call(this,"ScreenBase")||this;return e.view=a.default.build(i,n),e}return r(i,t),i.prototype.destroy=function(){this.view.destroy(),t.prototype.destroy.call(this)},i}(s.default);i.default=v;var d="vp-show-spinner",p=function(t){function i(){return t.call(this,c,{})||this}return r(i,t),i.prototype.show=function(){var t;(t=this.view)&&t.node&&t.node.offsetHeight,this.view.add(d)},i.prototype.hide=function(){this.view.remove(d)},i}(v);i.LoadingScreen=p;var b,m=function(t){function i(i,n,e,r){var s=t.call(this,h,{title:i.title,message:i.message,rep:i.codeString,guid:{guid:n},sessionId:{videoSession:e},imageSrc:r,showBgImage:!!r})||this;return s.view.select(".vp-error-message").innerHTML=i.message,s.view.remove("vp-vis-hidden"),s}return r(i,t),i}(v);i.ErrorScreen=m,function(t){t.UI_INTERACT="ssUiInteract",t.START_SCREEN_CLICK="ssScreenClick"}(b=i.StartScreenEvent||(i.StartScreenEvent={}));var y=function(t){function i(i,n,e){var r=this,s={showTitle:n.showTitle&&i.title,showButton:n.showButton,showDescription:n.showDescription&&i.description,showThumbnail:n.showThumbnail,showProvider:!1},a=i.posterUrl||i.thumbnail;return(r=t.call(this,f,{item:i,config:s,width:e.width,height:e.height,imageSrc:a,strings:u.default,show:null==e?void 0:e.isCSSLoaded})||this).view.onTap((function(){o.userAgent.htc_one?window.setTimeout((function(){return r.yD()}),500):r.yD()})),r}return r(i,t),i.prototype.updateTitle=function(t){var i=this.view.select(".vp-start-screen-title");i&&(i.node.textContent=t)},i.prototype.yD=function(){this.publish(b.START_SCREEN_CLICK),this.publish(b.UI_INTERACT,{srcElement:"startScreen"})},i}(v);i.StartScreen=y;var g=function(t){function i(){return t.call(this,l,{})||this}return r(i,t),i.prototype.destroy=function(){this.view.removeFromParent(),t.prototype.destroy.call(this)},i}(v);i.AdsOverlay=g},30297:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.itemClasses=i.StreamQualities=i.activationClasses=i.SettingsEvent=i.SUPPORTED_RENDERER_TYPES=void 0;var s,o,u,a,c=n(44422),h=n(30954),f=n(64685),l=n(1954),v=n(82394),d=n(66342),p=n(40514),b=n(97338);i.SUPPORTED_RENDERER_TYPES=[f.RendererType.HTML5_HLS,f.RendererType.HTML5_HLS_360],function(t){t.SET_QUALITY="qualitySet",t.UI_INTERACT="uiInteract"}(s=i.SettingsEvent||(i.SettingsEvent={})),function(t){t.OPEN="vp-open",t.ACTIVE="vp-active",t.DISABLE="vp-disable",t.ON="vp-on"}(o=i.activationClasses||(i.activationClasses={})),function(t){t.low="low",t.medium="medium",t.high="high",t.auto="auto"}(u=i.StreamQualities||(i.StreamQualities={})),function(t){t.hdIcon="vp-settings-hdicon",t.low="vp-quality-low",t.medium="vp-quality-medium",t.high="vp-quality-high",t.auto="vp-quality-auto"}(a=i.itemClasses||(i.itemClasses={}));var m=function(t){function n(i){var n=t.call(this,"settings")||this;return n.vt=i,n.$D={},n}return r(n,t),n.prototype.create=function(){return this._node=d.default.render(b,{strings:l.default,itemClasses:a}),this.XD={low:this._node.querySelector("."+a.low),medium:this._node.querySelector("."+a.medium),high:this._node.querySelector("."+a.high),auto:this._node.querySelector("."+a.auto)},this.KD=u.auto,this._node},n.prototype.onPlaybackStarted=function(t){this.shouldEnableSettings()&&(this.JD(t),this.activateItem(u.auto))},n.prototype.onPlayerResize=function(t,i){t.width<=h.HideBreakpointDimensions.WIDTH&&t.height<=h.HideBreakpointDimensions.HEIGHT&&this.isOpen()&&this.toggleSettings(i)},n.prototype.activateItem=function(t){d.default.classList(this.XD[this.KD]).remove(o.ACTIVE),d.default.classList(this.XD[u[t]]).add(o.ACTIVE),this.KD=u[t]},n.prototype.toggleSettings=function(t){this.shouldEnableSettings()&&(this.isOpen()?(d.default.classList(this._node).remove(o.OPEN),d.default.classList(t).remove(o.OPEN)):(d.default.classList(this._node).add(o.OPEN),d.default.classList(t).add(o.OPEN)))},n.prototype.isOpen=function(){return d.default.classList(this._node).contains(o.OPEN)&&!d.default.classList(this._node).contains(o.DISABLE)},n.prototype.destroy=function(){var t=this;Object.keys(this.$D).forEach((function(i){t.$D[i].destroy()}))},n.prototype.shouldEnableSettings=function(){var t=this.vt.playbackState.rendererType,n=this.vt.playlist.getCurrentItem();return i.SUPPORTED_RENDERER_TYPES.indexOf(t)>-1&&n&&(n.streams.length>1||n.streamProfiles.length>1||this.vt.bitrates.length>1)},n.prototype.tP=function(t,i){var n=this,e=this.XD[i];this.$D[i]=new p.default(e,(function(e){e.stopPropagation();var r="sr-"+i;n.publish(s.UI_INTERACT,{srcElement:r}),n.publish(s.SET_QUALITY,{preference:i,stream:t}),n.activateItem(i)}))},n.prototype.JD=function(t){var i=this;this.iP(t),Object.keys(this.XD).filter((function(t){return!d.default.classList(i.XD[t]).contains(o.DISABLE)})).forEach((function(t){i.tP(i.nP[t],t)}))},n.prototype.iP=function(t){var i=this,n=t.streams,e=t.streamProfiles,r=this.vt.capabilities[t.rendererType];if(n.length>1)this.nP=v.default.mapStreamsToQualities(n);else if(e.length>1)this.nP=v.default.mapStreamsToQualities(e);else if(this.vt.bitrates.length>1){var s=[];this.vt.bitrates.forEach((function(t,n){s.push({bitrate:t,height:i.vt.heights[n]})})),this.nP=v.default.mapStreamsToQualities(s)}this.nP=this.nP||{},this.nP.auto=v.default.findStreamByProperty(n,"bitrate",this.vt.desiredBitrate,r),Object.keys(this.XD).forEach((function(t){var n=i.nP[t];if(n){d.default.classList(i.XD[t]).remove(o.DISABLE);var e=i.XD[t].querySelector("."+a.hdIcon);e&&n.height&&n.height>=720&&d.default.classList(e).add(o.ON)}else d.default.classList(i.XD[t]).add(o.DISABLE)}))},n}(c.default);i.default=m},40514:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(40531),r=["touchstart","touchmove","touchend","touchcancel","mousedown","mouseup"],s=function(){function t(t,i,n){void 0===n&&(n=!1);var s=this;t=e.isString(t)?document.getElementById(t):t,this.element=t,this.moved=!1,this.mouseDown=!1,this.eP=!1,e.isFunction(i)?(this.onTap=i,this.shouldPropagate=n):(this.onTap=function(){},this.shouldPropagate=!!e.isBoolean(i)&&i),null==t||t.addEventListener("tap",this.onTap,!1),r.forEach((function(i){null==t||t.addEventListener(i,s,!1)}))}return t.prototype.destroy=function(){var t=this,i=this.element;i&&(i.removeEventListener("tap",this.onTap,!1),r.forEach((function(n){i.removeEventListener(n,t,!1)})),this.element=null)},t.prototype.isTouchDevice=function(){return this.eP},t.prototype.handleEvent=function(t){switch(t.type){case"mousedown":if(this.isTouchDevice())return;case"touchstart":this.mI(t);break;case"touchmove":this.rP(t);break;case"mouseup":if(this.isTouchDevice())return;case"touchend":this.yI(t);break;case"touchcancel":this.sP()}},t.prototype.mI=function(t){var i,n="touchstart"===t.type;n&&(this.eP=!0,i=t.touches&&t.touches[0]||{}),this.mouseDown=!0,this.startX=n?i.clientX:t.clientX,this.startY=n?i.clientY:t.clientY,this.lastPageX=n?i.pageX:t.pageX,this.lastPageY=n?i.pageY:t.pageY,this.moved=!1},t.prototype.rP=function(t){var i=t.touches[0];this.lastPageX=i.pageX,this.lastPageY=i.pageY,(Math.abs(i.clientX-this.startX)>10||Math.abs(i.clientY-this.startY)>10)&&(this.moved=!0)},t.prototype.yI=function(t){var i,n;!this.moved&&this.mouseDown&&(this.mouseDown=!1,void 0!==document.CustomEvent?n=new document.CustomEvent("tap",{bubbles:!0,cancelable:!0}):(n=document.createEvent("Event")).initEvent("tap",!0,!0),n.pageX=t.pageX||this.lastPageX,n.pageY=t.pageY||this.lastPageY,n.eventSource=t.srcElement,n.eventTarget=t.target,t.handled&&!this.shouldPropagate||null===(i=this.element)||void 0===i||i.dispatchEvent(n),t.handled=!0)},t.prototype.sP=function(){this.moved=!1},t}();i.default=s},31107:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-ads-overlay'></div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},26266:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div tabindex='0' class='vp-content vp-hide-controls' role='application' aria-label='Yahoo Video Player'>"),e.b("\n"+n),e.b("    <div class='vp-main' tabindex='0' style='height:100%'></div>"),e.b("\n"+n),e.b("    <div class='vp-docked-meta'>"),e.b("\n"+n),e.b("        <div class='vp-docked-title'></div>"),e.b("\n"+n),e.b("        <div class='vp-docked-provider'></div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("</div>"),e.fl()},partials:{},subs:{}})},29319:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-ccs-listitem' data-item-type='"),e.b(e.v(e.f("itemType",t,i,0))),e.b("' >"),e.b("\n"+n),e.b("    <div class='vp-ccs-checkmark'></div>"),e.b("\n"+n),e.b("    <div class='vp-ccs-item' tabindex='0'>"),e.b(e.v(e.f("itemContent",t,i,0))),e.b("</div>"),e.b("\n"+n),e.s(e.f("valueRequired",t,i,1),t,i,0,188,259,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("    <div class='vp-ccs-value' tabindex='0'>"),e.b(e.v(e.f("valueContent",t,i,0))),e.b("</div>"),e.b("\n"+n)})),t.pop()),e.s(e.f("caratRequired",t,i,1),t,i,0,300,353,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("    <div class='vp-ccs-caret-icon right'></div>"),e.b("\n"+n)})),t.pop()),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},3217:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-ccs-container vp-vis-hidden' tabindex='0'>"),e.b("\n"+n),e.b("    <div class='vp-ccs-main'>"),e.b("\n"+n),e.b("        <div class='vp-ccs-listitem' data-item-type='header'>"),e.b("\n"+n),e.b("            <div class='vp-ccs-item' tabindex='0'>"),e.b(e.v(e.d("strings.MORE_CAPTION_SETTINGS",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-caret-icon right'></div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-divider'></div>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("        <div class='vp-ccs-listitem' data-item-type='Caption Languages'>"),e.b("\n"+n),e.b("            <div class='vp-ccs-item' tabindex='0'>"),e.b(e.v(e.d("strings.CAPTION_LANGUAGES",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-value' tabindex='0'>English</div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-caret-icon right'></div>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("        <div class='vp-ccs-listitem' data-item-type='Closed Captions'>"),e.b("\n"+n),e.b("            <div class='vp-ccs-item' tabindex='0'>"),e.b(e.v(e.d("strings.CC",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-value' tabindex='0'>"),e.b(e.v(e.d("strings.ON",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-toggle vp-on' tabindex='0'>"),e.b("\n"+n),e.b("                <div class='vp-ccs-toggle-handle' tabindex='0'></div>"),e.b("\n"+n),e.b("            </div>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-ccs-extra'>"),e.b("\n"+n),e.b("        <div class='vp-ccs-listitem' data-item-type='header'>"),e.b("\n"+n),e.b("            <div class='vp-ccs-caret-icon left'></div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-item' tabindex='0'>"),e.b(e.v(e.d("strings.MORE_CAPTION_SETTINGS",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-value' tabindex='0'></div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-divider'></div>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("        <div class='vp-ccs-listoptions'></div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-ccs-options'>"),e.b("\n"+n),e.b("        <div class='vp-ccs-listitem' data-item-type='header'>"),e.b("\n"+n),e.b("            <div class='vp-ccs-caret-icon left'></div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-item' tabindex='0'></div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-value' tabindex='0'></div>"),e.b("\n"+n),e.b("            <div class='vp-ccs-divider'></div>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("        <div class='vp-ccs-listoptions'></div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},54915:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div>"),e.b("\n"+n),e.b("    <div class='vp-top-bar vp-vis-hidden'>"),e.b("\n"+n),e.b("        <div class='vp-content-type hide' tabindex='0'></div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-playing-item-title-header vp-vis-hidden'></div>"),e.b("\n"+n),e.b("    <div class='vp-playing-item-title vp-vis-hidden'></div>"),e.b("\n"+n),e.b("    <div class='vp-logos vp-vis-hidden vp-hide' aria-hidden='true'></div>"),e.b("\n"+n),e.b("    <div class='vp-large-play-btn vp-hide' role='button' aria-label=\""),e.b(e.v(e.d("strings.PLAY_VIDEO",t,i,0))),e.b('"></div>'),e.b("\n"+n),e.b("    <div class='vp-bottom-bar vp-vis-hidden'>"),e.b("\n"+n),e.s(e.f("isMobile",t,i,1),t,i,1,0,0,"")||(e.b("            <div class='vp-slider' role='slider' tabindex='0'>"),e.b("\n"+n),e.b("                <div class='vp-slider-extension' aria-hidden='true'></div>"),e.b("\n"+n),e.b("                <div class='vp-handle'></div>"),e.b("\n"+n),e.b("                <div class='vp-buffer-bar'></div>"),e.b("\n"+n),e.b("                <div class='vp-playback-bar'></div>"),e.b("\n"+n),e.b("                <div class='vp-visual-seek'>"),e.b("\n"+n),e.b("                    <div class='vp-vs-thumbnail'></div>"),e.b("\n"+n),e.b("                    <div class='vp-vs-time'></div>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n),e.b("            </div>"),e.b("\n"+n)),e.b("        <div class='vp-bottom-container'>"),e.b("\n"+n),e.s(e.f("isMobile",t,i,1),t,i,0,1060,1681,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("                <div class='vp-slider' role='slider' tabindex='0'>"),e.b("\n"+n),e.b("                    <div class='vp-slider-extension' aria-hidden='true'></div>"),e.b("\n"+n),e.b("                    <div class='vp-handle'>"),e.b("\n"+n),e.b("                        <div class='vp-handle-touch-target'></div>"),e.b("\n"+n),e.b("                    </div>"),e.b("\n"+n),e.b("                    <div class='vp-buffer-bar'></div>"),e.b("\n"+n),e.b("                    <div class='vp-playback-bar'></div>"),e.b("\n"+n),e.b("                    <div class='vp-visual-seek'>"),e.b("\n"+n),e.b("                        <div class='vp-vs-thumbnail'></div>"),e.b("\n"+n),e.b("                        <div class='vp-vs-time'></div>"),e.b("\n"+n),e.b("                    </div>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n)})),t.pop()),e.b("            <div class='vp-play-controls'>"),e.b("\n"+n),e.b("                <div class='vp-play-btn' role='button' tabindex='0'></div>"),e.b("\n"+n),e.b("                <div class='vp-upnext-container hide'>"),e.b("\n"+n),e.b("                    <div class='vp-upnext-btn' role='button' tabindex='0'>"),e.b("\n"+n),e.b("                    </div>"),e.b("\n"+n),e.b("                    <div class='vp-upnext-playlist' role='dialog'>"),e.b("\n"+n),e.b("                        <div class='vp-hover-elem'></div>"),e.b("\n"+n),e.b("                    </div>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n),e.b("                <div class='vp-backward-btn' role='button'>"),e.b("\n"+n),e.b("                    <svg width='23' height='23' xmlns='http://www.w3.org/2000/svg'>"),e.b("\n"+n),e.b("                        <g>"),e.b("\n"+n),e.b("                            <g transform='matrix(-1,0,0,1,23,0) ' fill-rule='evenodd' fill='none'>"),e.b("\n"+n),e.b("                                <path d='m3.5,13.5c0,4.4 3.6,8 8,8s8,-3.6 8,-8l-2,0c0,3.3 -2.7,6 -6,6s-6,-2.7 -6,-6s2.7,-6 6,-6l0,4l5,-5l-5,-5l0,4c-4.4,0 -8,3.6 -8,8z'"),e.b("\n"+n),e.b("                                    fill-rule='nonzero' fill='#FFF'/>"),e.b("\n"+n),e.b("                            </g>"),e.b("\n"+n),e.b("                            <text xml:space='preserve' text-anchor='start' font-family='Helvetica, Arial, sans-serif' font-size='6'"),e.b("\n"+n),e.b("                                class='vp-backward-time' y='16.3' x='8' stroke-width='0' stroke='#000' fill='#ffffff'></text>"),e.b("\n"+n),e.b("                        </g>"),e.b("\n"+n),e.b("                    </svg>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n),e.b("                <div class='vp-forward-btn' role='button'>"),e.b("\n"+n),e.b("                    <svg width='23' height='23' xmlns='http://www.w3.org/2000/svg'>"),e.b("\n"+n),e.b("                        <g>"),e.b("\n"+n),e.b("                            <g fill-rule='evenodd' fill='none'>"),e.b("\n"+n),e.b("                                <path d='m3.5,13.5c0,4.4 3.6,8 8,8s8,-3.6 8,-8l-2,0c0,3.3 -2.7,6 -6,6s-6,-2.7 -6,-6s2.7,-6 6,-6l0,4l5,-5l-5,-5l0,4c-4.4,0 -8,3.6 -8,8z'"),e.b("\n"+n),e.b("                                    fill-rule='nonzero' fill='#FFF'/>"),e.b("\n"+n),e.b("                            </g>"),e.b("\n"+n),e.b("                            <text stroke='#ffffff' xml:space='preserve' text-anchor='start' font-family='Helvetica, Arial, sans-serif' font-size='6'"),e.b("\n"+n),e.b("                                class='vp-forward-time' y='16.3' x='8.15' stroke-width='0' fill='#ffffff'></text>"),e.b("\n"+n),e.b("                        </g>"),e.b("\n"+n),e.b("                    </svg>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n),e.b("                <div class='vp-time-container' tabindex='-1' aria-hidden='true'>"),e.b("\n"+n),e.b("                    <div class='vp-current-time "),e.s(e.f("isMobile",t,i,1),t,i,0,4014,4026,"{{ }}")&&(e.rs(t,i,(function(t,i,n){n.b(" vp-pb-time ")})),t.pop()),e.b("'></div>"),e.b("\n"+n),e.b("                    <div class='vp-total-time "),e.s(e.f("isMobile",t,i,1),t,i,0,4107,4119,"{{ }}")&&(e.rs(t,i,(function(t,i,n){n.b(" vp-pb-time ")})),t.pop()),e.b("'></div>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("            <div class='vp-menu-controls'>"),e.b("\n"+n),e.s(e.f("isMobile",t,i,1),t,i,1,0,0,"")||(e.b("                <div class='vp-pbrate-btn vp-button vp-hide' role='button' tabindex='0'>"),e.b("\n"+n),e.b("                    <div class='vp-pbrate-txt'>1x</div>"),e.b("\n"+n),e.b("                    <div class='vp-pbrate-pointer vp-hide'></div>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n),e.b("                <div class='vp-setting-btn vp-button' role='button' tabindex='0' aria-label='"),e.b(e.v(e.d("strings.SETTINGS",t,i,0))),e.b("'>"),e.b("\n"+n),e.b("                    <div class='vp-setting-pointer' aria-hidden='true'></div>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n)),e.s(e.f("isMobile",t,i,1),t,i,0,4762,4921,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("                    <div class='vp-multiaudio-btn vp-button vp-hidden' role='button' tabindex='0' aria-label='"),e.b(e.v(e.d("strings.MULTI_AUDIO",t,i,0))),e.b("'></div>"),e.b("\n"+n)})),t.pop()),e.b("                <div class='vp-pip-btn vp-button vp-hide' role='button' tabindex='0'></div>"),e.b("\n"+n),e.b("                <div class='vp-airplay-btn vp-button vp-hidden' role='button' tabindex='0' aria-label='"),e.b(e.v(e.d("strings.AIRPLAY",t,i,0))),e.b("'></div>"),e.b("\n"+n),e.b("                <div class='vp-cc-btn vp-button vp-hide' role='button' tabindex='0' aria-label='"),e.b(e.v(e.d("strings.CC",t,i,0))),e.b("'>"),e.b("\n"+n),e.b("                    <div class='vp-cc-pointer'></div>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n),e.b("                <div class='vp-volume-btn vp-button' role='button' tabindex='0'>"),e.b("\n"+n),e.s(e.f("isMobile",t,i,1),t,i,1,0,0,"")||(e.b("                    <div class='vp-volume-bar-container'>"),e.b("\n"+n),e.b("                        <div class='vp-multi-audio'></div>"),e.b("\n"+n),e.b("                        <div class='vp-volume-item'>"),e.b("\n"+n),e.b("                            <div class='vp-volume-icon'></div>"),e.b("\n"+n),e.b("                            <div class='vp-volume-level'>"),e.b("\n"+n),e.b("                                <div class='vp-volume-bar'>"),e.b("\n"+n),e.b("                                    <div class='vp-volume-handle'></div>"),e.b("\n"+n),e.b("                                </div>"),e.b("\n"+n),e.b("                                <div class='vp-volume-value'></div>"),e.b("\n"+n),e.b("                            </div>"),e.b("\n"+n),e.b("                        </div>"),e.b("\n"+n),e.b("                    </div>"),e.b("\n"+n)),e.b("                </div>"),e.b("\n"+n),e.b("                <div class='vp-chromecast-btn vp-button' role='button' tabindex='0' style='display:none;' aria-label='"),e.b(e.v(e.d("strings.CHROMECAST",t,i,0))),e.b("'></div>"),e.b("\n"+n),e.b("                <div class='vp-fullscreen-btn vp-button' role='button' tabindex='0'></div>"),e.b("\n"+n),e.b("            </div>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-cast-overlay vp-vis-hidden'>"),e.b("\n"+n),e.b("        <div>"),e.b("\n"+n),e.b("            <div class='cast-overlay-header'>"),e.b("\n"+n),e.b("                <div class='cast-device-info'>"),e.b("\n"+n),e.b("                    <p class='cast-device-name'>"),e.b(e.v(e.d("strings.CAST_PLAYING_RECEIVER",t,i,0))),e.b("</p>"),e.b("\n"+n),e.b("                    <small class='cast-device-type'>"),e.b(e.v(e.d("strings.CHROMECAST",t,i,0))),e.b("</small>"),e.b("\n"+n),e.b("                </div>"),e.b("\n"+n),e.b("            </div>"),e.b("\n"+n),e.b("            <div class='cast-overlay-content'></div>"),e.b("\n"+n),e.b("            <div class='cast-overlay-footer'>"),e.b("\n"+n),e.b("                <small class='cast-disconnect-btn'>"),e.b(e.v(e.d("strings.DISCONNECT",t,i,0))),e.b("</small>"),e.b("\n"+n),e.b("            </div>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    "),e.s(e.f("isMobile",t,i,1),t,i,0,7038,7082,"{{ }}")&&(e.rs(t,i,(function(t,i,n){n.b("<div class='vp-multi-audio vp-hidden'></div>")})),t.pop()),e.b("\n"+n),e.b("    <div class='vp-mute-indicator vp-vis-hidden'></div>"),e.b("\n"+n),e.b("    <div class='vp-object-overlay vp-vis-hidden'></div>"),e.b("\n"+n),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},52810:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-end-screen vp-end-replay'>"),e.b("\n"+n),e.b("    <div class='vp-end-rep-icon'></div>"),e.b("\n"+n),e.b("</div>"),e.fl()},partials:{},subs:{}})},9426:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-error-screen vp-vis-hidden'>"),e.b("\n"+n),e.b("    <img class='vp-error-screen-image "),e.s(e.f("showBgImage",t,i,1),t,i,0,98,105,"{{ }}")&&(e.rs(t,i,(function(t,i,n){n.b("vp-show")})),t.pop()),e.b("' src='"),e.b(e.v(e.f("imageSrc",t,i,0))),e.b("'>"),e.b("\n"+n),e.b("    <div class='vp-error-screen-background'></div>"),e.b("\n"+n),e.b("    <div class='vp-error-title'>"),e.b(e.v(e.f("title",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("    <div class='vp-error-desc vp-error-message'>"),e.b(e.t(e.f("message",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("    <div class='vp-error-code'>"),e.b(e.v(e.f("rep",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("</div>"),e.fl()},partials:{},subs:{}})},57372:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-loading-screen vp-vis-hidden'>"),e.b("\n"+n),e.b("    <div class='vp-loading-spinner vp-spinner-icon'></div>"),e.b("\n"+n),e.b("</div>"),e.fl()},partials:{},subs:{}})},39865:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div>"),e.b("\n"+n),e.b("        <div class='vp-audio-header'>"),e.b("\n"+n),e.b("            <span class='vp-audio-list-title'>"),e.b(e.v(e.d("Strings.AUDIO_TRACK",t,i,0))),e.b("</span>"),e.b("\n"+n),e.s(e.f("isMobile",t,i,1),t,i,0,142,233,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("            <span class='vp-audio-list-close' data-action='close'>&#x2715;</span>"),e.b("\n"+n)})),t.pop()),e.b("        </div>"),e.b("\n"+n),e.s(e.f("items",t,i,1),t,i,0,276,576,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("        <div class='vp-audio-item "),e.s(e.f("selected",t,i,1),t,i,0,324,346,"{{ }}")&&(e.rs(t,i,(function(t,i,n){n.b("vp-audio-item-selected")})),t.pop()),e.b("' data-selected='"),e.b(e.v(e.f("selected",t,i,0))),e.b("' data-language='"),e.b(e.v(e.f("language",t,i,0))),e.b("' data-name='"),e.b(e.v(e.f("name",t,i,0))),e.b("'>"),e.b("\n"+n),e.b("            <span class='vp-audio-item-check'></span>"),e.b("\n"+n),e.b("            <span class='vp-audio-item-title'>"),e.b(e.v(e.f("name",t,i,0))),e.b("</span>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n)})),t.pop()),e.b("</div>"),e.fl()},partials:{},subs:{}})},69215:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-opss' style='display: none'>"),e.b("\n"+n),e.b("    <button class='vp-opss-close-btn vp-close-btn'></button>"),e.b("\n"+n),e.b("    <div class='vp-opss-info'>"),e.b("\n"+n),e.b("        <div class='vp-opss-title'>CORE PLAYER</div>"),e.b("\n"+n),e.b("        <div>"),e.b(e.v(e.f("version",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("        <div class='vp-nav'>"),e.b("\n"+n),e.b("            <span class='vp-profile-btn'>Profile</span>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("        <div class='vp-opss-title'>CURRENT MEDIA</div>"),e.b("\n"+n),e.b("            <div class='vp-opss-renderertype'></div>"),e.b("\n"+n),e.b("            <div class='vp-opss-uuid'></div>"),e.b("\n"+n),e.b("            <div class='vp-opss-lmsid'></div>"),e.b("\n"+n),e.b("            <div class='vp-opss-tv'></div>"),e.b("\n"+n),e.b("        <br>"),e.b("\n"+n),e.b("        <div class='vp-opss-graphs'></div>"),e.b("\n"+n),e.b("        <div class='vp-opss-detail'></div>"),e.b("\n"+n),e.b("        <div class='vp-opss-title vp-section-expand-context vp-expanded'>CONTEXT</div>"),e.b("\n"+n),e.b("        <div class='vp-opss-current-context vp-hide'>"),e.b("\n"+n),e.b("            <div class='vp-opss-expSiteName'></div>"),e.b("\n"+n),e.b("            <div class='vp-opss-expBucketName'></div>"),e.b("\n"+n),e.b("            <div class='vp-opss-expName'></div>"),e.b("\n"+n),e.b("            <div class='vp-opss-expType'></div>"),e.b("\n"+n),e.b("            <div><span class='vp-details'>Page SpaceID: </span>"),e.b(e.v(e.f("spaceId",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("            <div class='vp-sessionId'></div>"),e.b("\n"+n),e.b("            <div class='vp-videoSpaceId'></div>"),e.b("\n"+n),e.b("            <div class='vp-opss-platform'></div>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"),e.b("\n"+n),e.b("        <div class='vp-opss-title vp-section-expand-plugins vp-expanded'>PLUGINS</div>"),e.b("\n"+n),e.b("        <div class='vp-opss-current-plugins vp-hide'>"),e.b("\n"+n),e.b("            <pre class='vp-opss-plugins'></pre>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"),e.b("\n"+n),e.b("        <div class='vp-opss-title vp-section-expand-config vp-expanded'>PLAYER CONFIG</div>"),e.b("\n"+n),e.b("        <div class='vp-opss-current-config vp-hide'>"),e.b("\n"+n),e.b("            <pre class='vp-opss-profile'></pre>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("        <div class='vp-opss-title vp-section-expand-hosting vp-expanded'>HOSTING CONFIG</div>"),e.b("\n"+n),e.b("        <div class='vp-opss-current-hosting vp-hide'>"),e.b("\n"+n),e.b("            <pre class='vp-opss-hosting'></pre>"),e.b("\n"+n),e.b("        </div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},83363:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-pbrate-container vp-vis-hidden vp-hide' tabindex='0'>"),e.b("\n"+n),e.b("    <div class='vp-pbrate-item vp-pbrate-header' tabindex='0'>"),e.b("\n"+n),e.b("        Playback Speed"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-pbrate-divider'></div>"),e.b("\n"+n),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},48829:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-pbrate-item "),e.b(e.v(e.f("className",t,i,0))),e.b("' tabindex='"),e.b(e.v(e.f("tabIndex",t,i,0))),e.b("'>"),e.b("\n"+n),e.b("    <div class='vp-pbrate-checkmark'></div>"),e.b("\n"+n),e.b("    "),e.b(e.v(e.f("rate",t,i,0))),e.b("\n"+n),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},51462:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-playlist-container "),e.b(e.v(e.f("modeClass",t,i,0))),e.b(" vp-pl-loading vp-playlist-theme-"),e.b(e.v(e.f("theme",t,i,0))),e.b(" "),e.b(e.v(e.f("streamModeClass",t,i,0))),e.b(" vp-vis-hidden'>"),e.b("\n"+n),e.s(e.f("isHiddenMode",t,i,1),t,i,0,143,203,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("    <div class='vp-upnext-title'>"),e.b(e.v(e.d("strings.UP_NEXT",t,i,0))),e.b("</div>"),e.b("\n"+n)})),t.pop()),e.b("    <div class='vp-playlist-pg-btn vp-playlist-pg-btn-prev disabled'></div>"),e.b("\n"+n),e.b("    <div class='vp-playlist-pg-btn vp-playlist-pg-btn-next'></div>"),e.b("\n"+n),e.b("    <div class='vp-playlist-strip'>"),e.b("\n"+n),e.b("        <ul class='vp-playlist-strip-list strip-animate'>"),e.b("\n"),e.b("\n"+n),e.b("        </ul>"),e.b("\n"+n),e.b("        <div class='vp-pl-loader-bg'></div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-pl-loader vp-spinner-icon'></div>"),e.b("\n"+n),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},40446:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div><pre>"),e.b(e.v(e.f("config",t,i,0))),e.b("</pre></div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},97338:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-settings-container vp-vis-hidden' tabindex='0'>"),e.b("\n"+n),e.b("    <div class='vp-settings-item vp-settings-header' tabindex='0' aria-label='"),e.b(e.v(e.d("strings.VIDEO_QUALITY",t,i,0))),e.b("'>"),e.b("\n"+n),e.b("        "),e.b(e.v(e.d("strings.VIDEO_QUALITY",t,i,0))),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-settings-divider'></div>"),e.b("\n"+n),e.b("    <div class='vp-settings-item "),e.b(e.v(e.d("itemClasses.high",t,i,0))),e.b(" vp-disable' tabindex='2'>"),e.b("\n"+n),e.b("        <div class='vp-settings-checkmark'></div>"),e.b("\n"+n),e.b("        "),e.b(e.v(e.d("strings.HIGH",t,i,0))),e.b("\n"+n),e.b("        <div class='vp-settings-hdicon'></div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-settings-item "),e.b(e.v(e.d("itemClasses.medium",t,i,0))),e.b(" vp-disable' tabindex='3'>"),e.b("\n"+n),e.b("        <div class='vp-settings-checkmark'></div>"),e.b("\n"+n),e.b("        "),e.b(e.v(e.d("strings.MEDIUM",t,i,0))),e.b("\n"+n),e.b("        <div class='vp-settings-hdicon'></div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-settings-item "),e.b(e.v(e.d("itemClasses.low",t,i,0))),e.b(" vp-disable vp-last-item' tabindex='4'>"),e.b("\n"+n),e.b("        <div class='vp-settings-checkmark'></div>"),e.b("\n"+n),e.b("        "),e.b(e.v(e.d("strings.LOW",t,i,0))),e.b("\n"+n),e.b("        <div class='vp-settings-hdicon'></div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-settings-item "),e.b(e.v(e.d("itemClasses.auto",t,i,0))),e.b(" vp-active vp-disable' tabindex='1'>"),e.b("\n"+n),e.b("        <div class='vp-settings-checkmark'></div>"),e.b("\n"+n),e.b("        "),e.b(e.v(e.d("strings.AUTO",t,i,0))),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},52974:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-adview-simple'>"),e.b("\n"+n),e.b("    <div class='vp-adbreak-progress'>"),e.b("\n"+n),e.b("        <span>Ad 1/3: 15s</span>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("    <div class='vp-adbreakitem-cta'>"),e.b("\n"+n),e.b("        <div class='vp-adview-btn'>Get Now</div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},95445:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-start-screen "),e.s(e.f("show",t,i,1),t,i,1,0,0,"")||e.b("vp-vis-hidden vp-disp-none"),e.b("' tabindex='-1'>"),e.b("\n"+n),e.s(e.d("config.showThumbnail",t,i,1),t,i,0,118,243,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("        <img class='vp-start-screen-image' src='"),e.b(e.v(e.f("imageSrc",t,i,0))),e.b("' width='"),e.b(e.v(e.f("width",t,i,0))),e.b("' height='"),e.b(e.v(e.f("height",t,i,0))),e.b("' aria-hidden='true'>"),e.b("\n"+n)})),t.pop()),e.s(e.d("config.showButton",t,i,1),t,i,0,295,414,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("        <div class='vp-start-screen-button' tabindex='0' aria-label='"),e.b(e.v(e.d("strings.PLAY_VIDEO",t,i,0))),e.b("' role='button'></div>"),e.b("\n"+n)})),t.pop()),e.b("    <div class='vp-start-screen-bar-wrapper'>"),e.b("\n"+n),e.b("        <div class='vp-start-screen-bar' tabindex='-1'>"),e.b("\n"+n),e.s(e.d("config.showProvider",t,i,1),t,i,0,575,682,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("                <h4 class='vp-start-screen-provider' tabindex='1'>"),e.b(e.v(e.d("item.provider.name",t,i,0))),e.b("</h4>"),e.b("\n"+n)})),t.pop()),e.s(e.d("config.showTitle",t,i,1),t,i,0,740,836,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("                <h3 class='vp-start-screen-title' tabindex='2'>"),e.b(e.v(e.d("item.title",t,i,0))),e.b("</h3>"),e.b("\n"+n)})),t.pop()),e.s(e.d("config.showDescription",t,i,1),t,i,0,897,1003,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("                <p class='vp-start-screen-description' tabindex='3'>"),e.b(e.v(e.d("item.description",t,i,0))),e.b("</p>"),e.b("\n"+n)})),t.pop()),e.b("        </div>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("</div>"),e.b("\n"),e.fl()},partials:{},subs:{}})},23535:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DimensionUnit=void 0;var e,r=n(40514),s="touchstart",o="touchmove",u="touchend",a="mousedown",c="mousemove",h="mouseup",f="mouseenter",l="mouseleave";!function(t){t.PIXEL="px",t.PERCENTAGE="%"}(e=i.DimensionUnit||(i.DimensionUnit={}));var v=function(){function t(t){if(this.oP=null,this.uP=null,this.aP=null,this.cP=null,this.hP=null,this.fP=null,!t)throw Error("ViewElement: bound element is null");this._node=t}return t.get=function(i,n){return new t(n?n.querySelector(i):document.querySelector(i))},t.build=function(i,n,e){var r=document.createElement("div");return r.innerHTML=i.render(n,e),new t(r.children[0])},t.prototype.destroy=function(){this.oP&&this.oP.destroy(),this.removeDragEvents(),this.removeScrollEvents()},Object.defineProperty(t.prototype,"node",{get:function(){return this._node},enumerable:!1,configurable:!0}),t.prototype.getClientSize=function(){return{width:this._node.clientWidth,height:this._node.clientHeight}},t.prototype.appendChild=function(t){return t&&this._node.appendChild(t),this},t.prototype.removeChild=function(t){if(t)try{this._node.removeChild(t)}catch(t){}return this},t.prototype.removeFromParent=function(){var t=this._node;return t.parentNode&&t.parentNode.removeChild(t),this},t.prototype.getParent=function(){var i=this._node.parentElement;return i?new t(i):null},t.prototype.appendView=function(t){return t&&t.node&&this._node.appendChild(t.node),this},t.prototype.removeView=function(t){return t&&t.node&&this._node.removeChild(t.node),this},t.prototype.insertBefore=function(t,i){return i?this._node.insertBefore(t,i):this.appendChild(t),this},t.prototype.add=function(){for(var t=this,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return i.forEach((function(i){t._node.classList.add(i)})),this},t.prototype.remove=function(){for(var t=this,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return i.forEach((function(i){t._node.classList.remove(i)})),this},t.prototype.addOrRemove=function(t,i){return i?this.add(t):this.remove(t),this},t.prototype.setDisplay=function(t){return this._node.style.display=t,this},t.prototype.select=function(i){var n=this._node.querySelector(i);return n?new t(n):null},Object.defineProperty(t.prototype,"innerHTML",{get:function(){return this._node.innerHTML},set:function(t){this._node.innerHTML=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerText",{get:function(){return this._node.innerText},set:function(t){this._node.innerText=t},enumerable:!1,configurable:!0}),t.prototype.onTap=function(t){return this.oP=new r.default(this._node,t),this},t.prototype.onDrag=function(t,i,n){return this.uP=t,this.aP=i,this.cP=n,this.lP([a,s],t),this.lP([c,o],i),this.lP([h,u],n),this},t.prototype.removeDragEvents=function(){return this.vP([a,s],this.uP),this.vP([c,o],this.aP),this.vP([h,u],this.cP),this.uP=null,this.aP=null,this.cP=null,this},t.prototype.onScroll=function(t,i){return this.hP=t,this.fP=i,this.lP([f,s],t),this.lP([c,o],t),this.lP([l,u],i),this},t.prototype.removeScrollEvents=function(){return this.vP([f,s],this.hP),this.vP([c,o],this.hP),this.vP([l,u],this.fP),this.hP=null,this.fP=null,this},t.prototype.contains=function(t){return this._node.classList.contains(t)},t.prototype.addEventListener=function(t,i,n){return this._node.addEventListener(t,i,n),this},t.prototype.removeEventListener=function(t,i,n){return this._node.removeEventListener(t,i,n),this},t.prototype.getBoundingClientRect=function(){return this._node.getBoundingClientRect()},t.prototype.setPosition=function(t,i,n,r,s){void 0===s&&(s=e.PIXEL);var o=this._node.style;return t>-1&&(o.top=t+s),i>-1&&(o.bottom=i+s),n>-1&&(o.right=n+s),r>-1&&(o.left=r+s),this},t.prototype.clearPosition=function(){var t=this._node.style;return t.top="",t.bottom="",t.left="",t.right="",this},t.prototype.setSize=function(t,i){return this.setAttribute("width",t).setAttribute("height",i)},t.prototype.setStyleSize=function(t,i,n){void 0===n&&(n=e.PIXEL);var r=this._node.style;return t>-1?r.width=t+n:""===t&&(r.width=""),i>-1?r.height=i+n:""===i&&(r.height=""),this},t.prototype.translate3d=function(t,i,n){return void 0===n&&(n=0),this.setStyleAttr("transform","translate3d("+t+"px, "+i+"px, "+n+"px)"),this},Object.defineProperty(t.prototype,"position",{set:function(t){this.setStyleAttr("position",t)},enumerable:!1,configurable:!0}),t.prototype.setStyleAttr=function(t,i){return this._node.style[t]=i,this},t.prototype.setAttribute=function(t,i){return this._node.setAttribute(t,i),this},t.prototype.show=function(){return this.remove("vp-hide")},t.prototype.hide=function(){return this.add("vp-hide")},t.prototype.enable=function(){return this.remove("vp-disable")},t.prototype.disable=function(){return this.add("vp-disable")},t.prototype.ariaLabel=function(t){return this._node.setAttribute("aria-label",t),this},t.prototype.lP=function(t,i){var n=this;t.forEach((function(t){n.addEventListener(t,i)}))},t.prototype.vP=function(t,i){var n=this;t.forEach((function(t){i&&n.removeEventListener(t,i)}))},t}();i.default=v},29241:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||(e||(e=Array.prototype.slice.call(i,0,r)),e[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.ViewEvent=i.Orientation=i.ViewState=void 0;var o,u,a,c,h,f=n(44422),l=n(39451),v=n(40611),d=n(19257),p=n(78430),b=n(69541),m=n(1225),y=n(96609),g=n(40514),w=n(53072),_=n(30954),E=n(76389),O=n(21962),S=n(35244),A=n(31204),T=n(40531),M=n(66342),j=n(51960),N=n(36589),I=n(64685),k=n(2878),R=n(28103),L=n(26266),C=n(52810);M.default.insertCssIntoHead(".vp-vis-hidden { visibility: hidden;} .vp-disp-none { display: none;}"),function(t){t.END_SCREEN="end-screen",t.ERROR="error",t.VIDEO="video",t.START_SCREEN="start-screen",t.BLOCKED="blocked",t.UP_NEXT_SCREEN="up-next-screen"}(o=i.ViewState||(i.ViewState={})),function(t){t.PORTRAIT="portrait",t.LANDSCAPE="landscape"}(u=i.Orientation||(i.Orientation={})),function(t){t.LOADING="loading",t.SWITCHING="switching",t.PLAYING="playing",t.PAUSED="paused",t.CASTING="casting"}(a||(a={})),function(t){t.NORMAL="normal",t.SMALL="smallscreen",t.VERY_SMALL="verysmallscreen"}(c||(c={})),function(t){t[t.SMALL_WIDTH=350]="SMALL_WIDTH",t[t.SMALL_HEIGHT=210]="SMALL_HEIGHT",t[t.VERY_SMALL_WIDTH=200]="VERY_SMALL_WIDTH",t[t.VERY_SMALL_HEIGHT=175]="VERY_SMALL_HEIGHT"}(h||(h={}));var D,P=["webkitfullscreenchange","mozfullscreenchange","msfullscreenchange","MSFullscreenChange","fullscreenchange"],x="vp-state-",U="vp-flag-",F="vp-browser-",B="vp-mode-",z=5e3,V="full",G=40,H=27,Y=82,q=53;function W(t){return M.default.classList(t)}!function(t){t.AD_CLICKED="vAdClicked",t.BACKWARD_SEEK="vBackwardSeek",t.CC_LANGUAGE_CHANGE="vCcLanguageChange",t.CC_STYLE_CHANGE="vCcStyleChange",t.CC_POSITION_FLOAT="vCcPosFloat",t.CUSTOM_ELEMENT="vCustomElem",t.FORWARD_SEEK="vForwardSeek",t.OPSS_VISIBILITY_CHANGED="vOpssVisibilityChanged",t.PLAYLIST_BOTTOM_HEIGHT_CHANGE="vPlaylistBottomHeightChange",t.SCROLLED_TO_END="vScrolledToEnd",t.SEEK="vSeek",t.SET_AUDIO_LANGUAGE="vSetAudioLanguage",t.SET_MUTE="vSetMute",t.SET_VOLUME="vSetVolume",t.SKIP_AD_REQUESTED="vAdSkipRequested",t.START_SCREEN_CLICK="vStartScreenClick",t.SYNC_PLAYBACK_STATE="vSyncPlaybackState",t.SYNC_SHOW_AIRPLAY_TARGET_MENU="vSyncShowAirplayTargetMenu",t.SYNC_VIDEO_END="vSyncVideoEnd",t.TOGGLE_CC="vToggleCc",t.TOGGLE_PLAY_PAUSE="vTogglePlayPause",t.UI_INTERACT="vUiInteract",t.UP_NEXT_SCREEN_PLAY="vUpNextScreenPlay",t.KEY_CHANGE_VOLUME="vKeyChangeVolume",t.PLAYER_VIEWPORT_CHANGE="vPlayerViewportChanged",t.FULLSCREEN_CHANGE="vFullscreenChanged",t.SET_PLAYBACK_RATE="vPbRateSet",t.PIP_TOGGLE="vPIPToggle"}(D=i.ViewEvent||(i.ViewEvent={}));var Q=function(t){function i(i,n,e,r,s,o,u){var h=t.call(this,"View")||this;h.UO=i,h.vt=n,h.zb=e,h.r_=r,h.lw=s,h.f_=o,h.e_=u,h.dP=c.NORMAL,h.pP=!1,h.bP=!1,h.mP=0;var f=0,v=0;return h.UO&&(f=h.UO.clientWidth,v=h.UO.clientHeight,h.dP=h.yP(f,v)),h.zb.addEventListener(O.VideoEvent.SRC_SWITCHING,(function(){h.gP(a.SWITCHING,!0)}),h),h.zb.addEventListener(O.VideoEvent.SRC_SWITCHED,(function(){h.gP(a.SWITCHING,!1)}),h),h.zb.publish(O.PLAYER_DIMENSION_CHANGE,{height:h.UO&&h.UO.clientHeight||h.vt.uiState.height||0,width:h.UO&&h.UO.clientWidth||h.vt.uiState.width||0,videoWidth:h.FO&&h.FO.clientWidth||h.vt.uiState.videoWidth||0,videoHeight:h.FO&&h.FO.clientHeight||h.vt.uiState.videoHeight||0}),h.zb.addEventListener(w.ExternalEvt.PLAYER_MUTE_CHANGE,h.wP,h),h.zb.addEventListener(O.UP_NEXT_PG_CLICK,h._P,h),h.zb.addEventListener(O.PLAYER_DIMENSION_CHANGE,h.U_,h),h.zb.addEventListener(O.Device.ORIENTATION_CHANGE,h.EP,h),h.zb.addEventListener(O.PLAYBACK_INFO,h.OP,h),h.zb.addEventListener(w.ExternalEvt.PLAYLIST_POSITION_CHANGE,h.SP,h),l.userAgent.mobile&&A.default.canPlayInline&&(h.vt.uiState.deviceOrientation=h.AP(),h.TP()),h}return r(i,t),i.prototype.render=function(){var t=this;this.vt.rendered=!0,this.BO=M.default.render(L,{enableDocking:this.vt.docking&&(this.vt.docking.enableOnScrollDown||this.vt.docking.enableOnScrollUp)}),this.FO=this.BO.querySelector("."+_.VIDEO_MAIN_ELEMENT_CLASS),this.UO&&this.UO.appendChild(this.BO),W(this.BO).add(this.dP),Object.keys(l.userAgent).filter((function(t){return l.userAgent[t]})).forEach((function(i){"os"===i&&(i=l.userAgent.os),"ie"===i&&W(t.BO).add("vp-"+i.toLowerCase()+l.userAgent[i]),W(t.BO).add(F+i.toLowerCase())})),A.default.deviceType&&W(this.BO).add("vp-device-"+A.default.deviceType),l.userAgent.mobile&&A.default.canPlayInline&&W(this.BO).add(F+"playsinline"),this.vt.chromeless||(this.MP=this.jP(y.LoadingScreen)),this.vt.showControls&&A.default.canPlayInline&&(this.kI=new p.Controls(this.zb,this,this.vt,this.lw),this.NP()),this.vt.showControls||W(this.BO).add("vp-no-controls");var i=function(i){t.Oj()},n=function(i){t.Nj(i)},e=function(){t.IP()};this.kP=function(){t.RP={},t.LP=t.BO,t.BO.addEventListener("mousemove",(function(n){t.RP.x!==n.clientX&&t.RP.y!==n.clientY&&(i(),t.RP.x=n.clientX,t.RP.y=n.clientY,t.LP=n.target)})),t.BO.addEventListener("mouseover",(function(n){var e=null;t.LP&&(e=t.LP.parentElement),!e||W(e).contains("vp-play-controls")||W(e).contains("vp-menu-controls")||i()})),t.BO.addEventListener("mouseout",(function(i){var e=null,r=t.BO.getBoundingClientRect();t.LP&&(e=t.LP.parentElement),e&&(W(e).contains("vp-play-controls")||W(e).contains("vp-menu-controls")||n(i),(W(e).contains("vp-play-controls")||W(e).contains("vp-menu-controls"))&&(i.clientX<=r.left||i.clientX>=r.right||i.clientY>=r.bottom)&&n(i))}))},this.EC=function(){var t=this;this.CP=new g.default(this.BO,(function(){(!t.getFullscreen()||l.userAgent.android&&M.default.getFullscreenElement()===t.BO)&&t.toggleControlsVisibility()})),this.BO.addEventListener("click",e),this.zb.addEventListener(O.CONTROLS_SEEKING,(function(){t.DP&&clearTimeout(t.DP),t.DP=window.setTimeout(t.PP.bind(t),z)}),this)},l.userAgent.tv||l.userAgent.mobile?l.userAgent.mobile&&this.kI&&A.default.canPlayInline&&this.EC():this.kP(),this.xP=function(){t.BO.removeEventListener("mousemove",i),t.BO.removeEventListener("mouseover",i),t.BO.removeEventListener("mouseout",n)},this.FP=function(){t.BO.removeEventListener("click",e)},T.isFunction(this.handleFullscreenChange.bind)&&(this.BP=this.handleFullscreenChange.bind(this),P.forEach((function(i){document.addEventListener(i,t.BP)}))),this.lw.render(this.FO),this.zP(),this.T_=new N.PlaylistController(this,this.lw),this.VP(),this.GP(),this.HP(),l.userAgent.desktop&&this.FO&&this.FO.addEventListener("contextmenu",(function(i){var n=t.k_.rendererType;n!==I.RendererType.HTML5_HLS&&n!==I.RendererType.HTML5_RAW||i.preventDefault()}));var r=document.querySelector("#vp-css");M.default.isOldIeBrowser()&&setTimeout((function(){r&&r.sheet.cssRules&&r.sheet.cssRules.length>0?t.YP():t.qP()}),150),M.default.isOldIeBrowser()||!this.vt.uiState||this.vt.uiState.isCSSLoaded||(!0===M.default.getSingleton("isCSSLoaded")?this.YP():!0===M.default.getSingleton("isCSSError")?this.qP():r&&(r.addEventListener("error",this.qP.bind(this)),r.addEventListener("load",this.YP.bind(this)))),this.WP=new d.default(this.zb,this,this.vt,this.lw)},i.prototype.getEventBus=function(){return this.zb},i.prototype.getModel=function(){return this.vt},i.prototype.getAdsOverlay=function(){return this.QP},i.prototype.getAdsOverlayNode=function(){var t;return(null===(t=this.QP)||void 0===t?void 0:t.view.node)||null},i.prototype.toggleControlsVisibility=function(){var t,i;W(this.BO).contains("vp-hide-controls")?(W(this.BO).remove("vp-hide-controls"),this.ZP(!1),null===(i=this.kI)||void 0===i||i.onControlsBarChange(!0),this.$P&&W(this.$P).remove("vp-overlay-hide-cursor"),this.DP&&clearTimeout(this.DP),this.k_.seeking||(this.DP=window.setTimeout(this.PP.bind(this),z))):(W(this.BO).add("vp-hide-controls"),this.ZP(!0),null===(t=this.kI)||void 0===t||t.onControlsBarChange(!1))},i.prototype.toggleAdViewClickBlocking=function(){var t=W(this.BO).contains("vp-hide-controls");this.XP.enableClickBlocking(!!t)},i.prototype.isDocked=function(){return this.bP},i.prototype.dockVideoPlayer=function(){var t=window.scrollY,i=!0,n=this.vt.docking.width,e=this.vt.docking.height;if(this.mP>t&&(i=!1),this.vt.docking.enableOnScrollDown===i&&this.vt.docking.enableOnScrollUp!==i&&!this.KP&&(this.vt.docking.enableOnMuted||!this.vt.mute)&&!(l.userAgent.mobile&&this.vt.docking.mobile&&this.vt.docking.mobile.disable)){if(this.JP=this.BO.clientWidth,this.tx=this.BO.clientHeight,n===V){if(this.vt.uiState.deviceOrientation===u.LANDSCAPE)return;n=window.innerWidth,e=this.tx/this.JP*n}if(this.bP=!0,this.ix(),this.T_.togglePlaylistUI(!0),W(this.BO).add("vp-docked"),this.vt.docking.showInfoCard&&W(this.BO).add("vp-docked-show-meta"),this.vt.docking.fadeInAnimation){if(W(this.BO).add("vp-docked-fadein"),W(this.UO).add("vp-docked-mode"),(a=l.userAgent.mobile&&this.vt.docking.mobile?this.vt.docking.mobile.position||{}:this.vt.docking.position||{}).top>-1&&(this.BO.style.top=a.top+"px"),a.bottom>-1&&a.top<0){var r=0;this.vt.docking.showInfoCard&&(r=84),this.BO.style.bottom=r+a.bottom+"px"}a.right>-1&&a.left<0&&(this.BO.style.right=a.right+"px"),a.left>-1&&(this.BO.style.left=a.left+"px")}else{this.nx();var s=this.BO.getBoundingClientRect(),o=document.querySelector("body");if(!o)return;var a,c=o.clientWidth,h=window.innerHeight,f=0,v=0;if((a=this.vt.docking.position||{}).top>-1&&(v=a.top,this.BO.style.top="0px"),a.bottom>-1){var d=0;this.vt.docking.showInfoCard&&(d=84),v=h-e-d-a.bottom,this.BO.style.bottom=""}a.right>-1&&(f=c-s.left-n-a.right,this.BO.style.right=""),a.left>-1&&(f=a.left,this.BO.style.left="0px"),this.BO.style.transform="translate3d("+f+"px, "+v+"px, 0)",W(this.BO).add("vp-docked-animated"),W(this.UO).add("vp-docked-mode")}this.BO.style.width=n+"px",this.BO.style.height=e+"px",this.publish(D.PLAYER_VIEWPORT_CHANGE,!1),this.zb.publish(O.PLAYER_DIMENSION_CHANGE,this.getPlayerDimensions()),this.vt.uiState.isDocked=!0,this.zb.publish(w.ExternalEvt.PLAYER_DOCKED_CHANGE,!0)}},i.prototype.undockVideoPlayer=function(t){var i=this;void 0===t&&(t=!1),W(this.BO).remove("vp-docked"),W(this.BO).remove("vp-docked-show-meta"),this.vt.docking.fadeInAnimation?(W(this.BO).remove("vp-docked-fadein"),this.BO.style.top="",this.BO.style.right="",this.BO.style.bottom="",this.BO.style.left="",this.BO.style.width="",this.BO.style.height=""):(this.BO.style.transform="translate3d(0, 0, 0)",this.nx()),this.bP=!1,this.T_.togglePlaylistUI(!1),t&&!this.vt.isPaused()&&this.zb.publish(O.TOGGLE_PLAY_PAUSE),window.setTimeout((function(){i.bP||(i.vt.uiState.isDocked=!1,i.vt.docking.fadeInAnimation||(i.BO.style.width="",i.BO.style.height="",W(i.BO).remove("vp-docked-animated"),i.BO.style.position="",i.BO.style.transform="",i.BO.style.top="",i.BO.style.right="",i.BO.style.bottom="",i.BO.style.left=""),i.sx&&(i.UO.removeChild(i.sx),i.sx=null),W(i.UO).remove("vp-docked-mode"),i.publish(D.PLAYER_VIEWPORT_CHANGE,!0),i.zb.publish(O.PLAYER_DIMENSION_CHANGE,i.getPlayerDimensions())),i.zb.publish(w.ExternalEvt.PLAYER_DOCKED_CHANGE,!1)}),250)},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){"boolean"==typeof t&&(this.vt.docking.enableOnScrollDown=t),"boolean"==typeof i&&(this.vt.docking.enableOnScrollUp=i),this.vt.docking.position=this.vt.docking.position||{},isNaN(n)||(this.vt.docking.position.top=n),isNaN(e)||(this.vt.docking.position.right=e),isNaN(r)||(this.vt.docking.position.left=r),isNaN(s)||(this.vt.docking.position.bottom=s),t||i?(this.GP(),this.bP&&this.dockVideoPlayer()):(this.ox(),this.bP&&this.undockVideoPlayer())},i.prototype.createAdsOverlay=function(){if(this.QP)return this.QP.view.innerHTML="",this.QP.view.node;if(!this.FO)return null;this.QP=new y.AdsOverlay;var t=this.QP.view.node,i=this.FO.querySelector(".vp-adview-wrapper");return i?this.FO.insertBefore(t,i):this.FO.appendChild(t),t},i.prototype.destroyAdsOverlay=function(){this.QP&&(this.QP.destroy(),this.QP=null)},i.prototype.showAirplayTargetMenu=function(){this.publish(D.SYNC_SHOW_AIRPLAY_TARGET_MENU)},i.prototype.getContentNode=function(){return this.BO},i.prototype.getOpenSimSim=function(){return this.ux},i.prototype.getMainElement=function(){return this.FO},i.prototype.getCCElement=function(){return this.FO?this.FO.querySelector(".vp-cc-element"):null},i.prototype.getRootElement=function(){return this.UO},i.prototype.getVideoElement=function(){if(this.UO){var t=this.UO.getElementsByClassName("vp-renderer-active")[0];if(t)return t instanceof HTMLVideoElement?t:t.getElementsByTagName("video")[0]}},i.prototype.setKeyboardFocus=function(){this.BO.focus()},i.prototype.updateViewOnEscPress=function(){this.ux&&this.ux.isOpen()?this.ux.close():this.getFullscreen()&&this.setFullscreen(!1)},i.prototype.disableControls=function(){W(this.BO).add("vp-disable-controls")},i.prototype.enableControls=function(){W(this.BO).remove("vp-disable-controls")},i.prototype.resetState=function(){var t;this.hx(),this.lx(),this.vx(),null===(t=this.e_)||void 0===t||t.destroyScreen(this.FO)},i.prototype.syncViewState=function(){var t,i,n,e=this.vt,r=e.playlist&&this.uO(),s=this.k_,u=e.castState,c=u&&u.connected,h=o.START_SCREEN;if(this.gP(a.CASTING,c),c){var f=W(this.BO);u.mediaLoaded&&!u.paused?f.add("vp-cast-playing"):f.remove("vp-cast-playing")}var v=W(this.BO).contains(U+a.LOADING),d=e.isLoading();switch(this.gP(a.LOADING,d),!v&&d?(this.zb.publish(w.ExternalEvt.LOADING_BEGIN),null===(t=this.MP)||void 0===t||t.show()):v&&!d&&(this.zb.publish(w.ExternalEvt.LOADING_END),null===(i=this.MP)||void 0===i||i.hide()),e.getState()){case S.States.INIT:case S.States.WAITING:h=o.START_SCREEN;var p=!e.autoplay||e.waitingForUserTap,b=r&&(r.hasThumbnail()&&!l.userAgent.mobile||r.fetchFinished());if(e.showUpNextScreen&&0!=e.playlist.position)h=o.UP_NEXT_SCREEN,null===(n=this.e_)||void 0===n||n.renderScreen(this.uO(),this.FO);else if(p&&b){var m=e.continuousPlay&&0!==e.playlist.position,y=e.skipOnError===j.SkipOnError.ALWAYS||e.skipOnError===j.SkipOnError.TIMEBASED;m&&y&&s.hasStartedPlayback||this.mx()}break;case S.States.VIDEO:this.yx(s),this.gx(),h=o.VIDEO;break;case S.States.END:this.vt.continuousPlay||this.setFullscreen(!1),s.criticalError?(e.chromeless?this.zb.publish(w.ExternalEvt.PLAYER_ERROR,s.criticalError):this.wx(s.criticalError,r,e.guid),h=o.ERROR):(this._x(s.previousItem),h=o.END_SCREEN)}this.Ex=h,this.Ox(h),this.Sx(),this.WP&&this.WP.syncState()},i.prototype.getCurrentViewState=function(){return this.Ex},i.prototype.updateStreamSyncUI=function(t,i){var n,e;t&&"pause"===i?(null===(n=this.MP)||void 0===n||n.show(),W(this.BO).add("vp-sync-waiting")):(null===(e=this.MP)||void 0===e||e.hide(),W(this.BO).remove("vp-sync-waiting"))},i.prototype.setFullscreen=function(t){var i,n=this.BO;(l.userAgent.ios||l.userAgent.android&&!this.kI)&&(n=null===(i=this.f_.getActiveRenderer())||void 0===i?void 0:i.node),t&&!this.pP?k.default.enterFullscreen(n):!t&&this.pP&&k.default.exitFullscreen(n),this.zb.publish(O.CTRL_FULLSCREEN,t?"ON":"OFF"),t&&l.userAgent.mobile&&A.default.autoplaySupported&&this.k_.mute&&!this.vt.muteMode&&this.publish(D.SET_MUTE,!1),this.Sx()},i.prototype.getFullscreen=function(){var t=this.f_.getActiveRenderer(),i=!!t&&k.default.isFullscreenOnMobile(t.node);return M.default.getFullscreenElement()===this.BO||i},i.prototype.toggleFullscreen=function(){this.setFullscreen(!this.getFullscreen())},i.prototype.updateVolumeUI=function(t,i,n){void 0===n&&(n=!1),this.kI&&this.kI.updateVolumeUI(t,i,n)},i.prototype.updateClosedCaptionUI=function(t){this.kI&&this.kI.updateClosedCaptionUI(t)},i.prototype.clearAutoHideTimeout=function(){this.DP&&window.clearTimeout(this.DP)},i.prototype.setOverlayActive=function(t){t?W(this.BO).add("vp-overlay-active"):W(this.BO).remove("vp-overlay-active")},i.prototype.destroyFullscreenChangeListeners=function(){var t=this;this.BP&&P.forEach((function(i){document.removeEventListener(i,t.BP)}))},i.prototype.getPlayerDimensions=function(){return{width:this.BO.clientWidth,height:this.BO.clientHeight,videoWidth:this.FO.clientWidth,videoHeight:this.FO.clientHeight}},Object.defineProperty(i.prototype,"controls",{get:function(){return this.kI},enumerable:!1,configurable:!0}),i.prototype.getPlaylistController=function(){return this.T_},i.prototype.isStreamMode=function(){return l.userAgent.desktop&&(this.dP===c.SMALL||W(this.BO).contains("vp-stream"))},i.prototype.isMiniStreamMode=function(){return l.userAgent.desktop&&(this.dP===c.VERY_SMALL||W(this.BO).contains("vp-ministream"))},i.prototype.addRendererNode=function(t){var i=this.getMainElement();if(i&&t){if(W(t).contains("vp-external-video")){for(var n=0,e=i.children[n];n<i.children.length&&"video"!==e.tagName.toLowerCase();)e=i.children[++n];if(e&&"video"===e.tagName.toLowerCase())return void i.insertBefore(t,e)}i.appendChild(t)}},i.prototype.onMediaItemLoaded=function(t){t.isLive()?W(this.BO).add("vp-live"):W(this.BO).remove("vp-live"),this.isStreamMode()&&!this.getFullscreen()&&W(this.BO).add("vp-stream"),this.isMiniStreamMode()&&!this.getFullscreen()&&W(this.BO).add("vp-ministream"),this.kI&&this.kI.onMediaItemLoaded(t)},i.prototype.onMediaItemCurrent=function(t){this.kI&&this.kI.onMediaItemCurrent(t)},i.prototype.onSetPlaybackRate=function(t){var i;null===(i=this.kI)||void 0===i||i.onSetPlaybackRate(t)},i.prototype.onMediaItemPlaybackStarted=function(t){var i;(this.vt.docking.enableOnScrollDown||this.vt.docking.enableOnScrollUp)&&this.bP&&this.ix(),this.kI&&this.kI.onMediaItemPlaybackStarted(t),null===(i=this.T_)||void 0===i||i.onMediaItemPlaybackStarted(t)},i.prototype.onMediaItemPlaybackProgress=function(t){this.kI&&this.kI.onMediaItemPlaybackProgress(t)},i.prototype.onAdBreakStarted=function(t){var i,n;null===(i=this.XP)||void 0===i||i.onAdBreakStart(t),t.type===R.AdBreakType.LINEAR&&(null===(n=this.kI)||void 0===n||n.onAdBreakStarted())},i.prototype.onAdBreakEnded=function(t){var i,n=this;null===(i=this.XP)||void 0===i||i.onAdBreakEnd(t),t.type===R.AdBreakType.LINEAR&&(M.default.isMidrollAdBreak(t)?setTimeout((function(){n.kI&&n.kI.onAdBreakEnded()}),5e3):this.kI&&this.kI.onAdBreakEnded())},i.prototype.onAdPlaybackStarted=function(t){this.kI&&this.kI.onAdPlaybackStarted(t.type===R.AdBreakType.LINEAR)},i.prototype.onAdPlaybackEnded=function(t){var i=this;M.default.isMidrollAdBreak(t)?setTimeout((function(){i.kI&&i.kI.onAdPlaybackEnded()}),5e3):this.kI&&this.kI.onAdPlaybackEnded()},i.prototype.onAdPlaybackProgress=function(t){var i=t.playingItem,n=this.k_;i&&T.isNumber(n.currentTime)&&T.isNumber(n.duration)&&this.kI&&this.kI.onAdPlaybackProgress(t)},i.prototype.onPlaybackTimeUpdate=function(){var t;null===(t=this.ux)||void 0===t||t.onTimeUpdate(this.f_.getSyncOffset(),this.f_.getSyncState())},i.prototype.setTheme=function(t){t&&W(this.BO).add(t)},i.prototype.onlanguageChange=function(t){this.publish(D.CC_LANGUAGE_CHANGE,t)},i.prototype.updateClosedCaptionStyle=function(t){this.publish(D.CC_STYLE_CHANGE,t)},i.prototype.updateCurrentItemTitle=function(t){this.kI.updateCurrentItemTitle(t),this.bP&&this.Ax&&(this.Ax.textContent=t),this.Tx&&this.Tx.updateTitle(t)},i.prototype.addCustomControlElement=function(t){return this.kI.addCustomControlElement(t)},i.prototype.onRendererSwitch=function(t,i){this.ux&&this.ux.onRendererSwitch(t,i),this.syncViewState()},i.prototype.onVideoEvent=function(t){for(var i,n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];this.syncViewState(),this.ux&&(i=this.ux).onVideoEvent.apply(i,s([t],n,!1))},i.prototype.handleFullscreenChange=function(t){var i="boolean"==typeof t?t:this.getFullscreen();i?(W(this.BO).add("vp-state-fullscreen"),this.bP&&(this.KP=!0,this.undockVideoPlayer())):(W(this.BO).remove("vp-state-fullscreen"),(this.bP||this.KP)&&(this.KP=!1,this.mP=window.scrollY,this.dockVideoPlayer())),this.pP!==i&&(this.vt.uiState.isFullscreen=i,this.publish(D.FULLSCREEN_CHANGE,i),this.pP=i)},i.prototype.onEnterPictureInPicture=function(){var t;null===(t=this.kI)||void 0===t||t.onEnterPictureInPicture()},i.prototype.onLeavePictureInPicture=function(){var t;null===(t=this.kI)||void 0===t||t.onLeavePictureInPicture()},i.prototype.destroy=function(){this.kI&&this.kI.destroy(),this.Mx&&this.Mx.destroy(),this.jx&&this.jx.destroy(),this.Nx&&this.Nx.destroy(),this.MP&&this.MP.destroy(),this.XP&&this.XP.destroy(),this.T_&&this.T_.destroy(),this.Tx&&this.Tx.destroy(),this.CP&&this.CP.destroy(),this.destroyAdsOverlay(),this.destroyFullscreenChangeListeners(),l.userAgent.tv||l.userAgent.mobile||!this.xP||this.xP(),l.userAgent.mobile&&A.default.canPlayInline&&this.FP&&this.FP(),this.HO&&(window.removeEventListener("resize",this.HO),this.HO=null),this.ux&&this.ux.destroy(),this.UO&&this.BO&&this.UO.removeChild(this.BO),this.ox()},i.prototype.HP=function(){var t=this;this.Mx=new b.default("NORMAL",(function(){t.ux||(t.ux=t.jP(m.default,t.vt,t.lw.getExternalPlugins()),t.ux.on(m.OpssEvent.VISIBILITY_CHANGED,(function(i,n){t.publish(D.OPSS_VISIBILITY_CHANGED,i,n.node)}),t));var i=t.f_.getRendererController().getActiveRenderer();t.ux.render(i)}),this.BO)},i.prototype.EP=function(t){this.vt.uiState.deviceOrientation=t,this.vt.uiState.isDocked&&this.vt.docking.width===V&&t===u.LANDSCAPE&&!this.getFullscreen()&&this.undockVideoPlayer(!0)},i.prototype.OP=function(t){this.ux&&this.ux.onPlaybackInfo(t)},i.prototype.SP=function(){this.ux&&this.ux.onPlaylistPositionChange()},i.prototype.TP=function(){this.HO=this.tS.bind(this),window.addEventListener("resize",this.HO)},i.prototype.AP=function(){var t=u.LANDSCAPE;return window.innerHeight>window.innerWidth&&(t=u.PORTRAIT),t},i.prototype.tS=function(){this.zb.publish(O.Device.ORIENTATION_CHANGE,this.AP())},i.prototype.GP=function(){this.Ix&&this.ox(),(!(l.userAgent.ie>0&&l.userAgent.ie<10)&&!l.userAgent.mobile||l.userAgent.mobile&&A.default.canPlayInline)&&this.vt.docking&&(this.vt.docking.enableOnScrollDown||this.vt.docking.enableOnScrollUp)&&(this.Ix=this.kx.bind(this),window.addEventListener("scroll",this.Ix))},i.prototype.ox=function(){this.Ix&&(window.removeEventListener("scroll",this.Ix),this.Ix=null)},i.prototype.kx=function(){var t=window.pageYOffset;if(t!==this.mP&&!this.pP){this.mP=t;var i=M.default.getElementViewability(this.UO)>=this.vt.docking.threshold;i||this.bP||!this.vt.isMediaPlaying()?i&&this.bP&&this.undockVideoPlayer():this.dockVideoPlayer()}},i.prototype.zP=function(){return this.XP||(this.XP=new v.default,this.FO.appendChild(this.XP.create()),l.userAgent.mobile&&this.kI&&A.default.canPlayInline&&this.XP.enableClickBlocking(!0)),this.XP},i.prototype.nx=function(){var t=this.UO.getBoundingClientRect(),i=document.querySelector("body");if(i){var n=i.clientWidth,e=this.vt.docking.position||{};e.top>-1&&(this.BO.style.top=t.top+"px"),e.bottom>-1&&(this.BO.style.bottom=t.bottom+"px"),e.right>-1&&(this.BO.style.right=n-t.right+"px"),e.left>-1&&(this.BO.style.left=t.left+"px"),this.BO.style.width=this.JP+"px",this.BO.style.height=this.tx+"px",this.BO.style.position="fixed"}},i.prototype.ix=function(){var t=this,i=this.vt.docking;if(i.enableOnScrollDown||i.enableOnScrollUp){this.Ax&&this.sx||(this.Ax=this.BO.querySelector(".vp-docked-title"),this.Rx=this.BO.querySelector(".vp-docked-provider"),this.sx=document.createElement("div"),this.sx.setAttribute("class","vp-docked-bg"),this.Lx=document.createElement("img"),this.Lx.setAttribute("class","vp-docked-img"),this.Cx=document.createElement("div"),this.Cx.setAttribute("class","vp-docked-overlay"),this.Dx=document.createElement("div"),this.Dx.setAttribute("class","vp-docked-overlay-text"),this.Dx.innerHTML="Scroll back up to restore default view.",this.Cx.appendChild(this.Dx),this.sx.appendChild(this.Lx),this.sx.appendChild(this.Cx),this.Px||(this.Px=document.createElement("div"),this.Px.setAttribute("class","vp-docked-close-button"),this.xx=new g.default(this.Px,(function(i){i.stopPropagation(),t.undockVideoPlayer(!t.vt.isPaused()),t.publish(D.UI_INTERACT,{srcElement:"ui_pop_close_clk"})})),i.closeButtonFadeIn||W(this.Px).add("vp-nofade")),this.FO&&this.FO.appendChild(this.Px),this.UO&&this.UO.appendChild(this.sx));var n=this.uO();n&&(n.thumbnail&&(this.Lx.setAttribute("src",n.thumbnail),n.title&&this.Lx.setAttribute("alt",n.title)),this.Ax&&n.title&&(this.Ax.innerHTML=n.title))}},i.prototype.YP=function(){var t,i=this.getContentNode().querySelectorAll(".vp-vis-hidden"),n=i.length;for(t=0;t<n;t++)W(i[t]).remove("vp-vis-hidden");this.FO.style.height="",this.vt.uiState.isCSSLoaded=!0},i.prototype.qP=function(){for(var t=this.getContentNode().querySelectorAll(".vp-vis-hidden"),i=t.length,n=0;n<i;n++)W(t[n]).add("vp-disp-none");this.vt.uiState.isCSSLoaded=!1,this.zb.publish(O.WARNING,new E.default(E.E_WARNING,E.WARNING_CODES.E_CSS_DOWNLOAD_FAILED),{shouldRenderErrorScreen:!1})},i.prototype.Ox=function(t){var i=x+t,n=W(this.BO);Object.keys(o).forEach((function(t){var e=x+o[t];n.contains(e)&&e!==i&&n.remove(e)})),n.contains(i)||n.add(i)},i.prototype.gP=function(t,i){var n=W(this.BO),e=U+t,r=n.contains(e);i?r||n.add(e):r&&n.remove(e)},i.prototype.mx=function(){var t=this.vt,i=this.uO();i&&!this.Tx&&(t.showStartScreen&&(this.Tx=this.jP(y.StartScreen,i,t.startScreenConfig,t.uiState),this.Ux()),this.zb.publish(O.START_SCREEN_RENDERED))},i.prototype.hx=function(){var t=this.Tx&&this.Tx.view;t&&(this.FO&&this.FO.removeChild(t.node),this.Tx.destroy(),this.Tx=null)},i.prototype._x=function(t){var i,n,e=this;if(t){var r=this.vt.showEndScreen;if(r){if(!this.BO.querySelector(".vp-end-replay")){var s=M.default.render(C,{});this.Fx=new g.default(s,(function(){e.zb.publish(O.RELATED_ITEM_CLICK,t.id,-1,!1,!1)})),this.FO&&this.FO.appendChild(s),this.Bx=s}!this.Tx&&r&&this.mx(),this.zb.publish(O.END_SCREEN_RENDERED),this.publish(D.UI_INTERACT,{srcElement:"es-view"})}else!this.Tx&&(null===(i=this.e_)||void 0===i?void 0:i.isRendered)&&(null===(n=this.e_)||void 0===n||n.destroyScreen(this.FO),this.mx())}},i.prototype.lx=function(){this.Bx&&this.FO&&(this.FO.removeChild(this.Bx),this.Bx=null),this.Fx&&this.Fx.destroy()},i.prototype.wx=function(t,i,n){if(!this.Nx){var e=(i=i||this.uO())&&i.videoSession||"",r=i?i.thumbnail:null,s=r||"";this.Nx=this.jP(y.ErrorScreen,t,n,e,s),this.publish(D.UI_INTERACT,{srcElement:"err-view-"+t.codeString})}},i.prototype.Sx=function(){this.kI&&this.kI.syncAriaState()},i.prototype.wP=function(t){t?W(this.BO).add("vp-muted"):W(this.BO).remove("vp-muted")},i.prototype.IP=function(){(!this.getFullscreen()||l.userAgent.android&&M.default.getFullscreenElement()===this.BO)&&this.toggleAdViewClickBlocking()},i.prototype.zx=function(t){var i;this.DP&&window.clearTimeout(this.DP),W(this.BO).remove("vp-hide-controls"),t&&W(this.BO).add("vp-keyboard-focus"),this.ZP(!1),this.$P&&W(this.$P).remove("vp-overlay-hide-cursor"),this.vt.isSeeking()||this.vt.isPaused()||(this.DP=window.setTimeout(this.PP.bind(this),z)),null===(i=this.kI)||void 0===i||i.onControlsBarChange(!0),this.getFullscreen()||this.publish(D.CC_POSITION_FLOAT,!0)},i.prototype.Vx=function(){var t;this.DP&&(window.clearTimeout(this.DP),this.DP=null),W(this.BO).add("vp-hide-controls"),W(this.BO).remove("vp-keyboard-focus"),!this.vt.isPaused()&&this.ZP(!0),null===(t=this.kI)||void 0===t||t.onControlsBarChange(!1),this.getFullscreen()||this.publish(D.CC_POSITION_FLOAT,!1)},i.prototype.Oj=function(){this.zx(!1)},i.prototype.Nj=function(t){"mouseout"===t.type&&this.Vx()},i.prototype.PP=function(){this.$P=this.BO&&this.BO.querySelector(".vp-object-overlay"),l.userAgent.mobile&&this.kI&&A.default.canPlayInline&&this.XP.enableClickBlocking(!0),this.Vx()},i.prototype._P=function(){this.DP&&window.clearTimeout(this.DP),this.vt.isSeeking()||(this.DP=window.setTimeout(this.PP.bind(this),z))},i.prototype.U_=function(t){var i,n,e,r=t.width||1,s=t.height||1,o=this.yP(r,s);(this.isStreamMode()||this.isMiniStreamMode())&&o===c.NORMAL&&this.Gx(),l.userAgent.desktop&&(o===c.VERY_SMALL?W(this.BO).add("vp-ministream"):o===c.SMALL?(W(this.BO).add("vp-stream"),null===(i=this.T_)||void 0===i||i.detachUpNextMouseEvents(),(e=this.getContentNode().querySelector(".vp-upnext-playlist"))&&W(e).add("hide")):o===c.NORMAL&&(null===(n=this.T_)||void 0===n||n.attachUpNextMouseEvents(),(e=this.getContentNode().querySelector(".vp-upnext-playlist"))&&W(e).remove("hide")))},i.prototype.Gx=function(){var t=this.getContentNode();W(t).remove("vp-ministream"),W(t).remove("vp-stream"),this.T_.attachUpNextMouseEvents();var i=this.getContentNode().querySelector(".vp-upnext-playlist");i&&W(i).remove("hide")},i.prototype.yP=function(t,i){var n=c.NORMAL;return(t<=h.VERY_SMALL_WIDTH||i<=h.VERY_SMALL_HEIGHT)&&(n=c.VERY_SMALL),(t<=h.SMALL_WIDTH&&t>h.VERY_SMALL_WIDTH||i<=h.SMALL_HEIGHT&&i>h.VERY_SMALL_HEIGHT)&&(n=c.SMALL),n},i.prototype.Hx=function(t){this.publish(D.UI_INTERACT,t)},i.prototype.yx=function(t){var i=this.getContentNode(),n=B+this.k_.playbackMode,e=W(i);Object.keys(I.PlaybackMode).forEach((function(t){var i=B+I.PlaybackMode[t];e.contains(i)&&i!==n&&e.remove(i)})),e.contains(n)||e.add(n)},i.prototype.gx=function(){!this.vt.isPaused()?(this.gP(a.PLAYING,!0),this.gP(a.PAUSED,!1)):(this.gP(a.PLAYING,!1),this.gP(a.PAUSED,!0)),this.publish(D.SYNC_PLAYBACK_STATE)},i.prototype.NP=function(){var t=this,i=this.kI,n=i?i.create():null;n&&Object.keys(n).forEach((function(i){t.FO&&n[i]&&t.FO.appendChild(n[i])})),i.on(p.ControlsEvent.PIP_TOGGLE,(function(i){t.publish(D.PIP_TOGGLE,i)}),this),i.on(p.ControlsEvent.SEEK,(function(i){t.publish(D.SEEK,i)}),this),i.on(p.ControlsEvent.SET_VOLUME,(function(i){t.publish(D.SET_VOLUME,i)}),this),i.on(p.ControlsEvent.SET_MUTE,(function(i){t.publish(D.SET_MUTE,i)}),this),i.on(p.ControlsEvent.TOGGLE_CC,(function(i,n){t.publish(D.TOGGLE_CC,i,n)}),this),i.on(p.ControlsEvent.SET_AUDIO_LANGUAGE,(function(i,n){t.publish(D.SET_AUDIO_LANGUAGE,i,n)}),this),i.on(p.ControlsEvent.UI_INTERACT,(function(i){t.Hx(i)}),this),i.on(p.ControlsEvent.KEY_CHANGE_VOLUME,(function(i){t.publish(D.KEY_CHANGE_VOLUME,i)}),this),i.on(p.ControlsEvent.TOGGLE_PLAY_PAUSE,(function(){t.publish(D.TOGGLE_PLAY_PAUSE)}),this),i.on(p.ControlsEvent.LOGO_CLICK,(function(){var i=t.k_.state===S.States.INIT?D.START_SCREEN_CLICK:D.TOGGLE_PLAY_PAUSE;t.publish(i)}),this),i.on(p.ControlsEvent.FORWARD_SEEK,(function(){t.publish(D.FORWARD_SEEK)}),this),i.on(p.ControlsEvent.BACKWARD_SEEK,(function(){t.publish(D.BACKWARD_SEEK)}),this),i.on(p.ControlsEvent.SET_QUALITY,(function(i){t.f_.setQuality(i)}),this),i.on(p.ControlsEvent.CUSTOM_ELEMENT,(function(i,n){t.publish(D.CUSTOM_ELEMENT,i,n)}),this),i.on(p.ControlsEvent.SET_PLAYBACK_RATE,(function(i){t.publish(D.SET_PLAYBACK_RATE,i)}),this),i.on(p.ControlsEvent.BOTTOM_BAR_FOCUS,(function(){t.Yx()}),this)},i.prototype.VP=function(){var t=this,i=this.T_;i.on(N.PlaylistEvent.UI_INTERACT,(function(i){t.Hx(i)}),this),i.on(N.PlaylistEvent.SCROLLED_TO_END,(function(){t.publish(D.SCROLLED_TO_END)}),this),i.on(N.PlaylistEvent.BOTTOM_HEIGHT_CHANGE,(function(i){t.publish(D.PLAYLIST_BOTTOM_HEIGHT_CHANGE,i)}),this)},i.prototype.Ux=function(){var t=this,i=this.Tx;i.on(y.StartScreenEvent.UI_INTERACT,(function(i){t.Hx(i)}),this),i.on(y.StartScreenEvent.START_SCREEN_CLICK,(function(){t.publish(D.START_SCREEN_CLICK)}),this)},i.prototype.uO=function(){return this.vt.playlist.getCurrentItem()},i.prototype.vx=function(){this.WP&&this.WP.destroy()},Object.defineProperty(i.prototype,"k_",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),i.prototype.jP=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var e=new(t.bind.apply(t,s([void 0],i,!1)));return this.FO.appendChild(e.view.node),e},i.prototype.ZP=function(t){if(this.QP&&this.kI){var i=this.QP.view.node,n=i.firstChild;if(t)return i.setAttribute("style","height: 100%;"),void(l.userAgent.mobile&&(W(n).add("vp-ads-overlay-disable-click"),W(n).remove("vp-ads-overlay-enable-click")));var e=0;this.isStreamMode()?e=G:this.isMiniStreamMode()?e=H:l.userAgent.mobile?(e=Y,W(n).remove("vp-ads-overlay-disable-click"),W(n).add("vp-ads-overlay-enable-click")):e=q;var r=this.getPlayerDimensions().height-e;i.setAttribute("style","height: ".concat(r,"px;"))}},i.prototype.Yx=function(){this.zx(!0)},i}(f.default);i.default=Q},88173:function(t,i,n){t.exports=n(30460)},83119:function(t,i){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,i=0,n=arguments.length;i<n;i++)t+=arguments[i].length;var e=Array(t),r=0;for(i=0;i<n;i++)for(var s=arguments[i],o=0,u=s.length;o<u;o++,r++)e[r]=s[o];return e};Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function t(t){void 0===t&&(t="anonymous"),this.name=t,this.N={},this.I=0}return t.prototype.destroy=function(){this.N={}},t.prototype.addEventListener=function(t,i,n){return this.N?this.R(t,i,n):""},t.prototype.addEventListeners=function(t,i,n){var e=this,r={};return this.N&&t.length?(t.forEach((function(t){var s=i.bind(n,t);r[t]=e.R(t,s,n)})),r):r},t.prototype.on=function(t,i,n){return Array.isArray(t)?this.addEventListeners(t,i,n):this.addEventListener(t,i,n)},t.prototype.removeEventListener=function(t,i){this.N&&t in this.N&&Object.prototype.hasOwnProperty.call(this.N[t],i)&&delete this.N[t][i]},t.prototype.removeEventListeners=function(t){if(this.N&&t)for(var i=0,n=Object.keys(t);i<n.length;i++){var e=n[i],r=t[e];e in this.N&&Object.prototype.hasOwnProperty.call(this.N[e],r)&&(delete this.N[e][r],delete t[e])}},t.prototype.once=function(t,i,n){var e=this,r=this.addEventListener(t,(function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];i.apply(n,Array.prototype.slice.call(s,0)),e.removeEventListener(t,r)}),this);return r},t.prototype.publish=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.N&&t in this.N){var e=this.N[t];e&&this.L(e,t,!1,i);var r=this.N["*"];r&&this.L(r,t,!0,i)}},t.prototype.L=function(t,i,e,r){for(var s=0,o=Object.keys(t);s<o.length;s++){var u=t[o[s]];if(u)try{var a=u.listener;a&&(e?a.apply(u.subscriber,n([i],r)):a.apply(u.subscriber,r))}catch(t){}}},t.prototype.R=function(t,i,n){this.N[t]||(this.N[t]={});var e=t+"_"+ ++this.I;return this.N[t][e]={subscriber:n,listener:i},e},t}();i.default=e},44422:function(t,i,n){t.exports=n(83119)},46956:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.NCP_JARVIS_CODES=i.BRIGHTCOVE_CODES=i.CAST_CODES=i.SAPI_CODES=i.PLAYER_JS_HLS_CODES=i.PLAYER_DRM_CODES=i.PLAYER_CODES=i.WARNING_CODES=i.INFO_CODES=i.AD_CLIENT_CODES=i.E_CAST=i.E_BRIGHTCOVE=i.E_AD_CLIENT=i.E_SAPI_NCP_JARVIS=i.E_SAPI_CLOSEDCAPTION=i.E_SAPI_POPULAR=i.E_SAPI_RELATED=i.E_SAPI_PLAYLIST=i.E_SAPI_STREAM=i.E_SAPI_ABSTRACT=i.E_PLAYER_JS_HLS=i.E_PLAYER_DRM=i.E_PLAYER_FAILOVER=i.E_PLAYER=i.E_YVAP=i.E_WARNING=i.E_INFO=void 0,i.E_INFO="100",i.E_WARNING="200",i.E_YVAP="300",i.E_PLAYER="400",i.E_PLAYER_FAILOVER="407",i.E_PLAYER_DRM="410",i.E_PLAYER_JS_HLS="430",i.E_SAPI_ABSTRACT="500",i.E_SAPI_STREAM="501",i.E_SAPI_PLAYLIST="502",i.E_SAPI_RELATED="503",i.E_SAPI_POPULAR="504",i.E_SAPI_CLOSEDCAPTION="505",i.E_SAPI_NCP_JARVIS="506",i.E_AD_CLIENT="600",i.E_BRIGHTCOVE="700",i.E_CAST="800",i.AD_CLIENT_CODES={E_INTERVENTION_VPAID_FRAME:"1",E_INTERVENTION_NON_VPAID_OR_PLAYER_FRAME:"2",E_INTERVENTION_FROM_PLAYER_FRAME:"3"},i.INFO_CODES={E_SAPI_LICENSE_ERROR:"200",E_SAPI_UNAVAILABLE_TEMP:"201",E_SAPI_GEO:"202",E_SAPI_DEVICE:"203",E_SAPI_EMBED:"204",E_SAPI_BLACKOUT:"208",E_SAPI_AUTH_FAILED:"210",E_SAPI_INVALID_AUTH_KEY_VERSION:"211",E_SAPI_GEO_POSITION_REQUIRED:"212",E_SAPI_RESTRICTED_NETWORK_TYPE:"214",E_SAPI_UNSUPPORTED_LIVE_ON_HTML:"305",E_DRM_UNSUPPORTED_OS:"401",E_DRM_UNSUPPORTED_BROWSER:"402",E_DRM_FORBIDDEN_LICENSE:"403",E_PLAYER_ANDROID_CHROME_REQUIRED:"500",E_FLASH_RENDERER_NOT_SUPPORTED:"605",E_PLAYER_NO_COMPATIBLE_FORMAT:"700",E_PLAYER_360_IS_NOT_SUPPORTED:"701"},i.WARNING_CODES={E_PLAYBACK_TIMEOUT:"1",E_RECOVER_LONG_PAUSE:"50",E_LIVE_PLAYBACK_COMPLETE:"800",E_SSL_MISMATCH:"803",E_CSS_DOWNLOAD_FAILED:"804",E_PLAYBACK_FROZEN_DETECTED:"900",E_ER_TRY:"901",E_RECOVERY_STATUS:"902",E_BUFFER_GAP:"903"},i.PLAYER_CODES={E_PLAYER_NOT_ENABLED:"200",E_FLASH_LIVE_NOT_SUPPORTED:"252",E_NATIVE_ERROR:"303",E_NATIVE_ABORTED:"304",E_NATIVE_NETWORK_FAILURE:"305",E_NATIVE_DECODE_ERROR:"306",E_NATIVE_SRC_NOT_SUPPORTED:"307",E_NATIVE_ENCRYPT_MEDIA:"308",E_NATIVE_PREMATURE_PLAY:"309",E_NATIVE_UNAUTHORIZED_URL:"310",E_NATIVE_URL_NOT_FOUND:"311",E_CMS_JSONP_REQUEST_FAILURE:"101",E_CMS_JSONP_REQUEST_SILENT_FAIL:"102",E_CMS_RESPONSE:"405",E_CMS_JSONP_REQ_TIMEOUT:"408",E_CMS_JSONP_REQ_TIMEOUT_SILENT_FAIL:"409",E_CMS_XHR_REQ_CONNECTION_FAILED:"700",E_CMS_XHR_REQ_CONNECTION_FAILED_TIMEOUT:"701",E_CMS_XHR_RESPONSE_ABSENT:"710",E_CMS_XHR_RESPONSE_ABSENT_TIMEOUT:"711",E_CMS_XHR_REQ_LOAD_FAILED:"720",E_CMS_XHR_REQ_LOAD_TIMEOUT:"721",E_CMS_XHR_REQ_LOAD_408:"722",E_CMS_XHR_REQ_INCOMPLETE:"730",E_CMS_XHR_REQ_INCOMPLETE_TIMEOUT:"731",E_CMS_XHR_REQ_408:"732",E_CMS_XHR_REQ_ERROR:"740",E_CMS_XHR_REQ_TIMEOUT:"750",E_CMS_XHR_REQ_CORS_ERROR:"760",E_INTERNAL_VIOLATION:"600",E_SETUP_ERROR:"404",E_INVALID_CONFIG:"601",E_RECOVERY_FAILURE:"602",E_NO_PLUGIN_FOUND:"603",E_NO_RENDERER_FOUND:"604",E_FLASH_RENDERER_NOT_SUPPORTED:"605"},i.PLAYER_DRM_CODES={E_UNSUPPORTED_OS:"1",E_UNSUPPORTED_BROWSER:"2",E_EME_MISSING:"3",E_INIT:"4",E_CONFIG:"5",E_CERTPATH_MISSING:"6",E_CERT_LOAD_FAILED:"7",E_CERT_NO_DATA:"8",E_NO_KEY_SYSTEM:"9",E_KEY_CREATION_FAILED:"10",E_KEY_SESSION_FAILED:"11",E_KEY_ERROR:"12",E_LICENSE_REQUEST:"13",E_FORBIDDEN_LICENSE:"14"},i.PLAYER_JS_HLS_CODES={MEDIA_ERR_ABORTED:"1",MEDIA_ERR_NETWORK:"2",MEDIA_ERR_DECODE:"3",MEDIA_ERR_SRC_NOT_SUPPORTED:"4",ERR_XHR_LOAD:"11",ERR_PLAYLIST_LOAD:"12",ERR_SUBS_LOAD:"13",ERR_SEGMENT_LOAD:"14",ERR_PARTIAL_LOAD:"15",ERR_MASTER_PLAYLIST_PARSE:"16",ERR_MEDIA_PLAYLIST_PARSE:"17",ERR_SEGMENT_PARSE:"18",ERR_API_NO_NODE:"19",ERR_MIMETYPE_NOT_SUPPORTED:"20",ERR_XHR_LOAD_LIVE_PAUSE:"21",ERR_DRM_EME_MISSING:"22",ERR_DRM_INIT:"23",ERR_DRM_CONFIG:"24",ERR_DRM_LICENSE_REQUEST:"25",ERR_XHR_LOAD_FORBIDDEN:"27"},i.SAPI_CODES={E_INCOMPATIBLE_FORMAT:"100",E_NO_STREAMS:"103",E_UNAUTHORIZED_USER:"205",E_RESTRICTED_TO_INTERNAL:"206",E_DRM_RESTRICTED:"207",E_UNSUPPORTED_FORMAT:"300",E_EXTERNAL_NO_STREAMS:"301",E_NO_PLAYABLE_STREAMS:"302",E_NOT_FOUND:"400",E_EMPTY_LIST:"403",E_DOWNSTREAM_ISSUE:"555"},i.CAST_CODES={E_CONNECTION_REQUEST_FAILED:"1"},i.BRIGHTCOVE_CODES={E_NO_STREAMS:"103",E_CATALOG_API_ERROR:"500"},i.NCP_JARVIS_CODES={E_EMPTY_LIST:"101",E_API_ERROR:"102"}},53872:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Utils=i.TypeChecker=i.Timer=i.Privacy=i.LocalStorage=i.LoaderConstants=i.Loader=i.errorCodes=void 0;var e=n(46956);i.errorCodes=e;var r=n(39044),s=r;i.Loader=r.default,i.LoaderConstants=s;var o=n(96489);i.LocalStorage=o.default;var u=n(74712);i.Privacy=u.default;var a=n(59088);i.Timer=a.default;var c=n(69306);i.TypeChecker=c;var h=n(31803);i.Utils=h.default},39044:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.XHR_TIMEOUT=i.XHR_CORS=i.XHR_ERROR=void 0;var e=n(39451),r=n(41875),s=n(69306),o=n(31803);i.XHR_ERROR="XHR error",i.XHR_CORS="XHR CORS",i.XHR_TIMEOUT="XHR request timed out";var u=function(){function t(){}return t.ajax=function(t,n){t=o.default.fixProtocol(t);var u=o.default.getWindow(),a=n.context,c=n.responseTypeJson,h=n.withCookie,f=n.timeout||3e3,l=o.default.once(n.successHandler),v=o.default.once(n.failureHandler),d=!1,p=null,b={url:t,cors:e.userAgent.ie&&e.userAgent.ie<10||h,withCredentials:h,timeout:f,responseType:n.responseType,headers:n.headers,method:n.method,body:n.body,beforeSend:n.beforeSend};if(a&&l&&v){var m=(new Date).getTime(),y=(0,r.default)(b,(function(e,r,o){var h,b;if(!d){if(n.collectPerfData){if(p={},s.isFunction(y.getResponseHeader)&&(p.resp_len=y.getResponseHeader("Content-Length")||"na"),u.performance&&u.performance.getEntriesByName){var g=0===t.indexOf("http")?t:location.protocol+t;p.resourceTiming=u.performance.getEntriesByName(g).pop(),p.resourceTimingEntries=u.performance.getEntries()}p.http_code=r.statusCode}if(r.timeDiff=(new Date).getTime()-m,e){var w=null;s.isFunction(y.getResponseHeader)&&(w=y.getResponseHeader("Access-Control-Allow-Origin"));var _=u.location.protocol+"//"+u.location.host;if(w&&w!==_){var E=i.XHR_CORS+": originHeader ="+(w||"")+": myOrigin ="+_;v.call(a,new Error(E),"default","cors")}else{var O=r.timeDiff>=f?i.XHR_TIMEOUT:i.XHR_ERROR;v.call(a,new Error(O+": timeDiff ="+r.timeDiff),(null==r?void 0:r.previousState)||(null===(h=null==r?void 0:r.rawRequest)||void 0===h?void 0:h.previousState),r.statusCode,r.timeDiff,p,y)}}else r.statusCode<200||r.statusCode>=300?v.call(a,new Error(i.XHR_ERROR+": statusCode = "+r.statusCode),(null==r?void 0:r.previousState)||(null===(b=null==r?void 0:r.rawRequest)||void 0===b?void 0:b.previousState),r.statusCode,r.timeDiff,p,y):l.call(a,c?JSON.parse(o):o,!1,p,y)}}));y.previousState=y.readyState;var g=y.onreadystatechange;y.onreadystatechange=function(){4===y.readyState?g.call(y):y.previousState=y.readyState}}return function(){d=!0}},t.preconnect=function(t,i){if(document&&!document.head.querySelector("#"+t)){var n=document.createElement("link");n.setAttribute("rel","preconnect"),n.setAttribute("id",t),n.setAttribute("href",i);var e=document.getElementsByTagName("head")[0];e&&e.appendChild(n)}},t}();i.default=u},96489:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(){}return t.get=function(t){var i;try{i=(i=window.localStorage.getItem(t))&&JSON.parse(i)||null}catch(t){i=null}return i},t.put=function(t,i){if(!t||!i)return!1;try{return i=JSON.stringify(i),localStorage.setItem(t,i),!0}catch(t){return!1}},t.remove=function(t){try{localStorage.removeItem(t)}catch(t){return}},t.getAllKeys=function(){var t=[];try{for(var i=0,n=localStorage.length;i<n;++i){var e=localStorage.key(i);e&&t.push(e)}return t}catch(i){return t}},t}();i.default=n},74712:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(){}return t.getGDPRConsentData=function(t){void 0!==window.__tcfapi&&window.__tcfapi("getTCData",2,(function(i,n){var e;n&&t({gdprApplies:i.gdprApplies,gdprConsentData:i.tcString,purposeConsents:(null===(e=i.purpose)||void 0===e?void 0:e.consents)||null},!0)}))},t.getUSPrivacyConsent=function(t){void 0!==window.__uspapi?window.__uspapi("getUSPData",1,(function(i,n){n?t({uspString:i.uspString,gpp:i.gpp||null,gppSid:i.gppSid||"-1"},!0):t(void 0,!1)})):t(void 0,!1)},t.getUSPDoNotSell=function(t){window.__uspapi?window.__uspapi("getDoNotSell",1,(function(i,n){n&&i&&"boolean"==typeof i.doNotSell?t({doNotSell:i.doNotSell},n):t(void 0,!1)})):t(void 0,!1)},t.getVendorConsent=function(t,i){window.__tcfapi&&window.__tcfapi("getTCData",2,(function(n,e){var r;e&&i({gdprApplies:n.gdprApplies,hasConsent:null===(r=null==n?void 0:n.vendor)||void 0===r?void 0:r.consents[t]},!0)}),[t])},t.initIframeForGDPR=function(){var t=this;if(!window.__tcfapi){var i=this.findApiFrame("__tcfapiLocator"),n={};window.__tcfapi=function(e,r,s,o){if(i){var u=Math.random()+"",a={__tcfapiCall:{command:e,parameter:o,version:r,callId:u}};n[u]=s,i.postMessage(a,t.getOrigin())}else s({msg:"CMP not found"},!1)},window.addEventListener("message",(function(i){if(i.origin===t.getOrigin()){var e={};try{e="string"==typeof i.data?JSON.parse(i.data):i.data}catch(t){}if(e.__tcfapiReturn&&"function"==typeof n[e.__tcfapiReturn.callId]){var r=e.__tcfapiReturn;n[r.callId](r.returnValue,r.success),n[r.callId]=null}}}),!1)}},t.findApiFrame=function(t){for(var i=window,n=null;i;){try{if(i.frames[t]){n=i;break}}catch(t){}if(i===window.top)break;i=i.parent}return n},t.getOrigin=function(){return location.origin||location.protocol&&location.host&&location.protocol+"//"+location.host||""},t}();i.default=n},59088:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s=function(t){function i(n,e,r,s){void 0===e&&(e=null),void 0===r&&(r=null),void 0===s&&(s=0);var o=t.call(this,"Timer")||this;if(!n||isNaN(n))throw new Error("Invalid Argument: No delay");return o.delay=Math.max(n,20),o.qx=s>0?s:Number.POSITIVE_INFINITY,o.Wx=0,o.running=!1,o.startTime=0,o.Y=null,o.X={},o.K={},e&&r&&o.addEventListener(i.TIMER_EVENT,e,r),o}return r(i,t),i.prototype.destroy=function(){this.reset(),this.X={},t.prototype.removeEventListeners.call(this,this.K),t.prototype.destroy.call(this)},i.prototype.addEventListener=function(n,e,r){if(void 0===n&&(n=i.TIMER_EVENT),!r)throw new Error("Invalid Argument: No context");var s=t.prototype.addEventListener.call(this,n,e,r);return this.K[n]=s,s},i.prototype.removeEventListener=function(n,e){void 0===n&&(n=i.TIMER_EVENT),void 0===e&&(e=""),t.prototype.removeEventListeners.call(this,this.K)},i.prototype.start=function(){var t=this;this.Y||this.running||(this.Y=window.setInterval((function(){t.Wx++,t.Wx>=t.qx&&t.stop(),t.publish(i.TIMER_EVENT),t.startTime=Date.now()}),this.delay),this.startTime=Date.now(),this.running=!0)},i.prototype.stop=function(){this.Y&&this.running&&(window.clearInterval(this.Y),this.Y=null,this.running=!1,this.startTime=0)},i.prototype.reset=function(){this.stop(),this.Wx=0,this.startTime=0},i.prototype.restart=function(){this.reset(),this.start()},i.TIMER_EVENT="timedOut",i}(n(99147).default);i.default=s},69306:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isNonEmptyString=i.isFunction=i.isObject=i.isString=i.isNumber=i.isNullOrUndefined=i.isBoolean=i.isArray=void 0,i.isArray=function(t){return Array.isArray(t)},i.isBoolean=function(t){return"boolean"==typeof t},i.isNullOrUndefined=function(t){return null==t},i.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},i.isString=function(t){return"string"==typeof t},i.isObject=function(t){return"[object Object]"===(i=t,Object.prototype.toString.call(i));var i},i.isFunction=function(t){return"function"==typeof t},i.isNonEmptyString=function(t){return"string"==typeof t&&""!==t}},31803:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(39451),r=n(69306),s=function(){function t(){}return t.getWindow=function(){return window},t.fixProtocol=function(t){return e.userAgent.samsung&&0===t.indexOf("//")?"https:"+t:t},t.once=function(t){var i=this,n=function(){var e=Array.prototype.slice.call(arguments);return n.called||(n.called=!0,n.value=t.apply(i,e)),n.value};return n.called=!1,n},t.stringifyPrimitive=function(t){return(0,r.isString)(t)?t:(0,r.isBoolean)(t)||(0,r.isNumber)(t)&&isFinite(t)?t.toString():""},t.generateGuid=function(i){return i?(0|16*Math.random()).toString(16):"10000000-1000-4000-8000-100000000000".replace(/1|0/g,t.generateGuid)},t.sanitizeAndUnescape=function(t,i){if(void 0===i&&(i=!0),(0,r.isNullOrUndefined)(t)&&i)return"";if((0,r.isNullOrUndefined)(t))return t;var n=t.toString().replace(/<\/?[^>]+>/g,""),e=document.createElement("div");return e.innerHTML=n,e.textContent},t}();i.default=s},69808:function(t,i){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,i=0,n=arguments.length;i<n;i++)t+=arguments[i].length;var e=Array(t),r=0;for(i=0;i<n;i++)for(var s=arguments[i],o=0,u=s.length;o<u;o++,r++)e[r]=s[o];return e};Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function t(t){void 0===t&&(t="anonymous"),this.name=t,this.N={},this.I=0}return t.prototype.destroy=function(){this.N={}},t.prototype.addEventListener=function(t,i,n){return this.N?this.R(t,i,n):""},t.prototype.addEventListeners=function(t,i,n){var e=this,r={};return this.N&&t.length?(t.forEach((function(t){var s=i.bind(n,t);r[t]=e.R(t,s,n)})),r):r},t.prototype.on=function(t,i,n){return Array.isArray(t)?this.addEventListeners(t,i,n):this.addEventListener(t,i,n)},t.prototype.removeEventListener=function(t,i){this.N&&t in this.N&&Object.prototype.hasOwnProperty.call(this.N[t],i)&&delete this.N[t][i]},t.prototype.removeEventListeners=function(t){if(this.N&&t)for(var i=0,n=Object.keys(t);i<n.length;i++){var e=n[i],r=t[e];e in this.N&&Object.prototype.hasOwnProperty.call(this.N[e],r)&&(delete this.N[e][r],delete t[e])}},t.prototype.once=function(t,i,n){var e=this,r=this.addEventListener(t,(function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];i.apply(n,Array.prototype.slice.call(s,0)),e.removeEventListener(t,r)}),this);return r},t.prototype.publish=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.N&&t in this.N){var e=this.N[t];e&&this.L(e,t,!1,i);var r=this.N["*"];r&&this.L(r,t,!0,i)}},t.prototype.L=function(t,i,e,r){for(var s=0,o=Object.keys(t);s<o.length;s++){var u=t[o[s]];if(u)try{var a=u.listener;a&&(e?a.apply(u.subscriber,n([i],r)):a.apply(u.subscriber,r))}catch(t){}}},t.prototype.R=function(t,i,n){this.N[t]||(this.N[t]={});var e=t+"_"+ ++this.I;return this.N[t][e]={subscriber:n,listener:i},e},t}();i.default=e},99147:function(t,i,n){t.exports=n(69808)},74998:function(t,i,n){"use strict";i.sS=i.aU=void 0;var e=n(78244);Object.defineProperty(i,"aU",{enumerable:!0,get:function(){return e.StreamSynch}}),Object.defineProperty(i,"sS",{enumerable:!0,get:function(){return e.SynchEvents}});var r=n(24955)},11798:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.defaultConfigs=void 0,i.defaultConfigs={pauseOnAhead:!0,syncPoint:3e4,syncThreshold:50,variableRateChange:!1,ffSyncThreshold:200}},90590:function(t,i,n){"use strict";var e=this&&this.__values||function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(i,"__esModule",{value:!0});var r=n(11798),s=n(78166),o=function(){function t(t,i){this.pdt=NaN,this.id=t,this.Qx={},this.Zx=new Map,this.NT(i)}return t.prototype.destroy=function(){this.Qx=null,this.Zx.clear(),this.Zx=null},t.prototype.NT=function(t){var i=s.default.deepCopy(t);i=s.default.mergeObjects(i,r.defaultConfigs),this.config=i},t.prototype.addSegmentInfo=function(t){t&&(this.Qx[t.seqNum]=t)},t.prototype.updateDateRanges=function(t){var i,n;if(t)try{for(var r=e(Object.keys(t)),s=r.next();!s.done;s=r.next()){var o=s.value,u=t[o],a=u.jsonData;u.clockOffset="urn:uplynk:content-data:watchtogether"===u.className&&a?1e3*a.latency_ts-u.startDate:NaN,this.Zx.set(o,u)}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}},t.prototype.getCurrentFramePdt=function(t){var i,n;try{for(var r=e(Object.values(this.Qx)),s=r.next();!s.done;s=r.next()){var o=s.value;if(o.startTime<=t&&o.endTime>t)return o.pdt+1e3*(t-o.startTime)}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return this.pdt+1e3*t},t.prototype.getClockOffset=function(t,i){var n,r,s=[];try{for(var o=e(this.Zx.values()),u=o.next();!u.done;u=o.next()){var a=u.value;a.startDate<=t+a.clockOffset&&(!a.endDate||a.endDate>t+a.clockOffset)&&s.push(a)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var c=this.$x(s,i);return(null==c?void 0:c.clockOffset)||NaN},t.prototype.$x=function(t,i){if(!t.length)return null;var n=t[0];return i.ios?(t.forEach((function(t){n.startDate<t.startDate&&(n=t)})),n):n},t}();i.default=o},78244:function(t,i,n){"use strict";var e,r,s=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.StreamSynch=i.SynchEvents=void 0;var o,u,a,c=n(90590),h=n(24955),f=n(70813),l=n(53872);!function(t){t[t.DISABLED=-1]="DISABLED",t[t.IDLE=0]="IDLE",t[t.SYNCHING_SEEK=1]="SYNCHING_SEEK",t[t.SYNCHING_PAUSE=2]="SYNCHING_PAUSE",t[t.SYNCHING_RATE_CHANGE=3]="SYNCHING_RATE_CHANGE"}(o||(o={})),function(t){t.DESTROY="destroy",t.STOP_API="stopApi",t.INVALID_OFFSET="invalidOffset",t.SYNC_DRIFT="syncDrift",t.IN_SYNC="inSync"}(u||(u={})),function(t){t.SYNCH_STRATEGY_APPLIED="synchStrategyApplied",t.SYNCH_COMPLETE="synchComplete"}(a=i.SynchEvents||(i.SynchEvents={}));var v=((r={})[h.SynchStrategy.SEEK]=0,r[h.SynchStrategy.PAUSE]=0,r[h.SynchStrategy.RATE_CHANGE]=0,r),d=function(t){function i(n,e){var r=t.call(this,"StreamSynch")||this;if(r.Xx=["play","playing","seek","seeking","seeked","ended","error","timeupdate"],r.an=o.DISABLED,r.Kx=v,r.Jx=0,!i.canUse())throw new Error("NOT_SUPPORTED_ERR: Stream synch library cannot be used");if(!n)throw new Error("INVALID_ARG_ERR: Video element cannot be null");return r.tU=n,r.ee(),r.vt=new c.default(n.id,e),r.tU.addEventListener("playing",(function(){var t;r.vt.pdt=r.tU.getStartDate&&(null===(t=r.tU.getStartDate())||void 0===t?void 0:t.getTime())||NaN}),{once:!0}),r.iU=new l.Timer(r.vt.config.syncThreshold,(function(){r.nU.synch(r.tU.currentTime)}),r),r.nU=new h.ClientSynchronizer(r.vt),r.eU(r.nU),h.WebSocketSynchronizer.canUse()&&(r.rU=new h.WebSocketSynchronizer(r.vt),r.eU(r.rU)),r}return s(i,t),i.canUse=function(){return h.default.canUse()&&h.ClientSynchronizer.canUse()},i.prototype.onSetSrc=function(){var t=this;this.vt.pdt=NaN,this.tU.addEventListener("playing",(function(){var i;t.vt.pdt=t.tU.getStartDate&&(null===(i=t.tU.getStartDate())||void 0===i?void 0:i.getTime())||NaN}),{once:!0})},i.prototype.destroy=function(){var i,n;this.In(u.DESTROY),null===(i=this.nU)||void 0===i||i.destroy(),null===(n=this.rU)||void 0===n||n.destroy(),this.re(),this.vt.destroy(),this.iU.destroy(),t.prototype.destroy.call(this)},i.prototype.addSegmentInfo=function(t){t&&this.vt.addSegmentInfo(t)},i.prototype.updateDateRanges=function(t){t&&this.vt.updateDateRanges(t)},i.prototype.getSyncOffset=function(){var t;return(null===(t=this.rU)||void 0===t?void 0:t.syncOffset)||this.nU.syncOffset},i.prototype.startSync=function(){this.an===o.DISABLED&&(this.an=o.IDLE)},i.prototype.stopSync=function(){this.an!==o.DISABLED&&(this.In(u.STOP_API),this.an=o.DISABLED)},i.prototype.getSyncState=function(){return this.an},i.prototype.ee=function(){var t=this;this.xi=this.YM.bind(this),this.Xx.forEach((function(i){t.tU.addEventListener(i,t.xi)}))},i.prototype.re=function(){var t=this;this.Xx.forEach((function(i){t.tU.removeEventListener(i,t.xi)}))},i.prototype.YM=function(t){if(this.an!==o.DISABLED)switch(t.type){case"timeupdate":var i=t.target.currentTime;if(this.rU)return void this.rU.synch(i);this.nU.synch(i);break;case"seeked":this.In(u.IN_SYNC)}},i.prototype.eU=function(t){var i=this;t.on(h.SynchronizerEvents.SEEK,this.sU,this),t.on(h.SynchronizerEvents.PAUSE,this.oU,this),t.on(h.SynchronizerEvents.RATE_CHANGE,this.uU,this),t.on(h.SynchronizerEvents.INVALID_OFFSET,this.cU,this),t.on(h.SynchronizerEvents.DRIFTING,this.hU,this),t.on(h.SynchronizerEvents.IN_SYNCH,(function(){i.In(u.IN_SYNC),i.fU("in synch")}),this)},i.prototype.sU=function(t){this.Ss()&&(this.lU(o.SYNCHING_SEEK,t),this.tU.currentTime=t.targetPosition,this.fU("synch action: seek to"+t.targetPosition))},i.prototype.oU=function(t){this.Ss()&&(this.lU(o.SYNCHING_PAUSE,t),this.tU.pause(),this.iU.start(),this.fU("synch action: pause"))},i.prototype.uU=function(t){this.Ss()&&(this.lU(o.SYNCHING_RATE_CHANGE,t),this.tU.playbackRate=t.playbackRate,this.fU("synch action: change playback rate to"+t.playbackRate))},i.prototype.cU=function(){this.In(u.INVALID_OFFSET),this.fU("invalid offset")},i.prototype.hU=function(){this.In(u.SYNC_DRIFT),this.fU("drifting")},i.prototype.lU=function(t,i){this.an=t,this.Jx||(this.Jx=Date.now()),this.Kx[i.strategy]++,this.publish(a.SYNCH_STRATEGY_APPLIED,i)},i.prototype.In=function(t){if(this.an!==o.DISABLED&&this.an!==o.IDLE){this.an===o.SYNCHING_PAUSE?(this.iU.stop(),this.tU.play()):this.an===o.SYNCHING_RATE_CHANGE&&(this.tU.playbackRate=1);var i={syncMode:"client",syncSource:"sapi",syncDuration:Date.now()-this.Jx,strategies:this.Kx,cause:t};this.an=o.IDLE,this.Jx=0,this.Kx=v,this.publish(a.SYNCH_COMPLETE,i),this.fU("synch completed")}},i.prototype.Ss=function(){return this.an===o.IDLE},i.prototype.fU=function(t){},i}(f.default);i.StreamSynch=d},24955:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.WebSocketSynchronizer=i.ClientSynchronizer=i.SynchStrategy=i.SynchronizerEvents=void 0;var s,o=n(70813),u=n(16201);!function(t){t.IN_SYNCH="inSynch",t.SEEK="synchSeek",t.PAUSE="synchPause",t.RATE_CHANGE="synchRateChange",t.INVALID_OFFSET="synchInvalidOffset",t.DRIFTING="synchDrifting",t.ERROR="synchError"}(s=i.SynchronizerEvents||(i.SynchronizerEvents={}));var a,c=.2;!function(t){t.RATE_CHANGE="rateChange",t.PAUSE="pause",t.SEEK="seek"}(a=i.SynchStrategy||(i.SynchStrategy={}));var h=function(t){function i(i){var n=t.call(this,"Synchronizer")||this;return n.vt=i,n}return r(i,t),i.canUse=function(){return!0},Object.defineProperty(i.prototype,"syncOffset",{get:function(){return NaN},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(o.default);i.default=h;var f=function(t){function i(i){var n=t.call(this,i)||this;return n.vU=NaN,n.dU=NaN,n}return r(i,t),i.canUse=function(){return!0},Object.defineProperty(i.prototype,"syncOffset",{get:function(){return this.vU},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.synch=function(t){if(!(t<0)){var i=this.vt.getCurrentFramePdt(t),n=Date.now()-(i+this.vt.getClockOffset(i,u.userAgent)),e=this.vt.config.syncPoint;if(this.vU=e-n,this.pU(this.vU))return this.dU=NaN,void this.publish(s.DRIFTING);this.dU=this.vU;var r={syncMode:"client",targetLatency:e,liveLatency:n,syncSource:"sapi",targetPosition:t-this.vU/1e3,syncDuration:0,playbackRate:1,synchOffset:this.vU},o=u.userAgent.firefox?this.vt.config.ffSyncThreshold:this.vt.config.syncThreshold;if(Math.abs(this.vU)<o)this.publish(s.IN_SYNCH);else if(isNaN(this.vU))this.publish(s.INVALID_OFFSET);else{if(-this.syncOffset>1e4)return r.strategy=a.SEEK,void this.publish(s.SEEK,r);var h=this.vU>0?.8:1.2;if(r.playbackRate=h,this.vU>0)this.vt.config.pauseOnAhead||u.userAgent.firefox?(r.syncDuration=this.vU,r.playbackRate=0,r.strategy=a.PAUSE,this.publish(s.PAUSE,r)):(r.strategy=a.RATE_CHANGE,r.syncDuration=this.vU/c,this.publish(s.RATE_CHANGE,r));else{if(u.userAgent.ios&&Math.abs(this.vU)<1e3)return;u.userAgent.firefox||u.userAgent.ios?(r.strategy=a.SEEK,this.publish(s.SEEK,r)):(r.strategy=a.RATE_CHANGE,r.syncDuration=this.vU/c,this.publish(s.RATE_CHANGE,r))}}}},i.prototype.pU=function(t){return Math.abs(t)>this.vt.config.syncThreshold&&Math.abs(this.dU)>this.vt.config.syncThreshold&&Math.abs(this.dU)<Math.abs(t)},i}(h);i.ClientSynchronizer=f;var l=function(t){function i(i){var n=t.call(this,i)||this;return n.vU=NaN,n}return r(i,t),i.canUse=function(){return!1},Object.defineProperty(i.prototype,"syncOffset",{get:function(){return this.vU},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.synch=function(t){},i}(h);i.WebSocketSynchronizer=l},78166:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(53872),r=function(){function t(){}return t.deepCopy=function(t){var i=this;if(e.TypeChecker.isNullOrUndefined(t))return t;var n={};return Object.keys(t).forEach((function(r){e.TypeChecker.isArray(t[r])?n[r]=t[r].slice():e.TypeChecker.isObject(t[r])?n[r]=i.deepCopy(t[r]):n[r]=t[r]})),n},t.mergeObjects=function(i,n,r){if(void 0===r&&(r=!1),e.TypeChecker.isNullOrUndefined(i))return n;for(var s in n)if(e.TypeChecker.isObject(i[s]))i[s]=this.mergeObjects(i[s],n[s],r);else if(void 0===i[s]||null===i[s]||r){var o=n[s];e.TypeChecker.isArray(o)?i[s]=o.slice():e.TypeChecker.isObject(o)?i[s]=t.deepCopy(o):i[s]=o}return i},t}();i.default=r},71966:function(t,i){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,i=0,n=arguments.length;i<n;i++)t+=arguments[i].length;var e=Array(t),r=0;for(i=0;i<n;i++)for(var s=arguments[i],o=0,u=s.length;o<u;o++,r++)e[r]=s[o];return e};Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function t(t){void 0===t&&(t="anonymous"),this.name=t,this.N={},this.I=0}return t.prototype.destroy=function(){this.N={}},t.prototype.addEventListener=function(t,i,n){return this.N?this.R(t,i,n):""},t.prototype.addEventListeners=function(t,i,n){var e=this,r={};return this.N&&t.length?(t.forEach((function(t){var s=i.bind(n,t);r[t]=e.R(t,s,n)})),r):r},t.prototype.on=function(t,i,n){return Array.isArray(t)?this.addEventListeners(t,i,n):this.addEventListener(t,i,n)},t.prototype.removeEventListener=function(t,i){this.N&&t in this.N&&Object.prototype.hasOwnProperty.call(this.N[t],i)&&delete this.N[t][i]},t.prototype.removeEventListeners=function(t){if(this.N&&t)for(var i=0,n=Object.keys(t);i<n.length;i++){var e=n[i],r=t[e];e in this.N&&Object.prototype.hasOwnProperty.call(this.N[e],r)&&(delete this.N[e][r],delete t[e])}},t.prototype.once=function(t,i,n){var e=this,r=this.addEventListener(t,(function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];i.apply(n,Array.prototype.slice.call(s,0)),e.removeEventListener(t,r)}),this);return r},t.prototype.publish=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.N&&t in this.N){var e=this.N[t];e&&this.L(e,t,!1,i);var r=this.N["*"];r&&this.L(r,t,!0,i)}},t.prototype.L=function(t,i,e,r){for(var s=0,o=Object.keys(t);s<o.length;s++){var u=t[o[s]];if(u)try{var a=u.listener;a&&(e?a.apply(u.subscriber,n([i],r)):a.apply(u.subscriber,r))}catch(t){}}},t.prototype.R=function(t,i,n){this.N[t]||(this.N[t]={});var e=t+"_"+ ++this.I;return this.N[t][e]={subscriber:n,listener:i},e},t}();i.default=e},70813:function(t,i,n){t.exports=n(71966)},16201:function(t,i,n){"use strict";t.exports={userAgent:n(16474),capabilities:n(44634)}},44634:function(t,i,n){"use strict";var e=n(16474),r={wifi:!0,broadband:!0,dsl:!0,cable:!0};function s(){if("undefined"!=typeof navigator)return(navigator&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)||{}).type}function o(){if(!e.mobile)return!0;var t=e.android&&e.chrome>=50,i=e.ios&&!e.iosWebView&&e.safari>=10;return t||i}t.exports={getConnectionType:s,isAutoplaySupported:o,isAutoplayAllowed:function(t){return!e.mobile||!(!(t=(s()||t||"").replace(/^cs_/i,"").toLowerCase())||!r[t])&&o()}}},16474:function(t,i,n){"use strict";var e="undefined"!=typeof window?window:void 0!==n.g&&n.g.window?n.g.window:{},r=e.navigator?e.navigator:"undefined"!=typeof navigator?navigator:{},s=r.userAgent?r.userAgent.toLowerCase().replace(/<[A-Za-z]+.*?(\/>|>.*?<\/[A-Za-z]+>)|javascript:/g,""):"",o=function(t){if(null===t)return!1;var i=t[1];return parseFloat(i.replace("_",".").split(".",2).join("."))||1},u=function(t){for(var i=(e&&e.location&&e.location.search&&e.location.search.substring(1)||"").split("&"),n=0;n<i.length;n++){var r=i[n].split("=");if(decodeURIComponent(r[0])===t)return decodeURIComponent(r[1])}return null};if(i.ua=s,i.chromium=o(/chromium\/([^\s]*)/.exec(s)),i.edge=o(/edge\/([^\s]*)/.exec(s)),i.opera=/opr\/|opera\//.test(s),i.chrome=!i.chromium&&!i.edge&&!i.opera&&(o(/chrome\/([^\s]*)/.exec(s))||o(/crios\/([^\s]*)/.exec(s))),i.ie=o(/msie ([^;]*)/.exec(s))||o(/trident.*; rv:([0-9.]+)/.exec(s)),i.firefox=!i.ie&&o(/firefox\/([^\s]*)/.exec(s)),i.android=/android/.test(s),i.androidTablet=i.android&&!/mobile/.test(s),i.htc_one=/htc_one/.test(s),i.vizio=/vizio/.test(s)||"vizio"===u("man"),i.tivo=/tivo/.test(s),i.presto=i.opera&&/presto/i.test(s),i.fios=/verizon.*(stb|vms|ipc)/.test(s),i.philips=/philipstv/.test(s),i.toshiba=/tsb/.test(s),i.amazon=i.android&&/amazonwebappplatform/.test(s)&&/aft/.test(s),i.lg=/web0s/.test(s),i.tizen=/tizen/.test(s),i.orsay=/smarttv/.test(s)&&!i.tizen&&!i.lg&&!i.philips,i.samsung=i.orsay||i.tizen,i.sony=/sony|bravia/.test(s),i.playstation=/(playstation)/.test(s),i.ios=/(ipad|iphone|ipod)/.test(s),i.iphone=/(iphone|ipod)/.test(s)&&!/ipad/.test(s),i.ipad=i.ios&&!i.iphone,i.androidBrowser=!i.chrome&&/android/.test(s),i.chromecast=/crkey/.test(s),i.androidVersion=o(/android\s([0-9.]*)/.exec(s)),i.safari=!i.chrome&&!i.chromium&&!i.android&&/safari\/([^\s]*)/.test(s)&&o(/version\/([^\s]*)/.exec(s)),i.iosWebView=i.ios&&!navigator.standalone&&!i.safari,i.iosVersion=i.ios&&o(/\bos ((\d+_?){2,3})\s/.exec(s)),i.mobile=i.ios||i.android&&!i.amazon,i.safariDesktop=!i.mobile&&i.safari,i.tv=i.vizio||i.tivo||i.amazon||i.samsung||i.sony||i.playstation||i.lg||i.fios||i.philips||i.toshiba,i.desktop=!i.mobile&&!i.tv,i.phantomJS=e.window&&e.window.wp,i.tv){var a=void 0!==a?a:void 0!==n.g&&n.g.tv?n.g.tv:{};if(i.class=i.ua,i.vizio)i.os="vizio",i.class=u("class")||u("soc"),a&&a.tts&&(i.class+="-tts");else if(i.tivo)i.os="tivo",/tcd849/.test(s)?i.class="TCD849":/tcd8d9/.test(s)?i.class="TCD8D9":/tcd8f9/.test(s)?i.class="TCD8F9":/tcd8/.test(s)?i.class="TCD8":/tcdd/.test(s)?i.class="TCDD":/tcd7/.test(s)?i.class="TCD7":/tcda9/.test(s)&&(i.class="TCDA9");else if(i.amazon)i.os="amazon",/aftb/.test(s)?i.class="AFTB":/afts/.test(s)?i.class="AFTS":/aftm/.test(s)?i.class="AFTM":/aftn/.test(s)?i.class="AFTN":/aftrs/.test(s)?i.class="AFTRS":/aftt/.test(s)&&(i.class="AFTT");else if(i.lg)i.os="lg",/qtwebengine/.test(s)?i.class="3":/safari\/537/.test(s)?i.class="1":/safari\/538/.test(s)&&(i.class="2");else if(i.samsung){i.os="samsung";var c="default";if(i.tizen){var h=void 0!==h?h:e.tizen;h&&h.systeminfo&&(i.version=h.systeminfo.getCapability("http://tizen.org/feature/platform.version"));var f=void 0!==f?f:e.webapis;if(f&&f.productinfo&&f.productinfo.getRealModel)try{var l=f.productinfo.getRealModel(),v=l.substr(4,isNaN(Number(l[5]))?2:1);c=v+l.substr(1===v.length?5:6,1)}catch(t){c="default"}}else c="orsay";i.class=c}else i.roku||i.chromecast||i.toshiba||i.philips||i.appletv||i.xbox||(i.sony?(i.os="sony",/bdp/.test(s)?i.class="BDP":/bravia|sony-kj/.test(s)?i.class="BRAVIA":i.class="default"):i.playstation?(i.os="playstation",/4pro/.test(s)?i.class="4PRO":/playstation 4/.test(s)?i.class="4":/vita/i.test(s)&&(i.class="VITA")):i.fios?(i.os="fios",/stb/.test(s)?i.class="STB":/vms/.test(s)?i.class="VMS":/ipc/.test(s)&&(i.class="IPC")):i.os=null)}else i.ios?i.os="ios":i.android?i.os="android":/windows|win32/.test(s)?(i.os="windows",i.winXP=/(windows nt 5\.[1-3])/.test(s),i.class=i.winXP?"XP":i.class,i.winVista=/(windows nt 6\.0)/.test(s),i.class=i.winVista?"VISTA":i.class,i.win7=/(windows nt 6\.1)/.test(s),i.class=i.win7?"7":i.class,i.win8=/(windows nt 6\.2)/.test(s),i.class=i.win8?"8":i.class,i.win8_1=/(windows nt 6\.3)/.test(s),i.class=-1*i.win?"8_1":i.class,i.win10=/(windows nt 10\.0)/.test(s),i.class=i.win10?"10":i.class,i.win64=/(wow64|win64)/.test(s),i.architecture=i.win64?"64":"32"):/macintosh|mac_powerpc/.test(s)?i.os="macintosh":/symbos/.test(s)?i.os="symbos":/linux/.test(s)?i.os="linux":i.os=null},10582:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PROVIDER_BRANDING_TEMPLATES=void 0,i.PROVIDER_BRANDING_TEMPLATES={"video.nflhighlights.com":n(49364)}},43382:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=n(10582),s=function(){function t(){this.name="ProviderBrandingPlugin",this.version="8.5.54",this.type=e.Plugin.PluginType.BRANDING,this.mimetype="branding/provider"}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.create=function(t){var i=document.createElement("div"),n=this.bU(t);return n?(i.innerHTML=n,i.children[0]):null},t.prototype.bU=function(t){var i=t&&t.branding&&t.branding.providerId,e=i&&r.PROVIDER_BRANDING_TEMPLATES[i];return this.mU(t)?(n(15005),e.render()):null},t.prototype.mU=function(t){var i=t&&t.branding&&t.branding.providerId,n=i&&r.PROVIDER_BRANDING_TEMPLATES[i],e=t&&t.branding.gameOrigin||[];return!(n&&"video.nflhighlights.com"===i&&e.indexOf("vzw")>-1)&&!!n},t}();i.default=s},44384:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e,r=n(83982);(e=window.crypto||window.msCrypto)||("undefined"!=typeof crypto?e=crypto:"undefined"!=typeof msCrypto&&(e=msCrypto)),e=e&&(e.subtle||e.webkitSubtle)||null;var s={name:"HMAC",hash:{name:"SHA-1"}},o=function(t){for(var i=unescape(encodeURIComponent(t)),n=new ArrayBuffer(i.length),e=new Uint8Array(n),r=0;r<i.length;r++)e[r]=i.charCodeAt(r);return e},u=function(t,i){return new Promise((function(n,r){e&&e.importKey||r(new Error("crypto is not supported by the current browser")),e.importKey("raw",o(i),s,!1,["sign","verify"]).then((function(i){return e.sign(i.algorithm,i,o(t))})).then((function(t){var i;n((i=t,String.fromCharCode.apply(null,Array.prototype.slice.call(new Uint8Array(i)))))})).catch((function(t){r(t)}))}))},a=function(){function t(){}return t.getXAuthParams=function(t,i){var n,e={},s=(new Date).getTime(),o=Math.random().toString(36).slice(2,12),a="",c=1,h=r.default.getSingleton("PlayerHosting");if(h&&(c=h.gv||1,n=h.g||[],Array.isArray(n))){for(var f=[],l=0,v=n;l<v.length;l++){var d=v[l];f.push(String.fromCharCode(d))}a=f.join("")}var p="dev_id="+i+"&nonce="+o+"&ts="+s+"&uuid="+t+"&v="+c;return new Promise((function(t,n){u(p,a).then((function(n){var r=btoa(n);e.xauth_v=c,e.xauth_ts=s,e.xauth_nonce=o,e.xauth_dev_id=i,e.xauth_signature=r,t(e)})).catch((function(t){n({})}))}))},t}();i.default=a},47919:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_MEDIA_ITEM_META=i.DEFAULT_HEIGHT=i.DEFAULT_WIDTH=i.ADPLUGIN_MAPPING=i.DEFAULT_AD_SYSTEM_VERSION=i.DEFAULT_AD_SYSTEM=void 0;var e=n(39451),r=n(88173),s=n(53872),o=n(36827),u=n(83982),a=n(51833),c=n(10582),h=n(44384),f=n(52542),l=n(53872);i.DEFAULT_AD_SYSTEM="vrm",i.DEFAULT_AD_SYSTEM_VERSION="2",i.ADPLUGIN_MAPPING={"adplugin/vrm":"adplugin/martini"};var v="va/vidaweb",d=3e3,p=4e3;i.DEFAULT_WIDTH=640,i.DEFAULT_HEIGHT=360,i.DEFAULT_MEDIA_ITEM_META={title:"",description:"",thumbnail:"",posterUrl:"",duration:0,viewCount:NaN,shareUrl:"",liveState:"",liveLabel:"always",pip:!0,syncPoint:NaN,publishTime:""};var b=function(){function t(t){this.rg=!1,this.vt=t;var i=this.vt.config&&this.vt.config.CMS;this.yU=i&&i.host||f.default.getEnv(i&&i.env||""),s.Loader.preconnect("preconnect-sapi","//"+this.yU)}return t.prototype.resolve=function(t,i,n,e,r){var u=this;if(void 0===i&&(i={}),void 0===r&&(r=0),Array.isArray(t)&&0!==t.length){var c="",h=this.gU(t,i,n),f=r>0?r:0,l=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(!u.rg){var r=i[0],h=void 0,f=i[2],l=i[3];try{h=JSON.parse(r),f.instrument=h.query&&h.query.results&&h.query.results.instrument?JSON.stringify(h.query.results.instrument):"none"}catch(t){}e.onApiCallInfo({perfObj:f,url:c}),u.wU(t,l,r,(function(t,i){if(!t&&i&&i.length){for(var n=0,r=i;n<r.length;n++){var c=(r[n].customConfig||{}).mediaItemStatus||{},h=parseInt(c.code,10);if(!isNaN(h)&&h>100){var f="",l=null;return u._U(s.errorCodes.INFO_CODES,c.code)&&(l=s.errorCodes.E_INFO),c.code===s.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE&&(f=o.default.ERR_RESTRICTED_NETWORK_TYPE),c.code===s.errorCodes.SAPI_CODES.E_UNSUPPORTED_FORMAT&&(l=s.errorCodes.E_SAPI_STREAM),void u.Hf(l,c.code,f,e)}}e.onComplete(i)}else t=t||"",u.Hf(null,a.getErrorCode(),t,e)}))}},v=function t(i,n,r,s,o){if(!u.rg)if(0!==f&&c)f--,u.EU(c,l,t);else{e.onApiCallInfo({perfObj:o||{},url:c});var h=i.message+"; "+c+"; "+n+"; "+r;u.Hf(null,a.getErrorCode(i,n,r),h,e)}};h.then((function(t){c=t,u.EU(c,l,v)})).catch((function(){v.apply(u)}))}},t.prototype.cancel=function(){this.rg=!0},t.prototype.parseMediaItemsResponse=function(t){var i=this;Array.isArray(t)&&t.length>0&&t.forEach((function(t){t.customConfig&&t.customConfig.response&&(i.OU(t,t.customConfig.response,!1),delete t.customConfig.response)}))},t.prototype.getDeviceType=function(){var t,i=navigator.platform.toLowerCase(),n=["mac","win"].some((function(t){return i.indexOf(t)>-1}));return t=e.userAgent.iosVersion&&e.userAgent.iosVersion<13?"ontouchstart"in window:"ontouchstart"in window&&navigator.maxTouchPoints>0,e.userAgent.chromecast?"tv-widget,chromecast":e.userAgent.tv?"tv-widget":!n&&t&&(e.userAgent.ipad||e.userAgent.androidTablet)?"tablet":!n&&t&&e.userAgent.mobile?"smartphone":"desktop"},t.prototype.EU=function(t,i,n){var r=d;e.userAgent.mobile&&!e.userAgent.ios&&(r=p),s.Loader.ajax(t,{context:this,successHandler:i,failureHandler:n,collectPerfData:!0,withCookie:!0,timeout:r})},t.prototype.OU=function(t,n,e){var r=this;void 0===e&&(e=!0);var o=n.meta||{},u=n.streams||[],a=n.license||{},h=t.metadata||{},f=n.metrics||{},d=t.customConfig||{},p=l.Utils.sanitizeAndUnescape(o.description,!1),b=n.bcp||{};if(h.title=o.title||p,h.description=p,h.thumbnail=o.thumbnail,h.posterUrl=o.posterUrl,h.duration=o.duration,h.liveState=o.live_state||i.DEFAULT_MEDIA_ITEM_META.liveState,h.liveLabel=o.live_label||i.DEFAULT_MEDIA_ITEM_META.liveLabel,h.pip=s.TypeChecker.isBoolean(o.pip)?o.pip:i.DEFAULT_MEDIA_ITEM_META.pip,h.syncPoint=s.TypeChecker.isNumber(o.syncpoint)?o.syncpoint:i.DEFAULT_MEDIA_ITEM_META.syncPoint,h.videoTypes=o.video_types,h.publishTime=o.publish_time,h.bcp=b,t.skt=n.sktHeader||"",(null==n?void 0:n.midrolls)&&(t.midrolls=n.midrolls),!d.playlistConfig&&o.playlist_config&&(d.playlistConfig=o.playlist_config),t.customConfig=t.customConfig||{},t.customConfig.nielsenRequired=o.nielsen_beacons||!1,n.status&&(t.customConfig.mediaItemStatus=n.status),o.allowed_connection_types&&(t.customConfig.allowedConnectionTypes=o.allowed_connection_types),t.customConfig.metrics={comscoreCM5:f.comscore_cm5||"",beacons:f.beacons||[],ywa:f.ywa||[],comscore6:f.comscore6||"",pspId:f.pspid||"",plidl:f.plidl||"",isrc:f.isrc||"",mmActivityId:f.mmActivityId||"",mediametrie:f.mediametrie||""},t.customConfig.meta={instrument:o.instrument||{},genre:o.genre||"",showName:o.show_name||"",credits:o.credits||{},eventStart:o.event_start||0,eventEnd:o.event_stop||0,videoMarkers:o.video_markers||null,castable:!(!1===o.castable)},e&&(h.title=h.title||i.DEFAULT_MEDIA_ITEM_META.title,h.description=h.description||i.DEFAULT_MEDIA_ITEM_META.description,h.thumbnail=h.thumbnail||i.DEFAULT_MEDIA_ITEM_META.thumbnail,h.posterUrl=h.posterUrl||i.DEFAULT_MEDIA_ITEM_META.posterUrl,h.duration=h.duration||i.DEFAULT_MEDIA_ITEM_META.duration,h.liveState=h.liveState||i.DEFAULT_MEDIA_ITEM_META.liveState,h.liveLabel=o.live_label||i.DEFAULT_MEDIA_ITEM_META.liveLabel),t.source={streams:u.map((function(t){return r.SU(t)}))},h.type=this.Sl(t.source.streams),t.metadata=h,a){var m={};m.title=a.title,m.accountName=a.account_name,m.originatingProperty=a.originating_property,m.accountId=a.account_id,m.salesforceId=a.salesforce_id,m.isDrm=a.is_drm,t.license=m}if(t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/sapi"},t.visualSeekData.visualSeek=n.visualseek,o.provider&&(t.brandingData=t.brandingData||{branding:{}},o.provider.provider_id&&c.PROVIDER_BRANDING_TEMPLATES[o.provider.provider_id]&&(t.brandingData.mimetype="branding/provider"),t.brandingData.branding=t.brandingData.branding||{},t.brandingData.branding.providerId=o.provider.provider_id,t.brandingData.branding.providerName=o.provider.name,t.brandingData.branding.providerVideoId=o.provider.provider_video_id,t.brandingData.branding.gameOrigin=o.game_origin||[]),!t.adConfig&&n[i.DEFAULT_AD_SYSTEM])t.adConfig={value:n[i.DEFAULT_AD_SYSTEM],mimetype:"adplugin/martini"};else if(t.adConfig){var y=t.adConfig.mimetype;t.adConfig.mimetype=i.ADPLUGIN_MAPPING[y]||y}n.closedcaptions&&(t.closedCaptions=n.closedcaptions),!t.annotationConfig&&n.annotations&&(t.annotationConfig={value:n.annotations,mimetype:v})},t.prototype.wU=function(t,i,n,e){var r=this;try{var o=JSON.parse(n),u=o&&o.query&&o.query.results&&o.query.results.mediaObj;if(!u)return void e("Bad sapi response");var a="";i&&s.TypeChecker.isFunction(i.getResponseHeader)&&(a=i.getResponseHeader("skt")),t.forEach((function(t){u.some((function(i,n){return!(!i||t.id!==i.id)&&(i.sktHeader=a,r.OU(t,i),u.splice(n,1),!0)}))})),e(null,t)}catch(t){e(t.message)}},t.prototype.Hf=function(t,i,n,e){var r={code:i,message:n,category:t||void 0};e.onError(r)},t.prototype._U=function(t,i){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]===i)return!0;return!1},t.prototype.gU=function(t,n,o){var a=this,c=this.vt,h=t.map((function(t){return t.id})).join(","),l=o.rendererTypes,d=o.rendererCapabilities,p={},b={},m=o.privacyConsent,y=o.thumbnailDimensions,g=t[0].adConfig?1:0;!0===(null==n?void 0:n.disableAdFetch)&&(g=1);var w="//"+this.yU+"/v1/video/sapi/streams/"+h;l&&l.forEach((function(t){var i=d[t],n=i.acceptedProtocols,e=i.preferredFormats;n.forEach((function(t){return p[t]=!0})),e.forEach((function(t){return b[t]=!0}))})),y&&y.width&&y.height||(y={width:i.DEFAULT_WIDTH,height:i.DEFAULT_HEIGHT});var _={srid:Math.floor(4294967295*Math.random()),protocol:Object.keys(p).join(","),format:Object.keys(b).join(","),rt:"html",devtype:this.getDeviceType(),offnetwork:!u.default.isOathDomain()&&!u.default.isAllowlistedDomain(),plid:c.guid,region:c.region||"US",site:c.site,expb:c.experienceBucket,expn:c.experienceName,bckt:u.default.getBckt(),lang:c.lang,width:y.width,height:y.height,resize:!0,ps:o.sessionId,autoplay:o.autoplay,image_sizes:"",excludePS:!0,isDockable:c.isDockable?"1":"0",acctid:c.yvapAccountId,synd:c.syndication,pspid:c.pspid,plidl:"",topic:c.cTopic,pver:"",try:s.TypeChecker.isNumber(Number(o.tryCount))?Number(o.tryCount):1,failover_count:s.TypeChecker.isNumber(Number(o.failoverCount))?Number(o.failoverCount):0,ads:i.DEFAULT_AD_SYSTEM+i.DEFAULT_AD_SYSTEM_VERSION,nad:g,"ad.pl":"up"};1===t.length&&(_["ad.plseq"]=o.playlistPosition);for(var E=null,O=0;O<t.length;O++){var S=t[O];if(S.mimetype===r.MediaItemInterfaces.MediaItemMimeType.SAPI&&S.customConfig&&S.customConfig["source-metadata-plugin"]&&s.TypeChecker.isObject(S.customConfig["source-metadata-plugin"].qs)){E=S.customConfig["source-metadata-plugin"].qs;break}}var A=u.default.getPageQueryString(),T=A.get("ad_debug"),M=A.get("upet");T&&(_.ad_debug=T),M&&(_.upet=+M),_.hlspre=!1,c.aspectRatio&&(_.aspectr=c.aspectRatio),m&&!s.TypeChecker.isNullOrUndefined(m.gdprApplies)&&(_.gdpr=!0===m.gdprApplies,_.iabconsent=m.gdprConsentData||""),m&&!s.TypeChecker.isNullOrUndefined(m.uspString)&&(_.usprv=m.uspString||""),!m||s.TypeChecker.isNullOrUndefined(m.gpp)&&"-1"===m.gppSid||(_.gpp=m.gpp||"",_.gppSid=m.gppSid||"-1"),c.pblob&&(_.pblob=c.pblob);var j=this.vt.getVAConfig(v);j&&(_.annotation=j.supportedAnnotation);var N=n.qs||{};if(E&&s.TypeChecker.isObject(E))for(var I in E)Object.prototype.hasOwnProperty.call(E,I)&&(null===E[I]?delete N[I]:N[I]=E[I]);return _=u.default.extend(N,_),A.get("bcp_mode")&&(_.evp="bcp",_.format="mp4"),new Promise((function(t,i){c.allowGeoRequest&&e.userAgent.mobile?a.AU(h).then((function(i){var n=Object.assign({},_,i);t(w+"?"+f.default.getUrlSearchParams(n).toString())})).catch((function(){t(w+"?"+f.default.getUrlSearchParams(_).toString())})):t(w+"?"+f.default.getUrlSearchParams(_).toString())}))},t.prototype.SU=function(t){return t?{url:t.host+t.path,live:t.live,format:t.format,cdn:t.cdn,rcMode:t.rc_mode,mimeType:t.mime_type,aspectRatio:t.aspect_ratio,videoMetadata:{avgBitrate:t.avgbitrate||0,bitrate:t.bitrate||0,framerate:t.framerate||0,height:t.height||0,width:t.width||0,profile:t.h264_profile},audioMetadata:{channels:t.channels||0,forced:t.forced,autoSelect:t.auto_select,default:t.default}}:null},t.prototype.AU=function(t){var i=this;return new Promise((function(n,e){h.default.getXAuthParams(t,i.getDeviceType()).then((function(t){var e=i.vt.geoData;if(e&&e.latitude&&e.longitude&&e.accuracy){var r=e.latitude+";"+e.longitude+" epu="+e.accuracy,s=Object.assign({},t,{"geo-position":r});n(s)}else n(t)})).catch((function(){e({})}))}))},t.prototype.Sl=function(t){return t.some((function(t){return t.live}))?r.MediaItemInterfaces.MediaItemType.LIVE_EVENT:r.MediaItemInterfaces.MediaItemType.VOD},t}();i.default=b},91995:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(39451),r=n(88173),s=n(53872),o=n(58560),u=n(51833),a=n(52542),c=function(){function t(t){this.rg=!1,this.vt=t}return t.prototype.resolve=function(t,i,n){var e=this;if(this.vt.playlistId||this.vt.relatedVideoId){var r=2,s=this.TU(t),o=function(t){e.rg||e.wU(t,(function(t,r){t||!r?(t=t||"",e.Hf(u.getErrorCode(),t,i,n)):(i.onComplete(r),n&&n())}))};this.EU(s,o,(function t(a,c,h){if(!e.rg)if(r>0)r--,e.EU(s,o,t);else{var f=a.message+"; "+s+"; "+c+"; "+h;e.Hf(u.getErrorCode(a,c,h),f,i,n)}}))}else setTimeout((function(){e.Hf(u.getErrorCode(),"No playlist and video id",i,n)}))},t.prototype.cancel=function(){this.rg=!0},t.prototype.EU=function(t,i,n){s.Loader.ajax(t,{context:this,successHandler:i,failureHandler:n,withCookie:!0})},t.prototype.wU=function(t,i){try{var n=JSON.parse(t),e=n&&n.channel&&n.channel.result&&n.channel.result[0]&&n.channel.result[0].videos;if(!e)return void i("No playlist items");i(null,e.map((function(t){return{mimetype:r.MediaItemInterfaces.MediaItemMimeType.SAPI,id:t.id,customConfig:{meta:{instrument:t.instrument||{}}}}})))}catch(t){i(t.message)}},t.prototype.TU=function(t){var i=this.vt,n=i.config||{},r=n.rapidConfig&&n.rapidConfig.pageParams||{},s={video_uuid:i.relatedVideoId||"",channel_id:t.playlistId||"",channel_alias:"",count:t.count||o.PLAYLIST_COUNT_PER_PAGE,start:t.start||0,dev_type:e.userAgent.mobile?"smartphone":"desktop",offnetwork:i.offNetwork,site:n.site||"",region:n.region||"",lang:n.lang||"",expn:n.expName||"",expb:n.expBucket||"",vp:0,image_sizes:o.PLAYLIST_THUMB_DIMENSION,ssl:!0,"context.json":""};return r&&(s["context.json"]=JSON.stringify({pt:r.pt||"",pct:r.pct||"",pstcat:r.pstcat||"",p_sec:r.p_sec||"",p_subsec:r.p_subsec||"",pstaid_p:r.pstaid_p||"",ticker:r.ticker||"",sport:r.sport||""})),i.pblob&&(s.pblob=i.pblob),"//video-api.yql.yahoo.com/v1/video/alias/channels/wf-channel=related-videos?"+a.default.getUrlSearchParams(s).toString()},t.prototype.Hf=function(t,i,n,e){var r={code:t,message:i};n.onError(r),e&&e(r)},t}();i.default=c},52542:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(){}return t.getEnv=function(t){var i="video-api.yql.yahoo.com";switch(t){case"stage":i="video-api-stage.yql.yahoo.com";break;case"beta":i="video.beta.media.yql.yahoo.com";break;default:i="video-api.yql.yahoo.com"}return i},t.getUrlSearchParams=function(t){var i=new URLSearchParams(t);return i.forEach((function(t,i,n){"undefined"!==t&&"null"!==t||n.set(i,"")})),i},t}();i.default=n},48054:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=n(53872),s=n(58560),o=n(83982),u=n(51833),a=n(47919),c=n(52542),h=function(){function t(t){this.vt=t,this.name="SapiMetadataPlugin",this.version="8.5.54",this.mimetype=e.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=e.Plugin.PluginType.METADATA,this.rg=!1,this.MU="",this.Rc={};var i=this.vt.config&&this.vt.config.CMS;this.yU=i&&i.host||c.default.getEnv(i&&i.env||""),this.jU=new a.default(this.vt),r.Loader.preconnect("preconnect-sapi","//"+this.yU)}return t.prototype.prepare=function(t){void 0===t&&(t={}),this.Rc=t},t.prototype.resolve=function(t,i,n){var e=i.rendererTypes,s=i.rendererCapabilities;if(Array.isArray(t)&&0!==t.length&&e)if(e.some((function(t){return s[t].preferredFormats.length>0})))if(this.jU.parseMediaItemsResponse(t),Array.isArray(t)&&t.every(this.ug))setTimeout((function(){n.onComplete(t)}));else{var o=this.Rc.qs||{};this.NU(t,o,i,n)}else this.Hf(r.errorCodes.E_INFO,r.errorCodes.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED,"",n)},t.prototype.recover=function(t,i,n){},t.prototype.cancel=function(){this.rg=!0},t.prototype.destroy=function(){this.cancel()},t.prototype.NU=function(t,i,n,e){var r=this,s=this.IU(t,i,n),o=2,a=function(i){r.rg||r.wU(t,i,(function(t,i){t||!i?(t=t||"",r.Hf(null,u.getErrorCode(),t,e)):e.onComplete(i)}))};this.EU(s,a,(function t(i,n,c){if(!r.rg)if(o>0)o--,r.EU(s,a,t);else{var h=i.message+"; "+s+"; "+n+"; "+c;r.Hf(null,u.getErrorCode(i,n,c),h,e)}}))},t.prototype.EU=function(t,i,n){r.Loader.ajax(t,{context:this,successHandler:i,failureHandler:n,withCookie:!0})},t.prototype.IU=function(t,i,n){var e=t.map((function(t){return t.id})).join(","),r=n.thumbnailDimensions;r&&r.width&&r.height||(r={width:a.DEFAULT_WIDTH,height:a.DEFAULT_HEIGHT}),this.MU=r.width+"x"+r.height;var u=[this.MU,s.PLAYLIST_THUMB_DIMENSION],h={dev_type:this.jU.getDeviceType(),region:this.vt.region||"US",lang:this.vt.lang,site:this.vt.site,image_sizes:u.join(",")};return h=o.default.extend(i,h),"//"+this.yU+"/v1/video/videos/"+e+"?"+c.default.getUrlSearchParams(h).toString()},t.prototype.wU=function(t,i,n){var e=this;try{var r=JSON.parse(i),s=r&&r.videos&&r.videos.result;if(!s)return void n("Bad sapi response");t.forEach((function(t){s.some((function(i,n){return!(!i||t.id!==i.id)&&(e.OU(t,i),s.splice(n,1),!0)}))})),n(null,t)}catch(t){n(t.message)}},t.prototype.OU=function(t,i){var n={};n.title=i.title||i.description||a.DEFAULT_MEDIA_ITEM_META.title,n.description=i.description||a.DEFAULT_MEDIA_ITEM_META.description,n.duration=i.duration||a.DEFAULT_MEDIA_ITEM_META.duration,n.viewCount=i.view_count||a.DEFAULT_MEDIA_ITEM_META.viewCount,n.shareUrl=i.canonical_url||a.DEFAULT_MEDIA_ITEM_META.shareUrl,n.publishTime=i.publish_time||a.DEFAULT_MEDIA_ITEM_META.publishTime,n.posterUrl=this.kU(i.thumbnails)||a.DEFAULT_MEDIA_ITEM_META.posterUrl,n.thumbnail=this.RU(i.thumbnails)||n.posterUrl||a.DEFAULT_MEDIA_ITEM_META.thumbnail,n.liveState=i.live_state||a.DEFAULT_MEDIA_ITEM_META.liveState;var e=t.metadata&&t.metadata.type;e&&(n.type=e),t.customConfig=t.customConfig||{},t.metadata=n},t.prototype.Hf=function(t,i,n,e){var r={code:i,message:n,category:t||void 0};e.onError(r)},t.prototype.kU=function(t){var i=this;if(!t||0===t.length)return"";var n=t.filter((function(t){return t.tag===i.MU})),e=t.filter((function(t){return"original"===t.tag}));return n&&n[0]&&n[0].url||e&&e[0]&&e[0].url||t[0].url||""},t.prototype.RU=function(t){if(!t||0===t.length)return"";var i=t.filter((function(t){return t.tag===s.PLAYLIST_THUMB_DIMENSION}));return i&&i[0]&&i[0].url||t[0].url||""},t.prototype.ug=function(t){return!(!t||!t.metadata||void 0===t.metadata.title||void 0===t.metadata.description||void 0===t.metadata.thumbnail||void 0===t.metadata.posterUrl||void 0===t.metadata.duration)},t}();i.default=h},4102:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=n(58560),s=n(5689),o=n(91995),u=function(){function t(t,i){this.name="SapiMoreItemsPlugin",this.version="8.5.54",this.mimetype=e.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=e.Plugin.PluginType.MORE_ITEMS,this.zn=!1,this.LU=null,this.vt=t,this.Tg=i,this.CU=new o.default(this.vt)}return t.prototype.resolve=function(t,i){var n=this;if(!this.zn)if(this.DU(t))switch(t.playlistId=this.vt.playlistId,t.reason){case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE:case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR:new Promise((function(e){n.CU.resolve(t,i,e)})).then((function(r){t.reason===e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR?n.LU=new Promise((function(e){n.PU(t,i,e)})):n.LU=Promise.resolve(),n.LU.then((function(t){i.onPromisesResolved(!!r&&!!t)}))}));break;case e.Plugin.MoreItemsReason.CONTENT_LOAD_FINISHED:new Promise((function(e){n.CU.resolve(t,i,e)})).then((function(t){i.onPromisesResolved(!!t)}));break;default:this.CU.resolve(t,i)}else i.onPromisesResolved(!1)},t.prototype.cancel=function(){this.CU.cancel()},t.prototype.destroy=function(){this.cancel(),this.zn=!0},t.prototype.prepare=function(){},Object.defineProperty(t.prototype,"playlist",{set:function(t){this.Tg=t},enumerable:!1,configurable:!0}),t.prototype.DU=function(t){var i;if(!this.Tg||this.vt.playlistMimetype===s.STRUCTURED_PLAYLIST_MIMETYPE)return!1;var n=this.Tg.getPosition()+1===this.Tg.getSize(),o=!(!this.vt.playlistId&&!this.vt.relatedVideoId),u=n&&this.vt.continuousPlay&&!this.vt.loop&&o,a=0===this.Tg.getPosition(),c=null===(i=this.vt.playlistUI)||void 0===i?void 0:i.show;switch(t.reason){case e.Plugin.MoreItemsReason.PLAYBACK_STARTED:return!(!c&&(c||a))&&u;case e.Plugin.MoreItemsReason.CONTENT_LOAD_FINISHED:case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE:return u;case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR:return u&&this.vt.skipOnError!==r.SkipOnError.NEVER;case e.Plugin.MoreItemsReason.SOURCE_LOAD_COMPLETE:var h=this.Tg;return!(this.vt.loop||!this.vt.videoRecommendations||!a||!c)&&h.getSize()-h.getPosition()<r.PLAYLIST_COUNT_PER_PAGE;case e.Plugin.MoreItemsReason.SCROLLED_TO_END:return this.vt.continuousPlay&&o;default:return!1}},t.prototype.PU=function(t,i,n){this.zn||(t.start=0,t.count=this.vt.playlistItemCount,t.playlistId="",this.CU.resolve(t,i,n))},t}();i.default=u},42118:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=n(47919),s=function(){function t(t){this.name="SapiSourcePlugin",this.version="8.5.54",this.mimetype=e.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=e.Plugin.PluginType.SOURCE_METADATA,this.fg=!1,this._t=2,this.Rc={},this.xU=!0,this.jU=new r.default(t)}return t.prototype.prepare=function(t){void 0===t&&(t={}),this.Rc=t},t.prototype.resolve=function(t,i,n){var e;this.jU.parseMediaItemsResponse(t),!(Array.isArray(t)&&t.every(this.UU))||this.fg||this.xU?(e=this.fg?0:this._t,this.jU.resolve(t,this.Rc,i,n,e)):t.length>0&&setTimeout((function(){n.onComplete(t)})),this.fg=!1},t.prototype.recover=function(t,i,n){t&&(this.fg=!0,this.resolve([t],i,n))},t.prototype.cancel=function(){this.jU.cancel()},t.prototype.destroy=function(){this.cancel()},t.prototype.UU=function(t){return!!(t&&t.source&&t.source.streams&&t.source.streams[0]&&t.source.streams[0].url)},t}();i.default=s},5689:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.STRUCTURED_PLAYLIST_MIMETYPE=void 0;var e=n(39451),r=n(88173),s=n(53872),o=n(58560),u=n(83982),a=n(66411);i.STRUCTURED_PLAYLIST_MIMETYPE="playlist/structured";var c=function(){function t(t){this.name="StructuredPlaylistPlugin",this.version="8.5.54",this.mimetype=i.STRUCTURED_PLAYLIST_MIMETYPE,this.type=r.Plugin.PluginType.PLAYLIST,this.vt=t,this.FU=null}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.create=function(t,i,e,r){var s=this.wg(t,i),o=document.createElement("div");return this.FU=e,o.innerHTML=a.render({items:s,strings:r}),n(67965),Array.prototype.slice.call(o.children)},t.prototype.onMediaItemEnded=function(t){var i=t.id,n=this.vt.isMediaItemWatched(i),e={id:t.id,position:t.duration,duration:t.duration};this.BU(t)||(this.vt.watchHistory&&this.vt.watchHistory.saveProgress(e,!0),this.zU(i,n))},t.prototype.onMediaPlaybackProgress=function(t,i,n){var e=this.vt.isMediaItemWatched(t),r={id:t,position:i,duration:n};this.vt.watchHistory&&this.vt.watchHistory.saveProgress(r,!0),i%10==0&&this.zU(t,e)},t.prototype.wg=function(t,i){var n=this,e=[];return i.forEach((function(i){if(!n.BU(i)&&i&&i.metadata&&i.metadata.thumbnail){var r=n.VU(i),s=!1;r&&e.push({sectionLabel:r,sectionLabelIcon:n.GU(i),firstItemId:i.id}),n.vt.watchHistory&&n.vt.watchHistory.isWatched(i.id,i.metadata.duration||0)&&(n.vt.setMediaItemWatched(i.id,!0),s=!0),e.push({id:i.id,title:n.Eg(i.metadata.title),thumbnail:i.metadata.thumbnail,duration:n._g(i.metadata.duration),provider:i.brandingData?n.Og(t,i.brandingData):"",labelIcon:n.HU(i),isItemWatched:s})}})),i.length>0&&this.YU(i)&&(this.vt.watchHistoryConfig.skipWatchedVideos=!1),e},t.prototype._g=function(t){return t&&s.TypeChecker.isNumber(t)?u.default.formatTime(t):""},t.prototype.Eg=function(t){var i=e.userAgent.chrome>43;return t?t.length>40&&!i?t.substring(0,40)+"...":t:""},t.prototype.Og=function(t,i){return t===o.PLAYLIST_POS.RIGHT&&i&&i.branding&&i.branding.providerName?i.branding.providerName:""},t.prototype.HU=function(t){var i=t.customConfig&&t.customConfig.playlistConfig;return i&&i.label&&i.label.icons?this.qU(i.label.icons,o.PLAYLIST_LABEL_ICON_DIMENSION):""},t.prototype.VU=function(t){var i=t.customConfig&&t.customConfig.playlistConfig;return i&&i.section&&i.section.label||""},t.prototype.GU=function(t){var i=t.customConfig&&t.customConfig.playlistConfig;return i&&i.section&&i.section.icons?this.qU(i.section.icons,o.PLAYLIST_SECTION_ICON_DIMENSION):""},t.prototype.qU=function(t,i){if(t)for(var n=0,e=t;n<e.length;n++){var r=e[n];if(r.tag===i)return r.url}return""},t.prototype.BU=function(t){return!!(t.customConfig&&t.customConfig.playlistConfig&&t.customConfig.playlistConfig.is_bumper)},t.prototype.zU=function(t,i){var n='.vp-playlist-item[data-id="'+t+'"]',e=this.FU&&this.FU.querySelector(n);e&&(i?this.WU(e):this.QU(e))},t.prototype.WU=function(t){var i=t.querySelector(".yvp-playlist-item-watched");i&&i.classList.add("yvp-show")},t.prototype.QU=function(t){var i=t.querySelector(".yvp-playlist-item-watched");i&&i.classList.remove("yvp-show")},t.prototype.YU=function(t){var i=this;return t.every((function(t){if(!t||!t.metadata)return!1;if(i.BU(t))return!0;var n=t.metadata&&t.metadata.duration;return i.vt.watchHistory&&i.vt.watchHistory.isWatched(t.id,n||0)||!1}))},t}();i.default=c},80255:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=function(){function t(){this.name="SapiVisualSeek",this.version="8.5.54",this.type=e.Plugin.PluginType.VISUAL_SEEK,this.visualSeekType=e.Plugin.VisualSeekType.SPRITE,this.mimetype="visualseek/sapi",this.Sg={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this.Sg={}},t.prototype.canSeek=function(t){return t&&!(!this.Sg[t]||!this.Sg[t].visualSeek)||!1},t.prototype.update=function(t,i){var n=this.Sg[t]||{};n.visualSeek=i&&i.visualSeek||n.visualSeek,this.Sg[t]=n},t.prototype.getThumbnailData=function(t,i){var n=this.Sg[t]&&this.Sg[t].visualSeek;if(!(n&&n.width&&n.height&&n.frequency&&n.images))return null;var e=Math.ceil(Math.floor(i)/n.frequency),r=this.RU(n.images,e);return r?{index:e,isAd:!1,url:r,width:n.width,height:n.height}:null},t.prototype.RU=function(t,i){for(var n=0,e=t;n<e.length;n++){var r=e[n],s=r.start_index,o=r.count,u=r.url;if(s<=i&&i-s<o)return u}return null},t}();i.default=r},49628:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.PLAYER_LOCATION=void 0;var s,o=n(88173),u=n(53872),a=n(83982),c=n(13742),h=n(58560);!function(t){t.EMBD_OFF_NET="Emb offNet",t.EMBD_ON_NET="Emb onNet",t.ON_PROP="onProp"}(s=i.PLAYER_LOCATION||(i.PLAYER_LOCATION={}));var f=function(t){function i(i){var n,e=t.call(this,i)||this;return e.pageLatency="",e.mmActivityId="",e._ex=c.HIDE_KEY,e._NOL=c.HIDE_KEY,e.test="",e.cached_vs="",e.expn="",e.expt="",e.expb="",e.vsid="",e.lms_id="",e.bckt="",e.env="",e.ccap="",e.loc="",e.site="",e.intl="",e.lang="",e.ccode="",e.sec="",e.cpos="",e.pt="",e.pd="",e.pct="",e.pstcat="",e.p_sec="",e.p_subsec="",e.ver="",e.pstaid_p="",e.pkgt="",e.rlvtscr="",e.subsec="",e._rid="",e.vidPos="",e.layout="",e.bx="",e.ar="",e.vrmver=c.VRM_VERSION,e.ZU="",e.$U="",e.pl_type="",e.pl_uuid="",e.pl_intr="",e.pl_algo="",e.pl_id="",e.pl_bckt="",e.pl_pos="",e.pl_seed="",e.pl_ctx="",e.pl_sec="",e.bckt=a.default.getBckt(),e.loc=e.XU(),e.s=(null===(n=i.oathConfig)||void 0===n?void 0:n.pageSpaceId)||h.DEFAULT_PAGE_SPACE_ID,e}return r(i,t),i.prototype.update=function(n){var e,r;t.prototype.update.call(this,n),this.expn=n.experienceName&&n.experienceName.toLowerCase()||this.expn,this.expb=n.experienceBucket||this.expb,this.test=this.expb,this.expt=n.experienceType&&n.experienceType.toLowerCase()||this.expt,this.s=n.pageSpaceId||this.s,this.pt=n.pt||this.pt,this.pd=n.pd||this.pd,this.pct=n.pct||this.pct,this.pstcat=n.pstcat||this.pstcat,this.ver=n.ver||this.ver,this.p_sec=n.p_sec||this.p_sec,this.p_subsec=n.p_subsec||this.p_subsec,this._rid=n._rid||this._rid,this.pstaid_p=n.pstaid_p||this.pstaid_p,this.pkgt=n.pkgt||this.pkgt,this.rlvtscr=n.rlvtscr||this.rlvtscr,this.sec=n.sec||this.sec,this.subsec=n.subsec||this.subsec,this.vidPos=n.vidPos||this.vidPos,this.layout=n.layout||this.layout,this.cpos=n.cpos||this.cpos,this.ccode=n.ccode||this.ccode,this._ex=n.offNetwork?"1":this._ex,this._NOL=n.offNetwork?"1":this._NOL,this.site=n.site&&n.site.toLowerCase()||this.site,this.intl=n.region&&n.region.toLowerCase()||this.intl,this.lang=n.lang&&n.lang.toLowerCase()||this.lang,this.expm=n.experienceName&&"lightbox"===n.experienceName.toLowerCase()?"lightbox":this.expm,this.lms_id=n.license&&n.license.salesforceId||this.lms_id,this.pageLatency=n.pageLatency,this.pltype=a.default.getPlayerType(),this.mmActivityId=n.customConfig&&n.customConfig.metrics&&n.customConfig.metrics.mmActivityId||this.mmActivityId,this.pl_type=i.getPlaylistType(n.playlistUIConfig)||this.pl_type,this.pl_uuid=n.playlistId||this.pl_uuid,this.pl_intr=this.KU(n)||this.pl_intr;var s=(null===(r=null===(e=null==n?void 0:n.customConfig)||void 0===e?void 0:e.meta)||void 0===r?void 0:r.instrument)||{};this.pl_algo=(null==s?void 0:s.pl_algo)||"",this.pl_id=(null==s?void 0:s.pl_id)||"",this.pl_bckt=(null==s?void 0:s.pl_bckt)||"",this.pl_pos=(null==s?void 0:s.pl_pos)||"",this.pl_seed=(null==s?void 0:s.pl_seed)||"",this.pl_ctx=(null==s?void 0:s.pl_ctx)||"",this.pl_sec=this.JU(n)||this.pl_sec,this.bx=a.default.getCookie("BX")||this.bx,this.ar=n.aspectRatio||this.ar,this._w=n.href||this._w,this._R=n.ref||this._R},i.prototype.getCommonParams=function(){var i=this,n=t.prototype.getCommonParams.call(this)||{};return c.PARAMS.forEach((function(t){i[t]!==c.HIDE_KEY&&(n[t]=i[t])})),n},Object.defineProperty(i.prototype,"jsdt",{get:function(){return""===this.$U&&(this.$U=i.getJSDownloadTime()),this.$U},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cssdt",{get:function(){if(""===this.ZU){var t=a.default.getResourceLoadTime(/core-video-player\.css$/);this.ZU=u.TypeChecker.isNumber(t)?Math.round(t).toString():"na"}return this.ZU},enumerable:!1,configurable:!0}),i.getJSDownloadTime=function(){var t,i,n,e,r=null===(e=null===(n=null===(i=null===(t=a.default.getWindow().OATH)||void 0===t?void 0:t.VideoPlatform)||void 0===i?void 0:i.PlayerHosting)||void 0===n?void 0:n.req)||void 0===e?void 0:e.path,s=r&&r.split("/").pop().split("?")[0]||"oath-player.js",o=new RegExp(s),c=a.default.getResourceLoadTime(o);return u.TypeChecker.isNumber(c)?Math.round(c).toString():"na"},i.getPageLatency=function(){var t,i,n,e=a.default.getWindow();return(null===(i=null===(t=e.performance)||void 0===t?void 0:t.timing)||void 0===i?void 0:i.navigationStart)&&(n=(new Date).getTime()-e.performance.timing.navigationStart),n||""},i.getPlaylistType=function(t){var i=!0===(null==t?void 0:t.show)&&(null==t?void 0:t.position);return"right"!==i||(null==t?void 0:t.inStream)?i||c.PLAYLIST_POSITION.NONE:c.PLAYLIST_POSITION.HERO},i.prototype.XU=function(){var t=s.ON_PROP;return a.default.isOffNetwork()?t=s.EMBD_OFF_NET:a.default.isIframe()&&(t=s.EMBD_ON_NET),t},i.prototype.KU=function(t){var i,n,e=null===(n=null===(i=null==t?void 0:t.customConfig)||void 0===i?void 0:i.meta)||void 0===n?void 0:n.instrument,r="";return e&&Object.keys(e).length>0&&(r=JSON.stringify(e)),r},i.prototype.JU=function(t){var i,n,e;return(null===(e=null===(n=null===(i=null==t?void 0:t.customConfig)||void 0===i?void 0:i.playlistConfig)||void 0===n?void 0:n.section)||void 0===e?void 0:e.type)||""},i}(o.Analytics.AnalyticsModel);i.default=f},50155:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s=n(88173),o=n(83982),u=n(49628),a=n(53872),c=n(58560),h=n(39451),f="https://bats.video.yahoo.com/p",l="error",v=function(t){function i(i){return t.call(this,i)||this}return r(i,t),i.sendGenericBeacon=function(t){var i;if(!(null===(i=h.userAgent.ua)||void 0===i?void 0:i.includes("+https://www.comscore.com/web-crawler"))){var n=f+"?"+new URLSearchParams(t).toString();n=n.replace(/[!'()]/g,escape).replace(/\*/g,"%2A"),o.default.sendImageBeacon(n)}},i.prototype.jy=function(i){this.tF(i),t.prototype.jy.call(this,i)},i.prototype.Iy=function(i,n){if("ad_dlv"===(i.evt&&i.evt.toLowerCase()))this.tF(n);t.prototype.Iy.call(this,i,n)},i.prototype.Dy=function(i,n){t.prototype.Dy.call(this,i,n)},i.prototype.Py=function(t){return new u.default(t)},i.prototype.tF=function(t){var i;t.pgltcy=(null===(i=this.vt.pageLatency)||void 0===i?void 0:i.toString())||"na";var n=this.vt.mmActivityId;n&&(t.mm_activity_id=n)},i.sendScriptLoadBeacon=function(){if(!window.sentScriptLoadBeacon){for(var t=document.getElementsByTagName("script"),n="",e=0;e<t.length;e++){var r=t[e];if(r.src&&r.src.match(/oath-player\.js/)){n=r.src;break}}var s={_R:document.referrer||"",_V:"test",_w:document.location.href||"",bckt:o.default.getBckt()||"",evt:"s_load",src:n,s:"1197809794",host:document.location.host||"",pver:"8.5.54",t:Math.random()};i.sendGenericBeacon(s),window.sentScriptLoadBeacon=!0}},i.sendPlayerInitBeacon=function(t){for(var n,e,r,a,h,f,l,v,d,p,b,m,y,g,w,_,E,O,S,A,T,M,j,N,I,k,R,L,C,D,P,x,U,F,B,z,V,G,H,Y,q,W,Q,Z,$,X,K,J,tt=[],it=1;it<arguments.length;it++)tt[it-1]=arguments[it];var nt=t.width,et=t.height,rt={_R:i.getR(t.rapidConfig),_V:"V",_w:i.getW(t.rapidConfig),bckt:o.default.getBckt()||"",evt:"p_init",expb:t.expBucket||"",expn:t.expName||"",host:document.location.host||"",pls:t.playerId||"",s:t.pageSpaceId||(null===(n=t.rapidConfig)||void 0===n?void 0:n.Spaceid)||c.DEFAULT_PAGE_SPACE_ID,pver:tt[0],site:t.site||"",lang:t.lang||"",region:t.region||"",snd:!0===t.mute?"m":"um",endscreen:!0===(null===(r=null===(e=t.ui)||void 0===e?void 0:e.endScreen)||void 0===r?void 0:r.show)?"1":"0",jsdt:u.default.getJSDownloadTime(),pgltcy:u.default.getPageLatency(),psz:nt&&et?nt+"x"+et:"",ccode:(null===(a=t.metrics)||void 0===a?void 0:a.ccode)||"",cpos:(null===(h=t.metrics)||void 0===h?void 0:h.cpos)||"",sec:(null===(l=null===(f=t.rapidConfig)||void 0===f?void 0:f.clickParams)||void 0===l?void 0:l.sec)||(null===(v=t.metrics)||void 0===v?void 0:v.sec)||"",pl_type:u.default.getPlaylistType(null===(d=t.ui)||void 0===d?void 0:d.playlist),pl_uuid:(null===(p=t.playlist)||void 0===p?void 0:p.id)||"",deos:!0===(null===(m=null===(b=t.ui)||void 0===b?void 0:b.docking)||void 0===m?void 0:m.enableOnScrollDown)?"1":"0",deom:!0===(null===(g=null===(y=t.ui)||void 0===y?void 0:y.docking)||void 0===g?void 0:g.enableOnMuted)?"1":"0",pt:(null===(_=null===(w=t.rapidConfig)||void 0===w?void 0:w.pageParams)||void 0===_?void 0:_.pt)||"",pd:(null===(O=null===(E=t.rapidConfig)||void 0===E?void 0:E.pageParams)||void 0===O?void 0:O.pd)||"",pct:(null===(A=null===(S=t.rapidConfig)||void 0===S?void 0:S.pageParams)||void 0===A?void 0:A.pct)||"",ver:(null===(M=null===(T=t.rapidConfig)||void 0===T?void 0:T.pageParams)||void 0===M?void 0:M.ver)||"",layout:(null===(N=null===(j=t.rapidConfig)||void 0===j?void 0:j.pageParams)||void 0===N?void 0:N.layout)||"",pstaid_p:(null===(k=null===(I=t.rapidConfig)||void 0===I?void 0:I.clickParams)||void 0===k?void 0:k.pstaid)||"",continuousPlay:!0===t.continuousPlay?"1":"0",loop:!0===t.loop?"1":"0",preload:!0===t.preload?"1":"0",ccOnMute:!0===t.ccOnMute?"1":"0",startTime:!0===(null===(R=t.playback)||void 0===R?void 0:R.startTime)?"1":"0",videoRecommendations:!0===t.videoRecommendations?"1":"0",disadf:!0===(null===(D=null===(C=null===(L=t.pluginConfigs)||void 0===L?void 0:L[s.Plugin.PluginType.SOURCE_METADATA])||void 0===C?void 0:C[s.MediaItemInterfaces.MediaItemMimeType.SAPI])||void 0===D?void 0:D.disableAdFetch)?"1":"0",dopl:(null===(U=null===(x=null===(P=t.ui)||void 0===P?void 0:P.docking)||void 0===x?void 0:x.position)||void 0===U?void 0:U.left)||"",dopr:(null===(z=null===(B=null===(F=t.ui)||void 0===F?void 0:F.docking)||void 0===B?void 0:B.position)||void 0===z?void 0:z.right)||"",dopt:(null===(H=null===(G=null===(V=t.ui)||void 0===V?void 0:V.docking)||void 0===G?void 0:G.position)||void 0===H?void 0:H.top)||"",dopb:(null===(W=null===(q=null===(Y=t.ui)||void 0===Y?void 0:Y.docking)||void 0===q?void 0:q.position)||void 0===W?void 0:W.bottom)||"",doth:(null===(Z=null===(Q=t.ui)||void 0===Q?void 0:Q.docking)||void 0===Z?void 0:Z.threshold)||"",dow:(null===(X=null===($=t.ui)||void 0===$?void 0:$.docking)||void 0===X?void 0:X.width)||"",doh:(null===(J=null===(K=t.ui)||void 0===K?void 0:K.docking)||void 0===J?void 0:J.height)||"",t:Math.random(),ts:Date.now()-tt[1]};i.sendGenericBeacon(rt)},i.sendInterventionReports=function(t,n){for(var e,r,c,h,v,d,p,b,m,y,g,w,_,E,O,S,A,T,M,j,N,I,k,R,L,C,D,P,x,U,F,B,z,V,G,H,Y,q,W,Q,Z,$,X,K,J,tt,it,nt,et={_R:i.getR(n.rapidConfig),_V:"V",_w:i.getW(n.rapidConfig),bckt:o.default.getBckt()||"",evt:l,ecode:a.errorCodes.E_AD_CLIENT+"-"+a.errorCodes.AD_CLIENT_CODES.E_INTERVENTION_FROM_PLAYER_FRAME,estring:"",s:n.pageSpaceId||(null===(e=n.rapidConfig)||void 0===e?void 0:e.Spaceid)||"1197809794",expn:n.expName||"",host:document.location.host||"",pver:"8.5.54",pls:n.playerId||"",site:n.site||"",lang:n.lang||"",region:n.region||"",snd:!0===n.mute?"m":"um",endscreen:!0===(null===(c=null===(r=n.ui)||void 0===r?void 0:r.endScreen)||void 0===c?void 0:c.show)?"1":"0",jsdt:u.default.getJSDownloadTime(),pgltcy:u.default.getPageLatency(),psz:n.width&&n.height?n.width+"x"+n.height:"",ccode:(null===(h=n.metrics)||void 0===h?void 0:h.ccode)||"",cpos:(null===(v=n.metrics)||void 0===v?void 0:v.cpos)||"",sec:(null===(p=null===(d=n.rapidConfig)||void 0===d?void 0:d.clickParams)||void 0===p?void 0:p.sec)||(null===(b=n.metrics)||void 0===b?void 0:b.sec)||"",pl_type:u.default.getPlaylistType(null===(m=n.ui)||void 0===m?void 0:m.playlist),pl_uuid:(null===(y=n.playlist)||void 0===y?void 0:y.id)||"",deos:!0===(null===(w=null===(g=n.ui)||void 0===g?void 0:g.docking)||void 0===w?void 0:w.enableOnScrollDown)?"1":"0",deom:!0===(null===(E=null===(_=n.ui)||void 0===_?void 0:_.docking)||void 0===E?void 0:E.enableOnMuted)?"1":"0",pt:(null===(S=null===(O=n.rapidConfig)||void 0===O?void 0:O.pageParams)||void 0===S?void 0:S.pt)||"",pd:(null===(T=null===(A=n.rapidConfig)||void 0===A?void 0:A.pageParams)||void 0===T?void 0:T.pd)||"",pct:(null===(j=null===(M=n.rapidConfig)||void 0===M?void 0:M.pageParams)||void 0===j?void 0:j.pct)||"",ver:(null===(I=null===(N=n.rapidConfig)||void 0===N?void 0:N.pageParams)||void 0===I?void 0:I.ver)||"",layout:(null===(R=null===(k=n.rapidConfig)||void 0===k?void 0:k.pageParams)||void 0===R?void 0:R.layout)||"",pstaid_p:(null===(C=null===(L=n.rapidConfig)||void 0===L?void 0:L.clickParams)||void 0===C?void 0:C.pstaid)||"",continuousPlay:!0===n.continuousPlay?"1":"0",loop:!0===n.loop?"1":"0",preload:!0===n.preload?"1":"0",ccOnMute:!0===n.ccOnMute?"1":"0",startTime:!0===(null===(D=n.playback)||void 0===D?void 0:D.startTime)?"1":"0",videoRecommendations:!0===n.videoRecommendations?"1":"0",disadf:!0===(null===(U=null===(x=null===(P=n.pluginConfigs)||void 0===P?void 0:P[s.Plugin.PluginType.SOURCE_METADATA])||void 0===x?void 0:x[s.MediaItemInterfaces.MediaItemMimeType.SAPI])||void 0===U?void 0:U.disableAdFetch)?"1":"0",dopl:(null===(z=null===(B=null===(F=n.ui)||void 0===F?void 0:F.docking)||void 0===B?void 0:B.position)||void 0===z?void 0:z.left)||"",dopr:(null===(H=null===(G=null===(V=n.ui)||void 0===V?void 0:V.docking)||void 0===G?void 0:G.position)||void 0===H?void 0:H.right)||"",dopt:(null===(W=null===(q=null===(Y=n.ui)||void 0===Y?void 0:Y.docking)||void 0===q?void 0:q.position)||void 0===W?void 0:W.top)||"",dopb:(null===($=null===(Z=null===(Q=n.ui)||void 0===Q?void 0:Q.docking)||void 0===Z?void 0:Z.position)||void 0===$?void 0:$.bottom)||"",doth:(null===(K=null===(X=n.ui)||void 0===X?void 0:X.docking)||void 0===K?void 0:K.threshold)||"",dow:(null===(tt=null===(J=n.ui)||void 0===J?void 0:J.docking)||void 0===tt?void 0:tt.width)||"",doh:(null===(nt=null===(it=n.ui)||void 0===it?void 0:it.docking)||void 0===nt?void 0:nt.height)||"",t:Math.random()},rt=0,st=t;rt<st.length;rt++){var ot=st[rt];et.estring=JSON.stringify(ot),et.evt=/A\sfuture\sversion/.test(ot.body.message)?"warn":l;var ut=f+"?"+new URLSearchParams(et).toString();ut=ut.replace(/[!'()]/g,escape).replace(/\*/g,"%2A"),"HeavyAdIntervention"===ot.body.id&&navigator.sendBeacon(ut,JSON.stringify(ot))}},i.getW=function(t){var i,n,e=null===(n=null===(i=null==t?void 0:t.pageParams)||void 0===i?void 0:i._w)||void 0===n?void 0:n.trim(),r=document.location.href||"";return(null==e?void 0:e.length)>0?e:r},i.getR=function(t){var i,n,e=null===(n=null===(i=null==t?void 0:t.pageParams)||void 0===i?void 0:i._R)||void 0===n?void 0:n.trim(),r=document.referrer||"";return(null==e?void 0:e.length)>0?e:r},i}(s.Analytics.CoreAnalytics);i.default=v},41097:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=n(83982),s=function(){function t(t){this.nm=t,this.iF={},this.nF={event:"video_view",account:"6313395549001",player_name:"UP",domain:"videocloud",session:"",destination:"",time:0,reference_id:"",video:""},this.nm&&this.Tm()}return t.prototype.Tm=function(){var t;null===(t=this.nm)||void 0===t||t.addEventListener(e.Events.PLAYBACK_START,this.py,this)},t.prototype.py=function(t){var i;if("bcp"===t.cdn){var n=this.eF(t);if(!this.iF[n]){this.iF[n]=1;var e={Authorization:"Bearer "+(null===(i=t.bcp)||void 0===i?void 0:i.dc_token)};try{r.default.sendBeaconWithHeader(this.rF(t),e)}catch(t){}}}},t.prototype.eF=function(t){var i;return(null===(i=this.nm)||void 0===i?void 0:i.guid)+"-"+t.bcp.v_id},t.prototype.rF=function(t){var i,n,e,s=new URL(r.default.getHostUrl()).origin,o=r.default.parseDomain(s);return this.nF.account=(null===(i=t.bcp)||void 0===i?void 0:i.a_id)||"6313395549001",this.nF.video=(null===(n=t.bcp)||void 0===n?void 0:n.v_id)||"",this.nF.time=t.currentTs,this.nF.reference_id=t.videoId,this.nF.session=null===(e=this.nm)||void 0===e?void 0:e.guid,this.nF.destination=s,this.nF.player_name+=":"+t.playerVersion+"-"+(t.site||o),"https://metrics.brightcove.com/v2/tracker?"+new URLSearchParams(this.nF)},t}();i.default=s},22501:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=n(53872),s=n(83982),o=n(13742),u="Yahoo",a=function(){function t(t){this.nm=t,this.sF="",this.gdpr="",this.gdpr_consent="",this.oF=!1,t&&(r.Privacy.initIframeForGDPR(),this.wm(),this.uF={},this.aF())}return t.prototype.destroy=function(){this.uF=null},t.prototype.Tm=function(){this.nm.addEventListener(e.Events.PLAYBACK_REQUEST,this.x_,this),this.nm.addEventListener(e.Events.PLAYBACK_START,this.cF,this),this.nm.addEventListener(e.Events.PLAYBACK_RESUMED,this.hF,this),this.nm.addEventListener(e.Events.PLAYBACK_COMPLETE,this.fF,this),this.nm.addEventListener(e.Events.PLAYBACK_STOPPED,this.fF,this),this.nm.addEventListener(e.Events.PLAYBACK_STALLED,this.fF,this),this.nm.addEventListener(e.Events.PLAYBACK_BLOCKED,this.fF,this),this.nm.addEventListener(e.Events.PLAYBACK_PAUSE,this.lF,this),this.nm.addEventListener(e.Events.AD_PLAYBACK_STARTED,this.vF,this),this.nm.addEventListener(e.Events.AD_PLAYBACK_ENDED,this.dF,this)},t.prototype.aF=function(){var t,i=this,n="local"===this.nm.version?"/comscore-6.3.5.min.js":"https://assets.video.yahoo.net/oath/builds/"+this.nm.version+"/comscore-6.3.5.min.js";if(null===(t=window.ns_)||void 0===t?void 0:t.ReducedRequirementsStreamingAnalytics)this.pF();else{s.default.lazyLoad(n,(function(t){var n;t&&(null===(n=window.ns_)||void 0===n?void 0:n.ReducedRequirementsStreamingAnalytics)&&i.pF()}))}},t.prototype.pF=function(){this.bF(),this.Tm()},t.prototype.bF=function(){this.uF=new window.ns_.ReducedRequirementsStreamingAnalytics({publisherId:"27061346"})},t.prototype.x_=function(){this.bF()},t.prototype.cF=function(t){var i,n,e;if("video"===(null==t?void 0:t.playbackMode)){var r=null===(n=null===(i=window.ns_)||void 0===i?void 0:i.ReducedRequirementsStreamingAnalytics)||void 0===n?void 0:n.ContentType,s=this.mF(t,"meta"),a=this.mF(t,"license"),c=this.mF(t,"metrics"),h=t.videoLength,f="";if(f="na"!==h&&h>600?null==r?void 0:r.LongFormOnDemand:null==r?void 0:r.ShortFormOnDemand,t.isLive){var l=s.eventStart,v=s.eventEnd;h=""!==l&&""!==v?v-l:null,f=null==r?void 0:r.Live}var d={ns_st_ci:t.videoId,ns_st_cl:h&&"na"!==h?1e3*h:o.NUMBER_DEFAULT,ns_st_pr:(null==t?void 0:t.title)||o.NULL_DEFAULT,ns_st_ep:s.showName||a.title||o.NULL_DEFAULT,ns_st_ge:(null===(e=s.genre)||void 0===e?void 0:e.split(",")[0])||o.NULL_DEFAULT,ns_st_pu:u,ns_st_sn:o.NULL_DEFAULT,ns_st_en:o.NULL_DEFAULT,ns_st_ia:0,ns_st_ddt:o.NULL_DEFAULT,ns_st_tdt:o.NULL_DEFAULT,ns_st_st:u,ns_st_ce:0,c3:"yahoo",c4:t.comscoreC4||o.NULL_DEFAULT,c6:c.comscore6||o.NULL_DEFAULT,ca2:this.yF(t,"CA2"),ca3:"yahoo",ca4:t.comscoreC4||o.NULL_DEFAULT,ca6:c.comscore6||o.NULL_DEFAULT},p=Object.assign({},d,this.gF());this.uF.playVideoContentPart(p,f)}},t.prototype.vF=function(t,i){var n,e;this.wF=t;var r=null===(e=null===(n=window.ns_)||void 0===n?void 0:n.ReducedRequirementsStreamingAnalytics)||void 0===e?void 0:e.AdType,s=t.offset,u=t.duration?1e3*t.duration:o.NUMBER_DEFAULT,a="";i.isLive?a=null==r?void 0:r.LinearLive:"post"===s?a=null==r?void 0:r.LinearOnDemandPostRoll:"pre"===s&&(a=null==r?void 0:r.LinearOnDemandPreRoll);var c={ns_st_cl:u,ca2:this.yF(i,"CA2")},h=Object.assign({},c,this.gF());this.uF.playVideoAdvertisement(h,a),this.oF=!0},t.prototype.fF=function(t){"video"===(null==t?void 0:t.playbackMode)&&this.uF.stop()},t.prototype.dF=function(t,i){!0===this.oF&&(this.uF.stop(),this.oF=!1,this.wF=null)},t.prototype.hF=function(t,i){t&&i&&("video"===i.playbackMode&&this.cF(i),"ad"===i.playbackMode&&"background"===i.requestAction&&this.vF(this.wF,i))},t.prototype.lF=function(t){"video"===(null==t?void 0:t.playbackMode)&&this.fF(t),"ad"===(null==t?void 0:t.playbackMode)&&"background"===(null==t?void 0:t.requestAction)&&this.uF.stop()},t.prototype.gF=function(){return{cs_ucfr:this.sF,gdpr:this.gdpr,gdpr_consent:this.gdpr_consent}},t.prototype.yF=function(t,i){var n,e,r,s,u=null===(e=null===(n=null==t?void 0:t.customConfig)||void 0===n?void 0:n.metrics)||void 0===e?void 0:e.beacons;if((null==u?void 0:u.length)>0){var a=u.filter((function(t){return"cs"===t.target}));if(null===(r=a[0])||void 0===r?void 0:r.data)a[0].data.split("&").forEach((function(t){-1!==t.indexOf(i)&&(s=t.split("=")[1])}))}return s||o.NULL_DEFAULT},t.prototype.mF=function(t,i){var n={};return t&&t[i]?n=t[i]:(null==t?void 0:t.customConfig)&&t.customConfig[i]&&(n=t.customConfig[i]),n},t.prototype.wm=function(){var t=this;r.Privacy.getUSPDoNotSell((function(i,n){var e=!1;void 0!==window.__tcfapi&&window.__tcfapi("getTCData",2,(function(r,s){s?(t.gdpr=!0===(null==r?void 0:r.gdprApplies)?"1":"0",e=(null==r?void 0:r.gdprApplies)||!1,(null==r?void 0:r.tcString)?t.gdpr_consent=r.tcString:(t.gdpr="",t.gdpr_consent="",t.sF="0")):t.sF="0",!1===e&&n&&(t.sF=i.doNotSell?"0":"1")}))}))},t}();i.default=a},13742:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PLAYLIST_POSITION=i.VRM_VERSION=i.NULL_DEFAULT=i.HIDE_KEY=i.STRING_DEFAULT=i.NUMBER_DEFAULT=i.INT_DEFAULT=i.PARAMS=void 0,i.PARAMS=["_ex","_NOL","test","cached_vs","expn","expt","expb","vsid","lms_id","bckt","env","ccap","loc","site","lang","intl","pl_type","pl_uuid","pl_intr","pl_algo","pl_id","pl_bckt","pl_pos","pl_seed","pl_ctx","pl_sec","ccode","sec","cpos","pt","pd","pct","pstcat","ver","p_sec","p_subsec","pstaid_p","pkgt","rlvtscr","subsec","_rid","vidPos","layout","bx","ar","vrmver"],i.INT_DEFAULT="",i.NUMBER_DEFAULT=0,i.STRING_DEFAULT="none",i.HIDE_KEY="__hide__beacon__key__",i.NULL_DEFAULT="*null",i.VRM_VERSION="2.0",function(t){t.HERO="hero",t.NONE="none"}(i.PLAYLIST_POSITION||(i.PLAYLIST_POSITION={}))},7974:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=n(83982),s=function(){function t(t){this.nm=t,this.nm&&this.nm.addEventListener(e.Events.PLAYBACK_START,this._F,this)}return t.prototype.destroy=function(){this.nm=null},t.prototype._F=function(t){var i=t.customConfig&&t.customConfig.metrics&&t.customConfig.metrics.mmActivityId;if(i&&r.default.isValidUrl(i)){var n=i;window.setTimeout((function(){r.default.sendIframeBeacon(n)}),3e3)}},t}();i.default=s},69281:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(78364),r=n(88173),s=n(83982),o=function(){function t(t){this.nm=t,this.EF=!1,this.nm&&(this.OF=this.nm.addEventListener(r.Events.PLAYER_RENDERED,this.SF,this))}return t.prototype.destroy=function(){this.nm&&this.OF&&this.nm.removeEventListener(r.Events.PLAYER_RENDERED,this.OF),this.nm=null},t.prototype.SF=function(){var t=this,i=s.default.getWindow();"complete"!==i.document.readyState?i.addEventListener("load",(function(){t.AF()})):this.AF()},t.prototype.AF=function(){this.EF||(this.EF=!0,e.default.sendBeacon())},t}();i.default=o},58560:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_PAGE_SPACE_ID=i.MARTINI_PLUGIN_MIMETYPE=i.SkipOnError=i.PLAYLIST_POS=i.PLAYLIST_COUNT_PER_PAGE=i.PLAYLIST_LABEL_ICON_DIMENSION=i.PLAYLIST_SECTION_ICON_DIMENSION=i.PLAYLIST_THUMB_DIMENSION=i.GEMINI_STUB_VIDEO_ID=i.REQUEST_TYPES=void 0,function(t){t.CLICK="click",t.AUTOPLAY="autoplay",t.API="api",t.CONTINUOUS="continuous",t.HOVER="hover",t.PLAY="play",t.PAUSE="pause",t.SCROLL="scroll",t.SWIPE="swipe",t.BACKGROUND="background"}(i.REQUEST_TYPES||(i.REQUEST_TYPES={})),i.GEMINI_STUB_VIDEO_ID="6bf451fd-11f9-37f9-a54c-d73d795839f6",i.PLAYLIST_THUMB_DIMENSION="260x144",i.PLAYLIST_SECTION_ICON_DIMENSION="14x14",i.PLAYLIST_LABEL_ICON_DIMENSION="70x70",i.PLAYLIST_COUNT_PER_PAGE=12,function(t){t.BOTTOM="bottom",t.RIGHT="right",t.HIDDEN="hidden"}(i.PLAYLIST_POS||(i.PLAYLIST_POS={})),function(t){t.ALWAYS="always",t.TIMEBASED="timebased",t.NEVER="never"}(i.SkipOnError||(i.SkipOnError={})),i.MARTINI_PLUGIN_MIMETYPE="adplugin/martini",i.DEFAULT_PAGE_SPACE_ID="1197809794"},2719:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__assign||function(){return s=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},s.apply(this,arguments)},o=this&&this.__spreadArray||function(t,i){for(var n=0,e=i.length,r=t.length;n<e;n++,r++)t[r]=i[n];return t};Object.defineProperty(i,"__esModule",{value:!0});var u=n(81409),a=n(88173),c=n(53872),h=n(43382),f=n(91995),l=n(48054),v=n(4102),d=n(42118),p=n(5689),b=n(80255),m=n(50155),y=n(22501),g=n(7974),w=n(69281),_=n(58560),E=n(57424),O=n(87332),S=n(26463),A=n(54796),T=n(36827),M=n(74449),j=n(83982),N=n(91286),I=n(41097),k=function(t){function i(i,n,e){var r=t.call(this,"OathController")||this;return r.VC=[],r.TF=null,r.MF=null,r.jF=null,r.Rc=i,r.s_=n,r.nm=e,r.vt=new O.default(i,n),r.CU=new f.default(r.vt),r.Rc.analytics=!1,r.NF=r.IF(),r.kF=new m.default(r.nm),r.RF=new g.default(r.nm),r.LF=new w.default(r.nm),r.CF=new y.default(r.nm),r.DF=new I.default(r.nm),r.__=new N.default,r.NF.on(a.Events.MEDIA_ITEM_CURRENT,r.PF,r),r.NF.on(a.Events.PLAYBACK_PROGRESS,r.tm,r),r.xF(),r}return r(i,t),i.prototype.destroy=function(){var i;this.vt.destroy(),this.NF.destroy(),null===(i=this.kF)||void 0===i||i.destroy(),this.UF&&this.UF.destroy(),this.MF&&(this.MF.destroy(),this.MF=null),t.prototype.destroy.call(this)},i.prototype.initialize=function(){var t=this;this.NF.addMetricsEventListener((function(){for(var i,n,e,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var a=Array.prototype.slice.call(r,1,r.length-1),c=r[0],h=r[r.length-1],f=t.vt.getEventsDto();f.playerVersion=t.nm.version,f.playlistUIConfig=null===(e=null===(n=t.Rc)||void 0===n?void 0:n.ui)||void 0===e?void 0:e.playlist,(i=t.nm).publish.apply(i,o([c],a.concat(s(s({},h),f)))),t.FF(c,a)}),this),this.Tm(),this.BF(),this.NF.initialize()},i.prototype.render=function(t){this.NF.render(t)},i.prototype.getCurrentTime=function(){return this.NF.getCurrentTime()},i.prototype.getCurrentDate=function(){return this.NF.getCurrentDate()},i.prototype.getVolume=function(){return this.NF.getVolume()},i.prototype.getMediaStore=function(){return this.NF.getMediaStore()},i.prototype.getCurrentMediaItem=function(){return this.getPlaylist().getCurrentItem()},i.prototype.getPlaybackState=function(){return this.NF.getPlaybackState()},i.prototype.play=function(t,i){this.NF.play(t,i)},i.prototype.pause=function(t){this.NF.pause(t)},i.prototype.preload=function(t){throw new Error("preload is unimplemented!")},i.prototype.seek=function(t){this.NF.seek(t)},i.prototype.disableControls=function(){this.NF.disableControls()},i.prototype.enableControls=function(){this.NF.enableControls()},i.prototype.enableCC=function(t){this.NF.enableCC(t)},i.prototype.disableCC=function(){this.NF.disableCC()},i.prototype.isPlayMode=function(){return this.NF.isPlayMode()},i.prototype.isLoading=function(){return this.NF.isLoading()},i.prototype.setFullscreen=function(t){this.NF.setFullscreen(t)},i.prototype.getFullscreen=function(){return this.NF.getFullscreen()},i.prototype.isAd=function(){return this.NF.isAd()},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),this.NF.setVolume(t,i)},i.prototype.setMute=function(t){this.NF.setMute(t)},i.prototype.getMute=function(){return this.NF.getMute()},i.prototype.setLoop=function(t){this.NF.setLoop(t)},i.prototype.setContinuousPlay=function(t){this.NF.setContinuousPlay(t)},i.prototype.resumeContinuousPlay=function(t){this.NF.resumeContinuousPlay()},i.prototype.setAudioLanguage=function(t){this.NF.setAudioLanguage(t)},i.prototype.isDocked=function(){return this.NF.isDocked()},i.prototype.setMediaItemTitle=function(t,i){this.NF.setMediaItemTitle(t,i)},i.prototype.addCorePlayerListener=function(t,i){return this.NF.addEventListener(t,i,this.nm)},i.prototype.removeCorePlayerListener=function(t,i){this.NF.removeEventListener(t,i)},i.prototype.getPlaybackStartDto=function(){return this.NF.getPlaybackStartDto()},i.prototype.setPlaybackRate=function(t){var i;null===(i=this.NF)||void 0===i||i.setPlaybackRate(t)},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.NF.updateDockingConfig(t,i,n,e,r,s)},i.prototype.getPlaylist=function(){return this.NF.getPlaylist()},i.prototype.suspend=function(){var t=this.NF.suspendState();t&&(this.TF=t,this.zF())},i.prototype.resume=function(){this.TF&&(this.NF.resumeState(this.TF),this.BF(),this.NF.initialize(),this.NF.render(this.TF.selector),this.TF=null)},i.prototype.updateGeoConfig=function(t){this.vt.updateGeoConfig(t)},i.prototype.getVideoElement=function(){return this.NF.getVideoElement()},i.prototype.getRootElement=function(){return this.NF.getRootElement()},i.prototype.getSyncOffset=function(){return this.NF.__getSyncOffset()},i.prototype.startSync=function(){this.NF.startSync()},i.prototype.stopSync=function(){this.NF.stopSync()},i.prototype.isSuspended=function(){return this.NF&&this.NF.isSuspended()||!1},i.prototype.undockVideoPlayer=function(t){this.NF&&this.NF.undockVideoPlayer(t)},i.prototype.addCustomControlElement=function(t){return this.NF.addCustomControlElement(t)},i.prototype.isRendered=function(){return this.NF&&this.NF.isRendered()||!1},Object.defineProperty(i.prototype,"guid",{get:function(){return this.NF&&this.NF.guid||""},enumerable:!1,configurable:!0}),i.prototype.getMediaItemMarkers=function(t){return this.NF.getMediaItemMarkers(t)},i.prototype.setError=function(t,i,n,e,r){this.NF.__setError(t,i,n,e,r)},i.prototype.setSapiOptions=function(t,i){this.vt.setSapiOptions(t,i)},i.prototype.setStartInBackground=function(t){this.NF.setStartInBackground(t)},i.prototype.IF=function(t){void 0===t&&(t=!0);var i=this.Rc.mediaItems;if(this.vt.playlistId&&(!i||0===i.length)){var n=this.VF();return this.GF(),n}return this.HF()},i.prototype.VF=function(){return this.NF?this.NF:(this.UF=new M.default,this.UF.getProxy())},i.prototype.HF=function(){this.YF();var t=new a.Player(this.Rc,this.s_);return this.vt.guid=t.guid,t},i.prototype.GF=function(){var t=this;if(this.UF&&this.CU){var i={onComplete:function(i){t.UF&&(i&&(t.Rc.mediaItems=i),t.NF=t.HF(),t.UF.execute(t.NF),t.UF.destroy(),t.UF=void 0,t.nm.playlist=new A.default(t.getPlaylist()),t.VC.forEach((function(i){i.type===a.Plugin.PluginType.MORE_ITEMS&&(i.playlist=t.getPlaylist())})))},onError:function(){throw new Error("Fetch more items with playlistId failed")},onApiCallInfo:function(){},onPromisesResolved:function(){}};this.CU.resolve({mimeType:a.MediaItemInterfaces.MediaItemMimeType.SAPI,playlistId:this.vt.playlistId,reason:a.Plugin.MoreItemsReason.PLAYLISTID_NEED_RESOLVE,start:0},i)}},i.prototype.Tm=function(){this.NF.on(a.Events.MEDIA_ITEM_METADATA,this.qF,this),this.NF.on(a.Events.PLAYBACK_STOPPED,this.EO,this),this.NF.on(a.Events.MEDIA_ITEM_COMPLETE,this.EO,this),this.NF.once("opssVisibilityChanged",this.WF,this),this.NF.once("playlistBottomHeightChange",this.QF,this)},i.prototype.tm=function(t,i,n){this.vt.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE&&this.jF&&this.jF.onMediaPlaybackProgress(t,i,n)},i.prototype.PF=function(t){if(this.vt.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE){var i=this.vt.isMediaItemWatched(t.id),n=this.vt.watchHistoryConfig&&this.vt.watchHistoryConfig.enabled&&this.vt.watchHistoryConfig.skipWatchedVideos;if(i&&n){var e=this.getPlaylist().getPosition();this.getPlaylist().setPosition(e+1)}}},i.prototype.qF=function(t,i){this.MF&&(this.MF.destroy(),this.MF=null),t.customConfig&&t.customConfig.allowedConnectionTypes&&(this.MF=new S.default(this.vt,t.rawItemData),this.ZF())},i.prototype.EO=function(t){this.MF&&(this.MF.destroy(),this.MF=null),this.vt.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE&&this.jF&&this.jF.onMediaItemEnded(t)},i.prototype.xF=function(){this.vt.videoRecommendations&&(this.setContinuousPlay(!0),this.vt.continuousPlay=!0)},i.prototype.WF=function(t,i){var n=this.getCurrentMediaItem(),e=n&&n.license,r={version:this.nm.version,config:this.nm.oathConfig,lmsId:e&&e.salesforceId||""};this.__.updateOathPlayerOpss(t,i,r)},i.prototype.QF=function(t){var i;(null===(i=this.Rc)||void 0===i?void 0:i.iframeRender)&&this.nm.iframeController&&this.nm.iframeController.onPlaylistDimensionChange(t)},i.prototype.ZF=function(t){var i=this;void 0===t&&(t=18e4),this.MF&&this.MF.scheduleVerification((function(t){t?i.ZF():i.setError("info","R",c.errorCodes.E_PLAYER,c.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE,T.default.ERR_RESTRICTED_NETWORK_TYPE)}),t)},i.prototype.BF=function(){var t=this;this.jF=new p.default(this.vt),this.VC.push(new h.default),this.VC.push(new l.default(this.vt)),this.VC.push(new d.default(this.vt)),this.VC.push(new v.default(this.vt,this.getPlaylist())),this.VC.push(new b.default),this.VC.push(this.jF),this.VC.forEach((function(i){t.NF.registerPlugin(i)}))},i.prototype.zF=function(){this.VC.forEach((function(t){t.destroy()})),this.VC=[]},i.prototype.FF=function(t,i){var n,e,r,s;switch(i=i||[],t){case a.Events.AD_PLAYBACK_STARTED:r=i[0]&&i[0].id||"",this.nm.publish(E.API.AD_PLAYBACK_START,r);break;case a.Events.AD_PLAYBACK_ENDED:r=i[0]&&i[0].id||"",this.nm.publish(E.API.AD_PLAYBACK_STOP,r);break;case a.Events.PLAYBACK_START:(n=this.nm).publish.apply(n,o([E.API.PLAYBACK_STARTED],i));break;case a.Events.PLAYBACK_RESUMED:(s=this.NF.getCurrentAdBreak())&&this.nm.publish(E.API.AD_PLAYBACK_RESUME,s.id);break;case a.Events.PLAYBACK_PAUSE:(s=this.NF.getCurrentAdBreak())&&this.nm.publish(E.API.AD_PLAYBACK_PAUSE);break;case a.Events.PLAYBACK_COMPLETE:(e=this.nm).publish.apply(e,o([E.API.PLAYBACK_ENDED],i))}},i.prototype.YF=function(){var t,i,n=((t={})[_.MARTINI_PLUGIN_MIMETYPE]={playerBucket:j.default.getBckt(),experienceName:this.vt.experienceName,experienceBucket:this.vt.experienceBucket,playerName:"UnifiedPlayer"},t),e=((i={})[a.Plugin.PluginType.AD]=n,i);this.Rc.pluginConfigs=j.default.extend(e,this.Rc.pluginConfigs)},i}(u.default);i.default=k},95577:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(58560),r=function(){function t(t){this.tn=t}return t.prototype.play=function(t,i){this.tn.play(t,i)},t.prototype.pause=function(t){this.tn.pause(t)},t.prototype.preload=function(t){this.tn.preload(t)},t.prototype.seek=function(t){this.tn.seek(t)},t.prototype.disableControls=function(){this.tn.disableControls()},t.prototype.enableControls=function(){this.tn.enableControls()},t.prototype.enableCC=function(t){this.tn.enableCC(t)},t.prototype.disableCC=function(){this.tn.disableCC()},t.prototype.isPlaying=function(){return this.tn.isPlayMode()},t.prototype.isPlayMode=function(){return this.tn.isPlayMode()},t.prototype.getPlaybackState=function(){return this.tn.getPlaybackState()},t.prototype.isLoading=function(){return this.tn.isLoading()},t.prototype.getDuration=function(){var t=this.tn.getCurrentMediaItem();return(null==t?void 0:t.duration)||0},t.prototype.getCurrentTime=function(){return this.tn.getCurrentTime()},t.prototype.getTimeRemaining=function(){return this.getDuration()-this.getCurrentTime()},t.prototype.setFullscreen=function(t){this.tn.setFullscreen(t)},t.prototype.getFullscreen=function(){return this.tn.getFullscreen()},t.prototype.setVolume=function(t,i){void 0===i&&(i=!1),t=(t=t<0?0:t)>1?1:t,this.tn.setVolume(t,i)},t.prototype.getVolume=function(){return this.tn.getVolume()},t.prototype.setMute=function(t){this.tn.setMute(t)},t.prototype.getMute=function(){return this.tn.getMute()},t.prototype.setLoop=function(t){this.tn.setLoop(t)},t.prototype.setPlaybackRate=function(t){var i;null===(i=this.tn)||void 0===i||i.setPlaybackRate(t)},t.prototype.setContinuousPlay=function(t){this.tn.setContinuousPlay(t)},t.prototype.resumeContinuousPlay=function(){this.tn.resumeContinuousPlay({type:e.REQUEST_TYPES.API})},t.prototype.getBitrate=function(){throw new Error("getBitrate is unimplemented!")},t.prototype.setResolution=function(){throw new Error("setResolution is unimplemented!")},t.prototype.displayClosedCaptions=function(){throw new Error("displayClosedCaptions is unimplemented!")},t.prototype.getCurrentDate=function(){return this.tn.getCurrentDate()},t.prototype.setAudioLanguage=function(t){this.tn.setAudioLanguage(t)},t}();i.default=r},57424:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.API=void 0,function(t){t.AD_PLAYBACK_START="adStart",t.AD_PLAYBACK_PAUSE="adPause",t.AD_PLAYBACK_RESUME="adResume",t.AD_PLAYBACK_PROGRESS="adProgress",t.AD_PLAYBACK_STOP="adComplete",t.AD_NONE="adNone",t.AD_ERROR="adError",t.PLAYBACK_STARTED="playback-started",t.PLAYBACK_ENDED="playback-ended"}(i.API||(i.API={}))},56181:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0});var s=n(80106),o=n(81409),u=n(95577),a=n(54796),c=function(t){function i(i){var n=t.call(this,"IframeBridge")||this;return n.kI=new u.default({}),n.Tg=new a.default({}),n.$F=new s.default(i,n),n}return r(i,t),i.prototype.render=function(t){return this.$F.constructIframe(t),this.$F.routeControlsApiToIframe(),this},i.prototype.play=function(t,i){this.kI.play(t,i)},i.prototype.pause=function(t){this.kI.pause(t)},i.prototype.mute=function(){this.kI.setMute(!0)},i.prototype.unMute=function(){this.kI.setMute(!1)},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),this.kI.setVolume(t,i)},i.prototype.seek=function(t){this.kI.seek(t)},Object.defineProperty(i.prototype,"iframeController",{get:function(){return this.$F},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"controls",{get:function(){return this.kI},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"playlist",{get:function(){return this.Tg},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this),this.$F.destroy()},i}(o.default);i.default=c},80106:function(t,i,n){"use strict";var e,r=n(18698),s=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.MessageType=void 0;var o=n(81409),u=n(83982),a=n(53872);i.MessageType={EVENT:"EVENT",CLEAR_IFRAME_NAME:"CLEAR_IFRAME_NAME",PLAYER_DIMENSION_CHANGE:"PLAYER_DIMENSION_CHANGE"};var c=function(t){function n(i,n){var e=t.call(this,"IframeController")||this;return e.XF={isPlaying:null,getPlaybackState:null,getDuration:null,getCurrentTime:null,getTimeRemaining:null,getFullscreen:null,getVolume:null,getMute:null},e.KF={getCurrentItemTitle:null,getCurrentItemDescription:null,getCurrentItemProviderName:null,getCurrentItemLiveStatus:null},e.JF="VID-"+Math.floor(1e3*Math.random()),e.tB=JSON.parse(JSON.stringify(i)),e.nm=n,e.Xp=null,e.iB=null,e.nB=Date.now(),e.fm=!1,e.eB=null,e.rB=null,e.sB="https://s.yimg.com",i.insideIframeConfig||(e.eB=e.oB.bind(e),window.addEventListener("message",e.eB,!1)),e}return s(n,t),n.prototype.destroy=function(){this.eB&&window.removeEventListener("message",this.eB,!1),this.rB&&window.removeEventListener("message",this.rB,!1),this.eB=null,this.rB=null,t.prototype.destroy.call(this)},n.prototype.constructIframe=function(t){var i,n,e,r,s=this,o=u.default.getWindow(),c=a.TypeChecker.isString(t)?document.querySelector(t):t;if(null!==c){this.iB=c,this.tB.insideIframeConfig={startTime:this.nB,iframeVID:this.JF,parentURL:o.location.protocol+"//"+o.location.host},this.tB.playerJSPath=(null===(r=null===(e=null===(n=null===(i=window.OATH)||void 0===i?void 0:i.VideoPlatform)||void 0===n?void 0:n.PlayerHosting)||void 0===e?void 0:e.req)||void 0===r?void 0:r.path)||"";var h=document.createElement("iframe"),f=encodeURIComponent(JSON.stringify(this.tB)),l=this.sB+"/rx/up/builds/8.5.54/ifcp.html";h.setAttribute("src",l),h.setAttribute("name",f),h.setAttribute("id",this.JF),h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.setAttribute("frameBorder","0"),h.setAttribute("allowFullScreen",""),h.setAttribute("allow","autoplay; fullscreen; encrypted-media"),h.setAttribute("title","iframe"),h.setAttribute("aria-label","iframe"),c&&c.appendChild(h),this.Xp=h,this.Xp.onload=function(){s.fm=!0}}else this.nm.__setError("error","C",a.errorCodes.E_PLAYER,a.errorCodes.PLAYER_CODES.E_INVALID_CONFIG,"Invalid DOM node or CSS selector specified. Cannot render player.")},n.prototype.routeControlsApiToIframe=function(){var t=this,i="controls",n="playlist",e=["addItems","addItem","setPositionById","setPosition","removeItem","removeItems","removeItemById","removeItemsById"],r=["getCurrentItemTitle","getCurrentItemDescription","getCurrentItemProviderName","getCurrentItemLiveStatus"],s=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.uB(i,n,e)}},o=function(i){return function(){return t.XF[i]}},u=function(i){return-1!==e.indexOf(i)?function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.uB(n,i,e)}:-1!==r.indexOf(i)?function(){return t.KF[i]}:function(){throw new Error("playlist API "+i+" is not supported when safe frame is enabled")}};for(var c in this.nm[i])if(a.TypeChecker.isFunction(this.nm[i][c])){if(void 0!==this.XF[c]){this.nm[i][c]=o(c);continue}this.nm[i][c]=s(c)}for(var h in this.nm[n])a.TypeChecker.isFunction(this.nm[n][h])&&(this.nm[n][h]=u(h));["getMediaStore","__setError","addCustomControlElement","getMediaItemMarkers","getInitTime","getPlaybackStartDto","updateGeoConfig","isRendered","isSuspended","resume","suspend","undockVideoPlayer","updateDockingConfig","getRootElement","getVideoElement","isLoading","setMediaItemTitle","isDocked","isPlayMode","isPlaying","removeAllMediaItems","setQueryString","getVolume","getCurrentDate","getCurrentTime"].forEach((function(i){var n;t.nm[i]=(n=i,function(){throw new Error("player API "+n+" is not supported when safe frame is enabled")})}))},n.prototype.routeAPIeventToPage=function(t){var n=this,e=window.OATH.VideoPlatform.Events[t];this.nm.on(e,(function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];t.unshift(e),t.push(n.refreshControlsAPIData()),t.push(i.MessageType.EVENT),t.push(n.tB.insideIframeConfig.iframeVID),n.aB(JSON.stringify(t))}),this.nm)},n.prototype.sendClearIframeNameToPage=function(){var t=[i.MessageType.CLEAR_IFRAME_NAME,this.tB.insideIframeConfig.iframeVID];this.aB(JSON.stringify(t))},n.prototype.refreshControlsAPIData=function(){return{isPlaying:this.nm.controls.isPlaying(),getPlaybackState:this.nm.controls.getPlaybackState(),getDuration:this.nm.controls.getDuration(),getCurrentTime:this.nm.controls.getCurrentTime(),getTimeRemaining:this.nm.controls.getTimeRemaining(),getFullscreen:this.nm.controls.getFullscreen(),getVolume:this.nm.controls.getVolume(),getMute:this.nm.controls.getMute(),getCurrentItemTitle:this.nm.playlist.getCurrentItemTitle(),getCurrentItemDescription:this.nm.playlist.getCurrentItemDescription(),getCurrentItemProviderName:this.nm.playlist.getCurrentItemProviderName(),getCurrentItemLiveStatus:this.nm.playlist.getCurrentItemLiveStatus()}},n.prototype.setupIframeToPageCommunication=function(){this.rB=this.cB.bind(this),window.addEventListener("message",this.rB,!1);var t=window.OATH.VideoPlatform.Events;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.routeAPIeventToPage(i)},n.prototype.onPlaylistDimensionChange=function(t){if(a.TypeChecker.isObject(t)){var n=[t,i.MessageType.PLAYER_DIMENSION_CHANGE,this.tB.insideIframeConfig.iframeVID];this.aB(JSON.stringify(n))}},n.prototype.uB=function(){for(var t,i,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(this.Xp&&this.fm){var r=JSON.stringify(n);null===(i=null===(t=this.Xp)||void 0===t?void 0:t.contentWindow)||void 0===i||i.postMessage(r,this.sB)}},n.prototype.oB=function(t){var n,e,s=this,o=null,u={},c="",h=this.XF,f=this.KF;if(t.origin===this.sB){try{e=JSON.parse(t.data)}catch(t){return}if(e&&a.TypeChecker.isArray(e)&&e.length>=2){if(c=e.pop(),!a.TypeChecker.isString(c)||0!==c.indexOf("VID-"))return;if(this.JF!==c)return;if(!(o=e.pop())||!i.MessageType[o])return;switch(o){case i.MessageType.EVENT:u=e.pop(),Object.keys(u).forEach((function(t){Object.prototype.hasOwnProperty.call(s.XF,t)?h[t]=u[t]:Object.prototype.hasOwnProperty.call(s.KF,t)&&(f[t]=u[t])})),this.nm.iframeController&&(this.nm.iframeController.XF=h,this.nm.iframeController.KF=f),this.nm.publish.apply(this.nm,e);break;case i.MessageType.CLEAR_IFRAME_NAME:null===(n=this.Xp)||void 0===n||n.setAttribute("name","");break;case i.MessageType.PLAYER_DIMENSION_CHANGE:var l=e.length?e.pop():null,v="object"===r(l)?l.height:null;v&&this.hB(v)}}}},n.prototype.aB=function(t){var i="";this.tB.insideIframeConfig&&(i=this.tB.insideIframeConfig.parentURL),window.parent.postMessage(t,i)},n.prototype.cB=function(t){var i,n,e,r;if(t.data){try{r=JSON.parse(t.data)}catch(t){return}Array.isArray(r)&&(i=r.length>0?r[0]:null,n=r.length>1?r[1]:null,e=r.length>2?r[2]:null),i&&n&&this.nm&&this.nm[i]&&this.nm[i][n]&&this.nm[i][n].apply(this.nm[i],e)}},n.prototype.hB=function(t){this.iB&&(this.iB.style.height=t+"px")},n}(o.default);i.default=c},87332:function(t,i,n){"use strict";var e=this&&this.__assign||function(){return e=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},e.apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var r=n(39451),s=n(88173),o=n(53872),u=n(13742),a=n(58560),c=n(83982),h=n(82402),f={},l=function(){function t(t,i){this.QT="",this.Rc=t,this.s_=i,this.fB(),this.offNetwork=c.default.isOffNetwork(),this.lB(t.watchHistory)}return t.prototype.getEventsDto=function(){var t,i=this.Rc.rapidConfig||{},n=i.pageParams||{},r=i.clickParams||{},s={pageSpaceId:this.Rc.pageSpaceId||i&&i.Spaceid||a.DEFAULT_PAGE_SPACE_ID,experienceName:this.Rc.expName||"",experienceBucket:this.Rc.expBucket||"",experienceType:this.Rc.expType||"",cpos:this.Rc.cpos||"",ccode:this.Rc.ccode||"",offNetwork:this.offNetwork,site:this.Rc.site||"",siteAnalytics:this.Rc.siteAnalytics||"",comscoreC4:this.Rc.comscoreC4||u.NULL_DEFAULT,region:this.Rc.region||"",referrer:this.Rc.referrer||"",lang:this.Rc.lang||"",pageLatency:this.vB||"",playlistId:(null===(t=this.Rc.playlist)||void 0===t?void 0:t.id)||""},o="strm"===n.sec?r.pstaid:n.pstaid,c={pt:n.pt||"",pd:n.pd||"",pct:n.pct||"",pstcat:n.pstcat||"",p_sec:n.p_sec||"",p_subsec:n.p_subsec||"",ver:n.ver||"",_rid:n._rid||"",pstaid_p:o||"",pkgt:r.pkgt||"",sec:r.sec||this.Rc.sec||"",subsec:r.subsec||"",rlvtscr:n.rlvtscr||"",vidPos:n.vidPos||"",layout:n.layout||"",href:n._w||"",ref:n._R||""};return e(e({},s),c)},t.prototype.destroy=function(){},Object.defineProperty(t.prototype,"config",{get:function(){return this.Rc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoRecommendations",{get:function(){return void 0===this.Rc.videoRecommendations||this.Rc.videoRecommendations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return this.Rc.site||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this.Rc.region||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lang",{get:function(){return this.Rc.lang||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"experienceBucket",{get:function(){return this.Rc.expBucket||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"experienceName",{get:function(){return this.Rc.expName||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yvapAccountId",{get:function(){return this.Rc.YVAP&&this.Rc.YVAP.accountId||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"syndication",{get:function(){return this.Rc.synd||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cTopic",{get:function(){return this.Rc.cTopic||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pspid",{get:function(){return this.Rc.CMS&&this.Rc.CMS.suppressAdContext?"":this.Rc.pageSpaceId||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistId",{get:function(){return this.Rc.playlist&&this.Rc.playlist.id||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this.Rc.loop||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){return this.Rc.continuousPlay||!1},set:function(t){this.Rc.continuousPlay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"relatedVideoId",{get:function(){var t=this.Rc.mediaItems;return t&&0!==t.length&&t[0].mimetype===s.MediaItemInterfaces.MediaItemMimeType.SAPI?t[0].id:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistMimetype",{get:function(){return this.Rc.ui&&this.Rc.ui.playlist&&this.Rc.ui.playlist.mimetype||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistItemCount",{get:function(){return this.Rc.ui&&this.Rc.ui.playlist&&o.TypeChecker.isNumber(this.Rc.ui.playlist.numberOfItems)?Math.max(this.Rc.ui.playlist.numberOfItems,a.PLAYLIST_COUNT_PER_PAGE):a.PLAYLIST_COUNT_PER_PAGE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowGeoRequest",{get:function(){return this.Rc.allowGeoRequest||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"geoData",{get:function(){return this.Rc.geoData||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"guid",{get:function(){return this.QT},set:function(t){this.QT=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showEndScreen",{get:function(){var t,i,n;return(null===(n=null===(i=null===(t=this.Rc)||void 0===t?void 0:t.ui)||void 0===i?void 0:i.endScreen)||void 0===n?void 0:n.show)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"skipOnError",{get:function(){return this.Rc.skipOnError||a.SkipOnError.NEVER},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){return o.TypeChecker.isNumber(this.Rc.aspectRatio)?this.Rc.aspectRatio:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"watchHistoryConfig",{get:function(){return this.Rc.watchHistory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"watchHistory",{get:function(){return this.dB||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistUI",{get:function(){var t,i;return null===(i=null===(t=this.Rc)||void 0===t?void 0:t.ui)||void 0===i?void 0:i.playlist},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pblob",{get:function(){return o.TypeChecker.isString(this.Rc.pblob)&&this.Rc.pblob.length<=512?this.Rc.pblob:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDockable",{get:function(){var t=this.Rc.ui&&this.Rc.ui.docking||{};return!!(t.enableOnScrollDown||t.enableOnScrollUp)&&(!r.userAgent.mobile||!t.mobile||!t.mobile.disable)},enumerable:!1,configurable:!0}),t.prototype.updateGeoConfig=function(t){o.TypeChecker.isBoolean(t.allowGeoRequest)&&(this.Rc.allowGeoRequest=t.allowGeoRequest);var i=t.geoData;i&&o.TypeChecker.isString(i.latitude)&&o.TypeChecker.isString(i.longitude)&&o.TypeChecker.isString(i.accuracy)?this.Rc.geoData=i:null===i&&(this.Rc.geoData=null)},t.prototype.setMediaItemWatched=function(t,i){f[t]={watched:i}},t.prototype.isMediaItemWatched=function(t){return!!f[t]&&!!f[t].watched},t.prototype.setSapiOptions=function(t,i){var n=this.Rc.mediaItems,e=o.TypeChecker.isArray(n)&&n.find((function(i){return i.id===t}));e&&e.mimetype===s.MediaItemInterfaces.MediaItemMimeType.SAPI&&(e.customConfig=e.customConfig||{},e.customConfig["source-metadata-plugin"]=e.customConfig["source-metadata-plugin"]||{},e.customConfig["source-metadata-plugin"].qs=i||null)},t.prototype.getSapiOptions=function(t){var i=this.Rc.mediaItems,n=o.TypeChecker.isArray(i)&&i.find((function(i){return i.id===t})),e=null;return n&&n.mimetype===s.MediaItemInterfaces.MediaItemMimeType.SAPI&&n.customConfig&&n.customConfig["source-metadata-plugin"]&&(e=Object.assign({},n.customConfig["source-metadata-plugin"].qs)),e},t.prototype.getVAConfig=function(t){var i,n,e;return(null===(e=null===(n=null===(i=this.Rc)||void 0===i?void 0:i.pluginConfigs)||void 0===n?void 0:n["va-plugin"])||void 0===e?void 0:e[t])||null},t.prototype.fB=function(){window.performance&&window.performance.timing&&window.performance.timing.navigationStart&&(this.vB=(new Date).getTime()-window.performance.timing.navigationStart)},t.prototype.lB=function(t){this.dB=null,t&&t.enabled&&(this.dB=new h.default({watchHistoryEnabled:t.enabled,watchedPeriod:t.watchedPeriod,watchHistoryExpiry:t.expiry},this),this.dB.clearExpired())},t}();i.default=l},52323:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.baseconfigSchema=void 0,i.baseconfigSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/baseconfigSchema",type:"object",properties:{site:{type:"string"},siteAnalytics:{type:"string"},region:{type:"string"},referrer:{type:"string"},jurisdiction:{type:"string"},pB:{type:"boolean"},experienceType:{type:"string"},strmExprUnMuteOnClick:{type:"boolean"},experienceName:{type:"string"},experienceBucket:{type:"string"},experienceNavStartTime:{type:"string"},pageSpaceId:{type:"string"},syndication:{type:"string"},allowGeoRequest:{type:"boolean"},geoData:{type:"object",properties:{latitude:{type:"string"},longitude:{type:"string"},accuracy:{type:"string"}}},iframeRender:{type:"boolean"},insideIframeConfig:{type:"object",properties:{parentURL:{type:"string"},iframeVID:{type:"string"}}}}}},65311:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.closedcaptionsSchema=void 0,i.closedcaptionsSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/closedcaptionsSchema",type:"object",properties:{show:{type:"boolean"},lang:{default:"en-US",type:"string"},fontSize:{default:24,type:"number"},fontName:{default:"Arial, Helvetica, sans-serif",type:"string"},fontColor:{default:"#ffffff",type:"string"},fontOpacity:{default:1,type:"number"},fontEffect:{default:"none",type:"string"},bgColor:{default:"#000000",type:"string"},bgOpacity:{default:.75,type:"number"},ccPos:{default:"bottom",type:"string"},isAvailable:{type:"boolean"}}}},42756:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.cmsSchema=void 0,i.cmsSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/cmsSchema",type:"object",properties:{colo:{type:"string"},suppressAdContext:{type:"boolean"},enableCache:{type:"boolean"},cachedVs:{type:"string"},env:{type:"string"}}}},21769:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.configSchema=void 0,i.configSchema={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{version:{default:"8.5.54",type:"string"},jshlsVersion:{default:"1.2.63",type:"string"},playlist:{type:"object",properties:{id:{type:"string"}}},CMS:{$ref:"/cmsSchema"},pageLatency:{type:"object",properties:{pagePlayerJsDownloadTime:{type:"number"},pageReqToPlayerInitTime:{type:"number"}}},forcePreloadBufferLimit:{default:32,type:"number"},html5_hls:{type:"object",properties:{useWorker:{type:"boolean"},preloadBufferLimit:{defaul:8,type:"number"}}},geoData:{type:"object",properties:{latitude:{type:"string"},longitude:{type:"string"},accuracy:{type:"string"}}},ui:{$ref:"/uiSchema"},YVAP:{$ref:"/yvapSchema"},metrics:{$ref:"/metricsSchema"},playback:{$ref:"/playbackSchema"},playbackState:{type:"object",properties:{mute:{type:"boolean"},volume:{type:"number"}}},uiState:{type:"object",properties:{isCSSLoaded:{type:"boolean"},deviceOrientation:{type:"boolean"}}},userPreferences:{type:"object",properties:{closedCaptions:{$ref:"/closedcaptionsSchema"},isAdult:{type:"boolean"},isAuthenticated:{type:"boolean"}}},baseConfig:{$ref:"/baseconfigSchema"},rapidConfig:{type:"object",properties:{rapid:{type:"object"},clickParams:{type:"object"},pageParams:{type:"object"}}},playerDimension:{type:"object",properties:{width:{type:"number",default:0},height:{type:"number",default:0}}},aspectRatio:{type:"number"},CTV:{$ref:"/ctvSchema"},failOver:{$ref:"/failoverSchema"},autoplayIgnoreConnType:{type:"boolean"},muteMode:{type:"boolean"},watchHistory:{type:"object",properties:{enabled:{type:"boolean",default:!1},watchedPeriod:{type:"number",default:.5},expiry:{type:"number",default:129600},skipWatchedVideos:{type:"boolean",default:!0}}},pblob:{type:"string"},pluginConfigs:{type:"object",properties:{"source-metadata-plugin":{type:"object"}}}}}},70437:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ctvSchema=void 0,i.ctvSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/ctvSchema",type:"object",properties:{man:{type:"string"},class:{type:"string"},ctvMetricsParams:{type:"object",properties:{ctv_db:{type:"string"},ctv_dc:{type:"string"},bB:{type:"string"},ctv_di:{type:"string"},ctv_ddv:{type:"string"},ctv_dfv:{type:"string"},mB:{type:"string"},yB:{type:"string"},gB:{type:"string"},wB:{type:"string"},_B:{type:"string"},EB:{type:"string"},ctv_yb:{type:"string"},OB:{type:"string"},ctv_yr:{type:"string"},ctv_ybv:{type:"string"},ctv_yv:{type:"string"},SB:{type:"string"},AB:{type:"string"},TB:{type:"string"}}},forceHttp:{type:"boolean"}}}},58143:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.failoverSchema=void 0,i.failoverSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/failoverSchema",type:"object",properties:{fastInitRecoverer:{type:"boolean"},beaconDisasterMode:{default:!1,type:"boolean"},sapiUrl:{type:"string"},convivaSamplingRate:{type:"object",properties:{vod:{default:0,type:"number"},live:{default:0,type:"number"}}},recoveryFailureTimeout:{default:120,type:"number"}}}},54963:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.metricsSchema=void 0,i.metricsSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/metricsSchema",type:"object",properties:{disableAllBeacons:{type:"boolean"},comscoreC4:{type:"string"},ccode:{type:"string"},sec:{type:"string"},skipComscore:{type:"boolean"},skipABRBeacon:{type:"boolean"},ywaSamplingRate:{default:1,type:"number"},ultSamplingRate:{default:1,type:"number"},qosSamplingRate:{default:1,type:"number"},cpos:{type:"string"},progressBeaconStrategy:{type:"object",properties:{fixed:{type:"array",items:[{type:"number"}]},recurring:{type:"number"},playerUnload:{type:"boolean"},playPause:{type:"boolean"}}}}}},10433:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.playbackSchema=void 0,i.playbackSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/playbackSchema",type:"object",properties:{skipWatchedVideos:{type:"boolean"},bitrate:{default:0,type:"number"},targetBitrate:{type:"number"},disableGPU:{type:"boolean"},quality:{type:"string"},bitrates:{type:"array",items:[{type:"number"}]},desiredBitrate:{default:900,type:"number"},startTime:{type:"number"},conviva:{type:"boolean"},preconnect:{type:"boolean"},abr:{type:"boolean"},protocol:{type:"string"},skipFormats:{type:"array",items:[{type:"string"}]},playInlineVideo:{type:"boolean"},isResume:{type:"boolean"},ignoreEndlist:{type:"boolean"}}}},34324:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.uiSchema=void 0,i.uiSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/uiSchema",type:"object",properties:{contentTypeLabel:{type:"string"},displayMarkers:{type:"object",properties:{type:{type:"string"},group:{type:"boolean"}}},showEndScreen:{type:"boolean"},showFullscreen:{type:"boolean"},upNextScreen:{type:"object",properties:{show:{type:"boolean"}}},showAgeGate:{type:"boolean"},logoOverlay:{type:"string",enum:["bottomRight","bottomLeft","off"]},allowGeoRequest:{type:"boolean"},thumbnailDimensions:{type:"object",properties:{height:{type:"number"},width:{type:"number"}}},vttIndex:{type:"number"}}}},52421:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.yvapSchema=void 0,i.yvapSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/yvapSchema",type:["object","null"],properties:{accountId:{type:"string"},timeout:{type:["number","string"]},cTopic:{type:"string"},standaloneAd:{type:"object",properties:{xml:{type:"string"},showAdSlug:{type:"boolean"}}},vpaidTimeout:{type:"number"},adsReady:{type:"boolean"},preInitVpaid:{type:"boolean"}}}},26463:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(47919),r=function(){function t(t,i){this.MB=null,this.jB=i,this.jU=new e.default(t)}return t.prototype.verify=function(t){if(this.jU){var i={onComplete:function(){t(!0)},onError:function(){t(!1)},onProgress:function(){},onApiCallInfo:function(){}};this.jB&&this.jU.resolve([this.jB],{},{},i)}},t.prototype.scheduleVerification=function(t,i){var n=this;this.NB(),this.MB=window.setTimeout((function(){n.verify(t)}),i)},t.prototype.destroy=function(){this.NB(),this.jU=null,this.jB=null},t.prototype.NB=function(){this.MB&&(clearTimeout(this.MB),this.MB=null)},t}();i.default=r},57879:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.OathPlayerFactory=void 0;var e=n(72421),r=n(56181);i.OathPlayerFactory=function(t,i){var n=(null==t?void 0:t.iframeRender)||!1;return(null==t?void 0:t.insideIframeConfig)||!1||!n?new e.default(t,i):new r.default(t)}},72421:function(t,i,n){"use strict";var e,r=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__spreadArray||function(t,i){for(var n=0,e=i.length,r=t.length;n<e;n++,r++)t[r]=i[n];return t};Object.defineProperty(i,"__esModule",{value:!0});var o=n(81409),u=n(40660),a=n(88173),c=n(50155),h=n(2719),f=n(95577),l=n(80106),v=n(52323),d=n(65311),p=n(42756),b=n(21769),m=n(70437),y=n(58143),g=n(54963),w=n(10433),_=n(34324),E=n(52421),O=n(54796),S=n(83982),A=n(39451),T=function(t){function i(i,n){var e,r,o,u,a=t.call(this,"OathPlayer")||this;a.IB=!1,a.kB=!1,a.version="8.5.54",a.playerType="desktop",a.jshlsVer="1.2.63",a.coreVer="0.5.65",a.RB=i,a.LB=Date.now(),a.$F=null,i.playerId=i.playerId||S.default.generateGuid(),i=JSON.parse(JSON.stringify(i)),i=S.default.isLegacyConfig(i)?S.default.transformLegacyConfig(i):i,a.CB(i);var v=[a.version,a.LB];a.tn=new h.default(i,n,a),a.kI=new f.default(a.tn),a.playlist=new O.default(a.tn.getPlaylist()),a.DB(i),a.PB(i),c.default.sendPlayerInitBeacon.apply(c.default,s([i],v)),a.PA(i),a.tn.initialize(),a.xB(),a.IB&&(a.$F=new l.default(i,a));var d=null===(r=null===(e=window.performance)||void 0===e?void 0:e.getEntriesByName)||void 0===r?void 0:r.call(e,"vplayerinit");return 0===(null==d?void 0:d.length)&&(null===(u=(o=window.performance).mark)||void 0===u||u.call(o,"vplayerinit")),a}return r(i,t),i.prototype.render=function(t){return this.IB&&this.kB&&this.$F&&(this.$F.setupIframeToPageCommunication(),this.$F.sendClearIframeNameToPage()),this.tn.render(t),this},i.prototype.destroy=function(){this.tn.destroy(),t.prototype.destroy.call(this)},i.prototype.getCurrentTime=function(){return this.tn.getCurrentTime()},i.prototype.getCurrentDate=function(){return this.tn.getCurrentDate()},i.prototype.getVolume=function(){return this.tn.getVolume()},i.prototype.setQueryString=function(t){},i.prototype.removeAllMediaItems=function(){return!0},i.prototype.setPlaybackRate=function(t){var i;null===(i=this.kI)||void 0===i||i.setPlaybackRate(t)},i.prototype.play=function(t,i){this.kI.play(t,i)},i.prototype.pause=function(t){this.kI.pause(t)},i.prototype.mute=function(){this.kI.setMute(!0)},i.prototype.unMute=function(){this.kI.setMute(!1)},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),this.kI.setVolume(t,i)},i.prototype.isAd=function(){return this.tn.isAd()},i.prototype.seek=function(t){this.kI.seek(t)},i.prototype.getMediaStore=function(){return this.tn.getMediaStore()},i.prototype.isPlaying=function(){return this.tn.isPlayMode()},i.prototype.isPlayMode=function(){return this.tn.isPlayMode()},i.prototype.isDocked=function(){return this.tn.isDocked()},i.prototype.setMediaItemTitle=function(t,i){return this.tn.setMediaItemTitle(t,i)},i.prototype.isLoading=function(){return this.tn.isLoading()},i.prototype.getVideoElement=function(){return this.tn.getVideoElement()},i.prototype.getRootElement=function(){return this.tn.getRootElement()},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.tn.updateDockingConfig(t,i,n,e,r,s)},i.prototype.undockVideoPlayer=function(t){this.tn&&this.tn.undockVideoPlayer(t)},i.prototype.on=function(i,n,e){var r,s=this;if(Object.keys(a.Events).some((function(t){return a.Events[t]===i}))){var o=this.tn.addCorePlayerListener(i,n);r=function(){s.tn.removeCorePlayerListener(i,o)}}else{var u=t.prototype.addEventListener.call(this,i,n,e);r=function(){t.prototype.removeEventListener.call(s,i,u)}}return r.detach=r,r},i.prototype.suspend=function(){this.tn.suspend()},i.prototype.resume=function(){this.tn.resume(),this.playlist.playlist=this.tn.getPlaylist()},i.prototype.isSuspended=function(){return this.tn&&this.tn.isSuspended()||!1},i.prototype.isRendered=function(){return this.tn&&this.tn.isRendered()||!1},i.prototype.updateGeoConfig=function(t){this.tn.updateGeoConfig(t)},i.prototype.getPlaybackStartDto=function(){return this.tn.getPlaybackStartDto()},i.prototype.getInitTime=function(){return this.LB},Object.defineProperty(i.prototype,"guid",{get:function(){return this.tn&&this.tn.guid||""},enumerable:!1,configurable:!0}),i.prototype.getMediaItemMarkers=function(t){return this.tn.getMediaItemMarkers(t)},i.prototype.addCustomControlElement=function(t){return this.tn.addCustomControlElement(t)},Object.defineProperty(i.prototype,"oathConfig",{get:function(){return this.RB},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iframeController",{get:function(){return this.$F},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"controls",{get:function(){return this.kI},set:function(t){this.kI=t},enumerable:!1,configurable:!0}),i.prototype.setSapiOptions=function(t,i){if(!t||!t.length)throw new Error("InvalidArgumentException");i&&this.tn.setSapiOptions(t,i)},i.prototype.setStartInBackground=function(t){this.tn.setStartInBackground(t)},i.prototype.__setError=function(t,i,n,e,r){this.tn.setError(t,i,n,e,r)},i.prototype.__getSyncOffset=function(){return this.tn.getSyncOffset()},i.prototype.startSync=function(){this.tn.startSync()},i.prototype.stopSync=function(){this.tn.stopSync()},i.prototype.xB=function(){if(S.default.isOathDomain()){this.config=this.RB}},i.prototype.CB=function(t){t.pageSpaceId&&"string"==typeof t.pageSpaceId&&(t.pageSpaceId=t.pageSpaceId.trim())},i.prototype.PA=function(t){try{var i=new u.Validator;i.addSchema(v.baseconfigSchema,"/baseconfigSchema"),i.addSchema(d.closedcaptionsSchema,"/closedcaptionsSchema"),i.addSchema(p.cmsSchema,"/cmsSchema"),i.addSchema(m.ctvSchema,"/ctvSchema"),i.addSchema(g.metricsSchema,"/metricsSchema"),i.addSchema(w.playbackSchema,"/playbackSchema"),i.addSchema(_.uiSchema,"/uiSchema"),i.addSchema(E.yvapSchema,"/yvapSchema"),i.addSchema(y.failoverSchema,"/failoverSchema"),i.validate(t,b.configSchema,{throwError:!0})}catch(t){var n="Invalid player config: "+t.property+" "+t.message;throw new Error(n)}},i.prototype.DB=function(t){this.IB=(null==t?void 0:t.iframeRender)||!1,this.kB=(null==t?void 0:t.insideIframeConfig)||!1},i.prototype.PB=function(t){if(A.userAgent.chrome&&window.self!==window.top&&window.ReportingObserver){var i=new window.ReportingObserver((function(i){c.default.sendInterventionReports(i,t)}),{buffered:!0,types:["intervention"]});i.observe(),window.addEventListener("unload",(function(n){var e=i.takeRecords();c.default.sendInterventionReports(e,t)}))}},i}(o.default);i.default=T},54796:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=function(){function t(t){var i=this;this.UB=["clear","getCurrentItem","getCurrentItemDescription","getCurrentItemId","getCurrentItemLiveStatus","getCurrentItemMarkers","getCurrentItemProviderName","getCurrentItemTitle","getIndexForId","getItem","getItemById","getItemId","getItems","getPosition","getSize","removeItem","removeItemById","removeItems","removeItemsById","sendPrefetchInfo","setPosition","setPositionById"],this.Tg=t,this.UB.forEach((function(t){i[t]=function(){return this.Tg[t].apply(this.Tg,arguments)}}))}return t.prototype.addItem=function(t){return this.Tg.addItem(this.FB([t])[0])},t.prototype.addItems=function(t,i){return void 0===i&&(i=!1),this.Tg.addItems(this.FB(t),i)},t.prototype.setItems=function(t){return this.Tg.setItems(this.FB(t))},Object.defineProperty(t.prototype,"playlist",{set:function(t){this.Tg=t},enumerable:!1,configurable:!0}),t.prototype.FB=function(t){var i=this.BB();return t.map((function(t){return{id:t,mimetype:i}}))},t.prototype.BB=function(){var t=this.Tg.getCurrentItem();return t&&t.mimetype||e.MediaItemInterfaces.MediaItemMimeType.SAPI},t}();i.default=r},18682:function(t,i,n){"use strict";n(66992),n(41539),n(88674),n(17727),n(78783),n(33948),n(19601),n(26833),n(26699),n(69826),n(84944),n(33792),n(18927),n(32023),n(83112),Object.defineProperty(i,"__esModule",{value:!0}),n(35449)},36827:function(t,i,n){"use strict";var e,r,s,o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},o.apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var u=n(95986),a=n(31123),c=o(o({},u),a),h=(null===(s=null===(r=null===(e=window.OATH)||void 0===e?void 0:e.VideoPlatform)||void 0===r?void 0:r.i18n)||void 0===s?void 0:s.strings)||c;i.default=h},74449:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(88173),r=n(29086),s=function(){function t(){var t=this;this.zB=[],this.VB=new r.default(Object.create(e.Player.prototype),{get:function(i,n){var e=t;return function(){e.zB.push({method:n,args:arguments}),"render"===n&&arguments.length>0&&e.uS.call(e,arguments[0])}}})}return t.prototype.destroy=function(){var t=this.GB;this.VB=void 0,this.zB=[],t&&t.parentNode&&(t.parentNode.removeChild(t),this.GB=void 0)},t.prototype.execute=function(t){this.zB.forEach((function(i){var n=i.method,e=i.args;t[n].apply(t,e)})),this.zB=[]},t.prototype.getProxy=function(){return this.VB},t.prototype.uS=function(t){var i="string"==typeof t?document.querySelector(t):t;if(null!==i&&i instanceof window.HTMLElement){var n=document.createElement("div");n.setAttribute("style","width:100%;height:100%;background:#000;position:absolute;left:0;top:0;"),i.appendChild(n),this.GB=n}},t}();i.default=s},29086:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(t,i){var n=this,e=function(e){if(i&&i.get)return i.get(t,e,n)},r=Object.getOwnPropertyNames(t),s={};for(var o in r.forEach((function(i){var r={enumerable:!!(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable,get:e.bind(t,i)};Object.defineProperty(n,i,r),s[i]=!0})),t)s[o]||n[o]||Object.defineProperty(n,o,{get:e.bind(t,o)});for(var u=0,a=Object.getOwnPropertyNames(Object.getPrototypeOf(t));u<a.length;u++)o=a[u],s[o]||n[o]||Object.defineProperty(n,o,{get:e.bind(t,o)});Object.seal(t),Object.seal(n)};i.default=n},83982:function(t,i,n){"use strict";var e=n(18698),r=this&&this.__spreadArray||function(t,i){for(var n=0,e=i.length,r=t.length;n<e;n++,r++)t[r]=i[n];return t};Object.defineProperty(i,"__esModule",{value:!0}),i.SCRIPT_LOAD_STATE=void 0;var s,o=n(39451),u=n(88173),a=n(53872),c=n(58560),h=["yahoo.com","yahoo.co.jp","yahoo.net","yahoo.fr","yimg.com","cdn.launch3d.com","rivals.com","tumblr.com","txmblr.com","flickr.com","maktoob.com","grindtv.com","thepostgame.com","nfl.com","nfljapan.com","movie.yahoo-leisure.hk","mmovie.yahoo-leisure.hk","wt.video.corp.yahoo.com","yahooinc.com"],f=["cdn.ampproject.org","amp.cloudflare.com","bing-amp.com"],l=["oath.com","ouroath.com","cashay.com","dpk0sergzlt6z.cloudfront.net","sandbox.sdaily.samsung.com","autoblog.com","intheknow.com"].concat(h).concat(["aol.com","aol.co.uk","aol.ca","aol.jp","aol.de"]).concat(["huffpost.com","huffpost.net","huffingtonpost.co.uk","huffingtonpost.com.au","huffingtonpost.in","huffpostbrasil.com","huffingtonpost.ca","huffingtonpost.fr","huffingtonpost.es","huffingtonpost.it","huffingtonpost.kr","huffingtonpost.jp","huffingtonpost.gr"]),v="lazyLoadState";!function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOAD_COMPLETE=2]="LOAD_COMPLETE"}(s=i.SCRIPT_LOAD_STATE||(i.SCRIPT_LOAD_STATE={}));var d=function(){function t(){}return t.isOffNetwork=function(i,n){i=i||t.getHostUrl();var e=t.parseDomain(i);if(!i||o.userAgent.samsung)return!1;var r=n?h:l,s=[];return f.forEach((function(t){r.forEach((function(i){var n=i.replace(/-/g,"--").replace(/\./g,"-");s.push(n+"."+t)}))})),(s=s.concat(r)).push("localhost"),s.push("localhost.local"),!e||!s.some((function(t){return-1!==e.indexOf(t,e.length-t.length)}))},t.isYahooDomain=function(i){return!1===t.isOffNetwork(i,!0)},t.isOathDomain=function(i){return!1===t.isOffNetwork(i,!1)},t.isAllowlistedDomain=function(i){var n=t.parseDomain(i||t.getHostUrl())||"";return["publishing.oath.com"].some((function(t){return!!n.match(new RegExp(t+"$"))}))},t.getHostUrl=function(){var t=document.referrer;try{window.top.location.href&&(t=window.top.location.href)}catch(t){}return t},t.parseDomain=function(t){var i=/^https?:\/\/([A-Za-z0-9\.\-]*)(?:$|\/|:)/.exec(t);return i?i[1]:null},t.isValidUrl=function(t){return/^https:\/\/[a-z0-9-\.]+\.[a-z]{2,4}\/?([^\s<>\#%"\,\{\}\\|\\\^\[\]`]+)?$/.test(t)},t.getPageQueryString=function(){return new URLSearchParams(t.getWindow().location.search)},t.isIframe=function(){var i=t.getWindow();try{return i.top!==i.self}catch(t){return!0}},t.sendIframeBeacon=function(i){i=t.fixProtocol(i);var n=Math.random(),e="vp-beacons",r=document.querySelector("#"+e),s=e+"-"+n;r||(r=t.createBeaconsIframe(document,e),document.body.appendChild(r));var o=t.createBeaconsIframe(r.contentDocument,s);return o.src=i,"complete"===r.contentDocument.readyState?r.contentDocument.body.appendChild(o):r.contentDocument.body.onload=function(){r.contentDocument.body.appendChild(o)},!0},t.createBeaconsIframe=function(t,i){var n=t.createElement("iframe");return n.frameBorder=0,n.width=0,n.height=0,n.marginwidth=0,n.marginheight=0,n.hspace=0,n.vspace=0,n.frameborder=0,n.scrolling="no",n.id=i,n.style.display="none",n.title="",n},t.sendImageBeacon=function(i){i=t.fixProtocol(i);var n=new Image;n.onload=n.onabort=n.onerror=function(){n.onload=n.onabort=n.onerror=null,n=null},n.src=i},t.sendBeaconWithHeader=function(t,i){a.Loader.ajax(t,{headers:i,method:"GET",successHandler:function(){},failureHandler:function(t){},context:this})},t.fixProtocol=function(t){return o.userAgent.samsung&&0===t.indexOf("//")?"https:"+t:t},t.lazyLoad=function(i,n){var e=t.getLazyLoadState(i);if(e.state!==s.LOADING){if(e.state===s.LOAD_COMPLETE)return n(!0);e.state=s.LOADING,e.subscribers.push(n);t.loadScript(i,(function(t){e.state=s.LOAD_COMPLETE,e.subscribers.forEach((function(i){return i(t)}))}))}else e.subscribers.push(n)},t.getLazyLoadState=function(i){var n=t.getSingleton(v),e={state:s.NOT_LOADED,subscribers:[]};if(n&&n[i])e=n[i];else if(n)n[i]=e;else{var r={};r[i]=e,t.setSingleton(v,r)}return e},t.loadScript=function(t,i){var n=document.createElement("script");n.async=!0,n.src=t,n.onload=function(){return i(!0)},n.onerror=function(){return i(!1)},document.body.appendChild(n)},t.setSingleton=function(t,i){window.OATH=window.OATH||{},window.OATH.VideoPlatform=window.OATH.VideoPlatform||{},window.OATH.VideoPlatform[t]=i},t.getSingleton=function(t){return window.OATH&&window.OATH.VideoPlatform&&window.OATH.VideoPlatform[t]?window.OATH.VideoPlatform[t]:null},t.isValidRequestAction=function(t){return-1!==[null,c.REQUEST_TYPES.CLICK,c.REQUEST_TYPES.AUTOPLAY,c.REQUEST_TYPES.HOVER,c.REQUEST_TYPES.PLAY,c.REQUEST_TYPES.PAUSE,c.REQUEST_TYPES.SCROLL,c.REQUEST_TYPES.SWIPE,c.REQUEST_TYPES.BACKGROUND].indexOf(t)},t.transformLegacyConfig=function(i){var n,r,s,o;if(null===(r=null===(n=null==i?void 0:i.YVAP)||void 0===n?void 0:n.standaloneAd)||void 0===r?void 0:r.brxd)return{mediaItems:[{mimetype:"media/container",id:this.HB(),adConfig:{mimetype:"adplugin/vrm",value:{type:"preroll",vendor:"standalone_brxd",adOnly:!0,vastXml:i.YVAP.standaloneAd.brxd}}}],ui:{showFullscreenButton:i.fullscreenBtn,playlist:{show:!1,position:"hidden"}},playlist:{id:null===(s=i.playlist)||void 0===s?void 0:s.id},pluginConfigs:{"source-metadata-plugin":{"media/sapi":{disableAdFetch:!0}}},videoRecommendations:null===(o=i.playlist)||void 0===o?void 0:o.videoRecommendations,continuousPlay:!0,pageSpaceId:i.pageSpaceId,mute:"true"===i.mute||!0===i.mute,autoplay:i.autoplay,region:i.region,expName:i.expName,site:i.site,comscoreC4:i.comscoreC4,rapidConfig:{pageParams:{pt:"ad_iframe",ver:"VSSP",pct:"ad_iframe"}}};var h=Object.assign({mediaItems:[],ui:{},watchHistory:{enabled:!1,watchedPeriod:.5,expiry:129600,skipWatchedVideos:!0}},i),f=!1;if(i.playlist&&i.playlist.mediaItems){i.playlist=Object.assign({},i.playlist);for(var l=0,v=i.playlist.mediaItems;l<v.length;l++){var d=v[l],p=null;d.id===c.GEMINI_STUB_VIDEO_ID&&i.YVAP&&i.YVAP.standaloneAd&&(p=t.YB(d,i)),p||(p={mimetype:d.id?u.MediaItemInterfaces.MediaItemMimeType.SAPI:u.MediaItemInterfaces.MediaItemMimeType.CONTAINER,id:d.id||""},d.adConfig&&(p.adConfig=d.adConfig),(d.meta||d.streams)&&(p.customConfig={response:d}),d.streams&&p.mimetype===u.MediaItemInterfaces.MediaItemMimeType.CONTAINER&&(p.source=p.source||{},p.source.streams=d.streams),d.meta&&d.meta.playlist_config&&(f=!0));var b=d.images;b&&(b.thumbnail||b.large||b.medium||b.small)&&(p.metadata=p.metadata||{},p.metadata.thumbnail=b.thumbnail||b.large||b.medium||b.small),h.mediaItems.push(p)}void 0!==h.playlist.videoRecommendations&&(h.videoRecommendations=h.playlist.videoRecommendations),h.playlist.id?delete h.playlist.mediaItems:delete h.playlist}i.region&&(h.region=i.region.toUpperCase()),i.docking&&(h.ui.docking=Object.assign({},i.docking),h.ui.docking.position={},["Top","Right","Bottom","Left"].forEach((function(t){var n="position"+t,e=i.docking[n];h.ui.docking.position[t.toLowerCase()]="number"==typeof e?e:-1,delete h.ui.docking[n]})),delete h.docking);return[["ccOnMute","ccOnMute"],["chromeless","chromeless"],["showControls","showControls"],["showAgeGate","showAgeGate"],["fullscreenBtn","showFullscreenButton"]].forEach((function(t){void 0!==i[t[0]]&&(h.ui[t[1]]=!!i[t[0]]),delete h[t[0]]})),void 0!==i.startscreen&&"object"!==e(i.startscreen)?(h.ui.startScreen={show:!!i.startscreen},delete h.startscreen):"object"===e(i.startscreen)&&i.startscreen&&(h.ui.startScreen=h.ui.startScreen||{},["showButton","show","showDesc","showControls","showProvider","showTitle"].forEach((function(t){void 0!==i.startscreen[t]&&(h.ui.startScreen[t]=!!i.startscreen[t])})),h.ui.startScreen.showDescription=!!i.startscreen.showDesc,delete h.ui.startScreen.showDesc,delete h.startscreen),void 0!==i.endscreen&&"object"!==e(i.endscreen)?(h.ui.endScreen={show:!!i.endscreen},delete h.endscreen):"object"===e(i.endscreen)&&i.endscreen&&(h.ui.endScreen=i.endscreen,delete h.endscreen),void 0!==i.replayonlyendscreen&&"boolean"==typeof i.replayonlyendscreen&&(h.ui.endScreen={show:!!i.replayonlyendscreen},delete h.replayonlyendscreen),["Start","Hover"].forEach((function(t){var n="showTitleOn"+t;void 0!==i[n]&&(h.ui.title=h.ui.title||{},h.ui.title["showOn"+t]=i[n],delete h[n])})),void 0!==i.watchHistoryEnabled&&(h.watchHistory.enabled=i.watchHistoryEnabled,delete h.watchHistoryEnabled),void 0!==i.watchedPeriod&&(h.watchHistory.watchedPeriod=i.watchedPeriod,delete h.watchedPeriod),void 0!==i.watchHistoryExpiry&&(h.watchHistory.expiry=i.watchHistoryExpiry,delete h.watchHistoryExpiry),i.YVAP&&("number"==typeof i.YVAP.timeout&&(h.ads=h.ads||{timeout:{}},h.ads.timeout.load=i.YVAP.timeout),"number"==typeof i.YVAP.vpaidTimeout&&(h.ads=h.ads||{timeout:{}},h.ads.timeout.start=i.YVAP.vpaidTimeout)),i.playlistUI&&(h.ui.playlist=i.playlistUI,i.playlistUI.playlistId&&(h.playlist=h.playlist||{},h.playlist.id=i.playlistUI.playlistId),delete h.playlistUI),f&&h.ui.playlist&&(h.ui.playlist.mimetype="playlist/structured"),["height","width"].forEach((function(t){i[t]&&a.TypeChecker.isString(i[t])&&(h[t]=parseInt(i[t],10),a.TypeChecker.isNumber(h[t])||delete h[t])})),h},t.isLegacyConfig=function(t){return!(!t||!t.playlist||!t.playlist.mediaItems&&!t.playlist.id)},t.formatTime=function(t){var i=Math.floor(t/3600),n=Math.floor((t-3600*i)/60),e=Math.floor(t-3600*i-60*n),r=e<10?"0"+e:e.toString(),s="";if(i>0){var o=n<10?"0"+n:n.toString();s=i.toString()+":"+o+":"+r}else a.TypeChecker.isNumber(n)&&(s=n.toString()+":"+r);return s},t.getPlayerType=function(){var i=t.getSingleton("PlayerHosting"),n="desktop";if(i&&i.type){var e=i.type.match(/^oath\-player\-([a-z\-]*)\.js/);e&&e[1]&&(n=e[1])}return"nextgen-"+(n="mobile-ios"===n?"ios":n)},t.getBckt=function(){var i=t.getSingleton("PlayerHosting"),n="Treatment_Oath_Player";if(i){var e=i.bucket,r=i.env;return e||("prod"===r?n:null)||"none"}return n},t.isInternalUser=function(){var i=t.getSingleton("PlayerHosting");return i&&"stage"===i.env},t.getCookie=function(t){t+="=";var i=document.cookie.split(/;\s*/),n=null;return i.forEach((function(i){i.indexOf(t)>-1&&(n=i.replace(t,""))})),n},t.extend=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return a.TypeChecker.isObject(t)||(t={}),Object.assign.apply(Object,r([t],i)),t},t.getResourceLoadTime=function(t){if(window.performance&&window.performance.getEntriesByType){var i=window.performance.getEntriesByType("resource");for(var n in i)if(i[n]&&i[n].name&&i[n].name.match(t))return i[n].duration}return null},t.generateGuid=function(i){return i?(0|16*Math.random()).toString(16):"10000000-1000-4000-8000-100000000000".replace(/1|0/g,t.generateGuid)},t.getWindow=function(){return window},t.YB=function(t,i){var n;return t&&i&&i.YVAP&&i.YVAP.standaloneAd&&i.YVAP.standaloneAd.gemini?(i.YVAP.standaloneAd.gemini.disableAdCountdown=null===(n=null==i?void 0:i.ui)||void 0===n?void 0:n.disableAdCountdown,{mimetype:u.MediaItemInterfaces.MediaItemMimeType.CONTAINER,metadata:{type:u.MediaItemInterfaces.MediaItemType.CONTAINER},id:"gemini-ad-"+Math.ceil(1e11*Math.random()),adConfig:{mimetype:c.MARTINI_PLUGIN_MIMETYPE,value:{YVAP:i.YVAP}}}):null},t.HB=function(){for(var t="",i="0987654321qwertyuiopasdfghjklzxcvbnm",n=0;n<12;n++)t+=i[Math.floor(36*Math.random())];return"lrec-"+t},t}();i.default=d},82402:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(53872),r="vpResumeTimeItems",s=function(){function t(t,i){this.qB=t.watchHistoryEnabled||!1,this.WB=t.watchedPeriod||.5,this.QB=t.watchHistoryExpiry||129600,this.vt=i}return t.prototype.isWatched=function(t,i){if(!this.qB)return!1;if(!t)throw new Error("UUID not passed for isWatched!");var n=e.LocalStorage.get(r);if(!n||!n[t])return!1;var s=n[t].position;return this.isDeemedWatched(s,i)},t.prototype.clearExpired=function(){var t=e.LocalStorage.get(r),i=(new Date).getTime(),n=!1;t&&(Object.keys(t).forEach((function(e){var r=t[e].expiryTime;r&&i-r>0&&(delete t[e],n=!0)})),n&&e.LocalStorage.put(r,t))},t.prototype.saveProgress=function(t,i){var n=e.LocalStorage.get(r)||{},s=this.QB;n[t.id]={position:t.position},i&&(n[t.id].expiryTime=(new Date).getTime()+1e3*s,this.isDeemedWatched(t.position,t.duration)?this.vt.setMediaItemWatched(t.id,!0):this.vt.setMediaItemWatched(t.id,!1)),e.LocalStorage.put(r,n)},t.prototype.getProgress=function(t){if(!t)throw new Error("UUID not passed for getProgress!");var i=e.LocalStorage.get(r);return i?i[t]:null},t.prototype.isDeemedWatched=function(t,i){var n=this.WB;return!(!this.qB||!i)&&(n>=0&&n<=1?t>=i*n:i<=n?t>=i-5:t>=n)},t}();i.default=s},51833:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getErrorCode=void 0;var e=n(53872),r=e.errorCodes.PLAYER_CODES,s={0:{timeout:r.E_CMS_XHR_REQ_CONNECTION_FAILED_TIMEOUT,default:r.E_CMS_XHR_REQ_CONNECTION_FAILED},1:{timeout:r.E_CMS_XHR_RESPONSE_ABSENT_TIMEOUT,default:r.E_CMS_XHR_RESPONSE_ABSENT},2:{408:r.E_CMS_XHR_REQ_LOAD_408,timeout:r.E_CMS_XHR_REQ_LOAD_TIMEOUT,default:r.E_CMS_XHR_REQ_LOAD_FAILED},3:{408:r.E_CMS_XHR_REQ_408,timeout:r.E_CMS_XHR_REQ_INCOMPLETE_TIMEOUT,default:r.E_CMS_XHR_REQ_INCOMPLETE},default:{timeout:r.E_CMS_XHR_REQ_TIMEOUT,cors:r.E_CMS_XHR_REQ_CORS_ERROR,default:r.E_CMS_XHR_REQ_ERROR}};i.getErrorCode=function(t,i,n){var r;return i=i&&s[i]?i:"default",(null===(r=null==t?void 0:t.message)||void 0===r?void 0:r.includes(e.LoaderConstants.XHR_TIMEOUT))?n="timeout":n&&s[i][n]||(n="default"),s[i][n]}},91286:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(32217),r=function(){function t(){this.ux=new e.default}return t.prototype.updateOathPlayerOpss=function(t,i,n){this.ux.updateOathPlayerInfo(t,i,n)},t}();i.default=r},32217:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.updateOathPlayerInfo=function(t,i,n){if(!1!==t){var e=i&&i.querySelector(".vp-opss-info");if(e){var r=e.querySelector(".vp-opss-title"),s=this.ZB(n.version),o=e.querySelector(".vp-opss-lmsid");e.insertBefore(s,r);var u=this.$B(),a=e.querySelector(".vp-opss-hosting");a&&(a.innerHTML=u);var c=e.querySelector(".vp-opss-profile");c&&(c.innerHTML=JSON.stringify(n.config,void 0,2)),o&&(o.innerHTML="<span class='vp-details'> License Id(LMS ID): </span> "+n.lmsId)}}},t.prototype.ZB=function(t){var i=document.createElement("div");i.classList.add("vp-opss-oath-title");var n=document.createElement("div");n.classList.add("vp-opss-title"),n.innerHTML="OATH PLAYER";var e=document.createElement("div");return e.innerHTML=t,i.appendChild(n),i.appendChild(e),i},t.prototype.$B=function(){var t=window.OATH,i=t&&t.VideoPlatform&&t.VideoPlatform.PlayerHosting||"local";return JSON.stringify(i,void 0,2)},t}();i.default=n},19662:function(t,i,n){"use strict";var e=n(60614),r=n(66330),s=TypeError;t.exports=function(t){if(e(t))return t;throw s(r(t)+" is not a function")}},39483:function(t,i,n){"use strict";var e=n(4411),r=n(66330),s=TypeError;t.exports=function(t){if(e(t))return t;throw s(r(t)+" is not a constructor")}},96077:function(t,i,n){"use strict";var e=n(60614),r=String,s=TypeError;t.exports=function(t){if("object"==typeof t||e(t))return t;throw s("Can't set "+r(t)+" as a prototype")}},51223:function(t,i,n){"use strict";var e=n(5112),r=n(70030),s=n(3070).f,o=e("unscopables"),u=Array.prototype;void 0===u[o]&&s(u,o,{configurable:!0,value:r(null)}),t.exports=function(t){u[o][t]=!0}},25787:function(t,i,n){"use strict";var e=n(47976),r=TypeError;t.exports=function(t,i){if(e(i,t))return t;throw r("Incorrect invocation")}},19670:function(t,i,n){"use strict";var e=n(70111),r=String,s=TypeError;t.exports=function(t){if(e(t))return t;throw s(r(t)+" is not an object")}},23013:function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},90260:function(t,i,n){"use strict";var e,r,s,o=n(23013),u=n(19781),a=n(17854),c=n(60614),h=n(70111),f=n(92597),l=n(70648),v=n(66330),d=n(68880),p=n(98052),b=n(47045),m=n(47976),y=n(79518),g=n(27674),w=n(5112),_=n(69711),E=n(29909),O=E.enforce,S=E.get,A=a.Int8Array,T=A&&A.prototype,M=a.Uint8ClampedArray,j=M&&M.prototype,N=A&&y(A),I=T&&y(T),k=Object.prototype,R=a.TypeError,L=w("toStringTag"),C=_("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",P=o&&!!g&&"Opera"!==l(a.opera),x=!1,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},B=function(t){var i=y(t);if(h(i)){var n=S(i);return n&&f(n,D)?n[D]:B(i)}},z=function(t){if(!h(t))return!1;var i=l(t);return f(U,i)||f(F,i)};for(e in U)(s=(r=a[e])&&r.prototype)?O(s)[D]=r:P=!1;for(e in F)(s=(r=a[e])&&r.prototype)&&(O(s)[D]=r);if((!P||!c(N)||N===Function.prototype)&&(N=function(){throw R("Incorrect invocation")},P))for(e in U)a[e]&&g(a[e],N);if((!P||!I||I===k)&&(I=N.prototype,P))for(e in U)a[e]&&g(a[e].prototype,I);if(P&&y(j)!==I&&g(j,I),u&&!f(I,L))for(e in x=!0,b(I,L,{configurable:!0,get:function(){return h(this)?this[C]:void 0}}),U)a[e]&&d(a[e],C,e);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:x&&C,aTypedArray:function(t){if(z(t))return t;throw R("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!g||m(N,t)))return t;throw R(v(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,i,n,e){if(u){if(n)for(var r in U){var s=a[r];if(s&&f(s.prototype,t))try{delete s.prototype[t]}catch(n){try{s.prototype[t]=i}catch(t){}}}I[t]&&!n||p(I,t,n?i:P&&T[t]||i,e)}},exportTypedArrayStaticMethod:function(t,i,n){var e,r;if(u){if(g){if(n)for(e in U)if((r=a[e])&&f(r,t))try{delete r[t]}catch(t){}if(N[t]&&!n)return;try{return p(N,t,n?i:P&&N[t]||i)}catch(t){}}for(e in U)!(r=a[e])||r[t]&&!n||p(r,t,i)}},getTypedArrayConstructor:B,isView:function(t){if(!h(t))return!1;var i=l(t);return"DataView"===i||f(U,i)||f(F,i)},isTypedArray:z,TypedArray:N,TypedArrayPrototype:I}},41318:function(t,i,n){"use strict";var e=n(45656),r=n(51400),s=n(26244),o=function(t){return function(i,n,o){var u,a=e(i),c=s(a),h=r(o,c);if(t&&n!=n){for(;c>h;)if((u=a[h++])!=u)return!0}else for(;c>h;h++)if((t||h in a)&&a[h]===n)return t||h||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},42092:function(t,i,n){"use strict";var e=n(49974),r=n(1702),s=n(68361),o=n(47908),u=n(26244),a=n(65417),c=r([].push),h=function(t){var i=1===t,n=2===t,r=3===t,h=4===t,f=6===t,l=7===t,v=5===t||f;return function(d,p,b,m){for(var y,g,w=o(d),_=s(w),E=e(p,b),O=u(_),S=0,A=m||a,T=i?A(d,O):n||l?A(d,0):void 0;O>S;S++)if((v||S in _)&&(g=E(y=_[S],S,w),t))if(i)T[S]=g;else if(g)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:c(T,y)}else switch(t){case 4:return!1;case 7:c(T,y)}return f?-1:r||h?h:T}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},50206:function(t,i,n){"use strict";var e=n(1702);t.exports=e([].slice)},77475:function(t,i,n){"use strict";var e=n(43157),r=n(4411),s=n(70111),o=n(5112)("species"),u=Array;t.exports=function(t){var i;return e(t)&&(i=t.constructor,(r(i)&&(i===u||e(i.prototype))||s(i)&&null===(i=i[o]))&&(i=void 0)),void 0===i?u:i}},65417:function(t,i,n){"use strict";var e=n(77475);t.exports=function(t,i){return new(e(t))(0===i?0:i)}},17072:function(t,i,n){"use strict";var e=n(5112)("iterator"),r=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){r=!0}};o[e]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,i){if(!i&&!r)return!1;var n=!1;try{var s={};s[e]=function(){return{next:function(){return{done:n=!0}}}},t(s)}catch(t){}return n}},84326:function(t,i,n){"use strict";var e=n(1702),r=e({}.toString),s=e("".slice);t.exports=function(t){return s(r(t),8,-1)}},70648:function(t,i,n){"use strict";var e=n(51694),r=n(60614),s=n(84326),o=n(5112)("toStringTag"),u=Object,a="Arguments"===s(function(){return arguments}());t.exports=e?s:function(t){var i,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,i){try{return t[i]}catch(t){}}(i=u(t),o))?n:a?s(i):"Object"===(e=s(i))&&r(i.callee)?"Arguments":e}},99920:function(t,i,n){"use strict";var e=n(92597),r=n(53887),s=n(31236),o=n(3070);t.exports=function(t,i,n){for(var u=r(i),a=o.f,c=s.f,h=0;h<u.length;h++){var f=u[h];e(t,f)||n&&e(n,f)||a(t,f,c(i,f))}}},84964:function(t,i,n){"use strict";var e=n(5112)("match");t.exports=function(t){var i=/./;try{"/./"[t](i)}catch(n){try{return i[e]=!1,"/./"[t](i)}catch(t){}}return!1}},49920:function(t,i,n){"use strict";var e=n(47293);t.exports=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},76178:function(t){"use strict";t.exports=function(t,i){return{value:t,done:i}}},68880:function(t,i,n){"use strict";var e=n(19781),r=n(3070),s=n(79114);t.exports=e?function(t,i,n){return r.f(t,i,s(1,n))}:function(t,i,n){return t[i]=n,t}},79114:function(t){"use strict";t.exports=function(t,i){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:i}}},47045:function(t,i,n){"use strict";var e=n(56339),r=n(3070);t.exports=function(t,i,n){return n.get&&e(n.get,i,{getter:!0}),n.set&&e(n.set,i,{setter:!0}),r.f(t,i,n)}},98052:function(t,i,n){"use strict";var e=n(60614),r=n(3070),s=n(56339),o=n(13072);t.exports=function(t,i,n,u){u||(u={});var a=u.enumerable,c=void 0!==u.name?u.name:i;if(e(n)&&s(n,c,u),u.global)a?t[i]=n:o(i,n);else{try{u.unsafe?t[i]&&(a=!0):delete t[i]}catch(t){}a?t[i]=n:r.f(t,i,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},13072:function(t,i,n){"use strict";var e=n(17854),r=Object.defineProperty;t.exports=function(t,i){try{r(e,t,{value:i,configurable:!0,writable:!0})}catch(n){e[t]=i}return i}},19781:function(t,i,n){"use strict";var e=n(47293);t.exports=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){"use strict";var i="object"==typeof document&&document.all,n=void 0===i&&void 0!==i;t.exports={all:i,IS_HTMLDDA:n}},80317:function(t,i,n){"use strict";var e=n(17854),r=n(70111),s=e.document,o=r(s)&&r(s.createElement);t.exports=function(t){return o?s.createElement(t):{}}},7207:function(t){"use strict";var i=TypeError;t.exports=function(t){if(t>9007199254740991)throw i("Maximum allowed index exceeded");return t}},48324:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},98509:function(t,i,n){"use strict";var e=n(80317)("span").classList,r=e&&e.constructor&&e.constructor.prototype;t.exports=r===Object.prototype?void 0:r},7871:function(t,i,n){"use strict";var e=n(83823),r=n(35268);t.exports=!e&&!r&&"object"==typeof window&&"object"==typeof document},83823:function(t){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},71528:function(t,i,n){"use strict";var e=n(88113);t.exports=/ipad|iphone|ipod/i.test(e)&&"undefined"!=typeof Pebble},6833:function(t,i,n){"use strict";var e=n(88113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},35268:function(t,i,n){"use strict";var e=n(17854),r=n(84326);t.exports="process"===r(e.process)},71036:function(t,i,n){"use strict";var e=n(88113);t.exports=/web0s(?!.*chrome)/i.test(e)},88113:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,i,n){"use strict";var e,r,s=n(17854),o=n(88113),u=s.process,a=s.Deno,c=u&&u.versions||a&&a.version,h=c&&c.v8;h&&(r=(e=h.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&o&&(!(e=o.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=o.match(/Chrome\/(\d+)/))&&(r=+e[1]),t.exports=r},80748:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:function(t,i,n){"use strict";var e=n(17854),r=n(31236).f,s=n(68880),o=n(98052),u=n(13072),a=n(99920),c=n(54705);t.exports=function(t,i){var n,h,f,l,v,d=t.target,p=t.global,b=t.stat;if(n=p?e:b?e[d]||u(d,{}):(e[d]||{}).prototype)for(h in i){if(l=i[h],f=t.dontCallGetSet?(v=r(n,h))&&v.value:n[h],!c(p?h:d+(b?".":"#")+h,t.forced)&&void 0!==f){if(typeof l==typeof f)continue;a(l,f)}(t.sham||f&&f.sham)&&s(l,"sham",!0),o(n,h,l,t)}}},47293:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},6790:function(t,i,n){"use strict";var e=n(43157),r=n(26244),s=n(7207),o=n(49974),u=function(t,i,n,a,c,h,f,l){for(var v,d,p=c,b=0,m=!!f&&o(f,l);b<a;)b in n&&(v=m?m(n[b],b,i):n[b],h>0&&e(v)?(d=r(v),p=u(t,i,v,d,p,h-1)-1):(s(p+1),t[p]=v),p++),b++;return p};t.exports=u},22104:function(t,i,n){"use strict";var e=n(34374),r=Function.prototype,s=r.apply,o=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?o.bind(s):function(){return o.apply(s,arguments)})},49974:function(t,i,n){"use strict";var e=n(21470),r=n(19662),s=n(34374),o=e(e.bind);t.exports=function(t,i){return r(t),void 0===i?t:s?o(t,i):function(){return t.apply(i,arguments)}}},34374:function(t,i,n){"use strict";var e=n(47293);t.exports=!e((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},46916:function(t,i,n){"use strict";var e=n(34374),r=Function.prototype.call;t.exports=e?r.bind(r):function(){return r.apply(r,arguments)}},76530:function(t,i,n){"use strict";var e=n(19781),r=n(92597),s=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,u=r(s,"name"),a=u&&"something"===function(){}.name,c=u&&(!e||e&&o(s,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:c}},75668:function(t,i,n){"use strict";var e=n(1702),r=n(19662);t.exports=function(t,i,n){try{return e(r(Object.getOwnPropertyDescriptor(t,i)[n]))}catch(t){}}},21470:function(t,i,n){"use strict";var e=n(84326),r=n(1702);t.exports=function(t){if("Function"===e(t))return r(t)}},1702:function(t,i,n){"use strict";var e=n(34374),r=Function.prototype,s=r.call,o=e&&r.bind.bind(s,s);t.exports=e?o:function(t){return function(){return s.apply(t,arguments)}}},35005:function(t,i,n){"use strict";var e=n(17854),r=n(60614);t.exports=function(t,i){return arguments.length<2?(n=e[t],r(n)?n:void 0):e[t]&&e[t][i];var n}},71246:function(t,i,n){"use strict";var e=n(70648),r=n(58173),s=n(68554),o=n(97497),u=n(5112)("iterator");t.exports=function(t){if(!s(t))return r(t,u)||r(t,"@@iterator")||o[e(t)]}},18554:function(t,i,n){"use strict";var e=n(46916),r=n(19662),s=n(19670),o=n(66330),u=n(71246),a=TypeError;t.exports=function(t,i){var n=arguments.length<2?u(t):i;if(r(n))return s(e(n,t));throw a(o(t)+" is not iterable")}},58173:function(t,i,n){"use strict";var e=n(19662),r=n(68554);t.exports=function(t,i){var n=t[i];return r(n)?void 0:e(n)}},17854:function(t,i,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},92597:function(t,i,n){"use strict";var e=n(1702),r=n(47908),s=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,i){return s(r(t),i)}},3501:function(t){"use strict";t.exports={}},842:function(t){"use strict";t.exports=function(t,i){}},60490:function(t,i,n){"use strict";var e=n(35005);t.exports=e("document","documentElement")},64664:function(t,i,n){"use strict";var e=n(19781),r=n(47293),s=n(80317);t.exports=!e&&!r((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},68361:function(t,i,n){"use strict";var e=n(1702),r=n(47293),s=n(84326),o=Object,u=e("".split);t.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?u(t,""):o(t)}:o},42788:function(t,i,n){"use strict";var e=n(1702),r=n(60614),s=n(5465),o=e(Function.toString);r(s.inspectSource)||(s.inspectSource=function(t){return o(t)}),t.exports=s.inspectSource},29909:function(t,i,n){"use strict";var e,r,s,o=n(94811),u=n(17854),a=n(70111),c=n(68880),h=n(92597),f=n(5465),l=n(6200),v=n(3501),d="Object already initialized",p=u.TypeError,b=u.WeakMap;if(o||f.state){var m=f.state||(f.state=new b);m.get=m.get,m.has=m.has,m.set=m.set,e=function(t,i){if(m.has(t))throw p(d);return i.facade=t,m.set(t,i),i},r=function(t){return m.get(t)||{}},s=function(t){return m.has(t)}}else{var y=l("state");v[y]=!0,e=function(t,i){if(h(t,y))throw p(d);return i.facade=t,c(t,y,i),i},r=function(t){return h(t,y)?t[y]:{}},s=function(t){return h(t,y)}}t.exports={set:e,get:r,has:s,enforce:function(t){return s(t)?r(t):e(t,{})},getterFor:function(t){return function(i){var n;if(!a(i)||(n=r(i)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}}}},97659:function(t,i,n){"use strict";var e=n(5112),r=n(97497),s=e("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[s]===t)}},43157:function(t,i,n){"use strict";var e=n(84326);t.exports=Array.isArray||function(t){return"Array"===e(t)}},60614:function(t,i,n){"use strict";var e=n(4154),r=e.all;t.exports=e.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},4411:function(t,i,n){"use strict";var e=n(1702),r=n(47293),s=n(60614),o=n(70648),u=n(35005),a=n(42788),c=function(){},h=[],f=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=e(l.exec),d=!l.exec(c),p=function(t){if(!s(t))return!1;try{return f(c,h,t),!0}catch(t){return!1}},b=function(t){if(!s(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!v(l,a(t))}catch(t){return!0}};b.sham=!0,t.exports=!f||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?b:p},54705:function(t,i,n){"use strict";var e=n(47293),r=n(60614),s=/#|\.prototype\./,o=function(t,i){var n=a[u(t)];return n===h||n!==c&&(r(i)?e(i):!!i)},u=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},a=o.data={},c=o.NATIVE="N",h=o.POLYFILL="P";t.exports=o},68554:function(t){"use strict";t.exports=function(t){return null==t}},70111:function(t,i,n){"use strict";var e=n(60614),r=n(4154),s=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:e(t)||t===s}:function(t){return"object"==typeof t?null!==t:e(t)}},31913:function(t){"use strict";t.exports=!1},47850:function(t,i,n){"use strict";var e=n(70111),r=n(84326),s=n(5112)("match");t.exports=function(t){var i;return e(t)&&(void 0!==(i=t[s])?!!i:"RegExp"===r(t))}},52190:function(t,i,n){"use strict";var e=n(35005),r=n(60614),s=n(47976),o=n(43307),u=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var i=e("Symbol");return r(i)&&s(i.prototype,u(t))}},20408:function(t,i,n){"use strict";var e=n(49974),r=n(46916),s=n(19670),o=n(66330),u=n(97659),a=n(26244),c=n(47976),h=n(18554),f=n(71246),l=n(99212),v=TypeError,d=function(t,i){this.stopped=t,this.result=i},p=d.prototype;t.exports=function(t,i,n){var b,m,y,g,w,_,E,O=n&&n.that,S=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),j=e(i,O),N=function(t){return b&&l(b,"normal",t),new d(!0,t)},I=function(t){return S?(s(t),M?j(t[0],t[1],N):j(t[0],t[1])):M?j(t,N):j(t)};if(A)b=t.iterator;else if(T)b=t;else{if(!(m=f(t)))throw v(o(t)+" is not iterable");if(u(m)){for(y=0,g=a(t);g>y;y++)if((w=I(t[y]))&&c(p,w))return w;return new d(!1)}b=h(t,m)}for(_=A?t.next:b.next;!(E=r(_,b)).done;){try{w=I(E.value)}catch(t){l(b,"throw",t)}if("object"==typeof w&&w&&c(p,w))return w}return new d(!1)}},99212:function(t,i,n){"use strict";var e=n(46916),r=n(19670),s=n(58173);t.exports=function(t,i,n){var o,u;r(t);try{if(!(o=s(t,"return"))){if("throw"===i)throw n;return n}o=e(o,t)}catch(t){u=!0,o=t}if("throw"===i)throw n;if(u)throw o;return r(o),n}},63061:function(t,i,n){"use strict";var e=n(13383).IteratorPrototype,r=n(70030),s=n(79114),o=n(58003),u=n(97497),a=function(){return this};t.exports=function(t,i,n,c){var h=i+" Iterator";return t.prototype=r(e,{next:s(+!c,n)}),o(t,h,!1,!0),u[h]=a,t}},51656:function(t,i,n){"use strict";var e=n(82109),r=n(46916),s=n(31913),o=n(76530),u=n(60614),a=n(63061),c=n(79518),h=n(27674),f=n(58003),l=n(68880),v=n(98052),d=n(5112),p=n(97497),b=n(13383),m=o.PROPER,y=o.CONFIGURABLE,g=b.IteratorPrototype,w=b.BUGGY_SAFARI_ITERATORS,_=d("iterator"),E="keys",O="values",S="entries",A=function(){return this};t.exports=function(t,i,n,o,d,b,T){a(n,i,o);var M,j,N,I=function(t){if(t===d&&D)return D;if(!w&&t in L)return L[t];switch(t){case E:case O:case S:return function(){return new n(this,t)}}return function(){return new n(this)}},k=i+" Iterator",R=!1,L=t.prototype,C=L[_]||L["@@iterator"]||d&&L[d],D=!w&&C||I(d),P="Array"===i&&L.entries||C;if(P&&(M=c(P.call(new t)))!==Object.prototype&&M.next&&(s||c(M)===g||(h?h(M,g):u(M[_])||v(M,_,A)),f(M,k,!0,!0),s&&(p[k]=A)),m&&d===O&&C&&C.name!==O&&(!s&&y?l(L,"name",O):(R=!0,D=function(){return r(C,this)})),d)if(j={values:I(O),keys:b?D:I(E),entries:I(S)},T)for(N in j)(w||R||!(N in L))&&v(L,N,j[N]);else e({target:i,proto:!0,forced:w||R},j);return s&&!T||L[_]===D||v(L,_,D,{name:d}),p[i]=D,j}},13383:function(t,i,n){"use strict";var e,r,s,o=n(47293),u=n(60614),a=n(70111),c=n(70030),h=n(79518),f=n(98052),l=n(5112),v=n(31913),d=l("iterator"),p=!1;[].keys&&("next"in(s=[].keys())?(r=h(h(s)))!==Object.prototype&&(e=r):p=!0),!a(e)||o((function(){var t={};return e[d].call(t)!==t}))?e={}:v&&(e=c(e)),u(e[d])||f(e,d,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:p}},97497:function(t){"use strict";t.exports={}},26244:function(t,i,n){"use strict";var e=n(17466);t.exports=function(t){return e(t.length)}},56339:function(t,i,n){"use strict";var e=n(1702),r=n(47293),s=n(60614),o=n(92597),u=n(19781),a=n(76530).CONFIGURABLE,c=n(42788),h=n(29909),f=h.enforce,l=h.get,v=String,d=Object.defineProperty,p=e("".slice),b=e("".replace),m=e([].join),y=u&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),g=String(String).split("String"),w=t.exports=function(t,i,n){"Symbol("===p(v(i),0,7)&&(i="["+b(v(i),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(i="get "+i),n&&n.setter&&(i="set "+i),(!o(t,"name")||a&&t.name!==i)&&(u?d(t,"name",{value:i,configurable:!0}):t.name=i),y&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?u&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=f(t);return o(e,"source")||(e.source=m(g,"string"==typeof i?i:"")),t};Function.prototype.toString=w((function(){return s(this)&&l(this).source||c(this)}),"toString")},74758:function(t){"use strict";var i=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?n:i)(e)}},95948:function(t,i,n){"use strict";var e,r,s,o,u,a=n(17854),c=n(49974),h=n(31236).f,f=n(20261).set,l=n(18572),v=n(6833),d=n(71528),p=n(71036),b=n(35268),m=a.MutationObserver||a.WebKitMutationObserver,y=a.document,g=a.process,w=a.Promise,_=h(a,"queueMicrotask"),E=_&&_.value;if(!E){var O=new l,S=function(){var t,i;for(b&&(t=g.domain)&&t.exit();i=O.get();)try{i()}catch(t){throw O.head&&e(),t}t&&t.enter()};v||b||p||!m||!y?!d&&w&&w.resolve?((o=w.resolve(void 0)).constructor=w,u=c(o.then,o),e=function(){u(S)}):b?e=function(){g.nextTick(S)}:(f=c(f,a),e=function(){f(S)}):(r=!0,s=y.createTextNode(""),new m(S).observe(s,{characterData:!0}),e=function(){s.data=r=!r}),E=function(t){O.head||e(),O.add(t)}}t.exports=E},78523:function(t,i,n){"use strict";var e=n(19662),r=TypeError,s=function(t){var i,n;this.promise=new t((function(t,e){if(void 0!==i||void 0!==n)throw r("Bad Promise constructor");i=t,n=e})),this.resolve=e(i),this.reject=e(n)};t.exports.f=function(t){return new s(t)}},3929:function(t,i,n){"use strict";var e=n(47850),r=TypeError;t.exports=function(t){if(e(t))throw r("The method doesn't accept regular expressions");return t}},21574:function(t,i,n){"use strict";var e=n(19781),r=n(1702),s=n(46916),o=n(47293),u=n(81956),a=n(25181),c=n(55296),h=n(47908),f=n(68361),l=Object.assign,v=Object.defineProperty,d=r([].concat);t.exports=!l||o((function(){if(e&&1!==l({b:1},l(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},i={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){i[t]=t})),7!==l({},t)[n]||u(l({},i)).join("")!==r}))?function(t,i){for(var n=h(t),r=arguments.length,o=1,l=a.f,v=c.f;r>o;)for(var p,b=f(arguments[o++]),m=l?d(u(b),l(b)):u(b),y=m.length,g=0;y>g;)p=m[g++],e&&!s(v,b,p)||(n[p]=b[p]);return n}:l},70030:function(t,i,n){"use strict";var e,r=n(19670),s=n(36048),o=n(80748),u=n(3501),a=n(60490),c=n(80317),h=n(6200),f="prototype",l="script",v=h("IE_PROTO"),d=function(){},p=function(t){return"<"+l+">"+t+"</"+l+">"},b=function(t){t.write(p("")),t.close();var i=t.parentWindow.Object;return t=null,i},m=function(){try{e=new ActiveXObject("htmlfile")}catch(t){}var t,i,n;m="undefined"!=typeof document?document.domain&&e?b(e):(i=c("iframe"),n="java"+l+":",i.style.display="none",a.appendChild(i),i.src=String(n),(t=i.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):b(e);for(var r=o.length;r--;)delete m[f][o[r]];return m()};u[v]=!0,t.exports=Object.create||function(t,i){var n;return null!==t?(d[f]=r(t),n=new d,d[f]=null,n[v]=t):n=m(),void 0===i?n:s.f(n,i)}},36048:function(t,i,n){"use strict";var e=n(19781),r=n(3353),s=n(3070),o=n(19670),u=n(45656),a=n(81956);i.f=e&&!r?Object.defineProperties:function(t,i){o(t);for(var n,e=u(i),r=a(i),c=r.length,h=0;c>h;)s.f(t,n=r[h++],e[n]);return t}},3070:function(t,i,n){"use strict";var e=n(19781),r=n(64664),s=n(3353),o=n(19670),u=n(34948),a=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,f="enumerable",l="configurable",v="writable";i.f=e?s?function(t,i,n){if(o(t),i=u(i),o(n),"function"==typeof t&&"prototype"===i&&"value"in n&&v in n&&!n[v]){var e=h(t,i);e&&e[v]&&(t[i]=n.value,n={configurable:l in n?n[l]:e[l],enumerable:f in n?n[f]:e[f],writable:!1})}return c(t,i,n)}:c:function(t,i,n){if(o(t),i=u(i),o(n),r)try{return c(t,i,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[i]=n.value),t}},31236:function(t,i,n){"use strict";var e=n(19781),r=n(46916),s=n(55296),o=n(79114),u=n(45656),a=n(34948),c=n(92597),h=n(64664),f=Object.getOwnPropertyDescriptor;i.f=e?f:function(t,i){if(t=u(t),i=a(i),h)try{return f(t,i)}catch(t){}if(c(t,i))return o(!r(s.f,t,i),t[i])}},8006:function(t,i,n){"use strict";var e=n(16324),r=n(80748).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(t){return e(t,r)}},25181:function(t,i){"use strict";i.f=Object.getOwnPropertySymbols},79518:function(t,i,n){"use strict";var e=n(92597),r=n(60614),s=n(47908),o=n(6200),u=n(49920),a=o("IE_PROTO"),c=Object,h=c.prototype;t.exports=u?c.getPrototypeOf:function(t){var i=s(t);if(e(i,a))return i[a];var n=i.constructor;return r(n)&&i instanceof n?n.prototype:i instanceof c?h:null}},47976:function(t,i,n){"use strict";var e=n(1702);t.exports=e({}.isPrototypeOf)},16324:function(t,i,n){"use strict";var e=n(1702),r=n(92597),s=n(45656),o=n(41318).indexOf,u=n(3501),a=e([].push);t.exports=function(t,i){var n,e=s(t),c=0,h=[];for(n in e)!r(u,n)&&r(e,n)&&a(h,n);for(;i.length>c;)r(e,n=i[c++])&&(~o(h,n)||a(h,n));return h}},81956:function(t,i,n){"use strict";var e=n(16324),r=n(80748);t.exports=Object.keys||function(t){return e(t,r)}},55296:function(t,i){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);i.f=r?function(t){var i=e(this,t);return!!i&&i.enumerable}:n},27674:function(t,i,n){"use strict";var e=n(75668),r=n(19670),s=n(96077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,i=!1,n={};try{(t=e(Object.prototype,"__proto__","set"))(n,[]),i=n instanceof Array}catch(t){}return function(n,e){return r(n),s(e),i?t(n,e):n.__proto__=e,n}}():void 0)},44699:function(t,i,n){"use strict";var e=n(19781),r=n(47293),s=n(1702),o=n(79518),u=n(81956),a=n(45656),c=s(n(55296).f),h=s([].push),f=e&&r((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),l=function(t){return function(i){for(var n,r=a(i),s=u(r),l=f&&null===o(r),v=s.length,d=0,p=[];v>d;)n=s[d++],e&&!(l?n in r:c(r,n))||h(p,t?[n,r[n]]:r[n]);return p}};t.exports={entries:l(!0),values:l(!1)}},90288:function(t,i,n){"use strict";var e=n(51694),r=n(70648);t.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}},92140:function(t,i,n){"use strict";var e=n(46916),r=n(60614),s=n(70111),o=TypeError;t.exports=function(t,i){var n,u;if("string"===i&&r(n=t.toString)&&!s(u=e(n,t)))return u;if(r(n=t.valueOf)&&!s(u=e(n,t)))return u;if("string"!==i&&r(n=t.toString)&&!s(u=e(n,t)))return u;throw o("Can't convert object to primitive value")}},53887:function(t,i,n){"use strict";var e=n(35005),r=n(1702),s=n(8006),o=n(25181),u=n(19670),a=r([].concat);t.exports=e("Reflect","ownKeys")||function(t){var i=s.f(u(t)),n=o.f;return n?a(i,n(t)):i}},12534:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},63702:function(t,i,n){"use strict";var e=n(17854),r=n(2492),s=n(60614),o=n(54705),u=n(42788),a=n(5112),c=n(7871),h=n(83823),f=n(31913),l=n(7392),v=r&&r.prototype,d=a("species"),p=!1,b=s(e.PromiseRejectionEvent),m=o("Promise",(function(){var t=u(r),i=t!==String(r);if(!i&&66===l)return!0;if(f&&(!v.catch||!v.finally))return!0;if(!l||l<51||!/native code/.test(t)){var n=new r((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((n.constructor={})[d]=e,!(p=n.then((function(){}))instanceof e))return!0}return!i&&(c||h)&&!b}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:b,SUBCLASSING:p}},2492:function(t,i,n){"use strict";var e=n(17854);t.exports=e.Promise},69478:function(t,i,n){"use strict";var e=n(19670),r=n(70111),s=n(78523);t.exports=function(t,i){if(e(t),r(i)&&i.constructor===t)return i;var n=s.f(t);return(0,n.resolve)(i),n.promise}},80612:function(t,i,n){"use strict";var e=n(2492),r=n(17072),s=n(63702).CONSTRUCTOR;t.exports=s||!r((function(t){e.all(t).then(void 0,(function(){}))}))},18572:function(t){"use strict";var i=function(){this.head=null,this.tail=null};i.prototype={add:function(t){var i={item:t,next:null},n=this.tail;n?n.next=i:this.head=i,this.tail=i},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=i},84488:function(t,i,n){"use strict";var e=n(68554),r=TypeError;t.exports=function(t){if(e(t))throw r("Can't call method on "+t);return t}},96340:function(t,i,n){"use strict";var e=n(35005),r=n(47045),s=n(5112),o=n(19781),u=s("species");t.exports=function(t){var i=e(t);o&&i&&!i[u]&&r(i,u,{configurable:!0,get:function(){return this}})}},58003:function(t,i,n){"use strict";var e=n(3070).f,r=n(92597),s=n(5112)("toStringTag");t.exports=function(t,i,n){t&&!n&&(t=t.prototype),t&&!r(t,s)&&e(t,s,{configurable:!0,value:i})}},6200:function(t,i,n){"use strict";var e=n(72309),r=n(69711),s=e("keys");t.exports=function(t){return s[t]||(s[t]=r(t))}},5465:function(t,i,n){"use strict";var e=n(17854),r=n(13072),s="__core-js_shared__",o=e[s]||r(s,{});t.exports=o},72309:function(t,i,n){"use strict";var e=n(31913),r=n(5465);(t.exports=function(t,i){return r[t]||(r[t]=void 0!==i?i:{})})("versions",[]).push({version:"3.32.1",mode:e?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})},36707:function(t,i,n){"use strict";var e=n(19670),r=n(39483),s=n(68554),o=n(5112)("species");t.exports=function(t,i){var n,u=e(t).constructor;return void 0===u||s(n=e(u)[o])?i:r(n)}},28710:function(t,i,n){"use strict";var e=n(1702),r=n(19303),s=n(41340),o=n(84488),u=e("".charAt),a=e("".charCodeAt),c=e("".slice),h=function(t){return function(i,n){var e,h,f=s(o(i)),l=r(n),v=f.length;return l<0||l>=v?t?"":void 0:(e=a(f,l))<55296||e>56319||l+1===v||(h=a(f,l+1))<56320||h>57343?t?u(f,l):e:t?c(f,l,l+2):h-56320+(e-55296<<10)+65536}};t.exports={codeAt:h(!1),charAt:h(!0)}},54986:function(t,i,n){"use strict";var e=n(88113);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},76650:function(t,i,n){"use strict";var e=n(1702),r=n(17466),s=n(41340),o=n(38415),u=n(84488),a=e(o),c=e("".slice),h=Math.ceil,f=function(t){return function(i,n,e){var o,f,l=s(u(i)),v=r(n),d=l.length,p=void 0===e?" ":s(e);return v<=d||""===p?l:((f=a(p,h((o=v-d)/p.length))).length>o&&(f=c(f,0,o)),t?l+f:f+l)}};t.exports={start:f(!1),end:f(!0)}},38415:function(t,i,n){"use strict";var e=n(19303),r=n(41340),s=n(84488),o=RangeError;t.exports=function(t){var i=r(s(this)),n="",u=e(t);if(u<0||u===1/0)throw o("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(i+=i))1&u&&(n+=i);return n}},36293:function(t,i,n){"use strict";var e=n(7392),r=n(47293),s=n(17854).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))},20261:function(t,i,n){"use strict";var e,r,s,o,u=n(17854),a=n(22104),c=n(49974),h=n(60614),f=n(92597),l=n(47293),v=n(60490),d=n(50206),p=n(80317),b=n(48053),m=n(6833),y=n(35268),g=u.setImmediate,w=u.clearImmediate,_=u.process,E=u.Dispatch,O=u.Function,S=u.MessageChannel,A=u.String,T=0,M={},j="onreadystatechange";l((function(){e=u.location}));var N=function(t){if(f(M,t)){var i=M[t];delete M[t],i()}},I=function(t){return function(){N(t)}},k=function(t){N(t.data)},R=function(t){u.postMessage(A(t),e.protocol+"//"+e.host)};g&&w||(g=function(t){b(arguments.length,1);var i=h(t)?t:O(t),n=d(arguments,1);return M[++T]=function(){a(i,void 0,n)},r(T),T},w=function(t){delete M[t]},y?r=function(t){_.nextTick(I(t))}:E&&E.now?r=function(t){E.now(I(t))}:S&&!m?(o=(s=new S).port2,s.port1.onmessage=k,r=c(o.postMessage,o)):u.addEventListener&&h(u.postMessage)&&!u.importScripts&&e&&"file:"!==e.protocol&&!l(R)?(r=R,u.addEventListener("message",k,!1)):r=j in p("script")?function(t){v.appendChild(p("script"))[j]=function(){v.removeChild(this),N(t)}}:function(t){setTimeout(I(t),0)}),t.exports={set:g,clear:w}},51400:function(t,i,n){"use strict";var e=n(19303),r=Math.max,s=Math.min;t.exports=function(t,i){var n=e(t);return n<0?r(n+i,0):s(n,i)}},45656:function(t,i,n){"use strict";var e=n(68361),r=n(84488);t.exports=function(t){return e(r(t))}},19303:function(t,i,n){"use strict";var e=n(74758);t.exports=function(t){var i=+t;return i!=i||0===i?0:e(i)}},17466:function(t,i,n){"use strict";var e=n(19303),r=Math.min;t.exports=function(t){return t>0?r(e(t),9007199254740991):0}},47908:function(t,i,n){"use strict";var e=n(84488),r=Object;t.exports=function(t){return r(e(t))}},57593:function(t,i,n){"use strict";var e=n(46916),r=n(70111),s=n(52190),o=n(58173),u=n(92140),a=n(5112),c=TypeError,h=a("toPrimitive");t.exports=function(t,i){if(!r(t)||s(t))return t;var n,a=o(t,h);if(a){if(void 0===i&&(i="default"),n=e(a,t,i),!r(n)||s(n))return n;throw c("Can't convert object to primitive value")}return void 0===i&&(i="number"),u(t,i)}},34948:function(t,i,n){"use strict";var e=n(57593),r=n(52190);t.exports=function(t){var i=e(t,"string");return r(i)?i:i+""}},51694:function(t,i,n){"use strict";var e={};e[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(e)},41340:function(t,i,n){"use strict";var e=n(70648),r=String;t.exports=function(t){if("Symbol"===e(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},66330:function(t){"use strict";var i=String;t.exports=function(t){try{return i(t)}catch(t){return"Object"}}},69711:function(t,i,n){"use strict";var e=n(1702),r=0,s=Math.random(),o=e(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++r+s,36)}},43307:function(t,i,n){"use strict";var e=n(36293);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,i,n){"use strict";var e=n(19781),r=n(47293);t.exports=e&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48053:function(t){"use strict";var i=TypeError;t.exports=function(t,n){if(t<n)throw i("Not enough arguments");return t}},94811:function(t,i,n){"use strict";var e=n(17854),r=n(60614),s=e.WeakMap;t.exports=r(s)&&/native code/.test(String(s))},5112:function(t,i,n){"use strict";var e=n(17854),r=n(72309),s=n(92597),o=n(69711),u=n(36293),a=n(43307),c=e.Symbol,h=r("wks"),f=a?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return s(h,t)||(h[t]=u&&s(c,t)?c[t]:f("Symbol."+t)),h[t]}},69826:function(t,i,n){"use strict";var e=n(82109),r=n(42092).find,s=n(51223),o="find",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),e({target:"Array",proto:!0,forced:u},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s(o)},84944:function(t,i,n){"use strict";var e=n(82109),r=n(6790),s=n(47908),o=n(26244),u=n(19303),a=n(65417);e({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,i=s(this),n=o(i),e=a(i,0);return e.length=r(e,i,i,n,0,void 0===t?1:u(t)),e}})},26699:function(t,i,n){"use strict";var e=n(82109),r=n(41318).includes,s=n(47293),o=n(51223);e({target:"Array",proto:!0,forced:s((function(){return!Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},66992:function(t,i,n){"use strict";var e=n(45656),r=n(51223),s=n(97497),o=n(29909),u=n(3070).f,a=n(51656),c=n(76178),h=n(31913),f=n(19781),l="Array Iterator",v=o.set,d=o.getterFor(l);t.exports=a(Array,"Array",(function(t,i){v(this,{type:l,target:e(t),index:0,kind:i})}),(function(){var t=d(this),i=t.target,n=t.kind,e=t.index++;if(!i||e>=i.length)return t.target=void 0,c(void 0,!0);switch(n){case"keys":return c(e,!1);case"values":return c(i[e],!1)}return c([e,i[e]],!1)}),"values");var p=s.Arguments=s.Array;if(r("keys"),r("values"),r("entries"),!h&&f&&"values"!==p.name)try{u(p,"name",{value:"values"})}catch(t){}},33792:function(t,i,n){"use strict";n(51223)("flat")},19601:function(t,i,n){"use strict";var e=n(82109),r=n(21574);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},41539:function(t,i,n){"use strict";var e=n(51694),r=n(98052),s=n(90288);e||r(Object.prototype,"toString",s,{unsafe:!0})},26833:function(t,i,n){"use strict";var e=n(82109),r=n(44699).values;e({target:"Object",stat:!0},{values:function(t){return r(t)}})},70821:function(t,i,n){"use strict";var e=n(82109),r=n(46916),s=n(19662),o=n(78523),u=n(12534),a=n(20408);e({target:"Promise",stat:!0,forced:n(80612)},{all:function(t){var i=this,n=o.f(i),e=n.resolve,c=n.reject,h=u((function(){var n=s(i.resolve),o=[],u=0,h=1;a(t,(function(t){var s=u++,a=!1;h++,r(n,i,t).then((function(t){a||(a=!0,o[s]=t,--h||e(o))}),c)})),--h||e(o)}));return h.error&&c(h.value),n.promise}})},94164:function(t,i,n){"use strict";var e=n(82109),r=n(31913),s=n(63702).CONSTRUCTOR,o=n(2492),u=n(35005),a=n(60614),c=n(98052),h=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&a(o)){var f=u("Promise").prototype.catch;h.catch!==f&&c(h,"catch",f,{unsafe:!0})}},43401:function(t,i,n){"use strict";var e,r,s,o=n(82109),u=n(31913),a=n(35268),c=n(17854),h=n(46916),f=n(98052),l=n(27674),v=n(58003),d=n(96340),p=n(19662),b=n(60614),m=n(70111),y=n(25787),g=n(36707),w=n(20261).set,_=n(95948),E=n(842),O=n(12534),S=n(18572),A=n(29909),T=n(2492),M=n(63702),j=n(78523),N="Promise",I=M.CONSTRUCTOR,k=M.REJECTION_EVENT,R=M.SUBCLASSING,L=A.getterFor(N),C=A.set,D=T&&T.prototype,P=T,x=D,U=c.TypeError,F=c.document,B=c.process,z=j.f,V=z,G=!!(F&&F.createEvent&&c.dispatchEvent),H="unhandledrejection",Y=function(t){var i;return!(!m(t)||!b(i=t.then))&&i},q=function(t,i){var n,e,r,s=i.value,o=1===i.state,u=o?t.ok:t.fail,a=t.resolve,c=t.reject,f=t.domain;try{u?(o||(2===i.rejection&&X(i),i.rejection=1),!0===u?n=s:(f&&f.enter(),n=u(s),f&&(f.exit(),r=!0)),n===t.promise?c(U("Promise-chain cycle")):(e=Y(n))?h(e,n,a,c):a(n)):c(s)}catch(t){f&&!r&&f.exit(),c(t)}},W=function(t,i){t.notified||(t.notified=!0,_((function(){for(var n,e=t.reactions;n=e.get();)q(n,t);t.notified=!1,i&&!t.rejection&&Z(t)})))},Q=function(t,i,n){var e,r;G?((e=F.createEvent("Event")).promise=i,e.reason=n,e.initEvent(t,!1,!0),c.dispatchEvent(e)):e={promise:i,reason:n},!k&&(r=c["on"+t])?r(e):t===H&&E("Unhandled promise rejection",n)},Z=function(t){h(w,c,(function(){var i,n=t.facade,e=t.value;if($(t)&&(i=O((function(){a?B.emit("unhandledRejection",e,n):Q(H,n,e)})),t.rejection=a||$(t)?2:1,i.error))throw i.value}))},$=function(t){return 1!==t.rejection&&!t.parent},X=function(t){h(w,c,(function(){var i=t.facade;a?B.emit("rejectionHandled",i):Q("rejectionhandled",i,t.value)}))},K=function(t,i,n){return function(e){t(i,e,n)}},J=function(t,i,n){t.done||(t.done=!0,n&&(t=n),t.value=i,t.state=2,W(t,!0))},tt=function(t,i,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===i)throw U("Promise can't be resolved itself");var e=Y(i);e?_((function(){var n={done:!1};try{h(e,i,K(tt,n,t),K(J,n,t))}catch(i){J(n,i,t)}})):(t.value=i,t.state=1,W(t,!1))}catch(i){J({done:!1},i,t)}}};if(I&&(x=(P=function(t){y(this,x),p(t),h(e,this);var i=L(this);try{t(K(tt,i),K(J,i))}catch(t){J(i,t)}}).prototype,(e=function(t){C(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(x,"then",(function(t,i){var n=L(this),e=z(g(this,P));return n.parent=!0,e.ok=!b(t)||t,e.fail=b(i)&&i,e.domain=a?B.domain:void 0,0===n.state?n.reactions.add(e):_((function(){q(e,n)})),e.promise})),r=function(){var t=new e,i=L(t);this.promise=t,this.resolve=K(tt,i),this.reject=K(J,i)},j.f=z=function(t){return t===P||undefined===t?new r(t):V(t)},!u&&b(T)&&D!==Object.prototype)){s=D.then,R||f(D,"then",(function(t,i){var n=this;return new P((function(t,i){h(s,n,t,i)})).then(t,i)}),{unsafe:!0});try{delete D.constructor}catch(t){}l&&l(D,x)}o({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),v(P,N,!1,!0),d(N)},17727:function(t,i,n){"use strict";var e=n(82109),r=n(31913),s=n(2492),o=n(47293),u=n(35005),a=n(60614),c=n(36707),h=n(69478),f=n(98052),l=s&&s.prototype;if(e({target:"Promise",proto:!0,real:!0,forced:!!s&&o((function(){l.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var i=c(this,u("Promise")),n=a(t);return this.then(n?function(n){return h(i,t()).then((function(){return n}))}:t,n?function(n){return h(i,t()).then((function(){throw n}))}:t)}}),!r&&a(s)){var v=u("Promise").prototype.finally;l.finally!==v&&f(l,"finally",v,{unsafe:!0})}},88674:function(t,i,n){"use strict";n(43401),n(70821),n(94164),n(6027),n(60683),n(96294)},6027:function(t,i,n){"use strict";var e=n(82109),r=n(46916),s=n(19662),o=n(78523),u=n(12534),a=n(20408);e({target:"Promise",stat:!0,forced:n(80612)},{race:function(t){var i=this,n=o.f(i),e=n.reject,c=u((function(){var o=s(i.resolve);a(t,(function(t){r(o,i,t).then(n.resolve,e)}))}));return c.error&&e(c.value),n.promise}})},60683:function(t,i,n){"use strict";var e=n(82109),r=n(46916),s=n(78523);e({target:"Promise",stat:!0,forced:n(63702).CONSTRUCTOR},{reject:function(t){var i=s.f(this);return r(i.reject,void 0,t),i.promise}})},96294:function(t,i,n){"use strict";var e=n(82109),r=n(35005),s=n(31913),o=n(2492),u=n(63702).CONSTRUCTOR,a=n(69478),c=r("Promise"),h=s&&!u;e({target:"Promise",stat:!0,forced:s||u},{resolve:function(t){return a(h&&this===c?o:this,t)}})},32023:function(t,i,n){"use strict";var e=n(82109),r=n(1702),s=n(3929),o=n(84488),u=n(41340),a=n(84964),c=r("".indexOf);e({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~c(u(o(this)),u(s(t)),arguments.length>1?arguments[1]:void 0)}})},78783:function(t,i,n){"use strict";var e=n(28710).charAt,r=n(41340),s=n(29909),o=n(51656),u=n(76178),a="String Iterator",c=s.set,h=s.getterFor(a);o(String,"String",(function(t){c(this,{type:a,string:r(t),index:0})}),(function(){var t,i=h(this),n=i.string,r=i.index;return r>=n.length?u(void 0,!0):(t=e(n,r),i.index+=t.length,u(t,!1))}))},83112:function(t,i,n){"use strict";var e=n(82109),r=n(76650).start;e({target:"String",proto:!0,forced:n(54986)},{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},18927:function(t,i,n){"use strict";var e=n(90260),r=n(42092).every,s=e.aTypedArray;(0,e.exportTypedArrayMethod)("every",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0)}))},33948:function(t,i,n){"use strict";var e=n(17854),r=n(48324),s=n(98509),o=n(66992),u=n(68880),a=n(5112),c=a("iterator"),h=a("toStringTag"),f=o.values,l=function(t,i){if(t){if(t[c]!==f)try{u(t,c,f)}catch(i){t[c]=f}if(t[h]||u(t,h,i),r[i])for(var n in o)if(t[n]!==o[n])try{u(t,n,o[n])}catch(i){t[n]=o[n]}}};for(var v in r)l(e[v]&&e[v].prototype,v);l(s,"DOMTokenList")},40759:function(t,i,n){"use strict";n.r(i);var e=n(23645),r=n.n(e),s=n(61667),o=n.n(s),u=n(40936),a=n(8380),c=r()(!1),h=o()(u.Z),f=o()(a.Z);c.push([t.id,".vp-nfl-branding-container{width:100%;height:36px;position:relative;z-index:22;background:#011832;background:-moz-linear-gradient(left, #011832 0%, #103155 40%, #011832 100%);background-image:-webkit-linear-gradient(left, #011832 0%, #103155 40%, #011832 100%);background-image:-o-linear-gradient(left, #011832 0%, #103155 40%, #011832 100%);background-image:linear-gradient(left, #011832 0%, #103155 40%, #011832 100%);*background:#011832;white-space:nowrap}.vp-browser-mobile .vp-nfl-branding-container{height:52px}.vp-nfl-branding{margin:10px auto;display:inline-block;zoom:1;width:30%;height:100%}.vp-browser-mobile .vp-nfl-branding{margin:15px auto}.vp-nfl-branding-container .vp-nfl-brand{display:inline-block;height:100%;background-position:center;margin-left:10px;background-repeat:no-repeat;background-size:100%}.vp-nfl-branding-container .vp-nfl-brand-span{background-image:url("+h+");width:20px}.vp-browser-mobile .vp-nfl-branding-container .vp-nfl-brand-span{width:30px;height:30px}.vp-nfl-branding-container .vp-nfl-brand-logo{background-image:url("+f+");width:110px}.vp-browser-mobile .vp-nfl-branding-container .vp-nfl-brand-logo{margin-left:50px;margin-top:2px;width:157px;height:20px}",""]),i.default=c},3847:function(t,i,n){"use strict";n.r(i);var e=n(23645),r=n.n(e)()(!1);r.push([t.id,".yvp-playlist-icon-wrapper{position:absolute;left:0;height:100%;width:24px;background:rgba(0,0,0,.7)}.yvp-playlist-icon-wrapper .yvp-playlist-icon.item{position:absolute;top:50%;margin-top:-7px;left:5px}.yvp-playlist-icon{display:inline-block;vertical-align:top;width:14px;height:14px}.yvp-playlist-icon.item{opacity:1;margin-right:5px}.yvp-playlist-item-watched{display:none;width:126px;top:0;position:absolute;height:70px;text-align:center;vertical-align:center;background:rgba(18,23,23,.75)}.yvp-playlist-item-watched.yvp-show{display:block}.yvp-playlist-item-watched.yvp-hide{display:none}.yvp-watched{font-size:11px;overflow:hidden;color:#9ea2af;font-style:italic;font-family:Helvetica Neue,Helvetica,helvetica,arial,sans-serif;line-height:16px;white-space:normal;text-overflow:ellipsis;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}",""]),i.default=r},23645:function(t){"use strict";t.exports=function(t){var i=[];return i.toString=function(){return this.map((function(i){var n=function(t,i){var n=t[1]||"",e=t[3];if(!e)return n;if(i&&"function"==typeof btoa){var r=(o=e,u=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(a," */")),s=e.sources.map((function(t){return"/*# sourceURL=".concat(e.sourceRoot||"").concat(t," */")}));return[n].concat(s).concat([r]).join("\n")}var o,u,a;return[n].join("\n")}(i,t);return i[2]?"@media ".concat(i[2]," {").concat(n,"}"):n})).join("")},i.i=function(t,n,e){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(e)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(r[o]=!0)}for(var u=0;u<t.length;u++){var a=[].concat(t[u]);e&&r[a[0]]||(n&&(a[2]?a[2]="".concat(n," and ").concat(a[2]):a[2]=n),i.push(a))}},i}},61667:function(t){"use strict";t.exports=function(t,i){return i||(i={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),i.hash&&(t+=i.hash),/["'() \t\n]/.test(t)||i.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},58908:function(t,i,n){var e;e="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},t.exports=e},49397:function(t,i){!function(t){var i=/\S/,n=/\"/g,e=/\n/g,r=/\r/g,s=/\\/g,o=/\u2028/,u=/\u2029/;function a(t){"}"===t.n.substr(t.n.length-1)&&(t.n=t.n.substring(0,t.n.length-1))}function c(t){return t.trim?t.trim():t.replace(/^\s*|\s*$/g,"")}function h(t,i,n){if(i.charAt(n)!=t.charAt(0))return!1;for(var e=1,r=t.length;e<r;e++)if(i.charAt(n+e)!=t.charAt(e))return!1;return!0}t.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,XB:9,"{":10,"&":11,KB:12},t.scan=function(n,e){var r=n.length,s=0,o=null,u=null,f="",l=[],v=!1,d=0,p=0,b="{{",m="}}";function y(){f.length>0&&(l.push({tag:"_t",text:new String(f)}),f="")}function g(n,e){if(y(),n&&function(){for(var n=!0,e=p;e<l.length;e++)if(!(n=t.tags[l[e].tag]<t.tags.XB||"_t"==l[e].tag&&null===l[e].text.match(i)))return!1;return n}())for(var r,s=p;s<l.length;s++)l[s].text&&((r=l[s+1])&&">"==r.tag&&(r.indent=l[s].text.toString()),l.splice(s,1));else e||l.push({tag:"\n"});v=!1,p=l.length}function w(t,i){var n="="+m,e=t.indexOf(n,i),r=c(t.substring(t.indexOf("=",i)+1,e)).split(" ");return b=r[0],m=r[r.length-1],e+n.length-1}for(e&&(e=e.split(" "),b=e[0],m=e[1]),d=0;d<r;d++)0==s?h(b,n,d)?(--d,y(),s=1):"\n"==n.charAt(d)?g(v):f+=n.charAt(d):1==s?(d+=b.length-1,"="==(o=(u=t.tags[n.charAt(d+1)])?n.charAt(d+1):"_v")?(d=w(n,d),s=0):(u&&d++,s=2),v=d):h(m,n,d)?(l.push({tag:o,n:c(f),otag:b,ctag:m,i:"/"==o?v-b.length:d+m.length}),f="",d+=m.length-1,s=0,"{"==o&&("}}"==m?d++:a(l[l.length-1]))):f+=n.charAt(d);return g(v,!0),l};var f={KB:!0,"\n":!0,$:!0,"/":!0};function l(i,n,e,r){var s,o=[],u=null,a=null;for(s=e[e.length-1];i.length>0;){if(a=i.shift(),s&&"<"==s.tag&&!(a.tag in f))throw new Error("Illegal content in < super tag.");if(t.tags[a.tag]<=t.tags.$||v(a,r))e.push(a),a.nodes=l(i,a.tag,e,r);else{if("/"==a.tag){if(0===e.length)throw new Error("Closing tag without opener: /"+a.n);if(u=e.pop(),a.n!=u.n&&!d(a.n,u.n,r))throw new Error("Nesting error: "+u.n+" vs. "+a.n);return u.end=a.i,o}"\n"==a.tag&&(a.last=0==i.length||"\n"==i[0].tag)}o.push(a)}if(e.length>0)throw new Error("missing closing tag: "+e.pop().n);return o}function v(t,i){for(var n=0,e=i.length;n<e;n++)if(i[n].o==t.n)return t.tag="#",!0}function d(t,i,n){for(var e=0,r=n.length;e<r;e++)if(n[e].c==t&&n[e].o==i)return!0}function p(t){var i=[];for(var n in t.partials)i.push('"'+m(n)+'":{name:"'+m(t.partials[n].name)+'", '+p(t.partials[n])+"}");return"partials: {"+i.join(",")+"}, subs: "+function(t){var i=[];for(var n in t)i.push('"'+m(n)+'": function(c,p,t,i) {'+t[n]+"}");return"{ "+i.join(",")+" }"}(t.subs)}t.stringify=function(i,n,e){return"{code: function (c,p,i) { "+t.wrapMain(i.code)+" },"+p(i)+"}"};var b=0;function m(t){return t.replace(s,"\\\\").replace(n,'\\"').replace(e,"\\n").replace(r,"\\r").replace(o,"\\u2028").replace(u,"\\u2029")}function y(t){return~t.indexOf(".")?"d":"f"}function g(t,i){var n="<"+(i.prefix||"")+t.n+b++;return i.partials[n]={name:t.n,partials:{}},i.code+='t.b(t.rp("'+m(n)+'",c,p,"'+(t.indent||"")+'"));',n}function w(t,i){i.code+="t.b(t.t(t."+y(t.n)+'("'+m(t.n)+'",c,p,0)));'}function _(t){return"t.b("+t+");"}t.generate=function(i,n,e){b=0;var r={code:"",subs:{},partials:{}};return t.walk(i,r),e.asString?this.stringify(r,n,e):this.makeTemplate(r,n,e)},t.wrapMain=function(t){return'var t=this;t.b(i=i||"");'+t+"return t.fl();"},t.template=t.Template,t.makeTemplate=function(t,i,n){var e=this.makePartials(t);return e.code=new Function("c","p","i",this.wrapMain(t.code)),new this.template(e,i,this,n)},t.makePartials=function(t){var i,n={subs:{},partials:t.partials,name:t.name};for(i in n.partials)n.partials[i]=this.makePartials(n.partials[i]);for(i in t.subs)n.subs[i]=new Function("c","p","t","i",t.subs[i]);return n},t.codegen={"#":function(i,n){n.code+="if(t.s(t."+y(i.n)+'("'+m(i.n)+'",c,p,1),c,p,0,'+i.i+","+i.end+',"'+i.otag+" "+i.ctag+'")){t.rs(c,p,function(c,p,t){',t.walk(i.nodes,n),n.code+="});c.pop();}"},"^":function(i,n){n.code+="if(!t.s(t."+y(i.n)+'("'+m(i.n)+'",c,p,1),c,p,1,0,0,"")){',t.walk(i.nodes,n),n.code+="};"},">":g,"<":function(i,n){var e={partials:{},code:"",subs:{},inPartial:!0};t.walk(i.nodes,e);var r=n.partials[g(i,n)];r.subs=e.subs,r.partials=e.partials},$:function(i,n){var e={subs:{},code:"",partials:n.partials,prefix:i.n};t.walk(i.nodes,e),n.subs[i.n]=e.code,n.inPartial||(n.code+='t.sub("'+m(i.n)+'",c,p,i);')},"\n":function(t,i){i.code+=_('"\\n"'+(t.last?"":" + i"))},XB:function(t,i){i.code+="t.b(t.v(t."+y(t.n)+'("'+m(t.n)+'",c,p,0)));'},KB:function(t,i){i.code+=_('"'+m(t.text)+'"')},"{":w,"&":w},t.walk=function(i,n){for(var e,r=0,s=i.length;r<s;r++)(e=t.codegen[i[r].tag])&&e(i[r],n);return n},t.parse=function(t,i,n){return l(t,0,[],(n=n||{}).sectionTags||[])},t.cache={},t.cacheKey=function(t,i){return[t,!!i.asString,!!i.disableLambda,i.delimiters,!!i.modelGet].join("||")},t.compile=function(i,n){n=n||{};var e=t.cacheKey(i,n),r=this.cache[e];if(r){var s=r.partials;for(var o in s)delete s[o].instance;return r}return r=this.generate(this.parse(this.scan(i,n.delimiters),i,n),i,n),this.cache[e]=r}}(i)},5485:function(t,i,n){var e=n(49397);e.Template=n(22882).Template,e.template=e.Template,t.exports=e},22882:function(t,i){!function(t){function i(t,i,n){var e;return i&&"object"==typeof i&&(void 0!==i[t]?e=i[t]:n&&i.get&&"function"==typeof i.get&&(e=i.get(t))),e}t.Template=function(t,i,n,e){t=t||{},this.r=t.code||this.r,this.c=n,this.options=e||{},this.text=i||"",this.partials=t.partials||{},this.subs=t.subs||{},this.buf=""},t.Template.prototype={r:function(t,i,n){return""},v:function(t){return t=a(t),u.test(t)?t.replace(n,"&amp;").replace(e,"&lt;").replace(r,"&gt;").replace(s,"&#39;").replace(o,"&quot;"):t},t:a,render:function(t,i,n){return this.ri([t],i||{},n)},ri:function(t,i,n){return this.r(t,i,n)},ep:function(t,i){var n=this.partials[t],e=i[n.name];if(n.instance&&n.base==e)return n.instance;if("string"==typeof e){if(!this.c)throw new Error("No compiler available.");e=this.c.compile(e,this.options)}if(!e)return null;if(this.partials[t].base=e,n.subs){for(key in i.stackText||(i.stackText={}),n.subs)i.stackText[key]||(i.stackText[key]=void 0!==this.activeSub&&i.stackText[this.activeSub]?i.stackText[this.activeSub]:this.text);e=function(t,i,n,e,r,s){function o(){}function u(){}var a;o.prototype=t,u.prototype=t.subs;var c=new o;for(a in c.subs=new u,c.subsText={},c.buf="",e=e||{},c.stackSubs=e,c.subsText=s,i)e[a]||(e[a]=i[a]);for(a in e)c.subs[a]=e[a];for(a in r=r||{},c.stackPartials=r,n)r[a]||(r[a]=n[a]);for(a in r)c.partials[a]=r[a];return c}(e,n.subs,n.partials,this.stackSubs,this.stackPartials,i.stackText)}return this.partials[t].instance=e,e},rp:function(t,i,n,e){var r=this.ep(t,n);return r?r.ri(i,n,e):""},rs:function(t,i,n){var e=t[t.length-1];if(c(e))for(var r=0;r<e.length;r++)t.push(e[r]),n(t,i,this),t.pop();else n(t,i,this)},s:function(t,i,n,e,r,s,o){var u;return(!c(t)||0!==t.length)&&("function"==typeof t&&(t=this.ms(t,i,n,e,r,s,o)),u=!!t,!e&&u&&i&&i.push("object"==typeof t?t:i[i.length-1]),u)},d:function(t,n,e,r){var s,o=t.split("."),u=this.f(o[0],n,e,r),a=this.options.modelGet,h=null;if("."===t&&c(n[n.length-2]))u=n[n.length-1];else for(var f=1;f<o.length;f++)void 0!==(s=i(o[f],u,a))?(h=u,u=s):u="";return!(r&&!u)&&(r||"function"!=typeof u||(n.push(h),u=this.mv(u,n,e),n.pop()),u)},f:function(t,n,e,r){for(var s=!1,o=!1,u=this.options.modelGet,a=n.length-1;a>=0;a--)if(void 0!==(s=i(t,n[a],u))){o=!0;break}return o?(r||"function"!=typeof s||(s=this.mv(s,n,e)),s):!r&&""},ls:function(t,i,n,e,r){var s=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(a(t.call(i,e)),i,n)),this.options.delimiters=s,!1},ct:function(t,i,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(t,this.options).render(i,n)},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf="",t},ms:function(t,i,n,e,r,s,o){var u,a=i[i.length-1],c=t.call(a);return"function"==typeof c?!!e||(u=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,a,n,u.substring(r,s),o)):c},mv:function(t,i,n){var e=i[i.length-1],r=t.call(e);return"function"==typeof r?this.ct(a(r.call(e)),e,n):r},sub:function(t,i,n,e){var r=this.subs[t];r&&(this.activeSub=t,r(i,n,this,e),this.activeSub=!1)}};var n=/&/g,e=/</g,r=/>/g,s=/\'/g,o=/\"/g,u=/[&<>\"\']/;function a(t){return String(null==t?"":t)}var c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(i)},27376:function(t){t.exports=function(t){if(!t)return!1;var n=i.call(t);return"[object Function]"===n||"function"==typeof t&&"[object RegExp]"!==n||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var i=Object.prototype.toString},96481:function(t,i,n){"use strict";var e=n(59177),r=e.ValidatorResult,s=e.SchemaError,o={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0}},u=o.validators={};function a(t,i,n,e,r){var s=i.throwError,o=i.throwAll;i.throwError=!1,i.throwAll=!1;var u=this.validateSchema(t,r,i,n);return i.throwError=s,i.throwAll=o,!u.valid&&e instanceof Function&&e(u),u.valid}function c(t,i){if(Object.hasOwnProperty.call(t,i))return t[i];if(i in t)for(;t=Object.getPrototypeOf(t);)if(Object.propertyIsEnumerable.call(t,i))return t[i]}function h(t,i,n,e,r,s){if(this.types.object(t)&&(!i.properties||void 0===i.properties[r]))if(!1===i.additionalProperties)s.addError({name:"additionalProperties",argument:r,message:"is not allowed to have the additional property "+JSON.stringify(r)});else{var o=i.additionalProperties||{};"function"==typeof n.preValidateProperty&&n.preValidateProperty(t,r,o,n,e);var u=this.validateSchema(t[r],o,n,e.makeChild(o,r));u.instance!==s.instance[r]&&(s.instance[r]=u.instance),s.importErrors(u)}}u.type=function(t,i,n,e){if(void 0===t)return null;var s=new r(t,i,n,e),o=Array.isArray(i.type)?i.type:[i.type];if(!o.some(this.testType.bind(this,t,i,n,e))){var u=o.map((function(t){if(t){var i=t.$id||t.id;return i?"<"+i+">":t+""}}));s.addError({name:"type",argument:u,message:"is not of a type(s) "+u})}return s},u.anyOf=function(t,i,n,e){if(void 0===t)return null;var o=new r(t,i,n,e),u=new r(t,i,n,e);if(!Array.isArray(i.anyOf))throw new s("anyOf must be an array");if(!i.anyOf.some(a.bind(this,t,n,e,(function(t){u.importErrors(t)})))){var c=i.anyOf.map((function(t,i){var n=t.$id||t.id;return n?"<"+n+">":t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+i+"]"}));n.nestedErrors&&o.importErrors(u),o.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return o},u.allOf=function(t,i,n,e){if(void 0===t)return null;if(!Array.isArray(i.allOf))throw new s("allOf must be an array");var o=new r(t,i,n,e),u=this;return i.allOf.forEach((function(i,r){var s=u.validateSchema(t,i,n,e);if(!s.valid){var a=i.$id||i.id||i.title&&JSON.stringify(i.title)||i.$ref&&"<"+i.$ref+">"||"[subschema "+r+"]";o.addError({name:"allOf",argument:{id:a,length:s.errors.length,valid:s},message:"does not match allOf schema "+a+" with "+s.errors.length+" error[s]:"}),o.importErrors(s)}})),o},u.oneOf=function(t,i,n,e){if(void 0===t)return null;if(!Array.isArray(i.oneOf))throw new s("oneOf must be an array");var o=new r(t,i,n,e),u=new r(t,i,n,e),c=i.oneOf.filter(a.bind(this,t,n,e,(function(t){u.importErrors(t)}))).length,h=i.oneOf.map((function(t,i){return t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+i+"]"}));return 1!==c&&(n.nestedErrors&&o.importErrors(u),o.addError({name:"oneOf",argument:h,message:"is not exactly one from "+h.join(",")})),o},u.if=function(t,i,n,s){if(void 0===t)return null;if(!e.isSchema(i.if))throw new Error('Expected "if" keyword to be a schema');var o,u=a.call(this,t,n,s,null,i.if),c=new r(t,i,n,s);if(u){if(void 0===i.then)return;if(!e.isSchema(i.then))throw new Error('Expected "then" keyword to be a schema');o=this.validateSchema(t,i.then,n,s.makeChild(i.then)),c.importErrors(o)}else{if(void 0===i.else)return;if(!e.isSchema(i.else))throw new Error('Expected "else" keyword to be a schema');o=this.validateSchema(t,i.else,n,s.makeChild(i.else)),c.importErrors(o)}return c},u.propertyNames=function(t,i,n,o){if(this.types.object(t)){var u=new r(t,i,n,o),a=void 0!==i.propertyNames?i.propertyNames:{};if(!e.isSchema(a))throw new s('Expected "propertyNames" to be a schema (object or boolean)');for(var h in t)if(void 0!==c(t,h)){var f=this.validateSchema(h,a,n,o.makeChild(a));u.importErrors(f)}return u}},u.properties=function(t,i,n,e){if(this.types.object(t)){var o=new r(t,i,n,e),u=i.properties||{};for(var a in u){var h=u[a];if(void 0!==h){if(null===h)throw new s('Unexpected null, expected schema in "properties"');"function"==typeof n.preValidateProperty&&n.preValidateProperty(t,a,h,n,e);var f=c(t,a),l=this.validateSchema(f,h,n,e.makeChild(h,a));l.instance!==o.instance[a]&&(o.instance[a]=l.instance),o.importErrors(l)}}return o}},u.patternProperties=function(t,i,n,e){if(this.types.object(t)){var o=new r(t,i,n,e),u=i.patternProperties||{};for(var a in t){var c=!0;for(var f in u){var l=u[f];if(void 0!==l){if(null===l)throw new s('Unexpected null, expected schema in "patternProperties"');try{var v=new RegExp(f,"u")}catch(t){v=new RegExp(f)}if(v.test(a)){c=!1,"function"==typeof n.preValidateProperty&&n.preValidateProperty(t,a,l,n,e);var d=this.validateSchema(t[a],l,n,e.makeChild(l,a));d.instance!==o.instance[a]&&(o.instance[a]=d.instance),o.importErrors(d)}}}c&&h.call(this,t,i,n,e,a,o)}return o}},u.additionalProperties=function(t,i,n,e){if(this.types.object(t)){if(i.patternProperties)return null;var s=new r(t,i,n,e);for(var o in t)h.call(this,t,i,n,e,o,s);return s}},u.minProperties=function(t,i,n,e){if(this.types.object(t)){var s=new r(t,i,n,e);return Object.keys(t).length>=i.minProperties||s.addError({name:"minProperties",argument:i.minProperties,message:"does not meet minimum property length of "+i.minProperties}),s}},u.maxProperties=function(t,i,n,e){if(this.types.object(t)){var s=new r(t,i,n,e);return Object.keys(t).length<=i.maxProperties||s.addError({name:"maxProperties",argument:i.maxProperties,message:"does not meet maximum property length of "+i.maxProperties}),s}},u.items=function(t,i,n,e){var s=this;if(this.types.array(t)&&i.items){var o=new r(t,i,n,e);return t.every((function(t,r){var u=Array.isArray(i.items)?i.items[r]||i.additionalItems:i.items;if(void 0===u)return!0;if(!1===u)return o.addError({name:"items",message:"additionalItems not permitted"}),!1;var a=s.validateSchema(t,u,n,e.makeChild(u,r));return a.instance!==o.instance[r]&&(o.instance[r]=a.instance),o.importErrors(a),!0})),o}},u.minimum=function(t,i,n,e){if(this.types.number(t)){var s=new r(t,i,n,e);return i.exclusiveMinimum&&!0===i.exclusiveMinimum?t>i.minimum||s.addError({name:"minimum",argument:i.minimum,message:"must be greater than "+i.minimum}):t>=i.minimum||s.addError({name:"minimum",argument:i.minimum,message:"must be greater than or equal to "+i.minimum}),s}},u.maximum=function(t,i,n,e){if(this.types.number(t)){var s=new r(t,i,n,e);return i.exclusiveMaximum&&!0===i.exclusiveMaximum?t<i.maximum||s.addError({name:"maximum",argument:i.maximum,message:"must be less than "+i.maximum}):t<=i.maximum||s.addError({name:"maximum",argument:i.maximum,message:"must be less than or equal to "+i.maximum}),s}},u.exclusiveMinimum=function(t,i,n,e){if("boolean"!=typeof i.exclusiveMaximum&&this.types.number(t)){var s=new r(t,i,n,e);return t>i.exclusiveMinimum||s.addError({name:"exclusiveMinimum",argument:i.exclusiveMinimum,message:"must be strictly greater than "+i.exclusiveMinimum}),s}},u.exclusiveMaximum=function(t,i,n,e){if("boolean"!=typeof i.exclusiveMaximum&&this.types.number(t)){var s=new r(t,i,n,e);return t<i.exclusiveMaximum||s.addError({name:"exclusiveMaximum",argument:i.exclusiveMaximum,message:"must be strictly less than "+i.exclusiveMaximum}),s}};var f=function(t,i,n,o,u,a){if(this.types.number(t)){var c=i[u];if(0==c)throw new s(u+" cannot be zero");var h=new r(t,i,n,o),f=e.getDecimalPlaces(t),l=e.getDecimalPlaces(c),v=Math.max(f,l),d=Math.pow(10,v);return Math.round(t*d)%Math.round(c*d)!=0&&h.addError({name:u,argument:c,message:a+JSON.stringify(c)}),h}};function l(t,i,n){var r,s=n.length;for(r=i+1;r<s;r++)if(e.deepCompareStrict(t,n[r]))return!1;return!0}u.multipleOf=function(t,i,n,e){return f.call(this,t,i,n,e,"multipleOf","is not a multiple of (divisible by) ")},u.divisibleBy=function(t,i,n,e){return f.call(this,t,i,n,e,"divisibleBy","is not divisible by (multiple of) ")},u.required=function(t,i,n,e){var s=new r(t,i,n,e);return void 0===t&&!0===i.required?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(i.required)&&i.required.forEach((function(i){void 0===c(t,i)&&s.addError({name:"required",argument:i,message:"requires property "+JSON.stringify(i)})})),s},u.pattern=function(t,i,n,e){if(this.types.string(t)){var s=new r(t,i,n,e),o=i.pattern;try{var u=new RegExp(o,"u")}catch(t){u=new RegExp(o)}return t.match(u)||s.addError({name:"pattern",argument:i.pattern,message:"does not match pattern "+JSON.stringify(i.pattern.toString())}),s}},u.format=function(t,i,n,s){if(void 0!==t){var o=new r(t,i,n,s);return o.disableFormat||e.isFormat(t,i.format,this)||o.addError({name:"format",argument:i.format,message:"does not conform to the "+JSON.stringify(i.format)+" format"}),o}},u.minLength=function(t,i,n,e){if(this.types.string(t)){var s=new r(t,i,n,e),o=t.match(/[\uDC00-\uDFFF]/g);return t.length-(o?o.length:0)>=i.minLength||s.addError({name:"minLength",argument:i.minLength,message:"does not meet minimum length of "+i.minLength}),s}},u.maxLength=function(t,i,n,e){if(this.types.string(t)){var s=new r(t,i,n,e),o=t.match(/[\uDC00-\uDFFF]/g);return t.length-(o?o.length:0)<=i.maxLength||s.addError({name:"maxLength",argument:i.maxLength,message:"does not meet maximum length of "+i.maxLength}),s}},u.minItems=function(t,i,n,e){if(this.types.array(t)){var s=new r(t,i,n,e);return t.length>=i.minItems||s.addError({name:"minItems",argument:i.minItems,message:"does not meet minimum length of "+i.minItems}),s}},u.maxItems=function(t,i,n,e){if(this.types.array(t)){var s=new r(t,i,n,e);return t.length<=i.maxItems||s.addError({name:"maxItems",argument:i.maxItems,message:"does not meet maximum length of "+i.maxItems}),s}},u.uniqueItems=function(t,i,n,e){if(!0===i.uniqueItems&&this.types.array(t)){var s=new r(t,i,n,e);return t.every(l)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}},u.dependencies=function(t,i,n,e){if(this.types.object(t)){var s=new r(t,i,n,e);for(var o in i.dependencies)if(void 0!==t[o]){var u=i.dependencies[o],a=e.makeChild(u,o);if("string"==typeof u&&(u=[u]),Array.isArray(u))u.forEach((function(i){void 0===t[i]&&s.addError({name:"dependencies",argument:a.propertyPath,message:"property "+i+" not found, required by "+a.propertyPath})}));else{var c=this.validateSchema(t,u,n,a);s.instance!==c.instance&&(s.instance=c.instance),c&&c.errors.length&&(s.addError({name:"dependencies",argument:a.propertyPath,message:"does not meet dependency required by "+a.propertyPath}),s.importErrors(c))}}return s}},u.enum=function(t,i,n,o){if(void 0===t)return null;if(!Array.isArray(i.enum))throw new s("enum expects an array",i);var u=new r(t,i,n,o);return i.enum.some(e.deepCompareStrict.bind(null,t))||u.addError({name:"enum",argument:i.enum,message:"is not one of enum values: "+i.enum.map(String).join(",")}),u},u.const=function(t,i,n,s){if(void 0===t)return null;var o=new r(t,i,n,s);return e.deepCompareStrict(i.const,t)||o.addError({name:"const",argument:i.const,message:"does not exactly match expected constant: "+i.const}),o},u.not=u.disallow=function(t,i,n,e){var s=this;if(void 0===t)return null;var o=new r(t,i,n,e),u=i.not||i.disallow;return u?(Array.isArray(u)||(u=[u]),u.forEach((function(r){if(s.testType(t,i,n,e,r)){var u=r&&(r.$id||r.id)||r;o.addError({name:"not",argument:u,message:"is of prohibited type "+u})}})),o):null},t.exports=o},59177:function(t,i,n){"use strict";var e=n(8575),r=i.ValidationError=function(t,i,n,e,r,s){if(Array.isArray(e)?(this.path=e,this.property=e.reduce((function(t,i){return t+f(i)}),"instance")):void 0!==e&&(this.property=e),t&&(this.message=t),n){var o=n.$id||n.id;this.schema=o||n}void 0!==i&&(this.instance=i),this.name=r,this.argument=s,this.stack=this.toString()};r.prototype.toString=function(){return this.property+" "+this.message};var s=i.ValidatorResult=function(t,i,n,e){this.instance=t,this.schema=i,this.options=n,this.path=e.path,this.propertyPath=e.propertyPath,this.errors=[],this.throwError=n&&n.throwError,this.throwFirst=n&&n.throwFirst,this.throwAll=n&&n.throwAll,this.disableFormat=n&&!0===n.disableFormat};function o(t,i){return i+": "+t.toString()+"\n"}function u(t){Error.captureStackTrace&&Error.captureStackTrace(this,u),this.instance=t.instance,this.schema=t.schema,this.options=t.options,this.errors=t.errors}s.prototype.addError=function(t){var i;if("string"==typeof t)i=new r(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");i=new r(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(i),this.throwFirst)throw new u(this);if(this.throwError)throw i;return i},s.prototype.importErrors=function(t){"string"==typeof t||t&&t.validatorType?this.addError(t):t&&t.errors&&Array.prototype.push.apply(this.errors,t.errors)},s.prototype.toString=function(t){return this.errors.map(o).join("")},Object.defineProperty(s.prototype,"valid",{get:function(){return!this.errors.length}}),t.exports.ValidatorResultError=u,u.prototype=new Error,u.prototype.constructor=u,u.prototype.name="Validation Error";var a=i.SchemaError=function t(i,n){this.message=i,this.schema=n,Error.call(this,i),Error.captureStackTrace(this,t)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var c=i.SchemaContext=function(t,i,n,e,r){this.schema=t,this.options=i,Array.isArray(n)?(this.path=n,this.propertyPath=n.reduce((function(t,i){return t+f(i)}),"instance")):this.propertyPath=n,this.base=e,this.schemas=r};c.prototype.resolve=function(t){return e.resolve(this.base,t)},c.prototype.makeChild=function(t,i){var n=void 0===i?this.path:this.path.concat([i]),r=t.$id||t.id,s=e.resolve(this.base,r||""),o=new c(t,this.options,n,s,Object.create(this.schemas));return r&&!o.schemas[s]&&(o.schemas[s]=t),o};var h=i.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/,"utc-millisec":function(t){return"string"==typeof t&&parseFloat(t)===parseInt(t,10)&&!isNaN(t)},regex:function(t){var i=!0;try{new RegExp(t)}catch(t){i=!1}return i},style:/\s*(.+?):\s*([^;]+);?/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/};h.regexp=h.regex,h.pattern=h.regex,h.ipv4=h["ip-address"],i.isFormat=function(t,i,n){if("string"==typeof t&&void 0!==h[i]){if(h[i]instanceof RegExp)return h[i].test(t);if("function"==typeof h[i])return h[i](t)}else if(n&&n.customFormats&&"function"==typeof n.customFormats[i])return n.customFormats[i](t);return!0};var f=i.makeSuffix=function(t){return(t=t.toString()).match(/[.\s\[\]]/)||t.match(/^[\d]/)?t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]":"."+t};function l(t,i,n,e){"object"==typeof n?i[e]=p(t[e],n):-1===t.indexOf(n)&&i.push(n)}function v(t,i,n){i[n]=t[n]}function d(t,i,n,e){"object"==typeof i[e]&&i[e]&&t[e]?n[e]=p(t[e],i[e]):n[e]=i[e]}function p(t,i){var n=Array.isArray(i),e=n&&[]||{};return n?(t=t||[],e=e.concat(t),i.forEach(l.bind(null,t,e))):(t&&"object"==typeof t&&Object.keys(t).forEach(v.bind(null,t,e)),Object.keys(i).forEach(d.bind(null,t,i,e))),e}function b(t){return"/"+encodeURIComponent(t).replace(/~/g,"%7E")}i.deepCompareStrict=function t(i,n){if(typeof i!=typeof n)return!1;if(Array.isArray(i))return!!Array.isArray(n)&&(i.length===n.length&&i.every((function(e,r){return t(i[r],n[r])})));if("object"==typeof i){if(!i||!n)return i===n;var e=Object.keys(i),r=Object.keys(n);return e.length===r.length&&e.every((function(e){return t(i[e],n[e])}))}return i===n},t.exports.deepMerge=p,i.objectGetPath=function(t,i){for(var n,e=i.split("/").slice(1);"string"==typeof(n=e.shift());){var r=decodeURIComponent(n.replace(/~0/,"~").replace(/~1/g,"/"));if(!(r in t))return;t=t[r]}return t},i.encodePath=function(t){return t.map(b).join("")},i.getDecimalPlaces=function(t){var i=0;if(isNaN(t))return i;"number"!=typeof t&&(t=Number(t));var n=t.toString().split("e");if(2===n.length){if("-"!==n[1][0])return i;i=Number(n[1].slice(1))}var e=n[0].split(".");return 2===e.length&&(i+=e[1].length),i},i.isSchema=function(t){return"object"==typeof t&&t||"boolean"==typeof t}},40660:function(t,i,n){"use strict";var e=t.exports.Validator=n(43058);t.exports.ValidatorResult=n(59177).ValidatorResult,t.exports.ValidatorResultError=n(59177).ValidatorResultError,t.exports.ValidationError=n(59177).ValidationError,t.exports.SchemaError=n(59177).SchemaError,t.exports.SchemaScanResult=n(31287).SchemaScanResult,t.exports.scan=n(31287).scan,t.exports.validate=function(t,i,n){return(new e).validate(t,i,n)}},31287:function(t,i,n){"use strict";var e=n(8575),r=n(59177);function s(t,i){this.id=t,this.ref=i}t.exports.SchemaScanResult=s,t.exports.scan=function(t,i){function n(t,i){if(i&&"object"==typeof i)if(i.$ref){var s=e.resolve(t,i.$ref);c[s]=c[s]?c[s]+1:0}else{var h=i.$id||i.id,f=h?e.resolve(t,h):t;if(f){if(f.indexOf("#")<0&&(f+="#"),a[f]){if(!r.deepCompareStrict(a[f],i))throw new Error("Schema <"+f+"> already exists with different definition");return a[f]}a[f]=i,"#"==f[f.length-1]&&(a[f.substring(0,f.length-1)]=i)}o(f+"/items",Array.isArray(i.items)?i.items:[i.items]),o(f+"/extends",Array.isArray(i.extends)?i.extends:[i.extends]),n(f+"/additionalItems",i.additionalItems),u(f+"/properties",i.properties),n(f+"/additionalProperties",i.additionalProperties),u(f+"/definitions",i.definitions),u(f+"/patternProperties",i.patternProperties),u(f+"/dependencies",i.dependencies),o(f+"/disallow",i.disallow),o(f+"/allOf",i.allOf),o(f+"/anyOf",i.anyOf),o(f+"/oneOf",i.oneOf),n(f+"/not",i.not)}}function o(t,i){if(Array.isArray(i))for(var e=0;e<i.length;e++)n(t+"/"+e,i[e])}function u(t,i){if(i&&"object"==typeof i)for(var e in i)n(t+"/"+e,i[e])}var a={},c={};return n(t,i),new s(a,c)}},43058:function(t,i,n){"use strict";var e=n(8575),r=n(96481),s=n(59177),o=n(31287).scan,u=s.ValidatorResult,a=s.ValidatorResultError,c=s.SchemaError,h=s.SchemaContext,f=function t(){this.customFormats=Object.create(t.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(v),this.attributes=Object.create(r.validators)};function l(t){var i="string"==typeof t?t:t.$ref;return"string"==typeof i&&i}f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(t,i){var n=this;if(!t)return null;var e=o(i||"/",t),r=i||t.$id||t.id;for(var s in e.id)this.schemas[s]=e.id[s];for(var s in e.ref)this.unresolvedRefs.push(s);return this.unresolvedRefs=this.unresolvedRefs.filter((function(t){return void 0===n.schemas[t]})),this.schemas[r]},f.prototype.addSubSchemaArray=function(t,i){if(Array.isArray(i))for(var n=0;n<i.length;n++)this.addSubSchema(t,i[n])},f.prototype.addSubSchemaObject=function(t,i){if(i&&"object"==typeof i)for(var n in i)this.addSubSchema(t,i[n])},f.prototype.setSchemas=function(t){this.schemas=t},f.prototype.getSchema=function(t){return this.schemas[t]},f.prototype.validate=function(t,i,n,r){if("boolean"!=typeof i&&"object"!=typeof i||null===i)throw new c("Expected `schema` to be an object or boolean");n||(n={});var s,f=i.$id||i.id,l=e.resolve(n.base||"/",f||"");if(!r){(r=new h(i,n,[],l,Object.create(this.schemas))).schemas[l]||(r.schemas[l]=i);var v=o(l,i);for(var d in v.id){var p=v.id[d];r.schemas[d]=p}}if(n.required&&void 0===t)return(s=new u(t,i,n,r)).addError("is required, but is undefined"),s;if(!(s=this.validateSchema(t,i,n,r)))throw new Error("Result undefined");if(n.throwAll&&s.errors.length)throw new a(s);return s},f.prototype.validateSchema=function(t,i,n,e){var o=new u(t,i,n,e);if("boolean"==typeof i)!0===i?i={}:!1===i&&(i={type:[]});else if(!i)throw new Error("schema is undefined");if(i.extends)if(Array.isArray(i.extends)){var a={schema:i,ctx:e};i.extends.forEach(this.schemaTraverser.bind(this,a)),i=a.schema,a.schema=null,a.ctx=null,a=null}else i=s.deepMerge(i,this.superResolve(i.extends,e));var f=l(i);if(f){var v=this.resolve(i,f,e),d=new h(v.subschema,n,e.path,v.switchSchema,e.schemas);return this.validateSchema(t,v.subschema,n,d)}var p=n&&n.skipAttributes||[];for(var b in i)if(!r.ignoreProperties[b]&&p.indexOf(b)<0){var m=null,y=this.attributes[b];if(y)m=y.call(this,t,i,n,e);else if(!1===n.allowUnknownAttributes)throw new c("Unsupported attribute: "+b,i);m&&o.importErrors(m)}if("function"==typeof n.rewrite){var g=n.rewrite.call(this,t,i,n,e);o.instance=g}return o},f.prototype.schemaTraverser=function(t,i){t.schema=s.deepMerge(t.schema,this.superResolve(i,t.ctx))},f.prototype.superResolve=function(t,i){var n=l(t);return n?this.resolve(t,n,i).subschema:t},f.prototype.resolve=function(t,i,n){if(i=n.resolve(i),n.schemas[i])return{subschema:n.schemas[i],switchSchema:i};var r=e.parse(i),o=r&&r.hash,u=o&&o.length&&i.substr(0,i.length-o.length);if(!u||!n.schemas[u])throw new c("no such schema <"+i+">",t);var a=s.objectGetPath(n.schemas[u],o.substr(1));if(void 0===a)throw new c("no such schema "+o+" located in <"+u+">",t);return{subschema:a,switchSchema:i}},f.prototype.testType=function(t,i,n,e,r){if(void 0!==r){if(null===r)throw new c('Unexpected null in "type" keyword');if("function"==typeof this.types[r])return this.types[r].call(this,t);if(r&&"object"==typeof r){var s=this.validateSchema(t,r,n,e);return void 0===s||!(s&&s.errors.length)}return!0}};var v=f.prototype.types={};v.string=function(t){return"string"==typeof t},v.number=function(t){return"number"==typeof t&&isFinite(t)},v.integer=function(t){return"number"==typeof t&&t%1==0},v.boolean=function(t){return"boolean"==typeof t},v.array=function(t){return Array.isArray(t)},v.null=function(t){return null===t},v.date=function(t){return t instanceof Date},v.any=function(t){return!0},v.object=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&!(t instanceof Date)},t.exports=f},49364:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.b("<div class='vp-nfl-branding-container'>"),e.b("\n"+n),e.b("    <div class='vp-nfl-branding'>"),e.b("\n"+n),e.b("        <a href='http://www.nfl.com/' target='nfl_site'>"),e.b("\n"+n),e.b("            <span class='vp-nfl-brand vp-nfl-brand-span'></span>"),e.b("\n"+n),e.b("            <span class='vp-nfl-brand vp-nfl-brand-logo'></span>"),e.b("\n"+n),e.b("        </a>"),e.b("\n"+n),e.b("    </div>"),e.b("\n"+n),e.b("</div>"),e.fl()},partials:{},subs:{}},"<div class='vp-nfl-branding-container'>\n    <div class='vp-nfl-branding'>\n        <a href='http://www.nfl.com/' target='nfl_site'>\n            <span class='vp-nfl-brand vp-nfl-brand-span'></span>\n            <span class='vp-nfl-brand vp-nfl-brand-logo'></span>\n        </a>\n    </div>\n</div>",e)},66411:function(t,i,n){var e=n(5485);t.exports=new e.Template({code:function(t,i,n){var e=this;return e.b(n=n||""),e.s(e.f("items",t,i,1),t,i,0,10,1422,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.s(e.f("sectionLabel",t,i,1),t,i,0,32,316,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("        <li class='vp-pl-section-label vp-show' data-label-for-id='"),e.b(e.v(e.f("firstItemId",t,i,0))),e.b("'>"),e.b("\n"+n),e.s(e.f("sectionLabelIcon",t,i,1),t,i,0,151,247,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("                <img class='vp-playlist-icon section' src='"),e.b(e.v(e.f("sectionLabelIcon",t,i,0))),e.b("'/>"),e.b("\n"+n)})),t.pop()),e.b("            "),e.b(e.v(e.f("sectionLabel",t,i,0))),e.b("\n"+n),e.b("        </li>"),e.b("\n"+n)})),t.pop()),e.s(e.f("sectionLabel",t,i,1),t,i,1,0,0,"")||(e.b("        <li class='vp-playlist-item' data-id='"),e.b(e.v(e.f("id",t,i,0))),e.b("'>"),e.b("\n"+n),e.s(e.f("labelIcon",t,i,1),t,i,0,437,571,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("                <span class='yvp-playlist-icon-wrapper'><img class='yvp-playlist-icon item' src='"),e.b(e.v(e.f("labelIcon",t,i,0))),e.b("'/></span>"),e.b("\n"+n)})),t.pop()),e.b("            <img class='vp-playlist-item-image' loading='lazy' src='"),e.b(e.v(e.f("thumbnail",t,i,0))),e.b("' alt='' />"),e.b("\n"+n),e.b("            <div class='yvp-playlist-item-watched "),e.s(e.f("isItemWatched",t,i,1),t,i,0,747,755,"{{ }}")&&(e.rs(t,i,(function(t,i,n){n.b("yvp-show")})),t.pop()),e.b("'>"),e.b("\n"+n),e.b("                <div class='yvp-watched'>"),e.b(e.v(e.d("strings.WATCHED",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("            </div>"),e.b("\n"+n),e.b("            <div class='vp-playlist-border'></div>"),e.b("\n"+n),e.b("            <div class='vp-playlist-item-gradient'>"),e.b("\n"+n),e.b("                <div class='vp-pl-meta'>"),e.b("\n"+n),e.b("                    <span class='vp-pl-title'>"),e.b(e.v(e.f("title",t,i,0))),e.b("</span>"),e.b("\n"+n),e.b("                    <span class='vp-now-playing'>"),e.b(e.v(e.d("strings.NOW_PLAYING",t,i,0))),e.b("</span>"),e.b("\n"+n),e.s(e.f("provider",t,i,1),t,i,0,1182,1276,"{{ }}")&&(e.rs(t,i,(function(t,i,e){e.b("                        <span class='vp-pl-provider'>"),e.b(e.v(e.f("provider",t,i,0))),e.b("</span>"),e.b("\n"+n)})),t.pop()),e.b("                </div>"),e.b("\n"+n),e.b("            </div>"),e.b("\n"+n),e.b("            <div class='vp-pl-dur'>"),e.b(e.v(e.f("duration",t,i,0))),e.b("</div>"),e.b("\n"+n),e.b("        </li>"),e.b("\n"+n))})),t.pop()),e.fl()},partials:{},subs:{}},"{{#items}}\n    {{#sectionLabel}}\n        <li class='vp-pl-section-label vp-show' data-label-for-id='{{firstItemId}}'>\n            {{#sectionLabelIcon}}\n                <img class='vp-playlist-icon section' src='{{sectionLabelIcon}}'/>\n            {{/sectionLabelIcon}}\n            {{sectionLabel}}\n        </li>\n    {{/sectionLabel}}\n    {{^sectionLabel}}\n        <li class='vp-playlist-item' data-id='{{id}}'>\n            {{#labelIcon}}\n                <span class='yvp-playlist-icon-wrapper'><img class='yvp-playlist-icon item' src='{{labelIcon}}'/></span>\n            {{/labelIcon}}\n            <img class='vp-playlist-item-image' loading='lazy' src='{{thumbnail}}' alt='' />\n            <div class='yvp-playlist-item-watched {{#isItemWatched}}yvp-show{{/isItemWatched}}'>\n                <div class='yvp-watched'>{{strings.WATCHED}}</div>\n            </div>\n            <div class='vp-playlist-border'></div>\n            <div class='vp-playlist-item-gradient'>\n                <div class='vp-pl-meta'>\n                    <span class='vp-pl-title'>{{title}}</span>\n                    <span class='vp-now-playing'>{{strings.NOW_PLAYING}}</span>\n                    {{#provider}}\n                        <span class='vp-pl-provider'>{{provider}}</span>\n                    {{/provider}}\n                </div>\n            </div>\n            <div class='vp-pl-dur'>{{duration}}</div>\n        </li>\n    {{/sectionLabel}}\n{{/items}}\n",e)},4797:function(){},52559:function(){},67343:function(){},16132:function(){},42758:function(){},41600:function(){},16103:function(){},4947:function(t){var i=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var n,e={},r=i(t).split("\n"),s=0;s<r.length;s++){var o=r[s],u=o.indexOf(":"),a=i(o.slice(0,u)).toLowerCase(),c=i(o.slice(u+1));void 0===e[a]?e[a]=c:(n=e[a],"[object Array]"===Object.prototype.toString.call(n)?e[a].push(c):e[a]=[e[a],c])}return e}},74971:function(t,i,n){var e;t=n.nmd(t),function(r){i&&i.nodeType,t&&t.nodeType;var s="object"==typeof n.g&&n.g;s.global!==s&&s.window!==s&&s.self;var o,u=2147483647,a=36,c=1,h=26,f=38,l=700,v=72,d=128,p="-",b=/^xn--/,m=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=a-c,_=Math.floor,E=String.fromCharCode;function O(t){throw RangeError(g[t])}function S(t,i){for(var n=t.length,e=[];n--;)e[n]=i(t[n]);return e}function A(t,i){var n=t.split("@"),e="";return n.length>1&&(e=n[0]+"@",t=n[1]),e+S((t=t.replace(y,".")).split("."),i).join(".")}function T(t){for(var i,n,e=[],r=0,s=t.length;r<s;)(i=t.charCodeAt(r++))>=55296&&i<=56319&&r<s?56320==(64512&(n=t.charCodeAt(r++)))?e.push(((1023&i)<<10)+(1023&n)+65536):(e.push(i),r--):e.push(i);return e}function M(t){return S(t,(function(t){var i="";return t>65535&&(i+=E((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=E(t)})).join("")}function j(t,i){return t+22+75*(t<26)-((0!=i)<<5)}function N(t,i,n){var e=0;for(t=n?_(t/l):t>>1,t+=_(t/i);t>w*h>>1;e+=a)t=_(t/w);return _(e+(w+1)*t/(t+f))}function I(t){var i,n,e,r,s,o,f,l,b,m,y,g=[],w=t.length,E=0,S=d,A=v;for((n=t.lastIndexOf(p))<0&&(n=0),e=0;e<n;++e)t.charCodeAt(e)>=128&&O("not-basic"),g.push(t.charCodeAt(e));for(r=n>0?n+1:0;r<w;){for(s=E,o=1,f=a;r>=w&&O("invalid-input"),((l=(y=t.charCodeAt(r++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:a)>=a||l>_((u-E)/o))&&O("overflow"),E+=l*o,!(l<(b=f<=A?c:f>=A+h?h:f-A));f+=a)o>_(u/(m=a-b))&&O("overflow"),o*=m;A=N(E-s,i=g.length+1,0==s),_(E/i)>u-S&&O("overflow"),S+=_(E/i),E%=i,g.splice(E++,0,S)}return M(g)}function k(t){var i,n,e,r,s,o,f,l,b,m,y,g,w,S,A,M=[];for(g=(t=T(t)).length,i=d,n=0,s=v,o=0;o<g;++o)(y=t[o])<128&&M.push(E(y));for(e=r=M.length,r&&M.push(p);e<g;){for(f=u,o=0;o<g;++o)(y=t[o])>=i&&y<f&&(f=y);for(f-i>_((u-n)/(w=e+1))&&O("overflow"),n+=(f-i)*w,i=f,o=0;o<g;++o)if((y=t[o])<i&&++n>u&&O("overflow"),y==i){for(l=n,b=a;!(l<(m=b<=s?c:b>=s+h?h:b-s));b+=a)A=l-m,S=a-m,M.push(E(j(m+A%S,0))),l=_(A/S);M.push(E(j(l,0))),s=N(n,w,e==r),n=0,++e}++n,++i}return M.join("")}o={version:"1.3.2",ucs2:{decode:T,encode:M},decode:I,encode:k,toASCII:function(t){return A(t,(function(t){return m.test(t)?"xn--"+k(t):t}))},toUnicode:function(t){return A(t,(function(t){return b.test(t)?I(t.slice(4).toLowerCase()):t}))}},void 0===(e=function(){return o}.call(i,n,i,t))||(t.exports=e)}()},62587:function(t){"use strict";function i(t,i){return Object.prototype.hasOwnProperty.call(t,i)}t.exports=function(t,n,e,r){n=n||"&",e=e||"=";var s={};if("string"!=typeof t||0===t.length)return s;var o=/\+/g;t=t.split(n);var u=1e3;r&&"number"==typeof r.maxKeys&&(u=r.maxKeys);var a=t.length;u>0&&a>u&&(a=u);for(var c=0;c<a;++c){var h,f,l,v,d=t[c].replace(o,"%20"),p=d.indexOf(e);p>=0?(h=d.substr(0,p),f=d.substr(p+1)):(h=d,f=""),l=decodeURIComponent(h),v=decodeURIComponent(f),i(s,l)?Array.isArray(s[l])?s[l].push(v):s[l]=[s[l],v]:s[l]=v}return s}},12361:function(t){"use strict";var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,n,e,r){return n=n||"&",e=e||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(r){var s=encodeURIComponent(i(r))+e;return Array.isArray(t[r])?t[r].map((function(t){return s+encodeURIComponent(i(t))})).join(n):s+encodeURIComponent(i(t[r]))})).join(n):r?encodeURIComponent(i(r))+e+encodeURIComponent(i(t)):""}},17673:function(t,i,n){"use strict";i.decode=i.parse=n(62587),i.encode=i.stringify=n(12361)},15005:function(t,i,n){var e=n(93379),r=n(40759);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var s={insert:"head",singleton:!1};e(r,s);t.exports=r.locals||{}},67965:function(t,i,n){var e=n(93379),r=n(3847);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var s={insert:"head",singleton:!1};e(r,s);t.exports=r.locals||{}},93379:function(t,i,n){"use strict";var e,r=function(){return void 0===e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e},s=function(){var t={};return function(i){if(void 0===t[i]){var n=document.querySelector(i);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[i]=n}return t[i]}}(),o=[];function u(t){for(var i=-1,n=0;n<o.length;n++)if(o[n].identifier===t){i=n;break}return i}function a(t,i){for(var n={},e=[],r=0;r<t.length;r++){var s=t[r],a=i.base?s[0]+i.base:s[0],c=n[a]||0,h="".concat(a," ").concat(c);n[a]=c+1;var f=u(h),l={css:s[1],media:s[2],sourceMap:s[3]};-1!==f?(o[f].references++,o[f].updater(l)):o.push({identifier:h,updater:b(l,i),references:1}),e.push(h)}return e}function c(t){var i=document.createElement("style"),e=t.attributes||{};if(void 0===e.nonce){var r=n.nc;r&&(e.nonce=r)}if(Object.keys(e).forEach((function(t){i.setAttribute(t,e[t])})),"function"==typeof t.insert)t.insert(i);else{var o=s(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(i)}return i}var h,f=(h=[],function(t,i){return h[t]=i,h.filter(Boolean).join("\n")});function l(t,i,n,e){var r=n?"":e.media?"@media ".concat(e.media," {").concat(e.css,"}"):e.css;if(t.styleSheet)t.styleSheet.cssText=f(i,r);else{var s=document.createTextNode(r),o=t.childNodes;o[i]&&t.removeChild(o[i]),o.length?t.insertBefore(s,o[i]):t.appendChild(s)}}function v(t,i,n){var e=n.css,r=n.media,s=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(e+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}var d=null,p=0;function b(t,i){var n,e,r;if(i.singleton){var s=p++;n=d||(d=c(i)),e=l.bind(null,n,s,!1),r=l.bind(null,n,s,!0)}else n=c(i),e=v.bind(null,n,i),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else r()}}t.exports=function(t,i){(i=i||{}).singleton||"boolean"==typeof i.singleton||(i.singleton=r());var n=a(t=t||[],i);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var e=0;e<n.length;e++){var r=u(n[e]);o[r].references--}for(var s=a(t,i),c=0;c<n.length;c++){var h=u(n[c]);0===o[h].references&&(o[h].updater(),o.splice(h,1))}n=s}}}},8380:function(t,i){"use strict";i.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTcuMDQyIiBoZWlnaHQ9IjIwLjAxNSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCByZXF1aXJlZEV4dGVuc2lvbnM9Imh0dHA6Ly9ucy5hZG9iZS5jb20vQWRvYmVJbGx1c3RyYXRvci8xMC4wLyIgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBmaWxsPSIjZmZmIiBkPSJNMTU2Ljk2IDEuODc3bC01LjI1NSAxOC4xMjZoLTcuOTkybDIuMTk4LTcuMzg0LTUuNDYgNi4zNGgtMi42bC0zLjExNC0xMS44M2gtNi4yMjdsMS4yNy01LjI1MmgxMS44OGwxLjI1NyA3LjI1IDYuMDQ3LTcuMjQ2di0uMDA1aDcuOTk1em0tMzIuNTEzIDEzLjI0Yy0uODA4IDIuNjg4LTMuNjQ1IDQuODg3LTYuMzAyIDQuODg3aC0xMS44NmMtMi42NiAwLTQuMTcyLTIuMi0zLjM2NC00Ljg4N2wxLjg5OC02LjMxMmg4LjQxNmwtMS44NjYgNS43NDdoNC42MWwyLjM3NS03LjM3NmgtMTMuMDI2Yy45NTgtMi41IDMuNzUyLTUuMjk4IDYuMjc1LTUuMjk4aDExLjg2YzIuNjU3IDAgNC4wNTYgMy4wMTggMy4yNDcgNS43MDVsLTIuMjY0IDcuNTM0em0tMjIuNTMtNS4yNzZoLTcuMzAybC44MDgtMi42MzJoLTMuOWwtMi4zNiA3LjMyMmgzLjlsLjU4Ny0xLjM2NWg3LjI2bC0xLjA4NCAzLjU4Yy0uODEgMi42ODgtMy4xNjMgMy4yNTgtNS44MiAzLjI1OGgtOS4yNGMtMi42NTYgMC00LjE3LTIuMi0zLjM2Mi00Ljg4N2wyLjI2NC03LjUzM2MuODA4LTIuNjg4IDIuOTEtNS43MDUgNi43MzUtNS43MDVoOC42NWMyLjg5MyAwIDQuMzQ4IDMuMyAzLjU2MiA1Ljg1bC0uNjk4IDIuMTEzek03MC45ODUgMjAuMDA3bDEuNjUtNi43MjJoNi40NGwtMS42NTIgNi43MjJoLTYuNDM4em0tNy4zOS02LjcyaDYuNDM4bC0xLjY1IDYuNzJoLS40OTV2LjAwM0g1NS43NjZ2LS4wMDdoLTUuNzJsNC43OC0xNi4wNThoLTEuOTEyTDU0LjA3LjA2NWgxLjkxbC4wMDQtLjAxaDkuMjM4TDYwLjM5NiAxNi4yN2gyLjQ2N2wuNzMyLTIuOTg0ek01MC4yNTggNi45MTJINDMuN2wuNzI0LTIuOTdoLTE0LjY1TDMwLjkzLjA2N2gyMC45MzZsLS4wMTQuMDZoLjA2TDUwLjI2IDYuOTE0ek0xNy41MTggMjBoLTYuNzgyTDguOSAzLjk0NUgyLjkxNUw0LjA3LjA2NWg0LjM4NnYtLjAxaDguNzdsMS43MjggMTUuMTIgNC41LTE1LjEyaDUuNDhsLTUuOTQgMTkuOTQ2aC01LjQ3N3pNNy41NzggNS40NWwuNDQgNC42NzMtMy4wMzcgOS44OEguMDUzTDQuNDk2IDUuNDVINy41OHptMzIuMzQ2LS4yNzhsLTEuMjE3IDQuMDMyaDcuMzk3bC0uODczIDMuNzRoLTcuNjVMMzUuNDUgMjBoLTguNjNsNC40NzYtMTQuODI4aDguNjN6bTkzLjI2NCAzLjUzbDEuNDU3IDYuNDctMS40MyA0LjgzMmgtNi43NjRMMTI5LjgxIDguN2gzLjM4eiIvPjwvc3dpdGNoPjwvc3ZnPg=="},40936:function(t,i){"use strict";i.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCI+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTE1IDI5LjA5MnMuNjI0LTEuMDggMS4yMzQtMS42NjhjLjg2Mi0uODI3IDIuMDg0LTEuMzQ2IDMuNzM2LTEuNTg0IDIuMDczLS4zIDMuNTc2LTEgNC40NjMtMi4wNzIuNzE1LS44NzIuODIzLTEuNzQuODI1LTIuMTg0VjQuMTE0aC0uNjgzYy0uODguNjMtMi41NjggMS40OTMtNC43MzguOTU4QzE2LjA3NSA0LjE0OCAxNSAuOTA2IDE1IC45MDZzLTEuMDc2IDMuMjQtNC44MzcgNC4xNjZjLTIuMTczLjUzNS0zLjg2LS4zMy00Ljc0Mi0uOTZoLS42Nzh2MTcuNDcyYzAgLjQ0LjEwOCAxLjMxMi44MjUgMi4xODQuODg1IDEuMDcyIDIuMzg2IDEuNzcgNC40NiAyLjA3MiAxLjY1NS4yMzggMi44NzYuNzU3IDMuNzM4IDEuNTg4LjYzMy42MDggMS4yMzQgMS42NjQgMS4yMzQgMS42NjQiLz48cGF0aCBmaWxsPSIjMDEzNzY5IiBkPSJNMjQuNjQgNC43OTZzLTIuMDU2IDEuNi00Ljk1Ljg3NUMxNi4zMSA0LjgzIDE1IDIuMjk4IDE1IDIuMjk4cy0xLjMxMiAyLjUzLTQuNjkgMy4zNzRjLTIuODk3LjcyNS00Ljk1My0uODc0LTQuOTUzLS44NzR2MTYuNzg4YzAgLjU3LjI0IDIuOTkzIDQuNzU4IDMuNjQ2IDEuNzg2LjI2IDMuMTIuODMyIDQuMDc4IDEuNzU0LjM0NC4zMy42MDYuNjY2LjgwNS45NzguMi0uMzEyLjQ2LS42NDguODA4LS45NzguOTU2LS45MjIgMi4yOS0xLjQ5NCA0LjA3NC0xLjc1NCA0LjUyLS42NTIgNC43Ni0zLjA3NiA0Ljc2LTMuNjQ2VjQuNzk2eiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0xNSAyNi4yNTNzMS4zMS0xLjYyMiA0LjcyLTIuMTQ3YzMuOTAzLS42IDMuNzg4LTIuNDMzIDMuNzg4LTIuNTI1di04Ljc5NGwtMTcuMDIuMDAydjguNzkyYzAgLjA5My0uMTEyIDEuOTI1IDMuNzkgMi41MjUgMy40MS41MjYgNC43MiAyLjE0OCA0LjcyIDIuMTQ4Ii8+PHBhdGggZmlsbD0iI0Q1MEEwQSIgZD0iTTExLjAzIDE5LjIxM3YtNC4xOGwtLjUyMy0uMjk1VjEzLjY1aDIuMzl2MS4wODhsLS41LjI5NXY4LjUzbC0xLjI3OC0uMzg0LTEuODQ3LTUuNDV2My41OWwuNTg2LjQ1MnYxLjExbC0yLjU2NS0uNjU3di0uOTRsLjU4Ni0uMjMydi02LjAxNWwtLjYtLjNWMTMuNjVoMS45NE0xNS40MzIgMjMuMDM4bC41MS42MXYxLjA4NmwtMi41MzgtLjk0OHYtLjkybC41Ni0uMjN2LTcuNjAzbC0uNTU2LS4yODN2LTEuMWg0LjQwOHYyLjIxaC0uOTY4bC0uMjk1LS45MDdoLTEuMTJ2Mi41NTJoLjg0bC4zMy0uNDg0aC42Nzd2Mi4yN2gtLjY3NmwtLjMyLS40NmgtLjg1Mk0xOC4yMzYgMjMuNDJ2LTEuMDg1bC42My0uNTE3di02Ljc4NWwtLjU0LS4yODN2LTEuMWgyLjU0MnYxLjFsLS40OTcuMjgzdjYuMzY0bDEuMDkzLS4yOTMuMjA3LTEuNjdoMS4wNXYyLjc5Ii8+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTYuOTMyIDEwLjk4NmwtLjc3LS41OGguOTQybC4zMS0uODg4LjMxMi44OWguOTRsLS43Ny41NzguMjgzLjkwNy0uNzY3LS41MzctLjc2NC41MzdNMTAuMjcyIDEwLjk4NmwtLjc3LS41OGguOTRsLjMxLS44ODguMzEyLjg5aC45NGwtLjc3LjU3OC4yODUuOTA3LS43NjctLjUzNy0uNzY0LjUzN002LjkzMiA3Ljk3NWwtLjc3LS41NzhoLjk0MmwuMzEtLjg5LjMxMi44OWguOTRsLS43Ny41NzguMjgzLjkwNS0uNzY3LS41NC0uNzY0LjU0TTEwLjI3MiA3Ljk3NWwtLjc3LS41NzhoLjk0bC4zMS0uODkuMzEyLjg5aC45NGwtLjc3LjU3OC4yODUuOTA1LS43NjctLjU0LS43NjQuNTRNMjMuMzQ4IDExLjg5M2wtLjc2NC0uNTM4LS43NjYuNTM4LjI4NC0uOTA3LS43Ny0uNTc4aC45NGwuMzEyLS44OS4zMS44OWguOTQybC0uNzcuNTc4TTIwLjAxIDExLjg5M2wtLjc2NC0uNTM4LS43NjcuNTM4LjI4NC0uOTA3LS43NzItLjU3OGguOTRsLjMxNC0uODkuMzEuODloLjk0bC0uNzcuNTc4TTIzLjM0OCA4Ljg4bC0uNzY0LS41NC0uNzY2LjU0LjI4NC0uOTA1LS43Ny0uNTc4aC45NGwuMzEyLS44OS4zMS44OWguOTQybC0uNzcuNTc4TTIwLjAxIDguODhsLS43NjQtLjU0LS43NjcuNTQuMjg0LS45MDUtLjc3Mi0uNTc4aC45NGwuMzE0LS44OS4zMS44OWguOTRsLS43Ny41NzhNMTUuNzMgNy4zMThjLS4zNDItLjI4LS43MjctLjQ2NC0xLjEzNS0uNTUyLjEtLjA5NC4yMDItLjE3Mi4yODgtLjI0Ny41MS4xMi44NTQuMzUgMS4wODguNTQ1LS4wOC4wODQtLjE2My4xNy0uMjQuMjUzbS0uNDkzLjU5OGMtLjMyNy0uMjgtLjcyNC0uNDgtMS4xNzUtLjU3LjA3LS4wODguMTUtLjE4NS4yMjgtLjI3LjM0My4wNi43ODIuMjQgMS4xNjcuNTU3LS4wOC4wOTYtLjE1Mi4xOS0uMjIuMjgzbS0uNDQ1LjYyNGMtLjM1My0uMjk1LS43NjMtLjQ3NS0xLjE2Ni0uNTUzIDAgMCAuMTIyLS4yMDIuMTkzLS4zMDQuNDkuMDk2Ljg5My4zMjcgMS4xNy41NjQtLjA3LjEtLjEzOC4yLS4xOTguMjkzbTIuMzI4LTIuOTgzcy0uNC4yMDgtLjk1Ni43NTNjLjEyNi4wNzQuMjY4LjE3LjM0OC4yNC0uMDg1LjA3Mi0uMTcuMTU0LS4yNS4yMy0uMzYtLjMtLjczOC0uNDUtMS4wMy0uNTIzLjA5Ny0uMDY3LjItLjEzOC4zMDItLjIuMTU2LjAzNy4zMS4xLjMxLjEuNjI3LS40NzggMS4xNy0uNjg2IDEuMTctLjY4NnMtLjA2Mi0uMDMtLjIzLS4wMjhjLTIuNDcuMDMzLTQuNzQ2IDEuODc2LTQuMzE4IDUuMDM0LjA0OC4zMzQuMTc2Ljk0NC4zNDMgMS4yMS4wNTQtLjUyNi4yNTItMS42ODcuODM4LTIuOTM0LS4yMDUtLjA3My0uMzc1LS4xMDMtLjM3NS0uMTAzLjA2Mi0uMTI3LjE0NS0uMjg2LjE0NS0uMjg2LjQzMy4wODIuODE0LjI2NSAxLjE0Ni41MjUtLjA3OC4xMjctLjEzMy4yMS0uMTcuMjgtLjExOC0uMDk0LS4yMzYtLjE3LS4zNjQtLjI0NC0uNjYgMS4xNS0uOTY1IDIuMjQtMS4wOSAyLjgwOC4wMDguMDM0LjA3OC4wNTMuMTM4LjA0NSAyLjcwNi0uMzUzIDMuOTczLTEuNzMgNC4zNTgtMy4yMy4yNTMtLjk4LjE3Mi0yLjAwNS0uMTY4LTIuODQ0LS4wMjQtLjA1Ny0uMDctLjE1Ni0uMTQ4LS4xNSIvPjwvc3ZnPg=="},35449:function(t,i,n){!function(t){"use strict";var i,n=function(){try{if(t.URLSearchParams&&"bar"===new t.URLSearchParams("foo=bar").get("foo"))return t.URLSearchParams}catch(t){}return null}(),e=n&&"a=1"===new n({a:1}).toString(),r=n&&"+"===new n("s=%2B").get("s"),s=n&&"size"in n.prototype,o="__URLSearchParams__",u=!n||((i=new n).append("s"," &"),"s=+%26"===i.toString()),a=v.prototype,c=!(!t.Symbol||!t.Symbol.iterator);if(!(n&&e&&r&&u&&s)){a.append=function(t,i){y(this[o],t,i)},a.delete=function(t){delete this[o][t]},a.get=function(t){var i=this[o];return this.has(t)?i[t][0]:null},a.getAll=function(t){var i=this[o];return this.has(t)?i[t].slice(0):[]},a.has=function(t){return w(this[o],t)},a.set=function(t,i){this[o][t]=[""+i]},a.toString=function(){var t,i,n,e,r=this[o],s=[];for(i in r)for(n=d(i),t=0,e=r[i];t<e.length;t++)s.push(n+"="+d(e[t]));return s.join("&")};var h,f=t.Proxy&&n&&(!r||!u||!e||!s);f?(h=new Proxy(n,{construct:function(t,i){return new t(new v(i[0]).toString())}})).toString=Function.prototype.toString.bind(v):h=v,Object.defineProperty(t,"URLSearchParams",{value:h});var l=t.URLSearchParams.prototype;l.polyfill=!0,!f&&t.Symbol&&(l[t.Symbol.toStringTag]="URLSearchParams"),l.forEach=l.forEach||function(t,i){var n=m(this.toString());Object.getOwnPropertyNames(n).forEach((function(e){n[e].forEach((function(n){t.call(i,n,e,this)}),this)}),this)},l.sort=l.sort||function(){var t,i,n,e=m(this.toString()),r=[];for(t in e)r.push(t);for(r.sort(),i=0;i<r.length;i++)this.delete(r[i]);for(i=0;i<r.length;i++){var s=r[i],o=e[s];for(n=0;n<o.length;n++)this.append(s,o[n])}},l.keys=l.keys||function(){var t=[];return this.forEach((function(i,n){t.push(n)})),b(t)},l.values=l.values||function(){var t=[];return this.forEach((function(i){t.push(i)})),b(t)},l.entries=l.entries||function(){var t=[];return this.forEach((function(i,n){t.push([n,i])})),b(t)},c&&(l[t.Symbol.iterator]=l[t.Symbol.iterator]||l.entries),l.size||Object.defineProperty(l,"size",{get:function(){var t=m(this.toString());if(l===this)throw new TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(t).reduce((function(i,n){return i+t[n].length}),0)}})}function v(t){((t=t||"")instanceof URLSearchParams||t instanceof v)&&(t=t.toString()),this[o]=m(t)}function d(t){var i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return i[t]}))}function p(t){return t.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(t){return decodeURIComponent(t)}))}function b(i){var n={next:function(){var t=i.shift();return{done:void 0===t,value:t}}};return c&&(n[t.Symbol.iterator]=function(){return n}),n}function m(t){var i={};if("object"==typeof t)if(g(t))for(var n=0;n<t.length;n++){var e=t[n];if(!g(e)||2!==e.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");y(i,e[0],e[1])}else for(var r in t)t.hasOwnProperty(r)&&y(i,r,t[r]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var s=t.split("&"),o=0;o<s.length;o++){var u=s[o],a=u.indexOf("=");-1<a?y(i,p(u.slice(0,a)),p(u.slice(a+1))):u&&y(i,p(u),"")}}return i}function y(t,i,n){var e="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);w(t,i)?t[i].push(e):t[i]=[e]}function g(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function w(t,i){return Object.prototype.hasOwnProperty.call(t,i)}}(void 0!==n.g?n.g:"undefined"!=typeof window?window:this)},8575:function(t,i,n){var e=n(74971);function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}i.parse=m,i.resolve=function(t,i){return m(t,!1,!0).resolve(i)},i.resolveObject=function(t,i){return t?m(t,!1,!0).resolveObject(i):i},i.format=function(t){y(t)&&(t=m(t));return t instanceof r?t.format():r.prototype.format.call(t)},i.Url=r;var s=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(u),c=["%","/","?",";","#"].concat(a),h=["/","?","#"],f=/^[a-z0-9A-Z_-]{0,63}$/,l=/^([a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(17673);function m(t,i,n){if(t&&g(t)&&t instanceof r)return t;var e=new r;return e.parse(t,i,n),e}function y(t){return"string"==typeof t}function g(t){return"object"==typeof t&&null!==t}function w(t){return null===t}r.prototype.parse=function(t,i,n){if(!y(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t;r=r.trim();var o=s.exec(r);if(o){var u=(o=o[0]).toLowerCase();this.protocol=u,r=r.substr(o.length)}if(n||o||r.match(/^\/\/[^@\/]+@[^@\/]+/)){var m="//"===r.substr(0,2);!m||o&&d[o]||(r=r.substr(2),this.slashes=!0)}if(!d[o]&&(m||o&&!p[o])){for(var g,w,_=-1,E=0;E<h.length;E++){-1!==(O=r.indexOf(h[E]))&&(-1===_||O<_)&&(_=O)}-1!==(w=-1===_?r.lastIndexOf("@"):r.lastIndexOf("@",_))&&(g=r.slice(0,w),r=r.slice(w+1),this.auth=decodeURIComponent(g)),_=-1;for(E=0;E<c.length;E++){var O;-1!==(O=r.indexOf(c[E]))&&(-1===_||O<_)&&(_=O)}-1===_&&(_=r.length),this.host=r.slice(0,_),r=r.slice(_),this.parseHost(),this.hostname=this.hostname||"";var S="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!S)for(var A=this.hostname.split(/\./),T=(E=0,A.length);E<T;E++){var M=A[E];if(M&&!M.match(f)){for(var j="",N=0,I=M.length;N<I;N++)M.charCodeAt(N)>127?j+="x":j+=M[N];if(!j.match(f)){var k=A.slice(0,E),R=A.slice(E+1),L=M.match(l);L&&(k.push(L[1]),R.unshift(L[2])),R.length&&(r="/"+R.join(".")+r),this.hostname=k.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!S){var C=this.hostname.split("."),D=[];for(E=0;E<C.length;++E){var P=C[E];D.push(P.match(/[^A-Za-z0-9_-]/)?"xn--"+e.encode(P):P)}this.hostname=D.join(".")}var x=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+x,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==r[0]&&(r="/"+r))}if(!v[u])for(E=0,T=a.length;E<T;E++){var F=a[E],B=encodeURIComponent(F);B===F&&(B=escape(F)),r=r.split(F).join(B)}var z=r.indexOf("#");-1!==z&&(this.hash=r.substr(z),r=r.slice(0,z));var V=r.indexOf("?");if(-1!==V?(this.search=r.substr(V),this.query=r.substr(V+1),i&&(this.query=b.parse(this.query)),r=r.slice(0,V)):i&&(this.search="",this.query={}),r&&(this.pathname=r),p[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){x=this.pathname||"",P=this.search||"";this.path=x+P}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var i=this.protocol||"",n=this.pathname||"",e=this.hash||"",r=!1,s="";this.host?r=t+this.host:this.hostname&&(r=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&g(this.query)&&Object.keys(this.query).length&&(s=b.stringify(this.query));var o=this.search||s&&"?"+s||"";return i&&":"!==i.substr(-1)&&(i+=":"),this.slashes||(!i||p[i])&&!1!==r?(r="//"+(r||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):r||(r=""),e&&"#"!==e.charAt(0)&&(e="#"+e),o&&"?"!==o.charAt(0)&&(o="?"+o),i+r+(n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(o=o.replace("#","%23"))+e},r.prototype.resolve=function(t){return this.resolveObject(m(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(y(t)){var i=new r;i.parse(t,!1,!0),t=i}var n=new r;if(Object.keys(this).forEach((function(t){n[t]=this[t]}),this),n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol)return Object.keys(t).forEach((function(i){"protocol"!==i&&(n[i]=t[i])})),p[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n;if(t.protocol&&t.protocol!==n.protocol){if(!p[t.protocol])return Object.keys(t).forEach((function(i){n[i]=t[i]})),n.href=n.format(),n;if(n.protocol=t.protocol,t.host||d[t.protocol])n.pathname=t.pathname;else{for(var e=(t.pathname||"").split("/");e.length&&!(t.host=e.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),n.pathname=e.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var s=n.pathname||"",o=n.search||"";n.path=s+o}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var u=n.pathname&&"/"===n.pathname.charAt(0),a=t.host||t.pathname&&"/"===t.pathname.charAt(0),c=a||u||n.host&&t.pathname,h=c,f=n.pathname&&n.pathname.split("/")||[],l=(e=t.pathname&&t.pathname.split("/")||[],n.protocol&&!p[n.protocol]);if(l&&(n.hostname="",n.port=null,n.host&&(""===f[0]?f[0]=n.host:f.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===e[0]?e[0]=t.host:e.unshift(t.host)),t.host=null),c=c&&(""===e[0]||""===f[0])),a)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,f=e;else if(e.length)f||(f=[]),f.pop(),f=f.concat(e),n.search=t.search,n.query=t.query;else if(null!=t.search){if(l)n.hostname=n.host=f.shift(),(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift());return n.search=t.search,n.query=t.query,w(n.pathname)&&w(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!f.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var v=f.slice(-1)[0],b=(n.host||t.host)&&("."===v||".."===v)||""===v,m=0,g=f.length;g>=0;g--)"."==(v=f[g])?f.splice(g,1):".."===v?(f.splice(g,1),m++):m&&(f.splice(g,1),m--);if(!c&&!h)for(;m--;m)f.unshift("..");!c||""===f[0]||f[0]&&"/"===f[0].charAt(0)||f.unshift(""),b&&"/"!==f.join("/").substr(-1)&&f.push("");var _,E=""===f[0]||f[0]&&"/"===f[0].charAt(0);l&&(n.hostname=n.host=E?"":f.length?f.shift():"",(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift()));return(c=c||n.host&&f.length)&&!E&&f.unshift(""),f.length?n.pathname=f.join("/"):(n.pathname=null,n.path=null),w(n.pathname)&&w(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,i=o.exec(t);i&&(":"!==(i=i[0])&&(this.port=i.substr(1)),t=t.substr(0,t.length-i.length)),t&&(this.hostname=t)}},41875:function(t,i,n){"use strict";var e=n(58908),r=n(27376),s=n(4947),o=n(47529);function u(t,i,n){var e=t;return r(i)?(n=i,"string"==typeof t&&(e={uri:t})):e=o(i,{uri:t}),e.callback=n,e}function a(t,i,n){return c(i=u(t,i,n))}function c(t){if(void 0===t.callback)throw new Error("callback argument missing");var i=!1,n=function(n,e,r){i||(i=!0,t.callback(n,e,r))};function e(){var t=void 0;if(t=h.response?h.response:h.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var i=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!i)return t.responseXML}catch(t){}return null}(h),m)try{t=JSON.parse(t)}catch(t){}return t}function r(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,y)}function o(){if(!c){var i;clearTimeout(f),i=t.useXDR&&void 0===h.status?200:1223===h.status?204:h.status;var r=y,o=null;return 0!==i?(r={body:e(),statusCode:i,method:v,headers:{},url:l,rawRequest:h},h.getAllResponseHeaders&&(r.headers=s(h.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),n(o,r,r.body)}}var u,c,h=t.xhr||null;h||(h=t.cors||t.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var f,l=h.url=t.uri||t.url,v=h.method=t.method||"GET",d=t.body||t.data,p=h.headers=t.headers||{},b=!!t.sync,m=!1,y={body:void 0,headers:{},statusCode:0,method:v,url:l,rawRequest:h};if("json"in t&&!1!==t.json&&(m=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==v&&"HEAD"!==v&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),d=JSON.stringify(!0===t.json?d:t.json))),h.onreadystatechange=function(){4===h.readyState&&setTimeout(o,0)},h.onload=o,h.onerror=r,h.onprogress=function(){},h.onabort=function(){c=!0},h.ontimeout=r,h.open(v,l,!b,t.username,t.password),b||(h.withCredentials=!!t.withCredentials),!b&&t.timeout>0&&(f=setTimeout((function(){if(!c){c=!0,h.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}}),t.timeout)),h.setRequestHeader)for(u in p)p.hasOwnProperty(u)&&h.setRequestHeader(u,p[u]);else if(t.headers&&!function(t){for(var i in t)if(t.hasOwnProperty(i))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(h.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(h),h.send(d||null),h}t.exports=a,t.exports.default=a,a.XMLHttpRequest=e.XMLHttpRequest||function(){},a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:e.XDomainRequest,function(t,i){for(var n=0;n<t.length;n++)i(t[n])}(["get","put","post","patch","head","delete"],(function(t){a["delete"===t?"del":t]=function(i,n,e){return(n=u(i,n,e)).method=t.toUpperCase(),c(n)}}))},47529:function(t){t.exports=function(){for(var t={},n=0;n<arguments.length;n++){var e=arguments[n];for(var r in e)i.call(e,r)&&(t[r]=e[r])}return t};var i=Object.prototype.hasOwnProperty},18698:function(t){function i(n){return t.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,i(n)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},95986:function(t){"use strict";t.exports=JSON.parse('{"ERR_TITLE_CANNOT_PLAY_VIDEO":"Cannot Play Video"}')},19068:function(t){"use strict";t.exports=JSON.parse('{"EMBED":"Embed","NOW_PLAYING":"Now Playing","WATCHED":"watched","LIVE":"Live","PLAY_VIDEO":"Play Video","BACK":"Back","SETTINGS":"Settings","VIDEO_QUALITY":"Video Quality","QUALITY":"QUALITY","AUTO":"Auto","LOW":"Good","MEDIUM":"Better","HIGH":"Best","EMBED_NOT_ALLOWED":"This video cannot be embedded due to provider license restrictions.","TOP":"Top","BOTTOM":"Bottom","ON":"On","OFF":"Off","CC_PREVIEW":"Bottom","CC_PREVIEW_MESSAGE":"Captions will look like this","BACKGROUND":"background","EFFECTS":"Effects","RAISED":"Raised","CC":"Closed Captions","LANGUAGE":"Language","POSITION":"Position","ERR_ANDROID_LIVE_CHROME_REQUIRED":"This video requires Android 4.0 or above and the latest version of the Google Chrome browser.<br> You can get the latest version of Chrome from the <a href=\'https://play.google.com/store/apps/details?id=com.android.chrome\'>Google Play store</a>.","ERR_LIVE_PLAYBACK_COMPLETE":"This live event has ended.","ERR_NETWORK_ISSUE":"Videos cannot play due to a network issue. Please check your Internet connection and try again.","ERR_DEVICE":"Due to license restrictions; this video cannot be viewed on this device.","ERR_EMBED":"Due to license restrictions; this video can only be viewed on Yahoo.","ERR_GEO":"Unfortunately, this video is not available in your region.","ERR_BLACKOUT":"Due to local blackout restrictions, this live event cannot be viewed in your area.","ERR_TECH_DIFFICULTIES":"If this error is occurring repeatedly, we may be experiencing technical difficulties. We apologize for the inconvenience. <a class=\'vp-browser-refresh\' href=\'javascript:window.location.reload();\'>Refresh Browser</a>","ERR_UNAVAILABLE":"Unfortunately, this video is no longer available.","ERR_MISSING_OR_DAMAGED":"Unfortunately, this video is missing or damaged and cannot be played.","ERR_BROWSER_UNSUPPORTED":"This browser is unsupported. To view this video, try another browser.","ERR_BROWSER_UNSUPPORTED_SKIP_IN_10":"This browser is unsupported. To view this video, try another browser. In few seconds, we will go to the next video.","ERR_GENERAL_ERROR":"Unfortunately, an error occurred. To try again, <a href=\'javascript:window.location.reload();\'>refresh the browser</a>.","ERR_LIVE_IOS_PLAYBACK":"Unfortunately, an error occurred. To try again, either <a href=\'javascript:window.location.reload();\'>refresh</a> the browser or download the <a class=\'vp-browser-refresh\' href=\'https://mobile.yahoo.com/sports\'>Yahoo Sports app</a>","ERR_DRM_ANDROID_UNSUPPORTED_BROWSER":"This video requires DRM, which is not supported by this web browser. To view this video, use the <a href=\'https://play.google.com/store/apps/details?id=com.android.chrome\'>Google Chrome web browser</a> instead.","ERR_DRM_IOS_UNSUPPORTED_BROWSER":"This video requires DRM, which is not supported by this web browser. To view this video, use the Apple Safari web browser instead.","ERR_DRM_IOS_UNSUPPORTED_OS_VER":"This video requires DRM, which is not supported by the older version of iOS on your device. To view this video, update your device to the latest version of iOS.","ERR_DRM_UNSUPPORTED_NETWORK_WIFI":"Due to license restrictions, this video cannot be played over WiFi on your device. To view this video, turn off WiFi and use your cellular data connection instead.","ERR_TITLE_CANNOT_PLAY_360_VIDEO":"Cannot Play 360 Video","ERR_TITLE_SOMETHING_WENT_WRONG":"Something Went Wrong","ERR_TITLE_VIDEO_NOT_AVAILABLE":"Video Not Available","CHROMECAST":"Chromecast","DISCONNECT":"Disconnect","CAST_PLAYING_RECEIVER":"Playing on {device-name}","AIRPLAY":"Airplay","PAUSE_VIDEO":"Pause Video","GO_TO_FULLSCREEN":"Go to full screen","GO_TO_NORMAL_SCREEN":"Go to normal screen","UNMUTE":"Unmute","MUTE":"Mute","SEEK_SLIDER":"Seek slider","UP_NEXT":"Up next","FULLSCREEN_SPACE":"Full Screen","PRESETS":"Presets","CC_SETTINGS":"Closed Caption Settings","ADV_SHORT":"Ad: {remaining}s","ADV_LONG":"Ad: video resumes in {remaining}s","ADV_MULT_SHORT":"Ad {position}/{total}: {remaining}s","ADV_MULT_LONG":"Ad {position}/{total}: video resumes in {remaining}s","TEXT":"Text","STYLE_OPTIONS":"Style Options","PLAIN":"Plain","SHADOW":"Shadow","LOWERED":"Lowered","OUTLINE":"Outline","CAPTIONS_ON":"Captions On","CAPTIONS_OFF":"Captions Off","CAPTIONS_AVAILABLE":"Captions Available","MULTI_AUDIO":"Select Audio Language","AUDIO_TRACK":"Audio Track","CAPTIONS_NOT_AVAILABLE":"Captions Not Available","EXIT_FULLSCREEN":"Exit Full Screen","MORE_MARKERS":"+{count_markers} more","DROPSHADOW":"Dropshadow","DEPRESSED":"Depressed","UNIFORM":"Uniform","SIZE_EXTRA_SMALL":"Extra Small","SIZE_EXTRA_LARGE":"Extra Large","SIZE_SMALL":"Small","SIZE_MEDIUM":"Medium","SIZE_LARGE":"Large","WHITE":"White","GRAY":"Gray","LIGHT_GRAY":"Light Gray","DARK_GRAY":"Dark Gray","BLACK":"Black","RED":"Red","GREEN":"Green","BLUE":"Blue","CYAN":"Cyan","YELLOW":"Yellow","MAGENTA":"Magenta","TRANSPARENT":"Transparent","FONT_SIZE":"Font Size","FONT_FAMILY":"Font Family","FONT_COLOR":"Font Color","BACKGROUND_COLOR":"Background Color","BACKGROUND_TRANSPARENCY":"Background Transparency","CAPTION_LANGUAGES":"Caption Languages","MORE_CAPTION_SETTINGS":"More Captions Settings","STARTS_IN_SECONDS":"Starts in {remaining} sec","NOW":"now","AGO":"ago","WATCH_NEXT_VIDEO":"Watch next video"}')},31123:function(t){"use strict";t.exports=JSON.parse('{"ERR_RESTRICTED_NETWORK_TYPE":"Due to rights restrictions, this live stream is only available on cellular data. Turn off wifi to watch.","ERR_DRM_UNSUPPORTED_NETWORK_WIFI":"Due to license restrictions, this video cannot be played over WiFi on your device. To view this video, turn off WiFi and use your cellular data connection instead."}')}},__webpack_module_cache__={},inProgress,dataWebpackPrefix;function __webpack_require__(t){var i=__webpack_module_cache__[t];if(void 0!==i)return i.exports;var n=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}if(__webpack_require__.m=__webpack_modules__,__webpack_require__.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(i,{a:i}),i},__webpack_require__.d=function(t,i){for(var n in i)__webpack_require__.o(i,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},__webpack_require__.f={},__webpack_require__.e=function(t){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(i,n){return __webpack_require__.f[n](t,i),i}),[]))},__webpack_require__.u=function(t){return t+".chunk."+{232:"8cc21ae9ced8038c979d",377:"1356c35aaafb7c5428cd"}[t]+".js"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},inProgress={},dataWebpackPrefix="oath-player:",__webpack_require__.l=function(t,i,n,e){if(inProgress[t])inProgress[t].push(i);else{var r,s;if(void 0!==n)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var a=o[u];if(a.getAttribute("src")==t||a.getAttribute("data-webpack")==dataWebpackPrefix+n){r=a;break}}r||(s=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,__webpack_require__.nc&&r.setAttribute("nonce",__webpack_require__.nc),r.setAttribute("data-webpack",dataWebpackPrefix+n),r.src=t),inProgress[t]=[i];var c=function(i,n){r.onerror=r.onload=null,clearTimeout(h);var e=inProgress[t];if(delete inProgress[t],r.parentNode&&r.parentNode.removeChild(r),e&&e.forEach((function(t){return t(n)})),i)return i(n)},h=setTimeout(c.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=c.bind(null,r.onerror),r.onload=c.bind(null,r.onload),s&&document.head.appendChild(r)}},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},__webpack_require__.p="https://assets.video.yahoo.net/oath/builds/8.5.54/","function"==typeof jsonpScriptSrc){var original_jsonpScriptSrc=jsonpScriptSrc;function patchJsonpScriptSrc(){try{if("function"!=typeof replaceOathPlayerSrc)throw new Error("WebpackRequireFrom: 'replaceOathPlayerSrc' is not a function or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting");var t=replaceOathPlayerSrc(original_jsonpScriptSrc.apply(this,arguments));if(!t||"string"!=typeof t)throw new Error("WebpackRequireFrom: 'replaceOathPlayerSrc' does not return string. See https://github.com/agoldis/webpack-require-from#troubleshooting");return t}catch(t){return original_jsonpScriptSrc.apply(this,arguments)}}jsonpScriptSrc=patchJsonpScriptSrc}!function(){var t={179:0};__webpack_require__.f.j=function(i,n){var e=__webpack_require__.o(t,i)?t[i]:void 0;if(0!==e)if(e)n.push(e[2]);else{var r=new Promise((function(n,r){e=t[i]=[n,r]}));n.push(e[2]=r);var s=__webpack_require__.p+__webpack_require__.u(i),o=new Error;__webpack_require__.l(s,(function(n){if(__webpack_require__.o(t,i)&&(0!==(e=t[i])&&(t[i]=void 0),e)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+i+" failed.\n("+r+": "+s+")",o.name="ChunkLoadError",o.type=r,o.request=s,e[1](o)}}),"chunk-"+i,i)}};var i=function(i,n){var e,r,s=n[0],o=n[1],u=n[2],a=0;if(s.some((function(i){return 0!==t[i]}))){for(e in o)__webpack_require__.o(o,e)&&(__webpack_require__.m[e]=o[e]);if(u)u(__webpack_require__)}for(i&&i(n);a<s.length;a++)r=s[a],__webpack_require__.o(t,r)&&t[r]&&t[r][0](),t[r]=0},n=self.loadOathPlayerChunk=self.loadOathPlayerChunk||[];n.forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n))}(),__webpack_require__.nc=void 0;var __webpack_exports__={};!function(){"use strict";var t,i;__webpack_require__(18682);var n=__webpack_require__(88173),e=__webpack_require__(57424),r=__webpack_require__(57879),s=__webpack_require__(50155),o=window;["OATH","YAHOO"].forEach((function(t){o[t]=o[t]||{},o[t].VideoPlatform=o[t].VideoPlatform||{},o[t].VideoPlatform.VideoPlayer=r.OathPlayerFactory,o[t].VideoPlatform.Events=Object.assign({},e.API,n.Events),"YAHOO"===t&&(o[t].VideoPlatform.API_Events=o[t].VideoPlatform.Events)})),window.replaceOathPlayerSrc=function(t){var i=t.substring(t.lastIndexOf("/")+1),n=i.substring(0,i.indexOf("."));return t.includes("assets.video.yahoo.net")?"vendors~three"===n?"https://assets.video.yahoo.net/oath/three/0.137.5/"+i:t:"/"+i},s.default.sendScriptLoadBeacon(),null===(i=null===(t=window.performance)||void 0===t?void 0:t.mark)||void 0===i||i.call(t,"vplayerjsready")}()})();
//# sourceMappingURL=oath-player-desktop.js.map