@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 CHANGED
@@ -1,20 +1,27 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [3.1.1] - 2025-05-28
4
+
5
+ ### Changed
6
+
7
+ - **Standalone Agent:** This tracker now operates independently with its own authorization details, removing the dependency on a browser agent.
8
+
3
9
  ## [3.1.0] - 2025-05-27
4
10
 
5
11
  ### Enhancements
6
12
 
7
- * **Publishing to npm:** The package can now be published to npm, making it easily accessible.
13
+ - **Publishing to npm:** The package can now be published to npm, making it easily accessible.
8
14
 
9
15
  ### Build
10
16
 
11
- * **Distribution Formats:** Added `cjs`, `esm`, and `umd` builds to the `dist` folder, ensuring compatibility with CommonJS, ES Modules, and UMD module formats.
17
+ - **Distribution Formats:** Added `cjs`, `esm`, and `umd` builds to the `dist` folder, ensuring compatibility with CommonJS, ES Modules, and UMD module formats.
12
18
 
13
- ## [3.0.1] - 2025/04/02
19
+ ## [3.0.1] - 2025-04-24
14
20
 
15
21
  ### Bug Fixes
16
22
 
17
23
  - Resolved an issue where custom attribute definitions were not accepting options as arguments.
24
+ - **Update:** The `errorName` attribute has been deprecated and `errorMessage` is introduced as its replacement.
18
25
 
19
26
  ## [3.0.0] - 2025/02/20
20
27
 
package/LICENSE.txt CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2019 New Relic, Inc.
189
+ Copyright New Relic, Inc. All rights reserved.
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -2,11 +2,13 @@
2
2
 
3
3
  # New Relic Videojs Tracker Agent
4
4
 
5
+ > **⚠️ DISCLAIMER: This is a beta version. Features and APIs may change in future releases.**
6
+
5
7
  The New Relic Videojs Tracker enhances your media applications by tracking video events, playback errors, and other activities, providing comprehensive insights into performance and user interactions.
6
8
 
7
9
  - The Videojs tracker is available as a ready-to-use JavaScript snippet for easy copy-paste integration.
8
10
  - New Relic Videojs tracker auto-detects events emitted by Videojs Player.
9
- - Ensure that the **Browser agent** is successfully instrumented before deploying the media tracker.
11
+ - **Important**: You must provide New Relic credentials in the options object when instantiating the tracker.
10
12
  - For questions and feedback on this package, please visit the [Explorer's Hub](https://discuss.newrelic.com), New Relic's community support forum.
11
13
  - Looking to contribute to the Player Name agent code base? See [DEVELOPING.md](./DEVELOPING.md) for instructions on building and testing the browser agent library, and Contributors.
12
14
 
@@ -36,27 +38,52 @@ To integrate New Relic Tracker Agent into your web application effectively, you'
36
38
  To make the tracker available to your application, install via [NPM](https://docs.npmjs.com/cli/v8/commands/npm-install) or [Yarn](https://classic.yarnpkg.com/lang/en/docs/cli/install/).
37
39
 
38
40
  ```shell
39
- $ npm install @newrelic/video-videojs
41
+ $ npm install @newrelic/video-videojs@3.2.0-beta-1
40
42
  ```
41
43
 
42
44
  ```shell
43
- $ yarn add @newrelic/video-videojs
45
+ $ yarn add @newrelic/video-videojs@3.2.0-beta-1
44
46
  ```
45
47
 
46
48
  ## Instantiating the Videojs Tracker
47
49
 
48
-
50
+ **Important**: When instantiating the VideojsTracker, you must provide New Relic credentials through the options object. This is a mandatory step:
49
51
 
50
52
  ```javascript
53
+ import VideojsTracker from '@newrelic/video-videojs';
54
+
55
+ // Initialize the video player
56
+ var player = videojs('my-video');
57
+
58
+ // Configure New Relic credentials (MANDATORY)
59
+ const options = {
60
+ info: {
61
+ beacon: 'xxxxxxxxxx',
62
+ errorBeacon: 'xxxxxxxxx',
63
+ licenseKey: 'xxxxxxxxxxx',
64
+ applicationID: 'xxxxxxxx',
65
+ sa: 1,
66
+ },
67
+ };
51
68
 
52
- import VideojsTracker from "@newrelic/video-videojs";
69
+ // Create the tracker with required credentials
70
+ const tracker = new VideojsTracker(player, options);
71
+ ```
72
+
73
+ ### Additional Configuration Options
53
74
 
54
- // Add a VideojsTracker
55
- player.version = videojs.VERSION
56
- const tracker = new VideojsTracker(player);
75
+ You can also include custom data along with the required credentials:
57
76
 
58
- //For setting custom attributes const tracker
59
- const tracker = new VideojsjsTracker(player, {
77
+ ```javascript
78
+ // For setting custom attributes
79
+ const tracker = new VideojsTracker(player, {
80
+ info: {
81
+ beacon: 'xxxxxxxxxx',
82
+ errorBeacon: 'xxxxxxxxx',
83
+ licenseKey: 'xxxxxxxxxxx',
84
+ applicationID: 'xxxxxxxx',
85
+ sa: 1,
86
+ },
60
87
  customData: {
61
88
  contentTitle: 'Override Existing Title',
62
89
  customPlayerName: 'myGreatPlayer',
@@ -68,8 +95,7 @@ const tracker = new VideojsjsTracker(player, {
68
95
  tracker.setUserId('userId');
69
96
 
70
97
  // For Sending custom Action with Attributes
71
-
72
- const tracker = new nrvideo.VideojsTracker(player);
98
+ const tracker = new nrvideo.VideojsTracker(player, options);
73
99
 
74
100
  nrvideo.Core.addTracker(tracker);
75
101
 
@@ -79,6 +105,19 @@ tracker.sendCustom('CUSTOM_ACTION', 'state time', {
79
105
  });
80
106
  ```
81
107
 
108
+ ### Obtaining New Relic Credentials
109
+
110
+ To get your New Relic credentials:
111
+
112
+ 1. Log into your New Relic account
113
+ 2. Navigate to your Browser application settings
114
+ 3. Copy the required values:
115
+ - `beacon`: Your data collection endpoint
116
+ - `errorBeacon`: Your error collection endpoint
117
+ - `licenseKey`: Your license key
118
+ - `applicationID`: Your application ID
119
+ - `sa`: Account ID
120
+
82
121
  ## Data Model
83
122
 
84
123
  To understand which actions and attributes are captured and emitted by the Videojs Player under different event types, see [DataModel.md](./DATAMODEL.md).
@@ -99,6 +138,7 @@ As noted in our [security policy](../../security/policy), New Relic is committed
99
138
 
100
139
  If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through [our bug bounty program](https://docs.newrelic.com/docs/security/security-privacy/information-security/report-security-vulnerabilities/).
101
140
 
102
- ## License
141
+ # License
103
142
 
104
- New Relic Videojs Tracker is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.
143
+ This project is distributed under the [Apache 2.0](https://apache.org/licenses/LICENSE-2.0.txt) License.
144
+ The video-core also uses source code from third-party libraries. Full details on which libraries are used and the terms under which they are licensed can be found in the [third-party notices document](THIRD_PARTY_NOTICES.md).
@@ -26,7 +26,6 @@ code, the source code can be found at [https://github.com/newrelic/video-videojs
26
26
  * [babel-loader](#babel-loader)
27
27
  * [videojs-ima](#videojs-ima)
28
28
  * [webpack-cli](#webpack-cli)
29
- * [webpack-obfuscator](#webpack-obfuscator)
30
29
  * [webpack](#webpack)
31
30
 
32
31
  **[optionalDependencies](#optionalDependencies)**
@@ -37,7 +36,7 @@ code, the source code can be found at [https://github.com/newrelic/video-videojs
37
36
 
38
37
  ### @newrelic/video-core
39
38
 
40
- This product includes source derived from [@newrelic/video-core](https://github.com/newrelic/video-core-js) ([v3.1.0](https://github.com/newrelic/video-core-js/tree/v3.1.0)), distributed under the [MIT License](https://github.com/newrelic/video-core-js/blob/v3.1.0/LICENSE.txt):
39
+ This product includes source derived from [@newrelic/video-core](https://github.com/newrelic/video-core-js) ([v3.2.0-beta-1](https://github.com/newrelic/video-core-js/tree/v3.2.0-beta-1)), distributed under the [Apache-2.0 License](https://github.com/newrelic/video-core-js/blob/v3.2.0-beta-1/LICENSE):
41
40
 
42
41
  ```
43
42
  Apache License
@@ -228,7 +227,7 @@ This product includes source derived from [@newrelic/video-core](https://github.
228
227
  same "printed page" as the copyright notice for easier
229
228
  identification within third-party archives.
230
229
 
231
- Copyright 2019 New Relic, Inc.
230
+ Copyright New Relic, Inc. All rights reserved.
232
231
 
233
232
  Licensed under the Apache License, Version 2.0 (the "License");
234
233
  you may not use this file except in compliance with the License.
@@ -241,7 +240,6 @@ This product includes source derived from [@newrelic/video-core](https://github.
241
240
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
242
241
  See the License for the specific language governing permissions and
243
242
  limitations under the License.
244
-
245
243
  ```
246
244
 
247
245
 
@@ -249,7 +247,7 @@ This product includes source derived from [@newrelic/video-core](https://github.
249
247
 
250
248
  ### @babel/core
251
249
 
252
- This product includes source derived from [@babel/core](https://github.com/babel/babel) ([v7.27.1](https://github.com/babel/babel/tree/v7.27.1)), distributed under the [MIT License](https://github.com/babel/babel/blob/v7.27.1/LICENSE):
250
+ This product includes source derived from [@babel/core](https://github.com/babel/babel) ([v7.28.0](https://github.com/babel/babel/tree/v7.28.0)), distributed under the [MIT License](https://github.com/babel/babel/blob/v7.28.0/LICENSE):
253
251
 
254
252
  ```
255
253
  MIT License
@@ -309,7 +307,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
309
307
 
310
308
  ### @babel/preset-env
311
309
 
312
- This product includes source derived from [@babel/preset-env](https://github.com/babel/babel) ([v7.27.2](https://github.com/babel/babel/tree/v7.27.2)), distributed under the [MIT License](https://github.com/babel/babel/blob/v7.27.2/LICENSE):
310
+ This product includes source derived from [@babel/preset-env](https://github.com/babel/babel) ([v7.28.0](https://github.com/babel/babel/tree/v7.28.0)), distributed under the [MIT License](https://github.com/babel/babel/blob/v7.28.0/LICENSE):
313
311
 
314
312
  ```
315
313
  MIT License
@@ -1021,35 +1019,9 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1021
1019
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1022
1020
  ```
1023
1021
 
1024
- ### webpack-obfuscator
1025
-
1026
- This product includes source derived from [webpack-obfuscator](https://github.com/javascript-obfuscator/webpack-obfuscator) ([v3.5.1](https://github.com/javascript-obfuscator/webpack-obfuscator/tree/v3.5.1)), distributed under the [BSD-2-Clause License](https://github.com/javascript-obfuscator/webpack-obfuscator/blob/v3.5.1/LICENSE.BSD):
1027
-
1028
- ```
1029
- Redistribution and use in source and binary forms, with or without
1030
- modification, are permitted provided that the following conditions are met:
1031
-
1032
- * Redistributions of source code must retain the above copyright
1033
- notice, this list of conditions and the following disclaimer.
1034
- * Redistributions in binary form must reproduce the above copyright
1035
- notice, this list of conditions and the following disclaimer in the
1036
- documentation and/or other materials provided with the distribution.
1037
-
1038
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1039
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1040
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1041
- ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
1042
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1043
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1044
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
1045
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1046
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
1047
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1048
- ```
1049
-
1050
1022
  ### webpack
1051
1023
 
1052
- This product includes source derived from [webpack](https://github.com/webpack/webpack) ([v5.99.9](https://github.com/webpack/webpack/tree/v5.99.9)), distributed under the [MIT License](https://github.com/webpack/webpack/blob/v5.99.9/LICENSE):
1024
+ This product includes source derived from [webpack](https://github.com/webpack/webpack) ([v5.101.0](https://github.com/webpack/webpack/tree/v5.101.0)), distributed under the [MIT License](https://github.com/webpack/webpack/blob/v5.101.0/LICENSE):
1053
1025
 
1054
1026
  ```
1055
1027
  Copyright JS Foundation and other contributors
package/dist/cjs/index.js CHANGED
@@ -1 +1,3 @@
1
- function a0a(){const dK=['ima3-ready','videoHeight','stalled','onSeeking','Called\x20sendAdClick\x20without\x20{\x20url:\x20xxxxx\x20}.','prefix','stop','length','stringify','base-tracker','getPlayhead','getError','sendVideoErrorAction','getTitle','adInstance','CONTENT_RESUME_REQUESTED','sendEnd','adTitle','getMediaUrl','removeTimeSinceAttribute','contentIsAutoplayed','AdEvent','isPlayerReady','buildBufferAttributes','goBufferEnd','setBackend','pop','ima3error','width','debugCommonVideoEvents','getInstrumentationProvider','__esModule','AD_BUFFER_END','initial','_apiKey','Push\x20events\x20to\x20Insights\x20=\x20','lastAdData','state','ima:\x20','defineProperty','35MKFvpv','\x20is\x20ready.','now','getPlayerVersion','adsTracker','126VLocWa','sendClick','_acc','sendRequest','_attributes','getInstrumentationVersion','AD_ERROR','Edge','goBufferStart','webkitVideoDecodedByteCount','_trackerReadyChrono','stopTime','goRequest','undefined','FETCH','adtimeout','getTrackerVersion','color:\x20','origin','FreewheelAdsCompleted','colorful','onAdsready','CONTENT_END','DEBUG','VideojsAdsTracker','timestamp','pageUrl','isSeeking','POSTROLL','getRenditionWidth','LOG','_heartbeatInterval','ima3-complete','ima','_lastTimestamp','goPlayerReady','timeSinceLastAd','ads-first-quartile','generateAttributes','getWebkitBitrate','getLanguage','timeSinceResumed','splice','timeSinceLastAdQuartile','LOADED','offset','onAdspause','active','userAgent','VideojsTracker','isContentEnd','ads-ad-ended','duration','VERSION','Levels','elapsedTime','adFps','waiting','ShakaTech','CONTENT_HEARTBEAT','sendAdClick','ALL','tag','Constants','ima3-resumed','MID','Opera','getTrackers','isPlaying','STARTED','_viewSession','viewId','ads-playback','adRenditionName','totalAdPlaytime','freewheel','down','VideoAdAction','setTimeSinceAttribute','adPartner','creativeId','goEnd','_userId','title','AD_PAUSE','_accountId','isLive','onPodEnd','loadedmetadata','cast','Mac','2805246eCMPzU','onPause','post','abort','sendSeekEnd','sendVideoCustomAction','concat','488343yUdrJD','ads','timeSinceAdBufferBegin','viewSession','adRenditionBitrate','warn','playing','timeSinceAdBreakBegin','actionName','_viewCount','tech','timeSinceLastAdHeartbeat','getErrorCode','getAdCreativeId','FreeWheelPlugin','getPreload','addEventHandler','SKIPPABLE_STATE_CHANGED','append','timeSinceAdRequested','X11','registerListeners','ads-pod-ended','221590rpeZhz','RESOLUTION','snapshot','Firefox','timeSinceAdSeekBegin','start','sendSeekStart','entries','ads-load','THIRD_QUARTILE','event','sendError','EXPANDED_CHANGED','Win','video','24spfkjN','_createdAt','64057GXXhTu','onSkipped','getCurrentAd','contentIsFullscreen','onImpression','AD_QUARTILE','adCdn','pre','pathname','playerVersion','In\x20order\x20to\x20use\x20NewRelic\x20Video\x20you\x20will\x20need\x20New\x20Relic\x20Browser\x20Agent.','CONTENT_PAUSE_REQUESTED','ima3','getVariantTracks','adDuration','bufferElapsedTime','sendPause','clone','boolean','onAdrequest','bitrate','[nrvideo]','getAdPartner','ads-play','isUsing','getSrc','getMessage','sendVideoAdAction','goDownload','getPlayrate','code','currentTime','contentRenditionBitrate','getDeltaTime','notice','slice','_actionAdTable','AD_CAN_PLAY','currentLevel','Tracker\x20','instrumentation.version','includeTime','Chrome','CONTENT_REQUEST','insightsRequestResponse','resetChronos','POST','NAME','dispose','_bufferAcc','TIMER','Tablet','preload','goViewCountUp','userAgentName','getBackend','onMidpoint','getAttributes','isFullscreen','addEventListener','setOptions','MSIE','AD_BREAK_END','sendAdBreakStart','string','ended','round','getBitrate','getCuePoints','Windows','adserror','goAdQuartile','onClick','sendVideoAction','sendBufferStart','Source','getViewSession','totalPlaytime','isAutoplayed','exports','streamBandwidth','referrer','goSeekEnd','onAdStart','debugCommonVideoEvents:\x20No\x20common\x20listener\x20function\x20found\x20for\x20','6590BOUnIt','sendRenditionChanged','prototype','adend','setIsAd','Safari','CONTENT_START','getActiveCreativeRendition','assign','quartile','_hb','startHeartbeat','CONTENT_SEEK_START','onLoaded','ima3-skipped','Module','documentMode','onFirstQuartile','getAdsManager','removeEventListener','customAction','getStateAttributes','timeSinceAdBreakStart','adRenditionWidth','PREROLL','Microsoft\x20Edge','player','adPlayer','onComplete','onStarted','then','freewheel-ads','1TzXank','_lastBufferType','getPlayerName','goSeekStart','PAUSED','AD_END','onError','shift','CONTENT_BUFFER_END','timeSincePaused','timeSinceAdStarted','ads-request','mediainfo','7dgORzr','goResume','Tried\x20to\x20load\x20a\x20non-tracker.','goError','984600BzyKQy','onResumed','mid','initialBufferingHappened','connection','getFps','isAdBreak','getRenditionShift','contentCdn','timeSinceLastDownload','error','sendAdQuartile','ads-midpoint','addTracker','adstart','PRE','timeSinceLastRenditionChange','imaAdCuePoints','AD_CLICK','getAdPosition','adBitrate','autoplay','coreVersion','UNIX','goAdBreakEnd','adId','timeSinceBufferBegin','videojs-ads','timeupdate','getTime','videojs','ima-ads','videoError','random','onAdend','onPlaying','getDuration','match','data','absoluteTime','getDate','AD_SEEK_END','CONTENT_ERROR','contentDuration','Sent','USER_CLOSE','shakaPlayer','pause','AD_SEEK_START','11fshsyp','setAdsTracker','send','isPaused','AD_REQUEST','timeSinceSeekBegin','adLanguage','timeSinceLoad','_listeners','isStarted','loadstart','isInitialBuffering','ads-pod-started','VideoErrorAction','SKIPPED','referrerUrl','VideoTracker','Events','hasOwnProperty','emit','onDispose','location','onSeeked','contentIsLive','currentAdPlaying','language','getId','adPosition','unregisterListeners','default','catch','timeSinceStarted','getAdData','RESUMED','podIndex','name','getPrimaryCreativeRenditionAsset','numberOfErrors','stopHeartbeat','setPlayer','exec','provider','media','onAdserror','WARNING','playtimeSinceLastEvent','numberOfVideos','onAbort','PLAYER_READY','getCreativeId','trackerInit','sendStart','adskip','seeked','AD_BUFFER_START','log','goLastAd','contentFps','HlsJsTech','darkorange','ima3-started','getTrackerName','24867ZCSfNk','Called\x20sendAdQuartile\x20without\x20{\x20quartile:\x20xxxxx\x20}.','timeSinceRequested','removeTracker','getViewId','seeking','bind','debug','resetFlags','getMilliseconds','startTime','application/json','ads-allpods-completed','_isAd','FIRST_QUARTILE','FreewheelAdsTracker','onStart','745956ANndfS','true','adSrc','sendResume','20QJtXmD','Desktop','pushEventToInsights','AD_BREAK_READY','parse','onThirdQuartile','getRenditionHeight','attributes','instrumentation.provider','getAdQuartile','muted','ads-ad-started','Core','onAdsplay','_lastWebkitBitrate','loadeddata','getHeartbeat','AdPositions','1531114wdGDeM','harvestHandler','ads-third-quartile','timeSinceSeekEnd','sendAdBreakEnd','videoWidth','onAdload','ima3-paused','Cast','sendPlayerReady','contentPreload','sendBufferEnd','heartbeat','onPaused','includes','Event:\x20','darkred','numberOfAds','CONTENT_BUFFER_START','type','recordCustomEvent','isBuffering','version','1144sitQQL','off','onWaiting','Harvest\x20still\x20locked,\x20abort','Error:','vhs','_eventType','adjustElapsedTimeForPause','getAdId','CONTENT_SEEK_END','_lastAdRendition','call','push','contentRenditionHeight','podInfo','isAd','search','darkcyan','sendHeartbeat','_lastRendition','onAdsClick','VideoCustomAction','timeSinceAdPaused','adRenditionHeight','level','ads-click','getCdn','trackerVersion','bufferType','apply','/events','MIDPOINT','canplay',';\x20contrib-ads:\x20','onPlay','userAgentOS','play','getInstrumentationName','mediaUrl','COMPLETE','disposeAdsTracker','playlists','Log','isRequested','playbackRate','onResume','New\x20Relic','hidden','getRenditionName','CONTENT_PAUSE','onPodStart','onAdEnd','CONTENT_RESUME','getRenditionBitrate','indexOf','adsready','parentTracker','height','vhs_','getName','ACTION_AD_TABLE','isMuted','sendDownload','setAttributes','enduser.id','toString','adIsMuted','getTech','onTimeupdate','reset','levels','contentPlayrate','contentId','OnAdsAllpodsCompleted','forEach','onEnded','onAdstart','stats','NOTICE','setUserId','Type','getResource','onAdskip','src','max','_eventBuffer','ERROR','onDownload','contentTitle','24447632fLbJoL','CLICK'];a0a=function(){return dK;};return a0a();}function a0b(a,b){const c=a0a();return a0b=function(d,e){d=d-0x7b;let f=c[d];return f;},a0b(a,b);}(function(a,b){const Q=a0b,c=a();while(!![]){try{const d=-parseInt(Q(0x1e2))/0x1+-parseInt(Q(0x97))/0x2+parseInt(Q(0x9e))/0x3*(parseInt(Q(0x1d0))/0x4)+-parseInt(Q(0x27c))/0x5*(parseInt(Q(0x1cc))/0x6)+parseInt(Q(0xc6))/0x7*(parseInt(Q(0x1f9))/0x8)+-parseInt(Q(0x1bb))/0x9*(parseInt(Q(0x11b))/0xa)+parseInt(Q(0x252))/0xb*(parseInt(Q(0xc4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0a,0xe625e),((()=>{'use strict';const dH=a0b;var a={0x26:(f,g,h)=>{const R=a0b;Object[R(0x27b)](g,R(0x273),{'value':!0x0}),g['default']=void 0x0;var j,k=(j=h(0x1d8))&&j[R(0x273)]?j:{'default':j};class l extends k[R(0x19a)]{static['isUsing'](m){const S=R;return!!m[S(0xac)]&&S(0x28e)!=typeof tv&&tv[S(0x87)];}[R(0x1ba)](){const T=R;return T(0x13a);}['getPlayerName'](){const U=R;return U(0x13a);}[R(0x27f)](){const V=R;return this[V(0x135)][V(0xac)][V(0x2b6)];}[R(0x25e)](){const W=R;if(this['player'][W(0x9f)]['ad'][W(0xe5)])return 0x3e8*this[W(0x135)][W(0x9f)]['ad'][W(0xe5)]();}['getDuration'](){const X=R;if(this['player'][X(0x9f)]['ad']['duration'])return 0x3e8*this[X(0x135)][X(0x9f)]['ad']['duration'];}['getVideoId'](){const Y=R;return this[Y(0x135)]['ads']['ad']['id'];}[R(0xdc)](){return'freewheel';}[R(0xab)](){const Z=R;try{return this[Z(0x135)][Z(0x9f)][Z(0x1a6)][Z(0xbf)][Z(0x262)][Z(0x122)]()[Z(0x197)]();}catch(m){}}[R(0xdf)](){const a0=R;try{return this[a0(0x135)][a0(0x9f)][a0(0x1a6)][a0(0xbf)][a0(0x262)][a0(0x122)]()['getPrimaryCreativeRenditionAsset']()['getUrl']();}catch(m){}}[R(0x261)](){const a1=R;try{return this[a1(0x135)][a1(0x9f)][a1(0x1a6)][a1(0xbf)]['adInstance'][a1(0x122)]()[a1(0x1a1)]()[a1(0x234)]();}catch(m){}}[R(0x15f)](){const a2=R;switch(this[a2(0x135)]['ads']['ad'][a2(0x1f5)]){case a2(0x133):return nrvideo[a2(0x7b)][a2(0x1e1)][a2(0x15b)];case'MIDROLL':return nrvideo[a2(0x7b)][a2(0x1e1)][a2(0x7d)];case a2(0x29d):return nrvideo[a2(0x7b)][a2(0x1e1)][a2(0xf4)];}}}g[R(0x19a)]=l;},0x40:(f,g,h)=>{const a3=a0b;Object['defineProperty'](g,a3(0x273),{'value':!0x0}),g[a3(0x19a)]=void 0x0;var j=l(h(0x22b)),k=l(h(0x1d8));function l(o){const a4=a3;return o&&o[a4(0x273)]?o:{'default':o};}class m extends k[a3(0x19a)]{static[a3(0xde)](o){const a5=a3;return!!o[a5(0xd2)];}[a3(0x1ba)](){return'brightcove-ima-ads';}[a3(0x13d)](){return'brightcove-ima-ads';}[a3(0x25e)](){const a6=a3;return this[a6(0x135)]?.['ima3']?.[a6(0x136)]?.[a6(0xe5)]();}['registerListeners'](){const a7=a3;j[a7(0x19a)][a7(0x223)][a7(0x271)](this[a7(0x135)],[null,a7(0x254),a7(0x26f),'ima3-ad-error',a7(0x1b9),a7(0x2a1),a7(0x1e9),a7(0x7c),a7(0x146),a7(0xbd),a7(0x1db),a7(0x2b4),'ads-pause',a7(0xdd),a7(0x212),a7(0x189),a7(0xb4),a7(0x1c7)]),this['player']['on'](a7(0x1b9),this[a7(0x138)][a7(0x1c1)](this)),this[a7(0x135)]['on'](a7(0x1e9),this[a7(0x1ef)][a7(0x1c1)](this)),this['player']['on'](a7(0x7c),this[a7(0x226)][a7(0x1c1)](this)),this[a7(0x135)]['on']('ima3-complete',this[a7(0x137)][a7(0x1c1)](this)),this[a7(0x135)]['on'](a7(0x129),this[a7(0xc7)][a7(0x1c1)](this)),this['player']['on'](a7(0x10c),this[a7(0x141)][a7(0x1c1)](this)),this[a7(0x135)]['on']('ads-click',this[a7(0x10e)][a7(0x1c1)](this));}['unregisterListeners'](){const a8=a3;this[a8(0x135)]['off']('ima3-started',this[a8(0x138)]),this[a8(0x135)][a8(0x1fa)]('ima3-paused',this[a8(0x1ef)]),this[a8(0x135)][a8(0x1fa)](a8(0x7c),this[a8(0x226)]),this[a8(0x135)][a8(0x1fa)](a8(0x2a1),this['onComplete']),this[a8(0x135)][a8(0x1fa)]('ima3-skipped',this[a8(0xc7)]),this[a8(0x135)][a8(0x1fa)](a8(0x10c),this[a8(0x141)]),this[a8(0x135)][a8(0x1fa)](a8(0x212),this[a8(0x10e)]);}[a3(0x138)](o){const a9=a3;this[a9(0x284)](),this['sendStart']();}['onPaused'](o){const aa=a3;this[aa(0xd6)]();}[a3(0x226)](o){const ab=a3;this[ab(0x1cf)]();}['onComplete'](o){const ac=a3;this[ac(0x264)]();}['onSkipped'](o){const ad=a3;this[ad(0x264)]({'skipped':!0x0});}[a3(0x141)](o){const ae=a3;this[ae(0xc0)]();}[a3(0x10e)](o){const af=a3;this[af(0x282)]();}}g['default']=m;},0x101:(f,g)=>{const ag=a0b;Object['defineProperty'](g,ag(0x273),{'value':!0x0}),g[ag(0x19a)]=void 0x0;class h{constructor(j){const ah=ag;this[ah(0xa8)]=j[ah(0x233)];}[ag(0x24a)](j){const ai=ag;return this[ai(0xa8)]['url'];}['getRenditionName'](j){const aj=ag;try{var k=this[aj(0xa8)][aj(0x23f)][this['tech'][aj(0xec)]];if(k&&k[aj(0x1a0)])return k['name'];}catch(l){}return null;}[ag(0x22e)](j){const ak=ag;try{var k=this[ak(0xa8)][ak(0x23f)][this['tech'][ak(0xec)]];if(k&&k['bitrate'])return k[ak(0xda)];}catch(l){}return null;}[ag(0x29e)](j){const al=ag;try{var k=this['tech']['levels'][this[al(0xa8)]['currentLevel']];if(k&&k[al(0x270)])return k['width'];}catch(l){}return null;}[ag(0x1d6)](j){const am=ag;try{var k=this['tech'][am(0x23f)][this[am(0xa8)][am(0xec)]];if(k&&k[am(0x232)])return k[am(0x232)];}catch(l){}return null;}}g[ag(0x19a)]=h,h['isUsing']=function(j){const an=ag;return!!j[an(0x233)];};},0x12a:(f,g,h)=>{const ao=a0b;Object[ao(0x27b)](g,'__esModule',{'value':!0x0}),g['default']=void 0x0;var j=l(h(0x22b)),k=l(h(0x1d8));function l(o){return o&&o['__esModule']?o:{'default':o};}class m extends k[ao(0x19a)]{static[ao(0xde)](o){const ap=ao;return o[ap(0x2a2)]&&ap(0x28e)!=typeof google;}['getTrackerName'](){const aq=ao;return aq(0x16b);}['getPlayerName'](){const ar=ao;return ar(0x2a2);}[ao(0x27f)](){const as=ao;return as(0x27a)+google[as(0x2a2)][as(0x2b6)]+as(0x21a)+this[as(0x135)]['ads'][as(0x2b6)];}['getCuePoints'](){const at=ao;return this['player'][at(0x2a2)][at(0x12d)]()[at(0x10a)]();}[ao(0x15f)](){const au=ao;if(this[au(0x278)]&&this[au(0x278)][au(0x207)]&&void 0x0!==this[au(0x278)][au(0x207)][au(0x19f)]){const o=this[au(0x278)][au(0x207)]['podIndex'];return 0x0===o?au(0xcd):-0x1===o?'post':au(0x14e);}return null;}[ao(0x170)](){const av=ao;return this['lastAdData']&&void 0x0!==this[av(0x278)][av(0x2b5)]?0x3e8*this['lastAdData'][av(0x2b5)]:null;}['getVideoId'](){const aw=ao;return this[aw(0x278)]&&this[aw(0x278)][aw(0x165)]?this['lastAdData']['adId']:null;}[ao(0xab)](){const ax=ao;return this[ax(0x278)]&&this[ax(0x278)]['creativeId']?this[ax(0x278)][ax(0x8c)]:null;}[ao(0xdf)](){const ay=ao;return this[ay(0x278)]&&this[ay(0x278)][ay(0x21f)]?this[ay(0x278)][ay(0x21f)]:null;}[ao(0x261)](){const az=ao;return this[az(0x278)]&&this[az(0x278)][az(0x8f)]?this['lastAdData']['title']:null;}[ao(0x25e)](){const aA=ao;let o=this['player']['ima'][aA(0x12d)]();if(o)return 0x3e8*(this[aA(0x170)]()-o['getRemainingTime']());}[ao(0xe3)](){const aB=ao;return this[aB(0x135)][aB(0x225)]();}[ao(0xdc)](){const aC=ao;return aC(0x2a2);}['registerListeners'](){const aD=ao;let o=google[aD(0x2a2)][aD(0x269)][aD(0x249)],p=google[aD(0x2a2)]['AdErrorEvent']['Type'][aD(0x287)];this[aD(0x278)]=null,j[aD(0x19a)][aD(0x223)][aD(0x271)](this[aD(0x135)][aD(0x2a2)][aD(0x101)],[null,o['ALL_ADS_COMPLETED'],o['LINEAR_CHANGED'],o[aD(0x220)],o[aD(0x179)],o['IMPRESSION'],o[aD(0xd1)],o[aD(0x263)],o['SKIPPED'],o[aD(0xaf)],o[aD(0x2ad)],o[aD(0x13f)],o[aD(0x19e)],o[aD(0x81)],o[aD(0xeb)],o['AD_METADATA'],o[aD(0xc1)],o[aD(0x1d3)],o[aD(0x29f)],o[aD(0x253)],o[aD(0x1c9)],o[aD(0x218)],o[aD(0xbe)],p]),this[aD(0x135)][aD(0x2a2)][aD(0x101)](o[aD(0x2ad)],this[aD(0x128)]['bind'](this)),this[aD(0x135)][aD(0x2a2)][aD(0x101)](o['STARTED'],this[aD(0x1cb)][aD(0x1c1)](this)),this[aD(0x135)][aD(0x2a2)][aD(0x101)](o['PAUSED'],this[aD(0x1ef)]['bind'](this)),this[aD(0x135)][aD(0x2a2)][aD(0x101)](o[aD(0x19e)],this[aD(0x14d)][aD(0x1c1)](this)),this[aD(0x135)][aD(0x2a2)][aD(0x101)](o[aD(0x220)],this[aD(0x137)][aD(0x1c1)](this)),this[aD(0x135)][aD(0x2a2)][aD(0x101)](o['SKIPPED'],this[aD(0xc7)][aD(0x1c1)](this)),this[aD(0x135)][aD(0x2a2)][aD(0x101)](o[aD(0x253)],this[aD(0x10e)]['bind'](this)),this['player'][aD(0x2a2)]['addEventListener'](o[aD(0x1c9)],this['onFirstQuartile']['bind'](this)),this[aD(0x135)][aD(0x2a2)][aD(0x101)](o['MIDPOINT'],this[aD(0xfe)][aD(0x1c1)](this)),this[aD(0x135)][aD(0x2a2)][aD(0x101)](o['THIRD_QUARTILE'],this[aD(0x1d5)][aD(0x1c1)](this)),this[aD(0x135)][aD(0x2a2)][aD(0x101)](p,this[aD(0x141)][aD(0x1c1)](this));}['unregisterListeners'](){const aE=ao;let o=google['ima'][aE(0x269)]['Type'],p=google[aE(0x2a2)]['AdErrorEvent']['Type'][aE(0x287)];this[aE(0x135)]['ima']['removeEventListener'](o['LOADED'],this[aE(0x128)]),this[aE(0x135)][aE(0x2a2)][aE(0x12e)](o[aE(0x81)],this[aE(0x128)][aE(0x1c1)](this)),this['player'][aE(0x2a2)][aE(0x12e)](o['IMPRESSION'],this[aE(0xca)]),this[aE(0x135)][aE(0x2a2)][aE(0x12e)](o[aE(0x13f)],this['onPaused']),this[aE(0x135)][aE(0x2a2)][aE(0x12e)](o[aE(0x19e)],this[aE(0x14d)]),this[aE(0x135)][aE(0x2a2)][aE(0x12e)](o[aE(0x220)],this['onComplete']),this[aE(0x135)]['ima'][aE(0x12e)](o[aE(0x18b)],this['onSkipped']),this['player'][aE(0x2a2)][aE(0x12e)](o['CLICK'],this[aE(0x10e)]),this['player'][aE(0x2a2)][aE(0x12e)](o['FIRST_QUARTILE'],this[aE(0x12c)]),this['player'][aE(0x2a2)][aE(0x12e)](o[aE(0x218)],this[aE(0xfe)]),this[aE(0x135)]['ima'][aE(0x12e)](o[aE(0xbe)],this[aE(0x1d5)]),this[aE(0x135)]['ima'][aE(0x12e)](p,this[aE(0x141)]),this[aE(0x278)]=null;}[ao(0x128)](o){const aF=ao;this['lastAdData']=this[aF(0x19d)](),this[aF(0x284)]();}[ao(0x1cb)](o){const aG=ao;this[aG(0x278)]=this[aG(0x19d)](),this[aG(0x1b0)]();}['onComplete'](o){const aH=ao;this[aH(0x264)](),this['lastAdData']=null;}[ao(0xc7)](o){const aI=ao;this[aI(0x264)]({'skipped':!0x0}),this[aI(0x278)]=null;}[ao(0x141)](o){const aJ=ao,p=o[aJ(0x25f)](),q=p[aJ(0xaa)](),u=p[aJ(0xe0)]();this[aJ(0xc0)]({'adError':p,'errorCode':q,'errorName':u});}[ao(0x10e)](o){const aK=ao;this[aK(0x2bd)]();}[ao(0x12c)](){const aL=ao;this[aL(0x157)]({'adQuartile':0x1});}[ao(0xfe)](){this['sendAdQuartile']({'adQuartile':0x2});}[ao(0x1d5)](){const aM=ao;this[aM(0x157)]({'adQuartile':0x3});}['onPaused'](){this['sendPause']();}[ao(0x14d)](){const aN=ao;this[aN(0x1cf)]();}[ao(0x19d)](){const aO=ao;try{const o=this[aO(0x135)][aO(0x2a2)]['getAdsManager']();if(o){const p=o[aO(0xc8)]();if(p)return{'adId':p[aO(0x201)](),'creativeId':p[aO(0x1ae)](),'duration':p[aO(0x170)](),'mediaUrl':p[aO(0x266)](),'title':p[aO(0x261)](),'podInfo':p['getAdPodInfo']()?.[aO(0x172)]};}return null;}catch(q){return null;}}}g[ao(0x19a)]=m;},0x12e:(f,g,j)=>{const aP=a0b;Object['defineProperty'](g,aP(0x273),{'value':!0x0}),Object[aP(0x27b)](g,'BrightcoveImaAdsTracker',{'enumerable':!0x0,'get':function(){const aQ=aP;return z[aQ(0x19a)];}}),Object[aP(0x27b)](g,'ContribHlsTech',{'enumerable':!0x0,'get':function(){return q['default'];}}),Object['defineProperty'](g,aP(0x1ca),{'enumerable':!0x0,'get':function(){const aR=aP;return A[aR(0x19a)];}}),Object[aP(0x27b)](g,aP(0x1b7),{'enumerable':!0x0,'get':function(){return v['default'];}}),Object[aP(0x27b)](g,'ImaAdsTracker',{'enumerable':!0x0,'get':function(){const aS=aP;return y[aS(0x19a)];}}),Object['defineProperty'](g,aP(0x2bb),{'enumerable':!0x0,'get':function(){const aT=aP;return w[aT(0x19a)];}}),Object[aP(0x27b)](g,aP(0x299),{'enumerable':!0x0,'get':function(){const aU=aP;return x[aU(0x19a)];}}),g[aP(0x19a)]=void 0x0;var k=B(j(0x22b)),m=B(j(0x14a)),q=B(j(0x199)),v=B(j(0x101)),w=B(j(0x152)),x=B(j(0x1d8)),y=B(j(0x12a)),z=B(j(0x40)),A=B(j(0x26));function B(D){const aV=aP;return D&&D[aV(0x273)]?D:{'default':D};}class C extends k[aP(0x19a)][aP(0x18d)]{constructor(D,E){const aW=aP;super(D,E),this[aW(0x2b3)]=!0x1,this[aW(0x15d)]='',k['default'][aW(0x1dc)][aW(0x159)](this);}['getTech'](){const aX=aP;let D=this['player'][aX(0xa8)]({'IWillNotUseThisInPlugins':!0x0});if(D){if(q[aX(0x19a)][aX(0xde)](D))return new q['default'](D);if(v[aX(0x19a)][aX(0xde)](D))return new v['default'](D);if(w[aX(0x19a)][aX(0xde)](D))return new w['default'](D);}}[aP(0x1ba)](){const aY=aP;return aY(0x16a);}['getInstrumentationProvider'](){const aZ=aP;return aZ(0x227);}[aP(0x21e)](){const b0=aP;return this[b0(0x13d)]();}['getInstrumentationVersion'](){const b1=aP;return this[b1(0x27f)]();}[aP(0x291)](){const b2=aP;return m[b2(0x19a)][b2(0x1f8)];}['getPlayhead'](){const b3=aP;return this['player'][b3(0x9f)]&&b3(0x84)===this[b3(0x135)][b3(0x9f)]['state']&&this['player']['ads'][b3(0xb7)]&&this[b3(0x135)]['ads'][b3(0xb7)][b3(0xe5)]?0x3e8*this['player']['ads']['snapshot'][b3(0xe5)]:this[b3(0x135)][b3(0x173)]?0x3e8*this['player']['absoluteTime']():0x3e8*this[b3(0x135)][b3(0xe5)]();}[aP(0x170)](){const b4=aP;return this['player'][b4(0x147)]&&void 0x0!==this[b4(0x135)][b4(0x147)][b4(0x2b5)]?0x3e8*this[b4(0x135)][b4(0x147)][b4(0x2b5)]:0x3e8*this[b4(0x135)][b4(0x2b5)]();}[aP(0x261)](){const b5=aP;return this[b5(0x135)]?.['mediainfo']?.[b5(0x1a0)];}[aP(0x197)](){const b6=aP;return this[b6(0x135)]?.['mediainfo']?.['id'];}['getLanguage'](){const b7=aP;return this[b7(0x135)]?.[b7(0x196)]();}[aP(0xdf)](){const b8=aP;let D=this['getTech']();return D&&D['getSrc']?D[b8(0xdf)]():this['player']['currentSrc']();}[aP(0x13d)](){const b9=aP;return this[b9(0x135)]?.[b9(0x1a0)]()||b9(0x16a);}['getPlayerVersion'](){const ba=aP;return this[ba(0x135)]?.[ba(0x1f8)];}[aP(0x236)](){return this['player']['muted']();}[aP(0x109)](){const bb=aP;let D=this[bb(0x23c)]();return D?.['tech']?.[bb(0x246)]?.['bandwidth'];}[aP(0x229)](){const bc=aP;let D=this[bc(0x23c)]();if(D&&D[bc(0x229)])return D[bc(0x229)]();}['getRenditionBitrate'](){const bd=aP;let D=this[bd(0x23c)]();if(D&&D[bd(0x22e)])return D[bd(0x22e)]();}[aP(0x1d6)](){const be=aP;let D=this[be(0x23c)]();return D&&D[be(0x1d6)]?D[be(0x1d6)]():this[be(0x135)][be(0x255)]();}['getRenditionWidth'](){const bf=aP;let D=this[bf(0x23c)]();return D&&D[bf(0x29e)]?D[bf(0x29e)]():this[bf(0x135)][bf(0x1e7)]();}[aP(0xe3)](){const bg=aP;return this['player'][bg(0x225)]();}[aP(0x114)](){const bh=aP;return this[bh(0x135)]['autoplay']();}[aP(0x100)](){const bi=aP;return this[bi(0x135)][bi(0x100)]();}[aP(0xad)](){const bj=aP;return this['player'][bj(0xfa)]();}[aP(0xb3)](){const bk=aP;k['default'][bk(0x223)][bk(0x271)](this['player'],['adstart','adend',bk(0x1b1),bk(0x230),bk(0x10c),bk(0xf6)]),this['player']['on'](bk(0x187),this['onDownload'][bk(0x1c1)](this)),this['player']['on']('loadeddata',this[bk(0x250)][bk(0x1c1)](this)),this[bk(0x135)]['on']('loadedmetadata',this[bk(0x250)][bk(0x1c1)](this)),this['player']['on'](bk(0x230),this[bk(0x296)][bk(0x1c1)](this)),this[bk(0x135)]['on'](bk(0x15a),this[bk(0x119)][bk(0x1c1)](this)),this['player']['on'](bk(0x11e),this[bk(0x22c)][bk(0x1c1)](this)),this['player']['on'](bk(0x21d),this[bk(0x21b)][bk(0x1c1)](this)),this[bk(0x135)]['on'](bk(0x17b),this[bk(0x98)][bk(0x1c1)](this)),this['player']['on'](bk(0xa4),this[bk(0x16f)][bk(0x1c1)](this)),this[bk(0x135)]['on']('abort',this[bk(0x1ac)][bk(0x1c1)](this)),this[bk(0x135)]['on'](bk(0x107),this[bk(0x244)]['bind'](this)),this[bk(0x135)]['on']('dispose',this[bk(0x191)][bk(0x1c1)](this)),this[bk(0x135)]['on'](bk(0x1c0),this['onSeeking'][bk(0x1c1)](this)),this[bk(0x135)]['on'](bk(0x1b2),this['onSeeked'][bk(0x1c1)](this)),this['player']['on']('error',this['onError'][bk(0x1c1)](this)),this[bk(0x135)]['on'](bk(0x2ba),this[bk(0x1fb)][bk(0x1c1)](this)),this[bk(0x135)]['on'](bk(0x168),this[bk(0x23d)]['bind'](this)),this[bk(0x135)]['on'](bk(0x1c7),this[bk(0x242)][bk(0x1c1)](this));}[aP(0x199)](){const bl=aP;this['player'][bl(0x1fa)]('loadstart',this[bl(0x250)]),this['player'][bl(0x1fa)](bl(0x1df),this[bl(0x250)]),this['player'][bl(0x1fa)](bl(0x94),this[bl(0x250)]),this[bl(0x135)][bl(0x1fa)](bl(0x230),this[bl(0x296)]),this['player'][bl(0x1fa)](bl(0x15a),this[bl(0x119)]),this[bl(0x135)][bl(0x1fa)]('adend',this[bl(0x22c)]),this[bl(0x135)][bl(0x1fa)]('play',this[bl(0x21b)]),this['player'][bl(0x1fa)](bl(0x17b),this[bl(0x98)]),this[bl(0x135)][bl(0x1fa)]('playing',this[bl(0x16f)]),this['player']['off']('abort',this[bl(0x1ac)]),this[bl(0x135)]['off'](bl(0x107),this[bl(0x244)]),this['player'][bl(0x1fa)]('dispose',this['onDispose']),this[bl(0x135)][bl(0x1fa)](bl(0x1c0),this[bl(0x257)]),this[bl(0x135)]['off'](bl(0x1b2),this[bl(0x193)]),this[bl(0x135)][bl(0x1fa)](bl(0x156),this[bl(0x141)]),this['player'][bl(0x1fa)](bl(0x2ba),this[bl(0x1fb)]),this[bl(0x135)][bl(0x1fa)]('timeupdate',this['onTimeupdate']),this[bl(0x135)][bl(0x1fa)](bl(0x1c7),this[bl(0x242)][bl(0x1c1)](this));}['onDownload'](D){this['sendDownload']({'state':D['type']});}[aP(0x296)](){const bm=aP;this[bm(0x280)]||(z[bm(0x19a)][bm(0xde)](this[bm(0x135)])?this[bm(0x17e)](new z[(bm(0x19a))](this[bm(0x135)])):y['default']['isUsing'](this[bm(0x135)])?this[bm(0x17e)](new y['default'](this[bm(0x135)])):A[bm(0x19a)][bm(0xde)](this['player'])?this['setAdsTracker'](new A[(bm(0x19a))](this[bm(0x135)])):this[bm(0x17e)](new x['default'](this['player'])));}[aP(0x119)](){const bn=aP;this[bn(0x195)]=!0x0,this[bn(0x15d)]||(this[bn(0x15d)]=this[bn(0x135)]?.[bn(0x2a2)]?.[bn(0x12d)]()[bn(0x10a)]());}['onAdEnd'](){const bo=aP;this[bo(0x2b3)]&&this['sendEnd']();}['OnAdsAllpodsCompleted'](){const bp=aP;this[bp(0x244)][bp(0x1c1)](this),this[bp(0x294)]=!0x0;}['onPlay'](){this['sendRequest']();}['onPause'](){const bq=aP;this[bq(0xd6)]();}[aP(0x16f)](){const br=aP;this['sendResume'](),this[br(0x1ed)]();}[aP(0x1ac)](){const bs=aP;this[bs(0x264)]();}['onEnded'](){const bt=aP;this[bt(0x280)]?(this[bt(0x2b3)]=!0x0,this[bt(0x15d)]&&!this[bt(0x15d)][bt(0x1f0)](-0x1)&&this[bt(0x264)]()):this[bt(0x264)]();}[aP(0x191)](){const bu=aP;this[bu(0x264)]();}['onSeeking'](){const bv=aP;this[bv(0xbb)]();}[aP(0x193)](){const bw=aP;this[bw(0x9b)]();}['onError'](){const bx=aP,D=this[bx(0x135)][bx(0x156)](),E=D[bx(0xe4)],F=D['message'];this[bx(0x135)][bx(0x156)]&&this[bx(0x135)][bx(0x156)]()&&this[bx(0xc0)]({'errorCode':E,'errorName':F});}['onWaiting'](D){const by=aP;this[by(0x110)]();}[aP(0x23d)](D){const bz=aP;this[bz(0x25e)]()>0.1&&this['sendStart']();}}g[aP(0x19a)]=C;},0x14a:f=>{const bA=a0b;f[bA(0x115)]=JSON[bA(0x1d4)]('{\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}}');},0x152:(f,g)=>{const bB=a0b;Object[bB(0x27b)](g,bB(0x273),{'value':!0x0}),g[bB(0x19a)]=void 0x0;class h{constructor(j){const bC=bB;this['tech']=j[bC(0x17a)];}[bB(0xdf)](j){const bD=bB;try{return this[bD(0xa8)]['getManifestUri']();}catch(k){}return null;}[bB(0x22e)](j){const bE=bB;try{return this[bE(0xa8)]['getStats']()[bE(0x116)];}catch(k){}return null;}[bB(0x29e)](j){const bF=bB;try{var k=this[bF(0xa8)][bF(0xd3)]();for(var l in k){var m=k[l];if(m[bF(0x2b0)]&&bF(0xc3)===m['type'])return m[bF(0x270)];}}catch(n){}return null;}['getRenditionHeight'](j){const bG=bB;try{var k=this[bG(0xa8)]['getVariantTracks']();for(var l in k){var m=k[l];if(m[bG(0x2b0)]&&bG(0xc3)===m[bG(0x1f5)])return m[bG(0x232)];}}catch(n){}return null;}}g['default']=h,h[bB(0xde)]=function(j){return!!j['shakaPlayer'];};},0x199:(f,g)=>{const bH=a0b;Object['defineProperty'](g,bH(0x273),{'value':!0x0}),g['default']=void 0x0;class h{constructor(j){const bI=bH;this[bI(0xa8)]=j[bI(0x1fe)];}['getRenditionName'](){const bJ=bH;try{var j=this[bJ(0xa8)][bJ(0x222)]['media']();if(j&&j[bJ(0x1d7)])return j[bJ(0x1d7)][bJ(0xf5)];}catch(k){}return null;}[bH(0x22e)](){const bK=bH;try{var j=this['tech'][bK(0x222)]['media']();if(j&&j[bK(0x1d7)])return j[bK(0x1d7)]['BANDWIDTH'];}catch(k){}return null;}[bH(0x29e)](){const bL=bH;try{var j=this[bL(0xa8)]['playlists'][bL(0x1a7)]();if(j&&j[bL(0x1d7)]&&j[bL(0x1d7)][bL(0xb6)])return j[bL(0x1d7)][bL(0xb6)][bL(0x270)];}catch(k){}return null;}[bH(0x1d6)](){const bM=bH;try{var j=this[bM(0xa8)][bM(0x222)][bM(0x1a7)]();if(j&&j['attributes']&&j[bM(0x1d7)][bM(0xb6)])return j[bM(0x1d7)][bM(0xb6)][bM(0x232)];}catch(k){}return null;}}g[bH(0x19a)]=h,h['isUsing']=function(j){const bN=bH;return!!j[bN(0x1fe)];};},0x1d8:(f,g,h)=>{const bO=a0b;Object[bO(0x27b)](g,'__esModule',{'value':!0x0}),g[bO(0x19a)]=void 0x0;var j=l(h(0x22b)),k=l(h(0x14a));function l(o){const bP=bO;return o&&o[bP(0x273)]?o:{'default':o};}class m extends j['default'][bO(0x18d)]{[bO(0x1ba)](){const bQ=bO;return bQ(0x167);}['getTrackerVersion'](){const bR=bO;return k[bR(0x19a)][bR(0x1f8)];}[bO(0x236)](){const bS=bO;return this['player'][bS(0x1da)]();}[bO(0x1d6)](){return null;}[bO(0x29e)](){return null;}[bO(0x13d)](){const bT=bO;return bT(0x167);}[bO(0x27f)](){const bU=bO;return this[bU(0x135)][bU(0x9f)][bU(0x2b6)];}[bO(0xb3)](){const bV=bO;j[bV(0x19a)][bV(0x223)][bV(0x271)](this[bV(0x135)],[null,'ads-request',bV(0xbd),bV(0x15a),bV(0x11e),'adskip','adserror',bV(0x212),bV(0x189),bV(0xb4),bV(0x2a6),bV(0x158),bV(0x1e4),'ads-pause',bV(0xdd),bV(0x290)]),this['player']['on'](bV(0x146),this[bV(0xd9)]['bind'](this)),this['player']['on'](bV(0xbd),this['onAdload'][bV(0x1c1)](this)),this[bV(0x135)]['on'](bV(0x15a),this['onAdstart'][bV(0x1c1)](this)),this['player']['on']('adend',this[bV(0x16e)][bV(0x1c1)](this)),this[bV(0x135)]['on'](bV(0x1b1),this[bV(0x24b)][bV(0x1c1)](this)),this[bV(0x135)]['on'](bV(0x10c),this['onAdserror'][bV(0x1c1)](this)),this['player']['on'](bV(0x212),this[bV(0x20d)][bV(0x1c1)](this)),this[bV(0x135)]['on']('ads-pod-started',this[bV(0x22b)][bV(0x1c1)](this)),this[bV(0x135)]['on'](bV(0xb4),this[bV(0x93)][bV(0x1c1)](this)),this[bV(0x135)]['on'](bV(0x2a6),this[bV(0x12c)][bV(0x1c1)](this)),this[bV(0x135)]['on'](bV(0x158),this['onMidpoint'][bV(0x1c1)](this)),this['player']['on']('ads-third-quartile',this['onThirdQuartile'][bV(0x1c1)](this)),this[bV(0x135)]['on']('ads-pause',this[bV(0x2af)][bV(0x1c1)](this)),this[bV(0x135)]['on'](bV(0xdd),this['onAdsplay'][bV(0x1c1)](this));}[bO(0x199)](){const bW=bO;this[bW(0x135)]['off'](bW(0x146),this[bW(0xd9)]),this[bW(0x135)][bW(0x1fa)](bW(0xbd),this[bW(0x1e8)]),this[bW(0x135)][bW(0x1fa)]('adstart',this[bW(0x245)]),this['player'][bW(0x1fa)](bW(0x11e),this[bW(0x16e)]),this[bW(0x135)][bW(0x1fa)](bW(0x1b1),this[bW(0x24b)]),this[bW(0x135)][bW(0x1fa)](bW(0x10c),this['onAdserror']),this[bW(0x135)][bW(0x1fa)]('ads-click',this[bW(0x20d)]),this['player'][bW(0x1fa)](bW(0x189),this[bW(0x22b)]),this['player'][bW(0x1fa)](bW(0xb4),this[bW(0x93)]),this[bW(0x135)][bW(0x1fa)](bW(0x2a6),this[bW(0x12c)]),this[bW(0x135)][bW(0x1fa)](bW(0x158),this[bW(0xfe)]),this['player'][bW(0x1fa)](bW(0x1e4),this[bW(0x1d5)]),this[bW(0x135)][bW(0x1fa)]('ads-pause',this['onAdspause']),this[bW(0x135)][bW(0x1fa)]('ads-play',this[bW(0x1dd)]);}[bO(0xd9)](o){const bX=bO;this[bX(0x284)](),this[bX(0x237)]({'state':bX(0x146)});}[bO(0x1e8)](o){const bY=bO;this[bY(0x237)]({'state':'ads-load'});}[bO(0x245)](o){const bZ=bO;this['sendRequest'](),this[bZ(0x1b0)]();}['onAdend'](o){const c0=bO;this[c0(0x264)]();}[bO(0x24b)](o){this['sendEnd']({'skipped':!0x0});}[bO(0x1a8)](o){const c1=bO;this[c1(0xc0)]();}['onAdsClick'](o){const c2=bO;this[c2(0x2bd)]({'url':'unknown'});}[bO(0x22b)](o){this['sendAdBreakStart']();}['onPodEnd'](o){const c3=bO;this[c3(0x1e6)]();}['onFirstQuartile'](){const c4=bO;this[c4(0x157)]({'quartile':0x1});}[bO(0xfe)](){const c5=bO;this[c5(0x157)]({'quartile':0x2});}['onThirdQuartile'](){const c6=bO;this[c6(0x157)]({'quartile':0x3});}[bO(0x2af)](){const c7=bO;this[c7(0xd6)]();}[bO(0x1dd)](){const c8=bO;this[c8(0x1cf)]();}}g['default']=m;},0x22b:(f,g,j)=>{j['r'](g),j['d'](g,{'__esModule':()=>w,'default':()=>x}),function(y){const c9=a0b,z=v,A=y();for(;;)try{if(0x91c9d===-parseInt(z(0x265))/0x1*(-parseInt(z(0x2c2))/0x2)+-parseInt(z(0x1e5))/0x3+parseInt(z(0x29a))/0x4+parseInt(z(0x24d))/0x5+-parseInt(z(0x214))/0x6*(-parseInt(z(0x21a))/0x7)+parseInt(z(0x252))/0x8*(parseInt(z(0x2d2))/0x9)+-parseInt(z(0x258))/0xa*(parseInt(z(0x241))/0xb))break;A['push'](A[c9(0x142)]());}catch(B){A[c9(0x205)](A[c9(0x142)]());}}(u);var k={0x33:(y,z)=>{const A=v;Object['defineProperty'](z,A(0x16f),{'value':!0x0}),z[A(0x2b7)]=void 0x0;class B{}B[A(0x2db)]={'PRE':A(0x197),'MID':A(0x199),'POST':A(0x2c7)},z[A(0x2b7)]=B;},0x90:(y,z)=>{const ca=a0b,A=v;Object[A(0x15c)](z,ca(0x273),{'value':!0x0}),z[A(0x2b7)]=void 0x0;class B{static[ca(0x156)](){const cb=ca,F=A;for(var G=arguments[cb(0x25b)],H=new Array(G),I=0x0;I<G;I++)H[I]=arguments[I];C(H,B[F(0x1a3)][F(0x208)],F(0x1fe));}static[A(0x1a4)](){const F=A;for(var G=arguments[F(0x238)],H=new Array(G),I=0x0;I<G;I++)H[I]=arguments[I];C(H,B[F(0x1a3)][F(0x19c)],F(0x15d));}static[A(0x2d7)](){const F=A;for(var G=arguments[F(0x238)],H=new Array(G),I=0x0;I<G;I++)H[I]=arguments[I];C([][F(0x159)][F(0x2e0)](arguments),B[F(0x1a3)][F(0x203)],F(0x2d6));}static[A(0x2cc)](){const cc=ca;for(var F=arguments[A(0x238)],G=new Array(F),H=0x0;H<F;H++)G[H]=arguments[H];C(G,B[cc(0x2b7)]['DEBUG'],'indigo');}static[A(0x26e)](F,G,H){const cd=ca,I=A;try{if(B[I(0x242)]<=B[I(0x1a3)][I(0x189)]){H=H||function(L){const M=I;B[M(0x2cc)](M(0x2b0)+L[M(0x1af)]);};var J=[cd(0x219),I(0x1b8),I(0x179),I(0x2b1),I(0x23e),I(0x22c),I(0x25e),I(0x14c),I(0x2a2),I(0x221),'seek',I(0x264),I(0x148),I(0x176),I(0x1b0),I(0x273),I(0x281),I(0x27b)];G&&(null===G[0x0]?(G[I(0x207)](),J=G):J=J[I(0x161)](G));for(var K=0x0;K<J['length'];K++)I(0x29f)==typeof F?F[I(0x2e0)](window,J[K],H):F['on']?F['on'](J[K],H):F[I(0x213)]?F[I(0x213)](J[K],H):F[I(0x16c)]?F[I(0x16c)](J[K],H):B[cd(0xa3)](I(0x1db),F);}}catch(L){B[I(0x1a4)](L);}}}function C(F,G,H){const ce=ca,I=A;G=G||B[I(0x1a3)]['NOTICE'],H=H||I(0x2d6);var J,K,L=B[I(0x21e)];B[ce(0xef)]&&(L+='['+('0'+(J=new Date())[ce(0x174)]())[I(0x159)](-0x2)+':'+('0'+J[I(0x24b)]())[I(0x159)](-0x2)+':'+('0'+J[I(0x1e7)]())[I(0x159)](-0x2)+'.'+('00'+J[I(0x18a)]())[I(0x159)](-0x3)+']\x20'),L+=E[G]+':',B[I(0x242)]<=G&&G!==B[ce(0x2b7)][I(0x2af)]&&(!B[ce(0x295)]||I(0x1ef)!=typeof document&&document[I(0x29e)]?D(F,L):(K=G===B[I(0x1a3)][ce(0x24f)]&&console[ce(0x156)]?console['error']:G===B[I(0x1a3)][I(0x19c)]&&console[I(0x1a4)]?console[I(0x1a4)]:G===B[ce(0x2b7)][I(0x189)]&&console[ce(0x1c2)]&&null==window[ce(0x95)]?console['debug']:console['log'],L='%c'+L,F[I(0x271)](0x0,0x0,L,I(0x15e)+H),K[I(0x2ac)](console,F)));}function D(F,G){const H=A;if(F instanceof Array){for(var I in F)D(F[I],G);}else H(0x18f)==typeof F?console[H(0x1d9)](G+'\x20'+F):(console[H(0x1d9)](G+'↵'),console[H(0x1d9)](F));}B[A(0x1a3)]={'SILENT':0x5,'ERROR':0x4,'WARNING':0x3,'NOTICE':0x2,'DEBUG':0x1,'ALL':0x0},B['level']=B[A(0x1a3)][A(0x208)],B[ca(0x295)]=!0x0,B[A(0x291)]=!0x0,B[ca(0x259)]=A(0x1bd);const E={0x4:'e',0x3:'w',0x2:'n',0x1:'d'};!(function(){const cf=ca,F=A;if(F(0x1ef)!=typeof window&&window[F(0x190)]&&window[cf(0x192)]['search']){var G=/\?.*&*nrvideo-debug=(.+)/i[cf(0x1a5)](window[F(0x190)][cf(0x209)]);null!==G&&(F(0x1c1)===G[0x1]?B[cf(0x211)]=B[F(0x1a3)][F(0x204)]:B[cf(0x211)]=G[0x1]),null!==/\?.*&*nrvideo-colors=false/i[F(0x20f)](window[F(0x190)][F(0x215)])&&(B[F(0x2d4)]=!0x1);}}()),z[A(0x2b7)]=B;},0x92:(y,z)=>{const ch=a0b,A=v;Object[A(0x15c)](z,A(0x16f),{'value':!0x0}),z[A(0x2b7)]=void 0x0,z[A(0x2b7)]=class{constructor(B){this[A(0x1e2)]={};}['send'](B,C){const cg=a0b,D=A;C=Object[cg(0x123)](C||{},this[D(0x1e2)]);}[A(0x1a2)](B,C){this[A(0x1e2)][B]=C;}[ch(0x238)](B){const ci=ch;this[A(0x1e2)][ci(0xb0)](B);}};},0x12e:(y,z,A)=>{const cj=a0b,B=v;Object[cj(0x27b)](z,B(0x16f),{'value':!0x0}),z[B(0x2b7)]=void 0x0;var C=G(A(0x14a)),D=G(A(0x238)),E=G(A(0x1c7)),F=G(A(0x33));function G(I){return I&&I[B(0x16f)]?I:{'default':I};}class H extends D[B(0x2b7)]{constructor(I){const ck=cj,J=B;super(),this[J(0x28a)]={},this[J(0x1c6)]=null,this[J(0x1a6)]=null,this[J(0x158)]=new E['default'](),this[ck(0x28b)][J(0x14a)](),this[J(0x2cb)]=F[J(0x2b7)][J(0x157)],this[ck(0xea)]=F[J(0x2b7)][ck(0x235)],I=I||{},this[J(0x1a5)](I);}[B(0x1a5)](I){const cl=cj,J=B;I&&(I[J(0x1a6)]&&(this[cl(0x231)]=I[J(0x1a6)]),I[J(0x28a)]&&(this[J(0x28a)]=I[J(0x28a)]),I[J(0x1c6)]&&(this[J(0x1c6)]=I[J(0x1c6)]));}['dispose'](){const cm=cj;this[cm(0x199)]();}[B(0x2ad)](){}[B(0x226)](){}[B(0x248)](){const cn=cj,I=B;return this[I(0x227)][I(0x17b)]?0x7d0:this[I(0x1c6)]?this[cn(0x1ee)]:this[I(0x1a6)]&&this[cn(0x231)][I(0x1c6)]?this[I(0x1a6)][I(0x1c6)]:0x7530;}[B(0x286)](){const I=B;this[I(0x1a1)]=setInterval(this[I(0x2bb)][I(0x145)](this),Math[I(0x140)](this[I(0x248)](),0x7d0));}[B(0x24c)](){const co=cj,I=B;this[co(0x2a0)]&&clearInterval(this[I(0x1a1)]);}[B(0x2bb)](I){const J=B;this[J(0x219)](H[J(0x245)][J(0x1d0)],I);}[B(0x2b2)](I,J){const cp=cj,K=B;(I=I||{})[K(0x23f)]=this[cp(0x1ba)](),I[K(0x21b)]=this[cp(0x291)](),I[K(0x1e8)]=C[cp(0x19a)][K(0x232)],I[K(0x1ae)]=this[K(0x158)][K(0x167)]();for(let L in this[K(0x28a)])I[L]=this[K(0x28a)][L];return null!=document[K(0x183)]&&(I[K(0x27c)]=document[cp(0x228)]),I;}[B(0x1fa)](){const I=B;return C[I(0x2b7)][I(0x232)];}['getTrackerName'](){return B(0x2d0);}[B(0x219)](I,J){const K=B;this[K(0x18e)](K(0x1f8),I,this[K(0x2b2)](J));}[B(0x257)](I,J){const cq=cj,K=B;this[cq(0x190)](K(0x1f4),I,this[K(0x2b2)](J));}[B(0x256)](I,J){const K=B;let L=this[K(0x17c)]()?K(0x2c3):K(0x17e);this[K(0x18e)](K(0x1aa),I,this[K(0x2b2)](J,L));}[cj(0x9c)](I,J){const cr=cj,K=B;this[cr(0x190)](K(0x21f),I,this['getAttributes'](J,'customAction'));}}H[B(0x245)]={'HEARTBEAT':B(0x1d0)},z['default']=H;},0x148:(y,z,A)=>{const cs=a0b,B=v;Object[B(0x15c)](z,cs(0x273),{'value':!0x0}),z[B(0x2b7)]=void 0x0;var C=E(A(0x1c7)),D=E(A(0x90));function E(F){const ct=cs;return F&&F[ct(0x273)]?F:{'default':F};}z[B(0x2b7)]=class{constructor(){const cu=cs,F=B;this[F(0x267)](),this[cu(0xc5)]=Date[cu(0x27e)](),this[cu(0x125)]=!0x0,this[F(0x1cc)]=0x0,this[F(0x216)]=0x0;}[B(0x267)](){const cv=cs,F=B;this[F(0x2c6)]=null,this[F(0x187)]=0x0,this[cv(0x1c8)]=!0x1,this[F(0x1ed)]=0x0,this[F(0x1d1)]=0x0,this[F(0x18c)]=0x0,this[F(0x299)]=0x0,this[F(0x1b7)]=0x0,this[F(0x1c5)]=!0x1,this[F(0x29b)]=!0x1,this[F(0x224)](),this[F(0x251)]();}[B(0x224)](){const cw=cs,F=B;this[F(0x181)]=!0x1,this[cw(0x224)]=!0x1,this[F(0x22b)]=!0x1,this[F(0x1b2)]=!0x1,this[cw(0x29c)]=!0x1,this['isBuffering']=!0x1,this[cw(0x80)]=!0x1;}[cs(0xf3)](){const cx=cs,F=B;this[F(0x28e)]=new C[(F(0x2b7))](),this[cx(0x19c)]=new C[(F(0x2b7))](),this[cx(0x144)]=new C['default'](),this[F(0x21c)]=new C[(F(0x2b7))](),this[F(0x26c)]=new C[(F(0x2b7))](),this[F(0x1da)]=new C[(F(0x2b7))](),this[F(0x20d)]=new C[(F(0x2b7))](),this[F(0x165)]=new C[(F(0x2b7))](),this[cx(0x15c)]=new C[(F(0x2b7))](),this[cx(0x2ac)]=new C[(F(0x2b7))](),this[F(0x220)]=new C[(F(0x2b7))](),this[F(0x27d)]=new C[(F(0x2b7))](),this[cx(0x1e5)]=new C[(F(0x2b7))](),this[cx(0x1aa)]=new C[(cx(0x19a))](),this[F(0x2c5)]={},this[F(0x2a0)]=new C[(F(0x2b7))](),this[F(0x191)]=new C[(F(0x2b7))]();}[B(0x17c)](){return this[B(0x17b)];}[cs(0x11f)](F){this[B(0x17b)]=F;}[cs(0x8a)](F){const G=B;this[G(0x2c5)][F]=new C[(G(0x2b7))](),this[G(0x2c5)][F][G(0x14a)]();}[B(0x1b1)](F){delete this[B(0x2c5)][F];}[B(0x1ca)](){const cy=cs,F=B;if(!this[F(0x2c6)]){let G=new Date()[F(0x1ba)](),H=Math[F(0x263)]()[F(0x25a)](0x24)[F(0x162)](0x2)+Math[F(0x263)]()[cy(0x23a)](0x24)[F(0x162)](0x2);this[F(0x2c6)]=G+'-'+H;}return this['_viewSession'];}[B(0x13b)](){const F=B;return this[F(0x1ca)]()+'-'+this[F(0x187)];}[B(0x20e)](F){const cz=cs,G=B;F=F||{},this[G(0x17c)]()?(this[cz(0x224)]&&(F[G(0x13d)]=this['timeSinceRequested'][G(0x167)](),F[cz(0xa9)]=this[G(0x165)][G(0x167)]()),this[cz(0x186)]&&(F[G(0x211)]=this[cz(0x19c)][cz(0xe7)]()),this[G(0x1b2)]&&(F[G(0x152)]=this[G(0x275)][G(0x167)]()),this['isBuffering']&&(F[G(0x2de)]=this['timeSinceBufferBegin'][G(0x167)]()),this[G(0x2ae)]&&(F[G(0x14f)]=this[G(0x21c)][G(0x167)]()),this[G(0x1c5)]&&(F[cz(0xa5)]=this[G(0x1da)][G(0x167)]()),F[G(0x1d1)]=this[G(0x1d1)]):(this['isRequested']&&(F[cz(0x1bd)]=this[G(0x28e)][G(0x167)](),F[G(0x165)]=this[G(0x165)][G(0x167)]()),this[G(0x22b)]&&(F[G(0x144)]=this[G(0x144)][G(0x167)]()),this[G(0x1b2)]&&(F[G(0x275)]=this[G(0x275)][G(0x167)]()),this[G(0x23b)]&&(F[G(0x26c)]=this[G(0x26c)][G(0x167)]()),this[G(0x2ae)]&&(F[G(0x21c)]=this[G(0x21c)][G(0x167)]()),F[G(0x220)]=this[G(0x220)][G(0x167)](),F[G(0x18c)]=this[cz(0x1ab)]),F[G(0x1ed)]=this[G(0x1ed)],this[G(0x17c)]()||(this[G(0x1c9)][G(0x25d)]>0x0?F[cz(0x1aa)]=this[G(0x1c9)][cz(0xe7)]():F[cz(0x1aa)]=0x0,this[G(0x182)]?this[G(0x1c9)][G(0x14a)]():this[G(0x1c9)][G(0x267)](),this[cz(0x113)]+=F[G(0x1c9)],F[G(0x299)]=this[G(0x299)]);for(const [H,I]of Object[G(0x1e9)](this[G(0x2c5)]))F[H]=I[G(0x167)]();return F;}[B(0x2ca)](F){const G=B;let H='';return H=F?G(0x2cd):this[G(0x2ae)]?G(0x29c):this[G(0x1b2)]?G(0x25e):G(0x1ee),D[G(0x2b7)][G(0x2cc)](G(0x184)+H),H;}[B(0x174)](){this[B(0x187)]++;}[B(0x186)](){const cA=cs;return!this[B(0x181)]&&(this[cA(0x26a)]=!0x0,!0x0);}[B(0x196)](){const cB=cs,F=B;return!this[F(0x250)]&&(this[F(0x250)]=!0x0,this[F(0x220)][cB(0x23e)](),this[cB(0x1bd)][F(0x14a)](),!0x0);}[B(0x24a)](){const cC=cs,F=B;return!(!this[F(0x250)]||this[F(0x22b)]||(this[cC(0x208)]()?this[F(0x1d1)]++:this[cC(0x1ab)]++,this[F(0x22b)]=!0x0,this[cC(0x80)]=!0x0,this[cC(0x19c)][F(0x14a)](),this[F(0x1c9)][cC(0xba)](),0x0));}[cs(0x8d)](){const cD=cs,F=B;return!!this[F(0x250)]&&(this[F(0x1ed)]=0x0,this['resetFlags'](),this[F(0x28e)][F(0x14e)](),this[F(0x144)][cD(0x25a)](),this[F(0x1c9)][F(0x14e)](),!0x0);}[B(0x293)](){const cE=cs,F=B;return!(!this[F(0x22b)]||this[F(0x1b2)]||(this[F(0x1b2)]=!0x0,this[F(0x182)]=!0x1,this[F(0x275)][cE(0xba)](),this[cE(0x1aa)][F(0x14e)](),this[cE(0x2aa)]['reset'](),this[F(0x23b)]&&(this[F(0x216)]+=this[F(0x191)][F(0x167)]()),this[F(0x2a0)][F(0x14a)](),0x0));}[B(0x1d8)](){const F=B;return!(!this[F(0x22b)]||!this[F(0x1b2)]||(this[F(0x1b2)]=!0x1,this[F(0x182)]=!0x0,this[F(0x275)]['stop'](),this[F(0x27d)][F(0x14a)](),this[F(0x298)]?(this[F(0x1cc)]=this[F(0x2a0)][F(0x167)](),this['_hb']=!0x1):(this[F(0x23b)]&&this[F(0x191)][F(0x14a)](),this[F(0x1cc)]+=this[F(0x2a0)][F(0x167)]()),0x0));}[B(0x1f5)](){const F=B;return!(!this[F(0x250)]||this[F(0x23b)]||(this[F(0x23b)]=!0x0,this[F(0x182)]=!0x1,this[F(0x26c)][F(0x14a)](),this[F(0x191)][F(0x14a)](),0x0));}['goBufferEnd'](){const cF=cs,F=B;return!(!this[F(0x250)]||!this[F(0x23b)]||(this[F(0x23b)]=!0x1,this[F(0x182)]=!0x0,this[F(0x26c)][cF(0x25a)](),this[F(0x298)]?(this[F(0x216)]=this[F(0x191)][F(0x167)](),this[F(0x298)]=!0x1):this[cF(0xf7)]+=this[cF(0xd5)][F(0x167)](),0x0));}[cs(0x13e)](){const F=B;return!(!this[F(0x22b)]||this[F(0x2ae)]||(this['isSeeking']=!0x0,this[F(0x182)]=!0x1,this[F(0x21c)][F(0x14a)](),this[F(0x2c1)]['reset'](),0x0));}[B(0x2a5)](){const F=B;return!(!this[F(0x22b)]||!this[F(0x2ae)]||(this[F(0x2ae)]=!0x1,this[F(0x182)]=!0x0,this[F(0x21c)][F(0x14e)](),this[F(0x2c1)][F(0x14a)](),0x0));}[B(0x2d8)](){const cG=cs;return!this[B(0x1c5)]&&(this[cG(0x152)]=!0x0,this[cG(0x131)][cG(0xba)](),!0x0);}['goAdBreakEnd'](){const F=B;return!!this[F(0x1c5)]&&(this[F(0x250)]=!0x1,this[F(0x1c5)]=!0x1,this[F(0x1b7)]=this[F(0x1da)][F(0x167)](),this[F(0x1da)][F(0x14e)](),!0x0);}[B(0x1d4)](){const F=B;this[F(0x20d)][F(0x14a)]();}[B(0x16d)](){const cH=cs;this[B(0x165)][cH(0xba)]();}[B(0x1eb)](){const F=B;this[F(0x234)][F(0x14a)]();}[cs(0x10d)](){const F=B;this[F(0x143)][F(0x14a)]();}[B(0x249)](){const F=B;this['isError']=!0x0,this[F(0x1ed)]++;}[B(0x153)](){const F=B;this[F(0x220)][F(0x14a)]();}};},0x14a:y=>{const z=v;y['exports']=JSON[z(0x28f)](z(0x297));},0x18f:(y,z,A)=>{const cI=a0b,B=v;Object[B(0x15c)](z,B(0x16f),{'value':!0x0}),z[B(0x2b7)]=void 0x0;var C=E(A(0x90)),D=E(A(0x92));function E(K){return K&&K[B(0x16f)]?K:{'default':K};}class F{static[cI(0x159)](K){const cJ=cI,L=B;K['on']&&K[L(0x18e)]?(H[cJ(0x205)](K),K['on']('*',J),L(0x29f)==typeof K[L(0x253)]&&K[L(0x253)]()):C[L(0x2b7)][L(0x2a2)](L(0x2aa),K);}static[B(0x225)](K){const L=B;K[L(0x23c)]('*',J),K[L(0x1b0)]();let M=H[L(0x17d)](K);-0x1!==M&&H[L(0x271)](M,0x1);}static[B(0x25f)](){return H;}static[cI(0xfd)](){return G;}static[B(0x269)](K){G=K;}static[cI(0x17f)](K,L,M){const cK=cI,N=B;null!=F[N(0x1ec)]()&&F[N(0x1ec)]()instanceof D[N(0x2b7)]?F[N(0x1ec)]()[N(0x246)](K,L,M):N(0x1ef)!=typeof newrelic&&newrelic[cK(0x1f6)]?(void 0x0!==M&&(M[N(0x1e4)]=window[N(0x13f)][cK(0x27e)]()/0x3e8),newrelic[N(0x17f)](K,{'actionName':L,...M})):I||(C[N(0x2b7)][N(0x2a2)]('newrelic.recordCustomEvent()\x20is\x20not\x20available.',N(0x1bb)),I=!0x0);}static[B(0x2a4)](K){const L=B;F[L(0x246)](L(0x208),K);}}let G,H=[],I=!0x1;function J(K){const cL=cI,L=B;let M=function(N){let O={};for(let P in N)null!==N[P]&&void 0x0!==N[P]&&(O[P]=N[P]);return O;}(K[L(0x15b)]);C[L(0x2b7)][L(0x242)]<=C[L(0x2b7)][L(0x1a3)][L(0x189)]?C[L(0x2b7)][L(0x2d7)](cL(0x178),K[L(0x1af)],M):C[L(0x2b7)][L(0x2d7)](L(0x1b4),K[L(0x1af)]),F[L(0x246)](K[L(0x1ac)],K[L(0x1af)],M);}z[cI(0x19a)]=F;},0x196:(y,z,A)=>{const cS=a0b,B=v;Object[B(0x15c)](z,B(0x16f),{'value':!0x0}),z[B(0x2b7)]=void 0x0;var C=E(A(0x92)),D=E(A(0x90));function E(G){return G&&G[B(0x16f)]?G:{'default':G};}class F extends C[B(0x2b7)]{constructor(G,H){const I=B;super(),this[I(0x22d)]=G,this[I(0x284)]=H,this[I(0x26d)]='',this[I(0x20a)]=[],this[I(0x13e)]=!0x1,this['_lastTimestamp']=0x0,setInterval(()=>{const J=I;this[J(0x2a6)](F[J(0x230)][J(0x236)]);},0x2710);}[B(0x246)](G,H,I){const cM=a0b,J=B;if(this[cM(0x1ff)]=G,super[J(0x246)](H,I),this[J(0x20a)][J(0x238)]<0x1f4){(I=this[J(0x1e1)](I))[J(0x1ac)]=this[J(0x26d)],I[J(0x2d3)]=H;let K=Date[J(0x262)]();K>this[J(0x2ba)]?(I[J(0x156)]=K,this[J(0x2ba)]=K):(this[J(0x2ba)]++,I[J(0x156)]=this['_lastTimestamp']),this[J(0x20a)][J(0x2b9)](I);}}[B(0x1e1)](G){const cN=a0b,H=B;G[H(0x1d2)]=window[cN(0x192)][H(0x2a3)],G[H(0x206)]=window[cN(0x192)][cN(0x293)]+window[cN(0x192)][H(0x26b)],G[H(0x19e)]=document[H(0x1c4)];let I=H(0x1a7);-0x1!=navigator[H(0x1ce)][cN(0x22f)](H(0x154))?I=cN(0x10b):-0x1!=navigator[H(0x1ce)][H(0x17d)](H(0x282))?I=H(0x282):-0x1!=navigator[H(0x1ce)][H(0x17d)](cN(0x96))?I=cN(0x96):navigator[H(0x1ce)][cN(0x171)](/iPhone|iPad|iPod/i)?I=H(0x210):-0x1!=navigator[H(0x1ce)][H(0x17d)](H(0x233))?I=H(0x233):-0x1!=navigator[cN(0x2b1)][H(0x17d)](H(0x2c9))&&(I=H(0x2a7)),G[H(0x1cb)]=I;let J=H(0x1a7);if(-0x1!=navigator[H(0x1ce)][H(0x17d)](H(0x285))?J=H(0x285):-0x1!=navigator[cN(0x2b1)][H(0x17d)](H(0x20b))?J=cN(0xb8):-0x1!=navigator[cN(0x2b1)][H(0x17d)](H(0x2bf))?J='IE':-0x1!=navigator[H(0x1ce)][H(0x17d)](H(0x1a8))?J=H(0x192):-0x1!=navigator[cN(0x2b1)][H(0x17d)](H(0x2bc))?J=cN(0x120):-0x1!=navigator[cN(0x2b1)][H(0x17d)](H(0x222))&&(J=H(0x222)),G[H(0x1a0)]=J,!G[H(0x2a9)]){let K=H(0x1a7);K=navigator[cN(0x2b1)][H(0x247)](/Tablet|iPad/i)?H(0x1c3):navigator[H(0x1ce)]['match'](/Mobile|Windows Phone|Lumia|Android|webOS|iPhone|iPod|Blackberry|PlayBook|BB10|Opera Mini|\bCrMo\/|Opera Mobi/i)?H(0x171):null!=window[H(0x28d)]?H(0x2da):H(0x283),G[H(0x2a9)]=K;}return G;}[B(0x2a6)](G){const cO=a0b,H=B;G==F[H(0x230)][H(0x236)]&&this[H(0x13e)]?D[cO(0x19a)][H(0x2cc)](H(0x16a)):(this[H(0x13e)]=!0x0,this[H(0x20a)][H(0x238)]>0x0?(D[H(0x2b7)][H(0x2cc)](cO(0x277),this[H(0x20a)]),this[H(0x177)](this[cO(0x24e)][H(0x280)]())):this[H(0x13e)]=!0x1);}[B(0x177)](G){const cP=a0b,H=B,I={'method':H(0x13c),'headers':{'Content-Type':H(0x231),'X-Insert-Key':this[H(0x284)]},'body':JSON[H(0x169)](G)},J=H(0x19f)+this[H(0x22d)]+cP(0x217);fetch(J,I)[H(0x18b)](K=>K['json']())[cP(0x139)](K=>{const cQ=cP;this[cQ(0xf2)](K);})[cP(0x19b)](K=>{const cR=cP,L=H;D[cR(0x19a)][cR(0x156)](L(0x295),K,G),this[L(0x20a)]['push'](G),this[L(0x13e)]=!0x1;});}[B(0x2e1)](G){const H=B;this[H(0x2a6)](F[H(0x230)][H(0x19d)]);}}F[cS(0x111)]={'TIMER':B(0x236),'FETCH':B(0x19d)},z[B(0x2b7)]=F;},0x1c7:(y,z)=>{const cU=a0b,A=v;Object[A(0x15c)](z,A(0x16f),{'value':!0x0}),z[A(0x2b7)]=void 0x0;class B{constructor(){this[A(0x267)]();}[A(0x267)](){const cT=a0b;this['startTime']=0x0,this['stopTime']=0x0,this[cT(0x2ae)]=0x0;}[cU(0xe7)](){const cV=cU,C=A;return this[cV(0x1c5)]?this[C(0x243)]+(new Date()[C(0x1ba)]()-this[cV(0x1c5)]):null;}[cU(0xba)](){const C=A;this[C(0x25d)]=new Date()[C(0x1ba)](),this[C(0x1c2)]=0x0;}[cU(0x25a)](){const cW=cU,C=A;return this[C(0x1c2)]=new Date()[cW(0x169)](),this[C(0x167)]();}[A(0x235)](){const cX=cU,C=A;var D=new B();return D[C(0x25d)]=this[C(0x25d)],D[cX(0x28c)]=this[C(0x1c2)],D[C(0x243)]=this[C(0x243)],D;}}z[A(0x2b7)]=B;},0x238:(y,z)=>{const A=v;Object[A(0x15c)](z,A(0x16f),{'value':!0x0}),z[A(0x2b7)]=void 0x0,z[A(0x2b7)]=class{['on'](B,C){const cY=a0b,D=A;if(this[cY(0x185)]=this[cY(0x185)]||{},D(0x29f)==typeof C)return this[D(0x1ff)][B]=this[cY(0x185)][B]||[],this[cY(0x185)][B][D(0x2b9)](C),this;}['off'](B,C){const cZ=a0b,D=A;if(this[D(0x1ff)]=this['_listeners']||{},this[D(0x1ff)][B]){var E=this[D(0x1ff)][B][D(0x17d)](C);-0x1!==E&&this[cZ(0x185)][B][cZ(0x2ab)](E,0x1);}return this;}['emit'](B,C,D){const d0=a0b,E=A;return this[d0(0x185)]=this[E(0x1ff)]||{},D=D||{},Array[E(0x16e)](this[E(0x1ff)][C])&&this[E(0x1ff)][C][d0(0x243)](F=>{F[E(0x2e0)](this,{'eventType':B,'type':C,'data':D,'target':this});}),Array[E(0x16e)](this[E(0x1ff)]['*'])&&this[E(0x1ff)]['*'][d0(0x243)](F=>{F['call'](this,{'eventType':B,'type':C,'data':D,'target':this});}),this;}};},0x319:(y,z,A)=>{const d1=a0b,B=v;Object[B(0x15c)](z,d1(0x273),{'value':!0x0}),z[d1(0x19a)]=void 0x0;var C=G(A(0x90)),D=G(A(0x12e)),E=G(A(0x148)),F=G(A(0x14a));function G(J){return J&&J[B(0x16f)]?J:{'default':J};}class H extends D[B(0x2b7)]{constructor(J,K){const d2=d1,L=B;super(),this[L(0x227)]=new E[(L(0x2b7))](),this[L(0x2ab)]=null,this[L(0x2b6)]=null,this[L(0x1de)]=null,K=K||{},this[L(0x1a5)](K),J&&this[d2(0x1a4)](J,K[d2(0x2bf)]),C[L(0x2b7)][L(0x2d7)](L(0x294)+this[L(0x2ce)]()+'\x20v'+this[L(0x1fa)]()+L(0x202));}[B(0x178)](J){const d3=d1;this[d3(0x8e)]=J;}[B(0x1a5)](J){const d4=d1,K=B;J&&(J[d4(0x280)]&&this[d4(0x17e)](J[K(0x2ab)]),K(0x22e)==typeof J['isAd']&&this['setIsAd'](J[K(0x17c)]),D[K(0x2b7)][K(0x212)][K(0x1a5)][K(0x2ac)](this,arguments));}[B(0x1e0)](J,K){const d5=d1,L=B;(this[L(0x27e)]||this[L(0x260)])&&this[d5(0xf6)](),L(0x1ef)!=typeof document&&document[L(0x141)]&&('string'==typeof J&&(J=document[L(0x141)](J)),L(0x18f)==typeof K&&(K=document[L(0x141)](K))),K=K||J,this[d5(0x135)]=J,this[L(0x260)]=K,this[L(0x2ad)]();}[B(0x17c)](){const J=B;return this[J(0x227)][J(0x17c)]();}[d1(0x11f)](J){const K=B;this[K(0x227)][K(0x201)](J);}[d1(0x17e)](J){const d6=d1,K=B;this[K(0x14b)](),J&&(this[K(0x2ab)]=J,this[d6(0x280)][K(0x201)](!0x0),this['adsTracker'][K(0x1a6)]=this,this[d6(0x280)]['on']('*',I[K(0x145)](this)));}[B(0x14b)](){const J=B;this[J(0x2ab)]&&(this[J(0x2ab)][J(0x23c)]('*',I),this[J(0x2ab)][J(0x1b0)]());}[B(0x1b0)](){const d7=d1,J=B;this[d7(0x1a3)](),this[d7(0x221)](),this[J(0x226)](),this[J(0x27e)]=null,this[J(0x260)]=null;}[d1(0xb3)](){}[B(0x226)](){}[d1(0x1bf)](){const J=B;return this[J(0x1a6)]?this[J(0x1a6)][J(0x13b)]():this[J(0x227)][J(0x13b)]();}[B(0x1ca)](){const d8=d1,J=B;return this[J(0x1a6)]?this[J(0x1a6)][d8(0x112)]():this[J(0x227)][J(0x1ca)]();}[B(0x270)](){return null;}[B(0x200)](){return null;}[B(0x217)](){return null;}[d1(0x109)](){return null;}[d1(0x2a8)](){const d9=d1,J=B;if(this[d9(0x2bf)]&&this[J(0x260)][J(0x2b8)]){let K;if(this[J(0x149)]){K=this[J(0x260)][J(0x2b8)];let L=K-this[d9(0x1de)],M=this[J(0x248)]()/0x3e8;K=Math[J(0x1c0)](L/M*0x8);}return this[J(0x149)]=this['tag']['webkitVideoDecodedByteCount'],K||null;}}['getRenditionName'](){return null;}[B(0x26f)](){return null;}[B(0x1dd)](J){const da=d1,K=B;let L,M=this[K(0x26f)]();return this[K(0x17c)]()?(L=this[K(0x2df)],J&&(this[da(0x203)]=M)):(L=this[K(0x2cf)],J&&(this[K(0x2cf)]=M)),M&&L?M>L?'up':M<L?da(0x88):null:null;}[B(0x1f3)](){const db=d1,J=B;return this[db(0x2bf)]?this[J(0x260)][J(0x228)]:null;}[B(0x180)](){const dc=d1,J=B;return this[J(0x260)]?this[dc(0x2bf)][J(0x173)]:null;}[B(0x277)](){const J=B;return this[J(0x260)]?this[J(0x260)][J(0x296)]:null;}[d1(0x25e)](){const J=B;return this[J(0x260)]?this[J(0x260)][J(0x205)]:null;}[B(0x259)](){return null;}[B(0x229)](){const dd=d1,J=B;return this[J(0x260)]?this[dd(0x2bf)][J(0x1cf)]:null;}[B(0x1ad)](){const de=d1,J=B;return this[J(0x260)]?this[J(0x260)][de(0x225)]:null;}[B(0x1d5)](){const J=B;return this['tag']?this[J(0x260)][J(0x151)]:null;}[B(0x29d)](){return null;}[B(0x188)](){return null;}[B(0x198)](){return this[B(0x2ce)]();}['getPlayerVersion'](){const J=B;return F[J(0x2b7)][J(0x232)];}[B(0x21d)](){return null;}[d1(0x114)](){const J=B;return this[J(0x260)]?this[J(0x260)][J(0x142)]:null;}[B(0x266)](){const df=d1,J=B;return this[df(0x2bf)]?this[J(0x260)][df(0xfa)]:null;}[d1(0x1d9)](){return null;}[B(0x2c0)](){const J=B;return this[J(0x1a6)]?this[J(0x1a6)][J(0x227)][J(0x22b)]?J(0x199):J(0x197):null;}[B(0x25b)](){return null;}[B(0x288)](){return null;}[d1(0x272)](){return null;}[B(0x1c8)](){return null;}[B(0x172)](){return null;}[B(0x2b2)](J,K){const dg=d1,L=B;if(void 0x0===(J=D[L(0x2b7)][L(0x212)][L(0x2b2)][L(0x2ac)](this,arguments))[L(0x17c)]&&(J[L(0x17c)]=this[L(0x17c)]()),J[L(0x1dc)]=this[L(0x1ca)](),J[L(0x272)]=this[L(0x13b)](),J[L(0x13a)]=this[L(0x198)](),J[L(0x24e)]=this[L(0x195)](),J[dg(0x1d8)]=this[L(0x1f0)](),J[L(0x2bd)]=this[L(0x1c8)](),J[L(0x155)]=this[L(0x172)](),J[L(0x19a)]=this[dg(0x8e)],J[dg(0x24c)]=L(0x1fd),L(0x1be)===K)return J;try{J[L(0x1d2)]=window[dg(0x192)][L(0x2a3)];}catch(M){}this[L(0x17c)]()?(J[L(0x2dd)]=this['getVideoId'](),J[L(0x1e6)]=this[L(0x200)](),J[dg(0x1ce)]=this[L(0x229)](),J[L(0x292)]=this[L(0x188)](),J[L(0x254)]=this[dg(0x109)]()||this[dg(0x2a8)]()||this[L(0x26f)](),J[L(0x14d)]=this[L(0x2a8)](),J[dg(0xa2)]=this[L(0x26f)](),J[L(0x15a)]=this[L(0x1f3)](),J[dg(0x132)]=this[L(0x180)](),J[L(0x1bf)]=this[dg(0x170)](),J[L(0x2a1)]=this['getPlayhead'](),J[L(0x1e3)]=this[L(0x259)](),J[L(0x279)]=this[L(0x1d5)](),J[L(0x1b6)]=this[L(0x21d)](),J[dg(0x198)]=this[L(0x2c0)](),J['adCreativeId']=this[dg(0xab)](),J[L(0x2d5)]=this[L(0x25b)]()):(J[dg(0x241)]=this[L(0x270)](),J[L(0x19b)]=this[L(0x200)](),J[L(0x1f9)]=this[L(0x229)](),J[L(0x2c4)]=this[L(0x188)](),J[L(0x147)]=this[L(0x1b9)](),J[L(0x290)]=this[L(0x217)](),J[L(0x17a)]=this[L(0x1b5)]()||this[L(0x276)]()||this['getRenditionBitrate'](),J[L(0x2c8)]=this[L(0x2a8)](),J[L(0x239)]=this[L(0x26f)](),J[dg(0x206)]=this[dg(0x1d6)](),J[L(0x1f7)]=this[L(0x180)](),J[L(0x166)]=this[L(0x277)](),J[L(0x278)]=this[L(0x259)](),J[L(0x237)]=this[L(0x1ad)](),J[L(0x209)]=this[L(0x29d)](),J[L(0x240)]=this[L(0x1d5)](),J[L(0x2dc)]=this[L(0x1fc)](),J[dg(0x1ec)]=this[dg(0xad)](),J[L(0x164)]=this[dg(0x151)](),null!=this[dg(0x280)]&&this[dg(0x280)]['state'][dg(0x86)]>0x0&&(J[L(0x1b7)]=this[L(0x2ab)][L(0x227)][dg(0x86)])),this[L(0x227)][L(0x20e)](J);for(let N in this[L(0x28a)])J[N]=this[L(0x28a)][N];return J;}[B(0x1f1)](J,K,L){const dh=d1,M=B;L=L||{},this[dh(0x9c)](J,L),this[M(0x227)][M(0x28c)](K);}[d1(0x1eb)](J){const di=d1,K=B;this[di(0x279)][di(0x2a4)]()&&(J=J||{},this[di(0x10f)](H[di(0x18e)][K(0x24f)],J));}[B(0x1c7)](J){const dj=d1,K=B;if(this[K(0x227)][K(0x196)]()){let L;this[K(0x17c)]()?(L=H[K(0x245)][dj(0x181)],this[K(0x257)](L,J)):(L=H[K(0x245)][K(0x255)],this[K(0x219)](L,J));}}[B(0x168)](J){const dk=d1,K=B;if(this[K(0x227)][K(0x24a)]()){let L;this[K(0x17c)]()?(L=H[dk(0x18e)][K(0x22f)],this[K(0x1a6)]&&(this[K(0x1a6)][K(0x227)][K(0x182)]=!0x1),this['sendVideoAdAction'](L,J)):(L=H[K(0x245)][K(0x23d)],this[K(0x219)](L,J)),this[K(0x286)](),this[K(0x227)][K(0x16d)]();}}[B(0x25c)](J){const dl=d1,K=B;if(this[dl(0x279)][dl(0x8d)]()){let L;J=J||{},this[K(0x17c)]()?(L=H[dl(0x18e)][K(0x218)],J['timeSinceAdRequested']=this[K(0x227)][K(0x28e)][K(0x167)](),J[K(0x211)]=this[K(0x227)][K(0x144)][K(0x167)](),this[K(0x1a6)]&&(this[dl(0x231)][K(0x227)][dl(0x80)]=!0x0)):(L=H[dl(0x18e)][K(0x27a)],J[K(0x28e)]=this['state'][K(0x28e)][dl(0xe7)](),J[K(0x144)]=this[dl(0x279)][K(0x144)][K(0x167)]()),this[dl(0x1a3)](),this[K(0x17c)]()?this[K(0x257)](L,J):this[K(0x219)](L,J),this[K(0x1a6)]&&this[K(0x17c)]()&&this[dl(0x231)][K(0x227)][K(0x153)](),this[K(0x227)][K(0x174)](),this[K(0x227)][K(0x299)]=0x0;}}[d1(0xd6)](J){const dm=d1,K=B;if(this[dm(0x279)][K(0x293)]()){let L=this[K(0x17c)]()?H[dm(0x18e)]['AD_PAUSE']:H[K(0x245)][dm(0x22a)];this[K(0x17c)]()?this[K(0x257)](L,J):this[dm(0x10f)](L,J);}}[d1(0x1cf)](J){const dn=d1,K=B;if(this[K(0x227)][dn(0x149)]()){let L;J=J||{},this['isAd']()?(L=H[K(0x245)][K(0x289)],J['timeSinceAdPaused']=this[K(0x227)][K(0x275)][K(0x167)]()):(L=H[K(0x245)][K(0x2be)],J['timeSincePaused']=this[K(0x227)][K(0x275)][K(0x167)]()),this[K(0x17c)]()?this[K(0x257)](L,J):this[dn(0x10f)](L,J);}}[d1(0x110)](J){const K=B;if(this[K(0x227)][K(0x1f5)]()){let L;J=J||{},L=this[K(0x17c)]()?H[K(0x245)][K(0x1ab)]:H[K(0x245)][K(0x1d7)],J=this[K(0x1a9)](J),this[K(0x2b6)]=J['bufferType'],this[K(0x17c)]()?this[K(0x257)](L,J):this[K(0x219)](L,J);}}[B(0x223)](J){const dp=d1,K=B;if(this[K(0x227)][K(0x1bc)]()){let L;J=J||{},this[dp(0x208)]()?(L=H[K(0x245)][K(0x268)],J[K(0x2de)]=this[K(0x227)][K(0x26c)][dp(0xe7)]()):(L=H[K(0x245)][K(0x1d3)],J[K(0x26c)]=this['state'][K(0x26c)][K(0x167)]()),J=this[K(0x1a9)](J),null!=this[K(0x2b6)]&&(J[K(0x244)]=this[dp(0x13c)]),this[K(0x17c)]()?this[dp(0xe1)](L,J):this[K(0x219)](L,J),this[K(0x227)][K(0x29b)]=!0x0;}}[B(0x1a9)](J){const dq=d1,K=B;return null==J[K(0x144)]||J[K(0x144)]<0x64?J[K(0x22a)]=!this[K(0x227)][dq(0x14f)]:J[dq(0x188)]=!0x1,J[dq(0x215)]=this[K(0x227)][K(0x2ca)](J[K(0x22a)]),J[K(0x27d)]=this[K(0x227)][K(0x27d)][dq(0xe7)](),J[K(0x2c1)]=this[K(0x227)][K(0x2c1)][K(0x167)](),J;}[B(0x193)](J){const K=B;if(this[K(0x227)][K(0x175)]()){let L;L=this[K(0x17c)]()?H['Events'][K(0x27f)]:H[K(0x245)][K(0x1b3)],this[K(0x17c)]()?this[K(0x257)](L,J):this[K(0x219)](L,J);}}[B(0x150)](J){const dr=d1,K=B;if(this[K(0x227)][K(0x2a5)]()){let L;J=J||{},this[dr(0x208)]()?(L=H[K(0x245)][K(0x1df)],J[K(0x14f)]=this[K(0x227)][dr(0x182)][K(0x167)]()):(L=H[K(0x245)][dr(0x202)],J[dr(0x182)]=this[K(0x227)]['timeSinceSeekBegin'][K(0x167)]()),this[K(0x17c)]()?this[K(0x257)](L,J):this[K(0x219)](L,J);}}[B(0x1ea)](J){const ds=d1,K=B;(J=J||{})[K(0x227)]||C[K(0x2b7)][ds(0xa3)](K(0x146)),this[K(0x219)](H[K(0x245)][K(0x160)],J),this[K(0x227)][K(0x1d4)]();}[B(0x2a4)](J){const dt=d1,K=B;(J=J||{})[K(0x17c)]=this[K(0x17c)](),this[K(0x227)][K(0x249)]();let L=this[K(0x17c)]()?H[K(0x245)][dt(0x287)]:H[K(0x245)][K(0x163)];this[K(0x256)](L,J);}[B(0x1cd)](J){const du=d1,K=B;let L;(J=J||{})[du(0x15c)]=this[K(0x227)][K(0x234)]['getDeltaTime'](),J[K(0x207)]=this[du(0x153)](!0x0),L=this[K(0x17c)]()?H[K(0x245)][K(0x23a)]:H[du(0x18e)][K(0x261)],this[du(0x208)]()?this[K(0x257)](L,J):this[du(0x10f)](L,J),this[K(0x227)][K(0x1eb)]();}[B(0x2bb)](J){const dv=d1,K=B;if(this[K(0x227)][K(0x250)]){let L,M=this[dv(0x1e0)]();this[dv(0x279)][K(0x298)]=!0x0,M=this[K(0x2b3)](M),this[K(0x17c)]()?(L=H[dv(0x18e)][K(0x16b)],K(0x2d9)===this[dv(0x13d)]()?this[K(0x257)](L,J):this[K(0x257)](L,{'elapsedTime':M,...J})):(L=H[K(0x245)][K(0x2b5)],this[K(0x219)](L,{'elapsedTime':M,...J})),this[K(0x227)][K(0x16d)]();}}[B(0x2b3)](J){const dw=d1,K=B;return this[dw(0x279)][K(0x1cc)]&&(J-=this[K(0x227)][K(0x1cc)],this[K(0x227)]['_acc']=0x0),this[K(0x227)][dw(0x180)]&&((J-=this[K(0x227)][K(0x2a0)][K(0x167)]())<0xa&&(J=0x0),this['state'][K(0x2a0)][K(0x14a)]()),this[dw(0x279)][K(0x216)]?(J-=this[K(0x227)][K(0x216)],this[dw(0x279)][K(0x216)]=0x0):this[K(0x227)][K(0x23b)]&&((J-=this[K(0x227)][K(0x191)]['getDeltaTime']())<0x5&&(J=0x0),this[K(0x227)][K(0x191)][K(0x14a)]()),Math[K(0x140)](0x0,J);}[B(0x1fb)](J){const dx=d1,K=B;this[dx(0x208)]()&&this[K(0x227)][K(0x2d8)]()&&(this[dx(0x279)][K(0x1b7)]=0x0,this[K(0x1a6)]&&(this[K(0x1a6)][K(0x227)][K(0x182)]=!0x1),this[K(0x257)](H[K(0x245)][K(0x287)],J));}[B(0x18d)](J){const dy=d1,K=B;this['isAd']()&&this[K(0x227)][dy(0x164)]()&&((J=J||{})[K(0x170)]=this[dy(0x279)][K(0x1da)][dy(0xe7)](),this[dy(0xe1)](H[dy(0x18e)][K(0x1f6)],J),this[K(0x1a6)]&&(this[K(0x1a6)][K(0x227)][dy(0x80)]=!0x0),this[K(0x24c)](),this[K(0x1a6)]&&this[dy(0x208)]()&&this[K(0x1a6)][K(0x227)][K(0x153)]());}[B(0x20c)](J){const dz=d1,K=B;this[K(0x17c)]()&&((J=J||{})[K(0x2d1)]||C[K(0x2b7)][K(0x1a4)](K(0x274)),J[K(0x143)]=this[K(0x227)][K(0x143)][K(0x167)](),this[K(0x257)](H[K(0x245)][dz(0xcb)],J),this[dz(0x279)][dz(0x10d)]());}[B(0x28b)](J){const dA=d1,K=B;this[K(0x17c)]()&&((J=J||{})['url']||C[K(0x2b7)][K(0x1a4)](dA(0x258)),this[K(0x257)](H[dA(0x18e)][K(0x2b4)],J));}}function I(J){const dB=d1,K=B;this[K(0x257)](J[K(0x1af)],J[dB(0x172)]);}H[B(0x245)]={'PLAYER_READY':B(0x24f),'DOWNLOAD':B(0x160),'ERROR':B(0x208),'CONTENT_REQUEST':B(0x255),'CONTENT_START':B(0x23d),'CONTENT_END':B(0x27a),'CONTENT_PAUSE':B(0x15f),'CONTENT_RESUME':d1(0x22d),'CONTENT_SEEK_START':B(0x1b3),'CONTENT_SEEK_END':B(0x194),'CONTENT_BUFFER_START':d1(0x1f4),'CONTENT_BUFFER_END':B(0x1d3),'CONTENT_HEARTBEAT':B(0x2b5),'CONTENT_RENDITION_CHANGE':B(0x261),'CONTENT_ERROR':d1(0x176),'AD_REQUEST':B(0x1d6),'AD_START':B(0x22f),'AD_END':B(0x218),'AD_PAUSE':B(0x1f2),'AD_RESUME':B(0x289),'AD_SEEK_START':B(0x27f),'AD_SEEK_END':B(0x1df),'AD_BUFFER_START':B(0x1ab),'AD_BUFFER_END':B(0x268),'AD_HEARTBEAT':B(0x16b),'AD_RENDITION_CHANGE':B(0x23a),'AD_ERROR':B(0x185),'AD_BREAK_START':B(0x287),'AD_BREAK_END':B(0x1f6),'AD_QUARTILE':d1(0xcb),'AD_CLICK':B(0x2b4)},z[B(0x2b7)]=H;}},m={};function p(y){const dC=a0b,z=v;var A=m[y];if(void 0x0!==A)return A[dC(0x115)];var B=m[y]={'exports':{}};return k[y](B,B[z(0x26a)],p),B[z(0x26a)];}var q={};function u(){const dD=a0b,y=[dD(0x111),dD(0x1c6),dD(0x1f8),'Linux',dD(0x15c),dD(0xd7),dD(0xf8),dD(0x240),dD(0x25b),dD(0xe6),'AD_RENDITION_CHANGE',dD(0x1f7),dD(0x1fa),dD(0x121),dD(0x21d),'trackerName','contentIsMuted',dD(0x17d),dD(0x211),'offset','bufferType',dD(0x18e),dD(0x17f),dD(0x171),dD(0x1e0),dD(0x14b),'goStart','getMinutes','stopHeartbeat',dD(0xb5),dD(0xcf),dD(0x1ad),dD(0x224),dD(0xf3),'624296CverhY',dD(0x1af),dD(0x160),dD(0xf1),dD(0x260),'sendVideoAdAction','8849510zqhbAj',dD(0x2a9),dD(0x23a),dD(0xdc),dD(0x264),'startTime',dD(0x17b),dD(0x7f),dD(0x2bf),'CONTENT_RENDITION_CHANGE','now',dD(0x16d),dD(0x1c0),dD(0x13b),'getPreload',dD(0x23e),dD(0x274),dD(0x26d),dD(0x115),dD(0xce),dD(0x166),dD(0x1ff),dD(0x271),dD(0x22e),'getVideoId',dD(0x2ab),dD(0x83),dD(0x1df),dD(0x1bc),dD(0x144),dD(0x2a8),dD(0x170),'contentLanguage',dD(0x23b),dD(0x297),'loadedmetadata','isBackgroundEvent','timeSinceResumed',dD(0x135),dD(0x17c),dD(0x26e),dD(0x187),'Android',dD(0x1d1),dD(0x276),dD(0xf0),dD(0x126),'AD_BREAK_START',dD(0xab),'AD_RESUME','customData',dD(0x2bd),dD(0x8a),dD(0x95),dD(0x1bd),dD(0x1d4),dD(0x194),dD(0xef),dD(0xcc),'goPause',dD(0xed),dD(0x1fd),dD(0x2b5),'{\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}}',dD(0x125),dD(0x113),dD(0x14c),dD(0x14f),'seek',dD(0x100),dD(0x12b),'function',dD(0x2b8),'adPlayhead',dD(0x156),'href',dD(0xc0),dD(0x118),dD(0x1e3),dD(0x163),dD(0x229),'deviceType',dD(0x14a),dD(0x280),dD(0x216),dD(0xb3),'isSeeking','SILENT',dD(0x1f1),dD(0x107),dD(0xff),dD(0x200),dD(0x15e),dD(0x2bc),dD(0x13c),dD(0x19a),dD(0x28a),'push',dD(0x2a3),dD(0x20b),dD(0x120),'instrumentation.name','CONTENT_RESUME',dD(0x103),dD(0x15f),dD(0x1e5),'1097798joYwty','adError',dD(0x154),'customTimeSinceAttributes',dD(0x82),dD(0x99),'contentRenditionName',dD(0xb2),'calculateBufferType','_actionTable',dD(0x1c2),dD(0x275),dD(0x1ba),dD(0x20c),dD(0x25d),dD(0x124),dD(0x281),dD(0xa6),dD(0x295),dD(0x8b),dD(0x20a),dD(0xe8),'goAdBreakStart','bitmovin-ads',dD(0x1ea),dD(0x1e1),dD(0x268),dD(0x165),dD(0xa0),'_lastAdRendition',dD(0x204),'insightsRequestResponse','playerName',dD(0x1bf),'POST',dD(0xb1),'_harvestLocked','performance',dD(0x24d),'getElementById',dD(0x161),dD(0x2ac),dD(0x19c),dD(0x1c1),'Called\x20sendDownload\x20without\x20{\x20state:\x20xxxxx\x20}.','contentPlayhead',dD(0x1b2),dD(0x1de),dD(0xba),dD(0x221),'resume',dD(0x85),dD(0x25a),dD(0xb9),dD(0x9b),'muted',dD(0x20f),dD(0x1b5),dD(0xc2),dD(0xee),dD(0x29a),'ACTION_TABLE','_trackerReadyChrono',dD(0xe9),dD(0x210),'data','defineProperty',dD(0x1b8),dD(0x292),'CONTENT_PAUSE','DOWNLOAD',dD(0x9d),'substring',dD(0x176),dD(0x1b6),'timeSinceLastHeartbeat',dD(0x177),dD(0xe7),dD(0x1b0),dD(0x25c),dD(0x1fc),'AD_HEARTBEAT',dD(0xae),'goHeartbeat','isArray',dD(0x273),'timeSinceAdBreakBegin','Mobile',dD(0x286),'videoWidth',dD(0xfb),dD(0x13e),dD(0x256),dD(0x1d2),dD(0x248),dD(0x2ba),'contentBitrate',dD(0x1c8),dD(0x208),dD(0x22f),dD(0x16c),'recordCustomEvent','getRenditionWidth','isPlayerReady',dD(0x80),dD(0x228),'Buffer\x20Type\x20=\x20','AD_ERROR',dD(0x2a4),dD(0xa7),dD(0x213),dD(0x298),dD(0x1c4),'then','numberOfVideos','sendAdBreakEnd','emit',dD(0x106),'location',dD(0xd5),dD(0x134),dD(0xbb),dD(0x202),'getPlayerVersion',dD(0x28d),dD(0xcd),'getPlayerName','mid',dD(0x239),dD(0x251),dD(0x1a9),dD(0x28f),dD(0x18c),'https://insights-collector.newrelic.com/v1/accounts/',dD(0xfc),dD(0x2a0),'setAttribute',dD(0x2b7),dD(0xa3),dD(0x102),dD(0x231),'Unknown',dD(0x288),dD(0x26b),dD(0x18a),dD(0x1b3),'eventType',dD(0xe3),'timeSinceTrackerReady',dD(0x1f5),dD(0xf6),dD(0x267),'isPaused',dD(0x127),dD(0x178),'getBitrate',dD(0x2b9),dD(0x86),'buffering','getPlayhead',dD(0x169),dD(0xd0),dD(0x26c),dD(0xdb),dD(0x12f),dD(0xd4),dD(0x108),dD(0x1cd),dD(0x28c),dD(0xf9),dD(0x117),'isAdBreak',dD(0x1ee),dD(0x284),'getInstrumentationName',dD(0x1aa),'getViewSession',dD(0x21c),dD(0x283),dD(0x11c),'userAgent','currentSrc','HEARTBEAT',dD(0x1f3),dD(0x29b),dD(0x143),dD(0xe2),dD(0x236),dD(0x181),dD(0x1f4),dD(0x149),dD(0x1b4),dD(0x131),dD(0x11a),dD(0xa1),dD(0x153),dD(0x8e),dD(0x175),'setPlayer',dD(0x2a7),dD(0x285),dD(0x183),dD(0x184),'2800554BJVsMn',dD(0x265),'getSeconds',dD(0x162),dD(0xbc),'sendDownload','goRenditionChange','getBackend',dD(0x1a2),dD(0x150),dD(0x28e),'getInstrumentationProvider','sendCustom',dD(0x90),dD(0x1d6),dD(0x89),dD(0x289),dD(0x104),'contentRenditionWidth','VideoAction','contentSrc','getTrackerVersion',dD(0x105),dD(0x114),'Browser',dD(0x1f2),dD(0x185),'getTitle',dD(0x11f),dD(0x27d),dD(0x247),dD(0x2be),dD(0xe5),'currentUrl',dD(0x142),dD(0x24f),dD(0xc9),dD(0x24e),dD(0xb8),dD(0x157),dD(0x155),dD(0x130),dD(0x1a5),'iOS',dD(0x145),dD(0x11d),dD(0x101),'2902398PXfnTv',dD(0x209),dD(0xf7),dD(0x92),dD(0x140),dD(0x10f),dD(0x148),dD(0x214),dD(0x182),dD(0x151),'prefix',dD(0x20e),dD(0x2a5),dD(0x9a),dD(0x7e),dD(0x1ed),dD(0x1c3),dD(0x1be),dD(0x199),'state',dD(0x255),dD(0xdf),dD(0x188),dD(0x186),'playing',dD(0x91),dD(0xd8),'AD_START'];return(u=function(){return y;})();}function v(y,z){const A=u();return(v=function(B,C){return A[B-=0x13a];})(y,z);}((()=>{const dE=a0b,z=v;var A=q;Object[dE(0x27b)](A,'B',{'value':!0x0}),A['A']=void 0x0;var B=M(p(0x92)),C=M(p(0x196)),D=M(p(0x18f)),E=M(p(0x33)),F=M(p(0x1c7)),G=M(p(0x90)),H=M(p(0x238)),I=M(p(0x12e)),J=M(p(0x319)),K=M(p(0x148)),L=p(0x14a);function M(O){return O&&O[v(0x16f)]?O:{'default':O};}const N={'Constants':E[z(0x2b7)],'Chrono':F[z(0x2b7)],'Log':G[z(0x2b7)],'Emitter':H[z(0x2b7)],'Tracker':I[z(0x2b7)],'VideoTracker':J['default'],'VideoTrackerState':K[z(0x2b7)],'Core':D[z(0x2b7)],'Backend':B[z(0x2b7)],'NRInsightsBackend':C[z(0x2b7)],'version':L[z(0x232)]};A['A']=N;})());var w=q['B'],x=q['A'];}},b={};function c(f){const dF=a0b;var g=b[f];if(void 0x0!==g)return g['exports'];var h=b[f]={'exports':{}};return a[f](h,h[dF(0x115)],c),h[dF(0x115)];}c['d']=(f,g)=>{const dG=a0b;for(var h in g)c['o'](g,h)&&!c['o'](f,h)&&Object[dG(0x27b)](f,h,{'enumerable':!0x0,'get':g[h]});},c['o']=(f,g)=>Object['prototype'][dH(0x18f)][dH(0x204)](f,g),c['r']=f=>{const dI=dH;dI(0x28e)!=typeof Symbol&&Symbol['toStringTag']&&Object[dI(0x27b)](f,Symbol['toStringTag'],{'value':dI(0x12a)}),Object[dI(0x27b)](f,'__esModule',{'value':!0x0});};var d={};((()=>{const dJ=dH;var f=d;Object['defineProperty'](f,dJ(0x273),{'value':!0x0}),f[dJ(0x19a)]=void 0x0;var g,h=(g=c(0x12e))&&g[dJ(0x273)]?g:{'default':g};f[dJ(0x19a)]=h[dJ(0x19a)];})()),module[dH(0x115)][dH(0x2b2)]=d;})()));
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ (()=>{"use strict";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,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=i(302))&&t.__esModule?t:{default:t};e.default=r.default})(),module.exports.VideojsTracker=s})();
3
+ //# sourceMappingURL=index.js.map
@@ -1,6 +1,8 @@
1
1
  /*!
2
- * @license MIT
3
- * @newrelic/video-videojs 3.1.0
2
+ * @license Apache-2.0
3
+ * @newrelic/video-videojs 3.2.0-beta-0
4
4
  * Copyright New Relic <http://newrelic.com/>
5
5
  * @author Jordi Aguilar
6
6
  */
7
+
8
+ /*! For license information please see index.js.LICENSE.txt */