@newrelic/video-videojs 3.1.0 → 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 +10 -3
- package/LICENSE.txt +1 -1
- package/README.md +54 -14
- package/THIRD_PARTY_NOTICES.md +5 -33
- 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 -1
- package/dist/umd/newrelic-video-videojs.min.js.LICENSE.txt +4 -2
- package/dist/umd/newrelic-video-videojs.min.js.map +1 -0
- package/package.json +9 -8
- 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/esm/index.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
const a0dE=a0b;(function(a,b){const O=a0b,c=a();while(!![]){try{const d=-parseInt(O(0x1ab))/0x1+parseInt(O(0x359))/0x2*(parseInt(O(0x3a2))/0x3)+parseInt(O(0x32a))/0x4+parseInt(O(0x289))/0x5+parseInt(O(0x278))/0x6+parseInt(O(0x264))/0x7+-parseInt(O(0x1ed))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(f){c['push'](c['shift']());}}}(a0a,0xef17e));var t={0x26:(a,b,c)=>{const P=a0b;Object[P(0x36d)](b,'__esModule',{'value':!0x0}),b[P(0x17e)]=void 0x0;var d,f=(d=c(0x1d8))&&d[P(0x202)]?d:{'default':d};class g extends f[P(0x17e)]{static[P(0x312)](h){const Q=P;return!!h[Q(0x216)]&&Q(0x17b)!=typeof tv&&tv['freewheel'];}[P(0x1d9)](){const R=P;return R(0x2be);}['getPlayerName'](){return'freewheel-ads';}['getPlayerVersion'](){const S=P;return this[S(0x2a4)][S(0x216)][S(0x2e9)];}[P(0x2f1)](){const T=P;if(this[T(0x2a4)][T(0x185)]['ad'][T(0x1c4)])return 0x3e8*this[T(0x2a4)][T(0x185)]['ad'][T(0x1c4)]();}['getDuration'](){const U=P;if(this['player']['ads']['ad'][U(0x32d)])return 0x3e8*this[U(0x2a4)][U(0x185)]['ad'][U(0x32d)];}[P(0x1f3)](){const V=P;return this[V(0x2a4)][V(0x185)]['ad']['id'];}[P(0x1a2)](){return'freewheel';}['getAdCreativeId'](){const W=P;try{return this[W(0x2a4)][W(0x185)][W(0x2f2)][W(0x250)][W(0x262)][W(0x2a9)]()['getId']();}catch(h){}}[P(0x3a3)](){const X=P;try{return this[X(0x2a4)]['ads'][X(0x2f2)][X(0x250)][X(0x262)][X(0x2a9)]()[X(0x252)]()[X(0x376)]();}catch(h){}}['getTitle'](){const Y=P;try{return this[Y(0x2a4)][Y(0x185)][Y(0x2f2)][Y(0x250)][Y(0x262)][Y(0x2a9)]()[Y(0x252)]()['getName']();}catch(h){}}[P(0x3a8)](){const Z=P;switch(this[Z(0x2a4)][Z(0x185)]['ad']['type']){case Z(0x2ac):return nrvideo[Z(0x229)][Z(0x241)][Z(0x221)];case Z(0x363):return nrvideo[Z(0x229)][Z(0x241)]['MID'];case Z(0x1c0):return nrvideo[Z(0x229)][Z(0x241)]['POST'];}}}b[P(0x17e)]=g;},0x40:(b,c,d)=>{const a0=a0b;Object[a0(0x36d)](c,'__esModule',{'value':!0x0}),c['default']=void 0x0;var f=h(d(0x22b)),g=h(d(0x1d8));function h(k){const a1=a0;return k&&k[a1(0x202)]?k:{'default':k};}class j extends g['default']{static[a0(0x312)](k){return!!k['ima3'];}[a0(0x1d9)](){const a2=a0;return a2(0x33c);}[a0(0x2aa)](){const a3=a0;return a3(0x33c);}[a0(0x2f1)](){const a4=a0;return this['player']?.[a4(0x2ba)]?.[a4(0x383)]?.['currentTime']();}[a0(0x3ae)](){const a5=a0;f[a5(0x17e)][a5(0x3b3)][a5(0x35e)](this['player'],[null,'ima3-ready',a5(0x346),'ima3-ad-error',a5(0x299),a5(0x1ca),'ima3-paused','ima3-resumed',a5(0x269),a5(0x1dc),'ads-ad-started','ads-ad-ended',a5(0x319),a5(0x1b4),a5(0x2d5),a5(0x313),a5(0x349),'ads-allpods-completed']),this[a5(0x2a4)]['on'](a5(0x299),this['onStarted'][a5(0x232)](this)),this[a5(0x2a4)]['on'](a5(0x372),this[a5(0x353)][a5(0x232)](this)),this[a5(0x2a4)]['on']('ima3-resumed',this[a5(0x1bb)][a5(0x232)](this)),this[a5(0x2a4)]['on'](a5(0x1ca),this['onComplete'][a5(0x232)](this)),this['player']['on']('ima3-skipped',this[a5(0x172)][a5(0x232)](this)),this[a5(0x2a4)]['on'](a5(0x246),this[a5(0x16b)]['bind'](this)),this[a5(0x2a4)]['on'](a5(0x2d5),this[a5(0x260)][a5(0x232)](this));}[a0(0x197)](){const a6=a0;this[a6(0x2a4)][a6(0x3b8)](a6(0x299),this['onStarted']),this[a6(0x2a4)][a6(0x3b8)](a6(0x372),this[a6(0x353)]),this[a6(0x2a4)][a6(0x3b8)]('ima3-resumed',this[a6(0x1bb)]),this['player'][a6(0x3b8)](a6(0x1ca),this[a6(0x30e)]),this[a6(0x2a4)][a6(0x3b8)](a6(0x39c),this[a6(0x172)]),this['player'][a6(0x3b8)](a6(0x246),this[a6(0x16b)]),this[a6(0x2a4)]['off'](a6(0x2d5),this['onClick']);}['onStarted'](k){const a7=a0;this[a7(0x387)](),this[a7(0x1fe)]();}['onPaused'](k){const a8=a0;this[a8(0x2a5)]();}[a0(0x1bb)](k){this['sendResume']();}[a0(0x30e)](k){const a9=a0;this[a9(0x2b0)]();}['onSkipped'](k){const aa=a0;this[aa(0x2b0)]({'skipped':!0x0});}[a0(0x16b)](k){const ab=a0;this[ab(0x2d6)]();}[a0(0x260)](k){const ac=a0;this[ac(0x23c)]();}}c[a0(0x17e)]=j;},0x101:(a,b)=>{const ad=a0b;Object[ad(0x36d)](b,ad(0x202),{'value':!0x0}),b[ad(0x17e)]=void 0x0;class c{constructor(d){const ae=ad;this[ae(0x366)]=d[ae(0x2a0)];}[ad(0x1eb)](d){const af=ad;return this[af(0x366)][af(0x238)];}['getRenditionName'](d){const ag=ad;try{var f=this[ag(0x366)][ag(0x2c5)][this[ag(0x366)][ag(0x187)]];if(f&&f[ag(0x2ed)])return f[ag(0x2ed)];}catch(g){}return null;}[ad(0x23e)](d){const ah=ad;try{var f=this[ah(0x366)][ah(0x2c5)][this['tech'][ah(0x187)]];if(f&&f[ah(0x33d)])return f[ah(0x33d)];}catch(g){}return null;}['getRenditionWidth'](d){const ai=ad;try{var f=this['tech']['levels'][this[ai(0x366)]['currentLevel']];if(f&&f[ai(0x1af)])return f[ai(0x1af)];}catch(g){}return null;}[ad(0x37a)](d){const aj=ad;try{var f=this[aj(0x366)][aj(0x2c5)][this['tech'][aj(0x187)]];if(f&&f[aj(0x364)])return f['height'];}catch(g){}return null;}}b[ad(0x17e)]=c,c['isUsing']=function(d){return!!d['vhs_'];};},0x12a:(b,c,d)=>{const ak=a0b;Object['defineProperty'](c,ak(0x202),{'value':!0x0}),c[ak(0x17e)]=void 0x0;var f=h(d(0x22b)),g=h(d(0x1d8));function h(k){const al=ak;return k&&k[al(0x202)]?k:{'default':k};}class j extends g[ak(0x17e)]{static[ak(0x312)](k){const am=ak;return k[am(0x204)]&&am(0x17b)!=typeof google;}['getTrackerName'](){const an=ak;return an(0x1ce);}[ak(0x2aa)](){return'ima';}[ak(0x214)](){const ao=ak;return ao(0x19c)+google[ao(0x204)][ao(0x2e9)]+ao(0x321)+this[ao(0x2a4)]['ads'][ao(0x2e9)];}[ak(0x2ab)](){const ap=ak;return this[ap(0x2a4)][ap(0x204)][ap(0x19e)]()[ap(0x2ab)]();}[ak(0x3a8)](){const aq=ak;if(this[aq(0x2e6)]&&this[aq(0x2e6)][aq(0x255)]&&void 0x0!==this[aq(0x2e6)]['podInfo'][aq(0x1ac)]){const k=this[aq(0x2e6)][aq(0x255)][aq(0x1ac)];return 0x0===k?aq(0x381):-0x1===k?aq(0x175):aq(0x25c);}return null;}[ak(0x2d2)](){const ar=ak;return this[ar(0x2e6)]&&void 0x0!==this[ar(0x2e6)][ar(0x32d)]?0x3e8*this[ar(0x2e6)][ar(0x32d)]:null;}[ak(0x1f3)](){const as=ak;return this[as(0x2e6)]&&this[as(0x2e6)][as(0x18f)]?this[as(0x2e6)][as(0x18f)]:null;}[ak(0x20c)](){const at=ak;return this[at(0x2e6)]&&this[at(0x2e6)]['creativeId']?this[at(0x2e6)][at(0x180)]:null;}[ak(0x3a3)](){const au=ak;return this['lastAdData']&&this[au(0x2e6)][au(0x31b)]?this['lastAdData'][au(0x31b)]:null;}['getTitle'](){const av=ak;return this[av(0x2e6)]&&this[av(0x2e6)][av(0x17f)]?this[av(0x2e6)][av(0x17f)]:null;}[ak(0x2f1)](){const aw=ak;let k=this[aw(0x2a4)]['ima'][aw(0x19e)]();if(k)return 0x3e8*(this[aw(0x2d2)]()-k['getRemainingTime']());}[ak(0x2c2)](){const ax=ak;return this['player'][ax(0x32b)]();}['getAdPartner'](){return'ima';}[ak(0x3ae)](){const ay=ak;let k=google[ay(0x204)]['AdEvent'][ay(0x1a7)],l=google['ima'][ay(0x3aa)]['Type']['AD_ERROR'];this['lastAdData']=null,f[ay(0x17e)][ay(0x3b3)][ay(0x35e)](this[ay(0x2a4)]['ima']['addEventListener'],[null,k[ay(0x19d)],k[ay(0x2b7)],k['COMPLETE'],k[ay(0x2fc)],k[ay(0x196)],k[ay(0x2dd)],k['CONTENT_RESUME_REQUESTED'],k[ay(0x2fb)],k[ay(0x1de)],k[ay(0x2ea)],k[ay(0x212)],k['RESUMED'],k[ay(0x2b9)],k['AD_CAN_PLAY'],k[ay(0x20d)],k[ay(0x243)],k['AD_BREAK_READY'],k[ay(0x315)],k['CLICK'],k['FIRST_QUARTILE'],k[ay(0x302)],k[ay(0x361)],l]),this['player']['ima'][ay(0x219)](k[ay(0x2ea)],this[ay(0x18a)][ay(0x232)](this)),this[ay(0x2a4)][ay(0x204)]['addEventListener'](k[ay(0x2b9)],this[ay(0x1be)]['bind'](this)),this[ay(0x2a4)][ay(0x204)][ay(0x219)](k[ay(0x212)],this[ay(0x353)][ay(0x232)](this)),this[ay(0x2a4)][ay(0x204)][ay(0x219)](k[ay(0x2df)],this['onResumed'][ay(0x232)](this)),this[ay(0x2a4)][ay(0x204)][ay(0x219)](k[ay(0x275)],this['onComplete'][ay(0x232)](this)),this[ay(0x2a4)]['ima'][ay(0x219)](k['SKIPPED'],this[ay(0x172)][ay(0x232)](this)),this['player'][ay(0x204)][ay(0x219)](k[ay(0x38b)],this[ay(0x260)][ay(0x232)](this)),this[ay(0x2a4)][ay(0x204)][ay(0x219)](k[ay(0x258)],this[ay(0x329)]['bind'](this)),this[ay(0x2a4)][ay(0x204)][ay(0x219)](k['MIDPOINT'],this['onMidpoint'][ay(0x232)](this)),this[ay(0x2a4)][ay(0x204)][ay(0x219)](k[ay(0x361)],this['onThirdQuartile'][ay(0x232)](this)),this['player'][ay(0x204)][ay(0x219)](l,this['onError'][ay(0x232)](this));}['unregisterListeners'](){const az=ak;let k=google[az(0x204)][az(0x194)][az(0x1a7)],l=google[az(0x204)][az(0x3aa)][az(0x1a7)][az(0x30b)];this['player'][az(0x204)][az(0x2cf)](k[az(0x2ea)],this[az(0x18a)]),this[az(0x2a4)][az(0x204)]['removeEventListener'](k[az(0x2b9)],this[az(0x18a)][az(0x232)](this)),this[az(0x2a4)]['ima'][az(0x2cf)](k[az(0x196)],this[az(0x314)]),this[az(0x2a4)][az(0x204)]['removeEventListener'](k[az(0x212)],this['onPaused']),this[az(0x2a4)][az(0x204)][az(0x2cf)](k[az(0x2df)],this[az(0x242)]),this['player']['ima'][az(0x2cf)](k[az(0x275)],this[az(0x30e)]),this[az(0x2a4)]['ima'][az(0x2cf)](k['SKIPPED'],this['onSkipped']),this[az(0x2a4)][az(0x204)][az(0x2cf)](k[az(0x38b)],this[az(0x260)]),this[az(0x2a4)][az(0x204)][az(0x2cf)](k[az(0x258)],this[az(0x329)]),this[az(0x2a4)]['ima'][az(0x2cf)](k['MIDPOINT'],this['onMidpoint']),this['player'][az(0x204)][az(0x2cf)](k[az(0x361)],this[az(0x16d)]),this[az(0x2a4)]['ima'][az(0x2cf)](l,this['onError']),this['lastAdData']=null;}['onLoaded'](k){const aA=ak;this[aA(0x2e6)]=this[aA(0x251)](),this[aA(0x387)]();}[ak(0x1be)](k){const aB=ak;this[aB(0x2e6)]=this['getAdData'](),this[aB(0x1fe)]();}[ak(0x30e)](k){const aC=ak;this[aC(0x2b0)](),this[aC(0x2e6)]=null;}[ak(0x172)](k){const aD=ak;this[aD(0x2b0)]({'skipped':!0x0}),this[aD(0x2e6)]=null;}['onError'](k){const aE=ak,l=k[aE(0x1db)](),m=l[aE(0x300)](),o=l[aE(0x1c9)]();this[aE(0x2d6)]({'adError':l,'errorCode':m,'errorName':o});}['onClick'](k){const aF=ak;this[aF(0x24c)]();}[ak(0x329)](){this['sendAdQuartile']({'adQuartile':0x1});}[ak(0x370)](){this['sendAdQuartile']({'adQuartile':0x2});}[ak(0x16d)](){const aG=ak;this[aG(0x2a8)]({'adQuartile':0x3});}[ak(0x353)](){const aH=ak;this[aH(0x2a5)]();}['onResumed'](){const aI=ak;this[aI(0x2e1)]();}[ak(0x251)](){const aJ=ak;try{const k=this['player'][aJ(0x204)]['getAdsManager']();if(k){const l=k[aJ(0x294)]();if(l)return{'adId':l[aJ(0x2e4)](),'creativeId':l[aJ(0x2d4)](),'duration':l['getDuration'](),'mediaUrl':l[aJ(0x34f)](),'title':l[aJ(0x3b5)](),'podInfo':l[aJ(0x318)]()?.['data']};}return null;}catch(m){return null;}}}c[ak(0x17e)]=j;},0x12e:(b,f,g)=>{const aK=a0b;Object[aK(0x36d)](f,aK(0x202),{'value':!0x0}),Object[aK(0x36d)](f,aK(0x320),{'enumerable':!0x0,'get':function(){const aL=aK;return y[aL(0x17e)];}}),Object['defineProperty'](f,aK(0x36e),{'enumerable':!0x0,'get':function(){const aM=aK;return m[aM(0x17e)];}}),Object['defineProperty'](f,aK(0x189),{'enumerable':!0x0,'get':function(){const aN=aK;return z[aN(0x17e)];}}),Object['defineProperty'](f,aK(0x248),{'enumerable':!0x0,'get':function(){return q['default'];}}),Object['defineProperty'](f,aK(0x26e),{'enumerable':!0x0,'get':function(){const aO=aK;return x[aO(0x17e)];}}),Object[aK(0x36d)](f,aK(0x34d),{'enumerable':!0x0,'get':function(){const aP=aK;return v[aP(0x17e)];}}),Object[aK(0x36d)](f,aK(0x1d8),{'enumerable':!0x0,'get':function(){const aQ=aK;return w[aQ(0x17e)];}}),f[aK(0x17e)]=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 aR=aK;return C&&C[aR(0x202)]?C:{'default':C};}class B extends j[aK(0x17e)][aK(0x240)]{constructor(C,D){const aS=aK;super(C,D),this['isContentEnd']=!0x1,this['imaAdCuePoints']='',j['default'][aS(0x182)][aS(0x171)](this);}[aK(0x265)](){const aT=aK;let C=this[aT(0x2a4)][aT(0x366)]({'IWillNotUseThisInPlugins':!0x0});if(C){if(m[aT(0x17e)][aT(0x312)](C))return new m[(aT(0x17e))](C);if(q[aT(0x17e)]['isUsing'](C))return new q[(aT(0x17e))](C);if(v[aT(0x17e)][aT(0x312)](C))return new v[(aT(0x17e))](C);}}[aK(0x1d9)](){const aU=aK;return aU(0x382);}[aK(0x1bd)](){const aV=aK;return aV(0x341);}['getInstrumentationName'](){const aW=aK;return this[aW(0x2aa)]();}[aK(0x362)](){const aX=aK;return this[aX(0x214)]();}['getTrackerVersion'](){const aY=aK;return k[aY(0x17e)][aY(0x1cf)];}[aK(0x2f1)](){const aZ=aK;return this[aZ(0x2a4)][aZ(0x185)]&&aZ(0x203)===this[aZ(0x2a4)][aZ(0x185)][aZ(0x33b)]&&this[aZ(0x2a4)]['ads'][aZ(0x2e3)]&&this['player'][aZ(0x185)][aZ(0x2e3)]['currentTime']?0x3e8*this['player'][aZ(0x185)][aZ(0x2e3)][aZ(0x1c4)]:this[aZ(0x2a4)]['absoluteTime']?0x3e8*this[aZ(0x2a4)]['absoluteTime']():0x3e8*this[aZ(0x2a4)][aZ(0x1c4)]();}[aK(0x2d2)](){const b0=aK;return this[b0(0x2a4)][b0(0x2e7)]&&void 0x0!==this[b0(0x2a4)][b0(0x2e7)][b0(0x32d)]?0x3e8*this[b0(0x2a4)][b0(0x2e7)]['duration']:0x3e8*this[b0(0x2a4)][b0(0x32d)]();}[aK(0x3b5)](){const b1=aK;return this[b1(0x2a4)]?.[b1(0x2e7)]?.[b1(0x2ed)];}[aK(0x2c1)](){const b2=aK;return this[b2(0x2a4)]?.[b2(0x2e7)]?.['id'];}[aK(0x1ea)](){const b3=aK;return this['player']?.[b3(0x39b)]();}[aK(0x3a3)](){const b4=aK;let C=this[b4(0x265)]();return C&&C[b4(0x3a3)]?C[b4(0x3a3)]():this[b4(0x2a4)][b4(0x332)]();}[aK(0x2aa)](){const b5=aK;return this[b5(0x2a4)]?.['name']()||b5(0x382);}['getPlayerVersion'](){const b6=aK;return this[b6(0x2a4)]?.[b6(0x1cf)];}[aK(0x274)](){const b7=aK;return this['player'][b7(0x1b0)]();}[aK(0x1d0)](){const b8=aK;let C=this['getTech']();return C?.[b8(0x366)]?.[b8(0x2f0)]?.[b8(0x3b4)];}['getRenditionName'](){const b9=aK;let C=this['getTech']();if(C&&C[b9(0x256)])return C[b9(0x256)]();}['getRenditionBitrate'](){const ba=aK;let C=this[ba(0x265)]();if(C&&C[ba(0x23e)])return C[ba(0x23e)]();}[aK(0x37a)](){const bb=aK;let C=this['getTech']();return C&&C[bb(0x37a)]?C[bb(0x37a)]():this[bb(0x2a4)][bb(0x1f4)]();}[aK(0x1a4)](){const bc=aK;let C=this[bc(0x265)]();return C&&C[bc(0x1a4)]?C['getRenditionWidth']():this[bc(0x2a4)][bc(0x24f)]();}[aK(0x2c2)](){const bd=aK;return this[bd(0x2a4)][bd(0x32b)]();}[aK(0x261)](){const be=aK;return this[be(0x2a4)][be(0x2a2)]();}['isFullscreen'](){const bf=aK;return this[bf(0x2a4)][bf(0x333)]();}[aK(0x2fe)](){const bg=aK;return this[bg(0x2a4)][bg(0x2ef)]();}[aK(0x3ae)](){const bh=aK;j[bh(0x17e)][bh(0x3b3)][bh(0x35e)](this[bh(0x2a4)],[bh(0x36f),bh(0x2d0),'adskip','adsready',bh(0x246),bh(0x2ec)]),this['player']['on'](bh(0x217),this[bh(0x1ee)][bh(0x232)](this)),this[bh(0x2a4)]['on'](bh(0x271),this[bh(0x1ee)][bh(0x232)](this)),this[bh(0x2a4)]['on'](bh(0x2da),this[bh(0x1ee)][bh(0x232)](this)),this[bh(0x2a4)]['on'](bh(0x2ae),this[bh(0x230)][bh(0x232)](this)),this[bh(0x2a4)]['on'](bh(0x36f),this[bh(0x292)]['bind'](this)),this[bh(0x2a4)]['on'](bh(0x2d0),this[bh(0x2db)]['bind'](this)),this[bh(0x2a4)]['on'](bh(0x2c9),this['onPlay']['bind'](this)),this[bh(0x2a4)]['on'](bh(0x29e),this['onPause'][bh(0x232)](this)),this['player']['on'](bh(0x373),this['onPlaying'][bh(0x232)](this)),this['player']['on'](bh(0x198),this[bh(0x298)][bh(0x232)](this)),this[bh(0x2a4)]['on'](bh(0x1d5),this['onEnded'][bh(0x232)](this)),this['player']['on'](bh(0x2ec),this[bh(0x179)][bh(0x232)](this)),this[bh(0x2a4)]['on'](bh(0x2bb),this[bh(0x208)][bh(0x232)](this)),this[bh(0x2a4)]['on'](bh(0x327),this[bh(0x337)][bh(0x232)](this)),this['player']['on'](bh(0x173),this[bh(0x16b)][bh(0x232)](this)),this[bh(0x2a4)]['on'](bh(0x27e),this[bh(0x2a6)][bh(0x232)](this)),this[bh(0x2a4)]['on'](bh(0x1b7),this[bh(0x28b)]['bind'](this)),this['player']['on']('ads-allpods-completed',this[bh(0x1e2)][bh(0x232)](this));}[aK(0x197)](){const bi=aK;this[bi(0x2a4)]['off']('loadstart',this[bi(0x1ee)]),this[bi(0x2a4)]['off'](bi(0x271),this[bi(0x1ee)]),this['player']['off'](bi(0x2da),this['onDownload']),this['player'][bi(0x3b8)]('adsready',this[bi(0x230)]),this[bi(0x2a4)]['off'](bi(0x36f),this[bi(0x292)]),this['player']['off'](bi(0x2d0),this[bi(0x2db)]),this['player'][bi(0x3b8)](bi(0x2c9),this[bi(0x191)]),this['player'][bi(0x3b8)]('pause',this[bi(0x3ab)]),this[bi(0x2a4)][bi(0x3b8)](bi(0x373),this[bi(0x277)]),this[bi(0x2a4)][bi(0x3b8)](bi(0x198),this['onAbort']),this[bi(0x2a4)][bi(0x3b8)](bi(0x1d5),this[bi(0x25d)]),this[bi(0x2a4)]['off'](bi(0x2ec),this['onDispose']),this[bi(0x2a4)][bi(0x3b8)](bi(0x2bb),this[bi(0x208)]),this[bi(0x2a4)][bi(0x3b8)](bi(0x327),this[bi(0x337)]),this[bi(0x2a4)][bi(0x3b8)](bi(0x173),this[bi(0x16b)]),this['player'][bi(0x3b8)](bi(0x27e),this['onWaiting']),this[bi(0x2a4)][bi(0x3b8)](bi(0x1b7),this[bi(0x28b)]),this[bi(0x2a4)][bi(0x3b8)](bi(0x168),this[bi(0x1e2)][bi(0x232)](this));}[aK(0x1ee)](C){const bj=aK;this[bj(0x1c5)]({'state':C[bj(0x351)]});}['onAdsready'](){const bk=aK;this[bk(0x39a)]||(y[bk(0x17e)][bk(0x312)](this[bk(0x2a4)])?this['setAdsTracker'](new y['default'](this['player'])):x[bk(0x17e)][bk(0x312)](this[bk(0x2a4)])?this[bk(0x3b1)](new x[(bk(0x17e))](this['player'])):z[bk(0x17e)][bk(0x312)](this[bk(0x2a4)])?this[bk(0x3b1)](new z['default'](this[bk(0x2a4)])):this[bk(0x3b1)](new w[(bk(0x17e))](this[bk(0x2a4)])));}[aK(0x292)](){const bl=aK;this[bl(0x2f8)]=!0x0,this['imaAdCuePoints']||(this[bl(0x19b)]=this[bl(0x2a4)]?.[bl(0x204)]?.['getAdsManager']()[bl(0x2ab)]());}[aK(0x2db)](){const bm=aK;this[bm(0x2c3)]&&this[bm(0x2b0)]();}[aK(0x1e2)](){const bn=aK;this[bn(0x25d)]['bind'](this),this[bn(0x257)]=!0x0;}[aK(0x191)](){const bo=aK;this[bo(0x387)]();}[aK(0x3ab)](){const bp=aK;this[bp(0x2a5)]();}[aK(0x277)](){const bq=aK;this[bq(0x2e1)](),this[bq(0x393)]();}['onAbort'](){const br=aK;this[br(0x2b0)]();}['onEnded'](){const bs=aK;this[bs(0x39a)]?(this[bs(0x2c3)]=!0x0,this[bs(0x19b)]&&!this[bs(0x19b)][bs(0x170)](-0x1)&&this['sendEnd']()):this[bs(0x2b0)]();}[aK(0x179)](){this['sendEnd']();}[aK(0x208)](){this['sendSeekStart']();}[aK(0x337)](){const bt=aK;this[bt(0x343)]();}['onError'](){const bu=aK,C=this[bu(0x2a4)][bu(0x173)](),D=C['code'],E=C[bu(0x29b)];this['player'][bu(0x173)]&&this[bu(0x2a4)]['error']()&&this[bu(0x2d6)]({'errorCode':D,'errorName':E});}[aK(0x2a6)](C){const bv=aK;this[bv(0x357)]();}[aK(0x28b)](C){const bw=aK;this[bw(0x2f1)]()>0.1&&this[bw(0x1fe)]();}}f['default']=B;},0x14a:a=>{const bx=a0b;a['exports']=JSON['parse'](bx(0x35d));},0x152:(a,b)=>{const by=a0b;Object[by(0x36d)](b,by(0x202),{'value':!0x0}),b[by(0x17e)]=void 0x0;class c{constructor(d){const bz=by;this['tech']=d[bz(0x209)];}['getSrc'](d){const bA=by;try{return this[bA(0x366)][bA(0x397)]();}catch(f){}return null;}['getRenditionBitrate'](d){const bB=by;try{return this[bB(0x366)][bB(0x288)]()[bB(0x16f)];}catch(f){}return null;}['getRenditionWidth'](d){const bC=by;try{var f=this['tech'][bC(0x267)]();for(var g in f){var h=f[g];if(h['active']&&bC(0x22c)===h[bC(0x351)])return h[bC(0x1af)];}}catch(j){}return null;}[by(0x37a)](d){const bD=by;try{var f=this[bD(0x366)][bD(0x267)]();for(var g in f){var h=f[g];if(h['active']&&bD(0x22c)===h[bD(0x351)])return h[bD(0x364)];}}catch(j){}return null;}}b[by(0x17e)]=c,c['isUsing']=function(d){const bE=by;return!!d[bE(0x209)];};},0x199:(a,b)=>{const bF=a0b;Object['defineProperty'](b,bF(0x202),{'value':!0x0}),b['default']=void 0x0;class c{constructor(d){const bG=bF;this[bG(0x366)]=d[bG(0x1b5)];}[bF(0x256)](){const bH=bF;try{var d=this[bH(0x366)][bH(0x305)][bH(0x340)]();if(d&&d[bH(0x35f)])return d['attributes'][bH(0x249)];}catch(f){}return null;}['getRenditionBitrate'](){const bI=bF;try{var d=this[bI(0x366)]['playlists'][bI(0x340)]();if(d&&d[bI(0x35f)])return d[bI(0x35f)][bI(0x36c)];}catch(f){}return null;}['getRenditionWidth'](){const bJ=bF;try{var d=this[bJ(0x366)]['playlists']['media']();if(d&&d['attributes']&&d[bJ(0x35f)][bJ(0x389)])return d[bJ(0x35f)][bJ(0x389)][bJ(0x1af)];}catch(f){}return null;}[bF(0x37a)](){const bK=bF;try{var d=this[bK(0x366)]['playlists'][bK(0x340)]();if(d&&d['attributes']&&d['attributes'][bK(0x389)])return d['attributes']['RESOLUTION'][bK(0x364)];}catch(f){}return null;}}b[bF(0x17e)]=c,c[bF(0x312)]=function(d){return!!d['vhs'];};},0x1d8:(b,c,d)=>{const bL=a0b;Object[bL(0x36d)](c,bL(0x202),{'value':!0x0}),c[bL(0x17e)]=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[bL(0x17e)][bL(0x240)]{[bL(0x1d9)](){const bM=bL;return bM(0x3b9);}[bL(0x1b9)](){const bN=bL;return g[bN(0x17e)][bN(0x1cf)];}[bL(0x274)](){const bO=bL;return this[bO(0x2a4)]['muted']();}['getRenditionHeight'](){return null;}[bL(0x1a4)](){return null;}[bL(0x2aa)](){const bP=bL;return bP(0x3b9);}[bL(0x214)](){const bQ=bL;return this[bQ(0x2a4)]['ads']['VERSION'];}[bL(0x3ae)](){const bR=bL;f[bR(0x17e)][bR(0x3b3)]['debugCommonVideoEvents'](this[bR(0x2a4)],[null,bR(0x269),bR(0x1dc),bR(0x36f),'adend',bR(0x290),bR(0x246),bR(0x2d5),bR(0x313),bR(0x349),bR(0x1fc),'ads-midpoint','ads-third-quartile',bR(0x319),bR(0x1b4),bR(0x1e8)]),this[bR(0x2a4)]['on'](bR(0x269),this['onAdrequest']['bind'](this)),this[bR(0x2a4)]['on'](bR(0x1dc),this[bR(0x19f)][bR(0x232)](this)),this['player']['on'](bR(0x36f),this[bR(0x254)]['bind'](this)),this[bR(0x2a4)]['on'](bR(0x2d0),this[bR(0x1ff)][bR(0x232)](this)),this[bR(0x2a4)]['on'](bR(0x290),this['onAdskip']['bind'](this)),this['player']['on']('adserror',this['onAdserror']['bind'](this)),this[bR(0x2a4)]['on'](bR(0x2d5),this[bR(0x379)]['bind'](this)),this[bR(0x2a4)]['on'](bR(0x313),this['onPodStart'][bR(0x232)](this)),this[bR(0x2a4)]['on']('ads-pod-ended',this['onPodEnd'][bR(0x232)](this)),this['player']['on']('ads-first-quartile',this[bR(0x329)]['bind'](this)),this[bR(0x2a4)]['on'](bR(0x394),this['onMidpoint']['bind'](this)),this['player']['on'](bR(0x174),this[bR(0x16d)]['bind'](this)),this[bR(0x2a4)]['on'](bR(0x319),this['onAdspause']['bind'](this)),this[bR(0x2a4)]['on']('ads-play',this[bR(0x1d1)]['bind'](this));}[bL(0x197)](){const bS=bL;this[bS(0x2a4)][bS(0x3b8)](bS(0x269),this[bS(0x22f)]),this['player']['off'](bS(0x1dc),this['onAdload']),this['player'][bS(0x3b8)](bS(0x36f),this['onAdstart']),this[bS(0x2a4)][bS(0x3b8)](bS(0x2d0),this[bS(0x1ff)]),this[bS(0x2a4)][bS(0x3b8)]('adskip',this[bS(0x374)]),this['player'][bS(0x3b8)](bS(0x246),this[bS(0x35c)]),this['player'][bS(0x3b8)](bS(0x2d5),this[bS(0x379)]),this[bS(0x2a4)]['off'](bS(0x313),this['onPodStart']),this[bS(0x2a4)]['off'](bS(0x349),this[bS(0x33f)]),this[bS(0x2a4)][bS(0x3b8)](bS(0x1fc),this['onFirstQuartile']),this['player'][bS(0x3b8)](bS(0x394),this[bS(0x370)]),this[bS(0x2a4)][bS(0x3b8)]('ads-third-quartile',this[bS(0x16d)]),this[bS(0x2a4)][bS(0x3b8)](bS(0x319),this['onAdspause']),this[bS(0x2a4)][bS(0x3b8)]('ads-play',this[bS(0x1d1)]);}[bL(0x22f)](k){const bT=bL;this[bT(0x387)](),this[bT(0x1c5)]({'state':bT(0x269)});}['onAdload'](k){this['sendDownload']({'state':'ads-load'});}[bL(0x254)](k){const bU=bL;this[bU(0x387)](),this[bU(0x1fe)]();}[bL(0x1ff)](k){const bV=bL;this[bV(0x2b0)]();}[bL(0x374)](k){const bW=bL;this[bW(0x2b0)]({'skipped':!0x0});}['onAdserror'](k){this['sendError']();}[bL(0x379)](k){const bX=bL;this[bX(0x24c)]({'url':bX(0x1cb)});}[bL(0x3ba)](k){this['sendAdBreakStart']();}[bL(0x33f)](k){const bY=bL;this[bY(0x199)]();}[bL(0x329)](){const bZ=bL;this[bZ(0x2a8)]({'quartile':0x1});}['onMidpoint'](){const c0=bL;this[c0(0x2a8)]({'quartile':0x2});}[bL(0x16d)](){const c1=bL;this[c1(0x2a8)]({'quartile':0x3});}[bL(0x2b6)](){const c2=bL;this[c2(0x2a5)]();}[bL(0x1d1)](){const c3=bL;this[c3(0x2e1)]();}}c[bL(0x17e)]=j;},0x22b:(b,c,f)=>{f['r'](c),f['d'](c,{'__esModule':()=>u,'default':()=>v}),function(w){const c4=a0b,x=q,y=w();for(;;)try{if(0x91c9d===-parseInt(x(0x265))/0x1*(-parseInt(x(0x2c2))/0x2)+-parseInt(x(0x1e5))/0x3+parseInt(x(0x29a))/0x4+parseInt(x(0x24d))/0x5+-parseInt(x(0x214))/0x6*(-parseInt(x(0x21a))/0x7)+parseInt(x(0x252))/0x8*(parseInt(x(0x2d2))/0x9)+-parseInt(x(0x258))/0xa*(parseInt(x(0x241))/0xb))break;y['push'](y['shift']());}catch(z){y[c4(0x200)](y['shift']());}}(p);var g={0x33:(w,x)=>{const c5=a0b,y=q;Object[c5(0x36d)](x,y(0x16f),{'value':!0x0}),x[y(0x2b7)]=void 0x0;class z{}z[y(0x2db)]={'PRE':y(0x197),'MID':y(0x199),'POST':y(0x2c7)},x[y(0x2b7)]=z;},0x90:(w,x)=>{const c6=a0b,y=q;Object[y(0x15c)](x,c6(0x202),{'value':!0x0}),x[y(0x2b7)]=void 0x0;class z{static[c6(0x173)](){const c7=c6,D=y;for(var E=arguments[c7(0x33a)],F=new Array(E),G=0x0;G<E;G++)F[G]=arguments[G];A(F,z[D(0x1a3)][D(0x208)],D(0x1fe));}static[y(0x1a4)](){const D=y;for(var E=arguments[D(0x238)],F=new Array(E),G=0x0;G<E;G++)F[G]=arguments[G];A(F,z[D(0x1a3)][D(0x19c)],D(0x15d));}static[y(0x2d7)](){const D=y;for(var E=arguments[D(0x238)],F=new Array(E),G=0x0;G<E;G++)F[G]=arguments[G];A([][D(0x159)][D(0x2e0)](arguments),z[D(0x1a3)][D(0x203)],D(0x2d6));}static[y(0x2cc)](){const c8=c6;for(var D=arguments[y(0x238)],E=new Array(D),F=0x0;F<D;F++)E[F]=arguments[F];A(E,z[c8(0x1da)][c8(0x352)],'indigo');}static[y(0x26e)](D,E,F){const c9=c6,G=y;try{if(z[G(0x242)]<=z[G(0x1a3)][G(0x189)]){F=F||function(J){const K=G;z[K(0x2cc)](K(0x2b0)+J[K(0x1af)]);};var H=[c9(0x306),G(0x1b8),G(0x179),G(0x2b1),G(0x23e),G(0x22c),G(0x25e),G(0x14c),G(0x2a2),G(0x221),'seek',G(0x264),G(0x148),G(0x176),G(0x1b0),G(0x273),G(0x281),G(0x27b)];E&&(null===E[0x0]?(E[G(0x207)](),H=E):H=H[G(0x161)](E));for(var I=0x0;I<H[c9(0x33a)];I++)G(0x29f)==typeof D?D[G(0x2e0)](window,H[I],F):D['on']?D['on'](H[I],F):D[G(0x213)]?D[G(0x213)](H[I],F):D[G(0x16c)]?D[G(0x16c)](H[I],F):z['warn'](G(0x1db),D);}}catch(J){z[G(0x1a4)](J);}}}function A(D,E,F){const ca=c6,G=y;E=E||z[G(0x1a3)][ca(0x293)],F=F||G(0x2d6);var H,I,J=z[G(0x21e)];z['includeTime']&&(J+='['+('0'+(H=new Date())[ca(0x207)]())[G(0x159)](-0x2)+':'+('0'+H[G(0x24b)]())[G(0x159)](-0x2)+':'+('0'+H[G(0x1e7)]())[G(0x159)](-0x2)+'.'+('00'+H[G(0x18a)]())[G(0x159)](-0x3)+']\x20'),J+=C[E]+':',z[G(0x242)]<=E&&E!==z[ca(0x1da)][G(0x2af)]&&(!z[ca(0x26f)]||G(0x1ef)!=typeof document&&document[G(0x29e)]?B(D,J):(I=E===z[G(0x1a3)][ca(0x25f)]&&console['error']?console[ca(0x173)]:E===z[G(0x1a3)][G(0x19c)]&&console[G(0x1a4)]?console[G(0x1a4)]:E===z[ca(0x1da)][G(0x189)]&&console[ca(0x325)]&&null==window[ca(0x2c6)]?console['debug']:console[ca(0x259)],J='%c'+J,D[G(0x271)](0x0,0x0,J,G(0x15e)+F),I[G(0x2ac)](console,D)));}function B(D,E){const F=y;if(D instanceof Array){for(var G in D)B(D[G],E);}else F(0x18f)==typeof D?console[F(0x1d9)](E+'\x20'+D):(console[F(0x1d9)](E+'↵'),console[F(0x1d9)](D));}z[y(0x1a3)]={'SILENT':0x5,'ERROR':0x4,'WARNING':0x3,'NOTICE':0x2,'DEBUG':0x1,'ALL':0x0},z[c6(0x178)]=z[y(0x1a3)][y(0x208)],z['colorful']=!0x0,z[y(0x291)]=!0x0,z[c6(0x235)]=y(0x1bd);const C={0x4:'e',0x3:'w',0x2:'n',0x1:'d'};!(function(){const cb=c6,D=y;if(D(0x1ef)!=typeof window&&window[D(0x190)]&&window[cb(0x1a5)][cb(0x205)]){var E=/\?.*&*nrvideo-debug=(.+)/i[cb(0x1f9)](window[D(0x190)][cb(0x205)]);null!==E&&(D(0x1c1)===E[0x1]?z[cb(0x178)]=z[D(0x1a3)][D(0x204)]:z[cb(0x178)]=E[0x1]),null!==/\?.*&*nrvideo-colors=false/i[D(0x20f)](window[D(0x190)][D(0x215)])&&(z[D(0x2d4)]=!0x1);}}()),x[y(0x2b7)]=z;},0x92:(w,x)=>{const cc=a0b,y=q;Object[y(0x15c)](x,y(0x16f),{'value':!0x0}),x[y(0x2b7)]=void 0x0,x[y(0x2b7)]=class{constructor(z){this[y(0x1e2)]={};}[cc(0x297)](z,A){const cd=cc,B=y;A=Object[cd(0x1f1)](A||{},this[B(0x1e2)]);}[y(0x1a2)](z,A){this[y(0x1e2)][z]=A;}[cc(0x2dc)](z){const ce=cc;this[y(0x1e2)][ce(0x223)](z);}};},0x12e:(w,x,y)=>{const ch=a0b,z=q;Object['defineProperty'](x,z(0x16f),{'value':!0x0}),x[z(0x2b7)]=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(0x16f)]?G:{'default':G};}class F extends B[z(0x2b7)]{constructor(G){const cf=a0b,H=z;super(),this[H(0x28a)]={},this[H(0x1c6)]=null,this[H(0x1a6)]=null,this[H(0x158)]=new C['default'](),this['_trackerReadyChrono'][H(0x14a)](),this[H(0x2cb)]=D[H(0x2b7)][H(0x157)],this[cf(0x307)]=D[H(0x2b7)][cf(0x345)],G=G||{},this[H(0x1a5)](G);}[z(0x1a5)](G){const cg=a0b,H=z;G&&(G[H(0x1a6)]&&(this[cg(0x3af)]=G[H(0x1a6)]),G[H(0x28a)]&&(this[H(0x28a)]=G[H(0x28a)]),G[H(0x1c6)]&&(this[H(0x1c6)]=G[H(0x1c6)]));}[ch(0x2ec)](){const ci=ch;this[ci(0x197)]();}[z(0x2ad)](){}[z(0x226)](){}[z(0x248)](){const cj=ch,G=z;return this[G(0x227)][G(0x17b)]?0x7d0:this[G(0x1c6)]?this[cj(0x24e)]:this[G(0x1a6)]&&this[cj(0x3af)][G(0x1c6)]?this[G(0x1a6)][G(0x1c6)]:0x7530;}[z(0x286)](){const G=z;this[G(0x1a1)]=setInterval(this[G(0x2bb)][G(0x145)](this),Math[G(0x140)](this[G(0x248)](),0x7d0));}[z(0x24c)](){const ck=ch,G=z;this[ck(0x2b4)]&&clearInterval(this[G(0x1a1)]);}[z(0x2bb)](G){const H=z;this[H(0x219)](F[H(0x245)][H(0x1d0)],G);}[z(0x2b2)](G,H){const cl=ch,I=z;(G=G||{})[I(0x23f)]=this[cl(0x1d9)](),G[I(0x21b)]=this[cl(0x1b9)](),G[I(0x1e8)]=A[cl(0x17e)][I(0x232)],G[I(0x1ae)]=this[I(0x158)][I(0x167)]();for(let J in this[I(0x28a)])G[J]=this[I(0x28a)][J];return null!=document[I(0x183)]&&(G[I(0x27c)]=document[cl(0x316)]),G;}[z(0x1fa)](){const G=z;return A[G(0x2b7)][G(0x232)];}[ch(0x1d9)](){return z(0x2d0);}[z(0x219)](G,H){const I=z;this[I(0x18e)](I(0x1f8),G,this[I(0x2b2)](H));}[z(0x257)](G,H){const cm=ch,I=z;this[cm(0x2ff)](I(0x1f4),G,this[I(0x2b2)](H));}[z(0x256)](G,H){const I=z;let J=this[I(0x17c)]()?I(0x2c3):I(0x17e);this[I(0x18e)](I(0x1aa),G,this[I(0x2b2)](H,J));}['sendVideoCustomAction'](G,H){const cn=ch,I=z;this[cn(0x2ff)](I(0x21f),G,this[cn(0x1b8)](H,'customAction'));}}F[z(0x245)]={'HEARTBEAT':z(0x1d0)},x[ch(0x17e)]=F;},0x148:(w,x,y)=>{const co=a0b,z=q;Object[z(0x15c)](x,co(0x202),{'value':!0x0}),x[z(0x2b7)]=void 0x0;var A=C(y(0x1c7)),B=C(y(0x90));function C(D){return D&&D['__esModule']?D:{'default':D};}x[z(0x2b7)]=class{constructor(){const cp=co,D=z;this[D(0x267)](),this['_createdAt']=Date[cp(0x28a)](),this['_hb']=!0x0,this[D(0x1cc)]=0x0,this[D(0x216)]=0x0;}[z(0x267)](){const cq=co,D=z;this[D(0x2c6)]=null,this[D(0x187)]=0x0,this[cq(0x34e)]=!0x1,this[D(0x1ed)]=0x0,this[D(0x1d1)]=0x0,this[D(0x18c)]=0x0,this[D(0x299)]=0x0,this[D(0x1b7)]=0x0,this[D(0x1c5)]=!0x1,this[D(0x29b)]=!0x1,this[D(0x224)](),this[D(0x251)]();}[z(0x224)](){const cr=co,D=z;this[D(0x181)]=!0x1,this[cr(0x348)]=!0x1,this[D(0x22b)]=!0x1,this[D(0x1b2)]=!0x1,this[cr(0x2bf)]=!0x1,this[cr(0x1c6)]=!0x1,this[cr(0x273)]=!0x1;}['resetChronos'](){const cs=co,D=z;this[D(0x28e)]=new A[(D(0x2b7))](),this['timeSinceStarted']=new A[(D(0x2b7))](),this['timeSincePaused']=new A[(cs(0x17e))](),this[D(0x21c)]=new A[(D(0x2b7))](),this[D(0x26c)]=new A[(D(0x2b7))](),this[D(0x1da)]=new A[(D(0x2b7))](),this[D(0x20d)]=new A[(D(0x2b7))](),this[D(0x165)]=new A[(D(0x2b7))](),this[cs(0x283)]=new A[(D(0x2b7))](),this['timeSinceLastAdQuartile']=new A[(D(0x2b7))](),this[D(0x220)]=new A[(D(0x2b7))](),this[D(0x27d)]=new A[(D(0x2b7))](),this[cs(0x234)]=new A[(D(0x2b7))](),this['playtimeSinceLastEvent']=new A[(cs(0x17e))](),this[D(0x2c5)]={},this[D(0x2a0)]=new A[(D(0x2b7))](),this[D(0x191)]=new A[(D(0x2b7))]();}[z(0x17c)](){return this[z(0x17b)];}[co(0x375)](D){this[z(0x17b)]=D;}[co(0x395)](D){const E=z;this[E(0x2c5)][D]=new A[(E(0x2b7))](),this[E(0x2c5)][D][E(0x14a)]();}[z(0x1b1)](D){delete this[z(0x2c5)][D];}[z(0x1ca)](){const ct=co,D=z;if(!this[D(0x2c6)]){let E=new Date()[D(0x1ba)](),F=Math[D(0x263)]()[D(0x25a)](0x24)[D(0x162)](0x2)+Math[D(0x263)]()[ct(0x1bc)](0x24)[D(0x162)](0x2);this[D(0x2c6)]=E+'-'+F;}return this[ct(0x2ad)];}[z(0x13b)](){const D=z;return this[D(0x1ca)]()+'-'+this[D(0x187)];}[z(0x20e)](D){const cu=co,E=z;D=D||{},this[E(0x17c)]()?(this[cu(0x348)]&&(D[E(0x13d)]=this['timeSinceRequested'][E(0x167)](),D['timeSinceLastAdHeartbeat']=this[E(0x165)][E(0x167)]()),this['isStarted']&&(D[E(0x211)]=this['timeSinceStarted'][cu(0x20e)]()),this[E(0x1b2)]&&(D[E(0x152)]=this[E(0x275)][E(0x167)]()),this[cu(0x1c6)]&&(D[E(0x2de)]=this[cu(0x286)][E(0x167)]()),this[E(0x2ae)]&&(D[E(0x14f)]=this[E(0x21c)][E(0x167)]()),this[E(0x1c5)]&&(D['timeSinceAdBreakBegin']=this[E(0x1da)][E(0x167)]()),D[E(0x1d1)]=this[E(0x1d1)]):(this[cu(0x348)]&&(D[cu(0x28e)]=this[E(0x28e)][E(0x167)](),D[E(0x165)]=this[E(0x165)][E(0x167)]()),this[E(0x22b)]&&(D[E(0x144)]=this[E(0x144)][E(0x167)]()),this[E(0x1b2)]&&(D[E(0x275)]=this[E(0x275)][E(0x167)]()),this[E(0x23b)]&&(D[E(0x26c)]=this[E(0x26c)][E(0x167)]()),this[E(0x2ae)]&&(D[E(0x21c)]=this[E(0x21c)][E(0x167)]()),D[E(0x220)]=this[E(0x220)][E(0x167)](),D[E(0x18c)]=this[cu(0x33e)]),D[E(0x1ed)]=this[E(0x1ed)],this[E(0x17c)]()||(this[E(0x1c9)][E(0x25d)]>0x0?D[cu(0x16c)]=this[E(0x1c9)][cu(0x20e)]():D[cu(0x16c)]=0x0,this[E(0x182)]?this[E(0x1c9)][E(0x14a)]():this[E(0x1c9)][E(0x267)](),this[cu(0x1f2)]+=D[E(0x1c9)],D[E(0x299)]=this[E(0x299)]);for(const [F,G]of Object[E(0x1e9)](this[E(0x2c5)]))D[F]=G[E(0x167)]();return D;}[z(0x2ca)](D){const E=z;let F='';return F=D?E(0x2cd):this[E(0x2ae)]?E(0x29c):this[E(0x1b2)]?E(0x25e):E(0x1ee),B[E(0x2b7)][E(0x2cc)](E(0x184)+F),F;}[z(0x174)](){this[z(0x187)]++;}[z(0x186)](){const cv=co;return!this[z(0x181)]&&(this[cv(0x21c)]=!0x0,!0x0);}[z(0x196)](){const cw=co,D=z;return!this[D(0x250)]&&(this[D(0x250)]=!0x0,this[D(0x220)][cw(0x37e)](),this[cw(0x28e)][D(0x14a)](),!0x0);}[z(0x24a)](){const cx=co,D=z;return!(!this[D(0x250)]||this[D(0x22b)]||(this['isAd']()?this[D(0x1d1)]++:this['numberOfVideos']++,this[D(0x22b)]=!0x0,this[cx(0x273)]=!0x0,this[cx(0x28d)][D(0x14a)](),this[D(0x1c9)][cx(0x303)](),0x0));}[co(0x1b2)](){const cy=co,D=z;return!!this[D(0x250)]&&(this[D(0x1ed)]=0x0,this[cy(0x21d)](),this[D(0x28e)][D(0x14e)](),this[D(0x144)][cy(0x20f)](),this[D(0x1c9)][D(0x14e)](),!0x0);}[z(0x293)](){const cz=co,D=z;return!(!this[D(0x22b)]||this[D(0x1b2)]||(this[D(0x1b2)]=!0x0,this[D(0x182)]=!0x1,this[D(0x275)]['start'](),this[cz(0x16c)][D(0x14e)](),this[cz(0x190)][cz(0x37e)](),this[D(0x23b)]&&(this[D(0x216)]+=this[D(0x191)][D(0x167)]()),this[D(0x2a0)][D(0x14a)](),0x0));}[z(0x1d8)](){const cA=co,D=z;return!(!this[D(0x22b)]||!this[D(0x1b2)]||(this[D(0x1b2)]=!0x1,this[D(0x182)]=!0x0,this[D(0x275)][cA(0x20f)](),this[D(0x27d)][D(0x14a)](),this[D(0x298)]?(this[D(0x1cc)]=this[D(0x2a0)][D(0x167)](),this[cA(0x17a)]=!0x1):(this[D(0x23b)]&&this[D(0x191)][D(0x14a)](),this[D(0x1cc)]+=this[D(0x2a0)][D(0x167)]()),0x0));}[z(0x1f5)](){const D=z;return!(!this[D(0x250)]||this[D(0x23b)]||(this[D(0x23b)]=!0x0,this[D(0x182)]=!0x1,this[D(0x26c)][D(0x14a)](),this[D(0x191)][D(0x14a)](),0x0));}[co(0x2a3)](){const cB=co,D=z;return!(!this[D(0x250)]||!this[D(0x23b)]||(this[D(0x23b)]=!0x1,this[D(0x182)]=!0x0,this[D(0x26c)][cB(0x20f)](),this[D(0x298)]?(this[D(0x216)]=this[D(0x191)][D(0x167)](),this[D(0x298)]=!0x1):this[cB(0x2f5)]+=this['bufferElapsedTime'][D(0x167)](),0x0));}[co(0x195)](){const cC=co,D=z;return!(!this[D(0x22b)]||this[D(0x2ae)]||(this[cC(0x2bf)]=!0x0,this[D(0x182)]=!0x1,this[D(0x21c)][D(0x14a)](),this[D(0x2c1)]['reset'](),0x0));}[z(0x2a5)](){const D=z;return!(!this[D(0x22b)]||!this[D(0x2ae)]||(this[D(0x2ae)]=!0x1,this[D(0x182)]=!0x0,this[D(0x21c)][D(0x14e)](),this[D(0x2c1)][D(0x14a)](),0x0));}[z(0x2d8)](){const cD=co;return!this[z(0x1c5)]&&(this[cD(0x218)]=!0x0,this[cD(0x39f)][cD(0x303)](),!0x0);}[co(0x220)](){const D=z;return!!this[D(0x1c5)]&&(this[D(0x250)]=!0x1,this[D(0x1c5)]=!0x1,this[D(0x1b7)]=this[D(0x1da)][D(0x167)](),this[D(0x1da)][D(0x14e)](),!0x0);}[z(0x1d4)](){const D=z;this[D(0x20d)][D(0x14a)]();}[z(0x16d)](){this[z(0x165)]['start']();}[z(0x1eb)](){const D=z;this[D(0x234)][D(0x14a)]();}[co(0x31d)](){const D=z;this[D(0x143)][D(0x14a)]();}[z(0x249)](){const cE=co,D=z;this[cE(0x1ae)]=!0x0,this[D(0x1ed)]++;}[z(0x153)](){const D=z;this[D(0x220)][D(0x14a)]();}};},0x14a:w=>{const cF=a0b,x=q;w[cF(0x23f)]=JSON[x(0x28f)](x(0x297));},0x18f:(w,x,y)=>{const cG=a0b,z=q;Object[z(0x15c)](x,z(0x16f),{'value':!0x0}),x[z(0x2b7)]=void 0x0;var A=C(y(0x90)),B=C(y(0x92));function C(I){return I&&I[z(0x16f)]?I:{'default':I};}class D{static[cG(0x171)](I){const cH=cG,J=z;I['on']&&I[J(0x18e)]?(F[cH(0x200)](I),I['on']('*',H),J(0x29f)==typeof I[J(0x253)]&&I[J(0x253)]()):A[J(0x2b7)][J(0x2a2)](J(0x2aa),I);}static[z(0x225)](I){const J=z;I[J(0x23c)]('*',H),I[J(0x1b0)]();let K=F[J(0x17d)](I);-0x1!==K&&F[J(0x271)](K,0x1);}static[z(0x25f)](){return F;}static[cG(0x39d)](){return E;}static[z(0x269)](I){E=I;}static[cG(0x297)](I,J,K){const cI=cG,L=z;null!=D[L(0x1ec)]()&&D[L(0x1ec)]()instanceof B[L(0x2b7)]?D[L(0x1ec)]()[L(0x246)](I,J,K):L(0x1ef)!=typeof newrelic&&newrelic[cI(0x2d9)]?(void 0x0!==K&&(K[L(0x1e4)]=window[L(0x13f)][cI(0x28a)]()/0x3e8),newrelic[L(0x17f)](I,{'actionName':J,...K})):G||(A[L(0x2b7)][L(0x2a2)]('newrelic.recordCustomEvent()\x20is\x20not\x20available.',L(0x1bb)),G=!0x0);}static[z(0x2a4)](I){const J=z;D[J(0x246)](J(0x208),I);}}let E,F=[],G=!0x1;function H(I){const 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(0x15b)]);A[J(0x2b7)][J(0x242)]<=A[J(0x2b7)][J(0x1a3)][J(0x189)]?A[J(0x2b7)][J(0x2d7)]('Sent',I[J(0x1af)],K):A[J(0x2b7)][J(0x2d7)](J(0x1b4),I[J(0x1af)]),D[J(0x246)](I[J(0x1ac)],I[J(0x1af)],K);}x[cG(0x17e)]=D;},0x196:(w,x,y)=>{const cP=a0b,z=q;Object[z(0x15c)](x,z(0x16f),{'value':!0x0}),x[z(0x2b7)]=void 0x0;var A=C(y(0x92)),B=C(y(0x90));function C(E){return E&&E[z(0x16f)]?E:{'default':E};}class D extends A[z(0x2b7)]{constructor(E,F){const G=z;super(),this[G(0x22d)]=E,this[G(0x284)]=F,this[G(0x26d)]='',this[G(0x20a)]=[],this[G(0x13e)]=!0x1,this['_lastTimestamp']=0x0,setInterval(()=>{const H=G;this[H(0x2a6)](D[H(0x230)][H(0x236)]);},0x2710);}[z(0x246)](E,F,G){const cJ=a0b,H=z;if(this['_eventType']=E,super[H(0x246)](F,G),this[H(0x20a)][H(0x238)]<0x1f4){(G=this[H(0x1e1)](G))[H(0x1ac)]=this[H(0x26d)],G[H(0x2d3)]=F;let I=Date[H(0x262)]();I>this[H(0x2ba)]?(G[H(0x156)]=I,this[H(0x2ba)]=I):(this[H(0x2ba)]++,G[H(0x156)]=this[cJ(0x1fa)]),this[H(0x20a)][H(0x2b9)](G);}}[z(0x1e1)](E){const cK=a0b,F=z;E[F(0x1d2)]=window[cK(0x1a5)][F(0x2a3)],E[F(0x206)]=window[cK(0x1a5)][cK(0x386)]+window[cK(0x1a5)][F(0x26b)],E[F(0x19e)]=document[F(0x1c4)];let G=F(0x1a7);-0x1!=navigator[F(0x1ce)][cK(0x184)](F(0x154))?G=cK(0x3ac):-0x1!=navigator[F(0x1ce)][F(0x17d)](F(0x282))?G=F(0x282):-0x1!=navigator[F(0x1ce)][F(0x17d)](cK(0x1e7))?G=cK(0x1e7):navigator[F(0x1ce)][cK(0x16e)](/iPhone|iPad|iPod/i)?G=F(0x210):-0x1!=navigator[F(0x1ce)][F(0x17d)](F(0x233))?G=F(0x233):-0x1!=navigator['userAgent'][F(0x17d)](F(0x2c9))&&(G=F(0x2a7)),E[F(0x1cb)]=G;let H=F(0x1a7);if(-0x1!=navigator[F(0x1ce)][F(0x17d)](F(0x285))?H=F(0x285):-0x1!=navigator[cK(0x21a)][F(0x17d)](F(0x20b))?H=cK(0x369):-0x1!=navigator['userAgent'][F(0x17d)](F(0x2bf))?H='IE':-0x1!=navigator[F(0x1ce)][F(0x17d)](F(0x1a8))?H=F(0x192):-0x1!=navigator[cK(0x21a)][F(0x17d)](F(0x2bc))?H=cK(0x311):-0x1!=navigator[cK(0x21a)][F(0x17d)](F(0x222))&&(H=F(0x222)),E[F(0x1a0)]=H,!E[F(0x2a9)]){let I=F(0x1a7);I=navigator[cK(0x21a)][F(0x247)](/Tablet|iPad/i)?F(0x1c3):navigator[F(0x1ce)][cK(0x16e)](/Mobile|Windows Phone|Lumia|Android|webOS|iPhone|iPod|Blackberry|PlayBook|BB10|Opera Mini|\bCrMo\/|Opera Mobi/i)?F(0x171):null!=window[F(0x28d)]?F(0x2da):F(0x283),E[F(0x2a9)]=I;}return E;}[z(0x2a6)](E){const cL=a0b,F=z;E==D[F(0x230)][F(0x236)]&&this[F(0x13e)]?B[cL(0x17e)][F(0x2cc)](F(0x16a)):(this[F(0x13e)]=!0x0,this[F(0x20a)][F(0x238)]>0x0?(B[F(0x2b7)][F(0x2cc)](cL(0x239),this[F(0x20a)]),this[F(0x177)](this[cL(0x399)][F(0x280)]())):this[F(0x13e)]=!0x1);}[z(0x177)](E){const cM=a0b,F=z,G={'method':F(0x13c),'headers':{'Content-Type':F(0x231),'X-Insert-Key':this[F(0x284)]},'body':JSON[F(0x169)](E)},H=F(0x19f)+this[F(0x22d)]+cM(0x2eb);fetch(H,G)[F(0x18b)](I=>I[cM(0x2ee)]())['then'](I=>{const cN=cM;this[cN(0x1fb)](I);})[cM(0x1e6)](I=>{const cO=cM,J=F;B['default'][cO(0x173)](J(0x295),I,E),this[J(0x20a)][cO(0x200)](E),this[J(0x13e)]=!0x1;});}[z(0x2e1)](E){const F=z;this[F(0x2a6)](D[F(0x230)][F(0x19d)]);}}D[cP(0x323)]={'TIMER':z(0x236),'FETCH':z(0x19d)},x[z(0x2b7)]=D;},0x1c7:(w,x)=>{const cS=a0b,y=q;Object[y(0x15c)](x,y(0x16f),{'value':!0x0}),x[y(0x2b7)]=void 0x0;class z{constructor(){this[y(0x267)]();}[y(0x267)](){const cQ=a0b;this[cQ(0x20a)]=0x0,this['stopTime']=0x0,this[cQ(0x2a1)]=0x0;}['getDeltaTime'](){const cR=a0b,A=y;return this[cR(0x20a)]?this[A(0x243)]+(new Date()[A(0x1ba)]()-this[cR(0x20a)]):null;}[cS(0x303)](){const A=y;this[A(0x25d)]=new Date()[A(0x1ba)](),this[A(0x1c2)]=0x0;}[cS(0x20f)](){const A=y;return this[A(0x1c2)]=new Date()['getTime'](),this[A(0x167)]();}[y(0x235)](){const cT=cS,A=y;var B=new z();return B[A(0x25d)]=this[A(0x25d)],B[cT(0x2b1)]=this[A(0x1c2)],B[A(0x243)]=this[A(0x243)],B;}}x[y(0x2b7)]=z;},0x238:(w,x)=>{const cV=a0b,y=q;Object[y(0x15c)](x,y(0x16f),{'value':!0x0}),x[y(0x2b7)]=void 0x0,x[y(0x2b7)]=class{['on'](z,A){const cU=a0b,B=y;if(this['_listeners']=this['_listeners']||{},B(0x29f)==typeof A)return this[B(0x1ff)][z]=this[cU(0x2b5)][z]||[],this[cU(0x2b5)][z][B(0x2b9)](A),this;}[cV(0x3b8)](z,A){const cW=cV,B=y;if(this[B(0x1ff)]=this[cW(0x2b5)]||{},this[B(0x1ff)][z]){var C=this[B(0x1ff)][z][B(0x17d)](A);-0x1!==C&&this[cW(0x2b5)][z][cW(0x21f)](C,0x1);}return this;}['emit'](z,A,B){const cX=cV,C=y;return this[cX(0x2b5)]=this[C(0x1ff)]||{},B=B||{},Array[C(0x16e)](this[C(0x1ff)][A])&&this[C(0x1ff)][A]['forEach'](D=>{D[C(0x2e0)](this,{'eventType':z,'type':A,'data':B,'target':this});}),Array[C(0x16e)](this[C(0x1ff)]['*'])&&this[C(0x1ff)]['*']['forEach'](D=>{D['call'](this,{'eventType':z,'type':A,'data':B,'target':this});}),this;}};},0x319:(w,x,y)=>{const cY=a0b,z=q;Object[z(0x15c)](x,cY(0x202),{'value':!0x0}),x[cY(0x17e)]=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(0x16f)]?H:{'default':H};}class F extends B[z(0x2b7)]{constructor(H,I){const cZ=cY,J=z;super(),this[J(0x227)]=new C[(J(0x2b7))](),this[J(0x2ab)]=null,this[J(0x2b6)]=null,this[J(0x1de)]=null,I=I||{},this[J(0x1a5)](I),H&&this[cZ(0x23a)](H,I[cZ(0x201)]),A[J(0x2b7)][J(0x2d7)](J(0x294)+this[J(0x2ce)]()+'\x20v'+this[J(0x1fa)]()+J(0x202));}[z(0x178)](H){const d0=cY;this[d0(0x186)]=H;}[z(0x1a5)](H){const d1=cY,I=z;H&&(H[d1(0x39a)]&&this[d1(0x3b1)](H[I(0x2ab)]),I(0x22e)==typeof H[d1(0x37d)]&&this[d1(0x375)](H[I(0x17c)]),B[I(0x2b7)][I(0x212)][I(0x1a5)][I(0x2ac)](this,arguments));}[z(0x1e0)](H,I){const d2=cY,J=z;(this[J(0x27e)]||this[J(0x260)])&&this[d2(0x2ec)](),J(0x1ef)!=typeof document&&document[J(0x141)]&&(d2(0x2c0)==typeof H&&(H=document[J(0x141)](H)),J(0x18f)==typeof I&&(I=document[J(0x141)](I))),I=I||H,this[d2(0x2a4)]=H,this[J(0x260)]=I,this[J(0x2ad)]();}[z(0x17c)](){const H=z;return this[H(0x227)][H(0x17c)]();}['setIsAd'](H){const I=z;this[I(0x227)][I(0x201)](H);}[cY(0x3b1)](H){const d3=cY,I=z;this[I(0x14b)](),H&&(this[I(0x2ab)]=H,this[d3(0x39a)][I(0x201)](!0x0),this[d3(0x39a)][I(0x1a6)]=this,this[d3(0x39a)]['on']('*',G[I(0x145)](this)));}[z(0x14b)](){const H=z;this[H(0x2ab)]&&(this[H(0x2ab)][H(0x23c)]('*',G),this[H(0x2ab)][H(0x1b0)]());}[z(0x1b0)](){const d4=cY,H=z;this[d4(0x237)](),this[d4(0x281)](),this[H(0x226)](),this[H(0x27e)]=null,this[H(0x260)]=null;}[cY(0x3ae)](){}[z(0x226)](){}[cY(0x1d3)](){const H=z;return this[H(0x1a6)]?this[H(0x1a6)][H(0x13b)]():this[H(0x227)][H(0x13b)]();}[z(0x1ca)](){const d5=cY,H=z;return this[H(0x1a6)]?this[H(0x1a6)][d5(0x2de)]():this[H(0x227)][H(0x1ca)]();}[z(0x270)](){return null;}[z(0x200)](){return null;}[z(0x217)](){return null;}['getBitrate'](){return null;}[cY(0x304)](){const d6=cY,H=z;if(this[d6(0x201)]&&this[H(0x260)][H(0x2b8)]){let I;if(this[H(0x149)]){I=this[H(0x260)][H(0x2b8)];let J=I-this['_lastWebkitBitrate'],K=this[H(0x248)]()/0x3e8;I=Math[H(0x1c0)](J/K*0x8);}return this[H(0x149)]=this[d6(0x201)]['webkitVideoDecodedByteCount'],I||null;}}[cY(0x256)](){return null;}[z(0x26f)](){return null;}[z(0x1dd)](H){const d7=cY,I=z;let J,K=this[I(0x26f)]();return this[I(0x17c)]()?(J=this[I(0x2df)],H&&(this[d7(0x32c)]=K)):(J=this[I(0x2cf)],H&&(this[I(0x2cf)]=K)),K&&J?K>J?'up':K<J?d7(0x1a0):null:null;}[z(0x1f3)](){const d8=cY,H=z;return this[d8(0x201)]?this[H(0x260)][H(0x228)]:null;}[z(0x180)](){const d9=cY,H=z;return this[H(0x260)]?this[d9(0x201)][H(0x173)]:null;}[z(0x277)](){const H=z;return this[H(0x260)]?this[H(0x260)][H(0x296)]:null;}[cY(0x2f1)](){const H=z;return this[H(0x260)]?this[H(0x260)][H(0x205)]:null;}[z(0x259)](){return null;}[z(0x229)](){const da=cY,H=z;return this[H(0x260)]?this[da(0x201)][H(0x1cf)]:null;}[z(0x1ad)](){const db=cY,H=z;return this[H(0x260)]?this[H(0x260)][db(0x32b)]:null;}[z(0x1d5)](){const dc=cY,H=z;return this[dc(0x201)]?this[H(0x260)][H(0x151)]:null;}[z(0x29d)](){return null;}[z(0x188)](){return null;}[z(0x198)](){return this[z(0x2ce)]();}[cY(0x214)](){const H=z;return D[H(0x2b7)][H(0x232)];}[z(0x21d)](){return null;}[cY(0x261)](){const H=z;return this[H(0x260)]?this[H(0x260)][H(0x142)]:null;}[z(0x266)](){const dd=cY,H=z;return this[dd(0x201)]?this[H(0x260)][dd(0x2ef)]:null;}[cY(0x3a5)](){return null;}[z(0x2c0)](){const H=z;return this[H(0x1a6)]?this[H(0x1a6)][H(0x227)][H(0x22b)]?H(0x199):H(0x197):null;}[z(0x25b)](){return null;}[z(0x288)](){return null;}['getInstrumentationProvider'](){return null;}[z(0x1c8)](){return null;}[z(0x172)](){return null;}[z(0x2b2)](H,I){const de=cY,J=z;if(void 0x0===(H=B[J(0x2b7)][J(0x212)][J(0x2b2)][J(0x2ac)](this,arguments))[J(0x17c)]&&(H[J(0x17c)]=this[J(0x17c)]()),H[J(0x1dc)]=this[J(0x1ca)](),H[J(0x272)]=this[J(0x13b)](),H[J(0x13a)]=this[J(0x198)](),H[J(0x24e)]=this[J(0x195)](),H[de(0x2a7)]=this[J(0x1f0)](),H[J(0x2bd)]=this[J(0x1c8)](),H[J(0x155)]=this[J(0x172)](),H[J(0x19a)]=this[de(0x186)],H['src']=J(0x1fd),J(0x1be)===I)return H;try{H[J(0x1d2)]=window['location'][J(0x2a3)];}catch(K){}this[J(0x17c)]()?(H[J(0x2dd)]=this['getVideoId'](),H[J(0x1e6)]=this[J(0x200)](),H[de(0x23b)]=this[J(0x229)](),H[J(0x292)]=this[J(0x188)](),H[J(0x254)]=this['getBitrate']()||this['getWebkitBitrate']()||this[J(0x26f)](),H[J(0x14d)]=this[J(0x2a8)](),H[de(0x1d4)]=this[J(0x26f)](),H[J(0x15a)]=this[J(0x1f3)](),H[de(0x1d6)]=this[J(0x180)](),H[J(0x1bf)]=this['getDuration'](),H[J(0x2a1)]=this['getPlayhead'](),H[J(0x1e3)]=this[J(0x259)](),H[J(0x279)]=this[J(0x1d5)](),H[J(0x1b6)]=this[J(0x21d)](),H[de(0x1b6)]=this[J(0x2c0)](),H[de(0x334)]=this[de(0x20c)](),H[J(0x2d5)]=this[J(0x25b)]()):(H[de(0x2e5)]=this[J(0x270)](),H[J(0x19b)]=this[J(0x200)](),H[J(0x1f9)]=this[J(0x229)](),H[J(0x2c4)]=this[J(0x188)](),H[J(0x147)]=this[J(0x1b9)](),H[J(0x290)]=this[J(0x217)](),H[J(0x17a)]=this[J(0x1b5)]()||this[J(0x276)]()||this['getRenditionBitrate'](),H[J(0x2c8)]=this[J(0x2a8)](),H[J(0x239)]=this[J(0x26f)](),H[de(0x2e8)]=this[de(0x37a)](),H[J(0x1f7)]=this[J(0x180)](),H[J(0x166)]=this[J(0x277)](),H[J(0x278)]=this[J(0x259)](),H[J(0x237)]=this[J(0x1ad)](),H[J(0x209)]=this[J(0x29d)](),H[J(0x240)]=this[J(0x1d5)](),H[J(0x2dc)]=this[J(0x1fc)](),H[de(0x1e0)]=this['getPreload'](),H[J(0x164)]=this[de(0x3a7)](),null!=this[de(0x39a)]&&this['adsTracker'][de(0x33b)][de(0x396)]>0x0&&(H[J(0x1b7)]=this[J(0x2ab)][J(0x227)]['totalAdPlaytime'])),this[J(0x227)][J(0x20e)](H);for(let L in this[J(0x28a)])H[L]=this[J(0x28a)][L];return H;}[z(0x1f1)](H,I,J){const K=z;J=J||{},this['sendVideoCustomAction'](H,J),this[K(0x227)][K(0x28c)](I);}['sendPlayerReady'](H){const df=cY,I=z;this[df(0x33b)]['goPlayerReady']()&&(H=H||{},this[df(0x328)](F['Events'][I(0x24f)],H));}[z(0x1c7)](H){const dg=cY,I=z;if(this[I(0x227)][I(0x196)]()){let J;this[I(0x17c)]()?(J=F[I(0x245)][dg(0x384)],this[I(0x257)](J,H)):(J=F[I(0x245)][I(0x255)],this[I(0x219)](J,H));}}[z(0x168)](H){const dh=cY,I=z;if(this[I(0x227)][I(0x24a)]()){let J;this[I(0x17c)]()?(J=F['Events'][I(0x22f)],this[I(0x1a6)]&&(this[I(0x1a6)][I(0x227)][I(0x182)]=!0x1),this[dh(0x309)](J,H)):(J=F[I(0x245)][I(0x23d)],this[I(0x219)](J,H)),this[I(0x286)](),this[I(0x227)][I(0x16d)]();}}[z(0x25c)](H){const di=cY,I=z;if(this[di(0x33b)]['goEnd']()){let J;H=H||{},this[I(0x17c)]()?(J=F[di(0x222)][I(0x218)],H[di(0x268)]=this[I(0x227)][I(0x28e)][I(0x167)](),H[I(0x211)]=this[I(0x227)][I(0x144)][I(0x167)](),this[I(0x1a6)]&&(this['parentTracker'][I(0x227)][di(0x273)]=!0x0)):(J=F['Events'][I(0x27a)],H[I(0x28e)]=this[di(0x33b)][I(0x28e)][di(0x20e)](),H[I(0x144)]=this[di(0x33b)][I(0x144)][I(0x167)]()),this[di(0x237)](),this[I(0x17c)]()?this[I(0x257)](J,H):this[I(0x219)](J,H),this[I(0x1a6)]&&this[I(0x17c)]()&&this[di(0x3af)][I(0x227)][I(0x153)](),this[I(0x227)][I(0x174)](),this[I(0x227)][I(0x299)]=0x0;}}['sendPause'](H){const dj=cY,I=z;if(this[dj(0x33b)][I(0x293)]()){let J=this[I(0x17c)]()?F['Events'][dj(0x282)]:F[I(0x245)][dj(0x367)];this[I(0x17c)]()?this[I(0x257)](J,H):this[dj(0x328)](J,H);}}[cY(0x2e1)](H){const dk=cY,I=z;if(this[I(0x227)]['goResume']()){let J;H=H||{},this['isAd']()?(J=F[I(0x245)][I(0x289)],H[dk(0x29d)]=this[I(0x227)][I(0x275)][I(0x167)]()):(J=F[I(0x245)][I(0x2be)],H[dk(0x2fa)]=this[I(0x227)][I(0x275)][I(0x167)]()),this[I(0x17c)]()?this[I(0x257)](J,H):this[dk(0x328)](J,H);}}['sendBufferStart'](H){const dl=cY,I=z;if(this[I(0x227)][I(0x1f5)]()){let J;H=H||{},J=this[I(0x17c)]()?F[I(0x245)][I(0x1ab)]:F[I(0x245)][I(0x1d7)],H=this[I(0x1a9)](H),this[I(0x2b6)]=H[dl(0x26d)],this[I(0x17c)]()?this[I(0x257)](J,H):this[I(0x219)](J,H);}}[z(0x223)](H){const dm=cY,I=z;if(this[I(0x227)][I(0x1bc)]()){let J;H=H||{},this[dm(0x37d)]()?(J=F[I(0x245)][I(0x268)],H[I(0x2de)]=this[I(0x227)][I(0x26c)][dm(0x20e)]()):(J=F[I(0x245)][I(0x1d3)],H[I(0x26c)]=this[dm(0x33b)][I(0x26c)][I(0x167)]()),H=this[I(0x1a9)](H),null!=this[I(0x2b6)]&&(H[I(0x244)]=this['_lastBufferType']),this[I(0x17c)]()?this[dm(0x309)](J,H):this[I(0x219)](J,H),this[I(0x227)][I(0x29b)]=!0x0;}}[z(0x1a9)](H){const dn=cY,I=z;return null==H[I(0x144)]||H[I(0x144)]<0x64?H[I(0x22a)]=!this[I(0x227)][dn(0x2c8)]:H[dn(0x29f)]=!0x1,H['bufferType']=this[I(0x227)][I(0x2ca)](H[I(0x22a)]),H[I(0x27d)]=this[I(0x227)][I(0x27d)][dn(0x20e)](),H[I(0x2c1)]=this[I(0x227)][I(0x2c1)][I(0x167)](),H;}[z(0x193)](H){const dp=cY,I=z;if(this[I(0x227)][I(0x175)]()){let J;J=this[I(0x17c)]()?F[dp(0x222)][I(0x27f)]:F[I(0x245)][I(0x1b3)],this[I(0x17c)]()?this[I(0x257)](J,H):this[I(0x219)](J,H);}}[z(0x150)](H){const dq=cY,I=z;if(this[I(0x227)][I(0x2a5)]()){let J;H=H||{},this['isAd']()?(J=F[I(0x245)][I(0x1df)],H[I(0x14f)]=this[I(0x227)][dq(0x339)][I(0x167)]()):(J=F[I(0x245)][dq(0x30c)],H[dq(0x339)]=this[I(0x227)][dq(0x339)][I(0x167)]()),this[I(0x17c)]()?this[I(0x257)](J,H):this[I(0x219)](J,H);}}[z(0x1ea)](H){const I=z;(H=H||{})[I(0x227)]||A[I(0x2b7)]['warn'](I(0x146)),this[I(0x219)](F[I(0x245)][I(0x160)],H),this[I(0x227)][I(0x1d4)]();}[z(0x2a4)](H){const I=z;(H=H||{})[I(0x17c)]=this[I(0x17c)](),this[I(0x227)][I(0x249)]();let J=this[I(0x17c)]()?F[I(0x245)]['AD_ERROR']:F[I(0x245)][I(0x163)];this[I(0x256)](J,H);}[z(0x1cd)](H){const dr=cY,I=z;let J;(H=H||{})['timeSinceLastRenditionChange']=this[I(0x227)][I(0x234)]['getDeltaTime'](),H[I(0x207)]=this[dr(0x1c2)](!0x0),J=this[I(0x17c)]()?F[I(0x245)][I(0x23a)]:F[dr(0x222)][I(0x261)],this[dr(0x37d)]()?this[I(0x257)](J,H):this[dr(0x328)](J,H),this[I(0x227)][I(0x1eb)]();}[z(0x2bb)](H){const ds=cY,I=z;if(this[I(0x227)][I(0x250)]){let J,K=this[ds(0x1a6)]();this['state'][I(0x298)]=!0x0,K=this[I(0x2b3)](K),this[I(0x17c)]()?(J=F['Events'][I(0x16b)],I(0x2d9)===this[ds(0x2aa)]()?this[I(0x257)](J,H):this[I(0x257)](J,{'elapsedTime':K,...H})):(J=F[I(0x245)][I(0x2b5)],this[I(0x219)](J,{'elapsedTime':K,...H})),this[I(0x227)][I(0x16d)]();}}[z(0x2b3)](H){const dt=cY,I=z;return this[dt(0x33b)][I(0x1cc)]&&(H-=this[I(0x227)][I(0x1cc)],this[I(0x227)][dt(0x192)]=0x0),this[I(0x227)][dt(0x1ef)]&&((H-=this[I(0x227)][I(0x2a0)][I(0x167)]())<0xa&&(H=0x0),this[dt(0x33b)][I(0x2a0)][I(0x14a)]()),this['state'][I(0x216)]?(H-=this[I(0x227)][I(0x216)],this[dt(0x33b)][I(0x216)]=0x0):this[I(0x227)][I(0x23b)]&&((H-=this[I(0x227)][I(0x191)][dt(0x20e)]())<0x5&&(H=0x0),this[I(0x227)][I(0x191)][I(0x14a)]()),Math[I(0x140)](0x0,H);}[z(0x1fb)](H){const du=cY,I=z;this['isAd']()&&this[I(0x227)][I(0x2d8)]()&&(this[du(0x33b)][I(0x1b7)]=0x0,this[I(0x1a6)]&&(this[I(0x1a6)][I(0x227)][I(0x182)]=!0x1),this[I(0x257)](F[I(0x245)][I(0x287)],H));}[z(0x18d)](H){const dv=cY,I=z;this[dv(0x37d)]()&&this[I(0x227)][dv(0x220)]()&&((H=H||{})[I(0x170)]=this[dv(0x33b)][I(0x1da)][dv(0x20e)](),this[dv(0x309)](F[dv(0x222)][I(0x1f6)],H),this[I(0x1a6)]&&(this[I(0x1a6)][I(0x227)][dv(0x273)]=!0x0),this[I(0x24c)](),this[I(0x1a6)]&&this[dv(0x37d)]()&&this[I(0x1a6)][I(0x227)][I(0x153)]());}[z(0x20c)](H){const dw=cY,I=z;this[I(0x17c)]()&&((H=H||{})[I(0x2d1)]||A[I(0x2b7)][I(0x1a4)](I(0x274)),H[I(0x143)]=this[I(0x227)][I(0x143)][I(0x167)](),this[I(0x257)](F[I(0x245)]['AD_QUARTILE'],H),this[dw(0x33b)][dw(0x31d)]());}[z(0x28b)](H){const dx=cY,I=z;this[I(0x17c)]()&&((H=H||{})['url']||A[I(0x2b7)][I(0x1a4)](dx(0x181)),this[I(0x257)](F[dx(0x222)][I(0x2b4)],H));}}function G(H){const dy=cY,I=z;this[I(0x257)](H[I(0x1af)],H[dy(0x2bd)]);}F[z(0x245)]={'PLAYER_READY':z(0x24f),'DOWNLOAD':z(0x160),'ERROR':z(0x208),'CONTENT_REQUEST':z(0x255),'CONTENT_START':z(0x23d),'CONTENT_END':z(0x27a),'CONTENT_PAUSE':z(0x15f),'CONTENT_RESUME':cY(0x25b),'CONTENT_SEEK_START':z(0x1b3),'CONTENT_SEEK_END':z(0x194),'CONTENT_BUFFER_START':cY(0x37f),'CONTENT_BUFFER_END':z(0x1d3),'CONTENT_HEARTBEAT':z(0x2b5),'CONTENT_RENDITION_CHANGE':z(0x261),'CONTENT_ERROR':'CONTENT_ERROR','AD_REQUEST':z(0x1d6),'AD_START':z(0x22f),'AD_END':z(0x218),'AD_PAUSE':z(0x1f2),'AD_RESUME':z(0x289),'AD_SEEK_START':z(0x27f),'AD_SEEK_END':z(0x1df),'AD_BUFFER_START':z(0x1ab),'AD_BUFFER_END':z(0x268),'AD_HEARTBEAT':z(0x16b),'AD_RENDITION_CHANGE':z(0x23a),'AD_ERROR':z(0x185),'AD_BREAK_START':z(0x287),'AD_BREAK_END':z(0x1f6),'AD_QUARTILE':cY(0x1a8),'AD_CLICK':z(0x2b4)},x[z(0x2b7)]=F;}},j={};function k(w){const dz=a0b,x=q;var y=j[w];if(void 0x0!==y)return y[dz(0x23f)];var z=j[w]={'exports':{}};return g[w](z,z[x(0x26a)],k),z[x(0x26a)];}var m={};function p(){const dA=a0b,w=[dA(0x323),'application/json',dA(0x1cf),dA(0x211),dA(0x283),'clone','TIMER',dA(0x206),'length',dA(0x22b),dA(0x31e),dA(0x1c6),dA(0x3b8),'CONTENT_START',dA(0x2c9),dA(0x296),'contentIsMuted',dA(0x30a),dA(0x178),dA(0x2a1),dA(0x26d),dA(0x222),dA(0x297),dA(0x16e),dA(0x1a6),dA(0x36b),dA(0x1f8),dA(0x27c),dA(0x237),dA(0x21e),dA(0x233),dA(0x371),'isRequested','resetChronos',dA(0x213),dA(0x38d),dA(0x2c7),'CONTENT_REQUEST','sendVideoErrorAction',dA(0x309),'8849510zqhbAj',dA(0x1ea),dA(0x1bc),dA(0x1a2),'sendEnd',dA(0x20a),dA(0x29e),dA(0x32f),dA(0x201),'CONTENT_RENDITION_CHANGE',dA(0x28a),dA(0x24d),dA(0x2bb),'1TzXank','getPreload',dA(0x37e),dA(0x1bf),dA(0x368),dA(0x23f),dA(0x1d2),dA(0x286),dA(0x3b6),dA(0x35e),dA(0x23e),dA(0x1f3),'splice','viewId',dA(0x271),dA(0x3a1),dA(0x2fa),dA(0x304),'getDuration',dA(0x388),dA(0x285),dA(0x38c),dA(0x2da),dA(0x354),dA(0x190),dA(0x2a4),dA(0x20b),dA(0x356),dA(0x217),dA(0x1df),dA(0x228),dA(0x280),dA(0x21b),dA(0x279),dA(0x2d1),dA(0x20c),'AD_RESUME',dA(0x2cd),dA(0x24c),dA(0x395),dA(0x2c6),dA(0x28e),'parse',dA(0x253),'includeTime',dA(0x1cd),'goPause',dA(0x342),dA(0x1dd),dA(0x32d),dA(0x34a),'_hb',dA(0x1f2),'984600BzyKQy',dA(0x2c8),dA(0x18c),dA(0x333),dA(0x176),'function','elapsedTime',dA(0x231),dA(0x173),'href',dA(0x2d6),dA(0x36a),dA(0x27d),dA(0x1f7),dA(0x256),dA(0x355),'Tried\x20to\x20load\x20a\x20non-tracker.',dA(0x39a),dA(0x245),dA(0x3ae),dA(0x2bf),dA(0x226),dA(0x1e9),dA(0x1d5),dA(0x1b8),dA(0x1ad),'AD_CLICK',dA(0x25e),dA(0x1b1),dA(0x17e),'webkitVideoDecodedByteCount',dA(0x200),dA(0x1fa),dA(0x27f),dA(0x311),'instrumentation.name','CONTENT_RESUME',dA(0x26a),dA(0x3a8),dA(0x234),dA(0x23d),dA(0x225),dA(0x2e0),dA(0x2c4),dA(0x2ad),'post',dA(0x2b2),dA(0x37b),dA(0x317),dA(0x1a3),dA(0x325),'initial',dA(0x1d9),'_lastRendition',dA(0x28f),dA(0x2f7),dA(0x295),dA(0x1e1),dA(0x26f),dA(0x188),dA(0x38e),dA(0x25a),dA(0x34b),dA(0x24a),dA(0x34c),dA(0x241),dA(0x276),dA(0x18f),'timeSinceAdBufferBegin',dA(0x32c),dA(0x224),dA(0x1fb),dA(0x2cb),dA(0x1d3),dA(0x338),'timeSinceAdRequested',dA(0x378),dA(0x24b),dA(0x3ad),dA(0x3b7),dA(0x2a2),dA(0x215),dA(0x28d),dA(0x232),dA(0x30f),dA(0x336),dA(0x327),dA(0x39e),dA(0x303),dA(0x281),dA(0x1aa),dA(0x17d),dA(0x20f),dA(0x26c),dA(0x343),dA(0x1b0),dA(0x29d),dA(0x236),dA(0x2f9),dA(0x26b),dA(0x1e5),dA(0x322),dA(0x31f),dA(0x19a),'adRenditionHeight',dA(0x2bd),'defineProperty',dA(0x1cc),'color:\x20',dA(0x367),dA(0x344),dA(0x29a),'substring','CONTENT_ERROR',dA(0x358),dA(0x377),dA(0x266),dA(0x20e),'sendStart',dA(0x263),dA(0x18d),dA(0x284),dA(0x22e),'goHeartbeat',dA(0x2d3),dA(0x202),'timeSinceAdBreakBegin',dA(0x3a0),'getInstrumentationVersion',dA(0x24f),dA(0x1c8),dA(0x195),dA(0x2af),dA(0x1c1),dA(0x169),dA(0x27e),dA(0x2fd),dA(0x34e),dA(0x37d),dA(0x184),dA(0x244),dA(0x2d9),dA(0x1a4),dA(0x21c),dA(0x273),dA(0x316),'Buffer\x20Type\x20=\x20',dA(0x30b),dA(0x3a6),dA(0x301),dA(0x35a),'DEBUG',dA(0x2e2),dA(0x360),dA(0x33e),'sendAdBreakEnd',dA(0x2ff),dA(0x2c0),'location',dA(0x35b),dA(0x1fd),'sendSeekStart',dA(0x30c),dA(0x214),dA(0x2b8),dA(0x381),dA(0x2aa),dA(0x25c),dA(0x1a1),dA(0x2f3),dA(0x18e),'FETCH',dA(0x270),dA(0x38a),dA(0x380),dA(0x2b4),'setAttribute',dA(0x1da),dA(0x347),'setOptions',dA(0x3af),'Unknown',dA(0x3a4),dA(0x31c),dA(0x390),dA(0x29c),dA(0x326),dA(0x2c2),dA(0x324),dA(0x351),dA(0x2ec),'removeTimeSinceAttribute','isPaused','CONTENT_SEEK_START','Sent',dA(0x1d0),'adFps',dA(0x396),'buffering','getPlayhead',dA(0x391),dA(0x37c),'goBufferEnd','[nrvideo]','customAction','adDuration',dA(0x32e),dA(0x1ba),dA(0x2b1),dA(0x1f0),dA(0x1d7),'isAdBreak',dA(0x24e),dA(0x387),dA(0x1b3),'playtimeSinceLastEvent','getViewSession','userAgentOS','_acc',dA(0x16a),dA(0x21a),dA(0x332),dA(0x287),'numberOfAds',dA(0x28c),'CONTENT_BUFFER_END','goDownload','isMuted',dA(0x384),dA(0x37f),dA(0x1a9),dA(0x259),dA(0x39f),dA(0x18b),dA(0x1f6),dA(0x1c2),dA(0x186),dA(0x30d),dA(0x23a),dA(0x227),dA(0x310),dA(0x22d),dA(0x272),dA(0x1f5),dA(0x2f6),dA(0x1e4),dA(0x31a),'entries',dA(0x1c5),'goRenditionChange','getBackend',dA(0x350),dA(0x17c),'undefined',dA(0x1bd),dA(0x365),dA(0x282),'getRenditionHeight','VideoAdAction',dA(0x330),dA(0x27a),dA(0x177),dA(0x27b),dA(0x1c7),dA(0x1b9),dA(0x291),dA(0x261),dA(0x392),dA(0x2d8),dA(0x2b5),dA(0x3b5),dA(0x375),dA(0x2bc),dA(0x293),'ALL',dA(0x1c4),dA(0x183),dA(0x335),'ERROR',dA(0x2ce),'_eventBuffer',dA(0x369),dA(0x2a8),dA(0x3a9),dA(0x22a),dA(0x1f9),dA(0x3b2),dA(0x308),dA(0x2b3),'addEventListener',dA(0x247),dA(0x205),dA(0x2f5),dA(0x2cc),dA(0x2f4),'sendVideoAction',dA(0x38f),dA(0x398),dA(0x339),dA(0x3a7),'prefix',dA(0x385),'timeSinceLastAd','abort',dA(0x1ec),dA(0x393),dA(0x21d),dA(0x193),dA(0x197),dA(0x33b),dA(0x1f4),dA(0x3a3),dA(0x29f),dA(0x2d7),dA(0x373),dA(0x3b0),dA(0x1c3),dA(0x210)];return(p=function(){return w;})();}function q(w,x){const y=p();return(q=function(z,A){return y[z-=0x13a];})(w,x);}((()=>{const dB=a0b,w=q;var x=m;Object[dB(0x36d)](x,'B',{'value':!0x0}),x['A']=void 0x0;var y=K(k(0x92)),z=K(k(0x196)),B=K(k(0x18f)),C=K(k(0x33)),D=K(k(0x1c7)),E=K(k(0x90)),F=K(k(0x238)),G=K(k(0x12e)),H=K(k(0x319)),I=K(k(0x148)),J=k(0x14a);function K(M){return M&&M[q(0x16f)]?M:{'default':M};}const L={'Constants':C[w(0x2b7)],'Chrono':D[w(0x2b7)],'Log':E[w(0x2b7)],'Emitter':F[w(0x2b7)],'Tracker':G[w(0x2b7)],'VideoTracker':H[dB(0x17e)],'VideoTrackerState':I[w(0x2b7)],'Core':B[w(0x2b7)],'Backend':y[w(0x2b7)],'NRInsightsBackend':z[w(0x2b7)],'version':J[w(0x232)]};x['A']=L;})());var u=m['B'],v=m['A'];}},e={};function i(a){const dC=a0b;var b=e[a];if(void 0x0!==b)return b[dC(0x23f)];var c=e[a]={'exports':{}};return t[a](c,c[dC(0x23f)],i),c[dC(0x23f)];}function a0a(){const dH=['_bufferAcc','adTitle','quartile','currentAdPlaying','Win','timeSincePaused','SKIPPED','USER_CLOSE','contentBitrate','getPreload','emit','getErrorCode','_viewCount','MIDPOINT','start','getWebkitBitrate','playlists','canplay','_actionAdTable','timeSinceAdStarted','sendVideoAdAction','11fshsyp','AD_ERROR','CONTENT_SEEK_END','AD_SEEK_END','onComplete','Called\x20sendDownload\x20without\x20{\x20state:\x20xxxxx\x20}.','_attributes','Safari','isUsing','ads-pod-started','onImpression','LOG','hidden','calculateBufferType','getAdPodInfo','ads-pause','coreVersion','mediaUrl','buildBufferAttributes','goAdQuartile','AD_RENDITION_CHANGE','_trackerReadyChrono','BrightcoveImaAdsTracker',';\x20contrib-ads:\x20','ACTION_TABLE','Source','timeSinceTrackerReady','debug','eventType','seeked','sendVideoAction','onFirstQuartile','5912576hKNZoD','playbackRate','_lastAdRendition','duration','round','getTrackers','goBufferStart','Module','currentSrc','isFullscreen','adCreativeId','shift','contentPlayhead','onSeeked','POST','timeSinceSeekBegin','length','state','brightcove-ima-ads','bitrate','numberOfVideos','onPodEnd','media','New\x20Relic','Tracker\x20','sendSeekEnd','DOWNLOAD','ACTION_AD_TABLE','ima3error','warn','isRequested','ads-pod-ended','{\x22name\x22:\x22@newrelic/video-core\x22,\x22version\x22:\x223.1.0\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@newrelic/newrelic-oss-cli\x22:\x22^0.1.2\x22,\x22@babel/preset-env\x22:\x22^7.24.5\x22,\x22@babel/register\x22:\x22^7.24.6\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}}','goAdBreakStart','Cast','ShakaTech','_isAd','getMediaUrl','numberOfErrors','type','DEBUG','onPaused','isBackgroundEvent','deviceType','pop','sendBufferStart','contentFps','166DCYjPU','getCdn','bufferElapsedTime','onAdserror','{\x22name\x22:\x22@newrelic/video-videojs\x22,\x22version\x22:\x223.1.0\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,\x22aws-sdk\x22:\x22^2.920.0\x22,\x22@newrelic/newrelic-oss-cli\x22:\x22^0.1.2\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.1.0\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}}','debugCommonVideoEvents','attributes','then','THIRD_QUARTILE','getInstrumentationVersion','MIDROLL','height','sendCustom','tech','CONTENT_PAUSE','setBackend','Firefox','goSeekEnd','goError','BANDWIDTH','defineProperty','ContribHlsTech','adstart','onMidpoint','PLAYER_READY','ima3-paused','playing','onAdskip','setIsAd','getUrl','timeSinceLastHeartbeat','_harvestLocked','onAdsClick','getRenditionHeight','X11','In\x20order\x20to\x20use\x20NewRelic\x20Video\x20you\x20will\x20need\x20New\x20Relic\x20Browser\x20Agent.','isAd','reset','CONTENT_BUFFER_START','userAgentName','pre','videojs','adPlayer','AD_REQUEST','VideoCustomAction','origin','sendRequest','contentLanguage','RESOLUTION','https://insights-collector.newrelic.com/v1/accounts/','CLICK','CONTENT_END','trackerInit','darkcyan','7dgORzr','VideoErrorAction','getTime','Browser','sendBufferEnd','ads-midpoint','setTimeSinceAttribute','totalAdPlaytime','getManifestUri','trackerVersion','_eventBuffer','adsTracker','language','ima3-skipped','getBackend','_lastWebkitBitrate','timeSinceAdBreakStart','Mobile','Called\x20sendAdQuartile\x20without\x20{\x20quartile:\x20xxxxx\x20}.','12723KkLBAY','getSrc','Edge','getAdQuartile','goPlayerReady','getFps','getAdPosition','timeSinceLastDownload','AdErrorEvent','onPause','Windows','max','registerListeners','parentTracker','_accountId','setAdsTracker','iOS','Log','bandwidth','getTitle','_eventType','getElementById','off','videojs-ads','onPodStart','ads-allpods-completed','setUserId','sendRenditionChanged','onError','playtimeSinceLastEvent','onThirdQuartile','match','streamBandwidth','includes','addTracker','onSkipped','error','ads-third-quartile','post','documentMode','contentRenditionWidth','level','onDispose','_hb','undefined','connection','adRenditionName','default','title','creativeId','Called\x20sendAdClick\x20without\x20{\x20url:\x20xxxxx\x20}.','Core','currentUrl','indexOf','ads','_userId','currentLevel','adPartner','FreewheelAdsTracker','onLoaded','debugCommonVideoEvents:\x20No\x20common\x20listener\x20function\x20found\x20for\x20','seek','Harvest\x20still\x20locked,\x20abort','WARNING','adId','timeSinceResumed','onPlay','_acc','removeTracker','AdEvent','goSeekStart','IMPRESSION','unregisterListeners','abort','sendAdBreakEnd','slice','imaAdCuePoints','ima:\x20','ALL_ADS_COMPLETED','getAdsManager','onAdload','down','enduser.id','getAdPartner','_actionTable','getRenditionWidth','location','getHeartbeat','Type','AD_QUARTILE','goResume','resume','1175044piargJ','podIndex','adjustElapsedTimeForPause','isError','width','muted','_lastBufferType','goEnd','getInstrumentationName','ads-play','vhs','adPosition','timeupdate','getAttributes','getTrackerVersion','true','onResume','toString','getInstrumentationProvider','onStart','AD_BUFFER_END','POSTROLL','pushEventToInsights','getRenditionShift','boolean','currentTime','sendDownload','isBuffering','contentSrc','goViewCountUp','getMessage','ima3-complete','unknown','darkorange','adCdn','ima-ads','version','getBitrate','onAdsplay','pathname','getViewId','adRenditionBitrate','ended','adRenditionWidth','referrer','VideojsAdsTracker','getTrackerName','Levels','getError','ads-load','Error:','SKIPPABLE_STATE_CHANGED','Android','contentPreload','actionName','OnAdsAllpodsCompleted','hasOwnProperty','getSeconds','timestamp','catch','Mac','adtimeout','Event:\x20','getLanguage','getResource','Opera','26238344GtqfCf','onDownload','isPaused','Tablet','assign','totalPlaytime','getVideoId','videoHeight','2800554BJVsMn','viewSession','UNIX','goStart','exec','_lastTimestamp','insightsRequestResponse','ads-first-quartile','Microsoft\x20Edge','sendStart','onAdend','push','tag','__esModule','ads-playback','ima','search','contentPlayrate','getDate','onSeeking','shakaPlayer','startTime','AD_SEEK_START','getAdCreativeId','AD_METADATA','getDeltaTime','stop','AD_START','Linux','PAUSED','624296CverhY','getPlayerVersion','timeSinceLastAdQuartile','FreeWheelPlugin','loadstart','isAdBreak','addEventListener','userAgent','Chrome','isPlayerReady','resetFlags','221590rpeZhz','splice','goAdBreakEnd','PRE','Events','append','call','adError','SILENT','generateAttributes','Desktop','Constants','getStateAttributes','contentRenditionBitrate','video','adLanguage','addEventHandler','onAdrequest','onAdsready','adPlayhead','bind','playerVersion','timeSinceSeekEnd','prefix','goLastAd','stopHeartbeat','url','Push\x20events\x20to\x20Insights\x20=\x20','setPlayer','adSrc','sendClick','1097798joYwty','getRenditionBitrate','exports','VideoTracker','AdPositions','onResumed','EXPANDED_CHANGED','videoError','apply','adserror','2902398PXfnTv','HlsJsTech','NAME','bitmovin-ads','performance','sendAdClick','random','heartbeat','videoWidth','event','getAdData','getPrimaryCreativeRenditionAsset','contentIsLive','onAdstart','podInfo','getRenditionName','FreewheelAdsCompleted','FIRST_QUARTILE','log','notice','CONTENT_RESUME','mid','onEnded','CONTENT_HEARTBEAT','ERROR','onClick','isAutoplayed','adInstance','stringify','2829568UGyfdM','getTech','contentDuration','getVariantTracks','timeSinceAdRequested','ads-request','MSIE','instrumentation.version','timeSinceAdSeekBegin','bufferType','ImaAdsTracker','colorful','referrerUrl','loadeddata','timeSinceLoad','isPlaying','isMuted','COMPLETE','contentIsAutoplayed','onPlaying','7687950NXXcWP','startHeartbeat','AD_BREAK_END','VideoAction','getMinutes','harvestHandler','waiting','sendHeartbeat','_apiKey','disposeAdsTracker','AD_PAUSE','timeSinceLastRenditionChange','AD_HEARTBEAT','adIsMuted','timeSinceBufferBegin','HEARTBEAT','getStats','9592335FktaDj','now','onTimeupdate','pageUrl','timeSinceStarted','timeSinceRequested','base-tracker','adskip','sendAdBreakStart','onAdStart','NOTICE','getCurrentAd','126VLocWa','trackerName','send','onAbort','ima3-started','concat','message','AD_BUFFER_START','timeSinceAdPaused','pause','isInitialBuffering','vhs_','offset','autoplay','goBufferEnd','player','sendPause','onWaiting','instrumentation.provider','sendAdQuartile','getActiveCreativeRendition','getPlayerName','getCuePoints','PREROLL','_viewSession','adsready','stalled','sendEnd','stopTime','contentRenditionName','prototype','_heartbeatInterval','_listeners','onAdspause','LINEAR_CHANGED','goRequest','STARTED','ima3','seeking','\x20is\x20ready.','data','freewheel-ads','isSeeking','string','getId','getPlayrate','isContentEnd','customTimeSinceAttributes','levels','cast','adBitrate','initialBufferingHappened','play','toStringTag','playerName','isLive','customData','contentIsFullscreen','removeEventListener','adend','AD_BREAK_START','getDuration','isArray','getCreativeId','ads-click','sendError','isStarted','darkred','recordCustomEvent','loadedmetadata','onAdEnd','setAttributes','CONTENT_PAUSE_REQUESTED','getViewSession','RESUMED','contentCdn','sendResume','getMilliseconds','snapshot','getAdId','contentId','lastAdData','mediainfo','contentRenditionHeight','VERSION','LOADED','/events','dispose','name','json','preload','stats','getPlayhead','provider','contentTitle','AD_END'];a0a=function(){return dH;};return a0a();}function a0b(a,b){const c=a0a();return a0b=function(d,e){d=d-0x168;let f=c[d];return f;},a0b(a,b);}i['d']=(a,b)=>{const dD=a0b;for(var c in b)i['o'](b,c)&&!i['o'](a,c)&&Object[dD(0x36d)](a,c,{'enumerable':!0x0,'get':b[c]});},i['o']=(a,b)=>Object[a0dE(0x2b3)][a0dE(0x1e3)][a0dE(0x224)](a,b),i['r']=a=>{const dF=a0dE;dF(0x17b)!=typeof Symbol&&Symbol[dF(0x2ca)]&&Object[dF(0x36d)](a,Symbol[dF(0x2ca)],{'value':dF(0x331)}),Object[dF(0x36d)](a,dF(0x202),{'value':!0x0});};var s={};((()=>{const dG=a0dE;var a=s;Object['defineProperty'](a,'B',{'value':!0x0}),a['A']=void 0x0;var b,c=(b=i(0x12e))&&b[dG(0x202)]?b:{'default':b};a['A']=c[dG(0x17e)];})());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.
|
|
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 */
|