;OATH = window.OATH || {};OATH.VideoPlatform = OATH.VideoPlatform || {};OATH.VideoPlatform.PlayerHosting = {"app":"omega","bucket":null,"colo":"bf1","dbColo":"us-east-2","env":"prod","ver":"8.3.157","config":null,"expiry":600,"req":{"ypv":null,"path":"/p/oath/js/1/video-play.gif","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__={8364: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._t=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._i=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.qi(i)})).catch((function(t){}))},t.prototype.qi=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,h=t.expList;u<h.length;u++){var a=h[u];t.runProb<o&&r.push(a)}for(var c=0,f=r;c<f.length;c++)for(a=f[c],s=0;s<a.trials;s++){o=Math.ceil(99999999999999*Math.random()).toString(36);var l=a.target.replace("<RAND>",o),v=new RegExp(a.beaconRegex,"gi").exec(l),d=[],p=[];a.requestHeaders&&(d=a.requestHeaders),a.parseHeaders&&(p=a.parseHeaders),null!==v&&null!==v[1]?e.push([l,v[1],a.timeout,d,p,a.name,a.uploadEndpoints]):e.push([l,a.name,a.timeout,d,p,a.name,a.uploadEndpoints]),this.expCount++}this._n(e)}},t.prototype._n=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,h){if(o.length>0||s.length>0){var a,c=new n,f=!1;new Promise((function(i,n){var e=setTimeout((function(){f=!0,n(new Error("Header Request Timed Out"))}),r);(a=new XMLHttpRequest).open("GET",t,!0),a.onload=function(){clearTimeout(e),f||i()},a.onerror=function(){clearTimeout(e),f||i()},s.forEach((function(t){var i=t.split(":");2==i.length&&a.setRequestHeader(i[0],i[1])})),c.startTime=Date.now(),a.send()})).then((function(){if("performance"in window&&"getEntriesByType"in window.performance){c.endTime=Date.now(),c.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._e("0",e,f,i._i(a,o),u,h,c)}}else i._e("6",e,null,i._i(a,o),u,h,c)})).catch((function(t){f?i._e("5",e,null,"",u,h,c):i._e("4",e,null,"",u,h,c)}))}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._e("0",e,o,"",u,h,v)}}else i._e("3",e,null,"",u,h,v)})).catch((function(t){l?i._e("2",e,null,"",u,h,v):i._e("1",e,null,"",u,h,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._e=function(t,i,n,e,r,s,o){var u=this;if(0!==s.length){var h=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&&h(t[n],i)}))},a="{";null!=r&&(a+='"n":"'+r+'",'),a+=null===n?'"m":[],':'"m":'+this._t(n)+",",a+='"r":'+t+",",a+='"s":'+o.startTime+",",a+='"e":'+o.endTime+",",a+='"q":"'+o.source+'",',""!=e&&(a+='"h":'+e+","),a+='"b":"'+i+'"}';var c="",f=[];s.forEach((function(t){c+=t.replace("<BEACON>",i),f.push(t.replace("<BEACON>",i))})),"group"==this.uploadType?(c in this.pending||(this.pending[c]=[]),this.pending[c].push([a,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)+"]",h(i,btoa(n))}))):(a="["+a+"]",h(f,btoa(a)))}},t}();i.default=n},2073: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._r={},this._s=0}return t.prototype.destroy=function(){this._r={}},t.prototype.addEventListener=function(t,i,n){return this._r?this.do(t,i,n):""},t.prototype.addEventListeners=function(t,i,n){var e=this,r={};return this._r&&t.length?(t.forEach((function(t){var s=i.bind(n,t);r[t]=e.do(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._r&&t in this._r&&Object.prototype.hasOwnProperty.call(this._r[t],i)&&delete this._r[t][i]},t.prototype.removeEventListeners=function(t){if(this._r&&t)for(var i=0,n=Object.keys(t);i<n.length;i++){var e=n[i],r=t[e];e in this._r&&Object.prototype.hasOwnProperty.call(this._r[e],r)&&(delete this._r[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._r&&t in this._r){var e=this._r[t];e&&this._o(e,t,!1,i);var r=this._r["*"];r&&this._o(r,t,!0,i)}},t.prototype._o=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 h=u.listener;h&&(e?h.apply(u.subscriber,n([i],r)):h.apply(u.subscriber,r))}catch(t){}}},t.prototype.do=function(t,i,n){this._r[t]||(this._r[t]={});var e=t+"_"+ ++this._s;return this._r[t][e]={subscriber:n,listener:i},e},t}();i.default=e},1409:function(t,i,n){t.exports=n(2073)},3661:function(t,i,n){"use strict";var e=n(6837);function r(t,i){var n=this;n._u=[],n.length=0,n._h=t||Uint8Array,i&&n.set(i)}t.exports=r,r.prototype.destroy=function(){this._u=[],this.length=0},r.prototype.set=function(t){var i=this;i._u.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._u.length;o++){var u=i._u[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._h(0);for(var r=i-t,s=new n._h(r),o=0,u=0,h=0,a=0;a<n._u.length;a++){var c=n._u[a];if(h+=c.length,o>0){if(i<=h){s.set(c.subarray(0,r-o),o);break}s.set(c.subarray(0),o),o+=c.length}else{if(t<h&&i<=h){s=c.subarray(t-u,i-u);break}if(t<h){var f=t-u;s.set(c.subarray(f)),o=c.length-f}}u+=c.length}return s}},2999:function(t){"use strict";function i(t){var i=this;i.name=t||"unnamed",i._r={},i._s=0}t.exports=i,i.prototype.addEventListener=function(t,i,n){var e=this;if(e._r){e._r[t]||(e._r[t]={});var r=t+"_"+ ++e._s;return e._r[t][r]={subscriber:n,cb:i},r}},i.prototype.removeEventListener=function(t,i){var n=this;n._r&&t in n._r&&n._r[t].hasOwnProperty(i)&&delete n._r[t][i]},i.prototype.removeEventListeners=function(t){var i=this;i._r&&t&&Object.keys(t).forEach((function(n){var e=t[n];n in i._r&&i._r[n].hasOwnProperty(e)&&(delete i._r[n][e],delete t[n])}))},i.prototype.publish=function(t){var i=this;if(i._r&&t in i._r){var n=i._r[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._r=null}},2990: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.isWithCreds=function(t){return t&&t.length&&i.isUplynk(t)&&t.indexOf("expand=finance")>-1},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)}},2576:function(t,i){"use strict";function n(){var t=this;try{t._a=t.getWindow()}catch(i){t._a=null}t.gc=!1,t._a&&t._a.performance&&"function"==typeof t._a.performance.clearResourceTimings&&"function"==typeof t._a.performance.getEntriesByName&&(t.gc=!0,t._a.performance.onresourcetimingbufferfull=t._c.bind(t))}t.exports=n,i.entryTypes=["mark","measure","navigation","frame","resource","server"],n.prototype.getWindow=function(){return window},n.prototype._c=function(){this.gc&&this._a.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.gc)return null;if(!(r=n?s._a.performance.getEntriesByName(n,e||void 0):s._a.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.gc&&t._a&&(t._a.performance.onresourcetimingbufferfull=null),t._a=null,t.gc=!1}},729:function(t){"use strict";function i(){var t=this;t.LOCALSTORAGE_PREFIX="com.yahoo.yep",t._f=t._l()}t.exports=i,i.prototype._l=function(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}},i.prototype.writeProperty=function(t,i){this._f&&(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._f){t=this.LOCALSTORAGE_PREFIX+"."+t;var i=JSON.parse(window.localStorage.getItem(t));return i||null}return null}},2849:function(t,i,n){"use strict";var e=n(3576);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)}},902:function(t,i,n){"use strict";t.exports=r;var e=n(2999);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._v=null,n._d={},n.dp={}}n(2990).inherits(r,e),r.prototype.destroy=function(){var t=this;t.reset(),t._d={},e.prototype.removeEventListeners.call(t,t.dp),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.dp.timedOut=n},r.prototype.removeEventListener=function(t,i){if(!i)throw new Error("Invalid Argument: No context");e.removeEventListeners(this.dp)},r.prototype.start=function(){var t=this;t._v||t.running||(t._v=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._v&&t.running&&(clearInterval(t._v),t._v=null,t.running=!1,t.startTime=0)},r.prototype.reset=function(){var t=this;t.stop(),t.currentCount=0,t.startTime=0}},3576:function(t,i,n){"use strict";t.exports=n(9451).userAgent},1426:function(t,i,n){"use strict";t.exports=r;var e=n(4702);function r(){var t=this;t._p=[],t._p.push(new e.BandwidthRule),t._p.push(new e.BufferRule),t._p.push(new e.ResolutionRule)}r.prototype.destroy=function(){this._p=[]},r.prototype.getNextStreamIndex=function(t,i){if(!e.validateAbrInput(t))return-1;if(i)return(new e.StartupRule).getNextStreamIndex(t);var n=Number.MAX_VALUE;return this._p.forEach((function(i){var e=i.getNextStreamIndex(t);e<0||(n=Math.min(n,e))})),n===Number.MAX_VALUE?-1:n}},4702: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||t.bwHistory,r=this._m(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._m=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._b(t):t.bufferLength<e?t.currentIndex:t.bitrateList.length-1},r.prototype._b=function(t){for(var i=this,n=0,e=t.estimatedBandwidthInBps||t.bwHistory,r=i._m(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._m=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 h=t.streams[o].width,a=t.streams[o].height,c=r<=n.MAX_WIDTH_240P||s<=n.MAX_HEIGHT_240P?n.MAX_BITRATE_240P:n.MAX_BITRATE_LIMIT;if((o=n._y(t,h,a,c))<t.streams.length-1&&t.bitrateList[o+1]<c){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._y(t,f,l,c))}return o},s.prototype._y=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}},3799: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._g=[],i.iw=[],i.averageBandwidth=t||0,i.instantaneousBandwidth=t||0}t.exports=i,i.prototype.destroy=function(){var t=this;t._g=[],t.iw=[],t.averageBandwidth=0,t.instantaneousTotalBandwidth=0},i.prototype.addSample=function(t){var i=this;if(t&&!(t.time<=0)){i.t_(t);var n=0,e=i._g.length,r=e*(e+1)/2,s=1/r;i._g.forEach((function(t,i){n+=(i+1)*s*t.bandwidth})),i.averageBandwidth=i.BW_ADJUSTMENT_FACTOR*n,n=0,e=i.iw.length,s=1/(r=e*(e+1)/2),i.iw.forEach((function(t,i){n+=(i+1)*s*t.bandwidth})),i.instantaneousBandwidth=i.BW_ADJUSTMENT_FACTOR*n}},i.prototype.t_=function(t){var i=this;!t||t.time<=0||(t.bandwidth=t.size/t.time*.008,t.bandwidth=Math.min(60,t.bandwidth),i._g.push(t),i.iw.push(t),i._g.length>i.SAMPLE_QUEUE_LENGTH&&i._g.shift(),i.iw.length>i.INSTANCE_SAMPLE_QUEUE_LENGTH&&i.iw.shift())},i.prototype.replaceSamples=function(t,i){var n=this,e=t&&i?t/i*.008:0;if(e>0){n.averageBandwidth=e,n._g=[];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._g.push(o)}}}},7027:function(t,i,n){"use strict";t.exports={Command:n(2701),MediaLoadCommand:n(7745),StreamLoadCommand:n(5867),LicenseLoadCommand:n(8158),SegmentLoadCommand:n(8913),Mp4InitSegmentLoadCommand:n(8893),SubtitleSegmentLoadCommand:n(558),ErrorHandleCommand:n(6219)}},1726:function(t,i,n){"use strict";var e=n(2701).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=h;var e=n(2701),r=e.CmdEvents,s=e.CmdNames,o=n(1726),u=n(2990);function h(){var t=this;for(var i in t.i_={},t.dp={},s)s.hasOwnProperty(i)&&(t.i_[s[i]]={})}h.prototype.destroy=function(){this.removeAllCommands(),this.i_=null},h.prototype.executeCommand=function(t,i,n){i&&(i.controller=this.__controller);var e=this.createCommand(t,i,n);return e&&e.execute(),e},h.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 h=r[s],a="on"+t+h;n[a]&&(this.dp[h+t+e.key]=e.addEventListener(h,n[a],n))}return this.i_[t][e.key]=e,e},h.prototype.removeCommand=function(t){var i=this;if(t){var n=i.i_[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.dp[s+t.name+t.key]),delete i.dp[s+t.name+t.key])}t.destroy()}}},h.prototype.removeRelatedCommands=function(t){var i=this;if(i.i_.hasOwnProperty(t)){var n=i.i_[t];for(var e in n)if(n.hasOwnProperty(e)){var r=n[e];r&&i.removeCommand(r)}}},h.prototype.removeAllCommands=function(){var t=this;for(var i in t.i_)t.i_.hasOwnProperty(i)&&t.removeRelatedCommands(i)},h.prototype.getCommand=function(t){var i=this.i_[t];if(!i)return null;var n=Object.keys(i);return n.length<1?null:i[n[n.length-1]]}},2701:function(t,i,n){"use strict";t.exports.Command=s;var e=n(2999),r=n(2990);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(){}},6219:function(t,i,n){"use strict";t.exports=l;var e=n(2990),r=n(2701),s=r.Command,o=r.CmdNames,u=r.CmdEvents,h=n(902),a=n(574).AbrModes,c=n(6837),f=n(7572);function l(t,i){var n=this;if(!t||c.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.n_=n.__controller.model,n.ERR_INTERVAL_AFTER_BUFFER_EMPTY=1e4,n.e_=new h(n.ERR_INTERVAL_AFTER_BUFFER_EMPTY,1),n.e_.addEventListener((function(){n.e_.destroy(),n.r_()}),n),n.s_(t.streamIndex),n.o_=-1}e.inherits(l,s),l.prototype.destroy=function(){var t=this;t.e_&&t.e_.destroy(),s.prototype.destroy.call(t)},l.prototype.execute=function(t){var i=this;if(!i.e_.running||-1===i.o_||t===i.o_)if(i.data.error&&i.data.error.code===f.ERR_XHR_LOAD_FORBIDDEN[0])i.r_();else{if(i.n_.getABRMode()===a.AUTO){if(i.u_.length){var n=i.u_.shift();return i.publish(u.CMD_PROGRESS,i,{index:n}),void(i.o_=n)}if(0!==i.n_.currentLoadingStreamIndex)return i.publish(u.CMD_PROGRESS,i,{index:0}),void(i.o_=0)}i.n_.bufferLength>.15||i.e_.start()}},l.prototype.cancel=function(){},l.prototype.s_=function(t){var i=this;if(i.u_=[],!(t<0||t>=i.n_.streams.length)){var n,e=t;for(n=e-1;n>=0;n--)i.u_.push(n);for(n=e+1;n<i.n_.streams.length;n++)i.u_.push(n)}},l.prototype.r_=function(){this.publish(u.CMD_ERROR,this)}},8158:function(t,i,n){"use strict";t.exports=a;var e=n(2990),r=n(4939).Events,s=n(2701),o=s.Command,u=s.CmdNames,h=s.CmdEvents;function a(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.h_=1,n.a_=[403],n.name=u.CMD_LICENSE_LOAD,n.c_=t.controller.services.getNewLoader(n.f_())}e.inherits(a,o),a.prototype.destroy=function(){this.c_.destroy(),o.prototype.destroy.call(this)},a.prototype.execute=function(){var t=this,i=t.data.url;t.c_.addEventListener(r.COMPLETE,(function(i){t.publish(h.CMD_COMPLETE,t,i)}),t),t.c_.addEventListener(r.ERROR,(function(i){t.publish(h.CMD_ERROR,t,i)}),t),t.c_.load(i,t.data.challenge)},a.prototype.cancel=function(){},a.prototype.f_=function(){var t=this;return{method:"POST",responseType:"arraybuffer",headerFields:t.data.headerFields,url:t.data.url,maxRetries:t.h_,retryExclusion:t.a_}}},7745:function(t,i,n){"use strict";t.exports=a;var e=n(2990),r=n(4939).Events,s=n(2701),o=s.Command,u=s.CmdNames,h=s.CmdEvents;function a(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.c_=t.controller.services.getNewLoader(t)}e.inherits(a,o),a.prototype.destroy=function(){this.c_.destroy(),o.prototype.destroy.call(this)},a.prototype.execute=function(){var t=this,i=t.data.url;t.c_.addEventListener(r.COMPLETE,(function(i){t.publish(h.CMD_COMPLETE,t,i)}),t),t.c_.addEventListener(r.ERROR,(function(i){t.publish(h.CMD_ERROR,t,i)}),t),t.c_.load(i)},a.prototype.cancel=function(){}},8893:function(t,i,n){"use strict";t.exports=h;var e=n(2990),r=n(2701),s=r.CmdNames,o=r.CmdEvents,u=n(8913);function h(t,i){var n=this;n.l_=t.stream,n.v_=[],n.d_=t.initSegment,n.p_=t.cached,n.m_=n.constructor.super_.prototype,n.constructor.super_.call(n,t,i),n.b_=t.initSegment.url,n.name=s.CMD_MP4_INIT_SEGMENT_LOAD}e.inherits(h,u),h.prototype.destroy=function(){var t=this;t.v_=[],t.m_.destroy.call(t)},h.prototype.y_=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")},h.prototype.f_=function(){var t=this,i={responseType:"arraybuffer",isChunkedLoad:!0,minChunkSize:1e3,headerFields:{}};t.v_.push(t.d_);var n=-1,e=-1;if(t.v_.length){var r=t.v_[0].range,s=t.v_[t.v_.length-1].range;r&&s&&(n=r.start,e=s.end)}return n>=0&&e>=0&&(i.headerFields.Range="bytes="+n+"-"+e,t.g_=e-n+1),i},h.prototype.w_=function(){},h.prototype.__=function(){var t=this;t.p_&&t.d_.loaded?t.E_():t.m_.__.call(t)},h.prototype.O_=function(t,i){var n=this;if(t){i!==n.A_&&n.S_(i);var e=n.v_[0];e&&!e.loaded&&e.append(t),n.publish(o.CMD_PROGRESS,n,{chunk:e,stream:n.l_,comboLoad:!1})}},h.prototype.E_=function(){var t=this,i=t.v_[0];i&&(i.loaded=!0,t.publish(o.CMD_PROGRESS,t,{chunk:i,stream:t.l_,comboLoad:!1}),t.publish(o.CMD_COMPLETE,t,{stream:t.l_,comboLoad:!1})),t.m_.E_.call(t)},h.prototype.T_=function(){return 0}},8913:function(t,i,n){"use strict";t.exports=d;var e=n(2990),r=n(4939).Events,s=n(4169),o=n(4641),u=n(2576),h=n(902),a=n(7650).HLSEvent,c=n(2701),f=c.Command,l=c.CmdNames,v=c.CmdEvents;function d(t,i){var n=this;if(n.y_(t),f.call(n,t,i),n.name=l.CMD_SEGMENT_LOAD,n.j_=t.segment,n.l_=t.stream,n.__controller=n.data.controller,n.n_=n.__controller.model,n.b_=n.j_?n.j_.url:t.url,n.I_=n.j_?n.j_.streamIndex:t.stream.index,n.M_=n.j_?n.j_.encryptionData:null,t.nel&&e.isUplynk(n.b_)){var r=n.b_.indexOf("?")>=0?"&":"?";n.b_=n.b_+r+"nel=true"}n.N_=!1,n.R_=new u,n.A_=0,n.k_=null;var s=t.controller.services;n.a_=[403],n.c_=s.getNewLoader(n.f_()),n.M_&&n.M_.keyUri&&(n.L_=s.getNewLoader(n.D_())),n.C_=n.__controller.services.bandwidthEstimator,n.P_=new h(n.C_.COLLECTION_INTERVAL),n.P_.addEventListener(n.x_,n),n.w_()}e.inherits(d,f),d.prototype.destroy=function(){var t=this;t.cancel(),t.c_.destroy(),t.P_.destroy(),t.R_.destroy(),t.L_&&t.L_.destroy(),t.U_&&t.U_.destroy(),f.prototype.destroy.call(t)},d.prototype.y_=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.D_=function(){var t=this,i={responseType:"arraybuffer",isChunkedLoad:!1,headerFields:{},retryExclusion:t.a_};return t.n_.metadata.skt&&(i.headerFields.skt=t.n_.metadata.skt),i},d.prototype.f_=function(){var t=this,i={responseType:"arraybuffer",isChunkedLoad:!0,headerFields:{},retryExclusion:t.a_},n=t.j_?t.j_.bitrate*t.j_.duration/8:0;return t.j_.brStartOffset>=0&&t.j_.brEndOffset>=0&&(i.headerFields.Range="bytes="+t.j_.brStartOffset+"-"+t.j_.brEndOffset,n=t.j_.brEndOffset-t.j_.brStartOffset+1),i.minChunkSize=.025*n,0===t.j_.streamIndex&&(i.timeout=1e4),i},d.prototype.w_=function(){var t=this,i=t.V_();i.containerFormat=t.j_.containerFormat,i.encryptionData=t.M_;var n=t.__controller.create(s,i);n&&(n.addEventListener(o.DATA_PROCESS_PROGRESS,t.B_,t),n.addEventListener(o.DATA_PROCESS_COMPLETE,t.F_,t),n.addEventListener(o.DATA_PROCESS_ERROR,t.z_,t),t.U_=n)},d.prototype.V_=function(){var t=this;return{seqNum:t.j_.seqNum,discontinuity:t.j_.discontinuity,demux:t.n_.config.demux,width:t.l_?t.l_.width:640,height:t.l_?t.l_.height:360,timescale:t.l_.timescale?t.l_.timescale:t.n_.timescale,duration:t.n_.duration,segDuration:t.j_.duration?t.j_.duration:-1,pcr:t.n_.getPCR(),frameRate:t.l_?t.l_.frameRate:30,mp4State:t.data.state?t.data.state.mp4:null,startOffsetTimestamp:t.n_.startOffsetTimestamp,startTime:t.j_.startTime,lastChunkEndTs:t.data.state?t.data.state.lastChunkEndTs:null,lastFrameDuration:t.data.state?t.data.state.lastFrameDuration:null,prevSegEndTimeStamps:t.n_.getPrevSegEndTimestamps(t.l_,t.j_),isAltAudioActive:!!t.data.state&&t.data.state.isAltAudioActive,live:t.n_.live,onlyMetadata:t.data.onlyMetadata,useEditBox:!0,userAgent:t.n_.userAgent,dash:t.n_.isDash(),type:t.l_.type}},d.prototype.execute=function(){var t=this;t.A_=0,t.G_=!1,t.N_=!0,t.H_=Date.now(),t.Y_=0,t.q_=0,t.j_&&(t.j_.totalDownloadTime=0,t.j_.timeToFirstByte=0),t.W_=Date.now(),t.P_.start(),t.M_&&t.L_&&t.Q_(),t.__()},d.prototype.cancel=function(){this.X_(),this.c_.reset()},d.prototype.X_=function(){var t=this;t.P_.reset(),t.U_&&t.U_.close(),t.N_=!1},d.prototype.Q_=function(){var t=this;if(t.M_&&t.L_){var i=t.l_.lastKey,n=t.M_.keyUri;if(i&&i.keyUri&&i.key&&i.keyUri===n)t.Z_(i.key);else{t.L_.addEventListener(r.COMPLETE,(function(i){t.Z_(i)}),t),t.L_.addEventListener(r.ERROR,(function(i){t.publish(v.CMD_ERROR,t,i)}),t),t.L_.load(n)}}},d.prototype.__=function(){var t=this;if(t.c_){var i=t.b_;t.c_.addEventListener(r.COMPLETE,(function(){t.E_()}),t),t.c_.addEventListener(r.PROGRESS,(function(i,n){t.O_(i,n)}),t),t.c_.addEventListener(r.ERROR,(function(i){t.publish(v.CMD_ERROR,t,i)}),t),t.c_.addEventListener(r.BYTES_LOADED,(function(i,n){t.S_(i,n)}),t),t.c_.load(i)}},d.prototype.S_=function(t,i){var n=this;n.j_&&0===n.j_.timeToFirstByte&&(n.j_.timeToFirstByte=Date.now()-n.W_,n.__controller.sendEvent(a.SEGMENT_FIRST_BYTE_LOADED,i),n.publish(v.CMD_PROGRESS,n,{position:"firstByte"})),n.Y_+=Math.max(t-n.A_,0),n.A_=t},d.prototype.O_=function(t,i){var n=this;i!==n.A_&&n.S_(i),n.U_&&n.U_.append(t)},d.prototype.E_=function(){var t=this;t.x_(),t.P_.stop();var i=t.T_();t.U_&&t.U_.endOfSegment(),i>0&&t.C_.replaceSamples(t.A_,i)},d.prototype.Z_=function(t){var i=this;t.type="key",t.initVector=i.M_.initVector,t.seqNum=i.j_.seqNum,i.j_.encryptionData.key=t,i.l_.lastKey=i.M_,i.U_.append(t)},d.prototype.B_=function(t){var i=this;t&&(t.putParam&&(i.k_&&t.putParam("perfInfo",i.k_),t.putParam("bytesTotal",i.A_)),i.publish(v.CMD_PROGRESS,i,t))},d.prototype.F_=function(t){this.publish(v.CMD_COMPLETE,this,t)},d.prototype.z_=function(){},d.prototype.x_=function(){var t=this,i=Math.max(t.Y_,0),n=Date.now();t.q_=n-t.H_,t.P_.reset(),t.C_&&t.q_>10&&(t.H_=n,t.j_&&(t.j_.totalDownloadTime+=t.q_),t.Y_=0,t.C_.addSample({size:i,time:t.q_})),t.P_.start()},d.prototype.T_=function(){var t=this,i=t.R_?t.R_.getPerformanceTiming(["startTime","requestStart","responseStart","responseEnd","secureConnectionStart","fetchStart","connectStart","domainLookupStart"],t.b_):null;return t.k_=i,i&&i.responseEnd&&i.startTime?i.responseEnd-i.startTime:null}},5867:function(t,i,n){"use strict";t.exports=a;var e=n(2990),r=n(4939).Events,s=n(2701),o=s.Command,u=s.CmdNames,h=s.CmdEvents;function a(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.c_=t.controller.services.getNewLoader(t.retryOpts,t.stream.url)}e.inherits(a,o),a.prototype.destroy=function(){this.c_.destroy(),o.prototype.destroy.call(this)},a.prototype.execute=function(){var t=this,i=t.data.stream.url;t.c_.addEventListener(r.COMPLETE,(function(n){t.publish(h.CMD_COMPLETE,t,{data:n.data,headers:n.headers,streamUrl:i,stream:t.data.stream})}),t),t.c_.addEventListener(r.ERROR,(function(i){t.publish(h.CMD_ERROR,t,i)}),t),t.c_.load(i)},a.prototype.cancel=function(){}},558:function(t,i,n){"use strict";t.exports=c;var e=n(2990),r=n(4939).Events,s=n(7650).HLSEvent,o=n(2701),u=o.Command,h=o.CmdNames,a=o.CmdEvents;function c(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=h.CMD_SUBTITLE_SEGMENT_LOAD,n.l_=t.subtitleStream,n.__controller=t.controller,n.j_=t.segment||null,n.dp={},n.J_()}e.inherits(c,u),c.prototype.destroy=function(){var t=this;t.c_.destroy(),t.__controller.removeEventListeners(t.dp),u.prototype.destroy.call(t)},c.prototype.execute=function(){var t=this;t.j_&&t.c_&&t.c_.load(t.j_.url)},c.prototype.cancel=function(){},c.prototype.J_=function(){var t=this;t.c_=t.__controller.services.getNewLoader();t.c_.addEventListener(r.COMPLETE,(function(i){t.E_(i)}),t),t.c_.addEventListener(r.ERROR,(function(i){t.publish(a.CMD_ERROR,t,i)}),t)},c.prototype.E_=function(t){var i=this;if(i.j_){i.j_.data=t.data;var n=i.j_.pcr();null!=n?i.K_():i.__controller.addEventListener(s.PCR_AVAILABLE,i.K_,i)}},c.prototype.K_=function(){var t=this;t.j_.parseSegment(),t.publish(a.CMD_COMPLETE,t,{data:t.j_.toObject(),url:t.j_.url})}},6244:function(t,i,n){"use strict";t.exports=s;var e=n(3878),r=n(7572);function s(){var t=this;t._node=t.tE.node,t.iE=t.tE.mediaSource,t.nE=null,t.eE=[],t.rE=!1,t.n_=t.tE.appModel,t.sE=t.n_.config.pastBufferLengthLimit}s.prototype.destroy=function(){this.oE(),this.eE=[]},s.prototype.setSwitchManager=function(t){this.nE=t},s.prototype.process=function(){var t=this;t.uE()&&"open"===t.iE.readyState&&t.iE.endOfStream()},s.prototype.onError=function(){this.rE=!0},s.prototype.onSeeking=function(t,i){t&&this.oE(),i&&this.hE()},s.prototype.aE=function(t){for(var i=this,n=0;n<i.eE.length;n++)if(t===i.eE[n].type)return i.eE[n];return null},s.prototype.setMinimumBufferTime=function(t){this.eE.forEach((function(i){i.setMinBufferTime(t)}))},s.prototype.createSourceBuffer=function(t,i,n){var s=this;if(!s.iE||s.rE)return null;var o=s.aE(t);if(!o)if(s.tE.isMimetypeSupported(i)){o=s.tE.create(e,s.iE,t,i),s.eE.push(o);var u=s.n_.config.minBufferTime,h=isNaN(n)?s.n_.live?u.live:u.vod:n;s.setMinimumBufferTime(h)}else{var a=new r.Error(r.ERR_MIMETYPE_NOT_SUPPORTED);s.tE.notifyError(a)}return o},s.prototype.cE=function(){var t=this;if(t.iE&&!t.rE)for(;t.eE.length>0;){t.eE.shift().destroy()}},s.prototype.hE=function(){var t=this,i=[];t.iE&&!t.rE&&"open"===t.iE.readyState&&(t.eE.forEach((function(t){i.push({type:t.type,mimeType:t.mimeType})})),t.cE(),i.forEach((function(i){t.createSourceBuffer(i.type,i.mimeType,NaN)})))},s.prototype.oE=function(){var t=this;t.iE&&!t.rE&&t.eE.forEach((function(t){t.abort()}))},s.prototype.clear=function(t,i){var n=this;if(n.iE&&!n.rE)if(t){if(!(t&&t.end-t.start<10)&&i){i.clearBuffer(t.start,t.end,(function(t){}))}}else n.eE.forEach((function(t){t.clearAll()}))},s.prototype.clearSrcBuffer=function(t,i){var n=this.aE(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.rE&&t.data&&t.data.length&&e.appendBuffer(t.data,t.startTime,t.endTime,t.onlyMetadata,(function(t,e){n.fE(t,e),i(t,e)}))},s.prototype.endOfStream=function(t){this.eE.forEach((function(i){i.setEndOfStream(t)}))},s.prototype.uE=function(){if(!this.eE.length)return!1;var t=!0;return this.eE.forEach((function(i){t=t&&"closed"===i.state})),t},s.prototype.getPendingBufferLength=function(){var t=0;return this.eE.forEach((function(i){var n=i.getTotalPendingBufferLength();t<n&&(t=n)})),t},s.prototype.getBufferedAndPending=function(){var t={};return this.eE.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.eE.forEach((function(t){t.ready=!1}))},s.prototype.areSrcBuffersReady=function(){for(var t=0;t<this.eE.length;t++)if(!this.eE[t].ready)return!1;return!0},s.prototype.fE=function(t,i){var n=this;i&&(n.clear(n.lE(i),i),n.clear(n.vE(i),i))},s.prototype.lE=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.n_.live?i.sE.live:i.sE.vod;return e&&e.length&&(r=e.start(0),s=Math.max(n-o,0)),{start:r,end:s}},s.prototype.vE=function(t){var i=this,n=i._node.currentTime,e=null;try{e=t.buffer.buffered}catch(t){e=null}var r=i.n_.live?i.sE.live:i.sE.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}},4460:function(t,i,n){"use strict";t.exports=O;var e=n(5557),r=e.MessageIds,s=e.MessageTypes,o=n(2990),u=n(6837),h=n(902),a=n(6769),c=n(2053),f=n(6244),l=n(7650).HLSEvent,v=n(9719),d=n(3789),p=n(729),m=n(2350).SynchTypes,b=n(8630).W,y=n(4998).aU,g=n(4998).sS,w="synchBegin",_="synchMetadataReady",E="synchDone";function O(t){var i=this;i.dE="Controller",i.pE=o.guid(),i._node=i.tE.node,i.iE=i.tE.mediaSource,i.n_=i.tE.appModel,i.mediaLoaded=!1,i.mE=!1,i.bE=null,i.yE=t?t.sessionId:null,i.gE=t?t.contentId:null,i.wE=new c(i._node,i.tE.mediaSource,i),i._E=i.tE.create(f),i.EE=i.tE.create(v),i.OE=new p,i.AE=new h(250),i.AE.addEventListener(i.SE,i),i.n_.shouldSynchronizePlayers()&&(i.TE=new y(i._node,i.jE()),i.IE()),i.ME=[];var n={userAgent:i.n_.userAgent,metadata:t,config:i.n_.config};if(n.config.bwHistory=i.NE(),i.RE=i.kE(n),i.RE){if(i.LE=i.DE(i.dE),i.LE)return n.config.inWorkerScope=!0,i.LE.addEventListener("message",i.CE.bind(i)),void i.PE(r.CREATE,[n]);i.n_.config.useWorker=!1}i.xE=new a(n,i.UE.bind(i)),i.RE=!1,i.VE=!1,i.BE=!1,i.FE=null,i.bE=null,i.zE=E,i.GE=null,i.HE=!1}O.prototype.destroy=function(){var t=this;t.wE.destroy(),t._E.destroy(),t.EE.destroy(),t.ME=[],t.YE&&t.YE.destroy(),t.AE&&(t.AE.destroy(),t.AE=null),t.TE&&t.TE.destroy(),t.RE&&t.LE?(t.PE(r.DESTROY),t.LE.terminate()):t.xE.destroy()},O.prototype.IE=function(){var t=this;Object.values(g).forEach((function(i){t.TE.on(i,(function(n){(n=n||{}).bufferLength=t.n_.getBufferLength();var e=i===g.SYNCH_STRATEGY_APPLIED;t.xE.setIgnoreBuffering(e),t.tE.sendEvent("stream"+i,n)}))}))},O.prototype.kE=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.qE(e)||!(i.safari||i.edge||i.ie))&&n))},O.prototype.qE=function(t){if(!t)return!1;var i=t.url,n=t.streams&&t.streams.length?this.WE(t.streams[0]):null;return o.isUplynk(i||n)},O.prototype.WE=function(t){if(!t)return null;var i=t.url;return!i&&t.host&&t.path&&(i=t.host+t.path),i},O.prototype.sendVideoEvent=function(t){var i=this;if(t)switch(t.type){case"play":i.QE();break;case"playing":i.$E();break;case"pause":i.XE();break;case"seeking":i.ZE(t);break;case"seeked":i.JE(t);break;case"ended":i.KE();break;case"error":i.tO();break;case"timeupdate":i.iO(t);break;case"resize":i.nO(t)}},O.prototype.onMediaSourceOpen=function(){var t=this;t.mediaLoaded&&(t.AE.reset(),t.AE.start(),t.ME.length&&t.eO())},O.prototype.play=function(t){var i=this;if(!i.iE||"closed"!==i.iE.readyState&&i.mediaLoaded){var n=i.n_.live?i._node.currentTime:i.n_.duration,e=t>0&&t<=n?t:null;e&&i.rO(e,m.INIT),i.sO()}else i.ME.push([i,i.play,[t]])},O.prototype.pause=function(){var t=this;!t.iE||"closed"!==t.iE.readyState&&t.mediaLoaded?t._node.pause():t.ME.push([t,t.pause])},O.prototype.preload=function(t){var i=this;!i.iE||"closed"!==i.iE.readyState&&i.mediaLoaded?i.oO("preload",[t]):i.ME.push([i,i.preload,[t]])},O.prototype.setABRMode=function(t){this.oO("setABRMode",[t])},O.prototype.setSeedStreamIndex=function(t){this.oO("setSeedStreamIndex",[t])},O.prototype.setPlaybackRate=function(t){var i=this;!i.iE||"closed"!==i.iE.readyState&&i.mediaLoaded?i._node.playbackRate=t:i.ME.push([i,i.setPlaybackRate,[t]])},O.prototype.setAudioLanguage=function(t){this.oO("setAudioLanguage",[t])},O.prototype.suspendStreaming=function(){this.oO("suspendStreaming")},O.prototype.resumeStreaming=function(){this.oO("resumeStreaming")},O.prototype.getSegInfo=function(){var t=this,i={mode:"sync",segInfo:null,bufferLen:null,sessionId:t.yE};return t.RE&&t.LE?(i.mode="async",t.PE(r.CALL_METHOD,null,"getSegInfo")):i.segInfo=t.xE.getSegInfo(),i.bufferLen=t.n_.getBufferLength(),i},O.prototype.getSyncOffset=function(){return this.TE?this.TE.getSyncOffset():NaN},O.prototype.startSync=function(){this.TE&&this.TE.startSync()},O.prototype.stopSync=function(){this.TE&&this.TE.stopSync()},O.prototype.getSyncState=function(){return this.TE?this.TE.getSyncState():-1},O.prototype.QE=function(){var t=this;if(t.n_.setDimensions(),!t.iE||"closed"!==t.iE.readyState&&t.mediaLoaded){var i=t.bE;t.FE&&(i=t.FE,t.FE=null),t.VE=!1,t.oO("onPlay",[i]),t.EE.onPlay()}else t.ME.push([t,t.QE])},O.prototype.$E=function(){this.oO("onPlaying"),this.EE.onPlaying()},O.prototype.XE=function(){var t=this;t.VE=!0,t.oO("onPause"),t.EE.onPause()},O.prototype.ZE=function(t){var i=this,n=t.target.currentTime,e=!i.n_.live,r=!1,s=i.n_.userAgent;s&&s.safariDesktop&&(r=!i.n_.live||i.HE),i._E.onSeeking(e,r),i.HE=!1,i.oO("onSeeking",[n])},O.prototype.JE=function(t){var i=t.target.currentTime;this.oO("onSeeked",[i])},O.prototype.KE=function(){this.AE.stop(),this.oO("onComplete")},O.prototype.tO=function(){var t=this,i=t._node.error?t._node.error.code:null;t.oO("onError",[i]),t._E.onError()},O.prototype.nO=function(){this.n_.setDimensions()},O.prototype.iO=function(){this.uO("onTimeUpdate")},O.prototype.SE=function(){this.mediaLoaded&&this.uO("onUpdate")},O.prototype.uO=function(t){var i=this;i._E.process();var n={currentTime:i._node.currentTime,bufferedAndPending:i._E.getBufferedAndPending(),bufferLength:i.n_.getBufferLength(),pendingBufferLength:i._E.getPendingBufferLength(),bufferedRanges:i.n_.getBufferedDto(),dimensions:i.n_.getDimensions(),pixelRatio:i.n_.getPixelRatio(),frameStats:i.EE.getFpsStats()};i.oO(t,[n])},O.prototype.hO=function(){var t=this;t.mediaLoaded=!0,t.iE&&"closed"===t.iE.readyState||(t.AE.start(),t.ME.length&&t.eO())},O.prototype.rO=function(t,i){var n=this;n.bE=t,n.zE=w,n.GE=i,n.n_.live&&(n._E.resetReadyState(),n._E.clear())},O.prototype.aO=function(t){var i=this;i.bE=null,i.zE=E,i.GE=null,i.n_.live&&i.oO("onSynchComplete",[t])},O.prototype.eO=function(){var t=this.ME;this.ME=[],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)}))},O.prototype.oO=function(t,i){var n=this;n.RE&&n.LE?n.PE(r.CALL_METHOD,i,t):n.xE[t].apply(n.xE,i)},O.prototype.DE=function(){return null},O.prototype.CE=function(t){var i=this;if(t){var n=t.data?new d(t.data):t;if(n&&n.instanceId===i.pE){var e=n.getParam("media");if(e&&(i.n_.update(e),i.TE&&i.cO(e)),n.type!==s.EVENT)switch(n.id){case r.CREATE_SRC_BUFFER:i.fO(n.getParam("tracks"));break;case r.APPEND_SRC_BUFFER:i.lO(n.getParam("tracks"));break;case r.SAVE_AVG_BANDWIDTH:i.vO(n.getParam("avgBwInfo"));break;case r.END_OF_STREAM:n.args&&n.args.length&&(i._E.endOfStream(n.getParam("endOfStream")),i.tE.sendEvent(l.CONTENT_LOAD_FINISHED,n.args[0]));break;case r.PAUSE_BEFORE_STREAM_CHANGE:i.dO(n.getParam("streamType"));break;case r.PLAY_AFTER_STREAM_CHANGE:i.pO();break;case r.DRM_INIT:i.YE||(i.YE=new b(i.xE,i._node,i.tE));for(var o=0;o<i.n_.drmInfo.length;o++)i.YE.addDrmItem(i.n_.drmInfo[o]);break;case r.DRM_LICENSE_INFO:i.YE&&i.YE.addDrmItem(n.getParam("drmItem"));break;case r.SKIP_GAP:i._node.currentTime=n.getParam("seekPosition")}else i.mO(n.id,n.getParam("eventData"))}}},O.prototype.UE=function(t){t.instanceId=this.pE,this.CE(t)},O.prototype.cO=function(t){var i=this;if(i.TE){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.TE.addSegmentInfo({startTime:t.startTime,endTime:t.startTime+t.duration,pdt:t.programDateTime,seqNum:e})})),i.TE.updateDateRanges(n.dateRanges)}},O.prototype.mO=function(t,i){var n=this;if(t){switch(t){case l.MEDIA_LOADED:n.hO();break;case l.WAITING:var e=i?i.minBufferTime:.1;n._E.setMinimumBufferTime(e),n.EE.updateBufferingInfo(i);break;case l.LIVE_SYNCH:var r=i?i.synchPosition:null,s=i?i.synchType:m.INIT;n.rO(r,s);break;case l.SEG_INFO_METRICS_AVAILABLE:i={segInfo:i,bufferLen:n.n_.getBufferLength(),sessionId:n.yE};break;case l.VTT_SEGMENT_LOADED:i&&(i.sessionId=n.yE);break;case l.MEDIA_METADATA_LOADED:i=n.n_.streams;break;case l.ERROR:return i.error=new Error(i.message,i.code),void n.tE.notifyError(i)}n.tE.sendEvent(t,i)}},O.prototype.fO=function(t){var i=this;t&&(!i.iE||"closed"!==i.iE.readyState&&i.mediaLoaded?(i.bO(),t.forEach((function(t){i._E.createSourceBuffer(t.type,t.mimeType,t.minBufferTime)}))):i.ME.push([i,i.fO,[t]]))},O.prototype.bO=function(){var t=this;t.iE&&!t.iE.duration&&t.n_.duration>0&&(t.iE.duration=t.n_.duration)},O.prototype.lO=function(t){var i=this;t&&(t.forEach((function(t){i._E.appendBuffer(t,(function(t,n){i.fE(t,n)}))})),i.n_.preloading&&!i.mE&&(i.tE.sendEvent(l.PRELOAD_PROGRESS),i.mE=!0))},O.prototype.fE=function(){var t=this;if(!t.n_.live&&t.zE===w){if(!t._E.areSrcBuffersReady())return;return t._E.onSeeking(!0),t.zE=_,void t.oO("onSynchMetadataReady",[t.bE])}if(t.bE&&t._E.areSrcBuffersReady()){var i=t.yO(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.n_.TIMESTAMP_COMPARE_EPSILON;if(t.bE+s>=e&&t.bE<=r){for(var o=t.bE,u=0;u<n.length;u++)if(!(o>n.end(u))&&o<n.start(u)){o=n.start(u);break}var h=t.n_.userAgent;t.HE=h&&h.safariDesktop&&t.n_.live&&t.GE===m.TIME_GAP;try{t._node.currentTime=o}catch(t){}t.aO(o)}}}},O.prototype.PE=function(t,i,n){var e=this;if(e.LE&&t){var r={type:s.MESSAGE,id:t,moduleName:e.dE,instanceId:e.pE,funcName:n,args:i,timestamp:Date.now()};e.LE.postMessage(r)}},O.prototype.NE=function(){var t=this.OE.readProperty("avgBW"),i=t?t.avgBWtimestamp:null;if((i?Date.now()-parseInt(i):Number.MAX_VALUE)<1e3*this.n_.config.bwHistoryMaxAge&&t){var n=t.avgBW;return n?parseInt(n):0}return 0},O.prototype.vO=function(t){t&&this.OE&&this.OE.writeProperty("avgBW",t)},O.prototype.pO=function(){var t=this;t.BE&&(t.sO(),t.BE=!1,t.tE.sendEvent(l.WAITING,{value:!1,bufferInit:!1}))},O.prototype.dO=function(t){var i=this,n=i._node.currentTime,e=i.n_.live;e&&"audio"===t?i._E.clearSrcBuffer(t):i._E.clear(),i.VE||(i.tE.sendEvent(l.WAITING,{value:!0,bufferInit:!1}),i._node.pause(),i.BE=!0),e?i.FE=n:i._node.currentTime=n},O.prototype.sO=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.tE.sendEvent(l.PLAY_BLOCKED)})),i}},O.prototype.getCurrentDate=function(){return this.n_.getCurrentDate()},O.prototype.yO=function(t){var i=this.n_.userAgent;return this.n_.live&&i.edge&&i.edge>=17&&i.edge<18?t.buffered:t.seekable},O.prototype.jE=function(){var t=this.n_.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)},O.prototype.clearBuffer=function(){this._E.clear()}},867: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}},3878:function(t){"use strict";t.exports=e;var i="append",n="remove";function e(t,i,n){var e=this;e._node=e.tE.node,e.gO=!1,e.type=i,e.mimeType=n,e.iE=t,e.buffer=t.addSourceBuffer(n),e.wO=[],e._O=[],e.EO=[],e.OO=!1,e.AO=.1,e.ready=!1,e.TIMESTAMP_COMPARE_EPSILON=.065,e.GOP_LENGTH=2,e.SO=e.TO.bind(e),e.buffer.addEventListener("updateend",e.SO),e.jO=function(){e.abort()},e.buffer.addEventListener("error",e.jO),e.state="open"}e.prototype.destroy=function(){var t=this;t.remove(),t.wO=[],t._O=[],t.EO=[],t.state="closed"},e.prototype.remove=function(){var t=this;t.gO||(t.gO=!0,t.abort(),t.buffer.removeEventListener("updateend",t.SO),t.buffer.removeEventListener("error",t.jO),"closed"!==t.iE.readyState&&t.iE.removeSourceBuffer(t.buffer))},e.prototype.setMinBufferTime=function(t){this.AO=Math.max(.1,t)},e.prototype.appendBuffer=function(t,n,e,r,s){var o=this;if(!o.gO){var u={type:i,cb:s,buffer:t,startTime:n,endTime:e,time:e-n,onlyMetadata:r||!1};o.wO.push(u),o.IO()}},e.prototype.clearBuffer=function(t,i,e){var r=this;if(r.gO||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._O.push(s),r.IO()},e.prototype.abort=function(){var t=this;if("open"===t.iE.readyState&&!t.gO){t.wO=[],t._O=[],t.EO=[];try{t.buffer.abort()}catch(t){}}},e.prototype.clearAll=function(){var t=this;if("closed"!==t.iE.readyState&&!t.gO){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.OO=t,i.gO||(t?(i.MO(),i.IO()):i.state=i.wO.length?i.state:"empty")},e.prototype.MO=function(){var t=this;t.OO&&"empty"===t.state&&!t.EO.length&&(t.state="closed")},e.prototype.TO=function(){var t=this;if(!t.gO){if(t.ready=!0,t.EO.length)t.EO.shift().cb(null,t);t.wO.length||(t.state="empty"),t.IO(),t.MO()}},e.prototype.IO=function(){for(var t=this;t._O.length;){if(t.buffer.updating)return;t.NO(t._O.shift())}for(;t.wO.length;){if(t.buffer.updating)return;var i=t.getBufferLength()+t.getTotalPendingBufferLength(),n=t.wO.length&&t.wO[0]&&t.wO[0].onlyMetadata;if(!t.OO&&i<t.AO&&!n)return;t.NO(t.wO.shift())}},e.prototype.NO=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.EO.push(t),e.state="updating"}catch(n){if("QuotaExceededError"===n.name)e.RO()&&t.type===i&&e.wO.unshift(t)}},e.prototype.RO=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.wO.forEach((function(i){i&&i.time&&(t+=i.time)})),t},e.prototype.getBufferLength=function(){var t,i=this,n=i.tE.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}},2053:function(t){"use strict";function i(t,i,n){var e=this;t&&i&&n&&(e._node=t,e.kO=n,e.iE=i,e.LO())}t.exports=i,i.prototype.destroy=function(){this.DO()},i.prototype.LO=function(){var t=this;t.wE=t.CO.bind(t),t.PO=["play","playing","pause","seeking","seeked","ended","error","timeupdate"],t.PO.forEach((function(i){t._node.addEventListener(i,t.wE)})),t.xO=t.UO.bind(t),t.iE.addEventListener("sourceopen",t.xO),window.addEventListener("resize",t.wE)},i.prototype.DO=function(){var t=this;t.PO.forEach((function(i){t._node.removeEventListener(i,t.wE)})),t.iE.removeEventListener("sourceopen",t.xO),window.removeEventListener("resize",t.wE)},i.prototype.CO=function(t){this.kO.sendVideoEvent(t)},i.prototype.UO=function(t){this.kO.onMediaSourceOpen(t)}},9112:function(t,i,n){"use strict";t.exports.AacStreamer=h,t.exports.AacLiveStreamer=a;var e=n(2990),r=n(2350).Streamer,s=n(7980),o=n(5557),u=n(6837);function h(t,i){this.VO(t,i)}function a(t,i){this.VO(t,i)}e.inherits(h,r),e.inherits(a,s),a.prototype.VO=h.prototype.VO=function(t,i){var n=this;n.constructor.super_.call(n,t,i),n.m_=n.constructor.super_.prototype,n.processOnlyMetadata=!1,n.lastAudioTimestamp=NaN,n.lastAudioFrameDuration=NaN,n.primary=!1,n.BO="mp4a.40.2",n.FO="audio",n.zO();var e=[{type:n.FO,mimeType:n.FO+'/mp4; codecs="'+n.BO+'"',minBufferTime:n.__controller.getMinimumBufferTime()}];n.__controller.sendMessage(o.MessageIds.CREATE_SRC_BUFFER,[e],["tracks"]),n.GO=n.STATES.INITIALIZED},a.prototype.destroy=h.prototype.destroy=function(){this.m_.destroy.call(this)},a.prototype.onSeeking=h.prototype.onSeeking=function(t){var i=this;i.lastAudioTimestamp=NaN,i.m_.onSeeking.call(i,t)},a.prototype.onSwitchBegin=h.prototype.onSwitchBegin=function(){var t=this;t.zO(),t.m_.onSwitchBegin.call(t)},a.prototype.onManualStreamChange=h.prototype.onManualStreamChange=function(){var t=this;t.zO(),t.lastAudioTimestamp=NaN,t.m_.onManualStreamChange.call(t)},a.prototype.HO=h.prototype.HO=function(){this.zO()},a.prototype.YO=h.prototype.YO=function(t){var i=this;if(!i.isActive())return null;var n=i.qO;return{segment:n.getSegmentfromSeqNum(t),stream:n,state:{mp4:i.WO,lastChunkEndTs:{audio:i.lastAudioTimestamp,video:NaN},lastFrameDuration:{audio:i.lastAudioFrameDuration,video:NaN}},onlyMetadata:i.processOnlyMetadata}},a.prototype.onSegmentLoadProgress=h.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.m_.onSegmentLoadProgress.call(e,t,i,n)}},a.prototype.zO=h.prototype.zO=function(){this.WO={video:{shouldInit:!0,seqNum:0},audio:{shouldInit:!0,seqNum:0}}},a.prototype.QO=h.prototype.QO=function(t,i){},a.prototype.$O=function(t){var i=this;i.lastAudioTimestamp=NaN,i.isActive()&&i.m_.$O.call(i,t)}},39:function(t,i,n){"use strict";t.exports=s;var e=n(7650).HLSEvent,r=n(5557);function s(){var t=this;t.n_=t.__controller.model,t.XO=!1,t.rE=!1,t.ZO=NaN,t.JO=NaN,t.KO={},t.VE=!0,t._A=-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.tS=!0,t.iS=!1,t.nS()}s.prototype.onPlayRequested=function(){this.eS()},s.prototype.destroy=function(){},s.prototype.checkBuffering=function(t){var i=this,n=i.n_.bufferLength,e=i.n_.currentTime,r=i.n_.duration;if(!(i.VE||isFinite(r)&&e+.05>r)){var s=i.rS();!t&&s<i.MIN_TIME_TO_BUFFER_CHECK||(!(n<=.02||i.oS===e&&n<i.MIN_BUFFER_TO_PLAY)||i.VE||i.n_.preloading||i.XO?!isNaN(i.ZO)&&e>i.ZO+this.BUFFER_REPORT_THRESHOLD/1e3?i.uS():!i.VE&&i.oS===e&&i.n_.getTotalBufferLength()>i.MIN_BUFFER_TO_PLAY&&i.hS():i.eS(),i.oS=e,i.aS=Date.now())}},s.prototype.onPlaying=function(){this.VE=!1},s.prototype.onPause=function(){var t=this;t.VE=!0,t.XO&&(t.KO.bufferInit=!0,t.uS()),t.aS=null},s.prototype.onSeeking=function(){this.iS=!0},s.prototype.onSeeked=function(){this.iS=!1},s.prototype.onTimeUpdate=function(){this.XO&&this.checkBuffering(!0)},s.prototype.onVideoSync=function(t){this.oS=t},s.prototype.onError=function(){this.XO&&this.uS()},s.prototype.onComplete=function(){var t=this;t.XO&&t.uS(),t.nS()},s.prototype.setIgnoreBuffering=function(t){this.tS=t},s.prototype.hS=function(){var t=this;if(!(t.n_.bufferedRanges.length<2)){var i=t.n_.TIMESTAMP_COMPARE_EPSILON,n=t.n_.currentTime;t.n_.userAgent&&t.n_.userAgent.chrome&&(n-=3);for(var s=t.n_.bufferedRanges.ranges,o=0;o<s.length-1;o++){var u=s[o],h=s[o+1];if(h.start-u.end>t.n_.config.skipGapLimit)t.n_.currentTime!==t.JO&&(t.__controller.sendEvent(e.BUFFER_GAP_DETECTED,h.start-u.end),t.JO=t.n_.currentTime);else{var a=u.end-i-(t.n_.userAgent.chrome?t.CHROME_BUFFER_GAP_EPSILON:0),c=h.start;n>a&&n<c&&t.__controller.sendMessage(r.MessageIds.SKIP_GAP,[h.start],["seekPosition"])}}}},s.prototype.eS=function(){var t=this;if(!t.XO){t.XO=!0;var i=t.getMinimumBufferTime();t.cS(),t.ZO=t.n_.currentTime,t.iS&&(t.tS=!0),t.KO={value:t.XO,bufferInit:t.tS,minBufferTime:i},t.__controller.sendEvent(e.WAITING,t.KO)}},s.prototype.uS=function(){var t=this;t.XO&&(t.XO=!1,t.ZO=NaN,t.KO={value:!1,waitTime:t.fS(),bufferInit:t.tS,minBufferTime:.1},t.__controller.sendEvent(e.WAITING,t.KO),t.KO={},t.tS=!1)},s.prototype.getMinimumBufferTime=function(){var t=this,i=t.__controller.services.bandwidthEstimator.instantaneousBandwidth,n=t.n_.getCurrentLoadingStream(),e=n?n.bitrate/1e6:0,r=t.n_.config.minBufferTime;return r=t.n_.live?r.live:r.vod,t.n_.config.variableMinBuffer&&e&&!isNaN(i)?t.lS(i/e,r):r},s.prototype.lS=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.rS=function(){var t=this,i=Date.now();return t.aS=t.aS||i,i-t.aS},s.prototype.cS=function(){var t=this,i=t.rS(),n=t.vS();t.dS=Date.now()-Math.max(i-n,0)},s.prototype.fS=function(){var t=this,i=t.vS(),n=Math.max(Date.now()-t.dS-i,0);return t.KO.bufferInit||n<t.BUFFER_REPORT_THRESHOLD?0:n},s.prototype.vS=function(){var t=this,i=0;return t.oS&&(i=1e3*(t.n_.currentTime-t.oS).toFixed(3)),i},s.prototype.nS=function(){this.aS=null,this.oS=null},s.prototype.isBuffering=function(){return this.XO}},6769:function(t,i,n){"use strict";t.exports=_;var e=n(7650).HLSEvent,r=n(7572),s=n(6972),o=s.StreamingController,u=s.Events,h=n(39),a=n(574).MetadataTypes,c=n(2701).CmdNames,f=n(258),l=n(902),v=n(867),d=n(2999),p=n(2990),m=n(574).Model,b=n(5212),y=n(5557),g=n(3789),w=n(9451).userAgent;function _(t,i){var n=this;d.call(n,n.constructor.name),n.pS=t,n.mS=i,n.model=n.create(m,t),n.services=n.create(b),n.bS=n.services.metadataParser,n.yS=n.create(f),n.gS=n.create(o),n.wS=n.create(h),n.GO=v.INITIAL,n.dp={},n._S=n.pS.config.inWorkerScope,n.LO(),n.iS=!1,n.ES=!1,n.AS=new l(250),n.AS.addEventListener(n.SS,n),n.initialize()}p.inherits(_,d),_.prototype.create=function(){var t=this,i=Array.prototype.slice.call(arguments),n=i.shift(),e=Object.create(n.prototype);return e.__controller=t,n.apply(e,i),e},_.prototype.destroy=function(){var t=this;t.gS&&(t.gS.destroy(),t.gS=null),t.wS&&(t.wS.destroy(),t.wS=null),t.yS&&(t.yS.destroy(),t.yS=null),t.services&&(t.services.destroy(),t.services=null),t.AS&&(t.AS.destroy(),t.AS=null),t.GO=v.INITIAL,t.removeEventListeners(t.dp),d.prototype.destroy.call(t)},_.prototype.initialize=function(){this.TS()},_.prototype.getSegInfo=function(){var t=this;if(!t.gS)return null;var i=t.gS.getMetrics();return t._S&&t.sendEvent(e.SEG_INFO_METRICS_AVAILABLE,i),i},_.prototype.sendEvent=function(t,i){var n=this;n.publish(t,i);var e=n.create(g,{type:y.MessageTypes.EVENT,id:t,args:[i],argNames:["eventData"]});n.jS(e)},_.prototype.sendMessage=function(t,i,n,e){var r=this.create(g,{type:y.MessageTypes.MESSAGE,id:t,args:i,argNames:n});this.jS(r,e)},_.prototype.notifyError=function(t){var i=this;i.error=t;var n=i.GO;n!==v.ERROR&&i.IS(v.ERROR),n!==v.PAUSED&&i.sendEvent(e.ERROR,"HlsError"===i.error.constructor.name?i.error.dto():i.error)},_.prototype.jS=function(t,i){t&&this.mS&&(t.addMedia(),this.mS(t,i))},_.prototype.LO=function(){var t=this;t.gS.addEventListener(u.STREAM_METADATA_LOADED,t.MS,t),t.gS.addEventListener(u.STREAM_METADATA_LOAD_ERROR,t.NS,t),t.gS.addEventListener(u.PRELOAD_COMPLETE,t.RS,t),t.gS.addEventListener(u.SEG_LOAD_PROGRESS,t.kS,t)},_.prototype.LS=function(t){},_.prototype.IS=function(t,i){var n=this;n.LS(t),n.GO=t,n.sendEvent(e.STATE_CHANGED,t),n.DS(i)},_.prototype.getState=function(){return this.GO},_.prototype.DS=function(t){var i=this;switch(i.GO){case v.MEDIA_METADATA_LOADING:i.CS();break;case v.MEDIA_METADATA_LOADED:if(i.sendEvent(e.MEDIA_METADATA_LOADED),i.model.isDash()){i.sendMessage(y.MessageIds.DRM_INIT),i.IS(v.MEDIA_LOADED);break}i.IS(v.STREAM_METADATA_LOADING);break;case v.STREAM_METADATA_LOADING:i.gS.loadStream(i.model.getCurrentLoadingStream());break;case v.STREAM_METADATA_LOADED:i.IS(v.MEDIA_LOADED);break;case v.MEDIA_LOADED:if(w.android&&w.chrome&&i.model.drmInfo&&i.model.drmInfo.length)return;i.PS();break;case v.PRELOADING:i.gS.onPreloadBegin(),i.sendEvent(e.PRELOAD_START),i.AS.start();break;case v.PLAY_REQUESTED:i.AS.start(),i.gS.onPlay(t),i.ES||(i.wS.onPlayRequested(),i.ES=!0);break;case v.PLAYING:i.gS.onPlaying();break;case v.PLAY_COMPLETE:i.AS.stop(),i.gS.onComplete(),i.wS.onComplete();break;case v.ERROR:i.AS.stop(),i.gS.onError(),i.yS.removeAllCommands(),i.wS.onError()}},_.prototype.TS=function(){var t=this,i=t.model.metadata;if(t.GO===v.INITIAL)return i.type===a.STRUCTURED?(t.model.build(t.bS.parse(i)),void(i.hasStreamMetadata?i.hasSubtitleMetadata?t.gS.loadAllSubtitleStreams():t.IS(v.MEDIA_LOADED):i.hasMediaMetadata&&t.IS(v.MEDIA_METADATA_LOADED))):void t.IS(v.MEDIA_METADATA_LOADING)},_.prototype.SS=function(){var t=this;t.GO<v.MEDIA_LOADED||(t.wS.checkBuffering(),t.gS.process())},_.prototype.onPlay=function(t){var i=this;i.GO===v.ERROR&&i.error&&i.notifyError(i.error),i.GO<v.MEDIA_LOADED||(i.GO===v.PRELOADING&&(i.gS.onPreloadEnd(),this.sendEvent(e.PRELOAD_COMPLETE)),i.IS(v.PLAY_REQUESTED,t))},_.prototype.onPlaying=function(){var t=this;t.GO<v.MEDIA_LOADED||(t.IS(v.PLAYING),t.wS.onPlaying())},_.prototype.onPause=function(){var t=this;t.GO<v.MEDIA_LOADED||(t.gS.onPause(),t.wS.onPause(),t.IS(v.PAUSED))},_.prototype.onSeeking=function(t){var i=this;i.GO<v.MEDIA_LOADED||(i.iS=!0,i.gS.onSeeking(t),i.wS.onSeeking())},_.prototype.onSeeked=function(t){var i=this;i.GO<v.MEDIA_LOADED||(i.iS=!1,i.gS.onSeeked(t),i.wS.onSeeked())},_.prototype.onComplete=function(){this.GO<v.MEDIA_LOADED||this.IS(v.PLAY_COMPLETE)},_.prototype.onError=function(t){this.IS(v.ERROR)},_.prototype.onTimeUpdate=function(t){var i=this;i.xS(t),i.wS.onTimeUpdate(),i.gS.onTimeUpdate(i.model.currentTime)},_.prototype.onUpdate=function(t){this.xS(t),this.wS.onTimeUpdate()},_.prototype.onSynchComplete=function(t){this.gS.onSynchComplete(),this.wS.onVideoSync(t)},_.prototype.onSynchMetadataReady=function(t){this.gS.onSynchMetadataReady(t)},_.prototype.xS=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))},_.prototype.CS=function(){var t=this,i=t.model.getMediaUrl(),n=i&&-1!==i.indexOf(".mpd"),e={url:i,withResponseHeaders:n};t.yS.executeCommand(c.CMD_MEDIA_LOAD,e,t)},_.prototype.onMediaLoadComplete=function(t,i){var n=this;if(t)if(i){var e={rawData:i.data,headers:i.headers,type:a.RAW,url:t.data?t.data.url:"",cdn:n.model.getMediaCdn()};n.model.build(n.bS.parse(e)),n.yS.removeCommand(t),n.IS(v.MEDIA_METADATA_LOADED)}else n.yS.removeCommand(t)},_.prototype.onMediaLoadError=function(t,i){var n=this;t&&n.yS.removeCommand(t),i&&1===i.code&&(n.IS(v.ERROR),n.notifyError(new r.Error(r.ERR_PLAYLIST_LOAD)))},_.prototype.MS=function(){this.GO<v.MEDIA_LOADED&&this.IS(v.STREAM_METADATA_LOADED)},_.prototype.NS=function(){this.IS(v.ERROR),this.notifyError(new r.Error(r.ERR_PLAYLIST_LOAD))},_.prototype.RS=function(){var t=this;t.GO===v.PRELOADING&&(t.IS(v.MEDIA_LOADED),t.sendEvent(e.PRELOAD_COMPLETE)),t.AS.reset()},_.prototype.kS=function(){this.wS.isBuffering()&&this.sendEvent(e.BUFFER_GROWTH_DETECTED)},_.prototype.US=function(t){for(var i=Object.keys(v),n=0;n<i.length;n++)if(t===v[i[n]])return i[n]},_.prototype.preload=function(t){var i=this;t&&(i.model.config.preloadBufferLimit=t,i.model.bufferLength+i.model.pendingBufferLength<t&&i.GO===v.MEDIA_LOADED&&i.IS(v.PRELOADING))},_.prototype.setABRMode=function(t){this.GO<v.MEDIA_LOADED||this.gS.setABRMode(t)},_.prototype.setSeedStreamIndex=function(t){this.gS.setSeedStreamIndex(t)},_.prototype.setAudioLanguage=function(t){this.GO<v.MEDIA_LOADED||this.gS.setAudioLanguage(t)},_.prototype.setIgnoreBuffering=function(t){this.wS.setIgnoreBuffering(t)},_.prototype.getMinimumBufferTime=function(){return this.wS.getMinimumBufferTime()},_.prototype.suspendStreaming=function(){this.AS.stop(),this.gS.suspendStreaming()},_.prototype.resumeStreaming=function(){var t=this;t.GO!==v.PRELOADING&&t.GO!==v.PLAY_REQUESTED&&t.GO!==v.PLAYING&&t.GO!==v.PAUSED||(t.gS.resumeStreaming(),t.AS.start())},_.prototype.PS=function(){var t=this;t.gS.isInitialized()||(t.gS.init(),t.sendEvent(e.MEDIA_LOADED),!t.model.live&&t.model.bufferLength+t.model.pendingBufferLength<t.model.config.preloadBufferLimit&&t.IS(v.PRELOADING))},_.prototype.onGenerateRequestComplete=function(){this.PS()}},5902:function(t,i,n){"use strict";t.exports.Fmp4Streamer=c,t.exports.Fmp4LiveStreamer=f;var e=n(2990),r=n(7980),s=n(2350).Streamer,o=n(2701).CmdNames,u=n(2503).StreamTypes,h=n(5557),a=n(6837);function c(t,i){var n=this;s.call(n,t,i),n.m_=n.constructor.super_.prototype,n.VS=null,n.s_(t)}function f(t,i){var n=this;r.call(n,t,i),n.m_=n.constructor.super_.prototype,n.VS=null,n.s_(t),n.SEGMENT_OFFSET=7}e.inherits(c,s),e.inherits(f,r),c.prototype.destroy=function(){s.prototype.destroy.call(this)},f.prototype.destroy=function(){r.prototype.destroy.call(this)},f.prototype.s_=c.prototype.s_=function(t){var i=this;i.BS(t);var n=[{type:i.FO,mimeType:i.FO+'/mp4; codecs="'+i.BO+'"',minBufferTime:i.__controller.getMinimumBufferTime()}];i.__controller.sendMessage(h.MessageIds.CREATE_SRC_BUFFER,[n],["tracks"])},f.prototype.BS=c.prototype.BS=function(t){var i=this;t.type===u.AUDIO?(i.BO=i.n_.userAgent.android?"mp4a.40.2":t.audioCodec||"mp4a.40.2",i.FO="audio"):(i.BO=t.videoCodec||"avc1.640021",i.FO="video")},f.prototype.setCurrentStream=c.prototype.setCurrentStream=function(t){var i=this;t&&i.qO&&!t.equals(i.qO)&&(i.qO=t,i.GO===i.STATES.LOADING&&i.abortCurrentSegment(i.FS),i.isStreamReady()||(i.GO=i.STATES.NONE))},f.prototype.zS=c.prototype.zS=function(t,i){var n=this,e=n.qO;n.yS.removeRelatedCommands(o.CMD_MP4_INIT_SEGMENT_LOAD);var r={stream:e,initSegment:t,cached:i};n.yS.executeCommand(o.CMD_MP4_INIT_SEGMENT_LOAD,r,n)},f.prototype.GS=c.prototype.GS=function(t){var i=this;if(!(i.GO>=i.STATES.INITIALIZING)){var n=a.isNullOrUndefined(t)?i.HS(i.YS):t,e=i.qO,r=e.getSegmentfromSeqNum(n);if(r){var s=e.getInitSegment(r),o=!a.isNullOrUndefined(s);o||(s=e.addInitSegment(r.initSegment)),i.GO=i.STATES.INITIALIZING,r&&r.periodId!==i.VS&&i.qS(r.periodId),i.WS(r?r.periodId:null),i.zS(s,o)}}},f.prototype.onMp4InitSegmentLoadProgress=c.prototype.onMp4InitSegmentLoadProgress=function(t,i){var n=this,e=n.qO;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.QS(o),n.GO=n.STATES.INITIALIZED)}}},f.prototype.onMp4InitSegmentLoadComplete=c.prototype.onMp4InitSegmentLoadComplete=function(t,i){var n=this;i&&(n.GO<n.STATES.INITIALIZED&&n.qO.equals(i.stream)&&(n.GO=n.STATES.INITIALIZED),n.yS.removeCommand(t))},f.prototype.onMp4InitSegmentLoadError=c.prototype.onMp4InitSegmentLoadError=function(t,i){this.yS.removeCommand(t)},f.prototype.onSegmentLoadProgress=c.prototype.onSegmentLoadProgress=function(t,i){var n=this,e=n.qO;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.BO,type:n.FO,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.$S([o])}s.prototype.onSegmentLoadProgress.call(n,t,i)}}},f.prototype.qS=c.prototype.qS=function(t){var i=this;if(i.VS!==t){i.VS=t;var n=i.qO;"MAIN"!==i.type&&"AUDIO"!==i.type||i.XS(t,n),i.WS(t)}},f.prototype.XS=c.prototype.XS=function(t,i){for(var n=this.n_.streams,e=(this.type,0);e<n.length;e++)n[e].groupId;i.groupId},f.prototype.WS=c.prototype.WS=function(t){var i=this,n=i.qO;n&&n.drmInfo&&!a.isNullOrUndefined(t)&&n.drmInfo.forEach((function(n){n.periodId===t&&i.__controller.sendMessage(h.MessageIds.DRM_LICENSE_INFO,[n],["drmItem"])}))},f.prototype.QS=c.prototype.QS=function(t){var i=this,n=i.qO;if(t){var e=t.data;if(e){var r={data:new Uint8Array(e.buffer),codec:i.BO,type:i.FO,minBufferTime:i.__controller.getMinimumBufferTime(),onlyMetadata:!0};i.$S([r]),n.activeInitSegment=t}}},f.prototype.QO=c.prototype.QO=function(t,i){},f.prototype.HO=c.prototype.HO=function(t){var i=this,n=i.qO,e=n.getSegmentfromSeqNum(t);if(e&&e.periodId!==i.VS&&i.qS(e.periodId),i.isStreamReady()){var r=n.getInitSegment(e);if(r&&r.equals(n.activeInitSegment))return}i.GO=i.STATES.NONE,i.ZS=!0,i.JS=t,i.GS(t)},c.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0},f.prototype.$O=function(t){var i=this;i.lastChunkEndTs={audio:NaN,video:NaN},i.m_.$O.call(i,t)}},6888:function(t,i,n){"use strict";t.exports.Fmp4SubtitleStreamer=a,t.exports.Fmp4SubtitleLiveStreamer=c;var e=n(2990),r=n(5902).Fmp4Streamer,s=n(5902).Fmp4LiveStreamer,o=n(2835),u=n(6837),h=n(7650).HLSEvent;function a(t){r.call(this,t),this.s_()}function c(t){s.call(this,t),this.s_()}e.inherits(a,r),e.inherits(c,s),a.prototype.destroy=function(){var t=this;t.KS=null,t._u="",r.prototype.destroy.call(t)},c.prototype.destroy=function(){var t=this;t.KS=null,t._u="",s.prototype.destroy.call(t)},c.prototype.s_=a.prototype.s_=function(){var t=this;t.FO="subtitle",t.KS=new o,t.tT()},c.prototype.HO=a.prototype.HO=function(t){this.tT(),r.prototype.HO.call(this,t)},c.prototype.onSegmentLoadProgress=a.prototype.onSegmentLoadProgress=function(t,i){var n=this,e=n.qO;if(i&&e&&e.timescale){var r=i.stream;if((!r||e.equals(r))&&"firstByte"!==i.position){var s=n.KS.extractVttCaptions(i.data);if(s.length){var o=n.KS.parse(i.data,"trun"),u=o?o.sampleData:[];if(u.length===s.length){var h=n.KS.parse(i.data,"tfdt"),a=h?h.baseMediaDecodeTime:0,c=a=1e3*a/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.iT(t.cueTime)+a,h=null!==o?o+s:c+s;n._u+="\n"+n.nT(o)+" --\x3e "+n.nT(h),n._u+="\n"+t.cueText+"\n"}c+=s})),n._u+="\n"}}}}},c.prototype.onSegmentLoadComplete=a.prototype.onSegmentLoadComplete=function(t,i){var n=this,e=n.qO;if(e){var r=e.getSegmentfromSeqNum(n.JS);r&&n.__controller.sendEvent(h.VTT_SEGMENT_LOADED,n.eT(r))}n.m_.onSegmentLoadComplete.call(n,t,i),n._u=""},c.prototype.tT=a.prototype.tT=function(){this._u="WEBVTT\nX-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:0\n\n"},c.prototype.iT=a.prototype.iT=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},c.prototype.nT=a.prototype.nT=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,h=Math.floor(e/60);return e-=60*h,i=n(s)+":"+n(h)+":"+n(e)+"."+((o=r)<10?"00"+o:o<100?"0"+o:""+o)},c.prototype.eT=a.prototype.eT=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._u,i.offset=0,i.adjustedTime=0),i},c.prototype.QO=a.prototype.QO=function(){},c.prototype.QS=a.prototype.QS=function(t){this.qO.activeInitSegment=t},c.prototype.WS=a.prototype.WS=function(){}},8630:function(t,i,n){"use strict";t.exports.W=h;var e=n(2990),r=n(7572),s=n(258),o=n(2701).CmdNames,u=n(902);function h(t,i,n){var e=this;e.rT=o.CMD_LICENSE_LOAD,e.LICENSE_TYPE_NONE=0,e.LICENSE_TYPE_WIDEVINE=1,e.LICENSE_TYPE_PLAYREADY=2,e.sT=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.yS=t.create(s),e.oT=[],window.addEventListener("beforeunload",e.uT.bind(e)),e.hT=i,e.tE=n,e.aT=null,e.cT=null,e.fT=null,e.lT=[],e.vT=new u(250),e.vT.addEventListener(e.dT,e),e.pT=0,e.xE=t,e.mT()}h.prototype.addDrmItem=function(t){var i=this;e.isDrmItemContained(t,i.lT)||(t.status=i.LICENSE_STATUS_NEW,i.lT.push(t),i.bT(i))},h.prototype.mT=function(){var t=this;t.cT=null,navigator.requestMediaKeySystemAccess?navigator.requestMediaKeySystemAccess(t.widevineKeySystem.keySystem,t.widevineKeySystem.supportedConfig).then((function(i){t.sT=t.LICENSE_TYPE_WIDEVINE,t.tE.appModel.licenseType="widevine",i.createMediaKeys().then((function(i){t.yT(t,i)}),(function(){t.fT={type:r.ERR_DRM_INIT,message:"LicenseManager - createMediaKeys() failed for Widevine"}}))}),(function(){navigator.requestMediaKeySystemAccess(t.playreadyKeySystem.keySystem,t.playreadyKeySystem.supportedConfig).then((function(i){t.sT=t.LICENSE_TYPE_PLAYREADY,t.tE.appModel.licenseType="playready",i.createMediaKeys().then((function(i){t.yT(t,i)}),(function(){t.fT={type:r.ERR_DRM_INIT,message:"LicenseManager - createMediaKeys() failed for PlayReady"}}))}),(function(){t.fT={type:r.ERR_DRM_CONFIG,message:"LicenseManager - Your browser/system does not support the requested configurations for playing DRM protected content."}}))})):t.fT={type:r.ERR_DRM_EME_MISSING,message:"LicenseManager - Browser EME components not detected! (also check URL for HTTPS)"}},h.prototype.yT=function(t,i){t.cT=i,t.vT.start()},h.prototype.dT=function(){var t=this;t.hT.mediaKeys||(t.vT.stop(),t.hT.setMediaKeys(t.cT).then((function(){t.bT(t)}),(function(i){t.fT={type:r.ERR_DRM_INIT,message:"LicenseManager - "+i}})))},h.prototype.bT=function(t){if(null===t.cT&&null!==t.fT)return t.gT(t.fT.type,t.fT.message),void(t.fT=null);if(null!==t.cT)for(var i=0;i<t.lT.length;i++){var n=t.lT[i];n.status===t.LICENSE_STATUS_NEW&&(t.sT===t.LICENSE_TYPE_WIDEVINE?(n.widevine.initData=e.base64ToBuffer(n.widevine.pssh),n.widevine.initDataType="cenc",n.status=t.LICENSE_STATUS_LOADING,t.wT(t,n.widevine)):t.sT===t.LICENSE_TYPE_PLAYREADY&&(n.playready.initData=e.base64ToBuffer(n.playready.pssh),n.playready.initDataType="cenc",n.status=t.LICENSE_STATUS_LOADING,t.wT(t,n.playready)))}},h.prototype.wT=function(t,i){var n=t.cT.createSession("temporary");t.oT.push(n),n.addEventListener("message",(function(n){t._T(t,i,n)}),!1);var e=n.generateRequest(i.initDataType,i.initData);e.then((function(){t.pT++,t.pT===t.lT.length&&t.xE.onGenerateRequestComplete()})),e.catch((function(i){t.gT(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - keySession.generateRequest() failed: "+i)}))},h.prototype.ET=function(t,i){return t.sT===t.LICENSE_TYPE_PLAYREADY?i.prefix+"/pr":t.sT===t.LICENSE_TYPE_WIDEVINE?i.prefix+"/wv":""},h.prototype._T=function(t,i,n){var e=t.ET(t,i),r=t.OT(t,n.message);t.yS.executeCommand(t.rT,{challenge:r.challenge,headerFields:r.headerFields,url:e,drmInfo:i,event:n},t)},h.prototype.OT=function(t,i){var n,s={};if(t.sT===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.gT(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - Cannot find <Challenge> in key message");var u=o.getElementsByTagName("name"),h=o.getElementsByTagName("value");u.length!==h.length&&t.gT(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - Playready: Mismatched header <name>/<value> pair in key message");for(var a=0;a<u.length;a++)s[u[a].childNodes[0].nodeValue]=h[a].childNodes[0].nodeValue}else t.sT===t.LICENSE_TYPE_WIDEVINE&&(n=i);return{challenge:n,headerFields:s}},h.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.gT(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - call to MediaKeySession.update() failed: "+t)}));for(var o=0;o<n.lT.length;o++)n.lT[o].widevine.pssh!==s.pssh&&n.lT[o].playready.pssh!==s.pssh||(n.lT[o].status=n.LICENSE_STATUS_DONE)},h.prototype.onLicenseLoadError=function(){this.gT(r.ERR_XHR_LOAD,"LicenseManager - XHR failed")},h.prototype.gT=function(t,i){var n=new r.Error(t,i);this.tE.notifyError(n)},h.prototype.uT=function(){for(var t=this,i=0;i<t.oT.length;i++)t.oT[i].close().then((function(){}));t.oT=[]},h.prototype.destroy=function(){var t=this;t.AT=null,t.cT=null,t.lT=[],t.uT(),t.vT.destroy()}},7980:function(t,i,n){"use strict";t.exports=l;var e=n(2990),r=n(2350),s=r.Streamer,o=r.Events,u=r.SynchTypes,h=n(902),a=n(7650).HLSEvent,c=n(2503).StreamTypes,f=n(6837);function l(t,i){var n=this;s.call(n,t,i),n.dp={},n.dp[a.MEDIA_LOADED]=n.__controller.addEventListener(a.MEDIA_LOADED,n.hO,n),n.DEFAULT_STREAM_UPDATE_INTERVAL=8e3,n.MAX_STREAM_UPDATE_INTERVAL=1e4,n.PAST_BUFFER_LENGTH_LIMIT=n.n_.config.pastBufferLengthLimit.live,n.LONG_PAUSE_INTERVAL=24e3,n.ST=new h(n.DEFAULT_STREAM_UPDATE_INTERVAL),n.ST.addEventListener(n.TT,n),n.bE=null,n.jT=null,n.IT=!1,n.MT=new h(n.LONG_PAUSE_INTERVAL,1),n.MT.addEventListener(n.NT,n)}e.inherits(l,s),l.prototype.destroy=function(){var t=this;t.ST.destroy(),t.MT.destroy(),t.__controller.removeEventListeners(t.dp),s.prototype.destroy.call(t)},l.prototype.onPlay=function(t){var i=this;if(i.RT(),i.kT()){var n=i.jT?u.TIME_GAP:u.INIT;i.$O(n),i.process(i.YS),i.jT=null}else i.LT&&(i.YS=t,i.VE=!1,i.process(i.YS),i.jT=null);s.prototype.onPlay.call(i),i.MT.stop()},l.prototype.onPause=function(){var t=this;t.jT=Date.now(),t.MT.start(),s.prototype.onPause.call(t)},l.prototype.onSeeking=function(t){var i=this;i.DT(!1),i.IT&&(i.CT(),i.process(t))},l.prototype.onSynchComplete=function(){var t=this;t.bE=null,t.YS=null,t.type===c.MAIN&&t.n_.setLivePlaybackStartTime(null)},l.prototype.suspendStreaming=function(){this.ST&&this.ST.stop()},l.prototype.resumeStreaming=function(){this.ST&&this.ST.start()},l.prototype.kT=function(){var t=this;if(!t.jT)return!0;if(this.n_.config.streamSync)return!1;var i=t.qO,n=i&&i.targetDuration?3*i.targetDuration*1e3:t.LONG_PAUSE_INTERVAL;return Date.now()-t.jT>n},l.prototype.$O=function(t){var i=this;if(i.n_.hasEndlist)i.DT(!0);else{var n=i.qO;if(n.segments.length&&!f.isNullOrUndefined(n.endSeqNum)&&!f.isNullOrUndefined(n.startSeqNum)){var e=i.PT(),r=n.getSegmentfromSeqNum(e);i.YS=r?r.startTime:null,i.bE=i.YS,n.type===c.MAIN&&i.n_.setLivePlaybackStartTime(i.bE);var s=i.n_.userAgent;i.IT=s&&s.safariDesktop&&t===u.TIME_GAP,i.publish(o.LIVE_SYNCH,i,{synchPosition:i.bE,synchType:t})}}},l.prototype.NT=function(){},l.prototype.xT=function(){var t=this;return!t.UT&&t.GO!==t.STATES.LOADING&&!t.VE&&!t.VT()},l.prototype.BT=function(){var t=this;t.isActive()&&(!t.FT&&t.GO!==t.STATES.INITIALIZING||t.zT||(t.TT(),t.RT()))},l.prototype.PT=function(){var t=this,i=t.qO,n=t.n_.getLivePlaybackStartTime();return i.type===c.MAIN||f.isNullOrUndefined(n)?Math.max(i.endSeqNum-t.SEGMENT_OFFSET,i.startSeqNum):i.getSeqNumBeforePosition(n)},l.prototype.GT=function(t){return t},l.prototype.onStreamLoaded=function(t){this.RT(),s.prototype.onStreamLoaded.call(this,t)},l.prototype.hO=function(){this.RT()},l.prototype.RT=function(){var t,i,n=this;n.n_.hasEndlist||n.qO.isDash()&&n.type!==c.MAIN?n.ST.destroy():(t=n.ST.startTime>0?Date.now()-n.ST.startTime:0,n.ST.reset(),i=n.n_.getStreamRefreshInterval()||n.DEFAULT_STREAM_UPDATE_INTERVAL,i-=t,i=Math.max(i,100),i=Math.min(i,n.MAX_STREAM_UPDATE_INTERVAL),n.ST.delay=i,n.ST.start())},l.prototype.HT=function(){var t=this,i={url:t.qO.url,withResponseHeaders:t.n_.isDash()};return t.VE&&(i.stopStreamLoadOnError=!0,i.maxRetries=1),i},l.prototype.stopStreamUpdate=function(){this.ST.reset()},l.prototype.canSwitch=function(t){var i=this;return!i.bE&&("mid-segment"!==t||i.GO===i.STATES.LOADING)},l.prototype.YT=function(){var t=this,i=t.qO;i&&i.endSeqNum===t.JS&&t.n_.hasEndlist&&t.DT(!0)}},2440:function(t,i,n){"use strict";var e=n(27),r=n(5985),s=n(5902),o=n(9112),u=n(9172),h=n(6888),a=n(2503).StreamTypes,c=e.TsStreamer,f=e.TsLiveStreamer,l=r.SubtitleStreamer,v=r.SubtitleLiveStreamer,d=s.Fmp4Streamer,p=s.Fmp4LiveStreamer,m=o.AacStreamer,b=o.AacLiveStreamer,y=u.WebmStreamer,g=h.Fmp4SubtitleStreamer,w=h.Fmp4SubtitleLiveStreamer;t.exports.create=function(t,i,n){if(!t||!i||"function"!=typeof t.create)return null;var e,r=i.type===a.SUBTITLES;switch(i.containerFormat){case"vtt":e=n?v:l;break;case"aac":e=n?b:m;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:c}return e?t.create(e,i):null}},2350:function(t,i,n){"use strict";t.exports.Streamer=b;var e=n(2990),r=n(2999),s=n(2701).CmdNames,o=n(7572),u=n(7650).HLSEvent,h=n(4361),a=h.StreamLoader,c=h.Events,f=n(5557),l=n(258),v=n(2503).StreamTypes,d=n(5877),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"},m=t.exports.SynchTypes={INIT:"synchAtInit",TIME_GAP:"synchAtTimeGap"};function b(t){var i=this,n=i.__controller;r.call(i,i.constructor.name),i.n_=n.model,i.qT=n.services,i.yS=n.create(l),i.WT=n.create(a,i.yS),i.WT.addEventListener(c.STREAM_LOADED,i.onStreamLoaded,i),i.WT.addEventListener(c.STREAM_LOAD_ERROR,i.onStreamLoadError,i),i.AVG_BW_MEASUREMENT_INTERVAL=30,i.QT=0,i.$T=0,i.rT=s.CMD_SEGMENT_LOAD,i.qO=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.XT=[],i.ZT=new d(i.sendVttEventCB.bind(i))),i.STATES={ERROR:-1,NONE:0,INITIALIZING:1,INITIALIZED:2,LOADING:3},i.GO=i.STATES.NONE,i.zT=!1,i.JT=!1,i.JS=NaN,i.OO=!1,i.YS=null,i.VE=!1,i.KT=i.n_.config.maxBuffer,i._j=i.n_.live,i.Yj=!1,i.LT=!1,i.tI={audio:NaN,video:NaN},i.FT=!1,i.a_=[403]}e.inherits(b,r),b.prototype.destroy=function(){var t=this;t.WT.destroy(),t.GO=t.STATES.NONE,t.qO=null,t.yS&&(t.yS.destroy(),t.yS=null),r.prototype.destroy.call(t)},b.prototype.setCurrentStream=function(t){var i=this;t&&!t.equals(i.qO)&&(i.qO=t,i.onSwitchBegin())},b.prototype.isActive=function(){var t=this;return t.qO&&t.qO.url&&t.qO.url.length>0},b.prototype.setAltAudioActive=function(t){this.Yj=t},b.prototype.getCurrentStream=function(){return this.qO},b.prototype.process=function(t,i){var n=this;if("number"==typeof t&&(n.YS=t),n.isStreamReady()||n.GO===n.STATES.ERROR){if(n.xT()){var e=n.HS(n.YS,i),r=n.iI(e);"empty"!==r?"ahead"!==r&&("behind"!==r?n.xT()&&(n.YS=null,n.nI(e)):n.$O(m.TIME_GAP)):n.BT()}}else n.GS()},b.prototype.suspendStreaming=b.prototype.resumeStreaming=function(){},b.prototype.onPlay=function(t){var i=this;i.VE=!1,i.KT=i.n_.config.maxBuffer,t&&i.onSynchBegin()},b.prototype.onPlaying=function(){this.LT=!1},b.prototype.onPause=function(){this.VE=!0},b.prototype.onSeeking=function(t){var i=this;i.CT(),i.DT(!1),i.process(t)},b.prototype.onSeeked=function(){},b.prototype.onError=function(){this.yS&&this.yS.removeAllCommands()},b.prototype.onComplete=function(){},b.prototype.onTimeUpdate=function(t){var i=this;if(i.$T){var n=t-i.$T;n>0&&(i.QT+=n)}i.QT>i.AVG_BW_MEASUREMENT_INTERVAL&&(i.vO(i.qT.bandwidthEstimator.averageBandwidth),i.QT=0),i.$T=t},b.prototype.onPreloadBegin=function(){var t=this;t.JT=!0,t.KT=t.n_.config.preloadBufferLimit},b.prototype.onPreloadEnd=function(){this.JT=!1},b.prototype.$O=function(){},b.prototype.isStreamReady=function(){var t=this,i=t.qO;return i&&i.isReady()&&t.GO>=t.STATES.INITIALIZED},b.prototype.GS=function(){var t=this;t.isActive()&&(t.GO=t.STATES.INITIALIZING,t.BT())},b.prototype.xT=function(){var t=this,i=t.VT(),n=t.n_.config.stopBufferingOnPause;return t.JT&&i&&t.publish(p.PRELOAD_COMPLETE,t),!t.OO&&t.GO!==t.STATES.LOADING&&((!t.VE||!n)&&(!i&&!t.eI()))},b.prototype.iI=function(t){var i=this.qO;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"},b.prototype.VT=function(){var t=this;if(t.type&&t.n_.bufferedAndPending){var i={buffered:0,pending:0},n=t.n_.bufferedAndPending.video||i;return t.type!==v.MAIN&&t.type!==v.VIDEO&&(n=t.n_.bufferedAndPending.audio||i),n.buffered+n.pending>=t.KT}return t.n_.bufferLength+t.n_.pendingBufferLength>=t.KT},b.prototype.eI=function(){var t=this.n_;return t.getTotalBufferLength()>=t.config.maxTotalBuffer},b.prototype.onSwitchBegin=function(){this.FT=!0,this.BT()},b.prototype.onSwitchEnd=function(){this.FT=!1},b.prototype.BT=function(){this.zT||this.TT()},b.prototype.TT=function(){var t=this;t.isActive()&&(t.zT=!0,t.WT.load(t.qO,t.HT()))},b.prototype.HT=function(){var t=this;return{url:t.qO.url,retryExclusion:t.a_,withResponseHeaders:t.n_.isDash()}},b.prototype.onStreamLoaded=function(t){var i=this;i.GO===i.STATES.INITIALIZING&&(i.GO=i.STATES.INITIALIZED),i.zT=!1,i.publish(p.STREAM_LOAD_COMPLETE,i,{stream:t.dto()})},b.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.GO=n.STATES.ERROR,n.zT=!1,n.process()},b.prototype.HS=function(t,i){var n=this,e=n.qO,r=NaN;return r="number"==typeof t?e.getSeqNumBeforePosition(t+n.n_.TIMESTAMP_COMPARE_EPSILON):isNaN(n.JS)?n.PT():n.GO===n.STATES.ERROR||n.ZS?n.JS:n.JS+1,i||(r=n.GT(r)),n._j||(r=Math.max(r,e.startSeqNum),r=Math.min(r,e.endSeqNum)),r},b.prototype.GT=function(t){var i=this,n=i.qO,e=i.n_.bufferedRanges,r=e.length,s=i.rI(t),o=i.n_.userAgent;if(o&&o.safariDesktop)return t;if(i.n_.isDash())return t;if(s>=0&&r&&s<r){var u=e.ranges[s].end;return!i._j&&u>=i.n_.duration?(i.DT(!0),n.endSeqNum):n.getSeqNumBeforePosition(u)}return t},b.prototype.PT=function(){return this.qO.getSeqNumBeforePosition(0)},b.prototype.rI=function(t){var i=this,n=i.qO.getSegmentfromSeqNum(t);if(!n)return-1;for(var e=i.n_.TIMESTAMP_COMPARE_EPSILON,r=i.n_.bufferedRanges,s=0;s<r.length;s++){var o=r.ranges[s],u=o.start-e,h=o.end+e;if(u=0===n.startTime&&u<.1?0:u,n.startTime>=u&&n.startTime+n.duration<=h)return s}return-1},b.prototype.HO=function(){},b.prototype.nI=function(t){var i=this;if(i.HO(t),!(i.GO<i.STATES.INITIALIZED)){i.CT(),i.GO=i.STATES.LOADING,i.JS=t,i.ZS=!1,i.n_.updateCurrentLoadingSeqNum(i.JS);var n=i.sI(i.JS);n&&(i.QO(n,i.qO),i.publish(p.SEG_LOAD_START,i),i.oI(t))}},b.prototype.oI=function(){},b.prototype.sI=function(t){var i=this,n=i.YO(t),e=n?n.segment:null;return e?(i.FS=i.yS.executeCommand(i.rT,n,i),e):null},b.prototype.YO=function(t){var i=this.qO;return i?{segment:i.getSegmentfromSeqNum(t),stream:i}:null},b.prototype.onSegmentLoadProgress=function(t,i){var n,e,r,s,o,u=this;if(i)if(i.id!==f.MessageIds.TIMED_METADATA){i.getParam?(n=i.getParam("tracks"),e=i.getParam("perfInfo"),r=i.getParam("bytesTotal")||0,s=i.getParam("parsedInfo"),o=i.getParam("cea608TrackData")):i.cea608TrackData&&(o=i.cea608TrackData);var h=s?s.position:i.position,a=s&&s.inWorkerScope||!1;switch(u.publish(p.SEG_LOAD_PROGRESS,u,{seqNum:u.JS,position:h,bytesTotal:r,inWorkerScope:a,perfInfo:e}),u.n_.preloading=u.JT,h){case"firstByte":return;case"start":break;case"end":u.GO===u.STATES.LOADING&&(u.GO=u.STATES.INITIALIZED)}if(n&&(n.forEach((function(t){t.minBufferTime=u.__controller.getMinimumBufferTime(),u.tI[t.type]=t.endTimestamp})),u.$S(n,i.getParam("transferables"))),u.XT&&o&&o.length>0)for(var c=0;c<o.length;c++)u.XT.push(o[c]);"end"===h&&(u.n_.setSegEndTimeStamps(u.type,u.qO.groupId,u.JS,u.tI),u.tI.audio=NaN,u.tI.video=NaN)}else{var l=i.getParam("timedMetadata");u.n_.updateTimedMetadata(l,u.JS)}},b.prototype.onSegmentLoadComplete=function(t){var i=this;if(i.GO===i.STATES.LOADING&&(i.GO=i.STATES.INITIALIZED),i.XT&&i.XT.length>0){for(var n=[],e=0;e<i.XT.length;e++){for(var r=i.XT[e],s=0;s<n.length&&r.pts>=n[s].pts;)s++;n.splice(s,0,r)}var o=i.qO.getSegmentfromSeqNum(i.JS);i.ZT.parse(n,o),i.XT=[]}i.yS.removeCommand(t),i.YT(),i.publish(p.SEG_LOAD_COMPLETE,i,{stream:i.qO}),i.FS=null},b.prototype.onSegmentLoadError=function(t,i){var n=this;n.abortCurrentSegment(t),n.FS=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.JS,err:e,stream:n.qO})},b.prototype.abortCurrentSegment=function(t){var i=this;return i.GO!==i.STATES.LOADING?null:(t&&i.yS.removeCommand(t),i.GO===i.STATES.LOADING&&(i.GO=i.STATES.INITIALIZED),i.ZS=!0,i.tI.audio=NaN,i.tI.video=NaN,i.JS)},b.prototype.CT=function(){var t=this;t.GO===t.STATES.LOADING&&(t.GO=t.STATES.INITIALIZED),t.tI.audio=NaN,t.tI.video=NaN,t.yS.removeRelatedCommands(t.rT)},b.prototype.$S=function(t,i){t&&this.__controller.sendMessage(f.MessageIds.APPEND_SRC_BUFFER,[t],["tracks"],i)},b.prototype.DT=function(t){var i=this;i.OO=t,i.tI.audio=NaN,i.tI.video=NaN,i.type===v.MAIN&&i.__controller.sendMessage(f.MessageIds.END_OF_STREAM,[t],["endOfStream"])},b.prototype.YT=function(){var t=this,i=t.qO;i&&i.endSeqNum===t.JS&&t.DT(!0)},b.prototype.vO=function(t){var i={avgBWtimestamp:Date.now(),avgBW:t};this.type===v.MAIN&&this.__controller.sendMessage(f.MessageIds.SAVE_AVG_BANDWIDTH,[i],["avgBwInfo"])},b.prototype.onManualStreamChange=function(){var t=this;t.DT(!1),t.LT=!0,t.CT(),t.WT.cancel(),t.zT=!1,t.GO=t.GO!==t.STATES.ERROR?t.STATES.INITIALIZING:t.GO,t.BT()},b.prototype.midSegUpSwitch=function(){var t=this;t.FS&&t.abortCurrentSegment(t.FS),t.WT.cancel(),t.zT=!1,t.BT(),t.process(t.$T,!0)},b.prototype.onSynchBegin=function(){},b.prototype.onSynchComplete=function(){},b.prototype.onSynchMetadataReady=function(t){var i=this;i.CT(),i.DT(!1),i.process(t)},b.prototype.canSwitch=function(t){return"mid-segment"!==t||this.GO===this.STATES.LOADING},b.prototype.isInError=function(){return this.GO===this.STATES.ERROR},b.prototype.getSegLoadCommand=function(){return this.yS.getCommand(this.rT)},b.prototype.QO=function(){},b.prototype.sendVttEventCB=function(t){this.__controller.sendEvent(u.VTT_SEGMENT_LOADED,t)}},6972:function(t,i,n){"use strict";t.exports.StreamingController=g;var e=n(2350).Events,r=n(2440),s=n(4571),o=n(1811),u=n(902),h=n(4361),a=h.StreamLoader,c=h.Events,f=n(2503).StreamTypes,l=n(2990),v=n(2999),d=n(7650).HLSEvent,p=n(258),m=n(574).AbrModes,b=n(5557),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.n_=t.__controller.model,t.qT=t.__controller.services,t.yS=t.__controller.create(p),t.uI=t.qT.segmentMetrics,t.hI={},t.aI=0,t.cI=0,t.fI={},t.lI=null,t.vI=0,t.FAST_UP_SWITCH_INTERVAL=.3,t.jO=t.__controller.create(o,t.yS),t.jO.addEventListener(t.jO.SWITCH_ON_ERROR,t.dI,t),t.nE=t.__controller.create(s),t.nE.addEventListener(t.nE.SWITCH_BEGIN,t.pI,t),t.nE.addEventListener(t.nE.SWITCH_END,t.mI,t),t.bI=new u(1e3*t.n_.config.segmentLoadMonitorInterval),t.bI.addEventListener(t.yI,t),t.gI=new u(1e3*t.FAST_UP_SWITCH_INTERVAL),t.gI.addEventListener(t.wI,t),t._I={},t.ME=[],t.VE=!1,t.FT=!1,t.LT=!1,t.EI=t.nE.SCENARIOS.STARTUP,t.STATES={ERROR:-1,INITIAL:0,STREAM_METADATA_LOADED:1,INITIALIZED:2},t.GO=t.STATES.INITIAL}l.inherits(g,v),g.prototype.loadStream=function(t){var i=this;t&&i.GO===i.STATES.INITIAL&&(i.OI(t).load(t),i.aI++,Object.keys(t.altRenditionGroups).forEach((function(n){var e=t.getAlternateStream(n);e&&e.url&&(i.OI(e).load(e),i.aI++)})))},g.prototype.loadAllSubtitleStreams=function(){var t=this;if(t.GO===t.STATES.INITIAL){var i=[];t.n_.streams.forEach((function(n){var e=n.getAlternateStream(f.SUBTITLES);e&&i.indexOf(e.url)<0&&(i.push(e.url),t.OI(e).load(e),t.aI++)})),t.GO=t.STATES.STREAM_METADATA_LOADED,t.publish(y.STREAM_METADATA_LOADED)}},g.prototype.OI=function(t){var i=this,n=i.__controller.create(a,i.yS);return n.addEventListener(c.STREAM_LOADED,i.AI,i),n.addEventListener(c.STREAM_LOAD_ERROR,i.SI,i),i.hI[t.url]=n,t.type===f.SUBTITLES&&i.cI++,n},g.prototype.TI=function(){var t=this;Object.keys(t.hI).forEach((function(i){var n=t.hI[i];n&&n.destroy()})),t.hI={},t.aI=0},g.prototype.AI=function(t){var i=this;if(t){var n=i.hI[t.url];if(n){if(i.GO>=i.STATES.STREAM_METADATA_LOADED)return n.destroy(),delete i.hI[t.url],void i.n_.synchStreamTimelines(t.type);t.type!==f.SUBTITLES&&i.cI++,i.cI>=i.aI&&(i.GO=i.STATES.STREAM_METADATA_LOADED,i.n_.synchStreamTimelines(),i.publish(y.STREAM_METADATA_LOADED)),n.destroy(),delete i.hI[t.url]}}},g.prototype.SI=function(t,i){var n=this;t&&t.type===f.SUBTITLES||(n.GO=n.STATES.ERROR,n.publish(y.STREAM_METADATA_LOAD_ERROR,i))},g.prototype.init=function(){var t=this;if(t.GO!==t.STATES.ERROR&&t.GO!==t.STATES.INITIALIZED){var i=t.n_.getCurrentLoadingStream();if(i){t.cI=0;var n=t.jI(i);n.addEventListener(e.PRELOAD_COMPLETE,t.RS,t),n.addEventListener(e.LIVE_SYNCH,t.rO,t),t.fI.MAIN=n,t.lI=n,t.vI++,Object.keys(i.altRenditionGroups).forEach((function(n){var e=i.getAlternateStream(n);if(e){var r=t.jI(e);r&&(t.fI[n]=r,t.vI++)}})),t.II(),t.MI(),t.GO=t.STATES.INITIALIZED}}},g.prototype.isInitialized=function(){return this.GO>=this.STATES.INITIALIZED},g.prototype.jI=function(t){var i=this;if(!t)return null;var n=r.create(i.__controller,t,i.n_.live);return i.NI(n),n},g.prototype.RI=function(){var t=this;Object.keys(t.fI).forEach((function(i){t.fI[i].destroy()})),t.fI={},t.lI=null},g.prototype.NI=function(t){var i=this;if(t){var n={};n[e.SEG_LOAD_START]=i.kI,n[e.SEG_LOAD_PROGRESS]=i.kS,n[e.SEG_LOAD_COMPLETE]=i.LI,n[e.SEG_LOAD_ERROR]=i.DI,n[e.STREAM_LOAD_ERROR]=i.CI,n[e.STREAM_LOAD_COMPLETE]=i.xI,Object.keys(e).forEach((function(r){var s=e[r];t.addEventListener(s,n[s],i)}))}},g.prototype.II=function(){var t=this,i=t.fI.AUDIO;t.lI&&t.lI.setAltAudioActive(i&&i.isActive())},g.prototype.UI=function(){var t=this,i=Array.prototype.slice.call(arguments),n=i.shift(),e=t.lI;e&&e[n]&&"function"==typeof e[n]&&e[n].apply(e,i),Object.keys(t.fI).forEach((function(r){r!==f.MAIN&&(e=t.fI[r])&&e[n]&&"function"==typeof e[n]&&e[n].apply(e,i)}))},g.prototype.process=function(){var t=this;t.UI("process"),t.EI=t.nE.SCENARIOS.LOAD},g.prototype.suspendStreaming=function(){this.UI("suspendStreaming")},g.prototype.resumeStreaming=function(){this.UI("resumeStreaming")},g.prototype.setABRMode=function(t){var i=this,n=i.n_;n.setABRMode(t)&&n.getABRMode()!==m.AUTO&&(i.VI("video"),i.FT=!1,i.MI())},g.prototype.setSeedStreamIndex=function(t){this.n_.getABRMode()===m.AUTO&&this.nE.setSeedStreamIndex(t)},g.prototype.VI=function(t){var i=this;i.LT=!0,i.__controller.sendMessage(b.MessageIds.PAUSE_BEFORE_STREAM_CHANGE,[t],["streamType"]),i.UI("onManualStreamChange")},g.prototype.setAudioLanguage=function(t){var i=this,n=i.n_;if(n.setAudioLanguage(t)){i.VI("audio");var e=f.AUDIO,r=n.getCurrentLoadingStream(),s=r?r.getAlternateStream(e):null,o=i.fI[e];s&&o&&o.setCurrentStream(s),i.II()}},g.prototype.getMetrics=function(){return this.uI.getMetrics()},g.prototype.onPlay=function(t){var i=this;i.bI.start(),i.BI()?(i.UI("onPlay",t),i.VE=!1,i.LT=!1):i.ME.push([i,i.onPlay,[t]])},g.prototype.onPlaying=function(){this.UI("onPlaying"),this.gI.start()},g.prototype.onPause=function(){var t=this;t.bI.stop(),t.UI("onPause"),t.VE=!0},g.prototype.onSeeking=function(t){var i=this;i.n_.live||i.MI(),i.UI("onSeeking",t)},g.prototype.onSeeked=function(t){this.UI("onSeeked",t)},g.prototype.onComplete=function(){this.uI.onComplete(),this.UI("onComplete")},g.prototype.onError=function(){this.UI("onError")},g.prototype.onTimeUpdate=function(t){this.UI("onTimeUpdate",t),this.uI.onTimeUpdate(t)},g.prototype.onSynchMetadataReady=function(t){this.MI(),this.UI("onSynchMetadataReady",t)},g.prototype.onSynchComplete=function(){this.UI("onSynchComplete")},g.prototype.onPreloadBegin=function(){this.UI("onPreloadBegin")},g.prototype.onPreloadEnd=function(){this.UI("onPreloadEnd")},g.prototype.dI=function(t){var i=this;i.FT=!1,i.MI(i.nE.SCENARIOS.ERROR,{index:t})},g.prototype.pI=function(){var t=this,i=t.n_.getCurrentLoadingStream();t.FT=!0,t.lI.setCurrentStream(i),Object.keys(i.altRenditionGroups).forEach((function(n){var e=i.getAlternateStream(n);e&&t.fI[n]&&t.fI[n].setCurrentStream(e)})),t.II()},g.prototype.mI=function(){this.FT=!1,this.UI("onSwitchEnd")},g.prototype.yI=function(){var t=this,i=t.lI?t.lI.getSegLoadCommand():null;i&&t.MI(t.nE.SCENARIOS.MIDSEGMENT,{command:i,position:i.position})},g.prototype.wI=function(){var t=this;t.FT=!1,t.MI(),t.n_.getCurrentLoadingStream().bitrate>t.n_.getCurrentPlayingStream().bitrate&&(t.gI.reset(),t.UI("midSegUpSwitch"))},g.prototype.FI=function(t,i,n,e,r){var s=this,o=s.n_.getCurrentLoadingStream(),u=o?o.getSegmentfromSeqNum(i):null,h={bitrateIndex:o?o.index:0,frameRate:o?o.frameRate:30,bytesTotal:n};"firstByte"===t?(h.beginTime=u?u.startTime:NaN,h.switchReason="none",h.observedBitrate=s.qT.bandwidthEstimator.averageBandwidth,h.timeToFirstByte=u?u.timeToFirstByte:NaN,h.endTime=u?u.startTime+u.duration:NaN,h.programDateTime=u?u.programDateTime:NaN,s.uI.segmentLoadBegin(i,h)):"end"===t&&(h.perfInfo=r,h.timeToDownload=u?u.totalDownloadTime:NaN,h.segmentInWorker=!!e,s.uI.segmentLoadEnd(i,h))},g.prototype.zI=function(){var t=this;t.bI.reset(),t.VE||t.jO.running||t.bI.start()},g.prototype.MI=function(t,i){var n=this;if(t=t||n.EI,!n.FT)if(t!==n.nE.SCENARIOS.MIDSEGMENT){var e=i?i.index:null;n.nE.switchStream(t,null,e)}else{var r=i?i.command:null,s=i?i.position:null;n.GI(t,r,s)}},g.prototype.GI=function(t,i,n){var e=this;if("end"!==n&&(e.lI&&e.lI.canSwitch(t)&&e.nE.switchStream(t,"down"))){var r=e.lI.abortCurrentSegment(i);r&&e.FI("end",r),e.process()}},g.prototype.kI=function(){this.zI()},g.prototype.kS=function(t,i){var n=this;if(n.HI(t)&&i){n.publish(y.SEG_LOAD_PROGRESS,i.bytesTotal),"firstByte"===i.position&&n.nE.switchComplete();var e=i.position,r=i.bytesTotal,s=i.inWorkerScope,o=i.perfInfo,u=i.seqNum;n.FI(e,u,r,s,o),n.zI()}},g.prototype.LI=function(t){var i=this;i.YI(),i.HI(t)&&i.MI()},g.prototype.DI=function(t,i){var n=this;n.HI(t)&&n.FI("end",i.seqNum),n.qI(i.err,i.stream)},g.prototype.xI=function(t,i){var n=this;if(n.YI(),n.HI(t)||n.n_.synchStreamTimelines(t.type),n.__controller.sendEvent(d.STREAM_UPDATED,i),n.ME.length>0&&n.eO(),n.LT){for(var e=0,r=Object.keys(n.fI),s=0;s<n.vI;s++)n.fI[r[s]].isActive()&&e++;++n.cI>=e&&(n.cI=0,n.__controller.sendMessage(b.MessageIds.PLAY_AFTER_STREAM_CHANGE))}},g.prototype.CI=function(t,i){this.qI(i.err,i.stream)},g.prototype.qI=function(t,i){this.bI.stop(),this.jO.handle(t,i)},g.prototype.YI=function(){var t=this,i=!0;t.jO.running&&(Object.keys(t.fI).forEach((function(n){var e=t.fI[n],r=e?e.getCurrentStream():null;r&&r.type!==f.SUBTITLES&&(i=i&&!e.isInError())})),i&&(t.jO.onLoadComplete(),t.zI()))},g.prototype.RS=function(){this.onPreloadEnd(),this.publish(y.PRELOAD_COMPLETE)},g.prototype.rO=function(t,i){this.HI(t)&&this.__controller.sendEvent(d.LIVE_SYNCH,i)},g.prototype.HI=function(t){return t&&t.type===f.MAIN},g.prototype.BI=function(){var t=this;if(t.GO!==t.STATES.INITIALIZED)return!1;var i=!0;return Object.keys(t.fI).forEach((function(n){if(n!==f.SUBTITLES){var e=t.fI[n];i=i&&(!e.isActive()||e.isStreamReady())}})),i},g.prototype.eO=function(){var t=this.ME;this.ME=[],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.RI(),t.TI(),t.jO&&(t.jO.destroy(),t.jO=null),t.yS&&(t.yS.destroy(),t.yS=null),t.nE&&(t.nE.destroy(),t.nE=null),t.gI&&(t.gI.destroy(),t.gI=null),t.uI&&(t.uI.destroy(),t.uI=null),t.bI.destroy(),t.ME=[],v.prototype.destroy.call(t)}},5985:function(t,i,n){"use strict";t.exports.SubtitleStreamer=h,t.exports.SubtitleLiveStreamer=a;var e=n(2990),r=n(2350).Streamer,s=n(7980),o=n(2701).CmdNames,u=n(7650).HLSEvent;function h(t,i){this.VO(t,i)}function a(t,i){this.VO(t,i)}e.inherits(h,r),e.inherits(a,s),a.prototype.VO=h.prototype.VO=function(t,i){var n=this;n.constructor.super_.call(n,t,i),n.m_=n.constructor.super_.prototype,n.WI={},n.rT=o.CMD_SUBTITLE_SEGMENT_LOAD,n.primary=!1,n.GO=t.isReady()?n.STATES.INITIALIZED:n.STATES.NONE},a.prototype.destroy=h.prototype.destroy=function(){var t=this;t.WI={},t.m_.destroy.call(t)},a.prototype.onPlay=h.prototype.onPlay=function(t){this.m_.onPlay.call(this,t)},a.prototype.onTimeUpdate=h.prototype.onTimeUpdate=function(t){this.$T=t},a.prototype.VT=h.prototype.VT=function(){var t=this;return t.QI(t.$T)>=t.KT},a.prototype.eI=h.prototype.eI=function(){return this.QI()>=this.n_.config.maxTotalBuffer},a.prototype.YO=h.prototype.YO=function(t){var i=this.qO;return i?{subtitleStream:i,segment:i.getSegmentfromSeqNum(t),live:this.n_.live}:{}},a.prototype.onSubtitleSegmentLoadComplete=h.prototype.onSubtitleSegmentLoadComplete=function(t,i){var n=this;if(i){var e=i.data;n.__controller.sendEvent(u.VTT_SEGMENT_LOADED,e),n.WI[e.sequenceNum]={start:e.startTime,end:e.startTime+e.duration}}n.m_.onSegmentLoadComplete.call(n,t)},a.prototype.onSubtitleSegmentLoadError=h.prototype.onSubtitleSegmentLoadError=function(t){var i=this;i.GO=i.STATES.NONE,i.yS.removeCommand(t)},a.prototype.GT=h.prototype.GT=function(t){var i=this,n=i.qO,e=t;if(!isNaN(e))for(;i.WI[e];)e++;return!i._j&&e>n.endSeqNum?(i.DT(!0),n.endSeqNum):e},a.prototype.QI=h.prototype.QI=function(t){var i=this.qO,n=i.getSeqNumBeforePosition(t);if(isNaN(n))return 0;for(var e=0;n<=i.endSeqNum;n++){var r=this.WI[n];if(!r)break;e=r.end-t}return e},a.prototype.$I=h.prototype.$I=function(){var t=this,i=0;return Object.keys(t.WI).forEach((function(n){var e=t.WI[n];e&&(i+=e.end-e.start)})),i},a.prototype.QO=h.prototype.QO=function(){this.qO},a.prototype.rI=h.prototype.rI=function(){},a.prototype.$S=h.prototype.$S=function(){},a.prototype.onSynchMetadataReady=h.prototype.onSynchMetadataReady=function(){},a.prototype.setABRMode=h.prototype.setABRMode=function(){},a.prototype.canSwitch=h.prototype.canSwitch=function(){return!0}},4571:function(t,i,n){"use strict";t.exports=h;var e=n(1426),r=n(574).AbrModes,s=n(2999),o=n(2990),u=n(7650).HLSEvent;function h(){var t=this;t.n_=t.__controller.model,t.XI=t.__controller.create(e),t.ZI={estimatedBandwidthInBps:0,bitrateList:[],currentIndex:0,bufferLength:0},t.dp={},t.hO(),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.dp[u.MEDIA_LOADED]=t.__controller.addEventListener(u.MEDIA_LOADED,t.hO,t)}o.inherits(h,s),h.prototype.destroy=function(){var t=this;t.XI.destroy(),t.__controller.removeEventListeners(t.dp),s.prototype.destroy.call(t)},h.prototype.switchStream=function(t,i,n){var e=this;e.n_.getABRMode()!==r.AUTO&&e.n_.streams.forEach((function(t,i){e.n_.getUserReqBitrate()===t.bitrate&&(n=i)}));var s,o=e.n_.currentLoadingStreamIndex,u=e.JI();return-1!==this.seedStreamIndex?(s=this.seedStreamIndex,this.seedStreamIndex=-1):s=e.KI(n,t,u),!(s<0)&&(s!==o&&((!i||!("up"===i&&s<o||"down"===i&&s>o))&&(e.n_.setCurrentLoadingStream(s),e.switching=!0,e.publish(e.SWITCH_BEGIN,s),!0)))},h.prototype.KI=function(t,i,n){return"number"==typeof t?t:this.XI.getNextStreamIndex(n,i===this.SCENARIOS.STARTUP)},h.prototype.switchComplete=function(){var t=this;t.switching=!1,t.publish(t.SWITCH_END)},h.prototype.JI=function(){var t=this;t.tM();var i=t.ZI,n=t.__controller.services.bandwidthEstimator,e=t.n_.dimensions;return i.estimatedBandwidthInBps=1e3*n.averageBandwidth*1e3,i.currentIndex=t.n_.currentLoadingStreamIndex,i.bufferLength=t.n_.bufferLength,i.displayWidth=isNaN(e.width)?640:e.width,i.displayHeight=isNaN(e.height)?360:e.height,i.pixelRatio=t.n_.pixelRatio,i.is360=t.n_.is360,i.streams=t.n_.streams,i.segmentLength=t.n_.getSegmentLength(),i},h.prototype.hO=function(){this.tM()},h.prototype.tM=function(){var t=this;t.n_.streams&&!t.ZI.bitrateList.length&&(t.ZI.bitrateList=[],t.n_.streams.forEach((function(i){t.ZI.bitrateList.push("VBR"===i.rcMode.toUpperCase()?i.avgBitrate:i.bitrate)})))},h.prototype.setSeedStreamIndex=function(t){this.seedStreamIndex=t}},27:function(t,i,n){"use strict";t.exports.TsStreamer=a,t.exports.TsLiveStreamer=c;var e=n(2990),r=n(2350).Streamer,s=n(7980),o=n(2701).CmdNames,u=n(6837),h=n(5557);function a(t,i){this.VO(t,i)}function c(t,i){this.VO(t,i),this.SEGMENT_OFFSET=2}e.inherits(a,r),e.inherits(c,s),c.prototype.VO=a.prototype.VO=function(t,i){var n=this;n.constructor.super_.call(n,t,i),n.m_=n.constructor.super_.prototype,n.processOnlyMetadata=!1,n.lastChunkEndTs={audio:NaN,video:NaN},n.lastFrameDuration={audio:NaN,video:NaN},n.zO(),n.rT=o.CMD_SEGMENT_LOAD,n.primary=!0;var e=n.__controller.getMinimumBufferTime(),r=[{codec:"avc1.640021",type:"video",mimeType:'video/mp4; codecs="avc1.640021"',minBufferTime:e}];t&&t.hasAudio&&r.push({codec:"mp4a.40.2",type:"audio",mimeType:'audio/mp4; codecs="mp4a.40.2"',minBufferTime:e}),n.__controller.sendMessage(h.MessageIds.CREATE_SRC_BUFFER,[r],["tracks"]),n.GO=n.STATES.INITIALIZED},c.prototype.destroy=a.prototype.destroy=function(){var t=this;t.zO(),t.m_.destroy.call(t)},c.prototype.onSeeking=a.prototype.onSeeking=function(t){var i=this;i.lastChunkEndTs={audio:NaN,video:NaN},i.m_.onSeeking.call(i,t)},c.prototype.onSwitchBegin=a.prototype.onSwitchBegin=function(){var t=this;t.zO(),t.m_.onSwitchBegin.call(t)},c.prototype.HO=a.prototype.HO=function(){this.zO()},c.prototype.YO=a.prototype.YO=function(t){var i=this;return{segment:i.n_.getSegment(i.n_.currentLoadingStreamIndex,t),stream:i.qO,state:{mp4:i.WO,lastChunkEndTs:i.lastChunkEndTs,lastFrameDuration:i.lastFrameDuration,isAltAudioActive:i.Yj},onlyMetadata:i.processOnlyMetadata,nel:i.n_.config.nel}},c.prototype.onSegmentLoadProgress=a.prototype.onSegmentLoadProgress=function(t,i,n){var e=this;if(i){var r=i.getParam?i.getParam("parsedInfo"):null;r&&(u.isNumber(r.pcr)&&e.n_.setPCR(r.pcr),u.isNumber(r.frameRate)&&e.qO.setFrameRate(r.frameRate),u.isNumber(r.startOffsetTimestamp)&&e.n_.setStartOffset(r.startOffsetTimestamp),r.lastChunkEndTs&&(e.lastChunkEndTs=r.lastChunkEndTs),r.lastFrameDuration&&(e.lastFrameDuration=r.lastFrameDuration)),e.m_.onSegmentLoadProgress.call(e,t,i,n)}},c.prototype.$S=a.prototype.$S=function(t,i){var n=this;t&&(n.m_.$S.call(n,t,i),t.forEach((function(t){n.WO[t.type].shouldInit=!1})))},c.prototype.onSynchMetadataReady=a.prototype.onSynchMetadataReady=function(t){var i=this;i.processOnlyMetadata=!1,i.m_.onSynchMetadataReady.call(i,t)},c.prototype.onManualStreamChange=a.prototype.onManualStreamChange=function(){var t=this;t.zO(),t.lastChunkEndTs={audio:NaN,video:NaN},t.m_.onManualStreamChange.call(t)},c.prototype.midSegUpSwitch=a.prototype.midSegUpSwitch=function(){var t=this;t.zO(),t.lastChunkEndTs={audio:NaN,video:NaN},t.m_.midSegUpSwitch.call(t)},c.prototype.zO=a.prototype.zO=function(){this.WO={audio:{shouldInit:!0,seqNum:0},video:{shouldInit:!0,seqNum:0}}},c.prototype.QO=a.prototype.QO=function(t,i){},a.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0},c.prototype.$O=function(t){var i=this;i.lastChunkEndTs={audio:NaN,video:NaN},i.m_.$O.call(i,t)}},9172:function(t,i,n){"use strict";t.exports.WebmStreamer=a;var e=n(2990),r=n(2350).Streamer,s=n(2701).CmdNames,o=n(2503).StreamTypes,u=n(5557),h=n(6837);function a(t,i){var n=this;r.call(n,t,i),n.m_=n.constructor.super_.prototype,n.VS=null,n.s_(t)}e.inherits(a,r),a.prototype.destroy=function(){r.prototype.destroy.call(this)},a.prototype.s_=function(t){var i=this;i.BS(t);var n=[{type:i.FO,mimeType:i.FO+'/webm; codecs="'+i.BO+'"',minBufferTime:i.__controller.getMinimumBufferTime()}];i.__controller.sendMessage(u.MessageIds.CREATE_SRC_BUFFER,[n],["tracks"])},a.prototype.BS=function(t){var i=this;t.type===o.AUDIO?(i.BO=t.audioCodec||"opus",i.FO="audio"):(i.BO=t.videoCodec||"vp9",i.FO="video")},a.prototype.setCurrentStream=function(t){var i=this;t&&i.qO&&!t.equals(i.qO)&&(i.qO=t,i.GO===i.STATES.LOADING&&i.abortCurrentSegment(i.FS),i.isStreamReady()||(i.GO=i.STATES.NONE))},a.prototype.zS=function(t,i){var n=this,e=n.qO;n.yS.removeRelatedCommands(s.CMD_MP4_INIT_SEGMENT_LOAD);var r={stream:e,initSegment:t,cached:i};n.yS.executeCommand(s.CMD_MP4_INIT_SEGMENT_LOAD,r,n)},a.prototype.GS=function(t){var i=this;if(!(i.GO>=i.STATES.INITIALIZING)){var n=h.isNullOrUndefined(t)?i.HS(i.YS):t,e=i.qO,r=e.getSegmentfromSeqNum(n);if(r){var s=e.getInitSegment(r),o=!h.isNullOrUndefined(s);o||(s=e.addInitSegment(r.initSegment)),i.GO=i.STATES.INITIALIZING,r&&r.periodId!==i.VS&&i.qS(r.periodId),i.zS(s,o)}}},a.prototype.onMp4InitSegmentLoadProgress=function(t,i){var n=this,e=n.qO;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.QS(o),n.GO=n.STATES.INITIALIZED)}}},a.prototype.onMp4InitSegmentLoadComplete=function(t,i){var n=this;i&&(n.GO<n.STATES.INITIALIZED&&n.qO.equals(i.stream)&&(n.GO=n.STATES.INITIALIZED),n.yS.removeCommand(t))},a.prototype.onMp4InitSegmentLoadError=function(t,i){this.yS.removeCommand(t)},a.prototype.onSegmentLoadProgress=function(t,i){var n=this,e=n.qO;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.BO,type:n.FO,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.$S([o])}r.prototype.onSegmentLoadProgress.call(n,t,i)}}},a.prototype.qS=function(t){var i=this;if(i.VS!==t){i.VS=t;var n=i.qO;"MAIN"!==i.type&&"AUDIO"!==i.type||i.XS(t,n)}},a.prototype.XS=function(t,i){for(var n=this.n_.streams,e=(this.type,0);e<n.length;e++)n[e].groupId;i.groupId},a.prototype.QS=function(t){var i=this,n=i.qO;if(t){var e=t.data;if(e){var r={data:new Uint8Array(e.buffer),codec:i.BO,type:i.FO,minBufferTime:i.__controller.getMinimumBufferTime(),onlyMetadata:!0};i.$S([r]),n.activeInitSegment=t}}},a.prototype.QO=function(t,i){},a.prototype.HO=function(t){var i=this,n=i.qO,e=n.getSegmentfromSeqNum(t);if(e&&e.periodId!==i.VS&&i.qS(e.periodId),i.isStreamReady()){var r=n.getInitSegment(e);if(r&&r.equals(n.activeInitSegment))return}i.GO=i.STATES.NONE,i.ZS=!0,i.JS=t,i.GS(t)},a.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0}},7572: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}}},7650: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]},3713:function(t,i,n){"use strict";t.exports=s;var e=n(2990),r=n(4892);function s(t,i){var n=this;t.noDemux=!0,n.constructor.super_.call(n,t,i),n.m_=n.constructor.super_.prototype}e.inherits(s,r),s.prototype.destroy=function(){this.m_.destroy.call(this)}},1811:function(t,i,n){"use strict";t.exports=u;var e=n(2999),r=n(2990),s=n(2701).CmdNames,o=n(2503).StreamTypes;function u(t){var i=this;i.n_=i.__controller.model,i.yS=t,i.SWITCH_ON_ERROR="switchOnError",i.rE=null,e.call(i,i.constructor.name),i.running=!1}r.inherits(u,e),u.prototype.destroy=function(){var t=this;t.n_=null,t.yS=null,t.rE=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.rE=t;var r={streamIndex:e,error:t};n.running=!0;var u=n.yS.getCommand(s.CMD_ERROR_HANDLE);u?u.execute(e):n.yS.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.yS.removeCommand(t),i.__controller.notifyError(i.rE)},u.prototype.onLoadComplete=function(){var t=this;t.running=!1;var i=t.yS.getCommand(s.CMD_ERROR_HANDLE);t.yS.removeCommand(i)}},1511:function(t,i,n){"use strict";t.exports=h;var e=n(4892),r=n(5557),s=n(2990),o=n(867),u=n(3789);function h(t,i){var n=this;if(n.n_=n.__controller.model,n.RE=n.n_.config.useWorker,n.iM=n.n_.userAgent,n.dE="HlsTransformer",n.pE=s.guid(),n.pS=t,n.mS=i,n.MIN_BUFFER_LENGTH=5,n.kE()){if(n.LE=n.__controller.services.getWorker(n.dE),n.LE)return n.LE.addEventListener("message",n.CE.bind(n)),void n.PE(r.MessageIds.CREATE,[t]);n.n_.config.useWorker=!1}n.nM=new e(t,i),n.RE=!1}h.prototype.destroy=function(){var t=this;t.RE&&t.LE?t.PE(r.MessageIds.DESTROY):t.nM.destroy()},h.prototype.close=function(){var t=this;t.RE&&t.LE?t.PE(r.MessageIds.CALL_METHOD,null,"close"):t.nM.close()},h.prototype.append=function(t){var i=this;i.RE&&i.LE?i.PE(r.MessageIds.CALL_METHOD,[t],"append",[t.buffer]):i.nM.append(t)},h.prototype.endOfSegment=function(){var t=this;t.RE&&t.LE?t.PE(r.MessageIds.CALL_METHOD,null,"endOfSegment"):t.nM.endOfSegment()},h.prototype.CE=function(t){if(t){var i=t.data?new u(t.data):t;if(i&&i.instanceId===this.pE&&(i.id===r.MessageIds.APPEND_SRC_BUFFER||i.id===r.MessageIds.TIMED_METADATA)){var n=i.getParam("parsedInfo");n&&(n.inWorkerScope=!0),this.mS(i)}}},h.prototype.kE=function(){var t=this;return!!t.RE&&(t.iM.chrome&&!t.iM.win7?t.RE=!(t.__controller&&t.__controller.getState()>=o.PLAY_REQUESTED)||t.n_.bufferLength>t.MIN_BUFFER_LENGTH:t.RE=!1,t.RE)},h.prototype.PE=function(t,i,n,e){var s=this;if(s.LE&&t){var o={type:r.MessageTypes.MESSAGE,id:t,moduleName:s.dE,instanceId:s.pE,funcName:n,args:i,timestamp:Date.now()};s.LE.postMessage(o,e)}}},4892:function(t,i,n){"use strict";t.exports=h;var e=n(8457),r=n(5328),s=n(6837),o=n(5557),u=n(3789);function h(t,i){var n=this;n.pS=t,n.mS=i,n.eM=t.noDemux?null:new e(t.demux,n.processSegmentData.bind(n)),n.rM=new r,n.DEFAULT_WIDTH=640,n.DEFAULT_HEIGHT=360,n.GAP_EPSILON=100,n.sM=n.pS.startOffsetTimestamp,n.oM=n.pS.lastChunkEndTs||{audio:NaN,video:NaN},n.uM=n.pS.lastFrameDuration||{audio:NaN,video:NaN},n.Yj=n.pS.isAltAudioActive,n.hM=n.pS.prevSegEndTimeStamps;var s=n.pS.mp4State;n.aM={audio:!s||!s.audio||s.audio.shouldInit,video:!s||!s.video||s.video.shouldInit},n.cM={audio:0,video:0},n.fM={audio:{dts:NaN,pts:NaN},video:{dts:NaN,pts:NaN}}}h.prototype.destroy=function(){var t=this;t.eM&&(t.eM.destroy(),t.eM=null),t.rM.destroy()},h.prototype.close=function(){this.eM&&this.eM.destroy()},h.prototype.append=function(t){this.eM&&this.eM.append(t)},h.prototype.endOfSegment=function(){this.eM&&this.eM.endOfSegment()},h.prototype.processSegmentData=function(t){var i=this;if(t&&!t.error){var n,e=t.avData,r=t.pos,s=t.timedMetadata,h=i.pS.startTime,a=i.pS.timescale,c=0;if(e){var f=i.pS.pcr;(null==f||isNaN(f))&&(i.pS.pcr=f=e.pcr-h*a);var l=[],v=e.audio,d=e.video,p=null,m=[];if(v&&v.frames&&v.frames.length&&!i.Yj&&(v.type="audio",v.config.timescale=a,v.config.duration=i.pS.duration*v.config.timescale,v.config.useEditBox=i.pS.useEditBox,c=i.lM("audio",v.frames[0],f,h,a),v.frames.forEach((function(t){t.dts-=c,t.pts-=c})),v.startTime=v.frames[0].dts,v.endTime=v.frames[v.frames.length-1].dts,l.push(v)),d&&d.frames&&d.frames.length){if(d.type="video",d.config.timescale=a,d.config.duration=i.pS.duration*d.config.timescale,d.config.width=i.pS.width||i.DEFAULT_WIDTH,d.config.height=i.pS.height||i.DEFAULT_HEIGHT,d.config.useEditBox=i.pS.useEditBox,d.frames.length>1){var b=d.frames[1].dts-d.frames[0].dts;d.config.frameRate=d.config.timescale/b,i.pS.frameRate=d.config.frameRate}c=i.lM("video",d.frames[0],f,h,a),d.frames.forEach((function(t){t.dts-=c,t.pts-=c})),d.startTime=d.frames[0].dts,d.endTime=d.frames[d.frames.length-1].dts,p=d.frames[0].pts,l.push(d);for(var y=0;y<d.frames.length;y++)for(var g=0;g<d.frames[y].cea608Data.length;g++){var w=d.frames[y].cea608Data[g];w.pts=d.frames[y].pts,w.dts=d.frames[y].dts,w.timescale=d.config.timescale,m.push(w)}}n=new u({type:o.MessageTypes.MESSAGE,id:o.MessageIds.APPEND_SRC_BUFFER});var _={};_.position=i.position=r,_.pcr=f,_.frameRate=i.pS.frameRate,"number"!=typeof i.sM&&"number"==typeof p&&(i.sM=p),_.startOffsetTimestamp=i.sM;var E=i.vM(l);_.lastChunkEndTs=i.oM,_.lastFrameDuration=i.uM,n.putParam("parsedInfo",_);var O=[];E&&E.tracks&&(n.putParam("tracks",E.tracks),E.tracks.forEach((function(t){O.push(t.data.buffer)})),m&&m.length>0&&n.putParam("cea608TrackData",m),n.putParam("transferables",O))}else{if(!s)return;var A=s.pts-i.pS.pcr;c=this.dM(A,h,a),s.timestamp=(A-c)/a,delete s.pts,(n=new u({type:o.MessageTypes.MESSAGE,id:o.MessageIds.TIMED_METADATA})).putParam("timedMetadata",s)}i.mS&&i.mS(n)}},h.prototype.lM=function(t,i,n,e,r){var s=this,o=s.fM[t];isNaN(o.dts)&&isNaN(o.pts)&&(s.fM[t]={dts:i.dts-n,pts:i.pts-n});var u=s.cM[t];return 0!==u?u+n:(s.cM[t]=s.dM(s.fM[t].dts,e,r),s.cM[t]+n)},h.prototype.dM=function(t,i,n){var e=this;if(!e.pS.discontinuity)return 0;var r=e.hM?e.hM.audio:NaN;return t-(i=isNaN(r)?i*n:r)},h.prototype.vM=function(t){var i=this;if(t&&t.length){var n={tracks:[]};return t.forEach((function(t){if(t){t.config.offset=i.pS.live?0:i.sM;var e=i.pS.mp4State,r=i.aM[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.pS.timescale/i.pS.frameRate:"audio"===t.type&&(t.config.defaultFrameDuration=Math.ceil(1024*i.pS.timescale/t.config.samplingFreq)),i.pM(t.type,t.frames,t.config.defaultFrameDuration),i.aM[t.type]=!1,i.pS.onlyMetadata&&(t.frames=[]);var o=i.rM.generate(t);o.onlyMetadata=i.pS.onlyMetadata,n.tracks.push(o)}})),n}},h.prototype.pM=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.oM[t])&&!isNaN(e.oM[t])){var u=o-e.oM[t],h=Math.ceil(2*e.uM[t])-e.GAP_EPSILON,a=Math.ceil(10*e.uM[t]);if(u>h);else if(u<e.uM[t]-e.GAP_EPSILON&&"audio"===t){var c=e.oM[t]+e.uM[t];c-o>n&&(c=o+n-1),i[0].pts=c,i[0].dts=i[0].pts}if(u>h&&u<a)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.oM[t]=r,e.uM[t]=n}}},6473:function(t){"use strict";t.exports=i;function i(){}i.prototype.mM=function(t,i){for(var n=this,e=i,r=0;n.bM(t,i);)r+=10,r+=n.yM(t,i+6),n.gM(t,i+10)&&(r+=10),i+=r;return r>0?t.subarray(e,e+r):null},i.prototype.bM=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.gM=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.yM=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.mM(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.wM=function(t){return 100===t[5]?self.yM(t,10):0},i.prototype._M=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.mM(t,0);if(!n||!n.length)return null;var e=10+i.wM(n);return{key:i._M(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.bM(t,i);)i++;return i+10>t.length?null:t.subarray(i)}},4361:function(t,i,n){"use strict";t.exports.StreamLoader=a;var e=n(2701).CmdNames,r=n(574).MetadataTypes,s=n(7572),o=n(2990),u=n(2999),h=t.exports.Events={STREAM_LOADED:"streamLoaded",STREAM_LOAD_ERROR:"streamLoadError"};function a(t){var i=this;u.call(i,i.constructor.name),i.n_=i.__controller.model,i.yS=t,i.bS=i.__controller.services.metadataParser,i.stream=null,i.loaded=!1}o.inherits(a,u),a.prototype.destroy=function(){u.prototype.destroy.call(this)},a.prototype.load=function(t,i){var n=this;t&&(n.stream=t,n.loaded=!1,n.yS.executeCommand(e.CMD_STREAM_LOAD,{stream:t,retryOpts:i},n))},a.prototype.cancel=function(){this.yS.removeRelatedCommands(e.CMD_STREAM_LOAD)},a.prototype.onStreamLoadComplete=function(t,i){var n=this;if(t)if(i&&i.stream){var e=i.stream,s={rawData:i.data,headers:i.headers,type:r.RAW,streamType:e.type,groupId:e.groupId,name:e.name,url:i.streamUrl,index:e.index};n.n_.build(n.bS.parse(s)),n.yS.removeCommand(t),n.loaded=!0,n.publish(h.STREAM_LOADED,e)}else n.yS.removeCommand(t)},a.prototype.onStreamLoadError=function(t,i){var n=this;n.yS.removeCommand(t);var e=i.code===s.ERR_XHR_LOAD[0]?new s.Error(s.ERR_PLAYLIST_LOAD):i;n.publish(h.STREAM_LOAD_ERROR,n.stream,e)}},2191:function(t,i,n){"use strict";t.exports=r;var e=n(6837);function r(){var t=this;t.EM={},t.OM=Number.NaN,t.AM=!1,t.SM=NaN,t.TM=[]}r.prototype.destroy=function(){this.EM={},this.TM=[]},r.prototype.addStream=function(t){var i=this;i.TM.push(t),i.TM.length&&(i.OM=i.TM[0].endSeqNum)},r.prototype.update=function(t){var i=this;if(t){var n=i.jM(t);if(n){var e=i.__controller.model.live;if(e&&(t=n.isDash()?i.IM(t,n):i.MM(t)),n.updateConfig(t),i.NM(t),e&&!n.isDash()&&i.OM>=n.endSeqNum){var r=1e3*n.targetDuration,s=!isNaN(r)&&r>0?r:n.refreshInterval;n.refreshInterval=.5*s}i.OM=n.endSeqNum}}},r.prototype.jM=function(t){var i=this;if(!t||!i.TM.length)return null;for(var n=0;n<i.TM.length;n++)if(i.TM[n].equals(t))return i.TM[n];return null},r.prototype.NM=function(t){var i=this;if(t&&t.segmentInfoList&&t.segmentInfoList[0].programDateTime&&i.TM.length)for(var n,e=t.segmentInfoList[0],r=0;r<i.TM.length;r++){var s=i.TM[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],h=o[n-1];u.programDateTime=h.programDateTime+1e3*h.duration}}},r.prototype.MM=function(t){var i=this;if(!t)return t;var n=t.segmentInfoList;if(!n||!n.length)return t;Object.keys(i.EM).length||(i.EM[n[0].sequenceNum]={startTime:n[0].startTime,programDateTime:n[0].programDateTime});var e,r,s,o,u=i.EM[n[0].sequenceNum];if(u&&"number"==typeof u.startTime)e=i.EM[n[0].sequenceNum].startTime;else{var h=Object.keys(i.EM),a=parseInt(h[h.length-1]);n[n.length-1].sequenceNum;var c=0;for(r=1;r<n.length;r++)if(-1!==h.indexOf(n[r].sequenceNum.toString())){c=r;break}if(c)for(e=i.EM[n[c].sequenceNum].startTime,r=c-1;r>=0;r--)e-=n[r].duration;else{if(n[0].sequenceNum>a)s=parseInt(h[h.length-1]),o=i.EM[s];else for(r=n[n.length-1].sequenceNum;r<=a;){if(-1!==h.indexOf(r.toString())){s=r,o=i.EM[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.AM&&t.discontinuity&&(i.AM=!0,i.SM=t.startTime),i.AM&&!isNaN(i.SM)&&(t.discontinuity=t.startTime>=i.SM),i.EM[t.sequenceNum]||(i.EM[t.sequenceNum]={startTime:t.startTime,programDateTime:t.programDateTime})})),t},r.prototype.IM=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.EM),o=s.length?s[0]:null,u=o?r.EM[o]:null,h=u?(u.programDateTime-n)/1e3-(u.startTime-i):0;h?(s.forEach((function(t){(u=r.EM[t]).startTime+=h})),t.segments.forEach((function(t){u=r.EM[t.seqNum],t.startTime=u?u.startTime:t.startTime+h})),t.adjusted=!0):t.adjusted=!0}}},5514:function(t,i,n){"use strict";t.exports=a;var e=n(4460),r=n(2999),s=n(7650),o=n(2990),u=n(9451).userAgent,h=n(8734);function a(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.ME=[],s.RM=!1,s.node.mediaKeys?(s.node.src="",s.node.setMediaKeys(null).then((function(){s.s_(t,i,n,e)}))):s.s_(t,i,n,e)}o.inherits(a,r),a.prototype.s_=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(h,r),s.controller=s.create(e,n),s.RM=!0,s.node.load(),this.eO()},a.prototype.create=function(){var t=this,i=Array.prototype.slice.call(arguments),n=i.shift(),e=Object.create(n.prototype);return e.tE=t,n.apply(e,i),e},a.prototype.sendEvent=function(t,i){var n=this;n.publish(t,i),t&&s.ExternalEvents.indexOf(t)>=0&&n.node.dispatchEvent(n.kM(t,i))},a.prototype.getSegInfo=function(){return this.controller?this.controller.getSegInfo():null},a.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()},a.prototype.isMimetypeSupported=function(t){return this.window.MediaSource.isTypeSupported(t)},a.prototype.kM=function(t,i){return new this.window.CustomEvent(t,{detail:i,bubbles:!1,cancelable:!1})},a.prototype.setABRMode=function(t){var i=this;i.controller?i.controller.setABRMode(t):i.ME.push(["setABRMode",[t]])},a.prototype.setSeedStreamIndex=function(t){var i=this;i.controller?i.controller.setSeedStreamIndex(t):i.ME.push(["setSeedStreamIndex",[t]])},a.prototype.setAudioLanguage=function(t){var i=this;i.controller?i.controller.setAudioLanguage(t):i.ME.push(["setAudioLanguage",[t]])},a.prototype.play=function(t){var i=this;i.controller?i.controller.play(t):i.ME.push(["play",[t]])},a.prototype.pause=function(){var t=this;t.controller?t.controller.pause():t.ME.push(["pause"])},a.prototype.preload=function(t){var i=this;i.controller?i.controller.preload(t):i.ME.push(["preload",[t]])},a.prototype.setPlaybackRate=function(t){var i=this;i.controller?i.controller.setPlaybackRate(t):i.ME.push(["setPlaybackRate",[t]])},a.prototype.getCurrentDate=function(){return this.controller?this.controller.getCurrentDate():null},a.prototype.clearBuffer=function(){this.controller&&this.controller.clearBuffer()},a.prototype.suspendStreaming=function(){var t=this;t.controller&&(t.RM=!1,t.controller.suspendStreaming())},a.prototype.resumeStreaming=function(){var t=this;t.controller&&!t.RM&&(t.controller.resumeStreaming(),t.RM=!0)},a.prototype.getSyncOffset=function(){return this.controller?this.controller.getSyncOffset():NaN},a.prototype.startSync=function(){this.controller&&this.controller.startSync()},a.prototype.stopSync=function(){this.controller&&this.controller.stopSync()},a.prototype.getSyncState=function(){return this.controller?this.controller.getSyncState():-1},a.prototype.destroy=function(){var t=this;t.controller&&t.controller.destroy(),t.appModel&&t.appModel.destroy(),t.mediaSource=null,t.RM=!1,r.prototype.destroy.call(t)},a.prototype.eO=function(){var t=this,i=t.ME;t.ME=[],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)}))}},1842:function(t,i,n){"use strict";t.exports=o;var e=n(5514),r=n(7572),s=n(2849);function o(t,i){var n=this;n.LM=i||{},n._node="string"==typeof t?document.querySelector(t):t||null,Object.defineProperty(n,"error",{enumerable:!0,get:function(){return n.tE?n.tE.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.DM){i.DM=t,i.tE&&i.unload();try{i.tE=new e(window,i._node,i.DM,i.LM)}catch(t){}}}else i._node.src=""},o.prototype.getSegInfo=function(){try{return this.tE?this.tE.getSegInfo():null}catch(t){return null}},o.prototype.setQuality=function(t){try{this.tE.setABRMode(t)}catch(t){}},o.prototype.setSeedStreamIndex=function(t){try{this.tE.setSeedStreamIndex(t)}catch(t){}},o.prototype.setAudioLanguage=function(t){try{this.tE.setAudioLanguage(t)}catch(t){}},o.prototype.unload=function(){var t=this;t.tE&&t.tE.destroy(),t.tE=null},o.prototype.play=function(t){this.tE&&this.tE.play(t)},o.prototype.pause=function(){var t=this;t.tE?t.tE.pause():t._node&&t._node.pause()},o.prototype.preload=function(t){this.tE&&this.tE.preload(t)},o.prototype.setPlaybackRate=function(t){isNaN(t)||(t=Math.max(Math.min(t,2),.5),this.tE&&this.tE.setPlaybackRate(t))},o.prototype.getCurrentDate=function(){if(this.tE)return this.tE.getCurrentDate()||null},o.prototype.clearBuffer=function(){this.tE&&this.tE.clearBuffer()},o.prototype.suspendStreaming=function(){this.tE&&this.tE.suspendStreaming()},o.prototype.resumeStreaming=function(){this.tE&&this.tE.resumeStreaming()},o.prototype.getSyncOffset=function(){return this.tE?this.tE.getSyncOffset():NaN},o.prototype.startSync=function(){this.tE&&this.tE.startSync()},o.prototype.stopSync=function(){this.tE&&this.tE.stopSync()},o.prototype.getSyncState=function(){return this.tE?this.tE.getSyncState():-1},o.prototype.destroy=function(){var t=this;t.tE&&t.tE.destroy(),t.tE=null,t.DM=null,t.LM=null,t._node=null}},2807: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}},8734:function(t,i,n){"use strict";t.exports=u;var e=n(2807),r=n(6837),s=n(2990),o=n(574).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=!(i.userAgent.chrome&&i.userAgent.chrome>=50)||i.qE(t.metadata),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.qE=function(t){if(!t)return!1;var i=t.url,n=t.streams&&t.streams.length?this.WE(t.streams[0]):null;return s.isUplynk(i||n)},u.prototype.WE=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.tE.node;this.CM=t||{width:i?i.clientWidth:0,height:i?i.clientHeight:0}},u.prototype.getBufferLength=function(){var t,i,n=this,e=n.tE.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.tE.mediaSource;s=1/0;for(var h=0;h<u.activeSourceBuffers.length;h++){var a=n.PM(o,u.activeSourceBuffers[h]);a>=0&&(s=Math.min(s,a))}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.PM=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.tE.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.CM},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.tE.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}},676:function(t,i,n){"use strict";t.exports=u;var e=n(8776),r=n(7650).HLSEvent,s=n(2503).StreamTypes,o=n(2191);function u(t,i,n,u){var h=this;if(h.type=t,h.groupId=i,h.xM=[],h.UM=h.__controller.create(o),n){(n=h.VM(n)).forEach((function(t){var i=h.__controller.create(e,t);h.xM.push(i),h.UM.addStream(i)}));var a=h.BM("default");a||(a=h.BM("autoSelect")),a&&(h.setCurrentStream(a),a.type===s.SUBTITLES&&h.__controller.sendEvent(r.CC_VTT_AVAILABLE,{sessionId:h.__controller.model.sessionId})),t===s.AUDIO&&(u&&h.setCurrentStreamWithName(u),h.FM())}h.zM()}u.prototype.BM=function(t){for(var i=this,n=0;n<i.xM.length;n++)if(i.xM[n][t])return i.xM[n];return null},u.prototype.destroy=function(){var t=this;t.xM.forEach((function(t){t.destroy()})),t.xM=[],t.UM.destroy()},u.prototype.getCurrentStream=function(){return this.qO},u.prototype.setCurrentStream=function(t){t&&(this.qO=t)},u.prototype.setCurrentStreamWithName=function(t){var i=this;if(!t||!i.qO||t===i.qO.name)return!1;for(var n=0;n<i.xM.length;n++){var e=i.xM[n];if(t===e.name)return i.setCurrentStream(e),!0}return!1},u.prototype.update=function(t){this.UM.update(t)},u.prototype.adjustStartTime=function(t,i){var n=this;n.xM.forEach((function(e){e.adjusted||n.UM.adjustStartTime(e,t,i)}))},u.prototype.getContainerFormat=function(){return this.qO?this.qO.containerFormat:null},u.prototype.setContainerFormat=function(t){this.xM.forEach((function(i){i.containerFormat||(i.containerFormat=t)}))},u.prototype.getDrmInfo=function(){for(var t=[],i=0;i<this.xM.length;i++){var n=this.xM[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.xM.length>0},u.prototype.zM=function(){return!0},u.prototype.FM=function(){var t=this,i={},n=[];t.xM.forEach((function(e){i[e.name]||(i[e.name]=1,n.push({name:e.name,language:e.language,selected:t.qO&&e.name===t.qO.name}))})),n.length>1&&t.__controller.sendEvent(r.MULTI_LANGUAGES_AVAILABLE,{sessionId:t.__controller.model.sessionId,languages:n})},u.prototype.VM=function(t){return t?t.filter((function(t){return!!t.url})):t}},8776:function(t,i,n){"use strict";t.exports=f;var e=n(7988),r=n(7159),s=n(2990),o=n(6837),u=n(2503),h=u.Stream,a=u.StreamTypes,c=n(574).StreamingMode;function f(t){var i=this;i.constructor.super_.call(i),i.m_=i.constructor.super_.prototype,i.segments=[],t&&i.updateConfig(t)}s.inherits(f,h),f.prototype.destroy=function(){var t=this;t.segments=[],t.m_.destroy.call(t)},f.prototype.updateConfig=function(t){var i=this;i.m_.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===a.SUBTITLES&&(n=i.streamingMode===c.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===a.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(){}},5086: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}},87:function(t,i,n){"use strict";t.exports=r;var e=n(7166);function r(){this.GM={}}r.prototype.destroy=function(){var t=this;Object.keys(t.GM).forEach((function(i){var n=t.GM[i];n&&n.destroy()})),t.GM={}},r.prototype.add=function(t){var i=this;if(!t||!t.url)return null;var n=i.HM(t);return i.GM[n]||(i.GM[n]=new e({name:"init",url:t.url,range:t.range})),i.GM[n]},r.prototype.remove=function(t){var i=this;if(t&&t.url){var n=i.HM(t);(t=i.GM[n])&&(t.destroy(),delete i.GM[n])}},r.prototype.get=function(t){if(!t||!t.url)return null;var i=this.HM(t);return this.GM[i]},r.prototype.getFirst=function(){var t=Object.keys(this.GM);return t&&t.length?this.GM[t[0]]:null},r.prototype.HM=function(t){var i=t.range,n=i?"_"+i.start+"_"+i.end:"";return t.url+n}},574: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(2503),o=s.Stream,u=s.StreamTypes,h=n(676),a=n(7650).HLSEvent,c=n(2807),f=n(6837),l=n(2990),v=n(2191);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.YM={},i.streams=[],i.altRenditionGroups=[],i.qM=i.__controller.create(v),i.WM(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.QM=r.AUTO,i.$M=0,i.EM={},i.currentLoadingStreamIndex=-1,i.currentLoadingSeqNum=-1,i.XM=null,i.ZM=null,i.JM=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.EM={},t.qM.destroy(),t.timedMetadataStore=null},d.prototype.configure=function(t,i){var n=this;n.config=n.config||f.deepCopy(c),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.JM=t.streamingMode,i.drmRequired=t.drm,i.KM=t,i.live=!(!t.type||"dynamic"!==t.type.toLowerCase()));var n=i.tN(t.renditionGroups);i.iN(t.streamInfoList,n)}},d.prototype.nN=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.tN=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.eN(n,t),s=e[t];s&&s.length&&(i.rN(s[0]),r?i.sN(n,t,s):i.oN(n,t,s))}))})),i.nN(i.altRenditionGroups),i.altRenditionGroups):i.altRenditionGroups},d.prototype.eN=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.oN=function(t,i,n){var e=this,r=e.metadata&&e.metadata.currLang,s=e.__controller.create(h,t,i,n,r);e.altRenditionGroups.push(s)},d.prototype.sN=function(t,i,n){if(n&&n.length){var e=this.eN(t,i);n.forEach((function(t){e.update(t)}))}},d.prototype.iN=function(t,i){var n=this;t&&t.length&&((t=n.VM(t)).forEach((function(t){t.sessionId=n.sessionId,t.type=u.MAIN,n.rN(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.nN(n.streams),n.uN(),n.duration=n.live||!t.length?NaN:t[0].duration)},d.prototype.VM=function(t){return t&&t.length?(this.userAgent.firefox&&t[0].channels&&(t=this.hN(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.hN=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.JM===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.qM.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.qM.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.XM||void 0===i.XM||isNaN(i.XM))&&(i.XM=t,i.__controller.sendEvent(a.PCR_AVAILABLE,t))},d.prototype.getPCR=function(){return this.XM},d.prototype.setLivePlaybackStartTime=function(t){this.ZM=t},d.prototype.getLivePlaybackStartTime=function(){return this.ZM},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.eN(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.WM=function(t){var n=this;if(t){n.sessionId=t?t.sessionId:null,n.contentId=t?t.contentId:null,n.is360=!!t&&t.is360,t.type=i.MetadataTypes.RAW,n.metadata=t;var e=t.streams,r=t.altStreams;e&&e.length>0&&((e[0].hls_info||e[0].hlsInfo||e.length>1)&&(n.metadata.type=i.MetadataTypes.STRUCTURED,n.metadata.hasMediaMetadata=!0),(e[0].hls_info||e[0].hlsInfo)&&(n.metadata.hasStreamMetadata=!0)),n.metadata.hasMediaMetadata||n.metadata.hasStreamMetadata||(n.YM=e&&1===e.length?e[0]:t),r&&r.length&&(n.metadata.hasAltStreamMetadata=!0)}},d.prototype.uN=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.aN=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.QM;return i.QM=r.AUTO,Object.keys(r).forEach((function(n){r[n]===t.preference&&(i.QM=t.preference)})),i.$M=1e3*t.stream.bitrate,n!==i.QM},d.prototype.getABRMode=function(){return this.QM},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.QM,streamingMode:t.JM,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.$M},d.prototype.rN=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.YM.url||"";return!i.length&&t.YM.host&&t.YM.path&&(i=t.YM.host+t.YM.path),i},d.prototype.getMediaCdn=function(){return this.YM.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.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.cN(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.cN=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.fN=0,i.Y_=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.Y_&&i.data){n=Math.min(t.byteLength,i.Y_-i.fN);for(var e=0;e<n;e++)i.data[i.fN+e]=t[e];i.fN+=n,i.fN>=i.Y_&&(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.fN+=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))}},7988: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.lN=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.vN=0}t.exports=i,i.prototype.setStreamIndex=function(t){var i=this;i.streamIndex=t,i.lN=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}},2503:function(t,i,n){"use strict";t.exports.Stream=c;var e=i.StreamTypes={MAIN:"MAIN",AUDIO:"AUDIO",VIDEO:"VIDEO",SUBTITLES:"SUBTITLES",CLOSED_CAPTIONS:"CLOSED_CAPTIONS"},r=n(7988),s=n(5086),o=n(7166),u=n(574).StreamingMode,h=n(2835),a=n(87);function c(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.dN=new a(n),n.activeInitSegment=null,t&&(n.pN(t,i),n.updateConfig(t)),n.KS=new h}c.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.dN.destroy()},c.prototype.pN=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)}},c.prototype.getAlternateStream=function(t){if(this.altRenditionGroups[t])return this.altRenditionGroups[t].getCurrentStream()},c.prototype.setAlternateStream=function(t,i){this.altRenditionGroups[t]&&this.altRenditionGroups[t].setCurrentStream(i)},c.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.hlsInfo=t.hlsInfo||i.hlsInfo,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),i.hlsInfo&&i.hlsInfo.mp4_url&&(i.mp4Chunks.sidx=i.mN("sidx",i.sidxOffset,i.sidxLength,i.hlsInfo.mp4_url),i.mp4Chunks.first=i.mN("first",i.firstSegOffset,i.firstSegLength,i.hlsInfo.mp4_url)),t.drmInfo&&(i.drmInfo=t.drmInfo),i.bN(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.yN(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")},c.prototype.yN=function(t,i){t&&t.length&&t.forEach((function(t){t.seqNum!==i[0].sequenceNum||(i[0].programDateTime=t.programDateTime)}))},c.prototype.addInitSegment=function(t){var i=this;return"mp4"===i.containerFormat||"webm"===i.containerFormat?i.dN.add(t):null},c.prototype.getInitSegment=function(t){var i=this;if(!t){if(!i.segments.length)return null;t=i.segments[0]}return i.dN.get(t.initSegment)},c.prototype.mN=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)},c.prototype.getMp4Chunk=function(t){return"mp4"===this.containerFormat?this.mp4Chunks[t]:null},c.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},c.prototype.setStreamIndex=function(t){this.index=t,this.segments.forEach((function(i){i.setStreamIndex(t)}))},c.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},c.prototype.getSegmentfromSeqNum=function(t){var i=this,n=i.getIndexFromSeqNum(t);return n>=0&&n<i.segments.length?i.segments[n]:null},c.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},c.prototype.contains=function(t){return t>=this.startSeqNum&&t<=this.endSeqNum},c.prototype.isEmpty=function(){return 0===this.segments.length},c.prototype.isReady=function(){var t=this;if("mp4"!==t.containerFormat&&"webm"!==t.containerFormat)return t.url&&t.segments.length>0;var i=t.dN.getFirst();if(t.streamingMode===u.HLS&&t.hlsInfo&&t.hlsInfo.mp4_url){var n=t.mp4Chunks.sidx;return i&&n&&i.loaded&&n.loaded}return i&&i.loaded&&t.segments.length>0},c.prototype.hasCuepoint=function(t){for(var i=this.cuepoints.length-1;i>=0;i--)if(this.cuepoints[i].startSeqNum===t)return!0;return!1},c.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)},c.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))},c.prototype.setMp4Timescale=function(t){var i=this;if("mp4"===i.containerFormat&&t&&t.loaded&&t.data){var n=i.KS.parse(t.data,"mdhd");if(n&&n.timescale>0)i.timescale=n.timescale;else{var e=i.KS.parse(t.data,"mvhd");i.timescale=e.timescale}}},c.prototype.isDash=function(){return this.streamingMode===u.DASH},c.prototype.setFrameRate=function(t){t&&(this.frameRate=t)},c.prototype.getDrmInfo=function(){return this.drmInfo},c.prototype.bN=function(t){var i=this;t&&t.forEach((function(t){var n=t.id+"-"+t.startDate;i.dateRanges[n]=t}))}},7159: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[:=]([^,]+)/),h=new RegExp(/MPEGTS[:=]([^,]+)/);r=0,e=0;var a=u.exec(o);if(a&&a.length>=2){var c=a[1].split(":");if(c&&c.length>=3){var f=c[2].split("."),l=0,v=0;f&&f.length>=2&&(l=parseInt(f[0]),v=parseInt(f[1])),r=1e3*(3600*c[0]+60*c[1]+l)+v,r%=n}}var d=h.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 m=p[0].split(":");if(m){var b=1e3*(3600*parseInt(m[0])+60*parseInt(m[1])+parseFloat(m[2]));null!==t.clockReference&&void 0!==t.clockReference||(t.clockReference=b%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}},2835:function(t,i,n){"use strict";t.exports=s;var e=n(3288),r=n(6837);function s(){this.gN=0}s.prototype.destroy=function(){this.gN=0},s.prototype.parse=function(t,i,n){var s=this;if(!t||!i||!e[i])return null;s.gN=0;var o=new DataView(t.buffer);if(r.isNullOrUndefined(n)?(n=s.findBoxOffset(o,i),s.gN=n):s.gN=n,s.gN<0)return null;var u=s.parseHeader(o,i,s.gN);return!u||u.boxSize>o.byteLength?null:"sidx"===u.boxType?s.wN(o,u,n):s.K_(o,u)},s.prototype._N=function(t){var i=this,n=[];if(!t)return n;i.gN=0;for(var r=new DataView(t.buffer);i.gN+8<=r.byteLength;){var s=i.gN,o=i.EN(r.getUint32(s+4),4);if(e[o]){var u=i.parseHeader(r,o,s);u&&("sidx"===u.boxType?n.push(i.wN(r,u)):n.push(i.K_(r,u)))}else i.gN++}return n},s.prototype.parseHeader=function(t,i,n){var r=this,s={boxOffset:n};r.gN=n;var o=r.AN(t,s);return-1===o||s.boxType!==i||e[i].fullBox&&-1===(o=r.SN(t,s))?null:s},s.prototype.extractVttCaptions=function(t){var i=this,n=[];if(i.gN=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._N(s);if(!o.length)return n;for(var u=0;u<o.length;u++){var h=o[u];if(h)if("vttc"===h.boxType){i.gN=0;var a=s.slice(h.boxOffset+8,h.boxOffset+h.boxSize),c=i._N(a);n.push(i.TN(c))}else"vtte"===h.boxType&&n.push({})}return n},s.prototype.K_=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.gN+=i.boxSize-(s.fullBox?12:8),i;for(var u=Object.keys(o),h=0;h<u.length;h++){var a=u[h],c=o[a];if(r.jN(c.validator,i[c.validationProperty]||i.flags,c.validationResult))if("array"===c.type){i[a]=[];var f=c.length||c.lengthField&&i[c.lengthField],l=c.itemSchema;if(!l)break;f?r.IN(i,a,t,f,l,n):r.MN(i,a,t,l)}else r.NN(t,c,n,a),i[a]=r.RN(i,c,t)}return i},s.prototype.NN=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.kN(t,n)}},s.prototype.IN=function(t,i,n,e,r,s){for(var o,u=this,h=0;h<e;h++){if(r.length)o=u.RN(t,r,n);else{o={};for(var a=Object.keys(r),c=0;c<a.length;c++){var f=a[c],l=r[f];u.jN(l.validator,t.flags)&&(u.NN(n,l,s,f,h,e),o[f]=u.RN(t,l,n))}}t[i].push(o)}},s.prototype.MN=function(t,i,n,e){for(var r;this.gN<t.boxOffset+t.boxSize;)r=this.RN(t,e,n),t[i].push(r)},s.prototype.jN=function(t,i,n){return!t||(n?(i&t)===n:i&t)},s.prototype.RN=function(t,i,n){var e,r=this;return i.length&&(e=r.LN(n,i.length),r.gN+=e.readBytes,e.readBytes===i.length/8)?"string"===i.type?r.EN(e.value,4):e.value:"string"===i.type?r.DN(t,n):"boxstring"===i.type?r.CN(t,n):null},s.prototype.LN=function(t,i){var n=this,e={value:0,readBytes:0},r=i/8;if(n.gN+r<=t.byteLength){switch(i){case 8:e.value=t.getUint8(n.gN);break;case 16:e.value=t.getUint16(n.gN);break;case 32:e.value=t.getUint32(n.gN);break;case 64:for(var s=new Uint8Array(8),o=0;o<8;o++)s[o]=t.getUint8(n.gN+o);e.value=s}e.readBytes=r}return e},s.prototype.kN=function(t,i){var n=this,e=i.value;switch(i.length){case 8:t.setUint8(n.gN,e);break;case 16:t.setUint16(n.gN,e);break;case 32:t.setUint32(n.gN,e)}},s.prototype.DN=function(t,i){var n=this,e="",r=n.LN(i,8);for(n.gN+=r.readBytes;r.readBytes>0&&r.value>0&&n.gN<t.boxOffset+t.boxSize;)e+=String.fromCharCode(r.value),r=n.LN(i,8),n.gN+=r.readBytes;return e},s.prototype.CN=function(t,i){var n=this,e=t.boxSize-(n.gN-t.boxOffset),r=String.fromCharCode.apply(null,new Uint8Array(i.buffer,n.gN,e));return n.gN+=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 h=r[u];if((n=this.findBoxOffset(t,h))>=0){s=n+(e[h].fullBox?12:8);var a=e[h].payload;a&&(s+=a),o=!0;break}}if(!o)return-1}for(;s+8<=t.byteLength;){if(this.EN(t.getUint32(s+4),4)===i)return s;var c=t.getUint32(s);if(!(c>0))break;s+=c}return-1},s.prototype.AN=function(t,i){var n=this;if(!t||!i||t.byteLength<8)return-1;i.boxSize=t.getUint32(n.gN),n.gN+=4;var e=t.getUint32(n.gN);return i.boxType=n.EN(e,4),n.gN+=4,1===i.boxSize&&(i.boxSize=n.PN(t),n.gN+=8),0},s.prototype.SN=function(t,i){if(!t||!i)return-1;var n=t.getUint32(this.gN);return i.boxVersion=n>>24,i.flags=16777215&n,this.gN+=4,0},s.prototype.wN=function(t,i,n){var e,r=this;if(!t||!i)return null;n=n||0,r.gN+=4,r.gN+=4,0===i.boxVersion?(t.getUint32(r.gN),r.gN+=4,e=t.getUint32(r.gN),r.gN+=4):(r.PN(t),r.gN+=8,e=r.PN(t),r.gN+=8),r.gN+=2;var s=t.getUint16(r.gN);r.gN+=2;for(var o=i.boxOffset+i.boxSize+e,u=[],h=0;h<s;h++){var a=t.getUint32(r.gN);if(r.gN+=4,1===a>>>31)return null;var c=2147483647&a;r.gN+=8,u.push({brStartOffset:o+n,brEndOffset:o+n+c-1}),o+=c}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.gN=s;var o=e.parseHeader(r,i,s);o&&e.K_(r,o,n)}}},s.prototype.EN=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.PN=function(t){var i=this.gN,n=t.getUint32(i);i+=4;var e=t.getUint32(i);return n*Math.pow(2,32)+e},s.prototype.TN=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}},3288: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"}}}}},9730: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.xN("ftyp",[i,n,e])},i.prototype.moov=function(t){var i=this,n=[];n.push(i.UN(t[0].config.duration,t[0].config.timescale));for(var e=0;e<t.length;e++)n.push(i.VN(t[e]));return n.push(i.BN(t)),i.xN("moov",n)},i.prototype.moof=function(t,i){var n=this,e=[];e.push(n.FN(t));for(var r=0;r<i.length;r++){var s=n.zN(i[r]);e.push(s)}return n.xN("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.xN("mdat",i)},i.prototype.FN=function(t){var i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,t),this.GN("mfhd",0,new Uint8Array(3),[i])},i.prototype.zN=function(t){if(t){var i,n,e=this,r=[],s=32,o=e.HN(t);return s+=o.length,r.push(o),t.frames&&t.frames.length&&(s+=(i=e.YN(t.frames[0].dts)).length,r.push(i)),"video"===t.type&&(s+=(n=e.qN(t)).length),r.push(e.WN(t,s)),n&&r.push(n),e.xN("traf",r)}},i.prototype.HN=function(t){var i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,t.streamId),this.GN("tfhd",0,new Uint8Array([0,0,0]),[i])},i.prototype.YN=function(t){var i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,Math.max(0,t)),this.GN("tfdt",0,new Uint8Array([0,0,0]),[i])},i.prototype.WN=function(t,i){var n=this,e=t.frames||[],r=e.length,s=n.QN(e),o=0,u=s[1],h=0;for(h=0;h<4;h++)o+=u&1<<h?1:0;var a=new Uint8Array(4*o*r),c=new DataView(a.buffer);i+=20+a.length+8;var f=n.$N(r,i),l=0;for(h=0;h<r;h++){var v=e[h];if(1&u&&(c.setUint32(l,v.duration),l+=4),2&u&&(c.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;c.setUint32(l,d),l+=4}8&u&&(c.setUint32(l,v.pts-v.dts),l+=4)}return n.GN("trun",0,s,[f,a])},i.prototype.qN=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.GN("sdtp",0,new Uint8Array(3),[e])},i.prototype.$N=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.QN=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.UN=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.GN("mvhd",0,new Uint8Array(3),[n])},i.prototype.VN=function(t){var i=this;t.config.duration=t.config.duration||4294967295;var n=[i.XN(t)];return t.config.useEditBox&&n.push(i.ZN(t)),n.push(i.JN(t)),i.xN("trak",n)},i.prototype.XN=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.GN("tkhd",0,new Uint8Array([0,0,7]),[i])},i.prototype.ZN=function(t){return this.xN("edts",[this.KN(t)])},i.prototype.KN=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.GN("elst",0,new Uint8Array(3),[i])},i.prototype.JN=function(t){var i=this;return i.xN("mdia",[i.tR(t),i.iR(t.type),i.nR(t)])},i.prototype.tR=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.GN("mdhd",0,new Uint8Array(3),[i])},i.prototype.iR=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.GN("hdlr",0,new Uint8Array(3),[n])},i.prototype.nR=function(t){var i=this,n="audio"===t.type?i.eR():i.rR();return i.xN("minf",[n,i.sR(),i.oR(t)])},i.prototype.rR=function(){var t=new Uint8Array(8);return this.GN("vmhd",0,new Uint8Array([0,0,1]),[t])},i.prototype.eR=function(){var t=new Uint8Array(4);return this.GN("smhd",0,new Uint8Array(3),[t])},i.prototype.sR=function(){return this.xN("dinf",[this.uR()])},i.prototype.uR=function(){var t=new Uint8Array([0,0,0,1]),i=[];return i.push(t),i.push(this.b_(new Uint8Array([0,0,1]))),this.GN("dref",0,new Uint8Array(3),i)},i.prototype.b_=function(t){return this.GN("url ",0,t,[])},i.prototype.hR=function(t){return this.GN("urn ",0,t,[])},i.prototype.oR=function(t){var i=this;return i.xN("stbl",[i.aR(t),i.cR(),i.fR(),i.lR(),i.vR()])},i.prototype.aR=function(t){var i=this,n="audio"===t.type?i.dR(t):i.pR(t),e=new Uint8Array([0,0,0,1]);return i.GN("stsd",0,new Uint8Array(3),[e,n])},i.prototype.pR=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.xN("avc1",[r,i.xN("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.mR()])},i.prototype.mR=function(){var t=new Uint8Array(12);return new DataView(t.buffer).setUint32(0,1875072),this.xN("btrt",[t])},i.prototype.dR=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.xN("mp4a",[i,e,this.bR(t)])},i.prototype.bR=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.GN("esds",0,new Uint8Array(3),[i])},i.prototype.cR=function(){var t=new Uint8Array(4);return this.GN("stts",0,new Uint8Array(3),[t])},i.prototype.fR=function(){var t=new Uint8Array(4);return this.GN("stsc",0,new Uint8Array(3),[t])},i.prototype.lR=function(){var t=new Uint8Array(8);return this.GN("stsz",0,new Uint8Array(3),[t])},i.prototype.vR=function(){var t=new Uint8Array(4);return this.GN("stco",0,new Uint8Array(3),[t])},i.prototype.BN=function(t){for(var i=[],n=0;n<t.length;n++)i.push(this.yR(t[n]));return this.xN("mvex",i)},i.prototype.yR=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.GN("trex",0,new Uint8Array(3),[i])},i.prototype.GN=function(t,i,n,e){var r=new Uint8Array(1);r[0]=i;var s=[r,n];return s=s.concat(e),this.xN(t,s)},i.prototype.xN=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}},5328:function(t,i,n){"use strict";t.exports=r;var e=n(9730);function r(){this.gR=null,this.wR=new e}r.prototype.destroy=function(){this.gR=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.ER(n,u))?e.length:0}t.frames.length&&(o+=(r=i.OR(n))?r.length:0,o+=(s=i.AR(n))?s.length:0),i.gR=new Uint8Array(o);var h=0;e&&(i.gR.set(e,h),h+=e.length),r&&(i.gR.set(r,h),h+=r.length),s&&(i.gR.set(s,h),h+=s.length);var a=t.frames.length>0?t.frames[t.frames.length-1].duration:0,c=t.endTime+a;return{data:i.gR,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?c/t.config.timescale:0,endTimestamp:c}},r.prototype.ER=function(t,i){if(!t||!t.length)return null;var n=this.wR.initSegment(t,i);return n||null},r.prototype.OR=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.SR(t.type.track.config.timescale),n.duration}))})),i.wR.moof(n,t)):null},r.prototype.AR=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.wR.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.SR=function(t,i){return("audio"===t?.0232199546:.0333333333)*i}},4838:function(t,i,n){"use strict";t.exports=c;var e=n(3713),r=n(2990),s=n(6837),o=n(2999),u=n(4641),h=n(7279).AACStream,a=n(7650).HLSEvent.PCR_AVAILABLE;function c(t){var i=this;o.call(i,i.constructor.name),i.TR=t,i._u=null,i.jR="start",i.l_=new h,i.IR=!1,i.dp={},i.MR=i.__controller.create(e,t,i.NR.bind(i)),i.RR=t.lastChunkEndTs?t.lastChunkEndTs.audio:NaN,i.kR=t.lastFrameDuration?t.lastFrameDuration.audio:NaN,s.isNullOrUndefined(i.TR.pcr)&&(i.dp[a]=i.__controller.addEventListener(a,i.LR,i))}r.inherits(c,o),c.prototype.destroy=function(){var t=this;t.close(),t.MR.destroy(),t.l_.destroy(),o.prototype.destroy.call(t)},c.prototype.setSource=function(t){this.DR=t,this.LO()},c.prototype.LO=function(){var t=this;t.DR&&(t.DR.addEventListener(u.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.DR.addEventListener(u.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.DR.addEventListener(u.DATA_PROCESS_ERROR,(function(i){t.publish(u.DATA_PROCESS_ERROR,i)}),t))},c.prototype.close=function(){var t=this;t._u=null,t.__controller.removeEventListener(a,t.dp[a]),t.MR.close()},c.prototype.append=function(t){var i=this;if(t){var n=t.length;if(n){var e=null,r=0;i._u&&(r=(e=i._u).length);var s=r+n;i._u=new Uint8Array(s),e&&i._u.set(e),i._u.set(t,r),i.K_()}}},c.prototype.LR=function(t){var i=this;i.TR.pcr=t,i.K_(),i.__controller.removeEventListener(a,i.dp[a])},c.prototype.K_=function(){var t=this,i=t.TR.pcr;if(!s.isNullOrUndefined(i)){if(t._u&&t._u.length>0){var n;n=t.RR&&t.kR?i+t.RR+t.kR:i+t.TR.startTime*t.TR.timescale;var e=t.l_.readFramesFromBitstream(t._u,n);t._u=t._u.subarray(e)}var r=t.l_.getLastFrameDetails();r&&(t.RR=r.timestamp-i,t.kR=r.duration),(t.l_.ready||t.IR)&&t.CR()}},c.prototype.CR=function(){var t=this,i=t.l_.getFrames(),n=i&&i.length>0;if("end"===t.jR||n){var e=n?i[0].dts:null,r={audio:{frames:i,config:t.l_.getConfig()},pcr:e};t.MR.processSegmentData({avData:r,pos:t.jR}),"start"===t.jR&&(t.jR="middle")}},c.prototype.endOfSegment=function(){var t=this;t.jR="end",t.IR=!0,t.K_(),t.MR.endOfSegment()},c.prototype.NR=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))}},5619:function(t,i,n){"use strict";t.exports=h,t.exports.KEY_METHODS={AES_128:"AES-128",NONE:"NONE"};var e=n(4641),r=n(2990),s=n(2999),o="Key Import is rejected",u="Decryption is rejected";function h(){var t=this;t.iM=t.__controller.model.userAgent,s.call(t,t.constructor.name),"undefined"==typeof window?t.PR=crypto||msCrypto:t.PR=window.crypto||window.msCrypto,t.PR=t.PR.subtle||t.PR.webkitSubtle,t._u=null,t.xR=null,t.UR={name:"AES-CBC",length:128,iv:null}}r.inherits(h,s),h.prototype.destroy=function(){this.close(),s.prototype.destroy.call(this)},h.prototype.close=function(){var t=this;t._u=null,t.VR=null,t.xR=null,t.BR=null},h.prototype.append=function(t){t&&("key"===t.type?this.FR(t):this.zR(t))},h.prototype.zR=function(t){var i=this;if(t)if(i.VR){var n=new Uint8Array(i.VR.byteLength+t.byteLength);n.set(new Uint8Array(i.VR),0),n.set(new Uint8Array(t),i.VR.byteLength),i.VR=n}else i.VR=t},h.prototype.FR=function(t){var i=this;t&&(t.initVector||(t.initVector=i.GR(t.seqNum)),i.xR=t,i.UR.iv=i.HR(t.initVector).buffer,11!==i.iM.ie?i.PR.importKey("raw",t.data,i.UR,!0,["decrypt"]).then((function(t){i.BR=t,i.YR()}),(function(t){i.tO(o,t)})):i.qR(t))},h.prototype.qR=function(t){var i=this,n=i.PR.importKey("raw",t.data,i.UR,!0,["decrypt"]);n?(n.onerror=function(t){i.tO(o,t)},n.oncomplete=function(t){i.BR=t&&t.target?t.target.result:null,i.YR()}):i.tO("Key Import operation is not created in IE-11")},h.prototype.YR=function(){var t=this;if(t.BR&&t.VR&&t.VR.byteLength&&t.IR){var i=t.VR.buffer,n=i.byteLength-i.byteLength%16,e=i.slice(0,n);t.VR=new Uint8Array(i.slice(n)),11!==t.iM.ie?t.PR.decrypt(t.UR,t.BR,e).then((function(i){t.WR(i)}),(function(i){t.tO(u,i)})).catch((function(i){t.tO("Exception",i.toString())})):t.QR(e)}},h.prototype.QR=function(t){var i=this;if(i.BR&&t){var n=i.PR.decrypt(i.UR,i.BR,t);n?(n.onerror=function(t){i.tO(u,t)},n.oncomplete=function(t){t&&t.target&&i.WR(t.target.result)}):i.tO("Decryption operation is not created in IE-11")}},h.prototype.WR=function(t){var i=this;i.publish(e.DATA_PROCESS_PROGRESS,new Uint8Array(t)),i.IR&&(0===i.VR.byteLength?i.publish(e.DATA_PROCESS_COMPLETE):i.YR())},h.prototype.HR=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)},h.prototype.endOfSegment=function(){var t=this;t.IR=!0,t.xR&&t.BR&&t.YR()},h.prototype.tO=function(t,i){this.publish(e.DATA_PROCESS_ERROR)},h.prototype.GR=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}},5267:function(t,i,n){"use strict";t.exports=d;var e=n(6837),r=n(2990),s=n(2999),o=n(4641),u=n(2835),h=n(6473),a=n(5557),c=n(3789),f=n(1849),l=n(7279).NAL_UNIT_TYPES,v=n(2503).StreamTypes;function d(t){var i=this;s.call(i,i.constructor.name),i._u=null,i.TR=t,i.$R=new h,i.KS=new u,i.XR=new f}r.inherits(d,s),d.prototype.destroy=function(){var t=this;t._u=null,t.KS.destroy(),t.XR.destroy(),s.prototype.destroy.call(t)},d.prototype.setSource=function(t){this.DR=t,this.LO()},d.prototype.LO=function(){var t=this;t.DR&&(t.DR.addEventListener(o.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.DR.addEventListener(o.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.DR.addEventListener(o.DATA_PROCESS_ERROR,(function(i){t.publish(o.DATA_PROCESS_ERROR,i)}),t))},d.prototype.close=function(){this._u=null},d.prototype.append=function(t){var i=this;if(t){var n=t.length;if(n){var e=null,r=0;i._u&&(r=(e=i._u).length);var s=r+n;i._u=new Uint8Array(s),e&&i._u.set(e),i._u.set(t,r),i.ZR()}}},d.prototype.ZR=function(){for(var t=this;t._u&&t._u.length>=8;){var i=t._u.length,n=new DataView(t._u.buffer),e=t.KS.parse(t._u,"styp"),r=t.KS.parse(t._u,"emsg"),s=t.KS.parse(t._u,"moof"),u=t.KS.parse(t._u,"ftyp"),h=t.KS.parse(t._u,"moov");if(u&&h){t.TR.userAgent.android&&t.JR();var a=[];u&&a.push(u),h&&a.push(h);var c=t.KR(a),f=t._k(a),l=new Uint8Array(t._u.buffer.slice(c,f));t.publish(o.DATA_PROCESS_PROGRESS,{position:"init",data:l}),t._u.length>f?t._u=new Uint8Array(t._u.buffer.slice(f)):t._u=null}else{if(!s)return;var d=t.KS.findBoxOffset(n,"mdat");if(d<0)return;var p=t.KS.parseHeader(n,"mdat",d),m=[];e&&m.push(e),r&&m.push(r),s&&m.push(s),p&&m.push(p);var b=t.KR(m),y=t._k(m);if(i<y)return;var g=t.tL(),w=t.TR.timescale,_=t.iL(),E=t.nL(),O=t.eL(_,g);if(t.TR.dash){var A=Math.round(t.TR.startTime*w),S=t.TR.segDuration*w;E!==A&&(E=A,t.rL(E)),O!==S&&(t.sL(_,S),O=S)}var T=null;t.TR.type!==v.MAIN&&t.TR.type!==v.VIDEO||(T=t.oL(d,_,E,w));var j=new Uint8Array(t._u.buffer.slice(b,y));t.jR="firstByte"===t.jR?"start":"middle",t.publish(o.DATA_PROCESS_PROGRESS,{position:t.jR,data:j,cea608TrackData:T,baseTime:E,defaultSampleDuration:g,totalDuration:O,samples:_.samples}),t.TR.dash&&r&&t.uL(r),t._u.length>y?t._u=new Uint8Array(t._u.buffer.slice(y)):t._u=null}}},d.prototype.endOfSegment=function(){this.ZR(),this.publish(o.DATA_PROCESS_COMPLETE)},d.prototype.KR=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._k=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.nL=function(){var t=this.KS.parse(this._u,"tfdt");return t?t.baseMediaDecodeTime:0},d.prototype.rL=function(t){this.KS.setSingleProp(this._u,"tfdt",{name:"baseMediaDecodeTime",value:t,length:32})},d.prototype.sL=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.KS.setSingleProp(this._u,"trun",{name:"sampleDuration",value:e,length:32,pos:-1})}},d.prototype.tL=function(){var t=this.KS.parse(this._u,"tfhd");return t&&t.defaultSampleDuration>0?t.defaultSampleDuration:0},d.prototype.eL=function(t,i){return t.totalDuration?t.totalDuration:t.samples.length*i},d.prototype.iL=function(){var t=[],i=0,n=this.KS.parse(this._u,"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.uL=function(t){var i=this;if(t){var n=i.hL(t.presentationTimeDelta,t.timescale),e=t.message&&i.$R.extractID3FromMessage(t.message),r={payload:e&&i.$R.getID3Payload(e),timestamp:i.TR.startTime+n},s=new c({type:a.MessageTypes.MESSAGE,id:a.MessageIds.TIMED_METADATA});s.putParam("timedMetadata",r),i.publish(o.DATA_PROCESS_PROGRESS,s)}},d.prototype.hL=function(t,i){return 0===i?0:t/i},d.prototype.JR=function(){var t=this,i=t.KS.parse(t._u,"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.KS.setSingleProp(t._u,"esds",{name:"audioSpecificConfig0",value:s,length:8}),t.KS.setSingleProp(t._u,"esds",{name:"audioSpecificConfig1",value:o,length:8}),t.KS.setSingleProp(t._u,"esds",{name:"audioSpecificConfig2",value:0,length:8}),t.KS.setSingleProp(t._u,"esds",{name:"audioSpecificConfig3",value:0,length:8})}}},d.prototype.oL=function(t,i,n,e){for(var r=[],s=this._u.slice(t+8),o=n,u=0,h=0,a=0;a<i.samples.length;a++){var c=i.samples[a];for(h+=c.size;u<h&&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.XR.parse(s,u+1),d=0;d<v.length;d++){var p=v[d];p.pts=o+c.cto,p.dts=o,p.timescale=e,r.push(p)}u+=f}o+=c.duration}return r}},4169:function(t,i,n){"use strict";t.exports=a;var e=n(8169),r=n(4641),s=n(2990),o=n(2999),u=n(5619),h=n(5619).KEY_METHODS;function a(t){if(!t)throw new Error("Invalid argument: data argument of the ProcessorChain is not complete");var i=this;i.TR=t,i.aL=null,i.cL=null,o.call(i,i.constructor.name),t.encryptionData&&t.encryptionData.method!==h.NONE&&(i.aL=i.__controller.create(u,t.encryptionData)),i.cL=e.create(i.__controller,t.containerFormat,t),i.aL&&i.cL.setSource(i.aL),i.fL=i.aL||i.cL,i.lL=i.cL,i.lL&&(i.lL.addEventListener(r.DATA_PROCESS_PROGRESS,(function(t,n){i.publish(r.DATA_PROCESS_PROGRESS,t,n)}),i),i.lL.addEventListener(r.DATA_PROCESS_COMPLETE,(function(t){i.publish(r.DATA_PROCESS_COMPLETE,t)}),i),i.lL.addEventListener(r.DATA_PROCESS_ERROR,(function(){i.publish(r.DATA_PROCESS_ERROR)}),i))}s.inherits(a,o),a.prototype.destroy=function(){var t=this;t.aL&&(t.aL.destroy(),t.aL=null),t.cL&&(t.cL.destroy(),t.cL=null),t.fL=null,t.lL=null,o.prototype.destroy.call(t)},a.prototype.append=function(t){this.fL&&this.fL.append(t)},a.prototype.close=function(){this.fL&&this.fL.close()},a.prototype.endOfSegment=function(){this.fL&&this.fL.endOfSegment()}},4641:function(t){"use strict";t.exports={DATA_PROCESS_PROGRESS:"dataProcessProgress",DATA_PROCESS_ERROR:"dataProcessError",DATA_PROCESS_COMPLETE:"dataProcessComplete"}},8169:function(t,i,n){"use strict";var e=n(8520),r=n(4838),s=n(5267),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)}},8520:function(t,i,n){"use strict";t.exports=u;var e=n(1511),r=n(2990),s=n(2999),o=n(4641);function u(t){var i=this;s.call(i,i.constructor.name),i.TR=t,i.vL=i.__controller.create(e,t,i.NR.bind(i))}r.inherits(u,s),u.prototype.destroy=function(){this.vL.destroy(),s.prototype.destroy.call(this)},u.prototype.setSource=function(t){this.DR=t,this.LO()},u.prototype.LO=function(){var t=this;t.DR&&(t.DR.addEventListener(o.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.DR.addEventListener(o.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.DR.addEventListener(o.DATA_PROCESS_ERROR,(function(i){t.publish(o.DATA_PROCESS_ERROR,i)}),t))},u.prototype.close=function(){this.vL.close()},u.prototype.append=function(t){this.vL.append(t)},u.prototype.endOfSegment=function(){this.vL.endOfSegment()},u.prototype.NR=function(t){var i;t&&(this.publish(o.DATA_PROCESS_PROGRESS,t),t.getParam&&(i=t.getParam("parsedInfo")),"end"===(i?i.position:t.position)&&this.publish(o.DATA_PROCESS_COMPLETE,t))}},841:function(t,i,n){"use strict";t.exports=o;var e=n(2990),r=n(2999),s=n(4641);function o(t){var i=this;r.call(i,i.constructor.name),i._u=null,i.TR=t}e.inherits(o,r),o.prototype.destroy=function(){this._u=null,r.prototype.destroy.call(this)},o.prototype.setSource=function(t){this.DR=t,this.LO()},o.prototype.LO=function(){var t=this;t.DR&&(t.DR.addEventListener(s.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.DR.addEventListener(s.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.DR.addEventListener(s.DATA_PROCESS_ERROR,(function(i){t.publish(s.DATA_PROCESS_ERROR,i)}),t))},o.prototype.close=function(){this._u=null},o.prototype.append=function(t){if(t&&t.length){var i=new Uint8Array(t);this.publish(s.DATA_PROCESS_PROGRESS,{position:this.jR,data:i})}},o.prototype.endOfSegment=function(){this.publish(s.DATA_PROCESS_COMPLETE)}},5877:function(t){"use strict";function i(t){var i=this;i.dL=t,i.j_=null,i.pL=!1,i.mL=0,i.bL=[],i.yL=null,i.gL=0,i.wL=0,i._L=0,i.EL=[],i.OL=0,i.AL=0,i.SL=0,i.TL=!1,i.jL=4}t.exports=i,i.prototype.destroy=function(){this.dL=null},i.prototype.parse=function(t,i){var n=this;n.j_=i;for(var e=0;e<t.length;e++)n.IL(t[e]);n.j_=null},i.prototype.IL=function(t){var i=this;if(i.ML(t.data1)&&i.ML(t.data2)&&(i.SL=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.pL=!0),15===t.data1&&i.pL&&1===t.fieldType)i.pL=!1;else{if(t.data1>=16&&t.data1<31){if(i.NL(t.data1,t.data2))return;if(8!=(8&t.data1)&&0===t.fieldType?i.RL(0):8==(8&t.data1)&&0===t.fieldType?i.RL(1):8!=(8&t.data1)&&1===t.fieldType?i.RL(2):8==(8&t.data1)&&1===t.fieldType&&i.RL(3),null===i.yL)return;i.kL(t),i.LL(t),i.DL(t);var n=119&t.data1;17===n&&48==(112&t.data2)?i.CL(15&t.data2):18!==n&&26!==n||64&t.data2?19!==n&&27!==n||64&t.data2||i.PL(63&t.data2):i.xL(63&t.data2)}else{if(i.pL&&1===t.fieldType)return;if(t.data1>=32&&t.data1<=126){if(0===t.fieldType&&2===i.mL?i.RL(0):0===t.fieldType&&3===i.mL?i.RL(1):1===t.fieldType&&0===i.mL?i.RL(2):1===t.fieldType&&1===i.mL&&i.RL(3),null===i.yL)return;var e=i.UL(t.data1);if(i.yL.appendChar(e),t.data2>=32&&t.data2<=126){var r=i.UL(t.data2);i.yL.appendChar(r)}}}i.gL=t.data1,i.wL=t.data2}},i.prototype.kL=function(t){var i=this,n=119&t.data1,e=96&t.data2;17===n&&64===e?(i.yL.startNewRow(1),i.VL(t.data2)):17===n&&96===e?(i.yL.startNewRow(2),i.VL(t.data2)):18===n&&64===e?(i.yL.startNewRow(3),i.VL(t.data2)):18===n&&96===e?(i.yL.startNewRow(4),i.VL(t.data2)):21===n&&64===e?(i.yL.startNewRow(5),i.VL(t.data2)):21===n&&96===e?(i.yL.startNewRow(6),i.VL(t.data2)):22===n&&64===e?(i.yL.startNewRow(7),i.VL(t.data2)):22===n&&96===e?(i.yL.startNewRow(8),i.VL(t.data2)):23===n&&64===e?(i.yL.startNewRow(9),i.VL(t.data2)):23===n&&96===e?(i.yL.startNewRow(10),i.VL(t.data2)):16===n&&64===e?(i.yL.startNewRow(11),i.VL(t.data2)):19===n&&64===e?(i.yL.startNewRow(12),i.VL(t.data2)):19===n&&96===e?(i.yL.startNewRow(13),i.VL(t.data2)):20===n&&64===e?(i.yL.startNewRow(14),i.VL(t.data2)):20===n&&96===e&&(i.yL.startNewRow(15),i.VL(t.data2))},i.prototype.LL=function(t){17===(119&t.data1)&&32==(112&t.data2)&&(this.VL(t.data2),this.yL.appendChar(" "))},i.prototype.DL=function(t){var i=this,e=119&t.data1;20===e&&32===t.data2?i.yL.setMode(n.POP_ON_MODE):20===e&&33===t.data2?i.yL.backspace():20===e&&36===t.data2?i.yL.clearEndOfRow():20===e&&37===t.data2?i.yL.setMode(n.ROLL_UP_MODE,2):20===e&&38===t.data2?i.yL.setMode(n.ROLL_UP_MODE,3):20===e&&39===t.data2?i.yL.setMode(n.ROLL_UP_MODE,4):20===e&&41===t.data2?i.yL.setMode(n.PAINT_ON_MODE):20===e&&44===t.data2?i.yL.eraseDisplayMemory():20===e&&45===t.data2?i.yL.linebreak():20===e&&46===t.data2?i.yL.eraseNondisplayMemory():20===e&&47===t.data2?i.yL.endOfCaption():23===e&&33===t.data2?i.yL.setIndent(1):23===e&&34===t.data2?i.yL.setIndent(2):23===e&&35===t.data2&&i.yL.setIndent(3)},i.prototype.CL=function(t){var i=["®","°","½","¿","™","¢","£","♪","à"," ","è","â","ê","î","ô","û"],n=t;n<0||n>=i.length||this.yL.appendChar(i[n])},i.prototype.xL=function(t){var i=["Á","É","Ó","Ú","Ü","ü","´","¡","*","'","-","©","℠","·",'"','"',"À","Â","Ç","È","Ê","Ë","ë","Î","Ï","ï","Ô","Ù","ù","Û","«","»"],n=t-32;n<0||n>=i.length||this.yL.appendChar(i[n])},i.prototype.PL=function(t){var i=["Ã","ã","Í","Ì","ì","Ò","ò","Õ","õ","{","}","\\","^","_","|","~","Ä","ä","Ö","ö","ß","¥","¤","¦","Å","å","Ø","ø","┌","┐","└","┘"],n=t-32;n<0||n>=i.length||this.yL.appendChar(i[n])},i.prototype.ML=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.UL=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.NL=function(t,i){return this.gL===t&&this.wL===i},i.prototype.VL=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.yL.setColumn(n)}else 14==(14&t)&&i.yL.setItalic();1==(1&t)&&i.yL.setUnderlined()},i.prototype.RL=function(t){var i=this;i.bL[t]||(i.bL[t]=new e(t,i.onFlipMemories.bind(this),i.onEraseDisplayMemory.bind(this),i.onLinebreak.bind(this))),i.mL=t,i.yL=i.bL[t]},i.prototype.getChannel=function(t){return this.bL[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.TL&&i.onEraseDisplayMemory(t);var e=i.getChannel(t);if(e.getMode()===n.POP_ON_MODE){if(i.OL=i.SL,t===i._L){var r=i.EL;i.EL=e.getCaptionRows(),e.setCaptionRows(r);for(var s=0;s<i.EL.length;s++)i.EL[s]&&i.EL[s].hasCaptionData()&&(i.TL=!0)}e.eraseNondisplayMemory()}},i.prototype.BL=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.FL=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._L){if(r===n.POP_ON_MODE){i.AL=i.SL;for(var s=0;s<i.EL.length;s++){var o=i.EL[s];if(o&&o.hasCaptionData()){var u=o.getStartPosition(),h=i.BL(u,s+1),a=i.FL(s,i.EL,!0);s=a.rowIdx;var c=a.rowText;i.AL-i.OL>i.jL&&(i.AL=i.OL+i.jL),i.zL(c,h),i.OL+=.001,o.reset()}}}else r===n.ROLL_UP_MODE||r===n.PAINT_ON_MODE?(-1!==i.OL&&0!==i.OL||(i.OL=i.SL),i.AL>i.OL&&(i.OL=i.AL),i.GL(t),e.eraseNondisplayMemory()):r&&e.eraseNondisplayMemory();i.TL=!1}else e.eraseNondisplayMemory()},i.prototype.onLinebreak=function(t){var i=this;if(t===i._L){var e=i.getChannel(t).getMode();e!==n.ROLL_UP_MODE&&e!==n.PAINT_ON_MODE||(-1!==i.OL&&0!==i.OL||(i.OL=i.SL),i.AL>i.OL&&(i.OL=i.AL),i.GL(t))}},i.prototype.GL=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.BL(12,e),o=i.FL(e,n,!1);e=o.rowIdx;var u=o.rowText;i.AL=i.OL+1.5,i.zL(u,s),i.OL+=.001}}i.OL=-1},i.prototype.zL=function(t,i){var n=this,e="WEBVTT\nX-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:0\n\n";e+=n.HL(n.OL),e+=" --\x3e ",e+=n.HL(n.AL);for(var r=0;r<i.length;r++)e+=" "+i[r];if(e+="\n",e+=t+"\n",n.dL){var s={discontinuity:n.j_.discontinuity,sequenceNum:n.j_.seqNum,startTime:n.j_.startTime,programDateTime:n.j_.programDateTime,url:n.j_.url,duration:n.j_.duration,clockReference:0,localCueTime:0,mpegTSTime:0,data:e,offset:0,adjustedTime:0};n.dL(s)}},i.prototype.HL=function(t){var i=this,n=Math.floor(t/60/60);n=i.YL(n);var e=Math.floor(t/60%60);e=i.YL(e);var r=(t%60).toFixed(3);return n+":"+e+":"+(r=i.YL(r))},i.prototype.YL=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.qL=t,r.WL=0,r.QL=[],r.$L=null,r.XL=null,r.ZL=null,r.JL=i,r.KL=n,r.tD=e}function r(){var t=this;t.nD=32,t.rD=-1,t.sD=!1,t.oD=!1,t.uD=0,t.lD=[],t.MAX_CHARS=32}function s(){var t=this;t.character="",t.isUnderlined=!1,t.isItalic=!1}e.prototype.setMode=function(t,i){this.ZL=t,i<2?i=2:i>4&&(i=4),this.WL=i},e.prototype.getMode=function(){return this.ZL},e.prototype.vD=function(t){var i=this;if(!(t<1||t>15)){(t<i.WL||null===i.$L)&&(i.$L=i.WL);for(var n=i.QL[0],e=0;e<i.QL.length;e++)e<i.QL.length-1?i.QL[e]=i.QL[e+1]:i.QL[e]=n,(e>i.$L||i.$L-i.WL>0&&e<i.$L-i.WL)&&i.QL[e]&&i.QL[e].reset()}},e.prototype.pD=function(){var t=this;t.tD&&t.tD(t.qL)},e.prototype.startNewRow=function(t){if(!(t<1||t>15)){var i=this;i.ZL===n.ROLL_UP_MODE?i.vD(t):i.ZL===n.PAINT_ON_MODE&&i.pD(),i.$L=t,i.XL=i.getCaptionRow(t),i.XL.reset()}},e.prototype.getCaptionRows=function(){return this.QL},e.prototype.setCaptionRows=function(t){this.QL=t},e.prototype.setIndent=function(t){this.XL&&this.XL.tabIndex(t)},e.prototype.setColumn=function(t){this.XL&&this.XL.columnIndex(t)},e.prototype.setItalic=function(){this.XL&&this.XL.setIsItalic(!0)},e.prototype.setUnderlined=function(){this.XL&&this.XL.setIsUnderlined(!0)},e.prototype.appendChar=function(t){this.XL&&this.XL.writeChar(t)},e.prototype.linebreak=function(){var t=this;t.tD&&t.tD(t.qL)},e.prototype.eraseNondisplayMemory=function(){for(var t=this,i=0;i<t.QL.length;i++)t.QL[i]&&t.QL[i].reset()},e.prototype.clearEndOfRow=function(){this.XL&&this.XL.clearToEnd()},e.prototype.backspace=function(){this.XL&&this.XL.backspace()},e.prototype.eraseDisplayMemory=function(){this.KL(this.qL)},e.prototype.endOfCaption=function(){this.JL(this.qL)},e.prototype.getCaptionRow=function(t){var i=this;if(t<1||t>15)return null;var n=t-1;return i.QL[n]||(i.QL[n]=new r),i.QL[n]},r.prototype.reset=function(){var t=this;t.oD=!1,t.sD=!1;for(var i=0;i<t.lD.length;i++)t.lD[i]&&t.lD[i].reset();t.uD=0,t.nD=32,t.rD=-1},r.prototype.clearToEnd=function(){for(var t=this,i=t.uD;i<t.lD.length;i++)t.lD[i]&&t.lD[i].reset()},r.prototype.columnIndex=function(t){t<0||t>=this.MAX_CHARS||(this.uD=t)},r.prototype.tabIndex=function(t){this.mD(t)},r.prototype.writeChar=function(t){var i=this,n=i.lD[i.uD];n||(i.lD[i.uD]=new s,n=i.lD[i.uD]),n.setValue(t,i.oD,i.sD),i.uD<i.nD&&(i.nD=i.uD),i.uD>i.rD&&(i.rD=i.uD),i.mD(1)},r.prototype.backspace=function(){var t=this;t.uD>0&&(t.lD[t.uD].reset(),t.uD--)},r.prototype.mD=function(t){var i=this;i.uD+t<i.MAX_CHARS?i.uD+=t:i.uD=i.MAX_CHARS-1},r.prototype.setIsItalic=function(t){this.oD=t},r.prototype.setIsUnderlined=function(t){this.sD=t},r.prototype.hasCaptionData=function(){return 32!==this.nD||-1!==this.rD},r.prototype.getCharacterAt=function(t){return t<0||t>=this.MAX_CHARS?null:this.lD[t]},r.prototype.getStartPosition=function(){return this.nD},r.prototype.getEndPosition=function(){return this.rD},r.prototype.toString=function(){var t=this,i="",n=!1,e=!1;if(t.hasCaptionData())for(var r=t.nD;r<=t.rD;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}},4939: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(2990),s=n(2999),o=n(7572),u=n(902),h=0,a=3,c=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._S=n,e.window=e._S?null:i||window,e.yD=null,e.wD={},e._D=[1e3,1e3,2e3,2e3,3e3,3e3,5e3],e.ED=5e3,e.OD=new u(1e3,1),e.OD.addEventListener(e.load,e),e.MIN_TIMEOUT=2e3,e.MAX_TIMEOUT=15e3,e.SD=0,e.h_=t.maxRetries,e.TD=new u(e.MD(),1),e.TD.addEventListener(e.ND,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.RD(),e.yD=e._S?new XMLHttpRequest:new e.window.XMLHttpRequest,e.yD.LD=0,e.yD.DD=!1,e.CD(),e.yD.withCredentials=e.request.withCredentials,e.yD.open(e.request.method,e.url,!0),e.PD=e.request.headerFields,e.PD&&Object.keys(e.PD).forEach((function(t){e.yD.setRequestHeader(t,e.PD[t])})),e.xD(),e.TD.reset(),e.TD.start(),e.yD.send(n)},l.prototype.xD=function(){this.yD.responseType=this.request.responseType},l.prototype.CD=function(){var t=this;t.yD.onerror=t.qI.bind(t),t.yD.onreadystatechange=function(){if(t.yD&&t.yD.readyState===c&&!t.yD.DD){if(!t.UD(t.yD.status))return t.TD.stop(),t.qI();t.yD.DD=!0;var n={data:t.yD.response};if(t.request.withResponseHeaders){var e=t.yD.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.TD.stop()}}},l.prototype.VD=function(t){var i=new RegExp(t+": (.*)","ig"),n=this.yD.getAllResponseHeaders(),e=i.exec(n);return e&&e.length>1?e[1]:""},l.prototype.UD=function(t){return t>=200&&t<300},l.prototype.BD=function(){Date.now(),this.FD;this.TD.stop()},l.prototype.ND=function(){this.BD(),this.qI()},l.prototype.zD=function(){this.reset(),this.GD(o.ERR_PARTIAL_LOAD)},l.prototype.HD=function(){var t=this,i=t._D.length,n=t.SD;return n<i?t._D[n]:t._D[i-1]+t.ED*(n-i+1)},l.prototype.qI=function(){var t=this;t.RD(),t.SD<t.h_&&(!t.request.retryExclusion||-1===t.request.retryExclusion.indexOf(t.yD.status))?(t.SD++,t.OD.delay=t.HD(),t.OD.reset(),t.OD.start(),t.request.headerFields&&t.yD.readyState===c&&0===t.yD.status&&(t.request.headerFields=null)):t.request.stopStreamLoadOnError?t.GD(o.ERR_XHR_LOAD_LIVE_PAUSE):403===t.yD.status?t.GD(o.ERR_XHR_LOAD_FORBIDDEN):t.GD(o.ERR_XHR_LOAD)},l.prototype.GD=function(t){this.publish(i.Events.ERROR,new o.Error(t))},l.prototype.RD=function(){var t=this;t.yD&&t.yD.readyState!==c&&t.yD.readyState!==h&&(t.yD.DD=!0,t.yD.abort()),t.OD.stop(),t.TD.stop()},l.prototype.MD=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.RD(),t.yD=null,t.request=null},l.prototype.destroy=function(){var t=this;t.reset(),t.OD.destroy(),t.TD.destroy(),s.prototype.destroy.call(t)},v.prototype.destroy=function(){l.prototype.destroy.call(this)},v.prototype.CD=function(){var t=this,n=function(){if(t.yD&&!t.yD.DD&&(t.yD.readyState===c||t.yD.readyState===a)){if(!t.UD(t.yD.status))return t.TD.stop(),0===t.yD.LD?t.qI():void t.zD();var n=t.yD.responseText,e=n.length-t.yD.LD;if(e>0&&(t.TD.stop(),t.publish(i.Events.BYTES_LOADED,n.length,t.wD)),e>t.request.minChunkSize||t.yD.readyState===c){for(var r=new Uint8Array(e),s=0;s<e;s++)r[s]=255&n.charCodeAt(s+t.yD.LD);t.yD.LD=n.length,t.publish(i.Events.PROGRESS,r,n.length)}t.TD.start(),t.yD.readyState===c&&(t.yD.DD=!0,t.publish(i.Events.COMPLETE),t.TD.stop())}};t.yD.onreadystatechange=n,t.yD.onprogress=n},v.prototype.ND=function(){var t=this;t.BD(),t.yD.LD>0&&t.yD.readyState===a?t.zD():t.qI()},v.prototype.xD=function(){this.yD.overrideMimeType("text/plain; charset=x-user-defined")},d.prototype.destroy=function(){v.prototype.destroy.call(this)},d.prototype.CD=function(){var t=this;t.yD.onreadystatechange=function(){if(t.yD.readyState===a){if(!t.UD(t.yD.status))return t.TD.stop(),t.qI();var n=t.yD.response;if(t.YD||(t.YD=t._S?new MSStreamReader:new t.window.MSStreamReader),t.YD.readyState===f)return;t.YD.readAsArrayBuffer(n),t.YD.onprogress=function(){t.TD.stop();var n=t.YD.result;n.byteLength>0&&t.publish(i.Events.BYTES_LOADED,n.byteLength,t.wD);var e=new Uint8Array(n.slice(t.yD.LD,n.byteLength));t.yD.LD=n.byteLength,t.publish(i.Events.PROGRESS,e,n.byteLength),t.TD.start()},t.YD.onload=function(){t.TD.stop(),t.publish(i.Events.COMPLETE)},t.YD.onerror=function(){t.TD.stop()}}}},d.prototype.xD=function(){this.yD.responseType="ms-stream"},d.prototype.reset=function(){var t=this;l.prototype.reset.call(t),t.YD&&t.YD.abort()}},1788:function(t,i,n){"use strict";t.exports=g;var e=n(574),r=e.MetadataTypes,s=e.StreamingMode,o=n(2503).StreamTypes,u="#EXT-X-STREAM-INF:",h="#EXT-X-MEDIA:TYPE=SUBTITLES,",a="#EXT-X-MEDIA:",c="#EXTINF:",f="#EXT-X-MEDIA-SEQUENCE:",l="#EXT-X-DISCONTINUITY-SEQUENCE:",v="#EXT-X-TARGETDURATION:",d="#EXT-X-PROGRAM-DATE-TIME:",p="#EXT-X-DATERANGE:",m="#EXT-X-BYTERANGE:",b="#EXT-X-MAP",y="#EXT-X-KEY";function g(){this.qD=[],this.ERRORS={INVALID_M3U8:1,EMPTY_DATA:2,NO_SEGMENTS:3}}g.prototype.parse=function(t){if(!t)return null;return t.type===r.STRUCTURED?this.parseStructuredMetadata(t):this.WD(t)},g.prototype.WD=function(t){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(c)>0?i.QD(r,t):e.indexOf(u)>0?i.$D(r,t):(n.error=i.ERRORS.INVALID_M3U8,n)},g.prototype.parseStructuredMetadata=function(t){var i=this,n={};return n.streamInfoList=i.parseStreamInfo(t.streams),t.hasStreamMetadata&&n.streamInfoList.forEach((function(t){t.segmentInfoList=i.parseSegmentInfo(t.hlsInfo,t.initSegment,t.index),t.duration=0,t.segmentInfoList.forEach((function(i){t.duration+=i.duration})),t.hasEndList=!0,t.targetDuration=t.hlsInfo.segment_duration})),t.hasAltStreamMetadata&&(n.renditionGroups={},t.altStreams.forEach((function(t){var e,r=t.manifestContent;r&&0===r.indexOf(h)?((e=i.XD(r,t.host)).type=o.SUBTITLES,e.containerFormat="vtt"):(e=i.parseStreamInfo([t])[0]).hlsInfo&&(e.segmentInfoList=i.parseSegmentInfo(e.hlsInfo,e.initSegment)),i.ZD(n.renditionGroups,e)}))),n},g.prototype.$D=function(t,i){for(var n=this,e=[],r={},s=i.url,o=i.cdn,h=0;h<t.length;h++){var c=null,f=t[h].trim();if(0===f.indexOf(u)){c=n.JD(n.KD(f.substr(u.length)));do{f=t[++h]}while(f.match(/^\s*$/));c.url=n.uC(f,s),c.cdn=o,e.push(c)}else 0===f.indexOf(a)&&(f=f.replace(/"/g,""),c=n.wC(n.KD(f.substr(a.length)),s),n.ZD(r,c))}return{streamInfoList:e,renditionGroups:r}},g.prototype.ZD=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]}},g.prototype.KD=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},g.prototype.QD=function(t,i){var n=this,e={},r={},u=[],h=[],a={streamInfoList:[],renditionGroups:{}};if(!t||!t.length)return a;var g=i.url,w=i.index;r.discontinuity=!1,r.sequenceNum=0,r.startTime=0,r.programDateTime=0,r.brStartOffset=-1,r.brEndOffset=-1,r.levelIndex=w,e.discontinuitySeqNum=0,e.index=w,e.targetDuration=0,e.hasEndList=!1,e.url=g,e.duration=0,e.containerFormat="",e.streamingMode=s.HLS,e.dateRanges=[];for(var _=0;_<t.length;_++){var E=t[_].trim();if(!E.match(/^\s*$/)){if(0===E.indexOf(f)&&(e.seqNum=parseInt(E.substr(f.length)),r.sequenceNum=e.seqNum),0===E.indexOf(l))e.discontinuitySeqNum=parseInt(E.substr(l.length));else if(0===E.indexOf("#EXT-X-DISCONTINUITY"))r.discontinuity=!0;else if(0===E.indexOf(v))e.targetDuration=parseFloat(E.substr(v.length));else if(0===E.indexOf(b)){var O=n._C(E,g);r.initSegment=O}else if(0===E.indexOf(y))r.encryptionData=n.tP(E,g);else if(0===E.indexOf(d))r.programDateTime=n.iP(E);else if(0===E.indexOf(p)){var A=n.nP(E);A&&e.dateRanges.push(A)}else if(0===E.indexOf(c)){var S=E.indexOf(",");r.duration=-1===S?parseFloat(E.substr(c.length)):parseFloat(E.substr(c.length,S-c.length)),e.duration+=r.duration;do{E=t[++_].trim()}while(E.match(/^\s*$/));if(0===E.indexOf(m)){var T=E.substr(m.length,E.length-m.length),j=T.indexOf("@");r.brStartOffset=parseInt(T.substr(j+1,T.length-j-1)),r.brEndOffset=r.brStartOffset+parseInt(T.substr(0,j))-1;do{E=t[++_].trim()}while(E.match(/^\s*$/))}r.url=n.uC(E,g),r.containerFormat=n.eP(r.url),e.containerFormat=r.containerFormat,u.push(n.rP(r)),r.startTime+=r.duration,r.sequenceNum++,r.programDateTime=0,r.brStartOffset=-1,r.brEndOffset=-1,r.encryptionData&&(r.encryptionData.initVector=null)}else 0===E.indexOf("#EXT-X-ENDLIST")&&(e.hasEndList=!0);if(E.indexOf("#EXT-X-CUE-OUT:")>=0){var I=n.sP(r.sequenceNum,E);h.push(I)}}}if(u.length&&(e.segmentInfoList=u,e.initSegment=u[0].initSegment),h.length&&(e.cuepointList=h),i.streamType&&i.streamType!==o.MAIN){var M=a.renditionGroups;e.type=i.streamType,e.groupId=i.groupId,e.name=i.name,n.ZD(M,e)}else a.streamInfoList.push(e);return a},g.prototype.JD=function(t){if(!t)return null;var i={streamingMode:s.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},g.prototype.eP=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},g.prototype.uC=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)},g.prototype.XD=function(t,i){var n=(t=t.replace(/"/g,"")).substr(h.length).split(",");return this.oP(n,t,i)},g.prototype.oP=function(t,i,n){var e=this,r={};return t&&t.length&&(t.forEach((function(t){t.indexOf("GROUP-ID")>-1?r.groupId=t.split("=")[1]:t.indexOf("LANGUAGE")>-1?r.language=t.split("=")[1]:t.indexOf("NAME")>-1?r.name=t.split("=")[1]:t.indexOf("AUTOSELECT")>-1?r.autoSelect="YES"===t.split("=")[1]:t.indexOf("DEFAULT")>-1?r.default="YES"===t.split("=")[1]:t.indexOf("URI")>-1?r.url=e.uC(t.substr(4),n):t.indexOf("FORCED")>-1&&(r.forced="YES"===t.split("=")[1])})),r.streamingMode=s.HLS),r},g.prototype.wC=function(t,i){var n=this;if(!t)return null;var e={streamingMode:s.HLS};return Object.keys(t).forEach((function(r){var s=t[r];switch(r){case"TYPE":e.type=s,e.type===o.SUBTITLES&&(e.containerFormat="vtt");break;case"GROUP-ID":e.groupId=s;break;case"LANGUAGE":e.language=s;break;case"NAME":e.name=s;break;case"AUTOSELECT":e.autoSelect="YES"===s;break;case"DEFAULT":e.default="YES"===s;break;case"FORCED":e.forced="YES"===s;break;case"URI":e.url=n.uC(s,i)}})),e},g.prototype.uP=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},g.prototype._C=function(t,i){if(!t)return null;for(var n={},e=t.substr(b.length+1).split(","),r=0;r<e.length;r++){var s=e[r].split("=");if(0===s[0].indexOf("URI"))n.url=this.uC(e[r].substr(5,e[r].length-6),i);else if(0===s[0].indexOf("BYTERANGE")){var o=s[1].indexOf("@");n.range={start:parseInt(s[1].substr(o+1,s[1].length-o-2)),end:parseInt(s[1].substr(1,o-1)-1)}}}return n},g.prototype.tP=function(t,i){if(!t)return null;for(var n={},e=t.substr(y.length+1).split(","),r=0;r<e.length;r++){var s=e[r].split("=");0===s[0].indexOf("URI")?n.keyUri=this.uC(e[r].substr(5,e[r].length-6),i):0===s[0].indexOf("METHOD")?n.method=s[1]:0===s[0].indexOf("IV")&&(n.initVector=s[1])}return n},g.prototype.iP=function(t){return t?this.hP(t.substr(d.length)):0},g.prototype.hP=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]),h=e[1],a=0;if(h.indexOf("Z")>=0)i=h.substr(0,h.indexOf("Z")).split(":");else if(h.indexOf("+")>=0){var c=h.split("+");i=c[0].split(":"),n=c[1].split(":"),a=-1}else if(h.indexOf("-")>=0){var f=h.split("-");i=f[0].split(":"),n=f[1].split(":"),a=1}else h.indexOf(".")>=0&&(i=h.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+a*parseInt(n[0]))%24,(v+=a*parseInt(n[1]))>=60?(l++,v-=60):v<0&&(l--,v+=60));return new Date(Date.UTC(s,o,u,l,v,d)).getTime()},g.prototype.nP=function(t){var i=this;if(!t)return null;var n=(t=t.replace(/"/g,"")).substr(p.length).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.hP(n):t.indexOf("DURATION")>-1?e.duration=parseInt(n):t.indexOf("END-DATE")>-1?e.endDate=i.hP(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},g.prototype.rP=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},g.prototype.parseStreamInfo=function(t){var i=this;if(!t)return null;var n=[];return t.forEach((function(t,e){var r=t.host;t.path&&""!==t.path?r+=t.path:t.url&&(r=t.url);var u={streamingMode:s.HLS,bitrate:1e3*t.bitrate,avgBitrate:t.avgBitrate?1e3*t.avgBitrate:0,channels:t.channels,height:t.height,width:t.width,url:r,index:e,hlsInfo:t.hls_info,cdn:t.cdn,rcMode:t.rcMode||"cbr",format:t.format,audioCodec:t.acodec,videoCodec:t.vcodec,autoSelect:t.auto_select,default:t.default,type:(t.type||o.MAIN).toUpperCase(),name:t.name,groupId:t.group_id,language:t.language,forced:t.forced};if(t.alt_renditions&&(u.audioGroupId=t.alt_renditions.audio_group_id,u.videoGroupId=t.alt_renditions.video_group_id,u.subtitlesGroupId=t.alt_renditions.subtitle_group_id,u.ccGroupId=t.alt_renditions.cc_group_id),u.hlsInfo&&u.hlsInfo.mp4_url){var h=u.hlsInfo;u.initSegment={url:h.mp4_url},h.init_segment_offset>=0&&h.init_segment_length>=0&&(u.initSegment.range={start:h.init_segment_offset,end:h.init_segment_offset+h.init_segment_length-1}),u.sidxOffset=h.sidx_offset,u.sidxLength=h.sidx_length,u.firstSegOffset=h.first_segment_offset,u.firstSegLength=h.first_segment_length}if(t.manifestContent&&t.manifestContent.indexOf("SUBTITLES")>-1){var a=t.manifestContent.split('SUBTITLES="')[1];u.subtitlesGroupId=a.substr(0,a.indexOf('"'))}if(u.hlsInfo){var c=u.hlsInfo.ts_url||u.hlsInfo.mp4_url;u.containerFormat=i.eP(c,u.hlsInfo.mime_type)}n.push(u)})),n},g.prototype.parseSegmentInfo=function(t,i,n){if(!t)return null;var e=[],r={brStartOffset:-1,brEndOffset:-1,programDateTime:0,discontinuity:!1};r.sequenceNum=t.start_index,r.startTime=0,r.initSegment=i;var s="",o="_xx.ts";t.ts_url&&(s=t.ts_url.indexOf("?")>=0?"&":"?");for(var u=0;u<t.segments_count;u++){if(t.ts_url)if(t.ts_url.indexOf(o)>=0){var h="_"+r.sequenceNum.toString()+".ts";r.url=t.ts_url.replace(o,h),r.url=r.url+s+"yh=1"}else r.url=t.ts_url+s+"num="+r.sequenceNum.toString();else r.url=t.mp4_url,0===u&&(r.brStartOffset=t.first_segment_offset,r.brEndOffset=r.brStartOffset+t.first_segment_length-1);r.levelIndex=n,r.duration=t.segment_duration,u===t.segments_count-1&&(r.duration=t.last_segment_duration),r.containerFormat=this.eP(r.url,t.mime_type),e.push(this.rP(r)),r.sequenceNum++,r.startTime+=r.duration,r.brStartOffset=-1,r.brEndOffset=-1}return e},g.prototype.aP=function(t){var i=t.split(":"),n=0;return i.length>1&&(n=1e3*parseFloat(i[1])),n},g.prototype.sP=function(t,i){var n=t;if(!(n<0)){var e=this.aP(i),r={};return r.startSeqNum=n,r.startTime=NaN,r.cuepointDuration=e,r}}},7580:function(t,i,n){"use strict";t.exports=h;var e=n(574).StreamingMode,r=n(2503).StreamTypes,s=n(2990),o="BaseURL",u="$RepresentationID$";function h(){var t=this;t.qD=[],t.cP=null,t.fP="blah",t.lP=null,t.vP=null,t.ERRORS={INVALID_MPD:1,EMPTY_DATA:2,NO_SEGMENTS:3}}h.prototype.destroy=function(){},h.prototype.dP=function(t){return t?Date.parse(t):0},h.prototype.pP=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},h.prototype.mP=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},h.prototype.bP=function(t,i,n,e,r,s,o,u,h){var a=this,c={brEndOffset:h||-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===a.vP?(a.vP=c.startTime,c.startTime=0):(c.startTime-=a.vP,c.startTime=Math.round(1e3*c.startTime)/1e3),c},h.prototype.yP=function(t,i,n,s,o,u,h,a){var c=this,f=c.gP(i,n),l=c.wP(n),v=c._P(n),d=o>v?o/l:v/l,p={groupId:n.id,bitrate:parseInt(n.bandwidth),codecs:[n.codecs],containerFormat:this.eP(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:a},url:h,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 m={},b=0;b<i.drm.length;b++){var y=i.drm[b];m.periodId=t.id;var g={prefix:null!==c.lP?c.lP:"",pssh:y.pssh};"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===y.schemeIdUri?(g.type="wv",m.widevine=g):"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"===y.schemeIdUri&&(g.type="pr",g.pro=y.pro,m.playready=g)}p.drmInfo.push(m)}return p},h.prototype.wP=function(t){return t.segmentList?parseInt(t.segmentList.timescale,10):t.segmentTemplate?parseInt(t.segmentTemplate.timescale,10):1e3},h.prototype._P=function(t){var i=this.wP(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},h.prototype.EP=function(t,i,n,e,r,o,h,a){var c=this,f=new RegExp(/\$Number%([\d|.|\+]*[a-zA-Z])\$/),l=t.startMS,v=t.durationMS,d=c._P(i),p=[],m="",b=null,y=this.eP(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-=_,m=n&&!s.isAbsoluteUrl(w)?n+w:w,p.push(c.bP(_,t.id,g,l,y,m,{url:e})),l+=_}else if(i.segmentTemplate){var E=i.segmentTemplate;if(E.segmentTimeline)for(var O=E.segmentTimeline.sElements,A=parseInt(E.startNumber),S=l,T=this.wP(i),j=0;j<O.length;j++)for(var I=O[j],M=I.r?parseInt(I.r)+1:1,N=1e3*parseInt(I.t)/T||S,R=1e3*parseInt(I.d)/T,k=0;k<M;k++){var L=n+E.media.replace("$Number$",A);p.push(c.bP(R,t.id,A++,N,y,L,{url:e})),S+=R,N+=R}else{var D=parseInt(E.startNumber,10),C=0,P=Math.ceil(t.durationMS/d),x=0,U=0,V=0;if("dynamic"===a?(x=Math.min(Math.floor((o-t.startMS)/d),P),U=Math.max(Math.floor((o-t.startMS-h)/d),1)):(x=P,U=1),x<=0||U>x)C=0;else{var B=U-1;D+=B,C=x===U?1:x-U+1,V=t.startMS+B*d,v-=B*d,C<0&&(C=0)}for(var F=E.media.replace(u,i.id),z=f.test(F)?F.match(f)[1]:"",G=D;G<C+D;G++){var H=F.replace(f,c.mP(z,G)),Y=Math.min(d,v);v-=Y,m=n&&!s.isAbsoluteUrl(H)?n+H:H,b=c.bP(Y,t.id,G-D,V,y,m,{url:e}),p.push(b),V+=Y}}}return p},h.prototype.eP=function(t){return t?t.split("/")[1]:"mp4"},h.prototype.OP=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},h.prototype.AP=function(t){return(new DOMParser).parseFromString(t,"application/xml")},h.prototype.parse=function(t){var i=this,n={};if(!t)return null;var o=i.AP(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.lP=t.value)})),i.cP=o,i.SP(o.documentElement,n);var u=i.dP(n.publishTime),h=i.TP(u);n.streamingMode=e.DASH,n.drm=!1,n.reloadUrl=t.url;for(var a=[],c=o.documentElement.childNodes,f=0;f<c.length;f++){var l=c[f];if(1===l.nodeType)if("Period"===l.nodeName){var v=i.jP(l);null!==v&&a.push(v)}else"Location"===l.nodeName&&(n.reloadUrl=l.childNodes[0].nodeValue)}for(var d=[],p=[],m=[],b=i.pP(n.mediaPresentationDuration),y=i.pP(n.minimumUpdatePeriod),g=i.pP(n.suggestedPresentationDelay),w=i.dP(n.availabilityStartTime),_=0,E=-1,O=0;O<a.length;O++){var A=a[O];A.startMS=i.IP(A,w,_),-1===E&&(E=A.startMS);var S=O+1<a.length?a[O+1]:null;A.endMS=i.MP(A,A.startMS,w,S,E,b,y,h),A.durationMS=A.endMS-A.startMS;for(var T=0;T<A.adaptationSets.length;T++)for(var j=A.adaptationSets[T],I=0;I<j.representations.length;I++){var M=j.representations[I],N=i.gP(j,M),R=M.baseURL||j.baseURL||s.getParentDir(n.reloadUrl),k=i.OP(M,R),L=i.yP(A,j,M,b,y,n.type,n.reloadUrl,k),D=i.EP(A,M,R,k,E,h,g,n.type);D.length>0&&(Array.prototype.push.apply(L.segmentInfoList,D),N===r.VIDEO?i.NP(d,L):N===r.AUDIO?i.NP(p,L):N===r.SUBTITLES&&i.NP(m,L)),j.drm.length>0&&(n.drm=!0)}_+=A.durationMS}this.RP(p),this.RP(m);var C={AUDIO:{audio:p},SUBTITLES:{subs:m}};return n.streamInfoList=d,n.renditionGroups=C,n},h.prototype.RP=function(t){t&&t.length>0&&(t[0].autoSelect=!0,t[0].default=!0)},h.prototype.NP=function(t,i){for(var n=0;n<t.length;n++)if(t[n].groupId===i.groupId)return void this.kP(t[n],i);i.index=t.length,t.push(i)},h.prototype.gP=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},h.prototype.kP=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)},h.prototype.SP=function(t,i){for(var n=t.attributes,e=0;e<n.length;e++)i[n[e].nodeName]=n[e].nodeValue;return n.length},h.prototype.jP=function(t){var i=this,n={adaptationSets:[]};i.SP(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.SP(r,s),n.assetIdentifier=s}else if("AdaptationSet"===r.nodeName){var o=i.LP(r);null!==o&&n.adaptationSets.push(o)}}return n},h.prototype.LP=function(t){var i=this,n={representations:[],drm:[]};i.SP(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.SP(r,s),n.role=s}else if(r.nodeName===o)n.baseURL=r.childNodes[0].nodeValue;else if("ContentProtection"===r.nodeName){var u=i.DP(r);null!==u&&n.drm.push(u)}else if("Representation"===r.nodeName){var h=i.CP(r);null!==h&&n.representations.push(h)}else r.nodeName}return n},h.prototype.DP=function(t){var i={};this.SP(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.SP(e,r),i.laurl=r}}return i},h.prototype.CP=function(t){var i=this,n={};i.SP(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.SP(r,s),n.audioChannnelConfiguration=s}else if(r.nodeName===o)n.baseURL=r.childNodes[0].nodeValue;else if("SegmentTemplate"===r.nodeName){var u=i.PP(r);n.segmentTemplate=u}else if("SegmentList"===r.nodeName){var h=i.xP(r);null!==h&&(n.segmentList=h)}}return n},h.prototype.PP=function(t){var i={};this.SP(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.VP(e);i.segmentTimeline=r}}return i},h.prototype.VP=function(t){var i={sElements:[]};this.SP(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.SP(e,r),i.sElements.push(r)}}return i},h.prototype.xP=function(t){var i={segments:[]};this.SP(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.SP(e,r),i.initialization=r}else if("SegmentURL"===e.nodeName){var s=e.getAttribute("media");null!==s&&i.segments.push(s)}}return i},h.prototype.IP=function(t,i,n){return t.start?i+this.pP(t.start):n},h.prototype.MP=function(t,i,n,e,r,s,o,u){return t.duration?i+this.pP(t.duration):e&&e.start?n+this.pP(e.start):s?n+r+s:o+u},h.prototype.TP=function(t){var i=this,n=Date.now();return i.BP||(i.BP=n-t),n-i.BP}},9719:function(t,i,n){"use strict";t.exports=s;var e=n(7650).HLSEvent,r=n(902);function s(){var t=this;t.n_=t.tE.appModel,t._node=t.tE.node,t.FP={currentStreamBitrate:0,frameDrop:0,frameRateSum:0,frameRateSampleCount:0,currentKbps:0,deliveryProtocol:t.zP(),bufferingCount:0,totalBufferingTime:0,streamingMode:t.n_.streamingMode},t.FRAMERATE_SAMPLE_SIZE=4,t.GP={prevTotalFrames:0,prevTotalDroppedFrames:0,prevFrameRateMeasuredTime:0,frameRateSampleCollector:[],currentFrameRate:0},t.vT=new r(1e3),t.vT.addEventListener(t.HP,t)}s.prototype.destroy=function(){this.FP=null,this.vT.destroy()},s.prototype.onPlay=function(){this.vT.start()},s.prototype.onPlaying=function(){this.HP()},s.prototype.onPause=function(){this.vT.stop()},s.prototype.updateBufferingInfo=function(t){t&&(t.value||t.bufferInit||(this.FP.bufferingCount++,this.FP.totalBufferingTime+=t.waitTime))},s.prototype.HP=function(){var t=this,i=t.n_.streams,n=t.FP,r=t.n_.getCurrentPlayingStream(),s=t.getFpsStats();r&&(n.currentStreamIndex=t.n_.currentPlayingStreamIndex,n.currentStreamBitrate=r.bitrate/1e3,n.mediaWidth=r.width,n.mediaHeight=r.height),i.length&&(n.qualityLevels=i.length,n.minBitRate=i[0].bitrate,n.maxBitRate=i[n.qualityLevels-1].bitrate),n.bufferLength=t.n_.getBufferLength().toFixed(2),n.bufferLength<=5&&t._node.buffered.length,n.frameRate=s.frameRate.toFixed(2),n.droppedFrames=s.droppedFrames,n.currentKbps=(1e3*t.n_.currentKbps).toFixed(0),n.streamingMode=t.n_.streamingMode,n.drm=t.n_.drmRequired,n.drmsys=t.n_.licenseType,t.n_.infoUpdateSent=!0,t.tE.sendEvent(e.INFO_UPDATE,{mediaInfo:t.FP})},s.prototype.getWindow=function(){return window},s.prototype.zP=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.GP,o=e.currentTime-s.prevFrameRateMeasuredTime,u=n.YP(),h=0;return(u.isWebKitFpsAvailable||u.isNonWebKitFpsAvailable)&&(t=u.isWebKitFpsAvailable?e:e.getVideoPlaybackQuality(),i=u.isWebKitFpsAvailable?t.webkitDecodedFrameCount:t.totalVideoFrames,h=u.isWebKitFpsAvailable?t.webkitDroppedFrameCount:t.droppedVideoFrames,(r=s.prevFrameRateMeasuredTime>0&&0!==o?(i-s.prevTotalFrames-(h-s.prevTotalDroppedFrames))/o:s.currentFrameRate)&&s.frameRateSampleCollector.push(r),n.qP(),s.prevTotalFrames=i,s.prevTotalDroppedFrames=h,s.prevFrameRateMeasuredTime=e.currentTime),{frameRate:s.currentFrameRate,droppedFrames:h}},s.prototype.YP=function(){var t=this._node;return{isWebKitFpsAvailable:void 0!==t.webkitDecodedFrameCount,isNonWebKitFpsAvailable:"function"==typeof t.getVideoPlaybackQuality}},s.prototype.qP=function(){var t=this,i=t.GP.frameRateSampleCollector;if(i.length>=t.FRAMERATE_SAMPLE_SIZE){var n=i.reduce((function(t,i){return t+i}));t.GP.currentFrameRate=n/i.length,i.splice(0,i.length)}}},2175:function(t,i,n){"use strict";t.exports=u;var e=n(574).StreamingMode,r=n(574).MetadataTypes,s=n(7580),o=n(1788);function u(){this.ERRORS={INVALID_M3U8:1,EMPTY_DATA:2,NO_SEGMENTS:3},this.mpdParser=new s}u.prototype.destroy=function(){this.mpdParser.destroy()},u.prototype.parse=function(t){if(!t)return null;return t.type===r.STRUCTURED?(new o).parseStructuredMetadata(t):this.WD(t)},u.prototype.WD=function(t){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 o).parse(t)):(n.error=i.ERRORS.INVALID_M3U8,n):(n.error=i.ERRORS.EMPTY_DATA,n)}},5409:function(t,i,n){"use strict";t.exports=r;var e=n(7650).HLSEvent;function r(){var t=this;t.n_=t.__controller.model,t.WP=!1,t.XO=!1,t.QP=[],t.$P=[],t.XP=null,t.ZP=null,t.dp={},t.JP=NaN,t.KP(),t._x=0,t.tU=0,t.iU=0,t.nU=!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.QP=[],t.$P=[],t.ZP=null,t.XP=null,t.eU()},r.prototype.KP=function(){var t=this;t.dp[e.WAITING]=t.__controller.addEventListener(e.WAITING,t.rU,t)},r.prototype.eU=function(){this.__controller.removeEventListeners(this.dp)},r.prototype.onComplete=function(){this.segmentRenderNext()},r.prototype.onTimeUpdate=function(t){var i=this,n=i.n_.getCurrentPlayingStream();if(i._x=t,i.updateRenderState(i.ZP,i._x),i.n_.live&&n&&n.cuepoints.length>0&&i.cuepointEventDispatcher(i._x,n.cuepoints),n&&i.sU(n,i._x),t>0&&i.ZP){var r=i.oU();r&&i.__controller.sendEvent(e.TIMED_METADATA_READY,r.payload)}},r.prototype.sU=function(t,i){var n=this,e=Object.values(t.dateRanges);n.ZP&&e.length&&n.uU(n.ZP,e,i)},r.prototype.uU=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],h=null;!u.endDate&&u.duration?h=u.startDate+1e3*u.duration:u.endDate&&(h=u.endDate);var a=r.currentDateranges.indexOf(u.id),c=a>-1;!c&&u.startDate&&s>=u.startDate&&(!h||s<h)?(r.__controller.sendEvent(e.DATE_RANGE_STARTED,u),r.currentDateranges.push(u.id)):c&&h&&s>h&&(r.__controller.sendEvent(e.DATE_RANGE_ENDED,u),r.currentDateranges.splice(a,1))}},r.prototype.oU=function(){var t=this,i=t.ZP.seqNum,n=t.n_.timedMetadataStore[i],e=t._x;if(!n||!n.length)return null;t.n_.live&&Object.keys(t.n_.timedMetadataStore).forEach((function(n){if(!(n>i)){var r=t.n_.timedMetadataStore[n].every((function(i){return e-i.timestamp>=t.n_.config.pastBufferLengthLimit.live}));r&&delete t.n_.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.rU=function(t){t&&(t.bufferInit||(t.value?this.hU():this.cU(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.XP&&n.QP.push(n.XP),n.XP=r,n.ZP&&t===n.ZP.seqNum||!n.ZP){if(n.ZP&&r.bitrateIndex!==n.ZP.bitrateIndex){var o=n.n_.streams,u={bitrate:Math.round(o[r.bitrateIndex].bitrate/1e3),reason:"fast-up",oldFrameRate:n.ZP.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.XP;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.QP.push(e),n.XP=null)},r.prototype.segmentRenderNext=function(t){var i=this;i.ZP&&(i.$P.push(i.ZP),i.ZP=null,i.__controller.sendEvent(e.SEGMENT_RENDERED)),t&&(i.ZP=t,i.n_.setCurrentPlayingStream(t.bitrateIndex))},r.prototype.updateRenderState=function(t,i){var n=this;if(!(isNaN(i)||i<=0)&&(t||(t=n.fU(i))&&n.segmentRenderNext(t),t&&(n.lU&&(t.frameDrop=n.lU.frameDrop,t.frameRateSum+=Number(n.lU.frameRate.toFixed(2)),t.frameRateSampleCount++),!(i>=t.beginTime&&i<t.endTime)))){var r=n.fU(i);if(r&&(n.segmentRenderNext(r),r.bitrateIndex!==t.bitrateIndex)){var s=n.n_.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.lU=t)},r.prototype.fU=function(t){var i=this;if(i.XP&&t>=i.XP.beginTime&&t<i.XP.endTime)return i.XP;if(i.QP.length)for(var n=i.QP.length-1;n>=0;n--)if(t>=i.QP[n].beginTime&&t<i.QP[n].endTime)return i.QP[n];return null},r.prototype.hU=function(){var t=this;t.XO||(t.XO=!0,t.ZP,t.XP)},r.prototype.cU=function(t){var i=this;if(i.XO){i.vU=NaN,i.XO=!1;var n=i.ZP,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.ZP,n=[];if(t.$P.length){for(var e=0;e<t.$P.length;e++)n.push(t.eT(t.$P[e]));t.$P=[]}return i&&(n.push(t.eT(i)),i.bufferCount=0,i.bufferTime=0,i.timeToFirstByte=NaN,i.timeToDownload&&(i.timeToDownload=NaN)),n},r.prototype.eT=function(t){if(!t)return null;var i=this.n_.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.JP?0:i.averageBandwidth;return t.JP!==i.averageBandwidth&&(t.JP=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.dU(t);return!i.isCueOutFired&&n===i.startSeqNum&&t>i.startTime},r.prototype.dU=function(t){var i=this.n_.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=a;var e=n(2175),r=n(2835),s=n(3799),o=n(5409),u=n(4939),h=n(2990);function a(){var t=this;t.n_=t.__controller.model,t.pU={},t.bandwidthEstimator=new s(t.n_.bwHistory),t.segmentMetrics=t.__controller.create(o),t.metadataParser=t.__controller.create(e),t.mp4BoxParser=new r}a.prototype.destroy=function(){var t=this;t.bandwidthEstimator.destroy(),t.segmentMetrics.destroy(),t.metadataParser.destroy(),t.pU&&Object.keys(t.pU).forEach((function(i){t.pU[i].terminate()}))},a.prototype.getNewLoader=function(t,i){var n=this.n_,e=n.config,r=n.userAgent,s=n.inWorkerScope;(t=t||{}).maxRetries=t.maxRetries||e.maxRetries,t.requestTimeout=t.requestTimeout||e.requestTimeout,t.chunkedRequestTimeout=t.chunkedRequestTimeout||e.chunkedRequestTimeout,t.useMSStream=!!r&&(r.ie||r.edge),t.stopStreamLoadOnError=t.stopStreamLoadOnError||e.stopStreamLoadOnError,t.withCredentials=h.isWithCreds(i||t.url)||!1;var o=null;try{o=u.getLoader(new u.LoadRequest(t),t.window,s)}catch(t){o=null}return o},a.prototype.getWorker=function(){return null}},7279:function(t,i,n){"use strict";t.exports.AACStream=u,t.exports.AVCStream=h;var e=n(1849),r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],s=["Null","Main","LC","SSR","LTP"],o=t.exports.NAL_UNIT_TYPES={NON_IDR:1,IDR:5,AD_INFO_SEI:6,SPS:7,PPS:8,AUD:9};function u(t){var i=this;i.mU=[],i.bU=t||{},i.TR={},i.ready=!1,i.yU=0}function h(t){var i=this;i.mU=[],i.bU=t||{},i.TR={},i.gU=0,i.ready=!1,i.wU=0,i.yU=2970,i.XR=new e}u.prototype.destroy=function(){this.mU=[]},u.prototype.readFrames=function(t){t&&t.packetInfo&&this.readFramesFromBitstream(t.packetInfo.streamData,t.packetInfo.pts)},u.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++],h=1&u;if(65520==(65520&u)&&0===(6&u)){n._U(t.subarray(e,e+2)),n.TR.codec="mp4a.40.2",e++;var a=(t[e++]<<16)+(t[e++]<<8)+t[e++];for(a=(262112&a)>>>5,r=1+(3&t[e++]),h?a-=7:(a-=9,e+=2);o<r&&e<t.length;){var c=i+s*n.yU;n.mU.push({data:t.subarray(e,e+a),dts:c,pts:c,keyframe:!1,flags:{isLeading:!1,dependsOn:!0,isDependedOn:!1,hasRedundancy:!1,paddingValue:!1,isNonSyncSample:!1,degradationPriority:1}}),e+=a,o++,s++}}else e--}return n.ready=n.EU(),e},u.prototype._U=function(t){var i=this;if(t&&!(t.length<2)){var n=1+((192&t[0])>>>6);n=n>4?4:n,i.TR.audioObjectTypeIndex=n,i.TR.audioObjectType=s[n],n=(n=(60&t[0])>>>2)<13?n:0,i.TR.samplingFreqIndex=n,i.TR.samplingFreq=r[n],i.TR.channels=(1&t[0])<<2|(192&t[1])>>>6,i.TR.sampleSize=16,i.yU=9216e4/i.TR.samplingFreq}},u.prototype.EU=function(){var t=this,i=t.mU.length;return(i>0?t.mU[i-1].pts-t.mU[0].pts+t.yU:0)>=9e3},u.prototype.getFrames=function(){var t=this;return t.ready=!1,t.mU.splice(0,t.mU.length)},u.prototype.getConfig=function(){return this.TR},u.prototype.getLastFrameDetails=function(){var t=this;return t.mU.length?{timestamp:t.mU[t.mU.length-1].dts,duration:t.yU}:null},h.prototype.destroy=function(){this.mU=[],this.XR.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,u=0,h=0,a=s,c={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.mU&&i.mU.length){var v=i.mU[i.mU.length-1],d=v.nalUnits,p=d[d.length-1];if(p){var m,b=s-r;v.nalUnitSize+=b,p.data?((m=new Uint8Array(p.data.byteLength+b)).set(p.data,0),m.set(n.subarray(0,b),p.data.byteLength)):(m=new Uint8Array(b)).set(n.subarray(0,b),0),p.data=m,(m=new Uint8Array(v.data.byteLength+b)).set(v.data,0),m.set(n.subarray(0,b),v.data.byteLength),v.data=m}}if(l=!0,f=4294967295,r=r||3,(u=c.nalUnits.length)>=1&&null===c.nalUnits[u-1].data)switch(h=s-a-r,e=n.subarray(a,a+h),c.nalUnitSize+=h,c.nalUnits[u-1].data=e,c.nalUnits[u-1].type){case o.SPS:i.TR.profileIndication=e[1],i.TR.profileCompatibility=e[2],i.TR.levelIndication=e[3],i.TR.numOfSPS=1,i.TR.spsLength=e.length,i.TR.sps=e;break;case o.PPS:i.TR.numOfPPS=1,i.TR.ppsLength=e.length,i.TR.pps=e}a=s,h=0;var y=31&n[s++];if(y<o.AUD&&c.nalUnits.push({data:null,type:y}),y===o.IDR)i.gU=i.mU.length,c.keyframe=!0,c.flags.dependsOn=2,i.wU++;else if(y===o.NON_IDR)c.keyframe=!1,c.flags.dependsOn=1,c.flags.isNonSyncSample=!0;else if(y===o.AD_INFO_SEI)for(var g=i.XR.parse(n,s),w=0;w<g.length;w++)c.cea608Data.push(g[w])}}(u=c.nalUnits.length)>=1&&null===c.nalUnits[u-1].data&&a<n.length&&(h=s-a,c.nalUnits[u-1].data=n.subarray(a,a+h),c.nalUnitSize+=h),i.TR.codec=i.OU(i.TR),c.nalUnitSize>0&&i.mU.push(c),i.ready=i.EU()}}},h.prototype.EU=function(){var t=this,i=t.mU.length,n=i>0?t.mU[i-1].pts-t.mU[0].pts+t.yU:0;return t.bU.startChunkWithKeyFrame?t.wU>=2:i>1&&n>=9e3},h.prototype.getFrames=function(t){var i=this,n=i.bU.startChunkWithKeyFrame&&t&&t.keyFrameBoundary,e=t.keyFrameBoundary?i.mU.length-1:i.mU.length;n&&(e=i.gU,i.wU=1,i.ready=!1);var r=i.mU.splice(0,e);return i.gU=0,r},h.prototype.getConfig=function(){return this.TR},h.prototype.OU=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)}},2887:function(t,i,n){"use strict";t.exports=h;var e=n(7279),r=n(3661),s=n(6473),o=e.AACStream,u=e.AVCStream;function h(t,i,n){var e=this;e.streamType=t,e.streamId=i,e.AU=[],e.IR=!1,e.bU=n,e.SU=null,e.TU=new s,"audio"===t?e.l_=new o(e.bU):"video"===t&&(e.l_=new u(e.bU))}function a(t){this._u=new r(Uint8Array,t),this.complete=!1}h.prototype.destroy=function(){var t=this;t.AU=[],t.l_&&(t.l_.destroy(),t.l_=null)},h.prototype.isReady=function(){var t=this,i=!!t.l_&&t.l_.ready;return t.IR||i},h.prototype.addPacket=function(t){var i=this;i.AU.length&&i.jU(),i.AU.push(new a(t))},h.prototype.append=function(t){var i=this.AU.length;t&&i&&this.AU[i-1].append(t)},h.prototype.endOfSegment=function(){this.IR=!0,this.jU()},h.prototype.getFrames=function(t){return this.l_?this.l_.getFrames(t):null},h.prototype.getTimedMetadata=function(){return this.SU?this.SU:null},h.prototype.getConfig=function(){return this.l_?this.l_.getConfig():null},h.prototype.jU=function(){var t=this,i=t.AU.length;if(i){var n=t.AU[i-1];n.complete=!0,0===n.parse()&&("id3"===t.streamType?t.SU={payload:t.TU.getID3Payload(n.packetInfo.streamData),pts:t.AU.length&&t.AU[0].packetInfo.pts}:t.l_&&t.l_.readFrames(n),t.AU.pop())}},a.prototype.append=function(t){this._u&&this._u.set(t)},a.prototype.parse=function(){var t=this;if(t.packetInfo={},!t.complete||!t._u||!t._u.length)return t.packetInfo.result=-1,-1;if(t._u.length<6)return t.packetInfo.result=-2,-2;var i=0;if(1!==(t._u.get(i++)<<16)+(t._u.get(i++)<<8)+t._u.get(i++))return t.packetInfo.result=-3,-3;t.packetInfo.streamId=t._u.get(i++),i+=2,i++;var n=(192&t._u.get(i++))>>6,e=t._u.get(i++);return 2!==n&&3!==n||(t.packetInfo.pts=t.IU(t._u.subArray(i,i+5)),t.packetInfo.dts=t.packetInfo.pts,i+=5,e-=5,3===n&&(t.packetInfo.dts=t.IU(t._u.subArray(i,i+5)),i+=5,e-=5)),i+=e,t.packetInfo.streamData=t._u.subArray(i),t.packetInfo.result=0,0},a.prototype.IU=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}},1849: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],h=t[i+7];if(181===s&&49===o&&1195456820===u&&3===h){var a=31&t[i+8];i+=9;var c,f,l=0;for(i++;l<a;){if(c=(4&t[i])>>2,f=3&t[i],c&&(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}}},8457:function(t,i,n){"use strict";t.exports=o;var e=n(2887),r=n(7572),s=188;function o(t,i){var n=this;n._u=null,n.bU=t||{},n.MU=i,n.NU=0,n.RU=NaN,n.kU={},n.LU={},n.DU=[],n.GO="initial",n.jR="start",n.IR=!1}o.prototype.destroy=function(){var t=this;t._u=null,t.DU=[],t.GO="initial",t.jR="start";var i=t.LU;for(var n in i)i.hasOwnProperty(n)&&i[n].destroy();t.LU={}},o.prototype.append=function(t){var i=this;if(t){var n=t.length;if(n){var e=null,s=0;i._u&&(s=(e=i._u).length);var o=s+n;return i._u=new Uint8Array(o),e&&i._u.set(e),i._u.set(t,s),-2===i.K_()?{error:r.ERR_SEGMENT_PARSE}:void 0}}},o.prototype.endOfSegment=function(){var t=this;t.IR=!0,t._u&&t._u.length<s&&t.CU()},o.prototype.K_=function(){var t=this;if(!t._u)return-1;for(var i=0;t._u.length;){var n=t.jU(t._u.subarray(0,s));if(0===n)i++,t._u=t._u.subarray(s),i>=500&&(t.PU(),i=0);else{if(-2!==n)break;var e=t.xU(t._u);if(!(e>=0))break;t._u=t._u.subarray(e)}}return t.IR&&0===t._u.length?t.CU():t.PU(),0},o.prototype.jU=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.NU&&e.adaptationFieldLength>=7&&i.UU(t.subarray(n,n+6)),n+=e.adaptationFieldLength-1);return!e.payloadExists||e.adaptationFieldLength>=183||i.VU(t.subarray(n),e),0},o.prototype.UU=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.BU||(this.BU=o)}},o.prototype.VU=function(t,i){var n,e,r,s=this;if(t&&i&&!isNaN(i.pid)&&(s.kU.aac&&(n=s.kU.aac),s.kU.avc&&(e=s.kU.avc),s.kU.id3&&(r=s.kU.id3),!(i.pid>=1&&i.pid<=15||8191===i.pid)))switch(i.pid){case 0:s.FU(t,i);break;case s.RU:s.zU(t,i);break;case n:s.GU("audio",n,t,i);break;case e:s.GU("video",e,t,i);break;case r:s.GU("id3",r,t,i),s.HU();break;default:s.YU(t,i)}},o.prototype.FU=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.RU=((31&t[n++])<<8)+t[n++]),this.GO="patParsed"}},o.prototype.zU=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.NU=((31&t[e++])<<8)+t[e++];var u=((15&t[e++])<<8)+t[e++];e+=u;for(var h=null,a=null,c=0;e-o<s-4;)switch(h=t[e++],a=((31&t[e++])<<8)+t[e++],c=((15&t[e++])<<8)+t[e++],e+=c,h){case 3:case 4:n.kU.mp3=a;break;case 15:n.kU.aac=a;break;case 27:n.kU.avc=a;break;case 21:n.kU.id3=a}n.GO="pmtParsed"}},o.prototype.GU=function(t,i,n,r){if(n){var s=this.LU,o=s[i];r.startIndicator?(o||(s[i]=new e(t,i,this.bU),o=s[i]),o.addPacket(n)):o&&o.append(n)}},o.prototype.YU=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.kU.avc=i.pid,n.GU("video",n.kU.avc,t,i)):12!==u&&13!==u||(n.kU.aac=i.pid,n.GU("audio",n.kU.aac,t,i))}else 2===o&&n.zU(t,i)}},o.prototype.qU=function(){var t=this,i=!0;for(var n in t.kU)if("id3"!==n&&t.kU.hasOwnProperty(n)){var e=t.kU[n];t.LU[e]&&(i=i&&t.LU[e].isReady())}return i},o.prototype.PU=function(){var t=this;if(t.qU()){var i={},n=!1,e=!1,r=t.LU,s=Number.POSITIVE_INFINITY;for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];if(u){var h={frames:u.getFrames({keyFrameBoundary:"end"!==t.jR}),config:u.getConfig(),streamId:u.streamId};"audio"===u.streamType&&o===t.kU.aac.toString()?(i.audio=h,n=i.audio.frames&&i.audio.frames.length):"video"===u.streamType&&o===t.kU.avc.toString()&&(i.video=h,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.jR||n||e)&&(t.MU&&t.MU({pos:t.jR,avData:i}),"start"===t.jR&&(t.jR="middle"))}},o.prototype.HU=function(){var t=this,i=t.LU,n=null;Object.keys(i).forEach((function(e){var r=i[e];r&&"id3"===r.streamType&&e===t.kU.id3.toString()&&(n=r.getTimedMetadata())})),n&&t.MU&&t.MU({pos:"timedMetadata",timedMetadata:n})},o.prototype.xU=function(t){if(!t)return-1;for(var i=0;i<t.length;i++)if(71===t[i])return i;return-1},o.prototype.CU=function(){var t=this;t.jR="end";var i=t.LU;for(var n in i)i.hasOwnProperty(n)&&(i[n].endOfSegment(),"id3"===i[n].streamType&&t.HU());t.PU()}},3789: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}},5557:function(t,i,n){"use strict";t.exports.WorkerDefs={HlsTransformer:n(4892),Controller:n(6769)},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"}},9451:function(t,i,n){"use strict";t.exports={userAgent:n(3028),capabilities:n(7492)}},7492:function(t,i,n){"use strict";var e=n(3028),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()}}},3028: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.WU,i.tv){var h=void 0!==h?h: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"),h&&h.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 a="default";if(i.tizen){var c=void 0!==c?c:e.tizen;c&&c.systeminfo&&(i.version=c.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);a=v+l.substr(1===v.length?5:6,1)}catch(t){a="default"}}else a="orsay";i.class=a}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},5109:function(t,i,n){"use strict";var e=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 r=n(1409),s=n(2542),o=n(3755),u=n(6342),h=n(514),a=n(1279),c=n(1954),f=n(2974);function l(t){return u.default.classList(t)}var v=function(){function t(){this.version="0.3.138",this.mimetype=t.mimetype,this.type=a.PluginType.AD,this.QU=!1,this.$U=new r.default("DefaultAdPlugin"),this.XU={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this.ZU=null,this.JU=null,this.KU=null,this.tV=null,this.iV&&this.iV.destroy(),this.XU=null,this.QU=!1,this.$U.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.nV();if(this.QU=!0,t.interactionConfig&&t.interactionConfig.clickUrl?(this.ZU=t.interactionConfig.clickUrl,l(this.JU).remove("vp-hidden")):(this.ZU=null,l(this.JU).add("vp-hidden")),l(this.KU.parentElement).add("vp-hidden"),t.type===o.AdBreakItemType.BUMPER)return this.eV=t.duration,s;var h=this.rV(r,e),a=h.position,f=h.totalAds,v=h.duration;if(this.eV=v,this.sV=u.default.strSubstitute(1===f?c.default.ADV_SHORT:c.default.ADV_MULT_SHORT,{position:a+1,total:f}),this.oV=u.default.strSubstitute(1===f?c.default.ADV_LONG:c.default.ADV_MULT_LONG,{position:a+1,total:f}),0===a){var d=this.sV.split("{")[0];this.KU.innerText=d}return s},t.prototype.unrenderUI=function(){this.QU=!1,this.uV()},t.prototype.onPlayerEvent=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(t===a.PluginPlayerEvent.AD_PLAYBACK_STARTED&&this.QU){var e=i[0];e.type!==o.AdBreakItemType.BUMPER&&l(this.KU.parentElement).remove("vp-hidden")}if(t===a.PluginPlayerEvent.AD_PLAYBACK_PROGRESS&&this.QU){var r=i[0];this.hV(r)}},t.prototype.addEventListener=function(t,i){var n=this.$U.addEventListener(t,i,null);this.XU[t]=this.XU[t]||[],this.XU[t].push([i,n])},t.prototype.removeEventListener=function(t,i){this.XU[t]=this.XU[t]||[];for(var n=0,e=this.XU[t];n<e.length;n++){var r=e[n],s=r[0],o=r[1];if(s===i)return void this.$U.removeEventListener(t,o)}},t.prototype.uV=function(){this.ZU=null,this.KU&&(this.KU.innerText="")},t.prototype.hV=function(t){if(this.KU){var i=t.currentTime,n=t.duration;if(n){var e=Math.round(n-i);this.KU.innerText=u.default.strSubstitute(this.sV,{remaining:e})}}},t.prototype.rV=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((h=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 h;if((h=t[e]).type===o.AdBreakItemType.BUMPER)break;s++,u+=h.duration}return{position:i-r,totalAds:s,duration:u}},t.prototype.aV=function(t){for(var i,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(i=this.$U).publish.apply(i,e([t],n))},t.prototype.nV=function(){var t=this;return this.tV?(this.uV(),this.tV):(this.tV=u.default.render(f,c.default),this.KU=this.tV.querySelector(".vp-adbreak-progress span"),this.JU=this.tV.querySelector(".vp-adbreakitem-cta"),this.iV=new h.default(this.JU,(function(i){t.ZU&&(window.open(t.ZU,"_blank"),t.aV(s.AdPluginUIEvent.CTA_TRIGGERED))})),this.uV(),this.tV)},t.mimetype="adplugin/default-ad-view",t}();i.default=v},3840: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(3072),r=n(954),s=n(6342),o=n(3872),u="",h="";if("0.3.138".indexOf("local")>-1)h="https://assets.video.yahoo.net/builds/0.2.174/nielsen-iframe.html";else{h=(u="https://assets.video.yahoo.net")+"/builds/0.3.138/nielsen-iframe.html"}var a,c,f,l="vp-nielsen-iframe";i.NIELSEN_IAB_VENDOR_ID=373,function(t){t.linear="1",t.dynamic="2"}(a=i.NielsenAdType||(i.NielsenAdType={})),function(t){t.LOAD_METADATA="loadMetadata",t.SEND_ID3="sendID3",t.END="end"}(c=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.cV=t,this.fV=null,this.lV="",this.vV=!1,this.dV=!1,this.pV=!1,this.mV=[],this.bV=!1,this.yV="",this.gV=!1,this.wV=[{evt:e.ExternalEvt.PLAYBACK_START,cb:this.EV.bind(this)},{evt:e.ExternalEvt.TIMED_METADATA_RECEIVED,cb:this.OV.bind(this)},{evt:e.ExternalEvt.PLAYBACK_COMPLETE,cb:this.AV.bind(this)},{evt:e.ExternalEvt.PLAYBACK_STOPPED,cb:this.AV.bind(this)},{evt:e.ExternalEvt.MEDIA_ITEM_ERROR,cb:this.AV.bind(this)}],this.SV="P77FED7E1-92A2-4B10-A9AA-16756377EB20",t&&(o.Privacy.initIframeForGDPR(),this.TV(),this.lV="vp-player-"+Math.floor(1e4*Math.random()),i&&i.length&&(this.SV=i),this.jV(),this.IV={},this.MV(),this.NV(),this.yV=this.cV.addEventListener(e.ExternalEvt.NIELSEN_REQUIRED,this.NV.bind(this),this))}return t.prototype.destroy=function(){this.fV&&(this.cV.removeEventListeners(this.IV),window.removeEventListener("message",this.RV),this.fV=null,this.mV=null,this.IV={},this.cV.removeEventListener(e.ExternalEvt.NIELSEN_REQUIRED,this.yV))},t.prototype.NV=function(){this.pV||(this.kV(),this.dV=!1,this.vV=!1,this.pV=!0)},t.prototype.LV=function(){this.pV&&(this.cV.removeEventListeners(this.IV),window.removeEventListener("beforeunload",this.AV.bind(this)),this.dV=!0,this.pV=!1)},t.prototype.jV=function(){var t=this;this.fV=document.getElementById(l),this.fV?(this.DV(),this.bV=!0):(this.fV=document.createElement("iframe"),this.fV.id=l,this.fV.style.display="none",this.fV.onload=function(){t.DV(),t.bV=!0,t.gV&&t.CV()},this.fV.src=h,document.body.appendChild(this.fV))},t.prototype.DV=function(){this.PV(f.INITIALIZE,null,{appid:this.SV})},t.prototype.PV=function(t,i,n){if(this.fV&&this.fV.contentWindow){var e={messageType:t,nielsenEvent:i,payload:n,playerid:this.lV};this.fV.contentWindow.postMessage(e,u)}},t.prototype.kV=function(){var t=this;window.addEventListener("beforeunload",this.AV.bind(this)),this.wV.forEach((function(i){t.IV[i.evt]=t.cV.addEventListener(i.evt,i.cb,t)}))},t.prototype.MV=function(){window.addEventListener&&window.addEventListener("message",this.RV.bind(this))},t.prototype.RV=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.vV=!0)}},t.prototype.xV=function(t,i){var n=this;this.mV.push((function(){n.PV(f.SEND_BEACON,t,i)})),this.fV&&this.bV&&this.gV&&this.CV()},t.prototype.CV=function(){this.mV.forEach((function(t){t()})),this.mV=[]},t.prototype.EV=function(t){var i=this.cV.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:a.linear};this.xV(c.LOAD_METADATA,e)},t.prototype.AV=function(){if(this.vV&&!this.dV){var t=Date.now()/1e3;this.xV(c.END,t),this.vV=!1,this.LV()}},t.prototype.OV=function(t){var i=s.default.detectRegexPattern(r.ID3_MATCH_PATTERN.NIELSEN,t);i&&this.vV&&this.xV(c.SEND_ID3,i)},t.prototype.TV=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.gV=!e||!!(null==i?void 0:i.hasConsent),t.gV||t.LV()}else t.LV()}))},t}();i.default=v},9154:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PARAMS=i.PROGRESS_BEACON_INTERVALS=i.BEACONS=i.PLAYLIST_POSITION=i.MAX_SEG_INFO_ENTRIES_PER_BEACON=void 0,i.MAX_SEG_INFO_ENTRIES_PER_BEACON=15,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","drm","drmsys","_sqno","ts","pbst","pbstd","pl_type","viewd","soe","siteadspref","preload"]},6243:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(954),r=n(8103),s=n(6120),o=n(4685),u=n(4986),h=n(6342),a=n(9154),c=function(){function t(t){this.cV=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.UV=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.zE={},this.apiPlay=!1,this.preload=!1,this.resetProgressBeaconsState()}return t.getStreamType=function(i,n,e){return Object.values(r.AdBreakType).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.AdBreakType.NATIVE)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.AdBreakType.PREROLL:return"ad pre-roll";case r.AdBreakType.MIDROLL:return"ad mid-roll";case r.AdBreakType.POSTROLL:return"ad post-roll";case r.AdBreakType.TRIGGER:return"ad trigger";case r.AdBreakType.NON_LINEAR:return"ad non-linear";case r.AdBreakType.NATIVE: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.VV=i.playerRootElement||this.VV,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.cV.guid,this.ss=this.BV(i.currentMediaType)||this.ss,this.vid=i.videoId||this.vid,this.pstaid=i.videoId||this.pstaid,this.prt=this.FV(i.rendererType)||this.prt,this.cprt=this.FV(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.3.138"===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=h.default.isPlayerInBackground()?"0":"1",this.expm=this.zV(i.uiState),this.endscreen=i.showEndScreen?1:0,this.drmsys=i.drmsys,this.drm=i.drm,this.ts=i.currentTs-this.cV.getInitTime(),this.pbst=i.pbst,this.pbstd=i.pbstd,this.pl_type=this.GV(),this.soe=i.soe,this.siteadspref=i.firstItemAdsSitePrefetched?1:0,this.recv_status=i.recv_status,this.preload=!!i.isPreloaded},t.prototype.updateSynchState=function(t){var i=this;Object.keys(t).forEach((function(n){i.zE[n]=t[n]||i.zE[n]}))},t.prototype.updateTs=function(t){this.ts=t-this.cV.getInitTime()},t.prototype.getCommonParams=function(){var t=this,i={t:Math.random()};return a.PARAMS.forEach((function(n){i[n]=t[n]})),i},t.prototype.onVideoRequest=function(t,i){this.HV&&(i.videoId===this.HV?this.replay++:this.cont++),this.HV=i.videoId,this.bitrate=0},t.prototype.onBeaconSent=function(){this._sqno++},t.prototype.resetProgressBeaconsState=function(){this.progressBeaconsInfo.timeLastSent=a.PROGRESS_BEACON_INTERVALS.reduce((function(t,i){return t[i.key]=-1,t}),{})},Object.defineProperty(t.prototype,"synchState",{get:function(){return this.zE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.cV.getCurrentTime()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"volume",{get:function(){var t=this.cV.volume;return t&&t>0&&t.toString()||"0"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bitrate",{get:function(){return this.UV},set:function(t){this.UV=Math.round(t),this.bit=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"programDateTimeLatency",{get:function(){var t=this.cV.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.YV(this.VV).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.FV=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.EXTERNAL: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.BV=function(t){return t===s.MediaItemType.LIVE_EVENT||t===s.MediaItemType.LIVE_CHANNEL?"live":"vod"},t.prototype.YV=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=h.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.qV(n[0]))}return this.viewability.value},t.prototype.zV=function(t){return t?t.isPIP?"picture_in_picture":t.isFullScreen?"fullscreen":t.isDocked?"docked":"na":"na"},t.prototype.qV=function(t){return t?t.parentElement&&"none"!==t.style.display?this.qV(t.parentElement):JSON.stringify({n:t.nodeName,i:t.id,cl:t.classList}):""},t.prototype.GV=function(){var t,i,n,r,s,o,u=this.cV.config,h=!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 h!==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)?h||a.PLAYLIST_POSITION.NONE:a.PLAYLIST_POSITION.HERO},t.LONG_VOD_DURATION=600,t}();i.default=c;var f=h.default.getResourceLoadTime(/video-player\.css/);f=u.isNumber(f)?Math.round(f).toString():"na"},4299: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.ProgressEvent=void 0;var s,o=n(1409),u=n(3072),h=n(4685),a=n(4986),c=n(9154);!function(t){t.VIDEO_PROGRESS="video-progress"}(s=i.ProgressEvent||(i.ProgressEvent={}));var f=function(t){function i(i,n){var e=t.call(this,"AnalyticsProgressManager")||this;return e.cV=i,e.n_=n,e.WV=0,e.IV={},e.QV=[],e.iS=!1,e.$V=0,e.XV="",e.ZV=0,e.dS=null,e.JV=0,e.KV=[],[{evt:u.ExternalEvt.VIDEO_REQUEST,cb:e._B},{evt:u.ExternalEvt.PLAYBACK_PAUSE,cb:e.XE},{evt:u.ExternalEvt.SEG_INFO_AVAILABLE,cb:e.tF},{evt:u.ExternalEvt.PLAYBACK_TIME_UPDATE,cb:e.iO},{evt:u.ExternalEvt.PLAYBACK_SEEKING,cb:e.ZE},{evt:u.ExternalEvt.PLAYBACK_SEEK_COMPLETE,cb:e.iF},{evt:u.ExternalEvt.RECOVERY_START,cb:e.nF},{evt:u.ExternalEvt.PLAYBACK_PLAYING,cb:e.$E},{evt:u.ExternalEvt.RECOVERY_DISABLED,cb:e.eF}].forEach((function(t){e.IV[t.evt]=e.cV.addEventListener(t.evt,t.cb,e)})),e}return r(i,t),i.prototype.destroy=function(){this.cV.removeEventListeners(this.IV),this.rF()},i.prototype.updatePlaybackStats=function(t){var i,n=this.sF();if(t.dur=Math.floor(this.WV)||"",t.dur_d=Math.floor(this.WV)-Math.floor(this.$V)||0,t.buff_info=n.segInfo||"",t.buf_dur=n.bufDur||0,this.updateRecoveryStats(t),null===(i=this.KV)||void 0===i?void 0:i.length)try{t.reason=JSON.stringify(this.KV)}catch(t){}},i.prototype.updateRecoveryStats=function(t){""!==this.XV&&(t.rcvr_status=this.XV,t.rcvr_at=this.ZV)},Object.defineProperty(i.prototype,"totalWatchTime",{get:function(){return this.WV},enumerable:!1,configurable:!0}),i.prototype._B=function(t,i){this.rF()},i.prototype.XE=function(t){t.playbackMode!==h.PlaybackMode.AD&&this.oF(c.BEACONS.PLAYBACK_PROGRESS),this.cU()},i.prototype.ZE=function(t){this.iS=!0,this.cU(),t&&this.KV.push(t)},i.prototype.iF=function(){this.iS=!1,this.n_.lastKnownPlaybackTime=this.n_.currentTime,this.KV.length&&this.oF(c.BEACONS.PLAYBACK_PROGRESS),this.KV=[]},i.prototype.tF=function(t){this.QV=this.QV.concat(t.val),this.QV=this.uF()},i.prototype.uF=function(){if(this.QV.length<=0)return this.QV;for(var t=[this.QV[0]],i=1;i<this.QV.length;i++){var n=this.QV[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.iO=function(t,i){if(!(this.iS||a.isNullOrUndefined(t)||t<0||i.playbackMode===h.PlaybackMode.AD))if(a.isNullOrUndefined(this.n_.lastKnownPlaybackTime))this.n_.lastKnownPlaybackTime=t;else{t>0&&this.cU();var n=t-this.n_.lastKnownPlaybackTime;this.n_.lastKnownPlaybackTime=t,n>0&&(this.WV+=n),this.hF()}},i.prototype.$E=function(){"recovering"===this.XV&&this.aF()},i.prototype.hF=function(){var t=this;c.PROGRESS_BEACON_INTERVALS.forEach((function(i){var n=t.WV,e=t.n_.progressBeaconsInfo.timeLastSent[i.key],r=-1===e?0:e;(i.recurring&&n>r+i.time||!i.recurring&&-1===e&&n>i.time)&&(t.n_.progressBeaconsInfo.timeLastSent[i.key]=Math.floor(n),t.oF(i.beacon))}))},i.prototype.oF=function(t){this.publish(s.VIDEO_PROGRESS,t),this.$V=Math.floor(this.WV)},i.prototype.rF=function(){this.QV=[],this.WV=0,this.$V=0,this.n_.lastKnownPlaybackTime=null,this.n_.resetProgressBeaconsState(),this.dS=null,this.XV="",this.JV=0},i.prototype.sF=function(){var t;return"recovering"===this.XV?(this.cF(),t=[{buf_dur:this.JV}],this.JV=0):t=this.QV.splice(0,Math.min(c.MAX_SEG_INFO_ENTRIES_PER_BEACON,this.QV.length)),{segInfo:JSON.stringify({seg:t}),bufDur:t.reduce((function(t,i){return i.buf_dur+t}),0)}},i.prototype.cU=function(){this.cF(),this.dS=null},i.prototype.cF=function(){this.dS&&(this.JV+=Date.now()-this.dS,this.dS=Date.now())},i.prototype.eF=function(){this.XV="",this.dS=null,this.KV=[]},i.prototype.nF=function(t){t&&this.KV.push(t),"recovering"!==this.XV&&(this.dS=Date.now(),this.ZV++,this.XV="recovering",this.oF(c.BEACONS.PLAYBACK_PROGRESS))},i.prototype.aF=function(){this.XV="recovered",this.oF(c.BEACONS.PLAYBACK_PROGRESS),this.KV=[],this.XV="",this.dS=null},i}(o.default);i.default=f},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(1750),s=n(101),o=function(){function t(t){if(this.IV={},!t)throw Error("[InStreamAdAnalytics] Cannot initialize InStreamAdAnalytics. Bad instreamAdManager instance!");this.fF=t,this.kV()}return t.prototype.destroy=function(){this.fF.destroy(),this.IV={}},t.prototype.kV=function(){var t=this,i=e({},s.InstreamAdManagerEvent);Object.keys(i).forEach((function(i){t.IV[s.InstreamAdManagerEvent[i]]=t.fF.on(s.InstreamAdManagerEvent[i],t.lF,t)}))},t.prototype.lF=function(t){t&&t.forEach((function(t){return r.default.sendImageBeacon(t)}))},t}();i.default=o},1750:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(6342),r=function(){function t(){}return t.sendImageBeacon=function(t){t=e.default.fixProtocol(t);var i=new Image;i.onload=i.onabort=i.onerror=function(){i.onload=i.onabort=i.onerror=null,i=null},i.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("#vp-beacons"),o="vp-beacons-"+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.perfStack="na",i.source="player";var n=i.resourceTiming,e=i.resourceTimingEntries;if(n){var r={};["connectEnd","connectStart","domainLookupEnd","domainLookupStart","duration","fetchStart","redirectEnd","redirectStart","requestStart","responseEnd","responseStart","startTime"].forEach((function(t){r[t]=n[t].toFixed(2)})),i.latency=r&&r.duration||"",i.perfInfo=JSON.stringify(r);var s=[];i.resourceTimingEntries&&n.requestStart-n.connectStart>500&&e.forEach((function(t){t.startTime<n.startTime&&s.push({url:t.name,st:t.startTime.toFixed(2),du:(t.responseEnd-t.startTime).toFixed(2)})})),i.perfStack=0===s.length?"na":JSON.stringify(s)}return i},t}();i.default=r},1880:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2694),r=n(3072),s=n(4685),o=n(4986),u=n(6342),h=n(9154),a=n(6243),c=n(4299),f=n(1750),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.cV=t,this.vF=!1,this.dF=!1,this.wV=[{evt:r.ExternalEvt.VIDEO_REQUEST,cb:this.pF.bind(this,"VIDEO_REQUEST")},{evt:r.ExternalEvt.PLAYBACK_RESUMED,cb:this.pF.bind(this,"PLAYBACK_RESUMED")},{evt:r.ExternalEvt.PLAYBACK_STALLED,cb:this.pF.bind(this,"PLAYBACK_STALLED")},{evt:r.ExternalEvt.PLAYBACK_BLOCKED,cb:this.pF.bind(this,"PLAYBACK_BLOCKED")},{evt:r.ExternalEvt.CTRL_SEEK,cb:this.pF.bind(this,"CTRL_SEEK")},{evt:r.ExternalEvt.CTRL_VOLUME,cb:this.pF.bind(this,"CTRL_VOLUME")},{evt:r.ExternalEvt.CTRL_PLAYPAUSE,cb:this.pF.bind(this,"CTRL_PLAYPAUSE")},{evt:r.ExternalEvt.CTRL_REPLAY,cb:this.pF.bind(this,"CTRL_REPLAY")},{evt:r.ExternalEvt.CTRL_PLAYREQUEST,cb:this.pF.bind(this,"CTRL_PLAYREQUEST")},{evt:r.ExternalEvt.CTRL_SETTINGS,cb:this.pF.bind(this,"CTRL_SETTINGS")},{evt:r.ExternalEvt.CTRL_CUSTOM_ELEMENT,cb:this.pF.bind(this,"CTRL_CUSTOM_ELEMENT")},{evt:r.ExternalEvt.CONTROLS_AUDIO_CHANGE,cb:this.pF.bind(this,"CONTROLS_AUDIO_CHANGE")},{evt:r.ExternalEvt.THREE_SIXTY_INTERACT,cb:this.pF.bind(this,"THREE_SIXTY_INTERACT")},{evt:r.ExternalEvt.RENDERER_READY,cb:this.pF.bind(this,"RENDERER_READY")},{evt:r.ExternalEvt.THREE_SIXTY_PIE_INTERACT,cb:this.pF.bind(this,"THREE_SIXTY_PIE_INTERACT")},{evt:r.ExternalEvt.CC_LANGUAGE_CHANGE,cb:this.pF.bind(this,"CC_LANGUAGE_CHANGE")},{evt:r.ExternalEvt.CC_UPDATE_STYLE,cb:this.pF.bind(this,"CC_UPDATE_STYLE")},{evt:r.ExternalEvt.CC_SETTINGS,cb:this.pF.bind(this,"CC_SETTINGS")},{evt:r.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,cb:this.mF},{evt:r.ExternalEvt.BITRATE_CHANGE,cb:this.bF},{evt:r.ExternalEvt.UI_INTERACT,cb:this.yF},{evt:r.ExternalEvt.CC_UI_TOGGLE,cb:this.gF},{evt:r.ExternalEvt.PLAYER_FULLSCREEN_CHANGE,cb:this.wF},{evt:r.ExternalEvt.PLAYER_PIP_MODE_CHANGE,cb:this._F},{evt:r.ExternalEvt.PLAYER_INFO,cb:this.EF},{evt:r.ExternalEvt.CMS_API_CALLED,cb:this.OF},{evt:r.ExternalEvt.PLAYER_ERROR,cb:this.tO},{evt:r.ExternalEvt.PLAYER_WARNING,cb:this.AF},{evt:r.ExternalEvt.PLAYBACK_START,cb:this.SF},{evt:r.ExternalEvt.PLAYBACK_COMPLETE,cb:this.TF},{evt:r.ExternalEvt.AD_METRICS,cb:this.jF},{evt:r.ExternalEvt.STREAM_SYNCH_STRATEGY_APPLIED,cb:this.IF},{evt:r.ExternalEvt.STREAM_SYNCH_COMPLETE,cb:this.MF},{evt:r.ExternalEvt.DATERANGE_ENDED,cb:this.NF},{evt:r.ExternalEvt.INVALID_SYNC_OFFSET,cb:this.RF}],this.cV&&(this.n_=this.kF(this.cV),this.LF=new c.default(this.cV,this.n_),this.IV={},this.kV())}return t.prototype.destroy=function(){this.DF("destroy"),this.cV.removeEventListeners(this.IV),this.LF.destroy(),this.n_.destroy(),this.IV={}},t.prototype.SF=function(t){var i=this.cV.getPlaybackStartDto();t.ad=this.vF?1:0,t.rsm=i.isResume||"",t.pdtl=this.n_.programDateTimeLatency,this.CF(t,i),this.PF(t,h.BEACONS.PLAYBACK_START),this.lF(t)},t.prototype.kF=function(t){return new a.default(t)},t.prototype.jF=function(t,i){if(t&&t.evt){t.evt=t.evt.toLowerCase(),"ad_dlv"===t.evt&&(this.vF=!0,this.CF(i,this.cV.getPlaybackStartDto())),this.n_.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.lF(i),"ad_comp"===t.evt&&(this.n_.adParams=null)}},t.prototype.kV=function(){var t=this;window.addEventListener("unload",this.xF.bind(this)),this.cV.addEventListener(r.ExternalEvt.VIDEO_REQUEST,this._B,this),this.LF.addEventListener(c.ProgressEvent.VIDEO_PROGRESS,this.UF,this),this.wV.forEach((function(i){t.IV[i.evt]=t.cV.addEventListener(i.evt,t.VF.bind(t,i),t)}))},t.prototype.VF=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.n_.update(r);var s=this.n_.getCommonParams(),u=o.isObject(i[e])?Array.prototype.slice.call(i,0,e):i;t.cb.apply(this,u.concat([s]))},t.prototype.pF=function(t){for(var i=this,n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];var r=t&&h.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 a=0;a<o.length;a++)s[u[a]]=o[a].toString();else if(u&&u.length)return;r.params&&r.params.forEach((function(t){s[t.key]=i.n_[t.value]})),this.PF(s,r),this.LF.updateRecoveryStats(s),s.dur=Math.round(this.LF.totalWatchTime)||"",this.lF(s)}},t.prototype.lF=function(t){this.BF(t);var i="https://bats.video.yahoo.com/p?"+u.default.querystring(this.FF(t),"&","=",(function(t){return encodeURIComponent(t).replace(/[!'()]/g,escape).replace(/\*/g,"%2A")}));f.default.sendImageBeacon(i),this.n_.onBeaconSent()},t.prototype.FF=function(t){var i=t;return l.includes(t.evt)&&(i._V="test"),i},t.prototype.BF=function(t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&t[i]===this.n_.SKIP_PARAM_IN_BEACON&&delete t[i]},t.prototype._B=function(t,i){this.vF=!1,this.dF=!1,this.n_.onVideoRequest(t,i)},t.prototype.bF=function(t,i,n){this.PF(n,h.BEACONS.BITRATE_CHANGE),n.value=t.toString(),n.value_e=this.n_.bitrate,n.reason=i.reason||"",n.fr=i.newFrameRate||"",n.fr_old=i.oldFrameRate||"",this.lF(n),this.n_.bitrate=t},t.prototype.mF=function(t,i){t.isInitialEvt||(this.PF(i,h.BEACONS.AIRPLAY_CONNECTION_STATE_CHANGE),i.value=t.connected?"1":"0",this.lF(i))},t.prototype.yF=function(t,i){this.PF(i,h.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.lF(i)},t.prototype.gF=function(t,i,n){this.PF(n,h.BEACONS.CC_TOGGLE),n.value=t?"1":"0",this.lF(n)},t.prototype.wF=function(t,i){this.PF(i,h.BEACONS.FULLSCREEN_CHANGE),i.value=t?"ON":"OFF",this.lF(i)},t.prototype._F=function(t,i){},t.prototype.EF=function(t,i){this.PF(i,h.BEACONS.PLAYER_INFO),i.ecode=t.rep||"",i.estring=t.debugMessage||t.message||"",this.lF(i)},t.prototype.OF=function(t,i){var n=f.default.prepareApiInfo(t.url,t.perfObj);this.PF(i,h.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||"",i.perf_stack=n.perfStack||"",this.lF(i)},t.prototype.tO=function(t,i){t.isRecoverable||(this.PF(i,h.BEACONS.PLAYER_ERROR),i.ecode=t.rep||"",i.estring=t.debugMessage||t.message||"",i.dur=Math.round(this.LF.totalWatchTime)||"",this.lF(i),this.DF("error"))},t.prototype.AF=function(t,i,n){this.PF(n,h.BEACONS.PLAYER_WARNING),this.LF.updateRecoveryStats(n),n&&(n.ecode=t.rep||"",n.estring=t.debugMessage||t.message||"",n.rcvr_state=(null==i?void 0:i.recoveryState)||""),this.lF(n)},t.prototype.TF=function(t,i){this.zF(h.BEACONS.PLAYBACK_COMPLETE,i)},t.prototype.xF=function(){this.DF("unload")},t.prototype.DF=function(t){this.n_.updateTs(Date.now());var i=this.n_.getCommonParams();i&&(i.ext_resn=t||"na",0===this.cV.getCurrentTime()&&this.LF.destroy()),this.zF(h.BEACONS.INCOMPLETE_EXIT,i)},t.prototype.zF=function(t,i){this.dF||(this.dF=!0,this.PF(i,t),i.pdtl=this.n_.programDateTimeLatency,i.alang=this.n_.audioLanguage,this.n_.playbackMode===s.PlaybackMode.AD?this.GF(i):this.LF.updatePlaybackStats(i),this.lF(i))},t.prototype.UF=function(t){this.n_.updateTs(Date.now());var i=this.n_.getCommonParams();this.PF(i,t),this.LF.updatePlaybackStats(i),this.lF(i)},t.prototype.IF=function(t,i){this.HF(i,t,h.BEACONS.STREAM_SYNCH_STRATEGY_APPLIED),this.lF(i)},t.prototype.MF=function(t,i){this.YF(i,t,h.BEACONS.STREAM_SYNCH_COMPLETE),this.lF(i)},t.prototype.NF=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.HF(i,n,h.BEACONS.STREAM_SYNCH_DATERANGE_ENDED),this.lF(i)}},t.prototype.RF=function(t){this.PF(t,h.BEACONS.STREAM_SYNCH_INVALID_OFFSET),this.lF(t)},t.prototype.qF=function(t){return t&&o.isNumber(t.timeDiff)&&t.timeDiff.toString()||""},t.prototype.WF=function(t,i){return t&&t.startTime&&i&&(i+t.startTime).toString()||""},t.prototype.QF=function(t,i){return t&&o.isNumber(t.timeDiff)&&i&&o.isNumber(i.timeDiff)?(t.timeDiff-i.timeDiff).toString():this.qF(t)},t.prototype.PF=function(t,i){t&&i&&(t.evt=i.evt,t.V_sec=i.type)},t.prototype.HF=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.n_.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.cV.getCurrentDate(),i.startDate&&(t.dr_start=i.startDate),i.contentDate&&(t.dr_ct=i.contentDate),this.n_.updateSynchState(i)}},t.prototype.YF=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.GF=function(t){var i=this.cV.getCurrentTime(),n=this.n_.adParams&&this.n_.adParams.pos,e=this.n_.adParams&&this.n_.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.CF=function(t,i){t.apallwd=i.autoPlayAllowed||"",t.jsdt=this.n_.jsdt,t.cssdt=this.n_.cssdt,t.req_type=this.n_.requestType||"",t.req_action=this.n_.requestAction||"",t.apl=this.QF(i.autoPlayLatency,i.deferringPlaybackLatency),t.bgl=this.qF(i.deferringPlaybackLatency),t.s_apl=this.WF(i.autoPlayLatency,i.initTime),t.ucl=this.qF(i.clickToPlayLatency),t.tpb=this.qF(i.playbackStartLatency),t.s_tpb=this.WF(i.playbackStartLatency,i.initTime),t.tmeta_call=this.qF(i.cmsLatency),t.s_tsapic=this.WF(i.cmsLatency,i.initTime),t.tsrc_call=this.qF(i.cmsSourceLatency),t.s_tssrcapic=this.WF(i.cmsSourceLatency,i.initTime),t.tadp=this.qF(i.adPluginLatency),t.s_tadpc=this.WF(i.adPluginLatency,i.initTime),t.strml=this.qF(i.streamReqToRenderLatency),t.s_strml=this.WF(i.streamReqToRenderLatency,i.initTime),t.tadbetce=this.qF(i.adBreakEndToClientEnd),t.tadcetrr=this.qF(i.adClientEndToRendererReady),t.trrtpbs=this.qF(i.rendererReadyToPlaybackStart)},t}();i.default=v},655:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(6120),r=n(1279),s=function(){function t(){this.version="0.3.138",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},9939: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(6120),o=n(1279),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(655).default);i.default=u},830:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(3872),r=n(6120),s=n(1279),o="content.uplynk.com",u={title:"",description:"",posterUrl:"",thumbnail:"",duration:0,type:r.MediaItemType.VOD},h=function(){function t(){this.version="0.3.138",this.mimetype=r.MediaItemMimeType.UPLYNK,this.type=s.PluginType.METADATA,this.$F=[],this.XF={},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.ZF(t,i,r,n)}))}));this.JF=!1;var s=function(){e.JF=!0};this.$F.push(s),Promise.all(r).then((function(t){e.JF||(e.KF(s),n.onComplete(t))})).catch((function(t){if(!e.JF){e.KF(s);var i={code:"1",message:t.toString()};n.onError(i)}}))}},t.prototype.recover=function(t,i,n){},t.prototype.cancel=function(){this.$F.forEach((function(t){t()})),this.$F=[]},t.prototype.destroy=function(){this.cancel()},t.prototype.ZF=function(t,i,n,e){var s=this,o=t.id,h=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.JF||e.onApiCallInfo({url:u&&u.url||null,perfObj:o}),n(r)},a=function(n,r,h,a){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.XF[o]=!0,s.JF||e.onApiCallInfo({url:a&&a.url||null,perfObj:h}),i(t)};!function(){var n=t.metadata;if(!n||n.type!==r.MediaItemType.LIVE_CHANNEL&&n.type!==r.MediaItemType.LIVE_EVENT||s.tz(t),s._z(t)||s.XF[o])return i(t);s.zz(t,a,h)}()},t.prototype.zz=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.tG(r,i,n)},t.prototype.tG=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.KF(s),i.apply(void 0,t)},failureHandler:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];r.KF(s),n.apply(void 0,t)},withCookie:!1,responseTypeJson:!0,collectPerfData:!0});this.$F.push(s)},t.prototype.KF=function(t){if(t){var i=this.$F.indexOf(t);i>=0&&this.$F.splice(i,1)}},t.prototype.tz=function(t){for(var i in t.metadata=t.metadata||{},u)void 0===t.metadata[i]&&(t.metadata[i]=u[i])},t.prototype._z=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},1032:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(660),r=n(3872),s=n(8103),o=n(3755),u=n(6120),h=n(1279),a=n(4986),c="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.3.138",this.mimetype=u.MediaItemMimeType.UPLYNK,this.type=h.PluginType.SOURCE_METADATA,this.$F=[],this.iG={},this.nG=!1,this.JF=!1,r.Loader.preconnect("preconnect-uplynk","//"+c)}return t.prototype.prepare=function(){},t.prototype.resolve=function(t,i,n){var e=this;if(Array.isArray(t)&&0!==t.length){this.iG=this.eG(i.privacyConsent);var r=t.map((function(t){return new Promise((function(i,r){e.ZF(t,i,r,n)}))}));this.JF=!1;var s=function(){e.JF=!0};this.$F.push(s),Promise.all(r).then((function(t){e.JF||(e.KF(s),n.onComplete(t))})).catch((function(t){if(!e.JF){e.KF(s);var i={code:"1",message:t.toString()};n.onError(i)}})),this.nG=!1}},t.prototype.recover=function(t,i,n){t&&(this.nG=!0,this.resolve([t],i,n))},t.prototype.cancel=function(){this.$F.forEach((function(t){t()})),this.$F=[]},t.prototype.destroy=function(){this.cancel()},t.prototype.ZF=function(t,i,n,r){var s=this;this.rG(t)&&!this.nG?i(t):this.sG(t,(function(o,h,a,c){var l=o&&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.oG(o.ads.breaks,o.ads.breakOffsets),t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/uplynk"},t.visualSeekData.adBreaks=t.adBreaks),s.JF||r.onApiCallInfo({url:c&&c.url||null,perfObj:a}),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.JF||r.onApiCallInfo({url:u&&u.url||null,perfObj:o}),n(e)}))},t.prototype.sG=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://"+c+e.replace("{assetid}",t.id)+(s.preplay&&s.preplay.qs?"?"+s.preplay.qs:"");this.tG(o,i,n)},t.prototype.tG=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.KF(s),i.apply(void 0,t)},failureHandler:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e.KF(s),n.apply(void 0,t)},withCookie:!1,responseTypeJson:!0,collectPerfData:!0});this.$F.push(s)},t.prototype.KF=function(t){if(t){var i=this.$F.indexOf(t);i>=0&&this.$F.splice(i,1)}},t.prototype.rG=function(t){return!!(t.source&&t.source.streams&&t.source.streams.length)},t.prototype.oG=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{adBreakId:t.breakId||"",duration:t.duration||0,startOffset:t.timeOffset||0,type:n.uG(t.position),adBreakItems:n.hG(t.ads),customInfo:{index:e.index}}}))},t.prototype.hG=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.uG=function(t){return"preroll"===t?s.AdBreakType.PREROLL:"midroll"===t?s.AdBreakType.MIDROLL:"postroll"===t?s.AdBreakType.POSTROLL:null},t.prototype.eG=function(t){return{gdpr:t&&!a.isNullOrUndefined(t.gdprApplies)?t.gdprApplies:"",euconsent:t&&t.gdprConsentData||""}},t}();i.default=l},4354:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(9451),r=n(954),s=n(1279),o=n(4986),u=n(6342),h=n(4180),a=function(){function t(){this.version="0.3.138",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.aG(t,i),r=document.createElement("div");return r.innerHTML=h.render({items:e,strings:n}),Array.prototype.slice.call(r.children)},t.prototype.cG=function(t){return t&&o.isNumber(t)?u.default.formatTime(t):""},t.prototype.fG=function(t){var i=e.userAgent.chrome>43;return t?t.length>40&&!i?t.substring(0,40)+"...":t:""},t.prototype.lG=function(t,i){return t===r.PLAYLIST_POS.RIGHT&&i&&i.branding&&i.branding.providerName?i.branding.providerName:""},t.prototype.aG=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.fG(i.metadata.title),thumbnail:i.metadata.thumbnail,duration:n.cG(i.metadata.duration),provider:n.lG(t,i.brandingData)})})),e},t}();i.default=a},4180: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,562,"{{ }}")&&(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("'>"),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("'/>"),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,392,470,"{{ }}")&&(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:{}})},649:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(1279),r=n(4986),s=n(6342),o=function(){function t(){this.version="0.3.138",this.type=e.PluginType.VISUAL_SEEK,this.mimetype="visualseek/uplynk",this.vG={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this.vG={}},t.prototype.canSeek=function(t){return t&&!!this.vG[t]},t.prototype.update=function(t,i){var n=this.vG[t]||{};n.assetInfo=i&&i.assetInfo||n.assetInfo,n.adBreaks=i&&i.adBreaks||n.adBreaks,this.vG[t]=n},t.prototype.getThumbnailData=function(t,i,n){if(!r.isString(t)||!r.isNumber(i))return null;var e=this.vG[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.vG[t],r=e.assetInfo,o=r.thumbPrefix,u=this.getThumbInfo(t,n),h=i,a=0,c=!1,f=null,l=0;if(e.adBreaks&&e.adBreaks.length){if(e.adBreaks.some((function(t){if(t.startOffset<i&&t.startOffset+t.duration>i)return c=!0,!0;if(t.startOffset<=i)a+=t.duration,f=t;else if(t.startOffset>i)return!0;return!1})),c)return"AD";l=f&&f.customInfo&&f.customInfo.index||0,h=Math.max(0,h-a)}var v=Math.floor(h/r.sliceDuration)+l;v=Math.min(v,r.maxSlice);var d=s.default.decimalToHexString(v,8,"0");return o+u.prefix+d+".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.vG[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},460: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(1880),s=n(3072);Object.defineProperty(i,"Events",{enumerable:!0,get:function(){return s.ExternalEvt}});var o=n(2079);i.Playlist=o.default;var u=n(2542),h=n(6120);i.MediaItemInterfaces=h;var a=n(1279);i.Plugin=a;var c=n(4685);Object.defineProperty(i,"RendererType",{enumerable:!0,get:function(){return c.RendererType}});var f=n(1560);i.Player=f.default;n.g.replaceCorePlayerSrc=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/three/THREE_VERSION/"+i:t:"/"+i},a.AdPluginEvent=u.AdPluginEvent,a.AdPluginPlaybackCapability=u.AdPluginPlaybackCapability,window.YAHOO=window.YAHOO||{},window.YAHOO.CorePlayer=window.YAHOO.CorePlayer||{},window.YAHOO.CorePlayer.Player=f.default,window.YAHOO.CorePlayer.Plugin=a,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(4685),r=n(6342),s=function(){function t(t){this.xE=t}return t.prototype.getCurrentAdBreak=function(){var t=this.getCurrentAdBreakItem();return t?t.adBreak:null},t.prototype.getCurrentAdBreakItem=function(){var t=this.xE.getPlayingItem();return r.default.getPlaybackMode(t)===e.PlaybackMode.AD?t:null},t}();i.default=s},4141:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(954),r=n(5244),s=n(6342),o=function(){function t(t){this.xE=t}return t.prototype.play=function(t,i){void 0===t&&(t=0),this.xE.getPlaybackState()===r.States.INIT&&t>0&&t<this.getDuration()&&(this.xE.startTime=t),this.xE.play(this.dG(i,e.REQUEST_TYPES.PLAY))},t.prototype.pause=function(t){this.xE.pause(this.dG(t,e.REQUEST_TYPES.PAUSE))},t.prototype.preload=function(){this.xE.preload()},t.prototype.seek=function(t){this.xE.seek(t)},t.prototype.disableControls=function(){this.xE.disableControls()},t.prototype.enableControls=function(){this.xE.enableControls()},t.prototype.enableCC=function(t){this.xE.enableCC(t)},t.prototype.disableCC=function(){this.xE.disableCC()},t.prototype.isPlayMode=function(){return this.xE.isPlayMode()},t.prototype.getPlaybackState=function(){return this.xE.getPlaybackState()},t.prototype.isLoading=function(){return this.xE.isLoading()},t.prototype.getDuration=function(){return this.xE.duration},t.prototype.getRawDuration=function(){return this.xE.rawDuration},t.prototype.getCurrentTime=function(){return this.xE.currentTime},t.prototype.getRawCurrentTime=function(){return this.xE.rawCurrentTime},t.prototype.getTimeRemaining=function(){return this.getDuration()-this.getCurrentTime()},t.prototype.setFullscreen=function(t){this.xE.fullscreen=t},t.prototype.getFullscreen=function(){return this.xE.fullscreen},t.prototype.setVolume=function(t,i){void 0===i&&(i=!1),t=(t=t<0?0:t)>1?1:t,this.xE.setVolume(t,i)},t.prototype.getVolume=function(){return this.xE.volume},t.prototype.setMute=function(t){this.xE.mute=t},t.prototype.getMute=function(){return this.xE.mute},t.prototype.setLoop=function(t){this.xE.loop=t},t.prototype.setContinuousPlay=function(t){this.xE.continuousPlay=t},t.prototype.resumeContinuousPlay=function(){this.xE.resumeContinuousPlay(this.dG(null,e.REQUEST_TYPES.CONTINUOUS))},t.prototype.setPlaybackRate=function(t){this.xE.setPlaybackRate(t)},t.prototype.getCurrentDate=function(){return this.xE.currentDate},t.prototype.setAudioLanguage=function(t){throw new Error("setAudioLanguage is unimplemented!")},t.prototype.dG=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},3072:function(t,i,n){"use strict";var e,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.ExternalEvtAPI=i.ExternalEvt=void 0;var s,o=n(1962),u=n(1962);!function(t){t.AD_BREAK_ENDED="adBreakEnded",t.AD_BREAK_ITEM_CURRENT="adBreakItemCurrent",t.AD_BREAK_ITEM_PLAYBACK_STARTED="adBreakItemPlaybackStarted",t.AD_BREAK_ITEM_ENDED="adBreakItemEnded",t.AD_BREAK_ITEM_ERROR="adBreakItemError",t.AD_BREAK_ITEM_SKIPPED="adBreakItemSkipped",t.AD_BREAK_ITEM_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.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"}(s=i.ExternalEvt||(i.ExternalEvt={}));var h=((e={})[s.AD_BREAK_ENDED]=o.AD_BREAK_ENDED,e[s.AD_BREAK_ITEM_CLICKED]=o.AD_BREAK_ITEM_CLICKED,e[s.AD_BREAK_ITEM_CURRENT]=o.AD_BREAK_ITEM_CURRENT,e[s.AD_BREAK_ITEM_PLAYBACK_STARTED]=o.AD_BREAK_ITEM_PLAYBACK_STARTED,e[s.AD_BREAK_ITEM_ENDED]=o.AD_BREAK_ITEM_ENDED,e[s.AD_BREAK_ITEM_ERROR]=o.AD_BREAK_ITEM_ERROR,e[s.AD_BREAK_ITEM_SKIPPED]=o.AD_BREAK_ITEM_SKIPPED,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.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[o.OPSS_VISIBILITY_CHANGED]=o.OPSS_VISIBILITY_CHANGED,e[o.PLAYLIST_BOTTOM_HEIGHT_CHANGE]=o.PLAYLIST_BOTTOM_HEIGHT_CHANGE,e),a=function(){function t(t,i,n){this.cV=t,this.xE=i,this.$U=n,Object.keys(s).forEach((function(t){var i=s[t];h[i]||(h[i]=i)}))}return t.prototype.enablePublish=function(){var t=this;Object.keys(h).forEach((function(i){var n=h[i];t.$U.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.xE.getEventsDto();s.push(o),setTimeout((function(){var n;(n=t.cV).publish.apply(n,r([i],s))}))}),t)}))},t.prototype.getAllExternalEvtNames=function(){return Object.keys(h)},t}();i.ExternalEvtAPI=a},726:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(t){this.xE=t,this.pG=this.xE.getPlaylist()}return t.prototype.getMediaItems=function(){return this.pG.getItems()},t.prototype.removeAllMediaItems=function(){var t=this.pG.size;this.pG.removeItems(0,t)},t.prototype.removeMediaItems=function(t){var i=this;t.forEach((function(t){var n=i.pG.getItemPosition(t.id);i.pG.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.pG.addItemAtIndex(o,e),e++}n&&this.xE.fetchMetadata()}},t.prototype.appendMediaItems=function(t){if(Array.isArray(t)){var i=this.mG(t);this.pG.addItems(t),i&&this.xE.fetchMetadata()}},t.prototype.getCurrentMediaItem=function(){return this.pG.getCurrentItem()},t.prototype.getMediaItemMarkers=function(t){var i=this.xE.mediaStore.getById(t);return i&&i.getMarkers()},t.prototype.setCurrentMediaItem=function(t){if(this.xE.mediaStore.get(t.id)){var i=this.pG.getItemPosition(t.id);this.pG.setPosition(i)}else this.pG.addItems([t]),this.xE.fetchMetadata(),this.pG.setPosition(this.pG.size-1)},t.prototype.setMediaItemTitle=function(t,i){var n=this.pG.getMediaItemById(t);n&&(n.title=i)},t.prototype.mG=function(t){var i=this.xE.mediaStore;return t.filter((function(t){var n=t.id;return null===i.get(n)})).length>0},t}();i.default=n},2079:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(954),r=function(){function t(t){this.xE=t}return t.prototype.getSize=function(){return this.bG().length},t.prototype.getPosition=function(){var t=this.xE.getPlaylist();return t?t.position:-1},t.prototype.sendPrefetchInfo=function(t){return this.xE.sendPrefetchInfo(t)},t.prototype.setPosition=function(t){this.yG(t,"setPosition");var i=this.xE.autoplay,n=i?{type:e.REQUEST_TYPES.API,action:e.REQUEST_TYPES.AUTOPLAY}:null;this.xE.setPlaylistPosition(t,i,n)},t.prototype.setPositionById=function(t){var i=this.gG(t,"setPositionById"),n=this.xE.autoplay,r=n?{type:e.REQUEST_TYPES.API,action:e.REQUEST_TYPES.AUTOPLAY}:null;this.xE.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.xE.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.xE.fetchMetadata(e)}},t.prototype.setItems=function(t){this.addItems(t,!0)},t.prototype.getItems=function(){return this.wG()},t.prototype.getItemId=function(t){return this.yG(t,"getItemId"),this.wG()[t]},t.prototype.getCurrentItemId=function(){var t=this.xE.getCurrentMediaItem();return t?t.id:null},t.prototype.getCurrentItem=function(){var t=this.xE.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.xE.getCurrentMediaItem();return t&&t.videoMarkers||null},t.prototype.getItem=function(t){return this.yG(t,"getItem"),this.getItemById(this.wG()[t])},t.prototype.getItemById=function(t){var i=this,n=this.xE.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.wG().indexOf(t)},t.prototype.removeItem=function(t){this.yG(t,"removeItem"),this.xE.removePlaylistItems(t,1)},t.prototype.removeItems=function(t,i){var n=this.bG();if(!(t in n)||!(t+i-1 in n))throw new Error("removeItems called with invalid position/count");this.xE.removePlaylistItems(t,i)},t.prototype.removeItemById=function(t){var i=this.gG(t,"removeItemById");this.xE.removePlaylistItems(i,1)},t.prototype.removeItemsById=function(t){var i=this;t.forEach((function(t){i.removeItemById(t)}))},t.prototype.clear=function(){this.xE.removePlaylistItems(0,this.bG().length)},t.prototype.bG=function(){return this.xE.getPlaylistItems()},t.prototype.wG=function(){return this.xE.getPlaylistItemIds()},t.prototype.yG=function(t,i){if(!(t in this.bG()))throw new Error(i+" called with invalid position")},t.prototype.gG=function(t,i){var n=this.wG().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(3454),o=n(1958),u=n(9451),h=Math.floor((Math.pow(2,33)-1)/90),a=/\r\n|\r|\n/,c=" --\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(a);try{if(r.length<=1)throw new Error("Invalid SRT document: no data found");var s=void 0,u=void 0,h=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(c)){if(h=u.split(c),v.begin=h[0].trim(),v.end=h[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,m=void 0;for(v.end&&(m=v.end),e.push({begin:o.default.formatTime(p),end:o.default.formatTime(m),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,c,f=t.split(a),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,m=0,b=0;b<l;b++)if(v.test(f[b])){if(m>0){for(s=f[r=b-1]&&f[r].trim(),c=f[r-1]&&f[r-1].trim(),""!==s&&""===c&&r--,e=m;e<=r;e++)d[p].text+=f[e]+(e+1<=r?"<br/>":"");p++}var y=f[b].match(v);if(!y)continue;!n||this._G||u.userAgent.tizen||(this._G=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._G,w-=this._G):(g=g%h+i,w=w%h+i),d[p]={begin:g/1e3,end:w/1e3,text:""},m=b+1;for(var _=[],E=f[b].split(/\s+/).filter((function(t){return t.length>0})),O=3;O<E.length;O++)_.push(E[O]);_.length>0&&(d[p].settings=_)}if(m>0&&m<l)for(e=m;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},1958:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CC_LOCAL_STORAGE_KEY=void 0;var e=n(3872);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},3454: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(1409),h=n(9451),a=n(1962),c=n(4685),f=n(3872),l=n(4986),v=n(9539),d=n(1958),p=n(3792),m="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"}(o=i.CCControllerEvent||(i.CCControllerEvent={}));var b=function(t){function i(i,n,e){var r=t.call(this,"CC Controller")||this;return r.EG={},r.OG=null,r.AG=null,r.SG=[],r.TG=null,r.jG=!1,r.$U=i,r.n_=n,r.IG=r.MG(),r.$U.addEventListener(a.VTT_SEGMENT_LOADED,r.NG,r),r.kG(),r.LG=new p.default(e,r.n_,r.EG),r}return r(i,t),i.prototype.onMediaItemLoaded=function(t){if(t&&(this.AG&&this.AG.id!==t.id&&delete this.EG[this.AG.id],this.AG=t,this.DG=t.isLive(),!this.EG[t.id])){var i={ccAvailable:!1,vttPresent:!1,parsedCaptions:null};this.EG[t.id]=i,this.CG(t)?(i.vttPresent=!0,this.PG(!0)):(i.ccAvailable=!0,i.vttPresent=!1,this.TG=null,this.publish(o.CC_AVAILABILITY_UPDATE,!0),this.xG(t.closedCaptions))}},i.prototype.destroy=function(){this.EG=null},i.prototype.toggleFromUI=function(t,i){t?this.enable(null,i):this.disable(i)},i.prototype.onAdPlaybackStarted=function(t){var i=this;window.setTimeout((function(){i.OG=t}),0)},i.prototype.onPlaybackProgress=function(t,i,n){var e,r=(null===(e=this.AG)||void 0===e?void 0:e.id)||null;r&&!this.OG&&(this.DG?this.UG(r,i):this.VG(r,i,n))},i.prototype.onAdSubtitleTrackAdded=function(t){var i=this;this.EG[t.itemId]={ccAvailable:!1,vttPresent:!1,parsedCaptions:null},this.SG.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.BG(t.track,(function(n){i.TG=i.FG(t.track.lang),i.TG.ccAvailable=!0,i.LG.updateCCVisibility(!0),i.EG[t.itemId]=i.TG,i.zG(),i.GG({show:!0,lang:i.TG.lang},!1),i.enable(t.track.lang)}))},i.prototype.onSubtitleTrackReceived=function(t){if(t&&t.itemId){var i=t.itemId,n=this.EG[i];n||(n={ccAvailable:!1,vttPresent:!1,parsedCaptions:null,tracks:[]},this.EG[i]=n);var e=t.track;e&&(e.mode="hidden",n.ccAvailable=!0,n.tracks||(n.tracks=[]),n.tracks.push(e));var r=this.n_.getItemId();r&&r===i&&this.zG()}},i.prototype.onAdPlaybackProgress=function(t){var i=t.currentTime,n=t.duration;if(this.OG){var e=this.OG.adId||this.OG.id||null;e&&this.VG(e,i,n)}},i.prototype.onAdBreakEnded=function(){this.HG()||this.PG(!0),this.YG()},i.prototype.YG=function(){this.OG=null,this.HG()&&this.zG()},i.prototype.onMediaItemPlaybackStarted=function(){this.YG()},i.prototype.onMediaItemPlaybackEnded=function(){this.disable()},i.prototype.onLanguageChange=function(t){this.enable(t,!0)},i.prototype.updateCCStyle=function(){var t;null===(t=this.LG)||void 0===t||t.updateCCStyle()},i.prototype.enable=function(t,i){var n=this;void 0===t&&(t=null),void 0===i&&(i=!1);var e=this.n_.getItemId(),r=e?this.EG[e]:null;if(!r||!r.ccAvailable)return!1;var s=function(){var e=r.tracks||[];return!(!e||e.length<1)&&(n.qG=n.WG(r,t),!!n.qG&&(e.forEach((function(t){t===n.qG?t.mode="showing":t.mode="hidden"})),n.GG({show:!0,lang:n.qG.language},i),!0))};if(r.vttPresent||h.userAgent.ios){if(this.LG.updateCCVisibility(!0),this.LG.updateCCLiveView(this.DG),r&&r.hasNonNativeCC)return this.GG({show:!0,lang:m},i),!0;var u=s();return u||this.publish(o.CC_AVAILABILITY_UPDATE,!1),u}return this.TG=this.QG(t),!(!h.userAgent.desktop&&!h.userAgent.android)&&(this.BG(this.TG,(function(t){var e,o;t?(r.parsedCaptions=null===(e=n.TG)||void 0===e?void 0:e.parsedCC,n.LG.updateCCVisibility(!0),n.GG({show:!0,lang:null===(o=n.TG)||void 0===o?void 0:o.lang},i)):s()})),!0)},i.prototype.disable=function(t){void 0===t&&(t=!1);var i=this.$G(),n=i?this.EG[i]:null;return this.GG({show:!1},t),this.DG&&!this.n_.playbackState.ad||!n||n.vttPresent||(n.parsedCaptions=null),n&&n.tracks&&n.tracks.forEach((function(t){t.mode="hidden"})),this.LG.updateCCVisibility(!1),!0},i.prototype.ccPositionFloat=function(t){this.LG.floatCCPosition(t)},i.prototype.adjustCCSizeToScreen=function(t){this.LG.adjustCCSizeToScreen(t)},i.prototype.QG=function(t){var i=this.FG(t);return i||(i=this.FG(this.IG.lang)),!i&&this.SG.length&&(i=this.SG[0]),i},i.prototype.MG=function(){var t=this.n_.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.kG=function(){this.n_.ccOnMute&&this.n_.mute&&(this.jG=!0)},i.prototype.XG=function(){var t,i=[m];return(null===(t=this.SG)||void 0===t?void 0:t.length)&&(i=this.SG.map((function(t){return t.lang}))),i},i.prototype.zG=function(){var t,i,n=this.XG(),e=this.$G(),r=e?this.EG[e]:null,s=(null===(t=this.TG)||void 0===t?void 0:t.lang)||this.IG.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.qG)||void 0===i?void 0:i.language)||this.IG.lang)}this.publish(o.CC_LIST_FETCHED,{langList:n,selectedLang:s}),this.LG.updateClosedCaptionButtonState(this.ZG()),this.publish(o.CC_AVAILABILITY_UPDATE,!0),this.ZG()&&this.enable()},i.prototype.ZG=function(){return this.IG.show||this.jG},i.prototype.$G=function(){var t,i,n=this.n_.playbackState;return n&&n.playingItem&&n.playingItem.adBreakItemId?t=n.playingItem.adBreakItemId:(i=this.n_.playlist.getCurrentItem())&&(t=i&&i.id),t},i.prototype.FG=function(t){for(var i,n,e=null==t?void 0:t.toLowerCase().replace("_","-"),r=0,s=this.SG;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!==m&&"en"!==o.lang||(n=o)}return n},i.prototype.BG=function(t,i){var n=this;if(t){var e=this.n_.getItemId(),r=e?this.EG[e]:null,o=t.format||s.vtt;if(r&&t){var u={url:t.url};if(h.userAgent.ie&&h.userAgent.ie<10&&(u.cors=!0),t.parsedCC)return i&&i(!0);f.Loader.ajax(t.url,{context:this,failureHandler:function(t){n.PG(),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.AG&&n.AG.setCCAvailability(!0),i&&i(!0)),i&&i(!1)}})}else i&&i(!1)}else i&&i(!1)},i.prototype.PG=function(t){if(void 0===t&&(t=!1),this.publish(o.CC_AVAILABILITY_UPDATE,!1),this.TG=null,this.qG=null,this.disable(),t){var i=this.n_.getItemId(),n=i?this.EG[i]:null;n&&(n.ccAvailable=!1),this.SG=[]}},i.prototype.GG=function(t,i){t||(t={});var n=t&&t.show,e=t&&t.lang;this.$U.publish(a.CCEvent.TOGGLE,n),i&&(l.isBoolean(n)&&(this.IG.show=n,this.jG=n),e&&l.isString(e)&&(this.IG.lang=e),d.default.saveCCSettingsToLocalStorage({ccSettings:this.IG}))},i.prototype.UG=function(t,i){var n=this;if(t){var e=this.EG[t];if(e&&e.hasNonNativeCC&&this.JG(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.LG.updateCCContent(o,e.parsedCaptions[r].settings)}else this.KG||(this.KG=setTimeout((function(){n.LG.updateCCContent(""),clearTimeout(n.KG),n.KG=null}),1e3))}else this.LG.updateCCContent("")}},i.prototype.VG=function(t,i,n){if(t){var e=this.EG[t];if(e&&e.hasNonNativeCC&&this.JG(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 h=e.parsedCaptions[o].text||"";this.LG.updateCCContent(h,e.parsedCaptions[o].settings)}else this.LG.updateCCContent("")}else this.LG.updateCCContent("")}},i.prototype.JG=function(t){(t&&t.tracks||[]).forEach((function(t){t.mode="hidden"}))},i.prototype.NG=function(t,i){if(t){var n=t.itemId;if(n){var e=this.EG[n];if(e||(e={ccAvailable:!1,vttPresent:!1,parsedCaptions:null},this.EG[n]=e),e.hasNonNativeCC=!0,!e.parsedCaptions||!e.ccAvailable){e.parsedCaptions=e.parsedCaptions||[],e.vttPresent=!0,e.ccAvailable=!0;var r=this.n_.playlist.getMediaItemById(n);r&&r.setCCAvailability(!0);var s=this.n_.getItemId();s&&s===n&&this.zG()}if(e.vttPresent){var o=t.adjustedTime?t.adjustedTime:0,u=v.VTTParser.parse(t.data||"",o,i);e.parsedCaptions=this.tH(e.parsedCaptions,u)}}}},i.prototype.tH=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.CG=function(t){if(!t)return!1;if(this.DG||!this.DG&&t.rendererType===c.RendererType.HTML5_HLS){var i=t.getSubtitleStreams();if(i&&i.length>0)return!0}return!t.closedCaptions||!t.closedCaptions.length},i.prototype.xG=function(t){var i,n=t.filter((function(t){return"text/vtt"===t.content_type}));if(this.SG=n,this.SG.length){var e=this.IG.lang,r=h.userAgent.mobile?o.CC_LIST_FETCHED_MOBILE:o.CC_LIST_FETCHED,s=h.userAgent.mobile?this.SG:this.XG();this.publish(r,{langList:s,selectedLang:e}),h.userAgent.mobile||null===(i=this.AG)||void 0===i||i.setCCAvailability(!0),this.ZG()?this.enable(e):this.disable()}else this.PG(!0)},i.prototype.WG=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.IG.lang||m),!n&&this.IG.lang&&r(this.IG.lang),!n&&e[0]&&(n=e[0]),n},i.prototype.HG=function(){var t=this.AG?this.EG[this.AG.id]:null;return t&&t.ccAvailable||!1},i}(u.default);i.CCController=b},6618: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(3493);i.Command=e.default;var r=n(8619);i.MetadataLoadCommand=r.default;var s=n(4033);i.MoreItemsLoadCommand=s.default;var o,u,h=n(7196);i.SourceMetadataLoadCommand=h.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},4802:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.create=void 0;var e=n(6618);i.create=function(t,i,n){var r=e[t+"Command"];return r?new r(i,n):null}},4138:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(6342),r=n(6618),s=n(4802),o=function(){function t(t){for(var i in this.iH=t,this.i_={},this.dp={},r.CmdName)if(Object.prototype.hasOwnProperty.call(r.CmdName,i)){var n=r.CmdName[i];this.i_[n]={}}}return t.prototype.destroy=function(){this.removeAllCommands(),this.i_={}},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.iH)}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 h=r.CmdEvent[u],a="on"+t+h;n[a]&&(this.dp[h+t+o.key]=o.addEventListener(h,n[a],n))}return this.i_[t][o.key]=o,o},t.prototype.removeCommand=function(t){if(t){var i=this.i_[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.dp[e+t.cmdName+t.key]),delete this.dp[e+t.cmdName+t.key])}t.destroy()}}},t.prototype.removeRelatedCommands=function(t){if(Object.prototype.hasOwnProperty.call(this.i_,t)){var i=this.i_[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.i_)Object.prototype.hasOwnProperty.call(this.i_,t)&&this.removeRelatedCommands(t)},t.prototype.getCommand=function(t){var i=this.i_[t];if(!i)return null;var n=Object.keys(i);return n.length<1?null:i[n[n.length-1]]},t}();i.default=o},3493: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.iH=t},enumerable:!1,configurable:!0}),i}(n(1409).default);i.default=s},8619: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(6389),o=n(6120),u=n(1279),h=n(6342),a=n(3493),c=n(6618),f=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.cmdName=c.CmdName.CMD_METADATA_LOAD,e.N_=!1,e.gO=!1,e}return r(i,t),i.prototype.destroy=function(){this.gO=!0,this.cancel(),t.prototype.destroy.call(this)},i.prototype.execute=function(){if(!this.N_&&!this.gO){var t=this.data,i=t.autoplay,n=t.failoverCount,e=t.privacyConsent,r=t.mimetype,a=t.mediaItemDataArr,f=t.rendererCapabilities,l=t.rendererTypes,v=t.sessionId,d=t.thumbnailDimensions,p=t.tryCount,m=this.iH.getPlugin(u.PluginType.METADATA,r),b={autoplay:i,failoverCount:n,privacyConsent:e,rendererCapabilities:f,rendererTypes:l,sessionId:v,thumbnailDimensions:d,tryCount:p};if(m)this.nH=m,this.N_=!0,this.publish(c.CmdEvent.CMD_PROGRESS,this,a,o.ItemState.FETCHING),m.resolve(a,b,this);else{var y="No metadata plugin found for mimetype = "+r,g=h.default.createErr(s.ErrorGroup.Service,null,s.E_PLAYER,s.PLAYER_CODES.E_NO_PLUGIN_FOUND,y);this.publish(c.CmdEvent.CMD_ERROR,this,g)}}},i.prototype.cancel=function(){this.nH&&this.N_&&(this.nH.cancel(),this.N_=!1)},i.prototype.onProgress=function(t){this.N_&&!this.gO&&this.publish(c.CmdEvent.CMD_PROGRESS,this,t)},i.prototype.onComplete=function(t){this.N_&&!this.gO&&(this.N_=!1,this.publish(c.CmdEvent.CMD_COMPLETE,this,t))},i.prototype.onError=function(t){if(this.N_&&!this.gO&&(this.N_=!1,t.code&&t.code.length)){var i=h.default.createErr(t.group||s.ErrorGroup.Service,null,t.category||s.E_PLAYER,t.code||s.PLAYER_CODES.E_CMS_XHR_RESPONSE_ABSENT,t.message);this.publish(c.CmdEvent.CMD_ERROR,this,i)}},i.prototype.onApiCallInfo=function(t){t&&this.publish(c.CmdEvent.CMD_INFO,this,t)},i}(a.default);i.default=f},4033: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(6389),o=n(1279),u=n(6342),h=n(3493),a=n(6618),c=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.cmdName=a.CmdName.CMD_MORE_ITEMS_LOAD,e.eH=null,e.N_=!1,e.gO=!1,e}return r(i,t),i.prototype.destroy=function(){this.gO=!0,this.cancel(),t.prototype.destroy.call(this)},i.prototype.execute=function(){if(!this.N_&&!this.gO){var t=this.data,i=t.cb,n=t.mimetype,e=t.reason,r=t.start,s=this.iH.getPlugin(o.PluginType.MORE_ITEMS,n);this.eH=i;var u={mimetype:n,reason:e,start:r};s&&(this.nH=s,this.N_=!0,s.resolve(u,this))}},i.prototype.cancel=function(){this.nH&&this.N_&&(this.nH.cancel(),this.N_=!1)},i.prototype.onComplete=function(t){this.N_&&!this.gO&&(this.N_=!1,this.publish(a.CmdEvent.CMD_COMPLETE,this,t))},i.prototype.onError=function(t){if(this.N_&&!this.gO&&(this.N_=!1,t&&t.code&&t.code.length)){var i=u.default.createErr(t.group||s.ErrorGroup.Service,null,t.category||s.E_PLAYER,t.code,t.message,"more items load failed");this.publish(a.CmdEvent.CMD_ERROR,this,i)}},i.prototype.onApiCallInfo=function(t){t&&this.publish(a.CmdEvent.CMD_INFO,this,t)},i.prototype.onPromisesResolved=function(t){this.eH&&this.eH(t)},i}(h.default);i.default=c},7196: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(6389),o=n(6120),u=n(1279),h=n(6342),a=n(3493),c=n(6618),f=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.cmdName=c.CmdName.CMD_SOURCE_METADATA_LOAD,e.N_=!1,e.gO=!1,e}return r(i,t),i.prototype.destroy=function(){this.gO=!0,this.cancel(),t.prototype.destroy.call(this)},i.prototype.execute=function(){if(!this.N_&&!this.gO){var t=this.data,i=t.autoplay,n=t.failoverCount,e=t.privacyConsent,r=t.mimetype,a=t.mediaItemDataArr,f=t.rendererCapabilities,l=t.rendererTypes,v=t.sessionId,d=t.recovering,p=t.thumbnailDimensions,m=t.tryCount,b=t.playlistPosition,y=this.iH.getPlugin(u.PluginType.SOURCE_METADATA,r),g={autoplay:i,failoverCount:n,privacyConsent:e,rendererCapabilities:f,rendererTypes:l,sessionId:v,thumbnailDimensions:p,tryCount:m,playlistPosition:b};if(y)this.nH=y,this.N_=!0,this.publish(c.CmdEvent.CMD_PROGRESS,this,a,o.SourceState.FETCHING),!0===d?y.recover(a[0],g,this):y.resolve(a,g,this);else{var w="No source metadata plugin found for mimetype = "+r,_=h.default.createErr(s.ErrorGroup.Service,null,s.E_PLAYER,s.PLAYER_CODES.E_NO_PLUGIN_FOUND,w);this.publish(c.CmdEvent.CMD_ERROR,this,_)}}},i.prototype.cancel=function(){this.nH&&this.N_&&(this.nH.cancel(),this.N_=!1)},i.prototype.onProgress=function(t){this.N_&&!this.gO&&this.publish(c.CmdEvent.CMD_PROGRESS,this,t)},i.prototype.onComplete=function(t){this.N_&&!this.gO&&(this.N_=!1,this.publish(c.CmdEvent.CMD_COMPLETE,this,t))},i.prototype.onError=function(t){if(this.N_&&!this.gO&&(this.N_=!1,t.code&&t.code.length)){var i=h.default.createErr(t.group||s.ErrorGroup.Service,null,t.category||s.E_PLAYER,t.code,t.message);this.publish(c.CmdEvent.CMD_ERROR,this,this.data.mediaItemDataArr,i)}},i.prototype.onApiCallInfo=function(t){t&&this.publish(c.CmdEvent.CMD_INFO,this,t)},i}(a.default);i.default=f},954: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={}))},3194: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.AdPlaybackController=i.AdPlaybackControllerEvent=void 0;var s,o=n(1409),u=n(3872),h=n(1962),a=n(2542),c=n(3277),f=n(8103),l=n(440),v=n(1279),d=n(4986);!function(t){t.AD_BREAK_NEED_RESOLVE="adBreakNeedResolve",t.AD_BREAK_ITEM_NEED_SOURCE="adBreakItemNeedSource",t.AD_BREAK_ITEM_PLAY="adBreakItemPlay",t.AD_BREAK_ITEM_PLAYING="adBreakItemPlaying",t.AD_BREAK_STARTED="adBreakStarted",t.AD_BREAK_ENDED="adBreakEnded",t.AD_BREAK_ITEM_STARTED="adBreakItemStarted",t.AD_BREAK_ITEM_ENDED="adBreakItemEnded",t.AD_BREAK_SKIP="adBreakSkip",t.AD_BREAK_FORCE_PLAY_MIDROLL="adBreakForcePlayMidroll",t.AD_CLIENT_COMPLETED="adClientCompleted",t.AD_CLIENT_TIMEOUT="adClientTimeout",t.CREATE_OVERLAY_CONTAINER="createOverlayContainer",t.AD_METRICS="adMetrics",t.AD_DIAGNOSTICS="adDiagnostics"}(s=i.AdPlaybackControllerEvent||(i.AdPlaybackControllerEvent={}));var p=function(t){function i(i,n){var e=t.call(this,"AdPlaybackController")||this;e.n_=i,e.rH=n,e.sH=null,e.oH={},e.uH={},e.hH={},e.aH={},e.cH={},e.fH={},e.lH={};var r=e.n_.config.ads.timeout,s=r.load+r.start;return e.vH={},e.dH=new u.Timer(1e3*s,e.pH,e,1),e}return r(i,t),i.prototype.prepareAdsForItem=function(t){var i=t.refPlaybackId;if(t.adConfig&&t.adConfig.mimetype){var n=this.rH.getPlugin(v.PluginType.AD,t.adConfig.mimetype),e=this.mH(i,n);if(n&&e&&d.isAdResolverAdPlugin(n)){this.vH[i]={item:t,beginTS:Date.now()},this.bH({evt:"ad_fetch"},t);var r=this.n_.playlist.position;n.fetchAdBreaks({refId:i,config:t.adConfig.value,pos:r})}}else this.mH(i,null)},i.prototype.startTracking=function(t){var i=this,n=t.refPlaybackId;n!==this.yH&&(this.gH(),this.wH(t),this.oH[n]={},this.uH[n]={},this.cH[n]=[],this.hH={},this.aH={},this._H=[],this.EH=null,this.OH=!1,this.sH=null,this.AH=null,this.SH=null,this.TH.adBreaks&&(this.dH.reset(),this.TH.adBreaks.forEach((function(n){i.jH(t,n)}))))},i.prototype.resolveAdBreaks=function(t,i){var n=this,e=t.refPlaybackId,r=this.oH[e]&&this.oH[e][i],s=this.fH[e];d.isAdResolverAdPlugin(s)&&r&&0!==r.length&&r.forEach((function(t){t.hasResolved()||t.error||n.hH[t.adBreakId]||n.aH[t.adBreakId]||(n.hH[t.adBreakId]=t.mediaItem,s.resolveAdBreak(t.rawItemData))}))},i.prototype.getPlayingInstreamAd=function(){return this.sH||null},i.prototype.updatePlaybackProgress=function(t){var i=t.currentTime;if(t.playingItem===this.TH){var n=this.IH(i);if(n!==this.sH){var e=this.sH;this.sH=n,this.MH(e,n)}}},i.prototype.onMediaItemPlaybackEnded=function(t){},i.prototype.handleMediaItemSeeked=function(t,i,n){if(t===this.TH&&(n=d.isNumber(n)?n:0,t instanceof l.default&&!t.isLive()&&t.adBreaks.length)){for(var e=void 0,r=0,o=t.adBreaks;r<o.length;r++){var u=o[r];u.startOffset<=i&&u.type===f.AdBreakType.MIDROLL&&(e=u)}if(e&&e.active){var h=e.startOffset;h>=n&&h<i&&this.publish(s.AD_BREAK_FORCE_PLAY_MIDROLL,e)}}},i.prototype.playClientAdBreaks=function(t,i){var n=this;if(this.TH===t){this.n_.playbackState.currentMediaType=i;var e=Object.keys(this.vH).map((function(t){return n.vH[t].item})).some((function(t){return t===n.TH}));if(this.NH(i,t),!e){var r=t.refPlaybackId,o=this.oH[r]&&this.oH[r][i]||[],u=this.uH[r]&&this.uH[r][i]||[];if(0===o.length&&0===u.length)return this.gH(),void this.publish(s.AD_CLIENT_COMPLETED,i,t);this.resolveAdBreaks(t,i),this.RH(t,i)}}},i.prototype.pauseClientAdStartTimer=function(){this.dH&&this.dH.stop()},i.prototype.resumeClientAdStartTimer=function(){var t=this.kH(),i=this.dH;t&&i&&!i.running&&i.start()},i.prototype.handleAdBreakResolved=function(t,i){t&&i&&(delete this.hH[i.adBreakId],this.jH(t,i),this.LH(t,[i])&&this.RH(t,i.type))},i.prototype.handleAdBreakItemPlaybackStarted=function(t){t.instream||(this.DH(),this.publish(s.AD_BREAK_ITEM_STARTED,t))},i.prototype.handleAdBreakItemEnded=function(t){this.CH(t,!1,!1)},i.prototype.handleAdBreakItemError=function(t){this.CH(t,!0,!1)},i.prototype.stopCurrentPlayback=function(t){this.publish(s.AD_BREAK_ENDED,t&&t.adBreak||null)},i.prototype.destroy=function(){var i=this;t.prototype.destroy.call(this),this.dH.destroy(),this.dH=null,Object.keys(this.lH).forEach((function(t){i.lH[t]()})),this.vH=null},i.prototype.CH=function(t,i,n){if(!t.instream){this.publish(s.AD_BREAK_ITEM_ENDED,t),this.EH=null;var e=t.adBreak,r=e.mediaItem;!i&&this.n_.loop&&e.type===f.AdBreakType.NATIVE||(n||t===e.adBreakItems[e.adBreakItems.length-1])&&this.publish(s.AD_BREAK_ENDED,e),n||(this.OH=!1,this.RH(r,e.type))}},i.prototype.IH=function(t){for(var i=0,n=this._H.length-1;i<=n;){var e=i+Math.floor((n-i)/2),r=this._H[e];if(t>=r.startOffset&&t<r.endOffset)return r.adBreakItem;t>r.endOffset?i=e+1:n=e-1}return null},i.prototype.MH=function(t,i){if(i&&!t){if(i===i.adBreak.adBreakItems[0]){if(!i.adBreak.active)return this.sH=null,void this.publish(s.AD_BREAK_SKIP,i.adBreak,!0);this.publish(s.AD_BREAK_STARTED,i.adBreak)}this.publish(s.AD_BREAK_ITEM_STARTED,i)}!i&&t&&(this.publish(s.AD_BREAK_ITEM_ENDED,t),t===t.adBreak.adBreakItems[t.adBreak.adBreakItems.length-1]&&this.publish(s.AD_BREAK_ENDED,t.adBreak)),i&&t&&(this.publish(s.AD_BREAK_ITEM_ENDED,t),this.publish(s.AD_BREAK_ITEM_STARTED,i))},i.prototype.jH=function(t,i){var n=this,e=i.type,r=t.refPlaybackId;this.oH[r]=this.oH[r]||{},this.oH[r][e]=this.oH[r][e]||[],this.uH[r]=this.uH[r]||{},this.uH[r][e]=this.uH[r][e]||[],i.hasResolved()||i.error?i.adBreakItems.forEach((function(t,s){if(t.instream){var o=0===s?i.startOffset:n._H[n._H.length-1].endOffset;n._H.push({adBreakItem:t,startOffset:o,endOffset:o+t.duration})}else n.uH[r][e].push(t)})):this.oH[r][e].push(i)},i.prototype.gH=function(){if(this.DH(),this.TH){var t=this.yH;this.vH&&this.vH[t]&&delete this.vH[t]}this.OH=!1,this.hH={},this.aH={}},i.prototype.RH=function(t,i){var n=this;if(!this.OH){var e,r=t.refPlaybackId,o=this.uH[r]&&this.uH[r][i]||[],u=o.filter((function(t){return-1===(n.cH[r]||[]).indexOf(t.adBreakItemId)}));if(!(e=i===f.AdBreakType.NATIVE&&this.n_.loop?o[0]:u[0]))return Object.keys(this.hH).length>0?void 0:(this.gH(),void this.publish(s.AD_CLIENT_COMPLETED,i,this.TH));this.OH=!0,this.cH[r]=this.cH[r]||[],this.cH[r].push(e.adBreakItemId),e===e.adBreak.adBreakItems[0]&&this.publish(s.AD_BREAK_STARTED,e.adBreak),this.bH({evt:"ad_play"},t),this.EH=e,this.publish(s.AD_BREAK_ITEM_PLAY,e)}},i.prototype.NH=function(t,i){this.DH(),this.AH=t,this.SH=i,this.dH.start()},i.prototype.pH=function(){var t=this.AH,i=this.SH;this.EH&&this.CH(this.EH,!0,!0),this.gH(),this.publish(s.AD_CLIENT_TIMEOUT,t,i)},i.prototype.DH=function(){this.dH.reset(),this.AH=null,this.SH=null},i.prototype.LH=function(t,i){var n=this;return!(t!==this.TH||t!==this.SH||!this.dH)&&i.some((function(t){return t.type===n.AH}))},i.prototype.PH=function(t,i){return!(t!==this.TH||t!==this.SH||!this.dH)},i.prototype.kH=function(){return!!this.AH},i.prototype.xH=function(t,i){for(var n,e,r=this,o=[],u=2;u<arguments.length;u++)o[u-2]=arguments[u];switch(i){case a.AdPluginEvent.AD_BREAK_RESOLVED:case a.AdPluginEvent.AD_BREAK_RESOLVE_ERROR:if(n=o[0],!(e=this.hH[n.adBreakId]))return;this.aH[n.adBreakId]=e;var c=null;i===a.AdPluginEvent.AD_BREAK_RESOLVE_ERROR&&(c=new Error("Ad Plugin Resolve Error"));var l=e.updateAdBreak(n,this.n_.adsRendererTypes,this.n_.capabilities,c);this.handleAdBreakResolved(e,l);break;case a.AdPluginEvent.AD_SUBTITLES_FOUND:this.publish(h.AD_SUBTITLE_TRACK_ADDED,o[0]);break;case a.AdPluginEvent.AD_SUBTITLES_NOT_FOUND:this.publish(h.AD_SUBTITLE_NOT_FOUND);break;case a.AdPluginEvent.AD_BREAK_PLAYING:this.publish(s.AD_BREAK_ITEM_PLAYING);break;case a.AdPluginEvent.AD_BREAKS_AVAILABLE:var v=o[0],p=this.vH[v.refId];if(delete this.vH[v.refId],p&&(e=p.item,this.bH({evt:"ad_fetched",latency:Date.now()-p.beginTS},e)),!p||!e||!v.refId)return;var m=v.adBreaks;m||(m=[]);var b=e.addAdBreaks(v.adBreaks);b.forEach((function(t){r.jH(e,t)})),e.adBreaks.some((function(t){return t.type===f.AdBreakType.NON_LINEAR}))&&d.isAdOverlayRendererAdPlugin(t)&&this.publish(s.CREATE_OVERLAY_CONTAINER,(function(i){i&&t.setNonlinearAdContainer(i)})),this.PH(e,b)?this.playClientAdBreaks(e,this.AH):this.resolveAdBreaks(e,f.AdBreakType.PREROLL);break;case a.AdPluginEvent.DIAGNOSTICS:var y=o[0];this.publish(s.AD_DIAGNOSTICS,y);break;case a.AdPluginEvent.METRICS:var g=o&&o[0],w=g&&g.evt;if("string"==typeof w){var _="object"==typeof g?Object.assign({},g):{evt:w};this.bH(_,this.TH)}}},i.prototype.mH=function(t,i){return!this.fH[t]&&(this.fH[t]=i,i&&(this.lH[i.mimetype]||(this.lH[i.mimetype]=c.listenEventDispatcherEvts(i,Object.keys(a.AdPluginEvent).map((function(t){return a.AdPluginEvent[t]})),this.xH.bind(this)))),!0)},i.prototype.wH=function(t){this.TH=t,this.yH=t.refPlaybackId},i.prototype.bH=function(t,i){void 0===t&&(t={}),i&&(t.prefetch=i.adConfigPrefetched?1:0),this.publish(s.AD_METRICS,t)},i}(o.default);i.AdPlaybackController=p},1372:function(t,i,n){"use strict";var e=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 r=n(4426),s=n(9451),o=n(3072),u=n(3454),h=n(4138),a=n(954),c=n(6389),f=n(1962),l=n(1960),v=n(440),d=n(6120),p=n(2341),m=n(2334),b=n(4536),y=n(1279),g=n(4685),w=n(5244),_=n(3872),E=n(2912),O=n(1204),A=n(4986),S=n(6342),T=n(9241),j=n(8103),I=n(4046),M=n(8903),N=n(7549),R=n(83),k=n(5109),L=n(4797),D=n(655),C=n(9939),P=n(2559),x=n(7343),U=n(830),V=n(1032),B=n(4354),F=n(649),z=function(){function t(t,i,n,e,r){this.UH=[],this.TR=t,this.VH=r,this.$U=e,this.$U.publish(f.PROFILE_START,[f.METRICS.VP_CONSTRUCTOR]),this.n_=new m.default(t,i,n),this.BH=this.n_.mediaStore,this.FH(),this.zH=[],this.iH=new b.default,this.yS=new h.default(this.iH),this.GH=new N.default(this.$U),this.HH(),this.YH(),this.qH=new M.PlaybackController(this.n_,this.$U,this.iH,this.WH),this.QH(),this.n_.autoplay&&this.$U.publish(f.PROFILE_START,f.METRICS.INIT_TO_START),this.kV(),this.$U.publish(f.PROFILE_END,f.METRICS.VP_CONSTRUCTOR),this.$U.publish(f.PROFILE_START,f.METRICS.INIT_RENDER_GAP),this.$H()}return t.prototype.initialize=function(){this.XH||(this.XH=new I.MetadataController(this.yS,this.n_),this.ZH(),this.fetchMetadata())},t.prototype.fetchMetadata=function(t){this.XH&&this.XH.loadMetadata(t)},t.prototype.destroy=function(){this.JH&&this.JH.destroy(),this.KH(),this.$U&&this.$U.destroy(),this.tY&&this.tY.destroy(),this.n_&&this.n_.destroy(),this.XH&&this.XH.destroy(),this.qH&&this.qH.destroy(),this.iY(),this.iH.destroy(),this.yS.destroy()},t.prototype.render=function(t){this.$U.publish(f.PROFILE_END,f.METRICS.INIT_RENDER_GAP),this.$U.publish(f.PROFILE_START,f.METRICS.CREATE_RENDERER);var i=A.isString(t)?document.querySelector(t):t;if(null===i&&this.$U.publish(f.ERROR,this.nY(c.PLAYER_CODES.E_INVALID_CONFIG,!1,"Invalid DOM node or CSS selector specified. Cannot render player.")),this.JH=new T.default(i,this.n_,this.$U,this.VH,this.iH,this.qH),this.eY(),this.n_.playerRootElement=i,this.JH.render(),this.rY=this.JH.getPlaylistController(),A.isFunction(u.CCController)&&(this.tY=new u.CCController(this.$U,this.n_,this.JH),this.sY()),this.n_.firstCriticalError)this.tO(this.n_.firstCriticalError);else{if(this.oY=!1,this.JH.syncViewState(),this.n_.autoplay){var n={type:a.REQUEST_TYPES.AUTOPLAY,action:a.REQUEST_TYPES.AUTOPLAY};this.play(n)}else{var e=this.getCurrentMediaItem();this.GH.setPreloadItem(e),e.isLive()||this.GH.startPreload()}this.$U.publish(o.ExternalEvt.PLAYER_RENDERED),this.$U.publish(f.PROFILE_END,f.METRICS.CREATE_RENDERER),this.JH.setTheme(this.TR.cssTheme),this.uY(y.PluginPlayerEvent.PLAYER_RENDERED,{rootElem:i})}},Object.defineProperty(t.prototype,"model",{get:function(){return this.n_},enumerable:!1,configurable:!0}),t.prototype.registerPlugin=function(t){var i=this.n_.config,n=i.pluginConfigs&&i.pluginConfigs[t.type]&&i.pluginConfigs[t.type][t.mimetype];switch(t.type){case y.PluginType.AD:var e=this.n_.privacyConsent;n=Object.assign({autoplay:i.autoplay,playerGuid:this.n_.guid,timeout:{hard:i.ads.timeout.load,start:i.ads.timeout.start,maxAdSearch:i.ads.timeout.maxAdSearch||604800},privacyConsent:{gdprApplies:e.gdprApplies,gdprConsentData:e.gdprConsentData,uspString:e.uspString}},n),"adplugin/vrm"===t.mimetype&&(n.disableFailoverOnDlvFailure=!1,n.disableVIPAdCallRetry=!1,n.adCallWithCredentialsAlways=!1),n.playerName=n.playerName||"CorePlayer";break;case y.PluginType.MORE_ITEMS:this.hY=t.mimetype}this.iH.register(t,n),A.isPlayerPluginEventListener(t)&&this.zH.push(t)},Object.defineProperty(t.prototype,"rootElement",{get:function(){return this.n_.rendered?this.JH.getRootElement():null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoElement",{get:function(){return this.n_.rendered?this.JH.getVideoElement():null},enumerable:!1,configurable:!0}),t.prototype.supportSendBeacon=function(){return!(s.userAgent.ie||s.userAgent.safari||s.userAgent.ios)},t.prototype.play=function(t){void 0===t&&(t=null),this.qH.startPlayback(t),this.$U.publish(f.CTRL_PLAYPAUSE,"play")},t.prototype.pause=function(t){!this.n_.isPaused()&&this.aY.shouldPlay&&(this.qH.pause(t),this.$U.publish(f.CTRL_PLAYPAUSE,"pause"))},t.prototype.seek=function(t){this.qH.seek(t)},t.prototype.recover=function(){this.WH&&this.WH.recover()},t.prototype.preload=function(){this.GH.startPreload()},t.prototype.stopPreload=function(){this.GH.stopPreload()},t.prototype.disableControls=function(){this.n_.rendered&&this.JH.disableControls()},t.prototype.enableControls=function(){this.n_.rendered&&this.JH.enableControls()},t.prototype.enableCC=function(t){var i;null===(i=this.tY)||void 0===i||i.enable(t)},t.prototype.disableCC=function(){var t;null===(t=this.tY)||void 0===t||t.disable()},t.prototype.isPlayMode=function(){var t=this.n_.getState();return(t===w.default.VIDEO||t===w.default.WAITING)&&!this.n_.isPaused()},t.prototype.isLoading=function(){return this.aY.videoLoading()},t.prototype.setCustomError=function(t,i,n,e,r){if(/^player-/.test(t)||(t="player-"+t),-1===[f.ERROR,f.WARNING,f.INFO].indexOf(t))throw new Error("invalid error level");if(-1===Object.keys(c.ErrorGroup).map((function(t){return c.ErrorGroup[t]})).indexOf(i))throw new Error("invalid error group");this.$U.publish(t,S.default.createErr(i,this.aY,n,e,r))},Object.defineProperty(t.prototype,"fullscreen",{get:function(){return!!this.n_.rendered&&this.JH.getFullscreen()},set:function(t){this.n_.rendered&&this.JH.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.n_.muteMode&&(this.n_.mute=!1),_.LocalStorage.put(a.LocalStorageKey.VOLUME,{volume:t,mute:this.n_.mute})),this.n_.rendered&&this.qH.setVolume(t,i),this.JH.updateVolumeUI(t,null,i)},Object.defineProperty(t.prototype,"volume",{get:function(){return this.n_.volume},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.n_.rendered?this.qH.getCurrentTime():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawCurrentTime",{get:function(){return this.n_.rendered?this.qH.getRawCurrentTime():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mute",{get:function(){return this.n_.mute},set:function(t){this.n_.muteMode&&this.n_.mute||(_.LocalStorage.put(a.LocalStorageKey.VOLUME,{volume:this.n_.volume,mute:t}),this.n_.rendered&&this.qH.setMute(t),this.JH.updateVolumeUI(this.n_.volume,t))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{set:function(t){this.n_.loop=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){return this.n_.continuousPlay},set:function(t){this.n_.continuousPlay=t},enumerable:!1,configurable:!0}),t.prototype.resumeContinuousPlay=function(t){this.qH.resumeContinuousPlay(t)},Object.defineProperty(t.prototype,"autoplay",{get:function(){return this.n_.autoplay},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mediaStore",{get:function(){return this.n_.mediaStore},enumerable:!1,configurable:!0}),t.prototype.getPlaybackState=function(){return this.n_.getState()},t.prototype.getCurrentMediaItem=function(){return this.pG.getCurrentItem()},t.prototype.getPlaylistItems=function(){return this.pG.getItems().map((function(t){return{id:t.id,mimetype:t.mimetype}}))},t.prototype.getPlaylistItemIds=function(){return this.pG.getItemIds()},t.prototype.getPlaylist=function(){return this.pG},Object.defineProperty(t.prototype,"rendered",{get:function(){return this.n_.rendered},enumerable:!1,configurable:!0}),t.prototype.updateCurrentItemTitle=function(t){this.JH.updateCurrentItemTitle(t)},t.prototype.addCustomControlElement=function(t){return this.JH.addCustomControlElement(t)},t.prototype.setPlaylistPosition=function(t,i,n){this.qH.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.$U.publish(f.API_CALLED,i),!0)},t.prototype.removePlaylistItems=function(t,i){this.pG.removeItems(t,i)},t.prototype.error=function(t){t&&this.$U.publish(f.ERROR,this.nY(t.code,!1,t.msg))},Object.defineProperty(t.prototype,"docked",{get:function(){return!!this.n_.rendered&&this.JH.isDocked()},enumerable:!1,configurable:!0}),t.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.n_.rendered&&this.JH.updateDockingConfig(t,i,n,e,r,s)},t.prototype.dockVideoPlayer=function(){this.n_.rendered&&this.JH.dockVideoPlayer()},t.prototype.undockVideoPlayer=function(t){this.n_.rendered&&this.JH.undockVideoPlayer(t)},t.prototype.initNewPlayback=function(){var t=this.getCurrentMediaItem();this.qH.initNewPlayback(t)},Object.defineProperty(t.prototype,"startTime",{set:function(t){this.n_.startTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentDate",{get:function(){return this.n_.rendered?this.qH.getCurrentDate():0},enumerable:!1,configurable:!0}),t.prototype.getEventsDto=function(){return this.n_.getEventsDto()},t.prototype.getPlayingItem=function(){return this.qH.getPlayingItem()},t.prototype.getSyncOffset=function(){return this.qH.getSyncOffset()},t.prototype.startSync=function(){this.qH.startSync()},t.prototype.setPlaybackRate=function(t){var i,n;null===(i=this.qH)||void 0===i||i.setPlaybackRate(t),null===(n=this.JH)||void 0===n||n.onSetPlaybackRate(t)},t.prototype.stopSync=function(){this.qH.stopSync()},Object.defineProperty(t.prototype,"duration",{get:function(){return this.qH.getDuration()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawDuration",{get:function(){return this.qH.getRawDuration()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pG",{get:function(){return this.n_.playlist},enumerable:!1,configurable:!0}),t.prototype.kV=function(){var t=this;this.$U.addEventListener(f.ERROR,this.tO,this),this.$U.addEventListener(f.INFO,this.tO,this),this.$U.addEventListener(f.WARNING,this.AF,this),this.$U.addEventListener(f.RELATED_ITEM_CLICK,this.cY,this),this.$U.addEventListener(f.TOGGLE_PLAY_PAUSE,this.fY,this),this.$U.addEventListener(f.CONTROLS_SEEK_START,this.lY,this),this.$U.addEventListener(f.CONTROLS_SEEK_END,this.vY,this),this.$U.addEventListener(f.CONTROLS_SEEKING,this.dY,this),this.$U.addEventListener(f.PLAYBACK_REQUEST,this.pY,this),this.$U.addEventListener(f.PLAYER_DIMENSION_CHANGE,this.mY,this),this.$U.addEventListener(o.ExternalEvt.BITRATE_CHANGE,this.bF,this),this.$U.addEventListener(o.ExternalEvt.PLAYBACK_TIMEOUT,this.bY,this),this.$U.addEventListener(f.KEYDOWN,this.yY,this),this.$U.addEventListener(f.ER_READY,this.gY,this),this.$U.addEventListener(f.CONTENT_LOAD_FINISHED,this.wY,this),this.$U.addEventListener(f.LIVE_RELOAD_MEDIA,this._Y,this),this.$U.addEventListener(f.STREAM_SYNCH_STRATEGY_APPLIED,this.EY,this),this.$U.addEventListener(f.STREAM_SYNCH_COMPLETE,this.MF,this),this.n_.waitingForUserTap&&this.$U.once(f.TOUCH_TO_PLAY_RESTRICTION_REMOVED,(function(){t.n_.waitingForUserTap=!1}),this)},t.prototype.$H=function(){var t=this;this.UH.push(new V.default),this.UH.push(new U.default),this.UH.push(new F.default),this.UH.push(new k.default),this.UH.push(new D.default),this.UH.push(new C.default),this.UH.push(new r.VrmAdPlugin),this.UH.push(new B.default),this.n_.isLocal()&&(this.UH.push(new L.default),this.UH.push(new P.default),this.UH.push(new x.default)),this.UH.forEach((function(i){t.registerPlugin(i)})),this.iH.defaultPlugins=this.UH},t.prototype.iY=function(){this.UH.forEach((function(t){t.destroy()})),this.UH=[]},t.prototype.uY=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];for(var r=function(n){setTimeout((function(){try{n.onPlayerEvent.apply(n,e([t],i))}catch(t){}}),0)},s=0,o=this.zH;s<o.length;s++){var u=o[s];r(u)}},t.prototype.YH=function(){this.WH||(this.WH=new R.default(this.n_),this.OY())},t.prototype.AY=function(){this.SY||(this.$U.publish(f.PROFILE_END,[f.METRICS.INIT_TO_START,f.METRICS.CLICK_TO_START]),this.$U.publish(o.ExternalEvt.VIDEO_STARTED),this.SY=!0),this.TY()},t.prototype.fY=function(){this.n_.castState&&this.n_.castState.connected||this.n_.getState()===w.default.VIDEO&&(this.n_.isPaused()?(this.qH.startPlayback({type:a.REQUEST_TYPES.CLICK,action:a.REQUEST_TYPES.PLAY}),this.$U.publish(f.CTRL_PLAYPAUSE,"play")):(this.qH.pause({type:a.REQUEST_TYPES.CLICK,action:a.REQUEST_TYPES.PAUSE}),this.$U.publish(f.CTRL_PLAYPAUSE,"pause")))},t.prototype.yY=function(t){var i=t.keyCode,n="key-"+i;32!==i&&38!==i&&40!==i||(t.preventDefault(),this.$U.publish(o.ExternalEvt.UI_INTERACT,{srcElement:n}))},t.prototype.pY=function(){this.jY(),this.IY()},t.prototype.jY=function(){var t=this,i=this.getCurrentMediaItem();!this.MY&&i&&i.state!==d.ItemState.ERROR&&(this.MY=window.setTimeout((function(){t.$U.publish(o.ExternalEvt.PLAYBACK_TIMEOUT,t.NY(c.WARNING_CODES.E_PLAYBACK_TIMEOUT,!0,"No playback after 10 seconds of requesting to play on player"))}),1e4))},t.prototype.IY=function(){var t=this.getCurrentMediaItem();t&&t.rendererType===g.RendererType.HTML5_HLS&&this.$U.publish(f.CONVIVA_READY_FOR_SESSION_CREATION,t)},t.prototype.TY=function(){this.MY&&clearTimeout(this.MY)},t.prototype.mY=function(t){var i,n;this.n_.uiState.width=t.width,this.n_.uiState.height=t.height,this.n_.uiState.videoWidth=t.videoWidth,this.n_.uiState.videoHeight=t.videoHeight,null===(n=null===(i=this.JH)||void 0===i?void 0:i.controls)||void 0===n||n.onPlayerResize(t)},t.prototype.RY=function(){s.userAgent.mobile&&O.default.autoplaySupported&&this.aY.mute&&!this.n_.muteMode&&!this.n_.config.mute&&(this.mute=!1),this.$U.publish(f.CTRL_PLAYREQUEST,"ctp");var t={type:a.REQUEST_TYPES.CLICK,action:a.REQUEST_TYPES.CLICK};this.qH.startPlayback(t),this.JH.getContentNode().focus(),O.default.hasLoadRestriction&&this.n_.autoplay&&E.default&&(this.n_.waitingForUserTap=!1)},t.prototype.cY=function(t,i,n){var e=this.pG,r={srcElement:"next-vid-"+i},s=-1===i?f.CTRL_REPLAY:f.CTRL_ENDSCREEN_VID;-1===i&&(r.srcElement="es-rpl"),i>-2&&this.$U.publish(o.ExternalEvt.UI_INTERACT,r),this.$U.publish(s,{vid:t,vindex:i});var u={type:a.REQUEST_TYPES.CONTINUOUS,action:n?a.REQUEST_TYPES.AUTOPLAY:a.REQUEST_TYPES.CLICK},h=e.getItemPosition(t);this.setPlaylistPosition(h,!0,u)},t.prototype.tO=function(t){var i=this;if(this.WH.onError(t),!this.WH||!t.isRecoverable){t.category&&t.category===c.E_INFO?this.$U.publish(f.INTERNAL_INFO,t):this.$U.publish(f.INTERNAL_ERROR,t);try{throw new Error("Stack Trace")}catch(t){}this.n_.errors.push(t),this.kY((function(){var t=i.n_.firstCriticalError;t&&(i.WH.stopTimers(),i.qH.handleCriticalError(t),i.LY(t),i.disableCC(),i.JH&&i.JH.syncViewState())}))}},t.prototype.AF=function(t,i){(null==i?void 0:i.shouldRenderErrorScreen)&&this.tO(t)},t.prototype.LY=function(t){var i=c.PLAYER_CODES,n=function(){s.userAgent.desktop&&(t.category=c.E_PLAYER,t.subcategory=i.E_PLAYER_NOT_ENABLED)};switch(t.category){case c.E_SAPI_ABSTRACT:case c.E_SAPI_STREAM:case c.E_SAPI_PLAYLIST:case c.E_SAPI_RELATED:case c.E_SAPI_POPULAR:var e=c.INFO_CODES;switch(t.subcategory){case e.E_SAPI_UNSUPPORTED_LIVE_ON_HTML:s.userAgent.android?(t.category=c.E_INFO,t.subcategory=e.E_PLAYER_ANDROID_CHROME_REQUIRED):n();break;case c.SAPI_CODES.E_DRM_RESTRICTED:s.userAgent.desktop&&n()}break;case c.E_PLAYER:if(t.subcategory===i.E_NATIVE_ENCRYPT_MEDIA)n()}},t.prototype.lY=function(){this.n_.isSeeking()||(this.n_.setSeeking(!0),this.JH.syncViewState())},t.prototype.vY=function(){this.n_.isSeeking()&&(this.n_.isPaused()||this.qH.playCurrent(),this.n_.setSeeking(!1),this.JH.syncViewState())},t.prototype.dY=function(t){this.n_.castState&&this.n_.castState.connected||this.qH.seekCurrent(t)},t.prototype.bF=function(t){this.n_.bitrate=t},t.prototype.bY=function(t,i){this.$U.publish(f.WARNING,t,i)},t.prototype.nF=function(t){this.n_.isLoading()||(this.n_.setLoading(!0),this.JH.syncViewState());var i=this.getCurrentMediaItem();if(i){this.$U.publish(f.PROFILE_END,f.METRICS.PLAYBACK_STALLED);var n=this.VH.getItem(f.METRICS.PLAYBACK_STALLED);n&&(this.$U.publish(f.PLAYBACK_STALLED,n.timeDiff?n.timeDiff/1e3:""),this.VH.removeItem(n)),this.XH.recover(i),this.$U.publish(f.RECOVERY_START,t)}},t.prototype.DY=function(t){if(this.WH.recovering){var i=this.n_.getState();this.qH.getCurrentTime()>0&&(this.n_.startTime=this.qH.getCurrentTime()),this.WH.onRecoveryMetadataReady(),this.qH.setSeedStreamIndex(0),this.qH.handleSourceAvailable(t),this.WH.setItemRecoveryStatus(t,d.ItemRecoveryStatus.RECOVERED),i!==w.default.VIDEO||this.aY.paused||this.qH.playCurrent(this.n_.startTime)}else this.WH.setItemRecoveryStatus(t,d.ItemRecoveryStatus.NOT_RECOVERING)},t.prototype.gY=function(t){},t.prototype.KH=function(){this.WH&&(this.WH.destroy(),this.WH=null)},t.prototype.kY=function(t){var i=this,n=this.n_&&this.pG&&this.getCurrentMediaItem();switch(n&&n.is360Video()&&(this.n_.skipOnError=l.SkipOnError.TIMEBASED),this.n_.skipOnError){case l.SkipOnError.ALWAYS:this.CY(t);break;case l.SkipOnError.TIMEBASED:t(),window.setTimeout((function(){i.CY()}),1e4);break;case l.SkipOnError.NEVER:default:t()}},t.prototype.CY=function(t){var i=this.pG.getNextPosition(!0,this.n_.loop),n=this.pG.position,e=this.n_.autoplay||this.n_.continuousPlay&&this.aY.hasStartedPlayback;-1!==i&&i!==n?(this.setPlaylistPosition(i,e),this.JH&&this.JH.syncViewState()):-1===i&&this.PY(y.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR)},t.prototype.PY=function(t){var i=this;this.XH.loadMoreItems(t,(function(t){var n=i.pG.getNextPosition(!0,i.n_.loop),e=i.xY();i.continuousPlay&&(i.n_.autoplay=!0);var r=i.n_.autoplay||i.continuousPlay&&i.aY.hasStartedPlayback||e;t||-1===n?(i.n_.setState(w.default.END),i.aY.criticalError=i.n_.firstCriticalError,i.JH&&i.JH.syncViewState()):i.setPlaylistPosition(n,r)}),this.hY)},t.prototype.wY=function(t){var i=this;t&&this.XH.loadMoreItems(y.MoreItemsReason.CONTENT_LOAD_FINISHED,(function(){var t,n=i.pG,e=n.getCurrentPosition(),r=n.getNextPosition(true,i.n_.loop);-1!==r&&r!==e&&(t=n.getMediaItemAt(r))&&(t.mayUpdateVideoSession(),i.GH.setPreloadItem(t),i.GH.startPreload())}),this.hY)},t.prototype._Y=function(){this.WH.recover(R.RECOVERY_STATES.RESUME)},t.prototype.EY=function(t){this.JH.updateStreamSyncUI(!0,(null==t?void 0:t.strategy)||"")},t.prototype.MF=function(){this.JH.updateStreamSyncUI(!1)},t.prototype.NY=function(t,i,n,e){return S.default.createErr(c.ErrorGroup.Streaming,this.aY,i?c.E_WARNING:c.E_PLAYER,t,n,e)},t.prototype.nY=function(t,i,n,e){return S.default.createErr(c.ErrorGroup.Configuration,this.aY,i?c.E_WARNING:c.E_PLAYER,t,n,e)},t.prototype.FH=function(){var t=this,i=this.BH;i.on(p.MediaStoreEvent.MEDIA_ITEM_ADDED,(function(i){t.$U.publish(f.MEDIA_ITEM_ADDED,i)}),this),i.on(p.MediaStoreEvent.MEDIA_ITEM_REMOVED,(function(i){t.$U.publish(f.MEDIA_ITEM_REMOVED,i)}),this)},t.prototype.UY=function(t){return t?{id:t.id,duration:t.duration}:null},t.prototype.QH=function(){var t=this,i=this.qH;i.on(M.PlaybackEvent.PLAY_CAST,(function(){}),this),i.on(M.PlaybackEvent.PAUSE_CAST,(function(){}),this),i.on(M.PlaybackEvent.SEEK_CAST,(function(){}),this),i.on(M.PlaybackEvent.PLAYBACK_REQUEST,(function(){t.$U.publish(f.PLAYBACK_REQUEST)}),this),i.on(M.PlaybackEvent.PLAYBACK_ERROR_BEFORE_METADATA_READY,(function(){t.$U.publish(f.INFO,t.nY(c.PLAYER_CODES.E_NATIVE_PREMATURE_PLAY,!0,"Cannot play before metadata is available"))}),this),i.on(M.PlaybackEvent.PLAYLIST_NO_MORE_ITEM_TO_PLAY,(function(){t.KH()}),this),i.on(M.PlaybackEvent.PLAYLIST_COMPLETE,(function(){t.PY(y.MoreItemsReason.PLAYLIST_COMPLETE),t.$U.publish(o.ExternalEvt.PLAYLIST_COMPLETE)}),this),i.on(M.PlaybackEvent.PLAYBACK_LOADING,(function(i){t.JH.syncViewState(),t.n_.fullscreen&&t.JH.setFullscreen(!0)}),this),i.on(M.PlaybackEvent.PLAYBACK_PAUSING,(function(){t.JH.syncViewState()}),this),i.on(M.PlaybackEvent.AD_BREAK_STARTED,(function(i){var n,e;null===(n=t.JH)||void 0===n||n.onAdBreakStarted(i),null===(e=t.JH)||void 0===e||e.syncViewState(),t.rY.onAdBreakStarted(),t.$U.publish(f.AD_BREAK_STARTED,i)}),this),i.on(M.PlaybackEvent.AD_BREAK_ENDED,(function(i){t.JH.onAdBreakEnded(i),t.JH.syncViewState(),t.rY.onAdBreakEnded(),t.tY.onAdBreakEnded(),t.$U.publish(f.AD_BREAK_ENDED,i),i.type===j.AdBreakType.PREROLL&&t.$U.publish(f.PROFILE_START,[f.METRICS.PLAYBACK_START,f.METRICS.AD_BREAK_END_TO_CLIENT_END]);var n=null==i?void 0:i.mediaItem;null==n||n.updateCompletedAdBreak(i)}),this),i.on(M.PlaybackEvent.AD_BREAK_ITEM_CURRENT,(function(i){t.JH.onAdBreakItemCurrent(i),t.$U.publish(f.AD_BREAK_ITEM_CURRENT,i)}),this),i.on(M.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_STARTED,(function(i){t.AY(),t.JH.syncViewState(),t.JH.onAdBreakItemStarted(i),t.tY.onAdPlaybackStarted(i),t.uY(y.PluginPlayerEvent.AD_PLAYBACK_STARTED,i);var n=i.adBreak;t.GH.setPreloadItem(n.mediaItem),t.$U.publish(f.AD_BREAK_ITEM_PLAYBACK_STARTED,i)}),this),i.on(M.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_SKIPPED,(function(i){t.$U.publish(f.AD_BREAK_ITEM_SKIPPED,i)}),this),i.on(M.PlaybackEvent.AD_BREAK_ITEM_LOADED,(function(i){t.$U.publish(f.CONTENT_LOAD_FINISHED,i)}),this),i.on(M.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_RESUMED,(function(i){t.$U.publish(f.PLAYBACK_RESUMED,i?i.id:null)}),this),i.on(M.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_ENDED,(function(i){t.JH.onAdBreakItemEnded(i),t.$U.publish(f.AD_BREAK_ITEM_ENDED,i)}),this),i.on(M.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_STOPPED,(function(t){}),this),i.on(M.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_PROGRESS,(function(i){t.JH.onAdPlaybackProgress(i);var n=t.aY;t.uY(y.PluginPlayerEvent.AD_PLAYBACK_PROGRESS,{currentTime:n.currentTime,duration:n.duration});var e=i.playingItem,r=e.adBreak.adBreakItems;e===r[r.length-1]&&n.duration&&n.currentTime&&n.duration-n.currentTime<t.GH.LIVE_PRELOAD_TIME_SPAN&&t.GH.startPreload(),t.tY.onAdPlaybackProgress(i)}),this),i.on(M.PlaybackEvent.AD_BREAK_ITEM_ERROR,(function(i){t.$U.publish(f.AD_BREAK_ITEM_ERROR,i)}),this),i.on(f.AD_SUBTITLE_TRACK_ADDED,(function(i){t.tY.onAdSubtitleTrackAdded(i)}),this),i.on(f.AD_SUBTITLE_NOT_FOUND,(function(){t.JH.updateClosedCaptionUI(!1)}),this),i.on(M.PlaybackEvent.MEDIA_ITEM_CURRENT,(function(i){t.JH&&t.JH.onMediaItemCurrent(i),t.tY&&t.tY.onMediaItemLoaded(i),t.rY&&t.rY.onMediaItemCurrent(i),t.$U.publish(f.MEDIA_ITEM_CURRENT,i)}),this),i.on(M.PlaybackEvent.MEDIA_ITEM_PLAYBACK_STARTED,(function(i){t.qH.setPlaybackRate(t.n_.playbackRate),t.AY(),t.$U.publish(f.PROFILE_END,[f.METRICS.PLAYBACK_START,f.METRICS.RENDERER_READY_TO_PLAYBACK_START]),t.JH.onMediaItemPlaybackStarted(i),t.tY.onMediaItemPlaybackStarted(),t.uY(y.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_STARTED,t.UY(i)),t.$U.publish(f.PLAYBACK_STARTED),t.XH.loadMoreItems(y.MoreItemsReason.PLAYBACK_STARTED)}),this),i.on(M.PlaybackEvent.MEDIA_ITEM_PLAYBACK_RESUMED,(function(i){t.$U.publish(f.PLAYBACK_RESUMED,i?i.id:null)}),this),i.on(M.PlaybackEvent.MEDIA_ITEM_PLAYBACK_PROGRESS,(function(i){t.JH.syncViewState(),t.JH.onMediaItemPlaybackProgress(i),i&&i.currentTime&&t.uY(y.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_PROGRESS,i.currentTime,t.UY(i.playingItem))}),this),i.on(M.PlaybackEvent.PLAYBACK_RESUME,(function(i){t.$U.publish(f.PLAYBACK_RESUMED,i?i.id:null),t.JH.syncViewState()}),this),i.on(M.PlaybackEvent.PLAYBACK_ERROR,(function(i){t.$U.publish(f.PLAYBACK_ERROR,i)}),this),i.on(M.PlaybackEvent.PLAYBACK_INFO,(function(i){t.$U.publish(f.INFO,i)}),this),i.on(M.PlaybackEvent.MEDIA_ITEM_ERROR,(function(i,n){t.$U.publish(f.MEDIA_ITEM_ERROR,i),t.$U.publish(f.ERROR,n)}),this),i.on(M.PlaybackEvent.WAITING,(function(i){if(i){if(t.WH&&t.WH.toggleRecoverer(i),i.value&&!i.ignoreBuffering)t.$U.publish(f.PROFILE_START,f.METRICS.PLAYBACK_STALLED);else if(!i.ignoreBuffering){t.$U.publish(f.PROFILE_END,f.METRICS.PLAYBACK_STALLED);var n=t.VH.getItem(f.METRICS.PLAYBACK_STALLED);n&&t.$U.publish(f.PLAYBACK_STALLED,n.timeDiff?n.timeDiff/1e3:"")}var e=!0===i.value?o.ExternalEvt.BUFFERING_START:o.ExternalEvt.BUFFERING_END;t.$U.publish(e)}}),this),i.on(M.PlaybackEvent.END_FULLSCREEN,(function(){t.JH.setFullscreen(!1),t.JH.handleFullscreenChange(!1)}),this),i.on(M.PlaybackEvent.ENTER_FULLSCREEN,(function(){t.JH.setFullscreen(!0),t.JH.handleFullscreenChange(!0)}),this),i.on(M.PlaybackEvent.PLAYBACK_ERROR_NO_VALID_STREAM,(function(){t.$U.publish(f.ERROR,S.default.createErr(c.ErrorGroup.Service,t.aY,c.E_SAPI_STREAM,c.SAPI_CODES.E_NO_PLAYABLE_STREAMS))}),this),i.on(M.PlaybackEvent.PLAYBACK_ERROR_NO_RENDERER,(function(i){t.$U.publish(f.ERROR,i)}),this),i.on(M.PlaybackEvent.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED,(function(i){t.$U.publish(f.INFO,i)}),this),i.on(M.PlaybackEvent.PLAYBACK_SYNC_VIEW,(function(){t.JH&&t.JH.syncViewState()}),this),i.on(M.PlaybackEvent.MUTE_CHANGED,(function(i){t.n_.mute=i,t.JH.updateVolumeUI(t.n_.volume,t.n_.mute)}),this),i.on(M.PlaybackEvent.VOLUME_CHANGED,(function(i){t.n_.volume=i,t.JH.updateVolumeUI(t.n_.volume,t.n_.mute),t.$U.publish(f.VideoEvent.VOLUMECHANGE)}),this),i.on(M.PlaybackEvent.PLAYBACK_START_BLOCKED,(function(){t.aY.paused=!0,t.aY.loading=!1,t.JH.syncViewState(),t.$U.publish(f.VideoEvent.BLOCKED),t.$U.publish(f.VideoEvent.PAUSE),t.WH.onPlaybackStartBlocked()}),this),i.on(M.PlaybackEvent.PLAYBACK_START_NOT_BLOCKED,(function(){t.WH.onPlaybackStartNotBlocked()}),this),i.on(M.PlaybackEvent.RENDERER_SWITCH,(function(i,n){s.userAgent.mobile&&t.JH.getFullscreen()&&i!==n&&n&&n.exitFullScreen&&n.exitFullScreen(),t.JH.onRendererSwitch(i,n)}),this),i.on(M.PlaybackEvent.RENDERER_TIMEOUT,(function(){t.JH.syncViewState()}),this),i.on(M.PlaybackEvent.RENDERER_CREATED,(function(i){t.JH.addRendererNode(i.create())}),this),i.on(M.PlaybackEvent.MEDIA_ITEM_PLAYBACK_STOPPED,(function(i){t.WH&&t.WH.stopTimers(),t.JH.syncViewState(),t.n_.continuousPlay||t.JH.setFullscreen(!1),t.$U.publish(f.PLAYBACK_STOPPED,i)}),this),i.on(M.PlaybackEvent.PLAYLIST_POSITION_HAS_CHANGED,(function(i){i&&(t.JH.resetState(),t.$U.publish(o.ExternalEvt.PLAYLIST_POSITION_CHANGE,t.pG.position))}),this),i.on(M.PlaybackEvent.PLAYBACK_ERROR_INCONSISTENT_METADATA,(function(){t.$U.publish(f.WARNING,t.NY(c.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE,!0),{shouldRenderErrorScreen:!0})}),this),i.on(M.PlaybackEvent.MEDIA_ITEM_IS_LOADED,(function(i){t.YH(),t.JH.onMediaItemLoaded(i),t.tY&&t.tY.onMediaItemLoaded(i);var n=i.customConfig,e=t.TR.nielsenConfig;(n&&n.nielsenRequired||e&&e.enableNielsen)&&t.$U.publish(o.ExternalEvt.NIELSEN_REQUIRED),t.$U.publish(f.MEDIA_ITEM_METADATA,i)}),this),i.on(M.PlaybackEvent.SEEKING,(function(){var i=f.VideoEvent.SEEKING;t.JH.onVideoEvent(i),t.$U.publish(i,t.n_.rebufferReason)}),this),i.on(M.PlaybackEvent.SEEKED,(function(){t.n_.rebufferReason=null,t.JH.onVideoEvent(f.VideoEvent.SEEKED),t.$U.publish(o.ExternalEvt.PLAYBACK_SEEK_COMPLETE)}),this),i.on(M.PlaybackEvent.MEDIA_ITEM_PLAYBACK_ENDED,(function(i,n){t.JH.destroyAdsOverlay(),t.tY.onMediaItemPlaybackEnded(),t.$U.publish(f.PLAYBACK_COMPLETE,i),t.$U.publish(f.MEDIA_ITEM_COMPLETE,i),t.uY(y.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_ENDED,t.UY(i))}),this),i.on(M.PlaybackEvent.STALLED,(function(){t.$U.publish(f.VideoEvent.STALLED)}),this),i.on(M.PlaybackEvent.LOADSTART,(function(){t.$U.publish(f.VideoEvent.LOADSTART)}),this),i.on(M.PlaybackEvent.LOADEDDATA,(function(){t.$U.publish(f.VideoEvent.LOADEDDATA)}),this),i.on(M.PlaybackEvent.LOADEDMETADATA,(function(){t.$U.publish(f.VideoEvent.LOADEDMETADATA)}),this),i.on(M.PlaybackEvent.PLAY,(function(){t.$U.publish(f.VideoEvent.PLAY)}),this),i.on(M.PlaybackEvent.PLAYING,(function(i){var n=f.VideoEvent.PLAYING;t.WH.onPlaying(),t.JH.onVideoEvent(n,i),t.$U.publish(n)}),this),i.on(M.PlaybackEvent.PAUSE,(function(){var i=f.VideoEvent.PAUSE;t.JH.onVideoEvent(i),t.$U.publish(i)}),this),i.on(M.PlaybackEvent.SRC_SWITCHING,(function(){t.$U.publish(f.VideoEvent.SRC_SWITCHING)}),this),i.on(M.PlaybackEvent.SRC_SWITCHED,(function(){t.$U.publish(f.VideoEvent.SRC_SWITCHED)}),this),i.on(M.PlaybackEvent.TIMEUPDATE,(function(i){t.$U.publish(f.VideoEvent.TIMEUPDATE,i&&i.currentTime),t.JH.onPlaybackTimeUpdate()}),this),i.on(M.PlaybackEvent.CLICK,(function(){var i;t.$U.publish(o.ExternalEvt.UI_INTERACT,{srcElement:"video-click"}),s.userAgent.desktop&&(null===(i=t.JH)||void 0===i?void 0:i.controls)&&t.fY()}),this),i.on(M.PlaybackEvent.PLAYBACK_PROGRESS,(function(i){var n=i.currentItem,e=i.currentTime,r=i.duration,s=i.buffered,o=t.JH.getPlayerDimensions();S.default.areDimensionsEqual(o,t.n_.uiState)||t.$U.publish(f.PLAYER_DIMENSION_CHANGE,o),t.tY.onPlaybackProgress(n.id,e,r),t.$U.publish(f.PLAYBACK_PROGRESS,n.id,e,r,s)}),this),i.on(M.PlaybackEvent.PLAYBACK_NEED_MEDIA_ITEM_METADATA,(function(i){t.XH.loadItem(i)}),this),i.on(M.PlaybackEvent.PLAYBACK_NEED_MEDIA_ITEM_SOURCE,(function(i){t.XH.loadSource(i),t.$U.publish(f.MEDIA_ITEM_NEED_SOURCE,i)}),this),i.on(M.PlaybackEvent.AD_BREAK_NEED_RESOLVE,(function(t,i){}),this),i.on(M.PlaybackEvent.AD_METRICS,(function(i){t.$U.publish(f.AD_METRICS,i)}),this),i.on(M.PlaybackEvent.CREATE_OVERLAY_CONTAINER,(function(i){i(t.JH.createAdsOverlay())}),this),i.on(M.PlaybackEvent.SUBTITLE_TRACK_RECEIVED,(function(i){t.tY.onSubtitleTrackReceived(i)}),this),this.VY(i)},t.prototype.eY=function(){var t=this,i=this.JH;i.on(T.ViewEvent.SKIP_AD_REQUESTED,(function(){var i=t.getPlayingItem();i&&S.default.getPlaybackMode(i)===g.PlaybackMode.AD&&t.qH.skipAd()}),this),i.on(T.ViewEvent.SYNC_PLAYBACK_STATE,(function(){t.qH.syncPlaybackState()}),this),i.on(T.ViewEvent.SYNC_SHOW_AIRPLAY_TARGET_MENU,(function(){t.qH.showAirplayTargetMenu()}),this),i.on(T.ViewEvent.SEEK,(function(i){t.qH.seekCurrent(i)}),this),i.on(T.ViewEvent.SET_VOLUME,(function(i){t.setVolume(i)}),this),i.on(T.ViewEvent.SET_MUTE,(function(i){t.mute=i}),this),i.on(T.ViewEvent.TOGGLE_CC,(function(i,n){t.$U.publish(f.CCEvent.UI_TOGGLE,i,n),t.tY.toggleFromUI(i,n)}),this),i.on(T.ViewEvent.SET_AUDIO_LANGUAGE,(function(i,n){t.$U.publish(f.CONTROLS_AUDIO_CHANGE,i,n);var e=t.getCurrentMediaItem();e&&e.setCurrLanguage(i),t.qH.setAudioLanguage(i)}),this),i.on(T.ViewEvent.UI_INTERACT,(function(i){t.$U.publish(o.ExternalEvt.UI_INTERACT,i)}),this),i.on(T.ViewEvent.SCROLLED_TO_END,(function(){t.XH.loadMoreItems(y.MoreItemsReason.SCROLLED_TO_END)}),this),i.on(T.ViewEvent.PLAYLIST_BOTTOM_HEIGHT_CHANGE,(function(i){t.$U.publish(f.PLAYLIST_BOTTOM_HEIGHT_CHANGE,i)}),this),i.on(T.ViewEvent.TOGGLE_PLAY_PAUSE,(function(){t.fY()}),this),i.on(T.ViewEvent.START_SCREEN_CLICK,(function(){t.RY()}),this),i.on(T.ViewEvent.AD_CLICKED,(function(){t.$U.publish(f.AD_BREAK_ITEM_CLICKED)}),this),i.on(T.ViewEvent.CC_LANGUAGE_CHANGE,(function(i){t.tY.onLanguageChange(i)}),this),i.on(T.ViewEvent.CC_STYLE_CHANGE,(function(i){t.tY.updateCCStyle(),i&&t.$U.publish(f.CCEvent.UPDATE_STYLE,i)}),this),i.on(T.ViewEvent.OPSS_VISIBILITY_CHANGED,(function(i,n){t.$U.publish(f.OPSS_VISIBILITY_CHANGED,i,n)}),this),i.on(T.ViewEvent.FORWARD_SEEK,(function(){var i=t.qH.getCurrentTime(),n=Math.min(i+t.n_.seekControls.offset,t.duration-1);t.qH.seekCurrent(n)}),this),i.on(T.ViewEvent.BACKWARD_SEEK,(function(){var i=t.qH.getCurrentTime()-t.n_.seekControls.offset;t.qH.seekCurrent(i)}),this),i.on(T.ViewEvent.CUSTOM_ELEMENT,(function(i,n){var e={action:i,label:n};t.$U.publish(o.ExternalEvt.CTRL_CUSTOM_ELEMENT,JSON.stringify(e))}),this),i.on(T.ViewEvent.KEY_CHANGE_VOLUME,(function(i){t.$U.publish(o.ExternalEvt.KEY_CHANGE_VOLUME,i)}),this),i.on(T.ViewEvent.CC_POSITION_FLOAT,(function(i){t.tY.ccPositionFloat(i)}),this),i.on(T.ViewEvent.PLAYER_VIEWPORT_CHANGE,(function(i){t.$U.publish(o.ExternalEvt.PLAYER_VIEWPORT_CHANGE,i),t.tY.adjustCCSizeToScreen(i)}),this),i.on(T.ViewEvent.FULLSCREEN_CHANGE,(function(i){t.$U.publish(f.FULLSCREEN_CHANGE,i),t.tY.adjustCCSizeToScreen(i)}),this),i.on(T.ViewEvent.SET_PLAYBACK_RATE,(function(i){t.setPlaybackRate(i)}),this)},t.prototype.OY=function(){var t=this,i=this.WH;i.on(f.ERROR,(function(i){t.$U.publish(f.ERROR,i)}),this),i.on(f.WARNING,(function(i,n){t.$U.publish(f.WARNING,i,n)}),this),i.on(R.RecovererEvent.RECOVERY_START,(function(i){t.nF(i)}),this),i.on(R.RecovererEvent.RECOVERY_DISABLED,(function(){t.$U.publish(f.RECOVERY_DISABLED)}),this)},t.prototype.sY=function(){var t=this,i=this.tY;i.on(u.CCControllerEvent.CC_AVAILABILITY_UPDATE,(function(i){t.JH.updateClosedCaptionUI(i)}),this),i.on(u.CCControllerEvent.CC_LIST_FETCHED,(function(i){var n,e;null===(e=null===(n=t.JH)||void 0===n?void 0:n.controls)||void 0===e||e.updateAvailableLanguages(i)}),this),i.on(u.CCControllerEvent.CC_LIST_FETCHED_MOBILE,(function(i){t.qH.enableMobileNativeCC(i)}),this)},t.prototype.ZH=function(){var t=this,i=this.XH;i.on(f.ERROR,(function(i){t.$U.publish(f.ERROR,i)}),this),i.on(f.WARNING,(function(i,n){t.$U.publish(f.WARNING,i,n)}),this),i.on(I.MetadataEvent.METADATA_AVAILABLE,(function(i){t.getCurrentMediaItem().equals(i)&&t.JH&&t.JH.syncViewState(),t.$U.publish(f.METADATA_AVAILABLE,i.id),t.oY||(t.oY=!0,t.$U.publish(o.ExternalEvt.PLAYER_READY)),t.rY&&t.rY.onMediaItemLoaded()}),this),i.on(I.MetadataEvent.SOURCE_AVAILABLE,(function(i){t.XH.loadMoreItems(y.MoreItemsReason.SOURCE_LOAD_COMPLETE),t.BY(i)}),this),i.on(I.MetadataEvent.SOURCE_LOAD_FAILED,(function(i,n){var e=t.getCurrentMediaItem();e&&e.key===v.default.createKey(i.id,i.mimetype)&&(t.FY(e)&&(t.WH.setItemRecoveryStatus(e,d.ItemRecoveryStatus.NOT_RECOVERING),t.WH.onMetadataLoadFailed()),t.$U.publish(f.ERROR,n))}),this),i.on(I.MetadataEvent.API_INFO_AVAILABLE,(function(i){t.$U.publish(f.API_CALLED,i)}),this),this.VY(this.XH)},t.prototype.VY=function(t){var i=this;[f.PROFILE_START,f.PROFILE_END].forEach((function(n){t.addEventListener(n,(function(t){i.$U.publish(n,t)}),i)}))},t.prototype.HH=function(){var t=this,i=this.GH;i.on(N.PreloadEvent.START_PRELOAD,(function(i){t.XH.loadSource(i),i.isPreloaded=!0}),this),i.on(N.PreloadEvent.PLAYER_IDLE,(function(){}),this)},t.prototype.BY=function(t){this.zY(t),this.FY(t)?this.DY(t):this.qH.handleSourceAvailable(t)},t.prototype.FY=function(t){var i=this.getCurrentMediaItem();return t.isRecovering()&&i&&i.equals(t)},t.prototype.zY=function(t){!(!(t&&t.customConfig&&t.customConfig.meta)||t.customConfig.meta.castable)&&s.userAgent.android&&"dash"===t.streams[0].getType()&&this.$U.publish(f.INFO,S.default.createErr(c.ErrorGroup.Configuration,this.aY,c.E_INFO,c.INFO_CODES.E_DRM_UNSUPPORTED_OS,null,"not castable stream on android"))},t.prototype.xY=function(){var t,i=this.n_.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,"aY",{get:function(){return this.n_.playbackState},enumerable:!1,configurable:!0}),t}();i.default=z},101: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(1409),u=n(4986),h=n(2007),a=n(7262),c=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.GY={},i.HY="",i.YY=null,i.YY=new a.default(i),i}return r(i,t),i.prototype.onDateRangeStarted=function(t,i){var n=this.qY(t);n&&this.WY(n,i)},i.prototype.onDateRangeEnded=function(t,i){var n=this.qY(t);n&&this.QY(n,i)},i.prototype.onClick=function(){if(this.$Y()&&this.XY()){this.ZY();var t=this.JY();u.isString(t)&&window.open(t,"_blank")}},i.prototype.onActiveRendererTimeupdate=function(t){var i=this.GY[this.HY];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.HY="";else{var r=t-e,s=Math.round(r/n*100)/100;this.KY("firstquartiles",1,s,i),this.KY("midpoints",2,s,i),this.KY("thirdquartiles",3,s,i)}}},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.GY={}},i.prototype.qY=function(t){var i=c.default.parseRawDataFromAllowedDaterange(t,c.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.WY=function(t,i){var n=t&&t.adID;if(n){this.HY=n;var e=new h.default(t,i);this.GY[n]=e;var r=e.events.impressions||[];r.length>0&&(e.status.impressions=!0,this.publish(s.AD_VIDEO_START,r))}},i.prototype.QY=function(t,i){var n=t&&t.adID;if(n){var e=this.GY[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.ZY=function(){var t=this.GY[this.HY],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.$Y=function(){var t,i;return!1===(null===(i=null===(t=this.GY[this.HY])||void 0===t?void 0:t.status)||void 0===i?void 0:i.completes)},i.prototype.XY=function(){var t,i,n=this.GY[this.HY],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.JY=function(){var t,i=this.GY[this.HY],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.KY=function(t,i,n,e){var r,s=null===(r=this.GY[this.HY])||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},4046: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(1409),h=n(6618),a=n(6389),c=n(1962),f=n(6120),l=n(4986),v=n(6342);!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.yS=i,e.n_=n,e.BH=n.mediaStore,e}return r(i,t),i.prototype.destroy=function(){this.yS.removeRelatedCommands(h.CmdName.CMD_METADATA_LOAD),this.yS.removeRelatedCommands(h.CmdName.CMD_SOURCE_METADATA_LOAD),t.prototype.destroy.call(this)},i.prototype.loadItem=function(t){var i=t.rawItemData;this.yS.executeCommand(h.CmdName.CMD_METADATA_LOAD,s({mimetype:t.mimetype,mediaItemDataArr:[i]},this.dq()),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.pG.getItemPosition(t.id)+1;this.publish(c.PROFILE_START,c.METRICS.CMS_SOURCE_REQUEST),this.yS.executeCommand(h.CmdName.CMD_SOURCE_METADATA_LOAD,s({mimetype:t.mimetype,mediaItemDataArr:[i],playlistPosition:n},this.dq()),this)}},i.prototype.recover=function(t){var i=t.rawItemData;this.yS.executeCommand(h.CmdName.CMD_SOURCE_METADATA_LOAD,s({mimetype:t.mimetype,mediaItemDataArr:[i],recovering:!0},this.dq()),this)},i.prototype.loadMetadata=function(t){var i,n=this;if((i=t&&t.length?t:this.pG.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._q(e)&&this.publish(c.PROFILE_START,c.METRICS.CMS_REQUEST),Object.keys(r).forEach((function(t){n.yS.executeCommand(h.CmdName.CMD_METADATA_LOAD,s({mimetype:t,mediaItemDataArr:r[t]},n.dq()),n)}))}},i.prototype.loadMoreItems=function(t,i,n){var e=this.pG.getItems();e&&e.length&&(this.publish(c.PROFILE_START,c.METRICS.CMS_MORE_ITEMS_REQUEST),this.yS.executeCommand(h.CmdName.CMD_MORE_ITEMS_LOAD,{cb:i,mimetype:n||e[0].mimetype,reason:t,start:this.pG.playlistFetchIndex},this))},i.prototype.onSourceMetadataLoadComplete=function(t,i){var n=this;this.publish(c.PROFILE_END,c.METRICS.CMS_SOURCE_REQUEST),this.yS.removeCommand(t),this.pG.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.pG.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.yS.removeCommand(t);var r=v.default.createErr(n.group,this.n_.playbackState,n.category,n.subcategory,n.message);i.forEach((function(t){e.publish(o.SOURCE_LOAD_FAILED,t,r)}))},i.prototype.onMetadataLoadComplete=function(t,i){var n=this;this.yS.removeCommand(t),this.tW(i),this._q(i)&&this.publish(c.PROFILE_END,c.METRICS.CMS_REQUEST),this.pG.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.pG.updateMediaItemsState(i,n)},i.prototype.onMetadataLoadInfo=function(t,i){i&&this.publish(o.API_INFO_AVAILABLE,i)},i.prototype.onMetadataLoadError=function(t,i){this.yS.removeCommand(t);var n=v.default.createErr(a.ErrorGroup.Configuration,this.n_.playbackState,a.E_WARNING,i.subcategory,i.message);this.publish(c.WARNING,n)},i.prototype.onMoreItemsLoadComplete=function(t,i){this.yS.removeCommand(t),this.publish(c.PROFILE_END,c.METRICS.CMS_MORE_ITEMS_REQUEST);var n=this.pG;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.yS.removeCommand(t);var n=v.default.createErr(a.ErrorGroup.Configuration,this.n_.playbackState,i.category,i.subcategory,null,i.debugMessage);this.publish(c.INFO,n)},i.prototype._q=function(t){var i=this.pG.getCurrentItem();return i&&t&&t.length&&t.some((function(t){return t.id===i.id}))},i.prototype.dq=function(){var t=this.n_,i={autoplay:t.autoplay,privacyConsent:t.consent,rendererCapabilities:t.capabilities,rendererTypes:t.rendererTypes,thumbnailDimensions:t.thumbnailDimensions},n=this.pG.getCurrentItem();return n&&(n.videoSession&&(i.sessionId=n.videoSession),l.isNumber(n.tryCount)&&(i.tryCount=n.tryCount),l.isNumber(n.failoverCount)&&(i.failoverCount=n.failoverCount)),i},i.prototype.tW=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,"pG",{get:function(){return this.n_.playlist},enumerable:!1,configurable:!0}),i}(u.default);i.MetadataController=d},2657: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.PauseHandlerEvents=void 0;var s,o=n(1409),u=n(9451),h=n(3872),a=n(954),c=n(2334),f=5e3,l=2e4;!function(t){t.SUSPEND_STREAMING="suspendStreaming",t.RESUME_STREAMING="resumeStreaming",t.CTRL_PLAYPAUSE="ctrlPlayPause"}(s=i.PauseHandlerEvents||(i.PauseHandlerEvents={}));var v=function(t){function i(i,n){var e=t.call(this,"pauseHandler")||this;if(e.xE=i,e.n_=n,e.iW=!1,!e.xE||!e.n_)throw new Error("[PauseHandler] Invalid arguments");var r=e.nW=Object.assign({},e.n_.backgroundPause);return e.nW.timeToPause=r.timeToPause?1e3*r.timeToPause:f,e.eW=r.onMute||r.onUnmute,e.nW.suspendStreamingTime=r.suspendStreamingTime?1e3*r.suspendStreamingTime:l,e.nW.backgroundSuspendStreaming=!0,e.rW=new h.Timer(r.timeToPause,e.sW,e,1),e.oW=new h.Timer(r.suspendStreamingTime,e.uW,e,1),e.hW=!1,e}return r(i,t),i.prototype.destroy=function(){this.rW.destroy(),this.oW.destroy()},i.prototype.onPlaybackStart=function(){this.iW=!0},i.prototype.onPlaybackPlaying=function(t){if(this.iW&&!t&&this.aW())return this.iW=!1,void this.cW();this.iW=!1,this.n_.getPauseReason()===c.PauseReason.BACKGROUND&&u.userAgent.chrome&&this.xE.seek(this.xE.getCurrentTime())},i.prototype.onVisibilityChange=function(t){t?(this.rW.reset(),this.oW.reset(),this.fW()):this.aW()&&(this.n_.isAd()?this.cW():this.lW())},i.prototype.suspendStreaming=function(){this.DG()&&(this.hW=!0,this.n_.rebufferReason=a.REBUFFERING_REASON.LONG_PAUSE,this.publish(s.SUSPEND_STREAMING))},i.prototype.resumeStreaming=function(){this.oW.reset(),this.DG()&&this.hW&&(this.publish(s.RESUME_STREAMING),this.hW=!1)},i.prototype.scheduleSuspend=function(){this.nW.backgroundSuspendStreaming&&this.oW.start()},i.prototype.uW=function(){this.oW.reset(),this.suspendStreaming()},i.prototype.aW=function(){if(!this.eW)return!1;var t=this.n_.mute;return!(t&&!this.nW.onMute||!t&&!this.nW.onUnmute)},i.prototype.vW=function(){return!(!this.eW||this.n_.isMediaPlaying())&&this.n_.getPauseReason()===c.PauseReason.BACKGROUND},i.prototype.lW=function(){this.rW.start()},i.prototype.sW=function(){this.rW.reset(),this.cW()},i.prototype.cW=function(){this.n_.isPaused()||(this.xE.pause({type:a.REQUEST_TYPES.API,action:a.REQUEST_TYPES.BACKGROUND}),this.publish(s.CTRL_PLAYPAUSE,"pause"))},i.prototype.fW=function(){this.vW()&&(this.resumeStreaming(),this.xE.startPlayback({type:a.REQUEST_TYPES.API,action:a.REQUEST_TYPES.BACKGROUND}),this.publish(s.CTRL_PLAYPAUSE,"play"))},i.prototype.DG=function(){var t=this.n_.playlist.getCurrentItem();return!!t&&t.isLive()},i}(o.default);i.default=v},8903: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.PlaybackController=i.PlaybackEvent=void 0;var o,u=n(1409),h=n(9451),a=n(3194),c=n(9489),f=n(3072),l=n(954),v=n(1962),d=n(8103),p=n(9134),m=n(440),b=n(3353),y=n(101),g=n(5244),w=n(727),_=n(2694),E=n(1204),O=n(2878),A=n(4986),S=n(6342),T=n(2657),j=n(4411),I=n(6120);!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_BREAK_NEED_RESOLVE="pbcAdBreakNeedResolve",t.AD_BREAK_ITEM_CURRENT="pbcAdBreakItemCurrent",t.AD_BREAK_ITEM_PLAYBACK_STARTED="pbcAdBreakItemStarted",t.AD_BREAK_ITEM_PLAYBACK_SKIPPED="pbcAdBreakItemSkipped",t.AD_BREAK_ITEM_PLAYBACK_RESUMED="pbcAdBreakItemResumed",t.AD_BREAK_ITEM_PLAYBACK_PROGRESS="pbcAdBreakItemProgress",t.AD_BREAK_ITEM_LOADED="pbcAdBreakItemLoaded",t.AD_BREAK_ITEM_PLAYBACK_ENDED="pbcAdBreakItemEnded",t.AD_BREAK_ITEM_PLAYBACK_STOPPED="pbcAdBreakItemStopped",t.AD_BREAK_ITEM_ERROR="pbcAdBreakItemError",t.CREATE_OVERLAY_CONTAINER="pbcCreateOverlayContainer",t.AD_METRICS="adMetrics",t.SUBTITLE_TRACK_RECEIVED="pbcSubtitleTrackReceived",t.IN_STREAM_AD_CLICK="pbcInStreamAdClick"}(o=i.PlaybackEvent||(i.PlaybackEvent={}));var M=function(t){function i(i,n,e,r){var s=t.call(this,"PlaybackController")||this;return s.dW=!1,s.pW=!0,s.mW=!1,s.bW=!1,s.yW=!1,s.gW=!1,s.wW=!1,s._W=null,s.EW=null,s.OW=!1,s.n_=i,s.$U=n,s.AW={},s.SW=new c.RendererController(i,n,e,r),s.TW(),s.aY=new b.default,s.n_.setPlaybackState(s.aY),s.jW=new a.AdPlaybackController(i,e),s.IW(),s.MW=new T.default(s,s.n_),s.NW(),s.RW=new j.default(s.n_),s.kW(),s.ME=new w.default(s),s.WH=r,s}return r(i,t),Object.defineProperty(i.prototype,"pG",{get:function(){return this.n_.playlist},enumerable:!1,configurable:!0}),i.prototype.startPlayback=function(t){var i=this;if(void 0===t&&(t=null),!this.aY.criticalError){if(!this.RW.isPlayerVisible())return this.$U.publish(v.PROFILE_START,v.METRICS.DEFERRING_PLAYBACK),this.ME.enQueue(this.startPlayback,t),void(this.aY.shouldPlay=!1);if(this.aY.shouldPlay=!0,this.MW.resumeStreaming(),this.n_.getState()===g.default.VIDEO)return this.getPlayingItem()instanceof p.default&&!this.aY.hasCurrentItemPlayed&&this.jW.resumeClientAdStartTimer(),void this.LW(0);var n=this.DW();if(n&&this.n_.rendered&&!this.aY.attemptingPlayback())if(this.n_.autoplay||this.dW||(this.dW=!0,this.publish(v.PROFILE_START,v.METRICS.CLICK_TO_START)),this.n_.castState&&this.n_.castState.connected)this.publish(o.PLAY_CAST);else{if(t&&(this.n_.requestType=t.type,t.action&&S.default.isValidRequestAction(t.action)&&(this.n_.requestAction=t.action)),!this.PW())return this.n_.showStartScreen=!0,this.n_.autoplay=!1,void this.enterInitState();this.n_.waitingForUserTap?this.gW||(this.gW=!0,this.xW=this.once(v.TOUCH_TO_PLAY_RESTRICTION_REMOVED,(function(){i.gW=!1,i.startPlayback(t)}),this)):(this.UW=null,this.n_.isPaused()?this.playCurrent():E.default.autoplaySupported||n.fetchFinished()?this.VW(n):this.publish(o.PLAYBACK_ERROR_BEFORE_METADATA_READY))}}},i.prototype.playCurrent=function(t){this.n_.setState(g.default.VIDEO),this.WH.enable()||this.SW.play(t)},i.prototype.handleSourceAvailable=function(t){var i=this.DW();i&&t&&(i.equals(t)?this.aY.playingItem instanceof p.default?this.SW.handleAdvancePreparePreloadNextRenderer(t):(this.jW.prepareAdsForItem(t),this.BW(t)):this.SW.handleAdvancePreparePreloadNextRenderer(t))},i.prototype.handleAdBreakResolved=function(t,i){this.jW.handleAdBreakResolved(t,i)},i.prototype.getRendererController=function(){return this.SW},i.prototype.skipAd=function(){this.SW.skip()},i.prototype.handleCriticalError=function(t){this.TY(),this.aY.criticalError=t,this.FW(),this.SW.endVideo(),this.SW.stopMedia()},i.prototype.pause=function(t){if(this.aY.shouldPlay=!1,this.aY.hasRendererPlayCalled&&this.n_.rendered){var i=this.n_.castState;if(i&&i.connected&&!i.paused)this.publish(o.PAUSE_CAST);else{if(this.xW)return this.removeEventListener(v.TOUCH_TO_PLAY_RESTRICTION_REMOVED,this.xW),void delete this.xW;if(this.n_.setRequestInfo(t),this.aY.attemptingPlayback())this.getPlayingItem()instanceof p.default&&!this.aY.hasCurrentItemPlayed&&this.jW.pauseClientAdStartTimer(),this.pauseCurrent(),this.TY(),this.aY.hasCurrentItemPlayed&&this.MW.scheduleSuspend()}}},i.prototype.pauseCurrent=function(){this.WH.disable(),this.SW.pause()},i.prototype.seek=function(t){this.n_.rendered&&(this.n_.castState&&this.n_.castState.connected?this.publish(o.SEEK_CAST,t):this.n_.getState()===g.default.VIDEO&&this.SW.seek(t))},i.prototype.seekCurrent=function(t){if(this.n_.rendered&&this.n_.getState()===g.default.VIDEO){var i=this.zW(t);this.seek(i)}},i.prototype.syncPlaybackState=function(){this.SW.syncPlaybackState()},i.prototype.getRawCurrentTime=function(){return this.SW.getCurrentTime()},i.prototype.getCurrentTime=function(){return this.GW||0},i.prototype.getCurrentDate=function(){return this.SW.getCurrentDate()},i.prototype.rewindAfterEnd=function(t){this.SW.rewindAfterEnd(t)},i.prototype.getRawDuration=function(){return this.SW.getDuration()},i.prototype.getDuration=function(){var t=this.getPlayingItem();if(!t){var i=this.DW();return i?i.duration:NaN}if(t instanceof m.default)return t.duration;if(t instanceof p.default){if(t.instream)return t.duration;var n=this.getRawDuration();return isNaN(n)?t.duration:n}return NaN},i.prototype.showAirplayTargetMenu=function(){this.SW.showAirplayTargetMenu()},i.prototype.setQuality=function(t){this.SW.setQuality(t)},i.prototype.setVolume=function(t,i){if(void 0===i&&(i=!1),i)this.SW.setVolume(t);else{var n=this.n_.volume;this.n_.volume=t,this.SW.setVolume(t),this.$U.publish(v.CTRL_VOLUME,n),this.$U.publish(f.ExternalEvt.PLAYER_VOLUME_CHANGE,t)}},i.prototype.setMute=function(t){this.n_.mute=t,this.SW.setMute(t),this.$U.publish(f.ExternalEvt.PLAYER_MUTE_CHANGE,t)},i.prototype.setAudioLanguage=function(t){this.SW.setAudioLanguage(t)},i.prototype.stopMedia=function(){this.SW.stopMedia()},i.prototype.enableMobileNativeCC=function(t){this.SW.enableMobileNativeCC(t)},i.prototype.resumeContinuousPlay=function(t){this.n_.continuousPlay=!0;var i={skipWatchedVideos:this.n_.skipWatchedVideos};if(this.n_.getState()===g.default.END){var n=this.pG.getNextPosition(this.n_.continuousPlay,this.n_.loop,i);-1!==n&&this.setPlaylistPosition(n,!0,t)}},i.prototype.setPlaylistPosition=function(t,i,n){if(this.n_.rendered){var e=this.pG,r=this.DW(),s=e.getMediaItemAt(t);if(!(r&&r.equals(s)&&this.aY.isInitializing())){this.stopCurrentPlayback(n),this.n_.errors=[],this.aY.criticalError=null,e.position=t;var u=this.DW();u?(this.initNewPlayback(u),i&&this.startPlayback(n),this.publish(o.PLAYLIST_POSITION_HAS_CHANGED,u)):this.publish(o.PLAYLIST_NO_MORE_ITEM_TO_PLAY),this.publish(o.PLAYBACK_SYNC_VIEW)}}},i.prototype.initNewPlayback=function(t){this.enterInitState(),this.HW(t)},i.prototype.enterInitState=function(){this.n_.setState(g.default.INIT),this.n_.resetPlaybackStates(),this.n_.rebufferReason=null,this.publish(o.PLAYBACK_SYNC_VIEW)},i.prototype.getPlayingItem=function(){var t=this.YW();return t instanceof m.default&&this.jW.getPlayingInstreamAd()||t},i.prototype.setSeedStreamIndex=function(t){this.SW.setSeedStreamIndex(t)},i.prototype.stopCurrentPlayback=function(t){var i,n=this.getPlayingItem(),e=null===(i=n)||void 0===i?void 0:i.adBreak,r=null==e?void 0:e.mediaItem;n instanceof p.default&&"media/container"!==(null==r?void 0:r.mimetype)?(this.publish(o.AD_BREAK_ITEM_PLAYBACK_STOPPED,n),this.jW.handleAdBreakItemEnded(n)):n instanceof m.default&&(!t||t.type===l.REQUEST_TYPES.CONTINUOUS&&t.action!==l.REQUEST_TYPES.CLICK||this.publish(o.MEDIA_ITEM_PLAYBACK_STOPPED,n),n.position=0,this.aY.looped=!1,this.n_.startTime=NaN,this.FW(n)),this.aY.playingItem=null;var s=this.DW(),u=s&&s.getStreamType()||null;this.qW(u),this.WW(),this.SW.endVideo(),this.SW.stopMedia()},i.prototype.getActiveRenderer=function(){return this.SW.getActiveRenderer()},i.prototype.suspendStreaming=function(){this.SW&&this.SW.suspendStreaming()},i.prototype.resumeStreaming=function(){this.SW&&this.SW.resumeStreaming()},i.prototype.handleVisibilityChange=function(t){this.$U.publish(v.PROFILE_END,v.METRICS.DEFERRING_PLAYBACK),this.ME.deQueue(this.startPlayback,!0),this.MW.onVisibilityChange(t)},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.jW.destroy(),this.MW.destroy(),this.SW&&this.SW.destroy(),this.RW&&this.RW.destroy(),this.fF&&this.fF.destroy()},i.prototype.onActiveRendererClick=function(){var t;null===(t=this.fF)||void 0===t||t.onClick(),this.publish(o.CLICK)},i.prototype.onActiveRendererPlaying=function(){this.publish(v.PROFILE_END,v.METRICS.AD_PLUGIN),this.aY.hasCurrentItemPlayed=!0;var t=this.getPlayingItem();this.aY.playingItem=t,this.EW=null,this.aY.videoLoading()&&(h.userAgent.android||(this.n_.setLoading(!1),this.publish(o.PLAYBACK_SYNC_VIEW))),this.n_.isPaused()&&(this.n_.setPaused(!1),this.QW&&clearTimeout(this.QW),t instanceof m.default?this.publish(o.MEDIA_ITEM_PLAYBACK_RESUMED,t):t instanceof p.default&&(this.aY.shouldPlay=!0,this.publish(o.AD_BREAK_ITEM_PLAYBACK_RESUMED,t))),t&&!this.AW[t.id]&&this.$W(t),this.MW.onPlaybackPlaying(this.RW.isPlayerVisible()),this.publish(o.PLAYING,t)},i.prototype.onActiveRendererTimeupdate=function(t){var i=t.currentTime,n=t.duration,e=t.buffered;h.userAgent.android&&!this.bW&&(this.n_.setLoading(!1),this.publish(o.PLAYBACK_SYNC_VIEW),this.bW=!0),this.jW.updatePlaybackProgress({currentTime:i,playingItem:this.YW()});var r=this.getPlayingItem();if(this.aY.playingItem=r,this.aY.currentRawTime=i,r&&(this.XW(r,i),r instanceof m.default&&(r.position=i),A.isNumber(i)&&A.isNumber(n)&&!(i>n+1))){if(r.getDuration()||r.isLive()||r.setDuration(n),this.aY.duration=this.getDuration(),this.n_.isLoading()&&(!h.userAgent.safari||h.userAgent.safari<6)){this.UW?i-this.UW>=1.5&&(this.UW=null,this.n_.setLoading(!1),this.publish(o.PLAYBACK_SYNC_VIEW)):this.UW=i}else this.UW=null;var s={playingItem:r,currentTime:i,duration:n,buffered:e};r instanceof m.default?(this.publish(o.MEDIA_ITEM_PLAYBACK_PROGRESS,s),this.fF&&this.fF.onActiveRendererTimeupdate(this.GW)):r instanceof p.default&&this.publish(o.AD_BREAK_ITEM_PLAYBACK_PROGRESS,s),isNaN(this.getSyncOffset())&&-1!==this.getSyncState()&&this.OW&&this.$U.publish(v.INVALID_SYNC_OFFSET),this.publish(o.PLAYBACK_PROGRESS,{currentItem:r,currentTime:i,duration:n,buffered:e}),this.publish(o.TIMEUPDATE,t),r.getRecoveryStatus()===I.ItemRecoveryStatus.RECOVERED&&(this.n_.rebufferReason=null)}},i.prototype.onActiveRendererSeeking=function(t){null===this.EW&&(this.EW=this.aY.currentRawTime),this.n_.setLoading(!0),this.publish(o.SEEKING,t)},i.prototype.onActiveRendererSeeked=function(t){this.n_.setLoading(!1),this.UW=null;var i=this.EW;this.EW=null,this.jW.handleMediaItemSeeked(this.getPlayingItem(),t.currentTime,i),this._W||this.publish(o.SEEKED,t)},i.prototype.onActiveRendererEnded=function(){this.aY.playingItem=null;var t=this.getPlayingItem();this.XW(t,0),t instanceof m.default?this.ZW(t):t instanceof p.default&&this.jW.handleAdBreakItemEnded(t)},i.prototype.onActiveRendererPause=function(){this.n_.onRendererPause()&&this.publish(o.PAUSE)},i.prototype.onActiveRendererPlayComplete=function(t){this.publish(o.AD_METRICS,t)},i.prototype.onActiveRendererError=function(t){var i=this.getPlayingItem();i instanceof m.default?this.publish(o.MEDIA_ITEM_ERROR,i,t):i instanceof p.default&&this.JW(i,t)},i.prototype.onActiveRendererInfo=function(t){this.publish(o.PLAYBACK_INFO,t)},i.prototype.onActiveRendererWaiting=function(t){if(t){if(!h.userAgent.tv){var i=t.value;this.n_.setLoading(i),this.publish(o.PLAYBACK_SYNC_VIEW)}this.publish(o.WAITING,t)}},i.prototype.onActiveRendererStalled=function(){this.publish(o.STALLED)},i.prototype.onActiveRendererLoadStart=function(){this.publish(o.LOADSTART)},i.prototype.onActiveRendererPlay=function(){this.publish(o.PLAY)},i.prototype.onActiveRendererVolumeChange=function(t){var i=this.SW,n=t&&A.isBoolean(t.mute)?t.mute:i.getMuted(),e=t&&A.isNumber(t.volume)?t.volume:i.getVolume();n!==this.n_.mute&&this.publish(o.MUTE_CHANGED,n),e!==this.n_.volume&&this.publish(o.VOLUME_CHANGED,e)},i.prototype.onActiveRendererLoadedData=function(){this.publish(o.LOADEDDATA)},i.prototype.onActiveRendererLoadedMetadata=function(){this.publish(o.LOADEDMETADATA)},i.prototype.onActiveRendererSrcSwitching=function(){this.publish(o.SRC_SWITCHING)},i.prototype.onActiveRendererSrcSwitched=function(){this.publish(o.SRC_SWITCHED)},i.prototype.onActiveRendererPlayBlocked=function(){this.publish(o.PLAYBACK_START_BLOCKED)},i.prototype.onActiveRendererPlayNotBlocked=function(){this.publish(o.PLAYBACK_START_NOT_BLOCKED)},i.prototype.onActiveRendererSkipped=function(){var t=this.getPlayingItem();t instanceof p.default&&this.publish(o.AD_BREAK_ITEM_PLAYBACK_SKIPPED,t)},i.prototype.onActiveRendererEndFullscreen=function(){this.publish(o.END_FULLSCREEN)},i.prototype.onActiveRendererEnterFullscreen=function(){this.publish(o.ENTER_FULLSCREEN)},i.prototype.onActiveRendererPipModeChanged=function(t){var i;(null===(i=this.AG)||void 0===i?void 0:i.pip)&&(this.n_.uiState.isPIP="picture-in-picture"===t,this.$U.publish(v.PIP_MODE_CHANGE,t))},i.prototype.onActiveRendererDaterangeStarted=function(t){this.$U.publish(v.DATERANGE_STARTED,t),this.OW=_.default.isInWatchTogetherDateRange(t),this.fF||(this.fF=new y.default),this.fF.onDateRangeStarted(t,this.GW)},i.prototype.onActiveRendererDaterangeEnded=function(t){this.$U.publish(v.DATERANGE_ENDED,t),this.OW=!1,this.fF&&this.fF.onDateRangeEnded(t,this.GW)},i.prototype.onActiveRendererSubtitleTrackReceived=function(t){this.publish(o.SUBTITLE_TRACK_RECEIVED,t)},i.prototype.getSyncOffset=function(){return this.SW.getSyncOffset()},i.prototype.getSyncState=function(){return this.SW.getSyncState()},i.prototype.startSync=function(){this.SW.startSync()},i.prototype.stopSync=function(){this.SW.stopSync()},i.prototype.setPlaybackRate=function(t){var i;this.n_.playbackRate=t,null===(i=this.SW)||void 0===i||i.setPlaybackRate(t)},i.prototype.KW=function(t){this.n_.resetPlaybackStates(),this.n_.setState(g.default.VIDEO),this.n_.setLoading(!0),this.publish(o.PLAYBACK_LOADING,t)},i.prototype.tQ=function(){this.n_.setPaused(!0),this.publish(o.PLAYBACK_PAUSING)},i.prototype.VW=function(t){if(this.AG=t,this.iQ(),this.n_.resetPlaybackStates(),this.publish(v.PROFILE_START,v.METRICS.PLAYBACK_START),this.MW.onPlaybackStart(),t.isAdContainer()){if(this.jW.startTracking(t),t.adBreaks&&t.adBreaks.length||!t.adConfig)t.hasNativeAd()?this.jW.playClientAdBreaks(t,d.AdBreakType.NATIVE):t.hasStreams()&&this.sO(t);else{var i=t.hasStreams()?d.AdBreakType.PREROLL:d.AdBreakType.NATIVE;this.jW.prepareAdsForItem(t),this.jW.playClientAdBreaks(t,i)}this.publish(o.PLAYBACK_SYNC_VIEW)}else{if(t.hasSource())return this.sO(t),void this.publish(o.PLAYBACK_SYNC_VIEW);this.n_.setState(g.default.WAITING),this.n_.setLoading(!0),this.yW=!0,this.publish(o.PLAYBACK_NEED_MEDIA_ITEM_SOURCE,t),this.publish(o.PLAYBACK_SYNC_VIEW)}},i.prototype.YW=function(){var t=this.SW.getActiveRenderer();return t?t.getPlayableItem():null},i.prototype.BW=function(t){var i,n=this;if(t.hasLiveStreams()&&t.hasLiveStateForVod())this.publish(o.PLAYBACK_ERROR_INCONSISTENT_METADATA);else{if(this.aY.loadedItem=t,t.customConfig&&t.customConfig.meta&&t.customConfig.meta.videoMarkers){var e=t.customConfig.meta.videoMarkers.markers;e&&e.length>0&&this.$U.publish(f.ExternalEvt.MARKERS_RECEIVED,((i={})[t.id]=e,i))}if(t.hasMetadata())this.aY.attemptingPlayback()||this.wW||this.n_.firstCriticalError||this.enterInitState();else if(!(this.n_&&this.pG&&this.DW()).equals(t))return;var r=t.position||this.n_.startTime;this.SW.prepareNextRenderer(t,(function(i){if(i)return n.TY(),void(O.default.isHtml5MseAvailable()?n.publish(o.PLAYBACK_ERROR_NO_RENDERER,i):n.publish(o.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED,i));if(n.mW=!1,n.SW.setItemNextRenderer(t,r))if(n.yW){if(n.yW=!1,!n.PW())return void n.publish(o.PLAYBACK_START_NOT_ALLOWED);n.sO(t)}else n.SW.preloadNextRenderer();else n.publish(o.PLAYBACK_ERROR_NO_VALID_STREAM)})),this.publish(o.MEDIA_ITEM_IS_LOADED,t),this.wW=!1}},i.prototype.sO=function(t){t===this.DW()&&(this.nQ()||(this.n_.setState(g.default.VIDEO),this.n_.setLoading(!0),this.publish(o.PLAYBACK_REQUEST,t.id),this.aY.hasStartedPlayback=!0,this.pW=!1,this.jW.prepareAdsForItem(t),this.jW.startTracking(t),this.publish(v.PROFILE_START,v.METRICS.AD_PLUGIN),this.jW.playClientAdBreaks(t,d.AdBreakType.PREROLL),this.publish(o.PLAYBACK_SYNC_VIEW)))},i.prototype.eQ=function(t){var i=this;if(this.iQ(),t===this.DW()){this.qW(t.getStreamType()),this.publish(v.PROFILE_END,[v.METRICS.AD_PLUGIN,v.METRICS.AD_BREAK_END_TO_CLIENT_END]),this.publish(v.PROFILE_START,v.METRICS.AD_CLIENT_END_TO_RENDERER_READY),t.restartIfNeeded();var n=this.n_.startTime||0;t.isLongForm()&&isNaN(this.n_.startTime)&&t.position>0&&(this.n_.isResumingFromSavedPosition=!0,n=t.position),this.SW.prepareNextRenderer(t,(function(e){e?i.TY():i.SW.setItemNextRenderer(t,n)?i.SW.switchAndPlayNextRenderer(n):i.publish(o.PLAYBACK_ERROR_NO_VALID_STREAM)}))}},i.prototype.rQ=function(t){var i=this;this.publish(o.AD_BREAK_ITEM_CURRENT,t),t.streams&&0!==t.streams.length?this.SW.prepareNextRenderer(t,(function(n){i.SW.setItemNextRenderer(t)?i.SW.switchAndPlayNextRenderer():i.JW(t)})):this.JW(t,new Error("No valid streams found"))},i.prototype.LW=function(t){this.playCurrent(t),this.SW.setPIPMode(this.AG.pip),this.aY.hasCurrentItemPlayed||this.aY.state===g.default.END||this.KW(t),this.aY.hasRendererPlayCalled=!0},i.prototype.PW=function(){if(!this.pW)return!0;var t=this.DW();return!(this.n_.requestType===l.REQUEST_TYPES.AUTOPLAY&&this.n_.autoplay&&t&&t.blockAutoplay)&&(!h.userAgent.mobile||this.sQ())},i.prototype.sQ=function(t){return void 0===t&&(t={}),!(this.n_.requestType!==l.REQUEST_TYPES.CLICK&&!this.n_.isAutoplayAllowed())},i.prototype.iQ=function(){var t=this.aY;t.hasCurrentItemPlayed=!1,t.hasRendererPlayCalled=!1},i.prototype.nQ=function(){for(var t=0,i=this.n_.errors;t<i.length;t++){var n=i[t];if(n.category||n.subcategory)return n}return null},i.prototype.TY=function(){this.MY&&clearTimeout(this.MY)},i.prototype.NW=function(){var t=this;this.MW&&(this.MW.on(T.PauseHandlerEvents.RESUME_STREAMING,(function(){t.resumeStreaming()}),this),this.MW.on(T.PauseHandlerEvents.SUSPEND_STREAMING,(function(){t.suspendStreaming()}),this),this.MW.on(T.PauseHandlerEvents.CTRL_PLAYPAUSE,(function(i){t.$U.publish(v.CTRL_PLAYPAUSE,i)}),this))},i.prototype.TW=function(){var t=this;this.SW.on(c.RendererControllerEvent.RENDERER_SWITCH,(function(i,n){t.publish(o.RENDERER_SWITCH,i,n)}),this),this.SW.on(c.RendererControllerEvent.RENDERER_TIMEOUT,(function(){t.publish(o.RENDERER_TIMEOUT)}),this),this.SW.on(c.RendererControllerEvent.RENDERER_CREATED,(function(i){t.publish(o.RENDERER_CREATED,i)}),this),this.SW.on(c.RendererControllerEvent.RENDERER_READY_TO_PLAY,(function(i){t.$U.publish(f.ExternalEvt.RENDERER_READY,t.SW.activeRendererType,t.aY.shouldPlay),t.publish(v.PROFILE_END,v.METRICS.AD_CLIENT_END_TO_RENDERER_READY),t.publish(v.PROFILE_START,v.METRICS.RENDERER_READY_TO_PLAYBACK_START),t.aY.shouldPlay?t.LW(i):(t.tQ(),t.jW.pauseClientAdStartTimer())}),this),this.oQ(),this.uQ()},i.prototype.WW=function(){this.AW={}},i.prototype.HW=function(t){t&&(t.mayUpdateVideoSession(),t.useVideoSession(),this.$U.publish(v.VIDEO_REQUEST,!1),this.publish(o.MEDIA_ITEM_CURRENT,t))},i.prototype.FW=function(t){t&&(t.position=0,this.aY.previousItem=t,this.rewindAfterEnd(t.isLive())),this.n_.setState(g.default.END),this.n_.endVideo(),this.n_.resetPlaybackStates()},i.prototype.$W=function(t){this.bW=!1,this.AW[t.id]=!0;var i=!1;if(this.aY.duration=this.getDuration(),t instanceof m.default){this._W=null,this.n_.startTime=NaN;var n=this.getRawDuration();t.setRawDuration(n);var e=t.adBreaks;if(e&&e.length&&e[0].type===d.AdBreakType.PREROLL){var r=e[0];r&&r.adBreakItems&&r.adBreakItems[0].instream&&(i=!0)}i||this.publish(o.MEDIA_ITEM_PLAYBACK_STARTED,t,this.getCurrentTime())}else t instanceof p.default&&this.jW.handleAdBreakItemPlaybackStarted(t)},i.prototype.JW=function(t,i){this.publish(o.AD_BREAK_ITEM_ERROR,t,i),this.jW.handleAdBreakItemError(t)},i.prototype.XW=function(t,i){var n;t instanceof m.default&&(n=this.hQ(t,i)),t instanceof p.default&&(n=this.aQ(t,i)),this.GW=n,this.aY.currentTime=n},i.prototype.hQ=function(t,i){for(var n=i,e=t.adBreaks,r=e&&e.length||0,s=0;s<r;s++){var o=e[s];if(!(i>=o.startOffset))break;o.adBreakItems.forEach((function(t){t.instream&&(n-=t.duration)}))}return n},i.prototype.aQ=function(t,i){var n=i,e=t.adBreak;if(t.instream){n=i-e.startOffset;for(var r=e.adBreakItems,s=0,o=r.length;s<o;s++){var u=r[s];if(t.adBreakItemId===u.adBreakItemId)break;u.instream&&(n-=u.duration)}}return n},i.prototype.zW=function(t){var i=this.YW(),n=t;if(i instanceof m.default)for(var e=i.adBreaks,r=e&&e.length||0,s=0;s<r;s++){var o=e[s];if(!(o.startOffset<=n))break;o.adBreakItems.forEach((function(t){t.instream&&(n+=t.duration)}))}return n},i.prototype.ZW=function(t){this.WW(),this._W=null;var i=this.pG,n=this.DW();if(n&&n===t){this.jW.onMediaItemPlaybackEnded(t);var e=this.n_.continuousPlay,r=this.n_.loop,s={playlistLoop:this.n_.playlistLoop,skipWatchedVideos:this.n_.skipWatchedVideos,looped:!1,ended:!1},u=i.getNextPosition(e,r,s);if(this.publish(o.MEDIA_ITEM_PLAYBACK_ENDED,t,s),this.n_.stopAtLastFrame)return this.pauseCurrent(),void this.onActiveRendererPause();if(this.FW(n),-1!==u){var h=void 0;(e||r)&&(h={type:l.REQUEST_TYPES.CONTINUOUS,action:l.REQUEST_TYPES.AUTOPLAY}),this.setPlaylistPosition(u,e||r,h),this.aY.looped=s.looped}else this.publish(o.PLAYLIST_COMPLETE);this.publish(o.PLAYBACK_SYNC_VIEW)}},i.prototype.oQ=function(){for(var t=0,i=Object.values(c.ActiveRendererEvent);t<i.length;t++){var n=i[t],e="on"+n;this.SW.on(n,this[e],this)}},i.prototype.uQ=function(){var t=this.SW;t.on(c.NextRendererEvent.ERROR,this.cQ,this),t.on(c.NextRendererEvent.INFO,this.fQ,this)},i.prototype.cQ=function(t){this.SW.stopNextRenderer(t)},i.prototype.fQ=function(t){this.SW.stopNextRenderer(t)},i.prototype.IW=function(){var t=this,i=this.jW;i.on(a.AdPlaybackControllerEvent.AD_BREAK_NEED_RESOLVE,(function(i,n){t.publish(o.AD_BREAK_NEED_RESOLVE,i,n)}),this),i.on(a.AdPlaybackControllerEvent.AD_BREAK_ITEM_PLAY,(function(i){t.rQ(i)}),this),i.on(a.AdPlaybackControllerEvent.AD_CLIENT_COMPLETED,(function(i,n){switch(i){case d.AdBreakType.PREROLL:t.eQ(n);case d.AdBreakType.NATIVE:}}),this),i.on(v.AD_SUBTITLE_TRACK_ADDED,(function(i){t.publish(v.AD_SUBTITLE_TRACK_ADDED,s(s({},i),{itemId:t.getPlayingItem().adBreakItemId}))}),this),i.on(v.AD_SUBTITLE_NOT_FOUND,(function(){t.publish(v.AD_SUBTITLE_NOT_FOUND)}),this),i.on(a.AdPlaybackControllerEvent.AD_CLIENT_TIMEOUT,(function(i,n){if(i===d.AdBreakType.PREROLL)t.eQ(n)}),this),i.on(a.AdPlaybackControllerEvent.AD_BREAK_STARTED,(function(i){t.publish(o.AD_BREAK_STARTED,i)}),this),i.on(a.AdPlaybackControllerEvent.AD_BREAK_ENDED,(function(i){var n=i.type;switch(i.setActive(!1),n){case d.AdBreakType.PREROLL:i.adBreakItems[i.adBreakItems.length-1].instream&&t.publish(o.MEDIA_ITEM_PLAYBACK_STARTED,i.mediaItem);break;case d.AdBreakType.NATIVE:t.ZW(i.mediaItem)}t.publish(o.AD_BREAK_ENDED,i),t._W&&(t.seek(t._W.deferredSeekTime),t._W=null)}),this),i.on(a.AdPlaybackControllerEvent.AD_BREAK_FORCE_PLAY_MIDROLL,(function(i){var n=t.getRawCurrentTime();i.type!==d.AdBreakType.MIDROLL||!i.active||i.startOffset>n||i.adBreakItems.length&&i.adBreakItems[0].instream&&(t._W={adBreak:i,deferredSeekTime:n},t.seek(i.startOffset))}),this),i.on(a.AdPlaybackControllerEvent.AD_BREAK_ITEM_STARTED,(function(i){t.aY.playingItem=i,i.instream&&t.publish(o.AD_BREAK_ITEM_CURRENT,i),t.publish(o.AD_BREAK_ITEM_PLAYBACK_STARTED,i)}),this),i.on(a.AdPlaybackControllerEvent.AD_BREAK_ITEM_ENDED,(function(i){t.publish(o.AD_BREAK_ITEM_PLAYBACK_ENDED,i)}),this),i.on(a.AdPlaybackControllerEvent.AD_BREAK_SKIP,(function(i,n){if(n){var e=i.startOffset+i.duration;e=(1e4*e+11)/1e4,t.seek(e)}}),this),i.on(a.AdPlaybackControllerEvent.AD_METRICS,(function(i){t.publish(o.AD_METRICS,i)}),this),i.on(a.AdPlaybackControllerEvent.CREATE_OVERLAY_CONTAINER,(function(i){t.publish(o.CREATE_OVERLAY_CONTAINER,i)}),this),i.on(a.AdPlaybackControllerEvent.AD_BREAK_ITEM_PLAYING,(function(){t.publish(o.AD_BREAK_ITEM_LOADED)}),this)},i.prototype.kW=function(){var t=this;this.RW.on(j.VisibilityEvent.PAGE_VISIBILITY_CHANGED,(function(i){t.handleVisibilityChange(i)}),this)},i.prototype.qW=function(t){this.aY.currentMediaType=t},i.prototype.DW=function(){return this.pG.getCurrentItem()},i}(u.default);i.PlaybackController=M},6589: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.PlaylistController=i.PlaylistEvent=void 0;var s,o=n(1409),u=n(9451),h=n(954),a=n(1962),c=n(1962),f=n(6342),l=n(9554),v=n(514),d=h.PLAYLIST_POS.BOTTOM,p=h.PLAYLIST_POS.RIGHT,m=h.PLAYLIST_POS.HIDDEN,b={hidden:200,bottom:540,right:627};function y(t){return f.default.classList(t)}!function(t){t.UI_INTERACT="playlistUiInteract",t.SCROLLED_TO_END="playlistScrolledToEnd",t.BOTTOM_HEIGHT_CHANGE="bottomHeightChange"}(s=i.PlaylistEvent||(i.PlaylistEvent={}));var g=function(t){function i(i,n){var e=t.call(this,"PlaylistController")||this;return e.JH=i,e.iH=n,e.lQ=i.getRootElement(),e.vQ=i.getMainElement(),e.dQ=i.getContentNode(),e.n_=i.getModel(),e.$U=i.getEventBus(),e.pQ={},e.s_(),e.mQ(),e.bQ(),e}return r(i,t),i.prototype.destroy=function(){this.yQ&&(window.removeEventListener("resize",this.yQ),this.yQ=null),this.gQ&&(this.gQ.destroy(),this.gQ=null),this.wQ(),this.pQ&&(this.$U.removeEventListeners(this.pQ),this.pQ={})},i.prototype.attachUpNextMouseEvents=function(){var t=this;this._Q&&this._Q.addEventListener("mouseover",(function(){y(t.EQ).contains("vp-bottom-upnext")||(y(t.EQ).add("vp-bottom-upnext"),t.OQ.style.top=t.AQ()+"px",t.publish(s.UI_INTERACT,{srcElement:"ctrl-next-hover"}),t.publish(s.UI_INTERACT,{srcElement:"ui_pl_nxt_hvr"}))})),this._Q&&this._Q.addEventListener("mouseout",(function(){window.setTimeout((function(){parseInt(window.getComputedStyle(t.SQ).zIndex,10)<0&&(y(t.EQ).remove("vp-bottom-upnext"),t.OQ&&t.OQ.removeAttribute("style"))}),100)}))},i.prototype.detachUpNextMouseEvents=function(){var t=this;this._Q&&this._Q.addEventListener("mouseover",(function(){y(t.EQ).remove("vp-bottom-upnext"),t.OQ&&t.OQ.removeAttribute("style")}))},i.prototype.togglePlaylistUI=function(t){if(!this.JH.getFullscreen()&&this.TQ&&this.jQ!==m){var i=".vp-playlist-mode-"+this.jQ,n=this.dQ&&this.dQ.querySelector(i);switch(t?y(n).add("vp-hide-playlist"):this.dQ.clientWidth>b[this.jQ]&&y(n).remove("vp-hide-playlist"),this.jQ){case p:!0===t?this.vQ&&this.vQ.removeAttribute("style"):this.IQ();break;case d:!0===t?this.dQ&&(this.dQ.style.height=this.MQ.rootElem.height+"px"):(this.dQ&&(this.dQ.style.height=this.MQ.contentElem.height+"px"),this.lQ&&(this.lQ.style.height=this.MQ.rootElem.height+"px"))}}},i.prototype.getPlaylistRootElement=function(){return this.NQ},i.prototype.getPlaylistUIPosition=function(){return this.jQ},i.prototype.isPlaylistInStream=function(){return this.RQ},i.prototype.isPlaylistShown=function(){return this.TQ},i.prototype.onMediaItemLoaded=function(){this.TQ&&(this.kQ?this.LQ.syncView():this.DQ())},i.prototype.onMediaItemCurrent=function(t){this.TQ&&(this.CQ(),this.LQ&&this.LQ.onMediaItemCurrent())},i.prototype.onAdBreakStarted=function(){this.TQ&&this.PQ(!1)},i.prototype.onAdBreakEnded=function(){this.CQ()},i.prototype.mQ=function(){this.TQ&&(this.n_.continuousPlay=!0,this.xQ(),this.pQ[a.FULLSCREEN_CHANGE]=this.$U.addEventListener(a.FULLSCREEN_CHANGE,this.UQ,this),this.pQ[c.VideoEvent.ENDED]=this.$U.addEventListener(c.VideoEvent.ENDED,this.VQ,this)),this.BQ&&(this.gQ=new v.default(this.BQ,this.FQ.bind(this)))},i.prototype.VQ=function(){this.PQ(!1)},i.prototype.CQ=function(){this.TQ&&(this.pG.isEndOfPlaylist()?this.PQ(!1):this.PQ(!0))},i.prototype.PQ=function(t){if(this.TQ&&this.zQ!==t&&this._Q){var i=this.pG,n=i?i.getCurrentItem():null;t&&n&&!n.isLive()?y(this._Q).remove("disabled"):y(this._Q).add("disabled"),this.zQ=t}},i.prototype.FQ=function(){if(u.userAgent.mobile&&this.GQ)return this.GQ.style.display="block",void(y(this.GQ).contains("open")?(y(this.EQ).remove("vp-bottom-upnext"),y(this.GQ).remove("open"),this.OQ&&this.OQ.removeAttribute("style")):(y(this.GQ).add("open"),this.OQ&&(this.OQ.style.top=this.AQ()+"px"),y(this.EQ).add("vp-bottom-upnext")));this.LQ.upNextBtnTapHandler()},i.prototype.HQ=function(){var t=this.JH.controls;return!!t&&(this.EQ=t&&t.getBottomBar(),this.OQ=this.EQ.querySelector(".vp-bottom-container"),this.BQ=this.EQ.querySelector(".vp-upnext-btn"),this.GQ=this.EQ.querySelector(".vp-upnext-playlist"),this._Q=this.EQ.querySelector(".vp-upnext-container"),!0)},i.prototype.s_=function(){var t,i=this.n_.playlistUIConfig;if(this.kQ=!1,this.jQ=null,this.RQ=!1,this.TQ=!1,i&&!0===i.show&&(this.jQ=i.position,!0===i.inStream&&this.jQ===p&&(this.RQ=!0),!u.userAgent.mobile)){t=this.lQ&&this.lQ.clientWidth;var n=b[this.jQ];t&&t>=n&&(this.TQ=!0)}this.TQ&&(this.HQ()||(this.TQ=!1))},i.prototype.xQ=function(){var t,i,n,e=this;if(this.TQ&&this.jQ!==m){switch(this.MQ={rootElem:{height:null,width:null},contentElem:{height:null,width:null},mainElem:{height:null,width:null}},this.jQ){case d:t=this.lQ?this.lQ.clientHeight:0,i=t+83,this.lQ&&(this.lQ.style.height=i+"px"),this.dQ&&(this.dQ.style.height=t+"px"),this.YQ=t+"px",this.MQ.rootElem.height=i,this.MQ.rootElem.width=this.lQ?this.lQ.clientWidth:0,this.MQ.contentElem.height=this.dQ?this.dQ.clientHeight:0,setTimeout((function(){e.publish(s.BOTTOM_HEIGHT_CHANGE,{height:i})}));break;case p:n=(this.dQ?this.dQ.clientWidth:0)-(this.RQ?276:318),this.vQ&&(this.vQ.style.width=n+"px"),this.MQ.rootElem.width=this.lQ?this.lQ.clientWidth:0,this.MQ.mainElem.width=n}this.$U.publish(a.PLAYER_DIMENSION_CHANGE,this.JH.getPlayerDimensions())}},i.prototype.wQ=function(){var t;if(this.TQ&&this.jQ===d)t=(this.lQ?this.lQ.clientHeight:0)-83,this.lQ&&(this.lQ.style.height=t+"px"),this.MQ.rootElem.height=t,this.publish(s.BOTTOM_HEIGHT_CHANGE,{height:t})},i.prototype.AQ=function(){return(this.dQ?this.dQ.clientHeight:0)-(this.OQ?this.OQ.clientHeight:0)},i.prototype.DQ=function(){if(!u.userAgent.mobile||this.jQ===m){switch(this.LQ=new l.default(this.$U,this.JH,this.n_,this.iH),this.qQ(),this.jQ){case m:this.NQ=this.LQ.create(m),this.SQ=this.NQ,this.GQ&&this.GQ.appendChild(this.SQ),y(this._Q).remove("hide"),u.userAgent.mobile||this.attachUpNextMouseEvents();break;case d:this.SQ=this.LQ.create(m),this.NQ=this.LQ.create(d),this.GQ&&this.GQ.appendChild(this.SQ),this.dQ&&this.dQ.appendChild(this.NQ),y(this._Q).remove("hide"),y(this.GQ).add("hide");break;case p:this.SQ=this.LQ.create(m),this.NQ=this.LQ.create(p),this.GQ&&this.GQ.appendChild(this.SQ),this.dQ&&this.dQ.appendChild(this.NQ),y(this._Q).remove("hide"),y(this.GQ).add("hide")}this.LQ.setPlaylistViewSize(),this.kQ=!0}},i.prototype.UQ=function(){this.JH.isDocked()||this.jQ!==m&&(!0===this.JH.getFullscreen()?this.jQ===d?this.dQ&&(this.dQ.style.height="100%"):this.jQ===p&&this.vQ&&this.vQ.style&&(this.vQ&&(this.vQ.style.width="100%"),this.vQ&&(this.vQ.style.zIndex="1")):this.jQ===d?this.dQ&&(this.dQ.style.height=this.YQ):this.jQ===p&&(this.vQ&&(this.vQ.style.width=this.MQ.mainElem.width),this.vQ&&(this.vQ.style.zIndex="auto")))},i.prototype.IQ=function(){if(!this.JH.getFullscreen())if(this.kQ){var t=this.dQ?this.dQ.clientWidth:0,i=b[this.jQ];switch(this.jQ){case p:var n=t-(this.RQ?276:318);t>=i?(this.vQ.style.width=n+"px",this.MQ.mainElem.width=n,y(this.NQ).remove("vp-hide-playlist")):(this.vQ.style.width=t+"px",this.MQ.mainElem.width=t,y(this.NQ).add("vp-hide-playlist"));break;case d:this.LQ&&this.LQ.syncPgBtns(),t>=i?y(this.NQ).remove("vp-hide-playlist"):y(this.NQ).add("vp-hide-playlist")}var e=this.JH.getPlayerDimensions();f.default.areDimensionsEqual(e,this.n_.uiState)||this.$U.publish(a.PLAYER_DIMENSION_CHANGE,e)}else this.s_(),this.mQ(),this.TQ&&this.DQ()},i.prototype.qQ=function(){var t=this;this.LQ.on(l.PlaylistViewEvent.UI_INTERACT,(function(i){t.publish(s.UI_INTERACT,i)}),this),this.LQ.on(l.PlaylistViewEvent.SCROLLED_TO_END,(function(){t.publish(s.SCROLLED_TO_END)}),this)},i.prototype.bQ=function(){this.yQ=this.IQ.bind(this),window.addEventListener("resize",this.yQ)},Object.defineProperty(i.prototype,"pG",{get:function(){return this.n_.playlist},enumerable:!1,configurable:!0}),i}(o.default);i.PlaylistController=g},7549: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=void 0;var s,o,u=n(1409),h=n(1962);!function(t){t.PRELOADING="preloading",t.IDLE="idle"}(s||(s={})),function(t){t.START_PRELOAD="startPreload",t.PLAYER_IDLE="playerIdle"}(o=i.PreloadEvent||(i.PreloadEvent={}));var a=function(t){function i(i){var n=t.call(this,"PreloadManager")||this;return n.$U=i,n.WQ=s.IDLE,n.QQ=null,n.LIVE_PRELOAD_TIME_SPAN=5,n.$U.addEventListener(h.PRELOAD_START,n.$Q,n),n.$U.addEventListener(h.PRELOAD_COMPLETE,n.RS,n),n}return r(i,t),i.prototype.destroy=function(){this.QQ=null,this.WQ=s.IDLE},i.prototype.startPreload=function(){if(this.WQ===s.IDLE){var t=this.XQ();this.publish(o.START_PRELOAD,t)}},i.prototype.stopPreload=function(){},i.prototype.setPreloadItem=function(t){this.QQ=t},i.prototype.XQ=function(){return this.QQ},i.prototype.$Q=function(){this.WQ=s.PRELOADING},i.prototype.RS=function(){this.WQ=s.IDLE,this.publish(o.PLAYER_IDLE)},i}(u.default);i.default=a},83: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.RecovererEvent=i.RECOVERY_STATES=void 0;var s,o=n(1409),u=n(3872),h=n(6389),a=n(1962),c=n(6120),f=n(5244),l=n(4986),v=n(6342),d=n(954),p=h.WARNING_CODES,m=h.PLAYER_CODES,b=["200","400","501","430","410"],y=["7","57","304","307","903"],g=["700","701","710","711","720","721","722","730","731","732","740","750","760"],w=["103","500","502","503","550","403","404","504"],_=["11","12","13","14","27"],E=[h.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 O,A=Object.keys(s);!function(t){t.RECOVERY_START="recoveryStart",t.RECOVERY_DISABLED="recoveryDisabled"}(O=i.RecovererEvent||(i.RecovererEvent={}));var S=function(t){function i(i){var n=t.call(this,"Recoverer")||this;return n.n_=i,n.nG=!1,n.ZQ=0,n.JQ=null,n.KQ=!1,n.t$=!1,n.i$=s.INIT_OR_PLAYING,n.n$(),n}return r(i,t),i.prototype.enable=function(){return this.i$===s.INIT_OR_PLAYING||this.t$?(this.t$=!0,!1):(this.t$=!0,this.e$(this.i$),!0)},i.prototype.disable=function(){this.t$=!1,this.r$(),this.publish(O.RECOVERY_DISABLED)},i.prototype.recover=function(t){var i,n;if(this.t$){var e=this.aY;if(!e.ad&&!v.default.isAdBreakType(e.currentMediaType)&&!(this.nG&&this.i$!==t||this.KQ)){if(this.s$(this.o$),this.o$=null,!this.nG){this.nG=!0;var r="recovering;"+(this.JQ?(null===(i=this.JQ)||void 0===i?void 0:i.rep)+";"+(null===(n=this.JQ)||void 0===n?void 0:n.message):"");this.publish(a.WARNING,v.default.createErr(h.ErrorGroup.Streaming,e,h.E_WARNING,p.E_RECOVERY_STATUS,null,r),{recoveryState:this.u$(this.i$)})}t===s.RESUME&&this.publish(a.WARNING,v.default.createErr(h.ErrorGroup.Streaming,e,h.E_WARNING,p.E_RECOVER_LONG_PAUSE,null,"Recovering from long pause on live"),{recoveryState:this.u$(this.i$)}),this.i$=t||s.API,this.i$!==s.ERROR&&(this.JQ=null);var o=this.DW();o&&(o.failoverCount++,o.recoveryStatus=c.ItemRecoveryStatus.RECOVERING,this.publish(O.RECOVERY_START,this.n_.rebufferReason))}}else this.i$=t},i.prototype.destroy=function(){this.h$()},i.prototype.stopTimers=function(){this.s$(this.o$),this.o$=null,this.s$(this.a$),this.a$=null},i.prototype.toggleRecoverer=function(t){t&&t.value?this.e$(s.BUFFERING):(this.nG&&this.publish(a.WARNING,v.default.createErr(h.ErrorGroup.Streaming,this.aY,h.E_WARNING,p.E_RECOVERY_STATUS,null,"recovered"),{recoveryState:this.u$(this.i$)}),this.h$())},i.prototype.onRecoveryMetadataReady=function(){if(this.i$)this.publish(a.WARNING,v.default.createErr(h.ErrorGroup.Streaming,this.aY,h.E_WARNING,p.E_PLAYBACK_FROZEN_DETECTED,null,this.c$()),{recoveryState:this.u$(this.i$)}),this.n_.getState()===f.default.VIDEO&&this.t$?this.n$():this.h$();else{var t=this.DW();t&&t.failoverCount--}},i.prototype.onMetadataLoadFailed=function(){this.t$?(this.nG&&this.i$===s.BUFFERING&&this.f$(),this.nG=!1):this.YG()},i.prototype.onPlaybackStartBlocked=function(){this.KQ=!0,this.h$()},i.prototype.onPlaybackStartNotBlocked=function(){this.KQ=!1},i.prototype.setItemRecoveryStatus=function(t,i){t.recoveryStatus=i},Object.defineProperty(i.prototype,"recovering",{get:function(){return this.nG},enumerable:!1,configurable:!0}),i.prototype.onPlaying=function(){this.r$()},i.prototype.r$=function(){this.ZQ=0,this.s$(this.l$),this.l$=null},i.prototype.onError=function(t){var i=this,n=s.ERROR;if(t&&(t.isRecoverable=!this.v$(t),t.isRecoverable))if(this.ZQ>10)this.d$();else{w.indexOf(t.subcategory.toString())>0?n=s.SAPI:t.subcategory.toString()!==m.E_NATIVE_SRC_NOT_SUPPORTED&&t.subcategory.toString()!==m.E_NATIVE_ABORTED||(n=s.SRC);var e=h.DRM_DEBUG_CODES;switch(t.debugMessage){case e.KEY_SESSION_FAILED:n=s.DRM_KEYSESSION;break;case e.LICENSE_REQUEST_FAILED:n=s.DRM_LICENSE;break;case e.CERT_LOAD_FAILED:n=s.DRM_CERT}if(this.ZQ++,this.JQ=t,"400"===t.category.toString()&&"7"===t.subcategory.toString())return this.s$(this.a$),this.a$=new u.Timer(1e4*Math.random(),(function(){i.e$(n)}),this,1),void this.a$.start();this.e$(n)}},i.prototype.v$=function(t){var i=t.category.toString(),n=b.indexOf(i);if(n<0)return!0;var e=t.subcategory.toString();switch(b[n]){case h.E_WARNING:return y.indexOf(e)<0;case h.E_PLAYER:return y.indexOf(e)<0&&g.indexOf(e)<0;case h.E_SAPI_STREAM:return w.indexOf(e)<0;case h.E_PLAYER_JS_HLS:return _.indexOf(e)<0;case h.E_PLAYER_DRM:return E.indexOf(e)<0}return!0},i.prototype.n$=function(){this.p$=5e3*Math.random()+1e4,this.m$=2e3,this.s$(this.o$),this.o$=null},i.prototype.DW=function(){return this.n_.playlist?this.n_.playlist.getCurrentItem():null},i.prototype.e$=function(t){if(this.t$&&this.b$(),t===s.BUFFERING)return this.p$=this.n_.rebufferReason===d.REBUFFERING_REASON.LONG_PAUSE?3e4:this.p$,void this.y$(this.p$);this.recover(t)},i.prototype.h$=function(){this.i$=s.INIT_OR_PLAYING,this.JQ=null,this.YG()},i.prototype.YG=function(){this.n$(),this.stopTimers(),this.nG=!1},i.prototype.y$=function(t){var i=this;this.s$(this.o$),this.o$=new u.Timer(t,(function(){i.recover(i.i$?i.i$:s.BUFFERING)}),this,1),this.o$.start()},i.prototype.f$=function(t){(t=!!l.isNullOrUndefined(t)||t)&&(this.p$+=this.m$,this.m$*=2),this.y$(this.p$)},i.prototype.b$=function(){var t=this;this.l$||(this.l$=new u.Timer(1e3*this.n_.recoveryFailureTimeout,(function(){t.d$()}),this,1),this.l$.start())},i.prototype.d$=function(){var t=v.default.createErr(h.ErrorGroup.Streaming,this.aY,h.E_PLAYER,m.E_RECOVERY_FAILURE,null,this.c$());this.publish(a.ERROR,t),this.h$(),this.r$()},i.prototype.s$=function(t){t&&t.destroy(),t=null},i.prototype.c$=function(){var t=this.JQ,i=this.i$;return i===s.ERROR?i+"-"+t.category+"-"+t.subcategory+"-"+t.message:i.toString()},i.prototype.u$=function(t){var i=A.length/2;return A[t+i]},Object.defineProperty(i.prototype,"aY",{get:function(){return this.n_.playbackState},enumerable:!1,configurable:!0}),i}(o.default);i.default=S},9489: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.RendererController=i.NextRendererEvent=i.ActiveRendererEvent=i.RendererControllerEvent=void 0;var s,o,u,h=n(1409),a=n(9451),c=n(9134),f=n(440),l=n(1204),v=n(2878),d=n(4986),p=n(6342),m=n(6389),b=n(1279),y=n(8087),g=n(3891),w=n(8259),_=n(8696),E=n(6125),O=n(2758),A=n(1600),S=n(4685),T=n(6103);!function(t){t.RENDERER_SWITCH="rendererSwitch",t.RENDERER_CREATED="rendererCreated",t.RENDERER_TIMEOUT="errorTimeout",t.RENDERER_READY_TO_PLAY="rendererReadyToPlay",t.PLAY_CALLED="playCalled"}(s=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.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.SUBTITLE_TRACK_RECEIVED="ActiveRendererSubtitleTrackReceived"}(o=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"}(u=i.NextRendererEvent||(i.NextRendererEvent={}));var j=function(t){function i(i,n,e,r){var s=t.call(this,"RendererController")||this;return s.iH=e,s.n_=i,s.$U=n,s.WH=r,s.g$=null,s.w$=null,s._$=null,s.E$=null,s.O$={},s.A$={},s.S$={},s.T$=s.j$(),s.I$=!1,s}return r(i,t),Object.defineProperty(i.prototype,"activeRendererType",{get:function(){var t,i;return(null===(i=null===(t=this.g$)||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=this;if(i||(i=function(){}),t){var e=this.M$(t),r=e?S.RendererType.EXTERNAL:t.rendererType;if(a.userAgent.safari&&t instanceof f.default&&(!t.isLive()||t.license.isDrm)&&(r=S.RendererType.HTML5_RAW),!r){var o=void 0,u=void 0,h=void 0;return v.default.isHtml5MseAvailable()?(o=m.PLAYER_CODES.E_NO_RENDERER_FOUND,u="no renderer type is applicable for the playable item",h=p.default.createErr(m.ErrorGroup.Configuration,this.n_.playbackState,m.E_PLAYER,o,"",u)):(o=m.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED,u="flash renderer is not supported for the playable item",h=p.default.createErr(m.ErrorGroup.Restriction,this.n_.playbackState,m.E_INFO,o,"",u)),void i(h)}var c=this.N$(t);if(this._$!==c)!this.T$&&this.g$&&this.g$.type===r&&this.g$.type!==S.RendererType.EXTERNAL||t.isRecovering()&&this.g$?this.w$=this.g$:(this.w$=r===S.RendererType.EXTERNAL?this.R$(e):this.k$(r),this.L$(this.w$)),this._$=c,this.I$=!0,this.w$.waitForReady((function(t){n.I$=!1,t&&(n.publish(s.RENDERER_TIMEOUT),n.w$&&n.D$(n.w$)),i(t)}));else{if(this.I$)return;i()}}else i(new Error("no playable item to be rendered"))},i.prototype.setItemNextRenderer=function(t,i){var n=this;if(void 0===i&&(i=0),!t)return!1;var e=this.N$(t);if(this._$!==e)return this.prepareNextRenderer(t,(function(){n.setItemNextRenderer(t,i)})),!0;var r=this.N$(t,i);if(this.E$===r)return!0;if(this.w$){this.E$=r;var s=this.w$.getSyncState(),o=this.w$.setPlayableItem(t,i,this.WH.recovering);return-1!==s&&this.WH.recovering&&this.w$.startSync(),o}return!1},i.prototype.preloadNextRenderer=function(t){if(this.w$&&this.w$.preload){var i=this.w$.getPlayableItem();if(i&&(this.n_.preload||t)&&this.w$.type===S.RendererType.HTML5_HLS){var n={startOffset:i.customConfig&&i.customConfig.playbackStart||NaN,bufferLimit:this.n_.preloadBufferSize||30};this.w$.preload(n)}}},i.prototype.setSeedStreamIndex=function(t){this.g$&&this.g$.setSeedStreamIndex(t)},i.prototype.switchAndPlayNextRenderer=function(t,i){void 0===i&&(i=!1),this.switchToNextRenderer(i),this.publish(s.RENDERER_READY_TO_PLAY,t)},i.prototype.switchToNextRenderer=function(t){void 0===t&&(t=!1),this.w$&&(delete this.O$[this.w$.type],this.C$(this.w$),this.switchToRenderer(this.w$,t),this._$=null,this.E$=null)},i.prototype.didRendererTimeOut=function(){return!(!this.g$||!this.g$.timedOut)},i.prototype.getActiveRenderer=function(){return this.g$},i.prototype.getNextRendererNode=function(){return this.w$&&this.w$.node||null},i.prototype.syncPlaybackState=function(){this.g$&&(this.g$.paused=this.n_.isPaused(),this.g$.seeking=this.n_.isSeeking())},i.prototype.rewindAfterEnd=function(t){if(this.g$)if(t)switch(this.g$.type){case S.RendererType.HTML5_RAW:case S.RendererType.HTML5_HLS:this.g$.node&&(this.g$.node.src="")}else this.g$.seek(0)},i.prototype.play=function(t){this.publish(s.PLAY_CALLED),this.g$&&this.g$.play(t)},i.prototype.pause=function(){this.g$&&(this.g$.type===S.RendererType.HTML5_TV_TIZEN||this.g$.type===S.RendererType.HTML5_TV_ORSAY||(d.isFunction(this.g$.pause)?this.g$.pause():this.g$.node&&this.g$.node.pause()))},i.prototype.getCurrentDate=function(){return this.g$&&this.g$.getCurrentDate()||0},i.prototype.endVideo=function(){var t=this.g$;t&&!t.ended&&(t.ended=!0,t.type===S.RendererType.HTML5_TV_TIZEN||t.type===S.RendererType.HTML5_TV_ORSAY||(d.isFunction(t.stop)?t.stop():t.node&&t.node.pause()))},i.prototype.seek=function(t){this.g$&&this.g$.seek(t)},i.prototype.getCurrentTime=function(){return this.g$?this.g$.getCurrentTime():0},i.prototype.getDuration=function(){return this.g$?this.g$.getDuration():NaN},i.prototype.getMuted=function(){if(this.g$)return this.g$.getMuted()},i.prototype.getVolume=function(){return this.g$?this.g$.getVolume():NaN},i.prototype.setQuality=function(t){this.g$&&this.g$.setQuality(t)},i.prototype.showAirplayTargetMenu=function(){this.g$&&this.g$.showAirplayTargetMenu&&this.g$.showAirplayTargetMenu()},i.prototype.setPIPMode=function(t){var i;null===(i=this.g$)||void 0===i||i.setPIPMode(t)},i.prototype.setVolume=function(t){this.g$&&this.g$.setVolume(t)},i.prototype.setMute=function(t){this.g$&&this.g$.setMute(!!t)},i.prototype.setAudioLanguage=function(t){this.g$&&this.g$.setAudioLanguage&&this.g$.setAudioLanguage(t)},i.prototype.stopMedia=function(){if(this.g$)return this.g$.detachNode(),this.g$.stopMedia()},i.prototype.stopNextRenderer=function(t){if(this.w$)return this.w$.setError(t),this.w$.detachNode(),this.w$.stopMedia()},i.prototype.skip=function(){this.g$&&d.isFunction(this.g$.skip)&&this.g$.skip()},i.prototype.switchToRenderer=function(t,i){this.P$(this.g$);var n=this.g$,e=n&&n!==t;e&&a.userAgent.mobile&&v.default.exitFullscreen(n.node),this.x$(t),this.n_.playbackState.rendererType=t.type,this.setVolume(this.n_.volume),this.setMute(this.n_.mute),this.U$(this.g$),e&&(n.type===S.RendererType.HTML5_HLS_360||n.type===S.RendererType.HTML5_RAW_360||n.type===S.RendererType.EXTERNAL?p.default.classList(n.container).remove("vp-renderer-active"):n.node&&p.default.classList(n.node).remove("vp-renderer-active"),i?this.D$(n):this.V$(n)),this.B$(t,!0),t.type===S.RendererType.HTML5_HLS_360||t.type===S.RendererType.HTML5_RAW_360||t.type===S.RendererType.EXTERNAL?p.default.classList(t.container).add("vp-renderer-active"):t.node&&p.default.classList(t.node).add("vp-renderer-active"),this.publish(s.RENDERER_SWITCH,n,t)},i.prototype.enableMobileNativeCC=function(t){this.g$&&this.g$.enableMobileNativeCC&&this.g$.enableMobileNativeCC(t)},i.prototype.handleAdvancePreparePreloadNextRenderer=function(t){var i=this;t&&t.rendererType===S.RendererType.HTML5_HLS&&this.prepareNextRenderer(t,(function(n){n||i.w$===i.g$||(i.setItemNextRenderer(t,0),i.preloadNextRenderer(!0))}))},i.prototype.suspendStreaming=function(){this.g$&&this.g$.suspendStreaming()},i.prototype.resumeStreaming=function(){this.g$&&this.g$.resumeStreaming()},i.prototype.getSyncOffset=function(){return this.g$?this.g$.getSyncOffset():NaN},i.prototype.getSyncState=function(){return this.g$?this.g$.getSyncState():-1},i.prototype.startSync=function(){var t;null===(t=this.g$)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.g$)||void 0===t||t.stopSync()},i.prototype.setPlaybackRate=function(t){var i;null===(i=this.g$)||void 0===i||i.setPlaybackRate(t)},i.prototype.destroy=function(){this.g$&&this.g$.destroy(),this.w$&&this.w$.destroy()},i.prototype.U$=function(t){t&&(this.F$(t,S.CustomRendererEvent,o,this.A$),this.F$(t,S.RendererEvent,o,this.A$))},i.prototype.P$=function(t){t&&(t.removeEventListeners(this.A$),this.A$={})},i.prototype.L$=function(t){t&&t!==this.g$&&this.F$(t,S.RendererEvent,u,this.S$)},i.prototype.C$=function(t){t&&(t.removeEventListeners(this.S$),this.S$={})},i.prototype.F$=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,h=Object.keys(i);u<h.length;u++){s(h[u])}},i.prototype.z$=function(t){var i=this.n_,n=this.$U,e=this.O$[t];if(e)return e.bindCustomEvents(),e;switch(t){case S.RendererType.HTML5_HLS:e=new g.default(n,i);break;case S.RendererType.HTML5_RAW_360:e=new E.default(n,i);break;case S.RendererType.HTML5_HLS_360:e=new w.default(n,i);break;case S.RendererType.EXTERNAL:e=new y.default;break;case S.RendererType.HTML5_TV:e=new O.default(n,i);break;case S.RendererType.HTML5_TV_ORSAY:e=new A.default(n,i);break;case S.RendererType.HTML5_TV_TIZEN:e=new T.default(n,i);break;case S.RendererType.HTML5_RAW:default:e=new _.default(n,i)}return this.publish(s.RENDERER_CREATED,e),this.G$(e,t),e},i.prototype.k$=function(t){return this.z$(t)},i.prototype.R$=function(t){if(this.g$&&this.g$.type===S.RendererType.EXTERNAL&&this.g$.getExternalPlayer()===t)return this.g$;var i=this.k$(S.RendererType.EXTERNAL);return i.setExternalPlayer(t),i},i.prototype.V$=function(t){var i=[S.RendererType.HTML5_RAW_360,S.RendererType.HTML5_HLS_360,S.RendererType.EXTERNAL];if(t){var n=t.type;this.B$(t,!1),this.O$[n]||-1!==i.indexOf(n)?t.destroy():this.G$(t,n)}},i.prototype.B$=function(t,i){t&&(i?(t.detachNode&&t.detachNode(),t.reattachNode&&t.reattachNode()):(t.detachNode&&t.detachNode(),t.stopMedia&&t.stopMedia()))},i.prototype.M$=function(t){if(!(t instanceof c.default&&t.adPluginMimeType))return null;if(!this.n_.config.ads.preferExternalPlayback)return null;var i,n=this.iH.getPlugin(b.PluginType.AD,t.adPluginMimeType);if(!n||!d.isExternalPlayer(n))return null;var e=(i=n).getCapabilities(),r=!1,s=!1;return t.streams.forEach((function(t){/\.m3u8/i.test(t.url)?r=!0:/\.(?:mp4|webm)/i.test(t.url)&&(s=!0)})),r&&e.indexOf(S.ExternalPlayerCapability.RENDER_HLS)>-1||s&&e.indexOf(S.ExternalPlayerCapability.RENDER_PDL)>-1?i:null},i.prototype.N$=function(t,i){var n,e=[];if(i||(i=0),e.push(t.rendererType),e.push(i),t instanceof c.default){e.push("ad"),e.push(t.adBreakItemId),t.adPluginMimeType&&e.push(t.adPluginMimeType),(n=t.streams)&&n.length>0&&e.push(n[0].url);var r=t.adBreak;r&&(e.push(r.adBreakId),e.push(r.adBreakItems.length))}else t instanceof f.default&&(e.push("mediaItem"),e.push(t.id),(n=t.streams)&&n.length>0&&e.push(n[0].url));return e.join("|")},i.prototype.j$=function(){var t=a.userAgent.mobile&&!l.default.hasNativeAutoplaySupport;return!(a.userAgent.tv||a.userAgent.ios||t)},i.prototype.D$=function(t){return delete this.O$[t.type],t.destroy()},i.prototype.x$=function(t){t&&(this.g$=t,t.setActive(!0))},i.prototype.G$=function(t,i){t&&(this.O$[i]=t,t.setActive(!1))},i}(h.default);i.RendererController=j},4411: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(1409),u=n(954);!function(t){t.PAGE_VISIBILITY_CHANGED="pageVisibilityChanged"}(s=i.VisibilityEvent||(i.VisibilityEvent={}));var h=[{prop:"hidden",name:"visibilitychange"},{prop:"mozHidden",name:"mozvisibilitychange"},{prop:"webkitHidden",name:"webkitvisibilitychange"},{prop:"msHidden",name:"msvisibilitychange"}],a=function(t){function i(i){var n=t.call(this,"VisibilityManager")||this;return n.n_=i,n.H$=null,n.Y$="hidden",n.q$=null,n.H$=n.W$(),n.H$&&(n.Q$=n.Q$.bind(n),document.addEventListener(n.H$,n.Q$,!1)),n}return r(i,t),i.prototype.destroy=function(){this.H$&&(document.removeEventListener(this.H$,this.Q$,!1),this.H$=null)},i.prototype.isPlayerVisible=function(){var t=this.$$();return!(document[this.Y$]||t&&null===t.offsetParent||!1)},i.prototype.W$=function(){var t=h.filter((function(t){return t.prop in document})),i=t&&t[0];return i?(this.Y$=i.prop,i.name):null},i.prototype.$$=function(){if(this.q$)return this.q$;var t=this.n_.playerRootElement,i=t&&void 0!==t.getElementsByClassName&&t.getElementsByClassName(u.VIDEO_MAIN_ELEMENT_CLASS);return this.q$=i&&i.length&&i[0]||null,this.q$},i.prototype.Q$=function(){this.publish(s.PAGE_VISIBILITY_CHANGED,this.isPlayerVisible())},i}(o.default);i.default=a},1560: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(1409),o=n(9451),u=n(3840),h=n(9987),a=n(4141),c=n(3072),f=n(726),l=n(2079),v=n(1372),d=n(1962),p=n(7029),m=n(2759),b=n(2663),y=n(5125),g=n(1080),w=n(5549),_=n(9740),E=n(1594),O=n(4986),A=n(6342),S=n(954),T=n(1880),j=n(660).Validator,I="367684a442",M=function(t){function i(i,n){var e=t.call(this,"CorePlayer")||this;return e.X$=!1,e.version="0.3.138",e.playerType="PLAYER_TYPE",e.language="SCRIPT_LANGUAGE_I18N",e.config=i,e.mediaStore=n,e.Z$(i),e.guid=i.playerId||A.default.generateGuid(),e.J$(),e.K$(i,n),e}return r(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this),this.VH&&this.VH.destroy(),this.xE&&(this.xE.destroy(),this.xE=null),this.tX(),window.removeEventListener("pageshow",this.iX,!1)},i.prototype.initialize=function(){this.xE&&this.xE.initialize()},i.prototype.render=function(t){return this.nX(),this.eX=t,this.xE&&this.xE.render(t),this},i.prototype.getMediaItems=function(){return this.rX.getMediaItems()},i.prototype.removeAllMediaItems=function(){this.rX.removeAllMediaItems()},i.prototype.removeMediaItems=function(t){this.rX.removeMediaItems(t)},i.prototype.insertMediaItems=function(t,i){this.rX.insertMediaItems(t,i)},i.prototype.appendMediaItems=function(t){this.rX.appendMediaItems(t)},i.prototype.getCurrentMediaItem=function(){return this.rX.getCurrentMediaItem()},i.prototype.setCurrentMediaItem=function(t){this.rX.setCurrentMediaItem(t)},i.prototype.setMediaItemTitle=function(t,i){this.rX.setMediaItemTitle(t,i);var n=this.getCurrentMediaItem();n&&n.id===t&&this.xE.updateCurrentItemTitle(i)},i.prototype.getMediaItemMarkers=function(t){return this.rX.getMediaItemMarkers(t)},i.prototype.getCurrentAdBreak=function(){return this.sX.getCurrentAdBreak()},i.prototype.getCurrentAdBreakItem=function(){return this.sX.getCurrentAdBreakItem()},i.prototype.play=function(t,i){this.oX.play(t,i)},i.prototype.pause=function(t){this.oX.pause(t)},i.prototype.mute=function(){this.oX.setMute(!0)},i.prototype.unMute=function(){this.oX.setMute(!1)},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),O.isNumber(t)&&this.oX.setVolume(t,i)},i.prototype.seek=function(t){this.oX.seek(t)},i.prototype.registerPlugin=function(t){this.xE&&this.xE.registerPlugin(t)},i.prototype.getVideoElement=function(){return this.nX(),this.xE?this.xE.videoElement:null},i.prototype.getRootElement=function(){return this.nX(),this.xE?this.xE.rootElement:null},i.prototype.suspendState=function(){if(!o.userAgent.desktop&&!this.isSuspended()){this.nX();var t={boundEvents:this._r,currentTime:this.oX.getCurrentTime(),mediaStore:this.getMediaStore(),playlist:this.xE.getPlaylistItems(),position:this.uX.getPosition(),selector:this.eX};return this.X$=!0,this.destroy(),t}},i.prototype.resumeState=function(t){this.isSuspended()&&t&&(this.X$=!1,this.K$(this.config,t.mediaStore),this.uX.setItems(t.playlist),this.uX.setPosition(t.position),this.xE.startTime=t.currentTime,this._r=t.boundEvents)},i.prototype.isSuspended=function(){return this.X$},i.prototype.isRendered=function(){return this.nX(),!!this.xE&&this.xE.rendered},i.prototype.preload=function(){this.oX.preload()},i.prototype.disableControls=function(){this.oX.disableControls()},i.prototype.enableControls=function(){this.oX.enableControls()},i.prototype.enableCC=function(t){this.oX.enableCC(t)},i.prototype.disableCC=function(){this.oX.disableCC()},i.prototype.isPlayMode=function(){return this.xE.isPlayMode()},i.prototype.isLoading=function(){return this.xE.isLoading()},i.prototype.getPlaybackState=function(){return this.oX.getPlaybackState()},i.prototype.getCurrentTime=function(){return this.oX.getCurrentTime()},i.prototype.getRawCurrentTime=function(){return this.oX.getRawCurrentTime()},i.prototype.getDuration=function(){return this.oX.getDuration()},i.prototype.getRawDuration=function(){return this.oX.getRawDuration()},i.prototype.getTimeRemaining=function(){return this.oX.getTimeRemaining()},i.prototype.setFullscreen=function(t){void 0===t&&(t=!0),this.oX.setFullscreen(t)},i.prototype.getFullscreen=function(){return this.oX.getFullscreen()},i.prototype.getVolume=function(){return this.oX.getVolume()},i.prototype.isAd=function(){return this.xE.isAd()},i.prototype.setMute=function(t){void 0===t&&(t=!0),this.oX.setMute(t)},i.prototype.getMute=function(){return this.oX.getMute()},i.prototype.addCustomControlElement=function(t){return this.xE.addCustomControlElement(t)},i.prototype.setLoop=function(t){this.oX.setLoop(t)},i.prototype.setContinuousPlay=function(t){void 0===t&&(t=!0),this.oX.setContinuousPlay(t)},i.prototype.resumeContinuousPlay=function(){this.oX.resumeContinuousPlay()},i.prototype.setPlaybackRate=function(t){var i;void 0===t&&(t=1),S.PLAYBACK_RATES.includes(t)&&(null===(i=this.oX)||void 0===i||i.setPlaybackRate(t))},i.prototype.getCurrentDate=function(){return this.oX.getCurrentDate()},i.prototype.addItems=function(t,i){this.uX.addItems(t,i)},i.prototype.addMetricsEventListener=function(t,i){var n=this.hX.getAllExternalEvtNames();return this.addEventListeners(n,t,i)},i.prototype.setAudioLanguage=function(t){this.oX.setAudioLanguage(t)},i.prototype.getPlaylist=function(){return this.uX},i.prototype.getMediaStore=function(){return this.nX(),{aX:this.xE.mediaStore}},i.prototype.getPlaybackStartDto=function(){var t,i=null===(t=this.xE)||void 0===t?void 0:t.model,n=this.VH;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.VH.startTime},i.prototype.__setError=function(t,i,n,e,r){if(this.nX(),!this.xE)return null;this.xE.setCustomError(t,i,n,e,r)},i.prototype.__getSyncOffset=function(){var t;return(null===(t=this.xE)||void 0===t?void 0:t.getSyncOffset())||NaN},i.prototype.startSync=function(){var t;null===(t=this.xE)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.xE)||void 0===t||t.stopSync()},i.prototype.isDocked=function(){return this.nX(),this.xE&&this.xE.docked},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.nX(),this.xE.updateDockingConfig(t,i,n,e,r,s)},i.prototype.undockVideoPlayer=function(t){this.nX(),this.xE.undockVideoPlayer(t)},i.prototype.Z$=function(t){try{var i=new j;i.addSchema(y.streamSchema,"/streamSchema"),i.addSchema(b.sourceSchema,"/sourceSchema"),i.addSchema(m.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: "+t.property+" "+t.message;throw new Error(n)}},i.prototype.K$=function(t,i){this.$U=new s.default("internal"),this.cX();var n=null;i&&(n=i.aX||null),this.fX(),this.VH=new E.Profiler(this.$U),this.xE=new v.default(t,n,this.guid,this.$U,this.VH),this.hX=new c.ExternalEvtAPI(this,this.xE,this.$U),this.hX.enablePublish(),this.xE.initNewPlayback(),this.oX=new a.default(this.xE),this.uX=new l.default(this.xE),this.rX=new f.default(this.xE),this.sX=new h.default(this.xE)},i.prototype.fX=function(){var t=this;this.iX=function(i){i.persisted&&t.lX()},o.userAgent.safari&&window.addEventListener("pageshow",this.iX,!1)},i.prototype.nX=function(){if(this.isSuspended()||!this.xE)throw new Error("INVALID_STATE_ERR: Player instance no longer usable");return!0},i.prototype.lX=function(){this.destroy(),this.K$(this.config,this.mediaStore),this.render(this.eX)},i.prototype.tX=function(){this.vX.forEach((function(t){t.destroy()})),this.vX=[]},i.prototype.cX=function(){var t=this;this.vX=this.vX||[],!0===this.config.analytics&&this.vX.push(new T.default(this));var i=!1;this.$U.addEventListener(c.ExternalEvt.NIELSEN_REQUIRED,(function(){if(!i){var n=(t.config.nielsenConfig||{}).nielsenAppId||null;t.vX.push(new u.default(t,n)),i=!0}}),this)},i.prototype.J$=function(){var t=this.config.cssTheme,i=A.default.getCssBuildUrl(I.indexOf("local")>-1,I,t);A.default.loadCssAsset("vp-css",i,(function(){A.default.setSingleton("isCSSLoaded",!0)}),(function(){A.default.setSingleton("isCSSError",!0)}))},i}(s.default);i.default=M},8110: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])},4593:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(3872),r=n(6389),s=n(6342),o=n(8110),u="https://assets.video.yahoo.net/fairplay.cer",h=r.PLAYER_DRM_CODES,a=r.INFO_CODES,c=r.ErrorGroup.Configuration,f=function(){function t(t,i,n,e){this.dX=null,this.hT=t,this.pX=i||u,this.dX=this.pX===u?o.CERT_DATA:null,this.mX=n,this.bX=e,this.yX=this.gX.bind(this),this.wX=this._X.bind(this),this.EX=this.OX.bind(this),this.init()}return t.prototype.destroy=function(){this.hT.removeEventListener("webkitneedkey",this.yX),this.AX&&(this.SX(),this.AX=null)},t.prototype.init=function(){this.hT.addEventListener("webkitneedkey",this.yX)},t.prototype.SX=function(){this.AX.removeEventListener("webkitkeymessage",this.wX),this.AX.removeEventListener("webkitkeyerror",this.EX)},t.prototype.TX=function(){var t=this;null!==this.pX&&""!==this.pX?void 0!==window.WebKitMediaKeys?this.dX?this.jX():e.Loader.ajax(this.pX,{method:"GET",context:this,headers:{Pragma:"Cache-Control: no-cache","Cache-Control":"max-age=0"},responseType:"arraybuffer",successHandler:function(i){t.dX=new Uint8Array(i),t.dX.length?t.jX():t.IX(h.E_CERT_NO_DATA)},failureHandler:function(i){t.IX(h.E_CERT_LOAD_FAILED,r.ErrorGroup.Streaming,i.toString())},timeout:1e4}):this.IX(a.E_DRM_UNSUPPORTED_BROWSER,c):this.IX(h.E_CERTPATH_MISSING,c)},t.prototype.jX=function(){var t=this.MX(this.NX),i=this.RX(t),n=this.kX(this.NX,i,this.dX);if(!this.hT.webkitKeys){var e=this.LX();this.hT.webkitSetMediaKeys(new WebKitMediaKeys(e))}this.hT.webkitKeys?(this.AX&&(this.SX(),this.AX.close()),this.AX=this.hT.webkitKeys.createSession("video/mp4",n),this.AX?(this.AX.contentId=i,this.AX.destinationURL=t,this.AX.addEventListener("webkitkeymessage",this.wX),this.AX.addEventListener("webkitkeyadded",(function(t){})),this.AX.addEventListener("webkitkeyerror",this.EX)):this.IX(h.E_KEY_SESSION_FAILED)):this.IX(h.E_KEY_CREATION_FAILED)},t.prototype.gX=function(t){this.mX(),null!==t.initData?(this.NX=t.initData,this.TX()):this.IX(h.E_INIT)},t.prototype._X=function(t){this.DX(t.target,t.message)},t.prototype.OX=function(t){this.IX(h.E_KEY_ERROR,r.ErrorGroup.Streaming,t.currentTarget.error.code+"-"+t.currentTarget.error.systemCode)},t.prototype.RX=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.MX=function(t){var i=s.default.array16ToString(t).replace("skd://","https://");return i=i.substring(1,i.length)},t.prototype.kX=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.LX=function(){return WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4")?"com.apple.fps.1_0":(this.IX(h.E_NO_KEY_SYSTEM),null)},t.prototype.DX=function(t,i){var n=this,r={spc:s.default.base64EncodeUint8Array(i),assetId:t.contentId};e.Loader.ajax(t.destinationURL,{method:"POST",body:JSON.stringify(r),context:this,responseTypeJson:!0,beforeSend:function(i){i.session=t},successHandler:function(t,i,e,r){n.CX(t,r.session)},failureHandler:function(t,i,e){var r=403===e?a.E_DRM_FORBIDDEN_LICENSE:h.E_LICENSE_REQUEST;n.IX(r)},timeout:1e4})},t.prototype.CX=function(t,i){i.update(s.default.base64DecodeUint8Array(t.ckc))},t.prototype.IX=function(t,i,n){var e,s;void 0===i&&(i=r.ErrorGroup.Streaming),r.isInfoCode(t)?(e=r.E_INFO,s=a):(e=r.E_PLAYER_DRM,s=h);Object.keys(s)[parseInt(t,10)-1];this.bX(i,e,t,"",n),this.destroy()},t}();i.default=f},6389:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DRM_DEBUG_CODES=i.ErrorGroup=i.isInfoCode=i.rep=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_SAPI_CLOSEDCAPTION=i.E_SAPI_ABSTRACT=i.E_PLAYER_JS_HLS=i.E_PLAYER_DRM=i.E_PLAYER_FAILOVER=i.E_PLAYER=i.E_CAST=i.E_SAPI_POPULAR=i.E_SAPI_RELATED=i.E_SAPI_PLAYLIST=i.E_SAPI_STREAM=i.E_YVAP=i.E_WARNING=i.E_INFO=void 0;var e=n(5244),r=n(1954),s=n(3872).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_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_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.E_SAPI_ABSTRACT=s.E_SAPI_ABSTRACT,i.E_SAPI_CLOSEDCAPTION=s.E_SAPI_CLOSEDCAPTION;var u=i.E_PLAYER,h=i.E_PLAYER_FAILOVER,a=i.E_PLAYER_JS_HLS,c=i.E_SAPI_ABSTRACT,f=i.E_SAPI_CLOSEDCAPTION;function l(t){return t.group+t.phase+"-"+t.category+"-"+t.subcategory}function v(t){var i=[];if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.push(t[n]);return i}function d(t,i,n){i.forEach((function(i){t[i]=n}))}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,i.rep=l,i.isInfoCode=function(t){for(var n in i.INFO_CODES)if(Object.prototype.hasOwnProperty.call(i.INFO_CODES,n)&&i.INFO_CODES[n]===t)return!0;return!1},function(t){t.Streaming="P",t.Service="S",t.Configuration="C",t.Restriction="R"}(i.ErrorGroup||(i.ErrorGroup={})),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 p={};p[i.INFO_CODES.E_PLAYER_360_IS_NOT_SUPPORTED]=r.default.ERR_TITLE_CANNOT_PLAY_360_VIDEO,p[i.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE]=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO,p[i.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED]=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO,d(p,[i.INFO_CODES.E_SAPI_LICENSE_ERROR,i.INFO_CODES.E_SAPI_UNAVAILABLE_TEMP,i.INFO_CODES.E_SAPI_GEO,i.INFO_CODES.E_SAPI_BLACKOUT],r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE),v(i.INFO_CODES).forEach((function(t){p[t]||(p[t]=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO)}));var m={};m[i.INFO_CODES.E_SAPI_UNAVAILABLE_TEMP]=r.default.ERR_UNAVAILABLE,m[i.INFO_CODES.E_SAPI_LICENSE_ERROR]=r.default.ERR_UNAVAILABLE,m[i.INFO_CODES.E_SAPI_GEO]=r.default.ERR_GEO,m[i.INFO_CODES.E_SAPI_BLACKOUT]=r.default.ERR_BLACKOUT,m[i.INFO_CODES.E_SAPI_DEVICE]=r.default.ERR_DEVICE,m[i.INFO_CODES.E_SAPI_EMBED]=r.default.ERR_EMBED,m[i.INFO_CODES.E_PLAYER_ANDROID_CHROME_REQUIRED]=r.default.ERR_ANDROID_LIVE_CHROME_REQUIRED,m[i.INFO_CODES.E_PLAYER_NO_COMPATIBLE_FORMAT]=r.default.ERR_BROWSER_UNSUPPORTED,m[i.INFO_CODES.E_PLAYER_360_IS_NOT_SUPPORTED]=r.default.ERR_BROWSER_UNSUPPORTED_SKIP_IN_10,m[i.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED]=r.default.ERR_BROWSER_UNSUPPORTED,m[i.INFO_CODES.E_DRM_UNSUPPORTED_OS]=function(t){return t.ios?r.default.ERR_DRM_IOS_UNSUPPORTED_OS_VER:null},m[i.INFO_CODES.E_DRM_UNSUPPORTED_BROWSER]=function(t){return t.android?r.default.ERR_DRM_ANDROID_UNSUPPORTED_BROWSER:t.ios?r.default.ERR_DRM_IOS_UNSUPPORTED_BROWSER:null};var b={};b[i.PLAYER_CODES.E_NATIVE_SRC_NOT_SUPPORTED]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE,b[i.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE]=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO,d(b,[i.PLAYER_CODES.E_NATIVE_ABORTED],r.default.ERR_TITLE_CANNOT_PLAY_VIDEO),v(i.PLAYER_CODES).forEach((function(t){b[t]||(b[t]=r.default.ERR_TITLE_SOMETHING_WENT_WRONG)}));var y={};y[i.PLAYER_CODES.E_NATIVE_NETWORK_FAILURE]=r.default.ERR_NETWORK_ISSUE,i.PLAYER_CODES.E_NO_PLUGIN_FOUND="603",v(i.PLAYER_CODES).forEach((function(t){y[t]||(y[t]=r.default.ERR_GENERAL_ERROR)}));var g={};v(i.PLAYER_JS_HLS_CODES).forEach((function(t){g[t]=r.default.ERR_TITLE_SOMETHING_WENT_WRONG}));var w={};v(i.PLAYER_JS_HLS_CODES).forEach((function(t){w[t]=r.default.ERR_GENERAL_ERROR}));var _={};d(_,[i.SAPI_CODES.E_INCOMPATIBLE_FORMAT,i.SAPI_CODES.E_NO_STREAMS],r.default.ERR_TITLE_SOMETHING_WENT_WRONG),d(_,[i.SAPI_CODES.E_UNAUTHORIZED_USER,i.SAPI_CODES.E_DRM_RESTRICTED],r.default.ERR_TITLE_CANNOT_PLAY_VIDEO),v(i.SAPI_CODES).forEach((function(t){_[t]||(_[t]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE)}));var E={};E[i.SAPI_CODES.E_UNAUTHORIZED_USER]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE,E[i.SAPI_CODES.E_RESTRICTED_TO_INTERNAL]=r.default.ERR_UNAVAILABLE,d(E,[i.SAPI_CODES.E_INCOMPATIBLE_FORMAT,i.SAPI_CODES.E_NO_STREAMS],r.default.ERR_GENERAL_ERROR),v(i.SAPI_CODES).forEach((function(t){E[t]||(E[t]=r.default.ERR_MISSING_OR_DAMAGED)}));var O={};v(i.WARNING_CODES).forEach((function(t){t!==i.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE&&(O[t]=r.default.ERR_TITLE_SOMETHING_WENT_WRONG)})),O[i.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE;var A={};A[i.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE]=r.default.ERR_LIVE_PLAYBACK_COMPLETE,v(i.WARNING_CODES).forEach((function(t){t!==i.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE&&(A[t]=r.default.ERR_GENERAL_ERROR)}));var S={};S[i.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_NETWORK_TYPE_WIFI]=r.default.ERR_DRM_UNSUPPORTED_NETWORK_WIFI,d(S,[i.PLAYER_DRM_CODES.E_CERTPATH_MISSING],r.default.ERR_GENERAL_ERROR);var T={};d(T,[i.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_NETWORK_TYPE,i.PLAYER_DRM_CODES.E_CERTPATH_MISSING],r.default.ERR_TITLE_CANNOT_PLAY_VIDEO);var j=function(){function t(t,i,n,e,r){if(!t||!i||!n)throw new Error("Error must be created with a group, category, and subcategory!");this.errorInfo=e,this.iM=r,this.group=t,this.phase=this.PX(e),this.category=i,this.subcategory=n,this.xX=e?e.msg:null,this.debugMessage=e?e.debugMsg:null,this.prefetch=!(!e||void 0===e.prefetch)&&e.prefetch,this.isRecoverable=!1}return Object.defineProperty(t.prototype,"rep",{get:function(){return l(this)},enumerable:!1,configurable:!0}),t.prototype.isSAPIError=function(){return this.category>=c&&this.category<=f},t.prototype.PX=function(t){var i="S";return t&&t.playbackState&&(t.playbackState.state===e.States.VIDEO||t.playbackState.state===e.States.END)&&(i="P"),i},Object.defineProperty(t.prototype,"title",{get:function(){var t=null,n=this.errorInfo.playbackState&&this.errorInfo.playbackState.loadedItem&&this.errorInfo.playbackState.loadedItem.isLive();if(this.isSAPIError())t=_;else{if(this.category===u&&-1!==o.indexOf(this.subcategory)&&n&&this.iM&&(this.iM.android||this.iM.ios))return r.default.ERR_TITLE_SOMETHING_WENT_WRONG;this.category===u||this.category===h?t=b:this.category===i.E_WARNING?t=O:this.category===i.E_INFO?t=p:this.category===i.E_PLAYER_DRM?t=T:this.category===a&&(t=g)}return t&&t[this.subcategory]||r.default.ERR_TITLE_SOMETHING_WENT_WRONG},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var t=null,n=this.errorInfo.playbackState&&this.errorInfo.playbackState.loadedItem&&this.errorInfo.playbackState.loadedItem.isLive();if(this.isSAPIError())t=E;else{if(this.category===u&&-1!==o.indexOf(this.subcategory)&&n&&this.iM&&(this.iM.android||this.iM.ios))return r.default.ERR_LIVE_IOS_PLAYBACK;this.category===u||this.category===h?t=y:this.category===i.E_PLAYER_DRM?t=S:this.category===i.E_WARNING?t=A:this.category===i.E_INFO?t=m:this.category===a&&(t=w)}var e=t&&t[this.subcategory];return e="function"==typeof e?e(this.iM):e,this.xX||e||r.default.ERR_TECH_DIFFICULTIES},enumerable:!1,configurable:!0}),t}();i.default=j},1962: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.OPSS_VISIBILITY_CHANGED=i.AD_METRICS=i.AD_BREAK_ITEM_CLICKED=i.AD_BREAK_ITEM_SKIPPED=i.AD_BREAK_ITEM_ERROR=i.AD_BREAK_ITEM_ENDED=i.AD_BREAK_ITEM_PLAYBACK_STARTED=i.AD_BREAK_ITEM_CURRENT=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_SETTINGS=i.CTRL_FULLSCREEN=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.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=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_BREAK_ITEM_CURRENT="adBreakItemCurrent",i.AD_BREAK_ITEM_PLAYBACK_STARTED="adPlaybackStarted",i.AD_BREAK_ITEM_ENDED="adBreakItemEnded",i.AD_BREAK_ITEM_ERROR="adBreakItemError",i.AD_BREAK_ITEM_SKIPPED="adBreakItemSkipped",i.AD_BREAK_ITEM_CLICKED="adBreakItemClicked",i.AD_METRICS="adMetrics",i.OPSS_VISIBILITY_CHANGED="opssVisibilityChanged",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.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"},8103:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdBreakMimeType=i.AdBreakType=void 0,function(t){t.PREROLL="preroll",t.POSTROLL="postroll",t.MIDROLL="midroll",t.TRIGGER="trigger",t.NON_LINEAR="nonlinear",t.NATIVE="native"}(i.AdBreakType||(i.AdBreakType={})),function(t){t.DUMMY="ad/dummy"}(i.AdBreakMimeType||(i.AdBreakMimeType={}))},3755: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={}))},2542: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(4685);Object.defineProperty(i,"AdPluginPlaybackCapability",{enumerable:!0,get:function(){return e.ExternalPlayerCapability}}),Object.defineProperty(i,"AdPlayerEvent",{enumerable:!0,get:function(){return e.ExternalPlayerEvent}});var r,s,o,u,h=n(6342).default.mergeStringEnums;!function(t){t.METRICS="ad-plugin--metrics",t.DIAGNOSTICS="ad-plugin--diagnostics"}(r=i.AdPluginMetricsEvent||(i.AdPluginMetricsEvent={})),function(t){t.AD_BREAKS_AVAILABLE="ad-plugin--breaks-available",t.AD_BREAK_PLAYING="ad-plugin--break-playing",t.AD_BREAK_RESOLVED="ad-plugin--break-resolved",t.AD_BREAK_RESOLVE_ERROR="ad-plugin--break-resolve-error",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=h(s,h(r,h(u,h(o,e.ExternalPlayerEvent))))},3277:function(t,i){"use strict";var n=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.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))}}(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)}}},6120: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={}))},1279:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VisualSeekType=i.MoreItemsReason=i.PluginPlayerEvent=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"}(i.PluginType||(i.PluginType={})),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={}))},9134: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(2394),o=n(6342),u=n(3529),h=n(4339),a=function(t){function i(i,n,e,r){var s=t.call(this)||this;return s.TM=[],s.UX=i,s.VX=n,s.id=n.adBreakItemId,s.adBreakItemId=n.adBreakItemId,s.adPluginMimeType=n.adPluginMimeType,s.customConfig=n.customInfo||null,s.duration=n.duration||NaN,s.instream=n.instream,s.interactionConfig=n.interactionConfig,s.type=n.type,s.resolvedState=n.resolvedState,s.videoSession=s.BX(),n.source&&n.source.streams&&s.iN(n.source.streams,e,r),s}return r(i,t),i.prototype.hasStreams=function(){return this.streams.length>1},i.prototype.equals=function(t){return!!t&&(t.id===this.id&&this.adBreakItemId===t.adBreakItemId)},i.prototype.getPlayableItemType=function(){return u.PlayableItemType.AD_BREAK_ITEM},i.prototype.setDuration=function(t){this.duration=t},i.prototype.getDuration=function(){return this.duration},i.prototype.getStreamType=function(){return this.UX&&this.UX.type||""},Object.defineProperty(i.prototype,"adBreak",{get:function(){return this.UX},enumerable:!1,configurable:!0}),i.prototype.skip=function(){},Object.defineProperty(i.prototype,"rawItemData",{get:function(){return o.default.deepCopy(this.VX)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"streams",{get:function(){return this.TM},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"streamProfiles",{get:function(){return[]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"altStreams",{get:function(){return[]},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"syncPoint",{get:function(){return NaN},enumerable:!1,configurable:!0}),i.prototype.getCurrLanguage=function(){return null},i.prototype.BX=function(){for(var t=[],i="abcdefghijklmnopqrstuvwxyz123456789",n=0;n<8;n++)t.push(i.charAt(Math.floor(Math.random()*i.length)));return t.join("")},i.prototype.iN=function(t,i,n){if(t&&t.length&&0===this.TM.length){for(var e=t.map((function(t){return new h.default(t)})),r=0,o=i;r<o.length;r++){var u=o[r],a=n[u],c=s.default.findAcceptedStreams(e,a);if(0!==c.length){this.rendererType=u,this.TM=c;break}}this.TM.length>0&&this.TM.sort((function(t,i){return t.videoMetadata.bitrate-i.videoMetadata.bitrate}))}},i}(u.PlayableItem);i.default=a},595:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(4986),r=n(6342),s=n(9134),o=function(){function t(t,i,n,e){var o=this;this.rE=null,this.TH=t,i.adBreakId=i.adBreakId||r.default.generateGuid(),this.FX=r.default.deepCopy(i),this.zX=n,this.GX=e,this.adBreakId=i.adBreakId,Array.isArray(i.adBreakItems)&&(this.adBreakItems=i.adBreakItems.map((function(t){return new s.default(o,t,n,e)}))),this.HX=i.duration||0,0===this.HX&&this.adBreakItems&&this.adBreakItems.forEach((function(t){o.HX+=t.duration||0})),this.customInfo=i.customInfo,this.startOffset=i.startOffset,this.type=i.type,this.mimetype=i.mimetype||"",this.backToLiveDuration=i.backToLiveDuration||0,this.startTime=i.startTime||0,this.active=i.active||!0}return Object.defineProperty(t.prototype,"mediaItem",{get:function(){return this.TH},enumerable:!1,configurable:!0}),t.prototype.appendAdBreakItems=function(t){var i=this;t.forEach((function(t){if(!i.YX(t.adBreakItemId)){var n=new s.default(i,t,i.zX,i.GX);i.adBreakItems.push(n),i.HX+=n.duration||0}}))},t.prototype.insertAdBreakItems=function(t,i){var n=this,e=i;t.forEach((function(t){if(!n.YX(t.adBreakItemId)){var i=new s.default(n,t,n.zX,n.GX);n.adBreakItems.splice(e,0,i),n.HX+=i.duration||0,e++}}))},t.prototype.removeAdBreakItems=function(t){var i,n=this,e=this.adBreakItems.length;t.forEach((function(t){n.YX(t.adBreakItemId)&&function(t){for(i=0;i<e;i++)if(n.adBreakItems[i].adBreakItemId===t.adBreakItemId){n.HX-=t.duration||0,n.HX<0&&(n.HX=0),n.adBreakItems.splice(i,1);break}}(t)}))},t.prototype.setActive=function(t){e.isBoolean(t)&&(this.active=t)},t.prototype.backToLive=function(){},t.prototype.breakNow=function(){},Object.defineProperty(t.prototype,"rawItemData",{get:function(){return r.default.deepCopy(this.FX)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.HX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"error",{get:function(){return this.rE},set:function(t){this.rE=t},enumerable:!1,configurable:!0}),t.prototype.hasResolved=function(){return!(!this.adBreakItems||0===this.adBreakItems.length)},t.prototype.YX=function(t){return this.adBreakItems.some((function(i){return i.adBreakItemId===t}))},t}();i.default=o},1960: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:!1,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,showPlayButton:!0,showPlayButtonOnPause:!1,sliderColor:"",startScreen:{show:!0,showButton:!0,showDescription:!0,showProvider:!0,showTitle:!0,showThumbnail:!0},title:{showOnHover:!0,showOnStart:""}},backgroundPause:{onMute:!0,onUnmute:!1,timeToPause:5,suspendStreamingTime:20,backgroundSuspendStreaming:!0},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},440: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(2394),o=n(4986),u=n(6342),h=n(595),a=n(8103),c=n(6120),f=n(3529),l=n(2759),v=n(2663),d=n(5125),p=n(4339),m=n(660).Validator,b={id:"",mimetype:c.MediaItemMimeType.UPLYNK,metadata:{description:"",duration:0,title:"",thumbnail:"",type:c.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=c.ItemState.NO_DATA,s.sourceState=c.SourceState.NO_DATA,s.recoveryStatus=c.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.jR=0,s.TM=[],s.qX=NaN,s.WX={},s.QX=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=c.MediaItemMimeType.CONTAINER)},Object.defineProperty(i.prototype,"key",{get:function(){return this.xR},enumerable:!1,configurable:!0}),i.prototype.hasStreams=function(){return 0!==this.TM.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===c.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)||c.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(c.VIDEO_TYPE.THREE_SIXTY)},i.prototype.build=function(t,i,n,e){t&&(this.zX=n,this.GX=e,this.$X=u.default.deepCopy(t),this.XX(t),t.source&&t.source.streams&&this.iN(t.source.streams,i,e),t.adBreaks&&this.ZX(t.adBreaks,n,e))},i.prototype.hasNativeAd=function(){return!!this.isContainer()&&!(!this.adBreaks||!this.adBreaks.length||this.adBreaks[0].type!==a.AdBreakType.NATIVE)},i.prototype.isContainer=function(){return this.metadata&&this.metadata.type===c.MediaItemType.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.qX},i.prototype.setRawDuration=function(t){this.qX=t},Object.defineProperty(i.prototype,"rawItemData",{get:function(){return this.$X},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.jR},set:function(t){this.jR=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"refPlaybackId",{get:function(){return this.xR+"#"+this.videoSession},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"samplingId",{get:function(){return this.JX},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"streams",{get:function(){return this.TM},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"visualSeekData",{get:function(){return this.KX},set:function(t){this.KX=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"brandingData",{get:function(){return this.tZ},set:function(t){this.tZ=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||b.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(o,u){t.adBreakId===o.adBreakId&&(s=new h.default(r,t,i,n),e&&(s.error=e),r.adBreaks[u]=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.adBreakId,i.adBreaks.some((function(t,i){return t.adBreakId===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.adBreakId,!i.adBreaks.some((function(t){return t.adBreakId===r}))){var e=new h.default(i,t,i.zX,i.GX);i.adBreaks.push(e),n.push(e)}var r})),n},i.prototype.getRecoveryStatusForBeacon=function(){var t=this.recoveryStatus===c.ItemRecoveryStatus.RECOVERED;return t&&(this.recoveryStatus=c.ItemRecoveryStatus.NOT_RECOVERING),t},i.prototype.fetchFinished=function(){return this.state===c.ItemState.HAS_DATA||this.state===c.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.TM.length>0?this.TM[0].cdn:null},i.prototype.hasLiveStreams=function(){for(var t=0,i=this.TM;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(Math.random()*i.length)));return t.join("")},i.prototype.generateSamplingId=function(){return Math.floor(10*Math.random())},i.prototype.getType=function(){return this.hasStreams()?this.TM[0].getType():"none"},i.prototype.getStreamProtocol=function(){return this.hasStreams()?this.TM[0].streamProtocol:"none"},i.prototype.getSubtitleStreams=function(){return this.altStreams.filter((function(t){return"SUBTITLES"===t.type}))},i.prototype.mayUpdateVideoSession=function(){this.iZ||this.nZ()},i.prototype.useVideoSession=function(){this.iZ=!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.eZ=e,e.selected=!0):e.selected=!1}},i.prototype.getCurrLanguage=function(){return this.eZ},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.iZ=!0,this.JX=this.generateSamplingId()},i.prototype.getAspectRatio=function(){return this.TM.length>0?this.TM[0].aspectRatio:null},i.prototype.updateCompletedAdBreak=function(t){t&&(this.removeAdBreaks([t]),this.WX[this.videoSession]=this.WX[this.videoSession]||[],this.WX[this.videoSession].push(t))},i.prototype.ZX=function(t,i,n){var e=this;this.adBreaks=t.map((function(t){return new h.default(e,t,i,n)}))},i.prototype.XX=function(t){this.Z$(t);var n=u.default.deepCopy(t);n=u.default.mergeObjects(n,b),u.default.mergeObjects(this,n,!0),u.default.mergeObjects(this,this.QX,!0),this.xR=i.createKey(this.id,this.mimetype)},i.prototype.Z$=function(t){try{var i=new m;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: "+t.property+" "+t.message;throw new Error(n)}},i.prototype.iN=function(t,i,n){var e=this;if(t&&t.length){this.TM=[];for(var r=t.map((function(t){return Object.prototype.hasOwnProperty.call(t,"live")||(t.live=e.metadata&&(e.metadata.type===c.MediaItemType.LIVE_CHANNEL||e.metadata.type===c.MediaItemType.LIVE_EVENT)),new p.default(t)})),o=0,u=i;o<u.length;o++){var h=u[o],a=n[h];if(!(this.is360Video()&&!a.is360Renderer||!this.is360Video()&&a.is360Renderer)){var f=s.default.findAcceptedStreams(r,a);if(0!==f.length){this.rendererType=h,this.TM=f;break}}}this.TM.length>0&&this.TM.sort((function(t,i){return t.videoMetadata.bitrate-i.videoMetadata.bitrate}))}},i.prototype.nZ=function(){this.updateVideoSession(),this.rZ()},i.prototype.rZ=function(){this.setSourceState(c.SourceState.NO_DATA)},i}(f.PlayableItem);i.default=y},2341: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(1409),o=n(440);!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 u=function(t){function i(i,n,e){var r=t.call(this,"MediaStore")||this;return r.sZ={},r.oZ=i,r.zX=n,r.GX=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.sZ[i])return i;var n=new o.default(t,this.oZ,this.zX,this.GX);return this.sZ[n.key]=n,n.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.sZ[i];return n?n.build(t,this.oZ,this.zX,this.GX):(n=new o.default(t,this.oZ,this.zX,this.GX)).updateVideoSession(),this.sZ[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.sZ[t]||null},i.prototype.getById=function(t){if(!t)return null;for(var i in this.sZ)if(0===i.indexOf(t))return this.sZ[i];return null},i.prototype.getByData=function(t){if(!t)return null;var i=o.default.createKey(t.id,t.mimetype);return this.sZ[i]||null},i.prototype.getBySessionId=function(t){if(!t)return null;for(var i=0,n=Object.keys(this.sZ);i<n.length;i++){var e=n[i],r=this.sZ[e];if(r&&r.videoSession===t)return r}return null},i}(s.default);i.default=u},2334: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(9451),u=n(954),h=n(5727),a=n(4685),c=n(6669),f=n(5244),l=n(3872),v=n(1204),d=n(4986),p=n(6342),m=n(1960),b=n(2341),y=n(7189),g=n(4926);!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 w=function(){function t(i,n,e){this.consent={gdprApplies:null,gdprConsentData:null,uspString:null},this.rebufferReason=null,this.playbackRate=1,this.uZ="0.3.138",this.hZ="1.2.37",this.aZ=!1,this.cZ="none",this.fZ=!1,this.lZ=r.NONE,this.vZ=new g.default,this.vZ.width=i&&i.width||this.vZ.width,this.vZ.height=i&&i.height||this.vZ.height,this.vZ.videoWidth=this.vZ.width,this.vZ.videoHeight=this.vZ.height,this.dZ={desiredBitrate:t.DESIRED_BITRATE,mp4Abr:!1,bitrate:0,bitrates:[],heights:[],startTime:NaN,preconnect:!0,skipFormats:[],isResumingFromSavedPosition:!1,requestType:null,requestAction:null,playlistLoop:!1},this.pZ=e,this.mZ=[],this.TR=i,this.bZ=this.XX(i),this.yZ(),this.gZ(),this.wZ(),this._Z(n),this.EZ(),this.OZ(),this.bZ.mediaItems&&this.bZ.mediaItems.length&&(this.firstItemAdsSitePrefetched=!!this.bZ.mediaItems[0].adConfig),this.playlist=new y.default(this.BH),this.bZ.mediaItems&&this.bZ.mediaItems.forEach((function(t){t.adConfigPrefetched=!!t.adConfig})),this.playlist.addItems(this.bZ.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.bZ},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return this.bZ.site||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this.bZ.region||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lang",{get:function(){return this.bZ.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.bZ.ui,i=m.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.bZ.ui,i=m.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.bZ.ui;return(null==t?void 0:t.docking)||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logos",{get:function(){var t=this.bZ.ui,i=m.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.bZ.ui,i=m.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.bZ.ui,i=m.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.bZ.ui,i=m.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.bZ.ui,i=m.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.bZ.ui,i=m.defaultConfigs.ui.startScreen.show;return t&&t.startScreen&&void 0!==t.startScreen.show?t.startScreen.show:i},set:function(t){var i=this.bZ.ui;i&&i.startScreen&&(i.startScreen.show=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFullscreenButton",{get:function(){var t=this.bZ.ui,i=m.defaultConfigs.ui.showFullscreenButton;return t&&void 0!==t.showFullscreenButton?t.showFullscreenButton:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sliderColor",{get:function(){var t=this.bZ.ui,i=m.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.bZ.ui,i=m.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,"stopAtLastFrame",{get:function(){var t=this.bZ.stopAtLastFrame;return void 0===t?m.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=m.defaultConfigs.ui.playlist,i=this.bZ.ui;return i?i.playlist:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){var t=this.bZ.continuousPlay;return void 0===t?m.defaultConfigs.continuousPlay:t},set:function(t){this.bZ.continuousPlay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"adPlaybackOnly",{get:function(){var t=this.bZ.adPlaybackOnly;return void 0===t?m.defaultConfigs.adPlaybackOnly:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoplay",{get:function(){var t=this.bZ.autoplay;return void 0===t?m.defaultConfigs.autoplay:t},set:function(t){this.bZ.autoplay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stopBufferingOnPause",{get:function(){var t=this.bZ.stopBufferingOnPause;return void 0===t?m.defaultConfigs.stopBufferingOnPause:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preload",{get:function(){var t=this.bZ.preload;return void 0===t?m.defaultConfigs.preload:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullscreen",{get:function(){var t=this.bZ.fullscreen;return void 0===t?m.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.dZ.bitrate},set:function(t){this.dZ.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.dZ.bitrates},set:function(t){this.dZ.bitrates=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"heights",{get:function(){return this.dZ.heights},set:function(t){this.dZ.heights=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mp4Abr",{get:function(){return this.dZ.mp4Abr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startTime",{get:function(){return this.dZ.startTime},set:function(t){this.dZ.startTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preconnect",{get:function(){return this.dZ.preconnect},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isResumingFromSavedPosition",{set:function(t){this.dZ.isResumingFromSavedPosition=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requestType",{get:function(){return this.dZ.requestType},set:function(t){this.dZ.requestType=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requestAction",{get:function(){return this.dZ.requestAction},set:function(t){this.dZ.requestAction=t},enumerable:!1,configurable:!0}),t.prototype.setRequestInfo=function(t){if(t&&(this.requestType=t.type,p.default.isValidRequestAction(t.action))){if(this.requestAction=t.action,t.action===u.REQUEST_TYPES.PAUSE)switch(t.type){case u.REQUEST_TYPES.CLICK:this.lZ=r.CONTROL;break;case u.REQUEST_TYPES.API:this.lZ=r.API}t.action===u.REQUEST_TYPES.BACKGROUND&&t.type===u.REQUEST_TYPES.API&&(this.lZ=r.BACKGROUND)}},Object.defineProperty(t.prototype,"playlistLoop",{get:function(){return this.dZ.playlistLoop},set:function(t){this.dZ.playlistLoop=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"desiredBitrate",{get:function(){return this.dZ.desiredBitrate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uiState",{get:function(){return this.vZ},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playbackState",{get:function(){return this.aY},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitingForUserTap",{get:function(){return this.aZ},set:function(t){this.aZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preloadBufferSize",{get:function(){var t=this.bZ.preloadBufferSize;return void 0===t?m.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(){return this.bZ.skipOnError||m.SkipOnError.NEVER},set:function(t){this.bZ.skipOnError=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"liveUnloadOnPause",{get:function(){return this.bZ.liveUnloadOnPause||!0},set:function(t){this.bZ.liveUnloadOnPause=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDrmAvailable",{set:function(t){this.fZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"drmSystem",{set:function(t){t&&(this.cZ=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.uZ},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jshlsVersion",{get:function(){return this.hZ},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"casting",{get:function(){return void 0===this.bZ.casting||this.bZ.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.pZ},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputConfig",{get:function(){return this.TR},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.mZ},set:function(t){this.mZ=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.category||n.subcategory)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.bZ.ui,i=m.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.bZ.ui,i=m.defaultConfigs.ui.showPlayButtonOnPause;return t&&void 0!==t.showPlayButtonOnPause?t.showPlayButtonOnPause:i},enumerable:!1,configurable:!0}),t.prototype.setPlaybackState=function(t){if(this.aY)throw new Error("playbackState is already set");this.aY=t,this.AZ(),this.SZ()},t.prototype.isPlaylistStructured=function(){return!1},t.prototype.isLocal=function(){return this.uZ.indexOf("local")>-1},t.prototype.isMobileStrmInlineExpr=function(){return(o.userAgent.ios||o.userAgent.android)&&v.default.canPlayInline},t.prototype.isAutoplayAllowed=function(){var t=!0!==v.default.network.mobile;return!o.userAgent.mobile||v.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===f.States.VIDEO&&!t.paused&&!t.loading)},t.prototype.isAd=function(){return p.default.isAdBreakType(this.playbackState.currentMediaType)},t.prototype.endVideo=function(){this.dZ.bitrate=0},Object.defineProperty(t.prototype,"loop",{get:function(){var t=this.bZ.loop;return void 0===t&&(t=m.defaultConfigs.loop),(this.getPlaylistRenderingType()===s.ONLY_ITEMS||!(!this.playlist.isEndOfPlaylist()&&t))&&t},set:function(t){d.isBoolean(t)&&(this.bZ.loop=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mute",{get:function(){return this.aY&&this.aY.mute},set:function(t){this.aY&&d.isBoolean(t)&&(this.aY.mute=t)},enumerable:!1,configurable:!0}),t.prototype.getState=function(){return this.playbackState.state},t.prototype.setState=function(t){this.aY&&(Object.keys(f.States).indexOf(t.toUpperCase())>-1&&(this.playbackState.state=t))},Object.defineProperty(t.prototype,"volume",{get:function(){return this.aY&&this.aY.volume},set:function(t){this.aY&&d.isNumber(t)&&t>=0&&t<=1&&(this.aY.volume=t)},enumerable:!1,configurable:!0}),t.prototype.isPaused=function(){return this.playbackState&&this.playbackState.paused},t.prototype.setPaused=function(t){this.playbackState&&d.isBoolean(t)&&(this.playbackState.paused=t,t?this.setLoading(!1):this.lZ=r.NONE)},t.prototype.onRendererPause=function(){var t=this.getState();return t!==f.States.INIT&&t!==f.States.END&&(this.setPaused(!0),!0)},t.prototype.isSeeking=function(){return this.playbackState&&this.playbackState.seeking},t.prototype.setSeeking=function(t){this.playbackState&&d.isBoolean(t)&&(this.playbackState.seeking=t)},t.prototype.isLoading=function(){return this.playbackState&&this.playbackState.loading},t.prototype.setLoading=function(t){this.playbackState&&d.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.lZ},t.prototype.getPlaylistRenderingType=function(){var t=this.playlist&&this.playlist.playlistId,i=this.TR&&this.TR.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.BH},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seekControls",{get:function(){return this.bZ.ui&&this.bZ.ui.seekControls||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPlaybackRateControls",{get:function(){var t;return!!(null===(t=this.bZ.ui)||void 0===t?void 0:t.showPlaybackRateControls)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundPause",{get:function(){return this.bZ.backgroundPause?this.bZ.backgroundPause:m.defaultConfigs.backgroundPause},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.uZ,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.cZ,drm:this.fZ,playbackMode:this.playbackState&&this.playbackState.playbackMode,currentMediaType:this.playbackState&&this.playbackState.currentMediaType,currentTs:Date.now(),pbst:this.getState(),pbstd:this.TZ(),soe:this.skipOnError},i=this.playlist.getCurrentItem();return i?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}):t},t.prototype.getAspectRatio=function(){var t=null,i=this.playlist.getCurrentItem();if(i&&(t=i.getAspectRatio()),!t&&this.vZ.videoWidth&&this.vZ.videoHeight){var n=this.vZ.videoWidth/this.vZ.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.XX=function(t){var i=p.default.deepCopy(t);return i=p.default.mergeObjects(i,m.defaultConfigs),i=this.jZ(i)},t.prototype.TZ=function(){var t=f.States.INIT,i=this.playbackState.currentMediaType;return this.playbackState.state!==f.States.VIDEO&&this.playbackState.state!==f.States.END||!i||(t=this.isAd()?this.isMediaPlaying()||this.isPaused()?f.States.VIDEO:f.States.INIT:f.States.VIDEO),t},t.prototype.jZ=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&&v.default.updateNetwork(n.mobile,n.raw),t},t.prototype.yZ=function(){!l.LocalStorage.get("vp-dont-autoplay")&&this.isAutoplayAllowed()||(this.autoplay=!1)},t.prototype.SZ=function(){if(this.muteMode)this.mute=!0;else if(o.userAgent.desktop&&this.autoplay){var t=v.default.needsGestureToPlayUnmuted&&(o.userAgent.firefox>=66||o.userAgent.chrome>=66||o.userAgent.edge>=17);(o.userAgent.safari>=11||t)&&(this.mute=!0)}},t.prototype.AZ=function(){if(o.userAgent.mobile&&v.default.autoplaySupported)return this.volume=1,void(this.mute=!0);var t=m.defaultConfigs.volume,i=m.defaultConfigs.mute,n=l.LocalStorage.get(u.LocalStorageKey.VOLUME);n&&(t=n.volume,i=n.mute);var e=this.TR.volume;d.isNumber(e)&&e>=0&&e<=1&&(t=e),d.isBoolean(this.TR.mute)&&(i=this.bZ.mute),this.volume=t,this.mute=i},t.prototype.wZ=function(){(!this.autoplay||this.playbackState&&this.waitingForUserTap)&&!this.chromeless&&(this.showStartScreen=!0)},t.prototype.IZ=function(){this.rendererTypes=c.default.getRendererTypes(),this.adsRendererTypes=c.default.getAdRendererTypes();var t=this.rendererTypes.slice(0);this.adsRendererTypes.forEach((function(i){-1!==t.indexOf(i)&&t.push(i)})),this.capabilities=this.MZ(t)},t.prototype.MZ=function(t){var i=this,n={};return t?(t.forEach((function(t){var e=h.default.get(t);e&&(n[t]=e,!i.config.enableDash||o.userAgent.safari||t!==a.RendererType.HTML5_HLS&&t!==a.RendererType.HTML5_HLS_360||(n[t].preferredFormats.unshift("mpd"),n[t].acceptedFormats.unshift("mpd")),i.dZ.skipFormats.length>0&&(n[t].preferredFormats=n[t].preferredFormats.filter((function(t){return-1===i.dZ.skipFormats.indexOf(t)}))))})),n):n},t.prototype._Z=function(t){this.IZ(),this.BH=t||new b.default(this.rendererTypes,this.adsRendererTypes,this.capabilities)},t.prototype.EZ=function(){var t={},i=p.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.gZ=function(){v.default.canPlayInline&&v.default.autoplayByUIEvtOnly&&this.autoplay&&(this.waitingForUserTap=!0)},t.prototype.OZ=function(){var t=this;l.Privacy.getGDPRConsentData((function(i,n){n&&(t.consent.gdprApplies=null==i?void 0:i.gdprApplies,t.consent.gdprConsentData=null==i?void 0:i.gdprConsentData)})),l.Privacy.getUSPrivacyConsent((function(i,n){n&&(t.consent.uspString=null==i?void 0:i.uspString)}))},t.DESIRED_BITRATE=900,t.RECOVERY_FAILURE_TIMEOUT=120,t}();i.default=w},3529:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PlayableItem=i.PlayableItemType=void 0;var e=n(6120);!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},3353:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(5244),r=n(6342),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.loadedAdBreakItem=null,this.rendererType=null,this.hasStartedPlayback=!1,this.hasCurrentItemPlayed=!1,this.hasRendererPlayCalled=!1,this.NZ=null,this.shouldPlay=!0}return Object.defineProperty(t.prototype,"playingItem",{get:function(){return this.RZ},set:function(t){this.RZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.GW},set:function(t){this.GW=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentRawTime",{get:function(){return this.kZ},set:function(t){this.kZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.HX},set:function(t){this.HX=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playbackMode",{get:function(){return r.default.getPlaybackMode(this.RZ)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMediaType",{get:function(){return this.NZ},set:function(t){this.NZ=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},7189:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(4986),r=n(2341),s=function(){function t(t){this.position=-1,this.LZ=[],this.DZ=0,this.BH=t}return t.prototype.destroy=function(){this.LZ=[],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.BH.addItem(e);this.contains(s)||(this.LZ.push(s),this.BH.publish(r.MediaStoreEvent.MEDIA_ITEM_ADDED,s))}this.LZ.length&&-1===this.position&&(this.position=0)}},t.prototype.addItemAtIndex=function(t,i){if(t&&void 0!==i&&!(i<0)){var n=this.BH.addItem(t);this.contains(n)||(this.LZ.splice(i,0,n),this.BH.publish(r.MediaStoreEvent.MEDIA_ITEM_ADDED,n)),this.LZ.length&&-1===this.position&&(this.position=0)}},t.prototype.removeItems=function(t,i){var n=this;this.LZ.slice(t,t+i).forEach((function(t){return n.BH.publish(r.MediaStoreEvent.MEDIA_ITEM_REMOVED,t)})),this.LZ.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.BH.getByData(t)&&n.push(i.BH.updateItem(t))})),n):n},t.prototype.updateMediaItemsState=function(t,i){var n=this;null==t||t.forEach((function(t){n.BH.updateItemState(t,i)}))},t.prototype.updateMediaItemsSourceState=function(t,i){var n=this;null==t||t.forEach((function(t){n.BH.updateItemSourceState(t,i)}))},t.prototype.contains=function(t){return this.LZ.indexOf(t)>=0},t.prototype.getMediaItemAt=function(t){return t<0||t>=this.LZ.length?null:this.BH.get(this.LZ[t])},t.prototype.getMediaItemById=function(t){return t?this.BH.getById(t):null},t.prototype.getMediaItemBySessionId=function(t){return t?this.BH.getBySessionId(t):null},t.prototype.getCurrentItem=function(){return this.getMediaItemAt(this.position)},t.prototype.appendItem=function(t){if(t){var i=this.LZ.length;return this.LZ.push(t.key),i}return-1},t.prototype.getItems=function(){for(var t=[],i=0;i<this.LZ.length;i++){var n=this.getMediaItemAt(i);n&&t.push(n)}return t},t.prototype.getItemIds=function(){for(var t=[],i=0;i<this.LZ.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.LZ;n<e.length;n++){if(0===e[n].indexOf(t))return i;i++}return-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.LZ.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.LZ.length)return-1;var e=this.position+1;if(n.playlistLoop&&e===this.LZ.length)return n.looped=!0,0;if(t){if(e<this.LZ.length)return e;if(i&&e===this.LZ.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.LZ.length-1},Object.defineProperty(t.prototype,"playlistId",{get:function(){return this.CZ},set:function(t){this.CZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistFetchIndex",{get:function(){return this.DZ},set:function(t){this.DZ=t},enumerable:!1,configurable:!0}),t}();i.default=s},7029: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}}},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"]}},2759:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.mediaItemSchema=void 0;var e=n(6120);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"]}}},2663: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}}}},5125: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"]}},1080: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"]}},5549: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"},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"}}}}}},9740: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"}}}},4339:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(4986),r=n(6342),s=n(5125),o=n(660).Validator,u={audioMetadata:{bitrate:0,channels:1},videoMetadata:{avgBitrate:0,bitrate:0,framerate:0,height:0,width:0},live:!1,manifest:"",url:"",aspectRatio:""},h=function(){function t(t){this.XX(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.PZ();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,"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.PZ()},enumerable:!1,configurable:!0}),t.prototype.XX=function(t){this.Z$(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.PZ()+"://"+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.xZ(this.url))},t.prototype.Z$=function(t){try{(new o).validate(t,s.streamSchema,{throwError:!0})}catch(t){var i="Invalid stream config: "+t.property+" "+t.message;throw new Error(i)}},t.prototype.PZ=function(){var t="http",i=this.url.split(":");return i.length>1&&(t=i[0]),t},t.prototype.xZ=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=h},4926: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},4536:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(1279),r=n(4986),s=function(){function t(){this.UZ={},this.UH=[]}return t.prototype.destroy=function(){this.UZ={},this.UH=[]},t.prototype.register=function(t,i){if(r.isNullOrUndefined(t))throw new Error("Plugin instance is null");if(!this.VZ(t))throw new Error("Plugin interface is invalid or incomplete");if(this.getPlugin(t.type,t.mimetype))throw new Error("Plugin with same type and mimetype exists");this.UZ[t.type]||(this.UZ[t.type]=[]),this.UZ[t.type].push(t);try{t.prepare(i)}catch(t){}},Object.defineProperty(t.prototype,"defaultPlugins",{get:function(){return this.UH},set:function(t){this.UH=t},enumerable:!1,configurable:!0}),t.prototype.getExternalPlugins=function(){var t=this,i={},n=function(n){if(Object.prototype.hasOwnProperty.call(e.UZ,n)){var r=e.UZ[n].filter((function(i){return!function(i){return t.UH.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.UZ)n(r);return i},t.prototype.getPlugin=function(t,i){var n=this.UZ[t];if(!n)return null;for(var e=0,r=n;e<r.length;e++){var s=r[e];if(s&&s.mimetype===i)return s}return null},t.prototype.VZ=function(t){if(!t||r.isNullOrUndefined(t.mimetype)||!r.isString(t.mimetype)||r.isNullOrUndefined(t.type)||!this.BZ(t.type)||r.isNullOrUndefined(t.prepare)||!r.isFunction(t.prepare)||r.isNullOrUndefined(t.destroy)||!r.isFunction(t.destroy))return!1;switch(t.type){case e.PluginType.METADATA:return this.FZ(t);case e.PluginType.SOURCE_METADATA:return this.zZ(t);case e.PluginType.MORE_ITEMS:return this.GZ(t);case e.PluginType.AD:return r.isAdPlugin(t);case e.PluginType.VISUAL_SEEK:return this.HZ(t);case e.PluginType.BRANDING:return this.YZ(t);case e.PluginType.PLAYLIST:return this.qZ(t)}return!1},t.prototype.BZ=function(t){return[e.PluginType.METADATA,e.PluginType.SOURCE_METADATA,e.PluginType.MORE_ITEMS,e.PluginType.AD,e.PluginType.VISUAL_SEEK,e.PluginType.BRANDING,e.PluginType.PLAYLIST].indexOf(t)>-1},t.prototype.FZ=function(t){return!(!t||r.isNullOrUndefined(t.resolve)||!r.isFunction(t.resolve)||r.isNullOrUndefined(t.recover)||!r.isFunction(t.recover)||r.isNullOrUndefined(t.cancel)||!r.isFunction(t.cancel))},t.prototype.zZ=function(t){return!(!t||r.isNullOrUndefined(t.resolve)||!r.isFunction(t.resolve)||r.isNullOrUndefined(t.recover)||!r.isFunction(t.recover)||r.isNullOrUndefined(t.cancel)||!r.isFunction(t.cancel))},t.prototype.GZ=function(t){return!(!t||r.isNullOrUndefined(t.resolve)||!r.isFunction(t.resolve)||r.isNullOrUndefined(t.cancel)||!r.isFunction(t.cancel))},t.prototype.HZ=function(t){return!(!t||r.isNullOrUndefined(t.getThumbnailData)||r.isNullOrUndefined(t.update)||!r.isFunction(t.getThumbnailData)||!r.isFunction(t.update))},t.prototype.YZ=function(t){return!(!t||r.isNullOrUndefined(t.create)||!r.isFunction(t.create))},t.prototype.qZ=function(t){return!(!t||!r.isFunction(t.create))},t}();i.default=s},8087: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)});this&&this.__spreadArray;Object.defineProperty(i,"__esModule",{value:!0});var s,o=n(9451),u=n(3277),h=n(5658),a=n(1204),c=n(6342),f=n(4685);o.userAgent.mobile&&a.default.hasNativeAutoplaySupport&&(s=h.default.getPool());var l=0,v=function(t){function i(){var n=t.call(this,"external-renderer")||this;return n.type=i.type,n.timedOut=!1,n.WZ=c.default.noop,n}return r(i,t),i.canUse=function(){return!0},Object.defineProperty(i.prototype,"mimetype",{get:function(){var t;return null===(t=this.cV)||void 0===t?void 0:t.mimetype},enumerable:!1,configurable:!0}),i.prototype.create=function(t){this.node=t instanceof HTMLVideoElement?t:s?s.get():c.default.createVideoNode();var i=this.node;i.setAttribute("id","vp-ext-rndr-"+ ++l),c.default.classList(i).add("vp-html5-video");var n=this.container=document.createElement("div");return n.setAttribute("id",c.default.generateGuid()),c.default.classList(n).add("vp-external-video"),n.appendChild(i),n},i.prototype.getExternalPlayer=function(){return this.cV},i.prototype.setExternalPlayer=function(t){this.cV&&this.cV!==t&&this.QZ(),this.cV=t,this.$Z()},i.prototype.play=function(t){this.cV&&this.XZ&&this.cV.play(this.XZ.rawItemData)},i.prototype.preload=function(t){},i.prototype.setPlayableItem=function(t,i,n){return void 0===i&&(i=0),void 0===n&&(n=!1),!(!t||!this.cV)&&(this.ZZ=null,this.cV.preparePlayback(t.rawItemData,this.node,this.container),!this.ZZ&&(this.XZ=t,!0))},i.prototype.waitForReady=function(t){t&&t()},i.prototype.seek=function(t){var i;null===(i=this.cV)||void 0===i||i.seek(t)},i.prototype.pause=function(){var t;null===(t=this.cV)||void 0===t||t.pause()},i.prototype.skip=function(){var t;null===(t=this.cV)||void 0===t||t.skip()},i.prototype.getCurrentDate=function(){return null},i.prototype.getCurrentTime=function(){return this.cV?this.cV.getCurrentTime():0},i.prototype.getDuration=function(){return this.cV?this.cV.getDuration():0},i.prototype.getMuted=function(){var t;return!!(null===(t=this.cV)||void 0===t?void 0:t.isMuted())},i.prototype.getVolume=function(){return this.cV?this.cV.getVolume():NaN},i.prototype.setQuality=function(t){},i.prototype.setSeedStreamIndex=function(t){},i.prototype.setError=function(t){},i.prototype.setVolume=function(t){var i;null===(i=this.cV)||void 0===i||i.setVolume(t)},i.prototype.setMute=function(t){var i;null===(i=this.cV)||void 0===i||i.mute(t)},i.prototype.setAudioLanguage=function(t){},i.prototype.stopMedia=function(){return!!this.cV&&(this.cV.stop(),!0)},i.prototype.bindCustomEvents=function(){},i.prototype.destroy=function(){var t,i=this.container;null===(t=null==i?void 0:i.parentNode)||void 0===t||t.removeChild(i),this.cV&&(this.cV.unload(),this.QZ(),this.cV=null)},i.prototype.detachNode=function(){var t;null===(t=this.node)||void 0===t||t.pause()},i.prototype.reattachNode=function(){},i.prototype.setActive=function(t){this.JZ=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.$Z=function(){this.cV&&(this.WZ=u.listenEventDispatcherEvts(this.cV,Object.keys(f.ExternalPlayerEvent).map((function(t){return f.ExternalPlayerEvent[t]})),this.KZ.bind(this)))},i.prototype.QZ=function(){this.WZ(),this.WZ=c.default.noop},i.prototype.KZ=function(t,i){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];f.ExternalPlayerEvent.TIME_UPDATE;var r=this.cV;switch(i){case f.ExternalPlayerEvent.TIME_UPDATE:this.publish(f.RendererEvent.TIMEUPDATE,{currentTime:r.getCurrentTime(),duration:r.getDuration(),buffered:this.node.buffered});break;case f.ExternalPlayerEvent.PLAYBACK_ERROR:var s=n[0]||this.node.error;this.ZZ=s||{},this.publish(f.RendererEvent.ERROR,s);break;case f.ExternalPlayerEvent.ITEM_LOADED:this.publish(f.RendererEvent.LOADSTART);break;case f.ExternalPlayerEvent.MUTE_CHANGED:case f.ExternalPlayerEvent.VOLUME_CHANGED:this.publish(f.RendererEvent.VOLUMECHANGE,{volume:r.getVolume(),mute:r.isMuted()});break;case f.ExternalPlayerEvent.PLAY_REQUESTED:this.ended=!1;break;case f.ExternalPlayerEvent.PLAYING:this.paused=!1,this.ended=!1,this.publish(f.RendererEvent.PLAYING);break;case f.ExternalPlayerEvent.PAUSED:this.paused=!0,this.publish(f.RendererEvent.PAUSE);break;case f.ExternalPlayerEvent.PLAY_COMPLETE:this.ended=!0,this.publish(f.CustomRendererEvent.PLAY_COMPLETE,{evt:"ad_play_complete"}),this.publish(f.RendererEvent.ENDED);break;case f.ExternalPlayerEvent.SKIPPED:this.publish(f.CustomRendererEvent.SKIPPED)}},i.type=f.RendererType.EXTERNAL,i}(f.Renderer);i.default=v},5132: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,u=n(9451),h=n(3072),a=n(6389),c=n(1962),f=n(5658),l=n(2912),v=n(1204),d=n(6342),p=n(514),m=n(4685);v.default.hasTouchRestrictions&&(s=f.default.getPool()),function(t){t.INLINE="inline",t.PIP="picture-in-picture",t.FULLSCREEN="fullscreen"}(o||(o={}));var b=function(t){function i(n,e){var r=t.call(this,"html-renderer")||this;return r.type=i.type,r.tJ=!1,r.iJ={},r.$U=n,r.n_=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:s?s.get():d.default.createVideoNode(),this.node||(this.node=d.default.createVideoNode()),this.n_.preload||this.node.setAttribute("preload","metadata"),this.nJ()&&(this.node.controls=!0),this.node.setAttribute("id",d.default.generateGuid()),d.default.classList(this.node).add("vp-html5-video"),this.kV(),this.eJ(this.node),u.userAgent.mobile&&v.default.autoplayByUIEvtOnly&&this.n_.autoplay&&l.default&&(this.rJ=l.default.setupTouchToPlayRestrictionRemoval(this.node,(function(){i.rJ=null,i.$U.publish(c.TOUCH_TO_PLAY_RESTRICTION_REMOVED)}))),this.JZ=!1,this.node},i.prototype.destroy=function(){var t;this.sJ(),this.node&&(s&&s.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.rJ&&(this.rJ(),this.rJ=null),this.rE=null},i.prototype.detachNode=function(){var t;this.sJ(),(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.kV()},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(m.RendererEvent.LOADEDMETADATA,(function(){i.node&&(i.node.currentTime=t,i.removeEventListener(m.RendererEvent.LOADEDMETADATA,n))}),this)}},i.prototype.setActive=function(t){this.JZ=t},i.prototype.setMute=function(t){this.node&&"boolean"==typeof t&&(u.userAgent.mobile&&v.default.autoplaySupported&&l.default?l.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.rE=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){t()},i.prototype.reportError=function(t,i,n,e,r){var s=d.default.createErr(t,this.aY,i,n,e,r),o=i===a.E_INFO?m.RendererEvent.INFO:m.RendererEvent.ERROR;this.publish(o,s)},i.prototype.enableMobileNativeCC=function(t){if(this.node){var i=document.createDocumentFragment();this.oJ(),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;u.userAgent.safari&&n.webkitSupportsPresentationMode&&(n.onwebkitpresentationmodechanged=function(){if(t||n.webkitPresentationMode!==o.PIP||setTimeout((function(){n.webkitSetPresentationMode(o.INLINE)}),100),i.publish(m.CustomRendererEvent.PIP_MODE_CHANGED,n.webkitPresentationMode),n.webkitPresentationMode===o.INLINE){i.node.removeEventListener("webkitendfullscreen",(function(){i.publish(m.CustomRendererEvent.END_FULLSCREEN)})),i.publish(m.CustomRendererEvent.END_FULLSCREEN)}})},i.prototype.kV=function(){var t=this;if(this.node){this.uJ=function(i){if(!t.ended){var n=i.type,e=m.RendererEvent[n.toUpperCase()];n===m.NativeVideoEvent.PLAYING&&t.node.paused||(n===m.NativeVideoEvent.VOLUMECHANGE&&t.publish(m.RendererEvent.VOLUMECHANGE,{volume:t.node.volume,mute:t.node.muted}),u.userAgent.iosWebView&&n===m.NativeVideoEvent.PAUSE&&t.hJ(),t.VF(n,e))}}.bind(this),Object.keys(m.NativeVideoEvent).forEach((function(i){t.node.addEventListener(m.NativeVideoEvent[i],t.uJ)})),u.userAgent.iphone&&!v.default.canPlayInline||(this.aJ=new p.default(this.node,(function(){t.publish(m.CustomRendererEvent.CLICK)}))),u.userAgent.safari>=8&&this.cJ(),u.userAgent.ios&&this.fJ(),v.default.airplaySupported&&this.n_.casting&&this.lJ(),this.dp={},this.dp[c.FULLSCREEN_CHANGE]=this.$U.addEventListener(c.FULLSCREEN_CHANGE,(function(){t.node&&t.$U.publish(c.PLAYER_RESIZE,t.node.clientWidth,t.node.clientHeight)}),this)}},i.prototype.vJ=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.oJ=function(){if(this.node)for(var t=this.node.querySelectorAll("track"),i=0;i<t.length;i++)this.node.removeChild(t[i])},i.prototype.dJ=function(t){var i=a.PLAYER_CODES.E_NATIVE_ERROR;if(!(t&&t instanceof MediaError))return i;switch(t.code){case MediaError.MEDIA_ERR_ABORTED:return a.PLAYER_CODES.E_NATIVE_ABORTED;case MediaError.MEDIA_ERR_NETWORK:return a.PLAYER_CODES.E_NATIVE_NETWORK_FAILURE;case MediaError.MEDIA_ERR_DECODE:return a.PLAYER_CODES.E_NATIVE_DECODE_ERROR;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:return a.PLAYER_CODES.E_NATIVE_SRC_NOT_SUPPORTED}return i},i.prototype.lJ=function(){var t=this;if(v.default.airplaySupported&&this.node){var i=function(i){t.$U.publish(h.ExternalEvt.AIRPLAY_AVAILABILITY_CHANGE,"available"===i.availability)},n=function(){t.$U.publish(h.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,{connected:t.isAirplaying(),isInitialEvt:!t.pJ}),t.pJ||(t.pJ=!0)};this.node.addEventListener("webkitplaybacktargetavailabilitychanged",i),this.node.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",n),this.mJ=function(){t.node&&(t.node.removeEventListener("webkitplaybacktargetavailabilitychanged",i),t.node.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",n))}}},i.prototype.cJ=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.$U.publish(c.TIMED_METADATA_RECEIVED,o),i.bJ(r)}));else if(("subtitles"===n.kind||"captions"===n.kind)&&i.tJ){var e={itemId:i.XZ.id,track:n};i.publish(m.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.yJ=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.fJ=function(){var t=this;if(this.node){var i=function(){t.publish(m.CustomRendererEvent.END_FULLSCREEN)};this.node.addEventListener("webkitendfullscreen",i),this.gJ=function(){t.gJ=null,t.node.removeEventListener("webkitendfullscreen",i)};var n=function(){t.publish(m.CustomRendererEvent.ENTER_FULLSCREEN)};this.node.addEventListener("webkitbeginfullscreen",n),this.wJ=function(){t.wJ=null,t.node.removeEventListener("webkitbeginfullscreen",n)}}},i.prototype.sJ=function(){var t=this;this.yJ&&this.yJ(),this.gJ&&this.gJ(),this.wJ&&this.wJ(),this.mJ&&this.mJ(),Object.keys(m.NativeVideoEvent).forEach((function(i){var n;null===(n=t.node)||void 0===n||n.removeEventListener(m.NativeVideoEvent[i],t.uJ)})),this.aJ&&(this.aJ.destroy(),this.aJ=null),this.$U.removeEventListeners(this.dp)},Object.defineProperty(i.prototype,"pG",{get:function(){return this.n_.playlist},enumerable:!1,configurable:!0}),i.prototype.DW=function(){return this.pG.getCurrentItem()},Object.defineProperty(i.prototype,"aY",{get:function(){return this.n_.playbackState},enumerable:!1,configurable:!0}),i.prototype.bJ=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 h=null;try{h=JSON.parse(u)}catch(t){continue}var a=h.dr_start_date||h.startDate,c=null===(n=new Date(a))||void 0===n?void 0:n.getTime(),f=h.dr_id||h.id;if(0===Object.keys(h).length||!f||!c)continue;var l=f+"-"+c;if(this.iJ[l])continue;var v=h.dr_end_date||h.endDate,d=new Date(v).getTime(),p=h.dr_duration||h.duration,m=void 0;p?m=new Date(p).getTime():d&&(m=d-c),m&&!d&&(d=1e3*m+c);var b={startDate:c,endDate:d,duration:m,id:f,rawData:u,jsonData:h,className:h.dr_class||h.class||""};e=!0,this.iJ[l]=b}}e&&this._J(this.iJ)},i.prototype.eJ=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(m.CustomRendererEvent.PLAYBACK_START_NOT_BLOCKED)}),(function(n){t.paused&&i.publish(m.CustomRendererEvent.PLAYBACK_START_BLOCKED)})),n})},i.prototype.hJ=function(){if(this.node){var t=this.node;!this.nJ()&&t.controls&&(t.controls=!1)}},i.prototype.nJ=function(){return this.n_.showControls&&!v.default.canPlayInline},i.type=m.RendererType.HTML5_RAW,i}(m.Renderer);i.default=b},8259: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(9451),u=n(1962),h=n(4685),a=n(2878),c=n(6342),f=n(43),l=n(3891),v=16/9,d=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!o.userAgent.tv&&(a.default.is360Supported()&&t.canUse.call(this))},i.prototype.create=function(i){return t.prototype.create.call(this,i),this.EJ(),this.container},i.prototype.destroy=function(){this.OJ(),t.prototype.destroy.call(this)},i.prototype.waitForReady=function(t){var i=this;this.qU?(this.AJ(),t()):this.SJ=this.$U.addEventListener(u.THREE_SIXTY_READY,(function(){i.AJ(),t()}),this)},i.prototype.EJ=function(){var t=this;this.qU=!1,this.node&&(this.node.setAttribute("crossorigin","anonymous"),this.node.style.visibility="hidden",this.TJ=document.createElement("div"),this.TJ.classList.add("vp-360-node"),this.TJ.style.position="absolute",this.container=document.createElement("div"),this.container.setAttribute("id",c.default.generateGuid()),this.container.classList.add("vp-360-video"),this.container.appendChild(this.node),this.container.appendChild(this.TJ),this.jJ().then((function(){t.IJ()})).catch((function(t){})))},i.prototype._J=function(t){},i.prototype.jJ=function(){return new Promise((function(t,i){n.e(232).then(function(){s=n(5232),t(s)}.bind(null,n)).catch((function(t){i(t)}))}))},i.prototype.IJ=function(){this.MJ=new s.PerspectiveCamera(70,v,.01,1e3),this.MJ.target=new s.Vector3(0,0,0);var t=new s.SphereBufferGeometry(500,64,32);t.scale(-1,1,1);var i=new s.VideoTexture(this.node);i.minFilter=s.NearestFilter;var n=new s.MeshBasicMaterial({map:i}),e=new s.Mesh(t,n);this.NJ=new s.Scene,this.NJ.add(e),this.RJ=new s.WebGLRenderer,this.RJ.setPixelRatio(window.devicePixelRatio),this.TJ&&this.TJ.appendChild(this.RJ.domElement),this.kJ=new f.default(this.container),this.LJ=0,this.DJ=0,this.CJ=!0,this.PJ(),this.qU=!0,this.$U.publish(u.THREE_SIXTY_READY)},i.prototype.PJ=function(){var t,i=this;this.xJ=this.UJ.bind(this),this.VJ=this.BJ.bind(this),this.FJ=this.zJ.bind(this),this.GJ=this.HJ.bind(this),this.YJ=this.qJ.bind(this),this.yQ=this.nO.bind(this),this.container&&(this.container.addEventListener("mousedown",this.xJ,!1),this.container.addEventListener("mousemove",this.VJ,!1),this.container.addEventListener("mouseup",this.FJ,!1),this.container.addEventListener("mouseover",this.GJ,!1),this.container.addEventListener("mouseout",this.YJ,!1),this.container.addEventListener("resize",this.yQ,!1)),this.sW=this.XE.bind(this),this.WJ=this.$E.bind(this),this.QJ=this.JE.bind(this),this.node&&(this.node.addEventListener("pause",this.sW),this.node.addEventListener("playing",this.WJ),this.node.addEventListener("seeked",this.QJ)),null===(t=this.kJ)||void 0===t||t.addClickListener(this.$J.bind(this)),this.XJ={},this.XJ[u.PLAYER_RESIZE]=this.$U.addEventListener(u.PLAYER_RESIZE,(function(t,n){window.setTimeout((function(){i.ZJ&&(t=window.screen.width,n=window.screen.height),i.JJ(t,n)}),1)}),this),this.XJ[u.FULLSCREEN_CHANGE]=this.$U.addEventListener(u.FULLSCREEN_CHANGE,(function(t){i.ZJ=!!t}),this),this.XJ[u.PLAYER_DIMENSION_CHANGE]=this.$U.addEventListener(u.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.JJ(n,e))}),this)},i.prototype.$J=function(){var t;this.LJ=0,this.DJ=0,this.SE(),null===(t=this.kJ)||void 0===t||t.update(this.LJ),this.$U.publish(u.THREE_SIXTY_PIE_INTERACT)},i.prototype.KJ=function(){var t,i,n,e,r,s,o,h,a,c=this;this.XJ&&Object.keys(this.XJ).forEach((function(t){c.$U.removeEventListener(t,c.XJ[t])})),this.xJ&&(null===(t=this.container)||void 0===t||t.removeEventListener("mousedown",this.xJ,!1),this.xJ=null),this.VJ&&(null===(i=this.container)||void 0===i||i.removeEventListener("mousemove",this.VJ,!1),this.VJ=null),this.FJ&&(null===(n=this.container)||void 0===n||n.removeEventListener("mouseup",this.FJ,!1),this.FJ=null),this.GJ&&(null===(e=this.container)||void 0===e||e.removeEventListener("mouseover",this.GJ,!1),this.GJ=null),this.yQ&&(null===(r=this.container)||void 0===r||r.removeEventListener("resize",this.yQ,!1),this.yQ=null),this.YJ&&(null===(s=this.container)||void 0===s||s.removeEventListener("mouseout",this.YJ,!1),this.YJ=null),this.sW&&(null===(o=this.node)||void 0===o||o.removeEventListener("pause",this.sW),this.sW=null),this.WJ&&(null===(h=this.node)||void 0===h||h.removeEventListener("playing",this.WJ),this.WJ=null),this.QJ&&(null===(a=this.node)||void 0===a||a.removeEventListener("seeked",this.QJ),this.QJ=null),this.SJ&&(this.$U.removeEventListener(u.THREE_SIXTY_READY,this.SJ),this.SJ=null)},i.prototype.tK=function(){var t,i;this.iK=!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.nK&&(this.nK=!1,this.CJ=!0)},i.prototype.JJ=function(t,i){var n,e,r,s=t,o=i;i*v>t&&(o=t/v),null===(n=this.MJ)||void 0===n||n.setViewOffset(t,i,t-s,i-o,s,o),null===(e=this.MJ)||void 0===e||e.updateProjectionMatrix(),null===(r=this.RJ)||void 0===r||r.setSize(t,i)},i.prototype.eK=function(){var t=this.eK.bind(this);if(this.CJ&&this.rK)return window.cancelAnimationFrame(this.rK),void(this.rK=null);this.rK=window.requestAnimationFrame(t),this.SE()},i.prototype.SE=function(){this.DJ=Math.max(-85,Math.min(85,this.DJ));var t=s.Math.degToRad(90+this.DJ),i=s.Math.degToRad(this.LJ);this.MJ&&(this.MJ.position.x=500*Math.sin(t)*Math.cos(i),this.MJ.position.y=500*Math.cos(t),this.MJ.position.z=500*Math.sin(t)*Math.sin(i),this.MJ.lookAt(this.MJ.target),this.MJ.position.copy(this.MJ.target).negate(),this.NJ&&this.RJ&&this.RJ.render(this.NJ,this.MJ))},i.prototype.OJ=function(){var t,i;this.rK&&window.cancelAnimationFrame(this.rK),this.CJ=!0,this.KJ(),this.kJ&&(this.kJ.destroy(),this.kJ=null),this.TJ&&(this.TJ.parentNode&&this.TJ.parentNode.removeChild(this.TJ),this.TJ=null),null===(i=null===(t=this.container)||void 0===t?void 0:t.parentNode)||void 0===i||i.removeChild(this.container),this.MJ=null,this.NJ=null,this.RJ=null},i.prototype.XE=function(){this.sK=!0,this.CJ=!0},i.prototype.$E=function(){this.sK=!1,this.CJ=!1,this.eK()},i.prototype.JE=function(){this.SE()},i.prototype.HJ=function(){var t;null===(t=this.container)||void 0===t||t.classList.add("over-360")},i.prototype.UJ=function(t){var i,n;this.oK=!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.iK=!0,this.uK=t.clientX,this.hK=t.clientY,this.aK=this.LJ,this.cK=this.DJ},i.prototype.BJ=function(t){var i;this.iK&&(this.sK&&!this.nK&&(this.nK=!0,this.CJ=!1,this.eK()),this.oK=!0,this.LJ=.1*(this.uK-t.clientX)+this.aK,this.DJ=.1*(t.clientY-this.hK)+this.cK,null===(i=this.kJ)||void 0===i||i.update(this.LJ))},i.prototype.zJ=function(){this.iK&&(this.tK(),this.oK?this.$U.publish(u.THREE_SIXTY_INTERACT):this.$U.publish(u.TOGGLE_PLAY_PAUSE)),this.oK=!1},i.prototype.qJ=function(){this.tK()},i.prototype.nO=function(){this.container&&this.JJ(this.container.offsetWidth,this.container.offsetHeight)},i.prototype.AJ=function(){this.SJ&&(this.$U.removeEventListener(u.THREE_SIXTY_READY,this.SJ),this.SJ=null),!this.fK&&this.RJ&&this.container&&(this.RJ.setSize(this.container.offsetWidth,this.container.offsetHeight),this.fK=!0)},i.type=h.RendererType.HTML5_HLS_360,i}(l.default);i.default=d},3891: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(1842),o=n(9451),u=n(3072),h=n(954),a=n(6389),c=n(1962),f=n(1962),l=n(440),v=n(4685),d=n(2878),p=n(4986),m=n(6342),b=function(t){function i(n,e){var r=t.call(this,n,e)||this;return r.type=i.type,r.lK(),r}return r(i,t),i.canUse=function(){return d.default.useHtml5MseDefault()&&d.default.isHtml5MseAvailable()},i.prototype.create=function(i){this.node=t.prototype.create.call(this,i);var n=this.vK();return this.dK=new s(this.node,n),this.node},i.prototype.play=function(t){void 0===t&&(t=0),this.ended=!1,this.seeking=!1,this.$U.publish(c.PROFILE_START,f.METRICS.STREAM_PLAY_TO_RENDER),this.dK.play(t)},i.prototype.pause=function(){this.dK.pause()},i.prototype.preload=function(t){!t||p.isNumber(t.startOffset)&&t.startOffset>0||this.dK.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.lK(),this.ZL=m.default.getPlaybackMode(t);var r,s=t.isLive(),u=t.streamProfiles;if(u&&u.length||(u=t.streams),!u)return!1;var h=[];if(u.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,h.push(t),e.pK="hls"):(null===(n=null==t?void 0:t.format)||void 0===n?void 0:n.indexOf("mpd"))>=0&&(r=t.url,e.pK="dash")})),"hls"===this.pK){var d=[];if(t.altStreams&&(t.altStreams=this.mK(t.altStreams),t.altStreams.forEach((function(t){d.push(t)}))),this.$U.publish(c.PROFILE_START,f.METRICS.STREAM_REQUEST_TO_RENDER),this.ZL===v.PlaybackMode.VIDEO&&this.$U.publish(c.PROFILE_START,f.METRICS.LOAD_TO_LOADED_DATA),h.length>0)return this.dK.setSrc({streams:h,altStreams:d,sessionId:t.videoSession,contentId:t.id,cdn:t instanceof l.default?t.getCDN():"",currLang:t&&t.getCurrLanguage(),is360:t.is360Video(),live:s,skt:t instanceof l.default?t.skt:"",syncPoint:t.syncPoint}),this.XZ=t,!0}else if("dash"===this.pK){if(59===o.userAgent.firefox){var p=m.default.createErr(a.ErrorGroup.Streaming,this.aY,a.E_PLAYER_JS_HLS,a.PLAYER_JS_HLS_CODES.MEDIA_ERR_DECODE);return this.publish(v.RendererEvent.ERROR,p),!1}if(null!==r)return this.dK.setSrc({url:r,sessionId:t.videoSession,contentId:t.id,cdn:t instanceof l.default?t.getCDN():"",currLang:t&&t.getCurrLanguage(),is360:t.is360Video(),live:s}),this.XZ=t,!0}return!1},i.prototype.waitForReady=function(t){t()},i.prototype.getCurrentDate=function(){return this.dK.getCurrentDate()},i.prototype.setQuality=function(t){this.dK.setQuality(t)},i.prototype.setSeedStreamIndex=function(t){this.dK.setSeedStreamIndex(t)},i.prototype.setAudioLanguage=function(t){this.dK.setAudioLanguage(t)},i.prototype.stopMedia=function(){this.dK.unload()},i.prototype.bindCustomEvents=function(){var t=this;if(this.node){this.unbindCustomEvents();this.bK=function(i){var n=i.type;t.yK(n,i)}.bind(this),Object.keys(f.HLSVideoEvent).forEach((function(i){t.node&&t.node.addEventListener(f.HLSVideoEvent[i],t.bK)}))}},i.prototype.unbindCustomEvents=function(){var t=this;this.node&&Object.keys(f.HLSVideoEvent).forEach((function(i){t.node&&t.node.removeEventListener(f.HLSVideoEvent[i],t.bK)}))},i.prototype.bindPlaybackEvents=function(){},i.prototype.unbindPlaybackEvents=function(){},i.prototype.suspendStreaming=function(){var t;null===(t=this.dK)||void 0===t||t.suspendStreaming()},i.prototype.resumeStreaming=function(){var t;null===(t=this.dK)||void 0===t||t.resumeStreaming()},i.prototype.getSyncOffset=function(){return this.dK?this.dK.getSyncOffset():NaN},i.prototype.startSync=function(){var t;null===(t=this.dK)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.dK)||void 0===t||t.stopSync()},i.prototype.setPlaybackRate=function(t){var i;this.node.playbackRate!==t&&(null===(i=this.dK)||void 0===i||i.setPlaybackRate(t))},i.prototype.getSyncState=function(){return this.dK?this.dK.getSyncState():-1},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.dK&&this.dK.destroy()},i.prototype.kV=function(){t.prototype.kV.call(this),this.bindCustomEvents()},i.prototype.sJ=function(){t.prototype.sJ.call(this),this.unbindCustomEvents()},i.prototype._J=function(t){},i.prototype.VF=function(t,i){switch(t===v.NativeVideoEvent.PLAYING&&this.$U.publish(c.PROFILE_END,[f.METRICS.STREAM_PLAY_TO_RENDER,f.METRICS.STREAM_REQUEST_TO_RENDER]),t){case v.NativeVideoEvent.SEEKING:case v.NativeVideoEvent.SEEKED:this.node&&this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered});break;case v.NativeVideoEvent.ERROR:if(!this.node)return;var n=this.node.error,e=this.dK.error||{},r=void 0,s=void 0;p.isNumber(e.code)?(r=e.code.toString(),s=e.message):(r=n.code.toString(),s=n.message);var o=m.default.createErr(a.ErrorGroup.Streaming,this.aY,a.E_PLAYER_JS_HLS,r,null,s);this.gK(o),this.publish(v.RendererEvent.ERROR,o);break;case v.NativeVideoEvent.ENDED:if(this.ended=!0,!this.DW())return;this.publish(i);break;case v.NativeVideoEvent.PAUSE:if(this.ended)break;if(this.seeking)break;this.publish(i);break;case v.NativeVideoEvent.PLAY:this.wK=!1,this.publish(i);break;case v.NativeVideoEvent.PLAYING:this.wK=!0,this.publish(i);break;case v.NativeVideoEvent.TIMEUPDATE:if(!this.node)return;this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.wK||(this.wK=!0,this.publish(v.RendererEvent.PLAYING));break;case v.NativeVideoEvent.LOADEDDATA:this.$U.publish(c.PROFILE_END,f.METRICS.LOAD_TO_LOADED_DATA),this.publish(i);break;case v.NativeVideoEvent.WAITING:case v.NativeVideoEvent.VOLUMECHANGE:break;default:this.publish(i)}},i.prototype.yK=function(t,i){var n,e;switch(t){case f.HLSVideoEvent.INFO_UPDATE:if(this.JZ){var r=i.detail.mediaInfo,s=r.currentStreamBitrate;0===this.n_.bitrate&&s>0&&this.$U.publish(u.ExternalEvt.BITRATE_CHANGE,s,{}),r.drmsys&&r.drm&&(this.n_.isDrmAvailable=r.drm,this.n_.drmSystem=r.drmsys),this.$U.publish(c.PLAYBACK_INFO,r)}break;case f.HLSVideoEvent.STREAM_SWITCHED:var o=i.detail.bitrate,l={reason:i.detail.reason,oldFrameRate:i.detail.oldFrameRate,newFrameRate:i.detail.newFrameRate};this.$U.publish(u.ExternalEvt.BITRATE_CHANGE,o,l);break;case f.HLSVideoEvent.HLS_WAITING:p.isNullOrUndefined(null===(n=null==i?void 0:i.detail)||void 0===n?void 0:n.bufferInit)||this.publish(v.RendererEvent.WAITING,{value:i.detail.value,ignoreBuffering:i.detail.bufferInit});break;case f.HLSVideoEvent.SEGMENT_FIRST_BYTE_LOADED:this.$U.publish(c.SEGMENT_FIRST_BYTE_LOADED,i.detail);break;case f.HLSVideoEvent.SEGMENT_RENDERED:var d=this.dK.getSegInfo();(null==d?void 0:d.segInfo)&&this._K(d);break;case f.HLSVideoEvent.VTT_SEGMENT_LOADED:var b=this.n_?this.pG:null;if(i.detail&&b){var y=void 0;if(this.aY.ad)y=this.XZ.id;else{var g=b.getMediaItemBySessionId(i.detail.sessionId);y=g?g.id:null}i.detail.itemId=y}this.$U.publish(c.VTT_SEGMENT_LOADED,i.detail);break;case f.HLSVideoEvent.LIVE_LOADING_LATE:this.$U.publish(c.LIVE_LOADING_LATE);break;case f.HLSVideoEvent.STREAM_UPDATED:this.$U.publish(c.MEDIA_PLAYLIST_UPDATED);break;case f.HLSVideoEvent.CUEPOINT_DETECTED:this.$U.publish(u.ExternalEvt.CUEPOINT_DETECTED,i.detail.cuepointDuration,i.detail.timeGapBeforeCUEOUT);break;case f.HLSVideoEvent.CUEPOINT_STARTED:this.$U.publish(u.ExternalEvt.CUEPOINT_STARTED,i.detail.cuepointDuration,i.detail.cuepointPlayedTime);break;case f.HLSVideoEvent.SUBTITLE_STREAM_UPDATED:this.$U.publish(c.SUBTITLE_PLAYLIST_UPDATED);break;case f.HLSVideoEvent.PRELOAD_PROGRESS:this.$U.publish(c.PROFILE_END,f.METRICS.STREAM_REQUEST_TO_RENDER),this.$U.publish(c.PRELOAD_PROGRESS);break;case f.HLSVideoEvent.SEGINFO_METRICS_AVAILABLE:this._K(i.detail);break;case f.HLSVideoEvent.CONTENT_LOAD_FINISHED:this.$U.publish(c.CONTENT_LOAD_FINISHED,i.detail);break;case f.HLSVideoEvent.PRELOAD_START:this.$U.publish(c.PRELOAD_START);break;case f.HLSVideoEvent.PRELOAD_COMPLETE:this.$U.publish(c.PRELOAD_COMPLETE);break;case f.HLSVideoEvent.BUFFER_GROWTH_DETECTED:this.$U.publish(c.BUFFER_GROWTH_DETECTED,i.detail);break;case f.HLSVideoEvent.CC_VTT_AVAILABLE:null==(e=this.pG.getMediaItemBySessionId(i.detail.sessionId))||e.setCCAvailability(!0);break;case f.HLSVideoEvent.MULTI_LANGUAGES_AVAILABLE:null==(e=this.pG.getMediaItemBySessionId(i.detail.sessionId))||e.setMultiLanguages(i.detail.languages),this.$U.publish(c.MULTI_LANGUAGES_AVAILABLE);break;case f.HLSVideoEvent.MEDIA_METADATA_LOADED:var w=this.n_.bitrates,_=this.n_.heights;this.n_.bitrates=(null==w?void 0:w.length)?w:i.detail.map((function(t){return t.bitrate/1e3})),this.n_.heights=(null==_?void 0:_.length)?_:i.detail.map((function(t){return t.height}));break;case f.HLSVideoEvent.TIMED_METADATA_READY:var E=m.default.extractID3Data(i.detail.data);if(E){var O=m.default.detectRegexPattern(h.ID3_MATCH_PATTERN.JSON,E);if(O)try{E=JSON.parse(O)}catch(t){}this.$U.publish(c.TIMED_METADATA_RECEIVED,E)}break;case f.HLSVideoEvent.BUFFER_GAP_DETECTED:var A=m.default.createErr(a.ErrorGroup.Streaming,this.aY,a.E_WARNING,a.WARNING_CODES.E_BUFFER_GAP);this.$U.publish(c.WARNING,A,{shouldRenderErrorScreen:!0});break;case f.HLSVideoEvent.DATERANGE_STARTED:this.publish(v.RendererEvent.DATERANGE_STARTED,i.detail);break;case f.HLSVideoEvent.DATERANGE_ENDED:this.publish(v.RendererEvent.DATERANGE_ENDED,i.detail);break;case f.HLSVideoEvent.STREAM_SYNCH_STRATEGY_APPLIED:this.$U.publish(c.STREAM_SYNCH_STRATEGY_APPLIED,i.detail);break;case f.HLSVideoEvent.STREAM_SYNCH_COMPLETE:this.$U.publish(c.STREAM_SYNCH_COMPLETE,i.detail)}},i.prototype.gK=function(t){switch(t.subcategory){case a.PLAYER_JS_HLS_CODES.ERR_DRM_EME_MISSING:t.category=a.E_PLAYER_DRM,t.subcategory=a.PLAYER_DRM_CODES.E_EME_MISSING;break;case a.PLAYER_JS_HLS_CODES.ERR_DRM_INIT:t.category=a.E_PLAYER_DRM,t.subcategory=a.PLAYER_DRM_CODES.E_INIT;break;case a.PLAYER_JS_HLS_CODES.ERR_DRM_CONFIG:t.category=a.E_PLAYER_DRM,t.subcategory=a.PLAYER_DRM_CODES.E_CONFIG;break;case a.PLAYER_JS_HLS_CODES.ERR_DRM_LICENSE_REQUEST:t.category=a.E_PLAYER_DRM,t.subcategory=a.PLAYER_DRM_CODES.E_LICENSE_REQUEST}},i.prototype.vK=function(){var t;return this.EK=!1,{useWorker:!0,sendAbrAnalytics:this.EK,stopBufferingOnPause:this.n_.stopBufferingOnPause,dimensions:{width:this.n_.uiState.width,height:this.n_.uiState.height},streamSync:{enabled:(null===(t=this.n_.config.streamSync)||void 0===t?void 0:t.enabled)||!1}}},i.prototype.AK=function(){var t=document.getElementsByClassName(h.VIDEO_MAIN_ELEMENT_CLASS);return!m.default.isPlayerInBackground()&&(null==t?void 0:t.length)>0&&0!==m.default.getElementViewability(t[0])},i.prototype.mK=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._K=function(t){var i=t.segInfo,n=t.sessionId,e=this.AK();i.forEach((function(t){t.vis=e})),this.$U.publish(c.SEG_INFO_AVAILABLE,{val:i,session:n,bufferLen:t.bufferLen})},i.prototype.lK=function(){this.XZ=null,this.pK=null,this.ZL=v.PlaybackMode.VIDEO,this.wK=!0,this.seeking=!1,this.ended=!1},i.type=v.RendererType.HTML5_HLS,i}(n(5132).default);i.default=b},6125: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(9451),u=n(1962),h=n(4685),a=n(2878),c=n(6342),f=n(43),l=n(8696),v=16/9,d=function(t){function i(n,e){var r=t.call(this,n,e)||this;return r.type=i.type,r.GX=e.capabilities[h.RendererType.HTML5_RAW_360],r}return r(i,t),i.canUse=function(){return!o.userAgent.tv&&(a.default.is360Supported()&&t.canUse.call(this))},i.prototype.create=function(i){return t.prototype.create.call(this,i),this.EJ(),this.container},i.prototype.destroy=function(){this.OJ(),t.prototype.destroy.call(this)},i.prototype.waitForReady=function(t){var i=this;this.qU?(this.AJ(),t()):this.SJ=this.$U.addEventListener(u.THREE_SIXTY_READY,(function(){i.AJ(),t()}),this)},i.prototype.EJ=function(){var t=this;this.qU=!1,this.node&&(this.node.setAttribute("crossorigin","anonymous"),this.node.style.visibility="hidden",this.TJ=document.createElement("div"),this.TJ.classList.add("vp-360-node"),this.TJ.style.position="absolute",this.container=document.createElement("div"),this.container.setAttribute("id",c.default.generateGuid()),this.container.classList.add("vp-360-video"),this.container.appendChild(this.node),this.container.appendChild(this.TJ),this.jJ().then((function(){t.IJ()})).catch((function(t){})))},i.prototype.jJ=function(){return new Promise((function(t,i){n.e(232).then(function(){s=n(5232),t(s)}.bind(null,n)).catch((function(t){i(t)}))}))},i.prototype.IJ=function(){this.MJ=new s.PerspectiveCamera(70,v,.01,1e3),this.MJ.target=new s.Vector3(0,0,0);var t=new s.SphereBufferGeometry(500,64,32);t.scale(-1,1,1);var i=new s.VideoTexture(this.node);i.minFilter=s.NearestFilter;var n=new s.MeshBasicMaterial({map:i}),e=new s.Mesh(t,n);this.NJ=new s.Scene,this.NJ.add(e),this.RJ=new s.WebGLRenderer,this.RJ.setPixelRatio(window.devicePixelRatio),this.TJ&&this.TJ.appendChild(this.RJ.domElement),this.kJ=new f.default(this.container),this.LJ=0,this.DJ=0,this.CJ=!0,this.PJ(),this.qU=!0,this.$U.publish(u.THREE_SIXTY_READY)},i.prototype.PJ=function(){var t,i=this;this.xJ=this.UJ.bind(this),this.VJ=this.BJ.bind(this),this.FJ=this.zJ.bind(this),this.GJ=this.HJ.bind(this),this.YJ=this.qJ.bind(this),this.yQ=this.nO.bind(this),this.container&&(this.container.addEventListener("mousedown",this.xJ,!1),this.container.addEventListener("mousemove",this.VJ,!1),this.container.addEventListener("mouseup",this.FJ,!1),this.container.addEventListener("mouseover",this.GJ,!1),this.container.addEventListener("mouseout",this.YJ,!1),this.container.addEventListener("resize",this.yQ,!1)),this.sW=this.XE.bind(this),this.WJ=this.$E.bind(this),this.QJ=this.JE.bind(this),this.node&&(this.node.addEventListener("pause",this.sW),this.node.addEventListener("playing",this.WJ),this.node.addEventListener("seeked",this.QJ)),null===(t=this.kJ)||void 0===t||t.addClickListener(this.$J.bind(this)),this.XJ={},this.XJ[u.PLAYER_RESIZE]=this.$U.addEventListener(u.PLAYER_RESIZE,(function(t,n){window.setTimeout((function(){i.ZJ&&(t=window.screen.width,n=window.screen.height),i.JJ(t,n)}),1)}),this),this.XJ[u.FULLSCREEN_CHANGE]=this.$U.addEventListener(u.FULLSCREEN_CHANGE,(function(t){i.ZJ=!!t}),this),this.XJ[u.PLAYER_DIMENSION_CHANGE]=this.$U.addEventListener(u.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.JJ(n,e))}),this)},i.prototype.$J=function(){var t;this.LJ=0,this.DJ=0,this.SE(),null===(t=this.kJ)||void 0===t||t.update(this.LJ),this.$U.publish(u.THREE_SIXTY_PIE_INTERACT)},i.prototype.KJ=function(){var t,i,n,e,r,s,o,h,a,c=this;this.XJ&&Object.keys(this.XJ).forEach((function(t){c.$U.removeEventListener(t,c.XJ[t])})),this.xJ&&(null===(t=this.container)||void 0===t||t.removeEventListener("mousedown",this.xJ,!1),this.xJ=null),this.VJ&&(null===(i=this.container)||void 0===i||i.removeEventListener("mousemove",this.VJ,!1),this.VJ=null),this.FJ&&(null===(n=this.container)||void 0===n||n.removeEventListener("mouseup",this.FJ,!1),this.FJ=null),this.GJ&&(null===(e=this.container)||void 0===e||e.removeEventListener("mouseover",this.GJ,!1),this.GJ=null),this.yQ&&(null===(r=this.container)||void 0===r||r.removeEventListener("resize",this.yQ,!1),this.yQ=null),this.YJ&&(null===(s=this.container)||void 0===s||s.removeEventListener("mouseout",this.YJ,!1),this.YJ=null),this.sW&&(null===(o=this.node)||void 0===o||o.removeEventListener("pause",this.sW),this.sW=null),this.WJ&&(null===(h=this.node)||void 0===h||h.removeEventListener("playing",this.WJ),this.WJ=null),this.QJ&&(null===(a=this.node)||void 0===a||a.removeEventListener("seeked",this.QJ),this.QJ=null),this.SJ&&(this.$U.removeEventListener(u.THREE_SIXTY_READY,this.SJ),this.SJ=null)},i.prototype.tK=function(){var t,i;this.iK=!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.nK&&(this.nK=!1,this.CJ=!0)},i.prototype.JJ=function(t,i){var n,e,r,s=t,o=i;i*v>t&&(o=t/v),null===(n=this.MJ)||void 0===n||n.setViewOffset(t,i,t-s,i-o,s,o),null===(e=this.MJ)||void 0===e||e.updateProjectionMatrix(),null===(r=this.RJ)||void 0===r||r.setSize(t,i)},i.prototype.eK=function(){var t=this.eK.bind(this);if(this.CJ&&this.rK)return window.cancelAnimationFrame(this.rK),void(this.rK=null);this.rK=window.requestAnimationFrame(t),this.SE()},i.prototype.SE=function(){this.DJ=Math.max(-85,Math.min(85,this.DJ));var t=s.Math.degToRad(90+this.DJ),i=s.Math.degToRad(this.LJ);this.MJ&&(this.MJ.position.x=500*Math.sin(t)*Math.cos(i),this.MJ.position.y=500*Math.cos(t),this.MJ.position.z=500*Math.sin(t)*Math.sin(i),this.MJ.lookAt(this.MJ.target),this.MJ.position.copy(this.MJ.target).negate(),this.NJ&&this.RJ&&this.RJ.render(this.NJ,this.MJ))},i.prototype.OJ=function(){var t,i;this.rK&&window.cancelAnimationFrame(this.rK),this.CJ=!0,this.KJ(),this.kJ&&(this.kJ.destroy(),this.kJ=null),this.TJ&&(this.TJ.parentNode&&this.TJ.parentNode.removeChild(this.TJ),this.TJ=null),null===(i=null===(t=this.container)||void 0===t?void 0:t.parentNode)||void 0===i||i.removeChild(this.container),this.MJ=null,this.NJ=null,this.RJ=null},i.prototype.XE=function(){this.sK=!0,this.CJ=!0},i.prototype.$E=function(){this.sK=!1,this.CJ=!1,this.eK()},i.prototype.JE=function(){this.SE()},i.prototype.HJ=function(){var t;null===(t=this.container)||void 0===t||t.classList.add("over-360")},i.prototype.UJ=function(t){var i,n;this.oK=!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.iK=!0,this.uK=t.clientX,this.hK=t.clientY,this.aK=this.LJ,this.cK=this.DJ},i.prototype.BJ=function(t){var i;this.iK&&(this.sK&&!this.nK&&(this.nK=!0,this.CJ=!1,this.eK()),this.oK=!0,this.LJ=.1*(this.uK-t.clientX)+this.aK,this.DJ=.1*(t.clientY-this.hK)+this.cK,null===(i=this.kJ)||void 0===i||i.update(this.LJ))},i.prototype.zJ=function(){this.iK&&(this.tK(),this.oK?this.$U.publish(u.THREE_SIXTY_INTERACT):this.$U.publish(u.TOGGLE_PLAY_PAUSE)),this.oK=!1},i.prototype.qJ=function(){this.tK()},i.prototype.nO=function(){this.container&&this.JJ(this.container.offsetWidth,this.container.offsetHeight)},i.prototype.AJ=function(){this.SJ&&(this.$U.removeEventListener(u.THREE_SIXTY_READY,this.SJ),this.SJ=null),!this.fK&&this.RJ&&this.container&&(this.RJ.setSize(this.container.offsetWidth,this.container.offsetHeight),this.fK=!0)},i.type=h.RendererType.HTML5_RAW_360,i}(l.default);i.default=d},268: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(1409),h=n(9451),a=n(3872);!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 c=function(t){function i(){var i=t.call(this,"Html5RawRebufferingManager")||this;return i.SK=null,i.TK=0,i.dS=null,i.jK=0,i.reset(),i}return r(i,t),i.prototype.destroy=function(){this.IK()},i.prototype.init=function(t,i){void 0===i&&(i=!1),t&&(this._node=t,i&&this.onRecoveryStart(),this.reset(),this.MK())},i.prototype.onSeeking=function(){this.NK()},i.prototype.onRecoveryStart=function(){this.RK(),this._K()},i.prototype.onEnded=function(){this.IK()},i.prototype.onPause=function(){this.RK(),this.aS=null},i.prototype.reset=function(){this.WP=!0,this.playbackStuck=!1,this.ZO=NaN,this.kK=0,this.aS=null,this.TK=0,this.jK=0,this.dS=null},i.prototype.publishWaitingEvent=function(t){if((!this.playbackStuck||!t)&&(this.playbackStuck||t)){var i={type:"waiting",value:t,ignoreBuffering:this.WP};this.publish(s.WAITING,i),this.playbackStuck=t,t?(this.ZO=this._node&&this._node.currentTime||0,this.WP||(this.dS=Date.now())):(this.WP=!1,this.ZO=NaN,this.RK())}},i.prototype.MK=function(){this.IK(),this.SK=new a.Timer(250,this.LK,this),this.SK.start()},i.prototype.RK=function(){this.dS&&(this.TK+=Date.now()-this.dS,this.dS=null)},i.prototype.LK=function(){this.NK(),this.DK()>5e3&&(this._K(),this.jK=0)},i.prototype.NK=function(t){if(void 0===t&&(t=!1),this&&this._node){if(!this._node.paused){var i=this.rS();if(t||!(i<150)){var n=this._node.currentTime,e=!1;if(h.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.kK&&!e||this._node.paused?!isNaN(this.ZO)&&n>this.ZO&&this.publishWaitingEvent(!1):this.playbackStuck||(this.WP=n<=.02,this.publishWaitingEvent(!0)),this.kK=n,this.aS=Date.now()}}}else this.IK()},i.prototype.rS=function(){var t=Date.now();return this.aS=this.aS||t,t-this.aS},i.prototype.DK=function(){var t=Date.now();return this.jK=this.jK||t,t-this.jK},i.prototype._K=function(){this.publish(s.SEG_INFO_AVAILABLE,{val:[{buf_dur:this.TK}]}),this.TK=0},i.prototype.IK=function(){this.SK&&(this.SK.destroy(),this.SK=null)},i}(u.default);i.default=c},8696: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(9451),o=n(4593),u=n(6389),h=n(1962),a=n(1962),c=n(4685),f=n(5244),l=n(9452),v=n(1204),d=n(2878),p=n(2394),m=n(4986),b=n(6342),y=n(5132),g=n(268),w=[1,5],_=function(t){function i(n,e){var r=t.call(this,n,e)||this;return r.type=i.type,r.CK={},r.GX=e.capabilities[c.RendererType.HTML5_RAW],r.lK(),(s.userAgent.desktop||s.userAgent.mobile&&v.default.hasNativeAutoplaySupport)&&(r.tJ=!0),r.PK=new g.default,r.PK.on(g.RebufferingEvent.WAITING,r.rU,r),r.PK.on(g.RebufferingEvent.SEG_INFO_AVAILABLE,r.tF,r),r}return r(i,t),i.canUse=function(){return!s.userAgent.tv},i.prototype.destroy=function(){this.xK&&this.xK.destroy(),t.prototype.destroy.call(this)},i.prototype.play=function(t){if(void 0===t&&(t=0),this.ended=!1,this.node){if(this.rE)return this.publish(c.RendererEvent.ERROR,this.rE),void(this.rE=null);if(this.pW){if(!v.default.autoplaySupported){if(s.userAgent.ios){var i=this.node.src;this.node.src="",this.node.load(),this.node.src=i}s.userAgent.mobile&&this.node.load()}}else{var n=this.DW(),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.pW=!1,this.$U.publish(a.PROFILE_START,h.METRICS.STREAM_PLAY_TO_RENDER),this.vJ(),this.UK||(this.PK.publishWaitingEvent(!0),this.UK=!0)}},i.prototype.preload=function(t){},i.prototype.setPlayableItem=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=!1),this.lK(),this.ZL=b.default.getPlaybackMode(t);var e=t.streams||[],r=!1,o=null;this.TM=e,this.VK=e.slice(0),this.PK.init(this.node,n),(s.userAgent.safari>=6||s.userAgent.tv)&&e.forEach((function(t){t.format&&t.format.indexOf("m3u8")>-1&&(t.isPrimary||t.is_primary||!o)&&(o=t,r=!0)}));var u=[];if(r){if(o)return this.BK(o,i),this.XZ=t,!0}else{e.forEach((function(t){u.push(parseInt(t.videoMetadata.bitrate+"",10))})),u=u.sort(),this.FK=new l.default(this.node,u);var h=this.FK.getTargetBitrate();if(o=this.zK(h))return this.BK(o,i),this.GK(o),this.n_.mp4Abr&&u.length>1&&(this.HK=this.on(c.RendererEvent.TIMEUPDATE,this.hV,this),this.YK=0),this.XZ=t,!0}return!1},i.prototype.setQuality=function(t){this.qK(t.stream.url),this.GK(t.stream)},i.prototype.setSeedStreamIndex=function(t){},i.prototype.retryStreams=function(t){var i=this,n=this.qO;if(n&&this.WK<=2)window.setTimeout((function(){i.QK(n,t)}),1e3*w[this.WK-1]);else{this.WK=0;var e=this.VK.indexOf(n);if(this.VK.splice(e,1),0===this.VK.length)return n;var r=p.default.findStreamByProperty(this.VK,p.default.BITRATE,this.FK.getTargetBitrate(),this.GX);this.QK(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.$U.publish(a.LIVE_RELOAD_MEDIA)},i.prototype.getSyncOffset=function(){return this.TE?this.TE.getSyncOffset():NaN},i.prototype.startSync=function(){var t;null===(t=this.TE)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.TE)||void 0===t||t.stopSync()},i.prototype.setPlaybackRate=function(t){this.node.playbackRate!==t&&(this.node.playbackRate=t)},i.prototype.getSyncState=function(){return this.TE?this.TE.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._J=function(t){var i;null===(i=this.TE)||void 0===i||i.updateDateRanges(t)},i.prototype.VF=function(t,i){var n=this;if(this.node)switch(t===c.NativeVideoEvent.PLAYING&&this.$U.publish(a.PROFILE_END,[h.METRICS.STREAM_PLAY_TO_RENDER,h.METRICS.STREAM_REQUEST_TO_RENDER]),t){case c.NativeVideoEvent.TIMEUPDATE:this.PK.playbackStuck||(this.$K||(this.$K=!0,this.publish(c.RendererEvent.PLAYING)),this.seeking&&(this.publish(c.RendererEvent.SEEKED,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.seeking=!1));var e=this.node.currentTime;if(s.userAgent.android){if(!this.XK&&s.userAgent.chrome<33&&e>1&&e<2)(m=this.DW())&&m.isLive()?(this.node.pause(),this.vJ()):this.seek(0),this.XK=!0;!this.ZK&&s.userAgent.androidVersion<=4.4&&this.node.addEventListener("webkitfullscreenchange",(function(){if(n.node){var t=n.node.currentTime;n.ZK=!0,n.node.load();var i=n.on(c.RendererEvent.LOADEDMETADATA,(function(){if(n.node){n.vJ();var e=n.DW();e&&e.isLive()&&(n.node.currentTime=parseInt(t+"",10)),n.removeEventListener(c.RendererEvent.LOADEDMETADATA,i)}}),n)}}),!1)}this.JK||this.PK.playbackStuck||this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.KK=this.node.currentTime;var r=this.node.getStartDate&&this.node.getStartDate(),o=r&&new Date(r).getTime();if(!o)break;Object.keys(this.iJ).forEach((function(t){var i=n.iJ[t],e=1e3*n.node.currentTime;if(i.endDate||i.duration){var r=e>=i.startDate-o&&e<=i.endDate-o;r&&!(t in n.CK)?(n.CK[t]=!0,n.publish(c.RendererEvent.DATERANGE_STARTED,i)):!r&&t in n.CK&&!0===n.CK[t]&&(n.CK[t]=!1,n.publish(c.RendererEvent.DATERANGE_ENDED,i))}}));break;case c.NativeVideoEvent.SEEKING:this.seeking=!0,this.PK.onSeeking(),this.JK||this.PK.playbackStuck||this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.KK=this.node.currentTime;break;case c.NativeVideoEvent.SEEKED:this.JK?this.t0():this.PK.playbackStuck||(this.seeking=!1,this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered})),this.KK=this.node.currentTime;break;case c.NativeVideoEvent.ERROR:var f=this.node.error,l=this.dJ(f),v=this.VK.length<=1&&this.WK>=2,d=u.E_WARNING;v&&(d=u.E_PLAYER);var p=b.default.createErr(u.ErrorGroup.Streaming,this.aY,d,l,null,this.node.src);if(this.ZL!==c.PlaybackMode.VIDEO){p.errorType=u.E_PLAYER,this.publish(c.RendererEvent.ERROR,p);break}if(parseInt(p.subcategory,10)>=303&&parseInt(p.subcategory,10)<=308){this.WK++,v||this.$U.publish(a.WARNING,p);var m,y=null;return(y=(m=this.DW())&&!m.isLive()?this.retryStreams(this.KK):this.retryStreams(0))?void b.default.getUrlStatus(y.url,(function(t){var i,e=u.PLAYER_CODES;401===t?i=e.E_NATIVE_UNAUTHORIZED_URL:404===t&&(i=e.E_NATIVE_URL_NOT_FOUND),p.subcategory=i,p.errorType=u.E_PLAYER,n.publish(c.RendererEvent.ERROR,p)})):void 0}p.errorType=u.E_PLAYER,this.publish(c.RendererEvent.ERROR,p);break;case c.NativeVideoEvent.ENDED:this.ended=!0,this.XK=!1,this.PK.onEnded(),this.PK.playbackStuck&&this.PK.publishWaitingEvent(!1),this.publish(i);break;case c.NativeVideoEvent.LOADEDDATA:if(this.JK){this.i0();break}this.$U.publish(a.PROFILE_END,h.METRICS.LOAD_TO_LOADED_DATA),this.publish(i),this.node.audioTracks&&this.node.audioTracks.length>1&&this.n0();break;case c.NativeVideoEvent.PAUSE:if(this.ended||this.node.ended)break;if(this.seeking)break;if(!this.node.paused)break;this.PK.onPause(),this.PK.playbackStuck&&this.PK.publishWaitingEvent(!1),this.publish(i);break;case c.NativeVideoEvent.PLAY:case c.NativeVideoEvent.PLAYING:if(this.JK){t===c.NativeVideoEvent.PLAYING&&this.e0();break}this.PK.playbackStuck||(this.$K=t===c.NativeVideoEvent.PLAYING,this.publish(i));break;case c.NativeVideoEvent.WAITING:case c.NativeVideoEvent.VOLUMECHANGE:break;default:this.publish(i)}},i.prototype.r0=function(t,i){return t.indexOf(i)>-1},i.prototype.s0=function(t,i){return this.r0(t,"mp4")&&this.r0(i,"m3u8")||this.r0(t,"m3u8")&&this.r0(i,"mp4")},i.prototype.lK=function(){this.JK=!1,this.o0="",this.qO=null,this.WK=0,this.VK=[],this.u0=null,this.UK=!1,this.KK=0,this.$K=!1,this.XZ=null,this.ZL=c.PlaybackMode.VIDEO,this.XK=!1,this.ZK=!1,this.YK=0,this.HK&&(this.removeEventListener(c.RendererEvent.TIMEUPDATE,this.HK),this.HK=null),this.seeking=!1,this.ended=!1},i.prototype.h0=function(){var t=null;if(this.TM)for(var i=0,n=this.TM;i<n.length;i++){var e=n[i];if(e.isPrimary){t=e;break}}return t},i.prototype.zK=function(t){var i=this.h0();return i||(i=p.default.findStreamByProperty(this.TM,"bitrate",t,this.GX)),!i&&this.TM&&this.TM.length>0&&(i=this.TM[0]),i},i.prototype.hV=function(t){if(t-this.YK>10){this.YK=t;var i=this.zK(this.FK.getRecommendedBitrate());i&&(this.qK(i.url),this.GK(i))}},i.prototype.GK=function(t){this.FK&&(this.FK.currentBitrate=t.videoMetadata.bitrate),this.$U.publish(a.PLAYBACK_INFO,{currentStreamBitrate:t.videoMetadata.bitrate,qualityLevels:this.TM.length})},i.prototype.BK=function(t,i,n){var e=this;if(this.node){var r=this.DW();if(r.license&&r.license.isDrm&&!v.default.drmSupported){var l=void 0,p=u.INFO_CODES;return s.userAgent.ios&&s.userAgent.iosVersion<11.2||s.userAgent.android&&!s.userAgent.chrome?l=p.E_DRM_UNSUPPORTED_OS:s.userAgent.ios&&!s.userAgent.safari&&(l=p.E_DRM_UNSUPPORTED_BROWSER),void this.$U.publish(a.INFO,b.default.createErr(u.ErrorGroup.Streaming,this.aY,u.E_INFO,l,null,this.node.src))}if(s.userAgent.safari&&(this.xK?r.isRecovering()&&this.xK.init():this.xK=new o.default(this.node,t.fairplayCertificatePath,this.a0.bind(this),this.reportError.bind(this))),this.ended=!1,this.XK=!1,this.node.src!==t.url||n){if(s.userAgent.iphone&&Object.prototype.hasOwnProperty.call(this.node,"webkitDisplayingFullscreen")&&!this.node.webkitDisplayingFullscreen&&t.format&&this.s0(t.format,this.o0)){var m=this.node.parentNode;this.destroy(),m&&m.appendChild(this.create())}if(s.userAgent.safari&&s.userAgent.ios&&this.n_.shouldSynchronize()&&(this.TE&&this.TE.onSetSrc(),this.TE),s.userAgent.android&&t.live&&(s.userAgent.chrome&&s.userAgent.chrome<30||!d.default.isAndroidVersionAbove4())){var y=b.default.createErr(u.ErrorGroup.Restriction,this.aY,u.E_INFO,u.INFO_CODES.E_PLAYER_ANDROID_CHROME_REQUIRED);return void this.$U.publish(a.INFO,y)}if(this.oJ(),this.$U.publish(a.PROFILE_START,h.METRICS.STREAM_REQUEST_TO_RENDER),this.node.src=t.url,i)var g=this.on(c.RendererEvent.LOADEDMETADATA,(function(){e.node&&(e.node.currentTime=i),e.removeEventListener(c.RendererEvent.LOADEDMETADATA,g)}),this);this.pW=!0,this.o0=t.format||"",this.qO=t,this.ZL===c.PlaybackMode.VIDEO&&this.$U.publish(a.PROFILE_START,h.METRICS.LOAD_TO_LOADED_DATA),s.userAgent.mobile?v.default.hasNativeAutoplaySupport&&this.node.load():(this.node.load(),this.n_.getState()===f.States.VIDEO&&this.play())}}},i.prototype.c0=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.i0=function(){this.seek(this.GW)},i.prototype.a0=function(){this.n_.isDrmAvailable=!0,this.n_.drmSystem="fairplay"},i.prototype.t0=function(){if(this.node){this.vJ();var t=this.f0.parentNode;t&&t.removeChild(this.f0)}},i.prototype.e0=function(){this.publish(c.CustomRendererEvent.SRC_SWITCHED),this.JK=!1},i.prototype.qK=function(t,i){if(this.node){var n=this.node.clientWidth,e=this.node.clientHeight;if(this.node.src===t)return this.publish(c.CustomRendererEvent.SRC_SWITCHING),void this.publish(c.CustomRendererEvent.SRC_SWITCHED);this.JK=!0,this.node.pause(),this.GW=this.node.currentTime;var r=document.createElement("canvas");this.f0=r,r.className="vp-switching-canvas",r.width=n,r.height=e;var s=this.c0();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(c.CustomRendererEvent.SRC_SWITCHING),this.node.src=t}},i.prototype.QK=function(t,i){this.BK(t,i,!0),this.GK(t)},i.prototype.n0=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.DW();i&&(i.setMultiLanguages(t),this.$U.publish(a.MULTI_LANGUAGES_AVAILABLE))}},i.prototype.rU=function(t){t.value&&(this.$K=!1),t.ignoreBuffering=t.ignoreBuffering||this.seeking,this.publish(c.RendererEvent.WAITING,t)},i.prototype.tF=function(t){this.$U.publish(a.SEG_INFO_AVAILABLE,t)},i.type=c.RendererType.HTML5_RAW,i}(y.default);i.default=_},5727:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e,r=n(9451),s=n(2878),o=n(4685),u=document.createElement("video"),h=function(){var t=!1;try{u.canPlayType&&!(t=s.default.canPlayType('application/vnd.apple.mpegURL; codecs="avc1.42E01E, mp4a.40.2"',u))&&r.userAgent.tv&&(t=s.default.canPlayType("application/vnd.apple.mpegurl",u))}catch(i){t=!1}return r.userAgent.tv&&(window.noHLS&&(t=!1),window.hls&&(t=!0)),t}(),a=function(){var t=!1;try{t=s.default.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"',u)}catch(i){t=!1}return t}(),c=function(){var t=!1;try{t=s.default.canPlayType('video/webm; codecs="vp8, vorbis"',u)}catch(i){t=!1}return r.userAgent.tv&&(t=!1),t}(),f=!r.userAgent.safari,l=(e=[],r.userAgent.android&&e.push("mp4b"),(h||r.userAgent.android&&s.default.isAndroidVersionAbove4())&&e.push("m3u8"),(f||r.userAgent.android&&s.default.isAndroidVersionAbove4())&&e.push("mpd"),a&&e.push("mp4"),c&&e.push("webm"),e),v=function(){var t=l.slice(),i=t.indexOf("mp4b");return i>-1&&t.splice(i+1,0,"mp4"),t.push(""),t}(),d=function(){function t(){}return t.get=function(t){var i=null;switch(t){case o.RendererType.HTML5_HLS:case o.RendererType.HTML5_HLS_360:(i={acceptedProtocols:["http"],preferredFormats:[],acceptedFormats:[],is360Renderer:t===o.RendererType.HTML5_HLS_360,canDecryptAES:!0}).preferredFormats=["m3u8"],i.acceptedFormats=["m3u8","m3u8_playlist","m3u8:fmp4"];break;case o.RendererType.HTML5_RAW:case o.RendererType.HTML5_RAW_360:(i={acceptedProtocols:["http"],preferredFormats:l,acceptedFormats:v,is360Renderer:t===o.RendererType.HTML5_RAW_360,canDecryptAES:!0}).preferredFormats=i.preferredFormats.filter((function(t){return"mpd"!==t})),i.acceptedFormats=i.acceptedFormats.filter((function(t){return"mpd"!==t}));break;case o.RendererType.HTML5_TV:case o.RendererType.HTML5_TV_TIZEN:case o.RendererType.HTML5_TV_ORSAY:i={acceptedProtocols:["http"],preferredFormats:["m3u8","mp4"],acceptedFormats:["m3u8","m3u8_playlist","mp4"],is360Renderer:!1,canDecryptAES:!0};break;case o.RendererType.EXTERNAL:i={acceptedProtocols:[],preferredFormats:[],acceptedFormats:[],is360Renderer:!1,canDecryptAES:!1}}return i},t}();i.default=d},4685: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.ExternalPlayerEvent=i.ExternalPlayerCapability=i.CustomRendererEvent=i.RendererEvent=i.NativeVideoEvent=i.PlaybackMode=i.RendererType=void 0;var s,o=n(1409);!function(t){t.EXTERNAL="EXTERNAL",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"}(i.NativeVideoEvent||(i.NativeVideoEvent={})),function(t){t.PAUSE="pause",t.ENDED="ended",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.SUBTITLE_TRACK_RECEIVED="subtitleTrackReceived"}(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.PLAYBACK_ERROR="external-player-error",t.ITEM_LOADED="external-player-item-loaded",t.PLAY_REQUESTED="external-player-play-requested",t.PLAYING="external-player-playing",t.PAUSED="external-player-paused",t.PLAY_COMPLETE="external-player-play-complete",t.TIME_UPDATE="external-player-time-update",t.MUTE_CHANGED="external-player-mute-changed",t.VOLUME_CHANGED="external-player-volume-changed",t.SKIPPED="external-player-item-skipped"}(i.ExternalPlayerEvent||(i.ExternalPlayerEvent={}));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.XZ=null,e}return r(i,t),i.canUse=function(){return!1},i.prototype.getPlayableItem=function(){return this.XZ},i.type=s.UNKNOWN,i}(o.default);i.Renderer=u,i.default=u},6669:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(3891),r=n(8259),s=n(8696),o=n(6125),u=n(2758),h=n(1600),a=n(6103),c=function(){function t(){}return t.getRendererTypes=function(){for(var t=[],i=0,n=[e.default,s.default,r.default,o.default,a.default,h.default,u.default];i<n.length;i++){var c=n[i];c&&c.canUse()&&t.push(c.type)}return t},t.getAdRendererTypes=function(){for(var t=[],i=0,n=[e.default,s.default,a.default,h.default,u.default];i<n.length;i++){var r=n[i];r&&r.canUse()&&t.push(r.type)}return t},t}();i.default=c},5658:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(9451),r=n(2912),s=n(1204),o=n(6342),u=function(){function t(){this.l0=[],this.v0=[],this.d0=null,this.p0=s.default.hasTouchRestrictions,this.m0=1,this.fill()}return t.getPool=function(){return t.b0||(t.b0=new t),t.b0},t.prototype.get=function(){this.l0.length<=2&&this.fill();var t=this.l0.shift();if(t)return r.default.isUnmuteRestrictionRemoved(t)||this.v0.push(t),t.setAttribute("data-vp-ridx",this.m0+""),t.__rendererIndex=this.m0,this.m0++,t},t.prototype.fill=function(){this.y0(10-this.l0.length)},t.prototype.discard=function(t){r.default.cleanupVideoNode(t);var i=this.v0.indexOf(t);-1!==i&&this.v0.splice(i,1)},t.prototype.destroy=function(){this.d0&&this.d0(),this.l0.length=0,this.v0.length=0,this.v0=this.l0=[],this.d0=null},t.prototype.y0=function(t){for(var i=0;i<t;i++){var n=e.userAgent.mobile?r.default.createMobileVideoNode():o.default.createVideoNode();this.l0.push(n)}this.p0&&this.g0()},t.prototype.g0=function(){var t=this;this.d0||(this.d0=r.default.waitForValidUserGestureEvent((function(){t.d0=null,t.v0.forEach(r.default.removeUnmuteRestriction),t.l0.forEach(r.default.removeUnmuteRestriction),t.v0.forEach(r.default.removeTouchToPlayRestriction),t.l0.forEach(r.default.removeTouchToPlayRestriction),t.v0.length=0})))},t}();i.default=u},5244: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(5986),h=n(9068),a=o(o({},u),h),c=(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)||a;i.default=c},9452:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(3872),r="yvpTargetBitrate",s=function(){function t(t,i,n,e){var r=this;this.w0=t,this._0=i?i.sort((function(t,i){return t-i})):[],this.reservoirLength=n||10,this.cushionLength=e||20,this.currentBitrate=0,this.E0={},this._0.forEach((function(t){r.E0[t]=0})),t&&t.addEventListener("waiting",(function(){r.E0[r.currentBitrate]=r.E0[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.w0.buffered,i=this.w0.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.w0.length-i?Number.MAX_VALUE:n}return n},t.prototype.getRecommendedBitrate=function(t,i,n){i=i||this._0,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],h=this.O0(i,n),a=e;return h>=o?a=this.A0(i,h):h<=u&&(a=this.S0(i,h)),a},t.prototype.getNumberOfBufferingsForBitrate=function(t){return this.E0[t]},t.prototype.O0=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.A0=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.S0=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},727:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(t){this.kO=t,this.T0=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.T0.push({args:i,job:t})},t.prototype.flush=function(t){var i=this;void 0===t&&(t=!1);var n=this.T0;this.T0=new Array,t&&n.forEach((function(t){if(i.kO){var n=t.job,e=t.args;n.apply(i.kO,e)}}))},t.prototype.deQueue=function(t,i){if(void 0===i&&(i=!1),t)for(var n=0;n<this.T0.length;n++){var e=this.T0[n],r=e.job,s=e.args;if(r===t){i&&this.kO&&r.apply(this.kO,s),this.T0.splice(n,1);break}}},t.prototype.getLength=function(){return this.T0.length},t}();i.default=n},2912:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(9451),r=n(514),s=n(1204),o=n(6342),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(){h&&h(),t()},h=function(){i&&i.destroy(),n&&n.forEach((function(t){u&&window.removeEventListener(t,u,!0)})),n=i=u=h=null};return n.forEach((function(t){u&&window.addEventListener(t,u,!0)})),h},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},1204:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(9451),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.j0(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"needsGestureToPlayUnmuted",{get:function(){return t.j0(!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.j0=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(9451),r=n(4986),s=n(3891),o=n(1204),u=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)},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;if(i&&!i.isTypeSupported){var n=document.createElement("video");return!(!n||!n.canPlayType(t))}return!(!i||!i.isTypeSupported(t))},t.isAndroidVersionAbove4=function(){return!!e.userAgent.androidVersion&&parseInt(e.userAgent.androidVersion,10)>=4},t.canPlayType=function(t,i){var n;try{i||(i=document.createElement("video")),n=!!i.canPlayType&&"probably"===i.canPlayType(t)}catch(t){n=!1}return n},t.enterFullscreen=function(t){var i=this.I0(t);if(i)try{i.call(t)}catch(t){}},t.exitFullscreen=function(t){var i=this.M0();if(i)try{this.N0()&&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.I0=function(t){return t?t.requestFullscreen||t.webkitRequestFullscreen||t.webkitEnterFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen:null},t.M0=function(){var t=document;return t.exitFullscreen||t.webkitExitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen},t.N0=function(){var t=document;return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement},t}();i.default=u},1594:function(t,i,n){"use strict";var e=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.Profiler=void 0;var r=n(1962),s=n(4986),o=function(){function t(t){this.startTime=Date.now(),this.R0=[],this.$U=t,this.dp={},this.k0()}return t.prototype.getItem=function(t){var i=this.L0(t);return i>-1?this.R0[i]:null},t.prototype.removeItem=function(t){var i=this.L0(t);i>-1&&this.R0.splice(i,1)},t.prototype.destroy=function(){this.$U.removeEventListeners(this.dp)},t.prototype.L0=function(t){for(var i=0;i<this.R0.length;i++){var n=this.R0[i];if(t.type===n.type)return i}return-1},t.prototype.k0=function(){var t=this;this.dp[r.PROFILE_START]=this.$U.addEventListener(r.PROFILE_START,(function(i){void 0===i&&(i=[]),(i=s.isArray(i)?i:[i]).forEach((function(i){t.D0(i)}))}),this),this.dp[r.PROFILE_END]=this.$U.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=s.isArray(i)?i:[i]).forEach((function(i){t.C0.apply(t,e([i],n))}))}),this)},t.prototype.D0=function(t){this.removeItem(t),this.R0.push({type:t.type,startTime:Date.now()-this.startTime,endTime:void 0})},t.prototype.C0=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},2394: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.PZ(),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},4986:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isAdPlugin=i.isAdResolverAdPlugin=i.isAdViewAdPlugin=i.isAdOverlayRendererAdPlugin=i.isAdPlayerAdPlugin=i.isExternalPlayer=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(1279),r=n(3872),s=r.TypeChecker.isArray;i.isArray=s;var o=r.TypeChecker.isBoolean;i.isBoolean=o;var u=r.TypeChecker.isFunction;i.isFunction=u;var h=r.TypeChecker.isNullOrUndefined;i.isNullOrUndefined=h;var a=r.TypeChecker.isNumber;i.isNumber=a;var c=r.TypeChecker.isString;i.isString=c;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)&&c(t.mimetype)&&c(t.version)&&u(t.prepare)&&u(t.destroy))}function p(t){return!!t&&u(t.addEventListener)&&u(t.removeEventListener)}function m(t){return p(t)&&["getCapabilities","preparePlayback","play","pause","seek","stop","skip","mute","isMuted","setVolume","getVolume","getCurrentTime","getDuration","unload"].every((function(i){return u(t[i])}))}function b(t){return!!t&&m(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.fetchAdBreaks)&&u(t.resolveAdBreak)&&p(t)}i.isNonEmptyString=l,i.isPlayerPluginEventListener=v,i.isPlugin=d,i.isEventDispatcher=p,i.isExternalPlayer=m,i.isAdPlayerAdPlugin=b,i.isAdOverlayRendererAdPlugin=y,i.isAdViewAdPlugin=g,i.isAdResolverAdPlugin=w,i.isAdPlugin=function(t){return!!t&&d(t)&&(w(t)||g(t)||b(t)||y(t))}},6342:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(9451),r=n(954),s=n(6389),o=n(8103),u=n(9134),h=n(4685),a=n(4986),c=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"+e:e.toString(),s="";if(i>0){var o=n<10?"0"+n:n.toString();s=i.toString()+":"+o+":"+r}else a.isNumber(n)&&(s=n.toString()+":"+r);return s},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.createErr=function(t,i,n,r,o,u,h){return new s.default(t,n,r,{playbackState:i,msg:o,debugMsg:u,prefetch:h},e.userAgent)},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,r;return(null===(r=null===(e=null===(n=null===(i=window)||void 0===i?void 0:i.YAHOO)||void 0===n?void 0:n.CorePlayer)||void 0===e?void 0:e.VideoPlayer)||void 0===r?void 0:r[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.isAdBreakType=function(t){return t===o.AdBreakType.PREROLL||t===o.AdBreakType.MIDROLL||t===o.AdBreakType.POSTROLL||t===o.AdBreakType.TRIGGER||t===o.AdBreakType.NON_LINEAR||t===o.AdBreakType.NATIVE},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,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="",c=0;c<t.length;)r=(i=t[c++])>>2,s=(3&i)<<4|(n=c<t.length?t[c++]:Number.NaN)>>4,o=(15&n)<<2|(e=c<t.length?t[c++]:Number.NaN)>>6,u=63&e,isNaN(n)?o=u=64:isNaN(e)&&(u=64),a+=h.charAt(r)+h.charAt(s)+h.charAt(o)+h.charAt(u);return a},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 u.default?h.PlaybackMode.AD:h.PlaybackMode.VIDEO},t.getAdBreakStartOffset=function(t){var i=[];return t.forEach((function(n,e){var r,s=n.adBreakItems&&n.adBreakItems.some((function(t){return!!t.instream}));if(e>0&&s){for(var o=0,u=1;u<=e;u++)o+=t[u-1].duration;r=n.startOffset-o}else r=n.startOffset;var h={adBreakId:n.adBreakId,startOffset:r,type:n.type};i.push(h)})),i},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.assetDomainHttp="http://assets.video.yahoo.net",t.assetDomainHttps="https://assets.video.yahoo.net",t.scriptType="PLAYER_DEBUG_TYPE",t.yuiAdded=!1,t}();i.default=c},611: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.AdsViewEvent=void 0;var s,o=n(1409),u=n(5109),h=n(2542),a=n(3277),c=n(1279),f=n(4986),l=n(6342);function v(t){return l.default.classList(t)}!function(t){t.CTA_TRIGGERED="adsViewCtaTriggered",t.CLICKED="adsViewUiClicked",t.SKIP_AD_REQUESTED="adsViewSkipAdRequested"}(s=i.AdsViewEvent||(i.AdsViewEvent={}));var d=function(t){function i(i){var n=t.call(this,"AdsView")||this;return n.iH=i,n.P0=null,n.x0=l.default.noop,n.U0=n.V0(u.default.mimetype),n}return r(i,t),Object.defineProperty(i.prototype,"node",{get:function(){return this.B0},enumerable:!1,configurable:!0}),i.prototype.create=function(){return this.B0||(this.B0=document.createElement("div"),v(this.B0).add("vp-adview-wrapper"),v(this.B0).add("vp-hidden")),this.B0},i.prototype.onAdBreakStart=function(t){this.F0()},i.prototype.onAdBreakEnd=function(t){this.z0(),this.G0(),this.H0(null)},i.prototype.onAdBreakItemCurrent=function(t){this.Y0=!1,this.G0();var i=t.adBreak,n=i.adBreakItems.indexOf(t);if(t.interactionConfig&&t.interactionConfig.chromeless)this.H0(null);else{this.H0(this.q0(t));var e=this.P0.renderUI(t.rawItemData,{position:n,total:i.adBreakItems.length,adBreakDuration:i.duration,adBreakItems:i.adBreakItems.map((function(t){return t.rawItemData}))});e?this.B0.appendChild(e):this.H0(null)}},i.prototype.enableClickBlocking=function(t){this.B0&&v(this.B0)[t?"add":"remove"]("vp-block-pointer-evts")},i.prototype.destroy=function(){this.z0(),this.G0(),this.H0(null),this.U0=null,this.iH=null,this.B0=null},i.prototype.F0=function(){this.B0&&v(this.B0).remove("vp-hidden")},i.prototype.z0=function(){this.B0&&v(this.B0).add("vp-hidden")},i.prototype.G0=function(){if(this.P0&&this.P0.unrenderUI(),this.B0)for(;this.B0.firstChild;)this.B0.removeChild(this.B0.firstChild)},i.prototype.W0=function(t,i){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];switch(i){case h.AdPluginUIEvent.CTA_TRIGGERED:this.publish(s.CTA_TRIGGERED);break;case h.AdPluginUIEvent.CLICKED:this.publish(s.CLICKED);break;case h.AdPluginUIEvent.SKIP_AD:this.publish(s.SKIP_AD_REQUESTED)}},i.prototype.H0=function(t){t!==this.P0&&(this.x0(),t?(this.P0=t,this.x0=a.listenEventDispatcherEvts(this.P0,Object.keys(h.AdPluginUIEvent).map((function(t){return h.AdPluginUIEvent[t]})),this.W0.bind(this))):(this.P0=null,this.x0=l.default.noop))},i.prototype.q0=function(t){var i=this.V0(t.adPluginMimeType);return i&&f.isAdViewAdPlugin(i)&&i.canRenderUI(t.rawItemData)?i:this.U0},i.prototype.V0=function(t){return t?this.iH.getPlugin(c.PluginType.AD,t):null},i}(o.default);i.default=d},9257:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(3072),r=n(954),s=n(1962),o=n(1279),u=n(5244),h=function(){function t(t,i,n,e){this.$U=t,this.JH=i,this.n_=n,this.iH=e}return t.prototype.syncState=function(){var t=this.n_.getState();t===u.States.INIT||t===u.States.WAITING||t===u.States.VIDEO?this.DQ():t===u.States.END&&this.Q0()},t.prototype.destroy=function(){this.Q0()},t.prototype.DQ=function(){var t=this.n_.playlist&&this.n_.playlist.getCurrentItem();if(this.iH&&t&&t.brandingData&&!this.$0){var i=this.iH.getPlugin(o.PluginType.BRANDING,t.brandingData.mimetype),n=i&&i.create(t.brandingData);n&&(this.$0=n,this.$0.style.visibility="hidden",this.X0(),this.Z0=this.$0.offsetHeight,this.J0(),this.$0.style.visibility=null,this.k0())}},t.prototype.X0=function(){var t=this.JH.getContentNode(),i=this.JH.getPlaylistController(),n=i.getPlaylistRootElement(),e=i.isPlaylistShown(),s=i.getPlaylistUIPosition();e&&s===r.PLAYLIST_POS.BOTTOM&&n?n.parentNode.insertBefore(this.$0,n):t.appendChild(this.$0)},t.prototype.k0=function(){var t=this;this.K0||(this.K0=this.$U.on([e.ExternalEvt.PLAYER_DOCKED_CHANGE,s.FULLSCREEN_CHANGE],(function(i){t.t1&&(window.clearTimeout(t.t1),t.t1=null),i===s.FULLSCREEN_CHANGE?t.t1=window.setTimeout((function(){t.t1=null,t.J0()}),700):t.J0()}),this))},t.prototype.Q0=function(){var t=this.JH.getMainElement();t&&(t.style.height="100%"),this.$0&&(this.$0.parentNode.removeChild(this.$0),this.$0=null,this.Z0=null,this.i1())},t.prototype.i1=function(){this.K0&&(this.$U.removeEventListeners(this.K0),this.K0=null)},t.prototype.J0=function(){var t=this.JH.getContentNode(),i=this.JH.getMainElement();this.$0&&this.Z0&&t&&i&&(i.style.height="calc(100% - "+this.Z0+"px)")},t}();i.default=h},3641: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,h,a,c,f,l=n(1958),v=n(954),d=n(1954),p=n(6342),m=n(8430),b=n(514),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'}(h=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"}(a=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"}(c=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":h,"Font Color":a,"Background Color":c,"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(9319);function E(t){return p.default.classList(t)}var O=function(){function t(t,i){this.n1=t,this.n_=i}return t.prototype.create=function(){this.e1(),this.s1=p.default.render(w,{strings:d.default}),this.o1(),this.u1=this.h1,this.a1(),this.f1=null,this.updateAvailableLanguages(i.DEFAULT_CC_DATA),this.l1=document.createElement("div"),this.l1.innerText=d.default.CC_PREVIEW_MESSAGE,E(this.l1).add(r.Preview),E(this.l1).add("vp-vis-hidden");var t=this.n1.getMainElement();return t&&t.appendChild(this.l1),this.syncMenuUI(),this.onPlayerResize(this.n_.uiState),this.s1},t.prototype.syncMenuUI=function(){this.v1(),this.d1(),this.m1()},t.prototype.showActiveContainer=function(t){this.b1&&clearTimeout(this.b1),this.u1&&E(t).add(i.ACTIVATION_CLASSES.OPEN),this.u1&&E(this.u1).add(i.ACTIVATION_CLASSES.OPEN)},t.prototype.hideActiveContainer=function(t){var n=this;this.u1&&E(this.u1).remove(i.ACTIVATION_CLASSES.OPEN),this.u1&&E(t).remove(i.ACTIVATION_CLASSES.OPEN),this.b1&&clearTimeout(this.b1),this.b1=window.setTimeout((function(){n.u1=n.h1}),1e4)},t.prototype.updateCCToggleState=function(t){var n=this.g1.ccToggleNode,e=this.g1.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.w1.forEach((function(t){return t.destroy()})),this._1.forEach((function(t){return t.destroy()})),this.w1=null,this._1=null,this.f1=null,this.E1=null,this.O1=null,this.A1=null,this.g1=null,this.S1=null,this.s1=null,this.h1=null,this.T1=null,this.j1=null,this.u1=null},t.prototype.updateAvailableLanguages=function(t){this.O1=this.O1||[],this.A1=t.selectedLang||this.A1,t&&t.langList&&t.langList.length&&(this.O1=t.langList),this.m1()},t.prototype.onPlayerResize=function(t){t&&t.width&&t.height&&(t.width>=v.HideBreakpointDimensions.WIDTH&&t.height>=v.HideBreakpointDimensions.HEIGHT?this.s1&&E(this.s1).remove(i.ACTIVATION_CLASSES.VISBILITYHIDDEN):this.s1&&E(this.s1).add(i.ACTIVATION_CLASSES.VISBILITYHIDDEN))},t.prototype.I1=function(){var t=this;if(this.M1=this.n1.getCCElement(),this.M1){var n=this.M1.querySelector("span").style,e=this.M1.style;this.l1.style.fontFamily=e.fontFamily,this.l1.style.fontSize=e.fontSize,this.l1.style.top=this.n_.ccUserPreferences.ccPos===o.Top?"5%":"",this.l1.style.bottom=this.n_.ccUserPreferences.ccPos===o.Bottom?"16%":"",this.l1.style.left=e.left||"2.5%",this.l1.style.color=e.color,this.l1.style.textShadow=e.textShadow,this.l1.style.backgroundColor=n.backgroundColor,this.M1.style.visibility="hidden",E(this.l1).add(i.ACTIVATION_CLASSES.ACTIVE),this.N1&&clearTimeout(this.N1),this.N1=window.setTimeout((function(){t.M1.style.visibility="visible",E(t.l1).remove(i.ACTIVATION_CLASSES.ACTIVE)}),2e3)}},t.prototype.e1=function(){var t=l.default.getCCSettingsFromLocalStorage("ccSettingsMenu");t||l.default.saveCCSettingsToLocalStorage({ccSettingsMenu:i.ExtraSettingsDefaultValues}),this.E1=t||i.ExtraSettingsDefaultValues},t.prototype.m1=function(){var t=l.default.getLanguageForCode(this.A1),i=this.g1.languageNode.querySelector(r.Value);i&&(i.innerText=t),this.f1&&"Language"===this.f1&&this.R1(t)},t.prototype.d1=function(){if(this.f1){var t=this.E1[this.f1];this.R1(t)}},t.prototype.R1=function(t){var n=this.j1.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.v1=function(){var t=this,i=this.T1.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.L1(t.E1[e]))&&n.replace(/\s/g,"&nbsp;"))}))},t.prototype.o1=function(){this.h1=this.s1.querySelector(e.Main),this.g1={headerNode:this.h1.querySelector(r.HeaderListItem),ccToggleNode:this.h1.querySelector(r.Toggle),ccToggleLabel:this.h1.querySelector(r.ToggleLabel),languageNode:this.h1.querySelector(r.LanguageListItem)},this.D1()},t.prototype.D1=function(){var t=this;this.w1=[],this.w1.push(new b.default(this.g1.headerNode,(function(){t.C1(e.Extra)}))),this.w1.push(new b.default(this.g1.languageNode,(function(){t.P1(),t.C1(e.Options)}))),this.w1.push(new b.default(this.g1.ccToggleNode,this.U1.bind(this)))},t.prototype.P1=function(){var t=this;this.V1(this.L1("Language"),e.Main);var i=this.j1.querySelector(r.ListOptions);this.O1.forEach((function(n){var e=l.default.getLanguageForCode(n),r=t.B1(!1,e,null);i.appendChild(r),t._1.push(new b.default(r,(function(){t.F1(n)})))})),this.f1="Language",this.m1()},t.prototype.F1=function(t){this.A1=t,this.n1.onlanguageChange(t),this.n1.updateClosedCaptionButtonState(!0),this.m1()},t.prototype.U1=function(){var t=E(this.g1.ccToggleNode).contains(i.ACTIVATION_CLASSES.ON)||!1;this.n1.publish(m.ControlsEvent.TOGGLE_CC,!t,!0),this.n1.updateClosedCaptionButtonState(!t)},t.prototype.a1=function(){var t=this;this.T1=this.s1.querySelector(e.Extra),this.j1=this.s1.querySelector(e.Options),this.S1={headerNode:this.j1.querySelector(r.HeaderListItem),headerValue:this.j1.querySelector(r.Item)},this.w1.push(new b.default(this.T1.firstElementChild,(function(){t.C1(e.Main)})));var i=this.T1.querySelector(r.ListOptions);Object.keys(this.E1).forEach((function(n){var r=t.B1(!0,n,t.L1(t.E1[n]));i.appendChild(r);var s=r.dataset.itemType;t.w1.push(new b.default(r,(function(){t.C1(e.Options),t.z1(s)})))}))},t.prototype.B1=function(t,i,n){var e=this.L1(i);return p.default.render(_,{caratRequired:t,itemContent:e,itemType:i,valueContent:n,valueRequired:!!n})},t.prototype.C1=function(t){var n=this;Object.keys(e).map((function(r){var s=n.s1.querySelector(e[r]);e[r]===t?(E(s).add(i.ACTIVATION_CLASSES.OPEN),n.u1=s):E(s).remove(i.ACTIVATION_CLASSES.OPEN)}))},t.prototype.V1=function(t,i){var n=this;this._1&&this._1.length&&this._1.forEach((function(t){return t.destroy()})),this._1=[];var e=this.j1.querySelector(r.ListOptions),s=e.querySelectorAll(r.ListItem);Array.prototype.forEach.call(s,(function(t){"header"!==t.dataset.itemType&&e.removeChild(t)})),this._1.push(new b.default(this.S1.headerNode,(function(){n.C1(i)}))),this.S1.headerValue.innerText=t},t.prototype.L1=function(t){return y[t]||t},t.prototype.z1=function(t){var i=this;this.V1(this.L1(t),e.Extra);var n=g[t],s=this.j1.querySelector(r.ListOptions);Object.keys(n).map((function(e){var r=i.B1(!1,e,null);s.appendChild(r),i._1.push(new b.default(r,(function(){var r=n[e];i.G1(t,r,e)})))})),this.f1=t,this.R1(this.E1[t])},t.prototype.G1=function(t,i,n){if(this.n_.ccUserPreferences){var e,r=this.n_.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.n1.updateClosedCaptionStyle(e),this.E1[t]=n,l.default.saveCCSettingsToLocalStorage({ccSettings:r,ccSettingsMenu:this.E1}),this.syncMenuUI(),this.I1()}},t}();i.default=O},3792:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(9451),r=n(6342),s=n(3535),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.JH=t,this.n_=i,this.EG=n,this.H1="",this.Y1=null,this.q1=new s.default(document.createElement("span")),this.M1=new s.default(document.createElement("div")).add("vp-cc-element").appendView(this.q1),this.updateCCStyle();var e=this.JH.getMainElement();e&&e.appendChild(this.M1.node)}return t.prototype.updateCCVisibility=function(t){this.M1.addOrRemove("vp-show",t).addOrRemove("vp-hide",!t)},t.prototype.updateCCLiveView=function(t){this.M1.addOrRemove("vp-live-cc",t)},t.prototype.updateClosedCaptionButtonState=function(t){var i;null===(i=this.JH.controls)||void 0===i||i.updateClosedCaptionButtonState(t)},t.prototype.updateCCContent=function(t,i){if(t!==this.H1){this.H1=t;var n=this.M1;if(t){if(this.q1.innerHTML=e.userAgent.tv?t:this.W1(t),i)for(var r=0,s=i;r<s.length;r++){var o=s[r].split(":"),u=o[0],h=o[1];"align"===u&&"start"===h?n.setStyleAttr("textAlign","left"):"line"!==u||this.n_.ccUserPreferences.ccPos?"position"===u&&(n.setStyleAttr("left",h),this.Q1(),n.setStyleAttr("right","")):n.setStyleAttr("top",h)}}else this.q1.innerHTML=""}},t.prototype.updateCCStyle=function(){var t=this.n_.ccUserPreferences;if(this.M1){var i=this.M1,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.q1.setStyleAttr("backgroundColor",s),i.setStyleAttr("textShadow",u),this.X1("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.M1,n=this.n_.getItemId(),e=n?this.EG[n]:null;e&&e.ccAvailable&&!i.contains("vp-hide")&&("bottom"===this.n_.ccUserPreferences.ccPos&&i.addOrRemove("float",!t).addOrRemove("bottom",!t))},t.prototype.adjustCCSizeToScreen=function(t){var i=this,n=this.n_.ccUserPreferences,r=0,s=this.JH.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.Z1=o,this.M1.setStyleAttr("fontSize",this.Z1+"px"),e.userAgent.ios){var u=this.n_.getItemId(),h=u?this.EG[u]:null,a=null==h?void 0:h.tracks;if(!0===t){if(!a||0===a.length)return;this.Y1=null,this.Y1=setInterval((function(){var t=!1;a.forEach((function(i){t="showing"===i.mode})),i.updateClosedCaptionButtonState(t)}),1e3)}else!1===t&&(this.Y1&&window.clearInterval(this.Y1),this.Y1=null)}},t.prototype.X1=function(t){this.M1.addOrRemove("top",t).addOrRemove("bottom",!t)},t.prototype.W1=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.q1.innerHTML=t;var e=Math.floor(this.q1.node.offsetHeight/(this.Z1+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.Q1=function(){var t=parseInt(getComputedStyle(this.M1.node).left,10),i=this.n_.uiState.videoWidth-t-10+"px";this.M1.setStyleAttr("width",i)},t}();i.default=u},8430: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.Controls=i.ControlsEvent=void 0;var s,o=n(1409),u=n(9451),h=n(3072),a=n(954),c=n(1962),f=n(8103),l=n(1279),v=n(4685),d=n(1954),p=n(1204),m=n(4986),b=n(6342),y=n(3641),g=n(297),w=n(514),_=n(5244),E=n(7884),O=n(4915),A=n(9865),S="vp-on",T=d.default.ADV_SHORT.split("{")[0];function j(t){return b.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"}(s=i.ControlsEvent||(i.ControlsEvent={}));var I=function(t){function i(i,n,e,r){var s=t.call(this,"Controls")||this;return s.$U=i,s.JH=n,s.n_=e,s.iH=r,s.J1=!0,s.$U.addEventListener(c.VideoEvent.PLAYING,s.K1,s),s.$U.addEventListener(c.CAST.CAPTION_AVAILABILITY_CHANGED,s.updateClosedCaptionUI,s),s.$U.addEventListener(c.RELATED_ITEM_CLICK,s.cY,s),s.$U.addEventListener(c.FULLSCREEN_CHANGE,(function(t){var i="boolean"==typeof t?t:s.JH.getFullscreen();s.t2(i)}),s),s.$U.addEventListener(h.ExternalEvt.AIRPLAY_AVAILABILITY_CHANGE,(function(t){s.i2&&j(s.i2)[t?"remove":"add"]("vp-hidden")}),s),s.$U.addEventListener(h.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,(function(t){s.i2&&j(s.i2)[t.connected?"add":"remove"]("vp-airplay-on")}),s),s.$U.addEventListener(c.KEYDOWN,s.yY,s),s.$U.addEventListener(h.ExternalEvt.PLAYER_DOCKED_CHANGE,s.n2,s),s.$U.addEventListener(c.CCEvent.TOGGLE,s.updateClosedCaptionButtonState,s),s}return r(i,t),i.prototype.create=function(){var t=this,i=b.default.render(O,{isMobile:u.userAgent.mobile,strings:d.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.EQ=n.bottomBar,this.e2=this.EQ.querySelector(".vp-slider"),this.s2=this.EQ.querySelector(".vp-buffer-bar"),this.o2=this.EQ.querySelector(".vp-time-container"),this.u2=this.EQ.querySelector(".vp-menu-controls"),this.h2=this.EQ.querySelector(".vp-current-time"),this.a2=this.EQ.querySelector(".vp-total-time"),this.f2=this.EQ.querySelector(".vp-handle"),this.l2=this.EQ.querySelector(".vp-playback-bar"),this.v2=this.EQ.querySelector(".vp-play-btn"),this.d2=this.EQ.querySelector(".vp-forward-btn"),this.m2=this.EQ.querySelector(".vp-backward-btn"),this.b2(),this.g2=this.EQ.querySelector(".vp-seek"),this.w2=this.EQ.querySelector(".vp-visual-seek"),this._2=this.EQ.querySelector(".vp-cc-btn"),this.E2=this.EQ.querySelector(".vp-cc-pointer"),this.i2=this.EQ.querySelector(".vp-airplay-btn"),this.O2=this.EQ.querySelector(".vp-fullscreen-btn"),this.A2=this.EQ.querySelector(".vp-volume-btn"),this.S2=this.EQ.querySelector(".vp-volume-bar-container"),this.T2=this.EQ.querySelector(".vp-volume-level"),this.j2=this.EQ.querySelector(".vp-volume-bar"),this.I2=this.EQ.querySelector(".vp-volume-value"),this.M2=this.EQ.querySelector(".vp-volume-handle"),this.N2=n.multiAudioList,this.R2=this.EQ.querySelector(".vp-multiaudio-btn"),this.L2=n.logoContainer,this.D2=n.muteIndicator,this.C2=n.largePlayBtn,this.n_.showPlayButtonOnPause&&(j(this.C2).remove("vp-hide"),this.P2=new w.default(this.C2,(function(i){i.stopPropagation(),t.publish(s.TOGGLE_PLAY_PAUSE)}))),this.U2=n.titleBar,this.V2=this.EQ&&this.EQ.parentNode.querySelector(".vp-playing-item-title-header"),this.B2=n.topBar,this.pK=this.B2&&this.B2.querySelector(".vp-content-type"),this.F2=this.n_.showTitleOnHover;var e=this.O2&&b.default.isOldIeBrowser()&&b.default.isIFrame();if(e=e||!this.n_.showFullscreenButton){var r=document.createElement("div");j(r).add("vp-fullscreen-btn-replacement"),this.O2&&(this.O2.parentNode.insertBefore(r,this.O2),this.O2.parentNode.removeChild(this.O2),this.O2=null)}return this.n_.showPlayButton||(this.v2.parentNode.removeChild(this.v2),this.v2=null),p.default.airplaySupported&&this.n_.casting||this.i2&&this.i2.parentNode&&(this.i2.parentNode.removeChild(this.i2),delete this.i2),this.z2(),!b.default.isOldIeBrowser()&&this.G2(),this.H2(),this.n_.showPlaybackRateControls&&this.Y2(),this.kV(),this._2&&(this.q2?this.q2.createCCBtnTooltip(this._2):!u.userAgent.mobile||u.userAgent.ios||u.userAgent.chrome&&p.default.hasNativeAutoplaySupport||(this._2.style.display="none")),u.userAgent.mobile||delete n.multiAudioList,this.W2(),this.Q2(),n},i.prototype.syncAriaState=function(){var t;this.v2&&this.v2.setAttribute("aria-label",this.n_.isPaused()||(null===(t=this.aY)||void 0===t?void 0:t.state)===_.default.END?d.default.PLAY_VIDEO:d.default.PAUSE_VIDEO),this.O2&&(this.JH.getFullscreen()?this.O2.setAttribute("aria-label",d.default.GO_TO_NORMAL_SCREEN):this.O2.setAttribute("aria-label",d.default.GO_TO_FULLSCREEN)),this.A2&&(j(this.A2).contains("muted")?this.A2.setAttribute("aria-label",d.default.UNMUTE):this.A2.setAttribute("aria-label",d.default.MUTE))},i.prototype.getBottomBar=function(){return this.EQ},i.prototype.onMediaItemLoaded=function(t){this.DG=t.isLive(),this.X2=t.liveState,this.pK.innerHTML="",this.pK.setAttribute("aria-label",""),j(this.pK).add("hide"),"chrome"===t.liveLabel&&j(this.pK).add("vp-nonpersistent"),this.DG?this.Z2():this.J2()},i.prototype.updateVolumeUI=function(t,i,n){void 0===n&&(n=!1),n||("boolean"!=typeof i||m.isNullOrUndefined(i)?this.K2(!t):(this.K2(i),t=i?0:t),this.t4(t))},i.prototype.updateClosedCaptionUI=function(t){this.J1=t,t?(j(this._2).remove("vp-hide"),j(this.i4).remove("vp-hide"),this.n4(d.default.CAPTIONS_AVAILABLE)):(j(this._2).add("vp-hide"),j(this.i4).add("vp-hide"),this.n4(d.default.CAPTIONS_NOT_AVAILABLE))},i.prototype.updateClosedCaptionButtonState=function(t){t?(j(this._2).add(S),this.n4(d.default.CAPTIONS_ON)):(j(this._2).remove(S),this.n4(d.default.CAPTIONS_OFF)),this.e4&&this.e4.updateCCToggleState(t),this.J1||this.n4(d.default.CAPTIONS_NOT_AVAILABLE)},i.prototype.updateAvailableLanguages=function(t){this.e4&&this.e4.updateAvailableLanguages(t)},i.prototype.onPlayerResize=function(t){var i;this.e4&&this.e4.onPlayerResize(t),null===(i=this.r4)||void 0===i||i.onPlayerResize(t),t.width<=a.HideBreakpointDimensions.WIDTH&&t.height<=a.HideBreakpointDimensions.HEIGHT?j(this.s4).add("vp-hide"):j(this.s4).remove("vp-hide"),this.o4&&this.o4.onPlayerResize(t,this.u4)},i.prototype.onlanguageChange=function(t){this.JH&&this.JH.onlanguageChange(t)},i.prototype.updateClosedCaptionStyle=function(t){this.JH&&this.JH.updateClosedCaptionStyle(t)},i.prototype.onMediaItemCurrent=function(t){},i.prototype.onMediaItemPlaybackStarted=function(t){this.DG?this.Z2():this.J2(),this.Q2(),this.h4(),this.W2(),this.a4(),this.N2&&this.f4(),this.l4(),this.v4(t),this.o4&&this.o4.onPlaybackStarted(t);var i=this.n_.uiState.width<=a.HideBreakpointDimensions.WIDTH&&this.n_.uiState.height<=a.HideBreakpointDimensions.HEIGHT;this.o4&&this.o4.shouldEnableSettings()&&!i?j(this.s4).remove("vp-hide"):j(this.s4).add("vp-hide")},i.prototype.onMediaItemPlaybackProgress=function(t){var i=this.aY,n=t.buffered,e=i.currentTime,r=i.playbackMode;n&&this.d4(n),void 0!==e&&r===v.PlaybackMode.VIDEO&&this.m4(e)},i.prototype.onAdBreakStarted=function(){j(this.e2).add("vp-disable"),j(this.d2).add("vp-disable"),j(this.m2).add("vp-disable")},i.prototype.onAdPlaybackStarted=function(){this.Q2(),this.b4(),this.y4(),this.g4(),j(this.e2).add("vp-disable"),j(this.pK).add("hide"),j(this.s4).add("vp-hide"),this.o4&&this.o4.isOpen()&&this.o4.toggleSettings(this.u4)},i.prototype.onAdPlaybackEnded=function(){this.a4(),this.n_.seekControls.show&&(j(this.d2).remove("vp-disable"),j(this.m2).remove("vp-disable")),j(this.e2).remove("vp-disable"),this.o4&&this.o4.shouldEnableSettings()&&j(this.s4).remove("vp-hide")},i.prototype.onAdPlaybackProgress=function(t){var i=t.currentTime,n=t.duration;i&&n&&this.m4(i,!0)},i.prototype.onControlsBarChange=function(t){!this.F2||this.JH.isDocked()&&this.n_.docking.showInfoCard||(t?this.w4():(this._4(),j(this.f2).remove("active"),j(this.e2).remove("vp-thick-slider"),this.y4()))},i.prototype.getCCElement=function(){return this.JH?this.JH.getCCElement():null},i.prototype.getMainElement=function(){return this.JH.getMainElement()},i.prototype.updateCurrentItemTitle=function(t){this.U2.innerHTML=t},i.prototype.onSetPlaybackRate=function(t){var i;null===(i=this.r4)||void 0===i||i.activateItem(t),this.E4&&(this.E4.innerText=t+"x")},i.prototype.addCustomControlElement=function(t){var i=this,n=t.icon||"",e=t.label||"",r=t.className||"",o=document.createElement("div");o.setAttribute("class",r),o.setAttribute("style",'background-image: url("'+n+'")'),o.setAttribute("aria-label",e),o.setAttribute("role","button"),o.setAttribute("tabindex","0"),j(o).add("vp-button"),this.u2.insertBefore(o,this.u2.firstChild),this.publish(s.CUSTOM_ELEMENT,"create",e);return this.O4=new w.default(o,(function(t){t.stopPropagation(),i.publish(s.CUSTOM_ELEMENT,"click",e)})),o},i.prototype.destroy=function(){this.A4&&this.A4.destroy(),this.S4&&this.S4.destroy(),this.T4&&this.T4.destroy(),this.j4&&this.j4.destroy(),this.I4&&this.v2&&(this.I4.destroy(),this.O2&&this.M4&&this.M4.destroy(),this.N4&&this.N4.destroy(),this.R4&&this.R4.destroy(),this.L4&&this.L4.destroy(),this.g4(),this.D4()),this.P2&&this.P2.destroy(),this.gQ&&(this.BQ.removeEventListener("tap",this.FQ),this.gQ.destroy()),this.C4&&this.C4.destroy(),this.O4&&this.O4.destroy(),this.P4&&this.P4.destroy(),this.x4&&this.x4.destroy(),this.D2&&this.U4(),this.JH.getContentNode().removeEventListener("keydown",this.V4,!1),this.B4&&this.B4.destroy(),this.r4&&this.r4.destroy()},i.prototype.n2=function(){var t=this,i=this.n_.logos;i&&!j(this.L2).contains("vp-hide")&&this.L2.querySelector(".vp-logo")&&Object.keys(i).forEach((function(n){var e=t.L2.querySelector(".vp-logo-type-"+n+" img");t.F4(e,i[n])}))},i.prototype.W2=function(){var t=this,i=this.n_.logos;this.L2&&i&&(Object.keys(i).forEach((function(n){i[n]&&t.z4(i[n],n)})),j(this.L2).remove("vp-hide"))},i.prototype.b2=function(){if(this.EQ){u.userAgent.android&&(this.d2.querySelector("svg").setAttribute("transform","scale(1.5, 1.5) translate(4.5, 4.5)"),this.m2.querySelector("svg").setAttribute("transform","scale(1.5, 1.5) translate(4.5, 4.5)"));var t=this.d2.querySelector(".vp-forward-time"),i=this.m2.querySelector(".vp-backward-time");t.innerHTML=i.innerHTML=this.n_.seekControls.offset,this.n_.seekControls.offset<10&&(t.setAttribute("transform","translate(2, 0.4)"),i.setAttribute("transform","translate(1.8, 0.4)"))}},i.prototype.z4=function(t,i){var n=this;if(t&&t.url){var e=this.L2.querySelector(".vp-logo-type-"+i);e||((e=document.createElement("div")).innerHTML="<img />",e.setAttribute("class","vp-logo vp-logo-type-"+i),this.C4=new w.default(e,(function(){return n.publish(s.LOGO_CLICK)})),this.L2.appendChild(e));var r=e.querySelector("img"),o=["bottomLeft","bottomRight","topRight","topLeft","off"],u=t.position&&o.indexOf(t.position)>-1?t.position:"bottomRight",h=j(e),a="vp-logo-";o.forEach((function(t){t!==u&&h.contains(a+t)&&h.remove(a+t)})),t.fadeOut&&/^\d+\.?\d*s$/.test(t.fadeOut)&&(h.add("vp-logo-fadeout"),e.setAttribute("data-fadeout",t.fadeOut)),h.contains(u)||h.add(a+u),t.url&&r.src!==t.url&&(r.src=t.url,this.F4(r,t))}},i.prototype.H2=function(){var t=this;this.o4=new g.default(this.n_),this.s4=this.EQ.querySelector(".vp-setting-btn"),this.u4=this.EQ.querySelector(".vp-setting-pointer"),this.s4&&(this.T4=new w.default(this.s4,(function(){var i,n=t.JH.getAdsOverlayNode();t.o4&&t.o4.toggleSettings(t.u4),n&&j(n).toggle("vp-ads-overlay-bg"),t.e4.hideActiveContainer(t.E2),null===(i=t.r4)||void 0===i||i.openContainer(!1),j(t.G4).add("vp-hide")}))),this.s1=this.o4.create(),this.u2.parentNode.insertBefore(this.s1,this.u2.nextSibling),this.o4.on(g.SettingsEvent.SET_QUALITY,(function(i){t.publish(s.SET_QUALITY,i)}),this),this.o4.on(g.SettingsEvent.UI_INTERACT,(function(i){t.publish(s.UI_INTERACT,i)}),this)},i.prototype.Y2=function(){var t=this;this.H4=this.EQ.querySelector(".vp-pbrate-btn"),this.E4=this.EQ.querySelector(".vp-pbrate-txt"),this.G4=this.EQ.querySelector(".vp-pbrate-pointer"),this.H4&&(j(this.H4).remove("vp-hide"),this.r4=new E.default(this.n_),this.j4=new w.default(this.H4,(function(){var i;(null===(i=t.o4)||void 0===i?void 0:i.isOpen())&&t.o4.toggleSettings(t.u4),t.e4.hideActiveContainer(t.E2),t.r4.openContainer(!t.r4.isOpen()),t.r4.isOpen()?j(t.G4).remove("vp-hide"):j(t.G4).add("vp-hide")})),this.Y4=this.r4.create(),this.u2.parentNode.insertBefore(this.Y4,this.u2.nextSibling),this.r4.on(E.PlaybackRateEvents.SET_PLAYBACK_RATE,(function(i){t.publish(s.SET_PLAYBACK_RATE,i)}),this))},i.prototype.F4=function(t,i){var n=this.JH.isDocked();i&&i.height&&t&&(t.height=n?Math.min(i.height,this.n_.docking.height/10):i.height),i&&i.width&&t&&(t.width=n?Math.min(i.width,this.n_.docking.width/10):i.width)},i.prototype.b4=function(){this.L2&&j(this.L2).add("vp-hide")},i.prototype.q4=function(){var t=this.L2.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 "+r+" ease-in-out "+r+", opacity "+r+" ease-in-out",visibility:"hidden"})}},i.prototype.W4=function(t){var i=this;!this.n_.autoplay||this.JH.isDocked()&&this.n_.docking.showInfoCard||(j(this.U2).add("vp-title-standard"),this.Q4(!0),this.X4=window.setTimeout((function(){j(i.U2).add("vp-hide"),i.Z4(t)}),6e3))},i.prototype.h4=function(){this.X4&&clearTimeout(this.X4),this.J4=null;var t=this.DW(),i=t&&t.title||"";switch(this.K4(),this.updateCurrentItemTitle(i),j(this.U2).remove("vp-title-standard"),j(this.U2).remove("vp-secondary"),j(this.U2).remove("vp-hide"),this.J4&&this.V2&&(j(this.V2).remove("vp-title-header-standard"),j(this.V2).remove("vp-hide")),this.n_.showTitleOnStart||""){case"fadeoutall":this.W4(!0);break;case"standard":this.W4(!1)}},i.prototype.K4=function(){var t=this.V2;if(this.t3()){var i=this.J4,n=i&&i.open_label||i&&i.label||"";t.innerHTML=this.i3(n)}else t&&""!==t.innerHTML&&(t.innerHTML="",j(t).add("vp-hide"))},i.prototype.Q4=function(t){if(this.t3()){var i=j(this.V2);i.remove("vp-hide"),i.add("vp-title-header-standard"),j(this.U2).add("vp-secondary"),t?i.add("vp-title-shown"):i.remove("vp-title-shown")}},i.prototype.Z4=function(t){var i=this;if(this.n3&&clearTimeout(this.n3),this.e3&&clearTimeout(this.e3),this.t3()){var n=this.V2,e=j(n);e.remove("vp-title-shown"),e.add("vp-hide");var r=this.J4,s=r&&r.label||"";this.n3=window.setTimeout((function(){n.innerHTML=i.i3(s),e.remove("vp-hide"),t&&(i.e3=window.setTimeout((function(){n.innerHTML="",e.add("vp-hide")}),5e3))}),300)}},i.prototype.t3=function(){return!(!this.V2||!this.J4)},i.prototype.i3=function(t){if(!t||""===t)return"";return""+t.replace(/\*\*([^\*]+(\s[^\*]+)*)\*\*/gi,"<strong>$1</strong>")},i.prototype.w4=function(){j(this.U2).add("vp-title-standard"),j(this.U2).remove("vp-hide"),this.Q4(!0)},i.prototype._4=function(){j(this.U2).add("vp-title-standard"),j(this.U2).add("vp-hide"),this.Q4(!1)},i.prototype.Z2=function(){j(this.e2).add("vp-disable"),j(this.d2).add("vp-disable"),j(this.m2).add("vp-disable"),j(this.o2).add("vp-hide"),this.X2&&"live"===this.X2&&(this.pK.innerHTML=d.default.LIVE,this.pK.setAttribute("aria-label",d.default.LIVE),j(this.pK).remove("hide"),j(this.U2).add("vp-live"))},i.prototype.J2=function(){j(this.e2).remove("vp-disable"),this.n_.seekControls.show?(j(this.d2).remove("vp-disable"),j(this.m2).remove("vp-disable")):(j(this.d2).add("vp-disable"),j(this.m2).add("vp-disable")),j(this.o2).remove("vp-hide"),j(this.U2).remove("vp-live")},i.prototype.kV=function(){var t=this;if(this.v2){this.I4=new w.default(this.v2,(function(i){i.stopPropagation();var n=t.JH.getCurrentViewState(),e=t.DW(),r=e&&e.id,o=t.n_.isPaused()?"ctrl-play-btn":"ctrl-pause-btn";"end-screen"===n?(t.$U.publish(c.RELATED_ITEM_CLICK,r,-1,!1,!1),t.r3()):(t.publish(s.UI_INTERACT,{srcElement:o}),t.publish(s.TOGGLE_PLAY_PAUSE))}))}if(this.O2){this.M4=new w.default(this.O2,(function(i){i.stopPropagation(),t.JH.toggleFullscreen(),t.publish(s.UI_INTERACT,{srcElement:"ctrl-fullscr-btn"})}))}this.s3=new w.default(this.EQ,(function(t){t.stopPropagation()})),this.i2&&(this.S4=new w.default(this.i2,(function(){t.JH.showAirplayTargetMenu(),t.publish(s.UI_INTERACT,{srcElement:"ctrl-airplay-btn"})}))),this.R2&&(this.x4=new w.default(this.R2,(function(){j(t.N2).remove("vp-hidden"),t.publish(s.UI_INTERACT,{srcElement:"ctrl-multi-audio-btn"})}))),this.o3(),this.V4=function(i){t.$U.publish(c.KEYDOWN,{keyCode:i.keyCode,shiftDown:i.shiftKey,ctrlDown:i.ctrlKey,altDown:i.altKey,target:i.target,preventDefault:function(){i.preventDefault()}})},this.JH.getContentNode().addEventListener("keydown",this.V4,!1),this.B4=new w.default(this.e2,(function(t){t.stopPropagation()})),this.a4(),this.u3(),this.h3(),this.a3()},i.prototype.G2=function(){this.e4=new y.default(this,this.n_),this.i4=this.e4.create(),u.userAgent.mobile&&j(this.i4).add("vp-hide"),this.u2.parentNode.insertBefore(this.i4,this.u2.nextSibling)},i.prototype.o3=function(){var t=this;this._2&&(this.A4=new w.default(this._2,(function(i){if(i.stopPropagation(),t.J1){var n=!j(t._2).contains(S),e="cc-"+(n?"on":"off")+(!(!t.n_.castState||!t.n_.castState.connected)?"-cast":"");t.publish(s.UI_INTERACT,{srcElement:e}),t.publish(s.TOGGLE_CC,n,!0),t.updateClosedCaptionButtonState(n)}})),this.e4&&this.f3())},i.prototype.f3=function(){var t=this;this.l3=null;this.v3=function(i){var n=t.JH.getAdsOverlayNode();u.userAgent.mobile||t.o4&&t.o4.isOpen()||(t.d3(i),t.e4.showActiveContainer(t.E2),n&&j(n).add("vp-ads-overlay-bg"),j(t.S2).remove("open"))},this.m3=function(i){var n=t.JH.getAdsOverlayNode();t.d3(i),t.l3&&clearTimeout(t.l3),t.l3=window.setTimeout((function(){t.e4.hideActiveContainer(t.E2),n&&j(n).remove("vp-ads-overlay-bg")}),1e3)},this.b3=function(i){u.userAgent.mobile||(t.d3(i),t.l3&&clearTimeout(t.l3))},this.y3(this._2,this.v3,this.m3),this.y3(this.i4,this.b3,this.m3)},i.prototype.n4=function(t){this.q2&&this.q2.updateCCTooltip(t)},i.prototype.cY=function(){var t=this.DW(),i=t&&t.title||"";this.r3(),this.K4(),this.updateCurrentItemTitle(i)},i.prototype.r3=function(){this.h2.innerHTML="0:00",this.a2.innerHTML="0:00"},i.prototype.t2=function(t){this.O2&&(t?(j(this.O2).add("fullscreen"),this.g3(d.default.EXIT_FULLSCREEN)):(j(this.O2).remove("fullscreen"),this.g3(d.default.FULLSCREEN_SPACE))),this.w3(t),this.syncAriaState()},i.prototype.g3=function(t){if(this.O2){var i=this.O2.querySelector(".vp-tooltip-content");i&&(i.innerHTML=t)}},i.prototype.u3=function(){var t=this;if(this.n_.seekControls.show){this.R4=new w.default(this.d2,(function(i){i.stopPropagation(),t.publish(s.FORWARD_SEEK),t.publish(s.UI_INTERACT,{srcElement:"ctrl-forward-seek-btn"})}));this.L4=new w.default(this.m2,(function(i){i.stopPropagation(),t.publish(s.BACKWARD_SEEK),t.publish(s.UI_INTERACT,{srcElement:"ctrl-backward-seek-btn"})}))}},i.prototype.a4=function(){var t=this;this.g2&&(this.N4=new w.default(this.g2,(function(i){i.stopPropagation();var n=t.g2,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,o=Math.min(r*t.HX,Math.max(t.HX-1,0));t.publish(s.SEEK,o)}))),this._3=function(i){var n=t.JH.getAdsOverlayNode();t.$U.publish(c.SEEK_BAR_MOUSEOVER,i),j(t.f2).add("active"),j(t.e2).add("vp-thick-slider"),n&&j(n).add("vp-ads-overlay-bg"),t.E3(i),t.d3(i)},this.O3=function(i){var n=t.JH.getAdsOverlayNode();t.$U.publish(c.SEEK_BAR_MOUSEOUT,i),j(t.f2).remove("active"),j(t.e2).remove("vp-thick-slider"),n&&j(n).remove("vp-ads-overlay-bg"),t.y4(),t.d3(i)},this.y3(this.e2,this._3,this.O3),this.A3=function(i){if(!isNaN(t.HX)){j(t.f2).add("active"),t.d3(i),t.iS=!0,t.$U.publish(c.CONTROLS_SEEK_START);var n=t.S3(i),e=Math.min(n*t.HX,Math.max(t.HX-1,0));t.$U.publish(c.CTRL_SEEK,Math.round(e)),t.T3(i)}},this.T3=function(i){if(t.iS){t.d3(i),j(t.EQ).add("vp-drag"),j(t.f2).add("active"),j(t.e2).add("vp-thick-slider"),t.E3(i);var n=t.S3(i),e=Math.min(n*t.HX,Math.max(t.HX-1,0));e=e>1?e:1;var r="";r=t.n_.sliderColor?"width: "+100*n+"%; background-color: "+t.n_.sliderColor+";":"width: "+100*n+"%;",t.l2.setAttribute("style",r),t.s2.setAttribute("style","width: 0%;"),t.f2.setAttribute("style","left: "+100*n+"%;"),t.$U.publish(c.CONTROLS_SEEKING,e)}},this.j3=function(i){t.iS&&(j(t.EQ).remove("vp-drag"),j(t.f2).remove("active"),j(t.e2).remove("vp-thick-slider"),t.y4(),t.d3(i),t.iS=!1,t.$U.publish(c.CONTROLS_SEEK_END))},this.I3(this.e2,this.A3,this.T3,this.j3)},i.prototype.g4=function(){this.M3(this.e2,this._3,this.O3),this.N3(this.e2,this.A3,this.T3,this.j3)},i.prototype.d3=function(t){-1!==t.type.indexOf("touch")&&t.preventDefault()},i.prototype.v4=function(t){var i=this,n=t.adBreaks,e=t.duration;n&&0===n.length||!m.isNumber(e)||0===e||b.default.getAdBreakStartOffset(n).forEach((function(t){if(t.type===f.AdBreakType.MIDROLL||t.type===f.AdBreakType.POSTROLL){var n=document.createElement("div");j(n).add("vp-ad-break"),n.style.left=t.startOffset/e*100+"%",i.e2.appendChild(n)}}))},i.prototype.l4=function(){for(var t=this.e2.querySelectorAll(".vp-ad-break"),i=0;i<t.length;i++)this.e2.removeChild(t[i])},i.prototype.K1=function(){this.q4()},i.prototype.yY=function(t){var i,n=this.aY,e=this.n_.volume,r=n.currentTime,o=this.HX,u=n.playbackMode;switch(t.keyCode){case 13:this.$U.publish(c.TOGGLE_PLAY_PAUSE);break;case 27:this.JH.updateViewOnEscPress();break;case 32:t.preventDefault(),this.$U.publish(c.TOGGLE_PLAY_PAUSE);break;case 37:t.preventDefault(),u!==v.PlaybackMode.VIDEO||this.DG||(i=r-5,this.$U.publish(c.CONTROLS_SEEKING,i>=0?i:0));break;case 38:t.preventDefault();var h=e+.05,a=h>1?1:h;this.R3(a);break;case 39:t.preventDefault(),u!==v.PlaybackMode.VIDEO||this.DG||(i=r+5,this.publish(s.SEEK,i<=o?i:o));break;case 40:t.preventDefault();var f=e-.05;a=f<0?0:f;this.R3(a);break;case 67:if(this._2&&b.default.isDisplayed(this._2)){var l=!j(this._2).contains(S);this.publish(s.TOGGLE_CC,l,!0)}break;case 70:this.O2&&b.default.isDisplayed(this.O2)&&this.JH.toggleFullscreen();break;case 77:this.publish(s.SET_MUTE,!this.n_.mute)}if(t.keyCode>=48&&t.keyCode<=57){var d=(t.keyCode-48)/10;o>0&&this.$U.publish(c.CONTROLS_SEEKING,o*d)}},i.prototype.m4=function(t,i){var n=Math.min(t/this.HX*100,100);if(this.h2&&m.isNumber(t)&&m.isNumber(this.HX)&&(this.h2.innerHTML=(i?T:"")+b.default.formatTime(t)),this.a2&&m.isNumber(this.HX)&&(this.a2.innerHTML=b.default.formatTime(this.HX)),m.isNumber(t)&&m.isNumber(this.HX)){var e="";e=this.n_.sliderColor?"width: "+n+"%; background-color: "+this.n_.sliderColor+";":"width: "+n+"%;",this.l2.setAttribute("style",e),this.iS||this.f2.setAttribute("style","left: "+n+"%;"),this.e2.setAttribute("aria-valuemax",this.HX.toString()),this.e2.setAttribute("aria-valuenow",t.toString()),this.e2.setAttribute("aria-valuetext",b.default.formatTime(t)+" of "+b.default.formatTime(this.HX))}},i.prototype.d4=function(t){var i=0;t.length>0&&(i=t.end(0)/this.HX*100),this.s2.setAttribute("style","width: "+i+"%;")},i.prototype.L3=function(t,i){if(!(this.iH&&t&&i&&i.mimetype))return null;if(!this.D3){var n=this.iH.getPlugin(l.PluginType.VISUAL_SEEK,i.mimetype);this.D3=n}return this.D3&&!this.D3.canSeek(t)&&this.D3.update(t,i),this.D3},i.prototype.E3=function(t){var i=this,n=this.DW(),e=this.L3(n.id,n.visualSeekData);if(e){var r=this.S3(t),s=r*n.getRawDuration(),o=r*n.duration,u=e.getThumbnailData(n.id,s);if(u&&u.url)if(!j(this.JH.getContentNode()).contains("vp-hide-controls")){var h;h=r<.09?.09:r>.91?.91:r,this.w2.style.display="block",this.w2.style.left=100*h+"%";var a=this.w2.querySelector(".vp-vs-time");a&&(a.innerHTML=b.default.formatTime(o));var c=u.height,f=u.index,v=u.url,d=u.width,p=u.isAd,m=this.w2.querySelector(".vp-vs-thumbnail");if(!p)if(m.innerHTML="",e.visualSeekType===l.VisualSeekType.SPRITE){m.style.background="url("+v+")";var y=f%100,g=y%10*d,w=Math.floor(y/10)*c;m.style.backgroundPosition="-"+g+"px -"+w+"px"}else this.C3=v,this.P3=this.P3||setTimeout((function(){var t=i.w2.querySelector(".vp-vs-thumbnail");i.C3&&(t.style.background="url("+i.C3+")"),clearTimeout(i.P3),i.P3=null}),50)}}},i.prototype.I3=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.N3=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.y3=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.M3=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.Q2=function(){this.A2&&this.updateVolumeUI(this.n_.volume,this.n_.mute)},i.prototype.x3=function(){var t=this;this.U3=new w.default(this.A2,(function(i){if(!t.V3){i.stopPropagation(),t.B3(),t.JH.clearAutoHideTimeout(),t.F3&&clearTimeout(t.F3);var n=!t.n_.mute;t.publish(s.UI_INTERACT,{srcElement:"ctrl-mute-btn-"+(n?"on":"off")}),t.publish(s.SET_MUTE,n),t.z3(n)}}))},i.prototype.G3=function(){var t=this,i=function(i){var n,e=function(i){var n;return n=t.JH.getFullscreen()&&(u.userAgent.chrome||u.userAgent.safari)?i.pageX-b.default.getOffsetLeftFromEl(t.T2,a.VIDEO_MAIN_ELEMENT_CLASS):i.pageX-b.default.getOffsetLeftFromDocument(t.T2),t.T2.getBoundingClientRect().left?Math.max(0,Math.min(1,n/t.T2.clientWidth)):0}(i);n=0===e,t.n_.mute!==n&&(t.publish(s.UI_INTERACT,{srcElement:"ctrl-mute-btn-"+(n?"on":"off")}),t.publish(s.SET_MUTE,n)),t.publish(s.SET_VOLUME,e),t.publish(s.UI_INTERACT,{srcElement:"ctrl-volume-bar",volume:e})};this.H3=new w.default(this.T2,(function(n){n.stopPropagation(),t.B3(),i(n)})),this.Y3=function(i){t.d3(i),t.V3=!0,t.B3(),t.q3(i)},this.q3=function(n){t.V3&&(t.d3(n),t.B3(),i(n),t.W3(n))},this.Q3=function(i){t.V3&&(t.d3(i),t.V3=!1)},this.I3(this.T2,this.Y3,this.q3,this.Q3)},i.prototype.a3=function(){var t,i=this;this.X3=function(n){n.stopPropagation(),t||(t=window.setTimeout((function(){i.publish(s.UI_INTERACT,{srcElement:"ctrl-mute-btn-off"}),t=null}),600))},this.D2&&(["mouseenter","touchstart"].forEach((function(t){i.D2.addEventListener(t,i.X3)})),["mousemove","touchmove"].forEach((function(t){i.D2.addEventListener(t,i.X3)})))},i.prototype.U4=function(){var t=this;this.D2&&(["mouseenter","touchstart"].forEach((function(i){t.D2.removeEventListener(i,t.X3)})),["mousemove","touchmove"].forEach((function(i){t.D2.removeEventListener(i,t.X3)})))},i.prototype.z3=function(t){this.n_.ccOnMute&&(t?this.publish(s.TOGGLE_CC,!0,!1):this.publish(s.TOGGLE_CC,!1,!1),this.updateClosedCaptionButtonState(t))},i.prototype.B3=function(){this.M2&&j(this.M2).add("show")},i.prototype.Z3=function(){var t=this;this.F3=null;var i=!1;this.W3=function(n){var e=t.JH.getAdsOverlayNode();t.d3(n),t.o4&&t.o4.isOpen()||t.r4&&t.r4.isOpen()||(j(t.S2).add("open"),e&&j(e).add("vp-ads-overlay-bg"),i||(t.Q2(),i=!0),t.B3(),t.e4&&t.e4.hideActiveContainer(t.E2))},this.J3=function(i){var n=t.JH.getAdsOverlayNode();t.d3(i),t.F3&&clearTimeout(t.F3),t.F3=window.setTimeout((function(){j(t.S2).remove("open"),n&&j(n).remove("vp-ads-overlay-bg")}),500)},this.K3=function(i){t.d3(i),t.F3&&clearTimeout(t.F3)},this.y3(this.A2,this.W3,this.J3),this.y3(this.S2,this.K3,this.J3)},i.prototype.h3=function(){var t=this;this.A2&&this.x3(),this.S2&&this.A2&&(this.G3(),this.Z3()),this.N2&&(this.P4=new w.default(this.N2,(function(i){i.stopPropagation();var n=b.default.findClosest(i.eventTarget,".vp-audio-item",t.N2);if(n){var e=t.N2.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(s.SET_AUDIO_LANGUAGE,n.getAttribute("data-name"),r)}else"close"===i.eventTarget.getAttribute("data-action")&&j(t.N2).add("vp-hidden")})))},i.prototype.D4=function(){this.A2&&this.U3.destroy(),this.S2&&(this.H3.destroy(),this.N3(this.S2,this.Y3,this.q3,this.Q3),this.M3(this.A2,this.W3,this.J3),this.M3(this.S2,this.K3,this.J3))},i.prototype.K2=function(t){var i=this.JH.getContentNode();this.A2&&(t?(j(this.A2).add("muted"),j(i).add("vp-muted")):(j(this.A2).remove("muted"),j(i).remove("vp-muted"))),this.syncAriaState()},i.prototype.t4=function(t){if(this.j2){var i=Math.ceil(100*t),n=100-i;this.j2.setAttribute("style","width:"+i+"%"),this.I2.setAttribute("style","width:"+n+"%")}if(this.M2){var e=0;try{e=parseInt(window.getComputedStyle(this.T2).width,10)}catch(t){}var r=Math.ceil(t*(e-this.M2.offsetWidth/2));this.M2.setAttribute("style","left:"+r+"px")}},i.prototype.f4=function(){var t=this.DW();t&&t.isMultiAudioAvailable()?(this.t5(),j(this.S2).add("vp-multi-audio-available"),this.R2&&j(this.R2).remove("vp-hidden")):(j(this.S2).remove("vp-multi-audio-available"),this.R2&&j(this.R2).add("vp-hidden"),this.N2.innerHTML="")},i.prototype.t5=function(){var t=this.DW(),i=b.default.render(A,{isMobile:u.userAgent.mobile,items:t&&t.languages||[],Strings:d.default});this.N2.appendChild(i)},i.prototype.S3=function(t){var i=((t.clientX||t.touches&&t.touches[0]&&t.touches[0].clientX||t.pageX)-this.e2.getBoundingClientRect().left)/this.e2.clientWidth;return Math.max(0,Math.min(1,i))},i.prototype.y4=function(){this.w2.style.display="none",this.C3=""},i.prototype.w3=function(t){var i=this.JH.getContentNode(),n=this.JH.isStreamMode()||this.JH.isMiniStreamMode(),e=this.JH.isMiniStreamMode()?"vp-ministream":"vp-stream";n&&(t?j(i).remove(e):(j(i).add(e),this.q2&&this.q2.resetSettings()))},i.prototype.z2=function(){this.v2&&this.v2.setAttribute("aria-label",d.default.PLAY_VIDEO),this.e2.setAttribute("aria-label",d.default.SEEK_SLIDER),this.e2.setAttribute("aria-valuemin","0"),this.O2&&this.O2.setAttribute("aria-label",d.default.GO_TO_FULLSCREEN),this.A2&&(j(this.A2).contains("muted")?this.A2.setAttribute("aria-label",d.default.UNMUTE):this.A2.setAttribute("aria-label",d.default.MUTE))},Object.defineProperty(i.prototype,"HX",{get:function(){return this.aY.duration},enumerable:!1,configurable:!0}),i.prototype.DW=function(){return this.n_.playlist.getCurrentItem()},Object.defineProperty(i.prototype,"aY",{get:function(){return this.n_.playbackState},enumerable:!1,configurable:!0}),i.prototype.R3=function(t){this.publish(s.SET_VOLUME,t),this.publish(s.KEY_CHANGE_VOLUME,{volume:t})},i}(o.default);i.Controls=I},9541: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.i5=[],this.n5=0,this.e5=0,this.r5=[],this.eH=i,this._h=t,this.s5=e[this._h],this.o5(),this.u5(),this.dQ=n,this.h5()}return t.prototype.destroy=function(){document.removeEventListener("keydown",this.a5,!1),document.removeEventListener("touchstart",this.c5,!1),document.removeEventListener("touchmove",this.f5,!1),document.removeEventListener("touchend",this.l5,!1),this.dQ.removeEventListener("touchstart",this.v5,!1),this.dQ.removeEventListener("touchend",this.d5,!1)},t.prototype.u5=function(){var t=this;this.n5=0,this.e5=0,this.s5.forEach((function(i){i.length=i.combination.length,i.value=i.length?i.combination.toString():null,i.length>t.e5&&(t.e5=i.length)})),this.a5=this.yY.bind(this),document.addEventListener("keydown",this.a5,!1)},t.prototype.yY=function(t){var i=this;this.n5=t.altDown||t.altKey?this.n5+1:0,this.r5.push(t.keyCode),this.r5.length>this.e5&&this.r5.shift(),this.s5.some((function(t){var n=i.r5.slice(Math.max(i.r5.length-t.length,0)).toString()===t.value;return t.alt?n&&i.n5>t.length:n}))&&this.eH()},t.prototype.c5=function(t){this.p5=t.changedTouches[0].pageX,this.m5=t.changedTouches[0].pageY,this.b5=0,this.y5=0},t.prototype.f5=function(t){if(1===t.touches.length){var i=t.touches[0];this.b5=i.pageX,this.y5=i.pageY}},t.prototype.l5=function(){var t,i=r[this._h];this.b5||this.y5?t=Math.abs(this.p5-this.b5)>Math.abs(this.m5-this.y5)?this.p5-this.b5<0?n.RIGHT:n.LEFT:this.m5-this.y5<0?n.DOWN:n.UP:t=n.TAP;this.i5.push(t),this.i5.length>i.length&&this.i5.shift(),this.i5.length===i.length&&this.i5.every((function(t,n){return t===i[n]}))&&this.eH()},t.prototype.o5=function(){this.c5=this.c5.bind(this),this.f5=this.f5.bind(this),this.l5=this.l5.bind(this),document.addEventListener("touchstart",this.c5,!1),document.addEventListener("touchmove",this.f5,!1),document.addEventListener("touchend",this.l5,!1)},t.prototype.v5=function(t){var i=this;this.g5||2!==t.touches.length||(this.g5=window.setTimeout((function(){i.eH(),i.g5=null}),3e3))},t.prototype.d5=function(){this.g5&&(window.clearTimeout(this.g5),this.g5=null)},t.prototype.h5=function(){this.v5=this.v5.bind(this),this.d5=this.d5.bind(this),this.dQ.addEventListener("touchstart",this.v5,!1),this.dQ.addEventListener("touchend",this.d5,!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(9451),u=n(3872),h=n(1962),a=n(4685),c=n(1954),f=n(1204),l=n(4986),v=n(6609),d=n(3535),p=n(9215),m=n(446),b=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){var n=this;void 0===t&&(t=""),this.w5=t,this.eX=".vp-section-expand-",this._5=w+"current-",this.eX+=this.w5,this._5+=this.w5,this.E5=i.select(this.eX),this.O5=i.select(this._5),this.E5.onTap((function(){var t="vp-hide",i="vp-expanded",e="vp-collapsed",r=n.O5.contains(t);n.O5.addOrRemove(t,!r),n.E5.remove(r?i:e).add(r?e:i)}))}return t.prototype.render=function(t){},t.prototype.destroy=function(){this.O5.destroy(),this.E5.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,s=(null===(r=null===(e=null===(n=null===(i=window)||void 0===i?void 0:i.YAHOO)||void 0===n?void 0:n.CorePlayer)||void 0===e?void 0:e.VideoPlatform)||void 0===r?void 0:r.PlayerHosting)||"local";this.O5.select(w+this.w5).innerHTML=JSON.stringify(s,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.O5.select(w+this.w5).innerHTML=i},i}(_),A=function(t){function i(i){return t.call(this,"context",i)||this}return r(i,t),i.prototype.render=function(t){var i=this.O5,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}(_),S=function(t){function i(i){return t.call(this,"config",i)||this}return r(i,t),i.prototype.render=function(t){this.O5.select(w+"profile").innerHTML=JSON.stringify(t.config,void 0,2)},i}(_),T=function(){function t(t){this.w5=t,this._u=[],this.A5=[]}return t.prototype.push=function(t,i){this._u.push(parseFloat(t)),this.A5.push(i)},t.prototype.render=function(t){if(this._u.some((function(t){return l.isNumber(t)}))){var i=new d.default(document.createElement("div"));i.innerText=this.w5;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.S5(e,150,60)}},t.prototype.S5=function(t,i,n){var e=t.getContext("2d");if(e){for(var r=this._u.length-1,s=0,o=this.A5[r],u=this._u[r],h=u,a=r-1;a>=0;a--)if(u=Math.min(u,this._u[a]),h=Math.max(h,this._u[a]),a>0&&o-this.A5[a-1]>45){s=a;break}var c=this.A5[s];u>0&&(u=0),u===h&&(h=u+1),e.save(),e.translate(40,n),e.scale((i-40)/45,-1*n/(h-u)),e.beginPath(),e.moveTo(0,this._u[s]-u);for(var f=s+1;f<this._u.length;f++)e.lineTo(this.A5[f]-c,this._u[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(h.toFixed(1),0,10),e.fillText(u.toFixed(1),0,60)}},t}(),j=function(t){function i(i,n){var e=t.call(this,p,{version:i.version,strings:c.default})||this;return e.T5=[],e.n_=i,e.j5=n,e.I5={},e.M5={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.N5(),e.R5=e.k5(w+"close-btn",(function(){e.close()})),e.L5=e.k5(".vp-profile-btn",(function(){e.D5(e.n_.inputConfig)})),e.C5(),e.T5.push(new S(e.view)),e.T5.push(new O(e.view)),e.T5.push(new E(e.view)),e.T5.push(new A(e.view)),e.P5="invalid",e}return r(i,t),i.prototype.render=function(t){this.x5(t);var i={plugins:this.j5,config:this.n_.inputConfig};this.T5.forEach((function(t){return t.render(i)})),this.U5(),this.V5(),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.B5()},i.prototype.onPlaybackInfo=function(t){this.I5=t;var i=Date.now()/b;this.M5.bitrate.push(t.currentStreamBitrate,i),this.M5.speed.push(t.currentKbps,i),this.M5.bufferLength.push(t.bufferLength,i),this.M5.frameRate.push(t.frameRate?t.frameRate:0,i),this.V5()},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.P5=n,this.V5()},i.prototype.onPlaylistPositionChange=function(){this.U5()},i.prototype.onRendererSwitch=function(t,i){this.x5(i),this.U5(),this.V5()},i.prototype.onVideoEvent=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];switch(t){case h.VideoEvent.PLAYING:case h.VideoEvent.PAUSE:case h.VideoEvent.SEEKING:case h.VideoEvent.SEEKED:this.F5(w+"playback",t)}},i.prototype.destroy=function(){this.B5(),this.R5&&this.R5.destroy(),this.L5&&this.L5.destroy(),this.z5.destroy(),this.G5.destroy(),this.H5.destroy(),this.T5.forEach((function(t){return t.destroy()})),t.prototype.destroy.call(this)},i.prototype.Y5=function(t){return this.view.select(t)},i.prototype.N5=function(){var t=this;this.z5=new u.Timer(b,(function(){t.F5(w+"network",["network empty","network idle","network loading","network no source"][t.q5.networkState])}),this),this.G5=new u.Timer(b,(function(){t.F5(w+"state",t.n_.getState())}),this),this.H5=new u.Timer(b,(function(){t.F5(w+"ready",["have nothing","have metadata","have current data","have future data","have enough data"][t.q5.readyState])}),this)},i.prototype.F5=function(t,i){var n=this.Y5(t);n&&(n.innerHTML=i)},i.prototype.k5=function(t,i){return this.Y5(t).onTap((function(t){t.stopPropagation(),i()}))},i.prototype.x5=function(t){t&&(this.q5=t.node,this.W5()&&this.Q5())},i.prototype.X5=function(t,i,n){this.Y5(t).innerHTML=y+i+g+n},i.prototype.D5=function(t){var i;try{i=JSON.parse(JSON.stringify(t))}catch(t){i={}}var n=d.default.build(m,{config:JSON.stringify(i,null,2)}).node.innerHTML;if(o.userAgent.mobile)document.write(n);else{var e=window.open();e&&e.document.write(n)}},i.prototype.W5=function(){return o.userAgent.tv||o.userAgent.safari},i.prototype.Z5=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.J5=function(t,i){var n=this,e="";return Object.keys(t).forEach((function(r){var s=t[r];s&&"object"==typeof s?isNaN(r)?(e+="<div>"+r+" :</div>",e+='<div style="padding-left: 10px">'+n.J5(s)+"</div>"):e+="<div>"+n.J5(s,r)+"</div>":e+="<div>"+(i?i+" : ":"")+r+" : "+s+"</div>"})),e},i.prototype.K5=function(t){return'<div class="vp-opss-title">'+t+"</div>"},i.prototype.C5=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.F5(w+"platform",this.Z5(t))},i.prototype.U5=function(){var t=this.n_.playlist.getCurrentItem(),i="",n="none",e=this.q5?this.q5.currentSrc:"";t&&(i=t.id,n=t.videoSession),this.X5(w+"uuid","UUID",i),this.X5(".vp-sessionId","SessionId",n),this.W5()&&this.F5(w+"url","Current Source URL : "+e)},i.prototype.V5=function(){var t=this.n_.playlist.getCurrentItem(),i=this.I5,n=i.deliveryProtocol;for(var e in t&&(n+=" / "+t.getType()),this.F5(w+"graphs",""),this.M5)this.M5[e].render(this.view);var r={"Total Quality Levels":i.qualityLevels,"Encoding Method":t&&t.streams.length>0?t.streams[0].rcMode:"na","Current Bitrate":i.currentStreamBitrate+" kbps",Protocol:n,CDN:t?t.getCDN():"","Recovery count":t?t.failoverCount:0,"Buffer Length":i.bufferLength+" secs","Frame Rate":i.frameRate,"Download Speed":i.currentKbps+" kbps","Dropped Frames":i.droppedFrames,"Media Size":i.mediaWidth+" x "+i.mediaHeight,"Buffering Count":0,"Total buffering time":"",Protected:i.drm?"Yes":"No","Sync State":this.P5};t&&t.rendererType===a.RendererType.HTML5_HLS&&(r["Buffering Count"]=i.bufferingCount,r["Total buffering time"]=i.totalBufferingTime+" ms");var s=this.n_.playbackState.rendererType||"(no renderer yet)";s=s===a.RendererType.HTML5_HLS?s+" "+this.n_.jshlsVersion:s,this.F5(w+"detail",this.Z5(r)),this.X5(w+"renderertype","Renderer Type",s)},i.prototype.Q5=function(){var t=this.Y5(w+"tv");if(t){var i='<div class="vp-opss-url"></div>'+this.K5("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.Z5(r),t.innerHTML=i,this.t9()}},i.prototype.t9=function(){this.G5.start(),o.userAgent.samsung||(this.z5.start(),this.H5.start())},i.prototype.B5=function(){this.G5.stop(),this.z5.stop(),this.H5.stop()},i}(v.default);i.default=j},43:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(3535),r=function(){function t(t){this.f0=new e.default(document.createElement("canvas")),this.i9=this.f0.node.getContext("2d"),this.f0.setSize("80","80").add("vp-360-pie"),t.appendChild(this.f0.node),this.n9=1,this.S5()}return t.prototype.addClickListener=function(t){this.e9=function(i){i.preventDefault(),i.stopPropagation(),t&&t()},this.r9=function(t){t.preventDefault(),t.stopPropagation()},this.f0.addEventListener("click",this.e9,!1).addEventListener("mousedown",this.r9,!1).addEventListener("mouseup",this.r9,!1)},t.prototype.update=function(t){var i=t%360;i<0&&(i=360+i),i*=-1,this.n9=i/90+Math.PI/4-3.79,this.S5()},t.prototype.destroy=function(){this.f0.removeEventListener("click",this.e9,!1).removeEventListener("mousedown",this.r9,!1).removeEventListener("mouseup",this.r9,!1).removeFromParent().destroy()},t.prototype.S5=function(){var t=this.i9;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.n9;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},7884: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(1409),h=n(954),a=n(3535),c=n(3363),f=n(8829);!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.n_=i,n.s9={},n.o9={},h.PLAYBACK_RATES.forEach((function(t){n.s9[t]={rate:t,className:"vp-pr-"+t.toString().replace(".","_")}})),n}return r(i,t),i.prototype.create=function(){return this._node=a.default.build(c,{}),this.u9=this.n_.playbackRate,this.h9(),this.activateItem(this.n_.playbackRate),this._node.node},i.prototype.activateItem=function(t){var i=this.s9,n=this._node.select("."+i[this.u9].className),e=this._node.select("."+i[t].className);n.remove("vp-active"),e.add("vp-active"),this.u9=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;h.PLAYBACK_RATES.forEach((function(i){t.o9[i].destroy(),delete t.o9[i],delete t.s9[i]})),this._node.destroy()},i.prototype.h9=function(){var t=this;h.PLAYBACK_RATES.reverse().forEach((function(i,n){var e=a.default.build(f,s(s({},t.s9[i]),{tabIndex:n+1}));t._node.appendChild(e.node),t.o9[i]=e.onTap((function(n){n.stopPropagation(),t.publish(o.SET_PLAYBACK_RATE,i)}))}))},i}(u.default);i.default=l},9554: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.PlaylistViewEvent=void 0;var s,o=n(1409),u=n(9451),h=n(954),a=n(1962),c=n(1279),f=n(1954),l=n(6342),v=n(514),d=n(1462);function p(t){return l.default.classList(t)}!function(t){t.UI_INTERACT="playlistViewUiInteract",t.SCROLLED_TO_END="playlistViewScrolledToEnd"}(s=i.PlaylistViewEvent||(i.PlaylistViewEvent={}));var m=function(t){function i(i,n,e,r){var s=t.call(this,"PlaylistView")||this;return s.$U=i,s.JH=n,s.n_=e,s.iH=r,s.$U.addEventListener(a.PLAYER_DIMENSION_CHANGE,s.mY,s),s.$U.addEventListener(a.FULLSCREEN_CHANGE,s.a9,s),s.rY=s.JH.getPlaylistController(),s.c9=s.f9.bind(s),s}return r(i,t),i.prototype.create=function(t){if(-1===[h.PLAYLIST_POS.BOTTOM,h.PLAYLIST_POS.RIGHT,h.PLAYLIST_POS.HIDDEN].indexOf(t))return null;var i="vp-playlist-mode-"+t;this.l9=0,this.v9=[],this.d9=this.p9(t),this.ZL=t;var n=l.default.render(d,{strings:f.default,modeClass:i,isHiddenMode:t===h.PLAYLIST_POS.HIDDEN||!1,theme:this.d9,streamModeClass:this.m9.inStream?"vp-playlist-in-stream":""});return this.n_.uiState&&this.n_.uiState.isCSSLoaded&&p(n).remove("vp-vis-hidden"),this.b9(n),this.y9(),this.kV(!0),n},i.prototype.syncView=function(){this.y9()},i.prototype.upNextBtnTapHandler=function(){var t=this.g9();if(!t.isEndOfPlaylist()){var i=t.position+1,n=t.getMediaItemAt(i).id;this.publish(s.UI_INTERACT,{srcElement:"ctrl-next-click"}),this.publish(s.UI_INTERACT,{srcElement:"ui_pl_nxt_clk"}),this.$U.publish(a.RELATED_ITEM_CLICK,n,i,!1);var e=this.ZL===h.PLAYLIST_POS.RIGHT;this.w9(this.ZL,e)}},i.prototype.syncPgBtns=function(){this._9.scrollWidth<=this._9.scrollLeft+this._9.offsetWidth?this.E9=!0:this.E9=!1,this._9.scrollLeft<=0?this.O9=!0:this.O9=!1,this.O9?p(this.A9).add("disabled"):p(this.A9).remove("disabled"),this.E9?p(this.S9).add("disabled"):p(this.S9).remove("disabled")},i.prototype.destroy=function(){var t=this;(this.T9(),this.v9&&this.v9.forEach((function(t){t.destroy()})),this.v9=[],this.pG)&&this.j9().forEach((function(i){i.removeEventListener("tap",t.c9)}))},i.prototype.setPlaylistViewSize=function(){var t=Math.floor(this._9.offsetWidth/134);this.E9=t>=this.g9().getItems().length,this.syncPgBtns()},i.prototype.onMediaItemCurrent=function(){var t=this.JH.getFullscreen()?h.PLAYLIST_POS.HIDDEN:this.ZL;this.w9(t,!0)},i.prototype.f9=function(t){p(this._node).remove("open");var i=this.j9().indexOf(t.target);this.$U.publish(a.RELATED_ITEM_CLICK,t.target.getAttribute("data-id"),i,!1),this.publish(s.UI_INTERACT,{srcElement:"ui_pl_thmb_clk"}),this.onMediaItemCurrent()},i.prototype.y9=function(){var t=this.g9().getItems();t&&0!==t.length&&(this.v9=[],this.I9(t),this._9.scrollLeft=this.l9,this.syncPgBtns())},i.prototype.kV=function(t){var i=this;if(this.M9=new v.default(this.A9),this.A9.addEventListener("tap",(function(){i.N9(!1)})),this.R9=new v.default(this.S9),this.S9.addEventListener("tap",(function(){i.N9(!0)})),this.ZL===h.PLAYLIST_POS.RIGHT&&!u.userAgent.mobile){this.pG.addEventListener("scroll",(function(){t&&i.pG.scrollTop+i.pG.offsetHeight>=i.pG.scrollHeight&&i.publish(s.SCROLLED_TO_END)}));var n=function(t){var n=i.pG.scrollTop,e=i.pG.scrollHeight,r=i.pG.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.pG.scrollTop=e,u()):!(o&&s>n)||(i.pG.scrollTop=0,u())};this._9.addEventListener("mousewheel",n),this._9.addEventListener("DOMMouseScroll",n)}},i.prototype.I9=function(t){var i=this,n=t&&t.filter((function(t){var n='.vp-playlist-item[data-id="'+t.id+'"]';return!i.pG.querySelector(n)}))||[],e=this.iH.getPlugin(c.PluginType.PLAYLIST,this.m9.mimetype);if(e){var r=e.create(this.ZL,n,this._9,f.default),s=document.createDocumentFragment();r.forEach((function(t,n){i.v9.push(new v.default(t,n)),t.addEventListener("tap",i.c9),s.appendChild(t)})),this.pG.appendChild(s),this.setPlaylistViewSize(),p(this.k9).remove("vp-pl-loading"),this.JH.getFullscreen()||this.w9(this.ZL,!1)}},i.prototype.N9=function(t){var i=this.JH.getFullscreen();if((this.ZL!==h.PLAYLIST_POS.RIGHT||i)&&!(this.E9&&t||this.O9&&!t)){t&&this._9.scrollWidth-2*this._9.offsetWidth<=this._9.scrollLeft&&this.publish(s.SCROLLED_TO_END),this.$U.publish(a.UP_NEXT_PG_CLICK);var n="next-";n=t?n+"right":n+"left",this.publish(s.UI_INTERACT,{srcElement:n});var e=148*Math.floor(this._9.offsetWidth/148);t?this._9.scrollLeft=Math.min(this._9.scrollLeft+e,this._9.scrollWidth-this._9.offsetWidth):t||(this._9.scrollLeft=Math.max(this._9.scrollLeft-e,0)),this.l9=this._9.scrollLeft,this.syncPgBtns()}},i.prototype.w9=function(t,i){var n=this.g9().getCurrentItem(),e=n&&n.id,r=this.pG.querySelector(".vp-currently-playing"),s='.vp-playlist-item[data-id="'+e+'"]',o=this.pG.querySelector(s);if(r&&(p(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");p(u).remove("vp-show"),p(a).remove("vp-hide"),p(c).remove("vp-playlist-item-gradient-duration"),p(f).remove("vp-show")}if(o){var l=o.offsetLeft,v=o.offsetWidth,d='[data-label-for-id="'+e+'"]',m=this.pG.querySelector(d);if(p(o).add("vp-currently-playing"),t!==h.PLAYLIST_POS.RIGHT){var b=o.querySelector(".vp-pl-dur"),y=o.querySelector(".vp-playlist-item-gradient"),g=o.querySelector(".vp-now-playing");p(b).add("vp-hide"),p(y).add("vp-playlist-item-gradient-duration"),p(g).add("vp-show");var w=v+14;l=t===h.PLAYLIST_POS.HIDDEN?l+w:l,this.pG.parentElement.scrollLeft=l}else if(t===h.PLAYLIST_POS.RIGHT&&i){var _=o.offsetTop;this.pG.scrollTop=m?m.offsetTop:_-5}this.syncPgBtns()}},i.prototype.p9=function(t){var i,n="dark",e=this.m9&&this.m9.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.b9=function(t){this._node=t,this.pG=t.querySelector(".vp-playlist-strip-list"),this._9=t.querySelector(".vp-playlist-strip"),this.k9=t,this.A9=t.querySelector(".vp-playlist-pg-btn-prev"),this.S9=t.querySelector(".vp-playlist-pg-btn-next")},i.prototype.a9=function(){var t,i,n,e,r,s,o=this,u=this.JH.getFullscreen(),a=this.JH.getContentNode();if(this.mY(),this.rY.isPlaylistShown()&&this.setPlaylistViewSize(),this.ZL===h.PLAYLIST_POS.BOTTOM||this.ZL===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.ZL),n=t.querySelector(".vp-playlist-strip-list"),e=i.querySelector(".vp-playlist-strip-list"),u)n.innerHTML=e.innerHTML,e.innerHTML="",p(r).remove("hide"),p(t).remove("vp-pl-loading"),this.b9(t),this.rY&&this.rY.attachUpNextMouseEvents(),setTimeout((function(){o.w9(h.PLAYLIST_POS.HIDDEN,!0)}),500);else{e.innerHTML=n.innerHTML,n.innerHTML="",s=this.ZL===h.PLAYLIST_POS.RIGHT,p(r).add("hide"),this.b9(i),this.rY&&this.rY.detachUpNextMouseEvents();var c=this.pG.querySelector(".vp-currently-playing");c&&p(c).remove("vp-hide"),setTimeout((function(){o.w9(o.ZL,s)}),500)}this.T9(),this.v9&&this.v9.forEach((function(t){t.destroy()})),this.v9=[],this.kV(!1),this.j9().forEach((function(t){o.v9.push(new v.default(t)),t.addEventListener("tap",o.c9)}))}},i.prototype.mY=function(){var t=this;this.rY.isPlaylistShown()&&(this.l9=0,setTimeout((function(){t.setPlaylistViewSize()}),1e3))},i.prototype.T9=function(){this.R9&&this.S9&&(this.R9.destroy(),this.S9.removeEventListener("tap",this.N9)),this.M9&&this.A9&&(this.M9.destroy(),this.A9.removeEventListener("tap",this.N9))},i.prototype.j9=function(){return Array.prototype.slice.call(this.pG.querySelectorAll(".vp-playlist-item"),0)},i.prototype.g9=function(){return this.n_.playlist},Object.defineProperty(i.prototype,"m9",{get:function(){return this.n_.playlistUIConfig},enumerable:!1,configurable:!0}),i}(o.default);i.default=m},6609: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(1409),o=n(9451),u=n(1954),h=n(3535),a=n(7372),c=n(9426),f=n(5445),l=n(1107);var v=function(t){function i(i,n){var e=t.call(this,"ScreenBase")||this;return e.view=h.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,a,{})||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 m,b=function(t){function i(i,n,e,r){var s=t.call(this,c,{title:i.title,message:i.message,rep:i.rep,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=b,function(t){t.UI_INTERACT="ssUiInteract",t.START_SCREEN_CLICK="ssScreenClick"}(m=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},h=i.posterUrl||i.thumbnail;return(r=t.call(this,f,{item:i,config:s,width:e.width,height:e.height,imageSrc:h,strings:u.default,show:null==e?void 0:e.isCSSLoaded})||this).view.onTap((function(){o.userAgent.htc_one?window.setTimeout((function(){return r.e9()}),500):r.e9()})),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.e9=function(){this.publish(m.START_SCREEN_CLICK),this.publish(m.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},297: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,h,a=n(1409),c=n(954),f=n(4685),l=n(1954),v=n(2394),d=n(6342),p=n(514),m=n(7338);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"}(h=i.itemClasses||(i.itemClasses={}));var b=function(t){function n(i){var n=t.call(this,"settings")||this;return n.n_=i,n.L9={},n}return r(n,t),n.prototype.create=function(){return this._node=d.default.render(m,{strings:l.default,itemClasses:h}),this.D9={low:this._node.querySelector("."+h.low),medium:this._node.querySelector("."+h.medium),high:this._node.querySelector("."+h.high),auto:this._node.querySelector("."+h.auto)},this.C9=u.auto,this._node},n.prototype.onPlaybackStarted=function(t){this.shouldEnableSettings()&&(this.P9(t),this.activateItem(u.auto))},n.prototype.onPlayerResize=function(t,i){t.width<=c.HideBreakpointDimensions.WIDTH&&t.height<=c.HideBreakpointDimensions.HEIGHT&&this.isOpen()&&this.toggleSettings(i)},n.prototype.activateItem=function(t){d.default.classList(this.D9[this.C9]).remove(o.ACTIVE),d.default.classList(this.D9[u[t]]).add(o.ACTIVE),this.C9=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.L9).forEach((function(i){t.L9[i].destroy()}))},n.prototype.shouldEnableSettings=function(){var t=this.n_.playbackState.rendererType,n=this.n_.playlist.getCurrentItem();return i.SUPPORTED_RENDERER_TYPES.indexOf(t)>-1&&n&&(n.streams.length>1||n.streamProfiles.length>1||this.n_.bitrates.length>1)},n.prototype.x9=function(t,i){var n=this,e=this.D9[i];this.L9[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.P9=function(t){var i=this;this.U9(t),Object.keys(this.D9).filter((function(t){return!d.default.classList(i.D9[t]).contains(o.DISABLE)})).forEach((function(t){i.x9(i.V9[t],t)}))},n.prototype.U9=function(t){var i=this,n=t.streams,e=t.streamProfiles,r=this.n_.capabilities[t.rendererType];if(n.length>1)this.V9=v.default.mapStreamsToQualities(n);else if(e.length>1)this.V9=v.default.mapStreamsToQualities(e);else if(this.n_.bitrates.length>1){var s=[];this.n_.bitrates.forEach((function(t,n){s.push({bitrate:t,height:i.n_.heights[n]})})),this.V9=v.default.mapStreamsToQualities(s)}this.V9=this.V9||{},this.V9.auto=v.default.findStreamByProperty(n,"bitrate",this.n_.desiredBitrate,r),Object.keys(this.D9).forEach((function(t){var n=i.V9[t];if(n){d.default.classList(i.D9[t]).remove(o.DISABLE);var e=i.D9[t].querySelector("."+h.hdIcon);e&&n.height&&n.height>=720&&d.default.classList(e).add(o.ON)}else d.default.classList(i.D9[t]).add(o.DISABLE)}))},n}(a.default);i.default=b},514:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(4986),r=["touchstart","touchmove","touchend","touchcancel","mousedown","mouseup"],s=function(){function t(t,i,n){var s=this;void 0===n&&(n=!1),t=e.isString(t)?document.getElementById(t):t,this.element=t,this.moved=!1,this.mouseDown=!1,this.B9=!1,e.isFunction(i)?(this.onTap=i,this.shouldPropagate=n):(this.onTap=function(){},this.shouldPropagate=!!e.isBoolean(i)&&i),t&&t.addEventListener("tap",this.onTap,!1),r.forEach((function(i){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.B9},t.prototype.handleEvent=function(t){switch(t.type){case"mousedown":if(this.isTouchDevice())return;case"touchstart":this.D0(t);break;case"touchmove":this.F9(t);break;case"mouseup":if(this.isTouchDevice())return;case"touchend":this.C0(t);break;case"touchcancel":this.z9()}},t.prototype.D0=function(t){var i,n="touchstart"===t.type;n&&(this.B9=!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.F9=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.C0=function(t){var i;!this.moved&&this.mouseDown&&(this.mouseDown=!1,void 0!==document.CustomEvent?i=new document.CustomEvent("tap",{bubbles:!0,cancelable:!0}):(i=document.createEvent("Event")).initEvent("tap",!0,!0),i.pageX=t.pageX||this.lastPageX,i.pageY=t.pageY||this.lastPageY,i.eventSource=t.srcElement,i.eventTarget=t.target,t.handled&&!this.shouldPropagate||this.element&&this.element.dispatchEvent(i),t.handled=!0)},t.prototype.z9=function(){this.moved=!1},t}();i.default=s},1107: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:{}})},6266: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='main' 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:{}})},9319: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:{}})},4915: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'>"),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,4001,4013,"{{ }}")&&(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,4094,4106,"{{ }}")&&(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,4749,4908,"{{ }}")&&(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-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,6933,6977,"{{ }}")&&(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:{}})},2810: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:{}})},7372: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:{}})},9865: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:{}})},9215: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:{}})},3363: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:{}})},8829: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:{}})},1462: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-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,156,216,"{{ }}")&&(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:{}})},446: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:{}})},7338: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:{}})},2974: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:{}})},5445: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:{}})},3535:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DimensionUnit=void 0;var e,r=n(514),s="touchstart",o="touchmove",u="touchend",h="mousedown",a="mousemove",c="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.G9=null,this.H9=null,this.Y9=null,this.q9=null,this.W9=null,this.Q9=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.G9&&this.G9.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.G9=new r.default(this._node,t),this},t.prototype.onDrag=function(t,i,n){return this.H9=t,this.Y9=i,this.q9=n,this.X9([h,s],t),this.X9([a,o],i),this.X9([c,u],n),this},t.prototype.removeDragEvents=function(){return this.Z9([h,s],this.H9),this.Z9([a,o],this.Y9),this.Z9([c,u],this.q9),this.H9=null,this.Y9=null,this.q9=null,this},t.prototype.onScroll=function(t,i){return this.W9=t,this.Q9=i,this.X9([f,s],t),this.X9([a,o],t),this.X9([l,u],i),this},t.prototype.removeScrollEvents=function(){return this.Z9([f,s],this.W9),this.Z9([a,o],this.W9),this.Z9([l,u],this.Q9),this.W9=null,this.Q9=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.X9=function(t,i){var n=this;t.forEach((function(t){n.addEventListener(t,i)}))},t.prototype.Z9=function(t,i){var n=this;t.forEach((function(t){i&&n.removeEventListener(t,i)}))},t}();i.default=v},9241: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}),i.ViewEvent=i.Orientation=i.ViewState=void 0;var o,u,h,a,c,f=n(1409),l=n(9451),v=n(611),d=n(9257),p=n(8430),m=n(9541),b=n(1225),y=n(6609),g=n(514),w=n(3072),_=n(954),E=n(6389),O=n(1962),A=n(5244),S=n(1204),T=n(4986),j=n(6342),I=n(1960),M=n(6589),N=n(4685),R=n(2878),k=n(6266),L=n(2810);j.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"}(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"}(h||(h={})),function(t){t.NORMAL="normal",t.SMALL="smallscreen",t.VERY_SMALL="verysmallscreen"}(a||(a={})),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"}(c||(c={}));var D,C=["webkitfullscreenchange","mozfullscreenchange","msfullscreenchange","MSFullscreenChange","fullscreenchange"],P="vp-state-",x="vp-flag-",U="vp-browser-",V="vp-mode-",B=5e3,F="full",z=40,G=27,H=82,Y=53;function q(t){return j.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.KEY_CHANGE_VOLUME="vKeyChangeVolume",t.PLAYER_VIEWPORT_CHANGE="vPlayerViewportChanged",t.FULLSCREEN_CHANGE="vFullscreenChanged",t.SET_PLAYBACK_RATE="vPbRateSet"}(D=i.ViewEvent||(i.ViewEvent={}));var W=function(t){function i(i,n,e,r,s,o){var u=t.call(this,"View")||this;u.lQ=i,u.n_=n,u.$U=e,u.VH=r,u.iH=s,u.qH=o,u.J9=a.NORMAL,u.K9=!1,u.t6=!1,u.i6=0;var c=0,f=0;return u.lQ&&(c=u.lQ.clientWidth,f=u.lQ.clientHeight,u.J9=u.n6(c,f)),u.$U.addEventListener(O.VideoEvent.SRC_SWITCHING,(function(){u.e6(h.SWITCHING,!0)}),u),u.$U.addEventListener(O.VideoEvent.SRC_SWITCHED,(function(){u.e6(h.SWITCHING,!1)}),u),u.$U.publish(O.PLAYER_DIMENSION_CHANGE,{height:u.lQ&&u.lQ.clientHeight||u.n_.uiState.height||0,width:u.lQ&&u.lQ.clientWidth||u.n_.uiState.width||0,videoWidth:u.vQ&&u.vQ.clientWidth||u.n_.uiState.videoWidth||0,videoHeight:u.vQ&&u.vQ.clientHeight||u.n_.uiState.videoHeight||0}),u.$U.addEventListener(w.ExternalEvt.PLAYER_MUTE_CHANGE,u.r6,u),u.$U.addEventListener(O.UP_NEXT_PG_CLICK,u.s6,u),u.$U.addEventListener(O.PLAYER_DIMENSION_CHANGE,u.mY,u),u.$U.addEventListener(O.Device.ORIENTATION_CHANGE,u.o6,u),u.$U.addEventListener(O.PLAYBACK_INFO,u.u6,u),u.$U.addEventListener(w.ExternalEvt.PLAYLIST_POSITION_CHANGE,u.h6,u),l.userAgent.mobile&&S.default.canPlayInline&&(u.n_.uiState.deviceOrientation=u.a6(),u.f6()),u}return r(i,t),i.prototype.render=function(){var t=this;this.n_.rendered=!0,this.dQ=j.default.render(k,{enableDocking:this.n_.docking&&(this.n_.docking.enableOnScrollDown||this.n_.docking.enableOnScrollUp)}),this.vQ=this.dQ.querySelector("."+_.VIDEO_MAIN_ELEMENT_CLASS),this.lQ&&this.lQ.appendChild(this.dQ),q(this.dQ).add(this.J9),Object.keys(l.userAgent).filter((function(t){return l.userAgent[t]})).forEach((function(i){"os"===i&&(i=l.userAgent.os),"ie"===i&&q(t.dQ).add("vp-"+i.toLowerCase()+l.userAgent[i]),q(t.dQ).add(U+i.toLowerCase())})),S.default.deviceType&&q(this.dQ).add("vp-device-"+S.default.deviceType),l.userAgent.mobile&&S.default.canPlayInline&&q(this.dQ).add("vp-browser-playsinline"),this.n_.chromeless||(this.l6=this.v6(y.LoadingScreen)),this.n_.showControls&&S.default.canPlayInline&&(this.n1=new p.Controls(this.$U,this,this.n_,this.iH),this.d6()),this.n_.showControls||q(this.dQ).add("vp-no-controls");var i=function(i){t.VJ()},n=function(i){t.YJ(i)},e=function(){t.p6()};this.m6=function(){t.b6={},t.y6=t.dQ,t.dQ.addEventListener("mousemove",(function(n){t.b6.x!==n.clientX&&t.b6.y!==n.clientY&&(i(),t.b6.x=n.clientX,t.b6.y=n.clientY,t.y6=n.target)})),t.dQ.addEventListener("mouseover",(function(n){var e=null;t.y6&&(e=t.y6.parentElement),!e||q(e).contains("vp-play-controls")||q(e).contains("vp-menu-controls")||i()})),t.dQ.addEventListener("mouseout",(function(i){var e=null,r=t.dQ.getBoundingClientRect();t.y6&&(e=t.y6.parentElement),e&&(q(e).contains("vp-play-controls")||q(e).contains("vp-menu-controls")||n(i),(q(e).contains("vp-play-controls")||q(e).contains("vp-menu-controls"))&&(i.clientX<=r.left||i.clientX>=r.right||i.clientY>=r.bottom)&&n(i))}))},this.o5=function(){var t=this;this.g6=new g.default(this.dQ,(function(){(!t.getFullscreen()||l.userAgent.android&&j.default.getFullscreenElement()===t.dQ)&&t.toggleControlsVisibility()})),this.dQ.addEventListener("click",e),this.$U.addEventListener(O.CONTROLS_SEEKING,(function(){t.w6&&clearTimeout(t.w6),t.w6=window.setTimeout(t._6.bind(t),B)}),this)},l.userAgent.tv||l.userAgent.mobile?l.userAgent.mobile&&this.n1&&S.default.canPlayInline&&this.o5():this.m6(),this.E6=function(){t.dQ.removeEventListener("mousemove",i),t.dQ.removeEventListener("mouseover",i),t.dQ.removeEventListener("mouseout",n)},this.O6=function(){t.dQ.removeEventListener("click",e)},T.isFunction(this.handleFullscreenChange.bind)&&(this.A6=this.handleFullscreenChange.bind(this),C.forEach((function(i){document.addEventListener(i,t.A6)}))),this.S6(),this.rY=new M.PlaylistController(this,this.iH),this.T6(),this.j6(),this.I6(),l.userAgent.desktop&&this.vQ&&this.vQ.addEventListener("contextmenu",(function(i){var n=t.aY.rendererType;n!==N.RendererType.HTML5_HLS&&n!==N.RendererType.HTML5_RAW||i.preventDefault()}));var r=document.querySelector("#vp-css");j.default.isOldIeBrowser()&&setTimeout((function(){r&&r.sheet.cssRules&&r.sheet.cssRules.length>0?t.M6():t.N6()}),150),j.default.isOldIeBrowser()||!this.n_.uiState||this.n_.uiState.isCSSLoaded||(!0===j.default.getSingleton("isCSSLoaded")?this.M6():!0===j.default.getSingleton("isCSSError")?this.N6():r&&(r.addEventListener("error",this.N6.bind(this)),r.addEventListener("load",this.M6.bind(this)))),this.R6=new d.default(this.$U,this,this.n_,this.iH)},i.prototype.getEventBus=function(){return this.$U},i.prototype.getModel=function(){return this.n_},i.prototype.getAdsOverlay=function(){return this.k6},i.prototype.getAdsOverlayNode=function(){var t;return(null===(t=this.k6)||void 0===t?void 0:t.view.node)||null},i.prototype.toggleControlsVisibility=function(){var t,i;q(this.dQ).contains("vp-hide-controls")?(q(this.dQ).remove("vp-hide-controls"),this.L6(!1),null===(i=this.n1)||void 0===i||i.onControlsBarChange(!0),this.D6&&q(this.D6).remove("vp-overlay-hide-cursor"),this.w6&&clearTimeout(this.w6),this.aY.seeking||(this.w6=window.setTimeout(this._6.bind(this),B))):(q(this.dQ).add("vp-hide-controls"),this.L6(!0),null===(t=this.n1)||void 0===t||t.onControlsBarChange(!1))},i.prototype.toggleAdViewClickBlocking=function(){var t=q(this.dQ).contains("vp-hide-controls");this.C6.enableClickBlocking(!!t)},i.prototype.isDocked=function(){return this.t6},i.prototype.dockVideoPlayer=function(){var t=window.scrollY,i=!0,n=this.n_.docking.width,e=this.n_.docking.height;if(this.i6>t&&(i=!1),this.n_.docking.enableOnScrollDown===i&&this.n_.docking.enableOnScrollUp!==i&&!this.P6&&(this.n_.docking.enableOnMuted||!this.n_.mute)&&!(l.userAgent.mobile&&this.n_.docking.mobile&&this.n_.docking.mobile.disable)){if(this.x6=this.dQ.clientWidth,this.U6=this.dQ.clientHeight,n===F){if(this.n_.uiState.deviceOrientation===u.LANDSCAPE)return;n=window.innerWidth,e=this.U6/this.x6*n}if(this.t6=!0,this.V6(),this.rY.togglePlaylistUI(!0),q(this.dQ).add("vp-docked"),this.n_.docking.showInfoCard&&q(this.dQ).add("vp-docked-show-meta"),this.n_.docking.fadeInAnimation){if(q(this.dQ).add("vp-docked-fadein"),q(this.lQ).add("vp-docked-mode"),(h=l.userAgent.mobile&&this.n_.docking.mobile?this.n_.docking.mobile.position||{}:this.n_.docking.position||{}).top>-1&&(this.dQ.style.top=h.top+"px"),h.bottom>-1&&h.top<0){var r=0;this.n_.docking.showInfoCard&&(r=84),this.dQ.style.bottom=r+h.bottom+"px"}h.right>-1&&h.left<0&&(this.dQ.style.right=h.right+"px"),h.left>-1&&(this.dQ.style.left=h.left+"px")}else{this.B6();var s=this.dQ.getBoundingClientRect(),o=document.querySelector("body");if(!o)return;var h,a=o.clientWidth,c=window.innerHeight,f=0,v=0;if((h=this.n_.docking.position||{}).top>-1&&(v=h.top,this.dQ.style.top="0px"),h.bottom>-1){var d=0;this.n_.docking.showInfoCard&&(d=84),v=c-e-d-h.bottom,this.dQ.style.bottom=""}h.right>-1&&(f=a-s.left-n-h.right,this.dQ.style.right=""),h.left>-1&&(f=h.left,this.dQ.style.left="0px"),this.dQ.style.transform="translate3d("+f+"px, "+v+"px, 0)",q(this.dQ).add("vp-docked-animated"),q(this.lQ).add("vp-docked-mode")}this.dQ.style.width=n+"px",this.dQ.style.height=e+"px",this.publish(D.PLAYER_VIEWPORT_CHANGE,!1),this.$U.publish(O.PLAYER_DIMENSION_CHANGE,this.getPlayerDimensions()),this.n_.uiState.isDocked=!0,this.$U.publish(w.ExternalEvt.PLAYER_DOCKED_CHANGE,!0)}},i.prototype.undockVideoPlayer=function(t){var i=this;void 0===t&&(t=!1),q(this.dQ).remove("vp-docked"),q(this.dQ).remove("vp-docked-show-meta"),this.n_.docking.fadeInAnimation?(q(this.dQ).remove("vp-docked-fadein"),this.dQ.style.top="",this.dQ.style.right="",this.dQ.style.bottom="",this.dQ.style.left="",this.dQ.style.width="",this.dQ.style.height=""):(this.dQ.style.transform="translate3d(0, 0, 0)",this.B6()),this.t6=!1,this.rY.togglePlaylistUI(!1),t&&!this.n_.isPaused()&&this.$U.publish(O.TOGGLE_PLAY_PAUSE),window.setTimeout((function(){i.t6||(i.n_.uiState.isDocked=!1,i.n_.docking.fadeInAnimation||(i.dQ.style.width="",i.dQ.style.height="",q(i.dQ).remove("vp-docked-animated"),i.dQ.style.position="",i.dQ.style.transform="",i.dQ.style.top="",i.dQ.style.right="",i.dQ.style.bottom="",i.dQ.style.left=""),i.F6&&(i.lQ.removeChild(i.F6),i.F6=null),q(i.lQ).remove("vp-docked-mode"),i.publish(D.PLAYER_VIEWPORT_CHANGE,!0),i.$U.publish(O.PLAYER_DIMENSION_CHANGE,i.getPlayerDimensions())),i.$U.publish(w.ExternalEvt.PLAYER_DOCKED_CHANGE,!1)}),250)},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){"boolean"==typeof t&&(this.n_.docking.enableOnScrollDown=t),"boolean"==typeof i&&(this.n_.docking.enableOnScrollUp=i),this.n_.docking.position=this.n_.docking.position||{},isNaN(n)||(this.n_.docking.position.top=n),isNaN(e)||(this.n_.docking.position.right=e),isNaN(r)||(this.n_.docking.position.left=r),isNaN(s)||(this.n_.docking.position.bottom=s),t||i?(this.j6(),this.t6&&this.dockVideoPlayer()):(this.z6(),this.t6&&this.undockVideoPlayer())},i.prototype.createAdsOverlay=function(){if(this.k6)return this.k6.view.innerHTML="",this.k6.view.node;if(!this.vQ)return null;this.k6=new y.AdsOverlay;var t=this.k6.view.node,i=this.vQ.querySelector(".vp-adview-wrapper");return i?this.vQ.insertBefore(t,i):this.vQ.appendChild(t),t},i.prototype.destroyAdsOverlay=function(){this.k6&&(this.k6.destroy(),this.k6=null)},i.prototype.showAirplayTargetMenu=function(){this.publish(D.SYNC_SHOW_AIRPLAY_TARGET_MENU)},i.prototype.getContentNode=function(){return this.dQ},i.prototype.getOpenSimSim=function(){return this.G6},i.prototype.getMainElement=function(){return this.vQ},i.prototype.getCCElement=function(){return this.vQ?this.vQ.querySelector(".vp-cc-element"):null},i.prototype.getRootElement=function(){return this.lQ},i.prototype.getVideoElement=function(){if(this.lQ){var t=this.lQ.getElementsByClassName("vp-renderer-active")[0];if(t)return t instanceof HTMLVideoElement?t:t.getElementsByTagName("video")[0]}},i.prototype.setKeyboardFocus=function(){this.dQ.focus()},i.prototype.updateViewOnEscPress=function(){this.G6&&this.G6.isOpen()?this.G6.close():this.getFullscreen()&&this.setFullscreen(!1)},i.prototype.disableControls=function(){q(this.dQ).add("vp-disable-controls")},i.prototype.enableControls=function(){q(this.dQ).remove("vp-disable-controls")},i.prototype.resetState=function(){this.H6(),this.Y6(),this.q6()},i.prototype.syncViewState=function(){var t,i,n=this.n_,e=n.playlist&&this.DW(),r=this.aY,s=n.castState,u=s&&s.connected,a=o.START_SCREEN;if(this.e6(h.CASTING,u),u){var c=q(this.dQ);s.mediaLoaded&&!s.paused?c.add("vp-cast-playing"):c.remove("vp-cast-playing")}var f=q(this.dQ).contains(x+h.LOADING),v=n.isLoading();switch(this.e6(h.LOADING,v),!f&&v?(this.$U.publish(w.ExternalEvt.LOADING_BEGIN),null===(t=this.l6)||void 0===t||t.show()):f&&!v&&(this.$U.publish(w.ExternalEvt.LOADING_END),null===(i=this.l6)||void 0===i||i.hide()),n.getState()){case A.States.INIT:case A.States.WAITING:a=o.START_SCREEN;var d=!n.autoplay||n.waitingForUserTap,p=e&&(e.hasThumbnail()&&!l.userAgent.mobile||e.fetchFinished());if(d&&p){var m=n.continuousPlay&&0!==n.playlist.position,b=n.skipOnError===I.SkipOnError.ALWAYS||n.skipOnError===I.SkipOnError.TIMEBASED;m&&b&&r.hasStartedPlayback||this.W6()}break;case A.States.VIDEO:this.Q6(r),this.X6(),a=o.VIDEO;break;case A.States.END:this.n_.continuousPlay||this.setFullscreen(!1),r.criticalError?(n.chromeless?this.$U.publish(w.ExternalEvt.PLAYER_ERROR,r.criticalError):this.Z6(r.criticalError,e,n.guid),a=o.ERROR):(this.J6(r.previousItem),a=o.END_SCREEN)}this.K6=a,this.t8(a),this.i8(),this.R6&&this.R6.syncState()},i.prototype.getCurrentViewState=function(){return this.K6},i.prototype.updateStreamSyncUI=function(t,i){var n,e;t&&"pause"===i?(null===(n=this.l6)||void 0===n||n.show(),q(this.dQ).add("vp-sync-waiting")):(null===(e=this.l6)||void 0===e||e.hide(),q(this.dQ).remove("vp-sync-waiting"))},i.prototype.setFullscreen=function(t){var i,n=this.dQ;(l.userAgent.ios||l.userAgent.android&&!this.n1)&&(n=null===(i=this.qH.getActiveRenderer())||void 0===i?void 0:i.node),t&&!this.K9?R.default.enterFullscreen(n):!t&&this.K9&&R.default.exitFullscreen(n),this.$U.publish(O.CTRL_FULLSCREEN,t?"ON":"OFF"),t&&l.userAgent.mobile&&S.default.autoplaySupported&&this.aY.mute&&!this.n_.muteMode&&this.publish(D.SET_MUTE,!1),this.i8()},i.prototype.getFullscreen=function(){var t=this.qH.getActiveRenderer(),i=!!t&&R.default.isFullscreenOnMobile(t.node);return j.default.getFullscreenElement()===this.dQ||i},i.prototype.toggleFullscreen=function(){this.setFullscreen(!this.getFullscreen())},i.prototype.updateVolumeUI=function(t,i,n){void 0===n&&(n=!1),this.n1&&this.n1.updateVolumeUI(t,i,n)},i.prototype.updateClosedCaptionUI=function(t){this.n1&&this.n1.updateClosedCaptionUI(t)},i.prototype.clearAutoHideTimeout=function(){this.w6&&window.clearTimeout(this.w6)},i.prototype.setOverlayActive=function(t){t?q(this.dQ).add("vp-overlay-active"):q(this.dQ).remove("vp-overlay-active")},i.prototype.destroyFullscreenChangeListeners=function(){var t=this;this.A6&&C.forEach((function(i){document.removeEventListener(i,t.A6)}))},i.prototype.getPlayerDimensions=function(){return{width:this.dQ.clientWidth,height:this.dQ.clientHeight,videoWidth:this.vQ.clientWidth,videoHeight:this.vQ.clientHeight}},Object.defineProperty(i.prototype,"controls",{get:function(){return this.n1},enumerable:!1,configurable:!0}),i.prototype.getPlaylistController=function(){return this.rY},i.prototype.isStreamMode=function(){return l.userAgent.desktop&&(this.J9===a.SMALL||q(this.dQ).contains("vp-stream"))},i.prototype.isMiniStreamMode=function(){return l.userAgent.desktop&&(this.J9===a.VERY_SMALL||q(this.dQ).contains("vp-ministream"))},i.prototype.addRendererNode=function(t){var i=this.getMainElement();if(i){if(q(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()?q(this.dQ).add("vp-live"):q(this.dQ).remove("vp-live"),this.isStreamMode()&&!this.getFullscreen()&&q(this.dQ).add("vp-stream"),this.isMiniStreamMode()&&!this.getFullscreen()&&q(this.dQ).add("vp-ministream"),this.n1&&this.n1.onMediaItemLoaded(t)},i.prototype.onMediaItemCurrent=function(t){this.n1&&this.n1.onMediaItemCurrent(t)},i.prototype.onSetPlaybackRate=function(t){var i;null===(i=this.n1)||void 0===i||i.onSetPlaybackRate(t)},i.prototype.onMediaItemPlaybackStarted=function(t){(this.n_.docking.enableOnScrollDown||this.n_.docking.enableOnScrollUp)&&this.t6&&this.V6(),this.n1&&this.n1.onMediaItemPlaybackStarted(t)},i.prototype.onMediaItemPlaybackProgress=function(t){this.n1&&this.n1.onMediaItemPlaybackProgress(t)},i.prototype.onAdBreakStarted=function(t){var i,n;null===(i=this.C6)||void 0===i||i.onAdBreakStart(t),null===(n=this.n1)||void 0===n||n.onAdBreakStarted()},i.prototype.onAdBreakEnded=function(t){this.C6.onAdBreakEnd(t)},i.prototype.onAdBreakItemCurrent=function(t){this.C6.onAdBreakItemCurrent(t)},i.prototype.onAdBreakItemStarted=function(t){this.n1&&this.n1.onAdPlaybackStarted()},i.prototype.onAdBreakItemEnded=function(t){this.n1&&this.n1.onAdPlaybackEnded()},i.prototype.onAdPlaybackProgress=function(t){var i=t.playingItem,n=this.aY;i&&T.isNumber(n.currentTime)&&T.isNumber(n.duration)&&this.n1&&this.n1.onAdPlaybackProgress(t)},i.prototype.onPlaybackTimeUpdate=function(){var t;null===(t=this.G6)||void 0===t||t.onTimeUpdate(this.qH.getSyncOffset(),this.qH.getSyncState())},i.prototype.setTheme=function(t){t&&q(this.dQ).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.n1.updateCurrentItemTitle(t),this.t6&&this.n8&&(this.n8.textContent=t),this.e8&&this.e8.updateTitle(t)},i.prototype.addCustomControlElement=function(t){return this.n1.addCustomControlElement(t)},i.prototype.onRendererSwitch=function(t,i){this.G6&&this.G6.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.G6&&(i=this.G6).onVideoEvent.apply(i,s([t],n))},i.prototype.handleFullscreenChange=function(t){var i="boolean"==typeof t?t:this.getFullscreen();i?(q(this.dQ).add("vp-state-fullscreen"),this.t6&&(this.P6=!0,this.undockVideoPlayer())):(q(this.dQ).remove("vp-state-fullscreen"),(this.t6||this.P6)&&(this.P6=!1,this.i6=window.scrollY,this.dockVideoPlayer())),this.K9!==i&&(this.n_.uiState.isFullscreen=i,this.publish(D.FULLSCREEN_CHANGE,i),this.K9=i)},i.prototype.destroy=function(){this.n1&&this.n1.destroy(),this.r8&&this.r8.destroy(),this.s8&&this.s8.destroy(),this.o8&&this.o8.destroy(),this.l6&&this.l6.destroy(),this.C6&&this.C6.destroy(),this.rY&&this.rY.destroy(),this.e8&&this.e8.destroy(),this.g6&&this.g6.destroy(),this.destroyAdsOverlay(),this.destroyFullscreenChangeListeners(),l.userAgent.tv||l.userAgent.mobile||!this.E6||this.E6(),l.userAgent.mobile&&S.default.canPlayInline&&this.O6&&this.O6(),this.yQ&&(window.removeEventListener("resize",this.yQ),this.yQ=null),this.G6&&this.G6.destroy(),this.lQ&&this.dQ&&this.lQ.removeChild(this.dQ),this.z6()},i.prototype.I6=function(){var t=this;this.r8=new m.default("NORMAL",(function(){t.G6||(t.G6=t.v6(b.default,t.n_,t.iH.getExternalPlugins()),t.G6.on(b.OpssEvent.VISIBILITY_CHANGED,(function(i,n){t.publish(D.OPSS_VISIBILITY_CHANGED,i,n.node)}),t));var i=t.qH.getRendererController().getActiveRenderer();t.G6.render(i)}),this.dQ)},i.prototype.o6=function(t){this.n_.uiState.deviceOrientation=t,this.n_.uiState.isDocked&&this.n_.docking.width===F&&t===u.LANDSCAPE&&!this.getFullscreen()&&this.undockVideoPlayer(!0)},i.prototype.u6=function(t){this.G6&&this.G6.onPlaybackInfo(t)},i.prototype.h6=function(){this.G6&&this.G6.onPlaylistPositionChange()},i.prototype.f6=function(){this.yQ=this.IQ.bind(this),window.addEventListener("resize",this.yQ)},i.prototype.a6=function(){var t=u.LANDSCAPE;return window.innerHeight>window.innerWidth&&(t=u.PORTRAIT),t},i.prototype.IQ=function(){this.$U.publish(O.Device.ORIENTATION_CHANGE,this.a6())},i.prototype.j6=function(){this.u8&&this.z6(),(!(l.userAgent.ie>0&&l.userAgent.ie<10)&&!l.userAgent.mobile||l.userAgent.mobile&&S.default.canPlayInline)&&this.n_.docking&&(this.n_.docking.enableOnScrollDown||this.n_.docking.enableOnScrollUp)&&(this.u8=this.h8.bind(this),window.addEventListener("scroll",this.u8))},i.prototype.z6=function(){this.u8&&(window.removeEventListener("scroll",this.u8),this.u8=null)},i.prototype.h8=function(){var t=window.pageYOffset;if(t!==this.i6&&!this.K9){this.i6=t;var i=j.default.getElementViewability(this.lQ)>=this.n_.docking.threshold;i||this.t6||this.n_.getState()!==A.States.VIDEO||this.n_.isPaused()?i&&this.t6&&this.undockVideoPlayer():this.dockVideoPlayer()}},i.prototype.S6=function(){var t=this;return this.C6||(this.C6=new v.default(this.iH),this.C6.addEventListener(v.AdsViewEvent.SKIP_AD_REQUESTED,(function(){t.publish(D.SKIP_AD_REQUESTED)}),this),this.C6.addEventListener(v.AdsViewEvent.CLICKED,(function(){t.publish(D.AD_CLICKED)}),this),this.vQ.appendChild(this.C6.create()),l.userAgent.mobile&&this.n1&&S.default.canPlayInline&&this.C6.enableClickBlocking(!0)),this.C6},i.prototype.B6=function(){var t=this.lQ.getBoundingClientRect(),i=document.querySelector("body");if(i){var n=i.clientWidth,e=this.n_.docking.position||{};e.top>-1&&(this.dQ.style.top=t.top+"px"),e.bottom>-1&&(this.dQ.style.bottom=t.bottom+"px"),e.right>-1&&(this.dQ.style.right=n-t.right+"px"),e.left>-1&&(this.dQ.style.left=t.left+"px"),this.dQ.style.width=this.x6+"px",this.dQ.style.height=this.U6+"px",this.dQ.style.position="fixed"}},i.prototype.V6=function(){var t=this,i=this.n_.docking;if(i.enableOnScrollDown||i.enableOnScrollUp){this.n8&&this.F6||(this.n8=this.dQ.querySelector(".vp-docked-title"),this.a8=this.dQ.querySelector(".vp-docked-provider"),this.F6=document.createElement("div"),this.F6.setAttribute("class","vp-docked-bg"),this.c8=document.createElement("img"),this.c8.setAttribute("class","vp-docked-img"),this.f8=document.createElement("div"),this.f8.setAttribute("class","vp-docked-overlay"),this.l8=document.createElement("div"),this.l8.setAttribute("class","vp-docked-overlay-text"),this.l8.innerHTML="Scroll back up to restore default view.",this.f8.appendChild(this.l8),this.F6.appendChild(this.c8),this.F6.appendChild(this.f8),this.v8||(this.v8=document.createElement("div"),this.v8.setAttribute("class","vp-docked-close-button"),this.d8=new g.default(this.v8,(function(i){i.stopPropagation(),t.undockVideoPlayer(!t.n_.isPaused()),t.publish(D.UI_INTERACT,{srcElement:"ui_pop_close_clk"})})),i.closeButtonFadeIn||q(this.v8).add("vp-nofade")),this.vQ&&this.vQ.appendChild(this.v8),this.lQ&&this.lQ.appendChild(this.F6));var n=this.DW();n&&(n.thumbnail&&this.c8.setAttribute("src",n.thumbnail),this.n8&&n.title&&(this.n8.innerHTML=n.title))}},i.prototype.M6=function(){var t,i=this.getContentNode().querySelectorAll(".vp-vis-hidden"),n=i.length;for(t=0;t<n;t++)q(i[t]).remove("vp-vis-hidden");this.vQ.style.height="",this.n_.uiState.isCSSLoaded=!0},i.prototype.N6=function(){for(var t=this.getContentNode().querySelectorAll(".vp-vis-hidden"),i=t.length,n=0;n<i;n++)q(t[n]).add("vp-disp-none");this.n_.uiState.isCSSLoaded=!1,this.$U.publish(O.WARNING,j.default.createErr(E.ErrorGroup.Streaming,this.aY,E.E_WARNING,E.WARNING_CODES.E_CSS_DOWNLOAD_FAILED),{shouldRenderErrorScreen:!1})},i.prototype.t8=function(t){var i=P+t,n=q(this.dQ);Object.keys(o).forEach((function(t){var e=P+o[t];n.contains(e)&&e!==i&&n.remove(e)})),n.contains(i)||n.add(i)},i.prototype.e6=function(t,i){var n=q(this.dQ),e=x+t,r=n.contains(e);i?r||n.add(e):r&&n.remove(e)},i.prototype.W6=function(){var t=this.n_,i=this.DW();i&&!this.e8&&(t.showStartScreen&&(this.e8=this.v6(y.StartScreen,i,t.startScreenConfig,t.uiState),this.p8()),this.$U.publish(O.START_SCREEN_RENDERED))},i.prototype.H6=function(){var t=this.e8&&this.e8.view;t&&(this.vQ&&this.vQ.removeChild(t.node),this.e8.destroy(),this.e8=null)},i.prototype.J6=function(t){var i=this;if(t){var n=this.n_.showEndScreen;if(n){if(!this.dQ.querySelector(".vp-end-replay")){var e=j.default.render(L,{});this.m8=new g.default(e,(function(){i.$U.publish(O.RELATED_ITEM_CLICK,t.id,-1,!1,!1)})),this.vQ&&this.vQ.appendChild(e),this.b8=e}!this.e8&&n&&this.W6(),this.$U.publish(O.END_SCREEN_RENDERED),this.publish(D.UI_INTERACT,{srcElement:"es-view"})}}},i.prototype.Y6=function(){this.b8&&this.vQ&&(this.vQ.removeChild(this.b8),this.b8=null),this.m8&&this.m8.destroy()},i.prototype.Z6=function(t,i,n){if(!this.o8){var e=(i=i||this.DW())&&i.videoSession||"",r=i?i.thumbnail:null,s=r||"";this.o8=this.v6(y.ErrorScreen,t,n,e,s),this.publish(D.UI_INTERACT,{srcElement:"err-view-"+t.category+"-"+t.subcategory})}},i.prototype.i8=function(){this.n1&&this.n1.syncAriaState()},i.prototype.r6=function(t){t?q(this.dQ).add("vp-muted"):q(this.dQ).remove("vp-muted")},i.prototype.p6=function(){(!this.getFullscreen()||l.userAgent.android&&j.default.getFullscreenElement()===this.dQ)&&this.toggleAdViewClickBlocking()},i.prototype.VJ=function(){var t;this.w6&&window.clearTimeout(this.w6),q(this.dQ).remove("vp-hide-controls"),this.L6(!1),this.D6&&q(this.D6).remove("vp-overlay-hide-cursor"),this.n_.isSeeking()||this.n_.isPaused()||(this.w6=window.setTimeout(this._6.bind(this),B)),null===(t=this.n1)||void 0===t||t.onControlsBarChange(!0),this.getFullscreen()||this.publish(D.CC_POSITION_FLOAT,!0)},i.prototype.YJ=function(t){var i;"mouseout"===t.type&&(this.w6&&window.clearTimeout(this.w6),q(this.dQ).add("vp-hide-controls"),!this.n_.isPaused()&&this.L6(!0),null===(i=this.n1)||void 0===i||i.onControlsBarChange(!1),this.getFullscreen()||this.publish(D.CC_POSITION_FLOAT,!1))},i.prototype._6=function(){var t;this.D6=this.dQ&&this.dQ.querySelector(".vp-object-overlay"),this.w6&&(window.clearTimeout(this.w6),this.w6=null),l.userAgent.mobile&&this.n1&&S.default.canPlayInline&&this.C6.enableClickBlocking(!0),q(this.dQ).add("vp-hide-controls"),!this.n_.isPaused()&&this.L6(!0),null===(t=this.n1)||void 0===t||t.onControlsBarChange(!1)},i.prototype.s6=function(){this.w6&&window.clearTimeout(this.w6),this.n_.isSeeking()||(this.w6=window.setTimeout(this._6.bind(this),B))},i.prototype.mY=function(t){var i,n=t.width||1,e=t.height||1,r=this.n6(n,e);(this.isStreamMode()||this.isMiniStreamMode())&&r===a.NORMAL&&this.y8(),l.userAgent.desktop&&(r===a.VERY_SMALL?q(this.dQ).add("vp-ministream"):r===a.SMALL?(q(this.dQ).add("vp-stream"),this.rY.detachUpNextMouseEvents(),(i=this.getContentNode().querySelector(".vp-upnext-playlist"))&&q(i).add("hide")):r===a.NORMAL&&(this.rY.attachUpNextMouseEvents(),(i=this.getContentNode().querySelector(".vp-upnext-playlist"))&&q(i).remove("hide")))},i.prototype.y8=function(){var t=this.getContentNode();q(t).remove("vp-ministream"),q(t).remove("vp-stream"),this.rY.attachUpNextMouseEvents();var i=this.getContentNode().querySelector(".vp-upnext-playlist");i&&q(i).remove("hide")},i.prototype.n6=function(t,i){var n=a.NORMAL;return(t<=c.VERY_SMALL_WIDTH||i<=c.VERY_SMALL_HEIGHT)&&(n=a.VERY_SMALL),(t<=c.SMALL_WIDTH&&t>c.VERY_SMALL_WIDTH||i<=c.SMALL_HEIGHT&&i>c.VERY_SMALL_HEIGHT)&&(n=a.SMALL),n},i.prototype.g8=function(t){this.publish(D.UI_INTERACT,t)},i.prototype.Q6=function(t){var i=this.getContentNode(),n=V+this.aY.playbackMode,e=q(i);Object.keys(N.PlaybackMode).forEach((function(t){var i=V+N.PlaybackMode[t];e.contains(i)&&i!==n&&e.remove(i)})),e.contains(n)||e.add(n)},i.prototype.X6=function(){!this.n_.isPaused()?(this.e6(h.PLAYING,!0),this.e6(h.PAUSED,!1)):(this.e6(h.PLAYING,!1),this.e6(h.PAUSED,!0)),this.publish(D.SYNC_PLAYBACK_STATE)},i.prototype.d6=function(){var t=this,i=this.n1,n=i?i.create():null;n&&Object.keys(n).forEach((function(i){t.vQ&&n[i]&&t.vQ.appendChild(n[i])})),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.g8(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.aY.state===A.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.qH.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.prototype.T6=function(){var t=this,i=this.rY;i.on(M.PlaylistEvent.UI_INTERACT,(function(i){t.g8(i)}),this),i.on(M.PlaylistEvent.SCROLLED_TO_END,(function(){t.publish(D.SCROLLED_TO_END)}),this),i.on(M.PlaylistEvent.BOTTOM_HEIGHT_CHANGE,(function(i){t.publish(D.PLAYLIST_BOTTOM_HEIGHT_CHANGE,i)}),this)},i.prototype.p8=function(){var t=this,i=this.e8;i.on(y.StartScreenEvent.UI_INTERACT,(function(i){t.g8(i)}),this),i.on(y.StartScreenEvent.START_SCREEN_CLICK,(function(){t.publish(D.START_SCREEN_CLICK)}),this)},i.prototype.DW=function(){return this.n_.playlist.getCurrentItem()},i.prototype.q6=function(){this.R6&&this.R6.destroy()},Object.defineProperty(i.prototype,"aY",{get:function(){return this.n_.playbackState},enumerable:!1,configurable:!0}),i.prototype.v6=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)));return this.vQ.appendChild(e.view.node),e},i.prototype.L6=function(t){if(this.k6&&this.n1){var i=this.k6.view.node,n=i.firstChild;if(t)return i.setAttribute("style","height: 100%;"),void(l.userAgent.mobile&&(q(n).add("vp-ads-overlay-disable-click"),q(n).remove("vp-ads-overlay-enable-click")));var e=0;this.isStreamMode()?e=z:this.isMiniStreamMode()?e=G:l.userAgent.mobile?(e=H,q(n).remove("vp-ads-overlay-disable-click"),q(n).add("vp-ads-overlay-enable-click")):e=Y;var r=this.getPlayerDimensions().height-e;i.setAttribute("style","height: "+r+"px;")}},i}(f.default);i.default=W},8173:function(t,i,n){t.exports=n(460)},6956:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),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_AD_CLIENT=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_AD_CLIENT="600",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_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"}},3872: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(6956);i.errorCodes=e;var r=n(9044),s=r;i.Loader=r.default,i.LoaderConstants=s;var o=n(6489);i.LocalStorage=o.default;var u=n(4712);i.Privacy=u.default;var h=n(9088);i.Timer=h.default;var a=n(9306);i.TypeChecker=a;var c=n(1803);i.Utils=c.default},9044: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(9451),r=n(1875),s=n(9306),o=n(1803);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(),h=n.context,a=n.responseTypeJson,c=n.withCookie,f=n.timeout||3e3,l=o.default.once(n.successHandler),v=o.default.once(n.failureHandler),d=!1,p=null,m={url:t,cors:e.userAgent.ie&&e.userAgent.ie<10||c,withCredentials:c,timeout:f,responseType:n.responseType,headers:n.headers,method:n.method,body:n.body,beforeSend:n.beforeSend};if(h&&l&&v){var b=(new Date).getTime(),y=(0,r.default)(m,(function(e,r,o){var c,m;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()-b,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(h,new Error(E),"default","cors")}else{var O=r.timeDiff>=f?i.XHR_TIMEOUT:i.XHR_ERROR;v.call(h,new Error(O+": timeDiff ="+r.timeDiff),(null==r?void 0:r.previousState)||(null===(c=null==r?void 0:r.rawRequest)||void 0===c?void 0:c.previousState),r.statusCode,r.timeDiff,p,y)}}else r.statusCode<200||r.statusCode>=300?v.call(h,new Error(i.XHR_ERROR+": statusCode = "+r.statusCode),(null==r?void 0:r.previousState)||(null===(m=null==r?void 0:r.rawRequest)||void 0===m?void 0:m.previousState),r.statusCode,r.timeDiff,p,y):l.call(h,a?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},6489: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},4712: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){n&&t({gdprApplies:i.gdprApplies,gdprConsentData:i.tcString},!0)}))},t.getUSPrivacyConsent=function(t){void 0!==window.__uspapi?window.__uspapi("getUSPData",1,(function(i,n){n?t({uspString:i.uspString},!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(){if(!window.__tcfapi){var t=this.findApiFrame("__tcfapiLocator"),i={};window.__tcfapi=function(n,e,r,s){if(t){var o=Math.random()+"",u={__tcfapiCall:{command:n,parameter:s,version:e,callId:o}};i[o]=r,t.postMessage(u,"*")}else r({msg:"CMP not found"},!1)},window.addEventListener("message",(function(t){var n={};try{n="string"==typeof t.data?JSON.parse(t.data):t.data}catch(t){}if(n.__tcfapiReturn&&"function"==typeof i[n.__tcfapiReturn.callId]){var e=n.__tcfapiReturn;i[e.callId](e.returnValue,e.success),i[e.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}();i.default=n},9088: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.w8=s>0?s:Number.POSITIVE_INFINITY,o._8=0,o.running=!1,o.startTime=0,o._v=null,o._d={},o.dp={},e&&r&&o.addEventListener(i.TIMER_EVENT,e,r),o}return r(i,t),i.prototype.destroy=function(){this.reset(),this._d={},t.prototype.removeEventListeners.call(this,this.dp),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.dp[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.dp)},i.prototype.start=function(){var t=this;this._v||this.running||(this._v=window.setInterval((function(){t._8++,t._8>=t.w8&&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._v&&this.running&&(window.clearInterval(this._v),this._v=null,this.running=!1,this.startTime=0)},i.prototype.reset=function(){this.stop(),this._8=0,this.startTime=0},i.prototype.restart=function(){this.reset(),this.start()},i.TIMER_EVENT="timedOut",i}(n(1409).default);i.default=s},9306: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}},1803:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(9451),r=n(9306),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},4426:function(module,__unused_webpack_exports,__webpack_require__){function ja(t){var i=0;return function(){return i<t.length?{done:!1,value:t[i++]}:{done:!0}}}var Wa="function"==typeof Object.defineProperties?Object.defineProperty:function(t,i,n){return t==Array.prototype||t==Object.prototype||(t[i]=n.value),t};function $a(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof __webpack_require__.g&&__webpack_require__.g];for(var i=0;i<t.length;++i){var n=t[i];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}var Lb=$a(this);function vc(t,i){if(i)t:{var n=Lb;t=t.split(".");for(var e=0;e<t.length-1;e++){var r=t[e];if(!(r in n))break t;n=n[r]}(i=i(e=n[t=t[t.length-1]]))!=e&&null!=i&&Wa(n,t,{configurable:!0,writable:!0,value:i})}}function wc(t){return(t={next:t})[Symbol.iterator]=function(){return this},t}function Ed(t,i){t instanceof String&&(t+="");var n=0,e=!1,r={next:function(){if(!e&&n<t.length){var r=n++;return{value:i(r,t[r]),done:!1}}return e=!0,{done:!0,value:void 0}}};return r[Symbol.iterator]=function(){return r},r}function Fd(t,i,n){if(null==t)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(i instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return t+""}function xh(t){return t||Array.prototype.fill}function yh(t){var i="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return i?i.call(t):{next:ja(t)}}vc("Symbol",(function(t){function i(t,i){this.dr=t,Wa(this,"description",{configurable:!0,writable:!0,value:i})}if(t)return t;i.prototype.toString=function(){return this.dr};var n=0;return function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new i("jscomp_symbol_"+(e||"")+"_"+n++,e)}})),vc("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var i="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<i.length;n++){var e=Lb[i[n]];"function"==typeof e&&"function"!=typeof e.prototype[t]&&Wa(e.prototype,t,{configurable:!0,writable:!0,value:function(){return wc(ja(this))}})}return t})),vc("Symbol.asyncIterator",(function(t){return t||Symbol("Symbol.asyncIterator")})),vc("Array.prototype.keys",(function(t){return t||function(){return Ed(this,(function(t){return t}))}})),vc("String.prototype.startsWith",(function(t){return t||function(t,i){var n=Fd(this,t,"startsWith");t+="";var e=n.length,r=t.length;i=Math.max(0,Math.min(0|i,n.length));for(var s=0;s<r&&i<e;)if(n[i++]!=t[s++])return!1;return s>=r}})),vc("Array.prototype.fill",(function(t){return t||function(t,i,n){var e=this.length||0;for(0>i&&(i=Math.max(0,e+i)),(null==n||n>e)&&(n=e),0>(n=Number(n))&&(n=Math.max(0,e+n)),i=Number(i||0);i<n;i++)this[i]=t;return this}})),vc("Int8Array.prototype.fill",xh),vc("Uint8Array.prototype.fill",xh),vc("Uint8ClampedArray.prototype.fill",xh),vc("Int16Array.prototype.fill",xh),vc("Uint16Array.prototype.fill",xh),vc("Int32Array.prototype.fill",xh),vc("Uint32Array.prototype.fill",xh),vc("Float32Array.prototype.fill",xh),vc("Float64Array.prototype.fill",xh),vc("Array.from",(function(t){return t||function(t,i,n){i=null!=i?i:function(t){return t};var e=[],r="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];if("function"==typeof r){t=r.call(t);for(var s=0;!(r=t.next()).done;)e.push(i.call(n,r.value,s++))}else for(r=t.length,s=0;s<r;s++)e.push(i.call(n,t[s],s));return e}})),vc("Object.getOwnPropertySymbols",(function(t){return t||function(){return[]}})),vc("Promise",(function(t){function i(t){this.Se=0,this.jg=void 0,this.Me=[],this.Wp=!1;var i=this.jk();try{t(i.resolve,i.reject)}catch(t){i.reject(t)}}function n(){this.Rc=null}function e(t){return t instanceof i?t:new i((function(i){i(t)}))}if(t)return t;n.prototype.po=function(t){if(null==this.Rc){this.Rc=[];var i=this;this.qo((function(){i.Mu()}))}this.Rc.push(t)};var r=Lb.setTimeout;n.prototype.qo=function(t){r(t,0)},n.prototype.Mu=function(){for(;this.Rc&&this.Rc.length;){var t=this.Rc;this.Rc=[];for(var i=0;i<t.length;++i){var n=t[i];t[i]=null;try{n()}catch(t){this.$t(t)}}}this.Rc=null},n.prototype.$t=function(t){this.qo((function(){throw t}))},i.prototype.jk=function(){function t(t){return function(e){n||(n=!0,t.call(i,e))}}var i=this,n=!1;return{resolve:t(this.px),reject:t(this.gl)}},i.prototype.px=function(t){if(t===this)this.gl(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof i)this.cy(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.ox(t):this.fp(t)}},i.prototype.ox=function(t){var i=void 0;try{i=t.then}catch(t){return void this.gl(t)}"function"==typeof i?this.dy(i,t):this.fp(t)},i.prototype.gl=function(t){this.Lq(2,t)},i.prototype.fp=function(t){this.Lq(1,t)},i.prototype.Lq=function(t,i){if(0!=this.Se)throw Error("Cannot settle("+t+", "+i+"): Promise already settled in state"+this.Se);this.Se=t,this.jg=i,2===this.Se&&this.vx(),this.Nu()},i.prototype.vx=function(){var t=this;r((function(){if(t.Gw()){var i=Lb.console;void 0!==i&&i.error(t.jg)}}),1)},i.prototype.Gw=function(){if(this.Wp)return!1;var t=Lb.CustomEvent,i=Lb.Event,n=Lb.dispatchEvent;return void 0===n||("function"==typeof t?t=new t("unhandledrejection",{cancelable:!0}):"function"==typeof i?t=new i("unhandledrejection",{cancelable:!0}):(t=Lb.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,t),t.promise=this,t.reason=this.jg,n(t))},i.prototype.Nu=function(){if(null!=this.Me){for(var t=0;t<this.Me.length;++t)s.po(this.Me[t]);this.Me=null}};var s=new n;return i.prototype.cy=function(t){var i=this.jk();t.qh(i.resolve,i.reject)},i.prototype.dy=function(t,i){var n=this.jk();try{t.call(i,n.resolve,n.reject)}catch(t){n.reject(t)}},i.prototype.then=function(t,n){function e(t,i){return"function"==typeof t?function(i){try{r(t(i))}catch(t){s(t)}}:i}var r,s,o=new i((function(t,i){r=t,s=i}));return this.qh(e(t,r),e(n,s)),o},i.prototype.catch=function(t){return this.then(void 0,t)},i.prototype.qh=function(t,i){function n(){switch(e.Se){case 1:t(e.jg);break;case 2:i(e.jg);break;default:throw Error("Unexpected state: "+e.Se)}}var e=this;null==this.Me?s.po(n):this.Me.push(n),this.Wp=!0},i.resolve=e,i.reject=function(t){return new i((function(i,n){n(t)}))},i.race=function(t){return new i((function(i,n){for(var r=yh(t),s=r.next();!s.done;s=r.next())e(s.value).qh(i,n)}))},i.all=function(t){var n=yh(t),r=n.next();return r.done?e([]):new i((function(t,i){function s(i){return function(n){o[i]=n,0==--u&&t(o)}}var o=[],u=0;do{o.push(void 0),u++,e(r.value).qh(s(o.length-1),i),r=n.next()}while(!r.done)}))},i})),vc("Array.prototype.find",(function(t){return t||function(t,i){t:{var n=this;n instanceof String&&(n=String(n));for(var e=n.length,r=0;r<e;r++){var s=n[r];if(t.call(i,s,r,n)){t=s;break t}}t=void 0}return t}})),vc("Object.is",(function(t){return t||function(t,i){return t===i?0!==t||1/t==1/i:t!=t&&i!=i}})),vc("Array.prototype.includes",(function(t){return t||function(t,i){var n=this;n instanceof String&&(n=String(n));var e=n.length;for(0>(i=i||0)&&(i=Math.max(i+e,0));i<e;i++){var r=n[i];if(r===t||Object.is(r,t))return!0}return!1}})),vc("String.prototype.includes",(function(t){return t||function(t,i){return-1!==Fd(this,t,"includes").indexOf(t,i||0)}})),vc("String.prototype.endsWith",(function(t){return t||function(t,i){var n=Fd(this,t,"endsWith");t+="",void 0===i&&(i=n.length),i=Math.max(0,Math.min(0|i,n.length));for(var e=t.length;0<e&&0<i;)if(n[--i]!=t[--e])return!1;return 0>=e}}));var zh=window;function Ah(){return function(t){function i(e){if(n[e])return n[e].exports;var r=n[e]={Lp:e,tw:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.tw=!0,r.exports}var n={};return i.dC=t,i.c=n,i.d=function(t,n,e){i.Hw(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,n){if(1&n&&(t=i(t)),8&n||4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)i.d(e,r,function(i){return t[i]}.bind(null,r));return e},i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,"a",n),n},i.Hw=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},i.p="",i(i.vC=138)}([function(t){t.exports=function(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i}},function(t,i,n){function e(t,i){return Object.prototype.toString.call(t)==="[object ".concat(i,"]")}function r(t,i,n){var e=i.shift();return i.length?d(t[e])||Array.isArray(t[e])?r(t[e],i,n):n:void 0===t[e]?n:t[e]}function s(t){var i=document.createElement("div");return i.textContent=t,i.innerHTML}function o(t){t&&(window.Promise?window.Promise.resolve().then(t):setTimeout(t,1))}function u(t,i){return t.sort((function(t,n){return(i?1:-1)*(t.width*t.height-n.width*n.height)}))}function h(t){var i="<video ".concat("%PLAY_INLINE%",' style="').concat("display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 0; margin: 0; z-index: 1;",'"></video>'),n=X.Uh()?"playsinline muted":"";return new z.a(t).Fw(i.replace("%PLAY_INLINE%",n))}function a(t){return"html5-vpaid".concat(!0===t?",swf":"")}function c(){var t=/CPU OS (.*) like Mac OS X/.exec(navigator.userAgent),i=!!navigator.userAgent.match("iPad")&&1;return t&&(i=+t[1].replace(/_/,".").replace(/_/g,"")),i}function f(t){return"function"!=typeof t.getAttribute||"function"!=typeof t.appendChild}function l(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function v(t){return e(t,"Function")}function d(t){return e(t,"Object")}function p(t){return e(t,"String")}function m(t){return null!=t?Array.isArray(t)||e(t,"HTMLCollection")||e(t,"NodeList")?t:[t]:[]}function b(t,i){(t=m(t)).forEach((function(t){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t.style[n]=i[n])}))}function y(t,i,n,e){var r;for(r in t=n?n.ownerDocument.createElement(t):window.vdb&&window.vdb.Jf&&window.vdb.Jf.createElement?window.vdb.Jf.createElement(t):document.createElement(t),i=i||{})if(Object.prototype.hasOwnProperty.call(i,r)){var s=i[r];null!==s&&("style"===r&&"object"===F()(s)?b(t,s):t.setAttribute(r,Array.isArray(s)?s.join(" "):s))}return e&&(t.innerHTML=e),n&&n.appendChild(t),t}function g(t,i){t=m(t),i=m(i);for(var n=0;n<t.length;++n){for(var e=[],r=0;r<i.length;++r)new RegExp("(^|\\s)".concat(i[r],"(\\s|$)")).test(t[n].className)||e.push(i[r]);t[n].className="".concat(t[n].className," ").concat(e.join(" ")).trim()}}function w(t,i){t=m(t),i=m(i);for(var n=0;n<t.length;++n)if(t[n]&&t[n].className)for(var e=0;e<i.length;++e)t[n].className=t[n].className.replace(new RegExp("(^|\\s+)".concat(i[e],"(\\s+|$)"),"g")," ").trim()}function _(t,i,n){w(t,i),g(t,n)}function E(t){if(Array.isArray(t)&&0<t.length)return!1;if(d(t))for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))return!1;return!0}function O(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];for(t=1;t<i.length;t++)for(var e in i[t])Object.prototype.hasOwnProperty.call(i[t],e)&&(i[0][e]=i[t][e]);return i[0]}function A(t){return Array.isArray(t)&&(t=t.slice()),t}function S(t){return new G.a((function(i,n){setTimeout((function(){n(Error("timeout ".concat(t," ms reached")))}),t)}))}function T(t,i,n){return r(t||{},i.slice(),n)}function j(){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}}function I(t){return!(!t||"function"!=typeof t)&&(0>String(Function.prototype.toString).indexOf("[native code]")?t!==Function.prototype.toString&&null:0<=String(t).indexOf("[native code]"))}function M(t){var i=Y.a.gb();try{if(t&&"function"==typeof t)if(t instanceof i.Function)var n=!0;else{var e=t.toString();e&&(n=!(!(e=new t.constructor("return window; ")())||!e.top))}}catch(t){}return!!n}function N(t){return H.a.uk(t)===q.sr}function R(t){if(!t)return null;if("string"==typeof t)return t;var i=[];if(t&&"object"===F()(t))for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var e=t[n];if(0===e||e&&"function"!=typeof e){var r="".concat(encodeURIComponent(n),"=");r+=encodeURIComponent(String(e)),i.push(r)}}return i.join("&")}function k(t){for(var i,n=[],e=0;e<t.length;e++)(i=R(t[e]))&&n.push(i);return n.join("&")}function L(t,i,n){var e=Array.prototype.toJSON;if(delete Array.prototype.toJSON,window.JSON&&window.JSON.stringify)try{var r=JSON.stringify(t,i,n)}catch(t){}else r=window.JSON&&window.JSON.encode?window.JSON.encode(t):String.valueOf(t);return e&&(Array.prototype.toJSON=e),r}function D(t){return window.atob(t)}function C(t,i){for(var n in i=i||{},t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}function P(t){if(""===t)return 0;var i=0;(t=(t=t.split(".")[0]).split(":")).reverse();for(var n=[1,60,3600],e=0;e<t.length;e++)i+=t[e]*n[e];return i}function x(t,i){return null!=t?t:i}function U(t,i){t:{for(var n=0;n<t.length;n++)if(i(t[n],n,t)){i=n;break t}i=void 0}return t[i]}function V(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(t).filter((function(t){return 0===t.indexOf(i)})).reduce((function(e,r){var s=n.modify?r.split(i)[1]:r;return e[s=!1!==n.WC?s.toLowerCase():s]=t[r],e}),{})}function B(t){try{t=(t=t||window).Object?t:null}catch(i){t=null}var i=t&&t.Y&&t.Y.SandBox&&t.Y.SandBox.vendor&&!!t.Y.SandBox.vendor.register;return!t.JAC&&i}n(24),t=n(14),n.n(t),t=n(10);var F=n.n(t),z=n(38);n(2);var G=n(12),H=n(4),Y=n(6);n.d(i,"G",(function(){return s})),n.d(i,"d",(function(){return o})),n.d(i,"J",(function(){return u})),n.d(i,"i",(function(){return h})),n.d(i,"m",(function(){return a})),n.d(i,"t",(function(){return f})),n.d(i,"E",(function(){return l})),n.d(i,"s",(function(){return v})),n.d(i,"y",(function(){return d})),n.d(i,"z",(function(){return p})),n.d(i,"L",(function(){return m})),n.d(i,"I",(function(){return b})),n.d(i,"h",(function(){return y})),n.d(i,"a",(function(){return g})),n.d(i,"D",(function(){return w})),n.d(i,"F",(function(){return _})),n.d(i,"r",(function(){return E})),n.d(i,"j",(function(){return O})),n.d(i,"f",(function(){return A})),n.d(i,"C",(function(){return S})),n.d(i,"n",(function(){return T})),n.d(i,"p",(function(){return j})),n.d(i,"x",(function(){return I})),n.d(i,"e",(function(){return M})),n.d(i,"u",(function(){return N})),n.d(i,"H",(function(){return R})),n.d(i,"B",(function(){return k})),n.d(i,"A",(function(){return L})),n.d(i,"b",(function(){return D})),n.d(i,"g",(function(){return C})),n.d(i,"K",(function(){return P})),n.d(i,"o",(function(){return x})),n.d(i,"l",(function(){return U})),n.d(i,"k",(function(){return V})),n.d(i,"c",(function(){return X})),n.d(i,"v",(function(){return Z})),n.d(i,"q",(function(){return J})),n.d(i,"w",(function(){return B}));var q={Uy:"m3u",sr:"m3u8",Wy:"mp4",Xy:"ogg",Yy:"ogv",cz:"webm"},W=navigator.userAgent.toLowerCase();i=navigator.platform.toLowerCase(),(n=W.match(/(samsungbrowser|edge)[\s\/:]([\w\d\.]+)/))||(n=W.match(/(opera|ie|trident|firefox|fxios|chrome|crios|version|fban)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)),n?(t=n[0].match(/(chrome|crios)\/(.*?)\s/))&&(n=[null,"chrome",t[2]]):n=[null,"unknown",0],t=("ie"===n[1]||"trident"===n[1])&&document.documentMode;var Q,$,X={Vz:{yz:!!window.uC,json:!!window.JSON,query:!!document.querySelector,kD:!!document.evaluate},nw:function(){return"ios"===X.platform.name},Pk:function(){return/android|blackberry|iphone|ipad|ipod|opera mini|iemobile/i.test(W)},name:"version"===n[1]?n[3]:n[1],platform:{name:W.match(/ip(?:ad|od|hone)/)?"ios":(W.match(/(?:webos|android)/)||i.match(/mac|win|linux/)||["other"])[0],version:function(){var t=/Android (\d+(?:\.\d+)+)/.exec(navigator.userAgent),i=!!navigator.userAgent.match("Android")&&1;if(t){t=t[1].split("."),i=0;for(var n=1,e=0;e<t.length;e++)i+=parseInt(t[e])/n,n*=10}return i}()||c()||(Q=/iPhone OS (.*) like Mac OS X/.exec(navigator.userAgent),$=!(!navigator.userAgent.match("iPod")&&!navigator.userAgent.match("iPhone"))&&1,Q&&($=+Q[1].replace(/_/,".").replace(/_/g,"")),$)||""},Uh:function(){var t=X.nw();return!X.Pk()||c()||t&&"safari"===X.name&&10<=X.version||t&&"chrome"===X.name&&54<=X.version||t&&"fxios"===X.name&&10.3<=X.version||t&&"fban"===X.name||!!X.platform.android&&"chrome"===X.name&&53<=X.version||!!X.platform.android&&"firefox"===X.name||!!X.platform.android&&"samsungbrowser"===X.name&&6.2<=X.version},version:t||parseFloat("opera"===n[1]&&n[4]?n[4]:n[2])};X[X.name]=!0,X[X.name+parseInt(X.version,10)]=!0,X.platform[X.platform.name]=!0;var Z=0<=navigator.userAgent.indexOf("MSIE ")||0<=navigator.userAgent.indexOf("Trident/"),J=0<=navigator.userAgent.toLowerCase().indexOf("chrome");try{var K=document.createElement("canvas");window.WebGLRenderingContext&&(K.getContext("webgl")||K.getContext("experimental-webgl"))}catch(Q){}},function(t,i,n){function e(){if(this.zn&&this.sa(),this.rb){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];this.rb.apply(window,i)}}n.d(i,"a",(function(){return u}));var r=n(64),s=n(80).default,o=n(18).default,u=function(){function t(){}var i=t.prototype;return i.sa=function(){this.$b?this.$b.sa():void 0!==this.xa.nodeType?s.removeEventListener(this.xa,this.aj,this.Rg):this.xa.removeEventListener(this.aj,this.Rg,this.Wn)},i.link=function(){if(!arguments.length)return this;this.$b||(this.$b=new r.a(this));for(var t=0;t<arguments.length;++t){var i=0>t||arguments.length<=t?void 0:arguments[t];i.$b?this.$b.Cw(i.$b):this.$b.ve(i)}return this.$b.commit(),this},t.bind=function(i,n,r,o,u){o=!!o,u=!!u;var h=new t;return h.xa=i,h.aj=n,h.rb=r,h.Wn=o,h.zn=u,h.Rg=e.bind(h),void 0!==i.nodeType?s.addEventListener(i,n,h.Rg):i.addEventListener(n,h.Rg,o),h},t.Fb=function(i,n,e){return t.bind(i,n,e,void 0,!0)},t.empty=function(){var i=new t;return i.xa=new o,i.aj="DOESN'T_MATTER",i.Wn=!0,i.zn=!0,i},t.group=function(){for(var i=t.empty(),n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return e.forEach((function(n){n.length?(n=t.group.apply(null,n),i.link(n)):i.link(n)})),i},t}()},function(t,i,n){n.d(i,"a",(function(){return e})),n.d(i,"b",(function(){return r})),n.d(i,"c",(function(){return s})),n.d(i,"d",(function(){return o})),n.d(i,"e",(function(){return u})),n.d(i,"f",(function(){return h})),n.d(i,"h",(function(){return a})),n.d(i,"i",(function(){return c})),n.d(i,"j",(function(){return f})),n.d(i,"k",(function(){return l})),n.d(i,"l",(function(){return v})),n.d(i,"m",(function(){return d})),n.d(i,"n",(function(){return p})),n.d(i,"o",(function(){return m})),n.d(i,"p",(function(){return b})),n.d(i,"q",(function(){return y})),n.d(i,"s",(function(){return g})),n.d(i,"t",(function(){return w})),n.d(i,"u",(function(){return _})),n.d(i,"v",(function(){return E})),n.d(i,"w",(function(){return O})),n.d(i,"x",(function(){return A})),n.d(i,"y",(function(){return S})),n.d(i,"z",(function(){return T})),n.d(i,"A",(function(){return j})),n.d(i,"g",(function(){return I})),n.d(i,"r",(function(){return M}));var e="AdClickThru",r="AdDurationChange",s="AdError",o="AdExpandedChange",u="AdImpression",h="AdInteraction",a="AdLinearChange",c="AdLoaded",f="AdLog",l="AdPaused",v="AdPlaying",d="AdRemainingTimeChange",p="AdSizeChange",m="AdSkipped",b="AdStarted",y="AdStopped",g="AdUserAcceptInvitation",w="AdUserClose",_="AdUserMinimize",E="AdVideoComplete",O="AdVideoFirstQuartile",A="AdVideoMidpoint",S="AdVideoStart",T="AdVideoThirdQuartile",j="AdVolumeChange",I="AdIntervention",M="AdTimeUpdate"},function(t,i,n){var e=n(11),r=function(){function t(){}return t.Ib=function(t,i){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[\\?&]".concat(t,"=([^&#]*)")).exec(i);return null==e?"":n?decodeURIComponent(e[1].replace(/\+/g," ")):e[1]},t}(),s=n(6);n.d(i,"a",(function(){return o}));var o=function(){function t(){}return t.Th=function(t){var i=document.createElement("a");return i.href=t,{host:i.host,hostname:i.hostname,origin:i.origin||"".concat(i.protocol,"//").concat(i.hostname),pathname:i.pathname,port:i.port,protocol:i.protocol,search:i.search}},t.uk=function(i){if(!i||"string"!=typeof i)return"";var n=(i=t.Th(i).pathname||"").lastIndexOf(".");return-1!==n?i.substring(n+1).toLowerCase():""},t.vc=function(){return s.a.vc()},t.ck=function(t){return s.a.vc()&&(t=e.a.hl(t,"http://","https://")),t},t.Dh=function(t){return(t=/(?:(?:[\w]+:)?\/\/)?([^?#\/:]+)/.exec(void 0!==t?t:s.a.Yc()))?t[1]:""},t.Ib=function(t,i){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];return r.Ib(t,void 0!==i?i:s.a.Yc(),n)},t}()},function(t){t.exports=function(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}},function(t,i,n){t=n(14);var e=n.n(t),r=function(){function t(){}return t.Yc=function(t){t=t||window;var i=this.Hh(t);t=t&&t.location&&t.location.ancestorOrigins;var n,r=i.document&&i.document.referrer;if(i===window.top)return i.location.href;if(r&&(n=!!(n=r.match(/.*?\.ampproject\.(?:org|net)\/(?:.\/)*([^?]+)/i))&&n[1]))return n;if(t&&0<t.length){for(i=e()(t),r=0;r<i.length;r++)if(n=i[r].match(/(.*)\.cdn\.ampproject\.(?:org|net)/i)){var s=n[1];break}return(s=!!s&&s.replace(/--/g,"${dash}").replace(/-/g,".").replace(/\$\{dash\}/g,"-"))?s:t[t.length-1]}return r||i.location.href},t.Hh=function(t){for(t=t||window;t;)try{var i=t.parent;if(!i.document)break;if(t=i,i===i.parent)break}catch(t){break}return t},t.Bk=function(t){t=t||window;try{return t.parent}catch(t){}return null},t.vc=function(){return-1===(window.location.protocol||this.Yc()||"").indexOf("http:")},t}();n.d(i,"a",(function(){return s}));var s=function(){function t(){}return t.gb=function(){return window},t.Yc=function(t){return r.Yc(t)},t.Hh=function(t){return r.Hh(t)},t.Bk=function(t){return r.Bk(t)},t.vc=function(){return r.vc()},t.Vv=function(){return window.navigator.userAgent},t.Ge=function(){try{return window.self!==window.top}catch(t){return!0}},t.yv=function(){for(var t=window.self,i=0;t!==window.top&&t.parent;){try{if(t.parent&&t.parent.location&&!t.parent.location.href)throw Error("HandleSafari")}catch(t){if(!(2>i))break;i++}t=t.parent}return i},t}()},function(t,i,n){n.r(i),n.d(i,"ACCEPT_INVITATION",(function(){return e})),n.d(i,"CLICK",(function(){return r})),n.d(i,"CLOSE",(function(){return s})),n.d(i,"COLLAPSE",(function(){return o})),n.d(i,"COMPLETE",(function(){return u})),n.d(i,"CREATIVE_VIEW",(function(){return h})),n.d(i,"EXIT_FULLSCREEN",(function(){return a})),n.d(i,"EXPAND",(function(){return c})),n.d(i,"FIRST_QUARTILE",(function(){return f})),n.d(i,"FULLSCREEN",(function(){return l})),n.d(i,"IMPRESSION",(function(){return v})),n.d(i,"MIDPOINT",(function(){return d})),n.d(i,"MUTE",(function(){return p})),n.d(i,"PAUSE",(function(){return m})),n.d(i,"PLAYER_COLLAPSE",(function(){return b})),n.d(i,"PLAYER_EXPAND",(function(){return y})),n.d(i,"PROGRESS",(function(){return g})),n.d(i,"RESUME",(function(){return w})),n.d(i,"REWIND",(function(){return _})),n.d(i,"SKIP",(function(){return E})),n.d(i,"START",(function(){return O})),n.d(i,"THIRD_QUARTILE",(function(){return A})),n.d(i,"UNMUTE",(function(){return S}));var e="acceptInvitation",r="click",s="close",o="collapse",u="complete",h="creativeView",a="exitFullscreen",c="expand",f="firstQuartile",l="fullscreen",v="impression",d="midpoint",p="mute",m="pause",b="playerCollapse",y="playerExpand",g="progress",w="resume",_="rewind",E="skip",O="start",A="thirdQuartile",S="unmute"},function(t,i,n){function e(t){return 10>t?"0".concat(t):t}function r(t){return 10>t?"00".concat(t):100>t?"0".concat(t):t}function s(t,i,n){if(c.indexOf(t)>=o()&&window.console){var s=new Date;n=["".concat(e(s.getHours()),":").concat(e(s.getMinutes()),":").concat(e(s.getSeconds()),".").concat(r(s.getMilliseconds())),"[".concat(t,"]"),"".concat(i,":").concat(v.sq?" ".concat(v.sq):"")].concat(Array.prototype.slice.apply(n)),s=t.toLowerCase(),window.console[s]||(s="log"),s=window.console[s],"object"===u()(s)&&(s=Function.prototype.bind.call(s,window.console)),s&&s.apply(window.console,n)}for(s=0;s<f.length;s++)f[s](t,i,n)}function o(){if(void 0===v.lj){var t=parseInt(h.a.Ib("aolplayerloglvl"),10);v.lj=isNaN(t)?Number(a.a["logger.level"]):t}return v.lj}n(24),t=n(10);var u=n.n(t),h=n(4),a=n(16),c=["DEBUG","INFO","WARN","ERROR"],f=[],l={},v=function(){function t(t){this.name=t}var i=t.prototype;return i.debug=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];s("DEBUG",this.name,i)},i.info=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];s("INFO",this.name,i)},i.warn=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];s("WARN",this.name,i)},i.error=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];s("ERROR",this.name,i)},t}();i.a={Ty:v,uz:function(t){f.push(t)},xp:o,Na:function(t){return l[t]||(l[t]=new v(t)),l[t]},FC:function(t){v.lj=t},LC:function(t){v.sq=t}}},function(t){t=t.exports="undefined"!=typeof window&&Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=t)},function(t){function i(t){return(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)}function n(e){return"function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?t.exports=n=function(t){return i(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)},n(e)}t.exports=n},function(t,i,n){n.d(i,"a",(function(){return e}));var e=function(){function t(){}return t.Nh=function(i){return!i||""===t.trim(i)},t.trim=function(i,n){return t.yw(t.Cq(i,n),n)},t.yw=function(t,i){return null==i&&(i="\\s"),t&&t.replace(new RegExp("^[".concat(i,"]+"),"g"),"")},t.Cq=function(t,i){return null==i&&(i="\\s"),t&&t.replace(new RegExp("[".concat(i,"]+$"),"g"),"")},t.startsWith=function(t,i){return t&&0===t.indexOf(i)},t.endsWith=function(t,i){var n=t&&t.lastIndexOf(i);return-1!==n&&n===t.length-i.length},t.hl=function(t,i,n){return t&&t.replace(new RegExp(i,"g"),n)},t.Uo=function(){return!1},t.Ao=function(t){if(t)return(t=t.toLowerCase()).charAt(0).toUpperCase()+t.slice(1)},t}()},function(t,i,n){function e(){}function r(t,i){for(;3===t.V;)t=t.re;0===t.V?t.ff.push(i):v((function(){var n=1===t.V?i.Iw:i.mq;if(null===n)(1===t.V?s:o)(i.promise,t.re);else{try{var e=n(t.re)}catch(t){return void o(i.promise,t)}s(i.promise,e)}}),1)}function s(t,i){try{if(i===t)throw new TypeError("A promise cannot be resolved with itself.");if(i&&("object"===f()(i)||"function"==typeof i)){var n=i.then;if(i instanceof d)return t.V=3,t.re=i,void u(t);if("function"==typeof n)return void a(function(t,i){return function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];t.apply(i,e)}}(n,i),t)}t.V=1,t.re=i,u(t)}catch(i){o(t,i)}}function o(t,i){for(var n,e=0,r=t.ff.length;!n&&e<r;e++)n=t.ff[e].mq;n||"1"!==l.a.Ib("logpromisereject")||window.console,t.V=2,t.re=i,u(t)}function u(t){t.ff.forEach((function(i){return r(t,i)})),t.ff=null}function h(t,i,n){this.Iw="function"==typeof t?t:null,this.mq="function"==typeof i?i:null,this.promise=n}function a(t,i){var n=!1;try{t((function(t){n||(n=!0,s(i,t))}),(function(t){n||(n=!0,o(i,t))}))}catch(t){n||(n=!0,o(i,t))}}t=n(14);var c=n.n(t);t=n(10);var f=n.n(t),l=n(4),v=window.Promise?function(t){window.Promise.resolve().then(t)}:setTimeout,d=function(){function t(t){if("object"!==f()(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.V=0,this.re=void 0,this.ff=[],a(t,this)}var i=t.prototype;return i.catch=function(t){return this.then(null,t)},i.then=function(i,n){var s=new t(e);return r(this,new h(i,n,s)),s},i.finally=function(t){return this.then(t,t)},t}();d.all=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var e=Array.prototype.slice.call(1===i.length&&Array.isArray(i[0])?i[0]:i);return new d((function(t,i){function n(s,o){try{if(o&&("object"===f()(o)||"function"==typeof o)){var u=o.then;if("function"==typeof u)return void u.call(o,(function(t){n(s,t)}),i)}e[s]=o,0==--r&&t(e)}catch(t){i(t)}}if(0===e.length)return t([]);for(var r=e.length,s=0;s<e.length;s++)n(s,e[s])}))},d.resolve=function(t){return t&&"object"===f()(t)&&t.constructor===d?t:new d((function(i){i(t)}))},d.reject=function(t){return new d((function(i,n){n(t)}))},d.race=function(t){return new d((function(i,n){t.forEach((function(t){return t.then(i,n)}))}))},d.Ky=function(t){var i=null;return function(){i=i||d.resolve();for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return i.then(t.bind.apply(t,c()([this].concat(e))))}},d.Ky((function(){}))(),i.a=d},function(t,i,n){t.exports=!n(27)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,i,n){var e=n(57),r=n(58),s=n(59);t.exports=function(t){return e(t)||r(t)||s()}},function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,i,n){n.d(i,"a",(function(){return e}));var e=function(){function t(){}return t.hc=function(i){var n="stage"===i,e=n?".dev":"",r=n?"-stage":"",s={"adserver.url":"https://video".concat(r).concat(".adaptv.advertising.com","/"),"adstracker.url":"https://video".concat(r).concat(".adaptv.advertising.com","/"),"aeg.default_vendor":n?"593fb37531e0a533fe6dd8fa":"593fb311c214e33ec50202f0","cdn.url":"https://cdn-ssl".concat(".vidible.tv","/").concat(i,"/"),"cdn.url.dev":"https://cdn-ssl".concat(".vidible.tv","/dev/"),"cdn.url.yimg":"https://s.yimg.com/rx/vrm/builds/".concat("40459743","/"),"delivery.url":"https://delivery".concat(e).concat(".vidible.tv","/"),"hls.js.path":"player/js/21.1.168/lib/hls.min.js","ima.url":"https://s0.2mdn.net/instream/html5/ima3".concat(n?"_debug":"",".js"),"logger.level":n?"0":"3","s3.url":"https://s3.amazonaws.com/vdb-cdn-files/","tracking.url":"https://trk".concat(e).concat(".vidible.tv","/trk/"),"vapa.url":n?"https://localhost:3000/local-storage.html":"https://cdn-ssl.vidible.tv/prod/player/ad-time/local-storage.html"};Object.keys(s).forEach((function(i){t[i]=s[i]}))},t}()},function(t,i,n){n.d(i,"a",(function(){return e}));var e={Ml:"errorEvent",tr:"mediaEvent",ur:"pixelEvent",xr:"scriptEvent",Br:"xhrEvent"}},function(t,i,n){n.r(i),n.d(i,"default",(function(){return r}));var e=n(8),r=function(){function t(){this.mb={},this.mm=[],this.ie=e.a.Na("EventBus")}var i=t.prototype;return i.addEventListener=function(t,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;this.mb[t]||(this.mb[t]=[]),this.mb[t].push({Lh:i,priority:n})},i.removeEventListener=function(t,i){this.mb[t]&&(this.mb[t]=this.mb[t].filter((function(t){return t.Lh!==i})))},i.rz=function(t){this.mm.push(t)},i.dispatchEvent=function(t){var i=this;if("string"==typeof t)var n=t,e=Array.prototype.slice.call(arguments,1);else n=t.type,t.target=this,e=Array.prototype.slice.call(arguments,0);var r=this.mb[n];r&&((r=r.slice()).sort((function(t,i){return i.priority-t.priority})),r.forEach((function(t){return i.cn(n,e,t.Lh)}))),this.mm.forEach((function(t){return t.call({},n,e)}))},i.cn=function(t,i,n){try{n.apply({},i)}catch(n){this.ie.error(n,"event",{args:i,type:t})}},i.yq=function(){var t=this;this.ie.info("Removing all listeners."),Object.keys(this.mb).forEach((function(i){Array.isArray(t.mb[i])&&delete t.mb[i]}))},t}()},function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t){t=t.exports={version:"2.6.5"},"number"==typeof __e&&(__e=t)},function(t,i,n){var e=n(61),r=n(50);t.exports=function(t){return e(r(t))}},function(t,i,n){var e=n(23),r=n(35),s=n(36),o=Object.defineProperty;i.Hb=n(13)?Object.defineProperty:function(t,i,n){if(e(t),i=s(i,!0),e(n),r)try{return o(t,i,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[i]=n.value),t}},function(t,i,n){var e=n(19);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,i,n){t=n(22).Hb,i=Function.prototype;var e=/^\s*function ([^ (]*)/;"name"in i||n(13)&&t(i,"name",{configurable:!0,get:function(){try{return(""+this).match(e)[1]}catch(t){return""}}})},function(t,i,n){var e=n(22),r=n(29);t.exports=n(13)?function(t,i,n){return e.Hb(t,i,r(1,n))}:function(t,i,n){return t[i]=n,t}},function(t){var i={}.hasOwnProperty;t.exports=function(t,n){return i.call(t,n)}},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,i,n){var e=n(81),r=n(82),s=n(83);t.exports=function(t,i){return e(t)||r(t,i)||s()}},function(t){t.exports=function(t,i){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:i}}},function(t){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,i,n){i=n(20);var e=n(9),r=e["__core-js_shared__"]||(e["__core-js_shared__"]={});(t.exports=function(t,i){return r[t]||(r[t]=void 0!==i?i:{})})("versions",[]).push({version:i.version,mode:n(49)?"pure":"global",Kz:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?n:i)(t)}},function(t,i,n){var e=n(31)("wks"),r=n(30),s=n(9).Symbol,o="function"==typeof s;(t.exports=function(t){return e[t]||(e[t]=o&&s[t]||(o?s:r)("Symbol."+t))}).store=e},function(q,k,g){g.d(k,"a",(function(){return r})),q=g(10);var p=g.n(q),w=g(1),z=g(6),r=function(){function l(){}return l.pu=function(){try{var n=function(){var m=!1;eval('func = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{(void 0)()}catch(t){m=!0}return m}()}catch(t){n=0}return n},l.ou=function(){var t=!1;try{({}).Hb()}catch(i){t=!0}return t},l.ju=function(){var t=z.a.gb();return!!(Object(w.e)(t.AudioContext)&&(t=new t.AudioContext,t=Object(w.e)(t.createBufferSource)&&t.createBufferSource()||{},t.detune&&Object.prototype.hasOwnProperty.call(t.detune,"value")))&&(t.detune.value=100,100===t.detune.value)},l.hu=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}},l.mu=function(){try{var t=document.createElement("input");return t.setAttribute("type","range"),"text"!==t.type}catch(t){return!1}},l.lu=function(){try{return eval("1 == [for (item of [1,2,3]) item][0]")}catch(t){return!1}},l.iu=function(){var t=z.a.gb();try{return"object"===p()(t.Intl.Collator().resolvedOptions())}catch(t){return!1}},l.nu=function(){var t=z.a.gb();try{return 0===new t.Uint16Array(1)[0]}catch(t){return!1}},l.fu=function(){var t=z.a.gb();try{return t.ActiveXObject&&-1===t.ActiveXObject.toString().indexOf("native")}catch(t){return!1}},l.ku=function(){var t=z.a.gb();try{return-1===Object.prototype.toString.call(t.HTMLElement).indexOf("Constructor")}catch(t){return!1}},l.btoa=function(t){var i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=z.a.gb();if(!Object(w.e)(n.btoa)||i){i=String(t),n=0;for(var e="",r=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";i.charAt(0|r)||(s="=",r%1);e+=s.charAt((63&n>>8)-r%1*8)){var o=i.charCodeAt(r+=.75);if(255<o)return"";n=n<<8|o}return e}return n.btoa(t)},l.gu=function(t){try{return t.animate&&Object(w.x)(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}},l}()},function(t,i,n){t.exports=!n(13)&&!n(27)((function(){return 7!=Object.defineProperty(n(40)("div"),"a",{get:function(){return 7}}).a}))},function(t,i,n){var e=n(19);t.exports=function(t,i){if(!e(t))return t;var n,r;if(i&&"function"==typeof(n=t.toString)&&!e(r=n.call(t))||"function"==typeof(n=t.valueOf)&&!e(r=n.call(t))||!i&&"function"==typeof(n=t.toString)&&!e(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,i,n){t=n(41);var e=n(70),r=n(21),s=n(73),o=n(74);t(t.Zl,"Object",{getOwnPropertyDescriptors:function(t){t=r(t);for(var i,n,u=s.Hb,h=e(t),a={},c=0;h.length>c;)void 0!==(n=u(t,i=h[c++]))&&o(a,i,n);return a}})},function(t,i,n){var e=n(44),r=n(12);n.d(i,"a",(function(){return s}));var s=function(){function t(t){this.nb=this.dh=t}var i=t.prototype;return i.NC=function(t){this.nb=t},t.Ff=function(t,i,n){if(void 0===n)return t.getAttribute(i);null===n?t.removeAttribute(i):t.setAttribute(i,n)},i.Zm=function(t,i,n){var e="TABLE"===t.nodeName,r=this.nb.createElement("div");r.innerHTML="<".concat(t.nodeName,">").concat(i,"</").concat(t.nodeName,">"),n(e?t.lastChild:t,e?r.lastChild.lastChild:r.lastChild)},i.Fw=function(t){var i=this.nb.createElement("div");return i.innerHTML=t,i.lastChild},i.Jm=function(t){for(var i,n="",r=0;null!=(i=t[r++]);)i.nodeType===e.c||i.nodeType===e.a?n+=i.nodeValue:i.nodeType!==e.b&&(n+=this.Jm(i.childNodes));return n},i.replace=function(t,i){this.Zm(t,i,(function(i,n){return t.replaceChild(n,i),i}))},i.append=function(t,i){this.Zm(t,i,(function(t,i){return t.appendChild(i.firstChild),i.firstChild}))},i.LB=function(t,i){if(null==i)return t.innerHTML;try{t.innerHTML=i}catch(n){this.replace(t,i)}return null},i.text=function(i,n){return null==n?this.Jm([i]):(t.empty(i),i.appendChild(this.nb.createTextNode(n)),null)},t.empty=function(t){if(t&&t.removeChild)for(;t.firstChild;)t.removeChild(t.firstChild)},i.createElement=function(t){return this.nb.createElement(t)},i.createDocumentFragment=function(){return this.nb.createDocumentFragment()},i.Bh=function(t){return(t=t||this.nb).head||t.getElementsByTagName("head")[0]},i.rm=function(i,n,e,r){var s=this.createElement("script");return t.Ff(s,"type","text/javascript"),r&&Object.keys(r).forEach((function(i){return t.Ff(s,i,r[i])})),e&&t.Ff(s,"async","true"),i&&t.Ff(s,"src",i),n&&t.Ff(s,"crossorigin","anonymous"),s},i.Ld=function(t,i,n){function e(){s.onload=function(){},s.onerror=function(){},s.onreadystatechange=function(){},o.removeChild(s)}t&&0===t.indexOf("//")&&0!==window.location.protocol.indexOf("http")&&(t="https:".concat(t));var s=this.rm(t,i,n,void 0),o=this.Bh(this.dh);return t=new r.a((function(t,i){s.onload=t,s.onerror=i})),s.onreadystatechange=function(){"complete"!==s.readyState&&"loaded"!==s.readyState||s.onload()},t.then(e,e),o.appendChild(s),t},i.$v=function(t){var i=this.rm();return this.text(i,t),this.Bh().appendChild(i),i},i.MA=function(t,i,n){var e="VDBCallback".concat(Math.round(1e4*Math.random())),r=n||this.dh&&this.dh.defaultView||window;r[e]=function(){if("function"==typeof i){for(var t=arguments.length,n=Array(t),s=0;s<t;s++)n[s]=arguments[s];i.apply({},n)}try{delete r[e]}catch(t){r[e]=void 0}},this.Ld(t.replace("[callback]",e))},i.cC=function(t){var i=this.nb.createElement("link");this.Bh().appendChild(i),i.rel="stylesheet",i.type="text/css",i.href=t},i.To=function(t,i){i=i||this.Bh();var n="".concat(function(t){function i(t,i){var n=(65535&t)+(65535&i);return(t>>16)+(i>>16)+(n>>16)<<16|65535&n}function n(t,n,e,r,s,o){return t=i(i(n,t),i(r,o)),i(t<<s|t>>>32-s,e)}function e(t,i,e,r,s,o,u){return n(i&e|~i&r,t,i,s,o,u)}function r(t,i,e,r,s,o,u){return n(i&r|e&~r,t,i,s,o,u)}function s(t,i,e,r,s,o,u){return n(e^(i|~r),t,i,s,o,u)}return function(t){for(var i,n="",e=0;e<t.length;e++)i=t.charCodeAt(e),n+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return n}(function(t){var o,u=Array(t.length>>2);for(o=0;o<u.length;o++)u[o]=0;for(o=0;o<8*t.length;o+=8)u[o>>5]|=(255&t.charCodeAt(o/8))<<o%32;u[(t=8*t.length)>>5]|=128<<t%32,u[14+(t+64>>>9<<4)]=t,t=1732584193,o=-271733879;for(var h=-1732584194,a=271733878,c=0;c<u.length;c+=16){var f=t,l=o,v=h,d=a;t=e(t,o,h,a,u[c+0],7,-680876936),a=e(a,t,o,h,u[c+1],12,-389564586),h=e(h,a,t,o,u[c+2],17,606105819),o=e(o,h,a,t,u[c+3],22,-1044525330),t=e(t,o,h,a,u[c+4],7,-176418897),a=e(a,t,o,h,u[c+5],12,1200080426),h=e(h,a,t,o,u[c+6],17,-1473231341),o=e(o,h,a,t,u[c+7],22,-45705983),t=e(t,o,h,a,u[c+8],7,1770035416),a=e(a,t,o,h,u[c+9],12,-1958414417),h=e(h,a,t,o,u[c+10],17,-42063),o=e(o,h,a,t,u[c+11],22,-1990404162),t=e(t,o,h,a,u[c+12],7,1804603682),a=e(a,t,o,h,u[c+13],12,-40341101),h=e(h,a,t,o,u[c+14],17,-1502002290),t=r(t,o=e(o,h,a,t,u[c+15],22,1236535329),h,a,u[c+1],5,-165796510),a=r(a,t,o,h,u[c+6],9,-1069501632),h=r(h,a,t,o,u[c+11],14,643717713),o=r(o,h,a,t,u[c+0],20,-373897302),t=r(t,o,h,a,u[c+5],5,-701558691),a=r(a,t,o,h,u[c+10],9,38016083),h=r(h,a,t,o,u[c+15],14,-660478335),o=r(o,h,a,t,u[c+4],20,-405537848),t=r(t,o,h,a,u[c+9],5,568446438),a=r(a,t,o,h,u[c+14],9,-1019803690),h=r(h,a,t,o,u[c+3],14,-187363961),o=r(o,h,a,t,u[c+8],20,1163531501),t=r(t,o,h,a,u[c+13],5,-1444681467),a=r(a,t,o,h,u[c+2],9,-51403784),h=r(h,a,t,o,u[c+7],14,1735328473),t=n((o=r(o,h,a,t,u[c+12],20,-1926607734))^h^a,t,o,u[c+5],4,-378558),a=n(t^o^h,a,t,u[c+8],11,-2022574463),h=n(a^t^o,h,a,u[c+11],16,1839030562),o=n(h^a^t,o,h,u[c+14],23,-35309556),t=n(o^h^a,t,o,u[c+1],4,-1530992060),a=n(t^o^h,a,t,u[c+4],11,1272893353),h=n(a^t^o,h,a,u[c+7],16,-155497632),o=n(h^a^t,o,h,u[c+10],23,-1094730640),t=n(o^h^a,t,o,u[c+13],4,681279174),a=n(t^o^h,a,t,u[c+0],11,-358537222),h=n(a^t^o,h,a,u[c+3],16,-722521979),o=n(h^a^t,o,h,u[c+6],23,76029189),t=n(o^h^a,t,o,u[c+9],4,-640364487),a=n(t^o^h,a,t,u[c+12],11,-421815835),h=n(a^t^o,h,a,u[c+15],16,530742520),t=s(t,o=n(h^a^t,o,h,u[c+2],23,-995338651),h,a,u[c+0],6,-198630844),a=s(a,t,o,h,u[c+7],10,1126891415),h=s(h,a,t,o,u[c+14],15,-1416354905),o=s(o,h,a,t,u[c+5],21,-57434055),t=s(t,o,h,a,u[c+12],6,1700485571),a=s(a,t,o,h,u[c+3],10,-1894986606),h=s(h,a,t,o,u[c+10],15,-1051523),o=s(o,h,a,t,u[c+1],21,-2054922799),t=s(t,o,h,a,u[c+8],6,1873313359),a=s(a,t,o,h,u[c+15],10,-30611744),h=s(h,a,t,o,u[c+6],15,-1560198380),o=s(o,h,a,t,u[c+13],21,1309151649),t=s(t,o,h,a,u[c+4],6,-145523070),a=s(a,t,o,h,u[c+11],10,-1120210379),h=s(h,a,t,o,u[c+2],15,718787259),o=s(o,h,a,t,u[c+9],21,-343485551),t=i(t,f),o=i(o,l),h=i(h,v),a=i(a,d)}for(u=[t,o,h,a],t="",o=0;o<32*u.length;o+=8)t+=String.fromCharCode(u[o>>5]>>>o%32&255);return t}(function(t){for(var i,n,e="",r=-1;++r<t.length;)i=t.charCodeAt(r),n=r+1<t.length?t.charCodeAt(r+1):0,55296<=i&&56319>=i&&56320<=n&&57343>=n&&(i=65536+((1023&i)<<10)+(1023&n),r++),127>=i?e+=String.fromCharCode(i):2047>=i?e+=String.fromCharCode(192|i>>>6&31,128|63&i):65535>=i?e+=String.fromCharCode(224|i>>>12&15,128|i>>>6&63,128|63&i):2097151>=i&&(e+=String.fromCharCode(240|i>>>18&7,128|i>>>12&63,128|i>>>6&63,128|63&i));return e}(t)))}(t),"-style");if(!this.nb.getElementById(n)){var e=this.nb.createElement("style");e.setAttribute("id",n),e.type="text/css",e.appendChild(this.nb.createTextNode(t)),i.appendChild(e)}},i.Sz=function(t,i){this.To(t,i)},i.Oz=function(t){var i=this.nb.createElement("img");return i.src=t,i},i.Nz=function(t){var i=this.nb.createElement("div");return null!=t&&(i.className=t),i},i.log=function(t){this.vd||(this.vd=this.nb.createElement("div"),this.vd.style.position="fixed",this.vd.style.top="0px",this.vd.style.left="0px",this.dh.getElementsByTagName("body")[0].appendChild(this.vd)),this.vd.innerHTML="".concat(t,"<br>").concat(this.vd.innerHTML)},t}()},function(t,i,n){n.d(i,"d",(function(){return e})),n.d(i,"a",(function(){return r})),n.d(i,"c",(function(){return s})),n.d(i,"b",(function(){return o}));var e="preroll",r="midroll",s="nonlinear",o="native"},function(t,i,n){i=n(19);var e=n(9).document,r=i(e)&&i(e.createElement);t.exports=function(t){return r?e.createElement(t):{}}},function(t,i,n){function e(t,i,n){var a=t&e.lr,c=t&e.mr,f=t&e.Zl,l=t&e.Sl,v=t&e.jr;f=c?r:f?r[i]||(r[i]={}):(r[i]||{}).prototype;var d,p=c?s:s[i]||(s[i]={}),m=p.prototype||(p.prototype={});for(d in c&&(n=i),n)i=((c=!a&&f&&void 0!==f[d])?f:n)[d],c=v&&c?h(i,r):l&&"function"==typeof i?h(Function.call,i):i,f&&u(f,d,i,t&e.zr),p[d]!=i&&o(p,d,c),l&&m[d]!=i&&(m[d]=i)}var r=n(9),s=n(20),o=n(25),u=n(42),h=n(46);r.Lz=s,e.lr=1,e.mr=2,e.Zl=4,e.Sl=8,e.jr=16,e.zr=64,t.exports=e},function(t,i,n){var e=n(9),r=n(25),s=n(26),o=n(30)("src"),u=n(60),h=(""+u).split("toString");n(20).PB=function(t){return u.call(t)},(t.exports=function(t,i,n,u){var a="function"==typeof n;a&&(s(n,"name")||r(n,"name",i)),t[i]!==n&&(a&&(s(n,o)||r(n,o,t[i]?""+t[i]:h.join(String(i)))),t===e?t[i]=n:u?t[i]?t[i]=n:r(t,i,n):(delete t[i],r(t,i,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||u.call(this)}))},function(t,i,n){n.d(i,"a",(function(){return s}));var e=n(17),r=function(){function t(){}var i=t.prototype;return i.Iu=function(){return this.type=e.a.Ml,this},i.Tw=function(){return this.type=e.a.ur,this},i.xC=function(){return this.type=e.a.xr,this},i.jD=function(){return this.type=e.a.Br,this},i.eC=function(){return this.type=e.a.tr,this},i.uh=function(t){return this.eventName=t,this},i.data=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return this.data=1<i.length?i:i[0],this},i.wo=function(){return new s(this.type,this.eventName,this.data)},t}(),s=function(){function t(t,i,n){this.type=t,this.eventName=i,this.data=n}t.xo=function(){return new r},t.clone=function(i){return new t(i.type,i.eventName,i.data)};var i=t.prototype;return i.getType=function(){return this.type},i.GA=function(){return this.eventName},i.getData=function(){return this.data},i.Mv=function(){var t={};return t.type=this.type,t.eventName=this.eventName,t.data=this.data,t},t}()},function(t,i,n){n.d(i,"c",(function(){return e})),n.d(i,"a",(function(){return r})),n.d(i,"b",(function(){return s}));var e=3,r=4,s=8},function(t,i,n){n.d(i,"c",(function(){return e})),n.d(i,"a",(function(){return r})),n.d(i,"b",(function(){return s})),n.d(i,"d",(function(){return o}));var e="media-item-playback-started",r="media-item-playback-ended",s="media-item-playback-progress",o="player-rendered"},function(t,i,n){var e=n(47);t.exports=function(t,i,n){if(e(t),void 0===i)return t;switch(n){case 1:return function(n){return t.call(i,n)};case 2:return function(n,e){return t.call(i,n,e)};case 3:return function(n,e,r){return t.call(i,n,e,r)}}return function(){return t.apply(i,arguments)}}},function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t){t.exports=!1},function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,i,n){var e=n(31)("keys"),r=n(30);t.exports=function(t){return e[t]||(e[t]=r(t))}},function(t,i,n){n.d(i,"a",(function(){return e})),n.d(i,"b",(function(){return r})),n.d(i,"c",(function(){return s})),n.d(i,"d",(function(){return o}));var e="RM.APIFunctionIsMissing",r="RM.getVpaidAdIsMissing",s="RM.noCreative",o="RM.VPAIDUrlUnavailable"},,function(t,i,n){var e=n(21),r=n(55),s=n(62);t.exports=function(t){return function(i,n,o){i=e(i);var u=r(i.length);if(o=s(o,u),t&&n!=n){for(;u>o;)if((n=i[o++])!=n)return!0}else for(;u>o;o++)if((t||o in i)&&i[o]===n)return t||o||0;return!t&&-1}}},function(t,i,n){var e=n(32),r=Math.min;t.exports=function(t){return 0<t?r(e(t),9007199254740991):0}},function(t){t.exports="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},function(t){t.exports=function(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}}},function(t){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,i,n){t.exports=n(31)("native-function-to-string",Function.toString)},function(t,i,n){var e=n(48);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,i,n){var e=n(32),r=Math.max,s=Math.min;t.exports=function(t,i){return 0>(t=e(t))?r(t+i,0):s(t,i)}},function(t,i,n){var e=n(26),r=n(21),s=n(54)(!1),o=n(51)("IE_PROTO");t.exports=function(t,i){t=r(t);var n,u=0,h=[];for(n in t)n!=o&&e(t,n)&&h.push(n);for(;i.length>u;)e(t,n=i[u++])&&(~s(h,n)||h.push(n));return h}},function(t,i,n){function e(t){for(var i=0,n=this.a.length;i<n;i++)t.call(this,this.a[i])}function r(t){t.$b=null,t.sa()}function s(t){t.$b=this}n.d(i,"a",(function(){return o}));var o=function(){function t(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];this.a=i}var i=t.prototype;return i.Cw=function(t){var i=this;e.call(t,(function(t){i.ve(t)}))},i.sa=function(){e.call(this,r)},i.commit=function(){e.call(this,s)},i.ve=function(t){-1===this.a.indexOf(t)&&this.a.push(t)},i.sz=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];for(t=0;t<i.length;t++)this.ve(i[t])},t}()},function(t,i,n){n.r(i),n.d(i,"SESSION_ERROR",(function(){return e})),n.d(i,"SESSION_FINISH",(function(){return r})),n.d(i,"SESSION_START",(function(){return s}));var e="sessionError",r="sessionFinish",s="sessionStart"},function(q,k){function g(t){var i=+(1e6*Math.random()).toFixed(0);return t[i]?g(t):i}function p(t){t=(t=t.toString()).substring(t.indexOf("{")+1,t.lastIndexOf("}"));try{var i=new window.Blob([t],{type:"application/javascript"})}catch(n){window.BlobBuilder=w,(i=new window.BlobBuilder).append(t),i=i.getBlob()}return window.URL.createObjectURL(i)}var w=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder;k.a=function(){function z(){var t=this,i={},n={};t.onmessage=function(e){switch(e.data.type){case"setTimeout":i[e.data.id]=setTimeout((function(){t.postMessage({id:e.data.id,type:"setTimeout"})}),e.data.timeout);break;case"clearTimeout":clearTimeout(i[e.data.id]),delete i[e.data.id];break;case"setInterval":n[e.data.id]=setInterval((function(){t.postMessage({id:e.data.id,type:"setInterval"})}),e.data.timeout);break;case"clearInterval":clearInterval(n[e.data.id]),delete n[e.data.id]}}}var r=!1;try{r=eval("(_ => true)()")}catch(t){}if(!window.Worker||!window.Promise||!r||!window.Blob&&!w)return!1;window.URL=window.URL||window.webkitURL;try{var l=new window.Worker(p(z))}catch(t){return!1}var n={},m={};return l.onmessage=function(t){"setTimeout"===(t=t.data).type&&n[t.id]&&(n[t.id](),delete n[t.id]),"setInterval"===t.type&&m[t.id]&&m[t.id]()},{clearInterval:function(t){delete m[t],l.postMessage({id:t,type:"clearInterval"})},clearTimeout:function(t){delete n[t],l.postMessage({id:t,type:"clearTimeout"})},setInterval:function(t,i){var n=g(m);return m[n]=t,l.postMessage({id:n,timeout:i,type:"setInterval"}),n},setTimeout:function(t,i){var e=g(n);return n[e]=t,l.postMessage({id:e,timeout:i,type:"setTimeout"}),e}}}()||{clearInterval:clearInterval.bind(window),clearTimeout:clearTimeout.bind(window),setInterval:setInterval.bind(window),setTimeout:setTimeout.bind(window)}},function(t,i){i.Hb={}.propertyIsEnumerable},function(t,i,n){n.d(i,"a",(function(){return e}));var e="Stopping ad initiation: start timeout reached"},function(t,i,n){t.exports=n(102)},function(t,i,n){var e=n(71),r=n(72),s=n(23);i=n(9).Reflect,t.exports=i&&i.ownKeys||function(t){var i=e.Hb(s(t)),n=r.Hb;return n?i.concat(n(t)):i}},function(t,i,n){var e=n(63),r=n(56).concat("length","prototype");i.Hb=Object.getOwnPropertyNames||function(t){return e(t,r)}},function(t,i){i.Hb=Object.getOwnPropertySymbols},function(t,i,n){var e=n(67),r=n(29),s=n(21),o=n(36),u=n(26),h=n(35),a=Object.getOwnPropertyDescriptor;i.Hb=n(13)?a:function(t,i){if(t=s(t),i=o(i,!0),h)try{return a(t,i)}catch(t){}if(u(t,i))return r(!e.Hb.call(t,i),t[i])}},function(t,i,n){var e=n(22),r=n(29);t.exports=function(t,i,n){i in t?e.Hb(t,i,r(0,n)):t[i]=n}},,function(t,i,n){function e(t){function i(i){i.forEach((function(i){"HeavyAdIntervention"===i.body.id&&t(i)}))}var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;if(n.ReportingObserver){var e=new n.ReportingObserver((function(t){i(t)}),{buffered:!0,types:["intervention"]});e.observe(),n.addEventListener("unload",(function(){i(e.takeRecords())}))}}n.d(i,"a",(function(){return e}))},,function(t){function i(t,i,n,e,r,s,o){try{var u=t[s](o),h=u.value}catch(t){return void n(t)}u.done?i(h):Promise.resolve(h).then(e,r)}t.exports=function(t){return function(){var n=this,e=arguments;return new Promise((function(r,s){function o(t){i(h,r,s,o,u,"next",t)}function u(t){i(h,r,s,o,u,"throw",t)}var h=t.apply(n,e);o(void 0)}))}}},function(t){function i(t,i){for(var n=0;n<i.length;n++){var e=i[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}t.exports=function(t,n,e){return n&&i(t.prototype,n),e&&i(t,e),t}},function(t,i,n){function e(t,i){t||(t=window.event),t.stop=function(){var i=t;i.preventDefault(i),i.stopPropagation(i)},void 0===t.target&&(t.target=t.srcElement||i),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1}),t.stopPropagation||(t.stopPropagation=function(){t.cancelBubble=!0}),t.target&&3===t.target.nodeType&&(t.target=t.target.parentNode);var n=i.ownerDocument;return n&&null==t.pageX&&null!=t.clientX&&(i=n.documentElement,n=n.body,t.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),t}function r(){c||(document.body||setTimeout(r,13),c=!0)}function s(){if(!c){try{document.documentElement.doScroll("left")}catch(t){return void setTimeout(s,1)}r()}}function o(t){return t.match(/:/)?t:"on".concat(t)}n.r(i),n.d(i,"default",(function(){return f}));var u,h=[],a=!1,c=!1;"undefined"!=typeof document&&(document.addEventListener?u=function(){document.removeEventListener("DOMContentLoaded",u,!1),r()}:document.attachEvent&&(u=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",u),r())})),function(){if(!a)if(a=!0,"complete"===document.readyState)r();else if(document.addEventListener)document.addEventListener("DOMContentLoaded",u,!1),window.addEventListener("load",r,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",u),window.attachEvent("onload",r);var t=!1;try{t=null==window.frameElement}catch(t){}document.documentElement.doScroll&&t&&s()}}();var f=function(){function t(){}return t.addEventListener=function(t,i,n){if(3!==t.nodeType&&8!==t.nodeType){var r=function(t,i){return function(n){return e(n,t),i(n)}}(t,n);h.push({element:t,Lh:n,rx:r,type:i}),i.match(/:/)&&t.attachEvent?t.attachEvent("ondataavailable",r):t.addEventListener?t.addEventListener(i,r,!1):t.attachEvent&&t.attachEvent(o(i),r)}},t.dispatchEvent=function(t,i,n){var r=t.ownerDocument||t.document;return r.createEvent?((r=r.createEvent("HTMLEvents")).data=n,e(r,t),r.uh=i,r.initEvent(i,!0,!0),!t.dispatchEvent(r)):(e(r=r.createEventObject(),t),r.data=n,i.match(/:/)?(r.uh=i,r.Lu="ondataavailable",t.fireEvent(r.Lu,r)):t.fireEvent(o(i),r))},t.removeEventListener=function(t,i,n){if(3!==t.nodeType&&8!==t.nodeType){for(var e,r=0,s=0;s<h.length;s++)h[s].element!==t||h[s].type!==i||h[s].Lh!==n?h[r++]=h[s]:e=h[s].rx;h.length=r,n=e,document.removeEventListener?t.removeEventListener(i,n,!1):t.detachEvent(o(i),n)}},t.xl=function(i){var n={addEventListener:function(n,e){t.addEventListener(i,n,e)},hC:function(t,i){t=t.split(" ");for(var e=0;e<t.length;e++)n.removeEventListener(t[e],i)},iC:function(t,i){t=t.split(" ");for(var e=0;e<t.length;e++)n.addEventListener(t[e],i)},removeEventListener:function(n,e){t.removeEventListener(i,n,e)}};return n.element=i,n},t}()},function(t){t.exports=function(t){if(Array.isArray(t))return t}},function(t){t.exports=function(t,i){var n=[],e=!0,r=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(e=(o=u.next()).done)&&(n.push(o.value),!i||n.length!==i);e=!0);}catch(t){r=!0,s=t}finally{try{e||null==u.return||u.return()}finally{if(r)throw s}}return n}},function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t){!function(i){function n(t,i,n,s){return i=Object.create((i&&i.prototype instanceof r?i:r).prototype),s=new l(s||[]),i.Rm=function(t,i,n){var r=O;return function(s,o){if(r===S)throw Error("Generator is already running");if(r===T){if("throw"===s)throw o;return d()}for(n.method=s,n.ra=o;;){if((s=n.Hf)&&(s=a(s,n))){if(s===j)continue;return s}if("next"===n.method)n.xx=n.kt=n.ra;else if("throw"===n.method){if(r===O)throw r=T,n.ra;n.Au(n.ra)}else"return"===n.method&&n.Mt("return",n.ra);if(r=S,"normal"===(s=e(t,i,n)).type){if(r=n.done?T:A,s.ra===j)continue;return{value:s.ra,done:n.done}}"throw"===s.type&&(r=T,n.method="throw",n.ra=s.ra)}}}(t,n,s),i}function e(t,i,n){try{return{type:"normal",ra:t.call(i,n)}}catch(t){return{type:"throw",ra:t}}}function r(){}function s(){}function o(){}function u(t){["next","throw","return"].forEach((function(i){t[i]=function(t){return this.Rm(i,t)}}))}function h(t){function i(n,r,s,o){if("throw"!==(n=e(t[n],t,r)).type){var u=n.ra;return(n=u.value)&&"object"==typeof n&&b.call(n,"__await")?Promise.resolve(n.Cr).then((function(t){i("next",t,s,o)}),(function(t){i("throw",t,s,o)})):Promise.resolve(n).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,o)}))}o(n.ra)}var n;this.Rm=function(t,e){function r(){return new Promise((function(n,r){i(t,e,n,r)}))}return n=n?n.then(r,r):r()}}function a(t,i){var n=t.iterator[i.method];if(n===p){if(i.Hf=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.ra=p,a(t,i),"throw"===i.method))return j;i.method="throw",i.ra=new TypeError("The iterator does not provide a 'throw' method")}return j}return"throw"===(n=e(n,t.iterator,i.ra)).type?(i.method="throw",i.ra=n.ra,i.Hf=null,j):(n=n.ra)?n.done?(i[t.tC]=n.value,i.next=t.gC,"return"!==i.method&&(i.method="next",i.ra=p),i.Hf=null,j):n:(i.method="throw",i.ra=new TypeError("iterator result is not an object"),i.Hf=null,j)}function c(t){var i={tryLoc:t[0]};1 in t&&(i.catchLoc=t[1]),2 in t&&(i.finallyLoc=t[2],i.Yt=t[3]),this.Xb.push(i)}function f(t){var i=t.ze||{};i.type="normal",delete i.ra,t.ze=i}function l(t){this.Xb=[{tryLoc:"root"}],t.forEach(c,this),this.reset(!0)}function v(t){if(t){var i=t[g];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1;return(i=function i(){for(;++n<t.length;)if(b.call(t,n))return i.value=t[n],i.done=!1,i;return i.value=p,i.done=!0,i}).next=i}}return{next:d}}function d(){return{value:p,done:!0}}var p,m=Object.prototype,b=m.hasOwnProperty,y="function"==typeof Symbol?Symbol:{},g=y.iterator||"@@iterator",w=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag";y="object"==typeof t;var E=i.regeneratorRuntime;if(E)y&&(t.exports=E);else{(E=i.regeneratorRuntime=y?t.exports:{}).xl=n;var O="suspendedStart",A="suspendedYield",S="executing",T="completed",j={};(i={})[g]=function(){return this},(y=(y=Object.getPrototypeOf)&&y(y(v([]))))&&y!==m&&b.call(y,g)&&(i=y);var I=o.prototype=r.prototype=Object.create(i);s.prototype=I.constructor=o,o.constructor=s,o[_]=s.displayName="GeneratorFunction",E.jw=function(t){return!!(t="function"==typeof t&&t.constructor)&&(t===s||"GeneratorFunction"===(t.displayName||t.name))},E.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,o):(t.__proto__=o,_ in t||(t[_]="GeneratorFunction")),t.prototype=Object.create(I),t},E.Ez=function(t){return{Cr:t}},u(h.prototype),h.prototype[w]=function(){return this},E.AsyncIterator=h,E.async=function(t,i,e,r){var s=new h(n(t,i,e,r));return E.jw(i)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},u(I),I[_]="Generator",I[g]=function(){return this},I.toString=function(){return"[object Generator]"},E.keys=function(t){var i,n=[];for(i in t)n.push(i);return n.reverse(),function i(){for(;n.length;){var e=n.pop();if(e in t)return i.value=e,i.done=!1,i}return i.done=!0,i}},E.values=v,l.prototype={constructor:l,reset:function(t){if(this.next=this.Ub=0,this.xx=this.kt=p,this.done=!1,this.Hf=null,this.method="next",this.ra=p,this.Xb.forEach(f),!t)for(var i in this)"t"===i.charAt(0)&&b.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=p)},stop:function(){this.done=!0;var t=this.Xb[0].ze;if("throw"===t.type)throw t.ra;return this.ux},Au:function(t){function i(i,e){return s.type="throw",s.ra=t,n.next=i,e&&(n.method="next",n.ra=p),!!e}if(this.done)throw t;for(var n=this,e=this.Xb.length-1;0<=e;--e){var r=this.Xb[e],s=r.ze;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.Ub){var o=b.call(r,"catchLoc"),u=b.call(r,"finallyLoc");if(o&&u){if(this.Ub<r.catchLoc)return i(r.catchLoc,!0);if(this.Ub<r.finallyLoc)return i(r.finallyLoc)}else if(o){if(this.Ub<r.catchLoc)return i(r.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.Ub<r.finallyLoc)return i(r.finallyLoc)}}}},Mt:function(t,i){for(var n=this.Xb.length-1;0<=n;--n){var e=this.Xb[n];if(e.tryLoc<=this.Ub&&b.call(e,"finallyLoc")&&this.Ub<e.finallyLoc){var r=e;break}}return r&&("break"===t||"continue"===t)&&r.tryLoc<=i&&i<=r.finallyLoc&&(r=null),(n=r?r.ze:{}).type=t,n.ra=i,r?(this.method="next",this.next=r.finallyLoc,j):this.complete(n)},complete:function(t,i){if("throw"===t.type)throw t.ra;return"break"===t.type||"continue"===t.type?this.next=t.ra:"return"===t.type?(this.ux=this.ra=t.ra,this.method="return",this.next="end"):"normal"===t.type&&i&&(this.next=i),j},finish:function(t){for(var i=this.Xb.length-1;0<=i;--i){var n=this.Xb[i];if(n.finallyLoc===t)return this.complete(n.ze,n.Yt),f(n),j}},catch:function(t){for(var i=this.Xb.length-1;0<=i;--i){var n=this.Xb[i];if(n.tryLoc===t){if("throw"===(t=n.ze).type){var e=t.ra;f(n)}return e}}throw Error("illegal catch attempt")}}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(t,i,n){var e=n(33)("unscopables"),r=Array.prototype;null==r[e]&&n(25)(r,e,{}),t.exports=function(t){r[e][t]=!0}},,,,,,,,,,,,function(t,i,n){i=n(104),t.exports="string"==typeof i?i:i.toString()},function(t){t.exports='<svg viewBox="0 0 22.347 22.993" style="width: 10px; height: 10px; display: inline-block"><polygon fill-rule="evenodd" clip-rule="evenodd" points="22.348,2.641 19.781,0 11.174,8.855 2.567,0 0,2.641 8.607,11.497 0.001,20.351 2.567,22.993 11.174,14.138 19.781,22.993 22.347,20.351 13.741,11.497"></polygon></svg>'},function(t){t.exports='.vrm-plg .overlay-wrap{box-sizing:border-box;position:absolute;display:flex;width:100%;padding:10px;font-family:"Helvetica Neue",Helvetica,Arial;font-size:12px;text-shadow:0 1px 1px rgba(0,0,0,.5);color:#fff;word-wrap:break-word;background:rgba(0,0,0,.16);top:15px;opacity:0;transition:opacity .5s;cursor:pointer}.vrm-plg .overlay-wrap .title h5{margin:2px 2px 0 0;color:#fff;overflow:hidden;font-size:120%}.vrm-plg .overlay-wrap .title small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:inherit}.vrm-plg .overlay-wrap .overlay-btn{flex:0 0 auto;align-self:center;padding:10px;margin-left:auto;margin-right:0;background-color:transparent;border:2px solid #fff;border-radius:2px;line-height:12px;color:#fff;cursor:pointer}.vrm-plg:hover .overlay-wrap{opacity:1}'},,,function(t,i,n){var e=(i=function(){return this||"object"==typeof self&&self}()||Function("return this")()).regeneratorRuntime&&0<=Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime"),r=e&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,t.exports=n(84),e)i.regeneratorRuntime=r;else try{delete i.regeneratorRuntime}catch(t){i.regeneratorRuntime=void 0}},function(t,i,n){t=n(41);var e=n(54)(!0);t(t.Sl,"Array",{includes:function(t){return e(this,t,1<arguments.length?arguments[1]:void 0)}}),n(85)("includes")},function(t,i,n){(t.exports=n(105)(!1)).push([t.Lp,".ad-skip-button-container {\n    position: relative;\n    overflow: hidden;\n}\n\n#ad-skip-button {\n    position: absolute;\n    width: 85px;\n    right: -85px;\n    bottom: 101px;\n    padding: 6px 0;\n    background-color: rgba(34, 34, 34, .85);\n    color: #d0d0d0;\n    font: 12px Arial;\n    text-align: center;\n    border: 1px #747474 solid;\n    border-right: 0;\n    transition: right 1s ease-in;\n    z-index: 7;\n}\n\n.fullscreen-mode #ad-skip-button {\n    width: 165px;\n    bottom: 98px;\n    padding: 9px 0;\n    border-width: 1.5px;\n    font-size: 18px;\n}\n\n#ad-skip-button.skippable {\n    text-decoration: underline;\n    cursor: pointer;\n}\n\n#ad-skip-button.skippable:hover {\n    color: #fff;\n}\n\n#ad-skip-button.expand-skip-button {\n    opacity: 1;\n    right: 0;\n    margin-right: 0;\n}\n\n#ad-skip-button.collapse-skip-button {\n    opacity: 0;\n    right: -110px;\n}\n\n.fullscreen-mode .collapse-skip-button {\n    opacity: 0;\n    right: -165px;\n}\n",""])},function(t){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];return e?i&&"function"==typeof btoa?(t="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */",i=e.sources.map((function(t){return"/*# sourceURL="+e.PC+t+" */"})),[n].concat(i).concat([t]).join("\n")):[n].join("\n"):n}(i,t);return i[2]?"@media "+i[2]+"{"+n+"}":n})).join("")},i.Lp=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var e={},r=0;r<this.length;r++){var s=this[r][0];null!=s&&(e[s]=!0)}for(r=0;r<t.length;r++)null!=(s=t[r])[0]&&e[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),i.push(s))},i}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,i,n){function e(t){t=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?Qs(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}({},t),t.playerType=t.playerType||"YAHOO",t.macros=t.macros||{},t.macros["m.".concat("disable_3p")]=!0,t.macros["m.".concat("securevpaidsmode")]="1",t.macros["m.".concat("disableflashad")]="1",t.dontPredefineVideoTag=!0,t.sid=t.playerGuid||w();var i=t.timeout||{};return t.timeout=i,i.hard=i.hard||3,i.start=i.start||12,i.maxAdSearch=i.maxAdSearch||30,t.slot||((i=document.createElement("div")).style.width="100%",i.style.height="100%",t.slot=i),t}function r(t,i){function n(t,n){return t.sort((function(t,e){var r=t.bitrate||t.eg,s=e.bitrate||e.eg;return r===s?t.width>=i?e.width>=i?t.width-e.width:-1:e.width-t.width:n?s-r:r-s}))}return t=function(t){return t.reduce((function(t,i){return i.bitrate?900>=i.bitrate?t.low.push(i):t.high.push(i):i.eg?900>=i.eg?t.low.push(i):t.high.push(i):t.hq.push(i),t}),{high:[],low:[],hq:[]})}(t),n(t.low,!0).concat(n(t.high)).concat(n(t.hq))}function s(){this.value=this.Hk=""}function o(t){this.type=t}function u(){this.type=null,this.value=this.mimeType=""}function h(){this.value="",this.My=!1}function a(){this.height=this.width=null,this.vl=this.gk=this.fk=this.Rq=this.ug=this.tg="",this.duration=this.offset=null}function c(t){this.type="".concat(t)}function f(){this.cother=this.cm3u8=this.c3gpp=this.cflv=this.cwbm=this.cmp4=this.cswf=this.cjs=0}function l(t,i){var n=this;this.Pf={},i?(this.lang=t.getAttribute("language"),this.Qo=fa[this.lang],this.Pf=ha()({},t.getAttribute("type").split("/")[1],yh.Ea(t))):(this.lang=t.getAttribute("lang"),this.Qo=t.getAttribute("displayText"),(yh.Ca(t).Format||[]).forEach((function(t){return n.Pf[t.getAttribute("type")]=yh.Ea(t)})))}function v(){this.Wb=[],this.id=this.Qt="",this.wb=null}function d(){this.name=this.version=""}function p(){this.wl=this.Sk=this.Lb=""}function m(){this.vendor="",this.$p=[],this.Xo=[],this.Wb=[],this.ul=[]}function b(){this.value=""}function y(t){this.url=t}function g(t){function i(i){return new Tu(i,new t(i))}return i.da=t.da.concat(Tu.da),i}function w(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var i=window.crypto||window.msCrypto;return i=window.Uint16Array&&i&&i.getRandomValues?i.getRandomValues(new window.Uint16Array(1))[0]%16:Math.floor(16*(Math.random()||0)%16),("x"===t?i:3&i|8).toString(16)}))}function _(){this.eq=this.delay=this.left=this.top=this.height=this.width=0,this.position="",this.Ro=!1}function E(t,i){function n(){try{t={Accept:"text/javascript, application/json, text/html, application/xml, text/xml, */*","Content-Type":"application/x-www-form-urlencoded"},Object.keys(t).forEach((function(n){Object.prototype.hasOwnProperty.call(i.headers,n)||(i.headers[n]=t[n])})),i.contentType&&(i.headers["Content-Type"]=i.contentType),Object.keys(i.headers).forEach((function(t){return e.setRequestHeader(t,i.headers[t])})),e.send(i.Wh)}catch(t){i.error&&i.error()}var t}var e="undefined"!=typeof XMLHttpRequest&&new XMLHttpRequest,r={},s=!1;i.method=i.method?i.method.toLowerCase():"get",i.async=!1!==i.async,i.Wh=i.Wh||"",e.onreadystatechange=function(){if(4===e.readyState){var t=e.getResponseHeader("content-type")||"";r.status=e.status,r.text=e.responseText,/json/.test(t)?r.data=function(t){return"string"==typeof t&&t?JSON.parse(Ao.a.trim(t)):null}(e.responseText):/xml/.test(t)&&(r.data=function(t){if(window.DOMParser)return(new DOMParser).parseFromString(t,"text/xml");var i=new window.ActiveXObject("Microsoft.XMLDOM");return i.async="false",i.loadXML(t),i}(e.responseText)),r.Te=200<=e.status&&300>e.status||304===e.status||0===e.status&&e.responseText,r.Te?i.Te&&i.Te(r,e):i.error&&So.a.setTimeout((function(){i.error(r,e,s)}),1),i.complete&&i.complete(r,e)}};try{e.open(i.method,t,i.async),void 0!==e.withCredentials&&(e.withCredentials=!!i.withCredentials)}catch(t){}i.headers=i.headers||{},i.timeout&&(e.timeout=i.timeout,s=!1,e.ontimeout=function(){return s=!0});var o={data:function(t){return i.Wh=Object(Oo.H)(t),o},end:function(t){return i.complete=t,n(),o},IB:function(t,n){return i.headers[t]=n,o},send:function(t,e){return i.Wh=Object(Oo.H)(t),i.complete=e,n(),o}};return o}function O(t,i,n){return new Eo.a((function(e,r){!function(t,i,n,e,r,s){void 0===s&&(s={}),s.Te=n,s.error=e,s.method="get",t&&jo.xw(t),E(t,s).send(i,r)}(t,i||null,e,(function(t,i,n){r({request:i,response:t,Tq:n})}),null,n)}))}function A(){var t=Object(Oo.h)("div",{class:"adsbox"},document.body);return t.style.height="1px",t.style.width="1px",new Eo.a((function(i){window.setTimeout((function(){i(0===t.offsetHeight),Object(Oo.E)(t)}),100)}))}function S(t){return this.Ma||(this.Ma=O(t||"https://video.adaptv.advertising.com/ad/ads/advertisers/advertisers.txt").then(function(){return!(!Oo.c.safari||!_o.a.vc())&&A.call(this)}.bind(this),function(){return!0}.bind(this))),this.Ma}function T(t){try{var i=t.document.hasFocus&&t.document.hasFocus()}catch(t){}return i}function j(){this.Cb=!1,(this.yn=this.ne.shift())?(this.Cb=!0,this.yn()):(this.Vi.forEach((function(t){return t()})),this.Vi=[])}function I(t,i){var n={bckt:this.N.$u()||"",expb:this.N.tv()||"",expn:this.N.uv()||""};return n=Object(Oo.B)([this.N.pp(),this.N.Mc,this.N.qn,{apid:this.N.Xd.utid},n]),i=Object(Oo.H)(i),this.Sn=this.Sn||this.Ra.Tv(),"".concat(this.Sn,"/").concat(t,"?").concat(n).concat(i?"&".concat(i):"","&cb=").concat(Math.random())}function M(t){var i=this.T.kb;t={action:t,seq:i?i.wb:"",vid:this.T.df};var n=!(!i||"youtube"!==i.dD)&&this.T.fb();return t.asid=n?n.getAsid():i?i.metadata&&i.metadata.asid:"",t.acid=n?n.getAcid():i?i.metadata&&i.metadata.acid:"",t.rid=n?n.getRuleId():"",t.vid=n?n.getVideoId():t.vid,t}function N(t){var i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=(new Date).getTime()-this.N.dj,e=this.N.pa,r=this.T.Pg;6e4<n&&(this.Fc.qg("player load time failure","outliers",{edt:n}),n=null),this.Ha("display.gif",{ab:+i,csid:e&&e.playerTemplate&&e.playerTemplate.csid||null,dt:n,h:t.height,itg:r,sact:this.N.zd,spaceid:this.ac.Xc(),w:t.width})}function R(t){Object(Oo.z)(t)?window.open(t,"_blank"):Vo.error("Failed to open new tab due to invalid url",t)}function k(t){var i=Fo[t];if(void 0===i){try{var n=Bo&&"function"==typeof Bo.canPlayType&&!(Oo.q&&t&&0<=t.indexOf("video/3gpp"))&&(!t||Bo.canPlayType(t))}catch(t){n=!1}i=!!n,Fo[t]=i}return i}function L(){return!!Wo&&!!Yo[Wo.fullscreenEnabled]}function D(){return!!Yo[Wo.fullscreenElement]}function C(t,i){this.eu(t),this.By(t,i),this.sg(t),this.Zk(t)}function P(t,i,n){i=t+(i?i.id:""),-1===this.Jj.indexOf(i)&&(this.Ha(t,n),this.Jj.push(i))}function x(t){var i=this.Pj.Qv(t);this.ee=this.ee||0,this.ee<i&&4>i&&(this.ee++,B.call(this),x.call(this,t))}function U(t){var i=this.Pj.qv(t);this.ce=this.ce||0,this.ce<i&&10>i&&(this.ce++,V.call(this),U.call(this,t))}function V(){this.Pc.qy({progress:this.ce},this.ih),this.ah&&this.ah.dispatchEvent("trackDecile")}function B(){var t={progress:this.ee};this.Pc.sl(t,this.ih),this.ah&&this.ah.dispatchEvent("trackQuartile",t)}function F(){this.se.ek(),this.Pc.my(this.ih)}function z(){var t=this.xs.gb();try{for(var i=arguments.length,n=Array(i),e=0;e<i;e++)n[e]=arguments[e];return n.reduce((function(t,i){return t[i]}),t)}catch(t){return null}}function G(t){t=t[t.length-1].intersectionRatio,isNaN(t)||(this.Og&&H.call(this),this.Sj=Math.round(100*t))}function H(){this.Og&&(So.a.clearTimeout(this.Og),delete this.Og)}function Y(){var t=_o.a.Hh(window),i="moatApiInit".concat(+new Date),n=new uu,e=t.location.protocol;return e="".concat(0===e.indexOf("http")?e:"https:","//z.moatads.com/").concat("aolvidibleapi29384728347","/moatapi.js#moatApiCallback=").concat(i),t[i]=function(e){n.resolve(e),t[i]=void 0},this.lb.Ld(e),n.Ma}function q(t,i){this.Ig===t?this.Af=i:i.destroy()}function W(){var t=this.N.Mc;t=t?Object(Oo.g)(t):{};var i=this.N.Xd,n=this.T.Gh(),e=this.N.Fh();return i&&(t.APID=i.bD),t.width=n.width,t.height=n.height,t["p.vw.active"]=this.Db.isVisible()?1:0,t["p.vw.viewable"]=this.Db.Wf(),t["p.vw.viewableOpportunity"]=this.Db.Ba(),t.moatViewableOpportunity=this.Db.Ba(),t.adapViewableOpportunity=this.Db.Ba(),t.r=_o.a.Yc(window),t.ps="html5-vpaid",t.plseq=this.T.Qj+1,t.sid=this.N.vk(),t.vvuid=this.N.lf.vvuid,t.lookahead=!0,e&&(t.euconsent=e.gdprConsentData,t.gdpr=Number(e.gdprApplies),t.isOathFirstParty=e.isOathFirstParty),t}function Q(t,i){"function"==typeof t.setAttribute&&t.setAttribute(i,"")}function $(t){"function"==typeof t.getAttribute&&t.getAttribute("playsinline")||Q(t,"playsinline"),"function"==typeof t.getAttribute&&t.getAttribute("webkit-playsinline")||Q(t,"webkit-playsinline")}function X(){return Object(Oo.H)({bcid:this.N.$d,pid:this.N.yd})}function Z(){this.dispatchEvent("VideoProgressEvent",{buffered:this.R.buffered,duration:this.getDuration(),waiting:3>this.R.readyState})}function J(){this.dispatchEvent("VideoLoadEvent")}function K(){var t={duration:this.getDuration()},i=this.V===Ru.PAUSED,n=this.V===Ru.LOADING;this.V=Ru.PLAYING,i?this.dispatchEvent("VideoResumeEvent",t):(n&&this.dispatchEvent("VideoStartEvent",t),this.dispatchEvent("VideoPlayEvent",t))}function tt(){this.dispatchEvent("VideoTimeUpdateEvent",{buffered:this.dv(),currentTime:this.getCurrentTime(),duration:this.getDuration(),durationWithoutAds:0})}function it(){this.R.paused&&!this.R.ended&&(this.V=Ru.PAUSED,this.dispatchEvent("VideoPauseEvent"))}function nt(){this.dispatchEvent("VideoWaiting")}function et(t){this.V!==Ru.IDLE&&(this.V=Ru.IDLE,this.dispatchEvent("VideoEndEvent",{complete:"ended"===t.type,currentTime:this.getCurrentTime()}))}function rt(t){var i=(i=(i=t&&t.data&&t.data.code)||this.R.error&&this.R.error.code)||null;t=(t=t&&t.data&&t.data.message)||this.R.error&&this.R.error.message,this.dispatchEvent("VideoErrorEvent",{code:i,message:"Can't play video ".concat(this.R.currentSrc,": ").concat(i," : message: ").concat(t||null)})}function st(){this.isMuted()||0===this.R.volume||(this.za=this.R.volume),this.dispatchEvent("VideoVolumeChangedEvent",{muted:this.isMuted(),volume:this.getVolume()})}function ot(){this.dispatchEvent("VideoClickEvent")}function ut(){var t=this;this.Tj&&clearTimeout(this.Tj),this.xa.removeEventListener("volumechange",st,this),this.Tj=setTimeout((function(){t.Tj=null,t.xa.addEventListener("volumechange",st,t)}),100)}function ht(){Object(Oo.t)(this.R)&&(st.call(this),ut.call(this))}function at(t){function i(){var i=new window.Hls;i.loadSource(t),i.attachMedia(n.R)}var n=this;this.R.load(),window.Hls?i():this.lb.Ld(this.Ra.wv()).then(i)}function ct(t,i){if(this.mn=!1,this.R=i,this.xa&&(this.xa.yq(),delete this.xa),this.xa=new Nu(this.R),this.setVolume(this.za),this.xa.addEventListener("loadstart",J,this),this.xa.addEventListener("progress",Z,this),this.xa.addEventListener("timeupdate",tt,this),this.xa.addEventListener("pause",it,this),this.xa.addEventListener("waiting",nt,this),this.xa.addEventListener("ended",et,this),this.xa.addEventListener("abort",et,this),this.xa.addEventListener("error",rt,this),this.xa.addEventListener("volumechange",st,this),this.xa.addEventListener("click",ot,this),this.xa.addEventListener("playing",K,this),Object(Oo.u)(t)&&!k("application/vnd.apple.mpegurl"))at.call(this,t);else try{this.R.setAttribute("src",t),this.R.load()}catch(t){}return this.V=Ru.LOADING,!1}function ft(t){if(this.V!==Ru.IDLE)if(this.isMuted()){("function"==typeof this.R.getAttribute?this.R.getAttribute("playsinline"):void 0)||this.mn?t===this.lt&&rt.call(this,{data:{code:5}}):(this.mn=!0,"function"==typeof this.R.setAttribute&&this.R.setAttribute("playsinline",""),this.play())}else this.V=Ru.LOADING,this.mute(!0),this.dispatchEvent("VideoVolumeChangedEvent",{muted:!0,volume:0}),this.play()}function lt(t){var i=this;t.forEach((function(t){return i.pm[t.Wa]=t}))}function vt(t){for(var i,n="",e=0;null!=(i=t[e++]);)i.nodeType===bh.c||i.nodeType===bh.a?(i=i.nodeValue&&i.nodeValue.trim())&&(n+=i):i.nodeType!==bh.b&&(n+=vt(i.childNodes));return n}function dt(t,i){var n="1.0.22".includes("-pr");return t="".concat(t).concat("player/vrm-plugin","/").concat("1.0.22","/"),n&&(t="".concat(i).concat("player/vrm-plugin","/").concat("1.0.22","/")),t}function pt(t){return{adSessionId:this.Kr,data:{context:{accessMode:"full",adCount:1,adServingId:"c532d16d-4d7f-4449-bd29-2ec0e693fc86",adSessionType:"html",apiVersion:"1.0",environment:"web",omidJsInfo:{omidImplementer:"o2-sdk",serviceVersion:"4.1.1"}},verificationParameters:this.xd.ul[0]&&this.xd.ul[0].value},timestamp:+new Date,type:t}}function mt(t){this.$s&&this.cc.yx(pt.call(this,t)),gt.call(this,t)}function bt(){this.cc&&this.cc.ye()}function yt(){mt.call(this,Sh.SESSION_FINISH)}function gt(t){var i=pt.call(this,t);this.mb[t]?this.cc.Vo(t,i):(this.ae[t]||(this.ae[t]=[]),this.ae[t].push(i))}function wt(t){var i=this;this.mb[t]||(this.mb[t]={}),this.ae[t]&&(this.ae[t].forEach((function(n){return i.cc.Vo(t,n)})),delete this.ae[t])}function _t(){this.$s=1,mt.call(this,Sh.SESSION_START)}function Et(){var t=this;this.La.addEventListener(kh.nd,(function(i){gt.call(t,i.Od)})),this.U.addEventListener(Su.We,yt.bind(this))}function Ot(t){var i=this;this.Ob=this.lb.createElement("iframe");var n=dt(cu.a["cdn.url"],cu.a["cdn.url.dev"]);return n="".concat(n,"xdomain-adverifications.html?id=").concat(Dh++),this.Ob.id="$adverificationloaderframe".concat(Dh),this.Ob.style.display="none",this.cc=new Nh(this.Ob,t),this.Ob.onload=function(){i.cc.Ou(_t.bind(i),wt.bind(i)),i.cc.Ix(bt.bind(i)),i.cc.hc(),i.cc.Ld()},this.Ob.src=n,document.body.appendChild(this.Ob),this.cc.uf.Ma}function At(){var t=this;if(0<this.xd.Wb.length){var i=new Rh("verificationNotExecuted");i.Ce=this.xd.Wb.map((function(i){return i.url.replace(/\[REASON]/g,t.Si)})),this.La.dispatchEvent(i)}}function St(){var t=this;this.scripts.forEach((function(i){return i.prepare(t.Mf,t.ad,t.aa)}))}function Tt(){var t=this;this.Of.forEach((function(i){return i.prepare(t.aa)}))}function jt(){var t=this;this.oo.forEach((function(i){t.Mk.Ya(Ch).prepare(i,t.ad)}))}function It(){this.Mf&&(this.Mf.sa(),this.Mf=null)}function Mt(){"url"===this.qx?(this.value=this.aa.Pb.resolve(this.value),this.Jf.Ld(this.value)):this.jt=this.Jf.$v(this.value)}function Nt(){Object(Oo.E)(this.jt)}function Rt(t,i){return t.vo-i.vo}function kt(t,i){switch(t){case 0:return!1;case 1:return!0;default:return i}}function Lt(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(i){return t.push(new gh(i))})),t}function Dt(t,i){return t[i]&&t[i][0]?yh.Ca(t[i][0]).rule.map((function(t){return new ea(t,i)})):[]}function Ct(){var t=[],i=this.Wc(1<arguments.length?arguments[1]:void 0);return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){(n=i.parse(n))&&t.push(n)})),t}function Pt(t,i){return t?Ct.call(this,yh.Ca(t[0])[i],i):[]}function xt(t,i){i.forEach((function(i){(i=i.url)&&t.Ce.push(i)}))}function Ut(t){return this.Ja.filter((function(i){return i.__proto__===t.__proto__}))[0]}function Vt(t,i,n,e){var r=this;t&&t.Wb&&t.Wb.forEach((function(t){var s;if(s=t.type===n&&t.url){var o=Ao.a.trim(t.offset||"");e&&e.Od===Bh.PROGRESS&&o?(s=e.data||{}).duration?(o=-1===o.indexOf("%")?Object(Oo.K)(o):s.duration*Number(o.substr(0,o.length-1))/100,(s=s.currentTime>=o&&-1===r.Qn.indexOf(t))&&r.Qn.push(t)):s=!1:s=!0}s&&(s=t.url,function(t){return 0<Ha.filter((function(i){return-1<t.indexOf(i)})).length}(t.url)||(s+="".concat(-1<t.url.indexOf("?")?"&":"?","cb=").concat(Math.random().toString(10).substr(2))),i.push(s))}))}function Bt(t){var i=t.clone();t.Hx(i),this.dispatchEvent(i)}function Ft(t,i){throw new Pu(t,i||nh)}function zt(t,i){return-1<(i?gc:gc.concat(["All"])).indexOf(t)}function Gt(){this.Ec=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).concat(),this.ie.debug("Register",this.Ec);var t=(new Date).getTime();this.Ec.forEach((function(i,n){return i.tf="".concat(t,"_").concat(n)}))}function Ht(t,i){this.ie.warn("Unable to release",t,"(Reason: ".concat(i,")"))}function Yt(t,i){var n=this,e=t.aeg||[];this.N.zx({audiences:[],utid:this.Qr});var r=[];return e.forEach((function(e){var s=[];e.forEach((function(e){try{if(e instanceof wc)var r=e;else e.type||(e.type=t.type||i),e.podId||(e.podId=t.podId),e.slotAdSeq||(e.slotAdSeq=t.adSeq),e.transactionId=n.yt||t.txid,e.adxResult=n.Wd||t.adxResult,e.usid=n.hh||t.usid,e.auid=n.Ki||t.auid,e.parentSlot=t.slot,r=Ec.parse(e,n.ka,n.O.S("adSystem"));s.push(r)}catch(t){Ic.error("Error in entry parsing logic: ".concat(t.message))}})),r.push(s)})),r}function qt(t){return"Midroll"===t||"Overlay"===t}function Wt(t){var i=this;this.rc={};var n={};return t.forEach((function(t){var e=t.type;qt(e)&&(i.rc[e]||(i.rc[e]={}),i.rc[e][t.time]||(i.rc[e][t.time]=[]),i.rc[e][t.time].push(t),n[e]||(n[e]=""),n[e]+="".concat(t.time,";"))})),n}function Qt(t){t.forEach((function(t){t.type=Ao.a.Ao(t.type),t.slots&&t.slots.forEach((function(t){t.type=Ao.a.Ao(t.type)}))}))}function $t(t){var i=this,n=t.filter((function(t){return t.type===i.Fa}));return t=t.filter((function(t){return t.type!==i.Fa&&t.calculated})),n=[].concat.apply([],n.filter((function(t){return t.slots})).map((function(t){return t.slots}))),t=[].concat.apply([],t.filter((function(t){return t.slots})).map((function(t){return t.slots}))),this.Kj=n.length,n.concat(t)}function Xt(t){function i(t,i){return"Bumper"===t.type?1:"Bumper"===i.type?-1:0}return t.forEach((function(t){t.slots&&t.slots.sort(i)})),t}function Zt(){var t=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.Ta=[],i.forEach((function(i){var n=[];i.forEach((function(t){var i=new Tc(t);i.Qd="aem_".concat(Dc++),t.forEach((function(t){return t.Qd=i.Qd})),n.push(i)})),t.Ta.push(n)}))}function Jt(){this.Ta=this.Ta.filter((function(t){return 0<t.length}));for(var t=0;t<this.Ta.length;t++)this.Ta[t]=this.Ta[t].filter((function(t){return 0<t.size()}))}function Kt(t){if(this.Uj)for(;0<t.length&&t[0].getEntries()[0].bw();)t.splice(0,1)}function ti(){var t=this;this.Ta=this.Ta.filter((function(t){return 0<t.length}));for(var i=0;i<this.Ta.length;i++)this.Ta[i]=this.Ta[i].filter((function(i){return 0<i.getEntries().filter((function(i){return!t.Fm[ei(i)]})).length}))}function ii(t){Zt.call(this),this.U.dispatchEvent(new jc(jc.Nl,{error:t,ib:Bu}))}function ni(t,i){var n=this;this.kj.load(t,i).then((function(i){return ri.call(n,i,t)}),ii.bind(this))}function ei(t){return t&&t.Qd&&t.tf?"".concat(t.Qd,".").concat(t.tf):null}function ri(t,i){try{var n=this.Ss.parse(t,i),e=new jc(jc.LOADED,n,i,t&&t.timings,t&&t.podSize,t&&t.defaultSlot,t&&t.version);Zt.call(this,e.data.oz),this.U.dispatchEvent(e)}catch(t){ii.call(this)}}function si(t){var i=[];return t.forEach((function(t){var n,e=t.length-1,r=t[e];t=(n=Array.prototype).concat.apply(n,zf()(t.slice(0,e))),i.push(new Gf(t,r))})),new Yf(i)}function oi(t,i){return new Yf([new Hf(t,i)])}function ui(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return 3>i.length?"":(t=i[2].replace(/^m\./,""),i=i[0],this.N.Sb(t)||i)}function hi(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return 3>i.length?"":(t=i[2].replace(/^m\./,""),encodeURIComponent(this.N.Sb(t)||""))}function ai(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return 3>arguments.length?"":(t=i[2],(i=this.T.kb||{}).metadata&&i.metadata[t])}function ci(){var t=this.T.Gh()||{};return{height:parseInt(t.height,10)||0,width:parseInt(t.width,10)||0}}function fi(){return this.T.kb||{}}function li(t,i,n){var e=this,r=this.ka.Zc;this.M.dispatchEvent(new Au(tl,{ad:this.W,url:t}));var s=(new Date).getTime();return this.un?O(t,null,{timeout:r,withCredentials:!0}).then((function(n){return di.call(e,i,n,t,0)}),(function(o){var u=(new Date).getTime()-s;return r<=u?di.call(e,n,o,t,0):vi.call(e,t,r-u,i,n)})):this.Vn?O(t,null,{timeout:r,withCredentials:!0}).then((function(n){return di.call(e,i,n,t,0)}),(function(i){return di.call(e,n,i,t,0)})):vi.call(this,t,r,i,n)}function vi(t,i,n,e){var r=this;return O(t,null,{timeout:i}).then((function(i){return di.call(r,n,i,t,1)}),(function(i){return di.call(r,e,i,t,1)}))}function di(t,i,n,e){if(this.M.dispatchEvent(new Au(il,{ad:this.W,url:n})),t)return t(i,e,n)}function pi(t){_i.call(this,vh),mi.call(this),yi.call(this,new $f("Loading timeout ".concat(t," ms is exceeded"),t),vh)}function mi(){var t={ads:[],Nd:this.hj};this.Vj&&this.Vj(t),this.Nj=t}function bi(t,i,n){this.qa.Pe(t,i,n,this.vm),this.M.dispatchEvent(new Au(Su.Gl,{ad_url:this.Xn}))}function yi(t,i){if(!1!==this.ge){So.a.clearTimeout(this.Ln),this.ge=!1,nl.warn("interruptOnError",t);var n=(new Date).getTime()-this.af;bi.call(this,this.Nj,i,n);var e=t instanceof Cu?t.message:t;t=t instanceof $f?t.Uq:null,i=new Xf(e,"No ads provided"===e?Xf.$l:Xf.zi,t,t?vh:i),this.Ke&&this.Ke(i,n)}}function gi(t,i){return this.hj=t?this.Oj.Fp(t,this.eo):this.Xn=this.Oj.Fp(null,this.eo),this.Vj=i,this.Oj.ix(this.hj,function(t,n,e){if(!1!==this.ge){var r=t.data;if(this.vm=n,r||(r=t.text),!Ao.a.Nh(t.text))return this.Rw(r,i,e);this.Gd("Empty VAST error",null,zu)}}.bind(this),function(t,i,n){!1!==this.ge&&(this.vm=i,i=Gu,t.Tq?i=Uu:_o.a.vc()&&0!==n.indexOf("https:")&&(i=th),mi.call(this),this.Gd("VAST ajax error",t.Tq?"request timeout":null,i))}.bind(this))}function wi(t){t.ads.sort((function(t,i){return t.wb-i.wb}))}function _i(t){this.$a&&(this.dispatchEvent("ISSUE_WITH_AD",t),this.$a.zu(this.rb,t))}function Ei(t){return t.ads=t.ads.filter((function(t){return t instanceof ac||(t.Ja=(t.Ja||[]).filter((function(t){return t instanceof Ua||t.Ie&&0<t.Ie.length})),t.Ja&&0<t.Ja.length)})),t}function Oi(t){var i=this;return 0!==t.ads.length||(t.Be&&t.Be.forEach((function(t){i.Fc.Sc(t.url.replace(/\[ERRORCODE\]|%5BERRORCODE%5D|\{errNo\}/g,"303"))})),(t=0<this.ue&&Qu)?_i.call(this,t):t=$u,this.Gd("No ads provided",null,t),!1)}function Ai(t){var i=this;return this.ue+=1,this.kf.ads.splice(t,1),this.eo=this.$a.Ef,this.$a.we&&this.Zd.Hq(this.$a.we),8>=this.ue?(this.$a.vq(this.rb,{},this.N.$f()),gi.call(this,this.$a.Do.url,(function(t){i.$a.bu(t),i.$a.ax(t,i.$a),t.parent=i.kf,t.xc=i.$a,i.Vj=null}))):(this.kf=null,_i.call(this,lh),this.Gd("Max number of wrapper redirects ".concat(8," is exceeded"),null,lh),null)}function Si(t,i){var n=t.xc,e=new Rh(Rh.jb,null,null,{error:i});return n.dispatchEvent(e),this.rb.hg(e),(t=t.parent).parent&&t.ads&&0===t.ads.length&&Si.call(this,t,i),t}function Ti(t){var i=this,n=t.data.thirdPartyImpressionTrackers||[];try{var e=t.data.vastModelAd.Mh[0].url}catch(t){e=null}e&&n.push(e),n.forEach((function(t){t=t.replace(ul,"");var n=/\?/.test(t)?"&":"?";t=/&cb=[^&]*?/.test(t)?t:"".concat(t).concat(n,"cb=[CACHE_BUSTER]"),i.Rn.Sc(i.M.Pb.resolve(t))})),hl=n}function ji(t){return!!t&&0<hl.filter((function(i){return t.replace(/(https?:)?/,"").replace(/&cb=[^&]*/,"").replace(/&apid=\[object\sObject]/,"&apid=[APID]").replace(/;ord=[^;]*/,";ord=[timestamp]")===i})).length}function Ii(t,i){var n=this;t.Ce.forEach((function(e){if(!ji.call(n,e)){if(e=n.M.Pb.resolve(e),t.type===Rh.jb){var r=ih;i&&"Overlay"===i.getType()&&(r=Yu),r=t.data.error||r;var s=encodeURIComponent((t.data.details||"").slice(0,100));e=si([Ga.concat(r.code),xc.concat(r.ya),Vf.concat(s)]).resolve(e)}n.Rn.Sc(e)}}))}function Mi(t,i){for(;t;)Ii.call(this,t,i),t=t.fv()}function Ni(){0===this.Bf.length&&(this.reset(),this.qm&&this.qm())}function Ri(){var t=this;this.cm||(this.P.rh(),this.cm=setTimeout((function(){return t.cm=null}),100))}function ki(t){this.ed(t.message,t.code)}function Li(){this.V=vl.PAUSED,this.track(Bh.PAUSE),this.P.lq()}function Di(t){this.P.Sh(t),!0===t.muted?this.track(Bh.MUTE):this.track(Bh.UNMUTE)}function Ci(){this.P.Nw()}function Pi(){this.V=vl.PLAYING,this.track(Bh.RESUME),this.P.nq()}function xi(t){this.P.vy(t.url)}function Ui(t){t.complete&&this.qb(Bh.COMPLETE),this.ga.Bq(),this.V=vl.mc,this.Qa.sa(),this.P.complete(!1,t)}function Vi(){this.fl(),this.V=vl.PLAYING}function Bi(){this.hf||(this.qa.nl((new Date).getTime()-this.Gr),this.fl(),this.qb(Bh.START),this.Xk(),this.fg())}function Fi(t){this.P.Rh(t),this.sl(this.ga.ov())}function zi(t){var i=this;(this.Ij=this.Ij||t.data.skippable)&&(this.pe=Qi.call(this,t),null!==this.pe&&(Ou.a.Fb(this.M,Su.We,Hi.bind(this)).link(this.Oa),0<this.pe&&(this.tj=Gi.bind(this),this.M.addEventListener(Su.Xe,this.tj)),qi.call(this),0<this.pe?$i.call(this,this.pe):Wi.call(this),setTimeout((function(){return Object(Oo.F)(i.Rb,"collapse-skip-button","expand-skip-button")}),800)))}function Gi(t){var i=Math.floor(t.data.currentTime);0<this.Gj&&this.pe-this.Gj<i&&(0>=(i=this.pe-i)?Wi.call(this,t):$i.call(this,i))}function Hi(){this.tj&&this.M.removeEventListener(Su.Xe,this.tj),Object(Oo.F)(this.Rb,"expand-skip-button","collapse-skip-button"),Object(Oo.D)(this.Rb,"skippable"),this.Rd=!0}function Yi(){this.Rd&&(this.M.skip(),Object(Oo.D)(this.Rb,"skippable"),this.Rd=!1)}function qi(){if(!this.Rb){var t=this.Gg.querySelector("#".concat("ad-skip-button"));t?(this.Rb=t,this.Fj=this.Rb.querySelector("#".concat("ad-skip-button-text"))):(this.lb.To(ml.a),Object(Oo.a)(this.Gg,"ad-skip-button-container"),this.Rb=Object(Oo.h)("div",{id:"ad-skip-button"},this.Gg),this.Fj=Object(Oo.h)("div",{id:"ad-skip-button-text"},this.Rb))}}function Wi(t){if(!this.Rd){var i="";this.mt&&(i="| ".concat(Math.round((t?t.data.duration:0)-(t?Math.floor(t.data.currentTime):0)))),this.Fj.innerHTML=this.qt.replace("%t",i).trim(),Object(Oo.a)(this.Rb,"skippable"),this.Rd=!0,Ou.a.Fb(this.Rb,Oo.c.Pk()?"touchend":"click",Yi.bind(this)).link(this.Oa)}}function Qi(t){var i=t.data;t=i.duration;var n=i.skipOffsetTime;i=i.skipOffsetPercent;var e=this.nt;return n||0===n?e=n:(i||0===i)&&(e=~~(t*i/100)),e<Math.min(this.Gs,t)?e:null}function $i(t){this.Rd||(this.Gj=t,this.Fj.innerHTML=this.xt.replace("%d",this.Gj))}function Xi(){var t=this;this.subscribe((function(i){t.V=i.data}),"statechange")}function Zi(t){var i=this.$i[t];if(i){for(var n=arguments.length,e=Array(1<n?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];i.call.apply(i,[this].concat(e))}}function Ji(){var t=this,i=[[wl.i,jn],[wl.a,gn],[wl.b,bn],[wl.c,an],[wl.d,pn],[wl.e,yn],[wl.f,wn],[wl.h,Tn],[wl.j,fn],[wl.k,Ln],[wl.l,rn],[wl.n,mn],[wl.o,Rn],[wl.p,In],[wl.q,Nn],[wl.s,ln],[wl.t,dn],[wl.u,vn],[wl.v,Sn],[wl.w,En],[wl.x,On],[wl.y,_n],[wl.z,An],[wl.A,kn],[wl.g,Pn],[wl.r,cn]],n=this;this.Zr={addEventListener:function(t,i){n.$i[t]=i,en.call(n,"subscribe",Zi.bind(n,t),t,n)},removeEventListener:function(t){delete n.$i[t];try{en.call(n,"unsubscribe",Zi,t)}catch(t){}}},i.forEach((function(i){return Ki.call(t,i[0],i[1])})),this.Ng=0}function Ki(t,i){var n=this;this.be.link(Ou.a.bind(this.Zr,t,(function(){try{if(-1!==Rl.indexOf(t)){if(-1!==n.Cm.indexOf(t))return void n.P.dispatchEvent(new Au(_l.am,t));n.Cm.push(t)}for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];i.apply(n,r)}catch(i){Il.error("Failed to handle ".concat(t," event:"),i)}})))}function tn(t){var i=document.createEvent("MouseEvent");i.initEvent(t.type,!t.cancelBubble,t.cancelable),this.ht.dispatchEvent(i)}function nn(t){this.element.style.visibility=t?"visible":"hidden"}function en(t){if(this.Ia)try{for(var i=this.Ia[t],n=arguments.length,e=Array(1<n?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return i?i.apply(this.Ia,e):this.Ia.Tc(t,e)}catch(i){Il.error(t,i)}}function rn(){this.P.nq()}function sn(){this.Om=(new Date).getTime(),this.ij=this.Om-this.Bd,this.qa.ml(this.ij),en.call(this,"subscribe",tn.bind(this),"mousemove"),en.call(this,"subscribe",tn.bind(this),"mouseover"),L()&&Yo.addEventListener(Wo.fullscreenchange,this.Hm)}function on(t){Il.error(t);var i=hn.call(this);this.error=un(i,t),this.Zi&&(this.Zi.call(this,this.error),this.Sg===uh&&this.Zi.call(this,un(this.Sg,t))),this.ep()}function un(t,i){return{ea:t.ea,code:t.code,description:"".concat(t.description," ").concat(i),Fd:t.Fd,ya:t.ya}}function hn(t){var i=this.Sg||Ml;return this.Qb&&!this.Ia?i=dh:this.Ia&&!this.Kc?i=t?sh:rh:this.Kc&&!this.Eb?i=t?ch:ah:this.Eb&&(i=hh),i}function an(t){t=Object(Oo.y)(t)?Object(Oo.y)(t.data)?t.data.message||t.data.errorMessage:"Internal Vpaid Error":t,Il.warn("VPAID_UNIT:",t),-1===Nl.indexOf(t)?this.ed(t):this.stop()}function cn(t){this.P.Rh(t),t=this.Fe(),this.P.dispatchEvent(new jl(1e3*t))}function fn(){}function ln(){var t=en.call(this,"getAdLinear");this.track(Bh.ACCEPT_INVITATION),this.P.dispatchEvent(new Au("VASTAdInteraction",t?"acceptInvitationLinear":"acceptInvitation"))}function vn(){this.track(Bh.COLLAPSE)}function dn(){var t=en.call(this,"getAdLinear");this.track(Bh.CLOSE),this.P.dispatchEvent(new Au("VASTAdInteraction",t?"closeLinear":"close"))}function pn(){en.call(this,"getAdExpanded")?(this.track(Bh.EXPAND),this.P.dispatchEvent(new Au("VASTAdInteraction","expand"))):(this.track(Bh.COLLAPSE),this.P.dispatchEvent(new Au("VASTAdInteraction","collapse")))}function mn(){}function bn(){}function yn(){var t=this;this.hf||(Mn.call(this),this.fl(),this.fg(),this.Xk(),(this.Ok()||"Overlay"===this.Fa)&&nn.call(this,!0),setTimeout((function(){return t.rt=!0}),500))}function gn(t){var i=null,n=!1,e=!1;t.data&&t.data.playerHandles&&(i=(n=!!t.data.playerHandles)&&t.data.url,e=n&&!!i),this.P.rh(i,e,!n)}function wn(){this.P.dispatchEvent(new Au("VASTAdInteraction"))}function _n(){this.qb(Bh.START)}function En(){this.qb(Bh.FIRST_QUARTILE)}function On(){this.qb(Bh.MIDPOINT)}function An(){this.qb(Bh.THIRD_QUARTILE)}function Sn(){this.qb(Bh.COMPLETE),Nn.call(this)}function Tn(){var t=en.call(this,"getAdLinear");t!==this.gj&&(this.gj=t,this.P.cg(t))}function jn(){this.Kc=!0,this.fj=(new Date).getTime()-this.Om,this.qa.ll(this.fj),this.Lr=(new Date).getTime(),this.setVolume(this.za),this.P.dispatchEvent(new Au(Su.Ci,{Kb:this.P.ad&&this.P.ad.Kb||""}))}function In(){Mn.call(this),this.setVolume(this.za),this.bp()}function Mn(){this.fh||(this.fh=(new Date).getTime()-this.Lr,this.qa.pl(this.fh))}function Nn(){this.Yr||(this.Yr=!0,this.hf||this.dc||(this.error=fh),this.gh&&clearTimeout(this.gh),this.dispose(),this.P.complete(!1,{currentTime:this.getCurrentTime()}))}function Rn(){this.M.dispatchEvent(new Au(Su.li)),this.ep()}function kn(){var t=this.getVolume();if(t!==this.za&&this.Eb){var i=!t;i?this.track(Bh.MUTE):this.track(Bh.UNMUTE),this.za=t,this.P.Sh({muted:i,volume:this.za})}}function Ln(){this.P.lq(),!this.rt&&0<this.getVolume()&&!this.qf&&(this.setVolume(0),this.resume())}function Dn(t){switch(t.type){case El.b:on.call(this,"function getVPAIDAd does not exist");break;case El.c:on.call(this,"getVPAIDAd() does not return a creative");break;case El.a:on.call(this,"API function ".concat(t.name," is missing"));break;case El.d:this.Sg=this.Bs?uh:oh,on.call(this,"Vpaid url ".concat(t.url," is unavailable"));break;default:this.ed("Error with vpaid: ".concat(t))}}function Cn(){D()?(this.qb(Bh.FULLSCREEN),this.qb(Bh.PLAYER_EXPAND)):(this.qb(Bh.EXIT_FULLSCREEN),this.qb(Bh.PLAYER_COLLAPSE)),this.resize()}function Pn(t){return xn.apply(this,arguments)}function xn(){return(xn=Ah()(Eh.a.mark((function t(i){var n,e,r,s,o;return Eh.a.xl((function(t){for(;;)switch(t.Ub=t.next){case 0:n=JSON.parse(i.data),e=n.body,r="".concat(e.id," ").concat(e.message),s="600-1".concat(/A future version/.test(r)?"w":"e"),o={adl:this.qa.yh(),crid:this.P.Da.id,ecode:s,estring:r,mf_bit:this.P.xh(),mf_url:this.sc,ms_lat:this.qa.Ap()},this.M.dispatchEvent(new Su(Su.ji,this.Fa,o)),0===e.message.indexOf("Ad was removed")&&this.ed(r);case 6:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Un(t){this.Pm=!0,this.Ed(Rh.jb,{error:t},!0)}function Vn(){this.Kc||this.Le(new Cu("ad engine did not finish loading")),this.dispatchEvent(new Su(Su.Ue,this.ca.getType(),{Uc:this.fb(),Lf:this.Xi,error:this.Dv(),loaded:this.Kc}))}function Bn(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return i.$q?i.$q===t?i.level:"error":i.level||"error"}function Fn(){var t=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],n=(i=Mu()(i,2))[0];if(i=i[1],n&&i)return Array.isArray(i)||(i=[i]),i.map((function(i){var e=t.O.Ya(xl);return e.addEventListener(xl.Yl,(function(){n(i)})),e.ol(i),e}))}function zn(t){var i=Fn.call(this,t.Te),n=Fn.call(this,t.Ey);return t=Fn.call(this,t.Dy),n=i.concat(n,t),this.In=i[0],n.filter((function(t){return t}))}function Gn(){return this.La.uc.filter((function(t){return"ViewabilityRules"===t.type}))[0]}function Hn(){var t=[],i=this.La.uc.filter((function(t){return"Viewability3P"===t.type}))[0],n=this.La.uc.filter((function(t){return"adaptv_iab_viewable_beacons"===t.type}))[0];return n&&(t=t.concat(n.br)),i&&(t=t.concat(i.Fy)),t}function Yn(t,i){var n=this;this.bo.filter((function(i){return i.type===t})).forEach((function(t){var e=[];i&&e.push([Jl,i.te]),t.prepare(null,n.M,e),t.Ha()}))}function qn(t){var i=this;this.La.gd.forEach((function(n){var e=n.Lb,r=n.Sk;if(n=n.wl,"iab_viewable"===t&&e)return e.Ha();if("iab_detection_failed"===t){if(n&&-1===i.Lg.Ba())return n.Ha();if(r)return r.Ha()}}))}function Wn(t,i){this.La&&(this.La.dispatchEvent(new Rh(t,this.Ia)),Yn.call(this,t,i),!this.La.gd||"iab_viewable"!==t&&"iab_detection_failed"!==t||qn.call(this,t))}function Qn(){this.P.rh()}function $n(){this.cj.sa(),Object(Oo.E)(this.element)}function Xn(t){t.data.currentTime>this.icon.offset&&(this.P.Xf.appendChild(this.element),0===this.icon.duration&&this.P.removeEventListener("VASTAdTimeUpdate",this.ql)),0<this.icon.duration&&t.data.currentTime>this.icon.offset+this.icon.duration&&(Object(Oo.E)(this.element),this.P.removeEventListener("VASTAdTimeUpdate",this.ql))}function Zn(){var t="string"==typeof this.icon.ug?this.icon.ug.toLowerCase():"";switch("string"==typeof this.icon.tg?this.icon.tg.toLowerCase():""){case"left":this.element.style.left="0px";break;case"right":this.element.style.right="0px";break;default:"number"==typeof this.icon.tg&&(this.element.style.left="".concat(this.icon.tg,"px"))}if("bottom"===t)this.element.style.bottom="0px";else this.element.style.top="".concat("number"==typeof this.icon.ug?this.icon.ug:0,"px")}function Jn(t){this.rd.Sc(t)}function Kn(t){return-1!=="".concat(t).indexOf("%")}function te(t,i){var n={height:i,width:t,x:0,y:0};this.bd()&&(this.pb.position=_.xi),n.x="calc(50% - ".concat(t/2,"px)"),n.y="calc(50% - ".concat(i/2,"px)");var e=this.fa.offsetWidth,r=this.fa.offsetHeight;switch(this.pb.position){case _.xi:n.y=0;break;case _.Vl:n.x="calc(100% - ".concat(t,"px)");break;case _.Tl:n.y="calc(100% - ".concat(i,"px)");break;case _.Ul:n.x=0;break;case _.vi:this.fa.parentNode&&e===this.fa.parentNode.offsetWidth&&(r=this.fa.parentNode.offsetHeight),Kn(this.pb.left)?n.x=parseFloat(this.pb.left)*e/100:n.x=this.pb.left,n.x-=t/2,Kn(this.pb.top)?n.y=parseFloat(this.pb.top)*r/100:n.y=this.pb.top,n.y-=i/2}return n}function ie(t){return 0<fv.filter((function(i){return new RegExp(i).test(t)})).length}function ne(){this.Xa.forEach((function(t){return t.resize()}))}function ee(t){vv.warn("VAST error occurred in ad",t)}function re(t){var i=this;t.addEventListener("VASTAdStarted",this.dispatchEvent.bind(this)),t.addEventListener("VASTAdError",ee.bind(this,t)),t.addEventListener(Su.Bi,this.aa.dispatchEvent.bind(this.aa)),t.addEventListener(Su.Ci,this.aa.dispatchEvent.bind(this.aa)),t.addEventListener(Su.wg,this.aa.dispatchEvent.bind(this.aa)),t.addEventListener(Su.si,this.aa.dispatchEvent.bind(this.aa)),t.Zf(this.aa.getVolume()),t.Da&&t.Da.$c&&t.Da.$c.forEach((function(n){return new ev(n,i.ga,i.rd).fy(t)}))}function se(t){var i=this;ce.call(this,t),this.ad=t,this.zs&&(this.ad=Ne.call(this)||t),this.bc=[],this.$g=[],this.ad.Ja.forEach((function(t){t instanceof ca?i.bc.push(t):t instanceof Ua&&i.$g.push(t)})),this.ad.vq(this.rb,{nz:this.getCreativeDuration()},this.N.$f())}function oe(){var t=this;this.ad.uc.forEach((function(i){i.prepare(t)}))}function ue(){var t=this;this.ad.Ay.forEach((function(i){t.O.Ya(Ch).prepare(i,t.ad)}))}function he(){var t=this;this.ad.gd.forEach((function(i){var n=i.Lb,e=i.Sk;i=i.wl,n&&n.prepare(null,t.aa),e&&e.prepare(null,t.aa),i&&i.prepare(null,t.aa)}))}function ae(t){this.rb.hg(t,this.ca)}function ce(t){var i=this;pv.forEach((function(n){return t.addEventListener(n,ae.bind(i))})),t.addEventListener(Rh.hd,(function(t){return i.io(t.Vc())})),t.addEventListener(kh.nd,(function(t){var n=mv[t.Od];n&&i.Ka(n,t.data)}))}function fe(t,i){this.qc.ek(),t=new ov(this.qc,this.na.ads[0]||this.ad,t,this.Qb,i,this.aa,this),this.Xa.push(t),t.addEventListener("VASTAdStarted",this.Df.bind(this,t)),t.addEventListener("VASTAdEngineComplete",ve.bind(this)),t.addEventListener("VASTAdInteraction",de.bind(this)),t.addEventListener("VASTAdEngineComplete",Te.bind(this,t)),re.call(this,t),this.N.dw()?t=t.va.Rk:(i=t.pb.eq,isNaN(i)&&(i=t.va.Rk),t=i),t&&t!==Number.POSITIVE_INFINITY&&!isNaN(t)&&(t*=1e3,this.qc.jl(Ae.bind(this),t))}function le(t){this.pg("loaded",t)}function ve(){this.Kd("started")?this.Ka("finished"):this.Ka("failover")}function de(t){this.ub(Su.Dl,{action:t.data})}function pe(t){var i=this;this.Kd("started")?this.Fc.qg("ad",null,"ad failed after start"):this.wa.Ed(Rh.jb,{error:t}),this.Cd=null,this.Gm++;var n=this.na.tp(),e=n||this.na;if(this.na.Iv(n).forEach((function(n){var e=new Rh(Rh.jb,null,null,{error:t});n.dispatchEvent(e),i.rb.hg(e)})),e){if(n=0,-1===this.ka.Dd)for(var r=0;r<e.ads.length;r++)if(e.ads[r]&&!e.ads[r].wb){n=r;break}if(r=e.ads[n])return this.ub(Su.bm,{vu:{ad:this.ad&&this.ad.jc||null,Da:this.Ga&&this.Ga.jc||null},Fu:!0,ib:t}),this.na=e,r.bg?me.call(this,n):(this.na.ads.splice(n,1),this.Ud&&this.Ud.sa(),se.call(this,r),ye.call(this)),!0}return this.Kd("loaded")&&!this.Kd("started")&&this.Ka("failover"),!1}function me(t){this.Nb.og(),this.Nb.$w(this.na,t)}function be(){var t=this;this.Sd=Ou.a.group(Ou.a.bind(this.wa,"VASTAdEngineComplete",(function(i){Te.call(t,t.wa,i)})),Ou.a.bind(this.wa,jl.TYPE,Oe.bind(this)),Ou.a.bind(this.wa,Su.xg,we.bind(this)),Ou.a.bind(this.wa,"VASTAdImpression",this.Kk.bind(this)),Ou.a.bind(this.wa,"VASTAdStarting",(function(i){t.lo(i,t.wa)})),Ou.a.bind(this.wa,"VASTAdStarted",(function(i){t.Df(t.wa,i),i=+t.wa.getDuration();var n=+t.Ga.duration;0<i&&(i>1.8*n||n>1.8*i)&&t.Fc.qg("ad",null,"ad duration mismatch: expected ".concat(n," but real duration: ").concat(i))})),Ou.a.bind(this.wa,"VASTAdPaused",this.jo.bind(this)),Ou.a.bind(this.wa,"VASTAdResumed",this.ko.bind(this)),Ou.a.bind(this.wa,"VASTAdVolumeChanged",this.St.bind(this)),Ou.a.bind(this.wa,"VASTAdTimeUpdate",(function(i){t.Es=t.getDuration(),t.mo(i);var n=t.Ga||{};if(n.hi&&!t.ot){var e=0;i=i.data||{},n.gi?e=n.gi:n.fi&&(e=i.duration*n.fi/100),i.currentTime>=e&&(t.ot=!0)}})),Ou.a.bind(this.wa,"VASTAdWaiting",this.Tt.bind(this)),Ou.a.bind(this.wa,"VASTAdInteraction",this.ny.bind(this)),Ou.a.bind(this.wa,_l.am,ge.bind(this)))}function ye(){if(this.Nm=!1,0===this.bc.length)if(this.ad){this.wa=new Dl(this.ad,{},this.aa,this);var t=Xu;pe.call(this,t)||(this.Qe(new Xf(t.description,null,null,t)),this.complete())}else this.complete();else if((t=this.ad)&&(t=this.ad,t=((new Date).getTime()-t.vw)/1e3>t.expires),t)this.wa=new Dl(this.ad,{},this.aa,this),t=Fu,pe.call(this,t)||(this.Qe(new Xf(t.description,null,null,t)),this.complete());else{this.Ab=null,this.Ga=this.bc.shift(),this.ad.dispatchEvent(new Rh(Rh.LOADED,this.Ga)),this.Sm?this.Sm=!1:this.Wj(),this.qa.kl(this.ad&&this.ad.jc||null,this.Ga&&this.Ga.jc),t=this.fa.offsetWidth;var i=this.fa.offsetHeight;0===t&&(this.fa.style.width="100%",t=this.fa.offsetWidth),0===i&&(this.fa.style.height="100%",i=this.fa.offsetHeight),(t=cv.$h(t,i,this.Ga.Ie))?(this.Qb=t[0],oe.call(this),ue.call(this),this.Ud=new Kl(this.ad,this.Ga,this.aa),this.Ga.Io.prepare(this.O,this.ad),this.ad.gd&&he.call(this),this.aa.dispatchEvent(new Au("VASTAdLoading",{ad:this.ca,url:this.Qb.url})),this.wa=t=new Dl(this.ad,this.Ga,this.aa,this).cr(t).Jy(this.Ga.Rp),this.Sd&&(this.Sd.sa(),this.Sd=null),be.call(this),this.Xa.push(t),this.on&&(this.Nm=!0,re.call(this,t))):ye.call(this)}}function ge(t){this.Fc.qg("ad",null,'VPAID sends "'.concat(t.data,'" event twice'))}function we(t){t.data.isLinear||this.Ka("non-linear"),this.aa.dispatchEvent("AdSystem.LinearChange",t)}function _e(){var t=this.na.ads[0];return t?(t.bg?(t=this.na,this.Nb.og(),this.Nb.Ne(t)):(this.na.ads.shift(),se.call(this,t),ye.call(this)),!0):!!(t=Ee.call(this))&&(this.Nb.og(),this.Nb.Ne(t),!0)}function Ee(){for(var t=this.na.parent;t&&t.parent&&(0===t.ads.length||!t.ads[0].wb);)this.Nb.xu(),t=t.parent;return t}function Oe(t){t=new jl(t.xq),this.dispatchEvent(t),this.aa.dispatchEvent(t)}function Ae(t,i){if(this.Ds=!0,this.qc.stop(),this.bc=[],0<this.Xa.length){var n=this.Xa;t||(this.Xa=[]),n.forEach((function(t){return t.stop(i)}))}else Te.call(this)}function Se(t,i){var n=[];return this.Xa.forEach((function(i){i!==t&&n.push(i)})),this.Xa=[],0===n.length?null:(new cl(n,Te.bind(this,t,i)).xy(),n.forEach((function(t){return t.stop()})),n)}function Te(t,i){if(this.qc.stop(),this.bj=!1,i){if(null!=Se.call(this,t,i))return;var n=t.hp();if(n&&(this.Qe(new Xf(n.message||n.description,null,null,n)),this.Cd=Me.call(this,n)),i.force&&(this.bj=!0),this.lh(i.currentTime,i.data),t instanceof Dl)return this.Ud&&this.Ud.sa(),void(this.Ab?(this.Cd||(this.Cd=Me.call(this)),pe.call(this,this.Cd)||Te.call(this)):((t=-1===this.ka.Dd)&&(t=!(!(t=this.na.ads[0])||!t.wb)),(this.aa.Vp()||t)&&_e.call(this)||Te.call(this)));if(t instanceof ov)return void Te.call(this)}this.bj||this.complete()}function je(t){if(t=t.va)return Uo.a.uk(t.url)||t.url}function Ie(){var t=[];if(this.ad&&this.ad.Ja&&this.ad.Ja.length)t=uv.nv(this.ad.Ja);else if(this.Xa&&this.Xa.length)t=this.Xa.map((function(t){return je(t)}));else if(this.wa){var i=je(this.wa);i&&t.push(i)}return t.join(",")}function Me(t){return(t=Object(Oo.g)(t||{})).code=t.code||this.Ab.code||dv.code,t.description=t.description||this.Ab&&this.Ab.message||dv.description,t}function Ne(){return Object(Oo.l)(this.na.ads,(function(t){return!isNaN(t.Su)}))}function Re(){this.zs=!0}function ke(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function Le(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?ke(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}function De(t){return!!t.disableAdCountdown||!!t.callToAction}function Ce(){return cv.$h(this.fa.offsetWidth,this.fa.offsetHeight,(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).map((function(t){return Le({},t,{mimeType:t.contentType})})))}function Pe(){var t=this.bb.te,i=[];switch(this.bb.Eh()){case"viewabilityDefVideo3P":i.push([Jl,t]);break;case"viewabilityDefStatic3P":i.push([Vl,t])}return i}function xe(){var t=this,i=Ue.call(this);0<i.length&&i.map((function(i){return t.O.Ya(Sv).ol(i)}))}function Ue(){var t=this,i=[];return Object.keys(jv).forEach((function(n){var e=jv[n],r=t.bb[e]||[];if("GEMINI_IMP"===n){if(!t.Im)return;var s=[t.Im]}else{if(!t.Ye[n])return;s=t.Ye[n]}Array.isArray(r)||(r=[r]),r.forEach((function(t){i.push(new na(e,t,s))}))})),i}function Ve(t){if(-1===this.On.indexOf(t)){var i=this.Ye&&this.Ye[t];i&&this.xj.cp({qq:i}),this.On.push(t)}}function Be(t,i){this.V!==Lv.LOADED&&this.V!==Lv.yi&&(this.V=Lv.LOADED,t&&t(i.data),this.M.dispatchEvent(Su.Ve,i))}function Fe(t){var i=t.data&&t.data.Uc;i.Up=!!t.data.loaded,this.Mb.release(i),t.data&&t.data.error?(this.Mb.cq(i),ze.call(this,"all ads are failed",t.data&&t.data.Lf,t.data&&t.data.error&&t.data.error.ib,i)):(this.reset(),this.V=Lv.mc,this.dispatchEvent(new Au(Au.pi))),this.M.dispatchEvent(Su.Ue,t)}function ze(t,i,n,e){this.stop(),this.dispatchEvent(new Au(Au.pi,{Uc:e,Lf:i,error:t,ib:n}))}function Ge(t){t=new t(this.M),this.dm[t.getType()]=t}function He(t){var i=this.O.Ya(xl);return i.ol(new na("default",t)),i}function Ye(){return this.M.isMuted()?2:1}function qe(){var t=this.Qc.Ba();return 0>t?3:50>t?2:1}function We(){return this.ga.Jh()}function Qe(){return this.ga.Ch()}function $e(){return this.tb.inView100.Nc}function Xe(){return this.tb.inView50.Nc}function Ze(){return this.tb.inView50Continuous.Nc}function Je(){var t=1e3*this.M.getDuration()||3e4;return this.tb.inView100Continuous.Nc>Math.min(t/2,15e3)?1:0}function Ke(){return L()&&D()}function tr(){return encodeURIComponent(this.Ls.Cv())}function ir(){return this.N.Yp()}function nr(){var t=this.ka.Oq;return t&&!Object(Oo.r)(t)?1:0}function er(){return 1}function rr(){return Date.now()}function sr(){var t=(new Date).getTime(),i=document.createElement("template"),n=document.createElement("details"),e=document.createElement("img");return(new xv).append(this.Z.Eo&&this.Z.Eo.hD).append(document.documentMode).append(document.fonts&&document.fonts.ready).append(1&t).append(this.Z.ActiveXObject).append(this.Z.Eo).append(this.sb.serviceWorker).append(this.Z.opera).append(this.Z.sidebar).append(!1).append(2&t).append(!this.Z.ActiveXObject).append(yr.call(this,"-ms-ime-align")).append(yr.call(this,"-ms-scroll-limit")).append(br.call(this,"-webkit-font-feature-settings")).append(4&t).append(this.Z.ActiveXObject).append(yr.call(this,"-moz-appearance")||yr.call(this,"mozAppearance")).append(this.Z.jz).append(this.Z.Hz).append(Object.prototype.hasOwnProperty.call(i,"content")).append(this.Z.performance&&Object.prototype.hasOwnProperty.call(this.Z.performance,"getEntriesByType")).append(8&t).append(br.call(this,"image-rendering")).append(br.call(this,"object-fit")).append(Object.prototype.hasOwnProperty.call(n,"open")).append(this.Z.screen&&Object.prototype.hasOwnProperty.call(this.Z.screen,"orientation")).append(this.Z.performance).append(br.call(this,"shape-image-threshold")).append(this.Ic[0]).append(Object.prototype.hasOwnProperty.call(e,"srcset")).append(this.Jt).Oc}function or(){var t=(new Date).getTime(),i=Uv.a.hu();return(new xv).append(this.Kt).append(32&t).append(this.Ic[1]).append(this.Ic[2]).append(Uv.a.pu()).append(Uv.a.ou()).append(Uv.a.ju()).append(64&t).append(i||Object(Oo.x)(this.sb.vibrate)?1:0).append(i).append(this.Ic[3]).append(Uv.a.mu()).append(gr.call(this,"image-rendering","pixelated")).append(Object(Oo.x)(document.elementsFromPoint)).append(gr.call(this,"object-fit","inherit")).append(gr.call(this,"shape-image-threshold",.9)).append(gr.call(this,"word-break","keep-all")).append(Uv.a.lu()).append(this.Km&&Object(Oo.x)(this.um.supports)).append(this.Z.Intl&&Object(Oo.x)(this.Z.Intl.Collator)).append(Object(Oo.x)(document.createElement("dialog").show)).append(256&t).append(this.Ic[4]).append(this.Ic[5]).append(document.documentElement&&Object(Oo.x)(document.documentElement.webkitRequestFullScreen)).append(Object(Oo.x)(this.sb.getBattery)).append(this.sb.permissions&&Object(Oo.x)(this.sb.permissions.query)).append(this.Z.AudioContext&&Object(Oo.x)((new this.Z.AudioContext).createBuffer)).append(this.Ic[6]).append(this.Z.webkitRequestAnimationFrame&&Object(Oo.x)(this.Z.webkitRequestAnimationFrame)).append(this.Z.BroadcastChannel&&Object(Oo.x)(this.Z.BroadcastChannel.call)).Oc}function ur(){var t=(new Date).getTime();return(new xv).append(Object(Oo.x)(this.Z.FontFace)).append(Object(Oo.x)(this.Z.Gamepad)).append(1024&t).append(Object(Oo.x)(this.Z.MutationEvent)).append(Object(Oo.x)(this.Z.MutationObserver)).append(this.Z.crypto&&Object(Oo.x)(this.Z.crypto.getRandomValues)).append(Object(Oo.x)(document.body.createShadowRoot)).append(Object(Oo.x)(document.body.webkitCreateShadowRoot)).append(Object(Oo.x)(this.Z.fetch)).append(Object(Oo.x)(this.Z.createImageBitmap)).append(this.sb.serviceWorker&&Object(Oo.x)(this.sb.serviceWorker.register)).append(Object(Oo.x)(this.sb.webkitGetGamepads)).append(this.Z.speechSynthesis&&Object(Oo.x)(this.Z.speechSynthesis.speak)).append(Object(Oo.x)(this.Z.webkitRTCPeerConnection)).append(gr.call(this,"--fake-var",0)).append(4096&t).append(gr.call(this,"cursor","grab")).append(gr.call(this,"cursor","zoom-in")).append(gr.call(this,"image-orientation","270deg")).append(Object(Oo.x)(this.Z.Proxy)).append(gr.call(this,"position","sticky")).append(void 0===document.createElement("style").wC).append(this.ke&&this.ke.getEntriesByType&&this.ke.getEntriesByType("resource")instanceof Array).append(void 0===this.Z.Sy).append(Uv.a.iu()).append("boolean"==typeof this.sb.onLine).append(16384&t).append(void 0===this.sb.gD).append(this.ke&&this.ke.now&&"number"==typeof this.ke.now()).append(Uv.a.nu()).append(Uv.a.fu()).append(Uv.a.ku()).Oc}function hr(){return this.Ic[7]}function ar(){return(new Date).getTimezoneOffset()}function cr(){return"".concat(this.Z.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,"x").concat(this.Z.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)}function fr(){return"".concat(this.Z.outerWidth||document&&document.body&&document.body.offsetWidth,"x").concat(this.Z.outerHeight||document&&document.body&&document.body.offsetHeight)}function lr(){return"".concat(this.Z.screen.availWidth,"x").concat(this.Z.screen.availHeight)}function vr(){return"".concat(this.Z.screen.width,"x").concat(this.Z.screen.height)}function dr(){return Uv.a.btoa(this.sb.userAgent)}function pr(){return Uv.a.btoa(this.sb.platform)}function mr(){return Uv.a.btoa(this.sb.vendor)}function br(t){return this.km&&Object.prototype.hasOwnProperty.call(this.km,t)}function yr(t){return this.zm&&Object.prototype.hasOwnProperty.call(this.zm,t)}function gr(t,i){return this.Km&&this.um.supports(t,i)}function wr(t){var i=this;return t.filter((function(t){return t.Jo(i.ta)})).map((function(t){return t.prepare(i.Pb,i.ta)}))}function _r(t,i,n){clearTimeout(this.Hi),this.tn=!0,this.Bm.sa(),this.Vd=0,this.ua.reset(),this.sd=this.ka.Dd,zt(this.ta)&&(t={adPodsPlayed:this.bf,engineErrors:i,reason:t,vastError:n},this.Li?(this.dispatchEvent(new Su(Su.vg,this.ta,t)),this.Li=!1):this.dispatchEvent(new Su(Su.Hl,this.ta,t)))}function Er(t,i,n){this.oc&&this.oc(t?{Lf:i,error:t,ib:n}:void 0),this.kn&&_r.call(this,t,i,n)}function Or(t){if(this.Hn||this.Nf)_r.call(this,"STOPPED_BY_TIMER",t&&t.data&&t.data.Lf,t&&t.data&&t.data.ib);else if(t&&t.data&&t.data.error){var i=t.data.error,n=t.data.Lf,e=t.data.ib;t=t.data.Uc;var r=!0;this.N.lp().disableFailoverOnDlvFailure&&(r=0===this.Vd);var s=this.Mb.pk(this.ta);this.Lc=wr.call(this,s),this.ua.reset(),Gv.warn("on ad group failed:",i,this.Lc),this.Lc.length&&this.Vp()&&r?(i=this.oc?this.oc:Cr.bind(this),this.dispatchEvent(new Su(Su.Cl,null,{Uc:t,ib:e})),this.ua.load(this.Lc,i)):(--this.sd,this.dispatchEvent(new Su(Su.Pl,null,{Uc:t,ib:e})),Er.call(this,"AD_GROUP_FAILED",n,e))}else--this.sd,Er.call(this)}function Ar(){this.dispatchEvent(new Su(Su.vg,this.ta))}function Sr(){this.stop(!0)}function Tr(t){t.data.isLinear||(1>=this.sd?this.dispatchEvent(Su.xg,t):this.Ew())}function jr(t){this.za=t.data.muted?0:t.data.volume}function Ir(t){this.W=t}function Mr(t){this.W=t.Uc}function Nr(){clearTimeout(this.Hi),this.bf+=1}function Rr(){this.Vd+=1,this.Dg+=1}function kr(t,i){var n=this.Mb.pk(this.ta);this.wf=i.wf;var e=i.yj;e&&(this.sd=e,this.ka.Dd=e),this.wd&&this.wd.pause(),e=n[0]&&n[0].rf,n=n[0]&&n[0].Xc(),e&&this.N.Tx(e),n&&this.N.$x(n),t&&t({Vh:i.data.Vh})}function Lr(t){t&&t({Vh:[]})}function Dr(t){var i=this;[{yc:function(){var t;return(t=i.N).Vx.apply(t,arguments)},lc:t.pid},{yc:function(){var t;return(t=i.N).Fx.apply(t,arguments)},lc:t.bcid},{yc:function(){var t;return(t=i.T).Iq.apply(t,arguments)},lc:t.vid},{yc:function(){var t;return(t=i.N).Ex.apply(t,arguments)},lc:t.bckt},{yc:function(){var t;return(t=i.N).Nx.apply(t,arguments)},lc:t.expn},{yc:function(){var t;return(t=i.N).Mx.apply(t,arguments)},lc:t.expb},{yc:function(){var t;return(t=i.N).Lx.apply(t,arguments)},lc:t.device},{yc:function(){var t;return(t=i.N).Yx.apply(t,arguments)},lc:t.region},{yc:function(){var t;return(t=i.N).Zx.apply(t,arguments)},lc:t.site}].forEach((function(t){return t.lc&&t.yc(t.lc)}))}function Cr(){this.ua.Dq()}function Pr(t){t=t.body;var i="".concat(t.id," ").concat(t.message);if(t=this.ua.ma){var n=t.qa,e=t.wa;i={adl:n.yh(),crid:e.Da.id,ecode:"600-2".concat(/A future version/.test(i)?"w":"e"),estring:i,mf_bit:e.xh(),mf_url:e.va.url,ms_lat:n.Ap()},this.dispatchEvent(new Su(Su.ji,t.fb().getType(),i))}}function xr(t){var i={};this.Sa({at:(t.data.type||"Preroll").toLowerCase(),device:this.N.Ui,ps:Object(Oo.m)(!1),region:this.N.Aj,site:this.N.Ej,spaceid:this.ac.Xc(),vid:this.T.df},{},i),this.sg(i),this.Ha("ad-request.gif",i)}function Ur(t){var i={};qr.call(this,t,i),Wr.call(this,t,i),this.Sa({},{sact:this.N.zd},i),this.Ha("ad-issue.gif",i)}function Vr(t){var i={};qr.call(this,t,i),this.sg(i),this.Sa({},{auid:t.data.auid,h:t.data.If,sact:this.N.zd},i),this.Ha("ad-engine-request.gif",i),this.ks&&(i.acid||i.rid)&&Fr.call(this,this.Ra.Xu(),i)}function Br(t){var i={};qr.call(this,t,i);var n=t.data.latency/100,e=this.ka.Zc;this.Sa({aert:t.data.latency,ar:t.data.rw?"yes":t.data.timeout?"timeout":"no",fo:t.data.zy,ft:n<=this.ka.ng?0:n<=e?1:2},{to:t.data.timeout},i),this.Sa({},{auid:t.data.auid,h:t.data.If,sact:this.N.zd},i),this.Ha("ad-engine-response.gif",i)}function Fr(t,i){var n={};Object(Oo.g)(this.N.getParameters(),n),Object(Oo.g)(i,n),t+=n?"?".concat(Object(Oo.H)(n)):"",this.Sc(t)}function zr(t){var i={};qr.call(this,t,i),Wr.call(this,t,i);var n=t.data.Ru||0;this.Sa({ap:t.data.cu,atsub:"LOOKAHEAD"===t.data.Xt?"SKIPPABLE_PREROLL":"",avid:t.data.oh,cpm:t.data.Gb,fo:t.data.nh&&"win"!==t.data.nh&&"loaded"!==t.data.nh?n:void 0,h:t.data.If,m:t.data.muted},{ltc:t.data.latency},i),this.Zk(i),this.sg(i),this.Sa({},{auid:t.data.auid,bsfv:"started"===i.stg&&t.data.bsfv?t.data.bsfv.sort().toString():"",sact:this.N.zd},i),this.Ha("ad-engine-flow.gif",i),"started"===i.stg&&(i.acid||i.rid)&&Fr.call(this,this.Ra.Vu(),i)}function Gr(t){var i={};qr.call(this,t,i);var n=this.T.kb;this.Sa({cd:t.data.eb||"none",ct:t.data.Ho,t:n&&n.time||0},{},i),this.Ha("click.gif",i)}function Hr(t){var i={};qr.call(this,t,i),this.Sa({atsub:"",slot:t.data.slot},{},i),this.sg(i),this.Zk(i),this.Ha("slot-opp.gif",i)}function Yr(t){if(t=t.data.fq){var i=t.ic;return i=i&&i[0]&&i[0].mimeType||t.mimeType,t.cb?"".concat(t.cb," ").concat(i):i}}function qr(t,i){var n=(t=t.data).Oo||{};return this.Sa({at:(t.type||"Preroll").toLowerCase()},{acid:t.acid,adIdx:t.sequence||-1,adseq:t.slotAdSeq,aen:t.name,asid:t.asid,device:this.N.Ui,itg:this.T.Pg,pbl:t.isPayable,pc:t.profitCenter,pid:this.N.yd,poid:t.podId,ps:Object(Oo.m)(!1),rcid:t.ruleCompanyId,region:this.N.Aj,rid:t.ruleId||n.vn,scope:t.isHouseAd?"ha":null,seq:this.T.kb?this.T.kb.sequence:-1,sfbid:t.bookingId,sfliid:t.lineItemId,site:this.N.Ej,spaceid:this.ac.Xc(),txid:t.transactionId,usid:t.usid,v:t.vendor,vid:this.T.df,w:t&&t.mk},i)}function Wr(t,i){var n=t.data;return this.Sa({crt:Yr(t)||"",curl:n.url||"",stg:n.nh},{aid:n.mh,al:n.Pt,crl:n.Pu,dt:n.details,el:n.Fd,et:n.Ku,st:n.Ju},i)}function Qr(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.Va=t.slot,t=t.aeg&&t.aeg[0]&&t.aeg[0][0],this.cs=this.Wm[this.ta]||t}function $r(t){this.Wm=[],this.ef=t.ef,this.vf=t.data&&t.data.source&&t.data.source.slots||[]}function Xr(t){if(!t)return"";var i=Uo.a.Th(t),n=function(t){for(var i in $v)if(t.endsWith(i))return $v[i];return"OTHER"}(i.host);i=i.pathname;var e={get:function(i){return Uo.a.Ib(i,t,!1)}};switch(n){case"SSP":return"".concat(e.get("plcid"));case"DOUBLECLICK":return e.get("iu");case"GEMINI":return e.get("se");case"TREMOR":return e.get("adCode");case"DSP":return function(t){return(t=t.split("/"))[t.length-1]}(i);case"ADXTPC":return Zr(e,"iu");case"ADXIMA":return Zr(e,"client");case"FREEWHEEL":return function(t){return t?t.split(";")[0]:""}(e.get("prof"));case"RUBICON":return"".concat(e.get("account_id"),"-").concat(e.get("site_id"),"-").concat(e.get("zone_id"));default:return""}}function Zr(t,i){return(t=t.get("adTagUrl")||t.get("adtagurl"))?(t=decodeURI(unescape(t)),Uo.a.Ib(i,t,!1)):""}function Jr(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function Kr(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?Jr(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}function ts(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function is(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function ns(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function es(){var t=this;this.La&&this.La.Ja&&this.La.Ja.forEach((function(i){t.Hg[i.jc]=new td(i,t.fa,t.ta)}))}function rs(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function ss(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?rs(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}function os(){var t=this;this.na&&this.na.ads&&this.na.ads.forEach((function(i){t.Cc[i.jc]=new id(i,t.fa,t.rq,t.Ra)}))}function us(t){if((t=t.xc.Ja)&&0<t.length)return t[0].id}function hs(t){if(!this.Um)return{crid:t,v_cr_id:t};for(var i=this.na||{};i.parent&&i.parent.xc;)t||(t=us(i)),i=i.parent||{};return this.tm=us(i),this.Lj=t||this.tm,{crid:this.tm,v_cr_id:this.Lj}}function as(t){return t?t=this.Cc[t]:t=0<(t=Object.keys(this.Cc)).length?this.Cc[t[0]]:null,t}function cs(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function fs(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?cs(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}function ls(){if(!this.Fi){var t=this.M.getDuration();this.Fi=t&&Math.round(t)||""}return{ad_lng:this.Fi,adReplay:this.fm,adclt:"vrm",medT:this.Tg,num_rtry:this.Kg,view:this.Db.Ba(),vrmsdk:this.M.T.co}}function vs(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function ds(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?vs(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vs(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}function ps(){var t=this;[[Su.Pd,[fd,Od],Is.bind(this)],[Su.mi,[],js.bind(this)],[Su.wg,[],Ns.bind(this)],[Su.vg,[],null,Ds.bind(this)],[Su.Hl,[],null,Ds.bind(this)],[Su.ni,[dd],null,Vs.bind(this)],[Su.Xe,[],Bs.bind(this)],[Su.ki,[ud]],[Su.Il,[fd]],[Su.li,[ld],Ls.bind(this)],[Su.Fl,[],ks.bind(this)],[Su.zl,[null,Ad],ms.bind(this)],[Su.Dl,[],Ps.bind(this)],["Reporting.Ad.Slot.Opportunity",[],Ts.bind(this)],[Su.bm,[],Os.bind(this)],[Su.Bi,[],Hs.bind(this)],[Su.si,[],Ys.bind(this)],[Su.Ci,[],Ms.bind(this)],[Su.Ve,[],gs.bind(this)],[Su.Cl,[],ws.bind(this)],[Su.Pl,[],_s.bind(this)],[Su.Al,[],Gs.bind(this)],[Su.Gl,[],ys.bind(this)],[Su.Jl,[],xs.bind(this)],[Su.Kl,[],Us.bind(this)],[Su.ji,[],bs.bind(this)]].forEach((function(i){var n=(i=Mu()(i,4))[0],e=Mu()(i[1],2),r=e[0],s=e[1],o=i[2],u=i[3];t.M.addEventListener(n,(function(i){o&&o(i),i&&i.data&&"Overlay"===i.data.adType&&s?t.Pa(s,null,i.data):r&&t.Pa(r,null,i&&i.data),u&&u(i)}))}))}function ms(t){qs.call(this,{cd:t.data.clickThroughUrl,evt:"ad_click"})}function bs(t){t=ds({evt:"ad_pberr"},t.data),qs.call(this,t)}function ys(){var t=ds({evt:"ad_req"},(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).data||{});qs.call(this,t)}function gs(){this.pd=!0,qs.call(this,{evt:"ad_call",r_code:2}),this.kh=!1,this.Gf=!0}function ws(t){this.Xh(),Es.call(this,!0,t.data),this.Gf=!1}function _s(t){Es.call(this,!1,t.data),this.Gf=!1}function Es(t,i){var n=i.ib;i={Nt:i.Uc&&i.Uc.Cg},this.Gf?t&&As.call(this,{a_dlv_err:n&&n.ea||Hu.ea,evt:"ad_dlvf"},"a_dlv_err",!0,i):As.call(this,{estring:n&&n.description||"",evt:t?"ad_callf":"ad_call",r_code:n&&n.ea||qu.ea},"r_code",!1,i)}function Os(t){if(this.kh=!1,t.data.Fu){var i=t.data.ib;As.call(this,{a_dlv_err:i&&i.ea||ih.ea,evt:"ad_dlvf"},"a_dlv_err",null,t.data.vu)}this.qa.$j(),this.Gf=!1}function As(t,i,n,e){var r=this;null!==this.Id&&void 0!==this.Id?Ss.call(this,t,i,n,e):this.Ze.Ma.then((function(s){r.Id=s,Ss.call(r,t,i,n,e)}))}function Ss(t,i,n,e){this.Id&&(t[i]=xu.ea),qs.call(this,t,e&&e.Nt||null,e&&e.ad||null,e&&e.Da||null),n&&this.qa.du()}function Ts(t){if(!this.Bb){var i=t.data&&t.data.Oo,n=i&&i.Cg,e=t.data&&t.data.type&&t.data.type.toLowerCase()||"";"AVAIL"!==t.data.slot||t.data.fw?this.Ug.dispatchEvent(_d,{evt:"ad_oppty",medS:1,medT:1,ntwk:"Plugin Communicator",pos:e,slot:t.data.slot,taken:2}):qs.call(this,{evt:"ad_oppty",ntwk:i&&i.Gp()||"",pos:e,taken:1},n)}}function js(t){t&&t.data&&"application/javascript"===t.data.mimeType&&qs.call(this,{evt:"ad_beg"})}function Is(){this.hm=!1,this.Or=setTimeout(Rs.bind(this),2e3),this.Pa(Ed,{}),this.Dc=!0,this.qj=this.M.isMuted(),this.Xm=0}function Ms(){qs.call(this,{evt:"ad_init"}),this.kh=!0}function Ns(){qs.call(this,{evt:"ad_dlv"})}function Rs(){this.hm||(qs.call(this,{dur:2,dur_d:zs.call(this,2),evt:"ad_view",skippable:this.M.isSkippable()?1:0}),this.hm=!0)}function ks(t){var i=Math.floor(this.M.getCurrentTime()||this.Ym);if("finished"===t.data.adStage)qs.call(this,{dur:i,dur_d:zs.call(this,i),evt:"ad_comp"});else{var n=25;switch(t.data.adStage){case"q2":n=50;break;case"q3":n=75}qs.call(this,{dur:i,dur_d:zs.call(this,i),evt:"ad_prog",q:n})}}function Ls(){var t=Math.floor(this.M.getCurrentTime()||this.Ym);qs.call(this,{dur:t,dur_d:zs.call(this,t),evt:"ad_skip"})}function Ds(t){var i=this,n=t.data.vastError;this.Dc&&!n?(this.Dc=!1,this.Pa(hd,null,{}),clearTimeout(this.Or)):(this.Pa(Ed,{}),null!==this.Id&&void 0!==this.Id?Cs.call(this,n,this.Id):this.Ze.Ma.then((function(t){Cs.call(i,n,t)}))),this.Gf=!1}function Cs(t,i){var n={estring:t&&t.description||"",evt:"ad_err"};(t=i?xu.ea:t&&t.ea)||(t=this.kh?ch.ea:sh.ea),n.a_dlv_err=t,this.Pa(cd,null,n),this.pd&&(this.Xh(),qs.call(this,n))}function Ps(t){"Overlay"===t.data.Ef&&"close"===t.data.action&&this.Pa(Sd,null,t.data||{})}function xs(t){var i=this;t.data.raw.forEach((function(t){var n=Object.keys(t.Pf)[0];i.Pa(gd,{track:ds({},t,{format:n,language:t.lang,url:t.Pf[n]})},null)}))}function Us(){this.Pa(wd)}function Vs(t){(t.data.muted&&!1===this.qj||!1===t.data.muted&&this.qj)&&this.Pa(od,null,{muteState:t.data.muted?"muted":"unmuted"}),this.qj=t.data.muted}function Bs(t){var i=t&&t.data&&t.data.currentTime||this.M.getCurrentTime()||0;this.Pa(vd,i||0,t.data||{}),this.Ym=i,2<=i&&(Rs.call(this),this.Jr||(this.Pa(md,null,{}),this.Jr=!0))}function Fs(){this.Pa(Ed,{})}function zs(t){var i=t-this.Xm;return this.Xm=t,i}function Gs(t){t&&this.qe.sy(t.fb(),this.M.sk())}function Hs(){this.kh=!1,qs.call(this,{evt:"ad_iframe_load"})}function Ys(){qs.call(this,{evt:"ad_iframe_loaded"})}function qs(t,i,n,e){t=this.qa.tq(t,i,n,e),this.Ug.dispatchEvent(_d,t)}function Ws(){var t=this;this.oj.forEach((function(i){t.U.dispatchEvent(i.event,i.Pw)})),this.oj=[]}function Qs(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function $s(t){return{assets:[{mediaInfo:t.mediaInfo,usageType:"VIDEO_PRIMARY"}],callToAction:t.callToAction||"",clickUrl:t.clickUrl,disableAdCountdown:!!t.disableAdCountdown,headline:t.headline||"",source:t.source||""}}function Xs(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function Zs(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=[];return t.slots&&t.slots.forEach((function(t){t.hasAds&&i.push({adBreakItemId:w(),adPluginMimeType:"adplugin/vrm",customInfo:{slot:t},duration:30,instream:!1,resolvedState:"notResolved",source:{streams:[{url:"dummy.mp4"}]},type:"Bumper"===t.type?"bumper":"ad"})})),i}function Js(t){return Object(Oo.n)(t,[0,"customInfo","slot","aeg",0],[]).some((function(t){return t.isNative()}))}function Ks(t){var i=this;return new Eo.a((function(n,e){i.M.aq(t.customInfo.slot.aeg,(function(){(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).error?e():n(t)}),t.customInfo.slot.type)}))}function to(){this.Gi=this.pd=this.fn=!1,this.ci(!1),this.xf=null,this.M.Aq()}function io(t){var i=this;return to.call(this),this.Ug.Yw(),Ks.call(this,t).then((function(){i.pd=!0,i.xf=null,i.U.dispatchEvent(Dd.yl,t)}),(function(){i.pd=!1,i.Gi=!0,i.xf=null}))}function no(t){this.fn=!0,this.qe.Zq(t.customInfo.slot,t.isRepeated)}function eo(t){if(t.getType()===Bd.a.Ml)Fd.error("Error while interacting with IFRAME",t.getData())}function ro(t,i){if(Array.isArray(t)){var n=Object(Oo.f)(t);(t=n.pop()).da=n}return(n=t.da)||((n=(n=/\(((?:\s*\w*\s*,?)+)\)/g).exec(t.toString()))&&(n=n[1].replace(/\s+/g,"")),n=n&&n.split(",")||[]),t={yu:n,Mk:this,bx:t},i?new Hd(t):new Gd(t)}function so(t){var i;return t.forEach((function(t){var n=t.customInfo&&t.customInfo.slot&&t.customInfo.slot.type||null;n&&n.toLowerCase()===Rd.d&&!i&&(i=t)})),i||t[0]}function oo(t){this.Za.ci(t),this.Yb.ci(t),this.Bb=t}function uo(t){oo.call(this,!1),this.Za.Dc?this.M.sx():this.Yb.resume(t)}function ho(t,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e=t&&t.customInfo&&t.customInfo.slot&&t.customInfo.slot.type;n.evt=i,e&&(n.pos=e.toLowerCase()),this.Za.wx(n)}function ao(t){var i=t.YVAP,n=t.url||t.vastXml;return this.N.Sx(!!i||!!n),i?this.O.Ya(Nd).rl(t):n?this.O.Ya(wo).rl(t):t}n.r(i);var co={};n.r(co),n.d(co,"ITEM_LOADED",(function(){return sd})),n.d(co,"MUTE_CHANGED",(function(){return od})),n.d(co,"PAUSED",(function(){return ud})),n.d(co,"PLAY_COMPLETE",(function(){return hd})),n.d(co,"PLAY_REQUESTED",(function(){return ad})),n.d(co,"PLAYBACK_ERROR",(function(){return cd})),n.d(co,"PLAYING",(function(){return fd})),n.d(co,"SKIPPED",(function(){return ld})),n.d(co,"TIME_UPDATE",(function(){return vd})),n.d(co,"VOLUME_CHANGED",(function(){return dd})),n.d(co,"AD_BREAKS_AVAILABLE",(function(){return pd})),n.d(co,"AD_BREAK_PLAYING",(function(){return md})),n.d(co,"RESOLVE_ERROR",(function(){return bd})),n.d(co,"RESOLVED",(function(){return yd})),n.d(co,"AD_SUBTITLES_FOUND",(function(){return gd})),n.d(co,"AD_SUBTITLES_NOT_FOUND",(function(){return wd})),n.d(co,"METRICS",(function(){return _d})),n.d(co,"DIAGNOSTIC",(function(){return Ed})),n.d(co,"NONLINEAR_AD_RENDERED",(function(){return Od})),n.d(co,"NONLINEAR_AD_CLICKED",(function(){return Ad})),n.d(co,"NONLINEAR_AD_DISMISSED",(function(){return Sd})),_.xi="TOP",_.Vl="RIGHT",_.Tl="BOTTOM",_.Ul="LEFT",_.wi="FULL",_.vi="CUSTOM-CENTER";var fo,lo,vo,po,mo,bo,yo,go,wo=function(){function t(){}return t.prototype.rl=function(t){if(!t.url&&!t.vastXml)return t;var i=t.type||"Preroll",n={bcid:"5afc769f7239855a15fcee15",pid:"5afc75ea3a04293dad9f1a1f",schema:{pods:[{calculated:!0,slots:[{adxResult:"SHOW_ADS",aeg:[[{adEngineType:"VAST",adTypes:[i],isNative:!!t.adOnly,name:"Empty - Preroll",position:t.position||_.wi,url:t.url,vastXml:t.vastXml,vendorName:t.vendor||"simplified_ad_config"}]],rids:["5ade359bc673db38c7f14e5e"],slot:"AVAIL",type:i.toUpperCase()}],type:i.toUpperCase()}]},slot:"AVAIL",version:"2",vid:"5ba51c50007d0c73e2b8eddd"};return 0<(t=+(t.offsetTime||0))&&("midroll"===i.toLowerCase()?n.schema.pods[0].time=t:"overlay"===i.toLowerCase()&&(n.schema.pods[0].slots[0].aeg[0][0].delay=t)),n},t}(),_o=n(6),Eo=n(12),Oo=n(1),Ao=n(11),So=n(66),To=n(8),jo=new(function(){function t(){this.Uw=[],this.jx=[]}var i=t.prototype;return i.ww=function(t){0===To.a.xp()&&this.Uw.push({ts:+new Date,url:t})},i.xw=function(t){0===To.a.xp()&&this.jx.push({ts:+new Date,url:t})},t}()),Io=function(){function t(){}var i=t.prototype;return i.check=function(t){return S.call(this,t)},i.reset=function(){this.Ma=null},i.Pv=function(){return this.Ma},t}(),Mo=n(18),No=n(0),Ro=n.n(No),ko=(lo=_o.a.gb().document,bo=null,yo=null,go=null,["","webkit","moz","ms","o"].forEach((function(t){vo=t?"".concat(t,"VisibilityState"):"visibilityState",po=t?"".concat(t,"Hidden"):"hidden",mo="".concat(t,"visibilitychange"),bo||void 0===lo[vo]||(bo=vo),yo||void 0===lo[po]||(yo=po),go||void 0===lo[po]||(go=mo)})),{hidden:yo,visibilityState:bo,eD:go}),Lo=function(){function t(){}return t.hasFocus=function(){return!(!T(_o.a.gb())&&!T(_o.a.gb().top))},t.isVisible=function(){return!!t.hasFocus()||!1===_o.a.gb().document[ko.hidden]||"visible"===_o.a.gb().document[ko.visibilityState]},t}(),Do=function(){function t(){this.ne=[],this.Vi=[],this.Cb=!1}var i=t.prototype;return i.add=function(t){var i=this;return new Eo.a((function(n){i.ne.push((function(){var e=t();n(i.ne[i.ne.length-1]),e&&e.then?e.then(j.bind(i)):(void 0===e||e)&&j.call(i)})),i.Cb||j.call(i)}))},i.Qz=function(){var t=this;return new Eo.a((function(i){t.ne.length?t.Vi.push(i):i()}))},i.next=function(){j.call(this)},i.empty=function(){this.ne=[],j.call(this)},t}(),Co=function(){function t(i){this.N=i.config,this.hs=i.debugInfo,this.Ra=i.urls,this.ls=this.N.Uv(),fo=t.cx}var i=t.prototype;return i.Ha=function(t,i){i=i||{},this.N.Zp()&&(i.itg="tbv"),this.N.rj||this.Sc(I.call(this,t,i))},i.Sc=function(t){if(this.ls&&"string"==typeof t&&-1!==t.indexOf("//")){_o.a.vc()&&(t=Ao.a.hl(t,"http://","https://")),0===t.indexOf("//")&&0!==window.location.protocol.indexOf("http")&&(t="https:".concat(t)),t=t.replace("[APID]",this.N.Xd.utid);var i=document.createElement("img");i.src=t,fo.add((function(){return!1}));var n=fo.next.bind(fo),e=setTimeout((function(){n(),i.onload=null,i.onerror=null}),1e3),r=function(){clearTimeout(e),n()};i.onload=r,i.onerror=r,this.hs.ww(t)}},t}();Co.da=["config","debugInfo","urls"],Co.cx=new Do;var Po=function(t){function i(i){var n=t.call(this,i)||this;return n.T=i.environment,n.Db=i.smartViewability,n.Xg=i.moatViewability,n.Fc=i.errorTracker,n.ac=i.hostWindowParamsObtainer,n}Ro()(i,t);var n=i.prototype;return n.Sa=function(t,i,n){return Object.keys(t).forEach((function(i){return n[i]=t[i]})),Object.keys(i).forEach((function(t){if(null!==i[t]){var e=isNaN(i[t]);"number"==typeof i[t]&&e||(n[t]=i[t])}})),n},n.sg=function(t){this.Sa({"p.vw.active":+Lo.isVisible(),"p.vw.sound":Math.round(100*this.T.getVolume()),vwa:this.Db.Ba()},{vwm:this.Xg.Ba()},t)},n.Zk=function(t){var i=window.s_265||{};i={spaceid:this.ac.Xc(),ss:i.channel||""},this.Sa(i,{},t)},i}(Co);Po.da="config debugInfo urls environment smartViewability moatViewability errorTracker hostWindowParamsObtainer".split(" ");var xo=function(t){function i(i){var n=t.call(this,i)||this;return n.$o=[],n.O=i.injector,n.ac=i.hostWindowParamsObtainer,n}Ro()(i,t);var n=i.prototype;return n.ZC=function(t){var i=M.call(this,"ResourceLoaded"),n=this.N.pa||{};i.c1="ResourceLoaded",i.c2=t,i.pv=n.jsVersion,i.pt=this.N.Rf(),this.Ha("action.gif",i)},n.click=function(t,i){var n={};void 0!==t&&(n.category=t),void 0!==i&&(n.clickName=i),this.Ha("click.gif",n)},n.display=function(t){this.O.ag("adBlockerSniffer")?this.O.S("adBlockerSniffer").check().then(N.bind(this,t)):N.call(this,t)},n.action=function(t,i,n,e,r,s,o){(t=M.call(this,t)).ct=n,i&&(t.at=i),e&&(t.adId=e.pz,t.rid=e.rid,t.txid=e.$C),r&&(t.externalId=r),s&&(t.c1=s.c1||s.lz,t.c2=s.c2||s.gz,t.c3=s.c3||s.fz),o&&(t.PollId=o.rC,t.AnswerId=o.Az),this.Ha("action.gif",t)},n.Uz=function(t,i){this.Ha("ad-fallback.gif",{mz:t,Cz:i.toLowerCase()})},n.SC=function(t){this.$o.push(t)},n.yC=function(){this.action("LoadExtra",null,null,null,null,{c1:this.$o.join(",")})},n.BC=function(t){this.action("videoSkipped",null,null,null,null,{c1:t})},i}(Po);xo.da="config debugInfo urls environment smartViewability moatViewability errorTracker injector hostWindowParamsObtainer".split(" ");var Uo=n(4),Vo=To.a.Na("Common"),Bo=document.createElement("video"),Fo={};document.createElement("video");var zo,Go,Ho=function(t){function i(i){var n=t.call(this,i)||this;return n.T=i.environment,n}Ro()(i,t);var n=i.prototype;return n.qg=function(t,i,n,e,r,s){var o=this,u=Object(Oo.A)(n)||"",h={dt:u.substring(0,3e3),ec:e||"",edt:n&&n.edt?n.edt:null,et:t,itg:this.T.Pg,sact:this.N.zd,st:i};t={code:e,details:n=Array.isArray(n)&&n[0].match(/([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]/g)?Object(Oo.A)(n.slice(1)):u,TC:i,type:t},Object(Oo.A)(t)!==Object(Oo.A)(Go)?(this.Ha("error.gif",h),zo=void 0):(Object(Oo.s)(zo)||(zo=function(t,i,n){var e;return function(){var r=this,s=arguments,o=n&&!e;clearTimeout(e),e=setTimeout((function(){e=null,n||t.apply(r,s)}),i),o&&t.apply(r,s)}}((function(){o.Ha("error.gif",h)}),r||2e3,s||!1)),zo()),Go=Object(Oo.g)(t,Go)},n.YC=function(t,i,n){t={params:t},Object(Oo.g)(i,t),this.qg("no_params",void 0,t,void 0,void 0,n)},i}(Co);Ho.da=["environment","config","debugInfo","urls"];var Yo=document,qo=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror".split(" "),"webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror".split(" "),"webkitRequestFullScreen webkitCancelFullScreen webkitCurrentFullScreenElement webkitCancelFullScreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError".split(" ")],Wo=qo.find((function(t){return t[1]in Yo}))||[];Wo.forEach((function(t,i){return Wo[qo[0][i]]=t}));var Qo=function(t){function i(i){var n=t.call(this,i)||this;return n.O=i.injector,n}Ro()(i,t);var n=i.prototype;return n.Cy=function(t){var i=this.T.Dk()||{};i=Math.min(3*i.videoLength,i.currentPlayTime||i.currentTime||0),this.Sa({t:0<i?Math.floor(i):0},{},t)},n.eu=function(t){if(this.O.ag("bufferedCalculator")){var i=this.O.S("bufferedCalculator"),n=this.O.S("bitrateTracker");i=i.pA(void 0),n=n.mA(void 0),this.Sa({},{bft:i,bit:n},t)}},n.By=function(t,i){i=i||this.T.kb||{};var n={cvt:Math.floor(void 0!==i.currentTime?i.currentTime:this.T.Ih()),fs:L()?+D():0,seq:i.wb,vid:this.T.df||i.id||"",vpt:i.fD},e={vcdn:Uo.a.Dh(i&&i.videoUrls&&i.videoUrls.length&&i.videoUrls[0])};i.raw&&(i.raw.mpid&&(n.mpid=i.raw.mpid),i.raw.vcid&&(n.vcid=i.raw.vcid)),this.Sa(n,e,t)},n.Mq=function(t){var i=this.T.Gh()||{};this.Sa({h:i.height,w:i.width},{},t)},n.Nq=function(t){this.Sa({},{csid:null},t)},i}(Po);Qo.da="config debugInfo urls environment smartViewability moatViewability errorTracker injector hostWindowParamsObtainer".split(" ");var $o=function(t){function i(i){var n=t.call(this,i)||this;return n.T=i.environment,n.Ag=i.actionTracker,n.Jj=[],n}Ro()(i,t);var n=i.prototype;return n.Yk=function(){this.Jj=[]},n.ry=function(t){var i={};this.Mq(i),this.Nq(i),C.call(this,i,t),P.call(this,"video-play.gif",t,i)},n.sl=function(t,i){t={q:t.progress},C.call(this,t,i),this.Ha("video-quartile.gif",t)},n.qy=function(t,i){t={d:t.progress},C.call(this,t,i),this.Ha("video-decile.gif",t)},n.my=function(t){var i={};C.call(this,i,t),P.call(this,"video-3sec.gif",t,i)},n.Wq=function(t){var i={pct:this.T.Dk().currentPercent||0};this.Cy(i),C.call(this,i,t),P.call(this,"video-time.gif",t,i)},n.py=function(){var t={},i=this.T.QB()?this.T.Ih():null,n=this.T.Ri;this.Mq(t),this.Nq(t),C.call(this,t,void 0),this.Ag.action("AutoPause",i,n)},i}(Qo);$o.da="actionTracker config debugInfo environment errorTracker injector moatViewability smartViewability urls hostWindowParamsObtainer".split(" ");var Xo=function(){function t(){this.Cb=!1}var i=t.prototype;return i.jl=function(t,i){this.Bj=0,this.ut=i,this.Ni=t,this.Cb=!1,this.start()},i.start=function(){this.resume()},i.stop=function(){this.pause()},i.pause=function(){this.Cb&&(this.Cb=!1,this.Bj+=(new Date).getTime()-this.Bd,clearTimeout(this.Mn))},i.resume=function(){!this.Cb&&this.Ni&&(this.Cb=!0,this.Bd=(new Date).getTime(),this.Mn=setTimeout(this.Ni,this.fx()))},i.XB=function(){return this.Cb||!1},i.fx=function(){return Math.max(this.ut-this.Du(),0)},i.Du=function(){return this.Bj+(this.Cb?(new Date).getTime()-this.Bd:0)},i.ek=function(){this.Cb=!1,clearTimeout(this.Mn),this.Ni=null},t}(),Zo=function(){function t(t){this.Wi=t}var i=t.prototype;return i.mg=function(t){this.Wi=t},i.Qv=function(t){return Math.floor(t/(this.Wi/4))},i.qv=function(t){return Math.floor(t/(this.Wi/10))},t}(),Jo=function(){function t(t){this.Pc=t.videoTracker,this.Yi=t.environment,this.Pj=new Zo,this.se=new Xo}var i=t.prototype;return i.KC=function(t){this.ah=t},i.mg=function(t){this.Pj.mg(t)},i.Rh=function(t){0<t&&(U.call(this,t),x.call(this,t))},i.Lw=function(){this.jh=!0,this.ce=this.ee=0,this.ih=this.Yi.kb,this.Pc.ry(this.ih),this.se.jl(F.bind(this),3e3)},i.Kw=function(){this.jh&&(this.ee=4,this.ce=10,V.call(this),B.call(this),this.se.pause(),this.Pc.Wq(this.Yi.kb),this.jh=!1)},i.jC=function(){this.Pc.py()},i.Yk=function(){this.Pc.Yk()},i.mC=function(){this.se.resume()},i.lC=function(){this.se.pause()},i.kC=function(){this.jh&&(this.se.pause(),this.Pc.Wq(this.Yi.kb),this.jh=!1)},t}();Jo.da=["videoTracker","environment"];var Ko=n(38),tu=function(){function t(t){this.xs=t.hostWindowProvider}return t.prototype.Xc=function(){return z.call(this,"rapidConfig","spaceid")||(Oo.c.Pk()?793604935:793604934)},t}();tu.da=["hostWindowProvider"];var iu=function(){function t(t){this.window=t}var i=t.prototype;return i.gb=function(){return this.window},i.DA=function(){return this.window.document},t}(),nu=n(15),eu=n.n(nu),ru=function(){function t(t){this.R=t.viewabilitySubject}var i=t.prototype;return i.kc=function(t){this.R=t},i.isVisible=function(){return Lo.isVisible()},i.Ba=function(){},i.Wf=function(){var t=this.Ba();return this.R&&-1!==t?!this.isVisible()||50>t?0:1:-1},t}();ru.da=["viewabilitySubject"];var su=function(t){function i(i){if((i=t.call(this,i)||this).Sj=-1,void 0===window.IntersectionObserver)return eu()(i);var n=eu()(i);n.Og=So.a.setTimeout(H.bind(n),100);for(var e=window.IntersectionObserver,r=G.bind(n),s=[],o=0;100>o;o+=5)s.push(o/100);return s.push(1),n.Yg=new e(r,{root:null,threshold:s}),n.Yg.observe(n.R),i}Ro()(i,t);var n=i.prototype;return n.kc=function(t){this.Sj=-1,this.Yg&&(this.Yg.unobserve(this.R),this.R=t,this.Yg.observe(this.R))},n.isVisible=function(){return 0<this.Ba()},n.Ba=function(){return Lo.isVisible()?this.Sj:0},i}(ru);su.da=["viewabilitySubject"];var ou,uu=function(){function t(){var t=this;this.Ma=new Eo.a((function(i,n){t.resolve=i,t.reject=n}))}return t.prototype.Pv=function(){return this.Ma},t}(),hu=function(t){function i(i){var n=t.call(this,i)||this;return n.lb=i.dom,i=i.config,n.ym=!!i.Sb("disable_3p")||!!i.Sb("disable_moat")||!!i.Nv(),n.ym||(ou||(ou=Y.call(eu()(n))),n.kc(n.R)),n}Ro()(i,t);var n=i.prototype;return n.kc=function(t){var i=this;if(!this.ym){if(this.Af){if(this.Ig===t)return;this.Af.destroy(),this.Af=null}this.Ig=t,ou.then((function(n){n.startTracking(t,{ready:q.bind(i,t)})}))}},n.Ba=function(){if(!this.Af||!this.Ig||3>this.Ig.offsetHeight)return-1;var t=this.Af.getPercentViewable();return isNaN(t)||null===t?-1:Math.min(Math.round(t),100)},n.Wf=function(){var t=this.Ba();return 0>t||100<t?-1:50>t?0:1},i}(ru);hu.da=["viewabilitySubject","dom","config"];var au=function(){function t(t){this.Db=t.smartViewability,this.N=t.config,this.T=t.environment,this.ac=t.hostWindowParamsObtainer}var i=t.prototype;return i.AA=function(){var t=this.Ip("Preroll");return Object.keys(t).forEach((function(i){t["ad.".concat(i)]=t[i],delete t[i]})),t["ad.m.ssai"]=1,t["ad.ps"]="vast_only",t.ad="vrm",t.v=2,t.bcid=this.N.$d,t.pid=this.N.yd,t.bid=this.N.tk(),t},i.Ip=function(t){var i=this.T.kb,n={};if(i&&i.id){n.vid=i.id,n.pt="html5",n.at=t?t.toLowerCase():"";var e=this.N.Mc;Object.keys(e).forEach((function(t){0===t.indexOf("m.vrm")&&(n[t]=e[t])}))}return n["p.vw.sound"]=Math.round(100*this.T.getVolume()),n.autoplayInit=this.N.$f()?1:0,n.space_id||(n.space_id=n.spaceid||this.ac.Xc()),Object(Oo.g)(W.call(this),n)},i.iA=function(t){var i=this.T.kb,n={};return i&&(n.vid=i.id,(i=i.metadata||{}).duration&&(n.t=i.duration/1e3)),n.at=t?t.toLowerCase():"",Object(Oo.g)(W.call(this),n)},t}();au.da=["smartViewability","config","environment","hostWindowParamsObtainer"];var cu=n(16),fu=n(10),lu=n.n(fu),vu={er:"aboveVisibleArea",kr:"belowVisibleArea",jd:"hidden",ld:"inVisibleArea",rr:"leftToVisibleArea",wr:"rightToVisibleArea",yb:"NA"},du={gr:1,ti:0},pu={qr:1,Rl:0,yb:-1},mu={Ol:3,Ql:2,md:1},bu={ui:1,zg:0,yb:-1},yu={Py:du,Qy:pu,Ry:mu,Zy:vu,bz:bu,yr:{nr:function(){return this.pr++},pr:1,URL:"//redir.adap.tv/redir/client/VPixel.swf"},Ww:[],rg:{},JB:{},vv:function(t){for(var i=t,n=0,e=0,r=0;i&&!isNaN(i.offsetLeft)&&!isNaN(i.offsetTop);)window.getComputedStyle&&(r=window.getComputedStyle(i,null)),n+=i.offsetLeft-i.scrollLeft+(r?parseInt(r.getPropertyValue("border-left-width"),10):0),e+=i.offsetTop-i.scrollTop+(r?parseInt(r.getPropertyValue("border-top-width"),10):0),i=i.offsetParent;return t.dz=n,t.ez=e,{x:n,y:e}},De:function(t,i){var n=document.defaultView||document.parentWindow;try{n=t.ownerDocument.defaultView||t.ownerDocument.parentWindow}catch(t){}return t.currentStyle?t.currentStyle[i]:n&&n.getComputedStyle&&n.getComputedStyle(t,"")?n.getComputedStyle(t,"")[i]:t.style?t.style[i]:""},Hd:function(t){var i={height:0,ba:0,X:0,width:0};if(t){i.width=t.offsetWidth,i.height=t.offsetHeight;var n=!1;try{var e=t.getBoundingClientRect();i.ba=Math.round(e.left),i.X=Math.round(e.top),n=!0}catch(t){}if(!n)try{var r=this.vv(t);i.ba=r.x,i.X=r.y}catch(t){}}return i},dd:function(t,i){var n=0,e=t.length+t.offset,r=i.length+i.offset;return e<i.offset||t.offset>r?{length:0,offset:-1/0}:(t.offset>=i.offset&&e<=r?n=t.length:t.offset<=i.offset&&e>=r?n=i.length:t.offset<=i.offset?n=Math.abs(e-i.offset):t.offset>i.offset&&(n=Math.abs(r-t.offset)),{length:n,offset:Math.max(t.offset,i.offset)})},Nk:function(t,i){var n=this.dk(t);if((i=i||this.Ge(t))===mu.md)return!0;if(i===mu.Ql)return this.dk(t);try{var e=t.ownerDocument.defaultView||t.ownerDocument.parentWindow}catch(t){}try{var r=this.up(e)}catch(t){return!0}for(t=0;t<r.length&&!n;t++)n=r[t],n=this.dk(n);return n},dk:function(t){function i(t){return t&&"string"==typeof t.id&&-1<t.id.indexOf("player_googima")}function n(t){var n;if(i(t))return!0;var e=this.Ck(t);for(n=0;n<e.length;++n)if((t=e[n])&&i(t.node))return!0;return!1}var e=!1,r=t;for(t=!this.De(t,"visibility")&&!n.call(this,t);r&&!e&&(e="hidden"===this.De(r,"visibility")||"none"===this.De(r,"display")||this.kw(r),n.call(this,r)&&(e=!1),e=t||e,r!==r.ownerDocument.body);)r=r.parentNode;return e},Ck:function(t){var i=[],n=t.parentNode;try{for(;n&&n!==n.ownerDocument.body;)1===n.nodeType&&(i.push(this.bi(n)),n=n.parentNode)}catch(t){}for(0===i.length?n=t:(n=i[0],t=i[0]);n;)null!=(n=n.nextSibling)&&1===n.nodeType&&i.push(this.bi(n));for(;t;)null!=(t=t.previousSibling)&&1===t.nodeType&&i.push(this.bi(t));return i},ly:function(t,i,n){var e,r=null,s=this.dd({length:t.width,offset:t.ba},{length:i.width,offset:i.ba}),o=this.dd({length:t.height,offset:t.X},{length:i.height,offset:i.X});if(0<s&&0<o){var u=[{x:s.offset,y:o.offset},{x:s.offset+s.length,y:o.offset},{x:s.offset,y:o.offset+o.length},{x:s.offset+s.length,y:o.offset+o.length},{x:s.offset+Math.floor(s.length/2),y:o.offset+Math.floor(o.length/2)}];for(e=0;5>e;e++){var h={x:Math.random()*s.length+s.offset,y:Math.random()*o.length+o.offset};u.push(h)}for(e=0;e<u.length;e++)if((h=this.So(u[e].x,u[e].y,n))===t.node||h===i.node){r=h;break}}return r},So:function(t,i,n){return(n=n||window).document.elementFromPoint(t,i)},ew:function(t,i,n,e){var r=!0,s=this.Hd(i),o=this.dd({length:t.width,offset:t.ba},{length:s.width,offset:s.ba+n.ba}),u=this.dd({length:t.height,offset:t.X},{length:s.height,offset:s.X+n.X}),h=o.length*u.length/(s.width*s.height);if(0===h)return{hk:!1};var a=this.So(Math.floor(o.length/2)+o.offset,Math.floor(u.length/2)+u.offset,e);return(a===i||"ADAPTV_HTML5_IFRAME"===a.id||"IFRAME"===a.nodeName||a!==t.node&&(t.ba+t.width)*(t.X+t.height)==(s.ba+n.ba+s.width)*(s.X+n.X+s.height))&&(r=!1),this.ly({height:t.height,ba:t.ba,node:t.node,X:t.X,width:t.width},{height:s.height,ba:s.ba+n.ba,node:i,X:s.X+n.X,width:s.width},e)===i&&(r=!1),{hk:r,height:u.length,ba:o.offset,pq:h,X:u.offset,width:o.length}},Bo:function(t,i,n,e){var r;for(r=0;r<t.length;r++)if(1===t[r].node.nodeType&&this.Co(t[r],i,n,[],t,e))return!0;return!1},Co:function(t,i,n,e,r,s){var o=!1,u=t.node;if((t=this.ew(t,i,n,s)).hk&&.5<=t.pq)return!0;if(t.hk&&.5>t.pq)t.node=u,e.push(t);else if(u&&u.children&&1<=u.children.length)for(t=u.children,u=0;u<t.length;u++)if(1===t[u].nodeType){var h=this.bi(t[u]);o=o||this.Co(h,i,n,e,r,s)}return o||this.Dw(e,i,n)},bi:function(t){var i=this.Hd(t);return i.node=t,i},Dw:function(t,i,n){i=this.Hd(i);var e,r=this.Xq(t),s=0,o=0;if(2>t.length)return!1;for(e=0;e<t.length;e++)s+=t[e].width*t[e].height;for(e=0;e<r.length;e++){var u=this.dd({length:r[e].sh.width,offset:r[e].sh.ba},{length:r[e].th.width,offset:r[e].th.ba});t=this.dd({length:r[e].sh.height,offset:r[e].sh.X},{length:r[e].th.height,offset:r[e].th.X}),u=this.dd({length:u.length,offset:u.offset},{length:i.width,offset:i.ba+n.ba}),t=this.dd({length:t.length,offset:t.offset},{length:i.height,offset:i.X+n.X}),o+=u.length*t.length}return.5<=(s-o)/(i.width*i.height)},Xq:function(t,i){var n;for(i=i||[],n=1;2<=t.length&&n<t.length;n++)t[0].node!==t[n].node&&i.push({sh:t[0],th:t[n]});return 2>=t.length?i:this.Xq(t.slice(1),i)},UB:function(t){var i,n={ba:0,X:0};try{var e=this.up()}catch(t){e=[]}var r=this.Ck(t),s=window,o=this.Bo(r,t,n,s);for(i=0;i<e.length&&!o;i++){s=s.parent;var u=this.Hd(e[i]);for(n.ba+=u.ba,n.X+=u.X,u=0;u<r.length;u++)r[u].ba+=n.ba,r[u].X+=n.X;u=this.Ck(e[i]),r=r.concat(u),o=o||this.Bo(r,t,n,s)}return o},kw:function(t){var i=t.parentNode;return!(!i||"BODY"===t.tagName||"visible"===this.De(i,"overflow")&&"visible"===this.De(i,"overflow-x")&&"visible"===this.De(i,"overflow-y"))&&(0>t.offsetLeft||0>t.offsetTop||!(1<i.offsetWidth&&1<i.offsetHeight))},up:function(t){var i=[];for(t=t||window;t!==window.top;)i.push(t.frameElement),t=t.parent;return i},Ge:function(t){t=t||document.body;try{return window.top.location.href?t.ownerDocument.defaultView.frameElement?mu.Ol:mu.Ql:mu.md}catch(t){return mu.md}},Jp:function(t){var i=t.document,n=i.compatMode&&"BackCompat"!==i.compatMode?i.documentElement:i.body,e={width:0,height:0,ba:0,X:0};return void 0!==t.innerWidth?(e.width=t.innerWidth,e.height=t.innerHeight):t.document.documentElement&&(t.document.documentElement.clientWidth||t.document.documentElement.clientHeight)?(e.width=t.document.documentElement.clientWidth,e.height=t.document.documentElement.clientHeight):document.body.offsetWidth&&document.body.offsetHeight&&(e.width=t.document.body.offsetWidth,e.height=t.document.body.offsetHeight),e.ba=i.all?n.scrollLeft:t.pageXOffset,e.X=i.all?n.scrollTop:t.pageYOffset,e},Ah:function(t,i){return 0<i.width&&0<i.height&&0<t.width&&0<t.height?t.X+t.height<=i.X?vu.er:t.X>=i.height+i.X?vu.kr:t.ba+t.width<=i.ba?vu.rr:t.ba>=i.width+i.ba?vu.wr:vu.ld:vu.jd},Gk:function(t,i){var n={ba:0,X:0,width:0,height:0},e=i.ba-t.ba;return n.ba=Math.max(e,0),n.width=Math.max(0,Math.min(Math.min(i.width,t.width),Math.min(i.width+e,t.width-e))),e=i.X-t.X,n.X=Math.max(e,0),n.height=Math.max(0,Math.min(Math.min(i.height,t.height),Math.min(i.height+e,t.height-e))),n},xv:function(t,i){return t=Math.min(i.width-t.ba,t.width+t.ba)/t.width*100,t=Math.round(100*Math.min(Math.max(0,t),100))/100,Math.round(t)},DB:function(t,i){return t=Math.min(i.height-t.X,t.height+t.X)/t.height*100,t=Math.round(100*Math.min(Math.max(0,t),100))/100,Math.round(t)},Bp:function(t,i,n){var e=yu.Ge(t),r=0,s=vu.yb;return e!==mu.md&&(this.Nk(t,e)?s=vu.jd:(t={ba:0,X:0,width:n.width,height:n.height},(s=this.Ah(i,t))===vu.ld&&(r=this.xv(i,t)))),{Jb:r,position:s,xb:r}},Jv:function(t,i,n,e){var r={Jb:0,position:vu.yb,xb:0},s=yu.Ge(t);if(s===mu.md)return r;if(this.Nk(t,s)&&(r.position=vu.jd),r.position!==vu.jd&&(t=n[n.length-1],s={height:e.height,ba:0,X:0,width:e.width},e=this.Ah(t,s),r.position=e,e===vu.ld)){for(t=this.Gk(t,s),s=n.length-1;0<s&&(e=this.Ah(n[s-1],t))===vu.ld;)t=this.Gk(n[s-1],t),s--;e===vu.ld&&this.Ah(i,t)===vu.ld?(n=(t=this.Gk(i,t)).width/i.width*100,n=Math.round(100*n)/100,n=Math.round(n),r.Jb=n,n=t.height/i.height*100,n=Math.round(100*n)/100,n=Math.round(n),r.xb=n):r.position=vu.jd}return r},kp:function(t){var i=window,n={Gz:"NA",la:{Jb:0,height:0,ba:0,position:vu.yb,X:0,xb:0,width:0},hostname:window.location.hostname,ob:{No:!1,height:0,ba:0,He:0,Qw:"",X:0,ky:"",width:0},Yf:!1,Ac:{height:0,ba:0,X:0,width:0}},e=this.Hd(t);if(n.la.ba=e.ba,n.la.X=e.X,n.la.width=e.width,n.la.height=e.height,(e=yu.Ge(t))===mu.md)return n.Yf=!0,n.ob.No=!0,n.ob.He=-1,n.la.Jb=100,n.la.xb=100,n;e===mu.Ol&&(n.Yf=!0,n.ob.ky=window.top.location.href),this.Nk(t,e)&&(n.la.position=vu.jd);try{i=t.ownerDocument.defaultView||i}catch(t){}if(n.Ac=this.Jp(i),(e=this.Bp(t,n.la,n.Ac)).position!==vu.ld)return n.la.position=e.position,n.la.Jb=e.Jb,n.la.xb=e.xb,n.la.width=n.la.width<n.Ac.width?n.la.width:n.Ac.width,n.la.height=n.la.height<n.Ac.height?n.la.height:n.Ac.height,n;try{if(n.Yf){window.parent&&window.parent.location&&(n.ob.Qw=window.parent.location.href),n.Ac=this.Jp(window.top);for(var r=[];i!==window.top;){var s=this.Hd(i.frameElement);0===n.ob.He&&(n.ob.width=s.width,n.ob.height=s.height),n.ob.ba=s.ba,n.ob.X=s.X,r[n.ob.He]=s,n.ob.He+=1,i=i.parent}e=this.Jv(t,n.la,r,n.Ac),n.la.position=e.position,n.la.Jb=e.Jb,n.la.xb=e.xb}}catch(t){n.ob.He=-1}return n.Yf||(e=this.Bp(t,n.la,n.Ac),n.la.position=e.position,n.la.Jb=e.Jb,n.la.xb=e.xb),n},Kv:function(t,i){var n=null;if(this.rg[t]&&this.rg[t][t]&&this.rg[t].parentNode)return this.rg[t];if(i&&document[i]&&document[i][t])n=document[i];else if(i&&window[i]&&window[i][t])n=window[i];else{var e,r=document.getElementsByTagName("object"),s=document.getElementsByTagName("embed"),o=[];for(i=0,e=r.length;i<e;o.push(r[i++]));for(r=[],i=0,e=s.length;i<e;r.push(s[i++]));for(s=o.concat(r),i=0;i<s.length;i++)try{if(s[i][t]()){n=s[i];break}}catch(t){}}return n&&(this.rg[t]=n),n},RA:function(t){if(!t)return{height:0,width:0};for(var i=t.offsetWidth,n=t.offsetHeight;t&&"BODY"!==t.tagName;)i=Math.min(t.offsetWidth,i),n=Math.min(t.offsetHeight,n),t=t.parentNode;return{height:n,width:i}},hw:function(t){return null!==t&&"object"===lu()(t)&&1===t.nodeType},Wz:function(){return!1},Av:function(t,i,n,e){var r="7221 7658 7257 7386 7480 7716 7597 7865".split(" "),s=["mindjoltinc","cinesport"];for(t=this.hw(t)?t:this.Kv(i,t),i=0;i<r.length&&r[i]!==e;i++);for(i=0;i<s.length&&s[i]!==e;i++);return(e=yu.Dp(t)).Lb=e.wh,e.Iy=e.wh,n&&t[n](e),e},sC:function(t){var i,n=yu.Ww;for(i=0;i<n.length;i++)if(n[i].id===t){n[i].dispose(),n.splice(i,1);break}},Dp:function(t){var i={active:du.ti,Bu:"",wh:bu.yb,hasFocus:pu.yb};if(t){var n=yu.kp(t);if(i.qC=n.la.width,i.pC=n.la.height,i.Bu=t.id,n.la.position!==vu.yb){t=n.la.width*n.la.Jb/100;var e=n.la.height*n.la.xb/100;i.wh=0===t||0===e?bu.zg:.5<=t*e/(n.la.width*n.la.height)?bu.ui:bu.zg}else n.Yf&&(i.Hu="inIframe"),n.ob.No&&(i.Hu="iframeCrossDomain");if(n=!1,!document.hasFocus||!document.hasFocus())if(t=["webkit","moz","ms","o"],document.visibilityState)n="visible"!==document.visibilityState;else for(e=0;e<t.length;e++)if(document["".concat(t[e],"VisibilityState")]){n="visible"!==document["".concat(t[e],"VisibilityState")];break}i.active=n?du.ti:du.gr,i.hasFocus=yu.mw()}return i},mw:function(){return!0===document.hidden?pu.Rl:yu.Ge()===mu.md?pu.yb:window.top.document.hasFocus?window.top.document.hasFocus()?pu.qr:pu.Rl:pu.yb},oi:function(){yu.Hd((void 0).Jd)}};yu.oi.prototype={constructor:yu.oi,lv:function(){return window.Yj&&window.Yj.iw?[]:[{x:-1e4,y:-1e4}]},Sv:function(){var t,i=[],n=this.left;for(t=0;t<this.bl;t++)n+=this.Ly,i.push({x:n,y:this.top});return i},Rv:function(){var t,i=[],n=this.top;for(t=0;t<this.bl;t++)n+=this.Ny,i.push({x:this.left+this.minWidth-1,y:n});return i},bv:function(){var t,i=[],n=this.left;for(t=0;t<this.bl;t++)n+=this.Ly,i.push({x:n,y:this.top+this.minHeight-1});return i},Ev:function(){var t,i=[],n=this.top;for(t=0;t<this.bl;t++)n+=this.Ny,i.push({x:this.left,y:n});return i},Yu:function(){return[this.lv(),this.Sv(),this.Rv(),this.bv(),this.Ev()]},mp:function(){var t=this.Yu();return[].concat.apply([],t)}},yu.Wl=function(t,i){(void 0).hb=new yu.oi(i)},yu.Wl.prototype={constructor:yu.Wl,Av:function(t){var i=this;if(!this.Pq){for(this.xe=t,t=0;t<this.hb.mp().length;t++){var n=new yu.Ai;n.Qp(this,this.gy),this.zc.push(n)}return setTimeout((function(){i.hx()}),1),this.timeout=setTimeout((function(){clearTimeout(i.timeout),!i.Zj()&&i.yo()&&i.hb&&i.hb.Jd[i.xe](i.wk())}),this.jy),this.Pq=!0,null}t&&this.hb.Jd[t](this.wk())},hx:function(){var t;if(this.hb){var i=this.hb.mp();for(t=0;t<i.length;t++);}},gy:function(){if(this.Zj()&&(clearTimeout(this.timeout),this.yo())){var t=this.wk();this.hb.Jd[this.xe](t)}},wk:function(){var t,i=yu.Dp(this.hb.Jd),n=0;if(this.Zj()){for(t=0;t<this.zc.length;t++){n+=this.zc[t].Lb}this.framerate=n>=this.hb.fC?bu.ui:bu.zg}else this.framerate=bu.yb;return i.framerate=this.framerate,i.Lb=this.framerate===bu.yb?i.wh:this.framerate,i.active===du.ti&&i.Lb===bu.ui&&(i.Lb=bu.zg),i.Iy=i.Lb,i},Zj:function(){var t,i=0;if(this.hb&&window.Yj&&!window.Yj.iw&&0!==this.zc[0].Lb)return!1;for(t=0;t<this.zc.length;t++)-1<this.zc[t].Lb&&i++;return i===this.zc.length},yo:function(){return this.xe&&this.hb&&this.hb.Jd&&this.hb.Jd[this.xe]&&"function"==typeof this.hb.Jd[this.xe]},dispose:function(){var t,i=this.zc.length;for(t=0;t<i;t++)this.zc[t].destroy();this.hb=null,this.Pq=!1,this.Lb=-1,this.zc=[],this.timeout=0,this.jy=1800,this.id=this.xe=""}},yu.Ai=function(){(void 0).id=yu.yr.nr(),window[(void 0).sw]=function(){(void 0).zo&&(void 0).zo.apply((void 0).Vw)}},yu.Ai.prototype={constructor:yu.Ai,Qp:function(){},destroy:function(){var t=document.body||document.getElementsByTagName("body")[0]||document.documentElement,i=document.getElementById("adaptvSpotDiv_".concat(this.id));i&&t.removeChild(i),this.Vw=this.zo=null,delete window[this.sw]}};var gu=yu,wu=function(t){function i(){return t.apply(this,arguments)||this}return Ro()(i,t),i.prototype.Ba=function(t){if(!this.R)return-1;var i=gu.kp(this.R).la,n=i.Jb*i.xb/100;return t&&i.X<t&&(n=Math.max(0,100*(i.xb*i.height/100-t+Math.max(0,i.X))/i.height)),Math.min(Math.round(n),100)},i}(ru),_u=function(t){function i(i){var n=t.call(this,i)||this;return n.Xg=i.moatViewability,n.Qm=i.intersectionViewability,n.im=new wu(i),n}Ro()(i,t);var n=i.prototype;return n.kc=function(i){t.prototype.kc.call(this,i),this.Qm.kc(i),this.Xg.kc(i),this.im.kc(i)},n.Ba=function(){var t=this.Xg.Ba();return-1===t&&(-1===(t=this.Qm.Ba())&&(t=this.im.Ba())),t},i}(ru);_u.da=["viewabilitySubject","moatViewability","intersectionViewability"];var Eu=function(){function t(t,i){this.me=t,this.$m=i}var i=t.prototype;return i.xk=function(){return this.$m||this.me},i.gB=function(){return this.me},i.Qx=function(t){$(t),this.$m=t},i.Jq=function(t){$(t),this.me=t},i.Jh=function(){var t=this.xk();return t&&t.offsetWidth||0},i.Ch=function(){var t=this.xk();return t&&t.offsetHeight||0},t}(),Ou=n(2),Au=function(){function t(t,i){this.type=t,this.data=i||{},this.target=null}var i=t.prototype;return i.clone=function(){return new t(this.type,this.data)},i.toString=function(){return"Event{type=".concat(this.type,"}")},t}();Au.pi="complete";var Su=function(t){function i(i,n,e){return(i=t.call(this,i,e)||this).data.adType=n,i.Ef=null,i}return Ro()(i,t),i.prototype.clone=function(){return new i(this.type,this.Ef,this.data)},i}(Au);Su.Hl="Ads.Resolve.Error",Su.vg="Ads.Blocker.Complete",Su.hr="Ads.Blocker.Started",Su.Al="Ads.Engines.Load",Su.Ve="Ads.Engine.Ready",Su.Bl="Ads.Engine.Run",Su.Ue="Ads.Engine.Complete",Su.wg="Ads.Engine.Impression",Su.Dl="Ads.Engine.Interaction",Su.xg="Ads.Engine.LinearChange",Su.Gl="Ads.Ad.Request",Su.El="Ads.Ad.Loaded",Su.mi="Ads.Ad.Starting",Su.Pd="Ads.Ad.Started",Su.We="Ads.Ad.Finished",Su.ki="Ads.Ad.Paused",Su.Il="Ads.Ad.Resumed",Su.ni="Ads.Ad.VolumeChanged",Su.zl="Ads.Ad.Click",Su.Fl="Ads.Ad.Quartile",Su.Xe="Ads.Ad.TimeUpdate",Su.Ll="Ads.Ad.Waiting",Su.li="Ads.Ad.Skipped",Su.bm="Ads.Ad.VastFailover",Su.Bi="Ads.Ad.VpaidInitializing",Su.Ci="Ads.Ad.VpaidLoaded",Su.Cl="Ads.Ad.AdGroupFailover",Su.Pl="Ads.Ad.LastAdGroupFailed",Su.ir="Ads.Ad.AdTimeoutReached",Su.Jl="Ads.Ad.AdSubtitlesFound",Su.Kl="Ads.Ad.AdSubtitlesNotFound",Su.Vy="Ads.Ad.AdElementReady",Su.vr="Ads.PlayerRendered",Su.si="Ads.IframeLoaded",Su.ji="Ads.AdIntervention";var Tu=function(){function t(t,i){var n=this;t=t.eventBus,this.gf=!0,this.Qc=i,Ou.a.group(Ou.a.Fb(t,Su.Ue,(function(){return n.gf=!1})),Ou.a.Fb(t,Su.Ve,(function(){return n.gf=!1})))}var i=t.prototype;return i.kc=function(t){this.Qc.kc(t)},i.isVisible=function(){return this.gf?1:this.Qc.isVisible()},i.Ba=function(t){return this.gf?100:this.Qc.Ba(t)},i.Wf=function(){return this.gf?1:this.Qc.Wf()},t}();Tu.da=["eventBus"];var ju=function(){function t(t,i){this.N=t;var n={ads:cu.a["adserver.url"],adt:cu.a["adstracker.url"],cdn:cu.a["cdn.url"],trk:cu.a["tracking.url"]},e={};Object.keys(n).forEach((function(t){e[t]=Ao.a.Cq(i&&i[t]||n[t],"\\s/")})),this.td=e}var i=t.prototype;return i.eA=function(){return"".concat(this.td.ads,"/vrm?").concat(X.call(this))},i.Wu=function(){return"".concat(this.td.ads,"/vrm/pods?").concat(X.call(this))},i.dA=function(){return"".concat(this.td.ads,"/ads?").concat(X.call(this))},i.ev=function(t){return"".concat(this.td.cdn,"/").concat(t||"")},i.wv=function(){return this.ev(cu.a["hls.js.path"])},i.yB=function(){return cu.a["vapa.url"]},i.Tv=function(){return this.td.trk},i.Vu=function(){return this.td.ads+"/".concat("ads/ad-start.gif")+""},i.Xu=function(){return this.td.adt+"/".concat("ads/ad-request.gif")+""},t}(),Iu=n(28),Mu=n.n(Iu),Nu=function(){function t(t){this.xa=t||new Mo.default,this.Mi=[]}var i=t.prototype;return i.addEventListener=function(t,i,n){n=n?i.bind(n):i,this.Mi.push([t,i,n]),this.xa.addEventListener(t,n)},i.removeEventListener=function(t,i){for(var n=this.Mi,e=0;e<n.length;++e){var r=Mu()(n[e],3),s=r[1],o=r[2];r[0]===t&&(s!==i&&i||this.xa.removeEventListener(t,o))}},i.yq=function(){for(var t=this.Mi,i=0;i<t.length;++i){var n=Mu()(t[i],3);this.xa.removeEventListener(n[0],n[2])}},i.dispatchEvent=function(t,i){this.xa.dispatchEvent(t,i)},t}(),Ru={Oy:"cleaning",IDLE:"idle",LOADING:"loading",PAUSED:"paused",PLAYING:"playing"},ku=function(){function t(t){this.tc=t.videoTagProvider,this.Ra=t.urls,this.V=Ru.IDLE,this.U=new Mo.default,this.lb=new Ko.a(window.document)}var i=t.prototype;return i.dispatchEvent=function(){var t;(t=this.U).dispatchEvent.apply(t,arguments)},i.addEventListener=function(){var t;(t=this.U).addEventListener.apply(t,arguments)},i.removeEventListener=function(){var t;(t=this.U).removeEventListener.apply(t,arguments)},i.EA=function(){return this.R},i.fB=function(){return this.tc.me},i.Fz=function(){return this.V=Ru.PLAYING,this.R=this.tc.me,this},i.play=function(){if(this.R){var t=Math.random();this.lt=t;var i=this.R.play();i&&i.catch(ft.bind(this,t))}},i.setVolume=function(t){try{this.za=t,this.R&&(this.R.volume=t,ht.call(this))}catch(t){}this.mute(0===t)},i.getVolume=function(){return this.za},i.isMuted=function(){return this.R&&this.R.muted||0===this.getVolume()},i.mute=function(){this.R&&(this.R.muted=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],ht.call(this))},i.getDuration=function(){return Math.min(Math.max(this.R&&this.R.duration||0,0),1e8)},i.Fe=function(){return this.getDuration()-this.getCurrentTime()},i.getCurrentTime=function(){return Math.max(Math.min(this.R&&this.R.currentTime||0,this.getDuration()),0)},i.dv=function(){return this.R&&this.R.buffered},i.ov=function(){return this.getCurrentTime()/this.getDuration()||0},i.pause=function(){this.R&&this.R.pause()},i.Bq=function(){this.isPlaying()&&this.pause(),this.V=Ru.IDLE,this.R&&(Ko.a.empty(this.R),"function"==typeof this.R.setAttribute&&this.R.setAttribute("src",""),"function"==typeof this.R.removeAttribute&&this.R.removeAttribute("src"))},i.stop=function(){this.R&&(this.xa.removeEventListener("progress",Z),this.R.pause(),this.R.load())},i.Xx=function(t){ct.call(this,t,this.tc.me)},i.Px=function(t){ct.call(this,t,this.tc.xk())},i.isPlaying=function(){return this.V===Ru.PLAYING},i.Jh=function(){return this.R&&this.R.offsetWidth||0},i.Ch=function(){return this.R&&this.R.offsetHeight||0},i.ip=function(){return this.Is?this.Is:this.R&&this.R.currentSrc},t}();ku.da=["videoTagProvider","urls"];var Lu=function(){function t(t){this.Va=t.adContainerProvider.Jc,this.Pg=t.config.Zp()?"tbv":"",this.Nn=0,this.co="1.0.22"}var i=t.prototype;return i.lg=function(t){this.M=t},i.Jx=function(t){(this.kb=t)&&t.id&&this.Iq(t.id)},i.wA=function(){return this.kb},i.xA=function(){return this.df},i.Iq=function(){this.df=0<arguments.length&&void 0!==arguments[0]?arguments[0]:""},i.EC=function(t){this.Qj=t},i.yA=function(){return this.Qj},i.Kx=function(t){this.Jg=t},i.zA=function(){return this.Jg},i.fb=function(){return this.M.fb()},i.getVolume=function(){return this.M.getVolume()||0},i.GB=function(){return this.co},i.isMuted=function(){return this.M.isMuted()},i.aw=function(){return!this.kb},i.Gh=function(){return{height:this.Va.offsetHeight,width:this.Va.offsetWidth}},i.Dk=function(){var t=this.Gh();return{currentPercent:(+this.Ih()/this.getVideoDuration()||0).toFixed(2),currentTime:this.Ih(),h:t.height,totalVideoCount:this.Nn,videoLength:this.getVideoDuration(),w:t.width}},i.LA=function(){return this.Pg},i.Ih=function(){return this.Ri||0},i.getVideoDuration=function(){return this.gs||0},i.mg=function(t){this.gs=t},i.tA=function(){return this.Ri},i.Mw=function(){this.Nn++},i.Kq=function(t){this.Ri=t},t}();Lu.da=["adContainerProvider","config"];var Du=function(){function t(t){this.pf=this.Jc=t}var i=t.prototype;return i.Rx=function(t){this.pf=t},i.OA=function(){return this.Jc},i.SA=function(){return this.pf},i.kv=function(){return{Ot:this.Jc,oC:this.pf}},t}();n(24);var Cu=function(){function t(t,i){this.message=t||"",this.code=i}return t.prototype.toString=function(){return"Error{message=".concat(this.message,"}")},t}(),Pu=function(t){function i(){return t.apply(this,arguments)||this}return Ro()(i,t),i}(Cu),xu={ea:124},Uu={ea:102,code:301,description:"URI reached a timeout as defined by the video player.",ya:9402},Vu={code:205,description:"InLine ad is skipped due to a category violation"},Bu={ea:100,description:"Ad entries loading timeout, ajax error or parsing error"},Fu={code:301,description:"Ad has expired"},zu={ea:5122,code:100,description:"Empty response",ya:9401},Gu={ea:104,code:401,description:"File not found. Unable to find Linear/MediaFile from URI",ya:9521},Hu={ea:114,code:400,description:"General    Linear    error. Video player is unable to display the Linear Ad",ya:9524},Yu={code:500,description:"General NonLinearAds error."},qu={ea:5130,code:300,description:"General Wrapper error",ya:9413},Wu={ea:114,code:405,description:"Problem displaying MediaFile.",ya:9521},Qu={ea:125,code:303,description:"No ads VAST response after one or more Wrappers. Also includes number of empty VAST responses from fallback.",Fd:{level:"warning"},ya:9432},$u={ea:1,code:303,description:"No ads VAST response ",Fd:{level:"warning"},ya:9432},Xu={ea:120,code:403,description:"Couldn’t find MediaFile that is supported by this video player, based on the attributes of the MediaFile element.",ya:9412},Zu={code:502,description:"Unable to fetch NonLinearAds/NonLinear resource."},Ju={code:501,description:"Unable to display non-linear ad because creative dimensions do not align with creative display area"},Ku={code:503,description:"Could not find NonLinear resource with supported type."},th={ea:121,code:401,description:"SSL mismatch",ya:9521},ih={ea:112,code:900,description:"Undefined error."},nh={ea:108,code:100,description:"VAST parsing error",ya:9401},eh={ea:5125,code:101,description:"VAST schema validation",ya:9411},rh={ea:203,code:901,description:"VPAID ad init error",Fd:{level:"warning",$q:"VPAID ad init error NO_FILL"},ya:9416},sh={ea:204,code:901,description:"VPAID ad init timeout",ya:9526},oh={ea:202,code:901,description:"VPAID ad load error",ya:9416},uh={ea:202,code:409,description:"Interactive unit in the InteractiveCreativeFile node was not executed",ya:9416},hh={ea:114,code:901,description:"VPAID ad renderer error",ya:9416},ah={ea:301,code:901,description:"VPAID ad start error",ya:9416},ch={ea:302,code:304,description:"VPAID ad start timeout",ya:9522},fh={ea:401,code:901,description:"vpaid creative stopped without impression",ya:9416},lh={ea:125,code:302,description:"Wrapper limit reached, as defined by the video player. Too many Wrapper responses have been received with no InLine response.",ya:9413},vh={ea:105,code:301,description:"Timeout of VAST URI provided in Wrapper element, or of VAST URI provided in a subsequent Wrapper element. (URI was either unavailable or reached a timeout as defined by the video player.)",ya:9402},dh={ea:201,code:901,description:"VPAID setup error",ya:9416},ph=function(){function t(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];this.Wa=t,this.pm={},lt.call(this,i)}var i=t.prototype;return i.Wc=function(t){return this.pm[t]},i.Re=function(){},i.ia=function(){},i.parse=function(t){return this.Re&&this.Re(t)?this.ia(t):null},i.uB=function(){return this.Wa},t}(),mh=function(t){function i(){return t.apply(this,arguments)||this}return Ro()(i,t),i.prototype.Re=function(t){return t&&t.nodeName===this.Wa&&t.hasChildNodes()&&t.firstElementChild},i}(ph),bh=n(44),yh=function(){function t(){}return t.Jk=function(t){var i={};t=t.childNodes;for(var n=0;n<t.length;n++){var e=t[n],r=e.nodeName;1===e.nodeType&&(i[r]||(i[r]=e))}return i},t.Ik=function(t,i){t=t.childNodes;for(var n=0;n<t.length;n++){var e=t[n];if(1===e.nodeType&&e.nodeName===i)return e}return null},t.Ca=function(t){var i={};return t&&Array.prototype.forEach.call(t.childNodes||[],(function(t){var n=t.nodeName;1===t.nodeType&&(i[n]||(i[n]=[]),i[n].push(t))})),i},t.Wv=function(t){return!!t&&(3===t.nodeType||2===t.nodeType||!!t.hasChildNodes()&&!t.firstElementChild)},t.Ea=function(t){return vt([t])},t}(),gh=function(){function t(t){t&&(this.type=t.getAttribute("type"),this.value=yh.Ea(t))}var i=t.prototype;return i.prepare=function(t,i,n){this.Mf=t,this.aa=i,this.$k=n,this.zw=i.Pb},i.Ha=function(){(new Image).src=this.zw.resolve(this.value,this.$k)},t}(),wh=n(64),_h=n(69),Eh=n.n(_h);n(84);var Oh=n(78),Ah=n.n(Oh),Sh=n(65),Th=n(79),jh=n.n(Th),Ih=To.a.Na("IframeSecure"),Mh=function(){function t(t,i){this.fe=t,this.sc=i,this.uf=new uu,this.Qa=Ou.a.empty()}var i=t.prototype;return i.hc=function(){this.Mp=Uo.a.Th(this.fe.src).origin,Ou.a.bind(this.fe.contentWindow.parent,"message",this.Vk.bind(this),!1)},i.iB=function(){return this.uf.Ma},i.ye=function(){this.Qa.sa(),Object(Oo.E)(this.fe)},i.Qh=function(t){this.ye(),this.uf.reject(t)},i.Tc=function(){this.kg.apply(this,arguments)},i.kg=function(t){for(var i=arguments.length,n=Array(1<i?i-1:0),e=1;e<i;e++)n[e-1]=arguments[e];if(i={data:1===n.length?n[0]:n,type:t},this.fe.contentWindow)try{this.fe.contentWindow.postMessage(i,this.Mp)}catch(t){Ih.error("Unable to send message",i,t)}},i.Vk=function(t){var i=t.data||{};t.origin===this.Mp&&i.location===this.fe.src?(t.preventDefault(),this.Kh(t)):Ih.debug("Ignore message from ".concat(t.origin))},i.Kh=function(){},jh()(t,[{key:"iframeOrigin",set:function(t){this.Mg=t},get:function(){return this.Mg}}]),t}(),Nh=function(t){function i(){return t.apply(this,arguments)||this}Ro()(i,t);var n=i.prototype;return n.Vo=function(t,i){this.Tc("eventCallbackListenerInvoke",{event:i,type:t})},n.Ld=function(){this.Tc("loadScript",{url:this.sc})},n.Ou=function(t,i){this.wq=t,this.Wo=i},n.Ix=function(t){this.Fo=t},n.yx=function(t){this.Tc("sessionObserverCallback",t)},n.Kh=function(t){var i=t.data||{},n=i.type;"registerSessionObserverCallback"===n&&this.wq?this.wq():"addEventListenerCallback"===n&&this.Wo?this.Wo((i.data||{}).type):"error"===n?this.Qh(t.data.data):"sessionObserverCallbackCompleted"===n&&i.data.type===Sh.SESSION_FINISH&&this.Fo&&this.Fo()},i}(Mh),Rh=function(t){function i(i,n,e,r){return(i=t.call(this,i,r)||this).Jn=n,i.om=e,i.Ce=[],i.Xp=!0,i}Ro()(i,t);var n=i.prototype;return n.Hx=function(t){t.Xp=!1,this.Xr=t},n.Cp=function(){return this.Jn||null},n.Vc=function(){return this.om||null},n.fv=function(){return this.Xr||null},n.clone=function(){return new i(this.type,this.Jn,this.om,this.data)},i}(Au);Rh.yg="VastEventAttempt",Rh.kd="VastEventImpression",Rh.hd="VastEventClick",Rh.jb="VastEventError",Rh.LOADED="loaded";var kh=function(t){function i(n,e,r){return(e=t.call(this,i.nd,e,null)||this).Od=n,e.data=r||{},e}return Ro()(i,t),i.prototype.clone=function(){return new i(this.Od,this.Cp(),this.data)},i}(Rh);kh.nd="VASTEventVideoTracking";var Lh=["*"],Dh=0,Ch=function(){function t(t){this.lb=t.dom,this.Gg=t.adContainerProvider.Jc,this.tc=t.videoTagProvider,this.U=t.eventBus,this.Si=2,this.mb={},this.ae={},this.Kr=w()}return t.prototype.prepare=function(){var t=Ah()(Eh.a.mark((function t(i,n){var e;return Eh.a.xl((function(t){for(;;)switch(t.Ub=t.next){case 0:if(this.xd=i,this.La=n,-1<Lh.indexOf(this.xd.vendor)||-1<Lh.indexOf("*")?e=this.xd.$p[0]||this.xd.Xo[0]:(this.Si=1,e=void 0),!e){t.next=17;break}return Et.call(this),t.Ub=5,t.next=8,Ot.call(this,e.url);case 8:t.next=15;break;case 10:t.Ub=10,t.VC=t.catch(5),this.Si=3,At.call(this),bt.call(this);case 15:t.next=18;break;case 17:At.call(this);case 18:case"end":return t.stop()}}),t,this,[[5,10]])})));return function(i,n){return t.apply(this,arguments)}}(),t}();Ch.da=["dom","adContainerProvider","videoTagProvider","eventBus"];var Ph,xh,Uh=function(){function t(){this.type=null,this.scripts=[],this.br=[],this.Of=[],this.oo=[]}return t.prototype.prepare=function(t){switch(this.Mf=new wh.a,this.aa=t.aa,this.Mk=this.aa.O,this.ad=t.ad,this.type){case"adaptv_scripts":St.call(this);break;case"one_video_feacons":Tt.call(this);break;case"AdVerifications":jt.call(this)}Ou.a.Fb(this.aa,Su.We,It.bind(this))},t}(),Vh=function(){function t(t){var i=this;this.Of=[],t.forEach((function(t){(yh.Ca(t).Feacon||[]).forEach((function(t){return i.Of.push(yh.Ea(t))}))}))}return t.prototype.prepare=function(t){var i=t.Pb;this.Of.forEach((function(t){return(new Image).src=i.resolve(t)}))},t}(),Bh=n(7),Fh=function(){function t(t){this.qx=t.getAttribute("resourceType"),this.event=t.getAttribute("event"),this.value=yh.Ea(t)}return t.prototype.prepare=function(t,i,n){this.aa=n,this.Jf=n.O.S("dom"),t.ve(Ou.a.bind(n,Su.We,Nt.bind(this))),this.event===Bh.IMPRESSION?t.ve(Ou.a.bind(i,Rh.kd,Mt.bind(this))):Mt.call(this)},t}(),zh=function(t){function i(){return t.apply(this,arguments)||this}return Ro()(i,t),i.prototype.Re=function(t){return t&&t.nodeName===this.Wa&&yh.Wv(t)},i}(ph),Gh=function(t){function i(){return t.apply(this,arguments)||this}Ro()(i,t);var n=i.prototype;return n.ia=function(t){var i=this.Ae();return i.url=Ao.a.trim(yh.Ea(t)),i},n.Ae=function(){return new y},i}(zh),Hh=new Gh("Survey"),Yh=new Gh("Attempt"),qh=new Gh("Impression"),Wh=new Gh("Error"),Qh=new Gh("VASTAdTagURI"),$h=new Gh("NonLinearClickThrough"),Xh=new(function(t){function i(){return t.call(this,"JavaScriptResource")||this}return Ro()(i,t),i.prototype.ia=function(i){var n=t.prototype.ia.call(this,i);return n.cb=i.getAttribute("apiFramework"),n.vo=i.getAttribute("browserOptional"),n},i}(Gh)),Zh=new(function(t){function i(){return t.call(this,"JavaScriptResource")||this}return Ro()(i,t),i.prototype.ia=function(i){var n=t.prototype.ia.call(this,i);return n.cb=i.getAttribute("apiFramework"),n.type=i.getAttribute("type"),n},i}(Gh)),Jh=new(function(t){function i(){return t.call(this,"VerificationParameters")||this}return Ro()(i,t),i.prototype.ia=function(t){var i=new b;return i.value=yh.Ea(t),i},i}(zh)),Kh=function(t){function i(i,n,e){return(i=t.call(this,i)||this).type=n,i.offset=e,i}return Ro()(i,t),i}(y),ta=new(function(t){function i(){return t.call(this,"Tracking")||this}Ro()(i,t);var n=i.prototype;return n.ia=function(i){var n=t.prototype.ia.call(this,i);return n.type=i.getAttribute("event"),n.offset=i.getAttribute("offset"),n},n.Ae=function(){return new Kh},i}(Gh)),ia=new(function(t){function i(){return t.call(this,"Verification",[Xh,Zh,Jh,ta])||this}return Ro()(i,t),i.prototype.ia=function(t){var i=new m,n=yh.Ca(t),e=n.JavaScriptResource||[],r=n.ExecutableResource||[],s=n.VerificationParameters||[];return n=yh.Ca((n.TrackingEvents||[])[0]).Tracking||[],i.$p=e.map((function(t){return Xh.parse(t)})).sort(Rt),i.Xo=r.map((function(t){return Zh.parse(t)})),i.ul=s.map((function(t){return Jh.parse(t)})),i.Wb=n.map((function(t){return ta.parse(t)})),i.vendor=t.getAttribute("vendor"),i},i}(mh)),na=function(t){function i(i,n,e){var r=t.call(this)||this;return n=n||{},r.nf=i,r.Wg=+n.d||t.prototype.zp.call(eu()(r)),r.Vg=+n.p||t.prototype.yp.call(eu()(r)),r.Fg=kt(n.c,t.prototype.Tp.call(eu()(r))),r.Eg=kt(n.a,t.prototype.Sp.call(eu()(r))),r.te=+n.t||t.prototype.Hp.call(eu()(r)),r.hn=e||[],r}Ro()(i,t);var n=i.prototype;return n.Eh=function(){return this.nf},n.zp=function(){return this.Wg},n.yp=function(){return this.Vg},n.Tp=function(){return this.Fg},n.Sp=function(){return this.Eg},n.Hp=function(){return this.te},n.YA=function(){return this.hn},n.VB=function(){return 1===this.te},i}(function(){function t(){this.Wg=2,this.Vg=50,this.Eg=this.Fg=!1,this.te=null}var i=t.prototype;return i.zp=function(){return this.Wg},i.yp=function(){return this.Vg},i.Tp=function(){return this.Fg},i.Sp=function(){return this.Eg},i.Hp=function(){return this.te},t}()),ea=function(t){function i(i,n){return t.call(this,n,{a:i.getAttribute("a"),c:i.getAttribute("c"),d:i.getAttribute("d"),p:i.getAttribute("p"),t:i.getAttribute("t")})||this}return Ro()(i,t),i}(na),ra=new(function(t){function i(){return t.call(this,"Extension")||this}Ro()(i,t);var n=i.prototype;return n.ia=function(t){var i=new Uh;switch(i.type=t.getAttribute("type"),t=yh.Ca(t),i.type){case"adaptv_scripts":i.scripts=function(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(i){return t.push(new Fh(i))})),t}(t.Script);break;case"adaptv_iab_viewable_beacons":i.br=Lt(t.Beacon);break;case"Viewability3P":i.Fy=Lt(t.Beacon);break;case"ViewabilityRules":i.Hy=Dt(t,"viewabilityDefVideo"),i.Gy=Dt(t,"viewabilityDefVideo3P");break;case"one_video_feacons":i.Of.push(new Vh(t.Feacons));break;case"AdVerifications":i.oo=function(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(i){t=(yh.Ca(i).Verification||[]).map((function(t){return ia.parse(t)}))})),t}(t.AdVerifications)}return i},n.Re=function(t){return t&&t.nodeName===this.Wa},i}(mh)),sa=new(function(t){function i(){return t.call(this,"ViewableImpression")||this}return Ro()(i,t),i.prototype.ia=function(t){var i=new p;return t=yh.Jk(t),i.Lb=new gh(t.Viewable),i.Sk=new gh(t.NotViewable),i.wl=new gh(t.ViewUndetermined),i},i}(mh)),oa=new(function(t){function i(){return t.call(this,"AdSystem")||this}return Ro()(i,t),i.prototype.ia=function(t){var i=new d;return i.version=t.getAttribute("version"),i.name=yh.Ea(t),i},i}(zh)),ua=n(5),ha=n.n(ua),aa=function(){function t(t,i){var n=this;this.Sq={},this.dx=t,this.O=i,t.forEach((function(t){var i=t.Qo,e=t.Pf;Object.keys(e).map((function(t){return e[t]=Uo.a.ck(e[t])})),n.Sq[t.lang]={displayText:i,formats:e}}))}return t.prototype.prepare=function(t){var i=this;this.O||(this.O=t);var n=this.O.S("eventBus");Ou.a.Fb(n,Su.mi,(function(){n.dispatchEvent(new Su(Su.Jl,null,{raw:i.dx,subtitles:i.Sq}))}))},t}(),ca=function(t){function i(){var i=t.call(this)||this;return i.Go=[],i.Ie=[],i.Rp=null,i.$c=[],i.duration=null,i.hi=!1,i.gi=null,i.fi=null,i.parameters=null,i.eb=null,i.wu=null,i.Io=new aa([]),i.gq=null,i}return Ro()(i,t),i}(v),fa={ar:"العربية",de:"deutsch",en:"english",es:"español",fr:"français",he:"עברית",id:"Indonesian",it:"Italiano",ja:"日本語",ru:"русский",tl:"Filipino",zh:"简体中文 (中国)","zh-tw":"繁體中文 (台灣)"},la=new c("STREAMING"),va=new c("PROGRESSIVE"),da=function(t){function i(i,n){return(i=t.call(this,i)||this).id=n,i}return Ro()(i,t),i}(y),pa=function(t){function i(i,n){return(i=t.call(this,i,n)||this).Po=null,i.mimeType="",i.width=null,i.height=null,i.su="",i.bitrate=null,i.eg=null,i.maxBitrate=null,i.Oe=!0,i.dg=!0,i.cb="",i}return Ro()(i,t),i}(da),ma=function(t){function i(){return t.apply(this,arguments)||this}Ro()(i,t);var n=i.prototype;return n.ia=function(i){var n=t.prototype.ia.call(this,i);return n.id=i.getAttribute("id"),n},n.Ae=function(){return new da},i}(Gh),ba=new ma("ClickThrough"),ya=new ma("ClickTracking"),ga=new ma("CustomClick"),wa=new ma("NonLinearClickTracking"),_a=new(function(t){function i(){return t.call(this,"MediaFile")||this}Ro()(i,t);var n=i.prototype;return n.ia=function(i){var n=t.prototype.ia.call(this,i);switch(String(i.getAttribute("delivery"))){case"streaming":n.Po=la;break;case"progressive":n.Po=va}var e=i.getAttribute("height");return n.height=isNaN(e)?0:e,e=i.getAttribute("width"),n.width=isNaN(e)?0:e,n.su=i.getAttribute("codec"),n.bitrate=i.getAttribute("bitrate"),n.eg=i.getAttribute("minBitrate"),n.maxBitrate=i.getAttribute("maxBitrate"),e=i.getAttribute("scalable"),n.Oe=!e||("true"===e||0<parseInt(e)),n.dg="true"===i.getAttribute("maintainAspectRatio"),n.mimeType=i.getAttribute("type"),n.cb=i.getAttribute("apiFramework"),n.url&&-1!==n.url.indexOf("acds.prod.vidible.tv")&&(n.Kb=Uo.a.Ib("placementId",n.url)),n},n.Ae=function(){return new pa},i}(ma)),Ea=function(t){function i(i,n){return(i=t.call(this,i,n)||this).type=void 0,i.cb="",i.yy=!1,i}return Ro()(i,t),i}(da),Oa=new(function(t){function i(){return t.call(this,"InteractiveCreativeFile")||this}Ro()(i,t);var n=i.prototype;return n.ia=function(i){var n=t.prototype.ia.call(this,i);return n.cb=i.getAttribute("apiFramework")||"vpaid",n.type=i.getAttribute("type"),n.yy=i.getAttribute("variableDuration")||!1,n},n.Ae=function(){return new Ea},i}(ma)),Aa=new(function(t){function i(){return t.call(this,"Icon")||this}return Ro()(i,t),i.prototype.ia=function(t){var i=new a;i.width=+t.getAttribute("width")||0,i.height=+t.getAttribute("height")||0,i.tg=+t.getAttribute("xPosition")||t.getAttribute("xPosition"),i.ug=+t.getAttribute("yPosition")||t.getAttribute("yPosition"),i.offset=Object(Oo.K)(t.getAttribute("offset")||""),i.duration=Object(Oo.K)(t.getAttribute("duration")||""),t=yh.Ca(t);var n=yh.Ca(t.IconClicks[0]),e=n.IconClickThrough&&n.IconClickThrough[0];return n=n.IconClickTracking&&n.IconClickTracking[0],t.StaticResource&&t.StaticResource[0]&&(i.Rq=yh.Ea(t.StaticResource[0]).trim()),t.IconViewTracking&&t.IconViewTracking[0]&&(i.vl=yh.Ea(t.IconViewTracking[0]).trim()),e&&(i.fk=yh.Ea(e).trim()),n&&(i.gk=yh.Ea(n).trim()),i},i}(mh)),Sa=new(function(t){function i(){return t.call(this,"AdParameters")||this}return Ro()(i,t),i.prototype.ia=function(t){var i=new h;return i.value=yh.Ea(t),i.My=t.getAttribute("xmlEncoded"),i},i}(zh)),Ta=["application/x-shockwave-flash","video/x-flv"],ja=(Ph={},ha()(Ph,"application/javascript","cjs"),ha()(Ph,"text/javascript","cjs"),ha()(Ph,"application/x-javascript","cjs"),ha()(Ph,"application/vnd.apple.mpegurl","cm3u8"),ha()(Ph,"application/x-mpegurl","cm3u8"),ha()(Ph,"application/x-shockwave-flash","cswf"),ha()(Ph,"uplynk/m3u8","cm3u8"),ha()(Ph,"video/3gpp","c3gpp"),ha()(Ph,"video/x-flv","cflv"),ha()(Ph,"video/mp4","cmp4"),ha()(Ph,"video/webm","cwebm"),Ph),Ia=new(function(t){function i(){return t.call(this,"Linear",[ta,ba,ya,ga,_a,Aa,Sa])||this}return Ro()(i,t),i.prototype.ia=function(t){var i=new ca,n=yh.Jk(t);if((t=t.getAttribute("skipoffset"))&&(i.hi=!0,"%"===t.slice(-1)?i.fi=Number(t.slice(0,-1)):i.gi=Object(Oo.K)(t)),t=yh.Ea(n.Duration),i.duration=t?Object(Oo.K)(t):NaN,(t=n.AdParameters)&&(i.parameters=Sa.parse(t)),(t=n.TrackingEvents)&&(yh.Ca(t).Tracking||[]).forEach((function(t){return i.Wb.push(ta.parse(t))})),t=n.VideoClicks){var e=(t=yh.Ca(t)).ClickThrough;e&&(e=e[0])&&(i.eb=ba.parse(e)),(e=t.ClickTracking)&&e.forEach((function(t){return i.Go.push(ya.parse(t))})),(t=t.CustomClick)&&(t=t[0])&&(i.wu=ga.parse(t))}return(t=n.Icons)&&(t=yh.Ca(t).Icon)&&t.forEach((function(t){return i.$c.push(Aa.parse(t,!0))})),t=(n=n.MediaFiles)&&yh.Ca(n).MediaFile||[],function(t,i){var n=[],e=[],r=new f;i.forEach((function(t){if(t=_a.parse(t)){var i=t.mimeType&&t.mimeType.toLowerCase()||"",s=ja[i];s?r[s]+=1:r.tu+=1,(s=t.url)&&!Ao.a.startsWith(s,"rtmp",!0)&&i&&0<i.length&&-1===Ta.indexOf(i)&&("vpaid"!==(t.cb&&t.cb.toLowerCase()||"")?n.push(t):("application/javascript"===i||"text/javascript"===i||"application/x-javascript"===i)&&e.push(t))}})),t.gq=r,t.Ie=0<n.length?n:e}(i,t),t=n&&yh.Ik(n,"ClosedCaptionFiles")||[],t=(n&&t&&yh.Ca(t).ClosedCaptionFile||[]).map((function(t){return new l(t,!0)})),i.Io=new aa(t),(n=(n&&yh.Ca(n).InteractiveCreativeFile||[])[0])&&(n=Oa.parse(n))&&(i.Rp=n),i},i}(mh)),Ma=function(t){function i(){var i=t.call(this)||this;return i.Oe=!0,i.dg=!0,i.Rk=null,i}return Ro()(i,t),i}((function(){this.height=this.width=null,this.id="",this.parameters=this.qu=this.eb=this.Yo=this.Zo=null,this.cb="",this.ic=[]})),Na=new o("STATIC"),Ra=new o("IFRAME"),ka=new o("HTML"),La=function(t){function i(i,n){return(i=t.call(this,i)||this).gt=n,i}return Ro()(i,t),i.prototype.ia=function(t){var i=new u;return i.type=this.gt,i.value=yh.Ea(t),i.mimeType=t.getAttribute("creativeType"),i},i}(zh),Da=new La("StaticResource",Na),Ca=new La("IFrameResource",Ra),Pa=new La("HTMLResource",ka),xa=new(function(t){function i(){return t.call(this,"NonLinear",[$h,wa])||this}Ro()(i,t);var n=i.prototype;return n.ia=function(i){var n=t.prototype.ia.call(this,i),e=i.getAttribute("scalable");n.Oe=!e||("true"===e||0<parseInt(e));var r="true"===(e=i.getAttribute("maintainAspectRatio"))||0<parseInt(e);return n.dg=!e||r,i=i.getAttribute("minSuggestedDuration"),n.Rk=i?Object(Oo.K)(i):NaN,n},n.uu=function(){return new Ma},n.qp=function(){return $h.Wa},n.rp=function(){return wa.Wa},i}(function(t){function i(i){return t.call(this,i,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).concat([Da,Ca,Pa,Sa,ta]))||this}Ro()(i,t);var n=i.prototype;return n.ia=function(t){var i=this,n=this.uu();n.height=t.getAttribute("height"),n.width=t.getAttribute("width"),n.id=t.getAttribute("id");var e=t.getAttribute("expandedWidth");return n.Zo=isNaN(e)?0:e,e=t.getAttribute("expandedHeight"),n.Yo=isNaN(e)?0:e,n.cb=t.getAttribute("apiFramework"),[(t=yh.Ca(t)).StaticResource||[],t.IFrameResource||[],t.HTMLResource||[]].forEach((function(t){t.forEach((function(t){(t=i.Wc(t.nodeName).parse(t))&&n.ic.push(t)}))})),(e=t.AdParameters)&&(n.parameters=Sa.parse(e[0])),(e=t[this.qp()])&&(n.eb=this.gv().parse(e[0])),(t=t[this.rp()])&&(n.qu=this.hv().parse(t[0])),n},n.gv=function(){return this.Wc(this.qp())},n.hv=function(){return this.Wc(this.rp())},i}(mh))),Ua=function(t){function i(){var i=t.call(this)||this;return i.wc=[],i}return Ro()(i,t),i}(v),Va=new(function(t){function i(){return t.call(this,"NonLinearAds",[ta,xa])||this}return Ro()(i,t),i.prototype.ia=function(t){var i=new Ua,n=(t=yh.Ca(t)).NonLinear;return n&&n.forEach((function(t){return i.wc.push(xa.parse(t))})),(t=t.TrackingEvents)&&(yh.Ca(t[0]).Tracking||[]).forEach((function(t){return i.Wb.push(ta.parse(t))})),i},i}(mh)),Ba=new(function(t){function i(){return t.call(this,"UniversalAdId")||this}return Ro()(i,t),i.prototype.ia=function(t){var i=new s;return i.value=yh.Ea(t),i.Hk=t.getAttribute("idRegistry"),i},i}(zh)),Fa=new(function(t){function i(){return t.call(this,"Creative",[Ia,Va])||this}return Ro()(i,t),i.prototype.ia=function(t){var i,n=this,e=null;return[].slice.call(t.childNodes).forEach((function(r){if("UniversalAdId"===r.nodeName)i=r;else{var s=n.Wc(r.nodeName);s&&(e=s.parse(r))&&(e.id=t.getAttribute("id"),r=t.getAttribute("sequence"),e.wb=isNaN(r)?0:r,e.Qt=t.getAttribute("adID")||t.getAttribute("AdID"))}})),e&&(e.Yq=Ba.parse(i)),e},i}(mh)),za=function(t){function i(i){return t.call(this,i,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).concat([oa,Yh,Wh,qh,Fa,ra,ia,sa]))||this}return Ro()(i,t),i.prototype.ia=function(t){var i=this.Lo(),n=(t=yh.Ca(t)).AdSystem&&t.AdSystem[0];return i.aa=n&&oa.parse(n)||{},i.so=Ct.call(this,t.Attempt,"Attempt"),i.Mh=Ct.call(this,t.Impression,"Impression"),i.Mh.forEach((function(t){if(-1===t.url.indexOf("log.adaptv.advertising.com")||i.Kb){if(-1!==t.url.indexOf(".ssp.yahoo.com")){var n=-1!==t.url.indexOf("/admax/adEvent.do");t=Uo.a.Ib("posi",t.url),!i.Kb&&n&&t&&(i.Kb=t)}}else i.Kb=Uo.a.Ib("5",t.url)})),i.Be=Ct.call(this,t.Error,"Error"),i.Ja=Pt.call(this,t.Creatives,"Creative"),i.Ja.sort((function(t,i){return t.wb-i.wb})),i.Ja=i.Ja.map((function(t,i){return t.jc=i,t})),i.uc=Pt.call(this,t.Extensions,"Extension"),i.Ay=Pt.call(this,t.AdVerifications,"Verification"),t.ViewableImpression&&(i.gd=[sa.parse(t.ViewableImpression[0])]),i},i}(mh),Ga=["[ERRORCODE]","%5BERRORCODE%5D"],Ha=["[cachebuster]","[CACHEBUSTER]","[CACHE_BUSTER]","[CACHE_BREAKER]","[CACHEBUSTING]"],Ya=["[OMIDPARTNER]"],qa=["[timestamp]","[TIMESTAMP]"],Wa=["[ADTYPE]"],Qa=["[ADSERVINGID]"],$a=["[ASSETURI]","[AD_MEDIA_FILE_URL]","AD_MEDIA_FILE_URL"],Xa=["[BLOCKEDADCATEGORIES]"],Za=["[BREAKPOSITION]"],Ja=["[CLIENTUA]","[clientua]"],Ka=["[CONTENTPLAYHEAD]","[MEDIAPLAYHEAD]"],tc=["[PAGEURL]","[pageurl]"],ic=["[UNIVERSALADID]"],nc=["[ADCOUNT]"],ec="[TRANSACTIONID] [PLACEMENTTYPE] [IFA] [IFATYPE] [SERVERSIDE] [DOMAIN] [APPBUNDLE] [VASTVERSIONS] [EXTENSIONS] [VERIFICATIONVENDORS] [MEDIAMIME] [PLAYERCAPABILITIES] [CLICKTYPE] [PLAYERSTATE] [INVENTORYSTATE] [PLAYERSIZE] [ADPLAYHEAD] [CONTENTID] [CONTENTURI] [PODSEQUENCE] [CLICKPOS] [LIMITADTRACKING] [REGULATIONS] [GDPRCONSENT] [ADCATEGORIES] [SERVERUA] [DEVICEUA] [DEVICEIP]".split(" "),rc=["[LATLONG]"],sc=function(t){function i(){var i=t.call(this)||this;return i.Qn=[],i.so=[],i.Mh=[],i.Be=[],i.Ja=[],i.uc=[],i.bg=!1,i.id="",i.state={loaded:!1},i}Ro()(i,t);var n=i.prototype;return n.vq=function(t,i,n){var e=this,r=new Rh(Rh.yg,null,null,i);this.Yd=function(){e.dispatchEvent(r),t.hg(r),e.Yd=null},(this.state.loaded||n)&&this.Yd()},n.dispatchEvent=function(i){var n=i.Cp();switch(n=i.Xp?n:!Object(Oo.r)(n)&&Ut.call(this,n),i.type){case Rh.yg:this.Sr||(xt(i,this.so),this.Sr=!0);break;case Rh.kd:xt(i,this.Mh);break;case Rh.jb:this.Yd&&this.Yd(),xt(i,this.Be);break;case Rh.hd:n instanceof ca&&(xt(i,n.Go),n.Wb&&n.Wb.forEach((function(t){"clickThru"===t.type&&t.url&&i.Ce.push(t.url)})));break;case kh.nd:Vt.call(this,n,i.Ce,i.Od,i);break;case Rh.LOADED:this.Yd&&this.Yd(),this.state.loaded=!0;case"iab_detection_started":case"iab_viewable":case"iab_detection_failed":case"VIDEO_VIEW_3P":case"stopped":case"linearChange":Vt.call(this,n,i.Ce,i.type)}return t.prototype.dispatchEvent.call(this,i)},n.zu=function(t,i){this.ms||(this.ms=!0,i=new Rh(Rh.jb,null,null,{error:i}),this.dispatchEvent(i),t.hg(i))},i}(Mo.default),oc=function(t){function i(){var i=t.call(this)||this;return i.title="",i.description="",i.Wt="",i.hy=null,i.vw=Date.now(),i}return Ro()(i,t),i}(sc),uc=new(function(t){function i(){return t.call(this,"InLine",[Hh])||this}Ro()(i,t);var n=i.prototype;return n.ia=function(i){var n=t.prototype.ia.call(this,i);return i=yh.Jk(i),n.title=yh.Ea(i.AdTitle),n.description=yh.Ea(i.Description),n.Wt=yh.Ea(i.Advertiser),n.hy=Hh.parse(i.Survey),n.Rt=yh.Ea(i.AdServingId),n.bk=yh.Ea(i.Category),n.expires=parseInt(yh.Ea(i.Expires),10),n},n.Lo=function(){return new oc},i}(za)),hc=[Rh.yg,Rh.kd,Rh.hd,Rh.LOADED,kh.nd,"iab_detection_started","iab_viewable","iab_detection_failed","VIDEO_VIEW_3P","stopped","linearChange"],ac=function(t){function i(){var i=t.call(this)||this;return i.bg=!0,i.Do=null,i}Ro()(i,t);var n=i.prototype;return n.bu=function(t){var i=this;t.ads.forEach((function(t){return hc.forEach((function(n){return t.addEventListener(n,Bt.bind(i))}))}))},n.ax=function(t,i){t.ads.forEach((function(t){i.uc&&(t.uc=(t.uc||[]).concat(i.uc)),i.gd&&(t.gd=(t.gd||[]).concat(i.gd)),t.Ja.forEach((function(t){var n=0<i.Ja.length&&i.Ja[0]instanceof ca;t.$c&&0===t.$c.length&&n&&(t.$c=t.$c.concat(i.Ja[0].$c))})),t.we&&t.bg&&(t.we=i.we.concat(t.we).filter((function(t,i,n){return n.indexOf(t)===i})))}))},i}(sc),cc=new(function(t){function i(){return t.call(this,"Wrapper",[Qh])||this}Ro()(i,t);var n=i.prototype;return n.ia=function(i){var n=t.prototype.ia.call(this,i),e=yh.Ik(i,"BlockedAdCategories");return n.Do=Qh.parse(yh.Ik(i,"VASTAdTagURI")),n.we=e&&(yh.Ea(e).split(",")||[]),n},n.Lo=function(){return new ac},i}(za)),fc=new(function(t){function i(){return t.call(this,"Ad",[uc,cc])||this}return Ro()(i,t),i.prototype.ia=function(t){var i=null,n=t.firstElementChild,e=this.Wc(n.nodeName);return e&&((i=e.parse(n)).Ef=t.getAttribute("adType")||"video",i.id=t.getAttribute("id"),n=t.getAttribute("sequence"),t=t.getAttribute("fallbackSequence"),n&&(i.wb=+n),t&&(i.Su=+t)),i},i}(mh)),lc=function(t){function i(i,n){return(i=t.call(this,i)||this).version=n,i}return Ro()(i,t),i}(y),vc=new(function(t){function i(){return t.call(this,"Error")||this}Ro()(i,t);var n=i.prototype;return n.ia=function(i){var n=t.prototype.ia.call(this,i);return n.version=i.getAttribute("version"),n},n.Ae=function(){return new lc},i}(Gh)),dc=function(){function t(){this.ads=[],this.Be=[]}var i=t.prototype;return i.tp=function(){return 0<this.ads.length?this:this.parent?this.parent.tp():null},i.Iv=function(t){for(var i=[],n=this;;){if(n.xc&&i.push(n.xc),n.parent===t||!t)return i;if(!n.parent)return[];n=n.parent}},t}(),pc=function(t){function i(i){var n=t.call(this,"VAST",[fc,vc])||this;return n.M=i,n}Ro()(i,t);var n=i.prototype;return n.Re=function(){return!0},n.ia=function(t){var i=this,n=new dc,e=yh.Ca(t);if(n.UC=t.getAttribute("adaptvFailover")||!1,t=e.Error){var r=this.Wc("Error");t.forEach((function(t){(t=r.parse(t))&&n.Be.push(t)}))}if((t=e.Extensions)&&this.M&&t.forEach((function(t){(yh.Ca(t).Extension||[]).forEach((function(t){"one_video_feacons"===(t&&t.getAttribute("type"))&&(t=yh.Ca(t).Feacons,new Vh(t).prepare(i.M))}))})),e=e.Ad){var s=this.Wc("Ad");e.forEach((function(t,i){(t=s.parse(t))&&(t.jc=i+1,n.ads.push(t))}))}return n},i}(mh),mc=To.a.Na("VastParser"),bc=function(){function t(t){this.M=t}return t.prototype.parse=function(t){return new pc(this.M).parse(function(t){t:{var i=lu()(t);if("string"===i)try{if(void 0!==window.DOMParser){var n=(new window.DOMParser).parseFromString(t,"text/xml");(0<n.getElementsByTagName("parsererror").length||!n.documentElement)&&mc.error("VastParser error:",n.getElementsByTagName("parsererror")[0].innerText);var e=n}else Ft("No XML parser found"),e=void 0;break t}catch(i){mc.error(i,"Invalid VAST xml",t),Ft("Invalid VAST: ".concat(i.message||i))}else{if("object"===i){e=t;break t}Ft("Cannot parse VAST: non-supported type",i)}e=void 0}return"VAST"!==(t=e.documentElement).nodeName&&Ft("Invalid VAST XML",eh),t}(t))},t}(),yc=["Bumper","Midroll","Overlay","Preroll"],gc=["Bumper","Midroll","Preroll"],wc=function(){function t(){}var i=t.prototype;return i.parse=function(t,i,n){if(this.ka=i||{},this.Tn=t.transactionId,this.Wd=t.adxResult,this.hh=t.usid,this.wn=t.rcid,this.Qs=t.overlayURL,this.vt=t.thumbnail,this.vs=t.fullsizeThumbnail,this.Ht=t.videoTitle,this.Ft=t.videoId,this.Et=t.videoDuration,this.Dr=t.acid,this.Rr=t.asid,this.Ki=t.auid,this.vn=t.rid,this.Va=t.parentSlot,this.rf=t.pblob||"",this.eh=t.spaceId||"",t.cpm&&(this.Gb=Number(t.cpm),isNaN(this.Gb)&&(this.Gb=Number(Object(Oo.b)(t.cpm)))),this.Gb=this.Gb||0,(this.Hc=t.impTracker)&&(this.Hc=this.Hc.replace(/\[ECPM]/g,this.Gb||"")),this.Ra=t.urls||[],t.url&&-1===this.Ra.indexOf(t.url)&&this.Ra.unshift(t.url),this.At=this.Ra.length,this.iy(),this.Ei=t.adEngineType||"VAST",this.yf=t.vastXml)try{"GEMINI"===this.Ei?this.Ox(JSON.parse(this.yf)):(this.na=new bc(n).parse(this.yf),this.na.Nd=this.ud),this.Lm=!!(this.na&&this.na.ads&&0<this.na.ads.length||this.nc&&this.nc.ads&&0<this.nc.ads.length)}catch(t){this.Yn=t}if(this.Mj=t.vastAds,this.N=t.config,!this.ud&&!this.yf&&!this.Mj&&"PREBID"!==this.Ei)throw Error("URL, VAST XML or Ads should be specified for each ad config entry");return this.Dt=t.vendor&&t.vendor.match(/[0-9a-zA-Z]{24}/g)?t.vendor:"",this.Zn=t.vendorName,this.nf=t.name,this.Gn=1e3*t.startTimeout||2147483647,this.Ys=Number(t.priorityBoost)||1,this.ta=t.type||t.adTypes&&t.adTypes[0]||"All",this.Un=t.types||[],this.ys=!!t.houseAd,this.tt=!!t.strictSiteCheck,this.Us=void 0===t.pbl||t.pbl,this.Zs=t.profitCenter,i=t.saleforce||{},this.Vr=i.bookingId,this.Fs=i.lineItemId,this.Kn=(t.trackers||{}).Impression||[],this.Dm=t.extraProperties||{},this.nn=t.podId,this.Cn=t.slotAdSeq,this.lm=t.bsfv,this.Cg=Math.random().toString(36).substr(2,9),this.Hj=!!t.skipVastRequestRetry,this.Jg=n&&n.T.Jg||0,1<this.Jg&&(this.Hj=!1),this.Wr=!!t.canRenderUI,this.Cs=!!t.isNative,this},i.wz=function(t){this.Ra.push(t)},i.rB=function(){return{adxResult:this.Wd,slot:this.Va,txid:this.Tn,usid:this.hh}},i.getUrl=function(t){return xh?xh.resolve(this.ud,t):this.ud},i.xB=function(){return this.At},i.iy=function(){0<this.Ra.length&&(this.ud=this.Ra.shift())},i.sp=function(){return this.N},i.vp=function(){var t=this,i=0;return this.Ra.forEach((function(n){return i+=t.Ep(n)})),i+=this.Ep(this.ud)},i.Ep=function(t){return-1===Uo.a.Dh(t||"").indexOf("konduit.me")?this.ka.Zc:1e4},i.IA=function(){return 1e4},i.getVendor=function(){return this.Dt||""},i.Gp=function(){return this.Zn||""},i.av=function(){return this.Vr||""},i.Fv=function(){return this.Fs||""},i.Ov=function(){return this.Zs||""},i.getAdEngineType=function(){return this.Ei||""},i.getType=function(){return this.ta||""},i.getAcid=function(){return this.Dr||""},i.getOverlayURL=function(){return this.Qs||""},i.getThumbnail=function(){return this.vt||""},i.getFullsizeThumbnail=function(){return this.vs||""},i.getVideoTitle=function(){return this.Ht||""},i.getVideoId=function(){return this.Ft||""},i.getVideoDuration=function(){return this.Et},i.vB=function(){return this.Kn},i.getAsid=function(){return this.Rr||""},i.Zu=function(){return this.Ki||""},i.Vf=function(){return this.yf||""},i.AB=function(){return this.na},i.JA=function(){return this.nc},i.Ox=function(t){this.nc=t},i.HB=function(){return this.Lm},i.BB=function(){return this.Yn},i.zB=function(){return this.Mj},i.Eh=function(){return this.nf||""},i.$B=function(){return this.Hj},i.isNative=function(){return this.Cs},i.bC=function(){return this.tt},i.lw=function(){return this.ys},i.zv=function(){if(this.Hc)return xh?xh.resolve(this.Hc):this.Hc},i.hB=function(){return this.Gb*this.Ys},i.uA=function(){return this.Gb},i.getRuleId=function(){return this.vn},i.tB=function(){return this.Gn},i.getTransactionId=function(){return this.Tn},i.jA=function(){return this.Wd},i.getUsid=function(){return this.hh},i.nB=function(){return this.wn},i.HA=function(){return this.Dm},i.WB=function(){return zt(this.ta)},i.ow=function(){return this.Us},i.dB=function(){return this.nn},i.sB=function(){return this.Cn},i.Jo=function(t){return this.ta===t||"All"===this.ta&&zt(t,!0)||-1!==this.Un.indexOf(t)||-1!==this.Un.indexOf("All")},i.bw=function(){var t=0===(this.ud||"").indexOf("https://tpc.googlesyndication.com")||0===(this.ud||"").indexOf("https://ima3vpaid.appspot.com");return 0<((this.Zn||"").match(/.*ADX.*/g)||[]).length||t},i.prepare=function(t,i){if(!(-1<yc.indexOf(i)))throw Error("Bad type value: ".concat(i));var n=this.clone();return n.ta=i,xh=t,n},i.clone=function(){var i=new t;return Object(Oo.g)(this,i),i},i.XA=function(){return this.rf},i.Xc=function(){return this.eh},i.Bx=function(t){this.Hr=t},i.ip=function(){return this.Hr},i.oA=function(){return this.lm},i.Yz=function(){return this.Cg},i.canRenderUI=function(){return this.Wr},t}(),_c=function(t){function i(){var i=t.call(this)||this;return i.Vb=null,i}Ro()(i,t);var n=i.prototype;return n.clone=function(){var t=new i;return Object(Oo.g)(this,t),t},n.parse=function(i,n){if(t.prototype.parse.call(this,i,n),i=i.slot||i||{},this.Vb=new _,this.Vb.delay=i.delay||1,this.Vb.width=i.width,this.Vb.height=i.height,this.Vb.top=i.top,this.Vb.left=i.left,this.Vb.eq=1e3*i.maxShowTime||this.ka.maxLinearShowTime||Number.POSITIVE_INFINITY,this.Vb.Ro="true"===String(i.disposable)||!1,this.Vb.position=i.position||_.wi,i=this.Vb.position,-1===[_.Tl,_.wi,_.Ul,_.Vl,_.xi,_.vi].indexOf(i))throw Error("Bad overlay slot position: ".concat(i));return this},i}(wc),Ec=function(){function t(){}return t.parse=function(t,i,n){var e=t.type||t.adTypes[0];switch(e){case"Overlay":return(new _c).parse(t,i);case"Preroll":case"Midroll":case"Bumper":case"All":case null:return(new wc).parse(t,i,n);default:throw Error("Bad ad config entry type: ".concat(e))}},t}(),Oc=function(){function t(t){this.Gu=[],t=t.config.lp(),this.Bz=t.asids||[],this.Vt=null==t.prerollInterleave?1:t.prerollInterleave,this.Dd=t.podSize||1,this.Cu=t.domainOptimisation;var i=t.timeout||{};this.Bw=1e3*(i.maxLinearShow||90),this.ng=1e3*i.soft||400,this.Zc=1e3*i.hard||8*this.ng,this.Qq=Math.min(1e3*i.start||6*this.Zc,2147483647),this.Aw=Math.min(1e3*i.maxAdSearch||0,2147483647),this.Zc<this.ng&&(i=[this.Zc,this.ng],this.ng=i[0],this.Zc=i[1]),this.volume=t.volume,this.qz=t.adStrategy||"ADSET_BASED",this.cw=t.isBrandedContent,this.Oq=t.skipSettings||{},this.eb=t.clickThroughUrl,this.Cx(t.aeg||[])}return t.prototype.Cx=function(){var t=this;(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(i){return t.Gu.push(i.map((function(i){return Ec.parse(i,t)})))}))},t}();Oc.da=["config"];var Ac=n(76),Sc=function(t){this.Ag=t.actionTracker};Sc.da=["actionTracker"];var Tc=function(t){function i(i,n){var e=t.call(this)||this;return e.ie=To.a.Na(n||"Pool"),e.kz=!1,Gt.call(eu()(e),i),e}Ro()(i,t);var n=i.prototype;return n.getEntries=function(){return this.Ec},n.size=function(){return this.Ec.length},n.Nh=function(){return 0===this.size()},n.addEventListener=function(n,e){t.prototype.addEventListener.call(this,n,e),n===i.Event.Xl&&this.Nh()&&this.cn(n,[this],e)},n.release=function(t){if(t)if(t.tf){for(var n=0;n<this.Ec.length;n++)if(this.Ec[n].tf===t.tf)return t=this.Ec.splice(n,1),this.ie.debug("Released",t,"pool",this.Ec),void(this.Nh()&&this.dispatchEvent(i.Event.Xl,this));Ht.call(this,t,"not found")}else Ht.call(this,t,"entry w/o pool key");else Ht.call(this,t,"invalid entry value")},i}(Mo.default);Tc.Event={Xl:"Pool.Released.All"};var jc=function(t){function i(i,n,e,r,s,o,u){return(i=t.call(this,i,n)||this).wf=r,i.yj=s,i.Fa=e,i.ef=o,i.$n=u,i}Ro()(i,t);var n=i.prototype;return n.wB=function(){return this.wf},n.eB=function(){return this.yj},n.sk=function(){return this.Fa},n.BA=function(){return this.ef},n.CB=function(){return this.$n},n.clone=function(){return new i(this.type,this.data,this.Fa,this.wf,this.yj,this.ef,this.$n)},i}(function(){function t(t,i){this.type=t,this.data=i}return t.prototype.clone=function(){return new t(this.type,this.data)},t}());jc.LOADING="EntriesManagerEvent.LOADING",jc.LOADED="EntriesManagerEvent.LOADED",jc.Nl="EntriesManagerEvent.FAILED";var Ic=To.a.Na("EntriesServerResponseParser"),Mc=function(){function t(t){this.N=t.config,this.ka=t.adsConfig,this.O=t.injector}return t.prototype.parse=function(t,i){var n=this;if(!Object(Oo.y)(t))throw Error("Received bad source ".concat(t));this.Qr=t.apid,this.yt=t.txid,this.Wd=t.adxResult,this.hh=t.usid,this.Ki=t.auid;var e=t.pods||[];return e.forEach((function(t){t.slots&&t.slots.forEach((function(e,r){e.adSeq=r+1,e.podId=t.id,e.aeg=Yt.call(n,e,i),e.hasAds=function(t){return t.aeg.some((function(t){return 0<t.length}))}(e)}))})),{Vh:e,source:t}},t}();Mc.da=["config","adsConfig","injector"];var Nc=To.a.Na("BaseAdEntriesLoader"),Rc=function(t){function i(i){var n=t.call(this)||this;return n.Ra=i.urls,n.Rs=i.parametersCombine,n}return Ro()(i,t),i.prototype.load=function(t,i){return i=i&&Object(Oo.H)(i)||"",O("".concat(t,"&").concat(i),null,{timeout:5e3,withCredentials:!0}).then((function(t){return t.data})).catch((function(t){Nc.error("Failed to load entries",t)}))},i}(Mo.default);Rc.da=["parametersCombine","urls"];var kc=function(t){function i(){return t.apply(this,arguments)||this}Ro()(i,t);var n=i.prototype;return n.reset=function(){this.Fa=this.Kj=this.rc=this.xn=null},n.load=function(i,n){if(this.Fa=i,i=this.Rs.Ip(this.Fa),qt(this.Fa)){if((n=this.rc[this.Fa]&&this.rc[this.Fa][n]&&this.rc[this.Fa][n].shift()).calculated)return Eo.a.resolve(this.cl({schema:{pods:[n]}}));i.schemaId=this.xn,i.podId=n.id}return t.prototype.load.call(this,this.Ra.Wu(),i).then(this.cl.bind(this))},n.cl=function(t,i){i&&(this.Fa=i),(i=t.schema||{}).id&&(this.xn=i.id),i=i.pods||[],Qt.call(this,i),Xt.call(this,i);var n=$t.call(this,i),e=Wt.call(this,i),r=this.Kj;return this.Kj=null,{defaultSlot:t.slot,podSize:r,pods:i,slots:n,timings:e,version:t.version}},i}(Rc);kc.da=["parametersCombine","urls"];var Lc=To.a.Na("AdEntriesManager"),Dc=1,Cc=function(){function t(t){this.U=t.eventBus,this.N=t.config,this.Ss=t.injector.Ya(Mc),this.kj=new kc(t),this.reset()}var i=t.prototype;return i.reset=function(){this.kj.reset(),this.Ta=[],this.Fm={},this.Uj=!1},i.release=function(t){for(var i=0;i<this.Ta.length;i++){for(var n=this.Ta[i],e=0;e<n.length;e++){var r=n[e];if(r.Qd===t.Qd)return r.release(t),void(0===r.size()&&(n.splice(e,1),this.Uj=this.Uj||t.Up))}0===n.length&&this.Ta.splice(i,1)}Lc.warn("Unable to release entry because pool doesn't exist",t,this.Ta)},i.ex=function(t,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;this.U.dispatchEvent(new Au("Reporting.Ad.Request",{type:t})),n?ri.call(this,this.kj.cl(n,t),t):ni.call(this,t,i)},i.cq=function(t){(t=ei(t))&&(this.Fm[t]=t)},i.pk=function(t){Jt.call(this),ti.call(this);var i=this.Ta[0]||[];return Kt.call(this,i),i=i.filter((function(i){return i.getEntries().filter((function(i){return i.Jo(t)}))})),i[0]&&i[0].getEntries()||[]},i.Ax=function(t){Zt.call(this,[t])},t}();Cc.da=["eventBus","adsConfig","config","injector"];var Pc=["[AD_DURATION]","{ad_duration}"],xc=["{errNo}"],Uc=["[ADAP_VIEWABLE_OPPORTUNITY]"],Vc=["{adNumber}","{adSeq}"],Bc=["[APID]"],Fc=["[APP_ID]"],zc=["|ap|","[AUTOPLAY]","[AUTO_INITIATION]"],Gc=["[BCID]","[bcid]"],Hc=["|beoncw|","[BEON_CW]"],Yc=["|beonvid|","[BEON_VIDEO_ID]"],qc=["[BID]"],Wc=["[container_height]","[CONTAINER_HEIGHT]"],Qc=["[container_width]","[CONTAINER_WIDTH]"],$c=["[DE_RSS_ID]"],Xc=["|DE_URL|","[DE_URL]"],Zc=["[DEPTH]"],Jc=["[DOMAIN_ROOT]"],Kc=["[DOMAIN_NAME]"],tf=["[ECPM]"],nf=["[EUCONSENT]","EUCONSENT","[GDPR_CONSENT]"],ef=["[P_VW_ACTIVE]","<a.active>"],rf=["[GDPR]","GDPR"],sf=["[IP_ADDR]","[IPADDRESS]","IPADDRESS"],of=["[OATH_FIRSTPARTY]","OATH_FIRSTPARTY"],uf=["[LOCATION_LAT]","[LATITUDE]","LATITUDE"],hf=["[LOCATION_LON]","[LONGITUDE]","LONGITUDE"],af=["[MOAT_PREBID]"],cf=["|muted|","[MUTED]"],ff=["[MCC]","[MNC]","[APPNAME]"],lf=["[PID]"],vf=["{playerRev}"],df=["[P_VW_SIZE]","<a.psize>","{psize}"],pf=["[PLAYER_TYPE]"],mf=["[PLAYLIST_SEQUENCE]"],bf=["[RSS_ID]"],yf=["[SID]"],gf=["[SOUND]"],wf=["[SPACE_ID]","SPACE_ID"],_f=["[USER_AGENT]","[USERAGENT]","USERAGENT"],Ef=["[VAST_DURATION]","{vast_duration}"],Of=["[VIDEO_COMPANY_ID]"],Af=["[VIDEO_DESCRIPTION]","VIDEO_DESCRIPTION"],Sf=["[VIDEO_DETAIL_PAGE]","VIDEO_DETAIL_PAGE"],Tf=["[VIDEO_DURATION]","VIDEO_DURATION"],jf=["[VIDEO_FILE_URL]","VIDEO_FILE_URL"],If=["[video_height]","[VIDEO_HEIGHT]"],Mf=["[VIDEO_ID]","VIDEO_ID"],Nf=["[VIDEO_KEYWORDS]","VIDEO_KEYWORDS"],Rf=["|%|","[VIDEO_PERCENT]"],kf=["[VIDEO_TITLE]","VIDEO_TITLE"],Lf=["[VIDEO_TITLE_ENC]"],Df="[VIDEO_URL] VIDEO_URL |URL| [CONTENT_URL] [EMBEDDING_PAGE_URL] EMBEDDING_PAGE_URL [URL] [A_D_PAGEURL]".split(" "),Cf=["[video_width]","[VIDEO_WIDTH]"],Pf=["[P_VW_VIEWABLE]","<a.viewable>"],xf=["[P_VW_VIEWABLE_OPPORTUNITY]","<a.viewableOpportunity>"],Uf=["[VVUID]"],Vf=["[VPAID_ERROR_MESSAGE]","{errmsg}"],Bf=["[SS_REQ]","SS_REQ"],Ff=n(14),zf=n.n(Ff),Gf=function(){function t(t,i){Array.isArray(t)||(t=[t]),this.Oc=i,this.le=t.slice(0)}var i=t.prototype;return i.ZA=function(){return this.le},i.apply=function(t){if(!t||!this.le.some((function(i){return-1<t.indexOf(i)})))return t;var i=t,n=this.Oc;n=null!=(n=Object(Oo.s)(n)?n():n)?n.toString():"";for(var e=0;e<this.le.length;e++){var r=this.le[e],s=null!=r.match(/^[^\w%\s]/g),o=null!=r.match(/[^\w%\s]$/g);r=r.replace(/([{}\(\)\^$&.\*\?\/\+\|\[\\\\]|\]|\-)/g,"\\$1"),i=i.replace(new RegExp((s?"":"([^\\w%\\s]|^)")+r+(o?"":"([^\\w%\\s]|$)"),"g"),(s?"":"$1")+n+(o?"":"$2"))}return i},i.Uo=function(t){return t.le[0]===this.le[0]},t}(),Hf=function(){function t(t,i){this.Ts=t,this.bt=i}return t.prototype.apply=function(t){return t.replace(this.Ts,this.bt)},t}(),Yf=function(){function t(t){this.bb=t||[]}var i=t.prototype;return i.join=function(i){if(!i)return this;var n=new t,e=this;return n.resolve=function(t){return i.resolve(e.resolve(t))},n},i.resolve=function(t){if(!t)return t;for(var i=0;i<this.bb.length;i++)t=this.bb[i].apply(t);return t},t}(),qf=function(){function t(t,i){var n=this;this.T=t.environment,this.N=t.config,this.Db=t.smartViewability,this.ga=t.display,this.ac=t.hostWindowParamsObtainer,this.ai=(i||[]).concat([[Ha,function(){return Math.random().toString().slice(2,10)}],[Ya,"unknown"],[qa,function(){return(new Date).getTime()}],[$a,function(){return n.T.fb()&&n.T.fb().ip()}],[Bc,function(){var t=n.N.Xd;return t&&t.utid}],[Fc,function(){return n.N.Sb("app_id")}],[zc,function(){return n.N.$f()?1:0}],[Gc,function(){return n.N.$d}],[Hc,function(){return Object(Oo.o)(n.N.Sb("beoncw"),0)}],[Yc,function(){return Object(Oo.o)(n.N.Sb("beonvid"),1)}],[qc,function(){return n.N.tk()}],[Wc,function(){return ci.call(n).height}],[Qc,function(){return ci.call(n).width}],[Ka,function(){var t=n.ga.getCurrentTime(),i=Math.round(t),e=~~(i/3600),r=i-3600*e;return r=~~(r-60*(i=~~(r/60)))-(500<(t=+(t%1).toFixed(3).substring(2))?1:0),"".concat("".concat((10>e?"0":"")+e,":")+(10>i?"0":"")+i,":").concat(10>r?"0":"").concat(r).concat(t?".".concat(t):"")}],[$c,function(){return fi.call(n).deRssId}],[Xc,function(){return encodeURIComponent(n.Ak())}],[Jc,function(){return n.sv()}],[Kc,function(){return location.host}],[ef,function(){return Lo.isVisible()?1:0}],[cf,function(){return n.ga.isMuted()?1:0}],[ff,function(){return""}],[lf,function(){return n.N.yd}],[pf,function(){return n.N.Rf()}],[df,function(){var t=ci.call(n);return 0===(t=Math.max(t.width,t.height))?-1:350>t?1:500>t?2:3}],[bf,function(){return fi.call(n).rssVideoId}],[_f,function(){return encodeURIComponent(_o.a.Vv())}],[Of,function(){return fi.call(n).Jz}],[Af,function(){return fi.call(n).description}],[Sf,function(){return fi.call(n).detailPage}],[Tf,function(){var t=fi.call(n).metadata||{};return t.duration?Math.round(t.duration/1e3):""}],[jf,function(){var t=fi.call(n);return t.videoUrls&&t.videoUrls[0]}],[If,function(){return ci.call(n).height}],[Mf,function(){return fi.call(n).id}],[Nf,function(){return fi.call(n).keywords}],[Rf,function(){return(n.T.Dk()||{}).Pz}],[kf,function(){return fi.call(n).title}],[Lf,function(){return encodeURIComponent(fi.call(n).title||"")}],[Df,function(){return n.Ak()}],[Cf,function(){return ci.call(n).width}],[Uc.concat(af),function(){return n.Db.Ba()}],[Pf.concat(xf),function(){return n.Db.Wf()}],[Uf,function(){return n.N.lf.vvuid}],[uf,function(){return n.N.Ee()?n.N.Ee().latitude:""}],[hf,function(){return n.N.Ee()?n.N.Ee().longitude:""}],[sf,function(){return n.N.Ee()?n.N.Ee().ipAddress:""}],[Zc,function(){return _o.a.yv()}],[yf,function(){return n.N.Sb("sid")||n.N.vk()}],[gf,function(){return parseInt(100*n.T.getVolume(),10)}],[wf,this.ac.Xc()],[nf,function(){var t=n.N.Fh();return t&&t.gdprConsentData}],[rf,function(){var t=n.N.Fh();return t&&Number(t.gdprApplies)}],[mf,function(){var t=n.T.Qj;return 0<=t?t+1:""}],[of,function(){var t=n.N.Fh();return t&&t.isOathFirstParty}],[Bf,0]]),this.bb=this.ai.map((function(t){return t=Mu()(t,2),new Gf(t[0],t[1])}))}var i=t.prototype;return i.Zt=function(t){return t.reduce((function(t,i){i=Mu()(i,2);var n=new Gf(i[0],i[1]);return(i=Object(Oo.l)(t,(function(t){return t.Uo(n)})))?t[t.indexOf(i)]=n:t.push(n),t}),zf()(this.bb))},i.resolve=function(t,i){return i=i?this.Zt(i):this.bb,new Yf(i).join(oi(/(\[MACROS:)(.+?)(\])/g,ui.bind(this)).join(oi(/(\|MACROS:)(.+?)(\|)/g,ui.bind(this))).join(oi(/(\[ENC_MACROS:)(.+?)(\])/g,hi.bind(this))).join(oi(/(\|ENC_MACROS:)(.+?)(\|)/g,hi.bind(this)))).join(oi(/(\[META:)(.+?)(\])/g,ai.bind(this)).join(oi(/(\|meta:)(.+?)(\|)/g,ai.bind(this)))).resolve(t)},i.sv=function(){var t=location.hostname.split(/\./);return 2===t.length?t.slice(-2)[0]:t.slice(-3)[0]},i.Ak=function(){return encodeURIComponent(this.N.Sb("url")||_o.a.Yc(window))},t}();qf.da=["environment","config","smartViewability","display","hostWindowParamsObtainer"];var Wf=function(t){function i(i){var n=i.geminiMacrosResolver,e=t.call(this,i,[[Vc,function(){return e.M.Tf()}],[tf,function(){return e.M.fb()&&e.M.fb().Gb||""}],[vf,function(){return e.N.Ek()}],[Ef,function(){return e.M.getCreativeDuration()}],[Pc,function(){return Math.round(e.M.getDuration())}],[Za,function(){return e.cv()}],[nc,function(){return e.M.Dg}],[Wa,function(){return e.M.Uf()}],[Qa,function(){return e.M.Qf()}],[ic,function(){return e.M.Sf()}],[Xa,function(){return e.Ur.cf.join(",")}],[Ja,function(){return e.M.jv()}],[tc,function(){return e.Ak()}],[ec,function(){return-1}],[rc,function(){return-2}]].concat(n.ai))||this;return e.N=i.config,e.T=i.environment,e.Ur=i.blockedCategoriesHandler,e.hz=n,e}Ro()(i,t);var n=i.prototype;return n.lg=function(t){return this.M=t,this},n.cv=function(){var t=this.M.sk();if(this.T.aw())return"4";switch(t){case"Preroll":case"Bumper":return"1";case"Midroll":return"2";case"Overlay":return"0";default:throw Error("Bad ad type: ".concat(t))}},i}(qf);Wf.da="adsConfig environment config smartViewability display blockedCategoriesHandler hostWindowParamsObtainer geminiMacrosResolver".split(" ");var Qf=function(){function t(t){this.M=t}var i=t.prototype;return i.ik=function(){},i.getType=function(){return null},i.fA=function(){return this.M},t}(),$f=function(t){function i(i,n){return(i=t.call(this,i)||this).Uq=n||0,i}return Ro()(i,t),i}(Cu),Xf=function(t){function i(n,e,r,s){return(n=t.call(this,n)||this).severity=void 0===e?i.zi:e,n.timeout=r,n.ib=s,n}return Ro()(i,t),i}(Cu);Xf.$l=0,Xf.zi=1,Xf.az=2,n(103);var Zf="advertising.com doubleclick.net fwmrm.net tremorhub.com googlesyndication.com rubiconproject.com casalemedia.com doubleverify.com innovid.com moatads.com pubmatic.com mathtag.com jivox.com adsafeprotected.com adform.net dotomi.com".split(" "),Jf=["simpli.fi","amazon-adsystem.com","stackadapt.com","serving-sys.com"],Kf=function(){function t(t,i,n,e){this.Zd=t,this.W=i,this.ka=n,this.M=e,this.un=this.Vn=!1}var i=t.prototype;return i.ix=function(t,i,n){return this.Vn=this.wy(this.rv(t)),li.call(this,t,i,n)},i.Fp=function(t,i){return i=[[nc,this.M.Uu()],[Wa,i],[Xa,this.Zd.cf.join(",")]],t=t||this.W&&this.W.getUrl(i),t=this.M.Pb.resolve(t,i),t=Uo.a.ck(t),Ao.a.hl(t,"#",encodeURIComponent("#"))},i.wy=function(t){return Zf.includes(t)||Jf.includes(t)||(this.un=!0),!(!Zf.includes(t)&&Jf.includes(t))||!(Jf.includes(t)||!Zf.includes(t))&&void 0},i.rv=function(t){var i=document.createElement("a");return i.href=t,i.host.split(/\./).slice(-2).join(".")},t}(),tl="VastLoader.Vast.Loading",il="VastLoader.Vast.Loaded",nl=To.a.Na("VastLoader"),el=function(t){function i(i,n,e){var r=t.call(this)||this;return r.M=i,r.rb=n,r.W=e,r.ue=0,r.Ct=new bc(r.M),r.Nj=null,r.O=r.M.O,r.Fc=r.O.S("errorTracker"),r.N=r.O.S("config"),r.ka=r.O.S("adsConfig"),r.Zd=r.O.S("blockedCategoriesHandler"),r.Zd.Hq([]),r.qa=r.O.S("beaconDataHolder"),r.Oj=new Kf(r.Zd,r.W,r.ka,r.M),r}Ro()(i,t);var n=i.prototype;return n.Op=function(){this.ue=0},n.og=function(){this.af=(new Date).getTime(),this.ge=!0},n.Rw=function(t,i,n){try{var e=this.Ct.parse(t);return e.Nd=n,i&&i(e),this.Ne(e,null,0,n)}catch(t){nl.error("Failed to parse VAST ",t),this.Gd(t.message,null,t.code||eh)}},n.Ne=function(t,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,e=3<arguments.length?arguments[3]:void 0;if(this.Nj=t,t=Ei(t),Oi.call(this,t)){if(i||wi(t),this.$a=t.ads[n],this.M.dispatchEvent(new Au(rl,{ad:this.$a,Tz:this.W,cD:e})),this.kf=t,this.$a.bg)var r=Ai.call(this,n);else(n=this.$a).bk&&-1!==this.Zd.cf.indexOf(n.bk)?(_i.call(this,Vu),this.Gd("Inline ad with category ".concat(this.W.bk," has been blocked"),null,Vu)):(n=t,!1!==this.ge&&(So.a.clearTimeout(this.Ln),this.ge=!1,e=(new Date).getTime()-this.af,bi.call(this,n,null,e),this.Je&&this.Je(n,e)));return r}},n.$w=function(t,i){this.Ne(t,void 0,i)},n.load=function(t,i){this.Op(),this.og(),this.Je=t,this.Ke=i,t=this.W?this.W.vp():this.ka.Zc,this.Ln=So.a.setTimeout(pi.bind(this,t),t),gi.call(this,void 0,void 0)},n.xu=function(){--this.ue},n.Gd=function(t,i,n){var e=this.kf;this.kf=null,this.Sg=n=n||qu,e&&(e.ads&&0<e.ads.length||e.parent)?("VAST ajax error"===t&&_i.call(this,n),0===e.ads.length&&e.parent&&(e=Si.call(this,e,n)),0<e.ads.length&&this.$a===e.ads[0]&&e.ads.shift(),0<e.ads.length?this.Ne(e,!0):yi.call(this,t+(i?" (".concat(i,")"):""),n)):yi.call(this,t+(i?" (".concat(i,")"):""),n)},i}(Mo.default),rl="VastLoader.Vast.ProcessAd",sl=function(t){function i(i,n,e){return(i=t.call(this,i,n,e)||this).W=e,i}return Ro()(i,t),i.prototype.load=function(t,i){this.Op(),this.og(),this.Je=t,this.Ke=i,(t=this.W.na)?this.Ne(t):(t=this.W.Yn,this.Gd(t.message,null,t.code||eh))},i}(el),ol=To.a.Na("VastEventHandler"),ul=/https?:/,hl=[],al=function(){function t(t){this.M=t,this.ka=this.M.ka,t=this.M.O,this.U=t.S("eventBus"),this.Rn=t.S("externalTracker"),this.N=t.S("config"),this.ka.cw&&this.U.addEventListener("Reporting.Ad.Engine.Response",Ti.bind(this))}return t.prototype.hg=function(t,i){if(t.type===Rh.kd?Object(Oo.d)(Mi.bind(this,t,i)):Mi.call(this,t,i),t.type===Rh.hd)try{var n=t.Vc();n&&R(n)}catch(t){ol.error("onVastEvent",t)}},t}(),cl=function(){function t(t,i){this.Bf=t.slice(),this.qm=i,this.Oa=[],Ni.call(this)}var i=t.prototype;return i.reset=function(){for(var t=0;t<this.Oa.length;t++)this.Oa[t].sa();this.Oa=[]},i.release=function(t){-1!==(t=this.Bf.indexOf(t))&&(this.Bf.splice(t,1),Ni.call(this))},i.xy=function(){for(var t=0;t<this.Bf.length;t++){var i=this.Bf[t];i=Ou.a.bind(i,"VASTAdEngineComplete",this.release.bind(this,i)),this.Oa.push(i)}},t}(),fl=function(){function t(t){this.ga=t,this.Pn=[]}var i=t.prototype;return i.Md=function(){},i.Lk=function(){},i.createElement=function(){},i.load=function(){this.element=this.createElement()},i.Xk=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=this.P.Da;t.duration=i.duration,t.skippable=i.hi||!1,t.skipOffsetTime=i.gi||null,t.skipOffsetPercent=i.fi||null,(i=this.P.ad?this.P.ad.wb:null)&&(t.sequence=i),this.bp(t),this.P.dispatchEvent(new Au("VASTAdStarted",t))},i.bp=function(t){this.Mr||(this.P.dispatchEvent(new Au("VASTAdStarting",t)),this.Mr=!0)},i.fg=function(){this.hf||(this.hf=!0,this.P.Kk(),this.P.Ed(Rh.kd),this.P.dispatchEvent(new Au(Su.wg,{Da:this.P.Da,Kb:this.P.ad&&this.P.ad.Kb||""})),this.track(Bh.CREATIVE_VIEW))},i.sl=function(t){.25<t&&this.qb(Bh.FIRST_QUARTILE),.5<t&&this.qb(Bh.MIDPOINT),.75<t&&this.qb(Bh.THIRD_QUARTILE)},i.stop=function(){this.P.complete(!0)},i.ed=function(){this.stop()},i.skip=function(){this.P.stop()},i.track=function(t,i){this.P.lk(t,i)},i.qb=function(t){t===Bh.COMPLETE&&!this.Eb||-1!==this.Pn.indexOf(t)||(this.Pn.push(t),this.track(t,void 0))},i.resize=function(){},i.invokeAdMethod=function(){},i.setVolume=function(){},i.resume=function(){},i.pause=function(){},i.getCurrentTime=function(){var t=this.Fe(),i=this.getDuration();return 0<i&&0<t?i-t:0},i.Fe=function(){return-1},i.getDuration=function(){return-1},i.fl=function(){this.Eb=!0},i.aC=function(){return this.Eb},t}(),ll=To.a.Na("SimpleVideoMediaElement"),vl={ri:"created",PAUSED:"paused",PLAYING:"playing",mc:"stopped"},dl=function(t){function i(i,n,e,r){return(i=t.call(this,i)||this).V=vl.ri,i.ao=n.url,i.fa=e,i.Gr=(new Date).getTime(),i.qa=r.S("beaconDataHolder"),i}Ro()(i,t);var n=i.prototype;return n.load=function(){t.prototype.load.call(this),this.P.Kf()},n.Lk=function(){try{this.pw()?this.ga.Xx(this.ao):this.ga.Px(this.ao),this.V!==vl.mc&&(this.Gt=!0,this.Qa=Ou.a.group(Ou.a.bind(this.ga,"VideoClickEvent",Ri.bind(this)),Ou.a.bind(this.ga,"VideoErrorEvent",ki.bind(this)),Ou.a.bind(this.ga,"VideoPlayEvent",Vi.bind(this)),Ou.a.bind(this.ga,"VideoStartEvent",Bi.bind(this)),Ou.a.bind(this.ga,"VideoResumeEvent",Pi.bind(this)),Ou.a.bind(this.ga,"VideoPauseEvent",Li.bind(this)),Ou.a.bind(this.ga,"VideoEndEvent",Ui.bind(this)),Ou.a.bind(this.ga,"VideoVolumeChangedEvent",Di.bind(this)),Ou.a.bind(this.ga,"VideoTimeUpdateEvent",Fi.bind(this)),Ou.a.bind(this.ga,"VideoWaiting",Ci.bind(this)),Ou.a.bind(this.ga,"VideoFallbackEvent",xi.bind(this)),Ou.a.bind(this.fa,"click",Ri.bind(this))),this.P.Da.eb&&((this.ga.R.style||{}).cursor="pointer"),this.Md())}catch(t){ll.error("Failed to set video: ".concat(t.message)),this.ed(t.message)}},n.pw=function(){var t=this.P.fb();return t&&"Preroll"===t.getType()},n.Md=function(){this.V!==vl.mc&&this.ga.play()},n.stop=function(){if(this.V=vl.mc,this.Gt){this.Qa.sa(),this.ga.stop(),this.ga.Bq();var i=this.ga.R.style;i&&(i.cursor="")}t.prototype.stop.call(this)},n.pause=function(){this.V===vl.PLAYING&&this.ga.pause()},n.resume=function(){this.V===vl.PAUSED&&this.ga.play()},n.Fe=function(){return this.ga.Fe()},n.ed=function(t,i){this.V=vl.mc;var n=Hu,e="video playback error";switch(i){case 2:n=Gu;break;case 3:case 4:n=Wu;break;case 5:n=Wu,e="autoplay issue"}this.error=n,this.P.dispatchEvent(new Au("VASTAdError"),t),this.hf||this.P.Ed(Rh.jb,{details:e,error:n}),this.stop()},n.setVolume=function(t){this.ga.setVolume(t),this.ga.mute(0===t)},n.getDuration=function(){return this.ga.getDuration()},i}(fl),pl=n(97),ml=n.n(pl),bl=function(){function t(t){var i=t.adsConfig.Oq||{};this.Ij=!Object(Oo.r)(i),this.M=t.adSystem,this.lb=t.dom,this.Gg=t.adContainerProvider.Jc,this.tc=t.videoTagProvider,this.qt=i.skippableText||"Skip ad %t",this.xt=i.timerText||"Skip ad in %ds",this.mt=i.showTimer||!1,this.nt=i.skipInSeconds||5,this.Gs=i.maxLinearShowTime||90,this.Rd=!1,this.Oa=Ou.a.group(Ou.a.bind(this.M,Su.Pd,zi.bind(this)))}return t.prototype.destroy=function(){this.Oa.sa(),Object(Oo.E)(this.Rb)},t}();bl.da="adSystem adsConfig display dom adContainerProvider videoTagProvider".split(" ");var yl=n(68),gl=function(t){function i(i,n,e,r,s){var o=t.call(this)||this;return o.ad=i,o.Da=n,o.va=e,o.rn=!0,o.M=r,o.O=r.O,o.od=o.O.S("adContainerProvider"),o.fa=o.od.Jc,o.Fc=o.O.S("errorTracker"),o.N=o.O.S("config"),o.W=s.fb(),o.ma=s,o.Xf=Object(Oo.h)("div",{class:"ad-icons-layer",style:"position: relative"}),o.type="AdView",o}Ro()(i,t);var n=i.prototype;return n.Zf=function(t){var i=this;(this.oa=this.Zh())?(this.M.addEventListener("AdSystem.Resize",this.oa.resize.bind(this.oa)),this.M.addEventListener("AdSystem.InvokeAdMethod",(function(t){i.oa.invokeAdMethod(t.name,t.data)})),this.oa.P=this,this.setVolume(t),this.oa.load()):this.complete(!0)},n.by=function(){this.fd=this.oa.element,this.Oh&&(this.Oh.appendChild(this.fd),this.fd=this.Oh)},n.noResize=function(){this.rn=!1},n.Kf=function(){this.by(),this.resize(),this.fd&&this.fa.appendChild(this.fd),this.fa.appendChild(this.Xf),this.oa.Lk()},n.Md=function(){this.oa&&this.oa.Md()},n.resize=function(){if(this.rn&&this.fd){var t=this.fd.style;t.position="absolute";var i=this.ak(this.fa.offsetWidth,this.fa.offsetHeight,this.getAdWidth(),this.getAdHeight(),this.rk(),this.qk());t.top=isNaN(i.y)?i.y:"".concat(i.y,"px"),t.left=isNaN(i.x)?i.x:"".concat(i.x,"px"),t.width=this.bd()?"100%":"".concat(i.width,"px"),t.height=this.bd()?"100%":"".concat(i.height,"px")}},n.stop=function(t){this.oa?t?this.oa.ed(yl.a):this.oa.stop():this.complete(!0)},n.skip=function(){this.oa?this.oa.skip():this.complete(!0)},n.complete=function(t,i){this.fd&&Object(Oo.E)(this.fd),Object(Oo.E)(this.Xf),this.oa&&this.oa.error?this.dispatchEvent(new Au("VASTAdError")):t?this.dispatchEvent(new Au("VASTAdFinishedForce")):this.dispatchEvent(new Au("VASTAdFinished")),this.kk(t,i)},n.kk=function(t,i){var n=new Au("VASTAdEngineComplete");i&&(n.data=i.data,n.currentTime=i.currentTime),n.force=t,this.dispatchEvent(n)},n.Ed=function(t,i){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(t===Rh.jb){if(!n&&this.ns)return;this.ns=!0,this.ma.pg("loaded",i.error,i.details)}this.ad.dispatchEvent(new Rh(t,this.Da,null,i))},n.lk=function(t,i){this.ad.dispatchEvent(new kh(t,this.Da,i))},n.rh=function(t,i,n){var e;this.ln=!n,n||(e=this.Vc())&&!i||!t||"string"!=typeof t||(e=t),this.ad.dispatchEvent(new Rh(Rh.hd,this.Da,e))},n.setVolume=function(t){void 0!==t&&(this.za=t),this.oa&&this.oa.setVolume(this.za)},n.pause=function(){this.oa&&this.oa.pause()},n.Kk=function(){this.dispatchEvent(new Au("VASTAdImpression"))},n.lq=function(){this.dispatchEvent(new Au("VASTAdPaused",void 0))},n.Sh=function(t){this.dispatchEvent(new Au("VASTAdVolumeChanged",t))},n.Rh=function(t){this.dispatchEvent(new Au("VASTAdTimeUpdate",t)),this.lk(Bh.PROGRESS,t)},n.Nw=function(){this.dispatchEvent(new Au("VASTAdWaiting"))},n.resume=function(){this.oa&&this.oa.resume()},n.nq=function(){this.dispatchEvent(new Au("VASTAdResumed"))},n.hp=function(){if(this.oa){var t=this.oa.error;return t&&"object"===lu()(t)&&(t.Kb=this.ad.Kb||"",t.Da=this.Da),t}return null},n.ak=function(t,i,n,e,r,s){void 0===r&&(r=!0),void 0===s&&(s=!0);var o=t,u=i;return r?s&&(o/u<n/e?u=e*o/n:o=n*u/e):(o=n,u=e),{height:u,width:o,x:(t-o)/2,y:(i-u)/2}},n.getAdWidth=function(){return-1},n.getAdHeight=function(){return-1},n.rk=function(){return!0},n.qk=function(){return!0},n.cg=function(){this.ad.dispatchEvent(new Rh("linearChange",this.Da))},n.Zh=function(){},n.fb=function(){return this.W},n.Vc=function(){},n.vA=function(){return this.Da.id},n.QA=function(){return this.va},n.bB=function(){return this.ln},n.bd=function(t){return(t=t||this.va)&&t.cb&&"vpaid"===t.cb.toLowerCase()},i}(Mo.default),wl=n(3),_l=function(t){function i(){return t.apply(this,arguments)||this}return Ro()(i,t),i}(Au);_l.am="UNIQUE_ERROR";var El=n(52),Ol=function(){function t(t){this.lb=t}var i=t.prototype;return i.no=function(){},i.show=function(){},i.KB=function(){},t}(),Al=function(t){function i(i,n){return(i=t.call(this,i,n)||this).V={size:{}},i.Oa=[],i}Ro()(i,t);var n=i.prototype;return n.Yv=function(t,i,n,e){var r=Object(Oo.w)(window);r&&(window.secureVPAIDController=this.Kh.bind(this)),this.Tc("init",{adStartTimeout:e,creativeData:n,desiredBitrate:i,isInSafeFrame:r,url:this.sc,viewMode:t})},n.Tc=function(){for(var i,n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];"setAdVolume"===e[0]&&this.mute(0===e[1][0]),(i=t.prototype.Tc).call.apply(i,[this].concat(e))},n.subscribe=function(t,i){this.Oa[i]||(this.Oa[i]=[]),this.Oa[i].push({uh:i,listener:t})},n.unsubscribe=function(t,i){this.Oa[i]&&(this.Oa[i]=this.Oa[i].filter((function(i){return i.listener!==t})),0===this.Oa[i].length&&this.Tc("unsubscribe",{eventName:i}))},n.getAdVolume=function(){return this.V.volume},n.getAdSkippableState=function(){return this.V.isSkippable},n.getAdExpanded=function(){return this.V.isExpanded},n.getAdWidth=function(){return this.V.size.width},n.getAdHeight=function(){return this.V.size.height},n.getAdDuration=function(){return this.V.duration},n.getAdLinear=function(){return this.V.isLinear},n.getAdRemainingTime=function(){return this.V.remainingTime},n.ye=function(){this.Oa=[],t.prototype.ye.call(this)},n.mute=function(t){this.kg("mute",t)},n.Kh=function(t){"ready"===t.data.type?(this.uf.resolve(),Xi.call(this)):"error"===t.data.type?this.Qh(t.data.data):(t.data.data.property&&(this.V[t.data.data.property]=t.data.data.value),this.Oa[t.data.type]&&this.Oa[t.data.type].forEach((function(i){return i.listener(t.data)})))},i}(Mh),Sl=0,Tl=function(t){function i(i){return t.call(this,i.S("dom"))||this}return Ro()(i,t),i.prototype.no=function(t,i,n){var e="".concat(/localhost:8080/.test(document.location.origin)?"".concat(document.location.origin,"/"):cu.a["cdn.url.yimg"],"xdomain-vpaid.html?id=").concat(Sl++),r=this.lb.createElement("iframe");r.id="xdomainFrame",r.style.position="absolute",r.style.top=0,r.style.width="100%",r.style.height="100%",r.style.zIndex=2,r.style.pointerEvents="auto !important",r.setAttribute("frameborder","0"),r.setAttribute("allow","autoplay");var s=new Al(r,i);return r.onload=function(){n&&n(s)},r.src=e,t.appendChild(r),s.uf.Ma},i}(Ol),jl=function(t){function i(n){var e=t.call(this,i.TYPE)||this;return e.xq=n,e}return Ro()(i,t),i.prototype.clone=function(){return new i(this.xq)},i}(Au);jl.TYPE="AdRemainingTimeUpdateEvent";var Il=To.a.Na("VPAIDMediaElement"),Ml={ea:203,code:901,description:"General VPAID error.",ya:9416},Nl=["There was an error in the google ad. AdError 1009: The VAST response document is empty."],Rl=[wl.p,wl.q,wl.o,wl.i,wl.e,wl.y,wl.w,wl.x,wl.z,wl.v],kl=function(t){function i(i,n,e){var r=3<arguments.length&&void 0!==arguments[3]&&arguments[3],s=t.call(this,e.S("display"))||this;return s.$i={},s.gj=!0,s.Qb=i,s.Fa=n,s.O=e,s.Cm=[],s.be=Ou.a.empty(),s.ht=s.O.S("adContainerProvider").Jc,s.N=s.O.S("config"),s.M=s.O.S("adSystem"),s.ka=s.O.S("adsConfig"),s.za=0,s.sc=s.Qb.url||s.Qb.value,s.Hm=Cn.bind(eu()(s)),s.Bs=r,s.qa=s.O.S("beaconDataHolder"),s.tc=s.O.S("videoTagProvider"),s.Cj=new Tl(s.O),s}Ro()(i,t);var n=i.prototype;return n.Qh=function(t){return this.Zi=t,this},n.load=function(){t.prototype.load.call(this),this.P.noResize(),this.P.Kf(),nn.call(this,!(this.Ok()||"Overlay"===this.Fa))},n.createElement=function(){return Object(Oo.h)("div",{style:"position: absolute; width: 100%; height: 100%; z-index: 6; text-align: left; top:0px;"})},n.Lk=function(){nn.call(this,!(this.Ok()||"Overlay"===this.Fa)),this.Bd=(new Date).getTime(),this.P.dispatchEvent(new Au(Su.Bi)),this.Cj.no(this.element,this.sc,this.Jw.bind(this)).then(sn.bind(this),Dn.bind(this))},n.Jw=function(t){this.Ia=t,this.P.dispatchEvent(new Au(Su.si)),this.Ia.hc(),Ji.call(this),this.Rj="normal",t=this.P.jp(),this.Ia.Yv(this.Rj,this.P.xh()||"900",{AdParameters:t&&t.value},this.M.ka.Qq)},n.Ok=function(){return"Midroll"===this.Fa},n.resize=function(){t.prototype.resize.call(this),this.Rj=L()&&D()?"fullscreen":"normal",en.call(this,"resizeAd",this.tc.Jh(),this.tc.Ch(),this.Rj)},n.ed=function(t){var i=t===yl.a;this.M.Nf=i,this.error=hn.call(this,i),this.P.dispatchEvent(new Au("VASTAdError"),t),this.P.Ed(Rh.jb,{details:t,error:this.error}),this.stop(this.error)},n.getAdSkippableState=function(){return-1===this.sc.indexOf("//imasdk.googleapis.com")&&en.call(this,"getAdSkippableState")},n.getDuration=function(){if(!this.Ia)return 0;var t=en.call(this,"getAdDuration");return(!t||0>=t)&&0<this.Ng&&(t=this.Ng),t},n.stop=function(t){this.dc||(this.dc=!0,this.Ia?(this.be&&(this.be.sa(),Ki.call(this,wl.q,Nn)),-1!==this.sc.indexOf("vista.js")&&t?en.call(this,"stopAd",{details:t.description,errorCode:t.code,internalErrorCode:t.ea}):en.call(this,"stopAd"),this.gh=setTimeout(Nn.bind(this),400)):Nn.call(this))},n.ep=function(){this.dispose(),this.gh&&clearTimeout(this.gh),this.P.complete(!0)},n.dispose=function(){this.be&&(this.be.sa(),this.be=null),this.Ia&&(this.Ia.ye&&this.Ia.ye(),this.Ia=null),L()&&Yo.removeEventListener(Wo.fullscreenchange,this.Hm)},n.skip=function(){en.call(this,"skipAd")},n.setVolume=function(t){this.za=t,en.call(this,"setAdVolume",t)},n.getVolume=function(){return en.call(this,"getAdVolume")},n.pause=function(){en.call(this,"pauseAd"),this.qf=!0},n.resume=function(){en.call(this,"resumeAd")},n.expandAd=function(){en.call(this,"expandAd")},n.collapseAd=function(){en.call(this,"collapseAd")},n.invokeAdMethod=function(t,i){en.call(this,"invokeAdMethod",t,i)},n.getAdRemainingTime=function(){return en.call(this,"getAdRemainingTime")},n.Fe=function(){if(!this.Ia)return 0;var t=this.getAdRemainingTime();return t>this.Ng&&(this.Ng=t),t},n.fg=function(){t.prototype.fg.call(this),this.gj=en.call(this,"getAdLinear"),this.Cj&&this.Cj.show()},i}(fl),Ll=["o2unit"],Dl=function(t){function i(i,n,e,r){if((i=t.call(this,i,n,null,e,r)||this).nj=[],i.Qg=null,i.Fa=i.W.getType(),i.N=i.O.S("config"),i.ga=i.O.S("display"),i.N.ty({XC:new uu}),!i.bd()&&"string"==typeof(e=(e=(n=eu()(i)).Da||{}).parameters&&e.parameters.value))try{n.Ii=e}catch(t){}return-1===Ll.indexOf(i.N.Rf())&&(i.An=i.O.Ya(bl)),i}Ro()(i,t);var n=i.prototype;return n.Sh=function(i){t.prototype.Sh.call(this,i),this.mf&&this.mf.nC(i.muted)},n.vy=function(t){this.va=this.nj.filter((function(i){return i.url===t}))[0]},n.Jy=function(t){return this.Qg=t,this},n.cr=function(t){return this.va=(this.nj=t)&&t[0],this},n.Zf=function(i){t.prototype.Zf.call(this,i)},n.Zh=function(){if(!this.ds&&this.Qg&&this.bd(this.Qg)){var t=this.Qg;this.Ji="vpaid";var i=new kl(t,this.Fa,this.O,!0).Qh(Un.bind(this))}else t=this.va,this.bd()?(this.Ji="vpaid",i=new kl(t,this.Fa,this.O)):i=new dl(this.ga,this.nj[0],this.fa,this.O);return this.ds=t,i},n.complete=function(i,n){this.mf&&this.mf.destroy(),this.An&&this.An.destroy(),t.prototype.complete.call(this,i,n)},n.kk=function(i,n){this.Pm?(this.Pm=!1,this.Zf()):t.prototype.kk.call(this,i,n)},n.cg=function(i){t.prototype.cg.call(this,i),i=new Su(Su.xg,this.Fa,{isLinear:i}),this.dispatchEvent(i)},n.jp=function(){return this.Da.parameters},n.xh=function(){return this.va.bitrate},n.qk=function(){return this.va.dg},n.rk=function(){return this.va.Oe},n.getAdHeight=function(){return this.va.height},n.getAdWidth=function(){return this.va.width},n.Vc=function(){var t=this.Ii&&this.Ii.clickThroughUrl?this.Ii.clickThroughUrl:this.M.ka.eb;return t||(t=(t=this.Da.eb)?t.url:null),t},n.getDuration=function(){if(this.oa)return this.oa.getDuration()},n.getCurrentTime=function(){if(this.oa)return this.oa.getCurrentTime()},n.getAdSkippableState=function(){if(this.oa&&this.oa.getAdSkippableState)return this.oa.getAdSkippableState()},n.lA=function(){return this.Ji},n.bA=function(){return this.ad.id},n.stop=function(i){this.mf&&this.mf.destroy(),t.prototype.stop.call(this,i)},n.skip=function(){this.getAdSkippableState()?t.prototype.skip.call(this):t.prototype.stop.call(this)},i}(gl),Cl=function(t){function i(i,n,e){var r=t.call(this)||this;return r.aa=i,r.ca=n,r.Nb=e,r.Kc=!1,r.Bb=!1,r.Dn=[],r.O=r.aa.O,r.Hc=r.O.S("externalTracker"),r.Ag=r.O.S("actionTracker"),r.ga=r.O.S("display"),r.N=r.O.S("config"),r.ka=r.O.S("adsConfig"),r.od=r.O.S("adContainerProvider"),r.fa=r.od.Jc,r.qa=r.O.S("beaconDataHolder"),r}Ro()(i,t);var n=i.prototype;return n.fb=function(){return this.ca},n.Zz=function(){return this.fa||null},n.Dv=function(){return this.Ab||null},n.Qe=function(t){t&&!t.ib&&this.Ab&&this.Ab.ib&&(t.ib=this.Ab.ib),(this.Ab=t)&&t.message&&(this.Xi=this.Xi?this.Xi+", ".concat(t.message):t.message)},n.ei=function(){this.Bd=(new Date).getTime(),this.Ka("loaded")},n.load=function(){this.track("Reporting.Ad.Engine.Request",{If:this.fa.offsetHeight,mk:this.fa.offsetWidth}),this.Ab=null,this.Nb&&this.Nb.load&&this.Nb.load(this.gg.bind(this),this.Le.bind(this))},n.gg=function(t,i,n){this.jj=n,this.ready(!0,t,i)},n.Le=function(t,i){this.jj=i,this.Qe(t)},n.stop=function(){this.dc||(this.Eb=!1,this.dc=!0,Vn.call(this))},n.skip=function(){this.stop()},n.complete=function(){this.Eb=!1,this.dc||this.Kc||this.Vq(!1,this.Ab&&this.Ab.timeout),this.dc||(this.dc=!0,Vn.call(this))},n.ready=function(t,i,n){this.Kc=!0,this.Vq(t),this.Dj({ad:this.ca,adModel:i,params:n})},n.Dj=function(t){this.dispatchEvent(new Su(Su.Ve,this.ca.getType(),t))},n.Wj=function(){this.ub(Su.El,void 0),this.oy()},n.oy=function(){this.Ka("loaded")},n.Kk=function(){var t=this.ca.zv();t&&(t=this.aa.Pb.resolve(t),this.Hc.Sc(t))},n.lo=function(t,i){i&&i instanceof Dl&&(t.mimeType=(i.va||{}).mimeType),this.ub(Su.mi,t)},n.Df=function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.Bb=!1,this.Bc=t,this.aa.Nf&&(this.aa.Nf=!1,this.Ka("boost"));var n=i.data||{};t&&t instanceof Dl&&(n.apiType=t.Ji,n.adId=t.ad.id,n.adIconsContainer=t.Xf,n.mimeType=(t.va||{}).mimeType),n.parameters||(n.parameters={}),n.parameters.minibar=!!this.ca.Dm.minibar,n.latency=(new Date).getTime()-this.Bd,this.Eb=!0,this.ub(Su.Pd,n),this.Ka("started",i.data),this.qf&&(this.pause(),this.qf=!1)},n.jo=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.Bb=!0,this.ub(Su.ki,t.data)},n.St=function(){this.ub(Su.ni,(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).data)},n.mo=function(t){var i=(t=t.data).data||t,n=i.currentTime;0<(i=Math.min(i.duration,this.iz))?(t.timeRemaining=i-n,t.progressPercent=n/i*100):(t.progressPercent=0,t.timeRemaining=0),this.ub(Su.Xe,t)},n.Tt=function(){this.ub(Su.Ll)},n.pause=function(){this.Eb||(this.qf=!0)},n.ko=function(){this.Bb=!1,this.ub(Su.Il)},n.resume=function(){this.qf=!1},n.Qk=function(){return this.Bb},n.io=function(t){this.Bc&&(this.ub(Su.zl,{clickThroughUrl:t,playerHandle:this.Bc.ln}),this.track("Reporting.Basic.Click",{eb:t,Ho:"ad"}))},n.lh=function(t,i){this.bj||this.Ds?this.Ka("killed",i):this.Eb&&(this.Bn?this.Ka("skipped",i):this.Ka("finished",i)),this.ub(Su.We,{currentTime:t})},n.vh=function(){this.aa.Nf=!0,this.Ka("failover")},n.Rz=function(t){this.Qe(new Xf(t)),this.Ka("early-stop")},n.track=function(t,i){i=Object(Oo.g)(i),i=Object(Oo.j)(i,{acid:this.ca.getAcid(),asid:this.ca.getAsid(),auid:this.ca.Zu(),bookingId:this.ca.av(),bsfv:this.ca.lm,costPerImpression:this.ca.Gb,fullsizeThumbnail:this.ca.getFullsizeThumbnail(),isHouseAd:this.ca.lw(),isPayable:this.ca.ow(),lineItemId:this.ca.Fv(),name:this.ca.Eh(),overlayURL:this.ca.getOverlayURL(),podId:this.ca.nn,profitCenter:this.ca.Ov(),ruleCompanyId:this.ca.wn,ruleId:this.ca.getRuleId(),slotAdSeq:this.ca.Cn,thirdPartyImpressionTrackers:this.ca.Kn,thumbnail:this.ca.getThumbnail(),transactionId:this.ca.getTransactionId(),type:this.ca.getType(),url:i.url||this.ca.getUrl(),usid:this.ca.getUsid(),vastXml:this.ca.Vf(),vendor:this.ca.getVendor(),videoDuration:this.ca.getVideoDuration(),videoTitle:this.ca.getVideoTitle()}),this.aa.dispatchEvent(new Au(t,i))},n.ny=function(t){this.Ag.action("AdInteraction",null,null,null,null,{c1:"string"==typeof t.data?t.data:""})},n.Ka=function(t,i){function n(t){return r?t+r:t}var e=null,r=this.aa.Vd;i&&(r=i.wb||r,e=i.xz||null);var s=this.Bc&&this.Bc.ad?this.Bc.ad:this.ad;if(s&&(e=e||s.id||null),s=n(t),"killed"===t){var o=n("started"),u=n("loaded");!this.Kd(o)&&this.Kd(u)&&(t="failover")}if(!this.Kd(s)){switch(o={Xt:this.ca.Wd,cu:this.N.Yp(),Gb:this.ca.Gb,If:this.fa.offsetHeight,mk:this.fa.offsetWidth,muted:this.aa.isMuted(),aD:this.ca.getUsid()},r&&(o.sequence=r),t){case"loaded":o.latency=this.jj;break;case"starting":case"started":o.latency=(new Date).getTime()-this.Bd;break;case"failover":this.sn&&(o.latency=(new Date).getTime()-this.sn)}Object(Oo.g)(i,o),i=this.ph(t,o,e),"IMA"===this.ca.getAdEngineType()&&(i.fq={mimeType:"IMA"}),this.track("Reporting.Ad.Engine.Flow",i),this.Dn[s]=!0,-1!==["q1","q2","q3","finished"].indexOf(t)&&this.ub(Su.Fl,i)}},n.pg=function(t,i,n,e){n="".concat(i.description).concat(n?" ".concat(n):""),this.track("Reporting.Ad.Issue",this.ph(t,{details:n,Fd:Bn(n,i.Fd),Ju:i.ya,Ku:i.code,Pu:e}))},n.Vq=function(t,i){this.sn=(new Date).getTime(),this.track("Reporting.Ad.Engine.Response",{If:this.fa.offsetHeight,mk:this.fa.offsetWidth,rw:t,latency:this.jj,timeout:void 0===i?null:i,zy:this.Kc?this.Bt:0})},n.ph=function(t,i,n){var e={};return null!=n&&(e.adImpressionId=n,e.mh=n),null!=t&&(e.adStage=t,e.nh=t),Object(Oo.g)(i,e),e},n.Kd=function(t){return this.Dn[t]||!1},n.ub=function(t,i){i||(i={}),i.ad=this.ca,this.dispatchEvent(new Su(t,this.ca.getType(),i)),this.aa.dispatchEvent(new Su(t,this.ca.getType(),i))},n.canRenderUI=function(){return!1},i}(Mo.default),Pl=function(t){function i(i){var n=t.call(this)||this;return n.U=i.eventBus,n.Qc=i.smartViewability,n.ii=0,n.uo(),n}Ro()(i,t);var n=i.prototype;return n.uo=function(){this.Qa=Ou.a.group(Ou.a.bind(this.U,Su.Pd,this.Tk.bind(this)),Ou.a.bind(this.U,Su.Xe,this.Ph.bind(this)),Ou.a.bind(this.U,Su.ki,this.Yh.bind(this)),Ou.a.bind(this.U,Su.Ll,this.Yh.bind(this)),Ou.a.bind(this.U,Su.vg,this.jq.bind(this)),Ou.a.bind(this.U,"VASTAdEngineComplete",this.complete.bind(this)))},n.Ba=function(){return this.Qc.Ba()},n.Yh=function(){this.ii=0},n.complete=function(){},n.Tk=function(){this.il()},n.Ph=function(){},n.jq=function(){},n.il=function(){this.Yh()},n.sa=function(){this.Qa.sa()},i}(Mo.default);Pl.da=["eventBus","smartViewability"];var xl=function(t){function i(i){var n=t.call(this,i)||this;return n.T=i.environment,n.oe=!1,n.Np(),n}Ro()(i,t);var n=i.prototype;return n.ol=function(t){this.bb=t},n.Np=function(){this.Nc=this.bh=0},n.complete=function(){t.prototype.Yh.call(this),this.Np(),this.reset()},n.Ph=function(){var t=+new Date;this.ii&&(!(this.Ba()>=this.bb.Vg)||this.bb.Eg&&this.T.isMuted()?this.bb.Fg&&(this.bh=0):this.bh+=t-this.ii,this.Nc=Math.max(this.Nc,this.bh)),this.ii=t,t=this.Nc/1e3,!this.oe&&t>=this.bb.Wg&&this.Wk()},n.Wk=function(){this.oe=!0,this.dispatchEvent(i.Yl)},n.YB=function(){return this.oe},n.reset=function(){this.oe=!1,this.uo()},n.FB=function(){return this.Nc},i}(Pl);xl.da=["eventBus","environment","smartViewability"],xl.Yl="VM.RuleSatisfied";var Ul=function(t){function i(i){var n=t.call(this,i)||this;return n.tb=[],n.O=i.injector,n}Ro()(i,t);var n=i.prototype;return n.Gx=function(t){this.En=t.start,this.Em=t.Qu,this.tb=zn.call(this,t)},n.Tk=function(){t.prototype.Tk.call(this),this.Fn=!0,this.En()},n.Ph=function(){this.In.oe||this.tb.forEach((function(t){return t.Ph()}))},n.jq=function(){var t=this.In.oe;this.Fn&&!t&&this.Em()},n.il=function(){t.prototype.il.call(this),this.Fn=!1,this.tb.forEach((function(t){return t.reset()}))},n.sa=function(){t.prototype.sa.call(this),this.Em=this.En=null,this.tb=[]},i}(Pl);Ul.da=["eventBus","smartViewability","injector"];var Vl=["$(S_VIEW_TYPE)"],Bl=["$(V_AUD_INFO)"],Fl=["$(V_AUD_TIME_INVIEW_100)"],zl=["$(V_AUTOPLAYED)"],Gl=["$(V_EXPANDED)"],Hl=["$(V_IS_INVIEW_100_HALFTIME)"],Yl=["$(V_MOAT_IVT)"],ql=["$(V_PLAYER_HEIGHT)"],Wl=["$(V_PLAYER_WIDTH)"],Ql=["$(V_SKIP_AVAIL)"],$l=["$(V_TIME_INVIEW_50)"],Xl=["$(V_TIME_INVIEW_50_MAX_CONTINUOUS)"],Zl=["$(V_VIEW_INFO)"],Jl=["$(V_VIEW_TYPE)"],Kl=function(){function t(t,i,n){this.La=t,this.Ia=i,this.M=n,this.Lg=this.M.O.Ya(Ul),this.bo=Hn.call(this),t=[],i=[],(n=Gn.call(this))&&(t=n.Gy,i=n.Hy),n=new na("iab_viewable",{d:2,p:50}),this.Lg.Gx({Qu:Wn.bind(this,"iab_detection_failed"),start:Wn.bind(this,"iab_detection_started"),Te:[Wn.bind(this,"iab_viewable"),n],Dy:[Wn.bind(this,"VIDEO_VIEW"),i],Ey:[Wn.bind(this,"VIDEO_VIEW_3P"),t]})}return t.prototype.sa=function(){this.La=null,this.bo=[],this.Lg&&this.Lg.sa()},t}(),tv=function(){function t(){}return t.prototype.parse=function(t){this.mh=t.id},t}(),iv=function(){function t(){}return t.prototype.parse=function(t){var i=t.Ja[0].Wb[0];i.type===Bh.START&&(i=i.url,this.Xj=/cid=(\d+)/.exec(i)[1],this.oh=/src=(\d+)/.exec(i)[1]),this.mh=t.id},t}();iv.Ar="collective";var nv=function(t){function i(i,n){return(n=t.call(this,n)||this).sc=Uo.a.ck(i),n}Ro()(i,t);var n=i.prototype;return n.createElement=function(){var t=this.P.va;return t=Object(Oo.h)("img",{style:{cursor:t&&t.eb?"pointer":"default",position:"absolute",zIndex:1}}),this.cj=Ou.a.group(Ou.a.Fb(t,"load",this.Uk.bind(this)),Ou.a.Fb(t,"error",this.kq.bind(this))),t.src=this.sc.replace(/\s+/g,""),t},n.Md=function(){this.Xk(),this.fg(),this.P.Kf()},n.Uk=function(){this.element.addEventListener("click",Qn.bind(this)),this.Md()},n.kq=function(){this.element.offsetWidth?this.Uk():(this.P.Ed(Rh.jb,{error:Zu}),this.P.complete(!0))},n.stop=function(){this.cj&&this.cj.sa(),t.prototype.stop.call(this)},i}(fl),ev=function(t){function i(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=2<arguments.length?arguments[2]:void 0,e=t.call(this,i.Rq,1<arguments.length?arguments[1]:void 0)||this;return e.icon=i,e.rd=n,e}Ro()(i,t);var n=i.prototype;return n.fy=function(t){this.P=t,this.load(),Object(Oo.I)(this.element,{height:"".concat(this.icon.height,"px"),width:"".concat(this.icon.width,"px"),zIndex:6}),this.P.addEventListener("VASTAdError",$n.bind(this)),this.P.addEventListener("VASTAdFinished",$n.bind(this)),this.P.addEventListener("VASTAdFinishedForce",$n.bind(this))},n.kq=function(){this.P.Ed(Rh.jb,{error:Zu})},n.Uk=function(){var t=this;Zn.call(this),this.icon.fk&&(this.element.style.cursor="pointer",this.element.addEventListener("click",(function(i){i.stopPropagation(),t.P.rh(t.icon.fk,!0)}))),this.icon.gk&&this.element.addEventListener("click",Jn.bind(this,this.icon.gk)),this.icon.vl&&this.rd.Sc(this.icon.vl),0===this.icon.offset&&this.P.Xf.appendChild(this.element),0===this.icon.offset&&0===this.icon.duration||(this.ql=Xn.bind(this),this.P.addEventListener("VASTAdTimeUpdate",this.ql))},i}(nv),rv=n(98),sv=n.n(rv),ov=function(t){function i(i,n,e,r,s,o,u){return(n=t.call(this,n,e,r,o,u)||this).wt=i,n.fa=n.od.pf,n.ga=n.O.S("display"),n.pb=s,n.Oh=Object(Oo.h)("div",{Iz:"yahoo-media-element-wrapper",style:{position:"relative"}}),n}Ro()(i,t);var n=i.prototype;return n.Zh=function(){var i=this.va.ic[0]||{};if(i.type===Na){if(this.bd())return new kl(i,"Overlay",this.O);var n=this.va,e=n.ic[0]||{};return i=e.value,-1!==["video/ogg","video/mp4","video/webm"].indexOf(e.mimeType)&&n.eb&&(n=encodeURIComponent(n.eb.url),n="clickTAG=".concat(n,"&clickTag=").concat(n),i+=-1===i.indexOf("?")?"?":"&",i+=n),this.M.fb().Bx(i),new nv(i,this.ga)}return t.prototype.Zh.call(this)},n.Kf=function(){t.prototype.Kf.call(this),this.pb.Ro&&this.Ut(),this.wt.start(),this.ad.dispatchEvent(new Rh(Rh.LOADED,this.Da))},n.Ut=function(){Object(Oo.h)("button",{style:{alignContent:"center",alignItems:"center",backgroundColor:"#fff",border:0,cursor:"pointer",display:"flex",padding:"4px",position:"absolute",right:"0",top:"0",zIndex:"1"}},this.Oh,sv.a).addEventListener("click",this.complete.bind(this))},n.jp=function(){return this.va.parameters},n.qk=function(){return this.va.dg},n.rk=function(){return this.va.Oe},n.getAdHeight=function(){return Math.max(this.va.height,this.va.Yo)},n.getAdWidth=function(){return Math.max(this.va.width,this.va.Zo)},n.Vc=function(){var t=this.va.eb;return t?t.url:null},n.ak=function(i,n,e,r){var s=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],o=!(5<arguments.length&&void 0!==arguments[5])||arguments[5],u=this.pb.width,h=this.pb.height;return Kn(u)&&(u=parseFloat(this.pb.width)*this.fa.offsetWidth/100),Kn(h)&&(o?h=u/(h=this.getAdWidth()/this.getAdHeight()):h=parseFloat(this.pb.height)*this.fa.offsetHeight/100),u=u||i,h=h||n,this.bd()&&(u=i,h=n),s=t.prototype.ak.call(this,u,h,e,r,s,o),"application/javascript"===(this.va.ic[0]||{}).mimeType?te.call(this,u,h):te.call(this,Math.min(s.width,u),Math.min(s.height,h))},n.cg=function(i){t.prototype.cg.call(this),this.M.dispatchEvent(new Su(Su.xg,"Overlay",{isLinear:i})),i?this.pause():this.resume()},n.xh=function(){return 0},n.RC=function(){},n.noResize=function(){},i}(gl),uv=function(){function t(){}return t.nv=function(i){var n=[];return Object(Oo.L)(i).forEach((function(i){(i.Ie||[]).forEach((function(i){return n.push(t.Hv(i))}))})),n},t.Hv=function(t){return t=t||{},Uo.a.uk(t.url||"")||t.mimeType},t}(),hv=To.a.Na("LinearResolver"),av=["uplynk/m3u8","application/vnd.apple.mpegurl","application/x-mpegurl"],cv=function(){function t(){}return t.$h=function(t,i,n){if(!(n=n||[]).length||function(t){return t.cb&&"vpaid"===t.cb.toLowerCase()}(n[0]))return n;var e=function(t){return t.reduce((function(t,i){var n="".concat(i.height/i.width);return t[n]=t[n]||[],t[n].push(i),t}),{})}(n),s=i/t;return i=Object.keys(e).sort((function(t,i){return Math.abs(+t-s)-Math.abs(+i-s)})).reduce((function(i,n){return n=function(t){return t.reduce((function(t,i){var n=(i.mimeType||"").toLowerCase();return k(n)?"video/mp4"===n?t.iq.push(i):t.oq.push(i):-1<av.indexOf(n)&&Object(Oo.p)()&&t.Kp.push(i),t}),{Kp:[],iq:[],oq:[]})}(e[n]),i.concat(r(n.iq,t)).concat(r(n.oq,t)).concat(r(n.Kp,t))}),[]),0===i.length?hv.warn("No supported media files found",n):hv.debug("Resolved media files",i),i},t}(),fv=["image/.*","application/javascript","application/x-javascript"],lv=function(){function t(){}return t.resolve=function(t,i){var n,e=function(){var t=[],i=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){var e=n.ic[0];if(e)switch(e.type){case Na:ie(e.mimeType)&&i.push(n);break;case Ra:case ka:t.push(n)}})),t.concat(i)}(i=Object(Oo.J)(i.slice(),!1));return 0<i.length&&0===e.length&&(n=Ku),i=e.filter((function(i){return i.Oe||i.width<=t.width&&i.height<=t.height})),0<e.length&&0===i.length&&(n=Ju),i[0]||{error:n}},t}(),vv=To.a.Na("VastEngine"),dv=ih,pv=[Rh.yg,Rh.kd,Rh.jb,Rh.hd,Rh.LOADED,"iab_viewable","iab_detection_started","iab_detection_failed","VIDEO_VIEW_3P","stopped","linearChange","verificationNotExecuted",kh.nd],mv={};mv[Bh.FIRST_QUARTILE]="q1",mv[Bh.MIDPOINT]="q2",mv[Bh.THIRD_QUARTILE]="q3",mv[Bh.COMPLETE]="finished";var bv=function(t){function i(i,n,e,r){return(i=t.call(this,i,n,e)||this).gn=i.od.pf,i.rb=r,i.bc=[],i.$g=[],i.Sm=!0,i.Gm=0,i.Xa=[],i.qc=new Xo,i.Fc=i.O.S("errorTracker"),i.rd=i.O.S("adTracker"),i.aa.addEventListener("AdSystem.Resize",ne.bind(eu()(i))),i.Nb.addEventListener("ISSUE_WITH_AD",le.bind(eu()(i))),i.aa.addEventListener(Su.ir,Re.bind(eu()(i))),i}Ro()(i,t);var n=i.prototype;return n.gg=function(i,n){if(this.on=!1,this.Bt=i.ads.length,!this.dc){this.na=i,i=this.na.ads.shift();t:if(this.ca.getVendor()===iv.Ar)var e=new iv;else e=new tv;this.Gc=e,this.Gc.parse(i),se.call(this,i),t.prototype.gg.call(this,i,{urls:this.ws()},n),0===this.bc.length&&0!==this.$g.length||ye.call(this)}},n.ws=function(){var t=[];return function i(n){t.push(n.Nd),n.parent&&i(n.parent)}(this.na),t.reverse()},n.Dj=function(i){this.bc.length&&(i.crid=this.bc[0].id||""),t.prototype.Dj.call(this,i)},n.ig=function(){this.Wj(),this.on=!0,this.dc||!this.wa||this.Nm||re.call(this,this.wa)},n.ei=function(){var i=this;t.prototype.ei.call(this);var n,e=this.ca.Vb,r=this.gn.offsetWidth,s=this.gn.offsetHeight,o=isNaN(e.width)?r:Math.min(e.width,r),u=isNaN(e.height)?s:Math.min(e.height,s);Object(Oo.l)(this.$g,(function(t){i.qa.kl(i.ad.jc,t.jc),isNaN(t.wc[0].width)||(e.width=+t.wc[0].width,o=+t.wc[0].width),isNaN(t.wc[0].height)||(e.height=+t.wc[0].height,u=+t.wc[0].height);var r=lv.resolve({height:u,width:o,x:0,y:0},t.wc);if(r)return r.ic&&r.ic[0]&&r.ic[0].value?(i.Qb=r,i.qc.jl(fe.bind(i,t,e),1e3*e.delay),!0):(n=i.Qb&&i.Qb.error,!1)}))||(this.ad&&this.ad.dispatchEvent(new Rh(Rh.jb,null,null,{error:n})),this.pg("loaded",Ku,"Unable to find suitable overlay creatives"))},n.stop=function(i){this.dc||(this.qc.stop(),this.ad&&this.ad.state.loaded?Ae.call(this,!1,i):this.Ka("early-stop"),this.Sd&&(this.Sd.sa(),this.Sd=null),this.Ga=null,t.prototype.stop.call(this))},n.skip=function(){this.Bn=!0,this.Bc?(this.Bc.lk(Bh.SKIP),this.Bc.skip()):Ae.call(this,!0)},n.pause=function(){t.prototype.pause.call(this),this.Eb&&(this.qc.pause(),this.Xa.forEach((function(t){return t.pause()})))},n.resume=function(){t.prototype.resume.call(this),this.Eb&&(this.qc.resume(),this.Xa.forEach((function(t){return t.resume()})))},n.setVolume=function(t){this.Xa.forEach((function(i){return i.setVolume(t)}))},n.getDuration=function(){var t=this.Es||0;return this.Xa.forEach((function(i){i.getDuration&&(t=Math.max(t,i.getDuration()))})),t},n.getCurrentTime=function(){var t=this.Xa.find((function(t){return t.getCurrentTime}));return t?t.getCurrentTime():0},n.getCreativeDuration=function(){return this.Ga?this.Ga.duration:0<this.bc.length?this.bc[0].duration:0},n.getAdSkippableState=function(){var t=!!this.Ga&&this.Ga.hi;if(this.wa.getAdSkippableState){var i=this.wa.getAdSkippableState();t=void 0===i?t:i}return t},n.isSkippable=function(){return!!this.Ga&&this.Ga.skippable},n.Tf=function(){return this.ad&&this.ad.jc},n.Uf=function(){return this.ad&&this.ad.Ef},n.Qf=function(){return this.ad&&this.ad.Rt},n.Sf=function(){if(this.Ga)return this.Ga.Yq},n.ph=function(i,n,e){return!e&&this.Gc&&(e=this.Gc.mh),t.prototype.ph.call(this,i,n,e)},n.Ka=function(i){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n.Pt=this.getCreativeDuration()||"NULL",this.Gc&&(this.Gc.Xj&&(n.Xj=this.Gc.Xj),this.Gc.oh&&(n.oh=this.Gc.oh),this.Qb&&(n.fq=this.Qb)),n.Ru=this.Gm,t.prototype.Ka.call(this,i,n)},n.Le=function(i,n){var e=i;e instanceof Xf||(e=e instanceof $f?new Xf(i.message,Xf.zi,i.Uq):new Xf(i.message)),t.prototype.Le.call(this,e,n),Te.call(this)},n.lh=function(i,n){t.prototype.lh.call(this,i,n),this.ad&&this.ad.dispatchEvent(new Rh("stopped",this.Ga)),Ee.call(this)||0!==this.na.ads.length||this.stop(),this.ad=null,this.Bn=!1},n.track=function(i){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(n.vastModelAd=this.ad,"Reporting.Ad.Issue"===i){for(var e="",r=this.na;r&&r.Nd;)e="".concat(r.Nd," ").concat(e),r=r.parent;n.url=e}t.prototype.track.call(this,i,n)},n.pg=function(i,n,e){t.prototype.pg.call(this,i,n,e,Ie.call(this))},n.vh=function(i){t.prototype.vh.call(this),Ae.call(this,!1,i)},n.complete=function(){t.prototype.complete.call(this),this.Ud&&this.Ud.sa()},i}(Cl),yv=function(t){function i(i){var n=t.call(this,i)||this;return n.rb=new al(i),n}Ro()(i,t);var n=i.prototype;return n.ik=function(t){var i=this.M,n=new(this.Gv(t))(i,this.rb,t.Vf()?t:t.Mj||t);return new bv(i,t,n,this.rb)},n.Gv=function(t){var i=t.na;return t.Vf()&&(t.Hj||i&&i.ads&&0<i.ads.length)?sl:el},n.getType=function(){return"VAST"},i}(Qf),gv=function(t){function i(){return t.apply(this,arguments)||this}return Ro()(i,t),i.prototype.getType=function(){return"VIDEO"},i}(yv);n(37);var wv=n(99),_v=n.n(wv),Ev=!1,Ov=function(){function t(t,i){this.tag=t,this.Ko=i,this.lb=new Ko.a(window.document),Ev||this.uw(),this.Ko.classList.add(this.containerClass),this.Ow=Object(Oo.h)("div",{class:"overlay-wrap"},this.Ko,this.template)}var i=t.prototype;return i.gx=function(){this.Ow.remove()},i.uw=function(){Object(Oo.h)("style",{},document.head,_v.a),Ev=!0},jh()(t,[{key:"containerClass",get:function(){return"vrm-plg"}},{key:"template",get:function(){var t=Object(Oo.G)(this.tag.source),i=Object(Oo.G)(this.tag.headline),n=Object(Oo.G)(this.tag.callToAction);return'\n            <div class="title">\n                '.concat(t?"<small>Ad: <span>".concat(t,"</span></small>"):"","\n                <h5>").concat(i,'</h5>\n            </div>\n            <button class="overlay-btn">').concat(n,"</button>\n        ")}}]),t}(),Av=function(t){function i(i,n,e){return(n=t.call(this,i,{},n,e)||this).load(i),n}Ro()(i,t);var n=i.prototype;return n.load=function(t){var i=this;this.Wa={};try{this.Wa=JSON.parse(t.tag)}catch(t){}this.cr(Ce.call(this,t.mediaInfo)),this.Da={eb:{url:this.Wa.clickUrl}},this.canRenderUI()&&(this.Xv(this.Wa),this.addEventListener("VASTAdEngineComplete",(function(){i.Ir.gx()})))},n.canRenderUI=function(){return De(this.Wa)},n.Xv=function(t){this.Ir=new Ov(t,this.fa)},i}(Dl),Sv=function(t){function i(i){var n=t.call(this,i)||this;return n.xj=i.geminiPixelsTracker,n}return Ro()(i,t),i.prototype.Wk=function(){t.prototype.Wk.call(this),this.sa(),this.xj.cp({qq:this.bb.hn,$k:Pe.call(this)})},i}(xl);Sv.da=["eventBus","smartViewability","geminiPixelsTracker","environment"];var Tv,jv=(Tv={},ha()(Tv,"GEMINI_IMP","viewabilityDefStatic"),ha()(Tv,"STATIC_VIEW","viewabilityDefStatic"),ha()(Tv,"STATIC_VIEW_3P","viewabilityDefStatic3P"),ha()(Tv,"VIDEO_VIEW","viewabilityDefVideo"),ha()(Tv,"VIDEO_VIEW_3P","viewabilityDefVideo3P"),Tv),Iv=function(){function t(t){this.O=t}return t.prototype.resolve=function(t){t=t.ads[0]||{},this.bb=t.rules||{},this.Ye=t.actionUrls||{},this.Im=t.beacon,xe.call(this)},t}(),Mv=function(t){function i(i,n,e){return(i=t.call(this,i,n,e)||this).Td=new uu,i.Pp(),i.xj=i.O.S("geminiPixelsTracker"),i}Ro()(i,t);var n=i.prototype;return n.gg=function(i,n){var e=this,r=(i.ads||[])[0]||{};this.Ye=r.actionUrls||{},new Iv(this.O).resolve(i),r.dispatchEvent=function(t){var i="function"==typeof t.Vc&&t.Vc();switch(t.type){case Rh.hd:i&&(e.io(i),R(i));break;case Rh.kd:e.Df(e.Ua);break;case kh.nd:var n;switch(i=t.Od,i=(n={},ha()(n,Bh.FIRST_QUARTILE,"VIDEO_QUARTILE_25"),ha()(n,Bh.MIDPOINT,"VIDEO_QUARTILE_50"),ha()(n,Bh.THIRD_QUARTILE,"VIDEO_QUARTILE_75"),ha()(n,Bh.COMPLETE,"VIDEO_QUARTILE_100"),n)[i],Ve.call(e,i),t.Od){case Bh.PROGRESS:e.mo(t),Ve.call(e,"VIDEO_START"),30<t.data.currentTime&&Ve.call(e,"VIDEO_30_SEC");break;case Bh.COMPLETE:e.Ka("finished",t.data),e.complete();break;case Bh.PAUSE:e.jo(t);break;case Bh.FIRST_QUARTILE:e.Ka("q1",t.data);break;case Bh.MIDPOINT:e.Ka("q2",t.data);break;case Bh.THIRD_QUARTILE:e.Ka("q3",t.data)}}},this.Ua=new Av(r,this.aa,this),t.prototype.gg.call(this,i,null,n),this.Td.resolve(this.Ua)},n.Df=function(i){t.prototype.Df.call(this,i,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),this.aa.dispatchEvent(new Su(Su.Kl))},n.Pp=function(){this.On=[]},n.ig=function(){this.Wj(),this.qa.kl(null,null),this.Qa=Ou.a.group(Ou.a.bind(this.Ua,"VASTAdFinished",this.lh.bind(this)),Ou.a.bind(this.Ua,"VASTAdResumed",this.ko.bind(this)),Ou.a.bind(this.Ua,"VASTAdEngineComplete",this.complete.bind(this)),Ou.a.bind(this.Ua,Su.wg,this.aa.dispatchEvent.bind(this.aa))),this.Ua.Zf(this.aa.getVolume())},n.OC=function(t){this.QC(t),this.lo(),this.Ua.Md()},n.ei=function(){throw Error("overlay is not supported")},n.stop=function(t){this.Td.Ma.then((function(i){return i.stop(t)}))},n.vh=function(i){t.prototype.vh.call(this,i),this.stop(i)},n.complete=function(){this.Pp(),this.Ua.M.dispatchEvent("VASTAdEngineComplete"),this.Qa&&(this.Qa.sa(),this.Qa=null);var i=this.Ua&&this.Ua.hp();i&&this.Qe(new Xf(i.message||i.description,null,null,i)),t.prototype.complete.call(this)},n.Le=function(i,n){t.prototype.Le.call(this,i,n),t.prototype.complete.call(this)},n.skip=function(){this.Td.Ma.then((function(t){return t.skip()}))},n.pause=function(){this.Td.Ma.then((function(t){return t.pause()}))},n.resume=function(){this.Td.Ma.then((function(t){return t.resume()}))},n.setVolume=function(t){this.Td.Ma.then((function(i){return i.setVolume(t)}))},n.getDuration=function(){return this.Ua&&this.Ua.getDuration()||0},n.getCurrentTime=function(){return this.Ua&&this.Ua.getCurrentTime()||0},n.getCreativeDuration=function(){return this.getDuration()},n.getAdSkippableState=function(){return!1},n.isSkippable=function(){return!1},n.canRenderUI=function(){return!!this.Ua&&this.Ua.canRenderUI()},i}(Cl),Nv=function(){function t(t,i){this.O=t.O,this.M=t,this.W=i,this.qa=this.O.S("beaconDataHolder")}return t.prototype.load=function(t,i){if(this.af=(new Date).getTime(),this.Je=t,this.Ke=i,function(t){var i=(t=(t=t||{}).ads||[])[0]||{};try{var n=JSON.parse(i.tag)}catch(t){n={}}return n=((n.assets||[]).find((function(t){return"VIDEO_PRIMARY"===t.usageType}))||{}).mediaInfo||[],i.mediaInfo=n,i=n.some((function(t){return!!t.url})),0<t.length&&i}(t=this.W.nc))i=(new Date).getTime()-this.af,this.qa.Pe(t,null,i,0),this.Je&&this.Je(t,i);else{t=$u,i=(new Date).getTime()-this.af;var n=new Xf("No ads provided",Xf.$l,null,t);this.qa.Pe(null,t,i,0),this.Ke&&this.Ke(n,i)}},t}(),Rv=function(t){function i(){return t.apply(this,arguments)||this}Ro()(i,t);var n=i.prototype;return n.ik=function(t){var i=this.M;return new Mv(i,t,new Nv(i,t))},n.getType=function(){return"GEMINI"},i}(Qf),kv=To.a.Na("AdsRunner"),Lv={ri:"Created",LOADED:"Loaded",$y:"Ready",yi:"Running",mc:"Stopped"},Dv=function(t){function i(i,n){var e=t.call(this)||this;return e.M=i,e.Mb=n,e.dm={},e.qa=e.M.O.S("beaconDataHolder"),e.reset(),i=eu()(e),Ge.call(i,yv),Ge.call(i,gv),Ge.call(i,Rv),e}Ro()(i,t);var n=i.prototype;return n.reset=function(){this.V=Lv.ri,this.ma=null,this.za=0,this.W=null},n.Dq=function(){this.qw()?ze.call(this,"Runner either not loaded or already stopped"):(this.V=Lv.yi,this.M.dispatchEvent(Su.Bl,this.W),"Overlay"===this.W.getType()?this.ma.ei():this.ma.ig())},n.load=function(t,i){if(0===t.length)ze.call(this,"no ad entries");else{this.W=t[0],t=this.W.getAdEngineType();var n=this.dm[t];n?(this.ma=n.ik(this.W),Ou.a.Fb(this.ma,Su.Ve,Be.bind(this,i)),Ou.a.bind(this.ma,Su.Ue,Fe.bind(this)),this.M.dispatchEvent(Su.Al,this.ma),this.qa.Zv(this.W),this.za&&this.ma.setVolume(this.za),this.ma&&this.ma.load()):(kv.error("Ignore ad config entry ",this.W," Unknown ad engine type ",t),this.Mb.cq(this.W),ze.call(this,"Unknown ad engine type ".concat(t)))}},n.stop=function(t){this.V=Lv.mc,this.ma&&this.ma.stop(t)},n.skip=function(){this.ma&&this.ma.skip()},n.pause=function(){this.ma&&this.ma.pause()},n.Qk=function(){if(this.ma)return this.ma.Qk()},n.resume=function(){this.Tb()&&this.ma.resume()},n.aA=function(){return this.ma},n.setVolume=function(t){this.za=t,this.Tb()&&this.ma.setVolume(t)},n.getDuration=function(){if(this.Tb())return this.ma.getDuration()},n.getCreativeDuration=function(){if(this.Tb())return this.ma.getCreativeDuration()},n.getAdSkippableState=function(){if(this.Tb())return this.ma.getAdSkippableState()},n.isSkippable=function(){return!!this.Tb()&&this.ma.isSkippable()},n.Tf=function(){if(this.Tb())return this.ma.Tf()},n.Uf=function(){if(this.Tb())return this.ma.Uf()},n.Qf=function(){if(this.Tb())return this.ma.Qf()},n.Sf=function(){if(this.Tb())return this.ma.Sf()},n.getCurrentTime=function(){if(this.Tb())return this.ma.getCurrentTime()},n.qw=function(){return this.V===Lv.mc},n.Up=function(){return this.V===Lv.LOADED},n.Tb=function(){return this.ma&&this.V===Lv.yi},n.cleanupAdBreak=function(){this.reset()},i}(Mo.default),Cv=function(){function t(){this.cf=[]}var i=t.prototype;return i.nA=function(){return this.cf},i.Hq=function(t){this.cf=t},t}(),Pv=function(){function t(t){this.N=t.config,this.ka=t.adsConfig,this.ga=t.display,this.Qc=t.smartViewability,this.Ls=t.moatIvtResolver,this.O=t.injector,t=100,3e4<this.ga.Jh()*this.ga.Ch()&&(t=80),this.tb={},this.tb.inView100=He.call(this,{a:1,c:0,p:100}),this.tb.inView50=He.call(this,{a:0,c:0,p:50}),this.tb.inView50Continuous=He.call(this,{a:0,c:1,p:50}),this.tb.inView100Continuous=He.call(this,{a:0,c:1,p:t}),this.ai=[[zl,ir.bind(this)],[Ql,nr.bind(this)],[Wl,We.bind(this)],[ql,Qe.bind(this)],[Zl,qe.bind(this)],[Bl,Ye.bind(this)],[Gl,Ke.bind(this)],[Fl,$e.bind(this)],[Yl,tr.bind(this)],[$l,Xe.bind(this)],[Xl,Ze.bind(this)],[Hl,Je.bind(this)]],this.jn=si(this.ai)}var i=t.prototype;return i.lg=function(t){return this.M=t,this},i.resolve=function(t,i){return i?(i=si(i),i=this.jn.join(i)):i=this.jn,i.resolve(t)},t}();Pv.da="injector adsConfig config display moatIvtResolver smartViewability".split(" ");var xv=function(){function t(){this.Oc=this.Os=0}var i=t.prototype;return i.mB=function(){return this.Oc},i.append=function(t){return this.Oc|=(t?1:0)<<this.Os++,this},t}(),Uv=n(34),Vv=To.a.Na("MoatIvtResolver"),Bv=function(){function t(){this.Kt=this.Jt=0,this.km=document&&document.body&&document.body.style?document.body.style:{},this.zm=document&&document.documentElement&&document.documentElement.style?document.documentElement.style:{},this.Z=_o.a.gb(),this.um=this.Z.CSS,this.sb=this.Z.navigator,this.ke=this.Z.performance,this.Km=!(!this.Z.CSS||!this.Z.CSS.supports);var t=document.createElement("div"),i={};if(t.style){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]=Object(Oo.x)(t.matches),i[4]=Uv.a.gu(t),i[5]=t.animate&&Object(Oo.x)(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(Oo.v)try{t.addBehavior("#default#clientCaps");for(var r=0;r<e.length;r++)if(n=t.sA(e[r],"componentid").replace(/,/g,".")){i[7]=n.split(".")[0];break}}catch(t){}i[7]=i[7]||0}this.Ic=i,this.Vm={a:er,b:rr,c:sr.bind(this),d:or.bind(this),e:ur.bind(this),i:hr.bind(this),j:ar,k:cr.bind(this),l:fr.bind(this),m:lr.bind(this),n:vr.bind(this),o:dr.bind(this),p:pr.bind(this),q:mr.bind(this)}}return t.prototype.Cv=function(){var t=this,i=[];return Object.keys(this.Vm).forEach((function(n){try{var e=t.Vm[n]();i.push("".concat(n,"=").concat(e))}catch(t){Vv.debug("can't compose ivt signal '".concat(n,"': ").concat(t.message))}})),i.join("&")},t}(),Fv=new Ko.a(window.document),zv=function(){function t(t){this.lb=t.dom,this.Pb=t.geminiMacrosResolver}return t.prototype.cp=function(t){var i=this,n=t.$k;t.qq.forEach((function(t){i.lb.createElement("img").src=i.Pb.resolve(t,n)}))},t}();zv.da=["dom","geminiMacrosResolver"];var Gv=To.a.Na("AdSystem"),Hv=function(){function t(t){this.od=t.adContainerProvider,this.rd=t.adTracker,this.N=t.config,this.O=t.injector,this.ka=t.adsConfig,this.U=t.eventBus,this.T=t.environment,this.Mb=this.O.Ya(Cc),this.hc(),this.O.dl("blockedCategoriesHandler",Cv).Aa("scriptLoader",Sc).Aa("moatIvtResolver",Bv).Aa("geminiMacrosResolver",Pv).dl("geminiPixelsTracker",zv),this.O.S("geminiMacrosResolver").lg(this),this.Pb=this.O.Ya(Wf).lg(this),this.Ns=!!Uo.a.Ib("nosyncpixels")||!!this.N.Sb("nosyncpixels")||!1,this.N.gw()||this.Ns||(.2>=Math.random()||Uo.a.Ib("forceSmartPixel"))&&Fv.Ld("https://tag.sp.advertising.com/sp.js",!1,!0),this.addEventListener(Su.El,Rr.bind(this)),this.addEventListener(Su.Pd,Nr.bind(this)),this.addEventListener(Su.Bl,Ir.bind(this)),this.addEventListener(Su.Ue,Mr.bind(this)),this.addEventListener(Su.ni,jr.bind(this)),this.addEventListener("AdSystem.LinearChange",Tr.bind(this)),this.rd.Dx(this.ka),this.rd.au(),Ac.a(Pr.bind(this))}var i=t.prototype;return i.hc=function(){this.Dg=this.bf=this.za=this.Ws=this.Vd=this.sd=0,this.Hn=!1,this.Bm=new wh.a,this.Lc=[],this.Li=!1,this.Mb.reset(),this.ua=new Dv(this,this.Mb),this.ua.setVolume(this.za),this.ua.addEventListener(Au.pi,Or.bind(this))},i.Ux=function(){this.kn=!0},i.tx=function(){this.tn||_r.call(this,"AD_GROUP_FAILED")},i.Aq=function(){this.Nf=this.kn=this.tn=!1},i.load=function(t,i){this.bq(t,this.aq.bind(this,null,i,null))},i.bq=function(t,i){(t=t||{}).type&&(this.ta=t.type),"Preroll"===this.ta&&0!=this.Ws++%this.ka.Vt?i():(t.preloadedConfig&&Dr.call(this,t.preloadedConfig),Ou.a.group(Ou.a.Fb(this.U,jc.Nl,Lr.bind(this,i)),Ou.a.Fb(this.U,jc.LOADED,kr.bind(this,i))),this.Mb.ex(this.ta,t.originalTime,t.preloadedConfig),clearTimeout(this.Hi),clearTimeout(this.wd),0<(i=this.ka.Aw)&&(this.Hi=setTimeout(Sr.bind(this),i)),t.loadTimeLimit&&"Preroll"===this.ta&&(this.wd=new Xo(Ar.bind(this),t.loadTimeLimit,!0)))},i.aq=function(t,i,n){var e=this;n&&(n===this.ta?(this.sd=this.ka.Dd,this.bf=0):this.ta=n),this.wd&&this.wd.resume(),this.Zg=i,t&&(this.Mb.Ax(t),this.Lc=wr.call(this,this.Mb.pk(this.ta))),this.oc=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};e.wd&&e.wd.ek(),t.timings=e.wf,e.Zg&&e.Zg(t),e.oc=null,e.Zg=null},0<this.Lc.length?this.ua.load(this.Lc,this.oc):this.oc&&this.oc()},i.ig=function(){this.Li=!0,0<this.Lc.length?(zt(this.ta)&&this.Bm.ve(Ou.a.Fb(this,Su.Pd,this.dispatchEvent.bind(this,new Su(Su.hr,this.ta)))),this.ua.Dq()):_r.call(this,"NO_ADS")},i.Sw=function(){this.ua.pause()},i.isPlaying=function(){return!this.ua.Qk()},i.sx=function(){this.ua.resume()},i.setVolume=function(t){this.za=t,this.ua.setVolume(this.za)},i.mute=function(t){t?(this.dn=this.za,this.setVolume(0)):0<this.dn?this.setVolume(this.dn):0===this.za&&this.setVolume(1)},i.isMuted=function(){return!this.za},i.getDuration=function(){return this.ua.getDuration()},i.getCreativeDuration=function(){return this.ua.getCreativeDuration()},i.getAdSkippableState=function(){return this.ua.getAdSkippableState()},i.isSkippable=function(){return this.ua.isSkippable()},i.getVolume=function(){return this.za},i.rA=function(){return this.ka.eb},i.Tf=function(){return this.ua.Tf()},i.Uf=function(){return this.ua.Uf()},i.jv=function(){return"".concat(this.N.Lv(),"/").concat(this.N.Ek()," ").concat("YahooAdPlugin","/").concat("1.0.22")},i.stop=function(t){t&&(this.Hn=!0),this.Zg=this.oc=null,this.ua&&this.ua.stop(t)},i.skip=function(){this.dispatchEvent(new Au("Reporting.Basic.Click",{Ho:"skipAhead"})),this.ua.skip(),this.dispatchEvent(new Su(Su.li,this.ta))},i.lB=function(){return this.Pb},i.Ew=function(){this.ua.stop(),Or.call(this)},i.NA=function(){return this.sd},i.hA=function(){return this.Vd},i.gA=function(){return this.ka},i.sp=function(){return this.N},i.Vp=function(){return this.bf<this.ka.Dd},i.Tu=function(){return this.od.kv()},i.resize=function(){this.dispatchEvent("AdSystem.Resize")},i.Bv=function(){return this.O},i.fb=function(){return this.W},i.sk=function(){return this.ta},i.addEventListener=function(t,i,n){this.U.addEventListener(t,i,n)},i.removeEventListener=function(t,i){this.U.removeEventListener(t,i)},i.dispatchEvent=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];this.U.dispatchEvent.apply(this.U,i)},i.invokeAdMethod=function(t,i){this.dispatchEvent("AdSystem.InvokeAdMethod",{data:i,name:t})},i.getCurrentTime=function(){return this.ua.getCurrentTime()},i.$z=function(){return this.Dg},i.Qf=function(){return this.ua.Qf()||-1},i.Sf=function(){var t=-1,i=this.ua.Sf();return i&&(t=encodeURIComponent("".concat(i.Hk," ").concat(i.value))),t},i.Uu=function(){var t=this.ka.Dd;return-1===t?12341234:t},i.FA=function(){return this.T},i.cleanupAdBreak=function(){this.Aq(),this.ua.cleanupAdBreak()},i.canRenderUI=function(t){var i=this.ua.ma;return i?i.canRenderUI():function(t){return Object(Oo.n)(t,["customInfo","slot","aeg",0],[]).some((function(t){return t.canRenderUI()}))}(t)},t}();Hv.da="injector adTracker config eventBus adsConfig adContainerProvider externalTracker errorTracker urls display parametersCombine smartViewability moatViewability slotOpportunityHandler environment".split(" ");var Yv=function(t){function i(i){var n=t.call(this,i)||this;return n.U=i.eventBus,n.ac=i.hostWindowParamsObtainer,n}Ro()(i,t);var n=i.prototype;return n.au=function(){this.Qa||(this.Qa=Ou.a.group(Ou.a.bind(this.U,"Reporting.Ad.Request",xr.bind(this)),Ou.a.bind(this.U,"Reporting.Ad.Issue",Ur.bind(this)),Ou.a.bind(this.U,"Reporting.Ad.Engine.Request",Vr.bind(this)),Ou.a.bind(this.U,"Reporting.Ad.Engine.Response",Br.bind(this)),Ou.a.bind(this.U,"Reporting.Ad.Engine.Flow",zr.bind(this)),Ou.a.bind(this.U,"Reporting.Basic.Click",Gr.bind(this)),Ou.a.bind(this.U,"Reporting.Ad.Slot.Opportunity",Hr.bind(this))))},n.detach=function(){this.Qa&&this.Qa.sa()},n.Dx=function(t){this.ka=t,this.ks=t.Cu},i}(Po);Yv.da="config debugInfo environment eventBus moatViewability smartViewability urls hostWindowParamsObtainer".split(" ");var qv=function(){function t(t){this.pa=t,this.$d=this.pa.bcid,this.yd=this.pa.id,this.dj=this.pa.timestamp,this.sj={},this.Xd={},this.$e={},this.nm=!1,this.Mc=this.pa.macros||{},this.qn=Oo.k(this.Mc,"rm."),this.lf={vvuid:t.vvuid||w(this.dj)},this.As=this.pa.isEU,this.rj=!1}var i=t.prototype;return i.DC=function(t){this.nm=t},i.VA=function(){return this.uj},i.IC=function(t){t&&(this.uj=t)},i.aB=function(){return this.sf},i.JC=function(t){t&&(this.sf=t)},i.vk=function(){return this.pa.sid},i.CC=function(t){this.pa.bid=this.pa.bid||{},this.pa.bid.id=t},i.tk=function(){return this.pa.bid&&this.pa.bid.id||""},i.EB=function(){return{}},i.UA=function(){return this.sj},i.GC=function(t,i){this.sj[t]=i},i.qA=function(){return this.$d},i.Fx=function(t){this.$d=t},i.cB=function(){return this.yd},i.Vx=function(t){this.yd=t},i.Rf=function(){return this.pa.playerType||"o2unit"},i.Lv=function(){return this.pa.playerName||"unknown"},i.dw=function(){return"YAHOO"===this.Rf()},i.KA=function(){return this.dj},i.cA=function(){return this.$e},i.zx=function(t){this.Xd=t},i.Xz=function(){return this.Xd},i.Ek=function(){return this.pa.jsVersion},i.getParameters=function(){var t={};return Oo.g(this.pp(),t),Oo.g(this.Mc,t),t},i.pp=function(){var t={bcid:this.$d,bid:this.tk(),pid:this.yd,pt:this.Rf(),pv:this.Ek(),r:_o.a.Yc(window),s:Uo.a.vc()?"true":void 0,sid:this.vk(),vvuid:this.lf.vvuid};return this.uj&&(t.orgId=this.uj),this.sf&&(t.plcid=this.sf),this.eh&&(t.spid=this.eh),this.rf&&(t.pblob=this.rf),this.It&&(t.vrid=this.It),t},i.ty=function(t){Oo.g(t,this.$e)},i.Sb=function(t){return t="string"==typeof t?t.toLowerCase():t,this.Mc["m."+t]||this.Mc[t]},i.kA=function(){return this.Mc},i.kB=function(){return this.qn},i.PA=function(){return this.lf},i.uy=function(t){this.lf.vvuid=t},i.WA=function(t){return this.sj[t]||{}},i.$A=function(){return this.pa},i.Zp=function(){return-1!==(this.pa.queryString||"").indexOf("tbv=on")},i.Ee=function(){return this.pa.geo},i.Uh=function(){return this.nm||Oo.c.Uh()},i.MC=function(t){this.zd=t},i.oB=function(){return this.zd},i.lp=function(){return this.pa.adSettings},i.Sx=function(t){this.rj=t},i.TA=function(){return this.rj},i.Uv=function(){return this.pa.trackingEnabled},i.$f=function(){return this.pa.autoplay},i.Yp=function(){var t=this.$f();if(!t)return 0;var i=this.Uh();return void 0===i?t:t&&i?1:0},i.SB=function(){return this.pa.aggressiveMode},i.TB=function(){return this.pa.frosOnly},i.ZB=function(){return"1"===this.Sb("secureVPAIDsMode")},i.Fh=function(){return this.pa.privacyData},i.Nv=function(){return this.pa.preview},i.gw=function(){return this.As},i.qB=function(){return null},i.Ex=function(t){this.pa.bckt=t},i.$u=function(){return this.pa.bckt},i.Nx=function(t){this.pa.expn=t},i.uv=function(){return this.pa.expn},i.Mx=function(t){this.pa.expb=t},i.tv=function(){return this.pa.expb},i.Tx=function(t){this.rf=t},i.$x=function(t){this.eh=t},i.Lx=function(t){this.Ui=t},i.CA=function(){return this.Ui},i.Yx=function(t){this.Aj=t},i.jB=function(){return this.Aj},i.Zx=function(t){this.Ej=t},i.pB=function(){return this.Ej},t}(),Wv=function(){function t(t){this.U=t.eventBus,Ou.a.bind(this.U,jc.LOADED,$r.bind(this))}var i=t.prototype;return i.Zq=function(t,i){var n;t:{for(n=0;n<this.vf.length;n++)if(!this.vf[n].type||this.vf[n].type===t.type){this.vf.splice(n,n+1),n=!0;break t}n=!1}(n||i)&&(this.ta=t.type,Qr.call(this,t),this.U.dispatchEvent(new Au("Reporting.Ad.Slot.Opportunity",{Oo:this.cs,fw:!this.Va,slot:this.Va||this.ef,type:this.ta})),this.Wd=this.Va=void 0)},i.Eq=function(){var t=this;zf()(this.vf).forEach((function(i){"Preroll"!==i.type&&"Bumper"!==i.type||t.Zq(i)}))},i.sy=function(t,i){this.Wm[i]=t},t}();Wv.da=["eventBus"];var Qv,$v=(Qv={},ha()(Qv,".ssp.yahoo.com","SSP"),ha()(Qv,".adaptv.advertising.com","VSSP"),ha()(Qv,"pubads.g.doubleclick.net","DOUBLECLICK"),ha()(Qv,".v.fwmrm.net","FREEWHEEL"),ha()(Qv,"gemini.yahoo.com","GEMINI"),ha()(Qv,"pmp.ybp.yahoo.com","DSP"),ha()(Qv,".yahoo.com","YAHOO"),ha()(Qv,"ima3vpaid.appspot.com","ADXIMA"),ha()(Qv,"tpc.googlesyndication.com","ADXTPC"),ha()(Qv,"rubiconproject.com","RUBICON"),ha()(Qv,"tremorhub.com","TREMOR"),Qv),Xv=function(){function t(t,i){this.Ms=(this.W=t)?this.W.Gp():"",this.rq=(t=this.W&&this.W.getType())?t.toLowerCase():"",this.Js=this.W&&this.W.Vf()?this.W.Lm?2:3:1,this.Bg=0,this.qd=i}var i=t.prototype;return i.di=function(t){this.Cd=t},i.$j=function(){this.Bg+=1},i.yh=function(){return this.jm},i.Gq=function(t){this.jm=t},i.op=function(){var t=this.W&&this.W.ka,i=this.W&&this.W.getUrl(),n=this.jm,e=this.qd,r=this.Bg,s=this.W&&this.W.Eh(),o=t&&t.Bw,u=this.Js,h=this.Ms;i=Xr(i);var a=this.rq,c=2;return this.Cd&&(c=this.Cd.ea||qu.ea),{adl:n,adseq:e,at:r,ibn:s,max_lst:o,medS:u,ntwk:h,plcid:i,pos:a,r_code:c,rule:this.W&&this.W.getRuleId(),tmout:this.W&&this.W.vp(),vptm:this.W&&Math.min(this.W.Gn||2147483647,t.Qq)}},t}(),Zv=function(){function t(){}var i=t.prototype;return i.np=function(){return{ms_lat:this.an,vil:this.fj,vsl:this.ij,vst:this.fh}},i.ml=function(t){this.ij=t},i.ll=function(t){this.fj=t},i.pl=function(t){this.fh=t},i.nl=function(t){this.an=t},t}(),Jv=function(t){function i(i,n){var e=t.call(this)||this;return e.La=i,n=n||{},e.Wa=i.tag&&JSON.parse(i.tag),i=eu()(e).La.priceType,e.Xs=i,i=function(){var t=1<arguments.length?arguments[1]:void 0;return(t=cv.$h(t.offsetWidth,t.offsetHeight,(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).map((function(t){return Kr({},t,{mimeType:t.contentType})}))))&&0<t.length?t[0]:null}(e.La.mediaInfo,n),eu()(e),e.Ks=i?i.mimeType:"",n=eu()(e).Wa.advertiser_id,e.Pr=n,n=eu()(e).La.creativeId,e.sm=n,e.zj=e.Wa.assets&&0<e.Wa.assets.length?"ad":"no-ad",e.Er="".concat(i?"".concat(i.width||0,"x").concat(i.height||0):"",":").concat(i&&i.bitrate||null),e.pj=i&&i.url||null,e}return Ro()(i,t),i.prototype.nk=function(){return Kr({},this.np(),{},{adfmt:this.Er,adv_id:this.Pr,apt:this.Xs,crid:this.sm,mf_url:this.pj,mtype:this.Ks,r_type:this.zj,v_cr_id:this.sm})},i}(Zv),Kv=function(t){function i(i,n,e){return(i=t.call(this,i,e)||this).fa=n,i}Ro()(i,t);var n=i.prototype;return n.Pe=function(t,i,n){this.di(i),this.Gq(n),(t=(this.nc=t)&&this.nc.ads&&this.nc.ads[0])&&(this.Cc=new Jv(t,this.fa))},n.Fk=function(){return function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?ts(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}({},this.op(),{},this.Cc?this.Cc.nk():{r_type:"no-ad"})},n.gp=function(){return this.Cc},i}(Xv),td=function(){function t(t,i,n){this.Ia=t,this.Lj=t.id;var e=t.Yq,r=null;e&&(r=encodeURIComponent("".concat(e.Hk," ").concat(e.value))),this.zt=r,this.fa=i,i="Overlay"===n?(i=(i=this.Ia&&this.Ia.wc)&&i[0]&&i[0].ic)&&i[0]||null:(i=cv.$h(this.fa.offsetWidth,this.fa.offsetHeight,this.Ia.Ie))&&0<i.length?i[0]:null,this.mj=i?i.mimeType:"",this.Tr=i?i.bitrate:"",this.js=i?"".concat(i.width||0,"x").concat(i.height||0):"",this.zj=this.mj&&"application/javascript"===this.mj?"vpaid":"ad",this.Hs=function(t){var i={},n=t&&t.gq||{};return Object.keys(n).forEach((function(t){0<n[t]&&(i[t]=n[t])})),i}(t),this.pj=i?i.url:""}return t.prototype.mv=function(){return function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?is(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}({},this.Hs,{adfmt:"".concat(this.js,":").concat(this.Tr),mf_url:this.pj,mtype:this.mj,r_type:this.zj,uadid:this.zt,v_cr_id:this.Lj})},t}(),id=function(t){function i(i,n,e){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:[],s=t.call(this)||this;return s.La=i,s.fa=n,s.ta=e,(r=Xr(r[0]))||(r=eu()(s).La.Kb),s.sf=r,s.Nr=i&&i.aa&&i.aa.name||"",s.Fr=i.id,s.Hg={},es.call(eu()(s)),s}return Ro()(i,t),i.prototype.nk=function(t){var i=this.np(),n={ad_sys:this.Nr,adid:this.Fr,plcid:this.sf};return t?t=this.Hg[t]:t=0<(t=Object.keys(this.Hg)).length?this.Hg[t[0]]:null,function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?ns(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}({},i,{},n,{},t=t&&t.mv()||{})},i}(Zv),nd=function(t){function i(i,n,e){return(i=t.call(this,i,e)||this).fa=n,i.Cc={},i}Ro()(i,t);var n=i.prototype;return n.Pe=function(t,i,n,e){if(this.di(i),this.Gq(n),this.$r=e,this.Um=(this.na=t)&&t.xc,i=this.W.getUrl(),t=[],this.na)for(i=this.na,t.push(i.Nd);i.parent;)i=i.parent,t.push(i.Nd);else t.push(i);this.Ra=t.reverse(),this.Bg=0,t=this.Ra,this.os=Uo.a.Dh(t[0]||""),1<t.length?(this.qs=Uo.a.Dh(t[1]||""),this.bn=t.length-1):this.bn=0,os.call(this)},n.Fk=function(t,i){var n=this.op(),e={crd:this.$r,f_call:this.os,f_hop:this.qs,n_hop:this.bn},r=as.call(this,t);if(this.Um){for(t=this.na;t.parent&&t.parent.xc;)t=t.parent;t={plcid:t.xc&&t.xc.Kb||""}}else t={};return r?t=ss({},t,{},i=r.nk(i),{},r=hs.call(this,i.v_cr_id)):t=ss({r_type:"no-ad"},t,{},i=hs.call(this)),ss({},n,{},e,{},t)},n.gp=function(t){return as.call(this,t)},i}(Xv),ed=function(){function t(){}var i=t.prototype;return i.ay=function(t){this.$e={},this.M=t,this.qd=this.Kg=0,this.Db=t.O.S("smartViewability"),this.fm=0},i.Zv=function(t){this.wm=this.Qi=null;var i=t.Cg;if(this.bs=i,this.qd+=1,!this.Tg||2!==this.Tg){var n=1;t.Vf()&&(n=2),this.Tg=n}n=this.M.Tu().Ot,this.zb="GEMINI"===t.getAdEngineType()?new Kv(t,n,this.qd):new nd(t,n,this.qd),this.$e[i]=this.zb},i.Pe=function(t,i,n,e){this.zb&&this.zb.Pe(t,i,n,e)},i.di=function(t){this.zb&&this.zb.di(t)},i.$j=function(){this.zb&&this.zb.$j()},i.du=function(){this.Kg+=1},i.Fq=function(t){this.fm=+t||0},i.kl=function(t,i){this.Qi=t,this.wm=i,this.Zb=this.zb&&this.zb.gp([this.Qi])},i.ml=function(t){this.Zb&&this.Zb.ml(t)},i.ll=function(t){this.Zb&&this.Zb.ll(t)},i.pl=function(t){this.Zb&&this.Zb.pl(t)},i.nl=function(t){this.Zb&&this.Zb.nl(t)},i.Ap=function(){if(this.Zb)return this.Zb.an},i.yh=function(){if(this.zb)return this.zb.yh()},i.zq=function(){this.Kg=this.qd=0,this.Tg=this.Fi=null},i.tq=function(t,i,n,e){return i&&i!==this.bs?t=i&&(e=this.$e[i])?fs({},ls.call(this),{},e.Fk(void 0,void 0),{},t||{}):t||{}:(i=this.zb,n=n||this.Qi,e=e||this.wm,t=i?fs({},ls.call(this),{},i.Fk(n,e),{},t||{}):t||{}),t},t}();cu.a.hc(Uo.a.Ib("oathPlayerBuildEnvironment")||"prod");var rd=function(){function t(t){this.O=t}var i=t.prototype;return i.ey=function(t){this.Va=t.slot;var i=this.Va.ownerDocument||window.document;t.dontPredefineVideoTag||(this.fc=t.video||this.Va.appendChild(Object(Oo.i)(i)),this.fc=Array.isArray(this.fc)?this.fc:[this.fc]),this.lb=new Ko.a(i),this.ha={adSettings:{adStrategy:"ADSET_BASED",aeg:[],asids:[],domainOptimisation:!0,podSize:-1,prerollInterleave:1,timeout:{hard:7,maxLinearShow:3600}},id:cu.a["default.pid"],isEU:!0,jsVersion:"1.0.22",sid:w(),timestamp:+new Date},i="boolean"==typeof t.disableFailoverOnDlvFailure&&t.disableFailoverOnDlvFailure;var n="boolean"==typeof t.adCallWithCredentialsAlways&&t.adCallWithCredentialsAlways;this.ha.frosOnly=t.frosOnly,this.ha.playerType=t.playerType||"VRM_plgn",this.ha.trackingEnabled=!0,this.ha.bcid=t.buyerCompanyId,this.ha.geo=t.geo,this.ha.id=t.playerId,this.ha.sid=t.sid||this.ha.sid,this.ha.jsVersion=t.jsVersion||this.ha.jsVersion,this.ha.vvuid=t.vvuid,this.ha.autoplay=t.autoplay,this.ha.macros=t.macros,this.ha.overrideUrls=t.overrideUrls,this.ha.currentVideo=t.currentVideo,this.ha.aggressiveMode=t.aggressiveMode,this.ha.adSettings=this.ha.adSettings||{},this.ha.adSettings.timeout=t.timeout||{},this.ha.adSettings.adStrategy=t.adStrategy||"CONTENT_BASED",this.ha.adSettings.skipSettings=t.skipSettings||{},this.ha.adSettings.asids=t.asids,this.ha.adSettings.aeg=t.aeg,this.ha.adSettings.podSize=t.podSize,this.ha.adSettings.prerollInterleave=t.prerollInterleave,this.ha.adSettings.domainOptimisation=t.domainOptimisation,this.ha.adSettings.chromeHackPreinitialisation=t.chromeHackPreinitialisation,this.ha.adSettings.isBrandedContent=t.isBrandedContent,this.ha.adSettings.clickThroughUrl=t.clickThroughUrl,this.ha.adSettings.disableFailoverOnDlvFailure=i,this.ha.adSettings.adCallWithCredentialsAlways=n,this.rs=t.fakeViewability,this.ha.privacyData=t.privacyConsent,this.ha.isEU=!1!==t.isEU,this.ha.playerName=t.playerName},i.nx=function(){var t=new qv(this.ha),i=new ju(t,this.ha.overrideUrls),n=new Eu;if(this.fc&&1<this.fc.length){var e=this.fc[0].parentElement||this.fc[0];n.Jq(this.fc[0]),n.Qx(this.fc[1])}else e=this.Va;var r=_o.a.Bk(window)||window;this.O.vb("config",t).vb("debugInfo",jo).vb("urls",i).vb("videoTagProvider",n).vb("adContainerProvider",new Du(this.Va)).vb("dom",this.lb).vb("viewabilitySubject",e).vb("hostWindowProvider",new iu(r)).Aa("eventBus",Mo.default).Aa("environment",Lu).Aa("hostWindowParamsObtainer",tu).Aa("adsConfig",Oc).Aa("primalTracker",Co).Aa("display",ku).Aa("slotOpportunityHandler",Wv).Aa("errorTracker",Ho).Aa("beaconDataHolder",ed),this.rs?this.O.Aa("moatViewability",g(hu)).Aa("intersectionViewability",g(su)).Aa("smartViewability",g(_u)):this.O.Aa("moatViewability",hu).Aa("intersectionViewability",su).Aa("smartViewability",_u),this.O.Aa("adTracker",Yv).Aa("parametersCombine",au).Aa("externalTracker",Po).Aa("actionTracker",xo).Aa("adSystem",Hv).Aa("videoTracker",$o).Aa("videoTrackerManager",Jo),t=this.O.S("adSystem"),(i=this.O.S("environment")).lg(t),this.ha.currentVideo&&i.Jx(this.ha.currentVideo)},i.sp=function(){return this.ha},i.Bv=function(){return this.O},t}(),sd="external-player-item-loaded",od="external-player-mute-changed",ud="external-player-paused",hd="external-player-play-complete",ad="external-player-play-requested",cd="external-player-error",fd="external-player-playing",ld="external-player-item-skipped",vd="external-player-time-update",dd="external-player-volume-changed",pd="ad-plugin--breaks-available",md="ad-plugin--break-playing",bd="ad-plugin--break-resolve-error",yd="ad-plugin--break-resolved",gd="ad-plugin--subtitles-found",wd="ad-plugin--subtitles-not-found",_d="ad-plugin--metrics",Ed="ad-plugin--diagnostics",Od="ad-plugin-nonlinear-ad-rendered",Ad="ad-plugin-nonlinear-ad-clicked",Sd="ad-plugin-nonlinear-ad-dismissed",Td=n(45),jd=function(){function t(t){this.M=t.adSystem,this.U=t.pluginEventBus,this.Ze=t.adBlockerSniffer,this.qe=t.slotOpportunityHandler,this.Ug=t.metricsEventHandler,this.qa=t.beaconDataHolder,this.Dc=!1,ps.call(this),this.U.addEventListener(bd,Fs.bind(this))}var i=t.prototype;return i.RB=function(){return this.Dc},i.Xh=function(){this.pd=!1},i.kx=function(){this.Id=void 0},i.Pa=function(t,i,n){var e;n&&(e=this.qa.tq(n)),null!=i&&e?this.U.dispatchEvent(t,i,e):null!=i?this.U.dispatchEvent(t,i):this.U.dispatchEvent(t,e)},i.ci=function(t){this.Bb=t},i.wx=function(t){qs.call(this,t)},t}();jd.da="adSystem pluginEventBus adBlockerSniffer slotOpportunityHandler metricsEventHandler beaconDataHolder".split(" ");var Id=function(){function t(t){this.zf=t.videoTrackerManager,this.qe=t.slotOpportunityHandler,this.T=t.environment,this.M=t.adSystem}return t.prototype.onPlayerEvent=function(t,i){switch(t){case Td.c:t=Mu()(i,1)[0],this.qe.Eq(),this.T.Mw(),this.T.Kq(0),this.T.mg(t.duration),this.zf.Yk(),this.zf.mg(t.duration),this.zf.Lw();break;case Td.b:t=Mu()(i,1)[0],this.T.Kq(t),this.zf.Rh(t);break;case Td.a:this.zf.Kw();break;case Td.d:this.M.dispatchEvent(Su.vr,i)}},t}();Id.da=["adSystem","slotOpportunityHandler","videoTrackerManager","environment"];var Md=function(){function t(t){this.U=t.pluginEventBus,this.oj=[]}var i=t.prototype;return i.dispatchEvent=function(t,i){if("ad_oppty"===i.evt)var n=this.em=!0;this.em||"ad_req"===i.evt?this.U.dispatchEvent(t,i):this.oj.push({event:t,Pw:i}),n&&Ws.call(this)},i.Yw=function(){this.em=!1},t}();Md.da=["pluginEventBus"];var Nd=function(){function t(){}return t.prototype.rl=function(t){var i=t.YVAP.standaloneAd;return t={ads:[{actionUrls:i.beacons,creativeId:i.creativeId,rules:i.rules,tag:JSON.stringify($s(i.gemini))}]},{bcid:"5b32606132679a7241fe5ca9",pid:"5b3260f8dbaab35b11ca3a6e",schema:{pods:[{calculated:!0,slots:[{adxResult:"SHOW_ADS",aeg:[[{adEngineType:"GEMINI",adTypes:["Preroll"],canRenderUI:De(i=$s(i.gemini)),isNative:!0,name:"Empty - Preroll",url:"http://s3.amazonaws.com/vdb-cdn-files/dev/player-auto-tests/vast/empty.xml",usesShim:!1,vastXml:JSON.stringify(t),vendor:"5d7bd3fa10ca046303bc3d36",vendorName:"standalone_gemini_native"}]],rids:[],slot:"AVAIL",type:"PREROLL"}],type:"PREROLL"}]},slot:"AVAIL",version:"2",vid:"5b3261c2cd472447b9cd4d4b"}},t}(),Rd=n(39),kd=To.a.Na("AdBreakManager"),Ld=0,Dd=function(){function t(t){this.M=t.adSystem,this.qe=t.slotOpportunityHandler,this.Ug=t.metricsEventHandler,this.qa=t.beaconDataHolder,this.Di=[],this.U=new Mo.default,this.Pi={}}var i=t.prototype;return i.Wx=function(t){if(this.vj){var i=this.vj,n=i&&i.adBreakItems[0];n&&t>=i.startTime&&(this.preparePlayback(n),this.play(n,!0),this.vj=null)}},i.Zw=function(){var t=this.Di.find((function(t){return t.type===Rd.c}));t&&(this.vj=t)},i.preparePlayback=function(t){"resolving"!==t.resolvedState&&(t.isRepeated=this.Pi.adBreakItemId===t.adBreakItemId,t.isRepeated&&Ld++,this.qa.Fq(Ld),this.xf=io.call(this,t)),this.Pi=t},i.Xw=function(t){this.xf=io.call(this,t)},i.play=function(t,i){var n=this;return t.isRepeated=this.Pi.isRepeated,(this.xf||Eo.a.resolve()).then((function(){n.M.Ux(),n.Gi?(no.call(n,t),n.M.tx()):!i&&n.Bb||(no.call(n,t),n.M.ig())}))},i.fetchAdBreaks=function(t){var i=this;if(this.M.hc(),Ld=0,this.qa.Fq(Ld),t){!function(t){(t=t.aeg)&&t.forEach((function(t){t.forEach((function(t){"overlay"===(t.type||t.adTypes&&t.adTypes[0]).toLowerCase()&&(t.slot=t.slot||{},(t=t.slot).width="45%",t.position=_.vi,t.left="18.5%",t.top="90%")}))}))}(t);try{t=JSON.parse(JSON.stringify(t))}catch(t){kd.error("Failed to clone vrmConfig",t)}}return new Eo.a((function(n){i.M.bq({preloadedConfig:t},(function(t){i.Di=function(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(i){var n=Zs(i);if(0<n.length||"Midroll"===i.type){var e=0;i.time&&isNaN(i.time)?e=Object(Oo.K)(i.time):isNaN(i.time)||(e=i.time),e={adBreakId:w(),mimetype:"adplugin/vrm",startOffset:e,startTime:e},Js(n)?(e.type=Rd.b,e.adBreakItems=n):i.type&&"Overlay"===i.type?(e.type=Rd.c,e.adBreakItems=n):(e.customInfo=n,e.type=i.type&&i.type.toLowerCase()),e.type=e.type||"preroll",t.push(e)}})),t}(t.Vh),t=i.Di.map((function(t){var i=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?Xs(Object(n),!0).forEach((function(i){ha()(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}({},t);return t.customInfo&&(i.customInfo=t.customInfo.slice()),t.adBreakItems&&(i.adBreakItems=t.adBreakItems.slice()),i})),n(t)}))}))},i.cleanupAdBreak=function(){to.call(this),this.qe.Eq()},i.addEventListener=function(t,i){this.U.addEventListener(t,i)},i.removeEventListener=function(t,i){this.U.removeEventListener(t,i)},i.resume=function(t){!this.pd&&!this.Gi||this.fn||no.call(this,t),this.pd&&this.M.ig()},i.ci=function(t){this.Bb=t},t}();Dd.da=["adSystem","slotOpportunityHandler","metricsEventHandler","beaconDataHolder"],Dd.yl="AdBreakManager.AD_BREAK_PREPARED";var Cd=0,Pd=function(){function t(){}return t.Mo=function(t){var i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=document.createElement("iframe");return n.id="xdomainIframe:".concat(t,":").concat(Cd++),i&&(n.style.position="absolute",n.style.top=0,n.style.width="100%",n.style.height="100%",n.style.zIndex=2,n.style.pointerEvents="auto !important",n.setAttribute("allow","autoplay")),n.setAttribute("frameborder","0"),i=dt(cu.a["cdn.url"],cu.a["s3.url"]),i="".concat(i).concat(t,".html?id=").concat(Cd++),n.src=i,n},t.ro=function(t,i){return new Eo.a((function(n){t.onload=function(){n()},i?i.appendChild(t):document.body.appendChild(t)}))},t}(),xd=n(43),Ud=To.a.Na("IframeXDomainMessenger"),Vd=function(){function t(t,i){this.Ps=i}var i=t.prototype;return i.hc=function(t){this.Qa=Ou.a.empty(),this.Ob=t,this.Mg=Uo.a.Th(t.src).origin,this.xm=[],this.Mm=!1},i.loaded=function(){var t=this;Ou.a.bind(this.Ob.contentWindow.parent,"message",this.Vk.bind(this)).link(this.Qa),this.Mm=!0,this.xm.forEach((function(i){return t.kg(i)}))},i.destroy=function(){this.Qa&&this.Qa.sa()},i.kg=function(t){if(this.Ob.contentWindow)try{this.Mm?this.Ob.contentWindow.postMessage(JSON.stringify(t.Mv()),this.Mg):this.xm.push(t)}catch(t){Ud.error("Error while interacting with IFRAME",xd.a.xo().Iu().uh("error").data({error:t.message}).wo().getData())}},i.Vk=function(t){t:{try{var i=JSON.parse(t.data);break t}catch(i){Ud.warn("Error Parsing",t,i)}i=void 0}i&&t.origin===this.Mg&&i.location===this.Ob.src&&i.type&&(t.preventDefault(),this.Ps(xd.a.clone(i)))},t}(),Bd=n(17),Fd=To.a.Na("IframeXDomainCommunicator"),zd=function(){function t(){this.Cf=new Vd(this,eo.bind(this)),this.ho=new Vd(this,eo.bind(this))}var i=t.prototype;return i.NB=function(){var t=this;this.Cf.destroy();var i=Pd.Mo("vrm-xdomain");this.Cf.hc(i),Pd.ro(i).then((function(){t.Cf.loaded()}))},i.MB=function(t){var i=this;this.Cf.destroy();var n=Pd.Mo("vrm-xdomain-media",!0);this.ho.hc(n),Pd.ro(n,t).then((function(){i.ho.loaded()}))},i.AC=function(t){this.Cf.kg(xd.a.xo().Tw().data(t).wo())},i.Dz=function(){},i.zC=function(){},i.vz=function(){},i.iD=function(){},t}(),Gd=function(){function t(t){this.O=t.Mk,this.Ti=t.yu,this.pn=t.bx}var i=t.prototype;return i.yk=function(){var t=this;return this.Ma||(this.Ma=this.O.lx(this.Ti).then((function(i){return t.ej.apply(t,zf()(i))}))),this.Ma},i.zk=function(){if(!this.je){var t=this.O.mx(this.Ti);if(t=this.Oi.apply(this,zf()(t)),!this.Tm(t))throw Error("can't be created synchronously");this.je=t}return this.je},i.Tm=function(t){return null==t||"function"!=typeof t.then},i.Oi=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return this.pn.apply(null,i)},i.ej=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var e=this;return new Eo.a((function(t){e.je=e.Oi.apply(e,i),t(e.je)}))},t}(),Hd=function(t){function i(){return t.apply(this,arguments)||this}Ro()(i,t);var n=i.prototype;return n.Oi=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var e={};return this.Ti.forEach((function(t,n){e[t]=i[n]})),new this.pn(e)},n.ej=function(){for(var i=this,n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return t.prototype.ej.apply(this,e).then((function(t){var n=t;return i.je.wp&&(n=i.je.wp().then((function(){return t}))),n}))},n.Tm=function(t){return"function"!=typeof t.wp},i}(Gd),Yd=function(){function t(t){this.jf={},this.Am=!0,(this.nf=t)&&this.vb(t,this)}var i=t.prototype;return i.uq=function(t,i,n){if(this.jf[t]){if(this.Am)throw Error("".concat(t," can't be provided twice"))}else this.jf[t]=ro.call(this,i,n);return this},i.dl=function(t,i){return this.uq(t,i,!0)},i.Aa=function(t,i){return this.vb(t,this.Ya(i))},i.vb=function(t,i){return this.uq(t,(function(){return i}))},i.ag=function(t){return void 0!==this.jf[t]},i.resolve=function(t){var i=this.jf[t];return i=i?i.yk():Eo.a.reject("no such dependency ".concat(t)),Eo.a.race([i,Object(Oo.C)(8e3).catch((function(){throw Error("".concat(t," isn't resolved in ").concat(8e3,"ms"))}))])},i.S=function(t){var i=this.jf[t];if(!i)throw Error("no such dependency ".concat(t));return i.zk()},i.lx=function(t){var i=this;return Eo.a.all(t.map((function(t){return i.resolve(t)})))},i.mx=function(t){var i=this;return t.map((function(t){return i.S(t)}))},i.Mz=function(t){return ro.call(this,t,!0).yk()},i.Ya=function(t){return ro.call(this,t,!0).zk()},i.Qp=function(t){return ro.call(this,t).yk()},i.OB=function(t){return ro.call(this,t).zk()},i.HC=function(t){void 0!==t.Eu&&(this.Am=t.Eu)},t}();!function(t){function i(i){var n=t.call(this,i.nf)||this;return n.wj=i,n}Ro()(i,t);var n=i.prototype;n.resolve=function(i){var n=this;return t.prototype.resolve.call(this,i).catch((function(t){if(!/no such dependency/.exec(t))throw t;return t=n.wj.resolve(i)}))},n.ag=function(i){return t.prototype.ag.call(this,i)||this.wj.ag(i)},n.S=function(i){try{return t.prototype.S.call(this,i)}catch(t){return this.wj.S(i)}}}(Yd);var qd=function(){function t(t){this.O=t||new Yd("injector"),this.Ze=new Io,this.gm=new rd(this.O),this.U=new Mo.default,this.Lt=new zd,this.Ze.check(),this.O.vb("pluginEventBus",this.U),this.O.vb("adBlockerSniffer",this.Ze),this.O.vb("xdomainCommunicator",this.Lt),this.type="ad-plugin",this.mimetype="adplugin/vrm",this.version="1.0.22"}var i=t.prototype;return i.getCapabilities=function(){return["1","2"]},i.prepare=function(t){var i=this;t=e(t),this.Va=t.slot,this.gm.ey(t),this.gm.nx(),this.O.dl("metricsEventHandler",Md),this.Vs=this.O.Ya(Id),this.Za=this.O.Ya(jd),this.Yb=this.O.Ya(Dd),this.N=this.O.S("config"),this.Yb.addEventListener(Dd.yl,(function(t){i.Za.Pa(sd,t,{})})),this.T=this.O.S("environment"),this.M=this.O.S("adSystem"),this.qa=this.O.S("beaconDataHolder")},i.addEventListener=function(t,i){this.U.addEventListener(t,i)},i.removeEventListener=function(t,i){this.U.removeEventListener(t,i)},i.onPlayerEvent=function(t){for(var i=arguments.length,n=Array(1<i?i-1:0),e=1;e<i;e++)n[e-1]=arguments[e];this.Vs.onPlayerEvent(t,n),t===Td.b&&this.Yb.Wx(n[0])},i.fetchAdBreaks=function(){var t=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.qa.ay(this.M),this.Za.kx();var n=i.refId,e=i.pos+1;e&&this.T.Kx(e),i=ao.call(this,i.config),this.us?this.N.uy(w()):this.us=!0,this.Yb.fetchAdBreaks(i).then((function(i){t.Za.Pa(pd,{adBreaks:i,refId:n})}))},i.resolveAdBreak=function(t){var i=t.customInfo;delete t.customInfo,0<i.length?(this.qa.zq(),this.Za.Xh(),oo.call(this,!1),t.adBreakItems=i,(i=so.call(this,i)).resolvedState="resolving",this.Yb.Xw(i),this.Za.Pa(yd,t)):this.Za.Pa(bd,t,{r_code:100})},i.preparePlayback=function(t,i,n){ho.call(this,t,"ad_prepare_pb_plg"),"resolving"!==t.resolvedState&&(this.qa.zq(),this.Za.Xh(),oo.call(this,!1)),t.customInfo.slot.aeg.every((function(t){return!(0<t.length)})),n&&this.Va&&n.appendChild(this.Va),i&&this.O.S("videoTagProvider").Jq(i),this.Yb.preparePlayback(t)},i.play=function(t){var i=this;ho.call(this,t,"ad_play_plg",{ad_started:this.Za.Dc,paused:this.Bb}),this.Bb||this.Za.Dc?uo.call(this,t):this.Yb.play(t).then((function(){i.Za.Pa(ad,null,{})}))},i.pause=function(){ho.call(this,null,"ad_paused_plg"),oo.call(this,!0),this.Za.Dc?this.M.Sw():this.Za.Pa(ud,null,{})},i.seek=function(){},i.stop=function(){this.M.stop(!0)},i.skip=function(){this.M.skip()},i.mute=function(t){this.M.mute(t)},i.isMuted=function(){return this.M.isMuted()},i.setVolume=function(t){this.M.setVolume(t)},i.getVolume=function(){return this.M.getVolume()},i.getCurrentTime=function(){return this.M.getCurrentTime()},i.getDuration=function(){return this.M.getDuration()},i.unload=function(){this.M&&this.M.stop()},i.destroy=function(){this.Va=void 0,this.M&&this.M.stop()},i.canRenderUI=function(t){return!!this.M&&this.M.canRenderUI(t)},i.renderUI=function(){return null},i.unrenderUI=function(){},i.setNonlinearAdContainer=function(t){t&&this.O.S("adContainerProvider").Rx(t),this.Yb.Zw()},i.cleanupAdBreak=function(){this.Bb=!1,this.M.cleanupAdBreak(),this.Yb.cleanupAdBreak()},t}();n.d(i,"VrmAdPlugin",(function(){return qd})),n.d(i,"AdPluginEvent",(function(){return co}))}])}module.exports=Ah()},4998:function(t,i,n){"use strict";i.sS=i.aU=void 0;var e=n(8244);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(4955)},1798: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}},590: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(1798),s=n(8166),o=function(){function t(t,i){this.pdt=NaN,this.id=t,this.E8={},this.O8=new Map,this.XX(i)}return t.prototype.destroy=function(){this.E8=null,this.O8.clear(),this.O8=null},t.prototype.XX=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.E8[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],h=u.jsonData;u.clockOffset="urn:uplynk:content-data:watchtogether"===u.className&&h?1e3*h.latency_ts-u.startDate:NaN,this.O8.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.E8)),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.O8.values()),u=o.next();!u.done;u=o.next()){var h=u.value;h.startDate<=t+h.clockOffset&&(!h.endDate||h.endDate>t+h.clockOffset)&&s.push(h)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var a=this.A8(s,i);return(null==a?void 0:a.clockOffset)||NaN},t.prototype.A8=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},8244: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,h,a=n(590),c=n(4955),f=n(1409),l=n(3872);!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"}(h=i.SynchEvents||(i.SynchEvents={}));var v=((r={})[c.SynchStrategy.SEEK]=0,r[c.SynchStrategy.PAUSE]=0,r[c.SynchStrategy.RATE_CHANGE]=0,r),d=function(t){function i(n,e){var r=t.call(this,"StreamSynch")||this;if(r.S8=["play","playing","seek","seeking","seeked","ended","error","timeupdate"],r.zE=o.DISABLED,r.T8=v,r.j8=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.I8=n,r.LO(),r.n_=new a.default(n.id,e),r.I8.addEventListener("playing",(function(){var t;r.n_.pdt=r.I8.getStartDate&&(null===(t=r.I8.getStartDate())||void 0===t?void 0:t.getTime())||NaN}),{once:!0}),r.M8=new l.Timer(r.n_.config.syncThreshold,(function(){r.N8.synch(r.I8.currentTime)}),r),r.N8=new c.ClientSynchronizer(r.n_),r.k8(r.N8),c.WebSocketSynchronizer.canUse()&&(r.L8=new c.WebSocketSynchronizer(r.n_),r.k8(r.L8)),r}return s(i,t),i.canUse=function(){return c.default.canUse()&&c.ClientSynchronizer.canUse()},i.prototype.onSetSrc=function(){var t=this;this.n_.pdt=NaN,this.I8.addEventListener("playing",(function(){var i;t.n_.pdt=t.I8.getStartDate&&(null===(i=t.I8.getStartDate())||void 0===i?void 0:i.getTime())||NaN}),{once:!0})},i.prototype.destroy=function(){var i,n;this.aO(u.DESTROY),null===(i=this.N8)||void 0===i||i.destroy(),null===(n=this.L8)||void 0===n||n.destroy(),this.DO(),this.n_.destroy(),this.M8.destroy(),t.prototype.destroy.call(this)},i.prototype.addSegmentInfo=function(t){t&&this.n_.addSegmentInfo(t)},i.prototype.updateDateRanges=function(t){t&&this.n_.updateDateRanges(t)},i.prototype.getSyncOffset=function(){var t;return(null===(t=this.L8)||void 0===t?void 0:t.syncOffset)||this.N8.syncOffset},i.prototype.startSync=function(){this.zE===o.DISABLED&&(this.zE=o.IDLE)},i.prototype.stopSync=function(){this.zE!==o.DISABLED&&(this.aO(u.STOP_API),this.zE=o.DISABLED)},i.prototype.getSyncState=function(){return this.zE},i.prototype.LO=function(){var t=this;this.wE=this.uJ.bind(this),this.S8.forEach((function(i){t.I8.addEventListener(i,t.wE)}))},i.prototype.DO=function(){var t=this;this.S8.forEach((function(i){t.I8.removeEventListener(i,t.wE)}))},i.prototype.uJ=function(t){if(this.zE!==o.DISABLED)switch(t.type){case"timeupdate":var i=t.target.currentTime;if(this.L8)return void this.L8.synch(i);this.N8.synch(i);break;case"seeked":this.aO(u.IN_SYNC)}},i.prototype.k8=function(t){var i=this;t.on(c.SynchronizerEvents.SEEK,this.D8,this),t.on(c.SynchronizerEvents.PAUSE,this.C8,this),t.on(c.SynchronizerEvents.RATE_CHANGE,this.P8,this),t.on(c.SynchronizerEvents.INVALID_OFFSET,this.x8,this),t.on(c.SynchronizerEvents.DRIFTING,this.U8,this),t.on(c.SynchronizerEvents.IN_SYNCH,(function(){i.aO(u.IN_SYNC),i.V8("in synch")}),this)},i.prototype.D8=function(t){this.kT()&&(this.B8(o.SYNCHING_SEEK,t),this.I8.currentTime=t.targetPosition,this.V8("synch action: seek to"+t.targetPosition))},i.prototype.C8=function(t){this.kT()&&(this.B8(o.SYNCHING_PAUSE,t),this.I8.pause(),this.M8.start(),this.V8("synch action: pause"))},i.prototype.P8=function(t){this.kT()&&(this.B8(o.SYNCHING_RATE_CHANGE,t),this.I8.playbackRate=t.playbackRate,this.V8("synch action: change playback rate to"+t.playbackRate))},i.prototype.x8=function(){this.aO(u.INVALID_OFFSET),this.V8("invalid offset")},i.prototype.U8=function(){this.aO(u.SYNC_DRIFT),this.V8("drifting")},i.prototype.B8=function(t,i){this.zE=t,this.j8||(this.j8=Date.now()),this.T8[i.strategy]++,this.publish(h.SYNCH_STRATEGY_APPLIED,i)},i.prototype.aO=function(t){if(this.zE!==o.DISABLED&&this.zE!==o.IDLE){this.zE===o.SYNCHING_PAUSE?(this.M8.stop(),this.I8.play()):this.zE===o.SYNCHING_RATE_CHANGE&&(this.I8.playbackRate=1);var i={syncMode:"client",syncSource:"sapi",syncDuration:Date.now()-this.j8,strategies:this.T8,cause:t};this.zE=o.IDLE,this.j8=0,this.T8=v,this.publish(h.SYNCH_COMPLETE,i),this.V8("synch completed")}},i.prototype.kT=function(){return this.zE===o.IDLE},i.prototype.V8=function(t){},i}(f.default);i.StreamSynch=d},4955: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(1409),u=n(9451);!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 h,a=.2;!function(t){t.RATE_CHANGE="rateChange",t.PAUSE="pause",t.SEEK="seek"}(h=i.SynchStrategy||(i.SynchStrategy={}));var c=function(t){function i(i){var n=t.call(this,"Synchronizer")||this;return n.n_=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=c;var f=function(t){function i(i){var n=t.call(this,i)||this;return n.F8=NaN,n.z8=NaN,n}return r(i,t),i.canUse=function(){return!0},Object.defineProperty(i.prototype,"syncOffset",{get:function(){return this.F8},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.synch=function(t){if(!(t<0)){var i=this.n_.getCurrentFramePdt(t),n=Date.now()-(i+this.n_.getClockOffset(i,u.userAgent)),e=this.n_.config.syncPoint;if(this.F8=e-n,this.G8(this.F8))return this.z8=NaN,void this.publish(s.DRIFTING);this.z8=this.F8;var r={syncMode:"client",targetLatency:e,liveLatency:n,syncSource:"sapi",targetPosition:t-this.F8/1e3,syncDuration:0,playbackRate:1,synchOffset:this.F8},o=u.userAgent.firefox?this.n_.config.ffSyncThreshold:this.n_.config.syncThreshold;if(Math.abs(this.F8)<o)this.publish(s.IN_SYNCH);else if(isNaN(this.F8))this.publish(s.INVALID_OFFSET);else{if(-this.syncOffset>1e4)return r.strategy=h.SEEK,void this.publish(s.SEEK,r);var c=this.F8>0?.8:1.2;if(r.playbackRate=c,this.F8>0)this.n_.config.pauseOnAhead||u.userAgent.firefox?(r.syncDuration=this.F8,r.playbackRate=0,r.strategy=h.PAUSE,this.publish(s.PAUSE,r)):(r.strategy=h.RATE_CHANGE,r.syncDuration=this.F8/a,this.publish(s.RATE_CHANGE,r));else{if(u.userAgent.ios&&Math.abs(this.F8)<1e3)return;u.userAgent.firefox||u.userAgent.ios?(r.strategy=h.SEEK,this.publish(s.SEEK,r)):(r.strategy=h.RATE_CHANGE,r.syncDuration=this.F8/a,this.publish(s.RATE_CHANGE,r))}}}},i.prototype.G8=function(t){return Math.abs(t)>this.n_.config.syncThreshold&&Math.abs(this.z8)>this.n_.config.syncThreshold&&Math.abs(this.z8)<Math.abs(t)},i}(c);i.ClientSynchronizer=f;var l=function(t){function i(i){var n=t.call(this,i)||this;return n.F8=NaN,n}return r(i,t),i.canUse=function(){return!1},Object.defineProperty(i.prototype,"syncOffset",{get:function(){return this.F8},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.synch=function(t){},i}(c);i.WebSocketSynchronizer=l},8166:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(3872),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},263: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(9364)}},9938:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8173),r=n(263),s=function(){function t(){this.name="ProviderBrandingPlugin",this.version="8.3.157",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.H8(t);return n?(i.innerHTML=n,i.children[0]):null},t.prototype.H8=function(t){var i=t&&t.branding&&t.branding.providerId,e=i&&r.PROVIDER_BRANDING_TEMPLATES[i];return this.Y8(t)?(n(5005),e.render()):null},t.prototype.Y8=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},7513:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e,r=n(8689),s=n(2133);(e=window.crypto||window.msCrypto)||("undefined"!=typeof crypto?e=crypto:"undefined"!=typeof msCrypto&&(e=msCrypto)),e=e&&(e.subtle||e.webkitSubtle)||null;var o={name:"HMAC",hash:{name:"SHA-1"}},u=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},h=function(t,i){return new r.Promise((function(n,r){e&&e.importKey||r(new Error("crypto is not supported by the current browser")),e.importKey("raw",u(i),o,!1,["sign","verify"]).then((function(i){return e.sign(i.algorithm,i,u(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={},o=(new Date).getTime(),u=Math.random().toString(36).slice(2,12),a="",c=1,f=s.default.getSingleton("PlayerHosting");if(f&&(c=f.gv||1,n=f.g||[],Array.isArray(n))){for(var l=[],v=0,d=n;v<d.length;v++){var p=d[v];l.push(String.fromCharCode(p))}a=l.join("")}var m="dev_id="+i+"&nonce="+u+"&ts="+o+"&uuid="+t+"&v="+c;return new r.Promise((function(t,n){h(m,a).then((function(n){var r=btoa(n);e.xauth_v=c,e.xauth_ts=o,e.xauth_nonce=u,e.xauth_dev_id=i,e.xauth_signature=r,t(e)})).catch((function(t){n({})}))}))},t}();i.default=a},6399:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_MEDIA_ITEM_META=i.DEFAULT_HEIGHT=i.DEFAULT_WIDTH=i.DEFAULT_AD_SYSTEM_VERSION=i.DEFAULT_AD_SYSTEM=void 0;var e=n(7673),r=n(9451),s=n(8173),o=n(3872),u=n(1963),h=n(8689),a=n(2133),c=n(6249),f=n(263),l=n(7513),v=n(5321),d=n(3872);i.DEFAULT_AD_SYSTEM="vrm",i.DEFAULT_AD_SYSTEM_VERSION="2";var p=3e3,m=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};var b=function(){function t(t){this.JF=!1,this.n_=t;var i=this.n_.config&&this.n_.config.CMS;this.q8=i&&i.host||v.default.getEnv(i&&i.env||""),o.Loader.preconnect("preconnect-sapi","//"+this.q8)}return t.prototype.resolve=function(t,i,n,e,r){var s=this;if(void 0===i&&(i={}),void 0===r&&(r=0),Array.isArray(t)&&0!==t.length){var h="",a=this.W8(t,i,n),f=r>0?r:0,l=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(!s.JF){var r=i[0],a=void 0,f=i[2],l=i[3];try{a=JSON.parse(r),f.instrument=a.query&&a.query.results&&a.query.results.instrument?JSON.stringify(a.query.results.instrument):"none"}catch(t){}e.onApiCallInfo({perfObj:f,url:h}),s.Q8(t,l,r,(function(t,i){if(!t&&i&&i.length){for(var n=0,r=i;n<r.length;n++){var h=(r[n].customConfig||{}).mediaItemStatus||{},a=parseInt(h.code,10);if(!isNaN(a)&&a>100){var f="",l=null,v=null;return s.X8(o.errorCodes.INFO_CODES,h.code)&&(l=o.errorCodes.E_INFO),s.Z8(l,h.code)&&(v="R"),h.code===o.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE&&(f=u.default.ERR_RESTRICTED_NETWORK_TYPE),h.code===o.errorCodes.SAPI_CODES.E_UNSUPPORTED_FORMAT&&(v="S",l=o.errorCodes.E_SAPI_STREAM),void s.GD(v,l,h.code,f,e)}}e.onComplete(i)}else t=t||"",s.GD(null,null,c.getErrorCode(),t,e)}))}},v=function(t,i,n,r,o){if(!s.JF)if(0!==f&&h)f--,s.J8(h,l,v);else{e.onApiCallInfo({perfObj:o||{},url:h});var u=t.message+"; "+h+"; "+i+"; "+n;s.GD(null,null,c.getErrorCode(t,i,n),u,e)}};a.then((function(t){h=t,s.J8(h,l,v)})).catch((function(){v.apply(s)}))}},t.prototype.cancel=function(){this.JF=!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.K8(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=r.userAgent.iosVersion&&r.userAgent.iosVersion<13?"ontouchstart"in window:"ontouchstart"in window&&navigator.maxTouchPoints>0,r.userAgent.chromecast?"tv-widget,chromecast":r.userAgent.tv?"tv-widget":!n&&t&&(r.userAgent.ipad||r.userAgent.androidTablet)?"tablet":!n&&t&&r.userAgent.mobile?"smartphone":"desktop"},t.prototype.J8=function(t,i,n){var e=p;r.userAgent.mobile&&!r.userAgent.ios&&(e=m),o.Loader.ajax(t,{context:this,successHandler:i,failureHandler:n,collectPerfData:!0,withCookie:!0,timeout:e})},t.prototype.K8=function(t,n,e){var r=this;void 0===e&&(e=!0);var s=n.meta||{},u=n.streams||[],h=n.license||{},a=t.metadata||{},c=n.metrics||{},l=t.customConfig||{},v=d.Utils.sanitizeAndUnescape(s.description,!1);if(a.title=s.title||v,a.description=v,a.thumbnail=s.thumbnail,a.posterUrl=s.posterUrl,a.duration=s.duration,a.liveState=s.live_state||i.DEFAULT_MEDIA_ITEM_META.liveState,a.liveLabel=s.live_label||i.DEFAULT_MEDIA_ITEM_META.liveLabel,a.pip=o.TypeChecker.isBoolean(s.pip)?s.pip:i.DEFAULT_MEDIA_ITEM_META.pip,a.syncPoint=o.TypeChecker.isNumber(s.syncpoint)?s.syncpoint:i.DEFAULT_MEDIA_ITEM_META.syncPoint,a.videoTypes=s.video_types,t.skt=n.sktHeader||"",!l.playlistConfig&&s.playlist_config&&(l.playlistConfig=s.playlist_config),t.customConfig=t.customConfig||{},t.customConfig.nielsenRequired=s.nielsen_beacons||!1,n.status&&(t.customConfig.mediaItemStatus=n.status),s.allowed_connection_types&&(t.customConfig.allowedConnectionTypes=s.allowed_connection_types),t.customConfig.metrics={comscoreCM5:c.comscore_cm5||"",beacons:c.beacons||[],ywa:c.ywa||[],comscore6:c.comscore6||"",pspId:c.pspid||"",plidl:c.plidl||"",isrc:c.isrc||"",mmActivityId:c.mmActivityId||"",mediametrie:c.mediametrie||""},t.customConfig.meta={instrument:s.instrument||{},genre:s.genre||"",showName:s.show_name||"",credits:s.credits||{},eventStart:s.event_start||0,eventEnd:s.event_stop||0,videoMarkers:s.video_markers||null,castable:!(!1===s.castable)},e&&(a.title=a.title||i.DEFAULT_MEDIA_ITEM_META.title,a.description=a.description||i.DEFAULT_MEDIA_ITEM_META.description,a.thumbnail=a.thumbnail||i.DEFAULT_MEDIA_ITEM_META.thumbnail,a.posterUrl=a.posterUrl||i.DEFAULT_MEDIA_ITEM_META.posterUrl,a.duration=a.duration||i.DEFAULT_MEDIA_ITEM_META.duration,a.liveState=a.liveState||i.DEFAULT_MEDIA_ITEM_META.liveState,a.liveLabel=s.live_label||i.DEFAULT_MEDIA_ITEM_META.liveLabel),t.source={streams:u.map((function(t){return r.t7(t)}))},a.type=this.gP(t.source.streams),t.metadata=a,h){var p={};p.title=h.title,p.accountName=h.account_name,p.originatingProperty=h.originating_property,p.accountId=h.account_id,p.salesforceId=h.salesforce_id,p.isDrm=h.is_drm,t.license=p}t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/sapi"},t.visualSeekData.visualSeek=n.visualseek,s.provider&&(t.brandingData=t.brandingData||{branding:{}},s.provider.provider_id&&f.PROVIDER_BRANDING_TEMPLATES[s.provider.provider_id]&&(t.brandingData.mimetype="branding/provider"),t.brandingData.branding=t.brandingData.branding||{},t.brandingData.branding.providerId=s.provider.provider_id,t.brandingData.branding.providerName=s.provider.name,t.brandingData.branding.providerVideoId=s.provider.provider_video_id,t.brandingData.branding.gameOrigin=s.game_origin||[]),!t.adConfig&&n[i.DEFAULT_AD_SYSTEM]&&(t.adConfig={value:n[i.DEFAULT_AD_SYSTEM],mimetype:"adplugin/"+i.DEFAULT_AD_SYSTEM}),n.closedcaptions&&(t.closedCaptions=n.closedcaptions)},t.prototype.Q8=function(t,i,n,e){var r=this;try{var s=JSON.parse(n),u=s&&s.query&&s.query.results&&s.query.results.mediaObj;if(!u)return void e("Bad sapi response");var h="";i&&o.TypeChecker.isFunction(i.getResponseHeader)&&(h=i.getResponseHeader("skt")),t.forEach((function(t){u.some((function(i,n){return!(!i||t.id!==i.id)&&(i.sktHeader=h,r.K8(t,i),u.splice(n,1),!0)}))})),e(null,t)}catch(t){e(t.message)}},t.prototype.GD=function(t,i,n,e,r){var s={code:n,message:e,group:t||void 0,category:i||void 0};r.onError(s)},t.prototype.X8=function(t,i){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]===i)return!0;return!1},t.prototype.Z8=function(t,i){return t===o.errorCodes.E_INFO&&[o.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE,o.errorCodes.INFO_CODES.E_SAPI_GEO,o.errorCodes.INFO_CODES.E_SAPI_BLACKOUT,o.errorCodes.INFO_CODES.E_SAPI_DEVICE,o.errorCodes.INFO_CODES.E_SAPI_EMBED].indexOf(i)>-1},t.prototype.W8=function(t,n,u){var c=this,f=this.n_,l=t.map((function(t){return t.id})).join(","),v=u.rendererTypes,d=u.rendererCapabilities,p={},m={},b=u.privacyConsent,y=u.thumbnailDimensions,g=t[0].adConfig?1:0;!0===(null==n?void 0:n.disableAdFetch)&&(g=1);var w="//"+this.q8+"/v1/video/sapi/streams/"+l;v&&v.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 m[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(m).join(","),rt:"html",devtype:this.getDeviceType(),offnetwork:!a.default.isOathDomain()&&!a.default.isAllowlistedDomain(),plid:f.guid,region:f.region||"US",site:f.site,expb:f.experienceBucket,expn:f.experienceName,bckt:a.default.getBckt(),lang:f.lang,width:y.width,height:y.height,resize:!0,ps:u.sessionId,autoplay:u.autoplay,image_sizes:"",excludePS:!0,isDockable:f.isDockable?"1":"0",acctid:f.yvapAccountId,synd:f.syndication,pspid:f.pspid,plidl:"",topic:f.cTopic,pver:"",try:o.TypeChecker.isNumber(Number(u.tryCount))?Number(u.tryCount):1,failover_count:o.TypeChecker.isNumber(Number(u.failoverCount))?Number(u.failoverCount):0,ads:i.DEFAULT_AD_SYSTEM+i.DEFAULT_AD_SYSTEM_VERSION,nad:g,"ad.pl":"up"};1===t.length&&(_["ad.plseq"]=u.playlistPosition);for(var E=null,O=0;O<t.length;O++){var A=t[O];if(A.mimetype===s.MediaItemInterfaces.MediaItemMimeType.SAPI&&A.customConfig&&A.customConfig["source-metadata-plugin"]&&o.TypeChecker.isObject(A.customConfig["source-metadata-plugin"].qs)){E=A.customConfig["source-metadata-plugin"].qs;break}}var S=a.default.getPageQueryString(),T=S.ad_debug,j=S.upet;T&&(_.ad_debug=T),j&&(_.upet=j),_.hlspre=!1,f.aspectRatio&&(_.aspectr=f.aspectRatio),b&&!o.TypeChecker.isNullOrUndefined(b.gdprApplies)&&(_.gdpr=!0===b.gdprApplies,_.iabconsent=b.gdprConsentData||""),b&&!o.TypeChecker.isNullOrUndefined(b.uspString)&&(_.usprv=b.uspString||""),f.pblob&&(_.pblob=f.pblob);var I=n.qs||{};if(E&&o.TypeChecker.isObject(E))for(var M in E)Object.prototype.hasOwnProperty.call(E,M)&&(null===E[M]?delete I[M]:I[M]=E[M]);return _=a.default.extend(I,_),new h.Promise((function(t,i){f.allowGeoRequest&&r.userAgent.mobile?c.i7(l).then((function(i){var n=Object.assign({},_,i);t(w+"?"+e.stringify(n))})).catch((function(){t(w+"?"+e.stringify(_))})):t(w+"?"+e.stringify(_))}))},t.prototype.t7=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.i7=function(t){var i=this;return new h.Promise((function(n,e){l.default.getXAuthParams(t,i.getDeviceType()).then((function(t){var e=i.n_.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.gP=function(t){return t.some((function(t){return t.live}))?s.MediaItemInterfaces.MediaItemType.LIVE_EVENT:s.MediaItemInterfaces.MediaItemType.VOD},t}();i.default=b},5535:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(7673),r=n(9451),s=n(8173),o=n(3872),u=n(7525),h=n(6249),a=function(){function t(t){this.JF=!1,this.n_=t}return t.prototype.resolve=function(t,i,n){var e=this;if(this.n_.playlistId||this.n_.relatedVideoId){var r=2,s=this.n7(t),o=function(t){e.JF||e.Q8(t,(function(t,r){t||!r?(t=t||"",e.GD(null,null,h.getErrorCode(),t,i,n)):(i.onComplete(r),n&&n())}))},u=function(t,a,c){if(!e.JF)if(r>0)r--,e.J8(s,o,u);else{var f=t.message+"; "+s+"; "+a+"; "+c;e.GD(null,null,h.getErrorCode(t,a,c),f,i,n)}};this.J8(s,o,u)}else setTimeout((function(){e.GD(null,null,h.getErrorCode(),"No playlist and video id",i,n)}))},t.prototype.cancel=function(){this.JF=!0},t.prototype.J8=function(t,i,n){o.Loader.ajax(t,{context:this,successHandler:i,failureHandler:n,withCookie:!0})},t.prototype.Q8=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:s.MediaItemInterfaces.MediaItemMimeType.SAPI,id:t.id,customConfig:{meta:{instrument:t.instrument||{}}}}})))}catch(t){i(t.message)}},t.prototype.n7=function(t){var i=this.n_,n=i.config||{},s=n.rapidConfig&&n.rapidConfig.pageParams||{},o={video_uuid:i.relatedVideoId||"",channel_id:t.playlistId||"",channel_alias:"",count:t.count||u.PLAYLIST_COUNT_PER_PAGE,start:t.start||0,dev_type:r.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:u.PLAYLIST_THUMB_DIMENSION,ssl:!0,"context.json":""};return s&&(o["context.json"]=JSON.stringify({pt:s.pt||"",pct:s.pct||"",pstcat:s.pstcat||"",p_sec:s.p_sec||"",p_subsec:s.p_subsec||"",pstaid_p:s.pstaid_p||"",ticker:s.ticker||"",sport:s.sport||""})),i.pblob&&(o.pblob=i.pblob),"//video-api.yql.yahoo.com/v1/video/alias/channels/wf-channel=related-videos?"+e.stringify(o)},t.prototype.GD=function(t,i,n,e,r,s){var o={code:n,message:e,group:t||void 0,category:i||void 0};r.onError(o),s&&s(o)},t}();i.default=a},5321: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}();i.default=n},3601:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(7673),r=n(8173),s=n(3872),o=n(7525),u=n(2133),h=n(6249),a=n(6399),c=n(5321),f=function(){function t(t){this.n_=t,this.name="SapiMetadataPlugin",this.version="8.3.157",this.mimetype=r.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=r.Plugin.PluginType.METADATA,this.JF=!1,this.e7="",this.TR={};var i=this.n_.config&&this.n_.config.CMS;this.q8=i&&i.host||c.default.getEnv(i&&i.env||""),this.r7=new a.default(this.n_),s.Loader.preconnect("preconnect-sapi","//"+this.q8)}return t.prototype.prepare=function(t){void 0===t&&(t={}),this.TR=t},t.prototype.resolve=function(t,i,n){var e=i.rendererTypes,r=i.rendererCapabilities;if(Array.isArray(t)&&0!==t.length&&e)if(e.some((function(t){return r[t].preferredFormats.length>0})))if(this.r7.parseMediaItemsResponse(t),Array.isArray(t)&&t.every(this._z))setTimeout((function(){n.onComplete(t)}));else{var o=this.TR.qs||{};this.s7(t,o,i,n)}else this.GD("R",s.errorCodes.E_INFO,s.errorCodes.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED,"",n)},t.prototype.recover=function(t,i,n){},t.prototype.cancel=function(){this.JF=!0},t.prototype.destroy=function(){this.cancel()},t.prototype.s7=function(t,i,n,e){var r=this,s=this.o7(t,i,n),o=2,u=function(i){r.JF||r.Q8(t,i,(function(t,i){t||!i?(t=t||"",r.GD(null,null,h.getErrorCode(),t,e)):e.onComplete(i)}))},a=function(t,i,n){if(!r.JF)if(o>0)o--,r.J8(s,u,a);else{var c=t.message+"; "+s+"; "+i+"; "+n;r.GD(null,null,h.getErrorCode(t,i,n),c,e)}};this.J8(s,u,a)},t.prototype.J8=function(t,i,n){s.Loader.ajax(t,{context:this,successHandler:i,failureHandler:n,withCookie:!0})},t.prototype.o7=function(t,i,n){var r=t.map((function(t){return t.id})).join(","),s=n.thumbnailDimensions;s&&s.width&&s.height||(s={width:a.DEFAULT_WIDTH,height:a.DEFAULT_HEIGHT}),this.e7=s.width+"x"+s.height;var h=[this.e7,o.PLAYLIST_THUMB_DIMENSION],c={dev_type:this.r7.getDeviceType(),region:this.n_.region||"US",lang:this.n_.lang,site:this.n_.site,image_sizes:h.join(",")};return c=u.default.extend(i,c),"//"+this.q8+"/v1/video/videos/"+r+"?"+e.stringify(c)},t.prototype.Q8=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.K8(t,i),s.splice(n,1),!0)}))})),n(null,t)}catch(t){n(t.message)}},t.prototype.K8=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.posterUrl=this.u7(i.thumbnails)||a.DEFAULT_MEDIA_ITEM_META.posterUrl,n.thumbnail=this.h7(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.GD=function(t,i,n,e,r){var s={code:n,message:e,group:t||void 0,category:i||void 0};r.onError(s)},t.prototype.u7=function(t){var i=this;if(!t||0===t.length)return"";var n=t.filter((function(t){return t.tag===i.e7})),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.h7=function(t){if(!t||0===t.length)return"";var i=t.filter((function(t){return t.tag===o.PLAYLIST_THUMB_DIMENSION}));return i&&i[0]&&i[0].url||t[0].url||""},t.prototype._z=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=f},824:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8173),r=n(7525),s=n(9895),o=n(5535),u=function(){function t(t,i){this.name="SapiMoreItemsPlugin",this.version="8.3.157",this.mimetype=e.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=e.Plugin.PluginType.MORE_ITEMS,this.gO=!1,this.a7=null,this.n_=t,this.pG=i,this.c7=new o.default(this.n_)}return t.prototype.resolve=function(t,i){var n=this;if(!this.gO&&this.f7(t))switch(t.playlistId=this.n_.playlistId,t.reason){case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE:case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR:new Promise((function(e){n.c7.resolve(t,i,e)})).then((function(r){t.reason===e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR?n.a7=new Promise((function(e){n.l7(t,i,e)})):n.a7=Promise.resolve(),n.a7.then((function(t){i.onPromisesResolved(!!r&&!!t)}))}));break;case e.Plugin.MoreItemsReason.CONTENT_LOAD_FINISHED:new Promise((function(e){n.c7.resolve(t,i,e)})).then((function(t){i.onPromisesResolved(!!t)}));break;default:this.c7.resolve(t,i)}},t.prototype.cancel=function(){this.c7.cancel()},t.prototype.destroy=function(){this.cancel(),this.gO=!0},t.prototype.prepare=function(){},Object.defineProperty(t.prototype,"playlist",{set:function(t){this.pG=t},enumerable:!1,configurable:!0}),t.prototype.f7=function(t){var i;if(!this.pG||this.n_.playlistMimetype===s.STRUCTURED_PLAYLIST_MIMETYPE)return!1;var n=this.pG.getPosition()+1===this.pG.getSize(),o=!(!this.n_.playlistId&&!this.n_.relatedVideoId),u=n&&this.n_.continuousPlay&&!this.n_.loop&&o,h=0===this.pG.getPosition(),a=null===(i=this.n_.playlistUI)||void 0===i?void 0:i.show;switch(t.reason){case e.Plugin.MoreItemsReason.PLAYBACK_STARTED:return!(!a&&(a||h))&&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.n_.skipOnError!==r.SkipOnError.NEVER;case e.Plugin.MoreItemsReason.SOURCE_LOAD_COMPLETE:var c=this.pG;return!(this.n_.loop||!this.n_.videoRecommendations||!h||!a)&&c.getSize()-c.getPosition()<r.PLAYLIST_COUNT_PER_PAGE;case e.Plugin.MoreItemsReason.SCROLLED_TO_END:return this.n_.continuousPlay&&o;default:return!1}},t.prototype.l7=function(t,i,n){this.gO||(t.start=0,t.count=this.n_.playlistItemCount,t.playlistId="",this.c7.resolve(t,i,n))},t}();i.default=u},8443:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8173),r=n(6399),s=function(){function t(t){this.name="SapiSourcePlugin",this.version="8.3.157",this.mimetype=e.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=e.Plugin.PluginType.SOURCE_METADATA,this.nG=!1,this.h_=2,this.TR={},this.v7=!0,this.r7=new r.default(t)}return t.prototype.prepare=function(t){void 0===t&&(t={}),this.TR=t},t.prototype.resolve=function(t,i,n){var e;this.r7.parseMediaItemsResponse(t),!(Array.isArray(t)&&t.every(this.d7))||this.nG||this.v7?(e=this.nG?0:this.h_,this.r7.resolve(t,this.TR,i,n,e)):t.length>0&&setTimeout((function(){n.onComplete(t)})),this.nG=!1},t.prototype.recover=function(t,i,n){t&&(this.nG=!0,this.resolve([t],i,n))},t.prototype.cancel=function(){this.r7.cancel()},t.prototype.destroy=function(){this.cancel()},t.prototype.d7=function(t){return!!(t&&t.source&&t.source.streams&&t.source.streams[0]&&t.source.streams[0].url)},t}();i.default=s},9895:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.STRUCTURED_PLAYLIST_MIMETYPE=void 0;var e=n(9451),r=n(8173),s=n(3872),o=n(7525),u=n(2133),h=n(6411);i.STRUCTURED_PLAYLIST_MIMETYPE="playlist/structured";var a=function(){function t(t){this.name="StructuredPlaylistPlugin",this.version="8.3.157",this.mimetype=i.STRUCTURED_PLAYLIST_MIMETYPE,this.type=r.Plugin.PluginType.PLAYLIST,this.n_=t,this.p7=null}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.create=function(t,i,e,r){var s=this.aG(t,i),o=document.createElement("div");return this.p7=e,o.innerHTML=h.render({items:s,strings:r}),n(7965),Array.prototype.slice.call(o.children)},t.prototype.onMediaItemEnded=function(t){var i=t.id,n=this.n_.isMediaItemWatched(i),e={id:t.id,position:t.duration,duration:t.duration};this.m7(t)||(this.n_.watchHistory&&this.n_.watchHistory.saveProgress(e,!0),this.b7(i,n))},t.prototype.onMediaPlaybackProgress=function(t,i,n){var e=this.n_.isMediaItemWatched(t),r={id:t,position:i,duration:n};this.n_.watchHistory&&this.n_.watchHistory.saveProgress(r,!0),i%10==0&&this.b7(t,e)},t.prototype.aG=function(t,i){var n=this,e=[];return i.forEach((function(i){if(!n.m7(i)&&i&&i.metadata&&i.metadata.thumbnail){var r=n.y7(i),s=!1;r&&e.push({sectionLabel:r,sectionLabelIcon:n.g7(i),firstItemId:i.id}),n.n_.watchHistory&&n.n_.watchHistory.isWatched(i.id,i.metadata.duration||0)&&(n.n_.setMediaItemWatched(i.id,!0),s=!0),e.push({id:i.id,title:n.fG(i.metadata.title),thumbnail:i.metadata.thumbnail,duration:n.cG(i.metadata.duration),provider:i.brandingData?n.lG(t,i.brandingData):"",labelIcon:n.w7(i),isItemWatched:s})}})),i.length>0&&this._7(i)&&(this.n_.watchHistoryConfig.skipWatchedVideos=!1),e},t.prototype.cG=function(t){return t&&s.TypeChecker.isNumber(t)?u.default.formatTime(t):""},t.prototype.fG=function(t){var i=e.userAgent.chrome>43;return t?t.length>40&&!i?t.substring(0,40)+"...":t:""},t.prototype.lG=function(t,i){return t===o.PLAYLIST_POS.RIGHT&&i&&i.branding&&i.branding.providerName?i.branding.providerName:""},t.prototype.w7=function(t){var i=t.customConfig&&t.customConfig.playlistConfig;return i&&i.label&&i.label.icons?this.E7(i.label.icons,o.PLAYLIST_LABEL_ICON_DIMENSION):""},t.prototype.y7=function(t){var i=t.customConfig&&t.customConfig.playlistConfig;return i&&i.section&&i.section.label||""},t.prototype.g7=function(t){var i=t.customConfig&&t.customConfig.playlistConfig;return i&&i.section&&i.section.icons?this.E7(i.section.icons,o.PLAYLIST_SECTION_ICON_DIMENSION):""},t.prototype.E7=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.m7=function(t){return!!(t.customConfig&&t.customConfig.playlistConfig&&t.customConfig.playlistConfig.is_bumper)},t.prototype.b7=function(t,i){var n='.vp-playlist-item[data-id="'+t+'"]',e=this.p7&&this.p7.querySelector(n);e&&(i?this.O7(e):this.A7(e))},t.prototype.O7=function(t){var i=t.querySelector(".yvp-playlist-item-watched");i&&i.classList.add("yvp-show")},t.prototype.A7=function(t){var i=t.querySelector(".yvp-playlist-item-watched");i&&i.classList.remove("yvp-show")},t.prototype._7=function(t){var i=this;return t.every((function(t){if(!t||!t.metadata)return!1;if(i.m7(t))return!0;var n=t.metadata&&t.metadata.duration;return i.n_.watchHistory&&i.n_.watchHistory.isWatched(t.id,n||0)||!1}))},t}();i.default=a},8633:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8173),r=function(){function t(){this.name="SapiVisualSeek",this.version="8.3.157",this.type=e.Plugin.PluginType.VISUAL_SEEK,this.visualSeekType=e.Plugin.VisualSeekType.SPRITE,this.mimetype="visualseek/sapi",this.vG={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this.vG={}},t.prototype.canSeek=function(t){return t&&!(!this.vG[t]||!this.vG[t].visualSeek)||!1},t.prototype.update=function(t,i){var n=this.vG[t]||{};n.visualSeek=i&&i.visualSeek||n.visualSeek,this.vG[t]=n},t.prototype.getThumbnailData=function(t,i){var n=this.vG[t]&&this.vG[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.h7(n.images,e);return r?{index:e,isAd:!1,url:r,width:n.width,height:n.height}:null},t.prototype.h7=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},7873: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(8173),u=n(3872),h=n(2133),a=n(9734);!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 c=function(t){function i(i){var n=t.call(this,i)||this;return n.pageLatency="",n.mmActivityId="",n.s="",n._ex=a.HIDE_KEY,n._NOL=a.HIDE_KEY,n.test="",n.cached_vs="",n.expn="",n.expt="",n.expb="",n.vsid="",n.lms_id="",n.bckt="",n.env="",n.ccap="",n.loc="",n.site="",n.intl="",n.lang="",n.ccode="",n.sec="",n.cpos="",n.pt="",n.pd="",n.pct="",n.pstcat="",n.p_sec="",n.p_subsec="",n.ver="",n.pstaid_p="",n.pkgt="",n.rlvtscr="",n.subsec="",n._rid="",n.vidPos="",n.layout="",n.bx="",n.ar="",n.vrmver=a.VRM_VERSION,n.S7="",n.T7="",n.pl_type="",n.pl_uuid="",n.pl_intr="",n.pl_algo="",n.pl_id="",n.pl_bckt="",n.pl_pos="",n.pl_seed="",n.pl_ctx="",n.pl_sec="",n.bckt=h.default.getBckt(),n.loc=n.j7(),n}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=h.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.I7(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.M7(n)||this.pl_sec,this.bx=h.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 a.PARAMS.forEach((function(t){i[t]!==a.HIDE_KEY&&(n[t]=i[t])})),n},Object.defineProperty(i.prototype,"jsdt",{get:function(){return""===this.T7&&(this.T7=i.getJSDownloadTime()),this.T7},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cssdt",{get:function(){if(""===this.S7){var t=h.default.getResourceLoadTime(/core-video-player\.css$/);this.S7=u.TypeChecker.isNumber(t)?Math.round(t).toString():"na"}return this.S7},enumerable:!1,configurable:!0}),i.getJSDownloadTime=function(){var t,i,n,e,r=null===(e=null===(n=null===(i=null===(t=h.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),a=h.default.getResourceLoadTime(o);return u.TypeChecker.isNumber(a)?Math.round(a).toString():"na"},i.getPageLatency=function(){var t,i,n,e=h.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||a.PLAYLIST_POSITION.NONE:a.PLAYLIST_POSITION.HERO},i.prototype.j7=function(){var t=s.ON_PROP;return h.default.isOffNetwork()?t=s.EMBD_OFF_NET:h.default.isIframe()&&(t=s.EMBD_ON_NET),t},i.prototype.I7=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.M7=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=c},6450: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(7673),o=n(8173),u=n(2133),h=n(7873),a=n(3872),c="p_init",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=f+"?"+s.encode(t,"&","=");i=i.replace(/[!'()]/g,escape).replace(/\*/g,"%2A"),u.default.sendImageBeacon(i)},i.prototype.SF=function(i){this.N7(i),t.prototype.SF.call(this,i)},i.prototype.jF=function(i,n){if("ad_dlv"===(i.evt&&i.evt.toLowerCase()))this.N7(n);t.prototype.jF.call(this,i,n)},i.prototype.kF=function(t){return new h.default(t)},i.prototype.N7=function(t){var i;t.pgltcy=(null===(i=this.n_.pageLatency)||void 0===i?void 0:i.toString())||"na";var n=this.n_.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:u.default.getBckt()||"",evt:"s_load",src:n,s:"1197809794",host:document.location.host||"",pver:"8.3.157",t:Math.random()};i.sendGenericBeacon(s),window.sentScriptLoadBeacon=!0}},i.sendPlayerInitBeacon=function(t){for(var n,e,r,s,a,f,l,v,d,p,m,b,y,g,w,_,E,O,A,S,T,j,I,M,N,R,k,L,D,C,P,x,U,V,B,F,z,G,H,Y,q,W,Q,$,X,Z,J,K,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:u.default.getBckt()||"",evt:c,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)||"1111",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:h.default.getJSDownloadTime(),pgltcy:h.default.getPageLatency(),psz:nt&&et?nt+"x"+et:"",ccode:(null===(s=t.metrics)||void 0===s?void 0:s.ccode)||"",cpos:(null===(a=t.metrics)||void 0===a?void 0:a.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:h.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===(b=null===(m=t.ui)||void 0===m?void 0:m.docking)||void 0===b?void 0:b.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===(S=null===(A=t.rapidConfig)||void 0===A?void 0:A.pageParams)||void 0===S?void 0:S.pct)||"",ver:(null===(j=null===(T=t.rapidConfig)||void 0===T?void 0:T.pageParams)||void 0===j?void 0:j.ver)||"",layout:(null===(M=null===(I=t.rapidConfig)||void 0===I?void 0:I.pageParams)||void 0===M?void 0:M.layout)||"",pstaid_p:(null===(R=null===(N=t.rapidConfig)||void 0===N?void 0:N.clickParams)||void 0===R?void 0:R.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===(k=t.playback)||void 0===k?void 0:k.startTime)?"1":"0",videoRecommendations:!0===t.videoRecommendations?"1":"0",disadf:!0===(null===(C=null===(D=null===(L=t.pluginConfigs)||void 0===L?void 0:L[o.Plugin.PluginType.SOURCE_METADATA])||void 0===D?void 0:D[o.MediaItemInterfaces.MediaItemMimeType.SAPI])||void 0===C?void 0:C.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===(F=null===(B=null===(V=t.ui)||void 0===V?void 0:V.docking)||void 0===B?void 0:B.position)||void 0===F?void 0:F.right)||"",dopt:(null===(H=null===(G=null===(z=t.ui)||void 0===z?void 0:z.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===($=null===(Q=t.ui)||void 0===Q?void 0:Q.docking)||void 0===$?void 0:$.threshold)||"",dow:(null===(Z=null===(X=t.ui)||void 0===X?void 0:X.docking)||void 0===Z?void 0:Z.width)||"",doh:(null===(K=null===(J=t.ui)||void 0===J?void 0:J.docking)||void 0===K?void 0:K.height)||"",t:Math.random(),ts:Date.now()-tt[1]};i.sendGenericBeacon(rt)},i.sendInterventionReports=function(t,n){for(var e,r,c,v,d,p,m,b,y,g,w,_,E,O,A,S,T,j,I,M,N,R,k,L,D,C,P,x,U,V,B,F,z,G,H,Y,q,W,Q,$,X,Z,J,K,tt,it,nt,et,rt={_R:i.getR(n.rapidConfig),_V:"V",_w:i.getW(n.rapidConfig),bckt:u.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.3.157",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:h.default.getJSDownloadTime(),pgltcy:h.default.getPageLatency(),psz:n.width&&n.height?n.width+"x"+n.height:"",ccode:(null===(v=n.metrics)||void 0===v?void 0:v.ccode)||"",cpos:(null===(d=n.metrics)||void 0===d?void 0:d.cpos)||"",sec:(null===(m=null===(p=n.rapidConfig)||void 0===p?void 0:p.clickParams)||void 0===m?void 0:m.sec)||(null===(b=n.metrics)||void 0===b?void 0:b.sec)||"",pl_type:h.default.getPlaylistType(null===(y=n.ui)||void 0===y?void 0:y.playlist),pl_uuid:(null===(g=n.playlist)||void 0===g?void 0:g.id)||"",deos:!0===(null===(_=null===(w=n.ui)||void 0===w?void 0:w.docking)||void 0===_?void 0:_.enableOnScrollDown)?"1":"0",deom:!0===(null===(O=null===(E=n.ui)||void 0===E?void 0:E.docking)||void 0===O?void 0:O.enableOnMuted)?"1":"0",pt:(null===(S=null===(A=n.rapidConfig)||void 0===A?void 0:A.pageParams)||void 0===S?void 0:S.pt)||"",pd:(null===(j=null===(T=n.rapidConfig)||void 0===T?void 0:T.pageParams)||void 0===j?void 0:j.pd)||"",pct:(null===(M=null===(I=n.rapidConfig)||void 0===I?void 0:I.pageParams)||void 0===M?void 0:M.pct)||"",ver:(null===(R=null===(N=n.rapidConfig)||void 0===N?void 0:N.pageParams)||void 0===R?void 0:R.ver)||"",layout:(null===(L=null===(k=n.rapidConfig)||void 0===k?void 0:k.pageParams)||void 0===L?void 0:L.layout)||"",pstaid_p:(null===(C=null===(D=n.rapidConfig)||void 0===D?void 0:D.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===(P=n.playback)||void 0===P?void 0:P.startTime)?"1":"0",videoRecommendations:!0===n.videoRecommendations?"1":"0",disadf:!0===(null===(V=null===(U=null===(x=n.pluginConfigs)||void 0===x?void 0:x[o.Plugin.PluginType.SOURCE_METADATA])||void 0===U?void 0:U[o.MediaItemInterfaces.MediaItemMimeType.SAPI])||void 0===V?void 0:V.disableAdFetch)?"1":"0",dopl:(null===(z=null===(F=null===(B=n.ui)||void 0===B?void 0:B.docking)||void 0===F?void 0:F.position)||void 0===z?void 0:z.left)||"",dopr:(null===(Y=null===(H=null===(G=n.ui)||void 0===G?void 0:G.docking)||void 0===H?void 0:H.position)||void 0===Y?void 0:Y.right)||"",dopt:(null===(Q=null===(W=null===(q=n.ui)||void 0===q?void 0:q.docking)||void 0===W?void 0:W.position)||void 0===Q?void 0:Q.top)||"",dopb:(null===(Z=null===(X=null===($=n.ui)||void 0===$?void 0:$.docking)||void 0===X?void 0:X.position)||void 0===Z?void 0:Z.bottom)||"",doth:(null===(K=null===(J=n.ui)||void 0===J?void 0:J.docking)||void 0===K?void 0:K.threshold)||"",dow:(null===(it=null===(tt=n.ui)||void 0===tt?void 0:tt.docking)||void 0===it?void 0:it.width)||"",doh:(null===(et=null===(nt=n.ui)||void 0===nt?void 0:nt.docking)||void 0===et?void 0:et.height)||"",t:Math.random()},st=0,ot=t;st<ot.length;st++){var ut=ot[st];rt.estring=JSON.stringify(ut),rt.evt=/A\sfuture\sversion/.test(ut.body.message)?"warn":l;var ht=f+"?"+s.encode(rt,"&","=");ht=ht.replace(/[!'()]/g,escape).replace(/\*/g,"%2A"),"HeavyAdIntervention"===ut.body.id&&navigator.sendBeacon(ht,JSON.stringify(ut))}},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}(o.Analytics.CoreAnalytics);i.default=v},5204:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8173),r=n(3872),s=n(2133),o=n(9734),u="Yahoo",h=function(){function t(t){this.cV=t,this.R7="",this.gdpr="",this.gdpr_consent="",this.k7=!1,t&&(r.Privacy.initIframeForGDPR(),this.TV(),this.L7={},this.D7())}return t.prototype.destroy=function(){this.L7=null},t.prototype.kV=function(){this.cV.addEventListener(e.Events.PLAYBACK_REQUEST,this.pY,this),this.cV.addEventListener(e.Events.PLAYBACK_START,this.C7,this),this.cV.addEventListener(e.Events.PLAYBACK_RESUMED,this.P7,this),this.cV.addEventListener(e.Events.PLAYBACK_COMPLETE,this.x7,this),this.cV.addEventListener(e.Events.PLAYBACK_STOPPED,this.x7,this),this.cV.addEventListener(e.Events.PLAYBACK_STALLED,this.x7,this),this.cV.addEventListener(e.Events.PLAYBACK_BLOCKED,this.x7,this),this.cV.addEventListener(e.Events.PLAYBACK_PAUSE,this.U7,this),this.cV.addEventListener(e.Events.AD_BREAK_ITEM_PLAYBACK_STARTED,this.V7,this),this.cV.addEventListener(e.Events.AD_BREAK_ITEM_ENDED,this.B7,this)},t.prototype.D7=function(){var t,i=this,n="local"===this.cV.version?"/comscore-6.3.5.min.js":"https://assets.video.yahoo.net/oath/builds/"+this.cV.version+"/comscore-6.3.5.min.js";if(null===(t=window.ns_)||void 0===t?void 0:t.ReducedRequirementsStreamingAnalytics)this.F7();else{s.default.lazyLoad(n,(function(t){var n;t&&(null===(n=window.ns_)||void 0===n?void 0:n.ReducedRequirementsStreamingAnalytics)&&i.F7()}))}},t.prototype.F7=function(){this.z7(),this.kV()},t.prototype.z7=function(){this.L7=new window.ns_.ReducedRequirementsStreamingAnalytics({publisherId:"27061346"})},t.prototype.pY=function(){this.z7()},t.prototype.C7=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.G7(t,"meta"),h=this.G7(t,"license"),a=this.G7(t,"metrics"),c=t.videoLength,f="";if(f="na"!==c&&c>600?null==r?void 0:r.LongFormOnDemand:null==r?void 0:r.ShortFormOnDemand,t.isLive){var l=s.eventStart,v=s.eventEnd;c=""!==l&&""!==v?v-l:null,f=null==r?void 0:r.Live}var d={ns_st_ci:t.videoId,ns_st_cl:c&&"na"!==c?1e3*c:o.NUMBER_DEFAULT,ns_st_pr:(null==t?void 0:t.title)||o.NULL_DEFAULT,ns_st_ep:s.showName||h.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:a.comscore6||o.NULL_DEFAULT,ca2:this.H7(t,"CA2"),ca3:"yahoo",ca4:t.comscoreC4||o.NULL_DEFAULT,ca6:a.comscore6||o.NULL_DEFAULT},p=Object.assign({},d,this.Y7());this.L7.playVideoContentPart(p,f)}},t.prototype.V7=function(t,i){var n,e;this.q7=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.adBreak.type,u=t.duration?1e3*t.duration:o.NUMBER_DEFAULT,h="";h=i.isLive?null==r?void 0:r.LinearLive:"postroll"===s?null==r?void 0:r.LinearOnDemandPostRoll:"midroll"===s?null==r?void 0:r.LinearOnDemandMidRoll:null==r?void 0:r.LinearOnDemandPreRoll;var a={ns_st_cl:u,ca2:this.H7(i,"CA2")},c=Object.assign({},a,this.Y7());this.L7.playVideoAdvertisement(c,h),this.k7=!0},t.prototype.x7=function(t){"video"===(null==t?void 0:t.playbackMode)&&this.L7.stop()},t.prototype.B7=function(t,i){!0===this.k7&&(this.L7.stop(),this.k7=!1,this.q7=null)},t.prototype.P7=function(t,i){t&&i&&("video"===i.playbackMode&&this.C7(i),"ad"===i.playbackMode&&"background"===i.requestAction&&this.V7(this.q7,i))},t.prototype.U7=function(t){"video"===(null==t?void 0:t.playbackMode)&&this.x7(t),"ad"===(null==t?void 0:t.playbackMode)&&"background"===(null==t?void 0:t.requestAction)&&this.L7.stop()},t.prototype.Y7=function(){return{cs_ucfr:this.R7,gdpr:this.gdpr,gdpr_consent:this.gdpr_consent}},t.prototype.H7=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 h=u.filter((function(t){return"cs"===t.target}));if(null===(r=h[0])||void 0===r?void 0:r.data)h[0].data.split("&").forEach((function(t){-1!==t.indexOf(i)&&(s=t.split("=")[1])}))}return s||o.NULL_DEFAULT},t.prototype.G7=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.TV=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.R7="0")):t.R7="0",!1===e&&n&&(t.R7=i.doNotSell?"0":"1")}))}))},t}();i.default=h},9734: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=["s","_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={}))},7741:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8173),r=n(2133),s=function(){function t(t){this.cV=t,this.cV&&this.cV.addEventListener(e.Events.PLAYBACK_START,this.W7,this)}return t.prototype.destroy=function(){this.cV=null},t.prototype.W7=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},7930:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8364),r=n(8173),s=n(2133),o=function(){function t(t){this.cV=t,this.Q7=!1,this.cV&&(this.X7=this.cV.addEventListener(r.Events.PLAYER_RENDERED,this.Z7,this))}return t.prototype.destroy=function(){this.cV&&this.X7&&this.cV.removeEventListener(r.Events.PLAYER_RENDERED,this.X7),this.cV=null},t.prototype.Z7=function(){var t=this,i=s.default.getWindow();"complete"!==i.document.readyState?i.addEventListener("load",(function(){t.J7()})):this.J7()},t.prototype.J7=function(){this.Q7||(this.Q7=!0,e.default.sendBeacon())},t}();i.default=o},7525:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VRM_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.VRM_PLUGIN_MIMETYPE="adplugin/vrm"},7557: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(1409),h=n(8173),a=n(3872),c=n(9938),f=n(5535),l=n(3601),v=n(824),d=n(8443),p=n(9895),m=n(8633),b=n(6450),y=n(5204),g=n(7741),w=n(7930),_=n(7525),E=n(6464),O=n(5590),A=n(5187),S=n(7437),T=n(1963),j=n(5322),I=n(2133),M=n(9385),N=function(t){function i(i,n,e){var r=t.call(this,"OathController")||this;return r.j5=[],r.K7=null,r.ttt=null,r.itt=null,r.TR=i,r.BH=n,r.cV=e,r.n_=new O.default(i,n),r.c7=new f.default(r.n_),r.TR.analytics=!1,r.ntt=r.ett(),r.stt=new b.default(r.cV),r.ott=new g.default(r.cV),r.utt=new w.default(r.cV),r.htt=new y.default(r.cV),r.JH=new M.default,r.ntt.on(h.Events.MEDIA_ITEM_CURRENT,r.att,r),r.ntt.on(h.Events.PLAYBACK_PROGRESS,r.hV,r),r.ctt(),r}return r(i,t),i.prototype.destroy=function(){var i;this.n_.destroy(),this.ntt.destroy(),null===(i=this.stt)||void 0===i||i.destroy(),this.ftt&&this.ftt.destroy(),this.ttt&&(this.ttt.destroy(),this.ttt=null),t.prototype.destroy.call(this)},i.prototype.initialize=function(){var t=this;this.ntt.addMetricsEventListener((function(){for(var i,n,e,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var h=Array.prototype.slice.call(r,1,r.length-1),a=r[0],c=r[r.length-1],f=t.n_.getEventsDto();f.playerVersion=t.cV.version,f.playlistUIConfig=null===(e=null===(n=t.TR)||void 0===n?void 0:n.ui)||void 0===e?void 0:e.playlist,(i=t.cV).publish.apply(i,o([a],h.concat(s(s({},c),f)))),t.ltt(a,h)}),this),this.kV(),this.dtt(),this.ntt.initialize()},i.prototype.render=function(t){this.ntt.render(t)},i.prototype.getCurrentTime=function(){return this.ntt.getCurrentTime()},i.prototype.getCurrentDate=function(){return this.ntt.getCurrentDate()},i.prototype.getVolume=function(){return this.ntt.getVolume()},i.prototype.getMediaStore=function(){return this.ntt.getMediaStore()},i.prototype.getCurrentMediaItem=function(){return this.getPlaylist().getCurrentItem()},i.prototype.getPlaybackState=function(){return this.ntt.getPlaybackState()},i.prototype.play=function(t,i){this.ntt.play(t,i)},i.prototype.pause=function(t){this.ntt.pause(t)},i.prototype.preload=function(t){throw new Error("preload is unimplemented!")},i.prototype.seek=function(t){this.ntt.seek(t)},i.prototype.disableControls=function(){this.ntt.disableControls()},i.prototype.enableControls=function(){this.ntt.enableControls()},i.prototype.enableCC=function(t){this.ntt.enableCC(t)},i.prototype.disableCC=function(){this.ntt.disableCC()},i.prototype.isPlayMode=function(){return this.ntt.isPlayMode()},i.prototype.isLoading=function(){return this.ntt.isLoading()},i.prototype.setFullscreen=function(t){this.ntt.setFullscreen(t)},i.prototype.getFullscreen=function(){return this.ntt.getFullscreen()},i.prototype.isAd=function(){return this.ntt.isAd()},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),this.ntt.setVolume(t,i)},i.prototype.setMute=function(t){this.ntt.setMute(t)},i.prototype.getMute=function(){return this.ntt.getMute()},i.prototype.setLoop=function(t){this.ntt.setLoop(t)},i.prototype.setContinuousPlay=function(t){this.ntt.setContinuousPlay(t)},i.prototype.resumeContinuousPlay=function(t){this.ntt.resumeContinuousPlay()},i.prototype.setAudioLanguage=function(t){this.ntt.setAudioLanguage(t)},i.prototype.isDocked=function(){return this.ntt.isDocked()},i.prototype.setMediaItemTitle=function(t,i){this.ntt.setMediaItemTitle(t,i)},i.prototype.addCorePlayerListener=function(t,i){return this.ntt.addEventListener(t,i,this.cV)},i.prototype.removeCorePlayerListener=function(t,i){this.ntt.removeEventListener(t,i)},i.prototype.getPlaybackStartDto=function(){return this.ntt.getPlaybackStartDto()},i.prototype.setPlaybackRate=function(t){var i;null===(i=this.ntt)||void 0===i||i.setPlaybackRate(t)},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.ntt.updateDockingConfig(t,i,n,e,r,s)},i.prototype.getPlaylist=function(){return this.ntt.getPlaylist()},i.prototype.suspend=function(){var t=this.ntt.suspendState();t&&(this.K7=t,this.ptt())},i.prototype.resume=function(){this.K7&&(this.ntt.resumeState(this.K7),this.dtt(),this.ntt.initialize(),this.ntt.render(this.K7.selector),this.K7=null)},i.prototype.updateGeoConfig=function(t){this.n_.updateGeoConfig(t)},i.prototype.getVideoElement=function(){return this.ntt.getVideoElement()},i.prototype.getRootElement=function(){return this.ntt.getRootElement()},i.prototype.getSyncOffset=function(){return this.ntt.__getSyncOffset()},i.prototype.startSync=function(){this.ntt.startSync()},i.prototype.stopSync=function(){this.ntt.stopSync()},i.prototype.isSuspended=function(){return this.ntt&&this.ntt.isSuspended()||!1},i.prototype.undockVideoPlayer=function(t){this.ntt&&this.ntt.undockVideoPlayer(t)},i.prototype.addCustomControlElement=function(t){return this.ntt.addCustomControlElement(t)},i.prototype.isRendered=function(){return this.ntt&&this.ntt.isRendered()||!1},Object.defineProperty(i.prototype,"guid",{get:function(){return this.ntt&&this.ntt.guid||""},enumerable:!1,configurable:!0}),i.prototype.getMediaItemMarkers=function(t){return this.ntt.getMediaItemMarkers(t)},i.prototype.setError=function(t,i,n,e,r){this.ntt.__setError(t,i,n,e,r)},i.prototype.setSapiOptions=function(t,i){this.n_.setSapiOptions(t,i)},i.prototype.ett=function(t){void 0===t&&(t=!0);var i=this.TR.mediaItems;if(this.n_.playlistId&&(!i||0===i.length)){var n=this.mtt();return this.btt(),n}return this.ytt()},i.prototype.mtt=function(){return this.ntt?this.ntt:(this.ftt=new j.default,this.ftt.getProxy())},i.prototype.ytt=function(){this.gtt();var t=new h.Player(this.TR,this.BH);return this.n_.guid=t.guid,t},i.prototype.btt=function(){var t=this;if(this.ftt&&this.c7){var i={onComplete:function(i){t.ftt&&(i&&(t.TR.mediaItems=i),t.ntt=t.ytt(),t.ftt.execute(t.ntt),t.ftt.destroy(),t.ftt=void 0,t.cV.playlist=new S.default(t.getPlaylist()),t.j5.forEach((function(i){i.type===h.Plugin.PluginType.MORE_ITEMS&&(i.playlist=t.getPlaylist())})))},onError:function(){throw new Error("Fetch more items with playlistId failed")},onApiCallInfo:function(){},onPromisesResolved:function(){}};this.c7.resolve({mimeType:h.MediaItemInterfaces.MediaItemMimeType.SAPI,playlistId:this.n_.playlistId,reason:h.Plugin.MoreItemsReason.PLAYLISTID_NEED_RESOLVE,start:0},i)}},i.prototype.kV=function(){this.ntt.on(h.Events.MEDIA_ITEM_METADATA,this.wtt,this),this.ntt.on(h.Events.PLAYBACK_STOPPED,this.ZW,this),this.ntt.on(h.Events.MEDIA_ITEM_COMPLETE,this.ZW,this),this.ntt.once("opssVisibilityChanged",this._tt,this),this.ntt.once("playlistBottomHeightChange",this.Ett,this)},i.prototype.hV=function(t,i,n){this.n_.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE&&this.itt&&this.itt.onMediaPlaybackProgress(t,i,n)},i.prototype.att=function(t){if(this.n_.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE){var i=this.n_.isMediaItemWatched(t.id),n=this.n_.watchHistoryConfig&&this.n_.watchHistoryConfig.enabled&&this.n_.watchHistoryConfig.skipWatchedVideos;if(i&&n){var e=this.getPlaylist().getPosition();this.getPlaylist().setPosition(e+1)}}},i.prototype.wtt=function(t,i){this.ttt&&(this.ttt.destroy(),this.ttt=null),t.customConfig&&t.customConfig.allowedConnectionTypes&&(this.ttt=new A.default(this.n_,t.rawItemData),this.Ott())},i.prototype.ZW=function(t){this.ttt&&(this.ttt.destroy(),this.ttt=null),this.n_.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE&&this.itt&&this.itt.onMediaItemEnded(t)},i.prototype.ctt=function(){this.n_.videoRecommendations&&(this.setContinuousPlay(!0),this.n_.continuousPlay=!0)},i.prototype._tt=function(t,i){var n=this.getCurrentMediaItem(),e=n&&n.license,r={version:this.cV.version,config:this.cV.oathConfig,lmsId:e&&e.salesforceId||""};this.JH.updateOathPlayerOpss(t,i,r)},i.prototype.Ett=function(t){var i;(null===(i=this.TR)||void 0===i?void 0:i.iframeRender)&&this.cV.iframeController&&this.cV.iframeController.onPlaylistDimensionChange(t)},i.prototype.Ott=function(t){var i=this;void 0===t&&(t=18e4),this.ttt&&this.ttt.scheduleVerification((function(t){t?i.Ott():i.setError("info","R",a.errorCodes.E_PLAYER,a.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE,T.default.ERR_RESTRICTED_NETWORK_TYPE)}),t)},i.prototype.dtt=function(){var t=this;this.itt=new p.default(this.n_),this.j5.push(new c.default),this.j5.push(new l.default(this.n_)),this.j5.push(new d.default(this.n_)),this.j5.push(new v.default(this.n_,this.getPlaylist())),this.j5.push(new m.default),this.j5.push(this.itt),this.j5.forEach((function(i){t.ntt.registerPlugin(i)}))},i.prototype.ptt=function(){this.j5.forEach((function(t){t.destroy()})),this.j5=[]},i.prototype.ltt=function(t,i){var n,e,r,s;switch(i=i||[],t){case h.Events.AD_BREAK_ITEM_PLAYBACK_STARTED:r=i[0]&&i[0].id||"",this.cV.publish(E.API.AD_PLAYBACK_START,r);break;case h.Events.AD_BREAK_ITEM_ENDED:r=i[0]&&i[0].id||"",this.cV.publish(E.API.AD_PLAYBACK_STOP,r);break;case h.Events.PLAYBACK_START:(n=this.cV).publish.apply(n,o([E.API.PLAYBACK_STARTED],i));break;case h.Events.PLAYBACK_RESUMED:(s=this.ntt.getCurrentAdBreakItem())&&this.cV.publish(E.API.AD_PLAYBACK_RESUME,s.id);break;case h.Events.PLAYBACK_PAUSE:(s=this.ntt.getCurrentAdBreakItem())&&this.cV.publish(E.API.AD_PLAYBACK_PAUSE);break;case h.Events.PLAYBACK_COMPLETE:(e=this.cV).publish.apply(e,o([E.API.PLAYBACK_ENDED],i))}},i.prototype.gtt=function(){var t,i,n=((t={})[_.VRM_PLUGIN_MIMETYPE]={playerBucket:I.default.getBckt(),experienceName:this.n_.experienceName,experienceBucket:this.n_.experienceBucket,playerName:"UnifiedPlayer"},t),e=((i={})[h.Plugin.PluginType.AD]=n,i);this.TR.pluginConfigs=I.default.extend(e,this.TR.pluginConfigs)},i}(u.default);i.default=N},6665:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(7525),r=function(){function t(t){this.xE=t}return t.prototype.play=function(t,i){this.xE.play(t,i)},t.prototype.pause=function(t){this.xE.pause(t)},t.prototype.preload=function(t){this.xE.preload(t)},t.prototype.seek=function(t){this.xE.seek(t)},t.prototype.disableControls=function(){this.xE.disableControls()},t.prototype.enableControls=function(){this.xE.enableControls()},t.prototype.enableCC=function(t){this.xE.enableCC(t)},t.prototype.disableCC=function(){this.xE.disableCC()},t.prototype.isPlaying=function(){return this.xE.isPlayMode()},t.prototype.isPlayMode=function(){return this.xE.isPlayMode()},t.prototype.getPlaybackState=function(){return this.xE.getPlaybackState()},t.prototype.isLoading=function(){return this.xE.isLoading()},t.prototype.getDuration=function(){var t=this.xE.getCurrentMediaItem();return(null==t?void 0:t.duration)||0},t.prototype.getCurrentTime=function(){return this.xE.getCurrentTime()},t.prototype.getTimeRemaining=function(){return this.getDuration()-this.getCurrentTime()},t.prototype.setFullscreen=function(t){this.xE.setFullscreen(t)},t.prototype.getFullscreen=function(){return this.xE.getFullscreen()},t.prototype.setVolume=function(t,i){void 0===i&&(i=!1),t=(t=t<0?0:t)>1?1:t,this.xE.setVolume(t,i)},t.prototype.getVolume=function(){return this.xE.getVolume()},t.prototype.setMute=function(t){this.xE.setMute(t)},t.prototype.getMute=function(){return this.xE.getMute()},t.prototype.setLoop=function(t){this.xE.setLoop(t)},t.prototype.setPlaybackRate=function(t){var i;null===(i=this.xE)||void 0===i||i.setPlaybackRate(t)},t.prototype.setContinuousPlay=function(t){this.xE.setContinuousPlay(t)},t.prototype.resumeContinuousPlay=function(){this.xE.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.xE.getCurrentDate()},t.prototype.setAudioLanguage=function(t){this.xE.setAudioLanguage(t)},t}();i.default=r},6464: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={}))},3718: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(6647),o=n(1409),u=n(6665),h=n(7437),a=function(t){function i(i){var n=t.call(this,"IframeBridge")||this;return n.n1=new u.default({}),n.pG=new h.default({}),n.Att=new s.default(i,n),n}return r(i,t),i.prototype.render=function(t){return this.Att.constructIframe(t),this.Att.routeControlsApiToIframe(),this},i.prototype.play=function(t,i){this.n1.play(t,i)},i.prototype.pause=function(t){this.n1.pause(t)},i.prototype.mute=function(){this.n1.setMute(!0)},i.prototype.unMute=function(){this.n1.setMute(!1)},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),this.n1.setVolume(t,i)},i.prototype.seek=function(t){this.n1.seek(t)},Object.defineProperty(i.prototype,"iframeController",{get:function(){return this.Att},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"controls",{get:function(){return this.n1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"playlist",{get:function(){return this.pG},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this),this.Att.destroy()},i}(o.default);i.default=a},6647: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.MessageType=void 0;var s=n(1409),o=n(2133),u=n(3872);i.MessageType={EVENT:"EVENT",CLEAR_IFRAME_NAME:"CLEAR_IFRAME_NAME",PLAYER_DIMENSION_CHANGE:"PLAYER_DIMENSION_CHANGE"};var h=function(t){function n(i,n){var e=t.call(this,"IframeController")||this;return e.Stt={isPlaying:null,getPlaybackState:null,getDuration:null,getCurrentTime:null,getTimeRemaining:null,getFullscreen:null,getVolume:null,getMute:null},e.Ttt={getCurrentItemTitle:null,getCurrentItemDescription:null,getCurrentItemProviderName:null,getCurrentItemLiveStatus:null},e.jtt="VID-"+Math.floor(1e3*Math.random()),e.Itt=JSON.parse(JSON.stringify(i)),e.cV=n,e.Mtt=null,e.Ntt=null,e.Rtt=Date.now(),e.bV=!1,e.ktt=null,e.Ltt=null,e.Dtt="https://s.yimg.com",i.insideIframeConfig||(e.ktt=e.Ctt.bind(e),window.addEventListener("message",e.ktt,!1)),e}return r(n,t),n.prototype.destroy=function(){this.ktt&&window.removeEventListener("message",this.ktt,!1),this.Ltt&&window.removeEventListener("message",this.Ltt,!1),this.ktt=null,this.Ltt=null,t.prototype.destroy.call(this)},n.prototype.constructIframe=function(t){var i,n,e,r,s=this,h=o.default.getWindow(),a=u.TypeChecker.isString(t)?document.querySelector(t):t;if(null!==a){this.Ntt=a,this.Itt.insideIframeConfig={startTime:this.Rtt,iframeVID:this.jtt,parentURL:h.location.protocol+"//"+h.location.host},this.Itt.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 c=document.createElement("iframe"),f=encodeURIComponent(JSON.stringify(this.Itt)),l=this.Dtt+"/rx/up/builds/8.3.157/ifcp.html";c.setAttribute("src",l),c.setAttribute("name",f),c.setAttribute("id",this.jtt),c.setAttribute("width","100%"),c.setAttribute("height","100%"),c.setAttribute("frameBorder","0"),c.setAttribute("allowFullScreen",""),c.setAttribute("allow","autoplay; fullscreen; encrypted-media"),c.setAttribute("title","iframe"),c.setAttribute("aria-label","iframe"),a&&a.appendChild(c),this.Mtt=c,this.Mtt.onload=function(){s.bV=!0}}else this.cV.__setError("error","C",u.errorCodes.E_PLAYER,u.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.Ptt(i,n,e)}},o=function(i){return function(){return t.Stt[i]}},h=function(i){return-1!==e.indexOf(i)?function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.Ptt(n,i,e)}:-1!==r.indexOf(i)?function(){return t.Ttt[i]}:function(){throw new Error("playlist API "+i+" is not supported when safe frame is enabled")}};for(var a in this.cV.controls)if(u.TypeChecker.isFunction(this.cV.controls[a])){if(void 0!==this.Stt[a]){this.cV.controls[a]=o(a);continue}this.cV.controls[a]=s(a)}for(var c in this.cV.playlist)u.TypeChecker.isFunction(this.cV.playlist[c])&&(this.cV.playlist[c]=h(c));["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.cV[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.cV.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.Itt.insideIframeConfig.iframeVID),n.xtt(JSON.stringify(t))}),this.cV)},n.prototype.sendClearIframeNameToPage=function(){var t=[i.MessageType.CLEAR_IFRAME_NAME,this.Itt.insideIframeConfig.iframeVID];this.xtt(JSON.stringify(t))},n.prototype.refreshControlsAPIData=function(){return{isPlaying:this.cV.controls.isPlaying(),getPlaybackState:this.cV.controls.getPlaybackState(),getDuration:this.cV.controls.getDuration(),getCurrentTime:this.cV.controls.getCurrentTime(),getTimeRemaining:this.cV.controls.getTimeRemaining(),getFullscreen:this.cV.controls.getFullscreen(),getVolume:this.cV.controls.getVolume(),getMute:this.cV.controls.getMute(),getCurrentItemTitle:this.cV.playlist.getCurrentItemTitle(),getCurrentItemDescription:this.cV.playlist.getCurrentItemDescription(),getCurrentItemProviderName:this.cV.playlist.getCurrentItemProviderName(),getCurrentItemLiveStatus:this.cV.playlist.getCurrentItemLiveStatus()}},n.prototype.setupIframeToPageCommunication=function(){this.Ltt=this.Utt.bind(this),window.addEventListener("message",this.Ltt,!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(u.TypeChecker.isObject(t)){var n=[t,i.MessageType.PLAYER_DIMENSION_CHANGE,this.Itt.insideIframeConfig.iframeVID];this.xtt(JSON.stringify(n))}},n.prototype.Ptt=function(){for(var t,i,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(this.Mtt&&this.bV){var r=JSON.stringify(n);null===(i=null===(t=this.Mtt)||void 0===t?void 0:t.contentWindow)||void 0===i||i.postMessage(r,this.Dtt)}},n.prototype.Ctt=function(t){var n,e,r=this,s=null,o={},h="",a=this.Stt,c=this.Ttt;if(t.origin===this.Dtt){try{e=JSON.parse(t.data)}catch(t){return}if(e&&u.TypeChecker.isArray(e)&&e.length>=2){if(h=e.pop(),!u.TypeChecker.isString(h)||0!==h.indexOf("VID-"))return;if(this.jtt!==h)return;if(!(s=e.pop())||!i.MessageType[s])return;switch(s){case i.MessageType.EVENT:o=e.pop(),Object.keys(o).forEach((function(t){Object.prototype.hasOwnProperty.call(r.Stt,t)?a[t]=o[t]:Object.prototype.hasOwnProperty.call(r.Ttt,t)&&(c[t]=o[t])})),this.cV.iframeController&&(this.cV.iframeController.Stt=a,this.cV.iframeController.Ttt=c),this.cV.publish.apply(this.cV,e);break;case i.MessageType.CLEAR_IFRAME_NAME:null===(n=this.Mtt)||void 0===n||n.setAttribute("name","");break;case i.MessageType.PLAYER_DIMENSION_CHANGE:var f=e.length?e.pop():null,l="object"==typeof f?f.height:null;l&&this.Vtt(l)}}}},n.prototype.xtt=function(t){var i="";this.Itt.insideIframeConfig&&(i=this.Itt.insideIframeConfig.parentURL),window.parent.postMessage(t,i)},n.prototype.Utt=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.cV&&this.cV[i]&&this.cV[i][n]&&this.cV[i][n].apply(this.cV[i],e)}},n.prototype.Vtt=function(t){this.Ntt&&(this.Ntt.style.height=t+"px")},n}(s.default);i.default=h},5590: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(9451),s=n(8173),o=n(3872),u=n(9734),h=n(7525),a=n(2133),c=n(2473),f={},l=function(){function t(t,i){this.pZ="",this.TR=t,this.BH=i,this.Btt(),this.offNetwork=a.default.isOffNetwork(),this.Ftt(t.watchHistory)}return t.prototype.getEventsDto=function(){var t,i=this.TR.rapidConfig||{},n=i.pageParams||{},r=i.clickParams||{},s={pageSpaceId:this.TR.pageSpaceId||i&&i.Spaceid||"1111",experienceName:this.TR.expName||"",experienceBucket:this.TR.expBucket||"",experienceType:this.TR.expType||"",cpos:this.TR.cpos||"",ccode:this.TR.ccode||"",offNetwork:this.offNetwork,site:this.TR.site||"",siteAnalytics:this.TR.siteAnalytics||"",comscoreC4:this.TR.comscoreC4||u.NULL_DEFAULT,region:this.TR.region||"",referrer:this.TR.referrer||"",lang:this.TR.lang||"",pageLatency:this.ztt||"",playlistId:(null===(t=this.TR.playlist)||void 0===t?void 0:t.id)||""},o="strm"===n.sec?r.pstaid:n.pstaid,h={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.TR.sec||"",subsec:r.subsec||"",rlvtscr:n.rlvtscr||"",vidPos:n.vidPos||"",layout:n.layout||"",href:n._w||"",ref:n._R||""};return e(e({},s),h)},t.prototype.destroy=function(){},Object.defineProperty(t.prototype,"config",{get:function(){return this.TR},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoRecommendations",{get:function(){return void 0===this.TR.videoRecommendations||this.TR.videoRecommendations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return this.TR.site||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this.TR.region||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lang",{get:function(){return this.TR.lang||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"experienceBucket",{get:function(){return this.TR.expBucket||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"experienceName",{get:function(){return this.TR.expName||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yvapAccountId",{get:function(){return this.TR.YVAP&&this.TR.YVAP.accountId||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"syndication",{get:function(){return this.TR.synd||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cTopic",{get:function(){return this.TR.cTopic||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pspid",{get:function(){return this.TR.CMS&&this.TR.CMS.suppressAdContext?"":this.TR.pageSpaceId||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistId",{get:function(){return this.TR.playlist&&this.TR.playlist.id||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this.TR.loop||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){return this.TR.continuousPlay||!1},set:function(t){this.TR.continuousPlay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"relatedVideoId",{get:function(){var t=this.TR.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.TR.ui&&this.TR.ui.playlist&&this.TR.ui.playlist.mimetype||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistItemCount",{get:function(){return this.TR.ui&&this.TR.ui.playlist&&o.TypeChecker.isNumber(this.TR.ui.playlist.numberOfItems)?Math.max(this.TR.ui.playlist.numberOfItems,h.PLAYLIST_COUNT_PER_PAGE):h.PLAYLIST_COUNT_PER_PAGE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowGeoRequest",{get:function(){return this.TR.allowGeoRequest||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"geoData",{get:function(){return this.TR.geoData||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"guid",{get:function(){return this.pZ},set:function(t){this.pZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showEndScreen",{get:function(){var t,i,n;return(null===(n=null===(i=null===(t=this.TR)||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.TR.skipOnError||h.SkipOnError.NEVER},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){return o.TypeChecker.isNumber(this.TR.aspectRatio)?this.TR.aspectRatio:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"watchHistoryConfig",{get:function(){return this.TR.watchHistory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"watchHistory",{get:function(){return this.Gtt||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistUI",{get:function(){var t,i;return null===(i=null===(t=this.TR)||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.TR.pblob)&&this.TR.pblob.length<=512?this.TR.pblob:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDockable",{get:function(){var t=this.TR.ui&&this.TR.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.TR.allowGeoRequest=t.allowGeoRequest);var i=t.geoData;i&&o.TypeChecker.isString(i.latitude)&&o.TypeChecker.isString(i.longitude)&&o.TypeChecker.isString(i.accuracy)?this.TR.geoData=i:null===i&&(this.TR.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.TR.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.TR.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.Btt=function(){window.performance&&window.performance.timing&&window.performance.timing.navigationStart&&(this.ztt=(new Date).getTime()-window.performance.timing.navigationStart)},t.prototype.Ftt=function(t){this.Gtt=null,t&&t.enabled&&(this.Gtt=new c.default({watchHistoryEnabled:t.enabled,watchedPeriod:t.watchedPeriod,watchHistoryExpiry:t.expiry},this),this.Gtt.clearExpired())},t}();i.default=l},2480: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"},Htt:{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"}}}}}},5106: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"}}}},89: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"}}}},8240: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.3.157",type:"string"},jshlsVersion:{default:"1.2.37",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"}}}}}},7912: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"},Ytt:{type:"string"},ctv_di:{type:"string"},ctv_ddv:{type:"string"},ctv_dfv:{type:"string"},qtt:{type:"string"},Wtt:{type:"string"},Qtt:{type:"string"},$tt:{type:"string"},Xtt:{type:"string"},Ztt:{type:"string"},ctv_yb:{type:"string"},Jtt:{type:"string"},ctv_yr:{type:"string"},ctv_ybv:{type:"string"},ctv_yv:{type:"string"},Ktt:{type:"string"},tit:{type:"string"},iit:{type:"string"}}},forceHttp:{type:"boolean"}}}},177: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"}}}},8557: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"}}}}}},755: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"}}}},854: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"},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"}}}},3157: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"}}}},5187:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(6399),r=function(){function t(t,i){this.nit=null,this.eit=i,this.r7=new e.default(t)}return t.prototype.verify=function(t){if(this.r7){var i={onComplete:function(){t(!0)},onError:function(){t(!1)},onProgress:function(){},onApiCallInfo:function(){}};this.eit&&this.r7.resolve([this.eit],{},{},i)}},t.prototype.scheduleVerification=function(t,i){var n=this;this.rit(),this.nit=window.setTimeout((function(){n.verify(t)}),i)},t.prototype.destroy=function(){this.rit(),this.r7=null,this.eit=null},t.prototype.rit=function(){this.nit&&(clearTimeout(this.nit),this.nit=null)},t}();i.default=r},2450:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.OathPlayerFactory=void 0;var e=n(6540),r=n(3718);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)}},6540: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(1409),u=n(660),h=n(8173),a=n(6450),c=n(7557),f=n(6665),l=n(6647),v=n(2480),d=n(5106),p=n(89),m=n(8240),b=n(7912),y=n(177),g=n(8557),w=n(755),_=n(854),E=n(3157),O=n(7437),A=n(2133),S=n(9451),T=function(t){function i(i,n){var e,r,o,u,h=t.call(this,"OathPlayer")||this;h.sit=!1,h.oit=!1,h.version="8.3.157",h.playerType="desktop",h.jshlsVer="1.2.37",h.coreVer="0.3.138",h.uit=i,h.hit=Date.now(),h.Att=null,i.playerId=i.playerId||A.default.generateGuid(),i=JSON.parse(JSON.stringify(i)),i=A.default.isLegacyConfig(i)?A.default.transformLegacyConfig(i):i,h.xE=new c.default(i,n,h),h.n1=new f.default(h.xE),h.playlist=new O.default(h.xE.getPlaylist()),h.ait(i),h.cit(i);var v=[h.version,h.hit];a.default.sendPlayerInitBeacon.apply(a.default,s([i],v)),h.Z$(i),h.xE.initialize(),h.fit(),h.sit&&(h.Att=new l.default(i,h));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")),h}return r(i,t),i.prototype.render=function(t){return this.sit&&this.oit&&this.Att&&(this.Att.setupIframeToPageCommunication(),this.Att.sendClearIframeNameToPage()),this.xE.render(t),this},i.prototype.destroy=function(){this.xE.destroy(),t.prototype.destroy.call(this)},i.prototype.getCurrentTime=function(){return this.xE.getCurrentTime()},i.prototype.getCurrentDate=function(){return this.xE.getCurrentDate()},i.prototype.getVolume=function(){return this.xE.getVolume()},i.prototype.setQueryString=function(t){},i.prototype.removeAllMediaItems=function(){return!0},i.prototype.setPlaybackRate=function(t){var i;null===(i=this.n1)||void 0===i||i.setPlaybackRate(t)},i.prototype.play=function(t,i){this.n1.play(t,i)},i.prototype.pause=function(t){this.n1.pause(t)},i.prototype.mute=function(){this.n1.setMute(!0)},i.prototype.unMute=function(){this.n1.setMute(!1)},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),this.n1.setVolume(t,i)},i.prototype.isAd=function(){return this.xE.isAd()},i.prototype.seek=function(t){this.n1.seek(t)},i.prototype.getMediaStore=function(){return this.xE.getMediaStore()},i.prototype.isPlaying=function(){return this.xE.isPlayMode()},i.prototype.isPlayMode=function(){return this.xE.isPlayMode()},i.prototype.isDocked=function(){return this.xE.isDocked()},i.prototype.setMediaItemTitle=function(t,i){return this.xE.setMediaItemTitle(t,i)},i.prototype.isLoading=function(){return this.xE.isLoading()},i.prototype.getVideoElement=function(){return this.xE.getVideoElement()},i.prototype.getRootElement=function(){return this.xE.getRootElement()},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.xE.updateDockingConfig(t,i,n,e,r,s)},i.prototype.undockVideoPlayer=function(t){this.xE&&this.xE.undockVideoPlayer(t)},i.prototype.on=function(i,n,e){var r,s=this;if(Object.keys(h.Events).some((function(t){return h.Events[t]===i}))){var o=this.xE.addCorePlayerListener(i,n);r=function(){s.xE.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.xE.suspend()},i.prototype.resume=function(){this.xE.resume(),this.playlist.playlist=this.xE.getPlaylist()},i.prototype.isSuspended=function(){return this.xE&&this.xE.isSuspended()||!1},i.prototype.isRendered=function(){return this.xE&&this.xE.isRendered()||!1},i.prototype.updateGeoConfig=function(t){this.xE.updateGeoConfig(t)},i.prototype.getPlaybackStartDto=function(){return this.xE.getPlaybackStartDto()},i.prototype.getInitTime=function(){return this.hit},Object.defineProperty(i.prototype,"guid",{get:function(){return this.xE&&this.xE.guid||""},enumerable:!1,configurable:!0}),i.prototype.getMediaItemMarkers=function(t){return this.xE.getMediaItemMarkers(t)},i.prototype.addCustomControlElement=function(t){return this.xE.addCustomControlElement(t)},Object.defineProperty(i.prototype,"oathConfig",{get:function(){return this.uit},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iframeController",{get:function(){return this.Att},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"controls",{get:function(){return this.n1},set:function(t){this.n1=t},enumerable:!1,configurable:!0}),i.prototype.setSapiOptions=function(t,i){if(!t||!t.length)throw new Error("InvalidArgumentException");i&&this.xE.setSapiOptions(t,i)},i.prototype.__setError=function(t,i,n,e,r){this.xE.setError(t,i,n,e,r)},i.prototype.__getSyncOffset=function(){return this.xE.getSyncOffset()},i.prototype.startSync=function(){this.xE.startSync()},i.prototype.stopSync=function(){this.xE.stopSync()},i.prototype.fit=function(){if(A.default.isOathDomain()){this.config=this.uit}},i.prototype.Z$=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(b.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,m.configSchema,{throwError:!0})}catch(t){var n="Invalid player config: "+t.property+" "+t.message;throw new Error(n)}},i.prototype.ait=function(t){this.sit=(null==t?void 0:t.iframeRender)||!1,this.oit=(null==t?void 0:t.insideIframeConfig)||!1},i.prototype.cit=function(t){if(S.userAgent.chrome&&window.self!==window.top&&window.ReportingObserver){var i=new window.ReportingObserver((function(i){a.default.sendInterventionReports(i,t)}),{buffered:!0,types:["intervention"]});i.observe(),window.addEventListener("unload",(function(n){var e=i.takeRecords();a.default.sendInterventionReports(e,t)}))}},i}(o.default);i.default=T},7437:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8173),r=function(){function t(t){var i=this;this.lit=["clear","getCurrentItem","getCurrentItemDescription","getCurrentItemId","getCurrentItemLiveStatus","getCurrentItemMarkers","getCurrentItemProviderName","getCurrentItemTitle","getIndexForId","getItem","getItemById","getItemId","getItems","getPosition","getSize","removeItem","removeItemById","removeItems","removeItemsById","sendPrefetchInfo","setPosition","setPositionById"],this.pG=t,this.lit.forEach((function(t){i[t]=function(){return this.pG[t].apply(this.pG,arguments)}}))}return t.prototype.addItem=function(t){return this.pG.addItem(this.vit([t])[0])},t.prototype.addItems=function(t,i){return void 0===i&&(i=!1),this.pG.addItems(this.vit(t),i)},t.prototype.setItems=function(t){return this.pG.setItems(this.vit(t))},Object.defineProperty(t.prototype,"playlist",{set:function(t){this.pG=t},enumerable:!1,configurable:!0}),t.prototype.vit=function(t){var i=this.dit();return t.map((function(t){return{id:t,mimetype:i}}))},t.prototype.dit=function(){var t=this.pG.getCurrentItem();return t&&t.mimetype||e.MediaItemInterfaces.MediaItemMimeType.SAPI},t}();i.default=r},1963: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(5986),h=n(1123),a=o(o({},u),h),c=(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)||a;i.default=c},5322:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8173),r=n(7676),s=function(){function t(){var t=this;this.pit=[],this.mit=new r.default(Object.create(e.Player.prototype),{get:function(i,n){var e=t;return function(){e.pit.push({method:n,args:arguments}),"render"===n&&arguments.length>0&&e.DQ.call(e,arguments[0])}}})}return t.prototype.destroy=function(){var t=this.yit;this.mit=void 0,this.pit=[],t&&t.parentNode&&(t.parentNode.removeChild(t),this.yit=void 0)},t.prototype.execute=function(t){this.pit.forEach((function(i){var n=i.method,e=i.args;t[n].apply(t,e)})),this.pit=[]},t.prototype.getProxy=function(){return this.mit},t.prototype.DQ=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.yit=n}},t}();i.default=s},4558:function(t,i){"use strict";var n=this;Object.defineProperty(i,"__esModule",{value:!0}),i.arrayIncludesPolyfill=i.objectValuesPolyfill=i.objectAssignPolyfill=void 0;i.objectAssignPolyfill=function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),e=1;e<arguments.length;e++){var r=arguments[e];if(null!=r)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},writable:!0,configurable:!0})};i.objectValuesPolyfill=function(){"function"!=typeof Object.values&&Object.defineProperty(Object,"values",{value:function(t){if(!t)throw new TypeError("Cannot get values of undefined or null object");var i=[];for(var n in t)"string"==typeof n&&Object.prototype.hasOwnProperty.call(t,n)&&Object.prototype.propertyIsEnumerable.call(t,n)&&i.push(t[n]);return i}})};i.arrayIncludesPolyfill=function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,i){if(null==n)throw new TypeError('"this" is null or not defined');var e=Object(n),r=e.length>>>0;if(0===r)return!1;var s,o,u=0|i,h=Math.max(u>=0?u:r-Math.abs(u),0);for(;h<r;){if((s=e[h])===(o=t)||"number"==typeof s&&"number"==typeof o&&isNaN(s)&&isNaN(o))return!0;h++}return!1}})}},8689:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Promise=void 0;var e,r,s=n(9297);if(i.Promise=e,"undefined"!=typeof self?r=self:void 0!==n.g&&(r=n.g),r){var o=r.Promise,u=void 0;try{u=Object.prototype.toString.call(o.resolve())}catch(t){}"[object Promise]"===u&&(i.Promise=e=o)}e||(i.Promise=e=s.default)},7676: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,h=Object.getOwnPropertyNames(Object.getPrototypeOf(t));u<h.length;u++)o=h[u],s[o]||n[o]||Object.defineProperty(n,o,{get:e.bind(t,o)});Object.seal(t),Object.seal(n)};i.default=n},2133:function(t,i,n){"use strict";var e=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 r,s=n(7673),o=n(9451),u=n(8173),h=n(3872),a=n(7525),c=["yahoo.com","yahoo.co.jp","yahoo.net","yahoo.fr","yimg.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(c).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"}(r=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?c: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"),!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(){var i=t.getWindow().location.search;return i&&0===i.indexOf("?")&&(i=i.substr(1)),s.parse(i,void 0,void 0,{decodeURIComponent:window.decodeURIComponent})},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("#vp-beacons"),s="vp-beacons-"+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.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!==r.LOADING){if(e.state===r.LOAD_COMPLETE)return n(!0);e.state=r.LOADING,e.subscribers.push(n);t.loadScript(i,(function(t){e.state=r.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:r.NOT_LOADED,subscribers:[]};if(n&&n[i])e=n[i];else if(n)n[i]=e;else{var s={};s[i]=e,t.setSingleton(v,s)}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,a.REQUEST_TYPES.CLICK,a.REQUEST_TYPES.AUTOPLAY,a.REQUEST_TYPES.HOVER,a.REQUEST_TYPES.PLAY,a.REQUEST_TYPES.PAUSE,a.REQUEST_TYPES.SCROLL,a.REQUEST_TYPES.SWIPE,a.REQUEST_TYPES.BACKGROUND].indexOf(t)},t.transformLegacyConfig=function(i){var n,e,r,s;if(null===(e=null===(n=null==i?void 0:i.YVAP)||void 0===n?void 0:n.standaloneAd)||void 0===e?void 0:e.brxd)return{mediaItems:[{mimetype:"media/container",id:this.git(),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===(r=i.playlist)||void 0===r?void 0:r.id},pluginConfigs:{"source-metadata-plugin":{"media/sapi":{disableAdFetch:!0}}},videoRecommendations:null===(s=i.playlist)||void 0===s?void 0:s.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 o=Object.assign({mediaItems:[],ui:{},watchHistory:{enabled:!1,watchedPeriod:.5,expiry:129600,skipWatchedVideos:!0}},i),c=!1;if(i.playlist&&i.playlist.mediaItems){i.playlist=Object.assign({},i.playlist);for(var f=0,l=i.playlist.mediaItems;f<l.length;f++){var v=l[f],d=null;v.id===a.GEMINI_STUB_VIDEO_ID&&i.YVAP&&i.YVAP.standaloneAd&&(d=t.wit(v,i)),d||(d={mimetype:v.id?u.MediaItemInterfaces.MediaItemMimeType.SAPI:u.MediaItemInterfaces.MediaItemMimeType.CONTAINER,id:v.id||""},v.adConfig&&(d.adConfig=v.adConfig),(v.meta||v.streams)&&(d.customConfig={response:v}),v.streams&&d.mimetype===u.MediaItemInterfaces.MediaItemMimeType.CONTAINER&&(d.source=d.source||{},d.source.streams=v.streams),v.meta&&v.meta.playlist_config&&(c=!0));var p=v.images;p&&(p.thumbnail||p.large||p.medium||p.small)&&(d.metadata=d.metadata||{},d.metadata.thumbnail=p.thumbnail||p.large||p.medium||p.small),o.mediaItems.push(d)}void 0!==o.playlist.videoRecommendations&&(o.videoRecommendations=o.playlist.videoRecommendations),o.playlist.id?delete o.playlist.mediaItems:delete o.playlist}i.region&&(o.region=i.region.toUpperCase()),i.docking&&(o.ui.docking=Object.assign({},i.docking),o.ui.docking.position={},["Top","Right","Bottom","Left"].forEach((function(t){var n="position"+t,e=i.docking[n];o.ui.docking.position[t.toLowerCase()]="number"==typeof e?e:-1,delete o.ui.docking[n]})),delete o.docking);return[["ccOnMute","ccOnMute"],["chromeless","chromeless"],["showControls","showControls"],["showAgeGate","showAgeGate"],["fullscreenBtn","showFullscreenButton"]].forEach((function(t){void 0!==i[t[0]]&&(o.ui[t[1]]=!!i[t[0]]),delete o[t[0]]})),void 0!==i.startscreen&&"object"!=typeof i.startscreen?(o.ui.startScreen={show:!!i.startscreen},delete o.startscreen):"object"==typeof i.startscreen&&i.startscreen&&(o.ui.startScreen=o.ui.startScreen||{},["showButton","show","showDesc","showControls","showProvider","showTitle"].forEach((function(t){void 0!==i.startscreen[t]&&(o.ui.startScreen[t]=!!i.startscreen[t])})),o.ui.startScreen.showDescription=!!i.startscreen.showDesc,delete o.ui.startScreen.showDesc,delete o.startscreen),void 0!==i.endscreen&&"object"!=typeof i.endscreen?(o.ui.endScreen={show:!!i.endscreen},delete o.endscreen):"object"==typeof i.endscreen&&i.endscreen&&(o.ui.endScreen=i.endscreen,delete o.endscreen),void 0!==i.replayonlyendscreen&&"boolean"==typeof i.replayonlyendscreen&&(o.ui.endScreen={show:!!i.replayonlyendscreen},delete o.replayonlyendscreen),["Start","Hover"].forEach((function(t){var n="showTitleOn"+t;void 0!==i[n]&&(o.ui.title=o.ui.title||{},o.ui.title["showOn"+t]=i[n],delete o[n])})),void 0!==i.watchHistoryEnabled&&(o.watchHistory.enabled=i.watchHistoryEnabled,delete o.watchHistoryEnabled),void 0!==i.watchedPeriod&&(o.watchHistory.watchedPeriod=i.watchedPeriod,delete o.watchedPeriod),void 0!==i.watchHistoryExpiry&&(o.watchHistory.expiry=i.watchHistoryExpiry,delete o.watchHistoryExpiry),i.YVAP&&("number"==typeof i.YVAP.timeout&&(o.ads=o.ads||{timeout:{}},o.ads.timeout.load=i.YVAP.timeout),"number"==typeof i.YVAP.vpaidTimeout&&(o.ads=o.ads||{timeout:{}},o.ads.timeout.start=i.YVAP.vpaidTimeout)),i.playlistUI&&(o.ui.playlist=i.playlistUI,i.playlistUI.playlistId&&(o.playlist=o.playlist||{},o.playlist.id=i.playlistUI.playlistId),delete o.playlistUI),c&&o.ui.playlist&&(o.ui.playlist.mimetype="playlist/structured"),["height","width"].forEach((function(t){i[t]&&h.TypeChecker.isString(i[t])&&(o[t]=parseInt(i[t],10),h.TypeChecker.isNumber(o[t])||delete o[t])})),o},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 h.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 h.TypeChecker.isObject(t)||(t={}),Object.assign.apply(Object,e([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.wit=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:a.VRM_PLUGIN_MIMETYPE,value:{YVAP:i.YVAP}}}):null},t.git=function(){for(var t="",i="0987654321qwertyuiopasdfghjklzxcvbnm",n=0;n<12;n++)t+=i[Math.floor(Math.random()*i.length)];return"lrec-"+t},t}();i.default=d},2473:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(3872),r="vpResumeTimeItems",s=function(){function t(t,i){this._it=t.watchHistoryEnabled||!1,this.Eit=t.watchedPeriod||.5,this.Oit=t.watchHistoryExpiry||129600,this.n_=i}return t.prototype.isWatched=function(t,i){if(!this._it)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.Oit;n[t.id]={position:t.position},i&&(n[t.id].expiryTime=(new Date).getTime()+1e3*s,this.isDeemedWatched(t.position,t.duration)?this.n_.setMediaItemWatched(t.id,!0):this.n_.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.Eit;return!(!this._it||!i)&&(n>=0&&n<=1?t>=i*n:i<=n?t>=i-5:t>=n)},t}();i.default=s},6249:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getErrorCode=void 0;var e=n(3872),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]}},9385:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8145),r=function(){function t(){this.G6=new e.default}return t.prototype.updateOathPlayerOpss=function(t,i,n){this.G6.updateOathPlayerInfo(t,i,n)},t}();i.default=r},8145: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.Ait(n.version),o=e.querySelector(".vp-opss-lmsid");e.insertBefore(s,r);var u=this.Sit(),h=e.querySelector(".vp-opss-hosting");h&&(h.innerHTML=u);var a=e.querySelector(".vp-opss-profile");a&&(a.innerHTML=JSON.stringify(n.config,void 0,2)),o&&(o.innerHTML="<span class='vp-details'> License Id(LMS ID): </span> "+n.lmsId)}}},t.prototype.Ait=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.Sit=function(){var t=window.OATH,i=t&&t.VideoPlatform&&t.VideoPlatform.PlayerHosting||"local";return JSON.stringify(i,void 0,2)},t}();i.default=n},759:function(t,i,n){"use strict";n.r(i);var e=n(3645),r=n.n(e),s=n(1667),o=n.n(s),u=n(5030),h=n.n(u),a=n(5251),c=n.n(a),f=r()(!1),l=o()(h()),v=o()(c());f.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("+l+");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("+v+");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=f},3847:function(t,i,n){"use strict";n.r(i);var e=n(3645),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},3645: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)))),h="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(h," */")),s=e.sources.map((function(t){return"/*# sourceURL=".concat(e.sourceRoot||"").concat(t," */")}));return[n].concat(s).concat([r]).join("\n")}var o,u,h;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 h=[].concat(t[u]);e&&r[h[0]]||(n&&(h[2]?h[2]="".concat(n," and ").concat(h[2]):h[2]=n),i.push(h))}},i}},1667: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)}},8908:function(t,i,n){var e;e="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},t.exports=e},9397:function(t,i){!function(t){var i=/\S/,n=/\"/g,e=/\n/g,r=/\r/g,s=/\\/g,o=/\u2028/,u=/\u2029/;function h(t){"}"===t.n.substr(t.n.length-1)&&(t.n=t.n.substring(0,t.n.length-1))}function a(t){return t.trim?t.trim():t.replace(/^\s*|\s*$/g,"")}function c(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,Tit:9,"{":10,"&":11,jit:12},t.scan=function(n,e){var r=n.length,s=0,o=null,u=null,f="",l=[],v=!1,d=0,p=0,m="{{",b="}}";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.Tit||"_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="="+b,e=t.indexOf(n,i),r=a(t.substring(t.indexOf("=",i)+1,e)).split(" ");return m=r[0],b=r[r.length-1],e+n.length-1}for(e&&(e=e.split(" "),m=e[0],b=e[1]),d=0;d<r;d++)0==s?c(m,n,d)?(--d,y(),s=1):"\n"==n.charAt(d)?g(v):f+=n.charAt(d):1==s?(d+=m.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):c(b,n,d)?(l.push({tag:o,n:a(f),otag:m,ctag:b,i:"/"==o?v-m.length:d+b.length}),f="",d+=b.length-1,s=0,"{"==o&&("}}"==b?d++:h(l[l.length-1]))):f+=n.charAt(d);return g(v,!0),l};var f={jit:!0,"\n":!0,$:!0,"/":!0};function l(i,n,e,r){var s,o=[],u=null,h=null;for(s=e[e.length-1];i.length>0;){if(h=i.shift(),s&&"<"==s.tag&&!(h.tag in f))throw new Error("Illegal content in < super tag.");if(t.tags[h.tag]<=t.tags.$||v(h,r))e.push(h),h.nodes=l(i,h.tag,e,r);else{if("/"==h.tag){if(0===e.length)throw new Error("Closing tag without opener: /"+h.n);if(u=e.pop(),h.n!=u.n&&!d(h.n,u.n,r))throw new Error("Nesting error: "+u.n+" vs. "+h.n);return u.end=h.i,o}"\n"==h.tag&&(h.last=0==i.length||"\n"==i[0].tag)}o.push(h)}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('"'+b(n)+'":{name:"'+b(t.partials[n].name)+'", '+p(t.partials[n])+"}");return"partials: {"+i.join(",")+"}, subs: "+function(t){var i=[];for(var n in t)i.push('"'+b(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 m=0;function b(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+m++;return i.partials[n]={name:t.n,partials:{}},i.code+='t.b(t.rp("'+b(n)+'",c,p,"'+(t.indent||"")+'"));',n}function w(t,i){i.code+="t.b(t.t(t."+y(t.n)+'("'+b(t.n)+'",c,p,0)));'}function _(t){return"t.b("+t+");"}t.generate=function(i,n,e){m=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)+'("'+b(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)+'("'+b(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("'+b(i.n)+'",c,p,i);')},"\n":function(t,i){i.code+=_('"\\n"'+(t.last?"":" + i"))},Tit:function(t,i){i.code+="t.b(t.v(t."+y(t.n)+'("'+b(t.n)+'",c,p,0)));'},jit:function(t,i){i.code+=_('"'+b(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(9397);e.Template=n(2882).Template,e.template=e.Template,t.exports=e},2882: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=h(t),u.test(t)?t.replace(n,"&amp;").replace(e,"&lt;").replace(r,"&gt;").replace(s,"&#39;").replace(o,"&quot;"):t},t:h,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 h;o.prototype=t,u.prototype=t.subs;var a=new o;for(h in a.subs=new u,a.subsText={},a.buf="",e=e||{},a.stackSubs=e,a.subsText=s,i)e[h]||(e[h]=i[h]);for(h in e)a.subs[h]=e[h];for(h in r=r||{},a.stackPartials=r,n)r[h]||(r[h]=n[h]);for(h in r)a.partials[h]=r[h];return a}(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(a(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(!a(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),h=this.options.modelGet,c=null;if("."===t&&a(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,h))?(c=u,u=s):u="";return!(r&&!u)&&(r||"function"!=typeof u||(n.push(c),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,h=n.length-1;h>=0;h--)if(void 0!==(s=i(t,n[h],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(h(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,h=i[i.length-1],a=t.call(h);return"function"==typeof a?!!e||(u=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(a,h,n,u.substring(r,s),o)):a},mv:function(t,i,n){var e=i[i.length-1],r=t.call(e);return"function"==typeof r?this.ct(h(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 h(t){return String(null==t?"":t)}var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(i)},7376: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},6481:function(t,i,n){"use strict";var e=n(9177),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 h(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 a(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 c(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(h.bind(this,t,n,e,(function(t){u.importErrors(t)})))){var a=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:a,message:"is not any of "+a.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 h=i.$id||i.id||i.title&&JSON.stringify(i.title)||i.$ref&&"<"+i.$ref+">"||"[subschema "+r+"]";o.addError({name:"allOf",argument:{id:h,length:s.errors.length,valid:s},message:"does not match allOf schema "+h+" 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),a=i.oneOf.filter(h.bind(this,t,n,e,(function(t){u.importErrors(t)}))).length,c=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!==a&&(n.nestedErrors&&o.importErrors(u),o.addError({name:"oneOf",argument:c,message:"is not exactly one from "+c.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=h.call(this,t,n,s,null,i.if),a=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)),a.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)),a.importErrors(o)}return a},u.propertyNames=function(t,i,n,o){if(this.types.object(t)){var u=new r(t,i,n,o),h=void 0!==i.propertyNames?i.propertyNames:{};if(!e.isSchema(h))throw new s('Expected "propertyNames" to be a schema (object or boolean)');for(var c in t)if(void 0!==a(t,c)){var f=this.validateSchema(c,h,n,o.makeChild(h));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 h in u){var c=u[h];if(void 0!==c){if(null===c)throw new s('Unexpected null, expected schema in "properties"');"function"==typeof n.preValidateProperty&&n.preValidateProperty(t,h,c,n,e);var f=a(t,h),l=this.validateSchema(f,c,n,e.makeChild(c,h));l.instance!==o.instance[h]&&(o.instance[h]=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 h in t){var a=!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(h)){a=!1,"function"==typeof n.preValidateProperty&&n.preValidateProperty(t,h,l,n,e);var d=this.validateSchema(t[h],l,n,e.makeChild(l,h));d.instance!==o.instance[h]&&(o.instance[h]=d.instance),o.importErrors(d)}}}a&&c.call(this,t,i,n,e,h,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)c.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 h=s.validateSchema(t,u,n,e.makeChild(u,r));return h.instance!==o.instance[r]&&(o.instance[r]=h.instance),o.importErrors(h),!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,h){if(this.types.number(t)){var a=i[u];if(0==a)throw new s(u+" cannot be zero");var c=new r(t,i,n,o),f=e.getDecimalPlaces(t),l=e.getDecimalPlaces(a),v=Math.max(f,l),d=Math.pow(10,v);return Math.round(t*d)%Math.round(a*d)!=0&&c.addError({name:u,argument:a,message:h+JSON.stringify(a)}),c}};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===a(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],h=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:h.propertyPath,message:"property "+i+" not found, required by "+h.propertyPath})}));else{var a=this.validateSchema(t,u,n,h);s.instance!==a.instance&&(s.instance=a.instance),a&&a.errors.length&&(s.addError({name:"dependencies",argument:h.propertyPath,message:"does not meet dependency required by "+h.propertyPath}),s.importErrors(a))}}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},9177: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 h=i.SchemaError=function t(i,n){this.message=i,this.schema=n,Error.call(this,i),Error.captureStackTrace(this,t)};h.prototype=Object.create(Error.prototype,{constructor:{value:h,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=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};a.prototype.resolve=function(t){return e.resolve(this.base,t)},a.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 a(t,this.options,n,s,Object.create(this.schemas));return r&&!o.schemas[s]&&(o.schemas[s]=t),o};var c=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]$/};c.regexp=c.regex,c.pattern=c.regex,c.ipv4=c["ip-address"],i.isFormat=function(t,i,n){if("string"==typeof t&&void 0!==c[i]){if(c[i]instanceof RegExp)return c[i].test(t);if("function"==typeof c[i])return c[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 m(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(m).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}},660:function(t,i,n){"use strict";var e=t.exports.Validator=n(3058);t.exports.ValidatorResult=n(9177).ValidatorResult,t.exports.ValidatorResultError=n(9177).ValidatorResultError,t.exports.ValidationError=n(9177).ValidationError,t.exports.SchemaError=n(9177).SchemaError,t.exports.SchemaScanResult=n(1287).SchemaScanResult,t.exports.scan=n(1287).scan,t.exports.validate=function(t,i,n){return(new e).validate(t,i,n)}},1287:function(t,i,n){"use strict";var e=n(8575),r=n(9177);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);a[s]=a[s]?a[s]+1:0}else{var c=i.$id||i.id,f=c?e.resolve(t,c):t;if(f){if(f.indexOf("#")<0&&(f+="#"),h[f]){if(!r.deepCompareStrict(h[f],i))throw new Error("Schema <"+f+"> already exists with different definition");return h[f]}h[f]=i,"#"==f[f.length-1]&&(h[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 h={},a={};return n(t,i),new s(h,a)}},3058:function(t,i,n){"use strict";var e=n(8575),r=n(6481),s=n(9177),o=n(1287).scan,u=s.ValidatorResult,h=s.ValidatorResultError,a=s.SchemaError,c=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 a("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 c(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 h(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 h={schema:i,ctx:e};i.extends.forEach(this.schemaTraverser.bind(this,h)),i=h.schema,h.schema=null,h.ctx=null,h=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 c(v.subschema,n,e.path,v.switchSchema,e.schemas);return this.validateSchema(t,v.subschema,n,d)}var p=n&&n.skipAttributes||[];for(var m in i)if(!r.ignoreProperties[m]&&p.indexOf(m)<0){var b=null,y=this.attributes[m];if(y)b=y.call(this,t,i,n,e);else if(!1===n.allowUnknownAttributes)throw new a("Unsupported attribute: "+m,i);b&&o.importErrors(b)}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 a("no such schema <"+i+">",t);var h=s.objectGetPath(n.schemas[u],o.substr(1));if(void 0===h)throw new a("no such schema "+o+" located in <"+u+">",t);return{subschema:h,switchSchema:i}},f.prototype.testType=function(t,i,n,e,r){if(void 0!==r){if(null===r)throw new a('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},9364: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)},6411: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,1415,"{{ }}")&&(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("' />"),e.b("\n"+n),e.b("            <div class='yvp-playlist-item-watched "),e.s(e.f("isItemWatched",t,i,1),t,i,0,740,748,"{{ }}")&&(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,1175,1269,"{{ }}")&&(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}}' />\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}}",e)},4797:function(){},2559:function(){},7343:function(){},2758:function(){},1600:function(){},6103: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(":"),h=i(o.slice(0,u)).toLowerCase(),a=i(o.slice(u+1));void 0===e[h]?e[h]=a:(n=e[h],"[object Array]"===Object.prototype.toString.call(n)?e[h].push(a):e[h]=[e[h],a])}return e}},9297:function(t,i,n){"use strict";n.r(i),n.d(i,{default:function(){return m}});var e=function(t){var i=this.constructor;return this.then((function(n){return i.resolve(t()).then((function(){return n}))}),(function(n){return i.resolve(t()).then((function(){return i.reject(n)}))}))};var r=function(t){return new this((function(i,n){if(!t||void 0===t.length)return n(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var e=Array.prototype.slice.call(t);if(0===e.length)return i([]);var r=e.length;function s(t,n){if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if("function"==typeof o)return void o.call(n,(function(i){s(t,i)}),(function(n){e[t]={status:"rejected",reason:n},0==--r&&i(e)}))}e[t]={status:"fulfilled",value:n},0==--r&&i(e)}for(var o=0;o<e.length;o++)s(o,e[o])}))},s=setTimeout,o="undefined"!=typeof setImmediate?setImmediate:null;function u(t){return Boolean(t&&void 0!==t.length)}function h(){}function a(t){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.GO=0,this.Iit=!1,this.Mit=void 0,this.Nit=[],p(t,this)}function c(t,i){for(;3===t.GO;)t=t.Mit;0!==t.GO?(t.Iit=!0,a.Rit((function(){var n=1===t.GO?i.onFulfilled:i.onRejected;if(null!==n){var e;try{e=n(t.Mit)}catch(t){return void l(i.promise,t)}f(i.promise,e)}else(1===t.GO?f:l)(i.promise,t.Mit)}))):t.Nit.push(i)}function f(t,i){try{if(i===t)throw new TypeError("A promise cannot be resolved with itself.");if(i&&("object"==typeof i||"function"==typeof i)){var n=i.then;if(i instanceof a)return t.GO=3,t.Mit=i,void v(t);if("function"==typeof n)return void p((e=n,r=i,function(){e.apply(r,arguments)}),t)}t.GO=1,t.Mit=i,v(t)}catch(i){l(t,i)}var e,r}function l(t,i){t.GO=2,t.Mit=i,v(t)}function v(t){2===t.GO&&0===t.Nit.length&&a.Rit((function(){t.Iit||a.kit(t.Mit)}));for(var i=0,n=t.Nit.length;i<n;i++)c(t,t.Nit[i]);t.Nit=null}function d(t,i,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof i?i:null,this.promise=n}function p(t,i){var n=!1;try{t((function(t){n||(n=!0,f(i,t))}),(function(t){n||(n=!0,l(i,t))}))}catch(t){if(n)return;n=!0,l(i,t)}}a.prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,i){var n=new this.constructor(h);return c(this,new d(t,i,n)),n},a.prototype.finally=e,a.all=function(t){return new a((function(i,n){if(!u(t))return n(new TypeError("Promise.all accepts an array"));var e=Array.prototype.slice.call(t);if(0===e.length)return i([]);var r=e.length;function s(t,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var u=o.then;if("function"==typeof u)return void u.call(o,(function(i){s(t,i)}),n)}e[t]=o,0==--r&&i(e)}catch(t){n(t)}}for(var o=0;o<e.length;o++)s(o,e[o])}))},a.allSettled=r,a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a((function(i){i(t)}))},a.reject=function(t){return new a((function(i,n){n(t)}))},a.race=function(t){return new a((function(i,n){if(!u(t))return n(new TypeError("Promise.race accepts an array"));for(var e=0,r=t.length;e<r;e++)a.resolve(t[e]).then(i,n)}))},a.Rit="function"==typeof o&&function(t){o(t)}||function(t){s(t,0)},a.kit=function(t){"undefined"!=typeof console&&console};var m=a},4971: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,h=36,a=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=Math.floor,d=String.fromCharCode;function p(t){throw RangeError(l[t])}function m(t,i){for(var n=t.length,e=[];n--;)e[n]=i(t[n]);return e}function b(t,i){var n=t.split("@"),e="";return n.length>1&&(e=n[0]+"@",t=n[1]),e+m((t=t.replace(f,".")).split("."),i).join(".")}function y(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 g(t){return m(t,(function(t){var i="";return t>65535&&(i+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=d(t)})).join("")}function w(t,i){return t+22+75*(t<26)-((0!=i)<<5)}function _(t,i,n){var e=0;for(t=n?v(t/700):t>>1,t+=v(t/i);t>455;e+=h)t=v(t/35);return v(e+36*t/(t+38))}function E(t){var i,n,e,r,s,o,a,c,f,l,d,m=[],b=t.length,y=0,w=128,E=72;for((n=t.lastIndexOf("-"))<0&&(n=0),e=0;e<n;++e)t.charCodeAt(e)>=128&&p("not-basic"),m.push(t.charCodeAt(e));for(r=n>0?n+1:0;r<b;){for(s=y,o=1,a=h;r>=b&&p("invalid-input"),((c=(d=t.charCodeAt(r++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:h)>=h||c>v((u-y)/o))&&p("overflow"),y+=c*o,!(c<(f=a<=E?1:a>=E+26?26:a-E));a+=h)o>v(u/(l=h-f))&&p("overflow"),o*=l;E=_(y-s,i=m.length+1,0==s),v(y/i)>u-w&&p("overflow"),w+=v(y/i),y%=i,m.splice(y++,0,w)}return g(m)}function O(t){var i,n,e,r,s,o,a,c,f,l,m,b,g,E,O,A=[];for(b=(t=y(t)).length,i=128,n=0,s=72,o=0;o<b;++o)(m=t[o])<128&&A.push(d(m));for(e=r=A.length,r&&A.push("-");e<b;){for(a=u,o=0;o<b;++o)(m=t[o])>=i&&m<a&&(a=m);for(a-i>v((u-n)/(g=e+1))&&p("overflow"),n+=(a-i)*g,i=a,o=0;o<b;++o)if((m=t[o])<i&&++n>u&&p("overflow"),m==i){for(c=n,f=h;!(c<(l=f<=s?1:f>=s+26?26:f-s));f+=h)O=c-l,E=h-l,A.push(d(w(l+O%E,0))),c=v(O/E);A.push(d(w(c,0))),s=_(n,g,e==r),n=0,++e}++n,++i}return A.join("")}o={version:"1.3.2",ucs2:{decode:y,encode:g},decode:E,encode:O,toASCII:function(t){return b(t,(function(t){return c.test(t)?"xn--"+O(t):t}))},toUnicode:function(t){return b(t,(function(t){return a.test(t)?E(t.slice(4).toLowerCase()):t}))}},void 0===(e=function(){return o}.call(i,n,i,t))||(t.exports=e)}()},2587: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 h=t.length;u>0&&h>u&&(h=u);for(var a=0;a<h;++a){var c,f,l,v,d=t[a].replace(o,"%20"),p=d.indexOf(e);p>=0?(c=d.substr(0,p),f=d.substr(p+1)):(c=d,f=""),l=decodeURIComponent(c),v=decodeURIComponent(f),i(s,l)?Array.isArray(s[l])?s[l].push(v):s[l]=[s[l],v]:s[l]=v}return s}},2361: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]))})).filter(Boolean).join(n):r?encodeURIComponent(i(r))+e+encodeURIComponent(i(t)):""}},7673:function(t,i,n){"use strict";i.decode=i.parse=n(2587),i.encode=i.stringify=n(2361)},5005:function(t,i,n){var e=n(3379),r=n(759);"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||{}},7965:function(t,i,n){var e=n(3379),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||{}},3379: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 h(t,i){for(var n={},e=[],r=0;r<t.length;r++){var s=t[r],h=i.base?s[0]+i.base:s[0],a=n[h]||0,c="".concat(h," ").concat(a);n[h]=a+1;var f=u(c),l={css:s[1],media:s[2],sourceMap:s[3]};-1!==f?(o[f].references++,o[f].updater(l)):o.push({identifier:c,updater:m(l,i),references:1}),e.push(c)}return e}function a(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 c,f=(c=[],function(t,i){return c[t]=i,c.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 m(t,i){var n,e,r;if(i.singleton){var s=p++;n=d||(d=a(i)),e=l.bind(null,n,s,!1),r=l.bind(null,n,s,!0)}else n=a(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=h(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=h(t,i),a=0;a<n.length;a++){var c=u(n[a]);0===o[c].references&&(o[c].updater(),o.splice(c,1))}n=s}}}},5251:function(t){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTcuMDQyIiBoZWlnaHQ9IjIwLjAxNSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCByZXF1aXJlZEV4dGVuc2lvbnM9Imh0dHA6Ly9ucy5hZG9iZS5jb20vQWRvYmVJbGx1c3RyYXRvci8xMC4wLyIgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBmaWxsPSIjZmZmIiBkPSJNMTU2Ljk2IDEuODc3bC01LjI1NSAxOC4xMjZoLTcuOTkybDIuMTk4LTcuMzg0LTUuNDYgNi4zNGgtMi42bC0zLjExNC0xMS44M2gtNi4yMjdsMS4yNy01LjI1MmgxMS44OGwxLjI1NyA3LjI1IDYuMDQ3LTcuMjQ2di0uMDA1aDcuOTk1em0tMzIuNTEzIDEzLjI0Yy0uODA4IDIuNjg4LTMuNjQ1IDQuODg3LTYuMzAyIDQuODg3aC0xMS44NmMtMi42NiAwLTQuMTcyLTIuMi0zLjM2NC00Ljg4N2wxLjg5OC02LjMxMmg4LjQxNmwtMS44NjYgNS43NDdoNC42MWwyLjM3NS03LjM3NmgtMTMuMDI2Yy45NTgtMi41IDMuNzUyLTUuMjk4IDYuMjc1LTUuMjk4aDExLjg2YzIuNjU3IDAgNC4wNTYgMy4wMTggMy4yNDcgNS43MDVsLTIuMjY0IDcuNTM0em0tMjIuNTMtNS4yNzZoLTcuMzAybC44MDgtMi42MzJoLTMuOWwtMi4zNiA3LjMyMmgzLjlsLjU4Ny0xLjM2NWg3LjI2bC0xLjA4NCAzLjU4Yy0uODEgMi42ODgtMy4xNjMgMy4yNTgtNS44MiAzLjI1OGgtOS4yNGMtMi42NTYgMC00LjE3LTIuMi0zLjM2Mi00Ljg4N2wyLjI2NC03LjUzM2MuODA4LTIuNjg4IDIuOTEtNS43MDUgNi43MzUtNS43MDVoOC42NWMyLjg5MyAwIDQuMzQ4IDMuMyAzLjU2MiA1Ljg1bC0uNjk4IDIuMTEzek03MC45ODUgMjAuMDA3bDEuNjUtNi43MjJoNi40NGwtMS42NTIgNi43MjJoLTYuNDM4em0tNy4zOS02LjcyaDYuNDM4bC0xLjY1IDYuNzJoLS40OTV2LjAwM0g1NS43NjZ2LS4wMDdoLTUuNzJsNC43OC0xNi4wNThoLTEuOTEyTDU0LjA3LjA2NWgxLjkxbC4wMDQtLjAxaDkuMjM4TDYwLjM5NiAxNi4yN2gyLjQ2N2wuNzMyLTIuOTg0ek01MC4yNTggNi45MTJINDMuN2wuNzI0LTIuOTdoLTE0LjY1TDMwLjkzLjA2N2gyMC45MzZsLS4wMTQuMDZoLjA2TDUwLjI2IDYuOTE0ek0xNy41MTggMjBoLTYuNzgyTDguOSAzLjk0NUgyLjkxNUw0LjA3LjA2NWg0LjM4NnYtLjAxaDguNzdsMS43MjggMTUuMTIgNC41LTE1LjEyaDUuNDhsLTUuOTQgMTkuOTQ2aC01LjQ3N3pNNy41NzggNS40NWwuNDQgNC42NzMtMy4wMzcgOS44OEguMDUzTDQuNDk2IDUuNDVINy41OHptMzIuMzQ2LS4yNzhsLTEuMjE3IDQuMDMyaDcuMzk3bC0uODczIDMuNzRoLTcuNjVMMzUuNDUgMjBoLTguNjNsNC40NzYtMTQuODI4aDguNjN6bTkzLjI2NCAzLjUzbDEuNDU3IDYuNDctMS40MyA0LjgzMmgtNi43NjRMMTI5LjgxIDguN2gzLjM4eiIvPjwvc3dpdGNoPjwvc3ZnPg=="},5030:function(t){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCI+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTE1IDI5LjA5MnMuNjI0LTEuMDggMS4yMzQtMS42NjhjLjg2Mi0uODI3IDIuMDg0LTEuMzQ2IDMuNzM2LTEuNTg0IDIuMDczLS4zIDMuNTc2LTEgNC40NjMtMi4wNzIuNzE1LS44NzIuODIzLTEuNzQuODI1LTIuMTg0VjQuMTE0aC0uNjgzYy0uODguNjMtMi41NjggMS40OTMtNC43MzguOTU4QzE2LjA3NSA0LjE0OCAxNSAuOTA2IDE1IC45MDZzLTEuMDc2IDMuMjQtNC44MzcgNC4xNjZjLTIuMTczLjUzNS0zLjg2LS4zMy00Ljc0Mi0uOTZoLS42Nzh2MTcuNDcyYzAgLjQ0LjEwOCAxLjMxMi44MjUgMi4xODQuODg1IDEuMDcyIDIuMzg2IDEuNzcgNC40NiAyLjA3MiAxLjY1NS4yMzggMi44NzYuNzU3IDMuNzM4IDEuNTg4LjYzMy42MDggMS4yMzQgMS42NjQgMS4yMzQgMS42NjQiLz48cGF0aCBmaWxsPSIjMDEzNzY5IiBkPSJNMjQuNjQgNC43OTZzLTIuMDU2IDEuNi00Ljk1Ljg3NUMxNi4zMSA0LjgzIDE1IDIuMjk4IDE1IDIuMjk4cy0xLjMxMiAyLjUzLTQuNjkgMy4zNzRjLTIuODk3LjcyNS00Ljk1My0uODc0LTQuOTUzLS44NzR2MTYuNzg4YzAgLjU3LjI0IDIuOTkzIDQuNzU4IDMuNjQ2IDEuNzg2LjI2IDMuMTIuODMyIDQuMDc4IDEuNzU0LjM0NC4zMy42MDYuNjY2LjgwNS45NzguMi0uMzEyLjQ2LS42NDguODA4LS45NzguOTU2LS45MjIgMi4yOS0xLjQ5NCA0LjA3NC0xLjc1NCA0LjUyLS42NTIgNC43Ni0zLjA3NiA0Ljc2LTMuNjQ2VjQuNzk2eiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0xNSAyNi4yNTNzMS4zMS0xLjYyMiA0LjcyLTIuMTQ3YzMuOTAzLS42IDMuNzg4LTIuNDMzIDMuNzg4LTIuNTI1di04Ljc5NGwtMTcuMDIuMDAydjguNzkyYzAgLjA5My0uMTEyIDEuOTI1IDMuNzkgMi41MjUgMy40MS41MjYgNC43MiAyLjE0OCA0LjcyIDIuMTQ4Ii8+PHBhdGggZmlsbD0iI0Q1MEEwQSIgZD0iTTExLjAzIDE5LjIxM3YtNC4xOGwtLjUyMy0uMjk1VjEzLjY1aDIuMzl2MS4wODhsLS41LjI5NXY4LjUzbC0xLjI3OC0uMzg0LTEuODQ3LTUuNDV2My41OWwuNTg2LjQ1MnYxLjExbC0yLjU2NS0uNjU3di0uOTRsLjU4Ni0uMjMydi02LjAxNWwtLjYtLjNWMTMuNjVoMS45NE0xNS40MzIgMjMuMDM4bC41MS42MXYxLjA4NmwtMi41MzgtLjk0OHYtLjkybC41Ni0uMjN2LTcuNjAzbC0uNTU2LS4yODN2LTEuMWg0LjQwOHYyLjIxaC0uOTY4bC0uMjk1LS45MDdoLTEuMTJ2Mi41NTJoLjg0bC4zMy0uNDg0aC42Nzd2Mi4yN2gtLjY3NmwtLjMyLS40NmgtLjg1Mk0xOC4yMzYgMjMuNDJ2LTEuMDg1bC42My0uNTE3di02Ljc4NWwtLjU0LS4yODN2LTEuMWgyLjU0MnYxLjFsLS40OTcuMjgzdjYuMzY0bDEuMDkzLS4yOTMuMjA3LTEuNjdoMS4wNXYyLjc5Ii8+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTYuOTMyIDEwLjk4NmwtLjc3LS41OGguOTQybC4zMS0uODg4LjMxMi44OWguOTRsLS43Ny41NzguMjgzLjkwNy0uNzY3LS41MzctLjc2NC41MzdNMTAuMjcyIDEwLjk4NmwtLjc3LS41OGguOTRsLjMxLS44ODguMzEyLjg5aC45NGwtLjc3LjU3OC4yODUuOTA3LS43NjctLjUzNy0uNzY0LjUzN002LjkzMiA3Ljk3NWwtLjc3LS41NzhoLjk0MmwuMzEtLjg5LjMxMi44OWguOTRsLS43Ny41NzguMjgzLjkwNS0uNzY3LS41NC0uNzY0LjU0TTEwLjI3MiA3Ljk3NWwtLjc3LS41NzhoLjk0bC4zMS0uODkuMzEyLjg5aC45NGwtLjc3LjU3OC4yODUuOTA1LS43NjctLjU0LS43NjQuNTRNMjMuMzQ4IDExLjg5M2wtLjc2NC0uNTM4LS43NjYuNTM4LjI4NC0uOTA3LS43Ny0uNTc4aC45NGwuMzEyLS44OS4zMS44OWguOTQybC0uNzcuNTc4TTIwLjAxIDExLjg5M2wtLjc2NC0uNTM4LS43NjcuNTM4LjI4NC0uOTA3LS43NzItLjU3OGguOTRsLjMxNC0uODkuMzEuODloLjk0bC0uNzcuNTc4TTIzLjM0OCA4Ljg4bC0uNzY0LS41NC0uNzY2LjU0LjI4NC0uOTA1LS43Ny0uNTc4aC45NGwuMzEyLS44OS4zMS44OWguOTQybC0uNzcuNTc4TTIwLjAxIDguODhsLS43NjQtLjU0LS43NjcuNTQuMjg0LS45MDUtLjc3Mi0uNTc4aC45NGwuMzE0LS44OS4zMS44OWguOTRsLS43Ny41NzhNMTUuNzMgNy4zMThjLS4zNDItLjI4LS43MjctLjQ2NC0xLjEzNS0uNTUyLjEtLjA5NC4yMDItLjE3Mi4yODgtLjI0Ny41MS4xMi44NTQuMzUgMS4wODguNTQ1LS4wOC4wODQtLjE2My4xNy0uMjQuMjUzbS0uNDkzLjU5OGMtLjMyNy0uMjgtLjcyNC0uNDgtMS4xNzUtLjU3LjA3LS4wODguMTUtLjE4NS4yMjgtLjI3LjM0My4wNi43ODIuMjQgMS4xNjcuNTU3LS4wOC4wOTYtLjE1Mi4xOS0uMjIuMjgzbS0uNDQ1LjYyNGMtLjM1My0uMjk1LS43NjMtLjQ3NS0xLjE2Ni0uNTUzIDAgMCAuMTIyLS4yMDIuMTkzLS4zMDQuNDkuMDk2Ljg5My4zMjcgMS4xNy41NjQtLjA3LjEtLjEzOC4yLS4xOTguMjkzbTIuMzI4LTIuOTgzcy0uNC4yMDgtLjk1Ni43NTNjLjEyNi4wNzQuMjY4LjE3LjM0OC4yNC0uMDg1LjA3Mi0uMTcuMTU0LS4yNS4yMy0uMzYtLjMtLjczOC0uNDUtMS4wMy0uNTIzLjA5Ny0uMDY3LjItLjEzOC4zMDItLjIuMTU2LjAzNy4zMS4xLjMxLjEuNjI3LS40NzggMS4xNy0uNjg2IDEuMTctLjY4NnMtLjA2Mi0uMDMtLjIzLS4wMjhjLTIuNDcuMDMzLTQuNzQ2IDEuODc2LTQuMzE4IDUuMDM0LjA0OC4zMzQuMTc2Ljk0NC4zNDMgMS4yMS4wNTQtLjUyNi4yNTItMS42ODcuODM4LTIuOTM0LS4yMDUtLjA3My0uMzc1LS4xMDMtLjM3NS0uMTAzLjA2Mi0uMTI3LjE0NS0uMjg2LjE0NS0uMjg2LjQzMy4wODIuODE0LjI2NSAxLjE0Ni41MjUtLjA3OC4xMjctLjEzMy4yMS0uMTcuMjgtLjExOC0uMDk0LS4yMzYtLjE3LS4zNjQtLjI0NC0uNjYgMS4xNS0uOTY1IDIuMjQtMS4wOSAyLjgwOC4wMDguMDM0LjA3OC4wNTMuMTM4LjA0NSAyLjcwNi0uMzUzIDMuOTczLTEuNzMgNC4zNTgtMy4yMy4yNTMtLjk4LjE3Mi0yLjAwNS0uMTY4LTIuODQ0LS4wMjQtLjA1Ny0uMDctLjE1Ni0uMTQ4LS4xNSIvPjwvc3ZnPg=="},7225: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 h=t.length;u>0&&h>u&&(h=u);for(var a=0;a<h;++a){var c,f,l,v,d=t[a].replace(o,"%20"),p=d.indexOf(e);p>=0?(c=d.substr(0,p),f=d.substr(p+1)):(c=d,f=""),l=decodeURIComponent(c),v=decodeURIComponent(f),i(s,l)?Array.isArray(s[l])?s[l].push(v):s[l]=[s[l],v]:s[l]=v}return s}},4066: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)):""}},6254:function(t,i,n){"use strict";i.decode=i.parse=n(7225),i.encode=i.stringify=n(4066)},8575:function(t,i,n){var e=n(4971);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=b,i.resolve=function(t,i){return b(t,!1,!0).resolve(i)},i.resolveObject=function(t,i){return t?b(t,!1,!0).resolveObject(i):i},i.format=function(t){y(t)&&(t=b(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"]),h=["'"].concat(u),a=["%","/","?",";","#"].concat(h),c=["/","?","#"],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},m=n(6254);function b(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 b="//"===r.substr(0,2);!b||o&&d[o]||(r=r.substr(2),this.slashes=!0)}if(!d[o]&&(b||o&&!p[o])){for(var g,w,_=-1,E=0;E<c.length;E++){-1!==(O=r.indexOf(c[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<a.length;E++){var O;-1!==(O=r.indexOf(a[E]))&&(-1===_||O<_)&&(_=O)}-1===_&&(_=r.length),this.host=r.slice(0,_),r=r.slice(_),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var S=this.hostname.split(/\./),T=(E=0,S.length);E<T;E++){var j=S[E];if(j&&!j.match(f)){for(var I="",M=0,N=j.length;M<N;M++)j.charCodeAt(M)>127?I+="x":I+=j[M];if(!I.match(f)){var R=S.slice(0,E),k=S.slice(E+1),L=j.match(l);L&&(R.push(L[1]),k.unshift(L[2])),k.length&&(r="/"+k.join(".")+r),this.hostname=R.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!A){var D=this.hostname.split("."),C=[];for(E=0;E<D.length;++E){var P=D[E];C.push(P.match(/[^A-Za-z0-9_-]/)?"xn--"+e.encode(P):P)}this.hostname=C.join(".")}var x=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+x,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==r[0]&&(r="/"+r))}if(!v[u])for(E=0,T=h.length;E<T;E++){var V=h[E],B=encodeURIComponent(V);B===V&&(B=escape(V)),r=r.split(V).join(B)}var F=r.indexOf("#");-1!==F&&(this.hash=r.substr(F),r=r.slice(0,F));var z=r.indexOf("?");if(-1!==z?(this.search=r.substr(z),this.query=r.substr(z+1),i&&(this.query=m.parse(this.query)),r=r.slice(0,z)):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=m.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(b(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),h=t.host||t.pathname&&"/"===t.pathname.charAt(0),a=h||u||n.host&&t.pathname,c=a,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),a=a&&(""===e[0]||""===f[0])),h)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],m=(n.host||t.host)&&("."===v||".."===v)||""===v,b=0,g=f.length;g>=0;g--)"."==(v=f[g])?f.splice(g,1):".."===v?(f.splice(g,1),b++):b&&(f.splice(g,1),b--);if(!a&&!c)for(;b--;b)f.unshift("..");!a||""===f[0]||f[0]&&"/"===f[0].charAt(0)||f.unshift(""),m&&"/"!==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(a=a||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)}},1875:function(t,i,n){"use strict";var e=n(8908),r=n(7376),s=n(4947),o=n(7529);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 h(t,i,n){return a(i=u(t,i,n))}function a(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=c.response?c.response:c.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}(c),b)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(!a){var i;clearTimeout(f),i=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=y,o=null;return 0!==i?(r={body:e(),statusCode:i,method:v,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(r.headers=s(c.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),n(o,r,r.body)}}var u,a,c=t.xhr||null;c||(c=t.cors||t.useXDR?new h.XDomainRequest:new h.XMLHttpRequest);var f,l=c.url=t.uri||t.url,v=c.method=t.method||"GET",d=t.body||t.data,p=c.headers=t.headers||{},m=!!t.sync,b=!1,y={body:void 0,headers:{},statusCode:0,method:v,url:l,rawRequest:c};if("json"in t&&!1!==t.json&&(b=!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))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(o,0)},c.onload=o,c.onerror=r,c.onprogress=function(){},c.onabort=function(){a=!0},c.ontimeout=r,c.open(v,l,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(f=setTimeout((function(){if(!a){a=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}}),t.timeout)),c.setRequestHeader)for(u in p)p.hasOwnProperty(u)&&c.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&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(d||null),c}t.exports=h,t.exports.default=h,h.XMLHttpRequest=e.XMLHttpRequest||function(){},h.XDomainRequest="withCredentials"in new h.XMLHttpRequest?h.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){h["delete"===t?"del":t]=function(i,n,e){return(n=u(i,n,e)).method=t.toUpperCase(),a(n)}}))},7529: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},5986:function(t){"use strict";t.exports=JSON.parse('{"ERR_TITLE_CANNOT_PLAY_VIDEO":"Cannot Play Video"}')},9068: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"}')},1123: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.56b0cc5624d0b2b06917.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 h=o[u];if(h.getAttribute("src")==t||h.getAttribute("data-webpack")==dataWebpackPrefix+n){r=h;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 a=function(i,n){r.onerror=r.onload=null,clearTimeout(c);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)},c=setTimeout(a.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=a.bind(null,r.onerror),r.onload=a.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.3.157/","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],h=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);h<s.length;h++)r=s[h],__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))}();var __webpack_exports__={};!function(){"use strict";var t,i;var n=__webpack_require__(4558);n.objectAssignPolyfill(),n.objectValuesPolyfill(),n.arrayIncludesPolyfill();var e=__webpack_require__(8173),r=__webpack_require__(6464),s=__webpack_require__(2450),o=__webpack_require__(6450),u=window;["OATH","YAHOO"].forEach((function(t){u[t]=u[t]||{},u[t].VideoPlatform=u[t].VideoPlatform||{},u[t].VideoPlatform.VideoPlayer=s.OathPlayerFactory,u[t].VideoPlatform.Events=Object.assign({},r.API,e.Events),"YAHOO"===t&&(u[t].VideoPlatform.API_Events=u[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},o.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