;OATH = window.OATH || {};OATH.VideoPlatform = OATH.VideoPlatform || {};OATH.VideoPlatform.PlayerHosting = {"app":"omega","bucket":"bt-up-martini-parallel-test-jan-13-copy","colo":"ir2","dbColo":"eu-west-1","env":null,"ver":"8.3.119-pr961.b39167247","config":null,"expiry":1800,"req":{"ypv":null,"path":"/p/oath/js/1/huffingtonpost.com.au","usm":{"bucket":"bt-up-martini-parallel-test-jan-13-copy","config":{"player":"oath","version":"8.3.119-pr961.b39167247","name":"bt-up-martini-parallel-test-jan-13-copy","log":"3.RTg4MTg3NQdidC11cC1tYXJ0aW5pLXBhcmFsbGVsLXRlc3QtamFuLTEzLWNvcHkGX0NIRwMwBF92ZXIDNC4yNQ--","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__={8:function(t){function i(n){return t.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,i(n)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},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.O=function(t){var i="";return i="[",["startTime","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd"].forEach((function(n){i+=t[n]+","})),i=i.slice(0,-1)+"]"},t.prototype.S=function(t,i){if(0==i.length)return"{}";var n="{";return i.forEach((function(i){n+='"'+i+'":"'+t.getResponseHeader(i)+'",'})),n=n.slice(0,-1)+"}"},t.prototype._=function(){var t=this,i=!1;new Promise((function(t,n){var e=setTimeout((function(){i=!0,n(new Error("Work Order Request Timed Out"))}),2e3);fetch("https://edge-mcdn.secure.yahoo.com/dms/exp.json").then((function(n){clearTimeout(e),i||t(n)})).catch((function(t){i||n(t)}))})).then((function(t){return t.json()})).then((function(i){t.A(i)})).catch((function(t){}))},t.prototype.A=function(t){var i=t.expCount,n=t.selection;this.uploadType=t.uploadType;var e=[],r=[];if(0!==i){if(i>=t.expList.length)r=t.expList;else if("random"===n)for(var s=0;s<i;s++){(o=Math.floor(Math.random()*(t.expList.length+1)))===t.expList.length&&(o-=1),r.push(t.expList[o])}else if("ordered"===n){(o=Math.floor(Math.random()*(t.expList.length+1)))===t.expList.length&&(o-=1);for(s=0;s<i;s++)o+s>=t.expList.length&&(o=-1*s),r.push(t.expList[o+s])}else if("individual"===n)for(var o=100*Math.random(),u=0,a=t.expList;u<a.length;u++){var c=a[u];t.runProb<o&&r.push(c)}for(var h=0,f=r;h<f.length;h++)for(c=f[h],s=0;s<c.trials;s++){o=Math.ceil(99999999999999*Math.random()).toString(36);var l=c.target.replace("<RAND>",o),v=new RegExp(c.beaconRegex,"gi").exec(l),d=[],p=[];c.requestHeaders&&(d=c.requestHeaders),c.parseHeaders&&(p=c.parseHeaders),null!==v&&null!==v[1]?e.push([l,v[1],c.timeout,d,p,c.name,c.uploadEndpoints]):e.push([l,c.name,c.timeout,d,p,c.name,c.uploadEndpoints]),this.expCount++}this.M(e)}},t.prototype.M=function(t){for(var i=this,n=function(){this.startTime=0,this.endTime=0,this.source="default"},e=function(t,e,r,s,o,u,a){if(o.length>0||s.length>0){var c,h=new n,f=!1;new Promise((function(i,n){var e=setTimeout((function(){f=!0,n(new Error("Header Request Timed Out"))}),r);(c=new XMLHttpRequest).open("GET",t,!0),c.onload=function(){clearTimeout(e),f||i()},c.onerror=function(){clearTimeout(e),f||i()},s.forEach((function(t){var i=t.split(":");2==i.length&&c.setRequestHeader(i[0],i[1])})),h.startTime=Date.now(),c.send()})).then((function(){if("performance"in window&&"getEntriesByType"in window.performance){h.endTime=Date.now(),h.source="ajax";var n=window.performance.getEntriesByName(t);i.expCount=n.length>1?i.expCount+n.length-1:i.expCount;for(var r=0,s=n;r<s.length;r++){var f=s[r];i.T("0",e,f,i.S(c,o),u,a,h)}}else i.T("6",e,null,i.S(c,o),u,a,h)})).catch((function(t){f?i.T("5",e,null,"",u,a,h):i.T("4",e,null,"",u,a,h)}))}else{var l=!1,v=new n;new Promise((function(i,n){var e=setTimeout((function(){l=!0,n(new Error("Experiment Timed Out"))}),r),s=new Image;s.onload=function(){clearTimeout(e),l||i()},s.onerror=function(){clearTimeout(e),l||i()},v.startTime=Date.now(),s.src=t})).then((function(){if("performance"in window&&"getEntriesByType"in window.performance){v.endTime=Date.now(),v.source="image";var n=window.performance.getEntriesByName(t);i.expCount=n.length>1?i.expCount+n.length-1:i.expCount;for(var r=0,s=n;r<s.length;r++){var o=s[r];i.T("0",e,o,"",u,a,v)}}else i.T("3",e,null,"",u,a,v)})).catch((function(t){l?i.T("2",e,null,"",u,a,v):i.T("1",e,null,"",u,a,v)}))}},r=0,s=t;r<s.length;r++){var o=s[r];e(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}},t.prototype.T=function(t,i,n,e,r,s,o){var u=this;if(0!==s.length){var a=function(t,i){var n=0;new Promise((function(n,e){var r=new Image;r.onload=function(){return n()},r.onerror=function(){return e()},r.src=t[0]+i})).catch((function(e){(n+=1)<t.length&&a(t[n],i)}))},c="{";null!=r&&(c+='"n":"'+r+'",'),c+=null===n?'"m":[],':'"m":'+this.O(n)+",",c+='"r":'+t+",",c+='"s":'+o.startTime+",",c+='"e":'+o.endTime+",",c+='"q":"'+o.source+'",',""!=e&&(c+='"h":'+e+","),c+='"b":"'+i+'"}';var h="",f=[];s.forEach((function(t){h+=t.replace("<BEACON>",i),f.push(t.replace("<BEACON>",i))})),"group"==this.uploadType?(h in this.pending||(this.pending[h]=[]),this.pending[h].push([c,f]),this.complete++,this.complete==this.expCount&&Object.keys(this.pending).forEach((function(t){var i,n="[";u.pending[t].forEach((function(t){n+=t[0]+",",i=t[1]})),n=n.slice(0,-1)+"]",a(i,btoa(n))}))):(c="["+c+"]",a(f,btoa(c)))}},t}();i.default=n},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.N={},this.I=0}return t.prototype.destroy=function(){this.N={}},t.prototype.addEventListener=function(t,i,n){return this.N?this.R(t,i,n):""},t.prototype.addEventListeners=function(t,i,n){var e=this,r={};return this.N&&t.length?(t.forEach((function(t){var s=i.bind(n,t);r[t]=e.R(t,s,n)})),r):r},t.prototype.on=function(t,i,n){return Array.isArray(t)?this.addEventListeners(t,i,n):this.addEventListener(t,i,n)},t.prototype.removeEventListener=function(t,i){this.N&&t in this.N&&Object.prototype.hasOwnProperty.call(this.N[t],i)&&delete this.N[t][i]},t.prototype.removeEventListeners=function(t){if(this.N&&t)for(var i=0,n=Object.keys(t);i<n.length;i++){var e=n[i],r=t[e];e in this.N&&Object.prototype.hasOwnProperty.call(this.N[e],r)&&(delete this.N[e][r],delete t[e])}},t.prototype.once=function(t,i,n){var e=this,r=this.addEventListener(t,(function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];i.apply(n,Array.prototype.slice.call(s,0)),e.removeEventListener(t,r)}),this);return r},t.prototype.publish=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.N&&t in this.N){var e=this.N[t];e&&this.L(e,t,!1,i);var r=this.N["*"];r&&this.L(r,t,!0,i)}},t.prototype.L=function(t,i,e,r){for(var s=0,o=Object.keys(t);s<o.length;s++){var u=t[o[s]];if(u)try{var a=u.listener;a&&(e?a.apply(u.subscriber,n([i],r)):a.apply(u.subscriber,r))}catch(t){}}},t.prototype.R=function(t,i,n){this.N[t]||(this.N[t]={});var e=t+"_"+ ++this.I;return this.N[t][e]={subscriber:n,listener:i},e},t}();i.default=e},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.C=[],n.length=0,n.D=t||Uint8Array,i&&n.set(i)}t.exports=r,r.prototype.destroy=function(){this.C=[],this.length=0},r.prototype.set=function(t){var i=this;i.C.push(t),i.length=i.length+t.length},r.prototype.get=function(t){var i=this;if(e.isNullOrUndefined(t)||t<0||t>i.length)throw new Error("[DataManager] Array position out of bounds");for(var n=0,r=0,s=null,o=0;o<i.C.length;o++){var u=i.C[o];if(t<(n+=u.length)){s=u[t-r];break}r+=u.length}return s},r.prototype.subArray=function(t,i){var n=this;if((e.isNullOrUndefined(i)||i>n.length)&&(i=n.length),e.isNullOrUndefined(t)&&(t=0),t>=i)return new n.D(0);for(var r=i-t,s=new n.D(r),o=0,u=0,a=0,c=0;c<n.C.length;c++){var h=n.C[c];if(a+=h.length,o>0){if(i<=a){s.set(h.subarray(0,r-o),o);break}s.set(h.subarray(0),o),o+=h.length}else{if(t<a&&i<=a){s=h.subarray(t-u,i-u);break}if(t<a){var f=t-u;s.set(h.subarray(f)),o=h.length-f}}u+=h.length}return s}},2999:function(t){"use strict";function i(t){var i=this;i.name=t||"unnamed",i.N={},i.I=0}t.exports=i,i.prototype.addEventListener=function(t,i,n){var e=this;if(e.N){e.N[t]||(e.N[t]={});var r=t+"_"+ ++e.I;return e.N[t][r]={subscriber:n,cb:i},r}},i.prototype.removeEventListener=function(t,i){var n=this;n.N&&t in n.N&&n.N[t].hasOwnProperty(i)&&delete n.N[t][i]},i.prototype.removeEventListeners=function(t){var i=this;i.N&&t&&Object.keys(t).forEach((function(n){var e=t[n];n in i.N&&i.N[n].hasOwnProperty(e)&&(delete i.N[n][e],delete t[n])}))},i.prototype.publish=function(t){var i=this;if(i.N&&t in i.N){var n=i.N[t],e=arguments;Object.keys(n).forEach((function(t){var i=n[t];if(i)try{i.cb&&"function"==typeof i.cb&&i.cb.apply(i.subscriber,Array.prototype.slice.call(e,1))}catch(t){}}))}},i.prototype.destroy=function(){this.N=null}},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}},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.P=t.getWindow()}catch(i){t.P=null}t.U=!1,t.P&&t.P.performance&&"function"==typeof t.P.performance.clearResourceTimings&&"function"==typeof t.P.performance.getEntriesByName&&(t.U=!0,t.P.performance.onresourcetimingbufferfull=t.B.bind(t))}t.exports=n,i.entryTypes=["mark","measure","navigation","frame","resource","server"],n.prototype.getWindow=function(){return window},n.prototype.B=function(){this.U&&this.P.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.U)return null;if(!(r=n?s.P.performance.getEntriesByName(n,e||void 0):s.P.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.U&&t.P&&(t.P.performance.onresourcetimingbufferfull=null),t.P=null,t.U=!1}},729:function(t){"use strict";function i(){var t=this;t.LOCALSTORAGE_PREFIX="com.yahoo.yep",t.V=t.G()}t.exports=i,i.prototype.G=function(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}},i.prototype.writeProperty=function(t,i){this.V&&(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.V){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.H=null,n.Y={},n.X={}}n(2990).inherits(r,e),r.prototype.destroy=function(){var t=this;t.reset(),t.Y={},e.prototype.removeEventListeners.call(t,t.X),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.X.timedOut=n},r.prototype.removeEventListener=function(t,i){if(!i)throw new Error("Invalid Argument: No context");e.removeEventListeners(this.X)},r.prototype.start=function(){var t=this;t.H||t.running||(t.H=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.H&&t.running&&(clearInterval(t.H),t.H=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.J=[],t.J.push(new e.BandwidthRule),t.J.push(new e.BufferRule),t.J.push(new e.ResolutionRule)}r.prototype.destroy=function(){this.J=[]},r.prototype.getNextStreamIndex=function(t,i){if(!e.validateAbrInput(t))return-1;if(i)return(new e.StartupRule).getNextStreamIndex(t);var n=Number.MAX_VALUE;return this.J.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.K(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.K=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.tt(t):t.bufferLength<e?t.currentIndex:t.bitrateList.length-1},r.prototype.tt=function(t){for(var i=this,n=0,e=t.estimatedBandwidthInBps||t.bwHistory,r=i.K(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.K=function(t){var i=this;return t>=i.MIN_BW_FOR_LOW_FACTOR?i.BANDWIDTH_FACTOR_LOW:i.BANDWIDTH_FACTOR_HIGH},s.prototype.getNextStreamIndex=function(t){var n=this;if(!i.validateAbrInput(t))return-1;var e=t.pixelRatio||n.getPixelRatio(t),r=t.displayWidth,s=t.displayHeight;!isNaN(e)&&e>1&&(r*=e,s*=e);for(var o=0,u=0;u<t.streams.length&&!(t.streams[u].width>r||t.streams[u].height>s);u++)o=u;var a=t.streams[o].width,c=t.streams[o].height,h=r<=n.MAX_WIDTH_240P||s<=n.MAX_HEIGHT_240P?n.MAX_BITRATE_240P:n.MAX_BITRATE_LIMIT;if((o=n.nt(t,a,c,h))<t.streams.length-1&&t.bitrateList[o+1]<h){var f=t.streams[o+1].width,l=t.streams[o+1].height,v=t.streams[o].height;Math.abs(l-s)<=Math.abs(v-s)&&(o=n.nt(t,f,l,h))}return o},s.prototype.nt=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.ot=[],i.ut=[],i.averageBandwidth=t||0,i.instantaneousBandwidth=t||0}t.exports=i,i.prototype.destroy=function(){var t=this;t.ot=[],t.ut=[],t.averageBandwidth=0,t.instantaneousTotalBandwidth=0},i.prototype.addSample=function(t){var i=this;if(t&&!(t.time<=0)){i.ht(t);var n=0,e=i.ot.length,r=e*(e+1)/2,s=1/r;i.ot.forEach((function(t,i){n+=(i+1)*s*t.bandwidth})),i.averageBandwidth=i.BW_ADJUSTMENT_FACTOR*n,n=0,e=i.ut.length,s=1/(r=e*(e+1)/2),i.ut.forEach((function(t,i){n+=(i+1)*s*t.bandwidth})),i.instantaneousBandwidth=i.BW_ADJUSTMENT_FACTOR*n}},i.prototype.ht=function(t){var i=this;!t||t.time<=0||(t.bandwidth=t.size/t.time*.008,t.bandwidth=Math.min(60,t.bandwidth),i.ot.push(t),i.ut.push(t),i.ot.length>i.SAMPLE_QUEUE_LENGTH&&i.ot.shift(),i.ut.length>i.INSTANCE_SAMPLE_QUEUE_LENGTH&&i.ut.shift())},i.prototype.replaceSamples=function(t,i){var n=this,e=t&&i?t/i*.008:0;if(e>0){n.averageBandwidth=e,n.ot=[];for(var r=Math.min(Math.ceil(i/n.COLLECTION_INTERVAL),n.SAMPLE_QUEUE_LENGTH),s=0;s<r;s++){var o={bandwidth:e};n.ot.push(o)}}}},7027:function(t,i,n){"use strict";t.exports={Command:n(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=a;var e=n(2701),r=e.CmdEvents,s=e.CmdNames,o=n(1726),u=n(2990);function a(){var t=this;for(var i in t.ft={},t.X={},s)s.hasOwnProperty(i)&&(t.ft[s[i]]={})}a.prototype.destroy=function(){this.removeAllCommands(),this.ft=null},a.prototype.executeCommand=function(t,i,n){i&&(i.controller=this.__controller);var e=this.createCommand(t,i,n);return e&&e.execute(),e},a.prototype.createCommand=function(t,i,n){var e;try{e=o.create(t,i,n)}catch(t){e=null}if(!e)return null;for(var s in e.key=u.guid(),r)if(r.hasOwnProperty(s)){var a=r[s],c="on"+t+a;n[c]&&(this.X[a+t+e.key]=e.addEventListener(a,n[c],n))}return this.ft[t][e.key]=e,e},a.prototype.removeCommand=function(t){var i=this;if(t){var n=i.ft[t.name];if(n[t.key]===t){if(delete n[t.key],t.client)for(var e in r)if(r.hasOwnProperty(e)){var s=r[e],o="on"+t.name+s;t.client[o]&&(t.removeEventListener(s,i.X[s+t.name+t.key]),delete i.X[s+t.name+t.key])}t.destroy()}}},a.prototype.removeRelatedCommands=function(t){var i=this;if(i.ft.hasOwnProperty(t)){var n=i.ft[t];for(var e in n)if(n.hasOwnProperty(e)){var r=n[e];r&&i.removeCommand(r)}}},a.prototype.removeAllCommands=function(){var t=this;for(var i in t.ft)t.ft.hasOwnProperty(i)&&t.removeRelatedCommands(i)},a.prototype.getCommand=function(t){var i=this.ft[t];if(!i)return null;var n=Object.keys(i);return n.length<1?null:i[n[n.length-1]]}},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,a=n(902),c=n(574).AbrModes,h=n(6837),f=n(7572);function l(t,i){var n=this;if(!t||h.isNullOrUndefined(t.streamIndex)||!t.controller)throw new Error("Invalid argument: data argument of the command is not complete");s.call(n,t,i),n.name=o.CMD_ERROR_HANDLE,n.__controller=n.data.controller,n.vt=n.__controller.model,n.ERR_INTERVAL_AFTER_BUFFER_EMPTY=1e4,n.dt=new a(n.ERR_INTERVAL_AFTER_BUFFER_EMPTY,1),n.dt.addEventListener((function(){n.dt.destroy(),n.bt()}),n),n.gt(t.streamIndex),n.yt=-1}e.inherits(l,s),l.prototype.destroy=function(){var t=this;t.dt&&t.dt.destroy(),s.prototype.destroy.call(t)},l.prototype.execute=function(t){var i=this;if(!i.dt.running||-1===i.yt||t===i.yt)if(i.data.error&&i.data.error.code===f.ERR_XHR_LOAD_FORBIDDEN[0])i.bt();else{if(i.vt.getABRMode()===c.AUTO){if(i._t.length){var n=i._t.shift();return i.publish(u.CMD_PROGRESS,i,{index:n}),void(i.yt=n)}if(0!==i.vt.currentLoadingStreamIndex)return i.publish(u.CMD_PROGRESS,i,{index:0}),void(i.yt=0)}i.vt.bufferLength>.15||i.dt.start()}},l.prototype.cancel=function(){},l.prototype.gt=function(t){var i=this;if(i._t=[],!(t<0||t>=i.vt.streams.length)){var n,e=t;for(n=e-1;n>=0;n--)i._t.push(n);for(n=e+1;n<i.vt.streams.length;n++)i._t.push(n)}},l.prototype.bt=function(){this.publish(u.CMD_ERROR,this)}},8158:function(t,i,n){"use strict";t.exports=c;var e=n(2990),r=n(4939).Events,s=n(2701),o=s.Command,u=s.CmdNames,a=s.CmdEvents;function c(t,i){var n=this;if(!t||!t.controller)throw new Error("Invalid argument: data argument of the command is not complete");o.call(n,t,i),n.wt=1,n.Ot=[403],n.name=u.CMD_LICENSE_LOAD,n.Et=t.controller.services.getNewLoader(n.jt())}e.inherits(c,o),c.prototype.destroy=function(){this.Et.destroy(),o.prototype.destroy.call(this)},c.prototype.execute=function(){var t=this,i=t.data.url;t.Et.addEventListener(r.COMPLETE,(function(i){t.publish(a.CMD_COMPLETE,t,i)}),t),t.Et.addEventListener(r.ERROR,(function(i){t.publish(a.CMD_ERROR,t,i)}),t),t.Et.load(i,t.data.challenge)},c.prototype.cancel=function(){},c.prototype.jt=function(){var t=this;return{method:"POST",responseType:"arraybuffer",headerFields:t.data.headerFields,url:t.data.url,maxRetries:t.wt,retryExclusion:t.Ot}}},7745:function(t,i,n){"use strict";t.exports=c;var e=n(2990),r=n(4939).Events,s=n(2701),o=s.Command,u=s.CmdNames,a=s.CmdEvents;function c(t,i){var n=this;if(!t||!t.url||!t.controller)throw new Error("Invalid argument: data argument of the command is not complete");o.call(n,t,i),n.name=u.CMD_MEDIA_LOAD,n.Et=t.controller.services.getNewLoader(t)}e.inherits(c,o),c.prototype.destroy=function(){this.Et.destroy(),o.prototype.destroy.call(this)},c.prototype.execute=function(){var t=this,i=t.data.url;t.Et.addEventListener(r.COMPLETE,(function(i){t.publish(a.CMD_COMPLETE,t,i)}),t),t.Et.addEventListener(r.ERROR,(function(i){t.publish(a.CMD_ERROR,t,i)}),t),t.Et.load(i)},c.prototype.cancel=function(){}},8893:function(t,i,n){"use strict";t.exports=a;var e=n(2990),r=n(2701),s=r.CmdNames,o=r.CmdEvents,u=n(8913);function a(t,i){var n=this;n.St=t.stream,n.At=[],n.Mt=!!t.comboLoad,n.Tt=t.initSegment,n.Nt=t.segment,n.It=t.cached,n.Rt=n.constructor.super_.prototype,n.constructor.super_.call(n,t,i),n.Lt=t.initSegment.url,n.name=s.CMD_MP4_INIT_SEGMENT_LOAD}e.inherits(a,u),a.prototype.destroy=function(){var t=this;t.At=[],t.Rt.destroy.call(t)},a.prototype.Ct=function(t){if(!(t&&t.controller&&t.stream&&t.initSegment&&t.initSegment.url))throw new Error("Invalid argument: data argument of the command is not complete")},a.prototype.kt=function(){var t=this;if(t.At.push(t.Tt),t.Mt){var i=t.St.getMp4Chunk("sidx"),n=t.St.getMp4Chunk("first");i&&t.At.push(i),n&&t.Nt&&t.At.push(n)}},a.prototype.jt=function(){var t=this,i={responseType:"arraybuffer",isChunkedLoad:!0,minChunkSize:1e3,headerFields:{}};t.kt();var n=-1,e=-1;if(t.At.length){var r=t.At[0].range,s=t.At[t.At.length-1].range;r&&s&&(n=r.start,e=s.end)}if(n>=0&&e>=0&&(i.headerFields.Range="bytes="+n+"-"+e,t.Dt=e-n+1),"atlas"===(t.St.cdn||t.Nt&&t.Nt.cdn)){var o=t.St.sessionId||t.Nt&&t.Nt.sessionId;i.headerFields.Accept="*/*; X-PB-SESSION-ID="+o}return i},a.prototype.Pt=function(){var t=this;t.Nt&&t.Rt.Pt.call(t)},a.prototype.xt=function(){var t=this;!t.Mt&&t.It&&t.Tt.loaded?t.Ut():t.Rt.xt.call(t)},a.prototype.Ft=function(t,i){var n=this;t&&(n.Mt?n.Bt(t,i):n.zt(t,i))},a.prototype.Bt=function(t,i){var n=this;if(t){var e=0,r=t.byteLength,s=t;i!==n.Vt&&n.Gt(i);for(var u=null,a=0;a<n.At.length;a++){if(u=n.At[a],!s)return;if(u.loaded||(e+=u.append(s),"first"===u.name&&n.Ht&&n.Ht.append(s),u.loaded&&"first"!==u.name&&n.publish(o.CMD_PROGRESS,n,{chunk:u,stream:n.St,comboLoad:n.Mt})),e>=r)return;if(e>0&&(s=t.subarray(e)),!u.loaded)return}}},a.prototype.zt=function(t,i){var n=this;i!==n.Vt?n.Gt(i):n.Ht.append(t)},a.prototype.Ut=function(){var t=this;if(!t.Mt){var i=t.At[0];i&&(i.loaded=!0,t.publish(o.CMD_PROGRESS,t,{chunk:i,stream:t.St,comboLoad:t.Mt}),t.publish(o.CMD_COMPLETE,t,{stream:t.St,comboLoad:t.Mt}))}t.Rt.Ut.call(t)},a.prototype.Yt=function(){var t=this;t.publish(o.CMD_COMPLETE,t,{stream:t.St,comboLoad:t.Mt})},a.prototype.qt=function(t,i){var n=this;if(t){if(!n.Mt){var e=n.At[0];return e&&!e.loaded&&e.append(t.data),void n.publish(o.CMD_PROGRESS,n,{chunk:e,stream:n.St,comboLoad:n.Mt})}t.stream=n.St,t.chunk={name:"first"},n.Rt.qt.call(n,t,i)}},a.prototype.Wt=function(){return 0},a.prototype.getSegment=function(){return this.Nt}},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),a=n(902),c=n(7650).HLSEvent,h=n(2701),f=h.Command,l=h.CmdNames,v=h.CmdEvents;function d(t,i){var n=this;n.Ct(t),f.call(n,t,i),n.name=l.CMD_SEGMENT_LOAD,n.Nt=t.segment,n.St=t.stream,n.__controller=n.data.controller,n.vt=n.__controller.model,n.Lt=n.Nt?n.Nt.url:t.url,n.Qt=n.Nt?n.Nt.streamIndex:t.stream.index,n.Zt=n.Nt?n.Nt.encryptionData:null,n.$t=!1,n.Xt=new u,n.Vt=0,n.Jt=null;var e=t.controller.services;n.Ot=[403],n.Et=e.getNewLoader(n.jt()),n.Zt&&n.Zt.keyUri&&(n.Kt=e.getNewLoader(n.ti())),n.ii=n.__controller.services.bandwidthEstimator,n.ni=new a(n.ii.COLLECTION_INTERVAL),n.ni.addEventListener(n.ei,n),n.Pt()}e.inherits(d,f),d.prototype.destroy=function(){var t=this;t.cancel(),t.Et.destroy(),t.ni.destroy(),t.Xt.destroy(),t.Kt&&t.Kt.destroy(),t.Ht&&t.Ht.destroy(),f.prototype.destroy.call(t)},d.prototype.Ct=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.ti=function(){var t=this,i={responseType:"arraybuffer",isChunkedLoad:!1,headerFields:{},retryExclusion:t.Ot};return t.vt.metadata.skt&&(i.headerFields.skt=t.vt.metadata.skt),i},d.prototype.jt=function(){var t=this,i={responseType:"arraybuffer",isChunkedLoad:!0,headerFields:{},retryExclusion:t.Ot},n=t.Nt?t.Nt.bitrate*t.Nt.duration/8:0;return t.Nt.brStartOffset>=0&&t.Nt.brEndOffset>=0&&(i.headerFields.Range="bytes="+t.Nt.brStartOffset+"-"+t.Nt.brEndOffset,n=t.Nt.brEndOffset-t.Nt.brStartOffset+1),i.minChunkSize=.025*n,"atlas"===t.Nt.cdn&&(i.headerFields.Accept="*/*; X-PB-SESSION-ID="+t.Nt.sessionId),0===t.Nt.streamIndex&&(i.timeout=1e4),i},d.prototype.Pt=function(){var t=this,i=t.si();i.containerFormat=t.Nt.containerFormat,i.encryptionData=t.Zt;var n=t.__controller.create(s,i);n&&(n.addEventListener(o.DATA_PROCESS_PROGRESS,t.qt,t),n.addEventListener(o.DATA_PROCESS_COMPLETE,t.Yt,t),n.addEventListener(o.DATA_PROCESS_ERROR,t.oi,t),t.Ht=n)},d.prototype.si=function(){var t=this;return{seqNum:t.Nt.seqNum,discontinuity:t.Nt.discontinuity,demux:t.vt.config.demux,width:t.St?t.St.width:640,height:t.St?t.St.height:360,timescale:t.St.timescale?t.St.timescale:t.vt.timescale,duration:t.vt.duration,segDuration:t.Nt.duration?t.Nt.duration:-1,pcr:t.vt.getPCR(),frameRate:t.St?t.St.frameRate:30,mp4State:t.data.state?t.data.state.mp4:null,startOffsetTimestamp:t.vt.startOffsetTimestamp,startTime:t.Nt.startTime,lastChunkEndTs:t.data.state?t.data.state.lastChunkEndTs:null,lastFrameDuration:t.data.state?t.data.state.lastFrameDuration:null,prevSegEndTimeStamps:t.vt.getPrevSegEndTimestamps(t.St,t.Nt),isAltAudioActive:!!t.data.state&&t.data.state.isAltAudioActive,live:t.vt.live,onlyMetadata:t.data.onlyMetadata,useEditBox:!0,userAgent:t.vt.userAgent,dash:t.vt.isDash(),type:t.St.type}},d.prototype.execute=function(){var t=this;t.Vt=0,t.ai=!1,t.$t=!0,t.ci=Date.now(),t.li=0,t.di=0,t.Nt&&(t.Nt.totalDownloadTime=0,t.Nt.timeToFirstByte=0),t.pi=Date.now(),t.ni.start(),t.Zt&&t.Kt&&t.bi(),t.xt()},d.prototype.cancel=function(){this.mi(),this.Et.reset()},d.prototype.mi=function(){var t=this;t.ni.reset(),t.Ht&&t.Ht.close(),t.$t=!1},d.prototype.bi=function(){var t=this;if(t.Zt&&t.Kt){var i=t.St.lastKey,n=t.Zt.keyUri;if(i&&i.keyUri&&i.key&&i.keyUri===n)t.gi(i.key);else{t.Kt.addEventListener(r.COMPLETE,(function(i){t.gi(i)}),t),t.Kt.addEventListener(r.ERROR,(function(i){t.publish(v.CMD_ERROR,t,i)}),t),t.Kt.load(n)}}},d.prototype.xt=function(){var t=this;if(t.Et){var i=t.Lt;t.Et.addEventListener(r.COMPLETE,(function(){t.Ut()}),t),t.Et.addEventListener(r.PROGRESS,(function(i,n){t.Ft(i,n)}),t),t.Et.addEventListener(r.ERROR,(function(i){t.publish(v.CMD_ERROR,t,i)}),t),t.Et.addEventListener(r.BYTES_LOADED,(function(i,n){t.Gt(i,n)}),t),t.Et.load(i)}},d.prototype.Gt=function(t,i){var n=this;n.Nt&&0===n.Nt.timeToFirstByte&&(n.Nt.timeToFirstByte=Date.now()-n.pi,n.__controller.sendEvent(c.SEGMENT_FIRST_BYTE_LOADED,i),n.publish(v.CMD_PROGRESS,n,{position:"firstByte"})),n.li+=Math.max(t-n.Vt,0),n.Vt=t},d.prototype.Ft=function(t,i){var n=this;i!==n.Vt&&n.Gt(i),n.Ht&&n.Ht.append(t)},d.prototype.Ut=function(){var t=this;t.ei(),t.ni.stop();var i=t.Wt();t.Ht&&t.Ht.endOfSegment(),i>0&&t.ii.replaceSamples(t.Vt,i)},d.prototype.gi=function(t){var i=this;t.type="key",t.initVector=i.Zt.initVector,t.seqNum=i.Nt.seqNum,i.Nt.encryptionData.key=t,i.St.lastKey=i.Zt,i.Ht.append(t)},d.prototype.qt=function(t){var i=this;t&&(t.putParam&&(i.Jt&&t.putParam("perfInfo",i.Jt),t.putParam("bytesTotal",i.Vt)),i.publish(v.CMD_PROGRESS,i,t))},d.prototype.Yt=function(t){this.publish(v.CMD_COMPLETE,this,t)},d.prototype.oi=function(){},d.prototype.ei=function(){var t=this,i=Math.max(t.li,0),n=Date.now();t.di=n-t.ci,t.ni.reset(),t.ii&&t.di>10&&(t.ci=n,t.Nt&&(t.Nt.totalDownloadTime+=t.di),t.li=0,t.ii.addSample({size:i,time:t.di})),t.ni.start()},d.prototype.Wt=function(){var t=this,i=t.Xt?t.Xt.getPerformanceTiming(["startTime","requestStart","responseStart","responseEnd","secureConnectionStart","fetchStart","connectStart","domainLookupStart"],t.Lt):null;return t.Jt=i,i&&i.responseEnd&&i.startTime?i.responseEnd-i.startTime:null}},5867:function(t,i,n){"use strict";t.exports=c;var e=n(2990),r=n(4939).Events,s=n(2701),o=s.Command,u=s.CmdNames,a=s.CmdEvents;function c(t,i){var n=this;if(!(t&&t.stream&&t.stream.url&&t.controller))throw new Error("Invalid argument: data argument of the command is not complete");o.call(n,t,i),n.name=u.CMD_STREAM_LOAD,n.Et=t.controller.services.getNewLoader(t.retryOpts,t.stream.url)}e.inherits(c,o),c.prototype.destroy=function(){this.Et.destroy(),o.prototype.destroy.call(this)},c.prototype.execute=function(){var t=this,i=t.data.stream.url;t.Et.addEventListener(r.COMPLETE,(function(n){t.publish(a.CMD_COMPLETE,t,{data:n.data,headers:n.headers,streamUrl:i,stream:t.data.stream})}),t),t.Et.addEventListener(r.ERROR,(function(i){t.publish(a.CMD_ERROR,t,i)}),t),t.Et.load(i)},c.prototype.cancel=function(){}},558:function(t,i,n){"use strict";t.exports=h;var e=n(2990),r=n(4939).Events,s=n(7650).HLSEvent,o=n(2701),u=o.Command,a=o.CmdNames,c=o.CmdEvents;function h(t,i){var n=this;if(!(t&&t.controller&&t.subtitleStream&&t.segment))throw new Error("Invalid Argument: data arg is incomplete");u.call(n,t,i),n.name=a.CMD_SUBTITLE_SEGMENT_LOAD,n.St=t.subtitleStream,n.__controller=t.controller,n.Nt=t.segment||null,n.X={},n.yi()}e.inherits(h,u),h.prototype.destroy=function(){var t=this;t.Et.destroy(),t.__controller.removeEventListeners(t.X),u.prototype.destroy.call(t)},h.prototype.execute=function(){var t=this;t.Nt&&t.Et&&t.Et.load(t.Nt.url)},h.prototype.cancel=function(){},h.prototype.yi=function(){var t=this;t.Et=t.__controller.services.getNewLoader();t.Et.addEventListener(r.COMPLETE,(function(i){t.Ut(i)}),t),t.Et.addEventListener(r.ERROR,(function(i){t.publish(c.CMD_ERROR,t,i)}),t)},h.prototype.Ut=function(t){var i=this;if(i.Nt){i.Nt.data=t.data;var n=i.Nt.pcr();null!=n?i._i():i.__controller.addEventListener(s.PCR_AVAILABLE,i._i,i)}},h.prototype._i=function(){var t=this;t.Nt.parseSegment(),t.publish(c.CMD_COMPLETE,t,{data:t.Nt.toObject(),url:t.Nt.url})}},4309:function(t,i,n){"use strict";t.exports=s;var e=n(3878),r=n(7572);function s(){var t=this;t._node=t.wi.node,t.Oi=t.wi.mediaSource,t.Ei=null,t.ji=[],t.Si=!1,t.vt=t.wi.appModel,t.Ai=t.vt.config.pastBufferLengthLimit}s.prototype.destroy=function(){this.Mi(),this.ji=[]},s.prototype.setSwitchManager=function(t){this.Ei=t},s.prototype.process=function(){var t=this;t.Ti()&&"open"===t.Oi.readyState&&t.Oi.endOfStream()},s.prototype.onError=function(){this.Si=!0},s.prototype.onSeeking=function(t,i){t&&this.Mi(),i&&this.Ni()},s.prototype.Ii=function(t){for(var i=this,n=0;n<i.ji.length;n++)if(t===i.ji[n].type)return i.ji[n];return null},s.prototype.setMinimumBufferTime=function(t){this.ji.forEach((function(i){i.setMinBufferTime(t)}))},s.prototype.createSourceBuffer=function(t,i,n){var s=this;if(!s.Oi||s.Si)return null;var o=s.Ii(t);if(!o)if(s.wi.isMimetypeSupported(i)){o=s.wi.create(e,s.Oi,t,i),s.ji.push(o);var u=s.vt.config.minBufferTime,a=isNaN(n)?s.vt.live?u.live:u.vod:n;s.setMinimumBufferTime(a)}else{var c=new r.Error(r.ERR_MIMETYPE_NOT_SUPPORTED);s.wi.notifyError(c)}return o},s.prototype.Ri=function(){var t=this;if(t.Oi&&!t.Si)for(;t.ji.length>0;){t.ji.shift().destroy()}},s.prototype.Ni=function(){var t=this,i=[];t.Oi&&!t.Si&&"open"===t.Oi.readyState&&(t.ji.forEach((function(t){i.push({type:t.type,mimeType:t.mimeType})})),t.Ri(),i.forEach((function(i){t.createSourceBuffer(i.type,i.mimeType,NaN)})))},s.prototype.Mi=function(){var t=this;t.Oi&&!t.Si&&t.ji.forEach((function(t){t.abort()}))},s.prototype.clear=function(t,i){var n=this;if(n.Oi&&!n.Si)if(t){if(!(t&&t.end-t.start<10)&&i){i.clearBuffer(t.start,t.end,(function(t){}))}}else n.ji.forEach((function(t){t.clearAll()}))},s.prototype.clearSrcBuffer=function(t,i){var n=this.Ii(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.Si&&t.data&&t.data.length&&e.appendBuffer(t.data,t.startTime,t.endTime,t.onlyMetadata,(function(t,e){n.Li(t,e),i(t,e)}))},s.prototype.endOfStream=function(t){this.ji.forEach((function(i){i.setEndOfStream(t)}))},s.prototype.Ti=function(){if(!this.ji.length)return!1;var t=!0;return this.ji.forEach((function(i){t=t&&"closed"===i.state})),t},s.prototype.getPendingBufferLength=function(){var t=0;return this.ji.forEach((function(i){var n=i.getTotalPendingBufferLength();t<n&&(t=n)})),t},s.prototype.getBufferedAndPending=function(){var t={};return this.ji.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.ji.forEach((function(t){t.ready=!1}))},s.prototype.areSrcBuffersReady=function(){for(var t=0;t<this.ji.length;t++)if(!this.ji[t].ready)return!1;return!0},s.prototype.Li=function(t,i){var n=this;i&&(n.clear(n.Ci(i),i),n.clear(n.ki(i),i))},s.prototype.Ci=function(t){var i=this,n=i._node.currentTime,e=null;try{e=t.buffer.buffered}catch(t){e=null}var r=0,s=0,o=i.vt.live?i.Ai.live:i.Ai.vod;return e&&e.length&&(r=e.start(0),s=Math.max(n-o,0)),{start:r,end:s}},s.prototype.ki=function(t){var i=this,n=i._node.currentTime,e=null;try{e=t.buffer.buffered}catch(t){e=null}var r=i.vt.live?i.Ai.live:i.Ai.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=E;var e=n(5557),r=e.MessageIds,s=e.MessageTypes,o=n(2990),u=n(6837),a=n(902),c=n(6769),h=n(2053),f=n(4309),l=n(7650).HLSEvent,v=n(9719),d=n(3789),p=n(729),b=n(2350).SynchTypes,m=n(8630).W,g=n(4998).aU,y=n(4998).sS,_="synchBegin",w="synchMetadataReady",O="synchDone";function E(t){var i=this;i.Di="Controller",i.Pi=o.guid(),i._node=i.wi.node,i.Oi=i.wi.mediaSource,i.vt=i.wi.appModel,i.mediaLoaded=!1,i.xi=!1,i.Ui=null,i.Fi=t?t.sessionId:null,i.Bi=t?t.contentId:null,i.zi=new h(i._node,i.wi.mediaSource,i),i.Vi=i.wi.create(f),i.Gi=i.wi.create(v),i.Hi=new p,i.Yi=new a(250),i.Yi.addEventListener(i.qi,i),i.vt.shouldSynchronizePlayers()&&(i.Wi=new g(i._node,i.Qi()),i.Zi()),i.$i=[];var n={userAgent:i.vt.userAgent,metadata:t,config:i.vt.config};if(n.config.bwHistory=i.Xi(),i.Ji=i.Ki(n),i.Ji){if(i.tn=i.nn(i.Di),i.tn)return n.config.inWorkerScope=!0,i.tn.addEventListener("message",i.rn.bind(i)),void i.sn(r.CREATE,[n]);i.vt.config.useWorker=!1}i.un=new c(n,i.an.bind(i)),i.Ji=!1,i.cn=!1,i.hn=!1,i.ln=null,i.Ui=null,i.vn=O,i.dn=null,i.pn=!1}E.prototype.destroy=function(){var t=this;t.zi.destroy(),t.Vi.destroy(),t.Gi.destroy(),t.$i=[],t.mn&&t.mn.destroy(),t.Yi&&(t.Yi.destroy(),t.Yi=null),t.Wi&&t.Wi.destroy(),t.Ji&&t.tn?(t.sn(r.DESTROY),t.tn.terminate()):t.un.destroy()},E.prototype.Zi=function(){var t=this;Object.values(y).forEach((function(i){t.Wi.on(i,(function(n){(n=n||{}).bufferLength=t.vt.getBufferLength();var e=i===y.SYNCH_STRATEGY_APPLIED;t.un.setIgnoreBuffering(e),t.wi.sendEvent("stream"+i,n)}))}))},E.prototype.Ki=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.gn(e)||!(i.safari||i.edge||i.ie))&&n))},E.prototype.gn=function(t){if(!t)return!1;var i=t.url,n=t.streams&&t.streams.length?this.yn(t.streams[0]):null;return o.isUplynk(i||n)},E.prototype.yn=function(t){if(!t)return null;var i=t.url;return!i&&t.host&&t.path&&(i=t.host+t.path),i},E.prototype.sendVideoEvent=function(t){var i=this;if(t)switch(t.type){case"play":i._n();break;case"playing":i.wn();break;case"pause":i.On();break;case"seeking":i.En(t);break;case"seeked":i.jn(t);break;case"ended":i.Sn();break;case"error":i.An();break;case"timeupdate":i.Mn(t);break;case"resize":i.Tn(t)}},E.prototype.onMediaSourceOpen=function(){var t=this;t.mediaLoaded&&(t.Yi.reset(),t.Yi.start(),t.$i.length&&t.Nn())},E.prototype.play=function(t){var i=this;if(!i.Oi||"closed"!==i.Oi.readyState&&i.mediaLoaded){var n=i.vt.live?i._node.currentTime:i.vt.duration,e=t>0&&t<=n?t:null;e&&i.In(e,b.INIT),i.Rn()}else i.$i.push([i,i.play,[t]])},E.prototype.pause=function(){var t=this;!t.Oi||"closed"!==t.Oi.readyState&&t.mediaLoaded?t._node.pause():t.$i.push([t,t.pause])},E.prototype.preload=function(t){var i=this;!i.Oi||"closed"!==i.Oi.readyState&&i.mediaLoaded?i.Ln("preload",[t]):i.$i.push([i,i.preload,[t]])},E.prototype.setABRMode=function(t){this.Ln("setABRMode",[t])},E.prototype.setSeedStreamIndex=function(t){this.Ln("setSeedStreamIndex",[t])},E.prototype.setAudioLanguage=function(t){this.Ln("setAudioLanguage",[t])},E.prototype.suspendStreaming=function(){this.Ln("suspendStreaming")},E.prototype.resumeStreaming=function(){this.Ln("resumeStreaming")},E.prototype.getSegInfo=function(){var t=this,i={mode:"sync",segInfo:null,bufferLen:null,sessionId:t.Fi};return t.Ji&&t.tn?(i.mode="async",t.sn(r.CALL_METHOD,null,"getSegInfo")):i.segInfo=t.un.getSegInfo(),i.bufferLen=t.vt.getBufferLength(),i},E.prototype.getSyncOffset=function(){return this.Wi?this.Wi.getSyncOffset():NaN},E.prototype.startSync=function(){this.Wi&&this.Wi.startSync()},E.prototype.stopSync=function(){this.Wi&&this.Wi.stopSync()},E.prototype.getSyncState=function(){return this.Wi?this.Wi.getSyncState():-1},E.prototype._n=function(){var t=this;if(t.vt.setDimensions(),!t.Oi||"closed"!==t.Oi.readyState&&t.mediaLoaded){var i=t.Ui;t.ln&&(i=t.ln,t.ln=null),t.cn=!1,t.Ln("onPlay",[i]),t.Gi.onPlay()}else t.$i.push([t,t._n])},E.prototype.wn=function(){this.Ln("onPlaying"),this.Gi.onPlaying()},E.prototype.On=function(){var t=this;t.cn=!0,t.Ln("onPause"),t.Gi.onPause()},E.prototype.En=function(t){var i=this,n=t.target.currentTime,e=!i.vt.live,r=!1,s=i.vt.userAgent;s&&s.safariDesktop&&(r=!i.vt.live||i.pn),i.Vi.onSeeking(e,r),i.pn=!1,i.Ln("onSeeking",[n])},E.prototype.jn=function(t){var i=t.target.currentTime;this.Ln("onSeeked",[i])},E.prototype.Sn=function(){this.Yi.stop(),this.Ln("onComplete")},E.prototype.An=function(){var t=this,i=t._node.error?t._node.error.code:null;t.Ln("onError",[i]),t.Vi.onError()},E.prototype.Tn=function(){this.vt.setDimensions()},E.prototype.Mn=function(){this.Cn("onTimeUpdate")},E.prototype.qi=function(){this.mediaLoaded&&this.Cn("onUpdate")},E.prototype.Cn=function(t){var i=this;i.Vi.process();var n={currentTime:i._node.currentTime,bufferedAndPending:i.Vi.getBufferedAndPending(),bufferLength:i.vt.getBufferLength(),pendingBufferLength:i.Vi.getPendingBufferLength(),bufferedRanges:i.vt.getBufferedDto(),dimensions:i.vt.getDimensions(),pixelRatio:i.vt.getPixelRatio(),frameStats:i.Gi.getFpsStats()};i.Ln(t,[n])},E.prototype.Dn=function(){var t=this;t.mediaLoaded=!0,t.Oi&&"closed"===t.Oi.readyState||(t.Yi.start(),t.$i.length&&t.Nn())},E.prototype.In=function(t,i){var n=this;n.Ui=t,n.vn=_,n.dn=i,n.vt.live&&(n.Vi.resetReadyState(),n.Vi.clear())},E.prototype.Pn=function(t){var i=this;i.Ui=null,i.vn=O,i.dn=null,i.vt.live&&i.Ln("onSynchComplete",[t])},E.prototype.Nn=function(){var t=this.$i;this.$i=[],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)}))},E.prototype.Ln=function(t,i){var n=this;n.Ji&&n.tn?n.sn(r.CALL_METHOD,i,t):n.un[t].apply(n.un,i)},E.prototype.nn=function(){return null},E.prototype.rn=function(t){var i=this;if(t){var n=t.data?new d(t.data):t;if(n&&n.instanceId===i.Pi){var e=n.getParam("media");if(e&&(i.vt.update(e),i.Wi&&i.xn(e)),n.type!==s.EVENT)switch(n.id){case r.CREATE_SRC_BUFFER:i.Un(n.getParam("tracks"));break;case r.APPEND_SRC_BUFFER:i.Fn(n.getParam("tracks"));break;case r.SAVE_AVG_BANDWIDTH:i.Bn(n.getParam("avgBwInfo"));break;case r.END_OF_STREAM:n.args&&n.args.length&&(i.Vi.endOfStream(n.getParam("endOfStream")),i.wi.sendEvent(l.CONTENT_LOAD_FINISHED,n.args[0]));break;case r.PAUSE_BEFORE_STREAM_CHANGE:i.zn(n.getParam("streamType"));break;case r.PLAY_AFTER_STREAM_CHANGE:i.Vn();break;case r.DRM_INIT:i.mn||(i.mn=new m(i.un,i._node,i.wi));for(var o=0;o<i.vt.drmInfo.length;o++)i.mn.addDrmItem(i.vt.drmInfo[o]);break;case r.DRM_LICENSE_INFO:i.mn&&i.mn.addDrmItem(n.getParam("drmItem"));break;case r.SKIP_GAP:i._node.currentTime=n.getParam("seekPosition")}else i.Gn(n.id,n.getParam("eventData"))}}},E.prototype.an=function(t){t.instanceId=this.Pi,this.rn(t)},E.prototype.xn=function(t){var i=this;if(i.Wi){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.Wi.addSegmentInfo({startTime:t.startTime,endTime:t.startTime+t.duration,pdt:t.programDateTime,seqNum:e})})),i.Wi.updateDateRanges(n.dateRanges)}},E.prototype.Gn=function(t,i){var n=this;if(t){switch(t){case l.MEDIA_LOADED:n.Dn();break;case l.WAITING:var e=i?i.minBufferTime:.1;n.Vi.setMinimumBufferTime(e),n.Gi.updateBufferingInfo(i);break;case l.LIVE_SYNCH:var r=i?i.synchPosition:null,s=i?i.synchType:b.INIT;n.In(r,s);break;case l.SEG_INFO_METRICS_AVAILABLE:i={segInfo:i,bufferLen:n.vt.getBufferLength(),sessionId:n.Fi};break;case l.VTT_SEGMENT_LOADED:i&&(i.sessionId=n.Fi);break;case l.MEDIA_METADATA_LOADED:i=n.vt.streams;break;case l.ERROR:return i.error=new Error(i.message,i.code),void n.wi.notifyError(i)}n.wi.sendEvent(t,i)}},E.prototype.Un=function(t){var i=this;t&&(!i.Oi||"closed"!==i.Oi.readyState&&i.mediaLoaded?(i.Hn(),t.forEach((function(t){i.Vi.createSourceBuffer(t.type,t.mimeType,t.minBufferTime)}))):i.$i.push([i,i.Un,[t]]))},E.prototype.Hn=function(){var t=this;t.Oi&&!t.Oi.duration&&t.vt.duration>0&&(t.Oi.duration=t.vt.duration)},E.prototype.Fn=function(t){var i=this;t&&(t.forEach((function(t){i.Vi.appendBuffer(t,(function(t,n){i.Li(t,n)}))})),i.vt.preloading&&!i.xi&&(i.wi.sendEvent(l.PRELOAD_PROGRESS),i.xi=!0))},E.prototype.Li=function(){var t=this;if(!t.vt.live&&t.vn===_){if(!t.Vi.areSrcBuffersReady())return;return t.Vi.onSeeking(!0),t.vn=w,void t.Ln("onSynchMetadataReady",[t.Ui])}if(t.Ui&&t.Vi.areSrcBuffersReady()){var i=t.Yn(t._node),n=t._node.buffered;if(i.length&&n.length){var e=i.start(i.length-1),r=i.end(i.length-1),s=t.vt.TIMESTAMP_COMPARE_EPSILON;if(t.Ui+s>=e&&t.Ui<=r){for(var o=t.Ui,u=0;u<n.length;u++)if(!(o>n.end(u))&&o<n.start(u)){o=n.start(u);break}var a=t.vt.userAgent;t.pn=a&&a.safariDesktop&&t.vt.live&&t.dn===b.TIME_GAP;try{t._node.currentTime=o}catch(t){}t.Pn(o)}}}},E.prototype.sn=function(t,i,n){var e=this;if(e.tn&&t){var r={type:s.MESSAGE,id:t,moduleName:e.Di,instanceId:e.Pi,funcName:n,args:i,timestamp:Date.now()};e.tn.postMessage(r)}},E.prototype.Xi=function(){var t=this.Hi.readProperty("avgBW"),i=t?t.avgBWtimestamp:null;if((i?Date.now()-parseInt(i):Number.MAX_VALUE)<1e3*this.vt.config.bwHistoryMaxAge&&t){var n=t.avgBW;return n?parseInt(n):0}return 0},E.prototype.Bn=function(t){t&&this.Hi&&this.Hi.writeProperty("avgBW",t)},E.prototype.Vn=function(){var t=this;t.hn&&(t.Rn(),t.hn=!1,t.wi.sendEvent(l.WAITING,{value:!1,bufferInit:!1}))},E.prototype.zn=function(t){var i=this,n=i._node.currentTime,e=i.vt.live;e&&"audio"===t?i.Vi.clearSrcBuffer(t):i.Vi.clear(),i.cn||(i.wi.sendEvent(l.WAITING,{value:!0,bufferInit:!1}),i._node.pause(),i.hn=!0),e?i.ln=n:i._node.currentTime=n},E.prototype.Rn=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.wi.sendEvent(l.PLAY_BLOCKED)})),i}},E.prototype.getCurrentDate=function(){return this.vt.getCurrentDate()},E.prototype.Yn=function(t){var i=this.vt.userAgent;return this.vt.live&&i.edge&&i.edge>=17&&i.edge<18?t.buffered:t.seekable},E.prototype.Qi=function(){var t=this.vt.config.streamSync,i={};if(!(t&&t.enabled))return null;void 0!==t.pauseOnAhead&&(i.pauseOnAhead=t.pauseOnAhead),void 0!==t.syncPoint&&(i.syncPoint=t.syncPoint),void 0!==t.syncThreshold&&(i.syncThreshold=t.syncThreshold),void 0!==t.variableRateChange&&(i.variableRateChange=t.variableRateChange)},E.prototype.clearBuffer=function(){this.Vi.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.wi.node,e.qn=!1,e.type=i,e.mimeType=n,e.Oi=t,e.buffer=t.addSourceBuffer(n),e.Wn=[],e.Qn=[],e.Zn=[],e.$n=!1,e.Xn=.1,e.ready=!1,e.TIMESTAMP_COMPARE_EPSILON=.065,e.GOP_LENGTH=2,e.Jn=e.Kn.bind(e),e.buffer.addEventListener("updateend",e.Jn),e.ne=function(){e.abort()},e.buffer.addEventListener("error",e.ne),e.state="open"}e.prototype.destroy=function(){var t=this;t.remove(),t.Wn=[],t.Qn=[],t.Zn=[],t.state="closed"},e.prototype.remove=function(){var t=this;t.qn||(t.qn=!0,t.abort(),t.buffer.removeEventListener("updateend",t.Jn),t.buffer.removeEventListener("error",t.ne),"closed"!==t.Oi.readyState&&t.Oi.removeSourceBuffer(t.buffer))},e.prototype.setMinBufferTime=function(t){this.Xn=Math.max(.1,t)},e.prototype.appendBuffer=function(t,n,e,r,s){var o=this;if(!o.qn){var u={type:i,cb:s,buffer:t,startTime:n,endTime:e,time:e-n,onlyMetadata:r||!1};o.Wn.push(u),o.ee()}},e.prototype.clearBuffer=function(t,i,e){var r=this;if(r.qn||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.Qn.push(s),r.ee()},e.prototype.abort=function(){var t=this;if("open"===t.Oi.readyState&&!t.qn){t.Wn=[],t.Qn=[],t.Zn=[];try{t.buffer.abort()}catch(t){}}},e.prototype.clearAll=function(){var t=this;if("closed"!==t.Oi.readyState&&!t.qn){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.$n=t,i.qn||(t?(i.re(),i.ee()):i.state=i.Wn.length?i.state:"empty")},e.prototype.re=function(){var t=this;t.$n&&"empty"===t.state&&!t.Zn.length&&(t.state="closed")},e.prototype.Kn=function(){var t=this;if(!t.qn){if(t.ready=!0,t.Zn.length)t.Zn.shift().cb(null,t);t.Wn.length||(t.state="empty"),t.ee(),t.re()}},e.prototype.ee=function(){for(var t=this;t.Qn.length;){if(t.buffer.updating)return;t.se(t.Qn.shift())}for(;t.Wn.length;){if(t.buffer.updating)return;var i=t.getBufferLength()+t.getTotalPendingBufferLength(),n=t.Wn.length&&t.Wn[0]&&t.Wn[0].onlyMetadata;if(!t.$n&&i<t.Xn&&!n)return;t.se(t.Wn.shift())}},e.prototype.se=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.Zn.push(t),e.state="updating"}catch(n){if("QuotaExceededError"===n.name)e.oe()&&t.type===i&&e.Wn.unshift(t)}},e.prototype.oe=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.Wn.forEach((function(i){i&&i.time&&(t+=i.time)})),t},e.prototype.getBufferLength=function(){var t,i=this,n=i.wi.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.ue=n,e.Oi=i,e.ae())}t.exports=i,i.prototype.destroy=function(){this.ce()},i.prototype.ae=function(){var t=this;t.zi=t.fe.bind(t),t.le=["play","playing","pause","seeking","seeked","ended","error","timeupdate"],t.le.forEach((function(i){t._node.addEventListener(i,t.zi)})),t.ve=t.pe.bind(t),t.Oi.addEventListener("sourceopen",t.ve),window.addEventListener("resize",t.zi)},i.prototype.ce=function(){var t=this;t.le.forEach((function(i){t._node.removeEventListener(i,t.zi)})),t.Oi.removeEventListener("sourceopen",t.ve),window.removeEventListener("resize",t.zi)},i.prototype.fe=function(t){this.ue.sendVideoEvent(t)},i.prototype.pe=function(t){this.ue.onMediaSourceOpen(t)}},9112:function(t,i,n){"use strict";t.exports.AacStreamer=a,t.exports.AacLiveStreamer=c;var e=n(2990),r=n(2350).Streamer,s=n(7980),o=n(5557),u=n(6837);function a(t,i){this.be(t,i)}function c(t,i){this.be(t,i)}e.inherits(a,r),e.inherits(c,s),c.prototype.be=a.prototype.be=function(t,i){var n=this;n.constructor.super_.call(n,t,i),n.Rt=n.constructor.super_.prototype,n.processOnlyMetadata=!1,n.lastAudioTimestamp=NaN,n.lastAudioFrameDuration=NaN,n.primary=!1,n.me="mp4a.40.2",n.ge="audio",n.ye();var e=[{type:n.ge,mimeType:n.ge+'/mp4; codecs="'+n.me+'"',minBufferTime:n.__controller.getMinimumBufferTime()}];n.__controller.sendMessage(o.MessageIds.CREATE_SRC_BUFFER,[e],["tracks"]),n._e=n.STATES.INITIALIZED},c.prototype.destroy=a.prototype.destroy=function(){this.Rt.destroy.call(this)},c.prototype.onSeeking=a.prototype.onSeeking=function(t){var i=this;i.lastAudioTimestamp=NaN,i.Rt.onSeeking.call(i,t)},c.prototype.onSwitchBegin=a.prototype.onSwitchBegin=function(){var t=this;t.ye(),t.Rt.onSwitchBegin.call(t)},c.prototype.onManualStreamChange=a.prototype.onManualStreamChange=function(){var t=this;t.ye(),t.lastAudioTimestamp=NaN,t.Rt.onManualStreamChange.call(t)},c.prototype.we=a.prototype.we=function(){this.ye()},c.prototype.Oe=a.prototype.Oe=function(t){var i=this;if(!i.isActive())return null;var n=i.Ee;return{segment:n.getSegmentfromSeqNum(t),stream:n,state:{mp4:i.je,lastChunkEndTs:{audio:i.lastAudioTimestamp,video:NaN},lastFrameDuration:{audio:i.lastAudioFrameDuration,video:NaN}},onlyMetadata:i.processOnlyMetadata}},c.prototype.onSegmentLoadProgress=a.prototype.onSegmentLoadProgress=function(t,i,n){var e=this;if(i){var r=i.getParam?i.getParam("parsedInfo"):null;r&&(r.lastChunkEndTs&&u.isNumber(r.lastChunkEndTs.audio)&&(e.lastAudioTimestamp=r.lastChunkEndTs.audio),r.lastFrameDuration&&u.isNumber(r.lastFrameDuration.audio)&&(e.lastAudioFrameDuration=r.lastFrameDuration.audio)),e.Rt.onSegmentLoadProgress.call(e,t,i,n)}},c.prototype.ye=a.prototype.ye=function(){this.je={video:{shouldInit:!0,seqNum:0},audio:{shouldInit:!0,seqNum:0}}},c.prototype.Se=a.prototype.Se=function(t,i){},c.prototype.Ae=function(t){var i=this;i.lastAudioTimestamp=NaN,i.isActive()&&i.Rt.Ae.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.vt=t.__controller.model,t.Me=!1,t.Si=!1,t.Te=NaN,t.Ne=NaN,t.Ie={},t.cn=!0,t.Re=-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.Le=!0,t.Ce=!1,t.ke()}s.prototype.onPlayRequested=function(){this.De()},s.prototype.destroy=function(){},s.prototype.checkBuffering=function(t){var i=this,n=i.vt.bufferLength,e=i.vt.currentTime,r=i.vt.duration;if(!(isFinite(r)&&e+.05>r)){var s=i.Pe();!t&&s<i.MIN_TIME_TO_BUFFER_CHECK||(!(n<=.02||i.xe===e&&n<i.MIN_BUFFER_TO_PLAY)||i.cn||i.vt.preloading||i.Me?!isNaN(i.Te)&&e>i.Te+this.BUFFER_REPORT_THRESHOLD/1e3?i.Ue():!i.cn&&i.xe===e&&i.vt.getTotalBufferLength()>i.MIN_BUFFER_TO_PLAY&&i.Fe():i.De(),i.xe=e,i.Be=Date.now())}},s.prototype.onPlaying=function(){this.cn=!1},s.prototype.onPause=function(){var t=this;t.cn=!0,t.Me&&(t.Ie.bufferInit=!0,t.Ue())},s.prototype.suspendStreaming=function(){this.Be=null},s.prototype.onSeeking=function(){this.Ce=!0},s.prototype.onSeeked=function(){this.Ce=!1},s.prototype.onTimeUpdate=function(){this.Me&&this.checkBuffering(!0)},s.prototype.onVideoSync=function(t){this.xe=t},s.prototype.onError=function(){this.Me&&this.Ue()},s.prototype.onComplete=function(){var t=this;t.Me&&t.Ue(),t.ke()},s.prototype.setIgnoreBuffering=function(t){this.Le=t},s.prototype.Fe=function(){var t=this;if(!(t.vt.bufferedRanges.length<2)){var i=t.vt.TIMESTAMP_COMPARE_EPSILON,n=t.vt.currentTime;t.vt.userAgent&&t.vt.userAgent.chrome&&(n-=3);for(var s=t.vt.bufferedRanges.ranges,o=0;o<s.length-1;o++){var u=s[o],a=s[o+1];if(a.start-u.end>t.vt.config.skipGapLimit)t.vt.currentTime!==t.Ne&&(t.__controller.sendEvent(e.BUFFER_GAP_DETECTED,a.start-u.end),t.Ne=t.vt.currentTime);else{var c=u.end-i-(t.vt.userAgent.chrome?t.CHROME_BUFFER_GAP_EPSILON:0),h=a.start;n>c&&n<h&&t.__controller.sendMessage(r.MessageIds.SKIP_GAP,[a.start],["seekPosition"])}}}},s.prototype.De=function(){var t=this;if(!t.Me){t.Me=!0;var i=t.getMinimumBufferTime();t.ze(),t.Te=t.vt.currentTime,t.Ce&&(t.Le=!0),t.Ie={value:t.Me,bufferInit:t.Le,minBufferTime:i},t.__controller.sendEvent(e.WAITING,t.Ie)}},s.prototype.Ue=function(){var t=this;t.Me&&(t.Me=!1,t.Te=NaN,t.Ie={value:!1,waitTime:t.Ve(),bufferInit:t.Le,minBufferTime:.1},t.__controller.sendEvent(e.WAITING,t.Ie),t.Ie={},t.Le=!1)},s.prototype.getMinimumBufferTime=function(){var t=this,i=t.__controller.services.bandwidthEstimator.instantaneousBandwidth,n=t.vt.getCurrentLoadingStream(),e=n?n.bitrate/1e6:0,r=t.vt.config.minBufferTime;return r=t.vt.live?r.live:r.vod,t.vt.config.variableMinBuffer&&e&&!isNaN(i)?t.Ge(i/e,r):r},s.prototype.Ge=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.Pe=function(){var t=this,i=Date.now();return t.Be=t.Be||i,i-t.Be},s.prototype.ze=function(){var t=this,i=t.Pe(),n=t.He();t.Ye=Date.now()-Math.max(i-n,0)},s.prototype.Ve=function(){var t=this,i=t.He(),n=Math.max(Date.now()-t.Ye-i,0);return t.Ie.bufferInit||n<t.BUFFER_REPORT_THRESHOLD?0:n},s.prototype.He=function(){var t=this,i=0;return t.xe&&(i=1e3*(t.vt.currentTime-t.xe).toFixed(3)),i},s.prototype.ke=function(){this.Be=null,this.xe=null},s.prototype.isBuffering=function(){return this.Me}},6769:function(t,i,n){"use strict";t.exports=w;var e=n(7650).HLSEvent,r=n(7572),s=n(6972),o=s.StreamingController,u=s.Events,a=n(39),c=n(574).MetadataTypes,h=n(2701).CmdNames,f=n(258),l=n(902),v=n(867),d=n(2999),p=n(2990),b=n(574).Model,m=n(5212),g=n(5557),y=n(3789),_=n(9451).userAgent;function w(t,i){var n=this;d.call(n,n.constructor.name),n.qe=t,n.We=i,n.model=n.create(b,t),n.services=n.create(m),n.Qe=n.services.metadataParser,n.Ze=n.create(f),n.$e=n.create(o),n.Xe=n.create(a),n._e=v.INITIAL,n.X={},n.Je=n.qe.config.inWorkerScope,n.ae(),n.Ce=!1,n.Ke=!1,n.ir=new l(250),n.ir.addEventListener(n.nr,n),n.initialize()}p.inherits(w,d),w.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},w.prototype.destroy=function(){var t=this;t.$e&&(t.$e.destroy(),t.$e=null),t.Xe&&(t.Xe.destroy(),t.Xe=null),t.Ze&&(t.Ze.destroy(),t.Ze=null),t.services&&(t.services.destroy(),t.services=null),t.ir&&(t.ir.destroy(),t.ir=null),t._e=v.INITIAL,t.removeEventListeners(t.X),d.prototype.destroy.call(t)},w.prototype.initialize=function(){this.er()},w.prototype.getSegInfo=function(){var t=this;if(!t.$e)return null;var i=t.$e.getMetrics();return t.Je&&t.sendEvent(e.SEG_INFO_METRICS_AVAILABLE,i),i},w.prototype.sendEvent=function(t,i){var n=this;n.publish(t,i);var e=n.create(y,{type:g.MessageTypes.EVENT,id:t,args:[i],argNames:["eventData"]});n.rr(e)},w.prototype.sendMessage=function(t,i,n,e){var r=this.create(y,{type:g.MessageTypes.MESSAGE,id:t,args:i,argNames:n});this.rr(r,e)},w.prototype.notifyError=function(t){var i=this;i.error=t;var n=i._e;n!==v.ERROR&&i.sr(v.ERROR),n!==v.PAUSED&&i.sendEvent(e.ERROR,"HlsError"===i.error.constructor.name?i.error.dto():i.error)},w.prototype.rr=function(t,i){t&&this.We&&(t.addMedia(),this.We(t,i))},w.prototype.ae=function(){var t=this;t.$e.addEventListener(u.STREAM_METADATA_LOADED,t.cr,t),t.$e.addEventListener(u.STREAM_METADATA_LOAD_ERROR,t.lr,t),t.$e.addEventListener(u.PRELOAD_COMPLETE,t.vr,t),t.$e.addEventListener(u.SEG_LOAD_PROGRESS,t.dr,t)},w.prototype.pr=function(t){},w.prototype.sr=function(t,i){var n=this;n.pr(t),n._e=t,n.sendEvent(e.STATE_CHANGED,t),n.br(i)},w.prototype.getState=function(){return this._e},w.prototype.br=function(t){var i=this;switch(i._e){case v.MEDIA_METADATA_LOADING:i.gr();break;case v.MEDIA_METADATA_LOADED:if(i.sendEvent(e.MEDIA_METADATA_LOADED),i.model.isDash()){i.sendMessage(g.MessageIds.DRM_INIT),i.sr(v.MEDIA_LOADED);break}i.sr(v.STREAM_METADATA_LOADING);break;case v.STREAM_METADATA_LOADING:i.$e.loadStream(i.model.getCurrentLoadingStream());break;case v.STREAM_METADATA_LOADED:i.sr(v.MEDIA_LOADED);break;case v.MEDIA_LOADED:if(_.android&&_.chrome&&i.model.drmInfo&&i.model.drmInfo.length)return;i.yr();break;case v.PRELOADING:i.$e.onPreloadBegin(),i.sendEvent(e.PRELOAD_START),i.ir.start();break;case v.PLAY_REQUESTED:i.ir.start(),i.$e.onPlay(t),i.Ke||(i.Xe.onPlayRequested(),i.Ke=!0);break;case v.PLAYING:i.$e.onPlaying();break;case v.PLAY_COMPLETE:i.ir.stop(),i.$e.onComplete(),i.Xe.onComplete();break;case v.ERROR:i.ir.stop(),i.$e.onError(),i.Ze.removeAllCommands(),i.Xe.onError()}},w.prototype.er=function(){var t=this,i=t.model.metadata;if(t._e===v.INITIAL)return i.type===c.STRUCTURED?(t.model.build(t.Qe.parse(i)),void(i.hasStreamMetadata?i.hasSubtitleMetadata?t.$e.loadAllSubtitleStreams():t.sr(v.MEDIA_LOADED):i.hasMediaMetadata&&t.sr(v.MEDIA_METADATA_LOADED))):void t.sr(v.MEDIA_METADATA_LOADING)},w.prototype.nr=function(){var t=this;t._e<v.MEDIA_LOADED||(t.Xe.checkBuffering(),t.$e.process())},w.prototype.onPlay=function(t){var i=this;i._e===v.ERROR&&i.error&&i.notifyError(i.error),i._e<v.MEDIA_LOADED||(i._e===v.PRELOADING&&(i.$e.onPreloadEnd(),this.sendEvent(e.PRELOAD_COMPLETE)),i.sr(v.PLAY_REQUESTED,t))},w.prototype.onPlaying=function(){var t=this;t._e<v.MEDIA_LOADED||(t.sr(v.PLAYING),t.Xe.onPlaying())},w.prototype.onPause=function(){var t=this;t._e<v.MEDIA_LOADED||(t.$e.onPause(),t.Xe.onPause(),t.sr(v.PAUSED))},w.prototype.onSeeking=function(t){var i=this;i._e<v.MEDIA_LOADED||(i.Ce=!0,i.$e.onSeeking(t),i.Xe.onSeeking())},w.prototype.onSeeked=function(t){var i=this;i._e<v.MEDIA_LOADED||(i.Ce=!1,i.$e.onSeeked(t),i.Xe.onSeeked())},w.prototype.onComplete=function(){this._e<v.MEDIA_LOADED||this.sr(v.PLAY_COMPLETE)},w.prototype.onError=function(t){this.sr(v.ERROR)},w.prototype.onTimeUpdate=function(t){var i=this;i._r(t),i.Xe.onTimeUpdate(),i.$e.onTimeUpdate(i.model.currentTime)},w.prototype.onUpdate=function(t){this._r(t),this.Xe.onTimeUpdate()},w.prototype.onSynchComplete=function(t){this.$e.onSynchComplete(),this.Xe.onVideoSync(t)},w.prototype.onSynchMetadataReady=function(t){this.$e.onSynchMetadataReady(t)},w.prototype._r=function(t){var i=this;t&&(i.model.currentTime=t.currentTime,i.model.bufferedAndPending=t.bufferedAndPending,i.model.bufferLength=t.bufferLength,i.model.pendingBufferLength=t.pendingBufferLength,i.model.bufferedRanges=t.bufferedRanges,i.model.dimensions=t.dimensions,i.model.pixelRatio=t.pixelRatio,i.services.segmentMetrics.updateFrameStats(t.frameStats))},w.prototype.gr=function(){var t=this,i=t.model.getMediaUrl(),n=i&&-1!==i.indexOf(".mpd"),e={url:i,withResponseHeaders:n};t.Ze.executeCommand(h.CMD_MEDIA_LOAD,e,t)},w.prototype.onMediaLoadComplete=function(t,i){var n=this;if(t)if(i){var e={rawData:i.data,headers:i.headers,type:c.RAW,url:t.data?t.data.url:"",cdn:n.model.getMediaCdn()};n.model.build(n.Qe.parse(e)),n.Ze.removeCommand(t),n.sr(v.MEDIA_METADATA_LOADED)}else n.Ze.removeCommand(t)},w.prototype.onMediaLoadError=function(t,i){var n=this;t&&n.Ze.removeCommand(t),i&&1===i.code&&(n.sr(v.ERROR),n.notifyError(new r.Error(r.ERR_PLAYLIST_LOAD)))},w.prototype.cr=function(){this._e<v.MEDIA_LOADED&&this.sr(v.STREAM_METADATA_LOADED)},w.prototype.lr=function(){this.sr(v.ERROR),this.notifyError(new r.Error(r.ERR_PLAYLIST_LOAD))},w.prototype.vr=function(){var t=this;t._e===v.PRELOADING&&(t.sr(v.MEDIA_LOADED),t.sendEvent(e.PRELOAD_COMPLETE)),t.ir.reset()},w.prototype.dr=function(){this.Xe.isBuffering()&&this.sendEvent(e.BUFFER_GROWTH_DETECTED)},w.prototype.wr=function(t){for(var i=Object.keys(v),n=0;n<i.length;n++)if(t===v[i[n]])return i[n]},w.prototype.preload=function(t){var i=this;t&&(i.model.config.preloadBufferLimit=t,i.model.bufferLength+i.model.pendingBufferLength<t&&i._e===v.MEDIA_LOADED&&i.sr(v.PRELOADING))},w.prototype.setABRMode=function(t){this._e<v.MEDIA_LOADED||this.$e.setABRMode(t)},w.prototype.setSeedStreamIndex=function(t){this.$e.setSeedStreamIndex(t)},w.prototype.setAudioLanguage=function(t){this._e<v.MEDIA_LOADED||this.$e.setAudioLanguage(t)},w.prototype.setIgnoreBuffering=function(t){this.Xe.setIgnoreBuffering(t)},w.prototype.getMinimumBufferTime=function(){return this.Xe.getMinimumBufferTime()},w.prototype.suspendStreaming=function(){var t=this;t.ir.stop(),t.$e.suspendStreaming(),t.Xe.suspendStreaming()},w.prototype.resumeStreaming=function(){var t=this;t._e!==v.PRELOADING&&t._e!==v.PLAY_REQUESTED&&t._e!==v.PLAYING&&t._e!==v.PAUSED||(t.$e.resumeStreaming(),t.ir.start())},w.prototype.yr=function(){var t=this;t.$e.isInitialized()||(t.$e.init(),t.sendEvent(e.MEDIA_LOADED),!t.model.live&&t.model.bufferLength+t.model.pendingBufferLength<t.model.config.preloadBufferLimit&&t.sr(v.PRELOADING))},w.prototype.onGenerateRequestComplete=function(){this.yr()}},5902:function(t,i,n){"use strict";t.exports.Fmp4Streamer=f,t.exports.Fmp4LiveStreamer=l;var e=n(2990),r=n(7980),s=n(2350).Streamer,o=n(2701).CmdNames,u=n(2503).StreamTypes,a=n(5557),c=n(574).StreamingMode,h=n(6837);function f(t,i){var n=this;s.call(n,t,i),n.Rt=n.constructor.super_.prototype,n.Or=null,n.gt(t)}function l(t,i){var n=this;r.call(n,t,i),n.Rt=n.constructor.super_.prototype,n.Or=null,n.gt(t),n.SEGMENT_OFFSET=7}e.inherits(f,s),e.inherits(l,r),f.prototype.destroy=function(){s.prototype.destroy.call(this)},l.prototype.destroy=function(){r.prototype.destroy.call(this)},l.prototype.gt=f.prototype.gt=function(t){var i=this;i.Er(t);var n=[{type:i.ge,mimeType:i.ge+'/mp4; codecs="'+i.me+'"',minBufferTime:i.__controller.getMinimumBufferTime()}];i.__controller.sendMessage(a.MessageIds.CREATE_SRC_BUFFER,[n],["tracks"])},l.prototype.Er=f.prototype.Er=function(t){var i=this;t.type===u.AUDIO?(i.me=i.vt.userAgent.android?"mp4a.40.2":t.audioCodec||"mp4a.40.2",i.ge="audio"):(i.me=t.videoCodec||"avc1.640021",i.ge="video")},l.prototype.setCurrentStream=f.prototype.setCurrentStream=function(t){var i=this;t&&i.Ee&&!t.equals(i.Ee)&&(i.Ee=t,i._e===i.STATES.LOADING&&i.abortCurrentSegment(i.jr),i.isStreamReady()||(i._e=i.STATES.NONE))},l.prototype.Sr=f.prototype.Sr=function(t,i,n,e){var r=this,s=r.Ee;r.Ze.removeRelatedCommands(o.CMD_MP4_INIT_SEGMENT_LOAD);var u={stream:s,segment:i,initSegment:t,comboLoad:n,cached:e};r.Ze.executeCommand(o.CMD_MP4_INIT_SEGMENT_LOAD,u,r)},l.prototype.Ar=f.prototype.Ar=function(t){var i=this;if(!(i._e>=i.STATES.INITIALIZING)){var n=h.isNullOrUndefined(t)?i.Mr(i.Tr):t,e=i.Ee,r=n===e.startSeqNum,s=e.getSegmentfromSeqNum(n);if(s){var o=e.getInitSegment(s),u=!h.isNullOrUndefined(o);u||(o=e.addInitSegment(s.initSegment));var a=e.streamingMode===c.HLS&&!h.isNullOrUndefined(e.mp4Chunks.first);a&&(s=r?s:null),i._e=i.STATES.INITIALIZING,s&&s.periodId!==i.Or&&i.Nr(s.periodId),i.Ir(s?s.periodId:null),i.Sr(o,s,a,u)}}},l.prototype.onMp4InitSegmentLoadProgress=f.prototype.onMp4InitSegmentLoadProgress=function(t,i){var n=this,e=n.Ee;if(i&&e){var r=t.getSegment();if(i.comboLoad&&r&&"firstByte"===i.position)n.onSegmentLoadProgress(t,i);else{var s=i.chunk,o=i.stream;if(s&&o){var u=o.getInitSegment(r);switch(s.name){case"init":o.setMp4Timescale(u);break;case"sidx":var a=s.data;a&&o.updateSegmentRanges(n.Rr.mp4BoxParser.parse(a,"sidx",o.sidxOffset));break;case"first":return void n.onSegmentLoadProgress(t,i)}e.equals(o)&&o.isReady()&&(n.Lr(u),n._e=n.STATES.INITIALIZED,i.comboLoad&&r&&(n.Cr=r.seqNum,n._e=n.STATES.LOADING))}}}},l.prototype.onMp4InitSegmentLoadComplete=f.prototype.onMp4InitSegmentLoadComplete=function(t,i){var n=this;if(i){var e=t.getSegment();i.comboLoad&&e?n.onSegmentLoadComplete(t):(n._e<n.STATES.INITIALIZED&&n.Ee.equals(i.stream)&&(n._e=n.STATES.INITIALIZED),n.Ze.removeCommand(t))}},l.prototype.onMp4InitSegmentLoadError=f.prototype.onMp4InitSegmentLoadError=function(t,i){this.Ze.removeCommand(t)},l.prototype.onSegmentLoadProgress=f.prototype.onSegmentLoadProgress=function(t,i){var n=this,e=n.Ee;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.me,type:n.ge,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.kr([o])}s.prototype.onSegmentLoadProgress.call(n,t,i)}}},l.prototype.Nr=f.prototype.Nr=function(t){var i=this;if(i.Or!==t){i.Or=t;var n=i.Ee;"MAIN"!==i.type&&"AUDIO"!==i.type||i.Dr(t,n),i.Ir(t)}},l.prototype.Dr=f.prototype.Dr=function(t,i){for(var n=this.vt.streams,e=(this.type,0);e<n.length;e++)n[e].groupId;i.groupId},l.prototype.Ir=f.prototype.Ir=function(t){var i=this,n=i.Ee;n&&n.drmInfo&&!h.isNullOrUndefined(t)&&n.drmInfo.forEach((function(n){n.periodId===t&&i.__controller.sendMessage(a.MessageIds.DRM_LICENSE_INFO,[n],["drmItem"])}))},l.prototype.Lr=f.prototype.Lr=function(t){var i=this,n=i.Ee;if(t){var e=t.data;if(e){var r={data:new Uint8Array(e.buffer),codec:i.me,type:i.ge,minBufferTime:i.__controller.getMinimumBufferTime(),onlyMetadata:!0};i.kr([r]),n.activeInitSegment=t;var s=n?n.getMp4Chunk("sidx"):null;if(s){var o=s.data;o&&(r.data=new Uint8Array(o.buffer),i.kr([r]))}}}},l.prototype.Se=f.prototype.Se=function(t,i){},l.prototype.we=f.prototype.we=function(t){var i=this,n=i.Ee.getSegmentfromSeqNum(t);n&&n.periodId!==i.Or&&i.Nr(n.periodId),i._e=i.STATES.NONE,i.Pr=!0,i.Cr=t,i.Ar(t)},f.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0},l.prototype.Ae=function(t){var i=this;i.lastChunkEndTs={audio:NaN,video:NaN},i.Rt.Ae.call(i,t)}},6888:function(t,i,n){"use strict";t.exports.Fmp4SubtitleStreamer=c,t.exports.Fmp4SubtitleLiveStreamer=h;var e=n(2990),r=n(5902).Fmp4Streamer,s=n(5902).Fmp4LiveStreamer,o=n(2835),u=n(6837),a=n(7650).HLSEvent;function c(t){r.call(this,t),this.gt()}function h(t){s.call(this,t),this.gt()}e.inherits(c,r),e.inherits(h,s),c.prototype.destroy=function(){var t=this;t.Ur=null,t.C="",r.prototype.destroy.call(t)},h.prototype.destroy=function(){var t=this;t.Ur=null,t.C="",s.prototype.destroy.call(t)},h.prototype.gt=c.prototype.gt=function(){var t=this;t.ge="subtitle",t.Ur=new o,t.Fr()},h.prototype.we=c.prototype.we=function(t){this.Fr(),r.prototype.we.call(this,t)},h.prototype.onSegmentLoadProgress=c.prototype.onSegmentLoadProgress=function(t,i){var n=this,e=n.Ee;if(i&&e&&e.timescale){var r=i.stream;if((!r||e.equals(r))&&"firstByte"!==i.position){var s=n.Ur.extractVttCaptions(i.data);if(s.length){var o=n.Ur.parse(i.data,"trun"),u=o?o.sampleData:[];if(u.length===s.length){var a=n.Ur.parse(i.data,"tfdt"),c=a?a.baseMediaDecodeTime:0,h=c=1e3*c/e.timescale;s.forEach((function(t,i){var r=u[i],s=r?1e3*r.sampleDuration/e.timescale:0;if(t.cueText){var o=n.Br(t.cueTime)+c,a=null!==o?o+s:h+s;n.C+="\n"+n.zr(o)+" --\x3e "+n.zr(a),n.C+="\n"+t.cueText+"\n"}h+=s})),n.C+="\n"}}}}},h.prototype.onSegmentLoadComplete=c.prototype.onSegmentLoadComplete=function(t,i){var n=this,e=n.Ee;if(e){var r=e.getSegmentfromSeqNum(n.Cr);r&&n.__controller.sendEvent(a.VTT_SEGMENT_LOADED,n.Vr(r))}n.Rt.onSegmentLoadComplete.call(n,t,i),n.C=""},h.prototype.Fr=c.prototype.Fr=function(){this.C="WEBVTT\nX-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:0\n\n"},h.prototype.Br=c.prototype.Br=function(t){var i=null;if(!t)return i;var n=t.split(":");if(n&&n.length>=3){var e=n[2].split("."),r=0,s=0;e&&e.length>=2&&(r=parseInt(e[0]),s=parseInt(e[1])),i=1e3*(3600*n[0]+60*n[1]+r)+s}return i},h.prototype.zr=c.prototype.zr=function(t){var i="";if(u.isNullOrUndefined(t))return i;function n(t){return t<10?"0"+t:""+t}var e=Math.floor(t/1e3),r=Math.floor(t-1e3*e),s=Math.floor(e/3600);e-=3600*s;var o,a=Math.floor(e/60);return e-=60*a,i=n(s)+":"+n(a)+":"+n(e)+"."+((o=r)<10?"00"+o:o<100?"0"+o:""+o)},h.prototype.Vr=c.prototype.Vr=function(t){var i={};return t&&(i.discontinuity=t.discontinuity,i.sequenceNum=t.seqNum,i.startTime=t.startTime,i.programDateTime=t.programDateTime,i.url=t.url,i.duration=t.duration,i.clockReference=0,i.localCueTime=0,i.mpegTSTime=0,i.data=this.C,i.offset=0,i.adjustedTime=0),i},h.prototype.Se=c.prototype.Se=function(){},h.prototype.Lr=c.prototype.Lr=function(t){this.Ee.activeInitSegment=t},h.prototype.Ir=c.prototype.Ir=function(){}},8630:function(t,i,n){"use strict";t.exports.W=a;var e=n(2990),r=n(7572),s=n(258),o=n(2701).CmdNames,u=n(902);function a(t,i,n){var e=this;e.Gr=o.CMD_LICENSE_LOAD,e.LICENSE_TYPE_NONE=0,e.LICENSE_TYPE_WIDEVINE=1,e.LICENSE_TYPE_PLAYREADY=2,e.Hr=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.Ze=t.create(s),e.Yr=[],window.addEventListener("beforeunload",e.qr.bind(e)),e.Wr=i,e.wi=n,e.Qr=null,e.Zr=null,e.$r=null,e.Xr=[],e.Jr=new u(250),e.Jr.addEventListener(e.Kr,e),e.ns=0,e.un=t,e.us()}a.prototype.addDrmItem=function(t){var i=this;e.isDrmItemContained(t,i.Xr)||(t.status=i.LICENSE_STATUS_NEW,i.Xr.push(t),i.hs(i))},a.prototype.us=function(){var t=this;t.Zr=null,navigator.requestMediaKeySystemAccess?navigator.requestMediaKeySystemAccess(t.widevineKeySystem.keySystem,t.widevineKeySystem.supportedConfig).then((function(i){t.Hr=t.LICENSE_TYPE_WIDEVINE,t.wi.appModel.licenseType="widevine",i.createMediaKeys().then((function(i){t.fs(t,i)}),(function(){t.$r={type:r.ERR_DRM_INIT,message:"LicenseManager - createMediaKeys() failed for Widevine"}}))}),(function(){navigator.requestMediaKeySystemAccess(t.playreadyKeySystem.keySystem,t.playreadyKeySystem.supportedConfig).then((function(i){t.Hr=t.LICENSE_TYPE_PLAYREADY,t.wi.appModel.licenseType="playready",i.createMediaKeys().then((function(i){t.fs(t,i)}),(function(){t.$r={type:r.ERR_DRM_INIT,message:"LicenseManager - createMediaKeys() failed for PlayReady"}}))}),(function(){t.$r={type:r.ERR_DRM_CONFIG,message:"LicenseManager - Your browser/system does not support the requested configurations for playing DRM protected content."}}))})):t.$r={type:r.ERR_DRM_EME_MISSING,message:"LicenseManager - Browser EME components not detected! (also check URL for HTTPS)"}},a.prototype.fs=function(t,i){t.Zr=i,t.Jr.start()},a.prototype.Kr=function(){var t=this;t.Wr.mediaKeys||(t.Jr.stop(),t.Wr.setMediaKeys(t.Zr).then((function(){t.hs(t)}),(function(i){t.$r={type:r.ERR_DRM_INIT,message:"LicenseManager - "+i}})))},a.prototype.hs=function(t){if(null===t.Zr&&null!==t.$r)return t.ds(t.$r.type,t.$r.message),void(t.$r=null);if(null!==t.Zr)for(var i=0;i<t.Xr.length;i++){var n=t.Xr[i];n.status===t.LICENSE_STATUS_NEW&&(t.Hr===t.LICENSE_TYPE_WIDEVINE?(n.widevine.initData=e.base64ToBuffer(n.widevine.pssh),n.widevine.initDataType="cenc",n.status=t.LICENSE_STATUS_LOADING,t.bs(t,n.widevine)):t.Hr===t.LICENSE_TYPE_PLAYREADY&&(n.playready.initData=e.base64ToBuffer(n.playready.pssh),n.playready.initDataType="cenc",n.status=t.LICENSE_STATUS_LOADING,t.bs(t,n.playready)))}},a.prototype.bs=function(t,i){var n=t.Zr.createSession("temporary");t.Yr.push(n),n.addEventListener("message",(function(n){t.gs(t,i,n)}),!1);var e=n.generateRequest(i.initDataType,i.initData);e.then((function(){t.ns++,t.ns===t.Xr.length&&t.un.onGenerateRequestComplete()})),e.catch((function(i){t.ds(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - keySession.generateRequest() failed: "+i)}))},a.prototype.ys=function(t,i){return t.Hr===t.LICENSE_TYPE_PLAYREADY?i.prefix+"/pr":t.Hr===t.LICENSE_TYPE_WIDEVINE?i.prefix+"/wv":""},a.prototype.gs=function(t,i,n){var e=t.ys(t,i),r=t._s(t,n.message);t.Ze.executeCommand(t.Gr,{challenge:r.challenge,headerFields:r.headerFields,url:e,drmInfo:i,event:n},t)},a.prototype._s=function(t,i){var n,s={};if(t.Hr===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.ds(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - Cannot find <Challenge> in key message");var u=o.getElementsByTagName("name"),a=o.getElementsByTagName("value");u.length!==a.length&&t.ds(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - Playready: Mismatched header <name>/<value> pair in key message");for(var c=0;c<u.length;c++)s[u[c].childNodes[0].nodeValue]=a[c].childNodes[0].nodeValue}else t.Hr===t.LICENSE_TYPE_WIDEVINE&&(n=i);return{challenge:n,headerFields:s}},a.prototype.onLicenseLoadComplete=function(t,i){var n=this,e=t.data?t.data.event:null,s=t.data?t.data.drmInfo:null;e.target.update(i.data).catch((function(t){n.ds(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - call to MediaKeySession.update() failed: "+t)}));for(var o=0;o<n.Xr.length;o++)n.Xr[o].widevine.pssh!==s.pssh&&n.Xr[o].playready.pssh!==s.pssh||(n.Xr[o].status=n.LICENSE_STATUS_DONE)},a.prototype.onLicenseLoadError=function(){this.ds(r.ERR_XHR_LOAD,"LicenseManager - XHR failed")},a.prototype.ds=function(t,i){var n=new r.Error(t,i);this.wi.notifyError(n)},a.prototype.qr=function(){for(var t=this,i=0;i<t.Yr.length;i++)t.Yr[i].close().then((function(){}));t.Yr=[]},a.prototype.destroy=function(){var t=this;t.ws=null,t.Zr=null,t.Xr=[],t.qr(),t.Jr.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,a=n(902),c=n(7650).HLSEvent,h=n(2503).StreamTypes,f=n(6837);function l(t,i){var n=this;s.call(n,t,i),n.X={},n.X[c.MEDIA_LOADED]=n.__controller.addEventListener(c.MEDIA_LOADED,n.Dn,n),n.DEFAULT_STREAM_UPDATE_INTERVAL=8e3,n.MAX_STREAM_UPDATE_INTERVAL=1e4,n.PAST_BUFFER_LENGTH_LIMIT=n.vt.config.pastBufferLengthLimit.live,n.LONG_PAUSE_INTERVAL=24e3,n.Os=new a(n.DEFAULT_STREAM_UPDATE_INTERVAL),n.Os.addEventListener(n.Es,n),n.Ui=null,n.js=null,n.Ss=!1,n.As=new a(n.LONG_PAUSE_INTERVAL,1),n.As.addEventListener(n.Ms,n)}e.inherits(l,s),l.prototype.destroy=function(){var t=this;t.Os.destroy(),t.As.destroy(),t.__controller.removeEventListeners(t.X),s.prototype.destroy.call(t)},l.prototype.onPlay=function(t){var i=this;if(i.Ts(),i.Ns()){var n=i.js?u.TIME_GAP:u.INIT;i.Ae(n),i.process(i.Tr),i.js=null}else i.Is&&(i.Tr=t,i.cn=!1,i.process(i.Tr),i.js=null);s.prototype.onPlay.call(i),i.As.stop()},l.prototype.onPause=function(){var t=this;t.js=Date.now(),t.As.start(),s.prototype.onPause.call(t)},l.prototype.onSeeking=function(t){var i=this;i.Rs(!1),i.Ss&&(i.Ls(),i.process(t))},l.prototype.onSynchComplete=function(){var t=this;t.Ui=null,t.Tr=null,t.type===h.MAIN&&t.vt.setLivePlaybackStartTime(null)},l.prototype.suspendStreaming=function(){this.Os&&this.Os.stop()},l.prototype.resumeStreaming=function(){this.Os&&this.Os.start()},l.prototype.Ns=function(){var t=this;if(!t.js)return!0;if(this.vt.config.streamSync)return!1;var i=t.Ee,n=i&&i.targetDuration?3*i.targetDuration*1e3:t.LONG_PAUSE_INTERVAL;return Date.now()-t.js>n},l.prototype.Ae=function(t){var i=this;if(i.vt.hasEndlist)i.Rs(!0);else{var n=i.Ee;if(n.segments.length&&!f.isNullOrUndefined(n.endSeqNum)&&!f.isNullOrUndefined(n.startSeqNum)){var e=i.Cs(),r=n.getSegmentfromSeqNum(e);i.Tr=r?r.startTime:null,i.Ui=i.Tr,n.type===h.MAIN&&i.vt.setLivePlaybackStartTime(i.Ui);var s=i.vt.userAgent;i.Ss=s&&s.safariDesktop&&t===u.TIME_GAP,i.publish(o.LIVE_SYNCH,i,{synchPosition:i.Ui,synchType:t})}}},l.prototype.Ms=function(){},l.prototype.ks=function(){var t=this;return!t.Ds&&t._e!==t.STATES.LOADING&&!t.cn&&!t.Ps()},l.prototype.xs=function(){var t=this;t.isActive()&&(!t.Us&&t._e!==t.STATES.INITIALIZING||t.Fs||(t.Es(),t.Ts()))},l.prototype.Cs=function(){var t=this,i=t.Ee,n=t.vt.getLivePlaybackStartTime();return i.type===h.MAIN||f.isNullOrUndefined(n)?Math.max(i.endSeqNum-t.SEGMENT_OFFSET,i.startSeqNum):i.getSeqNumBeforePosition(n)},l.prototype.Bs=function(t){return t},l.prototype.onStreamLoaded=function(t){this.Ts(),s.prototype.onStreamLoaded.call(this,t)},l.prototype.Dn=function(){this.Ts()},l.prototype.Ts=function(){var t,i,n=this;n.vt.hasEndlist||n.Ee.isDash()&&n.type!==h.MAIN?n.Os.destroy():(t=n.Os.startTime>0?Date.now()-n.Os.startTime:0,n.Os.reset(),i=n.vt.getStreamRefreshInterval()||n.DEFAULT_STREAM_UPDATE_INTERVAL,i-=t,i=Math.max(i,100),i=Math.min(i,n.MAX_STREAM_UPDATE_INTERVAL),n.Os.delay=i,n.Os.start())},l.prototype.zs=function(){var t=this,i={url:t.Ee.url,withResponseHeaders:t.vt.isDash()};return t.cn&&(i.stopStreamLoadOnError=!0,i.maxRetries=1),i},l.prototype.stopStreamUpdate=function(){this.Os.reset()},l.prototype.canSwitch=function(t){var i=this;return!i.Ui&&("mid-segment"!==t||i._e===i.STATES.LOADING)},l.prototype.Vs=function(){var t=this,i=t.Ee;i&&i.endSeqNum===t.Cr&&t.vt.hasEndlist&&t.Rs(!0)}},2440:function(t,i,n){"use strict";var e=n(27),r=n(5985),s=n(5902),o=n(9112),u=n(6888),a=n(2503).StreamTypes,c=e.TsStreamer,h=e.TsLiveStreamer,f=r.SubtitleStreamer,l=r.SubtitleLiveStreamer,v=s.Fmp4Streamer,d=s.Fmp4LiveStreamer,p=o.AacStreamer,b=o.AacLiveStreamer,m=u.Fmp4SubtitleStreamer,g=u.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?l:f;break;case"aac":e=n?b:p;break;case"mp4":e=r?n?g:m:n?d:v;break;case"ts":e=n?h:c}return e?t.create(e,i):null}},2350:function(t,i,n){"use strict";t.exports.Streamer=m;var e=n(2990),r=n(2999),s=n(2701).CmdNames,o=n(7572),u=n(7650).HLSEvent,a=n(4361),c=a.StreamLoader,h=a.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"},b=t.exports.SynchTypes={INIT:"synchAtInit",TIME_GAP:"synchAtTimeGap"};function m(t){var i=this,n=i.__controller;r.call(i,i.constructor.name),i.vt=n.model,i.Rr=n.services,i.Ze=n.create(l),i.Gs=n.create(c,i.Ze),i.Gs.addEventListener(h.STREAM_LOADED,i.onStreamLoaded,i),i.Gs.addEventListener(h.STREAM_LOAD_ERROR,i.onStreamLoadError,i),i.AVG_BW_MEASUREMENT_INTERVAL=30,i.Hs=0,i.Ys=0,i.Gr=s.CMD_SEGMENT_LOAD,i.Ee=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.Ws=[],i.Qs=new d(i.sendVttEventCB.bind(i))),i.STATES={ERROR:-1,NONE:0,INITIALIZING:1,INITIALIZED:2,LOADING:3},i._e=i.STATES.NONE,i.Fs=!1,i.Zs=!1,i.Cr=NaN,i.$n=!1,i.Tr=null,i.cn=!1,i.$s=i.vt.config.maxBuffer,i.Xs=i.vt.live,i.Js=!1,i.Is=!1,i.Ks={audio:NaN,video:NaN},i.Us=!1,i.Ot=[403]}e.inherits(m,r),m.prototype.destroy=function(){var t=this;t.Gs.destroy(),t._e=t.STATES.NONE,t.Ee=null,t.Ze&&(t.Ze.destroy(),t.Ze=null),r.prototype.destroy.call(t)},m.prototype.setCurrentStream=function(t){var i=this;t&&!t.equals(i.Ee)&&(i.Ee=t,i.onSwitchBegin())},m.prototype.isActive=function(){var t=this;return t.Ee&&t.Ee.url&&t.Ee.url.length>0},m.prototype.setAltAudioActive=function(t){this.Js=t},m.prototype.getCurrentStream=function(){return this.Ee},m.prototype.process=function(t,i){var n=this;if("number"==typeof t&&(n.Tr=t),n.isStreamReady()||n._e===n.STATES.ERROR){if(n.ks()){var e=n.Mr(n.Tr,i),r=n.io(e);"empty"!==r?"ahead"!==r&&("behind"!==r?n.ks()&&(n.Tr=null,n.no(e)):n.Ae(b.TIME_GAP)):n.xs()}}else n.Ar()},m.prototype.suspendStreaming=m.prototype.resumeStreaming=function(){},m.prototype.onPlay=function(t){var i=this;i.cn=!1,i.$s=i.vt.config.maxBuffer,t&&i.onSynchBegin()},m.prototype.onPlaying=function(){this.Is=!1},m.prototype.onPause=function(){this.cn=!0},m.prototype.onSeeking=function(t){var i=this;i.Ls(),i.Rs(!1),i.process(t)},m.prototype.onSeeked=function(){},m.prototype.onError=function(){this.Ze&&this.Ze.removeAllCommands()},m.prototype.onComplete=function(){},m.prototype.onTimeUpdate=function(t){var i=this;if(i.Ys){var n=t-i.Ys;n>0&&(i.Hs+=n)}i.Hs>i.AVG_BW_MEASUREMENT_INTERVAL&&(i.Bn(i.Rr.bandwidthEstimator.averageBandwidth),i.Hs=0),i.Ys=t},m.prototype.onPreloadBegin=function(){var t=this;t.Zs=!0,t.$s=t.vt.config.preloadBufferLimit},m.prototype.onPreloadEnd=function(){this.Zs=!1},m.prototype.Ae=function(){},m.prototype.isStreamReady=function(){var t=this,i=t.Ee;return i&&i.isReady()&&t._e>=t.STATES.INITIALIZED},m.prototype.Ar=function(){var t=this;t.isActive()&&(t._e=t.STATES.INITIALIZING,t.xs())},m.prototype.ks=function(){var t=this,i=t.Ps(),n=t.vt.config.stopBufferingOnPause;return t.Zs&&i&&t.publish(p.PRELOAD_COMPLETE,t),!t.$n&&t._e!==t.STATES.LOADING&&((!t.cn||!n)&&(!i&&!t.eo()))},m.prototype.io=function(t){var i=this.Ee;if(!i||i.isEmpty()||isNaN(t))return"empty";if(!i.contains(t)){if(t<i.startSeqNum)return"behind";if(t>i.endSeqNum)return"ahead"}return"available"},m.prototype.Ps=function(){var t=this;if(t.type&&t.vt.bufferedAndPending){var i={buffered:0,pending:0},n=t.vt.bufferedAndPending.video||i;return t.type!==v.MAIN&&t.type!==v.VIDEO&&(n=t.vt.bufferedAndPending.audio||i),n.buffered+n.pending>=t.$s}return t.vt.bufferLength+t.vt.pendingBufferLength>=t.$s},m.prototype.eo=function(){var t=this.vt;return t.getTotalBufferLength()>=t.config.maxTotalBuffer},m.prototype.onSwitchBegin=function(){this.Us=!0,this.xs()},m.prototype.onSwitchEnd=function(){this.Us=!1},m.prototype.xs=function(){this.Fs||this.Es()},m.prototype.Es=function(){var t=this;t.isActive()&&(t.Fs=!0,t.Gs.load(t.Ee,t.zs()))},m.prototype.zs=function(){var t=this;return{url:t.Ee.url,retryExclusion:t.Ot,withResponseHeaders:t.vt.isDash()}},m.prototype.onStreamLoaded=function(t){var i=this;i._e===i.STATES.INITIALIZING&&(i._e=i.STATES.INITIALIZED),i.Fs=!1,i.publish(p.STREAM_LOAD_COMPLETE,i,{stream:t.dto()})},m.prototype.onStreamLoadError=function(t,i){var n=this;i.code===o.ERR_XHR_LOAD_LIVE_PAUSE[0]&&n.stopStreamUpdate(),n.publish(p.STREAM_LOAD_ERROR,n,{err:i,stream:t}),n._e=n.STATES.ERROR,n.Fs=!1,n.process()},m.prototype.Mr=function(t,i){var n=this,e=n.Ee,r=NaN;return r="number"==typeof t?e.getSeqNumBeforePosition(t+n.vt.TIMESTAMP_COMPARE_EPSILON):isNaN(n.Cr)?n.Cs():n._e===n.STATES.ERROR||n.Pr?n.Cr:n.Cr+1,i||(r=n.Bs(r)),n.Xs||(r=Math.max(r,e.startSeqNum),r=Math.min(r,e.endSeqNum)),r},m.prototype.Bs=function(t){var i=this,n=i.Ee,e=i.vt.bufferedRanges,r=e.length,s=i.so(t),o=i.vt.userAgent;if(o&&o.safariDesktop)return t;if(i.vt.isDash())return t;if(s>=0&&r&&s<r){var u=e.ranges[s].end;return!i.Xs&&u>=i.vt.duration?(i.Rs(!0),n.endSeqNum):n.getSeqNumBeforePosition(u)}return t},m.prototype.Cs=function(){return this.Ee.getSeqNumBeforePosition(0)},m.prototype.so=function(t){var i=this,n=i.Ee.getSegmentfromSeqNum(t);if(!n)return-1;for(var e=i.vt.TIMESTAMP_COMPARE_EPSILON,r=i.vt.bufferedRanges,s=0;s<r.length;s++){var o=r.ranges[s],u=o.start-e,a=o.end+e;if(u=0===n.startTime&&u<.1?0:u,n.startTime>=u&&n.startTime+n.duration<=a)return s}return-1},m.prototype.we=function(){},m.prototype.no=function(t){var i=this;if(i.we(t),!(i._e<i.STATES.INITIALIZED)){i.Ls(),i._e=i.STATES.LOADING,i.Cr=t,i.Pr=!1,i.vt.updateCurrentLoadingSeqNum(i.Cr);var n=i.oo(i.Cr);n&&(i.Se(n,i.Ee),i.publish(p.SEG_LOAD_START,i),i.uo(t))}},m.prototype.uo=function(){},m.prototype.oo=function(t){var i=this,n=i.Oe(t),e=n?n.segment:null;return e?(i.jr=i.Ze.executeCommand(i.Gr,n,i),e):null},m.prototype.Oe=function(t){var i=this.Ee;return i?{segment:i.getSegmentfromSeqNum(t),stream:i}:null},m.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 a=s?s.position:i.position,c=s&&s.inWorkerScope||!1;switch(u.publish(p.SEG_LOAD_PROGRESS,u,{seqNum:u.Cr,position:a,bytesTotal:r,inWorkerScope:c,perfInfo:e}),u.vt.preloading=u.Zs,a){case"firstByte":return;case"start":break;case"end":u._e===u.STATES.LOADING&&(u._e=u.STATES.INITIALIZED)}if(n&&(n.forEach((function(t){t.minBufferTime=u.__controller.getMinimumBufferTime(),u.Ks[t.type]=t.endTimestamp})),u.kr(n,i.getParam("transferables"))),u.Ws&&o&&o.length>0)for(var h=0;h<o.length;h++)u.Ws.push(o[h]);"end"===a&&(u.vt.setSegEndTimeStamps(u.type,u.Ee.groupId,u.Cr,u.Ks),u.Ks.audio=NaN,u.Ks.video=NaN)}else{var l=i.getParam("timedMetadata");u.vt.updateTimedMetadata(l,u.Cr)}},m.prototype.onSegmentLoadComplete=function(t){var i=this;if(i._e===i.STATES.LOADING&&(i._e=i.STATES.INITIALIZED),i.Ws&&i.Ws.length>0){for(var n=[],e=0;e<i.Ws.length;e++){for(var r=i.Ws[e],s=0;s<n.length&&r.pts>=n[s].pts;)s++;n.splice(s,0,r)}var o=i.Ee.getSegmentfromSeqNum(i.Cr);i.Qs.parse(n,o),i.Ws=[]}i.Ze.removeCommand(t),i.Vs(),i.publish(p.SEG_LOAD_COMPLETE,i,{stream:i.Ee}),i.jr=null},m.prototype.onSegmentLoadError=function(t,i){var n=this;n.abortCurrentSegment(t),n.jr=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.Cr,err:e,stream:n.Ee})},m.prototype.abortCurrentSegment=function(t){var i=this;return i._e!==i.STATES.LOADING?null:(t&&i.Ze.removeCommand(t),i._e===i.STATES.LOADING&&(i._e=i.STATES.INITIALIZED),i.Pr=!0,i.Ks.audio=NaN,i.Ks.video=NaN,i.Cr)},m.prototype.Ls=function(){var t=this;t._e===t.STATES.LOADING&&(t._e=t.STATES.INITIALIZED),t.Ks.audio=NaN,t.Ks.video=NaN,t.Ze.removeRelatedCommands(t.Gr)},m.prototype.kr=function(t,i){t&&this.__controller.sendMessage(f.MessageIds.APPEND_SRC_BUFFER,[t],["tracks"],i)},m.prototype.Rs=function(t){var i=this;i.$n=t,i.Ks.audio=NaN,i.Ks.video=NaN,i.type===v.MAIN&&i.__controller.sendMessage(f.MessageIds.END_OF_STREAM,[t],["endOfStream"])},m.prototype.Vs=function(){var t=this,i=t.Ee;i&&i.endSeqNum===t.Cr&&t.Rs(!0)},m.prototype.Bn=function(t){var i={avgBWtimestamp:Date.now(),avgBW:t};this.type===v.MAIN&&this.__controller.sendMessage(f.MessageIds.SAVE_AVG_BANDWIDTH,[i],["avgBwInfo"])},m.prototype.onManualStreamChange=function(){var t=this;t.Rs(!1),t.Is=!0,t.Ls(),t.Gs.cancel(),t.Fs=!1,t._e=t._e!==t.STATES.ERROR?t.STATES.INITIALIZING:t._e,t.xs()},m.prototype.midSegUpSwitch=function(){var t=this;t.jr&&t.abortCurrentSegment(t.jr),t.Gs.cancel(),t.Fs=!1,t.xs(),t.process(t.Ys,!0)},m.prototype.onSynchBegin=function(){},m.prototype.onSynchComplete=function(){},m.prototype.onSynchMetadataReady=function(t){var i=this;i.Ls(),i.Rs(!1),i.process(t)},m.prototype.canSwitch=function(t){return"mid-segment"!==t||this._e===this.STATES.LOADING},m.prototype.isInError=function(){return this._e===this.STATES.ERROR},m.prototype.getSegLoadCommand=function(){return this.Ze.getCommand(this.Gr)},m.prototype.Se=function(){},m.prototype.sendVttEventCB=function(t){this.__controller.sendEvent(u.VTT_SEGMENT_LOADED,t)}},6972:function(t,i,n){"use strict";t.exports.StreamingController=y;var e=n(2350).Events,r=n(2440),s=n(4571),o=n(1811),u=n(902),a=n(4361),c=a.StreamLoader,h=a.Events,f=n(2503).StreamTypes,l=n(2990),v=n(2999),d=n(7650).HLSEvent,p=n(258),b=n(574).AbrModes,m=n(5557),g=t.exports.Events={STREAM_METADATA_LOADED:"streamMetadataLoaded",STREAM_METADATA_LOAD_ERROR:"streamMetadataLoadError",PRELOAD_COMPLETE:"preloadComplete",SEG_LOAD_PROGRESS:"streamingControllerSegLoadProgress"};function y(){var t=this;v.call(t,t.constructor.name),t.vt=t.__controller.model,t.Rr=t.__controller.services,t.Ze=t.__controller.create(p),t.ao=t.Rr.segmentMetrics,t.co={},t.ho=0,t.fo=0,t.lo={},t.vo=null,t.do=0,t.FAST_UP_SWITCH_INTERVAL=.3,t.ne=t.__controller.create(o,t.Ze),t.ne.addEventListener(t.ne.SWITCH_ON_ERROR,t.po,t),t.Ei=t.__controller.create(s),t.Ei.addEventListener(t.Ei.SWITCH_BEGIN,t.bo,t),t.Ei.addEventListener(t.Ei.SWITCH_END,t.mo,t),t.yo=new u(1e3*t.vt.config.segmentLoadMonitorInterval),t.yo.addEventListener(t._o,t),t.wo=new u(1e3*t.FAST_UP_SWITCH_INTERVAL),t.wo.addEventListener(t.Oo,t),t.Eo={},t.$i=[],t.cn=!1,t.Us=!1,t.Is=!1,t.jo=t.Ei.SCENARIOS.STARTUP,t.STATES={ERROR:-1,INITIAL:0,STREAM_METADATA_LOADED:1,INITIALIZED:2},t._e=t.STATES.INITIAL}l.inherits(y,v),y.prototype.loadStream=function(t){var i=this;t&&i._e===i.STATES.INITIAL&&(i.So(t).load(t),i.ho++,Object.keys(t.altRenditionGroups).forEach((function(n){var e=t.getAlternateStream(n);e&&e.url&&(i.So(e).load(e),i.ho++)})))},y.prototype.loadAllSubtitleStreams=function(){var t=this;if(t._e===t.STATES.INITIAL){var i=[];t.vt.streams.forEach((function(n){var e=n.getAlternateStream(f.SUBTITLES);e&&i.indexOf(e.url)<0&&(i.push(e.url),t.So(e).load(e),t.ho++)})),t._e=t.STATES.STREAM_METADATA_LOADED,t.publish(g.STREAM_METADATA_LOADED)}},y.prototype.So=function(t){var i=this,n=i.__controller.create(c,i.Ze);return n.addEventListener(h.STREAM_LOADED,i.Ao,i),n.addEventListener(h.STREAM_LOAD_ERROR,i.Mo,i),i.co[t.url]=n,t.type===f.SUBTITLES&&i.fo++,n},y.prototype.To=function(){var t=this;Object.keys(t.co).forEach((function(i){var n=t.co[i];n&&n.destroy()})),t.co={},t.ho=0},y.prototype.Ao=function(t){var i=this;if(t){var n=i.co[t.url];if(n){if(i._e>=i.STATES.STREAM_METADATA_LOADED)return n.destroy(),delete i.co[t.url],void i.vt.synchStreamTimelines(t.type);t.type!==f.SUBTITLES&&i.fo++,i.fo>=i.ho&&(i._e=i.STATES.STREAM_METADATA_LOADED,i.vt.synchStreamTimelines(),i.publish(g.STREAM_METADATA_LOADED)),n.destroy(),delete i.co[t.url]}}},y.prototype.Mo=function(t,i){var n=this;t&&t.type===f.SUBTITLES||(n._e=n.STATES.ERROR,n.publish(g.STREAM_METADATA_LOAD_ERROR,i))},y.prototype.init=function(){var t=this;if(t._e!==t.STATES.ERROR&&t._e!==t.STATES.INITIALIZED){var i=t.vt.getCurrentLoadingStream();if(i){t.fo=0;var n=t.No(i);n.addEventListener(e.PRELOAD_COMPLETE,t.vr,t),n.addEventListener(e.LIVE_SYNCH,t.In,t),t.lo.MAIN=n,t.vo=n,t.do++,Object.keys(i.altRenditionGroups).forEach((function(n){var e=i.getAlternateStream(n);if(e){var r=t.No(e);r&&(t.lo[n]=r,t.do++)}})),t.Io(),t.Ro(),t._e=t.STATES.INITIALIZED}}},y.prototype.isInitialized=function(){return this._e>=this.STATES.INITIALIZED},y.prototype.No=function(t){var i=this;if(!t)return null;var n=r.create(i.__controller,t,i.vt.live);return i.Lo(n),n},y.prototype.Co=function(){var t=this;Object.keys(t.lo).forEach((function(i){t.lo[i].destroy()})),t.lo={},t.vo=null},y.prototype.Lo=function(t){var i=this;if(t){var n={};n[e.SEG_LOAD_START]=i.Do,n[e.SEG_LOAD_PROGRESS]=i.dr,n[e.SEG_LOAD_COMPLETE]=i.Po,n[e.SEG_LOAD_ERROR]=i.xo,n[e.STREAM_LOAD_ERROR]=i.Uo,n[e.STREAM_LOAD_COMPLETE]=i.Fo,Object.keys(e).forEach((function(r){var s=e[r];t.addEventListener(s,n[s],i)}))}},y.prototype.Io=function(){var t=this,i=t.lo.AUDIO;t.vo&&t.vo.setAltAudioActive(i&&i.isActive())},y.prototype.Bo=function(){var t=this,i=Array.prototype.slice.call(arguments),n=i.shift(),e=t.vo;e&&e[n]&&"function"==typeof e[n]&&e[n].apply(e,i),Object.keys(t.lo).forEach((function(r){r!==f.MAIN&&(e=t.lo[r])&&e[n]&&"function"==typeof e[n]&&e[n].apply(e,i)}))},y.prototype.process=function(){var t=this;t.Bo("process"),t.jo=t.Ei.SCENARIOS.LOAD},y.prototype.suspendStreaming=function(){this.Bo("suspendStreaming")},y.prototype.resumeStreaming=function(){this.Bo("resumeStreaming")},y.prototype.setABRMode=function(t){var i=this,n=i.vt;n.setABRMode(t)&&n.getABRMode()!==b.AUTO&&(i.zo("video"),i.Us=!1,i.Ro())},y.prototype.setSeedStreamIndex=function(t){this.vt.getABRMode()===b.AUTO&&this.Ei.setSeedStreamIndex(t)},y.prototype.zo=function(t){var i=this;i.Is=!0,i.__controller.sendMessage(m.MessageIds.PAUSE_BEFORE_STREAM_CHANGE,[t],["streamType"]),i.Bo("onManualStreamChange")},y.prototype.setAudioLanguage=function(t){var i=this,n=i.vt;if(n.setAudioLanguage(t)){i.zo("audio");var e=f.AUDIO,r=n.getCurrentLoadingStream(),s=r?r.getAlternateStream(e):null,o=i.lo[e];s&&o&&o.setCurrentStream(s),i.Io()}},y.prototype.getMetrics=function(){return this.ao.getMetrics()},y.prototype.onPlay=function(t){var i=this;i.yo.start(),i.Vo()?(i.Bo("onPlay",t),i.cn=!1,i.Is=!1):i.$i.push([i,i.onPlay,[t]])},y.prototype.onPlaying=function(){this.Bo("onPlaying"),this.wo.start()},y.prototype.onPause=function(){var t=this;t.yo.stop(),t.Bo("onPause"),t.cn=!0},y.prototype.onSeeking=function(t){var i=this;i.vt.live||i.Ro(),i.Bo("onSeeking",t)},y.prototype.onSeeked=function(t){this.Bo("onSeeked",t)},y.prototype.onComplete=function(){this.ao.onComplete(),this.Bo("onComplete")},y.prototype.onError=function(){this.Bo("onError")},y.prototype.onTimeUpdate=function(t){this.Bo("onTimeUpdate",t),this.ao.onTimeUpdate(t)},y.prototype.onSynchMetadataReady=function(t){this.Ro(),this.Bo("onSynchMetadataReady",t)},y.prototype.onSynchComplete=function(){this.Bo("onSynchComplete")},y.prototype.onPreloadBegin=function(){this.Bo("onPreloadBegin")},y.prototype.onPreloadEnd=function(){this.Bo("onPreloadEnd")},y.prototype.po=function(t){var i=this;i.Us=!1,i.Ro(i.Ei.SCENARIOS.ERROR,{index:t})},y.prototype.bo=function(){var t=this,i=t.vt.getCurrentLoadingStream();t.Us=!0,t.vo.setCurrentStream(i),Object.keys(i.altRenditionGroups).forEach((function(n){var e=i.getAlternateStream(n);e&&t.lo[n]&&t.lo[n].setCurrentStream(e)})),t.Io()},y.prototype.mo=function(){this.Us=!1,this.Bo("onSwitchEnd")},y.prototype._o=function(){var t=this,i=t.vo?t.vo.getSegLoadCommand():null;i&&t.Ro(t.Ei.SCENARIOS.MIDSEGMENT,{command:i,position:i.position})},y.prototype.Oo=function(){var t=this;t.Us=!1,t.Ro(),t.vt.getCurrentLoadingStream().bitrate>t.vt.getCurrentPlayingStream().bitrate&&(t.wo.reset(),t.Bo("midSegUpSwitch"))},y.prototype.Go=function(t,i,n,e,r){var s=this,o=s.vt.getCurrentLoadingStream(),u=o?o.getSegmentfromSeqNum(i):null,a={bitrateIndex:o?o.index:0,frameRate:o?o.frameRate:30,bytesTotal:n};"firstByte"===t?(a.beginTime=u?u.startTime:NaN,a.switchReason="none",a.observedBitrate=s.Rr.bandwidthEstimator.averageBandwidth,a.timeToFirstByte=u?u.timeToFirstByte:NaN,a.endTime=u?u.startTime+u.duration:NaN,a.programDateTime=u?u.programDateTime:NaN,s.ao.segmentLoadBegin(i,a)):"end"===t&&(a.perfInfo=r,a.timeToDownload=u?u.totalDownloadTime:NaN,a.segmentInWorker=!!e,s.ao.segmentLoadEnd(i,a))},y.prototype.Ho=function(){var t=this;t.yo.reset(),t.cn||t.ne.running||t.yo.start()},y.prototype.Ro=function(t,i){var n=this;if(t=t||n.jo,!n.Us)if(t!==n.Ei.SCENARIOS.MIDSEGMENT){var e=i?i.index:null;n.Ei.switchStream(t,null,e)}else{var r=i?i.command:null,s=i?i.position:null;n.Yo(t,r,s)}},y.prototype.Yo=function(t,i,n){var e=this;if("end"!==n&&(e.vo&&e.vo.canSwitch(t)&&e.Ei.switchStream(t,"down"))){var r=e.vo.abortCurrentSegment(i);r&&e.Go("end",r),e.process()}},y.prototype.Do=function(){this.Ho()},y.prototype.dr=function(t,i){var n=this;if(n.qo(t)&&i){n.publish(g.SEG_LOAD_PROGRESS,i.bytesTotal),"firstByte"===i.position&&n.Ei.switchComplete();var e=i.position,r=i.bytesTotal,s=i.inWorkerScope,o=i.perfInfo,u=i.seqNum;n.Go(e,u,r,s,o),n.Ho()}},y.prototype.Po=function(t){var i=this;i.Wo(),i.qo(t)&&i.Ro()},y.prototype.xo=function(t,i){var n=this;n.qo(t)&&n.Go("end",i.seqNum),n.Qo(i.err,i.stream)},y.prototype.Fo=function(t,i){var n=this;if(n.Wo(),n.qo(t)||n.vt.synchStreamTimelines(t.type),n.__controller.sendEvent(d.STREAM_UPDATED,i),n.$i.length>0&&n.Nn(),n.Is){for(var e=0,r=Object.keys(n.lo),s=0;s<n.do;s++)n.lo[r[s]].isActive()&&e++;++n.fo>=e&&(n.fo=0,n.__controller.sendMessage(m.MessageIds.PLAY_AFTER_STREAM_CHANGE))}},y.prototype.Uo=function(t,i){this.Qo(i.err,i.stream)},y.prototype.Qo=function(t,i){this.yo.stop(),this.ne.handle(t,i)},y.prototype.Wo=function(){var t=this,i=!0;t.ne.running&&(Object.keys(t.lo).forEach((function(n){var e=t.lo[n],r=e?e.getCurrentStream():null;r&&r.type!==f.SUBTITLES&&(i=i&&!e.isInError())})),i&&(t.ne.onLoadComplete(),t.Ho()))},y.prototype.vr=function(){this.onPreloadEnd(),this.publish(g.PRELOAD_COMPLETE)},y.prototype.In=function(t,i){this.qo(t)&&this.__controller.sendEvent(d.LIVE_SYNCH,i)},y.prototype.qo=function(t){return t&&t.type===f.MAIN},y.prototype.Vo=function(){var t=this;if(t._e!==t.STATES.INITIALIZED)return!1;var i=!0;return Object.keys(t.lo).forEach((function(n){if(n!==f.SUBTITLES){var e=t.lo[n];i=i&&(!e.isActive()||e.isStreamReady())}})),i},y.prototype.Nn=function(){var t=this.$i;this.$i=[],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)}))},y.prototype.destroy=function(){var t=this;t.Co(),t.To(),t.ne&&(t.ne.destroy(),t.ne=null),t.Ze&&(t.Ze.destroy(),t.Ze=null),t.Ei&&(t.Ei.destroy(),t.Ei=null),t.wo&&(t.wo.destroy(),t.wo=null),t.ao&&(t.ao.destroy(),t.ao=null),t.yo.destroy(),t.$i=[],v.prototype.destroy.call(t)}},5985:function(t,i,n){"use strict";t.exports.SubtitleStreamer=a,t.exports.SubtitleLiveStreamer=c;var e=n(2990),r=n(2350).Streamer,s=n(7980),o=n(2701).CmdNames,u=n(7650).HLSEvent;function a(t,i){this.be(t,i)}function c(t,i){this.be(t,i)}e.inherits(a,r),e.inherits(c,s),c.prototype.be=a.prototype.be=function(t,i){var n=this;n.constructor.super_.call(n,t,i),n.Rt=n.constructor.super_.prototype,n.Zo={},n.Gr=o.CMD_SUBTITLE_SEGMENT_LOAD,n.primary=!1,n._e=t.isReady()?n.STATES.INITIALIZED:n.STATES.NONE},c.prototype.destroy=a.prototype.destroy=function(){var t=this;t.Zo={},t.Rt.destroy.call(t)},c.prototype.onPlay=a.prototype.onPlay=function(t){this.Rt.onPlay.call(this,t)},c.prototype.onTimeUpdate=a.prototype.onTimeUpdate=function(t){this.Ys=t},c.prototype.Ps=a.prototype.Ps=function(){var t=this;return t.$o(t.Ys)>=t.$s},c.prototype.eo=a.prototype.eo=function(){return this.$o()>=this.vt.config.maxTotalBuffer},c.prototype.Oe=a.prototype.Oe=function(t){var i=this.Ee;return i?{subtitleStream:i,segment:i.getSegmentfromSeqNum(t),live:this.vt.live}:{}},c.prototype.onSubtitleSegmentLoadComplete=a.prototype.onSubtitleSegmentLoadComplete=function(t,i){var n=this;if(i){var e=i.data;n.__controller.sendEvent(u.VTT_SEGMENT_LOADED,e),n.Zo[e.sequenceNum]={start:e.startTime,end:e.startTime+e.duration}}n.Rt.onSegmentLoadComplete.call(n,t)},c.prototype.onSubtitleSegmentLoadError=a.prototype.onSubtitleSegmentLoadError=function(t){var i=this;i._e=i.STATES.NONE,i.Ze.removeCommand(t)},c.prototype.Bs=a.prototype.Bs=function(t){var i=this,n=i.Ee,e=t;if(!isNaN(e))for(;i.Zo[e];)e++;return!i.Xs&&e>n.endSeqNum?(i.Rs(!0),n.endSeqNum):e},c.prototype.$o=a.prototype.$o=function(t){var i=this.Ee,n=i.getSeqNumBeforePosition(t);if(isNaN(n))return 0;for(var e=0;n<=i.endSeqNum;n++){var r=this.Zo[n];if(!r)break;e=r.end-t}return e},c.prototype.Xo=a.prototype.Xo=function(){var t=this,i=0;return Object.keys(t.Zo).forEach((function(n){var e=t.Zo[n];e&&(i+=e.end-e.start)})),i},c.prototype.Se=a.prototype.Se=function(){this.Ee},c.prototype.so=a.prototype.so=function(){},c.prototype.kr=a.prototype.kr=function(){},c.prototype.onSynchMetadataReady=a.prototype.onSynchMetadataReady=function(){},c.prototype.setABRMode=a.prototype.setABRMode=function(){},c.prototype.canSwitch=a.prototype.canSwitch=function(){return!0}},4571:function(t,i,n){"use strict";t.exports=a;var e=n(1426),r=n(574).AbrModes,s=n(2999),o=n(2990),u=n(7650).HLSEvent;function a(){var t=this;t.vt=t.__controller.model,t.Jo=t.__controller.create(e),t.Ko={estimatedBandwidthInBps:0,bitrateList:[],currentIndex:0,bufferLength:0},t.X={},t.Dn(),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.X[u.MEDIA_LOADED]=t.__controller.addEventListener(u.MEDIA_LOADED,t.Dn,t)}o.inherits(a,s),a.prototype.destroy=function(){var t=this;t.Jo.destroy(),t.__controller.removeEventListeners(t.X),s.prototype.destroy.call(t)},a.prototype.switchStream=function(t,i,n){var e=this;e.vt.getABRMode()!==r.AUTO&&e.vt.streams.forEach((function(t,i){e.vt.getUserReqBitrate()===t.bitrate&&(n=i)}));var s,o=e.vt.currentLoadingStreamIndex,u=e.tu();return-1!==this.seedStreamIndex?(s=this.seedStreamIndex,this.seedStreamIndex=-1):s=e.iu(n,t,u),!(s<0)&&(s!==o&&((!i||!("up"===i&&s<o||"down"===i&&s>o))&&(e.vt.setCurrentLoadingStream(s),e.switching=!0,e.publish(e.SWITCH_BEGIN,s),!0)))},a.prototype.iu=function(t,i,n){return"number"==typeof t?t:this.Jo.getNextStreamIndex(n,i===this.SCENARIOS.STARTUP)},a.prototype.switchComplete=function(){var t=this;t.switching=!1,t.publish(t.SWITCH_END)},a.prototype.tu=function(){var t=this;t.nu();var i=t.Ko,n=t.__controller.services.bandwidthEstimator,e=t.vt.dimensions;return i.estimatedBandwidthInBps=1e3*n.averageBandwidth*1e3,i.currentIndex=t.vt.currentLoadingStreamIndex,i.bufferLength=t.vt.bufferLength,i.displayWidth=isNaN(e.width)?640:e.width,i.displayHeight=isNaN(e.height)?360:e.height,i.pixelRatio=t.vt.pixelRatio,i.is360=t.vt.is360,i.streams=t.vt.streams,i.segmentLength=t.vt.getSegmentLength(),i},a.prototype.Dn=function(){this.nu()},a.prototype.nu=function(){var t=this;t.vt.streams&&!t.Ko.bitrateList.length&&(t.Ko.bitrateList=[],t.vt.streams.forEach((function(i){t.Ko.bitrateList.push("VBR"===i.rcMode.toUpperCase()?i.avgBitrate:i.bitrate)})))},a.prototype.setSeedStreamIndex=function(t){this.seedStreamIndex=t}},27:function(t,i,n){"use strict";t.exports.TsStreamer=c,t.exports.TsLiveStreamer=h;var e=n(2990),r=n(2350).Streamer,s=n(7980),o=n(2701).CmdNames,u=n(6837),a=n(5557);function c(t,i){this.be(t,i)}function h(t,i){this.be(t,i),this.SEGMENT_OFFSET=2}e.inherits(c,r),e.inherits(h,s),h.prototype.be=c.prototype.be=function(t,i){var n=this;n.constructor.super_.call(n,t,i),n.Rt=n.constructor.super_.prototype,n.processOnlyMetadata=!1,n.lastChunkEndTs={audio:NaN,video:NaN},n.lastFrameDuration={audio:NaN,video:NaN},n.ye(),n.Gr=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(a.MessageIds.CREATE_SRC_BUFFER,[r],["tracks"]),n._e=n.STATES.INITIALIZED},h.prototype.destroy=c.prototype.destroy=function(){var t=this;t.ye(),t.Rt.destroy.call(t)},h.prototype.onSeeking=c.prototype.onSeeking=function(t){var i=this;i.lastChunkEndTs={audio:NaN,video:NaN},i.Rt.onSeeking.call(i,t)},h.prototype.onSwitchBegin=c.prototype.onSwitchBegin=function(){var t=this;t.ye(),t.Rt.onSwitchBegin.call(t)},h.prototype.we=c.prototype.we=function(){this.ye()},h.prototype.Oe=c.prototype.Oe=function(t){var i=this;return{segment:i.vt.getSegment(i.vt.currentLoadingStreamIndex,t),stream:i.Ee,state:{mp4:i.je,lastChunkEndTs:i.lastChunkEndTs,lastFrameDuration:i.lastFrameDuration,isAltAudioActive:i.Js},onlyMetadata:i.processOnlyMetadata}},h.prototype.onSegmentLoadProgress=c.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.vt.setPCR(r.pcr),u.isNumber(r.frameRate)&&e.Ee.setFrameRate(r.frameRate),u.isNumber(r.startOffsetTimestamp)&&e.vt.setStartOffset(r.startOffsetTimestamp),r.lastChunkEndTs&&(e.lastChunkEndTs=r.lastChunkEndTs),r.lastFrameDuration&&(e.lastFrameDuration=r.lastFrameDuration)),e.Rt.onSegmentLoadProgress.call(e,t,i,n)}},h.prototype.kr=c.prototype.kr=function(t,i){var n=this;t&&(n.Rt.kr.call(n,t,i),t.forEach((function(t){n.je[t.type].shouldInit=!1})))},h.prototype.onSynchMetadataReady=c.prototype.onSynchMetadataReady=function(t){var i=this;i.processOnlyMetadata=!1,i.Rt.onSynchMetadataReady.call(i,t)},h.prototype.onManualStreamChange=c.prototype.onManualStreamChange=function(){var t=this;t.ye(),t.lastChunkEndTs={audio:NaN,video:NaN},t.Rt.onManualStreamChange.call(t)},h.prototype.midSegUpSwitch=c.prototype.midSegUpSwitch=function(){var t=this;t.ye(),t.lastChunkEndTs={audio:NaN,video:NaN},t.Rt.midSegUpSwitch.call(t)},h.prototype.ye=c.prototype.ye=function(){this.je={audio:{shouldInit:!0,seqNum:0},video:{shouldInit:!0,seqNum:0}}},h.prototype.Se=c.prototype.Se=function(t,i){},c.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0},h.prototype.Ae=function(t){var i=this;i.lastChunkEndTs={audio:NaN,video:NaN},i.Rt.Ae.call(i,t)}},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.Rt=n.constructor.super_.prototype}e.inherits(s,r),s.prototype.destroy=function(){this.Rt.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.vt=i.__controller.model,i.Ze=t,i.SWITCH_ON_ERROR="switchOnError",i.Si=null,e.call(i,i.constructor.name),i.running=!1}r.inherits(u,e),u.prototype.destroy=function(){var t=this;t.vt=null,t.Ze=null,t.Si=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.Si=t;var r={streamIndex:e,error:t};n.running=!0;var u=n.Ze.getCommand(s.CMD_ERROR_HANDLE);u?u.execute(e):n.Ze.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.Ze.removeCommand(t),i.__controller.notifyError(i.Si)},u.prototype.onLoadComplete=function(){var t=this;t.running=!1;var i=t.Ze.getCommand(s.CMD_ERROR_HANDLE);t.Ze.removeCommand(i)}},1511:function(t,i,n){"use strict";t.exports=a;var e=n(4892),r=n(5557),s=n(2990),o=n(867),u=n(3789);function a(t,i){var n=this;if(n.vt=n.__controller.model,n.Ji=n.vt.config.useWorker,n.eu=n.vt.userAgent,n.Di="HlsTransformer",n.Pi=s.guid(),n.qe=t,n.We=i,n.MIN_BUFFER_LENGTH=5,n.Ki()){if(n.tn=n.__controller.services.getWorker(n.Di),n.tn)return n.tn.addEventListener("message",n.rn.bind(n)),void n.sn(r.MessageIds.CREATE,[t]);n.vt.config.useWorker=!1}n.su=new e(t,i),n.Ji=!1}a.prototype.destroy=function(){var t=this;t.Ji&&t.tn?t.sn(r.MessageIds.DESTROY):t.su.destroy()},a.prototype.close=function(){var t=this;t.Ji&&t.tn?t.sn(r.MessageIds.CALL_METHOD,null,"close"):t.su.close()},a.prototype.append=function(t){var i=this;i.Ji&&i.tn?i.sn(r.MessageIds.CALL_METHOD,[t],"append",[t.buffer]):i.su.append(t)},a.prototype.endOfSegment=function(){var t=this;t.Ji&&t.tn?t.sn(r.MessageIds.CALL_METHOD,null,"endOfSegment"):t.su.endOfSegment()},a.prototype.rn=function(t){if(t){var i=t.data?new u(t.data):t;if(i&&i.instanceId===this.Pi&&(i.id===r.MessageIds.APPEND_SRC_BUFFER||i.id===r.MessageIds.TIMED_METADATA)){var n=i.getParam("parsedInfo");n&&(n.inWorkerScope=!0),this.We(i)}}},a.prototype.Ki=function(){var t=this;return!!t.Ji&&(t.eu.chrome&&!t.eu.win7?t.Ji=!(t.__controller&&t.__controller.getState()>=o.PLAY_REQUESTED)||t.vt.bufferLength>t.MIN_BUFFER_LENGTH:t.Ji=!1,t.Ji)},a.prototype.sn=function(t,i,n,e){var s=this;if(s.tn&&t){var o={type:r.MessageTypes.MESSAGE,id:t,moduleName:s.Di,instanceId:s.Pi,funcName:n,args:i,timestamp:Date.now()};s.tn.postMessage(o,e)}}},4892:function(t,i,n){"use strict";t.exports=a;var e=n(8457),r=n(5328),s=n(6837),o=n(5557),u=n(3789);function a(t,i){var n=this;n.qe=t,n.We=i,n.ou=t.noDemux?null:new e(t.demux,n.processSegmentData.bind(n)),n.uu=new r,n.DEFAULT_WIDTH=640,n.DEFAULT_HEIGHT=360,n.GAP_EPSILON=100,n.au=n.qe.startOffsetTimestamp,n.cu=n.qe.lastChunkEndTs||{audio:NaN,video:NaN},n.fu=n.qe.lastFrameDuration||{audio:NaN,video:NaN},n.Js=n.qe.isAltAudioActive,n.lu=n.qe.prevSegEndTimeStamps;var s=n.qe.mp4State;n.vu={audio:!s||!s.audio||s.audio.shouldInit,video:!s||!s.video||s.video.shouldInit},n.pu={audio:0,video:0},n.bu={audio:{dts:NaN,pts:NaN},video:{dts:NaN,pts:NaN}}}a.prototype.destroy=function(){var t=this;t.ou&&(t.ou.destroy(),t.ou=null),t.uu.destroy()},a.prototype.close=function(){this.ou&&this.ou.destroy()},a.prototype.append=function(t){this.ou&&this.ou.append(t)},a.prototype.endOfSegment=function(){this.ou&&this.ou.endOfSegment()},a.prototype.processSegmentData=function(t){var i=this;if(t&&!t.error){var n,e=t.avData,r=t.pos,s=t.timedMetadata,a=i.qe.startTime,c=i.qe.timescale,h=0;if(e){var f=i.qe.pcr;(null==f||isNaN(f))&&(i.qe.pcr=f=e.pcr-a*c);var l=[],v=e.audio,d=e.video,p=null,b=[];if(v&&v.frames&&v.frames.length&&!i.Js&&(v.type="audio",v.config.timescale=c,v.config.duration=i.qe.duration*v.config.timescale,v.config.useEditBox=i.qe.useEditBox,h=i.mu("audio",v.frames[0],f,a,c),v.frames.forEach((function(t){t.dts-=h,t.pts-=h})),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=c,d.config.duration=i.qe.duration*d.config.timescale,d.config.width=i.qe.width||i.DEFAULT_WIDTH,d.config.height=i.qe.height||i.DEFAULT_HEIGHT,d.config.useEditBox=i.qe.useEditBox,d.frames.length>1){var m=d.frames[1].dts-d.frames[0].dts;d.config.frameRate=d.config.timescale/m,i.qe.frameRate=d.config.frameRate}h=i.mu("video",d.frames[0],f,a,c),d.frames.forEach((function(t){t.dts-=h,t.pts-=h})),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 g=0;g<d.frames.length;g++)for(var y=0;y<d.frames[g].cea608Data.length;y++){var _=d.frames[g].cea608Data[y];_.pts=d.frames[g].pts,_.dts=d.frames[g].dts,_.timescale=d.config.timescale,b.push(_)}}n=new u({type:o.MessageTypes.MESSAGE,id:o.MessageIds.APPEND_SRC_BUFFER});var w={};w.position=i.position=r,w.pcr=f,w.frameRate=i.qe.frameRate,"number"!=typeof i.au&&"number"==typeof p&&(i.au=p),w.startOffsetTimestamp=i.au;var O=i.yu(l);w.lastChunkEndTs=i.cu,w.lastFrameDuration=i.fu,n.putParam("parsedInfo",w);var E=[];O&&O.tracks&&(n.putParam("tracks",O.tracks),O.tracks.forEach((function(t){E.push(t.data.buffer)})),b&&b.length>0&&n.putParam("cea608TrackData",b),n.putParam("transferables",E))}else{if(!s)return;var j=s.pts-i.qe.pcr;h=this._u(j,a,c),s.timestamp=(j-h)/c,delete s.pts,(n=new u({type:o.MessageTypes.MESSAGE,id:o.MessageIds.TIMED_METADATA})).putParam("timedMetadata",s)}i.We&&i.We(n)}},a.prototype.mu=function(t,i,n,e,r){var s=this,o=s.bu[t];isNaN(o.dts)&&isNaN(o.pts)&&(s.bu[t]={dts:i.dts-n,pts:i.pts-n});var u=s.pu[t];return 0!==u?u+n:(s.pu[t]=s._u(s.bu[t].dts,e,r),s.pu[t]+n)},a.prototype._u=function(t,i,n){var e=this;if(!e.qe.discontinuity)return 0;var r=e.lu?e.lu.audio:NaN;return t-(i=isNaN(r)?i*n:r)},a.prototype.yu=function(t){var i=this;if(t&&t.length){var n={tracks:[]};return t.forEach((function(t){if(t){t.config.offset=i.qe.live?0:i.au;var e=i.qe.mp4State,r=i.vu[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.qe.timescale/i.qe.frameRate:"audio"===t.type&&(t.config.defaultFrameDuration=Math.ceil(1024*i.qe.timescale/t.config.samplingFreq)),i.wu(t.type,t.frames,t.config.defaultFrameDuration),i.vu[t.type]=!1,i.qe.onlyMetadata&&(t.frames=[]);var o=i.uu.generate(t);o.onlyMetadata=i.qe.onlyMetadata,n.tracks.push(o)}})),n}},a.prototype.wu=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.cu[t])&&!isNaN(e.cu[t])){var u=o-e.cu[t],a=Math.ceil(2*e.fu[t])-e.GAP_EPSILON,c=Math.ceil(10*e.fu[t]);if(u>a);else if(u<e.fu[t]-e.GAP_EPSILON&&"audio"===t){var h=e.cu[t]+e.fu[t];h-o>n&&(h=o+n-1),i[0].pts=h,i[0].dts=i[0].pts}if(u>a&&u<c)for(var f=Math.floor(u/n),l=0;l<f;l++){var v=i[0].pts,d=i[0].dts;i.unshift(s.deepCopy(i[0])),i[0].pts=v-n,i[0].dts=d-n}}e.cu[t]=r,e.fu[t]=n}}},6473:function(t){"use strict";t.exports=i;function i(){}i.prototype.Ou=function(t,i){for(var n=this,e=i,r=0;n.Eu(t,i);)r+=10,r+=n.ju(t,i+6),n.Su(t,i+10)&&(r+=10),i+=r;return r>0?t.subarray(e,e+r):null},i.prototype.Eu=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.Su=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.ju=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.Ou(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.Au=function(t){return 100===t[5]?self.ju(t,10):0},i.prototype.Mu=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.Ou(t,0);if(!n||!n.length)return null;var e=10+i.Au(n);return{key:i.Mu(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.Eu(t,i);)i++;return i+10>t.length?null:t.subarray(i)}},4361:function(t,i,n){"use strict";t.exports.StreamLoader=c;var e=n(2701).CmdNames,r=n(574).MetadataTypes,s=n(7572),o=n(2990),u=n(2999),a=t.exports.Events={STREAM_LOADED:"streamLoaded",STREAM_LOAD_ERROR:"streamLoadError"};function c(t){var i=this;u.call(i,i.constructor.name),i.vt=i.__controller.model,i.Ze=t,i.Qe=i.__controller.services.metadataParser,i.stream=null,i.loaded=!1}o.inherits(c,u),c.prototype.destroy=function(){u.prototype.destroy.call(this)},c.prototype.load=function(t,i){var n=this;t&&(n.stream=t,n.loaded=!1,n.Ze.executeCommand(e.CMD_STREAM_LOAD,{stream:t,retryOpts:i},n))},c.prototype.cancel=function(){this.Ze.removeRelatedCommands(e.CMD_STREAM_LOAD)},c.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.vt.build(n.Qe.parse(s)),n.Ze.removeCommand(t),n.loaded=!0,n.publish(a.STREAM_LOADED,e)}else n.Ze.removeCommand(t)},c.prototype.onStreamLoadError=function(t,i){var n=this;n.Ze.removeCommand(t);var e=i.code===s.ERR_XHR_LOAD[0]?new s.Error(s.ERR_PLAYLIST_LOAD):i;n.publish(a.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.Tu={},t.Nu=Number.NaN,t.Iu=!1,t.Ru=NaN,t.Lu=[]}r.prototype.destroy=function(){this.Tu={},this.Lu=[]},r.prototype.addStream=function(t){var i=this;i.Lu.push(t),i.Lu.length&&(i.Nu=i.Lu[0].endSeqNum)},r.prototype.update=function(t){var i=this;if(t){var n=i.Cu(t);if(n){var e=i.__controller.model.live;if(e&&(t=n.isDash()?i.ku(t,n):i.Du(t)),n.updateConfig(t),i.Pu(t),e&&!n.isDash()&&i.Nu>=n.endSeqNum){var r=1e3*n.targetDuration,s=!isNaN(r)&&r>0?r:n.refreshInterval;n.refreshInterval=.5*s}i.Nu=n.endSeqNum}}},r.prototype.Cu=function(t){var i=this;if(!t||!i.Lu.length)return null;for(var n=0;n<i.Lu.length;n++)if(i.Lu[n].equals(t))return i.Lu[n];return null},r.prototype.Pu=function(t){var i=this;if(t&&t.segmentInfoList&&t.segmentInfoList[0].programDateTime&&i.Lu.length)for(var n,e=t.segmentInfoList[0],r=0;r<i.Lu.length;r++){var s=i.Lu[r],o=s.segments;if(s.index!==t.index){for(n=0;o&&n<o.length;n++)if(o[n].seqNum===e.sequenceNum){o[n].programDateTime=e.programDateTime;break}}else for(n=1;n<t.segmentInfoList.length;n++){var u=o[n],a=o[n-1];u.programDateTime=a.programDateTime+1e3*a.duration}}},r.prototype.Du=function(t){var i=this;if(!t)return t;var n=t.segmentInfoList;if(!n||!n.length)return t;Object.keys(i.Tu).length||(i.Tu[n[0].sequenceNum]={startTime:n[0].startTime,programDateTime:n[0].programDateTime});var e,r,s,o,u=i.Tu[n[0].sequenceNum];if(u&&"number"==typeof u.startTime)e=i.Tu[n[0].sequenceNum].startTime;else{var a=Object.keys(i.Tu),c=parseInt(a[a.length-1]);n[n.length-1].sequenceNum;var h=0;for(r=1;r<n.length;r++)if(-1!==a.indexOf(n[r].sequenceNum.toString())){h=r;break}if(h)for(e=i.Tu[n[h].sequenceNum].startTime,r=h-1;r>=0;r--)e-=n[r].duration;else{if(n[0].sequenceNum>c)s=parseInt(a[a.length-1]),o=i.Tu[s];else for(r=n[n.length-1].sequenceNum;r<=c;){if(-1!==a.indexOf(r.toString())){s=r,o=i.Tu[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.Iu&&t.discontinuity&&(i.Iu=!0,i.Ru=t.startTime),i.Iu&&!isNaN(i.Ru)&&(t.discontinuity=t.startTime>=i.Ru),i.Tu[t.sequenceNum]||(i.Tu[t.sequenceNum]={startTime:t.startTime,programDateTime:t.programDateTime})})),t},r.prototype.ku=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.Tu),o=s.length?s[0]:null,u=o?r.Tu[o]:null,a=u?(u.programDateTime-n)/1e3-(u.startTime-i):0;a?(s.forEach((function(t){(u=r.Tu[t]).startTime+=a})),t.segments.forEach((function(t){u=r.Tu[t.seqNum],t.startTime=u?u.startTime:t.startTime+a})),t.adjusted=!0):t.adjusted=!0}}},5514:function(t,i,n){"use strict";t.exports=c;var e=n(4460),r=n(2999),s=n(7650),o=n(2990),u=n(9451).userAgent,a=n(8734);function c(t,i,n,e){var s=this;r.call(s,s.constructor.name),s.node=i,s.window=t,s.mediaSource=new t.MediaSource,s.$i=[],s.xu=!1,s.node.mediaKeys?(s.node.src="",s.node.setMediaKeys(null).then((function(){s.gt(t,i,n,e)}))):s.gt(t,i,n,e)}o.inherits(c,r),c.prototype.gt=function(t,i,n,r){var s=this;s.node.src=t.URL.createObjectURL(s.mediaSource),(r=r||{}).userAgent=u,r.inWorkerScope=!1,r.metadata=n,s.appModel=s.create(a,r),s.controller=s.create(e,n),s.xu=!0,s.node.load(),this.Nn()},c.prototype.create=function(){var t=this,i=Array.prototype.slice.call(arguments),n=i.shift(),e=Object.create(n.prototype);return e.wi=t,n.apply(e,i),e},c.prototype.sendEvent=function(t,i){var n=this;n.publish(t,i),t&&s.ExternalEvents.indexOf(t)>=0&&n.node.dispatchEvent(n.Uu(t,i))},c.prototype.getSegInfo=function(){return this.controller?this.controller.getSegInfo():null},c.prototype.notifyError=function(t){var i=this;i.error=t;var n=i.error.type||"decode";"open"===i.mediaSource.readyState&&i.mediaSource.endOfStream(n),i.controller&&i.controller.destroy()},c.prototype.isMimetypeSupported=function(t){return this.window.MediaSource.isTypeSupported(t)},c.prototype.Uu=function(t,i){return new this.window.CustomEvent(t,{detail:i,bubbles:!1,cancelable:!1})},c.prototype.setABRMode=function(t){var i=this;i.controller?i.controller.setABRMode(t):i.$i.push(["setABRMode",[t]])},c.prototype.setSeedStreamIndex=function(t){var i=this;i.controller?i.controller.setSeedStreamIndex(t):i.$i.push(["setSeedStreamIndex",[t]])},c.prototype.setAudioLanguage=function(t){var i=this;i.controller?i.controller.setAudioLanguage(t):i.$i.push(["setAudioLanguage",[t]])},c.prototype.play=function(t){var i=this;i.controller?i.controller.play(t):i.$i.push(["play",[t]])},c.prototype.pause=function(){var t=this;t.controller?t.controller.pause():t.$i.push(["pause"])},c.prototype.preload=function(t){var i=this;i.controller?i.controller.preload(t):i.$i.push(["preload",[t]])},c.prototype.getCurrentDate=function(){return this.controller?this.controller.getCurrentDate():null},c.prototype.clearBuffer=function(){this.controller&&this.controller.clearBuffer()},c.prototype.suspendStreaming=function(){var t=this;t.controller&&(t.xu=!1,t.controller.suspendStreaming())},c.prototype.resumeStreaming=function(){var t=this;t.controller&&!t.xu&&(t.controller.resumeStreaming(),t.xu=!0)},c.prototype.getSyncOffset=function(){return this.controller?this.controller.getSyncOffset():NaN},c.prototype.startSync=function(){this.controller&&this.controller.startSync()},c.prototype.stopSync=function(){this.controller&&this.controller.stopSync()},c.prototype.getSyncState=function(){return this.controller?this.controller.getSyncState():-1},c.prototype.destroy=function(){var t=this;t.controller&&t.controller.destroy(),t.appModel&&t.appModel.destroy(),t.mediaSource=null,t.xu=!1,r.prototype.destroy.call(t)},c.prototype.Nn=function(){var t=this,i=t.$i;t.$i=[],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.Fu=i||{},n._node="string"==typeof t?document.querySelector(t):t||null,Object.defineProperty(n,"error",{enumerable:!0,get:function(){return n.wi?n.wi.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.Bu){i.Bu=t,i.wi&&i.unload();try{i.wi=new e(window,i._node,i.Bu,i.Fu)}catch(t){}}}else i._node.src=""},o.prototype.getSegInfo=function(){try{return this.wi?this.wi.getSegInfo():null}catch(t){return null}},o.prototype.setQuality=function(t){try{this.wi.setABRMode(t)}catch(t){}},o.prototype.setSeedStreamIndex=function(t){try{this.wi.setSeedStreamIndex(t)}catch(t){}},o.prototype.setAudioLanguage=function(t){try{this.wi.setAudioLanguage(t)}catch(t){}},o.prototype.unload=function(){var t=this;t.wi&&t.wi.destroy(),t.wi=null},o.prototype.play=function(t){this.wi&&this.wi.play(t)},o.prototype.pause=function(){var t=this;t.wi?t.wi.pause():t._node&&t._node.pause()},o.prototype.preload=function(t){this.wi&&this.wi.preload(t)},o.prototype.getCurrentDate=function(){if(this.wi)return this.wi.getCurrentDate()||null},o.prototype.clearBuffer=function(){this.wi&&this.wi.clearBuffer()},o.prototype.suspendStreaming=function(){this.wi&&this.wi.suspendStreaming()},o.prototype.resumeStreaming=function(){this.wi&&this.wi.resumeStreaming()},o.prototype.getSyncOffset=function(){return this.wi?this.wi.getSyncOffset():NaN},o.prototype.startSync=function(){this.wi&&this.wi.startSync()},o.prototype.stopSync=function(){this.wi&&this.wi.stopSync()},o.prototype.getSyncState=function(){return this.wi?this.wi.getSyncState():-1},o.prototype.destroy=function(){var t=this;t.wi&&t.wi.destroy(),t.wi=null,t.Bu=null,t.Fu=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}}},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.gn(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.gn=function(t){if(!t)return!1;var i=t.url,n=t.streams&&t.streams.length?this.yn(t.streams[0]):null;return s.isUplynk(i||n)},u.prototype.yn=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.wi.node;this.zu=t||{width:i?i.clientWidth:0,height:i?i.clientHeight:0}},u.prototype.getBufferLength=function(){var t,i,n=this,e=n.wi.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.wi.mediaSource;s=1/0;for(var a=0;a<u.activeSourceBuffers.length;a++){var c=n.Vu(o,u.activeSourceBuffers[a]);c>=0&&(s=Math.min(s,c))}for(t=0;t<r.length;t++)if(o>=r.start(t)&&o<r.end(t)){i=t;break}return i>=0&&r.length&&(s=Math.min(r.end(i)-o,s)),s===1/0&&(s=0),s},u.prototype.Vu=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.wi.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.zu},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.wi.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 a=this;if(a.type=t,a.groupId=i,a.Gu=[],a.Hu=a.__controller.create(o),n){(n=a.Yu(n)).forEach((function(t){var i=a.__controller.create(e,t);a.Gu.push(i),a.Hu.addStream(i)}));var c=a.qu("default");c||(c=a.qu("autoSelect")),c&&(a.setCurrentStream(c),c.type===s.SUBTITLES&&a.__controller.sendEvent(r.CC_VTT_AVAILABLE,{sessionId:a.__controller.model.sessionId})),t===s.AUDIO&&(u&&a.setCurrentStreamWithName(u),a.Wu())}a.Qu()}u.prototype.qu=function(t){for(var i=this,n=0;n<i.Gu.length;n++)if(i.Gu[n][t])return i.Gu[n];return null},u.prototype.destroy=function(){var t=this;t.Gu.forEach((function(t){t.destroy()})),t.Gu=[],t.Hu.destroy()},u.prototype.getCurrentStream=function(){return this.Ee},u.prototype.setCurrentStream=function(t){t&&(this.Ee=t)},u.prototype.setCurrentStreamWithName=function(t){var i=this;if(!t||!i.Ee||t===i.Ee.name)return!1;for(var n=0;n<i.Gu.length;n++){var e=i.Gu[n];if(t===e.name)return i.setCurrentStream(e),!0}return!1},u.prototype.update=function(t){this.Hu.update(t)},u.prototype.adjustStartTime=function(t,i){var n=this;n.Gu.forEach((function(e){e.adjusted||n.Hu.adjustStartTime(e,t,i)}))},u.prototype.getContainerFormat=function(){return this.Ee?this.Ee.containerFormat:null},u.prototype.setContainerFormat=function(t){this.Gu.forEach((function(i){i.containerFormat||(i.containerFormat=t)}))},u.prototype.getDrmInfo=function(){for(var t=[],i=0;i<this.Gu.length;i++){var n=this.Gu[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.Gu.length>0},u.prototype.Qu=function(){return!0},u.prototype.Wu=function(){var t=this,i={},n=[];t.Gu.forEach((function(e){i[e.name]||(i[e.name]=1,n.push({name:e.name,language:e.language,selected:t.Ee&&e.name===t.Ee.name}))})),n.length>1&&t.__controller.sendEvent(r.MULTI_LANGUAGES_AVAILABLE,{sessionId:t.__controller.model.sessionId,languages:n})},u.prototype.Yu=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),a=u.Stream,c=u.StreamTypes,h=n(574).StreamingMode;function f(t){var i=this;i.constructor.super_.call(i),i.Rt=i.constructor.super_.prototype,i.segments=[],t&&i.updateConfig(t)}s.inherits(f,a),f.prototype.destroy=function(){var t=this;t.segments=[],t.Rt.destroy.call(t)},f.prototype.updateConfig=function(t){var i=this;i.Rt.updateConfig.call(i,t),t&&(i.type=t.type||i.type,i.groupId=t.groupId||i.groupId,i.language=t.language||i.language,i.name=t.name||i.name,i.default=o.isNullOrUndefined(t.default)?i.default:t.default,i.autoSelect=o.isNullOrUndefined(t.autoSelect)?i.autoSelect:t.autoSelect,i.forced=o.isNullOrUndefined(t.forced)?i.forced:t.forced);var n=e;i.type===c.SUBTITLES&&(n=i.streamingMode===h.DASH&&"mp4"===t.containerFormat?e:r),t.segmentInfoList&&t.segmentInfoList.length&&(i.segments=t.segmentInfoList.map((function(t){return t.bitrate=i.bitrate,t.sessionId=i.sessionId,t.cdn=i.cdn,i.__controller.create(n,t)}))),i.segments.length&&(i.startSeqNum=i.segments[0].seqNum,i.endSeqNum=i.segments[i.segments.length-1].seqNum),i.adjusted=i.type===c.MAIN||i.adjusted},f.prototype.equals=function(t){var i=this;return!!t&&(i.url===t.url&&i.groupId===t.groupId&&i.name===t.name)},f.prototype.setStreamIndex=function(){},f.prototype.dto=function(){}},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.Zu={}}r.prototype.destroy=function(){var t=this;Object.keys(t.Zu).forEach((function(i){var n=t.Zu[i];n&&n.destroy()})),t.Zu={}},r.prototype.add=function(t){var i=this;if(!t||!t.url)return null;var n=i.$u(t);return i.Zu[n]||(i.Zu[n]=new e({name:"init",url:t.url,range:t.range})),i.Zu[n]},r.prototype.remove=function(t){var i=this;if(t&&t.url){var n=i.$u(t);(t=i.Zu[n])&&(t.destroy(),delete i.Zu[n])}},r.prototype.get=function(t){if(!t||!t.url)return null;var i=this.$u(t);return this.Zu[i]},r.prototype.getFirst=function(){var t=Object.keys(this.Zu);return t&&t.length?this.Zu[t[0]]:null},r.prototype.$u=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,a=n(676),c=n(7650).HLSEvent,h=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.Xu={},i.streams=[],i.altRenditionGroups=[],i.Ju=i.__controller.create(v),i.Ku(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.ia=r.AUTO,i.na=0,i.Tu={},i.currentLoadingStreamIndex=-1,i.currentLoadingSeqNum=-1,i.ea=null,i.ra=null,i.sa=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.Tu={},t.Ju.destroy(),t.timedMetadataStore=null},d.prototype.configure=function(t,i){var n=this;n.config=n.config||f.deepCopy(h),n.userAgent=i,t&&(Object.keys(t).forEach((function(i){n.config.hasOwnProperty(i)&&(n.config[i]=t[i])})),n.inWorkerScope=t.inWorkerScope),f.isNullOrUndefined(n.config.demux.startChunkWithKeyFrame)&&n.userAgent&&(n.config.demux.startChunkWithKeyFrame=!(n.userAgent.chrome&&n.userAgent.chrome>=50))},d.prototype.build=function(t){var i=this;if(t){t.streamingMode===e.DASH&&(i.sa=t.streamingMode,i.drmRequired=t.drm,i.oa=t,i.live=!(!t.type||"dynamic"!==t.type.toLowerCase()));var n=i.aa(t.renditionGroups);i.ca(t.streamInfoList,n)}},d.prototype.ha=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.aa=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.fa(n,t),s=e[t];s&&s.length&&(i.la(s[0]),r?i.va(n,t,s):i.pa(n,t,s))}))})),i.ha(i.altRenditionGroups),i.altRenditionGroups):i.altRenditionGroups},d.prototype.fa=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.pa=function(t,i,n){var e=this,r=e.metadata&&e.metadata.currLang,s=e.__controller.create(a,t,i,n,r);e.altRenditionGroups.push(s)},d.prototype.va=function(t,i,n){if(n&&n.length){var e=this.fa(t,i);n.forEach((function(t){e.update(t)}))}},d.prototype.ca=function(t,i){var n=this;t&&t.length&&((t=n.Yu(t)).forEach((function(t){t.sessionId=n.sessionId,t.type=u.MAIN,n.la(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.ha(n.streams),n.ba(),n.duration=n.live?NaN:t[0].duration)},d.prototype.Yu=function(t){return t&&t.length?(this.userAgent.firefox&&t[0].channels&&(t=this.ma(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"))return!1;return!0}))):t},d.prototype.ma=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.sa===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.Ju.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.Ju.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.ea||void 0===i.ea||isNaN(i.ea))&&(i.ea=t,i.__controller.sendEvent(c.PCR_AVAILABLE,t))},d.prototype.getPCR=function(){return this.ea},d.prototype.setLivePlaybackStartTime=function(t){this.ra=t},d.prototype.getLivePlaybackStartTime=function(){return this.ra},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.fa(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.Ku=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.Xu=e&&1===e.length?e[0]:t),r&&r.length&&(n.metadata.hasAltStreamMetadata=!0)}},d.prototype.ba=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.ga=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.ia;return i.ia=r.AUTO,Object.keys(r).forEach((function(n){r[n]===t.preference&&(i.ia=t.preference)})),i.na=1e3*t.stream.bitrate,n!==i.ia},d.prototype.getABRMode=function(){return this.ia},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.ia,streamingMode:t.sa,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.na},d.prototype.la=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.Xu.url||"";return!i.length&&t.Xu.host&&t.Xu.path&&(i=t.Xu.host+t.Xu.path),i},d.prototype.getMediaCdn=function(){return this.Xu.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.ya(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.ya=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._a=0,i.li=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.li&&i.data){n=Math.min(t.byteLength,i.li-i._a);for(var e=0;e<n;e++)i.data[i._a+e]=t[e];i._a+=n,i._a>=i.li&&(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._a+=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.wa=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.Oa=0}t.exports=i,i.prototype.setStreamIndex=function(t){var i=this;i.streamIndex=t,i.wa=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=h;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,a=n(2835),c=n(87);function h(t,i){var n=this;n.segments=[],n.cuepoints=[],n.dateRanges={},n.type=e.MAIN,n.videoCodec=null,n.audioCodec=null,n.mp4Chunks={sidx:null,first:null},n.adjusted=!1,n.Ea=new c(n),n.activeInitSegment=null,t&&(n.Sa(t,i),n.updateConfig(t)),n.Ur=new a}h.prototype.destroy=function(){var t=this;t.segments=[],t.cuepoints=[],t.dateRanges={},"mp4"===t.containerFormat&&Object.keys(t.mp4Chunks).forEach((function(i){var n=t.mp4Chunks[i];n&&n.destroy()})),t.Ea.destroy()},h.prototype.Sa=function(t,i){var n=this;if(n.altRenditionGroups={},i)for(var e=0;e<i.length;e++){var r=i[e];r.groupId===t.audioGroupId?(n.altRenditionGroups.AUDIO=r,n.audioGroupId=t.audioGroupId):r.groupId===t.videoGroupId?(n.altRenditionGroups.VIDEO=r,n.videoGroupId=t.videoGroupId):r.groupId===t.subtitlesGroupId?(n.altRenditionGroups.SUBTITLES=r,n.subtitlesGroupId=t.subtitlesGroupId):r.groupId===t.ccGroupId&&(n.altRenditionGroups.CLOSED_CAPTIONS=r,n.ccGroupId=t.ccGroupId)}},h.prototype.getAlternateStream=function(t){if(this.altRenditionGroups[t])return this.altRenditionGroups[t].getCurrentStream()},h.prototype.setAlternateStream=function(t,i){this.altRenditionGroups[t]&&this.altRenditionGroups[t].setCurrentStream(i)},h.prototype.updateConfig=function(t){var i=this,n=i.audioCodec&&i.audioCodec.length>0;if(t&&(i.streamingMode=t.streamingMode||i.streamingMode,i.bitrate=t.bitrate||i.bitrate,i.avgBitrate=t.avgBitrate||i.avgBitrate,i.url=t.url||i.url,i.containerFormat=t.containerFormat||i.containerFormat,i.cdn=t.cdn||i.cdn,i.rcMode=t.rcMode||"cbr",i.channels=t.channels>=0?t.channels:i.channels,i.width=t.width>=0?t.width:i.width,i.height=t.height>=0?t.height:i.height,i.index=t.index>=0?t.index:i.index,i.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.Aa("sidx",i.sidxOffset,i.sidxLength,i.hlsInfo.mp4_url),i.mp4Chunks.first=i.Aa("first",i.firstSegOffset,i.firstSegLength,i.hlsInfo.mp4_url)),t.drmInfo&&(i.drmInfo=t.drmInfo),i.Ma(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.Ta(i.segments,t.segmentInfoList),t.segmentInfoList.forEach((function(t){t.levelIndex=i.index,t.bitrate=i.bitrate,t.sessionId=i.sessionId,t.cdn=i.cdn;var n=i.getSegmentfromSeqNum(t.sequenceNum);n&&(t.endTimestamps=n.endTimestamps),o.push(i.__controller.create(r,t))})),o.length&&(i.segments=o,i.startSeqNum=o[0].seqNum,i.endSeqNum=o[o.length-1].seqNum,t.cuepointList&&t.cuepointList.length&&(t.cuepointList.forEach((function(t){i.hasCuepoint(t.startSeqNum)||i.cuepoints.push(new s(t))})),i.updateCuepointTime()))}i.segments&&i.segments.length&&(i.refreshInterval=1e3*i.segments[i.segments.length-1].duration);var u=i.altRenditionGroups?i.altRenditionGroups.AUDIO:null;i.type===e.MAIN&&u&&i.containerFormat&&!u.getContainerFormat()&&u.setContainerFormat("ts"===i.containerFormat?"aac":"mp4")},h.prototype.Ta=function(t,i){t&&t.length&&t.forEach((function(t){t.seqNum!==i[0].sequenceNum||(i[0].programDateTime=t.programDateTime)}))},h.prototype.addInitSegment=function(t){return"mp4"===this.containerFormat?this.Ea.add(t):null},h.prototype.getInitSegment=function(t){var i=this;if(!t){if(!i.segments.length)return null;t=i.segments[0]}return i.Ea.get(t.initSegment)},h.prototype.Aa=function(t,i,n,e){var r,s=this.mp4Chunks[t];return s||("mp4"===this.containerFormat&&e?(i>=0&&n>=0&&(r={start:i,end:i+n-1}),new o({name:t,url:e,range:r})):null)},h.prototype.getMp4Chunk=function(t){return"mp4"===this.containerFormat?this.mp4Chunks[t]:null},h.prototype.dto=function(){var t=this,i={segments:[],cuepoints:[]},n=["segments","__controller","cuepoints","altRenditionGroups","_initSegmentCache","activeInitSegment"];return Object.keys(t).forEach((function(e){n.indexOf(e)>=0||(i[e]=t[e])})),t.segments.forEach((function(t){i.segments.push(t.dto())})),t.cuepoints.forEach((function(t){i.cuepoints.push(t.dto())})),i},h.prototype.setStreamIndex=function(t){this.index=t,this.segments.forEach((function(i){i.setStreamIndex(t)}))},h.prototype.getSeqNumBeforePosition=function(t){var i=this;if(!i.segments.length)return NaN;if(t<i.segments[0].startTime)return i.startSeqNum;for(var n=0;n<i.segments.length;n++){var e=i.segments[n];if(e&&e.startTime<=t&&e.startTime+e.duration>t)return i.startSeqNum+n}var r=i.segments[i.segments.length-1];return r&&r.startTime+r.duration===t?i.endSeqNum:NaN},h.prototype.getSegmentfromSeqNum=function(t){var i=this,n=i.getIndexFromSeqNum(t);return n>=0&&n<i.segments.length?i.segments[n]:null},h.prototype.getIndexFromSeqNum=function(t){var i=this;if(t>=i.startSeqNum&&t<=i.endSeqNum)for(var n=0;n<i.segments.length;n++)if(i.segments[n]&&i.segments[n].seqNum===t)return n;return-1},h.prototype.contains=function(t){return t>=this.startSeqNum&&t<=this.endSeqNum},h.prototype.isEmpty=function(){return 0===this.segments.length},h.prototype.isReady=function(){var t=this;if("mp4"!==t.containerFormat)return t.url&&t.segments.length>0;var i=t.Ea.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},h.prototype.hasCuepoint=function(t){for(var i=this.cuepoints.length-1;i>=0;i--)if(this.cuepoints[i].startSeqNum===t)return!0;return!1},h.prototype.updateCuepointTime=function(){for(var t,i=this,n=0;n<i.cuepoints.length;n++)(t=i.getSegmentfromSeqNum(i.cuepoints[n].startSeqNum))&&i.cuepoints[n].setCueOutStartTime(t.startTime)},h.prototype.equals=function(t){var i=this;return!!t&&(i.url===t.url&&i.type===t.type&&(i.isDash()?i.groupId===t.groupId:i.index===t.index))},h.prototype.updateSegmentRanges=function(t){var i=this;if(t&&t.length)for(var n=0;n<t.length&&n<i.segments.length;n++)i.segments[n].brStartOffset=t[n].brStartOffset,i.segments[n].brEndOffset=t[n].brEndOffset},h.prototype.setMp4Timescale=function(t){var i=this;if("mp4"===i.containerFormat&&t&&t.loaded&&t.data){var n=i.Ur.parse(t.data,"mdhd");if(n&&n.timescale>0)i.timescale=n.timescale;else{var e=i.Ur.parse(t.data,"mvhd");i.timescale=e.timescale}}},h.prototype.isDash=function(){return this.streamingMode===u.DASH},h.prototype.setFrameRate=function(t){t&&(this.frameRate=t)},h.prototype.getDrmInfo=function(){return this.drmInfo},h.prototype.Ma=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[:=]([^,]+)/),a=new RegExp(/MPEGTS[:=]([^,]+)/);r=0,e=0;var c=u.exec(o);if(c&&c.length>=2){var h=c[1].split(":");if(h&&h.length>=3){var f=h[2].split("."),l=0,v=0;f&&f.length>=2&&(l=parseInt(f[0]),v=parseInt(f[1])),r=1e3*(3600*h[0]+60*h[1]+l)+v,r%=n}}var d=a.exec(o);d&&d.length>=2&&(e=parseFloat(d[1]),e=Math.round(e/90)),t.clockReference=t.pcr(),t.localCueTime=r,t.mpegTSTime=e,null===t.clockReference||t.clockReference}else if(o.indexOf("--\x3e")>=0){var p=o.split("--\x3e");if(p){var b=p[0].split(":");if(b){var m=1e3*(3600*parseInt(b[0])+60*parseInt(b[1])+parseFloat(b[2]));null!==t.clockReference&&void 0!==t.clockReference||(t.clockReference=m%n+t.mpegTSTime)}}break}}t.adjustedTime=e-r-t.clockReference+t.offset}}},i.prototype.pcr=function(){var t=this;if(!t.__controller)return 0;var i=t.__controller.model,n=i.getPCR();if("number"!=typeof n)return null;if(n=n/t.__controller.model.timescale*1e3,i.live&&n<0){var e=-Math.floor(Math.pow(2,32)/90),r=Math.floor((Math.pow(2,32)-1)/90);n=Math.abs(n-e)+r}return n},i.prototype.isBuffered=function(){return!!this.data}},2835:function(t,i,n){"use strict";t.exports=s;var e=n(3288),r=n(6837);function s(){this.Na=0}s.prototype.destroy=function(){this.Na=0},s.prototype.parse=function(t,i,n){var s=this;if(!t||!i||!e[i])return null;s.Na=0;var o=new DataView(t.buffer);if(r.isNullOrUndefined(n)?(n=s.findBoxOffset(o,i),s.Na=n):s.Na=n,s.Na<0)return null;var u=s.parseHeader(o,i,s.Na);return!u||u.boxSize>o.byteLength?null:"sidx"===u.boxType?s.Ia(o,u,n):s._i(o,u)},s.prototype.Ra=function(t){var i=this,n=[];if(!t)return n;i.Na=0;for(var r=new DataView(t.buffer);i.Na+8<=r.byteLength;){var s=i.Na,o=i.La(r.getUint32(s+4),4);if(e[o]){var u=i.parseHeader(r,o,s);u&&("sidx"===u.boxType?n.push(i.Ia(r,u)):n.push(i._i(r,u)))}else i.Na++}return n},s.prototype.parseHeader=function(t,i,n){var r=this,s={boxOffset:n};r.Na=n;var o=r.Ca(t,s);return-1===o||s.boxType!==i||e[i].fullBox&&-1===(o=r.ka(t,s))?null:s},s.prototype.extractVttCaptions=function(t){var i=this,n=[];if(i.Na=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.Ra(s);if(!o.length)return n;for(var u=0;u<o.length;u++){var a=o[u];if(a)if("vttc"===a.boxType){i.Na=0;var c=s.slice(a.boxOffset+8,a.boxOffset+a.boxSize),h=i.Ra(c);n.push(i.Da(h))}else"vtte"===a.boxType&&n.push({})}return n},s.prototype._i=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.Na+=i.boxSize-(s.fullBox?12:8),i;for(var u=Object.keys(o),a=0;a<u.length;a++){var c=u[a],h=o[c];if(r.Pa(h.validator,i[h.validationProperty]||i.flags,h.validationResult))if("array"===h.type){i[c]=[];var f=h.length||h.lengthField&&i[h.lengthField],l=h.itemSchema;if(!l)break;f?r.xa(i,c,t,f,l,n):r.Ua(i,c,t,l)}else r.Fa(t,h,n,c),i[c]=r.Ba(i,h,t)}return i},s.prototype.Fa=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.za(t,n)}},s.prototype.xa=function(t,i,n,e,r,s){for(var o,u=this,a=0;a<e;a++){if(r.length)o=u.Ba(t,r,n);else{o={};for(var c=Object.keys(r),h=0;h<c.length;h++){var f=c[h],l=r[f];u.Pa(l.validator,t.flags)&&(u.Fa(n,l,s,f,a,e),o[f]=u.Ba(t,l,n))}}t[i].push(o)}},s.prototype.Ua=function(t,i,n,e){for(var r;this.Na<t.boxOffset+t.boxSize;)r=this.Ba(t,e,n),t[i].push(r)},s.prototype.Pa=function(t,i,n){return!t||(n?(i&t)===n:i&t)},s.prototype.Ba=function(t,i,n){var e,r=this;return i.length&&(e=r.Va(n,i.length),r.Na+=e.readBytes,e.readBytes===i.length/8)?"string"===i.type?r.La(e.value,4):e.value:"string"===i.type?r.Ga(t,n):"boxstring"===i.type?r.Ha(t,n):null},s.prototype.Va=function(t,i){var n=this,e={value:0,readBytes:0},r=i/8;if(n.Na+r<=t.byteLength){switch(i){case 8:e.value=t.getUint8(n.Na);break;case 16:e.value=t.getUint16(n.Na);break;case 32:e.value=t.getUint32(n.Na);break;case 64:for(var s=new Uint8Array(8),o=0;o<8;o++)s[o]=t.getUint8(n.Na+o);e.value=s}e.readBytes=r}return e},s.prototype.za=function(t,i){var n=this,e=i.value;switch(i.length){case 8:t.setUint8(n.Na,e);break;case 16:t.setUint16(n.Na,e);break;case 32:t.setUint32(n.Na,e)}},s.prototype.Ga=function(t,i){var n=this,e="",r=n.Va(i,8);for(n.Na+=r.readBytes;r.readBytes>0&&r.value>0&&n.Na<t.boxOffset+t.boxSize;)e+=String.fromCharCode(r.value),r=n.Va(i,8),n.Na+=r.readBytes;return e},s.prototype.Ha=function(t,i){var n=this,e=t.boxSize-(n.Na-t.boxOffset),r=String.fromCharCode.apply(null,new Uint8Array(i.buffer,n.Na,e));return n.Na+=e,r},s.prototype.findBoxOffset=function(t,i){if(!t||t.byteLength<8)return-1;var n,r=e[i].parents,s=0;if(r&&r.length>0){for(var o=!1,u=0;u<r.length;u++){var a=r[u];if((n=this.findBoxOffset(t,a))>=0){s=n+(e[a].fullBox?12:8);var c=e[a].payload;c&&(s+=c),o=!0;break}}if(!o)return-1}for(;s+8<=t.byteLength;){if(this.La(t.getUint32(s+4),4)===i)return s;var h=t.getUint32(s);if(!(h>0))break;s+=h}return-1},s.prototype.Ca=function(t,i){var n=this;if(!t||!i||t.byteLength<8)return-1;i.boxSize=t.getUint32(n.Na),n.Na+=4;var e=t.getUint32(n.Na);return i.boxType=n.La(e,4),n.Na+=4,1===i.boxSize&&(i.boxSize=n.Ya(t),n.Na+=8),0},s.prototype.ka=function(t,i){if(!t||!i)return-1;var n=t.getUint32(this.Na);return i.boxVersion=n>>24,i.flags=16777215&n,this.Na+=4,0},s.prototype.Ia=function(t,i,n){var e,r=this;if(!t||!i)return null;n=n||0,r.Na+=4,r.Na+=4,0===i.boxVersion?(t.getUint32(r.Na),r.Na+=4,e=t.getUint32(r.Na),r.Na+=4):(r.Ya(t),r.Na+=8,e=r.Ya(t),r.Na+=8),r.Na+=2;var s=t.getUint16(r.Na);r.Na+=2;for(var o=i.boxOffset+i.boxSize+e,u=[],a=0;a<s;a++){var c=t.getUint32(r.Na);if(r.Na+=4,1===c>>>31)return null;var h=2147483647&c;r.Na+=8,u.push({brStartOffset:o+n,brEndOffset:o+n+h-1}),o+=h}return u},s.prototype.setSingleProp=function(t,i,n){var e=this;if(t&&i){var r=new DataView(t.buffer),s=e.findBoxOffset(r,i);if(!(s<0)){e.Na=s;var o=e.parseHeader(r,i,s);o&&e._i(r,o,n)}}},s.prototype.La=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.Ya=function(t){var i=this.Na,n=t.getUint32(i);i+=4;var e=t.getUint32(i);return n*Math.pow(2,32)+e},s.prototype.Da=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.qa("ftyp",[i,n,e])},i.prototype.moov=function(t){var i=this,n=[];n.push(i.Wa(t[0].config.duration,t[0].config.timescale));for(var e=0;e<t.length;e++)n.push(i.Qa(t[e]));return n.push(i.Za(t)),i.qa("moov",n)},i.prototype.moof=function(t,i){var n=this,e=[];e.push(n.$a(t));for(var r=0;r<i.length;r++){var s=n.Xa(i[r]);e.push(s)}return n.qa("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.qa("mdat",i)},i.prototype.$a=function(t){var i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,t),this.Ja("mfhd",0,new Uint8Array(3),[i])},i.prototype.Xa=function(t){if(t){var i,n,e=this,r=[],s=32,o=e.Ka(t);return s+=o.length,r.push(o),t.frames&&t.frames.length&&(s+=(i=e.tc(t.frames[0].dts)).length,r.push(i)),"video"===t.type&&(s+=(n=e.ic(t)).length),r.push(e.ec(t,s)),n&&r.push(n),e.qa("traf",r)}},i.prototype.Ka=function(t){var i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,t.streamId),this.Ja("tfhd",0,new Uint8Array([0,0,0]),[i])},i.prototype.tc=function(t){var i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,Math.max(0,t)),this.Ja("tfdt",0,new Uint8Array([0,0,0]),[i])},i.prototype.ec=function(t,i){var n=this,e=t.frames||[],r=e.length,s=n.rc(e),o=0,u=s[1],a=0;for(a=0;a<4;a++)o+=u&1<<a?1:0;var c=new Uint8Array(4*o*r),h=new DataView(c.buffer);i+=20+c.length+8;var f=n.sc(r,i),l=0;for(a=0;a<r;a++){var v=e[a];if(1&u&&(h.setUint32(l,v.duration),l+=4),2&u&&(h.setUint32(l,v.size),l+=4),4&u){var d=(v.flags.isLeading<<2|v.flags.dependsOn)<<24|(v.flags.isDependedOn<<6|v.flags.hasRedundancy<<4|v.flags.paddingValue<<1|v.flags.isNonSyncSample)<<16|(240&v.flags.degradationPriority)<<8|15&v.flags.degradationPriority;h.setUint32(l,d),l+=4}8&u&&(h.setUint32(l,v.pts-v.dts),l+=4)}return n.Ja("trun",0,s,[f,c])},i.prototype.ic=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.Ja("sdtp",0,new Uint8Array(3),[e])},i.prototype.sc=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.rc=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.Wa=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.Ja("mvhd",0,new Uint8Array(3),[n])},i.prototype.Qa=function(t){var i=this;t.config.duration=t.config.duration||4294967295;var n=[i.oc(t)];return t.config.useEditBox&&n.push(i.uc(t)),n.push(i.ac(t)),i.qa("trak",n)},i.prototype.oc=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.Ja("tkhd",0,new Uint8Array([0,0,7]),[i])},i.prototype.uc=function(t){return this.qa("edts",[this.cc(t)])},i.prototype.cc=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.Ja("elst",0,new Uint8Array(3),[i])},i.prototype.ac=function(t){var i=this;return i.qa("mdia",[i.hc(t),i.fc(t.type),i.lc(t)])},i.prototype.hc=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.Ja("mdhd",0,new Uint8Array(3),[i])},i.prototype.fc=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.Ja("hdlr",0,new Uint8Array(3),[n])},i.prototype.lc=function(t){var i=this,n="audio"===t.type?i.vc():i.dc();return i.qa("minf",[n,i.bc(),i.mc(t)])},i.prototype.dc=function(){var t=new Uint8Array(8);return this.Ja("vmhd",0,new Uint8Array([0,0,1]),[t])},i.prototype.vc=function(){var t=new Uint8Array(4);return this.Ja("smhd",0,new Uint8Array(3),[t])},i.prototype.bc=function(){return this.qa("dinf",[this.gc()])},i.prototype.gc=function(){var t=new Uint8Array([0,0,0,1]),i=[];return i.push(t),i.push(this.Lt(new Uint8Array([0,0,1]))),this.Ja("dref",0,new Uint8Array(3),i)},i.prototype.Lt=function(t){return this.Ja("url ",0,t,[])},i.prototype.yc=function(t){return this.Ja("urn ",0,t,[])},i.prototype.mc=function(t){var i=this;return i.qa("stbl",[i._c(t),i.wc(),i.Oc(),i.Ec(),i.jc()])},i.prototype._c=function(t){var i=this,n="audio"===t.type?i.Sc(t):i.Ac(t),e=new Uint8Array([0,0,0,1]);return i.Ja("stsd",0,new Uint8Array(3),[e,n])},i.prototype.Ac=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.qa("avc1",[r,i.qa("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.Mc()])},i.prototype.Mc=function(){var t=new Uint8Array(12);return new DataView(t.buffer).setUint32(0,1875072),this.qa("btrt",[t])},i.prototype.Sc=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.qa("mp4a",[i,e,this.Tc(t)])},i.prototype.Tc=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.Ja("esds",0,new Uint8Array(3),[i])},i.prototype.wc=function(){var t=new Uint8Array(4);return this.Ja("stts",0,new Uint8Array(3),[t])},i.prototype.Oc=function(){var t=new Uint8Array(4);return this.Ja("stsc",0,new Uint8Array(3),[t])},i.prototype.Ec=function(){var t=new Uint8Array(8);return this.Ja("stsz",0,new Uint8Array(3),[t])},i.prototype.jc=function(){var t=new Uint8Array(4);return this.Ja("stco",0,new Uint8Array(3),[t])},i.prototype.Za=function(t){for(var i=[],n=0;n<t.length;n++)i.push(this.Nc(t[n]));return this.qa("mvex",i)},i.prototype.Nc=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.Ja("trex",0,new Uint8Array(3),[i])},i.prototype.Ja=function(t,i,n,e){var r=new Uint8Array(1);r[0]=i;var s=[r,n];return s=s.concat(e),this.qa(t,s)},i.prototype.qa=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.Ic=null,this.Rc=new e}r.prototype.destroy=function(){this.Ic=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.Lc(n,u))?e.length:0}t.frames.length&&(o+=(r=i.Cc(n))?r.length:0,o+=(s=i.kc(n))?s.length:0),i.Ic=new Uint8Array(o);var a=0;e&&(i.Ic.set(e,a),a+=e.length),r&&(i.Ic.set(r,a),a+=r.length),s&&(i.Ic.set(s,a),a+=s.length);var c=t.frames.length>0?t.frames[t.frames.length-1].duration:0,h=t.endTime+c;return{data:i.Ic,type:t.type,codec:t.config.codec,mimeType:t.type+'/mp4; codecs="'+t.config.codec+'"',startTime:t.frames.length?t.startTime/t.config.timescale:0,endTime:t.frames.length?h/t.config.timescale:0,endTimestamp:h}},r.prototype.Lc=function(t,i){if(!t||!t.length)return null;var n=this.Rc.initSegment(t,i);return n||null},r.prototype.Cc=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.Dc(t.type.track.config.timescale),n.duration}))})),i.Rc.moof(n,t)):null},r.prototype.kc=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.Rc.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.Dc=function(t,i){return("audio"===t?.0232199546:.0333333333)*i}},4838:function(t,i,n){"use strict";t.exports=h;var e=n(3713),r=n(2990),s=n(6837),o=n(2999),u=n(4641),a=n(7279).AACStream,c=n(7650).HLSEvent.PCR_AVAILABLE;function h(t){var i=this;o.call(i,i.constructor.name),i.Pc=t,i.C=null,i.xc="start",i.St=new a,i.Uc=!1,i.X={},i.Fc=i.__controller.create(e,t,i.Bc.bind(i)),i.zc=t.lastChunkEndTs?t.lastChunkEndTs.audio:NaN,i.Vc=t.lastFrameDuration?t.lastFrameDuration.audio:NaN,s.isNullOrUndefined(i.Pc.pcr)&&(i.X[c]=i.__controller.addEventListener(c,i.Gc,i))}r.inherits(h,o),h.prototype.destroy=function(){var t=this;t.close(),t.Fc.destroy(),t.St.destroy(),o.prototype.destroy.call(t)},h.prototype.setSource=function(t){this.Hc=t,this.ae()},h.prototype.ae=function(){var t=this;t.Hc&&(t.Hc.addEventListener(u.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.Hc.addEventListener(u.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.Hc.addEventListener(u.DATA_PROCESS_ERROR,(function(i){t.publish(u.DATA_PROCESS_ERROR,i)}),t))},h.prototype.close=function(){var t=this;t.C=null,t.__controller.removeEventListener(c,t.X[c]),t.Fc.close()},h.prototype.append=function(t){var i=this;if(t){var n=t.length;if(n){var e=null,r=0;i.C&&(r=(e=i.C).length);var s=r+n;i.C=new Uint8Array(s),e&&i.C.set(e),i.C.set(t,r),i._i()}}},h.prototype.Gc=function(t){var i=this;i.Pc.pcr=t,i._i(),i.__controller.removeEventListener(c,i.X[c])},h.prototype._i=function(){var t=this,i=t.Pc.pcr;if(!s.isNullOrUndefined(i)){if(t.C&&t.C.length>0){var n;n=t.zc&&t.Vc?i+t.zc+t.Vc:i+t.Pc.startTime*t.Pc.timescale;var e=t.St.readFramesFromBitstream(t.C,n);t.C=t.C.subarray(e)}var r=t.St.getLastFrameDetails();r&&(t.zc=r.timestamp-i,t.Vc=r.duration),(t.St.ready||t.Uc)&&t.Yc()}},h.prototype.Yc=function(){var t=this,i=t.St.getFrames(),n=i&&i.length>0;if("end"===t.xc||n){var e=n?i[0].dts:null,r={audio:{frames:i,config:t.St.getConfig()},pcr:e};t.Fc.processSegmentData({avData:r,pos:t.xc}),"start"===t.xc&&(t.xc="middle")}},h.prototype.endOfSegment=function(){var t=this;t.xc="end",t.Uc=!0,t._i(),t.Fc.endOfSegment()},h.prototype.Bc=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=a,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 a(){var t=this;t.eu=t.__controller.model.userAgent,s.call(t,t.constructor.name),"undefined"==typeof window?t.qc=crypto||msCrypto:t.qc=window.crypto||window.msCrypto,t.qc=t.qc.subtle||t.qc.webkitSubtle,t.C=null,t.Wc=null,t.Qc={name:"AES-CBC",length:128,iv:null}}r.inherits(a,s),a.prototype.destroy=function(){this.close(),s.prototype.destroy.call(this)},a.prototype.close=function(){var t=this;t.C=null,t.Zc=null,t.Wc=null,t.$c=null},a.prototype.append=function(t){t&&("key"===t.type?this.Xc(t):this.Jc(t))},a.prototype.Jc=function(t){var i=this;if(t)if(i.Zc){var n=new Uint8Array(i.Zc.byteLength+t.byteLength);n.set(new Uint8Array(i.Zc),0),n.set(new Uint8Array(t),i.Zc.byteLength),i.Zc=n}else i.Zc=t},a.prototype.Xc=function(t){var i=this;t&&(t.initVector||(t.initVector=i.Kc(t.seqNum)),i.Wc=t,i.Qc.iv=i.ih(t.initVector).buffer,11!==i.eu.ie?i.qc.importKey("raw",t.data,i.Qc,!0,["decrypt"]).then((function(t){i.$c=t,i.nh()}),(function(t){i.An(o,t)})):i.eh(t))},a.prototype.eh=function(t){var i=this,n=i.qc.importKey("raw",t.data,i.Qc,!0,["decrypt"]);n?(n.onerror=function(t){i.An(o,t)},n.oncomplete=function(t){i.$c=t&&t.target?t.target.result:null,i.nh()}):i.An("Key Import operation is not created in IE-11")},a.prototype.nh=function(){var t=this;if(t.$c&&t.Zc&&t.Zc.byteLength&&t.Uc){var i=t.Zc.buffer,n=i.byteLength-i.byteLength%16,e=i.slice(0,n);t.Zc=new Uint8Array(i.slice(n)),11!==t.eu.ie?t.qc.decrypt(t.Qc,t.$c,e).then((function(i){t.rh(i)}),(function(i){t.An(u,i)})).catch((function(i){t.An("Exception",i.toString())})):t.sh(e)}},a.prototype.sh=function(t){var i=this;if(i.$c&&t){var n=i.qc.decrypt(i.Qc,i.$c,t);n?(n.onerror=function(t){i.An(u,t)},n.oncomplete=function(t){t&&t.target&&i.rh(t.target.result)}):i.An("Decryption operation is not created in IE-11")}},a.prototype.rh=function(t){var i=this;i.publish(e.DATA_PROCESS_PROGRESS,new Uint8Array(t)),i.Uc&&(0===i.Zc.byteLength?i.publish(e.DATA_PROCESS_COMPLETE):i.nh())},a.prototype.ih=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)},a.prototype.endOfSegment=function(){var t=this;t.Uc=!0,t.Wc&&t.$c&&t.nh()},a.prototype.An=function(t,i){this.publish(e.DATA_PROCESS_ERROR)},a.prototype.Kc=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),a=n(6473),c=n(5557),h=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.C=null,i.Pc=t,i.oh=new a,i.Ur=new u,i.uh=new f}r.inherits(d,s),d.prototype.destroy=function(){var t=this;t.C=null,t.Ur.destroy(),t.uh.destroy(),s.prototype.destroy.call(t)},d.prototype.setSource=function(t){this.Hc=t,this.ae()},d.prototype.ae=function(){var t=this;t.Hc&&(t.Hc.addEventListener(o.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.Hc.addEventListener(o.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.Hc.addEventListener(o.DATA_PROCESS_ERROR,(function(i){t.publish(o.DATA_PROCESS_ERROR,i)}),t))},d.prototype.close=function(){this.C=null},d.prototype.append=function(t){var i=this;if(t){var n=t.length;if(n){var e=null,r=0;i.C&&(r=(e=i.C).length);var s=r+n;i.C=new Uint8Array(s),e&&i.C.set(e),i.C.set(t,r),i.ah()}}},d.prototype.ah=function(){for(var t=this;t.C&&t.C.length>=8;){var i=t.C.length,n=new DataView(t.C.buffer),e=t.Ur.parse(t.C,"styp"),r=t.Ur.parse(t.C,"emsg"),s=t.Ur.parse(t.C,"moof"),u=t.Ur.parse(t.C,"ftyp"),a=t.Ur.parse(t.C,"moov");if(u&&a){t.Pc.userAgent.android&&t.hh();var c=[];u&&c.push(u),a&&c.push(a);var h=t.fh(c),f=t.lh(c),l=new Uint8Array(t.C.buffer.slice(h,f));t.publish(o.DATA_PROCESS_PROGRESS,{position:"init",data:l}),t.C.length>f?t.C=new Uint8Array(t.C.buffer.slice(f)):t.C=null}else{if(!s)return;var d=t.Ur.findBoxOffset(n,"mdat");if(d<0)return;var p=t.Ur.parseHeader(n,"mdat",d),b=[];e&&b.push(e),r&&b.push(r),s&&b.push(s),p&&b.push(p);var m=t.fh(b),g=t.lh(b);if(i<g)return;var y=t.dh(),_=t.Pc.timescale,w=t.ph(),O=t.bh(),E=t.mh(w,y);if(t.Pc.dash){var j=Math.round(t.Pc.startTime*_),S=t.Pc.segDuration*_;O!==j&&(O=j,t.gh(O)),E!==S&&(t.yh(w,S),E=S)}var A=null;t.Pc.type!==v.MAIN&&t.Pc.type!==v.VIDEO||(A=t._h(d,w,O,_));var M=new Uint8Array(t.C.buffer.slice(m,g));t.xc="firstByte"===t.xc?"start":"middle",t.publish(o.DATA_PROCESS_PROGRESS,{position:t.xc,data:M,cea608TrackData:A,baseTime:O,defaultSampleDuration:y,totalDuration:E,samples:w.samples}),t.Pc.dash&&r&&t.Oh(r),t.C.length>g?t.C=new Uint8Array(t.C.buffer.slice(g)):t.C=null}}},d.prototype.endOfSegment=function(){this.ah(),this.publish(o.DATA_PROCESS_COMPLETE)},d.prototype.fh=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.lh=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.bh=function(){var t=this.Ur.parse(this.C,"tfdt");return t?t.baseMediaDecodeTime:0},d.prototype.gh=function(t){this.Ur.setSingleProp(this.C,"tfdt",{name:"baseMediaDecodeTime",value:t,length:32})},d.prototype.yh=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.Ur.setSingleProp(this.C,"trun",{name:"sampleDuration",value:e,length:32,pos:-1})}},d.prototype.dh=function(){var t=this.Ur.parse(this.C,"tfhd");return t&&t.defaultSampleDuration>0?t.defaultSampleDuration:0},d.prototype.mh=function(t,i){return t.totalDuration?t.totalDuration:t.samples.length*i},d.prototype.ph=function(){var t=[],i=0,n=this.Ur.parse(this.C,"trun");if(n&&n.sampleData)for(var r=n.sampleData.length,s=n.sampleData,o=0;o<r;o++){var u={};s[o].sampleDuration&&(u.duration=s[o].sampleDuration,i+=u.duration),s[o].sampleSize&&(u.size=s[o].sampleSize),s[o].sampleFlags&&(u.flags=s[o].sampleFlags),e.isNullOrUndefined(s[o].sampleCompositionTimeOffset)||(u.cto=s[o].sampleCompositionTimeOffset),t.push(u)}return{samples:t,totalDuration:i}},d.prototype.Oh=function(t){var i=this;if(t){var n=i.Eh(t.presentationTimeDelta,t.timescale),e=t.message&&i.oh.extractID3FromMessage(t.message),r={payload:e&&i.oh.getID3Payload(e),timestamp:i.Pc.startTime+n},s=new h({type:c.MessageTypes.MESSAGE,id:c.MessageIds.TIMED_METADATA});s.putParam("timedMetadata",r),i.publish(o.DATA_PROCESS_PROGRESS,s)}},d.prototype.Eh=function(t,i){return 0===i?0:t/i},d.prototype.hh=function(){var t=this,i=t.Ur.parse(t.C,"esds");if(i){var n=i.audioSpecificConfig0>>3,e=i.audioSpecificConfig0<<1&14|i.audioSpecificConfig1>>7&1,r=i.audioSpecificConfig1>>3&7;if(5===n){var s=(n=2)<<3|(14&e)>>1,o=(1&e)<<7|r<<3;t.Ur.setSingleProp(t.C,"esds",{name:"audioSpecificConfig0",value:s,length:8}),t.Ur.setSingleProp(t.C,"esds",{name:"audioSpecificConfig1",value:o,length:8}),t.Ur.setSingleProp(t.C,"esds",{name:"audioSpecificConfig2",value:0,length:8}),t.Ur.setSingleProp(t.C,"esds",{name:"audioSpecificConfig3",value:0,length:8})}}},d.prototype._h=function(t,i,n,e){for(var r=[],s=this.C.slice(t+8),o=n,u=0,a=0,c=0;c<i.samples.length;c++){var h=i.samples[c];for(a+=h.size;u<a&&u<s.length;){var f=s[u]<<24|s[u+1]<<16|s[u+2]<<8|s[u+3];if((15&s[u+=4])===l.AD_INFO_SEI)for(var v=this.uh.parse(s,u+1),d=0;d<v.length;d++){var p=v[d];p.pts=o+h.cto,p.dts=o,p.timescale=e,r.push(p)}u+=f}o+=h.duration}return r}},4169:function(t,i,n){"use strict";t.exports=c;var e=n(8169),r=n(4641),s=n(2990),o=n(2999),u=n(5619),a=n(5619).KEY_METHODS;function c(t){if(!t)throw new Error("Invalid argument: data argument of the ProcessorChain is not complete");var i=this;i.Pc=t,i.jh=null,i.Sh=null,o.call(i,i.constructor.name),t.encryptionData&&t.encryptionData.method!==a.NONE&&(i.jh=i.__controller.create(u,t.encryptionData)),i.Sh=e.create(i.__controller,t.containerFormat,t),i.jh&&i.Sh.setSource(i.jh),i.Ah=i.jh||i.Sh,i.Mh=i.Sh,i.Mh&&(i.Mh.addEventListener(r.DATA_PROCESS_PROGRESS,(function(t,n){i.publish(r.DATA_PROCESS_PROGRESS,t,n)}),i),i.Mh.addEventListener(r.DATA_PROCESS_COMPLETE,(function(t){i.publish(r.DATA_PROCESS_COMPLETE,t)}),i),i.Mh.addEventListener(r.DATA_PROCESS_ERROR,(function(){i.publish(r.DATA_PROCESS_ERROR)}),i))}s.inherits(c,o),c.prototype.destroy=function(){var t=this;t.jh&&(t.jh.destroy(),t.jh=null),t.Sh&&(t.Sh.destroy(),t.Sh=null),t.Ah=null,t.Mh=null,o.prototype.destroy.call(t)},c.prototype.append=function(t){this.Ah&&this.Ah.append(t)},c.prototype.close=function(){this.Ah&&this.Ah.close()},c.prototype.endOfSegment=function(){this.Ah&&this.Ah.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);t.exports.create=function(t,i,n){if(!t||!i||"function"!=typeof t.create)return null;var o;switch(i){case"mp4":o=s;break;case"aac":o=r;break;default:o=e}return t.create(o,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.Pc=t,i.Th=i.__controller.create(e,t,i.Bc.bind(i))}r.inherits(u,s),u.prototype.destroy=function(){this.Th.destroy(),s.prototype.destroy.call(this)},u.prototype.setSource=function(t){this.Hc=t,this.ae()},u.prototype.ae=function(){var t=this;t.Hc&&(t.Hc.addEventListener(o.DATA_PROCESS_PROGRESS,(function(i){t.append(i)}),t),t.Hc.addEventListener(o.DATA_PROCESS_COMPLETE,(function(){t.endOfSegment()}),t),t.Hc.addEventListener(o.DATA_PROCESS_ERROR,(function(i){t.publish(o.DATA_PROCESS_ERROR,i)}),t))},u.prototype.close=function(){this.Th.close()},u.prototype.append=function(t){this.Th.append(t)},u.prototype.endOfSegment=function(){this.Th.endOfSegment()},u.prototype.Bc=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))}},5877:function(t){"use strict";function i(t){var i=this;i.Nh=t,i.Nt=null,i.Ih=!1,i.Rh=0,i.Lh=[],i.Ch=null,i.kh=0,i.Dh=0,i.Ph=0,i.xh=[],i.Uh=0,i.Fh=0,i.Bh=0,i.zh=!1,i.Vh=4}t.exports=i,i.prototype.destroy=function(){this.Nh=null},i.prototype.parse=function(t,i){var n=this;n.Nt=i;for(var e=0;e<t.length;e++)n.Gh(t[e]);n.Nt=null},i.prototype.Gh=function(t){var i=this;if(i.Hh(t.data1)&&i.Hh(t.data2)&&(i.Bh=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.Ih=!0),15===t.data1&&i.Ih&&1===t.fieldType)i.Ih=!1;else{if(t.data1>=16&&t.data1<31){if(i.Yh(t.data1,t.data2))return;if(8!=(8&t.data1)&&0===t.fieldType?i.qh(0):8==(8&t.data1)&&0===t.fieldType?i.qh(1):8!=(8&t.data1)&&1===t.fieldType?i.qh(2):8==(8&t.data1)&&1===t.fieldType&&i.qh(3),null===i.Ch)return;i.Wh(t),i.Qh(t),i.Zh(t);var n=119&t.data1;17===n&&48==(112&t.data2)?i.$h(15&t.data2):18!==n&&26!==n||64&t.data2?19!==n&&27!==n||64&t.data2||i.Xh(63&t.data2):i.Jh(63&t.data2)}else{if(i.Ih&&1===t.fieldType)return;if(t.data1>=32&&t.data1<=126){if(0===t.fieldType&&2===i.Rh?i.qh(0):0===t.fieldType&&3===i.Rh?i.qh(1):1===t.fieldType&&0===i.Rh?i.qh(2):1===t.fieldType&&1===i.Rh&&i.qh(3),null===i.Ch)return;var e=i.Kh(t.data1);if(i.Ch.appendChar(e),t.data2>=32&&t.data2<=126){var r=i.Kh(t.data2);i.Ch.appendChar(r)}}}i.kh=t.data1,i.Dh=t.data2}},i.prototype.Wh=function(t){var i=this,n=119&t.data1,e=96&t.data2;17===n&&64===e?(i.Ch.startNewRow(1),i.tf(t.data2)):17===n&&96===e?(i.Ch.startNewRow(2),i.tf(t.data2)):18===n&&64===e?(i.Ch.startNewRow(3),i.tf(t.data2)):18===n&&96===e?(i.Ch.startNewRow(4),i.tf(t.data2)):21===n&&64===e?(i.Ch.startNewRow(5),i.tf(t.data2)):21===n&&96===e?(i.Ch.startNewRow(6),i.tf(t.data2)):22===n&&64===e?(i.Ch.startNewRow(7),i.tf(t.data2)):22===n&&96===e?(i.Ch.startNewRow(8),i.tf(t.data2)):23===n&&64===e?(i.Ch.startNewRow(9),i.tf(t.data2)):23===n&&96===e?(i.Ch.startNewRow(10),i.tf(t.data2)):16===n&&64===e?(i.Ch.startNewRow(11),i.tf(t.data2)):19===n&&64===e?(i.Ch.startNewRow(12),i.tf(t.data2)):19===n&&96===e?(i.Ch.startNewRow(13),i.tf(t.data2)):20===n&&64===e?(i.Ch.startNewRow(14),i.tf(t.data2)):20===n&&96===e&&(i.Ch.startNewRow(15),i.tf(t.data2))},i.prototype.Qh=function(t){17===(119&t.data1)&&32==(112&t.data2)&&(this.tf(t.data2),this.Ch.appendChar(" "))},i.prototype.Zh=function(t){var i=this,e=119&t.data1;20===e&&32===t.data2?i.Ch.setMode(n.POP_ON_MODE):20===e&&33===t.data2?i.Ch.backspace():20===e&&36===t.data2?i.Ch.clearEndOfRow():20===e&&37===t.data2?i.Ch.setMode(n.ROLL_UP_MODE,2):20===e&&38===t.data2?i.Ch.setMode(n.ROLL_UP_MODE,3):20===e&&39===t.data2?i.Ch.setMode(n.ROLL_UP_MODE,4):20===e&&41===t.data2?i.Ch.setMode(n.PAINT_ON_MODE):20===e&&44===t.data2?i.Ch.eraseDisplayMemory():20===e&&45===t.data2?i.Ch.linebreak():20===e&&46===t.data2?i.Ch.eraseNondisplayMemory():20===e&&47===t.data2?i.Ch.endOfCaption():23===e&&33===t.data2?i.Ch.setIndent(1):23===e&&34===t.data2?i.Ch.setIndent(2):23===e&&35===t.data2&&i.Ch.setIndent(3)},i.prototype.$h=function(t){var i=["®","°","½","¿","™","¢","£","♪","à"," ","è","â","ê","î","ô","û"],n=t;n<0||n>=i.length||this.Ch.appendChar(i[n])},i.prototype.Jh=function(t){var i=["Á","É","Ó","Ú","Ü","ü","´","¡","*","'","-","©","℠","·",'"','"',"À","Â","Ç","È","Ê","Ë","ë","Î","Ï","ï","Ô","Ù","ù","Û","«","»"],n=t-32;n<0||n>=i.length||this.Ch.appendChar(i[n])},i.prototype.Xh=function(t){var i=["Ã","ã","Í","Ì","ì","Ò","ò","Õ","õ","{","}","\\","^","_","|","~","Ä","ä","Ö","ö","ß","¥","¤","¦","Å","å","Ø","ø","┌","┐","└","┘"],n=t-32;n<0||n>=i.length||this.Ch.appendChar(i[n])},i.prototype.Hh=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.Kh=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.Yh=function(t,i){return this.kh===t&&this.Dh===i},i.prototype.tf=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.Ch.setColumn(n)}else 14==(14&t)&&i.Ch.setItalic();1==(1&t)&&i.Ch.setUnderlined()},i.prototype.qh=function(t){var i=this;i.Lh[t]||(i.Lh[t]=new e(t,i.onFlipMemories.bind(this),i.onEraseDisplayMemory.bind(this),i.onLinebreak.bind(this))),i.Rh=t,i.Ch=i.Lh[t]},i.prototype.getChannel=function(t){return this.Lh[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.zh&&i.onEraseDisplayMemory(t);var e=i.getChannel(t);if(e.getMode()===n.POP_ON_MODE){if(i.Uh=i.Bh,t===i.Ph){var r=i.xh;i.xh=e.getCaptionRows(),e.setCaptionRows(r);for(var s=0;s<i.xh.length;s++)i.xh[s]&&i.xh[s].hasCaptionData()&&(i.zh=!0)}e.eraseNondisplayMemory()}},i.prototype.nf=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.ef=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.Ph){if(r===n.POP_ON_MODE){i.Fh=i.Bh;for(var s=0;s<i.xh.length;s++){var o=i.xh[s];if(o&&o.hasCaptionData()){var u=o.getStartPosition(),a=i.nf(u,s+1),c=i.ef(s,i.xh,!0);s=c.rowIdx;var h=c.rowText;i.Fh-i.Uh>i.Vh&&(i.Fh=i.Uh+i.Vh),i.rf(h,a),i.Uh+=.001,o.reset()}}}else r===n.ROLL_UP_MODE||r===n.PAINT_ON_MODE?(-1!==i.Uh&&0!==i.Uh||(i.Uh=i.Bh),i.Fh>i.Uh&&(i.Uh=i.Fh),i.sf(t),e.eraseNondisplayMemory()):r&&e.eraseNondisplayMemory();i.zh=!1}else e.eraseNondisplayMemory()},i.prototype.onLinebreak=function(t){var i=this;if(t===i.Ph){var e=i.getChannel(t).getMode();e!==n.ROLL_UP_MODE&&e!==n.PAINT_ON_MODE||(-1!==i.Uh&&0!==i.Uh||(i.Uh=i.Bh),i.Fh>i.Uh&&(i.Uh=i.Fh),i.sf(t))}},i.prototype.sf=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.nf(12,e),o=i.ef(e,n,!1);e=o.rowIdx;var u=o.rowText;i.Fh=i.Uh+1.5,i.rf(u,s),i.Uh+=.001}}i.Uh=-1},i.prototype.rf=function(t,i){var n=this,e="WEBVTT\nX-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:0\n\n";e+=n.uf(n.Uh),e+=" --\x3e ",e+=n.uf(n.Fh);for(var r=0;r<i.length;r++)e+=" "+i[r];if(e+="\n",e+=t+"\n",n.Nh){var s={discontinuity:n.Nt.discontinuity,sequenceNum:n.Nt.seqNum,startTime:n.Nt.startTime,programDateTime:n.Nt.programDateTime,url:n.Nt.url,duration:n.Nt.duration,clockReference:0,localCueTime:0,mpegTSTime:0,data:e,offset:0,adjustedTime:0};n.Nh(s)}},i.prototype.uf=function(t){var i=this,n=Math.floor(t/60/60);n=i.af(n);var e=Math.floor(t/60%60);e=i.af(e);var r=(t%60).toFixed(3);return n+":"+e+":"+(r=i.af(r))},i.prototype.af=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.cf=t,r.hf=0,r.ff=[],r.lf=null,r.vf=null,r.df=null,r.pf=i,r.bf=n,r.mf=e}function r(){var t=this;t.gf=32,t.yf=-1,t._f=!1,t.wf=!1,t.Of=0,t.Ef=[],t.MAX_CHARS=32}function s(){var t=this;t.character="",t.isUnderlined=!1,t.isItalic=!1}e.prototype.setMode=function(t,i){this.df=t,i<2?i=2:i>4&&(i=4),this.hf=i},e.prototype.getMode=function(){return this.df},e.prototype.jf=function(t){var i=this;if(!(t<1||t>15)){(t<i.hf||null===i.lf)&&(i.lf=i.hf);for(var n=i.ff[0],e=0;e<i.ff.length;e++)e<i.ff.length-1?i.ff[e]=i.ff[e+1]:i.ff[e]=n,(e>i.lf||i.lf-i.hf>0&&e<i.lf-i.hf)&&i.ff[e]&&i.ff[e].reset()}},e.prototype.Sf=function(){var t=this;t.mf&&t.mf(t.cf)},e.prototype.startNewRow=function(t){if(!(t<1||t>15)){var i=this;i.df===n.ROLL_UP_MODE?i.jf(t):i.df===n.PAINT_ON_MODE&&i.Sf(),i.lf=t,i.vf=i.getCaptionRow(t),i.vf.reset()}},e.prototype.getCaptionRows=function(){return this.ff},e.prototype.setCaptionRows=function(t){this.ff=t},e.prototype.setIndent=function(t){this.vf&&this.vf.tabIndex(t)},e.prototype.setColumn=function(t){this.vf&&this.vf.columnIndex(t)},e.prototype.setItalic=function(){this.vf&&this.vf.setIsItalic(!0)},e.prototype.setUnderlined=function(){this.vf&&this.vf.setIsUnderlined(!0)},e.prototype.appendChar=function(t){this.vf&&this.vf.writeChar(t)},e.prototype.linebreak=function(){var t=this;t.mf&&t.mf(t.cf)},e.prototype.eraseNondisplayMemory=function(){for(var t=this,i=0;i<t.ff.length;i++)t.ff[i]&&t.ff[i].reset()},e.prototype.clearEndOfRow=function(){this.vf&&this.vf.clearToEnd()},e.prototype.backspace=function(){this.vf&&this.vf.backspace()},e.prototype.eraseDisplayMemory=function(){this.bf(this.cf)},e.prototype.endOfCaption=function(){this.pf(this.cf)},e.prototype.getCaptionRow=function(t){var i=this;if(t<1||t>15)return null;var n=t-1;return i.ff[n]||(i.ff[n]=new r),i.ff[n]},r.prototype.reset=function(){var t=this;t.wf=!1,t._f=!1;for(var i=0;i<t.Ef.length;i++)t.Ef[i]&&t.Ef[i].reset();t.Of=0,t.gf=32,t.yf=-1},r.prototype.clearToEnd=function(){for(var t=this,i=t.Of;i<t.Ef.length;i++)t.Ef[i]&&t.Ef[i].reset()},r.prototype.columnIndex=function(t){t<0||t>=this.MAX_CHARS||(this.Of=t)},r.prototype.tabIndex=function(t){this.Af(t)},r.prototype.writeChar=function(t){var i=this,n=i.Ef[i.Of];n||(i.Ef[i.Of]=new s,n=i.Ef[i.Of]),n.setValue(t,i.wf,i._f),i.Of<i.gf&&(i.gf=i.Of),i.Of>i.yf&&(i.yf=i.Of),i.Af(1)},r.prototype.backspace=function(){var t=this;t.Of>0&&(t.Ef[t.Of].reset(),t.Of--)},r.prototype.Af=function(t){var i=this;i.Of+t<i.MAX_CHARS?i.Of+=t:i.Of=i.MAX_CHARS-1},r.prototype.setIsItalic=function(t){this.wf=t},r.prototype.setIsUnderlined=function(t){this._f=t},r.prototype.hasCaptionData=function(){return 32!==this.gf||-1!==this.yf},r.prototype.getCharacterAt=function(t){return t<0||t>=this.MAX_CHARS?null:this.Ef[t]},r.prototype.getStartPosition=function(){return this.gf},r.prototype.getEndPosition=function(){return this.yf},r.prototype.toString=function(){var t=this,i="",n=!1,e=!1;if(t.hasCaptionData())for(var r=t.gf;r<=t.yf;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),a=0,c=3,h=4,f=1;function l(t,i,n){var e=this;if(!t)throw new Error("[Loader] Invalid Arguments: Loader created without a load request");s.call(e,"Loader"),e.request=t,e.Je=n,e.window=e.Je?null:i||window,e.Mf=null,e.Tf={},e.Nf=[1e3,1e3,2e3,2e3,3e3,3e3,5e3],e.If=5e3,e.Rf=new u(1e3,1),e.Rf.addEventListener(e.load,e),e.MIN_TIMEOUT=2e3,e.MAX_TIMEOUT=15e3,e.Lf=0,e.wt=t.maxRetries,e.Cf=new u(e.kf(),1),e.Cf.addEventListener(e.Df,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.Pf(),e.Mf=e.Je?new XMLHttpRequest:new e.window.XMLHttpRequest,e.Mf.xf=0,e.Mf.Uf=!1,e.Ff(),e.Mf.withCredentials=e.request.withCredentials,e.Mf.open(e.request.method,e.url,!0),e.Bf=e.request.headerFields,e.Bf&&Object.keys(e.Bf).forEach((function(t){e.Mf.setRequestHeader(t,e.Bf[t])})),e.zf(),e.Cf.reset(),e.Cf.start(),e.Mf.send(n)},l.prototype.zf=function(){this.Mf.responseType=this.request.responseType},l.prototype.Ff=function(){var t=this;t.Mf.onerror=t.Qo.bind(t),t.Mf.onreadystatechange=function(){if(t.Mf&&t.Mf.readyState===h&&!t.Mf.Uf){if(!t.Vf(t.Mf.status))return t.Cf.stop(),t.Qo();t.Mf.Uf=!0;var n={data:t.Mf.response};if(t.request.withResponseHeaders){var e=t.Mf.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.Cf.stop()}}},l.prototype.Gf=function(t){var i=new RegExp(t+": (.*)","ig"),n=this.Mf.getAllResponseHeaders(),e=i.exec(n);return e&&e.length>1?e[1]:""},l.prototype.Vf=function(t){return t>=200&&t<300},l.prototype.Hf=function(){Date.now(),this.Yf;this.Cf.stop()},l.prototype.Df=function(){this.Hf(),this.Qo()},l.prototype.qf=function(){this.reset(),this.Wf(o.ERR_PARTIAL_LOAD)},l.prototype.Qf=function(){var t=this,i=t.Nf.length,n=t.Lf;return n<i?t.Nf[n]:t.Nf[i-1]+t.If*(n-i+1)},l.prototype.Qo=function(){var t=this;t.Pf(),t.Lf<t.wt&&(!t.request.retryExclusion||-1===t.request.retryExclusion.indexOf(t.Mf.status))?(t.Lf++,t.Rf.delay=t.Qf(),t.Rf.reset(),t.Rf.start(),t.request.headerFields&&t.Mf.readyState===h&&0===t.Mf.status&&(t.request.headerFields=null)):t.request.stopStreamLoadOnError?t.Wf(o.ERR_XHR_LOAD_LIVE_PAUSE):403===t.Mf.status?t.Wf(o.ERR_XHR_LOAD_FORBIDDEN):t.Wf(o.ERR_XHR_LOAD)},l.prototype.Wf=function(t){this.publish(i.Events.ERROR,new o.Error(t))},l.prototype.Pf=function(){var t=this;t.Mf&&t.Mf.readyState!==h&&t.Mf.readyState!==a&&(t.Mf.Uf=!0,t.Mf.abort()),t.Rf.stop(),t.Cf.stop()},l.prototype.kf=function(){var t=this,i=t.request,n=i.chunked?i.chunkedRequestTimeout:i.requestTimeout;return isNaN(n)||n<t.MIN_TIMEOUT||n>t.MAX_TIMEOUT?t.MAX_TIMEOUT:n},l.prototype.reset=function(){var t=this;t.Pf(),t.Mf=null,t.request=null},l.prototype.destroy=function(){var t=this;t.reset(),t.Rf.destroy(),t.Cf.destroy(),s.prototype.destroy.call(t)},v.prototype.destroy=function(){l.prototype.destroy.call(this)},v.prototype.Ff=function(){var t=this,n=function(){if(t.Mf&&!t.Mf.Uf&&(t.Mf.readyState===h||t.Mf.readyState===c)){if(!t.Vf(t.Mf.status))return t.Cf.stop(),0===t.Mf.xf?t.Qo():void t.qf();var n=t.Mf.responseText,e=n.length-t.Mf.xf;if(e>0&&(t.Cf.stop(),t.Tf.atlasMarker=t.Gf("X-ATLAS-MARKERS"),t.publish(i.Events.BYTES_LOADED,n.length,t.Tf)),e>t.request.minChunkSize||t.Mf.readyState===h){for(var r=new Uint8Array(e),s=0;s<e;s++)r[s]=255&n.charCodeAt(s+t.Mf.xf);t.Mf.xf=n.length,t.publish(i.Events.PROGRESS,r,n.length)}t.Cf.start(),t.Mf.readyState===h&&(t.Mf.Uf=!0,t.publish(i.Events.COMPLETE),t.Cf.stop())}};t.Mf.onreadystatechange=n,t.Mf.onprogress=n},v.prototype.Df=function(){var t=this;t.Hf(),t.Mf.xf>0&&t.Mf.readyState===c?t.qf():t.Qo()},v.prototype.zf=function(){this.Mf.overrideMimeType("text/plain; charset=x-user-defined")},d.prototype.destroy=function(){v.prototype.destroy.call(this)},d.prototype.Ff=function(){var t=this;t.Mf.onreadystatechange=function(){if(t.Mf.readyState===c){if(!t.Vf(t.Mf.status))return t.Cf.stop(),t.Qo();var n=t.Mf.response;if(t.Zf||(t.Zf=t.Je?new MSStreamReader:new t.window.MSStreamReader),t.Zf.readyState===f)return;t.Zf.readAsArrayBuffer(n),t.Zf.onprogress=function(){t.Cf.stop();var n=t.Zf.result;n.byteLength>0&&(t.Tf.atlasMarker=t.Gf("X-ATLAS-MARKERS"),t.publish(i.Events.BYTES_LOADED,n.byteLength,t.Tf));var e=new Uint8Array(n.slice(t.Mf.xf,n.byteLength));t.Mf.xf=n.byteLength,t.publish(i.Events.PROGRESS,e,n.byteLength),t.Cf.start()},t.Zf.onload=function(){t.Cf.stop(),t.publish(i.Events.COMPLETE)},t.Zf.onerror=function(){t.Cf.stop()}}}},d.prototype.zf=function(){this.Mf.responseType="ms-stream"},d.prototype.reset=function(){var t=this;l.prototype.reset.call(t),t.Zf&&t.Zf.abort()}},1788:function(t,i,n){"use strict";t.exports=y;var e=n(574),r=e.MetadataTypes,s=e.StreamingMode,o=n(2503).StreamTypes,u="#EXT-X-STREAM-INF:",a="#EXT-X-MEDIA:TYPE=SUBTITLES,",c="#EXT-X-MEDIA:",h="#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:",b="#EXT-X-BYTERANGE:",m="#EXT-X-MAP",g="#EXT-X-KEY";function y(){this.$f=[],this.ERRORS={INVALID_M3U8:1,EMPTY_DATA:2,NO_SEGMENTS:3}}y.prototype.parse=function(t){if(!t)return null;return t.type===r.STRUCTURED?this.parseStructuredMetadata(t):this.Xf(t)},y.prototype.Xf=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(h)>0?i.Jf(r,t):e.indexOf(u)>0?i.Kf(r,t):(n.error=i.ERRORS.INVALID_M3U8,n)},y.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(a)?((e=i.tl(r,t.host)).type=o.SUBTITLES,e.containerFormat="vtt"):(e=i.parseStreamInfo([t])[0]).hlsInfo&&(e.segmentInfoList=i.parseSegmentInfo(e.hlsInfo,e.initSegment)),i.il(n.renditionGroups,e)}))),n},y.prototype.Kf=function(t,i){for(var n=this,e=[],r={},s=i.url,o=i.cdn,a=0;a<t.length;a++){var h=null,f=t[a].trim();if(0===f.indexOf(u)){h=n.rl(n.ol(f.substr(u.length)));do{f=t[++a]}while(f.match(/^\s*$/));h.url=n.ul(f,s),h.cdn=o,e.push(h)}else 0===f.indexOf(c)&&(f=f.replace(/"/g,""),h=n.al(n.ol(f.substr(c.length)),s),n.il(r,h))}return{streamInfoList:e,renditionGroups:r}},y.prototype.il=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]}},y.prototype.ol=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},y.prototype.Jf=function(t,i){var n=this,e={},r={},u=[],a=[],c={streamInfoList:[],renditionGroups:{}};if(!t||!t.length)return c;var y=i.url,_=i.index;r.discontinuity=!1,r.sequenceNum=0,r.startTime=0,r.programDateTime=0,r.brStartOffset=-1,r.brEndOffset=-1,r.levelIndex=_,e.discontinuitySeqNum=0,e.index=_,e.targetDuration=0,e.hasEndList=!1,e.url=y,e.duration=0,e.containerFormat="",e.streamingMode=s.HLS,e.dateRanges=[];for(var w=0;w<t.length;w++){var O=t[w].trim();if(!O.match(/^\s*$/)){if(0===O.indexOf(f)&&(e.seqNum=parseInt(O.substr(f.length)),r.sequenceNum=e.seqNum),0===O.indexOf(l))e.discontinuitySeqNum=parseInt(O.substr(l.length));else if(0===O.indexOf("#EXT-X-DISCONTINUITY"))r.discontinuity=!0;else if(0===O.indexOf(v))e.targetDuration=parseFloat(O.substr(v.length));else if(0===O.indexOf(m)){var E=n.hl(O,y);r.initSegment=E}else if(0===O.indexOf(g))r.encryptionData=n.ll(O,y);else if(0===O.indexOf(d))r.programDateTime=n.vl(O);else if(0===O.indexOf(p)){var j=n.dl(O);j&&e.dateRanges.push(j)}else if(0===O.indexOf(h)){var S=O.indexOf(",");r.duration=-1===S?parseFloat(O.substr(h.length)):parseFloat(O.substr(h.length,S-h.length)),e.duration+=r.duration;do{O=t[++w].trim()}while(O.match(/^\s*$/));if(0===O.indexOf(b)){var A=O.substr(b.length,O.length-b.length),M=A.indexOf("@");r.brStartOffset=parseInt(A.substr(M+1,A.length-M-1)),r.brEndOffset=r.brStartOffset+parseInt(A.substr(0,M))-1;do{O=t[++w].trim()}while(O.match(/^\s*$/))}r.url=n.ul(O,y),r.containerFormat=n.bl(r.url),e.containerFormat=r.containerFormat,u.push(n.gl(r)),r.startTime+=r.duration,r.sequenceNum++,r.programDateTime=0,r.brStartOffset=-1,r.brEndOffset=-1,r.encryptionData&&(r.encryptionData.initVector=null)}else 0===O.indexOf("#EXT-X-ENDLIST")&&(e.hasEndList=!0);if(O.indexOf("#EXT-X-CUE-OUT:")>=0){var T=n.yl(r.sequenceNum,O);a.push(T)}}}if(u.length&&(e.segmentInfoList=u,e.initSegment=u[0].initSegment),a.length&&(e.cuepointList=a),i.streamType&&i.streamType!==o.MAIN){var N=c.renditionGroups;e.type=i.streamType,e.groupId=i.groupId,e.name=i.name,n.il(N,e)}else c.streamInfoList.push(e);return c},y.prototype.rl=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},y.prototype.bl=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},y.prototype.ul=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)},y.prototype.tl=function(t,i){var n=(t=t.replace(/"/g,"")).substr(a.length).split(",");return this._l(n,t,i)},y.prototype._l=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.ul(t.substr(4),n):t.indexOf("FORCED")>-1&&(r.forced="YES"===t.split("=")[1])})),r.streamingMode=s.HLS),r},y.prototype.al=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.ul(s,i)}})),e},y.prototype.wl=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},y.prototype.hl=function(t,i){if(!t)return null;for(var n={},e=t.substr(m.length+1).split(","),r=0;r<e.length;r++){var s=e[r].split("=");if(0===s[0].indexOf("URI"))n.url=this.ul(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},y.prototype.ll=function(t,i){if(!t)return null;for(var n={},e=t.substr(g.length+1).split(","),r=0;r<e.length;r++){var s=e[r].split("=");0===s[0].indexOf("URI")?n.keyUri=this.ul(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},y.prototype.vl=function(t){return t?this.Ol(t.substr(d.length)):0},y.prototype.Ol=function(t){if(!t)return 0;var i,n,e=t.split("T"),r=e[0].split("-"),s=parseInt(r[0]),o=parseInt(r[1])-1,u=parseInt(r[2]),a=e[1],c=0;if(a.indexOf("Z")>=0)i=a.substr(0,a.indexOf("Z")).split(":");else if(a.indexOf("+")>=0){var h=a.split("+");i=h[0].split(":"),n=h[1].split(":"),c=-1}else if(a.indexOf("-")>=0){var f=a.split("-");i=f[0].split(":"),n=f[1].split(":"),c=1}else a.indexOf(".")>=0&&(i=a.split(":"));var l=0,v=0,d=0;(i&&(l=parseInt(i[0]),v=parseInt(i[1]),d=parseFloat(i[2])),n)&&(l=(24+l+c*parseInt(n[0]))%24,(v+=c*parseInt(n[1]))>=60?(l++,v-=60):v<0&&(l--,v+=60));return new Date(Date.UTC(s,o,u,l,v,d)).getTime()},y.prototype.dl=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.Ol(n):t.indexOf("DURATION")>-1?e.duration=parseInt(n):t.indexOf("END-DATE")>-1?e.endDate=i.Ol(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},y.prototype.gl=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},y.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 a=u.hlsInfo;u.initSegment={url:a.mp4_url},a.init_segment_offset>=0&&a.init_segment_length>=0&&(u.initSegment.range={start:a.init_segment_offset,end:a.init_segment_offset+a.init_segment_length-1}),u.sidxOffset=a.sidx_offset,u.sidxLength=a.sidx_length,u.firstSegOffset=a.first_segment_offset,u.firstSegLength=a.first_segment_length}if(t.manifestContent&&t.manifestContent.indexOf("SUBTITLES")>-1){var c=t.manifestContent.split('SUBTITLES="')[1];u.subtitlesGroupId=c.substr(0,c.indexOf('"'))}if(u.hlsInfo){var h=u.hlsInfo.ts_url||u.hlsInfo.mp4_url;u.containerFormat=i.bl(h,u.hlsInfo.mime_type)}n.push(u)})),n},y.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 a="_"+r.sequenceNum.toString()+".ts";r.url=t.ts_url.replace(o,a),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.bl(r.url,t.mime_type),e.push(this.gl(r)),r.sequenceNum++,r.startTime+=r.duration,r.brStartOffset=-1,r.brEndOffset=-1}return e},y.prototype.El=function(t){var i=t.split(":"),n=0;return i.length>1&&(n=1e3*parseFloat(i[1])),n},y.prototype.yl=function(t,i){var n=t;if(!(n<0)){var e=this.El(i),r={};return r.startSeqNum=n,r.startTime=NaN,r.cuepointDuration=e,r}}},7580:function(t,i,n){"use strict";t.exports=a;var e=n(574).StreamingMode,r=n(2503).StreamTypes,s=n(2990),o="BaseURL",u="$RepresentationID$";function a(){var t=this;t.$f=[],t.jl=null,t.Sl="blah",t.Al=null,t.Ml=null,t.ERRORS={INVALID_MPD:1,EMPTY_DATA:2,NO_SEGMENTS:3}}a.prototype.destroy=function(){},a.prototype.Tl=function(t){return t?Date.parse(t):0},a.prototype.Nl=function(t){var i=0;if(t&&"P"===t.charAt(0)){t.match(/[\d|.|\+]+[A-Z]/g).forEach((function(t){var n=t.charAt(t.length-1),e=parseFloat(t,10);"S"===n?e*=1e3:"M"===n?e*=6e4:"H"===n&&(e*=36e5),i+=e}))}else t&&!isNaN(t)&&(i=parseFloat(t,10));return i},a.prototype.Il=function(t,i){if(void 0===t||void 0===i)return"";if("08d"===t){for(var n=i.toString();n.length<8;)n="0"+n;return n}return i},a.prototype.Rl=function(t,i,n,e,r,s){var o=this,u={brEndOffset:-1,brStartOffset:-1,containerFormat:"mp4",discontinuity:0,duration:t/1e3,levelIndex:0,periodId:i,sequenceNum:n,startTime:e/1e3,url:r,initSegment:{url:s}};return null===o.Ml?(o.Ml=u.startTime,u.startTime=0):(u.startTime-=o.Ml,u.startTime=Math.round(1e3*u.startTime)/1e3),u},a.prototype.Ll=function(t,i,n,s,o,u,a,c){var h=this,f=h.Cl(i),l=h.kl(n),v=h.Dl(n),d=o>v?o/l:v/l,p={groupId:n.id,bitrate:parseInt(n.bandwidth),codecs:[n.codecs],containerFormat:"mp4",drmInfo:[],duration:s/1e3,hasAudio:f===r.AUDIO,hasEndList:!o&&s>0,height:f===r.VIDEO?n.height:0,segmentInfoList:[],type:f,width:f===r.VIDEO?n.width:0,streamingMode:e.DASH,initSegment:{url:c},url:a,targetDuration:d};if(f===r.AUDIO?(p.audioCodec=n.codecs,p.language=i.lang,p.autoSelect=!1,p.default=!1,p.groupId=n.id,p.channels=n.audioChannnelConfiguration?n.audioChannnelConfiguration.value:0):f===r.VIDEO?(p.audioGroupId="audio",p.subtitlesGroupId="subs",p.videoCodec=n.codecs):f===r.SUBTITLES&&(p.language=i.lang,p.groupId=n.id,p.codec=n.codecs,p.autoSelect=!1,p.subtitlesCodec=n.codecs),i.drm.length>0){for(var b={},m=0;m<i.drm.length;m++){var g=i.drm[m];b.periodId=t.id;var y={prefix:null!==h.Al?h.Al:"",pssh:g.pssh};"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===g.schemeIdUri?(y.type="wv",b.widevine=y):"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"===g.schemeIdUri&&(y.type="pr",y.pro=g.pro,b.playready=y)}p.drmInfo.push(b)}return p},a.prototype.kl=function(t){return t.segmentList?parseInt(t.segmentList.timescale,10):t.segmentTemplate?parseInt(t.segmentTemplate.timescale,10):1e3},a.prototype.Dl=function(t){var i=this.kl(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;if(n.segmentTimeline){var e=0;return n.segmentTimeline.sElements.forEach((function(t){t.r&&t.r>0&&(e=1e3*parseInt(t.d,10)/i)})),e}}return 0},a.prototype.Pl=function(t,i,n,e,r,o,a,c){var h=this,f=new RegExp(/\$Number%([\d|.|\+]*[a-zA-Z])\$/),l=t.startMS,v=t.durationMS,d=h.Dl(i),p=[],b="";if(i.segmentList)for(var m=0;m<i.segmentList.segments.length;m++){var g=i.segmentList.segments[m],y=Math.min(d,v);v-=y,b=n&&!s.isAbsoluteUrl(g)?n+g:g,p.push(h.Rl(y,t.id,m,l,b,e)),l+=y}else if(i.segmentTemplate){var _=i.segmentTemplate,w=parseInt(_.startNumber,10),O=0,E=Math.ceil(t.durationMS/d),j=0,S=0,A=0;if("dynamic"===c?(j=Math.min(Math.floor((o-t.startMS)/d),E),S=Math.max(Math.floor((o-t.startMS-a)/d),1)):(j=E,S=1),j<=0||S>j)O=0;else{var M=S-1;w+=M,O=j===S?1:j-S+1,A=t.startMS+M*d,v-=M*d,O<0&&(O=0)}for(var T=_.media.replace(u,i.id),N=f.test(T)?T.match(f)[1]:"",I=w;I<O+w;I++){var R=T.replace(f,h.Il(N,I)),L=Math.min(d,v);v-=L,b=n&&!s.isAbsoluteUrl(R)?n+R:R;var C=h.Rl(L,t.id,I-w,A,b,e);p.push(C),A+=L}}return p},a.prototype.xl=function(t,i){var n=null;return t.segmentList?n=t.segmentList.initialization.sourceURL:t.segmentTemplate&&(n=t.segmentTemplate.initialization.replace(u,t.id)),i&&!s.isAbsoluteUrl(n)?i+n:n},a.prototype.Ul=function(t){return(new DOMParser).parseFromString(t,"application/xml")},a.prototype.parse=function(t){var i=this,n={};if(!t)return null;var s=i.Ul(t.rawData);if(null===s||null===s.documentElement||void 0===s.documentElement)return n.error=i.ERRORS.INVALID_MPD,n;if("MPD"!==s.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.Al=t.value)})),i.jl=s,i.Fl(s.documentElement,n);var o=i.Tl(n.publishTime),u=i.Bl(o);n.streamingMode=e.DASH,n.drm=!1,n.reloadUrl=t.url;for(var a=[],c=s.documentElement.childNodes,h=0;h<c.length;h++){var f=c[h];if(1===f.nodeType)if("Period"===f.nodeName){var l=i.zl(f);null!==l&&a.push(l)}else"Location"===f.nodeName&&(n.reloadUrl=f.childNodes[0].nodeValue)}for(var v=[],d=[],p=[],b=i.Nl(n.mediaPresentationDuration),m=i.Nl(n.minimumUpdatePeriod),g=i.Nl(n.suggestedPresentationDelay),y=i.Tl(n.availabilityStartTime),_=0,w=-1,O=0;O<a.length;O++){var E=a[O];E.startMS=i.Vl(E,y,_),-1===w&&(w=E.startMS);var j=O+1<a.length?a[O+1]:null;E.endMS=i.Gl(E,E.startMS,y,j,w,b,m,u),E.durationMS=E.endMS-E.startMS;for(var S=0;S<E.adaptationSets.length;S++)for(var A=E.adaptationSets[S],M=i.Cl(A),T=0;T<A.representations.length;T++){var N=A.representations[T],I=N.baseURL?N.baseURL:A.baseURL,R=i.xl(N,I),L=i.Ll(E,A,N,b,m,n.type,n.reloadUrl,R),C=i.Pl(E,N,I,R,w,u,g,n.type);C.length>0&&(Array.prototype.push.apply(L.segmentInfoList,C),M===r.VIDEO?i.Hl(v,L):M===r.AUDIO?i.Hl(d,L):M===r.SUBTITLES&&i.Hl(p,L)),A.drm.length>0&&(n.drm=!0)}_+=E.durationMS}this.Yl(d),this.Yl(p);var k={AUDIO:{audio:d},SUBTITLES:{subs:p}};return n.streamInfoList=v,n.renditionGroups=k,n},a.prototype.Yl=function(t){t&&t.length>0&&(t[0].autoSelect=!0,t[0].default=!0)},a.prototype.Hl=function(t,i){for(var n=0;n<t.length;n++)if(t[n].groupId===i.groupId)return void this.ql(t[n],i);i.index=t.length,t.push(i)},a.prototype.Cl=function(t){return"video/mp4"===t.mimeType?r.VIDEO:"audio/mp4"===t.mimeType?r.AUDIO:"application/mp4"===t.mimeType&&"text"===t.contentType?r.SUBTITLES:r.VIDEO},a.prototype.ql=function(t,i){for(var n=t.segmentInfoList[t.segmentInfoList.length-1].sequenceNum+1,e=0;e<i.segmentInfoList.length;e++){var r=i.segmentInfoList[e];r.sequenceNum=n+e,t.segmentInfoList.push(r)}for(var s=0;s<i.drmInfo.length;s++)t.drmInfo.push(i.drmInfo[s]);i.bitrate>t.bitrate&&(t.bitrate=i.bitrate)},a.prototype.Fl=function(t,i){for(var n=t.attributes,e=0;e<n.length;e++)i[n[e].nodeName]=n[e].nodeValue;return n.length},a.prototype.zl=function(t){var i=this,n={adaptationSets:[]};i.Fl(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.Fl(r,s),n.assetIdentifier=s}else if("AdaptationSet"===r.nodeName){var o=i.Wl(r);null!==o&&n.adaptationSets.push(o)}}return n},a.prototype.Wl=function(t){var i=this,n={representations:[],drm:[]};i.Fl(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.Fl(r,s),n.role=s}else if(r.nodeName===o)n.baseURL=r.childNodes[0].nodeValue;else if("ContentProtection"===r.nodeName){var u=i.Ql(r);null!==u&&n.drm.push(u)}else if("Representation"===r.nodeName){var a=i.Zl(r);null!==a&&n.representations.push(a)}else r.nodeName}return n},a.prototype.Ql=function(t){var i={};this.Fl(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.Fl(e,r),i.laurl=r}}return i},a.prototype.Zl=function(t){var i=this,n={};i.Fl(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.Fl(r,s),n.audioChannnelConfiguration=s}else if(r.nodeName===o)n.baseURL=r.childNodes[0].nodeValue;else if("SegmentTemplate"===r.nodeName){var u=i.$l(r);n.segmentTemplate=u}else if("SegmentList"===r.nodeName){var a=i.Xl(r);null!==a&&(n.segmentList=a)}}return n},a.prototype.$l=function(t){var i={};this.Fl(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.Jl(e);i.segmentTimeline=r}}return i},a.prototype.Jl=function(t){var i={sElements:[]};this.Fl(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.Fl(e,r),i.sElements.push(r)}}return i},a.prototype.Xl=function(t){var i={segments:[]};this.Fl(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.Fl(e,r),i.initialization=r}else if("SegmentURL"===e.nodeName){var s=e.getAttribute("media");null!==s&&i.segments.push(s)}}return i},a.prototype.Vl=function(t,i,n){return t.start?i+this.Nl(t.start):n},a.prototype.Gl=function(t,i,n,e,r,s,o,u){return t.duration?i+this.Nl(t.duration):e&&e.start?n+this.Nl(e.start):s?n+r+s:o+u},a.prototype.Bl=function(t){var i=this,n=Date.now();return i.Kl||(i.Kl=n-t),n-i.Kl}},9719:function(t,i,n){"use strict";t.exports=s;var e=n(7650).HLSEvent,r=n(902);function s(){var t=this;t.vt=t.wi.appModel,t._node=t.wi.node,t.nv={currentStreamBitrate:0,frameDrop:0,frameRateSum:0,frameRateSampleCount:0,currentKbps:0,deliveryProtocol:t.ev(),bufferingCount:0,totalBufferingTime:0,streamingMode:t.vt.streamingMode},t.FRAMERATE_SAMPLE_SIZE=4,t.rv={prevTotalFrames:0,prevTotalDroppedFrames:0,prevFrameRateMeasuredTime:0,frameRateSampleCollector:[],currentFrameRate:0},t.Jr=new r(1e3),t.Jr.addEventListener(t.ov,t)}s.prototype.destroy=function(){this.nv=null,this.Jr.destroy()},s.prototype.onPlay=function(){this.Jr.start()},s.prototype.onPlaying=function(){this.ov()},s.prototype.onPause=function(){this.Jr.stop()},s.prototype.updateBufferingInfo=function(t){t&&(t.value||t.bufferInit||(this.nv.bufferingCount++,this.nv.totalBufferingTime+=t.waitTime))},s.prototype.ov=function(){var t=this,i=t.vt.streams,n=t.nv,r=t.vt.getCurrentPlayingStream(),s=t.getFpsStats();r&&(n.currentStreamIndex=t.vt.currentPlayingStreamIndex,n.currentStreamBitrate=r.bitrate/1e3,n.mediaWidth=r.width,n.mediaHeight=r.height),i.length&&(n.qualityLevels=i.length,n.minBitRate=i[0].bitrate,n.maxBitRate=i[n.qualityLevels-1].bitrate),n.bufferLength=t.vt.getBufferLength().toFixed(2),n.bufferLength<=5&&t._node.buffered.length,n.frameRate=s.frameRate.toFixed(2),n.droppedFrames=s.droppedFrames,n.currentKbps=(1e3*t.vt.currentKbps).toFixed(0),n.streamingMode=t.vt.streamingMode,n.drm=t.vt.drmRequired,n.drmsys=t.vt.licenseType,t.vt.infoUpdateSent=!0,t.wi.sendEvent(e.INFO_UPDATE,{mediaInfo:t.nv})},s.prototype.getWindow=function(){return window},s.prototype.ev=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.rv,o=e.currentTime-s.prevFrameRateMeasuredTime,u=n.uv(),a=0;return(u.isWebKitFpsAvailable||u.isNonWebKitFpsAvailable)&&(t=u.isWebKitFpsAvailable?e:e.getVideoPlaybackQuality(),i=u.isWebKitFpsAvailable?t.webkitDecodedFrameCount:t.totalVideoFrames,a=u.isWebKitFpsAvailable?t.webkitDroppedFrameCount:t.droppedVideoFrames,(r=s.prevFrameRateMeasuredTime>0&&0!==o?(i-s.prevTotalFrames-(a-s.prevTotalDroppedFrames))/o:s.currentFrameRate)&&s.frameRateSampleCollector.push(r),n.av(),s.prevTotalFrames=i,s.prevTotalDroppedFrames=a,s.prevFrameRateMeasuredTime=e.currentTime),{frameRate:s.currentFrameRate,droppedFrames:a}},s.prototype.uv=function(){var t=this._node;return{isWebKitFpsAvailable:void 0!==t.webkitDecodedFrameCount,isNonWebKitFpsAvailable:"function"==typeof t.getVideoPlaybackQuality}},s.prototype.av=function(){var t=this,i=t.rv.frameRateSampleCollector;if(i.length>=t.FRAMERATE_SAMPLE_SIZE){var n=i.reduce((function(t,i){return t+i}));t.rv.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.Xf(t)},u.prototype.Xf=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.vt=t.__controller.model,t.cv=!1,t.Me=!1,t.hv=[],t.fv=[],t.vv=null,t.dv=null,t.X={},t.pv=NaN,t.bv(),t.yv=0,t._v=0,t.wv=0,t.Ov=!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.hv=[],t.fv=[],t.dv=null,t.vv=null,t.Ev()},r.prototype.bv=function(){var t=this;t.X[e.WAITING]=t.__controller.addEventListener(e.WAITING,t.jv,t)},r.prototype.Ev=function(){this.__controller.removeEventListeners(this.X)},r.prototype.onComplete=function(){this.segmentRenderNext()},r.prototype.onTimeUpdate=function(t){var i=this,n=i.vt.getCurrentPlayingStream();if(i.yv=t,i.updateRenderState(i.dv,i.yv),i.vt.live&&n&&n.cuepoints.length>0&&i.cuepointEventDispatcher(i.yv,n.cuepoints),n&&i.Sv(n,i.yv),t>0&&i.dv){var r=i.Av();r&&i.__controller.sendEvent(e.TIMED_METADATA_READY,r.payload)}},r.prototype.Sv=function(t,i){var n=this,e=Object.values(t.dateRanges);n.dv&&e.length&&n.Mv(n.dv,e,i)},r.prototype.Mv=function(t,i,n){for(var r=this,s=t.programDateTime+1e3*(n-t.beginTime),o=0;o<i.length;o++){var u=i[o],a=null;!u.endDate&&u.duration?a=u.startDate+1e3*u.duration:u.endDate&&(a=u.endDate);var c=r.currentDateranges.indexOf(u.id),h=c>-1;!h&&u.startDate&&s>=u.startDate&&(!a||s<a)?(r.__controller.sendEvent(e.DATE_RANGE_STARTED,u),r.currentDateranges.push(u.id)):h&&a&&s>a&&(r.__controller.sendEvent(e.DATE_RANGE_ENDED,u),r.currentDateranges.splice(c,1))}},r.prototype.Av=function(){var t=this,i=t.dv.seqNum,n=t.vt.timedMetadataStore[i],e=t.yv;if(!n||!n.length)return null;t.vt.live&&Object.keys(t.vt.timedMetadataStore).forEach((function(n){if(!(n>i)){var r=t.vt.timedMetadataStore[n].every((function(i){return e-i.timestamp>=t.vt.config.pastBufferLengthLimit.live}));r&&delete t.vt.timedMetadataStore[n]}}));if(e<n[0].timestamp||e>n[n.length-1].timestamp+.6)return null;for(var r=null,s=n.length-1;s>=0;s--){var o=n[s],u=(1e4*e-1e4*o.timestamp)/1e4;if(u>=0&&u<=.6){if(o.recent)continue;r=o;break}}return r&&(r.recent=!0,setTimeout((function(){delete r.recent}),600)),r},r.prototype.jv=function(t){t&&(t.bufferInit||(t.value?this.Tv():this.Nv(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.vv&&n.hv.push(n.vv),n.vv=r,n.dv&&t===n.dv.seqNum||!n.dv){if(n.dv&&r.bitrateIndex!==n.dv.bitrateIndex){var o=n.vt.streams,u={bitrate:Math.round(o[r.bitrateIndex].bitrate/1e3),reason:"fast-up",oldFrameRate:n.dv.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.vv;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.hv.push(e),n.vv=null)},r.prototype.segmentRenderNext=function(t){var i=this;i.dv&&(i.fv.push(i.dv),i.dv=null,i.__controller.sendEvent(e.SEGMENT_RENDERED)),t&&(i.dv=t,i.vt.setCurrentPlayingStream(t.bitrateIndex))},r.prototype.updateRenderState=function(t,i){var n=this;if(!(isNaN(i)||i<=0)&&(t||(t=n.Iv(i))&&n.segmentRenderNext(t),t&&(n.Rv&&(t.frameDrop=n.Rv.frameDrop,t.frameRateSum+=Number(n.Rv.frameRate.toFixed(2)),t.frameRateSampleCount++),!(i>=t.beginTime&&i<t.endTime)))){var r=n.Iv(i);if(r&&(n.segmentRenderNext(r),r.bitrateIndex!==t.bitrateIndex)){var s=n.vt.streams,o={bitrate:Math.round(s[r.bitrateIndex].bitrate/1e3),reason:r.switchReason,oldFrameRate:t.frameRate,newFrameRate:r.frameRate};n.__controller.sendEvent(e.STREAM_SWITCHED,o)}}},r.prototype.updateFrameStats=function(t){t&&(this.Rv=t)},r.prototype.Iv=function(t){var i=this;if(i.vv&&t>=i.vv.beginTime&&t<i.vv.endTime)return i.vv;if(i.hv.length)for(var n=i.hv.length-1;n>=0;n--)if(t>=i.hv[n].beginTime&&t<i.hv[n].endTime)return i.hv[n];return null},r.prototype.Tv=function(){var t=this;t.Me||(t.Me=!0,t.dv,t.vv)},r.prototype.Nv=function(t){var i=this;if(i.Me){i.Lv=NaN,i.Me=!1;var n=i.dv,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.dv,n=[];if(t.fv.length){for(var e=0;e<t.fv.length;e++)n.push(t.Vr(t.fv[e]));t.fv=[]}return i&&(n.push(t.Vr(i)),i.bufferCount=0,i.bufferTime=0,i.timeToFirstByte=NaN,i.timeToDownload&&(i.timeToDownload=NaN)),n},r.prototype.Vr=function(t){if(!t)return null;var i=this.vt.streams;t.bitrateIndex=i.length>0?Math.min(t.bitrateIndex,i.length-1):0;var n=i[t.bitrateIndex].bitrate/1e3,e=i[t.bitrateIndex].avgBitrate/1e3;return t.bufferTime>0&&!t.bufferCount?t.bufferCount=1:!t.bufferTime&&t.bufferCount>0&&(t.bufferCount=0),{seq_num:t.seqNum,max_b:n,avg_b:e,ib:n,ob:t.observedBitrate.toFixed(2),ab:Math.round(t.actualBitrate),num_buf:t.bufferCount,buf_dur:t.bufferTime,req_t:t.timeToRequest,fb_dl_t:t.timeToFirstByte,req_dl_t:t.timeToDownload,drop_f:t.frameDrop,avg_fr:(t.frameRateSum/t.frameRateSampleCount).toFixed(2)}},r.prototype.getMetricsBandwidthInfo=function(){var t=this,i=t.__controller.services.bandwidthEstimator,n=i.averageBandwidth===t.pv?0:i.averageBandwidth;return t.pv!==i.averageBandwidth&&(t.pv=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.Cv(t);return!i.isCueOutFired&&n===i.startSeqNum&&t>i.startTime},r.prototype.Cv=function(t){var i=this.vt.getCurrentPlayingStream(),n=i?i.segments:null;if(n){if(1===n.length)return n[0].seqNum;for(var e=n.length-1;e>=0;e--)if(t>=n[e].startTime)return n[e].seqNum}return null}},5212:function(t,i,n){"use strict";t.exports=c;var e=n(2175),r=n(2835),s=n(3799),o=n(5409),u=n(4939),a=n(2990);function c(){var t=this;t.vt=t.__controller.model,t.kv={},t.bandwidthEstimator=new s(t.vt.bwHistory),t.segmentMetrics=t.__controller.create(o),t.metadataParser=t.__controller.create(e),t.mp4BoxParser=new r}c.prototype.destroy=function(){var t=this;t.bandwidthEstimator.destroy(),t.segmentMetrics.destroy(),t.metadataParser.destroy(),t.kv&&Object.keys(t.kv).forEach((function(i){t.kv[i].terminate()}))},c.prototype.getNewLoader=function(t,i){var n=this.vt,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=a.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},c.prototype.getWorker=function(){return null}},7279:function(t,i,n){"use strict";t.exports.AACStream=u,t.exports.AVCStream=a;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.Dv=[],i.Pv=t||{},i.Pc={},i.ready=!1,i.xv=0}function a(t){var i=this;i.Dv=[],i.Pv=t||{},i.Pc={},i.Uv=0,i.ready=!1,i.Fv=0,i.xv=2970,i.uh=new e}u.prototype.destroy=function(){this.Dv=[]},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++],a=1&u;if(65520==(65520&u)&&0===(6&u)){n.Bv(t.subarray(e,e+2)),n.Pc.codec="mp4a.40.2",e++;var c=(t[e++]<<16)+(t[e++]<<8)+t[e++];for(c=(262112&c)>>>5,r=1+(3&t[e++]),a?c-=7:(c-=9,e+=2);o<r&&e<t.length;){var h=i+s*n.xv;n.Dv.push({data:t.subarray(e,e+c),dts:h,pts:h,keyframe:!1,flags:{isLeading:!1,dependsOn:!0,isDependedOn:!1,hasRedundancy:!1,paddingValue:!1,isNonSyncSample:!1,degradationPriority:1}}),e+=c,o++,s++}}else e--}return n.ready=n.zv(),e},u.prototype.Bv=function(t){var i=this;if(t&&!(t.length<2)){var n=1+((192&t[0])>>>6);n=n>4?4:n,i.Pc.audioObjectTypeIndex=n,i.Pc.audioObjectType=s[n],n=(n=(60&t[0])>>>2)<13?n:0,i.Pc.samplingFreqIndex=n,i.Pc.samplingFreq=r[n],i.Pc.channels=(1&t[0])<<2|(192&t[1])>>>6,i.Pc.sampleSize=16,i.xv=9216e4/i.Pc.samplingFreq}},u.prototype.zv=function(){var t=this,i=t.Dv.length;return(i>0?t.Dv[i-1].pts-t.Dv[0].pts+t.xv:0)>=9e3},u.prototype.getFrames=function(){var t=this;return t.ready=!1,t.Dv.splice(0,t.Dv.length)},u.prototype.getConfig=function(){return this.Pc},u.prototype.getLastFrameDetails=function(){var t=this;return t.Dv.length?{timestamp:t.Dv[t.Dv.length-1].dts,duration:t.xv}:null},a.prototype.destroy=function(){this.Dv=[],this.uh.destroy()},a.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,a=0,c=s,h={nalUnits:[],nalUnitSize:0,dts:t.packetInfo.dts,pts:t.packetInfo.pts,keyframe:!1,data:n,cea608Data:[],flags:{isLeading:0,dependsOn:0,isDependedOn:0,hasRedundancy:0,paddingValue:0,isNonSyncSample:!1,degradationPriority:0}},f=4294967295,l=!1;s<n.length;){if(r=NaN,1===(f=f<<8|n[s++])&&(r=4),1===(16777215&f)){if(!l&&s>r&&i.Dv&&i.Dv.length){var v=i.Dv[i.Dv.length-1],d=v.nalUnits,p=d[d.length-1];if(p){var b,m=s-r;v.nalUnitSize+=m,p.data?((b=new Uint8Array(p.data.byteLength+m)).set(p.data,0),b.set(n.subarray(0,m),p.data.byteLength)):(b=new Uint8Array(m)).set(n.subarray(0,m),0),p.data=b,(b=new Uint8Array(v.data.byteLength+m)).set(v.data,0),b.set(n.subarray(0,m),v.data.byteLength),v.data=b}}if(l=!0,f=4294967295,r=r||3,(u=h.nalUnits.length)>=1&&null===h.nalUnits[u-1].data)switch(a=s-c-r,e=n.subarray(c,c+a),h.nalUnitSize+=a,h.nalUnits[u-1].data=e,h.nalUnits[u-1].type){case o.SPS:i.Pc.profileIndication=e[1],i.Pc.profileCompatibility=e[2],i.Pc.levelIndication=e[3],i.Pc.numOfSPS=1,i.Pc.spsLength=e.length,i.Pc.sps=e;break;case o.PPS:i.Pc.numOfPPS=1,i.Pc.ppsLength=e.length,i.Pc.pps=e}c=s,a=0;var g=31&n[s++];if(g<o.AUD&&h.nalUnits.push({data:null,type:g}),g===o.IDR)i.Uv=i.Dv.length,h.keyframe=!0,h.flags.dependsOn=2,i.Fv++;else if(g===o.NON_IDR)h.keyframe=!1,h.flags.dependsOn=1,h.flags.isNonSyncSample=!0;else if(g===o.AD_INFO_SEI)for(var y=i.uh.parse(n,s),_=0;_<y.length;_++)h.cea608Data.push(y[_])}}(u=h.nalUnits.length)>=1&&null===h.nalUnits[u-1].data&&c<n.length&&(a=s-c,h.nalUnits[u-1].data=n.subarray(c,c+a),h.nalUnitSize+=a),i.Pc.codec=i.Vv(i.Pc),h.nalUnitSize>0&&i.Dv.push(h),i.ready=i.zv()}}},a.prototype.zv=function(){var t=this,i=t.Dv.length,n=i>0?t.Dv[i-1].pts-t.Dv[0].pts+t.xv:0;return t.Pv.startChunkWithKeyFrame?t.Fv>=2:i>1&&n>=9e3},a.prototype.getFrames=function(t){var i=this,n=i.Pv.startChunkWithKeyFrame&&t&&t.keyFrameBoundary,e=t.keyFrameBoundary?i.Dv.length-1:i.Dv.length;n&&(e=i.Uv,i.Fv=1,i.ready=!1);var r=i.Dv.splice(0,e);return i.Uv=0,r},a.prototype.getConfig=function(){return this.Pc},a.prototype.Vv=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=a;var e=n(7279),r=n(3661),s=n(6473),o=e.AACStream,u=e.AVCStream;function a(t,i,n){var e=this;e.streamType=t,e.streamId=i,e.Gv=[],e.Uc=!1,e.Pv=n,e.Hv=null,e.Yv=new s,"audio"===t?e.St=new o(e.Pv):"video"===t&&(e.St=new u(e.Pv))}function c(t){this.C=new r(Uint8Array,t),this.complete=!1}a.prototype.destroy=function(){var t=this;t.Gv=[],t.St&&(t.St.destroy(),t.St=null)},a.prototype.isReady=function(){var t=this,i=!!t.St&&t.St.ready;return t.Uc||i},a.prototype.addPacket=function(t){var i=this;i.Gv.length&&i.qv(),i.Gv.push(new c(t))},a.prototype.append=function(t){var i=this.Gv.length;t&&i&&this.Gv[i-1].append(t)},a.prototype.endOfSegment=function(){this.Uc=!0,this.qv()},a.prototype.getFrames=function(t){return this.St?this.St.getFrames(t):null},a.prototype.getTimedMetadata=function(){return this.Hv?this.Hv:null},a.prototype.getConfig=function(){return this.St?this.St.getConfig():null},a.prototype.qv=function(){var t=this,i=t.Gv.length;if(i){var n=t.Gv[i-1];n.complete=!0,0===n.parse()&&("id3"===t.streamType?t.Hv={payload:t.Yv.getID3Payload(n.packetInfo.streamData),pts:t.Gv.length&&t.Gv[0].packetInfo.pts}:t.St&&t.St.readFrames(n),t.Gv.pop())}},c.prototype.append=function(t){this.C&&this.C.set(t)},c.prototype.parse=function(){var t=this;if(t.packetInfo={},!t.complete||!t.C||!t.C.length)return t.packetInfo.result=-1,-1;if(t.C.length<6)return t.packetInfo.result=-2,-2;var i=0;if(1!==(t.C.get(i++)<<16)+(t.C.get(i++)<<8)+t.C.get(i++))return t.packetInfo.result=-3,-3;t.packetInfo.streamId=t.C.get(i++),i+=2,i++;var n=(192&t.C.get(i++))>>6,e=t.C.get(i++);return 2!==n&&3!==n||(t.packetInfo.pts=t.Wv(t.C.subArray(i,i+5)),t.packetInfo.dts=t.packetInfo.pts,i+=5,e-=5,3===n&&(t.packetInfo.dts=t.Wv(t.C.subArray(i,i+5)),i+=5,e-=5)),i+=e,t.packetInfo.streamData=t.C.subArray(i),t.packetInfo.result=0,0},c.prototype.Wv=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],a=t[i+7];if(181===s&&49===o&&1195456820===u&&3===a){var c=31&t[i+8];i+=9;var h,f,l=0;for(i++;l<c;){if(h=(4&t[i])>>2,f=3&t[i],h&&(0===f||1===f)){var v={fieldType:f,data1:t[i+1],data2:t[i+2]};n.push(v)}i+=3,l++}}}return i+=r,n}}},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.C=null,n.Pv=t||{},n.Qv=i,n.Zv=0,n.$v=NaN,n.Xv={},n.Jv={},n.Kv=[],n._e="initial",n.xc="start",n.Uc=!1}o.prototype.destroy=function(){var t=this;t.C=null,t.Kv=[],t._e="initial",t.xc="start";var i=t.Jv;for(var n in i)i.hasOwnProperty(n)&&i[n].destroy();t.Jv={}},o.prototype.append=function(t){var i=this;if(t){var n=t.length;if(n){var e=null,s=0;i.C&&(s=(e=i.C).length);var o=s+n;return i.C=new Uint8Array(o),e&&i.C.set(e),i.C.set(t,s),-2===i._i()?{error:r.ERR_SEGMENT_PARSE}:void 0}}},o.prototype.endOfSegment=function(){var t=this;t.Uc=!0,t.C&&t.C.length<s&&t.td()},o.prototype._i=function(){var t=this;if(!t.C)return-1;for(var i=0;t.C.length;){var n=t.qv(t.C.subarray(0,s));if(0===n)i++,t.C=t.C.subarray(s),i>=500&&(t.nd(),i=0);else{if(-2!==n)break;var e=t.ed(t.C);if(!(e>=0))break;t.C=t.C.subarray(e)}}return t.Uc&&0===t.C.length?t.td():t.nd(),0},o.prototype.qv=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.Zv&&e.adaptationFieldLength>=7&&i.rd(t.subarray(n,n+6)),n+=e.adaptationFieldLength-1);return!e.payloadExists||e.adaptationFieldLength>=183||i.sd(t.subarray(n),e),0},o.prototype.rd=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.od||(this.od=o)}},o.prototype.sd=function(t,i){var n,e,r,s=this;if(t&&i&&!isNaN(i.pid)&&(s.Xv.aac&&(n=s.Xv.aac),s.Xv.avc&&(e=s.Xv.avc),s.Xv.id3&&(r=s.Xv.id3),!(i.pid>=1&&i.pid<=15||8191===i.pid)))switch(i.pid){case 0:s.ud(t,i);break;case s.$v:s.hd(t,i);break;case n:s.fd("audio",n,t,i);break;case e:s.fd("video",e,t,i);break;case r:s.fd("id3",r,t,i),s.ld();break;default:s.vd(t,i)}},o.prototype.ud=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.$v=((31&t[n++])<<8)+t[n++]),this._e="patParsed"}},o.prototype.hd=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.Zv=((31&t[e++])<<8)+t[e++];var u=((15&t[e++])<<8)+t[e++];e+=u;for(var a=null,c=null,h=0;e-o<s-4;)switch(a=t[e++],c=((31&t[e++])<<8)+t[e++],h=((15&t[e++])<<8)+t[e++],e+=h,a){case 3:case 4:n.Xv.mp3=c;break;case 15:n.Xv.aac=c;break;case 27:n.Xv.avc=c;break;case 21:n.Xv.id3=c}n._e="pmtParsed"}},o.prototype.fd=function(t,i,n,r){if(n){var s=this.Jv,o=s[i];r.startIndicator?(o||(s[i]=new e(t,i,this.Pv),o=s[i]),o.addPacket(n)):o&&o.append(n)}},o.prototype.vd=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.Xv.avc=i.pid,n.fd("video",n.Xv.avc,t,i)):12!==u&&13!==u||(n.Xv.aac=i.pid,n.fd("audio",n.Xv.aac,t,i))}else 2===o&&n.hd(t,i)}},o.prototype.dd=function(){var t=this,i=!0;for(var n in t.Xv)if("id3"!==n&&t.Xv.hasOwnProperty(n)){var e=t.Xv[n];t.Jv[e]&&(i=i&&t.Jv[e].isReady())}return i},o.prototype.nd=function(){var t=this;if(t.dd()){var i={},n=!1,e=!1,r=t.Jv,s=Number.POSITIVE_INFINITY;for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];if(u){var a={frames:u.getFrames({keyFrameBoundary:"end"!==t.xc}),config:u.getConfig(),streamId:u.streamId};"audio"===u.streamType&&o===t.Xv.aac.toString()?(i.audio=a,n=i.audio.frames&&i.audio.frames.length):"video"===u.streamType&&o===t.Xv.avc.toString()&&(i.video=a,e=i.video.frames&&i.video.frames.length)}}n&&(s=Math.min(s,i.audio.frames[0].dts)),e&&(s=Math.min(s,i.video.frames[0].dts)),s!==Number.POSITIVE_INFINITY&&(i.pcr=s),("end"===t.xc||n||e)&&(t.Qv&&t.Qv({pos:t.xc,avData:i}),"start"===t.xc&&(t.xc="middle"))}},o.prototype.ld=function(){var t=this,i=t.Jv,n=null;Object.keys(i).forEach((function(e){var r=i[e];r&&"id3"===r.streamType&&e===t.Xv.id3.toString()&&(n=r.getTimedMetadata())})),n&&t.Qv&&t.Qv({pos:"timedMetadata",timedMetadata:n})},o.prototype.ed=function(t){if(!t)return-1;for(var i=0;i<t.length;i++)if(71===t[i])return i;return-1},o.prototype.td=function(){var t=this;t.xc="end";var i=t.Jv;for(var n in i)i.hasOwnProperty(n)&&(i[n].endOfSegment(),"id3"===i[n].streamType&&t.ld());t.nd()}},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"}},2645:function(module){var t;self,t=function(){var __webpack_modules__={8:function(t){function i(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=i=function(t){return typeof t}:t.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0,i(n)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0},1600:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ARGS=void 0;var n="39163019";i.ARGS={SERVER_URL:"https://s.yimg.com/rx/martini/builds"+"/".concat(n),BUILD_ENV:"prod",O2_REPORT_SERVER_URL:"https://trk.vidible.tv/trk",ADAPTV_SERVER:"log.adaptv.advertising.com",MARTINI_VERSION:"1.0.10",MARTINI_CLIENT_NAME:"martini"}},4438:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdConfigParser=void 0;var e=n(4981),r=n(7206),s=n(8503),o=n(835),u=new Map([["PREROLL","pre"],["MIDROLL","mid"],["POSTROLL","post"]]);function a(){this.bd={}}a.prototype.parse=function(t,i,n){var e=i.YVAP,r=i.url||i.vastXml;return this.bd[t]=this.bd[t]||0,e?this.parseGeminiNative(t,i.YVAP):r?this.md(t,i,n):this.gd(t,i,n)},a.prototype.parseGeminiNative=function(t,i){var n=[];return n.push(new s.GeminiNativeAdBreak(++this.bd[t],i,t)),n},a.prototype.gd=function(t,i,n){var e,s=this,o=[];return null!==(e=i.schema)&&void 0!==e&&e.pods.forEach((function(e){s.yd(e.type,n,!1,e.time).forEach((function(u){o.push(new r.VrmAdBreak(++s.bd[t],i,t,u.offset,e,n.playlistPosition))}))})),o},a.prototype.md=function(t,i,n){var r=this,s=[];return this.yd(i.type,n,i.adOnly).forEach((function(n){s.push(new e.SimplifiedAdBreak(++r.bd[t],i,t,n.offset))})),s},a.prototype.yd=function(t,i,n,e){return void 0===n&&(n=!1),t=(t=void 0===t?"PREROLL":t).toUpperCase(),n?[{offset:"adonly"}]:"OVERLAY"===t?e?[{offset:((0,o.timeStrToMilliSeconds)(e)/1e3).toFixed(1)}]:i.overlayOffsets||[]:"MIDROLL"===t?i.midrollOffsets||[{offset:"mid"}]:[{offset:null!==(t=u.get(t))&&void 0!==t?t:"pre"}]},n=a,i.AdConfigParser=n},8503: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])})(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.GeminiNativeAdBreak=void 0;var s,o=n(5260),u=n(3030);function a(t,i,n){return(t=s.call(this,t,"adonly",1,"linear")||this).refId=n,t.pods.push(new u.GeminiNativePod(i)),t.playerId="5b3260f8dbaab35b11ca3a6e",t.buyerCompanyId="5b32606132679a7241fe5ca9",t.videoId="5b3261c2cd472447b9cd4d4b",t.calculated=!0,t}r(a,s=o.AdBreak),r=a,i.GeminiNativeAdBreak=r},3030: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])})(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.GeminiNativePod=void 0;var s,o=n(8927),u=n(4704);function a(t){var i=s.call(this)||this;return t=i.convertToGeminiPreroll(t.standaloneAd),i.sources.push(new u.GeminiNativeSource(t)),i.adxResult="SHOW_ADS",i.type="PREROLL",i}r(a,s=o.Pod),a.prototype.convertToGeminiPreroll=function(t){return{ads:[{actionUrls:t.beacons,rules:t.rules,tag:JSON.stringify(this.getAdTag(t.gemini)),creativeId:t.creativeId}]}},a.prototype.getAdTag=function(t){return{assets:[{mediaInfo:t.mediaInfo,usageType:"VIDEO_PRIMARY"}],callToAction:t.callToAction||"",clickUrl:t.clickUrl,disableAdCountdown:!!t.disableAdCountdown,headline:t.headline||"",source:t.source||"",ctaConfig:t.ctaConfig||{}}},r=a,i.GeminiNativePod=r},4704: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])})(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)});function o(t){var i=r.call(this)||this;return i.adMarkup=JSON.stringify(t),i.network="standalone_gemini_native",i.type="GEMINI",i}Object.defineProperty(i,"__esModule",{value:!0}),i.GeminiNativeSource=void 0,n=n(7672),s(o,r=n.Source),s=o,i.GeminiNativeSource=s},4981: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])})(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.SimplifiedAdBreak=void 0;var s,o=n(5260),u=n(179);function a(t,i,n,e){return(e=s.call(this,t,e,2,"OVERLAY"===(null===(e=i.type)||void 0===e?void 0:e.toUpperCase())?"nonlinear":"linear")||this).refId=n,e.pods.push(new u.SimplifiedPod(i)),e.playerId="5afc75ea3a04293dad9f1a1f",e.buyerCompanyId="5afc769f7239855a15fcee15",e.videoId="5ba51c50007d0c73e2b8eddd",e.calculated=!0,e}r(a,s=o.AdBreak),r=a,i.SimplifiedAdBreak=r},179: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])})(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.SimplifiedPod=void 0;var s,o=n(8927),u=n(346),a=new Map([["PREROLL","PREROLL"],["MIDROLL","MIDROLL"],["POSTROLL","POSTROLL"],["OVERLAY","OVERLAY"]]);function c(t){var i=s.call(this)||this;return i.sources.push(new u.SimplifiedSource(t)),i.adxResult="SHOW_ADS",i.type=null!==(t=a.get(null===(t=t.type)||void 0===t?void 0:t.toUpperCase()))&&void 0!==t?t:"PREROLL",i}r(c,s=o.Pod),r=c,i.SimplifiedPod=r},346: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])})(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)});function o(t){var i=r.call(this)||this;return i.url=t.url,i.network=t.vendor||"simplified_ad_config",i.type=t.format||"VAST",i.adMarkup=t.vastXml,i.duration=t.duration,i.position=t.position,i}Object.defineProperty(i,"__esModule",{value:!0}),i.SimplifiedSource=void 0,n=n(7672),s(o,r=n.Source),s=o,i.SimplifiedSource=s},7206: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])})(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.VrmAdBreak=void 0;var s,o=n(5260),u=n(9016);function a(t,i,n,e,r,o){void 0===o&&(o=0);var a=s.call(this,t,e,0,"OVERLAY"===r.type?"nonlinear":"linear")||this;return a.refId=n,r.slots.forEach((function(t,i){a.pods.push(new u.VrmPod(t,i+1,o))})),a.playerId=i.pid,a.buyerCompanyId=i.bcid,a.videoId=i.vid,a.sourceId=i.sid,a.bucket=i.bckt,a.expn=i.expn,a.expb=i.expb,a.device=i.device,a.region=i.region,a.site=i.site,a.calculated=r.calculated,a.autoplay=i.autoplay,a}r(a,s=o.AdBreak),r=a,i.VrmAdBreak=r},9016: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])})(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.VrmPod=void 0;var s,o=n(8927),u=n(2557),a=n(5984);function c(t,i,n){void 0===n&&(n=0);var e=s.call(this)||this;return t.aeg.forEach((function(t,i){t.forEach((function(t){e.sources.push(new a.VrmSource(t,i+1,n))}))})),e.adxResult=t.adxResult,e.type=t.type,e.transactionId=t.txid,e.sourceId=t.sid,e.adCampaignId=t.acid,e.podSequence=i,e.podId=t.podId,e.usid=t.usid,e.aolPlatformId=t.apid,e.auid=t.auid,e.adSetId=t.asid,e.profitCenter=t.profitCenter,e.ruleCompanyId=t.rcid,e.isHouseAd=t.houseAd,e.bookingId=null===(i=t.saleforce)||void 0===i?void 0:i.bookingId,e.lineItemId=null===(i=t.saleforce)||void 0===i?void 0:i.lineItemId,e.costPerImpression=(0,u.base64Decode)(t.cpm)||0,e.bsfv=t.bsfv,e.slotType=t.slot,e}r(c,s=o.Pod),r=c,i.VrmPod=r},5984: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])})(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)});function o(t,i,n){void 0===n&&(n=0);var e=r.call(this)||this;return e.name=t.name,e.url=t.url,e.network=t.vendorName,e.sequence=i,e.type="GEMINI"==t.adEngineType.toUpperCase()?"GEMINI":"VAST",e.ruleId=t.rid,e.adMarkup=t.vastXml,e.ruleCompanyId=t.rcid,e.bsfv=t.bsfv,e.cpm=t.cpm,e.ruleWeight=t.weight,e.skipVastRequestRetry=!(0<n)&&t.skipVastRequestRetry,e.vendor=t.vendor&&t.vendor.match(/[0-9a-zA-Z]{24}/g)?t.vendor:"",e}Object.defineProperty(i,"__esModule",{value:!0}),i.VrmSource=void 0,n=n(7672),s(o,r=n.Source),s=o,i.VrmSource=s},8361:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.AbstractPluginMessenger=void 0;var s=n(872),o=n(6263),u=n(1600),a=n(3952),c=n(3193),h=n(7489);function f(t,i){this._d=t,this.wd=new s.SecureRunner,this.Od="",this.Ed=0,this.jd=!1,this.Sd=new o.Messenger(i)}f.prototype.prepare=function(t,i,n){return void 0===i&&(i=this.Ad),void 0===n&&(n=this.jd),e(this,void 0,void 0,(function(){var e,s,o,a=this;return r(this,(function(r){return this.Ad=i,this.jd=n,this.Od="".concat(this._d,"-").concat(++this.Ed,"-").concat(~~(1e4*Math.random())),t[c.FrameParams.RUNNER_INDEX]=this.Ed,(e="",h.isIE)()&&(e="-ie"),(0,h.isMobile)()&&(0,h.isOldSafari)()&&(e="-old-safari"),e="".concat(u.ARGS.SERVER_URL,"/").concat(this._d).concat(e,".html"),s="".concat(this._d,"-").concat(t[c.FrameParams.PLAYER_GUID],"-").concat(this.Ed),o="plugin-".concat(s),[2,this.wd.create(this.Od,e,t,i,n).then((function(t){return a.Sd.init(t.domElement,u.ARGS.SERVER_URL,o,s)})).then((function(){return a.Od}))]}))}))},f.prototype.destroy=function(t){var i=this,n=this.Od;this.wd.hide(n),this.Sd.destroy(),t?this.wd.destroy(n):setTimeout((function(){return i.wd.destroy(n)}),a.DESTROY_FRAME_TIMEOUT)},f.prototype.onUnhandledException=function(t){this.Sd.setListener("UNHANDLED_EXCEPTION",(function(i){t(i.payload)}))},n=f,i.AbstractPluginMessenger=n},5702:function(t,i,n){"use strict";var e=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.createAdAdapter=void 0;var r=n(1500),s=n(4739),o=e(n(9859));i.createAdAdapter=function(t,i,n){var e;return new("OVERLAY"===(null===(e=null===(e=t.successfulSource)||void 0===e?void 0:e.podType)||void 0===e?void 0:e.toUpperCase())?s.VastOverlayAdAdapter:"GEMINI"===(null===(e=t.successfulSource)||void 0===e?void 0:e.sourceType)?o.default:r.VastAdAdapter)(t,i,n)}},9561:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdAdapter=void 0;var e=n(5579);function r(t,i,n){this.Md=t,this.sources=[],this.unsuccessfulSources=this.Md.unsuccessfulSources.map((function(t){return(0,e.createAdSourceAdapter)(t,i,n)})),(t=this.sources).push.apply(t,this.unsuccessfulSources),this.Md.successfulSource&&(this.successfulSource=(0,e.createAdSourceAdapter)(this.Md.successfulSource,i,n),this.sources.push(this.successfulSource))}Object.defineProperty(r.prototype,"actualSource",{get:function(){var t;return null!==(t=this.successfulSource)&&void 0!==t?t:this.unsuccessfulSources[this.unsuccessfulSources.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return"VAST"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sourceSequence",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.sourceSequence)&&void 0!==t?t:1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasUnresolvedSources",{get:function(){return this.Md.hasUnresolvedSources},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"device",{get:function(){return this.Md.device},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"region",{get:function(){return this.Md.region},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buyerCompanyId",{get:function(){return this.Md.buyerCompanyId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sourceId",{get:function(){return this.Md.sourceId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"expn",{get:function(){return this.Md.expn},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"expb",{get:function(){return this.Md.expb},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"site",{get:function(){return this.Md.site},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"videoId",{get:function(){return this.Md.videoId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoplay",{get:function(){return this.Md.autoplay},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"referringPage",{get:function(){return this.Md.referringPage},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"spaceid",{get:function(){return this.Md.spaceid},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"s265Channel",{get:function(){return this.Md.s265Channel},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bucket",{get:function(){return this.Md.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"opportunityBeacons",{get:function(){var t=[];return this.sources.forEach((function(i){i.opportunityBeacons&&t.push.apply(t,i.opportunityBeacons)}),[]),t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sourceUrl",{get:function(){var t;return(null===(t=this.successfulSource)||void 0===t?void 0:t.sourceUrl)||""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"podType",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.podType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"refId",{get:function(){return this.Md.refId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"breakId",{get:function(){return this.Md.breakId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"adReplay",{get:function(){return this.Md.adReplay},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"playerId",{get:function(){return this.Md.playerId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"numberRetry",{get:function(){return this.Md.numberRetry},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"adCampaignId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.adCampaignId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"podSequence",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.podSequence},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"podId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.podId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sourceName",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.sourceName},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"transactionId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.transactionId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"usid",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.usid},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"aolPlatformId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.aolPlatformId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"auid",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.auid},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"adSetId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.adSetId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"profitCenter",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.profitCenter},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ruleCompanyId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.ruleCompanyId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ruleId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.ruleId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isHouseAd",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.isHouseAd},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bookingId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.bookingId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"lineItemId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.lineItemId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"vendor",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.vendor},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sourceLatency",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.sourceLatency},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"adxResult",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.adxResult},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"costPerImpression",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.costPerImpression},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bsfv",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.bsfv},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"slotType",{get:function(){return this.actualSource.slotType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"duration",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.duration},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"position",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.position},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"network",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.network},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isAdMarkup",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.isAdMarkup},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"error",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.error},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"viewabilityBeacons",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.viewabilityBeacons},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasModel",{get:function(){return!!this.successfulSource},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mediaFiles",{get:function(){var t;return(null===(t=this.successfulSource)||void 0===t?void 0:t.mediaFiles)||[]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mediaFormatCounts",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.mediaFormatCounts)&&void 0!==t?t:{}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"creativeId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.creativeId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"crd",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.crd},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"adId",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clickThroughUrl",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.clickThroughUrl)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"skipOffset",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ccFiles",{get:function(){return[]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"width",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"responseType",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.responseType)&&void 0!==t?t:"no-ad"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"adSystemName",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"placementId",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sourceUrls",{get:function(){return this.Md.resolvedSourceHops.map((function(t){return t.url}))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"distinctSourcesBySequence",{get:function(){var t={};return this.sources.forEach((function(i){return t[i.sourceSequence]=i})),Object.values(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"containsEmbeddedAd",{get:function(){var t;return!(null===(t=this.successfulSource)||void 0===t||!t.containsEmbeddedAd)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"resolveLatency",{get:function(){return this.Md.resolveLatency},enumerable:!1,configurable:!0}),n=r,i.AdAdapter=n},5579:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createAdSourceAdapter=void 0;var e=n(9867),r=n(8291),s=n(6074);i.createAdSourceAdapter=function(t,i,n){var o;return new("OVERLAY"===(null===(o=t.podType)||void 0===o?void 0:o.toUpperCase())?s.VastOverlayAdSourceAdapter:"GEMINI"===t.sourceType?r.GeminiAdSourceAdapter:e.VastAdSourceAdapter)(t,i,n)}},8898:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdSourceAdapter=void 0;var e=n(2340),r=n(9844);function s(t,i,n){this.Td=t,this.Nd=[],this.Id=[],this.Rd=0<this.Ld.length?(0,e.getMediaFormatCounts)(this.Ld):{},this.sortAndSetMediaFiles(i,n)}s.prototype.sortAndSetMediaFiles=function(t,i){this.Id=(0,e.sortMediaFiles)(this.Ld,t,i),this.Nd=this.Id.map((function(t){return new r.MediaFileAdapter(t)}))},Object.defineProperty(s.prototype,"mediaFiles",{get:function(){return this.Nd},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"Ld",{get:function(){return[]},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"Cd",{get:function(){return this.Td.model},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasModel",{get:function(){return!!this.Cd},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"containsEmbeddedAd",{get:function(){return!!this.Td.isEmbedded&&this.hasModel},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"responseType",{get:function(){return"no-ad"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sourceSequence",{get:function(){var t;return null!==(t=this.Td.sourceSequence)&&void 0!==t?t:1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sourceUrl",{get:function(){var t;return null!==(t=this.Td.sourceUrl)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"podType",{get:function(){return this.Td.podType},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sourceType",{get:function(){return this.Td.sourceType},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"adCampaignId",{get:function(){return this.Td.adCampaignId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"podSequence",{get:function(){return this.Td.podSequence},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"podId",{get:function(){return this.Td.podId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sourceName",{get:function(){return this.Td.sourceName},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"transactionId",{get:function(){return this.Td.transactionId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"usid",{get:function(){return this.Td.usid},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"aolPlatformId",{get:function(){return this.Td.aolPlatformId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"auid",{get:function(){return this.Td.auid},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"adSetId",{get:function(){return this.Td.adSetId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"profitCenter",{get:function(){return this.Td.profitCenter},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"ruleCompanyId",{get:function(){return this.Td.ruleCompanyId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"ruleId",{get:function(){return this.Td.ruleId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isHouseAd",{get:function(){return this.Td.isHouseAd},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"bookingId",{get:function(){return this.Td.bookingId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"lineItemId",{get:function(){return this.Td.lineItemId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"vendor",{get:function(){return this.Td.vendor},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sourceLatency",{get:function(){return this.Td.sourceLatency},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"responseLength",{get:function(){return this.Td.responseLength||0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"adxResult",{get:function(){return this.Td.adxResult},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"costPerImpression",{get:function(){return this.Td.costPerImpression},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"bsfv",{get:function(){return this.Td.bsfv},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"slotType",{get:function(){return this.Td.slotType},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"duration",{get:function(){return this.Td.duration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"position",{get:function(){return this.Td.position},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"network",{get:function(){return this.Td.network},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isAdMarkup",{get:function(){return this.Td.isAdMarkup},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"error",{get:function(){return this.Td.error},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"opportunityBeacons",{get:function(){return this.Td.opportunityBeacons},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sourceUrls",{get:function(){var t;return(null===(t=this.Td.resolvedSourceHops)||void 0===t?void 0:t.map((function(t){return t.url})))||[]},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"viewabilityBeacons",{get:function(){return this.Td.viewabilityBeacons},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"mediaFormatCounts",{get:function(){return this.Rd},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"creativeId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"clickThroughUrl",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"crd",{get:function(){return this.Td.crd},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"adId",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"adSystemName",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"adConfigType",{get:function(){return this.Td.adConfigType},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"placementId",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"totalAdsInResponse",{get:function(){return this.Td.totalAdsInResponse},enumerable:!1,configurable:!0}),n=s,i.AdSourceAdapter=n},9859: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])})(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)});function o(){return null!==r&&r.apply(this,arguments)||this}Object.defineProperty(i,"__esModule",{value:!0}),n=n(9561),s(o,r=n.AdAdapter),Object.defineProperty(o.prototype,"ctaConfig",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.ctaConfig},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"callToAction",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.callToAction},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"headline",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.headline},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"source",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.source},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"clickThroughUrl",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.clickThroughUrl)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"type",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.type},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"creativeId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.creativeId},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"priceType",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.priceType},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"advertiserId",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.advertiserId},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"actionUrls",{get:function(){var t;return(null===(t=this.successfulSource)||void 0===t?void 0:t.actionUrls)||{}},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"impBeacon",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.impBeacon},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"rules",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.rules},enumerable:!1,configurable:!0}),s=o,i.default=s},8291: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])})(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.GeminiAdSourceAdapter=void 0;var s,o=n(7792);function u(){return null!==s&&s.apply(this,arguments)||this}n=n(8898),r(u,s=n.AdSourceAdapter),Object.defineProperty(u.prototype,"Ld",{get:function(){var t=null===(t=null===(t=this.kd)||void 0===t?void 0:t.assets)||void 0===t?void 0:t.find((function(t){return t.usageType===o.GeminiUsageType.VIDEO_PRIMARY}));return null!==(t=null==t?void 0:t.mediaInfo)&&void 0!==t?t:[]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"ctaConfig",{get:function(){var t;return null===(t=this.kd)||void 0===t?void 0:t.ctaConfig},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"callToAction",{get:function(){var t;return null===(t=this.kd)||void 0===t?void 0:t.callToAction},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"headline",{get:function(){var t;return null===(t=this.kd)||void 0===t?void 0:t.headline},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"source",{get:function(){var t;return null===(t=this.kd)||void 0===t?void 0:t.source},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"clickThroughUrl",{get:function(){var t;return null!==(t=null===(t=this.kd)||void 0===t?void 0:t.clickUrl)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"type",{get:function(){return"GEMINI"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"creativeId",{get:function(){var t;return null===(t=this.Dd)||void 0===t?void 0:t.creativeId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"priceType",{get:function(){var t;return null===(t=this.Dd)||void 0===t?void 0:t.priceType},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"advertiserId",{get:function(){var t;return null===(t=this.kd)||void 0===t?void 0:t.advertiser_id},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"actionUrls",{get:function(){var t;return(null===(t=this.Dd)||void 0===t?void 0:t.actionUrls)||{}},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"impBeacon",{get:function(){var t;return null===(t=this.Dd)||void 0===t?void 0:t.beacon},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"rules",{get:function(){var t;return null===(t=this.Dd)||void 0===t?void 0:t.rules},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"responseType",{get:function(){var t;return null!==(t=this.mediaFiles[0])&&void 0!==t&&t.url?"ad":"no-ad"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"Dd",{get:function(){return this.Cd},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"kd",{get:function(){var t;return null===(t=this.Dd)||void 0===t?void 0:t.tag},enumerable:!1,configurable:!0}),r=u,i.GeminiAdSourceAdapter=r},9844:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MediaFileAdapter=void 0;var e=n(2340);function r(t){this.Pd=t,this.D=t.url?"GEMINI":"VAST"}Object.defineProperty(r.prototype,"xd",{get:function(){if("VAST"===this.D)return this.Pd},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Ud",{get:function(){if("GEMINI"===this.D)return this.Pd},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bitrate",{get:function(){var t;return null!==(t=this.Pd.bitrate)&&void 0!==t?t:0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"width",{get:function(){return this.Pd.width},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.Pd.height},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"adFormat",{get:function(){var t=this.bitrate||"",i="".concat(this.Pd.width||0,"x").concat(this.Pd.height||0);return"".concat(i,":").concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mimeType",{get:function(){var t;return null!==(t=null!==(t=null===(t=this.Ud)||void 0===t?void 0:t.contentType)&&void 0!==t?t:this.xd.type)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"apiFramework",{get:function(){var t;return null!==(t=null===(t=this.xd)||void 0===t?void 0:t.apiFramework)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"url",{get:function(){var t;return null!==(t=null!==(t=null===(t=this.Ud)||void 0===t?void 0:t.url)&&void 0!==t?t:this.xd.content)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"id",{get:function(){var t;return null!==(t=null===(t=this.xd)||void 0===t?void 0:t.id)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isVpaid",{get:function(){return!!this.xd&&(0,e.isVpaid)(this.xd)},enumerable:!1,configurable:!0}),n=r,i.MediaFileAdapter=n},1732: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])})(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)});function o(){return null!==r&&r.apply(this,arguments)||this}Object.defineProperty(i,"__esModule",{value:!0}),i.VastAdAdapterBase=void 0,n=n(9561),s(o,r=n.AdAdapter),Object.defineProperty(o.prototype,"adId",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.adId)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"creative",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.creative},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"creativeId",{get:function(){var t;return null===(t=this.creative)||void 0===t?void 0:t.id},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"adParameters",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"impressions",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.impressions)&&void 0!==t?t:[]},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"viewableImpression",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.viewableImpression},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"placementId",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.placementId)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"trackings",{get:function(){return[]},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"adSystemName",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.adSystemName)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"universalAdId",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.universalAdId)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),s=o,i.VastAdAdapterBase=s},1500: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])})(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.VastAdAdapter=void 0;var s,o=n(1732),u=n(2698);function a(){return null!==s&&s.apply(this,arguments)||this}r(a,s=o.VastAdAdapterBase),Object.defineProperty(a.prototype,"duration",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.duration},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"skipOffset",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.skipOffset)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"adParameters",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.adParameters)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"trackings",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.trackings)&&void 0!==t?t:[]},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"clickTracking",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.clickTracking},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"verifications",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.verifications)&&void 0!==t?t:[]},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"ccFiles",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.ccFiles)&&void 0!==t?t:[]},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"clickThroughUrl",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.clickThroughUrl)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"icons",{get:function(){var t;return(0,u.combineToArray)(null===(t=null===(t=null===(t=null===(t=this.successfulSource)||void 0===t?void 0:t.creative)||void 0===t?void 0:t.linear)||void 0===t?void 0:t.icons)||void 0===t?void 0:t.icon)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"responseType",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.responseType)&&void 0!==t?t:"no-ad"},enumerable:!1,configurable:!0}),r=a,i.VastAdAdapter=r},9830: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])})(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.VastAdSourceAdapterBase=void 0;var s,o=n(2698),u=n(8898),a=n(9646),c=n(2205),h=n(9960),f=n(1600);function l(){var t=null!==s&&s.apply(this,arguments)||this;return t.Fd="",t}r(l,s=u.AdSourceAdapter),Object.defineProperty(l.prototype,"vastAd",{get:function(){return this.Cd},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"responseType",{get:function(){return this.mediaFiles.length?"ad":"no-ad"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creatives",{get:function(){var t;return(0,o.combineToArray)(null===(t=null===(t=null===(t=this.vastAd)||void 0===t?void 0:t.inLine)||void 0===t?void 0:t.creatives)||void 0===t?void 0:t.creative)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creative",{get:function(){return this.creatives[0]},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creativeId",{get:function(){var t;return null===(t=this.creative)||void 0===t?void 0:t.id},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"universalAdId",{get:function(){var t=null===(t=this.creative)||void 0===t?void 0:t.universalAdId;return t?encodeURIComponent("".concat(t.idRegistry," ").concat(t.content)):""},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"inlineError",{get:function(){var t,i;return null!==(t=null===(t=this.vastAd)||void 0===t?void 0:t.inLine)&&void 0!==t&&t.error?(0,o.combineToArray)(this.vastAd.inLine.error).map((function(t){return{event:c.TrackingEvent.TRACK_ERROR,content:t.content}})):i},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"extensions",{get:function(){var t;return(0,o.combineToArray)(null===(t=null===(t=null===(t=this.vastAd)||void 0===t?void 0:t.inLine)||void 0===t?void 0:t.extensions)||void 0===t?void 0:t.extension)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"verifications",{get:function(){var t,i=this.extensions.find((function(t){return t.type==a.ExtensionType.AD_VERIFICATIONS}));return(0,o.combineToArray)(null===(t=null===(t=null===(t=this.vastAd)||void 0===t?void 0:t.inLine)||void 0===t?void 0:t.adVerifications)||void 0===t?void 0:t.verification,null===(i=null==i?void 0:i.adVerifications)||void 0===i?void 0:i.verification)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"adId",{get:function(){var t;return null!==(t=this.vastAd)&&void 0!==t&&t.inLine&&this.vastAd.id?this.vastAd.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"impressions",{get:function(){var t;return(0,o.combineToArray)(null===(t=null===(t=this.vastAd)||void 0===t?void 0:t.inLine)||void 0===t?void 0:t.impression)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"adSystemName",{get:function(){var t;return null!==(t=null===(t=null===(t=null===(t=this.vastAd)||void 0===t?void 0:t.inLine)||void 0===t?void 0:t.adSystem)||void 0===t?void 0:t.content)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"viewableImpression",{get:function(){var t;return null===(t=null===(t=this.vastAd)||void 0===t?void 0:t.inLine)||void 0===t?void 0:t.viewableImpression},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"placementId",{get:function(){for(var t=0;t<this.impressions.length;t++){var i=this.impressions[t].content;i.includes(f.ARGS.ADAPTV_SERVER)&&!this.Fd&&(this.Fd=(0,h.getParameterByName)("5",i))}return this.Fd},enumerable:!1,configurable:!0}),r=l,i.VastAdSourceAdapterBase=r},9867: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])})(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.VastAdSourceAdapter=void 0;var s,o=n(2698),u=n(835);function a(){return null!==s&&s.apply(this,arguments)||this}n=n(9830),r(a,s=n.VastAdSourceAdapterBase),Object.defineProperty(a.prototype,"Ld",{get:function(){var t;return(0,o.combineToArray)(null===(t=null===(t=null===(t=this.creative)||void 0===t?void 0:t.linear)||void 0===t?void 0:t.mediaFiles)||void 0===t?void 0:t.mediaFile)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"duration",{get:function(){var t=null===(t=null===(t=null===(t=this.creative)||void 0===t?void 0:t.linear)||void 0===t?void 0:t.duration)||void 0===t?void 0:t.content;return t?(0,u.timeStrToMilliSeconds)(t):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"skipOffset",{get:function(){var t;return null!==(t=null===(t=null===(t=this.creative)||void 0===t?void 0:t.linear)||void 0===t?void 0:t.skipoffset)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"adParameters",{get:function(){var t;return null!==(t=null===(t=null===(t=null===(t=this.creative)||void 0===t?void 0:t.linear)||void 0===t?void 0:t.adParameters)||void 0===t?void 0:t.content)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"trackings",{get:function(){var t;return(0,o.combineToArray)(null!==(t=null===(t=null===(t=null===(t=this.creative)||void 0===t?void 0:t.linear)||void 0===t?void 0:t.trackingEvents)||void 0===t?void 0:t.tracking)&&void 0!==t?t:[],this.inlineError)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"clickTracking",{get:function(){var t;return null===(t=(0,o.combineToArray)(null!==(t=null===(t=null===(t=null===(t=this.creative)||void 0===t?void 0:t.linear)||void 0===t?void 0:t.videoClicks)||void 0===t?void 0:t.clickTracking)&&void 0!==t?t:[])[0])||void 0===t?void 0:t.content},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"ccFiles",{get:function(){var t=null===(t=null===(t=null===(t=this.creative)||void 0===t?void 0:t.linear)||void 0===t?void 0:t.mediaFiles.closedCaptionFiles)||void 0===t?void 0:t.closedCaptionFile;return t?(0,o.combineToArray)(t):[]},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"clickThroughUrl",{get:function(){var t;return null!==(t=null===(t=null===(t=null===(t=null===(t=this.creative)||void 0===t?void 0:t.linear)||void 0===t?void 0:t.videoClicks)||void 0===t?void 0:t.clickThrough)||void 0===t?void 0:t.content)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"creative",{get:function(){return this.creatives.find((function(t){return!!t.linear}))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"rootCreativeId",{get:function(){var t;return null===(t=(this.Td.resolvedSourceHops||[])[0])||void 0===t?void 0:t.creativeId},enumerable:!1,configurable:!0}),r=a,i.VastAdSourceAdapter=r},4739: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])})(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.VastOverlayAdAdapter=void 0;var s,o=n(835);function u(){var t=null!==s&&s.apply(this,arguments)||this;return t.defaultTime=3e4,t}n=n(1732),r(u,s=n.VastAdAdapterBase),Object.defineProperty(u.prototype,"position",{get:function(){var t;return(null===(t=this.Md.successfulSource)||void 0===t?void 0:t.position)||"BOTTOM"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"duration",{get:function(){if(null!==(t=this.Md.successfulSource)&&void 0!==t&&t.duration)return 1e3*this.Md.successfulSource.duration;var t=null===(t=null===(t=null===(t=this.successfulSource)||void 0===t?void 0:t.nonLinearAd)||void 0===t?void 0:t.minSuggestedDuration)||void 0===t?void 0:t.toString();return t?(0,o.timeStrToMilliSeconds)(t):this.defaultTime},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"url",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.url)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"adParameters",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.adParameters)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"width",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.width)&&void 0!==t?t:0},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"height",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.height)&&void 0!==t?t:0},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"creative",{get:function(){var t;return null===(t=this.successfulSource)||void 0===t?void 0:t.creative},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"trackings",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.trackings)&&void 0!==t?t:[]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"clickThroughUrl",{get:function(){var t;return null!==(t=null===(t=this.successfulSource)||void 0===t?void 0:t.clickThroughUrl)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),r=u,i.VastOverlayAdAdapter=r},6074: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])})(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.VastOverlayAdSourceAdapter=void 0;var s,o=n(2698),u=n(9830),a=n(9844);function c(){return null!==s&&s.apply(this,arguments)||this}r(c,s=u.VastAdSourceAdapterBase),c.prototype.sortAndSetMediaFiles=function(){var t,i=null===(t=this.nonLinearAd)||void 0===t?void 0:t.apiFramework;this.Nd=this.Ld.map((function(t){return t.apiFramework=t.apiFramework||i,new a.MediaFileAdapter(t)}))},Object.defineProperty(c.prototype,"Ld",{get:function(){var t;return(0,o.combineToArray)(null===(t=this.nonLinearAd)||void 0===t?void 0:t.staticResource)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"url",{get:function(){var t;return null!==(t=null===(t=null===(t=this.nonLinearAd)||void 0===t?void 0:t.staticResource)||void 0===t?void 0:t.content)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"adParameters",{get:function(){var t;return null!==(t=null===(t=null===(t=this.nonLinearAd)||void 0===t?void 0:t.adParameters)||void 0===t?void 0:t.content)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"width",{get:function(){var t;return null!==(t=null===(t=this.nonLinearAd)||void 0===t?void 0:t.width)&&void 0!==t?t:0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"height",{get:function(){var t;return null!==(t=null===(t=this.nonLinearAd)||void 0===t?void 0:t.height)&&void 0!==t?t:0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"creative",{get:function(){return this.creatives.find((function(t){return!!t.nonLinearAds}))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"trackings",{get:function(){var t;return(0,o.combineToArray)(null!==(t=null===(t=null===(t=null===(t=this.creative)||void 0===t?void 0:t.nonLinearAds)||void 0===t?void 0:t.trackingEvents)||void 0===t?void 0:t.tracking)&&void 0!==t?t:[],this.inlineError)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"clickThroughUrl",{get:function(){var t;return null!==(t=null===(t=null===(t=this.nonLinearAd)||void 0===t?void 0:t.nonLinearClickThrough)||void 0===t?void 0:t.content)&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"nonLinearAd",{get:function(){var t;return(0,o.combineToArray)(null===(t=null===(t=this.creative)||void 0===t?void 0:t.nonLinearAds)||void 0===t?void 0:t.nonLinear)[0]},enumerable:!1,configurable:!0}),r=c,i.VastOverlayAdSourceAdapter=r},3193:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.FrameParams=void 0,(i=i.FrameParams||(i.FrameParams={})).AD_BLOCKER_DETECTED="abd",i.AD_CALL_TIMEOUT="act",i.DEMO_MODE="demo",i.MAX_HOPS="mh",i.PLAYBACK_TIMEOUT="pbt",i.PLAYER_GUID="pg",i.RUNNER_INDEX="idx"},3952:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DESTROY_FRAME_TIMEOUT=i.DEFAULT_MAX_HOPS=i.DEFAULT_PLAYBACK_TIMEOUT=i.DEFAULT_AD_CALL_TIMEOUT=void 0,i.DEFAULT_AD_CALL_TIMEOUT=3e3,i.DEFAULT_PLAYBACK_TIMEOUT=12e3,i.DEFAULT_MAX_HOPS=3,i.DESTROY_FRAME_TIMEOUT=1e3},5260:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdBreak=void 0,i.AdBreak=function(t,i,n,e){this.id=t,this.offset=i,this.adConfigType=n,this.type=e,this.isSSAI=!1,this.refId="",this.pods=[],this.resolvedAds=[],this.mimetype="adplugin/martini",this.numberRetry=0,this.stopped=!1}},8827:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PluginState=void 0;var e=n(595);function r(){this.Bd=[],this.zd=e.PluginStatus.Idle,this.isFullscreen=!1,this.isMuted=null,this.duration=null,this.volume=null,this.currentTime=null,this.numberRetry=0,this.adBlockerDetected=!1,this.demoMode=!1}Object.defineProperty(r.prototype,"status",{get:function(){return this.zd},set:function(t){this.zd=t},enumerable:!1,configurable:!0}),r.prototype.addAdBreak=function(t){this.Bd.push(t)},r.prototype.getAdBreak=function(t,i){return this.Bd.find((function(n){return n.refId===t&&n.id===i}))},r.prototype.getResolvedAds=function(t){var i;return void 0===t&&(t=!1),null!==(i=null===(i=this.activeAdBreak)||void 0===i?void 0:i.resolvedAds.filter((function(i){return t?i.executed:!i.executed})))&&void 0!==i?i:[]},r.prototype.getLastSource=function(t){return t.successfulSource||t.unsuccessfulSources.slice(-1)[0]},r.prototype.getLastExecutedSource=function(){var t=this.getResolvedAds(!0).slice(-1)[0];return this.getLastSource(t)},r.prototype.getNextResolvedAd=function(t){void 0===t&&(t=!1);var i=this.getResolvedAds(!1);if(0!==i.length)return t&&(t=i.find((function(t){return t.fallback})))?t:i.find((function(t){return!t.fallback}))},Object.defineProperty(r.prototype,"hasFallbackAds",{get:function(){return this.getResolvedAds(!1).some((function(t){return t.fallback}))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeAdBreak",{get:function(){return this.Vd},set:function(t){this.Vd!==t&&(this.numberRetry=0,this.Vd=t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeAd",{get:function(){return this.Gd},set:function(t){this.Gd!==t&&(t&&++this.numberRetry,this.Gd=t)},enumerable:!1,configurable:!0}),r.prototype.clear=function(){this.status=e.PluginStatus.Idle,this.activeAd=void 0,this.activeAdBreak=void 0,this.currentTime=null,this.duration=null,this.isMuted=null,this.volume=null},n=r,i.PluginState=n},8927:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Pod=void 0,i.Pod=function(){this.sources=[],this.resolved=!1,this.slotType="AVAIL"}},7672:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Source=void 0,i.Source=function(){this.network="",this.sequence=1,this.type="VAST",this.resolved=!1,this.slotType="AVAIL"}},1642:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ReportingParameters=void 0;var n=(e.prototype.setAdInitTime=function(t){var i;this.Hd=null!==(i=this.Hd)&&void 0!==i?i:t},Object.defineProperty(e.prototype,"mediaStartLatency",{get:function(){if(this.Yd&&this.Hd)return this.Yd-this.Hd},enumerable:!1,configurable:!0}),e.prototype.setMediaStartTime=function(t){var i;this.Yd=null!==(i=this.Yd)&&void 0!==i?i:t},Object.defineProperty(e.prototype,"vpaidScriptLoadLatency",{get:function(){if(this.qd&&this.Hd)return this.qd-this.Hd},enumerable:!1,configurable:!0}),e.prototype.setVpaidScriptLoadTime=function(t){var i;this.qd=null!==(i=this.qd)&&void 0!==i?i:t},Object.defineProperty(e.prototype,"vpaidAdLoadedLatency",{get:function(){if(this.Wd&&this.qd)return this.Wd-this.qd},enumerable:!1,configurable:!0}),e.prototype.setVpaidAdLoadedTime=function(t){var i;this.Wd=null!==(i=this.Wd)&&void 0!==i?i:t},Object.defineProperty(e.prototype,"vpaidAdStartedLatency",{get:function(){if(this.Qd&&this.Wd)return this.Qd-this.Wd},enumerable:!1,configurable:!0}),e.prototype.setVpaidAdStartedTime=function(t){var i;this.Qd=null!==(i=this.Qd)&&void 0!==i?i:t},e);function e(){}i.ReportingParameters=n},4827:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.GeminiMacros=void 0,(i=i.GeminiMacros||(i.GeminiMacros={})).S_VIEW_TYPE="$(S_VIEW_TYPE)",i.V_AUD_INFO="$(V_AUD_INFO)",i.V_AUD_TIME_INVIEW_100="$(V_AUD_TIME_INVIEW_100)",i.V_AUTOPLAYED="$(V_AUTOPLAYED)",i.V_EXPANDED="$(V_EXPANDED)",i.V_IS_INVIEW_100_HALFTIME="$(V_IS_INVIEW_100_HALFTIME)",i.V_MOAT_IVT="$(V_MOAT_IVT)",i.V_PLAYER_HEIGHT="$(V_PLAYER_HEIGHT)",i.V_PLAYER_WIDTH="$(V_PLAYER_WIDTH)",i.V_SKIP_AVAIL="$(V_SKIP_AVAIL)",i.V_TIME_INVIEW_50="$(V_TIME_INVIEW_50)",i.V_TIME_INVIEW_50_MAX_CONTINUOUS="$(V_TIME_INVIEW_50_MAX_CONTINUOUS)",i.V_VIEW_INFO="$(V_VIEW_INFO)",i.V_VIEW_TYPE="$(V_VIEW_TYPE)"},3264:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.GeminiViewability=void 0,(i=i.GeminiViewability||(i.GeminiViewability={})).VIDEO_VIEW="viewabilityDefVideo",i.VIDEO_VIEW_3P="viewabilityDefVideo3P",i.GEMINI_IMP="viewabilityDefStatic",i.STATIC_VIEW="viewabilityDefStatic",i.STATIC_VIEW_3P="viewabilityDefStatic3P"},5802:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VastMacros=void 0,(i=i.VastMacros||(i.VastMacros={})).CACHE_BUSTING="[CACHEBUSTING]",i.CONTAINER_HEIGHT="[CONTAINER_HEIGHT]",i.CONTAINER_WIDTH="[CONTAINER_WIDTH]",i.ERROR_CODE="[ERRORCODE]",i.OMID_PARTNER="[OMIDPARTNER]",i.REASON="[REASON]",i.SS_REQ="[SS_REQ]",i.TIMESTAMP="[TIMESTAMP]"},19:function(t,i,n){"use strict";var e=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.GeminiMacrosResolver=void 0;var r,s=n(4827),o=n(746),u=n(2),a=e(n(8758)),c=n(3264);n=new Map([[s.GeminiMacros.V_PLAYER_HEIGHT,function(){return window.innerHeight}],[s.GeminiMacros.V_PLAYER_WIDTH,function(){return window.innerWidth}],[s.GeminiMacros.V_EXPANDED,function(){return u.State.isFullscreen}],[s.GeminiMacros.V_AUD_INFO,function(){return u.State.isMuted?2:1}],[s.GeminiMacros.V_VIEW_INFO,function(){return u.State.viewablePercent<50?2:1}],[s.GeminiMacros.V_AUTOPLAYED,!0],[s.GeminiMacros.V_SKIP_AVAIL,!1],[s.GeminiMacros.V_MOAT_IVT,function(){return r=r||new a.default,encodeURIComponent(r.getIvtSignals())}]]),n=new o.MacrosResolverBase(n),i.GeminiMacrosResolver={resolve:n.resolve.bind(n),set:n.set.bind(n),getViewableTypePlaceholderRule:function(t,i){var n=new Map;switch(i){case c.GeminiViewability.VIDEO_VIEW_3P:n.set(s.GeminiMacros.V_VIEW_TYPE,t);break;case c.GeminiViewability.STATIC_VIEW_3P:n.set(s.GeminiMacros.S_VIEW_TYPE,t)}return n}}},746:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MacrosResolverBase=void 0;var n=(e.prototype.resolve=function(t,i){return(i=void 0===i?new Map:i).forEach((function(i,n){return t=t.replace(n,i)})),this.Zd.forEach((function(i,n){return t=t.replace(n,i)})),t},e.prototype.set=function(t,i){this.Zd.set(t,i)},e);function e(t){this.Zd=t}i.MacrosResolverBase=n},2137:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MacrosResolver=void 0;var e=n(4651),r=n(5802),s=n(19),o=n(4827);i.MacrosResolver={setPlayerSize:function(t,i){s.GeminiMacrosResolver.set(o.GeminiMacros.V_PLAYER_WIDTH,t),s.GeminiMacrosResolver.set(o.GeminiMacros.V_PLAYER_HEIGHT,i),e.VastMacrosResolver.set(r.VastMacros.CONTAINER_WIDTH,t),e.VastMacrosResolver.set(r.VastMacros.CONTAINER_HEIGHT,i)},setAutoplay:function(t){s.GeminiMacrosResolver.set(o.GeminiMacros.V_AUTOPLAYED,t=void 0===t||t)},setSkippable:function(t){s.GeminiMacrosResolver.set(o.GeminiMacros.V_SKIP_AVAIL,t)}}},7371:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=(e.prototype.getResult=function(){return this.$d},e.prototype.append=function(t){return this.$d=this.$d|(t?1:0)<<this.Xd++,this},e);function e(){this.Xd=0,this.$d=0}i.default=n},5617:function(__unused_webpack_module,exports,__nested_webpack_require_69323__){"use strict";var _typeof=__nested_webpack_require_69323__(8);Object.defineProperty(exports,"__esModule",{value:!0});var browser_utils_1=__nested_webpack_require_69323__(7489),window_utils_1=__nested_webpack_require_69323__(4667),MoatIvtHelper=function(){function MoatIvtHelper(){}return MoatIvtHelper.checkUseStrict=function(){var evalState;try{evalState=function(){var res=!1,func;eval('func = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{func()}catch(t){res=!0}return res}()}catch(t){evalState=0}return evalState},MoatIvtHelper.checkUndefinedFunction=function(){var t=!1;try{({}).f()}catch(i){t=!0}return t},MoatIvtHelper.checkDetuneProperty=function(){var t=(0,window_utils_1.getWindow)();return!!(0,browser_utils_1.canCall)(t.AudioContext)&&(t=new t.AudioContext,!!((t=(0,browser_utils_1.canCall)(t.createBufferSource)&&t.createBufferSource()||void 0)&&t.detune&&Object.prototype.hasOwnProperty.call(t.detune,"value"))&&(t.detune.value=100)===t.detune.value)},MoatIvtHelper.checkCanvas=function(){try{var t=document.createElement("canvas");t.width=1,t.height=1;var i=t.getContext("2d");i.globalCompositeOperation="multiply",i.fillStyle="rgb(0,255,255)",i.fillRect(0,0,1,1),i.fill(),i.fillStyle="rgb(255,255,0)",i.fillRect(0,0,1,1),i.fill();var n=i.getImageData(0,0,1,1).data;return n[0]===n[2]&&n[1]===n[3]}catch(t){return!1}},MoatIvtHelper.checkSetAttribute=function(){try{var t=document.createElement("input");return t.setAttribute("type","range"),"text"!==t.type}catch(t){return!1}},MoatIvtHelper.checkForOf=function(){try{return eval("1 == [for (item of [1,2,3]) item][0]")}catch(t){return!1}},MoatIvtHelper.checkCollatorOptions=function(){var t=(0,window_utils_1.getWindow)();try{return"object"===_typeof(t.Intl.Collator().resolvedOptions())}catch(t){return!1}},MoatIvtHelper.checkUintArray=function(){var t=(0,window_utils_1.getWindow)();try{return 0===new t.Uint16Array(1)[0]}catch(t){return!1}},MoatIvtHelper.checkActiveXObject=function(){var t=(0,window_utils_1.getWindow)();try{return t.ActiveXObject&&-1===t.ActiveXObject.toString().indexOf("native")}catch(t){return!1}},MoatIvtHelper.checkElementConstructor=function(){var t=(0,window_utils_1.getWindow)();try{return-1===Object.prototype.toString.call(t.HTMLElement).indexOf("Constructor")}catch(t){return!1}},MoatIvtHelper.btoa=function(t,i){void 0===i&&(i=!1);var n=(0,window_utils_1.getWindow)();if((0,browser_utils_1.canCall)(n.btoa)&&!i)return n.btoa(t);for(var e=String(t),r=0,s="",o=0,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.charAt(0|o)||(u="=",o%1);s+=u.charAt((63&r>>8)-o%1*8)){var a=e.charCodeAt(o+=.75);if(255<a)return"";r=r<<8|a}return s},MoatIvtHelper.checkAnimateReverse=function(t){try{return t&&t.animate&&(0,browser_utils_1.isNativeFunction)(t.animate([{easing:"ease-in",transform:"scale(1)"},{easing:"ease-in",transform:"scale(1.3)"}],{duration:1300,iterations:1}).reverse)?1:0}catch(t){return 0}},MoatIvtHelper}();exports.default=MoatIvtHelper},8758:function(t,i,n){"use strict";var e=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var r=e(n(7371)),s=e(n(5617)),o=n(7489),u=n(4667),a=n(5654);function c(){this.Jd={};var t=(0,u.getDocument)();this.Kd=0,this.tp=0,this.ip=t&&t.body&&t.body.style?t.body.style:{},this.np=t&&t.documentElement&&t.documentElement.style?t.documentElement.style:{},this.sp=(0,u.getWindow)(),this.op=this.sp.CSS,this.up=this.sp.navigator,this.ap=this.sp.performance,this.cp=!(!this.sp.CSS||!this.sp.CSS.supports),this.hp=this.fp(),this.lp()}c.prototype.getIvtSignals=function(){var t=this,i=[];return Object.keys(this.Jd).forEach((function(n){try{var e=t.Jd[n]();i.push("".concat(n,"=").concat(e))}catch(n){}})),i.join("&")},c.prototype.dp=function(){return 1},c.prototype.pp=function(){return Date.now()},c.prototype.bp=function(){var t=(new Date).getTime(),i=document,n=i.createElement("template"),e=i.createElement("details"),s=i.createElement("img");return(new r.default).append(this.sp.chrome&&this.sp.chrome.webstore).append(i.documentMode).append(i.fonts&&i.fonts.ready).append(1&t).append(this.sp.ActiveXObject).append(this.sp.chrome).append(this.up.serviceWorker).append(this.sp.opera).append(this.sp.sidebar).append(!1).append(2&t).append(!this.sp.ActiveXObject).append(this.mp("-ms-ime-align")).append(this.mp("-ms-scroll-limit")).append(this.gp("-webkit-font-feature-settings")).append(4&t).append(this.sp.ActiveXObject).append(this.mp("-moz-appearance")||this.mp("mozAppearance")).append(this.sp.yp).append(this.sp.callPhantom).append(Object.prototype.hasOwnProperty.call(n,"content")).append(this.sp.performance&&Object.prototype.hasOwnProperty.call(this.sp.performance,"getEntriesByType")).append(8&t).append(this.gp("image-rendering")).append(this.gp("object-fit")).append(Object.prototype.hasOwnProperty.call(e,"open")).append(this.sp.screen&&Object.prototype.hasOwnProperty.call(this.sp.screen,"orientation")).append(this.sp.performance).append(this.gp("shape-image-threshold")).append(this.hp[0]).append(Object.prototype.hasOwnProperty.call(s,"srcset")).append(this.Kd).getResult()},c.prototype._p=function(){var t=(new Date).getTime(),i=s.default.checkCanvas(),n=document;return(new r.default).append(this.tp).append(32&t).append(this.hp[1]).append(this.hp[2]).append(s.default.checkUseStrict()).append(s.default.checkUndefinedFunction()).append(s.default.checkDetuneProperty()).append(64&t).append(i||(0,o.isNativeFunction)(this.up.vibrate)?1:0).append(i).append(this.hp[3]).append(s.default.checkSetAttribute()).append(this.wp("image-rendering","pixelated")).append((0,o.isNativeFunction)(n.elementsFromPoint)).append(this.wp("object-fit","inherit")).append(this.wp("shape-image-threshold",.9)).append(this.wp("word-break","keep-all")).append(s.default.checkForOf()).append(this.cp&&(0,o.isNativeFunction)(this.op.supports)).append(this.sp.Intl&&(0,o.isNativeFunction)(this.sp.Intl.Collator)).append((0,o.isNativeFunction)(n.createElement("dialog").show)).append(256&t).append(this.hp[4]).append(this.hp[5]).append(n.documentElement&&(0,o.isNativeFunction)(n.documentElement.webkitRequestFullScreen)).append((0,o.isNativeFunction)(this.up.getBattery)).append(this.up.permissions&&(0,o.isNativeFunction)(this.up.permissions.query)).append(this.sp.AudioContext&&(0,o.isNativeFunction)((new this.sp.AudioContext).createBuffer)).append(this.hp[6]).append(this.sp.webkitRequestAnimationFrame&&(0,o.isNativeFunction)(this.sp.webkitRequestAnimationFrame)).append(this.sp.BroadcastChannel&&(0,o.isNativeFunction)(this.sp.BroadcastChannel.call)).getResult()},c.prototype.Op=function(){var t=(new Date).getTime(),i=document;return(new r.default).append((0,o.isNativeFunction)(this.sp.FontFace)).append((0,o.isNativeFunction)(this.sp.Gamepad)).append(1024&t).append((0,o.isNativeFunction)(this.sp.MutationEvent)).append((0,o.isNativeFunction)(this.sp.MutationObserver)).append(this.sp.crypto&&(0,o.isNativeFunction)(this.sp.crypto.getRandomValues)).append((0,o.isNativeFunction)(i.body.createShadowRoot)).append((0,o.isNativeFunction)(i.body.webkitCreateShadowRoot)).append((0,o.isNativeFunction)(this.sp.fetch)).append((0,o.isNativeFunction)(this.sp.createImageBitmap)).append(this.up.serviceWorker&&(0,o.isNativeFunction)(this.up.serviceWorker.register)).append((0,o.isNativeFunction)(this.up.webkitGetGamepads)).append(this.sp.speechSynthesis&&(0,o.isNativeFunction)(this.sp.speechSynthesis.speak)).append((0,o.isNativeFunction)(this.sp.webkitRTCPeerConnection)).append(this.wp("--fake-var",0)).append(4096&t).append(this.wp("cursor","grab")).append(this.wp("cursor","zoom-in")).append(this.wp("image-orientation","270deg")).append((0,o.isNativeFunction)(this.sp.Proxy)).append(this.wp("position","sticky")).append(void 0===i.createElement("style").scoped).append(this.ap&&this.ap.getEntriesByType&&this.ap.getEntriesByType("resource")instanceof Array).append(void 0===this.sp.InstallTrigger).append(s.default.checkCollatorOptions()).append("boolean"==typeof this.up.onLine).append(16384&t).append(void 0===this.up.webkitGamepads).append(this.ap&&this.ap.now&&"number"==typeof this.ap.now()).append(s.default.checkUintArray()).append(s.default.checkActiveXObject()).append(s.default.checkElementConstructor()).getResult()},c.prototype.Ep=function(){return this.hp[7]},c.prototype.jp=function(){return(new Date).getTimezoneOffset()},c.prototype.Sp=function(){var t=(0,u.getDocument)(),i=this.sp.innerWidth||t.documentElement.clientWidth||t.body.clientWidth;return t=this.sp.innerHeight||t.documentElement.clientHeight||t.body.clientHeight,"".concat(i,"x").concat(t)},c.prototype.Ap=function(){var t=(0,u.getDocument)(),i=this.sp.outerWidth||document&&t.body&&t.body.offsetWidth;return t=this.sp.outerHeight||document&&t.body&&t.body.offsetHeight,"".concat(i,"x").concat(t)},c.prototype.Mp=function(){var t=this.sp.screen.availWidth,i=this.sp.screen.availHeight;return"".concat(t,"x").concat(i)},c.prototype.Tp=function(){var t=this.sp.screen.width,i=this.sp.screen.height;return"".concat(t,"x").concat(i)},c.prototype.Np=function(){return s.default.btoa(this.up.userAgent)},c.prototype.Ip=function(){return s.default.btoa(this.up.platform)},c.prototype.Rp=function(){return s.default.btoa(this.up.vendor)},c.prototype.gp=function(t){return this.ip&&Object.prototype.hasOwnProperty.call(this.ip,t)},c.prototype.mp=function(t){return this.np&&Object.prototype.hasOwnProperty.call(this.np,t)},c.prototype.wp=function(t,i){return this.cp&&this.op.supports(t,i)},c.prototype.lp=function(){this.Jd={a:this.dp,b:this.pp,c:this.bp.bind(this),d:this._p.bind(this),e:this.Op.bind(this),i:this.Ep.bind(this),j:this.jp,k:this.Sp.bind(this),l:this.Ap.bind(this),m:this.Mp.bind(this),n:this.Tp.bind(this),o:this.Np.bind(this),p:this.Ip.bind(this),q:this.Rp.bind(this)}},c.prototype.fp=function(){var t=(0,a.createElement)("div"),i={};if(!t.style)return i;t.style.wordSpacing="10%",i[0]="10%"===t.style.wordSpacing?1:0,t.style.width="1px",t.style.width="-webkit-min-content",t.style.width="min-content",i[1]="1px"===t.style.width?0:1,t.style.width="1px",t.style.width="calc(1px - 1px)",t.style.width="-webkit-calc(1px - 1px)",i[2]="1px"===t.style.width?0:1,i[3]=(0,o.isNativeFunction)(t.matches),i[4]=s.default.checkAnimateReverse(t),i[5]=t.animate&&(0,o.isNativeFunction)(t.animate)?1:0,t.style.fontStretch="ultra-condensed",i[6]="ultra-condensed"===t.style.fontStretch?1:0;var n=null,e=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];if((0,o.isIE)())try{t.addBehavior("#default#clientCaps");for(var r=0;r<e.length;r++)if(n=t.getComponentVersion(e[r],"componentid").replace(/,/g,".")){i[7]=n.split(".")[0];break}}catch(t){}return i[7]=i[7]||0,i},n=c,i.default=n},4651:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VastMacrosResolver=void 0;var e=n(5802);n=n(746),e=new Map([[e.VastMacros.CACHE_BUSTING,function(){return Math.random().toString().slice(2,10)}],[e.VastMacros.TIMESTAMP,function(){return(new Date).getTime()}],[e.VastMacros.CONTAINER_HEIGHT,function(){return window.innerHeight}],[e.VastMacros.CONTAINER_WIDTH,function(){return window.innerWidth}],[e.VastMacros.OMID_PARTNER,"unknown"],[e.VastMacros.SS_REQ,0]]),e=new n.MacrosResolverBase(e),i.VastMacrosResolver={resolve:e.resolve.bind(e),set:e.set.bind(e)}},2:function(t,i,n){"use strict";function e(){}Object.defineProperty(i,"__esModule",{value:!0}),i.State=void 0,n=n(1642),Object.defineProperty(e,"adState",{get:function(){return{volume:e.volume,isMuted:e.isMuted,currentTime:e.currentTime,duration:e.duration,executionStatus:e.executionStatus,mediaFileIndex:e.mediaFileIndex,error:e.error,mediaStartLatency:e.reportingParameters.mediaStartLatency,vpaidScriptLoadLatency:e.reportingParameters.vpaidScriptLoadLatency,vpaidAdLoadedLatency:e.reportingParameters.vpaidAdLoadedLatency,vpaidAdStartedLatency:e.reportingParameters.vpaidAdStartedLatency}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"playRequestId",{get:function(){return this.Lp},set:function(t){this.Lp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"stopRequestId",{get:function(){return this.Cp},set:function(t){this.Cp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"volume",{get:function(){return this.kp},set:function(t){this.kp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isMuted",{get:function(){return this.Dp},set:function(t){this.Dp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isStarted",{get:function(){return this.Pp},set:function(t){this.Pp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"error",{get:function(){return this.Si},set:function(t){this.Si=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"executionStatus",{get:function(){return this.xp},set:function(t){this.xp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isFullscreen",{get:function(){return this.Up},set:function(t){this.Up=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"quartilesTrackedCache",{get:function(){return this.Fp},set:function(t){this.Fp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"currentDecile",{get:function(){return this.Bp},set:function(t){this.Bp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"rendererState",{get:function(){return this.zp},set:function(t){this.zp=t},enumerable:!1,configurable:!0}),e.hasQuartile=function(t){return 0<=this.quartilesTrackedCache.indexOf(t)},Object.defineProperty(e,"viewablePercent",{get:function(){return this.Vp},set:function(t){this.Vp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"duration",{get:function(){return this.Gp},set:function(t){this.Gp=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"currentTime",{get:function(){return this.Hp},set:function(t){this.Hp=t},enumerable:!1,configurable:!0}),e.reportingParameters=new n.ReportingParameters,e.demoMode=!1,e.mediaFileIndex=0,e.rendererInitTime=0,e.adBlockerDetected=!1,e.zp="idle",e.Bp=0,e.Fp=[],e.Dp=!1,e.Pp=!1,e.Up=!1,e.kp=1,e.Lp="",e.Cp="",e.Vp=0,e.xp="PLAYED",e.Hp=0,n=e,i.State=n},545: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])})(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)}),o=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},u=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function a(t){return r.call(this,"resolver",t)||this}Object.defineProperty(i,"__esModule",{value:!0}),i.AdBreakResolverMessenger=void 0,n=n(8361),s(a,r=n.AbstractPluginMessenger),a.prototype.resolveAdBreak=function(t,i){return o(this,void 0,void 0,(function(){return u(this,(function(n){switch(n.label){case 0:return[4,this.Sd.dispatchAndPromisify("RESOLVE_BREAK",{adBreak:t,deliveryRetry:i})];case 1:return n.sent(),[2]}}))}))},a.prototype.onAdResolved=function(t){this.Sd.setListener("RESOLVED_AD",(function(i){t(i.payload)}))},s=a,i.AdBreakResolverMessenger=s},8132:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.AdBreakResolver=void 0;var s=n(4667),o=n(7489),u=n(6648),a=n(545),c=n(7784),h=n(3193),f=n(595),l=n(3120);function v(t,i){this._e=t,this.Yp=i,this.qp=0,this.Wp=0,this.Qp=new l.Future,this.Zp=new c.BatsReportDispatcher(this.Yp),this.Sd=new a.AdBreakResolverMessenger(this._e.demoMode)}v.prototype.prepare=function(t){var i=this,n=((n={})[h.FrameParams.AD_BLOCKER_DETECTED]=+this._e.adBlockerDetected,n[h.FrameParams.AD_CALL_TIMEOUT]=t.adCallTimeout,n[h.FrameParams.DEMO_MODE]=+this._e.demoMode,n[h.FrameParams.MAX_HOPS]=t.maxHops,n[h.FrameParams.PLAYER_GUID]=t.playerGuid,n);return this.qp=t.pluginContainer.clientWidth,this.Wp=t.pluginContainer.clientHeight,this.$p=t.adCallTimeout,this.Xp=t.playbackTimeout,this.Sd.onUnhandledException(this.Jp.bind(this)),this.Sd.onAdResolved(this.Kp.bind(this)),this.Sd.prepare(n,t.pluginContainer,!1).then((function(){return i.Qp.resolve()})),this.tb},v.prototype.resolveAdBreak=function(t,i){return e(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return i&&(delete t.resolveAdBreakPromise,delete t.resolveStartTime),t.resolveStartTime||(t.resolveStartTime=Date.now()),[4,this.tb];case 1:return n.sent(),this._e.status===f.PluginStatus.Idle&&(this._e.status=f.PluginStatus.Resolving),t.resolveAdBreakPromise||(t.resolveAdBreakPromise=this.Sd.resolveAdBreak(t,i)),[2,t.resolveAdBreakPromise]}}))}))},v.prototype.Kp=function(t){var i=null===(i=window.rapidConfig)||void 0===i?void 0:i.spaceid;t.spaceid=i||((0,o.isMobile)()?u.SpaceId.MOBILE:u.SpaceId.DESKTOP),t.referringPage=(0,s.getTopMostLocation)(window),t.s265Channel=null===(i=window.s_265)||void 0===i?void 0:i.channel,(i=this._e.getAdBreak(t.refId,t.breakId))&&this.eb(t,i),this.Zp.prepare(t,this.qp,this.Wp,this.$p,this.Xp),t.numberRetry=this._e.numberRetry,this.Zp.sendAdRequestReport(),this._e.status===f.PluginStatus.Resolving&&(this._e.status=f.PluginStatus.Idle)},v.prototype.Jp=function(t){this.Zp.sendUnhandledExceptionReport(t)},Object.defineProperty(v.prototype,"tb",{get:function(){return this.Qp.getPromise()},enumerable:!1,configurable:!0}),v.prototype.eb=function(t,i){t.isDeliveryRetry?t.resolveLatency=Date.now()-i.resolveStartTime:(0===i.resolvedAds.length&&(i.resolveLatency=Date.now()-i.resolveStartTime),t.resolveLatency=i.resolveLatency),i.resolvedAds.push(t),i.resolvedAds.sort((function(t,i){var n;return(null!==(n=null===(n=t.successfulSource)||void 0===n?void 0:n.podSequence)&&void 0!==n?n:1)+(null!==(t=null===(t=t.successfulSource)||void 0===t?void 0:t.sourceSequence)&&void 0!==t?t:1)-((null!==(t=null===(t=i.successfulSource)||void 0===t?void 0:t.podSequence)&&void 0!==t?t:1)+(null!==(i=null===(i=i.successfulSource)||void 0===i?void 0:i.sourceSequence)&&void 0!==i?i:1))}))},n=v,i.AdBreakResolver=n},4373: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])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),s=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},o=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.AdExecutorMessenger=void 0;var u,a=n(8361),c=n(3120);function h(t){return(t=u.call(this,"executor",t)||this).rb=new c.Future,t}r(h,u=a.AbstractPluginMessenger),h.prototype.play=function(t){return this.wd.show(this.Od),this.Sd.dispatch("PLAY",t),this.rb.getPromise()},h.prototype.onSetSize=function(){var t=this;this.Sd.setListener("SET_SIZE",(function(i){var n=i.payload.item1,e=i.payload.item2;i=i.payload.item3,t.wd.setSize(t.Od,n,e,i)}))},h.prototype.onPlayCompleted=function(t){this.Sd.setListener("PLAY_COMPLETE",(function(i){t(i.payload.item1,i.payload.item2,i.payload.item3)}))},h.prototype.pause=function(){this.Sd.dispatch("PAUSE_REQUEST")},h.prototype.stop=function(t){return s(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,this.Sd.dispatchAndPromisify("stop",t)];case 1:return[2,i.sent().payload]}}))}))},h.prototype.mute=function(t){this.Sd.dispatch("mute",t)},h.prototype.onAdStateReceived=function(t){this.Sd.setListener("AD_STATE",(function(i){t(i.payload)}))},h.prototype.onPaused=function(t){this.Sd.setListener("PAUSE_SUCCESS",(function(i){t(i.payload)}))},h.prototype.getCurrentTime=function(){return s(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.Sd.dispatchAndPromisify("CURRENT_TIME")];case 1:return[2,t.sent().payload]}}))}))},h.prototype.setVolume=function(t){this.Sd.dispatch("SET_VOLUME",t)},h.prototype.resume=function(){this.Sd.dispatch("resume")},h.prototype.onCcLoaded=function(t){this.Sd.setListener("CLOSED_CAPTIONS_LOADED",(function(i){t(i.payload)}))},h.prototype.onDeliveryFailure=function(t){this.Sd.setListener("DELIVERY_FAILURE",(function(i){t(i.payload)}))},h.prototype.setCcLanguage=function(t){this.Sd.dispatch("SET_CLOSED_CAPTIONS_LANGUAGE",t)},h.prototype.setCcStyle=function(t){this.Sd.dispatch("SET_CLOSED_CAPTIONS_STYLE",t)},h.prototype.showCaptions=function(t){this.Sd.dispatch("SHOW_CAPTIONS",t)},h.prototype.setFullscreen=function(t){this.Sd.dispatch("SET_FULLSCREEN",t)},h.prototype.onMediaLoaded=function(t){this.Sd.setListener("MEDIA_LOADED",(function(i){t(i.payload)}))},h.prototype.onAdClick=function(t){this.Sd.setListener("CLICK",(function(i){t(i.payload)}))},h.prototype.onResume=function(t){this.Sd.setListener("resume",(function(i){t(i.payload.item1,i.payload.item2,i.payload.item3)}))},h.prototype.onQuartileProgress=function(t){this.Sd.setListener("QUARTILE",(function(i){t(i.payload.item1,i.payload.item2)}))},h.prototype.onViewSuccess=function(t){this.Sd.setListener("VIEW_SUCCESS",(function(i){t(i.payload)}))},h.prototype.onStarted=function(t){var i=this;this.Sd.setListener("STARTED",(function(n){i.rb.resolve(),t(n.payload.item1,n.payload.item2,n.payload.item3)}))},h.prototype.onAdIntervention=function(t){this.Sd.setListener("AD_INTERVENTION",(function(i){t(i.payload)}))},r=h,i.AdExecutorMessenger=r},9657:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.AdExecutor=void 0;var s=n(4373),o=n(7784),u=n(2137),a=n(3193),c=n(595),h=n(5579),f=n(835),l=n(3120);function v(t,i,n){this._e=t,this.Yp=i,this.Qp=new l.Future,this.Pc={},this.sb=n,this.Zp=new o.BatsReportDispatcher(this.Yp),this.Sd=new s.AdExecutorMessenger(this._e.demoMode)}v.prototype.ub=function(t){this.Pc.nonlinearContainer.style.display=t?"inline-block":"none",this.Pc.pluginContainer.style.display=t?"none":"inline-block"},Object.defineProperty(v.prototype,"qp",{get:function(){var t;return null!==(t=null===(t=this.Ad)||void 0===t?void 0:t.clientWidth)&&void 0!==t?t:0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"Wp",{get:function(){var t;return null!==(t=null===(t=this.Ad)||void 0===t?void 0:t.clientHeight)&&void 0!==t?t:0},enumerable:!1,configurable:!0}),v.prototype.prepare=function(t,i){var n=this;void 0===i&&(i=!1);var e=((e={})[a.FrameParams.AD_BLOCKER_DETECTED]=+this._e.adBlockerDetected,e[a.FrameParams.DEMO_MODE]=+this._e.demoMode,e[a.FrameParams.PLAYER_GUID]=t.playerGuid,e[a.FrameParams.PLAYBACK_TIMEOUT]=t.playbackTimeout,e);return this._e.status=c.PluginStatus.Preparing,this.Pc=t,this.Ad=i?t.nonlinearContainer:t.pluginContainer,this.$p=t.adCallTimeout,this.Xp=t.playbackTimeout,this.Sd.prepare(e,this.Ad,!0).then((function(){n.Qp.resolve(),n._e.status===c.PluginStatus.Preparing&&(n._e.status=c.PluginStatus.Idle)})),this.Sd.onAdStateReceived(this.handleAdStateReceived.bind(this)),this.Sd.onPaused(this.handlePaused.bind(this)),this.Sd.onPlayCompleted(this.handlePlayCompleted.bind(this)),this.Sd.onDeliveryFailure(this.handleDeliveryFailure.bind(this)),this.Sd.onCcLoaded(this.handleCcLoaded.bind(this)),this.Sd.onMediaLoaded(this.handleMediaLoaded.bind(this)),this.Sd.onAdClick(this.handleAdClick.bind(this)),this.Sd.onResume(this.handleResume.bind(this)),this.Sd.onQuartileProgress(this.handleQuartileProgress.bind(this)),this.Sd.onViewSuccess(this.handleViewSuccess.bind(this)),this.Sd.onStarted(this.handleStarted.bind(this)),this.Sd.onAdIntervention(this.handleAdIntervention.bind(this)),this.Sd.onUnhandledException(this.Jp.bind(this)),this.Sd.onSetSize(),this.Qp.getPromise()},v.prototype.play=function(t,i,n,s){var o;return void 0===n&&(n=!1),e(this,void 0,void 0,(function(){var e,a,f;return r(this,(function(r){switch(r.label){case 0:return this._e.activeAdBreak=t,(e=this._e.getNextResolvedAd(n))?((a="nonlinear"===t.type)&&this.hb(!0),this.ub(a),n&&this._e.failedDeliveryState&&this.handleDeliveryFailure(this._e.failedDeliveryState),e.executed=!0,this._e.activeAd=e,this._e.status=c.PluginStatus.Starting,u.MacrosResolver.setAutoplay(e.autoplay),this.fb(e),"no-ad"===(0,h.createAdSourceAdapter)(this._e.getLastSource(e),this.qp,this.Wp).responseType?(this.handleBreakEnded(),[2]):(f={resolvedAd:e,volume:null!==(o=null!==(o=null==i?void 0:i.volume)&&void 0!==o?o:this._e.volume)&&void 0!==o?o:1,mute:null!==(o=null!==(o=null==i?void 0:i.mute)&&void 0!==o?o:this._e.isMuted)&&void 0!==o&&o,fullscreen:null!==(o=null==i?void 0:i.fullscreen)&&void 0!==o?o:this._e.isFullscreen,containerWidth:this.qp,containerHeight:this.Wp},[4,this.Qp.getPromise()])):(0===t.resolvedAds.length&&t.pods[0]&&this.Zp.sendFailedAdOpportunityReport(t.pods[0].type,t.pods[0].slotType),this.handleBreakEnded(s),[2]);case 1:return r.sent(),this.Sd.play(f),[2]}}))}))},v.prototype.resume=function(){return e(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.Qp.getPromise()];case 1:return t.sent(),this._e.status===c.PluginStatus.Paused&&this.Sd.resume(),[2]}}))}))},v.prototype.fb=function(t){this.Zp.prepare(t,this.qp,this.Wp,this.$p,this.Xp),this.Zp.sendAdPlayReport(void 0,this._e.status),this.Zp.sendAdOpportunityReport(),this.Zp.sendPlayStartReports()},v.prototype.pause=function(){return e(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.Qp.getPromise()];case 1:return t.sent(),this.Sd.pause(),[2]}}))}))},v.prototype.stop=function(t){return e(this,void 0,void 0,(function(){var i;return r(this,(function(n){switch(n.label){case 0:return this._e.activeAdBreak?(this._e.activeAdBreak.stopped=!0,[4,this.lb(t)]):[2];case 1:return i=n.sent(),this.vb((null==i?void 0:i.error)||t),[2,i]}}))}))},v.prototype.lb=function(t){return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return[4,(0,f.addTimeoutToPromise)(this.Sd.stop(t),1e3).catch((function(){}))];case 1:return[2,i.sent()]}}))}))},v.prototype.vb=function(t){this.handleBreakEnded(t),this.hb(),this._e.status=c.PluginStatus.Idle},v.prototype.destroy=function(t){this.Sd.destroy(t=void 0===t||t)},v.prototype.mute=function(t){return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return[4,this.Qp.getPromise()];case 1:return i.sent(),this.Sd.mute(t),[2]}}))}))},v.prototype.setVolume=function(t){return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return[4,this.Qp.getPromise()];case 1:return i.sent(),this.Sd.setVolume(t),[2]}}))}))},v.prototype.handleAdStateReceived=function(t){this._e.currentTime!==t.currentTime&&(this._e.currentTime=t.currentTime,this.Yp.sendTimeUpdateEvent(t.currentTime)),this._e.duration!==t.duration&&(this._e.duration=t.duration),this._e.isMuted!==t.isMuted&&(this._e.isMuted=t.isMuted,this.Yp.sendMuteChangedEvent(t.isMuted)),this._e.volume!==t.volume&&(this._e.volume=t.volume,this.Yp.sendVolumeChangedEvent(t.volume))},v.prototype.handlePlayCompleted=function(t,i,n){var s;return e(this,void 0,void 0,(function(){var e,o,u;return r(this,(function(r){switch(o=e=!1,this._e.failedDeliveryState=void 0,n.executionStatus){case"SKIP":this.Zp.sendAdSkipReport(n);break;case"FAILED_PLAY":e=!0,u=!this._e.hasFallbackAds&&null!==(s=this._e.activeAd)&&void 0!==s&&s.hasUnresolvedSources?this._e.activeAd.successfulSource:void 0,this._e.failedDeliveryState=n;break;case"PLAYED":this.Zp.sendPlayCompleteEvent(n);break;case"NOAD":case"TIMEOUT":o=!0}return delete this._e.activeAd,o&&this.handleBreakEnded(n.error),this._e.status=c.PluginStatus.Idle,this.hb(),o||(u?this.pb(t,i,u):this.play(this._e.activeAdBreak,void 0,e,n.error)),[2]}))}))},v.prototype.pb=function(t,i,n){n={podIndex:n.podSequence-1,startingSourceIndex:n.sourceSequence},this.sb(t,i,n)},v.prototype.hb=function(t){void 0===t&&(t=!1),this.destroy(!1),this.Qp=new l.Future,this.prepare(this.Pc,t)},v.prototype.handlePaused=function(t){this._e.status=c.PluginStatus.Paused,this.Zp.sendPauseReport(t)},v.prototype.setCcLanguage=function(t){return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return[4,this.Qp.getPromise()];case 1:return i.sent(),this.Sd.setCcLanguage(t),[2]}}))}))},v.prototype.setCcStyle=function(t){return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return[4,this.Qp.getPromise()];case 1:return i.sent(),this.Sd.setCcStyle(t),[2]}}))}))},v.prototype.showCaptions=function(t){return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return[4,this.Qp.getPromise()];case 1:return i.sent(),this.Sd.showCaptions(t),[2]}}))}))},v.prototype.setFullscreen=function(t){return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return[4,this.Qp.getPromise()];case 1:return i.sent(),this.Sd.setFullscreen(t),[2]}}))}))},v.prototype.handleDeliveryFailure=function(t){var i;null!==(i=this._e.activeAd)&&void 0!==i&&i.hasUnresolvedSources&&this.Zp.sendAdDeliveryFailureReport(t)},v.prototype.handleCcLoaded=function(t){this.Yp.onCcLoadedEvent(t)},v.prototype.handleBreakEnded=function(t){t&&this.Zp.sendErrorReport(t);var i=(n=this._e.activeAdBreak).refId,n=n.id;this._e.getResolvedAds(!0).forEach((function(t){t.executed=!1,t.adReplay++})),this._e.clear(),this.Zp.sendBreakEndedReport(i,n,!!t),this.Yp.sendBreakEndedEvent(i,n),this.Zp.reset()},v.prototype.handleMediaLoaded=function(t){this.Zp.sendMediaLoadedReport(t)},v.prototype.handleAdClick=function(t){this.Zp.sendAdClickReport(t)},v.prototype.handleResume=function(t,i,n){this._e.status=c.PluginStatus.Playing,this.Zp.sendResumeReport(n,this._e.status),this.Yp.sendPlayingEvent(t,i)},v.prototype.handleQuartileProgress=function(t,i){this._e.status===c.PluginStatus.Playing&&this.Zp.sendQuartileReport(t,i)},v.prototype.handleViewSuccess=function(t){this.Zp.sendAdViewReport(t)},v.prototype.handleStarted=function(t,i,n){this._e.status=c.PluginStatus.Playing,this.Zp.sendStartedReports(n),this.Yp.sendPlayingEvent(t,i)},v.prototype.handleAdIntervention=function(t){this.Zp.sendAdInterventionReport(t)},v.prototype.Jp=function(t){this.Zp.sendUnhandledExceptionReport(t)},n=v,i.AdExecutor=n},7784: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}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.BatsReportDispatcher=void 0;var r=n(3909),s=n(5702),o=n(274);function u(t){this.bb=t,this.Pp=!1,this.mb=!1}Object.defineProperty(u.prototype,"batsReportingController",{get:function(){return this.gb},enumerable:!1,configurable:!0}),u.prototype.prepare=function(t,i,n,e,o){i=(0,s.createAdAdapter)(t,i,n),this.mb=!i.actualSource||i.actualSource.podType!==(null===(n=null===(n=this.yb)||void 0===n?void 0:n.actualSource)||void 0===n?void 0:n.podType),this.yb=i,this.gb=new r.BatsReportingController(this.yb,e,o),this.Pp=!1},u.prototype.sendAdRequestReport=function(){var t,i=this,n=[];(null!==(t=null===(t=this.yb)||void 0===t?void 0:t.distinctSourcesBySequence.filter((function(t){return"VAST"===t.sourceType})))&&void 0!==t?t:[]).forEach((function(t){return n.push(i.batsReportingController.createAdRequestReport(t))})),this.bb.sendBatsReports(n)},u.prototype.sendPlayStartReports=function(){var t=[];this.gb&&t.push(this.gb.createAdPreparePlayReport());var i=0,n=[];this.yb&&(i=(n=this.yb.distinctSourcesBySequence).length-1);for(var e=0;e<i;++e)t.push(this.batsReportingController.createAdCallFallbackReport(n[e]));var r=this.batsReportingController.createAdCallReport(n[i]);t.push(r),this.bb.sendBatsReports(t)},u.prototype.sendPlayCompleteEvent=function(t){var i,n;this.yb&&(i=this.yb.refId,n=this.yb.breakId,t=this.batsReportingController.createPlayCompletedReport(t),this.bb.sendPlayCompleteEvent(i,n,t))},u.prototype.sendMediaLoadedReport=function(t){var i;null!==(i=null===(i=this.yb)||void 0===i?void 0:i.mediaFiles[t.mediaFileIndex])&&void 0!==i&&i.isVpaid&&(t=[this.batsReportingController.createAdInitReport(t)],this.bb.sendBatsReports(t))},u.prototype.sendPauseReport=function(t){this.bb.sendPauseEvent(this.batsReportingController.createAdPausedReport(t))},u.prototype.sendFailedAdOpportunityReport=function(t,i){i={evt:o.BATS_REPORT_NAMES.AD_OPPORTUNITY,medS:1,medT:1,ntwk:"Plugin Communicator",pos:null==t?void 0:t.toLowerCase(),slot:i,taken:2},this.bb.sendBatsReports([i])},u.prototype.sendBreakEndedReport=function(t,i,n){n={evt:"ad_break_ended_martini",ref_id:t,break_id:i,has_error:n,_V:"test"},this.bb.sendBatsReports([n])},u.prototype.sendUnhandledExceptionReport=function(t){t=e({evt:o.BATS_REPORT_NAMES.AD_UNHANDLED_EXCEPTION,_V:"test"},t),this.bb.sendBatsReports([t])},u.prototype.sendAdOpportunityReport=function(){this.mb&&this.bb.sendBatsReports([this.batsReportingController.createAdOpportunityReport()])},u.prototype.sendAdClickReport=function(t){this.bb.sendBatsReports([this.batsReportingController.createAdClickReport(t)])},u.prototype.sendAdSkipReport=function(t){this.bb.sendBatsReports([this.batsReportingController.createAdSkipReport(t)])},u.prototype.sendAdDeliveryFailureReport=function(t){t=this.batsReportingController.createAdDeliveryFailureReport(t),this.bb.sendBatsReports([t])},u.prototype.sendErrorReport=function(t){t=this.Pp?this.batsReportingController.createAdInterventionReport(t.description):this.batsReportingController.createAdErrorReport(t),this.bb.sendBatsReports([t])},u.prototype.sendQuartileReport=function(t,i){i=this.batsReportingController.createAdProgressReport(t,i),this.bb.sendBatsReports([i])},u.prototype.sendAdPlayReport=function(t,i){this.bb.sendBatsReports([this.batsReportingController.createAdPlayReport(t,i)])},u.prototype.sendResumeReport=function(t,i){this.sendAdPlayReport(t,i)},u.prototype.sendAdViewReport=function(t){this.bb.sendBatsReports([this.batsReportingController.createAdViewReport(t)])},u.prototype.sendStartedReports=function(t){var i;this.Pp=!0;var n=this.gb?[this.gb.createImpressionReport(t),this.gb.createAdDeliverySuccessReport(t)]:[];null!==(i=null===(i=this.yb)||void 0===i?void 0:i.mediaFiles[t.mediaFileIndex])&&void 0!==i&&i.isVpaid&&n.push(this.batsReportingController.createAdBeginReport(t)),this.bb.sendBatsReports(n)},u.prototype.sendAdInterventionReport=function(t){t=this.batsReportingController.createAdInterventionReport(t.errMsg,t.mediaStartLatency,!0),this.bb.sendBatsReports([t])},u.prototype.reset=function(){this.Pp=!1,this.mb=!1,this.yb=void 0},n=u,i.BatsReportDispatcher=n},3909: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}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.BatsReportingController=void 0;var r=n(2649),s=n(1600),o=n(9896),u=n(274),a=n(9960),c=n(7826),h=n(595),f=n(3987);function l(t,i,n){this.Md=t,this.$p=i,this.Xp=n,this._b=0}l.prototype.createAdPreparePlayReport=function(){return this.wb(u.BATS_REPORT_NAMES.AD_PREPARE_PLAY)},l.prototype.createAdRequestReport=function(t){var i=this.wb(u.BATS_REPORT_NAMES.AD_REQUEST,void 0,t);return"VAST"===t.sourceType&&(i.ad_url=t.sourceUrl),i},l.prototype.createAdCallReport=function(t){var i,n=this.wb(u.BATS_REPORT_NAMES.AD_CALL,void 0,t);return n.estring=null===(i=t.error)||void 0===i?void 0:i.description,n.icons=!(null===(i=this.Md.icons)||void 0===i||!i.length),n.adcnt=t.totalAdsInResponse,n},l.prototype.createAdCallFallbackReport=function(t){return(t=this.createAdCallReport(t)).evt=u.BATS_REPORT_NAMES.AD_CALL_FALLBACK,t},l.prototype.createAdInitReport=function(t){return this.wb(u.BATS_REPORT_NAMES.AD_INIT,t)},l.prototype.createAdPausedReport=function(t){return this.wb(u.BATS_REPORT_NAMES.AD_PAUSED,t)},l.prototype.createAdPlayReport=function(t,i){return(t=this.wb(u.BATS_REPORT_NAMES.AD_PLAY,t)).ad_started=i===h.PluginStatus.Playing||i===h.PluginStatus.Paused,t.paused=i===h.PluginStatus.Paused,t},l.prototype.createAdOpportunityReport=function(){var t=this.wb(u.BATS_REPORT_NAMES.AD_OPPORTUNITY,void 0,this.Md.actualSource),i=null===(i=this.Md.actualSource)||void 0===i?void 0:i.slotType;return"AVAIL"===i?(t.taken=1,t.ntwk=this.Md.actualSource.network):(t.taken=2,t.ntwk="Plugin Communicator",t.slot=i),t},l.prototype.createAdDeliverySuccessReport=function(t){return this.Ob=t.mediaStartLatency,(t=this.wb(u.BATS_REPORT_NAMES.AD_DELIVERY_SUCCESS,t)).ms_lat=this.Ob,t},l.prototype.createAdViewReport=function(t){return(t=this.wb(u.BATS_REPORT_NAMES.AD_VIEW,t)).skippable=this.Md.skipOffset?1:0,e(e({},t),this.Eb(2))},l.prototype.createImpressionReport=function(t){return(t=this.wb(u.BATS_REPORT_NAMES.AD_IMPRESSION,t))._V="test",t},l.prototype.createAdInterventionReport=function(t,i,n){void 0===t&&(t=""),void 0===n&&(n=!1);var e=this.wb(u.BATS_REPORT_NAMES.AD_INTERVENTION);return e.ecode="".concat(n?"600-2":"600-4").concat(/A future version/.test(t)?"w":"e"),e.estring=t,e.ms_lat=i,e},l.prototype.createAdBeginReport=function(t){return this.wb(u.BATS_REPORT_NAMES.AD_BEGIN,t)},l.prototype.createAdClickReport=function(t){return(t=this.wb(u.BATS_REPORT_NAMES.AD_CLICK,t)).cd=this.Md.clickThroughUrl,t},l.prototype.createAdSkipReport=function(t){return this.wb(u.BATS_REPORT_NAMES.AD_SKIP,t)},l.prototype.createAdErrorReport=function(t){var i=this.wb(u.BATS_REPORT_NAMES.AD_ERROR);return i.ms_lat=this.Ob,i.a_dlv_err=t.batsCode,i.estring=t.description,i},l.prototype.createAdDeliveryFailureReport=function(t){var i,n=this.wb(u.BATS_REPORT_NAMES.AD_DELIVERY_FAILURE,t);return n.a_dlv_err=null===(i=t.error)||void 0===i?void 0:i.batsCode,n.estring=null===(t=t.error)||void 0===t?void 0:t.description,n},l.prototype.createAdProgressReport=function(t,i){var n=this.wb(u.BATS_REPORT_NAMES.AD_PROGRESS,i);return n.q=100*t,e(e({},n),this.Eb(i.currentTime))},l.prototype.createPlayCompletedReport=function(t){var i=this.wb(u.BATS_REPORT_NAMES.AD_COMPLETED,t);return e(e({},i),this.Eb(t.currentTime))},l.prototype.wb=function(t,i,n){var u=n||this.Md,h=u.sourceUrls||[],l=i?i.mediaFileIndex:0,v=(l=u.mediaFiles[l],t=e(e({},u.mediaFormatCounts),((t={evt:t,pos:null===(t=u.podType)||void 0===t?void 0:t.toLowerCase(),ntwk:u.network,adseq:u.sourceSequence,adclt:s.ARGS.MARTINI_CLIENT_NAME,vrmsdk:s.ARGS.MARTINI_VERSION,at:0,tmout:this.$p,vptm:this.Xp}).r_code=u.error?u.error.batsCode||c.WRAPPER_UNREACHABLE_ERROR.batsCode:2,t.r_code_desc=encodeURI(u.error?u.error.description||c.WRAPPER_UNREACHABLE_ERROR.description:"ok"),t.r_type=l&&l.isVpaid?"vpaid":u.responseType,t.medT=u.isAdMarkup?2:1,t.medS=u.isAdMarkup?u.containsEmbeddedAd?o.MEDIATION_STATUS.FOUND_AD:o.MEDIATION_STATUS.GOT_NOAD:o.MEDIATION_STATUS.NO_SERVER_SIDE_CALL,t.adl=u.sourceLatency,t.ad_lng=null!=i&&i.duration?Math.round(i.duration):"",t.num_rtry=this.Md.numberRetry,t.f_call=(0,a.getHostname)(u.sourceUrl),t.f_hop=(0,a.getHostname)(1<h.length&&h[1]||""),t.n_hop=1<h.length?h.length-1:0,t.crd=u.crd,t.ibn=u.sourceName,t.vsl=null==i?void 0:i.vpaidScriptLoadLatency,t.vil=null==i?void 0:i.vpaidAdLoadedLatency,t.vst=null==i?void 0:i.vpaidAdStartedLatency,t.crid=u.creativeId,t.v_cr_id=u.creativeId,t.mf_url=null==l?void 0:l.url,t.mf_bit=null==l?void 0:l.bitrate,t.mtype=null==l?void 0:l.mimeType,t.adfmt=null==l?void 0:l.adFormat,t.ad_sys=u.adSystemName,t.plcid=(0,f.getPlacementId)(u.sourceUrl)||u.placementId,t.rule=u.ruleId,t.adReplay=this.Md.adReplay,t.brl=this.Md.resolveLatency,t.rlength=(null==n?void 0:n.responseLength)||0,t)),n?n.sourceType:null===(v=this.Md.successfulSource)||void 0===v?void 0:v.sourceType);v&&"VAST"===v?(d=this.Md,n=(n||d.successfulSource).rootCreativeId,t.adid=u.adId,t.uadid=d.universalAdId,n&&(t.crid=n)):"GEMINI"===v&&(d=this.Md,t.apt=d.priceType,t.adv_id=d.advertiserId);var d=(0,r.eraseUndefinedValues)(t);return t.f_hop||delete t.f_hop,d},l.prototype.Eb=function(t){var i=Math.floor(t);return(t={dur:i}).dur_d=this.jb(i),t},l.prototype.jb=function(t){var i=t-this._b;return this._b=t,i},n=l,i.BatsReportingController=n},274:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.BATS_REPORT_NAMES=void 0,i.BATS_REPORT_NAMES={AD_REQUEST:"ad_req",AD_CALL:"ad_call",AD_CALL_FALLBACK:"ad_callf",AD_DELIVERY_FAILURE:"ad_dlvf",AD_ERROR:"ad_err",AD_PROGRESS:"ad_prog",AD_OPPORTUNITY:"ad_oppty",AD_VIEW:"ad_view",AD_IMPRESSION:"ad_imp",AD_COMPLETED:"ad_comp",AD_INIT:"ad_init",AD_DELIVERY_SUCCESS:"ad_dlv",AD_BEGIN:"ad_beg",AD_PREPARE_PLAY:"ad_prepare_pb_plg",AD_PLAY:"ad_play_plg",AD_PAUSED:"ad_paused_plg",AD_IFRAME_LOAD:"ad_iframe_load",AD_IFRAME_LOADED:"ad_iframe_loaded",AD_SKIP:"ad_skip",AD_INTERVENTION:"ad_pberr",AD_CLICK:"ad_click",AD_UNHANDLED_EXCEPTION:"ad_unhandled_exception"}},9896:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MEDIATION_STATUS=void 0,i.MEDIATION_STATUS={NO_SERVER_SIDE_CALL:1,FOUND_AD:2,GOT_NOAD:3,GOT_SERVER_SIDE_ERROR:4}},8514:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PluginEvents=void 0,(i=i.PluginEvents||(i.PluginEvents={})).AD_PARSE_RESULT="AD_PARSE_RESULT",i.PLAY_COMPLETE="PLAY_COMPLETE",i.MUTE_CHANGED="MUTE_CHANGED",i.VOLUME_CHANGED="VOLUME_CHANGED",i.PLAYING="PLAYING",i.SET_SIZE="SET_SIZE",i.PAUSED="PAUSED",i.BREAK_ENDED="BREAK_ENDED",i.AD_METRICS="AD_METRICS",i.CLOSED_CAPTIONS_LOADED="CLOSED_CAPTIONS_LOADED",i.TIME_UPDATE="TIME_UPDATE"},595:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PluginStatus=void 0,(i=i.PluginStatus||(i.PluginStatus={})).Idle="Idle",i.Preparing="Preparing",i.Parsing="Parsing",i.Resolving="Resolving",i.Starting="Starting",i.Playing="Playing",i.Paused="Paused",i.Stopping="Stopping"},6648:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.SpaceId=void 0,(i=i.SpaceId||(i.SpaceId={}))[i.MOBILE=793604935]="MOBILE",i[i.DESKTOP=793604934]="DESKTOP"},3980:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.MartiniPlugin=void 0;var s=n(4438),o=n(9657),u=n(8132),a=n(8827),c=n(9969),h=n(8772),f=n(595),l=n(7489);function v(t){void 0===t&&(t=!1),this.type="ad-plugin",this.mimetype="adplugin/martini",this._e=new a.PluginState,this.Sb=new s.AdConfigParser,this.bb=new c.PlayerEventDispatcher,this.Ab=!1,this._e.demoMode=t,this.Mb=new u.AdBreakResolver(this._e,this.bb),this.Tb=new o.AdExecutor(this._e,this.bb,this.play.bind(this))}v.prototype.addEventListener=function(t,i){this.bb.addEventListener(t,i)},v.prototype.removeEventListener=function(t,i){this.bb.removeEventListener(t,i)},v.prototype.prepare=function(t){return e(this,void 0,void 0,(function(){var i,n,e;return r(this,(function(r){switch(r.label){case 0:return this.Ab?[2]:(this.Ab=!0,this.Pc=new h.PluginConfig(t),this._e.isFullscreen=this.Pc.playerState.fullscreen,i=this._e,[4,(0,l.adBlockerDetected)()]);case 1:return i.adBlockerDetected=r.sent(),n=this.Mb.prepare(this.Pc),e=this.Tb.prepare(this.Pc,!1),[2,Promise.all([n,e])]}}))}))},v.prototype.parse=function(t,i,n){var e=this;return this._e.status===f.PluginStatus.Idle&&(this._e.status=f.PluginStatus.Parsing),(n=this.Sb.parse(t,i,n)).map((function(t){return e._e.addAdBreak(t)})),this._e.status===f.PluginStatus.Parsing&&(this._e.status=f.PluginStatus.Idle),this.bb.sendParseResultEvent(t,n),n},v.prototype.cleanup=function(){this.stop()},v.prototype.resolve=function(t,i){var n=this._e.getAdBreak(t,i.breakId);return n?this.Mb.resolveAdBreak(n):Promise.resolve()},v.prototype.play=function(t,i,n){var s;return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return t&&i?(e=this._e.getAdBreak(t,i))?!this._e.activeAdBreak||n?[3,3]:e===this._e.activeAdBreak?[3,2]:[4,this.stop()]:[2]:[3,5];case 1:return r.sent(),[3,3];case 2:return this.Tb.resume(),[2];case 3:return e.stopped=!1,[4,this.Mb.resolveAdBreak(e,n)];case 4:return r.sent(),e.stopped||this.Tb.play(e,null===(s=this.Pc)||void 0===s?void 0:s.playerState),[3,6];case 5:this.Tb.resume(),r.label=6;case 6:return[2]}}))}))},v.prototype.pause=function(){this.Tb.pause()},v.prototype.stop=function(t){return e(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return[4,this.Tb.stop(t)];case 1:return[2,i.sent()]}}))}))},v.prototype.destroy=function(){this.Tb.destroy(),this.Ab=!1},v.prototype.mute=function(t){this.Pc&&(this.Pc.playerState.mute=t),this.Tb.mute(t)},v.prototype.getCurrentTime=function(){return this._e.currentTime},v.prototype.getDuration=function(){return this._e.duration},v.prototype.getVolume=function(){return this._e.volume},v.prototype.isMuted=function(){return this._e.isMuted},v.prototype.setVolume=function(t){this.Pc&&(this.Pc.playerState.volume=t),this.Tb.setVolume(t)},v.prototype.setCcLanguage=function(t){this.Tb.setCcLanguage(t)},v.prototype.setCcStyle=function(t){this.Tb.setCcStyle(t)},v.prototype.setFullscreen=function(t){this.Pc&&(this.Pc.playerState.fullscreen=t),this._e.isFullscreen=t,this.Tb.setFullscreen(t)},v.prototype.showCaptions=function(t){this.Tb.showCaptions(t)},v.prototype.setNonlinearAdContainer=function(t){this.Pc&&(this.Pc.nonlinearContainer=t)},n=v,i.MartiniPlugin=n},8772: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}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.PluginConfig=void 0;var r=n(3952);i.PluginConfig=function(t){var i;this.pluginContainer=t.pluginContainer,this.nonlinearContainer=t.nonlinearContainer,this.playerGuid=t.playerGuid,this.playerState=t.playerState,this.adCallTimeout=t.adCallTimeout?1e3*t.adCallTimeout:r.DEFAULT_AD_CALL_TIMEOUT,this.playbackTimeout=t.playbackTimeout?1e3*t.playbackTimeout:r.DEFAULT_PLAYBACK_TIMEOUT,this.maxHops=null!==(i=t.maxHops)&&void 0!==i?i:r.DEFAULT_MAX_HOPS,this.featureFlag={disableAdCallRetry:null!==(i=null===(i=t.featureFlag)||void 0===i?void 0:i.disableAdCallRetry)&&void 0!==i&&i},this.privacy=e(e({},t.privacy),{isGdprApplies:null!==(t=null===(t=t.privacy)||void 0===t?void 0:t.isGdprApplies)&&void 0!==t&&t})}},9969:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PlayerEventDispatcher=void 0;var e=n(8514),r=n(1600);function s(){this.N={}}s.prototype.addEventListener=function(t,i){this.N[t]||(this.N[t]=[]),this.N[t].push(i)},s.prototype.removeEventListener=function(t,i){this.N[t]&&this.N[t].length&&(this.N[t]=this.N[t].filter((function(t){return t!==i})))},s.prototype.sendParseResultEvent=function(t,i){this.dispatchEvent(e.PluginEvents.AD_PARSE_RESULT,{refId:t,breaks:i})},s.prototype.sendPauseEvent=function(t){this.dispatchEvent(e.PluginEvents.PAUSED),this.sendBatsReports([t])},s.prototype.sendPlayingEvent=function(t,i){this.dispatchEvent(e.PluginEvents.PLAYING,{refId:t,breakId:i,ad:{}})},s.prototype.sendBreakEndedEvent=function(t,i){this.dispatchEvent(e.PluginEvents.BREAK_ENDED,{refId:t,breakId:i})},s.prototype.sendPlayCompleteEvent=function(t,i,n){this.dispatchEvent(e.PluginEvents.PLAY_COMPLETE,{refId:t,breakId:i}),n&&this.sendBatsReports([n])},s.prototype.sendMuteChangedEvent=function(t){this.dispatchEvent(e.PluginEvents.MUTE_CHANGED,{muted:t})},s.prototype.sendVolumeChangedEvent=function(t){this.dispatchEvent(e.PluginEvents.VOLUME_CHANGED,{volume:t})},s.prototype.onCcLoadedEvent=function(t){this.dispatchEvent(e.PluginEvents.CLOSED_CAPTIONS_LOADED,{langs:t})},s.prototype.sendBatsReports=function(t){var i=this;(t=void 0===t?[]:t).filter((function(t){return!!t})).forEach((function(t){"dev (local)"===r.ARGS.BUILD_ENV&&t.evt,i.dispatchEvent(e.PluginEvents.AD_METRICS,t)}))},s.prototype.dispatchEvent=function(t,i){void 0===i&&(i={}),null!=(t=this.N[t])&&t.forEach((function(t){return t(i)}))},s.prototype.sendTimeUpdateEvent=function(t){this.dispatchEvent(e.PluginEvents.TIME_UPDATE,t)},n=s,i.PlayerEventDispatcher=n},7826:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AD_CALL_ERROR=i.SOURCE_TIMEOUT=i.WRAPPER_TIMEOUT=i.AD_CALL_TIMEOUT=i.GEMINI_INCOMPATIBLE_MEDIA=i.INVALID_GEMINI_SCHEMA=i.GEMINI_PARSE_ERROR=i.NO_GEMINI_ADS=i.INCOMPATIBLE_MEDIA=i.NO_ADS_IN_ROOT_VAST=i.NO_ADS_AFTER_WRAPPER=i.EMPTY_VAST_RESPONSE=i.WRAPPER_LIMIT_REACHED=i.WRAPPER_UNREACHABLE_ERROR=i.INVALID_VAST_SCHEMA=i.INVALID_XML=i.AD_BLOCKER_DETECTED=void 0,i.AD_BLOCKER_DETECTED={batsCode:124,description:"Ad blocker detected.",vastCode:400},i.INVALID_XML={batsCode:108,description:"VAST XML parsing error.",vastCode:100},i.INVALID_VAST_SCHEMA={batsCode:5125,description:"VAST schema validation error.",vastCode:101},i.WRAPPER_UNREACHABLE_ERROR={batsCode:5130,description:"General wrapper error.",vastCode:300},i.WRAPPER_LIMIT_REACHED={batsCode:125,description:"Wrapper limit reached.",vastCode:302},i.EMPTY_VAST_RESPONSE={batsCode:5122,description:"Empty response",vastCode:100},i.NO_ADS_AFTER_WRAPPER={batsCode:125,description:"No Ads VAST response after one or more wrappers.",vastCode:303},i.NO_ADS_IN_ROOT_VAST={batsCode:1,vastCode:303,description:"No ads in VAST response."},i.INCOMPATIBLE_MEDIA={batsCode:120,vastCode:403,description:"Couldn't find MediaFile that is supported by this media player based on the attributes of the MediaFile element."},i.NO_GEMINI_ADS={batsCode:1,description:"No ads in Gemini response."},i.GEMINI_PARSE_ERROR={batsCode:108,description:"Gemini parse error."},i.INVALID_GEMINI_SCHEMA={batsCode:5125,description:"Gemini schema validation error."},i.GEMINI_INCOMPATIBLE_MEDIA={batsCode:120,description:"Could not find supported media formats in the Gemini response."},i.AD_CALL_TIMEOUT={batsCode:102,description:"The ad call timed out."},i.WRAPPER_TIMEOUT={batsCode:102,description:"The ad call to the VAST wrapper URI timed out.",vastCode:301},i.SOURCE_TIMEOUT={batsCode:105,description:"Failed to resolve the source in the allotted time."},i.AD_CALL_ERROR={batsCode:104,description:"The ad call returned an error."}},7792:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.GeminiUsageType=void 0,(i=i.GeminiUsageType||(i.GeminiUsageType={})).MULTI_IMAGE="MULTI_IMAGE",i.VIDEO_PREVIEW="VIDEO_PREVIEW",i.VIDEO_PRIMARY="VIDEO_PRIMARY"},9646:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ExtensionType=void 0,(i=i.ExtensionType||(i.ExtensionType={})).AD_CHROMES="ad_chromes",i.CAPTIONS="vidible_captions",i.CUSTOM_BEACONS="one_video_custom_tracking_beacons",i.INVENTORY_ATTRIBUTES="one_video_inventory_attributes",i.LEAVE_BEHIND="o2Player_leaveBehind",i.ONE_VIDEO_FEACONS="one_video_feacons",i.SCRIPT="adaptv_scripts",i.THREE_SIXTY_AD="vidible_360",i.TIMEOUT_BEACON="adaptv_timeout_beacons",i.VIEWABILITY_RULES="ViewabilityRules",i.VIEWABILITY_3P="Viewability3P",i.AD_VERIFICATIONS="AdVerifications"},2205:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.TrackingEvent=void 0,(i=i.TrackingEvent||(i.TrackingEvent={})).CREATIVE_VIEW="creativeView",i.START="start",i.FIRST_QUARTILE="firstQuartile",i.MIDPOINT="midpoint",i.THIRD_QUARTILE="thirdQuartile",i.COMPLETE="complete",i.MUTE="mute",i.UNMUTE="unmute",i.PAUSE="pause",i.REWIND="rewind",i.RESUME="resume",i.FULLSCREEN="fullscreen",i.EXIT_FULLSCREEN="exitFullscreen",i.EXPAND="expand",i.COLLAPSE="collapse",i.ACCEPT_INVITATION="acceptInvitation",i.CLOSE="close",i.ACCEPT_INVITATION_LINEAR="acceptInvitationLinear",i.CLOSE_LINEAR="closeLinear",i.SKIP="skip",i.PROGRESS="progress",i.PLAYER_EXPAND="playerExpand",i.PLAYER_COLLAPSE="playerCollapse",i.NOT_USED="notUsed",i.LOADED="loaded",i.AD_EXPAND="adExpand",i.AD_COLLAPSE="adCollapse",i.MINIMIZE="minimize",i.OVERLAY_VIEW_DURATION="overlayViewDuration",i.OTHER_AD_INTERACTION="otherAdInteraction",i.INTERACTIVE_START="interactiveStart",i.VERIFICATION_NOT_EXECUTED="verificationNotExecuted",i.CLICK_TROUGH="clickThru",i.TRACK_ERROR="trackError"},3214:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdView=void 0;var e=n(5654),r=n(2137);function s(t,i,n,r,s,o){var u=this;this.Nb=(0,e.createElement)("iframe"),this.Ib=0,this.Rb=0,this.Nb.onload=function(){return o(u)},this.Nb.src=t,this.Nb.setAttribute("allow","autoplay; fullscreen"),this.Nb.setAttribute("data-id",r),this.Nb.setAttribute("name",JSON.stringify(i)),s&&(this.Nb.style.width="100%",this.Nb.style.height="100%",this.Nb.style.border="none"),this.hide(),(0,e.appendElement)(this.Nb,n)}Object.defineProperty(s.prototype,"domElement",{get:function(){return this.Nb},enumerable:!1,configurable:!0}),s.prototype.show=function(){this.Nb.style.display="inline-block"},s.prototype.hide=function(){this.Nb.style.display="none"},s.prototype.destroy=function(){(0,e.removeElement)(this.Nb)},s.prototype.positionView=function(t,i,n){this.Nb.style.width="100%",this.Nb.style.height="100%",this.Nb.style.display="inline-block",this.Ib=this.Nb.offsetWidth,this.Rb=this.Nb.offsetHeight,r.MacrosResolver.setPlayerSize(this.Ib,this.Rb),n=this.calculateOverlayBounds(t,i,n),this.Nb.style.width="".concat(n.width,"px"),this.Nb.style.height="".concat(n.height,"px"),this.Nb.style.top=n.y,this.Nb.style.left=n.x,this.Nb.style.position="absolute"},s.prototype.calculateOverlayBounds=function(t,i,n){void 0===n&&(n="BOTTOM");var e={height:i,width:t,x:"0px",y:"0px"};switch(e.x="".concat((this.Ib-t)/2,"px"),e.y="".concat((this.Rb-i)/2,"px"),n){case"TOP":e.y="0px";break;case"RIGHT":e.x="calc(100% - ".concat(t,"px)");break;case"BOTTOM":e.y="calc(100% - ".concat(i,"px)");break;case"LEFT":e.x="0px"}return e},n=s,i.AdView=n},2698:function(t,i){"use strict";var n=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||((e=e||Array.prototype.slice.call(i,0,r))[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.combineToArray=i.remove=void 0,i.remove=function(t,i){for(var n in t)if(i(t[n]))return t.splice(Number(n),1)[0];return null},i.combineToArray=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n([],t,!0).flat().filter((function(t){return null!=t}))}},7489:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.hlsPluginSupported=i.canCall=i.isNativeFunction=i.isIE=i.isOldSafari=i.isSafari=i.isChrome=i.isMobile=i.isTablet=i.isDesktop=i.adBlockerDetected=void 0;var s=n(5654),o=n(1814);function u(){var t;return t=-1<(t=navigator.userAgent).indexOf("Firefox")?"Mozilla Firefox":-1<t.indexOf("SamsungBrowser")?"Samsung Internet":-1<t.indexOf("Opera")||-1<t.indexOf("OPR")?"Opera":-1<t.indexOf("MSIE")||-1<t.indexOf("Trident")?"Microsoft Internet Explorer":-1<t.indexOf("Edge")?"Microsoft Edge":-1<t.indexOf("Chrome")?"Google Chrome or Chromium":-1<t.indexOf("Safari")?"Apple Safari":"unknown"}function a(){return/android|blackberry|iphone|ipad|ipod|opera mini|iemobile/i.test(navigator.userAgent.toLowerCase())}function c(){return 0<=u().indexOf("Safari")}i.adBlockerDetected=function(t){return e(this,void 0,void 0,(function(){var i;return r(this,(function(n){switch(n.label){case 0:i=!1,n.label=1;case 1:return n.trys.push([1,5,,6]),[4,(0,o.fetchUrl)(t||"https://video.adaptv.advertising.com/ad/ads/advertisers/advertisers.txt")];case 2:return n.sent(),c()?[4,(e=(0,s.createElement)("div",[{key:"class",value:"adsbox"}]),(0,s.appendElement)(e,document.body),e.style.height="1px",e.style.width="1px",new Promise((function(t){setTimeout((function(){t(0===e.offsetHeight),(0,s.removeElement)(e)}),100)})))]:[3,4];case 3:i=n.sent(),n.label=4;case 4:return[3,6];case 5:return n.sent(),i=!0,[3,6];case 6:return[2,i]}var e}))}))},i.isDesktop=function(){return!a()},i.isTablet=function(){return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/i.test(navigator.userAgent)},i.isMobile=a,i.isChrome=function(){return 0<=u().indexOf("Chrome")},i.isSafari=c,i.isOldSafari=function(){var t=navigator.userAgent.match(/version\/(\d+)/i);return!(!c()||!t)&&+t[1]<12},i.isIE=function(){return 0<=u().indexOf("Internet Explorer")},i.isNativeFunction=function(t){return!(!t||"function"!=typeof t)&&(String(Function.prototype.toString).indexOf("[native code]")<0?t!==Function.prototype.toString&&null:0<=String(t).indexOf("[native code]"))},i.canCall=function(t){var i,n,e=window;try{t&&"function"==typeof t&&(t instanceof e.Function?i=!0:(n=t.toString())&&(i=!(!(n=new t.constructor("return window; ")())||!n.top)))}catch(t){}return!!i},i.hlsPluginSupported=function(){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}}},5654:function(t,i){"use strict";function n(t){return document.getElementById(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.createElement=i.removeElement=i.appendElement=i.getElement=void 0,i.getElement=n,i.appendElement=function(t,i){n(t.id)||i.appendChild(t)},i.removeElement=function(t){return!!(t&&t.parentElement&&t.parentElement.removeChild(t))},i.createElement=function(t,i,n){void 0===i&&(i=[]);var e=document.createElement(t);return i.forEach((function(t){e.setAttribute(t.key,t.value)})),n&&n.appendChild(e),e}},9278:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AdNetwork=void 0,(i=i.AdNetwork||(i.AdNetwork={})).ADXIMA="ADXIMA",i.ADXTPC="ADXTPC",i.DOUBLECLICK="DOUBLECLICK",i.DSP="DSP",i.FREEWHEEL="FREEWHEEL",i.GEMINI="GEMINI",i.OTHER="OTHER",i.RUBICON="RUBICON",i.SSP="SSP",i.TREMOR="TREMOR",i.VSSP="VSSP",i.YAHOO="YAHOO"},4006:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MediaFormat=void 0,(i=i.MediaFormat||(i.MediaFormat={})).CJS="cjs",i.CM3U8="cm3u8",i.CSWF="cswf",i.C3GPP="c3gpp",i.CFLV="cflv",i.CMP4="cmp4",i.CWEBM="cwebm",i.COGG="cogg",i.COTHER="cother"},1814:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.fetchUrl=i.UNKNOWN_FETCH_ERROR=i.GENERAL_FETCH_ERROR=i.FETCH_TIMEOUT=void 0;var s=n(835),o=n(3952),u=n(9960);i.FETCH_TIMEOUT="FETCH_TIMEOUT",i.GENERAL_FETCH_ERROR="GENERAL_FETCH_ERROR",i.UNKNOWN_FETCH_ERROR="UNKNOWN_FETCH_ERROR",i.fetchUrl=function(t,n,a){return void 0===n&&(n=!1),void 0===a&&(a=o.DEFAULT_AD_CALL_TIMEOUT),e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e={},n&&(e.credentials="include"),t=(0,u.changeToHttpsIfNeeded)(t),e=fetch(t,e),[4,(0,s.addTimeoutToPromise)(e,a).catch((function(t){return t}))];case 1:if(!(e=r.sent()))throw i.FETCH_TIMEOUT;if(!e.ok)throw e.status?i.GENERAL_FETCH_ERROR:i.UNKNOWN_FETCH_ERROR;return[4,e.text()];case 2:return[2,r.sent()]}}))}))}},3120:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Future=void 0;var n=(e.prototype.getPromise=function(){return this.Lb},e.prototype.resolve=function(t){this.Cb&&this.Cb(t)},e);function e(){var t=this;this.Lb=new Promise((function(i){t.Cb=i}))}i.Future=n},2340:function(t,i,n){"use strict";var e=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||((e=e||Array.prototype.slice.call(i,0,r))[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.getGeminiAdDuration=i.isVista=i.isVpaid=i.hasSupportedMediaFormats=i.getMediaFormatCounts=i.sortMediaFiles=i.sortByBitrateAndResolution=i.groupByBitrate=i.groupByType=i.groupByAspectRatio=i.isImage=i.isHls=i.isHlsSupported=i.isIgnoredMimeType=i.isSupported=i.canPlayType=i.getMediaUrl=i.getMimeType=void 0;var r=n(7489),s=n(4006),o=document.createElement("video"),u=["application/x-shockwave-flash","video/x-flv"],a={},c=((n={})["application/javascript"]=s.MediaFormat.CJS,n["text/javascript"]=s.MediaFormat.CJS,n["application/x-javascript"]=s.MediaFormat.CJS,n["application/vnd.apple.mpegurl"]=s.MediaFormat.CM3U8,n["application/x-mpegurl"]=s.MediaFormat.CM3U8,n["application/x-shockwave-flash"]=s.MediaFormat.CSWF,n["uplynk/m3u8"]=s.MediaFormat.CM3U8,n["video/3gpp"]=s.MediaFormat.C3GPP,n["video/x-flv"]=s.MediaFormat.CFLV,n["video/mp4"]=s.MediaFormat.CMP4,n["video/webm"]=s.MediaFormat.CWEBM,n["video/ogg"]=s.MediaFormat.COGG,n),h="vpaid";function f(t){return 0<=u.indexOf(t)}function l(t){return/\.m3u8/i.test(t)}function v(t){return t.reduce((function(t,n){var e=(0,i.isVpaid)(n)?h:"".concat(n.height/n.width);return t[e]=t[e]||[],t[e].push(n),t}),{})}i.getMimeType=function(t){return(t.type||t.contentType||"").toLowerCase()},i.getMediaUrl=function(t){return t.content||t.url||""},i.canPlayType=function(t){try{return"function"==typeof o.canPlayType&&""!==o.canPlayType(t)&&!((0,r.isChrome)()&&0<=t.indexOf("video/3gpp"))}catch(t){return!1}},i.isSupported=function(t){var n=a[t];return void 0===n&&(n=(0,i.canPlayType)(t),a[t]=n),n},i.isIgnoredMimeType=f,i.isHlsSupported=function(){return(0,i.isSupported)("application/vnd.apple.mpegurl")},i.isHls=l,i.isImage=function(t){return/\.(jpe?g|png|gif|bmp)$/i.test(t)},i.groupByAspectRatio=v,i.groupByType=function(t){return t.reduce((function(t,n){var e=(0,i.getMimeType)(n);return f(e)?t.ignored.push(n):(0,i.isVpaid)(n)?t.vpaid.push(n):(0,i.isSupported)(e)?("video/mp4"===e?t.mp4:t.otherNative).push(n):l((0,i.getMediaUrl)(n))&&(0,r.hlsPluginSupported)()&&t.nonNativeHls.push(n),t}),{mp4:[],nonNativeHls:[],otherNative:[],vpaid:[],ignored:[]})},i.groupByBitrate=function(t){return t.reduce((function(t,i){return(i.bitrate?i.bitrate<=900?t.low:t.high:i.minBitrate?i.minBitrate<=900?t.low:t.high:t.missing).push(i),t}),{high:[],low:[],missing:[]})},i.sortByBitrateAndResolution=function(t,n){function e(t,i){return void 0===i&&(i=!1),t.sort((function(t,e){var r=t.bitrate||t.minBitrate,s=e.bitrate||e.minBitrate;return r===s?t.width>=n?e.width>=n?t.width-e.width:-1:e.width-t.width:i?s-r:r-s}))}return e((t=(0,i.groupByBitrate)(t)).low,!0).concat(e(t.high)).concat(e(t.missing))},i.sortMediaFiles=function(t,n,e){var r=v(t),s=e/n;return Object.keys(r).sort((function(t,i){return i==h?-1:Math.abs(+t-s)-Math.abs(+i-s)})).reduce((function(t,e){return e=(0,i.groupByType)(r[e]),t.concat((0,i.sortByBitrateAndResolution)(e.mp4,n)).concat((0,i.sortByBitrateAndResolution)(e.otherNative,n)).concat((0,i.sortByBitrateAndResolution)(e.nonNativeHls,n)).concat(e.vpaid)}),[])},i.getMediaFormatCounts=function(t){return t.reduce((function(t,n){return t[n=c[(0,i.getMimeType)(n)]||s.MediaFormat.COTHER]=(null!==(n=t[n])&&void 0!==n?n:0)+1,t}),{})},i.hasSupportedMediaFormats=function(t){return t=(0,i.groupByType)(t),0<e(e(e(e([],t.mp4,!0),t.otherNative,!0),t.nonNativeHls,!0),t.vpaid,!0).length},i.isVpaid=function(t){return"vpaid"===(null===(t=t.apiFramework)||void 0===t?void 0:t.toLowerCase())},i.isVista=function(t){return t.isVpaid&&t.url.includes("vista.js")},i.getGeminiAdDuration=function(t){return t.length||0}},4270:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MessageParser=void 0;var e=n(8061);function r(){}r.create=function(t,i,n,r,s){return new e.SecureMessage(t,i,n,r,s)},r.stringify=function(t){return JSON.stringify(t)},r.resolve=function(t,i){if("string"!=typeof t)return null;try{var n=JSON.parse(t);if(i===n.targetName)return n}catch(t){}return null},n=r,i.MessageParser=n},1467:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MessagePromise=void 0;var n=(Object.defineProperty(e.prototype,"id",{get:function(){return this.kb.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPending",{get:function(){return this.Db},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){return this.Db=!1,this.Cb&&this.Cb(t)},e);function e(t){var i=this;this.kb=t,this.Db=!1,this.promise=new Promise((function(t){i.Db=!0,i.Cb=t}))}i.MessagePromise=n},3005:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MessengerPromiseManager=void 0;var e=n(1467),r=n(2698);function s(t){this.Sd=t,this.Pb=[]}s.prototype.create=function(t,i){return t=new e.MessagePromise(t),this.Pb.push(t),this.Sd.setListener(i,this.resolve.bind(this)),t.promise},s.prototype.pull=function(t){return(0,r.remove)(this.Pb,(function(i){return i.id===t}))},s.prototype.resolve=function(t){var i=this.pull(t.id);i&&i.resolve(t)},n=s,i.MessengerPromiseManager=n},6263:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},s=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||((e=e||Array.prototype.slice.call(i,0,r))[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.Messenger=void 0;var o=n(4270),u=n(3005),a=n(4667),c=n(3120);function h(t){this.xb=t,this.Ub={},this.Fb=new u.MessengerPromiseManager(this),this.Bb=!1,this.zb=new c.Future,this.Vb=this.Vb.bind(this)}h.prototype.init=function(t,i,n,e){var r=this;this._d=n,this.Gb=i,this.Hb=e,this.Yb=t;var u,c=(0,a.resolveWindow)(t);if(e="",c)try{e=c.location.origin}catch(t){}window.location.origin===e&&(this.Bb=!0,window["martini-message-handler-".concat(this._d)]=function(t){return r.Vb(t)}),this.qb(),this.zb.resolve(),this.xb&&t.location&&c&&window.performance&&(u=[],this.Wb=setInterval((function(){var t=window.performance.getEntriesByType("navigation"),i=window.performance.getEntriesByType("resource");0<(i=s(s([],t,!0),i,!0).filter((function(t){return!1===u.includes(t.startTime)})).map((function(t){return u.push(t.startTime),t.name}))).length&&(i=o.MessageParser.create(i,"martini-network-requests",r._d,r.Hb),i=o.MessageParser.stringify(i),c.postMessage(i,r.Gb))}),1e3))},h.prototype.dispatch=function(t,i,n){return e(this,void 0,void 0,(function(){var e,s,u,c;return r(this,(function(r){switch(r.label){case 0:return[4,this.zb.getPromise()];case 1:return r.sent(),e=o.MessageParser.create(i,t,this._d,this.Hb,n),s=o.MessageParser.stringify(e),(u=(0,a.resolveWindow)(this.Yb))&&(this.Bb?(c=u["martini-message-handler-".concat(this.Hb)])&&c({data:s}):u.postMessage(s,this.Gb)),[2,e]}}))}))},h.prototype.setListener=function(t,i){var n;this.Ub[t]=null!==(n=this.Ub[t])&&void 0!==n?n:[],this.Ub[t]=i},h.prototype.dispatchAndPromisify=function(t,i){return e(this,void 0,void 0,(function(){var n;return r(this,(function(e){switch(e.label){case 0:return[4,this.dispatch(t,i)];case 1:return n=e.sent(),[4,this.Fb.create(n,t)];case 2:return[2,e.sent()]}}))}))},h.prototype.addAsyncReply=function(t,i){function n(n){return e(s,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return[4,i(n)];case 1:return e=r.sent(),this.dispatch(t,e,n.id),[2,e]}}))}))}var s=this;return this.setListener(t,n),n},h.prototype.destroy=function(){for(var t in this.Ub)delete this.Ub[t];delete this.Gb,delete this.Yb,window.removeEventListener("message",this.Vb),this.xb&&this.Wb&&clearInterval(this.Wb)},h.prototype.qb=function(){window.addEventListener("message",this.Vb)},h.prototype.Vb=function(t){var i=o.MessageParser.resolve(t.data,this._d);i&&(i.receivedAt=Date.now(),(t=this.Ub[i.type])&&t(i))},n=h,i.Messenger=n},8061:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.SecureMessage=void 0;var n=0;i.SecureMessage=function(t,i,e,r,s){this.payload=t,this.type=i,this.originName=e,this.targetName=r,this.id=s||"martini-msg-".concat(this.originName,"-").concat(this.targetName,"-").concat(++n),this.createdAt=Date.now(),this.receivedAt=0}},2557:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.base64Decode=void 0,i.base64Decode=function(t){var i;return t&&(i=Number(t),isNaN(i)&&(i=Number(window.atob(t)))),i}},2649: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}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.isObject=i.eraseUndefinedValues=i.prettyPrintJson=i.xml2json=void 0;var r,s=n(218);(n=r=r||{})[n.ELEMENT_NODE=1]="ELEMENT_NODE",n[n.TEXT_NODE=3]="TEXT_NODE",n[n.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",i.xml2json=function t(i){var n={},o=i.childNodes;if(0<o.length)for(var u=0;u<o.length;u++){var a,c,h=o.item(u);h.nodeType===r.TEXT_NODE&&0===h.nodeValue.replace(/\s/g,"").length||(a=(0,s.toCamelCase)(h.nodeName),[r.CDATA_SECTION_NODE,r.TEXT_NODE].includes(h.nodeType)?n=e(e({},n),t(h)):void 0===n[a]?n[a]=t(h):(void 0===n[a].push&&(c=n[a],n[a]=[],n[a].push(c)),n[a].push(t(h))))}else n.content=(i.textContent+"").trim();if(i instanceof Element&&i.attributes&&i.attributes.length)for(var f=0;f<i.attributes.length;f++){var l=i.attributes[f].value;n[i.attributes[f].name]=(0,s.string2type)(l)}return n},i.prettyPrintJson=function(t){return JSON.stringify(t,void 0,4)},i.eraseUndefinedValues=function(t){return Object.keys(t).forEach((function(i){void 0!==t[i]&&"undefined"!==t[i]||(t[i]="")})),t},i.isObject=function(t){return"[object object]"===Object.prototype.toString.call(t).toLocaleLowerCase()}},3987:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getPlacementId=void 0;var e=n(9278),r=n(9960),s=((n={})["ima3vpaid.appspot.com"]=e.AdNetwork.ADXIMA,n["tpc.googlesyndication.com"]=e.AdNetwork.ADXTPC,n["pubads.g.doubleclick.net"]=e.AdNetwork.DOUBLECLICK,n["pmp.ybp.yahoo.com"]=e.AdNetwork.DSP,n[".v.fwmrm.net"]=e.AdNetwork.FREEWHEEL,n["gemini.yahoo.com"]=e.AdNetwork.GEMINI,n["rubiconproject.com"]=e.AdNetwork.RUBICON,n[".ssp.yahoo.com"]=e.AdNetwork.SSP,n["tremorhub.com"]=e.AdNetwork.TREMOR,n[".adaptv.advertising.com"]=e.AdNetwork.VSSP,n[".yahoo.com"]=e.AdNetwork.YAHOO,n);i.getPlacementId=function(t){if(!t)return"";function i(i,n){return function(t,i,n){return(n=void 0!==n&&n)?(n=(0,r.getParameterByName)("adTagUrl",t)||(0,r.getParameterByName)("adtagurl",t))?(n=decodeURI(unescape(n)),(0,r.getParameterByName)(i,n)):"":(0,r.getParameterByName)(i,t,!1)}(t,i,n)}var n,o=(0,r.parseUrl)(t),u="";switch(function(t){for(var i in s)if(t.includes(i))return s[i];return e.AdNetwork.OTHER}(o.host)){case e.AdNetwork.ADXIMA:u=i("client",!0);break;case e.AdNetwork.ADXTPC:u=i("iu",!0);break;case e.AdNetwork.DOUBLECLICK:u=i("iu");break;case e.AdNetwork.DSP:u=(n=(n=o.pathname).split("/"))[n.length-1];break;case e.AdNetwork.FREEWHEEL:u=(n=i("prof"))?n.split(";")[0]:"";break;case e.AdNetwork.GEMINI:u=i("se");break;case e.AdNetwork.RUBICON:u="".concat(i("account_id"),"-").concat(i("site_id"),"-").concat(i("zone_id"));break;case e.AdNetwork.SSP:u="".concat(i("dcn"),"-").concat(i("pos"));break;case e.AdNetwork.TREMOR:u=i("adCode")}return u}},872:function(t,i,n){"use strict";var e=this&&this.__awaiter||function(t,i,n,e){return new(n=n||Promise)((function(r,s){function o(t){try{a(e.next(t))}catch(t){s(t)}}function u(t){try{a(e.throw(t))}catch(t){s(t)}}function a(t){var i;t.done?r(t.value):((i=t.value)instanceof n?i:new n((function(t){t(i)}))).then(o,u)}a((e=e.apply(t,i||[])).next())}))},r=this&&this.__generator||function(t,i){var n,e,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:u(0),throw:u(1),return:u(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,(o=r?[2&o[0],r.value]:o)[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,e=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],e=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(i,"__esModule",{value:!0}),i.SecureRunner=void 0;var s=n(3214);function o(){this.Qb={}}o.prototype.create=function(t,i,n,o,u){return void 0===u&&(u=!1),e(this,void 0,void 0,(function(){var e=this;return r(this,(function(r){return[2,new Promise((function(r){r=new s.AdView(i,n,o,t,u,r),e.Qb[t]=r}))]}))}))},o.prototype.show=function(t){this.getRunner(t).show()},o.prototype.hide=function(t){this.getRunner(t).hide()},o.prototype.destroy=function(t){this.getRunner(t).destroy(),delete this.Qb[t]},o.prototype.setSize=function(t,i,n,e){this.getRunner(t).positionView(i,n,e)},o.prototype.getRunner=function(t){var i=this.Qb[t];if(!i)throw new Error("No matching runner found for id: ".concat(t));return i},n=o,i.SecureRunner=n},218:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.serialize=i.string2xml=i.string2type=i.toCamelCase=i.sanitizeString=void 0,i.sanitizeString=function(t){var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};return t.replace(/[&<>"'/]/gi,(function(t){return i[t]}))},i.toCamelCase=function(t){var i=t.replace(/([A-Z]{2,})/g,(function(i,n,e){var r=i===t,s=!isNaN(+t[e+i.length]);return e=e+i.length===t.length,i[0]+i.substr(1,i.length-2).toLowerCase()+(r||s||e?i[i.length-1].toLowerCase():i[i.length-1])}));return i[0].toLowerCase()+i.substr(1)},i.string2type=function(t){return"null"===t||""===t?null:isNaN(+t)?"true"===t||"false"!==t&&t:+t},i.string2xml=function(t){if(0<(t=(new DOMParser).parseFromString(t,"text/xml")).getElementsByTagName("parsererror").length||!t.documentElement)throw new Error;return t},i.serialize=function(t){var i=t,n=[];return Object.keys(i).forEach((function(t){var e=i[t];"number"==typeof e&&isNaN(e)||(!1===e||0===e||e&&"function"!=typeof e)&&(t="".concat(encodeURIComponent(t),"="),t+=encodeURIComponent(String(e)),n.push(t))})),n.join("&")}},835:function(t,i){"use strict";var n=this&&this.__spreadArray||function(t,i,n){if(n||2===arguments.length)for(var e,r=0,s=i.length;r<s;r++)!e&&r in i||((e=e||Array.prototype.slice.call(i,0,r))[r]=i[r]);return t.concat(e||Array.prototype.slice.call(i))};function e(t,i){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return new Promise((function(r,s){setTimeout.apply(void 0,n([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i?s():r(t)},t],e,!1))}))}Object.defineProperty(i,"__esModule",{value:!0}),i.throttle=i.timeStrToMilliSeconds=i.addTimeoutToPromise=i.setPromiseTimeout=void 0,i.setPromiseTimeout=e,i.addTimeoutToPromise=function(t,i){return i=e(i=void 0===i?0:i,!0),Promise.race([t,i])},i.timeStrToMilliSeconds=function(t){t=(i=(null!=t?t:"").replace(",",".").split("."))[0];var i=i[1],n=0,e=t.split(":");e.reverse();for(var r=[1,60,3600],s=0;s<e.length;s++)n+=+e[s]*r[s];return 0!=+n||i?parseInt(n+(i||"000")):0},i.throttle=function(t,i,e){var r=!1;return function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return r?e:(r=!0,setTimeout((function(){return r=!1}),i),t.call.apply(t,n([this],s,!1)))}}},9960:function(t,i){"use strict";function n(t){var i=document.createElement("a");return i.href=t,{host:i.host,pathname:i.pathname}}Object.defineProperty(i,"__esModule",{value:!0}),i.changeToHttpsIfNeeded=i.getDomainName=i.getHostname=i.getParameterByName=i.parseUrl=void 0,i.parseUrl=n,i.getParameterByName=function(t,i,n){return void 0===n&&(n=!0),t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),(i=new RegExp("[?&]".concat(t,"=([^&#]*)")).exec(i))?n?decodeURIComponent(i[1].replace(/\+/g," ")):i[1]:""},i.getHostname=function(t){return(t=/(?:(?:[\w]+:)?\/\/)?([^?#\/:]+)/.exec(t))?t[1]:""},i.getDomainName=function(t){return(t=n(t).host.split(/\./)).slice(-(4===t.length?3:2)).join(".")},i.changeToHttpsIfNeeded=function(t){return"https:"===window.location.protocol?t.replace("http:","https:"):t}},4667:function(t,i){"use strict";function n(t){for(var i=t;i;)try{var n=i.parent;if(!n.document)break;if((i=n)===n.parent)break}catch(t){break}return i}Object.defineProperty(i,"__esModule",{value:!0}),i.catchUnhandledExceptions=i.openLinkInNewTab=i.getDocument=i.resolveWindow=i.getWindow=i.getTopMostLocation=i.getTopMostWindow=void 0,i.getTopMostWindow=n,i.getTopMostLocation=function(t){var i=n(e=t),e=(t=e&&e.location&&e.location.ancestorOrigins,i.document&&i.document.referrer);return i===window.top?i.location.href:e||(t&&0<t.length?t[t.length-1]:i.location.href)},i.getWindow=function(){return window},i.resolveWindow=function(t){try{return t.location?t:t.contentWindow}catch(t){}return null},i.getDocument=function(){return document},i.openLinkInNewTab=function(t){0<t.length&&window.open(t,"_blank")},i.catchUnhandledExceptions=function(t,i){window.addEventListener("error",(function(n){var e=[];document.querySelectorAll("script").forEach((function(t){t.src&&!/(executor|resolver)\.js/.test(t.src)&&e.push(t.src)})),t({context:i,message:n.message,filename:n.filename,lineno:n.lineno,colno:n.colno,other_scripts:e.join(",")})}))}}},__webpack_module_cache__={};function __nested_webpack_require_164705__(t){var i=__webpack_module_cache__[t];return void 0!==i||(i=__webpack_module_cache__[t]={exports:{}},__webpack_modules__[t].call(i.exports,i,i.exports,__nested_webpack_require_164705__)),i.exports}var __webpack_exports__=__nested_webpack_require_164705__(3980);return __webpack_exports__},module.exports=t()},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.yp,i.tv){var a=void 0!==a?a:void 0!==n.g&&n.g.tv?n.g.tv:{};if(i.class=i.ua,i.vizio)i.os="vizio",i.class=u("class")||u("soc"),a&&a.tts&&(i.class+="-tts");else if(i.tivo)i.os="tivo",/tcd849/.test(s)?i.class="TCD849":/tcd8d9/.test(s)?i.class="TCD8D9":/tcd8f9/.test(s)?i.class="TCD8F9":/tcd8/.test(s)?i.class="TCD8":/tcdd/.test(s)?i.class="TCDD":/tcd7/.test(s)?i.class="TCD7":/tcda9/.test(s)&&(i.class="TCDA9");else if(i.amazon)i.os="amazon",/aftb/.test(s)?i.class="AFTB":/afts/.test(s)?i.class="AFTS":/aftm/.test(s)?i.class="AFTM":/aftn/.test(s)?i.class="AFTN":/aftrs/.test(s)?i.class="AFTRS":/aftt/.test(s)&&(i.class="AFTT");else if(i.lg)i.os="lg",/qtwebengine/.test(s)?i.class="3":/safari\/537/.test(s)?i.class="1":/safari\/538/.test(s)&&(i.class="2");else if(i.samsung){i.os="samsung";var c="default";if(i.tizen){var h=void 0!==h?h:e.tizen;h&&h.systeminfo&&(i.version=h.systeminfo.getCapability("http://tizen.org/feature/platform.version"));var f=void 0!==f?f:e.webapis;if(f&&f.productinfo&&f.productinfo.getRealModel)try{var l=f.productinfo.getRealModel(),v=l.substr(4,isNaN(Number(l[5]))?2:1);c=v+l.substr(1===v.length?5:6,1)}catch(t){c="default"}}else c="orsay";i.class=c}else i.roku||i.chromecast||i.toshiba||i.philips||i.appletv||i.xbox||(i.sony?(i.os="sony",/bdp/.test(s)?i.class="BDP":/bravia|sony-kj/.test(s)?i.class="BRAVIA":i.class="default"):i.playstation?(i.os="playstation",/4pro/.test(s)?i.class="4PRO":/playstation 4/.test(s)?i.class="4":/vita/i.test(s)&&(i.class="VITA")):i.fios?(i.os="fios",/stb/.test(s)?i.class="STB":/vms/.test(s)?i.class="VMS":/ipc/.test(s)&&(i.class="IPC")):i.os=null)}else i.ios?i.os="ios":i.android?i.os="android":/windows|win32/.test(s)?(i.os="windows",i.winXP=/(windows nt 5\.[1-3])/.test(s),i.class=i.winXP?"XP":i.class,i.winVista=/(windows nt 6\.0)/.test(s),i.class=i.winVista?"VISTA":i.class,i.win7=/(windows nt 6\.1)/.test(s),i.class=i.win7?"7":i.class,i.win8=/(windows nt 6\.2)/.test(s),i.class=i.win8?"8":i.class,i.win8_1=/(windows nt 6\.3)/.test(s),i.class=-1*i.win?"8_1":i.class,i.win10=/(windows nt 10\.0)/.test(s),i.class=i.win10?"10":i.class,i.win64=/(wow64|win64)/.test(s),i.architecture=i.win64?"64":"32"):/macintosh|mac_powerpc/.test(s)?i.os="macintosh":/symbos/.test(s)?i.os="symbos":/linux/.test(s)?i.os="linux":i.os=null},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),a=n(514),c=n(1279),h=n(1954),f=n(2974);function l(t){return u.default.classList(t)}var v=function(){function t(){this.version="0.3.104-pr1536.b39163349",this.mimetype=t.mimetype,this.type=c.PluginType.AD,this.Zb=!1,this.$b=new r.default("DefaultAdPlugin"),this.Xb={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this.Jb=null,this.Kb=null,this.tm=null,this.im=null,this.nm&&this.nm.destroy(),this.Xb=null,this.Zb=!1,this.$b.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.rm();if(this.Zb=!0,t.interactionConfig&&t.interactionConfig.clickUrl?(this.Jb=t.interactionConfig.clickUrl,l(this.Kb).remove("vp-hidden")):(this.Jb=null,l(this.Kb).add("vp-hidden")),l(this.tm.parentElement).add("vp-hidden"),t.type===o.AdBreakItemType.BUMPER)return this.sm=t.duration,s;var a=this.om(r,e),c=a.position,f=a.totalAds,v=a.duration;if(this.sm=v,this.um=u.default.strSubstitute(1===f?h.default.ADV_SHORT:h.default.ADV_MULT_SHORT,{position:c+1,total:f}),this.am=u.default.strSubstitute(1===f?h.default.ADV_LONG:h.default.ADV_MULT_LONG,{position:c+1,total:f}),0===c){var d=this.um.split("{")[0];this.tm.innerText=d}return s},t.prototype.unrenderUI=function(){this.Zb=!1,this.hm()},t.prototype.onPlayerEvent=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(t===c.PluginPlayerEvent.AD_PLAYBACK_STARTED&&this.Zb){var e=i[0];e.type!==o.AdBreakItemType.BUMPER&&l(this.tm.parentElement).remove("vp-hidden")}if(t===c.PluginPlayerEvent.AD_PLAYBACK_PROGRESS&&this.Zb){var r=i[0];this.fm(r)}},t.prototype.addEventListener=function(t,i){var n=this.$b.addEventListener(t,i,null);this.Xb[t]=this.Xb[t]||[],this.Xb[t].push([i,n])},t.prototype.removeEventListener=function(t,i){this.Xb[t]=this.Xb[t]||[];for(var n=0,e=this.Xb[t];n<e.length;n++){var r=e[n],s=r[0],o=r[1];if(s===i)return void this.$b.removeEventListener(t,o)}},t.prototype.hm=function(){this.Jb=null,this.tm&&(this.tm.innerText="")},t.prototype.fm=function(t){if(this.tm){var i=t.currentTime,n=t.duration;if(n){var e=Math.round(n-i);this.tm.innerText=u.default.strSubstitute(this.um,{remaining:e})}}},t.prototype.om=function(t,i){if(i<0||i>t.length-1)return{position:0,totalAds:0,duration:0};if(t[i].type===o.AdBreakItemType.BUMPER)return{position:0,totalAds:1,duration:t[i].duration};for(var n=-1,e=i-1;e>=0;e--){if((a=t[e]).type===o.AdBreakItemType.BUMPER){n=e;break}}var r=n+1,s=0,u=0;for(e=r;e<t.length;e++){var a;if((a=t[e]).type===o.AdBreakItemType.BUMPER)break;s++,u+=a.duration}return{position:i-r,totalAds:s,duration:u}},t.prototype.lm=function(t){for(var i,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(i=this.$b).publish.apply(i,e([t],n))},t.prototype.rm=function(){var t=this;return this.im?(this.hm(),this.im):(this.im=u.default.render(f,h.default),this.tm=this.im.querySelector(".vp-adbreak-progress span"),this.Kb=this.im.querySelector(".vp-adbreakitem-cta"),this.nm=new a.default(this.Kb,(function(i){t.Jb&&(window.open(t.Jb,"_blank"),t.lm(s.AdPluginUIEvent.CTA_TRIGGERED))})),this.hm(),this.im)},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="",a="";if("0.3.104-pr1536.b39163349".indexOf("local")>-1)a="https://assets.video.yahoo.net/builds/0.2.174/nielsen-iframe.html";else{a=(u="https://assets.video.yahoo.net")+"/builds/0.3.104-pr1536.b39163349/nielsen-iframe.html"}var c,h,f,l="vp-nielsen-iframe";i.NIELSEN_IAB_VENDOR_ID=373,function(t){t.linear="1",t.dynamic="2"}(c=i.NielsenAdType||(i.NielsenAdType={})),function(t){t.LOAD_METADATA="loadMetadata",t.SEND_ID3="sendID3",t.END="end"}(h=i.NielsenEvents||(i.NielsenEvents={})),function(t){t.INITIALIZE="initialize",t.SEND_BEACON="sendBeacon"}(f=i.IframeMessageType||(i.IframeMessageType={}));var v=function(){function t(t,i){this.vm=t,this.dm=null,this.pm="",this.bm=!1,this.gm=!1,this.ym=!1,this._m=[],this.wm=!1,this.Om="",this.Em=!1,this.jm=[{evt:e.ExternalEvt.PLAYBACK_START,cb:this.Sm.bind(this)},{evt:e.ExternalEvt.TIMED_METADATA_RECEIVED,cb:this.Am.bind(this)},{evt:e.ExternalEvt.PLAYBACK_COMPLETE,cb:this.Mm.bind(this)},{evt:e.ExternalEvt.PLAYBACK_STOPPED,cb:this.Mm.bind(this)},{evt:e.ExternalEvt.MEDIA_ITEM_ERROR,cb:this.Mm.bind(this)}],this.Tm="P77FED7E1-92A2-4B10-A9AA-16756377EB20",t&&(o.Privacy.initIframeForGDPR(),this.Nm(),this.pm="vp-player-"+Math.floor(1e4*Math.random()),i&&i.length&&(this.Tm=i),this.Im(),this.Rm={},this.Lm(),this.Cm(),this.Om=this.vm.addEventListener(e.ExternalEvt.NIELSEN_REQUIRED,this.Cm.bind(this),this))}return t.prototype.destroy=function(){this.dm&&(this.vm.removeEventListeners(this.Rm),window.removeEventListener("message",this.km),this.dm=null,this._m=null,this.Rm={},this.vm.removeEventListener(e.ExternalEvt.NIELSEN_REQUIRED,this.Om))},t.prototype.Cm=function(){this.ym||(this.Dm(),this.gm=!1,this.bm=!1,this.ym=!0)},t.prototype.Pm=function(){this.ym&&(this.vm.removeEventListeners(this.Rm),window.removeEventListener("beforeunload",this.Mm.bind(this)),this.gm=!0,this.ym=!1)},t.prototype.Im=function(){var t=this;this.dm=document.getElementById(l),this.dm?(this.xm(),this.wm=!0):(this.dm=document.createElement("iframe"),this.dm.id=l,this.dm.style.display="none",this.dm.onload=function(){t.xm(),t.wm=!0,t.Em&&t.Um()},this.dm.src=a,document.body.appendChild(this.dm))},t.prototype.xm=function(){this.Fm(f.INITIALIZE,null,{appid:this.Tm})},t.prototype.Fm=function(t,i,n){if(this.dm&&this.dm.contentWindow){var e={messageType:t,nielsenEvent:i,payload:n,playerid:this.pm};this.dm.contentWindow.postMessage(e,u)}},t.prototype.Dm=function(){var t=this;window.addEventListener("beforeunload",this.Mm.bind(this)),this.jm.forEach((function(i){t.Rm[i.evt]=t.vm.addEventListener(i.evt,i.cb,t)}))},t.prototype.Lm=function(){window.addEventListener&&window.addEventListener("message",this.km.bind(this))},t.prototype.km=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.bm=!0)}},t.prototype.Bm=function(t,i){var n=this;this._m.push((function(){n.Fm(f.SEND_BEACON,t,i)})),this.dm&&this.wm&&this.Em&&this.Um()},t.prototype.Um=function(){this._m.forEach((function(t){t()})),this._m=[]},t.prototype.Sm=function(t){var i=this.vm.getCurrentMediaItem(),n=i&&i.id,e={type:"content",channelName:t&&t.brandingData&&t.brandingData.branding&&t.brandingData.branding.providerId?n+";"+t.brandingData.branding.providerId:n,adModel:c.linear};this.Bm(h.LOAD_METADATA,e)},t.prototype.Mm=function(){if(this.bm&&!this.gm){var t=Date.now()/1e3;this.Bm(h.END,t),this.bm=!1,this.Pm()}},t.prototype.Am=function(t){var i=s.default.detectRegexPattern(r.ID3_MATCH_PATTERN.NIELSEN,t);i&&this.bm&&this.Bm(h.SEND_ID3,i)},t.prototype.Nm=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.Em=!e||!!(null==i?void 0:i.hasConsent),t.Em||t.Pm()}else t.Pm()}))},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(531),a=n(6342),c=n(9154),h=function(){function t(t){this.vm=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.zm=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.vn={},this.apiPlay=!1,this.preload=!1,this.resetProgressBeaconsState()}return t.getStreamType=function(i,n,e){return Object.values(r.AdBreakOffset).includes(n)?t.getAdType(n):Object.values(s.MediaItemType).includes(n)?t.getContentType(n,n,e):i===o.PlaybackMode.AD?"ad":n},t.getContentType=function(i,n,e){if(i===r.AdBreakOffset.ADONLY)return"ad native";switch(n){case s.MediaItemType.VOD:return 0===e?"":e>t.LONG_VOD_DURATION?"vod long":"vod short";case s.MediaItemType.LIVE_EVENT:case s.MediaItemType.LIVE_CHANNEL:return"live";case s.MediaItemType.CONTAINER:return"streamurl"}return""},t.getAdType=function(t){switch(t){case r.AdBreakOffset.PRE:return"ad pre-roll";case r.AdBreakOffset.TIMESTAMP:return"ad mid-roll";case r.AdBreakOffset.POST:return"ad post-roll";case r.AdBreakOffset.OVERLAY:return"ad non-linear";case r.AdBreakOffset.ADONLY:return"ad native"}return""},t.prototype.destroy=function(){this.pls="",this._sqno=0},t.prototype.update=function(i){this.requestType=i.requestType||"",this.requestAction=i.requestAction||"none",this.audioLanguage=i.audioLanguage||"",this.Vm=i.playerRootElement||this.Vm,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.vm.guid,this.ss=this.Gm(i.currentMediaType)||this.ss,this.vid=i.videoId||this.vid,this.pstaid=i.videoId||this.pstaid,this.prt=this.Hm(i.rendererType)||this.prt,this.cprt=this.Hm(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.104-pr1536.b39163349"===i.playerVersion?"local":i.playerVersion,this.auto=this.apiPlay?"vm":!0===i.autoPlay?"true":"false",this.apiPlay||(this.apiPlay=this.requestAction===e.REQUEST_TYPES.PLAY&&this.requestType===e.REQUEST_TYPES.API),this.snd=!0===i.mute?"m":"um",this.deos=i.docking&&!0===i.docking.enableOnScrollDown?"1":"0",this.deom=i.docking&&!0===i.docking.enableOnMuted?"1":"0",this.psz=i.uiState&&i.uiState.width&&i.uiState.height?i.uiState.width+"x"+i.uiState.height:this.psz,this.ccav=!0===i.isCCAvailable?"1":"0",this.cdn=i.cdn||this.cdn,this.smpl=u.isNullOrUndefined(i.samplingId)?this.smpl:i.samplingId.toString(),this.focus=a.default.isPlayerInBackground()?"0":"1",this.expm=this.Ym(i.uiState),this.endscreen=i.showEndScreen?1:0,this.drmsys=i.drmsys,this.drm=i.drm,this.ts=i.currentTs-this.vm.getInitTime(),this.pbst=i.pbst,this.pbstd=i.pbstd,this.pl_type=this.qm(),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.vn[n]=t[n]||i.vn[n]}))},t.prototype.updateTs=function(t){this.ts=t-this.vm.getInitTime()},t.prototype.getCommonParams=function(){var t=this,i={t:Math.random()};return c.PARAMS.forEach((function(n){i[n]=t[n]})),i},t.prototype.onVideoRequest=function(t,i){this.Wm&&(i.videoId===this.Wm?this.replay++:this.cont++),this.Wm=i.videoId,this.bitrate=0},t.prototype.onBeaconSent=function(){this._sqno++},t.prototype.resetProgressBeaconsState=function(){this.progressBeaconsInfo.timeLastSent=c.PROGRESS_BEACON_INTERVALS.reduce((function(t,i){return t[i.key]=-1,t}),{})},Object.defineProperty(t.prototype,"synchState",{get:function(){return this.vn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.vm.getCurrentTime()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"volume",{get:function(){var t=this.vm.volume;return t&&t>0&&t.toString()||"0"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bitrate",{get:function(){return this.zm},set:function(t){this.zm=Math.round(t),this.bit=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"programDateTimeLatency",{get:function(){var t=this.vm.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.Qm(this.Vm).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.Hm=function(t){if(!t)return"";switch(t){case o.RendererType.HTML5_HLS:return"html5-hls";case o.RendererType.HTML5_HLS_360:return"html5-hls-360";case o.RendererType.HTML5_RAW_360:return"html-360";case o.RendererType.AD_PLUGIN:case o.RendererType.HTML5_RAW:case o.RendererType.HTML5_TV:case o.RendererType.HTML5_TV_TIZEN:case o.RendererType.HTML5_TV_ORSAY:default:return"html"}},t.prototype.Gm=function(t){return t===s.MediaItemType.LIVE_EVENT||t===s.MediaItemType.LIVE_CHANNEL?"live":"vod"},t.prototype.Qm=function(t){var i=(new Date).getTime();if(t&&i-this.viewability.timestamp>1e3){var n=t&&void 0!==t.getElementsByClassName?t.getElementsByClassName(e.VIDEO_MAIN_ELEMENT_CLASS):null;n&&n.length&&(this.viewability.value=a.default.getElementViewability(n[0]),this.viewability.timestamp=i,this.viewability.rect=n[0].getBoundingClientRect(),this.viewability.windowHeight=window.innerHeight,this.viewability.isVisible=null!==n[0].offsetParent?1:0,this.viewability.invisibleElement=this.viewability.isVisible?"":this.Zm(n[0]))}return this.viewability.value},t.prototype.Ym=function(t){return t?t.isPIP?"picture_in_picture":t.isFullScreen?"fullscreen":t.isDocked?"docked":"na":"na"},t.prototype.Zm=function(t){return t?t.parentElement&&"none"!==t.style.display?this.Zm(t.parentElement):JSON.stringify({n:t.nodeName,i:t.id,cl:t.classList}):""},t.prototype.qm=function(){var t,i,n,r,s,o,u=this.vm.config,a=!0===(null===(i=null===(t=null==u?void 0:u.ui)||void 0===t?void 0:t.playlist)||void 0===i?void 0:i.show)&&(null===(r=null===(n=null==u?void 0:u.ui)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.position);return a!==e.PLAYLIST_POS.RIGHT||(null===(o=null===(s=null==u?void 0:u.ui)||void 0===s?void 0:s.playlist)||void 0===o?void 0:o.inStream)?a||c.PLAYLIST_POSITION.NONE:c.PLAYLIST_POSITION.HERO},t.LONG_VOD_DURATION=600,t}();i.default=h;var f=a.default.getResourceLoadTime(/video-player\.css/);f=u.isNumber(f)?Math.round(f).toString():"na"},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),a=n(4685),c=n(531),h=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.vm=i,e.vt=n,e.$m=0,e.Rm={},e.Xm=[],e.Ce=!1,e.Jm=0,e.Km="",e.tg=0,e.Ye=null,e.ig=0,e.ng=[],[{evt:u.ExternalEvt.VIDEO_REQUEST,cb:e.eg},{evt:u.ExternalEvt.PLAYBACK_PAUSE,cb:e.On},{evt:u.ExternalEvt.SEG_INFO_AVAILABLE,cb:e.rg},{evt:u.ExternalEvt.PLAYBACK_TIME_UPDATE,cb:e.Mn},{evt:u.ExternalEvt.PLAYBACK_SEEKING,cb:e.En},{evt:u.ExternalEvt.PLAYBACK_SEEK_COMPLETE,cb:e.sg},{evt:u.ExternalEvt.RECOVERY_START,cb:e.og},{evt:u.ExternalEvt.PLAYBACK_PLAYING,cb:e.wn},{evt:u.ExternalEvt.RECOVERY_DISABLED,cb:e.ug}].forEach((function(t){e.Rm[t.evt]=e.vm.addEventListener(t.evt,t.cb,e)})),e}return r(i,t),i.prototype.destroy=function(){this.vm.removeEventListeners(this.Rm),this.ag()},i.prototype.updatePlaybackStats=function(t){var i,n=this.cg();if(t.dur=Math.floor(this.$m)||"",t.dur_d=Math.floor(this.$m)-Math.floor(this.Jm)||0,t.buff_info=n.segInfo||"",t.buf_dur=n.bufDur||0,this.updateRecoveryStats(t),null===(i=this.ng)||void 0===i?void 0:i.length)try{t.reason=JSON.stringify(this.ng)}catch(t){}},i.prototype.updateRecoveryStats=function(t){""!==this.Km&&(t.rcvr_status=this.Km,t.rcvr_at=this.tg)},Object.defineProperty(i.prototype,"totalWatchTime",{get:function(){return this.$m},enumerable:!1,configurable:!0}),i.prototype.eg=function(t,i){this.ag()},i.prototype.On=function(t){t.playbackMode!==a.PlaybackMode.AD&&this.hg(h.BEACONS.PLAYBACK_PROGRESS),this.Nv()},i.prototype.En=function(t){this.Ce=!0,this.Nv(),t&&this.ng.push(t)},i.prototype.sg=function(){this.Ce=!1,this.vt.lastKnownPlaybackTime=this.vt.currentTime,this.ng.length&&this.hg(h.BEACONS.PLAYBACK_PROGRESS),this.ng=[]},i.prototype.rg=function(t){this.Xm=this.Xm.concat(t.val),this.Xm=this.fg()},i.prototype.fg=function(){if(this.Xm.length<=0)return this.Xm;for(var t=[this.Xm[0]],i=1;i<this.Xm.length;i++){var n=this.Xm[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.Mn=function(t,i){if(!(this.Ce||c.isNullOrUndefined(t)||t<0||i.playbackMode===a.PlaybackMode.AD))if(c.isNullOrUndefined(this.vt.lastKnownPlaybackTime))this.vt.lastKnownPlaybackTime=t;else{t>0&&this.Nv();var n=t-this.vt.lastKnownPlaybackTime;this.vt.lastKnownPlaybackTime=t,n>0&&(this.$m+=n),this.vg()}},i.prototype.wn=function(){"recovering"===this.Km&&this.dg()},i.prototype.vg=function(){var t=this;h.PROGRESS_BEACON_INTERVALS.forEach((function(i){var n=t.$m,e=t.vt.progressBeaconsInfo.timeLastSent[i.key],r=-1===e?0:e;(i.recurring&&n>r+i.time||!i.recurring&&-1===e&&n>i.time)&&(t.vt.progressBeaconsInfo.timeLastSent[i.key]=Math.floor(n),t.hg(i.beacon))}))},i.prototype.hg=function(t){this.publish(s.VIDEO_PROGRESS,t),this.Jm=Math.floor(this.$m)},i.prototype.ag=function(){this.Xm=[],this.$m=0,this.Jm=0,this.vt.lastKnownPlaybackTime=null,this.vt.resetProgressBeaconsState(),this.Ye=null,this.Km="",this.ig=0},i.prototype.cg=function(){var t;return"recovering"===this.Km?(this.pg(),t=[{buf_dur:this.ig}],this.ig=0):t=this.Xm.splice(0,Math.min(h.MAX_SEG_INFO_ENTRIES_PER_BEACON,this.Xm.length)),{segInfo:JSON.stringify({seg:t}),bufDur:t.reduce((function(t,i){return i.buf_dur+t}),0)}},i.prototype.Nv=function(){this.pg(),this.Ye=null},i.prototype.pg=function(){this.Ye&&(this.ig+=Date.now()-this.Ye,this.Ye=Date.now())},i.prototype.ug=function(){this.Km="",this.Ye=null,this.ng=[]},i.prototype.og=function(t){t&&this.ng.push(t),"recovering"!==this.Km&&(this.Ye=Date.now(),this.tg++,this.Km="recovering",this.hg(h.BEACONS.PLAYBACK_PROGRESS))},i.prototype.dg=function(){this.Km="recovered",this.hg(h.BEACONS.PLAYBACK_PROGRESS),this.ng=[],this.Km="",this.Ye=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.Rm={},!t)throw Error("[InStreamAdAnalytics] Cannot initialize InStreamAdAnalytics. Bad instreamAdManager instance!");this.mg=t,this.Dm()}return t.prototype.destroy=function(){this.mg.destroy(),this.Rm={}},t.prototype.Dm=function(){var t=this,i=e({},s.InstreamAdManagerEvent);Object.keys(i).forEach((function(i){t.Rm[s.InstreamAdManagerEvent[i]]=t.mg.on(s.InstreamAdManagerEvent[i],t.gg,t)}))},t.prototype.gg=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(531),u=n(6342),a=n(9154),c=n(6243),h=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.vm=t,this.yg=!1,this._g=!1,this.jm=[{evt:r.ExternalEvt.VIDEO_REQUEST,cb:this.wg.bind(this,"VIDEO_REQUEST")},{evt:r.ExternalEvt.PLAYBACK_RESUMED,cb:this.wg.bind(this,"PLAYBACK_RESUMED")},{evt:r.ExternalEvt.PLAYBACK_STALLED,cb:this.wg.bind(this,"PLAYBACK_STALLED")},{evt:r.ExternalEvt.PLAYBACK_BLOCKED,cb:this.wg.bind(this,"PLAYBACK_BLOCKED")},{evt:r.ExternalEvt.CTRL_SEEK,cb:this.wg.bind(this,"CTRL_SEEK")},{evt:r.ExternalEvt.CTRL_VOLUME,cb:this.wg.bind(this,"CTRL_VOLUME")},{evt:r.ExternalEvt.CTRL_PLAYPAUSE,cb:this.wg.bind(this,"CTRL_PLAYPAUSE")},{evt:r.ExternalEvt.CTRL_REPLAY,cb:this.wg.bind(this,"CTRL_REPLAY")},{evt:r.ExternalEvt.CTRL_PLAYREQUEST,cb:this.wg.bind(this,"CTRL_PLAYREQUEST")},{evt:r.ExternalEvt.CTRL_SETTINGS,cb:this.wg.bind(this,"CTRL_SETTINGS")},{evt:r.ExternalEvt.CTRL_CUSTOM_ELEMENT,cb:this.wg.bind(this,"CTRL_CUSTOM_ELEMENT")},{evt:r.ExternalEvt.CONTROLS_AUDIO_CHANGE,cb:this.wg.bind(this,"CONTROLS_AUDIO_CHANGE")},{evt:r.ExternalEvt.THREE_SIXTY_INTERACT,cb:this.wg.bind(this,"THREE_SIXTY_INTERACT")},{evt:r.ExternalEvt.RENDERER_READY,cb:this.wg.bind(this,"RENDERER_READY")},{evt:r.ExternalEvt.THREE_SIXTY_PIE_INTERACT,cb:this.wg.bind(this,"THREE_SIXTY_PIE_INTERACT")},{evt:r.ExternalEvt.CC_LANGUAGE_CHANGE,cb:this.wg.bind(this,"CC_LANGUAGE_CHANGE")},{evt:r.ExternalEvt.CC_UPDATE_STYLE,cb:this.wg.bind(this,"CC_UPDATE_STYLE")},{evt:r.ExternalEvt.CC_SETTINGS,cb:this.wg.bind(this,"CC_SETTINGS")},{evt:r.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,cb:this.Og},{evt:r.ExternalEvt.BITRATE_CHANGE,cb:this.Eg},{evt:r.ExternalEvt.UI_INTERACT,cb:this.jg},{evt:r.ExternalEvt.CC_UI_TOGGLE,cb:this.Sg},{evt:r.ExternalEvt.PLAYER_FULLSCREEN_CHANGE,cb:this.Ag},{evt:r.ExternalEvt.PLAYER_PIP_MODE_CHANGE,cb:this.Mg},{evt:r.ExternalEvt.PLAYER_INFO,cb:this.Tg},{evt:r.ExternalEvt.CMS_API_CALLED,cb:this.Ng},{evt:r.ExternalEvt.PLAYER_ERROR,cb:this.An},{evt:r.ExternalEvt.PLAYER_WARNING,cb:this.Ig},{evt:r.ExternalEvt.PLAYBACK_START,cb:this.Rg},{evt:r.ExternalEvt.PLAYBACK_COMPLETE,cb:this.Lg},{evt:r.ExternalEvt.AD_METRICS,cb:this.Cg},{evt:r.ExternalEvt.STREAM_SYNCH_STRATEGY_APPLIED,cb:this.kg},{evt:r.ExternalEvt.STREAM_SYNCH_COMPLETE,cb:this.Dg},{evt:r.ExternalEvt.DATERANGE_ENDED,cb:this.Pg},{evt:r.ExternalEvt.INVALID_SYNC_OFFSET,cb:this.xg}],this.vm&&(this.vt=this.Ug(this.vm),this.Fg=new h.default(this.vm,this.vt),this.Rm={},this.Dm())}return t.prototype.destroy=function(){this.Bg("destroy"),this.vm.removeEventListeners(this.Rm),this.Fg.destroy(),this.vt.destroy(),this.Rm={}},t.prototype.Rg=function(t){var i=this.vm.getPlaybackStartDto();t.ad=this.yg?1:0,t.rsm=i.isResume||"",t.pdtl=this.vt.programDateTimeLatency,this.zg(t,i),this.Vg(t,a.BEACONS.PLAYBACK_START),this.gg(t)},t.prototype.Ug=function(t){return new c.default(t)},t.prototype.Cg=function(t,i){if(t&&t.evt){t.evt=t.evt.toLowerCase(),"ad_dlv"===t.evt&&(this.yg=!0,this.zg(i,this.vm.getPlaybackStartDto())),this.vt.adParams=t;for(var n=["string","number","boolean","undefined"],e=0,r=Object.getOwnPropertyNames(t);e<r.length;e++){var s=r[e];(n.indexOf(typeof t[s])>=0||null===t[s])&&o.isNullOrUndefined(i[s])&&(i[s]=t[s])}var u=t.adReplay;u&&+u>0&&(i.replay=u),i.V_sec="pb",this.gg(i),"ad_comp"===t.evt&&(this.vt.adParams=null)}},t.prototype.Dm=function(){var t=this;window.addEventListener("unload",this.Gg.bind(this)),this.vm.addEventListener(r.ExternalEvt.VIDEO_REQUEST,this.eg,this),this.Fg.addEventListener(h.ProgressEvent.VIDEO_PROGRESS,this.Hg,this),this.jm.forEach((function(i){t.Rm[i.evt]=t.vm.addEventListener(i.evt,t.Yg.bind(t,i),t)}))},t.prototype.Yg=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var e=i.length-1,r=i[e]||{};this.vt.update(r);var s=this.vt.getCommonParams(),u=o.isObject(i[e])?Array.prototype.slice.call(i,0,e):i;t.cb.apply(this,u.concat([s]))},t.prototype.wg=function(t){for(var i=this,n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];var r=t&&a.BEACONS[t]||null,s=n[n.length-1];if(r){var o=Array.prototype.slice.call(n,0,n.length-1),u=r.payloadParams;if(o.length&&u&&u.length===o.length)for(var c=0;c<o.length;c++)s[u[c]]=o[c].toString();else if(u&&u.length)return;r.params&&r.params.forEach((function(t){s[t.key]=i.vt[t.value]})),this.Vg(s,r),this.Fg.updateRecoveryStats(s),s.dur=Math.round(this.Fg.totalWatchTime)||"",this.gg(s)}},t.prototype.gg=function(t){this.qg(t);var i="https://bats.video.yahoo.com/p?"+u.default.querystring(this.Wg(t),"&","=",(function(t){return encodeURIComponent(t).replace(/[!'()]/g,escape).replace(/\*/g,"%2A")}));f.default.sendImageBeacon(i),this.vt.onBeaconSent()},t.prototype.Wg=function(t){var i=t;return l.includes(t.evt)&&(i._V="test"),i},t.prototype.qg=function(t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&t[i]===this.vt.SKIP_PARAM_IN_BEACON&&delete t[i]},t.prototype.eg=function(t,i){this.yg=!1,this._g=!1,this.vt.onVideoRequest(t,i)},t.prototype.Eg=function(t,i,n){this.Vg(n,a.BEACONS.BITRATE_CHANGE),n.value=t.toString(),n.value_e=this.vt.bitrate,n.reason=i.reason||"",n.fr=i.newFrameRate||"",n.fr_old=i.oldFrameRate||"",this.gg(n),this.vt.bitrate=t},t.prototype.Og=function(t,i){t.isInitialEvt||(this.Vg(i,a.BEACONS.AIRPLAY_CONNECTION_STATE_CHANGE),i.value=t.connected?"1":"0",this.gg(i))},t.prototype.jg=function(t,i){this.Vg(i,a.BEACONS.UI_INTERACT),i.evt=["ui_pl_nxt_clk","ui_pl_nxt_hvr","ui_pl_scrl","ui_pl_thmb_clk"].indexOf(t.srcElement)>-1?"ui_pl":i.evt,i.V_slk=t.srcElement,this.gg(i)},t.prototype.Sg=function(t,i,n){this.Vg(n,a.BEACONS.CC_TOGGLE),n.value=t?"1":"0",this.gg(n)},t.prototype.Ag=function(t,i){this.Vg(i,a.BEACONS.FULLSCREEN_CHANGE),i.value=t?"ON":"OFF",this.gg(i)},t.prototype.Mg=function(t,i){},t.prototype.Tg=function(t,i){this.Vg(i,a.BEACONS.PLAYER_INFO),i.ecode=t.rep||"",i.estring=t.debugMessage||t.message||"",this.gg(i)},t.prototype.Ng=function(t,i){var n=f.default.prepareApiInfo(t.url,t.perfObj);this.Vg(i,a.BEACONS.CMS_API_CALLED),i.source=n.source||"na",i.url=n.url||"",i.latency=n.latency||"",i.http_code=n.http_code||"na",i.resp_len=n.resp_len||"na",i.instrument=n.instrument||"",i.perf_info=n.perfInfo||"",i.perf_stack=n.perfStack||"",this.gg(i)},t.prototype.An=function(t,i){t.isRecoverable||(this.Vg(i,a.BEACONS.PLAYER_ERROR),i.ecode=t.rep||"",i.estring=t.debugMessage||t.message||"",i.dur=Math.round(this.Fg.totalWatchTime)||"",this.gg(i),this.Bg("error"))},t.prototype.Ig=function(t,i){this.Vg(i,a.BEACONS.PLAYER_WARNING),this.Fg.updateRecoveryStats(i),i&&(i.ecode=t.rep||"",i.estring=t.debugMessage||t.message||""),this.gg(i)},t.prototype.Lg=function(t,i){this.Qg(a.BEACONS.PLAYBACK_COMPLETE,i)},t.prototype.Gg=function(){this.Bg("unload")},t.prototype.Bg=function(t){this.vt.updateTs(Date.now());var i=this.vt.getCommonParams();i&&(i.ext_resn=t||"na",0===this.vm.getCurrentTime()&&this.Fg.destroy()),this.Qg(a.BEACONS.INCOMPLETE_EXIT,i)},t.prototype.Qg=function(t,i){this._g||(this._g=!0,this.Vg(i,t),i.pdtl=this.vt.programDateTimeLatency,i.alang=this.vt.audioLanguage,this.vt.playbackMode===s.PlaybackMode.AD?this.Zg(i):this.Fg.updatePlaybackStats(i),this.gg(i))},t.prototype.Hg=function(t){var i=this.vt.getCommonParams();this.Vg(i,t),this.Fg.updatePlaybackStats(i),this.gg(i)},t.prototype.kg=function(t,i){this.$g(i,t,a.BEACONS.STREAM_SYNCH_STRATEGY_APPLIED),this.gg(i)},t.prototype.Dg=function(t,i){this.Xg(i,t,a.BEACONS.STREAM_SYNCH_COMPLETE),this.gg(i)},t.prototype.Pg=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.$g(i,n,a.BEACONS.STREAM_SYNCH_DATERANGE_ENDED),this.gg(i)}},t.prototype.xg=function(t){this.Vg(t,a.BEACONS.STREAM_SYNCH_INVALID_OFFSET),this.gg(t)},t.prototype.Jg=function(t){return t&&o.isNumber(t.timeDiff)&&t.timeDiff.toString()||""},t.prototype.Kg=function(t,i){return t&&t.startTime&&i&&(i+t.startTime).toString()||""},t.prototype.ty=function(t,i){return t&&o.isNumber(t.timeDiff)&&i&&o.isNumber(i.timeDiff)?(t.timeDiff-i.timeDiff).toString():this.Jg(t)},t.prototype.Vg=function(t,i){t&&i&&(t.evt=i.evt,t.V_sec=i.type)},t.prototype.$g=function(t,i,n){if(t&&i){i.playbackRate=o.isNumber(i.playbackRate)&&i.playbackRate.toString(),i.bufferLength=o.isNumber(i.bufferLength)&&i.bufferLength.toString();var e=this.vt.synchState;t.evt=n.evt,t.V_sec=n.type,t._V="test",t.syn_mode=i.syncMode||e.syncMode,t.syn_src=i.syncSource||e.syncSource,t.syn_st=i.strategy&&("rateChange"===i.strategy?"pr":i.strategy)||e.strategy,t.syn_t=i.syncDuration||e.syncDuration,t.syn_ps=i.playbackRate||e.playbackRate,t.syn_tl=i.targetLatency||e.targetLatency,t.syn_ll=i.liveLatency||e.liveLatency,t.buf_len=i.bufferLength||e.bufferLength,t.syn_os=i.synchOffset||e.synchOffset,t.ntp_t=Date.now(),t.sys_t=Date.now(),t.syn_pdt=this.vm.getCurrentDate(),i.startDate&&(t.dr_start=i.startDate),i.contentDate&&(t.dr_ct=i.contentDate),this.vt.updateSynchState(i)}},t.prototype.Xg=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.Zg=function(t){var i=this.vm.getCurrentTime(),n=this.vt.adParams&&this.vt.adParams.pos,e=this.vt.adParams&&this.vt.adParams.dur||null;t.pos=n||"ad",t.dur=i>0?Math.floor(i):0,t.dur_d=o.isNumber(e)&&i>e&&Math.floor(i-e)||0,t.buff_info="",t.buf_dur=0},t.prototype.zg=function(t,i){t.apallwd=i.autoPlayAllowed||"",t.jsdt=this.vt.jsdt,t.cssdt=this.vt.cssdt,t.req_type=this.vt.requestType||"",t.req_action=this.vt.requestAction||"",t.apl=this.ty(i.autoPlayLatency,i.deferringPlaybackLatency),t.bgl=this.Jg(i.deferringPlaybackLatency),t.s_apl=this.Kg(i.autoPlayLatency,i.initTime),t.ucl=this.Jg(i.clickToPlayLatency),t.tpb=this.Jg(i.playbackStartLatency),t.s_tpb=this.Kg(i.playbackStartLatency,i.initTime),t.tmeta_call=this.Jg(i.cmsLatency),t.s_tsapic=this.Kg(i.cmsLatency,i.initTime),t.tsrc_call=this.Jg(i.cmsSourceLatency),t.s_tssrcapic=this.Kg(i.cmsSourceLatency,i.initTime),t.tadp=this.Jg(i.adPluginLatency),t.s_tadpc=this.Kg(i.adPluginLatency,i.initTime),t.strml=this.Jg(i.streamReqToRenderLatency),t.s_strml=this.Kg(i.streamReqToRenderLatency,i.initTime),t.tadbetce=this.Jg(i.adBreakEndToClientEnd),t.tadcetrr=this.Jg(i.adClientEndToRendererReady),t.trrtpbs=this.Jg(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.104-pr1536.b39163349",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},a=function(){function t(){this.version="0.3.104-pr1536.b39163349",this.mimetype=r.MediaItemMimeType.UPLYNK,this.type=s.PluginType.METADATA,this.iy=[],this.ny={},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.ey(t,i,r,n)}))}));this.sy=!1;var s=function(){e.sy=!0};this.iy.push(s),Promise.all(r).then((function(t){e.sy||(e.oy(s),n.onComplete(t))})).catch((function(t){if(!e.sy){e.oy(s);var i={code:"1",message:t.toString()};n.onError(i)}}))}},t.prototype.recover=function(t,i,n){},t.prototype.cancel=function(){this.iy.forEach((function(t){t()})),this.iy=[]},t.prototype.destroy=function(){this.cancel()},t.prototype.ey=function(t,i,n,e){var s=this,o=t.id,a=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=t&&t.length?t[0]:null,o=t.length?t[4]:null,u=t.length?t[5]:null;s.sy||e.onApiCallInfo({url:u&&u.url||null,perfObj:o}),n(r)},c=function(n,r,a,c){t.metadata=t.metadata||{},t.metadata.title=n.meta&&n.meta.title||n.desc||u.title,t.metadata.description=n.desc||u.description,t.metadata.posterUrl=n.poster_url||u.posterUrl,t.metadata.thumbnail=n.poster_url||u.thumbnail,t.metadata.duration=n.duration||u.duration,t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/uplynk"},t.visualSeekData.assetInfo={maxSlice:n.max_slice,sliceDuration:n.slice_dur,thumbPrefix:n.thumb_prefix,thumbs:n.thumbs},s.ny[o]=!0,s.sy||e.onApiCallInfo({url:c&&c.url||null,perfObj:a}),i(t)};!function(){var n=t.metadata;if(!n||n.type!==r.MediaItemType.LIVE_CHANNEL&&n.type!==r.MediaItemType.LIVE_EVENT||s.uy(t),s.hy(t)||s.ny[o])return i(t);s.ly(t,c,a)}()},t.prototype.ly=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.vy(r,i,n)},t.prototype.vy=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.oy(s),i.apply(void 0,t)},failureHandler:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];r.oy(s),n.apply(void 0,t)},withCookie:!1,responseTypeJson:!0,collectPerfData:!0});this.iy.push(s)},t.prototype.oy=function(t){if(t){var i=this.iy.indexOf(t);i>=0&&this.iy.splice(i,1)}},t.prototype.uy=function(t){for(var i in t.metadata=t.metadata||{},u)void 0===t.metadata[i]&&(t.metadata[i]=u[i])},t.prototype.hy=function(t){return!(!t||!t.metadata||void 0===t.metadata.title||void 0===t.metadata.description||void 0===t.metadata.thumbnail||void 0===t.metadata.posterUrl||void 0===t.metadata.duration)},t}();i.default=a},1032:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(660),r=n(3872),s=n(8103),o=n(3755),u=n(6120),a=n(1279),c=n(531),h="content.uplynk.com",f={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{playURL:{type:"string"}},required:["playURL"]},l=function(){function t(){this.version="0.3.104-pr1536.b39163349",this.mimetype=u.MediaItemMimeType.UPLYNK,this.type=a.PluginType.SOURCE_METADATA,this.iy=[],this.py={},this.by=!1,this.sy=!1,r.Loader.preconnect("preconnect-uplynk","//"+h)}return t.prototype.prepare=function(){},t.prototype.resolve=function(t,i,n){var e=this;if(Array.isArray(t)&&0!==t.length){this.py=this.my(i.privacyConsent);var r=t.map((function(t){return new Promise((function(i,r){e.ey(t,i,r,n)}))}));this.sy=!1;var s=function(){e.sy=!0};this.iy.push(s),Promise.all(r).then((function(t){e.sy||(e.oy(s),n.onComplete(t))})).catch((function(t){if(!e.sy){e.oy(s);var i={code:"1",message:t.toString()};n.onError(i)}})),this.by=!1}},t.prototype.recover=function(t,i,n){t&&(this.by=!0,this.resolve([t],i,n))},t.prototype.cancel=function(){this.iy.forEach((function(t){t()})),this.iy=[]},t.prototype.destroy=function(){this.cancel()},t.prototype.ey=function(t,i,n,r){var s=this;this.gy(t)&&!this.by?i(t):this.yy(t,(function(o,a,c,h){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._y(o.ads.breaks,o.ads.breakOffsets),t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/uplynk"},t.visualSeekData.adBreaks=t.adBreaks),s.sy||r.onApiCallInfo({url:h&&h.url||null,perfObj:c}),i(t)}),(function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var e=t&&t.length?t[0]:null,o=t.length?t[4]:null,u=t.length?t[5]:null;s.sy||r.onApiCallInfo({url:u&&u.url||null,perfObj:o}),n(e)}))},t.prototype.yy=function(t,i,n){var e="/api/v3/preplay/{assetid}.json",r=t.metadata;r&&r.type===u.MediaItemType.LIVE_CHANNEL?e="/api/v3/preplay/channel/{assetid}.json":r&&r.type===u.MediaItemType.LIVE_EVENT&&(e="/api/v3/preplay/event/{assetid}.json");var s=t.customConfig||{},o="https://"+h+e.replace("{assetid}",t.id)+(s.preplay&&s.preplay.qs?"?"+s.preplay.qs:"");this.vy(o,i,n)},t.prototype.vy=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.oy(s),i.apply(void 0,t)},failureHandler:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e.oy(s),n.apply(void 0,t)},withCookie:!1,responseTypeJson:!0,collectPerfData:!0});this.iy.push(s)},t.prototype.oy=function(t){if(t){var i=this.iy.indexOf(t);i>=0&&this.iy.splice(i,1)}},t.prototype.gy=function(t){return!!(t.source&&t.source.streams&&t.source.streams.length)},t.prototype._y=function(t,i){var n=this;return t.map((function(t){var e=i&&i.find((function(i){if(i&&i.timeOffset===t.timeOffset)return!0}))||{};return{id:t.breakId||"",duration:t.duration||0,type:s.AdBreakType.LINEAR,offset:n.wy(t.position),adBreakItems:n.Oy(t.ads),customInfo:{index:e.index},active:!1,replay:t.replay||0}}))},t.prototype.Oy=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.wy=function(t){return"preroll"===t?s.AdBreakOffset.PRE:"postroll"===t?s.AdBreakOffset.POST:null},t.prototype.my=function(t){return{gdpr:t&&!c.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(531),u=n(6342),a=n(4180),c=function(){function t(){this.version="0.3.104-pr1536.b39163349",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.Ey(t,i),r=document.createElement("div");return r.innerHTML=a.render({items:e,strings:n}),Array.prototype.slice.call(r.children)},t.prototype.jy=function(t){return t&&o.isNumber(t)?u.default.formatTime(t):""},t.prototype.Sy=function(t){var i=e.userAgent.chrome>43;return t?t.length>40&&!i?t.substring(0,40)+"...":t:""},t.prototype.Ay=function(t,i){return t===r.PLAYLIST_POS.RIGHT&&i&&i.branding&&i.branding.providerName?i.branding.providerName:""},t.prototype.Ey=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.Sy(i.metadata.title),thumbnail:i.metadata.thumbnail,duration:n.jy(i.metadata.duration),provider:n.Ay(t,i.brandingData)})})),e},t}();i.default=c},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(531),s=n(6342),o=function(){function t(){this.version="0.3.104-pr1536.b39163349",this.type=e.PluginType.VISUAL_SEEK,this.mimetype="visualseek/uplynk",this.My={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this.My={}},t.prototype.canSeek=function(t){return t&&!!this.My[t]},t.prototype.update=function(t,i){var n=this.My[t]||{};n.assetInfo=i&&i.assetInfo||n.assetInfo,n.adBreaks=i&&i.adBreaks||n.adBreaks,this.My[t]=n},t.prototype.getThumbnailData=function(t,i,n){if(!r.isString(t)||!r.isNumber(i))return null;var e=this.My[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.My[t].assetInfo,r=e.thumbPrefix,o=this.getThumbInfo(t,n),u=i,a=Math.floor(u/e.sliceDuration);a=Math.min(a,e.maxSlice);var c=s.default.decimalToHexString(a,8,"0");return r+o.prefix+c+".jpg"},t.prototype.getWidth=function(t,i){return this.getThumbInfo(t).width},t.prototype.getHeight=function(t,i){return this.getThumbInfo(t).height},t.prototype.getThumbInfo=function(t,i){void 0===i&&(i=128);var n=this.My[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),a=n(6120);i.MediaItemInterfaces=a;var c=n(1279);i.Plugin=c;var h=n(4685);Object.defineProperty(i,"RendererType",{enumerable:!0,get:function(){return h.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},c.AdPluginEvent=u.AdPluginEvent,c.AdPluginPlaybackCapability=u.AdPluginPlaybackCapability,window.YAHOO=window.YAHOO||{},window.YAHOO.CorePlayer=window.YAHOO.CorePlayer||{},window.YAHOO.CorePlayer.Player=f.default,window.YAHOO.CorePlayer.Plugin=c,window.YAHOO.CorePlayer.Event=s.ExternalEvt;var l={CoreAnalytics:r.default,AnalyticsModel:e.default};i.Analytics=l},9987:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(4685),r=n(6342),s=function(){function t(t){this.un=t}return t.prototype.getCurrentAdBreak=function(){var t=this.un.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.un=t}return t.prototype.play=function(t,i){void 0===t&&(t=0),this.un.getPlaybackState()===r.States.INIT&&t>0&&t<this.getDuration()&&(this.un.startTime=t),this.un.play(this.Ty(i,e.REQUEST_TYPES.PLAY))},t.prototype.pause=function(t){this.un.pause(this.Ty(t,e.REQUEST_TYPES.PAUSE))},t.prototype.preload=function(){this.un.preload()},t.prototype.seek=function(t){this.un.seek(t)},t.prototype.disableControls=function(){this.un.disableControls()},t.prototype.enableControls=function(){this.un.enableControls()},t.prototype.enableCC=function(t){this.un.enableCC(t)},t.prototype.disableCC=function(){this.un.disableCC()},t.prototype.isPlayMode=function(){return this.un.isPlayMode()},t.prototype.getPlaybackState=function(){return this.un.getPlaybackState()},t.prototype.isLoading=function(){return this.un.isLoading()},t.prototype.getDuration=function(){return this.un.duration},t.prototype.getRawDuration=function(){return this.un.rawDuration},t.prototype.getCurrentTime=function(){return this.un.currentTime},t.prototype.getRawCurrentTime=function(){return this.un.rawCurrentTime},t.prototype.getTimeRemaining=function(){return this.getDuration()-this.getCurrentTime()},t.prototype.setFullscreen=function(t){this.un.fullscreen=t},t.prototype.getFullscreen=function(){return this.un.fullscreen},t.prototype.setVolume=function(t,i){void 0===i&&(i=!1),t=(t=t<0?0:t)>1?1:t,this.un.setVolume(t,i)},t.prototype.getVolume=function(){return this.un.volume},t.prototype.setMute=function(t){this.un.mute=t},t.prototype.getMute=function(){return this.un.mute},t.prototype.setLoop=function(t){this.un.loop=t},t.prototype.setContinuousPlay=function(t){this.un.continuousPlay=t},t.prototype.resumeContinuousPlay=function(){this.un.resumeContinuousPlay(this.Ty(null,e.REQUEST_TYPES.CONTINUOUS))},t.prototype.getCurrentDate=function(){return this.un.currentDate},t.prototype.setAudioLanguage=function(t){},t.prototype.Ty=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_PLAYBACK_STARTED="adBreakItemPlaybackStarted",t.AD_PLAYBACK_ENDED="adBreakItemEnded",t.AD_BREAK_ITEM_ERROR="adBreakItemError",t.AD_BREAK_ITEM_SKIPPED="adBreakItemSkipped",t.AD_CLICKED="adBreakItemClicked",t.AD_BREAK_STARTED="adBreakStarted",t.AD_METRICS="adMetrics",t.AIRPLAY_AVAILABILITY_CHANGE="airplayAvailabilityChange",t.AIRPLAY_CONNECTION_STATE_CHANGE="airplayConnectionStateChange",t.BEACON_SEND="beaconSend",t.BITRATE_CHANGE="bitrateChange",t.BUFFERING_START="bufferingStart",t.BUFFERING_END="bufferingEnd",t.CAST_AVAILABILITY_CHANGE="castAvailabilityChange",t.CAST_CONNECTED_STATE_CHANGE="castConnectedStateChange",t.CC_AVAILABLE="mediaItemCcAvailable",t.CC_UI_TOGGLE="ccUiToggle",t.CC_LANGUAGE_CHANGE="ccLanguageChange",t.CC_UPDATE_STYLE="ccUpdateStyle",t.CC_SETTINGS="ccSettings",t.CMS_API_CALLED="cmsApiCalled",t.CONTROLS_AUDIO_CHANGE="controlsAudioChange",t.CTRL_PLAYPAUSE="ctrlPlayPause",t.CTRL_SEEK="ctrlSeek",t.CTRL_VOLUME="ctrlVolume",t.CTRL_SETTINGS="ctrlSettings",t.CTRL_CUSTOM_ELEMENT="ctrlCustomElem",t.CTRL_PLAYREQUEST="ctrlPlayRequest",t.CTRL_REPLAY="ctrlReplay",t.CUEPOINT_STARTED="cuepointStarted",t.CUEPOINT_STOPPED="cuepointStopped",t.CUEPOINT_DETECTED="cuepointDetected",t.DURATION_CHANGE="durationChange",t.KEY_CHANGE_VOLUME="keyChangeVolume",t.LOADING_BEGIN="loadingBegin",t.LOADING_END="loadingEnd",t.MARKERS_RECEIVED="markersReceived",t.MEDIA_ITEM_ADDED="mediaItemAdded",t.MEDIA_ITEM_CURRENT="mediaItemCurrent",t.MEDIA_ITEM_COMPLETE="mediaItemComplete",t.MEDIA_ITEM_ERROR="mediaItemError",t.MEDIA_ITEM_METADATA="mediaItemMetadata",t.MEDIA_ITEM_NEED_SOURCE="mediaItemNeedSource",t.MEDIA_ITEM_REMOVED="mediaItemRemoved",t.METADATA_READY="metadataReady",t.MULTI_AUDIO_AVAILABLE="multiAudioAvailable",t.NIELSEN_REQUIRED="nielsenRequired",t.PLAYBACK_COMPLETE="playbackComplete",t.PLAYBACK_STOPPED="playbackStopped",t.PLAYBACK_ERROR="playbackError",t.PLAYBACK_PAUSE="playbackPause",t.PLAYBACK_BLOCKED="playbackBlocked",t.PLAYBACK_PROGRESS="playbackProgress",t.PLAYBACK_READY="playbackReady",t.PLAYBACK_REQUEST="playbackRequest",t.PLAYBACK_RESUMED="playbackResumed",t.PLAYBACK_SEEK_COMPLETE="playbackSeek",t.PLAYBACK_SEEKING="playbackSeeking",t.PLAYBACK_START="playbackStart",t.PLAYBACK_STALLED="playbackStalled",t.PLAYBACK_TIME_UPDATE="playbackTimeUpdate",t.PLAYBACK_PLAYING="playbackPlaying",t.PLAYBACK_TIMEOUT="playbackTimeout",t.PLAYER_DOCKED_CHANGE="playerDockedChange",t.PLAYER_DIMENSION_CHANGE="playerDimensionChange",t.PLAYER_ERROR="playerError",t.PLAYER_FULLSCREEN_CHANGE="fullscreenChange",t.PLAYER_PIP_MODE_CHANGE="pipModeChange",t.PLAYER_INFO="playerInfo",t.PLAYER_MUTE_CHANGE="muteChange",t.PLAYER_READY="playerReady",t.PLAYER_RENDERED="render",t.PLAYER_VIEWPORT_CHANGE="playerViewportChange",t.PLAYER_VOLUME_CHANGE="volumeChange",t.PLAYER_WARNING="playerWarning",t.PLAYLIST_POSITION_CHANGE="playlistPositionChange",t.PLAYLIST_COMPLETE="playlistComplete",t.RECOVERY_START="recoveryStart",t.RECOVERY_DISABLED="recoveryDisabled",t.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 a=((e={})[s.AD_BREAK_ENDED]=o.AD_BREAK_ENDED,e[s.AD_CLICKED]=o.AD_CLICKED,e[s.AD_PLAYBACK_STARTED]=o.AD_PLAYBACK_STARTED,e[s.AD_PLAYBACK_ENDED]=o.AD_PLAYBACK_ENDED,e[s.AD_BREAK_STARTED]=o.AD_BREAK_STARTED,e[s.AD_METRICS]=o.AD_METRICS,e[s.CC_LANGUAGE_CHANGE]=o.CCEvent.LANGUAGE_CHANGE,e[s.CC_SETTINGS]=o.CCEvent.SETTINGS,e[s.CC_UI_TOGGLE]=o.CCEvent.UI_TOGGLE,e[s.CC_UPDATE_STYLE]=o.CCEvent.UPDATE_STYLE,e[s.CMS_API_CALLED]=o.API_CALLED,e[s.CONTROLS_AUDIO_CHANGE]=o.CONTROLS_AUDIO_CHANGE,e[s.CTRL_PLAYPAUSE]=o.CTRL_PLAYPAUSE,e[s.CTRL_PLAYREQUEST]=o.CTRL_PLAYREQUEST,e[s.CTRL_REPLAY]=o.CTRL_REPLAY,e[s.CTRL_SEEK]=o.CTRL_SEEK,e[s.CTRL_SETTINGS]=o.CTRL_SETTINGS,e[s.CTRL_VOLUME]=o.CTRL_VOLUME,e[s.MEDIA_ITEM_ADDED]=o.MEDIA_ITEM_ADDED,e[s.MEDIA_ITEM_CURRENT]=o.MEDIA_ITEM_CURRENT,e[s.MEDIA_ITEM_COMPLETE]=o.MEDIA_ITEM_COMPLETE,e[s.MEDIA_ITEM_ERROR]=o.MEDIA_ITEM_ERROR,e[s.MEDIA_ITEM_METADATA]=o.MEDIA_ITEM_METADATA,e[s.MEDIA_ITEM_NEED_SOURCE]=o.MEDIA_ITEM_NEED_SOURCE,e[s.MEDIA_ITEM_REMOVED]=o.MEDIA_ITEM_REMOVED,e[s.METADATA_READY]=o.METADATA_AVAILABLE,e[s.MULTI_AUDIO_AVAILABLE]=o.MULTI_LANGUAGES_AVAILABLE,e[s.PLAYBACK_COMPLETE]=o.PLAYBACK_COMPLETE,e[s.PLAYBACK_STOPPED]=o.PLAYBACK_STOPPED,e[s.PLAYBACK_PAUSE]=u.VideoEvent.PAUSE,e[s.PLAYBACK_BLOCKED]=u.VideoEvent.BLOCKED,e[s.PLAYBACK_PROGRESS]=o.PLAYBACK_PROGRESS,e[s.PLAYBACK_REQUEST]=o.PLAYBACK_REQUEST,e[s.PLAYBACK_RESUMED]=o.PLAYBACK_RESUMED,e[s.PLAYBACK_SEEKING]=u.VideoEvent.SEEKING,e[s.PLAYBACK_START]=o.PLAYBACK_STARTED,e[s.PLAYBACK_STALLED]=o.PLAYBACK_STALLED,e[s.PLAYBACK_TIME_UPDATE]=u.VideoEvent.TIMEUPDATE,e[s.PLAYBACK_PLAYING]=u.VideoEvent.PLAYING,e[s.PLAYER_DIMENSION_CHANGE]=o.PLAYER_DIMENSION_CHANGE,e[s.PLAYER_ERROR]=o.INTERNAL_ERROR,e[s.PLAYER_FULLSCREEN_CHANGE]=o.FULLSCREEN_CHANGE,e[s.PLAYER_PIP_MODE_CHANGE]=o.PIP_MODE_CHANGE,e[s.PLAYER_INFO]=o.INTERNAL_INFO,e[s.PLAYER_WARNING]=o.WARNING,e[s.RECOVERY_START]=o.RECOVERY_START,e[s.RECOVERY_DISABLED]=o.RECOVERY_DISABLED,e[s.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),c=function(){function t(t,i,n){this.vm=t,this.un=i,this.$b=n,Object.keys(s).forEach((function(t){var i=s[t];a[i]||(a[i]=i)}))}return t.prototype.enablePublish=function(){var t=this;Object.keys(a).forEach((function(i){var n=a[i];t.$b.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.un&&t.un.getEventsDto()||{};s.push(o),setTimeout((function(){var n;(n=t.vm).publish.apply(n,r([i],s))}))}),t)}))},t.prototype.getAllExternalEvtNames=function(){return Object.keys(a)},t}();i.ExternalEvtAPI=c},726:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(t){this.un=t,this.Ny=this.un.getPlaylist()}return t.prototype.getMediaItems=function(){return this.Ny.getItems()},t.prototype.removeAllMediaItems=function(){var t=this.Ny.size;this.Ny.removeItems(0,t)},t.prototype.removeMediaItems=function(t){var i=this;t.forEach((function(t){var n=i.Ny.getItemPosition(t.id);i.Ny.removeItems(n,1)}))},t.prototype.insertMediaItems=function(t,i){if(Array.isArray(t)){for(var n=this.Iy(t),e=i,r=0,s=t;r<s.length;r++){var o=s[r];this.Ny.addItemAtIndex(o,e),e++}n&&this.un.fetchMetadata()}},t.prototype.appendMediaItems=function(t){if(Array.isArray(t)){var i=this.Iy(t);this.Ny.addItems(t),i&&this.un.fetchMetadata()}},t.prototype.getCurrentMediaItem=function(){return this.Ny.getCurrentItem()},t.prototype.getMediaItemMarkers=function(t){var i=this.un.mediaStore.getById(t);return i&&i.getMarkers()},t.prototype.setCurrentMediaItem=function(t){if(this.un.mediaStore.get(t.id)){var i=this.Ny.getItemPosition(t.id);this.Ny.setPosition(i)}else this.Ny.addItems([t]),this.un.fetchMetadata(),this.Ny.setPosition(this.Ny.size-1)},t.prototype.setMediaItemTitle=function(t,i){var n=this.Ny.getMediaItemById(t);n&&(n.title=i)},t.prototype.Iy=function(t){var i=this.un.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.un=t}return t.prototype.getSize=function(){return this.Ry().length},t.prototype.getPosition=function(){var t=this.un.getPlaylist();return t?t.position:null},t.prototype.sendPrefetchInfo=function(t){return this.un.sendPrefetchInfo(t)},t.prototype.setPosition=function(t){this.Ly(t,"setPosition");var i=this.un.autoplay,n=i?{type:e.REQUEST_TYPES.API,action:e.REQUEST_TYPES.AUTOPLAY}:null;this.un.setPlaylistPosition(t,i,n)},t.prototype.setPositionById=function(t){var i=this.Cy(t,"setPositionById"),n=this.un.autoplay,r=n?{type:e.REQUEST_TYPES.API,action:e.REQUEST_TYPES.AUTOPLAY}:null;this.un.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.un.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.un.fetchMetadata(e)}},t.prototype.setItems=function(t){this.addItems(t,!0)},t.prototype.getItems=function(){return this.ky()?this.ky().slice(0):null},t.prototype.getItemId=function(t){return this.Ly(t,"getItemId"),this.ky()[t]},t.prototype.getCurrentItemId=function(){var t=this.un.getCurrentMediaItem();return t?t.id:null},t.prototype.getCurrentItem=function(){var t=this.un.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.un.getCurrentMediaItem();return t&&t.videoMarkers||null},t.prototype.getItem=function(t){return this.Ly(t,"getItem"),this.getItemById(this.ky()[t])},t.prototype.getItemById=function(t){var i=this,n=this.un.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.ky().indexOf(t)},t.prototype.removeItem=function(t){this.Ly(t,"removeItem"),this.un.removePlaylistItems(t,1)},t.prototype.removeItems=function(t,i){var n=this.Ry();if(!(t in n)||!(t+i-1 in n))throw new Error("removeItems called with invalid position/count");this.un.removePlaylistItems(t,i)},t.prototype.removeItemById=function(t){var i=this.Cy(t,"removeItemById");this.un.removePlaylistItems(i,1)},t.prototype.removeItemsById=function(t){var i=this;t.forEach((function(t){i.removeItemById(t)}))},t.prototype.clear=function(){this.un.removePlaylistItems(0,this.Ry().length)},t.prototype.Ry=function(){return this.un.getPlaylistItems()},t.prototype.ky=function(){return this.un.getPlaylistItemIds()},t.prototype.Ly=function(t,i){if(!(t in this.Ry()))throw new Error(i+" called with invalid position")},t.prototype.Cy=function(t,i){var n=this.ky().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),a=Math.floor((Math.pow(2,33)-1)/90),c=/\r\n|\r|\n/,h=" --\x3e ",f=function(){function t(){}return t.parse=function(t,i,n){return void 0===i&&(i=0),void 0===n&&(n=!1),null},t}();i.default=f;var l=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.parse=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var e=[],r=t.split(c);try{if(r.length<=1)throw new Error("Invalid SRT document: no data found");var s=void 0,u=void 0,a=void 0,f=void 0,l=0;for(s=0;s<r.length;s++){var v={},d=f=+(u=r[s]);if(""!==u)if(!isNaN(d)&&l<d)if(-1!==(u=r[++s]).indexOf(h)){if(a=u.split(h),v.begin=a[0].trim(),v.end=a[1].trim(),(u=r[++s])&&""!==u){v.text=u,r[s+1]&&""!==r[s+1]&&(v.text+="<br />"+r[s+1],s++);var p=v.begin,b=void 0;for(v.end?b=v.end:v.dur&&(b=p+v.dur),e.push({begin:o.default.formatTime(p),end:o.default.formatTime(b),text:v.text});""!==r[s]&&s<r.length;)s++;l=f}}else for(;""!==r[s]&&s<r.length;)s++;else for(;""!==r[s]&&s<r.length;)s++}}catch(t){}return e},i}(f);i.SRTParser=l;var v=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.parse=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);for(var e,r,s,h,f=t.split(c),l=f.length,v=/((?:\d{2,}:)?\d{2}:\d{2}\.\d{2,3})\s+.+\s+((?:\d{2,}:)?\d{2}:\d{2}\.\d{2,3})/,d=[],p=0,b=0,m=0;m<l;m++)if(v.test(f[m])){if(b>0){for(s=f[r=m-1]&&f[r].trim(),h=f[r-1]&&f[r-1].trim(),""!==s&&""===h&&r--,e=b;e<=r;e++)d[p].text+=f[e]+(e+1<=r?"<br/>":"");p++}var g=f[m].match(v);if(!g)continue;!n||this.Dy||u.userAgent.tizen||(this.Dy=1e3*o.default.formatTime(g[1]));var y=1e3*o.default.formatTime(g[1]),_=1e3*o.default.formatTime(g[2]);n&&!u.userAgent.tizen?(y-=this.Dy,_-=this.Dy):(y=y%a+i,_=_%a+i),d[p]={begin:y/1e3,end:_/1e3,text:""},b=m+1;for(var w=[],O=f[m].split(/\s+/).filter((function(t){return t.length>0})),E=3;E<O.length;E++)w.push(O[E]);w.length>0&&(d[p].settings=w)}if(b>0&&b<l)for(e=b;e<l;e++)d[p].text+=f[e]+(e+2<l?"<br/>":"");return d},i}(f);i.VTTParser=v;var d=function(){function t(){}return t.getParser=function(t){switch(t){case s.CaptionsFormats.srt:return l;case s.CaptionsFormats.vtt:return v;default:return null}},t}();i.CCParserFactory=d},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),a=n(9451),c=n(1962),h=n(4685),f=n(3872),l=n(531),v=n(9539),d=n(1958),p=n(1603),b="en-us";!function(t){t.srt="srt",t.vtt="vtt"}(s=i.CaptionsFormats||(i.CaptionsFormats={})),function(t){t.CC_AVAILABILITY_UPDATE="ccAvailabilityUpdate",t.CC_LIST_FETCHED="ccListFetched",t.CC_LIST_FETCHED_MOBILE="ccListFetchedMobile"}(o=i.CCControllerEvent||(i.CCControllerEvent={}));var m=function(t){function i(i,n,e){var r=t.call(this,"CC Controller")||this;return r.Py={},r.xy=null,r.Uy=null,r.Fy=[],r.By=null,r.zy=!1,r.$b=i,r.vt=n,r.Vy=r.Gy(),r.$b.addEventListener(c.VTT_SEGMENT_LOADED,r.Hy,r),r.Yy(),r.qy=new p.default(e,r.vt,r.Py),r}return r(i,t),i.prototype.onMediaItemLoaded=function(t){if(t&&(this.Uy&&this.Uy.id!==t.id&&delete this.Py[this.Uy.id],this.Uy=t,this.Wy=t.isLive(),!this.Py[t.id])){var i={ccAvailable:!1,vttPresent:!1,parsedCaptions:null};this.Py[t.id]=i,this.Qy(t)?(i.vttPresent=!0,this.Zy(!0)):(i.ccAvailable=!0,i.vttPresent=!1,this.By=null,this.publish(o.CC_AVAILABILITY_UPDATE,!0),this.$y(t.closedCaptions))}},i.prototype.destroy=function(){this.Py=null},i.prototype.toggleFromUI=function(t,i){t?this.enable(null,i):this.disable(i)},i.prototype.onAdPlaybackStarted=function(t){var i=this;a.userAgent.tv||window.setTimeout((function(){i.xy=t}),0)},i.prototype.onPlaybackProgress=function(t,i,n){var e,r=(null===(e=this.Uy)||void 0===e?void 0:e.id)||null;r&&!this.xy&&(this.Wy?this.Xy(r,i):this.Jy(r,i,n))},i.prototype.onAdSubtitleTrackAdded=function(t){var i=this;this.Py[t.itemId]={ccAvailable:!1,vttPresent:!1,parsedCaptions:null},this.Fy.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.Ky(t.track,(function(n){i.By=i.t_(t.track.lang),i.By.ccAvailable=!0,i.qy.updateCCVisibility(!0),i.Py[t.itemId]=i.By,i.i_(),i.n_({show:!0,lang:i.By.lang},!1),i.enable(t.track.lang)}))},i.prototype.onSubtitleTrackReceived=function(t){if(t&&t.itemId){var i=t.itemId,n=this.Py[i];n||(n={ccAvailable:!1,vttPresent:!1,parsedCaptions:null,tracks:[]},this.Py[i]=n);var e=t.track;e&&(e.mode="hidden",n.ccAvailable=!0,n.tracks||(n.tracks=[]),n.tracks.push(e));var r=this.vt.getItemId();r&&r===i&&this.i_()}},i.prototype.onAdPlaybackProgress=function(t){var i=t.currentTime,n=t.duration;if(this.xy){var e=this.xy.adId||this.xy.id||null;e&&this.Jy(e,i,n)}},i.prototype.onAdBreakEnded=function(){this.e_()||this.Zy(!0),this.r_()},i.prototype.r_=function(){this.xy=null,this.e_()&&this.i_()},i.prototype.onMediaItemPlaybackStarted=function(){this.r_()},i.prototype.onMediaItemPlaybackEnded=function(){this.disable()},i.prototype.onLanguageChange=function(t){this.enable(t,!0)},i.prototype.updateCCStyle=function(){var t;null===(t=this.qy)||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.vt.getItemId(),r=e?this.Py[e]:null;if(!r||!r.ccAvailable)return!1;var s=function(){var e=r.tracks||[];return!(!e||e.length<1)&&(n.s_=n.o_(r,t),!!n.s_&&(e.forEach((function(t){t===n.s_?t.mode="showing":t.mode="hidden"})),n.n_({show:!0,lang:n.s_.language},i),!0))};if(r.vttPresent||a.userAgent.ios){if(this.qy.updateCCVisibility(!0),this.qy.updateCCLiveView(this.Wy),r&&r.hasNonNativeCC)return this.n_({show:!0,lang:b},i),!0;var u=s();return u||this.publish(o.CC_AVAILABILITY_UPDATE,!1),u}return this.By=this.u_(t),!(!a.userAgent.desktop&&!a.userAgent.android)&&(this.Ky(this.By,(function(t){var e,o;t?(r.parsedCaptions=null===(e=n.By)||void 0===e?void 0:e.parsedCC,n.qy.updateCCVisibility(!0),n.n_({show:!0,lang:null===(o=n.By)||void 0===o?void 0:o.lang},i)):s()})),!0)},i.prototype.disable=function(t){void 0===t&&(t=!1);var i=this.a_(),n=i?this.Py[i]:null;return this.n_({show:!1},t),this.Wy&&!this.vt.playbackState.ad||!n||n.vttPresent||(n.parsedCaptions=null),n&&n.tracks&&n.tracks.forEach((function(t){t.mode="hidden"})),this.qy.updateCCVisibility(!1),!0},i.prototype.ccPositionFloat=function(t){this.qy.floatCCPosition(t)},i.prototype.adjustCCSizeToScreen=function(t){this.qy.adjustCCSizeToScreen(t)},i.prototype.u_=function(t){var i=this.t_(t);return i||(i=this.t_(this.Vy.lang)),!i&&this.Fy.length&&(i=this.Fy[0]),i},i.prototype.Gy=function(){var t=this.vt.ccUserPreferences||{},i=d.default.getCCSettingsFromLocalStorage("ccSettings");if(!i)return t;for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&!l.isNullOrUndefined(i[n])&&(t[n]=i[n]);return t},i.prototype.Yy=function(){this.vt.ccOnMute&&this.vt.mute&&(this.zy=!0)},i.prototype.c_=function(){var t,i=[b];return(null===(t=this.Fy)||void 0===t?void 0:t.length)&&(i=this.Fy.map((function(t){return t.lang}))),i},i.prototype.i_=function(){var t,i,n=this.c_(),e=this.a_(),r=e?this.Py[e]:null,s=(null===(t=this.By)||void 0===t?void 0:t.lang)||this.Vy.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.s_)||void 0===i?void 0:i.language)||this.Vy.lang)}this.publish(o.CC_LIST_FETCHED,{langList:n,selectedLang:s}),this.qy.updateClosedCaptionButtonState(this.h_()),this.publish(o.CC_AVAILABILITY_UPDATE,!0),this.h_()&&this.enable()},i.prototype.h_=function(){return this.Vy.show||this.zy},i.prototype.a_=function(){var t,i,n=this.vt.playbackState;return n&&n.playingItem&&n.playingItem.adBreakItemId?t=n.playingItem.adBreakItemId:(i=this.vt.playlist.getCurrentItem())&&(t=i&&i.id),t},i.prototype.t_=function(t){for(var i,n,e=null==t?void 0:t.toLowerCase().replace("_","-"),r=0,s=this.Fy;r<s.length;r++){var o=s[r];if(t&&(null===(i=o.lang)||void 0===i?void 0:i.toLowerCase())===e)return o;o.lang!==b&&"en"!==o.lang||(n=o)}return n},i.prototype.Ky=function(t,i){var n=this;if(t){var e=this.vt.getItemId(),r=e?this.Py[e]:null,o=t.format||s.vtt;if(r&&t){var u={url:t.url};if(a.userAgent.ie&&a.userAgent.ie<10&&(u.cors=!0),t.parsedCC)return i&&i(!0);f.Loader.ajax(t.url,{context:this,failureHandler:function(t){n.Zy(),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.Uy&&n.Uy.setCCAvailability(!0),i&&i(!0)),i&&i(!1)}})}else i&&i(!1)}else i&&i(!1)},i.prototype.Zy=function(t){if(void 0===t&&(t=!1),this.publish(o.CC_AVAILABILITY_UPDATE,!1),this.By=null,this.s_=null,this.disable(),t){var i=this.vt.getItemId(),n=i?this.Py[i]:null;n&&(n.ccAvailable=!1),this.Fy=[]}},i.prototype.n_=function(t,i){t||(t={});var n=t&&t.show,e=t&&t.lang;this.$b.publish(c.CCEvent.TOGGLE,n),i&&(l.isBoolean(n)&&(this.Vy.show=n,this.zy=n),e&&l.isString(e)&&(this.Vy.lang=e),d.default.saveCCSettingsToLocalStorage({ccSettings:this.Vy}))},i.prototype.Xy=function(t,i){var n=this;if(t){var e=this.Py[t];if(e&&e.hasNonNativeCC&&this.f_(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.qy.updateCCContent(o,e.parsedCaptions[r].settings)}else this.l_||(this.l_=setTimeout((function(){n.qy.updateCCContent(""),clearTimeout(n.l_),n.l_=null}),1e3))}else this.qy.updateCCContent("")}},i.prototype.Jy=function(t,i,n){if(t){var e=this.Py[t];if(e&&e.hasNonNativeCC&&this.f_(e),e&&e.ccAvailable&&e.parsedCaptions&&e.parsedCaptions.length){for(var r=i/n,s=e.parsedCaptions.length,o=Math.floor(r*s);o>0&&o<s&&i<e.parsedCaptions[o].begin;)o--;for(;o<s&&i>e.parsedCaptions[o].end;)o++;var u=o>=0&&o<s;if(u=u&&e.parsedCaptions[o].begin<=i&&i<=e.parsedCaptions[o].end&&!!e.parsedCaptions[o].text){var a=e.parsedCaptions[o].text||"";this.qy.updateCCContent(a,e.parsedCaptions[o].settings)}else this.qy.updateCCContent("")}else this.qy.updateCCContent("")}},i.prototype.f_=function(t){(t&&t.tracks||[]).forEach((function(t){t.mode="hidden"}))},i.prototype.Hy=function(t,i){if(t){var n=t.itemId;if(n){var e=this.Py[n];if(e||(e={ccAvailable:!1,vttPresent:!1,parsedCaptions:null},this.Py[n]=e),e.hasNonNativeCC=!0,!e.parsedCaptions||!e.ccAvailable){e.parsedCaptions=e.parsedCaptions||[],e.vttPresent=!0,e.ccAvailable=!0;var r=this.vt.playlist.getMediaItemById(n);r&&r.setCCAvailability(!0);var s=this.vt.getItemId();s&&s===n&&this.i_()}if(e.vttPresent){var o=t.adjustedTime?t.adjustedTime:0,u=v.VTTParser.parse(t.data||"",o,i);e.parsedCaptions=this.v_(e.parsedCaptions,u)}}}},i.prototype.v_=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.Qy=function(t){if(!t)return!1;if(this.Wy||!this.Wy&&t.rendererType===h.RendererType.HTML5_HLS){var i=t.getSubtitleStreams();if(i&&i.length>0)return!0}return!t.closedCaptions||!t.closedCaptions.length},i.prototype.$y=function(t){var i,n=t.filter((function(t){return"text/vtt"===t.content_type}));if(this.Fy=n,this.Fy.length){var e=this.Vy.lang,r=a.userAgent.mobile?o.CC_LIST_FETCHED_MOBILE:o.CC_LIST_FETCHED,s=a.userAgent.mobile?this.Fy:this.c_();this.publish(r,{langList:s,selectedLang:e}),a.userAgent.mobile||null===(i=this.Uy)||void 0===i||i.setCCAvailability(!0),this.h_()?this.enable(e):this.disable()}else this.Zy(!0)},i.prototype.o_=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.Vy.lang||b),!n&&this.Vy.lang&&r(this.Vy.lang),!n&&e[0]&&(n=e[0]),n},i.prototype.e_=function(){var t=this.Uy?this.Py[this.Uy.id]:null;return t&&t.ccAvailable||!1},i}(u.default);i.CCController=m},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,a=n(7196);i.SourceMetadataLoadCommand=a.default,function(t){t.CMD_SOURCE_METADATA_LOAD="SourceMetadataLoad",t.CMD_METADATA_LOAD="MetadataLoad",t.CMD_MORE_ITEMS_LOAD="MoreItemsLoad"}(o||(o={})),i.CmdName=o,function(t){t.CMD_COMPLETE="Complete",t.CMD_PROGRESS="Progress",t.CMD_ERROR="Error",t.CMD_INFO="Info"}(u||(u={})),i.CmdEvent=u},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.d_=t,this.ft={},this.X={},r.CmdName)if(Object.prototype.hasOwnProperty.call(r.CmdName,i)){var n=r.CmdName[i];this.ft[n]={}}}return t.prototype.destroy=function(){this.removeAllCommands(),this.ft={}},t.prototype.executeCommand=function(t,i,n){var e=this.createCommand(t,i,n);return e&&e.execute(),e},t.prototype.createCommand=function(t,i,n){var o;try{(o=s.create(t,i,n))&&(o.pluginManager=this.d_)}catch(t){o=null}if(!o)return null;for(var u in o.key=e.default.guid(),r.CmdEvent)if(Object.prototype.hasOwnProperty.call(r.CmdEvent,u)){var a=r.CmdEvent[u],c="on"+t+a;n[c]&&(this.X[a+t+o.key]=o.addEventListener(a,n[c],n))}return this.ft[t][o.key]=o,o},t.prototype.removeCommand=function(t){if(t){var i=this.ft[t.cmdName];if(i[t.key]===t){if(delete i[t.key],t.client)for(var n in r.CmdEvent)if(Object.prototype.hasOwnProperty.call(r.CmdEvent,n)){var e=r.CmdEvent[n],s="on"+t.cmdName+e;t.client[s]&&(t.removeEventListener(e,this.X[e+t.cmdName+t.key]),delete this.X[e+t.cmdName+t.key])}t.destroy()}}},t.prototype.removeRelatedCommands=function(t){if(Object.prototype.hasOwnProperty.call(this.ft,t)){var i=this.ft[t];for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var e=i[n];e&&this.removeCommand(e)}}},t.prototype.removeAllCommands=function(){for(var t in this.ft)Object.prototype.hasOwnProperty.call(this.ft,t)&&this.removeRelatedCommands(t)},t.prototype.getCommand=function(t){var i=this.ft[t];if(!i)return null;var n=Object.keys(i);return n.length<1?null:i[n[n.length-1]]},t}();i.default=o},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.d_=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),a=n(6342),c=n(3493),h=n(6618),f=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.cmdName=h.CmdName.CMD_METADATA_LOAD,e.$t=!1,e.qn=!1,e}return r(i,t),i.prototype.destroy=function(){this.qn=!0,this.cancel(),t.prototype.destroy.call(this)},i.prototype.execute=function(){if(!this.$t&&!this.qn){var t=this.data,i=t.autoplay,n=t.failoverCount,e=t.privacyConsent,r=t.mimetype,c=t.mediaItemDataArr,f=t.rendererCapabilities,l=t.rendererTypes,v=t.sessionId,d=t.thumbnailDimensions,p=t.tryCount,b=this.d_.getPlugin(u.PluginType.METADATA,r),m={autoplay:i,failoverCount:n,privacyConsent:e,rendererCapabilities:f,rendererTypes:l,sessionId:v,thumbnailDimensions:d,tryCount:p};if(b)this.p_=b,this.$t=!0,this.publish(h.CmdEvent.CMD_PROGRESS,this,c,o.ItemState.FETCHING),b.resolve(c,m,this);else{var g="No metadata plugin found for mimetype = "+r,y=a.default.createErr(s.ErrorGroup.Service,null,s.E_PLAYER,s.PLAYER_CODES.E_NO_PLUGIN_FOUND,g);this.publish(h.CmdEvent.CMD_ERROR,this,y)}}},i.prototype.cancel=function(){this.p_&&this.$t&&(this.p_.cancel(),this.$t=!1)},i.prototype.onProgress=function(t){this.$t&&!this.qn&&this.publish(h.CmdEvent.CMD_PROGRESS,this,t)},i.prototype.onComplete=function(t){this.$t&&!this.qn&&(this.$t=!1,this.publish(h.CmdEvent.CMD_COMPLETE,this,t))},i.prototype.onError=function(t){if(this.$t&&!this.qn&&(this.$t=!1,t.code&&t.code.length)){var i=a.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(h.CmdEvent.CMD_ERROR,this,i)}},i.prototype.onApiCallInfo=function(t){t&&this.publish(h.CmdEvent.CMD_INFO,this,t)},i}(c.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),a=n(3493),c=n(6618),h=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.cmdName=c.CmdName.CMD_MORE_ITEMS_LOAD,e.b_=null,e.$t=!1,e.qn=!1,e}return r(i,t),i.prototype.destroy=function(){this.qn=!0,this.cancel(),t.prototype.destroy.call(this)},i.prototype.execute=function(){if(!this.$t&&!this.qn){var t=this.data,i=t.cb,n=t.mimetype,e=t.reason,r=t.start,s=this.d_.getPlugin(o.PluginType.MORE_ITEMS,n);this.b_=i;var u={mimetype:n,reason:e,start:r};s&&(this.p_=s,this.$t=!0,s.resolve(u,this))}},i.prototype.cancel=function(){this.p_&&this.$t&&(this.p_.cancel(),this.$t=!1)},i.prototype.onComplete=function(t){this.$t&&!this.qn&&(this.$t=!1,this.publish(c.CmdEvent.CMD_COMPLETE,this,t))},i.prototype.onError=function(t){if(this.$t&&!this.qn&&(this.$t=!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(c.CmdEvent.CMD_ERROR,this,i)}},i.prototype.onApiCallInfo=function(t){t&&this.publish(c.CmdEvent.CMD_INFO,this,t)},i.prototype.onPromisesResolved=function(t){this.b_&&this.b_(t)},i}(a.default);i.default=h},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),a=n(6342),c=n(3493),h=n(6618),f=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.cmdName=h.CmdName.CMD_SOURCE_METADATA_LOAD,e.$t=!1,e.qn=!1,e}return r(i,t),i.prototype.destroy=function(){this.qn=!0,this.cancel(),t.prototype.destroy.call(this)},i.prototype.execute=function(){if(!this.$t&&!this.qn){var t=this.data,i=t.autoplay,n=t.failoverCount,e=t.privacyConsent,r=t.mimetype,c=t.mediaItemDataArr,f=t.rendererCapabilities,l=t.rendererTypes,v=t.sessionId,d=t.recovering,p=t.thumbnailDimensions,b=t.tryCount,m=t.playlistPosition,g=this.d_.getPlugin(u.PluginType.SOURCE_METADATA,r),y={autoplay:i,failoverCount:n,privacyConsent:e,rendererCapabilities:f,rendererTypes:l,sessionId:v,thumbnailDimensions:p,tryCount:b,playlistPosition:m};if(g)this.p_=g,this.$t=!0,this.publish(h.CmdEvent.CMD_PROGRESS,this,c,o.SourceState.FETCHING),!0===d?g.recover(c[0],y,this):g.resolve(c,y,this);else{var _="No source metadata plugin found for mimetype = "+r,w=a.default.createErr(s.ErrorGroup.Service,null,s.E_PLAYER,s.PLAYER_CODES.E_NO_PLUGIN_FOUND,_);this.publish(h.CmdEvent.CMD_ERROR,this,w)}}},i.prototype.cancel=function(){this.p_&&this.$t&&(this.p_.cancel(),this.$t=!1)},i.prototype.onProgress=function(t){this.$t&&!this.qn&&this.publish(h.CmdEvent.CMD_PROGRESS,this,t)},i.prototype.onComplete=function(t){this.$t&&!this.qn&&(this.$t=!1,this.publish(h.CmdEvent.CMD_COMPLETE,this,t))},i.prototype.onError=function(t){if(this.$t&&!this.qn&&(this.$t=!1,t.code&&t.code.length)){var i=a.default.createErr(t.group||s.ErrorGroup.Service,null,t.category||s.E_PLAYER,t.code,t.message);this.publish(h.CmdEvent.CMD_ERROR,this,this.data.mediaItemDataArr,i)}},i.prototype.onApiCallInfo=function(t){t&&this.publish(h.CmdEvent.CMD_INFO,this,t)},i}(c.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.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.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),a=n(1962),c=n(2542),h=n(3277),f=n(4839),l=n(8103),v=n(1279),d=n(531),p=n(6984);!function(t){t.AD_BREAK_PLAY="adBreakItemPlay",t.AD_BREAK_STARTED="adBreakStarted",t.AD_BREAK_ENDED="adBreakEnded",t.AD_PLAYBACK_STARTED="adBreakItemStarted",t.AD_PLAYBACK_ENDED="adBreakItemEnded",t.AD_CLIENT_COMPLETED="adClientCompleted",t.AD_CLIENT_TIMEOUT="adClientTimeout",t.CREATE_OVERLAY_CONTAINER="createOverlayContainer",t.AD_METRICS="adMetrics",t.AD_DIAGNOSTICS="adDiagnostics"}(s=i.AdPlaybackControllerEvent||(i.AdPlaybackControllerEvent={}));var b=function(t){function i(i,n){var e=t.call(this,"AdPlaybackController")||this;e.vt=i,e.m_=n,e.g_={},e.y_={},e.__={},e.w_={};var r=e.vt.config.ads.timeout,s=r.load+r.start;return e.O_={},e.E_=new u.Timer(1e3*s,e.j_,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.m_.getPlugin(v.PluginType.AD,t.adConfig.mimetype),e=this.S_(i,n);if(n&&e&&d.isAdResolverAdPlugin(n)){this.O_[i]={item:t,beginTS:Date.now()},this.A_({evt:"ad_fetch"},t);var r=this.vt.playlist.position;n.parse(i,t.adConfig.value,new p.default(r))}}else this.S_(i,null)},i.prototype.startTracking=function(t){var i=this,n=t.refPlaybackId;n!==this.M_&&(this.T_(),this.N_(t),this.g_[n]={},this.y_[n]={},this.I_=null,this.R_=!1,this.L_=null,this.C_=null,this.k_.adBreaks&&(this.E_.reset(),this.k_.adBreaks.forEach((function(n){i.D_(t,n)}))))},i.prototype.resolveAdBreak=function(t,i){var n=t.refPlaybackId,e=this.g_[n]&&this.g_[n][i],r=this.__[n];d.isAdResolverAdPlugin(r)&&e&&(r.resolve(n,new f.default(e.id,i)),this.handleAdBreakResolved(t,e))},i.prototype.onMediaItemPlaybackEnded=function(t){},i.prototype.playClientAdBreaks=function(t,i,n){var e=this;if(this.k_===t){this.vt.playbackState.currentMediaType=i;var r=Object.keys(this.O_).map((function(t){return e.O_[t].item})).some((function(t){return t===e.k_}));if(this.P_(i,t),!r){var o,u,a=t.refPlaybackId,c=this.g_[a];if(c&&i===l.AdBreakOffset.OVERLAY&&!isNaN(n)?o=(u=Object.keys(c).find((function(t){return+t<n})))&&c[u]:c&&(o=c[i]),!o&&i!==l.AdBreakOffset.OVERLAY)return this.T_(),void this.publish(s.AD_CLIENT_COMPLETED,i,t);this.resolveAdBreak(t,u||i),this.x_(t,u||i)}}},i.prototype.pauseClientAdStartTimer=function(){this.E_&&this.E_.stop()},i.prototype.resumeClientAdStartTimer=function(){var t=this.U_(),i=this.E_;t&&i&&!i.running&&i.start()},i.prototype.handleAdBreakResolved=function(t,i){t&&i&&this.F_(t,[i])&&this.x_(t,i.offset)},i.prototype.handleAdPlaybackStarted=function(t){this.B_(),this.publish(s.AD_PLAYBACK_STARTED,t)},i.prototype.handleAdBreakEnded=function(t){this.z_(t,!1)},i.prototype.handleAdPlaybackEnded=function(t){this.V_(t,!1)},i.prototype.handleAdBreakError=function(t){this.z_(t,!0)},i.prototype.stopCurrentPlayback=function(t){this.publish(s.AD_BREAK_ENDED,t||null)},i.prototype.destroy=function(){var i=this;t.prototype.destroy.call(this),this.E_.destroy(),this.E_=null,Object.keys(this.w_).forEach((function(t){i.w_[t]()})),this.O_=null},i.prototype.V_=function(t,i){this.publish(s.AD_PLAYBACK_ENDED,t)},i.prototype.z_=function(t,i){this.I_=null;var n=t.mediaItem;!i&&this.vt.loop&&t.offset===l.AdBreakOffset.ADONLY||this.publish(s.AD_BREAK_ENDED,t),i&&this.vt.loop&&t.offset===l.AdBreakOffset.ADONLY&&(this.vt.loop=!1,this.vt.showStartScreen=!0),i||(this.R_=!1,this.x_(n,t.offset))},i.prototype.D_=function(t,i){var n=i.offset,e=t.refPlaybackId;this.g_[e]=this.g_[e]||{},this.g_[e][n]=i},i.prototype.T_=function(){if(this.B_(),this.k_){var t=this.M_;this.O_&&this.O_[t]&&delete this.O_[t]}this.R_=!1},i.prototype.x_=function(t,i){if(!this.R_){var n,e=t.refPlaybackId,r=this.g_[e]&&this.g_[e][i]||{},o=this.y_[e]&&this.y_[e][i]||{};if(o.replay++,i===l.AdBreakOffset.ADONLY&&this.vt.loop?n=o.state?o:r:r.id!==o.id&&(n=r),!n||0===Object.keys(n).length)return this.T_(),void this.publish(s.AD_CLIENT_COMPLETED,i,this.k_);delete this.g_[e][i],this.R_=!0,this.y_[e]=this.y_[e]||{},this.y_[e][i]=n,this.publish(s.AD_BREAK_STARTED,n),this.A_({evt:"ad_play",adReplay:o.replay},t),this.I_=n,this.publish(s.AD_BREAK_PLAY,n)}},i.prototype.P_=function(t,i){this.B_(),this.L_=t,this.C_=i,this.E_.start()},i.prototype.j_=function(){var t=this.L_,i=this.C_;this.I_&&this.z_(this.I_,!0),this.T_(),this.publish(s.AD_CLIENT_TIMEOUT,t,i)},i.prototype.B_=function(){this.E_.reset(),this.L_=null,this.C_=null},i.prototype.F_=function(t,i){var n=this;return!(t!==this.k_||t!==this.C_||!this.E_)&&i.some((function(t){return t.offset===n.L_}))},i.prototype.G_=function(t,i){return!(t!==this.k_||t!==this.C_||!this.E_)},i.prototype.U_=function(){return!!this.L_},i.prototype.H_=function(t,i){for(var n,e=this,r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];switch(i){case c.AdPluginEvent.AD_SUBTITLES_FOUND:this.publish(a.AD_SUBTITLE_TRACK_ADDED,r[0]);break;case c.AdPluginEvent.AD_SUBTITLES_NOT_FOUND:this.publish(a.AD_SUBTITLE_NOT_FOUND);break;case c.AdPluginEvent.AD_PARSE_RESULT:var u=r[0],h=this.O_[u.refId];if(delete this.O_[u.refId],h&&(n=h.item,this.A_({evt:"ad_fetched",latency:Date.now()-h.beginTS},n)),!h||!n||!u.refId)return;var f=u.breaks;f||(f=[]);var v=n.addAdBreaks(u.breaks);v.forEach((function(t){e.D_(n,t)})),n.adBreaks.some((function(t){return t.type===l.AdBreakType.NON_LINEAR}))&&d.isAdOverlayRendererAdPlugin(t)&&this.publish(s.CREATE_OVERLAY_CONTAINER,(function(i){i&&t.setNonlinearAdContainer(i)})),this.G_(n,v)?this.playClientAdBreaks(n,this.L_):this.resolveAdBreak(n,l.AdBreakOffset.PRE);break;case c.AdPluginEvent.DIAGNOSTICS:var p=r[0];this.publish(s.AD_DIAGNOSTICS,p);break;case c.AdPluginEvent.METRICS:var b=r&&r[0],m=b&&b.evt;if("string"==typeof m){var g="object"==typeof b?Object.assign({},b):{evt:m};this.A_(g,this.k_)}}},i.prototype.S_=function(t,i){return!this.__[t]&&(this.__[t]=i,i&&(this.w_[i.mimetype]||(this.w_[i.mimetype]=h.listenEventDispatcherEvts(i,Object.keys(c.AdPluginEvent).map((function(t){return c.AdPluginEvent[t]})),this.H_.bind(this)))),!0)},i.prototype.N_=function(t){this.k_=t,this.M_=t.refPlaybackId},i.prototype.A_=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=b},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(2645),s=n(9451),o=n(3072),u=n(3454),a=n(4138),c=n(954),h=n(6389),f=n(1962),l=n(1960),v=n(440),d=n(6120),p=n(2341),b=n(2334),m=n(4536),g=n(1279),y=n(4685),_=n(5244),w=n(3872),O=n(2912),E=n(1204),j=n(531),S=n(6342),A=n(9241),M=n(8103),T=n(4046),N=n(8903),I=n(7549),R=n(83),L=n(5109),C=n(4797),k=n(655),D=n(9939),P=n(2559),x=n(7343),U=n(830),F=n(1032),B=n(4354),z=n(649),V=function(){function t(t,i,n,e,r){this.Y_=[],this.Pc=t,this.q_=r,this.$b=e,this.$b.publish(f.PROFILE_START,[f.METRICS.VP_CONSTRUCTOR]),this.vt=new b.default(t,i,n),this.W_=this.vt.mediaStore,this.Q_(),this.Z_=[],this.d_=new m.default,this.Ze=new a.default(this.d_),this.X_=new I.default(this.$b),this.J_(),this.K_(),this.tw=new N.PlaybackController(this.vt,this.$b,this.d_,this.iw),this.nw(),this.vt.autoplay&&this.$b.publish(f.PROFILE_START,f.METRICS.INIT_TO_START),this.Dm(),this.$b.publish(f.PROFILE_END,f.METRICS.VP_CONSTRUCTOR),this.$b.publish(f.PROFILE_START,f.METRICS.INIT_RENDER_GAP),this.ew()}return t.prototype.initialize=function(){this.rw||(this.rw=new T.MetadataController(this.Ze,this.vt),this.sw(),this.fetchMetadata())},t.prototype.fetchMetadata=function(t){this.rw&&this.rw.loadMetadata(t)},t.prototype.destroy=function(){this.ow&&this.ow.destroy(),this.uw(),this.$b&&this.$b.destroy(),this.aw&&this.aw.destroy(),this.vt&&this.vt.destroy(),this.rw&&this.rw.destroy(),this.tw&&this.tw.destroy(),this.cw(),this.d_.destroy(),this.Ze.destroy()},t.prototype.render=function(t){this.$b.publish(f.PROFILE_END,f.METRICS.INIT_RENDER_GAP),this.$b.publish(f.PROFILE_START,f.METRICS.CREATE_RENDERER);var i=j.isString(t)?document.querySelector(t):t;if(null===i&&this.$b.publish(f.ERROR,this.hw(h.PLAYER_CODES.E_INVALID_CONFIG,!1,"Invalid DOM node or CSS selector specified. Cannot render player.")),this.ow=new A.default(i,this.vt,this.$b,this.q_,this.d_,this.tw),this.fw(),this.vt.playerRootElement=i,this.ow.render(),this.lw=this.ow.getPlaylistController(),j.isFunction(u.CCController)&&(this.aw=new u.CCController(this.$b,this.vt,this.ow),this.dw()),this.vt.firstCriticalError)this.An(this.vt.firstCriticalError);else{if(this.pw=!1,this.ow.syncViewState(),this.vt.autoplay){var n={type:c.REQUEST_TYPES.AUTOPLAY,action:c.REQUEST_TYPES.AUTOPLAY};this.play(n)}else{var e=this.getCurrentMediaItem();this.X_.setPreloadItem(e),e.isLive()||this.X_.startPreload()}this.$b.publish(o.ExternalEvt.PLAYER_RENDERED),this.$b.publish(f.PROFILE_END,f.METRICS.CREATE_RENDERER),this.ow.setTheme(this.Pc.cssTheme),this.bw(g.PluginPlayerEvent.PLAYER_RENDERED,{rootElem:i})}},Object.defineProperty(t.prototype,"model",{get:function(){return this.vt},enumerable:!1,configurable:!0}),t.prototype.registerPlugin=function(t){var i=this.vt.config,n=i.pluginConfigs&&i.pluginConfigs[t.type]&&i.pluginConfigs[t.type][t.mimetype];switch(t.type){case g.PluginType.AD:var e=this.vt.privacyConsent;n=Object.assign({autoplay:i.autoplay,playerGuid:this.vt.guid,adCallTimeout:i.ads.timeout.load,playbackTimeout:i.ads.timeout.start,privacy:{isGdprApplies:e.gdprApplies,gdprConsentData:e.gdprConsentData,uspData:e.uspString}},n),"adplugin/martini"===t.mimetype&&(n=Object.assign({featureFlag:{disableAdCallRetry:!1},playerState:{fullscreen:!1}},n)),n.playerName=n.playerName||"CorePlayer";break;case g.PluginType.MORE_ITEMS:this.mw=t.mimetype}this.d_.register(t,n),j.isPlayerPluginEventListener(t)&&this.Z_.push(t)},Object.defineProperty(t.prototype,"rootElement",{get:function(){return this.vt.rendered?this.ow.getRootElement():null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoElement",{get:function(){return this.vt.rendered?this.ow.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.tw.startPlayback(t),this.$b.publish(f.CTRL_PLAYPAUSE,"play")},t.prototype.pause=function(t){!this.vt.isPaused()&&this.gw.shouldPlay&&(this.tw.pause(t),this.$b.publish(f.CTRL_PLAYPAUSE,"pause"))},t.prototype.seek=function(t){this.tw.seek(t)},t.prototype.recover=function(){this.iw&&this.iw.recover()},t.prototype.preload=function(){this.X_.startPreload()},t.prototype.stopPreload=function(){this.X_.stopPreload()},t.prototype.disableControls=function(){this.vt.rendered&&this.ow.disableControls()},t.prototype.enableControls=function(){this.vt.rendered&&this.ow.enableControls()},t.prototype.enableCC=function(t){var i;null===(i=this.aw)||void 0===i||i.enable(t)},t.prototype.disableCC=function(){var t;null===(t=this.aw)||void 0===t||t.disable()},t.prototype.isPlayMode=function(){var t=this.vt.getState();return(t===_.default.VIDEO||t===_.default.WAITING)&&!this.vt.isPaused()},t.prototype.isLoading=function(){return this.gw.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(h.ErrorGroup).map((function(t){return h.ErrorGroup[t]})).indexOf(i))throw new Error("invalid error group");this.$b.publish(t,S.default.createErr(i,this.gw,n,e,r))},Object.defineProperty(t.prototype,"fullscreen",{get:function(){return!!this.vt.rendered&&this.ow.getFullscreen()},set:function(t){this.vt.rendered&&this.ow.setFullscreen(t)},enumerable:!1,configurable:!0}),t.prototype.isAd=function(){return this.model.isAd()},t.prototype.setVolume=function(t,i){void 0===i&&(i=!1),i||(t>0&&!this.vt.muteMode&&(this.vt.mute=!1),w.LocalStorage.put(c.LocalStorageKey.VOLUME,{volume:t,mute:this.vt.mute})),this.vt.rendered&&this.tw.setVolume(t,i),this.ow.updateVolumeUI(t,null,i)},Object.defineProperty(t.prototype,"volume",{get:function(){return this.vt.volume},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.vt.rendered?this.tw.getCurrentTime():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawCurrentTime",{get:function(){return this.vt.rendered?this.tw.getRawCurrentTime():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mute",{get:function(){return this.vt.mute},set:function(t){this.vt.muteMode&&this.vt.mute||(w.LocalStorage.put(c.LocalStorageKey.VOLUME,{volume:this.vt.volume,mute:t}),this.vt.rendered&&this.tw.setMute(t),this.ow.updateVolumeUI(this.vt.volume,t))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{set:function(t){this.vt.loop=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){return this.vt.continuousPlay},set:function(t){this.vt.continuousPlay=t},enumerable:!1,configurable:!0}),t.prototype.resumeContinuousPlay=function(t){this.tw.resumeContinuousPlay(t)},Object.defineProperty(t.prototype,"autoplay",{get:function(){return this.vt.autoplay},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mediaStore",{get:function(){return this.vt.mediaStore},enumerable:!1,configurable:!0}),t.prototype.getPlaybackState=function(){return this.vt.getState()},t.prototype.getCurrentMediaItem=function(){return this.Ny.getCurrentItem()},t.prototype.getPlaylistItems=function(){return this.Ny.getItems().map((function(t){return{id:t.id,mimetype:t.mimetype}}))},t.prototype.getPlaylistItemIds=function(){return this.Ny.getItemIds()},t.prototype.getPlaylist=function(){return this.Ny},Object.defineProperty(t.prototype,"rendered",{get:function(){return this.vt.rendered},enumerable:!1,configurable:!0}),t.prototype.updateCurrentItemTitle=function(t){this.ow.updateCurrentItemTitle(t)},t.prototype.addCustomControlElement=function(t){return this.ow.addCustomControlElement(t)},t.prototype.setPlaylistPosition=function(t,i,n){this.tw.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.$b.publish(f.API_CALLED,i),!0)},t.prototype.removePlaylistItems=function(t,i){this.Ny.removeItems(t,i)},t.prototype.error=function(t){t&&this.$b.publish(f.ERROR,this.hw(t.code,!1,t.msg))},Object.defineProperty(t.prototype,"docked",{get:function(){return!!this.vt.rendered&&this.ow.isDocked()},enumerable:!1,configurable:!0}),t.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.vt.rendered&&this.ow.updateDockingConfig(t,i,n,e,r,s)},t.prototype.dockVideoPlayer=function(){this.vt.rendered&&this.ow.dockVideoPlayer()},t.prototype.undockVideoPlayer=function(t){this.vt.rendered&&this.ow.undockVideoPlayer(t)},t.prototype.initNewPlayback=function(){var t=this.getCurrentMediaItem();this.tw.initNewPlayback(t)},Object.defineProperty(t.prototype,"startTime",{set:function(t){this.vt.startTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentDate",{get:function(){return this.vt.rendered?this.tw.getCurrentDate():0},enumerable:!1,configurable:!0}),t.prototype.getEventsDto=function(){return this.vt.getEventsDto()},t.prototype.getPlayingItem=function(){return this.tw.getPlayingItem()},t.prototype.getSyncOffset=function(){return this.tw.getSyncOffset()},t.prototype.startSync=function(){this.tw.startSync()},t.prototype.stopSync=function(){this.tw.stopSync()},Object.defineProperty(t.prototype,"duration",{get:function(){return this.tw.getDuration()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawDuration",{get:function(){return this.tw.getRawDuration()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Ny",{get:function(){return this.vt.playlist},enumerable:!1,configurable:!0}),t.prototype.Dm=function(){var t=this;this.$b.addEventListener(f.ERROR,this.An,this),this.$b.addEventListener(f.INFO,this.An,this),this.$b.addEventListener(f.WARNING,this.Ig,this),this.$b.addEventListener(f.RELATED_ITEM_CLICK,this.yw,this),this.$b.addEventListener(f.TOGGLE_PLAY_PAUSE,this.ww,this),this.$b.addEventListener(f.CTRL_FULLSCREEN,this.Ow,this),this.$b.addEventListener(f.CONTROLS_SEEK_START,this.Ew,this),this.$b.addEventListener(f.CONTROLS_SEEK_END,this.jw,this),this.$b.addEventListener(f.CONTROLS_SEEKING,this.Sw,this),this.$b.addEventListener(f.PLAYBACK_REQUEST,this.Aw,this),this.$b.addEventListener(f.PLAYER_DIMENSION_CHANGE,this.Mw,this),this.$b.addEventListener(o.ExternalEvt.BITRATE_CHANGE,this.Eg,this),this.$b.addEventListener(o.ExternalEvt.PLAYBACK_TIMEOUT,this.Tw,this),this.$b.addEventListener(f.KEYDOWN,this.Nw,this),this.$b.addEventListener(f.ER_READY,this.Iw,this),this.$b.addEventListener(f.CONTENT_LOAD_FINISHED,this.Rw,this),this.$b.addEventListener(f.LIVE_RELOAD_MEDIA,this.Lw,this),this.$b.addEventListener(f.STREAM_SYNCH_STRATEGY_APPLIED,this.Cw,this),this.$b.addEventListener(f.STREAM_SYNCH_COMPLETE,this.Dg,this),this.vt.waitingForUserTap&&this.$b.once(f.TOUCH_TO_PLAY_RESTRICTION_REMOVED,(function(){t.vt.waitingForUserTap=!1}),this)},t.prototype.ew=function(){var t=this;this.Y_.push(new F.default),this.Y_.push(new U.default),this.Y_.push(new z.default),this.Y_.push(new L.default),this.Y_.push(new k.default),this.Y_.push(new D.default),this.Y_.push(new r.MartiniPlugin),this.Y_.push(new B.default),this.vt.isLocal()&&(this.Y_.push(new C.default),this.Y_.push(new P.default),this.Y_.push(new x.default)),this.Y_.forEach((function(i){t.registerPlugin(i)})),this.d_.defaultPlugins=this.Y_},t.prototype.cw=function(){this.Y_.forEach((function(t){t.destroy()})),this.Y_=[]},t.prototype.bw=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.Z_;s<o.length;s++){var u=o[s];r(u)}},t.prototype.K_=function(){this.iw||(this.iw=new R.default(this.vt),this.kw())},t.prototype.Dw=function(){this.Pw||(this.$b.publish(f.PROFILE_END,[f.METRICS.INIT_TO_START,f.METRICS.CLICK_TO_START]),this.$b.publish(o.ExternalEvt.VIDEO_STARTED),this.Pw=!0),this.xw()},t.prototype.Ow=function(t){this.tw.toggleFullscreen("ON"===t)},t.prototype.ww=function(){this.vt.castState&&this.vt.castState.connected||this.vt.getState()===_.default.VIDEO&&(this.vt.isPaused()?(this.tw.startPlayback({type:c.REQUEST_TYPES.CLICK,action:c.REQUEST_TYPES.PLAY}),this.$b.publish(f.CTRL_PLAYPAUSE,"play")):(this.tw.pause({type:c.REQUEST_TYPES.CLICK,action:c.REQUEST_TYPES.PAUSE}),this.$b.publish(f.CTRL_PLAYPAUSE,"pause")))},t.prototype.Nw=function(t){var i=t.keyCode,n="key-"+i;32!==i&&38!==i&&40!==i||(t.preventDefault(),this.$b.publish(o.ExternalEvt.UI_INTERACT,{srcElement:n}))},t.prototype.Aw=function(){this.Uw(),this.Fw()},t.prototype.Uw=function(){var t=this,i=this.getCurrentMediaItem();!this.Xp&&i&&i.state!==d.ItemState.ERROR&&(this.Xp=window.setTimeout((function(){t.$b.publish(o.ExternalEvt.PLAYBACK_TIMEOUT,t.Bw(h.WARNING_CODES.E_PLAYBACK_TIMEOUT,!0,"No playback after 10 seconds of requesting to play on player"))}),1e4))},t.prototype.Fw=function(){var t=this.getCurrentMediaItem();t&&t.rendererType===y.RendererType.HTML5_HLS&&this.$b.publish(f.CONVIVA_READY_FOR_SESSION_CREATION,t)},t.prototype.xw=function(){this.Xp&&clearTimeout(this.Xp)},t.prototype.Mw=function(t){var i,n;this.vt.uiState.width=t.width,this.vt.uiState.height=t.height,this.vt.uiState.videoWidth=t.videoWidth,this.vt.uiState.videoHeight=t.videoHeight,null===(n=null===(i=this.ow)||void 0===i?void 0:i.controls)||void 0===n||n.onPlayerResize(t)},t.prototype.zw=function(){s.userAgent.mobile&&E.default.autoplaySupported&&this.gw.mute&&!this.vt.muteMode&&!this.vt.config.mute&&(this.mute=!1),this.$b.publish(f.CTRL_PLAYREQUEST,"ctp");var t={type:c.REQUEST_TYPES.CLICK,action:c.REQUEST_TYPES.CLICK};this.tw.startPlayback(t),this.ow.getContentNode().focus(),E.default.hasLoadRestriction&&this.vt.autoplay&&O.default&&(this.vt.waitingForUserTap=!1)},t.prototype.yw=function(t,i,n){var e=this.Ny,r={srcElement:"next-vid-"+i},s=-1===i?f.CTRL_REPLAY:f.CTRL_ENDSCREEN_VID;-1===i&&(r.srcElement="es-rpl"),i>-2&&this.$b.publish(o.ExternalEvt.UI_INTERACT,r),this.$b.publish(s,{vid:t,vindex:i});var u={type:c.REQUEST_TYPES.CONTINUOUS,action:n?c.REQUEST_TYPES.AUTOPLAY:c.REQUEST_TYPES.CLICK},a=e.getItemPosition(t);this.setPlaylistPosition(a,!0,u)},t.prototype.An=function(t){var i=this;if(this.iw.onError(t),!this.iw||!t.isRecoverable){t.category&&t.category===h.E_INFO?this.$b.publish(f.INTERNAL_INFO,t):this.$b.publish(f.INTERNAL_ERROR,t);try{throw new Error("Stack Trace")}catch(t){}this.vt.errors.push(t),this.Vw((function(){var t=i.vt.firstCriticalError;t&&(i.iw.stopTimers(),i.tw.handleCriticalError(t),i.Gw(t),i.disableCC(),i.ow&&i.ow.syncViewState())}))}},t.prototype.Ig=function(t,i){i&&this.An(t)},t.prototype.Gw=function(t){var i=h.PLAYER_CODES,n=function(){s.userAgent.desktop&&(t.category=h.E_PLAYER,t.subcategory=i.E_PLAYER_NOT_ENABLED)};switch(t.category){case h.E_SAPI_ABSTRACT:case h.E_SAPI_STREAM:case h.E_SAPI_PLAYLIST:case h.E_SAPI_RELATED:case h.E_SAPI_POPULAR:var e=h.INFO_CODES;switch(t.subcategory){case e.E_SAPI_UNSUPPORTED_LIVE_ON_HTML:s.userAgent.android?(t.category=h.E_INFO,t.subcategory=e.E_PLAYER_ANDROID_CHROME_REQUIRED):n();break;case h.SAPI_CODES.E_DRM_RESTRICTED:s.userAgent.desktop&&n()}break;case h.E_PLAYER:if(t.subcategory===i.E_NATIVE_ENCRYPT_MEDIA)n()}},t.prototype.Ew=function(){this.vt.isSeeking()||(this.vt.setSeeking(!0),this.ow.syncViewState())},t.prototype.jw=function(){this.vt.isSeeking()&&(this.vt.isPaused()||this.tw.playCurrent(),this.vt.setSeeking(!1),this.ow.syncViewState())},t.prototype.Sw=function(t){this.vt.castState&&this.vt.castState.connected||this.tw.seekCurrent(t)},t.prototype.Eg=function(t){this.vt.bitrate=t},t.prototype.Tw=function(t){this.$b.publish(f.WARNING,t)},t.prototype.og=function(t){this.vt.isLoading()||(this.vt.setLoading(!0),this.ow.syncViewState());var i=this.getCurrentMediaItem();if(i){this.$b.publish(f.PROFILE_END,f.METRICS.PLAYBACK_STALLED);var n=this.q_.getItem(f.METRICS.PLAYBACK_STALLED);n&&(this.$b.publish(f.PLAYBACK_STALLED,n.timeDiff?n.timeDiff/1e3:""),this.q_.removeItem(n)),this.rw.recover(i),this.$b.publish(f.RECOVERY_START,t)}},t.prototype.Hw=function(t){if(this.iw.recovering){var i=this.vt.getState();this.tw.getCurrentTime()>0&&(this.vt.startTime=this.tw.getCurrentTime()),this.iw.onRecoveryMetadataReady(),this.tw.setSeedStreamIndex(0),this.tw.handleSourceAvailable(t),this.iw.setItemRecoveryStatus(t,d.ItemRecoveryStatus.RECOVERED),i!==_.default.VIDEO||this.gw.paused||this.tw.playCurrent(this.vt.startTime)}else this.iw.setItemRecoveryStatus(t,d.ItemRecoveryStatus.NOT_RECOVERING)},t.prototype.Iw=function(t){},t.prototype.uw=function(){this.iw&&(this.iw.destroy(),this.iw=null)},t.prototype.Vw=function(t){var i=this,n=this.vt&&this.Ny&&this.getCurrentMediaItem();switch(n&&n.is360Video()&&(this.vt.skipOnError=l.SkipOnError.TIMEBASED),this.vt.skipOnError){case l.SkipOnError.ALWAYS:this.Yw(t);break;case l.SkipOnError.TIMEBASED:t(),window.setTimeout((function(){i.Yw()}),1e4);break;case l.SkipOnError.NEVER:default:t()}},t.prototype.Yw=function(t){var i=this.Ny.getNextPosition(!0,this.vt.loop),n=this.Ny.position,e=this.vt.autoplay||this.vt.continuousPlay&&this.gw.hasStartedPlayback;-1!==i&&i!==n?(this.setPlaylistPosition(i,e),this.ow&&this.ow.syncViewState()):-1===i&&this.qw(g.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR)},t.prototype.qw=function(t){var i=this;this.rw.loadMoreItems(t,(function(t){var n=i.Ny.getNextPosition(!0,i.vt.loop),e=i.Ww();i.continuousPlay&&(i.vt.autoplay=!0);var r=i.vt.autoplay||i.continuousPlay&&i.gw.hasStartedPlayback||e;t||-1===n?(i.vt.setState(_.default.END),i.gw.criticalError=i.vt.firstCriticalError,i.ow&&i.ow.syncViewState()):i.setPlaylistPosition(n,r)}),this.mw)},t.prototype.Rw=function(t){var i=this;t&&this.rw.loadMoreItems(g.MoreItemsReason.CONTENT_LOAD_FINISHED,(function(){var t,n=i.Ny,e=n.getCurrentPosition(),r=n.getNextPosition(true,i.vt.loop);-1!==r&&r!==e&&(t=n.getMediaItemAt(r))&&(t.mayUpdateVideoSession(),i.X_.setPreloadItem(t),i.X_.startPreload())}),this.mw)},t.prototype.Lw=function(){this.iw.recover(4)},t.prototype.Cw=function(t){this.ow.updateStreamSyncUI(!0,(null==t?void 0:t.strategy)||"")},t.prototype.Dg=function(){this.ow.updateStreamSyncUI(!1)},t.prototype.Bw=function(t,i,n,e){return S.default.createErr(h.ErrorGroup.Streaming,this.gw,i?h.E_WARNING:h.E_PLAYER,t,n,e)},t.prototype.hw=function(t,i,n,e){return S.default.createErr(h.ErrorGroup.Configuration,this.gw,i?h.E_WARNING:h.E_PLAYER,t,n,e)},t.prototype.Q_=function(){var t=this,i=this.W_;i.on(p.MediaStoreEvent.MEDIA_ITEM_ADDED,(function(i){t.$b.publish(f.MEDIA_ITEM_ADDED,i)}),this),i.on(p.MediaStoreEvent.MEDIA_ITEM_REMOVED,(function(i){t.$b.publish(f.MEDIA_ITEM_REMOVED,i)}),this)},t.prototype.Qw=function(t){return t?{id:t.id,duration:t.duration}:null},t.prototype.nw=function(){var t=this,i=this.tw;i.on(N.PlaybackEvent.PLAY_CAST,(function(){}),this),i.on(N.PlaybackEvent.PAUSE_CAST,(function(){}),this),i.on(N.PlaybackEvent.SEEK_CAST,(function(){}),this),i.on(N.PlaybackEvent.PLAYBACK_REQUEST,(function(){t.$b.publish(f.PLAYBACK_REQUEST)}),this),i.on(N.PlaybackEvent.PLAYBACK_ERROR_BEFORE_METADATA_READY,(function(){t.$b.publish(f.INFO,t.hw(h.PLAYER_CODES.E_NATIVE_PREMATURE_PLAY,!0,"Cannot play before metadata is available"))}),this),i.on(N.PlaybackEvent.AD_CC_LOADED,(function(i){t.aw.enable()}),this),i.on(N.PlaybackEvent.PLAYLIST_NO_MORE_ITEM_TO_PLAY,(function(){t.uw()}),this),i.on(N.PlaybackEvent.PLAYLIST_COMPLETE,(function(){t.qw(g.MoreItemsReason.PLAYLIST_COMPLETE),t.$b.publish(o.ExternalEvt.PLAYLIST_COMPLETE)}),this),i.on(N.PlaybackEvent.PLAYBACK_LOADING,(function(i){t.ow.syncViewState(),t.vt.fullscreen&&t.ow.setFullscreen(!0)}),this),i.on(N.PlaybackEvent.PLAYBACK_PAUSING,(function(){t.ow.syncViewState()}),this),i.on(N.PlaybackEvent.AD_BREAK_STARTED,(function(i){var n;t.ow.onAdBreakStarted(i),t.ow.syncViewState(),null===(n=t.lw)||void 0===n||n.onAdBreakStarted(),t.$b.publish(f.AD_BREAK_STARTED,i)}),this),i.on(N.PlaybackEvent.AD_BREAK_ENDED,(function(i){t.xw(),t.ow.onAdBreakEnded(i),t.ow.syncViewState(),t.lw.onAdBreakEnded(),t.aw.onAdBreakEnded(),t.$b.publish(f.AD_BREAK_ENDED,i),i.offset===M.AdBreakOffset.PRE&&t.$b.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(N.PlaybackEvent.AD_PLAYBACK_STARTED,(function(i){t.Dw(),t.ow.syncViewState(),t.ow.onAdPlaybackStarted(i),t.aw.onAdPlaybackStarted(i),t.bw(g.PluginPlayerEvent.AD_PLAYBACK_STARTED,i),t.X_.setPreloadItem(i.mediaItem),t.$b.publish(f.AD_PLAYBACK_STARTED,i)}),this),i.on(N.PlaybackEvent.AD_PLAYBACK_RESUMED,(function(i){t.$b.publish(f.PLAYBACK_RESUMED,i?i.id:null)}),this),i.on(N.PlaybackEvent.AD_PLAYBACK_ENDED,(function(i){t.ow.onAdPlaybackEnded(i),t.$b.publish(f.AD_PLAYBACK_ENDED,i)}),this),i.on(N.PlaybackEvent.AD_PLAYBACK_PROGRESS,(function(i){t.ow.onAdPlaybackProgress(i);var n=t.gw;t.bw(g.PluginPlayerEvent.AD_PLAYBACK_PROGRESS,{currentTime:n.currentTime,duration:n.duration}),n.duration&&n.currentTime&&n.duration-n.currentTime<t.X_.LIVE_PRELOAD_TIME_SPAN&&t.X_.startPreload(),t.aw.onAdPlaybackProgress(i)}),this),i.on(f.AD_SUBTITLE_TRACK_ADDED,(function(i){t.aw.onAdSubtitleTrackAdded(i)}),this),i.on(f.AD_SUBTITLE_NOT_FOUND,(function(){t.ow.updateClosedCaptionUI(!1)}),this),i.on(N.PlaybackEvent.MEDIA_ITEM_CURRENT,(function(i){t.ow&&t.ow.onMediaItemCurrent(i),t.aw&&t.aw.onMediaItemLoaded(i),t.lw&&t.lw.onMediaItemCurrent(i),t.$b.publish(f.MEDIA_ITEM_CURRENT,i)}),this),i.on(N.PlaybackEvent.MEDIA_ITEM_PLAYBACK_STARTED,(function(i){t.Dw(),t.$b.publish(f.PROFILE_END,[f.METRICS.PLAYBACK_START,f.METRICS.RENDERER_READY_TO_PLAYBACK_START]),t.ow.onMediaItemPlaybackStarted(i),t.aw.onMediaItemPlaybackStarted(),t.bw(g.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_STARTED,t.Qw(i)),t.$b.publish(f.PLAYBACK_STARTED),t.rw.loadMoreItems(g.MoreItemsReason.PLAYBACK_STARTED)}),this),i.on(N.PlaybackEvent.MEDIA_ITEM_PLAYBACK_RESUMED,(function(i){t.$b.publish(f.PLAYBACK_RESUMED,i?i.id:null)}),this),i.on(N.PlaybackEvent.MEDIA_ITEM_PLAYBACK_PROGRESS,(function(i){t.ow.syncViewState(),t.ow.onMediaItemPlaybackProgress(i),i&&i.currentTime&&t.bw(g.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_PROGRESS,i.currentTime,t.Qw(i.playingItem))}),this),i.on(N.PlaybackEvent.PLAYBACK_RESUME,(function(i){t.$b.publish(f.PLAYBACK_RESUMED,i?i.id:null),t.ow.syncViewState()}),this),i.on(N.PlaybackEvent.PLAYBACK_ERROR,(function(i){t.$b.publish(f.PLAYBACK_ERROR,i)}),this),i.on(N.PlaybackEvent.PLAYBACK_INFO,(function(i){t.$b.publish(f.INFO,i)}),this),i.on(N.PlaybackEvent.MEDIA_ITEM_ERROR,(function(i,n){t.$b.publish(f.MEDIA_ITEM_ERROR,i),t.$b.publish(f.ERROR,n)}),this),i.on(N.PlaybackEvent.WAITING,(function(i){if(i){if(t.iw&&t.iw.toggleRecoverer(i),i.value&&!i.ignoreBuffering)t.$b.publish(f.PROFILE_START,f.METRICS.PLAYBACK_STALLED);else if(!i.ignoreBuffering){t.$b.publish(f.PROFILE_END,f.METRICS.PLAYBACK_STALLED);var n=t.q_.getItem(f.METRICS.PLAYBACK_STALLED);n&&t.$b.publish(f.PLAYBACK_STALLED,n.timeDiff?n.timeDiff/1e3:"")}var e=!0===i.value?o.ExternalEvt.BUFFERING_START:o.ExternalEvt.BUFFERING_END;t.$b.publish(e)}}),this),i.on(N.PlaybackEvent.END_FULLSCREEN,(function(){t.ow.setFullscreen(!1),t.ow.handleFullscreenChange(!1)}),this),i.on(N.PlaybackEvent.ENTER_FULLSCREEN,(function(){t.ow.setFullscreen(!0),t.ow.handleFullscreenChange(!0)}),this),i.on(N.PlaybackEvent.PLAYBACK_ERROR_NO_VALID_STREAM,(function(){t.$b.publish(f.ERROR,S.default.createErr(h.ErrorGroup.Service,t.gw,h.E_SAPI_STREAM,h.SAPI_CODES.E_NO_PLAYABLE_STREAMS))}),this),i.on(N.PlaybackEvent.PLAYBACK_ERROR_NO_RENDERER,(function(i){t.$b.publish(f.ERROR,i)}),this),i.on(N.PlaybackEvent.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED,(function(i){t.$b.publish(f.INFO,i)}),this),i.on(N.PlaybackEvent.PLAYBACK_SYNC_VIEW,(function(){t.ow&&t.ow.syncViewState()}),this),i.on(N.PlaybackEvent.MUTE_CHANGED,(function(i){t.vt.mute=i,t.ow.updateVolumeUI(t.vt.volume,t.vt.mute)}),this),i.on(N.PlaybackEvent.VOLUME_CHANGED,(function(i){t.vt.volume=i,t.ow.updateVolumeUI(t.vt.volume,t.vt.mute),t.$b.publish(f.VideoEvent.VOLUMECHANGE)}),this),i.on(N.PlaybackEvent.PLAYBACK_START_BLOCKED,(function(){t.gw.paused=!0,t.gw.loading=!1,t.ow.syncViewState(),t.$b.publish(f.VideoEvent.BLOCKED),t.$b.publish(f.VideoEvent.PAUSE),t.iw.onPlaybackStartBlocked()}),this),i.on(N.PlaybackEvent.PLAYBACK_START_NOT_BLOCKED,(function(){t.iw.onPlaybackStartNotBlocked()}),this),i.on(N.PlaybackEvent.RENDERER_SWITCH,(function(i,n){s.userAgent.mobile&&t.ow.getFullscreen()&&i!==n&&n&&n.exitFullScreen&&n.exitFullScreen(),t.ow.onRendererSwitch(i,n)}),this),i.on(N.PlaybackEvent.RENDERER_TIMEOUT,(function(){t.ow.syncViewState()}),this),i.on(N.PlaybackEvent.RENDERER_CREATED,(function(i){t.ow.addRendererNode(i.create())}),this),i.on(N.PlaybackEvent.MEDIA_ITEM_PLAYBACK_STOPPED,(function(i){t.iw&&t.iw.stopTimers(),t.ow.syncViewState(),t.vt.continuousPlay||t.ow.setFullscreen(!1),t.$b.publish(f.PLAYBACK_STOPPED,i)}),this),i.on(N.PlaybackEvent.PLAYLIST_POSITION_HAS_CHANGED,(function(i){i&&(t.ow.resetState(),t.$b.publish(o.ExternalEvt.PLAYLIST_POSITION_CHANGE,t.Ny.position))}),this),i.on(N.PlaybackEvent.PLAYBACK_ERROR_INCONSISTENT_METADATA,(function(){t.$b.publish(f.WARNING,t.Bw(h.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE,!0),!0)}),this),i.on(N.PlaybackEvent.MEDIA_ITEM_IS_LOADED,(function(i){t.K_(),t.ow.onMediaItemLoaded(i),t.aw&&t.aw.onMediaItemLoaded(i);var n=i.customConfig,e=t.Pc.nielsenConfig;(n&&n.nielsenRequired||e&&e.enableNielsen)&&t.$b.publish(o.ExternalEvt.NIELSEN_REQUIRED),t.$b.publish(f.MEDIA_ITEM_METADATA,i)}),this),i.on(N.PlaybackEvent.SEEKING,(function(){var i=f.VideoEvent.SEEKING;t.ow.onVideoEvent(i),t.$b.publish(i,t.vt.rebufferReason)}),this),i.on(N.PlaybackEvent.SEEKED,(function(){t.vt.rebufferReason=null,t.ow.onVideoEvent(f.VideoEvent.SEEKED),t.$b.publish(o.ExternalEvt.PLAYBACK_SEEK_COMPLETE)}),this),i.on(N.PlaybackEvent.MEDIA_ITEM_PLAYBACK_ENDED,(function(i,n){t.ow.destroyAdsOverlay(),t.aw.onMediaItemPlaybackEnded(),t.$b.publish(f.PLAYBACK_COMPLETE,i),t.$b.publish(f.MEDIA_ITEM_COMPLETE,i),t.bw(g.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_ENDED,t.Qw(i))}),this),i.on(N.PlaybackEvent.STALLED,(function(){t.$b.publish(f.VideoEvent.STALLED)}),this),i.on(N.PlaybackEvent.LOADSTART,(function(){t.$b.publish(f.VideoEvent.LOADSTART)}),this),i.on(N.PlaybackEvent.LOADEDDATA,(function(){t.$b.publish(f.VideoEvent.LOADEDDATA)}),this),i.on(N.PlaybackEvent.LOADEDMETADATA,(function(){t.$b.publish(f.VideoEvent.LOADEDMETADATA)}),this),i.on(N.PlaybackEvent.PLAY,(function(){t.$b.publish(f.VideoEvent.PLAY)}),this),i.on(N.PlaybackEvent.PLAYING,(function(i){var n=f.VideoEvent.PLAYING;t.ow.onVideoEvent(n,i),t.$b.publish(n)}),this),i.on(N.PlaybackEvent.PAUSE,(function(){var i=f.VideoEvent.PAUSE;t.ow.onVideoEvent(i),t.$b.publish(i)}),this),i.on(N.PlaybackEvent.SRC_SWITCHING,(function(){t.$b.publish(f.VideoEvent.SRC_SWITCHING)}),this),i.on(N.PlaybackEvent.SRC_SWITCHED,(function(){t.$b.publish(f.VideoEvent.SRC_SWITCHED)}),this),i.on(N.PlaybackEvent.TIMEUPDATE,(function(i){t.$b.publish(f.VideoEvent.TIMEUPDATE,i&&i.currentTime),t.ow.onPlaybackTimeUpdate()}),this),i.on(N.PlaybackEvent.CLICK,(function(){var i;t.$b.publish(o.ExternalEvt.UI_INTERACT,{srcElement:"video-click"}),s.userAgent.desktop&&(null===(i=t.ow)||void 0===i?void 0:i.controls)&&t.ww()}),this),i.on(N.PlaybackEvent.PLAYBACK_PROGRESS,(function(i){var n=i.currentItem,e=i.currentTime,r=i.duration,s=i.buffered,o=t.ow.getPlayerDimensions();S.default.areDimensionsEqual(o,t.vt.uiState)||t.$b.publish(f.PLAYER_DIMENSION_CHANGE,o),t.aw.onPlaybackProgress(n.id,e,r),t.$b.publish(f.PLAYBACK_PROGRESS,n.id,e,r,s)}),this),i.on(N.PlaybackEvent.PLAYBACK_NEED_MEDIA_ITEM_METADATA,(function(i){t.rw.loadItem(i)}),this),i.on(N.PlaybackEvent.PLAYBACK_NEED_MEDIA_ITEM_SOURCE,(function(i){t.rw.loadSource(i),t.$b.publish(f.MEDIA_ITEM_NEED_SOURCE,i)}),this),i.on(N.PlaybackEvent.AD_METRICS,(function(i){t.$b.publish(f.AD_METRICS,i)}),this),i.on(N.PlaybackEvent.CREATE_OVERLAY_CONTAINER,(function(i){i(t.ow.createAdsOverlay())}),this),i.on(N.PlaybackEvent.SUBTITLE_TRACK_RECEIVED,(function(i){t.aw.onSubtitleTrackReceived(i)}),this),this.Zw(i)},t.prototype.fw=function(){var t=this,i=this.ow;i.on(A.ViewEvent.SYNC_PLAYBACK_STATE,(function(){t.tw.syncPlaybackState()}),this),i.on(A.ViewEvent.SYNC_SHOW_AIRPLAY_TARGET_MENU,(function(){t.tw.showAirplayTargetMenu()}),this),i.on(A.ViewEvent.SEEK,(function(i){t.tw.seekCurrent(i)}),this),i.on(A.ViewEvent.SET_VOLUME,(function(i){t.setVolume(i)}),this),i.on(A.ViewEvent.SET_MUTE,(function(i){t.mute=i}),this),i.on(A.ViewEvent.TOGGLE_CC,(function(i,n){t.$b.publish(f.CCEvent.UI_TOGGLE,i,n),t.aw.toggleFromUI(i,n)}),this),i.on(A.ViewEvent.SET_AUDIO_LANGUAGE,(function(i,n){t.$b.publish(f.CONTROLS_AUDIO_CHANGE,i,n);var e=t.getCurrentMediaItem();e&&e.setCurrLanguage(i),t.tw.setAudioLanguage(i)}),this),i.on(A.ViewEvent.UI_INTERACT,(function(i){t.$b.publish(o.ExternalEvt.UI_INTERACT,i)}),this),i.on(A.ViewEvent.SCROLLED_TO_END,(function(){t.rw.loadMoreItems(g.MoreItemsReason.SCROLLED_TO_END)}),this),i.on(A.ViewEvent.PLAYLIST_BOTTOM_HEIGHT_CHANGE,(function(i){t.$b.publish(f.PLAYLIST_BOTTOM_HEIGHT_CHANGE,i)}),this),i.on(A.ViewEvent.TOGGLE_PLAY_PAUSE,(function(){t.ww()}),this),i.on(A.ViewEvent.START_SCREEN_CLICK,(function(){t.zw()}),this),i.on(A.ViewEvent.CC_LANGUAGE_CHANGE,(function(i){t.aw.onLanguageChange(i)}),this),i.on(A.ViewEvent.CC_STYLE_CHANGE,(function(i){t.aw.updateCCStyle(),i&&t.$b.publish(f.CCEvent.UPDATE_STYLE,i)}),this),i.on(A.ViewEvent.OPSS_VISIBILITY_CHANGED,(function(i,n){t.$b.publish(f.OPSS_VISIBILITY_CHANGED,i,n)}),this),i.on(A.ViewEvent.FORWARD_SEEK,(function(){var i=t.tw.getCurrentTime(),n=Math.min(i+t.vt.seekControls.offset,t.duration-1);t.tw.seekCurrent(n)}),this),i.on(A.ViewEvent.BACKWARD_SEEK,(function(){var i=t.tw.getCurrentTime()-t.vt.seekControls.offset;t.tw.seekCurrent(i)}),this),i.on(A.ViewEvent.CUSTOM_ELEMENT,(function(i,n){var e={action:i,label:n};t.$b.publish(o.ExternalEvt.CTRL_CUSTOM_ELEMENT,JSON.stringify(e))}),this),i.on(A.ViewEvent.KEY_CHANGE_VOLUME,(function(i){t.$b.publish(o.ExternalEvt.KEY_CHANGE_VOLUME,i)}),this),i.on(A.ViewEvent.CC_POSITION_FLOAT,(function(i){var n;null===(n=t.aw)||void 0===n||n.ccPositionFloat(i)}),this),i.on(A.ViewEvent.PLAYER_VIEWPORT_CHANGE,(function(i){t.$b.publish(o.ExternalEvt.PLAYER_VIEWPORT_CHANGE,i),t.aw.adjustCCSizeToScreen(i)}),this),i.on(A.ViewEvent.FULLSCREEN_CHANGE,(function(i){t.$b.publish(f.FULLSCREEN_CHANGE,i),t.aw.adjustCCSizeToScreen(i)}),this)},t.prototype.kw=function(){var t=this,i=this.iw;i.on(f.ERROR,(function(i){t.$b.publish(f.ERROR,i)}),this),i.on(f.WARNING,(function(i){t.$b.publish(f.WARNING,i)}),this),i.on(R.RecovererEvent.RECOVERY_START,(function(i){t.og(i)}),this),i.on(R.RecovererEvent.RECOVERY_DISABLED,(function(){t.$b.publish(f.RECOVERY_DISABLED)}),this)},t.prototype.dw=function(){var t=this,i=this.aw;i.on(u.CCControllerEvent.CC_AVAILABILITY_UPDATE,(function(i){t.ow.updateClosedCaptionUI(i)}),this),i.on(u.CCControllerEvent.CC_LIST_FETCHED,(function(i){var n,e;null===(e=null===(n=t.ow)||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.tw.enableMobileNativeCC(i)}),this)},t.prototype.sw=function(){var t=this,i=this.rw;i.on(f.ERROR,(function(i){t.$b.publish(f.ERROR,i)}),this),i.on(f.WARNING,(function(i){t.$b.publish(f.WARNING,i)}),this),i.on(T.MetadataEvent.METADATA_AVAILABLE,(function(i){t.getCurrentMediaItem().equals(i)&&t.ow&&t.ow.syncViewState(),t.$b.publish(f.METADATA_AVAILABLE,i.id),t.pw||(t.pw=!0,t.$b.publish(o.ExternalEvt.PLAYER_READY)),t.lw&&t.lw.onMediaItemLoaded()}),this),i.on(T.MetadataEvent.SOURCE_AVAILABLE,(function(i){t.rw.loadMoreItems(g.MoreItemsReason.SOURCE_LOAD_COMPLETE),t.$w(i)}),this),i.on(T.MetadataEvent.SOURCE_LOAD_FAILED,(function(i,n){var e=t.getCurrentMediaItem();e&&e.key===v.default.createKey(i.id,i.mimetype)&&(t.Xw(e)&&(t.iw.setItemRecoveryStatus(e,d.ItemRecoveryStatus.NOT_RECOVERING),t.iw.onMetadataLoadFailed()),t.$b.publish(f.ERROR,n))}),this),i.on(T.MetadataEvent.API_INFO_AVAILABLE,(function(i){t.$b.publish(f.API_CALLED,i)}),this),this.Zw(this.rw)},t.prototype.Zw=function(t){var i=this;[f.PROFILE_START,f.PROFILE_END].forEach((function(n){t.addEventListener(n,(function(t){i.$b.publish(n,t)}),i)}))},t.prototype.J_=function(){var t=this,i=this.X_;i.on(I.PreloadEvent.START_PRELOAD,(function(i){t.rw.loadSource(i),i.isPreloaded=!0}),this),i.on(I.PreloadEvent.PLAYER_IDLE,(function(){}),this)},t.prototype.$w=function(t){this.Jw(t),this.Xw(t)?this.Hw(t):this.tw.handleSourceAvailable(t)},t.prototype.Xw=function(t){var i=this.getCurrentMediaItem();return t.isRecovering()&&i&&i.equals(t)},t.prototype.Jw=function(t){!(!(t&&t.customConfig&&t.customConfig.meta)||t.customConfig.meta.castable)&&s.userAgent.android&&"dash"===t.streams[0].getType()&&this.$b.publish(f.INFO,S.default.createErr(h.ErrorGroup.Configuration,this.gw,h.E_INFO,h.INFO_CODES.E_DRM_UNSUPPORTED_OS,null,"not castable stream on android"))},t.prototype.Ww=function(){var t,i=this.vt.config;return"media/container"===i.mediaItems[0].mimetype&&(null===(t=i.playlist)||void 0===t?void 0:t.id)&&!i.autoplay},Object.defineProperty(t.prototype,"gw",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),t}();i.default=V},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(531),a=n(2007),c=n(7262),h=n(2694);!function(t){t.AD_VIDEO_START="AdVideoStart",t.AD_VIDEO_FIRST_QUARTILE="AdVideoFirstQuartile",t.AD_VIDEO_MIDPOINT="AdVideoMidPoint",t.AD_VIDEO_THIRD_QUARTILE="AdVideoThirdQuartile",t.AD_VIDEO_COMPLETE="AdVideoComplete",t.AD_VIDEO_CLICK="AdVideoClick"}(s=i.InstreamAdManagerEvent||(i.InstreamAdManagerEvent={}));var f=[s.AD_VIDEO_FIRST_QUARTILE,s.AD_VIDEO_MIDPOINT,s.AD_VIDEO_THIRD_QUARTILE],l=function(t){function i(){var i=t.call(this,"InstreamAdManager")||this;return i.Kw={},i.tO="",i.iO=null,i.iO=new c.default(i),i}return r(i,t),i.prototype.onDateRangeStarted=function(t,i){var n=this.nO(t);n&&this.eO(n,i)},i.prototype.onDateRangeEnded=function(t,i){var n=this.nO(t);n&&this.rO(n,i)},i.prototype.onClick=function(){if(this.sO()&&this.oO()){this.uO();var t=this.aO();u.isString(t)&&window.open(t,"_blank")}},i.prototype.onActiveRendererTimeupdate=function(t){var i=this.Kw[this.tO];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.tO="";else{var r=t-e,s=Math.round(r/n*100)/100;this.cO("firstquartiles",1,s,i),this.cO("midpoints",2,s,i),this.cO("thirdquartiles",3,s,i)}}},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.Kw={}},i.prototype.nO=function(t){var i=h.default.parseRawDataFromAllowedDaterange(t,h.ADS_DATE_RANGE_CLASSNAMES_ALLOWLIST);return i?(i.adID=(null==i?void 0:i.adID)||(null==t?void 0:t.id),i.duration=(null==i?void 0:i.duration)||(null==t?void 0:t.duration),i.events=(null==i?void 0:i.customer_events)||(null==i?void 0:i.events)||{},i):null},i.prototype.eO=function(t,i){var n=t&&t.adID;if(n){this.tO=n;var e=new a.default(t,i);this.Kw[n]=e;var r=e.events.impressions||[];r.length>0&&(e.status.impressions=!0,this.publish(s.AD_VIDEO_START,r))}},i.prototype.rO=function(t,i){var n=t&&t.adID;if(n){var e=this.Kw[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.uO=function(){var t=this.Kw[this.tO],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.sO=function(){var t,i;return!1===(null===(i=null===(t=this.Kw[this.tO])||void 0===t?void 0:t.status)||void 0===i?void 0:i.completes)},i.prototype.oO=function(){var t,i,n=this.Kw[this.tO],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.aO=function(){var t,i=this.Kw[this.tO],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.cO=function(t,i,n,e){var r,s=null===(r=this.Kw[this.tO])||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),a=n(6618),c=n(6389),h=n(1962),f=n(6120),l=n(531),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.Ze=i,e.vt=n,e.W_=n.mediaStore,e}return r(i,t),i.prototype.destroy=function(){this.Ze.removeRelatedCommands(a.CmdName.CMD_METADATA_LOAD),this.Ze.removeRelatedCommands(a.CmdName.CMD_SOURCE_METADATA_LOAD),t.prototype.destroy.call(this)},i.prototype.loadItem=function(t){var i=t.rawItemData;this.Ze.executeCommand(a.CmdName.CMD_METADATA_LOAD,s({mimetype:t.mimetype,mediaItemDataArr:[i]},this.hO()),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.Ny.getItemPosition(t.id)+1;this.publish(h.PROFILE_START,h.METRICS.CMS_SOURCE_REQUEST),this.Ze.executeCommand(a.CmdName.CMD_SOURCE_METADATA_LOAD,s({mimetype:t.mimetype,mediaItemDataArr:[i],playlistPosition:n},this.hO()),this)}},i.prototype.recover=function(t){var i=t.rawItemData;this.Ze.executeCommand(a.CmdName.CMD_SOURCE_METADATA_LOAD,s({mimetype:t.mimetype,mediaItemDataArr:[i],recovering:!0},this.hO()),this)},i.prototype.loadMetadata=function(t){var i,n=this;if((i=t&&t.length?t:this.Ny.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.fO(e)&&this.publish(h.PROFILE_START,h.METRICS.CMS_REQUEST),Object.keys(r).forEach((function(t){n.Ze.executeCommand(a.CmdName.CMD_METADATA_LOAD,s({mimetype:t,mediaItemDataArr:r[t]},n.hO()),n)}))}},i.prototype.loadMoreItems=function(t,i,n){var e=this.Ny.getItems();e&&e.length&&(this.publish(h.PROFILE_START,h.METRICS.CMS_MORE_ITEMS_REQUEST),this.Ze.executeCommand(a.CmdName.CMD_MORE_ITEMS_LOAD,{cb:i,mimetype:n||e[0].mimetype,reason:t,start:this.Ny.playlistFetchIndex},this))},i.prototype.onSourceMetadataLoadComplete=function(t,i){var n=this;this.publish(h.PROFILE_END,h.METRICS.CMS_SOURCE_REQUEST),this.Ze.removeCommand(t),this.Ny.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.Ny.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.Ze.removeCommand(t);var r=v.default.createErr(n.group,this.vt.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.Ze.removeCommand(t),this.lO(i),this.fO(i)&&this.publish(h.PROFILE_END,h.METRICS.CMS_REQUEST),this.Ny.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.Ny.updateMediaItemsState(i,n)},i.prototype.onMetadataLoadInfo=function(t,i){i&&this.publish(o.API_INFO_AVAILABLE,i)},i.prototype.onMetadataLoadError=function(t,i){this.Ze.removeCommand(t);var n=v.default.createErr(c.ErrorGroup.Configuration,this.vt.playbackState,c.E_WARNING,i.subcategory,i.message);this.publish(h.WARNING,n)},i.prototype.onMoreItemsLoadComplete=function(t,i){this.Ze.removeCommand(t),this.publish(h.PROFILE_END,h.METRICS.CMS_MORE_ITEMS_REQUEST);var n=this.Ny;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.Ze.removeCommand(t);var n=v.default.createErr(c.ErrorGroup.Configuration,this.vt.playbackState,i.category,i.subcategory,null,i.debugMessage);this.publish(h.INFO,n)},i.prototype.fO=function(t){var i=this.Ny.getCurrentItem();return i&&t&&t.length&&t.some((function(t){return t.id===i.id}))},i.prototype.hO=function(){var t=this.vt,i={autoplay:t.autoplay,privacyConsent:t.consent,rendererCapabilities:t.capabilities,rendererTypes:t.rendererTypes,thumbnailDimensions:t.thumbnailDimensions},n=this.Ny.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.lO=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,"Ny",{get:function(){return this.vt.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),a=n(3872),c=n(954),h=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.un=i,e.vt=n,e.vO=!1,!e.un||!e.vt)throw new Error("[PauseHandler] Invalid arguments");var r=e.dO=Object.assign({},e.vt.backgroundPause);return e.dO.timeToPause=r.timeToPause?1e3*r.timeToPause:f,e.pO=r.onMute||r.onUnmute,e.dO.suspendStreamingTime=r.suspendStreamingTime?1e3*r.suspendStreamingTime:l,e.dO.backgroundSuspendStreaming=!0,e.bO=new a.Timer(r.timeToPause,e.mO,e,1),e.gO=new a.Timer(r.suspendStreamingTime,e.yO,e,1),e._O=!1,e}return r(i,t),i.prototype.destroy=function(){this.bO.destroy(),this.gO.destroy()},i.prototype.onPlaybackStart=function(){this.vO=!0},i.prototype.onPlaybackPlaying=function(t){if(this.vO&&!t&&this.wO())return this.vO=!1,void this.OO();this.vO=!1,this.vt.getPauseReason()===h.PauseReason.BACKGROUND&&u.userAgent.chrome&&this.un.seek(this.un.getCurrentTime())},i.prototype.onVisibilityChange=function(t){t?(this.bO.reset(),this.gO.reset(),this.EO()):this.wO()&&(this.vt.isAd()?this.OO():this.jO())},i.prototype.suspendStreaming=function(){this.Wy()&&(this._O=!0,this.vt.rebufferReason=c.REBUFFERING_REASON.LONG_PAUSE,this.publish(s.SUSPEND_STREAMING))},i.prototype.resumeStreaming=function(){this.gO.reset(),this.Wy()&&this._O&&(this.publish(s.RESUME_STREAMING),this._O=!1)},i.prototype.scheduleSuspend=function(){this.dO.backgroundSuspendStreaming&&this.gO.start()},i.prototype.yO=function(){this.gO.reset(),this.suspendStreaming()},i.prototype.wO=function(){if(!this.pO)return!1;if(!this.vt.isMediaPlaying())return!1;var t=this.vt.mute;return!(t&&!this.dO.onMute||!t&&!this.dO.onUnmute)},i.prototype.SO=function(){return!(!this.pO||this.vt.isMediaPlaying())&&this.vt.getPauseReason()===h.PauseReason.BACKGROUND},i.prototype.jO=function(){this.bO.start()},i.prototype.mO=function(){this.bO.reset(),this.OO()},i.prototype.OO=function(){this.un.pause({type:c.REQUEST_TYPES.API,action:c.REQUEST_TYPES.BACKGROUND}),this.publish(s.CTRL_PLAYPAUSE,"pause")},i.prototype.EO=function(){this.SO()&&(this.resumeStreaming(),this.un.startPlayback({type:c.REQUEST_TYPES.API,action:c.REQUEST_TYPES.BACKGROUND}),this.publish(s.CTRL_PLAYPAUSE,"play"))},i.prototype.Wy=function(){var t=this.vt.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),a=n(9451),c=n(3194),h=n(9489),f=n(3072),l=n(954),v=n(1962),d=n(595),p=n(8103),b=n(440),m=n(1044),g=n(101),y=n(4685),_=n(5244),w=n(727),O=n(2694),E=n(1204),j=n(2878),S=n(531),A=n(6342),M=n(2657),T=n(6535),N=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_PLAYBACK_STARTED="pbcAdBreakItemStarted",t.AD_PLAYBACK_RESUMED="pbcAdBreakItemResumed",t.AD_PLAYBACK_PROGRESS="pbcAdBreakItemProgress",t.AD_PLAYBACK_ENDED="pbcAdPlaybackEnded",t.AD_BREAK_ERROR="pbcAdBreakItemError",t.AD_CC_LOADED="pbcAdCCLoaded",t.CREATE_OVERLAY_CONTAINER="pbcCreateOverlayContainer",t.AD_METRICS="adMetrics",t.SUBTITLE_TRACK_RECEIVED="pbcSubtitleTrackReceived",t.IN_STREAM_AD_CLICK="pbcInStreamAdClick"}(o=i.PlaybackEvent||(i.PlaybackEvent={}));var I=function(t){function i(i,n,e,r){var s=t.call(this,"PlaybackController")||this;return s.AO=!1,s.MO=!0,s.TO=!1,s.NO=!1,s.IO=!1,s.RO=!1,s.LO=!1,s.CO=null,s.kO=null,s.DO=!1,s.PO=!1,s.vt=i,s.$b=n,s.xO={},s.UO=new h.RendererController(i,n,e,r),s.FO(),s.gw=new m.default,s.vt.setPlaybackState(s.gw),s.BO=new c.AdPlaybackController(i,e),s.zO(),s.VO=new M.default(s,s.vt),s.GO(),s.HO=new T.default(s.vt),s.YO(),s.$i=new w.default(s),s.iw=r,s}return r(i,t),Object.defineProperty(i.prototype,"Ny",{get:function(){return this.vt.playlist},enumerable:!1,configurable:!0}),i.prototype.startPlayback=function(t){var i=this;if(void 0===t&&(t=null),!this.gw.criticalError){if(!this.HO.isPlayerVisible())return this.$b.publish(v.PROFILE_START,v.METRICS.DEFERRING_PLAYBACK),this.$i.enQueue(this.startPlayback,t),void(this.gw.shouldPlay=!1);if(this.gw.shouldPlay=!0,this.VO.resumeStreaming(),this.vt.getState()===_.default.VIDEO)return this.getPlayingItem()instanceof d.default&&!this.gw.hasCurrentItemPlayed&&this.BO.resumeClientAdStartTimer(),void this.qO(0);var n=this.WO();if(n&&this.vt.rendered&&!this.gw.attemptingPlayback())if(this.vt.autoplay||this.AO||(this.AO=!0,this.publish(v.PROFILE_START,v.METRICS.CLICK_TO_START)),this.vt.castState&&this.vt.castState.connected)this.publish(o.PLAY_CAST);else{if(t&&(this.vt.requestType=t.type,t.action&&A.default.isValidRequestAction(t.action)&&(this.vt.requestAction=t.action)),!this.QO())return this.vt.showStartScreen=!0,this.vt.autoplay=!1,void this.enterInitState();this.vt.waitingForUserTap?this.RO||(this.RO=!0,this.ZO=this.once(v.TOUCH_TO_PLAY_RESTRICTION_REMOVED,(function(){i.RO=!1,i.startPlayback(t)}),this)):(this.$O=null,this.vt.isPaused()?this.playCurrent():E.default.autoplaySupported||n.fetchFinished()?this.XO(n):this.publish(o.PLAYBACK_ERROR_BEFORE_METADATA_READY))}}},i.prototype.playCurrent=function(t){this.vt.setState(_.default.VIDEO),this.iw.enable()||this.UO.play(t)},i.prototype.handleSourceAvailable=function(t){var i=this.WO();i&&t&&(i.equals(t)?this.gw.playingItem instanceof d.default?this.UO.handleAdvancePreparePreloadNextRenderer(t):(this.BO.prepareAdsForItem(t),this.JO(t)):this.UO.handleAdvancePreparePreloadNextRenderer(t))},i.prototype.handleAdBreakResolved=function(t,i){this.BO.handleAdBreakResolved(t,i)},i.prototype.getRendererController=function(){return this.UO},i.prototype.handleCriticalError=function(t){this.xw(),this.gw.criticalError=t,this.KO(),this.UO.endVideo(),this.UO.stopMedia()},i.prototype.pause=function(t){if(this.gw.shouldPlay=!1,this.gw.hasRendererPlayCalled&&this.vt.rendered)if(!1!==this.gw.hasRendererPlaybackStarted){var i=this.vt.castState;if(i&&i.connected&&!i.paused)this.publish(o.PAUSE_CAST);else{if(this.ZO)return this.removeEventListener(v.TOUCH_TO_PLAY_RESTRICTION_REMOVED,this.ZO),void delete this.ZO;if(this.vt.setRequestInfo(t),this.gw.attemptingPlayback())this.getPlayingItem()instanceof d.default&&!this.gw.hasCurrentItemPlayed&&this.BO.pauseClientAdStartTimer(),this.pauseCurrent(),this.xw(),this.gw.hasCurrentItemPlayed&&this.VO.scheduleSuspend()}}else this.PO=!0},i.prototype.pauseCurrent=function(){this.iw.disable(),this.UO.pause()},i.prototype.seek=function(t){this.vt.rendered&&(this.vt.castState&&this.vt.castState.connected?this.publish(o.SEEK_CAST,t):this.vt.getState()===_.default.VIDEO&&this.UO.seek(t))},i.prototype.seekCurrent=function(t){if(this.vt.rendered&&this.vt.getState()===_.default.VIDEO){var i=this.tE(t);this.seek(i)}},i.prototype.syncPlaybackState=function(){this.UO.syncPlaybackState()},i.prototype.getRawCurrentTime=function(){return this.UO.getCurrentTime()},i.prototype.getCurrentTime=function(){return this.Hp||0},i.prototype.getCurrentDate=function(){return this.UO.getCurrentDate()},i.prototype.rewindAfterEnd=function(t){this.UO.rewindAfterEnd(t)},i.prototype.getRawDuration=function(){return this.UO.getDuration()},i.prototype.getDuration=function(){var t=this.getPlayingItem();if(!t){var i=this.WO();return i?i.duration:NaN}if(t instanceof b.default)return t.duration;if(t instanceof d.default){var n=this.getRawDuration();return isNaN(n)?t.duration:n}return NaN},i.prototype.showAirplayTargetMenu=function(){this.UO.showAirplayTargetMenu()},i.prototype.setQuality=function(t){this.UO.setQuality(t)},i.prototype.setVolume=function(t,i){if(void 0===i&&(i=!1),i)this.UO.setVolume(t);else{var n=this.vt.volume;this.vt.volume=t,this.UO.setVolume(t),this.$b.publish(v.CTRL_VOLUME,n),this.$b.publish(f.ExternalEvt.PLAYER_VOLUME_CHANGE,t)}},i.prototype.setMute=function(t){this.vt.mute=t,this.UO.setMute(t),this.$b.publish(f.ExternalEvt.PLAYER_MUTE_CHANGE,t)},i.prototype.setAudioLanguage=function(t){this.UO.setAudioLanguage(t)},i.prototype.stopMedia=function(){this.UO.stopMedia()},i.prototype.enableMobileNativeCC=function(t){this.UO.enableMobileNativeCC(t)},i.prototype.resumeContinuousPlay=function(t){this.vt.continuousPlay=!0;var i={skipWatchedVideos:this.vt.skipWatchedVideos};if(this.vt.getState()===_.default.END){var n=this.Ny.getNextPosition(this.vt.continuousPlay,this.vt.loop,i);-1!==n&&this.setPlaylistPosition(n,!0,t)}},i.prototype.setPlaylistPosition=function(t,i,n){if(this.vt.rendered){var e=this.Ny,r=this.WO(),s=e.getMediaItemAt(t);if(!(r&&r.equals(s)&&this.gw.isInitializing())){this.stopCurrentPlayback(n),this.vt.errors=[],this.gw.criticalError=null,e.position=t;var u=this.WO();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.iE(t)},i.prototype.enterInitState=function(){this.vt.setState(_.default.INIT),this.vt.resetPlaybackStates(),this.vt.rebufferReason=null,this.publish(o.PLAYBACK_SYNC_VIEW)},i.prototype.getPlayingItem=function(){return this.nE()},i.prototype.setSeedStreamIndex=function(t){this.UO.setSeedStreamIndex(t)},i.prototype.stopCurrentPlayback=function(t){var i,n=this.getPlayingItem();n instanceof d.default&&n.mediaItem&&"media/container"!==(null===(i=n.mediaItem)||void 0===i?void 0:i.mimetype)?this.BO.handleAdBreakEnded(n):n instanceof b.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.gw.looped=!1,this.vt.startTime=NaN,this.KO(n)),this.gw.playingItem=null;var e=this.WO(),r=e&&e.getStreamType()||null;this.eE(r),this.rE(),this.UO.endVideo(),this.UO.stopMedia()},i.prototype.getActiveRenderer=function(){return this.UO.getActiveRenderer()},i.prototype.suspendStreaming=function(){this.UO&&this.UO.suspendStreaming()},i.prototype.resumeStreaming=function(){this.UO&&this.UO.resumeStreaming()},i.prototype.handleVisibilityChange=function(t){this.$b.publish(v.PROFILE_END,v.METRICS.DEFERRING_PLAYBACK),this.$i.deQueue(this.startPlayback,!0),this.VO.onVisibilityChange(t)},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.BO.destroy(),this.VO.destroy(),this.UO&&this.UO.destroy(),this.HO&&this.HO.destroy(),this.mg&&this.mg.destroy()},i.prototype.onActiveRendererClick=function(){var t;null===(t=this.mg)||void 0===t||t.onClick(),this.publish(o.CLICK)},i.prototype.onActiveRendererPlaying=function(t){this.publish(v.PROFILE_END,v.METRICS.AD_PLUGIN),this.gw.hasCurrentItemPlayed=!0,this.gw.hasRendererPlaybackStarted=!0;var i=this.getPlayingItem();i instanceof d.default&&(i.duration=t&&t.dur||0),this.gw.playingItem=i,this.kO=null,this.gw.videoLoading()&&(a.userAgent.android||(this.vt.setLoading(!1),this.publish(o.PLAYBACK_SYNC_VIEW))),this.vt.isPaused()&&(this.vt.setPaused(!1),this.sE&&clearTimeout(this.sE),i instanceof b.default?this.publish(o.MEDIA_ITEM_PLAYBACK_RESUMED,i):i instanceof d.default&&(this.gw.shouldPlay=!0,this.publish(o.AD_PLAYBACK_RESUMED,i))),i&&!this.xO[i.id]&&this.oE(i),this.VO.onPlaybackPlaying(this.HO.isPlayerVisible()),this.publish(o.PLAYING,i),!0===this.PO&&(this.pause(),this.PO=!1)},i.prototype.onActiveRendererTimeupdate=function(t){var i=t.currentTime,n=t.duration,e=t.buffered;a.userAgent.android&&!this.NO&&(this.vt.setLoading(!1),this.publish(o.PLAYBACK_SYNC_VIEW),this.NO=!0);var r=this.getPlayingItem();if(this.gw.playingItem=r,this.gw.currentRawTime=i,r&&(this.uE(r,i),r instanceof b.default&&(r.position=i),S.isNumber(i)&&S.isNumber(n)&&!(i>n+1))){if(r.getDuration()||r.isLive()||r.setDuration(n),this.gw.duration=this.getDuration(),this.vt.isLoading()&&(!a.userAgent.safari||a.userAgent.safari<6)){this.$O?i-this.$O>=1.5&&(this.$O=null,this.vt.setLoading(!1),this.publish(o.PLAYBACK_SYNC_VIEW)):this.$O=i}else this.$O=null;var s={playingItem:r,currentTime:i,duration:n,buffered:e};r instanceof b.default?(this.publish(o.MEDIA_ITEM_PLAYBACK_PROGRESS,s),this.mg&&this.mg.onActiveRendererTimeupdate(this.Hp)):r instanceof d.default&&this.publish(o.AD_PLAYBACK_PROGRESS,s),isNaN(this.getSyncOffset())&&-1!==this.getSyncState()&&this.DO&&this.$b.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()===N.ItemRecoveryStatus.RECOVERED&&(this.vt.rebufferReason=null)}},i.prototype.onActiveRendererSeeking=function(t){null===this.kO&&(this.kO=this.gw.currentRawTime),this.vt.setLoading(!0),this.publish(o.SEEKING,t)},i.prototype.onActiveRendererSeeked=function(t){this.vt.setLoading(!1),this.$O=null,this.kO=null,this.CO||this.publish(o.SEEKED,t)},i.prototype.onActiveRendererPlaybackEnded=function(){var t=this.getPlayingItem();t instanceof d.default&&this.BO.handleAdPlaybackEnded(t),this.gw.hasRendererPlaybackStarted=!1},i.prototype.onActiveRendererEnded=function(){this.gw.playingItem=null;var t=this.getPlayingItem();this.uE(t,0),t instanceof b.default?this.aE(t):t instanceof d.default&&this.BO.handleAdBreakEnded(t)},i.prototype.onActiveRendererPause=function(){this.vt.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 b.default?this.publish(o.MEDIA_ITEM_ERROR,i,t):i instanceof d.default&&this.cE(i,t)},i.prototype.onActiveRendererInfo=function(t){this.publish(o.PLAYBACK_INFO,t)},i.prototype.onActiveRendererWaiting=function(t){if(t){if(!a.userAgent.tv){var i=t.value;this.vt.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.UO,n=t&&S.isBoolean(t.mute)?t.mute:i.getMuted(),e=t&&S.isNumber(t.volume)?t.volume:i.getVolume();n!==this.vt.mute&&this.publish(o.MUTE_CHANGED,n),e!==this.vt.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.onActiveRendererEndFullscreen=function(){this.publish(o.END_FULLSCREEN)},i.prototype.onActiveRendererEnterFullscreen=function(){this.publish(o.ENTER_FULLSCREEN)},i.prototype.onActiveRendererAdCCLoaded=function(t){this.publish(o.AD_CC_LOADED)},i.prototype.onActiveRendererPipModeChanged=function(t){var i;(null===(i=this.Uy)||void 0===i?void 0:i.pip)&&(this.vt.uiState.isPIP="picture-in-picture"===t,this.$b.publish(v.PIP_MODE_CHANGE,t))},i.prototype.onActiveRendererDaterangeStarted=function(t){this.$b.publish(v.DATERANGE_STARTED,t),this.DO=O.default.isInWatchTogetherDateRange(t),this.mg||(this.mg=new g.default),this.mg.onDateRangeStarted(t,this.Hp)},i.prototype.onActiveRendererDaterangeEnded=function(t){this.$b.publish(v.DATERANGE_ENDED,t),this.DO=!1,this.mg&&this.mg.onDateRangeEnded(t,this.Hp)},i.prototype.onActiveRendererSubtitleTrackReceived=function(t){this.publish(o.SUBTITLE_TRACK_RECEIVED,t)},i.prototype.getSyncOffset=function(){return this.UO.getSyncOffset()},i.prototype.getSyncState=function(){return this.UO.getSyncState()},i.prototype.startSync=function(){this.UO.startSync()},i.prototype.stopSync=function(){this.UO.stopSync()},i.prototype.hE=function(t){this.vt.resetPlaybackStates(),this.vt.setState(_.default.VIDEO),this.vt.setLoading(!0),this.publish(o.PLAYBACK_LOADING,t)},i.prototype.fE=function(){this.vt.setPaused(!0),this.publish(o.PLAYBACK_PAUSING)},i.prototype.XO=function(t){if(this.Uy=t,this.lE(),this.vt.resetPlaybackStates(),this.publish(v.PROFILE_START,v.METRICS.PLAYBACK_START),this.VO.onPlaybackStart(),t.isAdContainer()){if(this.BO.startTracking(t),t.adBreaks&&t.adBreaks.length||!t.adConfig)t.hasNativeAd()?this.BO.playClientAdBreaks(t,p.AdBreakOffset.ADONLY):t.hasStreams()&&this.Rn(t);else{var i=t.hasStreams()?p.AdBreakOffset.PRE:p.AdBreakOffset.ADONLY;this.BO.prepareAdsForItem(t),this.BO.playClientAdBreaks(t,i)}this.publish(o.PLAYBACK_SYNC_VIEW)}else{if(t.hasSource())return this.Rn(t),void this.publish(o.PLAYBACK_SYNC_VIEW);this.vt.setState(_.default.WAITING),this.vt.setLoading(!0),this.IO=!0,this.publish(o.PLAYBACK_NEED_MEDIA_ITEM_SOURCE,t),this.publish(o.PLAYBACK_SYNC_VIEW)}},i.prototype.toggleFullscreen=function(t){var i=this.getActiveRenderer();i&&i.type===y.RendererType.AD_PLUGIN&&i.setFullscreen(t)},i.prototype.nE=function(){var t=this.UO.getActiveRenderer();return t?t.getPlayableItem():null},i.prototype.JO=function(t){var i,n=this;if(t.hasLiveStreams()&&t.hasLiveStateForVod())this.publish(o.PLAYBACK_ERROR_INCONSISTENT_METADATA);else{if(this.gw.loadedItem=t,t.customConfig&&t.customConfig.meta&&t.customConfig.meta.videoMarkers){var e=t.customConfig.meta.videoMarkers.markers;e&&e.length>0&&this.$b.publish(f.ExternalEvt.MARKERS_RECEIVED,((i={})[t.id]=e,i))}if(t.hasMetadata())this.gw.attemptingPlayback()||this.LO||this.vt.firstCriticalError||this.enterInitState();else if(!(this.vt&&this.Ny&&this.WO()).equals(t))return;var r=t.position||this.vt.startTime;this.UO.prepareNextRenderer(t,(function(i){if(i)return n.xw(),void(j.default.isHtml5MseAvailable()?n.publish(o.PLAYBACK_ERROR_NO_RENDERER,i):n.publish(o.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED,i));if(n.TO=!1,n.UO.setItemNextRenderer(t,r))if(n.IO){if(n.IO=!1,!n.QO())return void n.publish(o.PLAYBACK_START_NOT_ALLOWED);n.Rn(t)}else n.UO.preloadNextRenderer();else n.publish(o.PLAYBACK_ERROR_NO_VALID_STREAM)})),this.publish(o.MEDIA_ITEM_IS_LOADED,t),this.LO=!1}},i.prototype.Rn=function(t){t===this.WO()&&(this.vE()||(this.vt.setState(_.default.VIDEO),this.vt.setLoading(!0),this.publish(o.PLAYBACK_REQUEST,t.id),this.gw.hasStartedPlayback=!0,this.MO=!1,this.BO.prepareAdsForItem(t),this.BO.startTracking(t),this.publish(v.PROFILE_START,v.METRICS.AD_PLUGIN),this.BO.playClientAdBreaks(t,p.AdBreakOffset.PRE),this.publish(o.PLAYBACK_SYNC_VIEW)))},i.prototype.dE=function(t){var i=this;if(this.lE(),t===this.WO()){this.eE(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.vt.startTime||0;t.isLongForm()&&isNaN(this.vt.startTime)&&t.position>0&&(this.vt.isResumingFromSavedPosition=!0,n=t.position),this.UO.prepareNextRenderer(t,(function(e){e?i.xw():i.UO.setItemNextRenderer(t,n)?i.UO.switchAndPlayNextRenderer(n):i.publish(o.PLAYBACK_ERROR_NO_VALID_STREAM)}))}},i.prototype.pE=function(t){var i=this;this.UO.prepareNextRenderer(t,(function(n){i.UO.setItemNextRenderer(t)?t.type===p.AdBreakType.LINEAR?i.UO.switchAndPlayNextRenderer():i.UO.playNextRendererInParallel():i.cE(t)}))},i.prototype.qO=function(t){this.playCurrent(t),this.UO.setPIPMode(this.Uy.pip),this.gw.hasCurrentItemPlayed||this.gw.state===_.default.END||this.hE(t),this.gw.hasRendererPlayCalled=!0},i.prototype.QO=function(){if(!this.MO)return!0;var t=this.WO();return!(this.vt.requestType===l.REQUEST_TYPES.AUTOPLAY&&this.vt.autoplay&&t&&t.blockAutoplay)&&(!a.userAgent.mobile||this.bE())},i.prototype.bE=function(t){return void 0===t&&(t={}),!(this.vt.requestType!==l.REQUEST_TYPES.CLICK&&!this.vt.isAutoplayAllowed())},i.prototype.lE=function(){var t=this.gw;t.hasCurrentItemPlayed=!1,t.hasRendererPlayCalled=!1,t.hasRendererPlaybackStarted=!1},i.prototype.vE=function(){for(var t=0,i=this.vt.errors;t<i.length;t++){var n=i[t];if(n.category||n.subcategory)return n}return null},i.prototype.xw=function(){this.Xp&&clearTimeout(this.Xp)},i.prototype.GO=function(){var t=this;this.VO&&(this.VO.on(M.PauseHandlerEvents.RESUME_STREAMING,(function(){t.resumeStreaming()}),this),this.VO.on(M.PauseHandlerEvents.SUSPEND_STREAMING,(function(){t.suspendStreaming()}),this),this.VO.on(M.PauseHandlerEvents.CTRL_PLAYPAUSE,(function(i){t.$b.publish(v.CTRL_PLAYPAUSE,i)}),this))},i.prototype.FO=function(){var t=this;this.UO.on(h.RendererControllerEvent.RENDERER_SWITCH,(function(i,n){t.publish(o.RENDERER_SWITCH,i,n)}),this),this.UO.on(h.RendererControllerEvent.RENDERER_TIMEOUT,(function(){t.publish(o.RENDERER_TIMEOUT)}),this),this.UO.on(h.RendererControllerEvent.RENDERER_CREATED,(function(i){t.publish(o.RENDERER_CREATED,i)}),this),this.UO.on(h.RendererControllerEvent.RENDERER_READY_TO_PLAY,(function(i){t.$b.publish(f.ExternalEvt.RENDERER_READY,t.UO.activeRendererType,t.gw.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.gw.shouldPlay?t.qO(i):(t.fE(),t.BO.pauseClientAdStartTimer())}),this),this.mE(),this.gE()},i.prototype.rE=function(){this.xO={}},i.prototype.iE=function(t){t&&(t.mayUpdateVideoSession(),t.useVideoSession(),this.$b.publish(v.VIDEO_REQUEST,!1),this.publish(o.MEDIA_ITEM_CURRENT,t))},i.prototype.KO=function(t){t&&(t.position=0,this.gw.previousItem=t,this.rewindAfterEnd(t.isLive())),this.vt.setState(_.default.END),this.vt.endVideo(),this.vt.resetPlaybackStates()},i.prototype.oE=function(t){if(this.NO=!1,this.xO[t.id]=!0,this.gw.duration=this.getDuration(),t instanceof b.default){this.CO=null,this.vt.startTime=NaN;var i=this.getRawDuration();t.setRawDuration(i),this.publish(o.MEDIA_ITEM_PLAYBACK_STARTED,t,this.getCurrentTime())}else t instanceof d.default&&this.BO.handleAdPlaybackStarted(t)},i.prototype.cE=function(t,i){this.publish(o.AD_BREAK_ERROR,t,i),this.BO.handleAdBreakError(t)},i.prototype.uE=function(t,i){var n;t instanceof b.default&&(n=this.yE(t,i),this.BO.playClientAdBreaks(t,p.AdBreakOffset.OVERLAY,n)),t instanceof d.default&&(n=this._E(t,i)),this.Hp=n,this.gw.currentTime=n},i.prototype.yE=function(t,i){return i},i.prototype._E=function(t,i){return i},i.prototype.tE=function(t){return t},i.prototype.aE=function(t){this.rE(),this.CO=null;var i=this.Ny,n=this.WO();if(n&&n===t){this.BO.onMediaItemPlaybackEnded(t);var e=this.vt.continuousPlay,r=this.vt.loop,s={playlistLoop:this.vt.playlistLoop,skipWatchedVideos:this.vt.skipWatchedVideos,looped:!1,ended:!1},u=i.getNextPosition(e,r,s);if(this.publish(o.MEDIA_ITEM_PLAYBACK_ENDED,t,s),this.vt.stopAtLastFrame)return this.pauseCurrent(),void this.onActiveRendererPause();if(this.KO(n),-1!==u){var a=void 0;(e||r)&&(a={type:l.REQUEST_TYPES.CONTINUOUS,action:l.REQUEST_TYPES.AUTOPLAY}),this.setPlaylistPosition(u,e||r,a),this.gw.looped=s.looped}else this.publish(o.PLAYLIST_COMPLETE);this.publish(o.PLAYBACK_SYNC_VIEW)}},i.prototype.mE=function(){for(var t=0,i=Object.values(h.ActiveRendererEvent);t<i.length;t++){var n=i[t],e="on"+n;this.UO.on(n,this[e],this)}},i.prototype.gE=function(){var t=this.UO;t.on(h.NextRendererEvent.ERROR,this.wE,this),t.on(h.NextRendererEvent.INFO,this.OE,this)},i.prototype.wE=function(t){this.UO.stopNextRenderer(t)},i.prototype.OE=function(t){this.UO.stopNextRenderer(t)},i.prototype.zO=function(){var t=this,i=this.BO;i.on(c.AdPlaybackControllerEvent.AD_BREAK_PLAY,(function(i){t.pE(i)}),this),i.on(c.AdPlaybackControllerEvent.AD_CLIENT_COMPLETED,(function(i,n){switch(i){case p.AdBreakOffset.PRE:t.dE(n);case p.AdBreakOffset.ADONLY:}}),this),i.on(v.AD_SUBTITLE_TRACK_ADDED,(function(i){t.publish(v.AD_SUBTITLE_TRACK_ADDED,s(s({},i),{itemId:t.getPlayingItem().adBreakId}))}),this),i.on(v.AD_SUBTITLE_NOT_FOUND,(function(){t.publish(v.AD_SUBTITLE_NOT_FOUND)}),this),i.on(c.AdPlaybackControllerEvent.AD_CLIENT_TIMEOUT,(function(i,n){if(i===p.AdBreakOffset.PRE)t.dE(n)}),this),i.on(c.AdPlaybackControllerEvent.AD_BREAK_STARTED,(function(i){t.publish(o.AD_BREAK_STARTED,i)}),this),i.on(c.AdPlaybackControllerEvent.AD_BREAK_ENDED,(function(i){var n=i.offset;i.setActive(!1),n==p.AdBreakOffset.ADONLY&&t.aE(i.mediaItem),t.publish(o.AD_BREAK_ENDED,i),t.CO&&(t.seek(t.CO.deferredSeekTime),t.CO=null)}),this),i.on(c.AdPlaybackControllerEvent.AD_PLAYBACK_STARTED,(function(i){t.gw.playingItem=i,t.publish(o.AD_PLAYBACK_STARTED,i)}),this),i.on(c.AdPlaybackControllerEvent.AD_PLAYBACK_ENDED,(function(i){t.publish(o.AD_PLAYBACK_ENDED,i)}),this),i.on(c.AdPlaybackControllerEvent.AD_METRICS,(function(i){t.publish(o.AD_METRICS,i)}),this),i.on(c.AdPlaybackControllerEvent.CREATE_OVERLAY_CONTAINER,(function(i){t.publish(o.CREATE_OVERLAY_CONTAINER,i)}),this)},i.prototype.YO=function(){var t=this;this.HO.on(T.VisibilityEvent.PAGE_VISIBILITY_CHANGED,(function(i){t.handleVisibilityChange(i)}),this)},i.prototype.eE=function(t){this.gw.currentMediaType=t},i.prototype.WO=function(){return this.Ny.getCurrentItem()},i}(u.default);i.PlaybackController=I},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),a=n(954),c=n(1962),h=n(1962),f=n(6342),l=n(9554),v=n(514),d=a.PLAYLIST_POS.BOTTOM,p=a.PLAYLIST_POS.RIGHT,b=a.PLAYLIST_POS.HIDDEN,m={hidden:200,bottom:540,right:627};function g(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 y=function(t){function i(i,n){var e=t.call(this,"PlaylistController")||this;return e.ow=i,e.d_=n,e.EE=i.getRootElement(),e.jE=i.getMainElement(),e.SE=i.getContentNode(),e.vt=i.getModel(),e.$b=i.getEventBus(),e.AE={},e.gt(),e.ME(),e.TE(),e}return r(i,t),i.prototype.destroy=function(){this.NE&&(window.removeEventListener("resize",this.NE),this.NE=null),this.IE&&(this.IE.destroy(),this.IE=null),this.RE(),this.AE&&(this.$b.removeEventListeners(this.AE),this.AE={})},i.prototype.attachUpNextMouseEvents=function(){var t=this;this.LE&&this.LE.addEventListener("mouseover",(function(){g(t.CE).contains("vp-bottom-upnext")||(g(t.CE).add("vp-bottom-upnext"),t.kE.style.top=t.DE()+"px",t.publish(s.UI_INTERACT,{srcElement:"ctrl-next-hover"}),t.publish(s.UI_INTERACT,{srcElement:"ui_pl_nxt_hvr"}))})),this.LE&&this.LE.addEventListener("mouseout",(function(){window.setTimeout((function(){parseInt(window.getComputedStyle(t.PE).zIndex,10)<0&&(g(t.CE).remove("vp-bottom-upnext"),t.kE&&t.kE.removeAttribute("style"))}),100)}))},i.prototype.detachUpNextMouseEvents=function(){var t=this;this.LE&&this.LE.addEventListener("mouseover",(function(){g(t.CE).remove("vp-bottom-upnext"),t.kE&&t.kE.removeAttribute("style")}))},i.prototype.togglePlaylistUI=function(t){if(!this.ow.getFullscreen()&&this.xE&&this.UE!==b){var i=".vp-playlist-mode-"+this.UE,n=this.SE&&this.SE.querySelector(i);switch(t?g(n).add("vp-hide-playlist"):this.SE.clientWidth>m[this.UE]&&g(n).remove("vp-hide-playlist"),this.UE){case p:!0===t?this.jE&&this.jE.removeAttribute("style"):this.FE();break;case d:!0===t?this.SE&&(this.SE.style.height=this.BE.rootElem.height+"px"):(this.SE&&(this.SE.style.height=this.BE.contentElem.height+"px"),this.EE&&(this.EE.style.height=this.BE.rootElem.height+"px"))}}},i.prototype.getPlaylistRootElement=function(){return this.zE},i.prototype.getPlaylistUIPosition=function(){return this.UE},i.prototype.isPlaylistInStream=function(){return this.VE},i.prototype.isPlaylistShown=function(){return this.xE},i.prototype.onMediaItemLoaded=function(){this.xE&&(this.GE?this.HE.syncView():this.YE())},i.prototype.onMediaItemCurrent=function(t){this.xE&&(this.qE(),this.HE&&this.HE.onMediaItemCurrent())},i.prototype.onAdBreakStarted=function(){this.xE&&this.WE(!1)},i.prototype.onAdBreakEnded=function(){this.qE()},i.prototype.ME=function(){this.xE&&(this.vt.continuousPlay=!0,this.QE(),this.AE[c.FULLSCREEN_CHANGE]=this.$b.addEventListener(c.FULLSCREEN_CHANGE,this.ZE,this),this.AE[h.VideoEvent.ENDED]=this.$b.addEventListener(h.VideoEvent.ENDED,this.$E,this)),this.XE&&(this.IE=new v.default(this.XE,this.JE.bind(this)))},i.prototype.$E=function(){this.WE(!1)},i.prototype.qE=function(){this.xE&&(this.Ny.isEndOfPlaylist()?this.WE(!1):this.WE(!0))},i.prototype.WE=function(t){if(this.xE&&this.KE!==t&&this.LE){var i=this.Ny,n=i?i.getCurrentItem():null;t&&n&&!n.isLive()?g(this.LE).remove("disabled"):g(this.LE).add("disabled"),this.KE=t}},i.prototype.JE=function(){if(u.userAgent.mobile&&this.tj)return this.tj.style.display="block",void(g(this.tj).contains("open")?(g(this.CE).remove("vp-bottom-upnext"),g(this.tj).remove("open"),this.kE&&this.kE.removeAttribute("style")):(g(this.tj).add("open"),this.kE&&(this.kE.style.top=this.DE()+"px"),g(this.CE).add("vp-bottom-upnext")));this.HE.upNextBtnTapHandler()},i.prototype.ij=function(){var t=this.ow.controls;return!!t&&(this.CE=t&&t.getBottomBar(),this.kE=this.CE.querySelector(".vp-bottom-container"),this.XE=this.CE.querySelector(".vp-upnext-btn"),this.tj=this.CE.querySelector(".vp-upnext-playlist"),this.LE=this.CE.querySelector(".vp-upnext-container"),!0)},i.prototype.gt=function(){var t,i=this.vt.playlistUIConfig;if(this.GE=!1,this.UE=null,this.VE=!1,this.xE=!1,i&&!0===i.show&&(this.UE=i.position,!0===i.inStream&&this.UE===p&&(this.VE=!0),!u.userAgent.mobile)){t=this.EE&&this.EE.clientWidth;var n=m[this.UE];t&&t>=n&&(this.xE=!0)}this.xE&&(this.ij()||(this.xE=!1))},i.prototype.QE=function(){var t,i,n,e=this;if(this.xE&&this.UE!==b){switch(this.BE={rootElem:{height:null,width:null},contentElem:{height:null,width:null},mainElem:{height:null,width:null}},this.UE){case d:t=this.EE?this.EE.clientHeight:0,i=t+83,this.EE&&(this.EE.style.height=i+"px"),this.SE&&(this.SE.style.height=t+"px"),this.nj=t+"px",this.BE.rootElem.height=i,this.BE.rootElem.width=this.EE?this.EE.clientWidth:0,this.BE.contentElem.height=this.SE?this.SE.clientHeight:0,setTimeout((function(){e.publish(s.BOTTOM_HEIGHT_CHANGE,{height:i})}));break;case p:n=(this.SE?this.SE.clientWidth:0)-(this.VE?276:318),this.jE&&(this.jE.style.width=n+"px"),this.BE.rootElem.width=this.EE?this.EE.clientWidth:0,this.BE.mainElem.width=n}this.$b.publish(c.PLAYER_DIMENSION_CHANGE,this.ow.getPlayerDimensions())}},i.prototype.RE=function(){var t;if(this.xE&&this.UE===d)t=(this.EE?this.EE.clientHeight:0)-83,this.EE&&(this.EE.style.height=t+"px"),this.BE.rootElem.height=t,this.publish(s.BOTTOM_HEIGHT_CHANGE,{height:t})},i.prototype.DE=function(){return(this.SE?this.SE.clientHeight:0)-(this.kE?this.kE.clientHeight:0)},i.prototype.YE=function(){if(!u.userAgent.mobile||this.UE===b){switch(this.HE=new l.default(this.$b,this.ow,this.vt,this.d_),this.ej(),this.UE){case b:this.zE=this.HE.create(b),this.PE=this.zE,this.tj&&this.tj.appendChild(this.PE),g(this.LE).remove("hide"),u.userAgent.mobile||this.attachUpNextMouseEvents();break;case d:this.PE=this.HE.create(b),this.zE=this.HE.create(d),this.tj&&this.tj.appendChild(this.PE),this.SE&&this.SE.appendChild(this.zE),g(this.LE).remove("hide"),g(this.tj).add("hide");break;case p:this.PE=this.HE.create(b),this.zE=this.HE.create(p),this.tj&&this.tj.appendChild(this.PE),this.SE&&this.SE.appendChild(this.zE),g(this.LE).remove("hide"),g(this.tj).add("hide")}this.HE.setPlaylistViewSize(),this.GE=!0}},i.prototype.ZE=function(){this.ow.isDocked()||this.UE!==b&&(!0===this.ow.getFullscreen()?this.UE===d?this.SE&&(this.SE.style.height="100%"):this.UE===p&&this.jE&&this.jE.style&&(this.jE&&(this.jE.style.width="100%"),this.jE&&(this.jE.style.zIndex="1")):this.UE===d?this.SE&&(this.SE.style.height=this.nj):this.UE===p&&(this.jE&&(this.jE.style.width=this.BE.mainElem.width),this.jE&&(this.jE.style.zIndex="auto")))},i.prototype.FE=function(){if(!this.ow.getFullscreen())if(this.GE){var t=this.SE?this.SE.clientWidth:0,i=m[this.UE];switch(this.UE){case p:var n=t-(this.VE?276:318);t>=i?(this.jE.style.width=n+"px",this.BE.mainElem.width=n,g(this.zE).remove("vp-hide-playlist")):(this.jE.style.width=t+"px",this.BE.mainElem.width=t,g(this.zE).add("vp-hide-playlist"));break;case d:this.HE&&this.HE.syncPgBtns(),t>=i?g(this.zE).remove("vp-hide-playlist"):g(this.zE).add("vp-hide-playlist")}var e=this.ow.getPlayerDimensions();f.default.areDimensionsEqual(e,this.vt.uiState)||this.$b.publish(c.PLAYER_DIMENSION_CHANGE,e)}else this.gt(),this.ME(),this.xE&&this.YE()},i.prototype.ej=function(){var t=this;this.HE.on(l.PlaylistViewEvent.UI_INTERACT,(function(i){t.publish(s.UI_INTERACT,i)}),this),this.HE.on(l.PlaylistViewEvent.SCROLLED_TO_END,(function(){t.publish(s.SCROLLED_TO_END)}),this)},i.prototype.TE=function(){this.NE=this.FE.bind(this),window.addEventListener("resize",this.NE)},Object.defineProperty(i.prototype,"Ny",{get:function(){return this.vt.playlist},enumerable:!1,configurable:!0}),i}(o.default);i.PlaylistController=y},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),a=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 c=function(t){function i(i){var n=t.call(this,"PreloadManager")||this;return n.$b=i,n.rj=s.IDLE,n.sj=null,n.LIVE_PRELOAD_TIME_SPAN=6,n.$b.addEventListener(a.PRELOAD_START,n.oj,n),n.$b.addEventListener(a.PRELOAD_COMPLETE,n.vr,n),n}return r(i,t),i.prototype.destroy=function(){this.sj=null,this.rj=s.IDLE},i.prototype.startPreload=function(){if(this.rj===s.IDLE){var t=this.uj();this.publish(o.START_PRELOAD,t)}},i.prototype.stopPreload=function(){},i.prototype.setPreloadItem=function(t){this.sj=t},i.prototype.uj=function(){return this.sj},i.prototype.oj=function(){this.rj=s.PRELOADING},i.prototype.vr=function(){this.rj=s.IDLE,this.publish(o.PLAYER_IDLE)},i}(u.default);i.default=c},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=void 0;var s,o=n(1409),u=n(3872),a=n(6389),c=n(1962),h=n(6120),f=n(5244),l=n(531),v=n(6342),d=n(954),p=a.WARNING_CODES,b=a.PLAYER_CODES,m=["200","400","501","430","410"],g=["7","57","304","307"],y=["700","701","710","711","720","721","722","730","731","732","740","750","760"],_=["103","500","502","503","550","403","404","504"],w=["11","12","13","14","27"],O=[a.PLAYER_DRM_CODES.E_LICENSE_REQUEST];!function(t){t.RECOVERY_START="recoveryStart",t.RECOVERY_DISABLED="recoveryDisabled"}(s=i.RecovererEvent||(i.RecovererEvent={}));var E=function(t){function i(i){var n=t.call(this,"Recoverer")||this;return n.vt=i,n.by=!1,n.aj=0,n.cj=null,n.hj=!1,n.fj=!1,n.lj=0,n.vj(),n}return r(i,t),i.prototype.enable=function(){return 0===this.lj||this.fj?(this.fj=!0,!1):(this.fj=!0,this.dj(this.lj),!0)},i.prototype.disable=function(){this.fj=!1},i.prototype.recover=function(t){var i,n;if(this.fj){var e=this.gw;if(!e.ad&&!v.default.isAdBreakOffset(e.currentMediaType)&&!(this.by&&this.lj!==t||this.hj)){if(this.pj(this.bj),this.bj=null,!this.by){this.by=!0;var r="recovering;"+(this.cj?(null===(i=this.cj)||void 0===i?void 0:i.rep)+";"+(null===(n=this.cj)||void 0===n?void 0:n.message):"");this.publish(c.WARNING,v.default.createErr(a.ErrorGroup.Streaming,e,a.E_WARNING,p.E_RECOVERY_STATUS,null,r))}4===t&&this.publish(c.WARNING,v.default.createErr(a.ErrorGroup.Streaming,e,a.E_WARNING,p.E_RECOVER_LONG_PAUSE,null,"Recovering from long pause on live")),this.lj=t||3,2!==this.lj&&(this.cj=null);var o=this.WO();o&&(o.failoverCount++,o.recoveryStatus=h.ItemRecoveryStatus.RECOVERING,this.publish(s.RECOVERY_START,this.vt.rebufferReason))}}else this.lj=t},i.prototype.destroy=function(){this.mj()},i.prototype.stopTimers=function(){this.pj(this.bj),this.bj=null,this.pj(this.gj),this.gj=null,this.pj(this.yj),this.yj=null},i.prototype.toggleRecoverer=function(t){t&&t.value?this.dj(1):(this.by&&this.publish(c.WARNING,v.default.createErr(a.ErrorGroup.Streaming,this.gw,a.E_WARNING,p.E_RECOVERY_STATUS,null,"recovered")),this.mj())},i.prototype.onRecoveryMetadataReady=function(){if(this.lj)this.publish(c.WARNING,v.default.createErr(a.ErrorGroup.Streaming,this.gw,a.E_WARNING,p.E_PLAYBACK_FROZEN_DETECTED,null,this._j())),this.vt.getState()!==f.default.VIDEO?this.mj():this.fj?this.vj():(this.mj(),this.publish(s.RECOVERY_DISABLED));else{var t=this.WO();t&&t.failoverCount--}},i.prototype.onMetadataLoadFailed=function(){if(!this.fj)return this.publish(s.RECOVERY_DISABLED),void this.r_();this.by&&1===this.lj&&this.wj(),this.by=!1},i.prototype.onPlaybackStartBlocked=function(){this.hj=!0,this.mj()},i.prototype.onPlaybackStartNotBlocked=function(){this.hj=!1},i.prototype.setItemRecoveryStatus=function(t,i){t.recoveryStatus=i},Object.defineProperty(i.prototype,"recovering",{get:function(){return this.by},enumerable:!1,configurable:!0}),i.prototype.onError=function(t){var i=this,n=2;if(t&&(t.isRecoverable=!this.Oj(t),t.isRecoverable))if(this.aj>10)this.Ej();else{_.indexOf(t.subcategory.toString())>0?n=9:t.subcategory.toString()!==b.E_NATIVE_SRC_NOT_SUPPORTED&&t.subcategory.toString()!==b.E_NATIVE_ABORTED||(n=5);var e=a.DRM_DEBUG_CODES;switch(t.debugMessage){case e.KEY_SESSION_FAILED:n=6;break;case e.LICENSE_REQUEST_FAILED:n=7;break;case e.CERT_LOAD_FAILED:n=8}if(this.aj++,this.cj=t,"400"===t.category.toString()&&"7"===t.subcategory.toString())return this.pj(this.gj),this.gj=new u.Timer(1e4*Math.random(),(function(){i.dj(n)}),this,1),void this.gj.start();this.dj(n)}},i.prototype.Oj=function(t){var i=t.category.toString(),n=m.indexOf(i);if(n<0)return!0;var e=t.subcategory.toString();switch(m[n]){case a.E_WARNING:return g.indexOf(e)<0;case a.E_PLAYER:return g.indexOf(e)<0&&y.indexOf(e)<0;case a.E_SAPI_STREAM:return _.indexOf(e)<0;case a.E_PLAYER_JS_HLS:return w.indexOf(e)<0;case a.E_PLAYER_DRM:return O.indexOf(e)<0}return!0},i.prototype.vj=function(){this.jj=5e3*Math.random()+1e4,this.Sj=2e3,this.pj(this.bj),this.bj=null},i.prototype.WO=function(){return this.vt.playlist?this.vt.playlist.getCurrentItem():null},i.prototype.dj=function(t){if(this.fj&&this.Aj(),1===t)return this.jj=this.vt.rebufferReason===d.REBUFFERING_REASON.LONG_PAUSE?3e4:this.jj,void this.Mj(this.jj);this.recover(t)},i.prototype.mj=function(){this.lj=0,this.cj=null,this.r_()},i.prototype.r_=function(){this.vj(),this.stopTimers(),this.by=!1,this.aj=0},i.prototype.Mj=function(t){var i=this;this.pj(this.bj),this.bj=new u.Timer(t,(function(){i.recover(i.lj?i.lj:1)}),this,1),this.bj.start()},i.prototype.wj=function(t){(t=!!l.isNullOrUndefined(t)||t)&&(this.jj+=this.Sj,this.Sj*=2),this.Mj(this.jj)},i.prototype.Aj=function(){var t=this;this.yj||(this.yj=new u.Timer(1e3*this.vt.recoveryFailureTimeout,(function(){t.Ej()}),this,1),this.yj.start())},i.prototype.Ej=function(){var t=v.default.createErr(a.ErrorGroup.Streaming,this.gw,a.E_PLAYER,b.E_RECOVERY_FAILURE,null,this._j());this.publish(c.ERROR,t),this.mj()},i.prototype.pj=function(t){t&&t.destroy(),t=null},i.prototype._j=function(){var t=this.cj,i=this.lj;return 2===i?i+"-"+t.category+"-"+t.subcategory+"-"+t.message:i.toString()},Object.defineProperty(i.prototype,"gw",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),i}(o.default);i.default=E},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,a=n(1409),c=n(9451),h=n(440),f=n(595),l=n(1204),v=n(2878),d=n(531),p=n(6342),b=n(6389),m=n(1279),g=n(3891),y=n(8259),_=n(8696),w=n(6125),O=n(2758),E=n(1600),j=n(9038),S=n(4685),A=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.PLAYBACK_ENDED="ActiveRendererPlaybackEnded",t.ERROR="ActiveRendererError",t.INFO="ActiveRendererInfo",t.LOADEDMETADATA="ActiveRendererLoadedMetadata",t.LOADEDDATA="ActiveRendererLoadedData",t.STALLED="ActiveRendererStalled",t.LOADSTART="ActiveRendererLoadStart",t.PLAY="ActiveRendererPlay",t.PLAYING="ActiveRendererPlaying",t.SEEKING="ActiveRendererSeeking",t.SEEKED="ActiveRendererSeeked",t.TIMEUPDATE="ActiveRendererTimeupdate",t.VOLUMECHANGE="ActiveRendererVolumechange",t.WAITING="ActiveRendererWaiting",t.END_FULLSCREEN="ActiveRendererEndFullscreen",t.ENTER_FULLSCREEN="ActiveRendererEnterFullscreen",t.PIP_MODE_CHANGED="ActiveRendererPipModeChanged",t.PLAY_COMPLETE="ActiveRendererPlayComplete",t.DATERANGE_STARTED="ActiveRendererDaterangeStarted",t.DATERANGE_ENDED="ActiveRendererDaterangeEnded",t.AD_CC_LOADED="ActiveRendererAdCCLoaded",t.SUBTITLE_TRACK_RECEIVED="ActiveRendererSubtitleTrackReceived"}(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 M=function(t){function i(i,n,e,r){var s=t.call(this,"RendererController")||this;return s.d_=e,s.vt=i,s.$b=n,s.iw=r,s.Tj=null,s.Nj=null,s.Ij=null,s.Rj=null,s.Lj={},s.Cj={},s.kj={},s.Dj=s.Pj(),s.xj=!1,s}return r(i,t),Object.defineProperty(i.prototype,"activeRendererType",{get:function(){var t,i;return(null===(i=null===(t=this.Tj)||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.Uj(t),r=e?S.RendererType.AD_PLUGIN:t.rendererType;if(c.userAgent.safari&&t instanceof h.default&&(!t.isLive()||t.license.isDrm)&&(r=S.RendererType.HTML5_RAW),!r){var o=void 0,u=void 0,a=void 0;return v.default.isHtml5MseAvailable()?(o=b.PLAYER_CODES.E_NO_RENDERER_FOUND,u="no renderer type is applicable for the playable item",a=p.default.createErr(b.ErrorGroup.Configuration,this.vt.playbackState,b.E_PLAYER,o,"",u)):(o=b.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED,u="flash renderer is not supported for the playable item",a=p.default.createErr(b.ErrorGroup.Restriction,this.vt.playbackState,b.E_INFO,o,"",u)),void i(a)}var f=this.Fj(t);if(this.Ij!==f)!this.Dj&&this.Tj&&this.Tj.type===r&&this.Tj.type!==S.RendererType.AD_PLUGIN||t.isRecovering()&&this.Tj?this.Nj=this.Tj:(this.Nj=r===S.RendererType.AD_PLUGIN?this.Bj(e):this.zj(r),this.Vj(this.Nj)),this.Ij=f,this.xj=!0,this.Nj.waitForReady((function(t){n.xj=!1,t&&(n.publish(s.RENDERER_TIMEOUT),n.Nj&&n.Gj(n.Nj)),i(t)}));else{if(this.xj)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.Fj(t);if(this.Ij!==e)return this.prepareNextRenderer(t,(function(){n.setItemNextRenderer(t,i)})),!0;var r=this.Fj(t,i);if(this.Rj===r)return!0;if(this.Nj){this.Rj=r;var s=this.Nj.getSyncState(),o=this.Nj.setPlayableItem(t,i,this.iw.recovering);return-1!==s&&this.iw.recovering&&this.Nj.startSync(),o}return!1},i.prototype.preloadNextRenderer=function(t){if(this.Nj&&this.Nj.preload){var i=this.Nj.getPlayableItem();if(i&&(this.vt.preload||t)&&this.Nj.type===S.RendererType.HTML5_HLS){var n={startOffset:i.customConfig&&i.customConfig.playbackStart||NaN,bufferLimit:this.vt.preloadBufferSize||30};this.Nj.preload(n)}}},i.prototype.setSeedStreamIndex=function(t){this.Tj&&this.Tj.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.playNextRendererInParallel=function(){this.Nj&&(delete this.Lj[this.Nj.type],this.Hj(this.Nj),this.Yj(this.Nj),this.Ij=null,this.Rj=null)},i.prototype.switchToNextRenderer=function(t){void 0===t&&(t=!1),this.Nj&&(delete this.Lj[this.Nj.type],this.Hj(this.Nj),this.switchToRenderer(this.Nj,t),this.Ij=null,this.Rj=null)},i.prototype.didRendererTimeOut=function(){return!(!this.Tj||!this.Tj.timedOut)},i.prototype.getActiveRenderer=function(){return this.Tj},i.prototype.getNextRendererNode=function(){return this.Nj&&this.Nj.node||null},i.prototype.syncPlaybackState=function(){this.Tj&&(this.Tj.paused=this.vt.isPaused(),this.Tj.seeking=this.vt.isSeeking())},i.prototype.rewindAfterEnd=function(t){if(this.Tj)if(t)switch(this.Tj.type){case S.RendererType.HTML5_RAW:case S.RendererType.HTML5_HLS:this.Tj.node&&(this.Tj.node.src="")}else this.Tj.seek(0)},i.prototype.play=function(t){this.publish(s.PLAY_CALLED),this.Tj&&this.Tj.play(t),this.qj&&this.qj.play(t)},i.prototype.pause=function(){this.qj&&d.isFunction(this.qj.pause)&&this.qj.pause(),this.Tj&&(this.Tj.type===S.RendererType.HTML5_TV_TIZEN||this.Tj.type===S.RendererType.HTML5_TV_ORSAY||(d.isFunction(this.Tj.pause)?this.Tj.pause():this.Tj.node&&this.Tj.node.pause()))},i.prototype.getCurrentDate=function(){return this.Tj&&this.Tj.getCurrentDate()||0},i.prototype.endVideo=function(){this.qj&&!this.qj.ended&&d.isFunction(this.qj.stop)&&this.qj.stop();var t=this.Tj;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.Tj&&this.Tj.seek(t)},i.prototype.getCurrentTime=function(){return this.Tj?this.Tj.getCurrentTime():0},i.prototype.getDuration=function(){return this.Tj?this.Tj.getDuration():NaN},i.prototype.getMuted=function(){if(this.Tj)return this.Tj.getMuted()},i.prototype.getVolume=function(){return this.Tj?this.Tj.getVolume():NaN},i.prototype.setQuality=function(t){this.Tj&&this.Tj.setQuality(t)},i.prototype.showAirplayTargetMenu=function(){this.Tj&&this.Tj.showAirplayTargetMenu&&this.Tj.showAirplayTargetMenu()},i.prototype.setPIPMode=function(t){var i;null===(i=this.Tj)||void 0===i||i.setPIPMode(t)},i.prototype.setVolume=function(t){this.Tj&&this.Tj.setVolume(t)},i.prototype.setMute=function(t){this.Tj&&this.Tj.setMute(!!t)},i.prototype.setAudioLanguage=function(t){this.Tj&&this.Tj.setAudioLanguage&&this.Tj.setAudioLanguage(t)},i.prototype.stopMedia=function(){if(this.Tj)return this.Tj.detachNode(),this.Tj.stopMedia()},i.prototype.stopNextRenderer=function(t){if(this.Nj)return this.Nj.setError(t),this.Nj.detachNode(),this.Nj.stopMedia()},i.prototype.switchToRenderer=function(t,i){this.Wj(this.Tj);var n=this.Tj,e=n&&n!==t;e&&c.userAgent.mobile&&v.default.exitFullscreen(n.node),this.Qj(t),this.vt.playbackState.rendererType=t.type,this.setVolume(this.vt.volume),this.setMute(this.vt.mute),this.Zj(this.Tj),e&&(n.type===S.RendererType.HTML5_HLS_360||n.type===S.RendererType.HTML5_RAW_360||n.type===S.RendererType.AD_PLUGIN?p.default.classList(n.container).remove("vp-renderer-active"):n.node&&p.default.classList(n.node).remove("vp-renderer-active"),i?this.Gj(n):this.$j(n)),this.Xj(t,!0),t.type===S.RendererType.HTML5_HLS_360||t.type===S.RendererType.HTML5_RAW_360||t.type===S.RendererType.AD_PLUGIN?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.Yj=function(t){this.qj=t,t.setActive(!0),t.play()},i.prototype.enableMobileNativeCC=function(t){this.Tj&&this.Tj.enableMobileNativeCC&&this.Tj.enableMobileNativeCC(t)},i.prototype.handleAdvancePreparePreloadNextRenderer=function(t){var i=this;t&&t.rendererType===S.RendererType.HTML5_HLS&&this.prepareNextRenderer(t,(function(n){n||i.Nj===i.Tj||(i.setItemNextRenderer(t,0),i.preloadNextRenderer(!0))}))},i.prototype.suspendStreaming=function(){this.Tj&&this.Tj.suspendStreaming()},i.prototype.resumeStreaming=function(){this.Tj&&this.Tj.resumeStreaming()},i.prototype.getSyncOffset=function(){return this.Tj?this.Tj.getSyncOffset():NaN},i.prototype.getSyncState=function(){return this.Tj?this.Tj.getSyncState():-1},i.prototype.startSync=function(){var t;null===(t=this.Tj)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.Tj)||void 0===t||t.stopSync()},i.prototype.destroy=function(){this.Tj&&this.Tj.destroy(),this.Nj&&this.Nj.destroy()},i.prototype.Zj=function(t){t&&(this.Jj(t,S.CustomRendererEvent,o,this.Cj),this.Jj(t,S.RendererEvent,o,this.Cj))},i.prototype.Wj=function(t){t&&(t.removeEventListeners(this.Cj),this.Cj={})},i.prototype.Vj=function(t){t&&t!==this.Tj&&this.Jj(t,S.RendererEvent,u,this.kj)},i.prototype.Hj=function(t){t&&(t.removeEventListeners(this.kj),this.kj={})},i.prototype.Jj=function(t,i,n,e){var r=this;if(e)for(var s=function(s){if(i[s]){var u=i[s];e[u]=t.on(u,(function(t){n[s]&&r.publish.call(r,n[s],t)}),o)}},o=this,u=0,a=Object.keys(i);u<a.length;u++){s(a[u])}},i.prototype.Kj=function(t){var i=this.vt,n=this.$b,e=this.Lj[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 w.default(n,i);break;case S.RendererType.HTML5_HLS_360:e=new y.default(n,i);break;case S.RendererType.AD_PLUGIN:e=new j.default(this.d_.getContainer(m.PluginMimeType.MARTINI,m.ContainerType.LINEAR));break;case S.RendererType.HTML5_TV:e=new O.default(n,i);break;case S.RendererType.HTML5_TV_ORSAY:e=new E.default(n,i);break;case S.RendererType.HTML5_TV_TIZEN:e=new A.default(n,i);break;case S.RendererType.HTML5_RAW:default:e=new _.default(n,i)}return this.publish(s.RENDERER_CREATED,e),this.tS(e,t),e},i.prototype.zj=function(t){return this.Kj(t)},i.prototype.Bj=function(t){if(this.Tj&&this.Tj.type===S.RendererType.AD_PLUGIN&&this.Tj.getAdPluginPlayer()===t)return this.Tj;var i=this.zj(S.RendererType.AD_PLUGIN);return i.setAdPluginPlayer(t),i},i.prototype.$j=function(t){var i=[S.RendererType.HTML5_RAW_360,S.RendererType.HTML5_HLS_360,S.RendererType.AD_PLUGIN];if(t){var n=t.type;this.Xj(t,!1),this.Lj[n]||-1!==i.indexOf(n)?t.destroy():this.tS(t,n)}},i.prototype.Xj=function(t,i){t&&(i?(t.detachNode&&t.detachNode(),t.reattachNode&&t.reattachNode()):(t.detachNode&&t.detachNode(),t.stopMedia&&t.stopMedia()))},i.prototype.Uj=function(t){if(!(t instanceof f.default&&t.mimetype))return null;var i=this.d_.getPlugin(m.PluginType.AD,t.mimetype);return i&&d.isAdPluginPlayer(i)?i:null},i.prototype.Fj=function(t,i){var n,e=[];return i||(i=0),e.push(t.rendererType),e.push(i),t instanceof f.default?(e.push("ad"),e.push(t.id),t.mimetype&&e.push(t.mimetype)):t instanceof h.default&&(e.push("mediaItem"),e.push(t.id),(n=t.streams)&&n.length>0&&e.push(n[0].url)),e.join("|")},i.prototype.Pj=function(){var t=c.userAgent.mobile&&!l.default.hasNativeAutoplaySupport;return!(c.userAgent.tv||c.userAgent.ios||t)},i.prototype.Gj=function(t){return delete this.Lj[t.type],t.destroy()},i.prototype.Qj=function(t){t&&(this.Tj=t,t.setActive(!0))},i.prototype.tS=function(t,i){t&&(this.Lj[i]=t,t.setActive(!1))},i}(a.default);i.RendererController=M},6535: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 a=[{prop:"hidden",name:"visibilitychange"},{prop:"mozHidden",name:"mozvisibilitychange"},{prop:"webkitHidden",name:"webkitvisibilitychange"},{prop:"msHidden",name:"msvisibilitychange"}],c=function(t){function i(i){var n=t.call(this,"VisibilityManager")||this;return n.vt=i,n.iS=null,n.nS="hidden",n.eS=null,n.iS=n.rS(),n.iS&&(n.oS=n.oS.bind(n),document.addEventListener(n.iS,n.oS,!1)),n}return r(i,t),i.prototype.destroy=function(){this.iS&&(document.removeEventListener(this.iS,this.oS,!1),this.iS=null)},i.prototype.isPlayerVisible=function(){var t=this.uS();return!(document[this.nS]||t&&null===t.offsetParent||!1)},i.prototype.rS=function(){var t=a.filter((function(t){return t.prop in document})),i=t&&t[0];return i?(this.nS=i.prop,i.name):null},i.prototype.uS=function(){if(this.eS)return this.eS;var t=this.vt.playerRootElement,i=t&&void 0!==t.getElementsByClassName&&t.getElementsByClassName(u.VIDEO_MAIN_ELEMENT_CLASS);return this.eS=i&&i.length&&i[0]||null,this.eS},i.prototype.oS=function(){this.publish(s.PAGE_VISIBILITY_CHANGED,this.isPlayerVisible())},i}(o.default);i.default=c},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),a=n(9987),c=n(4141),h=n(3072),f=n(726),l=n(2079),v=n(1372),d=n(1962),p=n(7029),b=n(2759),m=n(2663),g=n(5125),y=n(1080),_=n(5549),w=n(9740),O=n(1594),E=n(531),j=n(6342),S=n(1880),A=n(660).Validator,M="73407ce518",T=function(t){function i(i,n){var e=t.call(this,"CorePlayer")||this;return e.aS=!1,e.version="0.3.104-pr1536.b39163349",e.playerType="PLAYER_TYPE",e.language="SCRIPT_LANGUAGE_I18N",e.config=i,e.mediaStore=n,e.cS(i),e.guid=i.playerId||j.default.generateGuid(),e.hS(),e.fS(i,n),e}return r(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this),this.q_&&this.q_.destroy(),this.un&&(this.un.destroy(),this.un=null),this.lS(),window.removeEventListener("pageshow",this.vS,!1)},i.prototype.initialize=function(){this.un&&this.un.initialize()},i.prototype.render=function(t){return this.dS(),this.pS=t,this.un&&this.un.render(t),this},i.prototype.getMediaItems=function(){return this.bS.getMediaItems()},i.prototype.removeAllMediaItems=function(){this.bS.removeAllMediaItems()},i.prototype.removeMediaItems=function(t){this.bS.removeMediaItems(t)},i.prototype.insertMediaItems=function(t,i){this.bS.insertMediaItems(t,i)},i.prototype.appendMediaItems=function(t){this.bS.appendMediaItems(t)},i.prototype.getCurrentMediaItem=function(){return this.bS.getCurrentMediaItem()},i.prototype.setCurrentMediaItem=function(t){this.bS.setCurrentMediaItem(t)},i.prototype.setMediaItemTitle=function(t,i){this.bS.setMediaItemTitle(t,i);var n=this.getCurrentMediaItem();n&&n.id===t&&this.un.updateCurrentItemTitle(i)},i.prototype.getMediaItemMarkers=function(t){return this.bS.getMediaItemMarkers(t)},i.prototype.getCurrentAdBreak=function(){return this.mS.getCurrentAdBreak()},i.prototype.getCurrentAdBreakItem=function(){return null},i.prototype.play=function(t,i){this.gS.play(t,i)},i.prototype.pause=function(t){this.gS.pause(t)},i.prototype.mute=function(){this.gS.setMute(!0)},i.prototype.unMute=function(){this.gS.setMute(!1)},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),E.isNumber(t)&&this.gS.setVolume(t,i)},i.prototype.seek=function(t){this.gS.seek(t)},i.prototype.registerPlugin=function(t){this.un&&this.un.registerPlugin(t)},i.prototype.getVideoElement=function(){return this.dS(),this.un?this.un.videoElement:null},i.prototype.getRootElement=function(){return this.dS(),this.un?this.un.rootElement:null},i.prototype.suspendState=function(){if(!o.userAgent.desktop&&!this.isSuspended()){this.dS();var t={boundEvents:this.N,currentTime:this.gS.getCurrentTime(),mediaStore:this.getMediaStore(),playlist:this.un.getPlaylistItems(),position:this.yS.getPosition(),selector:this.pS};return this.aS=!0,this.destroy(),t}},i.prototype.resumeState=function(t){this.isSuspended()&&t&&(this.aS=!1,this.fS(this.config,t.mediaStore),this.yS.setItems(t.playlist),this.yS.setPosition(t.position),this.un.startTime=t.currentTime,this.N=t.boundEvents)},i.prototype.isSuspended=function(){return this.aS},i.prototype.isRendered=function(){return this.dS(),!!this.un&&this.un.rendered},i.prototype.preload=function(){this.gS.preload()},i.prototype.disableControls=function(){this.gS.disableControls()},i.prototype.enableControls=function(){this.gS.enableControls()},i.prototype.enableCC=function(t){this.gS.enableCC(t)},i.prototype.disableCC=function(){this.gS.disableCC()},i.prototype.isPlayMode=function(){return this.un.isPlayMode()},i.prototype.isLoading=function(){return this.un.isLoading()},i.prototype.getPlaybackState=function(){return this.gS.getPlaybackState()},i.prototype.getCurrentTime=function(){return this.gS.getCurrentTime()},i.prototype.getRawCurrentTime=function(){return this.gS.getRawCurrentTime()},i.prototype.getDuration=function(){return this.gS.getDuration()},i.prototype.getRawDuration=function(){return this.gS.getRawDuration()},i.prototype.getTimeRemaining=function(){return this.gS.getTimeRemaining()},i.prototype.setFullscreen=function(t){void 0===t&&(t=!0),this.gS.setFullscreen(t)},i.prototype.getFullscreen=function(){return this.gS.getFullscreen()},i.prototype.getVolume=function(){return this.gS.getVolume()},i.prototype.isAd=function(){return this.un.isAd()},i.prototype.setMute=function(t){void 0===t&&(t=!0),this.gS.setMute(t)},i.prototype.getMute=function(){return this.gS.getMute()},i.prototype.addCustomControlElement=function(t){return this.un.addCustomControlElement(t)},i.prototype.setLoop=function(t){this.gS.setLoop(t)},i.prototype.setContinuousPlay=function(t){void 0===t&&(t=!0),this.gS.setContinuousPlay(t)},i.prototype.resumeContinuousPlay=function(){this.gS.resumeContinuousPlay()},i.prototype.getCurrentDate=function(){return this.gS.getCurrentDate()},i.prototype.addItems=function(t,i){this.yS.addItems(t,i)},i.prototype.addMetricsEventListener=function(t,i){var n=this._S.getAllExternalEvtNames();return this.addEventListeners(n,t,i)},i.prototype.setAudioLanguage=function(t){this.gS.setAudioLanguage(t)},i.prototype.getPlaylist=function(){return this.yS},i.prototype.getMediaStore=function(){return this.dS(),{wS:this.un.mediaStore}},i.prototype.getPlaybackStartDto=function(){var t,i=null===(t=this.un)||void 0===t?void 0:t.model,n=this.q_;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.q_.startTime},i.prototype.__setError=function(t,i,n,e,r){if(this.dS(),!this.un)return null;this.un.setCustomError(t,i,n,e,r)},i.prototype.__getSyncOffset=function(){var t;return(null===(t=this.un)||void 0===t?void 0:t.getSyncOffset())||NaN},i.prototype.startSync=function(){var t;null===(t=this.un)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.un)||void 0===t||t.stopSync()},i.prototype.isDocked=function(){return this.dS(),this.un&&this.un.docked},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.dS(),this.un.updateDockingConfig(t,i,n,e,r,s)},i.prototype.undockVideoPlayer=function(t){this.dS(),this.un.undockVideoPlayer(t)},i.prototype.cS=function(t){try{var i=new A;i.addSchema(g.streamSchema,"/streamSchema"),i.addSchema(m.sourceSchema,"/sourceSchema"),i.addSchema(b.mediaItemSchema,"/mediaItemSchema"),i.addSchema(_.uiSchema,"/uiSchema"),i.addSchema(w.vrmSchema,"/vrmSchema"),i.addSchema(y.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.fS=function(t,i){this.$b=new s.default("internal"),this.ES();var n=null;i&&(n=i.wS||null),this.jS(),this.q_=new O.Profiler(this.$b),this.un=new v.default(t,n,this.guid,this.$b,this.q_),this._S=new h.ExternalEvtAPI(this,this.un,this.$b),this._S.enablePublish(),this.un.initNewPlayback(),this.gS=new c.default(this.un),this.yS=new l.default(this.un),this.bS=new f.default(this.un),this.mS=new a.default(this.un)},i.prototype.jS=function(){var t=this;this.vS=function(i){i.persisted&&t.SS()},o.userAgent.safari&&window.addEventListener("pageshow",this.vS,!1)},i.prototype.dS=function(){if(this.isSuspended()||!this.un)throw new Error("INVALID_STATE_ERR: Player instance no longer usable");return!0},i.prototype.SS=function(){this.destroy(),this.fS(this.config,this.mediaStore),this.render(this.pS)},i.prototype.lS=function(){this.AS.forEach((function(t){t.destroy()})),this.AS=[]},i.prototype.ES=function(){var t=this;this.AS=this.AS||[],!0===this.config.analytics&&this.AS.push(new S.default(this));var i=!1;this.$b.addEventListener(h.ExternalEvt.NIELSEN_REQUIRED,(function(){if(!i){var n=(t.config.nielsenConfig||{}).nielsenAppId||null;t.AS.push(new u.default(t,n)),i=!0}}),this)},i.prototype.hS=function(){var t=this.config.cssTheme,i=j.default.getCssBuildUrl(M.indexOf("local")>-1,M,t);j.default.loadCssAsset("vp-css",i,(function(){j.default.setSingleton("isCSSLoaded",!0)}),(function(){j.default.setSingleton("isCSSError",!0)}))},i}(s.default);i.default=T},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",a=r.PLAYER_DRM_CODES,c=r.INFO_CODES,h=r.ErrorGroup.Configuration,f=function(){function t(t,i,n,e){this.MS=null,this.Wr=t,this.TS=i||u,this.MS=this.TS===u?o.CERT_DATA:null,this.NS=n,this.IS=e,this.RS=this.LS.bind(this),this.CS=this.kS.bind(this),this.DS=this.PS.bind(this),this.init()}return t.prototype.destroy=function(){this.Wr.removeEventListener("webkitneedkey",this.RS),this.xS&&(this.US(),this.xS=null)},t.prototype.init=function(){this.Wr.addEventListener("webkitneedkey",this.RS)},t.prototype.US=function(){this.xS.removeEventListener("webkitkeymessage",this.CS),this.xS.removeEventListener("webkitkeyerror",this.DS)},t.prototype.FS=function(){var t=this;null!==this.TS&&""!==this.TS?void 0!==window.WebKitMediaKeys?this.MS?this.BS():e.Loader.ajax(this.TS,{method:"GET",context:this,headers:{Pragma:"Cache-Control: no-cache","Cache-Control":"max-age=0"},responseType:"arraybuffer",successHandler:function(i){t.MS=new Uint8Array(i),null!==t.MS?t.BS():t.zS(a.E_CERT_NO_DATA)},failureHandler:function(i){t.zS(a.E_CERT_LOAD_FAILED,r.ErrorGroup.Streaming,i.toString())},timeout:1e4}):this.zS(c.E_DRM_UNSUPPORTED_BROWSER,h):this.zS(a.E_CERTPATH_MISSING,h)},t.prototype.BS=function(){var t=this.VS(this.GS),i=this.HS(t),n=this.YS(this.GS,i,this.MS);if(!this.Wr.webkitKeys){var e=this.qS();this.Wr.webkitSetMediaKeys(new WebKitMediaKeys(e))}this.Wr.webkitKeys||this.zS(a.E_KEY_CREATION_FAILED),this.xS&&(this.US(),this.xS.close()),this.xS=this.Wr.webkitKeys.createSession("video/mp4",n),this.xS?(this.xS.contentId=i,this.xS.destinationURL=t,this.xS.addEventListener("webkitkeymessage",this.CS),this.xS.addEventListener("webkitkeyadded",(function(t){})),this.xS.addEventListener("webkitkeyerror",this.DS)):this.zS(a.E_KEY_SESSION_FAILED)},t.prototype.LS=function(t){this.NS(),null!==t.initData?(this.GS=t.initData,this.FS()):this.zS(a.E_INIT)},t.prototype.kS=function(t){this.WS(t.target,t.message)},t.prototype.PS=function(t){this.zS(a.E_KEY_ERROR,r.ErrorGroup.Streaming,t.currentTarget.error.code+"-"+t.currentTarget.error.systemCode)},t.prototype.HS=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.VS=function(t){var i=s.default.array16ToString(t).replace("skd://","https://");return i=i.substring(1,i.length)},t.prototype.YS=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.qS=function(){return WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4")?"com.apple.fps.1_0":(this.zS(a.E_NO_KEY_SYSTEM),null)},t.prototype.WS=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.QS(t,r.session)},failureHandler:function(t,i,e){var r=403===e?c.E_DRM_FORBIDDEN_LICENSE:a.E_LICENSE_REQUEST;n.zS(r)},timeout:1e4})},t.prototype.QS=function(t,i){i.update(s.default.base64DecodeUint8Array(t.ckc))},t.prototype.zS=function(t,i,n){var e,s;void 0===i&&(i=r.ErrorGroup.Streaming),r.isInfoCode(t)?(e=r.E_INFO,s=c):(e=r.E_PLAYER_DRM,s=a);Object.keys(s)[parseInt(t,10)-1];this.IS(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,a=i.E_PLAYER_FAILOVER,c=i.E_PLAYER_JS_HLS,h=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 b={};b[i.INFO_CODES.E_SAPI_UNAVAILABLE_TEMP]=r.default.ERR_UNAVAILABLE,b[i.INFO_CODES.E_SAPI_LICENSE_ERROR]=r.default.ERR_UNAVAILABLE,b[i.INFO_CODES.E_SAPI_GEO]=r.default.ERR_GEO,b[i.INFO_CODES.E_SAPI_BLACKOUT]=r.default.ERR_BLACKOUT,b[i.INFO_CODES.E_SAPI_DEVICE]=r.default.ERR_DEVICE,b[i.INFO_CODES.E_SAPI_EMBED]=r.default.ERR_EMBED,b[i.INFO_CODES.E_PLAYER_ANDROID_CHROME_REQUIRED]=r.default.ERR_ANDROID_LIVE_CHROME_REQUIRED,b[i.INFO_CODES.E_PLAYER_NO_COMPATIBLE_FORMAT]=r.default.ERR_BROWSER_UNSUPPORTED,b[i.INFO_CODES.E_PLAYER_360_IS_NOT_SUPPORTED]=r.default.ERR_BROWSER_UNSUPPORTED_SKIP_IN_10,b[i.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED]=r.default.ERR_BROWSER_UNSUPPORTED,b[i.INFO_CODES.E_DRM_UNSUPPORTED_OS]=function(t){return t.ios?r.default.ERR_DRM_IOS_UNSUPPORTED_OS_VER:null},b[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 m={};m[i.PLAYER_CODES.E_NATIVE_SRC_NOT_SUPPORTED]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE,m[i.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE]=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO,d(m,[i.PLAYER_CODES.E_NATIVE_ABORTED],r.default.ERR_TITLE_CANNOT_PLAY_VIDEO),v(i.PLAYER_CODES).forEach((function(t){m[t]||(m[t]=r.default.ERR_TITLE_SOMETHING_WENT_WRONG)}));var g={};g[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){g[t]||(g[t]=r.default.ERR_GENERAL_ERROR)}));var y={};v(i.PLAYER_JS_HLS_CODES).forEach((function(t){y[t]=r.default.ERR_TITLE_SOMETHING_WENT_WRONG}));var _={};v(i.PLAYER_JS_HLS_CODES).forEach((function(t){_[t]=r.default.ERR_GENERAL_ERROR}));var w={};d(w,[i.SAPI_CODES.E_INCOMPATIBLE_FORMAT,i.SAPI_CODES.E_NO_STREAMS],r.default.ERR_TITLE_SOMETHING_WENT_WRONG),d(w,[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){w[t]||(w[t]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE)}));var O={};O[i.SAPI_CODES.E_UNAUTHORIZED_USER]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE,O[i.SAPI_CODES.E_RESTRICTED_TO_INTERNAL]=r.default.ERR_UNAVAILABLE,d(O,[i.SAPI_CODES.E_INCOMPATIBLE_FORMAT,i.SAPI_CODES.E_NO_STREAMS],r.default.ERR_GENERAL_ERROR),v(i.SAPI_CODES).forEach((function(t){O[t]||(O[t]=r.default.ERR_MISSING_OR_DAMAGED)}));var E={};v(i.WARNING_CODES).forEach((function(t){t!==i.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE&&(E[t]=r.default.ERR_TITLE_SOMETHING_WENT_WRONG)})),E[i.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE;var j={};j[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&&(j[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 A={};d(A,[i.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_NETWORK_TYPE,i.PLAYER_DRM_CODES.E_CERTPATH_MISSING],r.default.ERR_TITLE_CANNOT_PLAY_VIDEO);var M=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.eu=r,this.group=t,this.phase=this.ZS(e),this.category=i,this.subcategory=n,this.$S=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>=h&&this.category<=f},t.prototype.ZS=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=w;else{if(this.category===u&&-1!==o.indexOf(this.subcategory)&&n&&this.eu&&(this.eu.android||this.eu.ios))return r.default.ERR_TITLE_SOMETHING_WENT_WRONG;this.category===u||this.category===a?t=m:this.category===i.E_WARNING?t=E:this.category===i.E_INFO?t=p:this.category===i.E_PLAYER_DRM?t=A:this.category===c&&(t=y)}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=O;else{if(this.category===u&&-1!==o.indexOf(this.subcategory)&&n&&this.eu&&(this.eu.android||this.eu.ios))return r.default.ERR_LIVE_IOS_PLAYBACK;this.category===u||this.category===a?t=g:this.category===i.E_PLAYER_DRM?t=S:this.category===i.E_WARNING?t=j:this.category===i.E_INFO?t=b:this.category===c&&(t=_)}var e=t&&t[this.subcategory];return e="function"==typeof e?e(this.eu):e,this.$S||e||r.default.ERR_TECH_DIFFICULTIES},enumerable:!1,configurable:!0}),t}();i.default=M},1962:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CONTROLS_AUDIO_CHANGE=i.CAST=i.RENDER_PLAYLIST_FIRST_BATCH=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_CLICKED=i.AD_PLAYBACK_ENDED=i.AD_PLAYBACK_STARTED=i.AD_BREAK_ENDED=i.AD_BREAK_STARTED=i.MEDIA_ITEM_COMPLETE=i.MEDIA_ITEM_CURRENT=i.MEDIA_ITEM_REMOVED=i.MEDIA_ITEM_ADDED=i.MEDIA_ITEM_METADATA=i.MEDIA_ITEM_ERROR=i.MEDIA_ITEM_NEED_SOURCE=i.STREAM_SYNCH_STRATEGY_APPLIED=i.STREAM_SYNCH_COMPLETE=void 0,i.CCEvent=i.CTRL_PLAYREQUEST=i.CTRL_REPLAY=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=void 0,i.PROFILE_END=i.PROFILE_START=i.Device=i.METRICS=i.BEFORE_INCOMPLETE_EXIT=i.BEFORE_PROGRESS_BEACON=i.CTV=void 0,i.STREAM_SYNCH_COMPLETE="streamsynchComplete",i.STREAM_SYNCH_STRATEGY_APPLIED="streamsynchStrategyApplied",i.MEDIA_ITEM_NEED_SOURCE="mediaItemNeedSource",i.MEDIA_ITEM_ERROR="mediaItemError",i.MEDIA_ITEM_METADATA="mediaItemMetadata",i.MEDIA_ITEM_ADDED="mediaItemAdded",i.MEDIA_ITEM_REMOVED="mediaItemRemoved",i.MEDIA_ITEM_CURRENT="mediaItemCurrent",i.MEDIA_ITEM_COMPLETE="mediaItemComplete",i.AD_BREAK_STARTED="adBreakStarted",i.AD_BREAK_ENDED="adBreakEnded",i.AD_PLAYBACK_STARTED="adPlaybackStarted",i.AD_PLAYBACK_ENDED="adBreakItemEnded",i.AD_CLICKED="adBreakItemClicked",i.AD_METRICS="adMetrics",i.OPSS_VISIBILITY_CHANGED="opssVisibilityChanged",i.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.AdBreakOffset=i.AdBreakType=void 0,function(t){t.LINEAR="linear",t.NON_LINEAR="nonlinear"}(i.AdBreakType||(i.AdBreakType={})),function(t){t.PRE="pre",t.TIMESTAMP="HH:MM:SS",t.POST="post",t.ADONLY="adonly",t.OVERLAY="overlay"}(i.AdBreakOffset||(i.AdBreakOffset={})),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.AdPluginEvent}});var r,s,o,u,a=n(6342).default.mergeStringEnums;!function(t){t.METRICS="AD_METRICS",t.DIAGNOSTICS="ad-plugin--diagnostics"}(r=i.AdPluginMetricsEvent||(i.AdPluginMetricsEvent={})),function(t){t.AD_PARSE_RESULT="AD_PARSE_RESULT",t.AD_BREAK_PLAYING="ad-plugin--break-playing",t.AD_SUBTITLES_FOUND="ad-plugin--subtitles-found",t.AD_SUBTITLES_NOT_FOUND="ad-plugin--subtitles-not-found"}(s=i.AdPluginMetadataEvent||(i.AdPluginMetadataEvent={})),function(t){t.CTA_TRIGGERED="ad-plugin-ui-cta-triggered",t.SKIP_AD="ad-plugin-ui-skip-ad",t.CLICKED="ad-plugin-ui-clicked"}(o=i.AdPluginUIEvent||(i.AdPluginUIEvent={})),function(t){t.NONLINEAR_AD_RENDERED="ad-plugin-nonlinear-ad-rendered",t.NONLINEAR_AD_CLEARED="ad-plugin-nonlinear-ad-cleared",t.NONLINEAR_AD_DISMISSED="ad-plugin-nonlinear-ad-dismissed",t.NONLINEAR_AD_CLICKED="ad-plugin-nonlinear-ad-clicked"}(u=i.AdPluginOverlayAdEvent||(i.AdPluginOverlayAdEvent={})),i.AdPluginEvent=a(s,a(r,a(u,a(o,e.AdPluginEvent))))},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.ContainerType=i.PluginMimeType=i.PluginType=void 0,function(t){t.BASE="plugin",t.METADATA="metadata-plugin",t.SOURCE_METADATA="source-metadata-plugin",t.MORE_ITEMS="more-items",t.AD="ad-plugin",t.VISUAL_SEEK="visual-seek",t.BRANDING="branding",t.PLAYLIST="playlist"}(i.PluginType||(i.PluginType={})),function(t){t.MARTINI="adplugin/martini"}(i.PluginMimeType||(i.PluginMimeType={})),function(t){t.LINEAR="linear",t.NON_LINEAR="nonLinear"}(i.ContainerType||(i.ContainerType={})),function(t){t.MEDIA_ITEM_PLAYBACK_STARTED="media-item-playback-started",t.MEDIA_ITEM_PLAYBACK_ENDED="media-item-playback-ended",t.MEDIA_ITEM_PLAYBACK_PROGRESS="media-item-playback-progress",t.AD_PLAYBACK_PROGRESS="ad-playback-progress",t.AD_PLAYBACK_STARTED="ad-playback-started",t.PLAYER_RENDERED="player-rendered"}(i.PluginPlayerEvent||(i.PluginPlayerEvent={})),function(t){t.PLAYBACK_STARTED="playbackStarted",t.PLAYLIST_COMPLETE="playlistComplete",t.PLAYLIST_COMPLETE_ON_ERROR="playlistCompleteOnError",t.SCROLLED_TO_END="scrolledToEnd",t.PLAYLISTID_NEED_RESOLVE="playlistNeedResolve",t.SOURCE_LOAD_COMPLETE="sourceLoadComplete",t.CONTENT_LOAD_FINISHED="ContentLoadFinished"}(i.MoreItemsReason||(i.MoreItemsReason={})),function(t){t.IMAGE="image",t.SPRITE="sprite"}(i.VisualSeekType||(i.VisualSeekType={}))},595: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(6342),o=n(3529),u=n(3872),a=function(t){function i(i,n){var e=t.call(this)||this;return e.k_=i,n.id=n.id||s.default.generateGuid(),e.id=n.id,e.duration=n.duration||0,e.type=n.type,e.offset=n.offset,e.mimetype=n.mimetype||"",e.active=n.active||!0,e.replay=n.replay||0,e}return r(i,t),i.prototype.setActive=function(t){u.TypeChecker.isBoolean(t)&&(this.active=t)},Object.defineProperty(i.prototype,"mediaItem",{get:function(){return this.k_},enumerable:!1,configurable:!0}),i}(o.PlayableItem);i.default=a},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(531),u=n(6342),a=n(595),c=n(8103),h=n(6120),f=n(3529),l=n(2759),v=n(2663),d=n(5125),p=n(4339),b=n(660).Validator,m={id:"",mimetype:h.MediaItemMimeType.UPLYNK,metadata:{description:"",duration:0,title:"",thumbnail:"",type:h.MediaItemType.VOD,videoTypes:[],pip:!0,syncPoint:NaN},source:{},customConfig:null,adConfig:null,useVrmAds:!1},g=function(t){function i(i,n,e,r){var s=t.call(this)||this;return s.adConfigPrefetched=!1,s.skt="",s.isPreloaded=!1,s.state=h.ItemState.NO_DATA,s.sourceState=h.SourceState.NO_DATA,s.recoveryStatus=h.ItemRecoveryStatus.NOT_RECOVERING,s.tryCount=1,s.failoverCount=0,s.isCCAvailable=!1,s.languages=[],s.altStreams=[],s.streamProfiles=[],s.blockAutoplay=!1,s.adBreaks=[],s.useVrmAds=!1,s.xc=0,s.Lu=[],s.XS=NaN,s.JS={},s.KS=u.default.deepCopy(i),s.build(i,n,e,r),s}return r(i,t),i.createKey=function(t,i){return t+"#"+i},i.normalizeKey=function(t){t.id||(t.id=u.default.generateGuid()),t.mimetype||(t.mimetype=h.MediaItemMimeType.CONTAINER)},Object.defineProperty(i.prototype,"key",{get:function(){return this.Wc},enumerable:!1,configurable:!0}),i.prototype.hasStreams=function(){return 0!==this.Lu.length},i.prototype.equals=function(t){return!!t&&this.key===t.key},i.prototype.getPlayableItemType=function(){return f.PlayableItemType.MEDIA_ITEM},i.prototype.getDuration=function(){return this.duration},i.prototype.setDuration=function(t){this.duration=t},i.prototype.isRecovering=function(){return this.recoveryStatus===h.ItemRecoveryStatus.RECOVERING},i.prototype.getRecoveryStatus=function(){return this.recoveryStatus},i.prototype.isConsistentMetadata=function(){return!this.hasLiveStreams()||!this.hasLiveStateForVod()},i.prototype.getStreamType=function(){return this.metadata&&this.metadata.type||h.MediaItemType.VOD},i.prototype.getMarkers=function(){return this.customConfig&&this.customConfig.meta&&this.customConfig.meta.videoMarkers?this.customConfig.meta.videoMarkers.markers:null},Object.defineProperty(i.prototype,"liveLabel",{get:function(){return this.metadata.liveLabel},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pip",{get:function(){return void 0===this.metadata.pip||this.metadata.pip},enumerable:!1,configurable:!0}),i.prototype.isLive=function(){return!!this.hasLiveStreams()},i.prototype.is360Video=function(){var t=this.metadata?this.metadata.videoTypes:null;return!(!t||!t.length)&&-1!==t.indexOf(h.VIDEO_TYPE.THREE_SIXTY)},i.prototype.build=function(t,i,n,e){t&&(this.tA=n,this.iA=e,this.nA=u.default.deepCopy(t),this.eA(t),t.source&&t.source.streams&&this.ca(t.source.streams,i,e),t.adBreaks&&this.rA(t.adBreaks))},i.prototype.hasNativeAd=function(){return!!this.isContainer()&&!(!this.adBreaks||!this.adBreaks.length||this.adBreaks[0].offset!==c.AdBreakOffset.ADONLY)},i.prototype.isContainer=function(){return this.metadata&&this.metadata.type===h.MediaItemType.CONTAINER},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.XS},i.prototype.setRawDuration=function(t){this.XS=t},Object.defineProperty(i.prototype,"rawItemData",{get:function(){return this.nA},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(){return this.metadata&&o.isNumber(this.metadata.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.xc},set:function(t){this.xc=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"refPlaybackId",{get:function(){return this.Wc+"#"+this.videoSession},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"samplingId",{get:function(){return this.sA},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"streams",{get:function(){return this.Lu},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"visualSeekData",{get:function(){return this.oA},set:function(t){this.oA=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"brandingData",{get:function(){return this.uA},set:function(t){this.uA=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"viewCount",{get:function(){return this.metadata&&!isNaN(this.metadata.viewCount)?this.metadata.viewCount:NaN},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"syncPoint",{get:function(){return this.metadata.syncPoint||m.metadata.syncPoint},enumerable:!1,configurable:!0}),i.prototype.updateAdBreak=function(t,i,n,e){var r=this;void 0===e&&(e=null);var s=null;return t?(this.adBreaks.forEach((function(i,n){t.id===i.id&&(s=new a.default(r,t),e&&(s.error=e),r.adBreaks[n]=s)})),s):null},i.prototype.removeAdBreaks=function(t){var i=this;if(Array.isArray(t)){t.forEach((function(t){var n,e,r=(n=t.id,i.adBreaks.some((function(t,i){return t.id===n?(e=i,!0):(e=-1,!1)})),e);-1!==r&&i.adBreaks.splice(r,1)}))}},i.prototype.addAdBreaks=function(t){var i=this,n=[];if(!Array.isArray(t))return n;return t.forEach((function(t){if(r=t.id,!i.adBreaks.some((function(t){return t.id===r}))){var e=new a.default(i,t);i.adBreaks.push(e),n.push(e)}var r})),n},i.prototype.getRecoveryStatusForBeacon=function(){var t=this.recoveryStatus===h.ItemRecoveryStatus.RECOVERED;return t&&(this.recoveryStatus=h.ItemRecoveryStatus.NOT_RECOVERING),t},i.prototype.fetchFinished=function(){return this.state===h.ItemState.HAS_DATA||this.state===h.ItemState.ERROR},i.prototype.isLongForm=function(){return!(!this.metadata||!this.metadata.duration)&&this.metadata.duration>600},i.prototype.restartIfNeeded=function(){this.position+10>this.duration&&(this.position=0)},i.prototype.getCDN=function(){return this.Lu.length>0?this.Lu[0].cdn:null},i.prototype.hasLiveStreams=function(){for(var t=0,i=this.Lu;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.Lu[0].getType():"none"},i.prototype.getStreamProtocol=function(){return this.hasStreams()?this.Lu[0].streamProtocol:"none"},i.prototype.getSubtitleStreams=function(){return this.altStreams.filter((function(t){return"SUBTITLES"===t.type}))},i.prototype.mayUpdateVideoSession=function(){this.aA||this.cA()},i.prototype.useVideoSession=function(){this.aA=!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.hA=e,e.selected=!0):e.selected=!1}},i.prototype.getCurrLanguage=function(){return this.hA},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.aA=!0,this.sA=this.generateSamplingId()},i.prototype.getAspectRatio=function(){return this.Lu.length>0?this.Lu[0].aspectRatio:null},i.prototype.updateCompletedAdBreak=function(t){t&&(this.removeAdBreaks([t]),this.JS[this.videoSession]=this.JS[this.videoSession]||[],this.JS[this.videoSession].push(t))},i.prototype.rA=function(t){var i=this;this.adBreaks=t.map((function(t){return new a.default(i,t)}))},i.prototype.eA=function(t){this.cS(t);var n=u.default.deepCopy(t);n=u.default.mergeObjects(n,m),u.default.mergeObjects(this,n,!0),u.default.mergeObjects(this,this.KS,!0),this.Wc=i.createKey(this.id,this.mimetype)},i.prototype.cS=function(t){try{var i=new b;i.addSchema(d.streamSchema,"/streamSchema"),i.addSchema(v.sourceSchema,"/sourceSchema"),i.validate(t,l.mediaItemSchema,{throwError:!0})}catch(t){var n="Invalid media item config: "+t.property+" "+t.message;throw new Error(n)}},i.prototype.ca=function(t,i,n){var e=this;if(t&&t.length){this.Lu=[];for(var r=t.map((function(t){return Object.prototype.hasOwnProperty.call(t,"live")||(t.live=e.metadata&&(e.metadata.type===h.MediaItemType.LIVE_CHANNEL||e.metadata.type===h.MediaItemType.LIVE_EVENT)),new p.default(t)})),o=0,u=i;o<u.length;o++){var a=u[o],c=n[a];if(!(!c||this.is360Video()&&!c.is360Renderer||!this.is360Video()&&c.is360Renderer)){var f=s.default.findAcceptedStreams(r,c);if(0!==f.length){this.rendererType=a,this.Lu=f;break}}}this.Lu.length>0&&this.Lu.sort((function(t,i){return t.videoMetadata.bitrate-i.videoMetadata.bitrate}))}},i.prototype.cA=function(){this.updateVideoSession(),this.fA()},i.prototype.fA=function(){this.setSourceState(h.SourceState.NO_DATA)},i}(f.PlayableItem);i.default=g},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),u={"adplugin/vrm":"adplugin/martini"};!function(t){t.METADATA_AVAILABLE="mstMetadataAvailable",t.SOURCE_AVAILABLE="mstSourceAvailable",t.MEDIA_ITEM_ADDED="mstMediaItemAdded",t.MEDIA_ITEM_REMOVED="mstMediaItemRemoved"}(i.MediaStoreEvent||(i.MediaStoreEvent={}));var a=function(t){function i(i,n,e){var r=t.call(this,"MediaStore")||this;return r.lA={},r.vA=i,r.tA=n,r.iA=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.lA[i])return i;if(t.adConfig){var n=t.adConfig.mimetype;t.adConfig.mimetype=u[n]||n}var e=new o.default(t,this.vA,this.tA,this.iA);return this.lA[e.key]=e,e.key},i.prototype.updateItem=function(t){if(!t||!t.id||!t.mimetype)return null;var i=o.default.createKey(t.id,t.mimetype),n=this.lA[i];return n?n.build(t,this.vA,this.tA,this.iA):(n=new o.default(t,this.vA,this.tA,this.iA)).updateVideoSession(),this.lA[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.lA[t]||null},i.prototype.getById=function(t){if(!t)return null;for(var i in this.lA)if(0===i.indexOf(t))return this.lA[i];return null},i.prototype.getByData=function(t){if(!t)return null;var i=o.default.createKey(t.id,t.mimetype);return this.lA[i]||null},i.prototype.getBySessionId=function(t){if(!t)return null;for(var i=0,n=Object.keys(this.lA);i<n.length;i++){var e=n[i],r=this.lA[e];if(r&&r.videoSession===t)return r}return null},i}(s.default);i.default=a},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),a=n(5727),c=n(8103),h=n(4685),f=n(6669),l=n(5244),v=n(3872),d=n(1204),p=n(531),b=n(6342),m=n(1960),g=n(2341),y=n(7189),_=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.dA="0.3.104-pr1536.b39163349",this.pA="1.2.20",this.bA=!1,this.mA="none",this.gA=!1,this.yA=r.NONE,this._A=new _.default,this._A.width=i&&i.width||this._A.width,this._A.height=i&&i.height||this._A.height,this._A.videoWidth=this._A.width,this._A.videoHeight=this._A.height,this.wA={desiredBitrate:t.DESIRED_BITRATE,mp4Abr:!1,bitrate:0,bitrates:[],heights:[],startTime:NaN,preconnect:!0,skipFormats:[],isResumingFromSavedPosition:!1,requestType:null,requestAction:null,playlistLoop:!1},this.OA=e,this.EA=[],this.Pc=i,this.jA=this.eA(i),this.SA(),this.AA(),this.MA(),this.TA(n),this.NA(),this.IA(),this.jA.mediaItems&&this.jA.mediaItems.length&&(this.firstItemAdsSitePrefetched=!!this.jA.mediaItems[0].adConfig),this.playlist=new y.default(this.W_),this.jA.mediaItems&&this.jA.mediaItems.forEach((function(t){t.adConfigPrefetched=!!t.adConfig})),this.playlist.addItems(this.jA.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.jA},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return this.jA.site||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this.jA.region||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lang",{get:function(){return this.jA.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.jA.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.jA.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.jA.ui;return t?t.docking:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logos",{get:function(){var t=this.jA.ui,i=m.defaultConfigs.ui.logos;return t?t.logos:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showControls",{get:function(){var t=this.jA.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.jA.ui,i=m.defaultConfigs.ui.startScreen;return t?t.startScreen:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitleOnStart",{get:function(){var t=this.jA.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.jA.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.jA.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.jA.ui;i&&i.startScreen&&(i.startScreen.show=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFullscreenButton",{get:function(){var t=this.jA.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.jA.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.jA.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.jA.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.jA.ui;return i?i.playlist:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){var t=this.jA.continuousPlay;return void 0===t?m.defaultConfigs.continuousPlay:t},set:function(t){this.jA.continuousPlay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"adPlaybackOnly",{get:function(){var t=this.jA.adPlaybackOnly;return void 0===t?m.defaultConfigs.adPlaybackOnly:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoplay",{get:function(){var t=this.jA.autoplay;return void 0===t?m.defaultConfigs.autoplay:t},set:function(t){this.jA.autoplay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stopBufferingOnPause",{get:function(){var t=this.jA.stopBufferingOnPause;return void 0===t?m.defaultConfigs.stopBufferingOnPause:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preload",{get:function(){var t=this.jA.preload;return void 0===t?m.defaultConfigs.preload:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullscreen",{get:function(){var t=this.jA.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.wA.bitrate},set:function(t){this.wA.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.wA.bitrates},set:function(t){this.wA.bitrates=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"heights",{get:function(){return this.wA.heights},set:function(t){this.wA.heights=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mp4Abr",{get:function(){return this.wA.mp4Abr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startTime",{get:function(){return this.wA.startTime},set:function(t){this.wA.startTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preconnect",{get:function(){return this.wA.preconnect},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isResumingFromSavedPosition",{set:function(t){this.wA.isResumingFromSavedPosition=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requestType",{get:function(){return this.wA.requestType},set:function(t){this.wA.requestType=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requestAction",{get:function(){return this.wA.requestAction},set:function(t){this.wA.requestAction=t},enumerable:!1,configurable:!0}),t.prototype.setRequestInfo=function(t){if(t&&(this.requestType=t.type,b.default.isValidRequestAction(t.action))){if(this.requestAction=t.action,t.action===u.REQUEST_TYPES.PAUSE)switch(t.type){case u.REQUEST_TYPES.CLICK:this.yA=r.CONTROL;break;case u.REQUEST_TYPES.API:this.yA=r.API}t.action===u.REQUEST_TYPES.BACKGROUND&&t.type===u.REQUEST_TYPES.API&&(this.yA=r.BACKGROUND)}},Object.defineProperty(t.prototype,"playlistLoop",{get:function(){return this.wA.playlistLoop},set:function(t){this.wA.playlistLoop=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"desiredBitrate",{get:function(){return this.wA.desiredBitrate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uiState",{get:function(){return this._A},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playbackState",{get:function(){return this.gw},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitingForUserTap",{get:function(){return this.bA},set:function(t){this.bA=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preloadBufferSize",{get:function(){var t=this.jA.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.jA.skipOnError||m.SkipOnError.NEVER},set:function(t){this.jA.skipOnError=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"liveUnloadOnPause",{get:function(){return this.jA.liveUnloadOnPause||!0},set:function(t){this.jA.liveUnloadOnPause=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDrmAvailable",{set:function(t){this.gA=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"drmSystem",{set:function(t){t&&(this.mA=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.dA},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jshlsVersion",{get:function(){return this.pA},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"casting",{get:function(){return void 0===this.jA.casting||this.jA.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.OA},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputConfig",{get:function(){return this.Pc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.EA},set:function(t){this.EA=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.jA.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.jA.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.gw)throw new Error("playbackState is already set");this.gw=t,this.RA(),this.LA()},t.prototype.isPlaylistStructured=function(){return!1},t.prototype.isLocal=function(){return this.dA.indexOf("local")>-1},t.prototype.isMobileStrmInlineExpr=function(){return(o.userAgent.ios||o.userAgent.android)&&d.default.canPlayInline},t.prototype.isAutoplayAllowed=function(){var t=!0!==d.default.network.mobile;return!o.userAgent.mobile||d.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===l.States.VIDEO&&!t.paused&&!t.loading)},t.prototype.isAd=function(){return b.default.isAdBreakOffset(this.playbackState.currentMediaType)},t.prototype.endVideo=function(){this.wA.bitrate=0},Object.defineProperty(t.prototype,"loop",{get:function(){var t=this.jA.loop;return void 0===t&&(t=m.defaultConfigs.loop),(this.getPlaylistRenderingType()===s.ONLY_ITEMS||!(!this.playlist.isEndOfPlaylist()&&t))&&t},set:function(t){p.isBoolean(t)&&(this.jA.loop=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mute",{get:function(){return this.gw&&this.gw.mute},set:function(t){this.gw&&p.isBoolean(t)&&(this.gw.mute=t)},enumerable:!1,configurable:!0}),t.prototype.getState=function(){return this.playbackState.state},t.prototype.setState=function(t){this.gw&&(Object.keys(l.States).indexOf(t.toUpperCase())>-1&&(this.playbackState.state=t))},Object.defineProperty(t.prototype,"volume",{get:function(){return this.gw&&this.gw.volume},set:function(t){this.gw&&p.isNumber(t)&&t>=0&&t<=1&&(this.gw.volume=t)},enumerable:!1,configurable:!0}),t.prototype.isPaused=function(){return this.playbackState&&this.playbackState.paused},t.prototype.setPaused=function(t){this.playbackState&&p.isBoolean(t)&&(this.playbackState.paused=t,t?this.setLoading(!1):this.yA=r.NONE)},t.prototype.onRendererPause=function(){var t=this.getState();return t!==l.States.INIT&&t!==l.States.END&&(this.setPaused(!0),!0)},t.prototype.isSeeking=function(){return this.playbackState&&this.playbackState.seeking},t.prototype.setSeeking=function(t){this.playbackState&&p.isBoolean(t)&&(this.playbackState.seeking=t)},t.prototype.isLoading=function(){return this.playbackState&&this.playbackState.loading},t.prototype.setLoading=function(t){this.playbackState&&p.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.yA},t.prototype.getPlaylistRenderingType=function(){var t=this.playlist&&this.playlist.playlistId,i=this.Pc&&this.Pc.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.W_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seekControls",{get:function(){return this.jA.ui&&this.jA.ui.seekControls||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundPause",{get:function(){return this.jA.backgroundPause?this.jA.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.dA,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.mA,drm:this.gA,playbackMode:this.playbackState&&this.playbackState.playbackMode,currentMediaType:this.playbackState&&this.playbackState.currentMediaType,currentTs:Date.now(),pbst:this.getState(),pbstd:this.CA(),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._A.videoWidth&&this._A.videoHeight){var n=this._A.videoWidth/this._A.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.eA=function(t){var i=b.default.deepCopy(t);return i=b.default.mergeObjects(i,m.defaultConfigs),i=this.kA(i)},t.prototype.CA=function(){var t=l.States.INIT,i=this.DA(this.playbackState.currentMediaType);return this.playbackState.state!==l.States.VIDEO&&this.playbackState.state!==l.States.END||!i||(t=this.isAd()?this.isMediaPlaying()||this.isPaused()?l.States.VIDEO:l.States.INIT:l.States.VIDEO),t},t.prototype.kA=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&&d.default.updateNetwork(n.mobile,n.raw),t},t.prototype.SA=function(){!v.LocalStorage.get("vp-dont-autoplay")&&this.isAutoplayAllowed()||(this.autoplay=!1)},t.prototype.LA=function(){if(this.muteMode)this.mute=!0;else if(o.userAgent.desktop&&this.autoplay){var t=d.default.needsGestureToPlayUnmuted&&(o.userAgent.firefox>=66||o.userAgent.chrome>=66||o.userAgent.edge>=17);(o.userAgent.safari>=11||t)&&(this.mute=!0)}},t.prototype.RA=function(){if(o.userAgent.mobile&&d.default.autoplaySupported)return this.volume=1,void(this.mute=!0);var t=m.defaultConfigs.volume,i=m.defaultConfigs.mute,n=v.LocalStorage.get(u.LocalStorageKey.VOLUME);n&&(t=n.volume,i=n.mute);var e=this.Pc.volume;p.isNumber(e)&&e>=0&&e<=1&&(t=e),p.isBoolean(this.Pc.mute)&&(i=this.jA.mute),this.volume=t,this.mute=i},t.prototype.MA=function(){(!this.autoplay||this.playbackState&&this.waitingForUserTap)&&!this.chromeless&&(this.showStartScreen=!0)},t.prototype.PA=function(){this.rendererTypes=f.default.getRendererTypes(),this.adsRendererTypes=f.default.getAdRendererTypes();var t=this.rendererTypes.slice(0);this.adsRendererTypes.forEach((function(i){-1!==t.indexOf(i)&&t.push(i)})),this.capabilities=this.xA(t)},t.prototype.xA=function(t){var i=this,n={};return t?(t.forEach((function(t){var e=a.default.get(t);e&&(n[t]=e,!i.config.enableDash||o.userAgent.safari||t!==h.RendererType.HTML5_HLS&&t!==h.RendererType.HTML5_HLS_360||(n[t].preferredFormats.unshift("mpd"),n[t].acceptedFormats.unshift("mpd")),i.wA.skipFormats.length>0&&(n[t].preferredFormats=n[t].preferredFormats.filter((function(t){return-1===i.wA.skipFormats.indexOf(t)}))))})),n):n},t.prototype.TA=function(t){this.PA(),this.W_=t||new g.default(this.rendererTypes,this.adsRendererTypes,this.capabilities)},t.prototype.NA=function(){var t={},i=b.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.AA=function(){d.default.canPlayInline&&d.default.autoplayByUIEvtOnly&&this.autoplay&&(this.waitingForUserTap=!0)},t.prototype.IA=function(){var t=this;v.Privacy.getGDPRConsentData((function(i,n){n&&(t.consent.gdprApplies=null==i?void 0:i.gdprApplies,t.consent.gdprConsentData=null==i?void 0:i.gdprConsentData)})),v.Privacy.getUSPrivacyConsent((function(i,n){n&&(t.consent.uspString=null==i?void 0:i.uspString)}))},t.prototype.DA=function(t){switch(t){case c.AdBreakOffset.PRE:return"preroll";case c.AdBreakOffset.TIMESTAMP:return"midroll";case c.AdBreakOffset.POST:return"postroll";case c.AdBreakOffset.OVERLAY:return"overlay";case c.AdBreakOffset.ADONLY:return"adonly"}return t},t.DESIRED_BITRATE=900,t.RECOVERY_FAILURE_TIMEOUT=120,t}();i.default=w},6984:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(t){this.playlistPosition=t};i.default=n},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},1044: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.loadedAdBreak=null,this.rendererType=null,this.hasStartedPlayback=!1,this.hasCurrentItemPlayed=!1,this.hasRendererPlayCalled=!1,this.hasRendererPlaybackStarted=!1,this.UA=null,this.shouldPlay=!0}return Object.defineProperty(t.prototype,"playingItem",{get:function(){return this.FA},set:function(t){this.FA=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.Hp},set:function(t){this.Hp=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentRawTime",{get:function(){return this.BA},set:function(t){this.BA=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.Gp},set:function(t){this.Gp=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playbackMode",{get:function(){return r.default.getPlaybackMode(this.FA)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMediaType",{get:function(){return this.UA},set:function(t){this.UA=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(531),r=n(2341),s=function(){function t(t){this.position=-1,this.zA=[],this.VA=0,this.W_=t}return t.prototype.destroy=function(){this.zA=[],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.W_.addItem(e);this.contains(s)||(this.zA.push(s),this.W_.publish(r.MediaStoreEvent.MEDIA_ITEM_ADDED,s))}this.zA.length&&-1===this.position&&(this.position=0)}},t.prototype.addItemAtIndex=function(t,i){if(t&&void 0!==i&&!(i<0)){var n=this.W_.addItem(t);this.contains(n)||(this.zA.splice(i,0,n),this.W_.publish(r.MediaStoreEvent.MEDIA_ITEM_ADDED,n)),this.zA.length&&-1===this.position&&(this.position=0)}},t.prototype.removeItems=function(t,i){var n=this;this.zA.slice(t,t+i).forEach((function(t){return n.W_.publish(r.MediaStoreEvent.MEDIA_ITEM_REMOVED,t)})),this.zA.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.W_.getByData(t)&&n.push(i.W_.updateItem(t))})),n):n},t.prototype.updateMediaItemsState=function(t,i){var n=this;t&&t.forEach((function(t){n.W_.updateItemState(t,i)}))},t.prototype.updateMediaItemsSourceState=function(t,i){var n=this;t&&t.forEach((function(t){n.W_.updateItemSourceState(t,i)}))},t.prototype.contains=function(t){return this.zA.indexOf(t)>=0},t.prototype.getMediaItemAt=function(t){return t<0||t>=this.zA.length?null:this.W_.get(this.zA[t])},t.prototype.getMediaItemById=function(t){return t?this.W_.getById(t):null},t.prototype.getMediaItemBySessionId=function(t){return t?this.W_.getBySessionId(t):null},t.prototype.getCurrentItem=function(){return this.getMediaItemAt(this.position)},t.prototype.appendItem=function(t){if(t){var i=this.zA.length;return this.zA.push(t.key),i}return-1},t.prototype.getItems=function(){for(var t=[],i=0;i<this.zA.length;i++){var n=this.getMediaItemAt(i);n&&t.push(n)}return t},t.prototype.getItemIds=function(){for(var t=[],i=0;i<this.zA.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.zA;n<e.length;n++){if(0===e[n].indexOf(t))return i;i++}return-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.zA.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.zA.length)return-1;var e=this.position+1;if(n.playlistLoop&&e===this.zA.length)return n.looped=!0,0;if(t){if(e<this.zA.length)return e;if(i&&e===this.zA.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.zA.length-1},Object.defineProperty(t.prototype,"playlistId",{get:function(){return this.GA},set:function(t){this.GA=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistFetchIndex",{get:function(){return this.VA},set:function(t){this.VA=t},enumerable:!1,configurable:!0}),t.prototype.HA=function(t,i){var n=new Error(t);if(!i)throw n;i.push(n)},t}();i.default=s},4839:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(t,i){this.breakId=t,this.offset=i};i.default=n},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"},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(531),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:""},a=function(){function t(t){this.eA(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.isAtlas=function(){var t=this.host;return this.hlsInfo&&(t=this.hlsInfo.ts_url),/atlas\.cdn\.yimg\.com/.test(t)},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.YA();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(){return this.videoMetadata?this.videoMetadata.bitrate||0:this.audioMetadata&&this.audioMetadata.bitrate||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"avgBitrate",{get:function(){return this.videoMetadata&&this.videoMetadata.avgBitrate||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.videoMetadata&&this.videoMetadata.width||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.videoMetadata&&this.videoMetadata.height||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"framerate",{get:function(){return this.videoMetadata&&this.videoMetadata.framerate||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"profile",{get:function(){return this.videoMetadata&&this.videoMetadata.profile||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"channels",{get:function(){return this.audioMetadata&&this.audioMetadata.channels>=0?this.audioMetadata.channels:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"forced",{get:function(){return this.audioMetadata&&this.audioMetadata.forced},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"default",{get:function(){return this.audioMetadata&&this.audioMetadata.default},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoSelect",{get:function(){return this.audioMetadata&&this.audioMetadata.autoSelect},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"streamProtocol",{get:function(){return this.YA()},enumerable:!1,configurable:!0}),t.prototype.eA=function(t){this.cS(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.YA()+"://"+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.qA(this.url))},t.prototype.cS=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.YA=function(){var t="http",i=this.url.split(":");return i.length>1&&(t=i[0]),t},t.prototype.qA=function(t){var i="unknown";return t&&t.length>0&&(i=t.indexOf("akamai")>-1?"akamai":t.indexOf("yahoo.com")>-1||t.indexOf("yimg.com")>-1?"atlas":t.indexOf("llnwd.net")>-1?"limelight":t.indexOf("fastly.com")>-1?"fastly":t.indexOf("edgecast.com")>-1?"edgecast":r.default.parseRootHost(t)),i},t}();i.default=a},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(531),s=function(){function t(){var t,i;this.WA={},this.Y_=[],this.QA=((t={})[e.PluginMimeType.MARTINI]=((i={})[e.ContainerType.LINEAR]=document.createElement("div"),i[e.ContainerType.NON_LINEAR]=document.createElement("div"),i),t)}return t.prototype.destroy=function(){this.WA={},this.Y_=[]},t.prototype.register=function(t,i){if(r.isNullOrUndefined(t))throw new Error("Plugin instance is null");if(!this.ZA(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");t.mimetype===e.PluginMimeType.MARTINI&&(i.pluginContainer=this.QA[t.mimetype][e.ContainerType.LINEAR],i.nonlinearContainer=this.QA[t.mimetype][e.ContainerType.NON_LINEAR]),this.WA[t.type]||(this.WA[t.type]=[]),this.WA[t.type].push(t);try{t.prepare(i)}catch(t){}},Object.defineProperty(t.prototype,"defaultPlugins",{get:function(){return this.Y_},set:function(t){this.Y_=t},enumerable:!1,configurable:!0}),t.prototype.getExternalPlugins=function(){var t=this,i={},n=function(n){if(Object.prototype.hasOwnProperty.call(e.WA,n)){var r=e.WA[n].filter((function(i){return!function(i){return t.Y_.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.WA)n(r);return i},t.prototype.getPlugin=function(t,i){var n=this.WA[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.ZA=function(t){if(!t||r.isNullOrUndefined(t.mimetype)||!r.isString(t.mimetype)||r.isNullOrUndefined(t.type)||!this.$A(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.XA(t);case e.PluginType.SOURCE_METADATA:return this.JA(t);case e.PluginType.MORE_ITEMS:return this.KA(t);case e.PluginType.AD:return r.isAdPlugin(t);case e.PluginType.VISUAL_SEEK:return this.tM(t);case e.PluginType.BRANDING:return this.iM(t);case e.PluginType.PLAYLIST:return this.nM(t)}return!1},t.prototype.$A=function(t){return t===e.PluginType.METADATA||t===e.PluginType.SOURCE_METADATA||t===e.PluginType.MORE_ITEMS||t===e.PluginType.AD||t===e.PluginType.VISUAL_SEEK||t===e.PluginType.BRANDING||t===e.PluginType.PLAYLIST},t.prototype.XA=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.JA=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.KA=function(t){return!(!t||r.isNullOrUndefined(t.resolve)||!r.isFunction(t.resolve)||r.isNullOrUndefined(t.cancel)||!r.isFunction(t.cancel))},t.prototype.tM=function(t){return!(!t||r.isNullOrUndefined(t.getThumbnailData)||r.isNullOrUndefined(t.update)||!r.isFunction(t.getThumbnailData)||!r.isFunction(t.update))},t.prototype.iM=function(t){return!(!t||r.isNullOrUndefined(t.create)||!r.isFunction(t.create))},t.prototype.nM=function(t){return!(!t||!r.isFunction(t.create))},t.prototype.render=function(t){var i=this;Object.keys(this.QA).forEach((function(n){Object.keys(i.QA[n]).forEach((function(e){t.appendChild(i.QA[n][e])}))}))},t.prototype.getContainer=function(t,i){return this.QA[t][i]},t}();i.default=s},9038: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=n(3277),o=n(6342),u=n(4685),a=function(t){function i(n){var e=t.call(this,"ad-plugin-renderer")||this;return e.type=i.type,e.timedOut=!1,e.eM=o.default.noop,n.setAttribute("id",o.default.generateGuid()),o.default.classList(n).add("vp-adplugin-video"),e.container=n,e}return r(i,t),i.canUse=function(){return!0},Object.defineProperty(i.prototype,"mimetype",{get:function(){return this.vm?this.vm.mimetype:void 0},enumerable:!1,configurable:!0}),i.prototype.create=function(t){return null},i.prototype.getAdPluginPlayer=function(){return this.vm},i.prototype.setAdPluginPlayer=function(t){this.vm&&this.vm!==t&&this.rM(),this.vm=t,this.sM()},i.prototype.play=function(t){if(this.vm&&this.oM){var i=this.oM.mediaItem.refPlaybackId;this.paused?this.vm.play():this.vm.play(i,this.oM.id)}},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.vm)&&(this.uM=null,!this.uM&&(this.oM=t,!0))},i.prototype.waitForReady=function(t){t&&t()},i.prototype.seek=function(t){},i.prototype.pause=function(){this.vm&&this.vm.pause()},i.prototype.getCurrentDate=function(){return null},i.prototype.getCurrentTime=function(){return this.vm?this.vm.getCurrentTime():0},i.prototype.getDuration=function(){return this.vm?this.vm.getDuration():0},i.prototype.getMuted=function(){return!(!this.vm||!this.vm.isMuted())},i.prototype.getVolume=function(){return this.vm?this.vm.getVolume():NaN},i.prototype.setQuality=function(t){},i.prototype.setSeedStreamIndex=function(t){},i.prototype.setError=function(t){},i.prototype.setVolume=function(t){this.vm&&this.vm.setVolume(t)},i.prototype.setMute=function(t){this.vm&&this.vm.mute(t)},i.prototype.setAudioLanguage=function(t){},i.prototype.setFullscreen=function(t){this.vm.setFullscreen(t)},i.prototype.stopMedia=function(){return!!this.vm&&(this.vm.stop(),!0)},i.prototype.bindCustomEvents=function(){},i.prototype.destroy=function(){this.vm&&(this.rM(),this.vm=null)},i.prototype.detachNode=function(){},i.prototype.reattachNode=function(){},i.prototype.setActive=function(t){this.aM=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.getSyncState=function(){return-1},i.prototype.sM=function(){this.vm&&(this.eM=s.listenEventDispatcherEvts(this.vm,Object.keys(u.AdPluginEvent).map((function(t){return u.AdPluginEvent[t]})),this.cM.bind(this)))},i.prototype.rM=function(){this.eM(),this.eM=o.default.noop},i.prototype.cM=function(t,i){for(var n,e,r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];u.AdPluginEvent.TIME_UPDATE;var o=this.vm;switch(i){case u.AdPluginEvent.MUTE_CHANGED:case u.AdPluginEvent.VOLUME_CHANGED:this.publish(u.RendererEvent.VOLUMECHANGE,{volume:o.getVolume(),mute:o.isMuted()});break;case u.AdPluginEvent.CLOSED_CAPTIONS_LOADED:this.publish(u.RendererEvent.AD_CC_LOADED,r[0]);break;case u.AdPluginEvent.PLAYING:this.paused=!1,this.ended=!1,this.publish(u.RendererEvent.PLAYING,{dur:o.getDuration()});break;case u.AdPluginEvent.TIME_UPDATE:this.publish(u.RendererEvent.TIMEUPDATE,{currentTime:o.getCurrentTime(),duration:o.getDuration()});break;case u.AdPluginEvent.PAUSED:this.paused=!0,this.publish(u.RendererEvent.PAUSE);break;case u.AdPluginEvent.PLAY_COMPLETE:this.publish(u.CustomRendererEvent.PLAY_COMPLETE,{evt:"ad_play_complete",adReplay:(null===(n=this.oM)||void 0===n?void 0:n.replay)||0}),this.publish(u.RendererEvent.PLAYBACK_ENDED);break;case u.AdPluginEvent.BREAK_ENDED:this.ended=!0,(null===(e=r[0])||void 0===e?void 0:e.error)?this.publish(u.RendererEvent.ERROR,{error:r[0].error}):this.publish(u.RendererEvent.ENDED)}},i.type=u.RendererType.AD_PLUGIN,i}(u.Renderer);i.default=a},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),a=n(3072),c=n(6389),h=n(1962),f=n(5658),l=n(2912),v=n(1204),d=n(6342),p=n(514),b=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 m=function(t){function i(n,e){var r=t.call(this,"html-renderer")||this;return r.type=i.type,r.hM=!1,r.fM={},r.$b=n,r.vt=e,r}return r(i,t),i.canUse=function(){return!0},i.prototype.create=function(t){var i=this;return this.node=t instanceof HTMLVideoElement?t:s?s.get():d.default.createVideoNode(),this.node||(this.node=d.default.createVideoNode()),this.vt.preload||this.node.setAttribute("preload","metadata"),this.lM()&&(this.node.controls=!0),this.node.setAttribute("id",d.default.generateGuid()),d.default.classList(this.node).add("vp-html5-video"),this.Dm(),this.vM(this.node),u.userAgent.mobile&&v.default.autoplayByUIEvtOnly&&this.vt.autoplay&&l.default&&(this.dM=l.default.setupTouchToPlayRestrictionRemoval(this.node,(function(){i.dM=null,i.$b.publish(h.TOUCH_TO_PLAY_RESTRICTION_REMOVED)}))),this.aM=!1,this.node},i.prototype.destroy=function(){this.pM(),this.node&&(s&&s.discard(this.node),this.node.pause(),this.node.src="",this.node.load(),this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.node),this.dM&&(this.dM(),this.dM=null),this.Si=null},i.prototype.detachNode=function(){this.pM(),this.node&&this.node.pause&&this.node.pause()},i.prototype.getCurrentDate=function(){return null},i.prototype.getCurrentTime=function(){return this.node?this.node.currentTime:0},i.prototype.getDuration=function(){return this.node?this.node.duration:0},i.prototype.getMuted=function(){return!!this.node&&this.node.muted},i.prototype.getVolume=function(){return this.node?this.node.volume:NaN},i.prototype.isAirplaying=function(){return!(!this.node||!this.node.webkitCurrentPlaybackTargetIsWireless)},i.prototype.reattachNode=function(){this.Dm()},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(b.RendererEvent.LOADEDMETADATA,(function(){i.node&&(i.node.currentTime=t,i.removeEventListener(b.RendererEvent.LOADEDMETADATA,n))}),this)}},i.prototype.setActive=function(t){this.aM=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.Si=t},i.prototype.showAirplayTargetMenu=function(){this.node&&"function"==typeof this.node.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.gw,i,n,e,r),o=i===c.E_INFO?b.RendererEvent.INFO:b.RendererEvent.ERROR;this.publish(o,s)},i.prototype.enableMobileNativeCC=function(t){if(this.node){var i=document.createDocumentFragment();this.bM(),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(b.CustomRendererEvent.PIP_MODE_CHANGED,n.webkitPresentationMode),n.webkitPresentationMode===o.INLINE){i.node.removeEventListener("webkitendfullscreen",(function(){i.publish(b.CustomRendererEvent.END_FULLSCREEN)})),i.publish(b.CustomRendererEvent.END_FULLSCREEN)}})},i.prototype.Dm=function(){var t=this;if(this.node){this.mM=function(i){if(!t.ended){var n=i.type,e=b.RendererEvent[n.toUpperCase()];n===b.NativeVideoEvent.PLAYING&&t.node.paused||(n===b.NativeVideoEvent.VOLUMECHANGE&&t.publish(b.RendererEvent.VOLUMECHANGE,{volume:t.node.volume,mute:t.node.muted}),u.userAgent.iosWebView&&n===b.NativeVideoEvent.PAUSE&&t.gM(),t.Yg(n,e))}}.bind(this),Object.keys(b.NativeVideoEvent).forEach((function(i){t.node.addEventListener(b.NativeVideoEvent[i],t.mM)})),u.userAgent.iphone&&!v.default.canPlayInline||(this.yM=new p.default(this.node,(function(){t.publish(b.CustomRendererEvent.CLICK)}))),u.userAgent.safari>=8&&this._M(),u.userAgent.ios&&this.wM(),v.default.airplaySupported&&this.vt.casting&&this.OM(),this.X={},this.X[h.FULLSCREEN_CHANGE]=this.$b.addEventListener(h.FULLSCREEN_CHANGE,(function(){t.node&&t.$b.publish(h.PLAYER_RESIZE,t.node.clientWidth,t.node.clientHeight)}),this)}},i.prototype.EM=function(){var t=this;if(this.node){var i=this.node.play();return i&&"function"==typeof i.catch&&i.catch((function(i){t.node.paused})),i}},i.prototype.bM=function(){if(this.node)for(var t=this.node.querySelectorAll("track"),i=0;i<t.length;i++)this.node.removeChild(t[i])},i.prototype.jM=function(t){var i=c.PLAYER_CODES.E_NATIVE_ERROR;if(!(t&&t instanceof MediaError))return i;switch(t.code){case MediaError.MEDIA_ERR_ABORTED:return c.PLAYER_CODES.E_NATIVE_ABORTED;case MediaError.MEDIA_ERR_NETWORK:return c.PLAYER_CODES.E_NATIVE_NETWORK_FAILURE;case MediaError.MEDIA_ERR_DECODE:return c.PLAYER_CODES.E_NATIVE_DECODE_ERROR;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:return c.PLAYER_CODES.E_NATIVE_SRC_NOT_SUPPORTED}return i},i.prototype.OM=function(){var t=this;if(v.default.airplaySupported&&this.node){var i=function(i){t.$b.publish(a.ExternalEvt.AIRPLAY_AVAILABILITY_CHANGE,"available"===i.availability)},n=function(){t.$b.publish(a.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,{connected:t.isAirplaying(),isInitialEvt:!t.SM}),t.SM||(t.SM=!0)};this.node.addEventListener("webkitplaybacktargetavailabilitychanged",i),this.node.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",n),this.AM=function(){t.node&&(t.node.removeEventListener("webkitplaybacktargetavailabilitychanged",i),t.node.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",n))}}},i.prototype._M=function(){var t=this;if(this.node&&this.node.textTracks){var i=function(i){var n=i.track;if(n)if("metadata"===n.kind)n.mode="hidden",n.addEventListener("cuechange",(function(i){var n=i.target,e=n&&n.activeCues[0],r=e&&e.value&&e.value.data,s=e&&e.value&&e.value.info;if(s)r=s;else if("string"==typeof r)try{r=JSON.parse(r)}catch(t){}else r=r instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint8Array(r)):{};t.$b.publish(h.TIMED_METADATA_RECEIVED,r),t.MM(n)}));else if(("subtitles"===n.kind||"captions"===n.kind)&&t.hM){var e={itemId:t.oM.id,track:n};t.publish(b.RendererEvent.SUBTITLE_TRACK_RECEIVED,e)}},n=function(t){for(var i=0,n=t&&t.srcElement;i<n.length;i++){var e=n[i];"metadata"===e.kind&&"disabled"===e.mode&&(e.mode="hidden")}};this.node.textTracks.addEventListener("addtrack",i),this.node.textTracks.addEventListener("change",n),this.TM=function(){t.node&&t.node.textTracks&&(t.node.textTracks.removeEventListener("addtrack",i),t.node.textTracks.removeEventListener("change",n))}}},i.prototype.wM=function(){var t=this;if(this.node){var i=function(){t.publish(b.CustomRendererEvent.END_FULLSCREEN)};this.node.addEventListener("webkitendfullscreen",i),this.NM=function(){t.NM=null,t.node.removeEventListener("webkitendfullscreen",i)};var n=function(){t.publish(b.CustomRendererEvent.ENTER_FULLSCREEN)};this.node.addEventListener("webkitbeginfullscreen",n),this.IM=function(){t.IM=null,t.node.removeEventListener("webkitbeginfullscreen",n)}}},i.prototype.pM=function(){var t=this;this.TM&&this.TM(),this.NM&&this.NM(),this.IM&&this.IM(),this.AM&&this.AM(),Object.keys(b.NativeVideoEvent).forEach((function(i){t.node&&t.node.removeEventListener(b.NativeVideoEvent[i],t.mM)})),this.yM&&(this.yM.destroy(),this.yM=null),this.$b.removeEventListeners(this.X)},Object.defineProperty(i.prototype,"Ny",{get:function(){return this.vt.playlist},enumerable:!1,configurable:!0}),i.prototype.WO=function(){return this.Ny.getCurrentItem()},Object.defineProperty(i.prototype,"gw",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),i.prototype.MM=function(t){for(var i,n,e=!1,r=0;r<t.activeCues.length;r++){var s=t.activeCues[r],o=null==s?void 0:s.value.key,u=null===(i=null==s?void 0:s.value)||void 0===i?void 0:i.data;try{u=atob(u)}catch(t){continue}if("X-DATA"===o){var a=null;try{a=JSON.parse(u)}catch(t){continue}var c=a.dr_start_date||a.startDate,h=null===(n=new Date(c))||void 0===n?void 0:n.getTime(),f=a.dr_id||a.id;if(0===Object.keys(a).length||!f||!h)continue;var l=f+"-"+h;if(this.fM[l])continue;var v=a.dr_end_date||a.endDate,d=new Date(v).getTime(),p=a.dr_duration||a.duration,b=void 0;p?b=new Date(p).getTime():d&&(b=d-h);var m={startDate:h,endDate:d,duration:b,id:f,rawData:u,jsonData:a,className:a.dr_class||a.class||""};e=!0,this.fM[l]=m}}e&&this.RM(this.fM)},i.prototype.vM=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(b.CustomRendererEvent.PLAYBACK_START_NOT_BLOCKED)}),(function(n){t.paused&&i.publish(b.CustomRendererEvent.PLAYBACK_START_BLOCKED)})),n})},i.prototype.gM=function(){if(this.node){var t=this.node;!this.lM()&&t.controls&&(t.controls=!1)}},i.prototype.lM=function(){return this.vt.showControls&&!v.default.canPlayInline},i.type=b.RendererType.HTML5_RAW,i}(b.Renderer);i.default=m},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),a=n(4685),c=n(2878),h=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&&(c.default.is360Supported()&&t.canUse.call(this))},i.prototype.create=function(i){return t.prototype.create.call(this,i),this.LM(),this.container},i.prototype.destroy=function(){this.CM(),t.prototype.destroy.call(this)},i.prototype.waitForReady=function(t){var i=this;this.dd?(this.kM(),t()):this.DM=this.$b.addEventListener(u.THREE_SIXTY_READY,(function(){i.kM(),t()}),this)},i.prototype.LM=function(){var t=this;this.dd=!1,this.node&&(this.node.setAttribute("crossorigin","anonymous"),this.node.style.visibility="hidden",this.PM=document.createElement("div"),this.PM.classList.add("vp-360-node"),this.PM.style.position="absolute",this.container=document.createElement("div"),this.container.setAttribute("id",h.default.generateGuid()),this.container.classList.add("vp-360-video"),this.container.appendChild(this.node),this.container.appendChild(this.PM),this.xM().then((function(){t.UM()})).catch((function(t){})))},i.prototype.RM=function(t){},i.prototype.xM=function(){return new Promise((function(t,i){n.e(212).then(function(){s=n(2212),t(s)}.bind(null,n)).catch((function(t){i(t)}))}))},i.prototype.UM=function(){this.FM=new s.PerspectiveCamera(70,v,.01,1e3),this.FM.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.BM=new s.Scene,this.BM.add(e),this.zM=new s.WebGLRenderer,this.zM.setPixelRatio(window.devicePixelRatio),this.PM&&this.PM.appendChild(this.zM.domElement),this.VM=new f.default(this.container),this.GM=0,this.HM=0,this.YM=!0,this.qM(),this.dd=!0,this.$b.publish(u.THREE_SIXTY_READY)},i.prototype.qM=function(){var t=this;this.WM=this.QM.bind(this),this.ZM=this.$M.bind(this),this.XM=this.JM.bind(this),this.KM=this.tT.bind(this),this.iT=this.nT.bind(this),this.NE=this.Tn.bind(this),this.container&&(this.container.addEventListener("mousedown",this.WM,!1),this.container.addEventListener("mousemove",this.ZM,!1),this.container.addEventListener("mouseup",this.XM,!1),this.container.addEventListener("mouseover",this.KM,!1),this.container.addEventListener("mouseout",this.iT,!1),this.container.addEventListener("resize",this.NE,!1)),this.mO=this.On.bind(this),this.eT=this.wn.bind(this),this.rT=this.jn.bind(this),this.node&&(this.node.addEventListener("pause",this.mO),this.node.addEventListener("playing",this.eT),this.node.addEventListener("seeked",this.rT)),this.VM&&this.VM.addClickListener(this.sT.bind(this)),this.oT={},this.oT[u.PLAYER_RESIZE]=this.$b.addEventListener(u.PLAYER_RESIZE,(function(i,n){window.setTimeout((function(){t.Up&&(i=window.screen.width,n=window.screen.height),t.uT(i,n)}),1)}),this),this.oT[u.FULLSCREEN_CHANGE]=this.$b.addEventListener(u.FULLSCREEN_CHANGE,(function(i){t.Up=!!i}),this),this.oT[u.PLAYER_DIMENSION_CHANGE]=this.$b.addEventListener(u.PLAYER_DIMENSION_CHANGE,(function(){var i,n,e;t.node&&t.node.parentNode&&((i=window.getComputedStyle(t.node.parentNode))&&(n=parseInt(i.getPropertyValue("width"),10),e=parseInt(i.getPropertyValue("height"),10)),n&&!isNaN(n)&&e&&!isNaN(e)&&t.uT(n,e))}),this)},i.prototype.sT=function(){this.GM=0,this.HM=0,this.qi(),this.VM&&this.VM.update(this.GM),this.$b.publish(u.THREE_SIXTY_PIE_INTERACT)},i.prototype.aT=function(){var t=this;this.oT&&Object.keys(this.oT).forEach((function(i){t.$b.removeEventListener(i,t.oT[i])})),this.WM&&(this.container&&this.container.removeEventListener("mousedown",this.WM,!1),this.WM=null),this.ZM&&(this.container&&this.container.removeEventListener("mousemove",this.ZM,!1),this.ZM=null),this.XM&&(this.container&&this.container.removeEventListener("mouseup",this.XM,!1),this.XM=null),this.KM&&(this.container&&this.container.removeEventListener("mouseover",this.KM,!1),this.KM=null),this.NE&&(this.container&&this.container.removeEventListener("resize",this.NE,!1),this.NE=null),this.KM&&(this.container&&this.container.removeEventListener("mouseover",this.KM,!1),this.KM=null),this.mO&&(this.node&&this.node.removeEventListener("pause",this.mO),this.mO=null),this.eT&&(this.node&&this.node.removeEventListener("playing",this.eT),this.eT=null),this.rT&&(this.node&&this.node.removeEventListener("seeked",this.rT),this.rT=null),this.DM&&(this.$b.removeEventListener(u.THREE_SIXTY_READY,this.DM),this.DM=null)},i.prototype.cT=function(){this.hT=!1,this.container&&(this.container.classList.remove("grabbing-360"),this.container.classList.add("over-360")),this.fT&&(this.fT=!1,this.YM=!0)},i.prototype.uT=function(t,i){var n=t,e=i;i*v>t&&(e=t/v),this.FM&&(this.FM.setViewOffset(t,i,t-n,i-e,n,e),this.FM.updateProjectionMatrix()),this.zM&&this.zM.setSize(t,i)},i.prototype.lT=function(){var t=this.lT.bind(this);if(this.YM&&this.vT)return window.cancelAnimationFrame(this.vT),void(this.vT=null);this.vT=window.requestAnimationFrame(t),this.qi()},i.prototype.qi=function(){this.HM=Math.max(-85,Math.min(85,this.HM));var t=s.Math.degToRad(90+this.HM),i=s.Math.degToRad(this.GM);this.FM&&(this.FM.position.x=500*Math.sin(t)*Math.cos(i),this.FM.position.y=500*Math.cos(t),this.FM.position.z=500*Math.sin(t)*Math.sin(i),this.FM.lookAt(this.FM.target),this.FM.position.copy(this.FM.target).negate(),this.BM&&this.zM&&this.zM.render(this.BM,this.FM))},i.prototype.CM=function(){this.vT&&window.cancelAnimationFrame(this.vT),this.YM=!0,this.aT(),this.VM&&(this.VM.destroy(),this.VM=null),this.PM&&(this.PM.parentNode&&this.PM.parentNode.removeChild(this.PM),this.PM=null),this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.FM=null,this.BM=null,this.zM=null},i.prototype.On=function(){this.dT=!0,this.YM=!0},i.prototype.wn=function(){this.dT=!1,this.YM=!1,this.lT()},i.prototype.jn=function(){this.qi()},i.prototype.tT=function(){this.container&&this.container.classList.add("over-360")},i.prototype.QM=function(t){this.pT=!1,this.container&&(this.container.classList.remove("over-360"),this.container.classList.add("grabbing-360")),this.hT=!0,this.bT=t.clientX,this.mT=t.clientY,this.gT=this.GM,this.yT=this.HM},i.prototype.$M=function(t){this.hT&&(this.dT&&!this.fT&&(this.fT=!0,this.YM=!1,this.lT()),this.pT=!0,this.GM=.1*(this.bT-t.clientX)+this.gT,this.HM=.1*(t.clientY-this.mT)+this.yT,this.VM&&this.VM.update(this.GM))},i.prototype.JM=function(){this.hT&&(this.cT(),this.pT?this.$b.publish(u.THREE_SIXTY_INTERACT):this.$b.publish(u.TOGGLE_PLAY_PAUSE)),this.pT=!1},i.prototype.nT=function(){this.cT()},i.prototype.Tn=function(){this.container&&this.uT(this.container.offsetWidth,this.container.offsetHeight)},i.prototype.kM=function(){this.DM&&(this.$b.removeEventListener(u.THREE_SIXTY_READY,this.DM),this.DM=null),!this._T&&this.zM&&this.container&&(this.zM.setSize(this.container.offsetWidth,this.container.offsetHeight),this._T=!0)},i.type=a.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),a=n(954),c=n(6389),h=n(1962),f=n(1962),l=n(440),v=n(4685),d=n(2878),p=n(531),b=n(6342),m=function(t){function i(n,e){var r=t.call(this,n,e)||this;return r.type=i.type,r.wT(),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.OT();return this.ET=new s(this.node,n),this.node},i.prototype.play=function(t){void 0===t&&(t=0),this.ended=!1,this.seeking=!1,this.$b.publish(h.PROFILE_START,f.METRICS.STREAM_PLAY_TO_RENDER),this.ET.play(t)},i.prototype.pause=function(){this.ET.pause()},i.prototype.preload=function(t){!t||p.isNumber(t.startOffset)&&t.startOffset>0||this.ET.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.wT(),this.df=b.default.getPlaybackMode(t);var r,s=t.isLive(),u=t.streamProfiles;if(u&&u.length||(u=t.streams),!u)return!1;var a=[];if(u.forEach((function(t){t&&t.format&&t.format.indexOf("m3u8")>=0?(t.hls_info=t.hlsInfo,a.push(t),e.jT="hls"):t&&t.format&&t.format.indexOf("mpd")>=0&&(r=t.url,e.jT="dash")})),"hls"===this.jT){var d=[];if(t.altStreams&&(t.altStreams=this.ST(t.altStreams),t.altStreams.forEach((function(t){d.push(t)}))),this.$b.publish(h.PROFILE_START,f.METRICS.STREAM_REQUEST_TO_RENDER),this.df===v.PlaybackMode.VIDEO&&this.$b.publish(h.PROFILE_START,f.METRICS.LOAD_TO_LOADED_DATA),a.length>0)return this.ET.setSrc({streams:a,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.oM=t,!0}else if("dash"===this.jT){if(59===o.userAgent.firefox){var p=b.default.createErr(c.ErrorGroup.Streaming,this.gw,c.E_PLAYER_JS_HLS,c.PLAYER_JS_HLS_CODES.MEDIA_ERR_DECODE);return this.publish(v.RendererEvent.ERROR,p),!1}if(null!==r)return this.ET.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.oM=t,!0}return!1},i.prototype.waitForReady=function(t){t()},i.prototype.getCurrentDate=function(){return this.ET.getCurrentDate()},i.prototype.setQuality=function(t){this.ET.setQuality(t)},i.prototype.setSeedStreamIndex=function(t){this.ET.setSeedStreamIndex(t)},i.prototype.setAudioLanguage=function(t){this.ET.setAudioLanguage(t)},i.prototype.stopMedia=function(){this.ET.unload()},i.prototype.bindCustomEvents=function(){var t=this;if(this.node){this.unbindCustomEvents();this.AT=function(i){var n=i.type;t.MT(n,i)}.bind(this),Object.keys(f.HLSVideoEvent).forEach((function(i){t.node&&t.node.addEventListener(f.HLSVideoEvent[i],t.AT)}))}},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.AT)}))},i.prototype.bindPlaybackEvents=function(){},i.prototype.unbindPlaybackEvents=function(){},i.prototype.suspendStreaming=function(){this.ET&&this.ET.suspendStreaming()},i.prototype.resumeStreaming=function(){this.ET&&this.ET.resumeStreaming()},i.prototype.getSyncOffset=function(){return this.ET?this.ET.getSyncOffset():NaN},i.prototype.startSync=function(){var t;null===(t=this.ET)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.ET)||void 0===t||t.stopSync()},i.prototype.getSyncState=function(){return this.ET?this.ET.getSyncState():-1},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.ET&&this.ET.destroy()},i.prototype.Dm=function(){t.prototype.Dm.call(this),this.bindCustomEvents()},i.prototype.pM=function(){t.prototype.pM.call(this),this.unbindCustomEvents()},i.prototype.RM=function(t){},i.prototype.Yg=function(t,i){switch(t===v.NativeVideoEvent.PLAYING&&this.$b.publish(h.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.ET.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=b.default.createErr(c.ErrorGroup.Streaming,this.gw,c.E_PLAYER_JS_HLS,r,null,s);this.TT(o),this.publish(v.RendererEvent.ERROR,o);break;case v.NativeVideoEvent.ENDED:if(this.ended=!0,!this.WO())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.NT=!1,this.publish(i);break;case v.NativeVideoEvent.PLAYING:this.NT=!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.NT||(this.NT=!0,this.publish(v.RendererEvent.PLAYING));break;case v.NativeVideoEvent.LOADEDDATA:this.$b.publish(h.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.MT=function(t,i){var n;switch(t){case f.HLSVideoEvent.INFO_UPDATE:if(this.aM){var e=i.detail.mediaInfo,r=e.currentStreamBitrate;0===this.vt.bitrate&&r>0&&this.$b.publish(u.ExternalEvt.BITRATE_CHANGE,r,{}),e.drmsys&&e.drm&&(this.vt.isDrmAvailable=e.drm,this.vt.drmSystem=e.drmsys),this.$b.publish(h.PLAYBACK_INFO,e)}break;case f.HLSVideoEvent.STREAM_SWITCHED:var s=i.detail.bitrate,o={reason:i.detail.reason,oldFrameRate:i.detail.oldFrameRate,newFrameRate:i.detail.newFrameRate};this.$b.publish(u.ExternalEvt.BITRATE_CHANGE,s,o);break;case f.HLSVideoEvent.HLS_WAITING:i&&i.detail&&!p.isNullOrUndefined(i.detail.bufferInit)&&this.publish(v.RendererEvent.WAITING,{value:i.detail.value,ignoreBuffering:i.detail.bufferInit});break;case f.HLSVideoEvent.SEGMENT_FIRST_BYTE_LOADED:this.$b.publish(h.SEGMENT_FIRST_BYTE_LOADED,i.detail);break;case f.HLSVideoEvent.SEGMENT_RENDERED:var l=this.ET.getSegInfo();l&&l.segInfo&&this.IT(l);break;case f.HLSVideoEvent.VTT_SEGMENT_LOADED:var d=this.vt?this.Ny:null;if(i.detail&&d){var m=void 0;if(this.gw.ad)m=this.oM.id;else{var g=d.getMediaItemBySessionId(i.detail.sessionId);m=g?g.id:null}i.detail.itemId=m}this.$b.publish(h.VTT_SEGMENT_LOADED,i.detail);break;case f.HLSVideoEvent.LIVE_LOADING_LATE:this.$b.publish(h.LIVE_LOADING_LATE);break;case f.HLSVideoEvent.STREAM_UPDATED:this.$b.publish(h.MEDIA_PLAYLIST_UPDATED);break;case f.HLSVideoEvent.CUEPOINT_DETECTED:this.$b.publish(u.ExternalEvt.CUEPOINT_DETECTED,i.detail.cuepointDuration,i.detail.timeGapBeforeCUEOUT);break;case f.HLSVideoEvent.CUEPOINT_STARTED:this.$b.publish(u.ExternalEvt.CUEPOINT_STARTED,i.detail.cuepointDuration,i.detail.cuepointPlayedTime);break;case f.HLSVideoEvent.SUBTITLE_STREAM_UPDATED:this.$b.publish(h.SUBTITLE_PLAYLIST_UPDATED);break;case f.HLSVideoEvent.PRELOAD_PROGRESS:this.$b.publish(h.PROFILE_END,f.METRICS.STREAM_REQUEST_TO_RENDER),this.$b.publish(h.PRELOAD_PROGRESS);break;case f.HLSVideoEvent.SEGINFO_METRICS_AVAILABLE:this.IT(i.detail);break;case f.HLSVideoEvent.CONTENT_LOAD_FINISHED:this.$b.publish(h.CONTENT_LOAD_FINISHED,i.detail);break;case f.HLSVideoEvent.PRELOAD_START:this.$b.publish(h.PRELOAD_START);break;case f.HLSVideoEvent.PRELOAD_COMPLETE:this.$b.publish(h.PRELOAD_COMPLETE);break;case f.HLSVideoEvent.BUFFER_GROWTH_DETECTED:this.$b.publish(h.BUFFER_GROWTH_DETECTED,i.detail);break;case f.HLSVideoEvent.CC_VTT_AVAILABLE:(n=this.Ny.getMediaItemBySessionId(i.detail.sessionId))&&n.setCCAvailability(!0);break;case f.HLSVideoEvent.MULTI_LANGUAGES_AVAILABLE:(n=this.Ny.getMediaItemBySessionId(i.detail.sessionId))&&n.setMultiLanguages(i.detail.languages),this.$b.publish(h.MULTI_LANGUAGES_AVAILABLE);break;case f.HLSVideoEvent.MEDIA_METADATA_LOADED:var y=this.vt.bitrates,_=this.vt.heights;this.vt.bitrates=y&&y.length?y:i.detail.map((function(t){return t.bitrate/1e3})),this.vt.heights=_&&_.length?_:i.detail.map((function(t){return t.height}));break;case f.HLSVideoEvent.TIMED_METADATA_READY:var w=b.default.extractID3Data(i.detail.data);if(w){var O=b.default.detectRegexPattern(a.ID3_MATCH_PATTERN.JSON,w);if(O)try{w=JSON.parse(O)}catch(t){}this.$b.publish(h.TIMED_METADATA_RECEIVED,w)}break;case f.HLSVideoEvent.BUFFER_GAP_DETECTED:var E=b.default.createErr(c.ErrorGroup.Streaming,this.gw,c.E_WARNING,c.WARNING_CODES.E_BUFFER_GAP);this.$b.publish(h.WARNING,E);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.$b.publish(h.STREAM_SYNCH_STRATEGY_APPLIED,i.detail);break;case f.HLSVideoEvent.STREAM_SYNCH_COMPLETE:this.$b.publish(h.STREAM_SYNCH_COMPLETE,i.detail)}},i.prototype.TT=function(t){switch(t.subcategory){case c.PLAYER_JS_HLS_CODES.ERR_DRM_EME_MISSING:t.category=c.E_PLAYER_DRM,t.subcategory=c.PLAYER_DRM_CODES.E_EME_MISSING;break;case c.PLAYER_JS_HLS_CODES.ERR_DRM_INIT:t.category=c.E_PLAYER_DRM,t.subcategory=c.PLAYER_DRM_CODES.E_INIT;break;case c.PLAYER_JS_HLS_CODES.ERR_DRM_CONFIG:t.category=c.E_PLAYER_DRM,t.subcategory=c.PLAYER_DRM_CODES.E_CONFIG;break;case c.PLAYER_JS_HLS_CODES.ERR_DRM_LICENSE_REQUEST:t.category=c.E_PLAYER_DRM,t.subcategory=c.PLAYER_DRM_CODES.E_LICENSE_REQUEST}},i.prototype.OT=function(){var t;return this.RT=!1,{useWorker:!0,sendAbrAnalytics:this.RT,stopBufferingOnPause:this.vt.stopBufferingOnPause,dimensions:{width:this.vt.uiState.width,height:this.vt.uiState.height},streamSync:{enabled:(null===(t=this.vt.config.streamSync)||void 0===t?void 0:t.enabled)||!1}}},i.prototype.LT=function(){var t=document.getElementsByClassName(a.VIDEO_MAIN_ELEMENT_CLASS);return!b.default.isPlayerInBackground()&&t&&t.length>0&&0!==b.default.getElementViewability(t[0])},i.prototype.ST=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.IT=function(t){var i=t.segInfo,n=t.sessionId,e=this.LT();i.forEach((function(t){t.vis=e})),this.$b.publish(h.SEG_INFO_AVAILABLE,{val:i,session:n,bufferLen:t.bufferLen})},i.prototype.wT=function(){this.oM=null,this.jT=null,this.df=v.PlaybackMode.VIDEO,this.NT=!0,this.seeking=!1,this.ended=!1},i.type=v.RendererType.HTML5_HLS,i}(n(5132).default);i.default=m},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),a=n(4685),c=n(2878),h=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.iA=e.capabilities[a.RendererType.HTML5_RAW_360],r}return r(i,t),i.canUse=function(){return!o.userAgent.tv&&(c.default.is360Supported()&&t.canUse.call(this))},i.prototype.create=function(i){return t.prototype.create.call(this,i),this.LM(),this.container},i.prototype.destroy=function(){this.CM(),t.prototype.destroy.call(this)},i.prototype.waitForReady=function(t){var i=this;this.dd?(this.kM(),t()):this.DM=this.$b.addEventListener(u.THREE_SIXTY_READY,(function(){i.kM(),t()}),this)},i.prototype.LM=function(){var t=this;this.dd=!1,this.node&&(this.node.setAttribute("crossorigin","anonymous"),this.node.style.visibility="hidden",this.PM=document.createElement("div"),this.PM.classList.add("vp-360-node"),this.PM.style.position="absolute",this.container=document.createElement("div"),this.container.setAttribute("id",h.default.generateGuid()),this.container.classList.add("vp-360-video"),this.container.appendChild(this.node),this.container.appendChild(this.PM),this.xM().then((function(){t.UM()})).catch((function(t){})))},i.prototype.xM=function(){return new Promise((function(t,i){n.e(212).then(function(){s=n(2212),t(s)}.bind(null,n)).catch((function(t){i(t)}))}))},i.prototype.UM=function(){this.FM=new s.PerspectiveCamera(70,v,.01,1e3),this.FM.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.BM=new s.Scene,this.BM.add(e),this.zM=new s.WebGLRenderer,this.zM.setPixelRatio(window.devicePixelRatio),this.PM&&this.PM.appendChild(this.zM.domElement),this.VM=new f.default(this.container),this.GM=0,this.HM=0,this.YM=!0,this.qM(),this.dd=!0,this.$b.publish(u.THREE_SIXTY_READY)},i.prototype.qM=function(){var t=this;this.WM=this.QM.bind(this),this.ZM=this.$M.bind(this),this.XM=this.JM.bind(this),this.KM=this.tT.bind(this),this.iT=this.nT.bind(this),this.NE=this.Tn.bind(this),this.container&&(this.container.addEventListener("mousedown",this.WM,!1),this.container.addEventListener("mousemove",this.ZM,!1),this.container.addEventListener("mouseup",this.XM,!1),this.container.addEventListener("mouseover",this.KM,!1),this.container.addEventListener("mouseout",this.iT,!1),this.container.addEventListener("resize",this.NE,!1)),this.mO=this.On.bind(this),this.eT=this.wn.bind(this),this.rT=this.jn.bind(this),this.node&&(this.node.addEventListener("pause",this.mO),this.node.addEventListener("playing",this.eT),this.node.addEventListener("seeked",this.rT)),this.VM&&this.VM.addClickListener(this.sT.bind(this)),this.oT={},this.oT[u.PLAYER_RESIZE]=this.$b.addEventListener(u.PLAYER_RESIZE,(function(i,n){window.setTimeout((function(){t.Up&&(i=window.screen.width,n=window.screen.height),t.uT(i,n)}),1)}),this),this.oT[u.FULLSCREEN_CHANGE]=this.$b.addEventListener(u.FULLSCREEN_CHANGE,(function(i){t.Up=!!i}),this),this.oT[u.PLAYER_DIMENSION_CHANGE]=this.$b.addEventListener(u.PLAYER_DIMENSION_CHANGE,(function(){var i,n,e;t.node&&t.node.parentNode&&((i=window.getComputedStyle(t.node.parentNode))&&(n=parseInt(i.getPropertyValue("width"),10),e=parseInt(i.getPropertyValue("height"),10)),n&&!isNaN(n)&&e&&!isNaN(e)&&t.uT(n,e))}),this)},i.prototype.sT=function(){this.GM=0,this.HM=0,this.qi(),this.VM&&this.VM.update(this.GM),this.$b.publish(u.THREE_SIXTY_PIE_INTERACT)},i.prototype.aT=function(){var t=this;this.oT&&Object.keys(this.oT).forEach((function(i){t.$b.removeEventListener(i,t.oT[i])})),this.WM&&(this.container&&this.container.removeEventListener("mousedown",this.WM,!1),this.WM=null),this.ZM&&(this.container&&this.container.removeEventListener("mousemove",this.ZM,!1),this.ZM=null),this.XM&&(this.container&&this.container.removeEventListener("mouseup",this.XM,!1),this.XM=null),this.KM&&(this.container&&this.container.removeEventListener("mouseover",this.KM,!1),this.KM=null),this.NE&&(this.container&&this.container.removeEventListener("resize",this.NE,!1),this.NE=null),this.KM&&(this.container&&this.container.removeEventListener("mouseover",this.KM,!1),this.KM=null),this.mO&&(this.node&&this.node.removeEventListener("pause",this.mO),this.mO=null),this.eT&&(this.node&&this.node.removeEventListener("playing",this.eT),this.eT=null),this.rT&&(this.node&&this.node.removeEventListener("seeked",this.rT),this.rT=null),this.DM&&(this.$b.removeEventListener(u.THREE_SIXTY_READY,this.DM),this.DM=null)},i.prototype.cT=function(){this.hT=!1,this.container&&(this.container.classList.remove("grabbing-360"),this.container.classList.add("over-360")),this.fT&&(this.fT=!1,this.YM=!0)},i.prototype.uT=function(t,i){var n=t,e=i;i*v>t&&(e=t/v),this.FM&&(this.FM.setViewOffset(t,i,t-n,i-e,n,e),this.FM.updateProjectionMatrix()),this.zM&&this.zM.setSize(t,i)},i.prototype.lT=function(){var t=this.lT.bind(this);if(this.YM&&this.vT)return window.cancelAnimationFrame(this.vT),void(this.vT=null);this.vT=window.requestAnimationFrame(t),this.qi()},i.prototype.qi=function(){this.HM=Math.max(-85,Math.min(85,this.HM));var t=s.Math.degToRad(90+this.HM),i=s.Math.degToRad(this.GM);this.FM&&(this.FM.position.x=500*Math.sin(t)*Math.cos(i),this.FM.position.y=500*Math.cos(t),this.FM.position.z=500*Math.sin(t)*Math.sin(i),this.FM.lookAt(this.FM.target),this.FM.position.copy(this.FM.target).negate(),this.BM&&this.zM&&this.zM.render(this.BM,this.FM))},i.prototype.CM=function(){this.vT&&window.cancelAnimationFrame(this.vT),this.YM=!0,this.aT(),this.VM&&(this.VM.destroy(),this.VM=null),this.PM&&(this.PM.parentNode&&this.PM.parentNode.removeChild(this.PM),this.PM=null),this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.FM=null,this.BM=null,this.zM=null},i.prototype.On=function(){this.dT=!0,this.YM=!0},i.prototype.wn=function(){this.dT=!1,this.YM=!1,this.lT()},i.prototype.jn=function(){this.qi()},i.prototype.tT=function(){this.container&&this.container.classList.add("over-360")},i.prototype.QM=function(t){this.pT=!1,this.container&&(this.container.classList.remove("over-360"),this.container.classList.add("grabbing-360")),this.hT=!0,this.bT=t.clientX,this.mT=t.clientY,this.gT=this.GM,this.yT=this.HM},i.prototype.$M=function(t){this.hT&&(this.dT&&!this.fT&&(this.fT=!0,this.YM=!1,this.lT()),this.pT=!0,this.GM=.1*(this.bT-t.clientX)+this.gT,this.HM=.1*(t.clientY-this.mT)+this.yT,this.VM&&this.VM.update(this.GM))},i.prototype.JM=function(){this.hT&&(this.cT(),this.pT?this.$b.publish(u.THREE_SIXTY_INTERACT):this.$b.publish(u.TOGGLE_PLAY_PAUSE)),this.pT=!1},i.prototype.nT=function(){this.cT()},i.prototype.Tn=function(){this.container&&this.uT(this.container.offsetWidth,this.container.offsetHeight)},i.prototype.kM=function(){this.DM&&(this.$b.removeEventListener(u.THREE_SIXTY_READY,this.DM),this.DM=null),!this._T&&this.zM&&this.container&&(this.zM.setSize(this.container.offsetWidth,this.container.offsetHeight),this._T=!0)},i.type=a.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),a=n(9451),c=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 h=function(t){function i(){var i=t.call(this,"Html5RawRebufferingManager")||this;return i.CT=null,i.kT=0,i.Ye=null,i.DT=0,i.reset(),i}return r(i,t),i.prototype.destroy=function(){this.PT()},i.prototype.init=function(t,i){void 0===i&&(i=!1),t&&(this._node=t,i&&this.onRecoveryStart(),this.reset(),this.xT())},i.prototype.onSeeking=function(){this.UT()},i.prototype.onRecoveryStart=function(){this.FT(),this.IT()},i.prototype.onEnded=function(){this.PT()},i.prototype.reset=function(){this.cv=!0,this.playbackStuck=!1,this.Te=NaN,this.BT=0,this.Be=null,this.kT=0,this.DT=0,this.Ye=null},i.prototype.publishWaitingEvent=function(t){if((!this.playbackStuck||!t)&&(this.playbackStuck||t)){var i={type:"waiting",value:t,ignoreBuffering:this.cv};this.publish(s.WAITING,i),this.playbackStuck=t,t?(this.Te=this._node&&this._node.currentTime||0,this.cv||(this.Ye=Date.now())):(this.cv=!1,this.Te=NaN,this.FT())}},i.prototype.xT=function(){this.PT(),this.CT=new c.Timer(250,this.zT,this),this.CT.start()},i.prototype.FT=function(){this.Ye&&(this.kT+=Date.now()-this.Ye,this.Ye=null)},i.prototype.zT=function(){this.UT(),this.VT()>5e3&&(this.IT(),this.DT=0)},i.prototype.UT=function(t){if(void 0===t&&(t=!1),this&&this._node){var i=this.Pe();if(t||!(i<150)){var n=this._node.currentTime,e=!1;if(a.userAgent.safari>=6){var r=0;this._node.buffered&&this._node.buffered.length>0&&(r=this._node.buffered.end(this._node.buffered.length-1)),e=this._node.readyState!==o.HAVE_ENOUGH_DATA||r>0&&r+1<this._node.duration&&r<n}n!==this.BT&&!e||this._node.paused?!isNaN(this.Te)&&n>this.Te&&this.publishWaitingEvent(!1):this.playbackStuck||(this.cv=n<=.02,this.publishWaitingEvent(!0)),this.BT=n,this.Be=Date.now()}}else this.PT()},i.prototype.Pe=function(){var t=Date.now();return this.Be=this.Be||t,t-this.Be},i.prototype.VT=function(){var t=Date.now();return this.DT=this.DT||t,t-this.DT},i.prototype.IT=function(){this.publish(s.SEG_INFO_AVAILABLE,{val:[{buf_dur:this.kT}]}),this.kT=0},i.prototype.PT=function(){this.CT&&(this.CT.destroy(),this.CT=null)},i}(u.default);i.default=h},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),a=n(1962),c=n(1962),h=n(4685),f=n(5244),l=n(9452),v=n(1204),d=n(2878),p=n(2394),b=n(531),m=n(6342),g=n(5132),y=n(268),_=[1,5],w=function(t){function i(n,e){var r=t.call(this,n,e)||this;return r.type=i.type,r.GT={},r.iA=e.capabilities[h.RendererType.HTML5_RAW],r.wT(),(s.userAgent.desktop||s.userAgent.mobile&&v.default.hasNativeAutoplaySupport)&&(r.hM=!0),r.HT=new y.default,r.HT.on(y.RebufferingEvent.WAITING,r.jv,r),r.HT.on(y.RebufferingEvent.SEG_INFO_AVAILABLE,r.rg,r),r}return r(i,t),i.canUse=function(){return!s.userAgent.tv},i.prototype.destroy=function(){this.YT&&this.YT.destroy(),t.prototype.destroy.call(this)},i.prototype.play=function(t){if(void 0===t&&(t=0),this.ended=!1,this.node){if(this.Si)return this.publish(h.RendererEvent.ERROR,this.Si),void(this.Si=null);if(this.MO){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.WO(),e=isNaN(this.node.duration)?n&&n.duration:this.node.duration;e||(e=0),b.isNumber(t)&&t>0&&t<e&&(this.node.currentTime=t)}this.MO=!1,this.$b.publish(c.PROFILE_START,a.METRICS.STREAM_PLAY_TO_RENDER),this.EM(),this.qT||(this.HT.publishWaitingEvent(!0),this.qT=!0)}},i.prototype.preload=function(t){},i.prototype.setPlayableItem=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=!1),this.wT(),this.df=m.default.getPlaybackMode(t);var e=t.streams||[],r=!1,o=null;this.Lu=e,this.WT=e.slice(0),this.HT.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.QT(o,i),this.oM=t,!0}else{e.forEach((function(t){u.push(parseInt(t.videoMetadata.bitrate+"",10))})),u=u.sort(),this.ZT=new l.default(this.node,u);var a=this.ZT.getTargetBitrate();if(o=this.$T(a))return this.QT(o,i),this.XT(o),this.vt.mp4Abr&&u.length>1&&(this.JT=this.on(h.RendererEvent.TIMEUPDATE,this.fm,this),this.KT=0),this.oM=t,!0}return!1},i.prototype.setQuality=function(t){this.tN(t.stream.url),this.XT(t.stream)},i.prototype.setSeedStreamIndex=function(t){},i.prototype.retryStreams=function(t){var i=this,n=this.Ee;if(n&&this.iN<=2)window.setTimeout((function(){i.nN(n,t)}),1e3*_[this.iN-1]);else{this.iN=0;var e=this.WT.indexOf(n);if(this.WT.splice(e,1),0===this.WT.length)return n;var r=p.default.findStreamByProperty(this.WT,p.default.BITRATE,this.ZT.getTargetBitrate(),this.iA);this.nN(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.$b.publish(c.LIVE_RELOAD_MEDIA)},i.prototype.getSyncOffset=function(){return this.Wi?this.Wi.getSyncOffset():NaN},i.prototype.startSync=function(){var t;null===(t=this.Wi)||void 0===t||t.startSync()},i.prototype.stopSync=function(){var t;null===(t=this.Wi)||void 0===t||t.stopSync()},i.prototype.getSyncState=function(){return this.Wi?this.Wi.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.RM=function(t){var i;null===(i=this.Wi)||void 0===i||i.updateDateRanges(t)},i.prototype.Yg=function(t,i){var n=this;if(this.node)switch(t===h.NativeVideoEvent.PLAYING&&this.$b.publish(c.PROFILE_END,[a.METRICS.STREAM_PLAY_TO_RENDER,a.METRICS.STREAM_REQUEST_TO_RENDER]),t){case h.NativeVideoEvent.TIMEUPDATE:this.HT.playbackStuck||(this.eN||(this.eN=!0,this.publish(h.RendererEvent.PLAYING)),this.seeking&&(this.publish(h.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.rN&&s.userAgent.chrome<33&&e>1&&e<2)(b=this.WO())&&b.isLive()?(this.node.pause(),this.EM()):this.seek(0),this.rN=!0;!this.sN&&s.userAgent.androidVersion<=4.4&&this.node.addEventListener("webkitfullscreenchange",(function(){if(n.node){var t=n.node.currentTime;n.sN=!0,n.node.load();var i=n.on(h.RendererEvent.LOADEDMETADATA,(function(){if(n.node){n.EM();var e=n.WO();e&&e.isLive()&&(n.node.currentTime=parseInt(t+"",10)),n.removeEventListener(h.RendererEvent.LOADEDMETADATA,i)}}),n)}}),!1)}this.oN||this.HT.playbackStuck||this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.uN=this.node.currentTime;var r=this.node.getStartDate&&this.node.getStartDate(),o=r&&new Date(r).getTime();if(!o)break;Object.keys(this.fM).forEach((function(t){var i=n.fM[t],e=1e3*n.node.currentTime,r=e>=i.startDate-o&&e<=i.endDate-o;r&&!(t in n.GT)?(n.GT[t]=!0,n.publish(h.RendererEvent.DATERANGE_STARTED,i)):!r&&t in n.GT&&!0===n.GT[t]&&(n.GT[t]=!1,n.publish(h.RendererEvent.DATERANGE_ENDED,i))}));break;case h.NativeVideoEvent.SEEKING:this.seeking=!0,this.HT.onSeeking(),this.oN||this.HT.playbackStuck||this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.uN=this.node.currentTime;break;case h.NativeVideoEvent.SEEKED:this.oN?this.aN():this.HT.playbackStuck||(this.seeking=!1,this.publish(i,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered})),this.uN=this.node.currentTime;break;case h.NativeVideoEvent.ERROR:var f=this.node.error,l=this.jM(f),v=this.WT.length<=1&&this.iN>=2,d=u.E_WARNING;v&&(d=u.E_PLAYER);var p=m.default.createErr(u.ErrorGroup.Streaming,this.gw,d,l,null,this.node.src);if(this.df!==h.PlaybackMode.VIDEO){p.errorType=u.E_PLAYER,this.publish(h.RendererEvent.ERROR,p);break}if(parseInt(p.subcategory,10)>=303&&parseInt(p.subcategory,10)<=308){this.iN++,v||this.$b.publish(c.WARNING,p);var b,g=null;return(g=(b=this.WO())&&!b.isLive()?this.retryStreams(this.uN):this.retryStreams(0))?void m.default.getUrlStatus(g.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(h.RendererEvent.ERROR,p)})):void 0}p.errorType=u.E_PLAYER,this.publish(h.RendererEvent.ERROR,p);break;case h.NativeVideoEvent.ENDED:this.ended=!0,this.rN=!1,this.HT.onEnded(),this.HT.playbackStuck&&this.HT.publishWaitingEvent(!1),this.publish(i);break;case h.NativeVideoEvent.LOADEDDATA:if(this.oN){this.cN();break}this.$b.publish(c.PROFILE_END,a.METRICS.LOAD_TO_LOADED_DATA),this.publish(i),this.node.audioTracks&&this.node.audioTracks.length>1&&this.hN();break;case h.NativeVideoEvent.PAUSE:if(this.ended||this.node.ended)break;if(this.seeking)break;if(!this.node.paused)break;this.HT.playbackStuck&&this.HT.publishWaitingEvent(!1),this.publish(i);break;case h.NativeVideoEvent.PLAY:case h.NativeVideoEvent.PLAYING:if(this.oN){t===h.NativeVideoEvent.PLAYING&&this.fN();break}this.HT.playbackStuck||(this.eN=t===h.NativeVideoEvent.PLAYING,this.publish(i));break;case h.NativeVideoEvent.WAITING:case h.NativeVideoEvent.VOLUMECHANGE:break;default:this.publish(i)}},i.prototype.lN=function(t,i){return t.indexOf(i)>-1},i.prototype.vN=function(t,i){return this.lN(t,"mp4")&&this.lN(i,"m3u8")||this.lN(t,"m3u8")&&this.lN(i,"mp4")},i.prototype.wT=function(){this.oN=!1,this.dN="",this.Ee=null,this.iN=0,this.WT=[],this.pN=null,this.qT=!1,this.uN=0,this.eN=!1,this.oM=null,this.df=h.PlaybackMode.VIDEO,this.rN=!1,this.sN=!1,this.KT=0,this.JT&&(this.removeEventListener(h.RendererEvent.TIMEUPDATE,this.JT),this.JT=null),this.seeking=!1,this.ended=!1},i.prototype.bN=function(){var t=null;if(this.Lu)for(var i=0,n=this.Lu;i<n.length;i++){var e=n[i];if(e.isPrimary){t=e;break}}return t},i.prototype.$T=function(t){var i=this.bN();return i||(i=p.default.findStreamByProperty(this.Lu,"bitrate",t,this.iA)),!i&&this.Lu&&this.Lu.length>0&&(i=this.Lu[0]),i},i.prototype.fm=function(t){if(t-this.KT>10){this.KT=t;var i=this.$T(this.ZT.getRecommendedBitrate());i&&(this.tN(i.url),this.XT(i))}},i.prototype.XT=function(t){this.ZT&&(this.ZT.currentBitrate=t.videoMetadata.bitrate),this.$b.publish(c.PLAYBACK_INFO,{currentStreamBitrate:t.videoMetadata.bitrate,qualityLevels:this.Lu.length})},i.prototype.QT=function(t,i,n){var e=this;if(this.node){var r=this.WO();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.$b.publish(c.INFO,m.default.createErr(u.ErrorGroup.Streaming,this.gw,u.E_INFO,l,null,this.node.src))}if(s.userAgent.safari&&(this.YT?r.isRecovering()&&this.YT.init():this.YT=new o.default(this.node,t.fairplayCertificatePath,this.mN.bind(this),this.reportError.bind(this))),this.ended=!1,this.rN=!1,this.node.src!==t.url||n){if(s.userAgent.iphone&&Object.prototype.hasOwnProperty.call(this.node,"webkitDisplayingFullscreen")&&!this.node.webkitDisplayingFullscreen&&t.format&&this.vN(t.format,this.dN)){var b=this.node.parentNode;this.destroy(),b&&b.appendChild(this.create())}if(s.userAgent.safari&&s.userAgent.ios&&this.vt.shouldSynchronize()&&(this.Wi&&this.Wi.onSetSrc(),this.Wi),s.userAgent.android&&t.live&&(s.userAgent.chrome&&s.userAgent.chrome<30||!d.default.isAndroidVersionAbove4())){var g=m.default.createErr(u.ErrorGroup.Restriction,this.gw,u.E_INFO,u.INFO_CODES.E_PLAYER_ANDROID_CHROME_REQUIRED);return void this.$b.publish(c.INFO,g)}if(this.bM(),this.$b.publish(c.PROFILE_START,a.METRICS.STREAM_REQUEST_TO_RENDER),this.node.src=t.url,i)var y=this.on(h.RendererEvent.LOADEDMETADATA,(function(){e.node&&(e.node.currentTime=i),e.removeEventListener(h.RendererEvent.LOADEDMETADATA,y)}),this);this.MO=!0,this.dN=t.format||"",this.Ee=t,this.df===h.PlaybackMode.VIDEO&&this.$b.publish(c.PROFILE_START,a.METRICS.LOAD_TO_LOADED_DATA),s.userAgent.mobile?v.default.hasNativeAutoplaySupport&&this.node.load():(this.node.load(),this.vt.getState()===f.States.VIDEO&&this.play())}}},i.prototype.gN=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.cN=function(){this.seek(this.Hp)},i.prototype.mN=function(){this.vt.isDrmAvailable=!0,this.vt.drmSystem="fairplay"},i.prototype.aN=function(){if(this.node){this.EM();var t=this.yN.parentNode;t&&t.removeChild(this.yN)}},i.prototype.fN=function(){this.publish(h.CustomRendererEvent.SRC_SWITCHED),this.oN=!1},i.prototype.tN=function(t,i){if(this.node){var n=this.node.clientWidth,e=this.node.clientHeight;if(this.node.src===t)return this.publish(h.CustomRendererEvent.SRC_SWITCHING),void this.publish(h.CustomRendererEvent.SRC_SWITCHED);this.oN=!0,this.node.pause(),this.Hp=this.node.currentTime;var r=document.createElement("canvas");this.yN=r,r.className="vp-switching-canvas",r.width=n,r.height=e;var s=this.gN();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(h.CustomRendererEvent.SRC_SWITCHING),this.node.src=t}},i.prototype.nN=function(t,i){this.QT(t,i,!0),this.XT(t)},i.prototype.hN=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.WO();i&&(i.setMultiLanguages(t),this.$b.publish(c.MULTI_LANGUAGES_AVAILABLE))}},i.prototype.jv=function(t){t.value&&(this.eN=!1),t.ignoreBuffering=t.ignoreBuffering||this.seeking,this.publish(h.RendererEvent.WAITING,t)},i.prototype.rg=function(t){this.$b.publish(c.SEG_INFO_AVAILABLE,t)},i.type=h.RendererType.HTML5_RAW,i}(g.default);i.default=w},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"),a=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}(),c=function(){var t=!1;try{t=s.default.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"',u)}catch(i){t=!1}return t}(),h=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"),(a||r.userAgent.android&&s.default.isAndroidVersionAbove4())&&e.push("m3u8"),(f||r.userAgent.android&&s.default.isAndroidVersionAbove4())&&e.push("mpd"),c&&e.push("mp4"),h&&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}}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.AdPluginEvent=i.ExternalPlayerCapability=i.CustomRendererEvent=i.RendererEvent=i.NativeVideoEvent=i.PlaybackMode=i.RendererType=void 0;var s,o=n(1409);!function(t){t.AD_PLUGIN="AD_PLUGIN",t.HTML5_HLS="HTML5_HLS",t.HTML5_RAW="HTML5_RAW",t.HTML5_RAW_360="HTML5_RAW_360",t.HTML5_HLS_360="HTML5_HLS_360",t.HTML5_TV="HTML5_TV",t.HTML5_TV_TIZEN="HTML5_TV_TIZEN",t.HTML5_TV_ORSAY="HTML5_TV_ORSAY",t.UNKNOWN="UNKNOWN"}(s=i.RendererType||(i.RendererType={})),function(t){t.VIDEO="video",t.AD="ad"}(i.PlaybackMode||(i.PlaybackMode={})),function(t){t.ENDED="ended",t.ERROR="error",t.LOADEDMETADATA="loadedmetadata",t.LOADEDDATA="loadeddata",t.PAUSE="pause",t.STALLED="stalled",t.LOADSTART="loadstart",t.PLAY="play",t.PLAYING="playing",t.SEEKING="seeking",t.SEEKED="seeked",t.TIMEUPDATE="timeupdate",t.VOLUMECHANGE="volumechange",t.WAITING="waiting"}(i.NativeVideoEvent||(i.NativeVideoEvent={})),function(t){t.PAUSE="pause",t.ENDED="ended",t.PLAYBACK_ENDED="playbackended",t.ERROR="error",t.INFO="info",t.LOADEDMETADATA="loadedmetadata",t.LOADEDDATA="loadeddata",t.STALLED="stalled",t.LOADSTART="loadstart",t.PLAY="play",t.PLAYING="playing",t.SEEKING="seeking",t.SEEKED="seeked",t.TIMEUPDATE="timeupdate",t.VOLUMECHANGE="volumechange",t.WAITING="waiting",t.DATERANGE_STARTED="daterangestarted",t.DATERANGE_ENDED="daterangeended",t.AD_CC_LOADED="adccloaded",t.SUBTITLE_TRACK_RECEIVED="subtitleTrackReceived"}(i.RendererEvent||(i.RendererEvent={})),function(t){t.SRC_SWITCHING="srcSwitching",t.SRC_SWITCHED="srcSwitched",t.CLICK="rendererClick",t.PLAYBACK_START_BLOCKED="playBlocked",t.PLAYBACK_START_NOT_BLOCKED="playNotBlocked",t.SKIPPED="rendererItemSkipped",t.END_FULLSCREEN="endFullscreen",t.ENTER_FULLSCREEN="enterFullscreen",t.PLAY_COMPLETE="playComplete",t.PIP_MODE_CHANGED="pipModeChanged"}(i.CustomRendererEvent||(i.CustomRendererEvent={})),function(t){t.RENDER_PDL="1",t.RENDER_VPAID="2",t.RENDER_HLS="3"}(i.ExternalPlayerCapability||(i.ExternalPlayerCapability={})),function(t){t.BREAK_ENDED="BREAK_ENDED",t.PLAYING="PLAYING",t.PAUSED="PAUSED",t.PLAY_COMPLETE="PLAY_COMPLETE",t.TIME_UPDATE="TIME_UPDATE",t.MUTE_CHANGED="MUTE_CHANGED",t.VOLUME_CHANGED="VOLUME_CHANGED",t.CLOSED_CAPTIONS_LOADED="CLOSED_CAPTIONS_LOADED"}(i.AdPluginEvent||(i.AdPluginEvent={}));var u=function(t){function i(n){void 0===n&&(n="renderer");var e=t.call(this,n)||this;return e.type=i.type,e.oM=null,e}return r(i,t),i.canUse=function(){return!1},i.prototype.getPlayableItem=function(){return this.oM},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),a=n(1600),c=n(6103),h=function(){function t(){}return t.getRendererTypes=function(){for(var t=[],i=0,n=[e.default,s.default,r.default,o.default,c.default,a.default,u.default];i<n.length;i++){var h=n[i];h&&h.canUse()&&t.push(h.type)}return t},t.getAdRendererTypes=function(){for(var t=[],i=0,n=[e.default,s.default,c.default,a.default,u.default];i<n.length;i++){var r=n[i];r&&r.canUse()&&t.push(r.type)}return t},t}();i.default=h},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._N=[],this.wN=[],this.EN=null,this.jN=s.default.hasTouchRestrictions,this.SN=1,this.fill()}return t.getPool=function(){return t.AN||(t.AN=new t),t.AN},t.prototype.get=function(){this._N.length<=2&&this.fill();var t=this._N.shift();if(t)return r.default.isUnmuteRestrictionRemoved(t)||this.wN.push(t),t.setAttribute("data-vp-ridx",this.SN+""),t.__rendererIndex=this.SN,this.SN++,t},t.prototype.fill=function(){this.MN(10-this._N.length)},t.prototype.discard=function(t){r.default.cleanupVideoNode(t);var i=this.wN.indexOf(t);-1!==i&&this.wN.splice(i,1)},t.prototype.destroy=function(){this.EN&&this.EN(),this._N.length=0,this.wN.length=0,this.wN=this._N=[],this.EN=null},t.prototype.MN=function(t){for(var i=0;i<t;i++){var n=e.userAgent.mobile?r.default.createMobileVideoNode():o.default.createVideoNode();this._N.push(n)}this.jN&&this.TN()},t.prototype.TN=function(){var t=this;this.EN||(this.EN=r.default.waitForValidUserGestureEvent((function(){t.EN=null,t.wN.forEach(r.default.removeUnmuteRestriction),t._N.forEach(r.default.removeUnmuteRestriction),t.wN.forEach(r.default.removeTouchToPlayRestriction),t._N.forEach(r.default.removeTouchToPlayRestriction),t.wN.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),a=n(9068),c=o(o({},u),a),h=(null===(s=null===(r=null===(e=window.YAHOO)||void 0===e?void 0:e.CorePlayer)||void 0===r?void 0:r.i18n)||void 0===s?void 0:s.strings)||c;i.default=h},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.NN=t,this.IN=i?i.sort((function(t,i){return t-i})):[],this.reservoirLength=n||10,this.cushionLength=e||20,this.currentBitrate=0,this.RN={},this.IN.forEach((function(t){r.RN[t]=0})),t&&t.addEventListener("waiting",(function(){r.RN[r.currentBitrate]=r.RN[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.NN.buffered,i=this.NN.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.NN.length-i?Number.MAX_VALUE:n}return n},t.prototype.getRecommendedBitrate=function(t,i,n){i=i||this.IN,n=void 0===n?this.getBufferOccupancy():n,t=void 0===t?i.indexOf(this.currentBitrate):t;var e=i[t],r=i[0],s=i[i.length-1],o=e===s?s:i[t+1],u=e===r?r:i[t-1],a=this.LN(i,n),c=e;return a>=o?c=this.CN(i,a):a<=u&&(c=this.kN(i,a)),c},t.prototype.getNumberOfBufferingsForBitrate=function(t){return this.RN[t]},t.prototype.LN=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.CN=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.kN=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.ue=t,this.DN=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.DN.push({args:i,job:t})},t.prototype.flush=function(t){var i=this;void 0===t&&(t=!1);var n=this.DN;this.DN=new Array,t&&n.forEach((function(t){if(i.ue){var n=t.job,e=t.args;n.apply(i.ue,e)}}))},t.prototype.deQueue=function(t,i){if(void 0===i&&(i=!1),t)for(var n=0;n<this.DN.length;n++){var e=this.DN[n],r=e.job,s=e.args;if(r===t){i&&this.ue&&r.apply(this.ue,s),this.DN.splice(n,1);break}}},t.prototype.getLength=function(){return this.DN.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(){a&&a(),t()},a=function(){i&&i.destroy(),n&&n.forEach((function(t){u&&window.removeEventListener(t,u,!0)})),n=i=u=a=null};return n.forEach((function(t){u&&window.addEventListener(t,u,!0)})),a},t.isUnmuteRestrictionRemoved=function(t){return!!t&&("boolean"!=typeof t.__userTouchRestrictionRemoved||t.__userTouchRestrictionRemoved)},t.removeUnmuteRestriction=function(i){if(i&&!t.isUnmuteRestrictionRemoved(i)){var n=i.muted;i.muted=!1,i.__userTouchRestrictionRemoved=!0,i.setAttribute("data-restricted","false"),i.muted!==n&&(i.muted=n)}},t.removeTouchToPlayRestriction=function(i){i&&s.default.autoplayByUIEvtOnly&&!t.isTouchToPlayRestrictionRemoved(i)&&(i.load(),i.__userTouchToPlayRestrictionRemoved=!0)},t.isTouchToPlayRestrictionRemoved=function(t){return!!t&&(!s.default.autoplayByUIEvtOnly||!!t.__userTouchToPlayRestrictionRemoved)},t.setupTouchToPlayRestrictionRemoval=function(i,n){return!s.default.autoplayByUIEvtOnly||t.isTouchToPlayRestrictionRemoved(i)?(n(),o.default.noop):t.waitForValidUserGestureEvent((function(){t.removeTouchToPlayRestriction(i),n()}))},t.createMobileVideoNode=function(){var t=o.default.createVideoNode();return e.userAgent.mobile&&s.default.autoplaySupported?(t.controlsList&&"function"==typeof t.controlsList.add&&t.controlsList.add("nodownload"),s.default.canPlayInline&&t.setAttribute("playsinline","true"),t.muted=!0,t.__userTouchRestrictionRemoved=!1,t.setAttribute("data-restricted","true"),s.default.autoplayByUIEvtOnly&&(t.__userTouchToPlayRestrictionRemoved=!1),s.default.hasMuteAtFirstPlayRestriction&&(t.__onPlaying=function(){t.__hasPlayedVideo=!0,t.__firstPlaybackStartCb&&(t.__firstPlaybackStartCb(),delete t.__firstPlaybackStartCb),t.__onPlaying&&(t.removeEventListener("playing",t.__onPlaying),delete t.__onPlaying)},t.__hasPlayedVideo=!1,t.addEventListener("playing",t.__onPlaying)),t):t},t.setMuteSafe=function(i,n){i.muted!==n&&t.isUnmuteRestrictionRemoved(i)&&(s.default.hasMuteAtFirstPlayRestriction&&!t.hasFirstPlaybackStartHappened(i)?t.onceFirstPlaybackStarts(i,(function(){i.muted=n})):i.muted=n)},t.cleanupVideoNode=function(t){t.__firstPlaybackStartCb&&(t.__firstPlaybackStartCb=null,delete t.__firstPlaybackStartCb),t.__onPlaying&&(t.removeEventListener("playing",t.__onPlaying),delete t.__onPlaying)},t.available=!0,t}();i.default=u},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.PN(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"needsGestureToPlayUnmuted",{get:function(){return t.PN(!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.PN=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(531),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.xN(t);if(i)try{i.call(t)}catch(t){}},t.exitFullscreen=function(t){var i=this.UN();if(i)try{this.FN()&&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.xN=function(t){return t?t.requestFullscreen||t.webkitRequestFullscreen||t.webkitEnterFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen:null},t.UN=function(){var t=document;return t.exitFullscreen||t.webkitExitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen},t.FN=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(531),o=function(){function t(t){this.startTime=Date.now(),this.BN=[],this.$b=t,this.X={},this.zN()}return t.prototype.getItem=function(t){var i=this.VN(t);return i>-1?this.BN[i]:null},t.prototype.removeItem=function(t){var i=this.VN(t);i>-1&&this.BN.splice(i,1)},t.prototype.destroy=function(){this.$b.removeEventListeners(this.X)},t.prototype.VN=function(t){for(var i=0;i<this.BN.length;i++){var n=this.BN[i];if(t.type===n.type)return i}return-1},t.prototype.zN=function(){var t=this;this.X[r.PROFILE_START]=this.$b.addEventListener(r.PROFILE_START,(function(i){void 0===i&&(i=[]),(i=s.isArray(i)?i:[i]).forEach((function(i){t.GN(i)}))}),this),this.X[r.PROFILE_END]=this.$b.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.HN.apply(t,e([i],n))}))}),this)},t.prototype.GN=function(t){this.removeItem(t),this.BN.push({type:t.type,startTime:Date.now()-this.startTime,endTime:void 0})},t.prototype.HN=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.YA(),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},531:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isAdPlugin=i.isAdResolverAdPlugin=i.isAdViewAdPlugin=i.isAdOverlayRendererAdPlugin=i.isAdPlayerAdPlugin=i.isAdPluginPlayer=i.isEventDispatcher=i.isPlugin=i.isPlayerPluginEventListener=i.isNonEmptyString=i.isObject=i.isString=i.isNumber=i.isNullOrUndefined=i.isFunction=i.isBoolean=i.isArray=void 0;var e=n(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 a=r.TypeChecker.isNullOrUndefined;i.isNullOrUndefined=a;var c=r.TypeChecker.isNumber;i.isNumber=c;var h=r.TypeChecker.isString;i.isString=h;var f=r.TypeChecker.isObject;i.isObject=f;var l=r.TypeChecker.isNonEmptyString;function v(t){return!!t&&u(t.onPlayerEvent)}function d(t){return!!t&&((t.type===e.PluginType.METADATA||t.type===e.PluginType.SOURCE_METADATA||t.type===e.PluginType.AD||t.type===e.PluginType.VISUAL_SEEK||t.type===e.PluginType.BRANDING||t.type===e.PluginType.PLAYLIST)&&h(t.mimetype)&&u(t.prepare)&&u(t.destroy))}function p(t){return!!t&&u(t.addEventListener)&&u(t.removeEventListener)}function b(t){return p(t)&&["play","pause","stop","mute","isMuted","setVolume","getVolume","getCurrentTime","getDuration"].every((function(i){return u(t[i])}))}function m(t){return!!t&&b(t)}function g(t){return!!t&&p(t)&&["setNonlinearAdContainer"].every((function(i){return u(t[i])}))}function y(t){return p(t)&&v(t)&&["canRenderUI","renderUI","unrenderUI"].every((function(i){return u(t[i])}))}function _(t){return!!t&&u(t.parse)&&u(t.resolve)&&p(t)}i.isNonEmptyString=l,i.isPlayerPluginEventListener=v,i.isPlugin=d,i.isEventDispatcher=p,i.isAdPluginPlayer=b,i.isAdPlayerAdPlugin=m,i.isAdOverlayRendererAdPlugin=g,i.isAdViewAdPlugin=y,i.isAdResolverAdPlugin=_,i.isAdPlugin=function(t){return!!t&&d(t)&&(_(t)||y(t)||m(t)||g(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(595),u=n(8103),a=n(4685),c=n(531),h=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(c.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 c.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 c.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,a){return new s.default(t,n,r,{playbackState:i,msg:o,debugMsg:u,prefetch:a},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&&c.isString(t.className)?t.className.split(/\s+/):[],r=e.indexOf(n),s=i(e,r,n);return t&&c.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.isAdBreakOffset=function(t){return t===u.AdBreakOffset.PRE||t===u.AdBreakOffset.TIMESTAMP||t===u.AdBreakOffset.POST||t===u.AdBreakOffset.OVERLAY||t===u.AdBreakOffset.ADONLY},t.strSubstitute=function(t,i){return t.replace(/\{([^\{\}]*)\}/g,(function(t,n){var e="function"==typeof i?i(n):i[n];return c.isNullOrUndefined(e)?t:e}))},t.querystring=function(i,n,e,r){return n=n||"&",e=e||"=",r=r||encodeURIComponent,i?(c.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,c.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 c.isString(t)?t:c.isBoolean(t)||c.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(c.isNullOrUndefined(t))return t;var n={};return Object.keys(t).forEach((function(e){c.isArray(t[e])?n[e]=t[e].slice():c.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),c.isNullOrUndefined(i))return n;for(var r in n)if(c.isObject(i[r]))i[r]=this.mergeObjects(i[r],n[r],e);else if(void 0===i[r]||e){var s=n[r];c.isArray(s)?i[r]=s.slice():c.isObject(s)?i[r]=t.deepCopy(s):i[r]=s}return i},t.stringToArray16=function(t){for(var i=new ArrayBuffer(2*t.length),n=new Uint16Array(i),e=0,r=t.length;e<r;e++)n[e]=t.charCodeAt(e);return n},t.array16ToString=function(t){var i=new Uint16Array(t.buffer);return String.fromCharCode.apply(null,i)},t.base64DecodeUint8Array=function(t){for(var i=window.atob(t),n=i.length,e=new Uint8Array(new ArrayBuffer(n)),r=0;r<n;r++)e[r]=i.charCodeAt(r);return e},t.base64EncodeUint8Array=function(t){for(var i,n,e,r,s,o,u,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",h=0;h<t.length;)r=(i=t[h++])>>2,s=(3&i)<<4|(n=h<t.length?t[h++]:Number.NaN)>>4,o=(15&n)<<2|(e=h<t.length?t[h++]:Number.NaN)>>6,u=63&e,isNaN(n)?o=u=64:isNaN(e)&&(u=64),c+=a.charAt(r)+a.charAt(s)+a.charAt(o)+a.charAt(u);return c},t.getResourceLoadTime=function(t){if(window.performance&&window.performance.getEntriesByType){var i=window.performance.getEntriesByType("resource"),n=void 0;for(n in i)if(i[n]&&i[n].name&&i[n].name.match(t))return i[n].duration}return null},t.getPlaybackMode=function(t){return t instanceof o.default?a.PlaybackMode.AD:a.PlaybackMode.VIDEO},t.detectRegexPattern=function(t,i){var n=new RegExp(t).exec(i);return n&&n[0]?n[0]:null},t.extractID3Data=function(t){if(!t||!t.length)return null;var i=0;for(i=0;i<t.length&&!(t[i]>31);i++);var n=0;for(n=t.length-1;n>=0&&!(t[n]<=31);n--);n=n<i?t.length:n;var e=t.subarray(i,n);return String.fromCharCode.apply(null,e)},t.areDimensionsEqual=function(t,i){return t.width===i.width&&t.height===i.height&&t.videoWidth===i.videoWidth&&t.videoHeight===i.videoHeight},t.isOldIeBrowser=function(){return!!(e.userAgent.ie&&e.userAgent.ie<=10)},t.isDisplayed=function(t){return!!t&&"none"!==window.getComputedStyle(t).getPropertyValue("display")},t.assetDomainHttp="http://assets.video.yahoo.net",t.assetDomainHttps="https://assets.video.yahoo.net",t.scriptType="PLAYER_DEBUG_TYPE",t.yuiAdded=!1,t}();i.default=h},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});var s=n(1409),o=n(6342);function u(t){return o.default.classList(t)}var a=function(t){function i(){return t.call(this,"AdsView")||this}return r(i,t),Object.defineProperty(i.prototype,"node",{get:function(){return this.YN},enumerable:!1,configurable:!0}),i.prototype.create=function(){return this.YN||(this.YN=document.createElement("div"),u(this.YN).add("vp-adview-wrapper"),u(this.YN).add("vp-hidden")),this.YN},i.prototype.onAdBreakStart=function(t){this.qN()},i.prototype.onAdBreakEnd=function(t){this.WN(),this.QN()},i.prototype.enableClickBlocking=function(t){this.YN&&u(this.YN)[t?"add":"remove"]("vp-block-pointer-evts")},i.prototype.destroy=function(){this.WN(),this.QN(),this.YN=null},i.prototype.qN=function(){this.YN&&u(this.YN).remove("vp-hidden")},i.prototype.WN=function(){this.YN&&u(this.YN).add("vp-hidden")},i.prototype.QN=function(){if(this.YN)for(;this.YN.firstChild;)this.YN.removeChild(this.YN.firstChild)},i}(s.default);i.default=a},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),a=function(){function t(t,i,n,e){this.$b=t,this.ow=i,this.vt=n,this.d_=e}return t.prototype.syncState=function(){var t=this.vt.getState();t===u.States.INIT||t===u.States.WAITING||t===u.States.VIDEO?this.YE():t===u.States.END&&this.ZN()},t.prototype.destroy=function(){this.ZN()},t.prototype.YE=function(){var t=this.vt.playlist&&this.vt.playlist.getCurrentItem();if(this.d_&&t&&t.brandingData&&!this.$N){var i=this.d_.getPlugin(o.PluginType.BRANDING,t.brandingData.mimetype),n=i&&i.create(t.brandingData);n&&(this.$N=n,this.$N.style.visibility="hidden",this.XN(),this.JN=this.$N.offsetHeight,this.KN(),this.$N.style.visibility=null,this.zN())}},t.prototype.XN=function(){var t=this.ow.getContentNode(),i=this.ow.getPlaylistController(),n=i.getPlaylistRootElement(),e=i.isPlaylistShown(),s=i.getPlaylistUIPosition();e&&s===r.PLAYLIST_POS.BOTTOM&&n?n.parentNode.insertBefore(this.$N,n):t.appendChild(this.$N)},t.prototype.zN=function(){var t=this;this.tI||(this.tI=this.$b.on([e.ExternalEvt.PLAYER_DOCKED_CHANGE,s.FULLSCREEN_CHANGE],(function(i){t.iI&&(window.clearTimeout(t.iI),t.iI=null),i===s.FULLSCREEN_CHANGE?t.iI=window.setTimeout((function(){t.iI=null,t.KN()}),700):t.KN()}),this))},t.prototype.ZN=function(){var t=this.ow.getMainElement();t&&(t.style.height="100%"),this.$N&&(this.$N.parentNode.removeChild(this.$N),this.$N=null,this.JN=null,this.nI())},t.prototype.nI=function(){this.tI&&(this.$b.removeEventListeners(this.tI),this.tI=null)},t.prototype.KN=function(){var t=this.ow.getContentNode(),i=this.ow.getMainElement();this.$N&&this.JN&&t&&i&&(i.style.height="calc(100% - "+this.JN+"px)")},t}();i.default=a},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,a,c,h,f,l=n(1958),v=n(954),d=n(1954),p=n(6342),b=n(8430),m=n(514),g={Plain:d.default.PLAIN,Dropshadow:d.default.DROPSHADOW,Raised:d.default.RAISED,Depressed:d.default.DEPRESSED,Uniform:d.default.UNIFORM,"Extra Small":d.default.SIZE_EXTRA_SMALL,"Extra Large":d.default.SIZE_EXTRA_LARGE,Small:d.default.SIZE_SMALL,Medium:d.default.SIZE_MEDIUM,Large:d.default.SIZE_LARGE,White:d.default.WHITE,Gray:d.default.GRAY,"Light Gray":d.default.LIGHT_GRAY,"Dark Gray":d.default.DARK_GRAY,Black:d.default.BLACK,Red:d.default.RED,Green:d.default.GREEN,Blue:d.default.BLUE,Cyan:d.default.CYAN,Yellow:d.default.YELLOW,Magenta:d.default.MAGENTA,Transparent:d.default.TRANSPARENT,Top:d.default.TOP,Bottom:d.default.BOTTOM,Effects:d.default.EFFECTS,Position:d.default.POSITION,"Font Size":d.default.FONT_SIZE,"Font Family":d.default.FONT_FAMILY,"Font Color":d.default.FONT_COLOR,"Background Color":d.default.BACKGROUND_COLOR,"Background Transparency":d.default.BACKGROUND_TRANSPARENCY,Language:d.default.LANGUAGE};!function(t){t.Main=".vp-ccs-main",t.Extra=".vp-ccs-extra",t.Options=".vp-ccs-options"}(e=i.SettingsSubContainers||(i.SettingsSubContainers={})),function(t){t.Toggle=".vp-ccs-toggle",t.ToggleLabel='.vp-ccs-listitem[data-item-type="Closed Captions"] .vp-ccs-value',t.LanguageListItem='.vp-ccs-listitem[data-item-type="Caption Languages"]',t.HeaderListItem='.vp-ccs-listitem[data-item-type="header"]',t.Item=".vp-ccs-item",t.Value=".vp-ccs-value",t.ListItem=".vp-ccs-listitem",t.ListOptions=".vp-ccs-listoptions",t.Pointer=".vp-ccs-pointer",t.CheckMark=".vp-ccs-checkmark",t.Preview="vp-ccs-preview"}(r=i.ItemClasses||(i.ItemClasses={})),function(t){t.Plain="none",t.Dropshadow="dropshadow",t.Raised="raised",t.Depressed="depressed",t.Uniform="uniform"}(s=i.CCEffects||(i.CCEffects={})),function(t){t.Top="top",t.Bottom="bottom"}(o=i.CCPosition||(i.CCPosition={})),function(t){t["Extra Small"]="16",t.Small="20",t.Medium="24",t.Large="28",t["Extra Large"]="32"}(u=i.CCFontSize||(i.CCFontSize={})),function(t){t.Georgia="Georgia, serif",t["Palatino Linotype"]='"Palatino Linotype", "Book Antiqua", Palatino, serif',t["Times New Roman"]='"Times New Roman", Times, serif',t.Helvetica="Helvetica, sans-serif",t.Arial="Arial, Helvetica, sans-serif",t["Arial Black"]='"Arial Black", Gadget, sans-serif',t["Comic Sans MS"]='"Comic Sans MS", cursive, sans-serif',t.Impact="Impact, Charcoal, sans-serif",t["Lucida Sans Unicode"]='"Lucida Sans Unicode", "Lucida Grande", sans-serif',t.Tahoma="Tahoma, Geneva, sans-serif",t["Trebuchet MS"]='"Trebuchet MS", Helvetica, sans-serif',t.Verdana="Verdana, Geneva, sans-serif",t["Courier New"]='"Courier New", Courier, monospace',t["Lucida Console"]='"Lucida Console", Monaco, monospace'}(a=i.CCFontFamily||(i.CCFontFamily={})),function(t){t.White="#FFFFFF",t.Grey="#E7E7E7",t.Black="#000000",t.Red="#FC2525",t.Green="#29FD2F",t.Blue="#2524FB",t.Cyan="#2CFEFE",t.Yellow="#FEF149",t.Magenta="#EC369C"}(c=i.CCFontColor||(i.CCFontColor={})),function(t){t.White="#FFFFFF",t["Light Gray"]="#c7c7c7",t.Gray="#919191",t["Dark Gray"]="#5b5b5b",t.Black="#000000",t.Red="#FC2424",t.Green="#29FD2F",t.Blue="#2424FB",t.Cyan="#2CFDFD",t.Yellow="#FDF048",t.Magenta="#EC359B"}(h=i.CCBackgroundColor||(i.CCBackgroundColor={})),function(t){t.Transparent="0",t["25%"]="25",t["50%"]="50",t["75%"]="75",t["100%"]="100"}(f=i.CCBackgroundTransparency||(i.CCBackgroundTransparency={}));var y={Effects:s,Position:o,"Font Size":u,"Font Family":a,"Font Color":c,"Background Color":h,"Background Transparency":f};i.ExtraSettingsDefaultValues={Effects:"Plain",Position:"Bottom","Font Size":"Medium","Font Family":"Helvetica","Font Color":"White","Background Color":"Black","Background Transparency":"75%"},i.DEFAULT_CC_DATA={selectedLang:"en-us",langList:["en-us"]},i.ACTIVATION_CLASSES={OPEN:"vp-open",VISBILITYHIDDEN:"vp-vis-hide",VISBILITYSHOW:"vp-vis-show",ACTIVE:"vp-active",ON:"vp-on"};var _=n(3217),w=n(9319);function O(t){return p.default.classList(t)}var E=function(){function t(t,i){this.eI=t,this.vt=i}return t.prototype.create=function(){this.rI(),this.sI=p.default.render(_,{strings:d.default}),this.oI(),this.uI=this.aI,this.cI(),this.hI=null,this.updateAvailableLanguages(i.DEFAULT_CC_DATA),this.fI=document.createElement("div"),this.fI.innerText=d.default.CC_PREVIEW_MESSAGE,O(this.fI).add(r.Preview),O(this.fI).add("vp-vis-hidden");var t=this.eI.getMainElement();return t&&t.appendChild(this.fI),this.syncMenuUI(),this.onPlayerResize(this.vt.uiState),this.sI},t.prototype.syncMenuUI=function(){this.lI(),this.vI(),this.dI()},t.prototype.showActiveContainer=function(t){this.pI&&clearTimeout(this.pI),this.uI&&O(t).add(i.ACTIVATION_CLASSES.OPEN),this.uI&&O(this.uI).add(i.ACTIVATION_CLASSES.OPEN)},t.prototype.hideActiveContainer=function(t){var n=this;this.uI&&O(this.uI).remove(i.ACTIVATION_CLASSES.OPEN),this.uI&&O(t).remove(i.ACTIVATION_CLASSES.OPEN),this.pI&&clearTimeout(this.pI),this.pI=window.setTimeout((function(){n.uI=n.aI}),1e4)},t.prototype.updateCCToggleState=function(t){var n=this.bI.ccToggleNode,e=this.bI.ccToggleLabel;t?O(n).add(i.ACTIVATION_CLASSES.ON):O(n).remove(i.ACTIVATION_CLASSES.ON),e.innerText=(t?d.default.ON:d.default.OFF).toUpperCase()},t.prototype.destroy=function(){this.mI.forEach((function(t){return t.destroy()})),this.gI.forEach((function(t){return t.destroy()})),this.mI=null,this.gI=null,this.hI=null,this.yI=null,this._I=null,this.wI=null,this.bI=null,this.OI=null,this.sI=null,this.aI=null,this.EI=null,this.jI=null,this.uI=null},t.prototype.updateAvailableLanguages=function(t){this._I=this._I||[],this.wI=t.selectedLang||this.wI,t&&t.langList&&t.langList.length&&(this._I=t.langList),this.dI()},t.prototype.onPlayerResize=function(t){t&&t.width&&t.height&&(t.width>=v.HideBreakpointDimensions.WIDTH&&t.height>=v.HideBreakpointDimensions.HEIGHT?this.sI&&O(this.sI).remove(i.ACTIVATION_CLASSES.VISBILITYHIDDEN):this.sI&&O(this.sI).add(i.ACTIVATION_CLASSES.VISBILITYHIDDEN))},t.prototype.SI=function(){var t=this;if(this.AI=this.eI.getCCElement(),this.AI){var n=this.AI.querySelector("span").style,e=this.AI.style;this.fI.style.fontFamily=e.fontFamily,this.fI.style.fontSize=e.fontSize,this.fI.style.top=this.vt.ccUserPreferences.ccPos===o.Top?"5%":"",this.fI.style.bottom=this.vt.ccUserPreferences.ccPos===o.Bottom?"16%":"",this.fI.style.left=e.left||"2.5%",this.fI.style.color=e.color,this.fI.style.textShadow=e.textShadow,this.fI.style.backgroundColor=n.backgroundColor,this.AI.style.visibility="hidden",O(this.fI).add(i.ACTIVATION_CLASSES.ACTIVE),this.MI&&clearTimeout(this.MI),this.MI=window.setTimeout((function(){t.AI.style.visibility="visible",O(t.fI).remove(i.ACTIVATION_CLASSES.ACTIVE)}),2e3)}},t.prototype.rI=function(){var t=l.default.getCCSettingsFromLocalStorage("ccSettingsMenu");t||l.default.saveCCSettingsToLocalStorage({ccSettingsMenu:i.ExtraSettingsDefaultValues}),this.yI=t||i.ExtraSettingsDefaultValues},t.prototype.dI=function(){var t=l.default.getLanguageForCode(this.wI),i=this.bI.languageNode.querySelector(r.Value);i&&(i.innerText=t),this.hI&&"Language"===this.hI&&this.TI(t)},t.prototype.vI=function(){if(this.hI){var t=this.yI[this.hI];this.TI(t)}},t.prototype.TI=function(t){var n=this.jI.querySelectorAll(r.ListItem);Array.prototype.forEach.call(n,(function(n){var e=n.querySelector(r.CheckMark);n.dataset.itemType!==t?(O(n).remove(i.ACTIVATION_CLASSES.ACTIVE),O(e).remove(i.ACTIVATION_CLASSES.VISBILITYSHOW)):(O(n).add(i.ACTIVATION_CLASSES.ACTIVE),O(e).add(i.ACTIVATION_CLASSES.VISBILITYSHOW))}))},t.prototype.lI=function(){var t=this,i=this.EI.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.NI(t.yI[e]))&&n.replace(/\s/g,"&nbsp;"))}))},t.prototype.oI=function(){this.aI=this.sI.querySelector(e.Main),this.bI={headerNode:this.aI.querySelector(r.HeaderListItem),ccToggleNode:this.aI.querySelector(r.Toggle),ccToggleLabel:this.aI.querySelector(r.ToggleLabel),languageNode:this.aI.querySelector(r.LanguageListItem)},this.II()},t.prototype.II=function(){var t=this;this.mI=[],this.mI.push(new m.default(this.bI.headerNode,(function(){t.RI(e.Extra)}))),this.mI.push(new m.default(this.bI.languageNode,(function(){t.LI(),t.RI(e.Options)}))),this.mI.push(new m.default(this.bI.ccToggleNode,this.CI.bind(this)))},t.prototype.LI=function(){var t=this;this.kI(this.NI("Language"),e.Main);var i=this.jI.querySelector(r.ListOptions);this._I.forEach((function(n){var e=l.default.getLanguageForCode(n),r=t.DI(!1,e,null);i.appendChild(r),t.gI.push(new m.default(r,(function(){t.xI(n)})))})),this.hI="Language",this.dI()},t.prototype.xI=function(t){this.wI=t,this.eI.onlanguageChange(t),this.eI.updateClosedCaptionButtonState(!0),this.dI()},t.prototype.CI=function(){var t=O(this.bI.ccToggleNode).contains(i.ACTIVATION_CLASSES.ON)||!1;this.eI.publish(b.ControlsEvent.TOGGLE_CC,!t,!0),this.eI.updateClosedCaptionButtonState(!t)},t.prototype.cI=function(){var t=this;this.EI=this.sI.querySelector(e.Extra),this.jI=this.sI.querySelector(e.Options),this.OI={headerNode:this.jI.querySelector(r.HeaderListItem),headerValue:this.jI.querySelector(r.Item)},this.mI.push(new m.default(this.EI.firstElementChild,(function(){t.RI(e.Main)})));var i=this.EI.querySelector(r.ListOptions);Object.keys(this.yI).forEach((function(n){var r=t.DI(!0,n,t.NI(t.yI[n]));i.appendChild(r);var s=r.dataset.itemType;t.mI.push(new m.default(r,(function(){t.RI(e.Options),t.UI(s)})))}))},t.prototype.DI=function(t,i,n){var e=this.NI(i);return p.default.render(w,{caratRequired:t,itemContent:e,itemType:i,valueContent:n,valueRequired:!!n})},t.prototype.RI=function(t){var n=this;Object.keys(e).map((function(r){var s=n.sI.querySelector(e[r]);e[r]===t?(O(s).add(i.ACTIVATION_CLASSES.OPEN),n.uI=s):O(s).remove(i.ACTIVATION_CLASSES.OPEN)}))},t.prototype.kI=function(t,i){var n=this;this.gI&&this.gI.length&&this.gI.forEach((function(t){return t.destroy()})),this.gI=[];var e=this.jI.querySelector(r.ListOptions),s=e.querySelectorAll(r.ListItem);Array.prototype.forEach.call(s,(function(t){"header"!==t.dataset.itemType&&e.removeChild(t)})),this.gI.push(new m.default(this.OI.headerNode,(function(){n.RI(i)}))),this.OI.headerValue.innerText=t},t.prototype.NI=function(t){return g[t]||t},t.prototype.UI=function(t){var i=this;this.kI(this.NI(t),e.Extra);var n=y[t],s=this.jI.querySelector(r.ListOptions);Object.keys(n).map((function(e){var r=i.DI(!1,e,null);s.appendChild(r),i.gI.push(new m.default(r,(function(){var r=n[e];i.FI(t,r,e)})))})),this.hI=t,this.TI(this.yI[t])},t.prototype.FI=function(t,i,n){if(this.vt.ccUserPreferences){var e,r=this.vt.ccUserPreferences;switch(t){case"Effects":r.fontEffect=i;break;case"Position":r.ccPos=i;break;case"Font Size":r.fontSize=Number(i),e="size: "+i;break;case"Font Family":r.fontName=i,e="font: "+i;break;case"Font Color":r.fontColor=i;break;case"Background Color":r.bgColor=i;break;case"Background Transparency":try{var s=Number(i);r.bgOpacity=s/100,e="opacity: "+s}catch(t){return}}this.eI.updateClosedCaptionStyle(e),this.yI[t]=n,l.default.saveCCSettingsToLocalStorage({ccSettings:r,ccSettingsMenu:this.yI}),this.syncMenuUI(),this.SI()}},t}();i.default=E},1603: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.ow=t,this.vt=i,this.Py=n,this.BI="",this.zI=null,this.VI=new s.default(document.createElement("span")),this.AI=new s.default(document.createElement("div")).add("vp-cc-element").appendView(this.VI),this.updateCCStyle();var e=this.ow.getMainElement();e&&e.appendChild(this.AI.node)}return t.prototype.updateCCVisibility=function(t){this.AI.addOrRemove("vp-show",t).addOrRemove("vp-hide",!t)},t.prototype.updateCCLiveView=function(t){this.AI.addOrRemove("vp-live-cc",t)},t.prototype.updateClosedCaptionButtonState=function(t){var i;null===(i=this.ow.controls)||void 0===i||i.updateClosedCaptionButtonState(t)},t.prototype.updateCCContent=function(t,i){if(t!==this.BI){this.BI=t;var n=this.AI;if(t){if(this.VI.innerHTML=e.userAgent.tv?t:this.GI(t),i)for(var r=0,s=i;r<s.length;r++){var o=s[r].split(":"),u=o[0],a=o[1];"align"===u&&"start"===a?n.setStyleAttr("textAlign","left"):"line"!==u||this.vt.ccUserPreferences.ccPos?"position"===u&&(n.setStyleAttr("left",a),this.HI(),n.setStyleAttr("right","")):n.setStyleAttr("top",a)}}else this.VI.innerHTML=""}},t.prototype.updateCCStyle=function(){var t=this.vt.ccUserPreferences;if(this.AI){var i=this.AI,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.VI.setStyleAttr("backgroundColor",s),i.setStyleAttr("textShadow",u),this.YI("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.AI,n=this.vt.getItemId(),e=n?this.Py[n]:null;e&&e.ccAvailable&&!i.contains("vp-hide")&&("bottom"===this.vt.ccUserPreferences.ccPos&&i.addOrRemove("float",!t).addOrRemove("bottom",!t))},t.prototype.adjustCCSizeToScreen=function(t){var i=this,n=this.vt.ccUserPreferences,r=0,s=this.ow.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.qI=o,this.AI.setStyleAttr("fontSize",this.qI+"px"),e.userAgent.ios){var u=this.vt.getItemId(),a=u?this.Py[u]:null,c=null==a?void 0:a.tracks;if(!0===t){if(!c||0===c.length)return;this.zI=null,this.zI=setInterval((function(){var t=!1;c.forEach((function(i){t="showing"===i.mode})),i.updateClosedCaptionButtonState(t)}),1e3)}else!1===t&&(this.zI&&window.clearInterval(this.zI),this.zI=null)}},t.prototype.YI=function(t){this.AI.addOrRemove("top",t).addOrRemove("bottom",!t)},t.prototype.GI=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.VI.innerHTML=t;var e=Math.floor(this.VI.node.offsetHeight/(this.qI+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.HI=function(){var t=parseInt(getComputedStyle(this.AI.node).left,10),i=this.vt.uiState.videoWidth-t-10+"px";this.AI.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),a=n(3072),c=n(954),h=n(1962),f=n(1279),l=n(4685),v=n(1954),d=n(1204),p=n(531),b=n(6342),m=n(3641),g=n(297),y=n(514),_=n(5244),w=n(4915),O=n(9865),E="vp-on",j=v.default.ADV_SHORT.split("{")[0];function S(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"}(s=i.ControlsEvent||(i.ControlsEvent={}));var A=function(t){function i(i,n,e,r){var s=t.call(this,"Controls")||this;return s.$b=i,s.ow=n,s.vt=e,s.d_=r,s.WI=!0,s.$b.addEventListener(h.VideoEvent.PLAYING,s.QI,s),s.$b.addEventListener(h.CAST.CAPTION_AVAILABILITY_CHANGED,s.updateClosedCaptionUI,s),s.$b.addEventListener(h.RELATED_ITEM_CLICK,s.yw,s),s.$b.addEventListener(h.FULLSCREEN_CHANGE,(function(t){var i="boolean"==typeof t?t:s.ow.getFullscreen();s.ZI(i)}),s),s.$b.addEventListener(a.ExternalEvt.AIRPLAY_AVAILABILITY_CHANGE,(function(t){s.$I&&S(s.$I)[t?"remove":"add"]("vp-hidden")}),s),s.$b.addEventListener(a.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,(function(t){s.$I&&S(s.$I)[t.connected?"add":"remove"]("vp-airplay-on")}),s),s.$b.addEventListener(h.KEYDOWN,s.Nw,s),s.$b.addEventListener(a.ExternalEvt.PLAYER_DOCKED_CHANGE,s.XI,s),s.$b.addEventListener(h.CCEvent.TOGGLE,s.updateClosedCaptionButtonState,s),s}return r(i,t),i.prototype.create=function(){var t=this,i=b.default.render(w,{isMobile:u.userAgent.mobile,strings:v.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.CE=n.bottomBar,this.JI=this.CE.querySelector(".vp-slider"),this.KI=this.CE.querySelector(".vp-buffer-bar"),this.tR=this.CE.querySelector(".vp-time-container"),this.iR=this.CE.querySelector(".vp-menu-controls"),this.nR=this.CE.querySelector(".vp-current-time"),this.eR=this.CE.querySelector(".vp-total-time"),this.rR=this.CE.querySelector(".vp-handle"),this.sR=this.CE.querySelector(".vp-playback-bar"),this.oR=this.CE.querySelector(".vp-play-btn"),this.uR=this.CE.querySelector(".vp-forward-btn"),this.aR=this.CE.querySelector(".vp-backward-btn"),this.cR(),this.hR=this.CE.querySelector(".vp-seek"),this.fR=this.CE.querySelector(".vp-visual-seek"),this.lR=this.CE.querySelector(".vp-cc-btn"),this.vR=this.CE.querySelector(".vp-cc-pointer"),this.$I=this.CE.querySelector(".vp-airplay-btn"),this.dR=this.CE.querySelector(".vp-fullscreen-btn"),this.pR=this.CE.querySelector(".vp-volume-btn"),this.bR=this.CE.querySelector(".vp-volume-bar-container"),this.mR=this.CE.querySelector(".vp-volume-level"),this.gR=this.CE.querySelector(".vp-volume-bar"),this.yR=this.CE.querySelector(".vp-volume-value"),this.wR=this.CE.querySelector(".vp-volume-handle"),this.OR=n.multiAudioList,this.ER=this.CE.querySelector(".vp-multiaudio-btn"),this.jR=n.logoContainer,this.SR=n.muteIndicator,this.AR=n.largePlayBtn,this.vt.showPlayButtonOnPause&&(S(this.AR).remove("vp-hide"),this.MR=new y.default(this.AR,(function(i){i.stopPropagation(),t.publish(s.TOGGLE_PLAY_PAUSE)}))),this.TR=n.titleBar,this.NR=this.CE&&this.CE.parentNode.querySelector(".vp-playing-item-title-header"),this.IR=n.topBar,this.jT=this.IR&&this.IR.querySelector(".vp-content-type"),this.RR=this.vt.showTitleOnHover;var e=this.dR&&b.default.isOldIeBrowser()&&b.default.isIFrame();if(e=e||!this.vt.showFullscreenButton){var r=document.createElement("div");S(r).add("vp-fullscreen-btn-replacement"),this.dR&&(this.dR.parentNode.insertBefore(r,this.dR),this.dR.parentNode.removeChild(this.dR),this.dR=null)}return this.vt.showPlayButton||(this.oR.parentNode.removeChild(this.oR),this.oR=null),d.default.airplaySupported&&this.vt.casting||this.$I&&this.$I.parentNode&&(this.$I.parentNode.removeChild(this.$I),delete this.$I),this.LR(),!b.default.isOldIeBrowser()&&this.CR(),this.kR(),this.Dm(),this.lR&&(this.DR?this.DR.createCCBtnTooltip(this.lR):!u.userAgent.mobile||u.userAgent.ios||u.userAgent.chrome&&d.default.hasNativeAutoplaySupport||(this.lR.style.display="none")),u.userAgent.mobile||delete n.multiAudioList,this.PR(),this.xR(),n},i.prototype.syncAriaState=function(){var t;this.oR&&this.oR.setAttribute("aria-label",this.vt.isPaused()||(null===(t=this.gw)||void 0===t?void 0:t.state)===_.default.END?v.default.PLAY_VIDEO:v.default.PAUSE_VIDEO),this.dR&&(this.ow.getFullscreen()?this.dR.setAttribute("aria-label",v.default.GO_TO_NORMAL_SCREEN):this.dR.setAttribute("aria-label",v.default.GO_TO_FULLSCREEN)),this.pR&&(S(this.pR).contains("muted")?this.pR.setAttribute("aria-label",v.default.UNMUTE):this.pR.setAttribute("aria-label",v.default.MUTE))},i.prototype.getBottomBar=function(){return this.CE},i.prototype.onMediaItemLoaded=function(t){this.Wy=t.isLive(),this.UR=t.liveState,this.jT.innerHTML="",this.jT.setAttribute("aria-label",""),S(this.jT).add("hide"),"chrome"===t.liveLabel&&S(this.jT).add("vp-nonpersistent"),this.Wy?this.FR():this.BR()},i.prototype.updateVolumeUI=function(t,i,n){void 0===n&&(n=!1),n||("boolean"!=typeof i||p.isNullOrUndefined(i)?this.zR(!t):(this.zR(i),t=i?0:t),this.VR(t))},i.prototype.updateClosedCaptionUI=function(t){this.WI=t,t?(S(this.lR).remove("vp-hide"),S(this.GR).remove("vp-hide"),this.HR(v.default.CAPTIONS_AVAILABLE)):(S(this.lR).add("vp-hide"),S(this.GR).add("vp-hide"),this.HR(v.default.CAPTIONS_NOT_AVAILABLE))},i.prototype.updateClosedCaptionButtonState=function(t){t?(S(this.lR).add(E),this.HR(v.default.CAPTIONS_ON)):(S(this.lR).remove(E),this.HR(v.default.CAPTIONS_OFF)),this.YR&&this.YR.updateCCToggleState(t),this.WI||this.HR(v.default.CAPTIONS_NOT_AVAILABLE)},i.prototype.updateAvailableLanguages=function(t){this.YR&&this.YR.updateAvailableLanguages(t)},i.prototype.onPlayerResize=function(t){this.YR&&this.YR.onPlayerResize(t),t.width<=c.HideBreakpointDimensions.WIDTH&&t.height<=c.HideBreakpointDimensions.HEIGHT?S(this.qR).add("vp-hide"):S(this.qR).remove("vp-hide"),this.WR&&this.WR.onPlayerResize(t,this.QR)},i.prototype.onlanguageChange=function(t){this.ow&&this.ow.onlanguageChange(t)},i.prototype.updateClosedCaptionStyle=function(t){this.ow&&this.ow.updateClosedCaptionStyle(t)},i.prototype.onMediaItemCurrent=function(t){},i.prototype.onMediaItemPlaybackStarted=function(t){this.Wy?this.FR():this.BR(),this.xR(),this.ZR(),this.PR(),this.$R(),this.OR&&this.XR(),this.WR&&this.WR.onPlaybackStarted(t);var i=this.vt.uiState.width<=c.HideBreakpointDimensions.WIDTH&&this.vt.uiState.height<=c.HideBreakpointDimensions.HEIGHT;this.WR&&this.WR.shouldEnableSettings()&&!i?S(this.qR).remove("vp-hide"):S(this.qR).add("vp-hide")},i.prototype.onMediaItemPlaybackProgress=function(t){var i=this.gw,n=t.buffered,e=i.currentTime,r=i.playbackMode;n&&this.JR(n),void 0!==e&&r===l.PlaybackMode.VIDEO&&this.KR(e)},i.prototype.onAdBreakStarted=function(){S(this.JI).add("vp-disable"),S(this.uR).add("vp-disable"),S(this.aR).add("vp-disable")},i.prototype.onAdPlaybackStarted=function(t){void 0===t&&(t=!0),this.xR(),t&&(this.tL(),this.iL(),this.nL(),S(this.JI).add("vp-disable"),S(this.jT).add("hide"),S(this.qR).add("vp-hide"),this.WR&&this.WR.isOpen()&&this.WR.toggleSettings(this.QR))},i.prototype.onAdPlaybackEnded=function(){this.$R(),this.vt.seekControls.show&&(S(this.uR).remove("vp-disable"),S(this.aR).remove("vp-disable")),S(this.JI).remove("vp-disable"),this.WR&&this.WR.shouldEnableSettings()&&S(this.qR).remove("vp-hide")},i.prototype.onAdPlaybackProgress=function(t){var i=t.currentTime,n=t.duration;i&&n&&this.KR(i,!0)},i.prototype.onControlsBarChange=function(t){!this.RR||this.ow.isDocked()&&this.vt.docking.showInfoCard||(t?this.eL():(this.rL(),S(this.rR).remove("active"),S(this.JI).remove("vp-thick-slider"),this.iL()))},i.prototype.getCCElement=function(){return this.ow?this.ow.getCCElement():null},i.prototype.getMainElement=function(){return this.ow.getMainElement()},i.prototype.updateCurrentItemTitle=function(t){this.TR.innerHTML=t},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"),S(o).add("vp-button"),this.iR.insertBefore(o,this.iR.firstChild),this.publish(s.CUSTOM_ELEMENT,"create",e);return this.sL=new y.default(o,(function(t){t.stopPropagation(),i.publish(s.CUSTOM_ELEMENT,"click",e)})),o},i.prototype.destroy=function(){this.oL&&this.oL.destroy(),this.uL&&this.uL.destroy(),this.aL&&this.aL.destroy(),this.cL&&this.oR&&(this.cL.destroy(),this.dR&&this.hL&&this.hL.destroy(),this.fL&&this.fL.destroy(),this.lL&&this.lL.destroy(),this.vL&&this.vL.destroy(),this.nL(),this.dL()),this.MR&&this.MR.destroy(),this.IE&&(this.XE.removeEventListener("tap",this.JE),this.IE.destroy()),this.pL&&this.pL.destroy(),this.sL&&this.sL.destroy(),this.bL&&this.bL.destroy(),this.mL&&this.mL.destroy(),this.SR&&this.gL(),this.ow.getContentNode().removeEventListener("keydown",this.yL,!1),this._L&&this._L.destroy()},i.prototype.XI=function(){var t=this,i=this.vt.logos;i&&!S(this.jR).contains("vp-hide")&&this.jR.querySelector(".vp-logo")&&Object.keys(i).forEach((function(n){var e=t.jR.querySelector(".vp-logo-type-"+n+" img");t.wL(e,i[n])}))},i.prototype.PR=function(){var t=this,i=this.vt.logos;this.jR&&i&&(Object.keys(i).forEach((function(n){i[n]&&t.OL(i[n],n)})),S(this.jR).remove("vp-hide"))},i.prototype.cR=function(){if(this.CE){u.userAgent.android&&(this.uR.querySelector("svg").setAttribute("transform","scale(1.5, 1.5) translate(4.5, 4.5)"),this.aR.querySelector("svg").setAttribute("transform","scale(1.5, 1.5) translate(4.5, 4.5)"));var t=this.uR.querySelector(".vp-forward-time"),i=this.aR.querySelector(".vp-backward-time");t.innerHTML=i.innerHTML=this.vt.seekControls.offset,this.vt.seekControls.offset<10&&(t.setAttribute("transform","translate(2, 0.4)"),i.setAttribute("transform","translate(1.8, 0.4)"))}},i.prototype.OL=function(t,i){var n=this;if(t&&t.url){var e=this.jR.querySelector(".vp-logo-type-"+i);e||((e=document.createElement("div")).innerHTML="<img />",e.setAttribute("class","vp-logo vp-logo-type-"+i),this.pL=new y.default(e,(function(){return n.publish(s.LOGO_CLICK)})),this.jR.appendChild(e));var r=e.querySelector("img"),o=["bottomLeft","bottomRight","topRight","topLeft","off"],u=t.position&&o.indexOf(t.position)>-1?t.position:"bottomRight",a=S(e),c="vp-logo-";o.forEach((function(t){t!==u&&a.contains(c+t)&&a.remove(c+t)})),t.fadeOut&&/^\d+\.?\d*s$/.test(t.fadeOut)&&(a.add("vp-logo-fadeout"),e.setAttribute("data-fadeout",t.fadeOut)),a.contains(u)||a.add(c+u),t.url&&r.src!==t.url&&(r.src=t.url,this.wL(r,t))}},i.prototype.kR=function(){var t=this;this.WR=new g.default(this.vt),this.qR=this.CE.querySelector(".vp-setting-btn"),this.QR=this.CE.querySelector(".vp-setting-pointer"),this.qR&&(this.aL=new y.default(this.qR,(function(){var i=t.ow.getAdsOverlayNode();t.WR&&t.WR.toggleSettings(t.QR),i&&S(i).toggle("vp-ads-overlay-bg"),t.YR.hideActiveContainer(t.vR)}))),this.sI=this.WR.create(),this.iR.parentNode.insertBefore(this.sI,this.iR.nextSibling),this.WR.on(g.SettingsEvent.SET_QUALITY,(function(i){t.publish(s.SET_QUALITY,i)}),this),this.WR.on(g.SettingsEvent.UI_INTERACT,(function(i){t.publish(s.UI_INTERACT,i)}),this)},i.prototype.wL=function(t,i){var n=this.ow.isDocked();i&&i.height&&t&&(t.height=n?Math.min(i.height,this.vt.docking.height/10):i.height),i&&i.width&&t&&(t.width=n?Math.min(i.width,this.vt.docking.width/10):i.width)},i.prototype.tL=function(){this.jR&&S(this.jR).add("vp-hide")},i.prototype.EL=function(){var t=this.jR.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.jL=function(t){var i=this;!this.vt.autoplay||this.ow.isDocked()&&this.vt.docking.showInfoCard||(S(this.TR).add("vp-title-standard"),this.SL(!0),this.AL=window.setTimeout((function(){S(i.TR).add("vp-hide"),i.ML(t)}),6e3))},i.prototype.ZR=function(){this.AL&&clearTimeout(this.AL),this.TL=null;var t=this.WO(),i=t&&t.title||"";switch(this.NL(),this.updateCurrentItemTitle(i),S(this.TR).remove("vp-title-standard"),S(this.TR).remove("vp-secondary"),S(this.TR).remove("vp-hide"),this.TL&&this.NR&&(S(this.NR).remove("vp-title-header-standard"),S(this.NR).remove("vp-hide")),this.vt.showTitleOnStart||""){case"fadeoutall":this.jL(!0);break;case"standard":this.jL(!1)}},i.prototype.NL=function(){var t=this.NR;if(this.IL()){var i=this.TL,n=i&&i.open_label||i&&i.label||"";t.innerHTML=this.RL(n)}else t&&""!==t.innerHTML&&(t.innerHTML="",S(t).add("vp-hide"))},i.prototype.SL=function(t){if(this.IL()){var i=S(this.NR);i.remove("vp-hide"),i.add("vp-title-header-standard"),S(this.TR).add("vp-secondary"),t?i.add("vp-title-shown"):i.remove("vp-title-shown")}},i.prototype.ML=function(t){var i=this;if(this.LL&&clearTimeout(this.LL),this.CL&&clearTimeout(this.CL),this.IL()){var n=this.NR,e=S(n);e.remove("vp-title-shown"),e.add("vp-hide");var r=this.TL,s=r&&r.label||"";this.LL=window.setTimeout((function(){n.innerHTML=i.RL(s),e.remove("vp-hide"),t&&(i.CL=window.setTimeout((function(){n.innerHTML="",e.add("vp-hide")}),5e3))}),300)}},i.prototype.IL=function(){return!(!this.NR||!this.TL)},i.prototype.RL=function(t){if(!t||""===t)return"";return""+t.replace(/\*\*([^\*]+(\s[^\*]+)*)\*\*/gi,"<strong>$1</strong>")},i.prototype.eL=function(){S(this.TR).add("vp-title-standard"),S(this.TR).remove("vp-hide"),this.SL(!0)},i.prototype.rL=function(){S(this.TR).add("vp-title-standard"),S(this.TR).add("vp-hide"),this.SL(!1)},i.prototype.FR=function(){S(this.JI).add("vp-disable"),S(this.uR).add("vp-disable"),S(this.aR).add("vp-disable"),S(this.tR).add("vp-hide"),this.UR&&"live"===this.UR&&(this.jT.innerHTML=v.default.LIVE,this.jT.setAttribute("aria-label",v.default.LIVE),S(this.jT).remove("hide"),S(this.TR).add("vp-live"))},i.prototype.BR=function(){S(this.JI).remove("vp-disable"),this.vt.seekControls.show?(S(this.uR).remove("vp-disable"),S(this.aR).remove("vp-disable")):(S(this.uR).add("vp-disable"),S(this.aR).add("vp-disable")),S(this.tR).remove("vp-hide"),S(this.TR).remove("vp-live")},i.prototype.Dm=function(){var t=this;if(this.oR){this.cL=new y.default(this.oR,(function(i){i.stopPropagation();var n=t.ow.getCurrentViewState(),e=t.WO(),r=e&&e.id,o=t.vt.isPaused()?"ctrl-play-btn":"ctrl-pause-btn";"end-screen"===n?(t.$b.publish(h.RELATED_ITEM_CLICK,r,-1,!1,!1),t.kL()):(t.publish(s.UI_INTERACT,{srcElement:o}),t.publish(s.TOGGLE_PLAY_PAUSE))}))}if(this.dR){this.hL=new y.default(this.dR,(function(i){i.stopPropagation(),t.ow.toggleFullscreen(),t.publish(s.UI_INTERACT,{srcElement:"ctrl-fullscr-btn"})}))}this.DL=new y.default(this.CE,(function(t){t.stopPropagation()})),this.$I&&(this.uL=new y.default(this.$I,(function(){t.ow.showAirplayTargetMenu(),t.publish(s.UI_INTERACT,{srcElement:"ctrl-airplay-btn"})}))),this.ER&&(this.mL=new y.default(this.ER,(function(){S(t.OR).remove("vp-hidden"),t.publish(s.UI_INTERACT,{srcElement:"ctrl-multi-audio-btn"})}))),this.PL(),this.yL=function(i){t.$b.publish(h.KEYDOWN,{keyCode:i.keyCode,shiftDown:i.shiftKey,ctrlDown:i.ctrlKey,altDown:i.altKey,target:i.target,preventDefault:function(){i.preventDefault()}})},this.ow.getContentNode().addEventListener("keydown",this.yL,!1),this._L=new y.default(this.JI,(function(t){t.stopPropagation()})),this.$R(),this.xL(),this.UL(),this.FL()},i.prototype.CR=function(){this.YR=new m.default(this,this.vt),this.GR=this.YR.create(),u.userAgent.mobile&&S(this.GR).add("vp-hide"),this.iR.parentNode.insertBefore(this.GR,this.iR.nextSibling)},i.prototype.PL=function(){var t=this;this.lR&&(this.oL=new y.default(this.lR,(function(i){if(i.stopPropagation(),t.WI){var n=!S(t.lR).contains(E),e="cc-"+(n?"on":"off")+(!(!t.vt.castState||!t.vt.castState.connected)?"-cast":"");t.publish(s.UI_INTERACT,{srcElement:e}),t.publish(s.TOGGLE_CC,n,!0),t.updateClosedCaptionButtonState(n)}})),this.YR&&this.BL())},i.prototype.BL=function(){var t=this;this.zL=null;this.VL=function(i){var n=t.ow.getAdsOverlayNode();u.userAgent.mobile||t.WR&&t.WR.isOpen()||(t.GL(i),t.YR.showActiveContainer(t.vR),n&&S(n).add("vp-ads-overlay-bg"),S(t.bR).remove("open"))},this.HL=function(i){var n=t.ow.getAdsOverlayNode();t.GL(i),t.zL&&clearTimeout(t.zL),t.zL=window.setTimeout((function(){t.YR.hideActiveContainer(t.vR),n&&S(n).remove("vp-ads-overlay-bg")}),1e3)},this.YL=function(i){u.userAgent.mobile||(t.GL(i),t.zL&&clearTimeout(t.zL))},this.qL(this.lR,this.VL,this.HL),this.qL(this.GR,this.YL,this.HL)},i.prototype.HR=function(t){this.DR&&this.DR.updateCCTooltip(t)},i.prototype.yw=function(){var t=this.WO(),i=t&&t.title||"";this.kL(),this.NL(),this.updateCurrentItemTitle(i)},i.prototype.kL=function(){this.nR.innerHTML="0:00",this.eR.innerHTML="0:00"},i.prototype.ZI=function(t){this.dR&&(t?(S(this.dR).add("fullscreen"),this.WL(v.default.EXIT_FULLSCREEN)):(S(this.dR).remove("fullscreen"),this.WL(v.default.FULLSCREEN_SPACE))),this.QL(t),this.syncAriaState()},i.prototype.WL=function(t){if(this.dR){var i=this.dR.querySelector(".vp-tooltip-content");i&&(i.innerHTML=t)}},i.prototype.xL=function(){var t=this;if(this.vt.seekControls.show){this.lL=new y.default(this.uR,(function(i){i.stopPropagation(),t.publish(s.FORWARD_SEEK),t.publish(s.UI_INTERACT,{srcElement:"ctrl-forward-seek-btn"})}));this.vL=new y.default(this.aR,(function(i){i.stopPropagation(),t.publish(s.BACKWARD_SEEK),t.publish(s.UI_INTERACT,{srcElement:"ctrl-backward-seek-btn"})}))}},i.prototype.$R=function(){var t=this;this.hR&&(this.fL=new y.default(this.hR,(function(i){i.stopPropagation();var n=t.hR,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.Gp,Math.max(t.Gp-1,0));t.publish(s.SEEK,o)}))),this.ZL=function(i){var n=t.ow.getAdsOverlayNode();t.$b.publish(h.SEEK_BAR_MOUSEOVER,i),S(t.rR).add("active"),S(t.JI).add("vp-thick-slider"),n&&S(n).add("vp-ads-overlay-bg"),t.$L(i),t.GL(i)},this.XL=function(i){var n=t.ow.getAdsOverlayNode();t.$b.publish(h.SEEK_BAR_MOUSEOUT,i),S(t.rR).remove("active"),S(t.JI).remove("vp-thick-slider"),n&&S(n).remove("vp-ads-overlay-bg"),t.iL(),t.GL(i)},this.qL(this.JI,this.ZL,this.XL),this.JL=function(i){if(!isNaN(t.Gp)){S(t.rR).add("active"),t.GL(i),t.Ce=!0,t.$b.publish(h.CONTROLS_SEEK_START);var n=t.KL(i),e=Math.min(n*t.Gp,Math.max(t.Gp-1,0));t.$b.publish(h.CTRL_SEEK,Math.round(e)),t.tC(i)}},this.tC=function(i){if(t.Ce){t.GL(i),S(t.CE).add("vp-drag"),S(t.rR).add("active"),S(t.JI).add("vp-thick-slider"),t.$L(i);var n=t.KL(i),e=Math.min(n*t.Gp,Math.max(t.Gp-1,0));e=e>1?e:1;var r="";r=t.vt.sliderColor?"width: "+100*n+"%; background-color: "+t.vt.sliderColor+";":"width: "+100*n+"%;",t.sR.setAttribute("style",r),t.KI.setAttribute("style","width: 0%;"),t.rR.setAttribute("style","left: "+100*n+"%;"),t.$b.publish(h.CONTROLS_SEEKING,e)}},this.iC=function(i){t.Ce&&(S(t.CE).remove("vp-drag"),S(t.rR).remove("active"),S(t.JI).remove("vp-thick-slider"),t.iL(),t.GL(i),t.Ce=!1,t.$b.publish(h.CONTROLS_SEEK_END))},this.nC(this.JI,this.JL,this.tC,this.iC)},i.prototype.nL=function(){this.eC(this.JI,this.ZL,this.XL),this.rC(this.JI,this.JL,this.tC,this.iC)},i.prototype.GL=function(t){-1!==t.type.indexOf("touch")&&t.preventDefault()},i.prototype.QI=function(){this.EL()},i.prototype.Nw=function(t){var i,n=this.gw,e=this.vt.volume,r=n.currentTime,o=this.Gp,u=n.playbackMode;switch(t.keyCode){case 13:this.$b.publish(h.TOGGLE_PLAY_PAUSE);break;case 27:this.ow.updateViewOnEscPress();break;case 32:t.preventDefault(),this.$b.publish(h.TOGGLE_PLAY_PAUSE);break;case 37:t.preventDefault(),u!==l.PlaybackMode.VIDEO||this.Wy||(i=r-5,this.$b.publish(h.CONTROLS_SEEKING,i>=0?i:0));break;case 38:t.preventDefault();var a=e+.05,c=a>1?1:a;this.sC(c);break;case 39:t.preventDefault(),u!==l.PlaybackMode.VIDEO||this.Wy||(i=r+5,this.publish(s.SEEK,i<=o?i:o));break;case 40:t.preventDefault();var f=e-.05;c=f<0?0:f;this.sC(c);break;case 67:if(this.lR&&b.default.isDisplayed(this.lR)){var v=!S(this.lR).contains(E);this.publish(s.TOGGLE_CC,v,!0)}break;case 70:this.dR&&b.default.isDisplayed(this.dR)&&this.ow.toggleFullscreen();break;case 77:this.publish(s.SET_MUTE,!this.vt.mute)}if(t.keyCode>=48&&t.keyCode<=57){var d=(t.keyCode-48)/10;o>0&&this.$b.publish(h.CONTROLS_SEEKING,o*d)}},i.prototype.KR=function(t,i){var n=Math.min(t/this.Gp*100,100);if(this.nR&&p.isNumber(t)&&p.isNumber(this.Gp)&&(this.nR.innerHTML=(i?j:"")+b.default.formatTime(t)),this.eR&&p.isNumber(this.Gp)&&(this.eR.innerHTML=b.default.formatTime(this.Gp)),p.isNumber(t)&&p.isNumber(this.Gp)){var e="";e=this.vt.sliderColor?"width: "+n+"%; background-color: "+this.vt.sliderColor+";":"width: "+n+"%;",this.sR.setAttribute("style",e),this.Ce||this.rR.setAttribute("style","left: "+n+"%;"),this.JI.setAttribute("aria-valuemax",this.Gp.toString()),this.JI.setAttribute("aria-valuenow",t.toString()),this.JI.setAttribute("aria-valuetext",b.default.formatTime(t)+" of "+b.default.formatTime(this.Gp))}},i.prototype.JR=function(t){var i=0;t.length>0&&(i=t.end(0)/this.Gp*100),this.KI.setAttribute("style","width: "+i+"%;")},i.prototype.oC=function(t,i){if(!(this.d_&&t&&i&&i.mimetype))return null;if(!this.uC){var n=this.d_.getPlugin(f.PluginType.VISUAL_SEEK,i.mimetype);this.uC=n}return this.uC&&!this.uC.canSeek(t)&&this.uC.update(t,i),this.uC},i.prototype.$L=function(t){var i=this,n=this.WO(),e=this.oC(n.id,n.visualSeekData);if(e){var r=this.KL(t),s=r*n.getRawDuration(),o=r*n.duration,u=e.getThumbnailData(n.id,s);if(u&&u.url)if(!S(this.ow.getContentNode()).contains("vp-hide-controls")){var a;a=r<.09?.09:r>.91?.91:r,this.fR.style.display="block",this.fR.style.left=100*a+"%";var c=this.fR.querySelector(".vp-vs-time");c&&(c.innerHTML=b.default.formatTime(o));var h=u.height,l=u.index,v=u.url,d=u.width,p=u.isAd,m=this.fR.querySelector(".vp-vs-thumbnail");if(!p)if(m.innerHTML="",e.visualSeekType===f.VisualSeekType.SPRITE){m.style.background="url("+v+")";var g=l%100,y=g%10*d,_=Math.floor(g/10)*h;m.style.backgroundPosition="-"+y+"px -"+_+"px"}else this.aC=v,this.cC=this.cC||setTimeout((function(){var t=i.fR.querySelector(".vp-vs-thumbnail");i.aC&&(t.style.background="url("+i.aC+")"),clearTimeout(i.cC),i.cC=null}),50)}}},i.prototype.nC=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.rC=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.qL=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.eC=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.xR=function(){this.pR&&this.updateVolumeUI(this.vt.volume,this.vt.mute)},i.prototype.hC=function(){var t=this;this.fC=new y.default(this.pR,(function(i){if(!t.lC){i.stopPropagation(),t.vC(),t.ow.clearAutoHideTimeout(),t.dC&&clearTimeout(t.dC);var n=!t.vt.mute;t.publish(s.UI_INTERACT,{srcElement:"ctrl-mute-btn-"+(n?"on":"off")}),t.publish(s.SET_MUTE,n),t.pC(n)}}))},i.prototype.bC=function(){var t=this,i=function(i){var n,e=function(i){var n;return n=t.ow.getFullscreen()&&(u.userAgent.chrome||u.userAgent.safari)?i.pageX-b.default.getOffsetLeftFromEl(t.mR,c.VIDEO_MAIN_ELEMENT_CLASS):i.pageX-b.default.getOffsetLeftFromDocument(t.mR),t.mR.getBoundingClientRect().left?Math.max(0,Math.min(1,n/t.mR.clientWidth)):0}(i);n=0===e,t.vt.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.mC=new y.default(this.mR,(function(n){n.stopPropagation(),t.vC(),i(n)})),this.gC=function(i){t.GL(i),t.lC=!0,t.vC(),t.yC(i)},this.yC=function(n){t.lC&&(t.GL(n),t.vC(),i(n),t._C(n))},this.wC=function(i){t.lC&&(t.GL(i),t.lC=!1)},this.nC(this.mR,this.gC,this.yC,this.wC)},i.prototype.FL=function(){var t,i=this;this.OC=function(n){n.stopPropagation(),t||(t=window.setTimeout((function(){i.publish(s.UI_INTERACT,{srcElement:"ctrl-mute-btn-off"}),t=null}),600))},this.SR&&(["mouseenter","touchstart"].forEach((function(t){i.SR.addEventListener(t,i.OC)})),["mousemove","touchmove"].forEach((function(t){i.SR.addEventListener(t,i.OC)})))},i.prototype.gL=function(){var t=this;this.SR&&(["mouseenter","touchstart"].forEach((function(i){t.SR.removeEventListener(i,t.OC)})),["mousemove","touchmove"].forEach((function(i){t.SR.removeEventListener(i,t.OC)})))},i.prototype.pC=function(t){this.vt.ccOnMute&&(t?this.publish(s.TOGGLE_CC,!0,!1):this.publish(s.TOGGLE_CC,!1,!1),this.updateClosedCaptionButtonState(t))},i.prototype.vC=function(){this.wR&&S(this.wR).add("show")},i.prototype.EC=function(){var t=this;this.dC=null;var i=!1;this._C=function(n){var e=t.ow.getAdsOverlayNode();t.GL(n),t.WR&&t.WR.isOpen()||(S(t.bR).add("open"),e&&S(e).add("vp-ads-overlay-bg"),i||(t.xR(),i=!0),t.vC(),t.YR&&t.YR.hideActiveContainer(t.vR))},this.jC=function(i){var n=t.ow.getAdsOverlayNode();t.GL(i),t.dC&&clearTimeout(t.dC),t.dC=window.setTimeout((function(){S(t.bR).remove("open"),n&&S(n).remove("vp-ads-overlay-bg")}),500)},this.SC=function(i){t.GL(i),t.dC&&clearTimeout(t.dC)},this.qL(this.pR,this._C,this.jC),this.qL(this.bR,this.SC,this.jC)},i.prototype.UL=function(){var t=this;this.pR&&this.hC(),this.bR&&this.pR&&(this.bC(),this.EC()),this.OR&&(this.bL=new y.default(this.OR,(function(i){i.stopPropagation();var n=b.default.findClosest(i.eventTarget,".vp-audio-item",t.OR);if(n){var e=t.OR.querySelector(".vp-audio-item-selected"),r=e&&e.getAttribute("data-name");e&&S(e).remove("vp-audio-item-selected"),S(n).add("vp-audio-item-selected"),t.publish(s.SET_AUDIO_LANGUAGE,n.getAttribute("data-name"),r)}else"close"===i.eventTarget.getAttribute("data-action")&&S(t.OR).add("vp-hidden")})))},i.prototype.dL=function(){this.pR&&this.fC.destroy(),this.bR&&(this.mC.destroy(),this.rC(this.bR,this.gC,this.yC,this.wC),this.eC(this.pR,this._C,this.jC),this.eC(this.bR,this.SC,this.jC))},i.prototype.zR=function(t){var i=this.ow.getContentNode();this.pR&&(t?(S(this.pR).add("muted"),S(i).add("vp-muted")):(S(this.pR).remove("muted"),S(i).remove("vp-muted"))),this.syncAriaState()},i.prototype.VR=function(t){if(this.gR){var i=Math.ceil(100*t),n=100-i;this.gR.setAttribute("style","width:"+i+"%"),this.yR.setAttribute("style","width:"+n+"%")}if(this.wR){var e=0;try{e=parseInt(window.getComputedStyle(this.mR).width,10)}catch(t){}var r=Math.ceil(t*(e-this.wR.offsetWidth/2));this.wR.setAttribute("style","left:"+r+"px")}},i.prototype.XR=function(){var t=this.WO();t&&t.isMultiAudioAvailable()?(this.AC(),S(this.bR).add("vp-multi-audio-available"),this.ER&&S(this.ER).remove("vp-hidden")):(S(this.bR).remove("vp-multi-audio-available"),this.ER&&S(this.ER).add("vp-hidden"),this.OR.innerHTML="")},i.prototype.AC=function(){var t=this.WO(),i=b.default.render(O,{isMobile:u.userAgent.mobile,items:t&&t.languages||[],Strings:v.default});this.OR.appendChild(i)},i.prototype.KL=function(t){var i=((t.clientX||t.touches&&t.touches[0]&&t.touches[0].clientX||t.pageX)-this.JI.getBoundingClientRect().left)/this.JI.clientWidth;return Math.max(0,Math.min(1,i))},i.prototype.iL=function(){this.fR.style.display="none",this.aC=""},i.prototype.QL=function(t){var i=this.ow.getContentNode(),n=this.ow.isStreamMode()||this.ow.isMiniStreamMode(),e=this.ow.isMiniStreamMode()?"vp-ministream":"vp-stream";n&&(t?S(i).remove(e):(S(i).add(e),this.DR&&this.DR.resetSettings()))},i.prototype.LR=function(){this.oR&&this.oR.setAttribute("aria-label",v.default.PLAY_VIDEO),this.JI.setAttribute("aria-label",v.default.SEEK_SLIDER),this.JI.setAttribute("aria-valuemin","0"),this.dR&&this.dR.setAttribute("aria-label",v.default.GO_TO_FULLSCREEN),this.pR&&(S(this.pR).contains("muted")?this.pR.setAttribute("aria-label",v.default.UNMUTE):this.pR.setAttribute("aria-label",v.default.MUTE))},Object.defineProperty(i.prototype,"Gp",{get:function(){return this.gw.duration},enumerable:!1,configurable:!0}),i.prototype.WO=function(){return this.vt.playlist.getCurrentItem()},Object.defineProperty(i.prototype,"gw",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),i.prototype.sC=function(t){this.publish(s.SET_VOLUME,t),this.publish(s.KEY_CHANGE_VOLUME,{volume:t})},i}(o.default);i.Controls=A},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.MC=[],this.TC=0,this.NC=0,this.IC=[],this.b_=i,this.D=t,this.RC=e[this.D],this.LC(),this.CC(),this.SE=n,this.kC()}return t.prototype.destroy=function(){document.removeEventListener("keydown",this.DC,!1),document.removeEventListener("touchstart",this.PC,!1),document.removeEventListener("touchmove",this.xC,!1),document.removeEventListener("touchend",this.UC,!1),this.SE.removeEventListener("touchstart",this.FC,!1),this.SE.removeEventListener("touchend",this.BC,!1)},t.prototype.CC=function(){var t=this;this.TC=0,this.NC=0,this.RC.forEach((function(i){i.length=i.combination.length,i.value=i.length?i.combination.toString():null,i.length>t.NC&&(t.NC=i.length)})),this.DC=this.Nw.bind(this),document.addEventListener("keydown",this.DC,!1)},t.prototype.Nw=function(t){var i=this;this.TC=t.altDown||t.altKey?this.TC+1:0,this.IC.push(t.keyCode),this.IC.length>this.NC&&this.IC.shift(),this.RC.some((function(t){var n=i.IC.slice(Math.max(i.IC.length-t.length,0)).toString()===t.value;return t.alt?n&&i.TC>t.length:n}))&&this.b_()},t.prototype.PC=function(t){this.zC=t.changedTouches[0].pageX,this.VC=t.changedTouches[0].pageY,this.GC=0,this.HC=0},t.prototype.xC=function(t){if(1===t.touches.length){var i=t.touches[0];this.GC=i.pageX,this.HC=i.pageY}},t.prototype.UC=function(){var t,i=r[this.D];this.GC||this.HC?t=Math.abs(this.zC-this.GC)>Math.abs(this.VC-this.HC)?this.zC-this.GC<0?n.RIGHT:n.LEFT:this.VC-this.HC<0?n.DOWN:n.UP:t=n.TAP;this.MC.push(t),this.MC.length>i.length&&this.MC.shift(),this.MC.length===i.length&&this.MC.every((function(t,n){return t===i[n]}))&&this.b_()},t.prototype.LC=function(){this.PC=this.PC.bind(this),this.xC=this.xC.bind(this),this.UC=this.UC.bind(this),document.addEventListener("touchstart",this.PC,!1),document.addEventListener("touchmove",this.xC,!1),document.addEventListener("touchend",this.UC,!1)},t.prototype.FC=function(t){var i=this;this.YC||2!==t.touches.length||(this.YC=window.setTimeout((function(){i.b_(),i.YC=null}),3e3))},t.prototype.BC=function(){this.YC&&(window.clearTimeout(this.YC),this.YC=null)},t.prototype.kC=function(){this.FC=this.FC.bind(this),this.BC=this.BC.bind(this),this.SE.addEventListener("touchstart",this.FC,!1),this.SE.addEventListener("touchend",this.BC,!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),a=n(1962),c=n(4685),h=n(1954),f=n(1204),l=n(531),v=n(6609),d=n(3535),p=n(9215),b=n(446),m=1e3,g="<span class='vp-details'>",y=": </span>",_=".vp-opss-";!function(t){t.VISIBILITY_CHANGED="visibility-changed"}(s=i.OpssEvent||(i.OpssEvent={}));var w=function(){function t(t,i){var n=this;void 0===t&&(t=""),this._d=t,this.pS=".vp-section-expand-",this.qC=_+"current-",this.pS+=this._d,this.qC+=this._d,this.WC=i.select(this.pS),this.QC=i.select(this.qC),this.WC.onTap((function(){var t="vp-hide",i="vp-expanded",e="vp-collapsed",r=n.QC.contains(t);n.QC.addOrRemove(t,!r),n.WC.remove(r?i:e).add(r?e:i)}))}return t.prototype.render=function(t){},t.prototype.destroy=function(){this.QC.destroy(),this.WC.destroy()},t}(),O=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.QC.select(_+this._d).innerHTML=JSON.stringify(s,void 0,2)},i}(w),E=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>"+g+t+y+n.mimetype+" - "+n.version+"</div>"}))};for(var r in n)e(r);this.QC.select(_+this._d).innerHTML=i},i}(w),j=function(t){function i(i){return t.call(this,"context",i)||this}return r(i,t),i.prototype.render=function(t){var i=this.QC,n=t.config||{};i.select(_+"expSiteName").innerHTML=g+"site"+y+n.site,i.select(_+"expName").innerHTML=g+"expName"+y+n.expName,i.select(_+"expBucketName").innerHTML=g+"expBucket"+y+n.expBucket,i.select(_+"expType").innerHTML=g+"expType"+y+n.expType},i}(w),S=function(t){function i(i){return t.call(this,"config",i)||this}return r(i,t),i.prototype.render=function(t){this.QC.select(_+"profile").innerHTML=JSON.stringify(t.config,void 0,2)},i}(w),A=function(){function t(t){this._d=t,this.C=[],this.ZC=[]}return t.prototype.push=function(t,i){this.C.push(parseFloat(t)),this.ZC.push(i)},t.prototype.render=function(t){if(this.C.some((function(t){return l.isNumber(t)}))){var i=new d.default(document.createElement("div"));i.innerText=this._d;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(_+"graphs").appendView(n),this.$C(e,150,60)}},t.prototype.$C=function(t,i,n){var e=t.getContext("2d");if(e){for(var r=this.C.length-1,s=0,o=this.ZC[r],u=this.C[r],a=u,c=r-1;c>=0;c--)if(u=Math.min(u,this.C[c]),a=Math.max(a,this.C[c]),c>0&&o-this.ZC[c-1]>45){s=c;break}var h=this.ZC[s];u>0&&(u=0),u===a&&(a=u+1),e.save(),e.translate(40,n),e.scale((i-40)/45,-1*n/(a-u)),e.beginPath(),e.moveTo(0,this.C[s]-u);for(var f=s+1;f<this.C.length;f++)e.lineTo(this.ZC[f]-h,this.C[f]-u);e.restore(),e.lineWidth=1,e.lineCap="round",e.lineJoin="round",e.strokeStyle="white",e.stroke(),e.font="8pt Monospace",e.fillStyle="white",e.fillText(a.toFixed(1),0,10),e.fillText(u.toFixed(1),0,60)}},t}(),M=function(t){function i(i,n){var e=t.call(this,p,{version:i.version,strings:h.default})||this;return e.XC=[],e.vt=i,e.JC=n,e.KC={},e.tk={bitrate:new A("Bit Rate History"),speed:new A("Download Speed History"),bufferLength:new A("Buffer Length History"),frameRate:new A("Frame Rate History")},e.ik(),e.nk=e.ek(_+"close-btn",(function(){e.close()})),e.rk=e.ek(".vp-profile-btn",(function(){e.ak(e.vt.inputConfig)})),e.ck(),e.XC.push(new S(e.view)),e.XC.push(new E(e.view)),e.XC.push(new O(e.view)),e.XC.push(new j(e.view)),e.hk="invalid",e}return r(i,t),i.prototype.render=function(t){this.fk(t);var i={plugins:this.JC,config:this.vt.inputConfig};this.XC.forEach((function(t){return t.render(i)})),this.lk(),this.vk(),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.dk()},i.prototype.onPlaybackInfo=function(t){this.KC=t;var i=Date.now()/m;this.tk.bitrate.push(t.currentStreamBitrate,i),this.tk.speed.push(t.currentKbps,i),this.tk.bufferLength.push(t.bufferLength,i),this.tk.frameRate.push(t.frameRate?t.frameRate:0,i),this.vk()},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.hk=n,this.vk()},i.prototype.onPlaylistPositionChange=function(){this.lk()},i.prototype.onRendererSwitch=function(t,i){this.fk(i),this.lk(),this.vk()},i.prototype.onVideoEvent=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];switch(t){case a.VideoEvent.PLAYING:case a.VideoEvent.PAUSE:case a.VideoEvent.SEEKING:case a.VideoEvent.SEEKED:this.pk(_+"playback",t)}},i.prototype.destroy=function(){this.dk(),this.nk&&this.nk.destroy(),this.rk&&this.rk.destroy(),this.bk.destroy(),this.mk.destroy(),this.gk.destroy(),this.XC.forEach((function(t){return t.destroy()})),t.prototype.destroy.call(this)},i.prototype.yk=function(t){return this.view.select(t)},i.prototype.ik=function(){var t=this;this.bk=new u.Timer(m,(function(){t.pk(_+"network",["network empty","network idle","network loading","network no source"][t._k.networkState])}),this),this.mk=new u.Timer(m,(function(){t.pk(_+"state",t.vt.getState())}),this),this.gk=new u.Timer(m,(function(){t.pk(_+"ready",["have nothing","have metadata","have current data","have future data","have enough data"][t._k.readyState])}),this)},i.prototype.pk=function(t,i){var n=this.yk(t);n&&(n.innerHTML=i)},i.prototype.ek=function(t,i){return this.yk(t).onTap((function(t){t.stopPropagation(),i()}))},i.prototype.fk=function(t){t&&(this._k=t.node,this.wk()&&this.Ok())},i.prototype.Ek=function(t,i,n){this.yk(t).innerHTML=g+i+y+n},i.prototype.ak=function(t){var i;try{i=JSON.parse(JSON.stringify(t))}catch(t){i={}}var n=d.default.build(b,{config:JSON.stringify(i,null,2)}).node.innerHTML;if(o.userAgent.mobile)document.write(n);else{var e=window.open();e&&e.document.write(n)}},i.prototype.wk=function(){return o.userAgent.tv||o.userAgent.safari},i.prototype.jk=function(t){var i="";return Object.keys(t).forEach((function(n){var e=t[n];i+="<div>"+g+n+y+e+"</div>"})),i},i.prototype.Sk=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.Sk(s)+"</div>"):e+="<div>"+n.Sk(s,r)+"</div>":e+="<div>"+(i?i+" : ":"")+r+" : "+s+"</div>"})),e},i.prototype.Ak=function(t){return'<div class="vp-opss-title">'+t+"</div>"},i.prototype.ck=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.pk(_+"platform",this.jk(t))},i.prototype.lk=function(){var t=this.vt.playlist.getCurrentItem(),i="",n="none",e=this._k?this._k.currentSrc:"";t&&(i=t.id,n=t.videoSession),this.Ek(_+"uuid","UUID",i),this.Ek(".vp-sessionId","SessionId",n),this.wk()&&this.pk(_+"url","Current Source URL : "+e)},i.prototype.vk=function(){var t=this.vt.playlist.getCurrentItem(),i=this.KC,n=i.deliveryProtocol;for(var e in t&&(n+=" / "+t.getType()),this.pk(_+"graphs",""),this.tk)this.tk[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.hk};t&&t.rendererType===c.RendererType.HTML5_HLS&&(r["Buffering Count"]=i.bufferingCount,r["Total buffering time"]=i.totalBufferingTime+" ms");var s=this.vt.playbackState.rendererType||"(no renderer yet)";s=s===c.RendererType.HTML5_HLS?s+" "+this.vt.jshlsVersion:s,this.pk(_+"detail",this.jk(r)),this.Ek(_+"renderertype","Renderer Type",s)},i.prototype.Ok=function(){var t=this.yk(_+"tv");if(t){var i='<div class="vp-opss-url"></div>'+this.Ak("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.jk(r),t.innerHTML=i,this.Mk()}},i.prototype.Mk=function(){this.mk.start(),o.userAgent.samsung||(this.bk.start(),this.gk.start())},i.prototype.dk=function(){this.mk.stop(),this.bk.stop(),this.gk.stop()},i}(v.default);i.default=M},43:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(3535),r=function(){function t(t){this.yN=new e.default(document.createElement("canvas")),this.Tk=this.yN.node.getContext("2d"),this.yN.setSize("80","80").add("vp-360-pie"),t.appendChild(this.yN.node),this.Nk=1,this.$C()}return t.prototype.addClickListener=function(t){this.Ik=function(i){i.preventDefault(),i.stopPropagation(),t&&t()},this.Rk=function(t){t.preventDefault(),t.stopPropagation()},this.yN.addEventListener("click",this.Ik,!1).addEventListener("mousedown",this.Rk,!1).addEventListener("mouseup",this.Rk,!1)},t.prototype.update=function(t){var i=t%360;i<0&&(i=360+i),i*=-1,this.Nk=i/90+Math.PI/4-3.79,this.$C()},t.prototype.destroy=function(){this.yN.removeEventListener("click",this.Ik,!1).removeEventListener("mousedown",this.Rk,!1).removeEventListener("mouseup",this.Rk,!1).removeFromParent().destroy()},t.prototype.$C=function(){var t=this.Tk;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.Nk;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},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),a=n(954),c=n(1962),h=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 b=function(t){function i(i,n,e,r){var s=t.call(this,"PlaylistView")||this;return s.$b=i,s.ow=n,s.vt=e,s.d_=r,s.$b.addEventListener(c.PLAYER_DIMENSION_CHANGE,s.Mw,s),s.$b.addEventListener(c.FULLSCREEN_CHANGE,s.Lk,s),s.lw=s.ow.getPlaylistController(),s.Ck=s.kk.bind(s),s}return r(i,t),i.prototype.create=function(t){if(-1===[a.PLAYLIST_POS.BOTTOM,a.PLAYLIST_POS.RIGHT,a.PLAYLIST_POS.HIDDEN].indexOf(t))return null;var i="vp-playlist-mode-"+t;this.Dk=0,this.Pk=[],this.xk=this.Uk(t),this.df=t;var n=l.default.render(d,{strings:f.default,modeClass:i,isHiddenMode:t===a.PLAYLIST_POS.HIDDEN||!1,theme:this.xk,streamModeClass:this.Fk.inStream?"vp-playlist-in-stream":""});return this.vt.uiState&&this.vt.uiState.isCSSLoaded&&p(n).remove("vp-vis-hidden"),this.Bk(n),this.zk(),this.Dm(!0),n},i.prototype.syncView=function(){this.zk()},i.prototype.upNextBtnTapHandler=function(){var t=this.Vk();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.$b.publish(c.RELATED_ITEM_CLICK,n,i,!1);var e=this.df===a.PLAYLIST_POS.RIGHT;this.Gk(this.df,e)}},i.prototype.syncPgBtns=function(){this.Hk.scrollWidth<=this.Hk.scrollLeft+this.Hk.offsetWidth?this.Yk=!0:this.Yk=!1,this.Hk.scrollLeft<=0?this.qk=!0:this.qk=!1,this.qk?p(this.Wk).add("disabled"):p(this.Wk).remove("disabled"),this.Yk?p(this.Qk).add("disabled"):p(this.Qk).remove("disabled")},i.prototype.destroy=function(){var t=this;(this.Zk(),this.Pk&&this.Pk.forEach((function(t){t.destroy()})),this.Pk=[],this.Ny)&&this.$k().forEach((function(i){i.removeEventListener("tap",t.Ck)}))},i.prototype.setPlaylistViewSize=function(){var t=Math.floor(this.Hk.offsetWidth/134);this.Yk=t>=this.Vk().getItems().length,this.syncPgBtns()},i.prototype.onMediaItemCurrent=function(){var t=this.ow.getFullscreen()?a.PLAYLIST_POS.HIDDEN:this.df;this.Gk(t,!0)},i.prototype.kk=function(t){p(this._node).remove("open");var i=this.$k().indexOf(t.target);this.$b.publish(c.RELATED_ITEM_CLICK,t.target.getAttribute("data-id"),i,!1),this.publish(s.UI_INTERACT,{srcElement:"ui_pl_thmb_clk"}),this.onMediaItemCurrent()},i.prototype.zk=function(){var t=this.Vk().getItems();t&&0!==t.length&&(this.Pk=[],this.Xk(t),this.Hk.scrollLeft=this.Dk,this.syncPgBtns())},i.prototype.Dm=function(t){var i=this;if(this.Jk=new v.default(this.Wk),this.Wk.addEventListener("tap",(function(){i.Kk(!1)})),this.tD=new v.default(this.Qk),this.Qk.addEventListener("tap",(function(){i.Kk(!0)})),this.df===a.PLAYLIST_POS.RIGHT&&!u.userAgent.mobile){this.Ny.addEventListener("scroll",(function(){t&&i.Ny.scrollTop+i.Ny.offsetHeight>=i.Ny.scrollHeight&&i.publish(s.SCROLLED_TO_END)}));var n=function(t){var n=i.Ny.scrollTop,e=i.Ny.scrollHeight,r=i.Ny.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.Ny.scrollTop=e,u()):!(o&&s>n)||(i.Ny.scrollTop=0,u())};this.Hk.addEventListener("mousewheel",n),this.Hk.addEventListener("DOMMouseScroll",n)}},i.prototype.Xk=function(t){var i=this,n=t&&t.filter((function(t){var n='.vp-playlist-item[data-id="'+t.id+'"]';return!i.Ny.querySelector(n)}))||[],e=this.d_.getPlugin(h.PluginType.PLAYLIST,this.Fk.mimetype);if(e){var r=e.create(this.df,n,this.Hk,f.default),s=document.createDocumentFragment();r.forEach((function(t,n){i.Pk.push(new v.default(t,n)),t.addEventListener("tap",i.Ck),s.appendChild(t)})),this.Ny.appendChild(s),this.setPlaylistViewSize(),p(this.iD).remove("vp-pl-loading"),this.ow.getFullscreen()||this.Gk(this.df,!1)}},i.prototype.Kk=function(t){var i=this.ow.getFullscreen();if((this.df!==a.PLAYLIST_POS.RIGHT||i)&&!(this.Yk&&t||this.qk&&!t)){t&&this.Hk.scrollWidth-2*this.Hk.offsetWidth<=this.Hk.scrollLeft&&this.publish(s.SCROLLED_TO_END),this.$b.publish(c.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.Hk.offsetWidth/148);t?this.Hk.scrollLeft=Math.min(this.Hk.scrollLeft+e,this.Hk.scrollWidth-this.Hk.offsetWidth):t||(this.Hk.scrollLeft=Math.max(this.Hk.scrollLeft-e,0)),this.Dk=this.Hk.scrollLeft,this.syncPgBtns()}},i.prototype.Gk=function(t,i){var n=this.Vk().getCurrentItem(),e=n&&n.id,r=this.Ny.querySelector(".vp-currently-playing"),s='.vp-playlist-item[data-id="'+e+'"]',o=this.Ny.querySelector(s);if(r&&(p(r).remove("vp-currently-playing"),t!==a.PLAYLIST_POS.RIGHT)){var u=r.querySelector(".vp-pl-title"),c=r.querySelector(".vp-pl-dur"),h=r.querySelector(".vp-playlist-item-gradient"),f=r.querySelector(".vp-now-playing");p(u).remove("vp-show"),p(c).remove("vp-hide"),p(h).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+'"]',b=this.Ny.querySelector(d);if(p(o).add("vp-currently-playing"),t!==a.PLAYLIST_POS.RIGHT){var m=o.querySelector(".vp-pl-dur"),g=o.querySelector(".vp-playlist-item-gradient"),y=o.querySelector(".vp-now-playing");p(m).add("vp-hide"),p(g).add("vp-playlist-item-gradient-duration"),p(y).add("vp-show");var _=v+14;l=t===a.PLAYLIST_POS.HIDDEN?l+_:l,this.Ny.parentElement.scrollLeft=l}else if(t===a.PLAYLIST_POS.RIGHT&&i){var w=o.offsetTop;this.Ny.scrollTop=b?b.offsetTop:w-5}this.syncPgBtns()}},i.prototype.Uk=function(t){var i,n="dark",e=this.Fk&&this.Fk.theme||n;switch(t){case a.PLAYLIST_POS.BOTTOM:case a.PLAYLIST_POS.RIGHT:i=e;break;case a.PLAYLIST_POS.HIDDEN:default:i=n}return i},i.prototype.Bk=function(t){this._node=t,this.Ny=t.querySelector(".vp-playlist-strip-list"),this.Hk=t.querySelector(".vp-playlist-strip"),this.iD=t,this.Wk=t.querySelector(".vp-playlist-pg-btn-prev"),this.Qk=t.querySelector(".vp-playlist-pg-btn-next")},i.prototype.Lk=function(){var t,i,n,e,r,s,o=this,u=this.ow.getFullscreen(),c=this.ow.getContentNode();if(this.Mw(),this.lw.isPlaylistShown()&&this.setPlaylistViewSize(),this.df===a.PLAYLIST_POS.BOTTOM||this.df===a.PLAYLIST_POS.RIGHT){if(r=c.querySelector(".vp-upnext-playlist"),t=c.querySelector(".vp-playlist-mode-hidden"),i=c.querySelector(".vp-playlist-mode-"+this.df),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.Bk(t),this.lw&&this.lw.attachUpNextMouseEvents(),setTimeout((function(){o.Gk(a.PLAYLIST_POS.HIDDEN,!0)}),500);else{e.innerHTML=n.innerHTML,n.innerHTML="",s=this.df===a.PLAYLIST_POS.RIGHT,p(r).add("hide"),this.Bk(i),this.lw&&this.lw.detachUpNextMouseEvents();var h=this.Ny.querySelector(".vp-currently-playing");h&&p(h).remove("vp-hide"),setTimeout((function(){o.Gk(o.df,s)}),500)}this.Zk(),this.Pk&&this.Pk.forEach((function(t){t.destroy()})),this.Pk=[],this.Dm(!1),this.$k().forEach((function(t){o.Pk.push(new v.default(t)),t.addEventListener("tap",o.Ck)}))}},i.prototype.Mw=function(){var t=this;this.lw.isPlaylistShown()&&(this.Dk=0,setTimeout((function(){t.setPlaylistViewSize()}),1e3))},i.prototype.Zk=function(){this.tD&&this.Qk&&(this.tD.destroy(),this.Qk.removeEventListener("tap",this.Kk)),this.Jk&&this.Wk&&(this.Jk.destroy(),this.Wk.removeEventListener("tap",this.Kk))},i.prototype.$k=function(){return Array.prototype.slice.call(this.Ny.querySelectorAll(".vp-playlist-item"),0)},i.prototype.Vk=function(){return this.vt.playlist},Object.defineProperty(i.prototype,"Fk",{get:function(){return this.vt.playlistUIConfig},enumerable:!1,configurable:!0}),i}(o.default);i.default=b},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),a=n(3535),c=n(7372),h=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=a.default.build(i,n),e}return r(i,t),i.prototype.destroy=function(){this.view.destroy(),t.prototype.destroy.call(this)},i}(s.default);i.default=v;var d="vp-show-spinner",p=function(t){function i(){return t.call(this,c,{})||this}return r(i,t),i.prototype.show=function(){var t;(t=this.view)&&t.node&&t.node.offsetHeight,this.view.add(d)},i.prototype.hide=function(){this.view.remove(d)},i}(v);i.LoadingScreen=p;var b,m=function(t){function i(i,n,e,r){var s=t.call(this,h,{title:i.title,message:i.message,rep:i.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=m,function(t){t.UI_INTERACT="ssUiInteract",t.START_SCREEN_CLICK="ssScreenClick"}(b=i.StartScreenEvent||(i.StartScreenEvent={}));var g=function(t){function i(i,n,e){var r=this,s={showTitle:n.showTitle&&i.title,showButton:n.showButton,showDescription:n.showDescription&&i.description,showThumbnail:n.showThumbnail,showProvider:!1},a=i.posterUrl||i.thumbnail;return(r=t.call(this,f,{item:i,config:s,width:e.width,height:e.height,imageSrc:a,strings:u.default,show:null==e?void 0:e.isCSSLoaded})||this).view.onTap((function(){o.userAgent.htc_one?window.setTimeout((function(){return r.Ik()}),500):r.Ik()})),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.Ik=function(){this.publish(b.START_SCREEN_CLICK),this.publish(b.UI_INTERACT,{srcElement:"startScreen"})},i}(v);i.StartScreen=g;var y=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=y},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,a,c=n(1409),h=n(954),f=n(4685),l=n(1954),v=n(2394),d=n(6342),p=n(514),b=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"}(a=i.itemClasses||(i.itemClasses={}));var m=function(t){function n(i){var n=t.call(this,"settings")||this;return n.vt=i,n.nD={},n}return r(n,t),n.prototype.create=function(){return this._node=d.default.render(b,{strings:l.default,itemClasses:a}),this.eD={low:this._node.querySelector("."+a.low),medium:this._node.querySelector("."+a.medium),high:this._node.querySelector("."+a.high),auto:this._node.querySelector("."+a.auto)},this.rD=u.auto,this._node},n.prototype.onPlaybackStarted=function(t){this.shouldEnableSettings()&&(this.sD(t),this.activateItem(u.auto))},n.prototype.onPlayerResize=function(t,i){t.width<=h.HideBreakpointDimensions.WIDTH&&t.height<=h.HideBreakpointDimensions.HEIGHT&&this.isOpen()&&this.toggleSettings(i)},n.prototype.activateItem=function(t){d.default.classList(this.eD[this.rD]).remove(o.ACTIVE),d.default.classList(this.eD[u[t]]).add(o.ACTIVE),this.rD=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.nD).forEach((function(i){t.nD[i].destroy()}))},n.prototype.shouldEnableSettings=function(){var t=this.vt.playbackState.rendererType,n=this.vt.playlist.getCurrentItem();return i.SUPPORTED_RENDERER_TYPES.indexOf(t)>-1&&n&&(n.streams.length>1||n.streamProfiles.length>1||this.vt.bitrates.length>1)},n.prototype.oD=function(t,i){var n=this,e=this.eD[i];this.nD[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.sD=function(t){var i=this;this.uD(t),Object.keys(this.eD).filter((function(t){return!d.default.classList(i.eD[t]).contains(o.DISABLE)})).forEach((function(t){i.oD(i.aD[t],t)}))},n.prototype.uD=function(t){var i=this,n=t.streams,e=t.streamProfiles,r=this.vt.capabilities[t.rendererType];if(n.length>1)this.aD=v.default.mapStreamsToQualities(n);else if(e.length>1)this.aD=v.default.mapStreamsToQualities(e);else if(this.vt.bitrates.length>1){var s=[];this.vt.bitrates.forEach((function(t,n){s.push({bitrate:t,height:i.vt.heights[n]})})),this.aD=v.default.mapStreamsToQualities(s)}this.aD=this.aD||{},this.aD.auto=v.default.findStreamByProperty(n,"bitrate",this.vt.desiredBitrate,r),Object.keys(this.eD).forEach((function(t){var n=i.aD[t];if(n){d.default.classList(i.eD[t]).remove(o.DISABLE);var e=i.eD[t].querySelector("."+a.hdIcon);e&&n.height&&n.height>=720&&d.default.classList(e).add(o.ON)}else d.default.classList(i.eD[t]).add(o.DISABLE)}))},n}(c.default);i.default=m},514:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(531),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.cD=!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.cD},t.prototype.handleEvent=function(t){switch(t.type){case"mousedown":if(this.isTouchDevice())return;case"touchstart":this.GN(t);break;case"touchmove":this.hD(t);break;case"mouseup":if(this.isTouchDevice())return;case"touchend":this.HN(t);break;case"touchcancel":this.fD()}},t.prototype.GN=function(t){var i,n="touchstart"===t.type;n&&(this.cD=!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.hD=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.HN=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.fD=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' 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-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,4515,4674,"{{ }}")&&(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,6699,6743,"{{ }}")&&(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:{}})},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",a="mousedown",c="mousemove",h="mouseup",f="mouseenter",l="mouseleave";!function(t){t.PIXEL="px",t.PERCENTAGE="%"}(e=i.DimensionUnit||(i.DimensionUnit={}));var v=function(){function t(t){if(this.lD=null,this.vD=null,this.dD=null,this.pD=null,this.bD=null,this.mD=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.lD&&this.lD.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.lD=new r.default(this._node,t),this},t.prototype.onDrag=function(t,i,n){return this.vD=t,this.dD=i,this.pD=n,this.gD([a,s],t),this.gD([c,o],i),this.gD([h,u],n),this},t.prototype.removeDragEvents=function(){return this.yD([a,s],this.vD),this.yD([c,o],this.dD),this.yD([h,u],this.pD),this.vD=null,this.dD=null,this.pD=null,this},t.prototype.onScroll=function(t,i){return this.bD=t,this.mD=i,this.gD([f,s],t),this.gD([c,o],t),this.gD([l,u],i),this},t.prototype.removeScrollEvents=function(){return this.yD([f,s],this.bD),this.yD([c,o],this.bD),this.yD([l,u],this.mD),this.bD=null,this.mD=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.gD=function(t,i){var n=this;t.forEach((function(t){n.addEventListener(t,i)}))},t.prototype.yD=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,a,c,h,f=n(1409),l=n(9451),v=n(611),d=n(9257),p=n(8430),b=n(9541),m=n(1225),g=n(6609),y=n(514),_=n(3072),w=n(954),O=n(6389),E=n(1962),j=n(5244),S=n(1204),A=n(531),M=n(6342),T=n(1960),N=n(6589),I=n(4685),R=n(2878),L=n(8103),C=n(6266),k=n(2810);M.default.insertCssIntoHead(".vp-vis-hidden { visibility: hidden;} .vp-disp-none { display: none;}"),function(t){t.END_SCREEN="end-screen",t.ERROR="error",t.VIDEO="video",t.START_SCREEN="start-screen",t.BLOCKED="blocked"}(o=i.ViewState||(i.ViewState={})),function(t){t.PORTRAIT="portrait",t.LANDSCAPE="landscape"}(u=i.Orientation||(i.Orientation={})),function(t){t.LOADING="loading",t.SWITCHING="switching",t.PLAYING="playing",t.PAUSED="paused",t.CASTING="casting"}(a||(a={})),function(t){t.NORMAL="normal",t.SMALL="smallscreen",t.VERY_SMALL="verysmallscreen"}(c||(c={})),function(t){t[t.SMALL_WIDTH=350]="SMALL_WIDTH",t[t.SMALL_HEIGHT=210]="SMALL_HEIGHT",t[t.VERY_SMALL_WIDTH=200]="VERY_SMALL_WIDTH",t[t.VERY_SMALL_HEIGHT=175]="VERY_SMALL_HEIGHT"}(h||(h={}));var D,P=["webkitfullscreenchange","mozfullscreenchange","msfullscreenchange","MSFullscreenChange","fullscreenchange"],x="vp-state-",U="vp-flag-",F="vp-browser-",B="vp-mode-",z=5e3,V="full",G=40,H=27,Y=82,q=53;function W(t){return M.default.classList(t)}!function(t){t.AD_CLICKED="vAdClicked",t.BACKWARD_SEEK="vBackwardSeek",t.CC_LANGUAGE_CHANGE="vCcLanguageChange",t.CC_STYLE_CHANGE="vCcStyleChange",t.CC_POSITION_FLOAT="vCcPosFloat",t.CUSTOM_ELEMENT="vCustomElem",t.FORWARD_SEEK="vForwardSeek",t.OPSS_VISIBILITY_CHANGED="vOpssVisibilityChanged",t.PLAYLIST_BOTTOM_HEIGHT_CHANGE="vPlaylistBottomHeightChange",t.SCROLLED_TO_END="vScrolledToEnd",t.SEEK="vSeek",t.SET_AUDIO_LANGUAGE="vSetAudioLanguage",t.SET_MUTE="vSetMute",t.SET_VOLUME="vSetVolume",t.SKIP_AD_REQUESTED="vAdSkipRequested",t.START_SCREEN_CLICK="vStartScreenClick",t.SYNC_PLAYBACK_STATE="vSyncPlaybackState",t.SYNC_SHOW_AIRPLAY_TARGET_MENU="vSyncShowAirplayTargetMenu",t.SYNC_VIDEO_END="vSyncVideoEnd",t.TOGGLE_CC="vToggleCc",t.TOGGLE_PLAY_PAUSE="vTogglePlayPause",t.UI_INTERACT="vUiInteract",t.KEY_CHANGE_VOLUME="vKeyChangeVolume",t.PLAYER_VIEWPORT_CHANGE="vPlayerViewportChanged",t.FULLSCREEN_CHANGE="vFullscreenChanged"}(D=i.ViewEvent||(i.ViewEvent={}));var Q=function(t){function i(i,n,e,r,s,o){var u=t.call(this,"View")||this;u.EE=i,u.vt=n,u.$b=e,u.q_=r,u.d_=s,u.tw=o,u._D=c.NORMAL,u.wD=!1,u.OD=!1,u.ED=0;var h=0,f=0;return u.EE&&(h=u.EE.clientWidth,f=u.EE.clientHeight,u._D=u.jD(h,f)),u.$b.addEventListener(E.VideoEvent.SRC_SWITCHING,(function(){u.SD(a.SWITCHING,!0)}),u),u.$b.addEventListener(E.VideoEvent.SRC_SWITCHED,(function(){u.SD(a.SWITCHING,!1)}),u),u.$b.publish(E.PLAYER_DIMENSION_CHANGE,{height:u.EE&&u.EE.clientHeight||u.vt.uiState.height||0,width:u.EE&&u.EE.clientWidth||u.vt.uiState.width||0,videoWidth:u.jE&&u.jE.clientWidth||u.vt.uiState.videoWidth||0,videoHeight:u.jE&&u.jE.clientHeight||u.vt.uiState.videoHeight||0}),u.$b.addEventListener(_.ExternalEvt.PLAYER_MUTE_CHANGE,u.MD,u),u.$b.addEventListener(E.UP_NEXT_PG_CLICK,u.TD,u),u.$b.addEventListener(E.PLAYER_DIMENSION_CHANGE,u.Mw,u),u.$b.addEventListener(E.Device.ORIENTATION_CHANGE,u.ND,u),u.$b.addEventListener(E.PLAYBACK_INFO,u.RD,u),u.$b.addEventListener(_.ExternalEvt.PLAYLIST_POSITION_CHANGE,u.LD,u),l.userAgent.mobile&&S.default.canPlayInline&&(u.vt.uiState.deviceOrientation=u.CD(),u.kD()),u}return r(i,t),i.prototype.render=function(){var t=this;this.vt.rendered=!0,this.SE=M.default.render(C,{enableDocking:this.vt.docking&&(this.vt.docking.enableOnScrollDown||this.vt.docking.enableOnScrollUp)}),this.jE=this.SE.querySelector("."+w.VIDEO_MAIN_ELEMENT_CLASS),this.EE&&this.EE.appendChild(this.SE),W(this.SE).add(this._D),Object.keys(l.userAgent).filter((function(t){return l.userAgent[t]})).forEach((function(i){"os"===i&&(i=l.userAgent.os),"ie"===i&&W(t.SE).add("vp-"+i.toLowerCase()+l.userAgent[i]),W(t.SE).add(F+i.toLowerCase())})),S.default.deviceType&&W(this.SE).add("vp-device-"+S.default.deviceType),l.userAgent.mobile&&S.default.canPlayInline&&W(this.SE).add("vp-browser-playsinline"),this.vt.chromeless||(this.DD=this.PD(g.LoadingScreen)),this.vt.showControls&&S.default.canPlayInline&&(this.eI=new p.Controls(this.$b,this,this.vt,this.d_),this.xD()),this.vt.showControls||W(this.SE).add("vp-no-controls");var i=function(i){t.ZM()},n=function(i){t.iT(i)},e=function(){t.UD()};this.FD=function(){t.BD={},t.zD=t.SE,t.SE.addEventListener("mousemove",(function(n){t.BD.x!==n.clientX&&t.BD.y!==n.clientY&&(i(),t.BD.x=n.clientX,t.BD.y=n.clientY,t.zD=n.target)})),t.SE.addEventListener("mouseover",(function(n){var e=null;t.zD&&(e=t.zD.parentElement),!e||W(e).contains("vp-play-controls")||W(e).contains("vp-menu-controls")||i()})),t.SE.addEventListener("mouseout",(function(i){var e=null,r=t.SE.getBoundingClientRect();t.zD&&(e=t.zD.parentElement),e&&(W(e).contains("vp-play-controls")||W(e).contains("vp-menu-controls")||n(i),(W(e).contains("vp-play-controls")||W(e).contains("vp-menu-controls"))&&(i.clientX<=r.left||i.clientX>=r.right||i.clientY>=r.bottom)&&n(i))}))},this.LC=function(){var t=this;this.VD=new y.default(this.SE,(function(){(!t.getFullscreen()||l.userAgent.android&&M.default.getFullscreenElement()===t.SE)&&t.toggleControlsVisibility()})),this.SE.addEventListener("click",e),this.$b.addEventListener(E.CONTROLS_SEEKING,(function(){t.GD&&clearTimeout(t.GD),t.GD=window.setTimeout(t.HD.bind(t),z)}),this)},l.userAgent.tv||l.userAgent.mobile?l.userAgent.mobile&&this.eI&&S.default.canPlayInline&&this.LC():this.FD(),this.YD=function(){t.SE.removeEventListener("mousemove",i),t.SE.removeEventListener("mouseover",i),t.SE.removeEventListener("mouseout",n)},this.qD=function(){t.SE.removeEventListener("click",e)},A.isFunction(this.handleFullscreenChange.bind)&&(this.WD=this.handleFullscreenChange.bind(this),P.forEach((function(i){document.addEventListener(i,t.WD)}))),this.d_.render(this.jE),this.QD(),this.lw=new N.PlaylistController(this,this.d_),this.ZD(),this.$D(),this.XD(),l.userAgent.desktop&&this.jE&&this.jE.addEventListener("contextmenu",(function(i){var n=t.gw.rendererType;n!==I.RendererType.HTML5_HLS&&n!==I.RendererType.HTML5_RAW||i.preventDefault()}));var r=document.querySelector("#vp-css");M.default.isOldIeBrowser()&&setTimeout((function(){r&&r.sheet.cssRules&&r.sheet.cssRules.length>0?t.JD():t.KD()}),150),M.default.isOldIeBrowser()||!this.vt.uiState||this.vt.uiState.isCSSLoaded||(!0===M.default.getSingleton("isCSSLoaded")?this.JD():!0===M.default.getSingleton("isCSSError")?this.KD():r&&(r.addEventListener("error",this.KD.bind(this)),r.addEventListener("load",this.JD.bind(this)))),this.tP=new d.default(this.$b,this,this.vt,this.d_)},i.prototype.getEventBus=function(){return this.$b},i.prototype.getModel=function(){return this.vt},i.prototype.getAdsOverlay=function(){return this.iP},i.prototype.getAdsOverlayNode=function(){var t;return(null===(t=this.iP)||void 0===t?void 0:t.view.node)||null},i.prototype.toggleControlsVisibility=function(){var t,i;W(this.SE).contains("vp-hide-controls")?(W(this.SE).remove("vp-hide-controls"),this.nP(!1),null===(i=this.eI)||void 0===i||i.onControlsBarChange(!0),this.eP&&W(this.eP).remove("vp-overlay-hide-cursor"),this.GD&&clearTimeout(this.GD),this.gw.seeking||(this.GD=window.setTimeout(this.HD.bind(this),z))):(W(this.SE).add("vp-hide-controls"),this.nP(!0),null===(t=this.eI)||void 0===t||t.onControlsBarChange(!1))},i.prototype.toggleAdViewClickBlocking=function(){var t=W(this.SE).contains("vp-hide-controls");this.rP.enableClickBlocking(!!t)},i.prototype.isDocked=function(){return this.OD},i.prototype.dockVideoPlayer=function(){var t=window.scrollY,i=!0,n=this.vt.docking.width,e=this.vt.docking.height;if(this.ED>t&&(i=!1),this.vt.docking.enableOnScrollDown===i&&this.vt.docking.enableOnScrollUp!==i&&!this.sP&&(this.vt.docking.enableOnMuted||!this.vt.mute)&&!(l.userAgent.mobile&&this.vt.docking.mobile&&this.vt.docking.mobile.disable)){if(this.oP=this.SE.clientWidth,this.uP=this.SE.clientHeight,n===V){if(this.vt.uiState.deviceOrientation===u.LANDSCAPE)return;n=window.innerWidth,e=this.uP/this.oP*n}if(this.OD=!0,this.aP(),this.lw.togglePlaylistUI(!0),W(this.SE).add("vp-docked"),this.vt.docking.showInfoCard&&W(this.SE).add("vp-docked-show-meta"),this.vt.docking.fadeInAnimation){if(W(this.SE).add("vp-docked-fadein"),W(this.EE).add("vp-docked-mode"),(a=l.userAgent.mobile&&this.vt.docking.mobile?this.vt.docking.mobile.position||{}:this.vt.docking.position||{}).top>-1&&(this.SE.style.top=a.top+"px"),a.bottom>-1&&a.top<0){var r=0;this.vt.docking.showInfoCard&&(r=84),this.SE.style.bottom=r+a.bottom+"px"}a.right>-1&&a.left<0&&(this.SE.style.right=a.right+"px"),a.left>-1&&(this.SE.style.left=a.left+"px")}else{this.cP();var s=this.SE.getBoundingClientRect(),o=document.querySelector("body");if(!o)return;var a,c=o.clientWidth,h=window.innerHeight,f=0,v=0;if((a=this.vt.docking.position||{}).top>-1&&(v=a.top,this.SE.style.top="0px"),a.bottom>-1){var d=0;this.vt.docking.showInfoCard&&(d=84),v=h-e-d-a.bottom,this.SE.style.bottom=""}a.right>-1&&(f=c-s.left-n-a.right,this.SE.style.right=""),a.left>-1&&(f=a.left,this.SE.style.left="0px"),this.SE.style.transform="translate3d("+f+"px, "+v+"px, 0)",W(this.SE).add("vp-docked-animated"),W(this.EE).add("vp-docked-mode")}this.SE.style.width=n+"px",this.SE.style.height=e+"px",this.publish(D.PLAYER_VIEWPORT_CHANGE,!1),this.$b.publish(E.PLAYER_DIMENSION_CHANGE,this.getPlayerDimensions()),this.vt.uiState.isDocked=!0,this.$b.publish(_.ExternalEvt.PLAYER_DOCKED_CHANGE,!0)}},i.prototype.undockVideoPlayer=function(t){var i=this;void 0===t&&(t=!1),W(this.SE).remove("vp-docked"),W(this.SE).remove("vp-docked-show-meta"),this.vt.docking.fadeInAnimation?(W(this.SE).remove("vp-docked-fadein"),this.SE.style.top="",this.SE.style.right="",this.SE.style.bottom="",this.SE.style.left="",this.SE.style.width="",this.SE.style.height=""):(this.SE.style.transform="translate3d(0, 0, 0)",this.cP()),this.OD=!1,this.lw.togglePlaylistUI(!1),t&&!this.vt.isPaused()&&this.$b.publish(E.TOGGLE_PLAY_PAUSE),window.setTimeout((function(){i.OD||(i.vt.uiState.isDocked=!1,i.vt.docking.fadeInAnimation||(i.SE.style.width="",i.SE.style.height="",W(i.SE).remove("vp-docked-animated"),i.SE.style.position="",i.SE.style.transform="",i.SE.style.top="",i.SE.style.right="",i.SE.style.bottom="",i.SE.style.left=""),i.hP&&(i.EE.removeChild(i.hP),i.hP=null),W(i.EE).remove("vp-docked-mode"),i.publish(D.PLAYER_VIEWPORT_CHANGE,!0),i.$b.publish(E.PLAYER_DIMENSION_CHANGE,i.getPlayerDimensions())),i.$b.publish(_.ExternalEvt.PLAYER_DOCKED_CHANGE,!1)}),250)},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){"boolean"==typeof t&&(this.vt.docking.enableOnScrollDown=t),"boolean"==typeof i&&(this.vt.docking.enableOnScrollUp=i),this.vt.docking.position=this.vt.docking.position||{},isNaN(n)||(this.vt.docking.position.top=n),isNaN(e)||(this.vt.docking.position.right=e),isNaN(r)||(this.vt.docking.position.left=r),isNaN(s)||(this.vt.docking.position.bottom=s),t||i?(this.$D(),this.OD&&this.dockVideoPlayer()):(this.fP(),this.OD&&this.undockVideoPlayer())},i.prototype.createAdsOverlay=function(){if(this.iP)return this.iP.view.innerHTML="",this.iP.view.node;if(!this.jE)return null;this.iP=new g.AdsOverlay;var t=this.iP.view.node,i=this.jE.querySelector(".vp-adview-wrapper");return i?this.jE.insertBefore(t,i):this.jE.appendChild(t),t},i.prototype.destroyAdsOverlay=function(){this.iP&&(this.iP.destroy(),this.iP=null)},i.prototype.showAirplayTargetMenu=function(){this.publish(D.SYNC_SHOW_AIRPLAY_TARGET_MENU)},i.prototype.getContentNode=function(){return this.SE},i.prototype.getOpenSimSim=function(){return this.lP},i.prototype.getMainElement=function(){return this.jE},i.prototype.getCCElement=function(){return this.jE?this.jE.querySelector(".vp-cc-element"):null},i.prototype.getRootElement=function(){return this.EE},i.prototype.getVideoElement=function(){if(this.EE){var t=this.EE.getElementsByClassName("vp-renderer-active")[0];if(t)return t instanceof HTMLVideoElement?t:t.getElementsByTagName("video")[0]}},i.prototype.setKeyboardFocus=function(){this.SE.focus()},i.prototype.updateViewOnEscPress=function(){this.lP&&this.lP.isOpen()?this.lP.close():this.getFullscreen()&&this.setFullscreen(!1)},i.prototype.disableControls=function(){W(this.SE).add("vp-disable-controls")},i.prototype.enableControls=function(){W(this.SE).remove("vp-disable-controls")},i.prototype.resetState=function(){this.vP(),this.dP(),this.pP()},i.prototype.syncViewState=function(){var t,i,n=this.vt,e=n.playlist&&this.WO(),r=this.gw,s=n.castState,u=s&&s.connected,c=o.START_SCREEN;if(this.SD(a.CASTING,u),u){var h=W(this.SE);s.mediaLoaded&&!s.paused?h.add("vp-cast-playing"):h.remove("vp-cast-playing")}var f=W(this.SE).contains(U+a.LOADING),v=n.isLoading();switch(this.SD(a.LOADING,v),!f&&v?(this.$b.publish(_.ExternalEvt.LOADING_BEGIN),null===(t=this.DD)||void 0===t||t.show()):f&&!v&&(this.$b.publish(_.ExternalEvt.LOADING_END),null===(i=this.DD)||void 0===i||i.hide()),n.getState()){case j.States.INIT:case j.States.WAITING:c=o.START_SCREEN;var d=!n.autoplay||n.waitingForUserTap,p=e&&(e.hasThumbnail()&&!l.userAgent.mobile||e.fetchFinished());if(d&&p){var b=n.continuousPlay&&0!==n.playlist.position,m=n.skipOnError===T.SkipOnError.ALWAYS||n.skipOnError===T.SkipOnError.TIMEBASED;b&&m&&r.hasStartedPlayback||this.bP()}break;case j.States.VIDEO:this.mP(r),this.gP(),c=o.VIDEO;break;case j.States.END:this.vt.continuousPlay||this.setFullscreen(!1),r.criticalError?(n.chromeless?this.$b.publish(_.ExternalEvt.PLAYER_ERROR,r.criticalError):this.yP(r.criticalError,e,n.guid),c=o.ERROR):(this._P(r.previousItem),c=o.END_SCREEN)}this.wP=c,this.OP(c),this.EP(),this.tP&&this.tP.syncState()},i.prototype.getCurrentViewState=function(){return this.wP},i.prototype.updateStreamSyncUI=function(t,i){var n,e;t&&"pause"===i?(null===(n=this.DD)||void 0===n||n.show(),W(this.SE).add("vp-sync-waiting")):(null===(e=this.DD)||void 0===e||e.hide(),W(this.SE).remove("vp-sync-waiting"))},i.prototype.setFullscreen=function(t){var i,n=this.SE;(l.userAgent.ios||l.userAgent.android&&!this.eI)&&(n=null===(i=this.tw.getActiveRenderer())||void 0===i?void 0:i.node),t&&!this.wD?R.default.enterFullscreen(n):!t&&this.wD&&R.default.exitFullscreen(n),this.$b.publish(E.CTRL_FULLSCREEN,t?"ON":"OFF"),t&&l.userAgent.mobile&&S.default.autoplaySupported&&this.gw.mute&&!this.vt.muteMode&&this.publish(D.SET_MUTE,!1),this.EP()},i.prototype.getFullscreen=function(){var t=this.tw.getActiveRenderer(),i=!!t&&R.default.isFullscreenOnMobile(t.node);return M.default.getFullscreenElement()===this.SE||i},i.prototype.toggleFullscreen=function(){this.setFullscreen(!this.getFullscreen())},i.prototype.updateVolumeUI=function(t,i,n){void 0===n&&(n=!1),this.eI&&this.eI.updateVolumeUI(t,i,n)},i.prototype.updateClosedCaptionUI=function(t){this.eI&&this.eI.updateClosedCaptionUI(t)},i.prototype.clearAutoHideTimeout=function(){this.GD&&window.clearTimeout(this.GD)},i.prototype.setOverlayActive=function(t){t?W(this.SE).add("vp-overlay-active"):W(this.SE).remove("vp-overlay-active")},i.prototype.destroyFullscreenChangeListeners=function(){var t=this;this.WD&&P.forEach((function(i){document.removeEventListener(i,t.WD)}))},i.prototype.getPlayerDimensions=function(){return{width:this.SE.clientWidth,height:this.SE.clientHeight,videoWidth:this.jE.clientWidth,videoHeight:this.jE.clientHeight}},Object.defineProperty(i.prototype,"controls",{get:function(){return this.eI},enumerable:!1,configurable:!0}),i.prototype.getPlaylistController=function(){return this.lw},i.prototype.isStreamMode=function(){return l.userAgent.desktop&&(this._D===c.SMALL||W(this.SE).contains("vp-stream"))},i.prototype.isMiniStreamMode=function(){return l.userAgent.desktop&&(this._D===c.VERY_SMALL||W(this.SE).contains("vp-ministream"))},i.prototype.addRendererNode=function(t){var i=this.getMainElement();if(i&&t){if(W(t).contains("vp-external-video")){for(var n=0,e=i.children[n];n<i.children.length&&"video"!==e.tagName.toLowerCase();)e=i.children[++n];if(e&&"video"===e.tagName.toLowerCase())return void i.insertBefore(t,e)}i.appendChild(t)}},i.prototype.onMediaItemLoaded=function(t){t.isLive()?W(this.SE).add("vp-live"):W(this.SE).remove("vp-live"),this.isStreamMode()&&!this.getFullscreen()&&W(this.SE).add("vp-stream"),this.isMiniStreamMode()&&!this.getFullscreen()&&W(this.SE).add("vp-ministream"),this.eI&&this.eI.onMediaItemLoaded(t)},i.prototype.onMediaItemCurrent=function(t){this.eI&&this.eI.onMediaItemCurrent(t)},i.prototype.onMediaItemPlaybackStarted=function(t){(this.vt.docking.enableOnScrollDown||this.vt.docking.enableOnScrollUp)&&this.OD&&this.aP(),this.eI&&this.eI.onMediaItemPlaybackStarted(t)},i.prototype.onMediaItemPlaybackProgress=function(t){this.eI&&this.eI.onMediaItemPlaybackProgress(t)},i.prototype.onAdBreakStarted=function(t){var i,n;null===(i=this.rP)||void 0===i||i.onAdBreakStart(t),t.type===L.AdBreakType.LINEAR&&(null===(n=this.eI)||void 0===n||n.onAdBreakStarted())},i.prototype.onAdBreakEnded=function(t){var i;null===(i=this.rP)||void 0===i||i.onAdBreakEnd(t)},i.prototype.onAdPlaybackStarted=function(t){this.eI&&this.eI.onAdPlaybackStarted(t.type===L.AdBreakType.LINEAR)},i.prototype.onAdPlaybackEnded=function(t){this.eI&&this.eI.onAdPlaybackEnded()},i.prototype.onAdPlaybackProgress=function(t){var i=t.playingItem,n=this.gw;i&&A.isNumber(n.currentTime)&&A.isNumber(n.duration)&&this.eI&&this.eI.onAdPlaybackProgress(t)},i.prototype.onPlaybackTimeUpdate=function(){var t;null===(t=this.lP)||void 0===t||t.onTimeUpdate(this.tw.getSyncOffset(),this.tw.getSyncState())},i.prototype.setTheme=function(t){t&&W(this.SE).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.eI.updateCurrentItemTitle(t),this.OD&&this.jP&&(this.jP.textContent=t),this.SP&&this.SP.updateTitle(t)},i.prototype.addCustomControlElement=function(t){return this.eI.addCustomControlElement(t)},i.prototype.onRendererSwitch=function(t,i){this.lP&&this.lP.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.lP&&(i=this.lP).onVideoEvent.apply(i,s([t],n))},i.prototype.handleFullscreenChange=function(t){var i="boolean"==typeof t?t:this.getFullscreen();i?(W(this.SE).add("vp-state-fullscreen"),this.OD&&(this.sP=!0,this.undockVideoPlayer())):(W(this.SE).remove("vp-state-fullscreen"),(this.OD||this.sP)&&(this.sP=!1,this.ED=window.scrollY,this.dockVideoPlayer())),this.wD!==i&&(this.vt.uiState.isFullscreen=i,this.publish(D.FULLSCREEN_CHANGE,i),this.wD=i)},i.prototype.destroy=function(){this.eI&&this.eI.destroy(),this.AP&&this.AP.destroy(),this.MP&&this.MP.destroy(),this.TP&&this.TP.destroy(),this.DD&&this.DD.destroy(),this.rP&&this.rP.destroy(),this.lw&&this.lw.destroy(),this.SP&&this.SP.destroy(),this.VD&&this.VD.destroy(),this.destroyAdsOverlay(),this.destroyFullscreenChangeListeners(),l.userAgent.tv||l.userAgent.mobile||!this.YD||this.YD(),l.userAgent.mobile&&S.default.canPlayInline&&this.qD&&this.qD(),this.NE&&(window.removeEventListener("resize",this.NE),this.NE=null),this.lP&&this.lP.destroy(),this.EE&&this.SE&&this.EE.removeChild(this.SE),this.fP()},i.prototype.XD=function(){var t=this;this.AP=new b.default("NORMAL",(function(){t.lP||(t.lP=t.PD(m.default,t.vt,t.d_.getExternalPlugins()),t.lP.on(m.OpssEvent.VISIBILITY_CHANGED,(function(i,n){t.publish(D.OPSS_VISIBILITY_CHANGED,i,n.node)}),t));var i=t.tw.getRendererController().getActiveRenderer();t.lP.render(i)}),this.SE)},i.prototype.ND=function(t){this.vt.uiState.deviceOrientation=t,this.vt.uiState.isDocked&&this.vt.docking.width===V&&t===u.LANDSCAPE&&!this.getFullscreen()&&this.undockVideoPlayer(!0)},i.prototype.RD=function(t){this.lP&&this.lP.onPlaybackInfo(t)},i.prototype.LD=function(){this.lP&&this.lP.onPlaylistPositionChange()},i.prototype.kD=function(){this.NE=this.FE.bind(this),window.addEventListener("resize",this.NE)},i.prototype.CD=function(){var t=u.LANDSCAPE;return window.innerHeight>window.innerWidth&&(t=u.PORTRAIT),t},i.prototype.FE=function(){this.$b.publish(E.Device.ORIENTATION_CHANGE,this.CD())},i.prototype.$D=function(){this.NP&&this.fP(),(!(l.userAgent.ie>0&&l.userAgent.ie<10)&&!l.userAgent.mobile||l.userAgent.mobile&&S.default.canPlayInline)&&this.vt.docking&&(this.vt.docking.enableOnScrollDown||this.vt.docking.enableOnScrollUp)&&(this.NP=this.IP.bind(this),window.addEventListener("scroll",this.NP))},i.prototype.fP=function(){this.NP&&(window.removeEventListener("scroll",this.NP),this.NP=null)},i.prototype.IP=function(){var t=window.pageYOffset;if(t!==this.ED&&!this.wD){this.ED=t;var i=M.default.getElementViewability(this.EE)>=this.vt.docking.threshold;i||this.OD||this.vt.getState()!==j.States.VIDEO||this.vt.isPaused()?i&&this.OD&&this.undockVideoPlayer():this.dockVideoPlayer()}},i.prototype.QD=function(){return this.rP||(this.rP=new v.default,this.jE.appendChild(this.rP.create()),l.userAgent.mobile&&this.eI&&S.default.canPlayInline&&this.rP.enableClickBlocking(!0)),this.rP},i.prototype.cP=function(){var t=this.EE.getBoundingClientRect(),i=document.querySelector("body");if(i){var n=i.clientWidth,e=this.vt.docking.position||{};e.top>-1&&(this.SE.style.top=t.top+"px"),e.bottom>-1&&(this.SE.style.bottom=t.bottom+"px"),e.right>-1&&(this.SE.style.right=n-t.right+"px"),e.left>-1&&(this.SE.style.left=t.left+"px"),this.SE.style.width=this.oP+"px",this.SE.style.height=this.uP+"px",this.SE.style.position="fixed"}},i.prototype.aP=function(){var t=this,i=this.vt.docking;if(i.enableOnScrollDown||i.enableOnScrollUp){this.jP&&this.hP||(this.jP=this.SE.querySelector(".vp-docked-title"),this.RP=this.SE.querySelector(".vp-docked-provider"),this.hP=document.createElement("div"),this.hP.setAttribute("class","vp-docked-bg"),this.LP=document.createElement("img"),this.LP.setAttribute("class","vp-docked-img"),this.CP=document.createElement("div"),this.CP.setAttribute("class","vp-docked-overlay"),this.kP=document.createElement("div"),this.kP.setAttribute("class","vp-docked-overlay-text"),this.kP.innerHTML="Scroll back up to restore default view.",this.CP.appendChild(this.kP),this.hP.appendChild(this.LP),this.hP.appendChild(this.CP),this.DP||(this.DP=document.createElement("div"),this.DP.setAttribute("class","vp-docked-close-button"),this.PP=new y.default(this.DP,(function(i){i.stopPropagation(),t.undockVideoPlayer(!t.vt.isPaused()),t.publish(D.UI_INTERACT,{srcElement:"ui_pop_close_clk"})})),i.closeButtonFadeIn||W(this.DP).add("vp-nofade")),this.jE&&this.jE.appendChild(this.DP),this.EE&&this.EE.appendChild(this.hP));var n=this.WO();n&&(n.thumbnail&&this.LP.setAttribute("src",n.thumbnail),this.jP&&n.title&&(this.jP.innerHTML=n.title))}},i.prototype.JD=function(){var t,i=this.getContentNode().querySelectorAll(".vp-vis-hidden"),n=i.length;for(t=0;t<n;t++)W(i[t]).remove("vp-vis-hidden");this.jE.style.height="",this.vt.uiState.isCSSLoaded=!0},i.prototype.KD=function(){for(var t=this.getContentNode().querySelectorAll(".vp-vis-hidden"),i=t.length,n=0;n<i;n++)W(t[n]).add("vp-disp-none");this.vt.uiState.isCSSLoaded=!1,this.$b.publish(E.WARNING,M.default.createErr(O.ErrorGroup.Streaming,this.gw,O.E_WARNING,O.WARNING_CODES.E_CSS_DOWNLOAD_FAILED),!1)},i.prototype.OP=function(t){var i=x+t,n=W(this.SE);Object.keys(o).forEach((function(t){var e=x+o[t];n.contains(e)&&e!==i&&n.remove(e)})),n.contains(i)||n.add(i)},i.prototype.SD=function(t,i){var n=W(this.SE),e=U+t,r=n.contains(e);i?r||n.add(e):r&&n.remove(e)},i.prototype.bP=function(){var t=this.vt,i=this.WO();i&&!this.SP&&(t.showStartScreen&&(this.SP=this.PD(g.StartScreen,i,t.startScreenConfig,t.uiState),this.xP()),this.$b.publish(E.START_SCREEN_RENDERED))},i.prototype.vP=function(){var t=this.SP&&this.SP.view;t&&(this.jE&&this.jE.removeChild(t.node),this.SP.destroy(),this.SP=null)},i.prototype._P=function(t){var i=this;if(t){var n=this.vt.showEndScreen;if(n){if(!this.SE.querySelector(".vp-end-replay")){var e=M.default.render(k,{});this.FP=new y.default(e,(function(){i.$b.publish(E.RELATED_ITEM_CLICK,t.id,-1,!1,!1)})),this.jE&&this.jE.appendChild(e),this.BP=e}!this.SP&&n&&this.bP(),this.$b.publish(E.END_SCREEN_RENDERED),this.publish(D.UI_INTERACT,{srcElement:"es-view"})}}},i.prototype.dP=function(){this.BP&&this.jE&&(this.jE.removeChild(this.BP),this.BP=null),this.FP&&this.FP.destroy()},i.prototype.yP=function(t,i,n){if(!this.TP){var e=(i=i||this.WO())&&i.videoSession||"",r=i?i.thumbnail:null,s=r||"";this.TP=this.PD(g.ErrorScreen,t,n,e,s),this.publish(D.UI_INTERACT,{srcElement:"err-view-"+t.category+"-"+t.subcategory})}},i.prototype.EP=function(){this.eI&&this.eI.syncAriaState()},i.prototype.MD=function(t){t?W(this.SE).add("vp-muted"):W(this.SE).remove("vp-muted")},i.prototype.UD=function(){(!this.getFullscreen()||l.userAgent.android&&M.default.getFullscreenElement()===this.SE)&&this.toggleAdViewClickBlocking()},i.prototype.ZM=function(){var t;this.GD&&window.clearTimeout(this.GD),W(this.SE).remove("vp-hide-controls"),this.nP(!1),this.eP&&W(this.eP).remove("vp-overlay-hide-cursor"),this.vt.isSeeking()||this.vt.isPaused()||(this.GD=window.setTimeout(this.HD.bind(this),z)),null===(t=this.eI)||void 0===t||t.onControlsBarChange(!0),this.getFullscreen()||this.publish(D.CC_POSITION_FLOAT,!0)},i.prototype.iT=function(t){var i;"mouseout"===t.type&&(this.GD&&window.clearTimeout(this.GD),W(this.SE).add("vp-hide-controls"),!this.vt.isPaused()&&this.nP(!0),null===(i=this.eI)||void 0===i||i.onControlsBarChange(!1),this.getFullscreen()||this.publish(D.CC_POSITION_FLOAT,!1))},i.prototype.HD=function(){var t;this.eP=this.SE&&this.SE.querySelector(".vp-object-overlay"),this.GD&&(window.clearTimeout(this.GD),this.GD=null),l.userAgent.mobile&&this.eI&&S.default.canPlayInline&&this.rP.enableClickBlocking(!0),W(this.SE).add("vp-hide-controls"),!this.vt.isPaused()&&this.nP(!0),null===(t=this.eI)||void 0===t||t.onControlsBarChange(!1)},i.prototype.TD=function(){this.GD&&window.clearTimeout(this.GD),this.vt.isSeeking()||(this.GD=window.setTimeout(this.HD.bind(this),z))},i.prototype.Mw=function(t){var i,n=t.width||1,e=t.height||1,r=this.jD(n,e);(this.isStreamMode()||this.isMiniStreamMode())&&r===c.NORMAL&&this.zP(),l.userAgent.desktop&&(r===c.VERY_SMALL?W(this.SE).add("vp-ministream"):r===c.SMALL?(W(this.SE).add("vp-stream"),this.lw.detachUpNextMouseEvents(),(i=this.getContentNode().querySelector(".vp-upnext-playlist"))&&W(i).add("hide")):r===c.NORMAL&&(this.lw.attachUpNextMouseEvents(),(i=this.getContentNode().querySelector(".vp-upnext-playlist"))&&W(i).remove("hide")))},i.prototype.zP=function(){var t=this.getContentNode();W(t).remove("vp-ministream"),W(t).remove("vp-stream"),this.lw.attachUpNextMouseEvents();var i=this.getContentNode().querySelector(".vp-upnext-playlist");i&&W(i).remove("hide")},i.prototype.jD=function(t,i){var n=c.NORMAL;return(t<=h.VERY_SMALL_WIDTH||i<=h.VERY_SMALL_HEIGHT)&&(n=c.VERY_SMALL),(t<=h.SMALL_WIDTH&&t>h.VERY_SMALL_WIDTH||i<=h.SMALL_HEIGHT&&i>h.VERY_SMALL_HEIGHT)&&(n=c.SMALL),n},i.prototype.VP=function(t){this.publish(D.UI_INTERACT,t)},i.prototype.mP=function(t){var i=this.getContentNode(),n=B+this.gw.playbackMode,e=W(i);Object.keys(I.PlaybackMode).forEach((function(t){var i=B+I.PlaybackMode[t];e.contains(i)&&i!==n&&e.remove(i)})),e.contains(n)||e.add(n)},i.prototype.gP=function(){!this.vt.isPaused()?(this.SD(a.PLAYING,!0),this.SD(a.PAUSED,!1)):(this.SD(a.PLAYING,!1),this.SD(a.PAUSED,!0)),this.publish(D.SYNC_PLAYBACK_STATE)},i.prototype.xD=function(){var t=this,i=this.eI,n=i?i.create():null;n&&Object.keys(n).forEach((function(i){t.jE&&n[i]&&t.jE.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.VP(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.gw.state===j.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.tw.setQuality(i)}),this),i.on(p.ControlsEvent.CUSTOM_ELEMENT,(function(i,n){t.publish(D.CUSTOM_ELEMENT,i,n)}),this)},i.prototype.ZD=function(){var t=this,i=this.lw;i.on(N.PlaylistEvent.UI_INTERACT,(function(i){t.VP(i)}),this),i.on(N.PlaylistEvent.SCROLLED_TO_END,(function(){t.publish(D.SCROLLED_TO_END)}),this),i.on(N.PlaylistEvent.BOTTOM_HEIGHT_CHANGE,(function(i){t.publish(D.PLAYLIST_BOTTOM_HEIGHT_CHANGE,i)}),this)},i.prototype.xP=function(){var t=this,i=this.SP;i.on(g.StartScreenEvent.UI_INTERACT,(function(i){t.VP(i)}),this),i.on(g.StartScreenEvent.START_SCREEN_CLICK,(function(){t.publish(D.START_SCREEN_CLICK)}),this)},i.prototype.WO=function(){return this.vt.playlist.getCurrentItem()},i.prototype.pP=function(){this.tP&&this.tP.destroy()},Object.defineProperty(i.prototype,"gw",{get:function(){return this.vt.playbackState},enumerable:!1,configurable:!0}),i.prototype.PD=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.jE.appendChild(e.view.node),e},i.prototype.nP=function(t){if(this.iP&&this.eI){var i=this.iP.view.node,n=i.firstChild;if(t)return i.setAttribute("style","height: 100%;"),void(l.userAgent.mobile&&(W(n).add("vp-ads-overlay-disable-click"),W(n).remove("vp-ads-overlay-enable-click")));var e=0;this.isStreamMode()?e=G:this.isMiniStreamMode()?e=H:l.userAgent.mobile?(e=Y,W(n).remove("vp-ads-overlay-disable-click"),W(n).add("vp-ads-overlay-enable-click")):e=q;var r=this.getPlayerDimensions().height-e;i.setAttribute("style","height: "+r+"px;")}},i}(f.default);i.default=Q},2992: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 a=n(9088);i.Timer=a.default;var c=n(9306);i.TypeChecker=c;var h=n(1803);i.Utils=h.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(),a=n.context,c=n.responseTypeJson,h=n.withCookie,f=n.timeout||3e3,l=o.default.once(n.successHandler),v=o.default.once(n.failureHandler),d=!1,p=null,b={url:t,cors:e.userAgent.ie&&e.userAgent.ie<10||h,withCredentials:h,timeout:f,responseType:n.responseType,headers:n.headers,method:n.method,body:n.body,beforeSend:n.beforeSend};if(a&&l&&v){var m=(new Date).getTime(),g=(0,r.default)(b,(function(e,r,o){var h,b;if(!d){if(n.collectPerfData){if(p={},s.isFunction(g.getResponseHeader)&&(p.resp_len=g.getResponseHeader("Content-Length")||"na"),u.performance&&u.performance.getEntriesByName){var y=0===t.indexOf("http")?t:location.protocol+t;p.resourceTiming=u.performance.getEntriesByName(y).pop(),p.resourceTimingEntries=u.performance.getEntries()}p.http_code=r.statusCode}if(r.timeDiff=(new Date).getTime()-m,e){var _=null;s.isFunction(g.getResponseHeader)&&(_=g.getResponseHeader("Access-Control-Allow-Origin"));var w=u.location.protocol+"//"+u.location.host;if(_&&_!==w){var O=i.XHR_CORS+": originHeader ="+(_||"")+": myOrigin ="+w;v.call(a,new Error(O),"default","cors")}else{var E=r.timeDiff>=f?i.XHR_TIMEOUT:i.XHR_ERROR;v.call(a,new Error(E+": timeDiff ="+r.timeDiff),(null==r?void 0:r.previousState)||(null===(h=null==r?void 0:r.rawRequest)||void 0===h?void 0:h.previousState),r.statusCode,r.timeDiff,p,g)}}else r.statusCode<200||r.statusCode>=300?v.call(a,new Error(i.XHR_ERROR+": statusCode = "+r.statusCode),(null==r?void 0:r.previousState)||(null===(b=null==r?void 0:r.rawRequest)||void 0===b?void 0:b.previousState),r.statusCode,r.timeDiff,p,g):l.call(a,c?JSON.parse(o):o,!1,p,g)}}));g.previousState=g.readyState;var y=g.onreadystatechange;g.onreadystatechange=function(){4===g.readyState?y.call(g):g.previousState=g.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.GP=s>0?s:Number.POSITIVE_INFINITY,o.HP=0,o.running=!1,o.startTime=0,o.H=null,o.Y={},o.X={},e&&r&&o.addEventListener(i.TIMER_EVENT,e,r),o}return r(i,t),i.prototype.destroy=function(){this.reset(),this.Y={},t.prototype.removeEventListeners.call(this,this.X),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.X[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.X)},i.prototype.start=function(){var t=this;this.H||this.running||(this.H=window.setInterval((function(){t.HP++,t.HP>=t.GP&&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.H&&this.running&&(window.clearInterval(this.H),this.H=null,this.running=!1,this.startTime=0)},i.prototype.reset=function(){this.stop(),this.HP=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},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.YP={},this.qP=new Map,this.eA(i)}return t.prototype.destroy=function(){this.YP=null,this.qP.clear(),this.qP=null},t.prototype.eA=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.YP[t.seqNum]=t)},t.prototype.updateDateRanges=function(t){var i,n;if(t)try{for(var r=e(Object.keys(t)),s=r.next();!s.done;s=r.next()){var o=s.value,u=t[o],a=u.jsonData;u.clockOffset="urn:uplynk:content-data:watchtogether"===u.className&&a?1e3*a.latency_ts-u.startDate:NaN,this.qP.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.YP)),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.qP.values()),u=o.next();!u.done;u=o.next()){var a=u.value;a.startDate<=t+a.clockOffset&&(!a.endDate||a.endDate>t+a.clockOffset)&&s.push(a)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var c=this.WP(s,i);return(null==c?void 0:c.clockOffset)||NaN},t.prototype.WP=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,a,c=n(590),h=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"}(a=i.SynchEvents||(i.SynchEvents={}));var v=((r={})[h.SynchStrategy.SEEK]=0,r[h.SynchStrategy.PAUSE]=0,r[h.SynchStrategy.RATE_CHANGE]=0,r),d=function(t){function i(n,e){var r=t.call(this,"StreamSynch")||this;if(r.QP=["play","playing","seek","seeking","seeked","ended","error","timeupdate"],r.vn=o.DISABLED,r.ZP=v,r.$P=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.XP=n,r.ae(),r.vt=new c.default(n.id,e),r.XP.addEventListener("playing",(function(){var t;r.vt.pdt=r.XP.getStartDate&&(null===(t=r.XP.getStartDate())||void 0===t?void 0:t.getTime())||NaN}),{once:!0}),r.JP=new l.Timer(r.vt.config.syncThreshold,(function(){r.KP.synch(r.XP.currentTime)}),r),r.KP=new h.ClientSynchronizer(r.vt),r.tx(r.KP),h.WebSocketSynchronizer.canUse()&&(r.ix=new h.WebSocketSynchronizer(r.vt),r.tx(r.ix)),r}return s(i,t),i.canUse=function(){return h.default.canUse()&&h.ClientSynchronizer.canUse()},i.prototype.onSetSrc=function(){var t=this;this.vt.pdt=NaN,this.XP.addEventListener("playing",(function(){var i;t.vt.pdt=t.XP.getStartDate&&(null===(i=t.XP.getStartDate())||void 0===i?void 0:i.getTime())||NaN}),{once:!0})},i.prototype.destroy=function(){var i,n;this.Pn(u.DESTROY),null===(i=this.KP)||void 0===i||i.destroy(),null===(n=this.ix)||void 0===n||n.destroy(),this.ce(),this.vt.destroy(),this.JP.destroy(),t.prototype.destroy.call(this)},i.prototype.addSegmentInfo=function(t){t&&this.vt.addSegmentInfo(t)},i.prototype.updateDateRanges=function(t){t&&this.vt.updateDateRanges(t)},i.prototype.getSyncOffset=function(){var t;return(null===(t=this.ix)||void 0===t?void 0:t.syncOffset)||this.KP.syncOffset},i.prototype.startSync=function(){this.vn===o.DISABLED&&(this.vn=o.IDLE)},i.prototype.stopSync=function(){this.vn!==o.DISABLED&&(this.Pn(u.STOP_API),this.vn=o.DISABLED)},i.prototype.getSyncState=function(){return this.vn},i.prototype.ae=function(){var t=this;this.zi=this.mM.bind(this),this.QP.forEach((function(i){t.XP.addEventListener(i,t.zi)}))},i.prototype.ce=function(){var t=this;this.QP.forEach((function(i){t.XP.removeEventListener(i,t.zi)}))},i.prototype.mM=function(t){if(this.vn!==o.DISABLED)switch(t.type){case"timeupdate":var i=t.target.currentTime;if(this.ix)return void this.ix.synch(i);this.KP.synch(i);break;case"seeked":this.Pn(u.IN_SYNC)}},i.prototype.tx=function(t){var i=this;t.on(h.SynchronizerEvents.SEEK,this.nx,this),t.on(h.SynchronizerEvents.PAUSE,this.sx,this),t.on(h.SynchronizerEvents.RATE_CHANGE,this.ox,this),t.on(h.SynchronizerEvents.INVALID_OFFSET,this.ux,this),t.on(h.SynchronizerEvents.DRIFTING,this.hx,this),t.on(h.SynchronizerEvents.IN_SYNCH,(function(){i.Pn(u.IN_SYNC),i.lx("in synch")}),this)},i.prototype.nx=function(t){this.Ns()&&(this.vx(o.SYNCHING_SEEK,t),this.XP.currentTime=t.targetPosition,this.lx("synch action: seek to"+t.targetPosition))},i.prototype.sx=function(t){this.Ns()&&(this.vx(o.SYNCHING_PAUSE,t),this.XP.pause(),this.JP.start(),this.lx("synch action: pause"))},i.prototype.ox=function(t){this.Ns()&&(this.vx(o.SYNCHING_RATE_CHANGE,t),this.XP.playbackRate=t.playbackRate,this.lx("synch action: change playback rate to"+t.playbackRate))},i.prototype.ux=function(){this.Pn(u.INVALID_OFFSET),this.lx("invalid offset")},i.prototype.hx=function(){this.Pn(u.SYNC_DRIFT),this.lx("drifting")},i.prototype.vx=function(t,i){this.vn=t,this.$P||(this.$P=Date.now()),this.ZP[i.strategy]++,this.publish(a.SYNCH_STRATEGY_APPLIED,i)},i.prototype.Pn=function(t){if(this.vn!==o.DISABLED&&this.vn!==o.IDLE){this.vn===o.SYNCHING_PAUSE?(this.JP.stop(),this.XP.play()):this.vn===o.SYNCHING_RATE_CHANGE&&(this.XP.playbackRate=1);var i={syncMode:"client",syncSource:"sapi",syncDuration:Date.now()-this.$P,strategies:this.ZP,cause:t};this.vn=o.IDLE,this.$P=0,this.ZP=v,this.publish(a.SYNCH_COMPLETE,i),this.lx("synch completed")}},i.prototype.Ns=function(){return this.vn===o.IDLE},i.prototype.lx=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 a,c=.2;!function(t){t.RATE_CHANGE="rateChange",t.PAUSE="pause",t.SEEK="seek"}(a=i.SynchStrategy||(i.SynchStrategy={}));var h=function(t){function i(i){var n=t.call(this,"Synchronizer")||this;return n.vt=i,n}return r(i,t),i.canUse=function(){return!0},Object.defineProperty(i.prototype,"syncOffset",{get:function(){return NaN},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(o.default);i.default=h;var f=function(t){function i(i){var n=t.call(this,i)||this;return n.mx=NaN,n.gx=NaN,n}return r(i,t),i.canUse=function(){return!0},Object.defineProperty(i.prototype,"syncOffset",{get:function(){return this.mx},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.synch=function(t){if(!(t<0)){var i=this.vt.getCurrentFramePdt(t),n=Date.now()-(i+this.vt.getClockOffset(i,u.userAgent)),e=this.vt.config.syncPoint;if(this.mx=e-n,this.yx(this.mx))return this.gx=NaN,void this.publish(s.DRIFTING);this.gx=this.mx;var r={syncMode:"client",targetLatency:e,liveLatency:n,syncSource:"sapi",targetPosition:t-this.mx/1e3,syncDuration:0,playbackRate:1,synchOffset:this.mx},o=u.userAgent.firefox?this.vt.config.ffSyncThreshold:this.vt.config.syncThreshold;if(Math.abs(this.mx)<o)this.publish(s.IN_SYNCH);else if(isNaN(this.mx))this.publish(s.INVALID_OFFSET);else{if(-this.syncOffset>1e4)return r.strategy=a.SEEK,void this.publish(s.SEEK,r);var h=this.mx>0?.8:1.2;if(r.playbackRate=h,this.mx>0)this.vt.config.pauseOnAhead||u.userAgent.firefox?(r.syncDuration=this.mx,r.playbackRate=0,r.strategy=a.PAUSE,this.publish(s.PAUSE,r)):(r.strategy=a.RATE_CHANGE,r.syncDuration=this.mx/c,this.publish(s.RATE_CHANGE,r));else{if(u.userAgent.ios&&Math.abs(this.mx)<1e3)return;u.userAgent.firefox||u.userAgent.ios?(r.strategy=a.SEEK,this.publish(s.SEEK,r)):(r.strategy=a.RATE_CHANGE,r.syncDuration=this.mx/c,this.publish(s.RATE_CHANGE,r))}}}},i.prototype.yx=function(t){return Math.abs(t)>this.vt.config.syncThreshold&&Math.abs(this.gx)>this.vt.config.syncThreshold&&Math.abs(this.gx)<Math.abs(t)},i}(h);i.ClientSynchronizer=f;var l=function(t){function i(i){var n=t.call(this,i)||this;return n.mx=NaN,n}return r(i,t),i.canUse=function(){return!1},Object.defineProperty(i.prototype,"syncOffset",{get:function(){return this.mx},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.synch=function(t){},i}(h);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},5251: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)}},5667:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2992),r=n(5251),s=function(){function t(){this.name="ProviderBrandingPlugin",this.version="8.3.119-pr961.b39167247",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._x(t);return n?(i.innerHTML=n,i.children[0]):null},t.prototype._x=function(t){var i=t&&t.branding&&t.branding.providerId,e=i&&r.PROVIDER_BRANDING_TEMPLATES[i];return this.wx(t)?(n(859),e.render()):null},t.prototype.wx=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},8287:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e,r=n(2884);(e=window.crypto||window.msCrypto)||("undefined"!=typeof crypto?e=crypto:"undefined"!=typeof msCrypto&&(e=msCrypto)),e=e&&(e.subtle||e.webkitSubtle)||null;var s={name:"HMAC",hash:{name:"SHA-1"}},o=function(t){for(var i=unescape(encodeURIComponent(t)),n=new ArrayBuffer(i.length),e=new Uint8Array(n),r=0;r<i.length;r++)e[r]=i.charCodeAt(r);return e},u=function(t,i){return new Promise((function(n,r){e&&e.importKey||r(new Error("crypto is not supported by the current browser")),e.importKey("raw",o(i),s,!1,["sign","verify"]).then((function(i){return e.sign(i.algorithm,i,o(t))})).then((function(t){var i;n((i=t,String.fromCharCode.apply(null,Array.prototype.slice.call(new Uint8Array(i)))))})).catch((function(t){r(t)}))}))},a=function(){function t(){}return t.getXAuthParams=function(t,i){var n,e={},s=(new Date).getTime(),o=Math.random().toString(36).slice(2,12),a="",c=1,h=r.default.getSingleton("PlayerHosting");if(h&&(c=h.gv||1,n=h.g||[],Array.isArray(n))){for(var f=[],l=0,v=n;l<v.length;l++){var d=v[l];f.push(String.fromCharCode(d))}a=f.join("")}var p="dev_id="+i+"&nonce="+o+"&ts="+s+"&uuid="+t+"&v="+c;return new Promise((function(t,n){u(p,a).then((function(n){var r=btoa(n);e.xauth_v=c,e.xauth_ts=s,e.xauth_nonce=o,e.xauth_dev_id=i,e.xauth_signature=r,t(e)})).catch((function(t){n({})}))}))},t}();i.default=a},6197:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_MEDIA_ITEM_META=i.DEFAULT_HEIGHT=i.DEFAULT_WIDTH=i.ADPLUGIN_MAPPING=i.DEFAULT_AD_SYSTEM_VERSION=i.DEFAULT_AD_SYSTEM=void 0;var e=n(7673),r=n(9451),s=n(2992),o=n(3872),u=n(3801),a=n(2884),c=n(179),h=n(5251),f=n(8287),l=n(8806),v=n(3872);i.DEFAULT_AD_SYSTEM="vrm",i.DEFAULT_AD_SYSTEM_VERSION="2",i.ADPLUGIN_MAPPING={"adplugin/vrm":"adplugin/martini"};var d=3e3,p=4e3;i.DEFAULT_WIDTH=640,i.DEFAULT_HEIGHT=360,i.DEFAULT_MEDIA_ITEM_META={title:"",description:"",thumbnail:"",posterUrl:"",duration:0,viewCount:NaN,shareUrl:"",liveState:"",liveLabel:"always",pip:!0,syncPoint:NaN};var b=function(){function t(t){this.sy=!1,this.vt=t;var i=this.vt.config&&this.vt.config.CMS;this.Ox=i&&i.host||l.default.getEnv(i&&i.env||""),o.Loader.preconnect("preconnect-sapi","//"+this.Ox)}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 a="",h=this.Ex(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.sy){var r=i[0],h=void 0,f=i[2],l=i[3];try{h=JSON.parse(r),f.instrument=h.query&&h.query.results&&h.query.results.instrument?JSON.stringify(h.query.results.instrument):"none"}catch(t){}e.onApiCallInfo({perfObj:f,url:a}),s.jx(t,l,r,(function(t,i){if(!t&&i&&i.length){for(var n=0,r=i;n<r.length;n++){var a=(r[n].customConfig||{}).mediaItemStatus||{},h=parseInt(a.code,10);if(!isNaN(h)&&h>100){var f="",l=null,v=null;return s.Sx(o.errorCodes.INFO_CODES,a.code)&&(l=o.errorCodes.E_INFO),s.Ax(l,a.code)&&(v="R"),a.code===o.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE&&(f=u.default.ERR_RESTRICTED_NETWORK_TYPE),a.code===o.errorCodes.SAPI_CODES.E_UNSUPPORTED_FORMAT&&(v="S",l=o.errorCodes.E_SAPI_STREAM),void s.Wf(v,l,a.code,f,e)}}e.onComplete(i)}else t=t||"",s.Wf(null,null,c.getErrorCode(),t,e)}))}},v=function t(i,n,r,o,u){if(!s.sy)if(0!==f&&a)f--,s.Mx(a,l,t);else{e.onApiCallInfo({perfObj:u||{},url:a});var h=i.message+"; "+a+"; "+n+"; "+r;s.Wf(null,null,c.getErrorCode(i,n,r),h,e)}};h.then((function(t){a=t,s.Mx(a,l,v)})).catch((function(){v.apply(s)}))}},t.prototype.cancel=function(){this.sy=!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.Tx(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.Mx=function(t,i,n){var e=d;r.userAgent.mobile&&!r.userAgent.ios&&(e=p),o.Loader.ajax(t,{context:this,successHandler:i,failureHandler:n,collectPerfData:!0,withCookie:!0,timeout:e})},t.prototype.Tx=function(t,n,e){var r=this;void 0===e&&(e=!0);var s=n.meta||{},u=n.streams||[],a=n.license||{},c=t.metadata||{},f=n.metrics||{},l=t.customConfig||{},d=v.Utils.sanitizeAndUnescape(s.description,!1);if(c.title=s.title||d,c.description=d,c.thumbnail=s.thumbnail,c.posterUrl=s.posterUrl,c.duration=s.duration,c.liveState=s.live_state||i.DEFAULT_MEDIA_ITEM_META.liveState,c.liveLabel=s.live_label||i.DEFAULT_MEDIA_ITEM_META.liveLabel,c.pip=o.TypeChecker.isBoolean(s.pip)?s.pip:i.DEFAULT_MEDIA_ITEM_META.pip,c.syncPoint=o.TypeChecker.isNumber(s.syncpoint)?s.syncpoint:i.DEFAULT_MEDIA_ITEM_META.syncPoint,c.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:f.comscore_cm5||"",beacons:f.beacons||[],ywa:f.ywa||[],comscore6:f.comscore6||"",pspId:f.pspid||"",plidl:f.plidl||"",isrc:f.isrc||"",mmActivityId:f.mmActivityId||"",mediametrie:f.mediametrie||""},t.customConfig.meta={instrument: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&&(c.title=c.title||i.DEFAULT_MEDIA_ITEM_META.title,c.description=c.description||i.DEFAULT_MEDIA_ITEM_META.description,c.thumbnail=c.thumbnail||i.DEFAULT_MEDIA_ITEM_META.thumbnail,c.posterUrl=c.posterUrl||i.DEFAULT_MEDIA_ITEM_META.posterUrl,c.duration=c.duration||i.DEFAULT_MEDIA_ITEM_META.duration,c.liveState=c.liveState||i.DEFAULT_MEDIA_ITEM_META.liveState,c.liveLabel=s.live_label||i.DEFAULT_MEDIA_ITEM_META.liveLabel),t.source={streams:u.map((function(t){return r.Nx(t)}))},c.type=this.Cl(t.source.streams),t.metadata=c,a){var p={};p.title=a.title,p.accountName=a.account_name,p.originatingProperty=a.originating_property,p.accountId=a.account_id,p.salesforceId=a.salesforce_id,p.isDrm=a.is_drm,t.license=p}if(t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/sapi"},t.visualSeekData.visualSeek=n.visualseek,s.provider&&(t.brandingData=t.brandingData||{branding:{}},s.provider.provider_id&&h.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/martini"};else if(t.adConfig){var b=t.adConfig.mimetype;t.adConfig.mimetype=i.ADPLUGIN_MAPPING[b]||b}n.closedcaptions&&(t.closedCaptions=n.closedcaptions)},t.prototype.jx=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 a="";i&&o.TypeChecker.isFunction(i.getResponseHeader)&&(a=i.getResponseHeader("skt")),t.forEach((function(t){u.some((function(i,n){return!(!i||t.id!==i.id)&&(i.sktHeader=a,r.Tx(t,i),u.splice(n,1),!0)}))})),e(null,t)}catch(t){e(t.message)}},t.prototype.Wf=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.Sx=function(t,i){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]===i)return!0;return!1},t.prototype.Ax=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.Ex=function(t,n,u){var c=this,h=this.vt,f=t.map((function(t){return t.id})).join(","),l=u.rendererTypes,v=u.rendererCapabilities,d={},p={},b=u.privacyConsent,m=u.thumbnailDimensions,g=t[0].adConfig?1:0;!0===(null==n?void 0:n.disableAdFetch)&&(g=1);var y="//"+this.Ox+"/v1/video/sapi/streams/"+f;l&&l.forEach((function(t){var i=v[t],n=i.acceptedProtocols,e=i.preferredFormats;n.forEach((function(t){return d[t]=!0})),e.forEach((function(t){return p[t]=!0}))})),m&&m.width&&m.height||(m={width:i.DEFAULT_WIDTH,height:i.DEFAULT_HEIGHT});var _={srid:Math.floor(4294967295*Math.random()),protocol:Object.keys(d).join(","),format:Object.keys(p).join(","),rt:"html",devtype:this.getDeviceType(),offnetwork:!a.default.isOathDomain()&&!a.default.isAllowlistedDomain(),plid:h.guid,region:h.region||"US",site:h.site,expb:h.experienceBucket,expn:h.experienceName,bckt:a.default.getBckt(),lang:h.lang,width:m.width,height:m.height,resize:!0,ps:u.sessionId,autoplay:u.autoplay,image_sizes:"",excludePS:!0,isDockable:h.isDockable?"1":"0",acctid:h.yvapAccountId,synd:h.syndication,pspid:h.pspid,plidl:"",topic:h.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 w=null,O=0;O<t.length;O++){var E=t[O];if(E.mimetype===s.MediaItemInterfaces.MediaItemMimeType.SAPI&&E.customConfig&&E.customConfig["source-metadata-plugin"]&&o.TypeChecker.isObject(E.customConfig["source-metadata-plugin"].qs)){w=E.customConfig["source-metadata-plugin"].qs;break}}var j=a.default.getPageQueryString(),S=j.ad_debug,A=j.upet;S&&(_.ad_debug=S),A&&(_.upet=A),_.hlspre=!1,h.aspectRatio&&(_.aspectr=h.aspectRatio),b&&!o.TypeChecker.isNullOrUndefined(b.gdprApplies)&&(_.gdpr=!0===b.gdprApplies,_.iabconsent=b.gdprConsentData||""),b&&!o.TypeChecker.isNullOrUndefined(b.uspString)&&(_.usprv=b.uspString||""),h.pblob&&(_.pblob=h.pblob);var M=n.qs||{};if(w&&o.TypeChecker.isObject(w))for(var T in w)Object.prototype.hasOwnProperty.call(w,T)&&(null===w[T]?delete M[T]:M[T]=w[T]);return _=a.default.extend(M,_),new Promise((function(t,i){h.allowGeoRequest&&r.userAgent.mobile?c.Ix(f).then((function(i){var n=Object.assign({},_,i);t(y+"?"+e.stringify(n))})).catch((function(){t(y+"?"+e.stringify(_))})):t(y+"?"+e.stringify(_))}))},t.prototype.Nx=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.Ix=function(t){var i=this;return new Promise((function(n,e){f.default.getXAuthParams(t,i.getDeviceType()).then((function(t){var e=i.vt.geoData;if(e&&e.latitude&&e.longitude&&e.accuracy){var r=e.latitude+";"+e.longitude+" epu="+e.accuracy,s=Object.assign({},t,{"geo-position":r});n(s)}else n(t)})).catch((function(){e({})}))}))},t.prototype.Cl=function(t){return t.some((function(t){return t.live}))?s.MediaItemInterfaces.MediaItemType.LIVE_EVENT:s.MediaItemInterfaces.MediaItemType.VOD},t}();i.default=b},3652:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(7673),r=n(9451),s=n(2992),o=n(3872),u=n(2917),a=n(179),c=function(){function t(t){this.sy=!1,this.vt=t}return t.prototype.resolve=function(t,i,n){var e=this;if(this.vt.playlistId||this.vt.relatedVideoId){var r=2,s=this.Rx(t),o=function(t){e.sy||e.jx(t,(function(t,r){t||!r?(t=t||"",e.Wf(null,null,a.getErrorCode(),t,i,n)):(i.onComplete(r),n&&n())}))};this.Mx(s,o,(function t(u,c,h){if(!e.sy)if(r>0)r--,e.Mx(s,o,t);else{var f=u.message+"; "+s+"; "+c+"; "+h;e.Wf(null,null,a.getErrorCode(u,c,h),f,i,n)}}))}else setTimeout((function(){e.Wf(null,null,a.getErrorCode(),"No playlist and video id",i,n)}))},t.prototype.cancel=function(){this.sy=!0},t.prototype.Mx=function(t,i,n){o.Loader.ajax(t,{context:this,successHandler:i,failureHandler:n,withCookie:!0})},t.prototype.jx=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.Rx=function(t){var i=this.vt,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.Wf=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=c},8806: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},5969:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(7673),r=n(2992),s=n(3872),o=n(2917),u=n(2884),a=n(179),c=n(6197),h=n(8806),f=function(){function t(t){this.vt=t,this.name="SapiMetadataPlugin",this.version="8.3.119-pr961.b39167247",this.mimetype=r.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=r.Plugin.PluginType.METADATA,this.sy=!1,this.Lx="",this.Pc={};var i=this.vt.config&&this.vt.config.CMS;this.Ox=i&&i.host||h.default.getEnv(i&&i.env||""),this.Cx=new c.default(this.vt),s.Loader.preconnect("preconnect-sapi","//"+this.Ox)}return t.prototype.prepare=function(t){void 0===t&&(t={}),this.Pc=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.Cx.parseMediaItemsResponse(t),Array.isArray(t)&&t.every(this.hy))setTimeout((function(){n.onComplete(t)}));else{var o=this.Pc.qs||{};this.kx(t,o,i,n)}else this.Wf("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.sy=!0},t.prototype.destroy=function(){this.cancel()},t.prototype.kx=function(t,i,n,e){var r=this,s=this.Dx(t,i,n),o=2,u=function(i){r.sy||r.jx(t,i,(function(t,i){t||!i?(t=t||"",r.Wf(null,null,a.getErrorCode(),t,e)):e.onComplete(i)}))};this.Mx(s,u,(function t(i,n,c){if(!r.sy)if(o>0)o--,r.Mx(s,u,t);else{var h=i.message+"; "+s+"; "+n+"; "+c;r.Wf(null,null,a.getErrorCode(i,n,c),h,e)}}))},t.prototype.Mx=function(t,i,n){s.Loader.ajax(t,{context:this,successHandler:i,failureHandler:n,withCookie:!0})},t.prototype.Dx=function(t,i,n){var r=t.map((function(t){return t.id})).join(","),s=n.thumbnailDimensions;s&&s.width&&s.height||(s={width:c.DEFAULT_WIDTH,height:c.DEFAULT_HEIGHT}),this.Lx=s.width+"x"+s.height;var a=[this.Lx,o.PLAYLIST_THUMB_DIMENSION],h={dev_type:this.Cx.getDeviceType(),region:this.vt.region||"US",lang:this.vt.lang,site:this.vt.site,image_sizes:a.join(",")};return h=u.default.extend(i,h),"//"+this.Ox+"/v1/video/videos/"+r+"?"+e.stringify(h)},t.prototype.jx=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.Tx(t,i),s.splice(n,1),!0)}))})),n(null,t)}catch(t){n(t.message)}},t.prototype.Tx=function(t,i){var n={};n.title=i.title||i.description||c.DEFAULT_MEDIA_ITEM_META.title,n.description=i.description||c.DEFAULT_MEDIA_ITEM_META.description,n.duration=i.duration||c.DEFAULT_MEDIA_ITEM_META.duration,n.viewCount=i.view_count||c.DEFAULT_MEDIA_ITEM_META.viewCount,n.shareUrl=i.canonical_url||c.DEFAULT_MEDIA_ITEM_META.shareUrl,n.posterUrl=this.Px(i.thumbnails)||c.DEFAULT_MEDIA_ITEM_META.posterUrl,n.thumbnail=this.xx(i.thumbnails)||n.posterUrl||c.DEFAULT_MEDIA_ITEM_META.thumbnail,n.liveState=i.live_state||c.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.Wf=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.Px=function(t){var i=this;if(!t||0===t.length)return"";var n=t.filter((function(t){return t.tag===i.Lx})),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.xx=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.hy=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},8258:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2992),r=n(2917),s=n(9771),o=n(3652),u=function(){function t(t,i){this.name="SapiMoreItemsPlugin",this.version="8.3.119-pr961.b39167247",this.mimetype=e.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=e.Plugin.PluginType.MORE_ITEMS,this.qn=!1,this.Ux=null,this.vt=t,this.Ny=i,this.Fx=new o.default(this.vt)}return t.prototype.resolve=function(t,i){var n=this;if(!this.qn&&this.Bx(t))switch(t.playlistId=this.vt.playlistId,t.reason){case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE:case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR:new Promise((function(e){n.Fx.resolve(t,i,e)})).then((function(r){t.reason===e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR?n.Ux=new Promise((function(e){n.zx(t,i,e)})):n.Ux=Promise.resolve(),n.Ux.then((function(t){i.onPromisesResolved(!!r&&!!t)}))}));break;case e.Plugin.MoreItemsReason.CONTENT_LOAD_FINISHED:new Promise((function(e){n.Fx.resolve(t,i,e)})).then((function(t){i.onPromisesResolved(!!t)}));break;default:this.Fx.resolve(t,i)}},t.prototype.cancel=function(){this.Fx.cancel()},t.prototype.destroy=function(){this.cancel(),this.qn=!0},t.prototype.prepare=function(){},Object.defineProperty(t.prototype,"playlist",{set:function(t){this.Ny=t},enumerable:!1,configurable:!0}),t.prototype.Bx=function(t){var i;if(!this.Ny||this.vt.playlistMimetype===s.STRUCTURED_PLAYLIST_MIMETYPE)return!1;var n=this.Ny.getPosition()+1===this.Ny.getSize(),o=!(!this.vt.playlistId&&!this.vt.relatedVideoId),u=n&&this.vt.continuousPlay&&!this.vt.loop&&o,a=0===this.Ny.getPosition(),c=null===(i=this.vt.playlistUI)||void 0===i?void 0:i.show;switch(t.reason){case e.Plugin.MoreItemsReason.PLAYBACK_STARTED:return!(!c&&(c||a))&&u;case e.Plugin.MoreItemsReason.CONTENT_LOAD_FINISHED:case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE:return u;case e.Plugin.MoreItemsReason.PLAYLIST_COMPLETE_ON_ERROR:return u&&this.vt.skipOnError!==r.SkipOnError.NEVER;case e.Plugin.MoreItemsReason.SOURCE_LOAD_COMPLETE:var h=this.Ny;return!(this.vt.loop||!this.vt.videoRecommendations||!a||!c)&&h.getSize()-h.getPosition()<r.PLAYLIST_COUNT_PER_PAGE;case e.Plugin.MoreItemsReason.SCROLLED_TO_END:return this.vt.continuousPlay&&o;default:return!1}},t.prototype.zx=function(t,i,n){this.qn||(t.start=0,t.count=this.vt.playlistItemCount,t.playlistId="",this.Fx.resolve(t,i,n))},t}();i.default=u},765:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2992),r=n(6197),s=function(){function t(t){this.name="SapiSourcePlugin",this.version="8.3.119-pr961.b39167247",this.mimetype=e.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=e.Plugin.PluginType.SOURCE_METADATA,this.by=!1,this.wt=2,this.Pc={},this.Vx=!0,this.Cx=new r.default(t)}return t.prototype.prepare=function(t){void 0===t&&(t={}),this.Pc=t},t.prototype.resolve=function(t,i,n){var e;this.Cx.parseMediaItemsResponse(t),!(Array.isArray(t)&&t.every(this.Gx))||this.by||this.Vx?(e=this.by?0:this.wt,this.Cx.resolve(t,this.Pc,i,n,e)):t.length>0&&setTimeout((function(){n.onComplete(t)})),this.by=!1},t.prototype.recover=function(t,i,n){t&&(this.by=!0,this.resolve([t],i,n))},t.prototype.cancel=function(){this.Cx.cancel()},t.prototype.destroy=function(){this.cancel()},t.prototype.Gx=function(t){return!!(t&&t.source&&t.source.streams&&t.source.streams[0]&&t.source.streams[0].url)},t}();i.default=s},9771:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.STRUCTURED_PLAYLIST_MIMETYPE=void 0;var e=n(9451),r=n(2992),s=n(3872),o=n(2917),u=n(2884),a=n(6411);i.STRUCTURED_PLAYLIST_MIMETYPE="playlist/structured";var c=function(){function t(t){this.name="StructuredPlaylistPlugin",this.version="8.3.119-pr961.b39167247",this.mimetype=i.STRUCTURED_PLAYLIST_MIMETYPE,this.type=r.Plugin.PluginType.PLAYLIST,this.vt=t,this.Hx=null}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.create=function(t,i,e,r){var s=this.Ey(t,i),o=document.createElement("div");return this.Hx=e,o.innerHTML=a.render({items:s,strings:r}),n(7965),Array.prototype.slice.call(o.children)},t.prototype.onMediaItemEnded=function(t){var i=t.id,n=this.vt.isMediaItemWatched(i),e={id:t.id,position:t.duration,duration:t.duration};this.Yx(t)||(this.vt.watchHistory&&this.vt.watchHistory.saveProgress(e,!0),this.qx(i,n))},t.prototype.onMediaPlaybackProgress=function(t,i,n){var e=this.vt.isMediaItemWatched(t),r={id:t,position:i,duration:n};this.vt.watchHistory&&this.vt.watchHistory.saveProgress(r,!0),i%10==0&&this.qx(t,e)},t.prototype.Ey=function(t,i){var n=this,e=[];return i.forEach((function(i){if(!n.Yx(i)&&i&&i.metadata&&i.metadata.thumbnail){var r=n.Wx(i),s=!1;r&&e.push({sectionLabel:r,sectionLabelIcon:n.Qx(i),firstItemId:i.id}),n.vt.watchHistory&&n.vt.watchHistory.isWatched(i.id,i.metadata.duration||0)&&(n.vt.setMediaItemWatched(i.id,!0),s=!0),e.push({id:i.id,title:n.Sy(i.metadata.title),thumbnail:i.metadata.thumbnail,duration:n.jy(i.metadata.duration),provider:i.brandingData?n.Ay(t,i.brandingData):"",labelIcon:n.Zx(i),isItemWatched:s})}})),i.length>0&&this.$x(i)&&(this.vt.watchHistoryConfig.skipWatchedVideos=!1),e},t.prototype.jy=function(t){return t&&s.TypeChecker.isNumber(t)?u.default.formatTime(t):""},t.prototype.Sy=function(t){var i=e.userAgent.chrome>43;return t?t.length>40&&!i?t.substring(0,40)+"...":t:""},t.prototype.Ay=function(t,i){return t===o.PLAYLIST_POS.RIGHT&&i&&i.branding&&i.branding.providerName?i.branding.providerName:""},t.prototype.Zx=function(t){var i=t.customConfig&&t.customConfig.playlistConfig;return i&&i.label&&i.label.icons?this.Xx(i.label.icons,o.PLAYLIST_LABEL_ICON_DIMENSION):""},t.prototype.Wx=function(t){var i=t.customConfig&&t.customConfig.playlistConfig;return i&&i.section&&i.section.label||""},t.prototype.Qx=function(t){var i=t.customConfig&&t.customConfig.playlistConfig;return i&&i.section&&i.section.icons?this.Xx(i.section.icons,o.PLAYLIST_SECTION_ICON_DIMENSION):""},t.prototype.Xx=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.Yx=function(t){return!!(t.customConfig&&t.customConfig.playlistConfig&&t.customConfig.playlistConfig.is_bumper)},t.prototype.qx=function(t,i){var n='.vp-playlist-item[data-id="'+t+'"]',e=this.Hx&&this.Hx.querySelector(n);e&&(i?this.Jx(e):this.Kx(e))},t.prototype.Jx=function(t){var i=t.querySelector(".yvp-playlist-item-watched");i&&i.classList.add("yvp-show")},t.prototype.Kx=function(t){var i=t.querySelector(".yvp-playlist-item-watched");i&&i.classList.remove("yvp-show")},t.prototype.$x=function(t){var i=this;return t.every((function(t){if(!t||!t.metadata)return!1;if(i.Yx(t))return!0;var n=t.metadata&&t.metadata.duration;return i.vt.watchHistory&&i.vt.watchHistory.isWatched(t.id,n||0)||!1}))},t}();i.default=c},8205:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2992),r=function(){function t(){this.name="SapiVisualSeek",this.version="8.3.119-pr961.b39167247",this.type=e.Plugin.PluginType.VISUAL_SEEK,this.visualSeekType=e.Plugin.VisualSeekType.SPRITE,this.mimetype="visualseek/sapi",this.My={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this.My={}},t.prototype.canSeek=function(t){return t&&!(!this.My[t]||!this.My[t].visualSeek)||!1},t.prototype.update=function(t,i){var n=this.My[t]||{};n.visualSeek=i&&i.visualSeek||n.visualSeek,this.My[t]=n},t.prototype.getThumbnailData=function(t,i){var n=this.My[t]&&this.My[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.xx(n.images,e);return r?{index:e,isAd:!1,url:r,width:n.width,height:n.height}:null},t.prototype.xx=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},8898: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(2992),u=n(3872),a=n(2884),c=n(5859);!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 h=function(t){function i(i){var n=t.call(this,i)||this;return n.pageLatency="",n.mmActivityId="",n.s="",n._ex=c.HIDE_KEY,n._NOL=c.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=c.VRM_VERSION,n.tU="",n.iU="",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=a.default.getBckt(),n.loc=n.nU(),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=a.default.getPlayerType(),this.mmActivityId=n.customConfig&&n.customConfig.metrics&&n.customConfig.metrics.mmActivityId||this.mmActivityId,this.pl_type=i.getPlaylistType(n.playlistUIConfig)||this.pl_type,this.pl_uuid=n.playlistId||this.pl_uuid,this.pl_intr=this.eU(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.rU(n)||this.pl_sec,this.bx=a.default.getCookie("BX")||this.bx,this.ar=n.aspectRatio||this.ar,this._w=n.href||this._w,this._R=n.ref||this._R},i.prototype.getCommonParams=function(){var i=this,n=t.prototype.getCommonParams.call(this)||{};return c.PARAMS.forEach((function(t){i[t]!==c.HIDE_KEY&&(n[t]=i[t])})),n},Object.defineProperty(i.prototype,"jsdt",{get:function(){return""===this.iU&&(this.iU=i.getJSDownloadTime()),this.iU},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cssdt",{get:function(){if(""===this.tU){var t=a.default.getResourceLoadTime(/core-video-player\.css$/);this.tU=u.TypeChecker.isNumber(t)?Math.round(t).toString():"na"}return this.tU},enumerable:!1,configurable:!0}),i.getJSDownloadTime=function(){var t,i,n,e,r=null===(e=null===(n=null===(i=null===(t=a.default.getWindow().OATH)||void 0===t?void 0:t.VideoPlatform)||void 0===i?void 0:i.PlayerHosting)||void 0===n?void 0:n.req)||void 0===e?void 0:e.path,s=r&&r.split("/").pop().split("?")[0]||"oath-player.js",o=new RegExp(s),c=a.default.getResourceLoadTime(o);return u.TypeChecker.isNumber(c)?Math.round(c).toString():"na"},i.getPageLatency=function(){var t,i,n,e=a.default.getWindow();return(null===(i=null===(t=e.performance)||void 0===t?void 0:t.timing)||void 0===i?void 0:i.navigationStart)&&(n=(new Date).getTime()-e.performance.timing.navigationStart),n||""},i.getPlaylistType=function(t){var i=!0===(null==t?void 0:t.show)&&(null==t?void 0:t.position);return"right"!==i||(null==t?void 0:t.inStream)?i||c.PLAYLIST_POSITION.NONE:c.PLAYLIST_POSITION.HERO},i.prototype.nU=function(){var t=s.ON_PROP;return a.default.isOffNetwork()?t=s.EMBD_OFF_NET:a.default.isIframe()&&(t=s.EMBD_ON_NET),t},i.prototype.eU=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.rU=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=h},5854: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_INIT_BEACON=void 0;var s=n(7673),o=n(2992),u=n(2884),a=n(8898),c=n(3872);i.PLAYER_INIT_BEACON="p_init";var h="https://bats.video.yahoo.com/p",f="error",l=function(t){function i(i){return t.call(this,i)||this}return r(i,t),i.sendGenericBeacon=function(t){var i=h+"?"+s.encode(t,"&","=");i=i.replace(/[!'()]/g,escape).replace(/\*/g,"%2A"),u.default.sendImageBeacon(i)},i.prototype.Rg=function(i){this.sU(i),t.prototype.Rg.call(this,i)},i.prototype.Cg=function(i,n){if("ad_dlv"===(i.evt&&i.evt.toLowerCase()))this.sU(n);t.prototype.Cg.call(this,i,n)},i.prototype.Ug=function(t){return new a.default(t)},i.prototype.sU=function(t){t.pgltcy=this.vt.pageLatency&&this.vt.pageLatency.toString()||"na";var i=this.vt.mmActivityId;i&&(t.mm_activity_id=i)},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.119-pr961.b39167247",t:Math.random()};i.sendGenericBeacon(s),window.sentScriptLoadBeacon=!0}},i.sendPlayerInitBeacon=function(t,n){for(var e,r,s,c,h,f,l,v,d,p,b,m,g,y,_,w,O,E,j,S,A,M,T,N,I,R,L,C,k,D,P,x,U,F,B,z,V,G,H,Y,q,W,Q,Z,$,X,J,K=[],tt=2;tt<arguments.length;tt++)K[tt-2]=arguments[tt];var it=t.width,nt=t.height,et={_R:i.getR(t.rapidConfig),_V:"V",_w:i.getW(t.rapidConfig),bckt:u.default.getBckt()||"",evt:n,expb:t.expBucket||"",expn:t.expName||"",host:document.location.host||"",pls:t.playerId||"",s:t.pageSpaceId||t.rapidConfig&&t.rapidConfig.Spaceid||"1111",pver:K[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:a.default.getJSDownloadTime(),pgltcy:a.default.getPageLatency(),psz:it&&nt?it+"x"+nt:"",ccode:(null===(s=t.metrics)||void 0===s?void 0:s.ccode)||"",cpos:(null===(c=t.metrics)||void 0===c?void 0:c.cpos)||"",sec:(null===(f=null===(h=t.rapidConfig)||void 0===h?void 0:h.clickParams)||void 0===f?void 0:f.sec)||(null===(l=t.metrics)||void 0===l?void 0:l.sec)||"",pl_type:a.default.getPlaylistType(null===(v=t.ui)||void 0===v?void 0:v.playlist),pl_uuid:(null===(d=t.playlist)||void 0===d?void 0:d.id)||"",deos:!0===(null===(b=null===(p=t.ui)||void 0===p?void 0:p.docking)||void 0===b?void 0:b.enableOnScrollDown)?"1":"0",deom:!0===(null===(g=null===(m=t.ui)||void 0===m?void 0:m.docking)||void 0===g?void 0:g.enableOnMuted)?"1":"0",pt:(null===(_=null===(y=t.rapidConfig)||void 0===y?void 0:y.pageParams)||void 0===_?void 0:_.pt)||"",pd:(null===(O=null===(w=t.rapidConfig)||void 0===w?void 0:w.pageParams)||void 0===O?void 0:O.pd)||"",pct:(null===(j=null===(E=t.rapidConfig)||void 0===E?void 0:E.pageParams)||void 0===j?void 0:j.pct)||"",ver:(null===(A=null===(S=t.rapidConfig)||void 0===S?void 0:S.pageParams)||void 0===A?void 0:A.ver)||"",layout:(null===(T=null===(M=t.rapidConfig)||void 0===M?void 0:M.pageParams)||void 0===T?void 0:T.layout)||"",pstaid_p:(null===(I=null===(N=t.rapidConfig)||void 0===N?void 0:N.clickParams)||void 0===I?void 0:I.pstaid)||"",continuousPlay:!0===t.continuousPlay?"1":"0",loop:!0===t.loop?"1":"0",preload:!0===t.preload?"1":"0",ccOnMute:!0===t.ccOnMute?"1":"0",startTime:!0===(null===(R=t.playback)||void 0===R?void 0:R.startTime)?"1":"0",videoRecommendations:!0===t.videoRecommendations?"1":"0",disadf:!0===(null===(k=null===(C=null===(L=t.pluginConfigs)||void 0===L?void 0:L[o.Plugin.PluginType.SOURCE_METADATA])||void 0===C?void 0:C[o.MediaItemInterfaces.MediaItemMimeType.SAPI])||void 0===k?void 0:k.disableAdFetch)?"1":"0",dopl:(null===(x=null===(P=null===(D=t.ui)||void 0===D?void 0:D.docking)||void 0===P?void 0:P.position)||void 0===x?void 0:x.left)||"",dopr:(null===(B=null===(F=null===(U=t.ui)||void 0===U?void 0:U.docking)||void 0===F?void 0:F.position)||void 0===B?void 0:B.right)||"",dopt:(null===(G=null===(V=null===(z=t.ui)||void 0===z?void 0:z.docking)||void 0===V?void 0:V.position)||void 0===G?void 0:G.top)||"",dopb:(null===(q=null===(Y=null===(H=t.ui)||void 0===H?void 0:H.docking)||void 0===Y?void 0:Y.position)||void 0===q?void 0:q.bottom)||"",doth:(null===(Q=null===(W=t.ui)||void 0===W?void 0:W.docking)||void 0===Q?void 0:Q.threshold)||"",dow:(null===($=null===(Z=t.ui)||void 0===Z?void 0:Z.docking)||void 0===$?void 0:$.width)||"",doh:(null===(J=null===(X=t.ui)||void 0===X?void 0:X.docking)||void 0===J?void 0:J.height)||"",t:Math.random(),ts:Date.now()-K[1]};i.sendGenericBeacon(et)},i.sendInterventionReports=function(t,n){for(var e,r,l,v,d,p,b,m,g,y,_,w,O,E,j,S,A,M,T,N,I,R,L,C,k,D,P,x,U,F,B,z,V,G,H,Y,q,W,Q,Z,$,X,J,K,tt,it,nt,et={_R:i.getR(n.rapidConfig),_V:"V",_w:i.getW(n.rapidConfig),bckt:u.default.getBckt()||"",evt:f,ecode:c.errorCodes.E_AD_CLIENT+"-"+c.errorCodes.AD_CLIENT_CODES.E_INTERVENTION_FROM_PLAYER_FRAME,estring:"",s:n.pageSpaceId||n.rapidConfig&&n.rapidConfig.Spaceid||"1197809794",expn:n.expName||"",host:document.location.host||"",pver:"8.3.119-pr961.b39167247",pls:n.playerId||"",site:n.site||"",lang:n.lang||"",region:n.region||"",snd:!0===n.mute?"m":"um",endscreen:!0===(null===(r=null===(e=n.ui)||void 0===e?void 0:e.endScreen)||void 0===r?void 0:r.show)?"1":"0",jsdt:a.default.getJSDownloadTime(),pgltcy:a.default.getPageLatency(),psz:n.width&&n.height?n.width+"x"+n.height:"",ccode:(null===(l=n.metrics)||void 0===l?void 0:l.ccode)||"",cpos:(null===(v=n.metrics)||void 0===v?void 0:v.cpos)||"",sec:(null===(p=null===(d=n.rapidConfig)||void 0===d?void 0:d.clickParams)||void 0===p?void 0:p.sec)||(null===(b=n.metrics)||void 0===b?void 0:b.sec)||"",pl_type:a.default.getPlaylistType(null===(m=n.ui)||void 0===m?void 0:m.playlist),pl_uuid:(null===(g=n.playlist)||void 0===g?void 0:g.id)||"",deos:!0===(null===(_=null===(y=n.ui)||void 0===y?void 0:y.docking)||void 0===_?void 0:_.enableOnScrollDown)?"1":"0",deom:!0===(null===(O=null===(w=n.ui)||void 0===w?void 0:w.docking)||void 0===O?void 0:O.enableOnMuted)?"1":"0",pt:(null===(j=null===(E=n.rapidConfig)||void 0===E?void 0:E.pageParams)||void 0===j?void 0:j.pt)||"",pd:(null===(A=null===(S=n.rapidConfig)||void 0===S?void 0:S.pageParams)||void 0===A?void 0:A.pd)||"",pct:(null===(T=null===(M=n.rapidConfig)||void 0===M?void 0:M.pageParams)||void 0===T?void 0:T.pct)||"",ver:(null===(I=null===(N=n.rapidConfig)||void 0===N?void 0:N.pageParams)||void 0===I?void 0:I.ver)||"",layout:(null===(L=null===(R=n.rapidConfig)||void 0===R?void 0:R.pageParams)||void 0===L?void 0:L.layout)||"",pstaid_p:(null===(k=null===(C=n.rapidConfig)||void 0===C?void 0:C.clickParams)||void 0===k?void 0:k.pstaid)||"",continuousPlay:!0===n.continuousPlay?"1":"0",loop:!0===n.loop?"1":"0",preload:!0===n.preload?"1":"0",ccOnMute:!0===n.ccOnMute?"1":"0",startTime:!0===(null===(D=n.playback)||void 0===D?void 0:D.startTime)?"1":"0",videoRecommendations:!0===n.videoRecommendations?"1":"0",disadf:!0===(null===(U=null===(x=null===(P=n.pluginConfigs)||void 0===P?void 0:P[o.Plugin.PluginType.SOURCE_METADATA])||void 0===x?void 0:x[o.MediaItemInterfaces.MediaItemMimeType.SAPI])||void 0===U?void 0:U.disableAdFetch)?"1":"0",dopl:(null===(z=null===(B=null===(F=n.ui)||void 0===F?void 0:F.docking)||void 0===B?void 0:B.position)||void 0===z?void 0:z.left)||"",dopr:(null===(H=null===(G=null===(V=n.ui)||void 0===V?void 0:V.docking)||void 0===G?void 0:G.position)||void 0===H?void 0:H.right)||"",dopt:(null===(W=null===(q=null===(Y=n.ui)||void 0===Y?void 0:Y.docking)||void 0===q?void 0:q.position)||void 0===W?void 0:W.top)||"",dopb:(null===($=null===(Z=null===(Q=n.ui)||void 0===Q?void 0:Q.docking)||void 0===Z?void 0:Z.position)||void 0===$?void 0:$.bottom)||"",doth:(null===(J=null===(X=n.ui)||void 0===X?void 0:X.docking)||void 0===J?void 0:J.threshold)||"",dow:(null===(tt=null===(K=n.ui)||void 0===K?void 0:K.docking)||void 0===tt?void 0:tt.width)||"",doh:(null===(nt=null===(it=n.ui)||void 0===it?void 0:it.docking)||void 0===nt?void 0:nt.height)||"",t:Math.random()},rt=0,st=t;rt<st.length;rt++){var ot=st[rt];et.estring=JSON.stringify(ot),et.evt=/A\sfuture\sversion/.test(ot.body.message)?"warn":f;var ut=h+"?"+s.encode(et,"&","=");ut=ut.replace(/[!'()]/g,escape).replace(/\*/g,"%2A"),"HeavyAdIntervention"===ot.body.id&&navigator.sendBeacon(ut,JSON.stringify(ot))}},i.getW=function(t){var i,n,e=null===(n=null===(i=null==t?void 0:t.pageParams)||void 0===i?void 0:i._w)||void 0===n?void 0:n.trim(),r=document.location.href||"";return(null==e?void 0:e.length)>0?e:r},i.getR=function(t){var i,n,e=null===(n=null===(i=null==t?void 0:t.pageParams)||void 0===i?void 0:i._R)||void 0===n?void 0:n.trim(),r=document.referrer||"";return(null==e?void 0:e.length)>0?e:r},i}(o.Analytics.CoreAnalytics);i.default=l},4490:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2992),r=n(3872),s=n(2884),o=n(5859),u="Yahoo",a=function(){function t(t){this.vm=t,this.oU="",this.gdpr="",this.gdpr_consent="",this.uU=!1,t&&(r.Privacy.initIframeForGDPR(),this.Nm(),this.cU={},this.hU())}return t.prototype.destroy=function(){this.cU=null},t.prototype.Dm=function(){this.vm.addEventListener(e.Events.PLAYBACK_REQUEST,this.Aw,this),this.vm.addEventListener(e.Events.PLAYBACK_START,this.fU,this),this.vm.addEventListener(e.Events.PLAYBACK_RESUMED,this.lU,this),this.vm.addEventListener(e.Events.PLAYBACK_COMPLETE,this.vU,this),this.vm.addEventListener(e.Events.PLAYBACK_STOPPED,this.vU,this),this.vm.addEventListener(e.Events.PLAYBACK_STALLED,this.vU,this),this.vm.addEventListener(e.Events.PLAYBACK_BLOCKED,this.vU,this),this.vm.addEventListener(e.Events.PLAYBACK_PAUSE,this.dU,this),this.vm.addEventListener(e.Events.AD_PLAYBACK_STARTED,this.pU,this),this.vm.addEventListener(e.Events.AD_PLAYBACK_ENDED,this.bU,this)},t.prototype.hU=function(){var t,i=this,n="local"===this.vm.version?"/comscore-6.3.5.min.js":"https://assets.video.yahoo.net/oath/builds/"+this.vm.version+"/comscore-6.3.5.min.js";if(null===(t=window.ns_)||void 0===t?void 0:t.ReducedRequirementsStreamingAnalytics)this.mU();else{s.default.lazyLoad(n,(function(t){var n;t&&(null===(n=window.ns_)||void 0===n?void 0:n.ReducedRequirementsStreamingAnalytics)&&i.mU()}))}},t.prototype.mU=function(){this.gU(),this.Dm()},t.prototype.gU=function(){this.cU=new window.ns_.ReducedRequirementsStreamingAnalytics({publisherId:"27061346"})},t.prototype.Aw=function(){this.gU()},t.prototype.fU=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.yU(t,"meta"),a=this.yU(t,"license"),c=this.yU(t,"metrics"),h=t.videoLength,f="";if(f="na"!==h&&h>600?null==r?void 0:r.LongFormOnDemand:null==r?void 0:r.ShortFormOnDemand,t.isLive){var l=s.eventStart,v=s.eventEnd;h=""!==l&&""!==v?v-l:null,f=null==r?void 0:r.Live}var d={ns_st_ci:t.videoId,ns_st_cl:h&&"na"!==h?1e3*h:o.NUMBER_DEFAULT,ns_st_pr:(null==t?void 0:t.title)||o.NULL_DEFAULT,ns_st_ep:s.showName||a.title||o.NULL_DEFAULT,ns_st_ge:(null===(e=s.genre)||void 0===e?void 0:e.split(",")[0])||o.NULL_DEFAULT,ns_st_pu:u,ns_st_sn:o.NULL_DEFAULT,ns_st_en:o.NULL_DEFAULT,ns_st_ia:0,ns_st_ddt:o.NULL_DEFAULT,ns_st_tdt:o.NULL_DEFAULT,ns_st_st:u,ns_st_ce:0,c3:"yahoo",c4:t.comscoreC4||o.NULL_DEFAULT,c6:c.comscore6||o.NULL_DEFAULT,ca2:this._U(t,"CA2"),ca3:"yahoo",ca4:t.comscoreC4||o.NULL_DEFAULT,ca6:c.comscore6||o.NULL_DEFAULT},p=Object.assign({},d,this.wU());this.cU.playVideoContentPart(p,f)}},t.prototype.pU=function(t,i){var n,e;this.OU=t;var r=null===(e=null===(n=window.ns_)||void 0===n?void 0:n.ReducedRequirementsStreamingAnalytics)||void 0===e?void 0:e.AdType,s=t.offset,u=t.duration?1e3*t.duration:o.NUMBER_DEFAULT,a="";i.isLive?a=null==r?void 0:r.LinearLive:"post"===s?a=null==r?void 0:r.LinearOnDemandPostRoll:"pre"===s&&(a=null==r?void 0:r.LinearOnDemandPreRoll);var c={ns_st_cl:u,ca2:this._U(i,"CA2")},h=Object.assign({},c,this.wU());this.cU.playVideoAdvertisement(h,a),this.uU=!0},t.prototype.vU=function(t){"video"===(null==t?void 0:t.playbackMode)&&this.cU.stop()},t.prototype.bU=function(t,i){!0===this.uU&&(this.cU.stop(),this.uU=!1,this.OU=null)},t.prototype.lU=function(t,i){t&&i&&("video"===i.playbackMode&&this.fU(i),"ad"===i.playbackMode&&"background"===i.requestAction&&this.pU(this.OU,i))},t.prototype.dU=function(t){"video"===(null==t?void 0:t.playbackMode)&&this.vU(t),"ad"===(null==t?void 0:t.playbackMode)&&"background"===(null==t?void 0:t.requestAction)&&this.cU.stop()},t.prototype.wU=function(){return{cs_ucfr:this.oU,gdpr:this.gdpr,gdpr_consent:this.gdpr_consent}},t.prototype._U=function(t,i){var n,e,r,s,u=null===(e=null===(n=null==t?void 0:t.customConfig)||void 0===n?void 0:n.metrics)||void 0===e?void 0:e.beacons;if((null==u?void 0:u.length)>0){var a=u.filter((function(t){return"cs"===t.target}));if(null===(r=a[0])||void 0===r?void 0:r.data)a[0].data.split("&").forEach((function(t){-1!==t.indexOf(i)&&(s=t.split("=")[1])}))}return s||o.NULL_DEFAULT},t.prototype.yU=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.Nm=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.oU="0")):t.oU="0",!1===e&&n&&(t.oU=i.doNotSell?"0":"1")}))}))},t}();i.default=a},5859: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={}))},8164:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2992),r=n(2884),s=function(){function t(t){this.vm=t,this.vm&&this.vm.addEventListener(e.Events.PLAYBACK_START,this.EU,this)}return t.prototype.destroy=function(){this.vm=null},t.prototype.EU=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},2081:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(8364),r=n(2992),s=n(2884),o=function(){function t(t){this.vm=t,this.jU=!1,this.vm&&(this.SU=this.vm.addEventListener(r.Events.PLAYER_RENDERED,this.AU,this))}return t.prototype.destroy=function(){this.vm&&this.SU&&this.vm.removeEventListener(r.Events.PLAYER_RENDERED,this.SU),this.vm=null},t.prototype.AU=function(){var t=this,i=s.default.getWindow();"complete"!==i.document.readyState?i.addEventListener("load",(function(){t.MU()})):this.MU()},t.prototype.MU=function(){this.jU||(this.jU=!0,e.default.sendBeacon())},t}();i.default=o},2917:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MARTINI_PLUGIN_MIMETYPE=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",i.MARTINI_PLUGIN_MIMETYPE="adplugin/martini"},7758: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),a=n(2992),c=n(3872),h=n(5667),f=n(3652),l=n(5969),v=n(8258),d=n(765),p=n(9771),b=n(8205),m=n(5854),g=n(4490),y=n(8164),_=n(2081),w=n(2917),O=n(8762),E=n(2006),j=n(6905),S=n(2201),A=n(3801),M=n(8073),T=n(2884),N=n(3419),I=function(t){function i(i,n,e){var r=t.call(this,"OathController")||this;return r.JC=[],r.TU=null,r.NU=null,r.IU=null,r.Pc=i,r.W_=n,r.vm=e,r.vt=new E.default(i,n),r.Fx=new f.default(r.vt),r.Pc.analytics=!1,r.RU=r.LU(),r.CU=new m.default(r.vm),r.kU=new y.default(r.vm),r.DU=new _.default(r.vm),r.PU=new g.default(r.vm),r.ow=new N.default,r.RU.on(a.Events.MEDIA_ITEM_CURRENT,r.xU,r),r.RU.on(a.Events.PLAYBACK_PROGRESS,r.fm,r),r.UU(),r}return r(i,t),i.prototype.destroy=function(){var i;this.vt.destroy(),this.RU.destroy(),null===(i=this.CU)||void 0===i||i.destroy(),this.FU&&this.FU.destroy(),this.NU&&(this.NU.destroy(),this.NU=null),t.prototype.destroy.call(this)},i.prototype.initialize=function(){var t=this;this.RU.addMetricsEventListener((function(){for(var i,n,e,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var a=Array.prototype.slice.call(r,1,r.length-1),c=r[0],h=r[r.length-1],f=t.vt.getEventsDto();f.playerVersion=t.vm.version,f.playlistUIConfig=null===(e=null===(n=t.Pc)||void 0===n?void 0:n.ui)||void 0===e?void 0:e.playlist,(i=t.vm).publish.apply(i,o([c],a.concat(s(s({},h),f)))),t.BU(c,a)}),this),this.Dm(),this.zU(),this.RU.initialize()},i.prototype.render=function(t){this.RU.render(t)},i.prototype.getCurrentTime=function(){return this.RU.getCurrentTime()},i.prototype.getCurrentDate=function(){return this.RU.getCurrentDate()},i.prototype.getVolume=function(){return this.RU.getVolume()},i.prototype.getMediaStore=function(){return this.RU.getMediaStore()},i.prototype.getCurrentMediaItem=function(){return this.getPlaylist().getCurrentItem()},i.prototype.getPlaybackState=function(){return this.RU.getPlaybackState()},i.prototype.play=function(t,i){return this.RU.play(t,i)},i.prototype.pause=function(t){this.RU.pause(t)},i.prototype.preload=function(t){},i.prototype.seek=function(t){this.RU.seek(t)},i.prototype.disableControls=function(){this.RU.disableControls()},i.prototype.enableControls=function(){this.RU.enableControls()},i.prototype.enableCC=function(t){return this.RU.enableCC(t)},i.prototype.disableCC=function(){return this.RU.disableCC()},i.prototype.isPlayMode=function(){return this.RU.isPlayMode()},i.prototype.isLoading=function(){return this.RU.isLoading()},i.prototype.setFullscreen=function(t){this.RU.setFullscreen(t)},i.prototype.getFullscreen=function(){return this.RU.getFullscreen()},i.prototype.isAd=function(){return this.RU.isAd()},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),this.RU.setVolume(t,i)},i.prototype.setMute=function(t){this.RU.setMute(t)},i.prototype.getMute=function(){return this.RU.getMute()},i.prototype.setLoop=function(t){return this.RU.setLoop(t)},i.prototype.setContinuousPlay=function(t){return this.RU.setContinuousPlay(t)},i.prototype.resumeContinuousPlay=function(t){this.RU.resumeContinuousPlay()},i.prototype.setAudioLanguage=function(t){this.RU.setAudioLanguage(t)},i.prototype.isDocked=function(){return this.RU.isDocked()},i.prototype.setMediaItemTitle=function(t,i){return this.RU.setMediaItemTitle(t,i)},i.prototype.addCorePlayerListener=function(t,i){return this.RU.addEventListener(t,i,this.vm)},i.prototype.removeCorePlayerListener=function(t,i){return this.RU.removeEventListener(t,i)},i.prototype.getPlaybackStartDto=function(){return this.RU.getPlaybackStartDto()},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.RU.updateDockingConfig(t,i,n,e,r,s)},i.prototype.getPlaylist=function(){return this.RU.getPlaylist()},i.prototype.suspend=function(){var t=this.RU.suspendState();t&&(this.TU=t,this.VU())},i.prototype.resume=function(){this.TU&&(this.RU.resumeState(this.TU),this.zU(),this.RU.initialize(),this.RU.render(this.TU.selector),this.TU=null)},i.prototype.updateGeoConfig=function(t){this.vt.updateGeoConfig(t)},i.prototype.getVideoElement=function(){return this.RU.getVideoElement()},i.prototype.getRootElement=function(){return this.RU.getRootElement()},i.prototype.getSyncOffset=function(){return this.RU.__getSyncOffset()},i.prototype.startSync=function(){this.RU.startSync()},i.prototype.stopSync=function(){this.RU.stopSync()},i.prototype.isSuspended=function(){return this.RU&&this.RU.isSuspended()||!1},i.prototype.undockVideoPlayer=function(t){return this.RU&&this.RU.undockVideoPlayer(t)},i.prototype.addCustomControlElement=function(t){return this.RU.addCustomControlElement(t)},i.prototype.isRendered=function(){return this.RU&&this.RU.isRendered()||!1},Object.defineProperty(i.prototype,"guid",{get:function(){return this.RU&&this.RU.guid||""},enumerable:!1,configurable:!0}),i.prototype.getMediaItemMarkers=function(t){return this.RU.getMediaItemMarkers(t)},i.prototype.setError=function(t,i,n,e,r){this.RU.__setError(t,i,n,e,r)},i.prototype.setSapiOptions=function(t,i){this.vt.setSapiOptions(t,i)},i.prototype.LU=function(t){void 0===t&&(t=!0);var i=this.Pc.mediaItems;if(this.vt.playlistId&&(!i||0===i.length)){var n=this.GU();return this.HU(),n}return this.YU()},i.prototype.GU=function(){return this.RU?this.RU:(this.FU=new M.default,this.FU.getProxy())},i.prototype.YU=function(){this.qU();var t=new a.Player(this.Pc,this.W_);return this.vt.guid=t.guid,t},i.prototype.HU=function(){var t=this;if(this.FU&&this.Fx){var i={onComplete:function(i){t.FU&&(i&&(t.Pc.mediaItems=i),t.RU=t.YU(),t.FU.execute(t.RU),t.FU.destroy(),t.FU=void 0,t.vm.playlist=new S.default(t.getPlaylist()),t.JC.forEach((function(i){i.type===a.Plugin.PluginType.MORE_ITEMS&&(i.playlist=t.getPlaylist())})))},onError:function(){throw new Error("Fetch more items with playlistId failed")},onApiCallInfo:function(){},onPromisesResolved:function(){}};this.Fx.resolve({mimeType:a.MediaItemInterfaces.MediaItemMimeType.SAPI,playlistId:this.vt.playlistId,reason:a.Plugin.MoreItemsReason.PLAYLISTID_NEED_RESOLVE,start:0},i)}},i.prototype.Dm=function(){this.RU.on(a.Events.MEDIA_ITEM_METADATA,this.WU,this),this.RU.on(a.Events.PLAYBACK_STOPPED,this.aE,this),this.RU.on(a.Events.MEDIA_ITEM_COMPLETE,this.aE,this),this.RU.once("opssVisibilityChanged",this.QU,this),this.RU.once("playlistBottomHeightChange",this.ZU,this)},i.prototype.fm=function(t,i,n){this.vt.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE&&this.IU&&this.IU.onMediaPlaybackProgress(t,i,n)},i.prototype.xU=function(t){if(this.vt.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE){var i=this.vt.isMediaItemWatched(t.id),n=this.vt.watchHistoryConfig&&this.vt.watchHistoryConfig.enabled&&this.vt.watchHistoryConfig.skipWatchedVideos;if(i&&n){var e=this.getPlaylist().getPosition();this.getPlaylist().setPosition(e+1)}}},i.prototype.WU=function(t,i){this.NU&&(this.NU.destroy(),this.NU=null),t.customConfig&&t.customConfig.allowedConnectionTypes&&(this.NU=new j.default(this.vt,t.rawItemData),this.$U())},i.prototype.aE=function(t){this.NU&&(this.NU.destroy(),this.NU=null),this.vt.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE&&this.IU&&this.IU.onMediaItemEnded(t)},i.prototype.UU=function(){this.vt.videoRecommendations&&(this.setContinuousPlay(!0),this.vt.continuousPlay=!0)},i.prototype.QU=function(t,i){var n=this.getCurrentMediaItem(),e=n&&n.license,r={version:this.vm.version,config:this.vm.oathConfig,lmsId:e&&e.salesforceId||""};this.ow.updateOathPlayerOpss(t,i,r)},i.prototype.ZU=function(t){var i;(null===(i=this.Pc)||void 0===i?void 0:i.iframeRender)&&this.vm.iframeController&&this.vm.iframeController.onPlaylistDimensionChange(t)},i.prototype.$U=function(t){var i=this;void 0===t&&(t=18e4),this.NU&&this.NU.scheduleVerification((function(t){t?i.$U():i.setError("info","R",c.errorCodes.E_PLAYER,c.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE,A.default.ERR_RESTRICTED_NETWORK_TYPE)}),t)},i.prototype.zU=function(){var t=this;this.IU=new p.default(this.vt),this.JC.push(new h.default),this.JC.push(new l.default(this.vt)),this.JC.push(new d.default(this.vt)),this.JC.push(new v.default(this.vt,this.getPlaylist())),this.JC.push(new b.default),this.JC.push(this.IU),this.JC.forEach((function(i){t.RU.registerPlugin(i)}))},i.prototype.VU=function(){this.JC.forEach((function(t){t.destroy()})),this.JC=[]},i.prototype.BU=function(t,i){var n,e,r,s;switch(i=i||[],t){case a.Events.AD_PLAYBACK_STARTED:r=i[0]&&i[0].id||"",this.vm.publish(O.API.AD_PLAYBACK_START,r);break;case a.Events.AD_PLAYBACK_ENDED:r=i[0]&&i[0].id||"",this.vm.publish(O.API.AD_PLAYBACK_STOP,r);break;case a.Events.PLAYBACK_START:(n=this.vm).publish.apply(n,o([O.API.PLAYBACK_STARTED],i));break;case a.Events.PLAYBACK_RESUMED:(s=this.RU.getCurrentAdBreakItem())&&this.vm.publish(O.API.AD_PLAYBACK_RESUME,s.id);break;case a.Events.PLAYBACK_PAUSE:(s=this.RU.getCurrentAdBreakItem())&&this.vm.publish(O.API.AD_PLAYBACK_PAUSE);break;case a.Events.PLAYBACK_COMPLETE:(e=this.vm).publish.apply(e,o([O.API.PLAYBACK_ENDED],i))}},i.prototype.qU=function(){var t,i,n=((t={})[w.MARTINI_PLUGIN_MIMETYPE]={playerBucket:T.default.getBckt(),experienceName:this.vt.experienceName,experienceBucket:this.vt.experienceBucket,playerName:"UnifiedPlayer"},t),e=((i={})[a.Plugin.PluginType.AD]=n,i);this.Pc.pluginConfigs=T.default.extend(e,this.Pc.pluginConfigs)},i}(u.default);i.default=I},4351:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2917),r=function(){function t(t){this.un=t}return t.prototype.play=function(t,i){this.un.play(t,i)},t.prototype.pause=function(t){this.un.pause(t)},t.prototype.preload=function(t){this.un.preload(t)},t.prototype.seek=function(t){this.un.seek(t)},t.prototype.disableControls=function(){this.un.disableControls()},t.prototype.enableControls=function(){this.un.enableControls()},t.prototype.enableCC=function(t){this.un.enableCC(t)},t.prototype.disableCC=function(){this.un.disableCC()},t.prototype.isPlaying=function(){return this.un.isPlayMode()},t.prototype.isPlayMode=function(){return this.un.isPlayMode()},t.prototype.getPlaybackState=function(){return this.un.getPlaybackState()},t.prototype.isLoading=function(){return this.un.isLoading()},t.prototype.getDuration=function(){var t=this.un.getCurrentMediaItem();return t&&t.duration},t.prototype.getCurrentTime=function(){return this.un.getCurrentTime()},t.prototype.getTimeRemaining=function(){return this.getDuration()-this.getCurrentTime()},t.prototype.setFullscreen=function(t){this.un.setFullscreen(t)},t.prototype.getFullscreen=function(){return this.un.getFullscreen()},t.prototype.setVolume=function(t,i){void 0===i&&(i=!1),t=(t=t<0?0:t)>1?1:t,this.un.setVolume(t,i)},t.prototype.getVolume=function(){return this.un.getVolume()},t.prototype.setMute=function(t){this.un.setMute(t)},t.prototype.getMute=function(){return this.un.getMute()},t.prototype.setLoop=function(t){this.un.setLoop(t)},t.prototype.setContinuousPlay=function(t){this.un.setContinuousPlay(t)},t.prototype.resumeContinuousPlay=function(){this.un.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.un.getCurrentDate()},t.prototype.setAudioLanguage=function(t){this.un.setAudioLanguage(t)},t}();i.default=r},8762: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={}))},7254: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(9237),o=n(1409),u=n(4351),a=n(2201),c=function(t){function i(i){var n=t.call(this,"IframeBridge")||this;return n.eI=new u.default({}),n.Ny=new a.default({}),n.XU=new s.default(i,n),n}return r(i,t),i.prototype.render=function(t){return this.XU.constructIframe(t),this.XU.routeControlsApiToIframe(),this},i.prototype.play=function(t,i){this.eI.play(t,i)},i.prototype.pause=function(t){this.eI.pause(t)},i.prototype.mute=function(){this.eI.setMute(!0)},i.prototype.unMute=function(){this.eI.setMute(!1)},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),this.eI.setVolume(t,i)},i.prototype.seek=function(t){this.eI.seek(t)},Object.defineProperty(i.prototype,"iframeController",{get:function(){return this.XU},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"controls",{get:function(){return this.eI},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"playlist",{get:function(){return this.Ny},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){t.prototype.destroy.call(this),this.XU.destroy()},i}(o.default);i.default=c},9237:function(t,i,n){"use strict";var e,r=n(8),s=this&&this.__extends||(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},e(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(i,"__esModule",{value:!0}),i.MessageType=void 0;var o=n(1409),u=n(2884),a=n(3872);i.MessageType={EVENT:"EVENT",CLEAR_IFRAME_NAME:"CLEAR_IFRAME_NAME",PLAYER_DIMENSION_CHANGE:"PLAYER_DIMENSION_CHANGE"};var c=function(t){function n(i,n){var e=t.call(this,"IframeController")||this;return e.JU={isPlaying:null,getPlaybackState:null,getDuration:null,getCurrentTime:null,getTimeRemaining:null,getFullscreen:null,getVolume:null,getMute:null},e.KU={getCurrentItemTitle:null,getCurrentItemDescription:null,getCurrentItemProviderName:null,getCurrentItemLiveStatus:null},e.tF="VID-"+Math.floor(1e3*Math.random()),e.iF=JSON.parse(JSON.stringify(i)),e.vm=n,e.Nb=null,e.nF=null,e.eF=Date.now(),e.wm=!1,e.rF=null,e.sF=null,e.oF="https://s.yimg.com",i.insideIframeConfig||(e.rF=e.uF.bind(e),window.addEventListener("message",e.rF,!1)),e}return s(n,t),n.prototype.destroy=function(){this.rF&&window.removeEventListener("message",this.rF,!1),this.sF&&window.removeEventListener("message",this.sF,!1),this.rF=null,this.sF=null,t.prototype.destroy.call(this)},n.prototype.constructIframe=function(t){var i,n,e,r,s=this,o=u.default.getWindow(),c=a.TypeChecker.isString(t)?document.querySelector(t):t;if(null!==c){this.nF=c,this.iF.insideIframeConfig={startTime:this.eF,iframeVID:this.tF,parentURL:o.location.protocol+"//"+o.location.host},this.iF.playerJSPath=(null===(r=null===(e=null===(n=null===(i=window.OATH)||void 0===i?void 0:i.VideoPlatform)||void 0===n?void 0:n.PlayerHosting)||void 0===e?void 0:e.req)||void 0===r?void 0:r.path)||"";var h=document.createElement("iframe"),f=encodeURIComponent(JSON.stringify(this.iF)),l=this.oF+"/rx/up/builds/8.3.119-pr961.b39167247/ifcp.html";h.setAttribute("src",l),h.setAttribute("name",f),h.setAttribute("id",this.tF),h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.setAttribute("frameBorder","0"),h.setAttribute("allowFullScreen",""),h.setAttribute("allow","autoplay; fullscreen; encrypted-media"),h.setAttribute("title","iframe"),h.setAttribute("aria-label","iframe"),c&&c.appendChild(h),this.Nb=h,this.Nb.onload=function(){s.wm=!0}}else this.vm.__setError("error","C",a.errorCodes.E_PLAYER,a.errorCodes.PLAYER_CODES.E_INVALID_CONFIG,"Invalid DOM node or CSS selector specified. Cannot render player.")},n.prototype.routeControlsApiToIframe=function(){var t=this,i="controls",n="playlist",e=["addItems","addItem","setPositionById","setPosition","removeItem","removeItems","removeItemById","removeItemsById"],r=["getCurrentItemTitle","getCurrentItemDescription","getCurrentItemProviderName","getCurrentItemLiveStatus"],s=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.aF(i,n,e)}},o=function(i){return function(){return t.JU[i]}},u=function(i){return-1!==e.indexOf(i)?function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.aF(n,i,e)}:-1!==r.indexOf(i)?function(){return t.KU[i]}:function(){throw new Error("playlist API "+i+" is not supported when safe frame is enabled")}};for(var c in this.vm.controls)if(a.TypeChecker.isFunction(this.vm.controls[c])){if(void 0!==this.JU[c]){this.vm.controls[c]=o(c);continue}this.vm.controls[c]=s(c)}for(var h in this.vm.playlist)a.TypeChecker.isFunction(this.vm.playlist[h])&&(this.vm.playlist[h]=u(h));["getMediaStore","__setError","addCustomControlElement","getMediaItemMarkers","getInitTime","getPlaybackStartDto","updateGeoConfig","isRendered","isSuspended","resume","suspend","undockVideoPlayer","updateDockingConfig","getRootElement","getVideoElement","isLoading","setMediaItemTitle","isDocked","isPlayMode","isPlaying","removeAllMediaItems","setQueryString","getVolume","getCurrentDate","getCurrentTime"].forEach((function(i){var n;t.vm[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.vm.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.iF.insideIframeConfig.iframeVID),n.cF(JSON.stringify(t))}),this.vm)},n.prototype.sendClearIframeNameToPage=function(){var t=[i.MessageType.CLEAR_IFRAME_NAME,this.iF.insideIframeConfig.iframeVID];this.cF(JSON.stringify(t))},n.prototype.refreshControlsAPIData=function(){return{isPlaying:this.vm.controls.isPlaying(),getPlaybackState:this.vm.controls.getPlaybackState(),getDuration:this.vm.controls.getDuration(),getCurrentTime:this.vm.controls.getCurrentTime(),getTimeRemaining:this.vm.controls.getTimeRemaining(),getFullscreen:this.vm.controls.getFullscreen(),getVolume:this.vm.controls.getVolume(),getMute:this.vm.controls.getMute(),getCurrentItemTitle:this.vm.playlist.getCurrentItemTitle(),getCurrentItemDescription:this.vm.playlist.getCurrentItemDescription(),getCurrentItemProviderName:this.vm.playlist.getCurrentItemProviderName(),getCurrentItemLiveStatus:this.vm.playlist.getCurrentItemLiveStatus()}},n.prototype.setupIframeToPageCommunication=function(){this.sF=this.hF.bind(this),window.addEventListener("message",this.sF,!1);var t=window.OATH.VideoPlatform.Events;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.routeAPIeventToPage(i)},n.prototype.onPlaylistDimensionChange=function(t){if(a.TypeChecker.isObject(t)){var n=[t,i.MessageType.PLAYER_DIMENSION_CHANGE,this.iF.insideIframeConfig.iframeVID];this.cF(JSON.stringify(n))}},n.prototype.aF=function(){for(var t,i,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(this.Nb&&this.wm){var r=JSON.stringify(n);null===(i=null===(t=this.Nb)||void 0===t?void 0:t.contentWindow)||void 0===i||i.postMessage(r,this.oF)}},n.prototype.uF=function(t){var n,e,s=this,o=null,u={},c="",h=this.JU,f=this.KU;if(t.origin===this.oF){try{e=JSON.parse(t.data)}catch(t){return}if(e&&a.TypeChecker.isArray(e)&&e.length>=2){if(c=e.pop(),!a.TypeChecker.isString(c)||0!==c.indexOf("VID-"))return;if(this.tF!==c)return;if(!(o=e.pop())||!i.MessageType[o])return;switch(o){case i.MessageType.EVENT:u=e.pop(),Object.keys(u).forEach((function(t){Object.prototype.hasOwnProperty.call(s.JU,t)?h[t]=u[t]:Object.prototype.hasOwnProperty.call(s.KU,t)&&(f[t]=u[t])})),this.vm.iframeController&&(this.vm.iframeController.JU=h,this.vm.iframeController.KU=f),this.vm.publish.apply(this.vm,e);break;case i.MessageType.CLEAR_IFRAME_NAME:null===(n=this.Nb)||void 0===n||n.setAttribute("name","");break;case i.MessageType.PLAYER_DIMENSION_CHANGE:var l=e.length?e.pop():null,v="object"===r(l)?l.height:null;v&&this.fF(v)}}}},n.prototype.cF=function(t){var i="";this.iF.insideIframeConfig&&(i=this.iF.insideIframeConfig.parentURL),window.parent.postMessage(t,i)},n.prototype.hF=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.vm&&this.vm[i]&&this.vm[i][n]&&this.vm[i][n].apply(this.vm[i],e)}},n.prototype.fF=function(t){this.nF&&(this.nF.style.height=t+"px")},n}(o.default);i.default=c},2006: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(2992),o=n(3872),u=n(5859),a=n(2917),c=n(2884),h=n(4479),f={},l=function(){function t(t,i){this.OA="",this.Pc=t,this.W_=i,this.lF(),this.offNetwork=c.default.isOffNetwork(),this.vF(t.watchHistory)}return t.prototype.getEventsDto=function(){var t,i=this.Pc.rapidConfig||{},n=i.pageParams||{},r=i.clickParams||{},s={pageSpaceId:this.Pc.pageSpaceId||i&&i.Spaceid||"1111",experienceName:this.Pc.expName||"",experienceBucket:this.Pc.expBucket||"",experienceType:this.Pc.expType||"",cpos:this.Pc.cpos||"",ccode:this.Pc.ccode||"",offNetwork:this.offNetwork,site:this.Pc.site||"",siteAnalytics:this.Pc.siteAnalytics||"",comscoreC4:this.Pc.comscoreC4||u.NULL_DEFAULT,region:this.Pc.region||"",referrer:this.Pc.referrer||"",lang:this.Pc.lang||"",pageLatency:this.dF||"",playlistId:(null===(t=this.Pc.playlist)||void 0===t?void 0:t.id)||""},o="strm"===n.sec?r.pstaid:n.pstaid,a={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.Pc.sec||"",subsec:r.subsec||"",rlvtscr:n.rlvtscr||"",vidPos:n.vidPos||"",layout:n.layout||"",href:n._w||"",ref:n._R||""};return e(e({},s),a)},t.prototype.destroy=function(){},Object.defineProperty(t.prototype,"config",{get:function(){return this.Pc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoRecommendations",{get:function(){return void 0===this.Pc.videoRecommendations||this.Pc.videoRecommendations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return this.Pc.site||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this.Pc.region||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lang",{get:function(){return this.Pc.lang||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"experienceBucket",{get:function(){return this.Pc.expBucket||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"experienceName",{get:function(){return this.Pc.expName||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yvapAccountId",{get:function(){return this.Pc.YVAP&&this.Pc.YVAP.accountId||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"syndication",{get:function(){return this.Pc.synd||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cTopic",{get:function(){return this.Pc.cTopic||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pspid",{get:function(){return this.Pc.CMS&&this.Pc.CMS.suppressAdContext?"":this.Pc.pageSpaceId||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistId",{get:function(){return this.Pc.playlist&&this.Pc.playlist.id||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this.Pc.loop||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){return this.Pc.continuousPlay||!1},set:function(t){this.Pc.continuousPlay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"relatedVideoId",{get:function(){var t=this.Pc.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.Pc.ui&&this.Pc.ui.playlist&&this.Pc.ui.playlist.mimetype||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistItemCount",{get:function(){return this.Pc.ui&&this.Pc.ui.playlist&&o.TypeChecker.isNumber(this.Pc.ui.playlist.numberOfItems)?Math.max(this.Pc.ui.playlist.numberOfItems,a.PLAYLIST_COUNT_PER_PAGE):a.PLAYLIST_COUNT_PER_PAGE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowGeoRequest",{get:function(){return this.Pc.allowGeoRequest||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"geoData",{get:function(){return this.Pc.geoData||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"guid",{get:function(){return this.OA},set:function(t){this.OA=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showEndScreen",{get:function(){return this.Pc.ui&&this.Pc.ui.endScreen&&this.Pc.ui.endScreen.show||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"skipOnError",{get:function(){return this.Pc.skipOnError||a.SkipOnError.NEVER},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){return o.TypeChecker.isNumber(this.Pc.aspectRatio)?this.Pc.aspectRatio:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"watchHistoryConfig",{get:function(){return this.Pc.watchHistory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"watchHistory",{get:function(){return this.pF||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playlistUI",{get:function(){var t,i;return null===(i=null===(t=this.Pc)||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.Pc.pblob)&&this.Pc.pblob.length<=512?this.Pc.pblob:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDockable",{get:function(){var t=this.Pc.ui&&this.Pc.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.Pc.allowGeoRequest=t.allowGeoRequest);var i=t.geoData;i&&o.TypeChecker.isString(i.latitude)&&o.TypeChecker.isString(i.longitude)&&o.TypeChecker.isString(i.accuracy)?this.Pc.geoData=i:null===i&&(this.Pc.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.Pc.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.Pc.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.lF=function(){window.performance&&window.performance.timing&&window.performance.timing.navigationStart&&(this.dF=(new Date).getTime()-window.performance.timing.navigationStart)},t.prototype.vF=function(t){this.pF=null,t&&t.enabled&&(this.pF=new h.default({watchHistoryEnabled:t.enabled,watchedPeriod:t.watchedPeriod,watchHistoryExpiry:t.expiry},this),this.pF.clearExpired())},t}();i.default=l},6620: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"},bF:{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"}}}}}},4228: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"}}}},1152: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"}}}},1142: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.119-pr961.b39167247",type:"string"},jshlsVersion:{default:"1.2.20",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"}}}}}},100: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"},mF:{type:"string"},ctv_di:{type:"string"},ctv_ddv:{type:"string"},ctv_dfv:{type:"string"},gF:{type:"string"},yF:{type:"string"},_F:{type:"string"},wF:{type:"string"},OF:{type:"string"},EF:{type:"string"},ctv_yb:{type:"string"},jF:{type:"string"},ctv_yr:{type:"string"},ctv_ybv:{type:"string"},ctv_yv:{type:"string"},SF:{type:"string"},AF:{type:"string"},MF:{type:"string"}}},forceHttp:{type:"boolean"}}}},4736: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"}}}},1157: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"}}}}}},5941: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"}}}},5435: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"}}}},5811: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"}}}},6905:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(6197),r=function(){function t(t,i){this.TF=null,this.NF=i,this.Cx=new e.default(t)}return t.prototype.verify=function(t){if(this.Cx){var i={onComplete:function(){t(!0)},onError:function(){t(!1)},onProgress:function(){},onApiCallInfo:function(){}};this.NF&&this.Cx.resolve([this.NF],{},{},i)}},t.prototype.scheduleVerification=function(t,i){var n=this;this.IF(),this.TF=window.setTimeout((function(){n.verify(t)}),i)},t.prototype.destroy=function(){this.IF(),this.Cx=null,this.NF=null},t.prototype.IF=function(){this.TF&&(clearTimeout(this.TF),this.TF=null)},t}();i.default=r},5717:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.OathPlayerFactory=void 0;var e=n(7596),r=n(7254);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)}},7596: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),a=n(2992),c=n(5854),h=n(7758),f=n(4351),l=n(9237),v=n(6620),d=n(4228),p=n(1152),b=n(1142),m=n(100),g=n(4736),y=n(1157),_=n(5941),w=n(5435),O=n(5811),E=n(2201),j=n(2884),S=n(9451),A=function(t){function i(i,n){var e,r,o,u,a=t.call(this,"OathPlayer")||this;a.RF=!1,a.LF=!1,a.version="8.3.119-pr961.b39167247",a.playerType="desktop",a.jshlsVer="1.2.20",a.coreVer="0.3.104-pr1536.b39163349",a.CF=i,a.kF=Date.now(),a.XU=null,i.playerId=i.playerId||j.default.generateGuid(),i=JSON.parse(JSON.stringify(i)),i=j.default.isLegacyConfig(i)?j.default.transformLegacyConfig(i):i;var v=[a.version,a.kF];a.un=new h.default(i,n,a),a.eI=new f.default(a.un),a.playlist=new E.default(a.un.getPlaylist()),a.DF(i),a.PF(i),c.default.sendPlayerInitBeacon.apply(c.default,s([i,c.PLAYER_INIT_BEACON],v)),a.cS(i),a.un.initialize(),a.xF(),a.RF&&(a.XU=new l.default(i,a));var d=null===(r=null===(e=window.performance)||void 0===e?void 0:e.getEntriesByName)||void 0===r?void 0:r.call(e,"vplayerinit");return 0===(null==d?void 0:d.length)&&(null===(u=null===(o=window.performance)||void 0===o?void 0:o.mark)||void 0===u||u.call(o,"vplayerinit")),a}return r(i,t),i.prototype.render=function(t){var i,n;return this.RF&&this.LF&&(null===(i=this.XU)||void 0===i||i.setupIframeToPageCommunication(),null===(n=this.XU)||void 0===n||n.sendClearIframeNameToPage()),this.un.render(t),this},i.prototype.destroy=function(){this.un.destroy(),t.prototype.destroy.call(this)},i.prototype.getCurrentTime=function(){return this.un.getCurrentTime()},i.prototype.getCurrentDate=function(){return this.un.getCurrentDate()},i.prototype.getVolume=function(){return this.un.getVolume()},i.prototype.setQueryString=function(t){},i.prototype.removeAllMediaItems=function(){return!0},i.prototype.play=function(t,i){this.eI.play(t,i)},i.prototype.pause=function(t){this.eI.pause(t)},i.prototype.mute=function(){this.eI.setMute(!0)},i.prototype.unMute=function(){this.eI.setMute(!1)},i.prototype.setVolume=function(t,i){void 0===i&&(i=!1),this.eI.setVolume(t,i)},i.prototype.isAd=function(){return this.un.isAd()},i.prototype.seek=function(t){this.eI.seek(t)},i.prototype.getMediaStore=function(){return this.un.getMediaStore()},i.prototype.isPlaying=function(){return this.un.isPlayMode()},i.prototype.isPlayMode=function(){return this.un.isPlayMode()},i.prototype.isDocked=function(){return this.un.isDocked()},i.prototype.setMediaItemTitle=function(t,i){return this.un.setMediaItemTitle(t,i)},i.prototype.isLoading=function(){return this.un.isLoading()},i.prototype.getVideoElement=function(){return this.un.getVideoElement()},i.prototype.getRootElement=function(){return this.un.getRootElement()},i.prototype.updateDockingConfig=function(t,i,n,e,r,s){this.un.updateDockingConfig(t,i,n,e,r,s)},i.prototype.undockVideoPlayer=function(t){this.un&&this.un.undockVideoPlayer(t)},i.prototype.on=function(i,n,e){var r,s=this;if(Object.keys(a.Events).some((function(t){return a.Events[t]===i}))){var o=this.un.addCorePlayerListener(i,n);r=function(){s.un.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.un.suspend()},i.prototype.resume=function(){this.un.resume(),this.playlist.playlist=this.un.getPlaylist()},i.prototype.isSuspended=function(){return this.un&&this.un.isSuspended()||!1},i.prototype.isRendered=function(){return this.un&&this.un.isRendered()||!1},i.prototype.updateGeoConfig=function(t){this.un.updateGeoConfig(t)},i.prototype.getPlaybackStartDto=function(){return this.un.getPlaybackStartDto()},i.prototype.getInitTime=function(){return this.kF},Object.defineProperty(i.prototype,"guid",{get:function(){return this.un&&this.un.guid||""},enumerable:!1,configurable:!0}),i.prototype.getMediaItemMarkers=function(t){return this.un.getMediaItemMarkers(t)},i.prototype.addCustomControlElement=function(t){return this.un.addCustomControlElement(t)},Object.defineProperty(i.prototype,"oathConfig",{get:function(){return this.CF},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iframeController",{get:function(){return this.XU},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"controls",{get:function(){return this.eI},set:function(t){this.eI=t},enumerable:!1,configurable:!0}),i.prototype.setSapiOptions=function(t,i){if(!t||!t.length)throw new Error("InvalidArgumentException");i&&this.un.setSapiOptions(t,i)},i.prototype.__setError=function(t,i,n,e,r){this.un.setError(t,i,n,e,r)},i.prototype.__getSyncOffset=function(){return this.un.getSyncOffset()},i.prototype.startSync=function(){this.un.startSync()},i.prototype.stopSync=function(){this.un.stopSync()},i.prototype.xF=function(){if(j.default.isOathDomain()){this.controls=this.eI,this.config=this.CF}},i.prototype.cS=function(t){try{var i=new u.Validator;i.addSchema(v.baseconfigSchema,"/baseconfigSchema"),i.addSchema(d.closedcaptionsSchema,"/closedcaptionsSchema"),i.addSchema(p.cmsSchema,"/cmsSchema"),i.addSchema(m.ctvSchema,"/ctvSchema"),i.addSchema(y.metricsSchema,"/metricsSchema"),i.addSchema(_.playbackSchema,"/playbackSchema"),i.addSchema(w.uiSchema,"/uiSchema"),i.addSchema(O.yvapSchema,"/yvapSchema"),i.addSchema(g.failoverSchema,"/failoverSchema"),i.validate(t,b.configSchema,{throwError:!0})}catch(t){var n="Invalid player config: "+t.property+" "+t.message;throw new Error(n)}},i.prototype.DF=function(t){this.RF=(null==t?void 0:t.iframeRender)||!1,this.LF=(null==t?void 0:t.insideIframeConfig)||!1},i.prototype.PF=function(t){if(S.userAgent.chrome&&window.self!==window.top&&window.ReportingObserver){var i=new window.ReportingObserver((function(i){c.default.sendInterventionReports(i,t)}),{buffered:!0,types:["intervention"]});i.observe(),window.addEventListener("unload",(function(n){var e=i.takeRecords();c.default.sendInterventionReports(e,t)}))}},i}(o.default);i.default=A},2201:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2992),r=function(){function t(t){var i=this;this.UF=["clear","getCurrentItem","getCurrentItemDescription","getCurrentItemId","getCurrentItemLiveStatus","getCurrentItemMarkers","getCurrentItemProviderName","getCurrentItemTitle","getIndexForId","getItem","getItemById","getItemId","getItems","getPosition","getSize","removeItem","removeItemById","removeItems","removeItemsById","sendPrefetchInfo","setPosition","setPositionById"],this.Ny=t,this.UF.forEach((function(t){i[t]=function(){return this.Ny[t].apply(this.Ny,arguments)}}))}return t.prototype.addItem=function(t){return this.Ny.addItem(this.FF([t])[0])},t.prototype.addItems=function(t,i){return void 0===i&&(i=!1),this.Ny.addItems(this.FF(t),i)},t.prototype.setItems=function(t){return this.Ny.setItems(this.FF(t))},Object.defineProperty(t.prototype,"playlist",{set:function(t){this.Ny=t},enumerable:!1,configurable:!0}),t.prototype.FF=function(t){var i=this.BF();return t.map((function(t){return{id:t,mimetype:i}}))},t.prototype.BF=function(){var t=this.Ny.getCurrentItem();return t&&t.mimetype||e.MediaItemInterfaces.MediaItemMimeType.SAPI},t}();i.default=r},5178:function(t,i,n){"use strict";n(6992),n(1539),n(8674),n(7727),n(8783),n(3948),n(9601),n(2479),n(6699),n(9826),n(4944),n(3792),n(8927),n(2023),n(3112),Object.defineProperty(i,"__esModule",{value:!0})},3801: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),a=n(1123),c=o(o({},u),a),h=(null===(s=null===(r=null===(e=window.OATH)||void 0===e?void 0:e.VideoPlatform)||void 0===r?void 0:r.i18n)||void 0===s?void 0:s.strings)||c;i.default=h},8073:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(2992),r=n(4769),s=function(){function t(){var t=this;this.zF=[],this.VF=new r.default(Object.create(e.Player.prototype),{get:function(i,n){var e=t;return function(){e.zF.push({method:n,args:arguments}),"render"===n&&arguments.length>0&&e.YE.call(e,arguments[0])}}})}return t.prototype.destroy=function(){var t=this.GF;this.VF=void 0,this.zF=[],t&&t.parentNode&&(t.parentNode.removeChild(t),this.GF=void 0)},t.prototype.execute=function(t){this.zF.forEach((function(i){var n=i.method,e=i.args;t[n].apply(t,e)})),this.zF=[]},t.prototype.getProxy=function(){return this.VF},t.prototype.YE=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.GF=n}},t}();i.default=s},4769:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(t,i){var n=this,e=function(e){if(i&&i.get)return i.get(t,e,n)},r=Object.getOwnPropertyNames(t),s={};for(var o in r.forEach((function(i){var r={enumerable:!!(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable,get:e.bind(t,i)};Object.defineProperty(n,i,r),s[i]=!0})),t)s[o]||n[o]||Object.defineProperty(n,o,{get:e.bind(t,o)});for(var u=0,a=Object.getOwnPropertyNames(Object.getPrototypeOf(t));u<a.length;u++)o=a[u],s[o]||n[o]||Object.defineProperty(n,o,{get:e.bind(t,o)});Object.seal(t),Object.seal(n)};i.default=n},2884:function(t,i,n){"use strict";var e=n(8);Object.defineProperty(i,"__esModule",{value:!0}),i.SCRIPT_LOAD_STATE=void 0;var r,s=n(7673),o=n(9451),u=n(2992),a=n(3872),c=n(2917),h=["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(h).concat(["aol.com","aol.co.uk","aol.ca","aol.jp","aol.de"]).concat(["huffpost.com","huffpost.net","huffingtonpost.co.uk","huffingtonpost.com.au","huffingtonpost.in","huffpostbrasil.com","huffingtonpost.ca","huffingtonpost.fr","huffingtonpost.es","huffingtonpost.it","huffingtonpost.kr","huffingtonpost.jp","huffingtonpost.gr"]),v="lazyLoadState";!function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOAD_COMPLETE=2]="LOAD_COMPLETE"}(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?h:l,s=[];return f.forEach((function(t){r.forEach((function(i){var n=i.replace(/-/g,"--").replace(/\./g,"-");s.push(n+"."+t)}))})),(s=s.concat(r)).push("localhost"),!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,c.REQUEST_TYPES.CLICK,c.REQUEST_TYPES.AUTOPLAY,c.REQUEST_TYPES.HOVER,c.REQUEST_TYPES.PLAY,c.REQUEST_TYPES.PAUSE,c.REQUEST_TYPES.SCROLL,c.REQUEST_TYPES.SWIPE,c.REQUEST_TYPES.BACKGROUND].indexOf(t)},t.transformLegacyConfig=function(i){var n,r,s,o;if(null===(r=null===(n=null==i?void 0:i.YVAP)||void 0===n?void 0:n.standaloneAd)||void 0===r?void 0:r.brxd)return{mediaItems:[{mimetype:"media/container",id:this.HF(),adConfig:{mimetype:"adplugin/vrm",value:{type:"preroll",vendor:"standalone_brxd",adOnly:!0,vastXml:i.YVAP.standaloneAd.brxd}}}],ui:{showFullscreenButton:i.fullscreenBtn,playlist:{show:!1,position:"hidden"}},playlist:{id:null===(s=i.playlist)||void 0===s?void 0:s.id},pluginConfigs:{"source-metadata-plugin":{"media/sapi":{disableAdFetch:!0}}},videoRecommendations:null===(o=i.playlist)||void 0===o?void 0:o.videoRecommendations,continuousPlay:!0,pageSpaceId:i.pageSpaceId,mute:"true"===i.mute||!0===i.mute,autoplay:i.autoplay,region:i.region,expName:i.expName,site:i.site,comscoreC4:i.comscoreC4,rapidConfig:{pageParams:{pt:"ad_iframe",ver:"VSSP",pct:"ad_iframe"}}};var h=Object.assign({mediaItems:[],ui:{},watchHistory:{enabled:!1,watchedPeriod:.5,expiry:129600,skipWatchedVideos:!0}},i),f=!1;if(i.playlist&&i.playlist.mediaItems){i.playlist=Object.assign({},i.playlist);for(var l=0,v=i.playlist.mediaItems;l<v.length;l++){var d=v[l],p=null;d.id===c.GEMINI_STUB_VIDEO_ID&&i.YVAP&&i.YVAP.standaloneAd&&(p=t.YF(d,i)),p||(p={mimetype:d.id?u.MediaItemInterfaces.MediaItemMimeType.SAPI:u.MediaItemInterfaces.MediaItemMimeType.CONTAINER,id:d.id||""},d.adConfig&&(p.adConfig=d.adConfig),(d.meta||d.streams)&&(p.customConfig={response:d}),d.streams&&p.mimetype===u.MediaItemInterfaces.MediaItemMimeType.CONTAINER&&(p.source=p.source||{},p.source.streams=d.streams),d.meta&&d.meta.playlist_config&&(f=!0));var b=d.images;b&&(b.thumbnail||b.large||b.medium||b.small)&&(p.metadata=p.metadata||{},p.metadata.thumbnail=b.thumbnail||b.large||b.medium||b.small),h.mediaItems.push(p)}void 0!==h.playlist.videoRecommendations&&(h.videoRecommendations=h.playlist.videoRecommendations),h.playlist.id?delete h.playlist.mediaItems:delete h.playlist}i.region&&(h.region=i.region.toUpperCase()),i.docking&&(h.ui.docking=Object.assign({},i.docking),h.ui.docking.position={},["Top","Right","Bottom","Left"].forEach((function(t){var n="position"+t,e=i.docking[n];h.ui.docking.position[t.toLowerCase()]="number"==typeof e?e:-1,delete h.ui.docking[n]})),delete h.docking);return[["ccOnMute","ccOnMute"],["chromeless","chromeless"],["showControls","showControls"],["showAgeGate","showAgeGate"],["fullscreenBtn","showFullscreenButton"]].forEach((function(t){void 0!==i[t[0]]&&(h.ui[t[1]]=!!i[t[0]]),delete h[t[0]]})),void 0!==i.startscreen&&"object"!==e(i.startscreen)?(h.ui.startScreen={show:!!i.startscreen},delete h.startscreen):"object"===e(i.startscreen)&&i.startscreen&&(h.ui.startScreen=h.ui.startScreen||{},["showButton","show","showDesc","showControls","showProvider","showTitle"].forEach((function(t){void 0!==i.startscreen[t]&&(h.ui.startScreen[t]=!!i.startscreen[t])})),h.ui.startScreen.showDescription=!!i.startscreen.showDesc,delete h.ui.startScreen.showDesc,delete h.startscreen),void 0!==i.endscreen&&"object"!==e(i.endscreen)?(h.ui.endScreen={show:!!i.endscreen},delete h.endscreen):"object"===e(i.endscreen)&&i.endscreen&&(h.ui.endScreen=i.endscreen,delete h.endscreen),void 0!==i.replayonlyendscreen&&"boolean"==typeof i.replayonlyendscreen&&(h.ui.endScreen={show:!!i.replayonlyendscreen},delete h.replayonlyendscreen),["Start","Hover"].forEach((function(t){var n="showTitleOn"+t;void 0!==i[n]&&(h.ui.title=h.ui.title||{},h.ui.title["showOn"+t]=i[n],delete h[n])})),void 0!==i.watchHistoryEnabled&&(h.watchHistory.enabled=i.watchHistoryEnabled,delete h.watchHistoryEnabled),void 0!==i.watchedPeriod&&(h.watchHistory.watchedPeriod=i.watchedPeriod,delete h.watchedPeriod),void 0!==i.watchHistoryExpiry&&(h.watchHistory.expiry=i.watchHistoryExpiry,delete h.watchHistoryExpiry),i.YVAP&&("number"==typeof i.YVAP.timeout&&(h.ads=h.ads||{timeout:{}},h.ads.timeout.load=i.YVAP.timeout),"number"==typeof i.YVAP.vpaidTimeout&&(h.ads=h.ads||{timeout:{}},h.ads.timeout.start=i.YVAP.vpaidTimeout)),i.playlistUI&&(h.ui.playlist=i.playlistUI,i.playlistUI.playlistId&&(h.playlist=h.playlist||{},h.playlist.id=i.playlistUI.playlistId),delete h.playlistUI),f&&h.ui.playlist&&(h.ui.playlist.mimetype="playlist/structured"),["height","width"].forEach((function(t){i[t]&&a.TypeChecker.isString(i[t])&&(h[t]=parseInt(i[t],10),a.TypeChecker.isNumber(h[t])||delete h[t])})),h},t.isLegacyConfig=function(t){return!(!t||!t.playlist||!t.playlist.mediaItems&&!t.playlist.id)},t.formatTime=function(t){var i=Math.floor(t/3600),n=Math.floor((t-3600*i)/60),e=Math.floor(t-3600*i-60*n),r=e<10?"0"+e:e.toString(),s="";if(i>0){var o=n<10?"0"+n:n.toString();s=i.toString()+":"+o+":"+r}else a.TypeChecker.isNumber(n)&&(s=n.toString()+":"+r);return s},t.getPlayerType=function(){var i=t.getSingleton("PlayerHosting"),n="desktop";if(i&&i.type){var e=i.type.match(/^oath\-player\-([a-z\-]*)\.js/);e&&e[1]&&(n=e[1])}return"nextgen-"+(n="mobile-ios"===n?"ios":n)},t.getBckt=function(){var i=t.getSingleton("PlayerHosting"),n="Treatment_Oath_Player";if(i){var e=i.bucket,r=i.env;return e||("prod"===r?n:null)||"none"}return n},t.isInternalUser=function(){var i=t.getSingleton("PlayerHosting");return i&&"stage"===i.env},t.getCookie=function(t){t+="=";var i=document.cookie.split(/;\s*/),n=null;return i.forEach((function(i){i.indexOf(t)>-1&&(n=i.replace(t,""))})),n},t.extend=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return a.TypeChecker.isObject(t)||(t={}),i.forEach((function(i){if(i)for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])})),t},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.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.YF=function(t,i){var n;return t&&i&&i.YVAP&&i.YVAP.standaloneAd&&i.YVAP.standaloneAd.gemini?(i.YVAP.standaloneAd.gemini.disableAdCountdown=null===(n=null==i?void 0:i.ui)||void 0===n?void 0:n.disableAdCountdown,{mimetype:u.MediaItemInterfaces.MediaItemMimeType.CONTAINER,metadata:{type:u.MediaItemInterfaces.MediaItemType.CONTAINER},id:"gemini-ad-"+Math.ceil(1e11*Math.random()),adConfig:{mimetype:c.MARTINI_PLUGIN_MIMETYPE,value:{YVAP:i.YVAP}}}):null},t.HF=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},4479: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.qF=t.watchHistoryEnabled||!1,this.WF=t.watchedPeriod||.5,this.QF=t.watchHistoryExpiry||129600,this.vt=i}return t.prototype.isWatched=function(t,i){if(!this.qF)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.QF;n[t.id]={position:t.position},i&&(n[t.id].expiryTime=(new Date).getTime()+1e3*s,this.isDeemedWatched(t.position,t.duration)?this.vt.setMediaItemWatched(t.id,!0):this.vt.setMediaItemWatched(t.id,!1)),e.LocalStorage.put(r,n)},t.prototype.getProgress=function(t){if(!t)throw new Error("UUID not passed for getProgress!");var i=e.LocalStorage.get(r);return i?i[t]:null},t.prototype.isDeemedWatched=function(t,i){var n=this.WF;return!(!this.qF||!i)&&(n>=0&&n<=1?t>=i*n:i<=n?t>=i-5:t>=n)},t}();i.default=s},179: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]}},3419:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=n(6852),r=function(){function t(){this.lP=new e.default}return t.prototype.updateOathPlayerOpss=function(t,i,n){this.lP.updateOathPlayerInfo(t,i,n)},t}();i.default=r},6852: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.ZF(n.version),o=e.querySelector(".vp-opss-lmsid");e.insertBefore(s,r);var u=this.$F(),a=e.querySelector(".vp-opss-hosting");a&&(a.innerHTML=u);var c=e.querySelector(".vp-opss-profile");c&&(c.innerHTML=JSON.stringify(n.config,void 0,2)),o&&(o.innerHTML="<span class='vp-details'> License Id(LMS ID): </span> "+n.lmsId)}}},t.prototype.ZF=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.$F=function(){var t=window.OATH,i=t&&t.VideoPlatform&&t.VideoPlatform.PlayerHosting||"local";return JSON.stringify(i,void 0,2)},t}();i.default=n},9662:function(t,i,n){var e=n(7854),r=n(614),s=n(6330),o=e.TypeError;t.exports=function(t){if(r(t))return t;throw o(s(t)+" is not a function")}},9483:function(t,i,n){var e=n(7854),r=n(4411),s=n(6330),o=e.TypeError;t.exports=function(t){if(r(t))return t;throw o(s(t)+" is not a constructor")}},6077:function(t,i,n){var e=n(7854),r=n(614),s=e.String,o=e.TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+s(t)+" as a prototype")}},1223:function(t,i,n){var e=n(5112),r=n(30),s=n(3070),o=e("unscopables"),u=Array.prototype;null==u[o]&&s.f(u,o,{configurable:!0,value:r(null)}),t.exports=function(t){u[o][t]=!0}},5787:function(t,i,n){var e=n(7854),r=n(7976),s=e.TypeError;t.exports=function(t,i){if(r(i,t))return t;throw s("Incorrect invocation")}},9670:function(t,i,n){var e=n(7854),r=n(111),s=e.String,o=e.TypeError;t.exports=function(t){if(r(t))return t;throw o(s(t)+" is not an object")}},4019:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(t,i,n){"use strict";var e,r,s,o=n(4019),u=n(9781),a=n(7854),c=n(614),h=n(111),f=n(2597),l=n(648),v=n(6330),d=n(8880),p=n(1320),b=n(3070).f,m=n(7976),g=n(9518),y=n(7674),_=n(5112),w=n(9711),O=a.Int8Array,E=O&&O.prototype,j=a.Uint8ClampedArray,S=j&&j.prototype,A=O&&g(O),M=E&&g(E),T=Object.prototype,N=a.TypeError,I=_("toStringTag"),R=w("TYPED_ARRAY_TAG"),L=w("TYPED_ARRAY_CONSTRUCTOR"),C=o&&!!y&&"Opera"!==l(a.opera),k=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P={BigInt64Array:8,BigUint64Array:8},x=function(t){if(!h(t))return!1;var i=l(t);return f(D,i)||f(P,i)};for(e in D)(s=(r=a[e])&&r.prototype)?d(s,L,r):C=!1;for(e in P)(s=(r=a[e])&&r.prototype)&&d(s,L,r);if((!C||!c(A)||A===Function.prototype)&&(A=function(){throw N("Incorrect invocation")},C))for(e in D)a[e]&&y(a[e],A);if((!C||!M||M===T)&&(M=A.prototype,C))for(e in D)a[e]&&y(a[e].prototype,M);if(C&&g(S)!==M&&y(S,M),u&&!f(M,I))for(e in k=!0,b(M,I,{get:function(){return h(this)?this[R]:void 0}}),D)a[e]&&d(a[e],R,e);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_CONSTRUCTOR:L,TYPED_ARRAY_TAG:k&&R,aTypedArray:function(t){if(x(t))return t;throw N("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!y||m(A,t)))return t;throw N(v(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,i,n,e){if(u){if(n)for(var r in D){var s=a[r];if(s&&f(s.prototype,t))try{delete s.prototype[t]}catch(n){try{s.prototype[t]=i}catch(t){}}}M[t]&&!n||p(M,t,n?i:C&&E[t]||i,e)}},exportTypedArrayStaticMethod:function(t,i,n){var e,r;if(u){if(y){if(n)for(e in D)if((r=a[e])&&f(r,t))try{delete r[t]}catch(t){}if(A[t]&&!n)return;try{return p(A,t,n?i:C&&A[t]||i)}catch(t){}}for(e in D)!(r=a[e])||r[t]&&!n||p(r,t,i)}},isView:function(t){if(!h(t))return!1;var i=l(t);return"DataView"===i||f(D,i)||f(P,i)},isTypedArray:x,TypedArray:A,TypedArrayPrototype:M}},1318:function(t,i,n){var e=n(5656),r=n(1400),s=n(6244),o=function(t){return function(i,n,o){var u,a=e(i),c=s(a),h=r(o,c);if(t&&n!=n){for(;c>h;)if((u=a[h++])!=u)return!0}else for(;c>h;h++)if((t||h in a)&&a[h]===n)return t||h||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},2092:function(t,i,n){var e=n(9974),r=n(1702),s=n(8361),o=n(7908),u=n(6244),a=n(5417),c=r([].push),h=function(t){var i=1==t,n=2==t,r=3==t,h=4==t,f=6==t,l=7==t,v=5==t||f;return function(d,p,b,m){for(var g,y,_=o(d),w=s(_),O=e(p,b),E=u(w),j=0,S=m||a,A=i?S(d,E):n||l?S(d,0):void 0;E>j;j++)if((v||j in w)&&(y=O(g=w[j],j,_),t))if(i)A[j]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return j;case 2:c(A,g)}else switch(t){case 4:return!1;case 7:c(A,g)}return f?-1:r||h?h:A}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},206:function(t,i,n){var e=n(1702);t.exports=e([].slice)},7475:function(t,i,n){var e=n(7854),r=n(3157),s=n(4411),o=n(111),u=n(5112)("species"),a=e.Array;t.exports=function(t){var i;return r(t)&&(i=t.constructor,(s(i)&&(i===a||r(i.prototype))||o(i)&&null===(i=i[u]))&&(i=void 0)),void 0===i?a:i}},5417:function(t,i,n){var e=n(7475);t.exports=function(t,i){return new(e(t))(0===i?0:i)}},7072:function(t,i,n){var e=n(5112)("iterator"),r=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){r=!0}};o[e]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,i){if(!i&&!r)return!1;var n=!1;try{var s={};s[e]=function(){return{next:function(){return{done:n=!0}}}},t(s)}catch(t){}return n}},4326:function(t,i,n){var e=n(1702),r=e({}.toString),s=e("".slice);t.exports=function(t){return s(r(t),8,-1)}},648:function(t,i,n){var e=n(7854),r=n(1694),s=n(614),o=n(4326),u=n(5112)("toStringTag"),a=e.Object,c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var i,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,i){try{return t[i]}catch(t){}}(i=a(t),u))?n:c?o(i):"Object"==(e=o(i))&&s(i.callee)?"Arguments":e}},9920:function(t,i,n){var e=n(2597),r=n(3887),s=n(1236),o=n(3070);t.exports=function(t,i,n){for(var u=r(i),a=o.f,c=s.f,h=0;h<u.length;h++){var f=u[h];e(t,f)||n&&e(n,f)||a(t,f,c(i,f))}}},4964:function(t,i,n){var e=n(5112)("match");t.exports=function(t){var i=/./;try{"/./"[t](i)}catch(n){try{return i[e]=!1,"/./"[t](i)}catch(t){}}return!1}},8544:function(t,i,n){var e=n(7293);t.exports=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,i,n){"use strict";var e=n(3383).IteratorPrototype,r=n(30),s=n(9114),o=n(8003),u=n(7497),a=function(){return this};t.exports=function(t,i,n,c){var h=i+" Iterator";return t.prototype=r(e,{next:s(+!c,n)}),o(t,h,!1,!0),u[h]=a,t}},8880:function(t,i,n){var e=n(9781),r=n(3070),s=n(9114);t.exports=e?function(t,i,n){return r.f(t,i,s(1,n))}:function(t,i,n){return t[i]=n,t}},9114:function(t){t.exports=function(t,i){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:i}}},654:function(t,i,n){"use strict";var e=n(2109),r=n(6916),s=n(1913),o=n(6530),u=n(614),a=n(4994),c=n(9518),h=n(7674),f=n(8003),l=n(8880),v=n(1320),d=n(5112),p=n(7497),b=n(3383),m=o.PROPER,g=o.CONFIGURABLE,y=b.IteratorPrototype,_=b.BUGGY_SAFARI_ITERATORS,w=d("iterator"),O="keys",E="values",j="entries",S=function(){return this};t.exports=function(t,i,n,o,d,b,A){a(n,i,o);var M,T,N,I=function(t){if(t===d&&D)return D;if(!_&&t in C)return C[t];switch(t){case O:case E:case j:return function(){return new n(this,t)}}return function(){return new n(this)}},R=i+" Iterator",L=!1,C=t.prototype,k=C[w]||C["@@iterator"]||d&&C[d],D=!_&&k||I(d),P="Array"==i&&C.entries||k;if(P&&(M=c(P.call(new t)))!==Object.prototype&&M.next&&(s||c(M)===y||(h?h(M,y):u(M[w])||v(M,w,S)),f(M,R,!0,!0),s&&(p[R]=S)),m&&d==E&&k&&k.name!==E&&(!s&&g?l(C,"name",E):(L=!0,D=function(){return r(k,this)})),d)if(T={values:I(E),keys:b?D:I(O),entries:I(j)},A)for(N in T)(_||L||!(N in C))&&v(C,N,T[N]);else e({target:i,proto:!0,forced:_||L},T);return s&&!A||C[w]===D||v(C,w,D,{name:d}),p[i]=D,T}},9781:function(t,i,n){var e=n(7293);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,i,n){var e=n(7854),r=n(111),s=e.document,o=r(s)&&r(s.createElement);t.exports=function(t){return o?s.createElement(t):{}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(t,i,n){var e=n(317)("span").classList,r=e&&e.constructor&&e.constructor.prototype;t.exports=r===Object.prototype?void 0:r},7871:function(t){t.exports="object"==typeof window},1528:function(t,i,n){var e=n(8113),r=n(7854);t.exports=/ipad|iphone|ipod/i.test(e)&&void 0!==r.Pebble},6833:function(t,i,n){var e=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},5268:function(t,i,n){var e=n(4326),r=n(7854);t.exports="process"==e(r.process)},1036:function(t,i,n){var e=n(8113);t.exports=/web0s(?!.*chrome)/i.test(e)},8113:function(t,i,n){var e=n(5005);t.exports=e("navigator","userAgent")||""},7392:function(t,i,n){var e,r,s=n(7854),o=n(8113),u=s.process,a=s.Deno,c=u&&u.versions||a&&a.version,h=c&&c.v8;h&&(r=(e=h.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&o&&(!(e=o.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=o.match(/Chrome\/(\d+)/))&&(r=+e[1]),t.exports=r},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,i,n){var e=n(7854),r=n(1236).f,s=n(8880),o=n(1320),u=n(3505),a=n(9920),c=n(4705);t.exports=function(t,i){var n,h,f,l,v,d=t.target,p=t.global,b=t.stat;if(n=p?e:b?e[d]||u(d,{}):(e[d]||{}).prototype)for(h in i){if(l=i[h],f=t.noTargetGet?(v=r(n,h))&&v.value:n[h],!c(p?h:d+(b?".":"#")+h,t.forced)&&void 0!==f){if(typeof l==typeof f)continue;a(l,f)}(t.sham||f&&f.sham)&&s(l,"sham",!0),o(n,h,l,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6790:function(t,i,n){"use strict";var e=n(7854),r=n(3157),s=n(6244),o=n(9974),u=e.TypeError,a=function(t,i,n,e,c,h,f,l){for(var v,d,p=c,b=0,m=!!f&&o(f,l);b<e;){if(b in n){if(v=m?m(n[b],b,i):n[b],h>0&&r(v))d=s(v),p=a(t,i,v,d,p,h-1)-1;else{if(p>=9007199254740991)throw u("Exceed the acceptable array length");t[p]=v}p++}b++}return p};t.exports=a},2104:function(t){var i=Function.prototype,n=i.apply,e=i.bind,r=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)})},9974:function(t,i,n){var e=n(1702),r=n(9662),s=e(e.bind);t.exports=function(t,i){return r(t),void 0===i?t:s?s(t,i):function(){return t.apply(i,arguments)}}},6916:function(t){var i=Function.prototype.call;t.exports=i.bind?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,i,n){var e=n(9781),r=n(2597),s=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,u=r(s,"name"),a=u&&"something"===function(){}.name,c=u&&(!e||e&&o(s,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:c}},1702:function(t){var i=Function.prototype,n=i.bind,e=i.call,r=n&&n.bind(e,e);t.exports=n?function(t){return t&&r(t)}:function(t){return t&&function(){return e.apply(t,arguments)}}},5005:function(t,i,n){var e=n(7854),r=n(614),s=function(t){return r(t)?t:void 0};t.exports=function(t,i){return arguments.length<2?s(e[t]):e[t]&&e[t][i]}},1246:function(t,i,n){var e=n(648),r=n(8173),s=n(7497),o=n(5112)("iterator");t.exports=function(t){if(null!=t)return r(t,o)||r(t,"@@iterator")||s[e(t)]}},8554:function(t,i,n){var e=n(7854),r=n(6916),s=n(9662),o=n(9670),u=n(6330),a=n(1246),c=e.TypeError;t.exports=function(t,i){var n=arguments.length<2?a(t):i;if(s(n))return o(r(n,t));throw c(u(t)+" is not iterable")}},8173:function(t,i,n){var e=n(9662);t.exports=function(t,i){var n=t[i];return null==n?void 0:e(n)}},7854:function(t,i,n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,i,n){var e=n(1702),r=n(7908),s=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,i){return s(r(t),i)}},3501:function(t){t.exports={}},842:function(t,i,n){var e=n(7854);t.exports=function(t,i){var n=e.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,i))}},490:function(t,i,n){var e=n(5005);t.exports=e("document","documentElement")},4664:function(t,i,n){var e=n(9781),r=n(7293),s=n(317);t.exports=!e&&!r((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,i,n){var e=n(7854),r=n(1702),s=n(7293),o=n(4326),u=e.Object,a=r("".split);t.exports=s((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a(t,""):u(t)}:u},2788:function(t,i,n){var e=n(1702),r=n(614),s=n(5465),o=e(Function.toString);r(s.inspectSource)||(s.inspectSource=function(t){return o(t)}),t.exports=s.inspectSource},9909:function(t,i,n){var e,r,s,o=n(8536),u=n(7854),a=n(1702),c=n(111),h=n(8880),f=n(2597),l=n(5465),v=n(6200),d=n(3501),p="Object already initialized",b=u.TypeError,m=u.WeakMap;if(o||l.state){var g=l.state||(l.state=new m),y=a(g.get),_=a(g.has),w=a(g.set);e=function(t,i){if(_(g,t))throw new b(p);return i.facade=t,w(g,t,i),i},r=function(t){return y(g,t)||{}},s=function(t){return _(g,t)}}else{var O=v("state");d[O]=!0,e=function(t,i){if(f(t,O))throw new b(p);return i.facade=t,h(t,O,i),i},r=function(t){return f(t,O)?t[O]:{}},s=function(t){return f(t,O)}}t.exports={set:e,get:r,has:s,enforce:function(t){return s(t)?r(t):e(t,{})},getterFor:function(t){return function(i){var n;if(!c(i)||(n=r(i)).type!==t)throw b("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,i,n){var e=n(5112),r=n(7497),s=e("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[s]===t)}},3157:function(t,i,n){var e=n(4326);t.exports=Array.isArray||function(t){return"Array"==e(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,i,n){var e=n(1702),r=n(7293),s=n(614),o=n(648),u=n(5005),a=n(2788),c=function(){},h=[],f=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=e(l.exec),d=!l.exec(c),p=function(t){if(!s(t))return!1;try{return f(c,h,t),!0}catch(t){return!1}},b=function(t){if(!s(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!v(l,a(t))}catch(t){return!0}};b.sham=!0,t.exports=!f||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?b:p},4705:function(t,i,n){var e=n(7293),r=n(614),s=/#|\.prototype\./,o=function(t,i){var n=a[u(t)];return n==h||n!=c&&(r(i)?e(i):!!i)},u=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},a=o.data={},c=o.NATIVE="N",h=o.POLYFILL="P";t.exports=o},111:function(t,i,n){var e=n(614);t.exports=function(t){return"object"==typeof t?null!==t:e(t)}},1913:function(t){t.exports=!1},7850:function(t,i,n){var e=n(111),r=n(4326),s=n(5112)("match");t.exports=function(t){var i;return e(t)&&(void 0!==(i=t[s])?!!i:"RegExp"==r(t))}},2190:function(t,i,n){var e=n(7854),r=n(5005),s=n(614),o=n(7976),u=n(3307),a=e.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var i=r("Symbol");return s(i)&&o(i.prototype,a(t))}},408:function(t,i,n){var e=n(7854),r=n(9974),s=n(6916),o=n(9670),u=n(6330),a=n(7659),c=n(6244),h=n(7976),f=n(8554),l=n(1246),v=n(9212),d=e.TypeError,p=function(t,i){this.stopped=t,this.result=i},b=p.prototype;t.exports=function(t,i,n){var e,m,g,y,_,w,O,E=n&&n.that,j=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),M=r(i,E),T=function(t){return e&&v(e,"normal",t),new p(!0,t)},N=function(t){return j?(o(t),A?M(t[0],t[1],T):M(t[0],t[1])):A?M(t,T):M(t)};if(S)e=t;else{if(!(m=l(t)))throw d(u(t)+" is not iterable");if(a(m)){for(g=0,y=c(t);y>g;g++)if((_=N(t[g]))&&h(b,_))return _;return new p(!1)}e=f(t,m)}for(w=e.next;!(O=s(w,e)).done;){try{_=N(O.value)}catch(t){v(e,"throw",t)}if("object"==typeof _&&_&&h(b,_))return _}return new p(!1)}},9212:function(t,i,n){var e=n(6916),r=n(9670),s=n(8173);t.exports=function(t,i,n){var o,u;r(t);try{if(!(o=s(t,"return"))){if("throw"===i)throw n;return n}o=e(o,t)}catch(t){u=!0,o=t}if("throw"===i)throw n;if(u)throw o;return r(o),n}},3383:function(t,i,n){"use strict";var e,r,s,o=n(7293),u=n(614),a=n(30),c=n(9518),h=n(1320),f=n(5112),l=n(1913),v=f("iterator"),d=!1;[].keys&&("next"in(s=[].keys())?(r=c(c(s)))!==Object.prototype&&(e=r):d=!0),null==e||o((function(){var t={};return e[v].call(t)!==t}))?e={}:l&&(e=a(e)),u(e[v])||h(e,v,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:d}},7497:function(t){t.exports={}},6244:function(t,i,n){var e=n(7466);t.exports=function(t){return e(t.length)}},5948:function(t,i,n){var e,r,s,o,u,a,c,h,f=n(7854),l=n(9974),v=n(1236).f,d=n(261).set,p=n(6833),b=n(1528),m=n(1036),g=n(5268),y=f.MutationObserver||f.WebKitMutationObserver,_=f.document,w=f.process,O=f.Promise,E=v(f,"queueMicrotask"),j=E&&E.value;j||(e=function(){var t,i;for(g&&(t=w.domain)&&t.exit();r;){i=r.fn,r=r.next;try{i()}catch(t){throw r?o():s=void 0,t}}s=void 0,t&&t.enter()},p||g||m||!y||!_?!b&&O&&O.resolve?((c=O.resolve(void 0)).constructor=O,h=l(c.then,c),o=function(){h(e)}):g?o=function(){w.nextTick(e)}:(d=l(d,f),o=function(){d(e)}):(u=!0,a=_.createTextNode(""),new y(e).observe(a,{characterData:!0}),o=function(){a.data=u=!u})),t.exports=j||function(t){var i={fn:t,next:void 0};s&&(s.next=i),r||(r=i,o()),s=i}},3366:function(t,i,n){var e=n(7854);t.exports=e.Promise},133:function(t,i,n){var e=n(7392),r=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))},8536:function(t,i,n){var e=n(7854),r=n(614),s=n(2788),o=e.WeakMap;t.exports=r(o)&&/native code/.test(s(o))},8523:function(t,i,n){"use strict";var e=n(9662),r=function(t){var i,n;this.promise=new t((function(t,e){if(void 0!==i||void 0!==n)throw TypeError("Bad Promise constructor");i=t,n=e})),this.resolve=e(i),this.reject=e(n)};t.exports.f=function(t){return new r(t)}},3929:function(t,i,n){var e=n(7854),r=n(7850),s=e.TypeError;t.exports=function(t){if(r(t))throw s("The method doesn't accept regular expressions");return t}},1574:function(t,i,n){"use strict";var e=n(9781),r=n(1702),s=n(6916),o=n(7293),u=n(1956),a=n(5181),c=n(5296),h=n(7908),f=n(8361),l=Object.assign,v=Object.defineProperty,d=r([].concat);t.exports=!l||o((function(){if(e&&1!==l({b:1},l(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},i={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){i[t]=t})),7!=l({},t)[n]||u(l({},i)).join("")!=r}))?function(t,i){for(var n=h(t),r=arguments.length,o=1,l=a.f,v=c.f;r>o;)for(var p,b=f(arguments[o++]),m=l?d(u(b),l(b)):u(b),g=m.length,y=0;g>y;)p=m[y++],e&&!s(v,b,p)||(n[p]=b[p]);return n}:l},30:function(t,i,n){var e,r=n(9670),s=n(6048),o=n(748),u=n(3501),a=n(490),c=n(317),h=n(6200),f=h("IE_PROTO"),l=function(){},v=function(t){return"<script>"+t+"</"+"script>"},d=function(t){t.write(v("")),t.close();var i=t.parentWindow.Object;return t=null,i},p=function(){try{e=new ActiveXObject("htmlfile")}catch(t){}var t,i;p="undefined"!=typeof document?document.domain&&e?d(e):((i=c("iframe")).style.display="none",a.appendChild(i),i.src=String("javascript:"),(t=i.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):d(e);for(var n=o.length;n--;)delete p.prototype[o[n]];return p()};u[f]=!0,t.exports=Object.create||function(t,i){var n;return null!==t?(l.prototype=r(t),n=new l,l.prototype=null,n[f]=t):n=p(),void 0===i?n:s.f(n,i)}},6048:function(t,i,n){var e=n(9781),r=n(3353),s=n(3070),o=n(9670),u=n(5656),a=n(1956);i.f=e&&!r?Object.defineProperties:function(t,i){o(t);for(var n,e=u(i),r=a(i),c=r.length,h=0;c>h;)s.f(t,n=r[h++],e[n]);return t}},3070:function(t,i,n){var e=n(7854),r=n(9781),s=n(4664),o=n(3353),u=n(9670),a=n(4948),c=e.TypeError,h=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",v="configurable",d="writable";i.f=r?o?function(t,i,n){if(u(t),i=a(i),u(n),"function"==typeof t&&"prototype"===i&&"value"in n&&d in n&&!n.writable){var e=f(t,i);e&&e.writable&&(t[i]=n.value,n={configurable:v in n?n.configurable:e.configurable,enumerable:l in n?n.enumerable:e.enumerable,writable:!1})}return h(t,i,n)}:h:function(t,i,n){if(u(t),i=a(i),u(n),s)try{return h(t,i,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[i]=n.value),t}},1236:function(t,i,n){var e=n(9781),r=n(6916),s=n(5296),o=n(9114),u=n(5656),a=n(4948),c=n(2597),h=n(4664),f=Object.getOwnPropertyDescriptor;i.f=e?f:function(t,i){if(t=u(t),i=a(i),h)try{return f(t,i)}catch(t){}if(c(t,i))return o(!r(s.f,t,i),t[i])}},8006:function(t,i,n){var e=n(6324),r=n(748).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(t){return e(t,r)}},5181:function(t,i){i.f=Object.getOwnPropertySymbols},9518:function(t,i,n){var e=n(7854),r=n(2597),s=n(614),o=n(7908),u=n(6200),a=n(8544),c=u("IE_PROTO"),h=e.Object,f=h.prototype;t.exports=a?h.getPrototypeOf:function(t){var i=o(t);if(r(i,c))return i[c];var n=i.constructor;return s(n)&&i instanceof n?n.prototype:i instanceof h?f:null}},7976:function(t,i,n){var e=n(1702);t.exports=e({}.isPrototypeOf)},6324:function(t,i,n){var e=n(1702),r=n(2597),s=n(5656),o=n(1318).indexOf,u=n(3501),a=e([].push);t.exports=function(t,i){var n,e=s(t),c=0,h=[];for(n in e)!r(u,n)&&r(e,n)&&a(h,n);for(;i.length>c;)r(e,n=i[c++])&&(~o(h,n)||a(h,n));return h}},1956:function(t,i,n){var e=n(6324),r=n(748);t.exports=Object.keys||function(t){return e(t,r)}},5296:function(t,i){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);i.f=r?function(t){var i=e(this,t);return!!i&&i.enumerable}:n},7674:function(t,i,n){var e=n(1702),r=n(9670),s=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,i=!1,n={};try{(t=e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),i=n instanceof Array}catch(t){}return function(n,e){return r(n),s(e),i?t(n,e):n.__proto__=e,n}}():void 0)},4699:function(t,i,n){var e=n(9781),r=n(1702),s=n(1956),o=n(5656),u=r(n(5296).f),a=r([].push),c=function(t){return function(i){for(var n,r=o(i),c=s(r),h=c.length,f=0,l=[];h>f;)n=c[f++],e&&!u(r,n)||a(l,t?[n,r[n]]:r[n]);return l}};t.exports={entries:c(!0),values:c(!1)}},288:function(t,i,n){"use strict";var e=n(1694),r=n(648);t.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}},2140:function(t,i,n){var e=n(7854),r=n(6916),s=n(614),o=n(111),u=e.TypeError;t.exports=function(t,i){var n,e;if("string"===i&&s(n=t.toString)&&!o(e=r(n,t)))return e;if(s(n=t.valueOf)&&!o(e=r(n,t)))return e;if("string"!==i&&s(n=t.toString)&&!o(e=r(n,t)))return e;throw u("Can't convert object to primitive value")}},3887:function(t,i,n){var e=n(5005),r=n(1702),s=n(8006),o=n(5181),u=n(9670),a=r([].concat);t.exports=e("Reflect","ownKeys")||function(t){var i=s.f(u(t)),n=o.f;return n?a(i,n(t)):i}},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:function(t,i,n){var e=n(9670),r=n(111),s=n(8523);t.exports=function(t,i){if(e(t),r(i)&&i.constructor===t)return i;var n=s.f(t);return(0,n.resolve)(i),n.promise}},8572:function(t){var i=function(){this.head=null,this.tail=null};i.prototype={add:function(t){var i={item:t,next:null};this.head?this.tail.next=i:this.head=i,this.tail=i},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=i},2248:function(t,i,n){var e=n(1320);t.exports=function(t,i,n){for(var r in i)e(t,r,i[r],n);return t}},1320:function(t,i,n){var e=n(7854),r=n(614),s=n(2597),o=n(8880),u=n(3505),a=n(2788),c=n(9909),h=n(6530).CONFIGURABLE,f=c.get,l=c.enforce,v=String(String).split("String");(t.exports=function(t,i,n,a){var c,f=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet,b=a&&void 0!==a.name?a.name:i;r(n)&&("Symbol("===String(b).slice(0,7)&&(b="["+String(b).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s(n,"name")||h&&n.name!==b)&&o(n,"name",b),(c=l(n)).source||(c.source=v.join("string"==typeof b?b:""))),t!==e?(f?!p&&t[i]&&(d=!0):delete t[i],d?t[i]=n:o(t,i,n)):d?t[i]=n:u(i,n)})(Function.prototype,"toString",(function(){return r(this)&&f(this).source||a(this)}))},4488:function(t,i,n){var e=n(7854).TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},3505:function(t,i,n){var e=n(7854),r=Object.defineProperty;t.exports=function(t,i){try{r(e,t,{value:i,configurable:!0,writable:!0})}catch(n){e[t]=i}return i}},6340:function(t,i,n){"use strict";var e=n(5005),r=n(3070),s=n(5112),o=n(9781),u=s("species");t.exports=function(t){var i=e(t),n=r.f;o&&i&&!i[u]&&n(i,u,{configurable:!0,get:function(){return this}})}},8003:function(t,i,n){var e=n(3070).f,r=n(2597),s=n(5112)("toStringTag");t.exports=function(t,i,n){t&&!n&&(t=t.prototype),t&&!r(t,s)&&e(t,s,{configurable:!0,value:i})}},6200:function(t,i,n){var e=n(2309),r=n(9711),s=e("keys");t.exports=function(t){return s[t]||(s[t]=r(t))}},5465:function(t,i,n){var e=n(7854),r=n(3505),s="__core-js_shared__",o=e[s]||r(s,{});t.exports=o},2309:function(t,i,n){var e=n(1913),r=n(5465);(t.exports=function(t,i){return r[t]||(r[t]=void 0!==i?i:{})})("versions",[]).push({version:"3.20.2",mode:e?"pure":"global",copyright:"© 2022 Denis Pushkarev (zloirock.ru)"})},6707:function(t,i,n){var e=n(9670),r=n(9483),s=n(5112)("species");t.exports=function(t,i){var n,o=e(t).constructor;return void 0===o||null==(n=e(o)[s])?i:r(n)}},8710:function(t,i,n){var e=n(1702),r=n(9303),s=n(1340),o=n(4488),u=e("".charAt),a=e("".charCodeAt),c=e("".slice),h=function(t){return function(i,n){var e,h,f=s(o(i)),l=r(n),v=f.length;return l<0||l>=v?t?"":void 0:(e=a(f,l))<55296||e>56319||l+1===v||(h=a(f,l+1))<56320||h>57343?t?u(f,l):e:t?c(f,l,l+2):h-56320+(e-55296<<10)+65536}};t.exports={codeAt:h(!1),charAt:h(!0)}},4986:function(t,i,n){var e=n(8113);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},6650:function(t,i,n){var e=n(1702),r=n(7466),s=n(1340),o=n(8415),u=n(4488),a=e(o),c=e("".slice),h=Math.ceil,f=function(t){return function(i,n,e){var o,f,l=s(u(i)),v=r(n),d=l.length,p=void 0===e?" ":s(e);return v<=d||""==p?l:((f=a(p,h((o=v-d)/p.length))).length>o&&(f=c(f,0,o)),t?l+f:f+l)}};t.exports={start:f(!1),end:f(!0)}},8415:function(t,i,n){"use strict";var e=n(7854),r=n(9303),s=n(1340),o=n(4488),u=e.RangeError;t.exports=function(t){var i=s(o(this)),n="",e=r(t);if(e<0||e==1/0)throw u("Wrong number of repetitions");for(;e>0;(e>>>=1)&&(i+=i))1&e&&(n+=i);return n}},261:function(t,i,n){var e,r,s,o,u=n(7854),a=n(2104),c=n(9974),h=n(614),f=n(2597),l=n(7293),v=n(490),d=n(206),p=n(317),b=n(6833),m=n(5268),g=u.setImmediate,y=u.clearImmediate,_=u.process,w=u.Dispatch,O=u.Function,E=u.MessageChannel,j=u.String,S=0,A={},M="onreadystatechange";try{e=u.location}catch(t){}var T=function(t){if(f(A,t)){var i=A[t];delete A[t],i()}},N=function(t){return function(){T(t)}},I=function(t){T(t.data)},R=function(t){u.postMessage(j(t),e.protocol+"//"+e.host)};g&&y||(g=function(t){var i=d(arguments,1);return A[++S]=function(){a(h(t)?t:O(t),void 0,i)},r(S),S},y=function(t){delete A[t]},m?r=function(t){_.nextTick(N(t))}:w&&w.now?r=function(t){w.now(N(t))}:E&&!b?(o=(s=new E).port2,s.port1.onmessage=I,r=c(o.postMessage,o)):u.addEventListener&&h(u.postMessage)&&!u.importScripts&&e&&"file:"!==e.protocol&&!l(R)?(r=R,u.addEventListener("message",I,!1)):r=M in p("script")?function(t){v.appendChild(p("script")).onreadystatechange=function(){v.removeChild(this),T(t)}}:function(t){setTimeout(N(t),0)}),t.exports={set:g,clear:y}},1400:function(t,i,n){var e=n(9303),r=Math.max,s=Math.min;t.exports=function(t,i){var n=e(t);return n<0?r(n+i,0):s(n,i)}},5656:function(t,i,n){var e=n(8361),r=n(4488);t.exports=function(t){return e(r(t))}},9303:function(t){var i=Math.ceil,n=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?n:i)(e)}},7466:function(t,i,n){var e=n(9303),r=Math.min;t.exports=function(t){return t>0?r(e(t),9007199254740991):0}},7908:function(t,i,n){var e=n(7854),r=n(4488),s=e.Object;t.exports=function(t){return s(r(t))}},7593:function(t,i,n){var e=n(7854),r=n(6916),s=n(111),o=n(2190),u=n(8173),a=n(2140),c=n(5112),h=e.TypeError,f=c("toPrimitive");t.exports=function(t,i){if(!s(t)||o(t))return t;var n,e=u(t,f);if(e){if(void 0===i&&(i="default"),n=r(e,t,i),!s(n)||o(n))return n;throw h("Can't convert object to primitive value")}return void 0===i&&(i="number"),a(t,i)}},4948:function(t,i,n){var e=n(7593),r=n(2190);t.exports=function(t){var i=e(t,"string");return r(i)?i:i+""}},1694:function(t,i,n){var e={};e[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(e)},1340:function(t,i,n){var e=n(7854),r=n(648),s=e.String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return s(t)}},6330:function(t,i,n){var e=n(7854).String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,i,n){var e=n(1702),r=0,s=Math.random(),o=e(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++r+s,36)}},3307:function(t,i,n){var e=n(133);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,i,n){var e=n(9781),r=n(7293);t.exports=e&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(t,i,n){var e=n(7854),r=n(2309),s=n(2597),o=n(9711),u=n(133),a=n(3307),c=r("wks"),h=e.Symbol,f=h&&h.for,l=a?h:h&&h.withoutSetter||o;t.exports=function(t){if(!s(c,t)||!u&&"string"!=typeof c[t]){var i="Symbol."+t;u&&s(h,t)?c[t]=h[t]:c[t]=a&&f?f(i):l(i)}return c[t]}},9826:function(t,i,n){"use strict";var e=n(2109),r=n(2092).find,s=n(1223),o="find",u=!0;o in[]&&Array(1).find((function(){u=!1})),e({target:"Array",proto:!0,forced:u},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s(o)},4944:function(t,i,n){"use strict";var e=n(2109),r=n(6790),s=n(7908),o=n(6244),u=n(9303),a=n(5417);e({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,i=s(this),n=o(i),e=a(i,0);return e.length=r(e,i,i,n,0,void 0===t?1:u(t)),e}})},6699:function(t,i,n){"use strict";var e=n(2109),r=n(1318).includes,s=n(1223);e({target:"Array",proto:!0},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},6992:function(t,i,n){"use strict";var e=n(5656),r=n(1223),s=n(7497),o=n(9909),u=n(3070).f,a=n(654),c=n(1913),h=n(9781),f="Array Iterator",l=o.set,v=o.getterFor(f);t.exports=a(Array,"Array",(function(t,i){l(this,{type:f,target:e(t),index:0,kind:i})}),(function(){var t=v(this),i=t.target,n=t.kind,e=t.index++;return!i||e>=i.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:e,done:!1}:"values"==n?{value:i[e],done:!1}:{value:[e,i[e]],done:!1}}),"values");var d=s.Arguments=s.Array;if(r("keys"),r("values"),r("entries"),!c&&h&&"values"!==d.name)try{u(d,"name",{value:"values"})}catch(t){}},3792:function(t,i,n){n(1223)("flat")},9601:function(t,i,n){var e=n(2109),r=n(1574);e({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},1539:function(t,i,n){var e=n(1694),r=n(1320),s=n(288);e||r(Object.prototype,"toString",s,{unsafe:!0})},2479:function(t,i,n){var e=n(2109),r=n(4699).values;e({target:"Object",stat:!0},{values:function(t){return r(t)}})},7727:function(t,i,n){"use strict";var e=n(2109),r=n(1913),s=n(3366),o=n(7293),u=n(5005),a=n(614),c=n(6707),h=n(9478),f=n(1320);if(e({target:"Promise",proto:!0,real:!0,forced:!!s&&o((function(){s.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var i=c(this,u("Promise")),n=a(t);return this.then(n?function(n){return h(i,t()).then((function(){return n}))}:t,n?function(n){return h(i,t()).then((function(){throw n}))}:t)}}),!r&&a(s)){var l=u("Promise").prototype.finally;s.prototype.finally!==l&&f(s.prototype,"finally",l,{unsafe:!0})}},8674:function(t,i,n){"use strict";var e,r,s,o,u=n(2109),a=n(1913),c=n(7854),h=n(5005),f=n(6916),l=n(3366),v=n(1320),d=n(2248),p=n(7674),b=n(8003),m=n(6340),g=n(9662),y=n(614),_=n(111),w=n(5787),O=n(2788),E=n(408),j=n(7072),S=n(6707),A=n(261).set,M=n(5948),T=n(9478),N=n(842),I=n(8523),R=n(2534),L=n(8572),C=n(9909),k=n(4705),D=n(5112),P=n(7871),x=n(5268),U=n(7392),F=D("species"),B="Promise",z=C.getterFor(B),V=C.set,G=C.getterFor(B),H=l&&l.prototype,Y=l,q=H,W=c.TypeError,Q=c.document,Z=c.process,$=I.f,X=$,J=!!(Q&&Q.createEvent&&c.dispatchEvent),K=y(c.PromiseRejectionEvent),tt="unhandledrejection",it=!1,nt=k(B,(function(){var t=O(Y),i=t!==String(Y);if(!i&&66===U)return!0;if(a&&!q.finally)return!0;if(U>=51&&/native code/.test(t))return!1;var n=new Y((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};return(n.constructor={})[F]=e,!(it=n.then((function(){}))instanceof e)||!i&&P&&!K})),et=nt||!j((function(t){Y.all(t).catch((function(){}))})),rt=function(t){var i;return!(!_(t)||!y(i=t.then))&&i},st=function(t,i){var n,e,r,s=i.value,o=1==i.state,u=o?t.ok:t.fail,a=t.resolve,c=t.reject,h=t.domain;try{u?(o||(2===i.rejection&&ht(i),i.rejection=1),!0===u?n=s:(h&&h.enter(),n=u(s),h&&(h.exit(),r=!0)),n===t.promise?c(W("Promise-chain cycle")):(e=rt(n))?f(e,n,a,c):a(n)):c(s)}catch(t){h&&!r&&h.exit(),c(t)}},ot=function(t,i){t.notified||(t.notified=!0,M((function(){for(var n,e=t.reactions;n=e.get();)st(n,t);t.notified=!1,i&&!t.rejection&&at(t)})))},ut=function(t,i,n){var e,r;J?((e=Q.createEvent("Event")).promise=i,e.reason=n,e.initEvent(t,!1,!0),c.dispatchEvent(e)):e={promise:i,reason:n},!K&&(r=c["on"+t])?r(e):t===tt&&N("Unhandled promise rejection",n)},at=function(t){f(A,c,(function(){var i,n=t.facade,e=t.value;if(ct(t)&&(i=R((function(){x?Z.emit("unhandledRejection",e,n):ut(tt,n,e)})),t.rejection=x||ct(t)?2:1,i.error))throw i.value}))},ct=function(t){return 1!==t.rejection&&!t.parent},ht=function(t){f(A,c,(function(){var i=t.facade;x?Z.emit("rejectionHandled",i):ut("rejectionhandled",i,t.value)}))},ft=function(t,i,n){return function(e){t(i,e,n)}},lt=function(t,i,n){t.done||(t.done=!0,n&&(t=n),t.value=i,t.state=2,ot(t,!0))},vt=function(t,i,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===i)throw W("Promise can't be resolved itself");var e=rt(i);e?M((function(){var n={done:!1};try{f(e,i,ft(vt,n,t),ft(lt,n,t))}catch(i){lt(n,i,t)}})):(t.value=i,t.state=1,ot(t,!1))}catch(i){lt({done:!1},i,t)}}};if(nt&&(q=(Y=function(t){w(this,q),g(t),f(e,this);var i=z(this);try{t(ft(vt,i),ft(lt,i))}catch(t){lt(i,t)}}).prototype,(e=function(t){V(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new L,rejection:!1,state:0,value:void 0})}).prototype=d(q,{then:function(t,i){var n=G(this),e=$(S(this,Y));return n.parent=!0,e.ok=!y(t)||t,e.fail=y(i)&&i,e.domain=x?Z.domain:void 0,0==n.state?n.reactions.add(e):M((function(){st(e,n)})),e.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new e,i=z(t);this.promise=t,this.resolve=ft(vt,i),this.reject=ft(lt,i)},I.f=$=function(t){return t===Y||t===s?new r(t):X(t)},!a&&y(l)&&H!==Object.prototype)){o=H.then,it||(v(H,"then",(function(t,i){var n=this;return new Y((function(t,i){f(o,n,t,i)})).then(t,i)}),{unsafe:!0}),v(H,"catch",q.catch,{unsafe:!0}));try{delete H.constructor}catch(t){}p&&p(H,q)}u({global:!0,wrap:!0,forced:nt},{Promise:Y}),b(Y,B,!1,!0),m(B),s=h(B),u({target:B,stat:!0,forced:nt},{reject:function(t){var i=$(this);return f(i.reject,void 0,t),i.promise}}),u({target:B,stat:!0,forced:a||nt},{resolve:function(t){return T(a&&this===s?Y:this,t)}}),u({target:B,stat:!0,forced:et},{all:function(t){var i=this,n=$(i),e=n.resolve,r=n.reject,s=R((function(){var n=g(i.resolve),s=[],o=0,u=1;E(t,(function(t){var a=o++,c=!1;u++,f(n,i,t).then((function(t){c||(c=!0,s[a]=t,--u||e(s))}),r)})),--u||e(s)}));return s.error&&r(s.value),n.promise},race:function(t){var i=this,n=$(i),e=n.reject,r=R((function(){var r=g(i.resolve);E(t,(function(t){f(r,i,t).then(n.resolve,e)}))}));return r.error&&e(r.value),n.promise}})},2023:function(t,i,n){"use strict";var e=n(2109),r=n(1702),s=n(3929),o=n(4488),u=n(1340),a=n(4964),c=r("".indexOf);e({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~c(u(o(this)),u(s(t)),arguments.length>1?arguments[1]:void 0)}})},8783:function(t,i,n){"use strict";var e=n(8710).charAt,r=n(1340),s=n(9909),o=n(654),u="String Iterator",a=s.set,c=s.getterFor(u);o(String,"String",(function(t){a(this,{type:u,string:r(t),index:0})}),(function(){var t,i=c(this),n=i.string,r=i.index;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),i.index+=t.length,{value:t,done:!1})}))},3112:function(t,i,n){"use strict";var e=n(2109),r=n(6650).start;e({target:"String",proto:!0,forced:n(4986)},{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},8927:function(t,i,n){"use strict";var e=n(260),r=n(2092).every,s=e.aTypedArray;(0,e.exportTypedArrayMethod)("every",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0)}))},3948:function(t,i,n){var e=n(7854),r=n(8324),s=n(8509),o=n(6992),u=n(8880),a=n(5112),c=a("iterator"),h=a("toStringTag"),f=o.values,l=function(t,i){if(t){if(t[c]!==f)try{u(t,c,f)}catch(i){t[c]=f}if(t[h]||u(t,h,i),r[i])for(var n in o)if(t[n]!==o[n])try{u(t,n,o[n])}catch(i){t[n]=o[n]}}};for(var v in r)l(e[v]&&e[v].prototype,v);l(s,"DOMTokenList")},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(7207),a=n(8380),c=r()(!1),h=o()(u.Z),f=o()(a.Z);c.push([t.id,".vp-nfl-branding-container{width:100%;height:36px;position:relative;z-index:22;background:#011832;background:-moz-linear-gradient(left, #011832 0%, #103155 40%, #011832 100%);background-image:-webkit-linear-gradient(left, #011832 0%, #103155 40%, #011832 100%);background-image:-o-linear-gradient(left, #011832 0%, #103155 40%, #011832 100%);background-image:linear-gradient(left, #011832 0%, #103155 40%, #011832 100%);*background:#011832;white-space:nowrap}.vp-browser-mobile .vp-nfl-branding-container{height:52px}.vp-nfl-branding{margin:10px auto;display:inline-block;zoom:1;width:30%;height:100%}.vp-browser-mobile .vp-nfl-branding{margin:15px auto}.vp-nfl-branding-container .vp-nfl-brand{display:inline-block;height:100%;background-position:center;margin-left:10px;background-repeat:no-repeat;background-size:100%}.vp-nfl-branding-container .vp-nfl-brand-span{background-image:url("+h+");width:20px}.vp-browser-mobile .vp-nfl-branding-container .vp-nfl-brand-span{width:30px;height:30px}.vp-nfl-branding-container .vp-nfl-brand-logo{background-image:url("+f+");width:110px}.vp-browser-mobile .vp-nfl-branding-container .vp-nfl-brand-logo{margin-left:50px;margin-top:2px;width:157px;height:20px}",""]),i.default=c},3847:function(t,i,n){"use strict";n.r(i);var e=n(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)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(a," */")),s=e.sources.map((function(t){return"/*# sourceURL=".concat(e.sourceRoot||"").concat(t," */")}));return[n].concat(s).concat([r]).join("\n")}var o,u,a;return[n].join("\n")}(i,t);return i[2]?"@media ".concat(i[2]," {").concat(n,"}"):n})).join("")},i.i=function(t,n,e){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(e)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(r[o]=!0)}for(var u=0;u<t.length;u++){var a=[].concat(t[u]);e&&r[a[0]]||(n&&(a[2]?a[2]="".concat(n," and ").concat(a[2]):a[2]=n),i.push(a))}},i}},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 a(t){"}"===t.n.substr(t.n.length-1)&&(t.n=t.n.substring(0,t.n.length-1))}function c(t){return t.trim?t.trim():t.replace(/^\s*|\s*$/g,"")}function h(t,i,n){if(i.charAt(n)!=t.charAt(0))return!1;for(var e=1,r=t.length;e<r;e++)if(i.charAt(n+e)!=t.charAt(e))return!1;return!0}t.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,XF:9,"{":10,"&":11,JF:12},t.scan=function(n,e){var r=n.length,s=0,o=null,u=null,f="",l=[],v=!1,d=0,p=0,b="{{",m="}}";function g(){f.length>0&&(l.push({tag:"_t",text:new String(f)}),f="")}function y(n,e){if(g(),n&&function(){for(var n=!0,e=p;e<l.length;e++)if(!(n=t.tags[l[e].tag]<t.tags.XF||"_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 _(t,i){var n="="+m,e=t.indexOf(n,i),r=c(t.substring(t.indexOf("=",i)+1,e)).split(" ");return b=r[0],m=r[r.length-1],e+n.length-1}for(e&&(e=e.split(" "),b=e[0],m=e[1]),d=0;d<r;d++)0==s?h(b,n,d)?(--d,g(),s=1):"\n"==n.charAt(d)?y(v):f+=n.charAt(d):1==s?(d+=b.length-1,"="==(o=(u=t.tags[n.charAt(d+1)])?n.charAt(d+1):"_v")?(d=_(n,d),s=0):(u&&d++,s=2),v=d):h(m,n,d)?(l.push({tag:o,n:c(f),otag:b,ctag:m,i:"/"==o?v-b.length:d+m.length}),f="",d+=m.length-1,s=0,"{"==o&&("}}"==m?d++:a(l[l.length-1]))):f+=n.charAt(d);return y(v,!0),l};var f={JF:!0,"\n":!0,$:!0,"/":!0};function l(i,n,e,r){var s,o=[],u=null,a=null;for(s=e[e.length-1];i.length>0;){if(a=i.shift(),s&&"<"==s.tag&&!(a.tag in f))throw new Error("Illegal content in < super tag.");if(t.tags[a.tag]<=t.tags.$||v(a,r))e.push(a),a.nodes=l(i,a.tag,e,r);else{if("/"==a.tag){if(0===e.length)throw new Error("Closing tag without opener: /"+a.n);if(u=e.pop(),a.n!=u.n&&!d(a.n,u.n,r))throw new Error("Nesting error: "+u.n+" vs. "+a.n);return u.end=a.i,o}"\n"==a.tag&&(a.last=0==i.length||"\n"==i[0].tag)}o.push(a)}if(e.length>0)throw new Error("missing closing tag: "+e.pop().n);return o}function v(t,i){for(var n=0,e=i.length;n<e;n++)if(i[n].o==t.n)return t.tag="#",!0}function d(t,i,n){for(var e=0,r=n.length;e<r;e++)if(n[e].c==t&&n[e].o==i)return!0}function p(t){var i=[];for(var n in t.partials)i.push('"'+m(n)+'":{name:"'+m(t.partials[n].name)+'", '+p(t.partials[n])+"}");return"partials: {"+i.join(",")+"}, subs: "+function(t){var i=[];for(var n in t)i.push('"'+m(n)+'": function(c,p,t,i) {'+t[n]+"}");return"{ "+i.join(",")+" }"}(t.subs)}t.stringify=function(i,n,e){return"{code: function (c,p,i) { "+t.wrapMain(i.code)+" },"+p(i)+"}"};var b=0;function m(t){return t.replace(s,"\\\\").replace(n,'\\"').replace(e,"\\n").replace(r,"\\r").replace(o,"\\u2028").replace(u,"\\u2029")}function g(t){return~t.indexOf(".")?"d":"f"}function y(t,i){var n="<"+(i.prefix||"")+t.n+b++;return i.partials[n]={name:t.n,partials:{}},i.code+='t.b(t.rp("'+m(n)+'",c,p,"'+(t.indent||"")+'"));',n}function _(t,i){i.code+="t.b(t.t(t."+g(t.n)+'("'+m(t.n)+'",c,p,0)));'}function w(t){return"t.b("+t+");"}t.generate=function(i,n,e){b=0;var r={code:"",subs:{},partials:{}};return t.walk(i,r),e.asString?this.stringify(r,n,e):this.makeTemplate(r,n,e)},t.wrapMain=function(t){return'var t=this;t.b(i=i||"");'+t+"return t.fl();"},t.template=t.Template,t.makeTemplate=function(t,i,n){var e=this.makePartials(t);return e.code=new Function("c","p","i",this.wrapMain(t.code)),new this.template(e,i,this,n)},t.makePartials=function(t){var i,n={subs:{},partials:t.partials,name:t.name};for(i in n.partials)n.partials[i]=this.makePartials(n.partials[i]);for(i in t.subs)n.subs[i]=new Function("c","p","t","i",t.subs[i]);return n},t.codegen={"#":function(i,n){n.code+="if(t.s(t."+g(i.n)+'("'+m(i.n)+'",c,p,1),c,p,0,'+i.i+","+i.end+',"'+i.otag+" "+i.ctag+'")){t.rs(c,p,function(c,p,t){',t.walk(i.nodes,n),n.code+="});c.pop();}"},"^":function(i,n){n.code+="if(!t.s(t."+g(i.n)+'("'+m(i.n)+'",c,p,1),c,p,1,0,0,"")){',t.walk(i.nodes,n),n.code+="};"},">":y,"<":function(i,n){var e={partials:{},code:"",subs:{},inPartial:!0};t.walk(i.nodes,e);var r=n.partials[y(i,n)];r.subs=e.subs,r.partials=e.partials},$:function(i,n){var e={subs:{},code:"",partials:n.partials,prefix:i.n};t.walk(i.nodes,e),n.subs[i.n]=e.code,n.inPartial||(n.code+='t.sub("'+m(i.n)+'",c,p,i);')},"\n":function(t,i){i.code+=w('"\\n"'+(t.last?"":" + i"))},XF:function(t,i){i.code+="t.b(t.v(t."+g(t.n)+'("'+m(t.n)+'",c,p,0)));'},JF:function(t,i){i.code+=w('"'+m(t.text)+'"')},"{":_,"&":_},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=a(t),u.test(t)?t.replace(n,"&amp;").replace(e,"&lt;").replace(r,"&gt;").replace(s,"&#39;").replace(o,"&quot;"):t},t:a,render:function(t,i,n){return this.ri([t],i||{},n)},ri:function(t,i,n){return this.r(t,i,n)},ep:function(t,i){var n=this.partials[t],e=i[n.name];if(n.instance&&n.base==e)return n.instance;if("string"==typeof e){if(!this.c)throw new Error("No compiler available.");e=this.c.compile(e,this.options)}if(!e)return null;if(this.partials[t].base=e,n.subs){for(key in i.stackText||(i.stackText={}),n.subs)i.stackText[key]||(i.stackText[key]=void 0!==this.activeSub&&i.stackText[this.activeSub]?i.stackText[this.activeSub]:this.text);e=function(t,i,n,e,r,s){function o(){}function u(){}var a;o.prototype=t,u.prototype=t.subs;var c=new o;for(a in c.subs=new u,c.subsText={},c.buf="",e=e||{},c.stackSubs=e,c.subsText=s,i)e[a]||(e[a]=i[a]);for(a in e)c.subs[a]=e[a];for(a in r=r||{},c.stackPartials=r,n)r[a]||(r[a]=n[a]);for(a in r)c.partials[a]=r[a];return c}(e,n.subs,n.partials,this.stackSubs,this.stackPartials,i.stackText)}return this.partials[t].instance=e,e},rp:function(t,i,n,e){var r=this.ep(t,n);return r?r.ri(i,n,e):""},rs:function(t,i,n){var e=t[t.length-1];if(c(e))for(var r=0;r<e.length;r++)t.push(e[r]),n(t,i,this),t.pop();else n(t,i,this)},s:function(t,i,n,e,r,s,o){var u;return(!c(t)||0!==t.length)&&("function"==typeof t&&(t=this.ms(t,i,n,e,r,s,o)),u=!!t,!e&&u&&i&&i.push("object"==typeof t?t:i[i.length-1]),u)},d:function(t,n,e,r){var s,o=t.split("."),u=this.f(o[0],n,e,r),a=this.options.modelGet,h=null;if("."===t&&c(n[n.length-2]))u=n[n.length-1];else for(var f=1;f<o.length;f++)void 0!==(s=i(o[f],u,a))?(h=u,u=s):u="";return!(r&&!u)&&(r||"function"!=typeof u||(n.push(h),u=this.mv(u,n,e),n.pop()),u)},f:function(t,n,e,r){for(var s=!1,o=!1,u=this.options.modelGet,a=n.length-1;a>=0;a--)if(void 0!==(s=i(t,n[a],u))){o=!0;break}return o?(r||"function"!=typeof s||(s=this.mv(s,n,e)),s):!r&&""},ls:function(t,i,n,e,r){var s=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(a(t.call(i,e)),i,n)),this.options.delimiters=s,!1},ct:function(t,i,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(t,this.options).render(i,n)},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf="",t},ms:function(t,i,n,e,r,s,o){var u,a=i[i.length-1],c=t.call(a);return"function"==typeof c?!!e||(u=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,a,n,u.substring(r,s),o)):c},mv:function(t,i,n){var e=i[i.length-1],r=t.call(e);return"function"==typeof r?this.ct(a(r.call(e)),e,n):r},sub:function(t,i,n,e){var r=this.subs[t];r&&(this.activeSub=t,r(i,n,this,e),this.activeSub=!1)}};var n=/&/g,e=/</g,r=/>/g,s=/\'/g,o=/\"/g,u=/[&<>\"\']/;function a(t){return String(null==t?"":t)}var c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(i)},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 a(t,i,n,e,r){var s=i.throwError,o=i.throwAll;i.throwError=!1,i.throwAll=!1;var u=this.validateSchema(t,r,i,n);return i.throwError=s,i.throwAll=o,!u.valid&&e instanceof Function&&e(u),u.valid}function c(t,i){if(Object.hasOwnProperty.call(t,i))return t[i];if(i in t)for(;t=Object.getPrototypeOf(t);)if(Object.propertyIsEnumerable.call(t,i))return t[i]}function h(t,i,n,e,r,s){if(this.types.object(t)&&(!i.properties||void 0===i.properties[r]))if(!1===i.additionalProperties)s.addError({name:"additionalProperties",argument:r,message:"is not allowed to have the additional property "+JSON.stringify(r)});else{var o=i.additionalProperties||{};"function"==typeof n.preValidateProperty&&n.preValidateProperty(t,r,o,n,e);var u=this.validateSchema(t[r],o,n,e.makeChild(o,r));u.instance!==s.instance[r]&&(s.instance[r]=u.instance),s.importErrors(u)}}u.type=function(t,i,n,e){if(void 0===t)return null;var s=new r(t,i,n,e),o=Array.isArray(i.type)?i.type:[i.type];if(!o.some(this.testType.bind(this,t,i,n,e))){var u=o.map((function(t){if(t){var i=t.$id||t.id;return i?"<"+i+">":t+""}}));s.addError({name:"type",argument:u,message:"is not of a type(s) "+u})}return s},u.anyOf=function(t,i,n,e){if(void 0===t)return null;var o=new r(t,i,n,e),u=new r(t,i,n,e);if(!Array.isArray(i.anyOf))throw new s("anyOf must be an array");if(!i.anyOf.some(a.bind(this,t,n,e,(function(t){u.importErrors(t)})))){var c=i.anyOf.map((function(t,i){var n=t.$id||t.id;return n?"<"+n+">":t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+i+"]"}));n.nestedErrors&&o.importErrors(u),o.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return o},u.allOf=function(t,i,n,e){if(void 0===t)return null;if(!Array.isArray(i.allOf))throw new s("allOf must be an array");var o=new r(t,i,n,e),u=this;return i.allOf.forEach((function(i,r){var s=u.validateSchema(t,i,n,e);if(!s.valid){var a=i.$id||i.id||i.title&&JSON.stringify(i.title)||i.$ref&&"<"+i.$ref+">"||"[subschema "+r+"]";o.addError({name:"allOf",argument:{id:a,length:s.errors.length,valid:s},message:"does not match allOf schema "+a+" with "+s.errors.length+" error[s]:"}),o.importErrors(s)}})),o},u.oneOf=function(t,i,n,e){if(void 0===t)return null;if(!Array.isArray(i.oneOf))throw new s("oneOf must be an array");var o=new r(t,i,n,e),u=new r(t,i,n,e),c=i.oneOf.filter(a.bind(this,t,n,e,(function(t){u.importErrors(t)}))).length,h=i.oneOf.map((function(t,i){return t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+i+"]"}));return 1!==c&&(n.nestedErrors&&o.importErrors(u),o.addError({name:"oneOf",argument:h,message:"is not exactly one from "+h.join(",")})),o},u.if=function(t,i,n,s){if(void 0===t)return null;if(!e.isSchema(i.if))throw new Error('Expected "if" keyword to be a schema');var o,u=a.call(this,t,n,s,null,i.if),c=new r(t,i,n,s);if(u){if(void 0===i.then)return;if(!e.isSchema(i.then))throw new Error('Expected "then" keyword to be a schema');o=this.validateSchema(t,i.then,n,s.makeChild(i.then)),c.importErrors(o)}else{if(void 0===i.else)return;if(!e.isSchema(i.else))throw new Error('Expected "else" keyword to be a schema');o=this.validateSchema(t,i.else,n,s.makeChild(i.else)),c.importErrors(o)}return c},u.propertyNames=function(t,i,n,o){if(this.types.object(t)){var u=new r(t,i,n,o),a=void 0!==i.propertyNames?i.propertyNames:{};if(!e.isSchema(a))throw new s('Expected "propertyNames" to be a schema (object or boolean)');for(var h in t)if(void 0!==c(t,h)){var f=this.validateSchema(h,a,n,o.makeChild(a));u.importErrors(f)}return u}},u.properties=function(t,i,n,e){if(this.types.object(t)){var o=new r(t,i,n,e),u=i.properties||{};for(var a in u){var h=u[a];if(void 0!==h){if(null===h)throw new s('Unexpected null, expected schema in "properties"');"function"==typeof n.preValidateProperty&&n.preValidateProperty(t,a,h,n,e);var f=c(t,a),l=this.validateSchema(f,h,n,e.makeChild(h,a));l.instance!==o.instance[a]&&(o.instance[a]=l.instance),o.importErrors(l)}}return o}},u.patternProperties=function(t,i,n,e){if(this.types.object(t)){var o=new r(t,i,n,e),u=i.patternProperties||{};for(var a in t){var c=!0;for(var f in u){var l=u[f];if(void 0!==l){if(null===l)throw new s('Unexpected null, expected schema in "patternProperties"');try{var v=new RegExp(f,"u")}catch(t){v=new RegExp(f)}if(v.test(a)){c=!1,"function"==typeof n.preValidateProperty&&n.preValidateProperty(t,a,l,n,e);var d=this.validateSchema(t[a],l,n,e.makeChild(l,a));d.instance!==o.instance[a]&&(o.instance[a]=d.instance),o.importErrors(d)}}}c&&h.call(this,t,i,n,e,a,o)}return o}},u.additionalProperties=function(t,i,n,e){if(this.types.object(t)){if(i.patternProperties)return null;var s=new r(t,i,n,e);for(var o in t)h.call(this,t,i,n,e,o,s);return s}},u.minProperties=function(t,i,n,e){if(this.types.object(t)){var s=new r(t,i,n,e);return Object.keys(t).length>=i.minProperties||s.addError({name:"minProperties",argument:i.minProperties,message:"does not meet minimum property length of "+i.minProperties}),s}},u.maxProperties=function(t,i,n,e){if(this.types.object(t)){var s=new r(t,i,n,e);return Object.keys(t).length<=i.maxProperties||s.addError({name:"maxProperties",argument:i.maxProperties,message:"does not meet maximum property length of "+i.maxProperties}),s}},u.items=function(t,i,n,e){var s=this;if(this.types.array(t)&&i.items){var o=new r(t,i,n,e);return t.every((function(t,r){var u=Array.isArray(i.items)?i.items[r]||i.additionalItems:i.items;if(void 0===u)return!0;if(!1===u)return o.addError({name:"items",message:"additionalItems not permitted"}),!1;var a=s.validateSchema(t,u,n,e.makeChild(u,r));return a.instance!==o.instance[r]&&(o.instance[r]=a.instance),o.importErrors(a),!0})),o}},u.minimum=function(t,i,n,e){if(this.types.number(t)){var s=new r(t,i,n,e);return i.exclusiveMinimum&&!0===i.exclusiveMinimum?t>i.minimum||s.addError({name:"minimum",argument:i.minimum,message:"must be greater than "+i.minimum}):t>=i.minimum||s.addError({name:"minimum",argument:i.minimum,message:"must be greater than or equal to "+i.minimum}),s}},u.maximum=function(t,i,n,e){if(this.types.number(t)){var s=new r(t,i,n,e);return i.exclusiveMaximum&&!0===i.exclusiveMaximum?t<i.maximum||s.addError({name:"maximum",argument:i.maximum,message:"must be less than "+i.maximum}):t<=i.maximum||s.addError({name:"maximum",argument:i.maximum,message:"must be less than or equal to "+i.maximum}),s}},u.exclusiveMinimum=function(t,i,n,e){if("boolean"!=typeof i.exclusiveMaximum&&this.types.number(t)){var s=new r(t,i,n,e);return t>i.exclusiveMinimum||s.addError({name:"exclusiveMinimum",argument:i.exclusiveMinimum,message:"must be strictly greater than "+i.exclusiveMinimum}),s}},u.exclusiveMaximum=function(t,i,n,e){if("boolean"!=typeof i.exclusiveMaximum&&this.types.number(t)){var s=new r(t,i,n,e);return t<i.exclusiveMaximum||s.addError({name:"exclusiveMaximum",argument:i.exclusiveMaximum,message:"must be strictly less than "+i.exclusiveMaximum}),s}};var f=function(t,i,n,o,u,a){if(this.types.number(t)){var c=i[u];if(0==c)throw new s(u+" cannot be zero");var h=new r(t,i,n,o),f=e.getDecimalPlaces(t),l=e.getDecimalPlaces(c),v=Math.max(f,l),d=Math.pow(10,v);return Math.round(t*d)%Math.round(c*d)!=0&&h.addError({name:u,argument:c,message:a+JSON.stringify(c)}),h}};function l(t,i,n){var r,s=n.length;for(r=i+1;r<s;r++)if(e.deepCompareStrict(t,n[r]))return!1;return!0}u.multipleOf=function(t,i,n,e){return f.call(this,t,i,n,e,"multipleOf","is not a multiple of (divisible by) ")},u.divisibleBy=function(t,i,n,e){return f.call(this,t,i,n,e,"divisibleBy","is not divisible by (multiple of) ")},u.required=function(t,i,n,e){var s=new r(t,i,n,e);return void 0===t&&!0===i.required?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(i.required)&&i.required.forEach((function(i){void 0===c(t,i)&&s.addError({name:"required",argument:i,message:"requires property "+JSON.stringify(i)})})),s},u.pattern=function(t,i,n,e){if(this.types.string(t)){var s=new r(t,i,n,e),o=i.pattern;try{var u=new RegExp(o,"u")}catch(t){u=new RegExp(o)}return t.match(u)||s.addError({name:"pattern",argument:i.pattern,message:"does not match pattern "+JSON.stringify(i.pattern.toString())}),s}},u.format=function(t,i,n,s){if(void 0!==t){var o=new r(t,i,n,s);return o.disableFormat||e.isFormat(t,i.format,this)||o.addError({name:"format",argument:i.format,message:"does not conform to the "+JSON.stringify(i.format)+" format"}),o}},u.minLength=function(t,i,n,e){if(this.types.string(t)){var s=new r(t,i,n,e),o=t.match(/[\uDC00-\uDFFF]/g);return t.length-(o?o.length:0)>=i.minLength||s.addError({name:"minLength",argument:i.minLength,message:"does not meet minimum length of "+i.minLength}),s}},u.maxLength=function(t,i,n,e){if(this.types.string(t)){var s=new r(t,i,n,e),o=t.match(/[\uDC00-\uDFFF]/g);return t.length-(o?o.length:0)<=i.maxLength||s.addError({name:"maxLength",argument:i.maxLength,message:"does not meet maximum length of "+i.maxLength}),s}},u.minItems=function(t,i,n,e){if(this.types.array(t)){var s=new r(t,i,n,e);return t.length>=i.minItems||s.addError({name:"minItems",argument:i.minItems,message:"does not meet minimum length of "+i.minItems}),s}},u.maxItems=function(t,i,n,e){if(this.types.array(t)){var s=new r(t,i,n,e);return t.length<=i.maxItems||s.addError({name:"maxItems",argument:i.maxItems,message:"does not meet maximum length of "+i.maxItems}),s}},u.uniqueItems=function(t,i,n,e){if(!0===i.uniqueItems&&this.types.array(t)){var s=new r(t,i,n,e);return t.every(l)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}},u.dependencies=function(t,i,n,e){if(this.types.object(t)){var s=new r(t,i,n,e);for(var o in i.dependencies)if(void 0!==t[o]){var u=i.dependencies[o],a=e.makeChild(u,o);if("string"==typeof u&&(u=[u]),Array.isArray(u))u.forEach((function(i){void 0===t[i]&&s.addError({name:"dependencies",argument:a.propertyPath,message:"property "+i+" not found, required by "+a.propertyPath})}));else{var c=this.validateSchema(t,u,n,a);s.instance!==c.instance&&(s.instance=c.instance),c&&c.errors.length&&(s.addError({name:"dependencies",argument:a.propertyPath,message:"does not meet dependency required by "+a.propertyPath}),s.importErrors(c))}}return s}},u.enum=function(t,i,n,o){if(void 0===t)return null;if(!Array.isArray(i.enum))throw new s("enum expects an array",i);var u=new r(t,i,n,o);return i.enum.some(e.deepCompareStrict.bind(null,t))||u.addError({name:"enum",argument:i.enum,message:"is not one of enum values: "+i.enum.map(String).join(",")}),u},u.const=function(t,i,n,s){if(void 0===t)return null;var o=new r(t,i,n,s);return e.deepCompareStrict(i.const,t)||o.addError({name:"const",argument:i.const,message:"does not exactly match expected constant: "+i.const}),o},u.not=u.disallow=function(t,i,n,e){var s=this;if(void 0===t)return null;var o=new r(t,i,n,e),u=i.not||i.disallow;return u?(Array.isArray(u)||(u=[u]),u.forEach((function(r){if(s.testType(t,i,n,e,r)){var u=r&&(r.$id||r.id)||r;o.addError({name:"not",argument:u,message:"is of prohibited type "+u})}})),o):null},t.exports=o},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 a=i.SchemaError=function t(i,n){this.message=i,this.schema=n,Error.call(this,i),Error.captureStackTrace(this,t)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var c=i.SchemaContext=function(t,i,n,e,r){this.schema=t,this.options=i,Array.isArray(n)?(this.path=n,this.propertyPath=n.reduce((function(t,i){return t+f(i)}),"instance")):this.propertyPath=n,this.base=e,this.schemas=r};c.prototype.resolve=function(t){return e.resolve(this.base,t)},c.prototype.makeChild=function(t,i){var n=void 0===i?this.path:this.path.concat([i]),r=t.$id||t.id,s=e.resolve(this.base,r||""),o=new c(t,this.options,n,s,Object.create(this.schemas));return r&&!o.schemas[s]&&(o.schemas[s]=t),o};var h=i.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/,"utc-millisec":function(t){return"string"==typeof t&&parseFloat(t)===parseInt(t,10)&&!isNaN(t)},regex:function(t){var i=!0;try{new RegExp(t)}catch(t){i=!1}return i},style:/\s*(.+?):\s*([^;]+);?/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/};h.regexp=h.regex,h.pattern=h.regex,h.ipv4=h["ip-address"],i.isFormat=function(t,i,n){if("string"==typeof t&&void 0!==h[i]){if(h[i]instanceof RegExp)return h[i].test(t);if("function"==typeof h[i])return h[i](t)}else if(n&&n.customFormats&&"function"==typeof n.customFormats[i])return n.customFormats[i](t);return!0};var f=i.makeSuffix=function(t){return(t=t.toString()).match(/[.\s\[\]]/)||t.match(/^[\d]/)?t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]":"."+t};function l(t,i,n,e){"object"==typeof n?i[e]=p(t[e],n):-1===t.indexOf(n)&&i.push(n)}function v(t,i,n){i[n]=t[n]}function d(t,i,n,e){"object"==typeof i[e]&&i[e]&&t[e]?n[e]=p(t[e],i[e]):n[e]=i[e]}function p(t,i){var n=Array.isArray(i),e=n&&[]||{};return n?(t=t||[],e=e.concat(t),i.forEach(l.bind(null,t,e))):(t&&"object"==typeof t&&Object.keys(t).forEach(v.bind(null,t,e)),Object.keys(i).forEach(d.bind(null,t,i,e))),e}function b(t){return"/"+encodeURIComponent(t).replace(/~/g,"%7E")}i.deepCompareStrict=function t(i,n){if(typeof i!=typeof n)return!1;if(Array.isArray(i))return!!Array.isArray(n)&&(i.length===n.length&&i.every((function(e,r){return t(i[r],n[r])})));if("object"==typeof i){if(!i||!n)return i===n;var e=Object.keys(i),r=Object.keys(n);return e.length===r.length&&e.every((function(e){return t(i[e],n[e])}))}return i===n},t.exports.deepMerge=p,i.objectGetPath=function(t,i){for(var n,e=i.split("/").slice(1);"string"==typeof(n=e.shift());){var r=decodeURIComponent(n.replace(/~0/,"~").replace(/~1/g,"/"));if(!(r in t))return;t=t[r]}return t},i.encodePath=function(t){return t.map(b).join("")},i.getDecimalPlaces=function(t){var i=0;if(isNaN(t))return i;"number"!=typeof t&&(t=Number(t));var n=t.toString().split("e");if(2===n.length){if("-"!==n[1][0])return i;i=Number(n[1].slice(1))}var e=n[0].split(".");return 2===e.length&&(i+=e[1].length),i},i.isSchema=function(t){return"object"==typeof t&&t||"boolean"==typeof t}},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);c[s]=c[s]?c[s]+1:0}else{var h=i.$id||i.id,f=h?e.resolve(t,h):t;if(f){if(f.indexOf("#")<0&&(f+="#"),a[f]){if(!r.deepCompareStrict(a[f],i))throw new Error("Schema <"+f+"> already exists with different definition");return a[f]}a[f]=i,"#"==f[f.length-1]&&(a[f.substring(0,f.length-1)]=i)}o(f+"/items",Array.isArray(i.items)?i.items:[i.items]),o(f+"/extends",Array.isArray(i.extends)?i.extends:[i.extends]),n(f+"/additionalItems",i.additionalItems),u(f+"/properties",i.properties),n(f+"/additionalProperties",i.additionalProperties),u(f+"/definitions",i.definitions),u(f+"/patternProperties",i.patternProperties),u(f+"/dependencies",i.dependencies),o(f+"/disallow",i.disallow),o(f+"/allOf",i.allOf),o(f+"/anyOf",i.anyOf),o(f+"/oneOf",i.oneOf),n(f+"/not",i.not)}}function o(t,i){if(Array.isArray(i))for(var e=0;e<i.length;e++)n(t+"/"+e,i[e])}function u(t,i){if(i&&"object"==typeof i)for(var e in i)n(t+"/"+e,i[e])}var a={},c={};return n(t,i),new s(a,c)}},3058:function(t,i,n){"use strict";var e=n(8575),r=n(6481),s=n(9177),o=n(1287).scan,u=s.ValidatorResult,a=s.ValidatorResultError,c=s.SchemaError,h=s.SchemaContext,f=function t(){this.customFormats=Object.create(t.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(v),this.attributes=Object.create(r.validators)};function l(t){var i="string"==typeof t?t:t.$ref;return"string"==typeof i&&i}f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(t,i){var n=this;if(!t)return null;var e=o(i||"/",t),r=i||t.$id||t.id;for(var s in e.id)this.schemas[s]=e.id[s];for(var s in e.ref)this.unresolvedRefs.push(s);return this.unresolvedRefs=this.unresolvedRefs.filter((function(t){return void 0===n.schemas[t]})),this.schemas[r]},f.prototype.addSubSchemaArray=function(t,i){if(Array.isArray(i))for(var n=0;n<i.length;n++)this.addSubSchema(t,i[n])},f.prototype.addSubSchemaObject=function(t,i){if(i&&"object"==typeof i)for(var n in i)this.addSubSchema(t,i[n])},f.prototype.setSchemas=function(t){this.schemas=t},f.prototype.getSchema=function(t){return this.schemas[t]},f.prototype.validate=function(t,i,n,r){if("boolean"!=typeof i&&"object"!=typeof i||null===i)throw new c("Expected `schema` to be an object or boolean");n||(n={});var s,f=i.$id||i.id,l=e.resolve(n.base||"/",f||"");if(!r){(r=new h(i,n,[],l,Object.create(this.schemas))).schemas[l]||(r.schemas[l]=i);var v=o(l,i);for(var d in v.id){var p=v.id[d];r.schemas[d]=p}}if(n.required&&void 0===t)return(s=new u(t,i,n,r)).addError("is required, but is undefined"),s;if(!(s=this.validateSchema(t,i,n,r)))throw new Error("Result undefined");if(n.throwAll&&s.errors.length)throw new a(s);return s},f.prototype.validateSchema=function(t,i,n,e){var o=new u(t,i,n,e);if("boolean"==typeof i)!0===i?i={}:!1===i&&(i={type:[]});else if(!i)throw new Error("schema is undefined");if(i.extends)if(Array.isArray(i.extends)){var a={schema:i,ctx:e};i.extends.forEach(this.schemaTraverser.bind(this,a)),i=a.schema,a.schema=null,a.ctx=null,a=null}else i=s.deepMerge(i,this.superResolve(i.extends,e));var f=l(i);if(f){var v=this.resolve(i,f,e),d=new h(v.subschema,n,e.path,v.switchSchema,e.schemas);return this.validateSchema(t,v.subschema,n,d)}var p=n&&n.skipAttributes||[];for(var b in i)if(!r.ignoreProperties[b]&&p.indexOf(b)<0){var m=null,g=this.attributes[b];if(g)m=g.call(this,t,i,n,e);else if(!1===n.allowUnknownAttributes)throw new c("Unsupported attribute: "+b,i);m&&o.importErrors(m)}if("function"==typeof n.rewrite){var y=n.rewrite.call(this,t,i,n,e);o.instance=y}return o},f.prototype.schemaTraverser=function(t,i){t.schema=s.deepMerge(t.schema,this.superResolve(i,t.ctx))},f.prototype.superResolve=function(t,i){var n=l(t);return n?this.resolve(t,n,i).subschema:t},f.prototype.resolve=function(t,i,n){if(i=n.resolve(i),n.schemas[i])return{subschema:n.schemas[i],switchSchema:i};var r=e.parse(i),o=r&&r.hash,u=o&&o.length&&i.substr(0,i.length-o.length);if(!u||!n.schemas[u])throw new c("no such schema <"+i+">",t);var a=s.objectGetPath(n.schemas[u],o.substr(1));if(void 0===a)throw new c("no such schema "+o+" located in <"+u+">",t);return{subschema:a,switchSchema:i}},f.prototype.testType=function(t,i,n,e,r){if(void 0!==r){if(null===r)throw new c('Unexpected null in "type" keyword');if("function"==typeof this.types[r])return this.types[r].call(this,t);if(r&&"object"==typeof r){var s=this.validateSchema(t,r,n,e);return void 0===s||!(s&&s.errors.length)}return!0}};var v=f.prototype.types={};v.string=function(t){return"string"==typeof t},v.number=function(t){return"number"==typeof t&&isFinite(t)},v.integer=function(t){return"number"==typeof t&&t%1==0},v.boolean=function(t){return"boolean"==typeof t},v.array=function(t){return Array.isArray(t)},v.null=function(t){return null===t},v.date=function(t){return t instanceof Date},v.any=function(t){return!0},v.object=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&!(t instanceof Date)},t.exports=f},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(":"),a=i(o.slice(0,u)).toLowerCase(),c=i(o.slice(u+1));void 0===e[a]?e[a]=c:(n=e[a],"[object Array]"===Object.prototype.toString.call(n)?e[a].push(c):e[a]=[e[a],c])}return e}},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,a=36,c=/^xn--/,h=/[^\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 b(t,i){for(var n=t.length,e=[];n--;)e[n]=i(t[n]);return e}function m(t,i){var n=t.split("@"),e="";return n.length>1&&(e=n[0]+"@",t=n[1]),e+b((t=t.replace(f,".")).split("."),i).join(".")}function g(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 y(t){return b(t,(function(t){var i="";return t>65535&&(i+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=d(t)})).join("")}function _(t,i){return t+22+75*(t<26)-((0!=i)<<5)}function w(t,i,n){var e=0;for(t=n?v(t/700):t>>1,t+=v(t/i);t>455;e+=a)t=v(t/35);return v(e+36*t/(t+38))}function O(t){var i,n,e,r,s,o,c,h,f,l,d,b=[],m=t.length,g=0,_=128,O=72;for((n=t.lastIndexOf("-"))<0&&(n=0),e=0;e<n;++e)t.charCodeAt(e)>=128&&p("not-basic"),b.push(t.charCodeAt(e));for(r=n>0?n+1:0;r<m;){for(s=g,o=1,c=a;r>=m&&p("invalid-input"),((h=(d=t.charCodeAt(r++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:a)>=a||h>v((u-g)/o))&&p("overflow"),g+=h*o,!(h<(f=c<=O?1:c>=O+26?26:c-O));c+=a)o>v(u/(l=a-f))&&p("overflow"),o*=l;O=w(g-s,i=b.length+1,0==s),v(g/i)>u-_&&p("overflow"),_+=v(g/i),g%=i,b.splice(g++,0,_)}return y(b)}function E(t){var i,n,e,r,s,o,c,h,f,l,b,m,y,O,E,j=[];for(m=(t=g(t)).length,i=128,n=0,s=72,o=0;o<m;++o)(b=t[o])<128&&j.push(d(b));for(e=r=j.length,r&&j.push("-");e<m;){for(c=u,o=0;o<m;++o)(b=t[o])>=i&&b<c&&(c=b);for(c-i>v((u-n)/(y=e+1))&&p("overflow"),n+=(c-i)*y,i=c,o=0;o<m;++o)if((b=t[o])<i&&++n>u&&p("overflow"),b==i){for(h=n,f=a;!(h<(l=f<=s?1:f>=s+26?26:f-s));f+=a)E=h-l,O=a-l,j.push(d(_(l+E%O,0))),h=v(E/O);j.push(d(_(h,0))),s=w(n,y,e==r),n=0,++e}++n,++i}return j.join("")}o={version:"1.3.2",ucs2:{decode:g,encode:y},decode:O,encode:E,toASCII:function(t){return m(t,(function(t){return h.test(t)?"xn--"+E(t):t}))},toUnicode:function(t){return m(t,(function(t){return c.test(t)?O(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 a=t.length;u>0&&a>u&&(a=u);for(var c=0;c<a;++c){var h,f,l,v,d=t[c].replace(o,"%20"),p=d.indexOf(e);p>=0?(h=d.substr(0,p),f=d.substr(p+1)):(h=d,f=""),l=decodeURIComponent(h),v=decodeURIComponent(f),i(s,l)?Array.isArray(s[l])?s[l].push(v):s[l]=[s[l],v]:s[l]=v}return s}},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)},859: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 a(t,i){for(var n={},e=[],r=0;r<t.length;r++){var s=t[r],a=i.base?s[0]+i.base:s[0],c=n[a]||0,h="".concat(a," ").concat(c);n[a]=c+1;var f=u(h),l={css:s[1],media:s[2],sourceMap:s[3]};-1!==f?(o[f].references++,o[f].updater(l)):o.push({identifier:h,updater:b(l,i),references:1}),e.push(h)}return e}function c(t){var i=document.createElement("style"),e=t.attributes||{};if(void 0===e.nonce){var r=n.nc;r&&(e.nonce=r)}if(Object.keys(e).forEach((function(t){i.setAttribute(t,e[t])})),"function"==typeof t.insert)t.insert(i);else{var o=s(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(i)}return i}var h,f=(h=[],function(t,i){return h[t]=i,h.filter(Boolean).join("\n")});function l(t,i,n,e){var r=n?"":e.media?"@media ".concat(e.media," {").concat(e.css,"}"):e.css;if(t.styleSheet)t.styleSheet.cssText=f(i,r);else{var s=document.createTextNode(r),o=t.childNodes;o[i]&&t.removeChild(o[i]),o.length?t.insertBefore(s,o[i]):t.appendChild(s)}}function v(t,i,n){var e=n.css,r=n.media,s=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(e+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}var d=null,p=0;function b(t,i){var n,e,r;if(i.singleton){var s=p++;n=d||(d=c(i)),e=l.bind(null,n,s,!1),r=l.bind(null,n,s,!0)}else n=c(i),e=v.bind(null,n,i),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else r()}}t.exports=function(t,i){(i=i||{}).singleton||"boolean"==typeof i.singleton||(i.singleton=r());var n=a(t=t||[],i);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var e=0;e<n.length;e++){var r=u(n[e]);o[r].references--}for(var s=a(t,i),c=0;c<n.length;c++){var h=u(n[c]);0===o[h].references&&(o[h].updater(),o.splice(h,1))}n=s}}}},8380:function(t,i){"use strict";i.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTcuMDQyIiBoZWlnaHQ9IjIwLjAxNSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCByZXF1aXJlZEV4dGVuc2lvbnM9Imh0dHA6Ly9ucy5hZG9iZS5jb20vQWRvYmVJbGx1c3RyYXRvci8xMC4wLyIgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBmaWxsPSIjZmZmIiBkPSJNMTU2Ljk2IDEuODc3bC01LjI1NSAxOC4xMjZoLTcuOTkybDIuMTk4LTcuMzg0LTUuNDYgNi4zNGgtMi42bC0zLjExNC0xMS44M2gtNi4yMjdsMS4yNy01LjI1MmgxMS44OGwxLjI1NyA3LjI1IDYuMDQ3LTcuMjQ2di0uMDA1aDcuOTk1em0tMzIuNTEzIDEzLjI0Yy0uODA4IDIuNjg4LTMuNjQ1IDQuODg3LTYuMzAyIDQuODg3aC0xMS44NmMtMi42NiAwLTQuMTcyLTIuMi0zLjM2NC00Ljg4N2wxLjg5OC02LjMxMmg4LjQxNmwtMS44NjYgNS43NDdoNC42MWwyLjM3NS03LjM3NmgtMTMuMDI2Yy45NTgtMi41IDMuNzUyLTUuMjk4IDYuMjc1LTUuMjk4aDExLjg2YzIuNjU3IDAgNC4wNTYgMy4wMTggMy4yNDcgNS43MDVsLTIuMjY0IDcuNTM0em0tMjIuNTMtNS4yNzZoLTcuMzAybC44MDgtMi42MzJoLTMuOWwtMi4zNiA3LjMyMmgzLjlsLjU4Ny0xLjM2NWg3LjI2bC0xLjA4NCAzLjU4Yy0uODEgMi42ODgtMy4xNjMgMy4yNTgtNS44MiAzLjI1OGgtOS4yNGMtMi42NTYgMC00LjE3LTIuMi0zLjM2Mi00Ljg4N2wyLjI2NC03LjUzM2MuODA4LTIuNjg4IDIuOTEtNS43MDUgNi43MzUtNS43MDVoOC42NWMyLjg5MyAwIDQuMzQ4IDMuMyAzLjU2MiA1Ljg1bC0uNjk4IDIuMTEzek03MC45ODUgMjAuMDA3bDEuNjUtNi43MjJoNi40NGwtMS42NTIgNi43MjJoLTYuNDM4em0tNy4zOS02LjcyaDYuNDM4bC0xLjY1IDYuNzJoLS40OTV2LjAwM0g1NS43NjZ2LS4wMDdoLTUuNzJsNC43OC0xNi4wNThoLTEuOTEyTDU0LjA3LjA2NWgxLjkxbC4wMDQtLjAxaDkuMjM4TDYwLjM5NiAxNi4yN2gyLjQ2N2wuNzMyLTIuOTg0ek01MC4yNTggNi45MTJINDMuN2wuNzI0LTIuOTdoLTE0LjY1TDMwLjkzLjA2N2gyMC45MzZsLS4wMTQuMDZoLjA2TDUwLjI2IDYuOTE0ek0xNy41MTggMjBoLTYuNzgyTDguOSAzLjk0NUgyLjkxNUw0LjA3LjA2NWg0LjM4NnYtLjAxaDguNzdsMS43MjggMTUuMTIgNC41LTE1LjEyaDUuNDhsLTUuOTQgMTkuOTQ2aC01LjQ3N3pNNy41NzggNS40NWwuNDQgNC42NzMtMy4wMzcgOS44OEguMDUzTDQuNDk2IDUuNDVINy41OHptMzIuMzQ2LS4yNzhsLTEuMjE3IDQuMDMyaDcuMzk3bC0uODczIDMuNzRoLTcuNjVMMzUuNDUgMjBoLTguNjNsNC40NzYtMTQuODI4aDguNjN6bTkzLjI2NCAzLjUzbDEuNDU3IDYuNDctMS40MyA0LjgzMmgtNi43NjRMMTI5LjgxIDguN2gzLjM4eiIvPjwvc3dpdGNoPjwvc3ZnPg=="},7207:function(t,i){"use strict";i.Z="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 a=t.length;u>0&&a>u&&(a=u);for(var c=0;c<a;++c){var h,f,l,v,d=t[c].replace(o,"%20"),p=d.indexOf(e);p>=0?(h=d.substr(0,p),f=d.substr(p+1)):(h=d,f=""),l=decodeURIComponent(h),v=decodeURIComponent(f),i(s,l)?Array.isArray(s[l])?s[l].push(v):s[l]=[s[l],v]:s[l]=v}return s}},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=m,i.resolve=function(t,i){return m(t,!1,!0).resolve(i)},i.resolveObject=function(t,i){return t?m(t,!1,!0).resolveObject(i):i},i.format=function(t){g(t)&&(t=m(t));return t instanceof r?t.format():r.prototype.format.call(t)},i.Url=r;var s=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(u),c=["%","/","?",";","#"].concat(a),h=["/","?","#"],f=/^[a-z0-9A-Z_-]{0,63}$/,l=/^([a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(6254);function m(t,i,n){if(t&&y(t)&&t instanceof r)return t;var e=new r;return e.parse(t,i,n),e}function g(t){return"string"==typeof t}function y(t){return"object"==typeof t&&null!==t}function _(t){return null===t}r.prototype.parse=function(t,i,n){if(!g(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t;r=r.trim();var o=s.exec(r);if(o){var u=(o=o[0]).toLowerCase();this.protocol=u,r=r.substr(o.length)}if(n||o||r.match(/^\/\/[^@\/]+@[^@\/]+/)){var m="//"===r.substr(0,2);!m||o&&d[o]||(r=r.substr(2),this.slashes=!0)}if(!d[o]&&(m||o&&!p[o])){for(var y,_,w=-1,O=0;O<h.length;O++){-1!==(E=r.indexOf(h[O]))&&(-1===w||E<w)&&(w=E)}-1!==(_=-1===w?r.lastIndexOf("@"):r.lastIndexOf("@",w))&&(y=r.slice(0,_),r=r.slice(_+1),this.auth=decodeURIComponent(y)),w=-1;for(O=0;O<c.length;O++){var E;-1!==(E=r.indexOf(c[O]))&&(-1===w||E<w)&&(w=E)}-1===w&&(w=r.length),this.host=r.slice(0,w),r=r.slice(w),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var S=this.hostname.split(/\./),A=(O=0,S.length);O<A;O++){var M=S[O];if(M&&!M.match(f)){for(var T="",N=0,I=M.length;N<I;N++)M.charCodeAt(N)>127?T+="x":T+=M[N];if(!T.match(f)){var R=S.slice(0,O),L=S.slice(O+1),C=M.match(l);C&&(R.push(C[1]),L.unshift(C[2])),L.length&&(r="/"+L.join(".")+r),this.hostname=R.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!j){var k=this.hostname.split("."),D=[];for(O=0;O<k.length;++O){var P=k[O];D.push(P.match(/[^A-Za-z0-9_-]/)?"xn--"+e.encode(P):P)}this.hostname=D.join(".")}var x=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+x,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==r[0]&&(r="/"+r))}if(!v[u])for(O=0,A=a.length;O<A;O++){var F=a[O],B=encodeURIComponent(F);B===F&&(B=escape(F)),r=r.split(F).join(B)}var z=r.indexOf("#");-1!==z&&(this.hash=r.substr(z),r=r.slice(0,z));var V=r.indexOf("?");if(-1!==V?(this.search=r.substr(V),this.query=r.substr(V+1),i&&(this.query=b.parse(this.query)),r=r.slice(0,V)):i&&(this.search="",this.query={}),r&&(this.pathname=r),p[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){x=this.pathname||"",P=this.search||"";this.path=x+P}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var i=this.protocol||"",n=this.pathname||"",e=this.hash||"",r=!1,s="";this.host?r=t+this.host:this.hostname&&(r=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&y(this.query)&&Object.keys(this.query).length&&(s=b.stringify(this.query));var o=this.search||s&&"?"+s||"";return i&&":"!==i.substr(-1)&&(i+=":"),this.slashes||(!i||p[i])&&!1!==r?(r="//"+(r||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):r||(r=""),e&&"#"!==e.charAt(0)&&(e="#"+e),o&&"?"!==o.charAt(0)&&(o="?"+o),i+r+(n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(o=o.replace("#","%23"))+e},r.prototype.resolve=function(t){return this.resolveObject(m(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(g(t)){var i=new r;i.parse(t,!1,!0),t=i}var n=new r;if(Object.keys(this).forEach((function(t){n[t]=this[t]}),this),n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol)return Object.keys(t).forEach((function(i){"protocol"!==i&&(n[i]=t[i])})),p[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n;if(t.protocol&&t.protocol!==n.protocol){if(!p[t.protocol])return Object.keys(t).forEach((function(i){n[i]=t[i]})),n.href=n.format(),n;if(n.protocol=t.protocol,t.host||d[t.protocol])n.pathname=t.pathname;else{for(var e=(t.pathname||"").split("/");e.length&&!(t.host=e.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),n.pathname=e.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var s=n.pathname||"",o=n.search||"";n.path=s+o}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var u=n.pathname&&"/"===n.pathname.charAt(0),a=t.host||t.pathname&&"/"===t.pathname.charAt(0),c=a||u||n.host&&t.pathname,h=c,f=n.pathname&&n.pathname.split("/")||[],l=(e=t.pathname&&t.pathname.split("/")||[],n.protocol&&!p[n.protocol]);if(l&&(n.hostname="",n.port=null,n.host&&(""===f[0]?f[0]=n.host:f.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===e[0]?e[0]=t.host:e.unshift(t.host)),t.host=null),c=c&&(""===e[0]||""===f[0])),a)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,f=e;else if(e.length)f||(f=[]),f.pop(),f=f.concat(e),n.search=t.search,n.query=t.query;else if(null!=t.search){if(l)n.hostname=n.host=f.shift(),(w=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=w.shift(),n.host=n.hostname=w.shift());return n.search=t.search,n.query=t.query,_(n.pathname)&&_(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!f.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var v=f.slice(-1)[0],b=(n.host||t.host)&&("."===v||".."===v)||""===v,m=0,y=f.length;y>=0;y--)"."==(v=f[y])?f.splice(y,1):".."===v?(f.splice(y,1),m++):m&&(f.splice(y,1),m--);if(!c&&!h)for(;m--;m)f.unshift("..");!c||""===f[0]||f[0]&&"/"===f[0].charAt(0)||f.unshift(""),b&&"/"!==f.join("/").substr(-1)&&f.push("");var w,O=""===f[0]||f[0]&&"/"===f[0].charAt(0);l&&(n.hostname=n.host=O?"":f.length?f.shift():"",(w=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=w.shift(),n.host=n.hostname=w.shift()));return(c=c||n.host&&f.length)&&!O&&f.unshift(""),f.length?n.pathname=f.join("/"):(n.pathname=null,n.path=null),_(n.pathname)&&_(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 a(t,i,n){return c(i=u(t,i,n))}function c(t){if(void 0===t.callback)throw new Error("callback argument missing");var i=!1,n=function(n,e,r){i||(i=!0,t.callback(n,e,r))};function e(){var t=void 0;if(t=h.response?h.response:h.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var i=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!i)return t.responseXML}catch(t){}return null}(h),m)try{t=JSON.parse(t)}catch(t){}return t}function r(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,g)}function o(){if(!c){var i;clearTimeout(f),i=t.useXDR&&void 0===h.status?200:1223===h.status?204:h.status;var r=g,o=null;return 0!==i?(r={body:e(),statusCode:i,method:v,headers:{},url:l,rawRequest:h},h.getAllResponseHeaders&&(r.headers=s(h.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),n(o,r,r.body)}}var u,c,h=t.xhr||null;h||(h=t.cors||t.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var f,l=h.url=t.uri||t.url,v=h.method=t.method||"GET",d=t.body||t.data,p=h.headers=t.headers||{},b=!!t.sync,m=!1,g={body:void 0,headers:{},statusCode:0,method:v,url:l,rawRequest:h};if("json"in t&&!1!==t.json&&(m=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==v&&"HEAD"!==v&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),d=JSON.stringify(!0===t.json?d:t.json))),h.onreadystatechange=function(){4===h.readyState&&setTimeout(o,0)},h.onload=o,h.onerror=r,h.onprogress=function(){},h.onabort=function(){c=!0},h.ontimeout=r,h.open(v,l,!b,t.username,t.password),b||(h.withCredentials=!!t.withCredentials),!b&&t.timeout>0&&(f=setTimeout((function(){if(!c){c=!0,h.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}}),t.timeout)),h.setRequestHeader)for(u in p)p.hasOwnProperty(u)&&h.setRequestHeader(u,p[u]);else if(t.headers&&!function(t){for(var i in t)if(t.hasOwnProperty(i))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(h.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(h),h.send(d||null),h}t.exports=a,t.exports.default=a,a.XMLHttpRequest=e.XMLHttpRequest||function(){},a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:e.XDomainRequest,function(t,i){for(var n=0;n<t.length;n++)i(t[n])}(["get","put","post","patch","head","delete"],(function(t){a["delete"===t?"del":t]=function(i,n,e){return(n=u(i,n,e)).method=t.toUpperCase(),c(n)}}))},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.7d9ab0ef62fc5c6d3c6c.js"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},inProgress={},dataWebpackPrefix="oath-player:",__webpack_require__.l=function(t,i,n,e){if(inProgress[t])inProgress[t].push(i);else{var r,s;if(void 0!==n)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var a=o[u];if(a.getAttribute("src")==t||a.getAttribute("data-webpack")==dataWebpackPrefix+n){r=a;break}}r||(s=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,__webpack_require__.nc&&r.setAttribute("nonce",__webpack_require__.nc),r.setAttribute("data-webpack",dataWebpackPrefix+n),r.src=t),inProgress[t]=[i];var c=function(i,n){r.onerror=r.onload=null,clearTimeout(h);var e=inProgress[t];if(delete inProgress[t],r.parentNode&&r.parentNode.removeChild(r),e&&e.forEach((function(t){return t(n)})),i)return i(n)},h=setTimeout(c.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=c.bind(null,r.onerror),r.onload=c.bind(null,r.onload),s&&document.head.appendChild(r)}},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},__webpack_require__.p="https://assets.video.yahoo.net/oath/builds/8.3.119-pr961.b39167247/","function"==typeof jsonpScriptSrc){var original_jsonpScriptSrc=jsonpScriptSrc;function patchJsonpScriptSrc(){try{if("function"!=typeof replaceOathPlayerSrc)throw new Error("WebpackRequireFrom: 'replaceOathPlayerSrc' is not a function or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting");var t=replaceOathPlayerSrc(original_jsonpScriptSrc.apply(this,arguments));if(!t||"string"!=typeof t)throw new Error("WebpackRequireFrom: 'replaceOathPlayerSrc' does not return string. See https://github.com/agoldis/webpack-require-from#troubleshooting");return t}catch(t){return original_jsonpScriptSrc.apply(this,arguments)}}jsonpScriptSrc=patchJsonpScriptSrc}!function(){var t={179:0};__webpack_require__.f.j=function(i,n){var e=__webpack_require__.o(t,i)?t[i]:void 0;if(0!==e)if(e)n.push(e[2]);else{var r=new Promise((function(n,r){e=t[i]=[n,r]}));n.push(e[2]=r);var s=__webpack_require__.p+__webpack_require__.u(i),o=new Error;__webpack_require__.l(s,(function(n){if(__webpack_require__.o(t,i)&&(0!==(e=t[i])&&(t[i]=void 0),e)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+i+" failed.\n("+r+": "+s+")",o.name="ChunkLoadError",o.type=r,o.request=s,e[1](o)}}),"chunk-"+i,i)}};var i=function(i,n){var e,r,s=n[0],o=n[1],u=n[2],a=0;if(s.some((function(i){return 0!==t[i]}))){for(e in o)__webpack_require__.o(o,e)&&(__webpack_require__.m[e]=o[e]);if(u)u(__webpack_require__)}for(i&&i(n);a<s.length;a++)r=s[a],__webpack_require__.o(t,r)&&t[r]&&t[r][0](),t[s[a]]=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;__webpack_require__(5178);var n=__webpack_require__(2992),e=__webpack_require__(8762),r=__webpack_require__(5717),s=__webpack_require__(5854),o=window;["OATH","YAHOO"].forEach((function(t){o[t]=o[t]||{},o[t].VideoPlatform=o[t].VideoPlatform||{},o[t].VideoPlatform.VideoPlayer=r.OathPlayerFactory,o[t].VideoPlatform.Events=Object.assign({},e.API,n.Events),"YAHOO"===t&&(o[t].VideoPlatform.API_Events=o[t].VideoPlatform.Events)})),window.replaceOathPlayerSrc=function(t){var i=t.substring(t.lastIndexOf("/")+1),n=i.substring(0,i.indexOf("."));return t.includes("assets.video.yahoo.net")?"vendors~three"===n?"https://assets.video.yahoo.net/oath/three/0.126.1/"+i:t:"/"+i},s.default.sendScriptLoadBeacon(),null===(i=null===(t=window.performance)||void 0===t?void 0:t.mark)||void 0===i||i.call(t,"vplayerjsready")}()})();
//# sourceMappingURL=oath-player-desktop.js.map