@newrelic/video-videojs 3.0.2 → 3.2.0-beta-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -4
- package/LICENSE.txt +1 -1
- package/README.md +55 -13
- package/THIRD_PARTY_NOTICES.md +28 -54
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.LICENSE.txt +4 -2
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.LICENSE.txt +4 -2
- package/dist/esm/index.js.map +1 -0
- package/dist/umd/newrelic-video-videojs.min.js +3 -0
- package/dist/umd/newrelic-video-videojs.min.js.LICENSE.txt +8 -0
- package/dist/umd/newrelic-video-videojs.min.js.map +1 -0
- package/package.json +8 -7
- package/src/ads/brightcove-ima.js +90 -0
- package/src/ads/freewheel.js +70 -0
- package/src/ads/ima.js +248 -0
- package/src/ads/videojs-ads.js +145 -0
- package/src/index.js +2 -0
- package/src/register-plugin.js +19 -0
- package/src/techs/contrib-hls.js +45 -0
- package/src/techs/hls-js.js +45 -0
- package/src/techs/shaka.js +49 -0
- package/src/tracker.js +335 -0
- package/dist/umd/videojs.min.js +0 -1
- package/dist/umd/videojs.min.js.LICENSE.txt +0 -6
package/dist/esm/index.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
const a0dJ=a0b;(function(a,b){const O=a0b,c=a();while(!![]){try{const d=parseInt(O(0x1b1))/0x1*(parseInt(O(0x255))/0x2)+parseInt(O(0x2b9))/0x3*(-parseInt(O(0x32b))/0x4)+parseInt(O(0x346))/0x5+parseInt(O(0x357))/0x6+-parseInt(O(0x2fb))/0x7*(-parseInt(O(0x3c0))/0x8)+-parseInt(O(0x3bb))/0x9+-parseInt(O(0x210))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(f){c['push'](c['shift']());}}}(a0a,0xb6aa4));var t={0x26:(a,b,c)=>{const P=a0b;Object[P(0x1ae)](b,'__esModule',{'value':!0x0}),b[P(0x3be)]=void 0x0;var d,f=(d=c(0x1d8))&&d[P(0x20b)]?d:{'default':d};class g extends f[P(0x3be)]{static[P(0x27f)](h){const Q=P;return!!h['FreeWheelPlugin']&&Q(0x1da)!=typeof tv&&tv[Q(0x37a)];}[P(0x3a6)](){const R=P;return R(0x18f);}[P(0x39d)](){const S=P;return S(0x18f);}[P(0x22c)](){const T=P;return this[T(0x370)]['FreeWheelPlugin']['VERSION'];}['getPlayhead'](){const U=P;if(this[U(0x370)]['ads']['ad'][U(0x3b3)])return 0x3e8*this[U(0x370)]['ads']['ad'][U(0x3b3)]();}[P(0x2f4)](){const V=P;if(this[V(0x370)][V(0x273)]['ad'][V(0x2d2)])return 0x3e8*this[V(0x370)][V(0x273)]['ad']['duration'];}[P(0x1ac)](){const W=P;return this[W(0x370)]['ads']['ad']['id'];}[P(0x1fe)](){return'freewheel';}[P(0x29f)](){const X=P;try{return this[X(0x370)][X(0x273)]['provider'][X(0x300)]['adInstance'][X(0x310)]()['getId']();}catch(h){}}[P(0x2e0)](){const Y=P;try{return this['player'][Y(0x273)][Y(0x27e)][Y(0x300)][Y(0x3b8)][Y(0x310)]()[Y(0x28c)]()[Y(0x19a)]();}catch(h){}}['getTitle'](){const Z=P;try{return this[Z(0x370)][Z(0x273)][Z(0x27e)][Z(0x300)][Z(0x3b8)][Z(0x310)]()[Z(0x28c)]()['getName']();}catch(h){}}[P(0x1b2)](){const a0=P;switch(this['player'][a0(0x273)]['ad'][a0(0x367)]){case a0(0x311):return nrvideo['Constants'][a0(0x1bb)][a0(0x388)];case a0(0x1df):return nrvideo['Constants'][a0(0x1bb)][a0(0x195)];case a0(0x2a5):return nrvideo[a0(0x216)][a0(0x1bb)]['POST'];}}}b[P(0x3be)]=g;},0x40:(b,c,d)=>{const a1=a0b;Object[a1(0x1ae)](c,a1(0x20b),{'value':!0x0}),c[a1(0x3be)]=void 0x0;var f=h(d(0x22b)),g=h(d(0x1d8));function h(k){const a2=a1;return k&&k[a2(0x20b)]?k:{'default':k};}class j extends g[a1(0x3be)]{static['isUsing'](k){const a3=a1;return!!k[a3(0x322)];}[a1(0x3a6)](){const a4=a1;return a4(0x18a);}[a1(0x39d)](){const a5=a1;return a5(0x18a);}[a1(0x31f)](){const a6=a1;return this[a6(0x370)]?.[a6(0x322)]?.[a6(0x389)]?.[a6(0x3b3)]();}[a1(0x2f1)](){const a7=a1;f['default'][a7(0x28d)][a7(0x202)](this['player'],[null,a7(0x3b5),a7(0x30a),a7(0x3a3),'ima3-started',a7(0x35a),a7(0x2a8),'ima3-resumed',a7(0x303),a7(0x1f7),a7(0x19e),a7(0x306),a7(0x341),'ads-play',a7(0x38f),a7(0x324),a7(0x2ce),a7(0x21f)]),this[a7(0x370)]['on'](a7(0x1b4),this[a7(0x331)][a7(0x31c)](this)),this[a7(0x370)]['on'](a7(0x2a8),this[a7(0x2c2)][a7(0x31c)](this)),this[a7(0x370)]['on'](a7(0x1fc),this[a7(0x25c)][a7(0x31c)](this)),this[a7(0x370)]['on']('ima3-complete',this[a7(0x360)]['bind'](this)),this[a7(0x370)]['on'](a7(0x1a1),this[a7(0x287)]['bind'](this)),this[a7(0x370)]['on'](a7(0x2c5),this[a7(0x24d)]['bind'](this)),this[a7(0x370)]['on'](a7(0x38f),this[a7(0x3a0)][a7(0x31c)](this));}[a1(0x342)](){const a8=a1;this[a8(0x370)]['off']('ima3-started',this[a8(0x331)]),this[a8(0x370)][a8(0x1ed)](a8(0x2a8),this[a8(0x2c2)]),this[a8(0x370)][a8(0x1ed)](a8(0x1fc),this[a8(0x25c)]),this[a8(0x370)][a8(0x1ed)](a8(0x35a),this[a8(0x360)]),this['player'][a8(0x1ed)](a8(0x1a1),this[a8(0x287)]),this[a8(0x370)][a8(0x1ed)](a8(0x2c5),this['onError']),this['player']['off'](a8(0x38f),this['onClick']);}[a1(0x331)](k){const a9=a1;this['sendRequest'](),this[a9(0x337)]();}['onPaused'](k){const aa=a1;this[aa(0x2da)]();}[a1(0x25c)](k){this['sendResume']();}[a1(0x360)](k){const ab=a1;this[ab(0x299)]();}[a1(0x287)](k){this['sendEnd']({'skipped':!0x0});}['onError'](k){const ac=a1;this[ac(0x1ec)]();}['onClick'](k){const ad=a1;this[ad(0x187)]();}}c[a1(0x3be)]=j;},0x101:(a,b)=>{const ae=a0b;Object[ae(0x1ae)](b,ae(0x20b),{'value':!0x0}),b[ae(0x3be)]=void 0x0;class c{constructor(d){const af=ae;this[af(0x1c9)]=d[af(0x363)];}[ae(0x35d)](d){const ag=ae;return this[ag(0x1c9)]['url'];}[ae(0x24b)](d){const ah=ae;try{var f=this[ah(0x1c9)]['levels'][this[ah(0x1c9)][ah(0x1b6)]];if(f&&f[ah(0x1e1)])return f[ah(0x1e1)];}catch(g){}return null;}[ae(0x382)](d){const ai=ae;try{var f=this[ai(0x1c9)]['levels'][this[ai(0x1c9)][ai(0x1b6)]];if(f&&f[ai(0x23e)])return f['bitrate'];}catch(g){}return null;}[ae(0x1e7)](d){const aj=ae;try{var f=this[aj(0x1c9)][aj(0x254)][this[aj(0x1c9)]['currentLevel']];if(f&&f['width'])return f['width'];}catch(g){}return null;}[ae(0x3c2)](d){const ak=ae;try{var f=this['tech']['levels'][this[ak(0x1c9)][ak(0x1b6)]];if(f&&f[ak(0x2d4)])return f[ak(0x2d4)];}catch(g){}return null;}}b[ae(0x3be)]=c,c[ae(0x27f)]=function(d){const al=ae;return!!d[al(0x363)];};},0x12a:(b,c,d)=>{const an=a0b;Object['defineProperty'](c,'__esModule',{'value':!0x0}),c['default']=void 0x0;var f=h(d(0x22b)),g=h(d(0x1d8));function h(k){const am=a0b;return k&&k[am(0x20b)]?k:{'default':k};}class j extends g[an(0x3be)]{static['isUsing'](k){const ao=an;return k[ao(0x314)]&&'undefined'!=typeof google;}['getTrackerName'](){const ap=an;return ap(0x19b);}[an(0x39d)](){const aq=an;return aq(0x314);}['getPlayerVersion'](){const ar=an;return ar(0x1e0)+google[ar(0x314)][ar(0x2ca)]+ar(0x319)+this[ar(0x370)][ar(0x273)][ar(0x2ca)];}[an(0x326)](){const as=an;return this[as(0x370)]['ima'][as(0x385)]()[as(0x326)]();}[an(0x1b2)](){const at=an;if(this[at(0x34d)]&&this['lastAdData']['podInfo']&&void 0x0!==this[at(0x34d)][at(0x28e)]['podIndex']){const k=this['lastAdData'][at(0x28e)][at(0x3ca)];return 0x0===k?at(0x21b):-0x1===k?at(0x397):at(0x2f8);}return null;}[an(0x2f4)](){const au=an;return this[au(0x34d)]&&void 0x0!==this[au(0x34d)][au(0x2d2)]?0x3e8*this['lastAdData']['duration']:null;}[an(0x1ac)](){const av=an;return this[av(0x34d)]&&this[av(0x34d)][av(0x327)]?this[av(0x34d)][av(0x327)]:null;}[an(0x29f)](){const aw=an;return this[aw(0x34d)]&&this[aw(0x34d)][aw(0x34e)]?this[aw(0x34d)]['creativeId']:null;}['getSrc'](){const ax=an;return this[ax(0x34d)]&&this[ax(0x34d)][ax(0x387)]?this[ax(0x34d)][ax(0x387)]:null;}[an(0x3cd)](){const ay=an;return this[ay(0x34d)]&&this['lastAdData'][ay(0x207)]?this[ay(0x34d)][ay(0x207)]:null;}['getPlayhead'](){const az=an;let k=this[az(0x370)]['ima'][az(0x385)]();if(k)return 0x3e8*(this['getDuration']()-k[az(0x217)]());}['getPlayrate'](){const aA=an;return this[aA(0x370)][aA(0x18c)]();}[an(0x1fe)](){return'ima';}[an(0x2f1)](){const aB=an;let k=google[aB(0x314)][aB(0x1c4)][aB(0x3c9)],l=google[aB(0x314)][aB(0x1f0)][aB(0x3c9)][aB(0x22f)];this[aB(0x34d)]=null,f[aB(0x3be)]['Log'][aB(0x202)](this[aB(0x370)]['ima'][aB(0x263)],[null,k[aB(0x2cd)],k[aB(0x39b)],k[aB(0x1dc)],k[aB(0x2d0)],k[aB(0x354)],k[aB(0x364)],k['CONTENT_RESUME_REQUESTED'],k[aB(0x213)],k['SKIPPABLE_STATE_CHANGED'],k[aB(0x23f)],k['PAUSED'],k[aB(0x3ae)],k[aB(0x29e)],k[aB(0x3ba)],k[aB(0x309)],k['EXPANDED_CHANGED'],k[aB(0x23a)],k[aB(0x2f9)],k[aB(0x1be)],k[aB(0x246)],k[aB(0x2ad)],k[aB(0x1f3)],l]),this[aB(0x370)][aB(0x314)]['addEventListener'](k[aB(0x23f)],this['onLoaded'][aB(0x31c)](this)),this[aB(0x370)][aB(0x314)][aB(0x263)](k[aB(0x29e)],this['onStart']['bind'](this)),this['player']['ima'][aB(0x263)](k[aB(0x230)],this[aB(0x2c2)][aB(0x31c)](this)),this[aB(0x370)][aB(0x314)][aB(0x263)](k[aB(0x3ae)],this[aB(0x378)]['bind'](this)),this['player'][aB(0x314)][aB(0x263)](k[aB(0x1dc)],this[aB(0x360)][aB(0x31c)](this)),this['player'][aB(0x314)][aB(0x263)](k[aB(0x213)],this[aB(0x287)][aB(0x31c)](this)),this[aB(0x370)][aB(0x314)][aB(0x263)](k[aB(0x1be)],this[aB(0x3a0)]['bind'](this)),this[aB(0x370)][aB(0x314)][aB(0x263)](k[aB(0x246)],this['onFirstQuartile'][aB(0x31c)](this)),this[aB(0x370)][aB(0x314)][aB(0x263)](k[aB(0x2ad)],this[aB(0x2b5)][aB(0x31c)](this)),this[aB(0x370)]['ima'][aB(0x263)](k['THIRD_QUARTILE'],this[aB(0x2e9)][aB(0x31c)](this)),this[aB(0x370)]['ima']['addEventListener'](l,this[aB(0x24d)][aB(0x31c)](this));}['unregisterListeners'](){const aC=an;let k=google['ima'][aC(0x1c4)][aC(0x3c9)],l=google[aC(0x314)]['AdErrorEvent'][aC(0x3c9)]['AD_ERROR'];this[aC(0x370)][aC(0x314)]['removeEventListener'](k[aC(0x23f)],this[aC(0x18b)]),this[aC(0x370)][aC(0x314)][aC(0x391)](k[aC(0x29e)],this[aC(0x18b)][aC(0x31c)](this)),this[aC(0x370)][aC(0x314)][aC(0x391)](k[aC(0x354)],this[aC(0x35f)]),this[aC(0x370)][aC(0x314)][aC(0x391)](k[aC(0x230)],this[aC(0x2c2)]),this['player'][aC(0x314)]['removeEventListener'](k['RESUMED'],this[aC(0x378)]),this[aC(0x370)]['ima'][aC(0x391)](k[aC(0x1dc)],this[aC(0x360)]),this['player'][aC(0x314)][aC(0x391)](k[aC(0x213)],this[aC(0x287)]),this[aC(0x370)]['ima'][aC(0x391)](k['CLICK'],this[aC(0x3a0)]),this[aC(0x370)][aC(0x314)][aC(0x391)](k['FIRST_QUARTILE'],this[aC(0x2cc)]),this[aC(0x370)][aC(0x314)]['removeEventListener'](k['MIDPOINT'],this['onMidpoint']),this[aC(0x370)][aC(0x314)][aC(0x391)](k[aC(0x1f3)],this[aC(0x2e9)]),this[aC(0x370)]['ima']['removeEventListener'](l,this[aC(0x24d)]),this[aC(0x34d)]=null;}[an(0x18b)](k){const aD=an;this['lastAdData']=this[aD(0x366)](),this['sendRequest']();}['onStart'](k){const aE=an;this[aE(0x34d)]=this[aE(0x366)](),this['sendStart']();}['onComplete'](k){const aF=an;this[aF(0x299)](),this[aF(0x34d)]=null;}['onSkipped'](k){const aG=an;this[aG(0x299)]({'skipped':!0x0}),this[aG(0x34d)]=null;}['onError'](k){const aH=an,l=k[aH(0x241)](),m=l[aH(0x1a5)](),o=l[aH(0x1b7)]();this[aH(0x1ec)]({'adError':l,'errorCode':m,'errorName':o});}[an(0x3a0)](k){const aI=an;this[aI(0x2af)]();}['onFirstQuartile'](){const aJ=an;this[aJ(0x2be)]({'adQuartile':0x1});}[an(0x2b5)](){this['sendAdQuartile']({'adQuartile':0x2});}['onThirdQuartile'](){const aK=an;this[aK(0x2be)]({'adQuartile':0x3});}[an(0x2c2)](){this['sendPause']();}['onResumed'](){const aL=an;this[aL(0x2b1)]();}['getAdData'](){const aM=an;try{const k=this[aM(0x370)][aM(0x314)][aM(0x385)]();if(k){const l=k[aM(0x1af)]();if(l)return{'adId':l[aM(0x275)](),'creativeId':l['getCreativeId'](),'duration':l[aM(0x2f4)](),'mediaUrl':l[aM(0x264)](),'title':l[aM(0x3cd)](),'podInfo':l[aM(0x32a)]()?.[aM(0x375)]};}return null;}catch(m){return null;}}}c[an(0x3be)]=j;},0x12e:(b,f,g)=>{const aN=a0b;Object[aN(0x1ae)](f,aN(0x20b),{'value':!0x0}),Object[aN(0x1ae)](f,aN(0x1cd),{'enumerable':!0x0,'get':function(){return y['default'];}}),Object[aN(0x1ae)](f,aN(0x1a7),{'enumerable':!0x0,'get':function(){const aO=aN;return m[aO(0x3be)];}}),Object[aN(0x1ae)](f,'FreewheelAdsTracker',{'enumerable':!0x0,'get':function(){return z['default'];}}),Object[aN(0x1ae)](f,'HlsJsTech',{'enumerable':!0x0,'get':function(){const aP=aN;return q[aP(0x3be)];}}),Object[aN(0x1ae)](f,aN(0x2bf),{'enumerable':!0x0,'get':function(){return x['default'];}}),Object[aN(0x1ae)](f,aN(0x24a),{'enumerable':!0x0,'get':function(){const aQ=aN;return v[aQ(0x3be)];}}),Object['defineProperty'](f,aN(0x282),{'enumerable':!0x0,'get':function(){const aR=aN;return w[aR(0x3be)];}}),f[aN(0x3be)]=void 0x0;var j=A(g(0x22b)),k=A(g(0x14a)),m=A(g(0x199)),q=A(g(0x101)),v=A(g(0x152)),w=A(g(0x1d8)),x=A(g(0x12a)),y=A(g(0x40)),z=A(g(0x26));function A(C){const aS=aN;return C&&C[aS(0x20b)]?C:{'default':C};}class B extends j[aN(0x3be)][aN(0x1b9)]{constructor(C,D){const aT=aN;super(C,D),this[aT(0x2a9)]=!0x1,this[aT(0x197)]='',j['default'][aT(0x1e3)]['addTracker'](this);}[aN(0x19d)](){const aU=aN;let C=this['player'][aU(0x1c9)]({'IWillNotUseThisInPlugins':!0x0});if(C){if(m[aU(0x3be)][aU(0x27f)](C))return new m[(aU(0x3be))](C);if(q[aU(0x3be)]['isUsing'](C))return new q[(aU(0x3be))](C);if(v['default'][aU(0x27f)](C))return new v['default'](C);}}[aN(0x3a6)](){const aV=aN;return aV(0x3c5);}[aN(0x1e9)](){return'New\x20Relic';}[aN(0x1b3)](){const aW=aN;return this[aW(0x39d)]();}[aN(0x29c)](){return this['getPlayerVersion']();}[aN(0x384)](){const aX=aN;return k[aX(0x3be)][aX(0x1d8)];}[aN(0x31f)](){const aY=aN;return this['player'][aY(0x273)]&&aY(0x251)===this[aY(0x370)][aY(0x273)][aY(0x1f6)]&&this['player'][aY(0x273)][aY(0x3cb)]&&this[aY(0x370)][aY(0x273)][aY(0x3cb)][aY(0x3b3)]?0x3e8*this[aY(0x370)][aY(0x273)][aY(0x3cb)]['currentTime']:this[aY(0x370)]['absoluteTime']?0x3e8*this[aY(0x370)]['absoluteTime']():0x3e8*this['player']['currentTime']();}['getDuration'](){const aZ=aN;return this[aZ(0x370)][aZ(0x399)]&&void 0x0!==this[aZ(0x370)][aZ(0x399)][aZ(0x2d2)]?0x3e8*this[aZ(0x370)]['mediainfo'][aZ(0x2d2)]:0x3e8*this[aZ(0x370)][aZ(0x2d2)]();}['getTitle'](){const b0=aN;return this[b0(0x370)]?.[b0(0x399)]?.[b0(0x1e1)];}[aN(0x379)](){const b1=aN;return this['player']?.[b1(0x399)]?.['id'];}[aN(0x2bb)](){const b2=aN;return this[b2(0x370)]?.[b2(0x1ce)]();}['getSrc'](){const b3=aN;let C=this[b3(0x19d)]();return C&&C[b3(0x2e0)]?C['getSrc']():this['player'][b3(0x34a)]();}[aN(0x39d)](){const b4=aN;return this['player']?.[b4(0x1e1)]()||b4(0x3c5);}[aN(0x22c)](){const b5=aN;return this[b5(0x370)]?.['version'];}[aN(0x2a3)](){const b6=aN;return this[b6(0x370)][b6(0x31d)]();}['getBitrate'](){const b7=aN;let C=this[b7(0x19d)]();return C?.[b7(0x1c9)]?.['stats']?.[b7(0x2e3)];}['getRenditionName'](){const b8=aN;let C=this['getTech']();if(C&&C['getRenditionName'])return C[b8(0x24b)]();}[aN(0x382)](){const b9=aN;let C=this[b9(0x19d)]();if(C&&C[b9(0x382)])return C[b9(0x382)]();}[aN(0x3c2)](){const ba=aN;let C=this['getTech']();return C&&C[ba(0x3c2)]?C[ba(0x3c2)]():this['player'][ba(0x3a2)]();}[aN(0x1e7)](){const bb=aN;let C=this['getTech']();return C&&C['getRenditionWidth']?C['getRenditionWidth']():this['player'][bb(0x348)]();}['getPlayrate'](){const bc=aN;return this[bc(0x370)][bc(0x18c)]();}[aN(0x270)](){const bd=aN;return this[bd(0x370)][bd(0x2fe)]();}[aN(0x2e6)](){return this['player']['isFullscreen']();}['getPreload'](){const be=aN;return this[be(0x370)]['preload']();}['registerListeners'](){const bf=aN;j[bf(0x3be)][bf(0x28d)][bf(0x202)](this[bf(0x370)],[bf(0x290),'adend',bf(0x2db),bf(0x1ab),bf(0x2c5),bf(0x242)]),this['player']['on']('loadstart',this['onDownload']['bind'](this)),this[bf(0x370)]['on'](bf(0x365),this[bf(0x286)][bf(0x31c)](this)),this[bf(0x370)]['on'](bf(0x2f3),this[bf(0x286)][bf(0x31c)](this)),this['player']['on'](bf(0x1ab),this['onAdsready'][bf(0x31c)](this)),this['player']['on'](bf(0x290),this[bf(0x3b1)][bf(0x31c)](this)),this[bf(0x370)]['on'](bf(0x2f0),this['onAdEnd'][bf(0x31c)](this)),this['player']['on'](bf(0x2c9),this[bf(0x201)][bf(0x31c)](this)),this[bf(0x370)]['on'](bf(0x36d),this[bf(0x1c5)][bf(0x31c)](this)),this['player']['on'](bf(0x1ca),this[bf(0x2eb)][bf(0x31c)](this)),this[bf(0x370)]['on'](bf(0x257),this[bf(0x1fa)][bf(0x31c)](this)),this['player']['on'](bf(0x226),this[bf(0x206)][bf(0x31c)](this)),this[bf(0x370)]['on'](bf(0x242),this[bf(0x395)][bf(0x31c)](this)),this['player']['on'](bf(0x350),this[bf(0x2d5)][bf(0x31c)](this)),this[bf(0x370)]['on'](bf(0x232),this[bf(0x2df)][bf(0x31c)](this)),this[bf(0x370)]['on']('error',this[bf(0x24d)][bf(0x31c)](this)),this[bf(0x370)]['on']('waiting',this[bf(0x32e)]['bind'](this)),this[bf(0x370)]['on'](bf(0x347),this['onTimeupdate'][bf(0x31c)](this)),this[bf(0x370)]['on']('ads-allpods-completed',this[bf(0x26a)][bf(0x31c)](this));}[aN(0x342)](){const bg=aN;this['player']['off'](bg(0x2cf),this['onDownload']),this['player']['off'](bg(0x365),this[bg(0x286)]),this[bg(0x370)][bg(0x1ed)](bg(0x2f3),this['onDownload']),this['player'][bg(0x1ed)]('adsready',this[bg(0x261)]),this['player'][bg(0x1ed)]('adstart',this['onAdStart']),this[bg(0x370)][bg(0x1ed)](bg(0x2f0),this[bg(0x1a3)]),this[bg(0x370)][bg(0x1ed)](bg(0x2c9),this[bg(0x201)]),this[bg(0x370)]['off'](bg(0x36d),this[bg(0x1c5)]),this[bg(0x370)][bg(0x1ed)](bg(0x1ca),this[bg(0x2eb)]),this[bg(0x370)][bg(0x1ed)](bg(0x257),this['onAbort']),this[bg(0x370)]['off']('ended',this[bg(0x206)]),this[bg(0x370)]['off'](bg(0x242),this[bg(0x395)]),this['player'][bg(0x1ed)](bg(0x350),this[bg(0x2d5)]),this[bg(0x370)]['off']('seeked',this[bg(0x2df)]),this['player']['off'](bg(0x36b),this[bg(0x24d)]),this[bg(0x370)][bg(0x1ed)](bg(0x260),this[bg(0x32e)]),this['player']['off'](bg(0x347),this[bg(0x3bc)]),this['player'][bg(0x1ed)](bg(0x21f),this[bg(0x26a)]['bind'](this));}[aN(0x286)](C){const bh=aN;this[bh(0x189)]({'state':C[bh(0x367)]});}[aN(0x261)](){const bi=aN;this['adsTracker']||(y[bi(0x3be)][bi(0x27f)](this['player'])?this['setAdsTracker'](new y[(bi(0x3be))](this['player'])):x[bi(0x3be)][bi(0x27f)](this[bi(0x370)])?this[bi(0x2c3)](new x['default'](this[bi(0x370)])):z[bi(0x3be)][bi(0x27f)](this[bi(0x370)])?this['setAdsTracker'](new z[(bi(0x3be))](this[bi(0x370)])):this['setAdsTracker'](new w[(bi(0x3be))](this[bi(0x370)])));}[aN(0x3b1)](){const bj=aN;this['currentAdPlaying']=!0x0,this['imaAdCuePoints']||(this[bj(0x197)]=this[bj(0x370)]?.[bj(0x314)]?.[bj(0x385)]()[bj(0x326)]());}['onAdEnd'](){const bk=aN;this[bk(0x2a9)]&&this[bk(0x299)]();}[aN(0x26a)](){const bl=aN;this[bl(0x206)]['bind'](this),this[bl(0x2b7)]=!0x0;}[aN(0x201)](){this['sendRequest']();}[aN(0x1c5)](){const bm=aN;this[bm(0x2da)]();}['onPlaying'](){this['sendResume'](),this['sendBufferEnd']();}[aN(0x1fa)](){this['sendEnd']();}[aN(0x206)](){const bn=aN;this[bn(0x253)]?(this[bn(0x2a9)]=!0x0,this['imaAdCuePoints']&&!this[bn(0x197)][bn(0x24f)](-0x1)&&this[bn(0x299)]()):this[bn(0x299)]();}[aN(0x395)](){const bo=aN;this[bo(0x299)]();}[aN(0x2d5)](){const bp=aN;this[bp(0x212)]();}[aN(0x2df)](){const bq=aN;this[bq(0x192)]();}[aN(0x24d)](){const br=aN,C=this[br(0x370)][br(0x36b)](),D=C[br(0x1a4)],E=C[br(0x394)];this[br(0x370)][br(0x36b)]&&this[br(0x370)][br(0x36b)]()&&this['sendError']({'errorCode':D,'errorName':E});}[aN(0x32e)](C){this['sendBufferStart']();}[aN(0x3bc)](C){const bs=aN;this[bs(0x31f)]()>0.1&&this['sendStart']();}}f[aN(0x3be)]=B;},0x14a:a=>{const bt=a0b;a[bt(0x295)]=JSON[bt(0x209)](bt(0x1db));},0x152:(a,b)=>{const bu=a0b;Object[bu(0x1ae)](b,bu(0x20b),{'value':!0x0}),b[bu(0x3be)]=void 0x0;class c{constructor(d){const bv=bu;this[bv(0x1c9)]=d[bv(0x292)];}['getSrc'](d){const bw=bu;try{return this[bw(0x1c9)][bw(0x35e)]();}catch(f){}return null;}[bu(0x382)](d){const bx=bu;try{return this['tech']['getStats']()[bx(0x1e4)];}catch(f){}return null;}['getRenditionWidth'](d){const by=bu;try{var f=this[by(0x1c9)][by(0x2e5)]();for(var g in f){var h=f[g];if(h[by(0x2e7)]&&'video'===h[by(0x367)])return h[by(0x267)];}}catch(j){}return null;}[bu(0x3c2)](d){const bz=bu;try{var f=this[bz(0x1c9)]['getVariantTracks']();for(var g in f){var h=f[g];if(h['active']&&bz(0x1c8)===h[bz(0x367)])return h[bz(0x2d4)];}}catch(j){}return null;}}b['default']=c,c['isUsing']=function(d){const bA=bu;return!!d[bA(0x292)];};},0x199:(a,b)=>{const bB=a0b;Object[bB(0x1ae)](b,'__esModule',{'value':!0x0}),b[bB(0x3be)]=void 0x0;class c{constructor(d){const bC=bB;this[bC(0x1c9)]=d[bC(0x218)];}[bB(0x24b)](){const bD=bB;try{var d=this[bD(0x1c9)][bD(0x280)][bD(0x194)]();if(d&&d[bD(0x3ac)])return d[bD(0x3ac)]['NAME'];}catch(f){}return null;}[bB(0x382)](){const bE=bB;try{var d=this['tech'][bE(0x280)][bE(0x194)]();if(d&&d[bE(0x3ac)])return d[bE(0x3ac)]['BANDWIDTH'];}catch(f){}return null;}[bB(0x1e7)](){const bF=bB;try{var d=this[bF(0x1c9)][bF(0x280)][bF(0x194)]();if(d&&d[bF(0x3ac)]&&d[bF(0x3ac)]['RESOLUTION'])return d[bF(0x3ac)][bF(0x2ed)]['width'];}catch(f){}return null;}[bB(0x3c2)](){const bG=bB;try{var d=this['tech'][bG(0x280)]['media']();if(d&&d[bG(0x3ac)]&&d[bG(0x3ac)]['RESOLUTION'])return d[bG(0x3ac)][bG(0x2ed)]['height'];}catch(f){}return null;}}b['default']=c,c[bB(0x27f)]=function(d){const bH=bB;return!!d[bH(0x218)];};},0x1d8:(b,c,d)=>{const bI=a0b;Object[bI(0x1ae)](c,bI(0x20b),{'value':!0x0}),c['default']=void 0x0;var f=h(d(0x22b)),g=h(d(0x14a));function h(k){return k&&k['__esModule']?k:{'default':k};}class j extends f[bI(0x3be)][bI(0x1b9)]{[bI(0x3a6)](){const bJ=bI;return bJ(0x220);}[bI(0x384)](){const bK=bI;return g[bK(0x3be)][bK(0x1d8)];}[bI(0x2a3)](){const bL=bI;return this[bL(0x370)][bL(0x31d)]();}[bI(0x3c2)](){return null;}['getRenditionWidth'](){return null;}['getPlayerName'](){const bM=bI;return bM(0x220);}[bI(0x22c)](){const bN=bI;return this['player'][bN(0x273)]['VERSION'];}[bI(0x2f1)](){const bO=bI;f[bO(0x3be)][bO(0x28d)][bO(0x202)](this[bO(0x370)],[null,bO(0x303),bO(0x1f7),'adstart',bO(0x2f0),'adskip',bO(0x2c5),'ads-click','ads-pod-started',bO(0x2ce),bO(0x198),bO(0x222),bO(0x1d7),bO(0x341),bO(0x28a),bO(0x200)]),this[bO(0x370)]['on'](bO(0x303),this[bO(0x20a)][bO(0x31c)](this)),this[bO(0x370)]['on']('ads-load',this[bO(0x1e8)][bO(0x31c)](this)),this[bO(0x370)]['on'](bO(0x290),this[bO(0x221)]['bind'](this)),this['player']['on'](bO(0x2f0),this['onAdend'][bO(0x31c)](this)),this['player']['on'](bO(0x2db),this[bO(0x335)][bO(0x31c)](this)),this[bO(0x370)]['on'](bO(0x2c5),this[bO(0x250)][bO(0x31c)](this)),this[bO(0x370)]['on'](bO(0x38f),this[bO(0x343)]['bind'](this)),this['player']['on']('ads-pod-started',this['onPodStart'][bO(0x31c)](this)),this[bO(0x370)]['on'](bO(0x2ce),this['onPodEnd'][bO(0x31c)](this)),this[bO(0x370)]['on'](bO(0x198),this[bO(0x2cc)][bO(0x31c)](this)),this[bO(0x370)]['on']('ads-midpoint',this[bO(0x2b5)][bO(0x31c)](this)),this[bO(0x370)]['on'](bO(0x1d7),this[bO(0x2e9)][bO(0x31c)](this)),this[bO(0x370)]['on']('ads-pause',this['onAdspause'][bO(0x31c)](this)),this['player']['on'](bO(0x28a),this['onAdsplay']['bind'](this));}[bI(0x342)](){const bP=bI;this[bP(0x370)]['off'](bP(0x303),this['onAdrequest']),this[bP(0x370)][bP(0x1ed)]('ads-load',this[bP(0x1e8)]),this['player'][bP(0x1ed)]('adstart',this[bP(0x221)]),this[bP(0x370)][bP(0x1ed)](bP(0x2f0),this[bP(0x1dd)]),this['player'][bP(0x1ed)]('adskip',this[bP(0x335)]),this[bP(0x370)][bP(0x1ed)](bP(0x2c5),this[bP(0x250)]),this[bP(0x370)][bP(0x1ed)](bP(0x38f),this[bP(0x343)]),this[bP(0x370)]['off'](bP(0x324),this[bP(0x2fc)]),this['player'][bP(0x1ed)](bP(0x2ce),this['onPodEnd']),this[bP(0x370)][bP(0x1ed)](bP(0x198),this[bP(0x2cc)]),this[bP(0x370)][bP(0x1ed)](bP(0x222),this[bP(0x2b5)]),this['player']['off'](bP(0x1d7),this['onThirdQuartile']),this[bP(0x370)]['off'](bP(0x341),this[bP(0x1ad)]),this[bP(0x370)][bP(0x1ed)]('ads-play',this[bP(0x2ae)]);}['onAdrequest'](k){const bQ=bI;this[bQ(0x20f)](),this['sendDownload']({'state':bQ(0x303)});}[bI(0x1e8)](k){const bR=bI;this[bR(0x189)]({'state':bR(0x1f7)});}[bI(0x221)](k){const bS=bI;this[bS(0x20f)](),this[bS(0x337)]();}['onAdend'](k){const bT=bI;this[bT(0x299)]();}[bI(0x335)](k){this['sendEnd']({'skipped':!0x0});}['onAdserror'](k){const bU=bI;this[bU(0x1ec)]();}[bI(0x343)](k){const bV=bI;this[bV(0x2af)]({'url':bV(0x2e1)});}[bI(0x2fc)](k){const bW=bI;this[bW(0x2a0)]();}[bI(0x3b9)](k){const bX=bI;this[bX(0x381)]();}[bI(0x2cc)](){const bY=bI;this[bY(0x2be)]({'quartile':0x1});}[bI(0x2b5)](){const bZ=bI;this[bZ(0x2be)]({'quartile':0x2});}['onThirdQuartile'](){const c0=bI;this[c0(0x2be)]({'quartile':0x3});}['onAdspause'](){const c1=bI;this[c1(0x2da)]();}[bI(0x2ae)](){const c2=bI;this[c2(0x2b1)]();}}c['default']=j;},0x22b:(b,c,f)=>{f['r'](c),f['d'](c,{'__esModule':()=>q,'default':()=>u}),function(w){const c3=a0b,x=k,y=w();for(;;)try{if(0x806dc===parseInt(x(0x299))/0x1*(parseInt(x(0x1b6))/0x2)+parseInt(x(0x223))/0x3*(parseInt(x(0x286))/0x4)+-parseInt(x(0x1ef))/0x5+-parseInt(x(0x262))/0x6*(-parseInt(x(0x1a4))/0x7)+parseInt(x(0x236))/0x8*(-parseInt(x(0x1f8))/0x9)+parseInt(x(0x1c3))/0xa+-parseInt(x(0x280))/0xb*(-parseInt(x(0x22a))/0xc))break;y[c3(0x26c)](y[c3(0x1a9)]());}catch(z){y['push'](y[c3(0x1a9)]());}}(v);var g={0x33:(w,x)=>{const c4=a0b,y=k;Object[y(0x225)](x,y(0x27c),{'value':!0x0}),x[y(0x242)]=void 0x0;class z{}z[y(0x2c8)]={'PRE':y(0x2a2),'MID':y(0x1fc),'POST':y(0x1fa)},x[c4(0x3be)]=z;},0x90:(w,x)=>{const c5=a0b,y=k;Object[y(0x225)](x,c5(0x20b),{'value':!0x0}),x[y(0x242)]=void 0x0;class z{static[y(0x212)](){const c6=c5,D=y;for(var E=arguments[c6(0x373)],F=new Array(E),G=0x0;G<E;G++)F[G]=arguments[G];A(F,z[c6(0x34f)][D(0x17e)],D(0x302));}static[y(0x190)](){const c7=c5,D=y;for(var E=arguments[D(0x222)],F=new Array(E),G=0x0;G<E;G++)F[G]=arguments[G];A(F,z[D(0x17f)][c7(0x262)],D(0x26b));}static[y(0x2b7)](){const D=y;for(var E=arguments['length'],F=new Array(E),G=0x0;G<E;G++)F[G]=arguments[G];A([][D(0x21d)][D(0x1db)](arguments),z['Levels'][D(0x289)],D(0x237));}static[y(0x248)](){const c8=c5,D=y;for(var E=arguments[D(0x222)],F=new Array(E),G=0x0;G<E;G++)F[G]=arguments[G];A(F,z[D(0x17f)][D(0x2b4)],c8(0x39a));}static[c5(0x202)](D,E,F){const ca=c5,G=y;try{if(z[G(0x1f3)]<=z['Levels'][G(0x2b4)]){F=F||function(J){const c9=a0b,K=G;z[K(0x248)](c9(0x1f5)+J[K(0x261)]);};var H=[G(0x20c),G(0x1c4),G(0x24b),ca(0x226),G(0x26e),ca(0x1ca),G(0x298),G(0x2f5),G(0x212),G(0x1a1),G(0x1ad),G(0x1df),G(0x2db),G(0x1fd),G(0x275),G(0x18e),G(0x1c8),G(0x228)];E&&(null===E[0x0]?(E[G(0x2aa)](),H=E):H=H[G(0x2fd)](E));for(var I=0x0;I<H[ca(0x373)];I++)G(0x19c)==typeof D?D[G(0x1db)](window,H[I],F):D['on']?D['on'](H[I],F):D[G(0x2d4)]?D[G(0x2d4)](H[I],F):D[G(0x2f6)]?D[G(0x2f6)](H[I],F):z[G(0x190)](G(0x18a),D);}}catch(J){z[ca(0x1ef)](J);}}}function A(D,E,F){const cb=c5,G=y;E=E||z[cb(0x34f)][G(0x289)],F=F||cb(0x369);var H,I,J=z[G(0x277)];z[G(0x300)]&&(J+='['+('0'+(H=new Date())[G(0x209)]())['slice'](-0x2)+':'+('0'+H[G(0x217)]())[G(0x21d)](-0x2)+':'+('0'+H['getSeconds']())['slice'](-0x2)+'.'+('00'+H[G(0x2e3)]())[cb(0x27b)](-0x3)+']\x20'),J+=C[E]+':',z[cb(0x316)]<=E&&E!==z[G(0x17f)][G(0x1ed)]&&(!z['colorful']||G(0x2cc)!=typeof document&&document[cb(0x38d)]?B(D,J):(I=E===z[G(0x17f)][G(0x17e)]&&console[G(0x212)]?console[G(0x212)]:E===z[cb(0x34f)][G(0x1c2)]&&console[cb(0x1ef)]?console[G(0x190)]:E===z['Levels'][G(0x2b4)]&&console[G(0x248)]&&null==window[G(0x20e)]?console[G(0x248)]:console[cb(0x355)],J='%c'+J,D[cb(0x288)](0x0,0x0,J,cb(0x36a)+F),I[cb(0x3aa)](console,D)));}function B(D,E){const F=y;if(D instanceof Array){for(var G in D)B(D[G],E);}else F(0x2f1)==typeof D?console[F(0x1f1)](E+'\x20'+D):(console[F(0x1f1)](E+'↵'),console[F(0x1f1)](D));}z[c5(0x34f)]={'SILENT':0x5,'ERROR':0x4,'WARNING':0x3,'NOTICE':0x2,'DEBUG':0x1,'ALL':0x0},z[y(0x1f3)]=z[y(0x17f)][y(0x17e)],z[y(0x2c6)]=!0x0,z[c5(0x3a8)]=!0x0,z[y(0x277)]=y(0x1c9);const C={0x4:'e',0x3:'w',0x2:'n',0x1:'d'};!(function(){const cc=c5,D=y;if(D(0x2cc)!=typeof window&&window[D(0x30e)]&&window[D(0x30e)][D(0x20a)]){var E=/\?.*&*nrvideo-debug=(.+)/i[D(0x231)](window[D(0x30e)][cc(0x3ce)]);null!==E&&(D(0x246)===E[0x1]?z[cc(0x316)]=z[D(0x17f)][D(0x1da)]:z[D(0x1f3)]=E[0x1]),null!==/\?.*&*nrvideo-colors=false/i[D(0x231)](window[cc(0x1e6)][D(0x20a)])&&(z[D(0x2c6)]=!0x1);}}()),x[c5(0x3be)]=z;},0x92:(w,x)=>{const y=k;Object[y(0x225)](x,y(0x27c),{'value':!0x0}),x[y(0x242)]=void 0x0,x[y(0x242)]=class{constructor(z){this['_attributes']={};}[y(0x257)](z,A){const cd=a0b,B=y;A=Object[cd(0x227)](A||{},this[B(0x234)]);}[y(0x1ae)](z,A){this[y(0x234)][z]=A;}[y(0x2a7)](z){const A=y;this[A(0x234)][A(0x221)](z);}};},0x12e:(w,x,y)=>{const cg=a0b,z=k;Object[z(0x225)](x,'__esModule',{'value':!0x0}),x[z(0x242)]=void 0x0;var A=E(y(0x14a)),B=E(y(0x238)),C=E(y(0x1c7)),D=E(y(0x33));function E(G){return G&&G[z(0x27c)]?G:{'default':G};}class F extends B[z(0x242)]{constructor(G){const ce=a0b,H=z;super(),this[H(0x2d7)]={},this[H(0x2d8)]=null,this[H(0x22b)]=null,this[ce(0x33e)]=new C[(H(0x242))](),this[ce(0x33e)][H(0x1bb)](),this[ce(0x38e)]=D[H(0x242)][H(0x2de)],this[H(0x1b0)]=D[H(0x242)][ce(0x362)],G=G||{},this[ce(0x289)](G);}[z(0x272)](G){const cf=a0b,H=z;G&&(G[H(0x22b)]&&(this[H(0x22b)]=G[H(0x22b)]),G[H(0x2d7)]&&(this['customData']=G[H(0x2d7)]),G[H(0x2d8)]&&(this[H(0x2d8)]=G[cf(0x276)]));}[z(0x275)](){this[z(0x1be)]();}[cg(0x2f1)](){}[z(0x1be)](){}[z(0x2b8)](){const ch=cg,G=z;return this[G(0x25c)]['_isAd']?0x7d0:this[ch(0x276)]?this[G(0x2d8)]:this[G(0x22b)]&&this[G(0x22b)][G(0x2d8)]?this[G(0x22b)]['heartbeat']:0x7530;}[z(0x23f)](){const ci=cg,G=z;this[G(0x29b)]=setInterval(this[G(0x282)][G(0x258)](this),Math[ci(0x37b)](this[ci(0x1e5)](),0x7d0));}[z(0x241)](){const G=z;this[G(0x29b)]&&clearInterval(this[G(0x29b)]);}[z(0x282)](G){const H=z;this[H(0x1ec)](F[H(0x29e)][H(0x1d6)],G);}[z(0x1af)](G,H){const cj=cg,I=z;(G=G||{})[I(0x2a1)]=this[I(0x1d3)](),G[I(0x233)]=this[cj(0x384)](),G[I(0x1ac)]=A[I(0x242)][I(0x2b9)],G[I(0x1b5)]=this[I(0x187)][I(0x186)]();for(let J in this['customData'])G[J]=this[I(0x2d7)][J];return null!=document[I(0x25e)]&&(G[I(0x17d)]=document[cj(0x2f5)]),G;}[z(0x265)](){const G=z;return A[G(0x242)][G(0x2b9)];}[z(0x1d3)](){const ck=cg;return ck(0x271);}[z(0x1ec)](G,H){const I=z;this[I(0x1d2)](I(0x1bd),G,this[I(0x1af)](H));}[cg(0x283)](G,H){const cl=cg,I=z;this[cl(0x1d5)](I(0x196),G,this[cl(0x20d)](H));}[z(0x1dc)](G,H){const I=z;let J=this[I(0x25d)]()?'adError':I(0x304);this[I(0x1d2)](I(0x1cd),G,this[I(0x1af)](H,J));}[z(0x202)](G,H){const I=z;this[I(0x1d2)](I(0x1de),G,this[I(0x1af)](H,I(0x28f)));}}F[cg(0x3cc)]={'HEARTBEAT':cg(0x2ea)},x[z(0x242)]=F;},0x148:(w,x,y)=>{const cm=a0b,z=k;Object[z(0x225)](x,z(0x27c),{'value':!0x0}),x[cm(0x3be)]=void 0x0;var A=C(y(0x1c7)),B=C(y(0x90));function C(D){return D&&D['__esModule']?D:{'default':D};}x[z(0x242)]=class{constructor(){const cn=cm,D=z;this[cn(0x351)](),this[D(0x267)]=Date[D(0x256)](),this[D(0x213)]=!0x0,this[D(0x2c7)]=0x0,this[cn(0x30d)]=0x0;}[z(0x2fc)](){const co=cm,D=z;this[D(0x2e6)]=null,this[co(0x383)]=0x0,this[D(0x291)]=!0x1,this[D(0x1b9)]=0x0,this[D(0x2ac)]=0x0,this[D(0x227)]=0x0,this[D(0x20b)]=0x0,this[co(0x3af)]=0x0,this[D(0x2ad)]=!0x1,this[D(0x29a)]=!0x1,this[D(0x2a4)](),this[D(0x1a7)]();}[z(0x2a4)](){const cp=cm,D=z;this[D(0x266)]=!0x1,this[D(0x19b)]=!0x1,this['isStarted']=!0x1,this[D(0x1ca)]=!0x1,this[D(0x19d)]=!0x1,this[D(0x1b1)]=!0x1,this[cp(0x2ba)]=!0x1;}[cm(0x37d)](){const cq=cm,D=z;this[D(0x2b5)]=new A[(D(0x242))](),this['timeSinceStarted']=new A[(D(0x242))](),this[cq(0x3a1)]=new A[(D(0x242))](),this[D(0x314)]=new A[(D(0x242))](),this[D(0x2e2)]=new A[(D(0x242))](),this['timeSinceAdBreakStart']=new A[(D(0x242))](),this[D(0x2b6)]=new A[(D(0x242))](),this[D(0x1e2)]=new A[(cq(0x3be))](),this[D(0x285)]=new A[(D(0x242))](),this[cq(0x36c)]=new A['default'](),this[D(0x2dc)]=new A[(D(0x242))](),this[D(0x1cc)]=new A[(D(0x242))](),this[D(0x254)]=new A[(D(0x242))](),this['playtimeSinceLastEvent']=new A[(cq(0x3be))](),this[D(0x264)]={},this[cq(0x312)]=new A[(D(0x242))](),this['bufferElapsedTime']=new A[(D(0x242))]();}[cm(0x3c7)](){return this[z(0x291)];}[z(0x177)](D){this[z(0x291)]=D;}[z(0x287)](D){const cr=cm;this[z(0x264)][D]=new A[(cr(0x3be))](),this[cr(0x1eb)][D][cr(0x240)]();}[z(0x2ca)](D){delete this[z(0x264)][D];}['getViewSession'](){const cs=cm,D=z;if(!this[D(0x2e6)]){let E=new Date()[D(0x1c1)](),F=Math[D(0x244)]()[cs(0x236)](0x24)[D(0x205)](0x2)+Math[D(0x244)]()[D(0x292)](0x24)[cs(0x2e4)](0x2);this[D(0x2e6)]=E+'-'+F;}return this[D(0x2e6)];}[z(0x293)](){const D=z;return this[D(0x21e)]()+'-'+this[D(0x2bd)];}[cm(0x332)](D){const ct=cm,E=z;D=D||{},this[E(0x25d)]()?(this[ct(0x27a)]&&(D[E(0x23a)]=this['timeSinceRequested'][ct(0x1c6)](),D[ct(0x2b3)]=this[E(0x1e2)][E(0x186)]()),this[E(0x2df)]&&(D[E(0x206)]=this[E(0x30d)][E(0x186)]()),this[E(0x1ca)]&&(D[ct(0x2a1)]=this[E(0x18f)][E(0x186)]()),this[E(0x1b1)]&&(D[E(0x1e8)]=this[ct(0x1b0)][E(0x186)]()),this['isSeeking']&&(D[E(0x194)]=this[E(0x314)][E(0x186)]()),this[E(0x2ad)]&&(D[ct(0x2c7)]=this[E(0x1a2)][E(0x186)]()),D[E(0x2ac)]=this[E(0x2ac)]):(this[E(0x19b)]&&(D[ct(0x1d3)]=this[E(0x2b5)][E(0x186)](),D['timeSinceLastHeartbeat']=this[E(0x1e2)][ct(0x1c6)]()),this[E(0x2df)]&&(D[E(0x30d)]=this[E(0x30d)][E(0x186)]()),this['isPaused']&&(D[E(0x18f)]=this['timeSincePaused'][E(0x186)]()),this[E(0x1b1)]&&(D[ct(0x1b0)]=this[E(0x2e2)][E(0x186)]()),this[E(0x19d)]&&(D[E(0x314)]=this[E(0x314)][E(0x186)]()),D[E(0x2dc)]=this['timeSinceLastAd'][E(0x186)](),D[E(0x227)]=this[E(0x227)]),D[E(0x1b9)]=this[E(0x1b9)],this[E(0x25d)]()||(this[ct(0x321)][E(0x189)]>0x0?D[E(0x279)]=this[ct(0x321)][ct(0x1c6)]():D[E(0x279)]=0x0,this[ct(0x2ba)]?this[E(0x279)][E(0x1bb)]():this[E(0x279)]['reset'](),this[E(0x20b)]+=D[ct(0x321)],D[E(0x20b)]=this[E(0x20b)]);for(const [F,G]of Object[E(0x1d1)](this[E(0x264)]))D[F]=G[E(0x186)]();return D;}[z(0x185)](D){const cu=cm,E=z;let F='';return F=D?E(0x238):this[E(0x19d)]?E(0x1ad):this[E(0x1ca)]?E(0x298):cu(0x377),B[E(0x242)][E(0x248)](E(0x2da)+F),F;}[z(0x245)](){this['_viewCount']++;}[z(0x1bc)](){const D=z;return!this[D(0x266)]&&(this[D(0x266)]=!0x0,!0x0);}['goRequest'](){const cv=cm,D=z;return!this[D(0x19b)]&&(this[D(0x19b)]=!0x0,this[D(0x2dc)][cv(0x351)](),this[cv(0x1d3)][D(0x1bb)](),!0x0);}[z(0x281)](){const D=z;return!(!this[D(0x19b)]||this[D(0x2df)]||(this[D(0x25d)]()?this[D(0x2ac)]++:this[D(0x227)]++,this[D(0x2df)]=!0x0,this[D(0x27f)]=!0x0,this[D(0x30d)][D(0x1bb)](),this['playtimeSinceLastEvent'][D(0x1bb)](),0x0));}['goEnd'](){const cw=cm,D=z;return!!this[cw(0x27a)]&&(this[cw(0x1f1)]=0x0,this[D(0x2a4)](),this[cw(0x1d3)][D(0x2ba)](),this[D(0x30d)][D(0x2ba)](),this[D(0x279)][D(0x2ba)](),!0x0);}[z(0x249)](){const cx=cm,D=z;return!(!this[D(0x2df)]||this[D(0x1ca)]||(this[D(0x1ca)]=!0x0,this[D(0x27f)]=!0x1,this[D(0x18f)][D(0x1bb)](),this[cx(0x321)][D(0x2ba)](),this[D(0x1cc)][D(0x2fc)](),this[D(0x1b1)]&&(this[D(0x216)]+=this[D(0x18d)][D(0x186)]()),this[D(0x1d5)][D(0x1bb)](),0x0));}[z(0x308)](){const cy=cm,D=z;return!(!this[cy(0x249)]||!this[D(0x1ca)]||(this[D(0x1ca)]=!0x1,this[cy(0x2ba)]=!0x0,this[D(0x18f)][D(0x2ba)](),this[D(0x1cc)][D(0x1bb)](),this[cy(0x28f)]?(this[D(0x2c7)]=this[D(0x1d5)][D(0x186)](),this[D(0x213)]=!0x1):(this[D(0x1b1)]&&this[D(0x18d)][D(0x1bb)](),this[cy(0x225)]+=this[D(0x1d5)][cy(0x1c6)]()),0x0));}[z(0x1d7)](){const cz=cm,D=z;return!(!this[D(0x19b)]||this[cz(0x2b4)]||(this[D(0x1b1)]=!0x0,this[D(0x27f)]=!0x1,this[D(0x2e2)][cz(0x240)](),this[D(0x18d)][D(0x1bb)](),0x0));}[z(0x22e)](){const cA=cm,D=z;return!(!this[D(0x19b)]||!this[cA(0x2b4)]||(this[cA(0x2b4)]=!0x1,this[D(0x27f)]=!0x0,this[D(0x2e2)][D(0x2ba)](),this[D(0x213)]?(this[cA(0x30d)]=this[D(0x18d)][D(0x186)](),this[cA(0x28f)]=!0x1):this[cA(0x30d)]+=this[D(0x18d)][D(0x186)](),0x0));}[z(0x218)](){const cB=cm,D=z;return!(!this[cB(0x249)]||this[D(0x19d)]||(this[D(0x19d)]=!0x0,this[D(0x27f)]=!0x1,this[cB(0x3ab)][D(0x1bb)](),this[D(0x254)][D(0x2fc)](),0x0));}[z(0x30b)](){const cC=cm,D=z;return!(!this[cC(0x249)]||!this[D(0x19d)]||(this[D(0x19d)]=!0x1,this[D(0x27f)]=!0x0,this[D(0x314)][cC(0x352)](),this[D(0x254)][D(0x1bb)](),0x0));}[cm(0x278)](){const D=z;return!this[D(0x2ad)]&&(this[D(0x2ad)]=!0x0,this['timeSinceAdBreakStart'][D(0x1bb)](),!0x0);}[z(0x284)](){const cD=cm,D=z;return!!this[D(0x2ad)]&&(this[D(0x19b)]=!0x1,this[D(0x2ad)]=!0x1,this[D(0x1c7)]=this[cD(0x27d)][D(0x186)](),this[cD(0x27d)][D(0x2ba)](),!0x0);}['goDownload'](){const cE=cm;this[z(0x2b6)][cE(0x240)]();}[cm(0x259)](){const D=z;this[D(0x1e2)][D(0x1bb)]();}[z(0x21a)](){const cF=cm;this[z(0x285)][cF(0x240)]();}[z(0x207)](){const D=z;this[D(0x2bf)][D(0x1bb)]();}[z(0x30f)](){const D=z;this[D(0x297)]=!0x0,this[D(0x1b9)]++;}[cm(0x2f2)](){const D=z;this[D(0x2dc)][D(0x1bb)]();}};},0x14a:w=>{const cG=a0b,x=k;w[x(0x1f9)]=JSON[x(0x2f8)](cG(0x1cc));},0x18f:(w,x,y)=>{const cI=a0b,z=k;Object[z(0x225)](x,'__esModule',{'value':!0x0}),x[z(0x242)]=void 0x0;var A=C(y(0x90)),B=C(y(0x92));function C(I){return I&&I[z(0x27c)]?I:{'default':I};}class D{static[z(0x2f0)](I){const cH=a0b,J=z;I['on']&&I[cH(0x1d5)]?(F[J(0x290)](I),I['on']('*',H),J(0x19c)==typeof I[J(0x1cb)]&&I[J(0x1cb)]()):A[cH(0x3be)][cH(0x36b)]('Tried\x20to\x20load\x20a\x20non-tracker.',I);}static[cI(0x23b)](I){const J=z;I[J(0x1dd)]('*',H),I[J(0x275)]();let K=F[J(0x2b0)](I);-0x1!==K&&F[J(0x176)](K,0x1);}static[z(0x24d)](){return F;}static[z(0x2b2)](){return E;}static[z(0x203)](I){E=I;}static[z(0x257)](I,J,K){const cJ=cI,L=z;null!=D[L(0x2b2)]()&&D[L(0x2b2)]()instanceof B['default']?D[cJ(0x26d)]()['send'](I,J,K):L(0x2cc)!=typeof newrelic&&newrelic[L(0x2f3)]?(void 0x0!==K&&(K['timeSinceLoad']=window[L(0x1fe)][L(0x256)]()/0x3e8),newrelic[L(0x2f3)](I,{'actionName':J,...K})):G||(A[L(0x242)][L(0x212)](L(0x247),cJ(0x269)),G=!0x0);}static[z(0x271)](I){const J=z;D['send'](J(0x17e),I);}}let E,F=[],G=!0x1;function H(I){const cK=cI,J=z;let K=function(L){let M={};for(let N in L)null!==L[N]&&void 0x0!==L[N]&&(M[N]=L[N]);return M;}(I[J(0x1b3)]);A['default'][cK(0x316)]<=A[J(0x242)][cK(0x34f)][J(0x2b4)]?A[J(0x242)][cK(0x371)](J(0x175),I[J(0x261)],K):A[J(0x242)][cK(0x371)](J(0x175),I[J(0x261)]),D[J(0x257)](I[cK(0x243)],I[J(0x261)],K);}x[z(0x242)]=D;},0x196:(w,x,y)=>{const cO=a0b,z=k;Object[z(0x225)](x,z(0x27c),{'value':!0x0}),x[z(0x242)]=void 0x0;var A=C(y(0x92)),B=C(y(0x90));function C(E){const cL=a0b;return E&&E[cL(0x20b)]?E:{'default':E};}class D extends A[z(0x242)]{constructor(E,F){const cM=a0b,G=z;super(),this[G(0x27b)]=E,this[G(0x283)]=F,this[cM(0x2d7)]='',this[G(0x2fb)]=[],this[cM(0x1bd)]=!0x1,this[cM(0x1d1)]=0x0,setInterval(()=>{const H=G;this[H(0x22f)](D[H(0x306)][H(0x23c)]);},0x2710);}[z(0x257)](E,F,G){const cN=a0b,H=z;if(this[H(0x1d9)]=E,super[H(0x257)](F,G),this[H(0x2fb)][cN(0x373)]<0x1f4){(G=this[cN(0x330)](G))['eventType']=this['_eventType'],G[H(0x28a)]=F;let I=Date[H(0x256)]();I>this['_lastTimestamp']?(G['timestamp']=I,this['_lastTimestamp']=I):(this['_lastTimestamp']++,G[H(0x1c5)]=this[H(0x2a0)]),this[H(0x2fb)][cN(0x26c)](G);}}[cO(0x330)](E){const cP=cO,F=z;E['pageUrl']=window['location'][F(0x26a)],E[F(0x23d)]=window[F(0x30e)][F(0x21b)]+window[F(0x30e)][F(0x17a)],E[F(0x2c3)]=document[cP(0x35c)];let G=F(0x274);-0x1!=navigator[F(0x270)][F(0x2b0)](F(0x1ff))?G=F(0x1f7):-0x1!=navigator[F(0x270)][F(0x2b0)](F(0x260))?G=F(0x260):-0x1!=navigator[F(0x270)][F(0x2b0)](cP(0x2d8))?G=F(0x19f):navigator[F(0x270)][F(0x307)](/iPhone|iPad|iPod/i)?G=F(0x2eb):-0x1!=navigator[F(0x270)][F(0x2b0)](F(0x1a5))?G=F(0x1a5):-0x1!=navigator[F(0x270)][F(0x2b0)](cP(0x3c3))&&(G=F(0x1ee)),E['userAgentOS']=G;let H=F(0x274);if(-0x1!=navigator[F(0x270)][F(0x2b0)](F(0x240))?H=F(0x240):-0x1!=navigator[F(0x270)]['indexOf'](F(0x2a8))?H='Firefox':-0x1!=navigator[cP(0x1c2)][F(0x2b0)]('MSIE')?H='IE':-0x1!=navigator[F(0x270)][F(0x2b0)](F(0x2e8))?H=F(0x21c):-0x1!=navigator[F(0x270)][F(0x2b0)](F(0x2d3))?H=F(0x2d3):-0x1!=navigator[F(0x270)][F(0x2b0)](F(0x2af))&&(H=F(0x2af)),E[cP(0x328)]=H,!E[F(0x1e3)]){let I=cP(0x38c);I=navigator[F(0x270)][F(0x307)](/Tablet|iPad/i)?F(0x251):navigator[cP(0x1c2)][F(0x307)](/Mobile|Windows Phone|Lumia|Android|webOS|iPhone|iPod|Blackberry|PlayBook|BB10|Opera Mini|\bCrMo\/|Opera Mobi/i)?F(0x1b4):null!=window[F(0x20e)]?F(0x1e4):F(0x278),E[F(0x1e3)]=I;}return E;}[z(0x22f)](E){const cQ=cO,F=z;E==D[F(0x306)][F(0x23c)]&&this[F(0x310)]?B[F(0x242)][F(0x248)](cQ(0x2bd)):(this[F(0x310)]=!0x0,this[F(0x2fb)][F(0x222)]>0x0?(B[cQ(0x3be)][F(0x248)](F(0x25a),this[F(0x2fb)]),this['pushEventToInsights'](this[F(0x2fb)][F(0x253)]())):this[F(0x310)]=!0x1);}[z(0x178)](E){const cR=cO,F=z,G={'method':cR(0x3bf),'headers':{'Content-Type':F(0x243),'X-Insert-Key':this[F(0x283)]},'body':JSON[F(0x204)](E)},H=F(0x30c)+this[cR(0x24e)]+F(0x2d1);fetch(H,G)[F(0x29f)](I=>I[F(0x2bb)]())['then'](I=>{this[F(0x1b2)](I);})[F(0x1e0)](I=>{const cS=cR,J=F;B[cS(0x3be)][J(0x212)](cS(0x313),I,E),this[cS(0x329)][J(0x290)](E),this[J(0x310)]=!0x1;});}[z(0x1b2)](E){const F=z;this[F(0x22f)](D[F(0x306)][F(0x2e5)]);}}D[cO(0x398)]={'TIMER':cO(0x2ef),'FETCH':z(0x2e5)},x[z(0x242)]=D;},0x1c7:(w,x)=>{const cW=a0b,y=k;Object[y(0x225)](x,y(0x27c),{'value':!0x0}),x[y(0x242)]=void 0x0;class z{constructor(){this[y(0x2fc)]();}[y(0x2fc)](){const cT=a0b;this[cT(0x235)]=0x0,this['stopTime']=0x0,this[cT(0x2e2)]=0x0;}[y(0x186)](){const A=y;return this[A(0x189)]?this[A(0x2cb)]+(new Date()[A(0x1c1)]()-this[A(0x189)]):null;}[y(0x1bb)](){const cU=a0b,A=y;this[cU(0x235)]=new Date()[A(0x1c1)](),this[A(0x1f4)]=0x0;}['stop'](){const cV=a0b,A=y;return this[cV(0x25f)]=new Date()[A(0x1c1)](),this[A(0x186)]();}[cW(0x294)](){const A=y;var B=new z();return B[A(0x189)]=this[A(0x189)],B[A(0x1f4)]=this[A(0x1f4)],B[A(0x2cb)]=this[A(0x2cb)],B;}}x[cW(0x3be)]=z;},0x238:(w,x)=>{const y=k;Object[y(0x225)](x,y(0x27c),{'value':!0x0}),x[y(0x242)]=void 0x0,x['default']=class{['on'](z,A){const cX=a0b,B=y;if(this['_listeners']=this[B(0x2ee)]||{},cX(0x205)==typeof A)return this[B(0x2ee)][z]=this[B(0x2ee)][z]||[],this[B(0x2ee)][z][B(0x290)](A),this;}[y(0x1dd)](z,A){const cY=a0b,B=y;if(this[B(0x2ee)]=this[B(0x2ee)]||{},this[B(0x2ee)][z]){var C=this[B(0x2ee)][z][B(0x2b0)](A);-0x1!==C&&this[cY(0x21d)][z][B(0x176)](C,0x1);}return this;}[y(0x1d2)](z,A,B){const d0=a0b,C=y;return this[C(0x2ee)]=this[C(0x2ee)]||{},B=B||{},Array[C(0x1e1)](this[C(0x2ee)][A])&&this[C(0x2ee)][A][C(0x22c)](D=>{const cZ=a0b;D[cZ(0x231)](this,{'eventType':z,'type':A,'data':B,'target':this});}),Array['isArray'](this[C(0x2ee)]['*'])&&this[C(0x2ee)]['*'][d0(0x1f2)](D=>{D[C(0x1db)](this,{'eventType':z,'type':A,'data':B,'target':this});}),this;}};},0x319:(w,x,y)=>{const d1=a0b,z=k;Object[z(0x225)](x,d1(0x20b),{'value':!0x0}),x[z(0x242)]=void 0x0;var A=E(y(0x90)),B=E(y(0x12e)),C=E(y(0x148)),D=E(y(0x14a));function E(H){return H&&H[z(0x27c)]?H:{'default':H};}class F extends B[z(0x242)]{constructor(H,I){const d2=d1,J=z;super(),this[d2(0x1f6)]=new C[(d2(0x3be))](),this[J(0x1a0)]=null,this[J(0x1f5)]=null,this[J(0x309)]=null,I=I||{},this[J(0x272)](I),H&&this[J(0x224)](H,I[J(0x180)]),A[J(0x242)][J(0x2b7)](d2(0x390)+this[J(0x1d3)]()+'\x20v'+this[J(0x265)]()+J(0x226));}[z(0x259)](H){const d3=d1;this[d3(0x256)]=H;}[z(0x272)](H){const d4=d1,I=z;H&&(H[d4(0x253)]&&this[I(0x193)](H['adsTracker']),I(0x2d5)==typeof H[I(0x25d)]&&this[I(0x177)](H[d4(0x3c7)]),B[I(0x242)][I(0x305)][I(0x272)][I(0x229)](this,arguments));}[z(0x224)](H,I){const d5=d1,J=z;(this[d5(0x370)]||this[J(0x180)])&&this[J(0x275)](),J(0x2cc)!=typeof document&&document[d5(0x39c)]&&(J(0x2f1)==typeof H&&(H=document[J(0x2d0)](H)),J(0x2f1)==typeof I&&(I=document[d5(0x39c)](I))),I=I||H,this[J(0x181)]=H,this[d5(0x3b2)]=I,this[d5(0x2f1)]();}[d1(0x3c7)](){const H=z;return this[H(0x25c)][H(0x25d)]();}[z(0x177)](H){const I=z;this[I(0x25c)][I(0x177)](H);}[z(0x193)](H){const d6=d1,I=z;this[I(0x1a9)](),H&&(this[I(0x1a0)]=H,this['adsTracker'][I(0x177)](!0x0),this[d6(0x253)][I(0x22b)]=this,this[I(0x1a0)]['on']('*',G[I(0x258)](this)));}[z(0x1a9)](){const d7=d1,H=z;this[H(0x1a0)]&&(this[d7(0x253)]['off']('*',G),this[H(0x1a0)]['dispose']());}[z(0x275)](){const d8=d1,H=z;this[H(0x241)](),this[d8(0x1c0)](),this[H(0x1be)](),this[H(0x181)]=null,this[H(0x180)]=null;}[z(0x1a8)](){}[z(0x1be)](){}[d1(0x1ee)](){const d9=d1,H=z;return this[d9(0x2b2)]?this[H(0x22b)][H(0x293)]():this[H(0x25c)][H(0x293)]();}[z(0x21e)](){const da=d1,H=z;return this[H(0x22b)]?this[da(0x2b2)][da(0x3b4)]():this[H(0x25c)][da(0x3b4)]();}[z(0x1d8)](){return null;}[z(0x235)](){return null;}[z(0x313)](){return null;}[d1(0x2c6)](){return null;}['getWebkitBitrate'](){const db=d1,H=z;if(this[H(0x180)]&&this[db(0x3b2)][H(0x27e)]){let I;if(this[H(0x1e5)]){I=this[H(0x180)][H(0x27e)];let J=I-this[db(0x359)],K=this[db(0x1e5)]()/0x3e8;I=Math[db(0x1bf)](J/K*0x8);}return this[H(0x1e5)]=this[H(0x180)][H(0x27e)],I||null;}}[z(0x179)](){return null;}[z(0x211)](){return null;}[z(0x219)](H){const dc=d1,I=z;let J,K=this[I(0x211)]();return this[I(0x25d)]()?(J=this['_lastAdRendition'],H&&(this[dc(0x2fa)]=K)):(J=this[dc(0x21e)],H&&(this[I(0x210)]=K)),K&&J?K>J?'up':K<J?I(0x1f2):null:null;}[d1(0x3c2)](){const H=z;return this[H(0x180)]?this[H(0x180)][H(0x296)]:null;}[z(0x2e0)](){const dd=d1,H=z;return this[H(0x180)]?this[dd(0x3b2)][H(0x18b)]:null;}[z(0x255)](){const de=d1,H=z;return this[H(0x180)]?this[de(0x3b2)][H(0x26d)]:null;}[z(0x208)](){const H=z;return this['tag']?this[H(0x180)][H(0x2ef)]:null;}[d1(0x2bb)](){return null;}[z(0x2c0)](){const df=d1,H=z;return this[H(0x180)]?this[H(0x180)][df(0x34a)]:null;}[z(0x1eb)](){const dg=d1,H=z;return this[H(0x180)]?this[dg(0x3b2)][H(0x1ce)]:null;}[d1(0x2a3)](){const dh=d1,H=z;return this[H(0x180)]?this[dh(0x3b2)][H(0x1a6)]:null;}['isFullscreen'](){return null;}[d1(0x268)](){return null;}[z(0x268)](){return this[z(0x1d3)]();}[d1(0x22c)](){const H=z;return D[H(0x242)][H(0x2b9)];}[z(0x2e4)](){return null;}[d1(0x270)](){const H=z;return this[H(0x180)]?this[H(0x180)]['autoplay']:null;}[z(0x1e9)](){const di=d1,H=z;return this[H(0x180)]?this[H(0x180)][di(0x392)]:null;}[z(0x2ab)](){return null;}[z(0x2a6)](){const dj=d1,H=z;return this[dj(0x2b2)]?this[H(0x22b)][dj(0x1f6)][H(0x2df)]?H(0x1fc):H(0x2a2):null;}[z(0x2fa)](){return null;}[z(0x2ff)](){return null;}[d1(0x1e9)](){return null;}[z(0x1ea)](){return null;}[d1(0x29c)](){return null;}[z(0x1af)](H,I){const dk=d1,J=z;if(void 0x0===(H=B[J(0x242)][J(0x305)][J(0x1af)][J(0x229)](this,arguments))[J(0x25d)]&&(H[J(0x25d)]=this[J(0x25d)]()),H[J(0x2ec)]=this[J(0x21e)](),H[J(0x2d6)]=this[J(0x293)](),H[J(0x2d2)]=this[dk(0x39d)](),H[dk(0x2a4)]=this[J(0x312)](),H[dk(0x29a)]=this[J(0x191)](),H[J(0x2c5)]=this[J(0x1ea)](),H[J(0x2f7)]=this[J(0x1d4)](),H[J(0x23e)]=this[J(0x309)],H[J(0x214)]=J(0x26c),J(0x28f)===I)return H;try{H[J(0x29d)]=window[J(0x30e)][J(0x26a)];}catch(K){}this[J(0x25d)]()?(H[J(0x1e6)]=this[J(0x1d8)](),H[J(0x1a3)]=this['getTitle'](),H[J(0x2f2)]=this[dk(0x2e0)](),H[J(0x2b3)]=this[J(0x17b)](),H[J(0x195)]=this[dk(0x2c6)]()||this[J(0x25b)]()||this[J(0x211)](),H[J(0x2ed)]=this[dk(0x24b)](),H[J(0x30a)]=this[J(0x211)](),H[J(0x2a9)]=this[J(0x201)](),H[J(0x199)]=this[J(0x2e0)](),H[J(0x1fb)]=this[J(0x255)](),H[J(0x24e)]=this[J(0x208)](),H[J(0x28e)]=this['getLanguage'](),H[dk(0x2dc)]=this[J(0x1c6)](),H[J(0x28c)]=this[J(0x2e4)](),H[dk(0x25e)]=this[J(0x2a6)](),H[J(0x24c)]=this[J(0x2ff)](),H[J(0x1e7)]=this[dk(0x1fe)]()):(H[J(0x1b8)]=this[J(0x1d8)](),H[J(0x215)]=this[J(0x235)](),H[J(0x182)]=this[J(0x2c0)](),H[dk(0x214)]=this[J(0x17b)](),H['contentPlayhead']=this[J(0x208)](),H['contentIsLive']=this[dk(0x368)](),H[J(0x250)]=this[J(0x184)]()||this[J(0x25b)]()||this[dk(0x382)](),H[J(0x25f)]=this[J(0x179)](),H[dk(0x320)]=this[J(0x211)](),H[dk(0x1a2)]=this[J(0x201)](),H[J(0x1f0)]=this[J(0x2e0)](),H[J(0x263)]=this[J(0x255)](),H[J(0x1bf)]=this[J(0x2e7)](),H[J(0x17c)]=this[J(0x1eb)](),H[J(0x1cf)]=this[J(0x18c)](),H[J(0x26f)]=this[J(0x1c6)](),H[J(0x2e1)]=this[J(0x23b)](),H[J(0x27a)]=this[J(0x1e9)](),H[J(0x2bc)]=this[dk(0x372)](),null!=this[J(0x1a0)]&&this[dk(0x253)][J(0x25c)][dk(0x3af)]>0x0&&(H[J(0x1c7)]=this[J(0x1a0)][dk(0x1f6)][J(0x1c7)])),this[J(0x25c)][J(0x1b7)](H);for(let L in this[dk(0x345)])H[L]=this[J(0x2d7)][L];return H;}[z(0x21f)](H,I,J){const K=z;J=J||{},this[K(0x202)](H,J),this[K(0x25c)][K(0x287)](I);}[z(0x2a3)](H){const dl=d1,I=z;this[I(0x25c)][I(0x1bc)]()&&(H=H||{},this[I(0x1ec)](F['Events'][dl(0x2ac)],H));}[d1(0x20f)](H){const dm=d1,I=z;if(this[I(0x25c)][I(0x276)]()){let J;this[I(0x25d)]()?(J=F[I(0x29e)][I(0x198)],this[dm(0x283)](J,H)):(J=F[I(0x29e)][I(0x2be)],this[I(0x1ec)](J,H));}}[d1(0x337)](H){const dn=d1,I=z;if(this[I(0x25c)][I(0x281)]()){let J;this[dn(0x3c7)]()?(J=F[I(0x29e)][I(0x303)],this[I(0x22b)]&&(this['parentTracker'][I(0x25c)][I(0x27f)]=!0x1),this['sendVideoAdAction'](J,H)):(J=F[I(0x29e)][dn(0x3b7)],this[I(0x1ec)](J,H)),this[I(0x23f)](),this[I(0x25c)][I(0x269)]();}}[z(0x188)](H){const dp=d1,I=z;if(this[I(0x25c)][dp(0x237)]()){let J;H=H||{},this[I(0x25d)]()?(J=F[I(0x29e)][I(0x311)],H[dp(0x2de)]=this[I(0x25c)][I(0x2b5)][I(0x186)](),H[I(0x206)]=this[I(0x25c)][dp(0x1e2)][I(0x186)](),this[I(0x22b)]&&(this[I(0x22b)][dp(0x1f6)][I(0x27f)]=!0x0)):(J=F[dp(0x3cc)][I(0x29c)],H[I(0x2b5)]=this[dp(0x1f6)][I(0x2b5)][I(0x186)](),H[I(0x30d)]=this[I(0x25c)][I(0x30d)][I(0x186)]()),this[dp(0x3bd)](),this[I(0x25d)]()?this[I(0x288)](J,H):this[dp(0x318)](J,H),this[I(0x22b)]&&this[I(0x25d)]()&&this[I(0x22b)][I(0x25c)][dp(0x2f2)](),this[I(0x25c)][dp(0x2c4)](),this[I(0x25c)][I(0x20b)]=0x0;}}[d1(0x2da)](H){const dq=d1,I=z;if(this[I(0x25c)][dq(0x307)]()){let J=this[I(0x25d)]()?F[dq(0x3cc)][I(0x20d)]:F[I(0x29e)]['CONTENT_PAUSE'];this['isAd']()?this[I(0x288)](J,H):this[dq(0x318)](J,H);}}[z(0x2d9)](H){const dr=d1,I=z;if(this[I(0x25c)][I(0x308)]()){let J;H=H||{},this[dr(0x3c7)]()?(J=F['Events'][dr(0x1f4)],H[I(0x2ea)]=this[I(0x25c)][I(0x18f)][I(0x186)]()):(J=F[I(0x29e)][dr(0x265)],H[I(0x18f)]=this[I(0x25c)][I(0x18f)][I(0x186)]()),this[I(0x25d)]()?this[I(0x288)](J,H):this[I(0x1ec)](J,H);}}[z(0x2c4)](H){const ds=d1,I=z;if(this[I(0x25c)][ds(0x26b)]()){let J;H=H||{},J=this[I(0x25d)]()?F[I(0x29e)][I(0x19e)]:F[I(0x29e)][I(0x1ab)],H=this[I(0x24a)](H),this[I(0x1f5)]=H[I(0x2c1)],this[ds(0x3c7)]()?this[I(0x288)](J,H):this['sendVideoAction'](J,H);}}[z(0x301)](H){const dt=d1,I=z;if(this[I(0x25c)][I(0x22e)]()){let J;H=H||{},this[I(0x25d)]()?(J=F[I(0x29e)][I(0x192)],H[I(0x1e8)]=this[I(0x25c)][dt(0x1b0)][I(0x186)]()):(J=F[I(0x29e)][I(0x197)],H[I(0x2e2)]=this['state'][I(0x2e2)][dt(0x1c6)]()),H=this[I(0x24a)](H),null!=this[I(0x1f5)]&&(H[I(0x2c1)]=this[I(0x1f5)]),this[I(0x25d)]()?this[I(0x288)](J,H):this[I(0x1ec)](J,H),this[I(0x25c)][I(0x29a)]=!0x0;}}[z(0x24a)](H){const du=d1,I=z;return null==H[I(0x30d)]||H[I(0x30d)]<0x64?H[du(0x353)]=!this[I(0x25c)][I(0x29a)]:H[I(0x295)]=!0x1,H[I(0x2c1)]=this[I(0x25c)][I(0x185)](H[I(0x295)]),H[I(0x1cc)]=this[I(0x25c)][du(0x1b5)][I(0x186)](),H[du(0x1a6)]=this[I(0x25c)][du(0x1a6)][I(0x186)](),H;}[z(0x1f6)](H){const I=z;if(this[I(0x25c)]['goSeekStart']()){let J;J=this[I(0x25d)]()?F[I(0x29e)][I(0x2cf)]:F[I(0x29e)]['CONTENT_SEEK_START'],this[I(0x25d)]()?this[I(0x288)](J,H):this[I(0x1ec)](J,H);}}[z(0x28b)](H){const dv=d1,I=z;if(this[I(0x25c)][dv(0x30c)]()){let J;H=H||{},this[I(0x25d)]()?(J=F[I(0x29e)][I(0x273)],H[dv(0x33a)]=this[I(0x25c)]['timeSinceSeekBegin'][I(0x186)]()):(J=F[I(0x29e)][I(0x183)],H[I(0x314)]=this[I(0x25c)][I(0x314)][I(0x186)]()),this[I(0x25d)]()?this[I(0x288)](J,H):this['sendVideoAction'](J,H);}}[z(0x19a)](H){const dw=d1,I=z;(H=H||{})[dw(0x1f6)]||A[I(0x242)][I(0x190)](I(0x220)),this[I(0x1ec)](F[I(0x29e)][I(0x24f)],H),this[I(0x25c)][dw(0x32c)]();}[z(0x271)](H){const dx=d1,I=z;(H=H||{})[I(0x25d)]=this[dx(0x3c7)](),this[dx(0x1f6)][I(0x30f)]();let J=this[I(0x25d)]()?F[dx(0x3cc)][I(0x27d)]:F['Events'][I(0x1aa)];this[I(0x1dc)](J,H);}[z(0x1d0)](H){const dy=d1,I=z;let J;(H=H||{})[dy(0x266)]=this[I(0x25c)][I(0x285)][I(0x186)](),H[dy(0x1a9)]=this[I(0x219)](!0x0),J=this[I(0x25d)]()?F[I(0x29e)][dy(0x296)]:F[I(0x29e)][I(0x232)],this[I(0x25d)]()?this[I(0x288)](J,H):this[I(0x1ec)](J,H),this[I(0x25c)][I(0x21a)]();}[z(0x282)](H){const dz=d1,I=z;if(this[I(0x25c)][I(0x19b)]){let J,K=this[I(0x2b8)]();this['state'][dz(0x28f)]=!0x0,K=this[I(0x22d)](K),this[I(0x25d)]()?(J=F[dz(0x3cc)][dz(0x247)],'bitmovin-ads'===this[I(0x268)]()?this[I(0x288)](J,H):this[dz(0x283)](J,{'elapsedTime':K,...H})):(J=F[I(0x29e)][I(0x2c9)],this[I(0x1ec)](J,{'elapsedTime':K,...H})),this[I(0x25c)][I(0x269)]();}}[z(0x22d)](H){const dA=d1,I=z;return this[dA(0x1f6)][I(0x2c7)]&&(H-=this[I(0x25c)][dA(0x225)],this[I(0x25c)][I(0x2c7)]=0x0),this[I(0x25c)][I(0x1ca)]&&((H-=this[dA(0x1f6)][I(0x1d5)][I(0x186)]())<0xa&&(H=0x0),this[dA(0x1f6)][I(0x1d5)][I(0x1bb)]()),this[I(0x25c)][I(0x216)]?(H-=this[I(0x25c)][I(0x216)],this[I(0x25c)][I(0x216)]=0x0):this[I(0x25c)][I(0x1b1)]&&((H-=this[I(0x25c)][I(0x18d)][I(0x186)]())<0x5&&(H=0x0),this[I(0x25c)][I(0x18d)][dA(0x240)]()),Math[dA(0x37b)](0x0,H);}[z(0x230)](H){const dB=d1,I=z;this[I(0x25d)]()&&this[dB(0x1f6)][I(0x1ba)]()&&(this[I(0x25c)][I(0x1c7)]=0x0,this[I(0x22b)]&&(this[dB(0x2b2)][I(0x25c)][dB(0x2ba)]=!0x1),this[I(0x288)](F['Events'][I(0x2a5)],H));}[z(0x200)](H){const dC=d1,I=z;this[dC(0x3c7)]()&&this[dC(0x1f6)][dC(0x274)]()&&((H=H||{})[I(0x2f9)]=this[I(0x25c)][dC(0x27d)][I(0x186)](),this[I(0x288)](F['Events'][I(0x2e9)],H),this[I(0x22b)]&&(this[dC(0x2b2)][I(0x25c)][I(0x27f)]=!0x0),this['stopHeartbeat'](),this[dC(0x2b2)]&&this['isAd']()&&this[I(0x22b)][I(0x25c)][I(0x20f)]());}[z(0x2f4)](H){const dD=d1,I=z;this[dD(0x3c7)]()&&((H=H||{})[I(0x239)]||A['default'][I(0x190)]('Called\x20sendAdQuartile\x20without\x20{\x20quartile:\x20xxxxx\x20}.'),H[I(0x2bf)]=this[I(0x25c)][I(0x2bf)][I(0x186)](),this[I(0x288)](F[I(0x29e)][I(0x2fe)],H),this[I(0x25c)][dD(0x2fd)]());}[z(0x28d)](H){const dE=d1,I=z;this[I(0x25d)]()&&((H=H||{})[dE(0x1aa)]||A[I(0x242)][I(0x190)](I(0x2dd)),this[I(0x288)](F[dE(0x3cc)][I(0x2c2)],H));}}function G(H){const dF=d1,I=z;this[I(0x288)](H[dF(0x367)],H[I(0x1b3)]);}F[z(0x29e)]={'PLAYER_READY':z(0x294),'DOWNLOAD':z(0x24f),'ERROR':z(0x17e),'CONTENT_REQUEST':z(0x2be),'CONTENT_START':z(0x2ce),'CONTENT_END':z(0x29c),'CONTENT_PAUSE':z(0x2cd),'CONTENT_RESUME':z(0x2ae),'CONTENT_SEEK_START':z(0x2b1),'CONTENT_SEEK_END':z(0x183),'CONTENT_BUFFER_START':z(0x1ab),'CONTENT_BUFFER_END':z(0x197),'CONTENT_HEARTBEAT':z(0x2c9),'CONTENT_RENDITION_CHANGE':d1(0x277),'CONTENT_ERROR':z(0x1aa),'AD_REQUEST':z(0x198),'AD_START':'AD_START','AD_END':d1(0x33c),'AD_PAUSE':z(0x20d),'AD_RESUME':z(0x252),'AD_SEEK_START':z(0x2cf),'AD_SEEK_END':d1(0x208),'AD_BUFFER_START':d1(0x27c),'AD_BUFFER_END':d1(0x25b),'AD_HEARTBEAT':'AD_HEARTBEAT','AD_RENDITION_CHANGE':z(0x1c0),'AD_ERROR':d1(0x22f),'AD_BREAK_START':z(0x2a5),'AD_BREAK_END':z(0x2e9),'AD_QUARTILE':'AD_QUARTILE','AD_CLICK':z(0x2c2)},x[d1(0x3be)]=F;}},j={};function k(w,x){const y=v();return(k=function(z,A){return y[z-=0x175];})(w,x);}function m(w){const dG=a0b,x=k;var y=j[w];if(void 0x0!==y)return y[x(0x1f9)];var z=j[w]={'exports':{}};return g[w](z,z[dG(0x295)],m),z['exports'];}var p={};((()=>{const w=k;var x=p;Object[w(0x225)](x,'B',{'value':!0x0}),x['A']=void 0x0;var y=K(m(0x92)),z=K(m(0x196)),B=K(m(0x18f)),C=K(m(0x33)),D=K(m(0x1c7)),E=K(m(0x90)),F=K(m(0x238)),G=K(m(0x12e)),H=K(m(0x319)),I=K(m(0x148)),J=m(0x14a);function K(M){return M&&M['__esModule']?M:{'default':M};}const L={'Constants':C[w(0x242)],'Chrono':D[w(0x242)],'Log':E[w(0x242)],'Emitter':F[w(0x242)],'Tracker':G['default'],'VideoTracker':H[w(0x242)],'VideoTrackerState':I[w(0x242)],'Core':B[w(0x242)],'Backend':y['default'],'NRInsightsBackend':z[w(0x242)],'version':J[w(0x2b9)]};x['A']=L;})());var q=p['B'],u=p['A'];function v(){const dH=a0b,w=[dH(0x239),dH(0x302),dH(0x2de),dH(0x270),dH(0x2ef),dH(0x1f9),'enduser.id','startHeartbeat','Chrome',dH(0x3bd),'default','application/json',dH(0x305),dH(0x2c4),dH(0x2b6),dH(0x3c4),'debug',dH(0x307),dH(0x24c),'waiting',dH(0x2a6),dH(0x3c8),dH(0x298),dH(0x1ea),dH(0x2d1),dH(0x2bc),dH(0x1f4),dH(0x340),dH(0x1a6),dH(0x2f4),dH(0x1a8),'send',dH(0x31c),'setUserId',dH(0x323),dH(0x301),dH(0x1f6),dH(0x3c7),'hidden',dH(0x1a0),dH(0x3b0),'type',dH(0x374),dH(0x39e),dH(0x1eb),'getTrackerVersion','isPlayerReady',dH(0x1b8),dH(0x39d),dH(0x259),'href',dH(0x1d0),dH(0x245),dH(0x2d2),dH(0x2c9),dH(0x2d9),dH(0x1c2),dH(0x1ec),dH(0x289),'AD_SEEK_END',dH(0x38c),dH(0x242),dH(0x3c6),dH(0x2dd),dH(0x33f),dH(0x321),'contentPreload',dH(0x24e),dH(0x20b),dH(0x22f),dH(0x26f),dH(0x2ba),dH(0x2ab),dH(0x1d2),dH(0x2a7),'_apiKey','goAdBreakEnd',dH(0x266),dH(0x37e),dH(0x238),dH(0x283),dH(0x1cf),'actionName',dH(0x192),dH(0x1c3),dH(0x2af),dH(0x297),'customAction',dH(0x26c),'_isAd',dH(0x236),'getViewId',dH(0x2ac),dH(0x353),dH(0x3a2),dH(0x32d),dH(0x36d),dH(0x26e),'initialBufferingHappened','_heartbeatInterval',dH(0x39f),'pageUrl',dH(0x3cc),dH(0x333),'_lastTimestamp',dH(0x291),dH(0x21b),'sendPlayerReady',dH(0x22b),dH(0x285),dH(0x1b2),dH(0x2c1),dH(0x304),dH(0x272),'shift',dH(0x30b),dH(0x34b),'isAdBreak','CONTENT_RESUME',dH(0x29b),'indexOf',dH(0x20e),dH(0x26d),'adCdn',dH(0x188),dH(0x1d3),dH(0x19f),dH(0x371),'getHeartbeat',dH(0x1d8),dH(0x352),'json',dH(0x1ba),dH(0x383),dH(0x37f),dH(0x36c),dH(0x2e0),'bufferType',dH(0x1de),dH(0x219),dH(0x229),'instrumentation.name','colorful',dH(0x225),dH(0x1bb),dH(0x31b),'removeTimeSinceAttribute',dH(0x2e2),dH(0x1da),dH(0x2ec),dH(0x3b7),'AD_SEEK_START','getElementById',dH(0x18d),dH(0x3ad),'Safari',dH(0x263),dH(0x190),dH(0x35b),dH(0x345),dH(0x276),dH(0x2b1),'Buffer\x20Type\x20=\x20','seeked',dH(0x1fb),'Called\x20sendAdClick\x20without\x20{\x20url:\x20xxxxx\x20}.',dH(0x338),dH(0x249),'getRenditionWidth',dH(0x204),dH(0x1b0),dH(0x211),dH(0x372),dH(0x336),'_viewSession','getLanguage','Edge',dH(0x31a),dH(0x2a1),dH(0x2b0),'viewSession',dH(0x1d9),dH(0x21d),dH(0x3b3),'addTracker',dH(0x2c0),dH(0x203),dH(0x37c),dH(0x2be),dH(0x258),dH(0x38b),dH(0x36f),dH(0x209),'timeSinceAdBreakBegin',dH(0x1fe),dH(0x329),dH(0x351),dH(0x1d6),dH(0x281),dH(0x29f),dH(0x3a8),dH(0x38a),'darkred',dH(0x223),dH(0x325),dH(0x193),'Source','match','goResume',dH(0x256),'adRenditionBitrate',dH(0x30c),dH(0x2a2),dH(0x1e2),dH(0x1e6),dH(0x1c7),'_harvestLocked',dH(0x33c),dH(0x22c),'isLive','timeSinceSeekBegin',dH(0x3c1),'splice','setIsAd',dH(0x2b8),'getRenditionName',dH(0x361),dH(0x268),'contentPlayrate',dH(0x293),dH(0x20c),dH(0x34f),dH(0x3b2),dH(0x370),dH(0x2c8),dH(0x244),dH(0x2c6),dH(0x2cb),dH(0x1c6),'_trackerReadyChrono',dH(0x299),dH(0x235),dH(0x19c),'videoWidth','isFullscreen',dH(0x22a),dH(0x365),'timeSincePaused',dH(0x1ef),'getInstrumentationProvider',dH(0x25b),dH(0x2c3),'timeSinceAdSeekBegin',dH(0x34c),'VideoAdAction',dH(0x356),dH(0x380),'adRenditionWidth',dH(0x189),dH(0x27a),dH(0x205),'isSeeking',dH(0x27c),dH(0x2d8),dH(0x253),'abort',dH(0x27d),dH(0x233),dH(0x196),dH(0x215),dH(0x31d),dH(0x37d),dH(0x2f1),'disposeAdsTracker','CONTENT_ERROR',dH(0x396),dH(0x21c),dH(0x1fd),dH(0x2d3),'getAttributes',dH(0x21a),'isBuffering',dH(0x25a),dH(0x375),'Mobile',dH(0x30f),dH(0x23c),'getStateAttributes',dH(0x32f),dH(0x1f1),dH(0x278),'start',dH(0x234),dH(0x1f8),dH(0x342),'contentLanguage',dH(0x296),dH(0x386),'WARNING','3078480WjqEgU',dH(0x25d),dH(0x33b),dH(0x2a3),'totalAdPlaytime',dH(0x2cf),dH(0x349),'isPaused',dH(0x31e),dH(0x1b5),dH(0x224),dH(0x18c),'contentIsFullscreen','sendRenditionChanged',dH(0x2aa),dH(0x1d5),dH(0x3a6),'getInstrumentationVersion',dH(0x312),'HEARTBEAT',dH(0x26b),'getVideoId','_eventType','ALL',dH(0x231),dH(0x2e8),dH(0x1ed),dH(0x3a4),dH(0x350),dH(0x2ee),dH(0x334),dH(0x1bc),'deviceType',dH(0x3a7),dH(0x359),'adId',dH(0x22d),'timeSinceAdBufferBegin',dH(0x284),'getInstrumentationName','getPlayrate','sendVideoAction','SILENT',dH(0x191),dH(0x252),'contentRenditionWidth','log',dH(0x2f7),dH(0x316),dH(0x25f),'_lastBufferType',dH(0x212),dH(0x1ff),'4350987ushWod',dH(0x295),dH(0x397),'adDuration',dH(0x2f8),dH(0x358),dH(0x317),'Win','sendAdBreakEnd',dH(0x3c2),'sendVideoCustomAction',dH(0x29d),'stringify','substring',dH(0x279),'goAdQuartile',dH(0x31f),dH(0x308),dH(0x3ce),dH(0x22e),'canplay',dH(0x36e),dH(0x1d4),dH(0x2f2),dH(0x21e),dH(0x382),dH(0x36b),'_hb',dH(0x248),'contentTitle',dH(0x30d),dH(0x1cb),dH(0x28b),dH(0x315),dH(0x30e),'origin',dH(0x344),'slice',dH(0x3b4),dH(0x2ff),dH(0x199),dH(0x1c1),dH(0x373),'34563ogCIKi',dH(0x376),dH(0x1ae),dH(0x33d),dH(0x2f6),dH(0x2f3),dH(0x3aa),dH(0x18e),dH(0x2b2),'forEach','adjustElapsedTimeForPause',dH(0x3a5),dH(0x2d6),dH(0x2a0),dH(0x339),dH(0x277),dH(0x393),dH(0x3b6),dH(0x3cd),dH(0x228),'darkcyan'];return(v=function(){return w;})();}}},e={};function i(a){const dI=a0b;var b=e[a];if(void 0x0!==b)return b[dI(0x295)];var c=e[a]={'exports':{}};return t[a](c,c[dI(0x295)],i),c[dI(0x295)];}function a0b(a,b){const c=a0a();return a0b=function(d,e){d=d-0x187;let f=c[d];return f;},a0b(a,b);}i['d']=(a,b)=>{for(var c in b)i['o'](b,c)&&!i['o'](a,c)&&Object['defineProperty'](a,c,{'enumerable':!0x0,'get':b[c]});},i['o']=(a,b)=>Object[a0dJ(0x193)][a0dJ(0x23d)][a0dJ(0x231)](a,b),i['r']=a=>{const dK=a0dJ;'undefined'!=typeof Symbol&&Symbol[dK(0x3a9)]&&Object[dK(0x1ae)](a,Symbol[dK(0x3a9)],{'value':'Module'}),Object['defineProperty'](a,dK(0x20b),{'value':!0x0});};var s={};function a0a(){const dM=['splice','setOptions','ads-play','goSeekStart','getPrimaryCreativeRenditionAsset','Log','podInfo','_hb','adstart','trackerName','shakaPlayer','isBackgroundEvent','clone','exports','AD_RENDITION_CHANGE','adLanguage','adPlayhead','sendEnd','instrumentation.provider','Opera','getInstrumentationVersion','setBackend','STARTED','getAdCreativeId','sendAdBreakStart','timeSinceAdPaused','https://insights-collector.newrelic.com/v1/accounts/','isMuted','playerVersion','POSTROLL','adCreativeId','sendHeartbeat','ima3-paused','isContentEnd','entries','44JfDnas','PLAYER_READY','MIDPOINT','onAdsplay','sendAdClick','iOS','sendResume','parentTracker','timeSinceLastAdHeartbeat','isBuffering','onMidpoint','true','FreewheelAdsCompleted','pushEventToInsights','9GQqdbI','isPlaying','getLanguage','Tablet','Harvest\x20still\x20locked,\x20abort','sendAdQuartile','ImaAdsTracker','string','setAttributes','onPaused','setAdsTracker','goViewCountUp','adserror','getBitrate','timeSinceAdBreakBegin','contentSrc','play','VERSION','calculateBufferType','onFirstQuartile','ALL_ADS_COMPLETED','ads-pod-ended','loadstart','USER_CLOSE','contentBitrate','duration','setAttribute','height','onSeeking','harvestHandler','_eventType','Mac','contentIsMuted','sendPause','adskip','adIsMuted','prefix','timeSinceAdRequested','onSeeked','getSrc','unknown','offset','bandwidth','substring','getVariantTracks','isFullscreen','active','sendVideoErrorAction','onThirdQuartile','HEARTBEAT','onPlaying','CONTENT_PAUSE','RESOLUTION','catch','TIMER','adend','registerListeners','goLastAd','loadedmetadata','getDuration','hidden','numberOfVideos','down','mid','LOG','_lastAdRendition','9961bQiYLk','onPodStart','goAdQuartile','autoplay','sendCustom','event','getWebkitBitrate','quartile','ads-request','Firefox','random','ads-ad-ended','goPause','getDate','AD_METADATA','ima3error','getAdQuartile','goSeekEnd','_bufferAcc','goRenditionChange','timeSinceTrackerReady','getActiveCreativeRendition','PREROLL','elapsedTime','Error:','ima','getRenditionShift','level','performance','sendVideoAction',';\x20contrib-ads:\x20','AD_BREAK_END','CONTENT_HEARTBEAT','bind','muted','trackerInit','getPlayhead','contentRenditionBitrate','playtimeSinceLastEvent','ima3','Push\x20events\x20to\x20Insights\x20=\x20','ads-pod-started','videoError','getCuePoints','adId','userAgentName','_eventBuffer','getAdPodInfo','35912sCKqvb','goDownload','isError','onWaiting','contentId','generateAttributes','onStarted','getStateAttributes','then','isArray','onAdskip','FETCH','sendStart','ACTION_TABLE','exec','timeSinceAdSeekBegin','timestamp','AD_END','\x20is\x20ready.','_trackerReadyChrono','Desktop','pop','ads-pause','unregisterListeners','onAdsClick','Microsoft\x20Edge','customData','5267195djvPbR','timeupdate','videoWidth','[nrvideo]','currentSrc','numberOfAds','adBitrate','lastAdData','creativeId','Levels','seeking','reset','stop','isInitialBuffering','IMPRESSION','log','CONTENT_BUFFER_END','8964732RRVhmh','stalled','_lastWebkitBitrate','ima3-complete','viewId','referrer','getResource','getManifestUri','onImpression','onComplete','pathname','ACTION_AD_TABLE','vhs_','CONTENT_PAUSE_REQUESTED','loadeddata','getAdData','type','isLive','darkcyan','color:\x20','error','timeSinceLastAdQuartile','pause','AD_PAUSE','instrumentation.version','player','notice','getFps','length','545616VJwKwZ','data','setPlayer','connection','onResumed','getId','freewheel','max','recordCustomEvent','resetChronos','252MNSXIp','CONTENT_REQUEST','AD_REQUEST','sendAdBreakEnd','getRenditionBitrate','_viewCount','getTrackerVersion','getAdsManager','getTime','mediaUrl','PRE','adPlayer','sendBufferEnd','addEventHandler','Unknown','documentMode','_actionTable','ads-click','Tracker\x20','removeEventListener','preload','trackerVersion','message','onDispose','CONTENT_BUFFER_START','post','Source','mediainfo','indigo','LINEAR_CHANGED','getElementById','getPlayerName','contentDuration','CONTENT_END','onClick','timeSincePaused','videoHeight','ima3-ad-error','VideoCustomAction','goBufferEnd','getTrackerName','Cast','includeTime','toStringTag','apply','timeSinceSeekBegin','attributes','playerName','RESUMED','totalAdPlaytime','Android','onAdStart','tag','currentTime','getViewSession','ima3-ready','_attributes','CONTENT_START','adInstance','onPodEnd','AD_CAN_PLAY','116946gkvVay','onTimeupdate','stopHeartbeat','default','POST','5112eSNtBW','Sent','getRenditionHeight','X11','newrelic.recordCustomEvent()\x20is\x20not\x20available.','videojs','goRequest','isAd','getTrackers','Type','podIndex','snapshot','Events','getTitle','search','sendClick','DEBUG','sendDownload','brightcove-ima-ads','onLoaded','playbackRate','/events','279108GQRcNh','freewheel-ads','boolean','UNIX','sendSeekEnd','prototype','media','MID','21CdRMQq','imaAdCuePoints','ads-first-quartile','Called\x20sendDownload\x20without\x20{\x20state:\x20xxxxx\x20}.','getUrl','ima-ads','debugCommonVideoEvents:\x20No\x20common\x20listener\x20function\x20found\x20for\x20','getTech','ads-ad-started','timeSinceLastDownload','contentRenditionName','ima3-skipped','contentRenditionHeight','onAdEnd','code','getErrorCode','timeSinceSeekEnd','ContribHlsTech','now','shift','url','adsready','getVideoId','onAdspause','defineProperty','getCurrentAd','timeSinceBufferBegin','503ihRPqN','getAdPosition','getInstrumentationName','ima3-started','timeSinceResumed','currentLevel','getMessage','_createdAt','VideoTracker','contentFps','AdPositions','timeSinceLastHeartbeat','_harvestLocked','CLICK','round','disposeAdsTracker','append','userAgent','adFps','AdEvent','onPause','getDeltaTime','goError','video','tech','playing','getMinutes','{\x22name\x22:\x22@newrelic/video-core\x22,\x22version\x22:\x223.0.1\x22,\x22description\x22:\x22New\x20Relic\x20video\x20tracking\x20core\x20library\x22,\x22main\x22:\x22./dist/cjs/index.js\x22,\x22module\x22:\x22./dist/esm/index.js\x22,\x22scripts\x22:{\x22build\x22:\x22webpack\x20--mode\x20production\x22,\x22build:dev\x22:\x22webpack\x20--mode\x20development\x22,\x22watch\x22:\x22webpack\x20--mode\x20production\x20--progress\x20--color\x20--watch\x22,\x22watch:dev\x22:\x22webpack\x20--progress\x20--color\x20--watch\x22,\x22clean\x22:\x22rm\x20-rf\x20dist\x20coverage\x20doc\x22,\x22test\x22:\x22nyc\x20--reporter=html\x20--reporter=text\x20mocha\x20--require\x20@babel/register\x22,\x22doc\x22:\x22jsdoc\x20-c\x20jsdoc.json\x20-d\x20documentation\x22,\x22deploy\x22:\x22node\x20scripts/deploy.js\x22,\x22third-party-updates\x22:\x22oss\x20third-party\x20manifest\x20--includeOptDeps\x20&&\x20oss\x20third-party\x20notices\x20--includeOptDeps\x20&&\x20git\x20add\x20THIRD_PARTY_NOTICES.md\x20third_party_manifest.json\x22},\x22repository\x22:{\x22type\x22:\x22git\x22,\x22url\x22:\x22https://github.com/newrelic/video-core-js\x22},\x22author\x22:\x22Jordi\x20Aguilar\x22,\x22contributors\x22:[\x22Andreu\x20Santarén\x20Llop\x22],\x22license\x22:\x22MIT\x22,\x22devDependencies\x22:{\x22@babel/core\x22:\x22^7.24.5\x22,\x22@babel/plugin-transform-modules-commonjs\x22:\x22^7.24.1\x22,\x22@babel/preset-env\x22:\x22^7.24.5\x22,\x22@babel/register\x22:\x22^7.24.6\x22,\x22@newrelic/newrelic-oss-cli\x22:\x22^0.1.2\x22,\x22aws-sdk\x22:\x22^2.920.0\x22,\x22babel-loader\x22:\x22^9.1.3\x22,\x22chai\x22:\x22^4.3.4\x22,\x22diff\x22:\x22^5.0.0\x22,\x22jsdom\x22:\x22^25.0.1\x22,\x22mocha\x22:\x22^10.4.0\x22,\x22nyc\x22:\x22^15.1.0\x22,\x22sinon\x22:\x22^2.4.1\x22,\x22webpack\x22:\x22^5.91.0\x22,\x22webpack-cli\x22:\x22^4.9.2\x22,\x22webpack-obfuscator\x22:\x22^3.5.1\x22},\x22files\x22:[\x22THIRD_PARTY_NOTICES.md\x22,\x22dist\x22,\x22CHANGELOG.md\x22,\x22README.md\x22,\x22!test\x22],\x22publishConfig\x22:{\x22access\x22:\x22public\x22}}','BrightcoveImaAdsTracker','language','NOTICE','darkorange','_lastTimestamp','goStart','timeSinceRequested','cast','emit','concat','ads-third-quartile','version','adRenditionName','undefined','{\x22name\x22:\x22@newrelic/video-videojs\x22,\x22version\x22:\x223.0.2\x22,\x22description\x22:\x22New\x20relic\x20tracker\x20for\x20Videojs\x22,\x22main\x22:\x22dist/cjs/index.js\x22,\x22module\x22:\x22dist/esm/index.js\x22,\x22scripts\x22:{\x22build\x22:\x22webpack\x20--mode\x20production\x22,\x22build:dev\x22:\x22webpack\x20--mode\x20development\x22,\x22watch\x22:\x22webpack\x20--mode\x20production\x20--progress\x20--color\x20--watch\x22,\x22watch:dev\x22:\x22webpack\x20--progress\x20--color\x20--watch\x20--mode\x20development\x22,\x22prezip\x22:\x22npm\x20run\x20build\x22,\x22zip\x22:\x22zip\x20-P\x20newrelic\x20-x\x20\x27*.DS_Store\x27\x20-x\x20\x27samples/agent.js\x27\x20-r\x20videojs.zip\x20dist\x20samples\x20README.md\x20CHANGELOG.md\x20EULA.md\x22,\x22clean\x22:\x22rm\x20-rf\x20dist\x20*.zip\x22,\x22deploy\x22:\x22node\x20scripts/deploy.js\x22,\x22third-party-updates\x22:\x22oss\x20third-party\x20manifest\x20--includeOptDeps\x20&&\x20oss\x20third-party\x20notices\x20--includeOptDeps\x20&&\x20git\x20add\x20THIRD_PARTY_NOTICES.md\x20third_party_manifest.json\x22},\x22repository\x22:{\x22type\x22:\x22git\x22,\x22url\x22:\x22https://github.com/newrelic/video-videojs-js.git\x22},\x22author\x22:\x22Jordi\x20Aguilar\x22,\x22contributors\x22:[\x22Andreu\x20Santarén\x20Llop\x22],\x22license\x22:\x22MIT\x22,\x22devDependencies\x22:{\x22@babel/core\x22:\x22^7.24.5\x22,\x22@babel/plugin-transform-modules-commonjs\x22:\x22^7.24.1\x22,\x22@babel/preset-env\x22:\x22^7.24.5\x22,\x22@newrelic/newrelic-oss-cli\x22:\x22^0.1.2\x22,\x22aws-sdk\x22:\x22^2.920.0\x22,\x22babel-loader\x22:\x22^9.1.3\x22,\x22videojs-ima\x22:\x222.1.0\x22,\x22webpack\x22:\x22^5.91.0\x22,\x22webpack-cli\x22:\x22^4.9.2\x22,\x22webpack-obfuscator\x22:\x22^3.5.1\x22},\x22dependencies\x22:{\x22@newrelic/video-core\x22:\x22^3.0.1\x22},\x22files\x22:[\x22THIRD_PARTY_NOTICES.md\x22,\x22dist\x22,\x22CHANGELOG.md\x22,\x22README.md\x22,\x22!test\x22],\x22publishConfig\x22:{\x22access\x22:\x22public\x22}}','COMPLETE','onAdend','AD_CLICK','MIDROLL','ima:\x20','name','timeSinceStarted','Core','streamBandwidth','getHeartbeat','location','getRenditionWidth','onAdload','getInstrumentationProvider','DOWNLOAD','customTimeSinceAttributes','sendError','off','getViewId','warn','AdErrorEvent','numberOfErrors','forEach','THIRD_QUARTILE','AD_RESUME','Event:\x20','state','ads-load','VideoAction','currentUrl','onAbort','timeSinceLastAd','ima3-resumed','seek','getAdPartner','Windows','adtimeout','onPlay','debugCommonVideoEvents','adSrc','contentIsAutoplayed','function','onEnded','title','AD_SEEK_END','parse','onAdrequest','__esModule','ERROR','getAttributes','CONTENT_SEEK_START','sendRequest','31601650OXOnIm','getMilliseconds','sendSeekStart','SKIPPED','contentCdn','Linux','Constants','getRemainingTime','vhs','referrerUrl','_actionAdTable','pre','coreVersion','_listeners','_lastRendition','ads-allpods-completed','videojs-ads','onAdstart','ads-midpoint','AD_START','VideoErrorAction','_acc','ended','assign','8qAexBD','sendBufferStart','bufferElapsedTime','resetFlags','getPlayerVersion','adPartner','totalPlaytime','AD_ERROR','PAUSED','call','seeked','adTitle','goPlayerReady','startTime','toString','goEnd','setTimeSinceAttribute','initial','AD_BREAK_READY','removeTracker','147020OgdjfF','hasOwnProperty','bitrate','LOADED','start','getError','dispose','eventType','CONTENT_SEEK_END','Browser','FIRST_QUARTILE','AD_HEARTBEAT','src','isStarted','ShakaTech','getRenditionName','buildBufferAttributes','onError','_accountId','includes','onAdserror','ads-playback','4890540LqmQyX','adsTracker','levels','1954TrXmlG','_userId','abort','resume','goHeartbeat','insightsRequestResponse','AD_BUFFER_END','onResume','buffering','adPosition','stopTime','waiting','onAdsready','WARNING','addEventListener','getMediaUrl','CONTENT_RESUME','timeSinceLastRenditionChange','width','getCdn','In\x20order\x20to\x20use\x20NewRelic\x20Video\x20you\x20will\x20need\x20New\x20Relic\x20Browser\x20Agent.','OnAdsAllpodsCompleted','goBufferStart','push','getBackend','8OcUMCS','webkitVideoDecodedByteCount','isAutoplayed','base-tracker','adRenditionHeight','ads','goAdBreakEnd','getAdId','heartbeat','CONTENT_RENDITION_CHANGE','goAdBreakStart','timeSinceAdStarted','isRequested','slice','AD_BUFFER_START','timeSinceAdBreakStart','provider','isUsing','playlists','AD_QUARTILE','VideojsAdsTracker','sendVideoAdAction','getPreload','AD_BREAK_START','onDownload','onSkipped'];a0a=function(){return dM;};return a0a();}((()=>{const dL=a0dJ;var a=s;Object['defineProperty'](a,'B',{'value':!0x0}),a['A']=void 0x0;var b,c=(b=i(0x12e))&&b[dL(0x20b)]?b:{'default':b};a['A']=c[dL(0x3be)];})());const n=s['B'],r=s['A'];export{n as __esModule,r as default};
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
var e={38:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,r=(s=i(472))&&s.__esModule?s:{default:s};class n extends r.default{static isUsing(e){return!!e.FreeWheelPlugin&&"undefined"!=typeof tv&&tv.freewheel}getTrackerName(){return"freewheel-ads"}getPlayerName(){return"freewheel-ads"}getPlayerVersion(){return this.player.FreeWheelPlugin.VERSION}getPlayhead(){if(this.player.ads.ad.currentTime)return 1e3*this.player.ads.ad.currentTime()}getDuration(){if(this.player.ads.ad.duration)return 1e3*this.player.ads.ad.duration}getVideoId(){return this.player.ads.ad.id}getAdPartner(){return"freewheel"}getAdCreativeId(){try{return this.player.ads.provider.event.adInstance.getActiveCreativeRendition().getId()}catch(e){}}getSrc(){try{return this.player.ads.provider.event.adInstance.getActiveCreativeRendition().getPrimaryCreativeRenditionAsset().getUrl()}catch(e){}}getTitle(){try{return this.player.ads.provider.event.adInstance.getActiveCreativeRendition().getPrimaryCreativeRenditionAsset().getName()}catch(e){}}getAdPosition(){switch(this.player.ads.ad.type){case"PREROLL":return nrvideo.Constants.AdPositions.PRE;case"MIDROLL":return nrvideo.Constants.AdPositions.MID;case"POSTROLL":return nrvideo.Constants.AdPositions.POST}}}t.default=n},64:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(i(555)),r=n(i(472));function n(e){return e&&e.__esModule?e:{default:e}}class a extends r.default{static isUsing(e){return!!e.ima3}getTrackerName(){return"brightcove-ima-ads"}getPlayerName(){return"brightcove-ima-ads"}getPlayhead(){return this.player?.ima3?.adPlayer?.currentTime()}registerListeners(){s.default.Log.debugCommonVideoEvents(this.player,[null,"ima3-ready","ima3error","ima3-ad-error","ima3-started","ima3-complete","ima3-paused","ima3-resumed","ads-request","ads-load","ads-ad-started","ads-ad-ended","ads-pause","ads-play","ads-click","ads-pod-started","ads-pod-ended","ads-allpods-completed"]),this.player.on("ima3-started",this.onStarted.bind(this)),this.player.on("ima3-paused",this.onPaused.bind(this)),this.player.on("ima3-resumed",this.onResume.bind(this)),this.player.on("ima3-complete",this.onComplete.bind(this)),this.player.on("ima3-skipped",this.onSkipped.bind(this)),this.player.on("adserror",this.onError.bind(this)),this.player.on("ads-click",this.onClick.bind(this))}unregisterListeners(){this.player.off("ima3-started",this.onStarted),this.player.off("ima3-paused",this.onPaused),this.player.off("ima3-resumed",this.onResume),this.player.off("ima3-complete",this.onComplete),this.player.off("ima3-skipped",this.onSkipped),this.player.off("adserror",this.onError),this.player.off("ads-click",this.onClick)}onStarted(e){this.sendRequest(),this.sendStart()}onPaused(e){this.sendPause()}onResume(e){this.sendResume()}onComplete(e){this.sendEnd()}onSkipped(e){this.sendEnd({skipped:!0})}onError(e){this.sendError()}onClick(e){this.sendClick()}}t.default=a},257:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{constructor(e){this.tech=e.vhs_}getResource(e){return this.tech.url}getRenditionName(e){try{var t=this.tech.levels[this.tech.currentLevel];if(t&&t.name)return t.name}catch(e){}return null}getRenditionBitrate(e){try{var t=this.tech.levels[this.tech.currentLevel];if(t&&t.bitrate)return t.bitrate}catch(e){}return null}getRenditionWidth(e){try{var t=this.tech.levels[this.tech.currentLevel];if(t&&t.width)return t.width}catch(e){}return null}getRenditionHeight(e){try{var t=this.tech.levels[this.tech.currentLevel];if(t&&t.height)return t.height}catch(e){}return null}}t.default=i,i.isUsing=function(e){return!!e.vhs_}},298:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(i(555)),r=n(i(472));function n(e){return e&&e.__esModule?e:{default:e}}class a extends r.default{static isUsing(e){return e.ima&&"undefined"!=typeof google}getTrackerName(){return"ima-ads"}getPlayerName(){return"ima"}getPlayerVersion(){return"ima: "+google.ima.VERSION+"; contrib-ads: "+this.player.ads.VERSION}getCuePoints(){return this.player.ima.getAdsManager().getCuePoints()}getAdPosition(){if(this.lastAdData&&this.lastAdData.podInfo&&void 0!==this.lastAdData.podInfo.podIndex){const e=this.lastAdData.podInfo.podIndex;return 0===e?"pre":-1===e?"post":"mid"}return null}getDuration(){return this.lastAdData&&void 0!==this.lastAdData.duration?1e3*this.lastAdData.duration:null}getVideoId(){return this.lastAdData&&this.lastAdData.adId?this.lastAdData.adId:null}getAdCreativeId(){return this.lastAdData&&this.lastAdData.creativeId?this.lastAdData.creativeId:null}getSrc(){return this.lastAdData&&this.lastAdData.mediaUrl?this.lastAdData.mediaUrl:null}getTitle(){return this.lastAdData&&this.lastAdData.title?this.lastAdData.title:null}getPlayhead(){let e=this.player.ima.getAdsManager();if(e)return 1e3*(this.getDuration()-e.getRemainingTime())}getPlayrate(){return this.player.playbackRate()}getAdPartner(){return"ima"}registerListeners(){let e=google.ima.AdEvent.Type,t=google.ima.AdErrorEvent.Type.AD_ERROR;this.lastAdData=null,s.default.Log.debugCommonVideoEvents(this.player.ima.addEventListener,[null,e.ALL_ADS_COMPLETED,e.LINEAR_CHANGED,e.COMPLETE,e.USER_CLOSE,e.IMPRESSION,e.CONTENT_PAUSE_REQUESTED,e.CONTENT_RESUME_REQUESTED,e.SKIPPED,e.SKIPPABLE_STATE_CHANGED,e.LOADED,e.PAUSED,e.RESUMED,e.STARTED,e.AD_CAN_PLAY,e.AD_METADATA,e.EXPANDED_CHANGED,e.AD_BREAK_READY,e.LOG,e.CLICK,e.FIRST_QUARTILE,e.MIDPOINT,e.THIRD_QUARTILE,t]),this.player.ima.addEventListener(e.LOADED,this.onLoaded.bind(this)),this.player.ima.addEventListener(e.STARTED,this.onStart.bind(this)),this.player.ima.addEventListener(e.PAUSED,this.onPaused.bind(this)),this.player.ima.addEventListener(e.RESUMED,this.onResumed.bind(this)),this.player.ima.addEventListener(e.COMPLETE,this.onComplete.bind(this)),this.player.ima.addEventListener(e.SKIPPED,this.onSkipped.bind(this)),this.player.ima.addEventListener(e.CLICK,this.onClick.bind(this)),this.player.ima.addEventListener(e.FIRST_QUARTILE,this.onFirstQuartile.bind(this)),this.player.ima.addEventListener(e.MIDPOINT,this.onMidpoint.bind(this)),this.player.ima.addEventListener(e.THIRD_QUARTILE,this.onThirdQuartile.bind(this)),this.player.ima.addEventListener(t,this.onError.bind(this))}unregisterListeners(){let e=google.ima.AdEvent.Type,t=google.ima.AdErrorEvent.Type.AD_ERROR;this.player.ima.removeEventListener(e.LOADED,this.onLoaded),this.player.ima.removeEventListener(e.STARTED,this.onLoaded.bind(this)),this.player.ima.removeEventListener(e.IMPRESSION,this.onImpression),this.player.ima.removeEventListener(e.PAUSED,this.onPaused),this.player.ima.removeEventListener(e.RESUMED,this.onResumed),this.player.ima.removeEventListener(e.COMPLETE,this.onComplete),this.player.ima.removeEventListener(e.SKIPPED,this.onSkipped),this.player.ima.removeEventListener(e.CLICK,this.onClick),this.player.ima.removeEventListener(e.FIRST_QUARTILE,this.onFirstQuartile),this.player.ima.removeEventListener(e.MIDPOINT,this.onMidpoint),this.player.ima.removeEventListener(e.THIRD_QUARTILE,this.onThirdQuartile),this.player.ima.removeEventListener(t,this.onError),this.lastAdData=null}onLoaded(e){this.lastAdData=this.getAdData(),this.sendRequest()}onStart(e){this.lastAdData=this.getAdData(),this.sendStart()}onComplete(e){this.sendEnd(),this.lastAdData=null}onSkipped(e){this.sendEnd({skipped:!0}),this.lastAdData=null}onError(e){const t=e.getError(),i=t.getErrorCode(),s=t.getMessage();this.sendError({adError:t,errorCode:i,errorMessage:s})}onClick(e){this.sendAdClick()}onFirstQuartile(){this.sendAdQuartile({adQuartile:1})}onMidpoint(){this.sendAdQuartile({adQuartile:2})}onThirdQuartile(){this.sendAdQuartile({adQuartile:3})}onPaused(){this.sendPause()}onResumed(){this.sendResume()}getAdData(){try{const e=this.player.ima.getAdsManager();if(e){const t=e.getCurrentAd();if(t)return{adId:t.getAdId(),creativeId:t.getCreativeId(),duration:t.getDuration(),mediaUrl:t.getMediaUrl(),title:t.getTitle(),podInfo:t.getAdPodInfo()?.data}}return null}catch(e){return null}}}t.default=a},302:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BrightcoveImaAdsTracker",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"ContribHlsTech",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"FreewheelAdsTracker",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"HlsJsTech",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ImaAdsTracker",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ShakaTech",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"VideojsAdsTracker",{enumerable:!0,get:function(){return o.default}}),t.default=void 0;var s=c(i(555)),r=c(i(330)),n=c(i(409)),a=c(i(257)),d=c(i(338)),o=c(i(472)),l=c(i(298)),h=c(i(64)),u=c(i(38));function c(e){return e&&e.__esModule?e:{default:e}}class p extends s.default.VideoTracker{constructor(e,t){super(e,t),this.isContentEnd=!1,this.imaAdCuePoints="",s.default.Core.addTracker(this,t)}getTech(){let e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e){if(n.default.isUsing(e))return new n.default(e);if(a.default.isUsing(e))return new a.default(e);if(d.default.isUsing(e))return new d.default(e)}}getTrackerName(){return"videojs"}getInstrumentationProvider(){return"New Relic"}getInstrumentationName(){return this.getPlayerName()}getInstrumentationVersion(){return this.getPlayerVersion()}getTrackerVersion(){return r.default.version}getPlayhead(){return this.player.ads&&"ads-playback"===this.player.ads.state&&this.player.ads.snapshot&&this.player.ads.snapshot.currentTime?1e3*this.player.ads.snapshot.currentTime:this.player.absoluteTime?1e3*this.player.absoluteTime():1e3*this.player.currentTime()}getDuration(){return this.player.mediainfo&&void 0!==this.player.mediainfo.duration?1e3*this.player.mediainfo.duration:1e3*this.player.duration()}getTitle(){return this.player?.mediainfo?.name}getId(){return this.player?.mediainfo?.id}getLanguage(){return this.player?.language()}getSrc(){let e=this.getTech();return e&&e.getSrc?e.getSrc():this.player.currentSrc()}getPlayerName(){return this.player?.name()||"videojs"}getPlayerVersion(){return this.player?.version}isMuted(){return this.player.muted()}getBitrate(){let e=this.getTech();return e?.tech?.stats?.bandwidth}getRenditionName(){let e=this.getTech();if(e&&e.getRenditionName)return e.getRenditionName()}getRenditionBitrate(){let e=this.getTech();if(e&&e.getRenditionBitrate)return e.getRenditionBitrate()}getRenditionHeight(){let e=this.getTech();return e&&e.getRenditionHeight?e.getRenditionHeight():this.player.videoHeight()}getRenditionWidth(){let e=this.getTech();return e&&e.getRenditionWidth?e.getRenditionWidth():this.player.videoWidth()}getPlayrate(){return this.player.playbackRate()}isAutoplayed(){return this.player.autoplay()}isFullscreen(){return this.player.isFullscreen()}getPreload(){return this.player.preload()}registerListeners(){s.default.Log.debugCommonVideoEvents(this.player,["adstart","adend","adskip","adsready","adserror","dispose"]),this.player.on("loadstart",this.onDownload.bind(this)),this.player.on("loadeddata",this.onDownload.bind(this)),this.player.on("loadedmetadata",this.onDownload.bind(this)),this.player.on("adsready",this.onAdsready.bind(this)),this.player.on("adstart",this.onAdStart.bind(this)),this.player.on("adend",this.onAdEnd.bind(this)),this.player.on("play",this.onPlay.bind(this)),this.player.on("pause",this.onPause.bind(this)),this.player.on("playing",this.onPlaying.bind(this)),this.player.on("abort",this.onAbort.bind(this)),this.player.on("ended",this.onEnded.bind(this)),this.player.on("dispose",this.onDispose.bind(this)),this.player.on("seeking",this.onSeeking.bind(this)),this.player.on("seeked",this.onSeeked.bind(this)),this.player.on("error",this.onError.bind(this)),this.player.on("waiting",this.onWaiting.bind(this)),this.player.on("timeupdate",this.onTimeupdate.bind(this)),this.player.on("ads-allpods-completed",this.OnAdsAllpodsCompleted.bind(this))}unregisterListeners(){this.player.off("loadstart",this.onDownload),this.player.off("loadeddata",this.onDownload),this.player.off("loadedmetadata",this.onDownload),this.player.off("adsready",this.onAdsready),this.player.off("adstart",this.onAdStart),this.player.off("adend",this.onAdEnd),this.player.off("play",this.onPlay),this.player.off("pause",this.onPause),this.player.off("playing",this.onPlaying),this.player.off("abort",this.onAbort),this.player.off("ended",this.onEnded),this.player.off("dispose",this.onDispose),this.player.off("seeking",this.onSeeking),this.player.off("seeked",this.onSeeked),this.player.off("error",this.onError),this.player.off("waiting",this.onWaiting),this.player.off("timeupdate",this.onTimeupdate),this.player.off("ads-allpods-completed",this.OnAdsAllpodsCompleted.bind(this))}onDownload(e){this.sendDownload({state:e.type})}onAdsready(){this.adsTracker||(h.default.isUsing(this.player)?this.setAdsTracker(new h.default(this.player)):l.default.isUsing(this.player)?this.setAdsTracker(new l.default(this.player)):u.default.isUsing(this.player)?this.setAdsTracker(new u.default(this.player)):this.setAdsTracker(new o.default(this.player)))}onAdStart(){this.currentAdPlaying=!0,this.imaAdCuePoints||(this.imaAdCuePoints=this.player?.ima?.getAdsManager().getCuePoints())}onAdEnd(){this.isContentEnd&&this.sendEnd()}OnAdsAllpodsCompleted(){this.onEnded.bind(this),this.FreewheelAdsCompleted=!0}onPlay(){this.sendRequest()}onPause(){this.sendPause()}onPlaying(){this.sendResume(),this.sendBufferEnd()}onAbort(){this.sendEnd()}onEnded(){this.adsTracker?(this.isContentEnd=!0,this.imaAdCuePoints&&!this.imaAdCuePoints.includes(-1)&&this.sendEnd()):this.sendEnd()}onDispose(){this.sendEnd()}onSeeking(){this.sendSeekStart()}onSeeked(){this.sendSeekEnd()}onError(){const e=this.player.error(),t=e.code,i=e.message;this.player.error&&this.player.error()&&this.sendError({errorCode:t,errorMessage:i})}onWaiting(e){this.sendBufferStart()}onTimeupdate(e){this.getPlayhead()>.1&&this.sendStart()}}t.default=p},330:e=>{e.exports=JSON.parse('{"name":"@newrelic/video-videojs","version":"3.2.0-beta-0","description":"New relic tracker for Videojs","main":"dist/cjs/index.js","module":"dist/esm/index.js","scripts":{"build":"webpack --mode production","build:dev":"webpack --mode development","watch":"webpack --mode production --progress --color --watch","watch:dev":"webpack --progress --color --watch --mode development","prezip":"npm run build","zip":"zip -P newrelic -x \'*.DS_Store\' -x \'samples/agent.js\' -r videojs.zip dist samples README.md CHANGELOG.md EULA.md","clean":"rm -rf dist *.zip","deploy":"node scripts/deploy.js","third-party-updates":"oss third-party manifest --includeOptDeps && oss third-party notices --includeOptDeps && git add THIRD_PARTY_NOTICES.md third_party_manifest.json"},"repository":{"type":"git","url":"https://github.com/newrelic/video-videojs-js.git"},"author":"Jordi Aguilar","contributors":["Andreu Santarén Llop"],"license":"Apache-2.0","devDependencies":{"@babel/core":"^7.24.5","@babel/plugin-transform-modules-commonjs":"^7.24.1","@babel/preset-env":"^7.24.5","@newrelic/newrelic-oss-cli":"^0.1.2","aws-sdk":"^2.920.0","babel-loader":"^9.1.3","videojs-ima":"2.1.0","webpack":"^5.91.0","webpack-cli":"^4.9.2"},"files":["THIRD_PARTY_NOTICES.md","dist","src","licesnse","CHANGELOG.md","README.md","!test"],"publishConfig":{"access":"public"},"dependencies":{"@newrelic/video-core":"^3.2.0-beta-1"}}')},338:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{constructor(e){this.tech=e.shakaPlayer}getSrc(e){try{return this.tech.getManifestUri()}catch(e){}return null}getRenditionBitrate(e){try{return this.tech.getStats().streamBandwidth}catch(e){}return null}getRenditionWidth(e){try{var t=this.tech.getVariantTracks();for(var i in t){var s=t[i];if(s.active&&"video"===s.type)return s.width}}catch(e){}return null}getRenditionHeight(e){try{var t=this.tech.getVariantTracks();for(var i in t){var s=t[i];if(s.active&&"video"===s.type)return s.height}}catch(e){}return null}}t.default=i,i.isUsing=function(e){return!!e.shakaPlayer}},409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{constructor(e){this.tech=e.vhs}getRenditionName(){try{var e=this.tech.playlists.media();if(e&&e.attributes)return e.attributes.NAME}catch(e){}return null}getRenditionBitrate(){try{var e=this.tech.playlists.media();if(e&&e.attributes)return e.attributes.BANDWIDTH}catch(e){}return null}getRenditionWidth(){try{var e=this.tech.playlists.media();if(e&&e.attributes&&e.attributes.RESOLUTION)return e.attributes.RESOLUTION.width}catch(e){}return null}getRenditionHeight(){try{var e=this.tech.playlists.media();if(e&&e.attributes&&e.attributes.RESOLUTION)return e.attributes.RESOLUTION.height}catch(e){}return null}}t.default=i,i.isUsing=function(e){return!!e.vhs}},472:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(i(555)),r=n(i(330));function n(e){return e&&e.__esModule?e:{default:e}}class a extends s.default.VideoTracker{getTrackerName(){return"videojs-ads"}getTrackerVersion(){return r.default.version}isMuted(){return this.player.muted()}getRenditionHeight(){return null}getRenditionWidth(){return null}getPlayerName(){return"videojs-ads"}getPlayerVersion(){return this.player.ads.VERSION}registerListeners(){s.default.Log.debugCommonVideoEvents(this.player,[null,"ads-request","ads-load","adstart","adend","adskip","adserror","ads-click","ads-pod-started","ads-pod-ended","ads-first-quartile","ads-midpoint","ads-third-quartile","ads-pause","ads-play","adtimeout"]),this.player.on("ads-request",this.onAdrequest.bind(this)),this.player.on("ads-load",this.onAdload.bind(this)),this.player.on("adstart",this.onAdstart.bind(this)),this.player.on("adend",this.onAdend.bind(this)),this.player.on("adskip",this.onAdskip.bind(this)),this.player.on("adserror",this.onAdserror.bind(this)),this.player.on("ads-click",this.onAdsClick.bind(this)),this.player.on("ads-pod-started",this.onPodStart.bind(this)),this.player.on("ads-pod-ended",this.onPodEnd.bind(this)),this.player.on("ads-first-quartile",this.onFirstQuartile.bind(this)),this.player.on("ads-midpoint",this.onMidpoint.bind(this)),this.player.on("ads-third-quartile",this.onThirdQuartile.bind(this)),this.player.on("ads-pause",this.onAdspause.bind(this)),this.player.on("ads-play",this.onAdsplay.bind(this))}unregisterListeners(){this.player.off("ads-request",this.onAdrequest),this.player.off("ads-load",this.onAdload),this.player.off("adstart",this.onAdstart),this.player.off("adend",this.onAdend),this.player.off("adskip",this.onAdskip),this.player.off("adserror",this.onAdserror),this.player.off("ads-click",this.onAdsClick),this.player.off("ads-pod-started",this.onPodStart),this.player.off("ads-pod-ended",this.onPodEnd),this.player.off("ads-first-quartile",this.onFirstQuartile),this.player.off("ads-midpoint",this.onMidpoint),this.player.off("ads-third-quartile",this.onThirdQuartile),this.player.off("ads-pause",this.onAdspause),this.player.off("ads-play",this.onAdsplay)}onAdrequest(e){this.sendRequest(),this.sendDownload({state:"ads-request"})}onAdload(e){this.sendDownload({state:"ads-load"})}onAdstart(e){this.sendRequest(),this.sendStart()}onAdend(e){this.sendEnd()}onAdskip(e){this.sendEnd({skipped:!0})}onAdserror(e){this.sendError()}onAdsClick(e){this.sendAdClick({url:"unknown"})}onPodStart(e){this.sendAdBreakStart()}onPodEnd(e){this.sendAdBreakEnd()}onFirstQuartile(){this.sendAdQuartile({quartile:1})}onMidpoint(){this.sendAdQuartile({quartile:2})}onThirdQuartile(){this.sendAdQuartile({quartile:3})}onAdspause(){this.sendPause()}onAdsplay(){this.sendResume()}}t.default=a},555:(e,t,i)=>{i.r(t),i.d(t,{__esModule:()=>d,default:()=>o});var s={51:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{}i.AdPositions={PRE:"pre",MID:"mid",POST:"post"},i.INTERVAL=1e4,i.MAX_EVENTS_PER_BATCH=1e3,i.MAX_PAYLOAD_SIZE=1,i.MAX_BEACON_SIZE=.0625,i.MAX_EVENT_SIZE=.0625,i.VALID_EVENT_TYPES=["VideoAction","VideoAdAction","VideoErrorAction","VideoCustomAction"],i.COLLECTOR={US:"bam-cell.nr-data.net",EU:"bam.eu01.nr-data.net",Stage:"staging-bam-cell.nr-data.net",GOV:"gov-bam.nr-data.net"},t.default=i},144:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{static error(...e){s(e,i.Levels.ERROR,"darkred")}static warn(...e){s(e,i.Levels.WARNING,"darkorange")}static notice(...e){s([].slice.call(arguments),i.Levels.NOTICE,"darkcyan")}static debug(...e){s(e,i.Levels.DEBUG,"indigo")}static debugCommonVideoEvents(e,t,s){try{if(i.level<=i.Levels.DEBUG){s=s||function(e){i.debug("Event: "+e.type)};var r=["canplay","buffering","waiting","ended","play","playing","pause","resume","error","abort","seek","seeking","seeked","stalled","dispose","loadeddata","loadstart","loadedmetadata"];t&&(null===t[0]?(t.shift(),r=t):r=r.concat(t));for(var n=0;n<r.length;n++)"function"==typeof e?e.call(window,r[n],s):e.on?e.on(r[n],s):e.addEventListener?e.addEventListener(r[n],s):e.addEventHandler?e.addEventHandler(r[n],s):i.warn("debugCommonVideoEvents: No common listener function found for ",e)}}catch(e){i.warn(e)}}}function s(e,t,s){t=t||i.Levels.NOTICE,s=s||"darkcyan";var a,d,o=i.prefix;i.includeTime&&(o+="["+("0"+(a=new Date).getDate()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2)+"."+("00"+a.getMilliseconds()).slice(-3)+"] "),o+=function(e){return n[e]}(t)+":",i.level<=t&&t!==i.Levels.SILENT&&(!i.colorful||"undefined"!=typeof document&&document.documentMode?r(e,o):(d=t===i.Levels.ERROR&&console.error?console.error:t===i.Levels.WARNING&&console.warn?console.warn:t===i.Levels.DEBUG&&console.debug&&null==window.cast?console.debug:console.log,o="%c"+o,e.splice(0,0,o,"color: "+s),d.apply(console,e)))}function r(e,t){if(e instanceof Array)for(var i in e)r(e[i],t);else"string"==typeof e?console.log(t+" "+e):(console.log(t+"↵"),console.log(e))}i.Levels={SILENT:5,ERROR:4,WARNING:3,NOTICE:2,DEBUG:1,ALL:0},i.level=i.Levels.ERROR,i.colorful=!0,i.includeTime=!0,i.prefix="[nrvideo]";const n={4:"e",3:"w",2:"n",1:"d"};!function(){if("undefined"!=typeof window&&window.location&&window.location.search){var e=/\?.*&*nrvideo-debug=(.+)/i.exec(window.location.search);null!==e&&("true"===e[1]?i.level=i.Levels.ALL:i.level=e[1]),null!==/\?.*&*nrvideo-colors=false/i.exec(window.location.search)&&(i.colorful=!1)}}(),t.default=i},302:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=d(i(330)),r=d(i(568)),n=d(i(455)),a=d(i(51));function d(e){return e&&e.__esModule?e:{default:e}}class o extends r.default{constructor(e){super(),this.customData={},this.heartbeat=null,this.parentTracker=null,this._trackerReadyChrono=new n.default,this._trackerReadyChrono.start(),this._actionTable=a.default.ACTION_TABLE,this._actionAdTable=a.default.ACTION_AD_TABLE,e=e||{},this.setOptions(e)}setOptions(e){e&&(e.parentTracker&&(this.parentTracker=e.parentTracker),e.customData&&(this.customData=e.customData),e.heartbeat&&(this.heartbeat=e.heartbeat))}dispose(){this.unregisterListeners()}registerListeners(){}unregisterListeners(){}getHeartbeat(){return this.state._isAd?2e3:this.heartbeat?this.heartbeat:this.parentTracker&&this.parentTracker.heartbeat?this.parentTracker.heartbeat:3e4}startHeartbeat(){this._heartbeatInterval=setInterval(this.sendHeartbeat.bind(this),Math.max(this.getHeartbeat(),2e3))}stopHeartbeat(){this._heartbeatInterval&&clearInterval(this._heartbeatInterval)}sendHeartbeat(e){this.sendVideoAction(o.Events.HEARTBEAT,e)}getAttributes(e,t){(e=e||{}).trackerName=this.getTrackerName(),e.trackerVersion=this.getTrackerVersion(),e.coreVersion=s.default.version,e.timeSinceTrackerReady=this._trackerReadyChrono.getDeltaTime();for(let t in this.customData)e[t]=this.customData[t];return null!=document.hidden&&(e.isBackgroundEvent=document.hidden),e}getTrackerVersion(){return s.default.version}getTrackerName(){return"base-tracker"}sendVideoAction(e,t){this.emit("VideoAction",e,this.getAttributes(t))}sendVideoAdAction(e,t){this.emit("VideoAdAction",e,this.getAttributes(t))}sendVideoErrorAction(e,t){let i=this.isAd()?"adError":"videoError";this.emit("VideoErrorAction",e,this.getAttributes(t,i))}sendVideoCustomAction(e,t){this.emit("VideoCustomAction",e,this.getAttributes(t,"customAction"))}}o.Events={HEARTBEAT:"HEARTBEAT"},t.default=o},324:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NRVideoHarvester=void 0;var s=a(i(51)),r=a(i(330)),n=i(347);function a(e){return e&&e.__esModule?e:{default:e}}const{INTERVAL:d,MAX_EVENTS_PER_BATCH:o,MAX_PAYLOAD_SIZE:l,MAX_BEACON_SIZE:h}=s.default;t.NRVideoHarvester=class{#e=!1;#t;#i=null;constructor(e){this.#t=e,window.addEventListener("pagehide",()=>this.triggerHarvest({isFinalHarvest:!0}))}startTimer(){if(this.#e)return;this.#e=!0;const e=()=>{this.triggerHarvest({}),this.#e&&(this.#i=setTimeout(e,d))};this.#i=setTimeout(e,d)}stopTimer(){this.#e=!1,this.#i&&(clearTimeout(this.#i),this.#i=null)}triggerHarvest(e={}){if(!this.#t.isEmpty())try{const t=this.#t.drain(),i=e.isFinalHarvest?h:l,s=this.chunkEvents(t,i);s.forEach((t,i)=>{const r=i===s.length-1;this.sendChunk(t,e,r)})}catch(e){console.error("Error during harvest:",e)}}chunkEvents(e,t){const i=[];let s=[];for(const r of e)if(s.length>=o&&(i.push(s),s=[]),s.push(r),(0,n.getPayloadSize)({ins:s})>t){const e=s.pop();s.length>0&&i.push(s),s=[e]}return s.length>0&&i.push(s),i}sendChunk(e,t,i){const s=this.#s();if(!s)return void this.#t.postHarvestCleanup({retry:!1,status:0});const r={body:{ins:e}};(0,n.callApi)({url:s,payload:r,options:t},t=>{t.retry&&(t.chunk=e),this.#t.postHarvestCleanup(t)})}#s(){try{if(!window.NRVIDEO||!window.NRVIDEO.info)throw new Error("NRVIDEO info is not available.");const{beacon:e,licenseKey:t,applicationID:i,sa:s}=window.NRVIDEO.info;if(!e||!t||!i)throw new Error("Options object provided by New Relic is not correctly initialized");return`https://${e}/ins/1/${t}?a=${i}&v=${r.default.version}&ref=${window.location.href}&ca=VA`}catch(e){return console.error(e.message),null}}}},328:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(i(455)),r=n(i(144));function n(e){return e&&e.__esModule?e:{default:e}}t.default=class{constructor(){this.reset(),this._createdAt=Date.now(),this._hb=!0,this._acc=0,this._bufferAcc=0}reset(){this._viewSession=null,this._viewCount=0,this._isAd=!1,this.numberOfErrors=0,this.numberOfAds=0,this.numberOfVideos=0,this.totalPlaytime=0,this.totalAdPlaytime=0,this.isAdBreak=!1,this.initialBufferingHappened=!1,this.resetFlags(),this.resetChronos()}resetFlags(){this.isPlayerReady=!1,this.isRequested=!1,this.isStarted=!1,this.isPaused=!1,this.isSeeking=!1,this.isBuffering=!1,this.isPlaying=!1}resetChronos(){this.timeSinceRequested=new s.default,this.timeSinceStarted=new s.default,this.timeSincePaused=new s.default,this.timeSinceSeekBegin=new s.default,this.timeSinceBufferBegin=new s.default,this.timeSinceAdBreakStart=new s.default,this.timeSinceLastDownload=new s.default,this.timeSinceLastHeartbeat=new s.default,this.timeSinceLastRenditionChange=new s.default,this.timeSinceLastAdQuartile=new s.default,this.timeSinceLastAd=new s.default,this.timeSinceResumed=new s.default,this.timeSinceSeekEnd=new s.default,this.playtimeSinceLastEvent=new s.default,this.customTimeSinceAttributes={},this.elapsedTime=new s.default,this.bufferElapsedTime=new s.default}isAd(){return this._isAd}setIsAd(e){this._isAd=e}setTimeSinceAttribute(e){this.customTimeSinceAttributes[e]=new s.default,this.customTimeSinceAttributes[e].start()}removeTimeSinceAttribute(e){delete this.customTimeSinceAttributes[e]}getViewSession(){if(!this._viewSession){let e=(new Date).getTime(),t=Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2);this._viewSession=e+"-"+t}return this._viewSession}getViewId(){return this.getViewSession()+"-"+this._viewCount}getStateAttributes(e){e=e||{},this.isAd()?(this.isRequested&&(e.timeSinceAdRequested=this.timeSinceRequested.getDeltaTime(),e.timeSinceLastAdHeartbeat=this.timeSinceLastHeartbeat.getDeltaTime()),this.isStarted&&(e.timeSinceAdStarted=this.timeSinceStarted.getDeltaTime()),this.isPaused&&(e.timeSinceAdPaused=this.timeSincePaused.getDeltaTime()),this.isBuffering&&(e.timeSinceAdBufferBegin=this.timeSinceBufferBegin.getDeltaTime()),this.isSeeking&&(e.timeSinceAdSeekBegin=this.timeSinceSeekBegin.getDeltaTime()),this.isAdBreak&&(e.timeSinceAdBreakBegin=this.timeSinceAdBreakStart.getDeltaTime()),e.numberOfAds=this.numberOfAds):(this.isRequested&&(e.timeSinceRequested=this.timeSinceRequested.getDeltaTime(),e.timeSinceLastHeartbeat=this.timeSinceLastHeartbeat.getDeltaTime()),this.isStarted&&(e.timeSinceStarted=this.timeSinceStarted.getDeltaTime()),this.isPaused&&(e.timeSincePaused=this.timeSincePaused.getDeltaTime()),this.isBuffering&&(e.timeSinceBufferBegin=this.timeSinceBufferBegin.getDeltaTime()),this.isSeeking&&(e.timeSinceSeekBegin=this.timeSinceSeekBegin.getDeltaTime()),e.timeSinceLastAd=this.timeSinceLastAd.getDeltaTime(),e.numberOfVideos=this.numberOfVideos),e.numberOfErrors=this.numberOfErrors,this.isAd()||(this.playtimeSinceLastEvent.startTime>0?e.playtimeSinceLastEvent=this.playtimeSinceLastEvent.getDeltaTime():e.playtimeSinceLastEvent=0,this.isPlaying?this.playtimeSinceLastEvent.start():this.playtimeSinceLastEvent.reset(),this.totalPlaytime+=e.playtimeSinceLastEvent,e.totalPlaytime=this.totalPlaytime);for(const[t,i]of Object.entries(this.customTimeSinceAttributes))e[t]=i.getDeltaTime();return e}calculateBufferType(e){let t="";return t=e?"initial":this.isSeeking?"seek":this.isPaused?"pause":"connection",r.default.debug("Buffer Type = "+t),t}goViewCountUp(){this._viewCount++}goPlayerReady(){return!this.isPlayerReady&&(this.isPlayerReady=!0,!0)}goRequest(){return!this.isRequested&&(this.isRequested=!0,this.timeSinceLastAd.reset(),this.timeSinceRequested.start(),!0)}goStart(){return!(!this.isRequested||this.isStarted||(this.isAd()?this.numberOfAds++:this.numberOfVideos++,this.isStarted=!0,this.isPlaying=!0,this.timeSinceStarted.start(),this.playtimeSinceLastEvent.start(),0))}goEnd(){return!!this.isRequested&&(this.numberOfErrors=0,this.resetFlags(),this.timeSinceRequested.stop(),this.timeSinceStarted.stop(),this.playtimeSinceLastEvent.stop(),!0)}goPause(){return!(!this.isStarted||this.isPaused||(this.isPaused=!0,this.isPlaying=!1,this.timeSincePaused.start(),this.playtimeSinceLastEvent.stop(),this.timeSinceResumed.reset(),this.isBuffering&&(this._bufferAcc+=this.bufferElapsedTime.getDeltaTime()),this.elapsedTime.start(),0))}goResume(){return!(!this.isStarted||!this.isPaused||(this.isPaused=!1,this.isPlaying=!0,this.timeSincePaused.stop(),this.timeSinceResumed.start(),this._hb?(this._acc=this.elapsedTime.getDeltaTime(),this._hb=!1):(this.isBuffering&&this.bufferElapsedTime.start(),this._acc+=this.elapsedTime.getDeltaTime()),0))}goBufferStart(){return!(!this.isRequested||this.isBuffering||(this.isBuffering=!0,this.isPlaying=!1,this.timeSinceBufferBegin.start(),this.bufferElapsedTime.start(),0))}goBufferEnd(){return!(!this.isRequested||!this.isBuffering||(this.isBuffering=!1,this.isPlaying=!0,this.timeSinceBufferBegin.stop(),this._hb?(this._bufferAcc=this.bufferElapsedTime.getDeltaTime(),this._hb=!1):this._bufferAcc+=this.bufferElapsedTime.getDeltaTime(),0))}goSeekStart(){return!(!this.isStarted||this.isSeeking||(this.isSeeking=!0,this.isPlaying=!1,this.timeSinceSeekBegin.start(),this.timeSinceSeekEnd.reset(),0))}goSeekEnd(){return!(!this.isStarted||!this.isSeeking||(this.isSeeking=!1,this.isPlaying=!0,this.timeSinceSeekBegin.stop(),this.timeSinceSeekEnd.start(),0))}goAdBreakStart(){return!this.isAdBreak&&(this.isAdBreak=!0,this.timeSinceAdBreakStart.start(),!0)}goAdBreakEnd(){return!!this.isAdBreak&&(this.isRequested=!1,this.isAdBreak=!1,this.totalAdPlaytime=this.timeSinceAdBreakStart.getDeltaTime(),this.timeSinceAdBreakStart.stop(),!0)}goDownload(){this.timeSinceLastDownload.start()}goHeartbeat(){this.timeSinceLastHeartbeat.start()}goRenditionChange(){this.timeSinceLastRenditionChange.start()}goAdQuartile(){this.timeSinceLastAdQuartile.start()}goError(){this.isError=!0,this.numberOfErrors++}goLastAd(){this.timeSinceLastAd.start()}}},330:e=>{e.exports=JSON.parse('{"name":"@newrelic/video-core","version":"3.2.0-beta-1","description":"New Relic video tracking core library","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","scripts":{"build":"webpack --mode production","build:dev":"webpack --mode development","watch":"webpack --mode production --progress --color --watch","watch:dev":"webpack --progress --color --watch","clean":"rm -rf dist coverage doc","test":"nyc --reporter=html --reporter=text mocha --require @babel/register","doc":"jsdoc -c jsdoc.json -d documentation","deploy":"node scripts/deploy.js","third-party-updates":"oss third-party manifest --includeOptDeps && oss third-party notices --includeOptDeps && git add THIRD_PARTY_NOTICES.md third_party_manifest.json"},"repository":{"type":"git","url":"https://github.com/newrelic/video-core-js"},"author":"Jordi Aguilar","contributors":["Andreu Santarén Llop"],"license":"Apache-2.0","devDependencies":{"@babel/core":"^7.24.5","@babel/plugin-transform-modules-commonjs":"^7.24.1","@babel/preset-env":"^7.24.5","@babel/register":"^7.24.6","@newrelic/newrelic-oss-cli":"^0.1.2","aws-sdk":"^2.920.0","babel-loader":"^9.1.3","chai":"^4.3.4","diff":"^5.0.0","jsdom":"^25.0.1","mocha":"^10.4.0","nyc":"^15.1.0","sinon":"^2.4.1","webpack":"^5.91.0","webpack-cli":"^4.9.2"},"files":["THIRD_PARTY_NOTICES.md","dist","src","CHANGELOG.md","LICENSE","README.md","!test"],"publishConfig":{"access":"public"}}')},347:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callApi=function({url:e,payload:t,options:i={}},s){if(!e||!t||!s)return console.error("callApi: Missing required parameters"),void(s&&s({retry:!1,status:0}));let r;try{r=JSON.stringify(t.body)}catch(e){return console.error("callApi: Error serializing payload",e),void s({retry:!1,status:0})}if(i.isFinalHarvest&&navigator.sendBeacon)try{const t=navigator.sendBeacon(e,r);s({retry:!t,status:t?200:0})}catch(e){s({retry:!0,status:0})}else fetch(e,{method:"POST",body:r,headers:{"Content-Type":"application/json"},keepalive:i.isFinalHarvest}).then(e=>{const t=function(e){switch(e){case 408:case 429:case 500:return!0;case 401:case 403:case 404:return!1}return e>=502&&e<=504||e>=512&&e<=530}(e.status);s({retry:t,status:e.status,ok:e.ok})}).catch(()=>{s({retry:!0,status:0})})},t.getPayloadSize=function(e){if(!e||"object"!=typeof e)return 0;try{const t=JSON.stringify(e);return(new TextEncoder).encode(t).length/1048576}catch(e){return console.error("getPayloadSize: Error calculating payload size",e),0}}},399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,r=(s=i(144))&&s.__esModule?s:{default:s},n=i(449),a=i(418);class d{static addTracker(e,t){(0,a.setAuthConfig)(t.info),e.on&&e.emit?(o.push(e),e.on("*",l),"function"==typeof e.trackerInit&&e.trackerInit()):r.default.error("Tried to load a non-tracker.",e)}static removeTracker(e){e.off("*",l),e.dispose();let t=o.indexOf(e);-1!==t&&o.splice(t,1)}static getTrackers(){return o}static send(e,t,i){i.timeSinceLoad=window.performance.now()/1e3,(0,n.recordEvent)(e,{actionName:t,...i})}static sendError(e){d.send("ERROR",e)}}let o=[];function l(e){let t=function(e){let t={};for(let i in e)null!==e[i]&&void 0!==e[i]&&(t[i]=e[i]);return t}(e.data);r.default.level<=r.default.Levels.DEBUG?r.default.notice("Sent",e.type,t):r.default.notice("Sent",e.type),d.send(e.eventType,e.type,t)}t.default=d},418:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setAuthConfig=function(e){try{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("setAuthConfig: info parameter must be a valid object");if(function(e){if(!e||"object"!=typeof e)return!1;const{licenseKey:t,appName:i,region:s,applicationID:r,beacon:n}=e;return!!(t&&"string"==typeof t&&0!==t.trim().length&&(r?n&&"string"==typeof n&&n.trim().length>0:i&&"string"==typeof i&&i.trim().length>0&&s&&"string"==typeof s&&s.trim().length>0))}(e)){const{licenseKey:t,appName:i,region:s,beacon:r,sa:a,applicationID:d}=e;window.NRVIDEO=window.NRVIDEO||{};let o=r;if(!o&&s){if(!n[s])throw new Error(`setAuthConfig: Invalid region '${s}'. Valid regions: ${Object.keys(n).join(", ")}`);o=n[s]}return window.NRVIDEO.info={beacon:o,licenseKey:t,applicationID:d||null,appName:i||null,sa:a||0},!0}{const t=function(e){if(!e||"object"!=typeof e)return"info parameter must be a valid object";const{licenseKey:t,appName:i,region:s,applicationID:r,beacon:n}=e;if(!t||"string"!=typeof t||0===t.trim().length)return"licenseKey is required and must be a non-empty string";if(r){if(!n||"string"!=typeof n||0===n.trim().length)return"beacon URL is required when using applicationID"}else{if(!i||"string"!=typeof i||0===i.trim().length)return"appName is required when not using applicationID";if(!s||"string"!=typeof s||0===s.trim().length)return"region is required when not using applicationID"}return"configuration validation failed"}(e);throw new Error(`setAuthConfig: ${t}`)}}catch(e){return console.error("setAuthConfig:",e.message),!1}};var s,r=(s=i(51))&&s.__esModule?s:{default:s};const{COLLECTOR:n}=r.default},431:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NRVideoEventAggregator=void 0;var s,r=i(347),n=(s=i(51))&&s.__esModule?s:{default:s};const{MAX_EVENTS_PER_BATCH:a,MAX_PAYLOAD_SIZE:d}=n.default;t.NRVideoEventAggregator=class{#r=[];#n=[];isEmpty(){return 0===this.#r.length&&0===this.#n.length}drain(){const e=[...this.#n,...this.#r];return this.#r=[],this.#n=[],e}add(e){this.#r.push(e)}postHarvestCleanup(e){if(e.retry&&e.chunk?.length){for(;this.#n.length>0&&((0,r.getPayloadSize)(this.#n)+(0,r.getPayloadSize)(e.chunk)>d||this.#n.length+e.chunk.length>a);)this.#n.shift();this.#n.push(...e.chunk)}else this.#n=[]}}},449:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recordEvent=function(e,t={}){if("string"!=typeof e||0===e.length||!d.includes(e))return console.warn("recordEvent: Invalid eventType provided:",e),!1;if(null!==t&&("object"!=typeof t||Array.isArray(t)))return console.warn("recordEvent: attributes must be a plain object"),!1;if(t=t||{},!window.NRVIDEO||!window.NRVIDEO.info)return console.error("recordEvent: NRVIDEO not properly initialized"),!1;try{const{appName:i}=window.NRVIDEO.info,s={...t,eventType:e,appName:i,timestamp:Date.now()},a=(0,n.getPayloadSize)(s);return a>o?(console.warn(`recordEvent: Event size (${a} bytes) exceeds maximum (${o} bytes)`),!1):(r.customEventAggregator.add(s),!0)}catch(e){return console.error("recordEvent: Error recording event:",e),!1}};var s,r=i(487),n=i(347),a=(s=i(51))&&s.__esModule?s:{default:s};const{VALID_EVENT_TYPES:d,MAX_EVENT_SIZE:o}=a.default},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class i{constructor(){this.reset()}reset(){this.startTime=0,this.stopTime=0,this.offset=0}getDeltaTime(){return this.startTime?this.offset+((new Date).getTime()-this.startTime):null}start(){this.startTime=(new Date).getTime(),this.stopTime=0}stop(){return this.stopTime=(new Date).getTime(),this.getDeltaTime()}clone(){var e=new i;return e.startTime=this.startTime,e.stopTime=this.stopTime,e.offset=this.offset,e}}t.default=i},487:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.customEventAggregator=void 0;var s=i(431),r=i(324);const n=t.customEventAggregator=new s.NRVideoEventAggregator;new r.NRVideoHarvester(n).startTimer()},568:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{on(e,t){if(this._listeners=this._listeners||{},"function"==typeof t)return this._listeners[e]=this._listeners[e]||[],this._listeners[e].push(t),this}off(e,t){if(this._listeners=this._listeners||{},this._listeners[e]){var i=this._listeners[e].indexOf(t);-1!==i&&this._listeners[e].splice(i,1)}return this}emit(e,t,i){return this._listeners=this._listeners||{},i=i||{},Array.isArray(this._listeners[t])&&this._listeners[t].forEach(s=>{s.call(this,{eventType:e,type:t,data:i,target:this})}),Array.isArray(this._listeners["*"])&&this._listeners["*"].forEach(s=>{s.call(this,{eventType:e,type:t,data:i,target:this})}),this}}},793:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=d(i(144)),r=d(i(302)),n=d(i(328)),a=d(i(330));function d(e){return e&&e.__esModule?e:{default:e}}class o extends r.default{constructor(e,t){super(),this.state=new n.default,this.adsTracker=null,this._lastBufferType=null,this._userId=null,t=t||{},this.setOptions(t),e&&this.setPlayer(e,t.tag),s.default.notice("Tracker "+this.getTrackerName()+" v"+this.getTrackerVersion()+" is ready.")}setUserId(e){this._userId=e}setOptions(e){e&&(e.adsTracker&&this.setAdsTracker(e.adsTracker),"boolean"==typeof e.isAd&&this.setIsAd(e.isAd),r.default.prototype.setOptions.apply(this,arguments))}setPlayer(e,t){(this.player||this.tag)&&this.dispose(),"undefined"!=typeof document&&document.getElementById&&("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t))),t=t||e,this.player=e,this.tag=t,this.registerListeners()}isAd(){return this.state.isAd()}setIsAd(e){this.state.setIsAd(e)}setAdsTracker(e){this.disposeAdsTracker(),e&&(this.adsTracker=e,this.adsTracker.setIsAd(!0),this.adsTracker.parentTracker=this,this.adsTracker.on("*",l.bind(this)))}disposeAdsTracker(){this.adsTracker&&(this.adsTracker.off("*",l),this.adsTracker.dispose())}dispose(){this.stopHeartbeat(),this.disposeAdsTracker(),this.unregisterListeners(),this.player=null,this.tag=null}registerListeners(){}unregisterListeners(){}getViewId(){return this.parentTracker?this.parentTracker.getViewId():this.state.getViewId()}getViewSession(){return this.parentTracker?this.parentTracker.getViewSession():this.state.getViewSession()}getVideoId(){return null}getTitle(){return null}isLive(){return null}getBitrate(){return null}getWebkitBitrate(){if(this.tag&&this.tag.webkitVideoDecodedByteCount){let e;if(this._lastWebkitBitrate){e=this.tag.webkitVideoDecodedByteCount;let t=e-this._lastWebkitBitrate,i=this.getHeartbeat()/1e3;e=Math.round(t/i*8)}return this._lastWebkitBitrate=this.tag.webkitVideoDecodedByteCount,e||null}}getRenditionName(){return null}getRenditionBitrate(){return null}getRenditionShift(e){let t,i=this.getRenditionBitrate();return this.isAd()?(t=this._lastAdRendition,e&&(this._lastAdRendition=i)):(t=this._lastRendition,e&&(this._lastRendition=i)),i&&t?i>t?"up":i<t?"down":null:null}getRenditionHeight(){return this.tag?this.tag.videoHeight:null}getRenditionWidth(){return this.tag?this.tag.videoWidth:null}getDuration(){return this.tag?this.tag.duration:null}getPlayhead(){return this.tag?this.tag.currentTime:null}getLanguage(){return null}getSrc(){return this.tag?this.tag.currentSrc:null}getPlayrate(){return this.tag?this.tag.playbackRate:null}isMuted(){return this.tag?this.tag.muted:null}isFullscreen(){return null}getCdn(){return null}getPlayerName(){return this.getTrackerName()}getPlayerVersion(){return a.default.version}getFps(){return null}isAutoplayed(){return this.tag?this.tag.autoplay:null}getPreload(){return this.tag?this.tag.preload:null}getAdQuartile(){return null}getAdPosition(){return this.parentTracker?this.parentTracker.state.isStarted?"mid":"pre":null}getAdPartner(){return null}getAdCreativeId(){return null}getInstrumentationProvider(){return null}getInstrumentationName(){return null}getInstrumentationVersion(){return null}getAttributes(e,t){if(void 0===(e=r.default.prototype.getAttributes.apply(this,arguments)).isAd&&(e.isAd=this.isAd()),e.viewSession=this.getViewSession(),e.viewId=this.getViewId(),e.playerName=this.getPlayerName(),e.playerVersion=this.getPlayerVersion(),e["instrumentation.provider"]=this.getInstrumentationProvider(),e["instrumentation.name"]=this.getInstrumentationName(),e["instrumentation.version"]=this.getInstrumentationVersion(),e["enduser.id"]=this._userId,e.src="Browser","customAction"===t)return e;try{e.pageUrl=window.location.href}catch(e){}this.isAd()?(e.adId=this.getVideoId(),e.adTitle=this.getTitle(),e.adSrc=this.getSrc(),e.adCdn=this.getCdn(),e.adBitrate=this.getBitrate()||this.getWebkitBitrate()||this.getRenditionBitrate(),e.adRenditionName=this.getRenditionName(),e.adRenditionBitrate=this.getRenditionBitrate(),e.adRenditionHeight=this.getRenditionHeight(),e.adRenditionWidth=this.getRenditionWidth(),e.adDuration=this.getDuration(),e.adPlayhead=this.getPlayhead(),e.adLanguage=this.getLanguage(),e.adIsMuted=this.isMuted(),e.adFps=this.getFps(),e.adPosition=this.getAdPosition(),e.adCreativeId=this.getAdCreativeId(),e.adPartner=this.getAdPartner()):(e.contentId=this.getVideoId(),e.contentTitle=this.getTitle(),e.contentSrc=this.getSrc(),e.contentCdn=this.getCdn(),e.contentPlayhead=this.getPlayhead(),e.contentIsLive=this.isLive(),e.contentBitrate=this.getBitrate()||this.getWebkitBitrate()||this.getRenditionBitrate(),e.contentRenditionName=this.getRenditionName(),e.contentRenditionBitrate=this.getRenditionBitrate(),e.contentRenditionHeight=this.getRenditionHeight(),e.contentRenditionWidth=this.getRenditionWidth(),e.contentDuration=this.getDuration(),e.contentLanguage=this.getLanguage(),e.contentPlayrate=this.getPlayrate(),e.contentIsFullscreen=this.isFullscreen(),e.contentIsMuted=this.isMuted(),e.contentIsAutoplayed=this.isAutoplayed(),e.contentPreload=this.getPreload(),e.contentFps=this.getFps(),null!=this.adsTracker&&this.adsTracker.state.totalAdPlaytime>0&&(e.totalAdPlaytime=this.adsTracker.state.totalAdPlaytime)),this.state.getStateAttributes(e);for(let t in this.customData)e[t]=this.customData[t];return e}sendCustom(e,t,i){i=i||{},this.sendVideoCustomAction(e,i),this.state.setTimeSinceAttribute(t)}sendPlayerReady(e){this.state.goPlayerReady()&&(e=e||{},this.sendVideoAction(o.Events.PLAYER_READY,e))}sendRequest(e){if(this.state.goRequest()){let t;this.isAd()?(t=o.Events.AD_REQUEST,this.sendVideoAdAction(t,e)):(t=o.Events.CONTENT_REQUEST,this.sendVideoAction(t,e))}}sendStart(e){if(this.state.goStart()){let t;this.isAd()?(t=o.Events.AD_START,this.parentTracker&&(this.parentTracker.state.isPlaying=!1),this.sendVideoAdAction(t,e)):(t=o.Events.CONTENT_START,this.sendVideoAction(t,e)),this.startHeartbeat(),this.state.goHeartbeat()}}sendEnd(e){if(this.state.goEnd()){let t;e=e||{},this.isAd()?(t=o.Events.AD_END,e.timeSinceAdRequested=this.state.timeSinceRequested.getDeltaTime(),e.timeSinceAdStarted=this.state.timeSinceStarted.getDeltaTime(),this.parentTracker&&(this.parentTracker.state.isPlaying=!0)):(t=o.Events.CONTENT_END,e.timeSinceRequested=this.state.timeSinceRequested.getDeltaTime(),e.timeSinceStarted=this.state.timeSinceStarted.getDeltaTime()),this.stopHeartbeat(),this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e),this.parentTracker&&this.isAd()&&this.parentTracker.state.goLastAd(),this.state.goViewCountUp(),this.state.totalPlaytime=0}}sendPause(e){if(this.state.goPause()){let t=this.isAd()?o.Events.AD_PAUSE:o.Events.CONTENT_PAUSE;this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendResume(e){if(this.state.goResume()){let t;e=e||{},this.isAd()?(t=o.Events.AD_RESUME,e.timeSinceAdPaused=this.state.timeSincePaused.getDeltaTime()):(t=o.Events.CONTENT_RESUME,e.timeSincePaused=this.state.timeSincePaused.getDeltaTime()),this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendBufferStart(e){if(this.state.goBufferStart()){let t;e=e||{},t=this.isAd()?o.Events.AD_BUFFER_START:o.Events.CONTENT_BUFFER_START,e=this.buildBufferAttributes(e),this._lastBufferType=e.bufferType,this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendBufferEnd(e){if(this.state.goBufferEnd()){let t;e=e||{},this.isAd()?(t=o.Events.AD_BUFFER_END,e.timeSinceAdBufferBegin=this.state.timeSinceBufferBegin.getDeltaTime()):(t=o.Events.CONTENT_BUFFER_END,e.timeSinceBufferBegin=this.state.timeSinceBufferBegin.getDeltaTime()),e=this.buildBufferAttributes(e),null!=this._lastBufferType&&(e.bufferType=this._lastBufferType),this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e),this.state.initialBufferingHappened=!0}}buildBufferAttributes(e){return null==e.timeSinceStarted||e.timeSinceStarted<100?e.isInitialBuffering=!this.state.initialBufferingHappened:e.isInitialBuffering=!1,e.bufferType=this.state.calculateBufferType(e.isInitialBuffering),e.timeSinceResumed=this.state.timeSinceResumed.getDeltaTime(),e.timeSinceSeekEnd=this.state.timeSinceSeekEnd.getDeltaTime(),e}sendSeekStart(e){if(this.state.goSeekStart()){let t;t=this.isAd()?o.Events.AD_SEEK_START:o.Events.CONTENT_SEEK_START,this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendSeekEnd(e){if(this.state.goSeekEnd()){let t;e=e||{},this.isAd()?(t=o.Events.AD_SEEK_END,e.timeSinceAdSeekBegin=this.state.timeSinceSeekBegin.getDeltaTime()):(t=o.Events.CONTENT_SEEK_END,e.timeSinceSeekBegin=this.state.timeSinceSeekBegin.getDeltaTime()),this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e)}}sendDownload(e){(e=e||{}).state||s.default.warn("Called sendDownload without { state: xxxxx }."),this.sendVideoAction(o.Events.DOWNLOAD,e),this.state.goDownload()}sendError(e){(e=e||{}).isAd=this.isAd(),this.state.goError();let t=this.isAd()?o.Events.AD_ERROR:o.Events.CONTENT_ERROR;this.sendVideoErrorAction(t,e)}sendRenditionChanged(e){let t;(e=e||{}).timeSinceLastRenditionChange=this.state.timeSinceLastRenditionChange.getDeltaTime(),e.shift=this.getRenditionShift(!0),t=this.isAd()?o.Events.AD_RENDITION_CHANGE:o.Events.CONTENT_RENDITION_CHANGE,this.isAd()?this.sendVideoAdAction(t,e):this.sendVideoAction(t,e),this.state.goRenditionChange()}sendHeartbeat(e){if(this.state.isRequested){let t,i=this.getHeartbeat();this.state._hb=!0,i=this.adjustElapsedTimeForPause(i),this.isAd()?(t=o.Events.AD_HEARTBEAT,"bitmovin-ads"===this.getPlayerName()?this.sendVideoAdAction(t,e):this.sendVideoAdAction(t,{elapsedTime:i,...e})):(t=o.Events.CONTENT_HEARTBEAT,this.sendVideoAction(t,{elapsedTime:i,...e})),this.state.goHeartbeat()}}adjustElapsedTimeForPause(e){return this.state._acc&&(e-=this.state._acc,this.state._acc=0),this.state.isPaused&&((e-=this.state.elapsedTime.getDeltaTime())<10&&(e=0),this.state.elapsedTime.start()),this.state._bufferAcc?(e-=this.state._bufferAcc,this.state._bufferAcc=0):this.state.isBuffering&&((e-=this.state.bufferElapsedTime.getDeltaTime())<5&&(e=0),this.state.bufferElapsedTime.start()),Math.max(0,e)}sendAdBreakStart(e){this.isAd()&&this.state.goAdBreakStart()&&(this.state.totalAdPlaytime=0,this.parentTracker&&(this.parentTracker.state.isPlaying=!1),this.sendVideoAdAction(o.Events.AD_BREAK_START,e))}sendAdBreakEnd(e){this.isAd()&&this.state.goAdBreakEnd()&&((e=e||{}).timeSinceAdBreakBegin=this.state.timeSinceAdBreakStart.getDeltaTime(),this.sendVideoAdAction(o.Events.AD_BREAK_END,e),this.parentTracker&&(this.parentTracker.state.isPlaying=!0),this.stopHeartbeat(),this.parentTracker&&this.isAd()&&this.parentTracker.state.goLastAd())}sendAdQuartile(e){this.isAd()&&((e=e||{}).quartile||s.default.warn("Called sendAdQuartile without { quartile: xxxxx }."),e.timeSinceLastAdQuartile=this.state.timeSinceLastAdQuartile.getDeltaTime(),this.sendVideoAdAction(o.Events.AD_QUARTILE,e),this.state.goAdQuartile())}sendAdClick(e){this.isAd()&&((e=e||{}).url||s.default.warn("Called sendAdClick without { url: xxxxx }."),this.sendVideoAdAction(o.Events.AD_CLICK,e))}}function l(e){e.type!==o.Events.AD_ERROR?this.sendVideoAdAction(e.type,e.data):this.sendVideoErrorAction(e.type,e.data)}o.Events={PLAYER_READY:"PLAYER_READY",DOWNLOAD:"DOWNLOAD",ERROR:"ERROR",CONTENT_REQUEST:"CONTENT_REQUEST",CONTENT_START:"CONTENT_START",CONTENT_END:"CONTENT_END",CONTENT_PAUSE:"CONTENT_PAUSE",CONTENT_RESUME:"CONTENT_RESUME",CONTENT_SEEK_START:"CONTENT_SEEK_START",CONTENT_SEEK_END:"CONTENT_SEEK_END",CONTENT_BUFFER_START:"CONTENT_BUFFER_START",CONTENT_BUFFER_END:"CONTENT_BUFFER_END",CONTENT_HEARTBEAT:"CONTENT_HEARTBEAT",CONTENT_RENDITION_CHANGE:"CONTENT_RENDITION_CHANGE",CONTENT_ERROR:"CONTENT_ERROR",AD_REQUEST:"AD_REQUEST",AD_START:"AD_START",AD_END:"AD_END",AD_PAUSE:"AD_PAUSE",AD_RESUME:"AD_RESUME",AD_SEEK_START:"AD_SEEK_START",AD_SEEK_END:"AD_SEEK_END",AD_BUFFER_START:"AD_BUFFER_START",AD_BUFFER_END:"AD_BUFFER_END",AD_HEARTBEAT:"AD_HEARTBEAT",AD_RENDITION_CHANGE:"AD_RENDITION_CHANGE",AD_ERROR:"AD_ERROR",AD_BREAK_START:"AD_BREAK_START",AD_BREAK_END:"AD_BREAK_END",AD_QUARTILE:"AD_QUARTILE",AD_CLICK:"AD_CLICK"},t.default=o}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return s[e](i,i.exports,n),i.exports}var a={};(()=>{var e=a;Object.defineProperty(e,"B",{value:!0}),e.A=void 0;var t=c(n(399)),i=c(n(51)),s=c(n(455)),r=c(n(144)),d=c(n(568)),o=c(n(302)),l=c(n(793)),h=c(n(328)),u=n(330);function c(e){return e&&e.__esModule?e:{default:e}}const p={Constants:i.default,Chrono:s.default,Log:r.default,Emitter:d.default,Tracker:o.default,VideoTracker:l.default,VideoTrackerState:h.default,Core:t.default,version:u.version};e.A=p})();const d=a.B,o=a.A}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var n=t[s]={exports:{}};return e[s](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{var e=s;Object.defineProperty(e,"B",{value:!0}),e.A=void 0;var t,r=(t=i(302))&&t.__esModule?t:{default:t};e.A=r.default})();const r=s.B,n=s.A;export{r as __esModule,n as default};
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* @newrelic/video-videojs 3.0
|
|
2
|
+
* @license Apache-2.0
|
|
3
|
+
* @newrelic/video-videojs 3.2.0-beta-0
|
|
4
4
|
* Copyright New Relic <http://newrelic.com/>
|
|
5
5
|
* @author Jordi Aguilar
|
|
6
6
|
*/
|
|
7
|
+
|
|
8
|
+
/*! For license information please see index.js.LICENSE.txt */
|